diff --git a/README.md b/README.md index 3ac96956..085dc95f 100644 --- a/README.md +++ b/README.md @@ -1,59 +1,10 @@ Assignment 4 - Creative Coding: Interactive Multimedia Experiences -=== - -Due: October 9th, by 11:59 PM. - -For this assignment we will focus on client-side development using popular audio/graphics/visualization technologies; the server requirements are minimal. The goal of this assignment is to refine our JavaScript knowledge while exploring the multimedia capabilities of the browser. - -Baseline Requirements ---- - -Your application is required to implement the following functionalities: - -- A server created using Express. This server can be as simple as needed. -- A client-side interactive experience using at least one of the following web technologies frameworks. - - [Three.js](https://threejs.org/): A library for 3D graphics / VR experiences - - [D3.js](https://d3js.org): A library that is primarily used for interactive data visualizations - - [Canvas](https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API): A 2D raster drawing API included in all modern browsers - - [SVG](https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API): A 2D vector drawing framework that enables shapes to be defined via XML. - - [Web Audio API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API): An API for audio synthesis, analysis, processing, and file playback. -- A user interface for interaction with your project, which must expose at least six parameters for user control. [dat.gui](https://workshop.chromeexperiments.com/examples/gui/#1--Basic-Usage) is highly recommended for this. You might also explore interaction by tracking mouse movement via the `window.onmousemove` event handler in tandem with the `event.clientX` and `event.clientY` properties. Consider using the [Pointer Events API](https://developer.mozilla.org/en-US/docs/Web/API/Pointer_events) to ensure that that mouse and touch events will both be supported in your app. -- Your application should display basic documentation for the user interface when the application first loads. This documentation should be dismissable, however, users should be able to redisplay it via either a help buton (this could, for example, be inside a dat.gui interface) or via a keyboard shortcut (commonly the question mark). -- Your HTML and CSS should validate. There are options/plugins for most IDEs to check validation. - -The interactive experience should possess a reasonable level of complexity. Some examples: -### Three.js -- A generative algorithm creates simple agents that move through a virtual world. Your interface controls the behavior / appearance of these agents. -- A simple 3D game -- An 3D audio visualization of a song of your choosing. User interaction should control aspects of the visualization. -### Canvas -- Implement a generative algorithm such as [Conway's Game of Life](https://bitstorm.org/gameoflife/) (or 1D cellular automata) and provide interactive controls. Note that the Game of Life has been created by 100s of people using ; we'll be checking to ensure that your implementation is not a copy of these. -- Design a 2D audio visualizer of a song of your choosing. User interaction should control visual aspects of the experience. -### Web Audio API -- Create a screen-based musical instrument using the Web Audio API. You can use projects such as [Interface.js](http://charlie-roberts.com/interface/) or [Nexus UI](https://nexus-js.github.io/ui/api/#Piano) to provide common musical interface elements, or use dat.GUI in combination with mouse/touch events (use the Pointer Events API). Your GUI should enable users to control aspects of sound synthesis. -### D3.js -- Create visualizations using the datasets found at [Awesome JSON Datasets](https://github.com/jdorfman/Awesome-JSON-Datasets). Experiment with providing different visualizations of the same data set, and providing users interactive control over visualization parameters and/or data filtering. Alternatively, create a single visualization with using one of the more complicated techniques shown at [d3js.org](d3js.org) and provide meaningful points of interaction for users. - -Deliverables ---- - -Do the following to complete this assignment: - -1. Implement your project with the above requirements. -3. Test your project to make sure that when someone goes to your main page on Glitch/Heroku/etc., it displays correctly. -4. Ensure that your project has the proper naming scheme `a4-firstname-lastname` so we can find it. -5. Fork this repository and modify the README to the specifications below. *NOTE: If you don't use Glitch for hosting (where we can see the files) then you must include all project files that you author in your repo for this assignment*. -6. Create and submit a Pull Request to the original repo. Name the pull request using the following template: `a4-firstname-lastname`. - -Sample Readme (delete the above when you're ready to submit, and modify the below so with your links and descriptions) --- -## Your Web Application Title +## Public Schools, Fire Departments, Police Stations, and Hospitals in Boston -your hosting link e.g. http://a4-charlieroberts.glitch.me +https://a4-alvaradoblancouribe.glitch.me/ -Include a very brief summary of your project here. Images are encouraged when needed, along with concise, high-level text. Be sure to include: +this application displays the public schools, hospitals, police stations, and fire departments in Boston. Hover over the locations to learn more about each location. In addition, a color themed animation is attached in the botton right. The map was created with d3.js and the animation was created with three.js -- the goal of the application -- challenges you faced in realizing the application -- the instructions you present in the website should be clear enough to use the application, but if you feel any need to provide additional instructions please do so here. +The main challenge was that the idea that i had for this application changed a lot. Therefore, I completed multiple tutorials and debugged a lot to get to this point - even though it might look somewhat incomplete. No additional instructions are needed. diff --git a/package.json b/package.json new file mode 100644 index 00000000..67e429b3 --- /dev/null +++ b/package.json @@ -0,0 +1,45 @@ +{ + "name": "a4-creative-coding", + "version": "1.0.0", + "description": "Assignment 4 - Creative Coding: Interactive Multimedia Experiences ===", + "main": "server.js", + "scripts": { + "start": "node server.js" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/cs4241-20a/a4-creative-coding.git" + }, + "author": "", + "license": "ISC", + "bugs": { + "url": "https://github.com/cs4241-20a/a4-creative-coding/issues" + }, + "homepage": "https://github.com/cs4241-20a/a4-creative-coding#readme", + "dependencies": { + "body-parser": "^1.19.0", + "bootstrap": "^4.5.2", + "browserify": "^17.0.0", + "connect-ensure-login": "^0.1.1", + "cookie-parser": "^1.4.5", + "cors": "^2.8.5", + "d3": "^6.2.0", + "dat.gui": "^0.7.7", + "express": "^4.17.1", + "express-session": "^1.17.1", + "mangodb": "^1.0.0", + "mime": "^2.4.4", + "mongodb": "^3.6.2", + "multer": "^1.4.2", + "node": "^14.13.1", + "passport": "^0.4.1", + "passport-http": "^0.3.0", + "passport-local": "^1.0.0", + "passport-local-mongoose": "^6.0.1", + "requirejs": "^2.3.6", + "three": "^0.121.1" + }, + "devDependencies": { + "nodemon": "^2.0.4" + } +} diff --git a/public/.DS_Store b/public/.DS_Store new file mode 100644 index 00000000..5008ddfc Binary files /dev/null and b/public/.DS_Store differ diff --git a/public/custom.geo.json b/public/custom.geo.json new file mode 100644 index 00000000..0858782e --- /dev/null +++ b/public/custom.geo.json @@ -0,0 +1 @@ +{"type":"FeatureCollection","features":[{"type":"Feature","properties":{"scalerank":1,"featurecla":"Admin-0 country","labelrank":2,"sovereignt":"Spain","sov_a3":"ESP","adm0_dif":0,"level":2,"type":"Sovereign country","admin":"Spain","adm0_a3":"ESP","geou_dif":0,"geounit":"Spain","gu_a3":"ESP","su_dif":0,"subunit":"Spain","su_a3":"ESP","brk_diff":0,"name":"Spain","name_long":"Spain","brk_a3":"ESP","brk_name":"Spain","brk_group":null,"abbrev":"Sp.","postal":"E","formal_en":"Kingdom of Spain","formal_fr":null,"note_adm0":null,"note_brk":null,"name_sort":"Spain","name_alt":null,"mapcolor7":4,"mapcolor8":5,"mapcolor9":5,"mapcolor13":5,"pop_est":40525002,"gdp_md_est":1403000,"pop_year":-99,"lastcensus":2001,"gdp_year":-99,"economy":"2. Developed region: nonG7","income_grp":"1. High income: OECD","wikipedia":-99,"fips_10":null,"iso_a2":"ES","iso_a3":"ESP","iso_n3":"724","un_a3":"724","wb_a2":"ES","wb_a3":"ESP","woe_id":-99,"adm0_a3_is":"ESP","adm0_a3_us":"ESP","adm0_a3_un":-99,"adm0_a3_wb":-99,"continent":"Europe","region_un":"Europe","subregion":"Southern Europe","region_wb":"Europe & Central Asia","name_len":5,"long_len":5,"abbrev_len":3,"tiny":-99,"homepart":1,"filename":"ESP.geojson"},"geometry":{"type":"Polygon","coordinates":[[[-9.034817674180246,41.88057058365967],[-8.984433152695672,42.59277517350627],[-9.392883673530648,43.0266246608127],[-7.978189663108309,43.748337714200986],[-6.754491746436756,43.567909450853925],[-5.411886359061596,43.574239813809676],[-4.347842779955783,43.40344920508504],[-3.51753170410609,43.4559007838613],[-1.901351284177764,43.42280202897834],[-1.502770961910528,43.03401439063043],[0.338046909190581,42.57954600683954],[0.701590610363894,42.7957343613326],[1.826793247087153,42.34338471126569],[2.985998976258458,42.47301504166986],[3.039484083680549,41.892120266276905],[2.091841668312185,41.22608856868309],[0.810524529635188,41.01473196060934],[0.721331007499401,40.678318386389236],[0.106691521819869,40.12393362076202],[-0.278711310212941,39.30997813573272],[0.111290724293838,38.73851430923303],[-0.467123582349103,38.29236583104115],[-0.683389451490598,37.642353827457825],[-1.438382127274849,37.443063666324214],[-2.146452602538119,36.67414419203728],[-3.415780808923387,36.65889964451118],[-4.368900926114719,36.677839056946155],[-4.995219285492211,36.32470815687964],[-5.377159796561457,35.946850083961465],[-5.866432257500904,36.02981659600606],[-6.236693894872175,36.367677110330334],[-6.520190802425404,36.94291331638732],[-7.453725551778092,37.09778758396607],[-7.537105475281024,37.42890432387623],[-7.166507941099865,37.803894354802225],[-7.029281175148796,38.07576406508977],[-7.374092169616318,38.37305858006492],[-7.098036668313128,39.03007274022378],[-7.498632371439725,39.62957103124181],[-7.066591559263529,39.71189158788277],[-7.026413133156595,40.184524237624245],[-6.864019944679385,40.33087189387483],[-6.851126674822552,41.11108266861753],[-6.389087693700915,41.381815497394655],[-6.668605515967656,41.883386949219584],[-7.251308966490824,41.91834605566505],[-7.422512986673795,41.79207469335983],[-8.013174607769912,41.790886135417125],[-8.263856980817792,42.28046865495034],[-8.67194576662672,42.13468943945496],[-9.034817674180246,41.88057058365967]]]}}]} \ No newline at end of file diff --git a/public/data.gui.js b/public/data.gui.js new file mode 100644 index 00000000..45947c4a --- /dev/null +++ b/public/data.gui.js @@ -0,0 +1,2524 @@ +/** + * dat-gui JavaScript Controller Library + * http://code.google.com/p/dat-gui + * + * Copyright 2011 Data Arts Team, Google Creative Lab + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + */ + +function ___$insertStyle(css) { + if (!css) { + return; + } + if (typeof window === 'undefined') { + return; + } + + var style = document.createElement('style'); + + style.setAttribute('type', 'text/css'); + style.innerHTML = css; + document.head.appendChild(style); + + return css; +} + +function colorToString (color, forceCSSHex) { + var colorFormat = color.__state.conversionName.toString(); + var r = Math.round(color.r); + var g = Math.round(color.g); + var b = Math.round(color.b); + var a = color.a; + var h = Math.round(color.h); + var s = color.s.toFixed(1); + var v = color.v.toFixed(1); + if (forceCSSHex || colorFormat === 'THREE_CHAR_HEX' || colorFormat === 'SIX_CHAR_HEX') { + var str = color.hex.toString(16); + while (str.length < 6) { + str = '0' + str; + } + return '#' + str; + } else if (colorFormat === 'CSS_RGB') { + return 'rgb(' + r + ',' + g + ',' + b + ')'; + } else if (colorFormat === 'CSS_RGBA') { + return 'rgba(' + r + ',' + g + ',' + b + ',' + a + ')'; + } else if (colorFormat === 'HEX') { + return '0x' + color.hex.toString(16); + } else if (colorFormat === 'RGB_ARRAY') { + return '[' + r + ',' + g + ',' + b + ']'; + } else if (colorFormat === 'RGBA_ARRAY') { + return '[' + r + ',' + g + ',' + b + ',' + a + ']'; + } else if (colorFormat === 'RGB_OBJ') { + return '{r:' + r + ',g:' + g + ',b:' + b + '}'; + } else if (colorFormat === 'RGBA_OBJ') { + return '{r:' + r + ',g:' + g + ',b:' + b + ',a:' + a + '}'; + } else if (colorFormat === 'HSV_OBJ') { + return '{h:' + h + ',s:' + s + ',v:' + v + '}'; + } else if (colorFormat === 'HSVA_OBJ') { + return '{h:' + h + ',s:' + s + ',v:' + v + ',a:' + a + '}'; + } + return 'unknown format'; +} + +var ARR_EACH = Array.prototype.forEach; +var ARR_SLICE = Array.prototype.slice; +var Common = { + BREAK: {}, + extend: function extend(target) { + this.each(ARR_SLICE.call(arguments, 1), function (obj) { + var keys = this.isObject(obj) ? Object.keys(obj) : []; + keys.forEach(function (key) { + if (!this.isUndefined(obj[key])) { + target[key] = obj[key]; + } + }.bind(this)); + }, this); + return target; + }, + defaults: function defaults(target) { + this.each(ARR_SLICE.call(arguments, 1), function (obj) { + var keys = this.isObject(obj) ? Object.keys(obj) : []; + keys.forEach(function (key) { + if (this.isUndefined(target[key])) { + target[key] = obj[key]; + } + }.bind(this)); + }, this); + return target; + }, + compose: function compose() { + var toCall = ARR_SLICE.call(arguments); + return function () { + var args = ARR_SLICE.call(arguments); + for (var i = toCall.length - 1; i >= 0; i--) { + args = [toCall[i].apply(this, args)]; + } + return args[0]; + }; + }, + each: function each(obj, itr, scope) { + if (!obj) { + return; + } + if (ARR_EACH && obj.forEach && obj.forEach === ARR_EACH) { + obj.forEach(itr, scope); + } else if (obj.length === obj.length + 0) { + var key = void 0; + var l = void 0; + for (key = 0, l = obj.length; key < l; key++) { + if (key in obj && itr.call(scope, obj[key], key) === this.BREAK) { + return; + } + } + } else { + for (var _key in obj) { + if (itr.call(scope, obj[_key], _key) === this.BREAK) { + return; + } + } + } + }, + defer: function defer(fnc) { + setTimeout(fnc, 0); + }, + debounce: function debounce(func, threshold, callImmediately) { + var timeout = void 0; + return function () { + var obj = this; + var args = arguments; + function delayed() { + timeout = null; + if (!callImmediately) func.apply(obj, args); + } + var callNow = callImmediately || !timeout; + clearTimeout(timeout); + timeout = setTimeout(delayed, threshold); + if (callNow) { + func.apply(obj, args); + } + }; + }, + toArray: function toArray(obj) { + if (obj.toArray) return obj.toArray(); + return ARR_SLICE.call(obj); + }, + isUndefined: function isUndefined(obj) { + return obj === undefined; + }, + isNull: function isNull(obj) { + return obj === null; + }, + isNaN: function (_isNaN) { + function isNaN(_x) { + return _isNaN.apply(this, arguments); + } + isNaN.toString = function () { + return _isNaN.toString(); + }; + return isNaN; + }(function (obj) { + return isNaN(obj); + }), + isArray: Array.isArray || function (obj) { + return obj.constructor === Array; + }, + isObject: function isObject(obj) { + return obj === Object(obj); + }, + isNumber: function isNumber(obj) { + return obj === obj + 0; + }, + isString: function isString(obj) { + return obj === obj + ''; + }, + isBoolean: function isBoolean(obj) { + return obj === false || obj === true; + }, + isFunction: function isFunction(obj) { + return obj instanceof Function; + } +}; + +var INTERPRETATIONS = [ +{ + litmus: Common.isString, + conversions: { + THREE_CHAR_HEX: { + read: function read(original) { + var test = original.match(/^#([A-F0-9])([A-F0-9])([A-F0-9])$/i); + if (test === null) { + return false; + } + return { + space: 'HEX', + hex: parseInt('0x' + test[1].toString() + test[1].toString() + test[2].toString() + test[2].toString() + test[3].toString() + test[3].toString(), 0) + }; + }, + write: colorToString + }, + SIX_CHAR_HEX: { + read: function read(original) { + var test = original.match(/^#([A-F0-9]{6})$/i); + if (test === null) { + return false; + } + return { + space: 'HEX', + hex: parseInt('0x' + test[1].toString(), 0) + }; + }, + write: colorToString + }, + CSS_RGB: { + read: function read(original) { + var test = original.match(/^rgb\(\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*\)/); + if (test === null) { + return false; + } + return { + space: 'RGB', + r: parseFloat(test[1]), + g: parseFloat(test[2]), + b: parseFloat(test[3]) + }; + }, + write: colorToString + }, + CSS_RGBA: { + read: function read(original) { + var test = original.match(/^rgba\(\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*\)/); + if (test === null) { + return false; + } + return { + space: 'RGB', + r: parseFloat(test[1]), + g: parseFloat(test[2]), + b: parseFloat(test[3]), + a: parseFloat(test[4]) + }; + }, + write: colorToString + } + } +}, +{ + litmus: Common.isNumber, + conversions: { + HEX: { + read: function read(original) { + return { + space: 'HEX', + hex: original, + conversionName: 'HEX' + }; + }, + write: function write(color) { + return color.hex; + } + } + } +}, +{ + litmus: Common.isArray, + conversions: { + RGB_ARRAY: { + read: function read(original) { + if (original.length !== 3) { + return false; + } + return { + space: 'RGB', + r: original[0], + g: original[1], + b: original[2] + }; + }, + write: function write(color) { + return [color.r, color.g, color.b]; + } + }, + RGBA_ARRAY: { + read: function read(original) { + if (original.length !== 4) return false; + return { + space: 'RGB', + r: original[0], + g: original[1], + b: original[2], + a: original[3] + }; + }, + write: function write(color) { + return [color.r, color.g, color.b, color.a]; + } + } + } +}, +{ + litmus: Common.isObject, + conversions: { + RGBA_OBJ: { + read: function read(original) { + if (Common.isNumber(original.r) && Common.isNumber(original.g) && Common.isNumber(original.b) && Common.isNumber(original.a)) { + return { + space: 'RGB', + r: original.r, + g: original.g, + b: original.b, + a: original.a + }; + } + return false; + }, + write: function write(color) { + return { + r: color.r, + g: color.g, + b: color.b, + a: color.a + }; + } + }, + RGB_OBJ: { + read: function read(original) { + if (Common.isNumber(original.r) && Common.isNumber(original.g) && Common.isNumber(original.b)) { + return { + space: 'RGB', + r: original.r, + g: original.g, + b: original.b + }; + } + return false; + }, + write: function write(color) { + return { + r: color.r, + g: color.g, + b: color.b + }; + } + }, + HSVA_OBJ: { + read: function read(original) { + if (Common.isNumber(original.h) && Common.isNumber(original.s) && Common.isNumber(original.v) && Common.isNumber(original.a)) { + return { + space: 'HSV', + h: original.h, + s: original.s, + v: original.v, + a: original.a + }; + } + return false; + }, + write: function write(color) { + return { + h: color.h, + s: color.s, + v: color.v, + a: color.a + }; + } + }, + HSV_OBJ: { + read: function read(original) { + if (Common.isNumber(original.h) && Common.isNumber(original.s) && Common.isNumber(original.v)) { + return { + space: 'HSV', + h: original.h, + s: original.s, + v: original.v + }; + } + return false; + }, + write: function write(color) { + return { + h: color.h, + s: color.s, + v: color.v + }; + } + } + } +}]; +var result = void 0; +var toReturn = void 0; +var interpret = function interpret() { + toReturn = false; + var original = arguments.length > 1 ? Common.toArray(arguments) : arguments[0]; + Common.each(INTERPRETATIONS, function (family) { + if (family.litmus(original)) { + Common.each(family.conversions, function (conversion, conversionName) { + result = conversion.read(original); + if (toReturn === false && result !== false) { + toReturn = result; + result.conversionName = conversionName; + result.conversion = conversion; + return Common.BREAK; + } + }); + return Common.BREAK; + } + }); + return toReturn; +}; + +var tmpComponent = void 0; +var ColorMath = { + hsv_to_rgb: function hsv_to_rgb(h, s, v) { + var hi = Math.floor(h / 60) % 6; + var f = h / 60 - Math.floor(h / 60); + var p = v * (1.0 - s); + var q = v * (1.0 - f * s); + var t = v * (1.0 - (1.0 - f) * s); + var c = [[v, t, p], [q, v, p], [p, v, t], [p, q, v], [t, p, v], [v, p, q]][hi]; + return { + r: c[0] * 255, + g: c[1] * 255, + b: c[2] * 255 + }; + }, + rgb_to_hsv: function rgb_to_hsv(r, g, b) { + var min = Math.min(r, g, b); + var max = Math.max(r, g, b); + var delta = max - min; + var h = void 0; + var s = void 0; + if (max !== 0) { + s = delta / max; + } else { + return { + h: NaN, + s: 0, + v: 0 + }; + } + if (r === max) { + h = (g - b) / delta; + } else if (g === max) { + h = 2 + (b - r) / delta; + } else { + h = 4 + (r - g) / delta; + } + h /= 6; + if (h < 0) { + h += 1; + } + return { + h: h * 360, + s: s, + v: max / 255 + }; + }, + rgb_to_hex: function rgb_to_hex(r, g, b) { + var hex = this.hex_with_component(0, 2, r); + hex = this.hex_with_component(hex, 1, g); + hex = this.hex_with_component(hex, 0, b); + return hex; + }, + component_from_hex: function component_from_hex(hex, componentIndex) { + return hex >> componentIndex * 8 & 0xFF; + }, + hex_with_component: function hex_with_component(hex, componentIndex, value) { + return value << (tmpComponent = componentIndex * 8) | hex & ~(0xFF << tmpComponent); + } +}; + +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { + return typeof obj; +} : function (obj) { + return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; +}; + + + + + + + + + + + +var classCallCheck = function (instance, Constructor) { + if (!(instance instanceof Constructor)) { + throw new TypeError("Cannot call a class as a function"); + } +}; + +var createClass = function () { + function defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + if ("value" in descriptor) descriptor.writable = true; + Object.defineProperty(target, descriptor.key, descriptor); + } + } + + return function (Constructor, protoProps, staticProps) { + if (protoProps) defineProperties(Constructor.prototype, protoProps); + if (staticProps) defineProperties(Constructor, staticProps); + return Constructor; + }; +}(); + + + + + + + +var get = function get(object, property, receiver) { + if (object === null) object = Function.prototype; + var desc = Object.getOwnPropertyDescriptor(object, property); + + if (desc === undefined) { + var parent = Object.getPrototypeOf(object); + + if (parent === null) { + return undefined; + } else { + return get(parent, property, receiver); + } + } else if ("value" in desc) { + return desc.value; + } else { + var getter = desc.get; + + if (getter === undefined) { + return undefined; + } + + return getter.call(receiver); + } +}; + +var inherits = function (subClass, superClass) { + if (typeof superClass !== "function" && superClass !== null) { + throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); + } + + subClass.prototype = Object.create(superClass && superClass.prototype, { + constructor: { + value: subClass, + enumerable: false, + writable: true, + configurable: true + } + }); + if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; +}; + + + + + + + + + + + +var possibleConstructorReturn = function (self, call) { + if (!self) { + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + } + + return call && (typeof call === "object" || typeof call === "function") ? call : self; +}; + +var Color = function () { + function Color() { + classCallCheck(this, Color); + this.__state = interpret.apply(this, arguments); + if (this.__state === false) { + throw new Error('Failed to interpret color arguments'); + } + this.__state.a = this.__state.a || 1; + } + createClass(Color, [{ + key: 'toString', + value: function toString() { + return colorToString(this); + } + }, { + key: 'toHexString', + value: function toHexString() { + return colorToString(this, true); + } + }, { + key: 'toOriginal', + value: function toOriginal() { + return this.__state.conversion.write(this); + } + }]); + return Color; +}(); +function defineRGBComponent(target, component, componentHexIndex) { + Object.defineProperty(target, component, { + get: function get$$1() { + if (this.__state.space === 'RGB') { + return this.__state[component]; + } + Color.recalculateRGB(this, component, componentHexIndex); + return this.__state[component]; + }, + set: function set$$1(v) { + if (this.__state.space !== 'RGB') { + Color.recalculateRGB(this, component, componentHexIndex); + this.__state.space = 'RGB'; + } + this.__state[component] = v; + } + }); +} +function defineHSVComponent(target, component) { + Object.defineProperty(target, component, { + get: function get$$1() { + if (this.__state.space === 'HSV') { + return this.__state[component]; + } + Color.recalculateHSV(this); + return this.__state[component]; + }, + set: function set$$1(v) { + if (this.__state.space !== 'HSV') { + Color.recalculateHSV(this); + this.__state.space = 'HSV'; + } + this.__state[component] = v; + } + }); +} +Color.recalculateRGB = function (color, component, componentHexIndex) { + if (color.__state.space === 'HEX') { + color.__state[component] = ColorMath.component_from_hex(color.__state.hex, componentHexIndex); + } else if (color.__state.space === 'HSV') { + Common.extend(color.__state, ColorMath.hsv_to_rgb(color.__state.h, color.__state.s, color.__state.v)); + } else { + throw new Error('Corrupted color state'); + } +}; +Color.recalculateHSV = function (color) { + var result = ColorMath.rgb_to_hsv(color.r, color.g, color.b); + Common.extend(color.__state, { + s: result.s, + v: result.v + }); + if (!Common.isNaN(result.h)) { + color.__state.h = result.h; + } else if (Common.isUndefined(color.__state.h)) { + color.__state.h = 0; + } +}; +Color.COMPONENTS = ['r', 'g', 'b', 'h', 's', 'v', 'hex', 'a']; +defineRGBComponent(Color.prototype, 'r', 2); +defineRGBComponent(Color.prototype, 'g', 1); +defineRGBComponent(Color.prototype, 'b', 0); +defineHSVComponent(Color.prototype, 'h'); +defineHSVComponent(Color.prototype, 's'); +defineHSVComponent(Color.prototype, 'v'); +Object.defineProperty(Color.prototype, 'a', { + get: function get$$1() { + return this.__state.a; + }, + set: function set$$1(v) { + this.__state.a = v; + } +}); +Object.defineProperty(Color.prototype, 'hex', { + get: function get$$1() { + if (this.__state.space !== 'HEX') { + this.__state.hex = ColorMath.rgb_to_hex(this.r, this.g, this.b); + this.__state.space = 'HEX'; + } + return this.__state.hex; + }, + set: function set$$1(v) { + this.__state.space = 'HEX'; + this.__state.hex = v; + } +}); + +var Controller = function () { + function Controller(object, property) { + classCallCheck(this, Controller); + this.initialValue = object[property]; + this.domElement = document.createElement('div'); + this.object = object; + this.property = property; + this.__onChange = undefined; + this.__onFinishChange = undefined; + } + createClass(Controller, [{ + key: 'onChange', + value: function onChange(fnc) { + this.__onChange = fnc; + return this; + } + }, { + key: 'onFinishChange', + value: function onFinishChange(fnc) { + this.__onFinishChange = fnc; + return this; + } + }, { + key: 'setValue', + value: function setValue(newValue) { + this.object[this.property] = newValue; + if (this.__onChange) { + this.__onChange.call(this, newValue); + } + this.updateDisplay(); + return this; + } + }, { + key: 'getValue', + value: function getValue() { + return this.object[this.property]; + } + }, { + key: 'updateDisplay', + value: function updateDisplay() { + return this; + } + }, { + key: 'isModified', + value: function isModified() { + return this.initialValue !== this.getValue(); + } + }]); + return Controller; +}(); + +var EVENT_MAP = { + HTMLEvents: ['change'], + MouseEvents: ['click', 'mousemove', 'mousedown', 'mouseup', 'mouseover'], + KeyboardEvents: ['keydown'] +}; +var EVENT_MAP_INV = {}; +Common.each(EVENT_MAP, function (v, k) { + Common.each(v, function (e) { + EVENT_MAP_INV[e] = k; + }); +}); +var CSS_VALUE_PIXELS = /(\d+(\.\d+)?)px/; +function cssValueToPixels(val) { + if (val === '0' || Common.isUndefined(val)) { + return 0; + } + var match = val.match(CSS_VALUE_PIXELS); + if (!Common.isNull(match)) { + return parseFloat(match[1]); + } + return 0; +} +var dom = { + makeSelectable: function makeSelectable(elem, selectable) { + if (elem === undefined || elem.style === undefined) return; + elem.onselectstart = selectable ? function () { + return false; + } : function () {}; + elem.style.MozUserSelect = selectable ? 'auto' : 'none'; + elem.style.KhtmlUserSelect = selectable ? 'auto' : 'none'; + elem.unselectable = selectable ? 'on' : 'off'; + }, + makeFullscreen: function makeFullscreen(elem, hor, vert) { + var vertical = vert; + var horizontal = hor; + if (Common.isUndefined(horizontal)) { + horizontal = true; + } + if (Common.isUndefined(vertical)) { + vertical = true; + } + elem.style.position = 'absolute'; + if (horizontal) { + elem.style.left = 0; + elem.style.right = 0; + } + if (vertical) { + elem.style.top = 0; + elem.style.bottom = 0; + } + }, + fakeEvent: function fakeEvent(elem, eventType, pars, aux) { + var params = pars || {}; + var className = EVENT_MAP_INV[eventType]; + if (!className) { + throw new Error('Event type ' + eventType + ' not supported.'); + } + var evt = document.createEvent(className); + switch (className) { + case 'MouseEvents': + { + var clientX = params.x || params.clientX || 0; + var clientY = params.y || params.clientY || 0; + evt.initMouseEvent(eventType, params.bubbles || false, params.cancelable || true, window, params.clickCount || 1, 0, + 0, + clientX, + clientY, + false, false, false, false, 0, null); + break; + } + case 'KeyboardEvents': + { + var init = evt.initKeyboardEvent || evt.initKeyEvent; + Common.defaults(params, { + cancelable: true, + ctrlKey: false, + altKey: false, + shiftKey: false, + metaKey: false, + keyCode: undefined, + charCode: undefined + }); + init(eventType, params.bubbles || false, params.cancelable, window, params.ctrlKey, params.altKey, params.shiftKey, params.metaKey, params.keyCode, params.charCode); + break; + } + default: + { + evt.initEvent(eventType, params.bubbles || false, params.cancelable || true); + break; + } + } + Common.defaults(evt, aux); + elem.dispatchEvent(evt); + }, + bind: function bind(elem, event, func, newBool) { + var bool = newBool || false; + if (elem.addEventListener) { + elem.addEventListener(event, func, bool); + } else if (elem.attachEvent) { + elem.attachEvent('on' + event, func); + } + return dom; + }, + unbind: function unbind(elem, event, func, newBool) { + var bool = newBool || false; + if (elem.removeEventListener) { + elem.removeEventListener(event, func, bool); + } else if (elem.detachEvent) { + elem.detachEvent('on' + event, func); + } + return dom; + }, + addClass: function addClass(elem, className) { + if (elem.className === undefined) { + elem.className = className; + } else if (elem.className !== className) { + var classes = elem.className.split(/ +/); + if (classes.indexOf(className) === -1) { + classes.push(className); + elem.className = classes.join(' ').replace(/^\s+/, '').replace(/\s+$/, ''); + } + } + return dom; + }, + removeClass: function removeClass(elem, className) { + if (className) { + if (elem.className === className) { + elem.removeAttribute('class'); + } else { + var classes = elem.className.split(/ +/); + var index = classes.indexOf(className); + if (index !== -1) { + classes.splice(index, 1); + elem.className = classes.join(' '); + } + } + } else { + elem.className = undefined; + } + return dom; + }, + hasClass: function hasClass(elem, className) { + return new RegExp('(?:^|\\s+)' + className + '(?:\\s+|$)').test(elem.className) || false; + }, + getWidth: function getWidth(elem) { + var style = getComputedStyle(elem); + return cssValueToPixels(style['border-left-width']) + cssValueToPixels(style['border-right-width']) + cssValueToPixels(style['padding-left']) + cssValueToPixels(style['padding-right']) + cssValueToPixels(style.width); + }, + getHeight: function getHeight(elem) { + var style = getComputedStyle(elem); + return cssValueToPixels(style['border-top-width']) + cssValueToPixels(style['border-bottom-width']) + cssValueToPixels(style['padding-top']) + cssValueToPixels(style['padding-bottom']) + cssValueToPixels(style.height); + }, + getOffset: function getOffset(el) { + var elem = el; + var offset = { left: 0, top: 0 }; + if (elem.offsetParent) { + do { + offset.left += elem.offsetLeft; + offset.top += elem.offsetTop; + elem = elem.offsetParent; + } while (elem); + } + return offset; + }, + isActive: function isActive(elem) { + return elem === document.activeElement && (elem.type || elem.href); + } +}; + +var BooleanController = function (_Controller) { + inherits(BooleanController, _Controller); + function BooleanController(object, property) { + classCallCheck(this, BooleanController); + var _this2 = possibleConstructorReturn(this, (BooleanController.__proto__ || Object.getPrototypeOf(BooleanController)).call(this, object, property)); + var _this = _this2; + _this2.__prev = _this2.getValue(); + _this2.__checkbox = document.createElement('input'); + _this2.__checkbox.setAttribute('type', 'checkbox'); + function onChange() { + _this.setValue(!_this.__prev); + } + dom.bind(_this2.__checkbox, 'change', onChange, false); + _this2.domElement.appendChild(_this2.__checkbox); + _this2.updateDisplay(); + return _this2; + } + createClass(BooleanController, [{ + key: 'setValue', + value: function setValue(v) { + var toReturn = get(BooleanController.prototype.__proto__ || Object.getPrototypeOf(BooleanController.prototype), 'setValue', this).call(this, v); + if (this.__onFinishChange) { + this.__onFinishChange.call(this, this.getValue()); + } + this.__prev = this.getValue(); + return toReturn; + } + }, { + key: 'updateDisplay', + value: function updateDisplay() { + if (this.getValue() === true) { + this.__checkbox.setAttribute('checked', 'checked'); + this.__checkbox.checked = true; + this.__prev = true; + } else { + this.__checkbox.checked = false; + this.__prev = false; + } + return get(BooleanController.prototype.__proto__ || Object.getPrototypeOf(BooleanController.prototype), 'updateDisplay', this).call(this); + } + }]); + return BooleanController; +}(Controller); + +var OptionController = function (_Controller) { + inherits(OptionController, _Controller); + function OptionController(object, property, opts) { + classCallCheck(this, OptionController); + var _this2 = possibleConstructorReturn(this, (OptionController.__proto__ || Object.getPrototypeOf(OptionController)).call(this, object, property)); + var options = opts; + var _this = _this2; + _this2.__select = document.createElement('select'); + if (Common.isArray(options)) { + var map = {}; + Common.each(options, function (element) { + map[element] = element; + }); + options = map; + } + Common.each(options, function (value, key) { + var opt = document.createElement('option'); + opt.innerHTML = key; + opt.setAttribute('value', value); + _this.__select.appendChild(opt); + }); + _this2.updateDisplay(); + dom.bind(_this2.__select, 'change', function () { + var desiredValue = this.options[this.selectedIndex].value; + _this.setValue(desiredValue); + }); + _this2.domElement.appendChild(_this2.__select); + return _this2; + } + createClass(OptionController, [{ + key: 'setValue', + value: function setValue(v) { + var toReturn = get(OptionController.prototype.__proto__ || Object.getPrototypeOf(OptionController.prototype), 'setValue', this).call(this, v); + if (this.__onFinishChange) { + this.__onFinishChange.call(this, this.getValue()); + } + return toReturn; + } + }, { + key: 'updateDisplay', + value: function updateDisplay() { + if (dom.isActive(this.__select)) return this; + this.__select.value = this.getValue(); + return get(OptionController.prototype.__proto__ || Object.getPrototypeOf(OptionController.prototype), 'updateDisplay', this).call(this); + } + }]); + return OptionController; +}(Controller); + +var StringController = function (_Controller) { + inherits(StringController, _Controller); + function StringController(object, property) { + classCallCheck(this, StringController); + var _this2 = possibleConstructorReturn(this, (StringController.__proto__ || Object.getPrototypeOf(StringController)).call(this, object, property)); + var _this = _this2; + function onChange() { + _this.setValue(_this.__input.value); + } + function onBlur() { + if (_this.__onFinishChange) { + _this.__onFinishChange.call(_this, _this.getValue()); + } + } + _this2.__input = document.createElement('input'); + _this2.__input.setAttribute('type', 'text'); + dom.bind(_this2.__input, 'keyup', onChange); + dom.bind(_this2.__input, 'change', onChange); + dom.bind(_this2.__input, 'blur', onBlur); + dom.bind(_this2.__input, 'keydown', function (e) { + if (e.keyCode === 13) { + this.blur(); + } + }); + _this2.updateDisplay(); + _this2.domElement.appendChild(_this2.__input); + return _this2; + } + createClass(StringController, [{ + key: 'updateDisplay', + value: function updateDisplay() { + if (!dom.isActive(this.__input)) { + this.__input.value = this.getValue(); + } + return get(StringController.prototype.__proto__ || Object.getPrototypeOf(StringController.prototype), 'updateDisplay', this).call(this); + } + }]); + return StringController; +}(Controller); + +function numDecimals(x) { + var _x = x.toString(); + if (_x.indexOf('.') > -1) { + return _x.length - _x.indexOf('.') - 1; + } + return 0; +} +var NumberController = function (_Controller) { + inherits(NumberController, _Controller); + function NumberController(object, property, params) { + classCallCheck(this, NumberController); + var _this = possibleConstructorReturn(this, (NumberController.__proto__ || Object.getPrototypeOf(NumberController)).call(this, object, property)); + var _params = params || {}; + _this.__min = _params.min; + _this.__max = _params.max; + _this.__step = _params.step; + if (Common.isUndefined(_this.__step)) { + if (_this.initialValue === 0) { + _this.__impliedStep = 1; + } else { + _this.__impliedStep = Math.pow(10, Math.floor(Math.log(Math.abs(_this.initialValue)) / Math.LN10)) / 10; + } + } else { + _this.__impliedStep = _this.__step; + } + _this.__precision = numDecimals(_this.__impliedStep); + return _this; + } + createClass(NumberController, [{ + key: 'setValue', + value: function setValue(v) { + var _v = v; + if (this.__min !== undefined && _v < this.__min) { + _v = this.__min; + } else if (this.__max !== undefined && _v > this.__max) { + _v = this.__max; + } + if (this.__step !== undefined && _v % this.__step !== 0) { + _v = Math.round(_v / this.__step) * this.__step; + } + return get(NumberController.prototype.__proto__ || Object.getPrototypeOf(NumberController.prototype), 'setValue', this).call(this, _v); + } + }, { + key: 'min', + value: function min(minValue) { + this.__min = minValue; + return this; + } + }, { + key: 'max', + value: function max(maxValue) { + this.__max = maxValue; + return this; + } + }, { + key: 'step', + value: function step(stepValue) { + this.__step = stepValue; + this.__impliedStep = stepValue; + this.__precision = numDecimals(stepValue); + return this; + } + }]); + return NumberController; +}(Controller); + +function roundToDecimal(value, decimals) { + var tenTo = Math.pow(10, decimals); + return Math.round(value * tenTo) / tenTo; +} +var NumberControllerBox = function (_NumberController) { + inherits(NumberControllerBox, _NumberController); + function NumberControllerBox(object, property, params) { + classCallCheck(this, NumberControllerBox); + var _this2 = possibleConstructorReturn(this, (NumberControllerBox.__proto__ || Object.getPrototypeOf(NumberControllerBox)).call(this, object, property, params)); + _this2.__truncationSuspended = false; + var _this = _this2; + var prevY = void 0; + function onChange() { + var attempted = parseFloat(_this.__input.value); + if (!Common.isNaN(attempted)) { + _this.setValue(attempted); + } + } + function onFinish() { + if (_this.__onFinishChange) { + _this.__onFinishChange.call(_this, _this.getValue()); + } + } + function onBlur() { + onFinish(); + } + function onMouseDrag(e) { + var diff = prevY - e.clientY; + _this.setValue(_this.getValue() + diff * _this.__impliedStep); + prevY = e.clientY; + } + function onMouseUp() { + dom.unbind(window, 'mousemove', onMouseDrag); + dom.unbind(window, 'mouseup', onMouseUp); + onFinish(); + } + function onMouseDown(e) { + dom.bind(window, 'mousemove', onMouseDrag); + dom.bind(window, 'mouseup', onMouseUp); + prevY = e.clientY; + } + _this2.__input = document.createElement('input'); + _this2.__input.setAttribute('type', 'text'); + dom.bind(_this2.__input, 'change', onChange); + dom.bind(_this2.__input, 'blur', onBlur); + dom.bind(_this2.__input, 'mousedown', onMouseDown); + dom.bind(_this2.__input, 'keydown', function (e) { + if (e.keyCode === 13) { + _this.__truncationSuspended = true; + this.blur(); + _this.__truncationSuspended = false; + onFinish(); + } + }); + _this2.updateDisplay(); + _this2.domElement.appendChild(_this2.__input); + return _this2; + } + createClass(NumberControllerBox, [{ + key: 'updateDisplay', + value: function updateDisplay() { + this.__input.value = this.__truncationSuspended ? this.getValue() : roundToDecimal(this.getValue(), this.__precision); + return get(NumberControllerBox.prototype.__proto__ || Object.getPrototypeOf(NumberControllerBox.prototype), 'updateDisplay', this).call(this); + } + }]); + return NumberControllerBox; +}(NumberController); + +function map(v, i1, i2, o1, o2) { + return o1 + (o2 - o1) * ((v - i1) / (i2 - i1)); +} +var NumberControllerSlider = function (_NumberController) { + inherits(NumberControllerSlider, _NumberController); + function NumberControllerSlider(object, property, min, max, step) { + classCallCheck(this, NumberControllerSlider); + var _this2 = possibleConstructorReturn(this, (NumberControllerSlider.__proto__ || Object.getPrototypeOf(NumberControllerSlider)).call(this, object, property, { min: min, max: max, step: step })); + var _this = _this2; + _this2.__background = document.createElement('div'); + _this2.__foreground = document.createElement('div'); + dom.bind(_this2.__background, 'mousedown', onMouseDown); + dom.bind(_this2.__background, 'touchstart', onTouchStart); + dom.addClass(_this2.__background, 'slider'); + dom.addClass(_this2.__foreground, 'slider-fg'); + function onMouseDown(e) { + document.activeElement.blur(); + dom.bind(window, 'mousemove', onMouseDrag); + dom.bind(window, 'mouseup', onMouseUp); + onMouseDrag(e); + } + function onMouseDrag(e) { + e.preventDefault(); + var bgRect = _this.__background.getBoundingClientRect(); + _this.setValue(map(e.clientX, bgRect.left, bgRect.right, _this.__min, _this.__max)); + return false; + } + function onMouseUp() { + dom.unbind(window, 'mousemove', onMouseDrag); + dom.unbind(window, 'mouseup', onMouseUp); + if (_this.__onFinishChange) { + _this.__onFinishChange.call(_this, _this.getValue()); + } + } + function onTouchStart(e) { + if (e.touches.length !== 1) { + return; + } + dom.bind(window, 'touchmove', onTouchMove); + dom.bind(window, 'touchend', onTouchEnd); + onTouchMove(e); + } + function onTouchMove(e) { + var clientX = e.touches[0].clientX; + var bgRect = _this.__background.getBoundingClientRect(); + _this.setValue(map(clientX, bgRect.left, bgRect.right, _this.__min, _this.__max)); + } + function onTouchEnd() { + dom.unbind(window, 'touchmove', onTouchMove); + dom.unbind(window, 'touchend', onTouchEnd); + if (_this.__onFinishChange) { + _this.__onFinishChange.call(_this, _this.getValue()); + } + } + _this2.updateDisplay(); + _this2.__background.appendChild(_this2.__foreground); + _this2.domElement.appendChild(_this2.__background); + return _this2; + } + createClass(NumberControllerSlider, [{ + key: 'updateDisplay', + value: function updateDisplay() { + var pct = (this.getValue() - this.__min) / (this.__max - this.__min); + this.__foreground.style.width = pct * 100 + '%'; + return get(NumberControllerSlider.prototype.__proto__ || Object.getPrototypeOf(NumberControllerSlider.prototype), 'updateDisplay', this).call(this); + } + }]); + return NumberControllerSlider; +}(NumberController); + +var FunctionController = function (_Controller) { + inherits(FunctionController, _Controller); + function FunctionController(object, property, text) { + classCallCheck(this, FunctionController); + var _this2 = possibleConstructorReturn(this, (FunctionController.__proto__ || Object.getPrototypeOf(FunctionController)).call(this, object, property)); + var _this = _this2; + _this2.__button = document.createElement('div'); + _this2.__button.innerHTML = text === undefined ? 'Fire' : text; + dom.bind(_this2.__button, 'click', function (e) { + e.preventDefault(); + _this.fire(); + return false; + }); + dom.addClass(_this2.__button, 'button'); + _this2.domElement.appendChild(_this2.__button); + return _this2; + } + createClass(FunctionController, [{ + key: 'fire', + value: function fire() { + if (this.__onChange) { + this.__onChange.call(this); + } + this.getValue().call(this.object); + if (this.__onFinishChange) { + this.__onFinishChange.call(this, this.getValue()); + } + } + }]); + return FunctionController; +}(Controller); + +var ColorController = function (_Controller) { + inherits(ColorController, _Controller); + function ColorController(object, property) { + classCallCheck(this, ColorController); + var _this2 = possibleConstructorReturn(this, (ColorController.__proto__ || Object.getPrototypeOf(ColorController)).call(this, object, property)); + _this2.__color = new Color(_this2.getValue()); + _this2.__temp = new Color(0); + var _this = _this2; + _this2.domElement = document.createElement('div'); + dom.makeSelectable(_this2.domElement, false); + _this2.__selector = document.createElement('div'); + _this2.__selector.className = 'selector'; + _this2.__saturation_field = document.createElement('div'); + _this2.__saturation_field.className = 'saturation-field'; + _this2.__field_knob = document.createElement('div'); + _this2.__field_knob.className = 'field-knob'; + _this2.__field_knob_border = '2px solid '; + _this2.__hue_knob = document.createElement('div'); + _this2.__hue_knob.className = 'hue-knob'; + _this2.__hue_field = document.createElement('div'); + _this2.__hue_field.className = 'hue-field'; + _this2.__input = document.createElement('input'); + _this2.__input.type = 'text'; + _this2.__input_textShadow = '0 1px 1px '; + dom.bind(_this2.__input, 'keydown', function (e) { + if (e.keyCode === 13) { + onBlur.call(this); + } + }); + dom.bind(_this2.__input, 'blur', onBlur); + dom.bind(_this2.__selector, 'mousedown', function () { + dom.addClass(this, 'drag').bind(window, 'mouseup', function () { + dom.removeClass(_this.__selector, 'drag'); + }); + }); + dom.bind(_this2.__selector, 'touchstart', function () { + dom.addClass(this, 'drag').bind(window, 'touchend', function () { + dom.removeClass(_this.__selector, 'drag'); + }); + }); + var valueField = document.createElement('div'); + Common.extend(_this2.__selector.style, { + width: '122px', + height: '102px', + padding: '3px', + backgroundColor: '#222', + boxShadow: '0px 1px 3px rgba(0,0,0,0.3)' + }); + Common.extend(_this2.__field_knob.style, { + position: 'absolute', + width: '12px', + height: '12px', + border: _this2.__field_knob_border + (_this2.__color.v < 0.5 ? '#fff' : '#000'), + boxShadow: '0px 1px 3px rgba(0,0,0,0.5)', + borderRadius: '12px', + zIndex: 1 + }); + Common.extend(_this2.__hue_knob.style, { + position: 'absolute', + width: '15px', + height: '2px', + borderRight: '4px solid #fff', + zIndex: 1 + }); + Common.extend(_this2.__saturation_field.style, { + width: '100px', + height: '100px', + border: '1px solid #555', + marginRight: '3px', + display: 'inline-block', + cursor: 'pointer' + }); + Common.extend(valueField.style, { + width: '100%', + height: '100%', + background: 'none' + }); + linearGradient(valueField, 'top', 'rgba(0,0,0,0)', '#000'); + Common.extend(_this2.__hue_field.style, { + width: '15px', + height: '100px', + border: '1px solid #555', + cursor: 'ns-resize', + position: 'absolute', + top: '3px', + right: '3px' + }); + hueGradient(_this2.__hue_field); + Common.extend(_this2.__input.style, { + outline: 'none', + textAlign: 'center', + color: '#fff', + border: 0, + fontWeight: 'bold', + textShadow: _this2.__input_textShadow + 'rgba(0,0,0,0.7)' + }); + dom.bind(_this2.__saturation_field, 'mousedown', fieldDown); + dom.bind(_this2.__saturation_field, 'touchstart', fieldDown); + dom.bind(_this2.__field_knob, 'mousedown', fieldDown); + dom.bind(_this2.__field_knob, 'touchstart', fieldDown); + dom.bind(_this2.__hue_field, 'mousedown', fieldDownH); + dom.bind(_this2.__hue_field, 'touchstart', fieldDownH); + function fieldDown(e) { + setSV(e); + dom.bind(window, 'mousemove', setSV); + dom.bind(window, 'touchmove', setSV); + dom.bind(window, 'mouseup', fieldUpSV); + dom.bind(window, 'touchend', fieldUpSV); + } + function fieldDownH(e) { + setH(e); + dom.bind(window, 'mousemove', setH); + dom.bind(window, 'touchmove', setH); + dom.bind(window, 'mouseup', fieldUpH); + dom.bind(window, 'touchend', fieldUpH); + } + function fieldUpSV() { + dom.unbind(window, 'mousemove', setSV); + dom.unbind(window, 'touchmove', setSV); + dom.unbind(window, 'mouseup', fieldUpSV); + dom.unbind(window, 'touchend', fieldUpSV); + onFinish(); + } + function fieldUpH() { + dom.unbind(window, 'mousemove', setH); + dom.unbind(window, 'touchmove', setH); + dom.unbind(window, 'mouseup', fieldUpH); + dom.unbind(window, 'touchend', fieldUpH); + onFinish(); + } + function onBlur() { + var i = interpret(this.value); + if (i !== false) { + _this.__color.__state = i; + _this.setValue(_this.__color.toOriginal()); + } else { + this.value = _this.__color.toString(); + } + } + function onFinish() { + if (_this.__onFinishChange) { + _this.__onFinishChange.call(_this, _this.__color.toOriginal()); + } + } + _this2.__saturation_field.appendChild(valueField); + _this2.__selector.appendChild(_this2.__field_knob); + _this2.__selector.appendChild(_this2.__saturation_field); + _this2.__selector.appendChild(_this2.__hue_field); + _this2.__hue_field.appendChild(_this2.__hue_knob); + _this2.domElement.appendChild(_this2.__input); + _this2.domElement.appendChild(_this2.__selector); + _this2.updateDisplay(); + function setSV(e) { + if (e.type.indexOf('touch') === -1) { + e.preventDefault(); + } + var fieldRect = _this.__saturation_field.getBoundingClientRect(); + var _ref = e.touches && e.touches[0] || e, + clientX = _ref.clientX, + clientY = _ref.clientY; + var s = (clientX - fieldRect.left) / (fieldRect.right - fieldRect.left); + var v = 1 - (clientY - fieldRect.top) / (fieldRect.bottom - fieldRect.top); + if (v > 1) { + v = 1; + } else if (v < 0) { + v = 0; + } + if (s > 1) { + s = 1; + } else if (s < 0) { + s = 0; + } + _this.__color.v = v; + _this.__color.s = s; + _this.setValue(_this.__color.toOriginal()); + return false; + } + function setH(e) { + if (e.type.indexOf('touch') === -1) { + e.preventDefault(); + } + var fieldRect = _this.__hue_field.getBoundingClientRect(); + var _ref2 = e.touches && e.touches[0] || e, + clientY = _ref2.clientY; + var h = 1 - (clientY - fieldRect.top) / (fieldRect.bottom - fieldRect.top); + if (h > 1) { + h = 1; + } else if (h < 0) { + h = 0; + } + _this.__color.h = h * 360; + _this.setValue(_this.__color.toOriginal()); + return false; + } + return _this2; + } + createClass(ColorController, [{ + key: 'updateDisplay', + value: function updateDisplay() { + var i = interpret(this.getValue()); + if (i !== false) { + var mismatch = false; + Common.each(Color.COMPONENTS, function (component) { + if (!Common.isUndefined(i[component]) && !Common.isUndefined(this.__color.__state[component]) && i[component] !== this.__color.__state[component]) { + mismatch = true; + return {}; + } + }, this); + if (mismatch) { + Common.extend(this.__color.__state, i); + } + } + Common.extend(this.__temp.__state, this.__color.__state); + this.__temp.a = 1; + var flip = this.__color.v < 0.5 || this.__color.s > 0.5 ? 255 : 0; + var _flip = 255 - flip; + Common.extend(this.__field_knob.style, { + marginLeft: 100 * this.__color.s - 7 + 'px', + marginTop: 100 * (1 - this.__color.v) - 7 + 'px', + backgroundColor: this.__temp.toHexString(), + border: this.__field_knob_border + 'rgb(' + flip + ',' + flip + ',' + flip + ')' + }); + this.__hue_knob.style.marginTop = (1 - this.__color.h / 360) * 100 + 'px'; + this.__temp.s = 1; + this.__temp.v = 1; + linearGradient(this.__saturation_field, 'left', '#fff', this.__temp.toHexString()); + this.__input.value = this.__color.toString(); + Common.extend(this.__input.style, { + backgroundColor: this.__color.toHexString(), + color: 'rgb(' + flip + ',' + flip + ',' + flip + ')', + textShadow: this.__input_textShadow + 'rgba(' + _flip + ',' + _flip + ',' + _flip + ',.7)' + }); + } + }]); + return ColorController; +}(Controller); +var vendors = ['-moz-', '-o-', '-webkit-', '-ms-', '']; +function linearGradient(elem, x, a, b) { + elem.style.background = ''; + Common.each(vendors, function (vendor) { + elem.style.cssText += 'background: ' + vendor + 'linear-gradient(' + x + ', ' + a + ' 0%, ' + b + ' 100%); '; + }); +} +function hueGradient(elem) { + elem.style.background = ''; + elem.style.cssText += 'background: -moz-linear-gradient(top, #ff0000 0%, #ff00ff 17%, #0000ff 34%, #00ffff 50%, #00ff00 67%, #ffff00 84%, #ff0000 100%);'; + elem.style.cssText += 'background: -webkit-linear-gradient(top, #ff0000 0%,#ff00ff 17%,#0000ff 34%,#00ffff 50%,#00ff00 67%,#ffff00 84%,#ff0000 100%);'; + elem.style.cssText += 'background: -o-linear-gradient(top, #ff0000 0%,#ff00ff 17%,#0000ff 34%,#00ffff 50%,#00ff00 67%,#ffff00 84%,#ff0000 100%);'; + elem.style.cssText += 'background: -ms-linear-gradient(top, #ff0000 0%,#ff00ff 17%,#0000ff 34%,#00ffff 50%,#00ff00 67%,#ffff00 84%,#ff0000 100%);'; + elem.style.cssText += 'background: linear-gradient(top, #ff0000 0%,#ff00ff 17%,#0000ff 34%,#00ffff 50%,#00ff00 67%,#ffff00 84%,#ff0000 100%);'; +} + +var css = { + load: function load(url, indoc) { + var doc = indoc || document; + var link = doc.createElement('link'); + link.type = 'text/css'; + link.rel = 'stylesheet'; + link.href = url; + doc.getElementsByTagName('head')[0].appendChild(link); + }, + inject: function inject(cssContent, indoc) { + var doc = indoc || document; + var injected = document.createElement('style'); + injected.type = 'text/css'; + injected.innerHTML = cssContent; + var head = doc.getElementsByTagName('head')[0]; + try { + head.appendChild(injected); + } catch (e) { + } + } +}; + +var saveDialogContents = "
\n\n Here's the new load parameter for your GUI's constructor:\n\n \n\n
\n\n Automatically save\n values to localStorage on exit.\n\n
The values saved to localStorage will\n override those passed to dat.GUI's constructor. This makes it\n easier to work incrementally, but localStorage is fragile,\n and your friends may not see the same values you do.\n\n
\n\n
\n\n
"; + +var ControllerFactory = function ControllerFactory(object, property) { + var initialValue = object[property]; + if (Common.isArray(arguments[2]) || Common.isObject(arguments[2])) { + return new OptionController(object, property, arguments[2]); + } + if (Common.isNumber(initialValue)) { + if (Common.isNumber(arguments[2]) && Common.isNumber(arguments[3])) { + if (Common.isNumber(arguments[4])) { + return new NumberControllerSlider(object, property, arguments[2], arguments[3], arguments[4]); + } + return new NumberControllerSlider(object, property, arguments[2], arguments[3]); + } + if (Common.isNumber(arguments[4])) { + return new NumberControllerBox(object, property, { min: arguments[2], max: arguments[3], step: arguments[4] }); + } + return new NumberControllerBox(object, property, { min: arguments[2], max: arguments[3] }); + } + if (Common.isString(initialValue)) { + return new StringController(object, property); + } + if (Common.isFunction(initialValue)) { + return new FunctionController(object, property, ''); + } + if (Common.isBoolean(initialValue)) { + return new BooleanController(object, property); + } + return null; +}; + +function requestAnimationFrame(callback) { + setTimeout(callback, 1000 / 60); +} +var requestAnimationFrame$1 = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || requestAnimationFrame; + +var CenteredDiv = function () { + function CenteredDiv() { + classCallCheck(this, CenteredDiv); + this.backgroundElement = document.createElement('div'); + Common.extend(this.backgroundElement.style, { + backgroundColor: 'rgba(0,0,0,0.8)', + top: 0, + left: 0, + display: 'none', + zIndex: '1000', + opacity: 0, + WebkitTransition: 'opacity 0.2s linear', + transition: 'opacity 0.2s linear' + }); + dom.makeFullscreen(this.backgroundElement); + this.backgroundElement.style.position = 'fixed'; + this.domElement = document.createElement('div'); + Common.extend(this.domElement.style, { + position: 'fixed', + display: 'none', + zIndex: '1001', + opacity: 0, + WebkitTransition: '-webkit-transform 0.2s ease-out, opacity 0.2s linear', + transition: 'transform 0.2s ease-out, opacity 0.2s linear' + }); + document.body.appendChild(this.backgroundElement); + document.body.appendChild(this.domElement); + var _this = this; + dom.bind(this.backgroundElement, 'click', function () { + _this.hide(); + }); + } + createClass(CenteredDiv, [{ + key: 'show', + value: function show() { + var _this = this; + this.backgroundElement.style.display = 'block'; + this.domElement.style.display = 'block'; + this.domElement.style.opacity = 0; + this.domElement.style.webkitTransform = 'scale(1.1)'; + this.layout(); + Common.defer(function () { + _this.backgroundElement.style.opacity = 1; + _this.domElement.style.opacity = 1; + _this.domElement.style.webkitTransform = 'scale(1)'; + }); + } + }, { + key: 'hide', + value: function hide() { + var _this = this; + var hide = function hide() { + _this.domElement.style.display = 'none'; + _this.backgroundElement.style.display = 'none'; + dom.unbind(_this.domElement, 'webkitTransitionEnd', hide); + dom.unbind(_this.domElement, 'transitionend', hide); + dom.unbind(_this.domElement, 'oTransitionEnd', hide); + }; + dom.bind(this.domElement, 'webkitTransitionEnd', hide); + dom.bind(this.domElement, 'transitionend', hide); + dom.bind(this.domElement, 'oTransitionEnd', hide); + this.backgroundElement.style.opacity = 0; + this.domElement.style.opacity = 0; + this.domElement.style.webkitTransform = 'scale(1.1)'; + } + }, { + key: 'layout', + value: function layout() { + this.domElement.style.left = window.innerWidth / 2 - dom.getWidth(this.domElement) / 2 + 'px'; + this.domElement.style.top = window.innerHeight / 2 - dom.getHeight(this.domElement) / 2 + 'px'; + } + }]); + return CenteredDiv; +}(); + +var styleSheet = ___$insertStyle(".dg ul{list-style:none;margin:0;padding:0;width:100%;clear:both}.dg.ac{position:fixed;top:0;left:0;right:0;height:0;z-index:0}.dg:not(.ac) .main{overflow:hidden}.dg.main{-webkit-transition:opacity .1s linear;-o-transition:opacity .1s linear;-moz-transition:opacity .1s linear;transition:opacity .1s linear}.dg.main.taller-than-window{overflow-y:auto}.dg.main.taller-than-window .close-button{opacity:1;margin-top:-1px;border-top:1px solid #2c2c2c}.dg.main ul.closed .close-button{opacity:1 !important}.dg.main:hover .close-button,.dg.main .close-button.drag{opacity:1}.dg.main .close-button{-webkit-transition:opacity .1s linear;-o-transition:opacity .1s linear;-moz-transition:opacity .1s linear;transition:opacity .1s linear;border:0;line-height:19px;height:20px;cursor:pointer;text-align:center;background-color:#000}.dg.main .close-button.close-top{position:relative}.dg.main .close-button.close-bottom{position:absolute}.dg.main .close-button:hover{background-color:#111}.dg.a{float:right;margin-right:15px;overflow-y:visible}.dg.a.has-save>ul.close-top{margin-top:0}.dg.a.has-save>ul.close-bottom{margin-top:27px}.dg.a.has-save>ul.closed{margin-top:0}.dg.a .save-row{top:0;z-index:1002}.dg.a .save-row.close-top{position:relative}.dg.a .save-row.close-bottom{position:fixed}.dg li{-webkit-transition:height .1s ease-out;-o-transition:height .1s ease-out;-moz-transition:height .1s ease-out;transition:height .1s ease-out;-webkit-transition:overflow .1s linear;-o-transition:overflow .1s linear;-moz-transition:overflow .1s linear;transition:overflow .1s linear}.dg li:not(.folder){cursor:auto;height:27px;line-height:27px;padding:0 4px 0 5px}.dg li.folder{padding:0;border-left:4px solid rgba(0,0,0,0)}.dg li.title{cursor:pointer;margin-left:-4px}.dg .closed li:not(.title),.dg .closed ul li,.dg .closed ul li>*{height:0;overflow:hidden;border:0}.dg .cr{clear:both;padding-left:3px;height:27px;overflow:hidden}.dg .property-name{cursor:default;float:left;clear:left;width:40%;overflow:hidden;text-overflow:ellipsis}.dg .c{float:left;width:60%;position:relative}.dg .c input[type=text]{border:0;margin-top:4px;padding:3px;width:100%;float:right}.dg .has-slider input[type=text]{width:30%;margin-left:0}.dg .slider{float:left;width:66%;margin-left:-5px;margin-right:0;height:19px;margin-top:4px}.dg .slider-fg{height:100%}.dg .c input[type=checkbox]{margin-top:7px}.dg .c select{margin-top:5px}.dg .cr.function,.dg .cr.function .property-name,.dg .cr.function *,.dg .cr.boolean,.dg .cr.boolean *{cursor:pointer}.dg .cr.color{overflow:visible}.dg .selector{display:none;position:absolute;margin-left:-9px;margin-top:23px;z-index:10}.dg .c:hover .selector,.dg .selector.drag{display:block}.dg li.save-row{padding:0}.dg li.save-row .button{display:inline-block;padding:0px 6px}.dg.dialogue{background-color:#222;width:460px;padding:15px;font-size:13px;line-height:15px}#dg-new-constructor{padding:10px;color:#222;font-family:Monaco, monospace;font-size:10px;border:0;resize:none;box-shadow:inset 1px 1px 1px #888;word-wrap:break-word;margin:12px 0;display:block;width:440px;overflow-y:scroll;height:100px;position:relative}#dg-local-explain{display:none;font-size:11px;line-height:17px;border-radius:3px;background-color:#333;padding:8px;margin-top:10px}#dg-local-explain code{font-size:10px}#dat-gui-save-locally{display:none}.dg{color:#eee;font:11px 'Lucida Grande', sans-serif;text-shadow:0 -1px 0 #111}.dg.main::-webkit-scrollbar{width:5px;background:#1a1a1a}.dg.main::-webkit-scrollbar-corner{height:0;display:none}.dg.main::-webkit-scrollbar-thumb{border-radius:5px;background:#676767}.dg li:not(.folder){background:#1a1a1a;border-bottom:1px solid #2c2c2c}.dg li.save-row{line-height:25px;background:#dad5cb;border:0}.dg li.save-row select{margin-left:5px;width:108px}.dg li.save-row .button{margin-left:5px;margin-top:1px;border-radius:2px;font-size:9px;line-height:7px;padding:4px 4px 5px 4px;background:#c5bdad;color:#fff;text-shadow:0 1px 0 #b0a58f;box-shadow:0 -1px 0 #b0a58f;cursor:pointer}.dg li.save-row .button.gears{background:#c5bdad url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAANCAYAAAB/9ZQ7AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAQJJREFUeNpiYKAU/P//PwGIC/ApCABiBSAW+I8AClAcgKxQ4T9hoMAEUrxx2QSGN6+egDX+/vWT4e7N82AMYoPAx/evwWoYoSYbACX2s7KxCxzcsezDh3evFoDEBYTEEqycggWAzA9AuUSQQgeYPa9fPv6/YWm/Acx5IPb7ty/fw+QZblw67vDs8R0YHyQhgObx+yAJkBqmG5dPPDh1aPOGR/eugW0G4vlIoTIfyFcA+QekhhHJhPdQxbiAIguMBTQZrPD7108M6roWYDFQiIAAv6Aow/1bFwXgis+f2LUAynwoIaNcz8XNx3Dl7MEJUDGQpx9gtQ8YCueB+D26OECAAQDadt7e46D42QAAAABJRU5ErkJggg==) 2px 1px no-repeat;height:7px;width:8px}.dg li.save-row .button:hover{background-color:#bab19e;box-shadow:0 -1px 0 #b0a58f}.dg li.folder{border-bottom:0}.dg li.title{padding-left:16px;background:#000 url(data:image/gif;base64,R0lGODlhBQAFAJEAAP////Pz8////////yH5BAEAAAIALAAAAAAFAAUAAAIIlI+hKgFxoCgAOw==) 6px 10px no-repeat;cursor:pointer;border-bottom:1px solid rgba(255,255,255,0.2)}.dg .closed li.title{background-image:url(data:image/gif;base64,R0lGODlhBQAFAJEAAP////Pz8////////yH5BAEAAAIALAAAAAAFAAUAAAIIlGIWqMCbWAEAOw==)}.dg .cr.boolean{border-left:3px solid #806787}.dg .cr.color{border-left:3px solid}.dg .cr.function{border-left:3px solid #e61d5f}.dg .cr.number{border-left:3px solid #2FA1D6}.dg .cr.number input[type=text]{color:#2FA1D6}.dg .cr.string{border-left:3px solid #1ed36f}.dg .cr.string input[type=text]{color:#1ed36f}.dg .cr.function:hover,.dg .cr.boolean:hover{background:#111}.dg .c input[type=text]{background:#303030;outline:none}.dg .c input[type=text]:hover{background:#3c3c3c}.dg .c input[type=text]:focus{background:#494949;color:#fff}.dg .c .slider{background:#303030;cursor:ew-resize}.dg .c .slider-fg{background:#2FA1D6;max-width:100%}.dg .c .slider:hover{background:#3c3c3c}.dg .c .slider:hover .slider-fg{background:#44abda}\n"); + +css.inject(styleSheet); +var CSS_NAMESPACE = 'dg'; +var HIDE_KEY_CODE = 72; +var CLOSE_BUTTON_HEIGHT = 20; +var DEFAULT_DEFAULT_PRESET_NAME = 'Default'; +var SUPPORTS_LOCAL_STORAGE = function () { + try { + return !!window.localStorage; + } catch (e) { + return false; + } +}(); +var SAVE_DIALOGUE = void 0; +var autoPlaceVirgin = true; +var autoPlaceContainer = void 0; +var hide = false; +var hideableGuis = []; +var GUI = function GUI(pars) { + var _this = this; + var params = pars || {}; + this.domElement = document.createElement('div'); + this.__ul = document.createElement('ul'); + this.domElement.appendChild(this.__ul); + dom.addClass(this.domElement, CSS_NAMESPACE); + this.__folders = {}; + this.__controllers = []; + this.__rememberedObjects = []; + this.__rememberedObjectIndecesToControllers = []; + this.__listening = []; + params = Common.defaults(params, { + closeOnTop: false, + autoPlace: true, + width: GUI.DEFAULT_WIDTH + }); + params = Common.defaults(params, { + resizable: params.autoPlace, + hideable: params.autoPlace + }); + if (!Common.isUndefined(params.load)) { + if (params.preset) { + params.load.preset = params.preset; + } + } else { + params.load = { preset: DEFAULT_DEFAULT_PRESET_NAME }; + } + if (Common.isUndefined(params.parent) && params.hideable) { + hideableGuis.push(this); + } + params.resizable = Common.isUndefined(params.parent) && params.resizable; + if (params.autoPlace && Common.isUndefined(params.scrollable)) { + params.scrollable = true; + } + var useLocalStorage = SUPPORTS_LOCAL_STORAGE && localStorage.getItem(getLocalStorageHash(this, 'isLocal')) === 'true'; + var saveToLocalStorage = void 0; + var titleRow = void 0; + Object.defineProperties(this, + { + parent: { + get: function get$$1() { + return params.parent; + } + }, + scrollable: { + get: function get$$1() { + return params.scrollable; + } + }, + autoPlace: { + get: function get$$1() { + return params.autoPlace; + } + }, + closeOnTop: { + get: function get$$1() { + return params.closeOnTop; + } + }, + preset: { + get: function get$$1() { + if (_this.parent) { + return _this.getRoot().preset; + } + return params.load.preset; + }, + set: function set$$1(v) { + if (_this.parent) { + _this.getRoot().preset = v; + } else { + params.load.preset = v; + } + setPresetSelectIndex(this); + _this.revert(); + } + }, + width: { + get: function get$$1() { + return params.width; + }, + set: function set$$1(v) { + params.width = v; + setWidth(_this, v); + } + }, + name: { + get: function get$$1() { + return params.name; + }, + set: function set$$1(v) { + params.name = v; + if (titleRow) { + titleRow.innerHTML = params.name; + } + } + }, + closed: { + get: function get$$1() { + return params.closed; + }, + set: function set$$1(v) { + params.closed = v; + if (params.closed) { + dom.addClass(_this.__ul, GUI.CLASS_CLOSED); + } else { + dom.removeClass(_this.__ul, GUI.CLASS_CLOSED); + } + this.onResize(); + if (_this.__closeButton) { + _this.__closeButton.innerHTML = v ? GUI.TEXT_OPEN : GUI.TEXT_CLOSED; + } + } + }, + load: { + get: function get$$1() { + return params.load; + } + }, + useLocalStorage: { + get: function get$$1() { + return useLocalStorage; + }, + set: function set$$1(bool) { + if (SUPPORTS_LOCAL_STORAGE) { + useLocalStorage = bool; + if (bool) { + dom.bind(window, 'unload', saveToLocalStorage); + } else { + dom.unbind(window, 'unload', saveToLocalStorage); + } + localStorage.setItem(getLocalStorageHash(_this, 'isLocal'), bool); + } + } + } + }); + if (Common.isUndefined(params.parent)) { + this.closed = params.closed || false; + dom.addClass(this.domElement, GUI.CLASS_MAIN); + dom.makeSelectable(this.domElement, false); + if (SUPPORTS_LOCAL_STORAGE) { + if (useLocalStorage) { + _this.useLocalStorage = true; + var savedGui = localStorage.getItem(getLocalStorageHash(this, 'gui')); + if (savedGui) { + params.load = JSON.parse(savedGui); + } + } + } + this.__closeButton = document.createElement('div'); + this.__closeButton.innerHTML = GUI.TEXT_CLOSED; + dom.addClass(this.__closeButton, GUI.CLASS_CLOSE_BUTTON); + if (params.closeOnTop) { + dom.addClass(this.__closeButton, GUI.CLASS_CLOSE_TOP); + this.domElement.insertBefore(this.__closeButton, this.domElement.childNodes[0]); + } else { + dom.addClass(this.__closeButton, GUI.CLASS_CLOSE_BOTTOM); + this.domElement.appendChild(this.__closeButton); + } + dom.bind(this.__closeButton, 'click', function () { + _this.closed = !_this.closed; + }); + } else { + if (params.closed === undefined) { + params.closed = true; + } + var titleRowName = document.createTextNode(params.name); + dom.addClass(titleRowName, 'controller-name'); + titleRow = addRow(_this, titleRowName); + var onClickTitle = function onClickTitle(e) { + e.preventDefault(); + _this.closed = !_this.closed; + return false; + }; + dom.addClass(this.__ul, GUI.CLASS_CLOSED); + dom.addClass(titleRow, 'title'); + dom.bind(titleRow, 'click', onClickTitle); + if (!params.closed) { + this.closed = false; + } + } + if (params.autoPlace) { + if (Common.isUndefined(params.parent)) { + if (autoPlaceVirgin) { + autoPlaceContainer = document.createElement('div'); + dom.addClass(autoPlaceContainer, CSS_NAMESPACE); + dom.addClass(autoPlaceContainer, GUI.CLASS_AUTO_PLACE_CONTAINER); + document.body.appendChild(autoPlaceContainer); + autoPlaceVirgin = false; + } + autoPlaceContainer.appendChild(this.domElement); + dom.addClass(this.domElement, GUI.CLASS_AUTO_PLACE); + } + if (!this.parent) { + setWidth(_this, params.width); + } + } + this.__resizeHandler = function () { + _this.onResizeDebounced(); + }; + dom.bind(window, 'resize', this.__resizeHandler); + dom.bind(this.__ul, 'webkitTransitionEnd', this.__resizeHandler); + dom.bind(this.__ul, 'transitionend', this.__resizeHandler); + dom.bind(this.__ul, 'oTransitionEnd', this.__resizeHandler); + this.onResize(); + if (params.resizable) { + addResizeHandle(this); + } + saveToLocalStorage = function saveToLocalStorage() { + if (SUPPORTS_LOCAL_STORAGE && localStorage.getItem(getLocalStorageHash(_this, 'isLocal')) === 'true') { + localStorage.setItem(getLocalStorageHash(_this, 'gui'), JSON.stringify(_this.getSaveObject())); + } + }; + this.saveToLocalStorageIfPossible = saveToLocalStorage; + function resetWidth() { + var root = _this.getRoot(); + root.width += 1; + Common.defer(function () { + root.width -= 1; + }); + } + if (!params.parent) { + resetWidth(); + } +}; +GUI.toggleHide = function () { + hide = !hide; + Common.each(hideableGuis, function (gui) { + gui.domElement.style.display = hide ? 'none' : ''; + }); +}; +GUI.CLASS_AUTO_PLACE = 'a'; +GUI.CLASS_AUTO_PLACE_CONTAINER = 'ac'; +GUI.CLASS_MAIN = 'main'; +GUI.CLASS_CONTROLLER_ROW = 'cr'; +GUI.CLASS_TOO_TALL = 'taller-than-window'; +GUI.CLASS_CLOSED = 'closed'; +GUI.CLASS_CLOSE_BUTTON = 'close-button'; +GUI.CLASS_CLOSE_TOP = 'close-top'; +GUI.CLASS_CLOSE_BOTTOM = 'close-bottom'; +GUI.CLASS_DRAG = 'drag'; +GUI.DEFAULT_WIDTH = 245; +GUI.TEXT_CLOSED = 'Close Controls'; +GUI.TEXT_OPEN = 'Open Controls'; +GUI._keydownHandler = function (e) { + if (document.activeElement.type !== 'text' && (e.which === HIDE_KEY_CODE || e.keyCode === HIDE_KEY_CODE)) { + GUI.toggleHide(); + } +}; +dom.bind(window, 'keydown', GUI._keydownHandler, false); +Common.extend(GUI.prototype, +{ + add: function add(object, property) { + return _add(this, object, property, { + factoryArgs: Array.prototype.slice.call(arguments, 2) + }); + }, + addColor: function addColor(object, property) { + return _add(this, object, property, { + color: true + }); + }, + remove: function remove(controller) { + this.__ul.removeChild(controller.__li); + this.__controllers.splice(this.__controllers.indexOf(controller), 1); + var _this = this; + Common.defer(function () { + _this.onResize(); + }); + }, + destroy: function destroy() { + if (this.parent) { + throw new Error('Only the root GUI should be removed with .destroy(). ' + 'For subfolders, use gui.removeFolder(folder) instead.'); + } + if (this.autoPlace) { + autoPlaceContainer.removeChild(this.domElement); + } + var _this = this; + Common.each(this.__folders, function (subfolder) { + _this.removeFolder(subfolder); + }); + dom.unbind(window, 'keydown', GUI._keydownHandler, false); + removeListeners(this); + }, + addFolder: function addFolder(name) { + if (this.__folders[name] !== undefined) { + throw new Error('You already have a folder in this GUI by the' + ' name "' + name + '"'); + } + var newGuiParams = { name: name, parent: this }; + newGuiParams.autoPlace = this.autoPlace; + if (this.load && + this.load.folders && + this.load.folders[name]) { + newGuiParams.closed = this.load.folders[name].closed; + newGuiParams.load = this.load.folders[name]; + } + var gui = new GUI(newGuiParams); + this.__folders[name] = gui; + var li = addRow(this, gui.domElement); + dom.addClass(li, 'folder'); + return gui; + }, + removeFolder: function removeFolder(folder) { + this.__ul.removeChild(folder.domElement.parentElement); + delete this.__folders[folder.name]; + if (this.load && + this.load.folders && + this.load.folders[folder.name]) { + delete this.load.folders[folder.name]; + } + removeListeners(folder); + var _this = this; + Common.each(folder.__folders, function (subfolder) { + folder.removeFolder(subfolder); + }); + Common.defer(function () { + _this.onResize(); + }); + }, + open: function open() { + this.closed = false; + }, + close: function close() { + this.closed = true; + }, + hide: function hide() { + this.domElement.style.display = 'none'; + }, + show: function show() { + this.domElement.style.display = ''; + }, + onResize: function onResize() { + var root = this.getRoot(); + if (root.scrollable) { + var top = dom.getOffset(root.__ul).top; + var h = 0; + Common.each(root.__ul.childNodes, function (node) { + if (!(root.autoPlace && node === root.__save_row)) { + h += dom.getHeight(node); + } + }); + if (window.innerHeight - top - CLOSE_BUTTON_HEIGHT < h) { + dom.addClass(root.domElement, GUI.CLASS_TOO_TALL); + root.__ul.style.height = window.innerHeight - top - CLOSE_BUTTON_HEIGHT + 'px'; + } else { + dom.removeClass(root.domElement, GUI.CLASS_TOO_TALL); + root.__ul.style.height = 'auto'; + } + } + if (root.__resize_handle) { + Common.defer(function () { + root.__resize_handle.style.height = root.__ul.offsetHeight + 'px'; + }); + } + if (root.__closeButton) { + root.__closeButton.style.width = root.width + 'px'; + } + }, + onResizeDebounced: Common.debounce(function () { + this.onResize(); + }, 50), + remember: function remember() { + if (Common.isUndefined(SAVE_DIALOGUE)) { + SAVE_DIALOGUE = new CenteredDiv(); + SAVE_DIALOGUE.domElement.innerHTML = saveDialogContents; + } + if (this.parent) { + throw new Error('You can only call remember on a top level GUI.'); + } + var _this = this; + Common.each(Array.prototype.slice.call(arguments), function (object) { + if (_this.__rememberedObjects.length === 0) { + addSaveMenu(_this); + } + if (_this.__rememberedObjects.indexOf(object) === -1) { + _this.__rememberedObjects.push(object); + } + }); + if (this.autoPlace) { + setWidth(this, this.width); + } + }, + getRoot: function getRoot() { + var gui = this; + while (gui.parent) { + gui = gui.parent; + } + return gui; + }, + getSaveObject: function getSaveObject() { + var toReturn = this.load; + toReturn.closed = this.closed; + if (this.__rememberedObjects.length > 0) { + toReturn.preset = this.preset; + if (!toReturn.remembered) { + toReturn.remembered = {}; + } + toReturn.remembered[this.preset] = getCurrentPreset(this); + } + toReturn.folders = {}; + Common.each(this.__folders, function (element, key) { + toReturn.folders[key] = element.getSaveObject(); + }); + return toReturn; + }, + save: function save() { + if (!this.load.remembered) { + this.load.remembered = {}; + } + this.load.remembered[this.preset] = getCurrentPreset(this); + markPresetModified(this, false); + this.saveToLocalStorageIfPossible(); + }, + saveAs: function saveAs(presetName) { + if (!this.load.remembered) { + this.load.remembered = {}; + this.load.remembered[DEFAULT_DEFAULT_PRESET_NAME] = getCurrentPreset(this, true); + } + this.load.remembered[presetName] = getCurrentPreset(this); + this.preset = presetName; + addPresetOption(this, presetName, true); + this.saveToLocalStorageIfPossible(); + }, + revert: function revert(gui) { + Common.each(this.__controllers, function (controller) { + if (!this.getRoot().load.remembered) { + controller.setValue(controller.initialValue); + } else { + recallSavedValue(gui || this.getRoot(), controller); + } + if (controller.__onFinishChange) { + controller.__onFinishChange.call(controller, controller.getValue()); + } + }, this); + Common.each(this.__folders, function (folder) { + folder.revert(folder); + }); + if (!gui) { + markPresetModified(this.getRoot(), false); + } + }, + listen: function listen(controller) { + var init = this.__listening.length === 0; + this.__listening.push(controller); + if (init) { + updateDisplays(this.__listening); + } + }, + updateDisplay: function updateDisplay() { + Common.each(this.__controllers, function (controller) { + controller.updateDisplay(); + }); + Common.each(this.__folders, function (folder) { + folder.updateDisplay(); + }); + } +}); +function addRow(gui, newDom, liBefore) { + var li = document.createElement('li'); + if (newDom) { + li.appendChild(newDom); + } + if (liBefore) { + gui.__ul.insertBefore(li, liBefore); + } else { + gui.__ul.appendChild(li); + } + gui.onResize(); + return li; +} +function removeListeners(gui) { + dom.unbind(window, 'resize', gui.__resizeHandler); + if (gui.saveToLocalStorageIfPossible) { + dom.unbind(window, 'unload', gui.saveToLocalStorageIfPossible); + } +} +function markPresetModified(gui, modified) { + var opt = gui.__preset_select[gui.__preset_select.selectedIndex]; + if (modified) { + opt.innerHTML = opt.value + '*'; + } else { + opt.innerHTML = opt.value; + } +} +function augmentController(gui, li, controller) { + controller.__li = li; + controller.__gui = gui; + Common.extend(controller, { + options: function options(_options) { + if (arguments.length > 1) { + var nextSibling = controller.__li.nextElementSibling; + controller.remove(); + return _add(gui, controller.object, controller.property, { + before: nextSibling, + factoryArgs: [Common.toArray(arguments)] + }); + } + if (Common.isArray(_options) || Common.isObject(_options)) { + var _nextSibling = controller.__li.nextElementSibling; + controller.remove(); + return _add(gui, controller.object, controller.property, { + before: _nextSibling, + factoryArgs: [_options] + }); + } + }, + name: function name(_name) { + controller.__li.firstElementChild.firstElementChild.innerHTML = _name; + return controller; + }, + listen: function listen() { + controller.__gui.listen(controller); + return controller; + }, + remove: function remove() { + controller.__gui.remove(controller); + return controller; + } + }); + if (controller instanceof NumberControllerSlider) { + var box = new NumberControllerBox(controller.object, controller.property, { min: controller.__min, max: controller.__max, step: controller.__step }); + Common.each(['updateDisplay', 'onChange', 'onFinishChange', 'step', 'min', 'max'], function (method) { + var pc = controller[method]; + var pb = box[method]; + controller[method] = box[method] = function () { + var args = Array.prototype.slice.call(arguments); + pb.apply(box, args); + return pc.apply(controller, args); + }; + }); + dom.addClass(li, 'has-slider'); + controller.domElement.insertBefore(box.domElement, controller.domElement.firstElementChild); + } else if (controller instanceof NumberControllerBox) { + var r = function r(returned) { + if (Common.isNumber(controller.__min) && Common.isNumber(controller.__max)) { + var oldName = controller.__li.firstElementChild.firstElementChild.innerHTML; + var wasListening = controller.__gui.__listening.indexOf(controller) > -1; + controller.remove(); + var newController = _add(gui, controller.object, controller.property, { + before: controller.__li.nextElementSibling, + factoryArgs: [controller.__min, controller.__max, controller.__step] + }); + newController.name(oldName); + if (wasListening) newController.listen(); + return newController; + } + return returned; + }; + controller.min = Common.compose(r, controller.min); + controller.max = Common.compose(r, controller.max); + } else if (controller instanceof BooleanController) { + dom.bind(li, 'click', function () { + dom.fakeEvent(controller.__checkbox, 'click'); + }); + dom.bind(controller.__checkbox, 'click', function (e) { + e.stopPropagation(); + }); + } else if (controller instanceof FunctionController) { + dom.bind(li, 'click', function () { + dom.fakeEvent(controller.__button, 'click'); + }); + dom.bind(li, 'mouseover', function () { + dom.addClass(controller.__button, 'hover'); + }); + dom.bind(li, 'mouseout', function () { + dom.removeClass(controller.__button, 'hover'); + }); + } else if (controller instanceof ColorController) { + dom.addClass(li, 'color'); + controller.updateDisplay = Common.compose(function (val) { + li.style.borderLeftColor = controller.__color.toString(); + return val; + }, controller.updateDisplay); + controller.updateDisplay(); + } + controller.setValue = Common.compose(function (val) { + if (gui.getRoot().__preset_select && controller.isModified()) { + markPresetModified(gui.getRoot(), true); + } + return val; + }, controller.setValue); +} +function recallSavedValue(gui, controller) { + var root = gui.getRoot(); + var matchedIndex = root.__rememberedObjects.indexOf(controller.object); + if (matchedIndex !== -1) { + var controllerMap = root.__rememberedObjectIndecesToControllers[matchedIndex]; + if (controllerMap === undefined) { + controllerMap = {}; + root.__rememberedObjectIndecesToControllers[matchedIndex] = controllerMap; + } + controllerMap[controller.property] = controller; + if (root.load && root.load.remembered) { + var presetMap = root.load.remembered; + var preset = void 0; + if (presetMap[gui.preset]) { + preset = presetMap[gui.preset]; + } else if (presetMap[DEFAULT_DEFAULT_PRESET_NAME]) { + preset = presetMap[DEFAULT_DEFAULT_PRESET_NAME]; + } else { + return; + } + if (preset[matchedIndex] && preset[matchedIndex][controller.property] !== undefined) { + var value = preset[matchedIndex][controller.property]; + controller.initialValue = value; + controller.setValue(value); + } + } + } +} +function _add(gui, object, property, params) { + if (object[property] === undefined) { + throw new Error('Object "' + object + '" has no property "' + property + '"'); + } + var controller = void 0; + if (params.color) { + controller = new ColorController(object, property); + } else { + var factoryArgs = [object, property].concat(params.factoryArgs); + controller = ControllerFactory.apply(gui, factoryArgs); + } + if (params.before instanceof Controller) { + params.before = params.before.__li; + } + recallSavedValue(gui, controller); + dom.addClass(controller.domElement, 'c'); + var name = document.createElement('span'); + dom.addClass(name, 'property-name'); + name.innerHTML = controller.property; + var container = document.createElement('div'); + container.appendChild(name); + container.appendChild(controller.domElement); + var li = addRow(gui, container, params.before); + dom.addClass(li, GUI.CLASS_CONTROLLER_ROW); + if (controller instanceof ColorController) { + dom.addClass(li, 'color'); + } else { + dom.addClass(li, _typeof(controller.getValue())); + } + augmentController(gui, li, controller); + gui.__controllers.push(controller); + return controller; +} +function getLocalStorageHash(gui, key) { + return document.location.href + '.' + key; +} +function addPresetOption(gui, name, setSelected) { + var opt = document.createElement('option'); + opt.innerHTML = name; + opt.value = name; + gui.__preset_select.appendChild(opt); + if (setSelected) { + gui.__preset_select.selectedIndex = gui.__preset_select.length - 1; + } +} +function showHideExplain(gui, explain) { + explain.style.display = gui.useLocalStorage ? 'block' : 'none'; +} +function addSaveMenu(gui) { + var div = gui.__save_row = document.createElement('li'); + dom.addClass(gui.domElement, 'has-save'); + gui.__ul.insertBefore(div, gui.__ul.firstChild); + dom.addClass(div, 'save-row'); + var gears = document.createElement('span'); + gears.innerHTML = ' '; + dom.addClass(gears, 'button gears'); + var button = document.createElement('span'); + button.innerHTML = 'Save'; + dom.addClass(button, 'button'); + dom.addClass(button, 'save'); + var button2 = document.createElement('span'); + button2.innerHTML = 'New'; + dom.addClass(button2, 'button'); + dom.addClass(button2, 'save-as'); + var button3 = document.createElement('span'); + button3.innerHTML = 'Revert'; + dom.addClass(button3, 'button'); + dom.addClass(button3, 'revert'); + var select = gui.__preset_select = document.createElement('select'); + if (gui.load && gui.load.remembered) { + Common.each(gui.load.remembered, function (value, key) { + addPresetOption(gui, key, key === gui.preset); + }); + } else { + addPresetOption(gui, DEFAULT_DEFAULT_PRESET_NAME, false); + } + dom.bind(select, 'change', function () { + for (var index = 0; index < gui.__preset_select.length; index++) { + gui.__preset_select[index].innerHTML = gui.__preset_select[index].value; + } + gui.preset = this.value; + }); + div.appendChild(select); + div.appendChild(gears); + div.appendChild(button); + div.appendChild(button2); + div.appendChild(button3); + if (SUPPORTS_LOCAL_STORAGE) { + var explain = document.getElementById('dg-local-explain'); + var localStorageCheckBox = document.getElementById('dg-local-storage'); + var saveLocally = document.getElementById('dg-save-locally'); + saveLocally.style.display = 'block'; + if (localStorage.getItem(getLocalStorageHash(gui, 'isLocal')) === 'true') { + localStorageCheckBox.setAttribute('checked', 'checked'); + } + showHideExplain(gui, explain); + dom.bind(localStorageCheckBox, 'change', function () { + gui.useLocalStorage = !gui.useLocalStorage; + showHideExplain(gui, explain); + }); + } + var newConstructorTextArea = document.getElementById('dg-new-constructor'); + dom.bind(newConstructorTextArea, 'keydown', function (e) { + if (e.metaKey && (e.which === 67 || e.keyCode === 67)) { + SAVE_DIALOGUE.hide(); + } + }); + dom.bind(gears, 'click', function () { + newConstructorTextArea.innerHTML = JSON.stringify(gui.getSaveObject(), undefined, 2); + SAVE_DIALOGUE.show(); + newConstructorTextArea.focus(); + newConstructorTextArea.select(); + }); + dom.bind(button, 'click', function () { + gui.save(); + }); + dom.bind(button2, 'click', function () { + var presetName = prompt('Enter a new preset name.'); + if (presetName) { + gui.saveAs(presetName); + } + }); + dom.bind(button3, 'click', function () { + gui.revert(); + }); +} +function addResizeHandle(gui) { + var pmouseX = void 0; + gui.__resize_handle = document.createElement('div'); + Common.extend(gui.__resize_handle.style, { + width: '6px', + marginLeft: '-3px', + height: '200px', + cursor: 'ew-resize', + position: 'absolute' + }); + function drag(e) { + e.preventDefault(); + gui.width += pmouseX - e.clientX; + gui.onResize(); + pmouseX = e.clientX; + return false; + } + function dragStop() { + dom.removeClass(gui.__closeButton, GUI.CLASS_DRAG); + dom.unbind(window, 'mousemove', drag); + dom.unbind(window, 'mouseup', dragStop); + } + function dragStart(e) { + e.preventDefault(); + pmouseX = e.clientX; + dom.addClass(gui.__closeButton, GUI.CLASS_DRAG); + dom.bind(window, 'mousemove', drag); + dom.bind(window, 'mouseup', dragStop); + return false; + } + dom.bind(gui.__resize_handle, 'mousedown', dragStart); + dom.bind(gui.__closeButton, 'mousedown', dragStart); + gui.domElement.insertBefore(gui.__resize_handle, gui.domElement.firstElementChild); +} +function setWidth(gui, w) { + gui.domElement.style.width = w + 'px'; + if (gui.__save_row && gui.autoPlace) { + gui.__save_row.style.width = w + 'px'; + } + if (gui.__closeButton) { + gui.__closeButton.style.width = w + 'px'; + } +} +function getCurrentPreset(gui, useInitialValues) { + var toReturn = {}; + Common.each(gui.__rememberedObjects, function (val, index) { + var savedValues = {}; + var controllerMap = gui.__rememberedObjectIndecesToControllers[index]; + Common.each(controllerMap, function (controller, property) { + savedValues[property] = useInitialValues ? controller.initialValue : controller.getValue(); + }); + toReturn[index] = savedValues; + }); + return toReturn; +} +function setPresetSelectIndex(gui) { + for (var index = 0; index < gui.__preset_select.length; index++) { + if (gui.__preset_select[index].value === gui.preset) { + gui.__preset_select.selectedIndex = index; + } + } +} +function updateDisplays(controllerArray) { + if (controllerArray.length !== 0) { + requestAnimationFrame$1.call(window, function () { + updateDisplays(controllerArray); + }); + } + Common.each(controllerArray, function (c) { + c.updateDisplay(); + }); +} + +var color = { + Color: Color, + math: ColorMath, + interpret: interpret +}; +var controllers = { + Controller: Controller, + BooleanController: BooleanController, + OptionController: OptionController, + StringController: StringController, + NumberController: NumberController, + NumberControllerBox: NumberControllerBox, + NumberControllerSlider: NumberControllerSlider, + FunctionController: FunctionController, + ColorController: ColorController +}; +var dom$1 = { dom: dom }; +var gui = { GUI: GUI }; +var GUI$1 = GUI; +var index = { + color: color, + controllers: controllers, + dom: dom$1, + gui: gui, + GUI: GUI$1 +}; + +export { color, controllers, dom$1 as dom, gui, GUI$1 as GUI }; +export default index; +//# sourceMappingURL=dat.gui.module.js.map \ No newline at end of file diff --git a/public/data/boston_fire_departments.json b/public/data/boston_fire_departments.json new file mode 100644 index 00000000..9c008496 --- /dev/null +++ b/public/data/boston_fire_departments.json @@ -0,0 +1,42 @@ +var fire_departments_json={ +"type": "FeatureCollection", +"name": "Fire_Departments", +"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } }, +"features": [ +{ "type": "Feature", "properties": { "OBJECTID_1": 1, "OBJECTID": 1, "BFD_ID": 1, "MAP_ID": "068", "MAPCODE": "2", "LOCCODE": "000", "LOCDEPT": "BFD", "LOCNAME": "Engine CO. 2, 19", "LOCCONTACT": "Cptn. Bruynell", "LOCPHONE": "725-2802", "LOCSTNO": 700, "LOCADDR": "East 4th Street", "LOCOWNER": "BFD", "LOCWARD": "06", "LOCPARCL": "00000", "LOCPRECT": " ", "LOCPLAN": "F", "STUDY": "T", "ABOVE": 3, "ABOVE_DESC": "(2)275g Diesel, (1)1000g FO", "SOURCE": "FP", "GEOADDRESS": "700 East 4th Street", "PD": "South Boston", "CT90": "603", "XCOORD": 71037270, "YCOORD": 42334683 }, "geometry": { "type": "Point", "coordinates": [ -71.037152460634715, 42.33496896786874 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 2, "OBJECTID": 2, "BFD_ID": 2, "MAP_ID": "071", "MAPCODE": "2", "LOCCODE": "002", "LOCDEPT": "BFD", "LOCNAME": "Engine CO. 3", "LOCCONTACT": "Cptn. Reynolds or Yanovitch", "LOCPHONE": "338-9018", "LOCSTNO": 618, "LOCADDR": "Harrison Ave", "LOCOWNER": "BFD", "LOCWARD": "08", "LOCPARCL": "00000", "LOCPRECT": " ", "LOCPLAN": "F", "STUDY": "T", "ABOVE": 0, "ABOVE_DESC": " ", "SOURCE": "FP", "GEOADDRESS": "618 Harrison Ave", "PD": "South End", "CT90": "712", "XCOORD": 71069485, "YCOORD": 42339757 }, "geometry": { "type": "Point", "coordinates": [ -71.068600952689607, 42.339871044006365 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 3, "OBJECTID": 3, "BFD_ID": 3, "MAP_ID": "036", "MAPCODE": "2", "LOCCODE": "003", "LOCDEPT": "BFD", "LOCNAME": "Engine CO. 4, 24", "LOCCONTACT": "Ltnt. Borden", "LOCPHONE": "725-2804", "LOCSTNO": 200, "LOCADDR": "Cambridge St", "LOCOWNER": "BFD", "LOCWARD": "03", "LOCPARCL": "00000", "LOCPRECT": " ", "LOCPLAN": "F", "STUDY": "T", "ABOVE": 1, "ABOVE_DESC": "(1)500g diesel", "SOURCE": "FP", "GEOADDRESS": "200 Cambridge St", "PD": "Back Bay\/Beacon Hill", "CT90": "202", "XCOORD": 71066570, "YCOORD": 42361100 }, "geometry": { "type": "Point", "coordinates": [ -71.065680584590027, 42.360842065518554 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 4, "OBJECTID": 4, "BFD_ID": 4, "MAP_ID": "053", "MAPCODE": "2", "LOCCODE": "004", "LOCDEPT": "BFD", "LOCNAME": "Engine CO. 5", "LOCCONTACT": "Ltnt. Bancroft", "LOCPHONE": "725-2805", "LOCSTNO": 360, "LOCADDR": "Saratoga St", "LOCOWNER": "BFD", "LOCWARD": "01", "LOCPARCL": "00507", "LOCPRECT": " ", "LOCPLAN": "F", "STUDY": "T", "ABOVE": 1, "ABOVE_DESC": "(1)990g FO Basement", "SOURCE": "P", "GEOADDRESS": "360 Saratoga St", "PD": "East Boston", "CT90": "502", "XCOORD": 71031395, "YCOORD": 42378743 }, "geometry": { "type": "Point", "coordinates": [ -71.030238935296367, 42.379119371555412 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 5, "OBJECTID": 5, "BFD_ID": 5, "MAP_ID": "040", "MAPCODE": "2", "LOCCODE": "005", "LOCDEPT": "BFD", "LOCNAME": "Engine CO. 7, 17", "LOCCONTACT": "Ltnt. Creamer", "LOCPHONE": "725-2807", "LOCSTNO": 200, "LOCADDR": "Columbus Ave", "LOCOWNER": "BFD", "LOCWARD": "05", "LOCPARCL": "00000", "LOCPRECT": " ", "LOCPLAN": "F", "STUDY": "T", "ABOVE": 1, "ABOVE_DESC": "(1)500g Diesel", "SOURCE": "FPA", "GEOADDRESS": "200 Columbus Ave", "PD": "Boston", "CT90": "703", "XCOORD": 71072396, "YCOORD": 42348486 }, "geometry": { "type": "Point", "coordinates": [ -71.070985781451839, 42.34892377382026 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 6, "OBJECTID": 6, "BFD_ID": 6, "MAP_ID": "041", "MAPCODE": "2", "LOCCODE": "006", "LOCDEPT": "BFD", "LOCNAME": "Engine CO. 8, 1", "LOCCONTACT": "Ltnt. Bob Kavanagh", "LOCPHONE": "725-2808", "LOCSTNO": 392, "LOCADDR": "Hanover St", "LOCOWNER": "BFD", "LOCWARD": "03", "LOCPARCL": "00000", "LOCPRECT": " ", "LOCPLAN": "F", "STUDY": "T", "ABOVE": 3, "ABOVE_DESC": "(3)250g Diesel", "SOURCE": "P", "GEOADDRESS": "382 Hanover St", "PD": "Boston", "CT90": "304", "XCOORD": 71053800, "YCOORD": 42365770 }, "geometry": { "type": "Point", "coordinates": [ -71.053144913688428, 42.365780302229957 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 7, "OBJECTID": 7, "BFD_ID": 7, "MAP_ID": "054", "MAPCODE": "2", "LOCCODE": "007", "LOCDEPT": "BFD", "LOCNAME": "Engine CO. 9, 2", "LOCCONTACT": "Cptn. Bishop", "LOCPHONE": "725-2809", "LOCSTNO": 239, "LOCADDR": "Sumner St", "LOCOWNER": "BFD", "LOCWARD": "01", "LOCPARCL": "00000", "LOCPRECT": " ", "LOCPLAN": "F", "STUDY": "T", "ABOVE": 0, "ABOVE_DESC": " ", "SOURCE": "FP", "GEOADDRESS": "241 Sumner St", "PD": "East Boston", "CT90": "504", "XCOORD": 71039161, "YCOORD": 42368128 }, "geometry": { "type": "Point", "coordinates": [ -71.038717327698848, 42.368053869602555 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 8, "OBJECTID": 8, "BFD_ID": 8, "MAP_ID": "065", "MAPCODE": "2", "LOCCODE": "008", "LOCDEPT": "BFD", "LOCNAME": "Engine CO. 14, 4", "LOCCONTACT": "Cptn. Mckenna", "LOCPHONE": "725-2814", "LOCSTNO": 174, "LOCADDR": "Dudley St", "LOCOWNER": "BFD", "LOCWARD": "08", "LOCPARCL": "00000", "LOCPRECT": " ", "LOCPLAN": "F", "STUDY": "T", "ABOVE": 0, "ABOVE_DESC": " ", "SOURCE": "FP", "GEOADDRESS": "174 Dudley St", "PD": "Roxbury", "CT90": "804", "XCOORD": 71083008, "YCOORD": 42328367 }, "geometry": { "type": "Point", "coordinates": [ -71.082337125332529, 42.328843082552581 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 9, "OBJECTID": 9, "BFD_ID": 9, "MAP_ID": "061", "MAPCODE": "2", "LOCCODE": "009", "LOCDEPT": "BFD", "LOCNAME": "Engine CO. 16", "LOCCONTACT": "Cptn Santiano", "LOCPHONE": "725-2816", "LOCSTNO": 9, "LOCADDR": "Gallivan Blvd", "LOCOWNER": "BFD", "LOCWARD": "17", "LOCPARCL": "00000", "LOCPRECT": " ", "LOCPLAN": "F", "STUDY": "T", "ABOVE": 0, "ABOVE_DESC": " ", "SOURCE": "FPA", "GEOADDRESS": "9 Gallivan Blvd", "PD": "Mattapan", "CT90": "1009", "XCOORD": 71079859, "YCOORD": 42278446 }, "geometry": { "type": "Point", "coordinates": [ -71.078785913517891, 42.278256154644261 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 10, "OBJECTID": 10, "BFD_ID": 10, "MAP_ID": "046", "MAPCODE": "2", "LOCCODE": "010", "LOCDEPT": "BFD", "LOCNAME": "Engine CO. 17, 7", "LOCCONTACT": "Ltnt. Flaherty", "LOCPHONE": "725-2817", "LOCSTNO": 7, "LOCADDR": "Parish St", "LOCOWNER": "BFD", "LOCWARD": "15", "LOCPARCL": "00000", "LOCPRECT": " ", "LOCPLAN": "F", "STUDY": "T", "ABOVE": 1, "ABOVE_DESC": "(1)275g Diesel", "SOURCE": "FD", "GEOADDRESS": "7 Parish St", "PD": "Dorchester", "CT90": "916", "XCOORD": 71062882, "YCOORD": 42307980 }, "geometry": { "type": "Point", "coordinates": [ -71.061601734090928, 42.30772859011406 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 11, "OBJECTID": 11, "BFD_ID": 11, "MAP_ID": "047", "MAPCODE": "2", "LOCCODE": "011", "LOCDEPT": "BFD", "LOCNAME": "Engine CO. 18, 6", "LOCCONTACT": "Cptn. Keely", "LOCPHONE": "725-2818", "LOCSTNO": 1884, "LOCADDR": "Dorchester Ave, Peabody Sq\r\n", "LOCOWNER": "BFD", "LOCWARD": "16", "LOCPARCL": "06503", "LOCPRECT": " ", "LOCPLAN": "F", "STUDY": "T", "ABOVE": 0, "ABOVE_DESC": " ", "SOURCE": "FP", "GEOADDRESS": "1884 Dorchester Av", "PD": "Dorchester", "CT90": "1008", "XCOORD": 71064420, "YCOORD": 42286427 }, "geometry": { "type": "Point", "coordinates": [ -71.063850795954778, 42.286501438335712 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 12, "OBJECTID": 12, "BFD_ID": 12, "MAP_ID": "048", "MAPCODE": "2", "LOCCODE": "012", "LOCDEPT": "BFD", "LOCNAME": "Engine CO. 20", "LOCCONTACT": "Ltnt. Leo Reardon", "LOCPHONE": "725-2820", "LOCSTNO": 301, "LOCADDR": "Neponset Ave", "LOCOWNER": "BFD", "LOCWARD": "16", "LOCPARCL": "01003", "LOCPRECT": " ", "LOCPLAN": "F", "STUDY": "T", "ABOVE": 0, "ABOVE_DESC": " ", "SOURCE": "FPA", "GEOADDRESS": "301 Neponset Ave", "PD": "Dorchester", "CT90": "1006.02", "XCOORD": 71047748, "YCOORD": 42288696 }, "geometry": { "type": "Point", "coordinates": [ -71.047847500103614, 42.288587410930027 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 13, "OBJECTID": 13, "BFD_ID": 13, "MAP_ID": "049", "MAPCODE": "2", "LOCCODE": "013", "LOCDEPT": "BFD", "LOCNAME": "Engine CO. 21", "LOCCONTACT": "Ltnt. Riley", "LOCPHONE": "725-2821", "LOCSTNO": 641, "LOCADDR": "Columbia Rd", "LOCOWNER": "BFD", "LOCWARD": "07", "LOCPARCL": "00000", "LOCPRECT": " ", "LOCPLAN": "F", "STUDY": "T", "ABOVE": 4, "ABOVE_DESC": "(3)275g FO, (1)275 Diesel", "SOURCE": "FP", "GEOADDRESS": "641 Columbia Rd", "PD": "Dorchester", "CT90": "912", "XCOORD": 71064080, "YCOORD": 42318280 }, "geometry": { "type": "Point", "coordinates": [ -71.063210976280558, 42.318316729112468 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 14, "OBJECTID": 14, "BFD_ID": 14, "MAP_ID": "072", "MAPCODE": "2", "LOCCODE": "014", "LOCDEPT": "BFD", "LOCNAME": "Engine CO. 22", "LOCCONTACT": "Ltnt. Doherty", "LOCPHONE": "725-2822", "LOCSTNO": 700, "LOCADDR": "Tremont St", "LOCOWNER": "BFD", "LOCWARD": "09", "LOCPARCL": "00000", "LOCPRECT": " ", "LOCPLAN": "F", "STUDY": "T", "ABOVE": 0, "ABOVE_DESC": " ", "SOURCE": "FAP", "GEOADDRESS": "700 Tremont St", "PD": "South End", "CT90": "709", "XCOORD": 71078216, "YCOORD": 42340531 }, "geometry": { "type": "Point", "coordinates": [ -71.077536483331556, 42.34044596396604 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 15, "OBJECTID": 15, "BFD_ID": 15, "MAP_ID": "066", "MAPCODE": "2", "LOCCODE": "015", "LOCDEPT": "BFD", "LOCNAME": "Engine CO. 24, 23", "LOCCONTACT": "Cptn. Lorenz", "LOCPHONE": "725-2824", "LOCSTNO": 36, "LOCADDR": "Washington St, Grove Hall", "LOCOWNER": "BFD", "LOCWARD": "14", "LOCPARCL": "00500", "LOCPRECT": " ", "LOCPLAN": "F", "STUDY": "T", "ABOVE": 3, "ABOVE_DESC": "(1)500g diesel,(2)330g FO", "SOURCE": "FP", "GEOADDRESS": "36 Washington St, Grove Hall", "PD": "Roxbury", "CT90": "902", "XCOORD": 71083011, "YCOORD": 42307537 }, "geometry": { "type": "Point", "coordinates": [ -71.082241778434721, 42.307486012284699 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 16, "OBJECTID": 16, "BFD_ID": 16, "MAP_ID": "033", "MAPCODE": "2", "LOCCODE": "018", "LOCDEPT": "BFD", "LOCNAME": "Engine CO. 29, 11", "LOCCONTACT": "Ltnt. Paul Murphy", "LOCPHONE": "725-2829", "LOCSTNO": 138, "LOCADDR": "Chestnut Hill Ave", "LOCOWNER": "BFD", "LOCWARD": "21", "LOCPARCL": "02502", "LOCPRECT": " ", "LOCPLAN": "F", "STUDY": "T", "ABOVE": 1, "ABOVE_DESC": "(1)1000g FO in basement", "SOURCE": "PF", "GEOADDRESS": "138 Chestnut Hill Ave", "PD": "Allston\/Brighton", "CT90": "4.01", "XCOORD": 71154715, "YCOORD": 42342167 }, "geometry": { "type": "Point", "coordinates": [ -71.153416866868923, 42.342691222511583 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 17, "OBJECTID": 17, "BFD_ID": 17, "MAP_ID": "073", "MAPCODE": "2", "LOCCODE": "019", "LOCDEPT": "BFD", "LOCNAME": "Engine CO. 30, 25", "LOCCONTACT": "Ltnt. Welch, Cptn. Hanlon", "LOCPHONE": "725-2830", "LOCSTNO": 1940, "LOCADDR": "Centre St", "LOCOWNER": "BFD", "LOCWARD": "20", "LOCPARCL": "00000", "LOCPRECT": " ", "LOCPLAN": "F", "STUDY": "T", "ABOVE": 0, "ABOVE_DESC": " ", "SOURCE": "FPA", "GEOADDRESS": "1940 Centre St", "PD": "West Roxbury", "CT90": "1302", "XCOORD": 71157377, "YCOORD": 42283156 }, "geometry": { "type": "Point", "coordinates": [ -71.156539055026741, 42.284021601016299 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 18, "OBJECTID": 18, "BFD_ID": 18, "MAP_ID": "044", "MAPCODE": "2", "LOCCODE": "020", "LOCDEPT": "BFD", "LOCNAME": "Engine CO. 32, 9", "LOCCONTACT": "Ltnt. O'Brien", "LOCPHONE": "725-2832", "LOCSTNO": 525, "LOCADDR": "Main St", "LOCOWNER": "BFD", "LOCWARD": "02", "LOCPARCL": "00000", "LOCPRECT": " ", "LOCPLAN": "F", "STUDY": "T", "ABOVE": 0, "ABOVE_DESC": " ", "SOURCE": "FPA", "GEOADDRESS": "525 Main St", "PD": "Charlestown", "CT90": "407", "XCOORD": 71072271, "YCOORD": 42383636 }, "geometry": { "type": "Point", "coordinates": [ -71.071591303685153, 42.38382954942773 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 19, "OBJECTID": 19, "BFD_ID": 19, "MAP_ID": "037", "MAPCODE": "2", "LOCCODE": "021", "LOCDEPT": "BFD", "LOCNAME": "Engine CO. 33, 15", "LOCCONTACT": "Firefighter James Bernardi", "LOCPHONE": "725-2833", "LOCSTNO": 941, "LOCADDR": "Boylston St", "LOCOWNER": "BFD", "LOCWARD": "05", "LOCPARCL": "09003", "LOCPRECT": " ", "LOCPLAN": "F", "STUDY": "T", "ABOVE": 1, "ABOVE_DESC": "(1)1000g FO Basement", "SOURCE": "PD", "GEOADDRESS": "941 Boylston St", "PD": "Back Bay\/Beacon Hill", "CT90": "107", "XCOORD": 71085620, "YCOORD": 42347984 }, "geometry": { "type": "Point", "coordinates": [ -71.085557933957631, 42.348122364010386 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 20, "OBJECTID": 20, "BFD_ID": 20, "MAP_ID": "056", "MAPCODE": "2", "LOCCODE": "022", "LOCDEPT": "BFD", "LOCNAME": "Engine CO. 37, 26", "LOCCONTACT": "Cptn. Doherty", "LOCPHONE": "725-2837", "LOCSTNO": 560, "LOCADDR": "Huntington Ave", "LOCOWNER": "BFD", "LOCWARD": "04", "LOCPARCL": "00000", "LOCPRECT": " ", "LOCPLAN": "F", "STUDY": "T", "ABOVE": 2, "ABOVE_DESC": "(2)275g FO", "SOURCE": "DP", "GEOADDRESS": "560 Huntington Ave", "PD": "Fenway\/Kenmore", "CT90": "103", "XCOORD": 71097213, "YCOORD": 42337101 }, "geometry": { "type": "Point", "coordinates": [ -71.096059682942098, 42.337184684208019 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 21, "OBJECTID": 21, "BFD_ID": 21, "MAP_ID": "069", "MAPCODE": "2", "LOCCODE": "023", "LOCDEPT": "BFD", "LOCNAME": "Engine CO. 39, 18", "LOCCONTACT": "Cptns. Mahoney or Wise", "LOCPHONE": "725-2839", "LOCSTNO": 272, "LOCADDR": "D St", "LOCOWNER": "BFD", "LOCWARD": "06", "LOCPARCL": "00000", "LOCPRECT": " ", "LOCPLAN": "F", "STUDY": "T", "ABOVE": 0, "ABOVE_DESC": " ", "SOURCE": "FP", "GEOADDRESS": "270 D St", "PD": "South Boston", "CT90": "606", "XCOORD": 71051036, "YCOORD": 42339354 }, "geometry": { "type": "Point", "coordinates": [ -71.050478076787428, 42.339593397180636 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 22, "OBJECTID": 22, "BFD_ID": 22, "MAP_ID": "034", "MAPCODE": "2", "LOCCODE": "024", "LOCDEPT": "BFD", "LOCNAME": "Engine CO. 41, 14", "LOCCONTACT": "Cptn. Delvental", "LOCPHONE": "725-2841", "LOCSTNO": 460, "LOCADDR": "Cambridge St", "LOCOWNER": "BFD", "LOCWARD": "22", "LOCPARCL": "07000", "LOCPRECT": " ", "LOCPLAN": "F", "STUDY": "T", "ABOVE": 0, "ABOVE_DESC": " ", "SOURCE": "FPA", "GEOADDRESS": "460 Cambridge St", "PD": "Allston\/Brighton", "CT90": "8.02", "XCOORD": 71137000, "YCOORD": 42353900 }, "geometry": { "type": "Point", "coordinates": [ -71.136119651712661, 42.353809229042952 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 23, "OBJECTID": 23, "BFD_ID": 23, "MAP_ID": "067", "MAPCODE": "2", "LOCCODE": "025", "LOCDEPT": "BFD", "LOCNAME": "Engine CO. 42", "LOCCONTACT": "Officer O'Brien", "LOCPHONE": "725-2842", "LOCSTNO": 1870, "LOCADDR": "Columbus Ave", "LOCOWNER": "BFD", "LOCWARD": "11", "LOCPARCL": "00000", "LOCPRECT": " ", "LOCPLAN": "F", "STUDY": "T", "ABOVE": 1, "ABOVE_DESC": "(1)1000g diesel rear of bldg", "SOURCE": "PF", "GEOADDRESS": "1870 Columbus Ave", "PD": "Roxbury", "CT90": "813", "XCOORD": 71098900, "YCOORD": 42318380 }, "geometry": { "type": "Point", "coordinates": [ -71.097748561273107, 42.318392517207045 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 24, "OBJECTID": 24, "BFD_ID": 24, "MAP_ID": "058", "MAPCODE": "2", "LOCCODE": "026", "LOCDEPT": "BFD", "LOCNAME": "Engine CO. 48, 28", "LOCCONTACT": "Cptn. Porter, Ltnt Rushton", "LOCPHONE": "725-2848", "LOCSTNO": 60, "LOCADDR": "Fairmount Ave", "LOCOWNER": "BFD", "LOCWARD": "18", "LOCPARCL": "06009", "LOCPRECT": " ", "LOCPLAN": "F", "STUDY": "T", "ABOVE": 1, "ABOVE_DESC": "(1) 500g Diesel", "SOURCE": "FP", "GEOADDRESS": "60 Fairmount Ave", "PD": "Hyde Park", "CT90": "1403", "XCOORD": 71120552, "YCOORD": 42254992 }, "geometry": { "type": "Point", "coordinates": [ -71.119848464786287, 42.255141654920195 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 25, "OBJECTID": 25, "BFD_ID": 25, "MAP_ID": "059", "MAPCODE": "2", "LOCCODE": "027", "LOCDEPT": "BFD", "LOCNAME": "Engine CO. 49", "LOCCONTACT": "Cptn. Tom Mortell", "LOCPHONE": "725-2849", "LOCSTNO": 209, "LOCADDR": "Neponset Valley Pkwy", "LOCOWNER": "BFD", "LOCWARD": "18", "LOCPARCL": "00000", "LOCPRECT": " ", "LOCPLAN": "F", "STUDY": "T", "ABOVE": 2, "ABOVE_DESC": "(2)275g FO", "SOURCE": "PD", "GEOADDRESS": "205 Neponset Valley Pkwy", "PD": "Hyde Park", "CT90": "1402", "XCOORD": 71132099, "YCOORD": 42236826 }, "geometry": { "type": "Point", "coordinates": [ -71.131241735357094, 42.236792276083357 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 26, "OBJECTID": 26, "BFD_ID": 26, "MAP_ID": "045", "MAPCODE": "2", "LOCCODE": "028", "LOCDEPT": "BFD", "LOCNAME": "Engine CO. 50", "LOCCONTACT": "Cptn. John Varner", "LOCPHONE": "725-2850", "LOCSTNO": 34, "LOCADDR": "Winthrop St", "LOCOWNER": "BFD", "LOCWARD": "02", "LOCPARCL": "00000", "LOCPRECT": " ", "LOCPLAN": "F", "STUDY": "T", "ABOVE": 2, "ABOVE_DESC": "(2)275g FO", "SOURCE": "P", "GEOADDRESS": "34 Winthrop St", "PD": "Charlestown", "CT90": "401", "XCOORD": 71061958, "YCOORD": 42374147 }, "geometry": { "type": "Point", "coordinates": [ -71.061127138627782, 42.374239353655959 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 27, "OBJECTID": 27, "BFD_ID": 27, "MAP_ID": "035", "MAPCODE": "2", "LOCCODE": "029", "LOCDEPT": "BFD", "LOCNAME": "Engine CO. 51", "LOCCONTACT": "Cptn. Mozocca", "LOCPHONE": "725-2851", "LOCSTNO": 425, "LOCADDR": "Faneuil St, Oak Sq", "LOCOWNER": "BFD", "LOCWARD": "22", "LOCPARCL": "05003", "LOCPRECT": " ", "LOCPLAN": "F", "STUDY": "T", "ABOVE": 1, "ABOVE_DESC": "(1)1000g FO in bsment", "SOURCE": "FP", "GEOADDRESS": "425 Faneuil St, Oak Sq", "PD": "Allston\/Brighton", "CT90": "003", "XCOORD": 71168639, "YCOORD": 42351034 }, "geometry": { "type": "Point", "coordinates": [ -71.16816281093746, 42.351276472128063 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 28, "OBJECTID": 28, "BFD_ID": 28, "MAP_ID": "062", "MAPCODE": "2", "LOCCODE": "030", "LOCDEPT": "BFD", "LOCNAME": "Engine CO. 52, 29", "LOCCONTACT": "Frftr Bowden, Cptn Noonan", "LOCPHONE": "725-2852", "LOCSTNO": 975, "LOCADDR": "Blue Hill Ave", "LOCOWNER": "BFD", "LOCWARD": "14", "LOCPARCL": "00000", "LOCPRECT": " ", "LOCPLAN": "F", "STUDY": "T", "ABOVE": 0, "ABOVE_DESC": " ", "SOURCE": "FP", "GEOADDRESS": "975 Blue Hill Ave", "PD": "Mattapan", "CT90": "1001", "XCOORD": 71089993, "YCOORD": 42290901 }, "geometry": { "type": "Point", "coordinates": [ -71.089696717155348, 42.290901919213624 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 29, "OBJECTID": 29, "BFD_ID": 29, "MAP_ID": "063", "MAPCODE": "2", "LOCCODE": "031", "LOCDEPT": "BFD", "LOCNAME": "Engine CO. 53, 16", "LOCCONTACT": "Cptn. Sullivan", "LOCPHONE": "725-2853", "LOCSTNO": 945, "LOCADDR": "Canterbury St", "LOCOWNER": "BFD", "LOCWARD": "18", "LOCPARCL": "03006", "LOCPRECT": " ", "LOCPLAN": "F", "STUDY": "T", "ABOVE": 0, "ABOVE_DESC": " ", "SOURCE": "FPA", "GEOADDRESS": "945 Canterbury St", "PD": "Roslindale", "CT90": "1102", "XCOORD": 71117687, "YCOORD": 42278832 }, "geometry": { "type": "Point", "coordinates": [ -71.117496244389997, 42.279019859443721 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 30, "OBJECTID": 30, "BFD_ID": 30, "MAP_ID": "074", "MAPCODE": "2", "LOCCODE": "032", "LOCDEPT": "BFD", "LOCNAME": "Engine CO. 55", "LOCCONTACT": "Cptn. George Cohen", "LOCPHONE": "725-2855", "LOCSTNO": 5115, "LOCADDR": "Washington St", "LOCOWNER": "BFD", "LOCWARD": "20", "LOCPARCL": "00603", "LOCPRECT": " ", "LOCPLAN": "F", "STUDY": "T", "ABOVE": 0, "ABOVE_DESC": " ", "SOURCE": "FPI", "GEOADDRESS": "5115 Washington St", "PD": "West Roxbury", "CT90": "1304.01", "XCOORD": 71155614, "YCOORD": 42262985 }, "geometry": { "type": "Point", "coordinates": [ -71.154852851153478, 42.263981769278068 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 31, "OBJECTID": 31, "BFD_ID": 31, "MAP_ID": "055", "MAPCODE": "2", "LOCCODE": "033", "LOCDEPT": "BFD", "LOCNAME": "Engine CO. 56, 21", "LOCCONTACT": "Cptn. James Famolare", "LOCPHONE": "725-2856", "LOCSTNO": 1, "LOCADDR": "Ashley St", "LOCOWNER": "BFD", "LOCWARD": "01", "LOCPARCL": "00000", "LOCPRECT": " ", "LOCPLAN": "F", "STUDY": "T", "ABOVE": 0, "ABOVE_DESC": " ", "SOURCE": "OF", "GEOADDRESS": "1 Ashley St\r\n", "PD": "East Boston", "CT90": "511", "XCOORD": 71004487, "YCOORD": 42387724 }, "geometry": { "type": "Point", "coordinates": [ -71.004186071647595, 42.387748835576645 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 32, "OBJECTID": 37, "BFD_ID": 37, "MAP_ID": "060", "MAPCODE": "2", "LOCCODE": "042", "LOCDEPT": "BFD", "LOCNAME": "Engine CO. 28, 10 (Division 2 Headquarters)", "LOCCONTACT": " ", "LOCPHONE": "", "LOCSTNO": 746, "LOCADDR": "Centre St", "LOCOWNER": "BFD", "LOCWARD": "19", "LOCPARCL": "00000", "LOCPRECT": " ", "LOCPLAN": "F", "STUDY": "F", "ABOVE": 0, "ABOVE_DESC": " ", "SOURCE": " ", "GEOADDRESS": "746 Centre St", "PD": "Jamaica Plain", "CT90": "1204", "XCOORD": 71115365, "YCOORD": 42310280 }, "geometry": { "type": "Point", "coordinates": [ -71.114400188898841, 42.310575275244631 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 33, "OBJECTID": 38, "BFD_ID": 38, "MAP_ID": "043", "MAPCODE": "2", "LOCCODE": "043", "LOCDEPT": "BFD", "LOCNAME": "Engine CO. 10", "LOCCONTACT": "Cptn O'Donnell", "LOCPHONE": "725-2810", "LOCSTNO": 125, "LOCADDR": "Purchase St", "LOCOWNER": "PRI", "LOCWARD": "03", "LOCPARCL": "00000", "LOCPRECT": " ", "LOCPLAN": "F", "STUDY": "F", "ABOVE": 0, "ABOVE_DESC": " ", "SOURCE": " ", "GEOADDRESS": "125 Purchase St", "PD": "Boston", "CT90": "701", "XCOORD": 71053770, "YCOORD": 42354808 }, "geometry": { "type": "Point", "coordinates": [ -71.052997547304344, 42.355091720495523 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 34, "OBJECTID": 0, "BFD_ID": 0, "MAP_ID": " ", "MAPCODE": " ", "LOCCODE": " ", "LOCDEPT": "BFD", "LOCNAME": "AIR SUPPLY UNIT", "LOCCONTACT": " ", "LOCPHONE": "", "LOCSTNO": 115, "LOCADDR": "SOUTHAMPTON ST", "LOCOWNER": " ", "LOCWARD": " ", "LOCPARCL": " ", "LOCPRECT": " ", "LOCPLAN": " ", "STUDY": " ", "ABOVE": 0, "ABOVE_DESC": " ", "SOURCE": " ", "GEOADDRESS": " ", "PD": " ", "CT90": " ", "XCOORD": 0, "YCOORD": 0 }, "geometry": { "type": "Point", "coordinates": [ -71.069634250620183, 42.331319234039675 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 35, "OBJECTID": null, "BFD_ID": null, "MAP_ID": null, "MAPCODE": null, "LOCCODE": null, "LOCDEPT": null, "LOCNAME": null, "LOCCONTACT": null, "LOCPHONE": " ", "LOCSTNO": null, "LOCADDR": "50 Battery Wharf", "LOCOWNER": null, "LOCWARD": null, "LOCPARCL": null, "LOCPRECT": null, "LOCPLAN": null, "STUDY": null, "ABOVE": null, "ABOVE_DESC": null, "SOURCE": null, "GEOADDRESS": "50 Battery Wharf", "PD": "Boston", "CT90": null, "XCOORD": null, "YCOORD": null }, "geometry": { "type": "Point", "coordinates": [ -71.04966409719745, 42.3666432197885 ] } } +] +} diff --git a/public/data/boston_hospitals.json b/public/data/boston_hospitals.json new file mode 100644 index 00000000..db7a9ed2 --- /dev/null +++ b/public/data/boston_hospitals.json @@ -0,0 +1,37 @@ +var hospitals_json= { +"type": "FeatureCollection", +"name": "Hospitals", +"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } }, +"features": [ +{ "type": "Feature", "properties": { "OBJECTID": 1, "Census_Tra": 0, "Name": "Arbour Hospital", "Address": "49 Robinwood Ave, Boston, MA", "City": " ", "Zipcode": "02130", "Statea": " ", "Contact": "ARBOUR HOSP INC MASS CORP", "PhoneNumbe": "617-522-4400", "Latitude": 42.31577, "Longitude": -71.11224999, "Comment_": " ", "Primary_Alt": "Primary", "Alternative_Name": null, "DailyAvg": null }, "geometry": { "type": "Point", "coordinates": [ -71.112250657538382, 42.315784059362045 ] } }, +{ "type": "Feature", "properties": { "OBJECTID": 2, "Census_Tra": 0, "Name": "Franciscan Children's Hospital & Rehab Center", "Address": "30 Warren St, Boston, MA", "City": " ", "Zipcode": "02119", "Statea": " ", "Contact": "RYAN ALBERTHA K TS", "PhoneNumbe": "(617) 254-3800", "Latitude": 42.32974, "Longitude": -71.08305999, "Comment_": " ", "Primary_Alt": "Primary", "Alternative_Name": null, "DailyAvg": null }, "geometry": { "type": "Point", "coordinates": [ -71.083060596815301, 42.329748667149794 ] } }, +{ "type": "Feature", "properties": { "OBJECTID": 3, "Census_Tra": 0, "Name": "Hebrew Rehabilitation Center", "Address": "1200 Centre St, Boston, MA", "City": " ", "Zipcode": "02131", "Statea": " ", "Contact": "HEBREW REHABILITATION CNTR", "PhoneNumbe": "617-363-8000", "Latitude": 42.29668108, "Longitude": -71.13073384, "Comment_": " ", "Primary_Alt": "Primary", "Alternative_Name": null, "DailyAvg": null }, "geometry": { "type": "Point", "coordinates": [ -71.130734460314628, 42.296689743369811 ] } }, +{ "type": "Feature", "properties": { "OBJECTID": 4, "Census_Tra": 0, "Name": "Jewish Memorial Hospital & Radius Hospital", "Address": "59 Townsend St, Boston, MA", "City": " ", "Zipcode": "02119", "Statea": " ", "Contact": "RADIUS-FA LTCH REALTY LLC", "PhoneNumbe": "617-522-8110", "Latitude": 42.31858534, "Longitude": -71.09244494, "Comment_": " ", "Primary_Alt": "Primary", "Alternative_Name": null, "DailyAvg": null }, "geometry": { "type": "Point", "coordinates": [ -71.092445539869345, 42.318594009953337 ] } }, +{ "type": "Feature", "properties": { "OBJECTID": 5, "Census_Tra": 0, "Name": "Kindred Hospital", "Address": "1515 Commonwealth Ave, Boston, MA", "City": " ", "Zipcode": "02135", "Statea": " ", "Contact": "VENTAS LPS", "PhoneNumbe": "617-254-1100", "Latitude": 42.34659999, "Longitude": -71.14184999, "Comment_": " ", "Primary_Alt": "Primary", "Alternative_Name": null, "DailyAvg": null }, "geometry": { "type": "Point", "coordinates": [ -71.141850616753842, 42.346608668058877 ] } }, +{ "type": "Feature", "properties": { "OBJECTID": 6, "Census_Tra": 0, "Name": "Lemuel Shattuck Hospital", "Address": "170 Morton St, Boston, MA", "City": " ", "Zipcode": "02124", "Statea": " ", "Contact": "COMMONWEALTH OF MASS", "PhoneNumbe": "617-989-8315", "Latitude": 42.29943676, "Longitude": -71.1018377, "Comment_": " ", "Primary_Alt": "Primary", "Alternative_Name": null, "DailyAvg": null }, "geometry": { "type": "Point", "coordinates": [ -71.101838307740891, 42.299445426059727 ] } }, +{ "type": "Feature", "properties": { "OBJECTID": 7, "Census_Tra": 0, "Name": "Shriner's Burn Institute", "Address": "51 Blossom St, Boston, MA", "City": " ", "Zipcode": "02114", "Statea": " ", "Contact": "SHRINERS HOSPITAL", "PhoneNumbe": "617-523-1684", "Latitude": 42.36308, "Longitude": -71.06644999, "Comment_": " ", "Primary_Alt": "Primary", "Alternative_Name": "Shriner’s Burn Institute ", "DailyAvg": null }, "geometry": { "type": "Point", "coordinates": [ -71.066450593174281, 42.363088673908081 ] } }, +{ "type": "Feature", "properties": { "OBJECTID": 8, "Census_Tra": 0, "Name": "Spaulding Rehabilitation Hospital", "Address": "125 Nashua St, Boston, MA", "City": " ", "Zipcode": "02114", "Statea": " ", "Contact": "SPAULDING REHAB HOSPITAL CP", "PhoneNumbe": "617-573-7000", "Latitude": 42.36782999, "Longitude": -71.06494999, "Comment_": " ", "Primary_Alt": "Primary", "Alternative_Name": null, "DailyAvg": null }, "geometry": { "type": "Point", "coordinates": [ -71.064950593079061, 42.367838674134028 ] } }, +{ "type": "Feature", "properties": { "OBJECTID": 9, "Census_Tra": 2069, "Name": "Beth Isreal Deaconess medical Center - East Campus", "Address": "330 Brookline Ave, Boston, MA 02215", "City": " ", "Zipcode": "02115", "Statea": " ", "Contact": "BETH ISRAEL DEACONESS", "PhoneNumbe": "617-667-7000", "Latitude": 42.33981999, "Longitude": -71.10567999, "Comment_": " ", "Primary_Alt": "Primary", "Alternative_Name": null, "DailyAvg": 140 }, "geometry": { "type": "Point", "coordinates": [ -71.105680655668593, 42.339834063567267 ] } }, +{ "type": "Feature", "properties": { "OBJECTID": 10, "Census_Tra": 2307, "Name": "Boston Medical Center - Menino Campus", "Address": "1 Boston Medical Center Pl. Boston, 02118", "City": " ", "Zipcode": "02118", "Statea": " ", "Contact": "BOSTON PUBLIC HEALTH COMM", "PhoneNumbe": "617-638-8000", "Latitude": 42.3347841, "Longitude": -71.07320405, "Comment_": " ", "Primary_Alt": "Primary", "Alternative_Name": null, "DailyAvg": 330 }, "geometry": { "type": "Point", "coordinates": [ -71.073204695684126, 42.33479817346619 ] } }, +{ "type": "Feature", "properties": { "OBJECTID": 11, "Census_Tra": 2341, "Name": "Brigham and Women's Hospital", "Address": "75 Francis St, Boston, MA, 02115", "City": " ", "Zipcode": "02115", "Statea": " ", "Contact": "BRIGHAM& WOMENS HOSP INC", "PhoneNumbe": "617-732-5500", "Latitude": 42.33610648, "Longitude": -71.10748046, "Comment_": " ", "Primary_Alt": "Primary", "Alternative_Name": null, "DailyAvg": 160 }, "geometry": { "type": "Point", "coordinates": [ -71.107481074206603, 42.336115156840862 ] } }, +{ "type": "Feature", "properties": { "OBJECTID": 12, "Census_Tra": 2003, "Name": "Carney Hospital", "Address": "2100 Dorchester Ave, Dorchester, MA, 02124", "City": " ", "Zipcode": "02124", "Statea": " ", "Contact": "NEW CARITAS CHRISTI HOSPITAL", "PhoneNumbe": "617-296-2000", "Latitude": 42.27742624, "Longitude": -71.06569303000001, "Comment_": " ", "Primary_Alt": "Primary", "Alternative_Name": null, "DailyAvg": 80 }, "geometry": { "type": "Point", "coordinates": [ -71.065693621754377, 42.277434906478639 ] } }, +{ "type": "Feature", "properties": { "OBJECTID": 13, "Census_Tra": 2139, "Name": "Children's Hospital Boston", "Address": "300 Longwood Ave, Boston, MA 02115", "City": " ", "Zipcode": "02115", "Statea": " ", "Contact": "CHILDRENS HOSPITAL CORP THE", "PhoneNumbe": "617-355-6000", "Latitude": 42.33692, "Longitude": -71.10541999, "Comment_": " ", "Primary_Alt": "Primary", "Alternative_Name": null, "DailyAvg": 160 }, "geometry": { "type": "Point", "coordinates": [ -71.105420604233004, 42.336928668024832 ] } }, +{ "type": "Feature", "properties": { "OBJECTID": 14, "Census_Tra": 0, "Name": "Dana-Farber Cancer Institute", "Address": "44 Binney St, Boston, MA, 02115", "City": " ", "Zipcode": "02215", "Statea": " ", "Contact": "CHILDREN CANCER RESEARCH", "PhoneNumbe": "617-632-3000", "Latitude": 42.33755949, "Longitude": -71.10707939, "Comment_": " ", "Primary_Alt": "Primary", "Alternative_Name": null, "DailyAvg": null }, "geometry": { "type": "Point", "coordinates": [ -71.107080000796103, 42.337568158099486 ] } }, +{ "type": "Feature", "properties": { "OBJECTID": 15, "Census_Tra": 0, "Name": "Faulkner Hospital", "Address": "1153 Centre St, Boston, MA, 02130", "City": " ", "Zipcode": "02130", "Statea": " ", "Contact": "FAULKNER HOSPITAL INC", "PhoneNumbe": "617-983-7000", "Latitude": 42.30258, "Longitude": -71.12894, "Comment_": " ", "Primary_Alt": "Primary", "Alternative_Name": null, "DailyAvg": 65 }, "geometry": { "type": "Point", "coordinates": [ -71.128940610851018, 42.302588660458298 ] } }, +{ "type": "Feature", "properties": { "OBJECTID": 16, "Census_Tra": 0, "Name": "Massachusetts Eye and Ear Infirmary", "Address": "55 Fruit St, Boston, 02114", "City": " ", "Zipcode": "02114", "Statea": " ", "Contact": "MASS GEN EYE * EAR INF", "PhoneNumbe": "617-726-2000", "Latitude": 42.36259065, "Longitude": -71.07014072, "Comment_": " ", "Primary_Alt": "Primary", "Alternative_Name": "UpdateStat! Massachusetts General Hospital", "DailyAvg": null }, "geometry": { "type": "Point", "coordinates": [ -71.070141317057306, 42.362599331828463 ] } }, +{ "type": "Feature", "properties": { "OBJECTID": 17, "Census_Tra": 0, "Name": "St. Elizabeth's Hospital", "Address": "736 Cambridge St. Boston, 02135", "City": " ", "Zipcode": "02135", "Statea": " ", "Contact": "ST ELIZABETHS HOSP OF BOS", "PhoneNumbe": "617-789-3000", "Latitude": 42.34957389, "Longitude": -71.14797912, "Comment_": " ", "Primary_Alt": "Primary", "Alternative_Name": null, "DailyAvg": 90 }, "geometry": { "type": "Point", "coordinates": [ -71.147979747191314, 42.349582561841018 ] } }, +{ "type": "Feature", "properties": { "OBJECTID": 18, "Census_Tra": 0, "Name": "Tufts Medical Center", "Address": "750 Washington St. Boston, 02111", "City": " ", "Zipcode": "02111", "Statea": " ", "Contact": "TUFTS N E MED CTR INC", "PhoneNumbe": "(617) 636-5000", "Latitude": 42.35007835, "Longitude": -71.06305995, "Comment_": " ", "Primary_Alt": "Primary", "Alternative_Name": null, "DailyAvg": null }, "geometry": { "type": "Point", "coordinates": [ -71.063060542252558, 42.35008702928247 ] } }, +{ "type": "Feature", "properties": { "OBJECTID": 19, "Census_Tra": 0, "Name": "VA Bos. Healthcare System - Jamaica Plain", "Address": "150 South Huntington Ave. Boston, 02130", "City": " ", "Zipcode": "02115", "Statea": " ", "Contact": "UNITED STATES OF AMER", "PhoneNumbe": "(617) 232-9500", "Latitude": 42.32677799, "Longitude": -71.1101674, "Comment_": " ", "Primary_Alt": "Primary", "Alternative_Name": null, "DailyAvg": null }, "geometry": { "type": "Point", "coordinates": [ -71.110168014651535, 42.326786659919748 ] } }, +{ "type": "Feature", "properties": { "OBJECTID": 20, "Census_Tra": 0, "Name": "VA Bos. Healthcare System - W. Roxbury", "Address": "1400 VFW Parkway, Boston, 02132", "City": " ", "Zipcode": "02132", "Statea": " ", "Contact": "UNITED STATES OF AMERICA", "PhoneNumbe": "(617) 323-7700", "Latitude": 42.2752769, "Longitude": -71.17139292, "Comment_": " ", "Primary_Alt": "Primary", "Alternative_Name": null, "DailyAvg": null }, "geometry": { "type": "Point", "coordinates": [ -71.171393544507737, 42.275285554481528 ] } }, +{ "type": "Feature", "properties": { "OBJECTID": 21, "Census_Tra": 2092, "Name": "Beth Israel Deaconess Medical Center - West Campus", "Address": "110 Francis Street", "City": " ", "Zipcode": "02215", "Statea": " ", "Contact": "BETH ISRAEL DEACONESS", "PhoneNumbe": " ", "Latitude": 42.33759354, "Longitude": -71.10892133, "Comment_": " ", "Primary_Alt": "Primary", "Alternative_Name": null, "DailyAvg": null }, "geometry": { "type": "Point", "coordinates": [ -71.108921990197487, 42.337607611684987 ] } }, +{ "type": "Feature", "properties": { "OBJECTID": 22, "Census_Tra": 2084, "Name": "Boston Medical Center - East Newton Campus", "Address": "88 East Newton Stret", "City": " ", "Zipcode": "02118", "Statea": " ", "Contact": "UNIVERSITY HOSP INC", "PhoneNumbe": " ", "Latitude": 42.33775943, "Longitude": -71.07079483, "Comment_": " ", "Primary_Alt": "Primary", "Alternative_Name": null, "DailyAvg": null }, "geometry": { "type": "Point", "coordinates": [ -71.070795479048712, 42.337773503045042 ] } }, +{ "type": "Feature", "properties": { "OBJECTID": 23, "Census_Tra": 0, "Name": "New England Baptist Hospital", "Address": "125 Parker Hill Avenue", "City": " ", "Zipcode": "02120", "Statea": " ", "Contact": "N E BAPTIST HOSPITAL", "PhoneNumbe": " ", "Latitude": 42.32991697, "Longitude": -71.10714028, "Comment_": " ", "Primary_Alt": "Primary", "Alternative_Name": null, "DailyAvg": null }, "geometry": { "type": "Point", "coordinates": [ -71.107140885143707, 42.329925646080405 ] } }, +{ "type": "Feature", "properties": { "OBJECTID": 24, "Census_Tra": 0, "Name": "BOSTON VETERAN CENTER", "Address": "665 BEACON STREET", "City": " ", "Zipcode": "02215", "Statea": " ", "Contact": "BOSTON UNIVERSITY TRSTS OF", "PhoneNumbe": "617-424-0665", "Latitude": 42.34820272, "Longitude": -71.09854366, "Comment_": " ", "Primary_Alt": "Primary", "Alternative_Name": null, "DailyAvg": null }, "geometry": { "type": "Point", "coordinates": [ -71.09854431667712, 42.348216791723779 ] } }, +{ "type": "Feature", "properties": { "OBJECTID": 25, "Census_Tra": 0, "Name": "Veterans Affairs Boston Health Care System", "Address": "251 CAUSEWAY STREET", "City": " ", "Zipcode": "02114", "Statea": " ", "Contact": "CAUSEWAY HOLDINGS INC", "PhoneNumbe": "617-248-1000", "Latitude": 42.36648248, "Longitude": -71.05895207, "Comment_": " ", "Primary_Alt": "Primary", "Alternative_Name": null, "DailyAvg": null }, "geometry": { "type": "Point", "coordinates": [ -71.058952670309992, 42.366491158455148 ] } }, +{ "type": "Feature", "properties": { "OBJECTID": 26, "Census_Tra": 0, "Name": "Erich LIindemann Mental Health Center", "Address": "25 STANIFORD STREET", "City": " ", "Zipcode": "02114", "Statea": " ", "Contact": "COMMONWEALTH OF MASS", "PhoneNumbe": "617-626-8500", "Latitude": 42.3619051, "Longitude": -71.06349027, "Comment_": " ", "Primary_Alt": "Primary", "Alternative_Name": null, "DailyAvg": null }, "geometry": { "type": "Point", "coordinates": [ -71.063490868255869, 42.361913773629006 ] } }, +{ "type": "Feature", "properties": { "OBJECTID": 27, "Census_Tra": 0, "Name": "Urgent Care Medical Unit", "Address": "581 BOYLSTON STREET", "City": " ", "Zipcode": "02116", "Statea": " ", "Contact": "ABBEY BOYLSTON LLC", "PhoneNumbe": "617-247-1400", "Latitude": 42.35055468, "Longitude": -71.07660537, "Comment_": " ", "Primary_Alt": "Primary", "Alternative_Name": null, "DailyAvg": null }, "geometry": { "type": "Point", "coordinates": [ -71.076605968430158, 42.350563359770106 ] } }, +{ "type": "Feature", "properties": { "OBJECTID": 28, "Census_Tra": 0, "Name": "Boston Public Health Commission Medical Facilities", "Address": " ALBANY ST", "City": " ", "Zipcode": "02118", "Statea": " ", "Contact": "BOSTON PUBLIC HEALTH COMM", "PhoneNumbe": " ", "Latitude": 42.33382409, "Longitude": -71.07221631, "Comment_": " ", "Primary_Alt": "Primary", "Alternative_Name": null, "DailyAvg": null }, "geometry": { "type": "Point", "coordinates": [ -71.072216953702338, 42.333838162283385 ] } }, +{ "type": "Feature", "properties": { "OBJECTID": 29, "Census_Tra": 0, "Name": "MGH at the Navy Yard", "Address": " THIRTEENTH ST", "City": " ", "Zipcode": "02129", "Statea": " ", "Contact": "CONSTITUTION OFFICE PARK LE", "PhoneNumbe": " ", "Latitude": 42.37722077, "Longitude": -71.052447, "Comment_": " ", "Primary_Alt": "Primary", "Alternative_Name": null, "DailyAvg": null }, "geometry": { "type": "Point", "coordinates": [ -71.052447590487546, 42.377229455936472 ] } }, +{ "type": "Feature", "properties": { "OBJECTID": 30, "Census_Tra": 0, "Name": "Mass General Hospital", "Address": "255 265 CHARLES ST", "City": " ", "Zipcode": "02114", "Statea": " ", "Contact": "GENERAL HOSPITAL CORP", "PhoneNumbe": " ", "Latitude": 42.36315524, "Longitude": -71.06852783, "Comment_": " ", "Primary_Alt": "Primary", "Alternative_Name": "Massachusetts General Hospital- 617-726-2000", "DailyAvg": 110 }, "geometry": { "type": "Point", "coordinates": [ -71.068287137858093, 42.362374084790382 ] } } +] +} diff --git a/public/data/boston_neighborhoods.json b/public/data/boston_neighborhoods.json new file mode 100644 index 00000000..119800f6 --- /dev/null +++ b/public/data/boston_neighborhoods.json @@ -0,0 +1,31 @@ +var neighborhoods_json = { + "type": "FeatureCollection", + "features": [ + { "type": "Feature", "properties": { "Name": "Roslindale", "density": 5.5800 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -71.1259, 42.2720 ], [ -71.1257, 42.2723 ], [ -71.1256, 42.2724 ], [ -71.1255, 42.2725 ], [ -71.1257, 42.2724 ], [ -71.1263, 42.2721 ], [ -71.1265, 42.2720 ], [ -71.1265, 42.2721 ], [ -71.1266, 42.2722 ], [ -71.1269, 42.2720 ], [ -71.1272, 42.2719 ], [ -71.1273, 42.2719 ], [ -71.1276, 42.2719 ], [ -71.1278, 42.2719 ], [ -71.1279, 42.2719 ], [ -71.1282, 42.2712 ], [ -71.1284, 42.2709 ], [ -71.1284, 42.2708 ], [ -71.1288, 42.2706 ], [ -71.1294, 42.2703 ], [ -71.1299, 42.2700 ], [ -71.1301, 42.2700 ], [ -71.1303, 42.2703 ], [ -71.1304, 42.2703 ], [ -71.1307, 42.2702 ], [ -71.1308, 42.2705 ], [ -71.1309, 42.2707 ], [ -71.1315, 42.2706 ], [ -71.1316, 42.2706 ], [ -71.1317, 42.2708 ], [ -71.1319, 42.2711 ], [ -71.1318, 42.2713 ], [ -71.1317, 42.2720 ], [ -71.1316, 42.2722 ], [ -71.1315, 42.2723 ], [ -71.1314, 42.2724 ], [ -71.1311, 42.2726 ], [ -71.1309, 42.2728 ], [ -71.1310, 42.2728 ], [ -71.1311, 42.2729 ], [ -71.1312, 42.2730 ], [ -71.1313, 42.2730 ], [ -71.1313, 42.2730 ], [ -71.1313, 42.2730 ], [ -71.1315, 42.2731 ], [ -71.1316, 42.2732 ], [ -71.1318, 42.2733 ], [ -71.1319, 42.2734 ], [ -71.1321, 42.2735 ], [ -71.1323, 42.2736 ], [ -71.1323, 42.2737 ], [ -71.1325, 42.2738 ], [ -71.1327, 42.2739 ], [ -71.1329, 42.2740 ], [ -71.1330, 42.2741 ], [ -71.1332, 42.2742 ], [ -71.1333, 42.2743 ], [ -71.1335, 42.2744 ], [ -71.1335, 42.2744 ], [ -71.1335, 42.2744 ], [ -71.1335, 42.2744 ], [ -71.1335, 42.2743 ], [ -71.1337, 42.2742 ], [ -71.1339, 42.2740 ], [ -71.1347, 42.2733 ], [ -71.1349, 42.2732 ], [ -71.1351, 42.2730 ], [ -71.1352, 42.2730 ], [ -71.1353, 42.2729 ], [ -71.1355, 42.2727 ], [ -71.1370, 42.2715 ], [ -71.1371, 42.2713 ], [ -71.1373, 42.2712 ], [ -71.1378, 42.2707 ], [ -71.1374, 42.2705 ], [ -71.1364, 42.2699 ], [ -71.1364, 42.2699 ], [ -71.1365, 42.2698 ], [ -71.1373, 42.2690 ], [ -71.1373, 42.2690 ], [ -71.1373, 42.2690 ], [ -71.1378, 42.2686 ], [ -71.1381, 42.2683 ], [ -71.1385, 42.2681 ], [ -71.1385, 42.2680 ], [ -71.1385, 42.2680 ], [ -71.1387, 42.2679 ], [ -71.1390, 42.2676 ], [ -71.1391, 42.2676 ], [ -71.1391, 42.2676 ], [ -71.1391, 42.2676 ], [ -71.1394, 42.2678 ], [ -71.1395, 42.2679 ], [ -71.1395, 42.2679 ], [ -71.1396, 42.2680 ], [ -71.1397, 42.2681 ], [ -71.1397, 42.2681 ], [ -71.1398, 42.2682 ], [ -71.1398, 42.2682 ], [ -71.1398, 42.2682 ], [ -71.1398, 42.2682 ], [ -71.1399, 42.2683 ], [ -71.1399, 42.2683 ], [ -71.1399, 42.2684 ], [ -71.1400, 42.2686 ], [ -71.1400, 42.2686 ], [ -71.1401, 42.2686 ], [ -71.1401, 42.2687 ], [ -71.1401, 42.2687 ], [ -71.1401, 42.2688 ], [ -71.1402, 42.2688 ], [ -71.1402, 42.2689 ], [ -71.1402, 42.2689 ], [ -71.1402, 42.2690 ], [ -71.1402, 42.2691 ], [ -71.1402, 42.2691 ], [ -71.1402, 42.2691 ], [ -71.1403, 42.2693 ], [ -71.1403, 42.2694 ], [ -71.1403, 42.2694 ], [ -71.1403, 42.2694 ], [ -71.1403, 42.2695 ], [ -71.1402, 42.2696 ], [ -71.1402, 42.2697 ], [ -71.1402, 42.2698 ], [ -71.1401, 42.2703 ], [ -71.1401, 42.2704 ], [ -71.1401, 42.2707 ], [ -71.1400, 42.2709 ], [ -71.1400, 42.2710 ], [ -71.1400, 42.2713 ], [ -71.1400, 42.2715 ], [ -71.1400, 42.2716 ], [ -71.1399, 42.2722 ], [ -71.1399, 42.2726 ], [ -71.1400, 42.2737 ], [ -71.1400, 42.2737 ], [ -71.1400, 42.2740 ], [ -71.1400, 42.2741 ], [ -71.1400, 42.2741 ], [ -71.1401, 42.2746 ], [ -71.1401, 42.2746 ], [ -71.1401, 42.2751 ], [ -71.1401, 42.2751 ], [ -71.1402, 42.2754 ], [ -71.1403, 42.2753 ], [ -71.1405, 42.2752 ], [ -71.1406, 42.2751 ], [ -71.1407, 42.2750 ], [ -71.1406, 42.2752 ], [ -71.1406, 42.2756 ], [ -71.1406, 42.2760 ], [ -71.1407, 42.2762 ], [ -71.1407, 42.2764 ], [ -71.1408, 42.2766 ], [ -71.1408, 42.2766 ], [ -71.1409, 42.2767 ], [ -71.1409, 42.2768 ], [ -71.1410, 42.2771 ], [ -71.1412, 42.2774 ], [ -71.1413, 42.2777 ], [ -71.1415, 42.2778 ], [ -71.1416, 42.2780 ], [ -71.1421, 42.2786 ], [ -71.1424, 42.2789 ], [ -71.1425, 42.2790 ], [ -71.1433, 42.2798 ], [ -71.1438, 42.2804 ], [ -71.1438, 42.2804 ], [ -71.1439, 42.2805 ], [ -71.1441, 42.2806 ], [ -71.1442, 42.2807 ], [ -71.1443, 42.2808 ], [ -71.1444, 42.2809 ], [ -71.1448, 42.2812 ], [ -71.1451, 42.2814 ], [ -71.1451, 42.2815 ], [ -71.1452, 42.2815 ], [ -71.1459, 42.2821 ], [ -71.1461, 42.2823 ], [ -71.1462, 42.2823 ], [ -71.1465, 42.2826 ], [ -71.1465, 42.2826 ], [ -71.1466, 42.2827 ], [ -71.1467, 42.2829 ], [ -71.1470, 42.2832 ], [ -71.1472, 42.2836 ], [ -71.1472, 42.2836 ], [ -71.1473, 42.2837 ], [ -71.1473, 42.2838 ], [ -71.1474, 42.2841 ], [ -71.1475, 42.2842 ], [ -71.1476, 42.2845 ], [ -71.1476, 42.2845 ], [ -71.1476, 42.2848 ], [ -71.1476, 42.2848 ], [ -71.1476, 42.2849 ], [ -71.1476, 42.2849 ], [ -71.1476, 42.2849 ], [ -71.1476, 42.2849 ], [ -71.1476, 42.2850 ], [ -71.1477, 42.2851 ], [ -71.1477, 42.2852 ], [ -71.1477, 42.2853 ], [ -71.1477, 42.2853 ], [ -71.1477, 42.2855 ], [ -71.1477, 42.2855 ], [ -71.1477, 42.2857 ], [ -71.1477, 42.2857 ], [ -71.1477, 42.2859 ], [ -71.1477, 42.2859 ], [ -71.1477, 42.2859 ], [ -71.1477, 42.2861 ], [ -71.1477, 42.2862 ], [ -71.1477, 42.2863 ], [ -71.1477, 42.2864 ], [ -71.1477, 42.2865 ], [ -71.1477, 42.2866 ], [ -71.1477, 42.2866 ], [ -71.1477, 42.2866 ], [ -71.1477, 42.2866 ], [ -71.1477, 42.2866 ], [ -71.1477, 42.2867 ], [ -71.1477, 42.2868 ], [ -71.1477, 42.2869 ], [ -71.1477, 42.2869 ], [ -71.1477, 42.2869 ], [ -71.1476, 42.2869 ], [ -71.1476, 42.2869 ], [ -71.1476, 42.2869 ], [ -71.1475, 42.2870 ], [ -71.1474, 42.2870 ], [ -71.1474, 42.2870 ], [ -71.1474, 42.2870 ], [ -71.1473, 42.2871 ], [ -71.1473, 42.2871 ], [ -71.1473, 42.2872 ], [ -71.1473, 42.2872 ], [ -71.1473, 42.2872 ], [ -71.1473, 42.2873 ], [ -71.1472, 42.2873 ], [ -71.1472, 42.2873 ], [ -71.1472, 42.2873 ], [ -71.1472, 42.2873 ], [ -71.1471, 42.2874 ], [ -71.1471, 42.2875 ], [ -71.1471, 42.2875 ], [ -71.1466, 42.2877 ], [ -71.1460, 42.2879 ], [ -71.1459, 42.2879 ], [ -71.1459, 42.2879 ], [ -71.1457, 42.2880 ], [ -71.1456, 42.2880 ], [ -71.1456, 42.2880 ], [ -71.1456, 42.2880 ], [ -71.1455, 42.2881 ], [ -71.1452, 42.2881 ], [ -71.1451, 42.2882 ], [ -71.1450, 42.2882 ], [ -71.1449, 42.2882 ], [ -71.1441, 42.2884 ], [ -71.1439, 42.2884 ], [ -71.1437, 42.2885 ], [ -71.1436, 42.2885 ], [ -71.1434, 42.2886 ], [ -71.1432, 42.2886 ], [ -71.1432, 42.2886 ], [ -71.1432, 42.2886 ], [ -71.1431, 42.2886 ], [ -71.1431, 42.2886 ], [ -71.1430, 42.2886 ], [ -71.1430, 42.2887 ], [ -71.1430, 42.2887 ], [ -71.1429, 42.2887 ], [ -71.1429, 42.2887 ], [ -71.1429, 42.2887 ], [ -71.1428, 42.2888 ], [ -71.1428, 42.2888 ], [ -71.1428, 42.2888 ], [ -71.1427, 42.2888 ], [ -71.1426, 42.2889 ], [ -71.1425, 42.2890 ], [ -71.1424, 42.2891 ], [ -71.1423, 42.2892 ], [ -71.1421, 42.2894 ], [ -71.1420, 42.2894 ], [ -71.1420, 42.2894 ], [ -71.1418, 42.2896 ], [ -71.1417, 42.2897 ], [ -71.1417, 42.2897 ], [ -71.1415, 42.2898 ], [ -71.1414, 42.2899 ], [ -71.1413, 42.2900 ], [ -71.1412, 42.2901 ], [ -71.1411, 42.2902 ], [ -71.1409, 42.2903 ], [ -71.1409, 42.2903 ], [ -71.1408, 42.2904 ], [ -71.1407, 42.2905 ], [ -71.1406, 42.2906 ], [ -71.1405, 42.2907 ], [ -71.1403, 42.2909 ], [ -71.1402, 42.2910 ], [ -71.1401, 42.2911 ], [ -71.1401, 42.2911 ], [ -71.1399, 42.2912 ], [ -71.1398, 42.2913 ], [ -71.1398, 42.2913 ], [ -71.1397, 42.2913 ], [ -71.1396, 42.2915 ], [ -71.1395, 42.2916 ], [ -71.1393, 42.2917 ], [ -71.1391, 42.2919 ], [ -71.1390, 42.2920 ], [ -71.1390, 42.2920 ], [ -71.1389, 42.2921 ], [ -71.1387, 42.2922 ], [ -71.1387, 42.2922 ], [ -71.1386, 42.2923 ], [ -71.1386, 42.2923 ], [ -71.1385, 42.2924 ], [ -71.1385, 42.2924 ], [ -71.1384, 42.2925 ], [ -71.1382, 42.2926 ], [ -71.1381, 42.2927 ], [ -71.1381, 42.2927 ], [ -71.1380, 42.2928 ], [ -71.1379, 42.2929 ], [ -71.1379, 42.2929 ], [ -71.1376, 42.2931 ], [ -71.1375, 42.2932 ], [ -71.1374, 42.2933 ], [ -71.1373, 42.2934 ], [ -71.1372, 42.2933 ], [ -71.1370, 42.2931 ], [ -71.1369, 42.2932 ], [ -71.1368, 42.2933 ], [ -71.1368, 42.2933 ], [ -71.1366, 42.2933 ], [ -71.1364, 42.2935 ], [ -71.1363, 42.2936 ], [ -71.1363, 42.2936 ], [ -71.1361, 42.2937 ], [ -71.1360, 42.2938 ], [ -71.1360, 42.2938 ], [ -71.1360, 42.2939 ], [ -71.1358, 42.2939 ], [ -71.1358, 42.2940 ], [ -71.1357, 42.2941 ], [ -71.1355, 42.2942 ], [ -71.1353, 42.2944 ], [ -71.1354, 42.2945 ], [ -71.1357, 42.2946 ], [ -71.1356, 42.2947 ], [ -71.1356, 42.2947 ], [ -71.1357, 42.2947 ], [ -71.1355, 42.2949 ], [ -71.1353, 42.2950 ], [ -71.1351, 42.2952 ], [ -71.1351, 42.2953 ], [ -71.1350, 42.2953 ], [ -71.1349, 42.2954 ], [ -71.1348, 42.2955 ], [ -71.1346, 42.2956 ], [ -71.1345, 42.2957 ], [ -71.1344, 42.2958 ], [ -71.1344, 42.2958 ], [ -71.1344, 42.2958 ], [ -71.1344, 42.2958 ], [ -71.1344, 42.2958 ], [ -71.1344, 42.2958 ], [ -71.1344, 42.2958 ], [ -71.1344, 42.2958 ], [ -71.1344, 42.2958 ], [ -71.1344, 42.2958 ], [ -71.1343, 42.2959 ], [ -71.1342, 42.2959 ], [ -71.1342, 42.2959 ], [ -71.1342, 42.2959 ], [ -71.1342, 42.2959 ], [ -71.1342, 42.2959 ], [ -71.1342, 42.2959 ], [ -71.1342, 42.2959 ], [ -71.1342, 42.2959 ], [ -71.1342, 42.2959 ], [ -71.1342, 42.2959 ], [ -71.1342, 42.2959 ], [ -71.1342, 42.2959 ], [ -71.1342, 42.2959 ], [ -71.1342, 42.2959 ], [ -71.1341, 42.2960 ], [ -71.1339, 42.2962 ], [ -71.1339, 42.2962 ], [ -71.1339, 42.2962 ], [ -71.1339, 42.2962 ], [ -71.1338, 42.2963 ], [ -71.1337, 42.2963 ], [ -71.1337, 42.2963 ], [ -71.1337, 42.2963 ], [ -71.1337, 42.2963 ], [ -71.1337, 42.2963 ], [ -71.1337, 42.2963 ], [ -71.1337, 42.2963 ], [ -71.1337, 42.2964 ], [ -71.1336, 42.2964 ], [ -71.1334, 42.2966 ], [ -71.1333, 42.2966 ], [ -71.1331, 42.2967 ], [ -71.1330, 42.2968 ], [ -71.1324, 42.2971 ], [ -71.1323, 42.2971 ], [ -71.1323, 42.2971 ], [ -71.1323, 42.2971 ], [ -71.1323, 42.2971 ], [ -71.1320, 42.2973 ], [ -71.1318, 42.2973 ], [ -71.1318, 42.2974 ], [ -71.1314, 42.2975 ], [ -71.1313, 42.2975 ], [ -71.1313, 42.2975 ], [ -71.1313, 42.2975 ], [ -71.1313, 42.2976 ], [ -71.1312, 42.2976 ], [ -71.1310, 42.2977 ], [ -71.1308, 42.2978 ], [ -71.1308, 42.2978 ], [ -71.1308, 42.2978 ], [ -71.1308, 42.2978 ], [ -71.1307, 42.2978 ], [ -71.1306, 42.2979 ], [ -71.1304, 42.2980 ], [ -71.1302, 42.2981 ], [ -71.1301, 42.2982 ], [ -71.1300, 42.2982 ], [ -71.1300, 42.2983 ], [ -71.1300, 42.2983 ], [ -71.1299, 42.2983 ], [ -71.1299, 42.2983 ], [ -71.1299, 42.2983 ], [ -71.1299, 42.2983 ], [ -71.1298, 42.2980 ], [ -71.1298, 42.2977 ], [ -71.1298, 42.2976 ], [ -71.1298, 42.2975 ], [ -71.1298, 42.2975 ], [ -71.1297, 42.2974 ], [ -71.1296, 42.2972 ], [ -71.1296, 42.2972 ], [ -71.1295, 42.2970 ], [ -71.1293, 42.2967 ], [ -71.1293, 42.2966 ], [ -71.1293, 42.2966 ], [ -71.1293, 42.2964 ], [ -71.1293, 42.2964 ], [ -71.1293, 42.2963 ], [ -71.1293, 42.2962 ], [ -71.1293, 42.2962 ], [ -71.1293, 42.2961 ], [ -71.1293, 42.2961 ], [ -71.1293, 42.2961 ], [ -71.1293, 42.2960 ], [ -71.1293, 42.2960 ], [ -71.1294, 42.2959 ], [ -71.1295, 42.2958 ], [ -71.1295, 42.2958 ], [ -71.1296, 42.2956 ], [ -71.1300, 42.2952 ], [ -71.1304, 42.2948 ], [ -71.1304, 42.2947 ], [ -71.1304, 42.2947 ], [ -71.1304, 42.2947 ], [ -71.1304, 42.2947 ], [ -71.1304, 42.2947 ], [ -71.1305, 42.2946 ], [ -71.1305, 42.2945 ], [ -71.1305, 42.2942 ], [ -71.1306, 42.2939 ], [ -71.1305, 42.2936 ], [ -71.1303, 42.2935 ], [ -71.1303, 42.2935 ], [ -71.1299, 42.2933 ], [ -71.1297, 42.2932 ], [ -71.1293, 42.2929 ], [ -71.1293, 42.2929 ], [ -71.1293, 42.2929 ], [ -71.1294, 42.2928 ], [ -71.1294, 42.2928 ], [ -71.1296, 42.2928 ], [ -71.1295, 42.2927 ], [ -71.1294, 42.2927 ], [ -71.1293, 42.2926 ], [ -71.1292, 42.2925 ], [ -71.1291, 42.2924 ], [ -71.1290, 42.2923 ], [ -71.1289, 42.2922 ], [ -71.1287, 42.2921 ], [ -71.1286, 42.2920 ], [ -71.1286, 42.2920 ], [ -71.1285, 42.2919 ], [ -71.1284, 42.2918 ], [ -71.1282, 42.2917 ], [ -71.1282, 42.2916 ], [ -71.1280, 42.2915 ], [ -71.1278, 42.2914 ], [ -71.1277, 42.2912 ], [ -71.1277, 42.2912 ], [ -71.1277, 42.2912 ], [ -71.1277, 42.2912 ], [ -71.1280, 42.2910 ], [ -71.1280, 42.2910 ], [ -71.1278, 42.2909 ], [ -71.1273, 42.2910 ], [ -71.1270, 42.2907 ], [ -71.1269, 42.2906 ], [ -71.1267, 42.2904 ], [ -71.1263, 42.2902 ], [ -71.1260, 42.2900 ], [ -71.1260, 42.2900 ], [ -71.1260, 42.2900 ], [ -71.1260, 42.2900 ], [ -71.1260, 42.2900 ], [ -71.1259, 42.2900 ], [ -71.1259, 42.2901 ], [ -71.1259, 42.2901 ], [ -71.1259, 42.2901 ], [ -71.1258, 42.2903 ], [ -71.1257, 42.2904 ], [ -71.1256, 42.2905 ], [ -71.1255, 42.2906 ], [ -71.1253, 42.2908 ], [ -71.1252, 42.2909 ], [ -71.1252, 42.2910 ], [ -71.1251, 42.2911 ], [ -71.1250, 42.2912 ], [ -71.1249, 42.2913 ], [ -71.1249, 42.2914 ], [ -71.1248, 42.2915 ], [ -71.1247, 42.2915 ], [ -71.1247, 42.2916 ], [ -71.1246, 42.2917 ], [ -71.1246, 42.2917 ], [ -71.1246, 42.2917 ], [ -71.1245, 42.2918 ], [ -71.1244, 42.2919 ], [ -71.1244, 42.2920 ], [ -71.1244, 42.2920 ], [ -71.1243, 42.2921 ], [ -71.1243, 42.2921 ], [ -71.1243, 42.2921 ], [ -71.1242, 42.2922 ], [ -71.1242, 42.2923 ], [ -71.1241, 42.2923 ], [ -71.1241, 42.2924 ], [ -71.1240, 42.2925 ], [ -71.1239, 42.2926 ], [ -71.1239, 42.2926 ], [ -71.1237, 42.2927 ], [ -71.1236, 42.2928 ], [ -71.1235, 42.2929 ], [ -71.1234, 42.2930 ], [ -71.1233, 42.2931 ], [ -71.1233, 42.2931 ], [ -71.1232, 42.2932 ], [ -71.1231, 42.2933 ], [ -71.1231, 42.2933 ], [ -71.1229, 42.2935 ], [ -71.1229, 42.2935 ], [ -71.1228, 42.2935 ], [ -71.1228, 42.2935 ], [ -71.1228, 42.2935 ], [ -71.1228, 42.2935 ], [ -71.1228, 42.2936 ], [ -71.1228, 42.2936 ], [ -71.1226, 42.2937 ], [ -71.1225, 42.2938 ], [ -71.1223, 42.2940 ], [ -71.1223, 42.2940 ], [ -71.1222, 42.2941 ], [ -71.1219, 42.2943 ], [ -71.1216, 42.2945 ], [ -71.1215, 42.2946 ], [ -71.1211, 42.2950 ], [ -71.1211, 42.2950 ], [ -71.1210, 42.2950 ], [ -71.1207, 42.2948 ], [ -71.1201, 42.2944 ], [ -71.1197, 42.2942 ], [ -71.1197, 42.2942 ], [ -71.1194, 42.2946 ], [ -71.1194, 42.2946 ], [ -71.1192, 42.2947 ], [ -71.1192, 42.2948 ], [ -71.1192, 42.2948 ], [ -71.1191, 42.2949 ], [ -71.1191, 42.2949 ], [ -71.1191, 42.2949 ], [ -71.1187, 42.2952 ], [ -71.1187, 42.2952 ], [ -71.1187, 42.2952 ], [ -71.1187, 42.2952 ], [ -71.1184, 42.2955 ], [ -71.1181, 42.2958 ], [ -71.1180, 42.2958 ], [ -71.1177, 42.2957 ], [ -71.1173, 42.2955 ], [ -71.1177, 42.2947 ], [ -71.1179, 42.2944 ], [ -71.1179, 42.2944 ], [ -71.1179, 42.2944 ], [ -71.1181, 42.2939 ], [ -71.1181, 42.2939 ], [ -71.1182, 42.2936 ], [ -71.1184, 42.2933 ], [ -71.1185, 42.2930 ], [ -71.1189, 42.2916 ], [ -71.1190, 42.2911 ], [ -71.1191, 42.2908 ], [ -71.1191, 42.2906 ], [ -71.1192, 42.2902 ], [ -71.1192, 42.2902 ], [ -71.1194, 42.2883 ], [ -71.1195, 42.2863 ], [ -71.1194, 42.2863 ], [ -71.1188, 42.2863 ], [ -71.1186, 42.2863 ], [ -71.1186, 42.2863 ], [ -71.1186, 42.2863 ], [ -71.1186, 42.2863 ], [ -71.1183, 42.2863 ], [ -71.1182, 42.2863 ], [ -71.1182, 42.2863 ], [ -71.1178, 42.2864 ], [ -71.1175, 42.2864 ], [ -71.1172, 42.2864 ], [ -71.1166, 42.2864 ], [ -71.1165, 42.2864 ], [ -71.1162, 42.2864 ], [ -71.1158, 42.2864 ], [ -71.1156, 42.2864 ], [ -71.1155, 42.2864 ], [ -71.1154, 42.2864 ], [ -71.1153, 42.2864 ], [ -71.1150, 42.2864 ], [ -71.1148, 42.2864 ], [ -71.1148, 42.2864 ], [ -71.1148, 42.2864 ], [ -71.1146, 42.2864 ], [ -71.1146, 42.2864 ], [ -71.1146, 42.2864 ], [ -71.1146, 42.2864 ], [ -71.1144, 42.2864 ], [ -71.1141, 42.2864 ], [ -71.1140, 42.2864 ], [ -71.1140, 42.2864 ], [ -71.1137, 42.2864 ], [ -71.1135, 42.2864 ], [ -71.1131, 42.2864 ], [ -71.1125, 42.2865 ], [ -71.1122, 42.2865 ], [ -71.1118, 42.2865 ], [ -71.1112, 42.2867 ], [ -71.1105, 42.2869 ], [ -71.1105, 42.2869 ], [ -71.1104, 42.2869 ], [ -71.1102, 42.2871 ], [ -71.1102, 42.2872 ], [ -71.1100, 42.2873 ], [ -71.1100, 42.2873 ], [ -71.1100, 42.2873 ], [ -71.1100, 42.2874 ], [ -71.1099, 42.2874 ], [ -71.1098, 42.2875 ], [ -71.1098, 42.2875 ], [ -71.1098, 42.2875 ], [ -71.1097, 42.2876 ], [ -71.1096, 42.2876 ], [ -71.1096, 42.2876 ], [ -71.1094, 42.2877 ], [ -71.1094, 42.2878 ], [ -71.1081, 42.2884 ], [ -71.1081, 42.2884 ], [ -71.1079, 42.2886 ], [ -71.1079, 42.2886 ], [ -71.1072, 42.2880 ], [ -71.1069, 42.2878 ], [ -71.1067, 42.2877 ], [ -71.1067, 42.2876 ], [ -71.1066, 42.2876 ], [ -71.1064, 42.2874 ], [ -71.1064, 42.2874 ], [ -71.1063, 42.2874 ], [ -71.1059, 42.2871 ], [ -71.1055, 42.2868 ], [ -71.1054, 42.2867 ], [ -71.1054, 42.2867 ], [ -71.1047, 42.2861 ], [ -71.1039, 42.2855 ], [ -71.1035, 42.2851 ], [ -71.1034, 42.2851 ], [ -71.1032, 42.2850 ], [ -71.1032, 42.2849 ], [ -71.1031, 42.2849 ], [ -71.1030, 42.2848 ], [ -71.1026, 42.2845 ], [ -71.1023, 42.2842 ], [ -71.1020, 42.2840 ], [ -71.1016, 42.2837 ], [ -71.1004, 42.2828 ], [ -71.1003, 42.2827 ], [ -71.0998, 42.2824 ], [ -71.0996, 42.2823 ], [ -71.0996, 42.2822 ], [ -71.0996, 42.2822 ], [ -71.0996, 42.2822 ], [ -71.0998, 42.2821 ], [ -71.1000, 42.2820 ], [ -71.1001, 42.2819 ], [ -71.1004, 42.2818 ], [ -71.1009, 42.2817 ], [ -71.1009, 42.2817 ], [ -71.1010, 42.2817 ], [ -71.1010, 42.2817 ], [ -71.1010, 42.2817 ], [ -71.1013, 42.2816 ], [ -71.1019, 42.2815 ], [ -71.1019, 42.2815 ], [ -71.1030, 42.2813 ], [ -71.1030, 42.2813 ], [ -71.1038, 42.2812 ], [ -71.1039, 42.2812 ], [ -71.1039, 42.2812 ], [ -71.1041, 42.2811 ], [ -71.1041, 42.2811 ], [ -71.1041, 42.2811 ], [ -71.1054, 42.2804 ], [ -71.1056, 42.2803 ], [ -71.1057, 42.2803 ], [ -71.1057, 42.2803 ], [ -71.1059, 42.2802 ], [ -71.1059, 42.2802 ], [ -71.1059, 42.2801 ], [ -71.1065, 42.2796 ], [ -71.1071, 42.2791 ], [ -71.1072, 42.2789 ], [ -71.1073, 42.2788 ], [ -71.1073, 42.2788 ], [ -71.1073, 42.2788 ], [ -71.1074, 42.2786 ], [ -71.1074, 42.2786 ], [ -71.1074, 42.2786 ], [ -71.1075, 42.2782 ], [ -71.1075, 42.2782 ], [ -71.1075, 42.2780 ], [ -71.1076, 42.2779 ], [ -71.1076, 42.2778 ], [ -71.1076, 42.2778 ], [ -71.1076, 42.2777 ], [ -71.1077, 42.2775 ], [ -71.1077, 42.2774 ], [ -71.1081, 42.2765 ], [ -71.1083, 42.2761 ], [ -71.1083, 42.2760 ], [ -71.1083, 42.2760 ], [ -71.1084, 42.2758 ], [ -71.1084, 42.2758 ], [ -71.1084, 42.2758 ], [ -71.1084, 42.2757 ], [ -71.1085, 42.2756 ], [ -71.1085, 42.2753 ], [ -71.1087, 42.2750 ], [ -71.1088, 42.2749 ], [ -71.1090, 42.2745 ], [ -71.1090, 42.2745 ], [ -71.1091, 42.2744 ], [ -71.1091, 42.2743 ], [ -71.1091, 42.2743 ], [ -71.1092, 42.2743 ], [ -71.1092, 42.2744 ], [ -71.1092, 42.2744 ], [ -71.1093, 42.2744 ], [ -71.1095, 42.2746 ], [ -71.1096, 42.2746 ], [ -71.1096, 42.2746 ], [ -71.1097, 42.2747 ], [ -71.1103, 42.2750 ], [ -71.1106, 42.2752 ], [ -71.1107, 42.2752 ], [ -71.1112, 42.2755 ], [ -71.1140, 42.2770 ], [ -71.1142, 42.2771 ], [ -71.1142, 42.2771 ], [ -71.1142, 42.2771 ], [ -71.1142, 42.2771 ], [ -71.1143, 42.2772 ], [ -71.1146, 42.2774 ], [ -71.1146, 42.2774 ], [ -71.1146, 42.2774 ], [ -71.1146, 42.2774 ], [ -71.1146, 42.2774 ], [ -71.1149, 42.2777 ], [ -71.1150, 42.2776 ], [ -71.1152, 42.2774 ], [ -71.1154, 42.2775 ], [ -71.1154, 42.2775 ], [ -71.1154, 42.2774 ], [ -71.1155, 42.2774 ], [ -71.1156, 42.2773 ], [ -71.1157, 42.2772 ], [ -71.1157, 42.2772 ], [ -71.1157, 42.2768 ], [ -71.1158, 42.2760 ], [ -71.1158, 42.2757 ], [ -71.1158, 42.2754 ], [ -71.1159, 42.2753 ], [ -71.1159, 42.2751 ], [ -71.1162, 42.2749 ], [ -71.1168, 42.2740 ], [ -71.1171, 42.2736 ], [ -71.1173, 42.2733 ], [ -71.1174, 42.2732 ], [ -71.1176, 42.2730 ], [ -71.1177, 42.2729 ], [ -71.1179, 42.2728 ], [ -71.1182, 42.2727 ], [ -71.1184, 42.2725 ], [ -71.1186, 42.2725 ], [ -71.1190, 42.2725 ], [ -71.1198, 42.2725 ], [ -71.1201, 42.2725 ], [ -71.1202, 42.2714 ], [ -71.1203, 42.2711 ], [ -71.1203, 42.2709 ], [ -71.1204, 42.2706 ], [ -71.1206, 42.2703 ], [ -71.1206, 42.2703 ], [ -71.1209, 42.2705 ], [ -71.1213, 42.2707 ], [ -71.1213, 42.2708 ], [ -71.1216, 42.2710 ], [ -71.1218, 42.2711 ], [ -71.1218, 42.2711 ], [ -71.1219, 42.2709 ], [ -71.1220, 42.2710 ], [ -71.1220, 42.2709 ], [ -71.1221, 42.2704 ], [ -71.1219, 42.2703 ], [ -71.1221, 42.2693 ], [ -71.1225, 42.2694 ], [ -71.1223, 42.2700 ], [ -71.1225, 42.2700 ], [ -71.1247, 42.2702 ], [ -71.1247, 42.2702 ], [ -71.1248, 42.2712 ], [ -71.1248, 42.2713 ], [ -71.1248, 42.2713 ], [ -71.1252, 42.2714 ], [ -71.1252, 42.2713 ], [ -71.1255, 42.2714 ], [ -71.1257, 42.2715 ], [ -71.1260, 42.2715 ], [ -71.1261, 42.2716 ], [ -71.1259, 42.2720 ] ] ], [ [ [ -71.1258, 42.2722 ], [ -71.1257, 42.2723 ], [ -71.1258, 42.2721 ], [ -71.1258, 42.2722 ] ] ], [ [ [ -71.1257, 42.2723 ], [ -71.1257, 42.2723 ], [ -71.1257, 42.2723 ], [ -71.1257, 42.2723 ] ] ] ] } }, + { "type": "Feature", "properties": { "Name": "Jamaica Plain", "density": 7.6200 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -71.1049, 42.3260 ], [ -71.1048, 42.3260 ], [ -71.1048, 42.3260 ], [ -71.1047, 42.3260 ], [ -71.1047, 42.3260 ], [ -71.1046, 42.3260 ], [ -71.1046, 42.3260 ], [ -71.1045, 42.3260 ], [ -71.1045, 42.3260 ], [ -71.1045, 42.3260 ], [ -71.1044, 42.3260 ], [ -71.1044, 42.3260 ], [ -71.1044, 42.3260 ], [ -71.1043, 42.3260 ], [ -71.1043, 42.3260 ], [ -71.1043, 42.3261 ], [ -71.1042, 42.3261 ], [ -71.1042, 42.3261 ], [ -71.1041, 42.3261 ], [ -71.1041, 42.3261 ], [ -71.1041, 42.3261 ], [ -71.1041, 42.3261 ], [ -71.1041, 42.3261 ], [ -71.1040, 42.3261 ], [ -71.1040, 42.3261 ], [ -71.1040, 42.3261 ], [ -71.1039, 42.3261 ], [ -71.1037, 42.3261 ], [ -71.1035, 42.3261 ], [ -71.1034, 42.3262 ], [ -71.1033, 42.3262 ], [ -71.1032, 42.3262 ], [ -71.1032, 42.3262 ], [ -71.1030, 42.3262 ], [ -71.1028, 42.3262 ], [ -71.1028, 42.3262 ], [ -71.1026, 42.3263 ], [ -71.1025, 42.3263 ], [ -71.1024, 42.3263 ], [ -71.1022, 42.3263 ], [ -71.1022, 42.3263 ], [ -71.1020, 42.3263 ], [ -71.1018, 42.3263 ], [ -71.1017, 42.3263 ], [ -71.1016, 42.3264 ], [ -71.1015, 42.3264 ], [ -71.1014, 42.3264 ], [ -71.1014, 42.3264 ], [ -71.1014, 42.3264 ], [ -71.1013, 42.3264 ], [ -71.1012, 42.3264 ], [ -71.1007, 42.3264 ], [ -71.1002, 42.3264 ], [ -71.1001, 42.3264 ], [ -71.1000, 42.3264 ], [ -71.1000, 42.3264 ], [ -71.0999, 42.3263 ], [ -71.0999, 42.3263 ], [ -71.0998, 42.3263 ], [ -71.0997, 42.3263 ], [ -71.0996, 42.3263 ], [ -71.0995, 42.3263 ], [ -71.0995, 42.3263 ], [ -71.0994, 42.3263 ], [ -71.0994, 42.3263 ], [ -71.0992, 42.3263 ], [ -71.0991, 42.3263 ], [ -71.0990, 42.3263 ], [ -71.0989, 42.3263 ], [ -71.0989, 42.3263 ], [ -71.0985, 42.3263 ], [ -71.0984, 42.3263 ], [ -71.0983, 42.3263 ], [ -71.0983, 42.3263 ], [ -71.0985, 42.3252 ], [ -71.0986, 42.3248 ], [ -71.0985, 42.3239 ], [ -71.0985, 42.3237 ], [ -71.0985, 42.3237 ], [ -71.0985, 42.3233 ], [ -71.0985, 42.3233 ], [ -71.0985, 42.3231 ], [ -71.0985, 42.3231 ], [ -71.0984, 42.3225 ], [ -71.0984, 42.3225 ], [ -71.0984, 42.3225 ], [ -71.0984, 42.3225 ], [ -71.0984, 42.3223 ], [ -71.0984, 42.3223 ], [ -71.0984, 42.3223 ], [ -71.0984, 42.3221 ], [ -71.0984, 42.3219 ], [ -71.0984, 42.3215 ], [ -71.0984, 42.3213 ], [ -71.0984, 42.3213 ], [ -71.0983, 42.3206 ], [ -71.0983, 42.3205 ], [ -71.0983, 42.3195 ], [ -71.0983, 42.3195 ], [ -71.0983, 42.3195 ], [ -71.0983, 42.3185 ], [ -71.0983, 42.3183 ], [ -71.0983, 42.3183 ], [ -71.0983, 42.3183 ], [ -71.0983, 42.3180 ], [ -71.0983, 42.3173 ], [ -71.0983, 42.3173 ], [ -71.0983, 42.3173 ], [ -71.0983, 42.3173 ], [ -71.0982, 42.3170 ], [ -71.0982, 42.3168 ], [ -71.0982, 42.3168 ], [ -71.0982, 42.3168 ], [ -71.0982, 42.3168 ], [ -71.0982, 42.3168 ], [ -71.0982, 42.3168 ], [ -71.0982, 42.3158 ], [ -71.0982, 42.3157 ], [ -71.0982, 42.3155 ], [ -71.0979, 42.3153 ], [ -71.0978, 42.3152 ], [ -71.0977, 42.3152 ], [ -71.0972, 42.3148 ], [ -71.0972, 42.3148 ], [ -71.0972, 42.3148 ], [ -71.0971, 42.3147 ], [ -71.0971, 42.3147 ], [ -71.0971, 42.3147 ], [ -71.0970, 42.3146 ], [ -71.0967, 42.3144 ], [ -71.0967, 42.3144 ], [ -71.0952, 42.3134 ], [ -71.0951, 42.3133 ], [ -71.0951, 42.3132 ], [ -71.0956, 42.3128 ], [ -71.0960, 42.3125 ], [ -71.0961, 42.3125 ], [ -71.0962, 42.3124 ], [ -71.0962, 42.3124 ], [ -71.0962, 42.3124 ], [ -71.0962, 42.3124 ], [ -71.0962, 42.3124 ], [ -71.0962, 42.3124 ], [ -71.0962, 42.3124 ], [ -71.0962, 42.3124 ], [ -71.0962, 42.3124 ], [ -71.0963, 42.3124 ], [ -71.0964, 42.3123 ], [ -71.0966, 42.3122 ], [ -71.0969, 42.3121 ], [ -71.0969, 42.3121 ], [ -71.0969, 42.3121 ], [ -71.0969, 42.3121 ], [ -71.0970, 42.3121 ], [ -71.0970, 42.3121 ], [ -71.0971, 42.3121 ], [ -71.0972, 42.3120 ], [ -71.0972, 42.3120 ], [ -71.0972, 42.3120 ], [ -71.0972, 42.3120 ], [ -71.0973, 42.3119 ], [ -71.0973, 42.3119 ], [ -71.0973, 42.3119 ], [ -71.0973, 42.3119 ], [ -71.0973, 42.3119 ], [ -71.0973, 42.3119 ], [ -71.0974, 42.3119 ], [ -71.0974, 42.3119 ], [ -71.0974, 42.3119 ], [ -71.0975, 42.3118 ], [ -71.0975, 42.3118 ], [ -71.0975, 42.3118 ], [ -71.0975, 42.3118 ], [ -71.0976, 42.3117 ], [ -71.0977, 42.3116 ], [ -71.0977, 42.3115 ], [ -71.0977, 42.3114 ], [ -71.0978, 42.3114 ], [ -71.0978, 42.3113 ], [ -71.0978, 42.3113 ], [ -71.0978, 42.3113 ], [ -71.0978, 42.3113 ], [ -71.0978, 42.3112 ], [ -71.0978, 42.3111 ], [ -71.0978, 42.3110 ], [ -71.0978, 42.3110 ], [ -71.0978, 42.3110 ], [ -71.0978, 42.3110 ], [ -71.0978, 42.3107 ], [ -71.0978, 42.3104 ], [ -71.0979, 42.3101 ], [ -71.0979, 42.3101 ], [ -71.0979, 42.3100 ], [ -71.0979, 42.3100 ], [ -71.0979, 42.3099 ], [ -71.0979, 42.3099 ], [ -71.0979, 42.3099 ], [ -71.0979, 42.3098 ], [ -71.0979, 42.3098 ], [ -71.0980, 42.3097 ], [ -71.0980, 42.3097 ], [ -71.0980, 42.3097 ], [ -71.0981, 42.3096 ], [ -71.0981, 42.3096 ], [ -71.0981, 42.3096 ], [ -71.0981, 42.3096 ], [ -71.0981, 42.3096 ], [ -71.0981, 42.3096 ], [ -71.0981, 42.3096 ], [ -71.0981, 42.3095 ], [ -71.0982, 42.3095 ], [ -71.0982, 42.3095 ], [ -71.0982, 42.3095 ], [ -71.0982, 42.3095 ], [ -71.0982, 42.3095 ], [ -71.0982, 42.3095 ], [ -71.0982, 42.3095 ], [ -71.0982, 42.3095 ], [ -71.0982, 42.3095 ], [ -71.0982, 42.3095 ], [ -71.0983, 42.3094 ], [ -71.0983, 42.3094 ], [ -71.0983, 42.3094 ], [ -71.0984, 42.3094 ], [ -71.0987, 42.3093 ], [ -71.0989, 42.3092 ], [ -71.0989, 42.3092 ], [ -71.0989, 42.3092 ], [ -71.0993, 42.3090 ], [ -71.0993, 42.3090 ], [ -71.0993, 42.3090 ], [ -71.0993, 42.3090 ], [ -71.0993, 42.3089 ], [ -71.0992, 42.3088 ], [ -71.0992, 42.3088 ], [ -71.0992, 42.3088 ], [ -71.0993, 42.3087 ], [ -71.0994, 42.3086 ], [ -71.0994, 42.3085 ], [ -71.0996, 42.3083 ], [ -71.0996, 42.3083 ], [ -71.0998, 42.3081 ], [ -71.0998, 42.3080 ], [ -71.0998, 42.3080 ], [ -71.0999, 42.3079 ], [ -71.0999, 42.3079 ], [ -71.0999, 42.3079 ], [ -71.0999, 42.3079 ], [ -71.0999, 42.3079 ], [ -71.1001, 42.3079 ], [ -71.1002, 42.3078 ], [ -71.1002, 42.3078 ], [ -71.1002, 42.3078 ], [ -71.1002, 42.3078 ], [ -71.1002, 42.3078 ], [ -71.1002, 42.3078 ], [ -71.1002, 42.3077 ], [ -71.1002, 42.3077 ], [ -71.1003, 42.3077 ], [ -71.1003, 42.3076 ], [ -71.1003, 42.3075 ], [ -71.1003, 42.3075 ], [ -71.1004, 42.3074 ], [ -71.1004, 42.3074 ], [ -71.1004, 42.3074 ], [ -71.1004, 42.3073 ], [ -71.1004, 42.3073 ], [ -71.1004, 42.3072 ], [ -71.1004, 42.3072 ], [ -71.1004, 42.3072 ], [ -71.1004, 42.3072 ], [ -71.1004, 42.3072 ], [ -71.1003, 42.3072 ], [ -71.1003, 42.3072 ], [ -71.1006, 42.3067 ], [ -71.1007, 42.3065 ], [ -71.1007, 42.3065 ], [ -71.1007, 42.3065 ], [ -71.1007, 42.3065 ], [ -71.1011, 42.3066 ], [ -71.1011, 42.3066 ], [ -71.1011, 42.3066 ], [ -71.1011, 42.3065 ], [ -71.1011, 42.3065 ], [ -71.1011, 42.3065 ], [ -71.1014, 42.3065 ], [ -71.1014, 42.3065 ], [ -71.1014, 42.3065 ], [ -71.1017, 42.3061 ], [ -71.1019, 42.3059 ], [ -71.1019, 42.3059 ], [ -71.1019, 42.3059 ], [ -71.1019, 42.3059 ], [ -71.1026, 42.3059 ], [ -71.1027, 42.3059 ], [ -71.1027, 42.3059 ], [ -71.1026, 42.3056 ], [ -71.1026, 42.3055 ], [ -71.1026, 42.3055 ], [ -71.1026, 42.3055 ], [ -71.1026, 42.3054 ], [ -71.1027, 42.3053 ], [ -71.1027, 42.3053 ], [ -71.1027, 42.3053 ], [ -71.1027, 42.3053 ], [ -71.1027, 42.3052 ], [ -71.1027, 42.3052 ], [ -71.1027, 42.3052 ], [ -71.1027, 42.3052 ], [ -71.1027, 42.3052 ], [ -71.1027, 42.3052 ], [ -71.1027, 42.3052 ], [ -71.1027, 42.3052 ], [ -71.1027, 42.3051 ], [ -71.1028, 42.3051 ], [ -71.1028, 42.3051 ], [ -71.1028, 42.3051 ], [ -71.1028, 42.3050 ], [ -71.1028, 42.3050 ], [ -71.1028, 42.3050 ], [ -71.1028, 42.3050 ], [ -71.1029, 42.3050 ], [ -71.1029, 42.3049 ], [ -71.1029, 42.3049 ], [ -71.1029, 42.3049 ], [ -71.1029, 42.3049 ], [ -71.1029, 42.3049 ], [ -71.1029, 42.3049 ], [ -71.1030, 42.3048 ], [ -71.1030, 42.3047 ], [ -71.1030, 42.3047 ], [ -71.1030, 42.3047 ], [ -71.1031, 42.3047 ], [ -71.1031, 42.3047 ], [ -71.1031, 42.3046 ], [ -71.1031, 42.3046 ], [ -71.1031, 42.3046 ], [ -71.1031, 42.3044 ], [ -71.1031, 42.3044 ], [ -71.1031, 42.3043 ], [ -71.1031, 42.3043 ], [ -71.1032, 42.3043 ], [ -71.1032, 42.3040 ], [ -71.1032, 42.3039 ], [ -71.1032, 42.3039 ], [ -71.1032, 42.3039 ], [ -71.1032, 42.3038 ], [ -71.1032, 42.3038 ], [ -71.1033, 42.3037 ], [ -71.1033, 42.3037 ], [ -71.1033, 42.3037 ], [ -71.1034, 42.3037 ], [ -71.1034, 42.3036 ], [ -71.1034, 42.3036 ], [ -71.1034, 42.3036 ], [ -71.1034, 42.3036 ], [ -71.1035, 42.3035 ], [ -71.1035, 42.3035 ], [ -71.1037, 42.3032 ], [ -71.1037, 42.3032 ], [ -71.1038, 42.3031 ], [ -71.1039, 42.3030 ], [ -71.1040, 42.3030 ], [ -71.1040, 42.3029 ], [ -71.1043, 42.3027 ], [ -71.1045, 42.3026 ], [ -71.1046, 42.3024 ], [ -71.1048, 42.3023 ], [ -71.1050, 42.3021 ], [ -71.1051, 42.3020 ], [ -71.1053, 42.3019 ], [ -71.1055, 42.3017 ], [ -71.1056, 42.3017 ], [ -71.1056, 42.3016 ], [ -71.1057, 42.3016 ], [ -71.1058, 42.3016 ], [ -71.1061, 42.3014 ], [ -71.1061, 42.3014 ], [ -71.1062, 42.3013 ], [ -71.1062, 42.3013 ], [ -71.1064, 42.3013 ], [ -71.1065, 42.3012 ], [ -71.1065, 42.3012 ], [ -71.1065, 42.3012 ], [ -71.1066, 42.3011 ], [ -71.1066, 42.3011 ], [ -71.1067, 42.3011 ], [ -71.1067, 42.3011 ], [ -71.1067, 42.3011 ], [ -71.1067, 42.3011 ], [ -71.1067, 42.3011 ], [ -71.1068, 42.3010 ], [ -71.1068, 42.3010 ], [ -71.1068, 42.3009 ], [ -71.1068, 42.3009 ], [ -71.1067, 42.3009 ], [ -71.1067, 42.3009 ], [ -71.1067, 42.3009 ], [ -71.1067, 42.3009 ], [ -71.1066, 42.3009 ], [ -71.1065, 42.3008 ], [ -71.1064, 42.3008 ], [ -71.1063, 42.3008 ], [ -71.1063, 42.3008 ], [ -71.1062, 42.3007 ], [ -71.1062, 42.3007 ], [ -71.1062, 42.3007 ], [ -71.1062, 42.3007 ], [ -71.1061, 42.3005 ], [ -71.1061, 42.3005 ], [ -71.1060, 42.3004 ], [ -71.1059, 42.3004 ], [ -71.1057, 42.3003 ], [ -71.1053, 42.3003 ], [ -71.1049, 42.3002 ], [ -71.1046, 42.3002 ], [ -71.1042, 42.3002 ], [ -71.1040, 42.3001 ], [ -71.1039, 42.3001 ], [ -71.1037, 42.3000 ], [ -71.1034, 42.2999 ], [ -71.1032, 42.2998 ], [ -71.1029, 42.2994 ], [ -71.1018, 42.2985 ], [ -71.1002, 42.2969 ], [ -71.0991, 42.2959 ], [ -71.0988, 42.2956 ], [ -71.0974, 42.2942 ], [ -71.0968, 42.2937 ], [ -71.0966, 42.2934 ], [ -71.0964, 42.2932 ], [ -71.0965, 42.2932 ], [ -71.0967, 42.2932 ], [ -71.0988, 42.2930 ], [ -71.0991, 42.2929 ], [ -71.0995, 42.2929 ], [ -71.0995, 42.2929 ], [ -71.0996, 42.2929 ], [ -71.0996, 42.2929 ], [ -71.0996, 42.2929 ], [ -71.0997, 42.2929 ], [ -71.0997, 42.2929 ], [ -71.0997, 42.2929 ], [ -71.0997, 42.2929 ], [ -71.0998, 42.2929 ], [ -71.0998, 42.2929 ], [ -71.0998, 42.2929 ], [ -71.0999, 42.2929 ], [ -71.0999, 42.2929 ], [ -71.0999, 42.2929 ], [ -71.0999, 42.2929 ], [ -71.1000, 42.2929 ], [ -71.1000, 42.2929 ], [ -71.1001, 42.2929 ], [ -71.1001, 42.2929 ], [ -71.1002, 42.2929 ], [ -71.1003, 42.2930 ], [ -71.1003, 42.2930 ], [ -71.1011, 42.2931 ], [ -71.1012, 42.2931 ], [ -71.1013, 42.2931 ], [ -71.1014, 42.2931 ], [ -71.1014, 42.2931 ], [ -71.1014, 42.2931 ], [ -71.1014, 42.2931 ], [ -71.1014, 42.2931 ], [ -71.1015, 42.2931 ], [ -71.1015, 42.2931 ], [ -71.1015, 42.2931 ], [ -71.1015, 42.2931 ], [ -71.1015, 42.2931 ], [ -71.1015, 42.2931 ], [ -71.1015, 42.2931 ], [ -71.1015, 42.2931 ], [ -71.1015, 42.2931 ], [ -71.1016, 42.2931 ], [ -71.1016, 42.2931 ], [ -71.1016, 42.2931 ], [ -71.1016, 42.2931 ], [ -71.1017, 42.2931 ], [ -71.1017, 42.2931 ], [ -71.1017, 42.2931 ], [ -71.1017, 42.2931 ], [ -71.1017, 42.2931 ], [ -71.1018, 42.2930 ], [ -71.1018, 42.2930 ], [ -71.1018, 42.2930 ], [ -71.1018, 42.2930 ], [ -71.1018, 42.2930 ], [ -71.1018, 42.2930 ], [ -71.1018, 42.2930 ], [ -71.1018, 42.2930 ], [ -71.1018, 42.2930 ], [ -71.1019, 42.2930 ], [ -71.1020, 42.2928 ], [ -71.1020, 42.2928 ], [ -71.1021, 42.2928 ], [ -71.1021, 42.2927 ], [ -71.1024, 42.2925 ], [ -71.1026, 42.2922 ], [ -71.1026, 42.2922 ], [ -71.1026, 42.2922 ], [ -71.1026, 42.2922 ], [ -71.1027, 42.2922 ], [ -71.1027, 42.2921 ], [ -71.1027, 42.2921 ], [ -71.1028, 42.2921 ], [ -71.1028, 42.2921 ], [ -71.1029, 42.2920 ], [ -71.1029, 42.2919 ], [ -71.1030, 42.2919 ], [ -71.1031, 42.2918 ], [ -71.1033, 42.2916 ], [ -71.1039, 42.2911 ], [ -71.1040, 42.2911 ], [ -71.1040, 42.2910 ], [ -71.1040, 42.2910 ], [ -71.1040, 42.2910 ], [ -71.1043, 42.2908 ], [ -71.1043, 42.2908 ], [ -71.1046, 42.2905 ], [ -71.1049, 42.2902 ], [ -71.1051, 42.2901 ], [ -71.1051, 42.2901 ], [ -71.1053, 42.2900 ], [ -71.1054, 42.2898 ], [ -71.1057, 42.2897 ], [ -71.1057, 42.2897 ], [ -71.1058, 42.2896 ], [ -71.1058, 42.2896 ], [ -71.1058, 42.2896 ], [ -71.1059, 42.2895 ], [ -71.1059, 42.2895 ], [ -71.1059, 42.2895 ], [ -71.1060, 42.2895 ], [ -71.1060, 42.2895 ], [ -71.1060, 42.2895 ], [ -71.1060, 42.2895 ], [ -71.1061, 42.2895 ], [ -71.1061, 42.2895 ], [ -71.1062, 42.2895 ], [ -71.1062, 42.2895 ], [ -71.1062, 42.2894 ], [ -71.1064, 42.2894 ], [ -71.1064, 42.2894 ], [ -71.1066, 42.2893 ], [ -71.1066, 42.2893 ], [ -71.1067, 42.2893 ], [ -71.1067, 42.2893 ], [ -71.1068, 42.2893 ], [ -71.1068, 42.2893 ], [ -71.1068, 42.2893 ], [ -71.1069, 42.2893 ], [ -71.1069, 42.2893 ], [ -71.1069, 42.2893 ], [ -71.1069, 42.2892 ], [ -71.1069, 42.2892 ], [ -71.1069, 42.2892 ], [ -71.1069, 42.2892 ], [ -71.1069, 42.2892 ], [ -71.1069, 42.2892 ], [ -71.1070, 42.2892 ], [ -71.1070, 42.2892 ], [ -71.1070, 42.2892 ], [ -71.1070, 42.2892 ], [ -71.1070, 42.2892 ], [ -71.1070, 42.2892 ], [ -71.1070, 42.2892 ], [ -71.1070, 42.2892 ], [ -71.1070, 42.2892 ], [ -71.1073, 42.2890 ], [ -71.1073, 42.2890 ], [ -71.1073, 42.2890 ], [ -71.1073, 42.2890 ], [ -71.1077, 42.2887 ], [ -71.1077, 42.2887 ], [ -71.1079, 42.2886 ], [ -71.1079, 42.2886 ], [ -71.1079, 42.2886 ], [ -71.1079, 42.2886 ], [ -71.1081, 42.2884 ], [ -71.1081, 42.2884 ], [ -71.1094, 42.2878 ], [ -71.1094, 42.2877 ], [ -71.1096, 42.2876 ], [ -71.1096, 42.2876 ], [ -71.1097, 42.2876 ], [ -71.1098, 42.2875 ], [ -71.1098, 42.2875 ], [ -71.1098, 42.2875 ], [ -71.1099, 42.2874 ], [ -71.1100, 42.2874 ], [ -71.1100, 42.2873 ], [ -71.1100, 42.2873 ], [ -71.1100, 42.2873 ], [ -71.1102, 42.2872 ], [ -71.1102, 42.2871 ], [ -71.1104, 42.2869 ], [ -71.1105, 42.2869 ], [ -71.1105, 42.2869 ], [ -71.1112, 42.2867 ], [ -71.1118, 42.2865 ], [ -71.1122, 42.2865 ], [ -71.1125, 42.2865 ], [ -71.1131, 42.2864 ], [ -71.1135, 42.2864 ], [ -71.1137, 42.2864 ], [ -71.1140, 42.2864 ], [ -71.1140, 42.2864 ], [ -71.1141, 42.2864 ], [ -71.1144, 42.2864 ], [ -71.1146, 42.2864 ], [ -71.1146, 42.2864 ], [ -71.1146, 42.2864 ], [ -71.1146, 42.2864 ], [ -71.1148, 42.2864 ], [ -71.1148, 42.2864 ], [ -71.1148, 42.2864 ], [ -71.1150, 42.2864 ], [ -71.1153, 42.2864 ], [ -71.1154, 42.2864 ], [ -71.1155, 42.2864 ], [ -71.1156, 42.2864 ], [ -71.1158, 42.2864 ], [ -71.1162, 42.2864 ], [ -71.1165, 42.2864 ], [ -71.1166, 42.2864 ], [ -71.1172, 42.2864 ], [ -71.1175, 42.2864 ], [ -71.1178, 42.2864 ], [ -71.1182, 42.2863 ], [ -71.1182, 42.2863 ], [ -71.1183, 42.2863 ], [ -71.1186, 42.2863 ], [ -71.1186, 42.2863 ], [ -71.1186, 42.2863 ], [ -71.1186, 42.2863 ], [ -71.1188, 42.2863 ], [ -71.1194, 42.2863 ], [ -71.1195, 42.2863 ], [ -71.1194, 42.2883 ], [ -71.1192, 42.2902 ], [ -71.1192, 42.2902 ], [ -71.1191, 42.2906 ], [ -71.1191, 42.2908 ], [ -71.1190, 42.2911 ], [ -71.1189, 42.2916 ], [ -71.1185, 42.2930 ], [ -71.1184, 42.2933 ], [ -71.1182, 42.2936 ], [ -71.1181, 42.2939 ], [ -71.1181, 42.2939 ], [ -71.1179, 42.2944 ], [ -71.1179, 42.2944 ], [ -71.1179, 42.2944 ], [ -71.1177, 42.2947 ], [ -71.1173, 42.2955 ], [ -71.1177, 42.2957 ], [ -71.1180, 42.2958 ], [ -71.1181, 42.2958 ], [ -71.1184, 42.2955 ], [ -71.1187, 42.2952 ], [ -71.1187, 42.2952 ], [ -71.1187, 42.2952 ], [ -71.1187, 42.2952 ], [ -71.1191, 42.2949 ], [ -71.1191, 42.2949 ], [ -71.1191, 42.2949 ], [ -71.1192, 42.2948 ], [ -71.1192, 42.2948 ], [ -71.1192, 42.2947 ], [ -71.1194, 42.2946 ], [ -71.1194, 42.2946 ], [ -71.1197, 42.2942 ], [ -71.1197, 42.2942 ], [ -71.1201, 42.2944 ], [ -71.1207, 42.2948 ], [ -71.1210, 42.2950 ], [ -71.1211, 42.2950 ], [ -71.1211, 42.2950 ], [ -71.1215, 42.2946 ], [ -71.1216, 42.2945 ], [ -71.1219, 42.2943 ], [ -71.1222, 42.2941 ], [ -71.1223, 42.2940 ], [ -71.1223, 42.2940 ], [ -71.1225, 42.2938 ], [ -71.1226, 42.2937 ], [ -71.1228, 42.2936 ], [ -71.1228, 42.2936 ], [ -71.1228, 42.2935 ], [ -71.1228, 42.2935 ], [ -71.1228, 42.2935 ], [ -71.1228, 42.2935 ], [ -71.1229, 42.2935 ], [ -71.1229, 42.2935 ], [ -71.1231, 42.2933 ], [ -71.1231, 42.2933 ], [ -71.1232, 42.2932 ], [ -71.1233, 42.2931 ], [ -71.1233, 42.2931 ], [ -71.1234, 42.2930 ], [ -71.1235, 42.2929 ], [ -71.1236, 42.2928 ], [ -71.1237, 42.2927 ], [ -71.1239, 42.2926 ], [ -71.1239, 42.2926 ], [ -71.1240, 42.2925 ], [ -71.1241, 42.2924 ], [ -71.1241, 42.2923 ], [ -71.1242, 42.2923 ], [ -71.1242, 42.2922 ], [ -71.1243, 42.2921 ], [ -71.1243, 42.2921 ], [ -71.1243, 42.2921 ], [ -71.1244, 42.2920 ], [ -71.1244, 42.2920 ], [ -71.1244, 42.2919 ], [ -71.1245, 42.2918 ], [ -71.1246, 42.2917 ], [ -71.1246, 42.2917 ], [ -71.1246, 42.2917 ], [ -71.1247, 42.2916 ], [ -71.1247, 42.2915 ], [ -71.1248, 42.2915 ], [ -71.1249, 42.2914 ], [ -71.1249, 42.2913 ], [ -71.1250, 42.2912 ], [ -71.1251, 42.2911 ], [ -71.1252, 42.2910 ], [ -71.1252, 42.2909 ], [ -71.1253, 42.2908 ], [ -71.1255, 42.2906 ], [ -71.1256, 42.2905 ], [ -71.1257, 42.2904 ], [ -71.1258, 42.2903 ], [ -71.1259, 42.2901 ], [ -71.1259, 42.2901 ], [ -71.1259, 42.2901 ], [ -71.1259, 42.2900 ], [ -71.1260, 42.2900 ], [ -71.1260, 42.2900 ], [ -71.1260, 42.2900 ], [ -71.1260, 42.2900 ], [ -71.1260, 42.2900 ], [ -71.1263, 42.2902 ], [ -71.1267, 42.2904 ], [ -71.1269, 42.2906 ], [ -71.1270, 42.2907 ], [ -71.1273, 42.2910 ], [ -71.1278, 42.2909 ], [ -71.1280, 42.2910 ], [ -71.1280, 42.2910 ], [ -71.1277, 42.2912 ], [ -71.1277, 42.2912 ], [ -71.1277, 42.2912 ], [ -71.1277, 42.2912 ], [ -71.1278, 42.2914 ], [ -71.1280, 42.2915 ], [ -71.1282, 42.2916 ], [ -71.1282, 42.2917 ], [ -71.1284, 42.2918 ], [ -71.1285, 42.2919 ], [ -71.1286, 42.2920 ], [ -71.1286, 42.2920 ], [ -71.1287, 42.2921 ], [ -71.1289, 42.2922 ], [ -71.1290, 42.2923 ], [ -71.1291, 42.2924 ], [ -71.1292, 42.2925 ], [ -71.1293, 42.2926 ], [ -71.1294, 42.2927 ], [ -71.1295, 42.2927 ], [ -71.1296, 42.2928 ], [ -71.1294, 42.2928 ], [ -71.1294, 42.2928 ], [ -71.1293, 42.2929 ], [ -71.1293, 42.2929 ], [ -71.1293, 42.2929 ], [ -71.1297, 42.2932 ], [ -71.1299, 42.2933 ], [ -71.1303, 42.2935 ], [ -71.1303, 42.2935 ], [ -71.1305, 42.2936 ], [ -71.1306, 42.2939 ], [ -71.1305, 42.2942 ], [ -71.1305, 42.2945 ], [ -71.1305, 42.2946 ], [ -71.1304, 42.2947 ], [ -71.1304, 42.2947 ], [ -71.1304, 42.2947 ], [ -71.1304, 42.2947 ], [ -71.1304, 42.2947 ], [ -71.1304, 42.2948 ], [ -71.1300, 42.2952 ], [ -71.1296, 42.2956 ], [ -71.1295, 42.2958 ], [ -71.1295, 42.2958 ], [ -71.1294, 42.2959 ], [ -71.1293, 42.2960 ], [ -71.1293, 42.2960 ], [ -71.1293, 42.2961 ], [ -71.1293, 42.2961 ], [ -71.1293, 42.2961 ], [ -71.1293, 42.2962 ], [ -71.1293, 42.2962 ], [ -71.1293, 42.2963 ], [ -71.1293, 42.2964 ], [ -71.1293, 42.2964 ], [ -71.1293, 42.2966 ], [ -71.1293, 42.2966 ], [ -71.1293, 42.2967 ], [ -71.1295, 42.2970 ], [ -71.1296, 42.2972 ], [ -71.1296, 42.2972 ], [ -71.1297, 42.2974 ], [ -71.1298, 42.2975 ], [ -71.1298, 42.2975 ], [ -71.1298, 42.2976 ], [ -71.1298, 42.2977 ], [ -71.1298, 42.2980 ], [ -71.1299, 42.2983 ], [ -71.1299, 42.2983 ], [ -71.1299, 42.2983 ], [ -71.1297, 42.2985 ], [ -71.1296, 42.2986 ], [ -71.1294, 42.2987 ], [ -71.1294, 42.2987 ], [ -71.1294, 42.2987 ], [ -71.1294, 42.2988 ], [ -71.1294, 42.2988 ], [ -71.1293, 42.2989 ], [ -71.1292, 42.2990 ], [ -71.1291, 42.2990 ], [ -71.1290, 42.2991 ], [ -71.1290, 42.2992 ], [ -71.1287, 42.2994 ], [ -71.1285, 42.2997 ], [ -71.1284, 42.2997 ], [ -71.1282, 42.2999 ], [ -71.1281, 42.3000 ], [ -71.1281, 42.3000 ], [ -71.1281, 42.3000 ], [ -71.1281, 42.3000 ], [ -71.1281, 42.3000 ], [ -71.1281, 42.3000 ], [ -71.1281, 42.3000 ], [ -71.1281, 42.3000 ], [ -71.1281, 42.3000 ], [ -71.1281, 42.3000 ], [ -71.1281, 42.3000 ], [ -71.1281, 42.3000 ], [ -71.1281, 42.3000 ], [ -71.1281, 42.3000 ], [ -71.1281, 42.3000 ], [ -71.1281, 42.3000 ], [ -71.1281, 42.3000 ], [ -71.1281, 42.3000 ], [ -71.1280, 42.3001 ], [ -71.1281, 42.3001 ], [ -71.1281, 42.3001 ], [ -71.1281, 42.3001 ], [ -71.1281, 42.3001 ], [ -71.1281, 42.3001 ], [ -71.1281, 42.3001 ], [ -71.1281, 42.3001 ], [ -71.1281, 42.3001 ], [ -71.1281, 42.3001 ], [ -71.1281, 42.3001 ], [ -71.1282, 42.3002 ], [ -71.1282, 42.3002 ], [ -71.1282, 42.3002 ], [ -71.1283, 42.3002 ], [ -71.1284, 42.3003 ], [ -71.1286, 42.3003 ], [ -71.1286, 42.3003 ], [ -71.1286, 42.3003 ], [ -71.1286, 42.3003 ], [ -71.1286, 42.3003 ], [ -71.1286, 42.3003 ], [ -71.1286, 42.3003 ], [ -71.1286, 42.3003 ], [ -71.1286, 42.3003 ], [ -71.1286, 42.3003 ], [ -71.1287, 42.3004 ], [ -71.1288, 42.3004 ], [ -71.1288, 42.3004 ], [ -71.1288, 42.3004 ], [ -71.1288, 42.3004 ], [ -71.1288, 42.3004 ], [ -71.1288, 42.3004 ], [ -71.1288, 42.3004 ], [ -71.1288, 42.3004 ], [ -71.1288, 42.3004 ], [ -71.1288, 42.3004 ], [ -71.1288, 42.3004 ], [ -71.1288, 42.3004 ], [ -71.1288, 42.3004 ], [ -71.1292, 42.3005 ], [ -71.1292, 42.3005 ], [ -71.1297, 42.3007 ], [ -71.1307, 42.3011 ], [ -71.1309, 42.3012 ], [ -71.1309, 42.3012 ], [ -71.1309, 42.3012 ], [ -71.1309, 42.3012 ], [ -71.1309, 42.3012 ], [ -71.1309, 42.3012 ], [ -71.1310, 42.3012 ], [ -71.1310, 42.3012 ], [ -71.1310, 42.3012 ], [ -71.1310, 42.3012 ], [ -71.1310, 42.3012 ], [ -71.1310, 42.3012 ], [ -71.1310, 42.3012 ], [ -71.1311, 42.3012 ], [ -71.1311, 42.3012 ], [ -71.1311, 42.3012 ], [ -71.1311, 42.3012 ], [ -71.1311, 42.3012 ], [ -71.1311, 42.3012 ], [ -71.1311, 42.3012 ], [ -71.1311, 42.3012 ], [ -71.1315, 42.3012 ], [ -71.1317, 42.3012 ], [ -71.1318, 42.3012 ], [ -71.1318, 42.3012 ], [ -71.1319, 42.3012 ], [ -71.1319, 42.3012 ], [ -71.1319, 42.3012 ], [ -71.1322, 42.3013 ], [ -71.1322, 42.3013 ], [ -71.1326, 42.3013 ], [ -71.1326, 42.3013 ], [ -71.1332, 42.3014 ], [ -71.1333, 42.3015 ], [ -71.1336, 42.3015 ], [ -71.1337, 42.3015 ], [ -71.1337, 42.3015 ], [ -71.1338, 42.3015 ], [ -71.1342, 42.3016 ], [ -71.1343, 42.3016 ], [ -71.1343, 42.3016 ], [ -71.1343, 42.3016 ], [ -71.1344, 42.3016 ], [ -71.1344, 42.3016 ], [ -71.1344, 42.3016 ], [ -71.1345, 42.3016 ], [ -71.1345, 42.3016 ], [ -71.1345, 42.3016 ], [ -71.1345, 42.3016 ], [ -71.1345, 42.3016 ], [ -71.1346, 42.3016 ], [ -71.1346, 42.3016 ], [ -71.1346, 42.3016 ], [ -71.1347, 42.3016 ], [ -71.1347, 42.3016 ], [ -71.1347, 42.3016 ], [ -71.1348, 42.3016 ], [ -71.1348, 42.3016 ], [ -71.1348, 42.3016 ], [ -71.1349, 42.3016 ], [ -71.1349, 42.3016 ], [ -71.1359, 42.3013 ], [ -71.1359, 42.3013 ], [ -71.1362, 42.3012 ], [ -71.1365, 42.3012 ], [ -71.1365, 42.3012 ], [ -71.1365, 42.3012 ], [ -71.1365, 42.3012 ], [ -71.1366, 42.3012 ], [ -71.1366, 42.3011 ], [ -71.1366, 42.3011 ], [ -71.1366, 42.3011 ], [ -71.1367, 42.3011 ], [ -71.1367, 42.3011 ], [ -71.1367, 42.3011 ], [ -71.1367, 42.3011 ], [ -71.1367, 42.3011 ], [ -71.1368, 42.3011 ], [ -71.1368, 42.3011 ], [ -71.1368, 42.3011 ], [ -71.1368, 42.3011 ], [ -71.1369, 42.3011 ], [ -71.1369, 42.3011 ], [ -71.1369, 42.3011 ], [ -71.1370, 42.3011 ], [ -71.1370, 42.3011 ], [ -71.1370, 42.3011 ], [ -71.1371, 42.3011 ], [ -71.1371, 42.3011 ], [ -71.1372, 42.3011 ], [ -71.1372, 42.3011 ], [ -71.1372, 42.3011 ], [ -71.1372, 42.3011 ], [ -71.1373, 42.3011 ], [ -71.1373, 42.3011 ], [ -71.1373, 42.3011 ], [ -71.1374, 42.3012 ], [ -71.1375, 42.3012 ], [ -71.1392, 42.3017 ], [ -71.1393, 42.3017 ], [ -71.1393, 42.3017 ], [ -71.1394, 42.3017 ], [ -71.1394, 42.3017 ], [ -71.1396, 42.3018 ], [ -71.1396, 42.3018 ], [ -71.1400, 42.3020 ], [ -71.1401, 42.3020 ], [ -71.1401, 42.3020 ], [ -71.1401, 42.3020 ], [ -71.1400, 42.3021 ], [ -71.1400, 42.3021 ], [ -71.1365, 42.3062 ], [ -71.1344, 42.3091 ], [ -71.1327, 42.3117 ], [ -71.1318, 42.3131 ], [ -71.1306, 42.3145 ], [ -71.1287, 42.3168 ], [ -71.1271, 42.3186 ], [ -71.1242, 42.3218 ], [ -71.1237, 42.3227 ], [ -71.1233, 42.3225 ], [ -71.1215, 42.3238 ], [ -71.1200, 42.3228 ], [ -71.1194, 42.3227 ], [ -71.1188, 42.3228 ], [ -71.1185, 42.3231 ], [ -71.1184, 42.3232 ], [ -71.1184, 42.3233 ], [ -71.1183, 42.3234 ], [ -71.1182, 42.3234 ], [ -71.1181, 42.3235 ], [ -71.1180, 42.3235 ], [ -71.1177, 42.3235 ], [ -71.1174, 42.3236 ], [ -71.1171, 42.3236 ], [ -71.1167, 42.3237 ], [ -71.1166, 42.3238 ], [ -71.1165, 42.3239 ], [ -71.1164, 42.3241 ], [ -71.1163, 42.3243 ], [ -71.1164, 42.3245 ], [ -71.1163, 42.3245 ], [ -71.1163, 42.3246 ], [ -71.1163, 42.3247 ], [ -71.1162, 42.3249 ], [ -71.1162, 42.3251 ], [ -71.1162, 42.3252 ], [ -71.1161, 42.3252 ], [ -71.1159, 42.3257 ], [ -71.1159, 42.3259 ], [ -71.1160, 42.3261 ], [ -71.1160, 42.3262 ], [ -71.1159, 42.3263 ], [ -71.1158, 42.3265 ], [ -71.1157, 42.3266 ], [ -71.1156, 42.3267 ], [ -71.1155, 42.3267 ], [ -71.1154, 42.3268 ], [ -71.1153, 42.3268 ], [ -71.1152, 42.3269 ], [ -71.1150, 42.3273 ], [ -71.1140, 42.3294 ], [ -71.1139, 42.3294 ], [ -71.1139, 42.3294 ], [ -71.1124, 42.3298 ], [ -71.1124, 42.3298 ], [ -71.1122, 42.3298 ], [ -71.1122, 42.3298 ], [ -71.1121, 42.3298 ], [ -71.1120, 42.3298 ], [ -71.1120, 42.3298 ], [ -71.1117, 42.3299 ], [ -71.1117, 42.3299 ], [ -71.1117, 42.3299 ], [ -71.1115, 42.3300 ], [ -71.1113, 42.3300 ], [ -71.1112, 42.3300 ], [ -71.1111, 42.3298 ], [ -71.1111, 42.3296 ], [ -71.1110, 42.3295 ], [ -71.1109, 42.3293 ], [ -71.1108, 42.3291 ], [ -71.1107, 42.3290 ], [ -71.1106, 42.3288 ], [ -71.1106, 42.3288 ], [ -71.1105, 42.3288 ], [ -71.1100, 42.3284 ], [ -71.1099, 42.3284 ], [ -71.1098, 42.3283 ], [ -71.1094, 42.3280 ], [ -71.1092, 42.3279 ], [ -71.1090, 42.3277 ], [ -71.1089, 42.3277 ], [ -71.1086, 42.3274 ], [ -71.1086, 42.3274 ], [ -71.1085, 42.3274 ], [ -71.1084, 42.3273 ], [ -71.1083, 42.3273 ], [ -71.1083, 42.3273 ], [ -71.1083, 42.3273 ], [ -71.1083, 42.3273 ], [ -71.1082, 42.3272 ], [ -71.1082, 42.3272 ], [ -71.1073, 42.3269 ], [ -71.1071, 42.3268 ], [ -71.1066, 42.3265 ], [ -71.1063, 42.3263 ], [ -71.1055, 42.3261 ], [ -71.1055, 42.3261 ], [ -71.1055, 42.3261 ], [ -71.1054, 42.3261 ], [ -71.1054, 42.3261 ], [ -71.1054, 42.3261 ], [ -71.1054, 42.3261 ], [ -71.1054, 42.3261 ], [ -71.1054, 42.3261 ], [ -71.1053, 42.3261 ], [ -71.1053, 42.3261 ], [ -71.1053, 42.3261 ], [ -71.1053, 42.3261 ], [ -71.1053, 42.3261 ], [ -71.1053, 42.3261 ], [ -71.1052, 42.3261 ], [ -71.1052, 42.3261 ], [ -71.1051, 42.3260 ], [ -71.1051, 42.3260 ], [ -71.1050, 42.3260 ], [ -71.1050, 42.3260 ], [ -71.1050, 42.3260 ], [ -71.1049, 42.3260 ] ] ] } }, + { "type": "Feature", "properties": { "Name": "Mission Hill", "density": 18.2400 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -71.0904, 42.3357 ], [ -71.0927, 42.3336 ], [ -71.0929, 42.3334 ], [ -71.0943, 42.3323 ], [ -71.0952, 42.3315 ], [ -71.0958, 42.3308 ], [ -71.0963, 42.3301 ], [ -71.0968, 42.3294 ], [ -71.0971, 42.3287 ], [ -71.0975, 42.3280 ], [ -71.0979, 42.3272 ], [ -71.0983, 42.3263 ], [ -71.0983, 42.3263 ], [ -71.0984, 42.3263 ], [ -71.0985, 42.3263 ], [ -71.0989, 42.3263 ], [ -71.0989, 42.3263 ], [ -71.0990, 42.3263 ], [ -71.0991, 42.3263 ], [ -71.0992, 42.3263 ], [ -71.0994, 42.3263 ], [ -71.0994, 42.3263 ], [ -71.0995, 42.3263 ], [ -71.0995, 42.3263 ], [ -71.0996, 42.3263 ], [ -71.0997, 42.3263 ], [ -71.0998, 42.3263 ], [ -71.0999, 42.3263 ], [ -71.0999, 42.3263 ], [ -71.1000, 42.3264 ], [ -71.1000, 42.3264 ], [ -71.1001, 42.3264 ], [ -71.1002, 42.3264 ], [ -71.1007, 42.3264 ], [ -71.1012, 42.3264 ], [ -71.1013, 42.3264 ], [ -71.1014, 42.3264 ], [ -71.1014, 42.3264 ], [ -71.1014, 42.3264 ], [ -71.1015, 42.3264 ], [ -71.1016, 42.3264 ], [ -71.1017, 42.3263 ], [ -71.1018, 42.3263 ], [ -71.1020, 42.3263 ], [ -71.1022, 42.3263 ], [ -71.1022, 42.3263 ], [ -71.1024, 42.3263 ], [ -71.1025, 42.3263 ], [ -71.1026, 42.3263 ], [ -71.1028, 42.3262 ], [ -71.1028, 42.3262 ], [ -71.1030, 42.3262 ], [ -71.1032, 42.3262 ], [ -71.1032, 42.3262 ], [ -71.1033, 42.3262 ], [ -71.1034, 42.3262 ], [ -71.1035, 42.3261 ], [ -71.1037, 42.3261 ], [ -71.1039, 42.3261 ], [ -71.1040, 42.3261 ], [ -71.1040, 42.3261 ], [ -71.1040, 42.3261 ], [ -71.1041, 42.3261 ], [ -71.1041, 42.3261 ], [ -71.1041, 42.3261 ], [ -71.1041, 42.3261 ], [ -71.1041, 42.3261 ], [ -71.1042, 42.3261 ], [ -71.1042, 42.3261 ], [ -71.1043, 42.3261 ], [ -71.1043, 42.3260 ], [ -71.1043, 42.3260 ], [ -71.1044, 42.3260 ], [ -71.1044, 42.3260 ], [ -71.1044, 42.3260 ], [ -71.1045, 42.3260 ], [ -71.1045, 42.3260 ], [ -71.1045, 42.3260 ], [ -71.1046, 42.3260 ], [ -71.1046, 42.3260 ], [ -71.1047, 42.3260 ], [ -71.1047, 42.3260 ], [ -71.1048, 42.3260 ], [ -71.1048, 42.3260 ], [ -71.1049, 42.3260 ], [ -71.1050, 42.3260 ], [ -71.1050, 42.3260 ], [ -71.1050, 42.3260 ], [ -71.1051, 42.3260 ], [ -71.1051, 42.3260 ], [ -71.1052, 42.3261 ], [ -71.1052, 42.3261 ], [ -71.1053, 42.3261 ], [ -71.1053, 42.3261 ], [ -71.1053, 42.3261 ], [ -71.1053, 42.3261 ], [ -71.1053, 42.3261 ], [ -71.1053, 42.3261 ], [ -71.1054, 42.3261 ], [ -71.1054, 42.3261 ], [ -71.1054, 42.3261 ], [ -71.1054, 42.3261 ], [ -71.1054, 42.3261 ], [ -71.1054, 42.3261 ], [ -71.1055, 42.3261 ], [ -71.1055, 42.3261 ], [ -71.1055, 42.3261 ], [ -71.1063, 42.3263 ], [ -71.1066, 42.3265 ], [ -71.1071, 42.3268 ], [ -71.1073, 42.3269 ], [ -71.1082, 42.3272 ], [ -71.1082, 42.3272 ], [ -71.1083, 42.3273 ], [ -71.1083, 42.3273 ], [ -71.1083, 42.3273 ], [ -71.1083, 42.3273 ], [ -71.1084, 42.3273 ], [ -71.1085, 42.3274 ], [ -71.1086, 42.3274 ], [ -71.1086, 42.3274 ], [ -71.1089, 42.3277 ], [ -71.1090, 42.3277 ], [ -71.1092, 42.3279 ], [ -71.1094, 42.3280 ], [ -71.1098, 42.3283 ], [ -71.1099, 42.3284 ], [ -71.1100, 42.3284 ], [ -71.1105, 42.3288 ], [ -71.1106, 42.3288 ], [ -71.1106, 42.3288 ], [ -71.1107, 42.3290 ], [ -71.1108, 42.3291 ], [ -71.1109, 42.3293 ], [ -71.1110, 42.3295 ], [ -71.1111, 42.3296 ], [ -71.1111, 42.3298 ], [ -71.1112, 42.3300 ], [ -71.1113, 42.3300 ], [ -71.1115, 42.3300 ], [ -71.1117, 42.3299 ], [ -71.1117, 42.3299 ], [ -71.1117, 42.3299 ], [ -71.1120, 42.3298 ], [ -71.1120, 42.3298 ], [ -71.1121, 42.3298 ], [ -71.1122, 42.3298 ], [ -71.1122, 42.3298 ], [ -71.1124, 42.3298 ], [ -71.1124, 42.3298 ], [ -71.1139, 42.3294 ], [ -71.1140, 42.3294 ], [ -71.1135, 42.3305 ], [ -71.1132, 42.3320 ], [ -71.1132, 42.3321 ], [ -71.1132, 42.3322 ], [ -71.1132, 42.3322 ], [ -71.1132, 42.3322 ], [ -71.1132, 42.3323 ], [ -71.1132, 42.3323 ], [ -71.1132, 42.3324 ], [ -71.1131, 42.3325 ], [ -71.1130, 42.3326 ], [ -71.1129, 42.3326 ], [ -71.1128, 42.3328 ], [ -71.1126, 42.3330 ], [ -71.1123, 42.3335 ], [ -71.1121, 42.3338 ], [ -71.1120, 42.3339 ], [ -71.1119, 42.3340 ], [ -71.1117, 42.3341 ], [ -71.1115, 42.3343 ], [ -71.1113, 42.3345 ], [ -71.1111, 42.3347 ], [ -71.1109, 42.3348 ], [ -71.1105, 42.3352 ], [ -71.1105, 42.3353 ], [ -71.1105, 42.3353 ], [ -71.1105, 42.3353 ], [ -71.1099, 42.3351 ], [ -71.1095, 42.3349 ], [ -71.1089, 42.3345 ], [ -71.1087, 42.3347 ], [ -71.1086, 42.3348 ], [ -71.1084, 42.3349 ], [ -71.1081, 42.3352 ], [ -71.1074, 42.3358 ], [ -71.1071, 42.3356 ], [ -71.1070, 42.3355 ], [ -71.1070, 42.3355 ], [ -71.1067, 42.3353 ], [ -71.1061, 42.3349 ], [ -71.1057, 42.3347 ], [ -71.1056, 42.3346 ], [ -71.1055, 42.3345 ], [ -71.1055, 42.3345 ], [ -71.1054, 42.3345 ], [ -71.1053, 42.3344 ], [ -71.1051, 42.3343 ], [ -71.1049, 42.3342 ], [ -71.1048, 42.3342 ], [ -71.1048, 42.3342 ], [ -71.1048, 42.3342 ], [ -71.1047, 42.3342 ], [ -71.1047, 42.3342 ], [ -71.1046, 42.3342 ], [ -71.1040, 42.3344 ], [ -71.1040, 42.3344 ], [ -71.1029, 42.3348 ], [ -71.1026, 42.3349 ], [ -71.1025, 42.3350 ], [ -71.1024, 42.3350 ], [ -71.1021, 42.3351 ], [ -71.1014, 42.3354 ], [ -71.1014, 42.3354 ], [ -71.1007, 42.3356 ], [ -71.1002, 42.3358 ], [ -71.0996, 42.3360 ], [ -71.0996, 42.3361 ], [ -71.0989, 42.3363 ], [ -71.0981, 42.3367 ], [ -71.0955, 42.3376 ], [ -71.0955, 42.3376 ], [ -71.0955, 42.3376 ], [ -71.0936, 42.3369 ], [ -71.0936, 42.3369 ], [ -71.0933, 42.3368 ], [ -71.0933, 42.3368 ], [ -71.0932, 42.3367 ], [ -71.0931, 42.3367 ], [ -71.0931, 42.3367 ], [ -71.0931, 42.3367 ], [ -71.0930, 42.3367 ], [ -71.0929, 42.3366 ], [ -71.0929, 42.3366 ], [ -71.0929, 42.3366 ], [ -71.0928, 42.3366 ], [ -71.0926, 42.3365 ], [ -71.0926, 42.3365 ], [ -71.0926, 42.3365 ], [ -71.0925, 42.3365 ], [ -71.0923, 42.3364 ], [ -71.0923, 42.3364 ], [ -71.0920, 42.3363 ], [ -71.0918, 42.3362 ], [ -71.0913, 42.3360 ], [ -71.0913, 42.3360 ], [ -71.0913, 42.3360 ], [ -71.0912, 42.3360 ], [ -71.0911, 42.3359 ], [ -71.0911, 42.3359 ], [ -71.0911, 42.3359 ], [ -71.0910, 42.3359 ], [ -71.0906, 42.3357 ], [ -71.0906, 42.3357 ], [ -71.0906, 42.3357 ], [ -71.0906, 42.3357 ], [ -71.0905, 42.3357 ], [ -71.0905, 42.3357 ], [ -71.0905, 42.3357 ], [ -71.0904, 42.3357 ] ] ] } }, + { "type": "Feature", "properties": { "Name": "Longwood Medical Area", "density": 0.0000 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -71.0981, 42.3367 ], [ -71.0989, 42.3363 ], [ -71.0996, 42.3361 ], [ -71.0996, 42.3360 ], [ -71.1002, 42.3358 ], [ -71.1007, 42.3356 ], [ -71.1014, 42.3354 ], [ -71.1014, 42.3354 ], [ -71.1021, 42.3351 ], [ -71.1024, 42.3350 ], [ -71.1025, 42.3350 ], [ -71.1026, 42.3349 ], [ -71.1029, 42.3348 ], [ -71.1040, 42.3344 ], [ -71.1040, 42.3344 ], [ -71.1046, 42.3342 ], [ -71.1047, 42.3342 ], [ -71.1047, 42.3342 ], [ -71.1048, 42.3342 ], [ -71.1048, 42.3342 ], [ -71.1048, 42.3342 ], [ -71.1049, 42.3342 ], [ -71.1051, 42.3343 ], [ -71.1053, 42.3344 ], [ -71.1054, 42.3345 ], [ -71.1055, 42.3345 ], [ -71.1055, 42.3345 ], [ -71.1056, 42.3346 ], [ -71.1057, 42.3347 ], [ -71.1061, 42.3349 ], [ -71.1067, 42.3353 ], [ -71.1070, 42.3355 ], [ -71.1070, 42.3355 ], [ -71.1071, 42.3356 ], [ -71.1074, 42.3358 ], [ -71.1081, 42.3352 ], [ -71.1084, 42.3349 ], [ -71.1086, 42.3348 ], [ -71.1087, 42.3347 ], [ -71.1089, 42.3345 ], [ -71.1095, 42.3349 ], [ -71.1099, 42.3351 ], [ -71.1105, 42.3353 ], [ -71.1105, 42.3353 ], [ -71.1105, 42.3354 ], [ -71.1105, 42.3354 ], [ -71.1107, 42.3355 ], [ -71.1109, 42.3356 ], [ -71.1109, 42.3357 ], [ -71.1110, 42.3358 ], [ -71.1109, 42.3359 ], [ -71.1109, 42.3360 ], [ -71.1107, 42.3360 ], [ -71.1107, 42.3361 ], [ -71.1107, 42.3362 ], [ -71.1107, 42.3362 ], [ -71.1107, 42.3363 ], [ -71.1108, 42.3364 ], [ -71.1109, 42.3365 ], [ -71.1110, 42.3366 ], [ -71.1111, 42.3366 ], [ -71.1111, 42.3367 ], [ -71.1111, 42.3367 ], [ -71.1112, 42.3369 ], [ -71.1112, 42.3369 ], [ -71.1112, 42.3370 ], [ -71.1114, 42.3371 ], [ -71.1115, 42.3372 ], [ -71.1115, 42.3373 ], [ -71.1115, 42.3373 ], [ -71.1115, 42.3374 ], [ -71.1114, 42.3375 ], [ -71.1114, 42.3376 ], [ -71.1113, 42.3379 ], [ -71.1111, 42.3383 ], [ -71.1110, 42.3385 ], [ -71.1109, 42.3387 ], [ -71.1108, 42.3388 ], [ -71.1108, 42.3395 ], [ -71.1107, 42.3397 ], [ -71.1106, 42.3398 ], [ -71.1106, 42.3399 ], [ -71.1107, 42.3400 ], [ -71.1107, 42.3400 ], [ -71.1107, 42.3401 ], [ -71.1106, 42.3402 ], [ -71.1105, 42.3404 ], [ -71.1104, 42.3405 ], [ -71.1103, 42.3407 ], [ -71.1101, 42.3409 ], [ -71.1100, 42.3410 ], [ -71.1099, 42.3411 ], [ -71.1098, 42.3411 ], [ -71.1097, 42.3412 ], [ -71.1096, 42.3414 ], [ -71.1096, 42.3414 ], [ -71.1095, 42.3414 ], [ -71.1093, 42.3415 ], [ -71.1090, 42.3416 ], [ -71.1087, 42.3417 ], [ -71.1084, 42.3418 ], [ -71.1083, 42.3419 ], [ -71.1082, 42.3420 ], [ -71.1082, 42.3420 ], [ -71.1082, 42.3421 ], [ -71.1082, 42.3421 ], [ -71.1082, 42.3422 ], [ -71.1081, 42.3423 ], [ -71.1081, 42.3424 ], [ -71.1080, 42.3424 ], [ -71.1078, 42.3425 ], [ -71.1074, 42.3426 ], [ -71.1071, 42.3428 ], [ -71.1069, 42.3429 ], [ -71.1066, 42.3430 ], [ -71.1065, 42.3430 ], [ -71.1065, 42.3431 ], [ -71.1062, 42.3432 ], [ -71.1062, 42.3433 ], [ -71.1062, 42.3433 ], [ -71.1062, 42.3434 ], [ -71.1061, 42.3434 ], [ -71.1060, 42.3435 ], [ -71.1058, 42.3436 ], [ -71.1055, 42.3438 ], [ -71.1055, 42.3438 ], [ -71.1040, 42.3433 ], [ -71.1039, 42.3432 ], [ -71.1037, 42.3431 ], [ -71.1036, 42.3430 ], [ -71.1035, 42.3429 ], [ -71.1032, 42.3427 ], [ -71.1031, 42.3426 ], [ -71.1025, 42.3420 ], [ -71.1023, 42.3418 ], [ -71.1019, 42.3414 ], [ -71.1018, 42.3412 ], [ -71.1014, 42.3409 ], [ -71.1009, 42.3405 ], [ -71.1008, 42.3403 ], [ -71.1006, 42.3402 ], [ -71.1005, 42.3402 ], [ -71.1001, 42.3398 ], [ -71.0997, 42.3395 ], [ -71.0995, 42.3394 ], [ -71.0993, 42.3393 ], [ -71.0991, 42.3391 ], [ -71.0989, 42.3390 ], [ -71.0987, 42.3389 ], [ -71.0984, 42.3388 ], [ -71.0982, 42.3388 ], [ -71.0981, 42.3387 ], [ -71.0973, 42.3384 ], [ -71.0973, 42.3384 ], [ -71.0973, 42.3384 ], [ -71.0973, 42.3384 ], [ -71.0972, 42.3384 ], [ -71.0972, 42.3384 ], [ -71.0972, 42.3384 ], [ -71.0972, 42.3383 ], [ -71.0972, 42.3383 ], [ -71.0972, 42.3383 ], [ -71.0972, 42.3383 ], [ -71.0972, 42.3383 ], [ -71.0972, 42.3383 ], [ -71.0973, 42.3382 ], [ -71.0973, 42.3381 ], [ -71.0974, 42.3380 ], [ -71.0975, 42.3379 ], [ -71.0976, 42.3378 ], [ -71.0976, 42.3378 ], [ -71.0978, 42.3376 ], [ -71.0980, 42.3374 ], [ -71.0982, 42.3372 ], [ -71.0982, 42.3372 ], [ -71.0982, 42.3372 ], [ -71.0982, 42.3372 ], [ -71.0982, 42.3372 ], [ -71.0983, 42.3371 ], [ -71.0981, 42.3367 ] ] ] } }, + { "type": "Feature", "properties": { "Name": "Bay Village", "density": 0.0000 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -71.0666, 42.3487 ], [ -71.0673, 42.3483 ], [ -71.0675, 42.3482 ], [ -71.0675, 42.3482 ], [ -71.0675, 42.3482 ], [ -71.0680, 42.3479 ], [ -71.0680, 42.3479 ], [ -71.0680, 42.3479 ], [ -71.0680, 42.3479 ], [ -71.0680, 42.3479 ], [ -71.0680, 42.3479 ], [ -71.0681, 42.3479 ], [ -71.0681, 42.3478 ], [ -71.0683, 42.3477 ], [ -71.0691, 42.3478 ], [ -71.0712, 42.3478 ], [ -71.0728, 42.3478 ], [ -71.0725, 42.3480 ], [ -71.0723, 42.3481 ], [ -71.0723, 42.3482 ], [ -71.0722, 42.3483 ], [ -71.0720, 42.3484 ], [ -71.0720, 42.3484 ], [ -71.0719, 42.3484 ], [ -71.0719, 42.3485 ], [ -71.0717, 42.3486 ], [ -71.0717, 42.3486 ], [ -71.0716, 42.3487 ], [ -71.0716, 42.3487 ], [ -71.0715, 42.3488 ], [ -71.0714, 42.3489 ], [ -71.0714, 42.3489 ], [ -71.0713, 42.3489 ], [ -71.0713, 42.3489 ], [ -71.0713, 42.3489 ], [ -71.0713, 42.3490 ], [ -71.0712, 42.3490 ], [ -71.0712, 42.3490 ], [ -71.0712, 42.3491 ], [ -71.0712, 42.3491 ], [ -71.0710, 42.3492 ], [ -71.0710, 42.3492 ], [ -71.0710, 42.3492 ], [ -71.0710, 42.3492 ], [ -71.0710, 42.3492 ], [ -71.0709, 42.3492 ], [ -71.0709, 42.3493 ], [ -71.0707, 42.3494 ], [ -71.0707, 42.3495 ], [ -71.0706, 42.3495 ], [ -71.0704, 42.3496 ], [ -71.0702, 42.3498 ], [ -71.0701, 42.3499 ], [ -71.0700, 42.3500 ], [ -71.0698, 42.3501 ], [ -71.0698, 42.3501 ], [ -71.0698, 42.3501 ], [ -71.0698, 42.3501 ], [ -71.0698, 42.3501 ], [ -71.0697, 42.3501 ], [ -71.0693, 42.3502 ], [ -71.0693, 42.3502 ], [ -71.0693, 42.3502 ], [ -71.0689, 42.3504 ], [ -71.0686, 42.3504 ], [ -71.0686, 42.3504 ], [ -71.0681, 42.3506 ], [ -71.0681, 42.3506 ], [ -71.0681, 42.3506 ], [ -71.0679, 42.3506 ], [ -71.0679, 42.3506 ], [ -71.0677, 42.3507 ], [ -71.0676, 42.3507 ], [ -71.0675, 42.3507 ], [ -71.0670, 42.3508 ], [ -71.0668, 42.3509 ], [ -71.0668, 42.3509 ], [ -71.0668, 42.3509 ], [ -71.0667, 42.3502 ], [ -71.0666, 42.3502 ], [ -71.0666, 42.3502 ], [ -71.0666, 42.3502 ], [ -71.0665, 42.3497 ], [ -71.0665, 42.3497 ], [ -71.0665, 42.3496 ], [ -71.0665, 42.3496 ], [ -71.0665, 42.3494 ], [ -71.0665, 42.3494 ], [ -71.0665, 42.3494 ], [ -71.0665, 42.3494 ], [ -71.0665, 42.3494 ], [ -71.0664, 42.3493 ], [ -71.0664, 42.3493 ], [ -71.0664, 42.3493 ], [ -71.0664, 42.3492 ], [ -71.0664, 42.3491 ], [ -71.0664, 42.3491 ], [ -71.0664, 42.3490 ], [ -71.0664, 42.3490 ], [ -71.0664, 42.3490 ], [ -71.0665, 42.3488 ], [ -71.0665, 42.3488 ], [ -71.0665, 42.3488 ], [ -71.0665, 42.3488 ], [ -71.0665, 42.3488 ], [ -71.0665, 42.3488 ], [ -71.0666, 42.3487 ], [ -71.0666, 42.3487 ], [ -71.0666, 42.3487 ], [ -71.0666, 42.3487 ] ] ] } }, + { "type": "Feature", "properties": { "Name": "Leather District", "density": 40.9200 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -71.0583, 42.3498 ], [ -71.0587, 42.3499 ], [ -71.0587, 42.3499 ], [ -71.0587, 42.3499 ], [ -71.0589, 42.3499 ], [ -71.0596, 42.3501 ], [ -71.0596, 42.3501 ], [ -71.0596, 42.3501 ], [ -71.0596, 42.3501 ], [ -71.0596, 42.3501 ], [ -71.0597, 42.3501 ], [ -71.0596, 42.3502 ], [ -71.0596, 42.3502 ], [ -71.0594, 42.3507 ], [ -71.0593, 42.3510 ], [ -71.0593, 42.3511 ], [ -71.0593, 42.3511 ], [ -71.0592, 42.3513 ], [ -71.0591, 42.3515 ], [ -71.0591, 42.3516 ], [ -71.0590, 42.3516 ], [ -71.0589, 42.3518 ], [ -71.0588, 42.3518 ], [ -71.0587, 42.3519 ], [ -71.0587, 42.3519 ], [ -71.0586, 42.3520 ], [ -71.0585, 42.3520 ], [ -71.0584, 42.3521 ], [ -71.0583, 42.3522 ], [ -71.0581, 42.3522 ], [ -71.0579, 42.3523 ], [ -71.0579, 42.3523 ], [ -71.0576, 42.3522 ], [ -71.0572, 42.3521 ], [ -71.0571, 42.3521 ], [ -71.0571, 42.3521 ], [ -71.0558, 42.3518 ], [ -71.0559, 42.3516 ], [ -71.0560, 42.3515 ], [ -71.0560, 42.3514 ], [ -71.0562, 42.3512 ], [ -71.0566, 42.3504 ], [ -71.0570, 42.3495 ], [ -71.0570, 42.3495 ], [ -71.0570, 42.3495 ], [ -71.0570, 42.3495 ], [ -71.0573, 42.3495 ], [ -71.0576, 42.3496 ], [ -71.0583, 42.3498 ], [ -71.0583, 42.3498 ] ] ] } }, + { "type": "Feature", "properties": { "Name": "Chinatown", "density": 150.9400 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -71.0579, 42.3523 ], [ -71.0579, 42.3523 ], [ -71.0581, 42.3522 ], [ -71.0583, 42.3522 ], [ -71.0584, 42.3521 ], [ -71.0585, 42.3520 ], [ -71.0586, 42.3520 ], [ -71.0587, 42.3519 ], [ -71.0587, 42.3519 ], [ -71.0588, 42.3518 ], [ -71.0589, 42.3518 ], [ -71.0590, 42.3516 ], [ -71.0591, 42.3516 ], [ -71.0591, 42.3515 ], [ -71.0592, 42.3513 ], [ -71.0593, 42.3511 ], [ -71.0593, 42.3511 ], [ -71.0593, 42.3510 ], [ -71.0594, 42.3507 ], [ -71.0596, 42.3502 ], [ -71.0596, 42.3502 ], [ -71.0597, 42.3501 ], [ -71.0596, 42.3501 ], [ -71.0596, 42.3501 ], [ -71.0596, 42.3501 ], [ -71.0596, 42.3501 ], [ -71.0596, 42.3501 ], [ -71.0589, 42.3499 ], [ -71.0587, 42.3499 ], [ -71.0587, 42.3499 ], [ -71.0587, 42.3499 ], [ -71.0583, 42.3498 ], [ -71.0584, 42.3497 ], [ -71.0587, 42.3489 ], [ -71.0589, 42.3485 ], [ -71.0588, 42.3485 ], [ -71.0579, 42.3483 ], [ -71.0574, 42.3481 ], [ -71.0574, 42.3481 ], [ -71.0574, 42.3481 ], [ -71.0574, 42.3479 ], [ -71.0575, 42.3479 ], [ -71.0575, 42.3478 ], [ -71.0575, 42.3478 ], [ -71.0576, 42.3477 ], [ -71.0576, 42.3476 ], [ -71.0577, 42.3475 ], [ -71.0578, 42.3474 ], [ -71.0578, 42.3474 ], [ -71.0579, 42.3473 ], [ -71.0579, 42.3472 ], [ -71.0581, 42.3471 ], [ -71.0581, 42.3470 ], [ -71.0582, 42.3470 ], [ -71.0582, 42.3470 ], [ -71.0582, 42.3469 ], [ -71.0583, 42.3469 ], [ -71.0583, 42.3469 ], [ -71.0583, 42.3469 ], [ -71.0583, 42.3469 ], [ -71.0584, 42.3468 ], [ -71.0584, 42.3468 ], [ -71.0584, 42.3468 ], [ -71.0584, 42.3468 ], [ -71.0584, 42.3468 ], [ -71.0585, 42.3468 ], [ -71.0585, 42.3467 ], [ -71.0585, 42.3467 ], [ -71.0587, 42.3466 ], [ -71.0587, 42.3466 ], [ -71.0588, 42.3466 ], [ -71.0588, 42.3466 ], [ -71.0588, 42.3466 ], [ -71.0588, 42.3466 ], [ -71.0588, 42.3465 ], [ -71.0589, 42.3465 ], [ -71.0589, 42.3465 ], [ -71.0589, 42.3465 ], [ -71.0590, 42.3465 ], [ -71.0590, 42.3465 ], [ -71.0590, 42.3465 ], [ -71.0590, 42.3464 ], [ -71.0591, 42.3464 ], [ -71.0592, 42.3464 ], [ -71.0592, 42.3464 ], [ -71.0592, 42.3464 ], [ -71.0593, 42.3463 ], [ -71.0595, 42.3463 ], [ -71.0595, 42.3463 ], [ -71.0596, 42.3462 ], [ -71.0597, 42.3462 ], [ -71.0598, 42.3462 ], [ -71.0599, 42.3462 ], [ -71.0600, 42.3462 ], [ -71.0601, 42.3462 ], [ -71.0601, 42.3462 ], [ -71.0602, 42.3462 ], [ -71.0602, 42.3462 ], [ -71.0603, 42.3462 ], [ -71.0604, 42.3462 ], [ -71.0604, 42.3462 ], [ -71.0604, 42.3462 ], [ -71.0607, 42.3462 ], [ -71.0607, 42.3462 ], [ -71.0610, 42.3462 ], [ -71.0611, 42.3463 ], [ -71.0631, 42.3467 ], [ -71.0644, 42.3470 ], [ -71.0657, 42.3473 ], [ -71.0658, 42.3473 ], [ -71.0662, 42.3474 ], [ -71.0666, 42.3475 ], [ -71.0681, 42.3477 ], [ -71.0683, 42.3477 ], [ -71.0683, 42.3477 ], [ -71.0681, 42.3478 ], [ -71.0681, 42.3479 ], [ -71.0680, 42.3479 ], [ -71.0680, 42.3479 ], [ -71.0680, 42.3479 ], [ -71.0680, 42.3479 ], [ -71.0680, 42.3479 ], [ -71.0680, 42.3479 ], [ -71.0675, 42.3482 ], [ -71.0675, 42.3482 ], [ -71.0675, 42.3482 ], [ -71.0673, 42.3483 ], [ -71.0666, 42.3487 ], [ -71.0666, 42.3487 ], [ -71.0666, 42.3487 ], [ -71.0666, 42.3487 ], [ -71.0666, 42.3487 ], [ -71.0666, 42.3487 ], [ -71.0662, 42.3487 ], [ -71.0660, 42.3486 ], [ -71.0655, 42.3486 ], [ -71.0655, 42.3486 ], [ -71.0650, 42.3485 ], [ -71.0647, 42.3485 ], [ -71.0647, 42.3485 ], [ -71.0641, 42.3484 ], [ -71.0640, 42.3484 ], [ -71.0639, 42.3489 ], [ -71.0637, 42.3494 ], [ -71.0635, 42.3498 ], [ -71.0631, 42.3506 ], [ -71.0629, 42.3509 ], [ -71.0629, 42.3509 ], [ -71.0629, 42.3509 ], [ -71.0629, 42.3511 ], [ -71.0628, 42.3513 ], [ -71.0628, 42.3514 ], [ -71.0627, 42.3515 ], [ -71.0627, 42.3516 ], [ -71.0627, 42.3517 ], [ -71.0627, 42.3517 ], [ -71.0627, 42.3517 ], [ -71.0627, 42.3518 ], [ -71.0627, 42.3519 ], [ -71.0627, 42.3519 ], [ -71.0627, 42.3519 ], [ -71.0626, 42.3520 ], [ -71.0626, 42.3521 ], [ -71.0626, 42.3521 ], [ -71.0626, 42.3523 ], [ -71.0625, 42.3523 ], [ -71.0625, 42.3523 ], [ -71.0625, 42.3523 ], [ -71.0624, 42.3523 ], [ -71.0623, 42.3523 ], [ -71.0619, 42.3524 ], [ -71.0617, 42.3524 ], [ -71.0617, 42.3524 ], [ -71.0617, 42.3524 ], [ -71.0613, 42.3524 ], [ -71.0611, 42.3525 ], [ -71.0611, 42.3525 ], [ -71.0610, 42.3525 ], [ -71.0606, 42.3525 ], [ -71.0605, 42.3525 ], [ -71.0603, 42.3525 ], [ -71.0601, 42.3525 ], [ -71.0601, 42.3525 ], [ -71.0598, 42.3525 ], [ -71.0595, 42.3525 ], [ -71.0593, 42.3525 ], [ -71.0593, 42.3525 ], [ -71.0588, 42.3524 ], [ -71.0587, 42.3524 ], [ -71.0587, 42.3524 ], [ -71.0586, 42.3524 ], [ -71.0585, 42.3524 ], [ -71.0584, 42.3523 ], [ -71.0581, 42.3523 ], [ -71.0579, 42.3523 ] ] ] } }, + { "type": "Feature", "properties": { "Name": "North End", "density": 10.0900 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -71.0519, 42.3688 ], [ -71.0516, 42.3686 ], [ -71.0515, 42.3688 ], [ -71.0513, 42.3690 ], [ -71.0512, 42.3692 ], [ -71.0511, 42.3693 ], [ -71.0509, 42.3692 ], [ -71.0510, 42.3690 ], [ -71.0511, 42.3689 ], [ -71.0513, 42.3686 ], [ -71.0515, 42.3685 ], [ -71.0517, 42.3682 ], [ -71.0517, 42.3682 ], [ -71.0517, 42.3682 ], [ -71.0517, 42.3681 ], [ -71.0517, 42.3681 ], [ -71.0516, 42.3682 ], [ -71.0516, 42.3681 ], [ -71.0512, 42.3680 ], [ -71.0512, 42.3679 ], [ -71.0509, 42.3681 ], [ -71.0508, 42.3683 ], [ -71.0506, 42.3685 ], [ -71.0505, 42.3686 ], [ -71.0502, 42.3688 ], [ -71.0500, 42.3687 ], [ -71.0505, 42.3682 ], [ -71.0505, 42.3682 ], [ -71.0508, 42.3679 ], [ -71.0510, 42.3678 ], [ -71.0512, 42.3676 ], [ -71.0513, 42.3675 ], [ -71.0510, 42.3673 ], [ -71.0510, 42.3673 ], [ -71.0509, 42.3671 ], [ -71.0505, 42.3674 ], [ -71.0498, 42.3678 ], [ -71.0498, 42.3678 ], [ -71.0493, 42.3670 ], [ -71.0493, 42.3670 ], [ -71.0503, 42.3668 ], [ -71.0503, 42.3666 ], [ -71.0492, 42.3668 ], [ -71.0491, 42.3665 ], [ -71.0495, 42.3664 ], [ -71.0495, 42.3663 ], [ -71.0490, 42.3663 ], [ -71.0490, 42.3662 ], [ -71.0490, 42.3662 ], [ -71.0490, 42.3662 ], [ -71.0490, 42.3662 ], [ -71.0490, 42.3661 ], [ -71.0490, 42.3661 ], [ -71.0493, 42.3660 ], [ -71.0500, 42.3660 ], [ -71.0500, 42.3658 ], [ -71.0500, 42.3658 ], [ -71.0499, 42.3657 ], [ -71.0498, 42.3656 ], [ -71.0497, 42.3656 ], [ -71.0497, 42.3654 ], [ -71.0497, 42.3654 ], [ -71.0497, 42.3653 ], [ -71.0496, 42.3653 ], [ -71.0495, 42.3653 ], [ -71.0493, 42.3652 ], [ -71.0492, 42.3652 ], [ -71.0492, 42.3653 ], [ -71.0488, 42.3653 ], [ -71.0487, 42.3652 ], [ -71.0487, 42.3651 ], [ -71.0487, 42.3650 ], [ -71.0487, 42.3648 ], [ -71.0498, 42.3650 ], [ -71.0498, 42.3650 ], [ -71.0498, 42.3650 ], [ -71.0499, 42.3650 ], [ -71.0501, 42.3650 ], [ -71.0501, 42.3651 ], [ -71.0503, 42.3651 ], [ -71.0503, 42.3651 ], [ -71.0503, 42.3651 ], [ -71.0504, 42.3651 ], [ -71.0504, 42.3651 ], [ -71.0507, 42.3651 ], [ -71.0507, 42.3650 ], [ -71.0508, 42.3650 ], [ -71.0508, 42.3650 ], [ -71.0508, 42.3648 ], [ -71.0508, 42.3648 ], [ -71.0508, 42.3648 ], [ -71.0508, 42.3648 ], [ -71.0508, 42.3648 ], [ -71.0507, 42.3648 ], [ -71.0507, 42.3648 ], [ -71.0507, 42.3648 ], [ -71.0507, 42.3648 ], [ -71.0506, 42.3648 ], [ -71.0506, 42.3648 ], [ -71.0506, 42.3648 ], [ -71.0506, 42.3648 ], [ -71.0505, 42.3648 ], [ -71.0505, 42.3648 ], [ -71.0505, 42.3648 ], [ -71.0504, 42.3648 ], [ -71.0504, 42.3648 ], [ -71.0504, 42.3648 ], [ -71.0504, 42.3648 ], [ -71.0504, 42.3648 ], [ -71.0502, 42.3648 ], [ -71.0501, 42.3647 ], [ -71.0499, 42.3647 ], [ -71.0497, 42.3647 ], [ -71.0497, 42.3647 ], [ -71.0495, 42.3647 ], [ -71.0495, 42.3645 ], [ -71.0492, 42.3645 ], [ -71.0492, 42.3644 ], [ -71.0492, 42.3644 ], [ -71.0492, 42.3644 ], [ -71.0492, 42.3643 ], [ -71.0493, 42.3640 ], [ -71.0493, 42.3640 ], [ -71.0494, 42.3637 ], [ -71.0496, 42.3638 ], [ -71.0497, 42.3636 ], [ -71.0497, 42.3635 ], [ -71.0496, 42.3635 ], [ -71.0490, 42.3635 ], [ -71.0490, 42.3635 ], [ -71.0483, 42.3635 ], [ -71.0483, 42.3635 ], [ -71.0482, 42.3631 ], [ -71.0483, 42.3631 ], [ -71.0485, 42.3631 ], [ -71.0486, 42.3632 ], [ -71.0485, 42.3632 ], [ -71.0485, 42.3633 ], [ -71.0488, 42.3633 ], [ -71.0488, 42.3634 ], [ -71.0490, 42.3634 ], [ -71.0490, 42.3632 ], [ -71.0490, 42.3631 ], [ -71.0490, 42.3628 ], [ -71.0490, 42.3628 ], [ -71.0491, 42.3628 ], [ -71.0492, 42.3628 ], [ -71.0492, 42.3628 ], [ -71.0490, 42.3627 ], [ -71.0490, 42.3625 ], [ -71.0494, 42.3626 ], [ -71.0497, 42.3627 ], [ -71.0499, 42.3627 ], [ -71.0499, 42.3628 ], [ -71.0502, 42.3628 ], [ -71.0503, 42.3629 ], [ -71.0504, 42.3629 ], [ -71.0505, 42.3629 ], [ -71.0508, 42.3630 ], [ -71.0508, 42.3625 ], [ -71.0506, 42.3625 ], [ -71.0506, 42.3625 ], [ -71.0506, 42.3625 ], [ -71.0510, 42.3622 ], [ -71.0511, 42.3621 ], [ -71.0513, 42.3619 ], [ -71.0514, 42.3619 ], [ -71.0519, 42.3616 ], [ -71.0521, 42.3615 ], [ -71.0523, 42.3614 ], [ -71.0524, 42.3612 ], [ -71.0525, 42.3610 ], [ -71.0527, 42.3609 ], [ -71.0534, 42.3612 ], [ -71.0539, 42.3615 ], [ -71.0545, 42.3618 ], [ -71.0549, 42.3620 ], [ -71.0551, 42.3621 ], [ -71.0557, 42.3625 ], [ -71.0559, 42.3626 ], [ -71.0563, 42.3628 ], [ -71.0567, 42.3630 ], [ -71.0572, 42.3633 ], [ -71.0573, 42.3634 ], [ -71.0576, 42.3638 ], [ -71.0578, 42.3640 ], [ -71.0581, 42.3643 ], [ -71.0583, 42.3644 ], [ -71.0583, 42.3651 ], [ -71.0585, 42.3668 ], [ -71.0590, 42.3675 ], [ -71.0588, 42.3676 ], [ -71.0588, 42.3676 ], [ -71.0588, 42.3676 ], [ -71.0588, 42.3676 ], [ -71.0588, 42.3676 ], [ -71.0588, 42.3676 ], [ -71.0588, 42.3676 ], [ -71.0588, 42.3676 ], [ -71.0588, 42.3676 ], [ -71.0588, 42.3676 ], [ -71.0588, 42.3676 ], [ -71.0588, 42.3676 ], [ -71.0588, 42.3676 ], [ -71.0588, 42.3676 ], [ -71.0587, 42.3676 ], [ -71.0587, 42.3676 ], [ -71.0587, 42.3676 ], [ -71.0587, 42.3676 ], [ -71.0587, 42.3676 ], [ -71.0587, 42.3677 ], [ -71.0588, 42.3677 ], [ -71.0588, 42.3677 ], [ -71.0588, 42.3677 ], [ -71.0588, 42.3677 ], [ -71.0588, 42.3677 ], [ -71.0588, 42.3677 ], [ -71.0588, 42.3677 ], [ -71.0588, 42.3677 ], [ -71.0588, 42.3677 ], [ -71.0588, 42.3677 ], [ -71.0588, 42.3678 ], [ -71.0588, 42.3678 ], [ -71.0588, 42.3678 ], [ -71.0588, 42.3678 ], [ -71.0588, 42.3678 ], [ -71.0588, 42.3678 ], [ -71.0588, 42.3678 ], [ -71.0588, 42.3678 ], [ -71.0588, 42.3678 ], [ -71.0588, 42.3678 ], [ -71.0588, 42.3678 ], [ -71.0588, 42.3678 ], [ -71.0588, 42.3678 ], [ -71.0587, 42.3678 ], [ -71.0587, 42.3678 ], [ -71.0587, 42.3678 ], [ -71.0587, 42.3679 ], [ -71.0587, 42.3679 ], [ -71.0587, 42.3679 ], [ -71.0587, 42.3679 ], [ -71.0587, 42.3679 ], [ -71.0587, 42.3679 ], [ -71.0586, 42.3679 ], [ -71.0586, 42.3679 ], [ -71.0586, 42.3679 ], [ -71.0586, 42.3679 ], [ -71.0586, 42.3679 ], [ -71.0586, 42.3679 ], [ -71.0586, 42.3679 ], [ -71.0586, 42.3679 ], [ -71.0586, 42.3679 ], [ -71.0586, 42.3679 ], [ -71.0586, 42.3679 ], [ -71.0586, 42.3679 ], [ -71.0586, 42.3679 ], [ -71.0586, 42.3679 ], [ -71.0586, 42.3679 ], [ -71.0586, 42.3679 ], [ -71.0586, 42.3679 ], [ -71.0586, 42.3679 ], [ -71.0586, 42.3679 ], [ -71.0586, 42.3679 ], [ -71.0586, 42.3679 ], [ -71.0586, 42.3679 ], [ -71.0586, 42.3679 ], [ -71.0586, 42.3679 ], [ -71.0586, 42.3679 ], [ -71.0586, 42.3679 ], [ -71.0586, 42.3679 ], [ -71.0586, 42.3679 ], [ -71.0586, 42.3679 ], [ -71.0586, 42.3679 ], [ -71.0584, 42.3679 ], [ -71.0584, 42.3679 ], [ -71.0584, 42.3679 ], [ -71.0584, 42.3679 ], [ -71.0583, 42.3679 ], [ -71.0583, 42.3679 ], [ -71.0583, 42.3679 ], [ -71.0583, 42.3679 ], [ -71.0583, 42.3679 ], [ -71.0583, 42.3679 ], [ -71.0582, 42.3679 ], [ -71.0582, 42.3679 ], [ -71.0582, 42.3679 ], [ -71.0582, 42.3679 ], [ -71.0582, 42.3679 ], [ -71.0582, 42.3679 ], [ -71.0582, 42.3679 ], [ -71.0581, 42.3679 ], [ -71.0581, 42.3679 ], [ -71.0581, 42.3679 ], [ -71.0581, 42.3679 ], [ -71.0581, 42.3679 ], [ -71.0581, 42.3679 ], [ -71.0581, 42.3679 ], [ -71.0581, 42.3679 ], [ -71.0581, 42.3679 ], [ -71.0581, 42.3679 ], [ -71.0581, 42.3679 ], [ -71.0581, 42.3679 ], [ -71.0581, 42.3679 ], [ -71.0581, 42.3679 ], [ -71.0581, 42.3679 ], [ -71.0581, 42.3679 ], [ -71.0581, 42.3679 ], [ -71.0581, 42.3679 ], [ -71.0582, 42.3680 ], [ -71.0581, 42.3680 ], [ -71.0583, 42.3682 ], [ -71.0580, 42.3683 ], [ -71.0580, 42.3683 ], [ -71.0582, 42.3682 ], [ -71.0581, 42.3680 ], [ -71.0579, 42.3681 ], [ -71.0577, 42.3682 ], [ -71.0577, 42.3682 ], [ -71.0577, 42.3683 ], [ -71.0577, 42.3683 ], [ -71.0577, 42.3683 ], [ -71.0577, 42.3683 ], [ -71.0577, 42.3683 ], [ -71.0577, 42.3683 ], [ -71.0577, 42.3683 ], [ -71.0576, 42.3683 ], [ -71.0576, 42.3683 ], [ -71.0576, 42.3683 ], [ -71.0576, 42.3683 ], [ -71.0576, 42.3683 ], [ -71.0576, 42.3683 ], [ -71.0576, 42.3684 ], [ -71.0576, 42.3684 ], [ -71.0576, 42.3684 ], [ -71.0576, 42.3684 ], [ -71.0576, 42.3684 ], [ -71.0576, 42.3684 ], [ -71.0576, 42.3684 ], [ -71.0576, 42.3684 ], [ -71.0576, 42.3684 ], [ -71.0576, 42.3684 ], [ -71.0576, 42.3684 ], [ -71.0576, 42.3684 ], [ -71.0576, 42.3684 ], [ -71.0576, 42.3684 ], [ -71.0576, 42.3684 ], [ -71.0576, 42.3684 ], [ -71.0576, 42.3684 ], [ -71.0576, 42.3684 ], [ -71.0576, 42.3684 ], [ -71.0576, 42.3684 ], [ -71.0576, 42.3684 ], [ -71.0576, 42.3684 ], [ -71.0576, 42.3684 ], [ -71.0576, 42.3684 ], [ -71.0576, 42.3684 ], [ -71.0576, 42.3684 ], [ -71.0576, 42.3684 ], [ -71.0576, 42.3684 ], [ -71.0576, 42.3684 ], [ -71.0576, 42.3684 ], [ -71.0576, 42.3684 ], [ -71.0576, 42.3684 ], [ -71.0576, 42.3684 ], [ -71.0576, 42.3684 ], [ -71.0572, 42.3687 ], [ -71.0570, 42.3688 ], [ -71.0570, 42.3688 ], [ -71.0568, 42.3688 ], [ -71.0568, 42.3688 ], [ -71.0567, 42.3688 ], [ -71.0566, 42.3689 ], [ -71.0565, 42.3689 ], [ -71.0565, 42.3689 ], [ -71.0564, 42.3689 ], [ -71.0563, 42.3689 ], [ -71.0562, 42.3689 ], [ -71.0560, 42.3689 ], [ -71.0557, 42.3690 ], [ -71.0556, 42.3690 ], [ -71.0555, 42.3690 ], [ -71.0555, 42.3690 ], [ -71.0554, 42.3690 ], [ -71.0553, 42.3689 ], [ -71.0551, 42.3689 ], [ -71.0551, 42.3689 ], [ -71.0550, 42.3690 ], [ -71.0550, 42.3690 ], [ -71.0549, 42.3690 ], [ -71.0549, 42.3689 ], [ -71.0546, 42.3689 ], [ -71.0542, 42.3688 ], [ -71.0540, 42.3688 ], [ -71.0537, 42.3687 ], [ -71.0535, 42.3687 ], [ -71.0535, 42.3687 ], [ -71.0534, 42.3686 ], [ -71.0534, 42.3687 ], [ -71.0533, 42.3688 ], [ -71.0533, 42.3688 ], [ -71.0533, 42.3688 ], [ -71.0533, 42.3689 ], [ -71.0532, 42.3689 ], [ -71.0532, 42.3688 ], [ -71.0532, 42.3688 ], [ -71.0532, 42.3688 ], [ -71.0532, 42.3688 ], [ -71.0531, 42.3687 ], [ -71.0530, 42.3687 ], [ -71.0530, 42.3687 ], [ -71.0528, 42.3686 ], [ -71.0527, 42.3687 ], [ -71.0526, 42.3689 ], [ -71.0524, 42.3691 ], [ -71.0522, 42.3693 ], [ -71.0521, 42.3695 ], [ -71.0520, 42.3696 ], [ -71.0516, 42.3695 ], [ -71.0519, 42.3692 ], [ -71.0520, 42.3690 ], [ -71.0521, 42.3689 ], [ -71.0519, 42.3688 ] ] ], [ [ [ -71.0491, 42.3620 ], [ -71.0491, 42.3620 ], [ -71.0489, 42.3620 ], [ -71.0491, 42.3620 ], [ -71.0506, 42.3624 ], [ -71.0503, 42.3624 ], [ -71.0500, 42.3623 ], [ -71.0497, 42.3622 ], [ -71.0494, 42.3621 ], [ -71.0491, 42.3620 ] ] ] ] } }, + { "type": "Feature", "properties": { "Name": "Roxbury", "density": 6.3700 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -71.0964, 42.2932 ], [ -71.0966, 42.2934 ], [ -71.0968, 42.2937 ], [ -71.0974, 42.2942 ], [ -71.0988, 42.2956 ], [ -71.0991, 42.2959 ], [ -71.1002, 42.2969 ], [ -71.1018, 42.2985 ], [ -71.1029, 42.2994 ], [ -71.1032, 42.2998 ], [ -71.1034, 42.2999 ], [ -71.1037, 42.3000 ], [ -71.1039, 42.3001 ], [ -71.1040, 42.3001 ], [ -71.1042, 42.3002 ], [ -71.1046, 42.3002 ], [ -71.1049, 42.3002 ], [ -71.1053, 42.3003 ], [ -71.1057, 42.3003 ], [ -71.1059, 42.3004 ], [ -71.1060, 42.3004 ], [ -71.1061, 42.3005 ], [ -71.1061, 42.3005 ], [ -71.1062, 42.3007 ], [ -71.1062, 42.3007 ], [ -71.1062, 42.3007 ], [ -71.1062, 42.3007 ], [ -71.1063, 42.3008 ], [ -71.1063, 42.3008 ], [ -71.1064, 42.3008 ], [ -71.1065, 42.3008 ], [ -71.1066, 42.3009 ], [ -71.1067, 42.3009 ], [ -71.1067, 42.3009 ], [ -71.1067, 42.3009 ], [ -71.1067, 42.3009 ], [ -71.1068, 42.3009 ], [ -71.1068, 42.3009 ], [ -71.1068, 42.3010 ], [ -71.1068, 42.3010 ], [ -71.1067, 42.3011 ], [ -71.1067, 42.3011 ], [ -71.1067, 42.3011 ], [ -71.1067, 42.3011 ], [ -71.1067, 42.3011 ], [ -71.1066, 42.3011 ], [ -71.1066, 42.3011 ], [ -71.1065, 42.3012 ], [ -71.1065, 42.3012 ], [ -71.1065, 42.3012 ], [ -71.1064, 42.3013 ], [ -71.1062, 42.3013 ], [ -71.1062, 42.3013 ], [ -71.1061, 42.3014 ], [ -71.1061, 42.3014 ], [ -71.1058, 42.3016 ], [ -71.1057, 42.3016 ], [ -71.1056, 42.3016 ], [ -71.1056, 42.3017 ], [ -71.1055, 42.3017 ], [ -71.1053, 42.3019 ], [ -71.1051, 42.3020 ], [ -71.1050, 42.3021 ], [ -71.1048, 42.3023 ], [ -71.1046, 42.3024 ], [ -71.1045, 42.3026 ], [ -71.1043, 42.3027 ], [ -71.1040, 42.3029 ], [ -71.1040, 42.3030 ], [ -71.1039, 42.3030 ], [ -71.1038, 42.3031 ], [ -71.1037, 42.3032 ], [ -71.1037, 42.3032 ], [ -71.1035, 42.3035 ], [ -71.1035, 42.3035 ], [ -71.1034, 42.3036 ], [ -71.1034, 42.3036 ], [ -71.1034, 42.3036 ], [ -71.1034, 42.3036 ], [ -71.1034, 42.3037 ], [ -71.1033, 42.3037 ], [ -71.1033, 42.3037 ], [ -71.1033, 42.3037 ], [ -71.1032, 42.3038 ], [ -71.1032, 42.3038 ], [ -71.1032, 42.3039 ], [ -71.1032, 42.3039 ], [ -71.1032, 42.3039 ], [ -71.1032, 42.3040 ], [ -71.1032, 42.3043 ], [ -71.1031, 42.3043 ], [ -71.1031, 42.3043 ], [ -71.1031, 42.3044 ], [ -71.1031, 42.3044 ], [ -71.1031, 42.3046 ], [ -71.1031, 42.3046 ], [ -71.1031, 42.3046 ], [ -71.1031, 42.3047 ], [ -71.1031, 42.3047 ], [ -71.1030, 42.3047 ], [ -71.1030, 42.3047 ], [ -71.1030, 42.3047 ], [ -71.1030, 42.3048 ], [ -71.1029, 42.3049 ], [ -71.1029, 42.3049 ], [ -71.1029, 42.3049 ], [ -71.1029, 42.3049 ], [ -71.1029, 42.3049 ], [ -71.1029, 42.3049 ], [ -71.1029, 42.3050 ], [ -71.1028, 42.3050 ], [ -71.1028, 42.3050 ], [ -71.1028, 42.3050 ], [ -71.1028, 42.3050 ], [ -71.1028, 42.3051 ], [ -71.1028, 42.3051 ], [ -71.1028, 42.3051 ], [ -71.1027, 42.3051 ], [ -71.1027, 42.3052 ], [ -71.1027, 42.3052 ], [ -71.1027, 42.3052 ], [ -71.1027, 42.3052 ], [ -71.1027, 42.3052 ], [ -71.1027, 42.3052 ], [ -71.1027, 42.3052 ], [ -71.1027, 42.3052 ], [ -71.1027, 42.3053 ], [ -71.1027, 42.3053 ], [ -71.1027, 42.3053 ], [ -71.1027, 42.3053 ], [ -71.1026, 42.3054 ], [ -71.1026, 42.3055 ], [ -71.1026, 42.3055 ], [ -71.1026, 42.3055 ], [ -71.1026, 42.3056 ], [ -71.1027, 42.3059 ], [ -71.1027, 42.3059 ], [ -71.1026, 42.3059 ], [ -71.1019, 42.3059 ], [ -71.1019, 42.3059 ], [ -71.1019, 42.3059 ], [ -71.1019, 42.3059 ], [ -71.1017, 42.3061 ], [ -71.1014, 42.3065 ], [ -71.1014, 42.3065 ], [ -71.1014, 42.3065 ], [ -71.1011, 42.3065 ], [ -71.1011, 42.3065 ], [ -71.1011, 42.3065 ], [ -71.1011, 42.3066 ], [ -71.1011, 42.3066 ], [ -71.1011, 42.3066 ], [ -71.1007, 42.3065 ], [ -71.1007, 42.3065 ], [ -71.1007, 42.3065 ], [ -71.1007, 42.3065 ], [ -71.1006, 42.3067 ], [ -71.1003, 42.3072 ], [ -71.1003, 42.3072 ], [ -71.1004, 42.3072 ], [ -71.1004, 42.3072 ], [ -71.1004, 42.3072 ], [ -71.1004, 42.3072 ], [ -71.1004, 42.3072 ], [ -71.1004, 42.3073 ], [ -71.1004, 42.3073 ], [ -71.1004, 42.3074 ], [ -71.1004, 42.3074 ], [ -71.1004, 42.3074 ], [ -71.1003, 42.3075 ], [ -71.1003, 42.3075 ], [ -71.1003, 42.3076 ], [ -71.1003, 42.3077 ], [ -71.1002, 42.3077 ], [ -71.1002, 42.3077 ], [ -71.1002, 42.3078 ], [ -71.1002, 42.3078 ], [ -71.1002, 42.3078 ], [ -71.1002, 42.3078 ], [ -71.1002, 42.3078 ], [ -71.1002, 42.3078 ], [ -71.1001, 42.3079 ], [ -71.0999, 42.3079 ], [ -71.0999, 42.3079 ], [ -71.0999, 42.3079 ], [ -71.0999, 42.3079 ], [ -71.0999, 42.3079 ], [ -71.0998, 42.3080 ], [ -71.0998, 42.3080 ], [ -71.0998, 42.3081 ], [ -71.0996, 42.3083 ], [ -71.0996, 42.3083 ], [ -71.0994, 42.3085 ], [ -71.0994, 42.3086 ], [ -71.0993, 42.3087 ], [ -71.0992, 42.3088 ], [ -71.0992, 42.3088 ], [ -71.0992, 42.3088 ], [ -71.0993, 42.3089 ], [ -71.0993, 42.3090 ], [ -71.0993, 42.3090 ], [ -71.0993, 42.3090 ], [ -71.0993, 42.3090 ], [ -71.0989, 42.3092 ], [ -71.0989, 42.3092 ], [ -71.0989, 42.3092 ], [ -71.0987, 42.3093 ], [ -71.0984, 42.3094 ], [ -71.0983, 42.3094 ], [ -71.0983, 42.3094 ], [ -71.0983, 42.3094 ], [ -71.0982, 42.3095 ], [ -71.0982, 42.3095 ], [ -71.0982, 42.3095 ], [ -71.0982, 42.3095 ], [ -71.0982, 42.3095 ], [ -71.0982, 42.3095 ], [ -71.0982, 42.3095 ], [ -71.0982, 42.3095 ], [ -71.0982, 42.3095 ], [ -71.0982, 42.3095 ], [ -71.0981, 42.3095 ], [ -71.0981, 42.3096 ], [ -71.0981, 42.3096 ], [ -71.0981, 42.3096 ], [ -71.0981, 42.3096 ], [ -71.0981, 42.3096 ], [ -71.0981, 42.3096 ], [ -71.0981, 42.3096 ], [ -71.0980, 42.3097 ], [ -71.0980, 42.3097 ], [ -71.0980, 42.3097 ], [ -71.0979, 42.3098 ], [ -71.0979, 42.3098 ], [ -71.0979, 42.3099 ], [ -71.0979, 42.3099 ], [ -71.0979, 42.3099 ], [ -71.0979, 42.3100 ], [ -71.0979, 42.3100 ], [ -71.0979, 42.3101 ], [ -71.0979, 42.3101 ], [ -71.0978, 42.3104 ], [ -71.0978, 42.3107 ], [ -71.0978, 42.3110 ], [ -71.0978, 42.3110 ], [ -71.0978, 42.3110 ], [ -71.0978, 42.3110 ], [ -71.0978, 42.3111 ], [ -71.0978, 42.3112 ], [ -71.0978, 42.3113 ], [ -71.0978, 42.3113 ], [ -71.0978, 42.3113 ], [ -71.0978, 42.3113 ], [ -71.0978, 42.3114 ], [ -71.0977, 42.3114 ], [ -71.0977, 42.3115 ], [ -71.0977, 42.3116 ], [ -71.0976, 42.3117 ], [ -71.0975, 42.3118 ], [ -71.0975, 42.3118 ], [ -71.0975, 42.3118 ], [ -71.0975, 42.3118 ], [ -71.0974, 42.3119 ], [ -71.0974, 42.3119 ], [ -71.0974, 42.3119 ], [ -71.0973, 42.3119 ], [ -71.0973, 42.3119 ], [ -71.0973, 42.3119 ], [ -71.0973, 42.3119 ], [ -71.0973, 42.3119 ], [ -71.0973, 42.3119 ], [ -71.0972, 42.3120 ], [ -71.0972, 42.3120 ], [ -71.0972, 42.3120 ], [ -71.0972, 42.3120 ], [ -71.0971, 42.3121 ], [ -71.0970, 42.3121 ], [ -71.0970, 42.3121 ], [ -71.0969, 42.3121 ], [ -71.0969, 42.3121 ], [ -71.0969, 42.3121 ], [ -71.0969, 42.3121 ], [ -71.0966, 42.3122 ], [ -71.0964, 42.3123 ], [ -71.0963, 42.3124 ], [ -71.0962, 42.3124 ], [ -71.0962, 42.3124 ], [ -71.0962, 42.3124 ], [ -71.0962, 42.3124 ], [ -71.0962, 42.3124 ], [ -71.0962, 42.3124 ], [ -71.0962, 42.3124 ], [ -71.0962, 42.3124 ], [ -71.0962, 42.3124 ], [ -71.0961, 42.3125 ], [ -71.0960, 42.3125 ], [ -71.0956, 42.3128 ], [ -71.0951, 42.3132 ], [ -71.0951, 42.3133 ], [ -71.0952, 42.3134 ], [ -71.0967, 42.3144 ], [ -71.0967, 42.3144 ], [ -71.0970, 42.3146 ], [ -71.0971, 42.3147 ], [ -71.0971, 42.3147 ], [ -71.0971, 42.3147 ], [ -71.0972, 42.3148 ], [ -71.0972, 42.3148 ], [ -71.0972, 42.3148 ], [ -71.0977, 42.3152 ], [ -71.0978, 42.3152 ], [ -71.0979, 42.3153 ], [ -71.0982, 42.3155 ], [ -71.0982, 42.3157 ], [ -71.0982, 42.3158 ], [ -71.0982, 42.3168 ], [ -71.0982, 42.3168 ], [ -71.0982, 42.3168 ], [ -71.0982, 42.3168 ], [ -71.0982, 42.3168 ], [ -71.0982, 42.3168 ], [ -71.0982, 42.3170 ], [ -71.0983, 42.3173 ], [ -71.0983, 42.3173 ], [ -71.0983, 42.3173 ], [ -71.0983, 42.3173 ], [ -71.0983, 42.3180 ], [ -71.0983, 42.3183 ], [ -71.0983, 42.3183 ], [ -71.0983, 42.3183 ], [ -71.0983, 42.3185 ], [ -71.0983, 42.3195 ], [ -71.0983, 42.3195 ], [ -71.0983, 42.3195 ], [ -71.0983, 42.3205 ], [ -71.0983, 42.3206 ], [ -71.0984, 42.3213 ], [ -71.0984, 42.3213 ], [ -71.0984, 42.3215 ], [ -71.0984, 42.3219 ], [ -71.0984, 42.3221 ], [ -71.0984, 42.3223 ], [ -71.0984, 42.3223 ], [ -71.0984, 42.3223 ], [ -71.0984, 42.3225 ], [ -71.0984, 42.3225 ], [ -71.0984, 42.3225 ], [ -71.0984, 42.3225 ], [ -71.0985, 42.3231 ], [ -71.0985, 42.3231 ], [ -71.0985, 42.3233 ], [ -71.0985, 42.3233 ], [ -71.0985, 42.3237 ], [ -71.0985, 42.3237 ], [ -71.0985, 42.3239 ], [ -71.0986, 42.3248 ], [ -71.0985, 42.3252 ], [ -71.0983, 42.3263 ], [ -71.0979, 42.3272 ], [ -71.0975, 42.3280 ], [ -71.0971, 42.3287 ], [ -71.0968, 42.3294 ], [ -71.0963, 42.3301 ], [ -71.0958, 42.3308 ], [ -71.0952, 42.3315 ], [ -71.0943, 42.3323 ], [ -71.0929, 42.3334 ], [ -71.0927, 42.3336 ], [ -71.0904, 42.3357 ], [ -71.0904, 42.3357 ], [ -71.0903, 42.3358 ], [ -71.0903, 42.3358 ], [ -71.0903, 42.3358 ], [ -71.0902, 42.3359 ], [ -71.0901, 42.3359 ], [ -71.0901, 42.3359 ], [ -71.0900, 42.3360 ], [ -71.0895, 42.3364 ], [ -71.0876, 42.3380 ], [ -71.0876, 42.3380 ], [ -71.0870, 42.3385 ], [ -71.0866, 42.3388 ], [ -71.0865, 42.3389 ], [ -71.0865, 42.3389 ], [ -71.0862, 42.3391 ], [ -71.0860, 42.3393 ], [ -71.0860, 42.3393 ], [ -71.0858, 42.3394 ], [ -71.0858, 42.3394 ], [ -71.0857, 42.3395 ], [ -71.0857, 42.3396 ], [ -71.0855, 42.3397 ], [ -71.0855, 42.3397 ], [ -71.0855, 42.3397 ], [ -71.0855, 42.3397 ], [ -71.0854, 42.3398 ], [ -71.0854, 42.3398 ], [ -71.0854, 42.3398 ], [ -71.0853, 42.3399 ], [ -71.0853, 42.3399 ], [ -71.0851, 42.3400 ], [ -71.0851, 42.3400 ], [ -71.0851, 42.3401 ], [ -71.0851, 42.3401 ], [ -71.0851, 42.3401 ], [ -71.0850, 42.3401 ], [ -71.0850, 42.3401 ], [ -71.0849, 42.3402 ], [ -71.0849, 42.3403 ], [ -71.0849, 42.3403 ], [ -71.0849, 42.3403 ], [ -71.0848, 42.3403 ], [ -71.0848, 42.3403 ], [ -71.0848, 42.3403 ], [ -71.0848, 42.3403 ], [ -71.0848, 42.3403 ], [ -71.0848, 42.3403 ], [ -71.0848, 42.3403 ], [ -71.0848, 42.3404 ], [ -71.0836, 42.3413 ], [ -71.0834, 42.3415 ], [ -71.0833, 42.3416 ], [ -71.0833, 42.3416 ], [ -71.0831, 42.3415 ], [ -71.0830, 42.3414 ], [ -71.0823, 42.3410 ], [ -71.0823, 42.3409 ], [ -71.0821, 42.3408 ], [ -71.0821, 42.3408 ], [ -71.0820, 42.3407 ], [ -71.0820, 42.3407 ], [ -71.0819, 42.3407 ], [ -71.0819, 42.3407 ], [ -71.0819, 42.3407 ], [ -71.0819, 42.3407 ], [ -71.0819, 42.3407 ], [ -71.0818, 42.3406 ], [ -71.0817, 42.3405 ], [ -71.0817, 42.3405 ], [ -71.0817, 42.3405 ], [ -71.0816, 42.3405 ], [ -71.0813, 42.3403 ], [ -71.0812, 42.3402 ], [ -71.0812, 42.3402 ], [ -71.0810, 42.3399 ], [ -71.0806, 42.3396 ], [ -71.0806, 42.3396 ], [ -71.0806, 42.3395 ], [ -71.0806, 42.3395 ], [ -71.0806, 42.3395 ], [ -71.0806, 42.3395 ], [ -71.0805, 42.3394 ], [ -71.0804, 42.3393 ], [ -71.0803, 42.3392 ], [ -71.0803, 42.3392 ], [ -71.0802, 42.3392 ], [ -71.0801, 42.3391 ], [ -71.0801, 42.3390 ], [ -71.0801, 42.3390 ], [ -71.0801, 42.3390 ], [ -71.0798, 42.3388 ], [ -71.0797, 42.3387 ], [ -71.0796, 42.3387 ], [ -71.0786, 42.3378 ], [ -71.0785, 42.3377 ], [ -71.0785, 42.3377 ], [ -71.0785, 42.3377 ], [ -71.0782, 42.3375 ], [ -71.0780, 42.3373 ], [ -71.0773, 42.3368 ], [ -71.0773, 42.3368 ], [ -71.0773, 42.3368 ], [ -71.0773, 42.3368 ], [ -71.0772, 42.3367 ], [ -71.0772, 42.3367 ], [ -71.0772, 42.3367 ], [ -71.0770, 42.3365 ], [ -71.0769, 42.3365 ], [ -71.0769, 42.3364 ], [ -71.0769, 42.3364 ], [ -71.0766, 42.3362 ], [ -71.0766, 42.3362 ], [ -71.0766, 42.3361 ], [ -71.0765, 42.3361 ], [ -71.0765, 42.3361 ], [ -71.0764, 42.3360 ], [ -71.0752, 42.3351 ], [ -71.0752, 42.3350 ], [ -71.0752, 42.3350 ], [ -71.0751, 42.3349 ], [ -71.0751, 42.3349 ], [ -71.0742, 42.3342 ], [ -71.0734, 42.3335 ], [ -71.0734, 42.3335 ], [ -71.0734, 42.3335 ], [ -71.0729, 42.3331 ], [ -71.0729, 42.3331 ], [ -71.0720, 42.3325 ], [ -71.0720, 42.3325 ], [ -71.0719, 42.3324 ], [ -71.0719, 42.3324 ], [ -71.0712, 42.3319 ], [ -71.0712, 42.3319 ], [ -71.0711, 42.3318 ], [ -71.0711, 42.3318 ], [ -71.0711, 42.3318 ], [ -71.0711, 42.3318 ], [ -71.0710, 42.3317 ], [ -71.0704, 42.3311 ], [ -71.0701, 42.3307 ], [ -71.0701, 42.3307 ], [ -71.0701, 42.3307 ], [ -71.0701, 42.3307 ], [ -71.0700, 42.3305 ], [ -71.0698, 42.3303 ], [ -71.0696, 42.3301 ], [ -71.0696, 42.3300 ], [ -71.0695, 42.3300 ], [ -71.0694, 42.3298 ], [ -71.0694, 42.3298 ], [ -71.0694, 42.3298 ], [ -71.0694, 42.3298 ], [ -71.0693, 42.3297 ], [ -71.0693, 42.3297 ], [ -71.0693, 42.3297 ], [ -71.0693, 42.3297 ], [ -71.0691, 42.3295 ], [ -71.0691, 42.3295 ], [ -71.0687, 42.3290 ], [ -71.0687, 42.3290 ], [ -71.0682, 42.3284 ], [ -71.0679, 42.3281 ], [ -71.0679, 42.3280 ], [ -71.0678, 42.3279 ], [ -71.0676, 42.3277 ], [ -71.0675, 42.3275 ], [ -71.0674, 42.3275 ], [ -71.0674, 42.3275 ], [ -71.0674, 42.3275 ], [ -71.0674, 42.3275 ], [ -71.0670, 42.3270 ], [ -71.0670, 42.3269 ], [ -71.0670, 42.3269 ], [ -71.0669, 42.3269 ], [ -71.0669, 42.3269 ], [ -71.0669, 42.3268 ], [ -71.0669, 42.3268 ], [ -71.0667, 42.3266 ], [ -71.0667, 42.3266 ], [ -71.0666, 42.3265 ], [ -71.0666, 42.3265 ], [ -71.0664, 42.3262 ], [ -71.0664, 42.3262 ], [ -71.0664, 42.3261 ], [ -71.0664, 42.3261 ], [ -71.0664, 42.3261 ], [ -71.0665, 42.3259 ], [ -71.0666, 42.3259 ], [ -71.0667, 42.3257 ], [ -71.0668, 42.3254 ], [ -71.0669, 42.3252 ], [ -71.0670, 42.3249 ], [ -71.0671, 42.3246 ], [ -71.0672, 42.3243 ], [ -71.0672, 42.3241 ], [ -71.0673, 42.3238 ], [ -71.0673, 42.3237 ], [ -71.0675, 42.3233 ], [ -71.0675, 42.3233 ], [ -71.0675, 42.3233 ], [ -71.0680, 42.3212 ], [ -71.0681, 42.3212 ], [ -71.0685, 42.3213 ], [ -71.0685, 42.3213 ], [ -71.0689, 42.3213 ], [ -71.0691, 42.3214 ], [ -71.0694, 42.3215 ], [ -71.0696, 42.3215 ], [ -71.0698, 42.3215 ], [ -71.0701, 42.3215 ], [ -71.0705, 42.3215 ], [ -71.0713, 42.3214 ], [ -71.0717, 42.3213 ], [ -71.0722, 42.3213 ], [ -71.0721, 42.3211 ], [ -71.0721, 42.3210 ], [ -71.0720, 42.3209 ], [ -71.0720, 42.3208 ], [ -71.0719, 42.3207 ], [ -71.0712, 42.3201 ], [ -71.0708, 42.3197 ], [ -71.0706, 42.3195 ], [ -71.0704, 42.3193 ], [ -71.0703, 42.3192 ], [ -71.0702, 42.3191 ], [ -71.0699, 42.3190 ], [ -71.0696, 42.3189 ], [ -71.0699, 42.3183 ], [ -71.0701, 42.3179 ], [ -71.0703, 42.3174 ], [ -71.0715, 42.3177 ], [ -71.0716, 42.3177 ], [ -71.0717, 42.3177 ], [ -71.0718, 42.3177 ], [ -71.0719, 42.3177 ], [ -71.0719, 42.3177 ], [ -71.0721, 42.3176 ], [ -71.0723, 42.3174 ], [ -71.0727, 42.3172 ], [ -71.0730, 42.3170 ], [ -71.0729, 42.3168 ], [ -71.0728, 42.3167 ], [ -71.0728, 42.3166 ], [ -71.0728, 42.3165 ], [ -71.0728, 42.3164 ], [ -71.0729, 42.3159 ], [ -71.0729, 42.3158 ], [ -71.0730, 42.3155 ], [ -71.0730, 42.3147 ], [ -71.0731, 42.3144 ], [ -71.0731, 42.3142 ], [ -71.0732, 42.3136 ], [ -71.0729, 42.3136 ], [ -71.0721, 42.3136 ], [ -71.0722, 42.3134 ], [ -71.0726, 42.3129 ], [ -71.0730, 42.3123 ], [ -71.0731, 42.3122 ], [ -71.0736, 42.3123 ], [ -71.0740, 42.3126 ], [ -71.0746, 42.3128 ], [ -71.0749, 42.3129 ], [ -71.0753, 42.3131 ], [ -71.0755, 42.3131 ], [ -71.0756, 42.3132 ], [ -71.0761, 42.3134 ], [ -71.0767, 42.3136 ], [ -71.0770, 42.3137 ], [ -71.0777, 42.3140 ], [ -71.0779, 42.3141 ], [ -71.0784, 42.3144 ], [ -71.0788, 42.3146 ], [ -71.0791, 42.3140 ], [ -71.0794, 42.3136 ], [ -71.0794, 42.3135 ], [ -71.0796, 42.3132 ], [ -71.0800, 42.3126 ], [ -71.0803, 42.3124 ], [ -71.0807, 42.3118 ], [ -71.0811, 42.3113 ], [ -71.0815, 42.3108 ], [ -71.0817, 42.3106 ], [ -71.0820, 42.3102 ], [ -71.0825, 42.3096 ], [ -71.0826, 42.3095 ], [ -71.0827, 42.3094 ], [ -71.0828, 42.3093 ], [ -71.0829, 42.3090 ], [ -71.0830, 42.3087 ], [ -71.0830, 42.3087 ], [ -71.0832, 42.3084 ], [ -71.0836, 42.3078 ], [ -71.0838, 42.3075 ], [ -71.0840, 42.3074 ], [ -71.0841, 42.3071 ], [ -71.0842, 42.3070 ], [ -71.0844, 42.3067 ], [ -71.0844, 42.3066 ], [ -71.0845, 42.3063 ], [ -71.0846, 42.3061 ], [ -71.0846, 42.3059 ], [ -71.0846, 42.3056 ], [ -71.0847, 42.3054 ], [ -71.0847, 42.3052 ], [ -71.0847, 42.3052 ], [ -71.0848, 42.3047 ], [ -71.0849, 42.3044 ], [ -71.0850, 42.3041 ], [ -71.0852, 42.3034 ], [ -71.0853, 42.3030 ], [ -71.0855, 42.3024 ], [ -71.0857, 42.3019 ], [ -71.0859, 42.3013 ], [ -71.0859, 42.3013 ], [ -71.0861, 42.3006 ], [ -71.0862, 42.3003 ], [ -71.0864, 42.3000 ], [ -71.0865, 42.2995 ], [ -71.0866, 42.2991 ], [ -71.0867, 42.2987 ], [ -71.0869, 42.2983 ], [ -71.0869, 42.2981 ], [ -71.0874, 42.2980 ], [ -71.0885, 42.2977 ], [ -71.0896, 42.2974 ], [ -71.0900, 42.2973 ], [ -71.0904, 42.2972 ], [ -71.0909, 42.2971 ], [ -71.0911, 42.2970 ], [ -71.0913, 42.2969 ], [ -71.0914, 42.2968 ], [ -71.0915, 42.2967 ], [ -71.0917, 42.2965 ], [ -71.0922, 42.2958 ], [ -71.0923, 42.2957 ], [ -71.0925, 42.2954 ], [ -71.0931, 42.2946 ], [ -71.0932, 42.2945 ], [ -71.0942, 42.2933 ], [ -71.0943, 42.2932 ], [ -71.0944, 42.2931 ], [ -71.0945, 42.2929 ], [ -71.0948, 42.2927 ], [ -71.0953, 42.2922 ], [ -71.0957, 42.2919 ], [ -71.0957, 42.2920 ], [ -71.0960, 42.2925 ], [ -71.0961, 42.2929 ], [ -71.0963, 42.2931 ], [ -71.0964, 42.2932 ] ] ] } }, + { "type": "Feature", "properties": { "Name": "South End", "density": 33.9300 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -71.0683, 42.3477 ], [ -71.0683, 42.3477 ], [ -71.0681, 42.3477 ], [ -71.0666, 42.3475 ], [ -71.0662, 42.3474 ], [ -71.0658, 42.3473 ], [ -71.0657, 42.3473 ], [ -71.0644, 42.3470 ], [ -71.0631, 42.3467 ], [ -71.0611, 42.3463 ], [ -71.0610, 42.3462 ], [ -71.0607, 42.3462 ], [ -71.0607, 42.3461 ], [ -71.0608, 42.3460 ], [ -71.0608, 42.3458 ], [ -71.0609, 42.3456 ], [ -71.0616, 42.3439 ], [ -71.0626, 42.3415 ], [ -71.0634, 42.3399 ], [ -71.0637, 42.3394 ], [ -71.0643, 42.3384 ], [ -71.0647, 42.3376 ], [ -71.0649, 42.3373 ], [ -71.0650, 42.3370 ], [ -71.0651, 42.3367 ], [ -71.0652, 42.3365 ], [ -71.0652, 42.3362 ], [ -71.0653, 42.3359 ], [ -71.0652, 42.3355 ], [ -71.0652, 42.3353 ], [ -71.0657, 42.3353 ], [ -71.0668, 42.3352 ], [ -71.0673, 42.3352 ], [ -71.0677, 42.3351 ], [ -71.0682, 42.3350 ], [ -71.0686, 42.3348 ], [ -71.0693, 42.3345 ], [ -71.0710, 42.3333 ], [ -71.0720, 42.3325 ], [ -71.0729, 42.3331 ], [ -71.0729, 42.3331 ], [ -71.0734, 42.3335 ], [ -71.0734, 42.3335 ], [ -71.0734, 42.3335 ], [ -71.0742, 42.3342 ], [ -71.0751, 42.3349 ], [ -71.0751, 42.3349 ], [ -71.0752, 42.3350 ], [ -71.0752, 42.3350 ], [ -71.0752, 42.3351 ], [ -71.0764, 42.3360 ], [ -71.0765, 42.3361 ], [ -71.0765, 42.3361 ], [ -71.0766, 42.3361 ], [ -71.0766, 42.3362 ], [ -71.0766, 42.3362 ], [ -71.0769, 42.3364 ], [ -71.0769, 42.3364 ], [ -71.0769, 42.3365 ], [ -71.0770, 42.3365 ], [ -71.0772, 42.3367 ], [ -71.0772, 42.3367 ], [ -71.0772, 42.3367 ], [ -71.0773, 42.3368 ], [ -71.0773, 42.3368 ], [ -71.0773, 42.3368 ], [ -71.0773, 42.3368 ], [ -71.0780, 42.3373 ], [ -71.0782, 42.3375 ], [ -71.0785, 42.3377 ], [ -71.0785, 42.3377 ], [ -71.0785, 42.3377 ], [ -71.0786, 42.3378 ], [ -71.0796, 42.3387 ], [ -71.0797, 42.3387 ], [ -71.0798, 42.3388 ], [ -71.0801, 42.3390 ], [ -71.0801, 42.3390 ], [ -71.0801, 42.3390 ], [ -71.0801, 42.3391 ], [ -71.0802, 42.3392 ], [ -71.0803, 42.3392 ], [ -71.0803, 42.3392 ], [ -71.0804, 42.3393 ], [ -71.0805, 42.3394 ], [ -71.0806, 42.3395 ], [ -71.0806, 42.3395 ], [ -71.0806, 42.3395 ], [ -71.0806, 42.3395 ], [ -71.0806, 42.3396 ], [ -71.0806, 42.3396 ], [ -71.0810, 42.3399 ], [ -71.0812, 42.3402 ], [ -71.0812, 42.3402 ], [ -71.0813, 42.3403 ], [ -71.0816, 42.3405 ], [ -71.0817, 42.3405 ], [ -71.0817, 42.3405 ], [ -71.0817, 42.3405 ], [ -71.0818, 42.3406 ], [ -71.0819, 42.3407 ], [ -71.0819, 42.3407 ], [ -71.0819, 42.3407 ], [ -71.0819, 42.3407 ], [ -71.0819, 42.3407 ], [ -71.0820, 42.3407 ], [ -71.0820, 42.3407 ], [ -71.0821, 42.3408 ], [ -71.0821, 42.3408 ], [ -71.0823, 42.3409 ], [ -71.0823, 42.3410 ], [ -71.0830, 42.3414 ], [ -71.0831, 42.3415 ], [ -71.0830, 42.3416 ], [ -71.0827, 42.3418 ], [ -71.0825, 42.3420 ], [ -71.0824, 42.3421 ], [ -71.0823, 42.3421 ], [ -71.0821, 42.3423 ], [ -71.0821, 42.3423 ], [ -71.0819, 42.3425 ], [ -71.0818, 42.3425 ], [ -71.0818, 42.3425 ], [ -71.0815, 42.3428 ], [ -71.0815, 42.3428 ], [ -71.0812, 42.3430 ], [ -71.0812, 42.3431 ], [ -71.0811, 42.3431 ], [ -71.0811, 42.3431 ], [ -71.0808, 42.3433 ], [ -71.0808, 42.3434 ], [ -71.0808, 42.3434 ], [ -71.0805, 42.3436 ], [ -71.0800, 42.3441 ], [ -71.0799, 42.3441 ], [ -71.0799, 42.3441 ], [ -71.0798, 42.3442 ], [ -71.0795, 42.3444 ], [ -71.0791, 42.3448 ], [ -71.0791, 42.3448 ], [ -71.0790, 42.3449 ], [ -71.0789, 42.3449 ], [ -71.0789, 42.3449 ], [ -71.0787, 42.3451 ], [ -71.0786, 42.3451 ], [ -71.0782, 42.3455 ], [ -71.0782, 42.3455 ], [ -71.0782, 42.3455 ], [ -71.0781, 42.3456 ], [ -71.0781, 42.3456 ], [ -71.0781, 42.3456 ], [ -71.0780, 42.3457 ], [ -71.0779, 42.3458 ], [ -71.0779, 42.3458 ], [ -71.0779, 42.3458 ], [ -71.0775, 42.3461 ], [ -71.0775, 42.3461 ], [ -71.0775, 42.3461 ], [ -71.0773, 42.3462 ], [ -71.0773, 42.3463 ], [ -71.0773, 42.3463 ], [ -71.0772, 42.3463 ], [ -71.0772, 42.3463 ], [ -71.0769, 42.3465 ], [ -71.0767, 42.3466 ], [ -71.0767, 42.3467 ], [ -71.0766, 42.3467 ], [ -71.0765, 42.3468 ], [ -71.0764, 42.3468 ], [ -71.0763, 42.3469 ], [ -71.0763, 42.3469 ], [ -71.0763, 42.3469 ], [ -71.0763, 42.3469 ], [ -71.0762, 42.3469 ], [ -71.0761, 42.3470 ], [ -71.0760, 42.3470 ], [ -71.0759, 42.3470 ], [ -71.0758, 42.3470 ], [ -71.0757, 42.3470 ], [ -71.0753, 42.3471 ], [ -71.0743, 42.3473 ], [ -71.0743, 42.3473 ], [ -71.0740, 42.3473 ], [ -71.0738, 42.3473 ], [ -71.0738, 42.3473 ], [ -71.0738, 42.3473 ], [ -71.0737, 42.3473 ], [ -71.0736, 42.3473 ], [ -71.0735, 42.3473 ], [ -71.0734, 42.3473 ], [ -71.0734, 42.3473 ], [ -71.0733, 42.3474 ], [ -71.0732, 42.3474 ], [ -71.0732, 42.3474 ], [ -71.0731, 42.3475 ], [ -71.0731, 42.3475 ], [ -71.0731, 42.3475 ], [ -71.0731, 42.3475 ], [ -71.0731, 42.3475 ], [ -71.0730, 42.3475 ], [ -71.0730, 42.3475 ], [ -71.0730, 42.3475 ], [ -71.0730, 42.3476 ], [ -71.0730, 42.3476 ], [ -71.0728, 42.3478 ], [ -71.0712, 42.3478 ], [ -71.0691, 42.3478 ], [ -71.0683, 42.3477 ] ] ] } }, + { "type": "Feature", "properties": { "Name": "Back Bay", "density": 20.8400 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -71.0756, 42.3569 ], [ -71.0757, 42.3568 ], [ -71.0757, 42.3567 ], [ -71.0757, 42.3567 ], [ -71.0756, 42.3567 ], [ -71.0756, 42.3567 ], [ -71.0756, 42.3567 ], [ -71.0756, 42.3567 ], [ -71.0756, 42.3568 ], [ -71.0753, 42.3560 ], [ -71.0750, 42.3553 ], [ -71.0732, 42.3558 ], [ -71.0730, 42.3552 ], [ -71.0725, 42.3554 ], [ -71.0706, 42.3518 ], [ -71.0698, 42.3501 ], [ -71.0700, 42.3500 ], [ -71.0701, 42.3499 ], [ -71.0702, 42.3498 ], [ -71.0704, 42.3496 ], [ -71.0706, 42.3495 ], [ -71.0707, 42.3495 ], [ -71.0707, 42.3494 ], [ -71.0709, 42.3493 ], [ -71.0709, 42.3492 ], [ -71.0710, 42.3492 ], [ -71.0710, 42.3492 ], [ -71.0710, 42.3492 ], [ -71.0710, 42.3492 ], [ -71.0710, 42.3492 ], [ -71.0712, 42.3491 ], [ -71.0712, 42.3491 ], [ -71.0712, 42.3490 ], [ -71.0712, 42.3490 ], [ -71.0713, 42.3490 ], [ -71.0713, 42.3489 ], [ -71.0713, 42.3489 ], [ -71.0713, 42.3489 ], [ -71.0714, 42.3489 ], [ -71.0714, 42.3489 ], [ -71.0715, 42.3488 ], [ -71.0716, 42.3487 ], [ -71.0716, 42.3487 ], [ -71.0717, 42.3486 ], [ -71.0717, 42.3486 ], [ -71.0719, 42.3485 ], [ -71.0719, 42.3484 ], [ -71.0720, 42.3484 ], [ -71.0720, 42.3484 ], [ -71.0722, 42.3483 ], [ -71.0723, 42.3482 ], [ -71.0723, 42.3481 ], [ -71.0725, 42.3480 ], [ -71.0728, 42.3478 ], [ -71.0730, 42.3476 ], [ -71.0730, 42.3476 ], [ -71.0730, 42.3475 ], [ -71.0730, 42.3475 ], [ -71.0730, 42.3475 ], [ -71.0731, 42.3475 ], [ -71.0731, 42.3475 ], [ -71.0731, 42.3475 ], [ -71.0731, 42.3475 ], [ -71.0731, 42.3475 ], [ -71.0732, 42.3474 ], [ -71.0732, 42.3474 ], [ -71.0733, 42.3474 ], [ -71.0734, 42.3473 ], [ -71.0734, 42.3473 ], [ -71.0735, 42.3473 ], [ -71.0736, 42.3473 ], [ -71.0737, 42.3473 ], [ -71.0738, 42.3473 ], [ -71.0738, 42.3473 ], [ -71.0738, 42.3473 ], [ -71.0740, 42.3473 ], [ -71.0743, 42.3473 ], [ -71.0743, 42.3473 ], [ -71.0753, 42.3471 ], [ -71.0757, 42.3470 ], [ -71.0758, 42.3470 ], [ -71.0759, 42.3470 ], [ -71.0760, 42.3470 ], [ -71.0761, 42.3470 ], [ -71.0762, 42.3469 ], [ -71.0763, 42.3469 ], [ -71.0763, 42.3469 ], [ -71.0763, 42.3469 ], [ -71.0763, 42.3469 ], [ -71.0764, 42.3468 ], [ -71.0765, 42.3468 ], [ -71.0766, 42.3467 ], [ -71.0767, 42.3467 ], [ -71.0767, 42.3466 ], [ -71.0769, 42.3465 ], [ -71.0772, 42.3463 ], [ -71.0772, 42.3463 ], [ -71.0773, 42.3463 ], [ -71.0773, 42.3463 ], [ -71.0773, 42.3462 ], [ -71.0775, 42.3461 ], [ -71.0775, 42.3461 ], [ -71.0775, 42.3461 ], [ -71.0779, 42.3458 ], [ -71.0779, 42.3458 ], [ -71.0779, 42.3458 ], [ -71.0780, 42.3457 ], [ -71.0781, 42.3456 ], [ -71.0781, 42.3456 ], [ -71.0781, 42.3456 ], [ -71.0782, 42.3455 ], [ -71.0782, 42.3455 ], [ -71.0782, 42.3455 ], [ -71.0786, 42.3451 ], [ -71.0787, 42.3451 ], [ -71.0789, 42.3449 ], [ -71.0789, 42.3449 ], [ -71.0790, 42.3449 ], [ -71.0791, 42.3448 ], [ -71.0791, 42.3448 ], [ -71.0795, 42.3444 ], [ -71.0798, 42.3442 ], [ -71.0799, 42.3441 ], [ -71.0799, 42.3441 ], [ -71.0800, 42.3441 ], [ -71.0805, 42.3436 ], [ -71.0808, 42.3434 ], [ -71.0808, 42.3434 ], [ -71.0808, 42.3433 ], [ -71.0811, 42.3431 ], [ -71.0811, 42.3431 ], [ -71.0812, 42.3431 ], [ -71.0812, 42.3430 ], [ -71.0815, 42.3428 ], [ -71.0815, 42.3428 ], [ -71.0818, 42.3425 ], [ -71.0818, 42.3425 ], [ -71.0819, 42.3425 ], [ -71.0821, 42.3423 ], [ -71.0821, 42.3423 ], [ -71.0823, 42.3421 ], [ -71.0824, 42.3421 ], [ -71.0825, 42.3420 ], [ -71.0827, 42.3418 ], [ -71.0830, 42.3416 ], [ -71.0831, 42.3415 ], [ -71.0833, 42.3416 ], [ -71.0834, 42.3417 ], [ -71.0840, 42.3421 ], [ -71.0848, 42.3427 ], [ -71.0849, 42.3427 ], [ -71.0849, 42.3427 ], [ -71.0849, 42.3427 ], [ -71.0850, 42.3428 ], [ -71.0850, 42.3428 ], [ -71.0856, 42.3432 ], [ -71.0857, 42.3433 ], [ -71.0857, 42.3433 ], [ -71.0857, 42.3433 ], [ -71.0858, 42.3434 ], [ -71.0858, 42.3434 ], [ -71.0858, 42.3434 ], [ -71.0860, 42.3437 ], [ -71.0861, 42.3439 ], [ -71.0861, 42.3440 ], [ -71.0861, 42.3440 ], [ -71.0861, 42.3441 ], [ -71.0861, 42.3441 ], [ -71.0861, 42.3441 ], [ -71.0861, 42.3441 ], [ -71.0861, 42.3441 ], [ -71.0861, 42.3441 ], [ -71.0865, 42.3449 ], [ -71.0866, 42.3450 ], [ -71.0866, 42.3450 ], [ -71.0866, 42.3451 ], [ -71.0867, 42.3453 ], [ -71.0867, 42.3453 ], [ -71.0867, 42.3453 ], [ -71.0868, 42.3453 ], [ -71.0868, 42.3453 ], [ -71.0868, 42.3454 ], [ -71.0868, 42.3454 ], [ -71.0868, 42.3454 ], [ -71.0868, 42.3454 ], [ -71.0868, 42.3454 ], [ -71.0869, 42.3456 ], [ -71.0870, 42.3458 ], [ -71.0870, 42.3458 ], [ -71.0870, 42.3459 ], [ -71.0871, 42.3461 ], [ -71.0872, 42.3463 ], [ -71.0872, 42.3463 ], [ -71.0872, 42.3463 ], [ -71.0873, 42.3464 ], [ -71.0873, 42.3464 ], [ -71.0874, 42.3466 ], [ -71.0875, 42.3469 ], [ -71.0877, 42.3472 ], [ -71.0877, 42.3472 ], [ -71.0877, 42.3472 ], [ -71.0879, 42.3477 ], [ -71.0881, 42.3480 ], [ -71.0916, 42.3479 ], [ -71.0916, 42.3502 ], [ -71.0894, 42.3508 ], [ -71.0897, 42.3513 ], [ -71.0899, 42.3517 ], [ -71.0901, 42.3521 ], [ -71.0901, 42.3521 ], [ -71.0899, 42.3521 ], [ -71.0899, 42.3521 ], [ -71.0899, 42.3521 ], [ -71.0899, 42.3521 ], [ -71.0898, 42.3521 ], [ -71.0898, 42.3521 ], [ -71.0898, 42.3521 ], [ -71.0898, 42.3521 ], [ -71.0898, 42.3521 ], [ -71.0898, 42.3521 ], [ -71.0898, 42.3521 ], [ -71.0898, 42.3521 ], [ -71.0898, 42.3521 ], [ -71.0898, 42.3521 ], [ -71.0898, 42.3521 ], [ -71.0898, 42.3521 ], [ -71.0898, 42.3521 ], [ -71.0898, 42.3521 ], [ -71.0898, 42.3521 ], [ -71.0898, 42.3521 ], [ -71.0898, 42.3521 ], [ -71.0898, 42.3521 ], [ -71.0898, 42.3521 ], [ -71.0898, 42.3521 ], [ -71.0898, 42.3521 ], [ -71.0898, 42.3521 ], [ -71.0898, 42.3521 ], [ -71.0898, 42.3521 ], [ -71.0898, 42.3521 ], [ -71.0897, 42.3521 ], [ -71.0897, 42.3521 ], [ -71.0897, 42.3521 ], [ -71.0897, 42.3521 ], [ -71.0897, 42.3521 ], [ -71.0897, 42.3521 ], [ -71.0897, 42.3521 ], [ -71.0897, 42.3521 ], [ -71.0897, 42.3521 ], [ -71.0897, 42.3521 ], [ -71.0897, 42.3521 ], [ -71.0897, 42.3521 ], [ -71.0897, 42.3521 ], [ -71.0897, 42.3521 ], [ -71.0897, 42.3521 ], [ -71.0897, 42.3521 ], [ -71.0897, 42.3521 ], [ -71.0897, 42.3521 ], [ -71.0897, 42.3521 ], [ -71.0897, 42.3521 ], [ -71.0897, 42.3521 ], [ -71.0897, 42.3521 ], [ -71.0897, 42.3521 ], [ -71.0897, 42.3521 ], [ -71.0897, 42.3521 ], [ -71.0897, 42.3521 ], [ -71.0896, 42.3521 ], [ -71.0896, 42.3521 ], [ -71.0896, 42.3521 ], [ -71.0896, 42.3521 ], [ -71.0896, 42.3521 ], [ -71.0896, 42.3521 ], [ -71.0896, 42.3521 ], [ -71.0896, 42.3522 ], [ -71.0896, 42.3522 ], [ -71.0895, 42.3522 ], [ -71.0895, 42.3522 ], [ -71.0895, 42.3522 ], [ -71.0894, 42.3522 ], [ -71.0894, 42.3522 ], [ -71.0893, 42.3522 ], [ -71.0893, 42.3522 ], [ -71.0893, 42.3522 ], [ -71.0893, 42.3522 ], [ -71.0893, 42.3522 ], [ -71.0892, 42.3522 ], [ -71.0892, 42.3522 ], [ -71.0892, 42.3522 ], [ -71.0892, 42.3522 ], [ -71.0891, 42.3522 ], [ -71.0891, 42.3522 ], [ -71.0890, 42.3522 ], [ -71.0888, 42.3523 ], [ -71.0888, 42.3523 ], [ -71.0888, 42.3523 ], [ -71.0888, 42.3523 ], [ -71.0887, 42.3523 ], [ -71.0887, 42.3523 ], [ -71.0887, 42.3523 ], [ -71.0887, 42.3523 ], [ -71.0886, 42.3523 ], [ -71.0886, 42.3523 ], [ -71.0886, 42.3523 ], [ -71.0886, 42.3523 ], [ -71.0886, 42.3523 ], [ -71.0886, 42.3523 ], [ -71.0886, 42.3523 ], [ -71.0886, 42.3523 ], [ -71.0886, 42.3523 ], [ -71.0886, 42.3523 ], [ -71.0886, 42.3523 ], [ -71.0885, 42.3523 ], [ -71.0885, 42.3523 ], [ -71.0885, 42.3523 ], [ -71.0885, 42.3523 ], [ -71.0885, 42.3523 ], [ -71.0884, 42.3523 ], [ -71.0884, 42.3523 ], [ -71.0884, 42.3523 ], [ -71.0884, 42.3523 ], [ -71.0884, 42.3523 ], [ -71.0884, 42.3523 ], [ -71.0884, 42.3523 ], [ -71.0884, 42.3524 ], [ -71.0883, 42.3524 ], [ -71.0883, 42.3524 ], [ -71.0883, 42.3524 ], [ -71.0882, 42.3524 ], [ -71.0882, 42.3524 ], [ -71.0882, 42.3524 ], [ -71.0881, 42.3524 ], [ -71.0881, 42.3524 ], [ -71.0881, 42.3524 ], [ -71.0881, 42.3524 ], [ -71.0881, 42.3524 ], [ -71.0880, 42.3524 ], [ -71.0880, 42.3524 ], [ -71.0880, 42.3524 ], [ -71.0880, 42.3525 ], [ -71.0879, 42.3525 ], [ -71.0879, 42.3525 ], [ -71.0879, 42.3525 ], [ -71.0878, 42.3525 ], [ -71.0878, 42.3525 ], [ -71.0878, 42.3525 ], [ -71.0878, 42.3525 ], [ -71.0878, 42.3525 ], [ -71.0878, 42.3525 ], [ -71.0878, 42.3525 ], [ -71.0878, 42.3525 ], [ -71.0878, 42.3525 ], [ -71.0878, 42.3525 ], [ -71.0877, 42.3525 ], [ -71.0877, 42.3525 ], [ -71.0877, 42.3525 ], [ -71.0877, 42.3525 ], [ -71.0876, 42.3525 ], [ -71.0876, 42.3525 ], [ -71.0876, 42.3526 ], [ -71.0876, 42.3526 ], [ -71.0875, 42.3526 ], [ -71.0874, 42.3526 ], [ -71.0874, 42.3526 ], [ -71.0874, 42.3526 ], [ -71.0874, 42.3526 ], [ -71.0873, 42.3526 ], [ -71.0873, 42.3526 ], [ -71.0873, 42.3526 ], [ -71.0873, 42.3526 ], [ -71.0872, 42.3526 ], [ -71.0872, 42.3526 ], [ -71.0872, 42.3526 ], [ -71.0872, 42.3527 ], [ -71.0871, 42.3527 ], [ -71.0871, 42.3527 ], [ -71.0871, 42.3527 ], [ -71.0871, 42.3527 ], [ -71.0870, 42.3527 ], [ -71.0870, 42.3527 ], [ -71.0870, 42.3527 ], [ -71.0869, 42.3527 ], [ -71.0869, 42.3527 ], [ -71.0869, 42.3527 ], [ -71.0869, 42.3527 ], [ -71.0869, 42.3527 ], [ -71.0868, 42.3528 ], [ -71.0868, 42.3528 ], [ -71.0868, 42.3528 ], [ -71.0867, 42.3528 ], [ -71.0867, 42.3528 ], [ -71.0867, 42.3528 ], [ -71.0867, 42.3528 ], [ -71.0866, 42.3528 ], [ -71.0866, 42.3528 ], [ -71.0866, 42.3528 ], [ -71.0866, 42.3528 ], [ -71.0866, 42.3528 ], [ -71.0865, 42.3528 ], [ -71.0865, 42.3528 ], [ -71.0865, 42.3528 ], [ -71.0865, 42.3529 ], [ -71.0865, 42.3529 ], [ -71.0865, 42.3529 ], [ -71.0865, 42.3529 ], [ -71.0865, 42.3529 ], [ -71.0865, 42.3529 ], [ -71.0865, 42.3529 ], [ -71.0865, 42.3529 ], [ -71.0865, 42.3529 ], [ -71.0865, 42.3529 ], [ -71.0865, 42.3529 ], [ -71.0864, 42.3529 ], [ -71.0864, 42.3529 ], [ -71.0864, 42.3529 ], [ -71.0864, 42.3529 ], [ -71.0864, 42.3529 ], [ -71.0864, 42.3529 ], [ -71.0864, 42.3529 ], [ -71.0864, 42.3529 ], [ -71.0864, 42.3529 ], [ -71.0862, 42.3529 ], [ -71.0861, 42.3529 ], [ -71.0861, 42.3530 ], [ -71.0861, 42.3530 ], [ -71.0860, 42.3530 ], [ -71.0860, 42.3530 ], [ -71.0862, 42.3530 ], [ -71.0862, 42.3530 ], [ -71.0858, 42.3532 ], [ -71.0858, 42.3531 ], [ -71.0860, 42.3530 ], [ -71.0860, 42.3530 ], [ -71.0859, 42.3531 ], [ -71.0859, 42.3530 ], [ -71.0859, 42.3530 ], [ -71.0855, 42.3531 ], [ -71.0855, 42.3531 ], [ -71.0855, 42.3531 ], [ -71.0855, 42.3531 ], [ -71.0855, 42.3531 ], [ -71.0855, 42.3531 ], [ -71.0855, 42.3531 ], [ -71.0855, 42.3531 ], [ -71.0855, 42.3531 ], [ -71.0855, 42.3531 ], [ -71.0855, 42.3531 ], [ -71.0854, 42.3531 ], [ -71.0853, 42.3532 ], [ -71.0852, 42.3532 ], [ -71.0851, 42.3532 ], [ -71.0850, 42.3532 ], [ -71.0850, 42.3532 ], [ -71.0849, 42.3532 ], [ -71.0849, 42.3532 ], [ -71.0849, 42.3532 ], [ -71.0849, 42.3532 ], [ -71.0848, 42.3533 ], [ -71.0847, 42.3533 ], [ -71.0847, 42.3533 ], [ -71.0847, 42.3534 ], [ -71.0847, 42.3534 ], [ -71.0847, 42.3534 ], [ -71.0848, 42.3534 ], [ -71.0849, 42.3534 ], [ -71.0849, 42.3534 ], [ -71.0849, 42.3534 ], [ -71.0849, 42.3534 ], [ -71.0850, 42.3534 ], [ -71.0850, 42.3534 ], [ -71.0851, 42.3533 ], [ -71.0851, 42.3533 ], [ -71.0851, 42.3533 ], [ -71.0851, 42.3533 ], [ -71.0851, 42.3534 ], [ -71.0851, 42.3534 ], [ -71.0851, 42.3534 ], [ -71.0851, 42.3534 ], [ -71.0852, 42.3534 ], [ -71.0852, 42.3534 ], [ -71.0852, 42.3534 ], [ -71.0852, 42.3534 ], [ -71.0852, 42.3534 ], [ -71.0852, 42.3534 ], [ -71.0852, 42.3534 ], [ -71.0852, 42.3534 ], [ -71.0852, 42.3534 ], [ -71.0852, 42.3534 ], [ -71.0852, 42.3534 ], [ -71.0852, 42.3534 ], [ -71.0852, 42.3534 ], [ -71.0852, 42.3534 ], [ -71.0852, 42.3534 ], [ -71.0852, 42.3534 ], [ -71.0852, 42.3534 ], [ -71.0852, 42.3534 ], [ -71.0852, 42.3534 ], [ -71.0852, 42.3534 ], [ -71.0852, 42.3534 ], [ -71.0852, 42.3534 ], [ -71.0852, 42.3534 ], [ -71.0852, 42.3535 ], [ -71.0852, 42.3535 ], [ -71.0852, 42.3535 ], [ -71.0852, 42.3535 ], [ -71.0851, 42.3535 ], [ -71.0851, 42.3535 ], [ -71.0851, 42.3535 ], [ -71.0851, 42.3535 ], [ -71.0851, 42.3535 ], [ -71.0851, 42.3535 ], [ -71.0851, 42.3535 ], [ -71.0851, 42.3536 ], [ -71.0851, 42.3536 ], [ -71.0851, 42.3536 ], [ -71.0851, 42.3536 ], [ -71.0850, 42.3536 ], [ -71.0850, 42.3536 ], [ -71.0850, 42.3536 ], [ -71.0850, 42.3536 ], [ -71.0850, 42.3536 ], [ -71.0850, 42.3536 ], [ -71.0850, 42.3536 ], [ -71.0850, 42.3536 ], [ -71.0850, 42.3536 ], [ -71.0850, 42.3536 ], [ -71.0850, 42.3536 ], [ -71.0850, 42.3536 ], [ -71.0850, 42.3537 ], [ -71.0850, 42.3537 ], [ -71.0850, 42.3537 ], [ -71.0849, 42.3537 ], [ -71.0849, 42.3537 ], [ -71.0849, 42.3537 ], [ -71.0849, 42.3538 ], [ -71.0849, 42.3538 ], [ -71.0848, 42.3538 ], [ -71.0848, 42.3539 ], [ -71.0848, 42.3539 ], [ -71.0848, 42.3539 ], [ -71.0848, 42.3539 ], [ -71.0848, 42.3539 ], [ -71.0848, 42.3539 ], [ -71.0847, 42.3539 ], [ -71.0847, 42.3539 ], [ -71.0847, 42.3539 ], [ -71.0847, 42.3540 ], [ -71.0847, 42.3540 ], [ -71.0847, 42.3540 ], [ -71.0846, 42.3540 ], [ -71.0846, 42.3540 ], [ -71.0846, 42.3540 ], [ -71.0845, 42.3540 ], [ -71.0845, 42.3540 ], [ -71.0845, 42.3541 ], [ -71.0845, 42.3541 ], [ -71.0845, 42.3541 ], [ -71.0845, 42.3541 ], [ -71.0845, 42.3541 ], [ -71.0845, 42.3541 ], [ -71.0844, 42.3541 ], [ -71.0844, 42.3541 ], [ -71.0844, 42.3541 ], [ -71.0844, 42.3541 ], [ -71.0844, 42.3541 ], [ -71.0843, 42.3541 ], [ -71.0843, 42.3541 ], [ -71.0843, 42.3541 ], [ -71.0843, 42.3541 ], [ -71.0842, 42.3541 ], [ -71.0842, 42.3542 ], [ -71.0842, 42.3542 ], [ -71.0841, 42.3542 ], [ -71.0840, 42.3542 ], [ -71.0840, 42.3542 ], [ -71.0839, 42.3542 ], [ -71.0839, 42.3542 ], [ -71.0839, 42.3542 ], [ -71.0838, 42.3543 ], [ -71.0837, 42.3543 ], [ -71.0837, 42.3543 ], [ -71.0837, 42.3543 ], [ -71.0837, 42.3543 ], [ -71.0836, 42.3543 ], [ -71.0836, 42.3543 ], [ -71.0836, 42.3543 ], [ -71.0836, 42.3543 ], [ -71.0836, 42.3543 ], [ -71.0835, 42.3543 ], [ -71.0835, 42.3543 ], [ -71.0835, 42.3543 ], [ -71.0835, 42.3543 ], [ -71.0835, 42.3543 ], [ -71.0835, 42.3543 ], [ -71.0834, 42.3544 ], [ -71.0834, 42.3544 ], [ -71.0834, 42.3544 ], [ -71.0833, 42.3544 ], [ -71.0833, 42.3544 ], [ -71.0833, 42.3544 ], [ -71.0833, 42.3544 ], [ -71.0832, 42.3544 ], [ -71.0832, 42.3544 ], [ -71.0831, 42.3544 ], [ -71.0831, 42.3544 ], [ -71.0831, 42.3544 ], [ -71.0830, 42.3545 ], [ -71.0830, 42.3545 ], [ -71.0829, 42.3545 ], [ -71.0829, 42.3545 ], [ -71.0829, 42.3545 ], [ -71.0829, 42.3545 ], [ -71.0828, 42.3545 ], [ -71.0828, 42.3545 ], [ -71.0828, 42.3545 ], [ -71.0828, 42.3545 ], [ -71.0828, 42.3545 ], [ -71.0827, 42.3545 ], [ -71.0827, 42.3546 ], [ -71.0827, 42.3546 ], [ -71.0827, 42.3546 ], [ -71.0826, 42.3546 ], [ -71.0826, 42.3546 ], [ -71.0826, 42.3546 ], [ -71.0826, 42.3546 ], [ -71.0826, 42.3546 ], [ -71.0826, 42.3546 ], [ -71.0825, 42.3546 ], [ -71.0825, 42.3546 ], [ -71.0825, 42.3546 ], [ -71.0824, 42.3546 ], [ -71.0824, 42.3546 ], [ -71.0824, 42.3546 ], [ -71.0824, 42.3546 ], [ -71.0824, 42.3546 ], [ -71.0823, 42.3547 ], [ -71.0823, 42.3547 ], [ -71.0822, 42.3547 ], [ -71.0822, 42.3547 ], [ -71.0822, 42.3547 ], [ -71.0821, 42.3547 ], [ -71.0820, 42.3547 ], [ -71.0820, 42.3547 ], [ -71.0820, 42.3547 ], [ -71.0820, 42.3547 ], [ -71.0820, 42.3547 ], [ -71.0820, 42.3548 ], [ -71.0819, 42.3548 ], [ -71.0819, 42.3548 ], [ -71.0819, 42.3548 ], [ -71.0819, 42.3548 ], [ -71.0819, 42.3548 ], [ -71.0818, 42.3548 ], [ -71.0818, 42.3548 ], [ -71.0817, 42.3548 ], [ -71.0817, 42.3548 ], [ -71.0816, 42.3548 ], [ -71.0816, 42.3548 ], [ -71.0816, 42.3549 ], [ -71.0816, 42.3549 ], [ -71.0815, 42.3549 ], [ -71.0815, 42.3549 ], [ -71.0815, 42.3549 ], [ -71.0815, 42.3549 ], [ -71.0815, 42.3549 ], [ -71.0814, 42.3549 ], [ -71.0814, 42.3549 ], [ -71.0814, 42.3549 ], [ -71.0814, 42.3549 ], [ -71.0814, 42.3549 ], [ -71.0813, 42.3549 ], [ -71.0813, 42.3549 ], [ -71.0812, 42.3549 ], [ -71.0812, 42.3550 ], [ -71.0812, 42.3550 ], [ -71.0811, 42.3550 ], [ -71.0811, 42.3550 ], [ -71.0811, 42.3550 ], [ -71.0810, 42.3550 ], [ -71.0810, 42.3550 ], [ -71.0810, 42.3550 ], [ -71.0810, 42.3550 ], [ -71.0810, 42.3550 ], [ -71.0809, 42.3550 ], [ -71.0809, 42.3550 ], [ -71.0809, 42.3550 ], [ -71.0809, 42.3551 ], [ -71.0808, 42.3551 ], [ -71.0808, 42.3551 ], [ -71.0808, 42.3551 ], [ -71.0808, 42.3551 ], [ -71.0807, 42.3551 ], [ -71.0807, 42.3551 ], [ -71.0807, 42.3551 ], [ -71.0807, 42.3551 ], [ -71.0807, 42.3551 ], [ -71.0807, 42.3551 ], [ -71.0806, 42.3551 ], [ -71.0806, 42.3551 ], [ -71.0806, 42.3551 ], [ -71.0806, 42.3551 ], [ -71.0806, 42.3551 ], [ -71.0806, 42.3551 ], [ -71.0805, 42.3551 ], [ -71.0805, 42.3551 ], [ -71.0805, 42.3551 ], [ -71.0805, 42.3551 ], [ -71.0805, 42.3551 ], [ -71.0805, 42.3551 ], [ -71.0805, 42.3551 ], [ -71.0805, 42.3551 ], [ -71.0805, 42.3551 ], [ -71.0805, 42.3551 ], [ -71.0805, 42.3552 ], [ -71.0804, 42.3552 ], [ -71.0803, 42.3552 ], [ -71.0802, 42.3552 ], [ -71.0802, 42.3552 ], [ -71.0802, 42.3552 ], [ -71.0802, 42.3552 ], [ -71.0802, 42.3552 ], [ -71.0802, 42.3552 ], [ -71.0801, 42.3552 ], [ -71.0801, 42.3552 ], [ -71.0801, 42.3553 ], [ -71.0801, 42.3553 ], [ -71.0800, 42.3553 ], [ -71.0800, 42.3553 ], [ -71.0800, 42.3553 ], [ -71.0799, 42.3553 ], [ -71.0799, 42.3553 ], [ -71.0798, 42.3553 ], [ -71.0798, 42.3553 ], [ -71.0798, 42.3554 ], [ -71.0797, 42.3554 ], [ -71.0797, 42.3554 ], [ -71.0797, 42.3554 ], [ -71.0797, 42.3554 ], [ -71.0796, 42.3554 ], [ -71.0796, 42.3554 ], [ -71.0796, 42.3554 ], [ -71.0796, 42.3554 ], [ -71.0796, 42.3554 ], [ -71.0795, 42.3554 ], [ -71.0795, 42.3554 ], [ -71.0795, 42.3554 ], [ -71.0794, 42.3554 ], [ -71.0794, 42.3554 ], [ -71.0794, 42.3555 ], [ -71.0794, 42.3555 ], [ -71.0793, 42.3555 ], [ -71.0793, 42.3555 ], [ -71.0792, 42.3555 ], [ -71.0792, 42.3555 ], [ -71.0792, 42.3555 ], [ -71.0792, 42.3555 ], [ -71.0792, 42.3555 ], [ -71.0791, 42.3555 ], [ -71.0791, 42.3555 ], [ -71.0790, 42.3555 ], [ -71.0790, 42.3555 ], [ -71.0790, 42.3556 ], [ -71.0790, 42.3556 ], [ -71.0790, 42.3556 ], [ -71.0790, 42.3556 ], [ -71.0789, 42.3556 ], [ -71.0789, 42.3556 ], [ -71.0789, 42.3556 ], [ -71.0789, 42.3556 ], [ -71.0788, 42.3556 ], [ -71.0788, 42.3556 ], [ -71.0788, 42.3556 ], [ -71.0787, 42.3556 ], [ -71.0787, 42.3556 ], [ -71.0787, 42.3556 ], [ -71.0787, 42.3556 ], [ -71.0787, 42.3556 ], [ -71.0786, 42.3557 ], [ -71.0786, 42.3557 ], [ -71.0786, 42.3557 ], [ -71.0786, 42.3557 ], [ -71.0785, 42.3557 ], [ -71.0785, 42.3557 ], [ -71.0785, 42.3557 ], [ -71.0785, 42.3557 ], [ -71.0785, 42.3557 ], [ -71.0785, 42.3557 ], [ -71.0784, 42.3557 ], [ -71.0784, 42.3557 ], [ -71.0784, 42.3557 ], [ -71.0784, 42.3557 ], [ -71.0784, 42.3557 ], [ -71.0784, 42.3557 ], [ -71.0783, 42.3557 ], [ -71.0783, 42.3557 ], [ -71.0783, 42.3557 ], [ -71.0783, 42.3558 ], [ -71.0782, 42.3558 ], [ -71.0782, 42.3558 ], [ -71.0781, 42.3558 ], [ -71.0781, 42.3558 ], [ -71.0781, 42.3558 ], [ -71.0781, 42.3558 ], [ -71.0781, 42.3558 ], [ -71.0780, 42.3559 ], [ -71.0780, 42.3559 ], [ -71.0780, 42.3559 ], [ -71.0780, 42.3559 ], [ -71.0780, 42.3559 ], [ -71.0780, 42.3559 ], [ -71.0780, 42.3559 ], [ -71.0779, 42.3559 ], [ -71.0779, 42.3559 ], [ -71.0779, 42.3559 ], [ -71.0778, 42.3560 ], [ -71.0777, 42.3560 ], [ -71.0777, 42.3560 ], [ -71.0777, 42.3560 ], [ -71.0776, 42.3560 ], [ -71.0776, 42.3560 ], [ -71.0776, 42.3560 ], [ -71.0776, 42.3560 ], [ -71.0776, 42.3560 ], [ -71.0776, 42.3560 ], [ -71.0775, 42.3560 ], [ -71.0775, 42.3560 ], [ -71.0774, 42.3560 ], [ -71.0774, 42.3560 ], [ -71.0774, 42.3560 ], [ -71.0774, 42.3560 ], [ -71.0774, 42.3560 ], [ -71.0774, 42.3560 ], [ -71.0774, 42.3560 ], [ -71.0773, 42.3560 ], [ -71.0773, 42.3560 ], [ -71.0773, 42.3560 ], [ -71.0773, 42.3560 ], [ -71.0773, 42.3560 ], [ -71.0773, 42.3560 ], [ -71.0772, 42.3560 ], [ -71.0772, 42.3560 ], [ -71.0772, 42.3560 ], [ -71.0772, 42.3560 ], [ -71.0772, 42.3561 ], [ -71.0772, 42.3561 ], [ -71.0771, 42.3561 ], [ -71.0771, 42.3561 ], [ -71.0771, 42.3561 ], [ -71.0770, 42.3561 ], [ -71.0770, 42.3561 ], [ -71.0770, 42.3561 ], [ -71.0770, 42.3561 ], [ -71.0769, 42.3561 ], [ -71.0769, 42.3561 ], [ -71.0769, 42.3561 ], [ -71.0768, 42.3562 ], [ -71.0768, 42.3562 ], [ -71.0768, 42.3562 ], [ -71.0767, 42.3562 ], [ -71.0767, 42.3562 ], [ -71.0766, 42.3562 ], [ -71.0766, 42.3562 ], [ -71.0766, 42.3562 ], [ -71.0766, 42.3562 ], [ -71.0765, 42.3562 ], [ -71.0765, 42.3562 ], [ -71.0765, 42.3562 ], [ -71.0764, 42.3563 ], [ -71.0764, 42.3563 ], [ -71.0764, 42.3563 ], [ -71.0764, 42.3563 ], [ -71.0763, 42.3563 ], [ -71.0763, 42.3563 ], [ -71.0763, 42.3563 ], [ -71.0763, 42.3563 ], [ -71.0762, 42.3563 ], [ -71.0762, 42.3563 ], [ -71.0762, 42.3563 ], [ -71.0762, 42.3563 ], [ -71.0762, 42.3563 ], [ -71.0762, 42.3563 ], [ -71.0762, 42.3563 ], [ -71.0762, 42.3563 ], [ -71.0762, 42.3564 ], [ -71.0762, 42.3564 ], [ -71.0761, 42.3564 ], [ -71.0761, 42.3564 ], [ -71.0760, 42.3564 ], [ -71.0760, 42.3564 ], [ -71.0760, 42.3564 ], [ -71.0760, 42.3564 ], [ -71.0760, 42.3564 ], [ -71.0760, 42.3564 ], [ -71.0760, 42.3564 ], [ -71.0760, 42.3564 ], [ -71.0760, 42.3565 ], [ -71.0759, 42.3565 ], [ -71.0759, 42.3565 ], [ -71.0759, 42.3565 ], [ -71.0759, 42.3565 ], [ -71.0759, 42.3565 ], [ -71.0758, 42.3565 ], [ -71.0758, 42.3566 ], [ -71.0758, 42.3566 ], [ -71.0758, 42.3566 ], [ -71.0757, 42.3566 ], [ -71.0757, 42.3566 ], [ -71.0757, 42.3566 ], [ -71.0757, 42.3566 ], [ -71.0757, 42.3567 ], [ -71.0758, 42.3567 ], [ -71.0759, 42.3566 ], [ -71.0760, 42.3566 ], [ -71.0757, 42.3569 ], [ -71.0756, 42.3569 ] ] ] } }, + { "type": "Feature", "properties": { "Name": "East Boston", "density": 6.8000 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -70.9954, 42.3939 ], [ -70.9952, 42.3936 ], [ -70.9949, 42.3934 ], [ -70.9945, 42.3933 ], [ -70.9942, 42.3932 ], [ -70.9942, 42.3932 ], [ -70.9942, 42.3932 ], [ -70.9942, 42.3932 ], [ -70.9943, 42.3932 ], [ -70.9943, 42.3932 ], [ -70.9943, 42.3931 ], [ -70.9942, 42.3931 ], [ -70.9942, 42.3931 ], [ -70.9941, 42.3930 ], [ -70.9940, 42.3930 ], [ -70.9940, 42.3931 ], [ -70.9939, 42.3931 ], [ -70.9939, 42.3930 ], [ -70.9939, 42.3930 ], [ -70.9938, 42.3930 ], [ -70.9938, 42.3930 ], [ -70.9938, 42.3929 ], [ -70.9939, 42.3929 ], [ -70.9940, 42.3930 ], [ -70.9942, 42.3930 ], [ -70.9942, 42.3930 ], [ -70.9942, 42.3930 ], [ -70.9942, 42.3930 ], [ -70.9942, 42.3930 ], [ -70.9942, 42.3930 ], [ -70.9942, 42.3930 ], [ -70.9942, 42.3930 ], [ -70.9942, 42.3930 ], [ -70.9942, 42.3930 ], [ -70.9942, 42.3930 ], [ -70.9942, 42.3930 ], [ -70.9942, 42.3930 ], [ -70.9943, 42.3929 ], [ -70.9943, 42.3929 ], [ -70.9943, 42.3929 ], [ -70.9943, 42.3929 ], [ -70.9943, 42.3929 ], [ -70.9943, 42.3929 ], [ -70.9943, 42.3929 ], [ -70.9943, 42.3929 ], [ -70.9943, 42.3929 ], [ -70.9943, 42.3929 ], [ -70.9943, 42.3929 ], [ -70.9943, 42.3929 ], [ -70.9943, 42.3929 ], [ -70.9943, 42.3929 ], [ -70.9943, 42.3929 ], [ -70.9943, 42.3929 ], [ -70.9943, 42.3929 ], [ -70.9943, 42.3929 ], [ -70.9943, 42.3929 ], [ -70.9943, 42.3929 ], [ -70.9943, 42.3929 ], [ -70.9943, 42.3929 ], [ -70.9943, 42.3929 ], [ -70.9943, 42.3929 ], [ -70.9943, 42.3929 ], [ -70.9943, 42.3929 ], [ -70.9943, 42.3929 ], [ -70.9943, 42.3929 ], [ -70.9943, 42.3929 ], [ -70.9943, 42.3929 ], [ -70.9943, 42.3929 ], [ -70.9943, 42.3929 ], [ -70.9943, 42.3929 ], [ -70.9943, 42.3929 ], [ -70.9943, 42.3928 ], [ -70.9943, 42.3928 ], [ -70.9943, 42.3928 ], [ -70.9944, 42.3928 ], [ -70.9944, 42.3928 ], [ -70.9944, 42.3928 ], [ -70.9944, 42.3928 ], [ -70.9944, 42.3928 ], [ -70.9944, 42.3928 ], [ -70.9944, 42.3928 ], [ -70.9944, 42.3928 ], [ -70.9944, 42.3928 ], [ -70.9944, 42.3928 ], [ -70.9944, 42.3928 ], [ -70.9944, 42.3927 ], [ -70.9944, 42.3927 ], [ -70.9944, 42.3927 ], [ -70.9944, 42.3927 ], [ -70.9944, 42.3927 ], [ -70.9944, 42.3927 ], [ -70.9944, 42.3927 ], [ -70.9944, 42.3927 ], [ -70.9944, 42.3927 ], [ -70.9944, 42.3927 ], [ -70.9944, 42.3927 ], [ -70.9944, 42.3927 ], [ -70.9944, 42.3927 ], [ -70.9944, 42.3927 ], [ -70.9944, 42.3927 ], [ -70.9944, 42.3927 ], [ -70.9944, 42.3927 ], [ -70.9944, 42.3927 ], [ -70.9944, 42.3927 ], [ -70.9944, 42.3927 ], [ -70.9944, 42.3927 ], [ -70.9944, 42.3927 ], [ -70.9944, 42.3927 ], [ -70.9944, 42.3927 ], [ -70.9944, 42.3927 ], [ -70.9944, 42.3927 ], [ -70.9944, 42.3927 ], [ -70.9944, 42.3927 ], [ -70.9944, 42.3927 ], [ -70.9944, 42.3927 ], [ -70.9944, 42.3927 ], [ -70.9944, 42.3927 ], [ -70.9944, 42.3927 ], [ -70.9944, 42.3927 ], [ -70.9944, 42.3927 ], [ -70.9944, 42.3927 ], [ -70.9944, 42.3927 ], [ -70.9944, 42.3927 ], [ -70.9944, 42.3927 ], [ -70.9944, 42.3927 ], [ -70.9944, 42.3927 ], [ -70.9944, 42.3927 ], [ -70.9944, 42.3927 ], [ -70.9944, 42.3927 ], [ -70.9944, 42.3927 ], [ -70.9944, 42.3927 ], [ -70.9944, 42.3927 ], [ -70.9944, 42.3927 ], [ -70.9944, 42.3927 ], [ -70.9944, 42.3927 ], [ -70.9944, 42.3927 ], [ -70.9944, 42.3927 ], [ -70.9944, 42.3927 ], [ -70.9945, 42.3927 ], [ -70.9945, 42.3927 ], [ -70.9945, 42.3927 ], [ -70.9945, 42.3927 ], [ -70.9945, 42.3927 ], [ -70.9945, 42.3927 ], [ -70.9945, 42.3927 ], [ -70.9945, 42.3926 ], [ -70.9945, 42.3926 ], [ -70.9945, 42.3926 ], [ -70.9945, 42.3926 ], [ -70.9945, 42.3926 ], [ -70.9945, 42.3926 ], [ -70.9945, 42.3926 ], [ -70.9945, 42.3926 ], [ -70.9945, 42.3926 ], [ -70.9943, 42.3925 ], [ -70.9943, 42.3925 ], [ -70.9942, 42.3925 ], [ -70.9942, 42.3925 ], [ -70.9941, 42.3925 ], [ -70.9941, 42.3925 ], [ -70.9941, 42.3925 ], [ -70.9940, 42.3925 ], [ -70.9940, 42.3925 ], [ -70.9939, 42.3925 ], [ -70.9939, 42.3925 ], [ -70.9939, 42.3925 ], [ -70.9938, 42.3925 ], [ -70.9937, 42.3925 ], [ -70.9936, 42.3925 ], [ -70.9936, 42.3925 ], [ -70.9936, 42.3925 ], [ -70.9935, 42.3925 ], [ -70.9934, 42.3924 ], [ -70.9933, 42.3924 ], [ -70.9931, 42.3924 ], [ -70.9930, 42.3924 ], [ -70.9929, 42.3924 ], [ -70.9928, 42.3924 ], [ -70.9928, 42.3924 ], [ -70.9928, 42.3924 ], [ -70.9927, 42.3924 ], [ -70.9925, 42.3924 ], [ -70.9924, 42.3924 ], [ -70.9923, 42.3923 ], [ -70.9923, 42.3923 ], [ -70.9922, 42.3924 ], [ -70.9921, 42.3924 ], [ -70.9920, 42.3924 ], [ -70.9920, 42.3924 ], [ -70.9919, 42.3924 ], [ -70.9919, 42.3924 ], [ -70.9918, 42.3924 ], [ -70.9917, 42.3925 ], [ -70.9917, 42.3925 ], [ -70.9916, 42.3925 ], [ -70.9915, 42.3925 ], [ -70.9915, 42.3925 ], [ -70.9914, 42.3926 ], [ -70.9914, 42.3926 ], [ -70.9913, 42.3925 ], [ -70.9913, 42.3926 ], [ -70.9912, 42.3926 ], [ -70.9912, 42.3926 ], [ -70.9911, 42.3926 ], [ -70.9910, 42.3926 ], [ -70.9909, 42.3926 ], [ -70.9909, 42.3926 ], [ -70.9908, 42.3927 ], [ -70.9908, 42.3927 ], [ -70.9907, 42.3927 ], [ -70.9907, 42.3927 ], [ -70.9906, 42.3927 ], [ -70.9906, 42.3927 ], [ -70.9905, 42.3927 ], [ -70.9904, 42.3928 ], [ -70.9904, 42.3928 ], [ -70.9903, 42.3928 ], [ -70.9902, 42.3928 ], [ -70.9901, 42.3928 ], [ -70.9901, 42.3928 ], [ -70.9900, 42.3928 ], [ -70.9899, 42.3928 ], [ -70.9896, 42.3928 ], [ -70.9895, 42.3928 ], [ -70.9894, 42.3928 ], [ -70.9894, 42.3928 ], [ -70.9893, 42.3928 ], [ -70.9892, 42.3928 ], [ -70.9891, 42.3928 ], [ -70.9891, 42.3928 ], [ -70.9890, 42.3927 ], [ -70.9890, 42.3927 ], [ -70.9889, 42.3927 ], [ -70.9888, 42.3927 ], [ -70.9887, 42.3927 ], [ -70.9886, 42.3927 ], [ -70.9886, 42.3926 ], [ -70.9885, 42.3926 ], [ -70.9884, 42.3926 ], [ -70.9884, 42.3926 ], [ -70.9883, 42.3926 ], [ -70.9883, 42.3926 ], [ -70.9883, 42.3926 ], [ -70.9882, 42.3925 ], [ -70.9881, 42.3925 ], [ -70.9880, 42.3925 ], [ -70.9880, 42.3925 ], [ -70.9880, 42.3925 ], [ -70.9879, 42.3925 ], [ -70.9878, 42.3924 ], [ -70.9877, 42.3924 ], [ -70.9876, 42.3923 ], [ -70.9875, 42.3923 ], [ -70.9875, 42.3923 ], [ -70.9875, 42.3923 ], [ -70.9875, 42.3923 ], [ -70.9875, 42.3923 ], [ -70.9874, 42.3922 ], [ -70.9874, 42.3922 ], [ -70.9874, 42.3922 ], [ -70.9874, 42.3922 ], [ -70.9874, 42.3922 ], [ -70.9874, 42.3922 ], [ -70.9874, 42.3922 ], [ -70.9874, 42.3922 ], [ -70.9874, 42.3922 ], [ -70.9874, 42.3922 ], [ -70.9874, 42.3922 ], [ -70.9874, 42.3922 ], [ -70.9873, 42.3922 ], [ -70.9873, 42.3922 ], [ -70.9873, 42.3921 ], [ -70.9873, 42.3921 ], [ -70.9873, 42.3921 ], [ -70.9872, 42.3921 ], [ -70.9872, 42.3920 ], [ -70.9872, 42.3920 ], [ -70.9872, 42.3920 ], [ -70.9872, 42.3920 ], [ -70.9872, 42.3919 ], [ -70.9872, 42.3919 ], [ -70.9872, 42.3919 ], [ -70.9872, 42.3919 ], [ -70.9871, 42.3918 ], [ -70.9871, 42.3918 ], [ -70.9871, 42.3917 ], [ -70.9871, 42.3917 ], [ -70.9871, 42.3917 ], [ -70.9871, 42.3917 ], [ -70.9871, 42.3917 ], [ -70.9871, 42.3916 ], [ -70.9871, 42.3916 ], [ -70.9871, 42.3916 ], [ -70.9871, 42.3915 ], [ -70.9871, 42.3915 ], [ -70.9871, 42.3914 ], [ -70.9871, 42.3914 ], [ -70.9872, 42.3913 ], [ -70.9872, 42.3913 ], [ -70.9872, 42.3912 ], [ -70.9872, 42.3912 ], [ -70.9873, 42.3911 ], [ -70.9873, 42.3911 ], [ -70.9873, 42.3910 ], [ -70.9873, 42.3910 ], [ -70.9875, 42.3907 ], [ -70.9875, 42.3906 ], [ -70.9875, 42.3906 ], [ -70.9876, 42.3905 ], [ -70.9876, 42.3905 ], [ -70.9876, 42.3904 ], [ -70.9876, 42.3904 ], [ -70.9877, 42.3903 ], [ -70.9877, 42.3903 ], [ -70.9877, 42.3902 ], [ -70.9877, 42.3902 ], [ -70.9878, 42.3902 ], [ -70.9878, 42.3901 ], [ -70.9878, 42.3901 ], [ -70.9878, 42.3900 ], [ -70.9879, 42.3900 ], [ -70.9879, 42.3900 ], [ -70.9879, 42.3899 ], [ -70.9879, 42.3899 ], [ -70.9879, 42.3898 ], [ -70.9879, 42.3898 ], [ -70.9879, 42.3897 ], [ -70.9879, 42.3897 ], [ -70.9879, 42.3896 ], [ -70.9879, 42.3894 ], [ -70.9879, 42.3894 ], [ -70.9879, 42.3893 ], [ -70.9879, 42.3892 ], [ -70.9879, 42.3891 ], [ -70.9878, 42.3890 ], [ -70.9878, 42.3890 ], [ -70.9878, 42.3889 ], [ -70.9878, 42.3889 ], [ -70.9877, 42.3888 ], [ -70.9877, 42.3888 ], [ -70.9877, 42.3887 ], [ -70.9876, 42.3886 ], [ -70.9876, 42.3885 ], [ -70.9875, 42.3885 ], [ -70.9875, 42.3884 ], [ -70.9874, 42.3884 ], [ -70.9874, 42.3883 ], [ -70.9873, 42.3883 ], [ -70.9873, 42.3882 ], [ -70.9872, 42.3881 ], [ -70.9871, 42.3881 ], [ -70.9870, 42.3880 ], [ -70.9870, 42.3880 ], [ -70.9869, 42.3879 ], [ -70.9868, 42.3878 ], [ -70.9868, 42.3878 ], [ -70.9868, 42.3877 ], [ -70.9868, 42.3877 ], [ -70.9867, 42.3876 ], [ -70.9867, 42.3876 ], [ -70.9867, 42.3875 ], [ -70.9867, 42.3875 ], [ -70.9867, 42.3874 ], [ -70.9866, 42.3873 ], [ -70.9866, 42.3873 ], [ -70.9866, 42.3872 ], [ -70.9866, 42.3872 ], [ -70.9866, 42.3871 ], [ -70.9867, 42.3871 ], [ -70.9867, 42.3870 ], [ -70.9869, 42.3871 ], [ -70.9871, 42.3871 ], [ -70.9873, 42.3872 ], [ -70.9874, 42.3872 ], [ -70.9876, 42.3872 ], [ -70.9876, 42.3872 ], [ -70.9876, 42.3872 ], [ -70.9876, 42.3872 ], [ -70.9876, 42.3872 ], [ -70.9877, 42.3872 ], [ -70.9877, 42.3872 ], [ -70.9877, 42.3872 ], [ -70.9877, 42.3872 ], [ -70.9877, 42.3872 ], [ -70.9877, 42.3872 ], [ -70.9877, 42.3872 ], [ -70.9877, 42.3872 ], [ -70.9877, 42.3872 ], [ -70.9877, 42.3872 ], [ -70.9877, 42.3872 ], [ -70.9878, 42.3872 ], [ -70.9878, 42.3872 ], [ -70.9878, 42.3872 ], [ -70.9878, 42.3872 ], [ -70.9878, 42.3872 ], [ -70.9878, 42.3872 ], [ -70.9878, 42.3872 ], [ -70.9878, 42.3872 ], [ -70.9878, 42.3872 ], [ -70.9878, 42.3872 ], [ -70.9878, 42.3872 ], [ -70.9878, 42.3872 ], [ -70.9878, 42.3872 ], [ -70.9878, 42.3872 ], [ -70.9878, 42.3872 ], [ -70.9879, 42.3872 ], [ -70.9879, 42.3872 ], [ -70.9879, 42.3872 ], [ -70.9879, 42.3872 ], [ -70.9879, 42.3872 ], [ -70.9879, 42.3873 ], [ -70.9879, 42.3873 ], [ -70.9879, 42.3873 ], [ -70.9879, 42.3873 ], [ -70.9879, 42.3873 ], [ -70.9879, 42.3873 ], [ -70.9879, 42.3873 ], [ -70.9879, 42.3873 ], [ -70.9879, 42.3873 ], [ -70.9879, 42.3873 ], [ -70.9880, 42.3873 ], [ -70.9880, 42.3873 ], [ -70.9880, 42.3873 ], [ -70.9880, 42.3873 ], [ -70.9880, 42.3873 ], [ -70.9880, 42.3873 ], [ -70.9880, 42.3873 ], [ -70.9880, 42.3873 ], [ -70.9881, 42.3873 ], [ -70.9881, 42.3873 ], [ -70.9881, 42.3873 ], [ -70.9881, 42.3874 ], [ -70.9881, 42.3874 ], [ -70.9881, 42.3874 ], [ -70.9881, 42.3874 ], [ -70.9881, 42.3874 ], [ -70.9882, 42.3874 ], [ -70.9882, 42.3874 ], [ -70.9882, 42.3874 ], [ -70.9882, 42.3874 ], [ -70.9882, 42.3874 ], [ -70.9882, 42.3874 ], [ -70.9883, 42.3874 ], [ -70.9883, 42.3874 ], [ -70.9883, 42.3874 ], [ -70.9884, 42.3874 ], [ -70.9884, 42.3874 ], [ -70.9884, 42.3874 ], [ -70.9884, 42.3874 ], [ -70.9884, 42.3874 ], [ -70.9885, 42.3874 ], [ -70.9885, 42.3874 ], [ -70.9885, 42.3875 ], [ -70.9885, 42.3875 ], [ -70.9885, 42.3875 ], [ -70.9885, 42.3875 ], [ -70.9885, 42.3875 ], [ -70.9885, 42.3875 ], [ -70.9885, 42.3875 ], [ -70.9886, 42.3875 ], [ -70.9886, 42.3875 ], [ -70.9886, 42.3875 ], [ -70.9886, 42.3875 ], [ -70.9886, 42.3875 ], [ -70.9886, 42.3875 ], [ -70.9886, 42.3875 ], [ -70.9886, 42.3875 ], [ -70.9886, 42.3875 ], [ -70.9886, 42.3875 ], [ -70.9887, 42.3875 ], [ -70.9887, 42.3875 ], [ -70.9887, 42.3875 ], [ -70.9887, 42.3875 ], [ -70.9887, 42.3875 ], [ -70.9887, 42.3875 ], [ -70.9887, 42.3875 ], [ -70.9887, 42.3875 ], [ -70.9887, 42.3875 ], [ -70.9887, 42.3875 ], [ -70.9887, 42.3875 ], [ -70.9887, 42.3875 ], [ -70.9887, 42.3875 ], [ -70.9887, 42.3875 ], [ -70.9887, 42.3875 ], [ -70.9887, 42.3875 ], [ -70.9888, 42.3875 ], [ -70.9888, 42.3875 ], [ -70.9888, 42.3875 ], [ -70.9888, 42.3875 ], [ -70.9888, 42.3875 ], [ -70.9888, 42.3875 ], [ -70.9888, 42.3875 ], [ -70.9888, 42.3875 ], [ -70.9888, 42.3875 ], [ -70.9888, 42.3875 ], [ -70.9888, 42.3875 ], [ -70.9888, 42.3875 ], [ -70.9888, 42.3875 ], [ -70.9888, 42.3875 ], [ -70.9888, 42.3875 ], [ -70.9889, 42.3875 ], [ -70.9889, 42.3875 ], [ -70.9889, 42.3875 ], [ -70.9889, 42.3875 ], [ -70.9889, 42.3875 ], [ -70.9889, 42.3875 ], [ -70.9889, 42.3875 ], [ -70.9889, 42.3875 ], [ -70.9889, 42.3875 ], [ -70.9889, 42.3875 ], [ -70.9889, 42.3875 ], [ -70.9889, 42.3875 ], [ -70.9889, 42.3875 ], [ -70.9889, 42.3875 ], [ -70.9889, 42.3875 ], [ -70.9889, 42.3875 ], [ -70.9889, 42.3875 ], [ -70.9889, 42.3875 ], [ -70.9889, 42.3875 ], [ -70.9889, 42.3875 ], [ -70.9889, 42.3875 ], [ -70.9889, 42.3875 ], [ -70.9889, 42.3875 ], [ -70.9889, 42.3875 ], [ -70.9889, 42.3875 ], [ -70.9889, 42.3875 ], [ -70.9889, 42.3875 ], [ -70.9889, 42.3875 ], [ -70.9889, 42.3875 ], [ -70.9889, 42.3875 ], [ -70.9889, 42.3875 ], [ -70.9889, 42.3875 ], [ -70.9890, 42.3875 ], [ -70.9890, 42.3875 ], [ -70.9890, 42.3875 ], [ -70.9890, 42.3875 ], [ -70.9890, 42.3875 ], [ -70.9890, 42.3875 ], [ -70.9890, 42.3875 ], [ -70.9890, 42.3875 ], [ -70.9890, 42.3875 ], [ -70.9890, 42.3875 ], [ -70.9890, 42.3875 ], [ -70.9891, 42.3875 ], [ -70.9892, 42.3875 ], [ -70.9892, 42.3875 ], [ -70.9892, 42.3875 ], [ -70.9892, 42.3875 ], [ -70.9892, 42.3875 ], [ -70.9892, 42.3875 ], [ -70.9892, 42.3875 ], [ -70.9892, 42.3875 ], [ -70.9892, 42.3875 ], [ -70.9892, 42.3875 ], [ -70.9892, 42.3875 ], [ -70.9892, 42.3875 ], [ -70.9892, 42.3875 ], [ -70.9892, 42.3875 ], [ -70.9892, 42.3875 ], [ -70.9892, 42.3875 ], [ -70.9892, 42.3875 ], [ -70.9892, 42.3875 ], [ -70.9892, 42.3875 ], [ -70.9892, 42.3875 ], [ -70.9893, 42.3875 ], [ -70.9893, 42.3875 ], [ -70.9893, 42.3875 ], [ -70.9893, 42.3875 ], [ -70.9893, 42.3875 ], [ -70.9893, 42.3875 ], [ -70.9893, 42.3875 ], [ -70.9893, 42.3875 ], [ -70.9893, 42.3875 ], [ -70.9893, 42.3875 ], [ -70.9893, 42.3875 ], [ -70.9893, 42.3875 ], [ -70.9893, 42.3875 ], [ -70.9893, 42.3875 ], [ -70.9893, 42.3875 ], [ -70.9893, 42.3875 ], [ -70.9893, 42.3875 ], [ -70.9893, 42.3875 ], [ -70.9893, 42.3875 ], [ -70.9893, 42.3875 ], [ -70.9893, 42.3875 ], [ -70.9893, 42.3875 ], [ -70.9893, 42.3875 ], [ -70.9893, 42.3875 ], [ -70.9893, 42.3875 ], [ -70.9893, 42.3875 ], [ -70.9893, 42.3875 ], [ -70.9893, 42.3875 ], [ -70.9893, 42.3875 ], [ -70.9893, 42.3875 ], [ -70.9894, 42.3875 ], [ -70.9894, 42.3875 ], [ -70.9894, 42.3875 ], [ -70.9894, 42.3875 ], [ -70.9894, 42.3875 ], [ -70.9894, 42.3875 ], [ -70.9894, 42.3875 ], [ -70.9894, 42.3875 ], [ -70.9894, 42.3875 ], [ -70.9895, 42.3875 ], [ -70.9895, 42.3875 ], [ -70.9895, 42.3875 ], [ -70.9895, 42.3875 ], [ -70.9895, 42.3875 ], [ -70.9895, 42.3875 ], [ -70.9895, 42.3875 ], [ -70.9895, 42.3875 ], [ -70.9896, 42.3875 ], [ -70.9896, 42.3875 ], [ -70.9896, 42.3875 ], [ -70.9896, 42.3875 ], [ -70.9896, 42.3875 ], [ -70.9896, 42.3875 ], [ -70.9896, 42.3875 ], [ -70.9896, 42.3875 ], [ -70.9896, 42.3875 ], [ -70.9896, 42.3875 ], [ -70.9896, 42.3875 ], [ -70.9897, 42.3875 ], [ -70.9897, 42.3875 ], [ -70.9897, 42.3875 ], [ -70.9897, 42.3875 ], [ -70.9897, 42.3875 ], [ -70.9897, 42.3875 ], [ -70.9897, 42.3875 ], [ -70.9897, 42.3875 ], [ -70.9897, 42.3875 ], [ -70.9898, 42.3875 ], [ -70.9898, 42.3875 ], [ -70.9898, 42.3875 ], [ -70.9898, 42.3875 ], [ -70.9898, 42.3875 ], [ -70.9898, 42.3875 ], [ -70.9898, 42.3875 ], [ -70.9898, 42.3875 ], [ -70.9899, 42.3875 ], [ -70.9899, 42.3875 ], [ -70.9899, 42.3875 ], [ -70.9899, 42.3875 ], [ -70.9899, 42.3875 ], [ -70.9899, 42.3875 ], [ -70.9899, 42.3875 ], [ -70.9899, 42.3875 ], [ -70.9899, 42.3875 ], [ -70.9900, 42.3875 ], [ -70.9900, 42.3875 ], [ -70.9900, 42.3875 ], [ -70.9900, 42.3875 ], [ -70.9900, 42.3875 ], [ -70.9900, 42.3875 ], [ -70.9900, 42.3875 ], [ -70.9900, 42.3875 ], [ -70.9900, 42.3875 ], [ -70.9900, 42.3875 ], [ -70.9900, 42.3875 ], [ -70.9900, 42.3875 ], [ -70.9900, 42.3875 ], [ -70.9901, 42.3875 ], [ -70.9901, 42.3875 ], [ -70.9901, 42.3875 ], [ -70.9901, 42.3875 ], [ -70.9901, 42.3875 ], [ -70.9901, 42.3875 ], [ -70.9901, 42.3874 ], [ -70.9901, 42.3874 ], [ -70.9901, 42.3874 ], [ -70.9901, 42.3874 ], [ -70.9902, 42.3874 ], [ -70.9902, 42.3874 ], [ -70.9902, 42.3874 ], [ -70.9902, 42.3874 ], [ -70.9902, 42.3874 ], [ -70.9902, 42.3874 ], [ -70.9902, 42.3874 ], [ -70.9902, 42.3874 ], [ -70.9902, 42.3874 ], [ -70.9902, 42.3874 ], [ -70.9902, 42.3874 ], [ -70.9902, 42.3874 ], [ -70.9902, 42.3874 ], [ -70.9902, 42.3874 ], [ -70.9902, 42.3874 ], [ -70.9902, 42.3874 ], [ -70.9902, 42.3874 ], [ -70.9902, 42.3874 ], [ -70.9902, 42.3874 ], [ -70.9902, 42.3874 ], [ -70.9902, 42.3874 ], [ -70.9902, 42.3874 ], [ -70.9902, 42.3874 ], [ -70.9902, 42.3874 ], [ -70.9902, 42.3874 ], [ -70.9902, 42.3874 ], [ -70.9902, 42.3874 ], [ -70.9902, 42.3874 ], [ -70.9902, 42.3874 ], [ -70.9903, 42.3874 ], [ -70.9903, 42.3874 ], [ -70.9903, 42.3874 ], [ -70.9903, 42.3874 ], [ -70.9903, 42.3874 ], [ -70.9903, 42.3874 ], [ -70.9903, 42.3874 ], [ -70.9903, 42.3874 ], [ -70.9903, 42.3874 ], [ -70.9903, 42.3874 ], [ -70.9903, 42.3874 ], [ -70.9903, 42.3874 ], [ -70.9903, 42.3874 ], [ -70.9903, 42.3874 ], [ -70.9903, 42.3874 ], [ -70.9903, 42.3874 ], [ -70.9904, 42.3874 ], [ -70.9904, 42.3874 ], [ -70.9904, 42.3874 ], [ -70.9904, 42.3873 ], [ -70.9904, 42.3873 ], [ -70.9904, 42.3873 ], [ -70.9904, 42.3873 ], [ -70.9904, 42.3873 ], [ -70.9904, 42.3873 ], [ -70.9904, 42.3873 ], [ -70.9904, 42.3873 ], [ -70.9905, 42.3873 ], [ -70.9905, 42.3873 ], [ -70.9905, 42.3873 ], [ -70.9905, 42.3873 ], [ -70.9905, 42.3873 ], [ -70.9905, 42.3873 ], [ -70.9905, 42.3873 ], [ -70.9905, 42.3873 ], [ -70.9905, 42.3873 ], [ -70.9905, 42.3873 ], [ -70.9905, 42.3873 ], [ -70.9905, 42.3873 ], [ -70.9906, 42.3873 ], [ -70.9906, 42.3873 ], [ -70.9906, 42.3873 ], [ -70.9906, 42.3873 ], [ -70.9906, 42.3872 ], [ -70.9906, 42.3872 ], [ -70.9906, 42.3872 ], [ -70.9906, 42.3872 ], [ -70.9906, 42.3872 ], [ -70.9906, 42.3872 ], [ -70.9906, 42.3872 ], [ -70.9906, 42.3872 ], [ -70.9906, 42.3872 ], [ -70.9906, 42.3872 ], [ -70.9906, 42.3872 ], [ -70.9906, 42.3872 ], [ -70.9907, 42.3872 ], [ -70.9907, 42.3872 ], [ -70.9907, 42.3872 ], [ -70.9907, 42.3872 ], [ -70.9907, 42.3872 ], [ -70.9907, 42.3872 ], [ -70.9907, 42.3872 ], [ -70.9907, 42.3872 ], [ -70.9907, 42.3872 ], [ -70.9907, 42.3872 ], [ -70.9907, 42.3872 ], [ -70.9907, 42.3872 ], [ -70.9907, 42.3872 ], [ -70.9907, 42.3872 ], [ -70.9907, 42.3872 ], [ -70.9908, 42.3872 ], [ -70.9908, 42.3871 ], [ -70.9908, 42.3871 ], [ -70.9908, 42.3871 ], [ -70.9908, 42.3871 ], [ -70.9908, 42.3871 ], [ -70.9909, 42.3871 ], [ -70.9909, 42.3871 ], [ -70.9909, 42.3871 ], [ -70.9909, 42.3871 ], [ -70.9909, 42.3871 ], [ -70.9909, 42.3870 ], [ -70.9909, 42.3870 ], [ -70.9910, 42.3870 ], [ -70.9910, 42.3870 ], [ -70.9910, 42.3870 ], [ -70.9910, 42.3870 ], [ -70.9910, 42.3870 ], [ -70.9910, 42.3870 ], [ -70.9910, 42.3870 ], [ -70.9910, 42.3870 ], [ -70.9910, 42.3870 ], [ -70.9910, 42.3870 ], [ -70.9910, 42.3870 ], [ -70.9910, 42.3870 ], [ -70.9910, 42.3870 ], [ -70.9910, 42.3870 ], [ -70.9910, 42.3870 ], [ -70.9911, 42.3870 ], [ -70.9911, 42.3870 ], [ -70.9912, 42.3870 ], [ -70.9912, 42.3869 ], [ -70.9912, 42.3869 ], [ -70.9912, 42.3869 ], [ -70.9913, 42.3868 ], [ -70.9913, 42.3868 ], [ -70.9913, 42.3868 ], [ -70.9914, 42.3867 ], [ -70.9914, 42.3867 ], [ -70.9915, 42.3865 ], [ -70.9916, 42.3864 ], [ -70.9916, 42.3864 ], [ -70.9917, 42.3864 ], [ -70.9917, 42.3863 ], [ -70.9917, 42.3863 ], [ -70.9918, 42.3864 ], [ -70.9918, 42.3864 ], [ -70.9919, 42.3864 ], [ -70.9919, 42.3864 ], [ -70.9919, 42.3864 ], [ -70.9920, 42.3864 ], [ -70.9920, 42.3863 ], [ -70.9921, 42.3863 ], [ -70.9921, 42.3863 ], [ -70.9922, 42.3863 ], [ -70.9923, 42.3864 ], [ -70.9923, 42.3864 ], [ -70.9923, 42.3864 ], [ -70.9924, 42.3864 ], [ -70.9925, 42.3863 ], [ -70.9925, 42.3863 ], [ -70.9925, 42.3863 ], [ -70.9926, 42.3864 ], [ -70.9926, 42.3864 ], [ -70.9927, 42.3864 ], [ -70.9927, 42.3864 ], [ -70.9928, 42.3864 ], [ -70.9928, 42.3864 ], [ -70.9929, 42.3864 ], [ -70.9929, 42.3864 ], [ -70.9930, 42.3864 ], [ -70.9930, 42.3864 ], [ -70.9931, 42.3864 ], [ -70.9931, 42.3864 ], [ -70.9931, 42.3864 ], [ -70.9932, 42.3864 ], [ -70.9933, 42.3864 ], [ -70.9934, 42.3864 ], [ -70.9935, 42.3863 ], [ -70.9935, 42.3863 ], [ -70.9935, 42.3863 ], [ -70.9936, 42.3863 ], [ -70.9936, 42.3863 ], [ -70.9936, 42.3863 ], [ -70.9937, 42.3862 ], [ -70.9937, 42.3862 ], [ -70.9938, 42.3862 ], [ -70.9938, 42.3862 ], [ -70.9939, 42.3862 ], [ -70.9939, 42.3862 ], [ -70.9939, 42.3862 ], [ -70.9939, 42.3861 ], [ -70.9940, 42.3861 ], [ -70.9940, 42.3861 ], [ -70.9940, 42.3861 ], [ -70.9940, 42.3860 ], [ -70.9941, 42.3860 ], [ -70.9941, 42.3860 ], [ -70.9942, 42.3860 ], [ -70.9943, 42.3860 ], [ -70.9943, 42.3860 ], [ -70.9944, 42.3859 ], [ -70.9945, 42.3859 ], [ -70.9945, 42.3859 ], [ -70.9946, 42.3859 ], [ -70.9946, 42.3858 ], [ -70.9946, 42.3858 ], [ -70.9946, 42.3857 ], [ -70.9946, 42.3857 ], [ -70.9946, 42.3857 ], [ -70.9946, 42.3856 ], [ -70.9946, 42.3855 ], [ -70.9947, 42.3855 ], [ -70.9948, 42.3854 ], [ -70.9948, 42.3854 ], [ -70.9950, 42.3853 ], [ -70.9950, 42.3853 ], [ -70.9951, 42.3852 ], [ -70.9951, 42.3852 ], [ -70.9951, 42.3851 ], [ -70.9951, 42.3851 ], [ -70.9951, 42.3850 ], [ -70.9951, 42.3850 ], [ -70.9951, 42.3850 ], [ -70.9951, 42.3849 ], [ -70.9951, 42.3848 ], [ -70.9951, 42.3847 ], [ -70.9951, 42.3846 ], [ -70.9951, 42.3846 ], [ -70.9951, 42.3845 ], [ -70.9951, 42.3845 ], [ -70.9951, 42.3845 ], [ -70.9951, 42.3845 ], [ -70.9951, 42.3844 ], [ -70.9951, 42.3844 ], [ -70.9951, 42.3843 ], [ -70.9951, 42.3843 ], [ -70.9951, 42.3843 ], [ -70.9951, 42.3843 ], [ -70.9951, 42.3843 ], [ -70.9951, 42.3842 ], [ -70.9951, 42.3842 ], [ -70.9951, 42.3842 ], [ -70.9951, 42.3842 ], [ -70.9951, 42.3842 ], [ -70.9951, 42.3842 ], [ -70.9950, 42.3842 ], [ -70.9950, 42.3842 ], [ -70.9950, 42.3842 ], [ -70.9950, 42.3841 ], [ -70.9950, 42.3841 ], [ -70.9949, 42.3841 ], [ -70.9949, 42.3841 ], [ -70.9949, 42.3841 ], [ -70.9949, 42.3841 ], [ -70.9949, 42.3841 ], [ -70.9949, 42.3841 ], [ -70.9949, 42.3841 ], [ -70.9948, 42.3841 ], [ -70.9948, 42.3841 ], [ -70.9948, 42.3841 ], [ -70.9948, 42.3841 ], [ -70.9948, 42.3841 ], [ -70.9948, 42.3841 ], [ -70.9948, 42.3841 ], [ -70.9948, 42.3841 ], [ -70.9948, 42.3841 ], [ -70.9947, 42.3841 ], [ -70.9947, 42.3841 ], [ -70.9947, 42.3841 ], [ -70.9947, 42.3841 ], [ -70.9947, 42.3841 ], [ -70.9947, 42.3841 ], [ -70.9947, 42.3841 ], [ -70.9947, 42.3841 ], [ -70.9947, 42.3841 ], [ -70.9947, 42.3841 ], [ -70.9947, 42.3841 ], [ -70.9947, 42.3841 ], [ -70.9947, 42.3841 ], [ -70.9947, 42.3841 ], [ -70.9947, 42.3841 ], [ -70.9947, 42.3841 ], [ -70.9947, 42.3841 ], [ -70.9946, 42.3841 ], [ -70.9946, 42.3841 ], [ -70.9946, 42.3841 ], [ -70.9946, 42.3841 ], [ -70.9946, 42.3841 ], [ -70.9946, 42.3841 ], [ -70.9946, 42.3841 ], [ -70.9946, 42.3841 ], [ -70.9946, 42.3841 ], [ -70.9946, 42.3840 ], [ -70.9946, 42.3840 ], [ -70.9946, 42.3840 ], [ -70.9946, 42.3840 ], [ -70.9946, 42.3840 ], [ -70.9946, 42.3840 ], [ -70.9947, 42.3840 ], [ -70.9947, 42.3840 ], [ -70.9947, 42.3840 ], [ -70.9947, 42.3840 ], [ -70.9947, 42.3840 ], [ -70.9947, 42.3840 ], [ -70.9947, 42.3840 ], [ -70.9947, 42.3840 ], [ -70.9947, 42.3840 ], [ -70.9948, 42.3840 ], [ -70.9948, 42.3840 ], [ -70.9948, 42.3840 ], [ -70.9948, 42.3840 ], [ -70.9948, 42.3840 ], [ -70.9948, 42.3840 ], [ -70.9948, 42.3840 ], [ -70.9948, 42.3840 ], [ -70.9948, 42.3840 ], [ -70.9948, 42.3840 ], [ -70.9949, 42.3840 ], [ -70.9949, 42.3840 ], [ -70.9949, 42.3840 ], [ -70.9949, 42.3840 ], [ -70.9949, 42.3840 ], [ -70.9949, 42.3840 ], [ -70.9949, 42.3840 ], [ -70.9950, 42.3840 ], [ -70.9950, 42.3839 ], [ -70.9950, 42.3839 ], [ -70.9949, 42.3839 ], [ -70.9949, 42.3839 ], [ -70.9949, 42.3839 ], [ -70.9949, 42.3839 ], [ -70.9949, 42.3839 ], [ -70.9949, 42.3839 ], [ -70.9949, 42.3839 ], [ -70.9948, 42.3839 ], [ -70.9948, 42.3839 ], [ -70.9948, 42.3839 ], [ -70.9948, 42.3838 ], [ -70.9948, 42.3838 ], [ -70.9948, 42.3838 ], [ -70.9948, 42.3838 ], [ -70.9948, 42.3838 ], [ -70.9948, 42.3838 ], [ -70.9948, 42.3838 ], [ -70.9948, 42.3838 ], [ -70.9948, 42.3838 ], [ -70.9948, 42.3838 ], [ -70.9948, 42.3838 ], [ -70.9948, 42.3838 ], [ -70.9948, 42.3838 ], [ -70.9948, 42.3838 ], [ -70.9948, 42.3838 ], [ -70.9948, 42.3838 ], [ -70.9948, 42.3838 ], [ -70.9948, 42.3838 ], [ -70.9948, 42.3838 ], [ -70.9948, 42.3838 ], [ -70.9947, 42.3838 ], [ -70.9947, 42.3838 ], [ -70.9947, 42.3838 ], [ -70.9947, 42.3838 ], [ -70.9947, 42.3838 ], [ -70.9947, 42.3838 ], [ -70.9947, 42.3838 ], [ -70.9947, 42.3838 ], [ -70.9946, 42.3837 ], [ -70.9946, 42.3837 ], [ -70.9946, 42.3837 ], [ -70.9946, 42.3837 ], [ -70.9946, 42.3836 ], [ -70.9946, 42.3836 ], [ -70.9946, 42.3836 ], [ -70.9946, 42.3836 ], [ -70.9946, 42.3836 ], [ -70.9946, 42.3836 ], [ -70.9946, 42.3836 ], [ -70.9946, 42.3836 ], [ -70.9946, 42.3836 ], [ -70.9946, 42.3836 ], [ -70.9946, 42.3836 ], [ -70.9946, 42.3836 ], [ -70.9946, 42.3836 ], [ -70.9947, 42.3836 ], [ -70.9947, 42.3836 ], [ -70.9947, 42.3836 ], [ -70.9947, 42.3836 ], [ -70.9947, 42.3836 ], [ -70.9947, 42.3836 ], [ -70.9947, 42.3836 ], [ -70.9947, 42.3836 ], [ -70.9947, 42.3836 ], [ -70.9947, 42.3836 ], [ -70.9947, 42.3836 ], [ -70.9947, 42.3836 ], [ -70.9947, 42.3836 ], [ -70.9947, 42.3836 ], [ -70.9947, 42.3836 ], [ -70.9947, 42.3836 ], [ -70.9947, 42.3836 ], [ -70.9947, 42.3836 ], [ -70.9947, 42.3836 ], [ -70.9947, 42.3836 ], [ -70.9947, 42.3836 ], [ -70.9947, 42.3836 ], [ -70.9947, 42.3836 ], [ -70.9947, 42.3835 ], [ -70.9947, 42.3835 ], [ -70.9947, 42.3835 ], [ -70.9947, 42.3835 ], [ -70.9947, 42.3835 ], [ -70.9947, 42.3835 ], [ -70.9948, 42.3835 ], [ -70.9948, 42.3835 ], [ -70.9948, 42.3835 ], [ -70.9948, 42.3835 ], [ -70.9948, 42.3835 ], [ -70.9948, 42.3835 ], [ -70.9948, 42.3835 ], [ -70.9948, 42.3835 ], [ -70.9948, 42.3835 ], [ -70.9949, 42.3835 ], [ -70.9949, 42.3835 ], [ -70.9949, 42.3835 ], [ -70.9949, 42.3835 ], [ -70.9949, 42.3835 ], [ -70.9949, 42.3835 ], [ -70.9950, 42.3836 ], [ -70.9950, 42.3836 ], [ -70.9950, 42.3836 ], [ -70.9951, 42.3836 ], [ -70.9951, 42.3836 ], [ -70.9951, 42.3836 ], [ -70.9951, 42.3836 ], [ -70.9951, 42.3836 ], [ -70.9951, 42.3836 ], [ -70.9951, 42.3836 ], [ -70.9951, 42.3837 ], [ -70.9951, 42.3837 ], [ -70.9951, 42.3837 ], [ -70.9951, 42.3837 ], [ -70.9951, 42.3837 ], [ -70.9952, 42.3837 ], [ -70.9952, 42.3837 ], [ -70.9953, 42.3837 ], [ -70.9953, 42.3837 ], [ -70.9954, 42.3837 ], [ -70.9954, 42.3837 ], [ -70.9955, 42.3837 ], [ -70.9955, 42.3837 ], [ -70.9955, 42.3837 ], [ -70.9955, 42.3837 ], [ -70.9955, 42.3837 ], [ -70.9955, 42.3837 ], [ -70.9956, 42.3837 ], [ -70.9956, 42.3836 ], [ -70.9956, 42.3836 ], [ -70.9956, 42.3836 ], [ -70.9956, 42.3836 ], [ -70.9957, 42.3836 ], [ -70.9957, 42.3836 ], [ -70.9957, 42.3836 ], [ -70.9957, 42.3836 ], [ -70.9957, 42.3836 ], [ -70.9956, 42.3836 ], [ -70.9956, 42.3836 ], [ -70.9956, 42.3836 ], [ -70.9956, 42.3836 ], [ -70.9956, 42.3836 ], [ -70.9956, 42.3836 ], [ -70.9955, 42.3836 ], [ -70.9955, 42.3836 ], [ -70.9955, 42.3836 ], [ -70.9955, 42.3836 ], [ -70.9955, 42.3836 ], [ -70.9955, 42.3836 ], [ -70.9955, 42.3836 ], [ -70.9955, 42.3836 ], [ -70.9955, 42.3836 ], [ -70.9955, 42.3836 ], [ -70.9955, 42.3836 ], [ -70.9955, 42.3836 ], [ -70.9955, 42.3835 ], [ -70.9955, 42.3835 ], [ -70.9954, 42.3835 ], [ -70.9954, 42.3835 ], [ -70.9954, 42.3835 ], [ -70.9954, 42.3835 ], [ -70.9954, 42.3835 ], [ -70.9954, 42.3835 ], [ -70.9954, 42.3835 ], [ -70.9954, 42.3835 ], [ -70.9954, 42.3835 ], [ -70.9954, 42.3835 ], [ -70.9954, 42.3835 ], [ -70.9953, 42.3835 ], [ -70.9953, 42.3835 ], [ -70.9953, 42.3835 ], [ -70.9953, 42.3834 ], [ -70.9953, 42.3834 ], [ -70.9953, 42.3834 ], [ -70.9953, 42.3834 ], [ -70.9953, 42.3834 ], [ -70.9953, 42.3834 ], [ -70.9953, 42.3834 ], [ -70.9952, 42.3834 ], [ -70.9952, 42.3834 ], [ -70.9952, 42.3834 ], [ -70.9952, 42.3834 ], [ -70.9952, 42.3833 ], [ -70.9952, 42.3833 ], [ -70.9952, 42.3833 ], [ -70.9952, 42.3833 ], [ -70.9952, 42.3833 ], [ -70.9951, 42.3833 ], [ -70.9951, 42.3833 ], [ -70.9951, 42.3832 ], [ -70.9951, 42.3832 ], [ -70.9951, 42.3832 ], [ -70.9951, 42.3832 ], [ -70.9951, 42.3831 ], [ -70.9951, 42.3830 ], [ -70.9951, 42.3830 ], [ -70.9951, 42.3829 ], [ -70.9952, 42.3829 ], [ -70.9952, 42.3829 ], [ -70.9952, 42.3829 ], [ -70.9952, 42.3829 ], [ -70.9951, 42.3829 ], [ -70.9951, 42.3829 ], [ -70.9951, 42.3828 ], [ -70.9951, 42.3828 ], [ -70.9950, 42.3828 ], [ -70.9949, 42.3828 ], [ -70.9948, 42.3828 ], [ -70.9948, 42.3828 ], [ -70.9947, 42.3828 ], [ -70.9946, 42.3828 ], [ -70.9946, 42.3828 ], [ -70.9946, 42.3828 ], [ -70.9946, 42.3828 ], [ -70.9946, 42.3828 ], [ -70.9946, 42.3827 ], [ -70.9946, 42.3826 ], [ -70.9946, 42.3825 ], [ -70.9946, 42.3826 ], [ -70.9947, 42.3826 ], [ -70.9947, 42.3825 ], [ -70.9947, 42.3825 ], [ -70.9947, 42.3825 ], [ -70.9947, 42.3825 ], [ -70.9947, 42.3825 ], [ -70.9947, 42.3825 ], [ -70.9947, 42.3825 ], [ -70.9947, 42.3825 ], [ -70.9947, 42.3825 ], [ -70.9947, 42.3825 ], [ -70.9947, 42.3825 ], [ -70.9946, 42.3825 ], [ -70.9946, 42.3825 ], [ -70.9946, 42.3825 ], [ -70.9947, 42.3825 ], [ -70.9947, 42.3825 ], [ -70.9947, 42.3825 ], [ -70.9947, 42.3825 ], [ -70.9947, 42.3825 ], [ -70.9947, 42.3825 ], [ -70.9947, 42.3825 ], [ -70.9947, 42.3825 ], [ -70.9947, 42.3825 ], [ -70.9947, 42.3825 ], [ -70.9946, 42.3825 ], [ -70.9947, 42.3823 ], [ -70.9947, 42.3823 ], [ -70.9948, 42.3820 ], [ -70.9948, 42.3820 ], [ -70.9948, 42.3820 ], [ -70.9948, 42.3820 ], [ -70.9948, 42.3820 ], [ -70.9949, 42.3820 ], [ -70.9949, 42.3820 ], [ -70.9949, 42.3820 ], [ -70.9950, 42.3820 ], [ -70.9951, 42.3821 ], [ -70.9952, 42.3821 ], [ -70.9952, 42.3821 ], [ -70.9952, 42.3821 ], [ -70.9952, 42.3821 ], [ -70.9952, 42.3821 ], [ -70.9952, 42.3821 ], [ -70.9952, 42.3821 ], [ -70.9952, 42.3821 ], [ -70.9952, 42.3821 ], [ -70.9952, 42.3821 ], [ -70.9952, 42.3821 ], [ -70.9952, 42.3821 ], [ -70.9952, 42.3821 ], [ -70.9952, 42.3821 ], [ -70.9952, 42.3821 ], [ -70.9952, 42.3821 ], [ -70.9952, 42.3821 ], [ -70.9952, 42.3820 ], [ -70.9952, 42.3820 ], [ -70.9952, 42.3820 ], [ -70.9952, 42.3820 ], [ -70.9952, 42.3820 ], [ -70.9952, 42.3820 ], [ -70.9952, 42.3820 ], [ -70.9952, 42.3820 ], [ -70.9952, 42.3820 ], [ -70.9952, 42.3820 ], [ -70.9952, 42.3820 ], [ -70.9952, 42.3820 ], [ -70.9952, 42.3820 ], [ -70.9952, 42.3820 ], [ -70.9952, 42.3820 ], [ -70.9952, 42.3820 ], [ -70.9952, 42.3820 ], [ -70.9952, 42.3820 ], [ -70.9952, 42.3820 ], [ -70.9952, 42.3820 ], [ -70.9952, 42.3820 ], [ -70.9952, 42.3820 ], [ -70.9952, 42.3820 ], [ -70.9952, 42.3820 ], [ -70.9952, 42.3820 ], [ -70.9952, 42.3820 ], [ -70.9952, 42.3820 ], [ -70.9952, 42.3820 ], [ -70.9952, 42.3820 ], [ -70.9952, 42.3820 ], [ -70.9952, 42.3820 ], [ -70.9952, 42.3820 ], [ -70.9952, 42.3820 ], [ -70.9952, 42.3820 ], [ -70.9952, 42.3820 ], [ -70.9952, 42.3819 ], [ -70.9952, 42.3819 ], [ -70.9952, 42.3819 ], [ -70.9952, 42.3819 ], [ -70.9952, 42.3819 ], [ -70.9951, 42.3819 ], [ -70.9952, 42.3818 ], [ -70.9952, 42.3818 ], [ -70.9952, 42.3818 ], [ -70.9952, 42.3818 ], [ -70.9952, 42.3817 ], [ -70.9952, 42.3817 ], [ -70.9952, 42.3817 ], [ -70.9952, 42.3817 ], [ -70.9952, 42.3817 ], [ -70.9952, 42.3817 ], [ -70.9953, 42.3817 ], [ -70.9953, 42.3817 ], [ -70.9953, 42.3816 ], [ -70.9953, 42.3816 ], [ -70.9954, 42.3816 ], [ -70.9954, 42.3816 ], [ -70.9954, 42.3815 ], [ -70.9954, 42.3815 ], [ -70.9954, 42.3815 ], [ -70.9954, 42.3815 ], [ -70.9955, 42.3815 ], [ -70.9955, 42.3814 ], [ -70.9955, 42.3814 ], [ -70.9956, 42.3814 ], [ -70.9956, 42.3814 ], [ -70.9956, 42.3814 ], [ -70.9957, 42.3814 ], [ -70.9957, 42.3815 ], [ -70.9957, 42.3815 ], [ -70.9958, 42.3815 ], [ -70.9958, 42.3815 ], [ -70.9958, 42.3815 ], [ -70.9958, 42.3815 ], [ -70.9959, 42.3815 ], [ -70.9959, 42.3815 ], [ -70.9959, 42.3815 ], [ -70.9960, 42.3815 ], [ -70.9961, 42.3814 ], [ -70.9961, 42.3814 ], [ -70.9962, 42.3814 ], [ -70.9962, 42.3814 ], [ -70.9962, 42.3814 ], [ -70.9962, 42.3814 ], [ -70.9963, 42.3814 ], [ -70.9964, 42.3813 ], [ -70.9964, 42.3813 ], [ -70.9964, 42.3813 ], [ -70.9964, 42.3813 ], [ -70.9965, 42.3813 ], [ -70.9965, 42.3813 ], [ -70.9965, 42.3813 ], [ -70.9965, 42.3813 ], [ -70.9966, 42.3813 ], [ -70.9966, 42.3812 ], [ -70.9966, 42.3812 ], [ -70.9967, 42.3812 ], [ -70.9967, 42.3812 ], [ -70.9967, 42.3811 ], [ -70.9968, 42.3811 ], [ -70.9968, 42.3811 ], [ -70.9968, 42.3811 ], [ -70.9969, 42.3811 ], [ -70.9969, 42.3811 ], [ -70.9970, 42.3811 ], [ -70.9970, 42.3811 ], [ -70.9971, 42.3811 ], [ -70.9971, 42.3811 ], [ -70.9971, 42.3811 ], [ -70.9972, 42.3811 ], [ -70.9972, 42.3811 ], [ -70.9972, 42.3811 ], [ -70.9972, 42.3811 ], [ -70.9973, 42.3811 ], [ -70.9973, 42.3812 ], [ -70.9974, 42.3812 ], [ -70.9974, 42.3812 ], [ -70.9975, 42.3812 ], [ -70.9975, 42.3813 ], [ -70.9976, 42.3813 ], [ -70.9976, 42.3813 ], [ -70.9977, 42.3813 ], [ -70.9978, 42.3813 ], [ -70.9978, 42.3813 ], [ -70.9978, 42.3813 ], [ -70.9979, 42.3814 ], [ -70.9979, 42.3814 ], [ -70.9980, 42.3814 ], [ -70.9981, 42.3814 ], [ -70.9981, 42.3814 ], [ -70.9982, 42.3815 ], [ -70.9982, 42.3815 ], [ -70.9983, 42.3815 ], [ -70.9983, 42.3815 ], [ -70.9984, 42.3815 ], [ -70.9984, 42.3816 ], [ -70.9985, 42.3816 ], [ -70.9985, 42.3816 ], [ -70.9986, 42.3816 ], [ -70.9986, 42.3816 ], [ -70.9987, 42.3816 ], [ -70.9987, 42.3817 ], [ -70.9987, 42.3817 ], [ -70.9987, 42.3817 ], [ -70.9987, 42.3817 ], [ -70.9987, 42.3817 ], [ -70.9987, 42.3817 ], [ -70.9987, 42.3818 ], [ -70.9987, 42.3818 ], [ -70.9988, 42.3818 ], [ -70.9988, 42.3818 ], [ -70.9988, 42.3818 ], [ -70.9988, 42.3818 ], [ -70.9989, 42.3818 ], [ -70.9990, 42.3819 ], [ -70.9990, 42.3819 ], [ -70.9991, 42.3819 ], [ -70.9992, 42.3820 ], [ -70.9992, 42.3820 ], [ -70.9993, 42.3820 ], [ -70.9994, 42.3820 ], [ -70.9994, 42.3821 ], [ -70.9995, 42.3821 ], [ -70.9995, 42.3821 ], [ -70.9996, 42.3821 ], [ -70.9996, 42.3822 ], [ -70.9996, 42.3822 ], [ -70.9997, 42.3822 ], [ -70.9997, 42.3822 ], [ -70.9998, 42.3823 ], [ -70.9998, 42.3823 ], [ -70.9999, 42.3823 ], [ -71.0000, 42.3824 ], [ -71.0001, 42.3824 ], [ -71.0001, 42.3824 ], [ -71.0002, 42.3825 ], [ -71.0002, 42.3825 ], [ -71.0003, 42.3825 ], [ -71.0003, 42.3826 ], [ -71.0004, 42.3826 ], [ -71.0004, 42.3826 ], [ -71.0005, 42.3826 ], [ -71.0005, 42.3827 ], [ -71.0006, 42.3827 ], [ -71.0006, 42.3827 ], [ -71.0006, 42.3827 ], [ -71.0007, 42.3828 ], [ -71.0008, 42.3828 ], [ -71.0008, 42.3828 ], [ -71.0009, 42.3829 ], [ -71.0010, 42.3829 ], [ -71.0011, 42.3830 ], [ -71.0011, 42.3830 ], [ -71.0012, 42.3830 ], [ -71.0012, 42.3830 ], [ -71.0013, 42.3831 ], [ -71.0013, 42.3831 ], [ -71.0014, 42.3831 ], [ -71.0015, 42.3832 ], [ -71.0015, 42.3832 ], [ -71.0016, 42.3832 ], [ -71.0016, 42.3832 ], [ -71.0017, 42.3833 ], [ -71.0018, 42.3833 ], [ -71.0019, 42.3833 ], [ -71.0020, 42.3834 ], [ -71.0021, 42.3834 ], [ -71.0021, 42.3834 ], [ -71.0023, 42.3835 ], [ -71.0023, 42.3835 ], [ -71.0024, 42.3835 ], [ -71.0024, 42.3835 ], [ -71.0025, 42.3836 ], [ -71.0026, 42.3836 ], [ -71.0028, 42.3837 ], [ -71.0028, 42.3837 ], [ -71.0029, 42.3837 ], [ -71.0029, 42.3837 ], [ -71.0030, 42.3837 ], [ -71.0030, 42.3837 ], [ -71.0031, 42.3838 ], [ -71.0031, 42.3838 ], [ -71.0031, 42.3838 ], [ -71.0032, 42.3838 ], [ -71.0033, 42.3838 ], [ -71.0033, 42.3838 ], [ -71.0034, 42.3839 ], [ -71.0034, 42.3839 ], [ -71.0034, 42.3839 ], [ -71.0035, 42.3839 ], [ -71.0035, 42.3839 ], [ -71.0036, 42.3839 ], [ -71.0036, 42.3839 ], [ -71.0037, 42.3839 ], [ -71.0037, 42.3839 ], [ -71.0038, 42.3839 ], [ -71.0039, 42.3839 ], [ -71.0039, 42.3839 ], [ -71.0040, 42.3839 ], [ -71.0040, 42.3839 ], [ -71.0041, 42.3839 ], [ -71.0042, 42.3839 ], [ -71.0042, 42.3839 ], [ -71.0042, 42.3839 ], [ -71.0043, 42.3839 ], [ -71.0043, 42.3839 ], [ -71.0043, 42.3840 ], [ -71.0043, 42.3840 ], [ -71.0043, 42.3840 ], [ -71.0044, 42.3840 ], [ -71.0044, 42.3840 ], [ -71.0044, 42.3840 ], [ -71.0044, 42.3840 ], [ -71.0044, 42.3840 ], [ -71.0044, 42.3840 ], [ -71.0044, 42.3840 ], [ -71.0045, 42.3840 ], [ -71.0045, 42.3840 ], [ -71.0045, 42.3840 ], [ -71.0045, 42.3840 ], [ -71.0045, 42.3840 ], [ -71.0045, 42.3840 ], [ -71.0045, 42.3840 ], [ -71.0045, 42.3840 ], [ -71.0045, 42.3839 ], [ -71.0046, 42.3837 ], [ -71.0047, 42.3837 ], [ -71.0047, 42.3838 ], [ -71.0051, 42.3838 ], [ -71.0051, 42.3839 ], [ -71.0051, 42.3839 ], [ -71.0051, 42.3839 ], [ -71.0051, 42.3839 ], [ -71.0051, 42.3839 ], [ -71.0051, 42.3839 ], [ -71.0051, 42.3839 ], [ -71.0051, 42.3839 ], [ -71.0051, 42.3839 ], [ -71.0052, 42.3839 ], [ -71.0052, 42.3839 ], [ -71.0052, 42.3839 ], [ -71.0052, 42.3839 ], [ -71.0052, 42.3839 ], [ -71.0052, 42.3839 ], [ -71.0052, 42.3839 ], [ -71.0052, 42.3839 ], [ -71.0052, 42.3839 ], [ -71.0052, 42.3839 ], [ -71.0052, 42.3839 ], [ -71.0052, 42.3839 ], [ -71.0052, 42.3839 ], [ -71.0052, 42.3839 ], [ -71.0052, 42.3839 ], [ -71.0052, 42.3840 ], [ -71.0052, 42.3840 ], [ -71.0052, 42.3840 ], [ -71.0052, 42.3840 ], [ -71.0052, 42.3840 ], [ -71.0052, 42.3840 ], [ -71.0052, 42.3840 ], [ -71.0053, 42.3840 ], [ -71.0053, 42.3840 ], [ -71.0053, 42.3840 ], [ -71.0053, 42.3840 ], [ -71.0053, 42.3840 ], [ -71.0053, 42.3840 ], [ -71.0053, 42.3840 ], [ -71.0053, 42.3840 ], [ -71.0053, 42.3840 ], [ -71.0054, 42.3840 ], [ -71.0054, 42.3840 ], [ -71.0054, 42.3840 ], [ -71.0055, 42.3841 ], [ -71.0056, 42.3841 ], [ -71.0056, 42.3841 ], [ -71.0056, 42.3841 ], [ -71.0057, 42.3841 ], [ -71.0058, 42.3841 ], [ -71.0059, 42.3841 ], [ -71.0060, 42.3841 ], [ -71.0060, 42.3841 ], [ -71.0061, 42.3842 ], [ -71.0062, 42.3842 ], [ -71.0063, 42.3842 ], [ -71.0064, 42.3842 ], [ -71.0064, 42.3842 ], [ -71.0065, 42.3843 ], [ -71.0066, 42.3843 ], [ -71.0067, 42.3843 ], [ -71.0067, 42.3843 ], [ -71.0068, 42.3843 ], [ -71.0068, 42.3843 ], [ -71.0069, 42.3843 ], [ -71.0069, 42.3843 ], [ -71.0069, 42.3843 ], [ -71.0070, 42.3843 ], [ -71.0071, 42.3844 ], [ -71.0071, 42.3844 ], [ -71.0072, 42.3844 ], [ -71.0073, 42.3844 ], [ -71.0073, 42.3844 ], [ -71.0073, 42.3844 ], [ -71.0074, 42.3844 ], [ -71.0074, 42.3844 ], [ -71.0075, 42.3844 ], [ -71.0076, 42.3844 ], [ -71.0077, 42.3844 ], [ -71.0078, 42.3844 ], [ -71.0078, 42.3844 ], [ -71.0079, 42.3845 ], [ -71.0079, 42.3845 ], [ -71.0079, 42.3845 ], [ -71.0081, 42.3845 ], [ -71.0082, 42.3845 ], [ -71.0082, 42.3845 ], [ -71.0083, 42.3845 ], [ -71.0084, 42.3845 ], [ -71.0084, 42.3845 ], [ -71.0086, 42.3844 ], [ -71.0087, 42.3844 ], [ -71.0088, 42.3844 ], [ -71.0088, 42.3844 ], [ -71.0088, 42.3844 ], [ -71.0088, 42.3844 ], [ -71.0089, 42.3844 ], [ -71.0089, 42.3844 ], [ -71.0089, 42.3843 ], [ -71.0090, 42.3843 ], [ -71.0090, 42.3843 ], [ -71.0091, 42.3842 ], [ -71.0091, 42.3842 ], [ -71.0091, 42.3841 ], [ -71.0091, 42.3841 ], [ -71.0092, 42.3841 ], [ -71.0092, 42.3841 ], [ -71.0092, 42.3840 ], [ -71.0092, 42.3840 ], [ -71.0094, 42.3840 ], [ -71.0094, 42.3839 ], [ -71.0095, 42.3839 ], [ -71.0096, 42.3839 ], [ -71.0096, 42.3839 ], [ -71.0097, 42.3838 ], [ -71.0098, 42.3838 ], [ -71.0098, 42.3838 ], [ -71.0099, 42.3837 ], [ -71.0099, 42.3837 ], [ -71.0100, 42.3837 ], [ -71.0100, 42.3836 ], [ -71.0101, 42.3835 ], [ -71.0101, 42.3835 ], [ -71.0101, 42.3835 ], [ -71.0102, 42.3834 ], [ -71.0102, 42.3834 ], [ -71.0103, 42.3834 ], [ -71.0103, 42.3833 ], [ -71.0103, 42.3833 ], [ -71.0103, 42.3832 ], [ -71.0104, 42.3832 ], [ -71.0104, 42.3831 ], [ -71.0104, 42.3831 ], [ -71.0105, 42.3830 ], [ -71.0105, 42.3830 ], [ -71.0105, 42.3829 ], [ -71.0105, 42.3829 ], [ -71.0106, 42.3829 ], [ -71.0106, 42.3827 ], [ -71.0106, 42.3827 ], [ -71.0106, 42.3826 ], [ -71.0107, 42.3825 ], [ -71.0107, 42.3825 ], [ -71.0107, 42.3824 ], [ -71.0108, 42.3823 ], [ -71.0108, 42.3822 ], [ -71.0108, 42.3821 ], [ -71.0108, 42.3821 ], [ -71.0108, 42.3820 ], [ -71.0108, 42.3819 ], [ -71.0108, 42.3818 ], [ -71.0108, 42.3818 ], [ -71.0108, 42.3818 ], [ -71.0108, 42.3817 ], [ -71.0108, 42.3816 ], [ -71.0108, 42.3816 ], [ -71.0108, 42.3815 ], [ -71.0108, 42.3815 ], [ -71.0108, 42.3814 ], [ -71.0108, 42.3814 ], [ -71.0108, 42.3814 ], [ -71.0109, 42.3813 ], [ -71.0109, 42.3812 ], [ -71.0109, 42.3811 ], [ -71.0109, 42.3810 ], [ -71.0109, 42.3810 ], [ -71.0109, 42.3809 ], [ -71.0109, 42.3809 ], [ -71.0109, 42.3809 ], [ -71.0109, 42.3809 ], [ -71.0109, 42.3809 ], [ -71.0109, 42.3809 ], [ -71.0109, 42.3809 ], [ -71.0109, 42.3808 ], [ -71.0109, 42.3808 ], [ -71.0109, 42.3808 ], [ -71.0109, 42.3808 ], [ -71.0109, 42.3808 ], [ -71.0109, 42.3808 ], [ -71.0109, 42.3808 ], [ -71.0109, 42.3808 ], [ -71.0109, 42.3808 ], [ -71.0109, 42.3808 ], [ -71.0109, 42.3808 ], [ -71.0109, 42.3808 ], [ -71.0109, 42.3808 ], [ -71.0109, 42.3807 ], [ -71.0109, 42.3807 ], [ -71.0109, 42.3807 ], [ -71.0109, 42.3807 ], [ -71.0109, 42.3807 ], [ -71.0110, 42.3806 ], [ -71.0110, 42.3805 ], [ -71.0111, 42.3805 ], [ -71.0111, 42.3804 ], [ -71.0111, 42.3804 ], [ -71.0111, 42.3804 ], [ -71.0111, 42.3804 ], [ -71.0113, 42.3803 ], [ -71.0113, 42.3803 ], [ -71.0114, 42.3803 ], [ -71.0114, 42.3803 ], [ -71.0114, 42.3803 ], [ -71.0114, 42.3803 ], [ -71.0114, 42.3803 ], [ -71.0115, 42.3803 ], [ -71.0115, 42.3803 ], [ -71.0115, 42.3803 ], [ -71.0115, 42.3803 ], [ -71.0115, 42.3803 ], [ -71.0116, 42.3803 ], [ -71.0116, 42.3803 ], [ -71.0116, 42.3803 ], [ -71.0116, 42.3803 ], [ -71.0117, 42.3804 ], [ -71.0117, 42.3804 ], [ -71.0117, 42.3804 ], [ -71.0117, 42.3804 ], [ -71.0117, 42.3804 ], [ -71.0117, 42.3804 ], [ -71.0118, 42.3804 ], [ -71.0118, 42.3804 ], [ -71.0118, 42.3804 ], [ -71.0118, 42.3804 ], [ -71.0118, 42.3804 ], [ -71.0118, 42.3804 ], [ -71.0118, 42.3804 ], [ -71.0118, 42.3804 ], [ -71.0118, 42.3804 ], [ -71.0118, 42.3804 ], [ -71.0118, 42.3804 ], [ -71.0118, 42.3804 ], [ -71.0118, 42.3804 ], [ -71.0118, 42.3804 ], [ -71.0119, 42.3804 ], [ -71.0119, 42.3805 ], [ -71.0120, 42.3805 ], [ -71.0120, 42.3805 ], [ -71.0120, 42.3805 ], [ -71.0121, 42.3806 ], [ -71.0121, 42.3806 ], [ -71.0121, 42.3806 ], [ -71.0122, 42.3807 ], [ -71.0122, 42.3807 ], [ -71.0122, 42.3807 ], [ -71.0122, 42.3807 ], [ -71.0123, 42.3808 ], [ -71.0123, 42.3808 ], [ -71.0123, 42.3808 ], [ -71.0123, 42.3808 ], [ -71.0123, 42.3808 ], [ -71.0123, 42.3808 ], [ -71.0123, 42.3808 ], [ -71.0123, 42.3808 ], [ -71.0123, 42.3808 ], [ -71.0123, 42.3808 ], [ -71.0123, 42.3808 ], [ -71.0123, 42.3808 ], [ -71.0123, 42.3808 ], [ -71.0123, 42.3808 ], [ -71.0123, 42.3808 ], [ -71.0124, 42.3808 ], [ -71.0124, 42.3808 ], [ -71.0124, 42.3808 ], [ -71.0126, 42.3808 ], [ -71.0126, 42.3808 ], [ -71.0126, 42.3808 ], [ -71.0126, 42.3808 ], [ -71.0126, 42.3808 ], [ -71.0126, 42.3808 ], [ -71.0126, 42.3808 ], [ -71.0127, 42.3808 ], [ -71.0128, 42.3808 ], [ -71.0128, 42.3808 ], [ -71.0128, 42.3808 ], [ -71.0129, 42.3808 ], [ -71.0129, 42.3808 ], [ -71.0130, 42.3808 ], [ -71.0130, 42.3808 ], [ -71.0131, 42.3808 ], [ -71.0131, 42.3808 ], [ -71.0131, 42.3808 ], [ -71.0131, 42.3808 ], [ -71.0131, 42.3808 ], [ -71.0132, 42.3808 ], [ -71.0132, 42.3808 ], [ -71.0132, 42.3807 ], [ -71.0133, 42.3807 ], [ -71.0133, 42.3807 ], [ -71.0133, 42.3807 ], [ -71.0133, 42.3807 ], [ -71.0133, 42.3806 ], [ -71.0134, 42.3806 ], [ -71.0134, 42.3806 ], [ -71.0134, 42.3806 ], [ -71.0134, 42.3806 ], [ -71.0134, 42.3805 ], [ -71.0134, 42.3805 ], [ -71.0134, 42.3805 ], [ -71.0134, 42.3805 ], [ -71.0134, 42.3805 ], [ -71.0134, 42.3805 ], [ -71.0133, 42.3804 ], [ -71.0133, 42.3804 ], [ -71.0134, 42.3804 ], [ -71.0134, 42.3804 ], [ -71.0134, 42.3804 ], [ -71.0134, 42.3803 ], [ -71.0134, 42.3802 ], [ -71.0134, 42.3802 ], [ -71.0134, 42.3802 ], [ -71.0134, 42.3801 ], [ -71.0134, 42.3801 ], [ -71.0134, 42.3801 ], [ -71.0133, 42.3800 ], [ -71.0133, 42.3800 ], [ -71.0133, 42.3800 ], [ -71.0132, 42.3799 ], [ -71.0132, 42.3799 ], [ -71.0132, 42.3799 ], [ -71.0132, 42.3798 ], [ -71.0132, 42.3798 ], [ -71.0132, 42.3798 ], [ -71.0132, 42.3798 ], [ -71.0132, 42.3797 ], [ -71.0132, 42.3797 ], [ -71.0132, 42.3796 ], [ -71.0132, 42.3796 ], [ -71.0132, 42.3796 ], [ -71.0132, 42.3795 ], [ -71.0132, 42.3795 ], [ -71.0132, 42.3795 ], [ -71.0132, 42.3795 ], [ -71.0132, 42.3795 ], [ -71.0133, 42.3795 ], [ -71.0133, 42.3794 ], [ -71.0133, 42.3794 ], [ -71.0133, 42.3794 ], [ -71.0133, 42.3794 ], [ -71.0133, 42.3794 ], [ -71.0133, 42.3794 ], [ -71.0134, 42.3794 ], [ -71.0134, 42.3794 ], [ -71.0134, 42.3794 ], [ -71.0134, 42.3794 ], [ -71.0134, 42.3794 ], [ -71.0134, 42.3794 ], [ -71.0134, 42.3794 ], [ -71.0134, 42.3794 ], [ -71.0135, 42.3794 ], [ -71.0135, 42.3794 ], [ -71.0135, 42.3794 ], [ -71.0135, 42.3794 ], [ -71.0136, 42.3794 ], [ -71.0136, 42.3794 ], [ -71.0136, 42.3794 ], [ -71.0136, 42.3794 ], [ -71.0136, 42.3794 ], [ -71.0136, 42.3794 ], [ -71.0136, 42.3794 ], [ -71.0137, 42.3794 ], [ -71.0137, 42.3794 ], [ -71.0137, 42.3794 ], [ -71.0138, 42.3794 ], [ -71.0138, 42.3794 ], [ -71.0138, 42.3794 ], [ -71.0138, 42.3794 ], [ -71.0139, 42.3794 ], [ -71.0139, 42.3794 ], [ -71.0140, 42.3794 ], [ -71.0140, 42.3794 ], [ -71.0140, 42.3794 ], [ -71.0141, 42.3794 ], [ -71.0141, 42.3794 ], [ -71.0141, 42.3794 ], [ -71.0141, 42.3794 ], [ -71.0142, 42.3794 ], [ -71.0142, 42.3794 ], [ -71.0142, 42.3794 ], [ -71.0142, 42.3794 ], [ -71.0142, 42.3794 ], [ -71.0142, 42.3793 ], [ -71.0143, 42.3793 ], [ -71.0143, 42.3793 ], [ -71.0143, 42.3793 ], [ -71.0143, 42.3793 ], [ -71.0143, 42.3793 ], [ -71.0143, 42.3793 ], [ -71.0143, 42.3793 ], [ -71.0143, 42.3793 ], [ -71.0143, 42.3793 ], [ -71.0143, 42.3793 ], [ -71.0143, 42.3793 ], [ -71.0143, 42.3793 ], [ -71.0143, 42.3793 ], [ -71.0143, 42.3793 ], [ -71.0144, 42.3793 ], [ -71.0144, 42.3793 ], [ -71.0144, 42.3793 ], [ -71.0144, 42.3793 ], [ -71.0144, 42.3793 ], [ -71.0144, 42.3793 ], [ -71.0144, 42.3793 ], [ -71.0144, 42.3793 ], [ -71.0144, 42.3793 ], [ -71.0144, 42.3793 ], [ -71.0145, 42.3793 ], [ -71.0145, 42.3793 ], [ -71.0145, 42.3793 ], [ -71.0145, 42.3793 ], [ -71.0145, 42.3793 ], [ -71.0145, 42.3793 ], [ -71.0145, 42.3793 ], [ -71.0145, 42.3792 ], [ -71.0145, 42.3792 ], [ -71.0145, 42.3792 ], [ -71.0145, 42.3792 ], [ -71.0150, 42.3791 ], [ -71.0152, 42.3792 ], [ -71.0151, 42.3793 ], [ -71.0158, 42.3803 ], [ -71.0162, 42.3803 ], [ -71.0165, 42.3802 ], [ -71.0194, 42.3777 ], [ -71.0194, 42.3776 ], [ -71.0194, 42.3776 ], [ -71.0194, 42.3776 ], [ -71.0195, 42.3776 ], [ -71.0195, 42.3775 ], [ -71.0195, 42.3775 ], [ -71.0195, 42.3775 ], [ -71.0196, 42.3775 ], [ -71.0196, 42.3774 ], [ -71.0195, 42.3773 ], [ -71.0195, 42.3773 ], [ -71.0195, 42.3772 ], [ -71.0194, 42.3771 ], [ -71.0193, 42.3770 ], [ -71.0192, 42.3769 ], [ -71.0192, 42.3768 ], [ -71.0191, 42.3768 ], [ -71.0190, 42.3767 ], [ -71.0189, 42.3766 ], [ -71.0189, 42.3766 ], [ -71.0188, 42.3766 ], [ -71.0188, 42.3765 ], [ -71.0188, 42.3765 ], [ -71.0187, 42.3764 ], [ -71.0186, 42.3764 ], [ -71.0185, 42.3764 ], [ -71.0185, 42.3763 ], [ -71.0184, 42.3763 ], [ -71.0184, 42.3763 ], [ -71.0183, 42.3763 ], [ -71.0180, 42.3762 ], [ -71.0179, 42.3761 ], [ -71.0178, 42.3761 ], [ -71.0177, 42.3760 ], [ -71.0176, 42.3760 ], [ -71.0176, 42.3760 ], [ -71.0174, 42.3759 ], [ -71.0174, 42.3759 ], [ -71.0173, 42.3759 ], [ -71.0173, 42.3759 ], [ -71.0172, 42.3758 ], [ -71.0172, 42.3758 ], [ -71.0171, 42.3757 ], [ -71.0171, 42.3757 ], [ -71.0170, 42.3757 ], [ -71.0170, 42.3757 ], [ -71.0170, 42.3757 ], [ -71.0169, 42.3757 ], [ -71.0169, 42.3757 ], [ -71.0168, 42.3757 ], [ -71.0168, 42.3756 ], [ -71.0168, 42.3756 ], [ -71.0168, 42.3756 ], [ -71.0167, 42.3755 ], [ -71.0166, 42.3755 ], [ -71.0166, 42.3755 ], [ -71.0165, 42.3755 ], [ -71.0164, 42.3755 ], [ -71.0163, 42.3755 ], [ -71.0163, 42.3755 ], [ -71.0162, 42.3755 ], [ -71.0162, 42.3754 ], [ -71.0162, 42.3754 ], [ -71.0162, 42.3753 ], [ -71.0162, 42.3753 ], [ -71.0161, 42.3753 ], [ -71.0161, 42.3752 ], [ -71.0161, 42.3752 ], [ -71.0160, 42.3753 ], [ -71.0160, 42.3753 ], [ -71.0160, 42.3753 ], [ -71.0160, 42.3753 ], [ -71.0159, 42.3753 ], [ -71.0159, 42.3752 ], [ -71.0158, 42.3752 ], [ -71.0158, 42.3752 ], [ -71.0157, 42.3752 ], [ -71.0157, 42.3751 ], [ -71.0156, 42.3751 ], [ -71.0156, 42.3751 ], [ -71.0156, 42.3750 ], [ -71.0156, 42.3750 ], [ -71.0156, 42.3749 ], [ -71.0157, 42.3749 ], [ -71.0157, 42.3749 ], [ -71.0157, 42.3749 ], [ -71.0157, 42.3749 ], [ -71.0157, 42.3748 ], [ -71.0157, 42.3748 ], [ -71.0157, 42.3747 ], [ -71.0158, 42.3747 ], [ -71.0158, 42.3746 ], [ -71.0158, 42.3746 ], [ -71.0159, 42.3746 ], [ -71.0160, 42.3745 ], [ -71.0160, 42.3745 ], [ -71.0161, 42.3744 ], [ -71.0162, 42.3744 ], [ -71.0162, 42.3743 ], [ -71.0161, 42.3743 ], [ -71.0162, 42.3742 ], [ -71.0131, 42.3719 ], [ -71.0127, 42.3719 ], [ -71.0121, 42.3717 ], [ -71.0120, 42.3715 ], [ -71.0118, 42.3715 ], [ -71.0115, 42.3717 ], [ -71.0115, 42.3717 ], [ -71.0114, 42.3717 ], [ -71.0113, 42.3718 ], [ -71.0112, 42.3718 ], [ -71.0111, 42.3719 ], [ -71.0109, 42.3720 ], [ -71.0108, 42.3721 ], [ -71.0106, 42.3722 ], [ -71.0103, 42.3725 ], [ -71.0102, 42.3726 ], [ -71.0101, 42.3728 ], [ -71.0100, 42.3728 ], [ -71.0101, 42.3730 ], [ -71.0101, 42.3730 ], [ -71.0102, 42.3731 ], [ -71.0103, 42.3732 ], [ -71.0104, 42.3733 ], [ -71.0104, 42.3733 ], [ -71.0104, 42.3735 ], [ -71.0104, 42.3735 ], [ -71.0103, 42.3736 ], [ -71.0102, 42.3737 ], [ -71.0101, 42.3738 ], [ -71.0100, 42.3739 ], [ -71.0098, 42.3740 ], [ -71.0096, 42.3742 ], [ -71.0096, 42.3742 ], [ -71.0094, 42.3743 ], [ -71.0094, 42.3744 ], [ -71.0092, 42.3745 ], [ -71.0092, 42.3745 ], [ -71.0092, 42.3746 ], [ -71.0091, 42.3746 ], [ -71.0090, 42.3747 ], [ -71.0090, 42.3747 ], [ -71.0090, 42.3748 ], [ -71.0089, 42.3748 ], [ -71.0089, 42.3749 ], [ -71.0089, 42.3749 ], [ -71.0089, 42.3750 ], [ -71.0088, 42.3750 ], [ -71.0088, 42.3750 ], [ -71.0087, 42.3750 ], [ -71.0087, 42.3751 ], [ -71.0088, 42.3752 ], [ -71.0089, 42.3752 ], [ -71.0090, 42.3754 ], [ -71.0090, 42.3755 ], [ -71.0089, 42.3756 ], [ -71.0087, 42.3757 ], [ -71.0085, 42.3757 ], [ -71.0081, 42.3764 ], [ -71.0079, 42.3768 ], [ -71.0070, 42.3784 ], [ -71.0065, 42.3788 ], [ -71.0063, 42.3788 ], [ -71.0061, 42.3788 ], [ -71.0059, 42.3789 ], [ -71.0057, 42.3790 ], [ -71.0056, 42.3792 ], [ -71.0051, 42.3792 ], [ -71.0049, 42.3791 ], [ -71.0041, 42.3790 ], [ -71.0033, 42.3786 ], [ -71.0004, 42.3777 ], [ -71.0004, 42.3777 ], [ -71.0003, 42.3778 ], [ -71.0002, 42.3777 ], [ -71.0000, 42.3777 ], [ -71.0061, 42.3760 ], [ -71.0065, 42.3751 ], [ -71.0103, 42.3650 ], [ -71.0006, 42.3646 ], [ -71.0006, 42.3647 ], [ -71.0006, 42.3646 ], [ -71.0006, 42.3646 ], [ -71.0006, 42.3646 ], [ -71.0006, 42.3646 ], [ -71.0006, 42.3645 ], [ -71.0006, 42.3645 ], [ -71.0015, 42.3646 ], [ -71.0015, 42.3646 ], [ -71.0015, 42.3642 ], [ -71.0018, 42.3639 ], [ -71.0018, 42.3637 ], [ -71.0018, 42.3636 ], [ -71.0011, 42.3630 ], [ -71.0008, 42.3628 ], [ -71.0008, 42.3627 ], [ -71.0006, 42.3627 ], [ -71.0005, 42.3626 ], [ -71.0001, 42.3624 ], [ -70.9998, 42.3621 ], [ -70.9992, 42.3617 ], [ -70.9989, 42.3617 ], [ -70.9987, 42.3617 ], [ -70.9984, 42.3615 ], [ -70.9981, 42.3612 ], [ -70.9980, 42.3610 ], [ -70.9977, 42.3609 ], [ -70.9973, 42.3610 ], [ -70.9972, 42.3611 ], [ -70.9969, 42.3611 ], [ -70.9966, 42.3615 ], [ -70.9963, 42.3614 ], [ -70.9960, 42.3613 ], [ -70.9958, 42.3613 ], [ -70.9946, 42.3614 ], [ -70.9941, 42.3614 ], [ -70.9938, 42.3616 ], [ -70.9936, 42.3618 ], [ -70.9930, 42.3615 ], [ -70.9914, 42.3614 ], [ -70.9893, 42.3620 ], [ -70.9883, 42.3619 ], [ -70.9876, 42.3616 ], [ -70.9870, 42.3609 ], [ -70.9865, 42.3595 ], [ -70.9867, 42.3593 ], [ -70.9862, 42.3579 ], [ -70.9862, 42.3579 ], [ -70.9863, 42.3576 ], [ -70.9897, 42.3551 ], [ -70.9912, 42.3539 ], [ -70.9917, 42.3538 ], [ -70.9921, 42.3538 ], [ -70.9925, 42.3540 ], [ -70.9930, 42.3541 ], [ -70.9941, 42.3539 ], [ -70.9945, 42.3540 ], [ -70.9958, 42.3550 ], [ -70.9960, 42.3551 ], [ -70.9962, 42.3552 ], [ -70.9964, 42.3554 ], [ -70.9967, 42.3556 ], [ -70.9968, 42.3557 ], [ -70.9970, 42.3557 ], [ -70.9971, 42.3557 ], [ -70.9972, 42.3556 ], [ -70.9974, 42.3556 ], [ -70.9974, 42.3555 ], [ -70.9975, 42.3555 ], [ -70.9976, 42.3554 ], [ -70.9976, 42.3554 ], [ -70.9977, 42.3552 ], [ -70.9978, 42.3552 ], [ -70.9979, 42.3552 ], [ -70.9980, 42.3552 ], [ -70.9982, 42.3552 ], [ -70.9984, 42.3552 ], [ -70.9986, 42.3553 ], [ -70.9986, 42.3553 ], [ -70.9985, 42.3554 ], [ -70.9985, 42.3554 ], [ -70.9983, 42.3554 ], [ -70.9981, 42.3554 ], [ -70.9980, 42.3554 ], [ -70.9978, 42.3555 ], [ -70.9978, 42.3556 ], [ -70.9977, 42.3557 ], [ -70.9977, 42.3557 ], [ -70.9976, 42.3558 ], [ -70.9974, 42.3558 ], [ -70.9972, 42.3559 ], [ -70.9971, 42.3559 ], [ -70.9975, 42.3563 ], [ -70.9977, 42.3564 ], [ -70.9979, 42.3565 ], [ -70.9981, 42.3566 ], [ -70.9982, 42.3566 ], [ -70.9984, 42.3567 ], [ -70.9984, 42.3567 ], [ -70.9985, 42.3567 ], [ -70.9985, 42.3567 ], [ -70.9986, 42.3568 ], [ -70.9990, 42.3569 ], [ -70.9991, 42.3569 ], [ -70.9993, 42.3569 ], [ -70.9994, 42.3569 ], [ -70.9994, 42.3569 ], [ -70.9996, 42.3569 ], [ -70.9999, 42.3569 ], [ -71.0002, 42.3569 ], [ -71.0004, 42.3569 ], [ -71.0007, 42.3569 ], [ -71.0009, 42.3568 ], [ -71.0010, 42.3568 ], [ -71.0014, 42.3568 ], [ -71.0017, 42.3567 ], [ -71.0022, 42.3566 ], [ -71.0024, 42.3566 ], [ -71.0028, 42.3565 ], [ -71.0028, 42.3565 ], [ -71.0029, 42.3565 ], [ -71.0030, 42.3565 ], [ -71.0033, 42.3564 ], [ -71.0034, 42.3563 ], [ -71.0035, 42.3563 ], [ -71.0036, 42.3563 ], [ -71.0036, 42.3563 ], [ -71.0037, 42.3563 ], [ -71.0038, 42.3562 ], [ -71.0040, 42.3560 ], [ -71.0043, 42.3559 ], [ -71.0044, 42.3558 ], [ -71.0045, 42.3558 ], [ -71.0046, 42.3557 ], [ -71.0047, 42.3557 ], [ -71.0048, 42.3557 ], [ -71.0048, 42.3556 ], [ -71.0049, 42.3556 ], [ -71.0051, 42.3556 ], [ -71.0052, 42.3555 ], [ -71.0053, 42.3555 ], [ -71.0055, 42.3555 ], [ -71.0057, 42.3556 ], [ -71.0058, 42.3556 ], [ -71.0059, 42.3556 ], [ -71.0060, 42.3556 ], [ -71.0060, 42.3555 ], [ -71.0061, 42.3554 ], [ -71.0062, 42.3554 ], [ -71.0063, 42.3553 ], [ -71.0063, 42.3552 ], [ -71.0064, 42.3551 ], [ -71.0064, 42.3550 ], [ -71.0064, 42.3549 ], [ -71.0063, 42.3548 ], [ -71.0063, 42.3547 ], [ -71.0062, 42.3546 ], [ -71.0062, 42.3545 ], [ -71.0061, 42.3544 ], [ -71.0061, 42.3544 ], [ -71.0059, 42.3542 ], [ -71.0057, 42.3541 ], [ -71.0057, 42.3540 ], [ -71.0055, 42.3540 ], [ -71.0055, 42.3540 ], [ -71.0054, 42.3540 ], [ -71.0053, 42.3540 ], [ -71.0052, 42.3540 ], [ -71.0050, 42.3541 ], [ -71.0049, 42.3541 ], [ -71.0049, 42.3543 ], [ -71.0048, 42.3544 ], [ -71.0048, 42.3545 ], [ -71.0048, 42.3545 ], [ -71.0047, 42.3546 ], [ -71.0047, 42.3547 ], [ -71.0046, 42.3547 ], [ -71.0045, 42.3548 ], [ -71.0044, 42.3548 ], [ -71.0045, 42.3548 ], [ -71.0045, 42.3549 ], [ -71.0044, 42.3549 ], [ -71.0044, 42.3550 ], [ -71.0043, 42.3550 ], [ -71.0041, 42.3550 ], [ -71.0039, 42.3550 ], [ -71.0038, 42.3551 ], [ -71.0036, 42.3551 ], [ -71.0034, 42.3550 ], [ -71.0033, 42.3549 ], [ -71.0033, 42.3548 ], [ -71.0033, 42.3547 ], [ -71.0039, 42.3535 ], [ -71.0045, 42.3519 ], [ -71.0045, 42.3516 ], [ -71.0046, 42.3510 ], [ -71.0047, 42.3503 ], [ -71.0049, 42.3492 ], [ -71.0050, 42.3489 ], [ -71.0049, 42.3480 ], [ -71.0049, 42.3478 ], [ -71.0049, 42.3477 ], [ -71.0049, 42.3475 ], [ -71.0048, 42.3474 ], [ -71.0048, 42.3473 ], [ -71.0047, 42.3472 ], [ -71.0047, 42.3471 ], [ -71.0047, 42.3470 ], [ -71.0049, 42.3471 ], [ -71.0054, 42.3470 ], [ -71.0058, 42.3469 ], [ -71.0076, 42.3466 ], [ -71.0077, 42.3466 ], [ -71.0116, 42.3492 ], [ -71.0140, 42.3507 ], [ -71.0140, 42.3508 ], [ -71.0152, 42.3516 ], [ -71.0153, 42.3515 ], [ -71.0166, 42.3524 ], [ -71.0168, 42.3525 ], [ -71.0201, 42.3541 ], [ -71.0240, 42.3560 ], [ -71.0263, 42.3571 ], [ -71.0264, 42.3572 ], [ -71.0263, 42.3573 ], [ -71.0263, 42.3574 ], [ -71.0263, 42.3574 ], [ -71.0263, 42.3575 ], [ -71.0264, 42.3577 ], [ -71.0264, 42.3577 ], [ -71.0265, 42.3576 ], [ -71.0272, 42.3576 ], [ -71.0273, 42.3577 ], [ -71.0274, 42.3576 ], [ -71.0282, 42.3580 ], [ -71.0281, 42.3582 ], [ -71.0280, 42.3582 ], [ -71.0275, 42.3594 ], [ -71.0276, 42.3594 ], [ -71.0274, 42.3600 ], [ -71.0272, 42.3600 ], [ -71.0269, 42.3607 ], [ -71.0269, 42.3608 ], [ -71.0269, 42.3608 ], [ -71.0265, 42.3616 ], [ -71.0265, 42.3617 ], [ -71.0265, 42.3617 ], [ -71.0262, 42.3622 ], [ -71.0262, 42.3623 ], [ -71.0262, 42.3627 ], [ -71.0262, 42.3627 ], [ -71.0262, 42.3628 ], [ -71.0262, 42.3633 ], [ -71.0262, 42.3633 ], [ -71.0262, 42.3635 ], [ -71.0261, 42.3636 ], [ -71.0261, 42.3637 ], [ -71.0261, 42.3638 ], [ -71.0261, 42.3638 ], [ -71.0261, 42.3639 ], [ -71.0262, 42.3640 ], [ -71.0262, 42.3640 ], [ -71.0262, 42.3641 ], [ -71.0262, 42.3642 ], [ -71.0262, 42.3642 ], [ -71.0263, 42.3642 ], [ -71.0263, 42.3643 ], [ -71.0263, 42.3643 ], [ -71.0263, 42.3643 ], [ -71.0264, 42.3643 ], [ -71.0264, 42.3644 ], [ -71.0264, 42.3644 ], [ -71.0265, 42.3644 ], [ -71.0265, 42.3644 ], [ -71.0265, 42.3645 ], [ -71.0265, 42.3645 ], [ -71.0266, 42.3645 ], [ -71.0266, 42.3645 ], [ -71.0266, 42.3646 ], [ -71.0267, 42.3646 ], [ -71.0267, 42.3646 ], [ -71.0268, 42.3647 ], [ -71.0268, 42.3647 ], [ -71.0268, 42.3647 ], [ -71.0269, 42.3647 ], [ -71.0269, 42.3647 ], [ -71.0271, 42.3648 ], [ -71.0271, 42.3648 ], [ -71.0271, 42.3649 ], [ -71.0271, 42.3649 ], [ -71.0276, 42.3651 ], [ -71.0278, 42.3651 ], [ -71.0286, 42.3640 ], [ -71.0282, 42.3639 ], [ -71.0283, 42.3637 ], [ -71.0283, 42.3637 ], [ -71.0284, 42.3637 ], [ -71.0284, 42.3636 ], [ -71.0285, 42.3636 ], [ -71.0285, 42.3635 ], [ -71.0285, 42.3635 ], [ -71.0285, 42.3635 ], [ -71.0285, 42.3635 ], [ -71.0285, 42.3635 ], [ -71.0286, 42.3635 ], [ -71.0286, 42.3634 ], [ -71.0286, 42.3634 ], [ -71.0286, 42.3634 ], [ -71.0288, 42.3634 ], [ -71.0288, 42.3634 ], [ -71.0289, 42.3634 ], [ -71.0289, 42.3634 ], [ -71.0289, 42.3634 ], [ -71.0289, 42.3634 ], [ -71.0290, 42.3634 ], [ -71.0291, 42.3634 ], [ -71.0291, 42.3634 ], [ -71.0292, 42.3634 ], [ -71.0293, 42.3634 ], [ -71.0294, 42.3633 ], [ -71.0294, 42.3633 ], [ -71.0295, 42.3633 ], [ -71.0295, 42.3633 ], [ -71.0295, 42.3632 ], [ -71.0295, 42.3631 ], [ -71.0296, 42.3631 ], [ -71.0296, 42.3631 ], [ -71.0297, 42.3631 ], [ -71.0298, 42.3631 ], [ -71.0298, 42.3631 ], [ -71.0298, 42.3631 ], [ -71.0298, 42.3632 ], [ -71.0298, 42.3632 ], [ -71.0298, 42.3632 ], [ -71.0298, 42.3633 ], [ -71.0298, 42.3633 ], [ -71.0298, 42.3633 ], [ -71.0298, 42.3633 ], [ -71.0298, 42.3634 ], [ -71.0298, 42.3635 ], [ -71.0298, 42.3635 ], [ -71.0298, 42.3635 ], [ -71.0298, 42.3635 ], [ -71.0298, 42.3635 ], [ -71.0298, 42.3635 ], [ -71.0299, 42.3635 ], [ -71.0299, 42.3635 ], [ -71.0299, 42.3636 ], [ -71.0299, 42.3636 ], [ -71.0299, 42.3636 ], [ -71.0299, 42.3636 ], [ -71.0300, 42.3637 ], [ -71.0300, 42.3637 ], [ -71.0300, 42.3637 ], [ -71.0301, 42.3637 ], [ -71.0301, 42.3637 ], [ -71.0302, 42.3637 ], [ -71.0302, 42.3637 ], [ -71.0303, 42.3636 ], [ -71.0303, 42.3636 ], [ -71.0303, 42.3636 ], [ -71.0303, 42.3636 ], [ -71.0303, 42.3636 ], [ -71.0303, 42.3636 ], [ -71.0304, 42.3636 ], [ -71.0304, 42.3636 ], [ -71.0304, 42.3636 ], [ -71.0305, 42.3636 ], [ -71.0305, 42.3636 ], [ -71.0305, 42.3636 ], [ -71.0306, 42.3634 ], [ -71.0306, 42.3633 ], [ -71.0306, 42.3632 ], [ -71.0306, 42.3631 ], [ -71.0306, 42.3631 ], [ -71.0306, 42.3631 ], [ -71.0306, 42.3630 ], [ -71.0307, 42.3629 ], [ -71.0312, 42.3629 ], [ -71.0313, 42.3629 ], [ -71.0313, 42.3624 ], [ -71.0314, 42.3624 ], [ -71.0314, 42.3630 ], [ -71.0315, 42.3631 ], [ -71.0315, 42.3631 ], [ -71.0315, 42.3631 ], [ -71.0314, 42.3638 ], [ -71.0314, 42.3639 ], [ -71.0315, 42.3639 ], [ -71.0316, 42.3639 ], [ -71.0316, 42.3639 ], [ -71.0316, 42.3639 ], [ -71.0317, 42.3633 ], [ -71.0317, 42.3632 ], [ -71.0318, 42.3632 ], [ -71.0318, 42.3633 ], [ -71.0319, 42.3633 ], [ -71.0319, 42.3631 ], [ -71.0319, 42.3628 ], [ -71.0319, 42.3628 ], [ -71.0319, 42.3628 ], [ -71.0319, 42.3628 ], [ -71.0319, 42.3627 ], [ -71.0319, 42.3627 ], [ -71.0319, 42.3623 ], [ -71.0320, 42.3623 ], [ -71.0320, 42.3626 ], [ -71.0321, 42.3626 ], [ -71.0322, 42.3627 ], [ -71.0324, 42.3627 ], [ -71.0324, 42.3625 ], [ -71.0325, 42.3612 ], [ -71.0326, 42.3612 ], [ -71.0325, 42.3625 ], [ -71.0325, 42.3626 ], [ -71.0327, 42.3627 ], [ -71.0330, 42.3627 ], [ -71.0335, 42.3627 ], [ -71.0335, 42.3627 ], [ -71.0337, 42.3604 ], [ -71.0339, 42.3604 ], [ -71.0336, 42.3633 ], [ -71.0339, 42.3634 ], [ -71.0356, 42.3613 ], [ -71.0357, 42.3614 ], [ -71.0340, 42.3634 ], [ -71.0341, 42.3635 ], [ -71.0341, 42.3637 ], [ -71.0341, 42.3637 ], [ -71.0342, 42.3639 ], [ -71.0344, 42.3640 ], [ -71.0345, 42.3639 ], [ -71.0345, 42.3639 ], [ -71.0345, 42.3639 ], [ -71.0345, 42.3639 ], [ -71.0345, 42.3639 ], [ -71.0346, 42.3639 ], [ -71.0346, 42.3639 ], [ -71.0346, 42.3638 ], [ -71.0347, 42.3639 ], [ -71.0347, 42.3638 ], [ -71.0349, 42.3638 ], [ -71.0350, 42.3639 ], [ -71.0350, 42.3639 ], [ -71.0351, 42.3640 ], [ -71.0351, 42.3640 ], [ -71.0351, 42.3640 ], [ -71.0352, 42.3640 ], [ -71.0352, 42.3640 ], [ -71.0353, 42.3641 ], [ -71.0353, 42.3641 ], [ -71.0353, 42.3641 ], [ -71.0353, 42.3641 ], [ -71.0354, 42.3641 ], [ -71.0354, 42.3640 ], [ -71.0354, 42.3640 ], [ -71.0355, 42.3640 ], [ -71.0355, 42.3640 ], [ -71.0355, 42.3640 ], [ -71.0355, 42.3640 ], [ -71.0355, 42.3640 ], [ -71.0355, 42.3640 ], [ -71.0356, 42.3640 ], [ -71.0356, 42.3640 ], [ -71.0356, 42.3640 ], [ -71.0356, 42.3640 ], [ -71.0356, 42.3640 ], [ -71.0356, 42.3640 ], [ -71.0356, 42.3640 ], [ -71.0356, 42.3640 ], [ -71.0356, 42.3640 ], [ -71.0356, 42.3640 ], [ -71.0356, 42.3640 ], [ -71.0356, 42.3640 ], [ -71.0356, 42.3640 ], [ -71.0356, 42.3640 ], [ -71.0356, 42.3640 ], [ -71.0356, 42.3640 ], [ -71.0356, 42.3640 ], [ -71.0356, 42.3641 ], [ -71.0356, 42.3641 ], [ -71.0361, 42.3643 ], [ -71.0364, 42.3639 ], [ -71.0365, 42.3637 ], [ -71.0365, 42.3637 ], [ -71.0365, 42.3637 ], [ -71.0365, 42.3636 ], [ -71.0365, 42.3636 ], [ -71.0368, 42.3633 ], [ -71.0368, 42.3633 ], [ -71.0368, 42.3632 ], [ -71.0368, 42.3632 ], [ -71.0369, 42.3631 ], [ -71.0369, 42.3631 ], [ -71.0370, 42.3630 ], [ -71.0370, 42.3630 ], [ -71.0371, 42.3629 ], [ -71.0371, 42.3629 ], [ -71.0371, 42.3629 ], [ -71.0371, 42.3629 ], [ -71.0372, 42.3627 ], [ -71.0373, 42.3628 ], [ -71.0373, 42.3628 ], [ -71.0374, 42.3628 ], [ -71.0374, 42.3628 ], [ -71.0374, 42.3628 ], [ -71.0374, 42.3628 ], [ -71.0374, 42.3628 ], [ -71.0374, 42.3628 ], [ -71.0374, 42.3628 ], [ -71.0374, 42.3628 ], [ -71.0374, 42.3628 ], [ -71.0374, 42.3628 ], [ -71.0374, 42.3628 ], [ -71.0374, 42.3628 ], [ -71.0374, 42.3628 ], [ -71.0374, 42.3628 ], [ -71.0374, 42.3628 ], [ -71.0374, 42.3628 ], [ -71.0374, 42.3628 ], [ -71.0375, 42.3628 ], [ -71.0375, 42.3628 ], [ -71.0375, 42.3628 ], [ -71.0375, 42.3628 ], [ -71.0375, 42.3628 ], [ -71.0375, 42.3628 ], [ -71.0375, 42.3628 ], [ -71.0375, 42.3629 ], [ -71.0375, 42.3629 ], [ -71.0375, 42.3629 ], [ -71.0375, 42.3629 ], [ -71.0375, 42.3629 ], [ -71.0375, 42.3629 ], [ -71.0375, 42.3629 ], [ -71.0375, 42.3629 ], [ -71.0375, 42.3629 ], [ -71.0375, 42.3629 ], [ -71.0375, 42.3629 ], [ -71.0375, 42.3629 ], [ -71.0375, 42.3629 ], [ -71.0375, 42.3629 ], [ -71.0375, 42.3629 ], [ -71.0375, 42.3629 ], [ -71.0374, 42.3629 ], [ -71.0374, 42.3629 ], [ -71.0374, 42.3629 ], [ -71.0374, 42.3629 ], [ -71.0374, 42.3629 ], [ -71.0374, 42.3630 ], [ -71.0371, 42.3633 ], [ -71.0372, 42.3634 ], [ -71.0372, 42.3634 ], [ -71.0372, 42.3634 ], [ -71.0369, 42.3638 ], [ -71.0369, 42.3638 ], [ -71.0368, 42.3638 ], [ -71.0368, 42.3638 ], [ -71.0367, 42.3639 ], [ -71.0367, 42.3640 ], [ -71.0367, 42.3640 ], [ -71.0367, 42.3640 ], [ -71.0366, 42.3641 ], [ -71.0366, 42.3641 ], [ -71.0366, 42.3642 ], [ -71.0365, 42.3642 ], [ -71.0364, 42.3644 ], [ -71.0364, 42.3644 ], [ -71.0364, 42.3644 ], [ -71.0364, 42.3644 ], [ -71.0364, 42.3644 ], [ -71.0364, 42.3644 ], [ -71.0364, 42.3644 ], [ -71.0364, 42.3644 ], [ -71.0364, 42.3644 ], [ -71.0364, 42.3644 ], [ -71.0364, 42.3644 ], [ -71.0364, 42.3644 ], [ -71.0364, 42.3644 ], [ -71.0364, 42.3644 ], [ -71.0364, 42.3644 ], [ -71.0364, 42.3644 ], [ -71.0364, 42.3644 ], [ -71.0364, 42.3644 ], [ -71.0364, 42.3644 ], [ -71.0364, 42.3644 ], [ -71.0364, 42.3644 ], [ -71.0364, 42.3644 ], [ -71.0364, 42.3644 ], [ -71.0364, 42.3644 ], [ -71.0364, 42.3644 ], [ -71.0364, 42.3644 ], [ -71.0363, 42.3645 ], [ -71.0364, 42.3645 ], [ -71.0364, 42.3646 ], [ -71.0364, 42.3646 ], [ -71.0364, 42.3646 ], [ -71.0364, 42.3646 ], [ -71.0365, 42.3646 ], [ -71.0366, 42.3646 ], [ -71.0372, 42.3649 ], [ -71.0372, 42.3649 ], [ -71.0373, 42.3649 ], [ -71.0373, 42.3649 ], [ -71.0373, 42.3649 ], [ -71.0373, 42.3649 ], [ -71.0373, 42.3649 ], [ -71.0373, 42.3649 ], [ -71.0373, 42.3650 ], [ -71.0373, 42.3650 ], [ -71.0373, 42.3650 ], [ -71.0374, 42.3650 ], [ -71.0374, 42.3650 ], [ -71.0374, 42.3650 ], [ -71.0374, 42.3650 ], [ -71.0374, 42.3650 ], [ -71.0374, 42.3650 ], [ -71.0374, 42.3650 ], [ -71.0374, 42.3650 ], [ -71.0374, 42.3650 ], [ -71.0374, 42.3650 ], [ -71.0374, 42.3650 ], [ -71.0374, 42.3649 ], [ -71.0374, 42.3649 ], [ -71.0374, 42.3649 ], [ -71.0374, 42.3649 ], [ -71.0375, 42.3649 ], [ -71.0375, 42.3649 ], [ -71.0375, 42.3649 ], [ -71.0375, 42.3648 ], [ -71.0375, 42.3648 ], [ -71.0375, 42.3648 ], [ -71.0375, 42.3648 ], [ -71.0375, 42.3648 ], [ -71.0375, 42.3648 ], [ -71.0375, 42.3648 ], [ -71.0375, 42.3648 ], [ -71.0375, 42.3648 ], [ -71.0375, 42.3648 ], [ -71.0374, 42.3648 ], [ -71.0374, 42.3648 ], [ -71.0374, 42.3648 ], [ -71.0374, 42.3648 ], [ -71.0374, 42.3648 ], [ -71.0374, 42.3648 ], [ -71.0374, 42.3648 ], [ -71.0374, 42.3648 ], [ -71.0374, 42.3648 ], [ -71.0374, 42.3648 ], [ -71.0374, 42.3648 ], [ -71.0374, 42.3648 ], [ -71.0374, 42.3648 ], [ -71.0374, 42.3648 ], [ -71.0374, 42.3648 ], [ -71.0375, 42.3648 ], [ -71.0375, 42.3648 ], [ -71.0375, 42.3647 ], [ -71.0376, 42.3647 ], [ -71.0376, 42.3647 ], [ -71.0376, 42.3647 ], [ -71.0376, 42.3647 ], [ -71.0376, 42.3647 ], [ -71.0376, 42.3647 ], [ -71.0376, 42.3647 ], [ -71.0377, 42.3647 ], [ -71.0377, 42.3647 ], [ -71.0377, 42.3647 ], [ -71.0377, 42.3647 ], [ -71.0377, 42.3647 ], [ -71.0377, 42.3647 ], [ -71.0377, 42.3647 ], [ -71.0377, 42.3647 ], [ -71.0377, 42.3647 ], [ -71.0378, 42.3647 ], [ -71.0378, 42.3647 ], [ -71.0378, 42.3647 ], [ -71.0378, 42.3647 ], [ -71.0378, 42.3647 ], [ -71.0378, 42.3647 ], [ -71.0378, 42.3647 ], [ -71.0378, 42.3646 ], [ -71.0379, 42.3646 ], [ -71.0379, 42.3646 ], [ -71.0379, 42.3646 ], [ -71.0379, 42.3646 ], [ -71.0379, 42.3646 ], [ -71.0379, 42.3646 ], [ -71.0379, 42.3646 ], [ -71.0379, 42.3646 ], [ -71.0379, 42.3646 ], [ -71.0385, 42.3648 ], [ -71.0385, 42.3648 ], [ -71.0385, 42.3648 ], [ -71.0385, 42.3648 ], [ -71.0385, 42.3648 ], [ -71.0385, 42.3648 ], [ -71.0385, 42.3648 ], [ -71.0385, 42.3648 ], [ -71.0385, 42.3648 ], [ -71.0385, 42.3648 ], [ -71.0385, 42.3648 ], [ -71.0385, 42.3648 ], [ -71.0385, 42.3648 ], [ -71.0385, 42.3649 ], [ -71.0385, 42.3649 ], [ -71.0385, 42.3649 ], [ -71.0385, 42.3649 ], [ -71.0385, 42.3649 ], [ -71.0385, 42.3649 ], [ -71.0385, 42.3649 ], [ -71.0385, 42.3649 ], [ -71.0385, 42.3649 ], [ -71.0385, 42.3649 ], [ -71.0385, 42.3649 ], [ -71.0385, 42.3649 ], [ -71.0385, 42.3649 ], [ -71.0385, 42.3649 ], [ -71.0385, 42.3649 ], [ -71.0385, 42.3649 ], [ -71.0385, 42.3649 ], [ -71.0385, 42.3649 ], [ -71.0385, 42.3649 ], [ -71.0385, 42.3649 ], [ -71.0385, 42.3649 ], [ -71.0385, 42.3649 ], [ -71.0385, 42.3649 ], [ -71.0385, 42.3649 ], [ -71.0385, 42.3649 ], [ -71.0386, 42.3649 ], [ -71.0386, 42.3650 ], [ -71.0387, 42.3650 ], [ -71.0387, 42.3650 ], [ -71.0387, 42.3650 ], [ -71.0388, 42.3650 ], [ -71.0388, 42.3651 ], [ -71.0389, 42.3651 ], [ -71.0389, 42.3651 ], [ -71.0390, 42.3651 ], [ -71.0390, 42.3651 ], [ -71.0390, 42.3651 ], [ -71.0390, 42.3651 ], [ -71.0391, 42.3651 ], [ -71.0391, 42.3652 ], [ -71.0391, 42.3652 ], [ -71.0391, 42.3652 ], [ -71.0391, 42.3652 ], [ -71.0392, 42.3652 ], [ -71.0392, 42.3652 ], [ -71.0392, 42.3652 ], [ -71.0392, 42.3652 ], [ -71.0392, 42.3652 ], [ -71.0392, 42.3652 ], [ -71.0392, 42.3652 ], [ -71.0392, 42.3652 ], [ -71.0392, 42.3652 ], [ -71.0392, 42.3652 ], [ -71.0392, 42.3652 ], [ -71.0392, 42.3652 ], [ -71.0392, 42.3652 ], [ -71.0392, 42.3652 ], [ -71.0392, 42.3652 ], [ -71.0392, 42.3652 ], [ -71.0392, 42.3652 ], [ -71.0392, 42.3652 ], [ -71.0392, 42.3652 ], [ -71.0392, 42.3652 ], [ -71.0392, 42.3652 ], [ -71.0392, 42.3652 ], [ -71.0392, 42.3652 ], [ -71.0393, 42.3651 ], [ -71.0393, 42.3651 ], [ -71.0393, 42.3651 ], [ -71.0393, 42.3651 ], [ -71.0393, 42.3651 ], [ -71.0394, 42.3652 ], [ -71.0394, 42.3651 ], [ -71.0406, 42.3638 ], [ -71.0406, 42.3638 ], [ -71.0406, 42.3638 ], [ -71.0406, 42.3638 ], [ -71.0406, 42.3638 ], [ -71.0406, 42.3638 ], [ -71.0406, 42.3638 ], [ -71.0406, 42.3638 ], [ -71.0406, 42.3638 ], [ -71.0406, 42.3638 ], [ -71.0406, 42.3638 ], [ -71.0406, 42.3638 ], [ -71.0406, 42.3638 ], [ -71.0406, 42.3638 ], [ -71.0406, 42.3638 ], [ -71.0407, 42.3638 ], [ -71.0418, 42.3643 ], [ -71.0418, 42.3643 ], [ -71.0418, 42.3643 ], [ -71.0418, 42.3643 ], [ -71.0418, 42.3644 ], [ -71.0418, 42.3644 ], [ -71.0418, 42.3644 ], [ -71.0418, 42.3644 ], [ -71.0418, 42.3644 ], [ -71.0418, 42.3644 ], [ -71.0418, 42.3644 ], [ -71.0418, 42.3644 ], [ -71.0418, 42.3644 ], [ -71.0418, 42.3644 ], [ -71.0418, 42.3644 ], [ -71.0418, 42.3644 ], [ -71.0418, 42.3644 ], [ -71.0406, 42.3657 ], [ -71.0406, 42.3657 ], [ -71.0406, 42.3657 ], [ -71.0406, 42.3658 ], [ -71.0408, 42.3658 ], [ -71.0408, 42.3659 ], [ -71.0409, 42.3659 ], [ -71.0409, 42.3659 ], [ -71.0410, 42.3659 ], [ -71.0411, 42.3660 ], [ -71.0412, 42.3660 ], [ -71.0412, 42.3660 ], [ -71.0412, 42.3660 ], [ -71.0412, 42.3660 ], [ -71.0412, 42.3660 ], [ -71.0412, 42.3660 ], [ -71.0412, 42.3660 ], [ -71.0412, 42.3660 ], [ -71.0412, 42.3660 ], [ -71.0412, 42.3660 ], [ -71.0413, 42.3660 ], [ -71.0413, 42.3660 ], [ -71.0413, 42.3660 ], [ -71.0413, 42.3661 ], [ -71.0413, 42.3661 ], [ -71.0414, 42.3661 ], [ -71.0414, 42.3661 ], [ -71.0414, 42.3661 ], [ -71.0414, 42.3661 ], [ -71.0414, 42.3661 ], [ -71.0414, 42.3661 ], [ -71.0415, 42.3661 ], [ -71.0415, 42.3662 ], [ -71.0415, 42.3662 ], [ -71.0415, 42.3662 ], [ -71.0415, 42.3662 ], [ -71.0415, 42.3662 ], [ -71.0415, 42.3662 ], [ -71.0415, 42.3662 ], [ -71.0415, 42.3662 ], [ -71.0415, 42.3662 ], [ -71.0415, 42.3662 ], [ -71.0415, 42.3662 ], [ -71.0415, 42.3662 ], [ -71.0416, 42.3662 ], [ -71.0416, 42.3662 ], [ -71.0416, 42.3662 ], [ -71.0416, 42.3662 ], [ -71.0416, 42.3662 ], [ -71.0416, 42.3662 ], [ -71.0417, 42.3662 ], [ -71.0417, 42.3662 ], [ -71.0417, 42.3662 ], [ -71.0417, 42.3662 ], [ -71.0417, 42.3662 ], [ -71.0417, 42.3662 ], [ -71.0417, 42.3662 ], [ -71.0417, 42.3662 ], [ -71.0417, 42.3662 ], [ -71.0417, 42.3662 ], [ -71.0417, 42.3662 ], [ -71.0417, 42.3662 ], [ -71.0417, 42.3662 ], [ -71.0417, 42.3662 ], [ -71.0417, 42.3662 ], [ -71.0418, 42.3662 ], [ -71.0418, 42.3662 ], [ -71.0418, 42.3663 ], [ -71.0418, 42.3663 ], [ -71.0418, 42.3663 ], [ -71.0418, 42.3663 ], [ -71.0418, 42.3663 ], [ -71.0419, 42.3663 ], [ -71.0419, 42.3663 ], [ -71.0419, 42.3663 ], [ -71.0419, 42.3663 ], [ -71.0419, 42.3663 ], [ -71.0420, 42.3663 ], [ -71.0420, 42.3663 ], [ -71.0420, 42.3663 ], [ -71.0420, 42.3663 ], [ -71.0420, 42.3663 ], [ -71.0421, 42.3663 ], [ -71.0421, 42.3663 ], [ -71.0421, 42.3663 ], [ -71.0421, 42.3663 ], [ -71.0421, 42.3663 ], [ -71.0421, 42.3663 ], [ -71.0421, 42.3663 ], [ -71.0421, 42.3663 ], [ -71.0421, 42.3663 ], [ -71.0421, 42.3663 ], [ -71.0422, 42.3663 ], [ -71.0422, 42.3663 ], [ -71.0422, 42.3663 ], [ -71.0422, 42.3663 ], [ -71.0422, 42.3663 ], [ -71.0422, 42.3663 ], [ -71.0422, 42.3663 ], [ -71.0422, 42.3663 ], [ -71.0423, 42.3663 ], [ -71.0423, 42.3663 ], [ -71.0423, 42.3663 ], [ -71.0423, 42.3663 ], [ -71.0423, 42.3663 ], [ -71.0423, 42.3663 ], [ -71.0423, 42.3663 ], [ -71.0423, 42.3663 ], [ -71.0423, 42.3663 ], [ -71.0423, 42.3663 ], [ -71.0423, 42.3663 ], [ -71.0423, 42.3664 ], [ -71.0423, 42.3664 ], [ -71.0423, 42.3664 ], [ -71.0423, 42.3664 ], [ -71.0423, 42.3664 ], [ -71.0423, 42.3664 ], [ -71.0423, 42.3664 ], [ -71.0423, 42.3664 ], [ -71.0423, 42.3664 ], [ -71.0423, 42.3664 ], [ -71.0423, 42.3664 ], [ -71.0423, 42.3664 ], [ -71.0423, 42.3665 ], [ -71.0422, 42.3665 ], [ -71.0422, 42.3665 ], [ -71.0422, 42.3665 ], [ -71.0422, 42.3665 ], [ -71.0422, 42.3665 ], [ -71.0422, 42.3665 ], [ -71.0422, 42.3665 ], [ -71.0422, 42.3665 ], [ -71.0423, 42.3665 ], [ -71.0417, 42.3672 ], [ -71.0421, 42.3674 ], [ -71.0421, 42.3674 ], [ -71.0422, 42.3673 ], [ -71.0426, 42.3671 ], [ -71.0427, 42.3670 ], [ -71.0427, 42.3670 ], [ -71.0428, 42.3669 ], [ -71.0428, 42.3669 ], [ -71.0429, 42.3669 ], [ -71.0429, 42.3670 ], [ -71.0428, 42.3670 ], [ -71.0428, 42.3671 ], [ -71.0428, 42.3671 ], [ -71.0429, 42.3672 ], [ -71.0427, 42.3675 ], [ -71.0428, 42.3675 ], [ -71.0427, 42.3676 ], [ -71.0426, 42.3677 ], [ -71.0426, 42.3677 ], [ -71.0426, 42.3677 ], [ -71.0426, 42.3678 ], [ -71.0425, 42.3678 ], [ -71.0425, 42.3678 ], [ -71.0425, 42.3679 ], [ -71.0424, 42.3679 ], [ -71.0424, 42.3679 ], [ -71.0424, 42.3679 ], [ -71.0424, 42.3679 ], [ -71.0424, 42.3680 ], [ -71.0423, 42.3681 ], [ -71.0423, 42.3681 ], [ -71.0423, 42.3681 ], [ -71.0422, 42.3682 ], [ -71.0422, 42.3682 ], [ -71.0422, 42.3682 ], [ -71.0422, 42.3682 ], [ -71.0422, 42.3682 ], [ -71.0422, 42.3682 ], [ -71.0422, 42.3682 ], [ -71.0422, 42.3683 ], [ -71.0422, 42.3683 ], [ -71.0422, 42.3683 ], [ -71.0422, 42.3683 ], [ -71.0422, 42.3683 ], [ -71.0422, 42.3683 ], [ -71.0422, 42.3683 ], [ -71.0422, 42.3683 ], [ -71.0422, 42.3683 ], [ -71.0422, 42.3683 ], [ -71.0420, 42.3686 ], [ -71.0420, 42.3686 ], [ -71.0420, 42.3686 ], [ -71.0423, 42.3687 ], [ -71.0423, 42.3687 ], [ -71.0423, 42.3687 ], [ -71.0424, 42.3687 ], [ -71.0424, 42.3687 ], [ -71.0424, 42.3687 ], [ -71.0425, 42.3685 ], [ -71.0426, 42.3686 ], [ -71.0426, 42.3686 ], [ -71.0426, 42.3686 ], [ -71.0426, 42.3686 ], [ -71.0426, 42.3686 ], [ -71.0427, 42.3686 ], [ -71.0427, 42.3686 ], [ -71.0427, 42.3686 ], [ -71.0427, 42.3686 ], [ -71.0427, 42.3686 ], [ -71.0427, 42.3687 ], [ -71.0427, 42.3687 ], [ -71.0427, 42.3687 ], [ -71.0428, 42.3687 ], [ -71.0428, 42.3687 ], [ -71.0428, 42.3686 ], [ -71.0429, 42.3686 ], [ -71.0427, 42.3688 ], [ -71.0428, 42.3688 ], [ -71.0428, 42.3689 ], [ -71.0429, 42.3690 ], [ -71.0429, 42.3689 ], [ -71.0431, 42.3690 ], [ -71.0431, 42.3690 ], [ -71.0432, 42.3690 ], [ -71.0431, 42.3692 ], [ -71.0430, 42.3692 ], [ -71.0430, 42.3693 ], [ -71.0430, 42.3693 ], [ -71.0430, 42.3693 ], [ -71.0430, 42.3693 ], [ -71.0434, 42.3694 ], [ -71.0436, 42.3692 ], [ -71.0435, 42.3692 ], [ -71.0436, 42.3691 ], [ -71.0437, 42.3692 ], [ -71.0437, 42.3692 ], [ -71.0436, 42.3692 ], [ -71.0434, 42.3695 ], [ -71.0438, 42.3696 ], [ -71.0439, 42.3696 ], [ -71.0439, 42.3696 ], [ -71.0439, 42.3696 ], [ -71.0439, 42.3696 ], [ -71.0439, 42.3696 ], [ -71.0440, 42.3696 ], [ -71.0440, 42.3696 ], [ -71.0440, 42.3696 ], [ -71.0440, 42.3696 ], [ -71.0440, 42.3696 ], [ -71.0440, 42.3696 ], [ -71.0440, 42.3696 ], [ -71.0440, 42.3696 ], [ -71.0441, 42.3696 ], [ -71.0441, 42.3696 ], [ -71.0441, 42.3696 ], [ -71.0441, 42.3696 ], [ -71.0441, 42.3696 ], [ -71.0441, 42.3696 ], [ -71.0442, 42.3696 ], [ -71.0442, 42.3696 ], [ -71.0442, 42.3696 ], [ -71.0442, 42.3696 ], [ -71.0442, 42.3696 ], [ -71.0442, 42.3696 ], [ -71.0442, 42.3696 ], [ -71.0442, 42.3696 ], [ -71.0442, 42.3696 ], [ -71.0442, 42.3696 ], [ -71.0443, 42.3696 ], [ -71.0443, 42.3696 ], [ -71.0443, 42.3696 ], [ -71.0443, 42.3696 ], [ -71.0443, 42.3696 ], [ -71.0443, 42.3696 ], [ -71.0443, 42.3697 ], [ -71.0443, 42.3697 ], [ -71.0443, 42.3697 ], [ -71.0443, 42.3697 ], [ -71.0443, 42.3697 ], [ -71.0443, 42.3697 ], [ -71.0443, 42.3697 ], [ -71.0443, 42.3697 ], [ -71.0444, 42.3697 ], [ -71.0443, 42.3697 ], [ -71.0443, 42.3697 ], [ -71.0443, 42.3697 ], [ -71.0443, 42.3698 ], [ -71.0442, 42.3699 ], [ -71.0442, 42.3699 ], [ -71.0441, 42.3700 ], [ -71.0441, 42.3700 ], [ -71.0441, 42.3701 ], [ -71.0440, 42.3701 ], [ -71.0440, 42.3702 ], [ -71.0440, 42.3702 ], [ -71.0440, 42.3702 ], [ -71.0439, 42.3702 ], [ -71.0439, 42.3702 ], [ -71.0439, 42.3702 ], [ -71.0439, 42.3703 ], [ -71.0439, 42.3703 ], [ -71.0439, 42.3703 ], [ -71.0439, 42.3703 ], [ -71.0439, 42.3703 ], [ -71.0439, 42.3703 ], [ -71.0439, 42.3703 ], [ -71.0439, 42.3703 ], [ -71.0439, 42.3703 ], [ -71.0439, 42.3703 ], [ -71.0439, 42.3703 ], [ -71.0439, 42.3703 ], [ -71.0440, 42.3703 ], [ -71.0440, 42.3703 ], [ -71.0440, 42.3703 ], [ -71.0440, 42.3703 ], [ -71.0441, 42.3704 ], [ -71.0441, 42.3704 ], [ -71.0442, 42.3704 ], [ -71.0443, 42.3705 ], [ -71.0443, 42.3705 ], [ -71.0444, 42.3705 ], [ -71.0444, 42.3705 ], [ -71.0444, 42.3705 ], [ -71.0444, 42.3705 ], [ -71.0444, 42.3705 ], [ -71.0444, 42.3705 ], [ -71.0444, 42.3705 ], [ -71.0444, 42.3705 ], [ -71.0444, 42.3705 ], [ -71.0445, 42.3705 ], [ -71.0445, 42.3704 ], [ -71.0446, 42.3704 ], [ -71.0446, 42.3704 ], [ -71.0446, 42.3704 ], [ -71.0446, 42.3704 ], [ -71.0446, 42.3704 ], [ -71.0446, 42.3704 ], [ -71.0446, 42.3704 ], [ -71.0446, 42.3704 ], [ -71.0446, 42.3704 ], [ -71.0446, 42.3704 ], [ -71.0446, 42.3704 ], [ -71.0446, 42.3704 ], [ -71.0447, 42.3704 ], [ -71.0447, 42.3704 ], [ -71.0448, 42.3704 ], [ -71.0449, 42.3705 ], [ -71.0449, 42.3705 ], [ -71.0449, 42.3705 ], [ -71.0449, 42.3705 ], [ -71.0449, 42.3705 ], [ -71.0449, 42.3705 ], [ -71.0449, 42.3705 ], [ -71.0449, 42.3706 ], [ -71.0449, 42.3706 ], [ -71.0448, 42.3707 ], [ -71.0448, 42.3708 ], [ -71.0447, 42.3709 ], [ -71.0447, 42.3710 ], [ -71.0449, 42.3710 ], [ -71.0449, 42.3710 ], [ -71.0449, 42.3710 ], [ -71.0449, 42.3710 ], [ -71.0449, 42.3710 ], [ -71.0449, 42.3710 ], [ -71.0449, 42.3710 ], [ -71.0449, 42.3710 ], [ -71.0449, 42.3711 ], [ -71.0449, 42.3711 ], [ -71.0449, 42.3711 ], [ -71.0449, 42.3711 ], [ -71.0449, 42.3711 ], [ -71.0449, 42.3711 ], [ -71.0449, 42.3711 ], [ -71.0449, 42.3711 ], [ -71.0449, 42.3711 ], [ -71.0449, 42.3711 ], [ -71.0449, 42.3711 ], [ -71.0449, 42.3711 ], [ -71.0449, 42.3711 ], [ -71.0449, 42.3711 ], [ -71.0448, 42.3713 ], [ -71.0448, 42.3713 ], [ -71.0448, 42.3713 ], [ -71.0457, 42.3715 ], [ -71.0456, 42.3717 ], [ -71.0448, 42.3714 ], [ -71.0446, 42.3713 ], [ -71.0446, 42.3713 ], [ -71.0446, 42.3713 ], [ -71.0446, 42.3713 ], [ -71.0445, 42.3713 ], [ -71.0445, 42.3713 ], [ -71.0445, 42.3713 ], [ -71.0445, 42.3713 ], [ -71.0445, 42.3713 ], [ -71.0445, 42.3713 ], [ -71.0445, 42.3713 ], [ -71.0445, 42.3713 ], [ -71.0445, 42.3713 ], [ -71.0445, 42.3713 ], [ -71.0445, 42.3713 ], [ -71.0445, 42.3713 ], [ -71.0445, 42.3713 ], [ -71.0445, 42.3713 ], [ -71.0445, 42.3713 ], [ -71.0445, 42.3713 ], [ -71.0445, 42.3713 ], [ -71.0445, 42.3713 ], [ -71.0445, 42.3713 ], [ -71.0445, 42.3713 ], [ -71.0445, 42.3713 ], [ -71.0445, 42.3713 ], [ -71.0445, 42.3713 ], [ -71.0445, 42.3713 ], [ -71.0444, 42.3713 ], [ -71.0444, 42.3714 ], [ -71.0444, 42.3715 ], [ -71.0444, 42.3715 ], [ -71.0445, 42.3715 ], [ -71.0446, 42.3715 ], [ -71.0446, 42.3716 ], [ -71.0447, 42.3716 ], [ -71.0447, 42.3716 ], [ -71.0448, 42.3716 ], [ -71.0447, 42.3717 ], [ -71.0447, 42.3717 ], [ -71.0447, 42.3717 ], [ -71.0447, 42.3718 ], [ -71.0453, 42.3720 ], [ -71.0453, 42.3721 ], [ -71.0447, 42.3718 ], [ -71.0445, 42.3718 ], [ -71.0443, 42.3717 ], [ -71.0439, 42.3717 ], [ -71.0438, 42.3718 ], [ -71.0439, 42.3719 ], [ -71.0451, 42.3724 ], [ -71.0450, 42.3725 ], [ -71.0441, 42.3721 ], [ -71.0439, 42.3724 ], [ -71.0448, 42.3729 ], [ -71.0446, 42.3731 ], [ -71.0439, 42.3728 ], [ -71.0436, 42.3728 ], [ -71.0428, 42.3725 ], [ -71.0426, 42.3724 ], [ -71.0425, 42.3725 ], [ -71.0425, 42.3725 ], [ -71.0425, 42.3725 ], [ -71.0424, 42.3726 ], [ -71.0424, 42.3727 ], [ -71.0423, 42.3728 ], [ -71.0423, 42.3728 ], [ -71.0423, 42.3728 ], [ -71.0423, 42.3728 ], [ -71.0423, 42.3728 ], [ -71.0423, 42.3728 ], [ -71.0423, 42.3728 ], [ -71.0423, 42.3728 ], [ -71.0422, 42.3728 ], [ -71.0422, 42.3728 ], [ -71.0422, 42.3728 ], [ -71.0422, 42.3728 ], [ -71.0422, 42.3728 ], [ -71.0422, 42.3728 ], [ -71.0422, 42.3728 ], [ -71.0422, 42.3728 ], [ -71.0422, 42.3728 ], [ -71.0422, 42.3729 ], [ -71.0422, 42.3729 ], [ -71.0422, 42.3729 ], [ -71.0422, 42.3729 ], [ -71.0422, 42.3729 ], [ -71.0422, 42.3729 ], [ -71.0422, 42.3729 ], [ -71.0422, 42.3729 ], [ -71.0422, 42.3729 ], [ -71.0422, 42.3729 ], [ -71.0422, 42.3729 ], [ -71.0422, 42.3729 ], [ -71.0422, 42.3729 ], [ -71.0422, 42.3729 ], [ -71.0422, 42.3729 ], [ -71.0422, 42.3729 ], [ -71.0422, 42.3729 ], [ -71.0422, 42.3729 ], [ -71.0422, 42.3729 ], [ -71.0422, 42.3729 ], [ -71.0422, 42.3729 ], [ -71.0422, 42.3729 ], [ -71.0422, 42.3729 ], [ -71.0422, 42.3729 ], [ -71.0422, 42.3729 ], [ -71.0421, 42.3729 ], [ -71.0421, 42.3729 ], [ -71.0421, 42.3729 ], [ -71.0421, 42.3729 ], [ -71.0421, 42.3729 ], [ -71.0421, 42.3729 ], [ -71.0422, 42.3729 ], [ -71.0422, 42.3729 ], [ -71.0422, 42.3729 ], [ -71.0422, 42.3729 ], [ -71.0422, 42.3729 ], [ -71.0422, 42.3729 ], [ -71.0422, 42.3729 ], [ -71.0422, 42.3729 ], [ -71.0422, 42.3729 ], [ -71.0422, 42.3729 ], [ -71.0422, 42.3729 ], [ -71.0422, 42.3729 ], [ -71.0422, 42.3729 ], [ -71.0422, 42.3729 ], [ -71.0422, 42.3729 ], [ -71.0422, 42.3729 ], [ -71.0422, 42.3729 ], [ -71.0422, 42.3729 ], [ -71.0422, 42.3729 ], [ -71.0422, 42.3729 ], [ -71.0422, 42.3729 ], [ -71.0422, 42.3729 ], [ -71.0422, 42.3730 ], [ -71.0422, 42.3730 ], [ -71.0422, 42.3730 ], [ -71.0422, 42.3730 ], [ -71.0422, 42.3730 ], [ -71.0422, 42.3730 ], [ -71.0422, 42.3730 ], [ -71.0421, 42.3730 ], [ -71.0421, 42.3730 ], [ -71.0421, 42.3730 ], [ -71.0421, 42.3730 ], [ -71.0421, 42.3730 ], [ -71.0421, 42.3730 ], [ -71.0421, 42.3730 ], [ -71.0421, 42.3730 ], [ -71.0421, 42.3730 ], [ -71.0421, 42.3730 ], [ -71.0421, 42.3730 ], [ -71.0421, 42.3730 ], [ -71.0421, 42.3730 ], [ -71.0421, 42.3730 ], [ -71.0421, 42.3730 ], [ -71.0421, 42.3730 ], [ -71.0421, 42.3730 ], [ -71.0421, 42.3730 ], [ -71.0421, 42.3730 ], [ -71.0421, 42.3730 ], [ -71.0421, 42.3730 ], [ -71.0421, 42.3730 ], [ -71.0421, 42.3730 ], [ -71.0421, 42.3730 ], [ -71.0421, 42.3730 ], [ -71.0421, 42.3730 ], [ -71.0420, 42.3730 ], [ -71.0420, 42.3730 ], [ -71.0420, 42.3730 ], [ -71.0420, 42.3730 ], [ -71.0420, 42.3730 ], [ -71.0420, 42.3730 ], [ -71.0420, 42.3730 ], [ -71.0420, 42.3730 ], [ -71.0420, 42.3730 ], [ -71.0420, 42.3730 ], [ -71.0420, 42.3730 ], [ -71.0420, 42.3730 ], [ -71.0420, 42.3730 ], [ -71.0420, 42.3730 ], [ -71.0420, 42.3730 ], [ -71.0420, 42.3730 ], [ -71.0420, 42.3730 ], [ -71.0420, 42.3730 ], [ -71.0420, 42.3730 ], [ -71.0420, 42.3730 ], [ -71.0420, 42.3730 ], [ -71.0420, 42.3730 ], [ -71.0420, 42.3730 ], [ -71.0420, 42.3730 ], [ -71.0420, 42.3730 ], [ -71.0420, 42.3730 ], [ -71.0420, 42.3730 ], [ -71.0421, 42.3730 ], [ -71.0421, 42.3730 ], [ -71.0421, 42.3730 ], [ -71.0421, 42.3730 ], [ -71.0421, 42.3730 ], [ -71.0421, 42.3730 ], [ -71.0421, 42.3730 ], [ -71.0421, 42.3730 ], [ -71.0421, 42.3730 ], [ -71.0421, 42.3730 ], [ -71.0421, 42.3730 ], [ -71.0421, 42.3730 ], [ -71.0421, 42.3730 ], [ -71.0421, 42.3730 ], [ -71.0421, 42.3730 ], [ -71.0421, 42.3730 ], [ -71.0421, 42.3730 ], [ -71.0421, 42.3731 ], [ -71.0421, 42.3731 ], [ -71.0421, 42.3731 ], [ -71.0421, 42.3731 ], [ -71.0421, 42.3731 ], [ -71.0421, 42.3731 ], [ -71.0421, 42.3731 ], [ -71.0421, 42.3731 ], [ -71.0421, 42.3731 ], [ -71.0421, 42.3731 ], [ -71.0421, 42.3731 ], [ -71.0421, 42.3731 ], [ -71.0421, 42.3731 ], [ -71.0421, 42.3731 ], [ -71.0421, 42.3731 ], [ -71.0421, 42.3731 ], [ -71.0421, 42.3731 ], [ -71.0420, 42.3731 ], [ -71.0420, 42.3731 ], [ -71.0420, 42.3731 ], [ -71.0420, 42.3731 ], [ -71.0419, 42.3731 ], [ -71.0419, 42.3731 ], [ -71.0419, 42.3731 ], [ -71.0419, 42.3731 ], [ -71.0420, 42.3731 ], [ -71.0420, 42.3732 ], [ -71.0420, 42.3732 ], [ -71.0421, 42.3731 ], [ -71.0421, 42.3731 ], [ -71.0421, 42.3731 ], [ -71.0421, 42.3731 ], [ -71.0421, 42.3732 ], [ -71.0421, 42.3732 ], [ -71.0421, 42.3732 ], [ -71.0421, 42.3732 ], [ -71.0421, 42.3732 ], [ -71.0421, 42.3732 ], [ -71.0421, 42.3732 ], [ -71.0421, 42.3732 ], [ -71.0422, 42.3732 ], [ -71.0422, 42.3732 ], [ -71.0422, 42.3732 ], [ -71.0421, 42.3732 ], [ -71.0421, 42.3733 ], [ -71.0421, 42.3733 ], [ -71.0421, 42.3733 ], [ -71.0421, 42.3733 ], [ -71.0420, 42.3734 ], [ -71.0420, 42.3734 ], [ -71.0420, 42.3734 ], [ -71.0420, 42.3734 ], [ -71.0420, 42.3734 ], [ -71.0420, 42.3734 ], [ -71.0420, 42.3734 ], [ -71.0420, 42.3734 ], [ -71.0420, 42.3734 ], [ -71.0420, 42.3734 ], [ -71.0420, 42.3734 ], [ -71.0420, 42.3734 ], [ -71.0420, 42.3734 ], [ -71.0420, 42.3734 ], [ -71.0420, 42.3734 ], [ -71.0420, 42.3734 ], [ -71.0420, 42.3734 ], [ -71.0420, 42.3734 ], [ -71.0420, 42.3735 ], [ -71.0420, 42.3735 ], [ -71.0420, 42.3735 ], [ -71.0420, 42.3735 ], [ -71.0420, 42.3735 ], [ -71.0419, 42.3735 ], [ -71.0419, 42.3735 ], [ -71.0419, 42.3735 ], [ -71.0419, 42.3735 ], [ -71.0419, 42.3735 ], [ -71.0419, 42.3735 ], [ -71.0418, 42.3735 ], [ -71.0418, 42.3735 ], [ -71.0417, 42.3736 ], [ -71.0417, 42.3736 ], [ -71.0416, 42.3736 ], [ -71.0416, 42.3736 ], [ -71.0416, 42.3737 ], [ -71.0415, 42.3737 ], [ -71.0414, 42.3738 ], [ -71.0414, 42.3738 ], [ -71.0414, 42.3738 ], [ -71.0414, 42.3738 ], [ -71.0414, 42.3739 ], [ -71.0413, 42.3739 ], [ -71.0413, 42.3739 ], [ -71.0413, 42.3739 ], [ -71.0413, 42.3739 ], [ -71.0413, 42.3739 ], [ -71.0413, 42.3739 ], [ -71.0413, 42.3739 ], [ -71.0413, 42.3740 ], [ -71.0412, 42.3740 ], [ -71.0412, 42.3740 ], [ -71.0412, 42.3740 ], [ -71.0412, 42.3740 ], [ -71.0411, 42.3741 ], [ -71.0411, 42.3741 ], [ -71.0411, 42.3741 ], [ -71.0411, 42.3741 ], [ -71.0411, 42.3741 ], [ -71.0411, 42.3741 ], [ -71.0411, 42.3741 ], [ -71.0411, 42.3741 ], [ -71.0411, 42.3741 ], [ -71.0411, 42.3741 ], [ -71.0411, 42.3741 ], [ -71.0411, 42.3741 ], [ -71.0411, 42.3741 ], [ -71.0411, 42.3741 ], [ -71.0411, 42.3741 ], [ -71.0411, 42.3741 ], [ -71.0411, 42.3741 ], [ -71.0411, 42.3741 ], [ -71.0411, 42.3742 ], [ -71.0411, 42.3742 ], [ -71.0411, 42.3742 ], [ -71.0412, 42.3742 ], [ -71.0412, 42.3742 ], [ -71.0412, 42.3742 ], [ -71.0412, 42.3742 ], [ -71.0412, 42.3742 ], [ -71.0412, 42.3742 ], [ -71.0412, 42.3742 ], [ -71.0412, 42.3742 ], [ -71.0412, 42.3742 ], [ -71.0412, 42.3742 ], [ -71.0413, 42.3742 ], [ -71.0413, 42.3742 ], [ -71.0413, 42.3742 ], [ -71.0413, 42.3742 ], [ -71.0413, 42.3743 ], [ -71.0413, 42.3743 ], [ -71.0413, 42.3743 ], [ -71.0413, 42.3743 ], [ -71.0413, 42.3743 ], [ -71.0413, 42.3743 ], [ -71.0413, 42.3743 ], [ -71.0413, 42.3743 ], [ -71.0413, 42.3743 ], [ -71.0414, 42.3743 ], [ -71.0414, 42.3743 ], [ -71.0414, 42.3744 ], [ -71.0414, 42.3744 ], [ -71.0414, 42.3744 ], [ -71.0414, 42.3744 ], [ -71.0414, 42.3744 ], [ -71.0414, 42.3744 ], [ -71.0414, 42.3744 ], [ -71.0414, 42.3744 ], [ -71.0414, 42.3744 ], [ -71.0414, 42.3744 ], [ -71.0414, 42.3744 ], [ -71.0414, 42.3744 ], [ -71.0414, 42.3744 ], [ -71.0414, 42.3744 ], [ -71.0414, 42.3744 ], [ -71.0414, 42.3745 ], [ -71.0414, 42.3745 ], [ -71.0414, 42.3745 ], [ -71.0414, 42.3745 ], [ -71.0414, 42.3746 ], [ -71.0414, 42.3747 ], [ -71.0414, 42.3747 ], [ -71.0414, 42.3747 ], [ -71.0414, 42.3747 ], [ -71.0414, 42.3747 ], [ -71.0414, 42.3747 ], [ -71.0414, 42.3747 ], [ -71.0414, 42.3747 ], [ -71.0415, 42.3747 ], [ -71.0415, 42.3747 ], [ -71.0415, 42.3747 ], [ -71.0415, 42.3747 ], [ -71.0415, 42.3748 ], [ -71.0415, 42.3748 ], [ -71.0415, 42.3748 ], [ -71.0416, 42.3748 ], [ -71.0416, 42.3748 ], [ -71.0417, 42.3749 ], [ -71.0417, 42.3749 ], [ -71.0418, 42.3749 ], [ -71.0418, 42.3749 ], [ -71.0418, 42.3749 ], [ -71.0418, 42.3749 ], [ -71.0418, 42.3749 ], [ -71.0418, 42.3749 ], [ -71.0418, 42.3750 ], [ -71.0419, 42.3750 ], [ -71.0419, 42.3750 ], [ -71.0419, 42.3750 ], [ -71.0419, 42.3750 ], [ -71.0419, 42.3750 ], [ -71.0419, 42.3750 ], [ -71.0419, 42.3751 ], [ -71.0419, 42.3751 ], [ -71.0419, 42.3751 ], [ -71.0419, 42.3751 ], [ -71.0418, 42.3752 ], [ -71.0418, 42.3752 ], [ -71.0418, 42.3752 ], [ -71.0418, 42.3752 ], [ -71.0418, 42.3752 ], [ -71.0418, 42.3753 ], [ -71.0418, 42.3753 ], [ -71.0418, 42.3753 ], [ -71.0418, 42.3753 ], [ -71.0418, 42.3753 ], [ -71.0418, 42.3753 ], [ -71.0418, 42.3753 ], [ -71.0418, 42.3753 ], [ -71.0418, 42.3753 ], [ -71.0418, 42.3753 ], [ -71.0418, 42.3753 ], [ -71.0418, 42.3753 ], [ -71.0418, 42.3753 ], [ -71.0418, 42.3754 ], [ -71.0418, 42.3754 ], [ -71.0418, 42.3754 ], [ -71.0418, 42.3754 ], [ -71.0418, 42.3754 ], [ -71.0418, 42.3755 ], [ -71.0417, 42.3755 ], [ -71.0417, 42.3756 ], [ -71.0419, 42.3756 ], [ -71.0421, 42.3757 ], [ -71.0423, 42.3757 ], [ -71.0423, 42.3757 ], [ -71.0423, 42.3758 ], [ -71.0422, 42.3759 ], [ -71.0422, 42.3759 ], [ -71.0422, 42.3759 ], [ -71.0422, 42.3759 ], [ -71.0422, 42.3759 ], [ -71.0422, 42.3759 ], [ -71.0422, 42.3759 ], [ -71.0422, 42.3759 ], [ -71.0422, 42.3759 ], [ -71.0422, 42.3759 ], [ -71.0422, 42.3759 ], [ -71.0422, 42.3759 ], [ -71.0422, 42.3759 ], [ -71.0422, 42.3759 ], [ -71.0422, 42.3759 ], [ -71.0422, 42.3759 ], [ -71.0422, 42.3759 ], [ -71.0422, 42.3759 ], [ -71.0413, 42.3758 ], [ -71.0412, 42.3758 ], [ -71.0412, 42.3758 ], [ -71.0412, 42.3760 ], [ -71.0412, 42.3761 ], [ -71.0412, 42.3762 ], [ -71.0411, 42.3762 ], [ -71.0411, 42.3762 ], [ -71.0411, 42.3763 ], [ -71.0411, 42.3763 ], [ -71.0411, 42.3764 ], [ -71.0412, 42.3764 ], [ -71.0412, 42.3764 ], [ -71.0412, 42.3764 ], [ -71.0412, 42.3764 ], [ -71.0412, 42.3764 ], [ -71.0412, 42.3764 ], [ -71.0412, 42.3764 ], [ -71.0412, 42.3764 ], [ -71.0412, 42.3764 ], [ -71.0412, 42.3764 ], [ -71.0412, 42.3764 ], [ -71.0412, 42.3764 ], [ -71.0412, 42.3764 ], [ -71.0412, 42.3764 ], [ -71.0412, 42.3764 ], [ -71.0412, 42.3764 ], [ -71.0412, 42.3764 ], [ -71.0412, 42.3764 ], [ -71.0412, 42.3764 ], [ -71.0412, 42.3764 ], [ -71.0412, 42.3764 ], [ -71.0412, 42.3765 ], [ -71.0412, 42.3765 ], [ -71.0413, 42.3765 ], [ -71.0430, 42.3766 ], [ -71.0430, 42.3766 ], [ -71.0418, 42.3766 ], [ -71.0418, 42.3766 ], [ -71.0413, 42.3766 ], [ -71.0413, 42.3766 ], [ -71.0413, 42.3766 ], [ -71.0413, 42.3766 ], [ -71.0413, 42.3766 ], [ -71.0413, 42.3766 ], [ -71.0413, 42.3766 ], [ -71.0413, 42.3766 ], [ -71.0413, 42.3766 ], [ -71.0413, 42.3766 ], [ -71.0413, 42.3766 ], [ -71.0413, 42.3766 ], [ -71.0413, 42.3766 ], [ -71.0413, 42.3766 ], [ -71.0413, 42.3766 ], [ -71.0413, 42.3766 ], [ -71.0413, 42.3766 ], [ -71.0413, 42.3766 ], [ -71.0413, 42.3766 ], [ -71.0413, 42.3766 ], [ -71.0413, 42.3766 ], [ -71.0413, 42.3766 ], [ -71.0413, 42.3766 ], [ -71.0413, 42.3766 ], [ -71.0413, 42.3766 ], [ -71.0413, 42.3766 ], [ -71.0413, 42.3766 ], [ -71.0413, 42.3766 ], [ -71.0413, 42.3766 ], [ -71.0413, 42.3766 ], [ -71.0413, 42.3767 ], [ -71.0413, 42.3767 ], [ -71.0413, 42.3768 ], [ -71.0413, 42.3768 ], [ -71.0413, 42.3768 ], [ -71.0413, 42.3769 ], [ -71.0413, 42.3769 ], [ -71.0413, 42.3769 ], [ -71.0413, 42.3769 ], [ -71.0413, 42.3770 ], [ -71.0413, 42.3770 ], [ -71.0413, 42.3770 ], [ -71.0413, 42.3770 ], [ -71.0413, 42.3770 ], [ -71.0413, 42.3770 ], [ -71.0413, 42.3770 ], [ -71.0413, 42.3770 ], [ -71.0413, 42.3770 ], [ -71.0413, 42.3770 ], [ -71.0413, 42.3770 ], [ -71.0413, 42.3770 ], [ -71.0413, 42.3770 ], [ -71.0414, 42.3770 ], [ -71.0414, 42.3770 ], [ -71.0414, 42.3770 ], [ -71.0415, 42.3770 ], [ -71.0415, 42.3770 ], [ -71.0415, 42.3770 ], [ -71.0416, 42.3770 ], [ -71.0416, 42.3770 ], [ -71.0417, 42.3770 ], [ -71.0417, 42.3770 ], [ -71.0417, 42.3770 ], [ -71.0418, 42.3770 ], [ -71.0419, 42.3770 ], [ -71.0420, 42.3770 ], [ -71.0422, 42.3770 ], [ -71.0422, 42.3770 ], [ -71.0432, 42.3770 ], [ -71.0432, 42.3771 ], [ -71.0422, 42.3771 ], [ -71.0421, 42.3771 ], [ -71.0421, 42.3771 ], [ -71.0420, 42.3771 ], [ -71.0420, 42.3771 ], [ -71.0420, 42.3772 ], [ -71.0420, 42.3772 ], [ -71.0420, 42.3772 ], [ -71.0420, 42.3772 ], [ -71.0420, 42.3772 ], [ -71.0420, 42.3772 ], [ -71.0420, 42.3772 ], [ -71.0420, 42.3772 ], [ -71.0420, 42.3772 ], [ -71.0420, 42.3772 ], [ -71.0420, 42.3772 ], [ -71.0420, 42.3772 ], [ -71.0420, 42.3772 ], [ -71.0420, 42.3772 ], [ -71.0420, 42.3772 ], [ -71.0420, 42.3772 ], [ -71.0420, 42.3772 ], [ -71.0420, 42.3772 ], [ -71.0420, 42.3772 ], [ -71.0420, 42.3772 ], [ -71.0420, 42.3772 ], [ -71.0420, 42.3772 ], [ -71.0420, 42.3772 ], [ -71.0420, 42.3772 ], [ -71.0420, 42.3772 ], [ -71.0420, 42.3772 ], [ -71.0420, 42.3772 ], [ -71.0420, 42.3772 ], [ -71.0420, 42.3772 ], [ -71.0420, 42.3772 ], [ -71.0419, 42.3772 ], [ -71.0419, 42.3772 ], [ -71.0419, 42.3772 ], [ -71.0419, 42.3772 ], [ -71.0419, 42.3772 ], [ -71.0419, 42.3772 ], [ -71.0419, 42.3772 ], [ -71.0419, 42.3772 ], [ -71.0418, 42.3772 ], [ -71.0417, 42.3772 ], [ -71.0416, 42.3772 ], [ -71.0416, 42.3772 ], [ -71.0416, 42.3772 ], [ -71.0416, 42.3772 ], [ -71.0416, 42.3772 ], [ -71.0416, 42.3772 ], [ -71.0415, 42.3772 ], [ -71.0415, 42.3772 ], [ -71.0415, 42.3772 ], [ -71.0415, 42.3772 ], [ -71.0415, 42.3772 ], [ -71.0415, 42.3772 ], [ -71.0415, 42.3772 ], [ -71.0415, 42.3772 ], [ -71.0415, 42.3772 ], [ -71.0415, 42.3772 ], [ -71.0415, 42.3773 ], [ -71.0415, 42.3773 ], [ -71.0415, 42.3773 ], [ -71.0415, 42.3773 ], [ -71.0415, 42.3773 ], [ -71.0415, 42.3773 ], [ -71.0415, 42.3773 ], [ -71.0415, 42.3774 ], [ -71.0415, 42.3774 ], [ -71.0415, 42.3774 ], [ -71.0415, 42.3774 ], [ -71.0415, 42.3774 ], [ -71.0416, 42.3774 ], [ -71.0416, 42.3774 ], [ -71.0416, 42.3774 ], [ -71.0416, 42.3774 ], [ -71.0416, 42.3774 ], [ -71.0416, 42.3774 ], [ -71.0416, 42.3774 ], [ -71.0416, 42.3774 ], [ -71.0416, 42.3774 ], [ -71.0416, 42.3774 ], [ -71.0416, 42.3774 ], [ -71.0416, 42.3774 ], [ -71.0416, 42.3774 ], [ -71.0416, 42.3774 ], [ -71.0416, 42.3774 ], [ -71.0417, 42.3774 ], [ -71.0417, 42.3774 ], [ -71.0418, 42.3774 ], [ -71.0418, 42.3774 ], [ -71.0419, 42.3774 ], [ -71.0419, 42.3774 ], [ -71.0419, 42.3774 ], [ -71.0419, 42.3774 ], [ -71.0419, 42.3774 ], [ -71.0419, 42.3774 ], [ -71.0419, 42.3774 ], [ -71.0419, 42.3774 ], [ -71.0420, 42.3774 ], [ -71.0420, 42.3774 ], [ -71.0420, 42.3774 ], [ -71.0420, 42.3774 ], [ -71.0420, 42.3774 ], [ -71.0420, 42.3774 ], [ -71.0420, 42.3775 ], [ -71.0420, 42.3776 ], [ -71.0421, 42.3776 ], [ -71.0421, 42.3776 ], [ -71.0421, 42.3777 ], [ -71.0421, 42.3778 ], [ -71.0421, 42.3779 ], [ -71.0422, 42.3779 ], [ -71.0423, 42.3779 ], [ -71.0424, 42.3779 ], [ -71.0426, 42.3779 ], [ -71.0426, 42.3779 ], [ -71.0426, 42.3778 ], [ -71.0427, 42.3778 ], [ -71.0427, 42.3778 ], [ -71.0427, 42.3778 ], [ -71.0427, 42.3778 ], [ -71.0427, 42.3778 ], [ -71.0427, 42.3778 ], [ -71.0427, 42.3778 ], [ -71.0427, 42.3778 ], [ -71.0427, 42.3779 ], [ -71.0427, 42.3779 ], [ -71.0427, 42.3779 ], [ -71.0428, 42.3779 ], [ -71.0428, 42.3779 ], [ -71.0428, 42.3779 ], [ -71.0428, 42.3779 ], [ -71.0428, 42.3779 ], [ -71.0428, 42.3779 ], [ -71.0428, 42.3779 ], [ -71.0428, 42.3780 ], [ -71.0428, 42.3780 ], [ -71.0428, 42.3780 ], [ -71.0428, 42.3780 ], [ -71.0428, 42.3780 ], [ -71.0428, 42.3780 ], [ -71.0428, 42.3780 ], [ -71.0428, 42.3780 ], [ -71.0428, 42.3780 ], [ -71.0428, 42.3780 ], [ -71.0428, 42.3780 ], [ -71.0428, 42.3780 ], [ -71.0428, 42.3780 ], [ -71.0428, 42.3781 ], [ -71.0428, 42.3781 ], [ -71.0428, 42.3781 ], [ -71.0428, 42.3782 ], [ -71.0428, 42.3782 ], [ -71.0428, 42.3782 ], [ -71.0427, 42.3782 ], [ -71.0427, 42.3782 ], [ -71.0427, 42.3782 ], [ -71.0427, 42.3782 ], [ -71.0427, 42.3782 ], [ -71.0427, 42.3782 ], [ -71.0427, 42.3782 ], [ -71.0427, 42.3782 ], [ -71.0427, 42.3782 ], [ -71.0427, 42.3782 ], [ -71.0427, 42.3782 ], [ -71.0427, 42.3782 ], [ -71.0427, 42.3782 ], [ -71.0427, 42.3782 ], [ -71.0427, 42.3782 ], [ -71.0427, 42.3782 ], [ -71.0427, 42.3782 ], [ -71.0427, 42.3782 ], [ -71.0427, 42.3782 ], [ -71.0427, 42.3782 ], [ -71.0427, 42.3783 ], [ -71.0427, 42.3783 ], [ -71.0427, 42.3784 ], [ -71.0427, 42.3784 ], [ -71.0427, 42.3784 ], [ -71.0427, 42.3784 ], [ -71.0427, 42.3784 ], [ -71.0427, 42.3784 ], [ -71.0427, 42.3784 ], [ -71.0427, 42.3784 ], [ -71.0427, 42.3784 ], [ -71.0427, 42.3784 ], [ -71.0427, 42.3784 ], [ -71.0427, 42.3784 ], [ -71.0427, 42.3784 ], [ -71.0427, 42.3784 ], [ -71.0427, 42.3784 ], [ -71.0427, 42.3784 ], [ -71.0428, 42.3784 ], [ -71.0428, 42.3784 ], [ -71.0428, 42.3784 ], [ -71.0428, 42.3784 ], [ -71.0428, 42.3784 ], [ -71.0428, 42.3784 ], [ -71.0428, 42.3784 ], [ -71.0428, 42.3784 ], [ -71.0428, 42.3784 ], [ -71.0428, 42.3784 ], [ -71.0428, 42.3784 ], [ -71.0428, 42.3784 ], [ -71.0428, 42.3784 ], [ -71.0428, 42.3784 ], [ -71.0428, 42.3785 ], [ -71.0428, 42.3786 ], [ -71.0428, 42.3786 ], [ -71.0428, 42.3786 ], [ -71.0428, 42.3786 ], [ -71.0428, 42.3786 ], [ -71.0428, 42.3786 ], [ -71.0428, 42.3786 ], [ -71.0428, 42.3786 ], [ -71.0428, 42.3786 ], [ -71.0428, 42.3786 ], [ -71.0428, 42.3786 ], [ -71.0428, 42.3786 ], [ -71.0428, 42.3786 ], [ -71.0428, 42.3786 ], [ -71.0427, 42.3786 ], [ -71.0427, 42.3786 ], [ -71.0427, 42.3786 ], [ -71.0427, 42.3786 ], [ -71.0427, 42.3786 ], [ -71.0427, 42.3786 ], [ -71.0427, 42.3786 ], [ -71.0427, 42.3786 ], [ -71.0427, 42.3786 ], [ -71.0427, 42.3786 ], [ -71.0427, 42.3786 ], [ -71.0426, 42.3786 ], [ -71.0426, 42.3786 ], [ -71.0426, 42.3786 ], [ -71.0426, 42.3786 ], [ -71.0425, 42.3786 ], [ -71.0425, 42.3786 ], [ -71.0425, 42.3786 ], [ -71.0428, 42.3786 ], [ -71.0432, 42.3786 ], [ -71.0432, 42.3788 ], [ -71.0417, 42.3788 ], [ -71.0417, 42.3788 ], [ -71.0417, 42.3788 ], [ -71.0418, 42.3789 ], [ -71.0417, 42.3789 ], [ -71.0417, 42.3789 ], [ -71.0416, 42.3789 ], [ -71.0416, 42.3789 ], [ -71.0414, 42.3789 ], [ -71.0414, 42.3789 ], [ -71.0414, 42.3789 ], [ -71.0414, 42.3789 ], [ -71.0414, 42.3789 ], [ -71.0414, 42.3789 ], [ -71.0414, 42.3789 ], [ -71.0414, 42.3789 ], [ -71.0414, 42.3789 ], [ -71.0414, 42.3789 ], [ -71.0414, 42.3789 ], [ -71.0414, 42.3789 ], [ -71.0414, 42.3789 ], [ -71.0414, 42.3789 ], [ -71.0414, 42.3789 ], [ -71.0414, 42.3789 ], [ -71.0414, 42.3789 ], [ -71.0414, 42.3789 ], [ -71.0414, 42.3789 ], [ -71.0414, 42.3789 ], [ -71.0414, 42.3790 ], [ -71.0413, 42.3790 ], [ -71.0413, 42.3790 ], [ -71.0413, 42.3790 ], [ -71.0413, 42.3790 ], [ -71.0412, 42.3790 ], [ -71.0412, 42.3790 ], [ -71.0412, 42.3790 ], [ -71.0412, 42.3790 ], [ -71.0412, 42.3790 ], [ -71.0412, 42.3790 ], [ -71.0412, 42.3790 ], [ -71.0412, 42.3790 ], [ -71.0412, 42.3790 ], [ -71.0412, 42.3790 ], [ -71.0412, 42.3790 ], [ -71.0412, 42.3790 ], [ -71.0412, 42.3790 ], [ -71.0412, 42.3790 ], [ -71.0412, 42.3790 ], [ -71.0412, 42.3790 ], [ -71.0412, 42.3790 ], [ -71.0412, 42.3790 ], [ -71.0412, 42.3790 ], [ -71.0412, 42.3790 ], [ -71.0412, 42.3790 ], [ -71.0412, 42.3790 ], [ -71.0412, 42.3790 ], [ -71.0412, 42.3790 ], [ -71.0412, 42.3790 ], [ -71.0412, 42.3790 ], [ -71.0412, 42.3790 ], [ -71.0412, 42.3790 ], [ -71.0412, 42.3790 ], [ -71.0412, 42.3790 ], [ -71.0412, 42.3790 ], [ -71.0412, 42.3790 ], [ -71.0412, 42.3790 ], [ -71.0412, 42.3790 ], [ -71.0412, 42.3790 ], [ -71.0412, 42.3790 ], [ -71.0412, 42.3790 ], [ -71.0412, 42.3790 ], [ -71.0412, 42.3790 ], [ -71.0412, 42.3790 ], [ -71.0412, 42.3790 ], [ -71.0412, 42.3790 ], [ -71.0412, 42.3790 ], [ -71.0412, 42.3790 ], [ -71.0412, 42.3790 ], [ -71.0412, 42.3790 ], [ -71.0413, 42.3790 ], [ -71.0413, 42.3790 ], [ -71.0413, 42.3790 ], [ -71.0413, 42.3790 ], [ -71.0413, 42.3790 ], [ -71.0413, 42.3790 ], [ -71.0413, 42.3791 ], [ -71.0413, 42.3791 ], [ -71.0413, 42.3791 ], [ -71.0413, 42.3791 ], [ -71.0413, 42.3791 ], [ -71.0413, 42.3791 ], [ -71.0413, 42.3791 ], [ -71.0413, 42.3791 ], [ -71.0413, 42.3791 ], [ -71.0413, 42.3791 ], [ -71.0413, 42.3791 ], [ -71.0413, 42.3791 ], [ -71.0413, 42.3791 ], [ -71.0413, 42.3791 ], [ -71.0413, 42.3791 ], [ -71.0413, 42.3791 ], [ -71.0413, 42.3791 ], [ -71.0413, 42.3791 ], [ -71.0413, 42.3791 ], [ -71.0413, 42.3791 ], [ -71.0413, 42.3791 ], [ -71.0412, 42.3791 ], [ -71.0412, 42.3791 ], [ -71.0412, 42.3791 ], [ -71.0412, 42.3791 ], [ -71.0412, 42.3791 ], [ -71.0412, 42.3791 ], [ -71.0412, 42.3791 ], [ -71.0412, 42.3791 ], [ -71.0412, 42.3791 ], [ -71.0412, 42.3791 ], [ -71.0412, 42.3791 ], [ -71.0412, 42.3791 ], [ -71.0413, 42.3791 ], [ -71.0413, 42.3791 ], [ -71.0413, 42.3791 ], [ -71.0413, 42.3792 ], [ -71.0413, 42.3792 ], [ -71.0413, 42.3792 ], [ -71.0413, 42.3792 ], [ -71.0413, 42.3792 ], [ -71.0413, 42.3792 ], [ -71.0413, 42.3792 ], [ -71.0413, 42.3792 ], [ -71.0413, 42.3792 ], [ -71.0413, 42.3792 ], [ -71.0413, 42.3792 ], [ -71.0413, 42.3792 ], [ -71.0413, 42.3792 ], [ -71.0413, 42.3792 ], [ -71.0413, 42.3792 ], [ -71.0413, 42.3792 ], [ -71.0413, 42.3792 ], [ -71.0413, 42.3792 ], [ -71.0413, 42.3792 ], [ -71.0413, 42.3792 ], [ -71.0413, 42.3792 ], [ -71.0413, 42.3792 ], [ -71.0413, 42.3792 ], [ -71.0414, 42.3792 ], [ -71.0414, 42.3792 ], [ -71.0414, 42.3792 ], [ -71.0414, 42.3792 ], [ -71.0414, 42.3792 ], [ -71.0414, 42.3792 ], [ -71.0414, 42.3792 ], [ -71.0414, 42.3792 ], [ -71.0414, 42.3792 ], [ -71.0415, 42.3792 ], [ -71.0415, 42.3792 ], [ -71.0415, 42.3792 ], [ -71.0415, 42.3792 ], [ -71.0415, 42.3792 ], [ -71.0415, 42.3792 ], [ -71.0415, 42.3792 ], [ -71.0417, 42.3792 ], [ -71.0432, 42.3791 ], [ -71.0432, 42.3792 ], [ -71.0415, 42.3793 ], [ -71.0415, 42.3793 ], [ -71.0415, 42.3793 ], [ -71.0414, 42.3794 ], [ -71.0414, 42.3794 ], [ -71.0414, 42.3794 ], [ -71.0414, 42.3794 ], [ -71.0414, 42.3794 ], [ -71.0414, 42.3794 ], [ -71.0414, 42.3794 ], [ -71.0415, 42.3794 ], [ -71.0415, 42.3794 ], [ -71.0415, 42.3794 ], [ -71.0415, 42.3795 ], [ -71.0415, 42.3795 ], [ -71.0415, 42.3795 ], [ -71.0415, 42.3795 ], [ -71.0415, 42.3795 ], [ -71.0415, 42.3795 ], [ -71.0415, 42.3795 ], [ -71.0415, 42.3795 ], [ -71.0415, 42.3795 ], [ -71.0415, 42.3795 ], [ -71.0415, 42.3795 ], [ -71.0415, 42.3795 ], [ -71.0415, 42.3795 ], [ -71.0415, 42.3795 ], [ -71.0415, 42.3795 ], [ -71.0415, 42.3795 ], [ -71.0415, 42.3795 ], [ -71.0415, 42.3795 ], [ -71.0415, 42.3795 ], [ -71.0415, 42.3795 ], [ -71.0415, 42.3795 ], [ -71.0415, 42.3795 ], [ -71.0415, 42.3795 ], [ -71.0415, 42.3795 ], [ -71.0415, 42.3795 ], [ -71.0415, 42.3796 ], [ -71.0415, 42.3796 ], [ -71.0415, 42.3796 ], [ -71.0415, 42.3797 ], [ -71.0415, 42.3797 ], [ -71.0415, 42.3797 ], [ -71.0415, 42.3797 ], [ -71.0415, 42.3797 ], [ -71.0415, 42.3797 ], [ -71.0415, 42.3797 ], [ -71.0415, 42.3797 ], [ -71.0415, 42.3797 ], [ -71.0415, 42.3797 ], [ -71.0415, 42.3797 ], [ -71.0415, 42.3797 ], [ -71.0415, 42.3797 ], [ -71.0415, 42.3798 ], [ -71.0415, 42.3798 ], [ -71.0415, 42.3798 ], [ -71.0415, 42.3798 ], [ -71.0416, 42.3798 ], [ -71.0417, 42.3798 ], [ -71.0417, 42.3798 ], [ -71.0431, 42.3797 ], [ -71.0431, 42.3798 ], [ -71.0418, 42.3799 ], [ -71.0417, 42.3799 ], [ -71.0417, 42.3799 ], [ -71.0417, 42.3799 ], [ -71.0418, 42.3801 ], [ -71.0418, 42.3804 ], [ -71.0431, 42.3803 ], [ -71.0431, 42.3804 ], [ -71.0418, 42.3805 ], [ -71.0418, 42.3805 ], [ -71.0418, 42.3805 ], [ -71.0417, 42.3805 ], [ -71.0417, 42.3805 ], [ -71.0417, 42.3805 ], [ -71.0417, 42.3805 ], [ -71.0417, 42.3805 ], [ -71.0417, 42.3805 ], [ -71.0417, 42.3805 ], [ -71.0417, 42.3805 ], [ -71.0418, 42.3805 ], [ -71.0418, 42.3805 ], [ -71.0418, 42.3805 ], [ -71.0418, 42.3805 ], [ -71.0418, 42.3805 ], [ -71.0418, 42.3805 ], [ -71.0418, 42.3805 ], [ -71.0418, 42.3805 ], [ -71.0418, 42.3805 ], [ -71.0418, 42.3805 ], [ -71.0418, 42.3805 ], [ -71.0418, 42.3805 ], [ -71.0418, 42.3805 ], [ -71.0418, 42.3805 ], [ -71.0418, 42.3806 ], [ -71.0418, 42.3806 ], [ -71.0418, 42.3806 ], [ -71.0418, 42.3806 ], [ -71.0419, 42.3806 ], [ -71.0419, 42.3806 ], [ -71.0419, 42.3806 ], [ -71.0419, 42.3806 ], [ -71.0419, 42.3806 ], [ -71.0419, 42.3806 ], [ -71.0419, 42.3806 ], [ -71.0419, 42.3806 ], [ -71.0419, 42.3806 ], [ -71.0419, 42.3806 ], [ -71.0419, 42.3806 ], [ -71.0419, 42.3806 ], [ -71.0419, 42.3806 ], [ -71.0419, 42.3806 ], [ -71.0419, 42.3807 ], [ -71.0419, 42.3807 ], [ -71.0419, 42.3807 ], [ -71.0419, 42.3807 ], [ -71.0419, 42.3807 ], [ -71.0419, 42.3807 ], [ -71.0419, 42.3807 ], [ -71.0419, 42.3807 ], [ -71.0419, 42.3807 ], [ -71.0419, 42.3807 ], [ -71.0419, 42.3807 ], [ -71.0419, 42.3807 ], [ -71.0419, 42.3807 ], [ -71.0419, 42.3807 ], [ -71.0419, 42.3807 ], [ -71.0419, 42.3807 ], [ -71.0419, 42.3807 ], [ -71.0419, 42.3807 ], [ -71.0419, 42.3807 ], [ -71.0419, 42.3807 ], [ -71.0419, 42.3807 ], [ -71.0420, 42.3807 ], [ -71.0420, 42.3807 ], [ -71.0420, 42.3807 ], [ -71.0420, 42.3807 ], [ -71.0420, 42.3807 ], [ -71.0420, 42.3808 ], [ -71.0421, 42.3809 ], [ -71.0421, 42.3810 ], [ -71.0421, 42.3812 ], [ -71.0421, 42.3813 ], [ -71.0421, 42.3815 ], [ -71.0421, 42.3816 ], [ -71.0421, 42.3818 ], [ -71.0421, 42.3819 ], [ -71.0422, 42.3821 ], [ -71.0422, 42.3821 ], [ -71.0422, 42.3821 ], [ -71.0422, 42.3821 ], [ -71.0422, 42.3821 ], [ -71.0422, 42.3821 ], [ -71.0422, 42.3821 ], [ -71.0422, 42.3821 ], [ -71.0422, 42.3821 ], [ -71.0422, 42.3821 ], [ -71.0422, 42.3821 ], [ -71.0422, 42.3821 ], [ -71.0422, 42.3821 ], [ -71.0422, 42.3821 ], [ -71.0422, 42.3821 ], [ -71.0421, 42.3821 ], [ -71.0421, 42.3821 ], [ -71.0421, 42.3821 ], [ -71.0421, 42.3821 ], [ -71.0421, 42.3821 ], [ -71.0421, 42.3821 ], [ -71.0421, 42.3821 ], [ -71.0421, 42.3821 ], [ -71.0410, 42.3822 ], [ -71.0406, 42.3822 ], [ -71.0406, 42.3822 ], [ -71.0406, 42.3822 ], [ -71.0406, 42.3822 ], [ -71.0405, 42.3822 ], [ -71.0405, 42.3822 ], [ -71.0405, 42.3822 ], [ -71.0405, 42.3822 ], [ -71.0405, 42.3822 ], [ -71.0405, 42.3823 ], [ -71.0405, 42.3823 ], [ -71.0405, 42.3823 ], [ -71.0405, 42.3823 ], [ -71.0405, 42.3823 ], [ -71.0405, 42.3823 ], [ -71.0405, 42.3823 ], [ -71.0405, 42.3823 ], [ -71.0405, 42.3823 ], [ -71.0405, 42.3823 ], [ -71.0405, 42.3823 ], [ -71.0404, 42.3823 ], [ -71.0404, 42.3824 ], [ -71.0404, 42.3824 ], [ -71.0404, 42.3825 ], [ -71.0404, 42.3826 ], [ -71.0404, 42.3826 ], [ -71.0404, 42.3826 ], [ -71.0402, 42.3826 ], [ -71.0402, 42.3827 ], [ -71.0402, 42.3827 ], [ -71.0402, 42.3827 ], [ -71.0402, 42.3827 ], [ -71.0402, 42.3827 ], [ -71.0402, 42.3827 ], [ -71.0402, 42.3828 ], [ -71.0402, 42.3828 ], [ -71.0401, 42.3828 ], [ -71.0401, 42.3828 ], [ -71.0401, 42.3828 ], [ -71.0401, 42.3829 ], [ -71.0401, 42.3829 ], [ -71.0402, 42.3829 ], [ -71.0402, 42.3831 ], [ -71.0401, 42.3833 ], [ -71.0401, 42.3834 ], [ -71.0401, 42.3834 ], [ -71.0401, 42.3835 ], [ -71.0401, 42.3837 ], [ -71.0401, 42.3837 ], [ -71.0401, 42.3835 ], [ -71.0401, 42.3834 ], [ -71.0400, 42.3834 ], [ -71.0400, 42.3834 ], [ -71.0400, 42.3834 ], [ -71.0397, 42.3834 ], [ -71.0397, 42.3834 ], [ -71.0397, 42.3834 ], [ -71.0397, 42.3834 ], [ -71.0397, 42.3834 ], [ -71.0397, 42.3833 ], [ -71.0397, 42.3833 ], [ -71.0397, 42.3833 ], [ -71.0397, 42.3833 ], [ -71.0397, 42.3833 ], [ -71.0397, 42.3833 ], [ -71.0397, 42.3833 ], [ -71.0397, 42.3833 ], [ -71.0396, 42.3833 ], [ -71.0396, 42.3833 ], [ -71.0396, 42.3833 ], [ -71.0396, 42.3833 ], [ -71.0396, 42.3833 ], [ -71.0396, 42.3833 ], [ -71.0396, 42.3833 ], [ -71.0396, 42.3833 ], [ -71.0396, 42.3833 ], [ -71.0396, 42.3833 ], [ -71.0396, 42.3833 ], [ -71.0396, 42.3833 ], [ -71.0396, 42.3833 ], [ -71.0396, 42.3833 ], [ -71.0396, 42.3833 ], [ -71.0395, 42.3833 ], [ -71.0395, 42.3833 ], [ -71.0395, 42.3833 ], [ -71.0395, 42.3833 ], [ -71.0395, 42.3833 ], [ -71.0395, 42.3833 ], [ -71.0395, 42.3833 ], [ -71.0395, 42.3833 ], [ -71.0395, 42.3833 ], [ -71.0395, 42.3833 ], [ -71.0395, 42.3833 ], [ -71.0395, 42.3833 ], [ -71.0395, 42.3833 ], [ -71.0395, 42.3833 ], [ -71.0395, 42.3833 ], [ -71.0395, 42.3833 ], [ -71.0394, 42.3833 ], [ -71.0394, 42.3833 ], [ -71.0394, 42.3833 ], [ -71.0394, 42.3833 ], [ -71.0394, 42.3833 ], [ -71.0394, 42.3833 ], [ -71.0394, 42.3834 ], [ -71.0394, 42.3834 ], [ -71.0394, 42.3835 ], [ -71.0394, 42.3835 ], [ -71.0394, 42.3836 ], [ -71.0394, 42.3836 ], [ -71.0394, 42.3837 ], [ -71.0394, 42.3838 ], [ -71.0394, 42.3838 ], [ -71.0394, 42.3838 ], [ -71.0394, 42.3838 ], [ -71.0394, 42.3838 ], [ -71.0394, 42.3839 ], [ -71.0394, 42.3839 ], [ -71.0394, 42.3839 ], [ -71.0394, 42.3839 ], [ -71.0394, 42.3839 ], [ -71.0394, 42.3839 ], [ -71.0394, 42.3839 ], [ -71.0394, 42.3839 ], [ -71.0394, 42.3839 ], [ -71.0394, 42.3839 ], [ -71.0394, 42.3839 ], [ -71.0394, 42.3839 ], [ -71.0394, 42.3839 ], [ -71.0394, 42.3839 ], [ -71.0394, 42.3839 ], [ -71.0394, 42.3839 ], [ -71.0394, 42.3839 ], [ -71.0394, 42.3839 ], [ -71.0394, 42.3839 ], [ -71.0391, 42.3839 ], [ -71.0391, 42.3839 ], [ -71.0391, 42.3839 ], [ -71.0391, 42.3839 ], [ -71.0391, 42.3839 ], [ -71.0391, 42.3839 ], [ -71.0390, 42.3839 ], [ -71.0390, 42.3840 ], [ -71.0390, 42.3842 ], [ -71.0390, 42.3844 ], [ -71.0388, 42.3844 ], [ -71.0388, 42.3842 ], [ -71.0388, 42.3840 ], [ -71.0388, 42.3840 ], [ -71.0386, 42.3840 ], [ -71.0386, 42.3841 ], [ -71.0386, 42.3841 ], [ -71.0386, 42.3841 ], [ -71.0386, 42.3842 ], [ -71.0386, 42.3842 ], [ -71.0386, 42.3842 ], [ -71.0386, 42.3842 ], [ -71.0386, 42.3842 ], [ -71.0386, 42.3842 ], [ -71.0386, 42.3842 ], [ -71.0386, 42.3843 ], [ -71.0385, 42.3843 ], [ -71.0385, 42.3843 ], [ -71.0385, 42.3843 ], [ -71.0385, 42.3843 ], [ -71.0385, 42.3843 ], [ -71.0385, 42.3843 ], [ -71.0385, 42.3843 ], [ -71.0385, 42.3843 ], [ -71.0385, 42.3843 ], [ -71.0384, 42.3843 ], [ -71.0384, 42.3844 ], [ -71.0384, 42.3844 ], [ -71.0384, 42.3844 ], [ -71.0384, 42.3844 ], [ -71.0384, 42.3844 ], [ -71.0384, 42.3844 ], [ -71.0384, 42.3844 ], [ -71.0384, 42.3844 ], [ -71.0384, 42.3844 ], [ -71.0384, 42.3844 ], [ -71.0384, 42.3844 ], [ -71.0384, 42.3844 ], [ -71.0384, 42.3844 ], [ -71.0384, 42.3844 ], [ -71.0384, 42.3844 ], [ -71.0384, 42.3844 ], [ -71.0384, 42.3844 ], [ -71.0384, 42.3844 ], [ -71.0384, 42.3844 ], [ -71.0384, 42.3844 ], [ -71.0384, 42.3844 ], [ -71.0384, 42.3844 ], [ -71.0384, 42.3844 ], [ -71.0384, 42.3844 ], [ -71.0384, 42.3844 ], [ -71.0384, 42.3844 ], [ -71.0384, 42.3844 ], [ -71.0384, 42.3844 ], [ -71.0384, 42.3844 ], [ -71.0384, 42.3844 ], [ -71.0384, 42.3844 ], [ -71.0384, 42.3844 ], [ -71.0384, 42.3844 ], [ -71.0383, 42.3844 ], [ -71.0383, 42.3844 ], [ -71.0383, 42.3844 ], [ -71.0383, 42.3844 ], [ -71.0383, 42.3844 ], [ -71.0383, 42.3844 ], [ -71.0383, 42.3844 ], [ -71.0383, 42.3844 ], [ -71.0383, 42.3844 ], [ -71.0383, 42.3844 ], [ -71.0383, 42.3844 ], [ -71.0383, 42.3844 ], [ -71.0383, 42.3844 ], [ -71.0383, 42.3844 ], [ -71.0383, 42.3843 ], [ -71.0383, 42.3843 ], [ -71.0383, 42.3842 ], [ -71.0383, 42.3841 ], [ -71.0383, 42.3841 ], [ -71.0383, 42.3840 ], [ -71.0381, 42.3840 ], [ -71.0381, 42.3840 ], [ -71.0380, 42.3840 ], [ -71.0378, 42.3840 ], [ -71.0376, 42.3840 ], [ -71.0374, 42.3840 ], [ -71.0373, 42.3840 ], [ -71.0373, 42.3840 ], [ -71.0373, 42.3842 ], [ -71.0373, 42.3843 ], [ -71.0373, 42.3843 ], [ -71.0373, 42.3852 ], [ -71.0372, 42.3852 ], [ -71.0372, 42.3843 ], [ -71.0371, 42.3843 ], [ -71.0371, 42.3841 ], [ -71.0368, 42.3841 ], [ -71.0366, 42.3845 ], [ -71.0366, 42.3845 ], [ -71.0365, 42.3845 ], [ -71.0364, 42.3845 ], [ -71.0363, 42.3845 ], [ -71.0362, 42.3845 ], [ -71.0362, 42.3845 ], [ -71.0361, 42.3844 ], [ -71.0361, 42.3844 ], [ -71.0361, 42.3844 ], [ -71.0361, 42.3844 ], [ -71.0361, 42.3844 ], [ -71.0361, 42.3844 ], [ -71.0361, 42.3844 ], [ -71.0361, 42.3843 ], [ -71.0361, 42.3843 ], [ -71.0361, 42.3843 ], [ -71.0361, 42.3843 ], [ -71.0361, 42.3843 ], [ -71.0361, 42.3843 ], [ -71.0361, 42.3843 ], [ -71.0361, 42.3843 ], [ -71.0360, 42.3843 ], [ -71.0360, 42.3843 ], [ -71.0360, 42.3843 ], [ -71.0360, 42.3843 ], [ -71.0360, 42.3843 ], [ -71.0360, 42.3843 ], [ -71.0360, 42.3843 ], [ -71.0360, 42.3843 ], [ -71.0360, 42.3843 ], [ -71.0360, 42.3843 ], [ -71.0360, 42.3842 ], [ -71.0360, 42.3842 ], [ -71.0360, 42.3842 ], [ -71.0360, 42.3842 ], [ -71.0360, 42.3842 ], [ -71.0360, 42.3842 ], [ -71.0360, 42.3842 ], [ -71.0360, 42.3842 ], [ -71.0360, 42.3842 ], [ -71.0360, 42.3842 ], [ -71.0360, 42.3842 ], [ -71.0360, 42.3842 ], [ -71.0360, 42.3842 ], [ -71.0360, 42.3842 ], [ -71.0360, 42.3842 ], [ -71.0360, 42.3842 ], [ -71.0360, 42.3842 ], [ -71.0360, 42.3842 ], [ -71.0360, 42.3842 ], [ -71.0360, 42.3842 ], [ -71.0360, 42.3842 ], [ -71.0360, 42.3842 ], [ -71.0360, 42.3842 ], [ -71.0360, 42.3842 ], [ -71.0360, 42.3842 ], [ -71.0360, 42.3842 ], [ -71.0359, 42.3842 ], [ -71.0359, 42.3842 ], [ -71.0359, 42.3842 ], [ -71.0359, 42.3842 ], [ -71.0359, 42.3842 ], [ -71.0359, 42.3842 ], [ -71.0359, 42.3842 ], [ -71.0359, 42.3842 ], [ -71.0359, 42.3842 ], [ -71.0359, 42.3842 ], [ -71.0359, 42.3842 ], [ -71.0359, 42.3842 ], [ -71.0359, 42.3842 ], [ -71.0359, 42.3842 ], [ -71.0359, 42.3842 ], [ -71.0359, 42.3842 ], [ -71.0359, 42.3842 ], [ -71.0359, 42.3842 ], [ -71.0358, 42.3842 ], [ -71.0358, 42.3842 ], [ -71.0358, 42.3842 ], [ -71.0358, 42.3842 ], [ -71.0358, 42.3842 ], [ -71.0358, 42.3842 ], [ -71.0358, 42.3842 ], [ -71.0358, 42.3842 ], [ -71.0358, 42.3842 ], [ -71.0358, 42.3842 ], [ -71.0358, 42.3842 ], [ -71.0358, 42.3841 ], [ -71.0358, 42.3841 ], [ -71.0358, 42.3841 ], [ -71.0358, 42.3841 ], [ -71.0358, 42.3841 ], [ -71.0358, 42.3841 ], [ -71.0358, 42.3841 ], [ -71.0358, 42.3841 ], [ -71.0358, 42.3840 ], [ -71.0358, 42.3840 ], [ -71.0358, 42.3840 ], [ -71.0358, 42.3840 ], [ -71.0358, 42.3840 ], [ -71.0358, 42.3840 ], [ -71.0358, 42.3840 ], [ -71.0358, 42.3840 ], [ -71.0358, 42.3840 ], [ -71.0357, 42.3840 ], [ -71.0357, 42.3840 ], [ -71.0357, 42.3840 ], [ -71.0357, 42.3840 ], [ -71.0357, 42.3840 ], [ -71.0357, 42.3840 ], [ -71.0357, 42.3840 ], [ -71.0357, 42.3840 ], [ -71.0357, 42.3840 ], [ -71.0357, 42.3840 ], [ -71.0357, 42.3840 ], [ -71.0356, 42.3840 ], [ -71.0356, 42.3840 ], [ -71.0356, 42.3840 ], [ -71.0356, 42.3840 ], [ -71.0356, 42.3840 ], [ -71.0356, 42.3840 ], [ -71.0356, 42.3840 ], [ -71.0355, 42.3840 ], [ -71.0355, 42.3840 ], [ -71.0355, 42.3840 ], [ -71.0355, 42.3840 ], [ -71.0355, 42.3840 ], [ -71.0355, 42.3840 ], [ -71.0355, 42.3840 ], [ -71.0355, 42.3840 ], [ -71.0355, 42.3840 ], [ -71.0355, 42.3840 ], [ -71.0355, 42.3840 ], [ -71.0355, 42.3840 ], [ -71.0355, 42.3840 ], [ -71.0354, 42.3840 ], [ -71.0354, 42.3840 ], [ -71.0354, 42.3840 ], [ -71.0354, 42.3840 ], [ -71.0354, 42.3840 ], [ -71.0354, 42.3840 ], [ -71.0353, 42.3840 ], [ -71.0353, 42.3840 ], [ -71.0353, 42.3840 ], [ -71.0353, 42.3840 ], [ -71.0353, 42.3840 ], [ -71.0353, 42.3840 ], [ -71.0353, 42.3840 ], [ -71.0353, 42.3840 ], [ -71.0353, 42.3840 ], [ -71.0353, 42.3840 ], [ -71.0353, 42.3840 ], [ -71.0353, 42.3841 ], [ -71.0353, 42.3841 ], [ -71.0353, 42.3841 ], [ -71.0353, 42.3841 ], [ -71.0353, 42.3841 ], [ -71.0353, 42.3841 ], [ -71.0353, 42.3841 ], [ -71.0352, 42.3841 ], [ -71.0352, 42.3842 ], [ -71.0352, 42.3842 ], [ -71.0352, 42.3842 ], [ -71.0352, 42.3842 ], [ -71.0352, 42.3842 ], [ -71.0352, 42.3842 ], [ -71.0352, 42.3842 ], [ -71.0352, 42.3843 ], [ -71.0352, 42.3843 ], [ -71.0352, 42.3843 ], [ -71.0352, 42.3843 ], [ -71.0352, 42.3843 ], [ -71.0352, 42.3843 ], [ -71.0352, 42.3843 ], [ -71.0352, 42.3843 ], [ -71.0352, 42.3843 ], [ -71.0352, 42.3844 ], [ -71.0352, 42.3844 ], [ -71.0352, 42.3844 ], [ -71.0352, 42.3844 ], [ -71.0352, 42.3844 ], [ -71.0352, 42.3844 ], [ -71.0352, 42.3844 ], [ -71.0352, 42.3845 ], [ -71.0352, 42.3845 ], [ -71.0352, 42.3845 ], [ -71.0352, 42.3845 ], [ -71.0352, 42.3845 ], [ -71.0352, 42.3845 ], [ -71.0352, 42.3845 ], [ -71.0352, 42.3845 ], [ -71.0352, 42.3845 ], [ -71.0352, 42.3845 ], [ -71.0352, 42.3845 ], [ -71.0352, 42.3845 ], [ -71.0352, 42.3845 ], [ -71.0352, 42.3846 ], [ -71.0352, 42.3846 ], [ -71.0352, 42.3846 ], [ -71.0352, 42.3846 ], [ -71.0352, 42.3846 ], [ -71.0352, 42.3846 ], [ -71.0352, 42.3846 ], [ -71.0352, 42.3846 ], [ -71.0352, 42.3846 ], [ -71.0352, 42.3846 ], [ -71.0352, 42.3846 ], [ -71.0352, 42.3846 ], [ -71.0352, 42.3846 ], [ -71.0352, 42.3846 ], [ -71.0352, 42.3846 ], [ -71.0352, 42.3846 ], [ -71.0352, 42.3846 ], [ -71.0352, 42.3846 ], [ -71.0352, 42.3846 ], [ -71.0351, 42.3846 ], [ -71.0351, 42.3847 ], [ -71.0351, 42.3847 ], [ -71.0350, 42.3847 ], [ -71.0348, 42.3847 ], [ -71.0345, 42.3846 ], [ -71.0344, 42.3846 ], [ -71.0342, 42.3845 ], [ -71.0339, 42.3845 ], [ -71.0337, 42.3844 ], [ -71.0337, 42.3844 ], [ -71.0335, 42.3844 ], [ -71.0335, 42.3842 ], [ -71.0335, 42.3842 ], [ -71.0334, 42.3842 ], [ -71.0334, 42.3842 ], [ -71.0334, 42.3842 ], [ -71.0334, 42.3842 ], [ -71.0334, 42.3842 ], [ -71.0334, 42.3841 ], [ -71.0334, 42.3841 ], [ -71.0334, 42.3841 ], [ -71.0334, 42.3841 ], [ -71.0334, 42.3841 ], [ -71.0334, 42.3840 ], [ -71.0334, 42.3840 ], [ -71.0334, 42.3840 ], [ -71.0334, 42.3840 ], [ -71.0334, 42.3840 ], [ -71.0334, 42.3839 ], [ -71.0334, 42.3839 ], [ -71.0334, 42.3839 ], [ -71.0334, 42.3839 ], [ -71.0334, 42.3839 ], [ -71.0334, 42.3839 ], [ -71.0334, 42.3839 ], [ -71.0334, 42.3839 ], [ -71.0334, 42.3838 ], [ -71.0334, 42.3838 ], [ -71.0334, 42.3838 ], [ -71.0334, 42.3838 ], [ -71.0334, 42.3838 ], [ -71.0334, 42.3838 ], [ -71.0334, 42.3838 ], [ -71.0334, 42.3837 ], [ -71.0334, 42.3837 ], [ -71.0334, 42.3837 ], [ -71.0334, 42.3837 ], [ -71.0334, 42.3837 ], [ -71.0334, 42.3837 ], [ -71.0334, 42.3837 ], [ -71.0334, 42.3837 ], [ -71.0334, 42.3837 ], [ -71.0334, 42.3837 ], [ -71.0334, 42.3837 ], [ -71.0334, 42.3837 ], [ -71.0334, 42.3837 ], [ -71.0334, 42.3837 ], [ -71.0334, 42.3837 ], [ -71.0334, 42.3837 ], [ -71.0334, 42.3837 ], [ -71.0334, 42.3837 ], [ -71.0334, 42.3837 ], [ -71.0334, 42.3837 ], [ -71.0334, 42.3837 ], [ -71.0334, 42.3837 ], [ -71.0334, 42.3837 ], [ -71.0334, 42.3836 ], [ -71.0334, 42.3836 ], [ -71.0334, 42.3836 ], [ -71.0334, 42.3836 ], [ -71.0334, 42.3836 ], [ -71.0334, 42.3836 ], [ -71.0334, 42.3836 ], [ -71.0334, 42.3836 ], [ -71.0334, 42.3836 ], [ -71.0334, 42.3836 ], [ -71.0334, 42.3836 ], [ -71.0334, 42.3836 ], [ -71.0334, 42.3836 ], [ -71.0334, 42.3836 ], [ -71.0334, 42.3836 ], [ -71.0334, 42.3836 ], [ -71.0334, 42.3836 ], [ -71.0334, 42.3836 ], [ -71.0334, 42.3836 ], [ -71.0334, 42.3836 ], [ -71.0334, 42.3836 ], [ -71.0334, 42.3836 ], [ -71.0334, 42.3836 ], [ -71.0334, 42.3836 ], [ -71.0334, 42.3836 ], [ -71.0334, 42.3836 ], [ -71.0334, 42.3836 ], [ -71.0334, 42.3835 ], [ -71.0334, 42.3835 ], [ -71.0334, 42.3835 ], [ -71.0334, 42.3835 ], [ -71.0334, 42.3835 ], [ -71.0334, 42.3835 ], [ -71.0334, 42.3835 ], [ -71.0334, 42.3835 ], [ -71.0334, 42.3835 ], [ -71.0334, 42.3835 ], [ -71.0334, 42.3835 ], [ -71.0334, 42.3834 ], [ -71.0334, 42.3834 ], [ -71.0334, 42.3834 ], [ -71.0333, 42.3834 ], [ -71.0333, 42.3834 ], [ -71.0333, 42.3834 ], [ -71.0333, 42.3834 ], [ -71.0333, 42.3833 ], [ -71.0333, 42.3833 ], [ -71.0333, 42.3833 ], [ -71.0333, 42.3833 ], [ -71.0333, 42.3833 ], [ -71.0333, 42.3833 ], [ -71.0333, 42.3832 ], [ -71.0333, 42.3832 ], [ -71.0333, 42.3832 ], [ -71.0333, 42.3832 ], [ -71.0333, 42.3832 ], [ -71.0333, 42.3832 ], [ -71.0332, 42.3832 ], [ -71.0332, 42.3832 ], [ -71.0332, 42.3832 ], [ -71.0332, 42.3831 ], [ -71.0332, 42.3831 ], [ -71.0332, 42.3831 ], [ -71.0331, 42.3831 ], [ -71.0331, 42.3831 ], [ -71.0331, 42.3831 ], [ -71.0331, 42.3830 ], [ -71.0330, 42.3830 ], [ -71.0330, 42.3830 ], [ -71.0330, 42.3830 ], [ -71.0330, 42.3830 ], [ -71.0330, 42.3830 ], [ -71.0330, 42.3830 ], [ -71.0330, 42.3830 ], [ -71.0330, 42.3830 ], [ -71.0330, 42.3830 ], [ -71.0330, 42.3830 ], [ -71.0330, 42.3830 ], [ -71.0330, 42.3830 ], [ -71.0330, 42.3830 ], [ -71.0330, 42.3830 ], [ -71.0330, 42.3830 ], [ -71.0330, 42.3830 ], [ -71.0330, 42.3830 ], [ -71.0330, 42.3830 ], [ -71.0329, 42.3829 ], [ -71.0329, 42.3829 ], [ -71.0329, 42.3829 ], [ -71.0329, 42.3829 ], [ -71.0329, 42.3829 ], [ -71.0329, 42.3829 ], [ -71.0329, 42.3829 ], [ -71.0329, 42.3829 ], [ -71.0329, 42.3829 ], [ -71.0328, 42.3829 ], [ -71.0328, 42.3829 ], [ -71.0328, 42.3828 ], [ -71.0328, 42.3828 ], [ -71.0328, 42.3828 ], [ -71.0328, 42.3828 ], [ -71.0328, 42.3828 ], [ -71.0327, 42.3828 ], [ -71.0327, 42.3828 ], [ -71.0327, 42.3828 ], [ -71.0327, 42.3828 ], [ -71.0327, 42.3828 ], [ -71.0327, 42.3828 ], [ -71.0327, 42.3828 ], [ -71.0327, 42.3828 ], [ -71.0327, 42.3828 ], [ -71.0327, 42.3828 ], [ -71.0327, 42.3828 ], [ -71.0327, 42.3828 ], [ -71.0327, 42.3828 ], [ -71.0327, 42.3828 ], [ -71.0327, 42.3828 ], [ -71.0327, 42.3828 ], [ -71.0327, 42.3828 ], [ -71.0327, 42.3828 ], [ -71.0327, 42.3828 ], [ -71.0327, 42.3828 ], [ -71.0327, 42.3828 ], [ -71.0327, 42.3828 ], [ -71.0326, 42.3828 ], [ -71.0326, 42.3828 ], [ -71.0326, 42.3828 ], [ -71.0326, 42.3828 ], [ -71.0326, 42.3828 ], [ -71.0326, 42.3828 ], [ -71.0326, 42.3828 ], [ -71.0326, 42.3828 ], [ -71.0325, 42.3828 ], [ -71.0325, 42.3828 ], [ -71.0325, 42.3828 ], [ -71.0325, 42.3828 ], [ -71.0325, 42.3828 ], [ -71.0324, 42.3828 ], [ -71.0324, 42.3828 ], [ -71.0323, 42.3828 ], [ -71.0323, 42.3828 ], [ -71.0323, 42.3828 ], [ -71.0322, 42.3828 ], [ -71.0322, 42.3828 ], [ -71.0321, 42.3828 ], [ -71.0321, 42.3828 ], [ -71.0321, 42.3828 ], [ -71.0320, 42.3828 ], [ -71.0320, 42.3828 ], [ -71.0319, 42.3828 ], [ -71.0318, 42.3828 ], [ -71.0318, 42.3828 ], [ -71.0318, 42.3828 ], [ -71.0318, 42.3827 ], [ -71.0317, 42.3827 ], [ -71.0316, 42.3827 ], [ -71.0316, 42.3827 ], [ -71.0316, 42.3827 ], [ -71.0316, 42.3827 ], [ -71.0316, 42.3827 ], [ -71.0316, 42.3827 ], [ -71.0316, 42.3827 ], [ -71.0316, 42.3827 ], [ -71.0315, 42.3827 ], [ -71.0315, 42.3827 ], [ -71.0315, 42.3827 ], [ -71.0314, 42.3827 ], [ -71.0314, 42.3827 ], [ -71.0313, 42.3827 ], [ -71.0313, 42.3827 ], [ -71.0313, 42.3828 ], [ -71.0312, 42.3828 ], [ -71.0312, 42.3828 ], [ -71.0312, 42.3828 ], [ -71.0312, 42.3828 ], [ -71.0311, 42.3828 ], [ -71.0311, 42.3828 ], [ -71.0311, 42.3828 ], [ -71.0311, 42.3828 ], [ -71.0310, 42.3828 ], [ -71.0310, 42.3828 ], [ -71.0310, 42.3828 ], [ -71.0310, 42.3828 ], [ -71.0310, 42.3828 ], [ -71.0310, 42.3828 ], [ -71.0310, 42.3828 ], [ -71.0310, 42.3828 ], [ -71.0310, 42.3828 ], [ -71.0310, 42.3828 ], [ -71.0310, 42.3828 ], [ -71.0310, 42.3828 ], [ -71.0310, 42.3828 ], [ -71.0310, 42.3829 ], [ -71.0310, 42.3829 ], [ -71.0310, 42.3829 ], [ -71.0310, 42.3829 ], [ -71.0310, 42.3830 ], [ -71.0310, 42.3830 ], [ -71.0310, 42.3830 ], [ -71.0310, 42.3830 ], [ -71.0310, 42.3830 ], [ -71.0310, 42.3830 ], [ -71.0310, 42.3830 ], [ -71.0310, 42.3830 ], [ -71.0310, 42.3830 ], [ -71.0310, 42.3830 ], [ -71.0310, 42.3830 ], [ -71.0310, 42.3830 ], [ -71.0310, 42.3830 ], [ -71.0310, 42.3830 ], [ -71.0310, 42.3830 ], [ -71.0310, 42.3830 ], [ -71.0310, 42.3830 ], [ -71.0310, 42.3830 ], [ -71.0310, 42.3830 ], [ -71.0310, 42.3830 ], [ -71.0310, 42.3830 ], [ -71.0310, 42.3830 ], [ -71.0310, 42.3830 ], [ -71.0310, 42.3830 ], [ -71.0309, 42.3830 ], [ -71.0309, 42.3830 ], [ -71.0309, 42.3830 ], [ -71.0309, 42.3830 ], [ -71.0309, 42.3830 ], [ -71.0309, 42.3830 ], [ -71.0309, 42.3830 ], [ -71.0309, 42.3830 ], [ -71.0309, 42.3830 ], [ -71.0309, 42.3830 ], [ -71.0309, 42.3830 ], [ -71.0309, 42.3830 ], [ -71.0309, 42.3830 ], [ -71.0309, 42.3830 ], [ -71.0309, 42.3830 ], [ -71.0309, 42.3830 ], [ -71.0309, 42.3830 ], [ -71.0309, 42.3830 ], [ -71.0309, 42.3830 ], [ -71.0309, 42.3830 ], [ -71.0309, 42.3830 ], [ -71.0309, 42.3830 ], [ -71.0308, 42.3830 ], [ -71.0308, 42.3830 ], [ -71.0308, 42.3830 ], [ -71.0308, 42.3830 ], [ -71.0308, 42.3830 ], [ -71.0308, 42.3830 ], [ -71.0308, 42.3830 ], [ -71.0308, 42.3830 ], [ -71.0308, 42.3830 ], [ -71.0308, 42.3830 ], [ -71.0308, 42.3830 ], [ -71.0308, 42.3830 ], [ -71.0308, 42.3830 ], [ -71.0308, 42.3830 ], [ -71.0308, 42.3830 ], [ -71.0308, 42.3830 ], [ -71.0308, 42.3830 ], [ -71.0308, 42.3830 ], [ -71.0308, 42.3830 ], [ -71.0308, 42.3830 ], [ -71.0308, 42.3830 ], [ -71.0308, 42.3830 ], [ -71.0308, 42.3830 ], [ -71.0308, 42.3830 ], [ -71.0308, 42.3830 ], [ -71.0308, 42.3830 ], [ -71.0308, 42.3830 ], [ -71.0308, 42.3830 ], [ -71.0308, 42.3830 ], [ -71.0308, 42.3830 ], [ -71.0308, 42.3830 ], [ -71.0308, 42.3830 ], [ -71.0308, 42.3830 ], [ -71.0308, 42.3830 ], [ -71.0308, 42.3830 ], [ -71.0308, 42.3830 ], [ -71.0307, 42.3830 ], [ -71.0307, 42.3831 ], [ -71.0307, 42.3831 ], [ -71.0307, 42.3831 ], [ -71.0307, 42.3831 ], [ -71.0307, 42.3831 ], [ -71.0307, 42.3831 ], [ -71.0306, 42.3831 ], [ -71.0306, 42.3831 ], [ -71.0306, 42.3831 ], [ -71.0306, 42.3831 ], [ -71.0306, 42.3831 ], [ -71.0306, 42.3831 ], [ -71.0305, 42.3831 ], [ -71.0305, 42.3831 ], [ -71.0305, 42.3831 ], [ -71.0305, 42.3831 ], [ -71.0305, 42.3831 ], [ -71.0305, 42.3831 ], [ -71.0304, 42.3830 ], [ -71.0304, 42.3830 ], [ -71.0304, 42.3830 ], [ -71.0304, 42.3830 ], [ -71.0304, 42.3830 ], [ -71.0303, 42.3830 ], [ -71.0303, 42.3830 ], [ -71.0303, 42.3830 ], [ -71.0303, 42.3831 ], [ -71.0303, 42.3831 ], [ -71.0303, 42.3831 ], [ -71.0303, 42.3831 ], [ -71.0303, 42.3831 ], [ -71.0303, 42.3831 ], [ -71.0303, 42.3831 ], [ -71.0303, 42.3831 ], [ -71.0303, 42.3831 ], [ -71.0303, 42.3830 ], [ -71.0303, 42.3830 ], [ -71.0302, 42.3830 ], [ -71.0302, 42.3830 ], [ -71.0302, 42.3830 ], [ -71.0302, 42.3830 ], [ -71.0302, 42.3830 ], [ -71.0302, 42.3830 ], [ -71.0302, 42.3830 ], [ -71.0302, 42.3830 ], [ -71.0302, 42.3830 ], [ -71.0302, 42.3830 ], [ -71.0301, 42.3830 ], [ -71.0301, 42.3830 ], [ -71.0301, 42.3830 ], [ -71.0301, 42.3830 ], [ -71.0301, 42.3830 ], [ -71.0301, 42.3830 ], [ -71.0301, 42.3830 ], [ -71.0301, 42.3830 ], [ -71.0301, 42.3830 ], [ -71.0301, 42.3830 ], [ -71.0301, 42.3830 ], [ -71.0301, 42.3830 ], [ -71.0301, 42.3830 ], [ -71.0301, 42.3830 ], [ -71.0301, 42.3830 ], [ -71.0301, 42.3830 ], [ -71.0301, 42.3830 ], [ -71.0301, 42.3830 ], [ -71.0301, 42.3830 ], [ -71.0301, 42.3830 ], [ -71.0301, 42.3830 ], [ -71.0301, 42.3830 ], [ -71.0301, 42.3830 ], [ -71.0300, 42.3830 ], [ -71.0300, 42.3830 ], [ -71.0300, 42.3830 ], [ -71.0300, 42.3830 ], [ -71.0300, 42.3830 ], [ -71.0300, 42.3830 ], [ -71.0300, 42.3830 ], [ -71.0300, 42.3830 ], [ -71.0300, 42.3830 ], [ -71.0300, 42.3830 ], [ -71.0300, 42.3830 ], [ -71.0300, 42.3830 ], [ -71.0300, 42.3830 ], [ -71.0300, 42.3830 ], [ -71.0300, 42.3830 ], [ -71.0299, 42.3831 ], [ -71.0299, 42.3831 ], [ -71.0299, 42.3831 ], [ -71.0299, 42.3831 ], [ -71.0299, 42.3831 ], [ -71.0299, 42.3831 ], [ -71.0299, 42.3831 ], [ -71.0299, 42.3831 ], [ -71.0299, 42.3831 ], [ -71.0299, 42.3831 ], [ -71.0299, 42.3831 ], [ -71.0299, 42.3832 ], [ -71.0299, 42.3832 ], [ -71.0299, 42.3833 ], [ -71.0299, 42.3833 ], [ -71.0299, 42.3833 ], [ -71.0299, 42.3833 ], [ -71.0299, 42.3833 ], [ -71.0299, 42.3833 ], [ -71.0299, 42.3834 ], [ -71.0299, 42.3834 ], [ -71.0299, 42.3834 ], [ -71.0299, 42.3834 ], [ -71.0299, 42.3834 ], [ -71.0299, 42.3834 ], [ -71.0299, 42.3834 ], [ -71.0299, 42.3835 ], [ -71.0299, 42.3835 ], [ -71.0299, 42.3835 ], [ -71.0299, 42.3835 ], [ -71.0299, 42.3835 ], [ -71.0299, 42.3835 ], [ -71.0299, 42.3835 ], [ -71.0299, 42.3835 ], [ -71.0299, 42.3835 ], [ -71.0299, 42.3835 ], [ -71.0299, 42.3835 ], [ -71.0299, 42.3835 ], [ -71.0299, 42.3835 ], [ -71.0299, 42.3835 ], [ -71.0299, 42.3835 ], [ -71.0299, 42.3835 ], [ -71.0299, 42.3835 ], [ -71.0299, 42.3835 ], [ -71.0298, 42.3835 ], [ -71.0298, 42.3835 ], [ -71.0298, 42.3835 ], [ -71.0297, 42.3835 ], [ -71.0297, 42.3835 ], [ -71.0297, 42.3835 ], [ -71.0296, 42.3835 ], [ -71.0296, 42.3835 ], [ -71.0296, 42.3835 ], [ -71.0296, 42.3835 ], [ -71.0296, 42.3835 ], [ -71.0296, 42.3835 ], [ -71.0296, 42.3835 ], [ -71.0296, 42.3835 ], [ -71.0296, 42.3835 ], [ -71.0296, 42.3835 ], [ -71.0296, 42.3835 ], [ -71.0296, 42.3835 ], [ -71.0296, 42.3835 ], [ -71.0296, 42.3835 ], [ -71.0296, 42.3835 ], [ -71.0296, 42.3835 ], [ -71.0296, 42.3835 ], [ -71.0296, 42.3835 ], [ -71.0296, 42.3835 ], [ -71.0296, 42.3835 ], [ -71.0296, 42.3835 ], [ -71.0296, 42.3835 ], [ -71.0296, 42.3835 ], [ -71.0296, 42.3835 ], [ -71.0296, 42.3835 ], [ -71.0296, 42.3835 ], [ -71.0296, 42.3835 ], [ -71.0296, 42.3835 ], [ -71.0296, 42.3835 ], [ -71.0296, 42.3835 ], [ -71.0295, 42.3835 ], [ -71.0295, 42.3835 ], [ -71.0295, 42.3835 ], [ -71.0295, 42.3835 ], [ -71.0295, 42.3835 ], [ -71.0295, 42.3835 ], [ -71.0295, 42.3835 ], [ -71.0295, 42.3835 ], [ -71.0295, 42.3835 ], [ -71.0295, 42.3835 ], [ -71.0295, 42.3835 ], [ -71.0295, 42.3835 ], [ -71.0295, 42.3835 ], [ -71.0295, 42.3835 ], [ -71.0295, 42.3835 ], [ -71.0295, 42.3835 ], [ -71.0295, 42.3835 ], [ -71.0295, 42.3835 ], [ -71.0295, 42.3835 ], [ -71.0295, 42.3835 ], [ -71.0295, 42.3835 ], [ -71.0295, 42.3835 ], [ -71.0295, 42.3835 ], [ -71.0295, 42.3835 ], [ -71.0295, 42.3835 ], [ -71.0295, 42.3835 ], [ -71.0295, 42.3835 ], [ -71.0295, 42.3835 ], [ -71.0295, 42.3835 ], [ -71.0295, 42.3835 ], [ -71.0295, 42.3835 ], [ -71.0294, 42.3835 ], [ -71.0294, 42.3835 ], [ -71.0294, 42.3835 ], [ -71.0294, 42.3835 ], [ -71.0294, 42.3835 ], [ -71.0294, 42.3835 ], [ -71.0294, 42.3835 ], [ -71.0294, 42.3835 ], [ -71.0294, 42.3835 ], [ -71.0294, 42.3835 ], [ -71.0293, 42.3835 ], [ -71.0293, 42.3835 ], [ -71.0293, 42.3835 ], [ -71.0293, 42.3835 ], [ -71.0293, 42.3835 ], [ -71.0293, 42.3835 ], [ -71.0293, 42.3835 ], [ -71.0293, 42.3835 ], [ -71.0293, 42.3835 ], [ -71.0293, 42.3835 ], [ -71.0293, 42.3835 ], [ -71.0293, 42.3835 ], [ -71.0293, 42.3835 ], [ -71.0293, 42.3835 ], [ -71.0293, 42.3835 ], [ -71.0292, 42.3835 ], [ -71.0292, 42.3835 ], [ -71.0292, 42.3835 ], [ -71.0292, 42.3835 ], [ -71.0292, 42.3835 ], [ -71.0292, 42.3835 ], [ -71.0292, 42.3835 ], [ -71.0292, 42.3835 ], [ -71.0292, 42.3835 ], [ -71.0292, 42.3835 ], [ -71.0291, 42.3835 ], [ -71.0291, 42.3835 ], [ -71.0291, 42.3835 ], [ -71.0291, 42.3835 ], [ -71.0290, 42.3835 ], [ -71.0290, 42.3835 ], [ -71.0290, 42.3835 ], [ -71.0290, 42.3835 ], [ -71.0290, 42.3835 ], [ -71.0290, 42.3835 ], [ -71.0290, 42.3835 ], [ -71.0290, 42.3835 ], [ -71.0290, 42.3835 ], [ -71.0290, 42.3835 ], [ -71.0290, 42.3835 ], [ -71.0290, 42.3835 ], [ -71.0290, 42.3835 ], [ -71.0290, 42.3835 ], [ -71.0290, 42.3835 ], [ -71.0289, 42.3835 ], [ -71.0289, 42.3835 ], [ -71.0289, 42.3835 ], [ -71.0289, 42.3835 ], [ -71.0289, 42.3835 ], [ -71.0289, 42.3835 ], [ -71.0289, 42.3835 ], [ -71.0289, 42.3835 ], [ -71.0289, 42.3834 ], [ -71.0289, 42.3834 ], [ -71.0289, 42.3834 ], [ -71.0289, 42.3833 ], [ -71.0289, 42.3833 ], [ -71.0289, 42.3833 ], [ -71.0289, 42.3833 ], [ -71.0288, 42.3833 ], [ -71.0288, 42.3833 ], [ -71.0288, 42.3833 ], [ -71.0288, 42.3833 ], [ -71.0288, 42.3833 ], [ -71.0288, 42.3833 ], [ -71.0288, 42.3833 ], [ -71.0288, 42.3833 ], [ -71.0288, 42.3832 ], [ -71.0288, 42.3832 ], [ -71.0288, 42.3832 ], [ -71.0288, 42.3832 ], [ -71.0288, 42.3832 ], [ -71.0288, 42.3832 ], [ -71.0288, 42.3832 ], [ -71.0288, 42.3831 ], [ -71.0288, 42.3831 ], [ -71.0288, 42.3831 ], [ -71.0288, 42.3831 ], [ -71.0288, 42.3831 ], [ -71.0288, 42.3831 ], [ -71.0288, 42.3831 ], [ -71.0288, 42.3831 ], [ -71.0288, 42.3831 ], [ -71.0288, 42.3831 ], [ -71.0288, 42.3831 ], [ -71.0288, 42.3831 ], [ -71.0288, 42.3831 ], [ -71.0287, 42.3831 ], [ -71.0287, 42.3831 ], [ -71.0287, 42.3831 ], [ -71.0287, 42.3831 ], [ -71.0287, 42.3831 ], [ -71.0287, 42.3831 ], [ -71.0287, 42.3831 ], [ -71.0287, 42.3831 ], [ -71.0287, 42.3831 ], [ -71.0287, 42.3831 ], [ -71.0287, 42.3831 ], [ -71.0287, 42.3831 ], [ -71.0287, 42.3831 ], [ -71.0287, 42.3831 ], [ -71.0287, 42.3831 ], [ -71.0287, 42.3831 ], [ -71.0287, 42.3831 ], [ -71.0287, 42.3831 ], [ -71.0287, 42.3831 ], [ -71.0287, 42.3831 ], [ -71.0287, 42.3831 ], [ -71.0287, 42.3831 ], [ -71.0287, 42.3831 ], [ -71.0287, 42.3831 ], [ -71.0287, 42.3831 ], [ -71.0287, 42.3831 ], [ -71.0287, 42.3831 ], [ -71.0287, 42.3831 ], [ -71.0287, 42.3831 ], [ -71.0287, 42.3831 ], [ -71.0287, 42.3831 ], [ -71.0287, 42.3831 ], [ -71.0287, 42.3831 ], [ -71.0287, 42.3831 ], [ -71.0287, 42.3831 ], [ -71.0287, 42.3831 ], [ -71.0287, 42.3831 ], [ -71.0287, 42.3831 ], [ -71.0287, 42.3831 ], [ -71.0287, 42.3831 ], [ -71.0287, 42.3831 ], [ -71.0287, 42.3831 ], [ -71.0287, 42.3831 ], [ -71.0287, 42.3831 ], [ -71.0287, 42.3831 ], [ -71.0287, 42.3831 ], [ -71.0287, 42.3831 ], [ -71.0287, 42.3831 ], [ -71.0287, 42.3831 ], [ -71.0287, 42.3831 ], [ -71.0287, 42.3831 ], [ -71.0287, 42.3831 ], [ -71.0287, 42.3831 ], [ -71.0287, 42.3831 ], [ -71.0287, 42.3831 ], [ -71.0287, 42.3831 ], [ -71.0286, 42.3831 ], [ -71.0286, 42.3831 ], [ -71.0286, 42.3831 ], [ -71.0286, 42.3831 ], [ -71.0286, 42.3831 ], [ -71.0286, 42.3831 ], [ -71.0286, 42.3831 ], [ -71.0286, 42.3831 ], [ -71.0286, 42.3831 ], [ -71.0286, 42.3831 ], [ -71.0286, 42.3831 ], [ -71.0286, 42.3831 ], [ -71.0286, 42.3831 ], [ -71.0286, 42.3831 ], [ -71.0286, 42.3831 ], [ -71.0286, 42.3831 ], [ -71.0286, 42.3831 ], [ -71.0286, 42.3831 ], [ -71.0286, 42.3831 ], [ -71.0286, 42.3831 ], [ -71.0286, 42.3831 ], [ -71.0286, 42.3831 ], [ -71.0286, 42.3831 ], [ -71.0286, 42.3831 ], [ -71.0286, 42.3831 ], [ -71.0286, 42.3832 ], [ -71.0286, 42.3832 ], [ -71.0286, 42.3832 ], [ -71.0286, 42.3832 ], [ -71.0286, 42.3832 ], [ -71.0286, 42.3832 ], [ -71.0286, 42.3832 ], [ -71.0286, 42.3832 ], [ -71.0286, 42.3832 ], [ -71.0286, 42.3832 ], [ -71.0286, 42.3832 ], [ -71.0286, 42.3832 ], [ -71.0286, 42.3832 ], [ -71.0286, 42.3832 ], [ -71.0286, 42.3832 ], [ -71.0286, 42.3832 ], [ -71.0286, 42.3832 ], [ -71.0286, 42.3832 ], [ -71.0286, 42.3832 ], [ -71.0286, 42.3832 ], [ -71.0286, 42.3832 ], [ -71.0286, 42.3832 ], [ -71.0286, 42.3832 ], [ -71.0286, 42.3832 ], [ -71.0286, 42.3832 ], [ -71.0286, 42.3832 ], [ -71.0286, 42.3832 ], [ -71.0286, 42.3832 ], [ -71.0286, 42.3832 ], [ -71.0286, 42.3832 ], [ -71.0286, 42.3832 ], [ -71.0286, 42.3832 ], [ -71.0286, 42.3832 ], [ -71.0286, 42.3832 ], [ -71.0286, 42.3832 ], [ -71.0286, 42.3832 ], [ -71.0286, 42.3832 ], [ -71.0286, 42.3832 ], [ -71.0286, 42.3832 ], [ -71.0286, 42.3832 ], [ -71.0286, 42.3832 ], [ -71.0286, 42.3832 ], [ -71.0286, 42.3832 ], [ -71.0286, 42.3832 ], [ -71.0286, 42.3832 ], [ -71.0286, 42.3832 ], [ -71.0286, 42.3832 ], [ -71.0286, 42.3832 ], [ -71.0286, 42.3832 ], [ -71.0286, 42.3831 ], [ -71.0286, 42.3831 ], [ -71.0286, 42.3831 ], [ -71.0286, 42.3831 ], [ -71.0286, 42.3831 ], [ -71.0286, 42.3831 ], [ -71.0286, 42.3831 ], [ -71.0286, 42.3831 ], [ -71.0286, 42.3831 ], [ -71.0286, 42.3831 ], [ -71.0285, 42.3831 ], [ -71.0285, 42.3831 ], [ -71.0285, 42.3831 ], [ -71.0285, 42.3831 ], [ -71.0285, 42.3830 ], [ -71.0285, 42.3830 ], [ -71.0285, 42.3830 ], [ -71.0285, 42.3830 ], [ -71.0286, 42.3830 ], [ -71.0286, 42.3830 ], [ -71.0286, 42.3830 ], [ -71.0286, 42.3830 ], [ -71.0286, 42.3830 ], [ -71.0286, 42.3830 ], [ -71.0286, 42.3830 ], [ -71.0286, 42.3830 ], [ -71.0286, 42.3830 ], [ -71.0286, 42.3830 ], [ -71.0286, 42.3830 ], [ -71.0286, 42.3830 ], [ -71.0286, 42.3830 ], [ -71.0286, 42.3830 ], [ -71.0286, 42.3830 ], [ -71.0286, 42.3830 ], [ -71.0286, 42.3830 ], [ -71.0286, 42.3830 ], [ -71.0286, 42.3830 ], [ -71.0286, 42.3830 ], [ -71.0286, 42.3830 ], [ -71.0286, 42.3830 ], [ -71.0286, 42.3830 ], [ -71.0286, 42.3830 ], [ -71.0286, 42.3830 ], [ -71.0286, 42.3830 ], [ -71.0286, 42.3830 ], [ -71.0286, 42.3830 ], [ -71.0286, 42.3830 ], [ -71.0286, 42.3830 ], [ -71.0286, 42.3830 ], [ -71.0286, 42.3830 ], [ -71.0286, 42.3830 ], [ -71.0286, 42.3829 ], [ -71.0286, 42.3829 ], [ -71.0286, 42.3829 ], [ -71.0286, 42.3829 ], [ -71.0286, 42.3829 ], [ -71.0285, 42.3829 ], [ -71.0285, 42.3828 ], [ -71.0285, 42.3828 ], [ -71.0285, 42.3828 ], [ -71.0285, 42.3828 ], [ -71.0285, 42.3828 ], [ -71.0285, 42.3828 ], [ -71.0285, 42.3828 ], [ -71.0285, 42.3828 ], [ -71.0285, 42.3828 ], [ -71.0284, 42.3828 ], [ -71.0284, 42.3828 ], [ -71.0284, 42.3828 ], [ -71.0284, 42.3827 ], [ -71.0284, 42.3827 ], [ -71.0283, 42.3827 ], [ -71.0283, 42.3827 ], [ -71.0282, 42.3827 ], [ -71.0282, 42.3827 ], [ -71.0281, 42.3827 ], [ -71.0281, 42.3827 ], [ -71.0280, 42.3827 ], [ -71.0280, 42.3827 ], [ -71.0279, 42.3827 ], [ -71.0279, 42.3827 ], [ -71.0278, 42.3827 ], [ -71.0278, 42.3827 ], [ -71.0277, 42.3827 ], [ -71.0277, 42.3827 ], [ -71.0277, 42.3827 ], [ -71.0277, 42.3827 ], [ -71.0277, 42.3827 ], [ -71.0276, 42.3827 ], [ -71.0275, 42.3827 ], [ -71.0275, 42.3827 ], [ -71.0274, 42.3827 ], [ -71.0274, 42.3827 ], [ -71.0273, 42.3827 ], [ -71.0273, 42.3827 ], [ -71.0273, 42.3827 ], [ -71.0273, 42.3827 ], [ -71.0273, 42.3827 ], [ -71.0273, 42.3827 ], [ -71.0273, 42.3827 ], [ -71.0272, 42.3827 ], [ -71.0272, 42.3827 ], [ -71.0272, 42.3827 ], [ -71.0272, 42.3827 ], [ -71.0272, 42.3827 ], [ -71.0272, 42.3827 ], [ -71.0272, 42.3827 ], [ -71.0271, 42.3827 ], [ -71.0271, 42.3827 ], [ -71.0271, 42.3827 ], [ -71.0271, 42.3827 ], [ -71.0271, 42.3827 ], [ -71.0271, 42.3827 ], [ -71.0271, 42.3827 ], [ -71.0271, 42.3827 ], [ -71.0271, 42.3827 ], [ -71.0271, 42.3827 ], [ -71.0271, 42.3827 ], [ -71.0271, 42.3827 ], [ -71.0271, 42.3827 ], [ -71.0271, 42.3827 ], [ -71.0271, 42.3827 ], [ -71.0271, 42.3827 ], [ -71.0271, 42.3827 ], [ -71.0271, 42.3827 ], [ -71.0271, 42.3827 ], [ -71.0271, 42.3827 ], [ -71.0271, 42.3827 ], [ -71.0271, 42.3827 ], [ -71.0271, 42.3827 ], [ -71.0271, 42.3827 ], [ -71.0271, 42.3827 ], [ -71.0271, 42.3827 ], [ -71.0271, 42.3827 ], [ -71.0271, 42.3827 ], [ -71.0271, 42.3827 ], [ -71.0271, 42.3827 ], [ -71.0271, 42.3827 ], [ -71.0271, 42.3827 ], [ -71.0271, 42.3827 ], [ -71.0271, 42.3827 ], [ -71.0271, 42.3827 ], [ -71.0271, 42.3827 ], [ -71.0271, 42.3827 ], [ -71.0271, 42.3827 ], [ -71.0271, 42.3827 ], [ -71.0271, 42.3827 ], [ -71.0271, 42.3827 ], [ -71.0271, 42.3827 ], [ -71.0271, 42.3827 ], [ -71.0272, 42.3827 ], [ -71.0272, 42.3827 ], [ -71.0272, 42.3827 ], [ -71.0272, 42.3827 ], [ -71.0272, 42.3827 ], [ -71.0272, 42.3827 ], [ -71.0272, 42.3827 ], [ -71.0272, 42.3827 ], [ -71.0272, 42.3827 ], [ -71.0272, 42.3827 ], [ -71.0272, 42.3827 ], [ -71.0272, 42.3827 ], [ -71.0272, 42.3827 ], [ -71.0272, 42.3827 ], [ -71.0272, 42.3827 ], [ -71.0272, 42.3827 ], [ -71.0272, 42.3827 ], [ -71.0272, 42.3827 ], [ -71.0272, 42.3827 ], [ -71.0272, 42.3827 ], [ -71.0272, 42.3827 ], [ -71.0272, 42.3827 ], [ -71.0272, 42.3827 ], [ -71.0272, 42.3827 ], [ -71.0271, 42.3827 ], [ -71.0271, 42.3827 ], [ -71.0271, 42.3827 ], [ -71.0271, 42.3827 ], [ -71.0271, 42.3827 ], [ -71.0271, 42.3827 ], [ -71.0271, 42.3827 ], [ -71.0271, 42.3827 ], [ -71.0271, 42.3827 ], [ -71.0271, 42.3828 ], [ -71.0271, 42.3828 ], [ -71.0271, 42.3828 ], [ -71.0271, 42.3828 ], [ -71.0272, 42.3828 ], [ -71.0272, 42.3828 ], [ -71.0272, 42.3828 ], [ -71.0272, 42.3828 ], [ -71.0272, 42.3828 ], [ -71.0272, 42.3828 ], [ -71.0272, 42.3828 ], [ -71.0272, 42.3828 ], [ -71.0272, 42.3828 ], [ -71.0272, 42.3828 ], [ -71.0272, 42.3828 ], [ -71.0272, 42.3828 ], [ -71.0272, 42.3828 ], [ -71.0272, 42.3828 ], [ -71.0272, 42.3829 ], [ -71.0272, 42.3829 ], [ -71.0272, 42.3829 ], [ -71.0272, 42.3829 ], [ -71.0272, 42.3829 ], [ -71.0272, 42.3829 ], [ -71.0272, 42.3829 ], [ -71.0272, 42.3829 ], [ -71.0272, 42.3829 ], [ -71.0272, 42.3829 ], [ -71.0272, 42.3829 ], [ -71.0272, 42.3829 ], [ -71.0272, 42.3829 ], [ -71.0272, 42.3829 ], [ -71.0272, 42.3829 ], [ -71.0272, 42.3829 ], [ -71.0272, 42.3829 ], [ -71.0272, 42.3829 ], [ -71.0272, 42.3829 ], [ -71.0272, 42.3830 ], [ -71.0272, 42.3830 ], [ -71.0272, 42.3830 ], [ -71.0272, 42.3830 ], [ -71.0272, 42.3830 ], [ -71.0272, 42.3830 ], [ -71.0272, 42.3830 ], [ -71.0272, 42.3830 ], [ -71.0272, 42.3830 ], [ -71.0272, 42.3830 ], [ -71.0272, 42.3830 ], [ -71.0272, 42.3830 ], [ -71.0272, 42.3830 ], [ -71.0272, 42.3830 ], [ -71.0272, 42.3830 ], [ -71.0272, 42.3830 ], [ -71.0272, 42.3830 ], [ -71.0272, 42.3830 ], [ -71.0272, 42.3830 ], [ -71.0272, 42.3830 ], [ -71.0272, 42.3830 ], [ -71.0272, 42.3830 ], [ -71.0272, 42.3830 ], [ -71.0272, 42.3830 ], [ -71.0272, 42.3830 ], [ -71.0272, 42.3830 ], [ -71.0272, 42.3830 ], [ -71.0272, 42.3830 ], [ -71.0272, 42.3830 ], [ -71.0272, 42.3830 ], [ -71.0272, 42.3830 ], [ -71.0272, 42.3830 ], [ -71.0272, 42.3830 ], [ -71.0272, 42.3830 ], [ -71.0272, 42.3830 ], [ -71.0272, 42.3830 ], [ -71.0272, 42.3830 ], [ -71.0272, 42.3830 ], [ -71.0272, 42.3830 ], [ -71.0272, 42.3831 ], [ -71.0272, 42.3831 ], [ -71.0272, 42.3831 ], [ -71.0272, 42.3831 ], [ -71.0272, 42.3831 ], [ -71.0272, 42.3831 ], [ -71.0272, 42.3831 ], [ -71.0272, 42.3831 ], [ -71.0272, 42.3831 ], [ -71.0272, 42.3831 ], [ -71.0272, 42.3831 ], [ -71.0272, 42.3831 ], [ -71.0272, 42.3832 ], [ -71.0272, 42.3832 ], [ -71.0272, 42.3832 ], [ -71.0272, 42.3832 ], [ -71.0272, 42.3832 ], [ -71.0272, 42.3833 ], [ -71.0272, 42.3833 ], [ -71.0272, 42.3833 ], [ -71.0272, 42.3833 ], [ -71.0272, 42.3833 ], [ -71.0272, 42.3833 ], [ -71.0272, 42.3833 ], [ -71.0271, 42.3833 ], [ -71.0271, 42.3833 ], [ -71.0271, 42.3834 ], [ -71.0271, 42.3834 ], [ -71.0271, 42.3834 ], [ -71.0271, 42.3834 ], [ -71.0271, 42.3834 ], [ -71.0271, 42.3834 ], [ -71.0271, 42.3834 ], [ -71.0271, 42.3834 ], [ -71.0271, 42.3834 ], [ -71.0271, 42.3834 ], [ -71.0270, 42.3834 ], [ -71.0270, 42.3834 ], [ -71.0270, 42.3834 ], [ -71.0270, 42.3834 ], [ -71.0270, 42.3834 ], [ -71.0270, 42.3834 ], [ -71.0270, 42.3834 ], [ -71.0270, 42.3834 ], [ -71.0270, 42.3834 ], [ -71.0270, 42.3834 ], [ -71.0270, 42.3834 ], [ -71.0270, 42.3834 ], [ -71.0270, 42.3834 ], [ -71.0270, 42.3834 ], [ -71.0270, 42.3834 ], [ -71.0270, 42.3834 ], [ -71.0270, 42.3834 ], [ -71.0270, 42.3834 ], [ -71.0270, 42.3834 ], [ -71.0270, 42.3834 ], [ -71.0270, 42.3834 ], [ -71.0270, 42.3834 ], [ -71.0270, 42.3834 ], [ -71.0270, 42.3834 ], [ -71.0270, 42.3834 ], [ -71.0270, 42.3834 ], [ -71.0270, 42.3834 ], [ -71.0270, 42.3834 ], [ -71.0270, 42.3834 ], [ -71.0270, 42.3834 ], [ -71.0270, 42.3834 ], [ -71.0270, 42.3834 ], [ -71.0270, 42.3834 ], [ -71.0270, 42.3834 ], [ -71.0270, 42.3835 ], [ -71.0270, 42.3835 ], [ -71.0270, 42.3835 ], [ -71.0270, 42.3835 ], [ -71.0270, 42.3835 ], [ -71.0270, 42.3835 ], [ -71.0270, 42.3835 ], [ -71.0270, 42.3835 ], [ -71.0270, 42.3835 ], [ -71.0270, 42.3835 ], [ -71.0270, 42.3835 ], [ -71.0270, 42.3835 ], [ -71.0270, 42.3835 ], [ -71.0270, 42.3835 ], [ -71.0270, 42.3835 ], [ -71.0270, 42.3835 ], [ -71.0270, 42.3835 ], [ -71.0270, 42.3835 ], [ -71.0270, 42.3835 ], [ -71.0270, 42.3835 ], [ -71.0270, 42.3835 ], [ -71.0270, 42.3835 ], [ -71.0270, 42.3835 ], [ -71.0270, 42.3835 ], [ -71.0270, 42.3835 ], [ -71.0270, 42.3835 ], [ -71.0270, 42.3835 ], [ -71.0270, 42.3835 ], [ -71.0270, 42.3835 ], [ -71.0270, 42.3835 ], [ -71.0270, 42.3835 ], [ -71.0270, 42.3835 ], [ -71.0270, 42.3835 ], [ -71.0269, 42.3835 ], [ -71.0269, 42.3835 ], [ -71.0269, 42.3835 ], [ -71.0269, 42.3836 ], [ -71.0269, 42.3836 ], [ -71.0269, 42.3836 ], [ -71.0268, 42.3836 ], [ -71.0268, 42.3836 ], [ -71.0267, 42.3836 ], [ -71.0267, 42.3836 ], [ -71.0267, 42.3836 ], [ -71.0267, 42.3836 ], [ -71.0267, 42.3836 ], [ -71.0266, 42.3836 ], [ -71.0266, 42.3836 ], [ -71.0266, 42.3836 ], [ -71.0265, 42.3837 ], [ -71.0264, 42.3837 ], [ -71.0264, 42.3837 ], [ -71.0264, 42.3837 ], [ -71.0263, 42.3837 ], [ -71.0263, 42.3837 ], [ -71.0263, 42.3837 ], [ -71.0263, 42.3838 ], [ -71.0262, 42.3838 ], [ -71.0261, 42.3838 ], [ -71.0260, 42.3839 ], [ -71.0257, 42.3840 ], [ -71.0254, 42.3841 ], [ -71.0252, 42.3842 ], [ -71.0251, 42.3842 ], [ -71.0249, 42.3843 ], [ -71.0247, 42.3844 ], [ -71.0247, 42.3844 ], [ -71.0246, 42.3845 ], [ -71.0245, 42.3846 ], [ -71.0243, 42.3847 ], [ -71.0241, 42.3848 ], [ -71.0238, 42.3849 ], [ -71.0238, 42.3849 ], [ -71.0237, 42.3850 ], [ -71.0235, 42.3851 ], [ -71.0233, 42.3851 ], [ -71.0232, 42.3852 ], [ -71.0229, 42.3854 ], [ -71.0227, 42.3855 ], [ -71.0227, 42.3855 ], [ -71.0227, 42.3855 ], [ -71.0227, 42.3855 ], [ -71.0226, 42.3856 ], [ -71.0226, 42.3856 ], [ -71.0225, 42.3857 ], [ -71.0224, 42.3857 ], [ -71.0222, 42.3858 ], [ -71.0222, 42.3858 ], [ -71.0222, 42.3858 ], [ -71.0221, 42.3858 ], [ -71.0222, 42.3860 ], [ -71.0221, 42.3860 ], [ -71.0221, 42.3859 ], [ -71.0221, 42.3859 ], [ -71.0220, 42.3859 ], [ -71.0220, 42.3859 ], [ -71.0220, 42.3859 ], [ -71.0217, 42.3861 ], [ -71.0210, 42.3863 ], [ -71.0209, 42.3862 ], [ -71.0208, 42.3863 ], [ -71.0208, 42.3863 ], [ -71.0208, 42.3863 ], [ -71.0208, 42.3863 ], [ -71.0207, 42.3863 ], [ -71.0207, 42.3863 ], [ -71.0206, 42.3863 ], [ -71.0205, 42.3863 ], [ -71.0204, 42.3863 ], [ -71.0203, 42.3863 ], [ -71.0203, 42.3863 ], [ -71.0201, 42.3863 ], [ -71.0200, 42.3863 ], [ -71.0199, 42.3863 ], [ -71.0198, 42.3863 ], [ -71.0198, 42.3863 ], [ -71.0197, 42.3863 ], [ -71.0197, 42.3863 ], [ -71.0197, 42.3863 ], [ -71.0197, 42.3863 ], [ -71.0196, 42.3863 ], [ -71.0196, 42.3864 ], [ -71.0196, 42.3864 ], [ -71.0196, 42.3864 ], [ -71.0195, 42.3864 ], [ -71.0195, 42.3864 ], [ -71.0195, 42.3864 ], [ -71.0195, 42.3864 ], [ -71.0195, 42.3864 ], [ -71.0195, 42.3865 ], [ -71.0195, 42.3865 ], [ -71.0194, 42.3865 ], [ -71.0194, 42.3866 ], [ -71.0194, 42.3866 ], [ -71.0194, 42.3866 ], [ -71.0193, 42.3866 ], [ -71.0193, 42.3867 ], [ -71.0193, 42.3867 ], [ -71.0192, 42.3867 ], [ -71.0192, 42.3868 ], [ -71.0192, 42.3868 ], [ -71.0192, 42.3868 ], [ -71.0191, 42.3869 ], [ -71.0191, 42.3869 ], [ -71.0190, 42.3870 ], [ -71.0190, 42.3870 ], [ -71.0190, 42.3870 ], [ -71.0190, 42.3870 ], [ -71.0189, 42.3871 ], [ -71.0189, 42.3871 ], [ -71.0189, 42.3871 ], [ -71.0188, 42.3872 ], [ -71.0188, 42.3872 ], [ -71.0188, 42.3872 ], [ -71.0188, 42.3873 ], [ -71.0187, 42.3873 ], [ -71.0187, 42.3873 ], [ -71.0187, 42.3873 ], [ -71.0187, 42.3873 ], [ -71.0187, 42.3873 ], [ -71.0187, 42.3873 ], [ -71.0187, 42.3874 ], [ -71.0187, 42.3874 ], [ -71.0187, 42.3874 ], [ -71.0187, 42.3874 ], [ -71.0187, 42.3874 ], [ -71.0186, 42.3874 ], [ -71.0187, 42.3874 ], [ -71.0186, 42.3874 ], [ -71.0186, 42.3874 ], [ -71.0186, 42.3874 ], [ -71.0186, 42.3874 ], [ -71.0186, 42.3874 ], [ -71.0186, 42.3874 ], [ -71.0186, 42.3874 ], [ -71.0186, 42.3874 ], [ -71.0186, 42.3874 ], [ -71.0186, 42.3874 ], [ -71.0186, 42.3874 ], [ -71.0186, 42.3874 ], [ -71.0186, 42.3874 ], [ -71.0186, 42.3874 ], [ -71.0186, 42.3874 ], [ -71.0185, 42.3875 ], [ -71.0185, 42.3875 ], [ -71.0185, 42.3875 ], [ -71.0185, 42.3875 ], [ -71.0185, 42.3875 ], [ -71.0185, 42.3876 ], [ -71.0185, 42.3876 ], [ -71.0184, 42.3876 ], [ -71.0184, 42.3876 ], [ -71.0184, 42.3876 ], [ -71.0184, 42.3876 ], [ -71.0184, 42.3877 ], [ -71.0184, 42.3877 ], [ -71.0184, 42.3877 ], [ -71.0184, 42.3877 ], [ -71.0184, 42.3877 ], [ -71.0184, 42.3877 ], [ -71.0184, 42.3877 ], [ -71.0183, 42.3878 ], [ -71.0183, 42.3878 ], [ -71.0182, 42.3879 ], [ -71.0182, 42.3879 ], [ -71.0182, 42.3880 ], [ -71.0181, 42.3880 ], [ -71.0181, 42.3880 ], [ -71.0181, 42.3880 ], [ -71.0181, 42.3880 ], [ -71.0180, 42.3881 ], [ -71.0180, 42.3881 ], [ -71.0180, 42.3882 ], [ -71.0179, 42.3882 ], [ -71.0179, 42.3883 ], [ -71.0179, 42.3883 ], [ -71.0179, 42.3883 ], [ -71.0179, 42.3883 ], [ -71.0179, 42.3883 ], [ -71.0179, 42.3883 ], [ -71.0179, 42.3883 ], [ -71.0179, 42.3883 ], [ -71.0179, 42.3883 ], [ -71.0179, 42.3883 ], [ -71.0179, 42.3883 ], [ -71.0179, 42.3883 ], [ -71.0179, 42.3883 ], [ -71.0179, 42.3883 ], [ -71.0179, 42.3883 ], [ -71.0179, 42.3884 ], [ -71.0179, 42.3884 ], [ -71.0179, 42.3884 ], [ -71.0179, 42.3884 ], [ -71.0179, 42.3884 ], [ -71.0180, 42.3884 ], [ -71.0180, 42.3884 ], [ -71.0180, 42.3884 ], [ -71.0180, 42.3884 ], [ -71.0180, 42.3884 ], [ -71.0180, 42.3884 ], [ -71.0180, 42.3884 ], [ -71.0180, 42.3884 ], [ -71.0180, 42.3884 ], [ -71.0180, 42.3884 ], [ -71.0180, 42.3884 ], [ -71.0180, 42.3884 ], [ -71.0180, 42.3884 ], [ -71.0180, 42.3884 ], [ -71.0180, 42.3884 ], [ -71.0180, 42.3884 ], [ -71.0180, 42.3885 ], [ -71.0180, 42.3885 ], [ -71.0180, 42.3885 ], [ -71.0180, 42.3885 ], [ -71.0180, 42.3885 ], [ -71.0180, 42.3885 ], [ -71.0179, 42.3885 ], [ -71.0179, 42.3885 ], [ -71.0179, 42.3885 ], [ -71.0179, 42.3885 ], [ -71.0179, 42.3885 ], [ -71.0179, 42.3885 ], [ -71.0179, 42.3885 ], [ -71.0179, 42.3885 ], [ -71.0179, 42.3885 ], [ -71.0179, 42.3885 ], [ -71.0179, 42.3885 ], [ -71.0179, 42.3885 ], [ -71.0179, 42.3885 ], [ -71.0178, 42.3885 ], [ -71.0178, 42.3885 ], [ -71.0178, 42.3885 ], [ -71.0178, 42.3885 ], [ -71.0178, 42.3885 ], [ -71.0178, 42.3885 ], [ -71.0178, 42.3885 ], [ -71.0178, 42.3885 ], [ -71.0178, 42.3885 ], [ -71.0178, 42.3885 ], [ -71.0178, 42.3885 ], [ -71.0178, 42.3885 ], [ -71.0178, 42.3885 ], [ -71.0178, 42.3885 ], [ -71.0178, 42.3885 ], [ -71.0178, 42.3885 ], [ -71.0177, 42.3885 ], [ -71.0177, 42.3885 ], [ -71.0177, 42.3885 ], [ -71.0177, 42.3885 ], [ -71.0177, 42.3885 ], [ -71.0177, 42.3885 ], [ -71.0177, 42.3885 ], [ -71.0177, 42.3885 ], [ -71.0177, 42.3885 ], [ -71.0177, 42.3886 ], [ -71.0177, 42.3886 ], [ -71.0176, 42.3886 ], [ -71.0176, 42.3886 ], [ -71.0176, 42.3886 ], [ -71.0176, 42.3886 ], [ -71.0176, 42.3887 ], [ -71.0175, 42.3887 ], [ -71.0175, 42.3887 ], [ -71.0175, 42.3888 ], [ -71.0174, 42.3888 ], [ -71.0174, 42.3889 ], [ -71.0174, 42.3889 ], [ -71.0173, 42.3890 ], [ -71.0173, 42.3890 ], [ -71.0173, 42.3890 ], [ -71.0172, 42.3891 ], [ -71.0172, 42.3891 ], [ -71.0172, 42.3892 ], [ -71.0171, 42.3892 ], [ -71.0171, 42.3892 ], [ -71.0171, 42.3893 ], [ -71.0170, 42.3893 ], [ -71.0170, 42.3894 ], [ -71.0170, 42.3894 ], [ -71.0169, 42.3894 ], [ -71.0169, 42.3895 ], [ -71.0168, 42.3895 ], [ -71.0168, 42.3896 ], [ -71.0168, 42.3896 ], [ -71.0168, 42.3896 ], [ -71.0167, 42.3897 ], [ -71.0167, 42.3898 ], [ -71.0166, 42.3898 ], [ -71.0166, 42.3899 ], [ -71.0166, 42.3899 ], [ -71.0166, 42.3899 ], [ -71.0165, 42.3899 ], [ -71.0165, 42.3899 ], [ -71.0165, 42.3899 ], [ -71.0165, 42.3899 ], [ -71.0165, 42.3899 ], [ -71.0165, 42.3899 ], [ -71.0165, 42.3899 ], [ -71.0165, 42.3899 ], [ -71.0165, 42.3899 ], [ -71.0165, 42.3899 ], [ -71.0165, 42.3899 ], [ -71.0165, 42.3899 ], [ -71.0165, 42.3899 ], [ -71.0165, 42.3899 ], [ -71.0165, 42.3899 ], [ -71.0165, 42.3899 ], [ -71.0165, 42.3899 ], [ -71.0165, 42.3899 ], [ -71.0166, 42.3899 ], [ -71.0166, 42.3899 ], [ -71.0166, 42.3900 ], [ -71.0166, 42.3900 ], [ -71.0166, 42.3900 ], [ -71.0166, 42.3900 ], [ -71.0166, 42.3900 ], [ -71.0166, 42.3900 ], [ -71.0166, 42.3900 ], [ -71.0166, 42.3900 ], [ -71.0166, 42.3900 ], [ -71.0166, 42.3900 ], [ -71.0166, 42.3900 ], [ -71.0166, 42.3900 ], [ -71.0166, 42.3900 ], [ -71.0166, 42.3900 ], [ -71.0166, 42.3900 ], [ -71.0166, 42.3900 ], [ -71.0166, 42.3900 ], [ -71.0166, 42.3900 ], [ -71.0166, 42.3900 ], [ -71.0166, 42.3900 ], [ -71.0166, 42.3900 ], [ -71.0166, 42.3900 ], [ -71.0166, 42.3901 ], [ -71.0166, 42.3901 ], [ -71.0166, 42.3901 ], [ -71.0166, 42.3901 ], [ -71.0166, 42.3901 ], [ -71.0166, 42.3901 ], [ -71.0166, 42.3901 ], [ -71.0166, 42.3901 ], [ -71.0165, 42.3901 ], [ -71.0165, 42.3901 ], [ -71.0165, 42.3901 ], [ -71.0165, 42.3901 ], [ -71.0165, 42.3901 ], [ -71.0165, 42.3901 ], [ -71.0165, 42.3901 ], [ -71.0165, 42.3901 ], [ -71.0165, 42.3901 ], [ -71.0165, 42.3901 ], [ -71.0165, 42.3901 ], [ -71.0165, 42.3901 ], [ -71.0165, 42.3901 ], [ -71.0164, 42.3901 ], [ -71.0164, 42.3901 ], [ -71.0164, 42.3901 ], [ -71.0164, 42.3901 ], [ -71.0164, 42.3901 ], [ -71.0164, 42.3901 ], [ -71.0164, 42.3901 ], [ -71.0164, 42.3901 ], [ -71.0164, 42.3901 ], [ -71.0164, 42.3901 ], [ -71.0164, 42.3901 ], [ -71.0164, 42.3901 ], [ -71.0164, 42.3901 ], [ -71.0164, 42.3901 ], [ -71.0164, 42.3901 ], [ -71.0164, 42.3901 ], [ -71.0163, 42.3901 ], [ -71.0163, 42.3901 ], [ -71.0163, 42.3902 ], [ -71.0163, 42.3902 ], [ -71.0162, 42.3903 ], [ -71.0162, 42.3903 ], [ -71.0162, 42.3904 ], [ -71.0161, 42.3904 ], [ -71.0161, 42.3905 ], [ -71.0161, 42.3905 ], [ -71.0160, 42.3905 ], [ -71.0160, 42.3906 ], [ -71.0159, 42.3906 ], [ -71.0159, 42.3907 ], [ -71.0159, 42.3907 ], [ -71.0158, 42.3908 ], [ -71.0158, 42.3908 ], [ -71.0157, 42.3909 ], [ -71.0157, 42.3909 ], [ -71.0157, 42.3910 ], [ -71.0156, 42.3910 ], [ -71.0156, 42.3910 ], [ -71.0156, 42.3910 ], [ -71.0156, 42.3911 ], [ -71.0156, 42.3911 ], [ -71.0155, 42.3911 ], [ -71.0155, 42.3912 ], [ -71.0154, 42.3912 ], [ -71.0154, 42.3912 ], [ -71.0154, 42.3912 ], [ -71.0154, 42.3912 ], [ -71.0154, 42.3913 ], [ -71.0154, 42.3913 ], [ -71.0154, 42.3913 ], [ -71.0153, 42.3914 ], [ -71.0153, 42.3914 ], [ -71.0152, 42.3915 ], [ -71.0152, 42.3915 ], [ -71.0152, 42.3915 ], [ -71.0152, 42.3916 ], [ -71.0151, 42.3916 ], [ -71.0151, 42.3916 ], [ -71.0151, 42.3917 ], [ -71.0150, 42.3917 ], [ -71.0150, 42.3918 ], [ -71.0149, 42.3918 ], [ -71.0149, 42.3919 ], [ -71.0149, 42.3919 ], [ -71.0148, 42.3920 ], [ -71.0148, 42.3920 ], [ -71.0148, 42.3920 ], [ -71.0148, 42.3920 ], [ -71.0148, 42.3920 ], [ -71.0148, 42.3920 ], [ -71.0148, 42.3920 ], [ -71.0148, 42.3920 ], [ -71.0148, 42.3921 ], [ -71.0148, 42.3921 ], [ -71.0148, 42.3921 ], [ -71.0148, 42.3921 ], [ -71.0148, 42.3921 ], [ -71.0148, 42.3921 ], [ -71.0148, 42.3922 ], [ -71.0149, 42.3923 ], [ -71.0149, 42.3923 ], [ -71.0150, 42.3924 ], [ -71.0150, 42.3924 ], [ -71.0150, 42.3924 ], [ -71.0151, 42.3925 ], [ -71.0151, 42.3925 ], [ -71.0152, 42.3925 ], [ -71.0152, 42.3926 ], [ -71.0152, 42.3926 ], [ -71.0154, 42.3927 ], [ -71.0154, 42.3927 ], [ -71.0155, 42.3928 ], [ -71.0155, 42.3928 ], [ -71.0156, 42.3928 ], [ -71.0156, 42.3929 ], [ -71.0156, 42.3929 ], [ -71.0157, 42.3929 ], [ -71.0157, 42.3930 ], [ -71.0157, 42.3931 ], [ -71.0157, 42.3931 ], [ -71.0157, 42.3931 ], [ -71.0157, 42.3932 ], [ -71.0157, 42.3932 ], [ -71.0157, 42.3933 ], [ -71.0157, 42.3934 ], [ -71.0157, 42.3934 ], [ -71.0157, 42.3935 ], [ -71.0157, 42.3935 ], [ -71.0157, 42.3935 ], [ -71.0157, 42.3936 ], [ -71.0157, 42.3937 ], [ -71.0157, 42.3938 ], [ -71.0157, 42.3938 ], [ -71.0157, 42.3938 ], [ -71.0157, 42.3938 ], [ -71.0156, 42.3938 ], [ -71.0156, 42.3939 ], [ -71.0156, 42.3939 ], [ -71.0156, 42.3939 ], [ -71.0156, 42.3939 ], [ -71.0156, 42.3939 ], [ -71.0155, 42.3939 ], [ -71.0155, 42.3940 ], [ -71.0154, 42.3940 ], [ -71.0154, 42.3940 ], [ -71.0154, 42.3940 ], [ -71.0153, 42.3940 ], [ -71.0153, 42.3940 ], [ -71.0153, 42.3941 ], [ -71.0153, 42.3941 ], [ -71.0153, 42.3941 ], [ -71.0153, 42.3941 ], [ -71.0152, 42.3941 ], [ -71.0152, 42.3941 ], [ -71.0152, 42.3942 ], [ -71.0152, 42.3942 ], [ -71.0151, 42.3943 ], [ -71.0151, 42.3944 ], [ -71.0151, 42.3944 ], [ -71.0151, 42.3944 ], [ -71.0151, 42.3944 ], [ -71.0151, 42.3944 ], [ -71.0151, 42.3944 ], [ -71.0151, 42.3944 ], [ -71.0151, 42.3944 ], [ -71.0151, 42.3944 ], [ -71.0151, 42.3944 ], [ -71.0151, 42.3945 ], [ -71.0150, 42.3945 ], [ -71.0150, 42.3945 ], [ -71.0150, 42.3945 ], [ -71.0150, 42.3945 ], [ -71.0150, 42.3945 ], [ -71.0150, 42.3945 ], [ -71.0149, 42.3946 ], [ -71.0149, 42.3946 ], [ -71.0149, 42.3946 ], [ -71.0148, 42.3946 ], [ -71.0148, 42.3947 ], [ -71.0148, 42.3947 ], [ -71.0147, 42.3947 ], [ -71.0147, 42.3947 ], [ -71.0147, 42.3947 ], [ -71.0147, 42.3947 ], [ -71.0147, 42.3947 ], [ -71.0146, 42.3948 ], [ -71.0146, 42.3948 ], [ -71.0146, 42.3948 ], [ -71.0146, 42.3949 ], [ -71.0145, 42.3949 ], [ -71.0145, 42.3949 ], [ -71.0145, 42.3949 ], [ -71.0142, 42.3951 ], [ -71.0130, 42.3954 ], [ -71.0121, 42.3955 ], [ -71.0118, 42.3957 ], [ -71.0098, 42.3954 ], [ -71.0089, 42.3951 ], [ -71.0058, 42.3938 ], [ -71.0056, 42.3939 ], [ -71.0053, 42.3940 ], [ -71.0014, 42.3967 ], [ -70.9994, 42.3969 ], [ -70.9991, 42.3969 ], [ -70.9987, 42.3969 ], [ -70.9983, 42.3969 ], [ -70.9976, 42.3967 ], [ -70.9964, 42.3963 ], [ -70.9955, 42.3942 ], [ -70.9954, 42.3939 ] ] ] } }, + { "type": "Feature", "properties": { "Name": "Charlestown", "density": 4.4100 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -71.0741, 42.3905 ], [ -71.0741, 42.3904 ], [ -71.0740, 42.3905 ], [ -71.0739, 42.3903 ], [ -71.0737, 42.3900 ], [ -71.0736, 42.3898 ], [ -71.0734, 42.3895 ], [ -71.0732, 42.3892 ], [ -71.0730, 42.3889 ], [ -71.0729, 42.3886 ], [ -71.0729, 42.3886 ], [ -71.0728, 42.3884 ], [ -71.0727, 42.3883 ], [ -71.0726, 42.3882 ], [ -71.0727, 42.3881 ], [ -71.0727, 42.3881 ], [ -71.0727, 42.3881 ], [ -71.0725, 42.3880 ], [ -71.0725, 42.3880 ], [ -71.0724, 42.3878 ], [ -71.0724, 42.3878 ], [ -71.0724, 42.3878 ], [ -71.0724, 42.3878 ], [ -71.0723, 42.3877 ], [ -71.0723, 42.3878 ], [ -71.0723, 42.3878 ], [ -71.0723, 42.3878 ], [ -71.0720, 42.3877 ], [ -71.0720, 42.3877 ], [ -71.0720, 42.3876 ], [ -71.0720, 42.3876 ], [ -71.0719, 42.3875 ], [ -71.0718, 42.3875 ], [ -71.0717, 42.3874 ], [ -71.0715, 42.3873 ], [ -71.0714, 42.3873 ], [ -71.0713, 42.3872 ], [ -71.0711, 42.3871 ], [ -71.0709, 42.3870 ], [ -71.0707, 42.3869 ], [ -71.0706, 42.3868 ], [ -71.0704, 42.3867 ], [ -71.0702, 42.3866 ], [ -71.0700, 42.3865 ], [ -71.0698, 42.3864 ], [ -71.0698, 42.3864 ], [ -71.0698, 42.3864 ], [ -71.0703, 42.3860 ], [ -71.0702, 42.3860 ], [ -71.0702, 42.3860 ], [ -71.0701, 42.3859 ], [ -71.0700, 42.3858 ], [ -71.0700, 42.3858 ], [ -71.0699, 42.3858 ], [ -71.0699, 42.3857 ], [ -71.0698, 42.3857 ], [ -71.0697, 42.3857 ], [ -71.0697, 42.3856 ], [ -71.0696, 42.3856 ], [ -71.0696, 42.3856 ], [ -71.0695, 42.3856 ], [ -71.0695, 42.3856 ], [ -71.0694, 42.3856 ], [ -71.0693, 42.3855 ], [ -71.0693, 42.3855 ], [ -71.0693, 42.3855 ], [ -71.0692, 42.3855 ], [ -71.0691, 42.3855 ], [ -71.0690, 42.3855 ], [ -71.0689, 42.3854 ], [ -71.0689, 42.3854 ], [ -71.0688, 42.3854 ], [ -71.0688, 42.3854 ], [ -71.0687, 42.3854 ], [ -71.0686, 42.3854 ], [ -71.0685, 42.3853 ], [ -71.0684, 42.3853 ], [ -71.0683, 42.3853 ], [ -71.0683, 42.3853 ], [ -71.0683, 42.3853 ], [ -71.0682, 42.3853 ], [ -71.0682, 42.3853 ], [ -71.0682, 42.3853 ], [ -71.0682, 42.3853 ], [ -71.0682, 42.3853 ], [ -71.0682, 42.3853 ], [ -71.0682, 42.3853 ], [ -71.0682, 42.3853 ], [ -71.0682, 42.3853 ], [ -71.0682, 42.3853 ], [ -71.0681, 42.3854 ], [ -71.0681, 42.3854 ], [ -71.0681, 42.3854 ], [ -71.0681, 42.3854 ], [ -71.0680, 42.3855 ], [ -71.0680, 42.3855 ], [ -71.0680, 42.3855 ], [ -71.0680, 42.3855 ], [ -71.0680, 42.3855 ], [ -71.0680, 42.3855 ], [ -71.0680, 42.3855 ], [ -71.0680, 42.3855 ], [ -71.0680, 42.3855 ], [ -71.0680, 42.3855 ], [ -71.0680, 42.3855 ], [ -71.0680, 42.3855 ], [ -71.0680, 42.3855 ], [ -71.0680, 42.3855 ], [ -71.0680, 42.3855 ], [ -71.0680, 42.3855 ], [ -71.0680, 42.3855 ], [ -71.0680, 42.3855 ], [ -71.0680, 42.3855 ], [ -71.0680, 42.3855 ], [ -71.0680, 42.3855 ], [ -71.0680, 42.3855 ], [ -71.0680, 42.3855 ], [ -71.0680, 42.3855 ], [ -71.0680, 42.3855 ], [ -71.0680, 42.3855 ], [ -71.0680, 42.3855 ], [ -71.0680, 42.3855 ], [ -71.0680, 42.3855 ], [ -71.0680, 42.3855 ], [ -71.0680, 42.3855 ], [ -71.0680, 42.3855 ], [ -71.0680, 42.3855 ], [ -71.0680, 42.3855 ], [ -71.0680, 42.3855 ], [ -71.0680, 42.3855 ], [ -71.0680, 42.3855 ], [ -71.0680, 42.3855 ], [ -71.0679, 42.3855 ], [ -71.0679, 42.3855 ], [ -71.0679, 42.3855 ], [ -71.0679, 42.3855 ], [ -71.0679, 42.3855 ], [ -71.0679, 42.3855 ], [ -71.0679, 42.3855 ], [ -71.0679, 42.3855 ], [ -71.0679, 42.3855 ], [ -71.0679, 42.3855 ], [ -71.0679, 42.3855 ], [ -71.0679, 42.3855 ], [ -71.0679, 42.3855 ], [ -71.0679, 42.3855 ], [ -71.0679, 42.3855 ], [ -71.0679, 42.3855 ], [ -71.0679, 42.3855 ], [ -71.0679, 42.3856 ], [ -71.0679, 42.3856 ], [ -71.0679, 42.3856 ], [ -71.0678, 42.3856 ], [ -71.0678, 42.3856 ], [ -71.0678, 42.3856 ], [ -71.0678, 42.3856 ], [ -71.0678, 42.3856 ], [ -71.0678, 42.3856 ], [ -71.0678, 42.3856 ], [ -71.0676, 42.3856 ], [ -71.0676, 42.3856 ], [ -71.0675, 42.3856 ], [ -71.0674, 42.3856 ], [ -71.0673, 42.3856 ], [ -71.0672, 42.3856 ], [ -71.0671, 42.3855 ], [ -71.0671, 42.3855 ], [ -71.0671, 42.3855 ], [ -71.0670, 42.3855 ], [ -71.0670, 42.3855 ], [ -71.0669, 42.3855 ], [ -71.0668, 42.3855 ], [ -71.0667, 42.3855 ], [ -71.0666, 42.3855 ], [ -71.0665, 42.3855 ], [ -71.0665, 42.3855 ], [ -71.0664, 42.3855 ], [ -71.0664, 42.3855 ], [ -71.0664, 42.3855 ], [ -71.0664, 42.3854 ], [ -71.0663, 42.3854 ], [ -71.0663, 42.3854 ], [ -71.0663, 42.3854 ], [ -71.0663, 42.3854 ], [ -71.0663, 42.3854 ], [ -71.0663, 42.3854 ], [ -71.0663, 42.3854 ], [ -71.0663, 42.3854 ], [ -71.0662, 42.3854 ], [ -71.0662, 42.3854 ], [ -71.0661, 42.3854 ], [ -71.0661, 42.3854 ], [ -71.0661, 42.3854 ], [ -71.0661, 42.3854 ], [ -71.0661, 42.3854 ], [ -71.0660, 42.3854 ], [ -71.0660, 42.3854 ], [ -71.0660, 42.3854 ], [ -71.0660, 42.3854 ], [ -71.0660, 42.3854 ], [ -71.0660, 42.3854 ], [ -71.0660, 42.3854 ], [ -71.0660, 42.3854 ], [ -71.0660, 42.3854 ], [ -71.0660, 42.3854 ], [ -71.0660, 42.3854 ], [ -71.0660, 42.3854 ], [ -71.0660, 42.3854 ], [ -71.0660, 42.3854 ], [ -71.0660, 42.3854 ], [ -71.0660, 42.3854 ], [ -71.0660, 42.3854 ], [ -71.0660, 42.3853 ], [ -71.0660, 42.3853 ], [ -71.0660, 42.3853 ], [ -71.0660, 42.3853 ], [ -71.0660, 42.3853 ], [ -71.0660, 42.3853 ], [ -71.0660, 42.3853 ], [ -71.0660, 42.3853 ], [ -71.0660, 42.3853 ], [ -71.0660, 42.3853 ], [ -71.0660, 42.3853 ], [ -71.0660, 42.3853 ], [ -71.0660, 42.3852 ], [ -71.0659, 42.3852 ], [ -71.0659, 42.3852 ], [ -71.0658, 42.3852 ], [ -71.0657, 42.3851 ], [ -71.0656, 42.3851 ], [ -71.0656, 42.3851 ], [ -71.0655, 42.3851 ], [ -71.0655, 42.3851 ], [ -71.0654, 42.3850 ], [ -71.0654, 42.3850 ], [ -71.0653, 42.3850 ], [ -71.0653, 42.3850 ], [ -71.0652, 42.3849 ], [ -71.0651, 42.3849 ], [ -71.0650, 42.3848 ], [ -71.0650, 42.3848 ], [ -71.0649, 42.3848 ], [ -71.0649, 42.3848 ], [ -71.0649, 42.3848 ], [ -71.0649, 42.3848 ], [ -71.0649, 42.3848 ], [ -71.0649, 42.3848 ], [ -71.0649, 42.3848 ], [ -71.0649, 42.3848 ], [ -71.0649, 42.3848 ], [ -71.0649, 42.3848 ], [ -71.0648, 42.3849 ], [ -71.0648, 42.3849 ], [ -71.0647, 42.3850 ], [ -71.0647, 42.3850 ], [ -71.0647, 42.3851 ], [ -71.0646, 42.3851 ], [ -71.0646, 42.3851 ], [ -71.0646, 42.3851 ], [ -71.0646, 42.3852 ], [ -71.0646, 42.3852 ], [ -71.0646, 42.3852 ], [ -71.0646, 42.3852 ], [ -71.0645, 42.3852 ], [ -71.0645, 42.3852 ], [ -71.0645, 42.3852 ], [ -71.0645, 42.3852 ], [ -71.0645, 42.3852 ], [ -71.0645, 42.3852 ], [ -71.0645, 42.3852 ], [ -71.0643, 42.3852 ], [ -71.0643, 42.3852 ], [ -71.0642, 42.3852 ], [ -71.0641, 42.3851 ], [ -71.0640, 42.3851 ], [ -71.0640, 42.3851 ], [ -71.0640, 42.3851 ], [ -71.0639, 42.3851 ], [ -71.0639, 42.3851 ], [ -71.0638, 42.3851 ], [ -71.0637, 42.3851 ], [ -71.0637, 42.3851 ], [ -71.0637, 42.3852 ], [ -71.0649, 42.3854 ], [ -71.0648, 42.3855 ], [ -71.0635, 42.3853 ], [ -71.0636, 42.3851 ], [ -71.0635, 42.3851 ], [ -71.0634, 42.3851 ], [ -71.0634, 42.3851 ], [ -71.0634, 42.3851 ], [ -71.0634, 42.3851 ], [ -71.0634, 42.3851 ], [ -71.0633, 42.3851 ], [ -71.0633, 42.3851 ], [ -71.0633, 42.3851 ], [ -71.0633, 42.3851 ], [ -71.0633, 42.3850 ], [ -71.0633, 42.3850 ], [ -71.0633, 42.3850 ], [ -71.0633, 42.3850 ], [ -71.0633, 42.3850 ], [ -71.0633, 42.3850 ], [ -71.0633, 42.3850 ], [ -71.0633, 42.3850 ], [ -71.0633, 42.3850 ], [ -71.0633, 42.3850 ], [ -71.0633, 42.3850 ], [ -71.0633, 42.3850 ], [ -71.0633, 42.3850 ], [ -71.0633, 42.3849 ], [ -71.0634, 42.3849 ], [ -71.0634, 42.3848 ], [ -71.0636, 42.3846 ], [ -71.0637, 42.3845 ], [ -71.0637, 42.3844 ], [ -71.0638, 42.3843 ], [ -71.0639, 42.3841 ], [ -71.0639, 42.3841 ], [ -71.0639, 42.3841 ], [ -71.0640, 42.3841 ], [ -71.0640, 42.3840 ], [ -71.0640, 42.3840 ], [ -71.0641, 42.3839 ], [ -71.0641, 42.3839 ], [ -71.0641, 42.3839 ], [ -71.0641, 42.3838 ], [ -71.0642, 42.3838 ], [ -71.0642, 42.3838 ], [ -71.0642, 42.3838 ], [ -71.0642, 42.3838 ], [ -71.0642, 42.3838 ], [ -71.0642, 42.3838 ], [ -71.0642, 42.3837 ], [ -71.0642, 42.3837 ], [ -71.0642, 42.3837 ], [ -71.0642, 42.3837 ], [ -71.0642, 42.3837 ], [ -71.0642, 42.3837 ], [ -71.0642, 42.3837 ], [ -71.0642, 42.3837 ], [ -71.0642, 42.3837 ], [ -71.0642, 42.3837 ], [ -71.0642, 42.3837 ], [ -71.0642, 42.3837 ], [ -71.0641, 42.3837 ], [ -71.0641, 42.3836 ], [ -71.0640, 42.3836 ], [ -71.0640, 42.3836 ], [ -71.0639, 42.3836 ], [ -71.0639, 42.3836 ], [ -71.0639, 42.3836 ], [ -71.0637, 42.3835 ], [ -71.0637, 42.3835 ], [ -71.0636, 42.3835 ], [ -71.0636, 42.3835 ], [ -71.0635, 42.3835 ], [ -71.0635, 42.3835 ], [ -71.0635, 42.3835 ], [ -71.0635, 42.3835 ], [ -71.0634, 42.3835 ], [ -71.0634, 42.3835 ], [ -71.0627, 42.3843 ], [ -71.0627, 42.3843 ], [ -71.0627, 42.3843 ], [ -71.0626, 42.3844 ], [ -71.0626, 42.3845 ], [ -71.0625, 42.3846 ], [ -71.0624, 42.3847 ], [ -71.0624, 42.3847 ], [ -71.0624, 42.3848 ], [ -71.0623, 42.3848 ], [ -71.0623, 42.3848 ], [ -71.0623, 42.3849 ], [ -71.0622, 42.3850 ], [ -71.0622, 42.3850 ], [ -71.0622, 42.3850 ], [ -71.0621, 42.3850 ], [ -71.0620, 42.3852 ], [ -71.0604, 42.3850 ], [ -71.0604, 42.3848 ], [ -71.0612, 42.3849 ], [ -71.0612, 42.3849 ], [ -71.0622, 42.3834 ], [ -71.0621, 42.3834 ], [ -71.0620, 42.3834 ], [ -71.0616, 42.3839 ], [ -71.0613, 42.3841 ], [ -71.0610, 42.3840 ], [ -71.0615, 42.3833 ], [ -71.0614, 42.3833 ], [ -71.0610, 42.3832 ], [ -71.0607, 42.3837 ], [ -71.0605, 42.3839 ], [ -71.0604, 42.3841 ], [ -71.0602, 42.3843 ], [ -71.0601, 42.3845 ], [ -71.0600, 42.3845 ], [ -71.0599, 42.3846 ], [ -71.0599, 42.3847 ], [ -71.0596, 42.3846 ], [ -71.0606, 42.3832 ], [ -71.0605, 42.3832 ], [ -71.0604, 42.3832 ], [ -71.0603, 42.3832 ], [ -71.0603, 42.3832 ], [ -71.0603, 42.3832 ], [ -71.0601, 42.3832 ], [ -71.0600, 42.3832 ], [ -71.0588, 42.3849 ], [ -71.0549, 42.3845 ], [ -71.0547, 42.3844 ], [ -71.0541, 42.3844 ], [ -71.0537, 42.3843 ], [ -71.0534, 42.3843 ], [ -71.0533, 42.3843 ], [ -71.0528, 42.3842 ], [ -71.0523, 42.3842 ], [ -71.0517, 42.3841 ], [ -71.0512, 42.3841 ], [ -71.0509, 42.3841 ], [ -71.0509, 42.3839 ], [ -71.0508, 42.3839 ], [ -71.0508, 42.3839 ], [ -71.0506, 42.3839 ], [ -71.0504, 42.3839 ], [ -71.0502, 42.3838 ], [ -71.0503, 42.3838 ], [ -71.0503, 42.3837 ], [ -71.0503, 42.3837 ], [ -71.0503, 42.3837 ], [ -71.0503, 42.3837 ], [ -71.0503, 42.3836 ], [ -71.0503, 42.3836 ], [ -71.0503, 42.3836 ], [ -71.0502, 42.3836 ], [ -71.0502, 42.3836 ], [ -71.0502, 42.3836 ], [ -71.0502, 42.3836 ], [ -71.0502, 42.3836 ], [ -71.0502, 42.3836 ], [ -71.0502, 42.3836 ], [ -71.0502, 42.3835 ], [ -71.0502, 42.3835 ], [ -71.0502, 42.3835 ], [ -71.0501, 42.3835 ], [ -71.0501, 42.3835 ], [ -71.0501, 42.3835 ], [ -71.0501, 42.3835 ], [ -71.0500, 42.3835 ], [ -71.0500, 42.3835 ], [ -71.0499, 42.3835 ], [ -71.0499, 42.3835 ], [ -71.0499, 42.3835 ], [ -71.0498, 42.3835 ], [ -71.0495, 42.3838 ], [ -71.0495, 42.3838 ], [ -71.0492, 42.3837 ], [ -71.0488, 42.3836 ], [ -71.0487, 42.3836 ], [ -71.0486, 42.3835 ], [ -71.0485, 42.3835 ], [ -71.0484, 42.3834 ], [ -71.0483, 42.3834 ], [ -71.0482, 42.3833 ], [ -71.0481, 42.3832 ], [ -71.0480, 42.3832 ], [ -71.0479, 42.3831 ], [ -71.0479, 42.3831 ], [ -71.0479, 42.3831 ], [ -71.0479, 42.3831 ], [ -71.0479, 42.3831 ], [ -71.0478, 42.3830 ], [ -71.0478, 42.3829 ], [ -71.0477, 42.3829 ], [ -71.0477, 42.3829 ], [ -71.0477, 42.3828 ], [ -71.0476, 42.3828 ], [ -71.0476, 42.3828 ], [ -71.0476, 42.3827 ], [ -71.0476, 42.3827 ], [ -71.0476, 42.3827 ], [ -71.0475, 42.3826 ], [ -71.0475, 42.3826 ], [ -71.0475, 42.3825 ], [ -71.0475, 42.3825 ], [ -71.0474, 42.3824 ], [ -71.0474, 42.3824 ], [ -71.0474, 42.3824 ], [ -71.0474, 42.3824 ], [ -71.0474, 42.3824 ], [ -71.0474, 42.3824 ], [ -71.0474, 42.3824 ], [ -71.0474, 42.3823 ], [ -71.0474, 42.3823 ], [ -71.0474, 42.3823 ], [ -71.0474, 42.3821 ], [ -71.0475, 42.3820 ], [ -71.0475, 42.3819 ], [ -71.0475, 42.3818 ], [ -71.0475, 42.3817 ], [ -71.0476, 42.3817 ], [ -71.0476, 42.3817 ], [ -71.0478, 42.3818 ], [ -71.0480, 42.3818 ], [ -71.0482, 42.3819 ], [ -71.0484, 42.3819 ], [ -71.0486, 42.3820 ], [ -71.0488, 42.3820 ], [ -71.0490, 42.3820 ], [ -71.0491, 42.3820 ], [ -71.0492, 42.3821 ], [ -71.0492, 42.3821 ], [ -71.0493, 42.3820 ], [ -71.0493, 42.3820 ], [ -71.0494, 42.3820 ], [ -71.0494, 42.3819 ], [ -71.0495, 42.3818 ], [ -71.0496, 42.3817 ], [ -71.0497, 42.3817 ], [ -71.0497, 42.3816 ], [ -71.0497, 42.3815 ], [ -71.0497, 42.3815 ], [ -71.0495, 42.3815 ], [ -71.0493, 42.3814 ], [ -71.0491, 42.3814 ], [ -71.0489, 42.3814 ], [ -71.0485, 42.3813 ], [ -71.0483, 42.3813 ], [ -71.0480, 42.3812 ], [ -71.0476, 42.3812 ], [ -71.0474, 42.3811 ], [ -71.0473, 42.3811 ], [ -71.0473, 42.3811 ], [ -71.0473, 42.3811 ], [ -71.0473, 42.3811 ], [ -71.0473, 42.3811 ], [ -71.0473, 42.3811 ], [ -71.0473, 42.3811 ], [ -71.0473, 42.3811 ], [ -71.0473, 42.3811 ], [ -71.0473, 42.3811 ], [ -71.0473, 42.3811 ], [ -71.0473, 42.3811 ], [ -71.0473, 42.3811 ], [ -71.0473, 42.3811 ], [ -71.0473, 42.3811 ], [ -71.0473, 42.3811 ], [ -71.0473, 42.3811 ], [ -71.0473, 42.3809 ], [ -71.0474, 42.3807 ], [ -71.0474, 42.3805 ], [ -71.0475, 42.3803 ], [ -71.0476, 42.3800 ], [ -71.0476, 42.3799 ], [ -71.0476, 42.3799 ], [ -71.0476, 42.3799 ], [ -71.0476, 42.3799 ], [ -71.0476, 42.3799 ], [ -71.0476, 42.3799 ], [ -71.0476, 42.3799 ], [ -71.0476, 42.3799 ], [ -71.0476, 42.3799 ], [ -71.0476, 42.3799 ], [ -71.0476, 42.3799 ], [ -71.0476, 42.3799 ], [ -71.0476, 42.3799 ], [ -71.0476, 42.3799 ], [ -71.0476, 42.3799 ], [ -71.0476, 42.3799 ], [ -71.0476, 42.3799 ], [ -71.0476, 42.3799 ], [ -71.0476, 42.3799 ], [ -71.0476, 42.3799 ], [ -71.0476, 42.3799 ], [ -71.0476, 42.3799 ], [ -71.0477, 42.3799 ], [ -71.0477, 42.3799 ], [ -71.0477, 42.3799 ], [ -71.0477, 42.3799 ], [ -71.0479, 42.3799 ], [ -71.0482, 42.3799 ], [ -71.0485, 42.3800 ], [ -71.0488, 42.3800 ], [ -71.0491, 42.3801 ], [ -71.0494, 42.3801 ], [ -71.0496, 42.3802 ], [ -71.0498, 42.3802 ], [ -71.0501, 42.3802 ], [ -71.0503, 42.3803 ], [ -71.0505, 42.3803 ], [ -71.0507, 42.3803 ], [ -71.0509, 42.3804 ], [ -71.0509, 42.3804 ], [ -71.0510, 42.3805 ], [ -71.0510, 42.3805 ], [ -71.0510, 42.3805 ], [ -71.0513, 42.3806 ], [ -71.0514, 42.3806 ], [ -71.0521, 42.3797 ], [ -71.0520, 42.3797 ], [ -71.0520, 42.3797 ], [ -71.0518, 42.3797 ], [ -71.0518, 42.3797 ], [ -71.0516, 42.3797 ], [ -71.0515, 42.3796 ], [ -71.0509, 42.3794 ], [ -71.0508, 42.3794 ], [ -71.0509, 42.3794 ], [ -71.0508, 42.3795 ], [ -71.0507, 42.3795 ], [ -71.0507, 42.3795 ], [ -71.0506, 42.3795 ], [ -71.0506, 42.3795 ], [ -71.0504, 42.3795 ], [ -71.0503, 42.3795 ], [ -71.0503, 42.3795 ], [ -71.0503, 42.3795 ], [ -71.0502, 42.3795 ], [ -71.0501, 42.3795 ], [ -71.0501, 42.3795 ], [ -71.0501, 42.3795 ], [ -71.0499, 42.3795 ], [ -71.0496, 42.3794 ], [ -71.0493, 42.3794 ], [ -71.0492, 42.3794 ], [ -71.0490, 42.3794 ], [ -71.0490, 42.3794 ], [ -71.0489, 42.3794 ], [ -71.0488, 42.3794 ], [ -71.0488, 42.3794 ], [ -71.0488, 42.3794 ], [ -71.0488, 42.3794 ], [ -71.0488, 42.3793 ], [ -71.0487, 42.3793 ], [ -71.0487, 42.3793 ], [ -71.0487, 42.3793 ], [ -71.0485, 42.3793 ], [ -71.0484, 42.3792 ], [ -71.0484, 42.3792 ], [ -71.0482, 42.3792 ], [ -71.0481, 42.3792 ], [ -71.0481, 42.3792 ], [ -71.0481, 42.3792 ], [ -71.0481, 42.3792 ], [ -71.0481, 42.3792 ], [ -71.0481, 42.3792 ], [ -71.0481, 42.3792 ], [ -71.0481, 42.3792 ], [ -71.0481, 42.3792 ], [ -71.0481, 42.3792 ], [ -71.0481, 42.3792 ], [ -71.0481, 42.3792 ], [ -71.0481, 42.3792 ], [ -71.0481, 42.3792 ], [ -71.0481, 42.3792 ], [ -71.0481, 42.3792 ], [ -71.0481, 42.3792 ], [ -71.0481, 42.3792 ], [ -71.0481, 42.3792 ], [ -71.0481, 42.3792 ], [ -71.0481, 42.3790 ], [ -71.0480, 42.3788 ], [ -71.0479, 42.3785 ], [ -71.0479, 42.3784 ], [ -71.0479, 42.3784 ], [ -71.0478, 42.3782 ], [ -71.0478, 42.3782 ], [ -71.0477, 42.3779 ], [ -71.0477, 42.3777 ], [ -71.0476, 42.3775 ], [ -71.0476, 42.3773 ], [ -71.0475, 42.3770 ], [ -71.0474, 42.3769 ], [ -71.0474, 42.3769 ], [ -71.0474, 42.3769 ], [ -71.0474, 42.3769 ], [ -71.0474, 42.3769 ], [ -71.0474, 42.3769 ], [ -71.0474, 42.3769 ], [ -71.0474, 42.3769 ], [ -71.0475, 42.3769 ], [ -71.0475, 42.3769 ], [ -71.0475, 42.3769 ], [ -71.0475, 42.3769 ], [ -71.0475, 42.3769 ], [ -71.0475, 42.3769 ], [ -71.0475, 42.3769 ], [ -71.0475, 42.3769 ], [ -71.0476, 42.3769 ], [ -71.0476, 42.3769 ], [ -71.0476, 42.3768 ], [ -71.0476, 42.3768 ], [ -71.0476, 42.3768 ], [ -71.0476, 42.3768 ], [ -71.0476, 42.3768 ], [ -71.0476, 42.3768 ], [ -71.0476, 42.3768 ], [ -71.0476, 42.3768 ], [ -71.0476, 42.3769 ], [ -71.0476, 42.3769 ], [ -71.0476, 42.3769 ], [ -71.0476, 42.3769 ], [ -71.0476, 42.3769 ], [ -71.0476, 42.3769 ], [ -71.0476, 42.3769 ], [ -71.0476, 42.3769 ], [ -71.0477, 42.3769 ], [ -71.0477, 42.3770 ], [ -71.0477, 42.3769 ], [ -71.0479, 42.3770 ], [ -71.0481, 42.3772 ], [ -71.0482, 42.3774 ], [ -71.0484, 42.3775 ], [ -71.0486, 42.3777 ], [ -71.0488, 42.3778 ], [ -71.0490, 42.3780 ], [ -71.0491, 42.3780 ], [ -71.0492, 42.3779 ], [ -71.0492, 42.3778 ], [ -71.0481, 42.3768 ], [ -71.0481, 42.3768 ], [ -71.0481, 42.3768 ], [ -71.0480, 42.3768 ], [ -71.0481, 42.3767 ], [ -71.0481, 42.3768 ], [ -71.0482, 42.3768 ], [ -71.0489, 42.3775 ], [ -71.0490, 42.3773 ], [ -71.0491, 42.3773 ], [ -71.0491, 42.3773 ], [ -71.0491, 42.3773 ], [ -71.0491, 42.3772 ], [ -71.0491, 42.3772 ], [ -71.0491, 42.3772 ], [ -71.0491, 42.3772 ], [ -71.0491, 42.3772 ], [ -71.0491, 42.3772 ], [ -71.0491, 42.3772 ], [ -71.0491, 42.3772 ], [ -71.0491, 42.3772 ], [ -71.0491, 42.3772 ], [ -71.0491, 42.3772 ], [ -71.0491, 42.3772 ], [ -71.0491, 42.3772 ], [ -71.0491, 42.3772 ], [ -71.0491, 42.3772 ], [ -71.0491, 42.3772 ], [ -71.0491, 42.3772 ], [ -71.0491, 42.3772 ], [ -71.0491, 42.3772 ], [ -71.0491, 42.3772 ], [ -71.0491, 42.3772 ], [ -71.0491, 42.3772 ], [ -71.0492, 42.3773 ], [ -71.0492, 42.3773 ], [ -71.0492, 42.3773 ], [ -71.0492, 42.3773 ], [ -71.0492, 42.3773 ], [ -71.0492, 42.3772 ], [ -71.0493, 42.3771 ], [ -71.0493, 42.3771 ], [ -71.0493, 42.3771 ], [ -71.0493, 42.3771 ], [ -71.0493, 42.3771 ], [ -71.0493, 42.3771 ], [ -71.0493, 42.3771 ], [ -71.0492, 42.3771 ], [ -71.0492, 42.3771 ], [ -71.0492, 42.3771 ], [ -71.0492, 42.3771 ], [ -71.0492, 42.3771 ], [ -71.0492, 42.3771 ], [ -71.0492, 42.3771 ], [ -71.0492, 42.3771 ], [ -71.0492, 42.3771 ], [ -71.0492, 42.3771 ], [ -71.0492, 42.3771 ], [ -71.0492, 42.3771 ], [ -71.0493, 42.3771 ], [ -71.0493, 42.3771 ], [ -71.0493, 42.3771 ], [ -71.0493, 42.3770 ], [ -71.0493, 42.3770 ], [ -71.0493, 42.3770 ], [ -71.0494, 42.3769 ], [ -71.0494, 42.3769 ], [ -71.0494, 42.3769 ], [ -71.0494, 42.3769 ], [ -71.0494, 42.3768 ], [ -71.0495, 42.3768 ], [ -71.0495, 42.3768 ], [ -71.0496, 42.3767 ], [ -71.0496, 42.3767 ], [ -71.0496, 42.3766 ], [ -71.0497, 42.3765 ], [ -71.0497, 42.3764 ], [ -71.0498, 42.3762 ], [ -71.0498, 42.3762 ], [ -71.0498, 42.3762 ], [ -71.0498, 42.3762 ], [ -71.0499, 42.3760 ], [ -71.0497, 42.3759 ], [ -71.0495, 42.3757 ], [ -71.0491, 42.3755 ], [ -71.0489, 42.3753 ], [ -71.0487, 42.3752 ], [ -71.0489, 42.3750 ], [ -71.0491, 42.3752 ], [ -71.0494, 42.3753 ], [ -71.0496, 42.3755 ], [ -71.0496, 42.3755 ], [ -71.0497, 42.3754 ], [ -71.0498, 42.3755 ], [ -71.0501, 42.3753 ], [ -71.0502, 42.3754 ], [ -71.0502, 42.3754 ], [ -71.0503, 42.3754 ], [ -71.0503, 42.3754 ], [ -71.0504, 42.3754 ], [ -71.0505, 42.3753 ], [ -71.0506, 42.3752 ], [ -71.0507, 42.3751 ], [ -71.0506, 42.3751 ], [ -71.0503, 42.3748 ], [ -71.0500, 42.3745 ], [ -71.0499, 42.3744 ], [ -71.0497, 42.3742 ], [ -71.0493, 42.3740 ], [ -71.0493, 42.3739 ], [ -71.0493, 42.3739 ], [ -71.0492, 42.3739 ], [ -71.0492, 42.3738 ], [ -71.0490, 42.3737 ], [ -71.0486, 42.3734 ], [ -71.0486, 42.3734 ], [ -71.0487, 42.3732 ], [ -71.0487, 42.3732 ], [ -71.0487, 42.3732 ], [ -71.0488, 42.3731 ], [ -71.0488, 42.3731 ], [ -71.0489, 42.3730 ], [ -71.0489, 42.3730 ], [ -71.0489, 42.3730 ], [ -71.0489, 42.3730 ], [ -71.0489, 42.3730 ], [ -71.0492, 42.3733 ], [ -71.0493, 42.3733 ], [ -71.0494, 42.3735 ], [ -71.0496, 42.3736 ], [ -71.0505, 42.3744 ], [ -71.0507, 42.3739 ], [ -71.0492, 42.3725 ], [ -71.0493, 42.3724 ], [ -71.0493, 42.3723 ], [ -71.0501, 42.3731 ], [ -71.0507, 42.3736 ], [ -71.0508, 42.3735 ], [ -71.0511, 42.3732 ], [ -71.0503, 42.3725 ], [ -71.0496, 42.3719 ], [ -71.0496, 42.3718 ], [ -71.0499, 42.3716 ], [ -71.0499, 42.3716 ], [ -71.0507, 42.3723 ], [ -71.0514, 42.3729 ], [ -71.0515, 42.3730 ], [ -71.0517, 42.3729 ], [ -71.0517, 42.3729 ], [ -71.0520, 42.3727 ], [ -71.0520, 42.3726 ], [ -71.0515, 42.3722 ], [ -71.0511, 42.3718 ], [ -71.0506, 42.3714 ], [ -71.0505, 42.3713 ], [ -71.0505, 42.3713 ], [ -71.0505, 42.3713 ], [ -71.0506, 42.3712 ], [ -71.0507, 42.3712 ], [ -71.0508, 42.3713 ], [ -71.0509, 42.3714 ], [ -71.0514, 42.3718 ], [ -71.0517, 42.3721 ], [ -71.0520, 42.3724 ], [ -71.0524, 42.3727 ], [ -71.0524, 42.3727 ], [ -71.0526, 42.3729 ], [ -71.0527, 42.3728 ], [ -71.0527, 42.3728 ], [ -71.0528, 42.3729 ], [ -71.0527, 42.3729 ], [ -71.0531, 42.3733 ], [ -71.0535, 42.3736 ], [ -71.0535, 42.3736 ], [ -71.0538, 42.3739 ], [ -71.0542, 42.3742 ], [ -71.0542, 42.3742 ], [ -71.0544, 42.3743 ], [ -71.0544, 42.3743 ], [ -71.0544, 42.3743 ], [ -71.0544, 42.3743 ], [ -71.0544, 42.3743 ], [ -71.0544, 42.3743 ], [ -71.0544, 42.3743 ], [ -71.0545, 42.3743 ], [ -71.0545, 42.3743 ], [ -71.0545, 42.3743 ], [ -71.0545, 42.3744 ], [ -71.0545, 42.3744 ], [ -71.0545, 42.3744 ], [ -71.0545, 42.3744 ], [ -71.0545, 42.3744 ], [ -71.0545, 42.3744 ], [ -71.0546, 42.3744 ], [ -71.0546, 42.3744 ], [ -71.0546, 42.3744 ], [ -71.0546, 42.3743 ], [ -71.0546, 42.3743 ], [ -71.0546, 42.3743 ], [ -71.0546, 42.3743 ], [ -71.0546, 42.3743 ], [ -71.0546, 42.3743 ], [ -71.0546, 42.3743 ], [ -71.0547, 42.3743 ], [ -71.0547, 42.3743 ], [ -71.0547, 42.3743 ], [ -71.0547, 42.3743 ], [ -71.0547, 42.3743 ], [ -71.0547, 42.3743 ], [ -71.0547, 42.3743 ], [ -71.0547, 42.3743 ], [ -71.0547, 42.3742 ], [ -71.0547, 42.3742 ], [ -71.0547, 42.3742 ], [ -71.0547, 42.3742 ], [ -71.0547, 42.3742 ], [ -71.0547, 42.3742 ], [ -71.0547, 42.3742 ], [ -71.0547, 42.3742 ], [ -71.0547, 42.3742 ], [ -71.0546, 42.3742 ], [ -71.0546, 42.3741 ], [ -71.0545, 42.3740 ], [ -71.0545, 42.3740 ], [ -71.0544, 42.3739 ], [ -71.0542, 42.3737 ], [ -71.0540, 42.3735 ], [ -71.0538, 42.3734 ], [ -71.0536, 42.3732 ], [ -71.0535, 42.3731 ], [ -71.0534, 42.3730 ], [ -71.0532, 42.3728 ], [ -71.0530, 42.3727 ], [ -71.0530, 42.3726 ], [ -71.0529, 42.3725 ], [ -71.0529, 42.3725 ], [ -71.0529, 42.3725 ], [ -71.0528, 42.3724 ], [ -71.0529, 42.3723 ], [ -71.0529, 42.3723 ], [ -71.0529, 42.3723 ], [ -71.0530, 42.3723 ], [ -71.0535, 42.3728 ], [ -71.0537, 42.3729 ], [ -71.0539, 42.3728 ], [ -71.0542, 42.3731 ], [ -71.0544, 42.3730 ], [ -71.0543, 42.3729 ], [ -71.0538, 42.3724 ], [ -71.0538, 42.3724 ], [ -71.0537, 42.3723 ], [ -71.0536, 42.3722 ], [ -71.0536, 42.3722 ], [ -71.0535, 42.3722 ], [ -71.0533, 42.3720 ], [ -71.0534, 42.3720 ], [ -71.0534, 42.3719 ], [ -71.0534, 42.3719 ], [ -71.0534, 42.3719 ], [ -71.0534, 42.3719 ], [ -71.0534, 42.3719 ], [ -71.0534, 42.3719 ], [ -71.0534, 42.3719 ], [ -71.0534, 42.3719 ], [ -71.0535, 42.3719 ], [ -71.0536, 42.3720 ], [ -71.0538, 42.3722 ], [ -71.0540, 42.3723 ], [ -71.0540, 42.3723 ], [ -71.0544, 42.3727 ], [ -71.0545, 42.3727 ], [ -71.0546, 42.3728 ], [ -71.0546, 42.3728 ], [ -71.0552, 42.3733 ], [ -71.0556, 42.3736 ], [ -71.0557, 42.3737 ], [ -71.0559, 42.3735 ], [ -71.0558, 42.3734 ], [ -71.0549, 42.3726 ], [ -71.0550, 42.3726 ], [ -71.0541, 42.3718 ], [ -71.0541, 42.3718 ], [ -71.0542, 42.3717 ], [ -71.0547, 42.3717 ], [ -71.0547, 42.3717 ], [ -71.0554, 42.3720 ], [ -71.0560, 42.3723 ], [ -71.0563, 42.3724 ], [ -71.0568, 42.3727 ], [ -71.0568, 42.3727 ], [ -71.0570, 42.3726 ], [ -71.0571, 42.3725 ], [ -71.0571, 42.3725 ], [ -71.0573, 42.3725 ], [ -71.0573, 42.3724 ], [ -71.0574, 42.3723 ], [ -71.0575, 42.3724 ], [ -71.0577, 42.3723 ], [ -71.0577, 42.3721 ], [ -71.0574, 42.3720 ], [ -71.0571, 42.3719 ], [ -71.0567, 42.3717 ], [ -71.0564, 42.3716 ], [ -71.0560, 42.3714 ], [ -71.0560, 42.3714 ], [ -71.0560, 42.3714 ], [ -71.0560, 42.3714 ], [ -71.0560, 42.3714 ], [ -71.0560, 42.3714 ], [ -71.0560, 42.3714 ], [ -71.0560, 42.3714 ], [ -71.0560, 42.3714 ], [ -71.0560, 42.3714 ], [ -71.0560, 42.3714 ], [ -71.0560, 42.3714 ], [ -71.0560, 42.3713 ], [ -71.0560, 42.3713 ], [ -71.0560, 42.3713 ], [ -71.0561, 42.3713 ], [ -71.0561, 42.3713 ], [ -71.0563, 42.3712 ], [ -71.0568, 42.3710 ], [ -71.0570, 42.3709 ], [ -71.0574, 42.3707 ], [ -71.0576, 42.3706 ], [ -71.0576, 42.3706 ], [ -71.0576, 42.3706 ], [ -71.0576, 42.3706 ], [ -71.0576, 42.3706 ], [ -71.0576, 42.3706 ], [ -71.0576, 42.3706 ], [ -71.0576, 42.3706 ], [ -71.0576, 42.3706 ], [ -71.0576, 42.3706 ], [ -71.0576, 42.3706 ], [ -71.0577, 42.3706 ], [ -71.0579, 42.3708 ], [ -71.0582, 42.3709 ], [ -71.0584, 42.3710 ], [ -71.0586, 42.3711 ], [ -71.0588, 42.3712 ], [ -71.0591, 42.3713 ], [ -71.0591, 42.3713 ], [ -71.0592, 42.3713 ], [ -71.0593, 42.3713 ], [ -71.0594, 42.3713 ], [ -71.0594, 42.3713 ], [ -71.0595, 42.3713 ], [ -71.0596, 42.3713 ], [ -71.0596, 42.3713 ], [ -71.0597, 42.3712 ], [ -71.0599, 42.3712 ], [ -71.0599, 42.3712 ], [ -71.0599, 42.3711 ], [ -71.0599, 42.3711 ], [ -71.0599, 42.3711 ], [ -71.0599, 42.3711 ], [ -71.0599, 42.3711 ], [ -71.0599, 42.3711 ], [ -71.0599, 42.3711 ], [ -71.0599, 42.3711 ], [ -71.0599, 42.3711 ], [ -71.0599, 42.3711 ], [ -71.0599, 42.3711 ], [ -71.0599, 42.3711 ], [ -71.0599, 42.3711 ], [ -71.0599, 42.3711 ], [ -71.0599, 42.3710 ], [ -71.0599, 42.3710 ], [ -71.0599, 42.3710 ], [ -71.0599, 42.3710 ], [ -71.0598, 42.3709 ], [ -71.0598, 42.3709 ], [ -71.0597, 42.3708 ], [ -71.0597, 42.3707 ], [ -71.0597, 42.3707 ], [ -71.0596, 42.3707 ], [ -71.0595, 42.3706 ], [ -71.0598, 42.3705 ], [ -71.0599, 42.3706 ], [ -71.0601, 42.3705 ], [ -71.0601, 42.3705 ], [ -71.0601, 42.3705 ], [ -71.0601, 42.3706 ], [ -71.0601, 42.3706 ], [ -71.0601, 42.3705 ], [ -71.0602, 42.3705 ], [ -71.0600, 42.3704 ], [ -71.0601, 42.3703 ], [ -71.0603, 42.3702 ], [ -71.0604, 42.3702 ], [ -71.0605, 42.3701 ], [ -71.0605, 42.3701 ], [ -71.0605, 42.3701 ], [ -71.0605, 42.3701 ], [ -71.0605, 42.3701 ], [ -71.0608, 42.3699 ], [ -71.0608, 42.3699 ], [ -71.0609, 42.3698 ], [ -71.0609, 42.3698 ], [ -71.0610, 42.3698 ], [ -71.0610, 42.3698 ], [ -71.0610, 42.3697 ], [ -71.0610, 42.3697 ], [ -71.0611, 42.3697 ], [ -71.0611, 42.3697 ], [ -71.0611, 42.3697 ], [ -71.0611, 42.3696 ], [ -71.0611, 42.3696 ], [ -71.0612, 42.3696 ], [ -71.0612, 42.3696 ], [ -71.0612, 42.3695 ], [ -71.0612, 42.3695 ], [ -71.0612, 42.3695 ], [ -71.0612, 42.3695 ], [ -71.0612, 42.3694 ], [ -71.0612, 42.3694 ], [ -71.0612, 42.3694 ], [ -71.0612, 42.3694 ], [ -71.0610, 42.3688 ], [ -71.0610, 42.3689 ], [ -71.0610, 42.3688 ], [ -71.0606, 42.3689 ], [ -71.0606, 42.3688 ], [ -71.0606, 42.3688 ], [ -71.0606, 42.3688 ], [ -71.0606, 42.3688 ], [ -71.0606, 42.3688 ], [ -71.0606, 42.3688 ], [ -71.0606, 42.3688 ], [ -71.0606, 42.3688 ], [ -71.0607, 42.3688 ], [ -71.0607, 42.3688 ], [ -71.0607, 42.3688 ], [ -71.0607, 42.3688 ], [ -71.0607, 42.3688 ], [ -71.0607, 42.3688 ], [ -71.0607, 42.3688 ], [ -71.0607, 42.3687 ], [ -71.0607, 42.3687 ], [ -71.0607, 42.3687 ], [ -71.0607, 42.3687 ], [ -71.0607, 42.3687 ], [ -71.0607, 42.3687 ], [ -71.0607, 42.3687 ], [ -71.0607, 42.3687 ], [ -71.0607, 42.3687 ], [ -71.0607, 42.3687 ], [ -71.0607, 42.3687 ], [ -71.0607, 42.3687 ], [ -71.0607, 42.3687 ], [ -71.0607, 42.3687 ], [ -71.0607, 42.3687 ], [ -71.0607, 42.3687 ], [ -71.0607, 42.3687 ], [ -71.0607, 42.3687 ], [ -71.0607, 42.3687 ], [ -71.0607, 42.3687 ], [ -71.0607, 42.3687 ], [ -71.0618, 42.3685 ], [ -71.0619, 42.3685 ], [ -71.0619, 42.3686 ], [ -71.0618, 42.3686 ], [ -71.0619, 42.3686 ], [ -71.0619, 42.3686 ], [ -71.0619, 42.3686 ], [ -71.0620, 42.3686 ], [ -71.0620, 42.3686 ], [ -71.0616, 42.3687 ], [ -71.0617, 42.3692 ], [ -71.0619, 42.3692 ], [ -71.0619, 42.3692 ], [ -71.0619, 42.3692 ], [ -71.0619, 42.3692 ], [ -71.0617, 42.3692 ], [ -71.0618, 42.3693 ], [ -71.0618, 42.3693 ], [ -71.0618, 42.3693 ], [ -71.0618, 42.3693 ], [ -71.0619, 42.3693 ], [ -71.0624, 42.3694 ], [ -71.0628, 42.3693 ], [ -71.0630, 42.3693 ], [ -71.0630, 42.3693 ], [ -71.0632, 42.3693 ], [ -71.0633, 42.3693 ], [ -71.0635, 42.3693 ], [ -71.0636, 42.3693 ], [ -71.0637, 42.3693 ], [ -71.0638, 42.3693 ], [ -71.0640, 42.3693 ], [ -71.0640, 42.3693 ], [ -71.0640, 42.3693 ], [ -71.0640, 42.3693 ], [ -71.0640, 42.3693 ], [ -71.0640, 42.3693 ], [ -71.0640, 42.3693 ], [ -71.0641, 42.3693 ], [ -71.0641, 42.3693 ], [ -71.0641, 42.3693 ], [ -71.0641, 42.3693 ], [ -71.0641, 42.3693 ], [ -71.0642, 42.3694 ], [ -71.0642, 42.3694 ], [ -71.0642, 42.3694 ], [ -71.0642, 42.3694 ], [ -71.0642, 42.3694 ], [ -71.0643, 42.3694 ], [ -71.0643, 42.3694 ], [ -71.0643, 42.3694 ], [ -71.0643, 42.3694 ], [ -71.0643, 42.3694 ], [ -71.0644, 42.3694 ], [ -71.0644, 42.3694 ], [ -71.0644, 42.3694 ], [ -71.0644, 42.3694 ], [ -71.0644, 42.3694 ], [ -71.0645, 42.3694 ], [ -71.0645, 42.3694 ], [ -71.0645, 42.3694 ], [ -71.0645, 42.3694 ], [ -71.0645, 42.3694 ], [ -71.0646, 42.3694 ], [ -71.0645, 42.3694 ], [ -71.0671, 42.3718 ], [ -71.0724, 42.3726 ], [ -71.0727, 42.3733 ], [ -71.0729, 42.3738 ], [ -71.0756, 42.3801 ], [ -71.0807, 42.3810 ], [ -71.0809, 42.3823 ], [ -71.0808, 42.3824 ], [ -71.0804, 42.3825 ], [ -71.0797, 42.3829 ], [ -71.0754, 42.3888 ], [ -71.0742, 42.3905 ], [ -71.0742, 42.3905 ], [ -71.0742, 42.3905 ], [ -71.0742, 42.3905 ], [ -71.0742, 42.3905 ], [ -71.0742, 42.3905 ], [ -71.0742, 42.3905 ], [ -71.0742, 42.3905 ], [ -71.0742, 42.3905 ], [ -71.0742, 42.3905 ], [ -71.0742, 42.3905 ], [ -71.0742, 42.3905 ], [ -71.0741, 42.3905 ], [ -71.0741, 42.3905 ], [ -71.0741, 42.3905 ], [ -71.0741, 42.3905 ], [ -71.0741, 42.3905 ], [ -71.0741, 42.3905 ], [ -71.0741, 42.3905 ], [ -71.0741, 42.3905 ] ] ], [ [ [ -71.0674, 42.3934 ], [ -71.0690, 42.3918 ], [ -71.0691, 42.3917 ], [ -71.0711, 42.3898 ], [ -71.0711, 42.3898 ], [ -71.0711, 42.3898 ], [ -71.0711, 42.3898 ], [ -71.0711, 42.3898 ], [ -71.0709, 42.3900 ], [ -71.0708, 42.3902 ], [ -71.0706, 42.3905 ], [ -71.0706, 42.3905 ], [ -71.0707, 42.3905 ], [ -71.0707, 42.3905 ], [ -71.0707, 42.3906 ], [ -71.0707, 42.3906 ], [ -71.0707, 42.3906 ], [ -71.0707, 42.3906 ], [ -71.0707, 42.3906 ], [ -71.0707, 42.3907 ], [ -71.0707, 42.3907 ], [ -71.0707, 42.3907 ], [ -71.0707, 42.3907 ], [ -71.0707, 42.3907 ], [ -71.0707, 42.3907 ], [ -71.0708, 42.3907 ], [ -71.0708, 42.3908 ], [ -71.0708, 42.3908 ], [ -71.0708, 42.3908 ], [ -71.0709, 42.3909 ], [ -71.0709, 42.3909 ], [ -71.0709, 42.3909 ], [ -71.0710, 42.3909 ], [ -71.0710, 42.3910 ], [ -71.0710, 42.3910 ], [ -71.0710, 42.3910 ], [ -71.0710, 42.3910 ], [ -71.0710, 42.3910 ], [ -71.0710, 42.3910 ], [ -71.0710, 42.3910 ], [ -71.0710, 42.3910 ], [ -71.0710, 42.3910 ], [ -71.0710, 42.3910 ], [ -71.0711, 42.3910 ], [ -71.0711, 42.3910 ], [ -71.0711, 42.3911 ], [ -71.0711, 42.3911 ], [ -71.0711, 42.3912 ], [ -71.0711, 42.3912 ], [ -71.0712, 42.3912 ], [ -71.0712, 42.3912 ], [ -71.0712, 42.3912 ], [ -71.0712, 42.3913 ], [ -71.0712, 42.3913 ], [ -71.0712, 42.3913 ], [ -71.0712, 42.3913 ], [ -71.0712, 42.3913 ], [ -71.0712, 42.3913 ], [ -71.0713, 42.3913 ], [ -71.0713, 42.3914 ], [ -71.0713, 42.3914 ], [ -71.0713, 42.3914 ], [ -71.0713, 42.3914 ], [ -71.0713, 42.3914 ], [ -71.0713, 42.3914 ], [ -71.0713, 42.3914 ], [ -71.0713, 42.3915 ], [ -71.0713, 42.3915 ], [ -71.0713, 42.3915 ], [ -71.0713, 42.3915 ], [ -71.0713, 42.3915 ], [ -71.0713, 42.3915 ], [ -71.0713, 42.3915 ], [ -71.0713, 42.3915 ], [ -71.0713, 42.3915 ], [ -71.0713, 42.3916 ], [ -71.0713, 42.3916 ], [ -71.0713, 42.3916 ], [ -71.0713, 42.3916 ], [ -71.0713, 42.3916 ], [ -71.0713, 42.3916 ], [ -71.0713, 42.3916 ], [ -71.0713, 42.3916 ], [ -71.0713, 42.3916 ], [ -71.0713, 42.3916 ], [ -71.0713, 42.3916 ], [ -71.0713, 42.3916 ], [ -71.0713, 42.3916 ], [ -71.0713, 42.3916 ], [ -71.0713, 42.3916 ], [ -71.0713, 42.3916 ], [ -71.0713, 42.3916 ], [ -71.0713, 42.3916 ], [ -71.0713, 42.3916 ], [ -71.0713, 42.3917 ], [ -71.0713, 42.3917 ], [ -71.0713, 42.3917 ], [ -71.0713, 42.3917 ], [ -71.0713, 42.3917 ], [ -71.0713, 42.3917 ], [ -71.0713, 42.3917 ], [ -71.0713, 42.3917 ], [ -71.0713, 42.3917 ], [ -71.0713, 42.3917 ], [ -71.0713, 42.3917 ], [ -71.0713, 42.3917 ], [ -71.0713, 42.3917 ], [ -71.0713, 42.3917 ], [ -71.0713, 42.3918 ], [ -71.0713, 42.3918 ], [ -71.0713, 42.3918 ], [ -71.0712, 42.3918 ], [ -71.0712, 42.3918 ], [ -71.0712, 42.3919 ], [ -71.0712, 42.3919 ], [ -71.0711, 42.3919 ], [ -71.0711, 42.3920 ], [ -71.0711, 42.3920 ], [ -71.0710, 42.3920 ], [ -71.0710, 42.3920 ], [ -71.0710, 42.3920 ], [ -71.0710, 42.3920 ], [ -71.0709, 42.3920 ], [ -71.0709, 42.3921 ], [ -71.0709, 42.3921 ], [ -71.0709, 42.3921 ], [ -71.0709, 42.3921 ], [ -71.0708, 42.3921 ], [ -71.0708, 42.3921 ], [ -71.0708, 42.3922 ], [ -71.0708, 42.3922 ], [ -71.0708, 42.3922 ], [ -71.0707, 42.3923 ], [ -71.0707, 42.3923 ], [ -71.0707, 42.3923 ], [ -71.0707, 42.3923 ], [ -71.0706, 42.3924 ], [ -71.0706, 42.3924 ], [ -71.0706, 42.3924 ], [ -71.0706, 42.3924 ], [ -71.0705, 42.3924 ], [ -71.0705, 42.3924 ], [ -71.0705, 42.3924 ], [ -71.0705, 42.3924 ], [ -71.0705, 42.3924 ], [ -71.0705, 42.3924 ], [ -71.0705, 42.3924 ], [ -71.0704, 42.3924 ], [ -71.0703, 42.3924 ], [ -71.0703, 42.3924 ], [ -71.0703, 42.3924 ], [ -71.0703, 42.3924 ], [ -71.0703, 42.3924 ], [ -71.0703, 42.3924 ], [ -71.0703, 42.3924 ], [ -71.0702, 42.3924 ], [ -71.0702, 42.3924 ], [ -71.0702, 42.3924 ], [ -71.0701, 42.3924 ], [ -71.0701, 42.3924 ], [ -71.0701, 42.3924 ], [ -71.0701, 42.3924 ], [ -71.0701, 42.3924 ], [ -71.0701, 42.3924 ], [ -71.0700, 42.3924 ], [ -71.0700, 42.3924 ], [ -71.0700, 42.3924 ], [ -71.0700, 42.3924 ], [ -71.0700, 42.3924 ], [ -71.0700, 42.3924 ], [ -71.0700, 42.3924 ], [ -71.0699, 42.3924 ], [ -71.0699, 42.3924 ], [ -71.0698, 42.3924 ], [ -71.0698, 42.3925 ], [ -71.0698, 42.3925 ], [ -71.0698, 42.3925 ], [ -71.0697, 42.3925 ], [ -71.0697, 42.3925 ], [ -71.0697, 42.3926 ], [ -71.0697, 42.3926 ], [ -71.0697, 42.3926 ], [ -71.0696, 42.3926 ], [ -71.0696, 42.3927 ], [ -71.0696, 42.3927 ], [ -71.0696, 42.3927 ], [ -71.0695, 42.3928 ], [ -71.0695, 42.3928 ], [ -71.0695, 42.3928 ], [ -71.0694, 42.3929 ], [ -71.0694, 42.3929 ], [ -71.0694, 42.3929 ], [ -71.0694, 42.3929 ], [ -71.0694, 42.3930 ], [ -71.0693, 42.3930 ], [ -71.0693, 42.3930 ], [ -71.0693, 42.3930 ], [ -71.0693, 42.3930 ], [ -71.0693, 42.3931 ], [ -71.0692, 42.3931 ], [ -71.0692, 42.3931 ], [ -71.0692, 42.3931 ], [ -71.0692, 42.3932 ], [ -71.0692, 42.3932 ], [ -71.0692, 42.3932 ], [ -71.0692, 42.3932 ], [ -71.0692, 42.3932 ], [ -71.0692, 42.3932 ], [ -71.0692, 42.3933 ], [ -71.0692, 42.3933 ], [ -71.0692, 42.3933 ], [ -71.0692, 42.3933 ], [ -71.0692, 42.3933 ], [ -71.0692, 42.3933 ], [ -71.0692, 42.3933 ], [ -71.0692, 42.3934 ], [ -71.0692, 42.3934 ], [ -71.0691, 42.3934 ], [ -71.0691, 42.3934 ], [ -71.0691, 42.3934 ], [ -71.0691, 42.3934 ], [ -71.0691, 42.3935 ], [ -71.0691, 42.3935 ], [ -71.0690, 42.3935 ], [ -71.0690, 42.3935 ], [ -71.0691, 42.3935 ], [ -71.0691, 42.3935 ], [ -71.0690, 42.3936 ], [ -71.0690, 42.3936 ], [ -71.0689, 42.3937 ], [ -71.0689, 42.3937 ], [ -71.0689, 42.3937 ], [ -71.0689, 42.3937 ], [ -71.0689, 42.3938 ], [ -71.0689, 42.3938 ], [ -71.0689, 42.3938 ], [ -71.0690, 42.3938 ], [ -71.0690, 42.3938 ], [ -71.0688, 42.3940 ], [ -71.0673, 42.3953 ], [ -71.0668, 42.3949 ], [ -71.0670, 42.3945 ], [ -71.0669, 42.3942 ], [ -71.0674, 42.3934 ] ] ] ] } }, + { "type": "Feature", "properties": { "Name": "West End", "density": 0.0000 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -71.0688, 42.3671 ], [ -71.0685, 42.3670 ], [ -71.0684, 42.3670 ], [ -71.0684, 42.3670 ], [ -71.0683, 42.3670 ], [ -71.0683, 42.3670 ], [ -71.0682, 42.3669 ], [ -71.0682, 42.3669 ], [ -71.0681, 42.3669 ], [ -71.0680, 42.3668 ], [ -71.0680, 42.3668 ], [ -71.0680, 42.3668 ], [ -71.0680, 42.3668 ], [ -71.0678, 42.3667 ], [ -71.0678, 42.3667 ], [ -71.0678, 42.3667 ], [ -71.0677, 42.3667 ], [ -71.0676, 42.3666 ], [ -71.0674, 42.3665 ], [ -71.0674, 42.3665 ], [ -71.0674, 42.3665 ], [ -71.0674, 42.3665 ], [ -71.0673, 42.3665 ], [ -71.0673, 42.3664 ], [ -71.0671, 42.3664 ], [ -71.0670, 42.3663 ], [ -71.0668, 42.3663 ], [ -71.0667, 42.3662 ], [ -71.0666, 42.3662 ], [ -71.0665, 42.3662 ], [ -71.0663, 42.3661 ], [ -71.0663, 42.3661 ], [ -71.0662, 42.3661 ], [ -71.0661, 42.3661 ], [ -71.0661, 42.3661 ], [ -71.0661, 42.3661 ], [ -71.0660, 42.3661 ], [ -71.0656, 42.3660 ], [ -71.0655, 42.3660 ], [ -71.0655, 42.3660 ], [ -71.0655, 42.3660 ], [ -71.0655, 42.3660 ], [ -71.0654, 42.3660 ], [ -71.0654, 42.3659 ], [ -71.0653, 42.3659 ], [ -71.0652, 42.3659 ], [ -71.0652, 42.3659 ], [ -71.0651, 42.3659 ], [ -71.0651, 42.3658 ], [ -71.0650, 42.3658 ], [ -71.0649, 42.3657 ], [ -71.0649, 42.3657 ], [ -71.0648, 42.3657 ], [ -71.0647, 42.3656 ], [ -71.0643, 42.3652 ], [ -71.0641, 42.3650 ], [ -71.0641, 42.3649 ], [ -71.0633, 42.3641 ], [ -71.0633, 42.3641 ], [ -71.0633, 42.3641 ], [ -71.0633, 42.3641 ], [ -71.0633, 42.3641 ], [ -71.0634, 42.3640 ], [ -71.0634, 42.3638 ], [ -71.0635, 42.3636 ], [ -71.0636, 42.3634 ], [ -71.0636, 42.3634 ], [ -71.0636, 42.3633 ], [ -71.0637, 42.3630 ], [ -71.0638, 42.3628 ], [ -71.0638, 42.3626 ], [ -71.0638, 42.3626 ], [ -71.0638, 42.3624 ], [ -71.0638, 42.3621 ], [ -71.0637, 42.3615 ], [ -71.0637, 42.3612 ], [ -71.0638, 42.3612 ], [ -71.0638, 42.3612 ], [ -71.0643, 42.3612 ], [ -71.0647, 42.3612 ], [ -71.0647, 42.3612 ], [ -71.0668, 42.3611 ], [ -71.0669, 42.3611 ], [ -71.0674, 42.3611 ], [ -71.0674, 42.3611 ], [ -71.0678, 42.3611 ], [ -71.0687, 42.3611 ], [ -71.0691, 42.3611 ], [ -71.0704, 42.3611 ], [ -71.0707, 42.3611 ], [ -71.0708, 42.3611 ], [ -71.0714, 42.3611 ], [ -71.0730, 42.3613 ], [ -71.0730, 42.3613 ], [ -71.0730, 42.3614 ], [ -71.0730, 42.3615 ], [ -71.0730, 42.3615 ], [ -71.0730, 42.3615 ], [ -71.0730, 42.3616 ], [ -71.0730, 42.3617 ], [ -71.0730, 42.3617 ], [ -71.0730, 42.3617 ], [ -71.0730, 42.3617 ], [ -71.0730, 42.3617 ], [ -71.0730, 42.3618 ], [ -71.0730, 42.3618 ], [ -71.0730, 42.3618 ], [ -71.0730, 42.3618 ], [ -71.0730, 42.3619 ], [ -71.0730, 42.3619 ], [ -71.0730, 42.3619 ], [ -71.0730, 42.3619 ], [ -71.0730, 42.3620 ], [ -71.0731, 42.3621 ], [ -71.0731, 42.3621 ], [ -71.0731, 42.3621 ], [ -71.0731, 42.3621 ], [ -71.0731, 42.3621 ], [ -71.0731, 42.3621 ], [ -71.0731, 42.3622 ], [ -71.0731, 42.3622 ], [ -71.0731, 42.3622 ], [ -71.0731, 42.3623 ], [ -71.0731, 42.3623 ], [ -71.0731, 42.3623 ], [ -71.0731, 42.3625 ], [ -71.0731, 42.3625 ], [ -71.0730, 42.3626 ], [ -71.0730, 42.3626 ], [ -71.0730, 42.3627 ], [ -71.0730, 42.3627 ], [ -71.0730, 42.3628 ], [ -71.0730, 42.3629 ], [ -71.0730, 42.3629 ], [ -71.0730, 42.3629 ], [ -71.0730, 42.3629 ], [ -71.0730, 42.3630 ], [ -71.0730, 42.3630 ], [ -71.0730, 42.3630 ], [ -71.0730, 42.3630 ], [ -71.0730, 42.3631 ], [ -71.0730, 42.3632 ], [ -71.0729, 42.3632 ], [ -71.0729, 42.3632 ], [ -71.0729, 42.3632 ], [ -71.0729, 42.3633 ], [ -71.0729, 42.3633 ], [ -71.0729, 42.3633 ], [ -71.0729, 42.3634 ], [ -71.0729, 42.3634 ], [ -71.0729, 42.3634 ], [ -71.0729, 42.3635 ], [ -71.0729, 42.3635 ], [ -71.0729, 42.3636 ], [ -71.0729, 42.3636 ], [ -71.0729, 42.3636 ], [ -71.0729, 42.3637 ], [ -71.0729, 42.3637 ], [ -71.0729, 42.3637 ], [ -71.0729, 42.3637 ], [ -71.0729, 42.3638 ], [ -71.0729, 42.3638 ], [ -71.0729, 42.3638 ], [ -71.0728, 42.3638 ], [ -71.0728, 42.3639 ], [ -71.0728, 42.3639 ], [ -71.0728, 42.3639 ], [ -71.0728, 42.3640 ], [ -71.0728, 42.3640 ], [ -71.0728, 42.3640 ], [ -71.0728, 42.3640 ], [ -71.0727, 42.3640 ], [ -71.0727, 42.3641 ], [ -71.0727, 42.3641 ], [ -71.0727, 42.3641 ], [ -71.0727, 42.3641 ], [ -71.0727, 42.3642 ], [ -71.0727, 42.3642 ], [ -71.0726, 42.3642 ], [ -71.0726, 42.3642 ], [ -71.0726, 42.3642 ], [ -71.0726, 42.3642 ], [ -71.0726, 42.3643 ], [ -71.0725, 42.3643 ], [ -71.0725, 42.3643 ], [ -71.0725, 42.3643 ], [ -71.0725, 42.3644 ], [ -71.0725, 42.3644 ], [ -71.0725, 42.3644 ], [ -71.0725, 42.3644 ], [ -71.0724, 42.3644 ], [ -71.0724, 42.3644 ], [ -71.0724, 42.3644 ], [ -71.0724, 42.3644 ], [ -71.0724, 42.3644 ], [ -71.0724, 42.3645 ], [ -71.0723, 42.3645 ], [ -71.0723, 42.3645 ], [ -71.0723, 42.3645 ], [ -71.0723, 42.3645 ], [ -71.0723, 42.3645 ], [ -71.0723, 42.3645 ], [ -71.0722, 42.3645 ], [ -71.0722, 42.3646 ], [ -71.0722, 42.3646 ], [ -71.0722, 42.3646 ], [ -71.0722, 42.3646 ], [ -71.0722, 42.3646 ], [ -71.0721, 42.3646 ], [ -71.0721, 42.3646 ], [ -71.0721, 42.3646 ], [ -71.0721, 42.3646 ], [ -71.0721, 42.3646 ], [ -71.0721, 42.3646 ], [ -71.0720, 42.3646 ], [ -71.0720, 42.3646 ], [ -71.0720, 42.3647 ], [ -71.0720, 42.3647 ], [ -71.0720, 42.3647 ], [ -71.0720, 42.3647 ], [ -71.0719, 42.3647 ], [ -71.0719, 42.3647 ], [ -71.0719, 42.3647 ], [ -71.0719, 42.3647 ], [ -71.0719, 42.3647 ], [ -71.0719, 42.3647 ], [ -71.0718, 42.3647 ], [ -71.0718, 42.3647 ], [ -71.0718, 42.3647 ], [ -71.0718, 42.3648 ], [ -71.0717, 42.3648 ], [ -71.0717, 42.3648 ], [ -71.0717, 42.3648 ], [ -71.0717, 42.3648 ], [ -71.0717, 42.3648 ], [ -71.0717, 42.3648 ], [ -71.0716, 42.3648 ], [ -71.0716, 42.3648 ], [ -71.0716, 42.3648 ], [ -71.0716, 42.3648 ], [ -71.0716, 42.3648 ], [ -71.0715, 42.3648 ], [ -71.0715, 42.3648 ], [ -71.0715, 42.3648 ], [ -71.0715, 42.3648 ], [ -71.0715, 42.3648 ], [ -71.0715, 42.3648 ], [ -71.0714, 42.3648 ], [ -71.0714, 42.3649 ], [ -71.0714, 42.3649 ], [ -71.0714, 42.3649 ], [ -71.0714, 42.3649 ], [ -71.0714, 42.3649 ], [ -71.0713, 42.3649 ], [ -71.0713, 42.3649 ], [ -71.0713, 42.3649 ], [ -71.0713, 42.3649 ], [ -71.0712, 42.3649 ], [ -71.0712, 42.3649 ], [ -71.0712, 42.3649 ], [ -71.0712, 42.3649 ], [ -71.0712, 42.3649 ], [ -71.0712, 42.3649 ], [ -71.0711, 42.3649 ], [ -71.0711, 42.3649 ], [ -71.0711, 42.3649 ], [ -71.0710, 42.3649 ], [ -71.0710, 42.3649 ], [ -71.0710, 42.3650 ], [ -71.0710, 42.3650 ], [ -71.0710, 42.3650 ], [ -71.0709, 42.3650 ], [ -71.0709, 42.3650 ], [ -71.0709, 42.3650 ], [ -71.0709, 42.3650 ], [ -71.0709, 42.3650 ], [ -71.0709, 42.3650 ], [ -71.0709, 42.3650 ], [ -71.0709, 42.3650 ], [ -71.0709, 42.3650 ], [ -71.0709, 42.3650 ], [ -71.0709, 42.3650 ], [ -71.0709, 42.3650 ], [ -71.0709, 42.3650 ], [ -71.0709, 42.3650 ], [ -71.0709, 42.3650 ], [ -71.0709, 42.3650 ], [ -71.0709, 42.3650 ], [ -71.0709, 42.3650 ], [ -71.0708, 42.3649 ], [ -71.0706, 42.3649 ], [ -71.0704, 42.3649 ], [ -71.0704, 42.3648 ], [ -71.0703, 42.3649 ], [ -71.0702, 42.3651 ], [ -71.0702, 42.3653 ], [ -71.0701, 42.3654 ], [ -71.0700, 42.3655 ], [ -71.0700, 42.3655 ], [ -71.0700, 42.3655 ], [ -71.0701, 42.3656 ], [ -71.0701, 42.3656 ], [ -71.0702, 42.3656 ], [ -71.0702, 42.3657 ], [ -71.0702, 42.3657 ], [ -71.0702, 42.3657 ], [ -71.0703, 42.3657 ], [ -71.0703, 42.3657 ], [ -71.0703, 42.3657 ], [ -71.0703, 42.3657 ], [ -71.0703, 42.3657 ], [ -71.0702, 42.3658 ], [ -71.0701, 42.3659 ], [ -71.0700, 42.3660 ], [ -71.0699, 42.3660 ], [ -71.0699, 42.3660 ], [ -71.0691, 42.3670 ], [ -71.0689, 42.3672 ], [ -71.0688, 42.3671 ] ] ], [ [ [ -71.0691, 42.3673 ], [ -71.0693, 42.3671 ], [ -71.0701, 42.3662 ], [ -71.0701, 42.3662 ], [ -71.0704, 42.3663 ], [ -71.0707, 42.3665 ], [ -71.0708, 42.3665 ], [ -71.0708, 42.3665 ], [ -71.0708, 42.3665 ], [ -71.0708, 42.3665 ], [ -71.0708, 42.3665 ], [ -71.0708, 42.3665 ], [ -71.0708, 42.3665 ], [ -71.0708, 42.3665 ], [ -71.0708, 42.3665 ], [ -71.0708, 42.3665 ], [ -71.0708, 42.3665 ], [ -71.0706, 42.3667 ], [ -71.0706, 42.3667 ], [ -71.0705, 42.3668 ], [ -71.0705, 42.3668 ], [ -71.0705, 42.3668 ], [ -71.0705, 42.3668 ], [ -71.0705, 42.3668 ], [ -71.0705, 42.3668 ], [ -71.0705, 42.3668 ], [ -71.0705, 42.3668 ], [ -71.0705, 42.3668 ], [ -71.0705, 42.3668 ], [ -71.0705, 42.3668 ], [ -71.0706, 42.3668 ], [ -71.0706, 42.3668 ], [ -71.0706, 42.3668 ], [ -71.0706, 42.3668 ], [ -71.0706, 42.3669 ], [ -71.0706, 42.3669 ], [ -71.0709, 42.3670 ], [ -71.0709, 42.3670 ], [ -71.0711, 42.3672 ], [ -71.0713, 42.3672 ], [ -71.0713, 42.3672 ], [ -71.0713, 42.3672 ], [ -71.0713, 42.3672 ], [ -71.0713, 42.3672 ], [ -71.0705, 42.3680 ], [ -71.0691, 42.3673 ] ] ] ] } }, + { "type": "Feature", "properties": { "Name": "Beacon Hill", "density": 57.5600 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -71.0714, 42.3611 ], [ -71.0708, 42.3611 ], [ -71.0707, 42.3611 ], [ -71.0704, 42.3611 ], [ -71.0691, 42.3611 ], [ -71.0687, 42.3611 ], [ -71.0678, 42.3611 ], [ -71.0674, 42.3611 ], [ -71.0674, 42.3611 ], [ -71.0669, 42.3611 ], [ -71.0668, 42.3611 ], [ -71.0647, 42.3612 ], [ -71.0647, 42.3612 ], [ -71.0643, 42.3612 ], [ -71.0638, 42.3612 ], [ -71.0638, 42.3612 ], [ -71.0637, 42.3612 ], [ -71.0634, 42.3612 ], [ -71.0634, 42.3612 ], [ -71.0628, 42.3612 ], [ -71.0628, 42.3612 ], [ -71.0628, 42.3611 ], [ -71.0628, 42.3611 ], [ -71.0628, 42.3611 ], [ -71.0628, 42.3611 ], [ -71.0628, 42.3611 ], [ -71.0628, 42.3609 ], [ -71.0628, 42.3609 ], [ -71.0628, 42.3609 ], [ -71.0628, 42.3606 ], [ -71.0628, 42.3605 ], [ -71.0628, 42.3604 ], [ -71.0628, 42.3601 ], [ -71.0628, 42.3601 ], [ -71.0628, 42.3601 ], [ -71.0628, 42.3599 ], [ -71.0628, 42.3599 ], [ -71.0628, 42.3599 ], [ -71.0628, 42.3599 ], [ -71.0628, 42.3598 ], [ -71.0628, 42.3598 ], [ -71.0628, 42.3597 ], [ -71.0628, 42.3596 ], [ -71.0628, 42.3596 ], [ -71.0628, 42.3596 ], [ -71.0628, 42.3595 ], [ -71.0628, 42.3595 ], [ -71.0628, 42.3594 ], [ -71.0628, 42.3590 ], [ -71.0628, 42.3588 ], [ -71.0628, 42.3586 ], [ -71.0628, 42.3585 ], [ -71.0627, 42.3583 ], [ -71.0627, 42.3580 ], [ -71.0626, 42.3580 ], [ -71.0627, 42.3579 ], [ -71.0632, 42.3577 ], [ -71.0631, 42.3577 ], [ -71.0631, 42.3577 ], [ -71.0631, 42.3576 ], [ -71.0630, 42.3574 ], [ -71.0629, 42.3574 ], [ -71.0629, 42.3574 ], [ -71.0627, 42.3572 ], [ -71.0627, 42.3572 ], [ -71.0626, 42.3570 ], [ -71.0623, 42.3568 ], [ -71.0622, 42.3567 ], [ -71.0621, 42.3566 ], [ -71.0620, 42.3565 ], [ -71.0620, 42.3565 ], [ -71.0620, 42.3565 ], [ -71.0620, 42.3565 ], [ -71.0620, 42.3565 ], [ -71.0622, 42.3562 ], [ -71.0625, 42.3559 ], [ -71.0627, 42.3557 ], [ -71.0628, 42.3557 ], [ -71.0628, 42.3557 ], [ -71.0628, 42.3556 ], [ -71.0630, 42.3554 ], [ -71.0632, 42.3552 ], [ -71.0633, 42.3552 ], [ -71.0633, 42.3551 ], [ -71.0633, 42.3551 ], [ -71.0633, 42.3551 ], [ -71.0633, 42.3551 ], [ -71.0634, 42.3549 ], [ -71.0635, 42.3547 ], [ -71.0635, 42.3547 ], [ -71.0635, 42.3547 ], [ -71.0637, 42.3544 ], [ -71.0638, 42.3541 ], [ -71.0638, 42.3541 ], [ -71.0639, 42.3539 ], [ -71.0641, 42.3535 ], [ -71.0641, 42.3535 ], [ -71.0641, 42.3535 ], [ -71.0642, 42.3533 ], [ -71.0644, 42.3528 ], [ -71.0644, 42.3527 ], [ -71.0644, 42.3527 ], [ -71.0645, 42.3523 ], [ -71.0645, 42.3523 ], [ -71.0645, 42.3523 ], [ -71.0645, 42.3523 ], [ -71.0646, 42.3523 ], [ -71.0651, 42.3524 ], [ -71.0652, 42.3524 ], [ -71.0657, 42.3524 ], [ -71.0659, 42.3524 ], [ -71.0665, 42.3525 ], [ -71.0666, 42.3525 ], [ -71.0667, 42.3525 ], [ -71.0667, 42.3525 ], [ -71.0668, 42.3525 ], [ -71.0670, 42.3525 ], [ -71.0670, 42.3525 ], [ -71.0670, 42.3525 ], [ -71.0671, 42.3525 ], [ -71.0673, 42.3525 ], [ -71.0674, 42.3524 ], [ -71.0674, 42.3524 ], [ -71.0674, 42.3524 ], [ -71.0674, 42.3524 ], [ -71.0684, 42.3524 ], [ -71.0687, 42.3523 ], [ -71.0692, 42.3522 ], [ -71.0694, 42.3521 ], [ -71.0702, 42.3520 ], [ -71.0702, 42.3520 ], [ -71.0706, 42.3518 ], [ -71.0725, 42.3554 ], [ -71.0730, 42.3552 ], [ -71.0732, 42.3558 ], [ -71.0750, 42.3553 ], [ -71.0753, 42.3560 ], [ -71.0756, 42.3568 ], [ -71.0756, 42.3568 ], [ -71.0756, 42.3568 ], [ -71.0756, 42.3568 ], [ -71.0756, 42.3568 ], [ -71.0755, 42.3568 ], [ -71.0755, 42.3568 ], [ -71.0755, 42.3568 ], [ -71.0755, 42.3568 ], [ -71.0755, 42.3568 ], [ -71.0755, 42.3568 ], [ -71.0755, 42.3568 ], [ -71.0755, 42.3569 ], [ -71.0755, 42.3569 ], [ -71.0755, 42.3569 ], [ -71.0754, 42.3569 ], [ -71.0754, 42.3569 ], [ -71.0754, 42.3569 ], [ -71.0754, 42.3570 ], [ -71.0754, 42.3570 ], [ -71.0754, 42.3570 ], [ -71.0753, 42.3570 ], [ -71.0753, 42.3570 ], [ -71.0753, 42.3570 ], [ -71.0753, 42.3570 ], [ -71.0753, 42.3570 ], [ -71.0753, 42.3571 ], [ -71.0752, 42.3571 ], [ -71.0752, 42.3571 ], [ -71.0752, 42.3571 ], [ -71.0752, 42.3571 ], [ -71.0751, 42.3571 ], [ -71.0751, 42.3571 ], [ -71.0751, 42.3571 ], [ -71.0751, 42.3571 ], [ -71.0751, 42.3571 ], [ -71.0751, 42.3571 ], [ -71.0751, 42.3571 ], [ -71.0750, 42.3571 ], [ -71.0750, 42.3571 ], [ -71.0750, 42.3572 ], [ -71.0750, 42.3572 ], [ -71.0750, 42.3572 ], [ -71.0750, 42.3572 ], [ -71.0749, 42.3572 ], [ -71.0748, 42.3572 ], [ -71.0748, 42.3572 ], [ -71.0748, 42.3572 ], [ -71.0748, 42.3572 ], [ -71.0748, 42.3572 ], [ -71.0747, 42.3572 ], [ -71.0746, 42.3572 ], [ -71.0746, 42.3572 ], [ -71.0746, 42.3572 ], [ -71.0746, 42.3572 ], [ -71.0746, 42.3572 ], [ -71.0746, 42.3572 ], [ -71.0746, 42.3572 ], [ -71.0745, 42.3572 ], [ -71.0745, 42.3572 ], [ -71.0745, 42.3572 ], [ -71.0745, 42.3572 ], [ -71.0745, 42.3572 ], [ -71.0745, 42.3572 ], [ -71.0745, 42.3572 ], [ -71.0745, 42.3572 ], [ -71.0745, 42.3571 ], [ -71.0745, 42.3571 ], [ -71.0745, 42.3571 ], [ -71.0745, 42.3571 ], [ -71.0743, 42.3571 ], [ -71.0743, 42.3571 ], [ -71.0743, 42.3571 ], [ -71.0743, 42.3572 ], [ -71.0743, 42.3572 ], [ -71.0743, 42.3572 ], [ -71.0743, 42.3572 ], [ -71.0743, 42.3572 ], [ -71.0743, 42.3572 ], [ -71.0743, 42.3572 ], [ -71.0743, 42.3572 ], [ -71.0743, 42.3572 ], [ -71.0743, 42.3572 ], [ -71.0743, 42.3572 ], [ -71.0743, 42.3572 ], [ -71.0743, 42.3572 ], [ -71.0743, 42.3572 ], [ -71.0743, 42.3572 ], [ -71.0743, 42.3572 ], [ -71.0743, 42.3572 ], [ -71.0742, 42.3572 ], [ -71.0742, 42.3573 ], [ -71.0742, 42.3573 ], [ -71.0742, 42.3573 ], [ -71.0742, 42.3573 ], [ -71.0742, 42.3573 ], [ -71.0741, 42.3573 ], [ -71.0741, 42.3573 ], [ -71.0741, 42.3573 ], [ -71.0741, 42.3573 ], [ -71.0741, 42.3573 ], [ -71.0741, 42.3573 ], [ -71.0741, 42.3573 ], [ -71.0741, 42.3573 ], [ -71.0741, 42.3573 ], [ -71.0741, 42.3573 ], [ -71.0741, 42.3573 ], [ -71.0741, 42.3573 ], [ -71.0741, 42.3573 ], [ -71.0741, 42.3573 ], [ -71.0741, 42.3573 ], [ -71.0741, 42.3573 ], [ -71.0741, 42.3573 ], [ -71.0741, 42.3573 ], [ -71.0741, 42.3573 ], [ -71.0741, 42.3573 ], [ -71.0741, 42.3574 ], [ -71.0741, 42.3574 ], [ -71.0741, 42.3574 ], [ -71.0741, 42.3574 ], [ -71.0741, 42.3574 ], [ -71.0741, 42.3574 ], [ -71.0741, 42.3574 ], [ -71.0741, 42.3574 ], [ -71.0741, 42.3574 ], [ -71.0741, 42.3575 ], [ -71.0741, 42.3575 ], [ -71.0741, 42.3575 ], [ -71.0741, 42.3575 ], [ -71.0741, 42.3575 ], [ -71.0740, 42.3576 ], [ -71.0739, 42.3576 ], [ -71.0739, 42.3576 ], [ -71.0739, 42.3576 ], [ -71.0739, 42.3576 ], [ -71.0739, 42.3576 ], [ -71.0738, 42.3576 ], [ -71.0738, 42.3576 ], [ -71.0738, 42.3576 ], [ -71.0737, 42.3576 ], [ -71.0737, 42.3576 ], [ -71.0737, 42.3576 ], [ -71.0737, 42.3576 ], [ -71.0737, 42.3576 ], [ -71.0737, 42.3576 ], [ -71.0737, 42.3577 ], [ -71.0737, 42.3577 ], [ -71.0736, 42.3577 ], [ -71.0736, 42.3577 ], [ -71.0736, 42.3577 ], [ -71.0736, 42.3577 ], [ -71.0736, 42.3577 ], [ -71.0736, 42.3577 ], [ -71.0736, 42.3577 ], [ -71.0736, 42.3577 ], [ -71.0736, 42.3577 ], [ -71.0736, 42.3577 ], [ -71.0736, 42.3577 ], [ -71.0736, 42.3577 ], [ -71.0736, 42.3577 ], [ -71.0736, 42.3577 ], [ -71.0736, 42.3577 ], [ -71.0737, 42.3577 ], [ -71.0736, 42.3580 ], [ -71.0735, 42.3580 ], [ -71.0735, 42.3579 ], [ -71.0734, 42.3579 ], [ -71.0734, 42.3579 ], [ -71.0734, 42.3579 ], [ -71.0734, 42.3580 ], [ -71.0733, 42.3582 ], [ -71.0733, 42.3582 ], [ -71.0733, 42.3582 ], [ -71.0732, 42.3585 ], [ -71.0732, 42.3585 ], [ -71.0731, 42.3588 ], [ -71.0731, 42.3588 ], [ -71.0732, 42.3588 ], [ -71.0732, 42.3587 ], [ -71.0733, 42.3587 ], [ -71.0732, 42.3589 ], [ -71.0731, 42.3589 ], [ -71.0732, 42.3588 ], [ -71.0731, 42.3588 ], [ -71.0731, 42.3588 ], [ -71.0731, 42.3588 ], [ -71.0731, 42.3588 ], [ -71.0731, 42.3588 ], [ -71.0731, 42.3589 ], [ -71.0731, 42.3589 ], [ -71.0731, 42.3589 ], [ -71.0731, 42.3589 ], [ -71.0731, 42.3589 ], [ -71.0731, 42.3590 ], [ -71.0731, 42.3590 ], [ -71.0731, 42.3590 ], [ -71.0731, 42.3590 ], [ -71.0731, 42.3590 ], [ -71.0731, 42.3590 ], [ -71.0731, 42.3591 ], [ -71.0731, 42.3591 ], [ -71.0731, 42.3591 ], [ -71.0731, 42.3591 ], [ -71.0731, 42.3591 ], [ -71.0732, 42.3592 ], [ -71.0732, 42.3592 ], [ -71.0732, 42.3592 ], [ -71.0732, 42.3592 ], [ -71.0732, 42.3592 ], [ -71.0732, 42.3592 ], [ -71.0733, 42.3592 ], [ -71.0733, 42.3592 ], [ -71.0733, 42.3592 ], [ -71.0733, 42.3592 ], [ -71.0734, 42.3592 ], [ -71.0734, 42.3592 ], [ -71.0735, 42.3592 ], [ -71.0733, 42.3595 ], [ -71.0732, 42.3597 ], [ -71.0732, 42.3599 ], [ -71.0733, 42.3599 ], [ -71.0733, 42.3597 ], [ -71.0735, 42.3594 ], [ -71.0735, 42.3594 ], [ -71.0734, 42.3597 ], [ -71.0732, 42.3602 ], [ -71.0732, 42.3605 ], [ -71.0732, 42.3605 ], [ -71.0732, 42.3602 ], [ -71.0732, 42.3600 ], [ -71.0731, 42.3600 ], [ -71.0731, 42.3601 ], [ -71.0730, 42.3601 ], [ -71.0731, 42.3602 ], [ -71.0731, 42.3602 ], [ -71.0731, 42.3603 ], [ -71.0731, 42.3603 ], [ -71.0731, 42.3603 ], [ -71.0731, 42.3604 ], [ -71.0731, 42.3604 ], [ -71.0731, 42.3604 ], [ -71.0731, 42.3604 ], [ -71.0731, 42.3604 ], [ -71.0731, 42.3604 ], [ -71.0731, 42.3604 ], [ -71.0731, 42.3605 ], [ -71.0731, 42.3605 ], [ -71.0731, 42.3605 ], [ -71.0731, 42.3606 ], [ -71.0731, 42.3606 ], [ -71.0731, 42.3606 ], [ -71.0731, 42.3606 ], [ -71.0730, 42.3607 ], [ -71.0730, 42.3607 ], [ -71.0730, 42.3607 ], [ -71.0730, 42.3608 ], [ -71.0730, 42.3609 ], [ -71.0730, 42.3609 ], [ -71.0730, 42.3609 ], [ -71.0730, 42.3609 ], [ -71.0730, 42.3610 ], [ -71.0730, 42.3610 ], [ -71.0730, 42.3610 ], [ -71.0730, 42.3610 ], [ -71.0730, 42.3611 ], [ -71.0730, 42.3611 ], [ -71.0730, 42.3611 ], [ -71.0731, 42.3611 ], [ -71.0731, 42.3611 ], [ -71.0731, 42.3611 ], [ -71.0731, 42.3611 ], [ -71.0731, 42.3611 ], [ -71.0731, 42.3611 ], [ -71.0731, 42.3611 ], [ -71.0731, 42.3611 ], [ -71.0731, 42.3611 ], [ -71.0731, 42.3611 ], [ -71.0731, 42.3611 ], [ -71.0731, 42.3611 ], [ -71.0731, 42.3611 ], [ -71.0730, 42.3613 ], [ -71.0730, 42.3613 ], [ -71.0714, 42.3611 ] ] ] } }, + { "type": "Feature", "properties": { "Name": "Downtown", "density": 48.6400 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -71.0647, 42.3688 ], [ -71.0646, 42.3687 ], [ -71.0645, 42.3687 ], [ -71.0645, 42.3686 ], [ -71.0644, 42.3686 ], [ -71.0642, 42.3685 ], [ -71.0640, 42.3685 ], [ -71.0639, 42.3684 ], [ -71.0638, 42.3684 ], [ -71.0636, 42.3683 ], [ -71.0635, 42.3683 ], [ -71.0635, 42.3683 ], [ -71.0635, 42.3683 ], [ -71.0634, 42.3682 ], [ -71.0633, 42.3682 ], [ -71.0632, 42.3682 ], [ -71.0629, 42.3681 ], [ -71.0627, 42.3681 ], [ -71.0627, 42.3681 ], [ -71.0627, 42.3681 ], [ -71.0627, 42.3681 ], [ -71.0627, 42.3681 ], [ -71.0627, 42.3681 ], [ -71.0627, 42.3681 ], [ -71.0627, 42.3681 ], [ -71.0627, 42.3681 ], [ -71.0627, 42.3681 ], [ -71.0627, 42.3681 ], [ -71.0627, 42.3681 ], [ -71.0627, 42.3681 ], [ -71.0627, 42.3681 ], [ -71.0627, 42.3681 ], [ -71.0627, 42.3681 ], [ -71.0627, 42.3681 ], [ -71.0627, 42.3681 ], [ -71.0627, 42.3681 ], [ -71.0627, 42.3681 ], [ -71.0627, 42.3681 ], [ -71.0627, 42.3681 ], [ -71.0627, 42.3681 ], [ -71.0626, 42.3681 ], [ -71.0626, 42.3681 ], [ -71.0626, 42.3681 ], [ -71.0626, 42.3681 ], [ -71.0626, 42.3681 ], [ -71.0626, 42.3681 ], [ -71.0626, 42.3681 ], [ -71.0626, 42.3680 ], [ -71.0626, 42.3680 ], [ -71.0625, 42.3680 ], [ -71.0625, 42.3680 ], [ -71.0625, 42.3680 ], [ -71.0625, 42.3680 ], [ -71.0625, 42.3680 ], [ -71.0625, 42.3680 ], [ -71.0625, 42.3680 ], [ -71.0625, 42.3680 ], [ -71.0625, 42.3680 ], [ -71.0625, 42.3680 ], [ -71.0625, 42.3680 ], [ -71.0625, 42.3680 ], [ -71.0625, 42.3680 ], [ -71.0625, 42.3680 ], [ -71.0625, 42.3680 ], [ -71.0625, 42.3680 ], [ -71.0625, 42.3680 ], [ -71.0625, 42.3680 ], [ -71.0625, 42.3680 ], [ -71.0625, 42.3680 ], [ -71.0625, 42.3680 ], [ -71.0625, 42.3680 ], [ -71.0624, 42.3680 ], [ -71.0624, 42.3680 ], [ -71.0624, 42.3680 ], [ -71.0624, 42.3680 ], [ -71.0624, 42.3680 ], [ -71.0624, 42.3680 ], [ -71.0624, 42.3680 ], [ -71.0624, 42.3680 ], [ -71.0623, 42.3680 ], [ -71.0623, 42.3679 ], [ -71.0623, 42.3679 ], [ -71.0623, 42.3679 ], [ -71.0623, 42.3679 ], [ -71.0622, 42.3679 ], [ -71.0622, 42.3679 ], [ -71.0622, 42.3679 ], [ -71.0621, 42.3679 ], [ -71.0620, 42.3679 ], [ -71.0620, 42.3679 ], [ -71.0619, 42.3679 ], [ -71.0619, 42.3679 ], [ -71.0618, 42.3679 ], [ -71.0616, 42.3681 ], [ -71.0617, 42.3681 ], [ -71.0617, 42.3681 ], [ -71.0617, 42.3681 ], [ -71.0618, 42.3681 ], [ -71.0618, 42.3681 ], [ -71.0618, 42.3681 ], [ -71.0617, 42.3681 ], [ -71.0617, 42.3682 ], [ -71.0616, 42.3682 ], [ -71.0616, 42.3682 ], [ -71.0616, 42.3682 ], [ -71.0616, 42.3681 ], [ -71.0615, 42.3681 ], [ -71.0615, 42.3681 ], [ -71.0615, 42.3681 ], [ -71.0616, 42.3682 ], [ -71.0616, 42.3683 ], [ -71.0616, 42.3683 ], [ -71.0616, 42.3683 ], [ -71.0616, 42.3683 ], [ -71.0616, 42.3682 ], [ -71.0617, 42.3682 ], [ -71.0617, 42.3682 ], [ -71.0618, 42.3682 ], [ -71.0618, 42.3682 ], [ -71.0618, 42.3682 ], [ -71.0618, 42.3683 ], [ -71.0618, 42.3683 ], [ -71.0617, 42.3683 ], [ -71.0617, 42.3683 ], [ -71.0617, 42.3683 ], [ -71.0616, 42.3683 ], [ -71.0616, 42.3683 ], [ -71.0616, 42.3683 ], [ -71.0616, 42.3683 ], [ -71.0616, 42.3683 ], [ -71.0616, 42.3684 ], [ -71.0616, 42.3684 ], [ -71.0616, 42.3684 ], [ -71.0616, 42.3684 ], [ -71.0616, 42.3684 ], [ -71.0617, 42.3684 ], [ -71.0618, 42.3684 ], [ -71.0619, 42.3684 ], [ -71.0619, 42.3684 ], [ -71.0619, 42.3684 ], [ -71.0619, 42.3684 ], [ -71.0619, 42.3684 ], [ -71.0618, 42.3684 ], [ -71.0618, 42.3684 ], [ -71.0618, 42.3684 ], [ -71.0618, 42.3684 ], [ -71.0618, 42.3684 ], [ -71.0618, 42.3685 ], [ -71.0607, 42.3687 ], [ -71.0607, 42.3687 ], [ -71.0607, 42.3687 ], [ -71.0607, 42.3687 ], [ -71.0607, 42.3687 ], [ -71.0607, 42.3687 ], [ -71.0607, 42.3687 ], [ -71.0607, 42.3686 ], [ -71.0607, 42.3686 ], [ -71.0607, 42.3686 ], [ -71.0607, 42.3686 ], [ -71.0606, 42.3686 ], [ -71.0606, 42.3686 ], [ -71.0606, 42.3686 ], [ -71.0606, 42.3687 ], [ -71.0606, 42.3687 ], [ -71.0605, 42.3687 ], [ -71.0605, 42.3687 ], [ -71.0605, 42.3687 ], [ -71.0605, 42.3687 ], [ -71.0605, 42.3687 ], [ -71.0605, 42.3686 ], [ -71.0605, 42.3686 ], [ -71.0608, 42.3685 ], [ -71.0608, 42.3685 ], [ -71.0608, 42.3686 ], [ -71.0609, 42.3686 ], [ -71.0609, 42.3685 ], [ -71.0609, 42.3685 ], [ -71.0609, 42.3685 ], [ -71.0608, 42.3685 ], [ -71.0608, 42.3685 ], [ -71.0608, 42.3685 ], [ -71.0608, 42.3685 ], [ -71.0608, 42.3685 ], [ -71.0608, 42.3685 ], [ -71.0608, 42.3685 ], [ -71.0608, 42.3685 ], [ -71.0608, 42.3685 ], [ -71.0608, 42.3685 ], [ -71.0608, 42.3685 ], [ -71.0608, 42.3685 ], [ -71.0608, 42.3685 ], [ -71.0608, 42.3685 ], [ -71.0608, 42.3685 ], [ -71.0608, 42.3685 ], [ -71.0608, 42.3685 ], [ -71.0608, 42.3685 ], [ -71.0608, 42.3685 ], [ -71.0608, 42.3685 ], [ -71.0608, 42.3685 ], [ -71.0608, 42.3685 ], [ -71.0608, 42.3685 ], [ -71.0608, 42.3685 ], [ -71.0608, 42.3685 ], [ -71.0608, 42.3685 ], [ -71.0608, 42.3685 ], [ -71.0608, 42.3685 ], [ -71.0608, 42.3685 ], [ -71.0608, 42.3685 ], [ -71.0608, 42.3684 ], [ -71.0608, 42.3684 ], [ -71.0608, 42.3684 ], [ -71.0608, 42.3685 ], [ -71.0607, 42.3685 ], [ -71.0607, 42.3685 ], [ -71.0607, 42.3685 ], [ -71.0606, 42.3685 ], [ -71.0606, 42.3685 ], [ -71.0606, 42.3685 ], [ -71.0606, 42.3684 ], [ -71.0606, 42.3684 ], [ -71.0607, 42.3684 ], [ -71.0607, 42.3684 ], [ -71.0608, 42.3684 ], [ -71.0608, 42.3684 ], [ -71.0608, 42.3684 ], [ -71.0608, 42.3684 ], [ -71.0608, 42.3684 ], [ -71.0608, 42.3684 ], [ -71.0608, 42.3684 ], [ -71.0608, 42.3684 ], [ -71.0608, 42.3684 ], [ -71.0608, 42.3683 ], [ -71.0608, 42.3683 ], [ -71.0608, 42.3683 ], [ -71.0608, 42.3683 ], [ -71.0608, 42.3683 ], [ -71.0608, 42.3683 ], [ -71.0608, 42.3683 ], [ -71.0608, 42.3683 ], [ -71.0608, 42.3683 ], [ -71.0608, 42.3683 ], [ -71.0608, 42.3683 ], [ -71.0608, 42.3683 ], [ -71.0608, 42.3683 ], [ -71.0608, 42.3683 ], [ -71.0608, 42.3683 ], [ -71.0608, 42.3683 ], [ -71.0608, 42.3683 ], [ -71.0608, 42.3683 ], [ -71.0608, 42.3683 ], [ -71.0608, 42.3683 ], [ -71.0608, 42.3683 ], [ -71.0608, 42.3683 ], [ -71.0608, 42.3683 ], [ -71.0608, 42.3683 ], [ -71.0607, 42.3683 ], [ -71.0607, 42.3683 ], [ -71.0607, 42.3683 ], [ -71.0606, 42.3683 ], [ -71.0606, 42.3683 ], [ -71.0605, 42.3683 ], [ -71.0605, 42.3683 ], [ -71.0606, 42.3683 ], [ -71.0606, 42.3683 ], [ -71.0607, 42.3683 ], [ -71.0608, 42.3682 ], [ -71.0607, 42.3681 ], [ -71.0609, 42.3680 ], [ -71.0608, 42.3679 ], [ -71.0609, 42.3679 ], [ -71.0609, 42.3679 ], [ -71.0609, 42.3678 ], [ -71.0609, 42.3678 ], [ -71.0609, 42.3678 ], [ -71.0609, 42.3678 ], [ -71.0609, 42.3677 ], [ -71.0609, 42.3677 ], [ -71.0608, 42.3676 ], [ -71.0608, 42.3676 ], [ -71.0608, 42.3676 ], [ -71.0608, 42.3676 ], [ -71.0608, 42.3676 ], [ -71.0608, 42.3676 ], [ -71.0608, 42.3676 ], [ -71.0608, 42.3675 ], [ -71.0608, 42.3675 ], [ -71.0608, 42.3674 ], [ -71.0608, 42.3674 ], [ -71.0608, 42.3674 ], [ -71.0608, 42.3674 ], [ -71.0608, 42.3674 ], [ -71.0608, 42.3673 ], [ -71.0608, 42.3673 ], [ -71.0608, 42.3673 ], [ -71.0608, 42.3672 ], [ -71.0608, 42.3672 ], [ -71.0608, 42.3672 ], [ -71.0608, 42.3672 ], [ -71.0608, 42.3672 ], [ -71.0608, 42.3672 ], [ -71.0608, 42.3672 ], [ -71.0608, 42.3672 ], [ -71.0608, 42.3672 ], [ -71.0608, 42.3672 ], [ -71.0608, 42.3672 ], [ -71.0608, 42.3672 ], [ -71.0608, 42.3672 ], [ -71.0608, 42.3672 ], [ -71.0608, 42.3672 ], [ -71.0608, 42.3672 ], [ -71.0608, 42.3672 ], [ -71.0608, 42.3672 ], [ -71.0608, 42.3672 ], [ -71.0608, 42.3672 ], [ -71.0608, 42.3672 ], [ -71.0608, 42.3672 ], [ -71.0608, 42.3672 ], [ -71.0608, 42.3672 ], [ -71.0608, 42.3672 ], [ -71.0608, 42.3672 ], [ -71.0608, 42.3672 ], [ -71.0608, 42.3672 ], [ -71.0608, 42.3672 ], [ -71.0608, 42.3672 ], [ -71.0607, 42.3672 ], [ -71.0607, 42.3672 ], [ -71.0607, 42.3672 ], [ -71.0607, 42.3672 ], [ -71.0607, 42.3671 ], [ -71.0607, 42.3671 ], [ -71.0607, 42.3671 ], [ -71.0606, 42.3671 ], [ -71.0606, 42.3671 ], [ -71.0606, 42.3671 ], [ -71.0606, 42.3671 ], [ -71.0606, 42.3671 ], [ -71.0606, 42.3671 ], [ -71.0606, 42.3671 ], [ -71.0606, 42.3671 ], [ -71.0604, 42.3672 ], [ -71.0602, 42.3673 ], [ -71.0601, 42.3673 ], [ -71.0601, 42.3673 ], [ -71.0601, 42.3673 ], [ -71.0601, 42.3673 ], [ -71.0601, 42.3673 ], [ -71.0600, 42.3673 ], [ -71.0600, 42.3674 ], [ -71.0599, 42.3674 ], [ -71.0599, 42.3674 ], [ -71.0599, 42.3674 ], [ -71.0599, 42.3674 ], [ -71.0599, 42.3674 ], [ -71.0598, 42.3674 ], [ -71.0598, 42.3675 ], [ -71.0597, 42.3675 ], [ -71.0597, 42.3675 ], [ -71.0597, 42.3675 ], [ -71.0596, 42.3675 ], [ -71.0596, 42.3676 ], [ -71.0595, 42.3676 ], [ -71.0595, 42.3676 ], [ -71.0595, 42.3676 ], [ -71.0595, 42.3676 ], [ -71.0595, 42.3676 ], [ -71.0595, 42.3676 ], [ -71.0594, 42.3676 ], [ -71.0594, 42.3677 ], [ -71.0594, 42.3677 ], [ -71.0593, 42.3677 ], [ -71.0593, 42.3677 ], [ -71.0593, 42.3677 ], [ -71.0591, 42.3675 ], [ -71.0590, 42.3675 ], [ -71.0585, 42.3668 ], [ -71.0583, 42.3651 ], [ -71.0583, 42.3644 ], [ -71.0581, 42.3643 ], [ -71.0578, 42.3640 ], [ -71.0576, 42.3638 ], [ -71.0573, 42.3634 ], [ -71.0572, 42.3633 ], [ -71.0567, 42.3630 ], [ -71.0563, 42.3628 ], [ -71.0559, 42.3626 ], [ -71.0557, 42.3625 ], [ -71.0551, 42.3621 ], [ -71.0549, 42.3620 ], [ -71.0545, 42.3618 ], [ -71.0539, 42.3615 ], [ -71.0534, 42.3612 ], [ -71.0527, 42.3609 ], [ -71.0525, 42.3610 ], [ -71.0524, 42.3612 ], [ -71.0523, 42.3614 ], [ -71.0521, 42.3615 ], [ -71.0519, 42.3616 ], [ -71.0514, 42.3619 ], [ -71.0513, 42.3619 ], [ -71.0511, 42.3621 ], [ -71.0510, 42.3622 ], [ -71.0506, 42.3625 ], [ -71.0506, 42.3624 ], [ -71.0491, 42.3620 ], [ -71.0489, 42.3620 ], [ -71.0488, 42.3621 ], [ -71.0487, 42.3621 ], [ -71.0487, 42.3620 ], [ -71.0479, 42.3622 ], [ -71.0478, 42.3619 ], [ -71.0486, 42.3618 ], [ -71.0485, 42.3615 ], [ -71.0494, 42.3613 ], [ -71.0495, 42.3616 ], [ -71.0505, 42.3619 ], [ -71.0505, 42.3619 ], [ -71.0505, 42.3619 ], [ -71.0506, 42.3618 ], [ -71.0507, 42.3618 ], [ -71.0508, 42.3618 ], [ -71.0508, 42.3617 ], [ -71.0508, 42.3615 ], [ -71.0508, 42.3614 ], [ -71.0508, 42.3613 ], [ -71.0508, 42.3612 ], [ -71.0507, 42.3611 ], [ -71.0507, 42.3610 ], [ -71.0507, 42.3609 ], [ -71.0507, 42.3607 ], [ -71.0507, 42.3606 ], [ -71.0507, 42.3606 ], [ -71.0507, 42.3606 ], [ -71.0507, 42.3606 ], [ -71.0507, 42.3606 ], [ -71.0505, 42.3606 ], [ -71.0504, 42.3605 ], [ -71.0503, 42.3606 ], [ -71.0499, 42.3606 ], [ -71.0498, 42.3607 ], [ -71.0497, 42.3607 ], [ -71.0495, 42.3606 ], [ -71.0493, 42.3606 ], [ -71.0492, 42.3603 ], [ -71.0491, 42.3604 ], [ -71.0491, 42.3603 ], [ -71.0484, 42.3605 ], [ -71.0477, 42.3606 ], [ -71.0477, 42.3606 ], [ -71.0476, 42.3603 ], [ -71.0477, 42.3603 ], [ -71.0476, 42.3600 ], [ -71.0501, 42.3597 ], [ -71.0501, 42.3597 ], [ -71.0506, 42.3596 ], [ -71.0507, 42.3596 ], [ -71.0507, 42.3592 ], [ -71.0504, 42.3592 ], [ -71.0504, 42.3592 ], [ -71.0484, 42.3595 ], [ -71.0483, 42.3592 ], [ -71.0485, 42.3592 ], [ -71.0484, 42.3589 ], [ -71.0487, 42.3589 ], [ -71.0486, 42.3587 ], [ -71.0493, 42.3586 ], [ -71.0494, 42.3588 ], [ -71.0495, 42.3589 ], [ -71.0503, 42.3588 ], [ -71.0501, 42.3582 ], [ -71.0494, 42.3583 ], [ -71.0493, 42.3581 ], [ -71.0494, 42.3581 ], [ -71.0494, 42.3578 ], [ -71.0495, 42.3578 ], [ -71.0494, 42.3576 ], [ -71.0497, 42.3575 ], [ -71.0496, 42.3573 ], [ -71.0490, 42.3574 ], [ -71.0490, 42.3574 ], [ -71.0490, 42.3573 ], [ -71.0489, 42.3573 ], [ -71.0489, 42.3573 ], [ -71.0489, 42.3573 ], [ -71.0489, 42.3572 ], [ -71.0489, 42.3572 ], [ -71.0489, 42.3571 ], [ -71.0498, 42.3569 ], [ -71.0498, 42.3568 ], [ -71.0492, 42.3568 ], [ -71.0492, 42.3567 ], [ -71.0491, 42.3567 ], [ -71.0491, 42.3566 ], [ -71.0491, 42.3566 ], [ -71.0492, 42.3566 ], [ -71.0492, 42.3565 ], [ -71.0498, 42.3565 ], [ -71.0498, 42.3563 ], [ -71.0499, 42.3563 ], [ -71.0500, 42.3560 ], [ -71.0497, 42.3560 ], [ -71.0496, 42.3561 ], [ -71.0497, 42.3561 ], [ -71.0496, 42.3562 ], [ -71.0495, 42.3562 ], [ -71.0495, 42.3562 ], [ -71.0494, 42.3561 ], [ -71.0495, 42.3561 ], [ -71.0496, 42.3561 ], [ -71.0499, 42.3556 ], [ -71.0499, 42.3556 ], [ -71.0503, 42.3549 ], [ -71.0504, 42.3548 ], [ -71.0506, 42.3544 ], [ -71.0508, 42.3545 ], [ -71.0509, 42.3546 ], [ -71.0510, 42.3545 ], [ -71.0511, 42.3544 ], [ -71.0511, 42.3543 ], [ -71.0509, 42.3542 ], [ -71.0509, 42.3540 ], [ -71.0511, 42.3537 ], [ -71.0512, 42.3535 ], [ -71.0513, 42.3534 ], [ -71.0514, 42.3533 ], [ -71.0514, 42.3532 ], [ -71.0517, 42.3529 ], [ -71.0518, 42.3529 ], [ -71.0518, 42.3529 ], [ -71.0522, 42.3525 ], [ -71.0520, 42.3523 ], [ -71.0521, 42.3521 ], [ -71.0526, 42.3514 ], [ -71.0528, 42.3512 ], [ -71.0536, 42.3500 ], [ -71.0553, 42.3474 ], [ -71.0553, 42.3474 ], [ -71.0553, 42.3474 ], [ -71.0553, 42.3474 ], [ -71.0553, 42.3474 ], [ -71.0553, 42.3474 ], [ -71.0553, 42.3474 ], [ -71.0553, 42.3474 ], [ -71.0553, 42.3474 ], [ -71.0553, 42.3474 ], [ -71.0553, 42.3474 ], [ -71.0553, 42.3474 ], [ -71.0553, 42.3474 ], [ -71.0553, 42.3474 ], [ -71.0553, 42.3474 ], [ -71.0552, 42.3474 ], [ -71.0552, 42.3474 ], [ -71.0552, 42.3474 ], [ -71.0552, 42.3474 ], [ -71.0552, 42.3474 ], [ -71.0552, 42.3474 ], [ -71.0552, 42.3474 ], [ -71.0552, 42.3474 ], [ -71.0552, 42.3474 ], [ -71.0552, 42.3474 ], [ -71.0552, 42.3474 ], [ -71.0552, 42.3474 ], [ -71.0552, 42.3474 ], [ -71.0552, 42.3474 ], [ -71.0552, 42.3474 ], [ -71.0552, 42.3474 ], [ -71.0552, 42.3474 ], [ -71.0552, 42.3474 ], [ -71.0552, 42.3474 ], [ -71.0552, 42.3473 ], [ -71.0552, 42.3473 ], [ -71.0552, 42.3473 ], [ -71.0552, 42.3473 ], [ -71.0552, 42.3473 ], [ -71.0552, 42.3473 ], [ -71.0552, 42.3473 ], [ -71.0552, 42.3473 ], [ -71.0552, 42.3473 ], [ -71.0552, 42.3473 ], [ -71.0552, 42.3473 ], [ -71.0552, 42.3473 ], [ -71.0552, 42.3473 ], [ -71.0552, 42.3473 ], [ -71.0552, 42.3473 ], [ -71.0552, 42.3473 ], [ -71.0552, 42.3473 ], [ -71.0552, 42.3473 ], [ -71.0552, 42.3473 ], [ -71.0552, 42.3473 ], [ -71.0552, 42.3473 ], [ -71.0552, 42.3473 ], [ -71.0552, 42.3473 ], [ -71.0552, 42.3473 ], [ -71.0552, 42.3473 ], [ -71.0552, 42.3473 ], [ -71.0552, 42.3473 ], [ -71.0552, 42.3473 ], [ -71.0552, 42.3473 ], [ -71.0552, 42.3473 ], [ -71.0552, 42.3473 ], [ -71.0552, 42.3473 ], [ -71.0552, 42.3473 ], [ -71.0553, 42.3473 ], [ -71.0553, 42.3473 ], [ -71.0553, 42.3473 ], [ -71.0553, 42.3473 ], [ -71.0553, 42.3473 ], [ -71.0553, 42.3473 ], [ -71.0553, 42.3473 ], [ -71.0553, 42.3473 ], [ -71.0553, 42.3473 ], [ -71.0553, 42.3473 ], [ -71.0553, 42.3473 ], [ -71.0553, 42.3473 ], [ -71.0553, 42.3473 ], [ -71.0553, 42.3473 ], [ -71.0553, 42.3473 ], [ -71.0553, 42.3473 ], [ -71.0554, 42.3473 ], [ -71.0554, 42.3473 ], [ -71.0554, 42.3473 ], [ -71.0554, 42.3473 ], [ -71.0554, 42.3473 ], [ -71.0554, 42.3473 ], [ -71.0554, 42.3472 ], [ -71.0555, 42.3472 ], [ -71.0556, 42.3471 ], [ -71.0557, 42.3471 ], [ -71.0557, 42.3470 ], [ -71.0557, 42.3469 ], [ -71.0557, 42.3469 ], [ -71.0557, 42.3469 ], [ -71.0556, 42.3469 ], [ -71.0556, 42.3469 ], [ -71.0556, 42.3469 ], [ -71.0556, 42.3469 ], [ -71.0556, 42.3469 ], [ -71.0561, 42.3462 ], [ -71.0562, 42.3461 ], [ -71.0564, 42.3460 ], [ -71.0565, 42.3460 ], [ -71.0566, 42.3460 ], [ -71.0566, 42.3460 ], [ -71.0567, 42.3459 ], [ -71.0569, 42.3459 ], [ -71.0571, 42.3458 ], [ -71.0571, 42.3458 ], [ -71.0571, 42.3458 ], [ -71.0571, 42.3457 ], [ -71.0571, 42.3457 ], [ -71.0571, 42.3457 ], [ -71.0571, 42.3457 ], [ -71.0571, 42.3457 ], [ -71.0571, 42.3457 ], [ -71.0573, 42.3457 ], [ -71.0574, 42.3456 ], [ -71.0575, 42.3456 ], [ -71.0576, 42.3456 ], [ -71.0577, 42.3456 ], [ -71.0577, 42.3456 ], [ -71.0579, 42.3455 ], [ -71.0580, 42.3455 ], [ -71.0580, 42.3455 ], [ -71.0582, 42.3454 ], [ -71.0583, 42.3454 ], [ -71.0583, 42.3454 ], [ -71.0583, 42.3454 ], [ -71.0584, 42.3454 ], [ -71.0584, 42.3454 ], [ -71.0584, 42.3454 ], [ -71.0585, 42.3453 ], [ -71.0587, 42.3453 ], [ -71.0588, 42.3452 ], [ -71.0588, 42.3452 ], [ -71.0589, 42.3452 ], [ -71.0589, 42.3452 ], [ -71.0591, 42.3452 ], [ -71.0592, 42.3452 ], [ -71.0592, 42.3452 ], [ -71.0592, 42.3452 ], [ -71.0591, 42.3450 ], [ -71.0591, 42.3450 ], [ -71.0591, 42.3450 ], [ -71.0592, 42.3450 ], [ -71.0592, 42.3450 ], [ -71.0592, 42.3450 ], [ -71.0592, 42.3450 ], [ -71.0593, 42.3451 ], [ -71.0593, 42.3451 ], [ -71.0594, 42.3450 ], [ -71.0593, 42.3449 ], [ -71.0594, 42.3449 ], [ -71.0594, 42.3449 ], [ -71.0594, 42.3449 ], [ -71.0595, 42.3450 ], [ -71.0595, 42.3449 ], [ -71.0595, 42.3449 ], [ -71.0595, 42.3449 ], [ -71.0595, 42.3449 ], [ -71.0595, 42.3449 ], [ -71.0595, 42.3449 ], [ -71.0594, 42.3448 ], [ -71.0594, 42.3448 ], [ -71.0596, 42.3447 ], [ -71.0597, 42.3448 ], [ -71.0598, 42.3449 ], [ -71.0598, 42.3449 ], [ -71.0598, 42.3449 ], [ -71.0599, 42.3449 ], [ -71.0599, 42.3449 ], [ -71.0601, 42.3451 ], [ -71.0601, 42.3451 ], [ -71.0601, 42.3451 ], [ -71.0603, 42.3452 ], [ -71.0604, 42.3453 ], [ -71.0604, 42.3453 ], [ -71.0605, 42.3454 ], [ -71.0606, 42.3455 ], [ -71.0608, 42.3456 ], [ -71.0608, 42.3456 ], [ -71.0608, 42.3456 ], [ -71.0609, 42.3456 ], [ -71.0608, 42.3458 ], [ -71.0608, 42.3460 ], [ -71.0607, 42.3461 ], [ -71.0607, 42.3462 ], [ -71.0607, 42.3462 ], [ -71.0604, 42.3462 ], [ -71.0604, 42.3462 ], [ -71.0604, 42.3462 ], [ -71.0603, 42.3462 ], [ -71.0602, 42.3462 ], [ -71.0602, 42.3462 ], [ -71.0601, 42.3462 ], [ -71.0601, 42.3462 ], [ -71.0600, 42.3462 ], [ -71.0599, 42.3462 ], [ -71.0598, 42.3462 ], [ -71.0597, 42.3462 ], [ -71.0596, 42.3462 ], [ -71.0595, 42.3463 ], [ -71.0595, 42.3463 ], [ -71.0593, 42.3463 ], [ -71.0592, 42.3464 ], [ -71.0592, 42.3464 ], [ -71.0592, 42.3464 ], [ -71.0591, 42.3464 ], [ -71.0590, 42.3464 ], [ -71.0590, 42.3465 ], [ -71.0590, 42.3465 ], [ -71.0590, 42.3465 ], [ -71.0589, 42.3465 ], [ -71.0589, 42.3465 ], [ -71.0589, 42.3465 ], [ -71.0588, 42.3465 ], [ -71.0588, 42.3466 ], [ -71.0588, 42.3466 ], [ -71.0588, 42.3466 ], [ -71.0588, 42.3466 ], [ -71.0587, 42.3466 ], [ -71.0587, 42.3466 ], [ -71.0585, 42.3467 ], [ -71.0585, 42.3467 ], [ -71.0585, 42.3468 ], [ -71.0584, 42.3468 ], [ -71.0584, 42.3468 ], [ -71.0584, 42.3468 ], [ -71.0584, 42.3468 ], [ -71.0584, 42.3468 ], [ -71.0583, 42.3469 ], [ -71.0583, 42.3469 ], [ -71.0583, 42.3469 ], [ -71.0583, 42.3469 ], [ -71.0582, 42.3469 ], [ -71.0582, 42.3470 ], [ -71.0582, 42.3470 ], [ -71.0581, 42.3470 ], [ -71.0581, 42.3471 ], [ -71.0579, 42.3472 ], [ -71.0579, 42.3473 ], [ -71.0578, 42.3474 ], [ -71.0578, 42.3474 ], [ -71.0577, 42.3475 ], [ -71.0576, 42.3476 ], [ -71.0576, 42.3477 ], [ -71.0575, 42.3478 ], [ -71.0575, 42.3478 ], [ -71.0575, 42.3479 ], [ -71.0574, 42.3479 ], [ -71.0574, 42.3481 ], [ -71.0574, 42.3481 ], [ -71.0574, 42.3481 ], [ -71.0579, 42.3483 ], [ -71.0588, 42.3485 ], [ -71.0589, 42.3485 ], [ -71.0587, 42.3489 ], [ -71.0584, 42.3497 ], [ -71.0583, 42.3498 ], [ -71.0583, 42.3498 ], [ -71.0576, 42.3496 ], [ -71.0573, 42.3495 ], [ -71.0570, 42.3495 ], [ -71.0570, 42.3495 ], [ -71.0570, 42.3495 ], [ -71.0570, 42.3495 ], [ -71.0566, 42.3504 ], [ -71.0562, 42.3512 ], [ -71.0560, 42.3514 ], [ -71.0560, 42.3515 ], [ -71.0559, 42.3516 ], [ -71.0558, 42.3518 ], [ -71.0571, 42.3521 ], [ -71.0571, 42.3521 ], [ -71.0572, 42.3521 ], [ -71.0576, 42.3522 ], [ -71.0579, 42.3523 ], [ -71.0581, 42.3523 ], [ -71.0584, 42.3523 ], [ -71.0585, 42.3524 ], [ -71.0586, 42.3524 ], [ -71.0587, 42.3524 ], [ -71.0587, 42.3524 ], [ -71.0588, 42.3524 ], [ -71.0593, 42.3525 ], [ -71.0593, 42.3525 ], [ -71.0595, 42.3525 ], [ -71.0598, 42.3525 ], [ -71.0601, 42.3525 ], [ -71.0601, 42.3525 ], [ -71.0603, 42.3525 ], [ -71.0605, 42.3525 ], [ -71.0606, 42.3525 ], [ -71.0610, 42.3525 ], [ -71.0611, 42.3525 ], [ -71.0611, 42.3525 ], [ -71.0613, 42.3524 ], [ -71.0617, 42.3524 ], [ -71.0617, 42.3524 ], [ -71.0617, 42.3524 ], [ -71.0619, 42.3524 ], [ -71.0623, 42.3523 ], [ -71.0624, 42.3523 ], [ -71.0625, 42.3523 ], [ -71.0625, 42.3523 ], [ -71.0625, 42.3523 ], [ -71.0626, 42.3523 ], [ -71.0626, 42.3521 ], [ -71.0626, 42.3521 ], [ -71.0626, 42.3520 ], [ -71.0627, 42.3519 ], [ -71.0627, 42.3519 ], [ -71.0627, 42.3519 ], [ -71.0627, 42.3518 ], [ -71.0627, 42.3517 ], [ -71.0627, 42.3517 ], [ -71.0627, 42.3517 ], [ -71.0627, 42.3516 ], [ -71.0627, 42.3515 ], [ -71.0628, 42.3514 ], [ -71.0628, 42.3513 ], [ -71.0629, 42.3511 ], [ -71.0629, 42.3509 ], [ -71.0629, 42.3509 ], [ -71.0629, 42.3509 ], [ -71.0631, 42.3506 ], [ -71.0635, 42.3498 ], [ -71.0637, 42.3494 ], [ -71.0639, 42.3489 ], [ -71.0640, 42.3484 ], [ -71.0641, 42.3484 ], [ -71.0647, 42.3485 ], [ -71.0647, 42.3485 ], [ -71.0650, 42.3485 ], [ -71.0655, 42.3486 ], [ -71.0655, 42.3486 ], [ -71.0660, 42.3486 ], [ -71.0662, 42.3487 ], [ -71.0666, 42.3487 ], [ -71.0666, 42.3487 ], [ -71.0666, 42.3487 ], [ -71.0666, 42.3487 ], [ -71.0666, 42.3487 ], [ -71.0666, 42.3487 ], [ -71.0666, 42.3487 ], [ -71.0666, 42.3487 ], [ -71.0666, 42.3487 ], [ -71.0665, 42.3488 ], [ -71.0665, 42.3488 ], [ -71.0665, 42.3488 ], [ -71.0665, 42.3488 ], [ -71.0665, 42.3488 ], [ -71.0665, 42.3488 ], [ -71.0664, 42.3490 ], [ -71.0664, 42.3490 ], [ -71.0664, 42.3490 ], [ -71.0664, 42.3491 ], [ -71.0664, 42.3491 ], [ -71.0664, 42.3492 ], [ -71.0664, 42.3493 ], [ -71.0664, 42.3493 ], [ -71.0664, 42.3493 ], [ -71.0665, 42.3494 ], [ -71.0665, 42.3494 ], [ -71.0665, 42.3494 ], [ -71.0665, 42.3494 ], [ -71.0665, 42.3494 ], [ -71.0665, 42.3496 ], [ -71.0665, 42.3496 ], [ -71.0665, 42.3497 ], [ -71.0665, 42.3497 ], [ -71.0666, 42.3502 ], [ -71.0666, 42.3502 ], [ -71.0666, 42.3502 ], [ -71.0667, 42.3502 ], [ -71.0668, 42.3509 ], [ -71.0668, 42.3509 ], [ -71.0668, 42.3509 ], [ -71.0670, 42.3508 ], [ -71.0675, 42.3507 ], [ -71.0676, 42.3507 ], [ -71.0677, 42.3507 ], [ -71.0679, 42.3506 ], [ -71.0679, 42.3506 ], [ -71.0681, 42.3506 ], [ -71.0681, 42.3506 ], [ -71.0681, 42.3506 ], [ -71.0686, 42.3504 ], [ -71.0686, 42.3504 ], [ -71.0689, 42.3504 ], [ -71.0693, 42.3502 ], [ -71.0693, 42.3502 ], [ -71.0693, 42.3502 ], [ -71.0697, 42.3501 ], [ -71.0698, 42.3501 ], [ -71.0698, 42.3501 ], [ -71.0698, 42.3501 ], [ -71.0698, 42.3501 ], [ -71.0698, 42.3501 ], [ -71.0706, 42.3518 ], [ -71.0702, 42.3520 ], [ -71.0702, 42.3520 ], [ -71.0694, 42.3521 ], [ -71.0692, 42.3522 ], [ -71.0687, 42.3523 ], [ -71.0684, 42.3524 ], [ -71.0674, 42.3524 ], [ -71.0674, 42.3524 ], [ -71.0674, 42.3524 ], [ -71.0674, 42.3524 ], [ -71.0673, 42.3525 ], [ -71.0671, 42.3525 ], [ -71.0670, 42.3525 ], [ -71.0670, 42.3525 ], [ -71.0670, 42.3525 ], [ -71.0668, 42.3525 ], [ -71.0667, 42.3525 ], [ -71.0667, 42.3525 ], [ -71.0666, 42.3525 ], [ -71.0665, 42.3525 ], [ -71.0659, 42.3524 ], [ -71.0657, 42.3524 ], [ -71.0652, 42.3524 ], [ -71.0651, 42.3524 ], [ -71.0646, 42.3523 ], [ -71.0645, 42.3523 ], [ -71.0645, 42.3523 ], [ -71.0645, 42.3523 ], [ -71.0645, 42.3523 ], [ -71.0644, 42.3527 ], [ -71.0644, 42.3527 ], [ -71.0644, 42.3528 ], [ -71.0642, 42.3533 ], [ -71.0641, 42.3535 ], [ -71.0641, 42.3535 ], [ -71.0641, 42.3535 ], [ -71.0639, 42.3539 ], [ -71.0638, 42.3541 ], [ -71.0638, 42.3541 ], [ -71.0637, 42.3544 ], [ -71.0635, 42.3547 ], [ -71.0635, 42.3547 ], [ -71.0635, 42.3547 ], [ -71.0634, 42.3549 ], [ -71.0633, 42.3551 ], [ -71.0633, 42.3551 ], [ -71.0633, 42.3551 ], [ -71.0633, 42.3551 ], [ -71.0633, 42.3552 ], [ -71.0632, 42.3552 ], [ -71.0630, 42.3554 ], [ -71.0628, 42.3556 ], [ -71.0628, 42.3557 ], [ -71.0628, 42.3557 ], [ -71.0627, 42.3557 ], [ -71.0625, 42.3559 ], [ -71.0622, 42.3562 ], [ -71.0620, 42.3565 ], [ -71.0620, 42.3565 ], [ -71.0620, 42.3565 ], [ -71.0620, 42.3565 ], [ -71.0620, 42.3565 ], [ -71.0621, 42.3566 ], [ -71.0622, 42.3567 ], [ -71.0623, 42.3568 ], [ -71.0626, 42.3570 ], [ -71.0627, 42.3572 ], [ -71.0627, 42.3572 ], [ -71.0629, 42.3574 ], [ -71.0629, 42.3574 ], [ -71.0630, 42.3574 ], [ -71.0631, 42.3576 ], [ -71.0631, 42.3577 ], [ -71.0631, 42.3577 ], [ -71.0632, 42.3577 ], [ -71.0627, 42.3579 ], [ -71.0626, 42.3580 ], [ -71.0627, 42.3580 ], [ -71.0627, 42.3583 ], [ -71.0628, 42.3585 ], [ -71.0628, 42.3586 ], [ -71.0628, 42.3588 ], [ -71.0628, 42.3590 ], [ -71.0628, 42.3594 ], [ -71.0628, 42.3595 ], [ -71.0628, 42.3595 ], [ -71.0628, 42.3596 ], [ -71.0628, 42.3596 ], [ -71.0628, 42.3596 ], [ -71.0628, 42.3597 ], [ -71.0628, 42.3598 ], [ -71.0628, 42.3598 ], [ -71.0628, 42.3599 ], [ -71.0628, 42.3599 ], [ -71.0628, 42.3599 ], [ -71.0628, 42.3599 ], [ -71.0628, 42.3601 ], [ -71.0628, 42.3601 ], [ -71.0628, 42.3601 ], [ -71.0628, 42.3604 ], [ -71.0628, 42.3605 ], [ -71.0628, 42.3606 ], [ -71.0628, 42.3609 ], [ -71.0628, 42.3609 ], [ -71.0628, 42.3609 ], [ -71.0628, 42.3611 ], [ -71.0628, 42.3611 ], [ -71.0628, 42.3611 ], [ -71.0628, 42.3611 ], [ -71.0628, 42.3611 ], [ -71.0628, 42.3612 ], [ -71.0628, 42.3612 ], [ -71.0634, 42.3612 ], [ -71.0634, 42.3612 ], [ -71.0637, 42.3612 ], [ -71.0637, 42.3615 ], [ -71.0638, 42.3621 ], [ -71.0638, 42.3624 ], [ -71.0638, 42.3626 ], [ -71.0638, 42.3626 ], [ -71.0638, 42.3628 ], [ -71.0637, 42.3630 ], [ -71.0636, 42.3633 ], [ -71.0636, 42.3634 ], [ -71.0636, 42.3634 ], [ -71.0635, 42.3636 ], [ -71.0634, 42.3638 ], [ -71.0634, 42.3640 ], [ -71.0633, 42.3641 ], [ -71.0633, 42.3641 ], [ -71.0633, 42.3641 ], [ -71.0633, 42.3641 ], [ -71.0633, 42.3641 ], [ -71.0641, 42.3649 ], [ -71.0641, 42.3650 ], [ -71.0643, 42.3652 ], [ -71.0647, 42.3656 ], [ -71.0648, 42.3657 ], [ -71.0649, 42.3657 ], [ -71.0649, 42.3657 ], [ -71.0650, 42.3658 ], [ -71.0651, 42.3658 ], [ -71.0651, 42.3659 ], [ -71.0652, 42.3659 ], [ -71.0652, 42.3659 ], [ -71.0653, 42.3659 ], [ -71.0654, 42.3659 ], [ -71.0654, 42.3660 ], [ -71.0655, 42.3660 ], [ -71.0655, 42.3660 ], [ -71.0655, 42.3660 ], [ -71.0655, 42.3660 ], [ -71.0656, 42.3660 ], [ -71.0660, 42.3661 ], [ -71.0661, 42.3661 ], [ -71.0661, 42.3661 ], [ -71.0661, 42.3661 ], [ -71.0662, 42.3661 ], [ -71.0663, 42.3661 ], [ -71.0663, 42.3661 ], [ -71.0665, 42.3662 ], [ -71.0666, 42.3662 ], [ -71.0667, 42.3662 ], [ -71.0668, 42.3663 ], [ -71.0670, 42.3663 ], [ -71.0671, 42.3664 ], [ -71.0673, 42.3664 ], [ -71.0673, 42.3665 ], [ -71.0674, 42.3665 ], [ -71.0674, 42.3665 ], [ -71.0674, 42.3665 ], [ -71.0674, 42.3665 ], [ -71.0676, 42.3666 ], [ -71.0677, 42.3667 ], [ -71.0678, 42.3667 ], [ -71.0678, 42.3667 ], [ -71.0678, 42.3667 ], [ -71.0680, 42.3668 ], [ -71.0680, 42.3668 ], [ -71.0680, 42.3668 ], [ -71.0680, 42.3668 ], [ -71.0681, 42.3669 ], [ -71.0682, 42.3669 ], [ -71.0682, 42.3669 ], [ -71.0683, 42.3670 ], [ -71.0683, 42.3670 ], [ -71.0684, 42.3670 ], [ -71.0683, 42.3670 ], [ -71.0683, 42.3671 ], [ -71.0682, 42.3672 ], [ -71.0682, 42.3673 ], [ -71.0681, 42.3673 ], [ -71.0679, 42.3674 ], [ -71.0678, 42.3674 ], [ -71.0677, 42.3675 ], [ -71.0675, 42.3675 ], [ -71.0673, 42.3676 ], [ -71.0671, 42.3676 ], [ -71.0669, 42.3678 ], [ -71.0668, 42.3679 ], [ -71.0666, 42.3680 ], [ -71.0664, 42.3680 ], [ -71.0657, 42.3681 ], [ -71.0656, 42.3682 ], [ -71.0655, 42.3682 ], [ -71.0650, 42.3683 ], [ -71.0650, 42.3685 ], [ -71.0650, 42.3685 ], [ -71.0651, 42.3686 ], [ -71.0653, 42.3688 ], [ -71.0657, 42.3687 ], [ -71.0657, 42.3687 ], [ -71.0657, 42.3687 ], [ -71.0657, 42.3687 ], [ -71.0657, 42.3687 ], [ -71.0657, 42.3687 ], [ -71.0657, 42.3687 ], [ -71.0657, 42.3687 ], [ -71.0657, 42.3687 ], [ -71.0657, 42.3687 ], [ -71.0657, 42.3686 ], [ -71.0657, 42.3686 ], [ -71.0657, 42.3686 ], [ -71.0657, 42.3686 ], [ -71.0658, 42.3686 ], [ -71.0658, 42.3686 ], [ -71.0658, 42.3686 ], [ -71.0658, 42.3686 ], [ -71.0658, 42.3686 ], [ -71.0658, 42.3686 ], [ -71.0658, 42.3686 ], [ -71.0658, 42.3686 ], [ -71.0658, 42.3686 ], [ -71.0658, 42.3686 ], [ -71.0658, 42.3686 ], [ -71.0658, 42.3686 ], [ -71.0658, 42.3686 ], [ -71.0658, 42.3686 ], [ -71.0658, 42.3686 ], [ -71.0658, 42.3686 ], [ -71.0658, 42.3686 ], [ -71.0658, 42.3686 ], [ -71.0658, 42.3686 ], [ -71.0658, 42.3686 ], [ -71.0658, 42.3686 ], [ -71.0658, 42.3686 ], [ -71.0658, 42.3686 ], [ -71.0658, 42.3686 ], [ -71.0658, 42.3686 ], [ -71.0658, 42.3686 ], [ -71.0658, 42.3686 ], [ -71.0658, 42.3686 ], [ -71.0658, 42.3687 ], [ -71.0658, 42.3687 ], [ -71.0659, 42.3687 ], [ -71.0659, 42.3687 ], [ -71.0659, 42.3687 ], [ -71.0659, 42.3687 ], [ -71.0659, 42.3687 ], [ -71.0659, 42.3687 ], [ -71.0659, 42.3687 ], [ -71.0659, 42.3687 ], [ -71.0659, 42.3687 ], [ -71.0659, 42.3687 ], [ -71.0659, 42.3687 ], [ -71.0659, 42.3687 ], [ -71.0659, 42.3687 ], [ -71.0658, 42.3687 ], [ -71.0658, 42.3687 ], [ -71.0658, 42.3687 ], [ -71.0658, 42.3687 ], [ -71.0658, 42.3687 ], [ -71.0658, 42.3687 ], [ -71.0658, 42.3687 ], [ -71.0658, 42.3687 ], [ -71.0658, 42.3687 ], [ -71.0658, 42.3687 ], [ -71.0658, 42.3687 ], [ -71.0658, 42.3687 ], [ -71.0658, 42.3687 ], [ -71.0658, 42.3687 ], [ -71.0658, 42.3687 ], [ -71.0658, 42.3687 ], [ -71.0653, 42.3688 ], [ -71.0653, 42.3688 ], [ -71.0649, 42.3689 ], [ -71.0649, 42.3689 ], [ -71.0647, 42.3688 ] ] ], [ [ [ -71.0689, 42.3681 ], [ -71.0689, 42.3681 ], [ -71.0690, 42.3681 ], [ -71.0691, 42.3681 ], [ -71.0691, 42.3681 ], [ -71.0692, 42.3682 ], [ -71.0699, 42.3685 ], [ -71.0694, 42.3690 ], [ -71.0675, 42.3690 ], [ -71.0676, 42.3689 ], [ -71.0676, 42.3689 ], [ -71.0676, 42.3689 ], [ -71.0676, 42.3689 ], [ -71.0677, 42.3689 ], [ -71.0678, 42.3689 ], [ -71.0679, 42.3688 ], [ -71.0681, 42.3687 ], [ -71.0683, 42.3685 ], [ -71.0684, 42.3684 ], [ -71.0685, 42.3683 ], [ -71.0685, 42.3682 ], [ -71.0686, 42.3682 ], [ -71.0686, 42.3682 ], [ -71.0687, 42.3681 ], [ -71.0687, 42.3681 ], [ -71.0688, 42.3681 ], [ -71.0689, 42.3681 ] ] ] ] } }, + { "type": "Feature", "properties": { "Name": "Fenway", "density": 14.8400 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -71.1101, 42.3520 ], [ -71.1098, 42.3520 ], [ -71.1098, 42.3520 ], [ -71.1098, 42.3520 ], [ -71.1098, 42.3520 ], [ -71.1098, 42.3520 ], [ -71.1098, 42.3520 ], [ -71.1098, 42.3520 ], [ -71.1098, 42.3520 ], [ -71.1098, 42.3520 ], [ -71.1098, 42.3520 ], [ -71.1098, 42.3520 ], [ -71.1098, 42.3520 ], [ -71.1098, 42.3520 ], [ -71.1098, 42.3520 ], [ -71.1097, 42.3520 ], [ -71.1097, 42.3520 ], [ -71.1097, 42.3520 ], [ -71.1097, 42.3520 ], [ -71.1097, 42.3520 ], [ -71.1097, 42.3520 ], [ -71.1097, 42.3520 ], [ -71.1097, 42.3520 ], [ -71.1097, 42.3520 ], [ -71.1097, 42.3520 ], [ -71.1096, 42.3520 ], [ -71.1096, 42.3520 ], [ -71.1096, 42.3520 ], [ -71.1096, 42.3520 ], [ -71.1096, 42.3520 ], [ -71.1096, 42.3520 ], [ -71.1096, 42.3520 ], [ -71.1096, 42.3520 ], [ -71.1096, 42.3520 ], [ -71.1096, 42.3520 ], [ -71.1096, 42.3520 ], [ -71.1096, 42.3520 ], [ -71.1096, 42.3520 ], [ -71.1095, 42.3520 ], [ -71.1095, 42.3520 ], [ -71.1095, 42.3520 ], [ -71.1095, 42.3520 ], [ -71.1094, 42.3520 ], [ -71.1094, 42.3520 ], [ -71.1093, 42.3520 ], [ -71.1093, 42.3520 ], [ -71.1092, 42.3520 ], [ -71.1092, 42.3521 ], [ -71.1092, 42.3521 ], [ -71.1092, 42.3521 ], [ -71.1092, 42.3520 ], [ -71.1091, 42.3520 ], [ -71.1091, 42.3520 ], [ -71.1091, 42.3520 ], [ -71.1091, 42.3520 ], [ -71.1091, 42.3520 ], [ -71.1091, 42.3520 ], [ -71.1091, 42.3520 ], [ -71.1090, 42.3520 ], [ -71.1090, 42.3520 ], [ -71.1090, 42.3520 ], [ -71.1090, 42.3521 ], [ -71.1089, 42.3521 ], [ -71.1089, 42.3521 ], [ -71.1088, 42.3520 ], [ -71.1088, 42.3520 ], [ -71.1088, 42.3520 ], [ -71.1088, 42.3520 ], [ -71.1087, 42.3520 ], [ -71.1087, 42.3520 ], [ -71.1087, 42.3520 ], [ -71.1087, 42.3520 ], [ -71.1087, 42.3520 ], [ -71.1086, 42.3520 ], [ -71.1086, 42.3520 ], [ -71.1086, 42.3520 ], [ -71.1086, 42.3520 ], [ -71.1086, 42.3520 ], [ -71.1085, 42.3520 ], [ -71.1085, 42.3520 ], [ -71.1085, 42.3520 ], [ -71.1085, 42.3520 ], [ -71.1085, 42.3520 ], [ -71.1084, 42.3520 ], [ -71.1084, 42.3520 ], [ -71.1084, 42.3520 ], [ -71.1084, 42.3520 ], [ -71.1083, 42.3520 ], [ -71.1083, 42.3520 ], [ -71.1083, 42.3520 ], [ -71.1083, 42.3520 ], [ -71.1083, 42.3520 ], [ -71.1082, 42.3520 ], [ -71.1082, 42.3520 ], [ -71.1082, 42.3520 ], [ -71.1082, 42.3520 ], [ -71.1082, 42.3520 ], [ -71.1082, 42.3520 ], [ -71.1082, 42.3520 ], [ -71.1081, 42.3520 ], [ -71.1081, 42.3520 ], [ -71.1081, 42.3519 ], [ -71.1081, 42.3519 ], [ -71.1081, 42.3519 ], [ -71.1081, 42.3519 ], [ -71.1080, 42.3519 ], [ -71.1080, 42.3519 ], [ -71.1080, 42.3519 ], [ -71.1080, 42.3519 ], [ -71.1079, 42.3519 ], [ -71.1079, 42.3519 ], [ -71.1079, 42.3519 ], [ -71.1079, 42.3519 ], [ -71.1079, 42.3519 ], [ -71.1078, 42.3519 ], [ -71.1078, 42.3519 ], [ -71.1078, 42.3519 ], [ -71.1078, 42.3519 ], [ -71.1077, 42.3519 ], [ -71.1077, 42.3519 ], [ -71.1077, 42.3518 ], [ -71.1077, 42.3518 ], [ -71.1076, 42.3518 ], [ -71.1076, 42.3518 ], [ -71.1076, 42.3518 ], [ -71.1076, 42.3518 ], [ -71.1075, 42.3518 ], [ -71.1075, 42.3518 ], [ -71.1075, 42.3518 ], [ -71.1075, 42.3518 ], [ -71.1075, 42.3518 ], [ -71.1074, 42.3518 ], [ -71.1074, 42.3518 ], [ -71.1074, 42.3518 ], [ -71.1074, 42.3518 ], [ -71.1074, 42.3518 ], [ -71.1074, 42.3517 ], [ -71.1073, 42.3517 ], [ -71.1073, 42.3517 ], [ -71.1073, 42.3517 ], [ -71.1073, 42.3517 ], [ -71.1073, 42.3517 ], [ -71.1073, 42.3517 ], [ -71.1072, 42.3517 ], [ -71.1072, 42.3517 ], [ -71.1072, 42.3517 ], [ -71.1072, 42.3517 ], [ -71.1072, 42.3517 ], [ -71.1071, 42.3517 ], [ -71.1071, 42.3517 ], [ -71.1071, 42.3517 ], [ -71.1071, 42.3517 ], [ -71.1071, 42.3517 ], [ -71.1071, 42.3517 ], [ -71.1071, 42.3517 ], [ -71.1070, 42.3516 ], [ -71.1070, 42.3516 ], [ -71.1070, 42.3516 ], [ -71.1070, 42.3516 ], [ -71.1069, 42.3516 ], [ -71.1069, 42.3516 ], [ -71.1069, 42.3516 ], [ -71.1068, 42.3516 ], [ -71.1068, 42.3516 ], [ -71.1068, 42.3516 ], [ -71.1068, 42.3516 ], [ -71.1068, 42.3516 ], [ -71.1067, 42.3516 ], [ -71.1067, 42.3516 ], [ -71.1067, 42.3516 ], [ -71.1067, 42.3516 ], [ -71.1067, 42.3516 ], [ -71.1067, 42.3516 ], [ -71.1066, 42.3516 ], [ -71.1066, 42.3516 ], [ -71.1066, 42.3516 ], [ -71.1066, 42.3516 ], [ -71.1066, 42.3516 ], [ -71.1065, 42.3516 ], [ -71.1065, 42.3516 ], [ -71.1065, 42.3516 ], [ -71.1065, 42.3516 ], [ -71.1065, 42.3516 ], [ -71.1064, 42.3516 ], [ -71.1064, 42.3516 ], [ -71.1064, 42.3516 ], [ -71.1064, 42.3516 ], [ -71.1063, 42.3516 ], [ -71.1063, 42.3516 ], [ -71.1063, 42.3516 ], [ -71.1063, 42.3516 ], [ -71.1062, 42.3516 ], [ -71.1062, 42.3516 ], [ -71.1062, 42.3516 ], [ -71.1062, 42.3516 ], [ -71.1062, 42.3516 ], [ -71.1062, 42.3516 ], [ -71.1061, 42.3516 ], [ -71.1061, 42.3516 ], [ -71.1061, 42.3516 ], [ -71.1061, 42.3516 ], [ -71.1060, 42.3516 ], [ -71.1060, 42.3516 ], [ -71.1060, 42.3516 ], [ -71.1060, 42.3516 ], [ -71.1060, 42.3516 ], [ -71.1060, 42.3516 ], [ -71.1059, 42.3516 ], [ -71.1059, 42.3515 ], [ -71.1059, 42.3515 ], [ -71.1059, 42.3515 ], [ -71.1059, 42.3515 ], [ -71.1059, 42.3515 ], [ -71.1058, 42.3515 ], [ -71.1058, 42.3515 ], [ -71.1058, 42.3515 ], [ -71.1058, 42.3515 ], [ -71.1058, 42.3515 ], [ -71.1058, 42.3515 ], [ -71.1057, 42.3515 ], [ -71.1057, 42.3515 ], [ -71.1057, 42.3515 ], [ -71.1057, 42.3515 ], [ -71.1057, 42.3515 ], [ -71.1057, 42.3515 ], [ -71.1056, 42.3515 ], [ -71.1056, 42.3515 ], [ -71.1056, 42.3515 ], [ -71.1056, 42.3515 ], [ -71.1055, 42.3515 ], [ -71.1055, 42.3515 ], [ -71.1055, 42.3515 ], [ -71.1055, 42.3515 ], [ -71.1055, 42.3515 ], [ -71.1054, 42.3515 ], [ -71.1054, 42.3515 ], [ -71.1054, 42.3515 ], [ -71.1053, 42.3515 ], [ -71.1053, 42.3515 ], [ -71.1053, 42.3515 ], [ -71.1053, 42.3515 ], [ -71.1053, 42.3515 ], [ -71.1053, 42.3515 ], [ -71.1052, 42.3515 ], [ -71.1052, 42.3515 ], [ -71.1052, 42.3515 ], [ -71.1052, 42.3515 ], [ -71.1052, 42.3515 ], [ -71.1051, 42.3515 ], [ -71.1051, 42.3515 ], [ -71.1051, 42.3515 ], [ -71.1051, 42.3515 ], [ -71.1050, 42.3515 ], [ -71.1050, 42.3515 ], [ -71.1050, 42.3515 ], [ -71.1050, 42.3515 ], [ -71.1050, 42.3515 ], [ -71.1049, 42.3515 ], [ -71.1049, 42.3515 ], [ -71.1049, 42.3515 ], [ -71.1049, 42.3515 ], [ -71.1049, 42.3515 ], [ -71.1048, 42.3515 ], [ -71.1048, 42.3515 ], [ -71.1048, 42.3515 ], [ -71.1048, 42.3515 ], [ -71.1047, 42.3515 ], [ -71.1047, 42.3515 ], [ -71.1047, 42.3515 ], [ -71.1047, 42.3515 ], [ -71.1046, 42.3515 ], [ -71.1046, 42.3515 ], [ -71.1046, 42.3515 ], [ -71.1046, 42.3515 ], [ -71.1046, 42.3514 ], [ -71.1045, 42.3514 ], [ -71.1045, 42.3514 ], [ -71.1045, 42.3514 ], [ -71.1045, 42.3514 ], [ -71.1044, 42.3514 ], [ -71.1044, 42.3514 ], [ -71.1044, 42.3514 ], [ -71.1044, 42.3514 ], [ -71.1044, 42.3514 ], [ -71.1044, 42.3514 ], [ -71.1043, 42.3514 ], [ -71.1043, 42.3514 ], [ -71.1043, 42.3514 ], [ -71.1043, 42.3514 ], [ -71.1042, 42.3514 ], [ -71.1042, 42.3514 ], [ -71.1042, 42.3514 ], [ -71.1042, 42.3514 ], [ -71.1042, 42.3514 ], [ -71.1041, 42.3514 ], [ -71.1041, 42.3514 ], [ -71.1041, 42.3514 ], [ -71.1041, 42.3514 ], [ -71.1040, 42.3514 ], [ -71.1040, 42.3514 ], [ -71.1040, 42.3514 ], [ -71.1040, 42.3514 ], [ -71.1040, 42.3514 ], [ -71.1040, 42.3514 ], [ -71.1039, 42.3514 ], [ -71.1039, 42.3514 ], [ -71.1039, 42.3514 ], [ -71.1038, 42.3514 ], [ -71.1038, 42.3514 ], [ -71.1038, 42.3514 ], [ -71.1038, 42.3514 ], [ -71.1038, 42.3514 ], [ -71.1037, 42.3514 ], [ -71.1037, 42.3514 ], [ -71.1037, 42.3514 ], [ -71.1037, 42.3514 ], [ -71.1037, 42.3514 ], [ -71.1037, 42.3514 ], [ -71.1036, 42.3514 ], [ -71.1036, 42.3514 ], [ -71.1036, 42.3514 ], [ -71.1036, 42.3514 ], [ -71.1036, 42.3514 ], [ -71.1036, 42.3514 ], [ -71.1035, 42.3514 ], [ -71.1035, 42.3514 ], [ -71.1035, 42.3514 ], [ -71.1035, 42.3514 ], [ -71.1034, 42.3514 ], [ -71.1034, 42.3514 ], [ -71.1034, 42.3514 ], [ -71.1034, 42.3514 ], [ -71.1033, 42.3514 ], [ -71.1033, 42.3514 ], [ -71.1033, 42.3514 ], [ -71.1033, 42.3514 ], [ -71.1033, 42.3514 ], [ -71.1032, 42.3514 ], [ -71.1032, 42.3514 ], [ -71.1032, 42.3514 ], [ -71.1031, 42.3514 ], [ -71.1031, 42.3514 ], [ -71.1031, 42.3514 ], [ -71.1031, 42.3514 ], [ -71.1030, 42.3514 ], [ -71.1030, 42.3514 ], [ -71.1030, 42.3514 ], [ -71.1030, 42.3514 ], [ -71.1030, 42.3514 ], [ -71.1029, 42.3514 ], [ -71.1029, 42.3514 ], [ -71.1029, 42.3514 ], [ -71.1029, 42.3514 ], [ -71.1029, 42.3514 ], [ -71.1028, 42.3514 ], [ -71.1028, 42.3514 ], [ -71.1028, 42.3514 ], [ -71.1028, 42.3514 ], [ -71.1027, 42.3515 ], [ -71.1027, 42.3515 ], [ -71.1027, 42.3515 ], [ -71.1027, 42.3515 ], [ -71.1027, 42.3515 ], [ -71.1026, 42.3515 ], [ -71.1026, 42.3515 ], [ -71.1026, 42.3515 ], [ -71.1026, 42.3515 ], [ -71.1026, 42.3515 ], [ -71.1026, 42.3515 ], [ -71.1025, 42.3515 ], [ -71.1025, 42.3515 ], [ -71.1025, 42.3515 ], [ -71.1024, 42.3515 ], [ -71.1024, 42.3515 ], [ -71.1024, 42.3515 ], [ -71.1024, 42.3515 ], [ -71.1023, 42.3515 ], [ -71.1023, 42.3515 ], [ -71.1023, 42.3515 ], [ -71.1023, 42.3515 ], [ -71.1023, 42.3515 ], [ -71.1022, 42.3515 ], [ -71.1022, 42.3515 ], [ -71.1022, 42.3515 ], [ -71.1022, 42.3515 ], [ -71.1021, 42.3515 ], [ -71.1021, 42.3515 ], [ -71.1021, 42.3515 ], [ -71.1021, 42.3515 ], [ -71.1021, 42.3515 ], [ -71.1020, 42.3515 ], [ -71.1020, 42.3515 ], [ -71.1020, 42.3515 ], [ -71.1020, 42.3515 ], [ -71.1019, 42.3515 ], [ -71.1019, 42.3515 ], [ -71.1019, 42.3515 ], [ -71.1019, 42.3515 ], [ -71.1018, 42.3515 ], [ -71.1018, 42.3515 ], [ -71.1018, 42.3516 ], [ -71.1018, 42.3516 ], [ -71.1018, 42.3516 ], [ -71.1017, 42.3516 ], [ -71.1017, 42.3516 ], [ -71.1017, 42.3516 ], [ -71.1017, 42.3516 ], [ -71.1017, 42.3516 ], [ -71.1017, 42.3516 ], [ -71.1016, 42.3516 ], [ -71.1016, 42.3516 ], [ -71.1016, 42.3516 ], [ -71.1016, 42.3516 ], [ -71.1015, 42.3516 ], [ -71.1015, 42.3516 ], [ -71.1015, 42.3516 ], [ -71.1015, 42.3516 ], [ -71.1015, 42.3516 ], [ -71.1014, 42.3516 ], [ -71.1014, 42.3516 ], [ -71.1014, 42.3516 ], [ -71.1014, 42.3516 ], [ -71.1013, 42.3516 ], [ -71.1013, 42.3516 ], [ -71.1013, 42.3516 ], [ -71.1012, 42.3516 ], [ -71.1012, 42.3516 ], [ -71.1012, 42.3516 ], [ -71.1012, 42.3516 ], [ -71.1011, 42.3516 ], [ -71.1011, 42.3516 ], [ -71.1011, 42.3516 ], [ -71.1011, 42.3516 ], [ -71.1010, 42.3516 ], [ -71.1010, 42.3516 ], [ -71.1010, 42.3516 ], [ -71.1010, 42.3516 ], [ -71.1009, 42.3516 ], [ -71.1009, 42.3516 ], [ -71.1009, 42.3516 ], [ -71.1009, 42.3516 ], [ -71.1009, 42.3516 ], [ -71.1008, 42.3516 ], [ -71.1008, 42.3516 ], [ -71.1008, 42.3516 ], [ -71.1008, 42.3516 ], [ -71.1008, 42.3516 ], [ -71.1007, 42.3516 ], [ -71.1007, 42.3516 ], [ -71.1007, 42.3516 ], [ -71.1007, 42.3516 ], [ -71.1007, 42.3516 ], [ -71.1006, 42.3516 ], [ -71.1006, 42.3516 ], [ -71.1006, 42.3516 ], [ -71.1006, 42.3516 ], [ -71.1006, 42.3516 ], [ -71.1005, 42.3516 ], [ -71.1005, 42.3516 ], [ -71.1005, 42.3516 ], [ -71.1005, 42.3516 ], [ -71.1005, 42.3516 ], [ -71.1004, 42.3516 ], [ -71.1004, 42.3516 ], [ -71.1004, 42.3516 ], [ -71.1004, 42.3516 ], [ -71.1004, 42.3516 ], [ -71.1003, 42.3516 ], [ -71.1003, 42.3516 ], [ -71.1003, 42.3516 ], [ -71.1003, 42.3516 ], [ -71.1003, 42.3516 ], [ -71.1003, 42.3516 ], [ -71.1002, 42.3516 ], [ -71.1002, 42.3516 ], [ -71.1002, 42.3516 ], [ -71.1002, 42.3516 ], [ -71.1001, 42.3516 ], [ -71.1001, 42.3516 ], [ -71.1001, 42.3516 ], [ -71.1001, 42.3516 ], [ -71.1001, 42.3516 ], [ -71.1000, 42.3516 ], [ -71.1000, 42.3516 ], [ -71.1000, 42.3515 ], [ -71.1000, 42.3515 ], [ -71.1000, 42.3515 ], [ -71.1000, 42.3515 ], [ -71.0999, 42.3515 ], [ -71.0999, 42.3515 ], [ -71.0999, 42.3515 ], [ -71.0998, 42.3515 ], [ -71.0998, 42.3515 ], [ -71.0998, 42.3515 ], [ -71.0998, 42.3515 ], [ -71.0997, 42.3515 ], [ -71.0997, 42.3515 ], [ -71.0997, 42.3515 ], [ -71.0997, 42.3515 ], [ -71.0997, 42.3515 ], [ -71.0997, 42.3515 ], [ -71.0996, 42.3515 ], [ -71.0996, 42.3515 ], [ -71.0996, 42.3515 ], [ -71.0996, 42.3515 ], [ -71.0996, 42.3515 ], [ -71.0995, 42.3515 ], [ -71.0995, 42.3515 ], [ -71.0995, 42.3515 ], [ -71.0995, 42.3515 ], [ -71.0995, 42.3515 ], [ -71.0995, 42.3515 ], [ -71.0994, 42.3514 ], [ -71.0994, 42.3514 ], [ -71.0994, 42.3514 ], [ -71.0994, 42.3514 ], [ -71.0993, 42.3514 ], [ -71.0993, 42.3514 ], [ -71.0993, 42.3514 ], [ -71.0993, 42.3514 ], [ -71.0993, 42.3514 ], [ -71.0993, 42.3514 ], [ -71.0992, 42.3514 ], [ -71.0992, 42.3514 ], [ -71.0992, 42.3514 ], [ -71.0992, 42.3514 ], [ -71.0992, 42.3514 ], [ -71.0991, 42.3514 ], [ -71.0991, 42.3514 ], [ -71.0991, 42.3514 ], [ -71.0991, 42.3514 ], [ -71.0991, 42.3514 ], [ -71.0990, 42.3513 ], [ -71.0990, 42.3513 ], [ -71.0990, 42.3513 ], [ -71.0990, 42.3513 ], [ -71.0989, 42.3513 ], [ -71.0989, 42.3513 ], [ -71.0989, 42.3513 ], [ -71.0989, 42.3513 ], [ -71.0989, 42.3513 ], [ -71.0988, 42.3513 ], [ -71.0988, 42.3513 ], [ -71.0988, 42.3513 ], [ -71.0988, 42.3513 ], [ -71.0988, 42.3513 ], [ -71.0988, 42.3512 ], [ -71.0987, 42.3512 ], [ -71.0987, 42.3512 ], [ -71.0987, 42.3512 ], [ -71.0987, 42.3512 ], [ -71.0987, 42.3512 ], [ -71.0987, 42.3512 ], [ -71.0986, 42.3512 ], [ -71.0986, 42.3512 ], [ -71.0986, 42.3512 ], [ -71.0986, 42.3512 ], [ -71.0986, 42.3512 ], [ -71.0986, 42.3512 ], [ -71.0985, 42.3512 ], [ -71.0985, 42.3512 ], [ -71.0985, 42.3511 ], [ -71.0985, 42.3511 ], [ -71.0985, 42.3511 ], [ -71.0985, 42.3511 ], [ -71.0984, 42.3511 ], [ -71.0984, 42.3511 ], [ -71.0984, 42.3511 ], [ -71.0984, 42.3511 ], [ -71.0984, 42.3511 ], [ -71.0984, 42.3511 ], [ -71.0984, 42.3511 ], [ -71.0984, 42.3511 ], [ -71.0983, 42.3511 ], [ -71.0983, 42.3511 ], [ -71.0983, 42.3511 ], [ -71.0983, 42.3511 ], [ -71.0983, 42.3511 ], [ -71.0982, 42.3511 ], [ -71.0982, 42.3511 ], [ -71.0982, 42.3510 ], [ -71.0982, 42.3510 ], [ -71.0982, 42.3510 ], [ -71.0982, 42.3510 ], [ -71.0982, 42.3510 ], [ -71.0981, 42.3510 ], [ -71.0981, 42.3510 ], [ -71.0981, 42.3510 ], [ -71.0980, 42.3510 ], [ -71.0980, 42.3510 ], [ -71.0980, 42.3510 ], [ -71.0980, 42.3510 ], [ -71.0980, 42.3510 ], [ -71.0979, 42.3510 ], [ -71.0979, 42.3510 ], [ -71.0979, 42.3510 ], [ -71.0979, 42.3510 ], [ -71.0979, 42.3510 ], [ -71.0978, 42.3510 ], [ -71.0978, 42.3510 ], [ -71.0978, 42.3510 ], [ -71.0978, 42.3510 ], [ -71.0978, 42.3510 ], [ -71.0978, 42.3510 ], [ -71.0978, 42.3510 ], [ -71.0977, 42.3510 ], [ -71.0977, 42.3510 ], [ -71.0977, 42.3510 ], [ -71.0976, 42.3510 ], [ -71.0976, 42.3510 ], [ -71.0976, 42.3510 ], [ -71.0976, 42.3510 ], [ -71.0976, 42.3510 ], [ -71.0976, 42.3510 ], [ -71.0975, 42.3510 ], [ -71.0975, 42.3510 ], [ -71.0975, 42.3510 ], [ -71.0974, 42.3510 ], [ -71.0974, 42.3510 ], [ -71.0974, 42.3510 ], [ -71.0974, 42.3510 ], [ -71.0974, 42.3510 ], [ -71.0974, 42.3510 ], [ -71.0973, 42.3510 ], [ -71.0973, 42.3510 ], [ -71.0973, 42.3510 ], [ -71.0973, 42.3510 ], [ -71.0973, 42.3510 ], [ -71.0973, 42.3510 ], [ -71.0972, 42.3510 ], [ -71.0972, 42.3510 ], [ -71.0972, 42.3510 ], [ -71.0972, 42.3510 ], [ -71.0971, 42.3510 ], [ -71.0971, 42.3510 ], [ -71.0971, 42.3510 ], [ -71.0971, 42.3510 ], [ -71.0971, 42.3510 ], [ -71.0970, 42.3510 ], [ -71.0970, 42.3510 ], [ -71.0970, 42.3510 ], [ -71.0970, 42.3510 ], [ -71.0969, 42.3510 ], [ -71.0969, 42.3510 ], [ -71.0969, 42.3510 ], [ -71.0969, 42.3510 ], [ -71.0968, 42.3510 ], [ -71.0968, 42.3510 ], [ -71.0968, 42.3510 ], [ -71.0968, 42.3510 ], [ -71.0967, 42.3510 ], [ -71.0967, 42.3510 ], [ -71.0967, 42.3510 ], [ -71.0967, 42.3510 ], [ -71.0966, 42.3510 ], [ -71.0966, 42.3510 ], [ -71.0966, 42.3510 ], [ -71.0966, 42.3510 ], [ -71.0966, 42.3510 ], [ -71.0966, 42.3510 ], [ -71.0965, 42.3510 ], [ -71.0965, 42.3510 ], [ -71.0965, 42.3510 ], [ -71.0965, 42.3510 ], [ -71.0964, 42.3510 ], [ -71.0964, 42.3510 ], [ -71.0964, 42.3510 ], [ -71.0964, 42.3510 ], [ -71.0963, 42.3510 ], [ -71.0963, 42.3510 ], [ -71.0963, 42.3510 ], [ -71.0963, 42.3510 ], [ -71.0963, 42.3510 ], [ -71.0962, 42.3510 ], [ -71.0962, 42.3510 ], [ -71.0962, 42.3510 ], [ -71.0962, 42.3510 ], [ -71.0962, 42.3510 ], [ -71.0962, 42.3510 ], [ -71.0961, 42.3510 ], [ -71.0961, 42.3510 ], [ -71.0961, 42.3510 ], [ -71.0961, 42.3510 ], [ -71.0961, 42.3510 ], [ -71.0961, 42.3510 ], [ -71.0960, 42.3510 ], [ -71.0960, 42.3510 ], [ -71.0960, 42.3511 ], [ -71.0960, 42.3511 ], [ -71.0960, 42.3511 ], [ -71.0960, 42.3511 ], [ -71.0959, 42.3511 ], [ -71.0959, 42.3511 ], [ -71.0959, 42.3511 ], [ -71.0959, 42.3511 ], [ -71.0958, 42.3511 ], [ -71.0958, 42.3511 ], [ -71.0958, 42.3511 ], [ -71.0957, 42.3511 ], [ -71.0957, 42.3511 ], [ -71.0957, 42.3511 ], [ -71.0956, 42.3511 ], [ -71.0956, 42.3511 ], [ -71.0956, 42.3511 ], [ -71.0955, 42.3511 ], [ -71.0955, 42.3511 ], [ -71.0955, 42.3511 ], [ -71.0955, 42.3511 ], [ -71.0954, 42.3511 ], [ -71.0954, 42.3511 ], [ -71.0954, 42.3511 ], [ -71.0954, 42.3511 ], [ -71.0953, 42.3511 ], [ -71.0953, 42.3511 ], [ -71.0953, 42.3511 ], [ -71.0953, 42.3511 ], [ -71.0953, 42.3511 ], [ -71.0952, 42.3511 ], [ -71.0952, 42.3511 ], [ -71.0952, 42.3511 ], [ -71.0952, 42.3511 ], [ -71.0951, 42.3511 ], [ -71.0951, 42.3511 ], [ -71.0951, 42.3511 ], [ -71.0951, 42.3511 ], [ -71.0950, 42.3511 ], [ -71.0950, 42.3511 ], [ -71.0950, 42.3511 ], [ -71.0949, 42.3511 ], [ -71.0949, 42.3511 ], [ -71.0949, 42.3511 ], [ -71.0949, 42.3511 ], [ -71.0949, 42.3511 ], [ -71.0948, 42.3511 ], [ -71.0948, 42.3511 ], [ -71.0948, 42.3510 ], [ -71.0948, 42.3510 ], [ -71.0948, 42.3510 ], [ -71.0947, 42.3510 ], [ -71.0947, 42.3510 ], [ -71.0947, 42.3510 ], [ -71.0947, 42.3510 ], [ -71.0946, 42.3510 ], [ -71.0946, 42.3510 ], [ -71.0946, 42.3510 ], [ -71.0945, 42.3510 ], [ -71.0945, 42.3510 ], [ -71.0945, 42.3510 ], [ -71.0945, 42.3510 ], [ -71.0944, 42.3510 ], [ -71.0944, 42.3510 ], [ -71.0944, 42.3510 ], [ -71.0943, 42.3510 ], [ -71.0943, 42.3510 ], [ -71.0943, 42.3510 ], [ -71.0943, 42.3510 ], [ -71.0942, 42.3510 ], [ -71.0942, 42.3510 ], [ -71.0942, 42.3510 ], [ -71.0942, 42.3511 ], [ -71.0942, 42.3511 ], [ -71.0942, 42.3511 ], [ -71.0942, 42.3511 ], [ -71.0941, 42.3511 ], [ -71.0941, 42.3511 ], [ -71.0941, 42.3511 ], [ -71.0941, 42.3511 ], [ -71.0940, 42.3511 ], [ -71.0940, 42.3511 ], [ -71.0940, 42.3511 ], [ -71.0939, 42.3511 ], [ -71.0939, 42.3512 ], [ -71.0939, 42.3512 ], [ -71.0939, 42.3512 ], [ -71.0939, 42.3512 ], [ -71.0934, 42.3514 ], [ -71.0934, 42.3514 ], [ -71.0934, 42.3514 ], [ -71.0933, 42.3514 ], [ -71.0933, 42.3514 ], [ -71.0933, 42.3514 ], [ -71.0933, 42.3514 ], [ -71.0933, 42.3514 ], [ -71.0933, 42.3514 ], [ -71.0933, 42.3514 ], [ -71.0933, 42.3514 ], [ -71.0933, 42.3514 ], [ -71.0933, 42.3515 ], [ -71.0933, 42.3515 ], [ -71.0933, 42.3515 ], [ -71.0933, 42.3515 ], [ -71.0932, 42.3515 ], [ -71.0932, 42.3515 ], [ -71.0932, 42.3515 ], [ -71.0932, 42.3515 ], [ -71.0932, 42.3515 ], [ -71.0932, 42.3515 ], [ -71.0931, 42.3515 ], [ -71.0931, 42.3515 ], [ -71.0931, 42.3515 ], [ -71.0931, 42.3515 ], [ -71.0931, 42.3515 ], [ -71.0931, 42.3516 ], [ -71.0931, 42.3516 ], [ -71.0930, 42.3516 ], [ -71.0930, 42.3516 ], [ -71.0930, 42.3516 ], [ -71.0930, 42.3515 ], [ -71.0930, 42.3515 ], [ -71.0930, 42.3515 ], [ -71.0930, 42.3515 ], [ -71.0930, 42.3515 ], [ -71.0930, 42.3515 ], [ -71.0930, 42.3515 ], [ -71.0930, 42.3515 ], [ -71.0930, 42.3515 ], [ -71.0930, 42.3515 ], [ -71.0930, 42.3515 ], [ -71.0930, 42.3515 ], [ -71.0930, 42.3515 ], [ -71.0930, 42.3515 ], [ -71.0930, 42.3515 ], [ -71.0930, 42.3515 ], [ -71.0930, 42.3515 ], [ -71.0930, 42.3515 ], [ -71.0930, 42.3515 ], [ -71.0930, 42.3515 ], [ -71.0930, 42.3515 ], [ -71.0930, 42.3515 ], [ -71.0930, 42.3515 ], [ -71.0930, 42.3515 ], [ -71.0930, 42.3515 ], [ -71.0930, 42.3515 ], [ -71.0930, 42.3515 ], [ -71.0930, 42.3515 ], [ -71.0930, 42.3515 ], [ -71.0930, 42.3515 ], [ -71.0930, 42.3515 ], [ -71.0930, 42.3515 ], [ -71.0930, 42.3515 ], [ -71.0929, 42.3515 ], [ -71.0929, 42.3515 ], [ -71.0928, 42.3515 ], [ -71.0927, 42.3516 ], [ -71.0927, 42.3516 ], [ -71.0926, 42.3516 ], [ -71.0925, 42.3516 ], [ -71.0924, 42.3517 ], [ -71.0923, 42.3517 ], [ -71.0923, 42.3517 ], [ -71.0921, 42.3517 ], [ -71.0921, 42.3518 ], [ -71.0921, 42.3518 ], [ -71.0921, 42.3518 ], [ -71.0921, 42.3518 ], [ -71.0921, 42.3518 ], [ -71.0921, 42.3518 ], [ -71.0921, 42.3518 ], [ -71.0921, 42.3518 ], [ -71.0921, 42.3518 ], [ -71.0921, 42.3518 ], [ -71.0921, 42.3518 ], [ -71.0921, 42.3518 ], [ -71.0921, 42.3518 ], [ -71.0921, 42.3518 ], [ -71.0921, 42.3518 ], [ -71.0921, 42.3518 ], [ -71.0921, 42.3518 ], [ -71.0921, 42.3518 ], [ -71.0921, 42.3518 ], [ -71.0921, 42.3518 ], [ -71.0921, 42.3518 ], [ -71.0921, 42.3518 ], [ -71.0920, 42.3519 ], [ -71.0920, 42.3519 ], [ -71.0920, 42.3519 ], [ -71.0920, 42.3519 ], [ -71.0920, 42.3519 ], [ -71.0920, 42.3519 ], [ -71.0920, 42.3519 ], [ -71.0920, 42.3519 ], [ -71.0919, 42.3519 ], [ -71.0919, 42.3519 ], [ -71.0919, 42.3519 ], [ -71.0919, 42.3519 ], [ -71.0919, 42.3519 ], [ -71.0918, 42.3519 ], [ -71.0918, 42.3519 ], [ -71.0918, 42.3519 ], [ -71.0917, 42.3519 ], [ -71.0917, 42.3519 ], [ -71.0917, 42.3519 ], [ -71.0916, 42.3519 ], [ -71.0916, 42.3519 ], [ -71.0916, 42.3519 ], [ -71.0915, 42.3519 ], [ -71.0915, 42.3519 ], [ -71.0914, 42.3519 ], [ -71.0914, 42.3519 ], [ -71.0913, 42.3520 ], [ -71.0913, 42.3520 ], [ -71.0913, 42.3520 ], [ -71.0913, 42.3520 ], [ -71.0912, 42.3520 ], [ -71.0912, 42.3520 ], [ -71.0911, 42.3520 ], [ -71.0911, 42.3520 ], [ -71.0911, 42.3520 ], [ -71.0911, 42.3520 ], [ -71.0910, 42.3520 ], [ -71.0910, 42.3520 ], [ -71.0909, 42.3520 ], [ -71.0909, 42.3520 ], [ -71.0908, 42.3520 ], [ -71.0908, 42.3520 ], [ -71.0908, 42.3520 ], [ -71.0907, 42.3520 ], [ -71.0907, 42.3520 ], [ -71.0907, 42.3520 ], [ -71.0907, 42.3520 ], [ -71.0907, 42.3520 ], [ -71.0906, 42.3520 ], [ -71.0906, 42.3520 ], [ -71.0906, 42.3520 ], [ -71.0905, 42.3520 ], [ -71.0905, 42.3520 ], [ -71.0904, 42.3520 ], [ -71.0904, 42.3520 ], [ -71.0904, 42.3520 ], [ -71.0903, 42.3520 ], [ -71.0903, 42.3520 ], [ -71.0902, 42.3520 ], [ -71.0902, 42.3520 ], [ -71.0902, 42.3520 ], [ -71.0902, 42.3520 ], [ -71.0901, 42.3521 ], [ -71.0901, 42.3521 ], [ -71.0899, 42.3517 ], [ -71.0897, 42.3513 ], [ -71.0894, 42.3508 ], [ -71.0916, 42.3502 ], [ -71.0916, 42.3479 ], [ -71.0881, 42.3480 ], [ -71.0879, 42.3477 ], [ -71.0877, 42.3472 ], [ -71.0877, 42.3472 ], [ -71.0877, 42.3472 ], [ -71.0875, 42.3469 ], [ -71.0874, 42.3466 ], [ -71.0873, 42.3464 ], [ -71.0873, 42.3464 ], [ -71.0872, 42.3463 ], [ -71.0872, 42.3463 ], [ -71.0872, 42.3463 ], [ -71.0871, 42.3461 ], [ -71.0870, 42.3459 ], [ -71.0870, 42.3458 ], [ -71.0870, 42.3458 ], [ -71.0869, 42.3456 ], [ -71.0868, 42.3454 ], [ -71.0868, 42.3454 ], [ -71.0868, 42.3454 ], [ -71.0868, 42.3454 ], [ -71.0868, 42.3454 ], [ -71.0868, 42.3453 ], [ -71.0868, 42.3453 ], [ -71.0867, 42.3453 ], [ -71.0867, 42.3453 ], [ -71.0867, 42.3453 ], [ -71.0866, 42.3451 ], [ -71.0866, 42.3450 ], [ -71.0866, 42.3450 ], [ -71.0865, 42.3449 ], [ -71.0861, 42.3441 ], [ -71.0861, 42.3441 ], [ -71.0861, 42.3441 ], [ -71.0861, 42.3441 ], [ -71.0861, 42.3441 ], [ -71.0861, 42.3441 ], [ -71.0861, 42.3440 ], [ -71.0861, 42.3440 ], [ -71.0861, 42.3439 ], [ -71.0860, 42.3437 ], [ -71.0858, 42.3434 ], [ -71.0858, 42.3434 ], [ -71.0858, 42.3434 ], [ -71.0857, 42.3433 ], [ -71.0857, 42.3433 ], [ -71.0857, 42.3433 ], [ -71.0856, 42.3432 ], [ -71.0850, 42.3428 ], [ -71.0850, 42.3428 ], [ -71.0849, 42.3427 ], [ -71.0849, 42.3427 ], [ -71.0849, 42.3427 ], [ -71.0848, 42.3427 ], [ -71.0840, 42.3421 ], [ -71.0834, 42.3417 ], [ -71.0833, 42.3416 ], [ -71.0833, 42.3416 ], [ -71.0834, 42.3415 ], [ -71.0836, 42.3413 ], [ -71.0848, 42.3404 ], [ -71.0848, 42.3403 ], [ -71.0848, 42.3403 ], [ -71.0848, 42.3403 ], [ -71.0848, 42.3403 ], [ -71.0848, 42.3403 ], [ -71.0848, 42.3403 ], [ -71.0848, 42.3403 ], [ -71.0849, 42.3403 ], [ -71.0849, 42.3403 ], [ -71.0849, 42.3403 ], [ -71.0849, 42.3402 ], [ -71.0850, 42.3401 ], [ -71.0850, 42.3401 ], [ -71.0851, 42.3401 ], [ -71.0851, 42.3401 ], [ -71.0851, 42.3401 ], [ -71.0851, 42.3400 ], [ -71.0851, 42.3400 ], [ -71.0853, 42.3399 ], [ -71.0853, 42.3399 ], [ -71.0854, 42.3398 ], [ -71.0854, 42.3398 ], [ -71.0854, 42.3398 ], [ -71.0855, 42.3397 ], [ -71.0855, 42.3397 ], [ -71.0855, 42.3397 ], [ -71.0855, 42.3397 ], [ -71.0857, 42.3396 ], [ -71.0857, 42.3395 ], [ -71.0858, 42.3394 ], [ -71.0858, 42.3394 ], [ -71.0860, 42.3393 ], [ -71.0860, 42.3393 ], [ -71.0862, 42.3391 ], [ -71.0865, 42.3389 ], [ -71.0865, 42.3389 ], [ -71.0866, 42.3388 ], [ -71.0870, 42.3385 ], [ -71.0876, 42.3380 ], [ -71.0876, 42.3380 ], [ -71.0895, 42.3364 ], [ -71.0900, 42.3360 ], [ -71.0901, 42.3359 ], [ -71.0901, 42.3359 ], [ -71.0902, 42.3359 ], [ -71.0903, 42.3358 ], [ -71.0903, 42.3358 ], [ -71.0903, 42.3358 ], [ -71.0904, 42.3357 ], [ -71.0904, 42.3357 ], [ -71.0905, 42.3357 ], [ -71.0905, 42.3357 ], [ -71.0905, 42.3357 ], [ -71.0906, 42.3357 ], [ -71.0906, 42.3357 ], [ -71.0906, 42.3357 ], [ -71.0906, 42.3357 ], [ -71.0910, 42.3359 ], [ -71.0911, 42.3359 ], [ -71.0911, 42.3359 ], [ -71.0911, 42.3359 ], [ -71.0912, 42.3360 ], [ -71.0913, 42.3360 ], [ -71.0913, 42.3360 ], [ -71.0913, 42.3360 ], [ -71.0918, 42.3362 ], [ -71.0920, 42.3363 ], [ -71.0923, 42.3364 ], [ -71.0923, 42.3364 ], [ -71.0925, 42.3365 ], [ -71.0926, 42.3365 ], [ -71.0926, 42.3365 ], [ -71.0926, 42.3365 ], [ -71.0928, 42.3366 ], [ -71.0929, 42.3366 ], [ -71.0929, 42.3366 ], [ -71.0929, 42.3366 ], [ -71.0930, 42.3367 ], [ -71.0931, 42.3367 ], [ -71.0931, 42.3367 ], [ -71.0931, 42.3367 ], [ -71.0932, 42.3367 ], [ -71.0933, 42.3368 ], [ -71.0933, 42.3368 ], [ -71.0936, 42.3369 ], [ -71.0936, 42.3369 ], [ -71.0955, 42.3376 ], [ -71.0955, 42.3376 ], [ -71.0955, 42.3376 ], [ -71.0981, 42.3367 ], [ -71.0983, 42.3371 ], [ -71.0982, 42.3372 ], [ -71.0982, 42.3372 ], [ -71.0982, 42.3372 ], [ -71.0982, 42.3372 ], [ -71.0982, 42.3372 ], [ -71.0980, 42.3374 ], [ -71.0978, 42.3376 ], [ -71.0976, 42.3378 ], [ -71.0976, 42.3378 ], [ -71.0975, 42.3379 ], [ -71.0974, 42.3380 ], [ -71.0973, 42.3381 ], [ -71.0973, 42.3382 ], [ -71.0972, 42.3383 ], [ -71.0972, 42.3383 ], [ -71.0972, 42.3383 ], [ -71.0972, 42.3383 ], [ -71.0972, 42.3383 ], [ -71.0972, 42.3383 ], [ -71.0972, 42.3384 ], [ -71.0972, 42.3384 ], [ -71.0972, 42.3384 ], [ -71.0973, 42.3384 ], [ -71.0973, 42.3384 ], [ -71.0973, 42.3384 ], [ -71.0973, 42.3384 ], [ -71.0981, 42.3387 ], [ -71.0982, 42.3388 ], [ -71.0984, 42.3388 ], [ -71.0987, 42.3389 ], [ -71.0989, 42.3390 ], [ -71.0991, 42.3391 ], [ -71.0993, 42.3393 ], [ -71.0995, 42.3394 ], [ -71.0997, 42.3395 ], [ -71.1001, 42.3398 ], [ -71.1005, 42.3402 ], [ -71.1006, 42.3402 ], [ -71.1008, 42.3403 ], [ -71.1009, 42.3405 ], [ -71.1014, 42.3409 ], [ -71.1018, 42.3412 ], [ -71.1019, 42.3414 ], [ -71.1023, 42.3418 ], [ -71.1025, 42.3420 ], [ -71.1031, 42.3426 ], [ -71.1032, 42.3427 ], [ -71.1035, 42.3429 ], [ -71.1036, 42.3430 ], [ -71.1037, 42.3431 ], [ -71.1039, 42.3432 ], [ -71.1040, 42.3433 ], [ -71.1055, 42.3438 ], [ -71.1056, 42.3441 ], [ -71.1071, 42.3470 ], [ -71.1065, 42.3497 ], [ -71.1109, 42.3503 ], [ -71.1109, 42.3503 ], [ -71.1108, 42.3507 ], [ -71.1108, 42.3511 ], [ -71.1107, 42.3513 ], [ -71.1107, 42.3513 ], [ -71.1107, 42.3513 ], [ -71.1107, 42.3513 ], [ -71.1107, 42.3513 ], [ -71.1107, 42.3514 ], [ -71.1107, 42.3516 ], [ -71.1107, 42.3517 ], [ -71.1107, 42.3518 ], [ -71.1107, 42.3518 ], [ -71.1106, 42.3519 ], [ -71.1106, 42.3519 ], [ -71.1106, 42.3521 ], [ -71.1106, 42.3522 ], [ -71.1105, 42.3522 ], [ -71.1105, 42.3521 ], [ -71.1105, 42.3521 ], [ -71.1104, 42.3521 ], [ -71.1104, 42.3521 ], [ -71.1104, 42.3521 ], [ -71.1104, 42.3521 ], [ -71.1104, 42.3521 ], [ -71.1104, 42.3521 ], [ -71.1104, 42.3521 ], [ -71.1103, 42.3521 ], [ -71.1103, 42.3521 ], [ -71.1102, 42.3520 ], [ -71.1102, 42.3520 ], [ -71.1102, 42.3520 ], [ -71.1101, 42.3520 ] ] ] } }, + { "type": "Feature", "properties": { "Name": "Brighton", "density": 9.7400 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -71.1351, 42.3460 ], [ -71.1352, 42.3459 ], [ -71.1399, 42.3421 ], [ -71.1400, 42.3420 ], [ -71.1410, 42.3412 ], [ -71.1413, 42.3410 ], [ -71.1414, 42.3408 ], [ -71.1416, 42.3406 ], [ -71.1417, 42.3403 ], [ -71.1419, 42.3400 ], [ -71.1423, 42.3400 ], [ -71.1442, 42.3400 ], [ -71.1452, 42.3393 ], [ -71.1461, 42.3386 ], [ -71.1462, 42.3385 ], [ -71.1466, 42.3385 ], [ -71.1464, 42.3381 ], [ -71.1463, 42.3380 ], [ -71.1461, 42.3374 ], [ -71.1473, 42.3371 ], [ -71.1487, 42.3368 ], [ -71.1482, 42.3358 ], [ -71.1500, 42.3353 ], [ -71.1501, 42.3352 ], [ -71.1504, 42.3349 ], [ -71.1498, 42.3346 ], [ -71.1568, 42.3302 ], [ -71.1570, 42.3303 ], [ -71.1586, 42.3319 ], [ -71.1591, 42.3324 ], [ -71.1596, 42.3328 ], [ -71.1600, 42.3331 ], [ -71.1608, 42.3334 ], [ -71.1614, 42.3337 ], [ -71.1619, 42.3338 ], [ -71.1624, 42.3338 ], [ -71.1627, 42.3338 ], [ -71.1630, 42.3338 ], [ -71.1653, 42.3336 ], [ -71.1675, 42.3333 ], [ -71.1681, 42.3347 ], [ -71.1684, 42.3350 ], [ -71.1685, 42.3351 ], [ -71.1688, 42.3358 ], [ -71.1688, 42.3363 ], [ -71.1691, 42.3373 ], [ -71.1692, 42.3380 ], [ -71.1689, 42.3384 ], [ -71.1686, 42.3386 ], [ -71.1684, 42.3387 ], [ -71.1668, 42.3392 ], [ -71.1666, 42.3401 ], [ -71.1748, 42.3503 ], [ -71.1739, 42.3534 ], [ -71.1686, 42.3589 ], [ -71.1684, 42.3591 ], [ -71.1683, 42.3591 ], [ -71.1683, 42.3591 ], [ -71.1683, 42.3591 ], [ -71.1682, 42.3591 ], [ -71.1682, 42.3591 ], [ -71.1682, 42.3592 ], [ -71.1682, 42.3592 ], [ -71.1682, 42.3592 ], [ -71.1682, 42.3592 ], [ -71.1682, 42.3592 ], [ -71.1682, 42.3592 ], [ -71.1682, 42.3592 ], [ -71.1681, 42.3592 ], [ -71.1681, 42.3592 ], [ -71.1681, 42.3592 ], [ -71.1681, 42.3592 ], [ -71.1681, 42.3592 ], [ -71.1681, 42.3592 ], [ -71.1681, 42.3592 ], [ -71.1681, 42.3592 ], [ -71.1681, 42.3592 ], [ -71.1680, 42.3592 ], [ -71.1680, 42.3592 ], [ -71.1680, 42.3592 ], [ -71.1679, 42.3592 ], [ -71.1679, 42.3592 ], [ -71.1679, 42.3592 ], [ -71.1678, 42.3593 ], [ -71.1678, 42.3593 ], [ -71.1678, 42.3593 ], [ -71.1678, 42.3593 ], [ -71.1677, 42.3593 ], [ -71.1677, 42.3593 ], [ -71.1677, 42.3593 ], [ -71.1676, 42.3594 ], [ -71.1676, 42.3594 ], [ -71.1676, 42.3594 ], [ -71.1676, 42.3594 ], [ -71.1675, 42.3594 ], [ -71.1675, 42.3594 ], [ -71.1675, 42.3594 ], [ -71.1675, 42.3594 ], [ -71.1674, 42.3594 ], [ -71.1674, 42.3594 ], [ -71.1674, 42.3594 ], [ -71.1674, 42.3594 ], [ -71.1674, 42.3594 ], [ -71.1673, 42.3594 ], [ -71.1673, 42.3594 ], [ -71.1673, 42.3594 ], [ -71.1673, 42.3594 ], [ -71.1673, 42.3594 ], [ -71.1673, 42.3594 ], [ -71.1672, 42.3594 ], [ -71.1672, 42.3594 ], [ -71.1672, 42.3594 ], [ -71.1672, 42.3594 ], [ -71.1672, 42.3594 ], [ -71.1672, 42.3594 ], [ -71.1672, 42.3594 ], [ -71.1671, 42.3594 ], [ -71.1671, 42.3594 ], [ -71.1671, 42.3594 ], [ -71.1671, 42.3594 ], [ -71.1671, 42.3595 ], [ -71.1671, 42.3595 ], [ -71.1670, 42.3595 ], [ -71.1670, 42.3595 ], [ -71.1670, 42.3595 ], [ -71.1670, 42.3595 ], [ -71.1670, 42.3595 ], [ -71.1670, 42.3595 ], [ -71.1669, 42.3595 ], [ -71.1669, 42.3595 ], [ -71.1669, 42.3595 ], [ -71.1668, 42.3595 ], [ -71.1668, 42.3595 ], [ -71.1668, 42.3595 ], [ -71.1668, 42.3595 ], [ -71.1667, 42.3595 ], [ -71.1667, 42.3595 ], [ -71.1667, 42.3595 ], [ -71.1666, 42.3595 ], [ -71.1666, 42.3595 ], [ -71.1666, 42.3595 ], [ -71.1666, 42.3595 ], [ -71.1665, 42.3595 ], [ -71.1665, 42.3595 ], [ -71.1665, 42.3595 ], [ -71.1665, 42.3595 ], [ -71.1665, 42.3595 ], [ -71.1665, 42.3595 ], [ -71.1665, 42.3595 ], [ -71.1665, 42.3595 ], [ -71.1665, 42.3595 ], [ -71.1665, 42.3595 ], [ -71.1665, 42.3595 ], [ -71.1665, 42.3595 ], [ -71.1665, 42.3595 ], [ -71.1665, 42.3595 ], [ -71.1665, 42.3595 ], [ -71.1664, 42.3595 ], [ -71.1664, 42.3595 ], [ -71.1664, 42.3595 ], [ -71.1664, 42.3595 ], [ -71.1664, 42.3595 ], [ -71.1664, 42.3595 ], [ -71.1664, 42.3595 ], [ -71.1664, 42.3595 ], [ -71.1664, 42.3595 ], [ -71.1664, 42.3595 ], [ -71.1663, 42.3595 ], [ -71.1663, 42.3595 ], [ -71.1663, 42.3595 ], [ -71.1663, 42.3595 ], [ -71.1663, 42.3595 ], [ -71.1663, 42.3595 ], [ -71.1663, 42.3595 ], [ -71.1663, 42.3595 ], [ -71.1663, 42.3595 ], [ -71.1663, 42.3595 ], [ -71.1663, 42.3595 ], [ -71.1663, 42.3595 ], [ -71.1663, 42.3595 ], [ -71.1663, 42.3595 ], [ -71.1663, 42.3595 ], [ -71.1663, 42.3595 ], [ -71.1663, 42.3595 ], [ -71.1663, 42.3595 ], [ -71.1663, 42.3595 ], [ -71.1663, 42.3595 ], [ -71.1663, 42.3595 ], [ -71.1663, 42.3595 ], [ -71.1663, 42.3595 ], [ -71.1663, 42.3594 ], [ -71.1663, 42.3594 ], [ -71.1663, 42.3594 ], [ -71.1663, 42.3594 ], [ -71.1662, 42.3594 ], [ -71.1662, 42.3594 ], [ -71.1662, 42.3594 ], [ -71.1662, 42.3594 ], [ -71.1662, 42.3594 ], [ -71.1662, 42.3594 ], [ -71.1662, 42.3594 ], [ -71.1662, 42.3594 ], [ -71.1662, 42.3594 ], [ -71.1662, 42.3594 ], [ -71.1662, 42.3594 ], [ -71.1662, 42.3594 ], [ -71.1662, 42.3594 ], [ -71.1662, 42.3594 ], [ -71.1662, 42.3594 ], [ -71.1662, 42.3594 ], [ -71.1662, 42.3594 ], [ -71.1662, 42.3594 ], [ -71.1662, 42.3594 ], [ -71.1662, 42.3594 ], [ -71.1662, 42.3594 ], [ -71.1661, 42.3593 ], [ -71.1661, 42.3593 ], [ -71.1661, 42.3593 ], [ -71.1661, 42.3593 ], [ -71.1661, 42.3593 ], [ -71.1661, 42.3593 ], [ -71.1661, 42.3593 ], [ -71.1660, 42.3593 ], [ -71.1660, 42.3592 ], [ -71.1660, 42.3592 ], [ -71.1660, 42.3592 ], [ -71.1660, 42.3592 ], [ -71.1660, 42.3592 ], [ -71.1659, 42.3592 ], [ -71.1659, 42.3592 ], [ -71.1659, 42.3592 ], [ -71.1659, 42.3592 ], [ -71.1659, 42.3591 ], [ -71.1659, 42.3591 ], [ -71.1659, 42.3591 ], [ -71.1659, 42.3591 ], [ -71.1659, 42.3591 ], [ -71.1659, 42.3591 ], [ -71.1658, 42.3591 ], [ -71.1658, 42.3591 ], [ -71.1658, 42.3591 ], [ -71.1658, 42.3591 ], [ -71.1658, 42.3591 ], [ -71.1658, 42.3591 ], [ -71.1657, 42.3590 ], [ -71.1657, 42.3590 ], [ -71.1657, 42.3590 ], [ -71.1657, 42.3590 ], [ -71.1657, 42.3590 ], [ -71.1657, 42.3590 ], [ -71.1657, 42.3590 ], [ -71.1657, 42.3590 ], [ -71.1656, 42.3590 ], [ -71.1656, 42.3590 ], [ -71.1656, 42.3590 ], [ -71.1656, 42.3589 ], [ -71.1656, 42.3589 ], [ -71.1655, 42.3589 ], [ -71.1655, 42.3589 ], [ -71.1655, 42.3589 ], [ -71.1655, 42.3589 ], [ -71.1655, 42.3589 ], [ -71.1655, 42.3589 ], [ -71.1655, 42.3589 ], [ -71.1655, 42.3589 ], [ -71.1655, 42.3589 ], [ -71.1654, 42.3588 ], [ -71.1654, 42.3588 ], [ -71.1654, 42.3588 ], [ -71.1654, 42.3588 ], [ -71.1654, 42.3588 ], [ -71.1654, 42.3588 ], [ -71.1654, 42.3588 ], [ -71.1654, 42.3588 ], [ -71.1654, 42.3588 ], [ -71.1654, 42.3587 ], [ -71.1653, 42.3587 ], [ -71.1653, 42.3587 ], [ -71.1653, 42.3587 ], [ -71.1653, 42.3587 ], [ -71.1653, 42.3587 ], [ -71.1653, 42.3587 ], [ -71.1653, 42.3587 ], [ -71.1653, 42.3587 ], [ -71.1653, 42.3587 ], [ -71.1653, 42.3587 ], [ -71.1653, 42.3587 ], [ -71.1652, 42.3587 ], [ -71.1652, 42.3586 ], [ -71.1652, 42.3586 ], [ -71.1652, 42.3586 ], [ -71.1652, 42.3586 ], [ -71.1652, 42.3586 ], [ -71.1651, 42.3586 ], [ -71.1651, 42.3586 ], [ -71.1651, 42.3585 ], [ -71.1650, 42.3585 ], [ -71.1650, 42.3585 ], [ -71.1650, 42.3585 ], [ -71.1650, 42.3585 ], [ -71.1650, 42.3585 ], [ -71.1649, 42.3585 ], [ -71.1649, 42.3585 ], [ -71.1649, 42.3585 ], [ -71.1649, 42.3585 ], [ -71.1649, 42.3585 ], [ -71.1649, 42.3584 ], [ -71.1649, 42.3584 ], [ -71.1649, 42.3584 ], [ -71.1649, 42.3584 ], [ -71.1649, 42.3584 ], [ -71.1648, 42.3584 ], [ -71.1648, 42.3584 ], [ -71.1648, 42.3584 ], [ -71.1648, 42.3584 ], [ -71.1648, 42.3584 ], [ -71.1648, 42.3584 ], [ -71.1648, 42.3583 ], [ -71.1648, 42.3583 ], [ -71.1648, 42.3583 ], [ -71.1647, 42.3583 ], [ -71.1647, 42.3583 ], [ -71.1647, 42.3583 ], [ -71.1647, 42.3583 ], [ -71.1647, 42.3583 ], [ -71.1646, 42.3583 ], [ -71.1646, 42.3583 ], [ -71.1646, 42.3583 ], [ -71.1646, 42.3583 ], [ -71.1646, 42.3582 ], [ -71.1646, 42.3582 ], [ -71.1646, 42.3582 ], [ -71.1646, 42.3582 ], [ -71.1646, 42.3582 ], [ -71.1646, 42.3582 ], [ -71.1646, 42.3582 ], [ -71.1645, 42.3582 ], [ -71.1645, 42.3582 ], [ -71.1645, 42.3582 ], [ -71.1645, 42.3582 ], [ -71.1645, 42.3582 ], [ -71.1645, 42.3582 ], [ -71.1645, 42.3582 ], [ -71.1645, 42.3582 ], [ -71.1645, 42.3582 ], [ -71.1645, 42.3582 ], [ -71.1644, 42.3582 ], [ -71.1644, 42.3581 ], [ -71.1644, 42.3581 ], [ -71.1644, 42.3581 ], [ -71.1643, 42.3581 ], [ -71.1643, 42.3581 ], [ -71.1643, 42.3581 ], [ -71.1643, 42.3581 ], [ -71.1642, 42.3581 ], [ -71.1642, 42.3581 ], [ -71.1642, 42.3581 ], [ -71.1642, 42.3581 ], [ -71.1642, 42.3581 ], [ -71.1642, 42.3581 ], [ -71.1641, 42.3581 ], [ -71.1641, 42.3581 ], [ -71.1640, 42.3581 ], [ -71.1640, 42.3581 ], [ -71.1640, 42.3581 ], [ -71.1640, 42.3581 ], [ -71.1640, 42.3581 ], [ -71.1640, 42.3581 ], [ -71.1639, 42.3581 ], [ -71.1639, 42.3581 ], [ -71.1639, 42.3581 ], [ -71.1639, 42.3581 ], [ -71.1639, 42.3581 ], [ -71.1639, 42.3581 ], [ -71.1639, 42.3581 ], [ -71.1639, 42.3581 ], [ -71.1638, 42.3581 ], [ -71.1638, 42.3581 ], [ -71.1638, 42.3581 ], [ -71.1638, 42.3581 ], [ -71.1637, 42.3581 ], [ -71.1637, 42.3581 ], [ -71.1637, 42.3581 ], [ -71.1636, 42.3581 ], [ -71.1636, 42.3581 ], [ -71.1636, 42.3581 ], [ -71.1636, 42.3581 ], [ -71.1636, 42.3581 ], [ -71.1636, 42.3581 ], [ -71.1636, 42.3581 ], [ -71.1636, 42.3581 ], [ -71.1636, 42.3581 ], [ -71.1636, 42.3580 ], [ -71.1635, 42.3580 ], [ -71.1635, 42.3580 ], [ -71.1635, 42.3580 ], [ -71.1635, 42.3580 ], [ -71.1635, 42.3580 ], [ -71.1634, 42.3580 ], [ -71.1634, 42.3580 ], [ -71.1634, 42.3580 ], [ -71.1634, 42.3580 ], [ -71.1634, 42.3580 ], [ -71.1633, 42.3580 ], [ -71.1632, 42.3580 ], [ -71.1631, 42.3580 ], [ -71.1631, 42.3580 ], [ -71.1631, 42.3580 ], [ -71.1631, 42.3580 ], [ -71.1631, 42.3580 ], [ -71.1631, 42.3580 ], [ -71.1630, 42.3580 ], [ -71.1630, 42.3580 ], [ -71.1630, 42.3580 ], [ -71.1630, 42.3580 ], [ -71.1629, 42.3580 ], [ -71.1629, 42.3581 ], [ -71.1629, 42.3581 ], [ -71.1628, 42.3581 ], [ -71.1628, 42.3581 ], [ -71.1628, 42.3581 ], [ -71.1628, 42.3581 ], [ -71.1627, 42.3581 ], [ -71.1627, 42.3581 ], [ -71.1627, 42.3581 ], [ -71.1627, 42.3581 ], [ -71.1627, 42.3581 ], [ -71.1627, 42.3581 ], [ -71.1627, 42.3581 ], [ -71.1627, 42.3581 ], [ -71.1626, 42.3581 ], [ -71.1626, 42.3581 ], [ -71.1626, 42.3581 ], [ -71.1626, 42.3581 ], [ -71.1626, 42.3581 ], [ -71.1626, 42.3581 ], [ -71.1626, 42.3581 ], [ -71.1626, 42.3581 ], [ -71.1625, 42.3581 ], [ -71.1625, 42.3581 ], [ -71.1625, 42.3581 ], [ -71.1625, 42.3581 ], [ -71.1625, 42.3581 ], [ -71.1625, 42.3581 ], [ -71.1625, 42.3581 ], [ -71.1624, 42.3581 ], [ -71.1624, 42.3581 ], [ -71.1624, 42.3581 ], [ -71.1623, 42.3581 ], [ -71.1623, 42.3581 ], [ -71.1622, 42.3581 ], [ -71.1622, 42.3581 ], [ -71.1622, 42.3581 ], [ -71.1622, 42.3581 ], [ -71.1622, 42.3581 ], [ -71.1621, 42.3581 ], [ -71.1621, 42.3581 ], [ -71.1621, 42.3581 ], [ -71.1621, 42.3581 ], [ -71.1621, 42.3581 ], [ -71.1621, 42.3581 ], [ -71.1621, 42.3581 ], [ -71.1621, 42.3581 ], [ -71.1621, 42.3581 ], [ -71.1621, 42.3581 ], [ -71.1621, 42.3581 ], [ -71.1621, 42.3581 ], [ -71.1621, 42.3581 ], [ -71.1621, 42.3581 ], [ -71.1621, 42.3581 ], [ -71.1621, 42.3581 ], [ -71.1621, 42.3581 ], [ -71.1621, 42.3581 ], [ -71.1621, 42.3581 ], [ -71.1621, 42.3581 ], [ -71.1621, 42.3581 ], [ -71.1621, 42.3581 ], [ -71.1621, 42.3581 ], [ -71.1621, 42.3581 ], [ -71.1621, 42.3581 ], [ -71.1621, 42.3581 ], [ -71.1621, 42.3581 ], [ -71.1621, 42.3581 ], [ -71.1621, 42.3581 ], [ -71.1621, 42.3581 ], [ -71.1620, 42.3581 ], [ -71.1620, 42.3581 ], [ -71.1620, 42.3581 ], [ -71.1620, 42.3581 ], [ -71.1620, 42.3581 ], [ -71.1620, 42.3581 ], [ -71.1620, 42.3581 ], [ -71.1620, 42.3581 ], [ -71.1620, 42.3581 ], [ -71.1620, 42.3581 ], [ -71.1620, 42.3581 ], [ -71.1620, 42.3581 ], [ -71.1620, 42.3582 ], [ -71.1620, 42.3582 ], [ -71.1620, 42.3582 ], [ -71.1620, 42.3582 ], [ -71.1620, 42.3582 ], [ -71.1619, 42.3582 ], [ -71.1617, 42.3582 ], [ -71.1616, 42.3583 ], [ -71.1616, 42.3583 ], [ -71.1615, 42.3584 ], [ -71.1615, 42.3584 ], [ -71.1615, 42.3584 ], [ -71.1615, 42.3584 ], [ -71.1615, 42.3584 ], [ -71.1614, 42.3585 ], [ -71.1614, 42.3585 ], [ -71.1614, 42.3585 ], [ -71.1614, 42.3585 ], [ -71.1614, 42.3586 ], [ -71.1613, 42.3586 ], [ -71.1613, 42.3586 ], [ -71.1613, 42.3586 ], [ -71.1613, 42.3586 ], [ -71.1613, 42.3586 ], [ -71.1613, 42.3586 ], [ -71.1613, 42.3586 ], [ -71.1613, 42.3587 ], [ -71.1613, 42.3587 ], [ -71.1613, 42.3587 ], [ -71.1613, 42.3587 ], [ -71.1614, 42.3588 ], [ -71.1614, 42.3588 ], [ -71.1612, 42.3589 ], [ -71.1612, 42.3589 ], [ -71.1611, 42.3589 ], [ -71.1611, 42.3589 ], [ -71.1610, 42.3588 ], [ -71.1609, 42.3589 ], [ -71.1609, 42.3589 ], [ -71.1608, 42.3589 ], [ -71.1608, 42.3589 ], [ -71.1608, 42.3589 ], [ -71.1607, 42.3589 ], [ -71.1607, 42.3590 ], [ -71.1606, 42.3590 ], [ -71.1606, 42.3590 ], [ -71.1606, 42.3590 ], [ -71.1606, 42.3590 ], [ -71.1606, 42.3590 ], [ -71.1606, 42.3590 ], [ -71.1605, 42.3590 ], [ -71.1605, 42.3590 ], [ -71.1605, 42.3591 ], [ -71.1605, 42.3591 ], [ -71.1605, 42.3591 ], [ -71.1605, 42.3591 ], [ -71.1605, 42.3591 ], [ -71.1605, 42.3591 ], [ -71.1605, 42.3591 ], [ -71.1605, 42.3591 ], [ -71.1604, 42.3591 ], [ -71.1604, 42.3591 ], [ -71.1604, 42.3591 ], [ -71.1604, 42.3591 ], [ -71.1603, 42.3591 ], [ -71.1603, 42.3591 ], [ -71.1602, 42.3591 ], [ -71.1601, 42.3592 ], [ -71.1601, 42.3592 ], [ -71.1600, 42.3592 ], [ -71.1600, 42.3592 ], [ -71.1600, 42.3592 ], [ -71.1599, 42.3592 ], [ -71.1599, 42.3592 ], [ -71.1599, 42.3593 ], [ -71.1599, 42.3593 ], [ -71.1599, 42.3593 ], [ -71.1599, 42.3593 ], [ -71.1599, 42.3593 ], [ -71.1598, 42.3593 ], [ -71.1598, 42.3593 ], [ -71.1598, 42.3593 ], [ -71.1598, 42.3593 ], [ -71.1598, 42.3593 ], [ -71.1598, 42.3593 ], [ -71.1598, 42.3593 ], [ -71.1598, 42.3593 ], [ -71.1598, 42.3594 ], [ -71.1598, 42.3594 ], [ -71.1597, 42.3594 ], [ -71.1596, 42.3594 ], [ -71.1595, 42.3594 ], [ -71.1595, 42.3594 ], [ -71.1595, 42.3594 ], [ -71.1595, 42.3594 ], [ -71.1594, 42.3594 ], [ -71.1594, 42.3594 ], [ -71.1594, 42.3594 ], [ -71.1593, 42.3594 ], [ -71.1593, 42.3595 ], [ -71.1593, 42.3595 ], [ -71.1593, 42.3595 ], [ -71.1593, 42.3595 ], [ -71.1593, 42.3595 ], [ -71.1593, 42.3595 ], [ -71.1592, 42.3595 ], [ -71.1592, 42.3595 ], [ -71.1592, 42.3595 ], [ -71.1592, 42.3595 ], [ -71.1592, 42.3595 ], [ -71.1592, 42.3595 ], [ -71.1592, 42.3595 ], [ -71.1592, 42.3595 ], [ -71.1592, 42.3595 ], [ -71.1592, 42.3595 ], [ -71.1592, 42.3595 ], [ -71.1591, 42.3595 ], [ -71.1591, 42.3595 ], [ -71.1591, 42.3595 ], [ -71.1591, 42.3595 ], [ -71.1591, 42.3595 ], [ -71.1591, 42.3595 ], [ -71.1591, 42.3595 ], [ -71.1591, 42.3595 ], [ -71.1590, 42.3595 ], [ -71.1590, 42.3595 ], [ -71.1590, 42.3595 ], [ -71.1590, 42.3595 ], [ -71.1590, 42.3595 ], [ -71.1590, 42.3595 ], [ -71.1590, 42.3595 ], [ -71.1590, 42.3595 ], [ -71.1590, 42.3595 ], [ -71.1590, 42.3595 ], [ -71.1589, 42.3595 ], [ -71.1589, 42.3595 ], [ -71.1589, 42.3595 ], [ -71.1589, 42.3595 ], [ -71.1589, 42.3595 ], [ -71.1589, 42.3595 ], [ -71.1589, 42.3595 ], [ -71.1588, 42.3595 ], [ -71.1588, 42.3595 ], [ -71.1587, 42.3595 ], [ -71.1587, 42.3596 ], [ -71.1587, 42.3596 ], [ -71.1587, 42.3596 ], [ -71.1586, 42.3596 ], [ -71.1586, 42.3596 ], [ -71.1586, 42.3596 ], [ -71.1586, 42.3596 ], [ -71.1585, 42.3596 ], [ -71.1584, 42.3596 ], [ -71.1584, 42.3596 ], [ -71.1583, 42.3596 ], [ -71.1583, 42.3596 ], [ -71.1581, 42.3596 ], [ -71.1580, 42.3596 ], [ -71.1580, 42.3596 ], [ -71.1579, 42.3596 ], [ -71.1579, 42.3596 ], [ -71.1578, 42.3595 ], [ -71.1577, 42.3595 ], [ -71.1576, 42.3595 ], [ -71.1575, 42.3595 ], [ -71.1574, 42.3595 ], [ -71.1574, 42.3595 ], [ -71.1572, 42.3595 ], [ -71.1572, 42.3595 ], [ -71.1570, 42.3595 ], [ -71.1570, 42.3595 ], [ -71.1569, 42.3595 ], [ -71.1569, 42.3595 ], [ -71.1568, 42.3595 ], [ -71.1568, 42.3595 ], [ -71.1567, 42.3595 ], [ -71.1566, 42.3595 ], [ -71.1566, 42.3595 ], [ -71.1565, 42.3595 ], [ -71.1565, 42.3595 ], [ -71.1565, 42.3595 ], [ -71.1565, 42.3595 ], [ -71.1564, 42.3595 ], [ -71.1564, 42.3595 ], [ -71.1564, 42.3595 ], [ -71.1564, 42.3595 ], [ -71.1564, 42.3595 ], [ -71.1564, 42.3595 ], [ -71.1563, 42.3595 ], [ -71.1563, 42.3595 ], [ -71.1562, 42.3595 ], [ -71.1561, 42.3595 ], [ -71.1561, 42.3595 ], [ -71.1561, 42.3595 ], [ -71.1560, 42.3595 ], [ -71.1560, 42.3595 ], [ -71.1558, 42.3595 ], [ -71.1558, 42.3595 ], [ -71.1557, 42.3595 ], [ -71.1557, 42.3595 ], [ -71.1557, 42.3595 ], [ -71.1557, 42.3595 ], [ -71.1556, 42.3595 ], [ -71.1556, 42.3595 ], [ -71.1556, 42.3595 ], [ -71.1556, 42.3595 ], [ -71.1556, 42.3595 ], [ -71.1556, 42.3594 ], [ -71.1556, 42.3594 ], [ -71.1556, 42.3594 ], [ -71.1556, 42.3594 ], [ -71.1556, 42.3594 ], [ -71.1556, 42.3594 ], [ -71.1556, 42.3594 ], [ -71.1556, 42.3594 ], [ -71.1556, 42.3594 ], [ -71.1556, 42.3594 ], [ -71.1556, 42.3594 ], [ -71.1556, 42.3594 ], [ -71.1556, 42.3594 ], [ -71.1556, 42.3594 ], [ -71.1556, 42.3594 ], [ -71.1556, 42.3594 ], [ -71.1556, 42.3594 ], [ -71.1555, 42.3594 ], [ -71.1555, 42.3594 ], [ -71.1555, 42.3594 ], [ -71.1554, 42.3595 ], [ -71.1554, 42.3595 ], [ -71.1553, 42.3595 ], [ -71.1552, 42.3595 ], [ -71.1551, 42.3595 ], [ -71.1551, 42.3595 ], [ -71.1550, 42.3595 ], [ -71.1549, 42.3595 ], [ -71.1548, 42.3595 ], [ -71.1547, 42.3595 ], [ -71.1547, 42.3595 ], [ -71.1546, 42.3595 ], [ -71.1544, 42.3595 ], [ -71.1542, 42.3596 ], [ -71.1541, 42.3596 ], [ -71.1541, 42.3596 ], [ -71.1541, 42.3596 ], [ -71.1541, 42.3596 ], [ -71.1540, 42.3596 ], [ -71.1539, 42.3597 ], [ -71.1539, 42.3597 ], [ -71.1538, 42.3597 ], [ -71.1537, 42.3597 ], [ -71.1537, 42.3597 ], [ -71.1536, 42.3598 ], [ -71.1535, 42.3598 ], [ -71.1535, 42.3598 ], [ -71.1534, 42.3598 ], [ -71.1534, 42.3599 ], [ -71.1534, 42.3599 ], [ -71.1533, 42.3599 ], [ -71.1533, 42.3599 ], [ -71.1533, 42.3599 ], [ -71.1532, 42.3600 ], [ -71.1532, 42.3600 ], [ -71.1530, 42.3600 ], [ -71.1530, 42.3601 ], [ -71.1530, 42.3601 ], [ -71.1529, 42.3601 ], [ -71.1529, 42.3601 ], [ -71.1529, 42.3601 ], [ -71.1529, 42.3601 ], [ -71.1528, 42.3601 ], [ -71.1528, 42.3601 ], [ -71.1527, 42.3602 ], [ -71.1526, 42.3602 ], [ -71.1526, 42.3602 ], [ -71.1525, 42.3603 ], [ -71.1524, 42.3603 ], [ -71.1524, 42.3603 ], [ -71.1523, 42.3603 ], [ -71.1522, 42.3603 ], [ -71.1521, 42.3604 ], [ -71.1520, 42.3604 ], [ -71.1519, 42.3604 ], [ -71.1519, 42.3604 ], [ -71.1519, 42.3604 ], [ -71.1519, 42.3603 ], [ -71.1518, 42.3604 ], [ -71.1518, 42.3604 ], [ -71.1517, 42.3604 ], [ -71.1517, 42.3604 ], [ -71.1516, 42.3604 ], [ -71.1515, 42.3604 ], [ -71.1514, 42.3604 ], [ -71.1513, 42.3604 ], [ -71.1512, 42.3604 ], [ -71.1512, 42.3604 ], [ -71.1511, 42.3605 ], [ -71.1510, 42.3605 ], [ -71.1510, 42.3605 ], [ -71.1509, 42.3605 ], [ -71.1508, 42.3605 ], [ -71.1508, 42.3605 ], [ -71.1507, 42.3605 ], [ -71.1506, 42.3605 ], [ -71.1505, 42.3605 ], [ -71.1505, 42.3605 ], [ -71.1504, 42.3605 ], [ -71.1503, 42.3606 ], [ -71.1503, 42.3606 ], [ -71.1503, 42.3606 ], [ -71.1502, 42.3606 ], [ -71.1502, 42.3606 ], [ -71.1502, 42.3606 ], [ -71.1501, 42.3606 ], [ -71.1500, 42.3606 ], [ -71.1499, 42.3606 ], [ -71.1498, 42.3606 ], [ -71.1498, 42.3606 ], [ -71.1497, 42.3606 ], [ -71.1496, 42.3606 ], [ -71.1496, 42.3606 ], [ -71.1495, 42.3606 ], [ -71.1494, 42.3606 ], [ -71.1494, 42.3606 ], [ -71.1493, 42.3606 ], [ -71.1492, 42.3607 ], [ -71.1492, 42.3607 ], [ -71.1491, 42.3607 ], [ -71.1490, 42.3607 ], [ -71.1489, 42.3607 ], [ -71.1489, 42.3607 ], [ -71.1488, 42.3607 ], [ -71.1487, 42.3607 ], [ -71.1486, 42.3607 ], [ -71.1486, 42.3607 ], [ -71.1485, 42.3607 ], [ -71.1484, 42.3608 ], [ -71.1484, 42.3608 ], [ -71.1483, 42.3608 ], [ -71.1482, 42.3608 ], [ -71.1482, 42.3608 ], [ -71.1482, 42.3608 ], [ -71.1482, 42.3608 ], [ -71.1481, 42.3609 ], [ -71.1480, 42.3609 ], [ -71.1480, 42.3609 ], [ -71.1479, 42.3609 ], [ -71.1478, 42.3610 ], [ -71.1477, 42.3610 ], [ -71.1477, 42.3610 ], [ -71.1477, 42.3610 ], [ -71.1477, 42.3610 ], [ -71.1476, 42.3611 ], [ -71.1475, 42.3611 ], [ -71.1475, 42.3611 ], [ -71.1474, 42.3612 ], [ -71.1474, 42.3612 ], [ -71.1474, 42.3612 ], [ -71.1474, 42.3612 ], [ -71.1474, 42.3612 ], [ -71.1473, 42.3613 ], [ -71.1473, 42.3613 ], [ -71.1471, 42.3614 ], [ -71.1471, 42.3614 ], [ -71.1470, 42.3614 ], [ -71.1470, 42.3615 ], [ -71.1469, 42.3615 ], [ -71.1469, 42.3615 ], [ -71.1467, 42.3617 ], [ -71.1467, 42.3617 ], [ -71.1466, 42.3618 ], [ -71.1465, 42.3618 ], [ -71.1465, 42.3619 ], [ -71.1465, 42.3619 ], [ -71.1463, 42.3620 ], [ -71.1462, 42.3621 ], [ -71.1461, 42.3621 ], [ -71.1460, 42.3622 ], [ -71.1459, 42.3622 ], [ -71.1459, 42.3623 ], [ -71.1458, 42.3623 ], [ -71.1457, 42.3624 ], [ -71.1457, 42.3624 ], [ -71.1456, 42.3625 ], [ -71.1455, 42.3626 ], [ -71.1455, 42.3627 ], [ -71.1454, 42.3627 ], [ -71.1454, 42.3627 ], [ -71.1454, 42.3627 ], [ -71.1454, 42.3627 ], [ -71.1454, 42.3627 ], [ -71.1454, 42.3627 ], [ -71.1454, 42.3628 ], [ -71.1454, 42.3628 ], [ -71.1454, 42.3628 ], [ -71.1454, 42.3628 ], [ -71.1454, 42.3628 ], [ -71.1454, 42.3628 ], [ -71.1454, 42.3628 ], [ -71.1453, 42.3628 ], [ -71.1453, 42.3628 ], [ -71.1453, 42.3628 ], [ -71.1453, 42.3628 ], [ -71.1453, 42.3628 ], [ -71.1453, 42.3628 ], [ -71.1453, 42.3628 ], [ -71.1453, 42.3628 ], [ -71.1453, 42.3628 ], [ -71.1453, 42.3628 ], [ -71.1453, 42.3628 ], [ -71.1453, 42.3628 ], [ -71.1453, 42.3628 ], [ -71.1453, 42.3629 ], [ -71.1453, 42.3629 ], [ -71.1453, 42.3629 ], [ -71.1453, 42.3629 ], [ -71.1453, 42.3629 ], [ -71.1453, 42.3630 ], [ -71.1453, 42.3630 ], [ -71.1453, 42.3630 ], [ -71.1452, 42.3630 ], [ -71.1452, 42.3630 ], [ -71.1452, 42.3630 ], [ -71.1452, 42.3630 ], [ -71.1452, 42.3630 ], [ -71.1452, 42.3630 ], [ -71.1452, 42.3631 ], [ -71.1452, 42.3631 ], [ -71.1452, 42.3631 ], [ -71.1452, 42.3631 ], [ -71.1452, 42.3631 ], [ -71.1452, 42.3631 ], [ -71.1452, 42.3631 ], [ -71.1452, 42.3632 ], [ -71.1452, 42.3632 ], [ -71.1452, 42.3632 ], [ -71.1452, 42.3632 ], [ -71.1452, 42.3632 ], [ -71.1452, 42.3632 ], [ -71.1452, 42.3632 ], [ -71.1452, 42.3632 ], [ -71.1451, 42.3633 ], [ -71.1451, 42.3633 ], [ -71.1451, 42.3633 ], [ -71.1451, 42.3633 ], [ -71.1451, 42.3633 ], [ -71.1451, 42.3633 ], [ -71.1451, 42.3634 ], [ -71.1451, 42.3634 ], [ -71.1451, 42.3634 ], [ -71.1451, 42.3634 ], [ -71.1451, 42.3634 ], [ -71.1451, 42.3634 ], [ -71.1450, 42.3634 ], [ -71.1450, 42.3635 ], [ -71.1450, 42.3635 ], [ -71.1450, 42.3635 ], [ -71.1450, 42.3635 ], [ -71.1450, 42.3636 ], [ -71.1450, 42.3636 ], [ -71.1450, 42.3636 ], [ -71.1449, 42.3636 ], [ -71.1449, 42.3636 ], [ -71.1449, 42.3637 ], [ -71.1449, 42.3637 ], [ -71.1449, 42.3637 ], [ -71.1449, 42.3637 ], [ -71.1449, 42.3637 ], [ -71.1449, 42.3637 ], [ -71.1449, 42.3637 ], [ -71.1449, 42.3637 ], [ -71.1449, 42.3637 ], [ -71.1449, 42.3637 ], [ -71.1449, 42.3637 ], [ -71.1449, 42.3637 ], [ -71.1449, 42.3638 ], [ -71.1449, 42.3638 ], [ -71.1449, 42.3638 ], [ -71.1448, 42.3638 ], [ -71.1448, 42.3638 ], [ -71.1448, 42.3639 ], [ -71.1448, 42.3639 ], [ -71.1448, 42.3639 ], [ -71.1448, 42.3639 ], [ -71.1448, 42.3639 ], [ -71.1448, 42.3639 ], [ -71.1448, 42.3639 ], [ -71.1448, 42.3639 ], [ -71.1448, 42.3639 ], [ -71.1448, 42.3639 ], [ -71.1448, 42.3639 ], [ -71.1448, 42.3639 ], [ -71.1448, 42.3639 ], [ -71.1447, 42.3639 ], [ -71.1447, 42.3640 ], [ -71.1447, 42.3640 ], [ -71.1447, 42.3640 ], [ -71.1447, 42.3640 ], [ -71.1446, 42.3640 ], [ -71.1446, 42.3641 ], [ -71.1446, 42.3641 ], [ -71.1446, 42.3641 ], [ -71.1446, 42.3641 ], [ -71.1445, 42.3642 ], [ -71.1445, 42.3642 ], [ -71.1445, 42.3642 ], [ -71.1444, 42.3642 ], [ -71.1444, 42.3642 ], [ -71.1444, 42.3642 ], [ -71.1444, 42.3642 ], [ -71.1444, 42.3642 ], [ -71.1444, 42.3642 ], [ -71.1444, 42.3642 ], [ -71.1444, 42.3642 ], [ -71.1444, 42.3643 ], [ -71.1444, 42.3643 ], [ -71.1444, 42.3643 ], [ -71.1444, 42.3643 ], [ -71.1444, 42.3643 ], [ -71.1444, 42.3643 ], [ -71.1444, 42.3643 ], [ -71.1444, 42.3643 ], [ -71.1443, 42.3643 ], [ -71.1443, 42.3643 ], [ -71.1443, 42.3643 ], [ -71.1443, 42.3643 ], [ -71.1443, 42.3643 ], [ -71.1443, 42.3643 ], [ -71.1443, 42.3644 ], [ -71.1443, 42.3644 ], [ -71.1442, 42.3644 ], [ -71.1442, 42.3644 ], [ -71.1442, 42.3644 ], [ -71.1442, 42.3644 ], [ -71.1442, 42.3644 ], [ -71.1442, 42.3644 ], [ -71.1442, 42.3644 ], [ -71.1442, 42.3644 ], [ -71.1442, 42.3644 ], [ -71.1442, 42.3644 ], [ -71.1441, 42.3644 ], [ -71.1441, 42.3645 ], [ -71.1441, 42.3645 ], [ -71.1440, 42.3645 ], [ -71.1440, 42.3645 ], [ -71.1440, 42.3645 ], [ -71.1440, 42.3645 ], [ -71.1439, 42.3645 ], [ -71.1439, 42.3645 ], [ -71.1438, 42.3645 ], [ -71.1438, 42.3646 ], [ -71.1438, 42.3646 ], [ -71.1436, 42.3646 ], [ -71.1435, 42.3646 ], [ -71.1435, 42.3646 ], [ -71.1435, 42.3646 ], [ -71.1435, 42.3646 ], [ -71.1434, 42.3646 ], [ -71.1434, 42.3646 ], [ -71.1433, 42.3646 ], [ -71.1431, 42.3646 ], [ -71.1429, 42.3646 ], [ -71.1428, 42.3646 ], [ -71.1427, 42.3646 ], [ -71.1427, 42.3646 ], [ -71.1427, 42.3646 ], [ -71.1426, 42.3646 ], [ -71.1426, 42.3646 ], [ -71.1426, 42.3646 ], [ -71.1426, 42.3646 ], [ -71.1425, 42.3645 ], [ -71.1425, 42.3645 ], [ -71.1425, 42.3645 ], [ -71.1425, 42.3645 ], [ -71.1425, 42.3645 ], [ -71.1424, 42.3645 ], [ -71.1424, 42.3645 ], [ -71.1424, 42.3645 ], [ -71.1424, 42.3645 ], [ -71.1424, 42.3645 ], [ -71.1424, 42.3645 ], [ -71.1423, 42.3645 ], [ -71.1423, 42.3645 ], [ -71.1423, 42.3645 ], [ -71.1422, 42.3645 ], [ -71.1422, 42.3645 ], [ -71.1422, 42.3645 ], [ -71.1422, 42.3644 ], [ -71.1421, 42.3644 ], [ -71.1421, 42.3644 ], [ -71.1421, 42.3644 ], [ -71.1421, 42.3644 ], [ -71.1421, 42.3644 ], [ -71.1420, 42.3644 ], [ -71.1420, 42.3644 ], [ -71.1420, 42.3644 ], [ -71.1420, 42.3644 ], [ -71.1420, 42.3644 ], [ -71.1419, 42.3644 ], [ -71.1419, 42.3644 ], [ -71.1419, 42.3644 ], [ -71.1419, 42.3643 ], [ -71.1419, 42.3643 ], [ -71.1418, 42.3643 ], [ -71.1418, 42.3643 ], [ -71.1418, 42.3643 ], [ -71.1417, 42.3643 ], [ -71.1417, 42.3643 ], [ -71.1417, 42.3643 ], [ -71.1417, 42.3643 ], [ -71.1417, 42.3643 ], [ -71.1417, 42.3643 ], [ -71.1416, 42.3642 ], [ -71.1416, 42.3642 ], [ -71.1416, 42.3642 ], [ -71.1415, 42.3643 ], [ -71.1416, 42.3643 ], [ -71.1415, 42.3644 ], [ -71.1411, 42.3642 ], [ -71.1412, 42.3642 ], [ -71.1412, 42.3642 ], [ -71.1412, 42.3641 ], [ -71.1412, 42.3641 ], [ -71.1412, 42.3641 ], [ -71.1412, 42.3641 ], [ -71.1412, 42.3641 ], [ -71.1412, 42.3641 ], [ -71.1411, 42.3641 ], [ -71.1411, 42.3641 ], [ -71.1411, 42.3641 ], [ -71.1411, 42.3641 ], [ -71.1411, 42.3641 ], [ -71.1411, 42.3641 ], [ -71.1411, 42.3641 ], [ -71.1410, 42.3641 ], [ -71.1410, 42.3641 ], [ -71.1410, 42.3641 ], [ -71.1410, 42.3641 ], [ -71.1409, 42.3641 ], [ -71.1409, 42.3641 ], [ -71.1409, 42.3641 ], [ -71.1409, 42.3640 ], [ -71.1409, 42.3640 ], [ -71.1408, 42.3640 ], [ -71.1408, 42.3640 ], [ -71.1408, 42.3640 ], [ -71.1408, 42.3640 ], [ -71.1408, 42.3640 ], [ -71.1407, 42.3640 ], [ -71.1407, 42.3640 ], [ -71.1407, 42.3640 ], [ -71.1407, 42.3640 ], [ -71.1406, 42.3640 ], [ -71.1406, 42.3640 ], [ -71.1405, 42.3640 ], [ -71.1405, 42.3640 ], [ -71.1405, 42.3640 ], [ -71.1405, 42.3640 ], [ -71.1404, 42.3640 ], [ -71.1404, 42.3640 ], [ -71.1404, 42.3640 ], [ -71.1404, 42.3640 ], [ -71.1404, 42.3640 ], [ -71.1404, 42.3640 ], [ -71.1404, 42.3640 ], [ -71.1404, 42.3640 ], [ -71.1404, 42.3640 ], [ -71.1403, 42.3640 ], [ -71.1403, 42.3640 ], [ -71.1403, 42.3640 ], [ -71.1403, 42.3640 ], [ -71.1403, 42.3640 ], [ -71.1403, 42.3640 ], [ -71.1402, 42.3640 ], [ -71.1402, 42.3640 ], [ -71.1401, 42.3640 ], [ -71.1401, 42.3640 ], [ -71.1400, 42.3640 ], [ -71.1400, 42.3640 ], [ -71.1400, 42.3640 ], [ -71.1399, 42.3640 ], [ -71.1399, 42.3641 ], [ -71.1398, 42.3641 ], [ -71.1398, 42.3641 ], [ -71.1398, 42.3641 ], [ -71.1397, 42.3641 ], [ -71.1397, 42.3641 ], [ -71.1397, 42.3641 ], [ -71.1397, 42.3641 ], [ -71.1396, 42.3641 ], [ -71.1396, 42.3641 ], [ -71.1395, 42.3641 ], [ -71.1395, 42.3641 ], [ -71.1394, 42.3641 ], [ -71.1394, 42.3641 ], [ -71.1394, 42.3641 ], [ -71.1394, 42.3641 ], [ -71.1394, 42.3642 ], [ -71.1394, 42.3642 ], [ -71.1393, 42.3642 ], [ -71.1393, 42.3642 ], [ -71.1393, 42.3642 ], [ -71.1393, 42.3642 ], [ -71.1393, 42.3642 ], [ -71.1392, 42.3642 ], [ -71.1392, 42.3642 ], [ -71.1392, 42.3642 ], [ -71.1392, 42.3642 ], [ -71.1392, 42.3642 ], [ -71.1392, 42.3642 ], [ -71.1391, 42.3642 ], [ -71.1391, 42.3642 ], [ -71.1391, 42.3642 ], [ -71.1391, 42.3642 ], [ -71.1391, 42.3642 ], [ -71.1391, 42.3642 ], [ -71.1391, 42.3642 ], [ -71.1391, 42.3642 ], [ -71.1391, 42.3642 ], [ -71.1391, 42.3642 ], [ -71.1391, 42.3642 ], [ -71.1391, 42.3642 ], [ -71.1391, 42.3642 ], [ -71.1391, 42.3642 ], [ -71.1391, 42.3642 ], [ -71.1391, 42.3642 ], [ -71.1391, 42.3642 ], [ -71.1391, 42.3642 ], [ -71.1390, 42.3642 ], [ -71.1390, 42.3642 ], [ -71.1390, 42.3642 ], [ -71.1390, 42.3642 ], [ -71.1390, 42.3642 ], [ -71.1390, 42.3643 ], [ -71.1390, 42.3643 ], [ -71.1390, 42.3643 ], [ -71.1389, 42.3643 ], [ -71.1388, 42.3643 ], [ -71.1388, 42.3643 ], [ -71.1388, 42.3643 ], [ -71.1388, 42.3643 ], [ -71.1387, 42.3644 ], [ -71.1387, 42.3644 ], [ -71.1387, 42.3644 ], [ -71.1386, 42.3644 ], [ -71.1386, 42.3644 ], [ -71.1386, 42.3644 ], [ -71.1386, 42.3645 ], [ -71.1385, 42.3645 ], [ -71.1385, 42.3645 ], [ -71.1385, 42.3645 ], [ -71.1385, 42.3645 ], [ -71.1384, 42.3645 ], [ -71.1384, 42.3645 ], [ -71.1384, 42.3646 ], [ -71.1384, 42.3646 ], [ -71.1384, 42.3646 ], [ -71.1383, 42.3646 ], [ -71.1383, 42.3646 ], [ -71.1383, 42.3646 ], [ -71.1383, 42.3646 ], [ -71.1383, 42.3646 ], [ -71.1383, 42.3646 ], [ -71.1383, 42.3646 ], [ -71.1383, 42.3646 ], [ -71.1382, 42.3646 ], [ -71.1382, 42.3646 ], [ -71.1382, 42.3646 ], [ -71.1382, 42.3646 ], [ -71.1382, 42.3646 ], [ -71.1382, 42.3647 ], [ -71.1382, 42.3647 ], [ -71.1382, 42.3647 ], [ -71.1382, 42.3647 ], [ -71.1382, 42.3647 ], [ -71.1381, 42.3647 ], [ -71.1381, 42.3647 ], [ -71.1381, 42.3648 ], [ -71.1381, 42.3648 ], [ -71.1381, 42.3648 ], [ -71.1380, 42.3648 ], [ -71.1380, 42.3648 ], [ -71.1380, 42.3648 ], [ -71.1380, 42.3648 ], [ -71.1380, 42.3648 ], [ -71.1380, 42.3648 ], [ -71.1380, 42.3648 ], [ -71.1380, 42.3648 ], [ -71.1380, 42.3648 ], [ -71.1380, 42.3648 ], [ -71.1380, 42.3649 ], [ -71.1380, 42.3649 ], [ -71.1379, 42.3649 ], [ -71.1379, 42.3649 ], [ -71.1379, 42.3649 ], [ -71.1378, 42.3650 ], [ -71.1378, 42.3650 ], [ -71.1378, 42.3650 ], [ -71.1378, 42.3650 ], [ -71.1378, 42.3650 ], [ -71.1378, 42.3651 ], [ -71.1377, 42.3651 ], [ -71.1377, 42.3651 ], [ -71.1377, 42.3651 ], [ -71.1377, 42.3651 ], [ -71.1377, 42.3651 ], [ -71.1377, 42.3652 ], [ -71.1376, 42.3652 ], [ -71.1376, 42.3652 ], [ -71.1376, 42.3652 ], [ -71.1376, 42.3652 ], [ -71.1376, 42.3652 ], [ -71.1375, 42.3652 ], [ -71.1375, 42.3653 ], [ -71.1375, 42.3653 ], [ -71.1375, 42.3653 ], [ -71.1375, 42.3653 ], [ -71.1375, 42.3653 ], [ -71.1375, 42.3653 ], [ -71.1375, 42.3653 ], [ -71.1375, 42.3653 ], [ -71.1374, 42.3653 ], [ -71.1374, 42.3654 ], [ -71.1374, 42.3654 ], [ -71.1374, 42.3654 ], [ -71.1373, 42.3654 ], [ -71.1373, 42.3654 ], [ -71.1373, 42.3655 ], [ -71.1373, 42.3655 ], [ -71.1373, 42.3655 ], [ -71.1373, 42.3655 ], [ -71.1373, 42.3655 ], [ -71.1373, 42.3655 ], [ -71.1373, 42.3655 ], [ -71.1373, 42.3655 ], [ -71.1372, 42.3655 ], [ -71.1372, 42.3655 ], [ -71.1372, 42.3655 ], [ -71.1372, 42.3655 ], [ -71.1372, 42.3655 ], [ -71.1372, 42.3655 ], [ -71.1372, 42.3656 ], [ -71.1372, 42.3656 ], [ -71.1372, 42.3656 ], [ -71.1372, 42.3656 ], [ -71.1372, 42.3656 ], [ -71.1372, 42.3656 ], [ -71.1371, 42.3656 ], [ -71.1371, 42.3657 ], [ -71.1371, 42.3657 ], [ -71.1371, 42.3657 ], [ -71.1371, 42.3657 ], [ -71.1371, 42.3657 ], [ -71.1371, 42.3657 ], [ -71.1371, 42.3657 ], [ -71.1371, 42.3657 ], [ -71.1371, 42.3657 ], [ -71.1371, 42.3657 ], [ -71.1371, 42.3657 ], [ -71.1371, 42.3657 ], [ -71.1371, 42.3657 ], [ -71.1371, 42.3657 ], [ -71.1371, 42.3657 ], [ -71.1371, 42.3657 ], [ -71.1371, 42.3657 ], [ -71.1371, 42.3657 ], [ -71.1371, 42.3657 ], [ -71.1371, 42.3657 ], [ -71.1371, 42.3657 ], [ -71.1371, 42.3657 ], [ -71.1371, 42.3657 ], [ -71.1371, 42.3657 ], [ -71.1371, 42.3657 ], [ -71.1370, 42.3657 ], [ -71.1370, 42.3657 ], [ -71.1370, 42.3657 ], [ -71.1370, 42.3657 ], [ -71.1370, 42.3658 ], [ -71.1370, 42.3658 ], [ -71.1370, 42.3658 ], [ -71.1370, 42.3658 ], [ -71.1370, 42.3658 ], [ -71.1370, 42.3658 ], [ -71.1370, 42.3658 ], [ -71.1370, 42.3658 ], [ -71.1370, 42.3658 ], [ -71.1369, 42.3658 ], [ -71.1369, 42.3659 ], [ -71.1369, 42.3659 ], [ -71.1369, 42.3659 ], [ -71.1369, 42.3659 ], [ -71.1369, 42.3659 ], [ -71.1369, 42.3659 ], [ -71.1368, 42.3659 ], [ -71.1368, 42.3659 ], [ -71.1368, 42.3659 ], [ -71.1368, 42.3660 ], [ -71.1368, 42.3660 ], [ -71.1368, 42.3660 ], [ -71.1367, 42.3660 ], [ -71.1367, 42.3660 ], [ -71.1367, 42.3660 ], [ -71.1367, 42.3661 ], [ -71.1367, 42.3661 ], [ -71.1367, 42.3661 ], [ -71.1367, 42.3661 ], [ -71.1367, 42.3661 ], [ -71.1367, 42.3661 ], [ -71.1367, 42.3661 ], [ -71.1367, 42.3661 ], [ -71.1367, 42.3661 ], [ -71.1367, 42.3661 ], [ -71.1367, 42.3661 ], [ -71.1366, 42.3661 ], [ -71.1366, 42.3661 ], [ -71.1366, 42.3661 ], [ -71.1366, 42.3661 ], [ -71.1366, 42.3661 ], [ -71.1366, 42.3661 ], [ -71.1366, 42.3661 ], [ -71.1366, 42.3661 ], [ -71.1366, 42.3661 ], [ -71.1366, 42.3661 ], [ -71.1366, 42.3661 ], [ -71.1366, 42.3662 ], [ -71.1365, 42.3662 ], [ -71.1365, 42.3662 ], [ -71.1365, 42.3662 ], [ -71.1365, 42.3662 ], [ -71.1365, 42.3663 ], [ -71.1364, 42.3663 ], [ -71.1364, 42.3663 ], [ -71.1364, 42.3663 ], [ -71.1364, 42.3663 ], [ -71.1364, 42.3663 ], [ -71.1363, 42.3663 ], [ -71.1363, 42.3663 ], [ -71.1363, 42.3664 ], [ -71.1363, 42.3664 ], [ -71.1363, 42.3664 ], [ -71.1363, 42.3664 ], [ -71.1362, 42.3664 ], [ -71.1362, 42.3664 ], [ -71.1362, 42.3665 ], [ -71.1361, 42.3665 ], [ -71.1361, 42.3665 ], [ -71.1361, 42.3665 ], [ -71.1361, 42.3665 ], [ -71.1361, 42.3665 ], [ -71.1361, 42.3665 ], [ -71.1360, 42.3665 ], [ -71.1360, 42.3665 ], [ -71.1360, 42.3665 ], [ -71.1360, 42.3665 ], [ -71.1360, 42.3666 ], [ -71.1360, 42.3666 ], [ -71.1360, 42.3666 ], [ -71.1360, 42.3666 ], [ -71.1360, 42.3666 ], [ -71.1360, 42.3666 ], [ -71.1360, 42.3666 ], [ -71.1360, 42.3666 ], [ -71.1360, 42.3666 ], [ -71.1360, 42.3666 ], [ -71.1360, 42.3666 ], [ -71.1359, 42.3666 ], [ -71.1359, 42.3666 ], [ -71.1359, 42.3666 ], [ -71.1358, 42.3666 ], [ -71.1358, 42.3667 ], [ -71.1358, 42.3667 ], [ -71.1358, 42.3667 ], [ -71.1358, 42.3667 ], [ -71.1357, 42.3667 ], [ -71.1357, 42.3667 ], [ -71.1357, 42.3667 ], [ -71.1357, 42.3667 ], [ -71.1357, 42.3667 ], [ -71.1357, 42.3667 ], [ -71.1357, 42.3667 ], [ -71.1357, 42.3667 ], [ -71.1357, 42.3667 ], [ -71.1357, 42.3667 ], [ -71.1357, 42.3667 ], [ -71.1357, 42.3667 ], [ -71.1357, 42.3667 ], [ -71.1357, 42.3667 ], [ -71.1357, 42.3667 ], [ -71.1357, 42.3667 ], [ -71.1357, 42.3667 ], [ -71.1357, 42.3667 ], [ -71.1357, 42.3667 ], [ -71.1357, 42.3667 ], [ -71.1357, 42.3667 ], [ -71.1356, 42.3667 ], [ -71.1356, 42.3667 ], [ -71.1353, 42.3646 ], [ -71.1353, 42.3640 ], [ -71.1353, 42.3631 ], [ -71.1358, 42.3619 ], [ -71.1362, 42.3608 ], [ -71.1366, 42.3601 ], [ -71.1369, 42.3593 ], [ -71.1371, 42.3589 ], [ -71.1373, 42.3587 ], [ -71.1379, 42.3576 ], [ -71.1380, 42.3573 ], [ -71.1382, 42.3568 ], [ -71.1383, 42.3566 ], [ -71.1386, 42.3554 ], [ -71.1385, 42.3551 ], [ -71.1388, 42.3545 ], [ -71.1394, 42.3545 ], [ -71.1396, 42.3538 ], [ -71.1406, 42.3539 ], [ -71.1425, 42.3544 ], [ -71.1442, 42.3549 ], [ -71.1429, 42.3516 ], [ -71.1445, 42.3512 ], [ -71.1472, 42.3501 ], [ -71.1464, 42.3498 ], [ -71.1441, 42.3496 ], [ -71.1413, 42.3491 ], [ -71.1411, 42.3494 ], [ -71.1410, 42.3502 ], [ -71.1400, 42.3503 ], [ -71.1399, 42.3494 ], [ -71.1397, 42.3489 ], [ -71.1403, 42.3486 ], [ -71.1399, 42.3484 ], [ -71.1401, 42.3482 ], [ -71.1404, 42.3474 ], [ -71.1386, 42.3468 ], [ -71.1382, 42.3475 ], [ -71.1351, 42.3460 ] ] ] } }, + { "type": "Feature", "properties": { "Name": "West Roxbury", "density": 4.3700 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -71.1647, 42.3038 ], [ -71.1521, 42.2945 ], [ -71.1503, 42.2954 ], [ -71.1468, 42.2972 ], [ -71.1400, 42.3021 ], [ -71.1400, 42.3021 ], [ -71.1400, 42.3021 ], [ -71.1401, 42.3020 ], [ -71.1401, 42.3020 ], [ -71.1401, 42.3020 ], [ -71.1400, 42.3020 ], [ -71.1396, 42.3018 ], [ -71.1396, 42.3018 ], [ -71.1394, 42.3017 ], [ -71.1394, 42.3017 ], [ -71.1393, 42.3017 ], [ -71.1393, 42.3017 ], [ -71.1392, 42.3017 ], [ -71.1375, 42.3012 ], [ -71.1374, 42.3012 ], [ -71.1373, 42.3011 ], [ -71.1373, 42.3011 ], [ -71.1373, 42.3011 ], [ -71.1372, 42.3011 ], [ -71.1372, 42.3011 ], [ -71.1372, 42.3011 ], [ -71.1372, 42.3011 ], [ -71.1371, 42.3011 ], [ -71.1371, 42.3011 ], [ -71.1370, 42.3011 ], [ -71.1370, 42.3011 ], [ -71.1370, 42.3011 ], [ -71.1369, 42.3011 ], [ -71.1369, 42.3011 ], [ -71.1369, 42.3011 ], [ -71.1368, 42.3011 ], [ -71.1368, 42.3011 ], [ -71.1368, 42.3011 ], [ -71.1368, 42.3011 ], [ -71.1367, 42.3011 ], [ -71.1367, 42.3011 ], [ -71.1367, 42.3011 ], [ -71.1367, 42.3011 ], [ -71.1367, 42.3011 ], [ -71.1366, 42.3011 ], [ -71.1366, 42.3011 ], [ -71.1366, 42.3011 ], [ -71.1366, 42.3012 ], [ -71.1365, 42.3012 ], [ -71.1365, 42.3012 ], [ -71.1365, 42.3012 ], [ -71.1365, 42.3012 ], [ -71.1362, 42.3012 ], [ -71.1359, 42.3013 ], [ -71.1359, 42.3013 ], [ -71.1349, 42.3016 ], [ -71.1349, 42.3016 ], [ -71.1348, 42.3016 ], [ -71.1348, 42.3016 ], [ -71.1348, 42.3016 ], [ -71.1347, 42.3016 ], [ -71.1347, 42.3016 ], [ -71.1347, 42.3016 ], [ -71.1346, 42.3016 ], [ -71.1346, 42.3016 ], [ -71.1346, 42.3016 ], [ -71.1345, 42.3016 ], [ -71.1345, 42.3016 ], [ -71.1345, 42.3016 ], [ -71.1345, 42.3016 ], [ -71.1345, 42.3016 ], [ -71.1344, 42.3016 ], [ -71.1344, 42.3016 ], [ -71.1344, 42.3016 ], [ -71.1343, 42.3016 ], [ -71.1343, 42.3016 ], [ -71.1343, 42.3016 ], [ -71.1342, 42.3016 ], [ -71.1338, 42.3015 ], [ -71.1337, 42.3015 ], [ -71.1337, 42.3015 ], [ -71.1336, 42.3015 ], [ -71.1333, 42.3015 ], [ -71.1332, 42.3014 ], [ -71.1326, 42.3013 ], [ -71.1326, 42.3013 ], [ -71.1322, 42.3013 ], [ -71.1322, 42.3013 ], [ -71.1319, 42.3012 ], [ -71.1319, 42.3012 ], [ -71.1319, 42.3012 ], [ -71.1318, 42.3012 ], [ -71.1318, 42.3012 ], [ -71.1317, 42.3012 ], [ -71.1315, 42.3012 ], [ -71.1311, 42.3012 ], [ -71.1311, 42.3012 ], [ -71.1311, 42.3012 ], [ -71.1311, 42.3012 ], [ -71.1311, 42.3012 ], [ -71.1311, 42.3012 ], [ -71.1311, 42.3012 ], [ -71.1311, 42.3012 ], [ -71.1310, 42.3012 ], [ -71.1310, 42.3012 ], [ -71.1310, 42.3012 ], [ -71.1310, 42.3012 ], [ -71.1310, 42.3012 ], [ -71.1310, 42.3012 ], [ -71.1310, 42.3012 ], [ -71.1309, 42.3012 ], [ -71.1309, 42.3012 ], [ -71.1309, 42.3012 ], [ -71.1309, 42.3012 ], [ -71.1309, 42.3012 ], [ -71.1309, 42.3012 ], [ -71.1307, 42.3011 ], [ -71.1297, 42.3007 ], [ -71.1292, 42.3005 ], [ -71.1292, 42.3005 ], [ -71.1288, 42.3004 ], [ -71.1288, 42.3004 ], [ -71.1288, 42.3004 ], [ -71.1288, 42.3004 ], [ -71.1288, 42.3004 ], [ -71.1288, 42.3004 ], [ -71.1288, 42.3004 ], [ -71.1288, 42.3004 ], [ -71.1288, 42.3004 ], [ -71.1288, 42.3004 ], [ -71.1288, 42.3004 ], [ -71.1288, 42.3004 ], [ -71.1288, 42.3004 ], [ -71.1287, 42.3004 ], [ -71.1286, 42.3003 ], [ -71.1286, 42.3003 ], [ -71.1286, 42.3003 ], [ -71.1286, 42.3003 ], [ -71.1286, 42.3003 ], [ -71.1286, 42.3003 ], [ -71.1286, 42.3003 ], [ -71.1286, 42.3003 ], [ -71.1286, 42.3003 ], [ -71.1286, 42.3003 ], [ -71.1284, 42.3003 ], [ -71.1283, 42.3002 ], [ -71.1282, 42.3002 ], [ -71.1282, 42.3002 ], [ -71.1282, 42.3002 ], [ -71.1281, 42.3001 ], [ -71.1281, 42.3001 ], [ -71.1281, 42.3001 ], [ -71.1281, 42.3001 ], [ -71.1281, 42.3001 ], [ -71.1281, 42.3001 ], [ -71.1281, 42.3001 ], [ -71.1281, 42.3001 ], [ -71.1281, 42.3001 ], [ -71.1281, 42.3001 ], [ -71.1280, 42.3001 ], [ -71.1281, 42.3000 ], [ -71.1281, 42.3000 ], [ -71.1281, 42.3000 ], [ -71.1281, 42.3000 ], [ -71.1281, 42.3000 ], [ -71.1281, 42.3000 ], [ -71.1281, 42.3000 ], [ -71.1281, 42.3000 ], [ -71.1281, 42.3000 ], [ -71.1281, 42.3000 ], [ -71.1281, 42.3000 ], [ -71.1281, 42.3000 ], [ -71.1281, 42.3000 ], [ -71.1281, 42.3000 ], [ -71.1281, 42.3000 ], [ -71.1281, 42.3000 ], [ -71.1281, 42.3000 ], [ -71.1281, 42.3000 ], [ -71.1282, 42.2999 ], [ -71.1284, 42.2997 ], [ -71.1285, 42.2997 ], [ -71.1287, 42.2994 ], [ -71.1290, 42.2992 ], [ -71.1290, 42.2991 ], [ -71.1291, 42.2990 ], [ -71.1292, 42.2990 ], [ -71.1293, 42.2989 ], [ -71.1294, 42.2988 ], [ -71.1294, 42.2988 ], [ -71.1294, 42.2987 ], [ -71.1294, 42.2987 ], [ -71.1294, 42.2987 ], [ -71.1296, 42.2986 ], [ -71.1297, 42.2985 ], [ -71.1299, 42.2983 ], [ -71.1299, 42.2983 ], [ -71.1300, 42.2983 ], [ -71.1300, 42.2983 ], [ -71.1300, 42.2982 ], [ -71.1301, 42.2982 ], [ -71.1302, 42.2981 ], [ -71.1304, 42.2980 ], [ -71.1306, 42.2979 ], [ -71.1307, 42.2978 ], [ -71.1308, 42.2978 ], [ -71.1308, 42.2978 ], [ -71.1308, 42.2978 ], [ -71.1308, 42.2978 ], [ -71.1310, 42.2977 ], [ -71.1312, 42.2976 ], [ -71.1313, 42.2976 ], [ -71.1313, 42.2975 ], [ -71.1313, 42.2975 ], [ -71.1313, 42.2975 ], [ -71.1314, 42.2975 ], [ -71.1318, 42.2974 ], [ -71.1318, 42.2973 ], [ -71.1320, 42.2973 ], [ -71.1323, 42.2971 ], [ -71.1323, 42.2971 ], [ -71.1323, 42.2971 ], [ -71.1323, 42.2971 ], [ -71.1324, 42.2971 ], [ -71.1330, 42.2968 ], [ -71.1331, 42.2967 ], [ -71.1333, 42.2966 ], [ -71.1334, 42.2966 ], [ -71.1336, 42.2964 ], [ -71.1337, 42.2964 ], [ -71.1337, 42.2963 ], [ -71.1337, 42.2963 ], [ -71.1337, 42.2963 ], [ -71.1337, 42.2963 ], [ -71.1337, 42.2963 ], [ -71.1337, 42.2963 ], [ -71.1337, 42.2963 ], [ -71.1338, 42.2963 ], [ -71.1339, 42.2962 ], [ -71.1339, 42.2962 ], [ -71.1339, 42.2962 ], [ -71.1339, 42.2962 ], [ -71.1341, 42.2960 ], [ -71.1342, 42.2959 ], [ -71.1342, 42.2959 ], [ -71.1342, 42.2959 ], [ -71.1342, 42.2959 ], [ -71.1342, 42.2959 ], [ -71.1342, 42.2959 ], [ -71.1342, 42.2959 ], [ -71.1342, 42.2959 ], [ -71.1342, 42.2959 ], [ -71.1342, 42.2959 ], [ -71.1342, 42.2959 ], [ -71.1342, 42.2959 ], [ -71.1342, 42.2959 ], [ -71.1342, 42.2959 ], [ -71.1343, 42.2959 ], [ -71.1344, 42.2958 ], [ -71.1344, 42.2958 ], [ -71.1344, 42.2958 ], [ -71.1344, 42.2958 ], [ -71.1344, 42.2958 ], [ -71.1344, 42.2958 ], [ -71.1344, 42.2958 ], [ -71.1344, 42.2958 ], [ -71.1344, 42.2958 ], [ -71.1344, 42.2958 ], [ -71.1345, 42.2957 ], [ -71.1346, 42.2956 ], [ -71.1348, 42.2955 ], [ -71.1349, 42.2954 ], [ -71.1350, 42.2953 ], [ -71.1351, 42.2953 ], [ -71.1351, 42.2952 ], [ -71.1353, 42.2950 ], [ -71.1355, 42.2949 ], [ -71.1357, 42.2947 ], [ -71.1356, 42.2947 ], [ -71.1356, 42.2947 ], [ -71.1357, 42.2946 ], [ -71.1354, 42.2945 ], [ -71.1353, 42.2944 ], [ -71.1355, 42.2942 ], [ -71.1357, 42.2941 ], [ -71.1358, 42.2940 ], [ -71.1358, 42.2939 ], [ -71.1360, 42.2939 ], [ -71.1360, 42.2938 ], [ -71.1360, 42.2938 ], [ -71.1361, 42.2937 ], [ -71.1363, 42.2936 ], [ -71.1363, 42.2936 ], [ -71.1364, 42.2935 ], [ -71.1366, 42.2933 ], [ -71.1368, 42.2933 ], [ -71.1368, 42.2933 ], [ -71.1369, 42.2932 ], [ -71.1370, 42.2931 ], [ -71.1372, 42.2933 ], [ -71.1373, 42.2934 ], [ -71.1374, 42.2933 ], [ -71.1375, 42.2932 ], [ -71.1376, 42.2931 ], [ -71.1379, 42.2929 ], [ -71.1379, 42.2929 ], [ -71.1380, 42.2928 ], [ -71.1381, 42.2927 ], [ -71.1381, 42.2927 ], [ -71.1382, 42.2926 ], [ -71.1384, 42.2925 ], [ -71.1385, 42.2924 ], [ -71.1385, 42.2924 ], [ -71.1386, 42.2923 ], [ -71.1386, 42.2923 ], [ -71.1387, 42.2922 ], [ -71.1387, 42.2922 ], [ -71.1389, 42.2921 ], [ -71.1390, 42.2920 ], [ -71.1390, 42.2920 ], [ -71.1391, 42.2919 ], [ -71.1393, 42.2917 ], [ -71.1395, 42.2916 ], [ -71.1396, 42.2915 ], [ -71.1397, 42.2913 ], [ -71.1398, 42.2913 ], [ -71.1398, 42.2913 ], [ -71.1399, 42.2912 ], [ -71.1401, 42.2911 ], [ -71.1401, 42.2911 ], [ -71.1402, 42.2910 ], [ -71.1403, 42.2909 ], [ -71.1405, 42.2907 ], [ -71.1406, 42.2906 ], [ -71.1407, 42.2905 ], [ -71.1408, 42.2904 ], [ -71.1409, 42.2903 ], [ -71.1409, 42.2903 ], [ -71.1411, 42.2902 ], [ -71.1412, 42.2901 ], [ -71.1413, 42.2900 ], [ -71.1414, 42.2899 ], [ -71.1415, 42.2898 ], [ -71.1417, 42.2897 ], [ -71.1417, 42.2897 ], [ -71.1418, 42.2896 ], [ -71.1420, 42.2894 ], [ -71.1420, 42.2894 ], [ -71.1421, 42.2894 ], [ -71.1423, 42.2892 ], [ -71.1424, 42.2891 ], [ -71.1425, 42.2890 ], [ -71.1426, 42.2889 ], [ -71.1427, 42.2888 ], [ -71.1428, 42.2888 ], [ -71.1428, 42.2888 ], [ -71.1428, 42.2888 ], [ -71.1429, 42.2887 ], [ -71.1429, 42.2887 ], [ -71.1429, 42.2887 ], [ -71.1430, 42.2887 ], [ -71.1430, 42.2887 ], [ -71.1430, 42.2886 ], [ -71.1431, 42.2886 ], [ -71.1431, 42.2886 ], [ -71.1432, 42.2886 ], [ -71.1432, 42.2886 ], [ -71.1432, 42.2886 ], [ -71.1434, 42.2886 ], [ -71.1436, 42.2885 ], [ -71.1437, 42.2885 ], [ -71.1439, 42.2884 ], [ -71.1441, 42.2884 ], [ -71.1449, 42.2882 ], [ -71.1450, 42.2882 ], [ -71.1451, 42.2882 ], [ -71.1452, 42.2881 ], [ -71.1455, 42.2881 ], [ -71.1456, 42.2880 ], [ -71.1456, 42.2880 ], [ -71.1456, 42.2880 ], [ -71.1457, 42.2880 ], [ -71.1459, 42.2879 ], [ -71.1459, 42.2879 ], [ -71.1460, 42.2879 ], [ -71.1466, 42.2877 ], [ -71.1471, 42.2875 ], [ -71.1471, 42.2875 ], [ -71.1471, 42.2874 ], [ -71.1472, 42.2873 ], [ -71.1472, 42.2873 ], [ -71.1472, 42.2873 ], [ -71.1472, 42.2873 ], [ -71.1473, 42.2873 ], [ -71.1473, 42.2872 ], [ -71.1473, 42.2872 ], [ -71.1473, 42.2872 ], [ -71.1473, 42.2871 ], [ -71.1473, 42.2871 ], [ -71.1474, 42.2870 ], [ -71.1474, 42.2870 ], [ -71.1474, 42.2870 ], [ -71.1475, 42.2870 ], [ -71.1476, 42.2869 ], [ -71.1476, 42.2869 ], [ -71.1476, 42.2869 ], [ -71.1477, 42.2869 ], [ -71.1477, 42.2869 ], [ -71.1477, 42.2869 ], [ -71.1477, 42.2868 ], [ -71.1477, 42.2867 ], [ -71.1477, 42.2866 ], [ -71.1477, 42.2866 ], [ -71.1477, 42.2866 ], [ -71.1477, 42.2866 ], [ -71.1477, 42.2866 ], [ -71.1477, 42.2865 ], [ -71.1477, 42.2864 ], [ -71.1477, 42.2863 ], [ -71.1477, 42.2862 ], [ -71.1477, 42.2861 ], [ -71.1477, 42.2859 ], [ -71.1477, 42.2859 ], [ -71.1477, 42.2859 ], [ -71.1477, 42.2857 ], [ -71.1477, 42.2857 ], [ -71.1477, 42.2855 ], [ -71.1477, 42.2855 ], [ -71.1477, 42.2853 ], [ -71.1477, 42.2853 ], [ -71.1477, 42.2852 ], [ -71.1477, 42.2851 ], [ -71.1476, 42.2850 ], [ -71.1476, 42.2849 ], [ -71.1476, 42.2849 ], [ -71.1476, 42.2849 ], [ -71.1476, 42.2849 ], [ -71.1476, 42.2848 ], [ -71.1476, 42.2848 ], [ -71.1476, 42.2845 ], [ -71.1476, 42.2845 ], [ -71.1475, 42.2842 ], [ -71.1474, 42.2841 ], [ -71.1473, 42.2838 ], [ -71.1473, 42.2837 ], [ -71.1472, 42.2836 ], [ -71.1472, 42.2836 ], [ -71.1470, 42.2832 ], [ -71.1467, 42.2829 ], [ -71.1466, 42.2827 ], [ -71.1465, 42.2826 ], [ -71.1465, 42.2826 ], [ -71.1462, 42.2823 ], [ -71.1461, 42.2823 ], [ -71.1459, 42.2821 ], [ -71.1452, 42.2815 ], [ -71.1451, 42.2815 ], [ -71.1451, 42.2814 ], [ -71.1448, 42.2812 ], [ -71.1444, 42.2809 ], [ -71.1443, 42.2808 ], [ -71.1442, 42.2807 ], [ -71.1441, 42.2806 ], [ -71.1439, 42.2805 ], [ -71.1438, 42.2804 ], [ -71.1438, 42.2804 ], [ -71.1433, 42.2798 ], [ -71.1425, 42.2790 ], [ -71.1424, 42.2789 ], [ -71.1421, 42.2786 ], [ -71.1416, 42.2780 ], [ -71.1415, 42.2778 ], [ -71.1413, 42.2777 ], [ -71.1412, 42.2774 ], [ -71.1410, 42.2771 ], [ -71.1409, 42.2768 ], [ -71.1409, 42.2767 ], [ -71.1408, 42.2766 ], [ -71.1408, 42.2766 ], [ -71.1407, 42.2764 ], [ -71.1407, 42.2762 ], [ -71.1406, 42.2760 ], [ -71.1406, 42.2756 ], [ -71.1406, 42.2752 ], [ -71.1407, 42.2750 ], [ -71.1407, 42.2748 ], [ -71.1407, 42.2746 ], [ -71.1407, 42.2746 ], [ -71.1407, 42.2745 ], [ -71.1407, 42.2745 ], [ -71.1408, 42.2744 ], [ -71.1408, 42.2743 ], [ -71.1408, 42.2742 ], [ -71.1408, 42.2741 ], [ -71.1409, 42.2740 ], [ -71.1409, 42.2739 ], [ -71.1409, 42.2739 ], [ -71.1410, 42.2738 ], [ -71.1410, 42.2737 ], [ -71.1411, 42.2736 ], [ -71.1411, 42.2735 ], [ -71.1412, 42.2734 ], [ -71.1412, 42.2733 ], [ -71.1413, 42.2733 ], [ -71.1414, 42.2731 ], [ -71.1418, 42.2727 ], [ -71.1420, 42.2725 ], [ -71.1420, 42.2725 ], [ -71.1420, 42.2725 ], [ -71.1421, 42.2725 ], [ -71.1421, 42.2725 ], [ -71.1421, 42.2725 ], [ -71.1421, 42.2725 ], [ -71.1421, 42.2724 ], [ -71.1422, 42.2724 ], [ -71.1426, 42.2722 ], [ -71.1426, 42.2722 ], [ -71.1426, 42.2722 ], [ -71.1426, 42.2722 ], [ -71.1430, 42.2721 ], [ -71.1433, 42.2720 ], [ -71.1435, 42.2720 ], [ -71.1436, 42.2720 ], [ -71.1437, 42.2720 ], [ -71.1437, 42.2720 ], [ -71.1437, 42.2720 ], [ -71.1437, 42.2720 ], [ -71.1437, 42.2720 ], [ -71.1437, 42.2720 ], [ -71.1439, 42.2719 ], [ -71.1441, 42.2719 ], [ -71.1441, 42.2719 ], [ -71.1441, 42.2719 ], [ -71.1442, 42.2718 ], [ -71.1442, 42.2718 ], [ -71.1443, 42.2718 ], [ -71.1444, 42.2717 ], [ -71.1445, 42.2716 ], [ -71.1446, 42.2714 ], [ -71.1447, 42.2713 ], [ -71.1447, 42.2713 ], [ -71.1447, 42.2712 ], [ -71.1447, 42.2712 ], [ -71.1448, 42.2709 ], [ -71.1449, 42.2708 ], [ -71.1449, 42.2708 ], [ -71.1449, 42.2707 ], [ -71.1450, 42.2706 ], [ -71.1450, 42.2706 ], [ -71.1450, 42.2705 ], [ -71.1451, 42.2703 ], [ -71.1452, 42.2703 ], [ -71.1453, 42.2701 ], [ -71.1453, 42.2701 ], [ -71.1454, 42.2699 ], [ -71.1454, 42.2698 ], [ -71.1454, 42.2698 ], [ -71.1454, 42.2698 ], [ -71.1454, 42.2698 ], [ -71.1454, 42.2697 ], [ -71.1454, 42.2695 ], [ -71.1454, 42.2693 ], [ -71.1453, 42.2691 ], [ -71.1453, 42.2690 ], [ -71.1453, 42.2690 ], [ -71.1452, 42.2689 ], [ -71.1451, 42.2686 ], [ -71.1451, 42.2685 ], [ -71.1451, 42.2685 ], [ -71.1451, 42.2685 ], [ -71.1451, 42.2683 ], [ -71.1451, 42.2683 ], [ -71.1450, 42.2681 ], [ -71.1450, 42.2678 ], [ -71.1450, 42.2676 ], [ -71.1450, 42.2674 ], [ -71.1451, 42.2673 ], [ -71.1451, 42.2672 ], [ -71.1451, 42.2670 ], [ -71.1451, 42.2668 ], [ -71.1450, 42.2668 ], [ -71.1450, 42.2667 ], [ -71.1448, 42.2664 ], [ -71.1446, 42.2662 ], [ -71.1446, 42.2662 ], [ -71.1446, 42.2662 ], [ -71.1445, 42.2662 ], [ -71.1443, 42.2660 ], [ -71.1443, 42.2660 ], [ -71.1443, 42.2660 ], [ -71.1440, 42.2657 ], [ -71.1439, 42.2657 ], [ -71.1437, 42.2655 ], [ -71.1435, 42.2654 ], [ -71.1435, 42.2654 ], [ -71.1434, 42.2653 ], [ -71.1430, 42.2651 ], [ -71.1429, 42.2651 ], [ -71.1429, 42.2651 ], [ -71.1429, 42.2651 ], [ -71.1429, 42.2650 ], [ -71.1427, 42.2649 ], [ -71.1427, 42.2648 ], [ -71.1426, 42.2647 ], [ -71.1423, 42.2645 ], [ -71.1420, 42.2644 ], [ -71.1419, 42.2643 ], [ -71.1419, 42.2643 ], [ -71.1418, 42.2642 ], [ -71.1418, 42.2642 ], [ -71.1418, 42.2642 ], [ -71.1416, 42.2641 ], [ -71.1416, 42.2641 ], [ -71.1416, 42.2640 ], [ -71.1415, 42.2640 ], [ -71.1415, 42.2640 ], [ -71.1415, 42.2639 ], [ -71.1415, 42.2639 ], [ -71.1415, 42.2639 ], [ -71.1414, 42.2638 ], [ -71.1414, 42.2638 ], [ -71.1414, 42.2637 ], [ -71.1414, 42.2637 ], [ -71.1414, 42.2637 ], [ -71.1414, 42.2636 ], [ -71.1414, 42.2634 ], [ -71.1414, 42.2633 ], [ -71.1414, 42.2632 ], [ -71.1414, 42.2632 ], [ -71.1414, 42.2632 ], [ -71.1414, 42.2632 ], [ -71.1414, 42.2631 ], [ -71.1414, 42.2631 ], [ -71.1414, 42.2631 ], [ -71.1413, 42.2631 ], [ -71.1413, 42.2630 ], [ -71.1413, 42.2630 ], [ -71.1413, 42.2630 ], [ -71.1413, 42.2630 ], [ -71.1413, 42.2630 ], [ -71.1413, 42.2629 ], [ -71.1412, 42.2627 ], [ -71.1412, 42.2626 ], [ -71.1411, 42.2624 ], [ -71.1411, 42.2624 ], [ -71.1411, 42.2624 ], [ -71.1411, 42.2622 ], [ -71.1411, 42.2622 ], [ -71.1411, 42.2622 ], [ -71.1411, 42.2622 ], [ -71.1411, 42.2621 ], [ -71.1411, 42.2621 ], [ -71.1411, 42.2621 ], [ -71.1410, 42.2621 ], [ -71.1410, 42.2620 ], [ -71.1410, 42.2620 ], [ -71.1410, 42.2620 ], [ -71.1410, 42.2619 ], [ -71.1410, 42.2619 ], [ -71.1410, 42.2619 ], [ -71.1410, 42.2616 ], [ -71.1411, 42.2614 ], [ -71.1411, 42.2614 ], [ -71.1411, 42.2614 ], [ -71.1411, 42.2613 ], [ -71.1411, 42.2613 ], [ -71.1411, 42.2613 ], [ -71.1412, 42.2612 ], [ -71.1412, 42.2612 ], [ -71.1412, 42.2611 ], [ -71.1412, 42.2610 ], [ -71.1412, 42.2610 ], [ -71.1412, 42.2610 ], [ -71.1413, 42.2609 ], [ -71.1413, 42.2609 ], [ -71.1413, 42.2608 ], [ -71.1413, 42.2608 ], [ -71.1413, 42.2607 ], [ -71.1414, 42.2606 ], [ -71.1414, 42.2606 ], [ -71.1414, 42.2606 ], [ -71.1414, 42.2605 ], [ -71.1414, 42.2605 ], [ -71.1414, 42.2605 ], [ -71.1413, 42.2603 ], [ -71.1413, 42.2603 ], [ -71.1413, 42.2602 ], [ -71.1413, 42.2602 ], [ -71.1412, 42.2601 ], [ -71.1412, 42.2601 ], [ -71.1412, 42.2601 ], [ -71.1412, 42.2601 ], [ -71.1412, 42.2600 ], [ -71.1412, 42.2600 ], [ -71.1411, 42.2599 ], [ -71.1411, 42.2599 ], [ -71.1410, 42.2599 ], [ -71.1410, 42.2599 ], [ -71.1410, 42.2599 ], [ -71.1410, 42.2598 ], [ -71.1410, 42.2598 ], [ -71.1409, 42.2598 ], [ -71.1409, 42.2598 ], [ -71.1409, 42.2598 ], [ -71.1409, 42.2598 ], [ -71.1408, 42.2597 ], [ -71.1408, 42.2597 ], [ -71.1407, 42.2597 ], [ -71.1407, 42.2596 ], [ -71.1407, 42.2596 ], [ -71.1406, 42.2596 ], [ -71.1406, 42.2595 ], [ -71.1406, 42.2595 ], [ -71.1406, 42.2595 ], [ -71.1405, 42.2595 ], [ -71.1405, 42.2595 ], [ -71.1405, 42.2595 ], [ -71.1405, 42.2595 ], [ -71.1405, 42.2595 ], [ -71.1405, 42.2595 ], [ -71.1405, 42.2594 ], [ -71.1405, 42.2594 ], [ -71.1404, 42.2594 ], [ -71.1404, 42.2594 ], [ -71.1404, 42.2594 ], [ -71.1404, 42.2593 ], [ -71.1404, 42.2593 ], [ -71.1404, 42.2593 ], [ -71.1404, 42.2593 ], [ -71.1404, 42.2592 ], [ -71.1404, 42.2592 ], [ -71.1404, 42.2592 ], [ -71.1403, 42.2592 ], [ -71.1403, 42.2591 ], [ -71.1403, 42.2591 ], [ -71.1403, 42.2591 ], [ -71.1403, 42.2590 ], [ -71.1403, 42.2590 ], [ -71.1403, 42.2590 ], [ -71.1403, 42.2589 ], [ -71.1403, 42.2589 ], [ -71.1403, 42.2588 ], [ -71.1403, 42.2588 ], [ -71.1403, 42.2588 ], [ -71.1403, 42.2587 ], [ -71.1403, 42.2587 ], [ -71.1403, 42.2586 ], [ -71.1403, 42.2585 ], [ -71.1404, 42.2585 ], [ -71.1404, 42.2584 ], [ -71.1405, 42.2584 ], [ -71.1406, 42.2583 ], [ -71.1406, 42.2583 ], [ -71.1406, 42.2583 ], [ -71.1409, 42.2581 ], [ -71.1411, 42.2580 ], [ -71.1411, 42.2580 ], [ -71.1412, 42.2579 ], [ -71.1416, 42.2577 ], [ -71.1418, 42.2575 ], [ -71.1418, 42.2575 ], [ -71.1420, 42.2572 ], [ -71.1422, 42.2569 ], [ -71.1425, 42.2564 ], [ -71.1426, 42.2562 ], [ -71.1426, 42.2562 ], [ -71.1427, 42.2560 ], [ -71.1429, 42.2557 ], [ -71.1429, 42.2557 ], [ -71.1429, 42.2557 ], [ -71.1429, 42.2556 ], [ -71.1430, 42.2555 ], [ -71.1431, 42.2554 ], [ -71.1433, 42.2549 ], [ -71.1435, 42.2546 ], [ -71.1435, 42.2546 ], [ -71.1436, 42.2546 ], [ -71.1436, 42.2546 ], [ -71.1436, 42.2546 ], [ -71.1436, 42.2546 ], [ -71.1436, 42.2545 ], [ -71.1436, 42.2545 ], [ -71.1439, 42.2543 ], [ -71.1442, 42.2540 ], [ -71.1446, 42.2537 ], [ -71.1447, 42.2536 ], [ -71.1451, 42.2534 ], [ -71.1456, 42.2532 ], [ -71.1459, 42.2531 ], [ -71.1459, 42.2530 ], [ -71.1459, 42.2530 ], [ -71.1460, 42.2530 ], [ -71.1460, 42.2530 ], [ -71.1461, 42.2530 ], [ -71.1461, 42.2530 ], [ -71.1466, 42.2557 ], [ -71.1523, 42.2583 ], [ -71.1585, 42.2551 ], [ -71.1634, 42.2590 ], [ -71.1648, 42.2601 ], [ -71.1689, 42.2634 ], [ -71.1713, 42.2653 ], [ -71.1713, 42.2656 ], [ -71.1713, 42.2659 ], [ -71.1715, 42.2661 ], [ -71.1716, 42.2662 ], [ -71.1718, 42.2663 ], [ -71.1720, 42.2664 ], [ -71.1723, 42.2665 ], [ -71.1727, 42.2665 ], [ -71.1731, 42.2666 ], [ -71.1736, 42.2667 ], [ -71.1739, 42.2668 ], [ -71.1741, 42.2670 ], [ -71.1743, 42.2671 ], [ -71.1744, 42.2673 ], [ -71.1745, 42.2676 ], [ -71.1745, 42.2678 ], [ -71.1746, 42.2680 ], [ -71.1746, 42.2683 ], [ -71.1745, 42.2686 ], [ -71.1743, 42.2688 ], [ -71.1739, 42.2691 ], [ -71.1736, 42.2693 ], [ -71.1732, 42.2697 ], [ -71.1730, 42.2700 ], [ -71.1729, 42.2701 ], [ -71.1729, 42.2702 ], [ -71.1729, 42.2704 ], [ -71.1731, 42.2706 ], [ -71.1734, 42.2709 ], [ -71.1735, 42.2711 ], [ -71.1735, 42.2714 ], [ -71.1737, 42.2716 ], [ -71.1738, 42.2719 ], [ -71.1740, 42.2722 ], [ -71.1743, 42.2726 ], [ -71.1746, 42.2730 ], [ -71.1747, 42.2734 ], [ -71.1748, 42.2737 ], [ -71.1748, 42.2738 ], [ -71.1748, 42.2740 ], [ -71.1748, 42.2741 ], [ -71.1747, 42.2743 ], [ -71.1746, 42.2745 ], [ -71.1745, 42.2747 ], [ -71.1744, 42.2750 ], [ -71.1744, 42.2752 ], [ -71.1745, 42.2754 ], [ -71.1746, 42.2756 ], [ -71.1747, 42.2758 ], [ -71.1749, 42.2760 ], [ -71.1754, 42.2762 ], [ -71.1759, 42.2764 ], [ -71.1763, 42.2766 ], [ -71.1767, 42.2767 ], [ -71.1769, 42.2768 ], [ -71.1771, 42.2768 ], [ -71.1774, 42.2768 ], [ -71.1785, 42.2767 ], [ -71.1791, 42.2765 ], [ -71.1797, 42.2764 ], [ -71.1804, 42.2763 ], [ -71.1812, 42.2762 ], [ -71.1824, 42.2759 ], [ -71.1827, 42.2758 ], [ -71.1828, 42.2758 ], [ -71.1830, 42.2758 ], [ -71.1831, 42.2759 ], [ -71.1832, 42.2759 ], [ -71.1852, 42.2794 ], [ -71.1853, 42.2795 ], [ -71.1853, 42.2795 ], [ -71.1854, 42.2796 ], [ -71.1855, 42.2796 ], [ -71.1859, 42.2797 ], [ -71.1870, 42.2800 ], [ -71.1878, 42.2802 ], [ -71.1881, 42.2804 ], [ -71.1884, 42.2805 ], [ -71.1886, 42.2806 ], [ -71.1890, 42.2809 ], [ -71.1895, 42.2811 ], [ -71.1899, 42.2812 ], [ -71.1902, 42.2814 ], [ -71.1905, 42.2816 ], [ -71.1907, 42.2818 ], [ -71.1909, 42.2821 ], [ -71.1911, 42.2823 ], [ -71.1912, 42.2826 ], [ -71.1912, 42.2829 ], [ -71.1909, 42.2832 ], [ -71.1786, 42.2946 ], [ -71.1647, 42.3038 ] ] ] } }, + { "type": "Feature", "properties": { "Name": "Hyde Park", "density": 0.4400 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -71.1258, 42.2721 ], [ -71.1257, 42.2723 ], [ -71.1257, 42.2723 ], [ -71.1259, 42.2720 ], [ -71.1261, 42.2716 ], [ -71.1260, 42.2715 ], [ -71.1257, 42.2715 ], [ -71.1255, 42.2714 ], [ -71.1252, 42.2713 ], [ -71.1252, 42.2714 ], [ -71.1248, 42.2713 ], [ -71.1248, 42.2713 ], [ -71.1248, 42.2712 ], [ -71.1247, 42.2702 ], [ -71.1247, 42.2702 ], [ -71.1225, 42.2700 ], [ -71.1223, 42.2700 ], [ -71.1225, 42.2694 ], [ -71.1221, 42.2693 ], [ -71.1219, 42.2703 ], [ -71.1221, 42.2704 ], [ -71.1220, 42.2709 ], [ -71.1220, 42.2710 ], [ -71.1219, 42.2709 ], [ -71.1218, 42.2711 ], [ -71.1218, 42.2711 ], [ -71.1216, 42.2710 ], [ -71.1213, 42.2708 ], [ -71.1213, 42.2707 ], [ -71.1209, 42.2705 ], [ -71.1206, 42.2703 ], [ -71.1206, 42.2703 ], [ -71.1204, 42.2706 ], [ -71.1203, 42.2709 ], [ -71.1203, 42.2711 ], [ -71.1202, 42.2714 ], [ -71.1201, 42.2725 ], [ -71.1198, 42.2725 ], [ -71.1190, 42.2725 ], [ -71.1186, 42.2725 ], [ -71.1184, 42.2725 ], [ -71.1182, 42.2727 ], [ -71.1179, 42.2728 ], [ -71.1177, 42.2729 ], [ -71.1176, 42.2730 ], [ -71.1174, 42.2732 ], [ -71.1173, 42.2733 ], [ -71.1171, 42.2736 ], [ -71.1168, 42.2740 ], [ -71.1162, 42.2749 ], [ -71.1159, 42.2751 ], [ -71.1159, 42.2753 ], [ -71.1158, 42.2754 ], [ -71.1158, 42.2757 ], [ -71.1158, 42.2760 ], [ -71.1157, 42.2768 ], [ -71.1157, 42.2772 ], [ -71.1157, 42.2772 ], [ -71.1156, 42.2773 ], [ -71.1155, 42.2774 ], [ -71.1154, 42.2774 ], [ -71.1154, 42.2775 ], [ -71.1154, 42.2775 ], [ -71.1152, 42.2774 ], [ -71.1150, 42.2776 ], [ -71.1149, 42.2777 ], [ -71.1146, 42.2774 ], [ -71.1146, 42.2774 ], [ -71.1146, 42.2774 ], [ -71.1146, 42.2774 ], [ -71.1146, 42.2774 ], [ -71.1143, 42.2772 ], [ -71.1142, 42.2771 ], [ -71.1142, 42.2771 ], [ -71.1142, 42.2771 ], [ -71.1142, 42.2771 ], [ -71.1140, 42.2770 ], [ -71.1112, 42.2755 ], [ -71.1107, 42.2752 ], [ -71.1106, 42.2752 ], [ -71.1103, 42.2750 ], [ -71.1097, 42.2747 ], [ -71.1096, 42.2746 ], [ -71.1096, 42.2746 ], [ -71.1095, 42.2746 ], [ -71.1093, 42.2744 ], [ -71.1092, 42.2744 ], [ -71.1092, 42.2744 ], [ -71.1092, 42.2743 ], [ -71.1091, 42.2743 ], [ -71.1091, 42.2743 ], [ -71.1084, 42.2735 ], [ -71.1076, 42.2727 ], [ -71.1071, 42.2722 ], [ -71.1067, 42.2718 ], [ -71.1067, 42.2718 ], [ -71.1067, 42.2718 ], [ -71.1066, 42.2716 ], [ -71.1065, 42.2715 ], [ -71.1065, 42.2715 ], [ -71.1065, 42.2715 ], [ -71.1065, 42.2714 ], [ -71.1064, 42.2714 ], [ -71.1063, 42.2712 ], [ -71.1062, 42.2711 ], [ -71.1062, 42.2711 ], [ -71.1061, 42.2710 ], [ -71.1061, 42.2710 ], [ -71.1060, 42.2710 ], [ -71.1056, 42.2706 ], [ -71.1055, 42.2705 ], [ -71.1049, 42.2700 ], [ -71.1049, 42.2700 ], [ -71.1049, 42.2700 ], [ -71.1046, 42.2697 ], [ -71.1045, 42.2697 ], [ -71.1045, 42.2697 ], [ -71.1045, 42.2696 ], [ -71.1044, 42.2695 ], [ -71.1043, 42.2695 ], [ -71.1043, 42.2695 ], [ -71.1043, 42.2695 ], [ -71.1040, 42.2692 ], [ -71.1038, 42.2691 ], [ -71.1038, 42.2690 ], [ -71.1037, 42.2689 ], [ -71.1035, 42.2688 ], [ -71.1033, 42.2686 ], [ -71.1031, 42.2684 ], [ -71.1029, 42.2682 ], [ -71.1027, 42.2681 ], [ -71.1025, 42.2679 ], [ -71.1024, 42.2678 ], [ -71.1020, 42.2675 ], [ -71.1018, 42.2673 ], [ -71.1015, 42.2671 ], [ -71.1014, 42.2669 ], [ -71.1013, 42.2669 ], [ -71.1012, 42.2668 ], [ -71.1012, 42.2668 ], [ -71.1008, 42.2664 ], [ -71.1005, 42.2661 ], [ -71.1005, 42.2661 ], [ -71.1005, 42.2661 ], [ -71.1004, 42.2661 ], [ -71.1002, 42.2659 ], [ -71.1002, 42.2659 ], [ -71.1001, 42.2658 ], [ -71.0999, 42.2657 ], [ -71.0998, 42.2656 ], [ -71.0996, 42.2654 ], [ -71.0991, 42.2651 ], [ -71.0991, 42.2651 ], [ -71.0996, 42.2648 ], [ -71.0996, 42.2648 ], [ -71.0992, 42.2644 ], [ -71.0986, 42.2638 ], [ -71.0980, 42.2631 ], [ -71.0980, 42.2631 ], [ -71.0979, 42.2629 ], [ -71.0978, 42.2629 ], [ -71.0979, 42.2629 ], [ -71.0979, 42.2629 ], [ -71.0979, 42.2629 ], [ -71.0979, 42.2629 ], [ -71.0979, 42.2629 ], [ -71.0979, 42.2629 ], [ -71.0979, 42.2628 ], [ -71.0980, 42.2628 ], [ -71.0980, 42.2628 ], [ -71.0981, 42.2628 ], [ -71.0982, 42.2628 ], [ -71.0983, 42.2628 ], [ -71.0984, 42.2628 ], [ -71.0985, 42.2628 ], [ -71.0985, 42.2628 ], [ -71.0986, 42.2628 ], [ -71.0986, 42.2628 ], [ -71.0986, 42.2628 ], [ -71.0987, 42.2627 ], [ -71.0987, 42.2627 ], [ -71.0988, 42.2627 ], [ -71.0988, 42.2627 ], [ -71.0988, 42.2627 ], [ -71.0988, 42.2627 ], [ -71.0988, 42.2627 ], [ -71.0988, 42.2627 ], [ -71.0988, 42.2627 ], [ -71.0988, 42.2627 ], [ -71.0988, 42.2627 ], [ -71.0988, 42.2627 ], [ -71.0988, 42.2627 ], [ -71.0989, 42.2627 ], [ -71.0989, 42.2627 ], [ -71.0989, 42.2627 ], [ -71.0989, 42.2626 ], [ -71.0990, 42.2626 ], [ -71.0990, 42.2626 ], [ -71.0990, 42.2626 ], [ -71.0991, 42.2625 ], [ -71.0992, 42.2625 ], [ -71.0992, 42.2625 ], [ -71.0992, 42.2624 ], [ -71.0993, 42.2623 ], [ -71.0993, 42.2623 ], [ -71.0994, 42.2623 ], [ -71.0995, 42.2622 ], [ -71.0995, 42.2622 ], [ -71.0995, 42.2621 ], [ -71.0995, 42.2621 ], [ -71.0996, 42.2621 ], [ -71.0996, 42.2620 ], [ -71.0997, 42.2620 ], [ -71.0997, 42.2619 ], [ -71.0997, 42.2619 ], [ -71.0998, 42.2618 ], [ -71.0998, 42.2618 ], [ -71.0999, 42.2617 ], [ -71.1000, 42.2616 ], [ -71.1000, 42.2616 ], [ -71.1001, 42.2615 ], [ -71.1001, 42.2615 ], [ -71.1002, 42.2615 ], [ -71.1003, 42.2614 ], [ -71.1003, 42.2614 ], [ -71.1004, 42.2613 ], [ -71.1005, 42.2613 ], [ -71.1005, 42.2612 ], [ -71.1006, 42.2612 ], [ -71.1006, 42.2612 ], [ -71.1006, 42.2612 ], [ -71.1007, 42.2611 ], [ -71.1007, 42.2611 ], [ -71.1007, 42.2611 ], [ -71.1008, 42.2611 ], [ -71.1009, 42.2610 ], [ -71.1010, 42.2610 ], [ -71.1010, 42.2610 ], [ -71.1011, 42.2609 ], [ -71.1011, 42.2609 ], [ -71.1011, 42.2609 ], [ -71.1012, 42.2608 ], [ -71.1012, 42.2608 ], [ -71.1013, 42.2608 ], [ -71.1014, 42.2607 ], [ -71.1014, 42.2607 ], [ -71.1015, 42.2607 ], [ -71.1015, 42.2607 ], [ -71.1015, 42.2606 ], [ -71.1016, 42.2606 ], [ -71.1017, 42.2605 ], [ -71.1018, 42.2605 ], [ -71.1018, 42.2604 ], [ -71.1019, 42.2604 ], [ -71.1019, 42.2604 ], [ -71.1019, 42.2604 ], [ -71.1020, 42.2604 ], [ -71.1020, 42.2603 ], [ -71.1021, 42.2603 ], [ -71.1021, 42.2603 ], [ -71.1022, 42.2602 ], [ -71.1022, 42.2602 ], [ -71.1022, 42.2602 ], [ -71.1022, 42.2602 ], [ -71.1022, 42.2602 ], [ -71.1022, 42.2602 ], [ -71.1023, 42.2602 ], [ -71.1023, 42.2602 ], [ -71.1023, 42.2602 ], [ -71.1023, 42.2602 ], [ -71.1023, 42.2602 ], [ -71.1023, 42.2601 ], [ -71.1022, 42.2601 ], [ -71.1023, 42.2601 ], [ -71.1023, 42.2601 ], [ -71.1023, 42.2601 ], [ -71.1023, 42.2601 ], [ -71.1023, 42.2601 ], [ -71.1023, 42.2601 ], [ -71.1023, 42.2601 ], [ -71.1023, 42.2601 ], [ -71.1023, 42.2601 ], [ -71.1023, 42.2601 ], [ -71.1023, 42.2601 ], [ -71.1023, 42.2601 ], [ -71.1023, 42.2601 ], [ -71.1023, 42.2601 ], [ -71.1023, 42.2601 ], [ -71.1023, 42.2601 ], [ -71.1023, 42.2601 ], [ -71.1023, 42.2601 ], [ -71.1023, 42.2601 ], [ -71.1023, 42.2601 ], [ -71.1023, 42.2601 ], [ -71.1023, 42.2601 ], [ -71.1023, 42.2601 ], [ -71.1023, 42.2601 ], [ -71.1023, 42.2601 ], [ -71.1023, 42.2601 ], [ -71.1024, 42.2600 ], [ -71.1024, 42.2600 ], [ -71.1024, 42.2600 ], [ -71.1024, 42.2600 ], [ -71.1024, 42.2600 ], [ -71.1024, 42.2600 ], [ -71.1024, 42.2600 ], [ -71.1024, 42.2600 ], [ -71.1024, 42.2600 ], [ -71.1024, 42.2600 ], [ -71.1024, 42.2600 ], [ -71.1024, 42.2600 ], [ -71.1024, 42.2600 ], [ -71.1024, 42.2600 ], [ -71.1024, 42.2600 ], [ -71.1024, 42.2600 ], [ -71.1024, 42.2600 ], [ -71.1024, 42.2600 ], [ -71.1025, 42.2600 ], [ -71.1025, 42.2600 ], [ -71.1025, 42.2600 ], [ -71.1025, 42.2600 ], [ -71.1025, 42.2600 ], [ -71.1025, 42.2600 ], [ -71.1025, 42.2600 ], [ -71.1025, 42.2600 ], [ -71.1025, 42.2600 ], [ -71.1025, 42.2600 ], [ -71.1025, 42.2600 ], [ -71.1026, 42.2600 ], [ -71.1026, 42.2600 ], [ -71.1026, 42.2600 ], [ -71.1026, 42.2600 ], [ -71.1026, 42.2600 ], [ -71.1026, 42.2600 ], [ -71.1026, 42.2600 ], [ -71.1026, 42.2600 ], [ -71.1026, 42.2599 ], [ -71.1026, 42.2599 ], [ -71.1026, 42.2599 ], [ -71.1026, 42.2599 ], [ -71.1026, 42.2599 ], [ -71.1026, 42.2599 ], [ -71.1027, 42.2599 ], [ -71.1027, 42.2599 ], [ -71.1027, 42.2599 ], [ -71.1027, 42.2599 ], [ -71.1027, 42.2599 ], [ -71.1027, 42.2599 ], [ -71.1028, 42.2599 ], [ -71.1028, 42.2599 ], [ -71.1029, 42.2598 ], [ -71.1030, 42.2598 ], [ -71.1030, 42.2598 ], [ -71.1032, 42.2598 ], [ -71.1033, 42.2598 ], [ -71.1033, 42.2597 ], [ -71.1033, 42.2598 ], [ -71.1033, 42.2598 ], [ -71.1033, 42.2598 ], [ -71.1033, 42.2598 ], [ -71.1034, 42.2598 ], [ -71.1034, 42.2598 ], [ -71.1034, 42.2598 ], [ -71.1034, 42.2598 ], [ -71.1034, 42.2597 ], [ -71.1034, 42.2597 ], [ -71.1034, 42.2597 ], [ -71.1034, 42.2597 ], [ -71.1034, 42.2597 ], [ -71.1034, 42.2597 ], [ -71.1034, 42.2597 ], [ -71.1034, 42.2597 ], [ -71.1034, 42.2597 ], [ -71.1034, 42.2597 ], [ -71.1034, 42.2597 ], [ -71.1034, 42.2597 ], [ -71.1034, 42.2597 ], [ -71.1034, 42.2597 ], [ -71.1034, 42.2597 ], [ -71.1035, 42.2597 ], [ -71.1035, 42.2597 ], [ -71.1035, 42.2597 ], [ -71.1035, 42.2597 ], [ -71.1035, 42.2597 ], [ -71.1035, 42.2597 ], [ -71.1035, 42.2597 ], [ -71.1036, 42.2598 ], [ -71.1036, 42.2598 ], [ -71.1036, 42.2598 ], [ -71.1036, 42.2598 ], [ -71.1036, 42.2598 ], [ -71.1036, 42.2598 ], [ -71.1036, 42.2598 ], [ -71.1036, 42.2598 ], [ -71.1036, 42.2598 ], [ -71.1036, 42.2598 ], [ -71.1036, 42.2598 ], [ -71.1036, 42.2598 ], [ -71.1036, 42.2598 ], [ -71.1036, 42.2598 ], [ -71.1036, 42.2598 ], [ -71.1037, 42.2598 ], [ -71.1038, 42.2598 ], [ -71.1038, 42.2598 ], [ -71.1038, 42.2599 ], [ -71.1039, 42.2599 ], [ -71.1039, 42.2599 ], [ -71.1039, 42.2599 ], [ -71.1040, 42.2600 ], [ -71.1041, 42.2601 ], [ -71.1042, 42.2602 ], [ -71.1042, 42.2602 ], [ -71.1043, 42.2603 ], [ -71.1043, 42.2603 ], [ -71.1044, 42.2604 ], [ -71.1044, 42.2604 ], [ -71.1045, 42.2605 ], [ -71.1045, 42.2605 ], [ -71.1045, 42.2605 ], [ -71.1046, 42.2606 ], [ -71.1046, 42.2606 ], [ -71.1047, 42.2607 ], [ -71.1047, 42.2607 ], [ -71.1047, 42.2607 ], [ -71.1048, 42.2608 ], [ -71.1049, 42.2608 ], [ -71.1049, 42.2608 ], [ -71.1050, 42.2608 ], [ -71.1050, 42.2608 ], [ -71.1050, 42.2608 ], [ -71.1051, 42.2609 ], [ -71.1052, 42.2609 ], [ -71.1052, 42.2609 ], [ -71.1053, 42.2609 ], [ -71.1054, 42.2609 ], [ -71.1054, 42.2609 ], [ -71.1055, 42.2609 ], [ -71.1056, 42.2609 ], [ -71.1056, 42.2609 ], [ -71.1057, 42.2609 ], [ -71.1058, 42.2609 ], [ -71.1058, 42.2609 ], [ -71.1059, 42.2609 ], [ -71.1059, 42.2609 ], [ -71.1059, 42.2609 ], [ -71.1060, 42.2609 ], [ -71.1061, 42.2609 ], [ -71.1062, 42.2609 ], [ -71.1063, 42.2609 ], [ -71.1064, 42.2608 ], [ -71.1065, 42.2608 ], [ -71.1066, 42.2608 ], [ -71.1066, 42.2608 ], [ -71.1067, 42.2608 ], [ -71.1067, 42.2608 ], [ -71.1068, 42.2608 ], [ -71.1069, 42.2608 ], [ -71.1069, 42.2608 ], [ -71.1070, 42.2608 ], [ -71.1070, 42.2608 ], [ -71.1070, 42.2608 ], [ -71.1070, 42.2608 ], [ -71.1070, 42.2608 ], [ -71.1070, 42.2608 ], [ -71.1070, 42.2607 ], [ -71.1070, 42.2607 ], [ -71.1070, 42.2607 ], [ -71.1070, 42.2607 ], [ -71.1070, 42.2607 ], [ -71.1070, 42.2607 ], [ -71.1070, 42.2607 ], [ -71.1070, 42.2607 ], [ -71.1070, 42.2607 ], [ -71.1070, 42.2607 ], [ -71.1070, 42.2607 ], [ -71.1070, 42.2607 ], [ -71.1070, 42.2607 ], [ -71.1070, 42.2607 ], [ -71.1070, 42.2607 ], [ -71.1070, 42.2607 ], [ -71.1070, 42.2607 ], [ -71.1070, 42.2607 ], [ -71.1070, 42.2607 ], [ -71.1069, 42.2607 ], [ -71.1069, 42.2607 ], [ -71.1069, 42.2607 ], [ -71.1069, 42.2607 ], [ -71.1069, 42.2607 ], [ -71.1069, 42.2607 ], [ -71.1069, 42.2607 ], [ -71.1069, 42.2607 ], [ -71.1069, 42.2607 ], [ -71.1069, 42.2607 ], [ -71.1069, 42.2607 ], [ -71.1069, 42.2607 ], [ -71.1069, 42.2607 ], [ -71.1069, 42.2607 ], [ -71.1069, 42.2607 ], [ -71.1069, 42.2607 ], [ -71.1069, 42.2607 ], [ -71.1069, 42.2607 ], [ -71.1069, 42.2607 ], [ -71.1069, 42.2607 ], [ -71.1069, 42.2607 ], [ -71.1069, 42.2607 ], [ -71.1069, 42.2607 ], [ -71.1069, 42.2607 ], [ -71.1069, 42.2607 ], [ -71.1069, 42.2607 ], [ -71.1069, 42.2607 ], [ -71.1069, 42.2607 ], [ -71.1069, 42.2607 ], [ -71.1069, 42.2607 ], [ -71.1069, 42.2607 ], [ -71.1069, 42.2607 ], [ -71.1069, 42.2607 ], [ -71.1069, 42.2607 ], [ -71.1069, 42.2607 ], [ -71.1070, 42.2607 ], [ -71.1070, 42.2607 ], [ -71.1070, 42.2607 ], [ -71.1070, 42.2607 ], [ -71.1070, 42.2607 ], [ -71.1070, 42.2607 ], [ -71.1070, 42.2607 ], [ -71.1070, 42.2607 ], [ -71.1070, 42.2607 ], [ -71.1070, 42.2607 ], [ -71.1070, 42.2607 ], [ -71.1070, 42.2607 ], [ -71.1072, 42.2607 ], [ -71.1073, 42.2607 ], [ -71.1073, 42.2607 ], [ -71.1073, 42.2607 ], [ -71.1074, 42.2607 ], [ -71.1075, 42.2608 ], [ -71.1075, 42.2608 ], [ -71.1076, 42.2608 ], [ -71.1076, 42.2608 ], [ -71.1077, 42.2608 ], [ -71.1078, 42.2608 ], [ -71.1078, 42.2608 ], [ -71.1079, 42.2609 ], [ -71.1079, 42.2609 ], [ -71.1080, 42.2609 ], [ -71.1080, 42.2610 ], [ -71.1080, 42.2610 ], [ -71.1081, 42.2610 ], [ -71.1081, 42.2610 ], [ -71.1081, 42.2610 ], [ -71.1082, 42.2610 ], [ -71.1082, 42.2610 ], [ -71.1082, 42.2610 ], [ -71.1082, 42.2610 ], [ -71.1083, 42.2611 ], [ -71.1083, 42.2610 ], [ -71.1084, 42.2611 ], [ -71.1083, 42.2611 ], [ -71.1084, 42.2612 ], [ -71.1084, 42.2612 ], [ -71.1086, 42.2612 ], [ -71.1086, 42.2612 ], [ -71.1087, 42.2612 ], [ -71.1088, 42.2613 ], [ -71.1089, 42.2613 ], [ -71.1089, 42.2613 ], [ -71.1090, 42.2613 ], [ -71.1091, 42.2613 ], [ -71.1091, 42.2613 ], [ -71.1091, 42.2613 ], [ -71.1092, 42.2613 ], [ -71.1092, 42.2613 ], [ -71.1093, 42.2613 ], [ -71.1093, 42.2613 ], [ -71.1094, 42.2613 ], [ -71.1095, 42.2613 ], [ -71.1095, 42.2613 ], [ -71.1095, 42.2613 ], [ -71.1096, 42.2613 ], [ -71.1096, 42.2612 ], [ -71.1097, 42.2612 ], [ -71.1097, 42.2612 ], [ -71.1098, 42.2612 ], [ -71.1098, 42.2612 ], [ -71.1099, 42.2612 ], [ -71.1099, 42.2612 ], [ -71.1099, 42.2612 ], [ -71.1100, 42.2612 ], [ -71.1100, 42.2612 ], [ -71.1101, 42.2612 ], [ -71.1101, 42.2612 ], [ -71.1102, 42.2612 ], [ -71.1103, 42.2612 ], [ -71.1103, 42.2612 ], [ -71.1103, 42.2612 ], [ -71.1103, 42.2612 ], [ -71.1103, 42.2612 ], [ -71.1103, 42.2612 ], [ -71.1103, 42.2612 ], [ -71.1103, 42.2612 ], [ -71.1104, 42.2612 ], [ -71.1104, 42.2612 ], [ -71.1104, 42.2612 ], [ -71.1104, 42.2612 ], [ -71.1104, 42.2612 ], [ -71.1104, 42.2612 ], [ -71.1104, 42.2612 ], [ -71.1104, 42.2612 ], [ -71.1104, 42.2612 ], [ -71.1104, 42.2612 ], [ -71.1104, 42.2612 ], [ -71.1105, 42.2612 ], [ -71.1105, 42.2612 ], [ -71.1105, 42.2612 ], [ -71.1105, 42.2612 ], [ -71.1105, 42.2612 ], [ -71.1105, 42.2612 ], [ -71.1106, 42.2612 ], [ -71.1106, 42.2612 ], [ -71.1106, 42.2612 ], [ -71.1106, 42.2612 ], [ -71.1106, 42.2612 ], [ -71.1107, 42.2612 ], [ -71.1107, 42.2612 ], [ -71.1107, 42.2612 ], [ -71.1107, 42.2612 ], [ -71.1108, 42.2611 ], [ -71.1108, 42.2611 ], [ -71.1108, 42.2611 ], [ -71.1109, 42.2610 ], [ -71.1110, 42.2610 ], [ -71.1111, 42.2610 ], [ -71.1111, 42.2610 ], [ -71.1112, 42.2609 ], [ -71.1113, 42.2609 ], [ -71.1113, 42.2609 ], [ -71.1113, 42.2609 ], [ -71.1113, 42.2609 ], [ -71.1113, 42.2609 ], [ -71.1114, 42.2609 ], [ -71.1115, 42.2608 ], [ -71.1115, 42.2608 ], [ -71.1116, 42.2608 ], [ -71.1117, 42.2607 ], [ -71.1117, 42.2607 ], [ -71.1118, 42.2606 ], [ -71.1118, 42.2606 ], [ -71.1118, 42.2606 ], [ -71.1118, 42.2606 ], [ -71.1118, 42.2606 ], [ -71.1118, 42.2606 ], [ -71.1118, 42.2606 ], [ -71.1118, 42.2606 ], [ -71.1118, 42.2606 ], [ -71.1118, 42.2606 ], [ -71.1118, 42.2606 ], [ -71.1118, 42.2606 ], [ -71.1118, 42.2606 ], [ -71.1118, 42.2606 ], [ -71.1118, 42.2606 ], [ -71.1118, 42.2606 ], [ -71.1118, 42.2606 ], [ -71.1119, 42.2606 ], [ -71.1119, 42.2606 ], [ -71.1119, 42.2606 ], [ -71.1119, 42.2606 ], [ -71.1119, 42.2606 ], [ -71.1119, 42.2606 ], [ -71.1119, 42.2606 ], [ -71.1119, 42.2606 ], [ -71.1119, 42.2606 ], [ -71.1119, 42.2606 ], [ -71.1119, 42.2606 ], [ -71.1119, 42.2606 ], [ -71.1119, 42.2606 ], [ -71.1119, 42.2606 ], [ -71.1119, 42.2606 ], [ -71.1119, 42.2606 ], [ -71.1119, 42.2606 ], [ -71.1119, 42.2606 ], [ -71.1119, 42.2606 ], [ -71.1119, 42.2606 ], [ -71.1119, 42.2606 ], [ -71.1119, 42.2606 ], [ -71.1119, 42.2606 ], [ -71.1119, 42.2606 ], [ -71.1119, 42.2606 ], [ -71.1119, 42.2606 ], [ -71.1119, 42.2606 ], [ -71.1119, 42.2606 ], [ -71.1119, 42.2606 ], [ -71.1119, 42.2606 ], [ -71.1119, 42.2606 ], [ -71.1119, 42.2606 ], [ -71.1119, 42.2606 ], [ -71.1119, 42.2606 ], [ -71.1119, 42.2606 ], [ -71.1119, 42.2606 ], [ -71.1119, 42.2606 ], [ -71.1119, 42.2606 ], [ -71.1119, 42.2606 ], [ -71.1119, 42.2606 ], [ -71.1119, 42.2606 ], [ -71.1119, 42.2606 ], [ -71.1119, 42.2605 ], [ -71.1119, 42.2605 ], [ -71.1119, 42.2605 ], [ -71.1119, 42.2604 ], [ -71.1120, 42.2604 ], [ -71.1120, 42.2603 ], [ -71.1120, 42.2603 ], [ -71.1121, 42.2603 ], [ -71.1121, 42.2602 ], [ -71.1121, 42.2602 ], [ -71.1122, 42.2602 ], [ -71.1122, 42.2601 ], [ -71.1122, 42.2601 ], [ -71.1123, 42.2600 ], [ -71.1123, 42.2600 ], [ -71.1124, 42.2600 ], [ -71.1124, 42.2599 ], [ -71.1124, 42.2599 ], [ -71.1124, 42.2599 ], [ -71.1124, 42.2599 ], [ -71.1124, 42.2599 ], [ -71.1124, 42.2599 ], [ -71.1124, 42.2599 ], [ -71.1124, 42.2599 ], [ -71.1124, 42.2599 ], [ -71.1124, 42.2599 ], [ -71.1125, 42.2599 ], [ -71.1125, 42.2599 ], [ -71.1125, 42.2598 ], [ -71.1125, 42.2598 ], [ -71.1125, 42.2598 ], [ -71.1125, 42.2598 ], [ -71.1125, 42.2598 ], [ -71.1125, 42.2598 ], [ -71.1125, 42.2598 ], [ -71.1125, 42.2598 ], [ -71.1125, 42.2598 ], [ -71.1125, 42.2598 ], [ -71.1125, 42.2598 ], [ -71.1125, 42.2598 ], [ -71.1125, 42.2598 ], [ -71.1125, 42.2598 ], [ -71.1125, 42.2598 ], [ -71.1125, 42.2598 ], [ -71.1125, 42.2598 ], [ -71.1125, 42.2598 ], [ -71.1125, 42.2598 ], [ -71.1125, 42.2598 ], [ -71.1125, 42.2597 ], [ -71.1125, 42.2597 ], [ -71.1125, 42.2597 ], [ -71.1125, 42.2597 ], [ -71.1125, 42.2597 ], [ -71.1125, 42.2597 ], [ -71.1125, 42.2597 ], [ -71.1125, 42.2597 ], [ -71.1125, 42.2597 ], [ -71.1125, 42.2596 ], [ -71.1126, 42.2596 ], [ -71.1126, 42.2596 ], [ -71.1127, 42.2595 ], [ -71.1127, 42.2595 ], [ -71.1128, 42.2594 ], [ -71.1128, 42.2594 ], [ -71.1129, 42.2593 ], [ -71.1129, 42.2593 ], [ -71.1129, 42.2593 ], [ -71.1130, 42.2592 ], [ -71.1130, 42.2592 ], [ -71.1131, 42.2592 ], [ -71.1131, 42.2591 ], [ -71.1132, 42.2591 ], [ -71.1132, 42.2591 ], [ -71.1132, 42.2590 ], [ -71.1133, 42.2590 ], [ -71.1131, 42.2588 ], [ -71.1130, 42.2587 ], [ -71.1095, 42.2554 ], [ -71.1093, 42.2479 ], [ -71.1259, 42.2393 ], [ -71.1263, 42.2391 ], [ -71.1262, 42.2390 ], [ -71.1261, 42.2389 ], [ -71.1260, 42.2387 ], [ -71.1260, 42.2386 ], [ -71.1259, 42.2385 ], [ -71.1258, 42.2384 ], [ -71.1257, 42.2382 ], [ -71.1257, 42.2379 ], [ -71.1256, 42.2379 ], [ -71.1256, 42.2378 ], [ -71.1255, 42.2377 ], [ -71.1253, 42.2376 ], [ -71.1248, 42.2374 ], [ -71.1247, 42.2374 ], [ -71.1246, 42.2373 ], [ -71.1246, 42.2372 ], [ -71.1245, 42.2371 ], [ -71.1244, 42.2368 ], [ -71.1242, 42.2365 ], [ -71.1240, 42.2363 ], [ -71.1236, 42.2360 ], [ -71.1234, 42.2359 ], [ -71.1233, 42.2358 ], [ -71.1232, 42.2357 ], [ -71.1229, 42.2355 ], [ -71.1227, 42.2354 ], [ -71.1226, 42.2354 ], [ -71.1226, 42.2353 ], [ -71.1226, 42.2353 ], [ -71.1225, 42.2351 ], [ -71.1224, 42.2350 ], [ -71.1224, 42.2349 ], [ -71.1224, 42.2348 ], [ -71.1225, 42.2347 ], [ -71.1225, 42.2346 ], [ -71.1226, 42.2344 ], [ -71.1226, 42.2343 ], [ -71.1227, 42.2343 ], [ -71.1229, 42.2342 ], [ -71.1231, 42.2342 ], [ -71.1233, 42.2342 ], [ -71.1236, 42.2342 ], [ -71.1238, 42.2343 ], [ -71.1240, 42.2343 ], [ -71.1242, 42.2342 ], [ -71.1243, 42.2342 ], [ -71.1244, 42.2341 ], [ -71.1245, 42.2341 ], [ -71.1245, 42.2340 ], [ -71.1246, 42.2338 ], [ -71.1247, 42.2337 ], [ -71.1247, 42.2336 ], [ -71.1246, 42.2335 ], [ -71.1246, 42.2333 ], [ -71.1245, 42.2332 ], [ -71.1245, 42.2331 ], [ -71.1245, 42.2330 ], [ -71.1245, 42.2329 ], [ -71.1245, 42.2327 ], [ -71.1247, 42.2326 ], [ -71.1248, 42.2325 ], [ -71.1249, 42.2324 ], [ -71.1250, 42.2323 ], [ -71.1251, 42.2322 ], [ -71.1252, 42.2320 ], [ -71.1253, 42.2319 ], [ -71.1254, 42.2318 ], [ -71.1256, 42.2318 ], [ -71.1258, 42.2318 ], [ -71.1259, 42.2318 ], [ -71.1260, 42.2317 ], [ -71.1261, 42.2316 ], [ -71.1262, 42.2315 ], [ -71.1263, 42.2313 ], [ -71.1266, 42.2312 ], [ -71.1267, 42.2312 ], [ -71.1269, 42.2312 ], [ -71.1272, 42.2312 ], [ -71.1274, 42.2311 ], [ -71.1275, 42.2311 ], [ -71.1276, 42.2309 ], [ -71.1277, 42.2307 ], [ -71.1279, 42.2305 ], [ -71.1280, 42.2303 ], [ -71.1282, 42.2301 ], [ -71.1283, 42.2300 ], [ -71.1285, 42.2299 ], [ -71.1287, 42.2298 ], [ -71.1288, 42.2297 ], [ -71.1288, 42.2297 ], [ -71.1288, 42.2296 ], [ -71.1289, 42.2295 ], [ -71.1289, 42.2293 ], [ -71.1290, 42.2291 ], [ -71.1292, 42.2289 ], [ -71.1293, 42.2288 ], [ -71.1294, 42.2287 ], [ -71.1296, 42.2287 ], [ -71.1299, 42.2287 ], [ -71.1301, 42.2286 ], [ -71.1301, 42.2285 ], [ -71.1302, 42.2285 ], [ -71.1303, 42.2283 ], [ -71.1305, 42.2280 ], [ -71.1307, 42.2279 ], [ -71.1426, 42.2359 ], [ -71.1445, 42.2451 ], [ -71.1445, 42.2453 ], [ -71.1455, 42.2500 ], [ -71.1461, 42.2530 ], [ -71.1461, 42.2530 ], [ -71.1460, 42.2530 ], [ -71.1460, 42.2530 ], [ -71.1459, 42.2530 ], [ -71.1459, 42.2530 ], [ -71.1459, 42.2531 ], [ -71.1456, 42.2532 ], [ -71.1451, 42.2534 ], [ -71.1447, 42.2536 ], [ -71.1446, 42.2537 ], [ -71.1442, 42.2540 ], [ -71.1439, 42.2543 ], [ -71.1436, 42.2545 ], [ -71.1436, 42.2545 ], [ -71.1436, 42.2546 ], [ -71.1436, 42.2546 ], [ -71.1436, 42.2546 ], [ -71.1436, 42.2546 ], [ -71.1435, 42.2546 ], [ -71.1435, 42.2546 ], [ -71.1433, 42.2549 ], [ -71.1431, 42.2554 ], [ -71.1430, 42.2555 ], [ -71.1429, 42.2556 ], [ -71.1429, 42.2557 ], [ -71.1429, 42.2557 ], [ -71.1429, 42.2557 ], [ -71.1427, 42.2560 ], [ -71.1426, 42.2562 ], [ -71.1426, 42.2562 ], [ -71.1425, 42.2564 ], [ -71.1422, 42.2569 ], [ -71.1420, 42.2572 ], [ -71.1418, 42.2575 ], [ -71.1418, 42.2575 ], [ -71.1416, 42.2577 ], [ -71.1412, 42.2579 ], [ -71.1411, 42.2580 ], [ -71.1411, 42.2580 ], [ -71.1409, 42.2581 ], [ -71.1406, 42.2583 ], [ -71.1406, 42.2583 ], [ -71.1406, 42.2583 ], [ -71.1405, 42.2584 ], [ -71.1404, 42.2584 ], [ -71.1404, 42.2585 ], [ -71.1403, 42.2585 ], [ -71.1403, 42.2586 ], [ -71.1403, 42.2587 ], [ -71.1403, 42.2587 ], [ -71.1403, 42.2588 ], [ -71.1403, 42.2588 ], [ -71.1403, 42.2588 ], [ -71.1403, 42.2589 ], [ -71.1403, 42.2589 ], [ -71.1403, 42.2590 ], [ -71.1403, 42.2590 ], [ -71.1403, 42.2590 ], [ -71.1403, 42.2591 ], [ -71.1403, 42.2591 ], [ -71.1403, 42.2591 ], [ -71.1403, 42.2592 ], [ -71.1404, 42.2592 ], [ -71.1404, 42.2592 ], [ -71.1404, 42.2592 ], [ -71.1404, 42.2593 ], [ -71.1404, 42.2593 ], [ -71.1404, 42.2593 ], [ -71.1404, 42.2593 ], [ -71.1404, 42.2594 ], [ -71.1404, 42.2594 ], [ -71.1404, 42.2594 ], [ -71.1405, 42.2594 ], [ -71.1405, 42.2594 ], [ -71.1405, 42.2595 ], [ -71.1405, 42.2595 ], [ -71.1405, 42.2595 ], [ -71.1405, 42.2595 ], [ -71.1405, 42.2595 ], [ -71.1405, 42.2595 ], [ -71.1406, 42.2595 ], [ -71.1406, 42.2595 ], [ -71.1406, 42.2595 ], [ -71.1406, 42.2596 ], [ -71.1407, 42.2596 ], [ -71.1407, 42.2596 ], [ -71.1407, 42.2597 ], [ -71.1408, 42.2597 ], [ -71.1408, 42.2597 ], [ -71.1409, 42.2598 ], [ -71.1409, 42.2598 ], [ -71.1409, 42.2598 ], [ -71.1409, 42.2598 ], [ -71.1410, 42.2598 ], [ -71.1410, 42.2598 ], [ -71.1410, 42.2599 ], [ -71.1410, 42.2599 ], [ -71.1410, 42.2599 ], [ -71.1411, 42.2599 ], [ -71.1411, 42.2599 ], [ -71.1412, 42.2600 ], [ -71.1412, 42.2600 ], [ -71.1412, 42.2601 ], [ -71.1412, 42.2601 ], [ -71.1412, 42.2601 ], [ -71.1412, 42.2601 ], [ -71.1413, 42.2602 ], [ -71.1413, 42.2602 ], [ -71.1413, 42.2603 ], [ -71.1413, 42.2603 ], [ -71.1414, 42.2605 ], [ -71.1414, 42.2605 ], [ -71.1414, 42.2605 ], [ -71.1414, 42.2606 ], [ -71.1414, 42.2606 ], [ -71.1414, 42.2606 ], [ -71.1413, 42.2607 ], [ -71.1413, 42.2608 ], [ -71.1413, 42.2608 ], [ -71.1413, 42.2609 ], [ -71.1413, 42.2609 ], [ -71.1412, 42.2610 ], [ -71.1412, 42.2610 ], [ -71.1412, 42.2610 ], [ -71.1412, 42.2611 ], [ -71.1412, 42.2612 ], [ -71.1412, 42.2612 ], [ -71.1411, 42.2613 ], [ -71.1411, 42.2613 ], [ -71.1411, 42.2613 ], [ -71.1411, 42.2614 ], [ -71.1411, 42.2614 ], [ -71.1411, 42.2614 ], [ -71.1410, 42.2616 ], [ -71.1410, 42.2619 ], [ -71.1410, 42.2619 ], [ -71.1410, 42.2619 ], [ -71.1410, 42.2620 ], [ -71.1410, 42.2620 ], [ -71.1410, 42.2620 ], [ -71.1410, 42.2621 ], [ -71.1411, 42.2621 ], [ -71.1411, 42.2621 ], [ -71.1411, 42.2621 ], [ -71.1411, 42.2622 ], [ -71.1411, 42.2622 ], [ -71.1411, 42.2622 ], [ -71.1411, 42.2622 ], [ -71.1411, 42.2624 ], [ -71.1411, 42.2624 ], [ -71.1411, 42.2624 ], [ -71.1412, 42.2626 ], [ -71.1412, 42.2627 ], [ -71.1413, 42.2629 ], [ -71.1413, 42.2630 ], [ -71.1413, 42.2630 ], [ -71.1413, 42.2630 ], [ -71.1413, 42.2630 ], [ -71.1413, 42.2630 ], [ -71.1413, 42.2631 ], [ -71.1414, 42.2631 ], [ -71.1414, 42.2631 ], [ -71.1414, 42.2631 ], [ -71.1414, 42.2632 ], [ -71.1414, 42.2632 ], [ -71.1414, 42.2632 ], [ -71.1414, 42.2632 ], [ -71.1414, 42.2633 ], [ -71.1414, 42.2634 ], [ -71.1414, 42.2636 ], [ -71.1414, 42.2637 ], [ -71.1414, 42.2637 ], [ -71.1414, 42.2637 ], [ -71.1414, 42.2638 ], [ -71.1414, 42.2638 ], [ -71.1415, 42.2639 ], [ -71.1415, 42.2639 ], [ -71.1415, 42.2639 ], [ -71.1415, 42.2640 ], [ -71.1415, 42.2640 ], [ -71.1416, 42.2640 ], [ -71.1416, 42.2641 ], [ -71.1416, 42.2641 ], [ -71.1418, 42.2642 ], [ -71.1418, 42.2642 ], [ -71.1418, 42.2642 ], [ -71.1419, 42.2643 ], [ -71.1419, 42.2643 ], [ -71.1420, 42.2644 ], [ -71.1423, 42.2645 ], [ -71.1426, 42.2647 ], [ -71.1427, 42.2648 ], [ -71.1427, 42.2649 ], [ -71.1429, 42.2650 ], [ -71.1429, 42.2651 ], [ -71.1429, 42.2651 ], [ -71.1429, 42.2651 ], [ -71.1430, 42.2651 ], [ -71.1434, 42.2653 ], [ -71.1435, 42.2654 ], [ -71.1435, 42.2654 ], [ -71.1437, 42.2655 ], [ -71.1439, 42.2657 ], [ -71.1440, 42.2657 ], [ -71.1443, 42.2660 ], [ -71.1443, 42.2660 ], [ -71.1443, 42.2660 ], [ -71.1445, 42.2662 ], [ -71.1446, 42.2662 ], [ -71.1446, 42.2662 ], [ -71.1446, 42.2662 ], [ -71.1448, 42.2664 ], [ -71.1450, 42.2667 ], [ -71.1450, 42.2668 ], [ -71.1451, 42.2668 ], [ -71.1451, 42.2670 ], [ -71.1451, 42.2672 ], [ -71.1451, 42.2673 ], [ -71.1450, 42.2674 ], [ -71.1450, 42.2676 ], [ -71.1450, 42.2678 ], [ -71.1450, 42.2681 ], [ -71.1451, 42.2683 ], [ -71.1451, 42.2683 ], [ -71.1451, 42.2685 ], [ -71.1451, 42.2685 ], [ -71.1451, 42.2685 ], [ -71.1451, 42.2686 ], [ -71.1452, 42.2689 ], [ -71.1453, 42.2690 ], [ -71.1453, 42.2690 ], [ -71.1453, 42.2691 ], [ -71.1454, 42.2693 ], [ -71.1454, 42.2695 ], [ -71.1454, 42.2697 ], [ -71.1454, 42.2698 ], [ -71.1454, 42.2698 ], [ -71.1454, 42.2698 ], [ -71.1454, 42.2698 ], [ -71.1454, 42.2699 ], [ -71.1453, 42.2701 ], [ -71.1453, 42.2701 ], [ -71.1452, 42.2703 ], [ -71.1451, 42.2703 ], [ -71.1450, 42.2705 ], [ -71.1450, 42.2706 ], [ -71.1450, 42.2706 ], [ -71.1449, 42.2707 ], [ -71.1449, 42.2708 ], [ -71.1449, 42.2708 ], [ -71.1448, 42.2709 ], [ -71.1447, 42.2712 ], [ -71.1447, 42.2712 ], [ -71.1447, 42.2713 ], [ -71.1447, 42.2713 ], [ -71.1446, 42.2714 ], [ -71.1445, 42.2716 ], [ -71.1444, 42.2717 ], [ -71.1443, 42.2718 ], [ -71.1442, 42.2718 ], [ -71.1442, 42.2718 ], [ -71.1441, 42.2719 ], [ -71.1441, 42.2719 ], [ -71.1441, 42.2719 ], [ -71.1439, 42.2719 ], [ -71.1437, 42.2720 ], [ -71.1437, 42.2720 ], [ -71.1437, 42.2720 ], [ -71.1437, 42.2720 ], [ -71.1437, 42.2720 ], [ -71.1437, 42.2720 ], [ -71.1436, 42.2720 ], [ -71.1435, 42.2720 ], [ -71.1433, 42.2720 ], [ -71.1430, 42.2721 ], [ -71.1426, 42.2722 ], [ -71.1426, 42.2722 ], [ -71.1426, 42.2722 ], [ -71.1426, 42.2722 ], [ -71.1422, 42.2724 ], [ -71.1421, 42.2724 ], [ -71.1421, 42.2725 ], [ -71.1421, 42.2725 ], [ -71.1421, 42.2725 ], [ -71.1421, 42.2725 ], [ -71.1420, 42.2725 ], [ -71.1420, 42.2725 ], [ -71.1420, 42.2725 ], [ -71.1418, 42.2727 ], [ -71.1414, 42.2731 ], [ -71.1413, 42.2733 ], [ -71.1412, 42.2733 ], [ -71.1412, 42.2734 ], [ -71.1411, 42.2735 ], [ -71.1411, 42.2736 ], [ -71.1410, 42.2737 ], [ -71.1410, 42.2738 ], [ -71.1409, 42.2739 ], [ -71.1409, 42.2739 ], [ -71.1409, 42.2740 ], [ -71.1408, 42.2741 ], [ -71.1408, 42.2742 ], [ -71.1408, 42.2743 ], [ -71.1408, 42.2744 ], [ -71.1407, 42.2745 ], [ -71.1407, 42.2745 ], [ -71.1407, 42.2746 ], [ -71.1407, 42.2746 ], [ -71.1407, 42.2748 ], [ -71.1407, 42.2750 ], [ -71.1406, 42.2751 ], [ -71.1405, 42.2752 ], [ -71.1403, 42.2753 ], [ -71.1402, 42.2754 ], [ -71.1401, 42.2751 ], [ -71.1401, 42.2751 ], [ -71.1401, 42.2746 ], [ -71.1401, 42.2746 ], [ -71.1400, 42.2741 ], [ -71.1400, 42.2741 ], [ -71.1400, 42.2740 ], [ -71.1400, 42.2737 ], [ -71.1400, 42.2737 ], [ -71.1399, 42.2726 ], [ -71.1399, 42.2722 ], [ -71.1400, 42.2716 ], [ -71.1400, 42.2715 ], [ -71.1400, 42.2713 ], [ -71.1400, 42.2710 ], [ -71.1400, 42.2709 ], [ -71.1401, 42.2707 ], [ -71.1401, 42.2704 ], [ -71.1401, 42.2703 ], [ -71.1402, 42.2698 ], [ -71.1402, 42.2697 ], [ -71.1402, 42.2696 ], [ -71.1403, 42.2695 ], [ -71.1403, 42.2694 ], [ -71.1403, 42.2694 ], [ -71.1403, 42.2694 ], [ -71.1403, 42.2693 ], [ -71.1402, 42.2691 ], [ -71.1402, 42.2691 ], [ -71.1402, 42.2691 ], [ -71.1402, 42.2690 ], [ -71.1402, 42.2689 ], [ -71.1402, 42.2689 ], [ -71.1402, 42.2688 ], [ -71.1401, 42.2688 ], [ -71.1401, 42.2687 ], [ -71.1401, 42.2687 ], [ -71.1401, 42.2686 ], [ -71.1400, 42.2686 ], [ -71.1400, 42.2686 ], [ -71.1399, 42.2684 ], [ -71.1399, 42.2683 ], [ -71.1399, 42.2683 ], [ -71.1398, 42.2682 ], [ -71.1398, 42.2682 ], [ -71.1398, 42.2682 ], [ -71.1398, 42.2682 ], [ -71.1397, 42.2681 ], [ -71.1397, 42.2681 ], [ -71.1396, 42.2680 ], [ -71.1395, 42.2679 ], [ -71.1395, 42.2679 ], [ -71.1394, 42.2678 ], [ -71.1391, 42.2676 ], [ -71.1391, 42.2676 ], [ -71.1391, 42.2676 ], [ -71.1390, 42.2676 ], [ -71.1387, 42.2679 ], [ -71.1385, 42.2680 ], [ -71.1385, 42.2680 ], [ -71.1385, 42.2681 ], [ -71.1381, 42.2683 ], [ -71.1378, 42.2686 ], [ -71.1373, 42.2690 ], [ -71.1373, 42.2690 ], [ -71.1373, 42.2690 ], [ -71.1365, 42.2698 ], [ -71.1364, 42.2699 ], [ -71.1364, 42.2699 ], [ -71.1374, 42.2705 ], [ -71.1378, 42.2707 ], [ -71.1373, 42.2712 ], [ -71.1371, 42.2713 ], [ -71.1370, 42.2715 ], [ -71.1355, 42.2727 ], [ -71.1353, 42.2729 ], [ -71.1352, 42.2730 ], [ -71.1351, 42.2730 ], [ -71.1349, 42.2732 ], [ -71.1347, 42.2733 ], [ -71.1339, 42.2740 ], [ -71.1337, 42.2742 ], [ -71.1335, 42.2743 ], [ -71.1335, 42.2744 ], [ -71.1335, 42.2744 ], [ -71.1335, 42.2744 ], [ -71.1335, 42.2744 ], [ -71.1333, 42.2743 ], [ -71.1332, 42.2742 ], [ -71.1330, 42.2741 ], [ -71.1329, 42.2740 ], [ -71.1327, 42.2739 ], [ -71.1325, 42.2738 ], [ -71.1323, 42.2737 ], [ -71.1323, 42.2736 ], [ -71.1321, 42.2735 ], [ -71.1319, 42.2734 ], [ -71.1318, 42.2733 ], [ -71.1316, 42.2732 ], [ -71.1315, 42.2731 ], [ -71.1313, 42.2730 ], [ -71.1313, 42.2730 ], [ -71.1313, 42.2730 ], [ -71.1312, 42.2730 ], [ -71.1311, 42.2729 ], [ -71.1310, 42.2728 ], [ -71.1309, 42.2728 ], [ -71.1311, 42.2726 ], [ -71.1314, 42.2724 ], [ -71.1315, 42.2723 ], [ -71.1316, 42.2722 ], [ -71.1317, 42.2720 ], [ -71.1318, 42.2713 ], [ -71.1319, 42.2711 ], [ -71.1317, 42.2708 ], [ -71.1316, 42.2706 ], [ -71.1315, 42.2706 ], [ -71.1309, 42.2707 ], [ -71.1308, 42.2705 ], [ -71.1307, 42.2702 ], [ -71.1304, 42.2703 ], [ -71.1303, 42.2703 ], [ -71.1301, 42.2700 ], [ -71.1299, 42.2700 ], [ -71.1294, 42.2703 ], [ -71.1288, 42.2706 ], [ -71.1284, 42.2708 ], [ -71.1284, 42.2709 ], [ -71.1282, 42.2712 ], [ -71.1279, 42.2719 ], [ -71.1278, 42.2719 ], [ -71.1276, 42.2719 ], [ -71.1273, 42.2719 ], [ -71.1272, 42.2719 ], [ -71.1269, 42.2720 ], [ -71.1266, 42.2722 ], [ -71.1265, 42.2721 ], [ -71.1265, 42.2720 ], [ -71.1263, 42.2721 ], [ -71.1257, 42.2724 ], [ -71.1255, 42.2725 ], [ -71.1256, 42.2724 ], [ -71.1257, 42.2723 ], [ -71.1257, 42.2723 ], [ -71.1257, 42.2723 ], [ -71.1258, 42.2722 ], [ -71.1258, 42.2721 ] ] ] } }, + { "type": "Feature", "properties": { "Name": "Mattapan", "density": 1.8900 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -71.0963, 42.2931 ], [ -71.0961, 42.2929 ], [ -71.0960, 42.2925 ], [ -71.0957, 42.2920 ], [ -71.0957, 42.2919 ], [ -71.0957, 42.2919 ], [ -71.0954, 42.2912 ], [ -71.0950, 42.2902 ], [ -71.0949, 42.2901 ], [ -71.0944, 42.2890 ], [ -71.0941, 42.2882 ], [ -71.0940, 42.2879 ], [ -71.0938, 42.2876 ], [ -71.0937, 42.2872 ], [ -71.0936, 42.2871 ], [ -71.0934, 42.2865 ], [ -71.0934, 42.2865 ], [ -71.0931, 42.2859 ], [ -71.0929, 42.2853 ], [ -71.0928, 42.2851 ], [ -71.0928, 42.2849 ], [ -71.0927, 42.2848 ], [ -71.0923, 42.2846 ], [ -71.0919, 42.2844 ], [ -71.0915, 42.2842 ], [ -71.0913, 42.2842 ], [ -71.0906, 42.2841 ], [ -71.0897, 42.2839 ], [ -71.0896, 42.2838 ], [ -71.0895, 42.2838 ], [ -71.0894, 42.2837 ], [ -71.0892, 42.2835 ], [ -71.0892, 42.2834 ], [ -71.0891, 42.2832 ], [ -71.0891, 42.2831 ], [ -71.0890, 42.2829 ], [ -71.0889, 42.2828 ], [ -71.0887, 42.2827 ], [ -71.0885, 42.2825 ], [ -71.0882, 42.2823 ], [ -71.0879, 42.2821 ], [ -71.0874, 42.2818 ], [ -71.0870, 42.2815 ], [ -71.0867, 42.2813 ], [ -71.0865, 42.2812 ], [ -71.0863, 42.2811 ], [ -71.0860, 42.2810 ], [ -71.0855, 42.2809 ], [ -71.0855, 42.2809 ], [ -71.0854, 42.2810 ], [ -71.0850, 42.2808 ], [ -71.0844, 42.2807 ], [ -71.0832, 42.2805 ], [ -71.0828, 42.2804 ], [ -71.0825, 42.2803 ], [ -71.0822, 42.2801 ], [ -71.0811, 42.2793 ], [ -71.0805, 42.2790 ], [ -71.0804, 42.2789 ], [ -71.0800, 42.2787 ], [ -71.0799, 42.2787 ], [ -71.0798, 42.2787 ], [ -71.0793, 42.2786 ], [ -71.0788, 42.2785 ], [ -71.0779, 42.2784 ], [ -71.0766, 42.2783 ], [ -71.0763, 42.2782 ], [ -71.0757, 42.2782 ], [ -71.0757, 42.2782 ], [ -71.0747, 42.2781 ], [ -71.0745, 42.2781 ], [ -71.0737, 42.2780 ], [ -71.0731, 42.2780 ], [ -71.0727, 42.2780 ], [ -71.0722, 42.2781 ], [ -71.0716, 42.2781 ], [ -71.0710, 42.2783 ], [ -71.0705, 42.2784 ], [ -71.0697, 42.2787 ], [ -71.0695, 42.2788 ], [ -71.0686, 42.2791 ], [ -71.0681, 42.2792 ], [ -71.0678, 42.2793 ], [ -71.0672, 42.2795 ], [ -71.0663, 42.2798 ], [ -71.0659, 42.2799 ], [ -71.0660, 42.2795 ], [ -71.0662, 42.2788 ], [ -71.0665, 42.2779 ], [ -71.0666, 42.2775 ], [ -71.0668, 42.2767 ], [ -71.0669, 42.2762 ], [ -71.0671, 42.2755 ], [ -71.0674, 42.2745 ], [ -71.0676, 42.2738 ], [ -71.0677, 42.2735 ], [ -71.0677, 42.2732 ], [ -71.0678, 42.2729 ], [ -71.0679, 42.2724 ], [ -71.0680, 42.2722 ], [ -71.0680, 42.2722 ], [ -71.0679, 42.2721 ], [ -71.0679, 42.2719 ], [ -71.0680, 42.2717 ], [ -71.0680, 42.2715 ], [ -71.0681, 42.2713 ], [ -71.0681, 42.2712 ], [ -71.0681, 42.2711 ], [ -71.0681, 42.2710 ], [ -71.0681, 42.2710 ], [ -71.0682, 42.2709 ], [ -71.0682, 42.2709 ], [ -71.0682, 42.2709 ], [ -71.0683, 42.2708 ], [ -71.0684, 42.2708 ], [ -71.0685, 42.2707 ], [ -71.0686, 42.2707 ], [ -71.0687, 42.2707 ], [ -71.0688, 42.2706 ], [ -71.0690, 42.2706 ], [ -71.0692, 42.2706 ], [ -71.0693, 42.2706 ], [ -71.0694, 42.2706 ], [ -71.0697, 42.2706 ], [ -71.0697, 42.2706 ], [ -71.0704, 42.2706 ], [ -71.0706, 42.2706 ], [ -71.0709, 42.2707 ], [ -71.0712, 42.2707 ], [ -71.0713, 42.2707 ], [ -71.0716, 42.2708 ], [ -71.0717, 42.2708 ], [ -71.0718, 42.2707 ], [ -71.0719, 42.2707 ], [ -71.0721, 42.2707 ], [ -71.0723, 42.2707 ], [ -71.0724, 42.2706 ], [ -71.0724, 42.2706 ], [ -71.0725, 42.2706 ], [ -71.0727, 42.2704 ], [ -71.0727, 42.2704 ], [ -71.0727, 42.2704 ], [ -71.0729, 42.2703 ], [ -71.0730, 42.2703 ], [ -71.0731, 42.2703 ], [ -71.0731, 42.2703 ], [ -71.0732, 42.2703 ], [ -71.0732, 42.2703 ], [ -71.0732, 42.2703 ], [ -71.0732, 42.2703 ], [ -71.0733, 42.2703 ], [ -71.0735, 42.2702 ], [ -71.0737, 42.2702 ], [ -71.0740, 42.2702 ], [ -71.0744, 42.2703 ], [ -71.0745, 42.2703 ], [ -71.0747, 42.2703 ], [ -71.0748, 42.2703 ], [ -71.0752, 42.2702 ], [ -71.0753, 42.2702 ], [ -71.0759, 42.2703 ], [ -71.0765, 42.2701 ], [ -71.0768, 42.2700 ], [ -71.0769, 42.2699 ], [ -71.0772, 42.2699 ], [ -71.0774, 42.2698 ], [ -71.0780, 42.2698 ], [ -71.0781, 42.2697 ], [ -71.0782, 42.2697 ], [ -71.0782, 42.2697 ], [ -71.0783, 42.2697 ], [ -71.0783, 42.2697 ], [ -71.0784, 42.2697 ], [ -71.0784, 42.2697 ], [ -71.0785, 42.2697 ], [ -71.0785, 42.2697 ], [ -71.0785, 42.2697 ], [ -71.0787, 42.2696 ], [ -71.0788, 42.2696 ], [ -71.0789, 42.2696 ], [ -71.0792, 42.2696 ], [ -71.0795, 42.2695 ], [ -71.0797, 42.2695 ], [ -71.0798, 42.2695 ], [ -71.0799, 42.2694 ], [ -71.0799, 42.2694 ], [ -71.0803, 42.2692 ], [ -71.0808, 42.2689 ], [ -71.0808, 42.2689 ], [ -71.0810, 42.2689 ], [ -71.0823, 42.2687 ], [ -71.0826, 42.2686 ], [ -71.0828, 42.2685 ], [ -71.0829, 42.2685 ], [ -71.0829, 42.2684 ], [ -71.0832, 42.2685 ], [ -71.0835, 42.2685 ], [ -71.0836, 42.2686 ], [ -71.0839, 42.2687 ], [ -71.0841, 42.2687 ], [ -71.0843, 42.2688 ], [ -71.0846, 42.2688 ], [ -71.0848, 42.2688 ], [ -71.0853, 42.2689 ], [ -71.0854, 42.2689 ], [ -71.0855, 42.2690 ], [ -71.0855, 42.2690 ], [ -71.0856, 42.2691 ], [ -71.0856, 42.2691 ], [ -71.0856, 42.2692 ], [ -71.0859, 42.2692 ], [ -71.0860, 42.2693 ], [ -71.0866, 42.2693 ], [ -71.0868, 42.2693 ], [ -71.0873, 42.2694 ], [ -71.0877, 42.2695 ], [ -71.0881, 42.2696 ], [ -71.0886, 42.2697 ], [ -71.0891, 42.2697 ], [ -71.0891, 42.2697 ], [ -71.0894, 42.2696 ], [ -71.0895, 42.2697 ], [ -71.0895, 42.2697 ], [ -71.0896, 42.2697 ], [ -71.0896, 42.2696 ], [ -71.0897, 42.2696 ], [ -71.0898, 42.2696 ], [ -71.0898, 42.2695 ], [ -71.0899, 42.2695 ], [ -71.0899, 42.2695 ], [ -71.0900, 42.2694 ], [ -71.0900, 42.2694 ], [ -71.0900, 42.2693 ], [ -71.0901, 42.2693 ], [ -71.0901, 42.2692 ], [ -71.0902, 42.2691 ], [ -71.0902, 42.2690 ], [ -71.0902, 42.2689 ], [ -71.0902, 42.2688 ], [ -71.0902, 42.2687 ], [ -71.0902, 42.2686 ], [ -71.0902, 42.2685 ], [ -71.0902, 42.2683 ], [ -71.0901, 42.2683 ], [ -71.0901, 42.2683 ], [ -71.0901, 42.2683 ], [ -71.0901, 42.2683 ], [ -71.0901, 42.2683 ], [ -71.0901, 42.2683 ], [ -71.0901, 42.2683 ], [ -71.0901, 42.2683 ], [ -71.0901, 42.2683 ], [ -71.0901, 42.2683 ], [ -71.0901, 42.2683 ], [ -71.0901, 42.2683 ], [ -71.0901, 42.2683 ], [ -71.0900, 42.2683 ], [ -71.0900, 42.2682 ], [ -71.0900, 42.2682 ], [ -71.0900, 42.2682 ], [ -71.0900, 42.2682 ], [ -71.0900, 42.2682 ], [ -71.0900, 42.2682 ], [ -71.0900, 42.2682 ], [ -71.0900, 42.2682 ], [ -71.0900, 42.2682 ], [ -71.0900, 42.2682 ], [ -71.0900, 42.2682 ], [ -71.0899, 42.2681 ], [ -71.0899, 42.2681 ], [ -71.0899, 42.2681 ], [ -71.0899, 42.2681 ], [ -71.0899, 42.2681 ], [ -71.0899, 42.2681 ], [ -71.0899, 42.2681 ], [ -71.0899, 42.2680 ], [ -71.0899, 42.2680 ], [ -71.0899, 42.2680 ], [ -71.0899, 42.2680 ], [ -71.0899, 42.2680 ], [ -71.0899, 42.2680 ], [ -71.0899, 42.2680 ], [ -71.0899, 42.2680 ], [ -71.0899, 42.2680 ], [ -71.0899, 42.2680 ], [ -71.0899, 42.2680 ], [ -71.0899, 42.2680 ], [ -71.0899, 42.2680 ], [ -71.0899, 42.2679 ], [ -71.0899, 42.2679 ], [ -71.0899, 42.2679 ], [ -71.0899, 42.2679 ], [ -71.0899, 42.2679 ], [ -71.0899, 42.2679 ], [ -71.0899, 42.2679 ], [ -71.0898, 42.2678 ], [ -71.0899, 42.2678 ], [ -71.0899, 42.2677 ], [ -71.0899, 42.2677 ], [ -71.0900, 42.2676 ], [ -71.0900, 42.2675 ], [ -71.0901, 42.2674 ], [ -71.0901, 42.2674 ], [ -71.0901, 42.2673 ], [ -71.0901, 42.2672 ], [ -71.0901, 42.2672 ], [ -71.0901, 42.2671 ], [ -71.0901, 42.2670 ], [ -71.0901, 42.2670 ], [ -71.0901, 42.2669 ], [ -71.0901, 42.2668 ], [ -71.0902, 42.2668 ], [ -71.0902, 42.2667 ], [ -71.0902, 42.2667 ], [ -71.0902, 42.2667 ], [ -71.0902, 42.2666 ], [ -71.0902, 42.2666 ], [ -71.0903, 42.2666 ], [ -71.0903, 42.2666 ], [ -71.0904, 42.2666 ], [ -71.0904, 42.2666 ], [ -71.0904, 42.2665 ], [ -71.0904, 42.2665 ], [ -71.0905, 42.2665 ], [ -71.0907, 42.2665 ], [ -71.0908, 42.2665 ], [ -71.0908, 42.2665 ], [ -71.0908, 42.2665 ], [ -71.0909, 42.2665 ], [ -71.0909, 42.2665 ], [ -71.0909, 42.2665 ], [ -71.0910, 42.2665 ], [ -71.0910, 42.2665 ], [ -71.0911, 42.2665 ], [ -71.0913, 42.2665 ], [ -71.0914, 42.2666 ], [ -71.0914, 42.2666 ], [ -71.0915, 42.2666 ], [ -71.0916, 42.2666 ], [ -71.0917, 42.2666 ], [ -71.0917, 42.2667 ], [ -71.0918, 42.2667 ], [ -71.0918, 42.2667 ], [ -71.0919, 42.2667 ], [ -71.0920, 42.2667 ], [ -71.0921, 42.2667 ], [ -71.0922, 42.2667 ], [ -71.0922, 42.2667 ], [ -71.0923, 42.2667 ], [ -71.0923, 42.2667 ], [ -71.0923, 42.2667 ], [ -71.0923, 42.2667 ], [ -71.0924, 42.2667 ], [ -71.0925, 42.2667 ], [ -71.0925, 42.2667 ], [ -71.0926, 42.2667 ], [ -71.0927, 42.2667 ], [ -71.0927, 42.2667 ], [ -71.0927, 42.2667 ], [ -71.0928, 42.2668 ], [ -71.0928, 42.2668 ], [ -71.0928, 42.2668 ], [ -71.0929, 42.2668 ], [ -71.0929, 42.2669 ], [ -71.0929, 42.2669 ], [ -71.0930, 42.2669 ], [ -71.0930, 42.2669 ], [ -71.0931, 42.2670 ], [ -71.0931, 42.2670 ], [ -71.0931, 42.2670 ], [ -71.0931, 42.2670 ], [ -71.0932, 42.2670 ], [ -71.0932, 42.2671 ], [ -71.0932, 42.2671 ], [ -71.0932, 42.2671 ], [ -71.0933, 42.2671 ], [ -71.0933, 42.2671 ], [ -71.0934, 42.2671 ], [ -71.0934, 42.2671 ], [ -71.0934, 42.2671 ], [ -71.0934, 42.2671 ], [ -71.0935, 42.2671 ], [ -71.0935, 42.2671 ], [ -71.0935, 42.2671 ], [ -71.0935, 42.2671 ], [ -71.0936, 42.2671 ], [ -71.0936, 42.2670 ], [ -71.0940, 42.2670 ], [ -71.0940, 42.2671 ], [ -71.0940, 42.2671 ], [ -71.0940, 42.2671 ], [ -71.0941, 42.2671 ], [ -71.0941, 42.2671 ], [ -71.0941, 42.2671 ], [ -71.0941, 42.2671 ], [ -71.0941, 42.2671 ], [ -71.0942, 42.2671 ], [ -71.0942, 42.2671 ], [ -71.0943, 42.2671 ], [ -71.0943, 42.2670 ], [ -71.0944, 42.2670 ], [ -71.0944, 42.2670 ], [ -71.0945, 42.2669 ], [ -71.0946, 42.2668 ], [ -71.0946, 42.2668 ], [ -71.0946, 42.2668 ], [ -71.0947, 42.2667 ], [ -71.0947, 42.2667 ], [ -71.0947, 42.2667 ], [ -71.0947, 42.2667 ], [ -71.0947, 42.2667 ], [ -71.0947, 42.2667 ], [ -71.0947, 42.2667 ], [ -71.0947, 42.2667 ], [ -71.0947, 42.2667 ], [ -71.0947, 42.2667 ], [ -71.0947, 42.2667 ], [ -71.0947, 42.2667 ], [ -71.0947, 42.2667 ], [ -71.0947, 42.2667 ], [ -71.0947, 42.2667 ], [ -71.0947, 42.2667 ], [ -71.0947, 42.2667 ], [ -71.0947, 42.2667 ], [ -71.0947, 42.2667 ], [ -71.0947, 42.2667 ], [ -71.0947, 42.2667 ], [ -71.0947, 42.2667 ], [ -71.0947, 42.2667 ], [ -71.0947, 42.2667 ], [ -71.0947, 42.2667 ], [ -71.0947, 42.2667 ], [ -71.0947, 42.2667 ], [ -71.0947, 42.2667 ], [ -71.0947, 42.2667 ], [ -71.0947, 42.2667 ], [ -71.0947, 42.2667 ], [ -71.0947, 42.2667 ], [ -71.0947, 42.2666 ], [ -71.0947, 42.2666 ], [ -71.0947, 42.2666 ], [ -71.0948, 42.2666 ], [ -71.0948, 42.2665 ], [ -71.0948, 42.2665 ], [ -71.0948, 42.2665 ], [ -71.0948, 42.2665 ], [ -71.0949, 42.2664 ], [ -71.0949, 42.2663 ], [ -71.0949, 42.2663 ], [ -71.0950, 42.2662 ], [ -71.0950, 42.2662 ], [ -71.0950, 42.2662 ], [ -71.0950, 42.2661 ], [ -71.0951, 42.2661 ], [ -71.0951, 42.2660 ], [ -71.0951, 42.2660 ], [ -71.0952, 42.2660 ], [ -71.0952, 42.2659 ], [ -71.0952, 42.2659 ], [ -71.0952, 42.2658 ], [ -71.0952, 42.2658 ], [ -71.0953, 42.2658 ], [ -71.0953, 42.2657 ], [ -71.0954, 42.2657 ], [ -71.0954, 42.2656 ], [ -71.0954, 42.2656 ], [ -71.0954, 42.2656 ], [ -71.0955, 42.2656 ], [ -71.0955, 42.2655 ], [ -71.0956, 42.2655 ], [ -71.0956, 42.2654 ], [ -71.0957, 42.2654 ], [ -71.0957, 42.2654 ], [ -71.0959, 42.2652 ], [ -71.0960, 42.2651 ], [ -71.0961, 42.2651 ], [ -71.0961, 42.2651 ], [ -71.0961, 42.2650 ], [ -71.0961, 42.2650 ], [ -71.0961, 42.2650 ], [ -71.0962, 42.2650 ], [ -71.0962, 42.2650 ], [ -71.0962, 42.2650 ], [ -71.0962, 42.2650 ], [ -71.0962, 42.2650 ], [ -71.0962, 42.2650 ], [ -71.0962, 42.2650 ], [ -71.0962, 42.2650 ], [ -71.0962, 42.2650 ], [ -71.0962, 42.2650 ], [ -71.0962, 42.2650 ], [ -71.0962, 42.2649 ], [ -71.0963, 42.2649 ], [ -71.0963, 42.2649 ], [ -71.0963, 42.2649 ], [ -71.0963, 42.2648 ], [ -71.0964, 42.2648 ], [ -71.0964, 42.2648 ], [ -71.0964, 42.2648 ], [ -71.0965, 42.2647 ], [ -71.0965, 42.2647 ], [ -71.0966, 42.2647 ], [ -71.0966, 42.2646 ], [ -71.0966, 42.2646 ], [ -71.0966, 42.2645 ], [ -71.0967, 42.2645 ], [ -71.0967, 42.2645 ], [ -71.0967, 42.2645 ], [ -71.0967, 42.2645 ], [ -71.0967, 42.2644 ], [ -71.0967, 42.2644 ], [ -71.0968, 42.2643 ], [ -71.0968, 42.2643 ], [ -71.0968, 42.2642 ], [ -71.0968, 42.2642 ], [ -71.0969, 42.2641 ], [ -71.0969, 42.2641 ], [ -71.0970, 42.2640 ], [ -71.0970, 42.2640 ], [ -71.0970, 42.2639 ], [ -71.0971, 42.2639 ], [ -71.0971, 42.2638 ], [ -71.0971, 42.2638 ], [ -71.0971, 42.2637 ], [ -71.0972, 42.2637 ], [ -71.0972, 42.2636 ], [ -71.0972, 42.2636 ], [ -71.0972, 42.2636 ], [ -71.0972, 42.2636 ], [ -71.0973, 42.2635 ], [ -71.0973, 42.2634 ], [ -71.0973, 42.2634 ], [ -71.0974, 42.2633 ], [ -71.0974, 42.2632 ], [ -71.0975, 42.2631 ], [ -71.0976, 42.2630 ], [ -71.0976, 42.2630 ], [ -71.0977, 42.2630 ], [ -71.0977, 42.2629 ], [ -71.0978, 42.2629 ], [ -71.0978, 42.2629 ], [ -71.0978, 42.2629 ], [ -71.0978, 42.2629 ], [ -71.0979, 42.2629 ], [ -71.0979, 42.2629 ], [ -71.0979, 42.2629 ], [ -71.0979, 42.2629 ], [ -71.0979, 42.2629 ], [ -71.0979, 42.2629 ], [ -71.0979, 42.2629 ], [ -71.0979, 42.2629 ], [ -71.0978, 42.2629 ], [ -71.0979, 42.2629 ], [ -71.0980, 42.2631 ], [ -71.0980, 42.2631 ], [ -71.0986, 42.2638 ], [ -71.0992, 42.2644 ], [ -71.0996, 42.2648 ], [ -71.0996, 42.2648 ], [ -71.0991, 42.2651 ], [ -71.0991, 42.2651 ], [ -71.0996, 42.2654 ], [ -71.0998, 42.2656 ], [ -71.0999, 42.2657 ], [ -71.1001, 42.2658 ], [ -71.1002, 42.2659 ], [ -71.1002, 42.2659 ], [ -71.1004, 42.2661 ], [ -71.1005, 42.2661 ], [ -71.1005, 42.2661 ], [ -71.1005, 42.2661 ], [ -71.1008, 42.2664 ], [ -71.1012, 42.2668 ], [ -71.1012, 42.2668 ], [ -71.1013, 42.2669 ], [ -71.1014, 42.2669 ], [ -71.1015, 42.2671 ], [ -71.1018, 42.2673 ], [ -71.1020, 42.2675 ], [ -71.1024, 42.2678 ], [ -71.1025, 42.2679 ], [ -71.1027, 42.2681 ], [ -71.1029, 42.2682 ], [ -71.1031, 42.2684 ], [ -71.1033, 42.2686 ], [ -71.1035, 42.2688 ], [ -71.1037, 42.2689 ], [ -71.1038, 42.2690 ], [ -71.1038, 42.2691 ], [ -71.1040, 42.2692 ], [ -71.1043, 42.2695 ], [ -71.1043, 42.2695 ], [ -71.1043, 42.2695 ], [ -71.1044, 42.2695 ], [ -71.1045, 42.2696 ], [ -71.1045, 42.2697 ], [ -71.1045, 42.2697 ], [ -71.1046, 42.2697 ], [ -71.1049, 42.2700 ], [ -71.1049, 42.2700 ], [ -71.1049, 42.2700 ], [ -71.1055, 42.2705 ], [ -71.1056, 42.2706 ], [ -71.1060, 42.2710 ], [ -71.1061, 42.2710 ], [ -71.1061, 42.2710 ], [ -71.1062, 42.2711 ], [ -71.1062, 42.2711 ], [ -71.1063, 42.2712 ], [ -71.1064, 42.2714 ], [ -71.1065, 42.2714 ], [ -71.1065, 42.2715 ], [ -71.1065, 42.2715 ], [ -71.1065, 42.2715 ], [ -71.1066, 42.2716 ], [ -71.1067, 42.2718 ], [ -71.1067, 42.2718 ], [ -71.1067, 42.2718 ], [ -71.1071, 42.2722 ], [ -71.1076, 42.2727 ], [ -71.1084, 42.2735 ], [ -71.1091, 42.2743 ], [ -71.1091, 42.2744 ], [ -71.1090, 42.2745 ], [ -71.1090, 42.2745 ], [ -71.1088, 42.2749 ], [ -71.1087, 42.2750 ], [ -71.1085, 42.2753 ], [ -71.1085, 42.2756 ], [ -71.1084, 42.2757 ], [ -71.1084, 42.2758 ], [ -71.1084, 42.2758 ], [ -71.1084, 42.2758 ], [ -71.1083, 42.2760 ], [ -71.1083, 42.2760 ], [ -71.1083, 42.2761 ], [ -71.1081, 42.2765 ], [ -71.1077, 42.2774 ], [ -71.1077, 42.2775 ], [ -71.1076, 42.2777 ], [ -71.1076, 42.2778 ], [ -71.1076, 42.2778 ], [ -71.1076, 42.2779 ], [ -71.1075, 42.2780 ], [ -71.1075, 42.2782 ], [ -71.1075, 42.2782 ], [ -71.1074, 42.2786 ], [ -71.1074, 42.2786 ], [ -71.1074, 42.2786 ], [ -71.1073, 42.2788 ], [ -71.1073, 42.2788 ], [ -71.1073, 42.2788 ], [ -71.1072, 42.2789 ], [ -71.1071, 42.2791 ], [ -71.1065, 42.2796 ], [ -71.1059, 42.2801 ], [ -71.1059, 42.2802 ], [ -71.1059, 42.2802 ], [ -71.1057, 42.2803 ], [ -71.1057, 42.2803 ], [ -71.1056, 42.2803 ], [ -71.1054, 42.2804 ], [ -71.1041, 42.2811 ], [ -71.1041, 42.2811 ], [ -71.1041, 42.2811 ], [ -71.1039, 42.2812 ], [ -71.1039, 42.2812 ], [ -71.1038, 42.2812 ], [ -71.1030, 42.2813 ], [ -71.1030, 42.2813 ], [ -71.1019, 42.2815 ], [ -71.1019, 42.2815 ], [ -71.1013, 42.2816 ], [ -71.1010, 42.2817 ], [ -71.1010, 42.2817 ], [ -71.1010, 42.2817 ], [ -71.1009, 42.2817 ], [ -71.1009, 42.2817 ], [ -71.1004, 42.2818 ], [ -71.1001, 42.2819 ], [ -71.1000, 42.2820 ], [ -71.0998, 42.2821 ], [ -71.0996, 42.2822 ], [ -71.0996, 42.2822 ], [ -71.0996, 42.2822 ], [ -71.0996, 42.2823 ], [ -71.0998, 42.2824 ], [ -71.1003, 42.2827 ], [ -71.1004, 42.2828 ], [ -71.1016, 42.2837 ], [ -71.1020, 42.2840 ], [ -71.1023, 42.2842 ], [ -71.1026, 42.2845 ], [ -71.1030, 42.2848 ], [ -71.1031, 42.2849 ], [ -71.1032, 42.2849 ], [ -71.1032, 42.2850 ], [ -71.1034, 42.2851 ], [ -71.1035, 42.2851 ], [ -71.1039, 42.2855 ], [ -71.1047, 42.2861 ], [ -71.1054, 42.2867 ], [ -71.1054, 42.2867 ], [ -71.1055, 42.2868 ], [ -71.1059, 42.2871 ], [ -71.1063, 42.2874 ], [ -71.1064, 42.2874 ], [ -71.1064, 42.2874 ], [ -71.1066, 42.2876 ], [ -71.1067, 42.2876 ], [ -71.1067, 42.2877 ], [ -71.1069, 42.2878 ], [ -71.1072, 42.2880 ], [ -71.1079, 42.2886 ], [ -71.1079, 42.2886 ], [ -71.1079, 42.2886 ], [ -71.1077, 42.2887 ], [ -71.1077, 42.2887 ], [ -71.1073, 42.2890 ], [ -71.1073, 42.2890 ], [ -71.1073, 42.2890 ], [ -71.1073, 42.2890 ], [ -71.1070, 42.2892 ], [ -71.1070, 42.2892 ], [ -71.1070, 42.2892 ], [ -71.1070, 42.2892 ], [ -71.1070, 42.2892 ], [ -71.1070, 42.2892 ], [ -71.1070, 42.2892 ], [ -71.1070, 42.2892 ], [ -71.1070, 42.2892 ], [ -71.1069, 42.2892 ], [ -71.1069, 42.2892 ], [ -71.1069, 42.2892 ], [ -71.1069, 42.2892 ], [ -71.1069, 42.2892 ], [ -71.1069, 42.2892 ], [ -71.1069, 42.2893 ], [ -71.1069, 42.2893 ], [ -71.1069, 42.2893 ], [ -71.1068, 42.2893 ], [ -71.1068, 42.2893 ], [ -71.1068, 42.2893 ], [ -71.1067, 42.2893 ], [ -71.1067, 42.2893 ], [ -71.1066, 42.2893 ], [ -71.1066, 42.2893 ], [ -71.1064, 42.2894 ], [ -71.1064, 42.2894 ], [ -71.1062, 42.2894 ], [ -71.1062, 42.2895 ], [ -71.1062, 42.2895 ], [ -71.1061, 42.2895 ], [ -71.1061, 42.2895 ], [ -71.1060, 42.2895 ], [ -71.1060, 42.2895 ], [ -71.1060, 42.2895 ], [ -71.1060, 42.2895 ], [ -71.1059, 42.2895 ], [ -71.1059, 42.2895 ], [ -71.1059, 42.2895 ], [ -71.1058, 42.2896 ], [ -71.1058, 42.2896 ], [ -71.1058, 42.2896 ], [ -71.1057, 42.2897 ], [ -71.1057, 42.2897 ], [ -71.1054, 42.2898 ], [ -71.1053, 42.2900 ], [ -71.1051, 42.2901 ], [ -71.1051, 42.2901 ], [ -71.1049, 42.2902 ], [ -71.1046, 42.2905 ], [ -71.1043, 42.2908 ], [ -71.1043, 42.2908 ], [ -71.1040, 42.2910 ], [ -71.1040, 42.2910 ], [ -71.1040, 42.2910 ], [ -71.1040, 42.2911 ], [ -71.1039, 42.2911 ], [ -71.1033, 42.2916 ], [ -71.1031, 42.2918 ], [ -71.1030, 42.2919 ], [ -71.1029, 42.2919 ], [ -71.1029, 42.2920 ], [ -71.1028, 42.2921 ], [ -71.1028, 42.2921 ], [ -71.1027, 42.2921 ], [ -71.1027, 42.2921 ], [ -71.1027, 42.2922 ], [ -71.1026, 42.2922 ], [ -71.1026, 42.2922 ], [ -71.1026, 42.2922 ], [ -71.1026, 42.2922 ], [ -71.1024, 42.2925 ], [ -71.1021, 42.2927 ], [ -71.1021, 42.2928 ], [ -71.1020, 42.2928 ], [ -71.1020, 42.2928 ], [ -71.1019, 42.2930 ], [ -71.1018, 42.2930 ], [ -71.1018, 42.2930 ], [ -71.1018, 42.2930 ], [ -71.1018, 42.2930 ], [ -71.1018, 42.2930 ], [ -71.1018, 42.2930 ], [ -71.1018, 42.2930 ], [ -71.1018, 42.2930 ], [ -71.1018, 42.2930 ], [ -71.1017, 42.2931 ], [ -71.1017, 42.2931 ], [ -71.1017, 42.2931 ], [ -71.1017, 42.2931 ], [ -71.1017, 42.2931 ], [ -71.1016, 42.2931 ], [ -71.1016, 42.2931 ], [ -71.1016, 42.2931 ], [ -71.1016, 42.2931 ], [ -71.1015, 42.2931 ], [ -71.1015, 42.2931 ], [ -71.1015, 42.2931 ], [ -71.1015, 42.2931 ], [ -71.1015, 42.2931 ], [ -71.1015, 42.2931 ], [ -71.1015, 42.2931 ], [ -71.1015, 42.2931 ], [ -71.1015, 42.2931 ], [ -71.1014, 42.2931 ], [ -71.1014, 42.2931 ], [ -71.1014, 42.2931 ], [ -71.1014, 42.2931 ], [ -71.1014, 42.2931 ], [ -71.1013, 42.2931 ], [ -71.1012, 42.2931 ], [ -71.1011, 42.2931 ], [ -71.1003, 42.2930 ], [ -71.1003, 42.2930 ], [ -71.1002, 42.2929 ], [ -71.1001, 42.2929 ], [ -71.1001, 42.2929 ], [ -71.1000, 42.2929 ], [ -71.1000, 42.2929 ], [ -71.0999, 42.2929 ], [ -71.0999, 42.2929 ], [ -71.0999, 42.2929 ], [ -71.0999, 42.2929 ], [ -71.0998, 42.2929 ], [ -71.0998, 42.2929 ], [ -71.0998, 42.2929 ], [ -71.0997, 42.2929 ], [ -71.0997, 42.2929 ], [ -71.0997, 42.2929 ], [ -71.0997, 42.2929 ], [ -71.0996, 42.2929 ], [ -71.0996, 42.2929 ], [ -71.0996, 42.2929 ], [ -71.0995, 42.2929 ], [ -71.0995, 42.2929 ], [ -71.0991, 42.2929 ], [ -71.0988, 42.2930 ], [ -71.0967, 42.2932 ], [ -71.0965, 42.2932 ], [ -71.0964, 42.2932 ], [ -71.0963, 42.2931 ] ] ] } }, + { "type": "Feature", "properties": { "Name": "Dorchester", "density": 15.2400 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -71.0589, 42.3287 ], [ -71.0581, 42.3275 ], [ -71.0581, 42.3275 ], [ -71.0564, 42.3260 ], [ -71.0550, 42.3250 ], [ -71.0539, 42.3242 ], [ -71.0533, 42.3237 ], [ -71.0530, 42.3234 ], [ -71.0528, 42.3233 ], [ -71.0515, 42.3221 ], [ -71.0510, 42.3219 ], [ -71.0507, 42.3219 ], [ -71.0503, 42.3219 ], [ -71.0499, 42.3221 ], [ -71.0478, 42.3226 ], [ -71.0459, 42.3232 ], [ -71.0459, 42.3232 ], [ -71.0458, 42.3231 ], [ -71.0458, 42.3231 ], [ -71.0458, 42.3231 ], [ -71.0457, 42.3231 ], [ -71.0457, 42.3231 ], [ -71.0456, 42.3231 ], [ -71.0455, 42.3231 ], [ -71.0455, 42.3231 ], [ -71.0454, 42.3231 ], [ -71.0452, 42.3231 ], [ -71.0452, 42.3231 ], [ -71.0451, 42.3230 ], [ -71.0450, 42.3230 ], [ -71.0449, 42.3230 ], [ -71.0449, 42.3230 ], [ -71.0448, 42.3230 ], [ -71.0448, 42.3230 ], [ -71.0447, 42.3230 ], [ -71.0447, 42.3229 ], [ -71.0446, 42.3229 ], [ -71.0446, 42.3229 ], [ -71.0445, 42.3229 ], [ -71.0445, 42.3229 ], [ -71.0444, 42.3229 ], [ -71.0443, 42.3229 ], [ -71.0443, 42.3229 ], [ -71.0442, 42.3228 ], [ -71.0442, 42.3228 ], [ -71.0441, 42.3228 ], [ -71.0440, 42.3228 ], [ -71.0439, 42.3227 ], [ -71.0439, 42.3227 ], [ -71.0438, 42.3226 ], [ -71.0437, 42.3226 ], [ -71.0437, 42.3226 ], [ -71.0436, 42.3225 ], [ -71.0436, 42.3225 ], [ -71.0435, 42.3225 ], [ -71.0435, 42.3224 ], [ -71.0435, 42.3224 ], [ -71.0434, 42.3223 ], [ -71.0434, 42.3223 ], [ -71.0434, 42.3222 ], [ -71.0434, 42.3222 ], [ -71.0434, 42.3221 ], [ -71.0434, 42.3220 ], [ -71.0433, 42.3220 ], [ -71.0433, 42.3219 ], [ -71.0432, 42.3218 ], [ -71.0432, 42.3217 ], [ -71.0432, 42.3217 ], [ -71.0432, 42.3216 ], [ -71.0432, 42.3216 ], [ -71.0432, 42.3216 ], [ -71.0431, 42.3216 ], [ -71.0430, 42.3215 ], [ -71.0429, 42.3215 ], [ -71.0428, 42.3214 ], [ -71.0427, 42.3214 ], [ -71.0426, 42.3214 ], [ -71.0425, 42.3213 ], [ -71.0424, 42.3213 ], [ -71.0423, 42.3212 ], [ -71.0422, 42.3212 ], [ -71.0421, 42.3212 ], [ -71.0420, 42.3211 ], [ -71.0419, 42.3211 ], [ -71.0418, 42.3210 ], [ -71.0417, 42.3210 ], [ -71.0415, 42.3209 ], [ -71.0411, 42.3208 ], [ -71.0408, 42.3206 ], [ -71.0405, 42.3205 ], [ -71.0402, 42.3204 ], [ -71.0399, 42.3203 ], [ -71.0397, 42.3202 ], [ -71.0396, 42.3201 ], [ -71.0395, 42.3201 ], [ -71.0395, 42.3201 ], [ -71.0394, 42.3201 ], [ -71.0394, 42.3201 ], [ -71.0394, 42.3201 ], [ -71.0393, 42.3201 ], [ -71.0393, 42.3200 ], [ -71.0393, 42.3200 ], [ -71.0392, 42.3199 ], [ -71.0393, 42.3199 ], [ -71.0393, 42.3199 ], [ -71.0393, 42.3198 ], [ -71.0393, 42.3198 ], [ -71.0394, 42.3198 ], [ -71.0394, 42.3198 ], [ -71.0393, 42.3198 ], [ -71.0392, 42.3197 ], [ -71.0390, 42.3196 ], [ -71.0388, 42.3195 ], [ -71.0385, 42.3194 ], [ -71.0382, 42.3193 ], [ -71.0379, 42.3192 ], [ -71.0375, 42.3190 ], [ -71.0373, 42.3189 ], [ -71.0371, 42.3188 ], [ -71.0370, 42.3188 ], [ -71.0369, 42.3188 ], [ -71.0367, 42.3187 ], [ -71.0366, 42.3187 ], [ -71.0366, 42.3187 ], [ -71.0365, 42.3187 ], [ -71.0365, 42.3186 ], [ -71.0365, 42.3186 ], [ -71.0365, 42.3185 ], [ -71.0365, 42.3184 ], [ -71.0366, 42.3184 ], [ -71.0366, 42.3184 ], [ -71.0368, 42.3183 ], [ -71.0369, 42.3183 ], [ -71.0371, 42.3182 ], [ -71.0372, 42.3182 ], [ -71.0373, 42.3181 ], [ -71.0373, 42.3181 ], [ -71.0372, 42.3180 ], [ -71.0372, 42.3179 ], [ -71.0372, 42.3178 ], [ -71.0371, 42.3177 ], [ -71.0371, 42.3177 ], [ -71.0370, 42.3176 ], [ -71.0370, 42.3176 ], [ -71.0369, 42.3175 ], [ -71.0368, 42.3175 ], [ -71.0366, 42.3174 ], [ -71.0363, 42.3173 ], [ -71.0362, 42.3173 ], [ -71.0361, 42.3173 ], [ -71.0360, 42.3172 ], [ -71.0358, 42.3172 ], [ -71.0356, 42.3172 ], [ -71.0355, 42.3171 ], [ -71.0354, 42.3171 ], [ -71.0352, 42.3170 ], [ -71.0352, 42.3170 ], [ -71.0351, 42.3170 ], [ -71.0350, 42.3169 ], [ -71.0350, 42.3169 ], [ -71.0349, 42.3169 ], [ -71.0348, 42.3169 ], [ -71.0347, 42.3169 ], [ -71.0346, 42.3168 ], [ -71.0344, 42.3168 ], [ -71.0342, 42.3167 ], [ -71.0341, 42.3167 ], [ -71.0340, 42.3167 ], [ -71.0338, 42.3166 ], [ -71.0336, 42.3166 ], [ -71.0334, 42.3165 ], [ -71.0332, 42.3165 ], [ -71.0331, 42.3164 ], [ -71.0331, 42.3164 ], [ -71.0330, 42.3164 ], [ -71.0330, 42.3164 ], [ -71.0330, 42.3163 ], [ -71.0330, 42.3161 ], [ -71.0330, 42.3159 ], [ -71.0330, 42.3157 ], [ -71.0329, 42.3155 ], [ -71.0329, 42.3153 ], [ -71.0329, 42.3151 ], [ -71.0329, 42.3149 ], [ -71.0329, 42.3147 ], [ -71.0329, 42.3145 ], [ -71.0329, 42.3143 ], [ -71.0328, 42.3141 ], [ -71.0328, 42.3140 ], [ -71.0328, 42.3139 ], [ -71.0328, 42.3138 ], [ -71.0328, 42.3137 ], [ -71.0328, 42.3136 ], [ -71.0327, 42.3136 ], [ -71.0327, 42.3135 ], [ -71.0326, 42.3134 ], [ -71.0326, 42.3134 ], [ -71.0326, 42.3133 ], [ -71.0326, 42.3133 ], [ -71.0327, 42.3132 ], [ -71.0327, 42.3131 ], [ -71.0328, 42.3131 ], [ -71.0329, 42.3131 ], [ -71.0330, 42.3131 ], [ -71.0330, 42.3131 ], [ -71.0332, 42.3131 ], [ -71.0333, 42.3130 ], [ -71.0334, 42.3130 ], [ -71.0336, 42.3128 ], [ -71.0337, 42.3127 ], [ -71.0339, 42.3126 ], [ -71.0340, 42.3125 ], [ -71.0342, 42.3124 ], [ -71.0343, 42.3123 ], [ -71.0345, 42.3121 ], [ -71.0346, 42.3120 ], [ -71.0348, 42.3119 ], [ -71.0349, 42.3118 ], [ -71.0351, 42.3117 ], [ -71.0352, 42.3116 ], [ -71.0354, 42.3115 ], [ -71.0355, 42.3114 ], [ -71.0357, 42.3113 ], [ -71.0358, 42.3111 ], [ -71.0360, 42.3110 ], [ -71.0362, 42.3108 ], [ -71.0364, 42.3107 ], [ -71.0367, 42.3105 ], [ -71.0368, 42.3104 ], [ -71.0369, 42.3104 ], [ -71.0369, 42.3103 ], [ -71.0370, 42.3103 ], [ -71.0370, 42.3103 ], [ -71.0371, 42.3103 ], [ -71.0371, 42.3103 ], [ -71.0372, 42.3103 ], [ -71.0372, 42.3103 ], [ -71.0373, 42.3103 ], [ -71.0374, 42.3103 ], [ -71.0375, 42.3103 ], [ -71.0376, 42.3103 ], [ -71.0376, 42.3103 ], [ -71.0376, 42.3103 ], [ -71.0377, 42.3103 ], [ -71.0377, 42.3103 ], [ -71.0378, 42.3103 ], [ -71.0379, 42.3104 ], [ -71.0380, 42.3105 ], [ -71.0383, 42.3106 ], [ -71.0385, 42.3107 ], [ -71.0388, 42.3109 ], [ -71.0390, 42.3111 ], [ -71.0392, 42.3112 ], [ -71.0395, 42.3113 ], [ -71.0398, 42.3115 ], [ -71.0400, 42.3116 ], [ -71.0402, 42.3118 ], [ -71.0404, 42.3119 ], [ -71.0406, 42.3120 ], [ -71.0409, 42.3122 ], [ -71.0411, 42.3123 ], [ -71.0413, 42.3125 ], [ -71.0416, 42.3126 ], [ -71.0418, 42.3128 ], [ -71.0421, 42.3129 ], [ -71.0423, 42.3131 ], [ -71.0426, 42.3132 ], [ -71.0428, 42.3134 ], [ -71.0431, 42.3135 ], [ -71.0433, 42.3137 ], [ -71.0436, 42.3139 ], [ -71.0439, 42.3140 ], [ -71.0440, 42.3141 ], [ -71.0441, 42.3142 ], [ -71.0442, 42.3142 ], [ -71.0442, 42.3142 ], [ -71.0443, 42.3142 ], [ -71.0444, 42.3142 ], [ -71.0444, 42.3142 ], [ -71.0445, 42.3142 ], [ -71.0445, 42.3142 ], [ -71.0446, 42.3142 ], [ -71.0447, 42.3141 ], [ -71.0452, 42.3138 ], [ -71.0458, 42.3135 ], [ -71.0460, 42.3134 ], [ -71.0460, 42.3134 ], [ -71.0461, 42.3133 ], [ -71.0462, 42.3133 ], [ -71.0462, 42.3132 ], [ -71.0462, 42.3131 ], [ -71.0462, 42.3131 ], [ -71.0462, 42.3130 ], [ -71.0462, 42.3130 ], [ -71.0462, 42.3130 ], [ -71.0462, 42.3129 ], [ -71.0462, 42.3129 ], [ -71.0462, 42.3129 ], [ -71.0461, 42.3128 ], [ -71.0461, 42.3128 ], [ -71.0460, 42.3128 ], [ -71.0459, 42.3128 ], [ -71.0459, 42.3128 ], [ -71.0458, 42.3127 ], [ -71.0458, 42.3127 ], [ -71.0457, 42.3126 ], [ -71.0457, 42.3126 ], [ -71.0456, 42.3125 ], [ -71.0456, 42.3125 ], [ -71.0456, 42.3124 ], [ -71.0456, 42.3124 ], [ -71.0457, 42.3123 ], [ -71.0457, 42.3123 ], [ -71.0457, 42.3123 ], [ -71.0457, 42.3123 ], [ -71.0457, 42.3123 ], [ -71.0457, 42.3123 ], [ -71.0456, 42.3123 ], [ -71.0456, 42.3122 ], [ -71.0457, 42.3122 ], [ -71.0457, 42.3122 ], [ -71.0457, 42.3121 ], [ -71.0456, 42.3121 ], [ -71.0456, 42.3120 ], [ -71.0456, 42.3119 ], [ -71.0456, 42.3120 ], [ -71.0456, 42.3120 ], [ -71.0456, 42.3121 ], [ -71.0456, 42.3121 ], [ -71.0456, 42.3121 ], [ -71.0456, 42.3121 ], [ -71.0456, 42.3122 ], [ -71.0456, 42.3122 ], [ -71.0456, 42.3123 ], [ -71.0456, 42.3123 ], [ -71.0455, 42.3123 ], [ -71.0455, 42.3124 ], [ -71.0454, 42.3124 ], [ -71.0453, 42.3124 ], [ -71.0452, 42.3125 ], [ -71.0452, 42.3125 ], [ -71.0451, 42.3124 ], [ -71.0450, 42.3124 ], [ -71.0449, 42.3124 ], [ -71.0448, 42.3124 ], [ -71.0448, 42.3123 ], [ -71.0447, 42.3123 ], [ -71.0447, 42.3122 ], [ -71.0446, 42.3121 ], [ -71.0446, 42.3121 ], [ -71.0445, 42.3120 ], [ -71.0445, 42.3120 ], [ -71.0445, 42.3120 ], [ -71.0444, 42.3119 ], [ -71.0443, 42.3119 ], [ -71.0443, 42.3118 ], [ -71.0442, 42.3118 ], [ -71.0442, 42.3117 ], [ -71.0441, 42.3116 ], [ -71.0441, 42.3116 ], [ -71.0440, 42.3115 ], [ -71.0440, 42.3114 ], [ -71.0440, 42.3114 ], [ -71.0439, 42.3113 ], [ -71.0439, 42.3112 ], [ -71.0439, 42.3112 ], [ -71.0439, 42.3111 ], [ -71.0439, 42.3111 ], [ -71.0439, 42.3110 ], [ -71.0439, 42.3110 ], [ -71.0439, 42.3109 ], [ -71.0439, 42.3109 ], [ -71.0439, 42.3109 ], [ -71.0439, 42.3109 ], [ -71.0439, 42.3109 ], [ -71.0440, 42.3109 ], [ -71.0440, 42.3109 ], [ -71.0440, 42.3108 ], [ -71.0440, 42.3108 ], [ -71.0440, 42.3108 ], [ -71.0440, 42.3108 ], [ -71.0440, 42.3108 ], [ -71.0440, 42.3108 ], [ -71.0441, 42.3108 ], [ -71.0441, 42.3108 ], [ -71.0441, 42.3108 ], [ -71.0441, 42.3108 ], [ -71.0442, 42.3108 ], [ -71.0442, 42.3108 ], [ -71.0442, 42.3108 ], [ -71.0442, 42.3108 ], [ -71.0442, 42.3108 ], [ -71.0442, 42.3107 ], [ -71.0443, 42.3107 ], [ -71.0443, 42.3107 ], [ -71.0443, 42.3107 ], [ -71.0444, 42.3107 ], [ -71.0444, 42.3107 ], [ -71.0444, 42.3107 ], [ -71.0444, 42.3107 ], [ -71.0445, 42.3107 ], [ -71.0445, 42.3106 ], [ -71.0445, 42.3106 ], [ -71.0445, 42.3106 ], [ -71.0445, 42.3106 ], [ -71.0446, 42.3106 ], [ -71.0446, 42.3106 ], [ -71.0446, 42.3106 ], [ -71.0446, 42.3106 ], [ -71.0446, 42.3106 ], [ -71.0447, 42.3106 ], [ -71.0447, 42.3106 ], [ -71.0447, 42.3106 ], [ -71.0447, 42.3106 ], [ -71.0447, 42.3106 ], [ -71.0447, 42.3106 ], [ -71.0448, 42.3106 ], [ -71.0448, 42.3106 ], [ -71.0448, 42.3106 ], [ -71.0448, 42.3106 ], [ -71.0448, 42.3106 ], [ -71.0449, 42.3106 ], [ -71.0449, 42.3106 ], [ -71.0449, 42.3106 ], [ -71.0449, 42.3106 ], [ -71.0449, 42.3106 ], [ -71.0449, 42.3106 ], [ -71.0450, 42.3106 ], [ -71.0450, 42.3106 ], [ -71.0450, 42.3106 ], [ -71.0450, 42.3106 ], [ -71.0450, 42.3106 ], [ -71.0451, 42.3106 ], [ -71.0451, 42.3107 ], [ -71.0451, 42.3107 ], [ -71.0451, 42.3107 ], [ -71.0451, 42.3107 ], [ -71.0451, 42.3107 ], [ -71.0451, 42.3107 ], [ -71.0451, 42.3107 ], [ -71.0451, 42.3108 ], [ -71.0451, 42.3108 ], [ -71.0451, 42.3108 ], [ -71.0451, 42.3108 ], [ -71.0451, 42.3109 ], [ -71.0451, 42.3109 ], [ -71.0451, 42.3109 ], [ -71.0451, 42.3109 ], [ -71.0451, 42.3110 ], [ -71.0452, 42.3110 ], [ -71.0452, 42.3110 ], [ -71.0452, 42.3110 ], [ -71.0452, 42.3111 ], [ -71.0452, 42.3111 ], [ -71.0452, 42.3111 ], [ -71.0452, 42.3110 ], [ -71.0452, 42.3110 ], [ -71.0452, 42.3110 ], [ -71.0452, 42.3110 ], [ -71.0452, 42.3110 ], [ -71.0452, 42.3110 ], [ -71.0452, 42.3110 ], [ -71.0452, 42.3110 ], [ -71.0452, 42.3110 ], [ -71.0452, 42.3110 ], [ -71.0452, 42.3110 ], [ -71.0452, 42.3110 ], [ -71.0452, 42.3110 ], [ -71.0452, 42.3109 ], [ -71.0452, 42.3109 ], [ -71.0452, 42.3109 ], [ -71.0452, 42.3109 ], [ -71.0452, 42.3109 ], [ -71.0452, 42.3109 ], [ -71.0452, 42.3109 ], [ -71.0452, 42.3109 ], [ -71.0452, 42.3109 ], [ -71.0452, 42.3109 ], [ -71.0452, 42.3109 ], [ -71.0452, 42.3109 ], [ -71.0452, 42.3108 ], [ -71.0452, 42.3108 ], [ -71.0452, 42.3108 ], [ -71.0451, 42.3108 ], [ -71.0451, 42.3108 ], [ -71.0451, 42.3108 ], [ -71.0451, 42.3108 ], [ -71.0451, 42.3108 ], [ -71.0451, 42.3108 ], [ -71.0452, 42.3107 ], [ -71.0451, 42.3107 ], [ -71.0451, 42.3107 ], [ -71.0451, 42.3107 ], [ -71.0451, 42.3107 ], [ -71.0451, 42.3107 ], [ -71.0451, 42.3107 ], [ -71.0451, 42.3107 ], [ -71.0451, 42.3106 ], [ -71.0451, 42.3106 ], [ -71.0451, 42.3106 ], [ -71.0451, 42.3106 ], [ -71.0451, 42.3106 ], [ -71.0451, 42.3106 ], [ -71.0451, 42.3106 ], [ -71.0450, 42.3106 ], [ -71.0450, 42.3106 ], [ -71.0450, 42.3106 ], [ -71.0450, 42.3105 ], [ -71.0450, 42.3105 ], [ -71.0450, 42.3105 ], [ -71.0450, 42.3105 ], [ -71.0450, 42.3105 ], [ -71.0450, 42.3105 ], [ -71.0449, 42.3104 ], [ -71.0449, 42.3104 ], [ -71.0449, 42.3103 ], [ -71.0449, 42.3103 ], [ -71.0449, 42.3103 ], [ -71.0449, 42.3103 ], [ -71.0450, 42.3103 ], [ -71.0450, 42.3102 ], [ -71.0450, 42.3102 ], [ -71.0450, 42.3102 ], [ -71.0450, 42.3102 ], [ -71.0450, 42.3101 ], [ -71.0450, 42.3101 ], [ -71.0450, 42.3101 ], [ -71.0449, 42.3101 ], [ -71.0449, 42.3101 ], [ -71.0449, 42.3101 ], [ -71.0448, 42.3101 ], [ -71.0448, 42.3101 ], [ -71.0448, 42.3101 ], [ -71.0448, 42.3101 ], [ -71.0448, 42.3101 ], [ -71.0448, 42.3101 ], [ -71.0448, 42.3101 ], [ -71.0448, 42.3101 ], [ -71.0448, 42.3101 ], [ -71.0448, 42.3101 ], [ -71.0447, 42.3101 ], [ -71.0447, 42.3101 ], [ -71.0447, 42.3101 ], [ -71.0447, 42.3101 ], [ -71.0446, 42.3101 ], [ -71.0446, 42.3101 ], [ -71.0446, 42.3101 ], [ -71.0446, 42.3101 ], [ -71.0445, 42.3101 ], [ -71.0445, 42.3101 ], [ -71.0445, 42.3101 ], [ -71.0445, 42.3101 ], [ -71.0445, 42.3101 ], [ -71.0445, 42.3101 ], [ -71.0445, 42.3101 ], [ -71.0444, 42.3101 ], [ -71.0444, 42.3101 ], [ -71.0444, 42.3101 ], [ -71.0444, 42.3101 ], [ -71.0444, 42.3101 ], [ -71.0444, 42.3101 ], [ -71.0444, 42.3101 ], [ -71.0443, 42.3101 ], [ -71.0443, 42.3101 ], [ -71.0443, 42.3101 ], [ -71.0443, 42.3101 ], [ -71.0443, 42.3101 ], [ -71.0443, 42.3101 ], [ -71.0442, 42.3101 ], [ -71.0442, 42.3101 ], [ -71.0442, 42.3101 ], [ -71.0442, 42.3101 ], [ -71.0442, 42.3101 ], [ -71.0441, 42.3101 ], [ -71.0441, 42.3101 ], [ -71.0441, 42.3101 ], [ -71.0441, 42.3101 ], [ -71.0441, 42.3101 ], [ -71.0441, 42.3101 ], [ -71.0440, 42.3101 ], [ -71.0440, 42.3101 ], [ -71.0440, 42.3101 ], [ -71.0439, 42.3101 ], [ -71.0439, 42.3101 ], [ -71.0439, 42.3101 ], [ -71.0439, 42.3101 ], [ -71.0439, 42.3101 ], [ -71.0438, 42.3101 ], [ -71.0438, 42.3101 ], [ -71.0438, 42.3101 ], [ -71.0438, 42.3100 ], [ -71.0438, 42.3100 ], [ -71.0437, 42.3100 ], [ -71.0437, 42.3100 ], [ -71.0437, 42.3100 ], [ -71.0437, 42.3100 ], [ -71.0437, 42.3100 ], [ -71.0437, 42.3100 ], [ -71.0437, 42.3100 ], [ -71.0437, 42.3100 ], [ -71.0436, 42.3100 ], [ -71.0436, 42.3100 ], [ -71.0436, 42.3101 ], [ -71.0436, 42.3101 ], [ -71.0436, 42.3101 ], [ -71.0436, 42.3101 ], [ -71.0436, 42.3101 ], [ -71.0436, 42.3101 ], [ -71.0435, 42.3101 ], [ -71.0435, 42.3101 ], [ -71.0435, 42.3101 ], [ -71.0435, 42.3101 ], [ -71.0435, 42.3101 ], [ -71.0434, 42.3102 ], [ -71.0434, 42.3102 ], [ -71.0433, 42.3102 ], [ -71.0432, 42.3102 ], [ -71.0432, 42.3102 ], [ -71.0431, 42.3103 ], [ -71.0431, 42.3103 ], [ -71.0429, 42.3103 ], [ -71.0428, 42.3103 ], [ -71.0427, 42.3103 ], [ -71.0426, 42.3103 ], [ -71.0425, 42.3103 ], [ -71.0425, 42.3103 ], [ -71.0424, 42.3103 ], [ -71.0424, 42.3102 ], [ -71.0424, 42.3101 ], [ -71.0424, 42.3100 ], [ -71.0424, 42.3100 ], [ -71.0424, 42.3100 ], [ -71.0424, 42.3100 ], [ -71.0425, 42.3100 ], [ -71.0426, 42.3099 ], [ -71.0426, 42.3099 ], [ -71.0426, 42.3099 ], [ -71.0425, 42.3099 ], [ -71.0425, 42.3098 ], [ -71.0424, 42.3098 ], [ -71.0424, 42.3098 ], [ -71.0424, 42.3098 ], [ -71.0424, 42.3097 ], [ -71.0425, 42.3097 ], [ -71.0425, 42.3097 ], [ -71.0426, 42.3096 ], [ -71.0426, 42.3096 ], [ -71.0427, 42.3096 ], [ -71.0427, 42.3096 ], [ -71.0428, 42.3096 ], [ -71.0429, 42.3095 ], [ -71.0430, 42.3095 ], [ -71.0430, 42.3095 ], [ -71.0431, 42.3094 ], [ -71.0432, 42.3094 ], [ -71.0434, 42.3094 ], [ -71.0435, 42.3093 ], [ -71.0436, 42.3093 ], [ -71.0436, 42.3093 ], [ -71.0437, 42.3092 ], [ -71.0437, 42.3092 ], [ -71.0437, 42.3093 ], [ -71.0438, 42.3093 ], [ -71.0438, 42.3093 ], [ -71.0438, 42.3093 ], [ -71.0438, 42.3093 ], [ -71.0438, 42.3093 ], [ -71.0439, 42.3093 ], [ -71.0439, 42.3093 ], [ -71.0439, 42.3093 ], [ -71.0439, 42.3093 ], [ -71.0441, 42.3093 ], [ -71.0441, 42.3093 ], [ -71.0441, 42.3092 ], [ -71.0444, 42.3092 ], [ -71.0444, 42.3091 ], [ -71.0444, 42.3091 ], [ -71.0444, 42.3091 ], [ -71.0445, 42.3091 ], [ -71.0445, 42.3091 ], [ -71.0445, 42.3091 ], [ -71.0445, 42.3091 ], [ -71.0446, 42.3090 ], [ -71.0446, 42.3090 ], [ -71.0446, 42.3090 ], [ -71.0446, 42.3090 ], [ -71.0446, 42.3090 ], [ -71.0447, 42.3090 ], [ -71.0447, 42.3090 ], [ -71.0447, 42.3090 ], [ -71.0447, 42.3089 ], [ -71.0448, 42.3089 ], [ -71.0448, 42.3089 ], [ -71.0448, 42.3089 ], [ -71.0448, 42.3089 ], [ -71.0448, 42.3089 ], [ -71.0448, 42.3089 ], [ -71.0448, 42.3089 ], [ -71.0449, 42.3089 ], [ -71.0449, 42.3089 ], [ -71.0449, 42.3089 ], [ -71.0449, 42.3088 ], [ -71.0449, 42.3088 ], [ -71.0449, 42.3088 ], [ -71.0449, 42.3088 ], [ -71.0449, 42.3088 ], [ -71.0450, 42.3087 ], [ -71.0450, 42.3087 ], [ -71.0450, 42.3087 ], [ -71.0450, 42.3087 ], [ -71.0450, 42.3086 ], [ -71.0450, 42.3086 ], [ -71.0450, 42.3086 ], [ -71.0451, 42.3085 ], [ -71.0451, 42.3085 ], [ -71.0451, 42.3085 ], [ -71.0451, 42.3085 ], [ -71.0451, 42.3084 ], [ -71.0451, 42.3084 ], [ -71.0452, 42.3084 ], [ -71.0452, 42.3083 ], [ -71.0452, 42.3083 ], [ -71.0452, 42.3083 ], [ -71.0452, 42.3083 ], [ -71.0452, 42.3083 ], [ -71.0452, 42.3083 ], [ -71.0452, 42.3083 ], [ -71.0452, 42.3083 ], [ -71.0453, 42.3082 ], [ -71.0453, 42.3082 ], [ -71.0453, 42.3082 ], [ -71.0453, 42.3082 ], [ -71.0454, 42.3082 ], [ -71.0454, 42.3081 ], [ -71.0454, 42.3081 ], [ -71.0454, 42.3081 ], [ -71.0454, 42.3081 ], [ -71.0454, 42.3081 ], [ -71.0454, 42.3080 ], [ -71.0454, 42.3080 ], [ -71.0455, 42.3080 ], [ -71.0455, 42.3080 ], [ -71.0455, 42.3080 ], [ -71.0455, 42.3080 ], [ -71.0455, 42.3079 ], [ -71.0455, 42.3079 ], [ -71.0455, 42.3079 ], [ -71.0455, 42.3079 ], [ -71.0455, 42.3079 ], [ -71.0455, 42.3079 ], [ -71.0456, 42.3078 ], [ -71.0456, 42.3078 ], [ -71.0456, 42.3078 ], [ -71.0456, 42.3078 ], [ -71.0456, 42.3077 ], [ -71.0456, 42.3077 ], [ -71.0456, 42.3077 ], [ -71.0456, 42.3076 ], [ -71.0457, 42.3076 ], [ -71.0457, 42.3076 ], [ -71.0457, 42.3075 ], [ -71.0457, 42.3075 ], [ -71.0457, 42.3075 ], [ -71.0457, 42.3074 ], [ -71.0458, 42.3074 ], [ -71.0458, 42.3074 ], [ -71.0458, 42.3074 ], [ -71.0458, 42.3073 ], [ -71.0458, 42.3073 ], [ -71.0458, 42.3073 ], [ -71.0458, 42.3072 ], [ -71.0459, 42.3072 ], [ -71.0459, 42.3072 ], [ -71.0459, 42.3072 ], [ -71.0459, 42.3071 ], [ -71.0459, 42.3071 ], [ -71.0459, 42.3071 ], [ -71.0459, 42.3070 ], [ -71.0460, 42.3070 ], [ -71.0460, 42.3070 ], [ -71.0460, 42.3069 ], [ -71.0460, 42.3069 ], [ -71.0460, 42.3069 ], [ -71.0460, 42.3069 ], [ -71.0460, 42.3069 ], [ -71.0460, 42.3069 ], [ -71.0460, 42.3069 ], [ -71.0460, 42.3069 ], [ -71.0460, 42.3068 ], [ -71.0460, 42.3068 ], [ -71.0460, 42.3068 ], [ -71.0461, 42.3068 ], [ -71.0461, 42.3068 ], [ -71.0461, 42.3068 ], [ -71.0461, 42.3067 ], [ -71.0461, 42.3067 ], [ -71.0461, 42.3067 ], [ -71.0461, 42.3067 ], [ -71.0461, 42.3066 ], [ -71.0461, 42.3066 ], [ -71.0461, 42.3066 ], [ -71.0461, 42.3066 ], [ -71.0461, 42.3066 ], [ -71.0461, 42.3066 ], [ -71.0461, 42.3066 ], [ -71.0462, 42.3065 ], [ -71.0462, 42.3065 ], [ -71.0462, 42.3065 ], [ -71.0462, 42.3065 ], [ -71.0462, 42.3065 ], [ -71.0462, 42.3064 ], [ -71.0462, 42.3064 ], [ -71.0462, 42.3064 ], [ -71.0462, 42.3064 ], [ -71.0462, 42.3064 ], [ -71.0462, 42.3063 ], [ -71.0462, 42.3063 ], [ -71.0462, 42.3063 ], [ -71.0462, 42.3063 ], [ -71.0462, 42.3062 ], [ -71.0462, 42.3062 ], [ -71.0462, 42.3061 ], [ -71.0462, 42.3061 ], [ -71.0463, 42.3060 ], [ -71.0463, 42.3059 ], [ -71.0463, 42.3059 ], [ -71.0463, 42.3059 ], [ -71.0463, 42.3059 ], [ -71.0463, 42.3059 ], [ -71.0463, 42.3058 ], [ -71.0463, 42.3058 ], [ -71.0463, 42.3058 ], [ -71.0463, 42.3057 ], [ -71.0463, 42.3057 ], [ -71.0463, 42.3057 ], [ -71.0463, 42.3056 ], [ -71.0464, 42.3056 ], [ -71.0464, 42.3056 ], [ -71.0464, 42.3056 ], [ -71.0464, 42.3056 ], [ -71.0464, 42.3054 ], [ -71.0464, 42.3054 ], [ -71.0464, 42.3054 ], [ -71.0465, 42.3053 ], [ -71.0465, 42.3053 ], [ -71.0465, 42.3053 ], [ -71.0465, 42.3052 ], [ -71.0465, 42.3052 ], [ -71.0465, 42.3052 ], [ -71.0465, 42.3052 ], [ -71.0465, 42.3051 ], [ -71.0465, 42.3051 ], [ -71.0466, 42.3051 ], [ -71.0466, 42.3051 ], [ -71.0466, 42.3051 ], [ -71.0466, 42.3051 ], [ -71.0466, 42.3050 ], [ -71.0466, 42.3050 ], [ -71.0466, 42.3050 ], [ -71.0466, 42.3050 ], [ -71.0466, 42.3050 ], [ -71.0467, 42.3050 ], [ -71.0467, 42.3050 ], [ -71.0467, 42.3049 ], [ -71.0467, 42.3049 ], [ -71.0467, 42.3049 ], [ -71.0467, 42.3049 ], [ -71.0467, 42.3049 ], [ -71.0468, 42.3048 ], [ -71.0468, 42.3048 ], [ -71.0468, 42.3048 ], [ -71.0468, 42.3048 ], [ -71.0468, 42.3048 ], [ -71.0468, 42.3048 ], [ -71.0468, 42.3047 ], [ -71.0468, 42.3047 ], [ -71.0469, 42.3047 ], [ -71.0469, 42.3047 ], [ -71.0469, 42.3047 ], [ -71.0469, 42.3046 ], [ -71.0469, 42.3046 ], [ -71.0469, 42.3046 ], [ -71.0470, 42.3045 ], [ -71.0470, 42.3045 ], [ -71.0470, 42.3045 ], [ -71.0470, 42.3045 ], [ -71.0471, 42.3044 ], [ -71.0471, 42.3044 ], [ -71.0471, 42.3043 ], [ -71.0472, 42.3043 ], [ -71.0472, 42.3043 ], [ -71.0472, 42.3043 ], [ -71.0472, 42.3043 ], [ -71.0472, 42.3043 ], [ -71.0472, 42.3043 ], [ -71.0473, 42.3043 ], [ -71.0473, 42.3043 ], [ -71.0473, 42.3043 ], [ -71.0473, 42.3042 ], [ -71.0474, 42.3042 ], [ -71.0474, 42.3042 ], [ -71.0474, 42.3042 ], [ -71.0474, 42.3042 ], [ -71.0474, 42.3041 ], [ -71.0474, 42.3042 ], [ -71.0477, 42.3044 ], [ -71.0477, 42.3044 ], [ -71.0477, 42.3044 ], [ -71.0477, 42.3044 ], [ -71.0477, 42.3044 ], [ -71.0477, 42.3044 ], [ -71.0477, 42.3044 ], [ -71.0477, 42.3044 ], [ -71.0478, 42.3044 ], [ -71.0478, 42.3044 ], [ -71.0478, 42.3044 ], [ -71.0478, 42.3044 ], [ -71.0478, 42.3044 ], [ -71.0478, 42.3045 ], [ -71.0478, 42.3045 ], [ -71.0479, 42.3045 ], [ -71.0479, 42.3045 ], [ -71.0479, 42.3045 ], [ -71.0479, 42.3045 ], [ -71.0479, 42.3045 ], [ -71.0479, 42.3045 ], [ -71.0479, 42.3045 ], [ -71.0479, 42.3045 ], [ -71.0479, 42.3045 ], [ -71.0479, 42.3045 ], [ -71.0479, 42.3046 ], [ -71.0479, 42.3046 ], [ -71.0479, 42.3046 ], [ -71.0479, 42.3047 ], [ -71.0480, 42.3047 ], [ -71.0480, 42.3047 ], [ -71.0480, 42.3047 ], [ -71.0480, 42.3047 ], [ -71.0480, 42.3048 ], [ -71.0480, 42.3048 ], [ -71.0480, 42.3048 ], [ -71.0480, 42.3048 ], [ -71.0480, 42.3048 ], [ -71.0481, 42.3049 ], [ -71.0481, 42.3049 ], [ -71.0481, 42.3049 ], [ -71.0481, 42.3050 ], [ -71.0481, 42.3050 ], [ -71.0481, 42.3050 ], [ -71.0481, 42.3050 ], [ -71.0481, 42.3050 ], [ -71.0481, 42.3051 ], [ -71.0480, 42.3051 ], [ -71.0480, 42.3052 ], [ -71.0480, 42.3052 ], [ -71.0480, 42.3052 ], [ -71.0480, 42.3052 ], [ -71.0481, 42.3053 ], [ -71.0481, 42.3054 ], [ -71.0481, 42.3054 ], [ -71.0480, 42.3054 ], [ -71.0480, 42.3054 ], [ -71.0480, 42.3054 ], [ -71.0480, 42.3055 ], [ -71.0480, 42.3055 ], [ -71.0480, 42.3055 ], [ -71.0480, 42.3055 ], [ -71.0480, 42.3055 ], [ -71.0480, 42.3055 ], [ -71.0480, 42.3055 ], [ -71.0480, 42.3056 ], [ -71.0480, 42.3056 ], [ -71.0480, 42.3056 ], [ -71.0480, 42.3057 ], [ -71.0480, 42.3057 ], [ -71.0480, 42.3058 ], [ -71.0480, 42.3058 ], [ -71.0480, 42.3058 ], [ -71.0480, 42.3058 ], [ -71.0480, 42.3058 ], [ -71.0480, 42.3058 ], [ -71.0480, 42.3059 ], [ -71.0480, 42.3059 ], [ -71.0480, 42.3059 ], [ -71.0480, 42.3059 ], [ -71.0480, 42.3059 ], [ -71.0480, 42.3060 ], [ -71.0480, 42.3060 ], [ -71.0480, 42.3060 ], [ -71.0480, 42.3060 ], [ -71.0480, 42.3061 ], [ -71.0479, 42.3061 ], [ -71.0479, 42.3062 ], [ -71.0479, 42.3062 ], [ -71.0479, 42.3062 ], [ -71.0479, 42.3062 ], [ -71.0479, 42.3062 ], [ -71.0479, 42.3062 ], [ -71.0479, 42.3062 ], [ -71.0479, 42.3063 ], [ -71.0479, 42.3063 ], [ -71.0479, 42.3063 ], [ -71.0479, 42.3063 ], [ -71.0479, 42.3064 ], [ -71.0478, 42.3064 ], [ -71.0478, 42.3064 ], [ -71.0478, 42.3065 ], [ -71.0478, 42.3065 ], [ -71.0478, 42.3065 ], [ -71.0478, 42.3066 ], [ -71.0478, 42.3066 ], [ -71.0478, 42.3066 ], [ -71.0478, 42.3067 ], [ -71.0478, 42.3067 ], [ -71.0478, 42.3067 ], [ -71.0478, 42.3067 ], [ -71.0478, 42.3067 ], [ -71.0478, 42.3068 ], [ -71.0478, 42.3068 ], [ -71.0478, 42.3068 ], [ -71.0478, 42.3068 ], [ -71.0478, 42.3068 ], [ -71.0477, 42.3068 ], [ -71.0477, 42.3068 ], [ -71.0477, 42.3068 ], [ -71.0477, 42.3068 ], [ -71.0477, 42.3068 ], [ -71.0477, 42.3068 ], [ -71.0477, 42.3068 ], [ -71.0477, 42.3069 ], [ -71.0477, 42.3069 ], [ -71.0476, 42.3069 ], [ -71.0476, 42.3069 ], [ -71.0476, 42.3069 ], [ -71.0476, 42.3070 ], [ -71.0476, 42.3070 ], [ -71.0476, 42.3070 ], [ -71.0476, 42.3070 ], [ -71.0476, 42.3070 ], [ -71.0476, 42.3071 ], [ -71.0476, 42.3071 ], [ -71.0476, 42.3071 ], [ -71.0476, 42.3071 ], [ -71.0476, 42.3071 ], [ -71.0476, 42.3071 ], [ -71.0476, 42.3071 ], [ -71.0477, 42.3071 ], [ -71.0477, 42.3071 ], [ -71.0477, 42.3072 ], [ -71.0477, 42.3072 ], [ -71.0477, 42.3072 ], [ -71.0477, 42.3072 ], [ -71.0477, 42.3072 ], [ -71.0477, 42.3072 ], [ -71.0477, 42.3072 ], [ -71.0478, 42.3072 ], [ -71.0478, 42.3073 ], [ -71.0478, 42.3073 ], [ -71.0478, 42.3073 ], [ -71.0478, 42.3073 ], [ -71.0478, 42.3074 ], [ -71.0478, 42.3074 ], [ -71.0478, 42.3074 ], [ -71.0478, 42.3074 ], [ -71.0478, 42.3074 ], [ -71.0478, 42.3075 ], [ -71.0478, 42.3075 ], [ -71.0479, 42.3075 ], [ -71.0479, 42.3075 ], [ -71.0479, 42.3075 ], [ -71.0479, 42.3075 ], [ -71.0479, 42.3075 ], [ -71.0479, 42.3075 ], [ -71.0480, 42.3075 ], [ -71.0480, 42.3075 ], [ -71.0480, 42.3075 ], [ -71.0481, 42.3076 ], [ -71.0481, 42.3076 ], [ -71.0481, 42.3076 ], [ -71.0481, 42.3076 ], [ -71.0482, 42.3076 ], [ -71.0482, 42.3077 ], [ -71.0483, 42.3077 ], [ -71.0484, 42.3077 ], [ -71.0485, 42.3078 ], [ -71.0487, 42.3078 ], [ -71.0489, 42.3078 ], [ -71.0490, 42.3078 ], [ -71.0490, 42.3078 ], [ -71.0491, 42.3078 ], [ -71.0491, 42.3078 ], [ -71.0492, 42.3078 ], [ -71.0492, 42.3078 ], [ -71.0492, 42.3078 ], [ -71.0494, 42.3078 ], [ -71.0494, 42.3078 ], [ -71.0494, 42.3078 ], [ -71.0496, 42.3078 ], [ -71.0497, 42.3078 ], [ -71.0499, 42.3078 ], [ -71.0500, 42.3078 ], [ -71.0502, 42.3078 ], [ -71.0502, 42.3078 ], [ -71.0503, 42.3079 ], [ -71.0504, 42.3079 ], [ -71.0504, 42.3079 ], [ -71.0505, 42.3079 ], [ -71.0506, 42.3079 ], [ -71.0506, 42.3079 ], [ -71.0507, 42.3079 ], [ -71.0508, 42.3079 ], [ -71.0509, 42.3079 ], [ -71.0512, 42.3079 ], [ -71.0515, 42.3079 ], [ -71.0517, 42.3079 ], [ -71.0520, 42.3079 ], [ -71.0521, 42.3079 ], [ -71.0521, 42.3079 ], [ -71.0521, 42.3079 ], [ -71.0522, 42.3079 ], [ -71.0522, 42.3079 ], [ -71.0522, 42.3079 ], [ -71.0523, 42.3079 ], [ -71.0523, 42.3079 ], [ -71.0523, 42.3079 ], [ -71.0523, 42.3078 ], [ -71.0523, 42.3078 ], [ -71.0524, 42.3078 ], [ -71.0525, 42.3078 ], [ -71.0525, 42.3078 ], [ -71.0525, 42.3078 ], [ -71.0526, 42.3078 ], [ -71.0526, 42.3078 ], [ -71.0526, 42.3078 ], [ -71.0527, 42.3078 ], [ -71.0527, 42.3078 ], [ -71.0527, 42.3078 ], [ -71.0527, 42.3078 ], [ -71.0527, 42.3077 ], [ -71.0528, 42.3077 ], [ -71.0528, 42.3077 ], [ -71.0528, 42.3077 ], [ -71.0528, 42.3077 ], [ -71.0528, 42.3077 ], [ -71.0529, 42.3077 ], [ -71.0529, 42.3077 ], [ -71.0529, 42.3077 ], [ -71.0529, 42.3077 ], [ -71.0529, 42.3077 ], [ -71.0529, 42.3077 ], [ -71.0530, 42.3077 ], [ -71.0530, 42.3077 ], [ -71.0530, 42.3077 ], [ -71.0530, 42.3077 ], [ -71.0531, 42.3078 ], [ -71.0531, 42.3077 ], [ -71.0531, 42.3077 ], [ -71.0531, 42.3076 ], [ -71.0531, 42.3076 ], [ -71.0531, 42.3076 ], [ -71.0531, 42.3076 ], [ -71.0531, 42.3076 ], [ -71.0531, 42.3076 ], [ -71.0531, 42.3076 ], [ -71.0531, 42.3076 ], [ -71.0532, 42.3076 ], [ -71.0532, 42.3076 ], [ -71.0532, 42.3075 ], [ -71.0533, 42.3075 ], [ -71.0533, 42.3075 ], [ -71.0533, 42.3074 ], [ -71.0533, 42.3074 ], [ -71.0533, 42.3073 ], [ -71.0533, 42.3073 ], [ -71.0533, 42.3073 ], [ -71.0533, 42.3073 ], [ -71.0533, 42.3073 ], [ -71.0533, 42.3072 ], [ -71.0533, 42.3072 ], [ -71.0533, 42.3072 ], [ -71.0533, 42.3072 ], [ -71.0533, 42.3072 ], [ -71.0533, 42.3071 ], [ -71.0533, 42.3071 ], [ -71.0533, 42.3070 ], [ -71.0533, 42.3070 ], [ -71.0533, 42.3070 ], [ -71.0533, 42.3070 ], [ -71.0532, 42.3069 ], [ -71.0532, 42.3068 ], [ -71.0532, 42.3067 ], [ -71.0532, 42.3066 ], [ -71.0532, 42.3066 ], [ -71.0532, 42.3066 ], [ -71.0531, 42.3065 ], [ -71.0531, 42.3065 ], [ -71.0530, 42.3065 ], [ -71.0530, 42.3065 ], [ -71.0530, 42.3064 ], [ -71.0531, 42.3064 ], [ -71.0532, 42.3064 ], [ -71.0532, 42.3064 ], [ -71.0532, 42.3064 ], [ -71.0533, 42.3064 ], [ -71.0533, 42.3064 ], [ -71.0533, 42.3064 ], [ -71.0533, 42.3064 ], [ -71.0533, 42.3064 ], [ -71.0533, 42.3064 ], [ -71.0534, 42.3064 ], [ -71.0534, 42.3064 ], [ -71.0534, 42.3064 ], [ -71.0534, 42.3064 ], [ -71.0534, 42.3064 ], [ -71.0534, 42.3064 ], [ -71.0534, 42.3063 ], [ -71.0534, 42.3063 ], [ -71.0534, 42.3063 ], [ -71.0534, 42.3063 ], [ -71.0534, 42.3063 ], [ -71.0534, 42.3063 ], [ -71.0534, 42.3062 ], [ -71.0534, 42.3061 ], [ -71.0533, 42.3060 ], [ -71.0533, 42.3059 ], [ -71.0532, 42.3058 ], [ -71.0532, 42.3057 ], [ -71.0532, 42.3056 ], [ -71.0531, 42.3056 ], [ -71.0531, 42.3055 ], [ -71.0530, 42.3054 ], [ -71.0530, 42.3053 ], [ -71.0529, 42.3052 ], [ -71.0528, 42.3050 ], [ -71.0528, 42.3049 ], [ -71.0527, 42.3048 ], [ -71.0526, 42.3047 ], [ -71.0525, 42.3046 ], [ -71.0524, 42.3045 ], [ -71.0524, 42.3045 ], [ -71.0523, 42.3044 ], [ -71.0522, 42.3043 ], [ -71.0522, 42.3043 ], [ -71.0522, 42.3042 ], [ -71.0521, 42.3042 ], [ -71.0520, 42.3041 ], [ -71.0520, 42.3041 ], [ -71.0519, 42.3040 ], [ -71.0519, 42.3040 ], [ -71.0518, 42.3039 ], [ -71.0517, 42.3039 ], [ -71.0516, 42.3038 ], [ -71.0516, 42.3038 ], [ -71.0515, 42.3037 ], [ -71.0515, 42.3037 ], [ -71.0514, 42.3036 ], [ -71.0513, 42.3036 ], [ -71.0513, 42.3035 ], [ -71.0513, 42.3035 ], [ -71.0512, 42.3034 ], [ -71.0511, 42.3034 ], [ -71.0511, 42.3033 ], [ -71.0510, 42.3033 ], [ -71.0510, 42.3032 ], [ -71.0509, 42.3032 ], [ -71.0508, 42.3031 ], [ -71.0507, 42.3030 ], [ -71.0507, 42.3030 ], [ -71.0506, 42.3029 ], [ -71.0505, 42.3029 ], [ -71.0505, 42.3028 ], [ -71.0504, 42.3028 ], [ -71.0504, 42.3027 ], [ -71.0504, 42.3027 ], [ -71.0503, 42.3027 ], [ -71.0503, 42.3026 ], [ -71.0501, 42.3025 ], [ -71.0500, 42.3025 ], [ -71.0500, 42.3024 ], [ -71.0499, 42.3024 ], [ -71.0499, 42.3023 ], [ -71.0498, 42.3023 ], [ -71.0498, 42.3022 ], [ -71.0498, 42.3022 ], [ -71.0497, 42.3022 ], [ -71.0497, 42.3021 ], [ -71.0496, 42.3021 ], [ -71.0496, 42.3021 ], [ -71.0495, 42.3020 ], [ -71.0495, 42.3020 ], [ -71.0495, 42.3019 ], [ -71.0494, 42.3019 ], [ -71.0494, 42.3019 ], [ -71.0494, 42.3019 ], [ -71.0494, 42.3019 ], [ -71.0493, 42.3019 ], [ -71.0493, 42.3019 ], [ -71.0493, 42.3019 ], [ -71.0493, 42.3019 ], [ -71.0493, 42.3019 ], [ -71.0492, 42.3019 ], [ -71.0492, 42.3019 ], [ -71.0492, 42.3019 ], [ -71.0492, 42.3020 ], [ -71.0492, 42.3020 ], [ -71.0492, 42.3020 ], [ -71.0492, 42.3020 ], [ -71.0492, 42.3020 ], [ -71.0491, 42.3020 ], [ -71.0491, 42.3021 ], [ -71.0491, 42.3021 ], [ -71.0491, 42.3021 ], [ -71.0491, 42.3021 ], [ -71.0491, 42.3022 ], [ -71.0491, 42.3022 ], [ -71.0491, 42.3023 ], [ -71.0491, 42.3023 ], [ -71.0490, 42.3023 ], [ -71.0490, 42.3023 ], [ -71.0490, 42.3024 ], [ -71.0490, 42.3024 ], [ -71.0490, 42.3024 ], [ -71.0490, 42.3024 ], [ -71.0490, 42.3025 ], [ -71.0490, 42.3025 ], [ -71.0490, 42.3026 ], [ -71.0489, 42.3026 ], [ -71.0489, 42.3027 ], [ -71.0489, 42.3027 ], [ -71.0489, 42.3027 ], [ -71.0489, 42.3028 ], [ -71.0488, 42.3028 ], [ -71.0488, 42.3028 ], [ -71.0488, 42.3029 ], [ -71.0488, 42.3029 ], [ -71.0488, 42.3029 ], [ -71.0487, 42.3030 ], [ -71.0487, 42.3030 ], [ -71.0487, 42.3030 ], [ -71.0487, 42.3030 ], [ -71.0486, 42.3031 ], [ -71.0486, 42.3031 ], [ -71.0486, 42.3031 ], [ -71.0486, 42.3031 ], [ -71.0486, 42.3031 ], [ -71.0486, 42.3031 ], [ -71.0485, 42.3032 ], [ -71.0485, 42.3032 ], [ -71.0485, 42.3032 ], [ -71.0485, 42.3032 ], [ -71.0485, 42.3032 ], [ -71.0484, 42.3033 ], [ -71.0484, 42.3033 ], [ -71.0484, 42.3033 ], [ -71.0484, 42.3033 ], [ -71.0484, 42.3033 ], [ -71.0484, 42.3033 ], [ -71.0484, 42.3033 ], [ -71.0484, 42.3033 ], [ -71.0484, 42.3033 ], [ -71.0484, 42.3033 ], [ -71.0484, 42.3033 ], [ -71.0484, 42.3033 ], [ -71.0484, 42.3033 ], [ -71.0484, 42.3033 ], [ -71.0484, 42.3033 ], [ -71.0484, 42.3033 ], [ -71.0484, 42.3034 ], [ -71.0483, 42.3034 ], [ -71.0483, 42.3034 ], [ -71.0483, 42.3034 ], [ -71.0483, 42.3034 ], [ -71.0483, 42.3034 ], [ -71.0483, 42.3034 ], [ -71.0483, 42.3034 ], [ -71.0482, 42.3034 ], [ -71.0482, 42.3033 ], [ -71.0482, 42.3033 ], [ -71.0479, 42.3032 ], [ -71.0479, 42.3032 ], [ -71.0478, 42.3032 ], [ -71.0478, 42.3032 ], [ -71.0478, 42.3032 ], [ -71.0478, 42.3032 ], [ -71.0478, 42.3032 ], [ -71.0478, 42.3032 ], [ -71.0478, 42.3032 ], [ -71.0478, 42.3032 ], [ -71.0478, 42.3031 ], [ -71.0478, 42.3031 ], [ -71.0478, 42.3031 ], [ -71.0478, 42.3031 ], [ -71.0478, 42.3031 ], [ -71.0478, 42.3031 ], [ -71.0478, 42.3031 ], [ -71.0478, 42.3030 ], [ -71.0478, 42.3030 ], [ -71.0478, 42.3029 ], [ -71.0479, 42.3029 ], [ -71.0479, 42.3029 ], [ -71.0479, 42.3028 ], [ -71.0479, 42.3028 ], [ -71.0479, 42.3028 ], [ -71.0479, 42.3028 ], [ -71.0479, 42.3027 ], [ -71.0479, 42.3027 ], [ -71.0479, 42.3027 ], [ -71.0479, 42.3027 ], [ -71.0479, 42.3027 ], [ -71.0479, 42.3026 ], [ -71.0479, 42.3026 ], [ -71.0479, 42.3025 ], [ -71.0479, 42.3025 ], [ -71.0479, 42.3024 ], [ -71.0479, 42.3024 ], [ -71.0479, 42.3024 ], [ -71.0479, 42.3024 ], [ -71.0479, 42.3023 ], [ -71.0479, 42.3023 ], [ -71.0479, 42.3023 ], [ -71.0479, 42.3023 ], [ -71.0479, 42.3023 ], [ -71.0479, 42.3023 ], [ -71.0479, 42.3023 ], [ -71.0479, 42.3023 ], [ -71.0479, 42.3022 ], [ -71.0479, 42.3022 ], [ -71.0479, 42.3022 ], [ -71.0479, 42.3022 ], [ -71.0479, 42.3022 ], [ -71.0479, 42.3022 ], [ -71.0479, 42.3022 ], [ -71.0479, 42.3022 ], [ -71.0479, 42.3022 ], [ -71.0479, 42.3022 ], [ -71.0479, 42.3022 ], [ -71.0479, 42.3022 ], [ -71.0479, 42.3022 ], [ -71.0479, 42.3022 ], [ -71.0479, 42.3022 ], [ -71.0479, 42.3021 ], [ -71.0479, 42.3021 ], [ -71.0479, 42.3021 ], [ -71.0479, 42.3021 ], [ -71.0479, 42.3021 ], [ -71.0479, 42.3021 ], [ -71.0479, 42.3021 ], [ -71.0479, 42.3021 ], [ -71.0479, 42.3021 ], [ -71.0479, 42.3021 ], [ -71.0479, 42.3021 ], [ -71.0479, 42.3021 ], [ -71.0479, 42.3021 ], [ -71.0479, 42.3021 ], [ -71.0479, 42.3021 ], [ -71.0478, 42.3021 ], [ -71.0478, 42.3021 ], [ -71.0478, 42.3021 ], [ -71.0478, 42.3021 ], [ -71.0478, 42.3021 ], [ -71.0477, 42.3021 ], [ -71.0477, 42.3021 ], [ -71.0476, 42.3021 ], [ -71.0475, 42.3021 ], [ -71.0475, 42.3021 ], [ -71.0474, 42.3021 ], [ -71.0474, 42.3021 ], [ -71.0473, 42.3021 ], [ -71.0472, 42.3021 ], [ -71.0472, 42.3021 ], [ -71.0472, 42.3021 ], [ -71.0471, 42.3021 ], [ -71.0471, 42.3022 ], [ -71.0471, 42.3022 ], [ -71.0471, 42.3022 ], [ -71.0470, 42.3022 ], [ -71.0470, 42.3023 ], [ -71.0469, 42.3024 ], [ -71.0469, 42.3025 ], [ -71.0469, 42.3026 ], [ -71.0468, 42.3027 ], [ -71.0468, 42.3027 ], [ -71.0468, 42.3028 ], [ -71.0468, 42.3028 ], [ -71.0468, 42.3028 ], [ -71.0468, 42.3029 ], [ -71.0468, 42.3029 ], [ -71.0468, 42.3029 ], [ -71.0468, 42.3029 ], [ -71.0468, 42.3029 ], [ -71.0469, 42.3029 ], [ -71.0469, 42.3029 ], [ -71.0469, 42.3030 ], [ -71.0468, 42.3030 ], [ -71.0468, 42.3030 ], [ -71.0467, 42.3030 ], [ -71.0466, 42.3030 ], [ -71.0465, 42.3029 ], [ -71.0462, 42.3029 ], [ -71.0459, 42.3028 ], [ -71.0457, 42.3028 ], [ -71.0455, 42.3027 ], [ -71.0452, 42.3027 ], [ -71.0449, 42.3026 ], [ -71.0447, 42.3026 ], [ -71.0446, 42.3026 ], [ -71.0446, 42.3026 ], [ -71.0446, 42.3026 ], [ -71.0440, 42.3024 ], [ -71.0437, 42.3024 ], [ -71.0437, 42.3024 ], [ -71.0436, 42.3024 ], [ -71.0435, 42.3022 ], [ -71.0435, 42.3021 ], [ -71.0434, 42.3019 ], [ -71.0433, 42.3018 ], [ -71.0433, 42.3018 ], [ -71.0433, 42.3016 ], [ -71.0433, 42.3014 ], [ -71.0433, 42.3013 ], [ -71.0433, 42.3012 ], [ -71.0433, 42.3011 ], [ -71.0433, 42.3011 ], [ -71.0433, 42.3011 ], [ -71.0433, 42.3010 ], [ -71.0433, 42.3010 ], [ -71.0436, 42.3009 ], [ -71.0437, 42.3009 ], [ -71.0438, 42.3009 ], [ -71.0438, 42.3008 ], [ -71.0438, 42.3008 ], [ -71.0438, 42.3008 ], [ -71.0439, 42.3008 ], [ -71.0439, 42.3008 ], [ -71.0439, 42.3008 ], [ -71.0439, 42.3008 ], [ -71.0439, 42.3007 ], [ -71.0439, 42.3007 ], [ -71.0439, 42.3007 ], [ -71.0440, 42.3007 ], [ -71.0440, 42.3007 ], [ -71.0440, 42.3007 ], [ -71.0440, 42.3007 ], [ -71.0440, 42.3007 ], [ -71.0440, 42.3007 ], [ -71.0440, 42.3007 ], [ -71.0440, 42.3006 ], [ -71.0440, 42.3006 ], [ -71.0440, 42.3006 ], [ -71.0441, 42.3006 ], [ -71.0441, 42.3006 ], [ -71.0441, 42.3005 ], [ -71.0441, 42.3005 ], [ -71.0441, 42.3005 ], [ -71.0441, 42.3004 ], [ -71.0442, 42.3004 ], [ -71.0442, 42.3004 ], [ -71.0442, 42.3004 ], [ -71.0442, 42.3004 ], [ -71.0442, 42.3004 ], [ -71.0442, 42.3003 ], [ -71.0442, 42.3003 ], [ -71.0442, 42.3003 ], [ -71.0442, 42.3003 ], [ -71.0441, 42.3003 ], [ -71.0441, 42.3003 ], [ -71.0441, 42.3002 ], [ -71.0441, 42.3002 ], [ -71.0441, 42.3002 ], [ -71.0441, 42.3002 ], [ -71.0441, 42.3001 ], [ -71.0441, 42.3001 ], [ -71.0441, 42.3001 ], [ -71.0440, 42.3001 ], [ -71.0440, 42.3001 ], [ -71.0440, 42.3000 ], [ -71.0440, 42.3000 ], [ -71.0440, 42.3000 ], [ -71.0440, 42.2999 ], [ -71.0440, 42.2999 ], [ -71.0439, 42.2999 ], [ -71.0439, 42.2999 ], [ -71.0439, 42.2999 ], [ -71.0439, 42.2999 ], [ -71.0439, 42.2999 ], [ -71.0439, 42.2999 ], [ -71.0438, 42.2999 ], [ -71.0438, 42.2999 ], [ -71.0438, 42.2999 ], [ -71.0438, 42.3000 ], [ -71.0433, 42.2999 ], [ -71.0434, 42.2998 ], [ -71.0438, 42.2998 ], [ -71.0438, 42.2998 ], [ -71.0438, 42.2998 ], [ -71.0438, 42.2997 ], [ -71.0439, 42.2996 ], [ -71.0439, 42.2996 ], [ -71.0440, 42.2995 ], [ -71.0440, 42.2995 ], [ -71.0447, 42.2993 ], [ -71.0448, 42.2994 ], [ -71.0448, 42.2994 ], [ -71.0448, 42.2992 ], [ -71.0455, 42.2989 ], [ -71.0455, 42.2989 ], [ -71.0456, 42.2990 ], [ -71.0457, 42.2991 ], [ -71.0457, 42.2991 ], [ -71.0459, 42.2991 ], [ -71.0460, 42.2990 ], [ -71.0461, 42.2990 ], [ -71.0462, 42.2990 ], [ -71.0462, 42.2990 ], [ -71.0462, 42.2990 ], [ -71.0462, 42.2990 ], [ -71.0462, 42.2990 ], [ -71.0462, 42.2990 ], [ -71.0462, 42.2990 ], [ -71.0463, 42.2990 ], [ -71.0463, 42.2989 ], [ -71.0463, 42.2989 ], [ -71.0463, 42.2989 ], [ -71.0463, 42.2989 ], [ -71.0464, 42.2988 ], [ -71.0464, 42.2988 ], [ -71.0464, 42.2988 ], [ -71.0464, 42.2988 ], [ -71.0463, 42.2987 ], [ -71.0463, 42.2987 ], [ -71.0463, 42.2987 ], [ -71.0462, 42.2987 ], [ -71.0462, 42.2986 ], [ -71.0462, 42.2985 ], [ -71.0462, 42.2985 ], [ -71.0462, 42.2985 ], [ -71.0462, 42.2984 ], [ -71.0463, 42.2984 ], [ -71.0463, 42.2984 ], [ -71.0462, 42.2983 ], [ -71.0460, 42.2984 ], [ -71.0460, 42.2984 ], [ -71.0460, 42.2984 ], [ -71.0459, 42.2983 ], [ -71.0459, 42.2983 ], [ -71.0458, 42.2982 ], [ -71.0457, 42.2981 ], [ -71.0456, 42.2981 ], [ -71.0455, 42.2980 ], [ -71.0454, 42.2979 ], [ -71.0453, 42.2979 ], [ -71.0452, 42.2978 ], [ -71.0451, 42.2977 ], [ -71.0450, 42.2976 ], [ -71.0449, 42.2976 ], [ -71.0449, 42.2975 ], [ -71.0448, 42.2974 ], [ -71.0448, 42.2974 ], [ -71.0447, 42.2973 ], [ -71.0447, 42.2972 ], [ -71.0447, 42.2971 ], [ -71.0447, 42.2970 ], [ -71.0447, 42.2969 ], [ -71.0447, 42.2968 ], [ -71.0447, 42.2968 ], [ -71.0446, 42.2967 ], [ -71.0446, 42.2967 ], [ -71.0446, 42.2966 ], [ -71.0446, 42.2965 ], [ -71.0445, 42.2964 ], [ -71.0445, 42.2964 ], [ -71.0445, 42.2963 ], [ -71.0445, 42.2963 ], [ -71.0445, 42.2962 ], [ -71.0446, 42.2962 ], [ -71.0446, 42.2961 ], [ -71.0446, 42.2960 ], [ -71.0447, 42.2960 ], [ -71.0447, 42.2960 ], [ -71.0448, 42.2959 ], [ -71.0448, 42.2959 ], [ -71.0449, 42.2959 ], [ -71.0449, 42.2959 ], [ -71.0450, 42.2959 ], [ -71.0450, 42.2959 ], [ -71.0451, 42.2959 ], [ -71.0451, 42.2959 ], [ -71.0451, 42.2960 ], [ -71.0452, 42.2960 ], [ -71.0452, 42.2960 ], [ -71.0453, 42.2960 ], [ -71.0453, 42.2960 ], [ -71.0454, 42.2960 ], [ -71.0454, 42.2960 ], [ -71.0455, 42.2960 ], [ -71.0455, 42.2960 ], [ -71.0455, 42.2961 ], [ -71.0455, 42.2961 ], [ -71.0455, 42.2962 ], [ -71.0455, 42.2962 ], [ -71.0455, 42.2963 ], [ -71.0455, 42.2963 ], [ -71.0455, 42.2964 ], [ -71.0456, 42.2964 ], [ -71.0456, 42.2964 ], [ -71.0457, 42.2964 ], [ -71.0458, 42.2964 ], [ -71.0458, 42.2965 ], [ -71.0458, 42.2966 ], [ -71.0458, 42.2967 ], [ -71.0458, 42.2967 ], [ -71.0458, 42.2968 ], [ -71.0459, 42.2968 ], [ -71.0459, 42.2969 ], [ -71.0459, 42.2970 ], [ -71.0460, 42.2970 ], [ -71.0460, 42.2971 ], [ -71.0460, 42.2972 ], [ -71.0459, 42.2973 ], [ -71.0459, 42.2973 ], [ -71.0459, 42.2974 ], [ -71.0459, 42.2974 ], [ -71.0460, 42.2975 ], [ -71.0460, 42.2976 ], [ -71.0461, 42.2976 ], [ -71.0461, 42.2976 ], [ -71.0461, 42.2977 ], [ -71.0461, 42.2977 ], [ -71.0461, 42.2977 ], [ -71.0461, 42.2977 ], [ -71.0461, 42.2978 ], [ -71.0462, 42.2978 ], [ -71.0462, 42.2979 ], [ -71.0462, 42.2980 ], [ -71.0463, 42.2980 ], [ -71.0463, 42.2980 ], [ -71.0464, 42.2980 ], [ -71.0464, 42.2981 ], [ -71.0464, 42.2982 ], [ -71.0464, 42.2982 ], [ -71.0463, 42.2982 ], [ -71.0463, 42.2982 ], [ -71.0464, 42.2984 ], [ -71.0465, 42.2983 ], [ -71.0466, 42.2983 ], [ -71.0466, 42.2982 ], [ -71.0465, 42.2980 ], [ -71.0465, 42.2980 ], [ -71.0465, 42.2980 ], [ -71.0464, 42.2980 ], [ -71.0464, 42.2979 ], [ -71.0464, 42.2979 ], [ -71.0464, 42.2979 ], [ -71.0464, 42.2979 ], [ -71.0465, 42.2979 ], [ -71.0465, 42.2979 ], [ -71.0465, 42.2979 ], [ -71.0465, 42.2977 ], [ -71.0464, 42.2976 ], [ -71.0464, 42.2974 ], [ -71.0463, 42.2973 ], [ -71.0463, 42.2971 ], [ -71.0461, 42.2967 ], [ -71.0460, 42.2962 ], [ -71.0458, 42.2958 ], [ -71.0455, 42.2953 ], [ -71.0453, 42.2950 ], [ -71.0450, 42.2945 ], [ -71.0449, 42.2943 ], [ -71.0447, 42.2940 ], [ -71.0447, 42.2938 ], [ -71.0445, 42.2937 ], [ -71.0445, 42.2936 ], [ -71.0445, 42.2936 ], [ -71.0444, 42.2936 ], [ -71.0444, 42.2936 ], [ -71.0444, 42.2936 ], [ -71.0443, 42.2936 ], [ -71.0443, 42.2936 ], [ -71.0442, 42.2936 ], [ -71.0442, 42.2936 ], [ -71.0441, 42.2936 ], [ -71.0441, 42.2935 ], [ -71.0441, 42.2935 ], [ -71.0441, 42.2934 ], [ -71.0440, 42.2934 ], [ -71.0439, 42.2933 ], [ -71.0438, 42.2933 ], [ -71.0437, 42.2932 ], [ -71.0436, 42.2931 ], [ -71.0435, 42.2930 ], [ -71.0434, 42.2930 ], [ -71.0433, 42.2929 ], [ -71.0432, 42.2928 ], [ -71.0431, 42.2928 ], [ -71.0430, 42.2927 ], [ -71.0430, 42.2927 ], [ -71.0429, 42.2927 ], [ -71.0429, 42.2926 ], [ -71.0429, 42.2926 ], [ -71.0429, 42.2926 ], [ -71.0429, 42.2926 ], [ -71.0428, 42.2926 ], [ -71.0428, 42.2925 ], [ -71.0428, 42.2925 ], [ -71.0428, 42.2925 ], [ -71.0428, 42.2925 ], [ -71.0427, 42.2925 ], [ -71.0427, 42.2925 ], [ -71.0427, 42.2924 ], [ -71.0427, 42.2924 ], [ -71.0427, 42.2924 ], [ -71.0426, 42.2924 ], [ -71.0426, 42.2924 ], [ -71.0426, 42.2924 ], [ -71.0426, 42.2924 ], [ -71.0426, 42.2924 ], [ -71.0426, 42.2924 ], [ -71.0426, 42.2924 ], [ -71.0426, 42.2923 ], [ -71.0425, 42.2923 ], [ -71.0425, 42.2923 ], [ -71.0425, 42.2923 ], [ -71.0425, 42.2923 ], [ -71.0425, 42.2923 ], [ -71.0425, 42.2923 ], [ -71.0425, 42.2922 ], [ -71.0425, 42.2922 ], [ -71.0425, 42.2922 ], [ -71.0425, 42.2922 ], [ -71.0425, 42.2922 ], [ -71.0424, 42.2921 ], [ -71.0424, 42.2921 ], [ -71.0424, 42.2921 ], [ -71.0424, 42.2921 ], [ -71.0424, 42.2921 ], [ -71.0424, 42.2920 ], [ -71.0424, 42.2920 ], [ -71.0423, 42.2920 ], [ -71.0423, 42.2920 ], [ -71.0423, 42.2920 ], [ -71.0423, 42.2920 ], [ -71.0423, 42.2919 ], [ -71.0423, 42.2919 ], [ -71.0423, 42.2919 ], [ -71.0423, 42.2919 ], [ -71.0423, 42.2919 ], [ -71.0423, 42.2919 ], [ -71.0423, 42.2919 ], [ -71.0423, 42.2919 ], [ -71.0423, 42.2919 ], [ -71.0423, 42.2919 ], [ -71.0423, 42.2919 ], [ -71.0423, 42.2919 ], [ -71.0423, 42.2919 ], [ -71.0423, 42.2918 ], [ -71.0422, 42.2918 ], [ -71.0422, 42.2918 ], [ -71.0422, 42.2918 ], [ -71.0422, 42.2918 ], [ -71.0422, 42.2918 ], [ -71.0422, 42.2918 ], [ -71.0422, 42.2918 ], [ -71.0422, 42.2918 ], [ -71.0422, 42.2918 ], [ -71.0422, 42.2918 ], [ -71.0422, 42.2918 ], [ -71.0422, 42.2918 ], [ -71.0422, 42.2917 ], [ -71.0422, 42.2917 ], [ -71.0422, 42.2917 ], [ -71.0421, 42.2917 ], [ -71.0421, 42.2917 ], [ -71.0421, 42.2917 ], [ -71.0422, 42.2917 ], [ -71.0422, 42.2917 ], [ -71.0422, 42.2916 ], [ -71.0422, 42.2916 ], [ -71.0422, 42.2916 ], [ -71.0422, 42.2916 ], [ -71.0422, 42.2916 ], [ -71.0422, 42.2915 ], [ -71.0422, 42.2915 ], [ -71.0422, 42.2915 ], [ -71.0422, 42.2915 ], [ -71.0422, 42.2915 ], [ -71.0422, 42.2915 ], [ -71.0422, 42.2915 ], [ -71.0422, 42.2915 ], [ -71.0421, 42.2915 ], [ -71.0421, 42.2915 ], [ -71.0421, 42.2914 ], [ -71.0421, 42.2914 ], [ -71.0421, 42.2914 ], [ -71.0421, 42.2914 ], [ -71.0421, 42.2914 ], [ -71.0421, 42.2914 ], [ -71.0420, 42.2914 ], [ -71.0420, 42.2914 ], [ -71.0420, 42.2914 ], [ -71.0420, 42.2914 ], [ -71.0420, 42.2914 ], [ -71.0420, 42.2913 ], [ -71.0420, 42.2913 ], [ -71.0420, 42.2913 ], [ -71.0420, 42.2913 ], [ -71.0420, 42.2913 ], [ -71.0420, 42.2913 ], [ -71.0420, 42.2913 ], [ -71.0419, 42.2913 ], [ -71.0419, 42.2912 ], [ -71.0419, 42.2912 ], [ -71.0419, 42.2912 ], [ -71.0419, 42.2912 ], [ -71.0419, 42.2912 ], [ -71.0419, 42.2912 ], [ -71.0419, 42.2912 ], [ -71.0419, 42.2912 ], [ -71.0419, 42.2911 ], [ -71.0419, 42.2911 ], [ -71.0419, 42.2911 ], [ -71.0419, 42.2911 ], [ -71.0419, 42.2911 ], [ -71.0419, 42.2911 ], [ -71.0419, 42.2911 ], [ -71.0419, 42.2911 ], [ -71.0419, 42.2911 ], [ -71.0419, 42.2910 ], [ -71.0419, 42.2910 ], [ -71.0419, 42.2910 ], [ -71.0419, 42.2910 ], [ -71.0419, 42.2910 ], [ -71.0419, 42.2910 ], [ -71.0419, 42.2910 ], [ -71.0419, 42.2910 ], [ -71.0418, 42.2910 ], [ -71.0418, 42.2910 ], [ -71.0418, 42.2910 ], [ -71.0418, 42.2910 ], [ -71.0418, 42.2910 ], [ -71.0418, 42.2910 ], [ -71.0418, 42.2910 ], [ -71.0418, 42.2910 ], [ -71.0418, 42.2910 ], [ -71.0418, 42.2909 ], [ -71.0418, 42.2909 ], [ -71.0419, 42.2909 ], [ -71.0419, 42.2909 ], [ -71.0419, 42.2909 ], [ -71.0419, 42.2908 ], [ -71.0419, 42.2908 ], [ -71.0419, 42.2908 ], [ -71.0419, 42.2908 ], [ -71.0419, 42.2908 ], [ -71.0419, 42.2908 ], [ -71.0419, 42.2908 ], [ -71.0419, 42.2908 ], [ -71.0419, 42.2907 ], [ -71.0419, 42.2907 ], [ -71.0419, 42.2907 ], [ -71.0419, 42.2907 ], [ -71.0419, 42.2907 ], [ -71.0419, 42.2907 ], [ -71.0419, 42.2906 ], [ -71.0419, 42.2906 ], [ -71.0419, 42.2906 ], [ -71.0419, 42.2906 ], [ -71.0419, 42.2906 ], [ -71.0419, 42.2906 ], [ -71.0419, 42.2905 ], [ -71.0420, 42.2905 ], [ -71.0420, 42.2904 ], [ -71.0420, 42.2904 ], [ -71.0420, 42.2904 ], [ -71.0420, 42.2904 ], [ -71.0420, 42.2903 ], [ -71.0420, 42.2902 ], [ -71.0420, 42.2902 ], [ -71.0420, 42.2902 ], [ -71.0420, 42.2902 ], [ -71.0420, 42.2902 ], [ -71.0420, 42.2901 ], [ -71.0420, 42.2901 ], [ -71.0420, 42.2901 ], [ -71.0420, 42.2901 ], [ -71.0420, 42.2900 ], [ -71.0420, 42.2900 ], [ -71.0420, 42.2900 ], [ -71.0420, 42.2900 ], [ -71.0420, 42.2900 ], [ -71.0420, 42.2900 ], [ -71.0420, 42.2900 ], [ -71.0420, 42.2900 ], [ -71.0420, 42.2899 ], [ -71.0420, 42.2899 ], [ -71.0419, 42.2899 ], [ -71.0419, 42.2899 ], [ -71.0419, 42.2899 ], [ -71.0419, 42.2899 ], [ -71.0419, 42.2899 ], [ -71.0419, 42.2899 ], [ -71.0419, 42.2898 ], [ -71.0419, 42.2898 ], [ -71.0419, 42.2898 ], [ -71.0419, 42.2898 ], [ -71.0419, 42.2898 ], [ -71.0419, 42.2898 ], [ -71.0419, 42.2898 ], [ -71.0419, 42.2897 ], [ -71.0419, 42.2897 ], [ -71.0419, 42.2897 ], [ -71.0419, 42.2897 ], [ -71.0419, 42.2897 ], [ -71.0419, 42.2896 ], [ -71.0419, 42.2896 ], [ -71.0419, 42.2896 ], [ -71.0419, 42.2896 ], [ -71.0419, 42.2895 ], [ -71.0419, 42.2895 ], [ -71.0419, 42.2895 ], [ -71.0419, 42.2895 ], [ -71.0419, 42.2895 ], [ -71.0419, 42.2895 ], [ -71.0419, 42.2894 ], [ -71.0419, 42.2894 ], [ -71.0419, 42.2894 ], [ -71.0419, 42.2894 ], [ -71.0419, 42.2893 ], [ -71.0419, 42.2893 ], [ -71.0419, 42.2893 ], [ -71.0418, 42.2893 ], [ -71.0418, 42.2893 ], [ -71.0418, 42.2893 ], [ -71.0418, 42.2893 ], [ -71.0418, 42.2893 ], [ -71.0418, 42.2893 ], [ -71.0417, 42.2893 ], [ -71.0417, 42.2893 ], [ -71.0417, 42.2893 ], [ -71.0417, 42.2893 ], [ -71.0417, 42.2893 ], [ -71.0417, 42.2893 ], [ -71.0416, 42.2893 ], [ -71.0416, 42.2893 ], [ -71.0416, 42.2893 ], [ -71.0416, 42.2893 ], [ -71.0416, 42.2893 ], [ -71.0416, 42.2893 ], [ -71.0416, 42.2893 ], [ -71.0416, 42.2893 ], [ -71.0416, 42.2893 ], [ -71.0416, 42.2893 ], [ -71.0416, 42.2893 ], [ -71.0416, 42.2893 ], [ -71.0416, 42.2894 ], [ -71.0416, 42.2894 ], [ -71.0416, 42.2894 ], [ -71.0416, 42.2894 ], [ -71.0416, 42.2894 ], [ -71.0416, 42.2894 ], [ -71.0416, 42.2894 ], [ -71.0416, 42.2895 ], [ -71.0416, 42.2895 ], [ -71.0416, 42.2895 ], [ -71.0415, 42.2896 ], [ -71.0415, 42.2896 ], [ -71.0415, 42.2896 ], [ -71.0415, 42.2897 ], [ -71.0415, 42.2897 ], [ -71.0415, 42.2897 ], [ -71.0416, 42.2897 ], [ -71.0416, 42.2897 ], [ -71.0416, 42.2897 ], [ -71.0416, 42.2897 ], [ -71.0416, 42.2898 ], [ -71.0416, 42.2898 ], [ -71.0416, 42.2898 ], [ -71.0416, 42.2898 ], [ -71.0416, 42.2898 ], [ -71.0416, 42.2899 ], [ -71.0416, 42.2899 ], [ -71.0416, 42.2899 ], [ -71.0416, 42.2899 ], [ -71.0416, 42.2899 ], [ -71.0416, 42.2899 ], [ -71.0416, 42.2900 ], [ -71.0416, 42.2900 ], [ -71.0416, 42.2900 ], [ -71.0416, 42.2900 ], [ -71.0416, 42.2900 ], [ -71.0416, 42.2901 ], [ -71.0416, 42.2901 ], [ -71.0416, 42.2901 ], [ -71.0416, 42.2901 ], [ -71.0416, 42.2901 ], [ -71.0416, 42.2901 ], [ -71.0416, 42.2902 ], [ -71.0416, 42.2902 ], [ -71.0416, 42.2902 ], [ -71.0416, 42.2902 ], [ -71.0416, 42.2902 ], [ -71.0416, 42.2902 ], [ -71.0416, 42.2902 ], [ -71.0416, 42.2903 ], [ -71.0416, 42.2903 ], [ -71.0416, 42.2903 ], [ -71.0416, 42.2903 ], [ -71.0416, 42.2903 ], [ -71.0416, 42.2903 ], [ -71.0416, 42.2903 ], [ -71.0416, 42.2903 ], [ -71.0416, 42.2903 ], [ -71.0416, 42.2904 ], [ -71.0416, 42.2904 ], [ -71.0416, 42.2904 ], [ -71.0416, 42.2904 ], [ -71.0416, 42.2905 ], [ -71.0416, 42.2905 ], [ -71.0416, 42.2905 ], [ -71.0416, 42.2906 ], [ -71.0416, 42.2906 ], [ -71.0416, 42.2906 ], [ -71.0416, 42.2907 ], [ -71.0416, 42.2907 ], [ -71.0416, 42.2907 ], [ -71.0416, 42.2907 ], [ -71.0416, 42.2907 ], [ -71.0416, 42.2907 ], [ -71.0416, 42.2908 ], [ -71.0416, 42.2908 ], [ -71.0416, 42.2908 ], [ -71.0416, 42.2908 ], [ -71.0416, 42.2909 ], [ -71.0416, 42.2909 ], [ -71.0415, 42.2912 ], [ -71.0416, 42.2913 ], [ -71.0416, 42.2913 ], [ -71.0416, 42.2914 ], [ -71.0417, 42.2914 ], [ -71.0417, 42.2915 ], [ -71.0417, 42.2915 ], [ -71.0417, 42.2915 ], [ -71.0417, 42.2916 ], [ -71.0417, 42.2916 ], [ -71.0418, 42.2916 ], [ -71.0418, 42.2917 ], [ -71.0418, 42.2917 ], [ -71.0418, 42.2917 ], [ -71.0419, 42.2919 ], [ -71.0420, 42.2924 ], [ -71.0420, 42.2924 ], [ -71.0420, 42.2926 ], [ -71.0420, 42.2927 ], [ -71.0420, 42.2929 ], [ -71.0421, 42.2931 ], [ -71.0422, 42.2932 ], [ -71.0421, 42.2933 ], [ -71.0421, 42.2933 ], [ -71.0419, 42.2933 ], [ -71.0418, 42.2933 ], [ -71.0417, 42.2933 ], [ -71.0412, 42.2932 ], [ -71.0412, 42.2932 ], [ -71.0412, 42.2930 ], [ -71.0411, 42.2930 ], [ -71.0411, 42.2929 ], [ -71.0410, 42.2929 ], [ -71.0410, 42.2930 ], [ -71.0409, 42.2930 ], [ -71.0410, 42.2929 ], [ -71.0409, 42.2929 ], [ -71.0408, 42.2931 ], [ -71.0408, 42.2931 ], [ -71.0407, 42.2937 ], [ -71.0405, 42.2936 ], [ -71.0405, 42.2936 ], [ -71.0406, 42.2936 ], [ -71.0407, 42.2936 ], [ -71.0407, 42.2930 ], [ -71.0404, 42.2930 ], [ -71.0397, 42.2929 ], [ -71.0397, 42.2929 ], [ -71.0396, 42.2929 ], [ -71.0396, 42.2927 ], [ -71.0393, 42.2928 ], [ -71.0393, 42.2927 ], [ -71.0396, 42.2927 ], [ -71.0396, 42.2925 ], [ -71.0391, 42.2925 ], [ -71.0396, 42.2921 ], [ -71.0395, 42.2921 ], [ -71.0395, 42.2921 ], [ -71.0395, 42.2921 ], [ -71.0394, 42.2921 ], [ -71.0394, 42.2920 ], [ -71.0394, 42.2920 ], [ -71.0392, 42.2922 ], [ -71.0392, 42.2922 ], [ -71.0392, 42.2923 ], [ -71.0391, 42.2922 ], [ -71.0391, 42.2922 ], [ -71.0391, 42.2922 ], [ -71.0392, 42.2922 ], [ -71.0392, 42.2922 ], [ -71.0392, 42.2922 ], [ -71.0392, 42.2921 ], [ -71.0392, 42.2921 ], [ -71.0392, 42.2921 ], [ -71.0392, 42.2920 ], [ -71.0392, 42.2920 ], [ -71.0391, 42.2919 ], [ -71.0391, 42.2919 ], [ -71.0391, 42.2918 ], [ -71.0391, 42.2917 ], [ -71.0391, 42.2917 ], [ -71.0391, 42.2916 ], [ -71.0391, 42.2916 ], [ -71.0390, 42.2916 ], [ -71.0389, 42.2916 ], [ -71.0389, 42.2916 ], [ -71.0389, 42.2916 ], [ -71.0388, 42.2915 ], [ -71.0388, 42.2915 ], [ -71.0387, 42.2917 ], [ -71.0386, 42.2916 ], [ -71.0388, 42.2914 ], [ -71.0390, 42.2912 ], [ -71.0390, 42.2912 ], [ -71.0390, 42.2912 ], [ -71.0389, 42.2911 ], [ -71.0388, 42.2913 ], [ -71.0386, 42.2914 ], [ -71.0385, 42.2913 ], [ -71.0383, 42.2912 ], [ -71.0380, 42.2910 ], [ -71.0379, 42.2909 ], [ -71.0378, 42.2908 ], [ -71.0378, 42.2908 ], [ -71.0379, 42.2907 ], [ -71.0379, 42.2907 ], [ -71.0379, 42.2906 ], [ -71.0380, 42.2905 ], [ -71.0380, 42.2904 ], [ -71.0379, 42.2903 ], [ -71.0379, 42.2903 ], [ -71.0379, 42.2902 ], [ -71.0380, 42.2901 ], [ -71.0379, 42.2901 ], [ -71.0379, 42.2901 ], [ -71.0379, 42.2901 ], [ -71.0379, 42.2900 ], [ -71.0379, 42.2900 ], [ -71.0379, 42.2900 ], [ -71.0379, 42.2900 ], [ -71.0379, 42.2900 ], [ -71.0380, 42.2900 ], [ -71.0380, 42.2900 ], [ -71.0380, 42.2900 ], [ -71.0380, 42.2899 ], [ -71.0380, 42.2899 ], [ -71.0380, 42.2899 ], [ -71.0380, 42.2899 ], [ -71.0380, 42.2899 ], [ -71.0380, 42.2899 ], [ -71.0380, 42.2898 ], [ -71.0380, 42.2898 ], [ -71.0380, 42.2898 ], [ -71.0380, 42.2898 ], [ -71.0380, 42.2898 ], [ -71.0380, 42.2898 ], [ -71.0380, 42.2898 ], [ -71.0380, 42.2897 ], [ -71.0380, 42.2897 ], [ -71.0380, 42.2897 ], [ -71.0380, 42.2897 ], [ -71.0379, 42.2897 ], [ -71.0379, 42.2897 ], [ -71.0379, 42.2897 ], [ -71.0379, 42.2896 ], [ -71.0379, 42.2896 ], [ -71.0379, 42.2896 ], [ -71.0379, 42.2896 ], [ -71.0379, 42.2896 ], [ -71.0379, 42.2895 ], [ -71.0379, 42.2895 ], [ -71.0379, 42.2894 ], [ -71.0379, 42.2894 ], [ -71.0379, 42.2894 ], [ -71.0379, 42.2894 ], [ -71.0379, 42.2894 ], [ -71.0379, 42.2894 ], [ -71.0379, 42.2893 ], [ -71.0379, 42.2893 ], [ -71.0379, 42.2893 ], [ -71.0379, 42.2893 ], [ -71.0379, 42.2893 ], [ -71.0379, 42.2893 ], [ -71.0379, 42.2893 ], [ -71.0379, 42.2892 ], [ -71.0379, 42.2892 ], [ -71.0379, 42.2892 ], [ -71.0379, 42.2892 ], [ -71.0379, 42.2892 ], [ -71.0379, 42.2892 ], [ -71.0379, 42.2892 ], [ -71.0379, 42.2892 ], [ -71.0378, 42.2892 ], [ -71.0378, 42.2892 ], [ -71.0378, 42.2892 ], [ -71.0378, 42.2892 ], [ -71.0378, 42.2892 ], [ -71.0378, 42.2892 ], [ -71.0378, 42.2892 ], [ -71.0378, 42.2892 ], [ -71.0378, 42.2892 ], [ -71.0378, 42.2892 ], [ -71.0378, 42.2891 ], [ -71.0378, 42.2891 ], [ -71.0378, 42.2891 ], [ -71.0378, 42.2891 ], [ -71.0378, 42.2891 ], [ -71.0378, 42.2891 ], [ -71.0377, 42.2891 ], [ -71.0377, 42.2891 ], [ -71.0377, 42.2891 ], [ -71.0377, 42.2891 ], [ -71.0377, 42.2890 ], [ -71.0377, 42.2890 ], [ -71.0377, 42.2890 ], [ -71.0376, 42.2889 ], [ -71.0375, 42.2887 ], [ -71.0374, 42.2884 ], [ -71.0373, 42.2883 ], [ -71.0373, 42.2883 ], [ -71.0373, 42.2883 ], [ -71.0373, 42.2883 ], [ -71.0373, 42.2883 ], [ -71.0374, 42.2883 ], [ -71.0374, 42.2883 ], [ -71.0374, 42.2883 ], [ -71.0374, 42.2883 ], [ -71.0374, 42.2882 ], [ -71.0374, 42.2882 ], [ -71.0374, 42.2882 ], [ -71.0374, 42.2882 ], [ -71.0374, 42.2882 ], [ -71.0374, 42.2881 ], [ -71.0374, 42.2881 ], [ -71.0375, 42.2881 ], [ -71.0375, 42.2881 ], [ -71.0375, 42.2881 ], [ -71.0375, 42.2881 ], [ -71.0375, 42.2881 ], [ -71.0375, 42.2880 ], [ -71.0375, 42.2880 ], [ -71.0376, 42.2880 ], [ -71.0376, 42.2880 ], [ -71.0376, 42.2880 ], [ -71.0376, 42.2880 ], [ -71.0376, 42.2880 ], [ -71.0376, 42.2879 ], [ -71.0376, 42.2879 ], [ -71.0375, 42.2879 ], [ -71.0375, 42.2879 ], [ -71.0375, 42.2879 ], [ -71.0375, 42.2879 ], [ -71.0375, 42.2879 ], [ -71.0375, 42.2879 ], [ -71.0375, 42.2879 ], [ -71.0375, 42.2878 ], [ -71.0375, 42.2878 ], [ -71.0376, 42.2878 ], [ -71.0376, 42.2878 ], [ -71.0376, 42.2878 ], [ -71.0376, 42.2878 ], [ -71.0376, 42.2878 ], [ -71.0376, 42.2878 ], [ -71.0376, 42.2877 ], [ -71.0376, 42.2877 ], [ -71.0376, 42.2877 ], [ -71.0376, 42.2877 ], [ -71.0377, 42.2877 ], [ -71.0377, 42.2877 ], [ -71.0377, 42.2877 ], [ -71.0377, 42.2877 ], [ -71.0377, 42.2877 ], [ -71.0377, 42.2877 ], [ -71.0377, 42.2877 ], [ -71.0377, 42.2876 ], [ -71.0377, 42.2876 ], [ -71.0377, 42.2876 ], [ -71.0378, 42.2876 ], [ -71.0378, 42.2876 ], [ -71.0378, 42.2875 ], [ -71.0378, 42.2875 ], [ -71.0378, 42.2875 ], [ -71.0378, 42.2875 ], [ -71.0378, 42.2875 ], [ -71.0378, 42.2875 ], [ -71.0378, 42.2875 ], [ -71.0378, 42.2874 ], [ -71.0378, 42.2874 ], [ -71.0378, 42.2874 ], [ -71.0378, 42.2874 ], [ -71.0378, 42.2874 ], [ -71.0378, 42.2874 ], [ -71.0378, 42.2874 ], [ -71.0378, 42.2874 ], [ -71.0378, 42.2874 ], [ -71.0378, 42.2873 ], [ -71.0378, 42.2873 ], [ -71.0378, 42.2873 ], [ -71.0379, 42.2873 ], [ -71.0379, 42.2873 ], [ -71.0379, 42.2873 ], [ -71.0379, 42.2873 ], [ -71.0379, 42.2873 ], [ -71.0379, 42.2873 ], [ -71.0379, 42.2872 ], [ -71.0379, 42.2872 ], [ -71.0380, 42.2872 ], [ -71.0380, 42.2872 ], [ -71.0380, 42.2872 ], [ -71.0380, 42.2872 ], [ -71.0380, 42.2872 ], [ -71.0380, 42.2872 ], [ -71.0380, 42.2871 ], [ -71.0380, 42.2871 ], [ -71.0380, 42.2871 ], [ -71.0380, 42.2871 ], [ -71.0380, 42.2871 ], [ -71.0380, 42.2871 ], [ -71.0380, 42.2871 ], [ -71.0380, 42.2871 ], [ -71.0380, 42.2871 ], [ -71.0380, 42.2871 ], [ -71.0380, 42.2871 ], [ -71.0380, 42.2871 ], [ -71.0381, 42.2871 ], [ -71.0381, 42.2871 ], [ -71.0381, 42.2871 ], [ -71.0381, 42.2871 ], [ -71.0381, 42.2870 ], [ -71.0381, 42.2870 ], [ -71.0381, 42.2870 ], [ -71.0381, 42.2870 ], [ -71.0381, 42.2870 ], [ -71.0381, 42.2870 ], [ -71.0382, 42.2870 ], [ -71.0382, 42.2870 ], [ -71.0382, 42.2869 ], [ -71.0383, 42.2869 ], [ -71.0383, 42.2869 ], [ -71.0383, 42.2869 ], [ -71.0383, 42.2869 ], [ -71.0383, 42.2869 ], [ -71.0383, 42.2869 ], [ -71.0384, 42.2869 ], [ -71.0384, 42.2869 ], [ -71.0385, 42.2867 ], [ -71.0388, 42.2868 ], [ -71.0388, 42.2868 ], [ -71.0389, 42.2869 ], [ -71.0389, 42.2869 ], [ -71.0389, 42.2869 ], [ -71.0389, 42.2869 ], [ -71.0389, 42.2869 ], [ -71.0389, 42.2869 ], [ -71.0389, 42.2869 ], [ -71.0389, 42.2869 ], [ -71.0390, 42.2869 ], [ -71.0390, 42.2869 ], [ -71.0390, 42.2868 ], [ -71.0390, 42.2868 ], [ -71.0390, 42.2868 ], [ -71.0390, 42.2868 ], [ -71.0390, 42.2868 ], [ -71.0390, 42.2868 ], [ -71.0390, 42.2868 ], [ -71.0390, 42.2868 ], [ -71.0390, 42.2868 ], [ -71.0390, 42.2868 ], [ -71.0390, 42.2868 ], [ -71.0390, 42.2867 ], [ -71.0390, 42.2867 ], [ -71.0390, 42.2867 ], [ -71.0390, 42.2867 ], [ -71.0389, 42.2867 ], [ -71.0390, 42.2867 ], [ -71.0390, 42.2866 ], [ -71.0390, 42.2865 ], [ -71.0388, 42.2864 ], [ -71.0386, 42.2862 ], [ -71.0385, 42.2861 ], [ -71.0384, 42.2860 ], [ -71.0385, 42.2860 ], [ -71.0386, 42.2859 ], [ -71.0387, 42.2859 ], [ -71.0387, 42.2859 ], [ -71.0389, 42.2857 ], [ -71.0390, 42.2856 ], [ -71.0392, 42.2855 ], [ -71.0395, 42.2853 ], [ -71.0397, 42.2851 ], [ -71.0401, 42.2848 ], [ -71.0404, 42.2846 ], [ -71.0404, 42.2846 ], [ -71.0404, 42.2846 ], [ -71.0404, 42.2846 ], [ -71.0404, 42.2846 ], [ -71.0404, 42.2846 ], [ -71.0404, 42.2846 ], [ -71.0404, 42.2846 ], [ -71.0404, 42.2846 ], [ -71.0404, 42.2845 ], [ -71.0404, 42.2845 ], [ -71.0405, 42.2845 ], [ -71.0405, 42.2845 ], [ -71.0405, 42.2845 ], [ -71.0405, 42.2845 ], [ -71.0405, 42.2845 ], [ -71.0405, 42.2845 ], [ -71.0405, 42.2845 ], [ -71.0405, 42.2845 ], [ -71.0405, 42.2845 ], [ -71.0405, 42.2845 ], [ -71.0406, 42.2845 ], [ -71.0406, 42.2844 ], [ -71.0406, 42.2844 ], [ -71.0406, 42.2844 ], [ -71.0406, 42.2844 ], [ -71.0406, 42.2844 ], [ -71.0406, 42.2844 ], [ -71.0406, 42.2844 ], [ -71.0406, 42.2844 ], [ -71.0407, 42.2844 ], [ -71.0407, 42.2844 ], [ -71.0407, 42.2844 ], [ -71.0407, 42.2844 ], [ -71.0408, 42.2843 ], [ -71.0408, 42.2843 ], [ -71.0408, 42.2843 ], [ -71.0408, 42.2843 ], [ -71.0408, 42.2843 ], [ -71.0409, 42.2843 ], [ -71.0409, 42.2843 ], [ -71.0409, 42.2843 ], [ -71.0409, 42.2843 ], [ -71.0409, 42.2843 ], [ -71.0409, 42.2843 ], [ -71.0409, 42.2843 ], [ -71.0409, 42.2842 ], [ -71.0409, 42.2842 ], [ -71.0409, 42.2842 ], [ -71.0409, 42.2842 ], [ -71.0409, 42.2842 ], [ -71.0409, 42.2842 ], [ -71.0410, 42.2842 ], [ -71.0410, 42.2842 ], [ -71.0410, 42.2842 ], [ -71.0410, 42.2842 ], [ -71.0410, 42.2841 ], [ -71.0410, 42.2841 ], [ -71.0411, 42.2841 ], [ -71.0411, 42.2841 ], [ -71.0411, 42.2841 ], [ -71.0411, 42.2841 ], [ -71.0411, 42.2841 ], [ -71.0411, 42.2841 ], [ -71.0411, 42.2840 ], [ -71.0411, 42.2840 ], [ -71.0411, 42.2840 ], [ -71.0411, 42.2840 ], [ -71.0411, 42.2840 ], [ -71.0412, 42.2839 ], [ -71.0412, 42.2839 ], [ -71.0412, 42.2839 ], [ -71.0412, 42.2839 ], [ -71.0412, 42.2839 ], [ -71.0412, 42.2839 ], [ -71.0412, 42.2839 ], [ -71.0412, 42.2838 ], [ -71.0412, 42.2838 ], [ -71.0412, 42.2838 ], [ -71.0412, 42.2838 ], [ -71.0412, 42.2838 ], [ -71.0412, 42.2838 ], [ -71.0412, 42.2837 ], [ -71.0412, 42.2837 ], [ -71.0413, 42.2837 ], [ -71.0413, 42.2837 ], [ -71.0413, 42.2837 ], [ -71.0413, 42.2837 ], [ -71.0413, 42.2837 ], [ -71.0413, 42.2837 ], [ -71.0413, 42.2837 ], [ -71.0413, 42.2837 ], [ -71.0413, 42.2837 ], [ -71.0413, 42.2837 ], [ -71.0413, 42.2837 ], [ -71.0413, 42.2837 ], [ -71.0413, 42.2837 ], [ -71.0413, 42.2836 ], [ -71.0413, 42.2836 ], [ -71.0413, 42.2836 ], [ -71.0414, 42.2836 ], [ -71.0414, 42.2836 ], [ -71.0414, 42.2836 ], [ -71.0414, 42.2836 ], [ -71.0414, 42.2836 ], [ -71.0414, 42.2836 ], [ -71.0414, 42.2836 ], [ -71.0414, 42.2836 ], [ -71.0414, 42.2836 ], [ -71.0414, 42.2836 ], [ -71.0415, 42.2836 ], [ -71.0415, 42.2836 ], [ -71.0415, 42.2836 ], [ -71.0415, 42.2836 ], [ -71.0415, 42.2835 ], [ -71.0415, 42.2835 ], [ -71.0415, 42.2835 ], [ -71.0415, 42.2835 ], [ -71.0415, 42.2835 ], [ -71.0415, 42.2834 ], [ -71.0415, 42.2834 ], [ -71.0415, 42.2834 ], [ -71.0415, 42.2834 ], [ -71.0415, 42.2834 ], [ -71.0415, 42.2834 ], [ -71.0415, 42.2834 ], [ -71.0415, 42.2834 ], [ -71.0415, 42.2834 ], [ -71.0415, 42.2833 ], [ -71.0415, 42.2833 ], [ -71.0415, 42.2833 ], [ -71.0415, 42.2833 ], [ -71.0415, 42.2833 ], [ -71.0415, 42.2833 ], [ -71.0415, 42.2833 ], [ -71.0415, 42.2833 ], [ -71.0415, 42.2832 ], [ -71.0415, 42.2832 ], [ -71.0415, 42.2832 ], [ -71.0415, 42.2832 ], [ -71.0415, 42.2832 ], [ -71.0415, 42.2832 ], [ -71.0415, 42.2832 ], [ -71.0415, 42.2832 ], [ -71.0415, 42.2832 ], [ -71.0415, 42.2832 ], [ -71.0415, 42.2832 ], [ -71.0415, 42.2832 ], [ -71.0415, 42.2832 ], [ -71.0415, 42.2832 ], [ -71.0415, 42.2831 ], [ -71.0415, 42.2831 ], [ -71.0415, 42.2831 ], [ -71.0415, 42.2831 ], [ -71.0415, 42.2831 ], [ -71.0415, 42.2831 ], [ -71.0415, 42.2831 ], [ -71.0415, 42.2831 ], [ -71.0415, 42.2830 ], [ -71.0415, 42.2830 ], [ -71.0415, 42.2830 ], [ -71.0415, 42.2830 ], [ -71.0415, 42.2830 ], [ -71.0415, 42.2830 ], [ -71.0415, 42.2830 ], [ -71.0415, 42.2830 ], [ -71.0415, 42.2830 ], [ -71.0415, 42.2830 ], [ -71.0415, 42.2830 ], [ -71.0415, 42.2830 ], [ -71.0415, 42.2830 ], [ -71.0415, 42.2829 ], [ -71.0415, 42.2829 ], [ -71.0415, 42.2829 ], [ -71.0415, 42.2829 ], [ -71.0415, 42.2829 ], [ -71.0415, 42.2829 ], [ -71.0415, 42.2829 ], [ -71.0415, 42.2829 ], [ -71.0415, 42.2829 ], [ -71.0415, 42.2828 ], [ -71.0415, 42.2828 ], [ -71.0415, 42.2828 ], [ -71.0415, 42.2828 ], [ -71.0415, 42.2828 ], [ -71.0415, 42.2828 ], [ -71.0415, 42.2827 ], [ -71.0415, 42.2827 ], [ -71.0415, 42.2827 ], [ -71.0415, 42.2827 ], [ -71.0415, 42.2827 ], [ -71.0415, 42.2827 ], [ -71.0415, 42.2827 ], [ -71.0415, 42.2827 ], [ -71.0415, 42.2826 ], [ -71.0415, 42.2826 ], [ -71.0415, 42.2826 ], [ -71.0415, 42.2826 ], [ -71.0415, 42.2826 ], [ -71.0415, 42.2826 ], [ -71.0416, 42.2826 ], [ -71.0416, 42.2826 ], [ -71.0416, 42.2826 ], [ -71.0416, 42.2826 ], [ -71.0416, 42.2826 ], [ -71.0416, 42.2826 ], [ -71.0416, 42.2826 ], [ -71.0416, 42.2826 ], [ -71.0416, 42.2826 ], [ -71.0416, 42.2825 ], [ -71.0416, 42.2825 ], [ -71.0416, 42.2825 ], [ -71.0416, 42.2825 ], [ -71.0416, 42.2825 ], [ -71.0416, 42.2825 ], [ -71.0416, 42.2825 ], [ -71.0416, 42.2824 ], [ -71.0416, 42.2824 ], [ -71.0416, 42.2824 ], [ -71.0416, 42.2824 ], [ -71.0416, 42.2823 ], [ -71.0416, 42.2823 ], [ -71.0416, 42.2823 ], [ -71.0416, 42.2823 ], [ -71.0416, 42.2823 ], [ -71.0416, 42.2823 ], [ -71.0416, 42.2823 ], [ -71.0416, 42.2823 ], [ -71.0416, 42.2822 ], [ -71.0416, 42.2822 ], [ -71.0416, 42.2822 ], [ -71.0416, 42.2822 ], [ -71.0416, 42.2822 ], [ -71.0416, 42.2821 ], [ -71.0416, 42.2821 ], [ -71.0417, 42.2821 ], [ -71.0417, 42.2821 ], [ -71.0417, 42.2820 ], [ -71.0417, 42.2820 ], [ -71.0417, 42.2820 ], [ -71.0417, 42.2820 ], [ -71.0417, 42.2820 ], [ -71.0417, 42.2820 ], [ -71.0417, 42.2820 ], [ -71.0417, 42.2820 ], [ -71.0417, 42.2819 ], [ -71.0417, 42.2819 ], [ -71.0417, 42.2819 ], [ -71.0417, 42.2819 ], [ -71.0417, 42.2819 ], [ -71.0416, 42.2819 ], [ -71.0416, 42.2819 ], [ -71.0416, 42.2818 ], [ -71.0416, 42.2818 ], [ -71.0416, 42.2818 ], [ -71.0416, 42.2818 ], [ -71.0416, 42.2818 ], [ -71.0416, 42.2818 ], [ -71.0416, 42.2817 ], [ -71.0416, 42.2817 ], [ -71.0416, 42.2817 ], [ -71.0416, 42.2817 ], [ -71.0416, 42.2817 ], [ -71.0416, 42.2817 ], [ -71.0416, 42.2817 ], [ -71.0416, 42.2817 ], [ -71.0417, 42.2817 ], [ -71.0417, 42.2817 ], [ -71.0417, 42.2817 ], [ -71.0417, 42.2816 ], [ -71.0417, 42.2816 ], [ -71.0417, 42.2816 ], [ -71.0417, 42.2816 ], [ -71.0417, 42.2816 ], [ -71.0417, 42.2816 ], [ -71.0417, 42.2816 ], [ -71.0417, 42.2816 ], [ -71.0417, 42.2816 ], [ -71.0417, 42.2816 ], [ -71.0417, 42.2816 ], [ -71.0417, 42.2816 ], [ -71.0417, 42.2816 ], [ -71.0417, 42.2815 ], [ -71.0417, 42.2815 ], [ -71.0417, 42.2815 ], [ -71.0417, 42.2815 ], [ -71.0417, 42.2815 ], [ -71.0417, 42.2815 ], [ -71.0417, 42.2815 ], [ -71.0417, 42.2814 ], [ -71.0417, 42.2814 ], [ -71.0417, 42.2814 ], [ -71.0417, 42.2814 ], [ -71.0417, 42.2814 ], [ -71.0417, 42.2814 ], [ -71.0417, 42.2814 ], [ -71.0417, 42.2814 ], [ -71.0417, 42.2813 ], [ -71.0417, 42.2813 ], [ -71.0417, 42.2813 ], [ -71.0417, 42.2813 ], [ -71.0417, 42.2813 ], [ -71.0417, 42.2813 ], [ -71.0417, 42.2813 ], [ -71.0417, 42.2813 ], [ -71.0417, 42.2813 ], [ -71.0417, 42.2812 ], [ -71.0417, 42.2812 ], [ -71.0417, 42.2812 ], [ -71.0417, 42.2812 ], [ -71.0417, 42.2812 ], [ -71.0417, 42.2812 ], [ -71.0417, 42.2812 ], [ -71.0417, 42.2811 ], [ -71.0417, 42.2811 ], [ -71.0417, 42.2811 ], [ -71.0417, 42.2811 ], [ -71.0417, 42.2811 ], [ -71.0417, 42.2811 ], [ -71.0417, 42.2811 ], [ -71.0417, 42.2811 ], [ -71.0417, 42.2810 ], [ -71.0417, 42.2810 ], [ -71.0417, 42.2810 ], [ -71.0417, 42.2810 ], [ -71.0417, 42.2809 ], [ -71.0417, 42.2809 ], [ -71.0417, 42.2808 ], [ -71.0417, 42.2807 ], [ -71.0416, 42.2807 ], [ -71.0416, 42.2807 ], [ -71.0417, 42.2806 ], [ -71.0417, 42.2806 ], [ -71.0417, 42.2806 ], [ -71.0418, 42.2805 ], [ -71.0419, 42.2805 ], [ -71.0420, 42.2805 ], [ -71.0421, 42.2805 ], [ -71.0422, 42.2805 ], [ -71.0422, 42.2805 ], [ -71.0423, 42.2805 ], [ -71.0424, 42.2805 ], [ -71.0425, 42.2805 ], [ -71.0426, 42.2805 ], [ -71.0427, 42.2805 ], [ -71.0428, 42.2806 ], [ -71.0430, 42.2806 ], [ -71.0431, 42.2807 ], [ -71.0432, 42.2807 ], [ -71.0433, 42.2808 ], [ -71.0434, 42.2808 ], [ -71.0435, 42.2808 ], [ -71.0436, 42.2808 ], [ -71.0437, 42.2808 ], [ -71.0438, 42.2809 ], [ -71.0439, 42.2809 ], [ -71.0439, 42.2809 ], [ -71.0440, 42.2809 ], [ -71.0440, 42.2809 ], [ -71.0440, 42.2809 ], [ -71.0441, 42.2809 ], [ -71.0441, 42.2808 ], [ -71.0441, 42.2808 ], [ -71.0441, 42.2808 ], [ -71.0440, 42.2808 ], [ -71.0440, 42.2807 ], [ -71.0439, 42.2807 ], [ -71.0439, 42.2807 ], [ -71.0438, 42.2807 ], [ -71.0438, 42.2807 ], [ -71.0438, 42.2807 ], [ -71.0438, 42.2806 ], [ -71.0437, 42.2806 ], [ -71.0437, 42.2805 ], [ -71.0436, 42.2806 ], [ -71.0436, 42.2806 ], [ -71.0435, 42.2805 ], [ -71.0434, 42.2805 ], [ -71.0433, 42.2805 ], [ -71.0432, 42.2805 ], [ -71.0431, 42.2804 ], [ -71.0431, 42.2804 ], [ -71.0430, 42.2804 ], [ -71.0429, 42.2803 ], [ -71.0429, 42.2803 ], [ -71.0428, 42.2802 ], [ -71.0428, 42.2802 ], [ -71.0428, 42.2801 ], [ -71.0427, 42.2801 ], [ -71.0427, 42.2800 ], [ -71.0427, 42.2800 ], [ -71.0426, 42.2799 ], [ -71.0427, 42.2799 ], [ -71.0426, 42.2799 ], [ -71.0426, 42.2799 ], [ -71.0426, 42.2798 ], [ -71.0426, 42.2797 ], [ -71.0426, 42.2797 ], [ -71.0426, 42.2796 ], [ -71.0426, 42.2795 ], [ -71.0427, 42.2795 ], [ -71.0427, 42.2794 ], [ -71.0427, 42.2793 ], [ -71.0427, 42.2793 ], [ -71.0427, 42.2792 ], [ -71.0427, 42.2791 ], [ -71.0427, 42.2790 ], [ -71.0426, 42.2791 ], [ -71.0426, 42.2791 ], [ -71.0426, 42.2791 ], [ -71.0425, 42.2791 ], [ -71.0425, 42.2790 ], [ -71.0424, 42.2790 ], [ -71.0424, 42.2790 ], [ -71.0422, 42.2790 ], [ -71.0421, 42.2790 ], [ -71.0420, 42.2790 ], [ -71.0420, 42.2790 ], [ -71.0419, 42.2791 ], [ -71.0419, 42.2791 ], [ -71.0419, 42.2791 ], [ -71.0418, 42.2791 ], [ -71.0421, 42.2787 ], [ -71.0422, 42.2785 ], [ -71.0423, 42.2785 ], [ -71.0424, 42.2783 ], [ -71.0425, 42.2783 ], [ -71.0425, 42.2782 ], [ -71.0426, 42.2781 ], [ -71.0427, 42.2781 ], [ -71.0428, 42.2781 ], [ -71.0428, 42.2781 ], [ -71.0428, 42.2780 ], [ -71.0428, 42.2780 ], [ -71.0428, 42.2780 ], [ -71.0428, 42.2780 ], [ -71.0429, 42.2779 ], [ -71.0429, 42.2780 ], [ -71.0429, 42.2779 ], [ -71.0429, 42.2779 ], [ -71.0429, 42.2779 ], [ -71.0429, 42.2779 ], [ -71.0430, 42.2779 ], [ -71.0430, 42.2779 ], [ -71.0430, 42.2779 ], [ -71.0430, 42.2778 ], [ -71.0430, 42.2778 ], [ -71.0431, 42.2778 ], [ -71.0431, 42.2778 ], [ -71.0431, 42.2778 ], [ -71.0431, 42.2778 ], [ -71.0431, 42.2777 ], [ -71.0432, 42.2778 ], [ -71.0432, 42.2778 ], [ -71.0432, 42.2777 ], [ -71.0432, 42.2777 ], [ -71.0433, 42.2776 ], [ -71.0433, 42.2776 ], [ -71.0433, 42.2775 ], [ -71.0434, 42.2775 ], [ -71.0434, 42.2774 ], [ -71.0435, 42.2774 ], [ -71.0435, 42.2774 ], [ -71.0435, 42.2774 ], [ -71.0435, 42.2774 ], [ -71.0436, 42.2773 ], [ -71.0436, 42.2773 ], [ -71.0437, 42.2772 ], [ -71.0437, 42.2772 ], [ -71.0438, 42.2772 ], [ -71.0438, 42.2772 ], [ -71.0438, 42.2772 ], [ -71.0438, 42.2771 ], [ -71.0438, 42.2771 ], [ -71.0439, 42.2771 ], [ -71.0440, 42.2770 ], [ -71.0440, 42.2770 ], [ -71.0441, 42.2770 ], [ -71.0441, 42.2769 ], [ -71.0442, 42.2769 ], [ -71.0443, 42.2769 ], [ -71.0443, 42.2769 ], [ -71.0443, 42.2769 ], [ -71.0443, 42.2770 ], [ -71.0443, 42.2770 ], [ -71.0443, 42.2770 ], [ -71.0443, 42.2770 ], [ -71.0443, 42.2769 ], [ -71.0444, 42.2769 ], [ -71.0444, 42.2769 ], [ -71.0444, 42.2769 ], [ -71.0444, 42.2769 ], [ -71.0445, 42.2769 ], [ -71.0445, 42.2768 ], [ -71.0446, 42.2768 ], [ -71.0446, 42.2768 ], [ -71.0446, 42.2768 ], [ -71.0446, 42.2768 ], [ -71.0447, 42.2768 ], [ -71.0448, 42.2768 ], [ -71.0448, 42.2768 ], [ -71.0449, 42.2768 ], [ -71.0449, 42.2768 ], [ -71.0450, 42.2768 ], [ -71.0450, 42.2768 ], [ -71.0451, 42.2768 ], [ -71.0451, 42.2768 ], [ -71.0451, 42.2768 ], [ -71.0451, 42.2768 ], [ -71.0452, 42.2768 ], [ -71.0452, 42.2768 ], [ -71.0453, 42.2769 ], [ -71.0453, 42.2769 ], [ -71.0454, 42.2769 ], [ -71.0455, 42.2769 ], [ -71.0456, 42.2769 ], [ -71.0457, 42.2770 ], [ -71.0458, 42.2770 ], [ -71.0458, 42.2770 ], [ -71.0459, 42.2771 ], [ -71.0460, 42.2771 ], [ -71.0461, 42.2772 ], [ -71.0462, 42.2772 ], [ -71.0462, 42.2773 ], [ -71.0463, 42.2773 ], [ -71.0464, 42.2773 ], [ -71.0465, 42.2774 ], [ -71.0466, 42.2775 ], [ -71.0466, 42.2775 ], [ -71.0467, 42.2776 ], [ -71.0468, 42.2776 ], [ -71.0469, 42.2777 ], [ -71.0470, 42.2777 ], [ -71.0471, 42.2778 ], [ -71.0472, 42.2778 ], [ -71.0473, 42.2779 ], [ -71.0472, 42.2779 ], [ -71.0472, 42.2780 ], [ -71.0472, 42.2780 ], [ -71.0472, 42.2780 ], [ -71.0472, 42.2780 ], [ -71.0473, 42.2780 ], [ -71.0473, 42.2780 ], [ -71.0474, 42.2780 ], [ -71.0474, 42.2779 ], [ -71.0475, 42.2779 ], [ -71.0475, 42.2780 ], [ -71.0475, 42.2780 ], [ -71.0476, 42.2780 ], [ -71.0476, 42.2780 ], [ -71.0477, 42.2780 ], [ -71.0477, 42.2780 ], [ -71.0478, 42.2780 ], [ -71.0479, 42.2780 ], [ -71.0479, 42.2780 ], [ -71.0481, 42.2780 ], [ -71.0483, 42.2782 ], [ -71.0484, 42.2782 ], [ -71.0484, 42.2782 ], [ -71.0484, 42.2782 ], [ -71.0485, 42.2783 ], [ -71.0485, 42.2783 ], [ -71.0485, 42.2783 ], [ -71.0485, 42.2783 ], [ -71.0485, 42.2783 ], [ -71.0485, 42.2783 ], [ -71.0485, 42.2783 ], [ -71.0485, 42.2783 ], [ -71.0486, 42.2784 ], [ -71.0486, 42.2784 ], [ -71.0486, 42.2784 ], [ -71.0486, 42.2784 ], [ -71.0486, 42.2784 ], [ -71.0486, 42.2784 ], [ -71.0486, 42.2784 ], [ -71.0487, 42.2784 ], [ -71.0487, 42.2784 ], [ -71.0487, 42.2784 ], [ -71.0487, 42.2784 ], [ -71.0487, 42.2784 ], [ -71.0487, 42.2784 ], [ -71.0487, 42.2784 ], [ -71.0488, 42.2784 ], [ -71.0488, 42.2784 ], [ -71.0488, 42.2784 ], [ -71.0488, 42.2784 ], [ -71.0488, 42.2785 ], [ -71.0488, 42.2785 ], [ -71.0488, 42.2785 ], [ -71.0488, 42.2785 ], [ -71.0488, 42.2785 ], [ -71.0488, 42.2784 ], [ -71.0488, 42.2784 ], [ -71.0488, 42.2784 ], [ -71.0488, 42.2784 ], [ -71.0489, 42.2784 ], [ -71.0489, 42.2784 ], [ -71.0489, 42.2784 ], [ -71.0489, 42.2785 ], [ -71.0489, 42.2785 ], [ -71.0489, 42.2785 ], [ -71.0489, 42.2785 ], [ -71.0490, 42.2785 ], [ -71.0490, 42.2785 ], [ -71.0490, 42.2785 ], [ -71.0490, 42.2785 ], [ -71.0490, 42.2785 ], [ -71.0490, 42.2785 ], [ -71.0490, 42.2785 ], [ -71.0490, 42.2785 ], [ -71.0491, 42.2785 ], [ -71.0491, 42.2784 ], [ -71.0491, 42.2784 ], [ -71.0491, 42.2784 ], [ -71.0491, 42.2784 ], [ -71.0491, 42.2785 ], [ -71.0491, 42.2785 ], [ -71.0491, 42.2785 ], [ -71.0492, 42.2785 ], [ -71.0492, 42.2785 ], [ -71.0492, 42.2785 ], [ -71.0492, 42.2785 ], [ -71.0492, 42.2785 ], [ -71.0492, 42.2785 ], [ -71.0492, 42.2785 ], [ -71.0492, 42.2785 ], [ -71.0493, 42.2785 ], [ -71.0493, 42.2785 ], [ -71.0493, 42.2785 ], [ -71.0493, 42.2785 ], [ -71.0493, 42.2785 ], [ -71.0493, 42.2785 ], [ -71.0493, 42.2785 ], [ -71.0493, 42.2785 ], [ -71.0493, 42.2785 ], [ -71.0494, 42.2785 ], [ -71.0494, 42.2785 ], [ -71.0494, 42.2785 ], [ -71.0494, 42.2785 ], [ -71.0494, 42.2785 ], [ -71.0495, 42.2785 ], [ -71.0495, 42.2785 ], [ -71.0495, 42.2785 ], [ -71.0495, 42.2785 ], [ -71.0495, 42.2785 ], [ -71.0496, 42.2785 ], [ -71.0496, 42.2785 ], [ -71.0496, 42.2785 ], [ -71.0496, 42.2785 ], [ -71.0497, 42.2785 ], [ -71.0497, 42.2785 ], [ -71.0497, 42.2785 ], [ -71.0497, 42.2785 ], [ -71.0497, 42.2785 ], [ -71.0497, 42.2785 ], [ -71.0498, 42.2785 ], [ -71.0498, 42.2785 ], [ -71.0498, 42.2785 ], [ -71.0498, 42.2785 ], [ -71.0498, 42.2785 ], [ -71.0498, 42.2785 ], [ -71.0498, 42.2785 ], [ -71.0498, 42.2785 ], [ -71.0498, 42.2785 ], [ -71.0499, 42.2785 ], [ -71.0499, 42.2785 ], [ -71.0499, 42.2786 ], [ -71.0500, 42.2786 ], [ -71.0500, 42.2786 ], [ -71.0500, 42.2786 ], [ -71.0500, 42.2786 ], [ -71.0500, 42.2786 ], [ -71.0500, 42.2786 ], [ -71.0500, 42.2786 ], [ -71.0500, 42.2786 ], [ -71.0501, 42.2786 ], [ -71.0501, 42.2786 ], [ -71.0501, 42.2786 ], [ -71.0501, 42.2786 ], [ -71.0501, 42.2786 ], [ -71.0501, 42.2786 ], [ -71.0502, 42.2785 ], [ -71.0502, 42.2785 ], [ -71.0502, 42.2785 ], [ -71.0503, 42.2785 ], [ -71.0503, 42.2785 ], [ -71.0503, 42.2785 ], [ -71.0503, 42.2785 ], [ -71.0503, 42.2785 ], [ -71.0503, 42.2785 ], [ -71.0503, 42.2785 ], [ -71.0503, 42.2785 ], [ -71.0503, 42.2784 ], [ -71.0503, 42.2784 ], [ -71.0503, 42.2784 ], [ -71.0503, 42.2784 ], [ -71.0503, 42.2784 ], [ -71.0504, 42.2784 ], [ -71.0504, 42.2784 ], [ -71.0504, 42.2784 ], [ -71.0504, 42.2783 ], [ -71.0504, 42.2783 ], [ -71.0505, 42.2783 ], [ -71.0506, 42.2783 ], [ -71.0506, 42.2783 ], [ -71.0506, 42.2783 ], [ -71.0506, 42.2783 ], [ -71.0507, 42.2783 ], [ -71.0507, 42.2783 ], [ -71.0507, 42.2783 ], [ -71.0507, 42.2783 ], [ -71.0507, 42.2783 ], [ -71.0508, 42.2783 ], [ -71.0508, 42.2783 ], [ -71.0508, 42.2783 ], [ -71.0509, 42.2783 ], [ -71.0509, 42.2783 ], [ -71.0509, 42.2783 ], [ -71.0509, 42.2783 ], [ -71.0509, 42.2783 ], [ -71.0509, 42.2783 ], [ -71.0509, 42.2783 ], [ -71.0509, 42.2783 ], [ -71.0509, 42.2783 ], [ -71.0510, 42.2783 ], [ -71.0510, 42.2783 ], [ -71.0510, 42.2783 ], [ -71.0510, 42.2783 ], [ -71.0510, 42.2783 ], [ -71.0510, 42.2783 ], [ -71.0510, 42.2783 ], [ -71.0510, 42.2783 ], [ -71.0511, 42.2783 ], [ -71.0511, 42.2783 ], [ -71.0511, 42.2783 ], [ -71.0512, 42.2783 ], [ -71.0512, 42.2783 ], [ -71.0512, 42.2783 ], [ -71.0512, 42.2783 ], [ -71.0512, 42.2783 ], [ -71.0512, 42.2783 ], [ -71.0513, 42.2783 ], [ -71.0513, 42.2783 ], [ -71.0513, 42.2783 ], [ -71.0513, 42.2783 ], [ -71.0513, 42.2783 ], [ -71.0513, 42.2783 ], [ -71.0514, 42.2783 ], [ -71.0514, 42.2783 ], [ -71.0514, 42.2783 ], [ -71.0514, 42.2783 ], [ -71.0514, 42.2783 ], [ -71.0514, 42.2783 ], [ -71.0514, 42.2782 ], [ -71.0514, 42.2782 ], [ -71.0514, 42.2782 ], [ -71.0515, 42.2782 ], [ -71.0515, 42.2782 ], [ -71.0515, 42.2782 ], [ -71.0515, 42.2782 ], [ -71.0515, 42.2782 ], [ -71.0515, 42.2782 ], [ -71.0516, 42.2782 ], [ -71.0516, 42.2782 ], [ -71.0516, 42.2782 ], [ -71.0517, 42.2782 ], [ -71.0517, 42.2782 ], [ -71.0517, 42.2782 ], [ -71.0517, 42.2782 ], [ -71.0518, 42.2781 ], [ -71.0518, 42.2781 ], [ -71.0518, 42.2781 ], [ -71.0519, 42.2781 ], [ -71.0519, 42.2781 ], [ -71.0519, 42.2781 ], [ -71.0519, 42.2781 ], [ -71.0519, 42.2781 ], [ -71.0520, 42.2781 ], [ -71.0520, 42.2781 ], [ -71.0521, 42.2781 ], [ -71.0521, 42.2781 ], [ -71.0521, 42.2781 ], [ -71.0521, 42.2781 ], [ -71.0521, 42.2781 ], [ -71.0521, 42.2781 ], [ -71.0522, 42.2781 ], [ -71.0522, 42.2781 ], [ -71.0522, 42.2781 ], [ -71.0522, 42.2780 ], [ -71.0522, 42.2780 ], [ -71.0523, 42.2780 ], [ -71.0523, 42.2780 ], [ -71.0523, 42.2780 ], [ -71.0523, 42.2780 ], [ -71.0523, 42.2780 ], [ -71.0524, 42.2780 ], [ -71.0524, 42.2780 ], [ -71.0524, 42.2780 ], [ -71.0524, 42.2780 ], [ -71.0524, 42.2780 ], [ -71.0524, 42.2780 ], [ -71.0524, 42.2780 ], [ -71.0524, 42.2780 ], [ -71.0525, 42.2779 ], [ -71.0527, 42.2779 ], [ -71.0528, 42.2779 ], [ -71.0530, 42.2778 ], [ -71.0531, 42.2778 ], [ -71.0532, 42.2778 ], [ -71.0532, 42.2777 ], [ -71.0533, 42.2777 ], [ -71.0533, 42.2777 ], [ -71.0535, 42.2776 ], [ -71.0536, 42.2776 ], [ -71.0536, 42.2776 ], [ -71.0536, 42.2776 ], [ -71.0537, 42.2776 ], [ -71.0537, 42.2776 ], [ -71.0537, 42.2776 ], [ -71.0537, 42.2776 ], [ -71.0537, 42.2776 ], [ -71.0537, 42.2776 ], [ -71.0537, 42.2777 ], [ -71.0537, 42.2777 ], [ -71.0537, 42.2777 ], [ -71.0537, 42.2777 ], [ -71.0538, 42.2777 ], [ -71.0538, 42.2777 ], [ -71.0538, 42.2777 ], [ -71.0538, 42.2777 ], [ -71.0538, 42.2777 ], [ -71.0538, 42.2777 ], [ -71.0538, 42.2777 ], [ -71.0538, 42.2777 ], [ -71.0539, 42.2776 ], [ -71.0539, 42.2776 ], [ -71.0539, 42.2776 ], [ -71.0539, 42.2776 ], [ -71.0539, 42.2776 ], [ -71.0539, 42.2776 ], [ -71.0539, 42.2776 ], [ -71.0539, 42.2776 ], [ -71.0539, 42.2776 ], [ -71.0539, 42.2776 ], [ -71.0539, 42.2776 ], [ -71.0539, 42.2776 ], [ -71.0539, 42.2776 ], [ -71.0539, 42.2776 ], [ -71.0539, 42.2776 ], [ -71.0539, 42.2776 ], [ -71.0539, 42.2776 ], [ -71.0539, 42.2776 ], [ -71.0540, 42.2776 ], [ -71.0540, 42.2776 ], [ -71.0540, 42.2776 ], [ -71.0540, 42.2776 ], [ -71.0540, 42.2776 ], [ -71.0540, 42.2776 ], [ -71.0540, 42.2776 ], [ -71.0540, 42.2776 ], [ -71.0540, 42.2776 ], [ -71.0540, 42.2776 ], [ -71.0541, 42.2776 ], [ -71.0541, 42.2776 ], [ -71.0541, 42.2776 ], [ -71.0541, 42.2776 ], [ -71.0542, 42.2776 ], [ -71.0542, 42.2776 ], [ -71.0542, 42.2776 ], [ -71.0542, 42.2775 ], [ -71.0543, 42.2775 ], [ -71.0543, 42.2775 ], [ -71.0543, 42.2775 ], [ -71.0543, 42.2775 ], [ -71.0543, 42.2775 ], [ -71.0544, 42.2775 ], [ -71.0544, 42.2775 ], [ -71.0544, 42.2775 ], [ -71.0545, 42.2775 ], [ -71.0545, 42.2774 ], [ -71.0545, 42.2774 ], [ -71.0545, 42.2774 ], [ -71.0545, 42.2774 ], [ -71.0545, 42.2774 ], [ -71.0546, 42.2774 ], [ -71.0546, 42.2774 ], [ -71.0546, 42.2774 ], [ -71.0546, 42.2774 ], [ -71.0546, 42.2774 ], [ -71.0547, 42.2774 ], [ -71.0547, 42.2774 ], [ -71.0547, 42.2774 ], [ -71.0547, 42.2774 ], [ -71.0547, 42.2774 ], [ -71.0547, 42.2773 ], [ -71.0547, 42.2773 ], [ -71.0548, 42.2773 ], [ -71.0548, 42.2773 ], [ -71.0548, 42.2773 ], [ -71.0548, 42.2773 ], [ -71.0549, 42.2773 ], [ -71.0549, 42.2773 ], [ -71.0549, 42.2773 ], [ -71.0549, 42.2773 ], [ -71.0549, 42.2772 ], [ -71.0549, 42.2772 ], [ -71.0549, 42.2772 ], [ -71.0550, 42.2772 ], [ -71.0550, 42.2772 ], [ -71.0550, 42.2772 ], [ -71.0550, 42.2772 ], [ -71.0551, 42.2771 ], [ -71.0551, 42.2771 ], [ -71.0551, 42.2771 ], [ -71.0552, 42.2771 ], [ -71.0552, 42.2771 ], [ -71.0552, 42.2771 ], [ -71.0552, 42.2770 ], [ -71.0553, 42.2770 ], [ -71.0553, 42.2770 ], [ -71.0553, 42.2770 ], [ -71.0553, 42.2770 ], [ -71.0553, 42.2770 ], [ -71.0553, 42.2769 ], [ -71.0553, 42.2769 ], [ -71.0554, 42.2769 ], [ -71.0554, 42.2769 ], [ -71.0554, 42.2769 ], [ -71.0554, 42.2769 ], [ -71.0555, 42.2769 ], [ -71.0555, 42.2768 ], [ -71.0555, 42.2768 ], [ -71.0555, 42.2768 ], [ -71.0555, 42.2768 ], [ -71.0555, 42.2768 ], [ -71.0555, 42.2768 ], [ -71.0555, 42.2768 ], [ -71.0555, 42.2768 ], [ -71.0556, 42.2767 ], [ -71.0556, 42.2767 ], [ -71.0556, 42.2767 ], [ -71.0556, 42.2767 ], [ -71.0556, 42.2767 ], [ -71.0557, 42.2767 ], [ -71.0557, 42.2766 ], [ -71.0557, 42.2766 ], [ -71.0557, 42.2766 ], [ -71.0558, 42.2765 ], [ -71.0558, 42.2765 ], [ -71.0558, 42.2765 ], [ -71.0558, 42.2765 ], [ -71.0558, 42.2765 ], [ -71.0558, 42.2765 ], [ -71.0559, 42.2765 ], [ -71.0559, 42.2765 ], [ -71.0559, 42.2765 ], [ -71.0559, 42.2765 ], [ -71.0559, 42.2765 ], [ -71.0559, 42.2765 ], [ -71.0559, 42.2765 ], [ -71.0560, 42.2765 ], [ -71.0560, 42.2765 ], [ -71.0560, 42.2765 ], [ -71.0560, 42.2765 ], [ -71.0560, 42.2766 ], [ -71.0560, 42.2766 ], [ -71.0560, 42.2766 ], [ -71.0560, 42.2765 ], [ -71.0560, 42.2765 ], [ -71.0560, 42.2765 ], [ -71.0560, 42.2765 ], [ -71.0561, 42.2765 ], [ -71.0561, 42.2765 ], [ -71.0561, 42.2765 ], [ -71.0561, 42.2765 ], [ -71.0561, 42.2765 ], [ -71.0561, 42.2765 ], [ -71.0561, 42.2765 ], [ -71.0562, 42.2765 ], [ -71.0562, 42.2765 ], [ -71.0562, 42.2765 ], [ -71.0562, 42.2765 ], [ -71.0562, 42.2764 ], [ -71.0562, 42.2764 ], [ -71.0562, 42.2764 ], [ -71.0562, 42.2764 ], [ -71.0562, 42.2764 ], [ -71.0562, 42.2764 ], [ -71.0562, 42.2764 ], [ -71.0562, 42.2764 ], [ -71.0561, 42.2763 ], [ -71.0561, 42.2763 ], [ -71.0561, 42.2762 ], [ -71.0561, 42.2762 ], [ -71.0561, 42.2762 ], [ -71.0562, 42.2761 ], [ -71.0562, 42.2761 ], [ -71.0562, 42.2761 ], [ -71.0562, 42.2761 ], [ -71.0562, 42.2760 ], [ -71.0563, 42.2754 ], [ -71.0562, 42.2748 ], [ -71.0562, 42.2746 ], [ -71.0563, 42.2746 ], [ -71.0564, 42.2746 ], [ -71.0565, 42.2747 ], [ -71.0566, 42.2747 ], [ -71.0566, 42.2748 ], [ -71.0567, 42.2749 ], [ -71.0568, 42.2749 ], [ -71.0568, 42.2748 ], [ -71.0568, 42.2748 ], [ -71.0568, 42.2746 ], [ -71.0568, 42.2745 ], [ -71.0567, 42.2745 ], [ -71.0566, 42.2746 ], [ -71.0564, 42.2745 ], [ -71.0564, 42.2745 ], [ -71.0563, 42.2744 ], [ -71.0562, 42.2744 ], [ -71.0560, 42.2743 ], [ -71.0555, 42.2738 ], [ -71.0554, 42.2737 ], [ -71.0550, 42.2734 ], [ -71.0547, 42.2732 ], [ -71.0546, 42.2731 ], [ -71.0546, 42.2731 ], [ -71.0546, 42.2731 ], [ -71.0545, 42.2730 ], [ -71.0545, 42.2730 ], [ -71.0543, 42.2728 ], [ -71.0543, 42.2727 ], [ -71.0544, 42.2727 ], [ -71.0545, 42.2727 ], [ -71.0546, 42.2728 ], [ -71.0546, 42.2729 ], [ -71.0546, 42.2729 ], [ -71.0546, 42.2729 ], [ -71.0547, 42.2729 ], [ -71.0547, 42.2729 ], [ -71.0547, 42.2729 ], [ -71.0547, 42.2729 ], [ -71.0548, 42.2729 ], [ -71.0548, 42.2729 ], [ -71.0548, 42.2729 ], [ -71.0549, 42.2729 ], [ -71.0550, 42.2729 ], [ -71.0551, 42.2729 ], [ -71.0552, 42.2729 ], [ -71.0555, 42.2729 ], [ -71.0557, 42.2729 ], [ -71.0558, 42.2729 ], [ -71.0560, 42.2729 ], [ -71.0561, 42.2728 ], [ -71.0562, 42.2727 ], [ -71.0563, 42.2727 ], [ -71.0565, 42.2727 ], [ -71.0566, 42.2726 ], [ -71.0568, 42.2726 ], [ -71.0570, 42.2726 ], [ -71.0572, 42.2726 ], [ -71.0573, 42.2726 ], [ -71.0574, 42.2726 ], [ -71.0575, 42.2727 ], [ -71.0576, 42.2727 ], [ -71.0576, 42.2728 ], [ -71.0576, 42.2728 ], [ -71.0577, 42.2728 ], [ -71.0577, 42.2728 ], [ -71.0579, 42.2728 ], [ -71.0580, 42.2728 ], [ -71.0581, 42.2728 ], [ -71.0582, 42.2728 ], [ -71.0582, 42.2728 ], [ -71.0583, 42.2728 ], [ -71.0584, 42.2728 ], [ -71.0585, 42.2728 ], [ -71.0584, 42.2728 ], [ -71.0584, 42.2727 ], [ -71.0583, 42.2727 ], [ -71.0580, 42.2727 ], [ -71.0579, 42.2727 ], [ -71.0578, 42.2727 ], [ -71.0577, 42.2727 ], [ -71.0576, 42.2726 ], [ -71.0576, 42.2726 ], [ -71.0576, 42.2726 ], [ -71.0575, 42.2726 ], [ -71.0571, 42.2725 ], [ -71.0570, 42.2726 ], [ -71.0570, 42.2725 ], [ -71.0569, 42.2725 ], [ -71.0568, 42.2725 ], [ -71.0567, 42.2725 ], [ -71.0566, 42.2726 ], [ -71.0565, 42.2725 ], [ -71.0564, 42.2725 ], [ -71.0563, 42.2725 ], [ -71.0563, 42.2725 ], [ -71.0562, 42.2726 ], [ -71.0562, 42.2726 ], [ -71.0561, 42.2726 ], [ -71.0561, 42.2727 ], [ -71.0561, 42.2727 ], [ -71.0560, 42.2728 ], [ -71.0558, 42.2728 ], [ -71.0557, 42.2728 ], [ -71.0555, 42.2728 ], [ -71.0554, 42.2728 ], [ -71.0554, 42.2728 ], [ -71.0553, 42.2728 ], [ -71.0552, 42.2728 ], [ -71.0552, 42.2728 ], [ -71.0551, 42.2727 ], [ -71.0550, 42.2727 ], [ -71.0549, 42.2727 ], [ -71.0549, 42.2727 ], [ -71.0548, 42.2726 ], [ -71.0547, 42.2726 ], [ -71.0546, 42.2726 ], [ -71.0545, 42.2726 ], [ -71.0544, 42.2725 ], [ -71.0543, 42.2725 ], [ -71.0543, 42.2724 ], [ -71.0543, 42.2723 ], [ -71.0543, 42.2722 ], [ -71.0545, 42.2721 ], [ -71.0545, 42.2720 ], [ -71.0547, 42.2719 ], [ -71.0552, 42.2717 ], [ -71.0557, 42.2715 ], [ -71.0559, 42.2715 ], [ -71.0562, 42.2714 ], [ -71.0563, 42.2715 ], [ -71.0565, 42.2713 ], [ -71.0565, 42.2712 ], [ -71.0568, 42.2710 ], [ -71.0572, 42.2709 ], [ -71.0573, 42.2708 ], [ -71.0574, 42.2707 ], [ -71.0576, 42.2706 ], [ -71.0577, 42.2705 ], [ -71.0578, 42.2705 ], [ -71.0578, 42.2705 ], [ -71.0579, 42.2703 ], [ -71.0580, 42.2702 ], [ -71.0580, 42.2701 ], [ -71.0583, 42.2699 ], [ -71.0585, 42.2699 ], [ -71.0585, 42.2698 ], [ -71.0586, 42.2695 ], [ -71.0588, 42.2693 ], [ -71.0589, 42.2693 ], [ -71.0591, 42.2693 ], [ -71.0595, 42.2693 ], [ -71.0596, 42.2694 ], [ -71.0597, 42.2694 ], [ -71.0597, 42.2695 ], [ -71.0597, 42.2696 ], [ -71.0598, 42.2696 ], [ -71.0599, 42.2696 ], [ -71.0601, 42.2697 ], [ -71.0602, 42.2696 ], [ -71.0603, 42.2696 ], [ -71.0602, 42.2695 ], [ -71.0600, 42.2694 ], [ -71.0599, 42.2694 ], [ -71.0597, 42.2693 ], [ -71.0597, 42.2692 ], [ -71.0597, 42.2691 ], [ -71.0597, 42.2691 ], [ -71.0599, 42.2690 ], [ -71.0600, 42.2690 ], [ -71.0602, 42.2690 ], [ -71.0605, 42.2689 ], [ -71.0605, 42.2688 ], [ -71.0607, 42.2688 ], [ -71.0610, 42.2688 ], [ -71.0612, 42.2687 ], [ -71.0612, 42.2687 ], [ -71.0613, 42.2688 ], [ -71.0614, 42.2687 ], [ -71.0614, 42.2687 ], [ -71.0615, 42.2687 ], [ -71.0615, 42.2686 ], [ -71.0614, 42.2686 ], [ -71.0615, 42.2684 ], [ -71.0613, 42.2684 ], [ -71.0613, 42.2683 ], [ -71.0613, 42.2682 ], [ -71.0614, 42.2680 ], [ -71.0615, 42.2680 ], [ -71.0617, 42.2678 ], [ -71.0618, 42.2678 ], [ -71.0620, 42.2677 ], [ -71.0623, 42.2675 ], [ -71.0623, 42.2675 ], [ -71.0625, 42.2675 ], [ -71.0625, 42.2676 ], [ -71.0626, 42.2677 ], [ -71.0627, 42.2677 ], [ -71.0628, 42.2678 ], [ -71.0628, 42.2678 ], [ -71.0629, 42.2679 ], [ -71.0630, 42.2680 ], [ -71.0630, 42.2680 ], [ -71.0630, 42.2681 ], [ -71.0630, 42.2682 ], [ -71.0629, 42.2682 ], [ -71.0629, 42.2683 ], [ -71.0628, 42.2683 ], [ -71.0628, 42.2684 ], [ -71.0629, 42.2684 ], [ -71.0629, 42.2685 ], [ -71.0629, 42.2685 ], [ -71.0630, 42.2686 ], [ -71.0631, 42.2686 ], [ -71.0632, 42.2687 ], [ -71.0633, 42.2688 ], [ -71.0634, 42.2688 ], [ -71.0635, 42.2688 ], [ -71.0636, 42.2688 ], [ -71.0639, 42.2687 ], [ -71.0639, 42.2687 ], [ -71.0640, 42.2687 ], [ -71.0640, 42.2687 ], [ -71.0641, 42.2687 ], [ -71.0642, 42.2687 ], [ -71.0642, 42.2688 ], [ -71.0643, 42.2688 ], [ -71.0643, 42.2688 ], [ -71.0643, 42.2688 ], [ -71.0644, 42.2688 ], [ -71.0644, 42.2688 ], [ -71.0645, 42.2688 ], [ -71.0645, 42.2689 ], [ -71.0645, 42.2689 ], [ -71.0646, 42.2689 ], [ -71.0646, 42.2690 ], [ -71.0647, 42.2690 ], [ -71.0647, 42.2690 ], [ -71.0647, 42.2690 ], [ -71.0647, 42.2690 ], [ -71.0647, 42.2690 ], [ -71.0647, 42.2691 ], [ -71.0647, 42.2691 ], [ -71.0647, 42.2691 ], [ -71.0647, 42.2692 ], [ -71.0647, 42.2693 ], [ -71.0647, 42.2693 ], [ -71.0647, 42.2693 ], [ -71.0647, 42.2693 ], [ -71.0647, 42.2693 ], [ -71.0647, 42.2693 ], [ -71.0646, 42.2693 ], [ -71.0646, 42.2694 ], [ -71.0646, 42.2694 ], [ -71.0646, 42.2694 ], [ -71.0646, 42.2694 ], [ -71.0646, 42.2694 ], [ -71.0645, 42.2694 ], [ -71.0645, 42.2694 ], [ -71.0645, 42.2694 ], [ -71.0645, 42.2695 ], [ -71.0645, 42.2695 ], [ -71.0645, 42.2695 ], [ -71.0645, 42.2695 ], [ -71.0645, 42.2695 ], [ -71.0645, 42.2695 ], [ -71.0644, 42.2695 ], [ -71.0644, 42.2696 ], [ -71.0644, 42.2696 ], [ -71.0644, 42.2696 ], [ -71.0644, 42.2696 ], [ -71.0644, 42.2697 ], [ -71.0644, 42.2698 ], [ -71.0645, 42.2698 ], [ -71.0645, 42.2698 ], [ -71.0645, 42.2699 ], [ -71.0645, 42.2699 ], [ -71.0645, 42.2699 ], [ -71.0645, 42.2699 ], [ -71.0645, 42.2699 ], [ -71.0645, 42.2699 ], [ -71.0645, 42.2699 ], [ -71.0645, 42.2699 ], [ -71.0645, 42.2699 ], [ -71.0645, 42.2699 ], [ -71.0645, 42.2699 ], [ -71.0645, 42.2699 ], [ -71.0645, 42.2699 ], [ -71.0645, 42.2700 ], [ -71.0645, 42.2700 ], [ -71.0645, 42.2700 ], [ -71.0645, 42.2700 ], [ -71.0645, 42.2700 ], [ -71.0645, 42.2700 ], [ -71.0645, 42.2700 ], [ -71.0645, 42.2700 ], [ -71.0645, 42.2700 ], [ -71.0645, 42.2700 ], [ -71.0645, 42.2700 ], [ -71.0645, 42.2700 ], [ -71.0645, 42.2700 ], [ -71.0645, 42.2700 ], [ -71.0645, 42.2700 ], [ -71.0645, 42.2700 ], [ -71.0645, 42.2700 ], [ -71.0645, 42.2700 ], [ -71.0645, 42.2700 ], [ -71.0645, 42.2700 ], [ -71.0645, 42.2700 ], [ -71.0645, 42.2700 ], [ -71.0645, 42.2700 ], [ -71.0645, 42.2700 ], [ -71.0645, 42.2701 ], [ -71.0645, 42.2701 ], [ -71.0645, 42.2701 ], [ -71.0645, 42.2701 ], [ -71.0645, 42.2701 ], [ -71.0645, 42.2701 ], [ -71.0645, 42.2701 ], [ -71.0645, 42.2701 ], [ -71.0645, 42.2701 ], [ -71.0645, 42.2701 ], [ -71.0645, 42.2701 ], [ -71.0644, 42.2701 ], [ -71.0644, 42.2701 ], [ -71.0644, 42.2701 ], [ -71.0644, 42.2701 ], [ -71.0643, 42.2701 ], [ -71.0643, 42.2701 ], [ -71.0643, 42.2701 ], [ -71.0643, 42.2701 ], [ -71.0643, 42.2701 ], [ -71.0643, 42.2701 ], [ -71.0643, 42.2701 ], [ -71.0643, 42.2701 ], [ -71.0643, 42.2701 ], [ -71.0643, 42.2701 ], [ -71.0643, 42.2701 ], [ -71.0643, 42.2701 ], [ -71.0643, 42.2701 ], [ -71.0643, 42.2701 ], [ -71.0643, 42.2701 ], [ -71.0643, 42.2701 ], [ -71.0643, 42.2701 ], [ -71.0643, 42.2701 ], [ -71.0643, 42.2701 ], [ -71.0643, 42.2701 ], [ -71.0643, 42.2701 ], [ -71.0643, 42.2701 ], [ -71.0643, 42.2701 ], [ -71.0643, 42.2702 ], [ -71.0643, 42.2702 ], [ -71.0643, 42.2702 ], [ -71.0643, 42.2702 ], [ -71.0643, 42.2703 ], [ -71.0643, 42.2703 ], [ -71.0643, 42.2703 ], [ -71.0643, 42.2703 ], [ -71.0643, 42.2703 ], [ -71.0643, 42.2704 ], [ -71.0643, 42.2704 ], [ -71.0643, 42.2704 ], [ -71.0643, 42.2704 ], [ -71.0643, 42.2704 ], [ -71.0643, 42.2704 ], [ -71.0643, 42.2704 ], [ -71.0643, 42.2704 ], [ -71.0643, 42.2704 ], [ -71.0643, 42.2704 ], [ -71.0643, 42.2704 ], [ -71.0643, 42.2704 ], [ -71.0644, 42.2704 ], [ -71.0644, 42.2704 ], [ -71.0644, 42.2704 ], [ -71.0644, 42.2704 ], [ -71.0644, 42.2704 ], [ -71.0644, 42.2705 ], [ -71.0644, 42.2705 ], [ -71.0644, 42.2705 ], [ -71.0644, 42.2705 ], [ -71.0644, 42.2705 ], [ -71.0644, 42.2705 ], [ -71.0644, 42.2705 ], [ -71.0644, 42.2705 ], [ -71.0644, 42.2705 ], [ -71.0644, 42.2705 ], [ -71.0644, 42.2705 ], [ -71.0644, 42.2705 ], [ -71.0645, 42.2706 ], [ -71.0645, 42.2706 ], [ -71.0645, 42.2706 ], [ -71.0645, 42.2706 ], [ -71.0645, 42.2706 ], [ -71.0645, 42.2706 ], [ -71.0645, 42.2706 ], [ -71.0645, 42.2706 ], [ -71.0645, 42.2706 ], [ -71.0645, 42.2706 ], [ -71.0646, 42.2706 ], [ -71.0646, 42.2706 ], [ -71.0646, 42.2706 ], [ -71.0646, 42.2706 ], [ -71.0646, 42.2706 ], [ -71.0647, 42.2706 ], [ -71.0647, 42.2706 ], [ -71.0647, 42.2706 ], [ -71.0647, 42.2706 ], [ -71.0647, 42.2706 ], [ -71.0647, 42.2706 ], [ -71.0647, 42.2706 ], [ -71.0647, 42.2706 ], [ -71.0647, 42.2706 ], [ -71.0647, 42.2706 ], [ -71.0647, 42.2706 ], [ -71.0647, 42.2706 ], [ -71.0647, 42.2706 ], [ -71.0647, 42.2706 ], [ -71.0648, 42.2706 ], [ -71.0648, 42.2706 ], [ -71.0648, 42.2706 ], [ -71.0648, 42.2706 ], [ -71.0649, 42.2707 ], [ -71.0649, 42.2707 ], [ -71.0649, 42.2707 ], [ -71.0649, 42.2707 ], [ -71.0649, 42.2707 ], [ -71.0650, 42.2707 ], [ -71.0650, 42.2707 ], [ -71.0651, 42.2707 ], [ -71.0653, 42.2709 ], [ -71.0652, 42.2709 ], [ -71.0652, 42.2709 ], [ -71.0652, 42.2709 ], [ -71.0652, 42.2710 ], [ -71.0653, 42.2710 ], [ -71.0653, 42.2710 ], [ -71.0653, 42.2710 ], [ -71.0653, 42.2711 ], [ -71.0654, 42.2711 ], [ -71.0654, 42.2711 ], [ -71.0655, 42.2711 ], [ -71.0655, 42.2712 ], [ -71.0656, 42.2712 ], [ -71.0656, 42.2712 ], [ -71.0656, 42.2712 ], [ -71.0656, 42.2712 ], [ -71.0656, 42.2712 ], [ -71.0656, 42.2712 ], [ -71.0656, 42.2712 ], [ -71.0656, 42.2712 ], [ -71.0656, 42.2712 ], [ -71.0656, 42.2712 ], [ -71.0656, 42.2712 ], [ -71.0656, 42.2712 ], [ -71.0656, 42.2712 ], [ -71.0656, 42.2712 ], [ -71.0656, 42.2712 ], [ -71.0656, 42.2712 ], [ -71.0656, 42.2712 ], [ -71.0656, 42.2712 ], [ -71.0656, 42.2712 ], [ -71.0656, 42.2712 ], [ -71.0656, 42.2712 ], [ -71.0656, 42.2712 ], [ -71.0656, 42.2712 ], [ -71.0656, 42.2712 ], [ -71.0656, 42.2712 ], [ -71.0656, 42.2712 ], [ -71.0656, 42.2712 ], [ -71.0656, 42.2712 ], [ -71.0656, 42.2712 ], [ -71.0656, 42.2712 ], [ -71.0656, 42.2712 ], [ -71.0656, 42.2712 ], [ -71.0656, 42.2712 ], [ -71.0656, 42.2712 ], [ -71.0656, 42.2712 ], [ -71.0656, 42.2712 ], [ -71.0656, 42.2712 ], [ -71.0656, 42.2712 ], [ -71.0656, 42.2712 ], [ -71.0656, 42.2712 ], [ -71.0656, 42.2712 ], [ -71.0656, 42.2712 ], [ -71.0656, 42.2712 ], [ -71.0657, 42.2713 ], [ -71.0657, 42.2713 ], [ -71.0657, 42.2713 ], [ -71.0657, 42.2713 ], [ -71.0657, 42.2713 ], [ -71.0658, 42.2713 ], [ -71.0658, 42.2713 ], [ -71.0658, 42.2713 ], [ -71.0658, 42.2713 ], [ -71.0658, 42.2713 ], [ -71.0658, 42.2713 ], [ -71.0658, 42.2713 ], [ -71.0659, 42.2713 ], [ -71.0659, 42.2713 ], [ -71.0659, 42.2713 ], [ -71.0659, 42.2713 ], [ -71.0660, 42.2713 ], [ -71.0660, 42.2713 ], [ -71.0660, 42.2713 ], [ -71.0661, 42.2713 ], [ -71.0661, 42.2713 ], [ -71.0661, 42.2713 ], [ -71.0661, 42.2713 ], [ -71.0661, 42.2713 ], [ -71.0661, 42.2713 ], [ -71.0662, 42.2713 ], [ -71.0662, 42.2713 ], [ -71.0662, 42.2713 ], [ -71.0663, 42.2713 ], [ -71.0663, 42.2713 ], [ -71.0663, 42.2713 ], [ -71.0663, 42.2713 ], [ -71.0663, 42.2713 ], [ -71.0663, 42.2713 ], [ -71.0664, 42.2714 ], [ -71.0664, 42.2714 ], [ -71.0664, 42.2714 ], [ -71.0664, 42.2714 ], [ -71.0664, 42.2714 ], [ -71.0664, 42.2714 ], [ -71.0665, 42.2714 ], [ -71.0667, 42.2714 ], [ -71.0669, 42.2715 ], [ -71.0669, 42.2714 ], [ -71.0669, 42.2714 ], [ -71.0669, 42.2714 ], [ -71.0669, 42.2714 ], [ -71.0669, 42.2714 ], [ -71.0670, 42.2714 ], [ -71.0670, 42.2714 ], [ -71.0670, 42.2714 ], [ -71.0670, 42.2714 ], [ -71.0671, 42.2714 ], [ -71.0671, 42.2714 ], [ -71.0671, 42.2714 ], [ -71.0671, 42.2714 ], [ -71.0672, 42.2714 ], [ -71.0673, 42.2715 ], [ -71.0673, 42.2715 ], [ -71.0674, 42.2715 ], [ -71.0674, 42.2715 ], [ -71.0674, 42.2715 ], [ -71.0675, 42.2715 ], [ -71.0675, 42.2715 ], [ -71.0675, 42.2715 ], [ -71.0675, 42.2715 ], [ -71.0675, 42.2715 ], [ -71.0675, 42.2715 ], [ -71.0675, 42.2716 ], [ -71.0676, 42.2716 ], [ -71.0679, 42.2715 ], [ -71.0679, 42.2715 ], [ -71.0679, 42.2714 ], [ -71.0680, 42.2713 ], [ -71.0680, 42.2712 ], [ -71.0680, 42.2712 ], [ -71.0680, 42.2712 ], [ -71.0680, 42.2712 ], [ -71.0680, 42.2712 ], [ -71.0680, 42.2711 ], [ -71.0680, 42.2711 ], [ -71.0680, 42.2711 ], [ -71.0680, 42.2710 ], [ -71.0680, 42.2710 ], [ -71.0682, 42.2709 ], [ -71.0682, 42.2709 ], [ -71.0681, 42.2710 ], [ -71.0681, 42.2710 ], [ -71.0681, 42.2711 ], [ -71.0681, 42.2712 ], [ -71.0681, 42.2713 ], [ -71.0680, 42.2715 ], [ -71.0680, 42.2717 ], [ -71.0679, 42.2719 ], [ -71.0679, 42.2721 ], [ -71.0680, 42.2722 ], [ -71.0680, 42.2722 ], [ -71.0679, 42.2724 ], [ -71.0678, 42.2729 ], [ -71.0677, 42.2732 ], [ -71.0677, 42.2735 ], [ -71.0676, 42.2738 ], [ -71.0674, 42.2745 ], [ -71.0671, 42.2755 ], [ -71.0669, 42.2762 ], [ -71.0668, 42.2767 ], [ -71.0666, 42.2775 ], [ -71.0665, 42.2779 ], [ -71.0662, 42.2788 ], [ -71.0660, 42.2795 ], [ -71.0659, 42.2799 ], [ -71.0663, 42.2798 ], [ -71.0672, 42.2795 ], [ -71.0678, 42.2793 ], [ -71.0681, 42.2792 ], [ -71.0686, 42.2791 ], [ -71.0695, 42.2788 ], [ -71.0697, 42.2787 ], [ -71.0705, 42.2784 ], [ -71.0710, 42.2783 ], [ -71.0716, 42.2781 ], [ -71.0722, 42.2781 ], [ -71.0727, 42.2780 ], [ -71.0731, 42.2780 ], [ -71.0737, 42.2780 ], [ -71.0745, 42.2781 ], [ -71.0747, 42.2781 ], [ -71.0757, 42.2782 ], [ -71.0757, 42.2782 ], [ -71.0763, 42.2782 ], [ -71.0766, 42.2783 ], [ -71.0779, 42.2784 ], [ -71.0788, 42.2785 ], [ -71.0793, 42.2786 ], [ -71.0798, 42.2787 ], [ -71.0799, 42.2787 ], [ -71.0800, 42.2787 ], [ -71.0804, 42.2789 ], [ -71.0805, 42.2790 ], [ -71.0811, 42.2793 ], [ -71.0822, 42.2801 ], [ -71.0825, 42.2803 ], [ -71.0828, 42.2804 ], [ -71.0832, 42.2805 ], [ -71.0844, 42.2807 ], [ -71.0850, 42.2808 ], [ -71.0854, 42.2810 ], [ -71.0855, 42.2809 ], [ -71.0855, 42.2809 ], [ -71.0860, 42.2810 ], [ -71.0863, 42.2811 ], [ -71.0865, 42.2812 ], [ -71.0867, 42.2813 ], [ -71.0870, 42.2815 ], [ -71.0874, 42.2818 ], [ -71.0879, 42.2821 ], [ -71.0882, 42.2823 ], [ -71.0885, 42.2825 ], [ -71.0887, 42.2827 ], [ -71.0889, 42.2828 ], [ -71.0890, 42.2829 ], [ -71.0891, 42.2831 ], [ -71.0891, 42.2832 ], [ -71.0892, 42.2834 ], [ -71.0892, 42.2835 ], [ -71.0894, 42.2837 ], [ -71.0895, 42.2838 ], [ -71.0896, 42.2838 ], [ -71.0897, 42.2839 ], [ -71.0906, 42.2841 ], [ -71.0913, 42.2842 ], [ -71.0915, 42.2842 ], [ -71.0919, 42.2844 ], [ -71.0923, 42.2846 ], [ -71.0927, 42.2848 ], [ -71.0928, 42.2849 ], [ -71.0928, 42.2851 ], [ -71.0929, 42.2853 ], [ -71.0931, 42.2859 ], [ -71.0934, 42.2865 ], [ -71.0934, 42.2865 ], [ -71.0936, 42.2871 ], [ -71.0937, 42.2872 ], [ -71.0938, 42.2876 ], [ -71.0940, 42.2879 ], [ -71.0941, 42.2882 ], [ -71.0944, 42.2890 ], [ -71.0949, 42.2901 ], [ -71.0950, 42.2902 ], [ -71.0954, 42.2912 ], [ -71.0957, 42.2919 ], [ -71.0957, 42.2919 ], [ -71.0953, 42.2922 ], [ -71.0948, 42.2927 ], [ -71.0945, 42.2929 ], [ -71.0944, 42.2931 ], [ -71.0943, 42.2932 ], [ -71.0942, 42.2933 ], [ -71.0932, 42.2945 ], [ -71.0931, 42.2946 ], [ -71.0925, 42.2954 ], [ -71.0923, 42.2957 ], [ -71.0922, 42.2958 ], [ -71.0917, 42.2965 ], [ -71.0915, 42.2967 ], [ -71.0914, 42.2968 ], [ -71.0913, 42.2969 ], [ -71.0911, 42.2970 ], [ -71.0909, 42.2971 ], [ -71.0904, 42.2972 ], [ -71.0900, 42.2973 ], [ -71.0896, 42.2974 ], [ -71.0885, 42.2977 ], [ -71.0874, 42.2980 ], [ -71.0869, 42.2981 ], [ -71.0869, 42.2983 ], [ -71.0867, 42.2987 ], [ -71.0866, 42.2991 ], [ -71.0865, 42.2995 ], [ -71.0864, 42.3000 ], [ -71.0862, 42.3003 ], [ -71.0861, 42.3006 ], [ -71.0859, 42.3013 ], [ -71.0859, 42.3013 ], [ -71.0857, 42.3019 ], [ -71.0855, 42.3024 ], [ -71.0853, 42.3030 ], [ -71.0852, 42.3034 ], [ -71.0850, 42.3041 ], [ -71.0849, 42.3044 ], [ -71.0848, 42.3047 ], [ -71.0847, 42.3052 ], [ -71.0847, 42.3052 ], [ -71.0847, 42.3054 ], [ -71.0846, 42.3056 ], [ -71.0846, 42.3059 ], [ -71.0846, 42.3061 ], [ -71.0845, 42.3063 ], [ -71.0844, 42.3066 ], [ -71.0844, 42.3067 ], [ -71.0842, 42.3070 ], [ -71.0841, 42.3071 ], [ -71.0840, 42.3074 ], [ -71.0838, 42.3075 ], [ -71.0836, 42.3078 ], [ -71.0832, 42.3084 ], [ -71.0830, 42.3087 ], [ -71.0830, 42.3087 ], [ -71.0829, 42.3090 ], [ -71.0828, 42.3093 ], [ -71.0827, 42.3094 ], [ -71.0826, 42.3095 ], [ -71.0825, 42.3096 ], [ -71.0820, 42.3102 ], [ -71.0817, 42.3106 ], [ -71.0815, 42.3108 ], [ -71.0811, 42.3113 ], [ -71.0807, 42.3118 ], [ -71.0803, 42.3124 ], [ -71.0800, 42.3126 ], [ -71.0796, 42.3132 ], [ -71.0794, 42.3135 ], [ -71.0794, 42.3136 ], [ -71.0791, 42.3140 ], [ -71.0788, 42.3146 ], [ -71.0784, 42.3144 ], [ -71.0779, 42.3141 ], [ -71.0777, 42.3140 ], [ -71.0770, 42.3137 ], [ -71.0767, 42.3136 ], [ -71.0761, 42.3134 ], [ -71.0756, 42.3132 ], [ -71.0755, 42.3131 ], [ -71.0753, 42.3131 ], [ -71.0749, 42.3129 ], [ -71.0746, 42.3128 ], [ -71.0740, 42.3126 ], [ -71.0736, 42.3123 ], [ -71.0731, 42.3122 ], [ -71.0730, 42.3123 ], [ -71.0726, 42.3129 ], [ -71.0722, 42.3134 ], [ -71.0721, 42.3136 ], [ -71.0729, 42.3136 ], [ -71.0732, 42.3136 ], [ -71.0731, 42.3142 ], [ -71.0731, 42.3144 ], [ -71.0730, 42.3147 ], [ -71.0730, 42.3155 ], [ -71.0729, 42.3158 ], [ -71.0729, 42.3159 ], [ -71.0728, 42.3164 ], [ -71.0728, 42.3165 ], [ -71.0728, 42.3166 ], [ -71.0728, 42.3167 ], [ -71.0729, 42.3168 ], [ -71.0730, 42.3170 ], [ -71.0727, 42.3172 ], [ -71.0723, 42.3174 ], [ -71.0721, 42.3176 ], [ -71.0719, 42.3177 ], [ -71.0719, 42.3177 ], [ -71.0718, 42.3177 ], [ -71.0717, 42.3177 ], [ -71.0716, 42.3177 ], [ -71.0715, 42.3177 ], [ -71.0703, 42.3174 ], [ -71.0701, 42.3179 ], [ -71.0699, 42.3183 ], [ -71.0696, 42.3189 ], [ -71.0699, 42.3190 ], [ -71.0702, 42.3191 ], [ -71.0703, 42.3192 ], [ -71.0704, 42.3193 ], [ -71.0706, 42.3195 ], [ -71.0708, 42.3197 ], [ -71.0712, 42.3201 ], [ -71.0719, 42.3207 ], [ -71.0720, 42.3208 ], [ -71.0720, 42.3209 ], [ -71.0721, 42.3210 ], [ -71.0721, 42.3211 ], [ -71.0722, 42.3213 ], [ -71.0717, 42.3213 ], [ -71.0713, 42.3214 ], [ -71.0705, 42.3215 ], [ -71.0701, 42.3215 ], [ -71.0698, 42.3215 ], [ -71.0696, 42.3215 ], [ -71.0694, 42.3215 ], [ -71.0691, 42.3214 ], [ -71.0689, 42.3213 ], [ -71.0685, 42.3213 ], [ -71.0685, 42.3213 ], [ -71.0681, 42.3212 ], [ -71.0680, 42.3212 ], [ -71.0675, 42.3233 ], [ -71.0675, 42.3233 ], [ -71.0675, 42.3233 ], [ -71.0673, 42.3237 ], [ -71.0673, 42.3238 ], [ -71.0672, 42.3241 ], [ -71.0672, 42.3243 ], [ -71.0671, 42.3246 ], [ -71.0670, 42.3249 ], [ -71.0669, 42.3252 ], [ -71.0668, 42.3254 ], [ -71.0667, 42.3257 ], [ -71.0666, 42.3259 ], [ -71.0665, 42.3259 ], [ -71.0664, 42.3261 ], [ -71.0664, 42.3261 ], [ -71.0664, 42.3261 ], [ -71.0664, 42.3262 ], [ -71.0663, 42.3263 ], [ -71.0636, 42.3307 ], [ -71.0635, 42.3308 ], [ -71.0635, 42.3308 ], [ -71.0635, 42.3308 ], [ -71.0635, 42.3307 ], [ -71.0635, 42.3307 ], [ -71.0635, 42.3307 ], [ -71.0635, 42.3307 ], [ -71.0635, 42.3307 ], [ -71.0635, 42.3307 ], [ -71.0634, 42.3307 ], [ -71.0634, 42.3307 ], [ -71.0634, 42.3307 ], [ -71.0634, 42.3307 ], [ -71.0634, 42.3307 ], [ -71.0634, 42.3307 ], [ -71.0632, 42.3307 ], [ -71.0631, 42.3307 ], [ -71.0627, 42.3306 ], [ -71.0626, 42.3306 ], [ -71.0626, 42.3306 ], [ -71.0626, 42.3306 ], [ -71.0619, 42.3305 ], [ -71.0614, 42.3303 ], [ -71.0613, 42.3303 ], [ -71.0613, 42.3303 ], [ -71.0613, 42.3303 ], [ -71.0612, 42.3303 ], [ -71.0598, 42.3300 ], [ -71.0593, 42.3299 ], [ -71.0591, 42.3290 ], [ -71.0589, 42.3287 ] ] ], [ [ [ -71.0731, 42.2703 ], [ -71.0731, 42.2703 ], [ -71.0733, 42.2702 ], [ -71.0733, 42.2703 ], [ -71.0732, 42.2703 ], [ -71.0732, 42.2703 ], [ -71.0732, 42.2703 ], [ -71.0732, 42.2703 ], [ -71.0731, 42.2703 ] ] ] ] } }, + { "type": "Feature", "properties": { "Name": "South Boston Waterfront", "density": 2.0600 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -71.0434, 42.3529 ], [ -71.0434, 42.3529 ], [ -71.0434, 42.3529 ], [ -71.0434, 42.3529 ], [ -71.0434, 42.3529 ], [ -71.0434, 42.3529 ], [ -71.0434, 42.3529 ], [ -71.0434, 42.3529 ], [ -71.0433, 42.3529 ], [ -71.0433, 42.3529 ], [ -71.0433, 42.3529 ], [ -71.0433, 42.3529 ], [ -71.0433, 42.3529 ], [ -71.0431, 42.3531 ], [ -71.0431, 42.3531 ], [ -71.0431, 42.3531 ], [ -71.0431, 42.3531 ], [ -71.0431, 42.3531 ], [ -71.0431, 42.3531 ], [ -71.0431, 42.3531 ], [ -71.0431, 42.3531 ], [ -71.0430, 42.3531 ], [ -71.0430, 42.3531 ], [ -71.0430, 42.3531 ], [ -71.0430, 42.3531 ], [ -71.0430, 42.3531 ], [ -71.0430, 42.3531 ], [ -71.0430, 42.3531 ], [ -71.0430, 42.3531 ], [ -71.0430, 42.3531 ], [ -71.0429, 42.3531 ], [ -71.0425, 42.3529 ], [ -71.0423, 42.3529 ], [ -71.0423, 42.3529 ], [ -71.0421, 42.3531 ], [ -71.0419, 42.3533 ], [ -71.0417, 42.3536 ], [ -71.0415, 42.3538 ], [ -71.0412, 42.3537 ], [ -71.0409, 42.3536 ], [ -71.0410, 42.3535 ], [ -71.0410, 42.3535 ], [ -71.0411, 42.3535 ], [ -71.0414, 42.3530 ], [ -71.0417, 42.3527 ], [ -71.0418, 42.3526 ], [ -71.0420, 42.3523 ], [ -71.0421, 42.3522 ], [ -71.0423, 42.3520 ], [ -71.0425, 42.3517 ], [ -71.0426, 42.3515 ], [ -71.0427, 42.3514 ], [ -71.0429, 42.3512 ], [ -71.0430, 42.3511 ], [ -71.0430, 42.3510 ], [ -71.0428, 42.3509 ], [ -71.0428, 42.3509 ], [ -71.0428, 42.3509 ], [ -71.0425, 42.3508 ], [ -71.0426, 42.3507 ], [ -71.0426, 42.3507 ], [ -71.0427, 42.3506 ], [ -71.0427, 42.3506 ], [ -71.0427, 42.3506 ], [ -71.0427, 42.3505 ], [ -71.0425, 42.3505 ], [ -71.0423, 42.3504 ], [ -71.0422, 42.3503 ], [ -71.0421, 42.3503 ], [ -71.0420, 42.3504 ], [ -71.0417, 42.3509 ], [ -71.0412, 42.3516 ], [ -71.0407, 42.3522 ], [ -71.0407, 42.3523 ], [ -71.0403, 42.3528 ], [ -71.0400, 42.3531 ], [ -71.0399, 42.3532 ], [ -71.0395, 42.3530 ], [ -71.0395, 42.3530 ], [ -71.0389, 42.3528 ], [ -71.0387, 42.3527 ], [ -71.0387, 42.3527 ], [ -71.0387, 42.3527 ], [ -71.0387, 42.3527 ], [ -71.0387, 42.3527 ], [ -71.0387, 42.3527 ], [ -71.0387, 42.3526 ], [ -71.0387, 42.3526 ], [ -71.0387, 42.3526 ], [ -71.0387, 42.3526 ], [ -71.0387, 42.3526 ], [ -71.0387, 42.3526 ], [ -71.0387, 42.3526 ], [ -71.0387, 42.3526 ], [ -71.0387, 42.3526 ], [ -71.0387, 42.3526 ], [ -71.0387, 42.3526 ], [ -71.0387, 42.3526 ], [ -71.0388, 42.3525 ], [ -71.0389, 42.3523 ], [ -71.0391, 42.3520 ], [ -71.0394, 42.3517 ], [ -71.0398, 42.3512 ], [ -71.0402, 42.3506 ], [ -71.0407, 42.3500 ], [ -71.0407, 42.3499 ], [ -71.0408, 42.3498 ], [ -71.0408, 42.3498 ], [ -71.0407, 42.3497 ], [ -71.0407, 42.3497 ], [ -71.0405, 42.3496 ], [ -71.0404, 42.3496 ], [ -71.0404, 42.3496 ], [ -71.0404, 42.3496 ], [ -71.0403, 42.3496 ], [ -71.0403, 42.3496 ], [ -71.0403, 42.3495 ], [ -71.0403, 42.3495 ], [ -71.0402, 42.3495 ], [ -71.0400, 42.3494 ], [ -71.0399, 42.3494 ], [ -71.0378, 42.3522 ], [ -71.0368, 42.3518 ], [ -71.0387, 42.3492 ], [ -71.0388, 42.3491 ], [ -71.0383, 42.3489 ], [ -71.0379, 42.3488 ], [ -71.0377, 42.3487 ], [ -71.0377, 42.3486 ], [ -71.0375, 42.3486 ], [ -71.0376, 42.3484 ], [ -71.0373, 42.3483 ], [ -71.0372, 42.3483 ], [ -71.0368, 42.3489 ], [ -71.0367, 42.3490 ], [ -71.0365, 42.3492 ], [ -71.0362, 42.3491 ], [ -71.0358, 42.3489 ], [ -71.0356, 42.3492 ], [ -71.0355, 42.3493 ], [ -71.0354, 42.3494 ], [ -71.0353, 42.3495 ], [ -71.0353, 42.3495 ], [ -71.0345, 42.3507 ], [ -71.0342, 42.3510 ], [ -71.0342, 42.3511 ], [ -71.0342, 42.3511 ], [ -71.0342, 42.3511 ], [ -71.0342, 42.3511 ], [ -71.0342, 42.3511 ], [ -71.0341, 42.3511 ], [ -71.0341, 42.3511 ], [ -71.0341, 42.3511 ], [ -71.0341, 42.3511 ], [ -71.0341, 42.3511 ], [ -71.0341, 42.3511 ], [ -71.0339, 42.3510 ], [ -71.0339, 42.3510 ], [ -71.0339, 42.3510 ], [ -71.0339, 42.3510 ], [ -71.0339, 42.3510 ], [ -71.0339, 42.3510 ], [ -71.0339, 42.3510 ], [ -71.0339, 42.3510 ], [ -71.0339, 42.3510 ], [ -71.0339, 42.3509 ], [ -71.0339, 42.3509 ], [ -71.0339, 42.3509 ], [ -71.0339, 42.3509 ], [ -71.0341, 42.3507 ], [ -71.0340, 42.3507 ], [ -71.0340, 42.3507 ], [ -71.0337, 42.3506 ], [ -71.0337, 42.3506 ], [ -71.0336, 42.3506 ], [ -71.0335, 42.3508 ], [ -71.0334, 42.3508 ], [ -71.0334, 42.3508 ], [ -71.0332, 42.3507 ], [ -71.0332, 42.3507 ], [ -71.0332, 42.3506 ], [ -71.0342, 42.3493 ], [ -71.0347, 42.3486 ], [ -71.0348, 42.3485 ], [ -71.0338, 42.3481 ], [ -71.0321, 42.3503 ], [ -71.0275, 42.3484 ], [ -71.0269, 42.3481 ], [ -71.0262, 42.3479 ], [ -71.0261, 42.3480 ], [ -71.0254, 42.3478 ], [ -71.0245, 42.3474 ], [ -71.0236, 42.3470 ], [ -71.0233, 42.3469 ], [ -71.0232, 42.3469 ], [ -71.0232, 42.3464 ], [ -71.0232, 42.3457 ], [ -71.0232, 42.3457 ], [ -71.0232, 42.3457 ], [ -71.0232, 42.3457 ], [ -71.0232, 42.3457 ], [ -71.0232, 42.3457 ], [ -71.0232, 42.3457 ], [ -71.0232, 42.3457 ], [ -71.0232, 42.3457 ], [ -71.0232, 42.3457 ], [ -71.0232, 42.3456 ], [ -71.0232, 42.3456 ], [ -71.0232, 42.3456 ], [ -71.0232, 42.3456 ], [ -71.0232, 42.3456 ], [ -71.0232, 42.3456 ], [ -71.0232, 42.3456 ], [ -71.0233, 42.3456 ], [ -71.0236, 42.3456 ], [ -71.0241, 42.3456 ], [ -71.0249, 42.3456 ], [ -71.0260, 42.3456 ], [ -71.0262, 42.3456 ], [ -71.0264, 42.3456 ], [ -71.0265, 42.3456 ], [ -71.0265, 42.3452 ], [ -71.0265, 42.3450 ], [ -71.0262, 42.3450 ], [ -71.0259, 42.3450 ], [ -71.0259, 42.3449 ], [ -71.0259, 42.3449 ], [ -71.0259, 42.3446 ], [ -71.0257, 42.3446 ], [ -71.0254, 42.3446 ], [ -71.0254, 42.3444 ], [ -71.0250, 42.3444 ], [ -71.0241, 42.3444 ], [ -71.0239, 42.3444 ], [ -71.0234, 42.3444 ], [ -71.0233, 42.3444 ], [ -71.0227, 42.3444 ], [ -71.0222, 42.3444 ], [ -71.0219, 42.3445 ], [ -71.0219, 42.3445 ], [ -71.0219, 42.3445 ], [ -71.0219, 42.3444 ], [ -71.0219, 42.3444 ], [ -71.0219, 42.3444 ], [ -71.0219, 42.3444 ], [ -71.0219, 42.3444 ], [ -71.0219, 42.3444 ], [ -71.0219, 42.3444 ], [ -71.0219, 42.3444 ], [ -71.0218, 42.3444 ], [ -71.0218, 42.3444 ], [ -71.0218, 42.3444 ], [ -71.0218, 42.3444 ], [ -71.0218, 42.3444 ], [ -71.0218, 42.3444 ], [ -71.0218, 42.3443 ], [ -71.0218, 42.3441 ], [ -71.0218, 42.3438 ], [ -71.0218, 42.3437 ], [ -71.0218, 42.3436 ], [ -71.0218, 42.3435 ], [ -71.0218, 42.3435 ], [ -71.0218, 42.3435 ], [ -71.0218, 42.3435 ], [ -71.0218, 42.3435 ], [ -71.0218, 42.3435 ], [ -71.0218, 42.3435 ], [ -71.0218, 42.3435 ], [ -71.0218, 42.3435 ], [ -71.0218, 42.3435 ], [ -71.0218, 42.3435 ], [ -71.0219, 42.3435 ], [ -71.0219, 42.3435 ], [ -71.0219, 42.3435 ], [ -71.0219, 42.3435 ], [ -71.0219, 42.3435 ], [ -71.0221, 42.3435 ], [ -71.0225, 42.3435 ], [ -71.0229, 42.3435 ], [ -71.0232, 42.3435 ], [ -71.0240, 42.3434 ], [ -71.0249, 42.3434 ], [ -71.0260, 42.3434 ], [ -71.0270, 42.3434 ], [ -71.0278, 42.3434 ], [ -71.0280, 42.3434 ], [ -71.0291, 42.3434 ], [ -71.0301, 42.3433 ], [ -71.0308, 42.3433 ], [ -71.0314, 42.3433 ], [ -71.0324, 42.3433 ], [ -71.0330, 42.3433 ], [ -71.0334, 42.3433 ], [ -71.0341, 42.3433 ], [ -71.0342, 42.3433 ], [ -71.0342, 42.3432 ], [ -71.0343, 42.3432 ], [ -71.0343, 42.3433 ], [ -71.0349, 42.3433 ], [ -71.0353, 42.3433 ], [ -71.0358, 42.3432 ], [ -71.0361, 42.3432 ], [ -71.0364, 42.3432 ], [ -71.0368, 42.3432 ], [ -71.0371, 42.3432 ], [ -71.0373, 42.3433 ], [ -71.0373, 42.3433 ], [ -71.0373, 42.3433 ], [ -71.0374, 42.3434 ], [ -71.0375, 42.3434 ], [ -71.0376, 42.3435 ], [ -71.0376, 42.3435 ], [ -71.0376, 42.3435 ], [ -71.0377, 42.3436 ], [ -71.0377, 42.3436 ], [ -71.0377, 42.3436 ], [ -71.0377, 42.3436 ], [ -71.0377, 42.3436 ], [ -71.0377, 42.3436 ], [ -71.0377, 42.3436 ], [ -71.0378, 42.3436 ], [ -71.0378, 42.3436 ], [ -71.0382, 42.3436 ], [ -71.0387, 42.3436 ], [ -71.0386, 42.3430 ], [ -71.0386, 42.3428 ], [ -71.0387, 42.3428 ], [ -71.0387, 42.3427 ], [ -71.0388, 42.3426 ], [ -71.0389, 42.3424 ], [ -71.0391, 42.3423 ], [ -71.0392, 42.3421 ], [ -71.0394, 42.3419 ], [ -71.0396, 42.3417 ], [ -71.0396, 42.3416 ], [ -71.0398, 42.3415 ], [ -71.0400, 42.3413 ], [ -71.0403, 42.3411 ], [ -71.0403, 42.3410 ], [ -71.0403, 42.3410 ], [ -71.0403, 42.3410 ], [ -71.0404, 42.3410 ], [ -71.0404, 42.3410 ], [ -71.0404, 42.3409 ], [ -71.0404, 42.3409 ], [ -71.0405, 42.3408 ], [ -71.0405, 42.3408 ], [ -71.0405, 42.3408 ], [ -71.0406, 42.3407 ], [ -71.0406, 42.3406 ], [ -71.0407, 42.3406 ], [ -71.0407, 42.3405 ], [ -71.0407, 42.3405 ], [ -71.0407, 42.3405 ], [ -71.0407, 42.3404 ], [ -71.0407, 42.3404 ], [ -71.0407, 42.3404 ], [ -71.0407, 42.3404 ], [ -71.0407, 42.3403 ], [ -71.0407, 42.3403 ], [ -71.0407, 42.3403 ], [ -71.0407, 42.3403 ], [ -71.0407, 42.3403 ], [ -71.0408, 42.3402 ], [ -71.0408, 42.3402 ], [ -71.0408, 42.3402 ], [ -71.0409, 42.3401 ], [ -71.0409, 42.3401 ], [ -71.0409, 42.3401 ], [ -71.0410, 42.3401 ], [ -71.0411, 42.3400 ], [ -71.0411, 42.3400 ], [ -71.0411, 42.3400 ], [ -71.0412, 42.3400 ], [ -71.0413, 42.3399 ], [ -71.0413, 42.3398 ], [ -71.0413, 42.3398 ], [ -71.0414, 42.3398 ], [ -71.0414, 42.3397 ], [ -71.0414, 42.3397 ], [ -71.0415, 42.3397 ], [ -71.0415, 42.3397 ], [ -71.0415, 42.3397 ], [ -71.0416, 42.3396 ], [ -71.0416, 42.3396 ], [ -71.0417, 42.3396 ], [ -71.0417, 42.3396 ], [ -71.0418, 42.3396 ], [ -71.0418, 42.3396 ], [ -71.0419, 42.3396 ], [ -71.0419, 42.3396 ], [ -71.0419, 42.3396 ], [ -71.0419, 42.3396 ], [ -71.0419, 42.3395 ], [ -71.0419, 42.3395 ], [ -71.0419, 42.3395 ], [ -71.0419, 42.3396 ], [ -71.0420, 42.3396 ], [ -71.0420, 42.3395 ], [ -71.0420, 42.3395 ], [ -71.0420, 42.3395 ], [ -71.0419, 42.3395 ], [ -71.0419, 42.3394 ], [ -71.0419, 42.3394 ], [ -71.0419, 42.3394 ], [ -71.0419, 42.3394 ], [ -71.0419, 42.3394 ], [ -71.0419, 42.3394 ], [ -71.0419, 42.3394 ], [ -71.0418, 42.3394 ], [ -71.0418, 42.3394 ], [ -71.0418, 42.3394 ], [ -71.0418, 42.3394 ], [ -71.0417, 42.3394 ], [ -71.0417, 42.3394 ], [ -71.0417, 42.3394 ], [ -71.0416, 42.3394 ], [ -71.0416, 42.3394 ], [ -71.0416, 42.3394 ], [ -71.0416, 42.3394 ], [ -71.0415, 42.3394 ], [ -71.0415, 42.3394 ], [ -71.0415, 42.3394 ], [ -71.0415, 42.3394 ], [ -71.0414, 42.3393 ], [ -71.0414, 42.3393 ], [ -71.0414, 42.3392 ], [ -71.0413, 42.3392 ], [ -71.0413, 42.3392 ], [ -71.0425, 42.3380 ], [ -71.0444, 42.3379 ], [ -71.0455, 42.3387 ], [ -71.0470, 42.3397 ], [ -71.0486, 42.3407 ], [ -71.0501, 42.3416 ], [ -71.0517, 42.3426 ], [ -71.0522, 42.3430 ], [ -71.0528, 42.3424 ], [ -71.0529, 42.3425 ], [ -71.0572, 42.3435 ], [ -71.0571, 42.3451 ], [ -71.0570, 42.3455 ], [ -71.0570, 42.3455 ], [ -71.0569, 42.3455 ], [ -71.0567, 42.3456 ], [ -71.0565, 42.3456 ], [ -71.0563, 42.3457 ], [ -71.0560, 42.3457 ], [ -71.0558, 42.3457 ], [ -71.0549, 42.3457 ], [ -71.0547, 42.3458 ], [ -71.0547, 42.3459 ], [ -71.0546, 42.3460 ], [ -71.0545, 42.3461 ], [ -71.0537, 42.3473 ], [ -71.0523, 42.3491 ], [ -71.0517, 42.3498 ], [ -71.0515, 42.3501 ], [ -71.0515, 42.3501 ], [ -71.0508, 42.3510 ], [ -71.0503, 42.3516 ], [ -71.0491, 42.3532 ], [ -71.0485, 42.3540 ], [ -71.0483, 42.3541 ], [ -71.0481, 42.3544 ], [ -71.0478, 42.3545 ], [ -71.0474, 42.3547 ], [ -71.0473, 42.3548 ], [ -71.0472, 42.3548 ], [ -71.0470, 42.3549 ], [ -71.0469, 42.3549 ], [ -71.0468, 42.3549 ], [ -71.0467, 42.3550 ], [ -71.0466, 42.3550 ], [ -71.0465, 42.3550 ], [ -71.0464, 42.3550 ], [ -71.0463, 42.3551 ], [ -71.0462, 42.3551 ], [ -71.0460, 42.3551 ], [ -71.0459, 42.3551 ], [ -71.0458, 42.3551 ], [ -71.0457, 42.3551 ], [ -71.0455, 42.3551 ], [ -71.0455, 42.3551 ], [ -71.0454, 42.3551 ], [ -71.0453, 42.3551 ], [ -71.0452, 42.3551 ], [ -71.0451, 42.3551 ], [ -71.0450, 42.3550 ], [ -71.0448, 42.3550 ], [ -71.0448, 42.3550 ], [ -71.0446, 42.3550 ], [ -71.0445, 42.3550 ], [ -71.0444, 42.3550 ], [ -71.0443, 42.3549 ], [ -71.0443, 42.3549 ], [ -71.0442, 42.3549 ], [ -71.0442, 42.3549 ], [ -71.0441, 42.3548 ], [ -71.0440, 42.3548 ], [ -71.0439, 42.3548 ], [ -71.0436, 42.3547 ], [ -71.0436, 42.3546 ], [ -71.0437, 42.3545 ], [ -71.0437, 42.3544 ], [ -71.0439, 42.3542 ], [ -71.0440, 42.3541 ], [ -71.0440, 42.3540 ], [ -71.0441, 42.3539 ], [ -71.0441, 42.3538 ], [ -71.0443, 42.3536 ], [ -71.0444, 42.3534 ], [ -71.0444, 42.3533 ], [ -71.0439, 42.3531 ], [ -71.0435, 42.3529 ], [ -71.0435, 42.3529 ], [ -71.0434, 42.3529 ], [ -71.0434, 42.3529 ], [ -71.0434, 42.3529 ] ] ] } }, + { "type": "Feature", "properties": { "Name": "South Boston", "density": 5.3300 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -71.0610, 42.3428 ], [ -71.0608, 42.3427 ], [ -71.0608, 42.3428 ], [ -71.0604, 42.3429 ], [ -71.0602, 42.3430 ], [ -71.0601, 42.3439 ], [ -71.0601, 42.3441 ], [ -71.0596, 42.3443 ], [ -71.0595, 42.3445 ], [ -71.0593, 42.3446 ], [ -71.0593, 42.3446 ], [ -71.0593, 42.3446 ], [ -71.0592, 42.3447 ], [ -71.0591, 42.3447 ], [ -71.0591, 42.3447 ], [ -71.0591, 42.3447 ], [ -71.0589, 42.3448 ], [ -71.0588, 42.3449 ], [ -71.0586, 42.3450 ], [ -71.0586, 42.3450 ], [ -71.0585, 42.3451 ], [ -71.0580, 42.3453 ], [ -71.0577, 42.3454 ], [ -71.0573, 42.3454 ], [ -71.0572, 42.3455 ], [ -71.0571, 42.3455 ], [ -71.0571, 42.3455 ], [ -71.0570, 42.3455 ], [ -71.0570, 42.3455 ], [ -71.0571, 42.3451 ], [ -71.0572, 42.3435 ], [ -71.0529, 42.3425 ], [ -71.0528, 42.3424 ], [ -71.0522, 42.3430 ], [ -71.0517, 42.3426 ], [ -71.0501, 42.3416 ], [ -71.0486, 42.3407 ], [ -71.0470, 42.3397 ], [ -71.0455, 42.3387 ], [ -71.0444, 42.3379 ], [ -71.0425, 42.3380 ], [ -71.0413, 42.3392 ], [ -71.0412, 42.3391 ], [ -71.0412, 42.3391 ], [ -71.0412, 42.3391 ], [ -71.0411, 42.3391 ], [ -71.0411, 42.3391 ], [ -71.0411, 42.3390 ], [ -71.0411, 42.3390 ], [ -71.0410, 42.3390 ], [ -71.0410, 42.3390 ], [ -71.0410, 42.3390 ], [ -71.0410, 42.3390 ], [ -71.0410, 42.3390 ], [ -71.0410, 42.3390 ], [ -71.0409, 42.3390 ], [ -71.0409, 42.3390 ], [ -71.0409, 42.3391 ], [ -71.0409, 42.3391 ], [ -71.0409, 42.3391 ], [ -71.0409, 42.3391 ], [ -71.0409, 42.3391 ], [ -71.0409, 42.3391 ], [ -71.0409, 42.3391 ], [ -71.0408, 42.3391 ], [ -71.0408, 42.3391 ], [ -71.0408, 42.3391 ], [ -71.0408, 42.3392 ], [ -71.0408, 42.3392 ], [ -71.0408, 42.3392 ], [ -71.0408, 42.3392 ], [ -71.0408, 42.3392 ], [ -71.0408, 42.3392 ], [ -71.0408, 42.3392 ], [ -71.0408, 42.3393 ], [ -71.0407, 42.3393 ], [ -71.0407, 42.3393 ], [ -71.0407, 42.3393 ], [ -71.0407, 42.3394 ], [ -71.0406, 42.3394 ], [ -71.0405, 42.3394 ], [ -71.0404, 42.3395 ], [ -71.0404, 42.3395 ], [ -71.0403, 42.3395 ], [ -71.0403, 42.3395 ], [ -71.0403, 42.3396 ], [ -71.0403, 42.3396 ], [ -71.0403, 42.3396 ], [ -71.0403, 42.3396 ], [ -71.0403, 42.3396 ], [ -71.0402, 42.3396 ], [ -71.0402, 42.3396 ], [ -71.0402, 42.3396 ], [ -71.0402, 42.3396 ], [ -71.0402, 42.3396 ], [ -71.0402, 42.3396 ], [ -71.0402, 42.3396 ], [ -71.0402, 42.3395 ], [ -71.0402, 42.3395 ], [ -71.0401, 42.3395 ], [ -71.0401, 42.3395 ], [ -71.0401, 42.3395 ], [ -71.0401, 42.3395 ], [ -71.0401, 42.3395 ], [ -71.0401, 42.3395 ], [ -71.0401, 42.3395 ], [ -71.0401, 42.3394 ], [ -71.0401, 42.3394 ], [ -71.0400, 42.3393 ], [ -71.0400, 42.3393 ], [ -71.0400, 42.3392 ], [ -71.0400, 42.3392 ], [ -71.0400, 42.3391 ], [ -71.0400, 42.3391 ], [ -71.0400, 42.3391 ], [ -71.0401, 42.3391 ], [ -71.0400, 42.3391 ], [ -71.0400, 42.3391 ], [ -71.0400, 42.3390 ], [ -71.0400, 42.3389 ], [ -71.0400, 42.3389 ], [ -71.0400, 42.3388 ], [ -71.0400, 42.3387 ], [ -71.0400, 42.3387 ], [ -71.0400, 42.3386 ], [ -71.0400, 42.3386 ], [ -71.0400, 42.3386 ], [ -71.0400, 42.3385 ], [ -71.0400, 42.3385 ], [ -71.0400, 42.3385 ], [ -71.0400, 42.3385 ], [ -71.0400, 42.3384 ], [ -71.0400, 42.3384 ], [ -71.0400, 42.3384 ], [ -71.0400, 42.3384 ], [ -71.0400, 42.3384 ], [ -71.0400, 42.3384 ], [ -71.0400, 42.3384 ], [ -71.0400, 42.3384 ], [ -71.0400, 42.3384 ], [ -71.0400, 42.3384 ], [ -71.0399, 42.3384 ], [ -71.0399, 42.3384 ], [ -71.0399, 42.3384 ], [ -71.0399, 42.3384 ], [ -71.0399, 42.3384 ], [ -71.0399, 42.3384 ], [ -71.0399, 42.3384 ], [ -71.0399, 42.3384 ], [ -71.0399, 42.3384 ], [ -71.0399, 42.3384 ], [ -71.0399, 42.3384 ], [ -71.0399, 42.3384 ], [ -71.0399, 42.3384 ], [ -71.0399, 42.3384 ], [ -71.0399, 42.3384 ], [ -71.0399, 42.3384 ], [ -71.0399, 42.3385 ], [ -71.0399, 42.3385 ], [ -71.0399, 42.3387 ], [ -71.0399, 42.3388 ], [ -71.0399, 42.3389 ], [ -71.0399, 42.3390 ], [ -71.0399, 42.3391 ], [ -71.0399, 42.3392 ], [ -71.0399, 42.3392 ], [ -71.0398, 42.3392 ], [ -71.0398, 42.3392 ], [ -71.0398, 42.3392 ], [ -71.0398, 42.3393 ], [ -71.0398, 42.3393 ], [ -71.0398, 42.3394 ], [ -71.0398, 42.3394 ], [ -71.0398, 42.3395 ], [ -71.0398, 42.3396 ], [ -71.0398, 42.3396 ], [ -71.0398, 42.3397 ], [ -71.0398, 42.3398 ], [ -71.0398, 42.3398 ], [ -71.0398, 42.3398 ], [ -71.0398, 42.3398 ], [ -71.0398, 42.3398 ], [ -71.0398, 42.3399 ], [ -71.0398, 42.3399 ], [ -71.0398, 42.3399 ], [ -71.0398, 42.3399 ], [ -71.0398, 42.3399 ], [ -71.0398, 42.3399 ], [ -71.0398, 42.3399 ], [ -71.0398, 42.3399 ], [ -71.0398, 42.3399 ], [ -71.0398, 42.3399 ], [ -71.0398, 42.3399 ], [ -71.0398, 42.3399 ], [ -71.0398, 42.3399 ], [ -71.0398, 42.3399 ], [ -71.0398, 42.3399 ], [ -71.0398, 42.3399 ], [ -71.0398, 42.3399 ], [ -71.0397, 42.3399 ], [ -71.0397, 42.3399 ], [ -71.0397, 42.3399 ], [ -71.0397, 42.3399 ], [ -71.0397, 42.3399 ], [ -71.0397, 42.3399 ], [ -71.0397, 42.3399 ], [ -71.0396, 42.3399 ], [ -71.0396, 42.3399 ], [ -71.0396, 42.3399 ], [ -71.0395, 42.3399 ], [ -71.0395, 42.3399 ], [ -71.0393, 42.3401 ], [ -71.0393, 42.3404 ], [ -71.0392, 42.3405 ], [ -71.0392, 42.3406 ], [ -71.0391, 42.3409 ], [ -71.0390, 42.3411 ], [ -71.0390, 42.3414 ], [ -71.0389, 42.3415 ], [ -71.0389, 42.3415 ], [ -71.0389, 42.3416 ], [ -71.0389, 42.3416 ], [ -71.0387, 42.3415 ], [ -71.0385, 42.3416 ], [ -71.0382, 42.3416 ], [ -71.0380, 42.3416 ], [ -71.0379, 42.3416 ], [ -71.0379, 42.3415 ], [ -71.0378, 42.3415 ], [ -71.0377, 42.3415 ], [ -71.0377, 42.3415 ], [ -71.0376, 42.3415 ], [ -71.0376, 42.3415 ], [ -71.0376, 42.3415 ], [ -71.0375, 42.3415 ], [ -71.0374, 42.3415 ], [ -71.0374, 42.3415 ], [ -71.0373, 42.3415 ], [ -71.0373, 42.3415 ], [ -71.0373, 42.3415 ], [ -71.0372, 42.3415 ], [ -71.0371, 42.3415 ], [ -71.0371, 42.3415 ], [ -71.0371, 42.3415 ], [ -71.0370, 42.3415 ], [ -71.0369, 42.3415 ], [ -71.0369, 42.3415 ], [ -71.0368, 42.3416 ], [ -71.0368, 42.3416 ], [ -71.0366, 42.3416 ], [ -71.0366, 42.3416 ], [ -71.0365, 42.3416 ], [ -71.0364, 42.3416 ], [ -71.0364, 42.3416 ], [ -71.0364, 42.3416 ], [ -71.0363, 42.3416 ], [ -71.0362, 42.3416 ], [ -71.0362, 42.3416 ], [ -71.0362, 42.3416 ], [ -71.0361, 42.3416 ], [ -71.0361, 42.3416 ], [ -71.0361, 42.3416 ], [ -71.0360, 42.3416 ], [ -71.0360, 42.3416 ], [ -71.0360, 42.3416 ], [ -71.0360, 42.3416 ], [ -71.0360, 42.3416 ], [ -71.0360, 42.3416 ], [ -71.0360, 42.3417 ], [ -71.0360, 42.3417 ], [ -71.0360, 42.3417 ], [ -71.0359, 42.3417 ], [ -71.0359, 42.3417 ], [ -71.0359, 42.3417 ], [ -71.0359, 42.3417 ], [ -71.0359, 42.3417 ], [ -71.0359, 42.3417 ], [ -71.0359, 42.3417 ], [ -71.0359, 42.3417 ], [ -71.0359, 42.3417 ], [ -71.0359, 42.3417 ], [ -71.0359, 42.3417 ], [ -71.0359, 42.3417 ], [ -71.0359, 42.3417 ], [ -71.0359, 42.3417 ], [ -71.0359, 42.3417 ], [ -71.0358, 42.3417 ], [ -71.0355, 42.3417 ], [ -71.0355, 42.3417 ], [ -71.0355, 42.3417 ], [ -71.0355, 42.3417 ], [ -71.0354, 42.3416 ], [ -71.0354, 42.3416 ], [ -71.0353, 42.3416 ], [ -71.0351, 42.3416 ], [ -71.0351, 42.3415 ], [ -71.0351, 42.3414 ], [ -71.0351, 42.3412 ], [ -71.0351, 42.3408 ], [ -71.0351, 42.3407 ], [ -71.0351, 42.3407 ], [ -71.0351, 42.3406 ], [ -71.0351, 42.3405 ], [ -71.0351, 42.3404 ], [ -71.0351, 42.3404 ], [ -71.0351, 42.3404 ], [ -71.0351, 42.3404 ], [ -71.0351, 42.3404 ], [ -71.0351, 42.3404 ], [ -71.0351, 42.3404 ], [ -71.0351, 42.3404 ], [ -71.0351, 42.3404 ], [ -71.0350, 42.3404 ], [ -71.0350, 42.3403 ], [ -71.0350, 42.3403 ], [ -71.0350, 42.3403 ], [ -71.0350, 42.3403 ], [ -71.0350, 42.3403 ], [ -71.0350, 42.3403 ], [ -71.0350, 42.3403 ], [ -71.0350, 42.3403 ], [ -71.0350, 42.3403 ], [ -71.0350, 42.3403 ], [ -71.0350, 42.3403 ], [ -71.0350, 42.3403 ], [ -71.0350, 42.3403 ], [ -71.0350, 42.3403 ], [ -71.0350, 42.3403 ], [ -71.0350, 42.3403 ], [ -71.0350, 42.3403 ], [ -71.0350, 42.3403 ], [ -71.0350, 42.3403 ], [ -71.0350, 42.3403 ], [ -71.0350, 42.3403 ], [ -71.0350, 42.3403 ], [ -71.0350, 42.3403 ], [ -71.0350, 42.3403 ], [ -71.0350, 42.3403 ], [ -71.0350, 42.3403 ], [ -71.0349, 42.3403 ], [ -71.0349, 42.3403 ], [ -71.0349, 42.3403 ], [ -71.0349, 42.3403 ], [ -71.0349, 42.3403 ], [ -71.0349, 42.3403 ], [ -71.0348, 42.3403 ], [ -71.0347, 42.3403 ], [ -71.0347, 42.3403 ], [ -71.0346, 42.3403 ], [ -71.0346, 42.3403 ], [ -71.0346, 42.3404 ], [ -71.0344, 42.3404 ], [ -71.0343, 42.3404 ], [ -71.0342, 42.3404 ], [ -71.0342, 42.3404 ], [ -71.0339, 42.3404 ], [ -71.0339, 42.3404 ], [ -71.0339, 42.3403 ], [ -71.0337, 42.3403 ], [ -71.0337, 42.3404 ], [ -71.0337, 42.3406 ], [ -71.0337, 42.3406 ], [ -71.0337, 42.3407 ], [ -71.0337, 42.3410 ], [ -71.0337, 42.3415 ], [ -71.0334, 42.3415 ], [ -71.0334, 42.3415 ], [ -71.0324, 42.3415 ], [ -71.0324, 42.3415 ], [ -71.0321, 42.3415 ], [ -71.0320, 42.3415 ], [ -71.0320, 42.3415 ], [ -71.0318, 42.3415 ], [ -71.0315, 42.3415 ], [ -71.0314, 42.3415 ], [ -71.0311, 42.3415 ], [ -71.0311, 42.3415 ], [ -71.0309, 42.3415 ], [ -71.0309, 42.3415 ], [ -71.0307, 42.3415 ], [ -71.0307, 42.3415 ], [ -71.0307, 42.3415 ], [ -71.0307, 42.3415 ], [ -71.0307, 42.3415 ], [ -71.0307, 42.3415 ], [ -71.0307, 42.3415 ], [ -71.0306, 42.3415 ], [ -71.0306, 42.3415 ], [ -71.0306, 42.3415 ], [ -71.0305, 42.3415 ], [ -71.0305, 42.3415 ], [ -71.0305, 42.3415 ], [ -71.0305, 42.3415 ], [ -71.0305, 42.3415 ], [ -71.0305, 42.3415 ], [ -71.0305, 42.3415 ], [ -71.0305, 42.3415 ], [ -71.0305, 42.3415 ], [ -71.0305, 42.3415 ], [ -71.0305, 42.3415 ], [ -71.0305, 42.3415 ], [ -71.0305, 42.3415 ], [ -71.0305, 42.3415 ], [ -71.0305, 42.3415 ], [ -71.0305, 42.3415 ], [ -71.0305, 42.3415 ], [ -71.0305, 42.3415 ], [ -71.0305, 42.3414 ], [ -71.0305, 42.3414 ], [ -71.0305, 42.3414 ], [ -71.0305, 42.3414 ], [ -71.0305, 42.3414 ], [ -71.0305, 42.3414 ], [ -71.0305, 42.3414 ], [ -71.0305, 42.3414 ], [ -71.0305, 42.3414 ], [ -71.0305, 42.3414 ], [ -71.0305, 42.3414 ], [ -71.0305, 42.3414 ], [ -71.0304, 42.3414 ], [ -71.0304, 42.3414 ], [ -71.0304, 42.3414 ], [ -71.0304, 42.3414 ], [ -71.0304, 42.3414 ], [ -71.0304, 42.3414 ], [ -71.0304, 42.3414 ], [ -71.0304, 42.3414 ], [ -71.0304, 42.3414 ], [ -71.0304, 42.3414 ], [ -71.0304, 42.3414 ], [ -71.0304, 42.3414 ], [ -71.0304, 42.3414 ], [ -71.0304, 42.3414 ], [ -71.0304, 42.3413 ], [ -71.0304, 42.3412 ], [ -71.0304, 42.3412 ], [ -71.0304, 42.3412 ], [ -71.0304, 42.3412 ], [ -71.0304, 42.3412 ], [ -71.0304, 42.3411 ], [ -71.0304, 42.3411 ], [ -71.0304, 42.3411 ], [ -71.0304, 42.3411 ], [ -71.0304, 42.3411 ], [ -71.0304, 42.3411 ], [ -71.0304, 42.3411 ], [ -71.0304, 42.3411 ], [ -71.0304, 42.3411 ], [ -71.0304, 42.3411 ], [ -71.0304, 42.3411 ], [ -71.0304, 42.3411 ], [ -71.0304, 42.3411 ], [ -71.0304, 42.3411 ], [ -71.0304, 42.3411 ], [ -71.0304, 42.3410 ], [ -71.0304, 42.3410 ], [ -71.0304, 42.3410 ], [ -71.0304, 42.3410 ], [ -71.0304, 42.3410 ], [ -71.0304, 42.3410 ], [ -71.0304, 42.3409 ], [ -71.0304, 42.3409 ], [ -71.0304, 42.3409 ], [ -71.0304, 42.3409 ], [ -71.0304, 42.3409 ], [ -71.0304, 42.3408 ], [ -71.0304, 42.3407 ], [ -71.0304, 42.3406 ], [ -71.0304, 42.3404 ], [ -71.0304, 42.3403 ], [ -71.0304, 42.3402 ], [ -71.0302, 42.3402 ], [ -71.0299, 42.3402 ], [ -71.0296, 42.3402 ], [ -71.0294, 42.3402 ], [ -71.0294, 42.3402 ], [ -71.0294, 42.3403 ], [ -71.0294, 42.3404 ], [ -71.0294, 42.3405 ], [ -71.0294, 42.3406 ], [ -71.0294, 42.3407 ], [ -71.0294, 42.3408 ], [ -71.0294, 42.3409 ], [ -71.0294, 42.3412 ], [ -71.0294, 42.3414 ], [ -71.0294, 42.3415 ], [ -71.0293, 42.3415 ], [ -71.0293, 42.3416 ], [ -71.0293, 42.3416 ], [ -71.0293, 42.3416 ], [ -71.0293, 42.3416 ], [ -71.0293, 42.3416 ], [ -71.0293, 42.3416 ], [ -71.0293, 42.3416 ], [ -71.0292, 42.3417 ], [ -71.0292, 42.3417 ], [ -71.0292, 42.3417 ], [ -71.0292, 42.3417 ], [ -71.0292, 42.3417 ], [ -71.0292, 42.3417 ], [ -71.0292, 42.3417 ], [ -71.0291, 42.3417 ], [ -71.0290, 42.3417 ], [ -71.0290, 42.3417 ], [ -71.0290, 42.3417 ], [ -71.0289, 42.3417 ], [ -71.0289, 42.3417 ], [ -71.0287, 42.3417 ], [ -71.0281, 42.3417 ], [ -71.0280, 42.3417 ], [ -71.0279, 42.3417 ], [ -71.0278, 42.3417 ], [ -71.0277, 42.3417 ], [ -71.0276, 42.3416 ], [ -71.0276, 42.3416 ], [ -71.0276, 42.3416 ], [ -71.0276, 42.3416 ], [ -71.0276, 42.3416 ], [ -71.0276, 42.3416 ], [ -71.0276, 42.3416 ], [ -71.0276, 42.3415 ], [ -71.0276, 42.3415 ], [ -71.0276, 42.3415 ], [ -71.0276, 42.3415 ], [ -71.0276, 42.3414 ], [ -71.0276, 42.3414 ], [ -71.0276, 42.3414 ], [ -71.0276, 42.3414 ], [ -71.0276, 42.3414 ], [ -71.0275, 42.3414 ], [ -71.0275, 42.3414 ], [ -71.0275, 42.3414 ], [ -71.0275, 42.3414 ], [ -71.0275, 42.3414 ], [ -71.0275, 42.3414 ], [ -71.0275, 42.3414 ], [ -71.0275, 42.3414 ], [ -71.0275, 42.3414 ], [ -71.0275, 42.3414 ], [ -71.0275, 42.3414 ], [ -71.0275, 42.3414 ], [ -71.0275, 42.3414 ], [ -71.0275, 42.3414 ], [ -71.0275, 42.3414 ], [ -71.0274, 42.3414 ], [ -71.0274, 42.3414 ], [ -71.0274, 42.3414 ], [ -71.0274, 42.3414 ], [ -71.0274, 42.3414 ], [ -71.0274, 42.3414 ], [ -71.0274, 42.3414 ], [ -71.0274, 42.3414 ], [ -71.0274, 42.3414 ], [ -71.0274, 42.3414 ], [ -71.0273, 42.3414 ], [ -71.0273, 42.3414 ], [ -71.0273, 42.3414 ], [ -71.0273, 42.3414 ], [ -71.0273, 42.3414 ], [ -71.0272, 42.3414 ], [ -71.0272, 42.3414 ], [ -71.0272, 42.3414 ], [ -71.0272, 42.3414 ], [ -71.0272, 42.3414 ], [ -71.0272, 42.3414 ], [ -71.0272, 42.3414 ], [ -71.0272, 42.3414 ], [ -71.0271, 42.3413 ], [ -71.0271, 42.3413 ], [ -71.0271, 42.3413 ], [ -71.0271, 42.3413 ], [ -71.0271, 42.3413 ], [ -71.0271, 42.3413 ], [ -71.0271, 42.3413 ], [ -71.0271, 42.3413 ], [ -71.0271, 42.3413 ], [ -71.0270, 42.3413 ], [ -71.0270, 42.3413 ], [ -71.0270, 42.3413 ], [ -71.0270, 42.3413 ], [ -71.0270, 42.3413 ], [ -71.0269, 42.3413 ], [ -71.0269, 42.3413 ], [ -71.0269, 42.3413 ], [ -71.0268, 42.3413 ], [ -71.0267, 42.3413 ], [ -71.0266, 42.3413 ], [ -71.0266, 42.3413 ], [ -71.0265, 42.3413 ], [ -71.0264, 42.3413 ], [ -71.0264, 42.3413 ], [ -71.0264, 42.3413 ], [ -71.0264, 42.3413 ], [ -71.0264, 42.3413 ], [ -71.0264, 42.3413 ], [ -71.0264, 42.3413 ], [ -71.0264, 42.3413 ], [ -71.0264, 42.3413 ], [ -71.0264, 42.3413 ], [ -71.0264, 42.3413 ], [ -71.0264, 42.3413 ], [ -71.0264, 42.3413 ], [ -71.0263, 42.3413 ], [ -71.0263, 42.3414 ], [ -71.0263, 42.3414 ], [ -71.0263, 42.3414 ], [ -71.0263, 42.3414 ], [ -71.0263, 42.3415 ], [ -71.0263, 42.3415 ], [ -71.0263, 42.3415 ], [ -71.0263, 42.3415 ], [ -71.0263, 42.3415 ], [ -71.0263, 42.3415 ], [ -71.0263, 42.3415 ], [ -71.0263, 42.3415 ], [ -71.0263, 42.3415 ], [ -71.0263, 42.3415 ], [ -71.0262, 42.3415 ], [ -71.0262, 42.3415 ], [ -71.0261, 42.3416 ], [ -71.0261, 42.3416 ], [ -71.0261, 42.3416 ], [ -71.0261, 42.3416 ], [ -71.0260, 42.3416 ], [ -71.0260, 42.3416 ], [ -71.0260, 42.3416 ], [ -71.0259, 42.3416 ], [ -71.0257, 42.3416 ], [ -71.0256, 42.3416 ], [ -71.0254, 42.3416 ], [ -71.0253, 42.3415 ], [ -71.0252, 42.3415 ], [ -71.0252, 42.3415 ], [ -71.0252, 42.3415 ], [ -71.0252, 42.3415 ], [ -71.0252, 42.3415 ], [ -71.0252, 42.3415 ], [ -71.0252, 42.3415 ], [ -71.0252, 42.3415 ], [ -71.0252, 42.3415 ], [ -71.0252, 42.3415 ], [ -71.0252, 42.3415 ], [ -71.0252, 42.3415 ], [ -71.0252, 42.3415 ], [ -71.0252, 42.3415 ], [ -71.0251, 42.3415 ], [ -71.0250, 42.3415 ], [ -71.0251, 42.3418 ], [ -71.0214, 42.3419 ], [ -71.0214, 42.3418 ], [ -71.0141, 42.3419 ], [ -71.0123, 42.3408 ], [ -71.0123, 42.3408 ], [ -71.0109, 42.3399 ], [ -71.0109, 42.3399 ], [ -71.0107, 42.3398 ], [ -71.0109, 42.3396 ], [ -71.0108, 42.3394 ], [ -71.0104, 42.3392 ], [ -71.0102, 42.3392 ], [ -71.0101, 42.3392 ], [ -71.0101, 42.3392 ], [ -71.0099, 42.3393 ], [ -71.0100, 42.3393 ], [ -71.0099, 42.3393 ], [ -71.0095, 42.3389 ], [ -71.0095, 42.3389 ], [ -71.0099, 42.3392 ], [ -71.0100, 42.3391 ], [ -71.0101, 42.3391 ], [ -71.0098, 42.3388 ], [ -71.0097, 42.3386 ], [ -71.0097, 42.3385 ], [ -71.0096, 42.3384 ], [ -71.0096, 42.3384 ], [ -71.0096, 42.3384 ], [ -71.0096, 42.3384 ], [ -71.0096, 42.3384 ], [ -71.0096, 42.3384 ], [ -71.0096, 42.3384 ], [ -71.0096, 42.3384 ], [ -71.0096, 42.3383 ], [ -71.0096, 42.3383 ], [ -71.0096, 42.3383 ], [ -71.0096, 42.3383 ], [ -71.0096, 42.3383 ], [ -71.0096, 42.3383 ], [ -71.0096, 42.3382 ], [ -71.0096, 42.3381 ], [ -71.0095, 42.3378 ], [ -71.0095, 42.3376 ], [ -71.0094, 42.3375 ], [ -71.0094, 42.3374 ], [ -71.0094, 42.3372 ], [ -71.0094, 42.3369 ], [ -71.0095, 42.3366 ], [ -71.0100, 42.3366 ], [ -71.0104, 42.3364 ], [ -71.0107, 42.3363 ], [ -71.0109, 42.3362 ], [ -71.0110, 42.3361 ], [ -71.0110, 42.3361 ], [ -71.0110, 42.3361 ], [ -71.0111, 42.3361 ], [ -71.0111, 42.3361 ], [ -71.0111, 42.3361 ], [ -71.0111, 42.3361 ], [ -71.0112, 42.3361 ], [ -71.0112, 42.3360 ], [ -71.0112, 42.3360 ], [ -71.0113, 42.3360 ], [ -71.0113, 42.3360 ], [ -71.0113, 42.3359 ], [ -71.0113, 42.3359 ], [ -71.0114, 42.3359 ], [ -71.0114, 42.3359 ], [ -71.0114, 42.3358 ], [ -71.0115, 42.3357 ], [ -71.0115, 42.3357 ], [ -71.0115, 42.3356 ], [ -71.0115, 42.3355 ], [ -71.0116, 42.3355 ], [ -71.0116, 42.3354 ], [ -71.0117, 42.3353 ], [ -71.0118, 42.3352 ], [ -71.0119, 42.3352 ], [ -71.0119, 42.3351 ], [ -71.0121, 42.3350 ], [ -71.0121, 42.3350 ], [ -71.0121, 42.3350 ], [ -71.0121, 42.3350 ], [ -71.0121, 42.3350 ], [ -71.0121, 42.3350 ], [ -71.0121, 42.3350 ], [ -71.0121, 42.3350 ], [ -71.0122, 42.3348 ], [ -71.0123, 42.3346 ], [ -71.0124, 42.3344 ], [ -71.0124, 42.3343 ], [ -71.0124, 42.3343 ], [ -71.0124, 42.3342 ], [ -71.0125, 42.3341 ], [ -71.0125, 42.3341 ], [ -71.0126, 42.3340 ], [ -71.0126, 42.3339 ], [ -71.0127, 42.3339 ], [ -71.0127, 42.3339 ], [ -71.0128, 42.3338 ], [ -71.0127, 42.3338 ], [ -71.0127, 42.3338 ], [ -71.0127, 42.3338 ], [ -71.0127, 42.3338 ], [ -71.0127, 42.3338 ], [ -71.0127, 42.3338 ], [ -71.0127, 42.3338 ], [ -71.0127, 42.3338 ], [ -71.0127, 42.3338 ], [ -71.0127, 42.3338 ], [ -71.0127, 42.3338 ], [ -71.0127, 42.3337 ], [ -71.0128, 42.3335 ], [ -71.0129, 42.3334 ], [ -71.0130, 42.3332 ], [ -71.0130, 42.3332 ], [ -71.0131, 42.3331 ], [ -71.0131, 42.3331 ], [ -71.0131, 42.3330 ], [ -71.0131, 42.3330 ], [ -71.0132, 42.3330 ], [ -71.0132, 42.3329 ], [ -71.0132, 42.3329 ], [ -71.0132, 42.3329 ], [ -71.0133, 42.3328 ], [ -71.0133, 42.3328 ], [ -71.0133, 42.3327 ], [ -71.0134, 42.3326 ], [ -71.0135, 42.3326 ], [ -71.0135, 42.3325 ], [ -71.0135, 42.3324 ], [ -71.0136, 42.3324 ], [ -71.0136, 42.3323 ], [ -71.0136, 42.3323 ], [ -71.0137, 42.3323 ], [ -71.0137, 42.3323 ], [ -71.0137, 42.3322 ], [ -71.0137, 42.3322 ], [ -71.0138, 42.3321 ], [ -71.0138, 42.3321 ], [ -71.0138, 42.3321 ], [ -71.0139, 42.3320 ], [ -71.0139, 42.3320 ], [ -71.0139, 42.3319 ], [ -71.0140, 42.3318 ], [ -71.0141, 42.3317 ], [ -71.0142, 42.3316 ], [ -71.0142, 42.3316 ], [ -71.0143, 42.3316 ], [ -71.0143, 42.3316 ], [ -71.0143, 42.3316 ], [ -71.0143, 42.3316 ], [ -71.0143, 42.3316 ], [ -71.0143, 42.3316 ], [ -71.0143, 42.3316 ], [ -71.0143, 42.3316 ], [ -71.0143, 42.3316 ], [ -71.0143, 42.3316 ], [ -71.0143, 42.3316 ], [ -71.0143, 42.3316 ], [ -71.0143, 42.3316 ], [ -71.0143, 42.3316 ], [ -71.0143, 42.3316 ], [ -71.0143, 42.3316 ], [ -71.0146, 42.3313 ], [ -71.0146, 42.3313 ], [ -71.0146, 42.3313 ], [ -71.0146, 42.3313 ], [ -71.0146, 42.3313 ], [ -71.0146, 42.3313 ], [ -71.0146, 42.3313 ], [ -71.0146, 42.3313 ], [ -71.0146, 42.3313 ], [ -71.0146, 42.3313 ], [ -71.0146, 42.3313 ], [ -71.0146, 42.3313 ], [ -71.0146, 42.3313 ], [ -71.0146, 42.3313 ], [ -71.0146, 42.3313 ], [ -71.0146, 42.3313 ], [ -71.0146, 42.3312 ], [ -71.0146, 42.3312 ], [ -71.0146, 42.3312 ], [ -71.0146, 42.3312 ], [ -71.0146, 42.3312 ], [ -71.0146, 42.3312 ], [ -71.0147, 42.3311 ], [ -71.0148, 42.3310 ], [ -71.0149, 42.3310 ], [ -71.0149, 42.3310 ], [ -71.0149, 42.3309 ], [ -71.0150, 42.3309 ], [ -71.0150, 42.3309 ], [ -71.0150, 42.3309 ], [ -71.0151, 42.3308 ], [ -71.0151, 42.3308 ], [ -71.0150, 42.3307 ], [ -71.0150, 42.3307 ], [ -71.0150, 42.3307 ], [ -71.0149, 42.3306 ], [ -71.0149, 42.3306 ], [ -71.0149, 42.3306 ], [ -71.0149, 42.3306 ], [ -71.0149, 42.3306 ], [ -71.0149, 42.3305 ], [ -71.0149, 42.3305 ], [ -71.0150, 42.3305 ], [ -71.0150, 42.3305 ], [ -71.0150, 42.3305 ], [ -71.0150, 42.3305 ], [ -71.0151, 42.3304 ], [ -71.0151, 42.3304 ], [ -71.0151, 42.3304 ], [ -71.0152, 42.3304 ], [ -71.0152, 42.3304 ], [ -71.0152, 42.3304 ], [ -71.0153, 42.3304 ], [ -71.0153, 42.3304 ], [ -71.0153, 42.3304 ], [ -71.0154, 42.3304 ], [ -71.0154, 42.3304 ], [ -71.0154, 42.3304 ], [ -71.0155, 42.3304 ], [ -71.0155, 42.3304 ], [ -71.0155, 42.3304 ], [ -71.0155, 42.3304 ], [ -71.0156, 42.3304 ], [ -71.0156, 42.3304 ], [ -71.0156, 42.3304 ], [ -71.0156, 42.3304 ], [ -71.0156, 42.3305 ], [ -71.0156, 42.3305 ], [ -71.0156, 42.3305 ], [ -71.0156, 42.3305 ], [ -71.0156, 42.3305 ], [ -71.0156, 42.3305 ], [ -71.0157, 42.3305 ], [ -71.0157, 42.3305 ], [ -71.0157, 42.3305 ], [ -71.0157, 42.3305 ], [ -71.0157, 42.3306 ], [ -71.0160, 42.3306 ], [ -71.0162, 42.3306 ], [ -71.0163, 42.3306 ], [ -71.0163, 42.3306 ], [ -71.0164, 42.3306 ], [ -71.0165, 42.3306 ], [ -71.0165, 42.3307 ], [ -71.0165, 42.3307 ], [ -71.0166, 42.3307 ], [ -71.0167, 42.3307 ], [ -71.0168, 42.3307 ], [ -71.0168, 42.3307 ], [ -71.0169, 42.3307 ], [ -71.0170, 42.3307 ], [ -71.0170, 42.3307 ], [ -71.0170, 42.3307 ], [ -71.0171, 42.3307 ], [ -71.0171, 42.3308 ], [ -71.0171, 42.3308 ], [ -71.0172, 42.3308 ], [ -71.0173, 42.3308 ], [ -71.0174, 42.3308 ], [ -71.0174, 42.3308 ], [ -71.0174, 42.3308 ], [ -71.0174, 42.3308 ], [ -71.0175, 42.3308 ], [ -71.0175, 42.3309 ], [ -71.0176, 42.3309 ], [ -71.0176, 42.3309 ], [ -71.0177, 42.3309 ], [ -71.0178, 42.3309 ], [ -71.0179, 42.3309 ], [ -71.0181, 42.3310 ], [ -71.0182, 42.3310 ], [ -71.0183, 42.3310 ], [ -71.0183, 42.3311 ], [ -71.0183, 42.3311 ], [ -71.0184, 42.3311 ], [ -71.0184, 42.3311 ], [ -71.0184, 42.3311 ], [ -71.0185, 42.3311 ], [ -71.0186, 42.3312 ], [ -71.0186, 42.3312 ], [ -71.0186, 42.3312 ], [ -71.0187, 42.3312 ], [ -71.0188, 42.3312 ], [ -71.0188, 42.3313 ], [ -71.0189, 42.3313 ], [ -71.0190, 42.3313 ], [ -71.0190, 42.3313 ], [ -71.0191, 42.3314 ], [ -71.0192, 42.3314 ], [ -71.0193, 42.3314 ], [ -71.0193, 42.3315 ], [ -71.0194, 42.3315 ], [ -71.0195, 42.3315 ], [ -71.0195, 42.3315 ], [ -71.0196, 42.3316 ], [ -71.0197, 42.3316 ], [ -71.0197, 42.3317 ], [ -71.0198, 42.3317 ], [ -71.0198, 42.3317 ], [ -71.0199, 42.3317 ], [ -71.0199, 42.3317 ], [ -71.0200, 42.3318 ], [ -71.0200, 42.3318 ], [ -71.0201, 42.3318 ], [ -71.0201, 42.3318 ], [ -71.0202, 42.3319 ], [ -71.0203, 42.3319 ], [ -71.0203, 42.3320 ], [ -71.0204, 42.3320 ], [ -71.0205, 42.3320 ], [ -71.0205, 42.3321 ], [ -71.0206, 42.3321 ], [ -71.0207, 42.3322 ], [ -71.0207, 42.3322 ], [ -71.0207, 42.3322 ], [ -71.0207, 42.3322 ], [ -71.0207, 42.3322 ], [ -71.0208, 42.3322 ], [ -71.0208, 42.3322 ], [ -71.0208, 42.3322 ], [ -71.0209, 42.3322 ], [ -71.0210, 42.3322 ], [ -71.0210, 42.3322 ], [ -71.0211, 42.3322 ], [ -71.0212, 42.3322 ], [ -71.0212, 42.3322 ], [ -71.0213, 42.3322 ], [ -71.0213, 42.3322 ], [ -71.0214, 42.3322 ], [ -71.0215, 42.3322 ], [ -71.0215, 42.3322 ], [ -71.0215, 42.3322 ], [ -71.0216, 42.3322 ], [ -71.0217, 42.3323 ], [ -71.0218, 42.3323 ], [ -71.0218, 42.3323 ], [ -71.0219, 42.3323 ], [ -71.0220, 42.3323 ], [ -71.0221, 42.3323 ], [ -71.0221, 42.3323 ], [ -71.0222, 42.3324 ], [ -71.0223, 42.3324 ], [ -71.0223, 42.3324 ], [ -71.0224, 42.3324 ], [ -71.0224, 42.3324 ], [ -71.0225, 42.3324 ], [ -71.0226, 42.3324 ], [ -71.0227, 42.3325 ], [ -71.0228, 42.3325 ], [ -71.0229, 42.3325 ], [ -71.0229, 42.3325 ], [ -71.0230, 42.3325 ], [ -71.0231, 42.3326 ], [ -71.0232, 42.3326 ], [ -71.0232, 42.3326 ], [ -71.0234, 42.3326 ], [ -71.0234, 42.3326 ], [ -71.0234, 42.3326 ], [ -71.0234, 42.3326 ], [ -71.0235, 42.3326 ], [ -71.0235, 42.3326 ], [ -71.0236, 42.3326 ], [ -71.0236, 42.3327 ], [ -71.0237, 42.3327 ], [ -71.0238, 42.3327 ], [ -71.0238, 42.3327 ], [ -71.0239, 42.3327 ], [ -71.0239, 42.3327 ], [ -71.0239, 42.3327 ], [ -71.0240, 42.3327 ], [ -71.0241, 42.3327 ], [ -71.0243, 42.3328 ], [ -71.0244, 42.3328 ], [ -71.0245, 42.3328 ], [ -71.0246, 42.3327 ], [ -71.0246, 42.3327 ], [ -71.0247, 42.3327 ], [ -71.0247, 42.3326 ], [ -71.0252, 42.3325 ], [ -71.0252, 42.3326 ], [ -71.0254, 42.3326 ], [ -71.0255, 42.3326 ], [ -71.0255, 42.3326 ], [ -71.0256, 42.3326 ], [ -71.0256, 42.3326 ], [ -71.0257, 42.3326 ], [ -71.0257, 42.3325 ], [ -71.0257, 42.3325 ], [ -71.0258, 42.3325 ], [ -71.0258, 42.3325 ], [ -71.0258, 42.3325 ], [ -71.0259, 42.3324 ], [ -71.0259, 42.3324 ], [ -71.0259, 42.3324 ], [ -71.0259, 42.3324 ], [ -71.0260, 42.3323 ], [ -71.0260, 42.3323 ], [ -71.0260, 42.3323 ], [ -71.0261, 42.3322 ], [ -71.0261, 42.3322 ], [ -71.0262, 42.3322 ], [ -71.0262, 42.3322 ], [ -71.0263, 42.3321 ], [ -71.0264, 42.3321 ], [ -71.0265, 42.3321 ], [ -71.0265, 42.3321 ], [ -71.0267, 42.3320 ], [ -71.0268, 42.3320 ], [ -71.0270, 42.3319 ], [ -71.0274, 42.3318 ], [ -71.0274, 42.3318 ], [ -71.0276, 42.3317 ], [ -71.0277, 42.3317 ], [ -71.0279, 42.3316 ], [ -71.0279, 42.3316 ], [ -71.0280, 42.3315 ], [ -71.0283, 42.3314 ], [ -71.0284, 42.3314 ], [ -71.0285, 42.3313 ], [ -71.0288, 42.3312 ], [ -71.0289, 42.3312 ], [ -71.0290, 42.3311 ], [ -71.0290, 42.3311 ], [ -71.0291, 42.3311 ], [ -71.0291, 42.3311 ], [ -71.0291, 42.3311 ], [ -71.0291, 42.3311 ], [ -71.0291, 42.3311 ], [ -71.0291, 42.3311 ], [ -71.0292, 42.3311 ], [ -71.0292, 42.3311 ], [ -71.0292, 42.3311 ], [ -71.0292, 42.3311 ], [ -71.0293, 42.3311 ], [ -71.0293, 42.3311 ], [ -71.0293, 42.3311 ], [ -71.0293, 42.3311 ], [ -71.0293, 42.3311 ], [ -71.0293, 42.3311 ], [ -71.0293, 42.3311 ], [ -71.0293, 42.3311 ], [ -71.0293, 42.3311 ], [ -71.0293, 42.3311 ], [ -71.0293, 42.3311 ], [ -71.0293, 42.3311 ], [ -71.0293, 42.3311 ], [ -71.0294, 42.3311 ], [ -71.0294, 42.3311 ], [ -71.0294, 42.3311 ], [ -71.0294, 42.3311 ], [ -71.0294, 42.3311 ], [ -71.0294, 42.3311 ], [ -71.0294, 42.3311 ], [ -71.0294, 42.3311 ], [ -71.0294, 42.3311 ], [ -71.0294, 42.3311 ], [ -71.0294, 42.3311 ], [ -71.0294, 42.3311 ], [ -71.0294, 42.3311 ], [ -71.0294, 42.3311 ], [ -71.0294, 42.3311 ], [ -71.0295, 42.3311 ], [ -71.0295, 42.3311 ], [ -71.0295, 42.3311 ], [ -71.0296, 42.3311 ], [ -71.0296, 42.3311 ], [ -71.0296, 42.3311 ], [ -71.0296, 42.3311 ], [ -71.0296, 42.3311 ], [ -71.0296, 42.3311 ], [ -71.0296, 42.3311 ], [ -71.0296, 42.3311 ], [ -71.0296, 42.3311 ], [ -71.0296, 42.3311 ], [ -71.0297, 42.3310 ], [ -71.0299, 42.3309 ], [ -71.0300, 42.3309 ], [ -71.0300, 42.3309 ], [ -71.0300, 42.3308 ], [ -71.0301, 42.3308 ], [ -71.0301, 42.3308 ], [ -71.0301, 42.3308 ], [ -71.0301, 42.3308 ], [ -71.0302, 42.3307 ], [ -71.0302, 42.3307 ], [ -71.0303, 42.3306 ], [ -71.0304, 42.3306 ], [ -71.0305, 42.3305 ], [ -71.0305, 42.3305 ], [ -71.0306, 42.3304 ], [ -71.0306, 42.3304 ], [ -71.0307, 42.3304 ], [ -71.0307, 42.3304 ], [ -71.0307, 42.3303 ], [ -71.0308, 42.3303 ], [ -71.0309, 42.3303 ], [ -71.0309, 42.3302 ], [ -71.0310, 42.3302 ], [ -71.0310, 42.3302 ], [ -71.0310, 42.3302 ], [ -71.0310, 42.3302 ], [ -71.0311, 42.3301 ], [ -71.0311, 42.3301 ], [ -71.0312, 42.3301 ], [ -71.0312, 42.3301 ], [ -71.0313, 42.3300 ], [ -71.0313, 42.3300 ], [ -71.0314, 42.3299 ], [ -71.0316, 42.3298 ], [ -71.0317, 42.3298 ], [ -71.0317, 42.3298 ], [ -71.0317, 42.3298 ], [ -71.0317, 42.3297 ], [ -71.0319, 42.3297 ], [ -71.0321, 42.3296 ], [ -71.0322, 42.3295 ], [ -71.0323, 42.3294 ], [ -71.0324, 42.3294 ], [ -71.0324, 42.3294 ], [ -71.0325, 42.3293 ], [ -71.0325, 42.3293 ], [ -71.0325, 42.3293 ], [ -71.0326, 42.3293 ], [ -71.0326, 42.3292 ], [ -71.0327, 42.3292 ], [ -71.0327, 42.3292 ], [ -71.0328, 42.3291 ], [ -71.0329, 42.3291 ], [ -71.0329, 42.3291 ], [ -71.0329, 42.3290 ], [ -71.0330, 42.3290 ], [ -71.0330, 42.3290 ], [ -71.0330, 42.3290 ], [ -71.0331, 42.3290 ], [ -71.0331, 42.3290 ], [ -71.0332, 42.3290 ], [ -71.0332, 42.3290 ], [ -71.0333, 42.3290 ], [ -71.0335, 42.3289 ], [ -71.0336, 42.3289 ], [ -71.0336, 42.3289 ], [ -71.0337, 42.3288 ], [ -71.0337, 42.3288 ], [ -71.0338, 42.3288 ], [ -71.0338, 42.3289 ], [ -71.0340, 42.3289 ], [ -71.0342, 42.3288 ], [ -71.0343, 42.3288 ], [ -71.0344, 42.3288 ], [ -71.0345, 42.3288 ], [ -71.0346, 42.3288 ], [ -71.0347, 42.3288 ], [ -71.0347, 42.3287 ], [ -71.0348, 42.3287 ], [ -71.0349, 42.3287 ], [ -71.0350, 42.3287 ], [ -71.0350, 42.3287 ], [ -71.0351, 42.3287 ], [ -71.0351, 42.3286 ], [ -71.0352, 42.3286 ], [ -71.0354, 42.3286 ], [ -71.0355, 42.3285 ], [ -71.0355, 42.3285 ], [ -71.0356, 42.3285 ], [ -71.0356, 42.3285 ], [ -71.0357, 42.3285 ], [ -71.0357, 42.3285 ], [ -71.0358, 42.3284 ], [ -71.0360, 42.3284 ], [ -71.0360, 42.3284 ], [ -71.0360, 42.3284 ], [ -71.0361, 42.3284 ], [ -71.0361, 42.3284 ], [ -71.0361, 42.3284 ], [ -71.0361, 42.3284 ], [ -71.0362, 42.3284 ], [ -71.0362, 42.3284 ], [ -71.0362, 42.3284 ], [ -71.0362, 42.3284 ], [ -71.0362, 42.3284 ], [ -71.0361, 42.3285 ], [ -71.0361, 42.3285 ], [ -71.0361, 42.3285 ], [ -71.0361, 42.3286 ], [ -71.0361, 42.3286 ], [ -71.0361, 42.3286 ], [ -71.0361, 42.3286 ], [ -71.0361, 42.3286 ], [ -71.0361, 42.3286 ], [ -71.0361, 42.3286 ], [ -71.0361, 42.3286 ], [ -71.0361, 42.3286 ], [ -71.0361, 42.3286 ], [ -71.0361, 42.3286 ], [ -71.0362, 42.3286 ], [ -71.0362, 42.3286 ], [ -71.0362, 42.3286 ], [ -71.0362, 42.3286 ], [ -71.0362, 42.3286 ], [ -71.0362, 42.3286 ], [ -71.0362, 42.3286 ], [ -71.0362, 42.3286 ], [ -71.0363, 42.3287 ], [ -71.0364, 42.3287 ], [ -71.0364, 42.3287 ], [ -71.0364, 42.3287 ], [ -71.0364, 42.3287 ], [ -71.0364, 42.3287 ], [ -71.0365, 42.3287 ], [ -71.0366, 42.3288 ], [ -71.0366, 42.3288 ], [ -71.0367, 42.3288 ], [ -71.0368, 42.3288 ], [ -71.0368, 42.3288 ], [ -71.0369, 42.3288 ], [ -71.0370, 42.3288 ], [ -71.0370, 42.3288 ], [ -71.0371, 42.3288 ], [ -71.0372, 42.3288 ], [ -71.0373, 42.3288 ], [ -71.0373, 42.3288 ], [ -71.0373, 42.3288 ], [ -71.0373, 42.3289 ], [ -71.0374, 42.3289 ], [ -71.0374, 42.3289 ], [ -71.0374, 42.3289 ], [ -71.0374, 42.3289 ], [ -71.0374, 42.3289 ], [ -71.0374, 42.3289 ], [ -71.0374, 42.3289 ], [ -71.0373, 42.3289 ], [ -71.0373, 42.3289 ], [ -71.0373, 42.3289 ], [ -71.0373, 42.3289 ], [ -71.0373, 42.3289 ], [ -71.0373, 42.3289 ], [ -71.0373, 42.3289 ], [ -71.0373, 42.3289 ], [ -71.0374, 42.3289 ], [ -71.0374, 42.3289 ], [ -71.0374, 42.3289 ], [ -71.0374, 42.3289 ], [ -71.0374, 42.3290 ], [ -71.0375, 42.3290 ], [ -71.0375, 42.3290 ], [ -71.0376, 42.3291 ], [ -71.0376, 42.3291 ], [ -71.0377, 42.3291 ], [ -71.0378, 42.3292 ], [ -71.0379, 42.3292 ], [ -71.0379, 42.3292 ], [ -71.0380, 42.3293 ], [ -71.0380, 42.3293 ], [ -71.0381, 42.3293 ], [ -71.0382, 42.3293 ], [ -71.0382, 42.3293 ], [ -71.0383, 42.3294 ], [ -71.0383, 42.3294 ], [ -71.0383, 42.3294 ], [ -71.0384, 42.3294 ], [ -71.0384, 42.3294 ], [ -71.0385, 42.3295 ], [ -71.0386, 42.3295 ], [ -71.0387, 42.3295 ], [ -71.0388, 42.3295 ], [ -71.0389, 42.3295 ], [ -71.0390, 42.3295 ], [ -71.0390, 42.3296 ], [ -71.0391, 42.3296 ], [ -71.0392, 42.3296 ], [ -71.0392, 42.3296 ], [ -71.0393, 42.3296 ], [ -71.0394, 42.3296 ], [ -71.0394, 42.3296 ], [ -71.0395, 42.3296 ], [ -71.0395, 42.3296 ], [ -71.0396, 42.3296 ], [ -71.0397, 42.3296 ], [ -71.0398, 42.3297 ], [ -71.0399, 42.3297 ], [ -71.0400, 42.3297 ], [ -71.0401, 42.3297 ], [ -71.0402, 42.3297 ], [ -71.0403, 42.3297 ], [ -71.0403, 42.3297 ], [ -71.0404, 42.3297 ], [ -71.0405, 42.3297 ], [ -71.0406, 42.3297 ], [ -71.0407, 42.3297 ], [ -71.0408, 42.3296 ], [ -71.0409, 42.3296 ], [ -71.0409, 42.3296 ], [ -71.0410, 42.3296 ], [ -71.0410, 42.3296 ], [ -71.0411, 42.3296 ], [ -71.0412, 42.3296 ], [ -71.0412, 42.3296 ], [ -71.0413, 42.3296 ], [ -71.0414, 42.3296 ], [ -71.0415, 42.3296 ], [ -71.0416, 42.3296 ], [ -71.0417, 42.3296 ], [ -71.0418, 42.3296 ], [ -71.0419, 42.3296 ], [ -71.0419, 42.3296 ], [ -71.0420, 42.3296 ], [ -71.0421, 42.3296 ], [ -71.0422, 42.3296 ], [ -71.0422, 42.3296 ], [ -71.0423, 42.3296 ], [ -71.0424, 42.3296 ], [ -71.0424, 42.3296 ], [ -71.0425, 42.3296 ], [ -71.0426, 42.3296 ], [ -71.0427, 42.3296 ], [ -71.0427, 42.3296 ], [ -71.0428, 42.3296 ], [ -71.0429, 42.3296 ], [ -71.0430, 42.3296 ], [ -71.0431, 42.3296 ], [ -71.0432, 42.3296 ], [ -71.0433, 42.3296 ], [ -71.0433, 42.3296 ], [ -71.0434, 42.3296 ], [ -71.0435, 42.3296 ], [ -71.0436, 42.3296 ], [ -71.0437, 42.3296 ], [ -71.0438, 42.3296 ], [ -71.0438, 42.3295 ], [ -71.0439, 42.3295 ], [ -71.0440, 42.3295 ], [ -71.0441, 42.3295 ], [ -71.0442, 42.3295 ], [ -71.0442, 42.3295 ], [ -71.0443, 42.3294 ], [ -71.0444, 42.3294 ], [ -71.0445, 42.3294 ], [ -71.0446, 42.3294 ], [ -71.0447, 42.3293 ], [ -71.0448, 42.3293 ], [ -71.0449, 42.3292 ], [ -71.0451, 42.3292 ], [ -71.0452, 42.3291 ], [ -71.0453, 42.3291 ], [ -71.0454, 42.3290 ], [ -71.0455, 42.3290 ], [ -71.0456, 42.3289 ], [ -71.0458, 42.3288 ], [ -71.0459, 42.3288 ], [ -71.0460, 42.3287 ], [ -71.0461, 42.3286 ], [ -71.0462, 42.3285 ], [ -71.0462, 42.3285 ], [ -71.0463, 42.3284 ], [ -71.0464, 42.3283 ], [ -71.0465, 42.3282 ], [ -71.0466, 42.3282 ], [ -71.0467, 42.3281 ], [ -71.0467, 42.3280 ], [ -71.0468, 42.3279 ], [ -71.0469, 42.3278 ], [ -71.0470, 42.3277 ], [ -71.0470, 42.3276 ], [ -71.0471, 42.3275 ], [ -71.0472, 42.3274 ], [ -71.0472, 42.3272 ], [ -71.0473, 42.3271 ], [ -71.0474, 42.3270 ], [ -71.0474, 42.3268 ], [ -71.0475, 42.3267 ], [ -71.0476, 42.3266 ], [ -71.0476, 42.3265 ], [ -71.0477, 42.3263 ], [ -71.0477, 42.3262 ], [ -71.0477, 42.3261 ], [ -71.0477, 42.3260 ], [ -71.0477, 42.3258 ], [ -71.0477, 42.3256 ], [ -71.0477, 42.3254 ], [ -71.0477, 42.3253 ], [ -71.0477, 42.3251 ], [ -71.0477, 42.3249 ], [ -71.0477, 42.3248 ], [ -71.0477, 42.3246 ], [ -71.0477, 42.3245 ], [ -71.0476, 42.3244 ], [ -71.0476, 42.3242 ], [ -71.0476, 42.3241 ], [ -71.0476, 42.3240 ], [ -71.0475, 42.3238 ], [ -71.0475, 42.3237 ], [ -71.0474, 42.3237 ], [ -71.0474, 42.3236 ], [ -71.0474, 42.3235 ], [ -71.0473, 42.3235 ], [ -71.0472, 42.3234 ], [ -71.0472, 42.3234 ], [ -71.0471, 42.3234 ], [ -71.0470, 42.3234 ], [ -71.0469, 42.3234 ], [ -71.0469, 42.3234 ], [ -71.0468, 42.3233 ], [ -71.0467, 42.3234 ], [ -71.0466, 42.3234 ], [ -71.0465, 42.3234 ], [ -71.0465, 42.3234 ], [ -71.0464, 42.3234 ], [ -71.0463, 42.3234 ], [ -71.0463, 42.3234 ], [ -71.0463, 42.3234 ], [ -71.0462, 42.3234 ], [ -71.0462, 42.3234 ], [ -71.0461, 42.3234 ], [ -71.0461, 42.3234 ], [ -71.0460, 42.3234 ], [ -71.0460, 42.3234 ], [ -71.0460, 42.3234 ], [ -71.0460, 42.3233 ], [ -71.0459, 42.3233 ], [ -71.0459, 42.3233 ], [ -71.0459, 42.3233 ], [ -71.0459, 42.3232 ], [ -71.0459, 42.3232 ], [ -71.0459, 42.3232 ], [ -71.0478, 42.3226 ], [ -71.0499, 42.3221 ], [ -71.0503, 42.3219 ], [ -71.0507, 42.3219 ], [ -71.0510, 42.3219 ], [ -71.0515, 42.3221 ], [ -71.0528, 42.3233 ], [ -71.0530, 42.3234 ], [ -71.0533, 42.3237 ], [ -71.0539, 42.3242 ], [ -71.0550, 42.3250 ], [ -71.0564, 42.3260 ], [ -71.0581, 42.3275 ], [ -71.0581, 42.3275 ], [ -71.0589, 42.3287 ], [ -71.0591, 42.3290 ], [ -71.0593, 42.3299 ], [ -71.0598, 42.3300 ], [ -71.0612, 42.3303 ], [ -71.0613, 42.3303 ], [ -71.0613, 42.3303 ], [ -71.0613, 42.3303 ], [ -71.0614, 42.3303 ], [ -71.0619, 42.3305 ], [ -71.0626, 42.3306 ], [ -71.0626, 42.3306 ], [ -71.0626, 42.3306 ], [ -71.0627, 42.3306 ], [ -71.0631, 42.3307 ], [ -71.0632, 42.3307 ], [ -71.0634, 42.3307 ], [ -71.0634, 42.3307 ], [ -71.0634, 42.3307 ], [ -71.0634, 42.3307 ], [ -71.0634, 42.3307 ], [ -71.0634, 42.3307 ], [ -71.0635, 42.3307 ], [ -71.0635, 42.3307 ], [ -71.0635, 42.3307 ], [ -71.0635, 42.3307 ], [ -71.0635, 42.3307 ], [ -71.0635, 42.3307 ], [ -71.0635, 42.3308 ], [ -71.0635, 42.3308 ], [ -71.0635, 42.3308 ], [ -71.0636, 42.3307 ], [ -71.0663, 42.3263 ], [ -71.0664, 42.3262 ], [ -71.0664, 42.3262 ], [ -71.0666, 42.3265 ], [ -71.0666, 42.3265 ], [ -71.0667, 42.3266 ], [ -71.0667, 42.3266 ], [ -71.0669, 42.3268 ], [ -71.0669, 42.3268 ], [ -71.0669, 42.3269 ], [ -71.0669, 42.3269 ], [ -71.0670, 42.3269 ], [ -71.0670, 42.3269 ], [ -71.0670, 42.3270 ], [ -71.0674, 42.3275 ], [ -71.0674, 42.3275 ], [ -71.0674, 42.3275 ], [ -71.0674, 42.3275 ], [ -71.0675, 42.3275 ], [ -71.0676, 42.3277 ], [ -71.0678, 42.3279 ], [ -71.0679, 42.3280 ], [ -71.0679, 42.3281 ], [ -71.0682, 42.3284 ], [ -71.0687, 42.3290 ], [ -71.0687, 42.3290 ], [ -71.0691, 42.3295 ], [ -71.0691, 42.3295 ], [ -71.0693, 42.3297 ], [ -71.0693, 42.3297 ], [ -71.0693, 42.3297 ], [ -71.0693, 42.3297 ], [ -71.0694, 42.3298 ], [ -71.0694, 42.3298 ], [ -71.0694, 42.3298 ], [ -71.0694, 42.3298 ], [ -71.0695, 42.3300 ], [ -71.0696, 42.3300 ], [ -71.0696, 42.3301 ], [ -71.0698, 42.3303 ], [ -71.0700, 42.3305 ], [ -71.0701, 42.3307 ], [ -71.0701, 42.3307 ], [ -71.0701, 42.3307 ], [ -71.0701, 42.3307 ], [ -71.0704, 42.3311 ], [ -71.0710, 42.3317 ], [ -71.0711, 42.3318 ], [ -71.0711, 42.3318 ], [ -71.0711, 42.3318 ], [ -71.0711, 42.3318 ], [ -71.0712, 42.3319 ], [ -71.0712, 42.3319 ], [ -71.0719, 42.3324 ], [ -71.0719, 42.3324 ], [ -71.0720, 42.3325 ], [ -71.0720, 42.3325 ], [ -71.0710, 42.3333 ], [ -71.0693, 42.3345 ], [ -71.0686, 42.3348 ], [ -71.0682, 42.3350 ], [ -71.0677, 42.3351 ], [ -71.0673, 42.3352 ], [ -71.0668, 42.3352 ], [ -71.0657, 42.3353 ], [ -71.0652, 42.3353 ], [ -71.0652, 42.3355 ], [ -71.0653, 42.3359 ], [ -71.0652, 42.3362 ], [ -71.0652, 42.3365 ], [ -71.0651, 42.3367 ], [ -71.0650, 42.3370 ], [ -71.0649, 42.3373 ], [ -71.0647, 42.3376 ], [ -71.0643, 42.3384 ], [ -71.0637, 42.3394 ], [ -71.0634, 42.3399 ], [ -71.0626, 42.3415 ], [ -71.0616, 42.3439 ], [ -71.0609, 42.3456 ], [ -71.0608, 42.3456 ], [ -71.0608, 42.3456 ], [ -71.0608, 42.3456 ], [ -71.0606, 42.3455 ], [ -71.0605, 42.3454 ], [ -71.0604, 42.3453 ], [ -71.0604, 42.3453 ], [ -71.0603, 42.3452 ], [ -71.0601, 42.3451 ], [ -71.0601, 42.3451 ], [ -71.0601, 42.3451 ], [ -71.0599, 42.3449 ], [ -71.0599, 42.3449 ], [ -71.0598, 42.3449 ], [ -71.0598, 42.3449 ], [ -71.0598, 42.3449 ], [ -71.0597, 42.3448 ], [ -71.0596, 42.3447 ], [ -71.0597, 42.3446 ], [ -71.0599, 42.3444 ], [ -71.0600, 42.3443 ], [ -71.0601, 42.3443 ], [ -71.0602, 42.3442 ], [ -71.0603, 42.3442 ], [ -71.0605, 42.3439 ], [ -71.0605, 42.3438 ], [ -71.0607, 42.3435 ], [ -71.0609, 42.3430 ], [ -71.0609, 42.3430 ], [ -71.0609, 42.3429 ], [ -71.0610, 42.3429 ], [ -71.0610, 42.3429 ], [ -71.0610, 42.3428 ] ], [ [ -71.0224, 42.3337 ], [ -71.0224, 42.3337 ], [ -71.0224, 42.3337 ], [ -71.0224, 42.3337 ], [ -71.0224, 42.3337 ], [ -71.0224, 42.3336 ], [ -71.0224, 42.3336 ], [ -71.0224, 42.3336 ], [ -71.0224, 42.3336 ], [ -71.0224, 42.3336 ], [ -71.0224, 42.3336 ], [ -71.0224, 42.3336 ], [ -71.0224, 42.3336 ], [ -71.0224, 42.3336 ], [ -71.0224, 42.3336 ], [ -71.0223, 42.3336 ], [ -71.0223, 42.3336 ], [ -71.0223, 42.3336 ], [ -71.0223, 42.3336 ], [ -71.0223, 42.3336 ], [ -71.0223, 42.3336 ], [ -71.0222, 42.3336 ], [ -71.0222, 42.3336 ], [ -71.0222, 42.3335 ], [ -71.0221, 42.3335 ], [ -71.0221, 42.3335 ], [ -71.0221, 42.3334 ], [ -71.0220, 42.3333 ], [ -71.0219, 42.3333 ], [ -71.0219, 42.3332 ], [ -71.0219, 42.3332 ], [ -71.0219, 42.3332 ], [ -71.0218, 42.3331 ], [ -71.0218, 42.3331 ], [ -71.0218, 42.3331 ], [ -71.0217, 42.3330 ], [ -71.0217, 42.3330 ], [ -71.0216, 42.3329 ], [ -71.0216, 42.3329 ], [ -71.0216, 42.3329 ], [ -71.0216, 42.3329 ], [ -71.0216, 42.3329 ], [ -71.0214, 42.3328 ], [ -71.0213, 42.3327 ], [ -71.0210, 42.3326 ], [ -71.0207, 42.3324 ], [ -71.0205, 42.3322 ], [ -71.0204, 42.3322 ], [ -71.0204, 42.3322 ], [ -71.0203, 42.3322 ], [ -71.0203, 42.3321 ], [ -71.0202, 42.3321 ], [ -71.0202, 42.3321 ], [ -71.0201, 42.3320 ], [ -71.0200, 42.3320 ], [ -71.0200, 42.3320 ], [ -71.0199, 42.3319 ], [ -71.0199, 42.3319 ], [ -71.0198, 42.3319 ], [ -71.0197, 42.3318 ], [ -71.0197, 42.3318 ], [ -71.0196, 42.3318 ], [ -71.0195, 42.3317 ], [ -71.0194, 42.3317 ], [ -71.0194, 42.3317 ], [ -71.0194, 42.3317 ], [ -71.0193, 42.3316 ], [ -71.0193, 42.3316 ], [ -71.0192, 42.3316 ], [ -71.0191, 42.3316 ], [ -71.0191, 42.3316 ], [ -71.0190, 42.3315 ], [ -71.0190, 42.3315 ], [ -71.0189, 42.3315 ], [ -71.0189, 42.3314 ], [ -71.0189, 42.3314 ], [ -71.0188, 42.3314 ], [ -71.0187, 42.3314 ], [ -71.0187, 42.3314 ], [ -71.0186, 42.3314 ], [ -71.0186, 42.3313 ], [ -71.0185, 42.3313 ], [ -71.0184, 42.3313 ], [ -71.0184, 42.3313 ], [ -71.0184, 42.3313 ], [ -71.0183, 42.3313 ], [ -71.0182, 42.3312 ], [ -71.0182, 42.3312 ], [ -71.0181, 42.3312 ], [ -71.0181, 42.3312 ], [ -71.0180, 42.3312 ], [ -71.0179, 42.3311 ], [ -71.0179, 42.3311 ], [ -71.0178, 42.3311 ], [ -71.0178, 42.3311 ], [ -71.0177, 42.3311 ], [ -71.0176, 42.3310 ], [ -71.0175, 42.3310 ], [ -71.0174, 42.3310 ], [ -71.0173, 42.3310 ], [ -71.0173, 42.3310 ], [ -71.0172, 42.3309 ], [ -71.0171, 42.3309 ], [ -71.0171, 42.3309 ], [ -71.0170, 42.3309 ], [ -71.0169, 42.3309 ], [ -71.0168, 42.3309 ], [ -71.0168, 42.3309 ], [ -71.0167, 42.3308 ], [ -71.0166, 42.3308 ], [ -71.0165, 42.3308 ], [ -71.0165, 42.3308 ], [ -71.0164, 42.3308 ], [ -71.0163, 42.3308 ], [ -71.0163, 42.3308 ], [ -71.0162, 42.3308 ], [ -71.0162, 42.3308 ], [ -71.0161, 42.3308 ], [ -71.0160, 42.3307 ], [ -71.0158, 42.3307 ], [ -71.0157, 42.3307 ], [ -71.0156, 42.3308 ], [ -71.0156, 42.3308 ], [ -71.0156, 42.3308 ], [ -71.0156, 42.3308 ], [ -71.0156, 42.3308 ], [ -71.0156, 42.3308 ], [ -71.0156, 42.3308 ], [ -71.0156, 42.3308 ], [ -71.0156, 42.3308 ], [ -71.0156, 42.3308 ], [ -71.0156, 42.3308 ], [ -71.0156, 42.3308 ], [ -71.0156, 42.3308 ], [ -71.0156, 42.3308 ], [ -71.0155, 42.3308 ], [ -71.0155, 42.3308 ], [ -71.0155, 42.3308 ], [ -71.0155, 42.3308 ], [ -71.0155, 42.3308 ], [ -71.0155, 42.3308 ], [ -71.0154, 42.3308 ], [ -71.0154, 42.3308 ], [ -71.0154, 42.3308 ], [ -71.0153, 42.3308 ], [ -71.0153, 42.3308 ], [ -71.0153, 42.3308 ], [ -71.0152, 42.3308 ], [ -71.0151, 42.3309 ], [ -71.0150, 42.3310 ], [ -71.0150, 42.3311 ], [ -71.0149, 42.3312 ], [ -71.0148, 42.3313 ], [ -71.0148, 42.3313 ], [ -71.0147, 42.3313 ], [ -71.0147, 42.3313 ], [ -71.0147, 42.3313 ], [ -71.0147, 42.3314 ], [ -71.0147, 42.3314 ], [ -71.0147, 42.3314 ], [ -71.0147, 42.3314 ], [ -71.0147, 42.3314 ], [ -71.0147, 42.3314 ], [ -71.0147, 42.3314 ], [ -71.0147, 42.3314 ], [ -71.0147, 42.3314 ], [ -71.0147, 42.3314 ], [ -71.0147, 42.3314 ], [ -71.0146, 42.3314 ], [ -71.0146, 42.3314 ], [ -71.0146, 42.3314 ], [ -71.0146, 42.3314 ], [ -71.0146, 42.3313 ], [ -71.0146, 42.3313 ], [ -71.0144, 42.3316 ], [ -71.0144, 42.3316 ], [ -71.0144, 42.3316 ], [ -71.0144, 42.3316 ], [ -71.0144, 42.3316 ], [ -71.0144, 42.3316 ], [ -71.0144, 42.3316 ], [ -71.0144, 42.3316 ], [ -71.0144, 42.3316 ], [ -71.0144, 42.3316 ], [ -71.0144, 42.3316 ], [ -71.0144, 42.3316 ], [ -71.0144, 42.3316 ], [ -71.0144, 42.3317 ], [ -71.0144, 42.3317 ], [ -71.0144, 42.3317 ], [ -71.0144, 42.3317 ], [ -71.0144, 42.3317 ], [ -71.0144, 42.3317 ], [ -71.0144, 42.3317 ], [ -71.0143, 42.3318 ], [ -71.0143, 42.3318 ], [ -71.0142, 42.3319 ], [ -71.0142, 42.3320 ], [ -71.0141, 42.3320 ], [ -71.0141, 42.3320 ], [ -71.0140, 42.3321 ], [ -71.0140, 42.3322 ], [ -71.0140, 42.3322 ], [ -71.0139, 42.3323 ], [ -71.0139, 42.3323 ], [ -71.0138, 42.3323 ], [ -71.0138, 42.3324 ], [ -71.0138, 42.3324 ], [ -71.0138, 42.3325 ], [ -71.0137, 42.3325 ], [ -71.0137, 42.3326 ], [ -71.0137, 42.3326 ], [ -71.0137, 42.3326 ], [ -71.0137, 42.3326 ], [ -71.0137, 42.3326 ], [ -71.0137, 42.3327 ], [ -71.0137, 42.3327 ], [ -71.0137, 42.3327 ], [ -71.0137, 42.3327 ], [ -71.0136, 42.3327 ], [ -71.0136, 42.3327 ], [ -71.0136, 42.3327 ], [ -71.0136, 42.3328 ], [ -71.0135, 42.3329 ], [ -71.0135, 42.3329 ], [ -71.0135, 42.3329 ], [ -71.0134, 42.3330 ], [ -71.0134, 42.3331 ], [ -71.0133, 42.3331 ], [ -71.0133, 42.3331 ], [ -71.0133, 42.3331 ], [ -71.0133, 42.3332 ], [ -71.0133, 42.3332 ], [ -71.0133, 42.3332 ], [ -71.0133, 42.3332 ], [ -71.0133, 42.3332 ], [ -71.0133, 42.3332 ], [ -71.0133, 42.3332 ], [ -71.0133, 42.3332 ], [ -71.0132, 42.3332 ], [ -71.0132, 42.3333 ], [ -71.0132, 42.3333 ], [ -71.0132, 42.3333 ], [ -71.0131, 42.3335 ], [ -71.0131, 42.3335 ], [ -71.0130, 42.3336 ], [ -71.0130, 42.3336 ], [ -71.0130, 42.3337 ], [ -71.0130, 42.3337 ], [ -71.0130, 42.3337 ], [ -71.0130, 42.3337 ], [ -71.0130, 42.3337 ], [ -71.0130, 42.3337 ], [ -71.0130, 42.3337 ], [ -71.0130, 42.3337 ], [ -71.0130, 42.3337 ], [ -71.0129, 42.3338 ], [ -71.0129, 42.3338 ], [ -71.0129, 42.3338 ], [ -71.0129, 42.3338 ], [ -71.0129, 42.3338 ], [ -71.0129, 42.3338 ], [ -71.0129, 42.3338 ], [ -71.0129, 42.3338 ], [ -71.0129, 42.3338 ], [ -71.0129, 42.3338 ], [ -71.0129, 42.3338 ], [ -71.0129, 42.3338 ], [ -71.0129, 42.3338 ], [ -71.0129, 42.3338 ], [ -71.0129, 42.3338 ], [ -71.0129, 42.3338 ], [ -71.0129, 42.3338 ], [ -71.0129, 42.3338 ], [ -71.0128, 42.3338 ], [ -71.0128, 42.3338 ], [ -71.0127, 42.3339 ], [ -71.0127, 42.3339 ], [ -71.0128, 42.3340 ], [ -71.0128, 42.3340 ], [ -71.0128, 42.3340 ], [ -71.0128, 42.3340 ], [ -71.0128, 42.3340 ], [ -71.0128, 42.3340 ], [ -71.0128, 42.3340 ], [ -71.0128, 42.3340 ], [ -71.0128, 42.3341 ], [ -71.0128, 42.3341 ], [ -71.0128, 42.3341 ], [ -71.0127, 42.3342 ], [ -71.0127, 42.3343 ], [ -71.0127, 42.3344 ], [ -71.0127, 42.3344 ], [ -71.0126, 42.3344 ], [ -71.0126, 42.3345 ], [ -71.0126, 42.3345 ], [ -71.0126, 42.3345 ], [ -71.0126, 42.3346 ], [ -71.0126, 42.3346 ], [ -71.0126, 42.3346 ], [ -71.0126, 42.3348 ], [ -71.0126, 42.3349 ], [ -71.0126, 42.3350 ], [ -71.0126, 42.3350 ], [ -71.0126, 42.3351 ], [ -71.0127, 42.3351 ], [ -71.0127, 42.3352 ], [ -71.0127, 42.3353 ], [ -71.0127, 42.3353 ], [ -71.0127, 42.3354 ], [ -71.0127, 42.3354 ], [ -71.0127, 42.3354 ], [ -71.0127, 42.3355 ], [ -71.0127, 42.3355 ], [ -71.0126, 42.3355 ], [ -71.0126, 42.3356 ], [ -71.0126, 42.3356 ], [ -71.0125, 42.3357 ], [ -71.0124, 42.3358 ], [ -71.0123, 42.3359 ], [ -71.0122, 42.3360 ], [ -71.0122, 42.3360 ], [ -71.0122, 42.3360 ], [ -71.0122, 42.3361 ], [ -71.0121, 42.3361 ], [ -71.0121, 42.3362 ], [ -71.0121, 42.3362 ], [ -71.0121, 42.3363 ], [ -71.0121, 42.3363 ], [ -71.0121, 42.3364 ], [ -71.0121, 42.3364 ], [ -71.0121, 42.3365 ], [ -71.0121, 42.3365 ], [ -71.0122, 42.3366 ], [ -71.0122, 42.3366 ], [ -71.0122, 42.3367 ], [ -71.0122, 42.3368 ], [ -71.0123, 42.3368 ], [ -71.0123, 42.3369 ], [ -71.0124, 42.3370 ], [ -71.0124, 42.3370 ], [ -71.0124, 42.3371 ], [ -71.0125, 42.3371 ], [ -71.0125, 42.3371 ], [ -71.0125, 42.3371 ], [ -71.0125, 42.3371 ], [ -71.0125, 42.3371 ], [ -71.0125, 42.3371 ], [ -71.0125, 42.3371 ], [ -71.0125, 42.3372 ], [ -71.0125, 42.3372 ], [ -71.0125, 42.3372 ], [ -71.0127, 42.3372 ], [ -71.0130, 42.3371 ], [ -71.0131, 42.3372 ], [ -71.0129, 42.3373 ], [ -71.0127, 42.3377 ], [ -71.0128, 42.3379 ], [ -71.0130, 42.3379 ], [ -71.0131, 42.3380 ], [ -71.0132, 42.3380 ], [ -71.0133, 42.3381 ], [ -71.0134, 42.3381 ], [ -71.0134, 42.3381 ], [ -71.0134, 42.3381 ], [ -71.0135, 42.3381 ], [ -71.0135, 42.3382 ], [ -71.0135, 42.3382 ], [ -71.0135, 42.3382 ], [ -71.0135, 42.3382 ], [ -71.0136, 42.3382 ], [ -71.0136, 42.3381 ], [ -71.0136, 42.3381 ], [ -71.0137, 42.3381 ], [ -71.0137, 42.3381 ], [ -71.0138, 42.3382 ], [ -71.0140, 42.3382 ], [ -71.0140, 42.3382 ], [ -71.0141, 42.3382 ], [ -71.0142, 42.3382 ], [ -71.0142, 42.3382 ], [ -71.0143, 42.3382 ], [ -71.0143, 42.3382 ], [ -71.0144, 42.3382 ], [ -71.0144, 42.3382 ], [ -71.0145, 42.3382 ], [ -71.0145, 42.3382 ], [ -71.0145, 42.3382 ], [ -71.0145, 42.3382 ], [ -71.0145, 42.3382 ], [ -71.0146, 42.3382 ], [ -71.0146, 42.3382 ], [ -71.0146, 42.3382 ], [ -71.0146, 42.3383 ], [ -71.0147, 42.3383 ], [ -71.0147, 42.3383 ], [ -71.0148, 42.3383 ], [ -71.0148, 42.3383 ], [ -71.0148, 42.3383 ], [ -71.0148, 42.3383 ], [ -71.0149, 42.3383 ], [ -71.0150, 42.3384 ], [ -71.0151, 42.3384 ], [ -71.0152, 42.3384 ], [ -71.0152, 42.3384 ], [ -71.0153, 42.3384 ], [ -71.0154, 42.3384 ], [ -71.0154, 42.3384 ], [ -71.0156, 42.3384 ], [ -71.0157, 42.3384 ], [ -71.0158, 42.3384 ], [ -71.0158, 42.3384 ], [ -71.0159, 42.3384 ], [ -71.0160, 42.3384 ], [ -71.0160, 42.3384 ], [ -71.0161, 42.3384 ], [ -71.0161, 42.3384 ], [ -71.0162, 42.3384 ], [ -71.0162, 42.3385 ], [ -71.0163, 42.3385 ], [ -71.0164, 42.3385 ], [ -71.0164, 42.3385 ], [ -71.0165, 42.3384 ], [ -71.0166, 42.3384 ], [ -71.0167, 42.3384 ], [ -71.0167, 42.3384 ], [ -71.0167, 42.3384 ], [ -71.0168, 42.3384 ], [ -71.0169, 42.3384 ], [ -71.0170, 42.3384 ], [ -71.0170, 42.3384 ], [ -71.0171, 42.3384 ], [ -71.0172, 42.3384 ], [ -71.0173, 42.3384 ], [ -71.0174, 42.3384 ], [ -71.0174, 42.3384 ], [ -71.0175, 42.3384 ], [ -71.0176, 42.3384 ], [ -71.0176, 42.3384 ], [ -71.0177, 42.3384 ], [ -71.0178, 42.3384 ], [ -71.0179, 42.3384 ], [ -71.0180, 42.3384 ], [ -71.0180, 42.3384 ], [ -71.0181, 42.3384 ], [ -71.0181, 42.3384 ], [ -71.0182, 42.3384 ], [ -71.0183, 42.3384 ], [ -71.0183, 42.3384 ], [ -71.0184, 42.3384 ], [ -71.0184, 42.3384 ], [ -71.0185, 42.3384 ], [ -71.0185, 42.3384 ], [ -71.0186, 42.3384 ], [ -71.0186, 42.3384 ], [ -71.0187, 42.3384 ], [ -71.0188, 42.3383 ], [ -71.0189, 42.3383 ], [ -71.0189, 42.3383 ], [ -71.0190, 42.3383 ], [ -71.0190, 42.3383 ], [ -71.0191, 42.3383 ], [ -71.0191, 42.3383 ], [ -71.0192, 42.3383 ], [ -71.0192, 42.3383 ], [ -71.0193, 42.3383 ], [ -71.0194, 42.3383 ], [ -71.0194, 42.3383 ], [ -71.0195, 42.3383 ], [ -71.0196, 42.3383 ], [ -71.0197, 42.3382 ], [ -71.0198, 42.3382 ], [ -71.0199, 42.3382 ], [ -71.0199, 42.3382 ], [ -71.0200, 42.3382 ], [ -71.0201, 42.3382 ], [ -71.0201, 42.3382 ], [ -71.0202, 42.3381 ], [ -71.0203, 42.3381 ], [ -71.0203, 42.3381 ], [ -71.0204, 42.3381 ], [ -71.0205, 42.3381 ], [ -71.0205, 42.3380 ], [ -71.0206, 42.3380 ], [ -71.0206, 42.3380 ], [ -71.0207, 42.3380 ], [ -71.0208, 42.3380 ], [ -71.0209, 42.3379 ], [ -71.0209, 42.3379 ], [ -71.0209, 42.3379 ], [ -71.0209, 42.3379 ], [ -71.0209, 42.3379 ], [ -71.0209, 42.3379 ], [ -71.0209, 42.3379 ], [ -71.0209, 42.3379 ], [ -71.0209, 42.3379 ], [ -71.0209, 42.3379 ], [ -71.0209, 42.3379 ], [ -71.0209, 42.3379 ], [ -71.0209, 42.3379 ], [ -71.0209, 42.3379 ], [ -71.0209, 42.3379 ], [ -71.0209, 42.3379 ], [ -71.0209, 42.3379 ], [ -71.0209, 42.3379 ], [ -71.0209, 42.3379 ], [ -71.0209, 42.3379 ], [ -71.0209, 42.3379 ], [ -71.0209, 42.3379 ], [ -71.0210, 42.3379 ], [ -71.0210, 42.3379 ], [ -71.0210, 42.3379 ], [ -71.0210, 42.3379 ], [ -71.0210, 42.3379 ], [ -71.0210, 42.3378 ], [ -71.0211, 42.3378 ], [ -71.0211, 42.3378 ], [ -71.0212, 42.3378 ], [ -71.0213, 42.3377 ], [ -71.0213, 42.3377 ], [ -71.0214, 42.3377 ], [ -71.0215, 42.3376 ], [ -71.0215, 42.3376 ], [ -71.0216, 42.3376 ], [ -71.0216, 42.3375 ], [ -71.0216, 42.3375 ], [ -71.0217, 42.3375 ], [ -71.0217, 42.3375 ], [ -71.0218, 42.3374 ], [ -71.0218, 42.3374 ], [ -71.0218, 42.3374 ], [ -71.0219, 42.3373 ], [ -71.0220, 42.3373 ], [ -71.0220, 42.3372 ], [ -71.0221, 42.3372 ], [ -71.0221, 42.3371 ], [ -71.0222, 42.3371 ], [ -71.0222, 42.3370 ], [ -71.0223, 42.3370 ], [ -71.0223, 42.3370 ], [ -71.0224, 42.3369 ], [ -71.0224, 42.3369 ], [ -71.0225, 42.3368 ], [ -71.0225, 42.3368 ], [ -71.0225, 42.3368 ], [ -71.0225, 42.3368 ], [ -71.0226, 42.3367 ], [ -71.0226, 42.3367 ], [ -71.0226, 42.3367 ], [ -71.0227, 42.3366 ], [ -71.0227, 42.3366 ], [ -71.0227, 42.3365 ], [ -71.0228, 42.3365 ], [ -71.0228, 42.3364 ], [ -71.0228, 42.3363 ], [ -71.0229, 42.3363 ], [ -71.0229, 42.3362 ], [ -71.0229, 42.3362 ], [ -71.0229, 42.3361 ], [ -71.0230, 42.3360 ], [ -71.0230, 42.3360 ], [ -71.0230, 42.3359 ], [ -71.0230, 42.3359 ], [ -71.0230, 42.3358 ], [ -71.0230, 42.3357 ], [ -71.0231, 42.3357 ], [ -71.0231, 42.3356 ], [ -71.0231, 42.3356 ], [ -71.0231, 42.3355 ], [ -71.0231, 42.3354 ], [ -71.0231, 42.3354 ], [ -71.0231, 42.3353 ], [ -71.0231, 42.3352 ], [ -71.0231, 42.3352 ], [ -71.0231, 42.3351 ], [ -71.0231, 42.3350 ], [ -71.0231, 42.3350 ], [ -71.0230, 42.3348 ], [ -71.0229, 42.3347 ], [ -71.0229, 42.3346 ], [ -71.0229, 42.3346 ], [ -71.0229, 42.3345 ], [ -71.0228, 42.3344 ], [ -71.0228, 42.3344 ], [ -71.0228, 42.3343 ], [ -71.0227, 42.3343 ], [ -71.0227, 42.3342 ], [ -71.0226, 42.3341 ], [ -71.0226, 42.3341 ], [ -71.0226, 42.3340 ], [ -71.0225, 42.3340 ], [ -71.0225, 42.3340 ], [ -71.0225, 42.3339 ], [ -71.0225, 42.3339 ], [ -71.0224, 42.3338 ], [ -71.0224, 42.3338 ], [ -71.0224, 42.3337 ], [ -71.0224, 42.3337 ], [ -71.0223, 42.3337 ], [ -71.0223, 42.3337 ], [ -71.0223, 42.3337 ], [ -71.0223, 42.3337 ], [ -71.0224, 42.3337 ], [ -71.0224, 42.3337 ], [ -71.0224, 42.3337 ], [ -71.0224, 42.3337 ], [ -71.0224, 42.3337 ], [ -71.0224, 42.3337 ], [ -71.0224, 42.3337 ], [ -71.0224, 42.3337 ], [ -71.0224, 42.3337 ], [ -71.0224, 42.3337 ], [ -71.0224, 42.3337 ], [ -71.0224, 42.3337 ], [ -71.0224, 42.3337 ], [ -71.0224, 42.3337 ], [ -71.0224, 42.3337 ], [ -71.0224, 42.3337 ] ] ] } }, + { "type": "Feature", "properties": { "Name": "Allston", "density": 23.7100 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -71.1351, 42.3460 ], [ -71.1382, 42.3475 ], [ -71.1386, 42.3468 ], [ -71.1404, 42.3474 ], [ -71.1401, 42.3482 ], [ -71.1399, 42.3484 ], [ -71.1403, 42.3486 ], [ -71.1397, 42.3489 ], [ -71.1399, 42.3494 ], [ -71.1400, 42.3503 ], [ -71.1410, 42.3502 ], [ -71.1411, 42.3494 ], [ -71.1413, 42.3491 ], [ -71.1441, 42.3496 ], [ -71.1464, 42.3498 ], [ -71.1472, 42.3501 ], [ -71.1445, 42.3512 ], [ -71.1429, 42.3516 ], [ -71.1442, 42.3549 ], [ -71.1425, 42.3544 ], [ -71.1406, 42.3539 ], [ -71.1396, 42.3538 ], [ -71.1394, 42.3545 ], [ -71.1388, 42.3545 ], [ -71.1385, 42.3551 ], [ -71.1386, 42.3554 ], [ -71.1383, 42.3566 ], [ -71.1382, 42.3568 ], [ -71.1380, 42.3573 ], [ -71.1379, 42.3576 ], [ -71.1373, 42.3587 ], [ -71.1371, 42.3589 ], [ -71.1369, 42.3593 ], [ -71.1366, 42.3601 ], [ -71.1362, 42.3608 ], [ -71.1358, 42.3619 ], [ -71.1353, 42.3631 ], [ -71.1353, 42.3640 ], [ -71.1353, 42.3646 ], [ -71.1356, 42.3667 ], [ -71.1356, 42.3667 ], [ -71.1356, 42.3667 ], [ -71.1356, 42.3667 ], [ -71.1356, 42.3667 ], [ -71.1356, 42.3667 ], [ -71.1356, 42.3667 ], [ -71.1356, 42.3667 ], [ -71.1356, 42.3667 ], [ -71.1356, 42.3667 ], [ -71.1356, 42.3667 ], [ -71.1356, 42.3667 ], [ -71.1356, 42.3668 ], [ -71.1350, 42.3670 ], [ -71.1350, 42.3670 ], [ -71.1350, 42.3670 ], [ -71.1349, 42.3670 ], [ -71.1349, 42.3670 ], [ -71.1349, 42.3670 ], [ -71.1349, 42.3670 ], [ -71.1349, 42.3670 ], [ -71.1349, 42.3670 ], [ -71.1349, 42.3670 ], [ -71.1349, 42.3670 ], [ -71.1349, 42.3670 ], [ -71.1349, 42.3670 ], [ -71.1349, 42.3670 ], [ -71.1349, 42.3670 ], [ -71.1349, 42.3670 ], [ -71.1349, 42.3670 ], [ -71.1349, 42.3670 ], [ -71.1349, 42.3670 ], [ -71.1349, 42.3670 ], [ -71.1349, 42.3670 ], [ -71.1348, 42.3670 ], [ -71.1348, 42.3671 ], [ -71.1348, 42.3671 ], [ -71.1347, 42.3671 ], [ -71.1347, 42.3671 ], [ -71.1347, 42.3671 ], [ -71.1347, 42.3671 ], [ -71.1346, 42.3671 ], [ -71.1345, 42.3672 ], [ -71.1345, 42.3672 ], [ -71.1345, 42.3672 ], [ -71.1344, 42.3672 ], [ -71.1344, 42.3672 ], [ -71.1343, 42.3672 ], [ -71.1343, 42.3672 ], [ -71.1342, 42.3673 ], [ -71.1341, 42.3673 ], [ -71.1341, 42.3673 ], [ -71.1339, 42.3673 ], [ -71.1338, 42.3674 ], [ -71.1337, 42.3674 ], [ -71.1336, 42.3675 ], [ -71.1335, 42.3675 ], [ -71.1335, 42.3675 ], [ -71.1334, 42.3676 ], [ -71.1333, 42.3676 ], [ -71.1333, 42.3676 ], [ -71.1332, 42.3677 ], [ -71.1331, 42.3677 ], [ -71.1330, 42.3678 ], [ -71.1329, 42.3678 ], [ -71.1329, 42.3678 ], [ -71.1328, 42.3679 ], [ -71.1327, 42.3679 ], [ -71.1327, 42.3680 ], [ -71.1326, 42.3680 ], [ -71.1326, 42.3681 ], [ -71.1325, 42.3681 ], [ -71.1324, 42.3682 ], [ -71.1323, 42.3682 ], [ -71.1322, 42.3683 ], [ -71.1322, 42.3683 ], [ -71.1321, 42.3684 ], [ -71.1320, 42.3685 ], [ -71.1320, 42.3685 ], [ -71.1319, 42.3686 ], [ -71.1319, 42.3686 ], [ -71.1318, 42.3686 ], [ -71.1317, 42.3687 ], [ -71.1317, 42.3687 ], [ -71.1317, 42.3687 ], [ -71.1317, 42.3687 ], [ -71.1317, 42.3687 ], [ -71.1317, 42.3687 ], [ -71.1317, 42.3687 ], [ -71.1317, 42.3687 ], [ -71.1316, 42.3688 ], [ -71.1315, 42.3688 ], [ -71.1314, 42.3689 ], [ -71.1314, 42.3689 ], [ -71.1314, 42.3689 ], [ -71.1313, 42.3690 ], [ -71.1313, 42.3690 ], [ -71.1313, 42.3690 ], [ -71.1312, 42.3691 ], [ -71.1312, 42.3691 ], [ -71.1312, 42.3692 ], [ -71.1311, 42.3692 ], [ -71.1311, 42.3693 ], [ -71.1311, 42.3694 ], [ -71.1310, 42.3695 ], [ -71.1310, 42.3695 ], [ -71.1310, 42.3696 ], [ -71.1310, 42.3696 ], [ -71.1310, 42.3698 ], [ -71.1310, 42.3699 ], [ -71.1310, 42.3699 ], [ -71.1310, 42.3699 ], [ -71.1311, 42.3700 ], [ -71.1311, 42.3701 ], [ -71.1311, 42.3701 ], [ -71.1312, 42.3702 ], [ -71.1312, 42.3703 ], [ -71.1312, 42.3704 ], [ -71.1312, 42.3704 ], [ -71.1313, 42.3706 ], [ -71.1313, 42.3706 ], [ -71.1314, 42.3707 ], [ -71.1314, 42.3708 ], [ -71.1315, 42.3709 ], [ -71.1316, 42.3710 ], [ -71.1317, 42.3711 ], [ -71.1317, 42.3711 ], [ -71.1317, 42.3712 ], [ -71.1317, 42.3712 ], [ -71.1317, 42.3712 ], [ -71.1317, 42.3712 ], [ -71.1317, 42.3712 ], [ -71.1317, 42.3712 ], [ -71.1317, 42.3712 ], [ -71.1318, 42.3712 ], [ -71.1318, 42.3712 ], [ -71.1318, 42.3712 ], [ -71.1318, 42.3712 ], [ -71.1318, 42.3713 ], [ -71.1318, 42.3713 ], [ -71.1318, 42.3713 ], [ -71.1318, 42.3713 ], [ -71.1318, 42.3713 ], [ -71.1318, 42.3713 ], [ -71.1319, 42.3713 ], [ -71.1319, 42.3713 ], [ -71.1319, 42.3713 ], [ -71.1319, 42.3713 ], [ -71.1319, 42.3714 ], [ -71.1319, 42.3714 ], [ -71.1319, 42.3714 ], [ -71.1319, 42.3714 ], [ -71.1319, 42.3714 ], [ -71.1319, 42.3714 ], [ -71.1319, 42.3714 ], [ -71.1320, 42.3714 ], [ -71.1320, 42.3714 ], [ -71.1320, 42.3715 ], [ -71.1320, 42.3715 ], [ -71.1320, 42.3715 ], [ -71.1320, 42.3715 ], [ -71.1320, 42.3715 ], [ -71.1320, 42.3715 ], [ -71.1320, 42.3715 ], [ -71.1320, 42.3715 ], [ -71.1321, 42.3715 ], [ -71.1321, 42.3715 ], [ -71.1321, 42.3715 ], [ -71.1321, 42.3715 ], [ -71.1321, 42.3716 ], [ -71.1321, 42.3716 ], [ -71.1321, 42.3716 ], [ -71.1321, 42.3716 ], [ -71.1321, 42.3716 ], [ -71.1322, 42.3716 ], [ -71.1322, 42.3716 ], [ -71.1322, 42.3717 ], [ -71.1322, 42.3717 ], [ -71.1323, 42.3717 ], [ -71.1323, 42.3717 ], [ -71.1323, 42.3717 ], [ -71.1323, 42.3717 ], [ -71.1323, 42.3717 ], [ -71.1323, 42.3717 ], [ -71.1323, 42.3717 ], [ -71.1323, 42.3717 ], [ -71.1324, 42.3718 ], [ -71.1324, 42.3718 ], [ -71.1325, 42.3720 ], [ -71.1325, 42.3720 ], [ -71.1325, 42.3720 ], [ -71.1325, 42.3720 ], [ -71.1325, 42.3720 ], [ -71.1325, 42.3720 ], [ -71.1325, 42.3720 ], [ -71.1325, 42.3720 ], [ -71.1325, 42.3720 ], [ -71.1326, 42.3721 ], [ -71.1326, 42.3721 ], [ -71.1326, 42.3721 ], [ -71.1326, 42.3721 ], [ -71.1326, 42.3721 ], [ -71.1326, 42.3721 ], [ -71.1326, 42.3721 ], [ -71.1326, 42.3721 ], [ -71.1326, 42.3722 ], [ -71.1326, 42.3722 ], [ -71.1326, 42.3722 ], [ -71.1326, 42.3722 ], [ -71.1326, 42.3722 ], [ -71.1326, 42.3723 ], [ -71.1326, 42.3723 ], [ -71.1326, 42.3723 ], [ -71.1326, 42.3723 ], [ -71.1326, 42.3724 ], [ -71.1326, 42.3724 ], [ -71.1326, 42.3725 ], [ -71.1326, 42.3725 ], [ -71.1326, 42.3725 ], [ -71.1326, 42.3725 ], [ -71.1326, 42.3726 ], [ -71.1326, 42.3726 ], [ -71.1325, 42.3726 ], [ -71.1325, 42.3727 ], [ -71.1325, 42.3727 ], [ -71.1325, 42.3727 ], [ -71.1325, 42.3727 ], [ -71.1325, 42.3728 ], [ -71.1325, 42.3728 ], [ -71.1325, 42.3728 ], [ -71.1324, 42.3728 ], [ -71.1323, 42.3729 ], [ -71.1323, 42.3729 ], [ -71.1323, 42.3730 ], [ -71.1323, 42.3730 ], [ -71.1323, 42.3730 ], [ -71.1323, 42.3730 ], [ -71.1323, 42.3730 ], [ -71.1322, 42.3730 ], [ -71.1322, 42.3730 ], [ -71.1322, 42.3730 ], [ -71.1322, 42.3730 ], [ -71.1322, 42.3730 ], [ -71.1322, 42.3730 ], [ -71.1322, 42.3730 ], [ -71.1322, 42.3730 ], [ -71.1322, 42.3730 ], [ -71.1322, 42.3730 ], [ -71.1322, 42.3730 ], [ -71.1322, 42.3730 ], [ -71.1322, 42.3730 ], [ -71.1322, 42.3730 ], [ -71.1322, 42.3730 ], [ -71.1322, 42.3730 ], [ -71.1322, 42.3730 ], [ -71.1321, 42.3730 ], [ -71.1321, 42.3731 ], [ -71.1321, 42.3731 ], [ -71.1321, 42.3731 ], [ -71.1321, 42.3731 ], [ -71.1320, 42.3731 ], [ -71.1320, 42.3731 ], [ -71.1320, 42.3731 ], [ -71.1320, 42.3731 ], [ -71.1320, 42.3731 ], [ -71.1320, 42.3731 ], [ -71.1320, 42.3731 ], [ -71.1320, 42.3731 ], [ -71.1319, 42.3731 ], [ -71.1319, 42.3731 ], [ -71.1319, 42.3732 ], [ -71.1319, 42.3732 ], [ -71.1319, 42.3732 ], [ -71.1319, 42.3732 ], [ -71.1318, 42.3732 ], [ -71.1318, 42.3732 ], [ -71.1318, 42.3732 ], [ -71.1318, 42.3732 ], [ -71.1318, 42.3732 ], [ -71.1318, 42.3732 ], [ -71.1318, 42.3732 ], [ -71.1317, 42.3732 ], [ -71.1317, 42.3732 ], [ -71.1317, 42.3732 ], [ -71.1317, 42.3733 ], [ -71.1317, 42.3733 ], [ -71.1317, 42.3733 ], [ -71.1316, 42.3733 ], [ -71.1316, 42.3733 ], [ -71.1315, 42.3733 ], [ -71.1315, 42.3733 ], [ -71.1315, 42.3733 ], [ -71.1315, 42.3733 ], [ -71.1315, 42.3733 ], [ -71.1314, 42.3734 ], [ -71.1314, 42.3734 ], [ -71.1313, 42.3734 ], [ -71.1312, 42.3734 ], [ -71.1311, 42.3734 ], [ -71.1310, 42.3735 ], [ -71.1310, 42.3735 ], [ -71.1310, 42.3735 ], [ -71.1309, 42.3735 ], [ -71.1309, 42.3735 ], [ -71.1308, 42.3735 ], [ -71.1308, 42.3735 ], [ -71.1308, 42.3735 ], [ -71.1307, 42.3735 ], [ -71.1306, 42.3735 ], [ -71.1305, 42.3735 ], [ -71.1305, 42.3735 ], [ -71.1304, 42.3735 ], [ -71.1302, 42.3736 ], [ -71.1302, 42.3736 ], [ -71.1302, 42.3736 ], [ -71.1301, 42.3736 ], [ -71.1301, 42.3736 ], [ -71.1301, 42.3736 ], [ -71.1300, 42.3736 ], [ -71.1300, 42.3736 ], [ -71.1300, 42.3736 ], [ -71.1299, 42.3736 ], [ -71.1299, 42.3736 ], [ -71.1297, 42.3736 ], [ -71.1296, 42.3736 ], [ -71.1295, 42.3736 ], [ -71.1295, 42.3735 ], [ -71.1295, 42.3735 ], [ -71.1295, 42.3735 ], [ -71.1294, 42.3735 ], [ -71.1294, 42.3735 ], [ -71.1293, 42.3735 ], [ -71.1292, 42.3735 ], [ -71.1292, 42.3735 ], [ -71.1290, 42.3735 ], [ -71.1290, 42.3734 ], [ -71.1289, 42.3734 ], [ -71.1289, 42.3734 ], [ -71.1289, 42.3734 ], [ -71.1289, 42.3734 ], [ -71.1288, 42.3734 ], [ -71.1288, 42.3734 ], [ -71.1288, 42.3734 ], [ -71.1288, 42.3734 ], [ -71.1287, 42.3734 ], [ -71.1287, 42.3734 ], [ -71.1287, 42.3734 ], [ -71.1286, 42.3733 ], [ -71.1286, 42.3733 ], [ -71.1286, 42.3733 ], [ -71.1285, 42.3733 ], [ -71.1285, 42.3733 ], [ -71.1285, 42.3733 ], [ -71.1285, 42.3733 ], [ -71.1285, 42.3733 ], [ -71.1284, 42.3732 ], [ -71.1284, 42.3732 ], [ -71.1283, 42.3732 ], [ -71.1283, 42.3732 ], [ -71.1283, 42.3732 ], [ -71.1283, 42.3732 ], [ -71.1283, 42.3732 ], [ -71.1283, 42.3732 ], [ -71.1283, 42.3732 ], [ -71.1282, 42.3731 ], [ -71.1282, 42.3731 ], [ -71.1282, 42.3731 ], [ -71.1282, 42.3731 ], [ -71.1281, 42.3731 ], [ -71.1281, 42.3731 ], [ -71.1281, 42.3730 ], [ -71.1280, 42.3730 ], [ -71.1280, 42.3730 ], [ -71.1280, 42.3730 ], [ -71.1280, 42.3730 ], [ -71.1280, 42.3730 ], [ -71.1280, 42.3730 ], [ -71.1279, 42.3730 ], [ -71.1279, 42.3729 ], [ -71.1279, 42.3729 ], [ -71.1279, 42.3729 ], [ -71.1278, 42.3729 ], [ -71.1278, 42.3729 ], [ -71.1278, 42.3729 ], [ -71.1278, 42.3729 ], [ -71.1278, 42.3729 ], [ -71.1278, 42.3729 ], [ -71.1278, 42.3729 ], [ -71.1276, 42.3728 ], [ -71.1276, 42.3728 ], [ -71.1276, 42.3727 ], [ -71.1276, 42.3727 ], [ -71.1276, 42.3727 ], [ -71.1275, 42.3727 ], [ -71.1275, 42.3727 ], [ -71.1275, 42.3727 ], [ -71.1275, 42.3727 ], [ -71.1275, 42.3727 ], [ -71.1275, 42.3726 ], [ -71.1274, 42.3726 ], [ -71.1274, 42.3726 ], [ -71.1274, 42.3726 ], [ -71.1274, 42.3726 ], [ -71.1274, 42.3726 ], [ -71.1274, 42.3726 ], [ -71.1273, 42.3726 ], [ -71.1273, 42.3725 ], [ -71.1273, 42.3725 ], [ -71.1273, 42.3725 ], [ -71.1273, 42.3725 ], [ -71.1272, 42.3725 ], [ -71.1272, 42.3724 ], [ -71.1272, 42.3724 ], [ -71.1272, 42.3724 ], [ -71.1272, 42.3724 ], [ -71.1271, 42.3724 ], [ -71.1271, 42.3724 ], [ -71.1271, 42.3724 ], [ -71.1271, 42.3724 ], [ -71.1271, 42.3723 ], [ -71.1271, 42.3723 ], [ -71.1271, 42.3723 ], [ -71.1270, 42.3723 ], [ -71.1270, 42.3723 ], [ -71.1270, 42.3723 ], [ -71.1270, 42.3723 ], [ -71.1270, 42.3723 ], [ -71.1270, 42.3722 ], [ -71.1269, 42.3722 ], [ -71.1269, 42.3722 ], [ -71.1269, 42.3722 ], [ -71.1269, 42.3722 ], [ -71.1269, 42.3722 ], [ -71.1269, 42.3722 ], [ -71.1269, 42.3721 ], [ -71.1268, 42.3721 ], [ -71.1268, 42.3721 ], [ -71.1268, 42.3720 ], [ -71.1268, 42.3720 ], [ -71.1268, 42.3720 ], [ -71.1267, 42.3720 ], [ -71.1267, 42.3720 ], [ -71.1267, 42.3719 ], [ -71.1267, 42.3719 ], [ -71.1267, 42.3719 ], [ -71.1266, 42.3718 ], [ -71.1266, 42.3718 ], [ -71.1266, 42.3718 ], [ -71.1266, 42.3718 ], [ -71.1266, 42.3718 ], [ -71.1266, 42.3718 ], [ -71.1266, 42.3718 ], [ -71.1266, 42.3717 ], [ -71.1266, 42.3717 ], [ -71.1266, 42.3717 ], [ -71.1265, 42.3717 ], [ -71.1265, 42.3717 ], [ -71.1265, 42.3716 ], [ -71.1265, 42.3716 ], [ -71.1265, 42.3716 ], [ -71.1265, 42.3716 ], [ -71.1265, 42.3715 ], [ -71.1265, 42.3715 ], [ -71.1265, 42.3715 ], [ -71.1265, 42.3714 ], [ -71.1265, 42.3714 ], [ -71.1265, 42.3714 ], [ -71.1264, 42.3713 ], [ -71.1264, 42.3713 ], [ -71.1264, 42.3713 ], [ -71.1264, 42.3712 ], [ -71.1264, 42.3711 ], [ -71.1264, 42.3710 ], [ -71.1264, 42.3710 ], [ -71.1264, 42.3710 ], [ -71.1264, 42.3709 ], [ -71.1264, 42.3709 ], [ -71.1264, 42.3708 ], [ -71.1264, 42.3708 ], [ -71.1263, 42.3707 ], [ -71.1263, 42.3707 ], [ -71.1263, 42.3706 ], [ -71.1262, 42.3705 ], [ -71.1261, 42.3704 ], [ -71.1260, 42.3703 ], [ -71.1260, 42.3703 ], [ -71.1260, 42.3703 ], [ -71.1259, 42.3702 ], [ -71.1259, 42.3701 ], [ -71.1258, 42.3701 ], [ -71.1258, 42.3700 ], [ -71.1257, 42.3700 ], [ -71.1257, 42.3699 ], [ -71.1257, 42.3699 ], [ -71.1255, 42.3699 ], [ -71.1256, 42.3701 ], [ -71.1255, 42.3701 ], [ -71.1252, 42.3696 ], [ -71.1254, 42.3695 ], [ -71.1254, 42.3695 ], [ -71.1254, 42.3695 ], [ -71.1253, 42.3694 ], [ -71.1253, 42.3693 ], [ -71.1252, 42.3693 ], [ -71.1252, 42.3692 ], [ -71.1252, 42.3692 ], [ -71.1251, 42.3692 ], [ -71.1251, 42.3692 ], [ -71.1250, 42.3691 ], [ -71.1250, 42.3690 ], [ -71.1249, 42.3690 ], [ -71.1249, 42.3690 ], [ -71.1249, 42.3690 ], [ -71.1249, 42.3690 ], [ -71.1249, 42.3690 ], [ -71.1249, 42.3690 ], [ -71.1249, 42.3690 ], [ -71.1249, 42.3690 ], [ -71.1249, 42.3690 ], [ -71.1249, 42.3690 ], [ -71.1249, 42.3690 ], [ -71.1249, 42.3690 ], [ -71.1249, 42.3690 ], [ -71.1249, 42.3690 ], [ -71.1249, 42.3690 ], [ -71.1249, 42.3690 ], [ -71.1248, 42.3690 ], [ -71.1248, 42.3690 ], [ -71.1248, 42.3690 ], [ -71.1248, 42.3690 ], [ -71.1248, 42.3690 ], [ -71.1248, 42.3690 ], [ -71.1248, 42.3690 ], [ -71.1248, 42.3689 ], [ -71.1248, 42.3689 ], [ -71.1248, 42.3689 ], [ -71.1248, 42.3689 ], [ -71.1246, 42.3689 ], [ -71.1245, 42.3688 ], [ -71.1244, 42.3688 ], [ -71.1242, 42.3687 ], [ -71.1241, 42.3687 ], [ -71.1241, 42.3687 ], [ -71.1240, 42.3687 ], [ -71.1240, 42.3687 ], [ -71.1239, 42.3687 ], [ -71.1238, 42.3687 ], [ -71.1237, 42.3687 ], [ -71.1237, 42.3687 ], [ -71.1236, 42.3687 ], [ -71.1236, 42.3687 ], [ -71.1236, 42.3687 ], [ -71.1236, 42.3687 ], [ -71.1235, 42.3687 ], [ -71.1235, 42.3687 ], [ -71.1235, 42.3687 ], [ -71.1235, 42.3687 ], [ -71.1235, 42.3687 ], [ -71.1235, 42.3687 ], [ -71.1235, 42.3687 ], [ -71.1233, 42.3686 ], [ -71.1233, 42.3686 ], [ -71.1232, 42.3686 ], [ -71.1232, 42.3686 ], [ -71.1232, 42.3686 ], [ -71.1232, 42.3685 ], [ -71.1232, 42.3685 ], [ -71.1232, 42.3685 ], [ -71.1232, 42.3685 ], [ -71.1232, 42.3685 ], [ -71.1232, 42.3685 ], [ -71.1232, 42.3685 ], [ -71.1232, 42.3684 ], [ -71.1231, 42.3684 ], [ -71.1231, 42.3684 ], [ -71.1230, 42.3684 ], [ -71.1229, 42.3683 ], [ -71.1229, 42.3683 ], [ -71.1228, 42.3683 ], [ -71.1227, 42.3683 ], [ -71.1226, 42.3682 ], [ -71.1226, 42.3682 ], [ -71.1225, 42.3682 ], [ -71.1225, 42.3682 ], [ -71.1225, 42.3682 ], [ -71.1225, 42.3682 ], [ -71.1224, 42.3682 ], [ -71.1224, 42.3682 ], [ -71.1224, 42.3681 ], [ -71.1223, 42.3681 ], [ -71.1223, 42.3681 ], [ -71.1223, 42.3681 ], [ -71.1223, 42.3681 ], [ -71.1222, 42.3681 ], [ -71.1222, 42.3681 ], [ -71.1222, 42.3681 ], [ -71.1222, 42.3681 ], [ -71.1222, 42.3681 ], [ -71.1221, 42.3681 ], [ -71.1221, 42.3681 ], [ -71.1221, 42.3681 ], [ -71.1221, 42.3681 ], [ -71.1221, 42.3681 ], [ -71.1221, 42.3681 ], [ -71.1221, 42.3681 ], [ -71.1220, 42.3681 ], [ -71.1220, 42.3681 ], [ -71.1220, 42.3681 ], [ -71.1220, 42.3681 ], [ -71.1219, 42.3681 ], [ -71.1219, 42.3681 ], [ -71.1219, 42.3681 ], [ -71.1219, 42.3681 ], [ -71.1219, 42.3681 ], [ -71.1219, 42.3681 ], [ -71.1219, 42.3681 ], [ -71.1218, 42.3681 ], [ -71.1218, 42.3681 ], [ -71.1218, 42.3681 ], [ -71.1218, 42.3681 ], [ -71.1218, 42.3681 ], [ -71.1218, 42.3681 ], [ -71.1217, 42.3681 ], [ -71.1217, 42.3681 ], [ -71.1217, 42.3680 ], [ -71.1216, 42.3680 ], [ -71.1216, 42.3680 ], [ -71.1215, 42.3680 ], [ -71.1215, 42.3680 ], [ -71.1215, 42.3680 ], [ -71.1215, 42.3681 ], [ -71.1214, 42.3681 ], [ -71.1214, 42.3681 ], [ -71.1214, 42.3681 ], [ -71.1214, 42.3681 ], [ -71.1214, 42.3681 ], [ -71.1214, 42.3681 ], [ -71.1214, 42.3681 ], [ -71.1214, 42.3681 ], [ -71.1213, 42.3681 ], [ -71.1213, 42.3681 ], [ -71.1213, 42.3681 ], [ -71.1212, 42.3681 ], [ -71.1212, 42.3681 ], [ -71.1212, 42.3681 ], [ -71.1212, 42.3681 ], [ -71.1212, 42.3681 ], [ -71.1212, 42.3681 ], [ -71.1212, 42.3681 ], [ -71.1211, 42.3681 ], [ -71.1211, 42.3681 ], [ -71.1210, 42.3681 ], [ -71.1210, 42.3681 ], [ -71.1210, 42.3681 ], [ -71.1209, 42.3681 ], [ -71.1209, 42.3681 ], [ -71.1209, 42.3681 ], [ -71.1209, 42.3681 ], [ -71.1209, 42.3681 ], [ -71.1209, 42.3681 ], [ -71.1209, 42.3681 ], [ -71.1208, 42.3681 ], [ -71.1208, 42.3681 ], [ -71.1208, 42.3681 ], [ -71.1208, 42.3681 ], [ -71.1207, 42.3681 ], [ -71.1207, 42.3681 ], [ -71.1207, 42.3681 ], [ -71.1206, 42.3681 ], [ -71.1206, 42.3681 ], [ -71.1206, 42.3681 ], [ -71.1206, 42.3681 ], [ -71.1206, 42.3681 ], [ -71.1206, 42.3681 ], [ -71.1206, 42.3681 ], [ -71.1206, 42.3681 ], [ -71.1205, 42.3681 ], [ -71.1205, 42.3681 ], [ -71.1205, 42.3681 ], [ -71.1205, 42.3681 ], [ -71.1205, 42.3681 ], [ -71.1205, 42.3681 ], [ -71.1205, 42.3681 ], [ -71.1205, 42.3681 ], [ -71.1205, 42.3681 ], [ -71.1205, 42.3681 ], [ -71.1205, 42.3681 ], [ -71.1205, 42.3681 ], [ -71.1205, 42.3681 ], [ -71.1205, 42.3681 ], [ -71.1205, 42.3681 ], [ -71.1204, 42.3681 ], [ -71.1204, 42.3681 ], [ -71.1204, 42.3681 ], [ -71.1204, 42.3681 ], [ -71.1204, 42.3681 ], [ -71.1204, 42.3681 ], [ -71.1204, 42.3681 ], [ -71.1204, 42.3681 ], [ -71.1204, 42.3681 ], [ -71.1204, 42.3681 ], [ -71.1204, 42.3681 ], [ -71.1204, 42.3681 ], [ -71.1204, 42.3681 ], [ -71.1204, 42.3681 ], [ -71.1204, 42.3681 ], [ -71.1204, 42.3681 ], [ -71.1204, 42.3681 ], [ -71.1204, 42.3681 ], [ -71.1204, 42.3681 ], [ -71.1203, 42.3681 ], [ -71.1203, 42.3681 ], [ -71.1203, 42.3681 ], [ -71.1203, 42.3681 ], [ -71.1203, 42.3682 ], [ -71.1203, 42.3682 ], [ -71.1203, 42.3682 ], [ -71.1203, 42.3682 ], [ -71.1203, 42.3681 ], [ -71.1203, 42.3681 ], [ -71.1203, 42.3681 ], [ -71.1202, 42.3681 ], [ -71.1202, 42.3681 ], [ -71.1202, 42.3682 ], [ -71.1202, 42.3682 ], [ -71.1201, 42.3682 ], [ -71.1201, 42.3682 ], [ -71.1200, 42.3682 ], [ -71.1200, 42.3682 ], [ -71.1200, 42.3682 ], [ -71.1199, 42.3682 ], [ -71.1199, 42.3682 ], [ -71.1199, 42.3682 ], [ -71.1198, 42.3682 ], [ -71.1198, 42.3682 ], [ -71.1198, 42.3682 ], [ -71.1197, 42.3682 ], [ -71.1197, 42.3682 ], [ -71.1197, 42.3682 ], [ -71.1197, 42.3682 ], [ -71.1197, 42.3682 ], [ -71.1197, 42.3682 ], [ -71.1197, 42.3682 ], [ -71.1197, 42.3682 ], [ -71.1197, 42.3682 ], [ -71.1197, 42.3682 ], [ -71.1196, 42.3682 ], [ -71.1196, 42.3682 ], [ -71.1196, 42.3682 ], [ -71.1196, 42.3682 ], [ -71.1196, 42.3682 ], [ -71.1196, 42.3682 ], [ -71.1196, 42.3682 ], [ -71.1195, 42.3682 ], [ -71.1195, 42.3682 ], [ -71.1195, 42.3682 ], [ -71.1195, 42.3682 ], [ -71.1195, 42.3682 ], [ -71.1195, 42.3682 ], [ -71.1195, 42.3682 ], [ -71.1195, 42.3682 ], [ -71.1195, 42.3682 ], [ -71.1195, 42.3682 ], [ -71.1195, 42.3682 ], [ -71.1194, 42.3682 ], [ -71.1194, 42.3682 ], [ -71.1194, 42.3682 ], [ -71.1194, 42.3682 ], [ -71.1194, 42.3682 ], [ -71.1194, 42.3682 ], [ -71.1194, 42.3682 ], [ -71.1194, 42.3682 ], [ -71.1194, 42.3682 ], [ -71.1194, 42.3682 ], [ -71.1194, 42.3682 ], [ -71.1194, 42.3682 ], [ -71.1194, 42.3682 ], [ -71.1194, 42.3682 ], [ -71.1194, 42.3682 ], [ -71.1193, 42.3682 ], [ -71.1193, 42.3682 ], [ -71.1193, 42.3682 ], [ -71.1193, 42.3682 ], [ -71.1193, 42.3682 ], [ -71.1193, 42.3682 ], [ -71.1193, 42.3682 ], [ -71.1193, 42.3682 ], [ -71.1192, 42.3682 ], [ -71.1192, 42.3682 ], [ -71.1192, 42.3682 ], [ -71.1192, 42.3682 ], [ -71.1192, 42.3681 ], [ -71.1191, 42.3681 ], [ -71.1191, 42.3681 ], [ -71.1191, 42.3681 ], [ -71.1191, 42.3681 ], [ -71.1191, 42.3681 ], [ -71.1191, 42.3681 ], [ -71.1190, 42.3681 ], [ -71.1190, 42.3681 ], [ -71.1190, 42.3681 ], [ -71.1190, 42.3681 ], [ -71.1190, 42.3681 ], [ -71.1189, 42.3681 ], [ -71.1189, 42.3681 ], [ -71.1189, 42.3681 ], [ -71.1189, 42.3681 ], [ -71.1188, 42.3681 ], [ -71.1188, 42.3681 ], [ -71.1188, 42.3681 ], [ -71.1188, 42.3681 ], [ -71.1188, 42.3681 ], [ -71.1188, 42.3681 ], [ -71.1188, 42.3681 ], [ -71.1188, 42.3681 ], [ -71.1188, 42.3681 ], [ -71.1187, 42.3681 ], [ -71.1187, 42.3681 ], [ -71.1187, 42.3681 ], [ -71.1187, 42.3681 ], [ -71.1187, 42.3681 ], [ -71.1187, 42.3681 ], [ -71.1187, 42.3681 ], [ -71.1187, 42.3681 ], [ -71.1187, 42.3681 ], [ -71.1187, 42.3681 ], [ -71.1187, 42.3681 ], [ -71.1187, 42.3681 ], [ -71.1187, 42.3681 ], [ -71.1187, 42.3681 ], [ -71.1187, 42.3681 ], [ -71.1186, 42.3681 ], [ -71.1186, 42.3681 ], [ -71.1186, 42.3681 ], [ -71.1186, 42.3681 ], [ -71.1186, 42.3681 ], [ -71.1186, 42.3681 ], [ -71.1186, 42.3681 ], [ -71.1186, 42.3681 ], [ -71.1186, 42.3681 ], [ -71.1186, 42.3681 ], [ -71.1186, 42.3681 ], [ -71.1186, 42.3682 ], [ -71.1186, 42.3682 ], [ -71.1186, 42.3682 ], [ -71.1185, 42.3682 ], [ -71.1185, 42.3682 ], [ -71.1185, 42.3681 ], [ -71.1185, 42.3681 ], [ -71.1185, 42.3681 ], [ -71.1185, 42.3681 ], [ -71.1185, 42.3681 ], [ -71.1185, 42.3681 ], [ -71.1185, 42.3681 ], [ -71.1184, 42.3681 ], [ -71.1184, 42.3681 ], [ -71.1184, 42.3681 ], [ -71.1184, 42.3681 ], [ -71.1184, 42.3681 ], [ -71.1184, 42.3680 ], [ -71.1184, 42.3680 ], [ -71.1184, 42.3680 ], [ -71.1184, 42.3680 ], [ -71.1184, 42.3680 ], [ -71.1184, 42.3680 ], [ -71.1184, 42.3680 ], [ -71.1184, 42.3680 ], [ -71.1184, 42.3680 ], [ -71.1183, 42.3680 ], [ -71.1183, 42.3679 ], [ -71.1183, 42.3679 ], [ -71.1183, 42.3679 ], [ -71.1183, 42.3679 ], [ -71.1183, 42.3679 ], [ -71.1183, 42.3679 ], [ -71.1183, 42.3679 ], [ -71.1183, 42.3678 ], [ -71.1183, 42.3678 ], [ -71.1182, 42.3678 ], [ -71.1182, 42.3678 ], [ -71.1182, 42.3678 ], [ -71.1182, 42.3678 ], [ -71.1182, 42.3677 ], [ -71.1182, 42.3677 ], [ -71.1182, 42.3677 ], [ -71.1181, 42.3676 ], [ -71.1181, 42.3676 ], [ -71.1181, 42.3676 ], [ -71.1181, 42.3676 ], [ -71.1180, 42.3675 ], [ -71.1180, 42.3675 ], [ -71.1180, 42.3675 ], [ -71.1180, 42.3675 ], [ -71.1180, 42.3675 ], [ -71.1180, 42.3675 ], [ -71.1180, 42.3674 ], [ -71.1180, 42.3674 ], [ -71.1180, 42.3674 ], [ -71.1180, 42.3674 ], [ -71.1180, 42.3674 ], [ -71.1180, 42.3674 ], [ -71.1180, 42.3674 ], [ -71.1180, 42.3674 ], [ -71.1180, 42.3674 ], [ -71.1179, 42.3673 ], [ -71.1179, 42.3673 ], [ -71.1179, 42.3672 ], [ -71.1179, 42.3672 ], [ -71.1179, 42.3672 ], [ -71.1179, 42.3672 ], [ -71.1179, 42.3672 ], [ -71.1179, 42.3672 ], [ -71.1179, 42.3672 ], [ -71.1179, 42.3672 ], [ -71.1179, 42.3672 ], [ -71.1179, 42.3672 ], [ -71.1179, 42.3672 ], [ -71.1179, 42.3672 ], [ -71.1179, 42.3672 ], [ -71.1179, 42.3672 ], [ -71.1179, 42.3671 ], [ -71.1179, 42.3671 ], [ -71.1179, 42.3671 ], [ -71.1179, 42.3671 ], [ -71.1178, 42.3671 ], [ -71.1178, 42.3671 ], [ -71.1178, 42.3671 ], [ -71.1178, 42.3671 ], [ -71.1178, 42.3671 ], [ -71.1178, 42.3671 ], [ -71.1178, 42.3671 ], [ -71.1178, 42.3670 ], [ -71.1178, 42.3670 ], [ -71.1178, 42.3670 ], [ -71.1178, 42.3670 ], [ -71.1178, 42.3670 ], [ -71.1178, 42.3670 ], [ -71.1178, 42.3670 ], [ -71.1178, 42.3669 ], [ -71.1178, 42.3669 ], [ -71.1178, 42.3669 ], [ -71.1178, 42.3669 ], [ -71.1178, 42.3669 ], [ -71.1177, 42.3668 ], [ -71.1177, 42.3668 ], [ -71.1177, 42.3668 ], [ -71.1177, 42.3668 ], [ -71.1177, 42.3668 ], [ -71.1177, 42.3667 ], [ -71.1177, 42.3667 ], [ -71.1177, 42.3667 ], [ -71.1177, 42.3667 ], [ -71.1177, 42.3667 ], [ -71.1177, 42.3667 ], [ -71.1177, 42.3667 ], [ -71.1177, 42.3667 ], [ -71.1177, 42.3666 ], [ -71.1177, 42.3666 ], [ -71.1177, 42.3666 ], [ -71.1177, 42.3666 ], [ -71.1177, 42.3666 ], [ -71.1177, 42.3666 ], [ -71.1177, 42.3666 ], [ -71.1177, 42.3666 ], [ -71.1177, 42.3666 ], [ -71.1177, 42.3666 ], [ -71.1177, 42.3666 ], [ -71.1176, 42.3666 ], [ -71.1176, 42.3666 ], [ -71.1176, 42.3666 ], [ -71.1176, 42.3666 ], [ -71.1176, 42.3666 ], [ -71.1176, 42.3666 ], [ -71.1176, 42.3666 ], [ -71.1176, 42.3666 ], [ -71.1176, 42.3666 ], [ -71.1176, 42.3666 ], [ -71.1176, 42.3665 ], [ -71.1176, 42.3665 ], [ -71.1176, 42.3665 ], [ -71.1176, 42.3665 ], [ -71.1176, 42.3665 ], [ -71.1176, 42.3664 ], [ -71.1176, 42.3664 ], [ -71.1176, 42.3664 ], [ -71.1176, 42.3664 ], [ -71.1176, 42.3664 ], [ -71.1176, 42.3663 ], [ -71.1176, 42.3663 ], [ -71.1176, 42.3663 ], [ -71.1176, 42.3663 ], [ -71.1176, 42.3663 ], [ -71.1176, 42.3663 ], [ -71.1176, 42.3663 ], [ -71.1176, 42.3662 ], [ -71.1176, 42.3662 ], [ -71.1176, 42.3662 ], [ -71.1176, 42.3662 ], [ -71.1176, 42.3662 ], [ -71.1176, 42.3662 ], [ -71.1176, 42.3662 ], [ -71.1176, 42.3662 ], [ -71.1176, 42.3662 ], [ -71.1176, 42.3662 ], [ -71.1176, 42.3662 ], [ -71.1176, 42.3662 ], [ -71.1176, 42.3662 ], [ -71.1176, 42.3662 ], [ -71.1176, 42.3662 ], [ -71.1176, 42.3662 ], [ -71.1176, 42.3662 ], [ -71.1176, 42.3662 ], [ -71.1176, 42.3662 ], [ -71.1176, 42.3661 ], [ -71.1176, 42.3661 ], [ -71.1176, 42.3661 ], [ -71.1176, 42.3661 ], [ -71.1176, 42.3661 ], [ -71.1176, 42.3661 ], [ -71.1176, 42.3661 ], [ -71.1176, 42.3659 ], [ -71.1176, 42.3659 ], [ -71.1176, 42.3658 ], [ -71.1175, 42.3658 ], [ -71.1175, 42.3657 ], [ -71.1175, 42.3657 ], [ -71.1175, 42.3657 ], [ -71.1175, 42.3657 ], [ -71.1175, 42.3656 ], [ -71.1175, 42.3656 ], [ -71.1175, 42.3655 ], [ -71.1175, 42.3655 ], [ -71.1175, 42.3655 ], [ -71.1175, 42.3655 ], [ -71.1175, 42.3654 ], [ -71.1175, 42.3654 ], [ -71.1175, 42.3654 ], [ -71.1175, 42.3653 ], [ -71.1175, 42.3653 ], [ -71.1175, 42.3653 ], [ -71.1175, 42.3653 ], [ -71.1175, 42.3652 ], [ -71.1175, 42.3652 ], [ -71.1175, 42.3652 ], [ -71.1175, 42.3651 ], [ -71.1175, 42.3651 ], [ -71.1175, 42.3651 ], [ -71.1175, 42.3651 ], [ -71.1175, 42.3651 ], [ -71.1175, 42.3651 ], [ -71.1175, 42.3651 ], [ -71.1175, 42.3651 ], [ -71.1175, 42.3651 ], [ -71.1175, 42.3651 ], [ -71.1175, 42.3651 ], [ -71.1175, 42.3651 ], [ -71.1175, 42.3651 ], [ -71.1175, 42.3651 ], [ -71.1175, 42.3651 ], [ -71.1175, 42.3651 ], [ -71.1175, 42.3650 ], [ -71.1175, 42.3650 ], [ -71.1175, 42.3650 ], [ -71.1175, 42.3649 ], [ -71.1175, 42.3649 ], [ -71.1175, 42.3649 ], [ -71.1175, 42.3648 ], [ -71.1175, 42.3648 ], [ -71.1175, 42.3648 ], [ -71.1175, 42.3648 ], [ -71.1175, 42.3647 ], [ -71.1175, 42.3647 ], [ -71.1175, 42.3647 ], [ -71.1175, 42.3647 ], [ -71.1175, 42.3646 ], [ -71.1175, 42.3646 ], [ -71.1175, 42.3646 ], [ -71.1175, 42.3645 ], [ -71.1175, 42.3645 ], [ -71.1175, 42.3645 ], [ -71.1175, 42.3644 ], [ -71.1175, 42.3644 ], [ -71.1175, 42.3644 ], [ -71.1175, 42.3644 ], [ -71.1175, 42.3644 ], [ -71.1175, 42.3644 ], [ -71.1175, 42.3644 ], [ -71.1175, 42.3644 ], [ -71.1175, 42.3644 ], [ -71.1175, 42.3644 ], [ -71.1175, 42.3644 ], [ -71.1175, 42.3644 ], [ -71.1175, 42.3643 ], [ -71.1175, 42.3643 ], [ -71.1175, 42.3643 ], [ -71.1174, 42.3643 ], [ -71.1174, 42.3643 ], [ -71.1174, 42.3643 ], [ -71.1174, 42.3643 ], [ -71.1174, 42.3643 ], [ -71.1174, 42.3643 ], [ -71.1174, 42.3643 ], [ -71.1174, 42.3643 ], [ -71.1174, 42.3642 ], [ -71.1174, 42.3642 ], [ -71.1174, 42.3641 ], [ -71.1174, 42.3640 ], [ -71.1174, 42.3640 ], [ -71.1174, 42.3640 ], [ -71.1174, 42.3640 ], [ -71.1174, 42.3640 ], [ -71.1174, 42.3640 ], [ -71.1174, 42.3640 ], [ -71.1174, 42.3640 ], [ -71.1174, 42.3640 ], [ -71.1174, 42.3640 ], [ -71.1174, 42.3639 ], [ -71.1174, 42.3639 ], [ -71.1174, 42.3639 ], [ -71.1174, 42.3639 ], [ -71.1174, 42.3639 ], [ -71.1174, 42.3638 ], [ -71.1174, 42.3638 ], [ -71.1174, 42.3638 ], [ -71.1174, 42.3637 ], [ -71.1175, 42.3637 ], [ -71.1175, 42.3637 ], [ -71.1175, 42.3636 ], [ -71.1175, 42.3636 ], [ -71.1175, 42.3636 ], [ -71.1175, 42.3635 ], [ -71.1175, 42.3635 ], [ -71.1175, 42.3635 ], [ -71.1175, 42.3635 ], [ -71.1175, 42.3635 ], [ -71.1175, 42.3635 ], [ -71.1175, 42.3635 ], [ -71.1175, 42.3634 ], [ -71.1176, 42.3634 ], [ -71.1176, 42.3634 ], [ -71.1176, 42.3634 ], [ -71.1176, 42.3634 ], [ -71.1176, 42.3634 ], [ -71.1176, 42.3634 ], [ -71.1176, 42.3634 ], [ -71.1176, 42.3633 ], [ -71.1176, 42.3633 ], [ -71.1176, 42.3633 ], [ -71.1176, 42.3633 ], [ -71.1176, 42.3633 ], [ -71.1176, 42.3633 ], [ -71.1176, 42.3632 ], [ -71.1176, 42.3632 ], [ -71.1176, 42.3632 ], [ -71.1176, 42.3631 ], [ -71.1175, 42.3631 ], [ -71.1175, 42.3630 ], [ -71.1175, 42.3630 ], [ -71.1175, 42.3630 ], [ -71.1175, 42.3630 ], [ -71.1175, 42.3630 ], [ -71.1175, 42.3629 ], [ -71.1175, 42.3629 ], [ -71.1175, 42.3629 ], [ -71.1175, 42.3629 ], [ -71.1175, 42.3629 ], [ -71.1175, 42.3628 ], [ -71.1175, 42.3628 ], [ -71.1175, 42.3628 ], [ -71.1175, 42.3628 ], [ -71.1175, 42.3628 ], [ -71.1175, 42.3627 ], [ -71.1175, 42.3627 ], [ -71.1175, 42.3627 ], [ -71.1175, 42.3627 ], [ -71.1175, 42.3626 ], [ -71.1175, 42.3626 ], [ -71.1175, 42.3626 ], [ -71.1175, 42.3626 ], [ -71.1175, 42.3625 ], [ -71.1175, 42.3625 ], [ -71.1175, 42.3625 ], [ -71.1175, 42.3624 ], [ -71.1174, 42.3623 ], [ -71.1174, 42.3623 ], [ -71.1174, 42.3623 ], [ -71.1174, 42.3623 ], [ -71.1174, 42.3622 ], [ -71.1174, 42.3622 ], [ -71.1174, 42.3622 ], [ -71.1174, 42.3622 ], [ -71.1174, 42.3621 ], [ -71.1174, 42.3621 ], [ -71.1174, 42.3621 ], [ -71.1174, 42.3620 ], [ -71.1174, 42.3620 ], [ -71.1174, 42.3620 ], [ -71.1174, 42.3619 ], [ -71.1174, 42.3618 ], [ -71.1174, 42.3618 ], [ -71.1174, 42.3617 ], [ -71.1174, 42.3617 ], [ -71.1173, 42.3617 ], [ -71.1173, 42.3617 ], [ -71.1173, 42.3616 ], [ -71.1173, 42.3616 ], [ -71.1173, 42.3615 ], [ -71.1173, 42.3615 ], [ -71.1173, 42.3614 ], [ -71.1173, 42.3614 ], [ -71.1173, 42.3613 ], [ -71.1173, 42.3613 ], [ -71.1173, 42.3613 ], [ -71.1173, 42.3613 ], [ -71.1173, 42.3613 ], [ -71.1173, 42.3613 ], [ -71.1172, 42.3612 ], [ -71.1172, 42.3612 ], [ -71.1172, 42.3612 ], [ -71.1172, 42.3612 ], [ -71.1172, 42.3612 ], [ -71.1172, 42.3612 ], [ -71.1172, 42.3611 ], [ -71.1172, 42.3611 ], [ -71.1172, 42.3611 ], [ -71.1172, 42.3611 ], [ -71.1171, 42.3609 ], [ -71.1173, 42.3609 ], [ -71.1173, 42.3609 ], [ -71.1173, 42.3608 ], [ -71.1173, 42.3607 ], [ -71.1173, 42.3606 ], [ -71.1173, 42.3605 ], [ -71.1172, 42.3604 ], [ -71.1172, 42.3602 ], [ -71.1172, 42.3601 ], [ -71.1172, 42.3600 ], [ -71.1172, 42.3599 ], [ -71.1172, 42.3599 ], [ -71.1172, 42.3598 ], [ -71.1172, 42.3596 ], [ -71.1172, 42.3595 ], [ -71.1172, 42.3595 ], [ -71.1172, 42.3594 ], [ -71.1172, 42.3594 ], [ -71.1171, 42.3594 ], [ -71.1171, 42.3594 ], [ -71.1171, 42.3594 ], [ -71.1171, 42.3594 ], [ -71.1171, 42.3594 ], [ -71.1171, 42.3594 ], [ -71.1171, 42.3594 ], [ -71.1171, 42.3594 ], [ -71.1171, 42.3593 ], [ -71.1171, 42.3593 ], [ -71.1171, 42.3593 ], [ -71.1171, 42.3593 ], [ -71.1171, 42.3593 ], [ -71.1172, 42.3592 ], [ -71.1172, 42.3592 ], [ -71.1172, 42.3592 ], [ -71.1172, 42.3592 ], [ -71.1172, 42.3592 ], [ -71.1172, 42.3592 ], [ -71.1172, 42.3591 ], [ -71.1172, 42.3591 ], [ -71.1172, 42.3591 ], [ -71.1172, 42.3591 ], [ -71.1172, 42.3591 ], [ -71.1172, 42.3590 ], [ -71.1172, 42.3590 ], [ -71.1172, 42.3590 ], [ -71.1172, 42.3590 ], [ -71.1172, 42.3590 ], [ -71.1172, 42.3589 ], [ -71.1172, 42.3589 ], [ -71.1172, 42.3589 ], [ -71.1172, 42.3589 ], [ -71.1173, 42.3589 ], [ -71.1173, 42.3589 ], [ -71.1173, 42.3589 ], [ -71.1173, 42.3589 ], [ -71.1173, 42.3589 ], [ -71.1173, 42.3589 ], [ -71.1173, 42.3589 ], [ -71.1173, 42.3589 ], [ -71.1173, 42.3589 ], [ -71.1173, 42.3589 ], [ -71.1173, 42.3589 ], [ -71.1173, 42.3589 ], [ -71.1173, 42.3589 ], [ -71.1173, 42.3589 ], [ -71.1173, 42.3589 ], [ -71.1173, 42.3589 ], [ -71.1173, 42.3588 ], [ -71.1173, 42.3588 ], [ -71.1173, 42.3588 ], [ -71.1173, 42.3588 ], [ -71.1173, 42.3588 ], [ -71.1173, 42.3588 ], [ -71.1173, 42.3588 ], [ -71.1173, 42.3588 ], [ -71.1173, 42.3588 ], [ -71.1173, 42.3588 ], [ -71.1173, 42.3588 ], [ -71.1173, 42.3588 ], [ -71.1173, 42.3588 ], [ -71.1173, 42.3588 ], [ -71.1173, 42.3588 ], [ -71.1173, 42.3588 ], [ -71.1173, 42.3588 ], [ -71.1173, 42.3588 ], [ -71.1173, 42.3588 ], [ -71.1173, 42.3588 ], [ -71.1173, 42.3588 ], [ -71.1173, 42.3588 ], [ -71.1173, 42.3588 ], [ -71.1173, 42.3588 ], [ -71.1173, 42.3588 ], [ -71.1173, 42.3588 ], [ -71.1173, 42.3587 ], [ -71.1173, 42.3587 ], [ -71.1173, 42.3587 ], [ -71.1173, 42.3587 ], [ -71.1173, 42.3587 ], [ -71.1173, 42.3587 ], [ -71.1173, 42.3587 ], [ -71.1173, 42.3587 ], [ -71.1173, 42.3587 ], [ -71.1173, 42.3587 ], [ -71.1174, 42.3586 ], [ -71.1174, 42.3586 ], [ -71.1174, 42.3586 ], [ -71.1174, 42.3586 ], [ -71.1174, 42.3586 ], [ -71.1174, 42.3586 ], [ -71.1174, 42.3586 ], [ -71.1174, 42.3586 ], [ -71.1174, 42.3586 ], [ -71.1174, 42.3586 ], [ -71.1174, 42.3586 ], [ -71.1174, 42.3586 ], [ -71.1174, 42.3586 ], [ -71.1174, 42.3586 ], [ -71.1174, 42.3585 ], [ -71.1174, 42.3585 ], [ -71.1174, 42.3585 ], [ -71.1174, 42.3585 ], [ -71.1174, 42.3585 ], [ -71.1174, 42.3585 ], [ -71.1174, 42.3585 ], [ -71.1175, 42.3585 ], [ -71.1175, 42.3584 ], [ -71.1175, 42.3584 ], [ -71.1175, 42.3584 ], [ -71.1175, 42.3584 ], [ -71.1175, 42.3584 ], [ -71.1175, 42.3584 ], [ -71.1175, 42.3584 ], [ -71.1175, 42.3584 ], [ -71.1175, 42.3583 ], [ -71.1175, 42.3583 ], [ -71.1175, 42.3583 ], [ -71.1175, 42.3583 ], [ -71.1175, 42.3583 ], [ -71.1175, 42.3582 ], [ -71.1175, 42.3582 ], [ -71.1175, 42.3582 ], [ -71.1175, 42.3582 ], [ -71.1176, 42.3582 ], [ -71.1176, 42.3582 ], [ -71.1176, 42.3582 ], [ -71.1176, 42.3582 ], [ -71.1176, 42.3582 ], [ -71.1176, 42.3582 ], [ -71.1176, 42.3582 ], [ -71.1176, 42.3582 ], [ -71.1176, 42.3582 ], [ -71.1176, 42.3582 ], [ -71.1176, 42.3581 ], [ -71.1176, 42.3581 ], [ -71.1176, 42.3581 ], [ -71.1176, 42.3581 ], [ -71.1176, 42.3581 ], [ -71.1176, 42.3581 ], [ -71.1176, 42.3581 ], [ -71.1176, 42.3581 ], [ -71.1176, 42.3581 ], [ -71.1176, 42.3581 ], [ -71.1176, 42.3581 ], [ -71.1176, 42.3581 ], [ -71.1176, 42.3580 ], [ -71.1176, 42.3580 ], [ -71.1176, 42.3580 ], [ -71.1176, 42.3580 ], [ -71.1176, 42.3580 ], [ -71.1176, 42.3580 ], [ -71.1176, 42.3580 ], [ -71.1176, 42.3580 ], [ -71.1177, 42.3580 ], [ -71.1177, 42.3580 ], [ -71.1177, 42.3579 ], [ -71.1177, 42.3579 ], [ -71.1177, 42.3579 ], [ -71.1177, 42.3579 ], [ -71.1177, 42.3579 ], [ -71.1177, 42.3579 ], [ -71.1177, 42.3579 ], [ -71.1177, 42.3578 ], [ -71.1177, 42.3578 ], [ -71.1177, 42.3578 ], [ -71.1177, 42.3578 ], [ -71.1177, 42.3578 ], [ -71.1177, 42.3578 ], [ -71.1177, 42.3578 ], [ -71.1177, 42.3577 ], [ -71.1177, 42.3577 ], [ -71.1177, 42.3577 ], [ -71.1178, 42.3577 ], [ -71.1178, 42.3577 ], [ -71.1178, 42.3577 ], [ -71.1178, 42.3576 ], [ -71.1178, 42.3576 ], [ -71.1178, 42.3576 ], [ -71.1178, 42.3576 ], [ -71.1178, 42.3575 ], [ -71.1178, 42.3575 ], [ -71.1178, 42.3575 ], [ -71.1178, 42.3575 ], [ -71.1178, 42.3574 ], [ -71.1178, 42.3574 ], [ -71.1178, 42.3574 ], [ -71.1179, 42.3574 ], [ -71.1179, 42.3574 ], [ -71.1179, 42.3574 ], [ -71.1179, 42.3574 ], [ -71.1179, 42.3573 ], [ -71.1179, 42.3573 ], [ -71.1179, 42.3573 ], [ -71.1179, 42.3573 ], [ -71.1179, 42.3573 ], [ -71.1179, 42.3573 ], [ -71.1179, 42.3572 ], [ -71.1179, 42.3572 ], [ -71.1179, 42.3572 ], [ -71.1179, 42.3572 ], [ -71.1179, 42.3572 ], [ -71.1179, 42.3572 ], [ -71.1179, 42.3571 ], [ -71.1179, 42.3571 ], [ -71.1180, 42.3571 ], [ -71.1180, 42.3570 ], [ -71.1180, 42.3570 ], [ -71.1180, 42.3569 ], [ -71.1180, 42.3569 ], [ -71.1180, 42.3569 ], [ -71.1180, 42.3569 ], [ -71.1180, 42.3568 ], [ -71.1180, 42.3568 ], [ -71.1180, 42.3568 ], [ -71.1180, 42.3568 ], [ -71.1180, 42.3568 ], [ -71.1180, 42.3567 ], [ -71.1180, 42.3567 ], [ -71.1181, 42.3567 ], [ -71.1181, 42.3566 ], [ -71.1181, 42.3566 ], [ -71.1181, 42.3566 ], [ -71.1181, 42.3565 ], [ -71.1181, 42.3564 ], [ -71.1181, 42.3564 ], [ -71.1181, 42.3564 ], [ -71.1181, 42.3563 ], [ -71.1181, 42.3563 ], [ -71.1181, 42.3563 ], [ -71.1181, 42.3563 ], [ -71.1181, 42.3563 ], [ -71.1181, 42.3562 ], [ -71.1181, 42.3562 ], [ -71.1181, 42.3561 ], [ -71.1181, 42.3560 ], [ -71.1181, 42.3560 ], [ -71.1181, 42.3559 ], [ -71.1181, 42.3559 ], [ -71.1181, 42.3559 ], [ -71.1181, 42.3559 ], [ -71.1181, 42.3559 ], [ -71.1181, 42.3559 ], [ -71.1181, 42.3559 ], [ -71.1181, 42.3559 ], [ -71.1181, 42.3558 ], [ -71.1181, 42.3558 ], [ -71.1181, 42.3558 ], [ -71.1181, 42.3558 ], [ -71.1181, 42.3558 ], [ -71.1181, 42.3558 ], [ -71.1181, 42.3558 ], [ -71.1181, 42.3558 ], [ -71.1181, 42.3558 ], [ -71.1181, 42.3558 ], [ -71.1181, 42.3558 ], [ -71.1181, 42.3558 ], [ -71.1181, 42.3558 ], [ -71.1181, 42.3558 ], [ -71.1180, 42.3558 ], [ -71.1180, 42.3558 ], [ -71.1180, 42.3558 ], [ -71.1180, 42.3557 ], [ -71.1180, 42.3557 ], [ -71.1180, 42.3557 ], [ -71.1180, 42.3557 ], [ -71.1180, 42.3557 ], [ -71.1180, 42.3557 ], [ -71.1180, 42.3557 ], [ -71.1180, 42.3557 ], [ -71.1180, 42.3557 ], [ -71.1180, 42.3557 ], [ -71.1180, 42.3557 ], [ -71.1180, 42.3557 ], [ -71.1180, 42.3557 ], [ -71.1180, 42.3557 ], [ -71.1180, 42.3557 ], [ -71.1180, 42.3557 ], [ -71.1180, 42.3557 ], [ -71.1180, 42.3557 ], [ -71.1180, 42.3557 ], [ -71.1180, 42.3557 ], [ -71.1180, 42.3557 ], [ -71.1180, 42.3557 ], [ -71.1180, 42.3556 ], [ -71.1180, 42.3556 ], [ -71.1180, 42.3556 ], [ -71.1180, 42.3556 ], [ -71.1180, 42.3556 ], [ -71.1180, 42.3556 ], [ -71.1180, 42.3556 ], [ -71.1180, 42.3556 ], [ -71.1180, 42.3556 ], [ -71.1180, 42.3556 ], [ -71.1180, 42.3556 ], [ -71.1180, 42.3556 ], [ -71.1180, 42.3556 ], [ -71.1180, 42.3556 ], [ -71.1180, 42.3555 ], [ -71.1180, 42.3555 ], [ -71.1180, 42.3555 ], [ -71.1179, 42.3555 ], [ -71.1179, 42.3554 ], [ -71.1179, 42.3554 ], [ -71.1179, 42.3554 ], [ -71.1179, 42.3554 ], [ -71.1179, 42.3553 ], [ -71.1179, 42.3553 ], [ -71.1179, 42.3553 ], [ -71.1179, 42.3553 ], [ -71.1179, 42.3553 ], [ -71.1179, 42.3552 ], [ -71.1178, 42.3552 ], [ -71.1178, 42.3552 ], [ -71.1178, 42.3552 ], [ -71.1178, 42.3552 ], [ -71.1178, 42.3551 ], [ -71.1178, 42.3551 ], [ -71.1178, 42.3551 ], [ -71.1178, 42.3551 ], [ -71.1178, 42.3551 ], [ -71.1178, 42.3551 ], [ -71.1178, 42.3551 ], [ -71.1178, 42.3550 ], [ -71.1178, 42.3550 ], [ -71.1178, 42.3550 ], [ -71.1178, 42.3550 ], [ -71.1178, 42.3550 ], [ -71.1178, 42.3550 ], [ -71.1178, 42.3550 ], [ -71.1178, 42.3550 ], [ -71.1177, 42.3550 ], [ -71.1177, 42.3550 ], [ -71.1177, 42.3549 ], [ -71.1177, 42.3549 ], [ -71.1177, 42.3549 ], [ -71.1176, 42.3548 ], [ -71.1176, 42.3548 ], [ -71.1176, 42.3548 ], [ -71.1176, 42.3548 ], [ -71.1176, 42.3548 ], [ -71.1176, 42.3548 ], [ -71.1176, 42.3548 ], [ -71.1176, 42.3547 ], [ -71.1176, 42.3547 ], [ -71.1175, 42.3547 ], [ -71.1175, 42.3547 ], [ -71.1175, 42.3547 ], [ -71.1175, 42.3547 ], [ -71.1175, 42.3547 ], [ -71.1175, 42.3546 ], [ -71.1175, 42.3546 ], [ -71.1175, 42.3546 ], [ -71.1174, 42.3546 ], [ -71.1174, 42.3546 ], [ -71.1174, 42.3546 ], [ -71.1174, 42.3546 ], [ -71.1174, 42.3546 ], [ -71.1174, 42.3546 ], [ -71.1174, 42.3546 ], [ -71.1174, 42.3546 ], [ -71.1174, 42.3546 ], [ -71.1174, 42.3546 ], [ -71.1174, 42.3545 ], [ -71.1174, 42.3545 ], [ -71.1173, 42.3545 ], [ -71.1173, 42.3545 ], [ -71.1173, 42.3544 ], [ -71.1173, 42.3544 ], [ -71.1173, 42.3544 ], [ -71.1173, 42.3544 ], [ -71.1173, 42.3544 ], [ -71.1173, 42.3544 ], [ -71.1172, 42.3544 ], [ -71.1172, 42.3544 ], [ -71.1172, 42.3544 ], [ -71.1172, 42.3544 ], [ -71.1172, 42.3544 ], [ -71.1172, 42.3544 ], [ -71.1172, 42.3544 ], [ -71.1172, 42.3544 ], [ -71.1172, 42.3544 ], [ -71.1172, 42.3544 ], [ -71.1172, 42.3544 ], [ -71.1172, 42.3544 ], [ -71.1172, 42.3544 ], [ -71.1172, 42.3544 ], [ -71.1172, 42.3544 ], [ -71.1172, 42.3544 ], [ -71.1172, 42.3544 ], [ -71.1172, 42.3544 ], [ -71.1172, 42.3544 ], [ -71.1172, 42.3543 ], [ -71.1172, 42.3543 ], [ -71.1171, 42.3543 ], [ -71.1171, 42.3543 ], [ -71.1171, 42.3543 ], [ -71.1170, 42.3543 ], [ -71.1170, 42.3542 ], [ -71.1170, 42.3542 ], [ -71.1170, 42.3542 ], [ -71.1170, 42.3542 ], [ -71.1170, 42.3542 ], [ -71.1170, 42.3542 ], [ -71.1169, 42.3542 ], [ -71.1169, 42.3542 ], [ -71.1169, 42.3541 ], [ -71.1169, 42.3541 ], [ -71.1169, 42.3541 ], [ -71.1169, 42.3541 ], [ -71.1168, 42.3541 ], [ -71.1168, 42.3541 ], [ -71.1167, 42.3540 ], [ -71.1167, 42.3540 ], [ -71.1167, 42.3540 ], [ -71.1167, 42.3540 ], [ -71.1167, 42.3540 ], [ -71.1167, 42.3540 ], [ -71.1166, 42.3540 ], [ -71.1166, 42.3540 ], [ -71.1166, 42.3540 ], [ -71.1165, 42.3539 ], [ -71.1165, 42.3539 ], [ -71.1165, 42.3539 ], [ -71.1165, 42.3539 ], [ -71.1165, 42.3539 ], [ -71.1165, 42.3539 ], [ -71.1165, 42.3539 ], [ -71.1165, 42.3539 ], [ -71.1165, 42.3539 ], [ -71.1164, 42.3539 ], [ -71.1164, 42.3539 ], [ -71.1164, 42.3539 ], [ -71.1164, 42.3538 ], [ -71.1164, 42.3538 ], [ -71.1163, 42.3538 ], [ -71.1163, 42.3538 ], [ -71.1163, 42.3538 ], [ -71.1163, 42.3538 ], [ -71.1163, 42.3538 ], [ -71.1163, 42.3538 ], [ -71.1163, 42.3538 ], [ -71.1163, 42.3538 ], [ -71.1162, 42.3538 ], [ -71.1162, 42.3538 ], [ -71.1162, 42.3538 ], [ -71.1162, 42.3538 ], [ -71.1162, 42.3538 ], [ -71.1162, 42.3538 ], [ -71.1162, 42.3538 ], [ -71.1162, 42.3537 ], [ -71.1162, 42.3537 ], [ -71.1162, 42.3537 ], [ -71.1161, 42.3537 ], [ -71.1161, 42.3537 ], [ -71.1161, 42.3537 ], [ -71.1160, 42.3537 ], [ -71.1160, 42.3537 ], [ -71.1160, 42.3536 ], [ -71.1160, 42.3536 ], [ -71.1160, 42.3536 ], [ -71.1160, 42.3536 ], [ -71.1160, 42.3536 ], [ -71.1160, 42.3536 ], [ -71.1159, 42.3536 ], [ -71.1159, 42.3536 ], [ -71.1159, 42.3536 ], [ -71.1159, 42.3536 ], [ -71.1159, 42.3536 ], [ -71.1159, 42.3535 ], [ -71.1158, 42.3535 ], [ -71.1158, 42.3535 ], [ -71.1158, 42.3535 ], [ -71.1158, 42.3535 ], [ -71.1158, 42.3535 ], [ -71.1158, 42.3535 ], [ -71.1158, 42.3535 ], [ -71.1158, 42.3535 ], [ -71.1158, 42.3535 ], [ -71.1158, 42.3535 ], [ -71.1158, 42.3535 ], [ -71.1158, 42.3535 ], [ -71.1157, 42.3535 ], [ -71.1157, 42.3535 ], [ -71.1157, 42.3534 ], [ -71.1157, 42.3534 ], [ -71.1156, 42.3534 ], [ -71.1156, 42.3534 ], [ -71.1156, 42.3534 ], [ -71.1156, 42.3534 ], [ -71.1155, 42.3534 ], [ -71.1155, 42.3534 ], [ -71.1155, 42.3534 ], [ -71.1155, 42.3534 ], [ -71.1155, 42.3534 ], [ -71.1155, 42.3533 ], [ -71.1155, 42.3533 ], [ -71.1155, 42.3533 ], [ -71.1155, 42.3533 ], [ -71.1154, 42.3533 ], [ -71.1154, 42.3533 ], [ -71.1154, 42.3533 ], [ -71.1154, 42.3533 ], [ -71.1154, 42.3533 ], [ -71.1154, 42.3533 ], [ -71.1153, 42.3533 ], [ -71.1153, 42.3532 ], [ -71.1153, 42.3532 ], [ -71.1153, 42.3532 ], [ -71.1152, 42.3532 ], [ -71.1152, 42.3532 ], [ -71.1152, 42.3532 ], [ -71.1152, 42.3532 ], [ -71.1152, 42.3532 ], [ -71.1152, 42.3532 ], [ -71.1152, 42.3532 ], [ -71.1152, 42.3532 ], [ -71.1152, 42.3532 ], [ -71.1152, 42.3532 ], [ -71.1152, 42.3532 ], [ -71.1151, 42.3532 ], [ -71.1151, 42.3531 ], [ -71.1151, 42.3531 ], [ -71.1151, 42.3531 ], [ -71.1151, 42.3531 ], [ -71.1151, 42.3531 ], [ -71.1151, 42.3531 ], [ -71.1150, 42.3531 ], [ -71.1150, 42.3531 ], [ -71.1150, 42.3531 ], [ -71.1150, 42.3530 ], [ -71.1149, 42.3530 ], [ -71.1149, 42.3530 ], [ -71.1148, 42.3530 ], [ -71.1148, 42.3530 ], [ -71.1148, 42.3529 ], [ -71.1148, 42.3529 ], [ -71.1148, 42.3529 ], [ -71.1147, 42.3529 ], [ -71.1147, 42.3529 ], [ -71.1147, 42.3529 ], [ -71.1147, 42.3529 ], [ -71.1146, 42.3529 ], [ -71.1146, 42.3528 ], [ -71.1146, 42.3528 ], [ -71.1146, 42.3528 ], [ -71.1145, 42.3528 ], [ -71.1145, 42.3528 ], [ -71.1145, 42.3528 ], [ -71.1145, 42.3528 ], [ -71.1145, 42.3528 ], [ -71.1145, 42.3527 ], [ -71.1144, 42.3527 ], [ -71.1144, 42.3527 ], [ -71.1144, 42.3527 ], [ -71.1144, 42.3527 ], [ -71.1144, 42.3527 ], [ -71.1143, 42.3527 ], [ -71.1143, 42.3527 ], [ -71.1143, 42.3527 ], [ -71.1143, 42.3526 ], [ -71.1142, 42.3526 ], [ -71.1142, 42.3526 ], [ -71.1142, 42.3526 ], [ -71.1141, 42.3526 ], [ -71.1141, 42.3526 ], [ -71.1141, 42.3525 ], [ -71.1141, 42.3525 ], [ -71.1140, 42.3525 ], [ -71.1140, 42.3525 ], [ -71.1140, 42.3525 ], [ -71.1140, 42.3525 ], [ -71.1140, 42.3525 ], [ -71.1139, 42.3525 ], [ -71.1139, 42.3525 ], [ -71.1138, 42.3525 ], [ -71.1138, 42.3524 ], [ -71.1138, 42.3524 ], [ -71.1138, 42.3524 ], [ -71.1138, 42.3524 ], [ -71.1137, 42.3524 ], [ -71.1137, 42.3524 ], [ -71.1137, 42.3524 ], [ -71.1137, 42.3524 ], [ -71.1137, 42.3524 ], [ -71.1136, 42.3524 ], [ -71.1136, 42.3524 ], [ -71.1136, 42.3523 ], [ -71.1136, 42.3523 ], [ -71.1135, 42.3523 ], [ -71.1135, 42.3523 ], [ -71.1135, 42.3523 ], [ -71.1135, 42.3523 ], [ -71.1134, 42.3523 ], [ -71.1134, 42.3523 ], [ -71.1134, 42.3523 ], [ -71.1133, 42.3523 ], [ -71.1133, 42.3523 ], [ -71.1133, 42.3523 ], [ -71.1133, 42.3523 ], [ -71.1133, 42.3523 ], [ -71.1133, 42.3523 ], [ -71.1133, 42.3523 ], [ -71.1132, 42.3522 ], [ -71.1132, 42.3522 ], [ -71.1132, 42.3522 ], [ -71.1132, 42.3522 ], [ -71.1131, 42.3522 ], [ -71.1131, 42.3522 ], [ -71.1130, 42.3522 ], [ -71.1130, 42.3522 ], [ -71.1130, 42.3522 ], [ -71.1129, 42.3522 ], [ -71.1129, 42.3522 ], [ -71.1129, 42.3522 ], [ -71.1128, 42.3522 ], [ -71.1128, 42.3521 ], [ -71.1128, 42.3521 ], [ -71.1128, 42.3521 ], [ -71.1127, 42.3521 ], [ -71.1127, 42.3521 ], [ -71.1127, 42.3521 ], [ -71.1127, 42.3521 ], [ -71.1127, 42.3521 ], [ -71.1127, 42.3521 ], [ -71.1127, 42.3521 ], [ -71.1126, 42.3521 ], [ -71.1126, 42.3521 ], [ -71.1126, 42.3521 ], [ -71.1126, 42.3521 ], [ -71.1126, 42.3521 ], [ -71.1126, 42.3521 ], [ -71.1126, 42.3521 ], [ -71.1126, 42.3521 ], [ -71.1125, 42.3521 ], [ -71.1125, 42.3521 ], [ -71.1125, 42.3521 ], [ -71.1124, 42.3521 ], [ -71.1124, 42.3521 ], [ -71.1124, 42.3521 ], [ -71.1124, 42.3521 ], [ -71.1124, 42.3521 ], [ -71.1123, 42.3521 ], [ -71.1123, 42.3521 ], [ -71.1123, 42.3521 ], [ -71.1122, 42.3521 ], [ -71.1122, 42.3521 ], [ -71.1122, 42.3521 ], [ -71.1121, 42.3521 ], [ -71.1120, 42.3521 ], [ -71.1120, 42.3521 ], [ -71.1120, 42.3521 ], [ -71.1120, 42.3521 ], [ -71.1120, 42.3521 ], [ -71.1120, 42.3521 ], [ -71.1119, 42.3521 ], [ -71.1119, 42.3521 ], [ -71.1119, 42.3521 ], [ -71.1119, 42.3521 ], [ -71.1119, 42.3521 ], [ -71.1118, 42.3521 ], [ -71.1118, 42.3521 ], [ -71.1118, 42.3521 ], [ -71.1118, 42.3521 ], [ -71.1118, 42.3521 ], [ -71.1118, 42.3521 ], [ -71.1118, 42.3521 ], [ -71.1118, 42.3521 ], [ -71.1118, 42.3521 ], [ -71.1117, 42.3521 ], [ -71.1117, 42.3521 ], [ -71.1117, 42.3521 ], [ -71.1117, 42.3521 ], [ -71.1117, 42.3521 ], [ -71.1117, 42.3521 ], [ -71.1117, 42.3521 ], [ -71.1117, 42.3521 ], [ -71.1116, 42.3521 ], [ -71.1116, 42.3521 ], [ -71.1116, 42.3521 ], [ -71.1116, 42.3521 ], [ -71.1116, 42.3521 ], [ -71.1116, 42.3521 ], [ -71.1116, 42.3521 ], [ -71.1116, 42.3521 ], [ -71.1116, 42.3521 ], [ -71.1116, 42.3521 ], [ -71.1116, 42.3521 ], [ -71.1116, 42.3521 ], [ -71.1116, 42.3521 ], [ -71.1116, 42.3521 ], [ -71.1115, 42.3521 ], [ -71.1115, 42.3521 ], [ -71.1115, 42.3521 ], [ -71.1115, 42.3521 ], [ -71.1114, 42.3521 ], [ -71.1114, 42.3521 ], [ -71.1114, 42.3521 ], [ -71.1114, 42.3521 ], [ -71.1113, 42.3521 ], [ -71.1113, 42.3521 ], [ -71.1113, 42.3521 ], [ -71.1113, 42.3521 ], [ -71.1113, 42.3521 ], [ -71.1112, 42.3522 ], [ -71.1112, 42.3522 ], [ -71.1112, 42.3522 ], [ -71.1112, 42.3522 ], [ -71.1112, 42.3522 ], [ -71.1111, 42.3522 ], [ -71.1111, 42.3522 ], [ -71.1109, 42.3522 ], [ -71.1109, 42.3522 ], [ -71.1108, 42.3522 ], [ -71.1107, 42.3522 ], [ -71.1106, 42.3522 ], [ -71.1106, 42.3521 ], [ -71.1106, 42.3519 ], [ -71.1106, 42.3519 ], [ -71.1107, 42.3518 ], [ -71.1107, 42.3518 ], [ -71.1107, 42.3517 ], [ -71.1107, 42.3516 ], [ -71.1107, 42.3514 ], [ -71.1107, 42.3513 ], [ -71.1107, 42.3513 ], [ -71.1107, 42.3513 ], [ -71.1107, 42.3513 ], [ -71.1107, 42.3513 ], [ -71.1108, 42.3511 ], [ -71.1108, 42.3507 ], [ -71.1109, 42.3506 ], [ -71.1109, 42.3504 ], [ -71.1109, 42.3503 ], [ -71.1109, 42.3503 ], [ -71.1228, 42.3517 ], [ -71.1229, 42.3514 ], [ -71.1240, 42.3515 ], [ -71.1244, 42.3513 ], [ -71.1248, 42.3512 ], [ -71.1255, 42.3507 ], [ -71.1258, 42.3505 ], [ -71.1262, 42.3504 ], [ -71.1265, 42.3502 ], [ -71.1268, 42.3500 ], [ -71.1285, 42.3498 ], [ -71.1285, 42.3496 ], [ -71.1287, 42.3495 ], [ -71.1290, 42.3493 ], [ -71.1291, 42.3492 ], [ -71.1292, 42.3490 ], [ -71.1333, 42.3471 ], [ -71.1351, 42.3460 ] ] ] } }, + { "type": "Feature", "properties": { "Name": "Harbor Islands", "density": 0.0000 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -70.9671, 42.3137 ], [ -70.9677, 42.3137 ], [ -70.9679, 42.3137 ], [ -70.9683, 42.3137 ], [ -70.9685, 42.3136 ], [ -70.9689, 42.3135 ], [ -70.9693, 42.3135 ], [ -70.9695, 42.3134 ], [ -70.9697, 42.3134 ], [ -70.9698, 42.3133 ], [ -70.9700, 42.3132 ], [ -70.9701, 42.3129 ], [ -70.9703, 42.3127 ], [ -70.9704, 42.3125 ], [ -70.9705, 42.3123 ], [ -70.9706, 42.3122 ], [ -70.9709, 42.3118 ], [ -70.9710, 42.3116 ], [ -70.9711, 42.3115 ], [ -70.9716, 42.3114 ], [ -70.9718, 42.3113 ], [ -70.9722, 42.3112 ], [ -70.9729, 42.3111 ], [ -70.9731, 42.3110 ], [ -70.9735, 42.3109 ], [ -70.9737, 42.3108 ], [ -70.9740, 42.3107 ], [ -70.9743, 42.3106 ], [ -70.9745, 42.3105 ], [ -70.9748, 42.3105 ], [ -70.9751, 42.3104 ], [ -70.9755, 42.3103 ], [ -70.9759, 42.3104 ], [ -70.9762, 42.3104 ], [ -70.9766, 42.3103 ], [ -70.9768, 42.3103 ], [ -70.9770, 42.3103 ], [ -70.9770, 42.3103 ], [ -70.9771, 42.3104 ], [ -70.9771, 42.3104 ], [ -70.9771, 42.3105 ], [ -70.9770, 42.3106 ], [ -70.9770, 42.3107 ], [ -70.9769, 42.3108 ], [ -70.9768, 42.3109 ], [ -70.9767, 42.3110 ], [ -70.9766, 42.3111 ], [ -70.9760, 42.3113 ], [ -70.9755, 42.3115 ], [ -70.9749, 42.3118 ], [ -70.9740, 42.3122 ], [ -70.9734, 42.3126 ], [ -70.9729, 42.3130 ], [ -70.9726, 42.3135 ], [ -70.9726, 42.3135 ], [ -70.9724, 42.3137 ], [ -70.9723, 42.3138 ], [ -70.9721, 42.3140 ], [ -70.9720, 42.3142 ], [ -70.9718, 42.3144 ], [ -70.9718, 42.3145 ], [ -70.9718, 42.3145 ], [ -70.9716, 42.3147 ], [ -70.9715, 42.3148 ], [ -70.9713, 42.3151 ], [ -70.9712, 42.3152 ], [ -70.9711, 42.3154 ], [ -70.9709, 42.3156 ], [ -70.9709, 42.3157 ], [ -70.9709, 42.3159 ], [ -70.9709, 42.3159 ], [ -70.9709, 42.3160 ], [ -70.9709, 42.3161 ], [ -70.9709, 42.3162 ], [ -70.9709, 42.3162 ], [ -70.9708, 42.3162 ], [ -70.9708, 42.3162 ], [ -70.9707, 42.3163 ], [ -70.9707, 42.3164 ], [ -70.9706, 42.3165 ], [ -70.9705, 42.3167 ], [ -70.9704, 42.3169 ], [ -70.9702, 42.3171 ], [ -70.9701, 42.3172 ], [ -70.9701, 42.3173 ], [ -70.9699, 42.3175 ], [ -70.9698, 42.3177 ], [ -70.9698, 42.3178 ], [ -70.9696, 42.3180 ], [ -70.9696, 42.3182 ], [ -70.9695, 42.3184 ], [ -70.9695, 42.3186 ], [ -70.9694, 42.3187 ], [ -70.9694, 42.3189 ], [ -70.9693, 42.3192 ], [ -70.9692, 42.3194 ], [ -70.9692, 42.3196 ], [ -70.9692, 42.3199 ], [ -70.9692, 42.3201 ], [ -70.9692, 42.3203 ], [ -70.9692, 42.3203 ], [ -70.9691, 42.3205 ], [ -70.9690, 42.3206 ], [ -70.9690, 42.3208 ], [ -70.9690, 42.3208 ], [ -70.9689, 42.3209 ], [ -70.9688, 42.3212 ], [ -70.9688, 42.3212 ], [ -70.9687, 42.3214 ], [ -70.9686, 42.3216 ], [ -70.9685, 42.3218 ], [ -70.9684, 42.3220 ], [ -70.9683, 42.3221 ], [ -70.9682, 42.3223 ], [ -70.9681, 42.3225 ], [ -70.9679, 42.3227 ], [ -70.9677, 42.3229 ], [ -70.9676, 42.3230 ], [ -70.9671, 42.3234 ], [ -70.9667, 42.3237 ], [ -70.9666, 42.3237 ], [ -70.9664, 42.3239 ], [ -70.9661, 42.3241 ], [ -70.9660, 42.3241 ], [ -70.9659, 42.3242 ], [ -70.9657, 42.3243 ], [ -70.9657, 42.3244 ], [ -70.9657, 42.3244 ], [ -70.9656, 42.3244 ], [ -70.9655, 42.3245 ], [ -70.9653, 42.3246 ], [ -70.9653, 42.3247 ], [ -70.9653, 42.3247 ], [ -70.9651, 42.3249 ], [ -70.9651, 42.3251 ], [ -70.9654, 42.3253 ], [ -70.9653, 42.3254 ], [ -70.9652, 42.3255 ], [ -70.9651, 42.3255 ], [ -70.9623, 42.3265 ], [ -70.9618, 42.3268 ], [ -70.9617, 42.3269 ], [ -70.9615, 42.3270 ], [ -70.9613, 42.3271 ], [ -70.9611, 42.3272 ], [ -70.9610, 42.3274 ], [ -70.9607, 42.3276 ], [ -70.9605, 42.3278 ], [ -70.9604, 42.3280 ], [ -70.9602, 42.3282 ], [ -70.9601, 42.3284 ], [ -70.9596, 42.3287 ], [ -70.9592, 42.3292 ], [ -70.9590, 42.3294 ], [ -70.9591, 42.3295 ], [ -70.9591, 42.3296 ], [ -70.9590, 42.3297 ], [ -70.9590, 42.3297 ], [ -70.9589, 42.3298 ], [ -70.9589, 42.3299 ], [ -70.9589, 42.3301 ], [ -70.9589, 42.3302 ], [ -70.9589, 42.3303 ], [ -70.9588, 42.3304 ], [ -70.9587, 42.3304 ], [ -70.9586, 42.3305 ], [ -70.9585, 42.3306 ], [ -70.9584, 42.3307 ], [ -70.9583, 42.3307 ], [ -70.9581, 42.3308 ], [ -70.9575, 42.3309 ], [ -70.9570, 42.3310 ], [ -70.9566, 42.3310 ], [ -70.9561, 42.3309 ], [ -70.9555, 42.3309 ], [ -70.9549, 42.3307 ], [ -70.9546, 42.3306 ], [ -70.9545, 42.3304 ], [ -70.9544, 42.3302 ], [ -70.9544, 42.3299 ], [ -70.9545, 42.3297 ], [ -70.9546, 42.3294 ], [ -70.9547, 42.3293 ], [ -70.9549, 42.3292 ], [ -70.9553, 42.3291 ], [ -70.9556, 42.3290 ], [ -70.9559, 42.3288 ], [ -70.9562, 42.3287 ], [ -70.9565, 42.3285 ], [ -70.9566, 42.3284 ], [ -70.9569, 42.3284 ], [ -70.9572, 42.3282 ], [ -70.9575, 42.3280 ], [ -70.9577, 42.3279 ], [ -70.9578, 42.3277 ], [ -70.9580, 42.3274 ], [ -70.9582, 42.3273 ], [ -70.9584, 42.3271 ], [ -70.9587, 42.3269 ], [ -70.9591, 42.3268 ], [ -70.9594, 42.3266 ], [ -70.9596, 42.3265 ], [ -70.9599, 42.3261 ], [ -70.9599, 42.3259 ], [ -70.9600, 42.3258 ], [ -70.9602, 42.3256 ], [ -70.9601, 42.3253 ], [ -70.9601, 42.3251 ], [ -70.9603, 42.3249 ], [ -70.9605, 42.3246 ], [ -70.9609, 42.3239 ], [ -70.9613, 42.3234 ], [ -70.9616, 42.3229 ], [ -70.9619, 42.3226 ], [ -70.9621, 42.3222 ], [ -70.9624, 42.3218 ], [ -70.9627, 42.3214 ], [ -70.9629, 42.3212 ], [ -70.9630, 42.3210 ], [ -70.9631, 42.3209 ], [ -70.9632, 42.3208 ], [ -70.9633, 42.3206 ], [ -70.9634, 42.3204 ], [ -70.9635, 42.3202 ], [ -70.9637, 42.3200 ], [ -70.9638, 42.3198 ], [ -70.9639, 42.3197 ], [ -70.9639, 42.3194 ], [ -70.9640, 42.3193 ], [ -70.9641, 42.3190 ], [ -70.9642, 42.3188 ], [ -70.9643, 42.3186 ], [ -70.9645, 42.3184 ], [ -70.9645, 42.3183 ], [ -70.9647, 42.3179 ], [ -70.9648, 42.3177 ], [ -70.9649, 42.3174 ], [ -70.9650, 42.3172 ], [ -70.9650, 42.3171 ], [ -70.9653, 42.3167 ], [ -70.9654, 42.3166 ], [ -70.9655, 42.3164 ], [ -70.9657, 42.3161 ], [ -70.9658, 42.3157 ], [ -70.9659, 42.3154 ], [ -70.9660, 42.3153 ], [ -70.9661, 42.3150 ], [ -70.9661, 42.3148 ], [ -70.9661, 42.3147 ], [ -70.9661, 42.3144 ], [ -70.9662, 42.3141 ], [ -70.9663, 42.3140 ], [ -70.9665, 42.3139 ], [ -70.9666, 42.3138 ], [ -70.9668, 42.3138 ], [ -70.9669, 42.3137 ], [ -70.9671, 42.3137 ], [ -70.9671, 42.3137 ] ] ], [ [ [ -70.9647, 42.3557 ], [ -70.9646, 42.3557 ], [ -70.9645, 42.3557 ], [ -70.9644, 42.3558 ], [ -70.9635, 42.3555 ], [ -70.9635, 42.3554 ], [ -70.9630, 42.3551 ], [ -70.9626, 42.3550 ], [ -70.9625, 42.3550 ], [ -70.9622, 42.3550 ], [ -70.9619, 42.3551 ], [ -70.9617, 42.3552 ], [ -70.9616, 42.3552 ], [ -70.9615, 42.3553 ], [ -70.9615, 42.3553 ], [ -70.9613, 42.3554 ], [ -70.9612, 42.3555 ], [ -70.9611, 42.3556 ], [ -70.9611, 42.3556 ], [ -70.9610, 42.3556 ], [ -70.9609, 42.3557 ], [ -70.9608, 42.3557 ], [ -70.9607, 42.3558 ], [ -70.9607, 42.3558 ], [ -70.9607, 42.3559 ], [ -70.9607, 42.3559 ], [ -70.9606, 42.3559 ], [ -70.9606, 42.3559 ], [ -70.9605, 42.3559 ], [ -70.9605, 42.3559 ], [ -70.9605, 42.3559 ], [ -70.9604, 42.3559 ], [ -70.9604, 42.3559 ], [ -70.9602, 42.3559 ], [ -70.9601, 42.3559 ], [ -70.9600, 42.3559 ], [ -70.9600, 42.3559 ], [ -70.9599, 42.3559 ], [ -70.9598, 42.3559 ], [ -70.9598, 42.3559 ], [ -70.9598, 42.3558 ], [ -70.9596, 42.3558 ], [ -70.9596, 42.3557 ], [ -70.9594, 42.3557 ], [ -70.9593, 42.3557 ], [ -70.9593, 42.3557 ], [ -70.9593, 42.3557 ], [ -70.9592, 42.3557 ], [ -70.9590, 42.3556 ], [ -70.9590, 42.3556 ], [ -70.9588, 42.3555 ], [ -70.9587, 42.3555 ], [ -70.9587, 42.3554 ], [ -70.9586, 42.3554 ], [ -70.9586, 42.3554 ], [ -70.9586, 42.3553 ], [ -70.9584, 42.3552 ], [ -70.9584, 42.3552 ], [ -70.9583, 42.3552 ], [ -70.9582, 42.3551 ], [ -70.9581, 42.3551 ], [ -70.9581, 42.3550 ], [ -70.9580, 42.3549 ], [ -70.9579, 42.3549 ], [ -70.9579, 42.3548 ], [ -70.9578, 42.3548 ], [ -70.9577, 42.3548 ], [ -70.9576, 42.3547 ], [ -70.9575, 42.3547 ], [ -70.9574, 42.3546 ], [ -70.9574, 42.3546 ], [ -70.9573, 42.3546 ], [ -70.9573, 42.3545 ], [ -70.9572, 42.3545 ], [ -70.9571, 42.3545 ], [ -70.9570, 42.3544 ], [ -70.9570, 42.3544 ], [ -70.9569, 42.3543 ], [ -70.9568, 42.3543 ], [ -70.9568, 42.3543 ], [ -70.9567, 42.3542 ], [ -70.9566, 42.3542 ], [ -70.9566, 42.3541 ], [ -70.9565, 42.3541 ], [ -70.9565, 42.3541 ], [ -70.9564, 42.3540 ], [ -70.9564, 42.3540 ], [ -70.9563, 42.3540 ], [ -70.9562, 42.3539 ], [ -70.9562, 42.3539 ], [ -70.9561, 42.3538 ], [ -70.9560, 42.3538 ], [ -70.9560, 42.3537 ], [ -70.9559, 42.3537 ], [ -70.9559, 42.3536 ], [ -70.9558, 42.3536 ], [ -70.9558, 42.3535 ], [ -70.9558, 42.3535 ], [ -70.9557, 42.3534 ], [ -70.9557, 42.3533 ], [ -70.9556, 42.3533 ], [ -70.9556, 42.3533 ], [ -70.9556, 42.3532 ], [ -70.9555, 42.3532 ], [ -70.9555, 42.3531 ], [ -70.9555, 42.3531 ], [ -70.9555, 42.3531 ], [ -70.9554, 42.3530 ], [ -70.9554, 42.3530 ], [ -70.9553, 42.3529 ], [ -70.9552, 42.3528 ], [ -70.9551, 42.3528 ], [ -70.9550, 42.3527 ], [ -70.9550, 42.3527 ], [ -70.9549, 42.3526 ], [ -70.9540, 42.3512 ], [ -70.9539, 42.3511 ], [ -70.9539, 42.3509 ], [ -70.9538, 42.3508 ], [ -70.9537, 42.3505 ], [ -70.9537, 42.3506 ], [ -70.9538, 42.3506 ], [ -70.9538, 42.3507 ], [ -70.9538, 42.3507 ], [ -70.9539, 42.3508 ], [ -70.9539, 42.3508 ], [ -70.9539, 42.3508 ], [ -70.9539, 42.3508 ], [ -70.9539, 42.3507 ], [ -70.9539, 42.3507 ], [ -70.9539, 42.3507 ], [ -70.9538, 42.3506 ], [ -70.9538, 42.3506 ], [ -70.9538, 42.3506 ], [ -70.9537, 42.3505 ], [ -70.9537, 42.3504 ], [ -70.9537, 42.3504 ], [ -70.9536, 42.3504 ], [ -70.9536, 42.3503 ], [ -70.9536, 42.3502 ], [ -70.9535, 42.3501 ], [ -70.9535, 42.3501 ], [ -70.9534, 42.3500 ], [ -70.9534, 42.3499 ], [ -70.9534, 42.3499 ], [ -70.9534, 42.3498 ], [ -70.9533, 42.3498 ], [ -70.9533, 42.3496 ], [ -70.9533, 42.3495 ], [ -70.9532, 42.3494 ], [ -70.9532, 42.3494 ], [ -70.9534, 42.3493 ], [ -70.9534, 42.3493 ], [ -70.9535, 42.3493 ], [ -70.9536, 42.3493 ], [ -70.9536, 42.3493 ], [ -70.9537, 42.3493 ], [ -70.9537, 42.3492 ], [ -70.9538, 42.3492 ], [ -70.9538, 42.3492 ], [ -70.9539, 42.3491 ], [ -70.9539, 42.3491 ], [ -70.9539, 42.3491 ], [ -70.9539, 42.3491 ], [ -70.9540, 42.3491 ], [ -70.9539, 42.3491 ], [ -70.9539, 42.3491 ], [ -70.9539, 42.3490 ], [ -70.9540, 42.3489 ], [ -70.9540, 42.3488 ], [ -70.9540, 42.3487 ], [ -70.9540, 42.3486 ], [ -70.9541, 42.3484 ], [ -70.9541, 42.3483 ], [ -70.9541, 42.3482 ], [ -70.9541, 42.3481 ], [ -70.9541, 42.3481 ], [ -70.9541, 42.3481 ], [ -70.9540, 42.3480 ], [ -70.9540, 42.3480 ], [ -70.9540, 42.3480 ], [ -70.9540, 42.3479 ], [ -70.9540, 42.3479 ], [ -70.9540, 42.3479 ], [ -70.9540, 42.3478 ], [ -70.9540, 42.3478 ], [ -70.9540, 42.3478 ], [ -70.9540, 42.3477 ], [ -70.9540, 42.3477 ], [ -70.9539, 42.3476 ], [ -70.9539, 42.3476 ], [ -70.9539, 42.3475 ], [ -70.9539, 42.3475 ], [ -70.9539, 42.3475 ], [ -70.9539, 42.3474 ], [ -70.9539, 42.3474 ], [ -70.9539, 42.3474 ], [ -70.9539, 42.3474 ], [ -70.9539, 42.3473 ], [ -70.9539, 42.3473 ], [ -70.9539, 42.3473 ], [ -70.9539, 42.3473 ], [ -70.9539, 42.3473 ], [ -70.9539, 42.3473 ], [ -70.9539, 42.3472 ], [ -70.9538, 42.3472 ], [ -70.9538, 42.3472 ], [ -70.9538, 42.3472 ], [ -70.9538, 42.3471 ], [ -70.9538, 42.3471 ], [ -70.9538, 42.3471 ], [ -70.9538, 42.3470 ], [ -70.9537, 42.3470 ], [ -70.9537, 42.3470 ], [ -70.9537, 42.3470 ], [ -70.9536, 42.3470 ], [ -70.9536, 42.3469 ], [ -70.9536, 42.3469 ], [ -70.9536, 42.3469 ], [ -70.9536, 42.3469 ], [ -70.9536, 42.3468 ], [ -70.9536, 42.3468 ], [ -70.9535, 42.3468 ], [ -70.9536, 42.3467 ], [ -70.9535, 42.3465 ], [ -70.9533, 42.3461 ], [ -70.9533, 42.3461 ], [ -70.9533, 42.3462 ], [ -70.9533, 42.3461 ], [ -70.9532, 42.3461 ], [ -70.9532, 42.3461 ], [ -70.9532, 42.3461 ], [ -70.9532, 42.3460 ], [ -70.9532, 42.3460 ], [ -70.9532, 42.3460 ], [ -70.9531, 42.3460 ], [ -70.9531, 42.3459 ], [ -70.9531, 42.3459 ], [ -70.9531, 42.3459 ], [ -70.9531, 42.3459 ], [ -70.9531, 42.3458 ], [ -70.9531, 42.3458 ], [ -70.9532, 42.3458 ], [ -70.9532, 42.3458 ], [ -70.9532, 42.3459 ], [ -70.9532, 42.3458 ], [ -70.9532, 42.3458 ], [ -70.9533, 42.3458 ], [ -70.9533, 42.3458 ], [ -70.9533, 42.3458 ], [ -70.9533, 42.3458 ], [ -70.9533, 42.3458 ], [ -70.9533, 42.3457 ], [ -70.9533, 42.3457 ], [ -70.9533, 42.3457 ], [ -70.9533, 42.3457 ], [ -70.9533, 42.3456 ], [ -70.9533, 42.3456 ], [ -70.9532, 42.3456 ], [ -70.9532, 42.3456 ], [ -70.9532, 42.3455 ], [ -70.9532, 42.3455 ], [ -70.9532, 42.3455 ], [ -70.9532, 42.3455 ], [ -70.9532, 42.3454 ], [ -70.9532, 42.3454 ], [ -70.9532, 42.3454 ], [ -70.9532, 42.3453 ], [ -70.9532, 42.3453 ], [ -70.9532, 42.3453 ], [ -70.9532, 42.3452 ], [ -70.9532, 42.3452 ], [ -70.9532, 42.3451 ], [ -70.9532, 42.3451 ], [ -70.9532, 42.3451 ], [ -70.9532, 42.3451 ], [ -70.9531, 42.3450 ], [ -70.9531, 42.3450 ], [ -70.9531, 42.3449 ], [ -70.9531, 42.3449 ], [ -70.9531, 42.3449 ], [ -70.9531, 42.3449 ], [ -70.9531, 42.3449 ], [ -70.9531, 42.3448 ], [ -70.9530, 42.3448 ], [ -70.9530, 42.3447 ], [ -70.9530, 42.3446 ], [ -70.9530, 42.3446 ], [ -70.9530, 42.3446 ], [ -70.9530, 42.3446 ], [ -70.9530, 42.3445 ], [ -70.9530, 42.3445 ], [ -70.9530, 42.3445 ], [ -70.9530, 42.3444 ], [ -70.9530, 42.3444 ], [ -70.9530, 42.3444 ], [ -70.9529, 42.3444 ], [ -70.9529, 42.3444 ], [ -70.9529, 42.3443 ], [ -70.9529, 42.3443 ], [ -70.9529, 42.3443 ], [ -70.9530, 42.3443 ], [ -70.9530, 42.3443 ], [ -70.9530, 42.3443 ], [ -70.9531, 42.3443 ], [ -70.9531, 42.3443 ], [ -70.9531, 42.3443 ], [ -70.9532, 42.3442 ], [ -70.9532, 42.3442 ], [ -70.9532, 42.3442 ], [ -70.9532, 42.3442 ], [ -70.9532, 42.3441 ], [ -70.9532, 42.3441 ], [ -70.9532, 42.3441 ], [ -70.9532, 42.3441 ], [ -70.9532, 42.3441 ], [ -70.9532, 42.3441 ], [ -70.9533, 42.3441 ], [ -70.9533, 42.3440 ], [ -70.9533, 42.3440 ], [ -70.9533, 42.3440 ], [ -70.9533, 42.3440 ], [ -70.9533, 42.3440 ], [ -70.9533, 42.3440 ], [ -70.9533, 42.3439 ], [ -70.9533, 42.3439 ], [ -70.9534, 42.3439 ], [ -70.9534, 42.3439 ], [ -70.9534, 42.3439 ], [ -70.9534, 42.3438 ], [ -70.9535, 42.3438 ], [ -70.9535, 42.3438 ], [ -70.9536, 42.3439 ], [ -70.9536, 42.3439 ], [ -70.9536, 42.3439 ], [ -70.9537, 42.3439 ], [ -70.9537, 42.3440 ], [ -70.9537, 42.3440 ], [ -70.9537, 42.3440 ], [ -70.9537, 42.3440 ], [ -70.9537, 42.3441 ], [ -70.9538, 42.3441 ], [ -70.9538, 42.3441 ], [ -70.9539, 42.3441 ], [ -70.9539, 42.3442 ], [ -70.9539, 42.3442 ], [ -70.9540, 42.3442 ], [ -70.9540, 42.3442 ], [ -70.9541, 42.3443 ], [ -70.9541, 42.3443 ], [ -70.9542, 42.3443 ], [ -70.9542, 42.3443 ], [ -70.9542, 42.3443 ], [ -70.9543, 42.3444 ], [ -70.9544, 42.3444 ], [ -70.9544, 42.3444 ], [ -70.9545, 42.3444 ], [ -70.9546, 42.3445 ], [ -70.9548, 42.3445 ], [ -70.9548, 42.3445 ], [ -70.9549, 42.3445 ], [ -70.9551, 42.3445 ], [ -70.9552, 42.3444 ], [ -70.9553, 42.3444 ], [ -70.9555, 42.3444 ], [ -70.9558, 42.3442 ], [ -70.9559, 42.3439 ], [ -70.9559, 42.3439 ], [ -70.9559, 42.3440 ], [ -70.9559, 42.3440 ], [ -70.9559, 42.3441 ], [ -70.9559, 42.3442 ], [ -70.9559, 42.3442 ], [ -70.9559, 42.3443 ], [ -70.9559, 42.3443 ], [ -70.9558, 42.3445 ], [ -70.9559, 42.3446 ], [ -70.9560, 42.3446 ], [ -70.9561, 42.3446 ], [ -70.9561, 42.3447 ], [ -70.9561, 42.3447 ], [ -70.9562, 42.3447 ], [ -70.9563, 42.3448 ], [ -70.9564, 42.3450 ], [ -70.9565, 42.3450 ], [ -70.9565, 42.3450 ], [ -70.9565, 42.3450 ], [ -70.9565, 42.3450 ], [ -70.9564, 42.3451 ], [ -70.9564, 42.3451 ], [ -70.9565, 42.3451 ], [ -70.9565, 42.3451 ], [ -70.9565, 42.3451 ], [ -70.9566, 42.3451 ], [ -70.9566, 42.3450 ], [ -70.9567, 42.3450 ], [ -70.9567, 42.3450 ], [ -70.9567, 42.3450 ], [ -70.9567, 42.3450 ], [ -70.9568, 42.3449 ], [ -70.9582, 42.3464 ], [ -70.9583, 42.3472 ], [ -70.9583, 42.3472 ], [ -70.9583, 42.3472 ], [ -70.9583, 42.3472 ], [ -70.9583, 42.3472 ], [ -70.9583, 42.3472 ], [ -70.9583, 42.3473 ], [ -70.9584, 42.3473 ], [ -70.9584, 42.3474 ], [ -70.9584, 42.3474 ], [ -70.9585, 42.3475 ], [ -70.9585, 42.3475 ], [ -70.9585, 42.3476 ], [ -70.9586, 42.3476 ], [ -70.9586, 42.3477 ], [ -70.9586, 42.3477 ], [ -70.9586, 42.3478 ], [ -70.9587, 42.3478 ], [ -70.9587, 42.3479 ], [ -70.9587, 42.3480 ], [ -70.9588, 42.3480 ], [ -70.9588, 42.3481 ], [ -70.9589, 42.3481 ], [ -70.9589, 42.3482 ], [ -70.9590, 42.3482 ], [ -70.9590, 42.3482 ], [ -70.9591, 42.3483 ], [ -70.9593, 42.3485 ], [ -70.9594, 42.3486 ], [ -70.9595, 42.3487 ], [ -70.9595, 42.3487 ], [ -70.9596, 42.3488 ], [ -70.9597, 42.3488 ], [ -70.9598, 42.3489 ], [ -70.9599, 42.3489 ], [ -70.9600, 42.3490 ], [ -70.9600, 42.3490 ], [ -70.9601, 42.3490 ], [ -70.9602, 42.3490 ], [ -70.9602, 42.3490 ], [ -70.9602, 42.3490 ], [ -70.9602, 42.3491 ], [ -70.9603, 42.3491 ], [ -70.9603, 42.3491 ], [ -70.9604, 42.3491 ], [ -70.9605, 42.3492 ], [ -70.9605, 42.3492 ], [ -70.9605, 42.3492 ], [ -70.9606, 42.3492 ], [ -70.9607, 42.3493 ], [ -70.9608, 42.3493 ], [ -70.9609, 42.3494 ], [ -70.9611, 42.3494 ], [ -70.9611, 42.3495 ], [ -70.9613, 42.3495 ], [ -70.9614, 42.3495 ], [ -70.9615, 42.3496 ], [ -70.9616, 42.3496 ], [ -70.9616, 42.3496 ], [ -70.9617, 42.3497 ], [ -70.9618, 42.3497 ], [ -70.9618, 42.3498 ], [ -70.9619, 42.3498 ], [ -70.9620, 42.3498 ], [ -70.9621, 42.3499 ], [ -70.9622, 42.3499 ], [ -70.9624, 42.3500 ], [ -70.9624, 42.3501 ], [ -70.9625, 42.3501 ], [ -70.9625, 42.3502 ], [ -70.9626, 42.3502 ], [ -70.9627, 42.3503 ], [ -70.9628, 42.3503 ], [ -70.9629, 42.3504 ], [ -70.9629, 42.3504 ], [ -70.9629, 42.3504 ], [ -70.9630, 42.3504 ], [ -70.9631, 42.3504 ], [ -70.9631, 42.3505 ], [ -70.9632, 42.3505 ], [ -70.9632, 42.3505 ], [ -70.9630, 42.3507 ], [ -70.9630, 42.3507 ], [ -70.9631, 42.3507 ], [ -70.9631, 42.3508 ], [ -70.9631, 42.3508 ], [ -70.9632, 42.3508 ], [ -70.9634, 42.3509 ], [ -70.9634, 42.3509 ], [ -70.9635, 42.3509 ], [ -70.9636, 42.3509 ], [ -70.9637, 42.3510 ], [ -70.9639, 42.3510 ], [ -70.9640, 42.3510 ], [ -70.9642, 42.3511 ], [ -70.9643, 42.3511 ], [ -70.9645, 42.3512 ], [ -70.9646, 42.3512 ], [ -70.9647, 42.3513 ], [ -70.9648, 42.3514 ], [ -70.9648, 42.3515 ], [ -70.9649, 42.3515 ], [ -70.9649, 42.3516 ], [ -70.9650, 42.3517 ], [ -70.9651, 42.3518 ], [ -70.9651, 42.3519 ], [ -70.9652, 42.3519 ], [ -70.9652, 42.3520 ], [ -70.9652, 42.3521 ], [ -70.9652, 42.3521 ], [ -70.9651, 42.3522 ], [ -70.9651, 42.3522 ], [ -70.9651, 42.3523 ], [ -70.9650, 42.3524 ], [ -70.9652, 42.3524 ], [ -70.9652, 42.3524 ], [ -70.9649, 42.3525 ], [ -70.9648, 42.3525 ], [ -70.9648, 42.3526 ], [ -70.9648, 42.3526 ], [ -70.9648, 42.3527 ], [ -70.9648, 42.3527 ], [ -70.9648, 42.3527 ], [ -70.9648, 42.3528 ], [ -70.9648, 42.3528 ], [ -70.9649, 42.3529 ], [ -70.9650, 42.3530 ], [ -70.9651, 42.3531 ], [ -70.9652, 42.3532 ], [ -70.9655, 42.3534 ], [ -70.9657, 42.3535 ], [ -70.9660, 42.3536 ], [ -70.9662, 42.3537 ], [ -70.9664, 42.3538 ], [ -70.9666, 42.3539 ], [ -70.9668, 42.3539 ], [ -70.9671, 42.3540 ], [ -70.9673, 42.3541 ], [ -70.9675, 42.3542 ], [ -70.9678, 42.3543 ], [ -70.9682, 42.3544 ], [ -70.9683, 42.3545 ], [ -70.9685, 42.3546 ], [ -70.9686, 42.3547 ], [ -70.9686, 42.3548 ], [ -70.9686, 42.3548 ], [ -70.9685, 42.3549 ], [ -70.9685, 42.3550 ], [ -70.9684, 42.3550 ], [ -70.9682, 42.3550 ], [ -70.9681, 42.3551 ], [ -70.9679, 42.3551 ], [ -70.9678, 42.3551 ], [ -70.9678, 42.3551 ], [ -70.9678, 42.3552 ], [ -70.9678, 42.3552 ], [ -70.9677, 42.3553 ], [ -70.9677, 42.3553 ], [ -70.9677, 42.3554 ], [ -70.9677, 42.3554 ], [ -70.9678, 42.3555 ], [ -70.9679, 42.3555 ], [ -70.9681, 42.3556 ], [ -70.9684, 42.3558 ], [ -70.9687, 42.3559 ], [ -70.9674, 42.3569 ], [ -70.9673, 42.3569 ], [ -70.9670, 42.3567 ], [ -70.9668, 42.3566 ], [ -70.9664, 42.3564 ], [ -70.9662, 42.3564 ], [ -70.9660, 42.3563 ], [ -70.9659, 42.3563 ], [ -70.9657, 42.3563 ], [ -70.9656, 42.3562 ], [ -70.9655, 42.3562 ], [ -70.9654, 42.3561 ], [ -70.9653, 42.3560 ], [ -70.9652, 42.3559 ], [ -70.9651, 42.3559 ], [ -70.9649, 42.3559 ], [ -70.9648, 42.3558 ], [ -70.9647, 42.3558 ], [ -70.9647, 42.3557 ] ] ], [ [ [ -70.9996, 42.3199 ], [ -70.9997, 42.3197 ], [ -70.9994, 42.3196 ], [ -70.9992, 42.3195 ], [ -70.9992, 42.3194 ], [ -70.9992, 42.3192 ], [ -70.9994, 42.3190 ], [ -70.9998, 42.3188 ], [ -70.9999, 42.3190 ], [ -71.0001, 42.3190 ], [ -71.0002, 42.3192 ], [ -71.0003, 42.3193 ], [ -71.0006, 42.3195 ], [ -71.0009, 42.3196 ], [ -71.0012, 42.3197 ], [ -71.0016, 42.3198 ], [ -71.0020, 42.3197 ], [ -71.0025, 42.3197 ], [ -71.0031, 42.3195 ], [ -71.0036, 42.3192 ], [ -71.0041, 42.3190 ], [ -71.0045, 42.3187 ], [ -71.0047, 42.3185 ], [ -71.0050, 42.3182 ], [ -71.0054, 42.3178 ], [ -71.0056, 42.3175 ], [ -71.0059, 42.3171 ], [ -71.0062, 42.3167 ], [ -71.0067, 42.3165 ], [ -71.0069, 42.3160 ], [ -71.0071, 42.3156 ], [ -71.0074, 42.3151 ], [ -71.0076, 42.3144 ], [ -71.0081, 42.3137 ], [ -71.0087, 42.3130 ], [ -71.0091, 42.3126 ], [ -71.0095, 42.3123 ], [ -71.0098, 42.3120 ], [ -71.0102, 42.3117 ], [ -71.0105, 42.3113 ], [ -71.0107, 42.3110 ], [ -71.0109, 42.3106 ], [ -71.0111, 42.3103 ], [ -71.0114, 42.3101 ], [ -71.0116, 42.3096 ], [ -71.0118, 42.3092 ], [ -71.0117, 42.3089 ], [ -71.0120, 42.3092 ], [ -71.0121, 42.3093 ], [ -71.0123, 42.3095 ], [ -71.0124, 42.3096 ], [ -71.0126, 42.3098 ], [ -71.0127, 42.3098 ], [ -71.0127, 42.3098 ], [ -71.0128, 42.3099 ], [ -71.0129, 42.3099 ], [ -71.0132, 42.3100 ], [ -71.0132, 42.3100 ], [ -71.0134, 42.3102 ], [ -71.0138, 42.3103 ], [ -71.0141, 42.3103 ], [ -71.0144, 42.3102 ], [ -71.0146, 42.3102 ], [ -71.0150, 42.3102 ], [ -71.0153, 42.3102 ], [ -71.0156, 42.3102 ], [ -71.0157, 42.3102 ], [ -71.0157, 42.3100 ], [ -71.0156, 42.3099 ], [ -71.0155, 42.3098 ], [ -71.0153, 42.3097 ], [ -71.0151, 42.3096 ], [ -71.0149, 42.3096 ], [ -71.0146, 42.3095 ], [ -71.0143, 42.3095 ], [ -71.0142, 42.3094 ], [ -71.0142, 42.3092 ], [ -71.0144, 42.3092 ], [ -71.0148, 42.3093 ], [ -71.0151, 42.3094 ], [ -71.0154, 42.3095 ], [ -71.0156, 42.3095 ], [ -71.0157, 42.3097 ], [ -71.0158, 42.3098 ], [ -71.0159, 42.3099 ], [ -71.0160, 42.3100 ], [ -71.0163, 42.3102 ], [ -71.0164, 42.3103 ], [ -71.0166, 42.3104 ], [ -71.0166, 42.3105 ], [ -71.0167, 42.3106 ], [ -71.0168, 42.3107 ], [ -71.0168, 42.3107 ], [ -71.0169, 42.3107 ], [ -71.0169, 42.3108 ], [ -71.0169, 42.3109 ], [ -71.0171, 42.3111 ], [ -71.0172, 42.3113 ], [ -71.0174, 42.3115 ], [ -71.0175, 42.3118 ], [ -71.0175, 42.3119 ], [ -71.0176, 42.3121 ], [ -71.0176, 42.3123 ], [ -71.0176, 42.3124 ], [ -71.0176, 42.3126 ], [ -71.0176, 42.3127 ], [ -71.0176, 42.3130 ], [ -71.0175, 42.3131 ], [ -71.0175, 42.3132 ], [ -71.0173, 42.3134 ], [ -71.0171, 42.3137 ], [ -71.0169, 42.3138 ], [ -71.0167, 42.3140 ], [ -71.0163, 42.3141 ], [ -71.0159, 42.3143 ], [ -71.0156, 42.3144 ], [ -71.0151, 42.3146 ], [ -71.0147, 42.3147 ], [ -71.0145, 42.3148 ], [ -71.0141, 42.3149 ], [ -71.0138, 42.3150 ], [ -71.0135, 42.3151 ], [ -71.0131, 42.3153 ], [ -71.0127, 42.3156 ], [ -71.0124, 42.3158 ], [ -71.0121, 42.3159 ], [ -71.0118, 42.3161 ], [ -71.0113, 42.3164 ], [ -71.0109, 42.3167 ], [ -71.0106, 42.3171 ], [ -71.0103, 42.3174 ], [ -71.0101, 42.3177 ], [ -71.0099, 42.3180 ], [ -71.0098, 42.3183 ], [ -71.0098, 42.3185 ], [ -71.0099, 42.3185 ], [ -71.0099, 42.3186 ], [ -71.0100, 42.3186 ], [ -71.0096, 42.3186 ], [ -71.0094, 42.3187 ], [ -71.0092, 42.3189 ], [ -71.0088, 42.3193 ], [ -71.0085, 42.3195 ], [ -71.0082, 42.3197 ], [ -71.0079, 42.3199 ], [ -71.0075, 42.3202 ], [ -71.0073, 42.3204 ], [ -71.0069, 42.3206 ], [ -71.0067, 42.3207 ], [ -71.0063, 42.3208 ], [ -71.0059, 42.3209 ], [ -71.0055, 42.3210 ], [ -71.0050, 42.3211 ], [ -71.0046, 42.3212 ], [ -71.0041, 42.3213 ], [ -71.0032, 42.3213 ], [ -71.0025, 42.3214 ], [ -71.0020, 42.3214 ], [ -71.0016, 42.3213 ], [ -71.0010, 42.3212 ], [ -71.0005, 42.3211 ], [ -71.0003, 42.3210 ], [ -71.0000, 42.3210 ], [ -70.9998, 42.3209 ], [ -70.9996, 42.3208 ], [ -70.9994, 42.3206 ], [ -70.9994, 42.3205 ], [ -70.9995, 42.3203 ], [ -70.9996, 42.3201 ], [ -70.9996, 42.3199 ] ] ], [ [ [ -70.9851, 42.3233 ], [ -70.9849, 42.3231 ], [ -70.9847, 42.3228 ], [ -70.9846, 42.3225 ], [ -70.9845, 42.3220 ], [ -70.9845, 42.3213 ], [ -70.9847, 42.3211 ], [ -70.9849, 42.3209 ], [ -70.9852, 42.3206 ], [ -70.9855, 42.3203 ], [ -70.9858, 42.3200 ], [ -70.9860, 42.3196 ], [ -70.9861, 42.3192 ], [ -70.9865, 42.3190 ], [ -70.9870, 42.3193 ], [ -70.9871, 42.3195 ], [ -70.9873, 42.3196 ], [ -70.9874, 42.3197 ], [ -70.9876, 42.3197 ], [ -70.9878, 42.3198 ], [ -70.9880, 42.3199 ], [ -70.9880, 42.3199 ], [ -70.9881, 42.3200 ], [ -70.9881, 42.3201 ], [ -70.9881, 42.3202 ], [ -70.9880, 42.3204 ], [ -70.9880, 42.3206 ], [ -70.9879, 42.3208 ], [ -70.9878, 42.3211 ], [ -70.9878, 42.3214 ], [ -70.9879, 42.3214 ], [ -70.9879, 42.3216 ], [ -70.9879, 42.3219 ], [ -70.9879, 42.3220 ], [ -70.9878, 42.3223 ], [ -70.9878, 42.3225 ], [ -70.9877, 42.3228 ], [ -70.9879, 42.3229 ], [ -70.9879, 42.3231 ], [ -70.9879, 42.3231 ], [ -70.9879, 42.3232 ], [ -70.9880, 42.3233 ], [ -70.9880, 42.3233 ], [ -70.9879, 42.3233 ], [ -70.9879, 42.3233 ], [ -70.9879, 42.3234 ], [ -70.9879, 42.3234 ], [ -70.9879, 42.3234 ], [ -70.9880, 42.3235 ], [ -70.9881, 42.3235 ], [ -70.9882, 42.3236 ], [ -70.9886, 42.3237 ], [ -70.9886, 42.3237 ], [ -70.9886, 42.3238 ], [ -70.9886, 42.3238 ], [ -70.9885, 42.3239 ], [ -70.9884, 42.3239 ], [ -70.9884, 42.3240 ], [ -70.9884, 42.3240 ], [ -70.9883, 42.3241 ], [ -70.9883, 42.3241 ], [ -70.9883, 42.3241 ], [ -70.9883, 42.3241 ], [ -70.9883, 42.3243 ], [ -70.9884, 42.3245 ], [ -70.9885, 42.3246 ], [ -70.9886, 42.3246 ], [ -70.9888, 42.3247 ], [ -70.9891, 42.3249 ], [ -70.9893, 42.3250 ], [ -70.9895, 42.3251 ], [ -70.9897, 42.3253 ], [ -70.9899, 42.3254 ], [ -70.9901, 42.3255 ], [ -70.9903, 42.3256 ], [ -70.9906, 42.3257 ], [ -70.9909, 42.3258 ], [ -70.9914, 42.3260 ], [ -70.9914, 42.3260 ], [ -70.9914, 42.3261 ], [ -70.9914, 42.3261 ], [ -70.9914, 42.3263 ], [ -70.9914, 42.3265 ], [ -70.9913, 42.3267 ], [ -70.9912, 42.3269 ], [ -70.9911, 42.3271 ], [ -70.9909, 42.3272 ], [ -70.9908, 42.3274 ], [ -70.9905, 42.3276 ], [ -70.9903, 42.3277 ], [ -70.9901, 42.3277 ], [ -70.9900, 42.3278 ], [ -70.9897, 42.3280 ], [ -70.9896, 42.3280 ], [ -70.9894, 42.3280 ], [ -70.9892, 42.3281 ], [ -70.9889, 42.3281 ], [ -70.9887, 42.3282 ], [ -70.9885, 42.3283 ], [ -70.9883, 42.3283 ], [ -70.9859, 42.3283 ], [ -70.9852, 42.3283 ], [ -70.9849, 42.3282 ], [ -70.9849, 42.3282 ], [ -70.9845, 42.3281 ], [ -70.9841, 42.3280 ], [ -70.9838, 42.3278 ], [ -70.9838, 42.3275 ], [ -70.9840, 42.3274 ], [ -70.9841, 42.3271 ], [ -70.9847, 42.3268 ], [ -70.9852, 42.3266 ], [ -70.9853, 42.3264 ], [ -70.9853, 42.3258 ], [ -70.9853, 42.3254 ], [ -70.9853, 42.3246 ], [ -70.9853, 42.3246 ], [ -70.9853, 42.3242 ], [ -70.9852, 42.3237 ], [ -70.9851, 42.3233 ] ] ], [ [ [ -70.9251, 42.3287 ], [ -70.9248, 42.3283 ], [ -70.9245, 42.3280 ], [ -70.9243, 42.3278 ], [ -70.9241, 42.3276 ], [ -70.9240, 42.3275 ], [ -70.9238, 42.3273 ], [ -70.9237, 42.3271 ], [ -70.9236, 42.3270 ], [ -70.9235, 42.3269 ], [ -70.9233, 42.3268 ], [ -70.9233, 42.3267 ], [ -70.9233, 42.3266 ], [ -70.9233, 42.3266 ], [ -70.9232, 42.3266 ], [ -70.9232, 42.3266 ], [ -70.9231, 42.3266 ], [ -70.9230, 42.3266 ], [ -70.9230, 42.3266 ], [ -70.9228, 42.3266 ], [ -70.9227, 42.3266 ], [ -70.9227, 42.3266 ], [ -70.9228, 42.3265 ], [ -70.9228, 42.3265 ], [ -70.9229, 42.3265 ], [ -70.9230, 42.3264 ], [ -70.9231, 42.3264 ], [ -70.9231, 42.3263 ], [ -70.9232, 42.3263 ], [ -70.9232, 42.3263 ], [ -70.9232, 42.3262 ], [ -70.9232, 42.3260 ], [ -70.9233, 42.3258 ], [ -70.9234, 42.3256 ], [ -70.9235, 42.3255 ], [ -70.9236, 42.3254 ], [ -70.9238, 42.3253 ], [ -70.9240, 42.3252 ], [ -70.9242, 42.3251 ], [ -70.9244, 42.3251 ], [ -70.9244, 42.3251 ], [ -70.9243, 42.3251 ], [ -70.9243, 42.3251 ], [ -70.9244, 42.3251 ], [ -70.9246, 42.3251 ], [ -70.9247, 42.3251 ], [ -70.9248, 42.3251 ], [ -70.9250, 42.3252 ], [ -70.9251, 42.3252 ], [ -70.9253, 42.3252 ], [ -70.9255, 42.3253 ], [ -70.9257, 42.3253 ], [ -70.9259, 42.3253 ], [ -70.9260, 42.3253 ], [ -70.9261, 42.3254 ], [ -70.9262, 42.3255 ], [ -70.9263, 42.3255 ], [ -70.9263, 42.3257 ], [ -70.9263, 42.3257 ], [ -70.9263, 42.3259 ], [ -70.9264, 42.3260 ], [ -70.9264, 42.3261 ], [ -70.9264, 42.3262 ], [ -70.9265, 42.3265 ], [ -70.9266, 42.3266 ], [ -70.9266, 42.3267 ], [ -70.9266, 42.3268 ], [ -70.9267, 42.3268 ], [ -70.9267, 42.3269 ], [ -70.9269, 42.3272 ], [ -70.9270, 42.3273 ], [ -70.9271, 42.3274 ], [ -70.9273, 42.3274 ], [ -70.9275, 42.3275 ], [ -70.9276, 42.3275 ], [ -70.9276, 42.3275 ], [ -70.9276, 42.3276 ], [ -70.9277, 42.3277 ], [ -70.9278, 42.3277 ], [ -70.9279, 42.3278 ], [ -70.9281, 42.3279 ], [ -70.9282, 42.3280 ], [ -70.9284, 42.3281 ], [ -70.9287, 42.3282 ], [ -70.9289, 42.3282 ], [ -70.9291, 42.3283 ], [ -70.9293, 42.3284 ], [ -70.9294, 42.3284 ], [ -70.9296, 42.3285 ], [ -70.9298, 42.3285 ], [ -70.9300, 42.3285 ], [ -70.9302, 42.3285 ], [ -70.9304, 42.3285 ], [ -70.9305, 42.3285 ], [ -70.9307, 42.3284 ], [ -70.9309, 42.3284 ], [ -70.9311, 42.3284 ], [ -70.9313, 42.3285 ], [ -70.9314, 42.3285 ], [ -70.9315, 42.3286 ], [ -70.9316, 42.3286 ], [ -70.9317, 42.3287 ], [ -70.9318, 42.3288 ], [ -70.9318, 42.3289 ], [ -70.9319, 42.3290 ], [ -70.9319, 42.3291 ], [ -70.9318, 42.3292 ], [ -70.9318, 42.3293 ], [ -70.9317, 42.3293 ], [ -70.9316, 42.3294 ], [ -70.9315, 42.3295 ], [ -70.9313, 42.3295 ], [ -70.9312, 42.3296 ], [ -70.9311, 42.3297 ], [ -70.9311, 42.3297 ], [ -70.9311, 42.3298 ], [ -70.9310, 42.3300 ], [ -70.9310, 42.3301 ], [ -70.9310, 42.3302 ], [ -70.9310, 42.3303 ], [ -70.9311, 42.3305 ], [ -70.9311, 42.3306 ], [ -70.9310, 42.3307 ], [ -70.9310, 42.3308 ], [ -70.9310, 42.3309 ], [ -70.9310, 42.3310 ], [ -70.9310, 42.3310 ], [ -70.9310, 42.3311 ], [ -70.9311, 42.3312 ], [ -70.9312, 42.3313 ], [ -70.9314, 42.3314 ], [ -70.9315, 42.3314 ], [ -70.9315, 42.3315 ], [ -70.9316, 42.3315 ], [ -70.9317, 42.3315 ], [ -70.9317, 42.3316 ], [ -70.9316, 42.3318 ], [ -70.9316, 42.3318 ], [ -70.9316, 42.3319 ], [ -70.9316, 42.3320 ], [ -70.9316, 42.3321 ], [ -70.9316, 42.3322 ], [ -70.9316, 42.3323 ], [ -70.9316, 42.3323 ], [ -70.9316, 42.3324 ], [ -70.9317, 42.3325 ], [ -70.9317, 42.3325 ], [ -70.9318, 42.3326 ], [ -70.9319, 42.3326 ], [ -70.9320, 42.3326 ], [ -70.9320, 42.3327 ], [ -70.9320, 42.3327 ], [ -70.9320, 42.3328 ], [ -70.9318, 42.3329 ], [ -70.9316, 42.3330 ], [ -70.9314, 42.3330 ], [ -70.9312, 42.3331 ], [ -70.9311, 42.3332 ], [ -70.9309, 42.3333 ], [ -70.9307, 42.3334 ], [ -70.9306, 42.3335 ], [ -70.9305, 42.3335 ], [ -70.9304, 42.3335 ], [ -70.9303, 42.3336 ], [ -70.9301, 42.3336 ], [ -70.9300, 42.3336 ], [ -70.9299, 42.3336 ], [ -70.9298, 42.3336 ], [ -70.9298, 42.3335 ], [ -70.9297, 42.3334 ], [ -70.9297, 42.3334 ], [ -70.9297, 42.3333 ], [ -70.9297, 42.3333 ], [ -70.9298, 42.3332 ], [ -70.9297, 42.3332 ], [ -70.9297, 42.3332 ], [ -70.9297, 42.3331 ], [ -70.9296, 42.3330 ], [ -70.9295, 42.3329 ], [ -70.9294, 42.3328 ], [ -70.9294, 42.3328 ], [ -70.9294, 42.3327 ], [ -70.9293, 42.3327 ], [ -70.9293, 42.3326 ], [ -70.9292, 42.3326 ], [ -70.9291, 42.3325 ], [ -70.9290, 42.3324 ], [ -70.9289, 42.3323 ], [ -70.9289, 42.3322 ], [ -70.9288, 42.3322 ], [ -70.9287, 42.3321 ], [ -70.9286, 42.3321 ], [ -70.9285, 42.3320 ], [ -70.9284, 42.3320 ], [ -70.9283, 42.3319 ], [ -70.9275, 42.3311 ], [ -70.9275, 42.3310 ], [ -70.9275, 42.3310 ], [ -70.9274, 42.3309 ], [ -70.9272, 42.3306 ], [ -70.9270, 42.3305 ], [ -70.9268, 42.3304 ], [ -70.9267, 42.3302 ], [ -70.9265, 42.3300 ], [ -70.9262, 42.3297 ], [ -70.9260, 42.3295 ], [ -70.9257, 42.3293 ], [ -70.9254, 42.3289 ], [ -70.9251, 42.3287 ] ] ], [ [ [ -70.9304, 42.3218 ], [ -70.9304, 42.3218 ], [ -70.9303, 42.3218 ], [ -70.9303, 42.3219 ], [ -70.9302, 42.3220 ], [ -70.9300, 42.3220 ], [ -70.9298, 42.3220 ], [ -70.9296, 42.3221 ], [ -70.9294, 42.3221 ], [ -70.9292, 42.3221 ], [ -70.9291, 42.3221 ], [ -70.9290, 42.3221 ], [ -70.9290, 42.3221 ], [ -70.9289, 42.3221 ], [ -70.9288, 42.3221 ], [ -70.9287, 42.3221 ], [ -70.9286, 42.3221 ], [ -70.9285, 42.3221 ], [ -70.9285, 42.3221 ], [ -70.9284, 42.3221 ], [ -70.9282, 42.3221 ], [ -70.9281, 42.3221 ], [ -70.9279, 42.3220 ], [ -70.9278, 42.3220 ], [ -70.9277, 42.3219 ], [ -70.9275, 42.3219 ], [ -70.9274, 42.3218 ], [ -70.9273, 42.3218 ], [ -70.9271, 42.3218 ], [ -70.9270, 42.3217 ], [ -70.9269, 42.3217 ], [ -70.9269, 42.3217 ], [ -70.9267, 42.3216 ], [ -70.9266, 42.3216 ], [ -70.9266, 42.3216 ], [ -70.9265, 42.3215 ], [ -70.9265, 42.3215 ], [ -70.9262, 42.3214 ], [ -70.9261, 42.3214 ], [ -70.9261, 42.3213 ], [ -70.9261, 42.3213 ], [ -70.9260, 42.3212 ], [ -70.9260, 42.3212 ], [ -70.9259, 42.3211 ], [ -70.9259, 42.3210 ], [ -70.9259, 42.3209 ], [ -70.9258, 42.3209 ], [ -70.9258, 42.3207 ], [ -70.9257, 42.3206 ], [ -70.9257, 42.3206 ], [ -70.9257, 42.3205 ], [ -70.9257, 42.3204 ], [ -70.9256, 42.3203 ], [ -70.9256, 42.3202 ], [ -70.9256, 42.3202 ], [ -70.9256, 42.3201 ], [ -70.9256, 42.3201 ], [ -70.9256, 42.3200 ], [ -70.9256, 42.3198 ], [ -70.9255, 42.3197 ], [ -70.9255, 42.3195 ], [ -70.9255, 42.3194 ], [ -70.9255, 42.3192 ], [ -70.9255, 42.3190 ], [ -70.9256, 42.3189 ], [ -70.9257, 42.3188 ], [ -70.9258, 42.3186 ], [ -70.9258, 42.3185 ], [ -70.9258, 42.3184 ], [ -70.9259, 42.3182 ], [ -70.9260, 42.3181 ], [ -70.9260, 42.3180 ], [ -70.9261, 42.3179 ], [ -70.9262, 42.3178 ], [ -70.9262, 42.3178 ], [ -70.9263, 42.3178 ], [ -70.9264, 42.3178 ], [ -70.9264, 42.3178 ], [ -70.9265, 42.3179 ], [ -70.9266, 42.3179 ], [ -70.9266, 42.3179 ], [ -70.9267, 42.3180 ], [ -70.9268, 42.3180 ], [ -70.9269, 42.3180 ], [ -70.9270, 42.3180 ], [ -70.9270, 42.3180 ], [ -70.9271, 42.3180 ], [ -70.9272, 42.3180 ], [ -70.9272, 42.3180 ], [ -70.9273, 42.3179 ], [ -70.9274, 42.3178 ], [ -70.9275, 42.3178 ], [ -70.9275, 42.3177 ], [ -70.9276, 42.3177 ], [ -70.9277, 42.3176 ], [ -70.9278, 42.3175 ], [ -70.9279, 42.3174 ], [ -70.9280, 42.3173 ], [ -70.9280, 42.3173 ], [ -70.9282, 42.3172 ], [ -70.9282, 42.3172 ], [ -70.9282, 42.3172 ], [ -70.9283, 42.3172 ], [ -70.9283, 42.3171 ], [ -70.9283, 42.3171 ], [ -70.9284, 42.3171 ], [ -70.9284, 42.3171 ], [ -70.9284, 42.3172 ], [ -70.9285, 42.3172 ], [ -70.9286, 42.3173 ], [ -70.9287, 42.3173 ], [ -70.9288, 42.3174 ], [ -70.9289, 42.3174 ], [ -70.9289, 42.3175 ], [ -70.9290, 42.3175 ], [ -70.9291, 42.3175 ], [ -70.9291, 42.3176 ], [ -70.9292, 42.3177 ], [ -70.9293, 42.3178 ], [ -70.9294, 42.3179 ], [ -70.9294, 42.3180 ], [ -70.9295, 42.3181 ], [ -70.9296, 42.3183 ], [ -70.9297, 42.3184 ], [ -70.9298, 42.3185 ], [ -70.9299, 42.3186 ], [ -70.9299, 42.3187 ], [ -70.9300, 42.3188 ], [ -70.9300, 42.3189 ], [ -70.9301, 42.3189 ], [ -70.9301, 42.3190 ], [ -70.9301, 42.3190 ], [ -70.9301, 42.3190 ], [ -70.9301, 42.3191 ], [ -70.9302, 42.3192 ], [ -70.9304, 42.3194 ], [ -70.9304, 42.3194 ], [ -70.9306, 42.3198 ], [ -70.9306, 42.3198 ], [ -70.9305, 42.3198 ], [ -70.9304, 42.3199 ], [ -70.9303, 42.3199 ], [ -70.9303, 42.3199 ], [ -70.9304, 42.3201 ], [ -70.9305, 42.3203 ], [ -70.9306, 42.3205 ], [ -70.9307, 42.3208 ], [ -70.9308, 42.3210 ], [ -70.9308, 42.3211 ], [ -70.9308, 42.3213 ], [ -70.9308, 42.3216 ], [ -70.9307, 42.3218 ], [ -70.9307, 42.3219 ], [ -70.9306, 42.3221 ], [ -70.9306, 42.3222 ], [ -70.9305, 42.3223 ], [ -70.9304, 42.3223 ], [ -70.9304, 42.3223 ], [ -70.9303, 42.3222 ], [ -70.9302, 42.3222 ], [ -70.9301, 42.3222 ], [ -70.9301, 42.3221 ], [ -70.9301, 42.3221 ], [ -70.9302, 42.3221 ], [ -70.9303, 42.3221 ], [ -70.9304, 42.3221 ], [ -70.9304, 42.3220 ], [ -70.9304, 42.3220 ], [ -70.9304, 42.3219 ], [ -70.9304, 42.3218 ] ] ], [ [ [ -70.9407, 42.3277 ], [ -70.9405, 42.3277 ], [ -70.9405, 42.3277 ], [ -70.9404, 42.3277 ], [ -70.9403, 42.3277 ], [ -70.9402, 42.3277 ], [ -70.9401, 42.3277 ], [ -70.9400, 42.3276 ], [ -70.9398, 42.3276 ], [ -70.9397, 42.3276 ], [ -70.9396, 42.3275 ], [ -70.9394, 42.3275 ], [ -70.9392, 42.3274 ], [ -70.9391, 42.3274 ], [ -70.9389, 42.3273 ], [ -70.9387, 42.3272 ], [ -70.9385, 42.3271 ], [ -70.9384, 42.3271 ], [ -70.9382, 42.3270 ], [ -70.9381, 42.3269 ], [ -70.9379, 42.3269 ], [ -70.9378, 42.3268 ], [ -70.9375, 42.3268 ], [ -70.9373, 42.3267 ], [ -70.9372, 42.3267 ], [ -70.9371, 42.3267 ], [ -70.9370, 42.3266 ], [ -70.9369, 42.3266 ], [ -70.9368, 42.3266 ], [ -70.9367, 42.3266 ], [ -70.9367, 42.3267 ], [ -70.9366, 42.3267 ], [ -70.9365, 42.3267 ], [ -70.9363, 42.3266 ], [ -70.9362, 42.3266 ], [ -70.9360, 42.3266 ], [ -70.9358, 42.3266 ], [ -70.9356, 42.3266 ], [ -70.9355, 42.3266 ], [ -70.9353, 42.3266 ], [ -70.9351, 42.3266 ], [ -70.9350, 42.3266 ], [ -70.9348, 42.3266 ], [ -70.9348, 42.3265 ], [ -70.9346, 42.3266 ], [ -70.9345, 42.3266 ], [ -70.9344, 42.3266 ], [ -70.9343, 42.3266 ], [ -70.9342, 42.3265 ], [ -70.9340, 42.3265 ], [ -70.9340, 42.3265 ], [ -70.9339, 42.3265 ], [ -70.9338, 42.3264 ], [ -70.9336, 42.3263 ], [ -70.9335, 42.3263 ], [ -70.9335, 42.3262 ], [ -70.9334, 42.3262 ], [ -70.9333, 42.3261 ], [ -70.9332, 42.3261 ], [ -70.9332, 42.3260 ], [ -70.9331, 42.3260 ], [ -70.9331, 42.3259 ], [ -70.9331, 42.3259 ], [ -70.9331, 42.3258 ], [ -70.9331, 42.3258 ], [ -70.9332, 42.3258 ], [ -70.9333, 42.3258 ], [ -70.9333, 42.3258 ], [ -70.9334, 42.3258 ], [ -70.9334, 42.3258 ], [ -70.9335, 42.3259 ], [ -70.9335, 42.3259 ], [ -70.9337, 42.3259 ], [ -70.9339, 42.3259 ], [ -70.9340, 42.3259 ], [ -70.9342, 42.3259 ], [ -70.9344, 42.3259 ], [ -70.9345, 42.3259 ], [ -70.9346, 42.3259 ], [ -70.9347, 42.3259 ], [ -70.9349, 42.3259 ], [ -70.9350, 42.3258 ], [ -70.9351, 42.3258 ], [ -70.9352, 42.3258 ], [ -70.9354, 42.3258 ], [ -70.9356, 42.3257 ], [ -70.9357, 42.3257 ], [ -70.9357, 42.3257 ], [ -70.9358, 42.3258 ], [ -70.9360, 42.3258 ], [ -70.9361, 42.3258 ], [ -70.9362, 42.3258 ], [ -70.9364, 42.3257 ], [ -70.9365, 42.3257 ], [ -70.9366, 42.3257 ], [ -70.9366, 42.3257 ], [ -70.9368, 42.3257 ], [ -70.9369, 42.3257 ], [ -70.9370, 42.3257 ], [ -70.9371, 42.3257 ], [ -70.9373, 42.3256 ], [ -70.9374, 42.3256 ], [ -70.9376, 42.3255 ], [ -70.9377, 42.3255 ], [ -70.9378, 42.3254 ], [ -70.9379, 42.3254 ], [ -70.9380, 42.3253 ], [ -70.9380, 42.3253 ], [ -70.9381, 42.3253 ], [ -70.9382, 42.3253 ], [ -70.9382, 42.3252 ], [ -70.9383, 42.3252 ], [ -70.9383, 42.3252 ], [ -70.9384, 42.3251 ], [ -70.9385, 42.3251 ], [ -70.9386, 42.3250 ], [ -70.9386, 42.3250 ], [ -70.9387, 42.3249 ], [ -70.9388, 42.3249 ], [ -70.9388, 42.3249 ], [ -70.9389, 42.3248 ], [ -70.9390, 42.3248 ], [ -70.9391, 42.3248 ], [ -70.9391, 42.3248 ], [ -70.9392, 42.3247 ], [ -70.9392, 42.3247 ], [ -70.9393, 42.3247 ], [ -70.9394, 42.3246 ], [ -70.9394, 42.3246 ], [ -70.9395, 42.3246 ], [ -70.9396, 42.3245 ], [ -70.9397, 42.3245 ], [ -70.9397, 42.3244 ], [ -70.9398, 42.3244 ], [ -70.9398, 42.3243 ], [ -70.9399, 42.3243 ], [ -70.9399, 42.3243 ], [ -70.9399, 42.3242 ], [ -70.9398, 42.3242 ], [ -70.9399, 42.3242 ], [ -70.9399, 42.3243 ], [ -70.9400, 42.3243 ], [ -70.9400, 42.3243 ], [ -70.9400, 42.3244 ], [ -70.9401, 42.3244 ], [ -70.9401, 42.3244 ], [ -70.9402, 42.3245 ], [ -70.9402, 42.3246 ], [ -70.9403, 42.3247 ], [ -70.9403, 42.3247 ], [ -70.9403, 42.3248 ], [ -70.9404, 42.3248 ], [ -70.9404, 42.3249 ], [ -70.9404, 42.3250 ], [ -70.9404, 42.3251 ], [ -70.9405, 42.3252 ], [ -70.9405, 42.3252 ], [ -70.9406, 42.3253 ], [ -70.9407, 42.3254 ], [ -70.9408, 42.3255 ], [ -70.9409, 42.3255 ], [ -70.9411, 42.3256 ], [ -70.9412, 42.3257 ], [ -70.9413, 42.3258 ], [ -70.9414, 42.3259 ], [ -70.9415, 42.3260 ], [ -70.9415, 42.3261 ], [ -70.9416, 42.3262 ], [ -70.9417, 42.3263 ], [ -70.9416, 42.3263 ], [ -70.9416, 42.3263 ], [ -70.9416, 42.3264 ], [ -70.9417, 42.3265 ], [ -70.9417, 42.3266 ], [ -70.9417, 42.3267 ], [ -70.9418, 42.3269 ], [ -70.9417, 42.3269 ], [ -70.9417, 42.3270 ], [ -70.9416, 42.3271 ], [ -70.9416, 42.3272 ], [ -70.9415, 42.3273 ], [ -70.9414, 42.3274 ], [ -70.9413, 42.3275 ], [ -70.9412, 42.3275 ], [ -70.9411, 42.3276 ], [ -70.9410, 42.3276 ], [ -70.9408, 42.3276 ], [ -70.9408, 42.3277 ], [ -70.9407, 42.3277 ] ] ], [ [ [ -70.9522, 42.3132 ], [ -70.9523, 42.3132 ], [ -70.9522, 42.3132 ], [ -70.9521, 42.3132 ], [ -70.9519, 42.3132 ], [ -70.9517, 42.3132 ], [ -70.9515, 42.3132 ], [ -70.9514, 42.3132 ], [ -70.9512, 42.3131 ], [ -70.9511, 42.3131 ], [ -70.9510, 42.3130 ], [ -70.9509, 42.3130 ], [ -70.9508, 42.3129 ], [ -70.9507, 42.3129 ], [ -70.9505, 42.3128 ], [ -70.9505, 42.3128 ], [ -70.9504, 42.3127 ], [ -70.9502, 42.3126 ], [ -70.9502, 42.3126 ], [ -70.9500, 42.3125 ], [ -70.9499, 42.3125 ], [ -70.9498, 42.3124 ], [ -70.9496, 42.3123 ], [ -70.9495, 42.3123 ], [ -70.9495, 42.3122 ], [ -70.9494, 42.3122 ], [ -70.9493, 42.3121 ], [ -70.9493, 42.3121 ], [ -70.9493, 42.3120 ], [ -70.9493, 42.3120 ], [ -70.9493, 42.3119 ], [ -70.9493, 42.3119 ], [ -70.9494, 42.3118 ], [ -70.9494, 42.3118 ], [ -70.9495, 42.3118 ], [ -70.9495, 42.3117 ], [ -70.9497, 42.3117 ], [ -70.9498, 42.3118 ], [ -70.9498, 42.3117 ], [ -70.9499, 42.3117 ], [ -70.9500, 42.3117 ], [ -70.9501, 42.3117 ], [ -70.9502, 42.3117 ], [ -70.9502, 42.3117 ], [ -70.9503, 42.3117 ], [ -70.9504, 42.3117 ], [ -70.9505, 42.3117 ], [ -70.9507, 42.3117 ], [ -70.9508, 42.3117 ], [ -70.9509, 42.3117 ], [ -70.9510, 42.3117 ], [ -70.9510, 42.3116 ], [ -70.9511, 42.3116 ], [ -70.9511, 42.3117 ], [ -70.9512, 42.3117 ], [ -70.9512, 42.3117 ], [ -70.9512, 42.3117 ], [ -70.9513, 42.3117 ], [ -70.9513, 42.3117 ], [ -70.9512, 42.3116 ], [ -70.9512, 42.3116 ], [ -70.9511, 42.3116 ], [ -70.9511, 42.3116 ], [ -70.9510, 42.3116 ], [ -70.9512, 42.3115 ], [ -70.9512, 42.3115 ], [ -70.9513, 42.3115 ], [ -70.9515, 42.3114 ], [ -70.9516, 42.3113 ], [ -70.9517, 42.3113 ], [ -70.9518, 42.3112 ], [ -70.9519, 42.3112 ], [ -70.9520, 42.3111 ], [ -70.9521, 42.3110 ], [ -70.9521, 42.3110 ], [ -70.9522, 42.3110 ], [ -70.9523, 42.3109 ], [ -70.9523, 42.3109 ], [ -70.9524, 42.3109 ], [ -70.9525, 42.3109 ], [ -70.9526, 42.3109 ], [ -70.9527, 42.3109 ], [ -70.9528, 42.3110 ], [ -70.9529, 42.3110 ], [ -70.9529, 42.3110 ], [ -70.9529, 42.3111 ], [ -70.9530, 42.3111 ], [ -70.9530, 42.3111 ], [ -70.9531, 42.3112 ], [ -70.9532, 42.3113 ], [ -70.9532, 42.3113 ], [ -70.9532, 42.3114 ], [ -70.9532, 42.3115 ], [ -70.9533, 42.3115 ], [ -70.9533, 42.3115 ], [ -70.9533, 42.3115 ], [ -70.9533, 42.3116 ], [ -70.9533, 42.3116 ], [ -70.9534, 42.3116 ], [ -70.9534, 42.3116 ], [ -70.9535, 42.3116 ], [ -70.9536, 42.3116 ], [ -70.9537, 42.3115 ], [ -70.9538, 42.3115 ], [ -70.9539, 42.3115 ], [ -70.9540, 42.3115 ], [ -70.9541, 42.3114 ], [ -70.9541, 42.3114 ], [ -70.9542, 42.3113 ], [ -70.9543, 42.3112 ], [ -70.9543, 42.3111 ], [ -70.9543, 42.3111 ], [ -70.9544, 42.3111 ], [ -70.9544, 42.3110 ], [ -70.9544, 42.3110 ], [ -70.9544, 42.3110 ], [ -70.9544, 42.3110 ], [ -70.9544, 42.3109 ], [ -70.9544, 42.3109 ], [ -70.9545, 42.3109 ], [ -70.9546, 42.3109 ], [ -70.9545, 42.3108 ], [ -70.9545, 42.3108 ], [ -70.9545, 42.3108 ], [ -70.9545, 42.3108 ], [ -70.9544, 42.3108 ], [ -70.9544, 42.3108 ], [ -70.9544, 42.3108 ], [ -70.9544, 42.3108 ], [ -70.9544, 42.3108 ], [ -70.9544, 42.3108 ], [ -70.9544, 42.3107 ], [ -70.9544, 42.3107 ], [ -70.9544, 42.3107 ], [ -70.9544, 42.3107 ], [ -70.9544, 42.3106 ], [ -70.9544, 42.3106 ], [ -70.9544, 42.3106 ], [ -70.9544, 42.3106 ], [ -70.9544, 42.3106 ], [ -70.9544, 42.3105 ], [ -70.9544, 42.3105 ], [ -70.9544, 42.3105 ], [ -70.9544, 42.3105 ], [ -70.9544, 42.3104 ], [ -70.9544, 42.3104 ], [ -70.9544, 42.3104 ], [ -70.9544, 42.3104 ], [ -70.9543, 42.3103 ], [ -70.9543, 42.3103 ], [ -70.9543, 42.3103 ], [ -70.9544, 42.3103 ], [ -70.9545, 42.3102 ], [ -70.9545, 42.3102 ], [ -70.9545, 42.3101 ], [ -70.9545, 42.3101 ], [ -70.9545, 42.3101 ], [ -70.9545, 42.3101 ], [ -70.9545, 42.3100 ], [ -70.9546, 42.3100 ], [ -70.9547, 42.3099 ], [ -70.9547, 42.3099 ], [ -70.9547, 42.3099 ], [ -70.9547, 42.3099 ], [ -70.9547, 42.3099 ], [ -70.9548, 42.3098 ], [ -70.9548, 42.3098 ], [ -70.9549, 42.3098 ], [ -70.9548, 42.3098 ], [ -70.9548, 42.3098 ], [ -70.9548, 42.3097 ], [ -70.9548, 42.3097 ], [ -70.9549, 42.3097 ], [ -70.9549, 42.3097 ], [ -70.9549, 42.3097 ], [ -70.9550, 42.3097 ], [ -70.9550, 42.3097 ], [ -70.9551, 42.3097 ], [ -70.9551, 42.3097 ], [ -70.9551, 42.3097 ], [ -70.9551, 42.3098 ], [ -70.9551, 42.3098 ], [ -70.9551, 42.3099 ], [ -70.9551, 42.3099 ], [ -70.9552, 42.3100 ], [ -70.9552, 42.3101 ], [ -70.9553, 42.3102 ], [ -70.9553, 42.3102 ], [ -70.9553, 42.3103 ], [ -70.9554, 42.3104 ], [ -70.9555, 42.3104 ], [ -70.9556, 42.3105 ], [ -70.9557, 42.3106 ], [ -70.9558, 42.3106 ], [ -70.9559, 42.3107 ], [ -70.9560, 42.3107 ], [ -70.9561, 42.3108 ], [ -70.9562, 42.3108 ], [ -70.9564, 42.3108 ], [ -70.9565, 42.3108 ], [ -70.9566, 42.3109 ], [ -70.9567, 42.3109 ], [ -70.9569, 42.3108 ], [ -70.9569, 42.3108 ], [ -70.9570, 42.3108 ], [ -70.9571, 42.3108 ], [ -70.9571, 42.3107 ], [ -70.9571, 42.3107 ], [ -70.9572, 42.3107 ], [ -70.9572, 42.3107 ], [ -70.9572, 42.3108 ], [ -70.9573, 42.3108 ], [ -70.9573, 42.3107 ], [ -70.9573, 42.3107 ], [ -70.9574, 42.3108 ], [ -70.9574, 42.3108 ], [ -70.9573, 42.3108 ], [ -70.9574, 42.3108 ], [ -70.9574, 42.3108 ], [ -70.9574, 42.3109 ], [ -70.9574, 42.3109 ], [ -70.9575, 42.3109 ], [ -70.9575, 42.3109 ], [ -70.9575, 42.3109 ], [ -70.9575, 42.3109 ], [ -70.9576, 42.3109 ], [ -70.9576, 42.3109 ], [ -70.9576, 42.3110 ], [ -70.9577, 42.3111 ], [ -70.9578, 42.3112 ], [ -70.9578, 42.3112 ], [ -70.9578, 42.3113 ], [ -70.9577, 42.3113 ], [ -70.9576, 42.3113 ], [ -70.9575, 42.3114 ], [ -70.9574, 42.3114 ], [ -70.9573, 42.3115 ], [ -70.9571, 42.3115 ], [ -70.9570, 42.3116 ], [ -70.9569, 42.3116 ], [ -70.9567, 42.3116 ], [ -70.9566, 42.3117 ], [ -70.9564, 42.3117 ], [ -70.9563, 42.3117 ], [ -70.9562, 42.3117 ], [ -70.9561, 42.3117 ], [ -70.9560, 42.3117 ], [ -70.9558, 42.3117 ], [ -70.9557, 42.3117 ], [ -70.9556, 42.3116 ], [ -70.9555, 42.3116 ], [ -70.9553, 42.3116 ], [ -70.9552, 42.3116 ], [ -70.9551, 42.3116 ], [ -70.9550, 42.3116 ], [ -70.9548, 42.3116 ], [ -70.9546, 42.3116 ], [ -70.9545, 42.3116 ], [ -70.9544, 42.3116 ], [ -70.9543, 42.3117 ], [ -70.9542, 42.3118 ], [ -70.9542, 42.3118 ], [ -70.9541, 42.3119 ], [ -70.9541, 42.3119 ], [ -70.9540, 42.3119 ], [ -70.9539, 42.3120 ], [ -70.9538, 42.3121 ], [ -70.9537, 42.3122 ], [ -70.9536, 42.3124 ], [ -70.9534, 42.3125 ], [ -70.9533, 42.3125 ], [ -70.9532, 42.3126 ], [ -70.9531, 42.3127 ], [ -70.9531, 42.3128 ], [ -70.9530, 42.3129 ], [ -70.9529, 42.3130 ], [ -70.9528, 42.3132 ], [ -70.9527, 42.3132 ], [ -70.9526, 42.3132 ], [ -70.9525, 42.3133 ], [ -70.9524, 42.3133 ], [ -70.9522, 42.3133 ], [ -70.9521, 42.3133 ], [ -70.9520, 42.3133 ], [ -70.9519, 42.3133 ], [ -70.9520, 42.3133 ], [ -70.9521, 42.3133 ], [ -70.9521, 42.3133 ], [ -70.9522, 42.3132 ] ] ], [ [ [ -70.9533, 42.3501 ], [ -70.9533, 42.3500 ], [ -70.9534, 42.3501 ], [ -70.9534, 42.3501 ], [ -70.9534, 42.3502 ], [ -70.9535, 42.3502 ], [ -70.9535, 42.3503 ], [ -70.9536, 42.3503 ], [ -70.9536, 42.3503 ], [ -70.9536, 42.3504 ], [ -70.9536, 42.3504 ], [ -70.9537, 42.3505 ], [ -70.9537, 42.3505 ], [ -70.9537, 42.3505 ], [ -70.9535, 42.3504 ], [ -70.9533, 42.3501 ], [ -70.9533, 42.3501 ] ] ], [ [ [ -70.9602, 42.3490 ], [ -70.9603, 42.3490 ], [ -70.9603, 42.3490 ], [ -70.9603, 42.3491 ], [ -70.9603, 42.3490 ], [ -70.9603, 42.3490 ], [ -70.9602, 42.3490 ], [ -70.9602, 42.3490 ] ] ], [ [ [ -70.9418, 42.3266 ], [ -70.9418, 42.3265 ], [ -70.9418, 42.3265 ], [ -70.9418, 42.3266 ] ] ] ] } } + ] + } \ No newline at end of file diff --git a/public/data/boston_police.json b/public/data/boston_police.json new file mode 100644 index 00000000..6f50106b --- /dev/null +++ b/public/data/boston_police.json @@ -0,0 +1,20 @@ +var police_json= { +"type": "FeatureCollection", +"name": "Boston_Police_Stations", +"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } }, +"features": [ +{ "type": "Feature", "properties": { "OBJECTID": 1, "BLDG_ID": "Bos_1809107000_B0", "BID": 100639, "ADDRESS": "1249 Hyde Park Ave", "POINT_X": 757882.71611959999, "POINT_Y": 2918709.8081791801, "NAME": "District E-18 Police Station", "NEIGHBORHOOD": "Hyde Park", "CITY": "Boston", "ZIP": "02136", "FT_SQFT": 8585, "STORY_HT": 2.0, "PARCEL_ID": "1809107000", "District": "E18" }, "geometry": { "type": "Point", "coordinates": [ -71.124269436436464, 42.25648154053102 ] } }, +{ "type": "Feature", "properties": { "OBJECTID": 2, "BLDG_ID": "Bos_2005719000_B0", "BID": 112112, "ADDRESS": "1708 Centre St", "POINT_X": 751313.45596418995, "POINT_Y": 2929725.2274212702, "NAME": "District E-5 Police Station", "NEIGHBORHOOD": "West Roxbury", "CITY": "Boston", "ZIP": "02132", "FT_SQFT": 7708, "STORY_HT": 2.0, "PARCEL_ID": "2005719000", "District": "E5" }, "geometry": { "type": "Point", "coordinates": [ -71.148367753500523, 42.286785594068618 ] } }, +{ "type": "Feature", "properties": { "OBJECTID": 3, "BLDG_ID": "Bos_0105699000_B0", "BID": 131503, "ADDRESS": "69 Paris St", "POINT_X": 780827.98945469002, "POINT_Y": 2960576.8481326099, "NAME": "District A-7 Police Station", "NEIGHBORHOOD": "East Boston", "CITY": "Boston", "ZIP": "02128", "FT_SQFT": 5063, "STORY_HT": 2.0, "PARCEL_ID": "0105699000", "District": "A7" }, "geometry": { "type": "Point", "coordinates": [ -71.038676422262171, 42.371057781911773 ] } }, +{ "type": "Feature", "properties": { "OBJECTID": 4, "BLDG_ID": "Bos_0302626000_B0", "BID": 136171, "ADDRESS": "40 Sudbury St", "POINT_X": 775000.19336753001, "POINT_Y": 2957181.4110258501, "NAME": "District A-1 Police Station", "NEIGHBORHOOD": "Boston", "CITY": "Boston", "ZIP": "02114", "FT_SQFT": 6882, "STORY_HT": 5.0, "PARCEL_ID": "0302626000", "District": "A1" }, "geometry": { "type": "Point", "coordinates": [ -71.06030726710226, 42.361825124838234 ] } }, +{ "type": "Feature", "properties": { "OBJECTID": 5, "BLDG_ID": "Bos_2202387000_B0", "BID": 145004, "ADDRESS": "301 Washington St", "POINT_X": 750621.84612693998, "POINT_Y": 2952538.5820569401, "NAME": "District D-14 Police Station", "NEIGHBORHOOD": "Brighton", "CITY": "Boston", "ZIP": "02135", "FT_SQFT": 8712, "STORY_HT": 2.0, "PARCEL_ID": "2202387000", "District": "D14" }, "geometry": { "type": "Point", "coordinates": [ -71.150578318124275, 42.349394510979906 ] } }, +{ "type": "Feature", "properties": { "OBJECTID": 6, "BLDG_ID": "Bos_0202644020_B0", "BID": 148316, "ADDRESS": "20 Vine St", "POINT_X": 776123.77510986, "POINT_Y": 2962523.0437152698, "NAME": "District A-15 Police Station", "NEIGHBORHOOD": "Charlestown", "CITY": "Boston", "ZIP": "02129", "FT_SQFT": null, "STORY_HT": null, "PARCEL_ID": "0202644020", "District": "A15" }, "geometry": { "type": "Point", "coordinates": [ -71.056047130896275, 42.376466657027436 ] } }, +{ "type": "Feature", "properties": { "OBJECTID": 7, "BLDG_ID": "Bos_0600118000_B0", "BID": 154919, "ADDRESS": "101 W Broadway", "POINT_X": 776491.05291861005, "POINT_Y": 2949659.6550720199, "NAME": "District C-6 Police Station", "NEIGHBORHOOD": "South Boston", "CITY": "Boston", "ZIP": "02127", "FT_SQFT": 8528, "STORY_HT": 2.0, "PARCEL_ID": "0600118000", "District": "C6" }, "geometry": { "type": "Point", "coordinates": [ -71.054936284887035, 42.341164040750456 ] } }, +{ "type": "Feature", "properties": { "OBJECTID": 8, "BLDG_ID": "Bos_0801170010_B0", "BID": 162100, "ADDRESS": "650 Harrison Ave", "POINT_X": 772627.27718161, "POINT_Y": 2949011.4112897702, "NAME": "District D-4 Police Station", "NEIGHBORHOOD": "Boston", "CITY": "Boston", "ZIP": "02118", "FT_SQFT": 12382, "STORY_HT": 3.0, "PARCEL_ID": "0801170010", "District": "D4" }, "geometry": { "type": "Point", "coordinates": [ -71.069239757003189, 42.339439673099996 ] } }, +{ "type": "Feature", "properties": { "OBJECTID": 9, "BLDG_ID": "Bos_0902771010_B0", "BID": 163892, "ADDRESS": "One Schroeder Plz", "POINT_X": 766821.65559076995, "POINT_Y": 2947070.5513263498, "NAME": "Boston Police Headquarters", "NEIGHBORHOOD": "Roxbury", "CITY": "Boston", "ZIP": "02120", "FT_SQFT": 194000, "STORY_HT": 4.0, "PARCEL_ID": "0902771010", "District": null }, "geometry": { "type": "Point", "coordinates": [ -71.090747519512831, 42.334192330772368 ] } }, +{ "type": "Feature", "properties": { "OBJECTID": 10, "BLDG_ID": "Bos_1201261000_B0", "BID": 176508, "ADDRESS": "2400 Washington St", "POINT_X": 768200.91759603005, "POINT_Y": 2944961.00797327, "NAME": "District B-2 Police Station", "NEIGHBORHOOD": "Roxbury", "CITY": "Boston", "ZIP": "02119", "FT_SQFT": 10809, "STORY_HT": 3.0, "PARCEL_ID": "1201261000", "District": "B2" }, "geometry": { "type": "Point", "coordinates": [ -71.085684348920211, 42.32838538900802 ] } }, +{ "type": "Feature", "properties": { "OBJECTID": 11, "BLDG_ID": "Bos_1102261000_B0", "BID": 180965, "ADDRESS": "3345 Washington St", "POINT_X": 763106.94123543997, "POINT_Y": 2938135.5842881799, "NAME": "District E-13 Police Station", "NEIGHBORHOOD": "Jamaica Plain", "CITY": "Boston", "ZIP": "02130", "FT_SQFT": 8312, "STORY_HT": 2.0, "PARCEL_ID": "1102261000", "District": "E13" }, "geometry": { "type": "Point", "coordinates": [ -71.104639216747557, 42.309722445244333 ] } }, +{ "type": "Feature", "properties": { "OBJECTID": 12, "BLDG_ID": "Bos_1404623000_B0", "BID": 186089, "ADDRESS": "1165 Blue Hill Ave", "POINT_X": 766649.86886086001, "POINT_Y": 2929044.0516182599, "NAME": "District B-3 Police Station", "NEIGHBORHOOD": "Mattapan", "CITY": "Boston", "ZIP": "02124", "FT_SQFT": 9740, "STORY_HT": 1.5, "PARCEL_ID": "1404623000", "District": "B3" }, "geometry": { "type": "Point", "coordinates": [ -71.091701991396377, 42.284728929101142 ] } }, +{ "type": "Feature", "properties": { "OBJECTID": 13, "BLDG_ID": "Bos_1600673000_B0", "BID": 189445, "ADDRESS": "40 Gibson St", "POINT_X": 775429.01239178004, "POINT_Y": 2933947.9115611902, "NAME": "District C-11 Police Station", "NEIGHBORHOOD": "Dorchester", "CITY": "Boston", "ZIP": "02122", "FT_SQFT": 15338, "STORY_HT": 2.0, "PARCEL_ID": "1600673000", "District": "C11" }, "geometry": { "type": "Point", "coordinates": [ -71.059164920560917, 42.298065504218705 ] } } +] +} diff --git a/public/data/boston_public_schools.json b/public/data/boston_public_schools.json new file mode 100644 index 00000000..35a19022 --- /dev/null +++ b/public/data/boston_public_schools.json @@ -0,0 +1,138 @@ +var public_schools_json={ +"type": "FeatureCollection", +"name": "Public_Schools", +"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } }, +"features": [ +{ "type": "Feature", "properties": { "OBJECTID_1": 1, "OBJECTID": 1, "BLDG_ID": 1, "BLDG_NAME": "Guild Bldg", "ADDRESS": "195 Leyden Street", "CITY": "East Boston", "ZIPCODE": "02128", "CSP_SCH_ID": 4061, "SCH_ID": 4061, "SCH_NAME": "Guild Elementary", "SCH_LABEL": "Guild", "SCH_TYPE": "ES", "SHARED": " ", "COMPLEX": " ", "POINT_X": 790128.15274799999, "POINT_Y": 2967094.3776199999 }, "geometry": { "type": "Point", "coordinates": [ -71.004120575202592, 42.388798681073467 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 2, "OBJECTID": 2, "BLDG_ID": 3, "BLDG_NAME": "Kennedy, P Bldg", "ADDRESS": "343 Saratoga Street", "CITY": "East Boston", "ZIPCODE": "02128", "CSP_SCH_ID": 4541, "SCH_ID": 4541, "SCH_NAME": "Kennedy Patrick Elem", "SCH_LABEL": "PJ Kennedy", "SCH_TYPE": "ES", "SHARED": " ", "COMPLEX": " ", "POINT_X": 783027.74582900002, "POINT_Y": 2963317.53394 }, "geometry": { "type": "Point", "coordinates": [ -71.030480292384141, 42.378545298399878 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 3, "OBJECTID": 3, "BLDG_ID": 4, "BLDG_NAME": "Otis Bldg", "ADDRESS": "218 Marion Street", "CITY": "East Boston", "ZIPCODE": "02128", "CSP_SCH_ID": 4322, "SCH_ID": 4322, "SCH_NAME": "Otis Elementary", "SCH_LABEL": "Otis", "SCH_TYPE": "ES", "SHARED": " ", "COMPLEX": " ", "POINT_X": 782112.82390800002, "POINT_Y": 2962122.0573300002 }, "geometry": { "type": "Point", "coordinates": [ -71.033890583919728, 42.375278677150646 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 4, "OBJECTID": 4, "BLDG_ID": 6, "BLDG_NAME": "Odonnell Bldg", "ADDRESS": "33 Trenton Street", "CITY": "East Boston", "ZIPCODE": "02128", "CSP_SCH_ID": 4543, "SCH_ID": 4543, "SCH_NAME": "O'Donnell Elementary", "SCH_LABEL": "O'Donnell", "SCH_TYPE": "ES", "SHARED": " ", "COMPLEX": " ", "POINT_X": 780994.00000300002, "POINT_Y": 2963139.9999899999 }, "geometry": { "type": "Point", "coordinates": [ -71.038010718154226, 42.37808861721215 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 5, "OBJECTID": 5, "BLDG_ID": 7, "BLDG_NAME": "East Boston High Bldg", "ADDRESS": "86 White Street", "CITY": "East Boston", "ZIPCODE": "02128", "CSP_SCH_ID": 1070, "SCH_ID": 1070, "SCH_NAME": "East Boston High", "SCH_LABEL": "East Boston HS", "SCH_TYPE": "HS", "SHARED": " ", "COMPLEX": " ", "POINT_X": 781823.00000400003, "POINT_Y": 2964189.9999899999 }, "geometry": { "type": "Point", "coordinates": [ -71.034921434255651, 42.38095745717991 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 6, "OBJECTID": 6, "BLDG_ID": 8, "BLDG_NAME": "Umana \/ Barnes Bldg", "ADDRESS": "312 Border Street", "CITY": "East Boston", "ZIPCODE": "02128", "CSP_SCH_ID": 4323, "SCH_ID": 4323, "SCH_NAME": "Umana Academy", "SCH_LABEL": "Umana Academy", "SCH_TYPE": "K-8", "SHARED": " ", "COMPLEX": " ", "POINT_X": 780367.00000200002, "POINT_Y": 2963209.9999899999 }, "geometry": { "type": "Point", "coordinates": [ -71.040329824559478, 42.378289993261447 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 7, "OBJECTID": 7, "BLDG_ID": 10, "BLDG_NAME": "East Boston Eec Bldg", "ADDRESS": "135 Gove Street", "CITY": "East Boston", "ZIPCODE": "02128", "CSP_SCH_ID": 4450, "SCH_ID": 4450, "SCH_NAME": "East Boston EEC", "SCH_LABEL": "East Boston EEC", "SCH_TYPE": "ELC", "SHARED": " ", "COMPLEX": " ", "POINT_X": 782062.00000400003, "POINT_Y": 2960079.9999799998 }, "geometry": { "type": "Point", "coordinates": [ -71.03411994921963, 42.369676022773504 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 8, "OBJECTID": 8, "BLDG_ID": 11, "BLDG_NAME": "Mckay Bldg", "ADDRESS": "122 Cottage Street", "CITY": "East Boston", "ZIPCODE": "02128", "CSP_SCH_ID": 4360, "SCH_ID": 4360, "SCH_NAME": "McKay K-8", "SCH_LABEL": "McKay K-8", "SCH_TYPE": "K-8", "SHARED": " ", "COMPLEX": " ", "POINT_X": 782012.09673999995, "POINT_Y": 2959933.1001800001 }, "geometry": { "type": "Point", "coordinates": [ -71.034307583171298, 42.369273675959718 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 9, "OBJECTID": 9, "BLDG_ID": 12, "BLDG_NAME": "Adams Bldg", "ADDRESS": "165 Webster Street", "CITY": "East Boston", "ZIPCODE": "02128", "CSP_SCH_ID": 4361, "SCH_ID": 4361, "SCH_NAME": "Adams Elementary", "SCH_LABEL": "Adams", "SCH_TYPE": "ES", "SHARED": " ", "COMPLEX": " ", "POINT_X": 781862.00000400003, "POINT_Y": 2958580.0000200002 }, "geometry": { "type": "Point", "coordinates": [ -71.034890311047619, 42.365563005099283 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 10, "OBJECTID": 10, "BLDG_ID": 13, "BLDG_NAME": "Harvard-Kent", "ADDRESS": "50 Bunker Hill Street", "CITY": "Charlestown", "ZIPCODE": "02129", "CSP_SCH_ID": 4280, "SCH_ID": 4280, "SCH_NAME": "Harvard\/Kent Elem", "SCH_LABEL": "Harvard\/Kent", "SCH_TYPE": "ES", "SHARED": " ", "COMPLEX": " ", "POINT_X": 775732.99999799998, "POINT_Y": 2962579.9999899999 }, "geometry": { "type": "Point", "coordinates": [ -71.05749224520838, 42.376628517401734 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 11, "OBJECTID": 11, "BLDG_ID": 14, "BLDG_NAME": "Charlestown High Bldg #1 - Main", "ADDRESS": "240 Medford Street", "CITY": "Charlestown", "ZIPCODE": "02129", "CSP_SCH_ID": 1050, "SCH_ID": 1050, "SCH_NAME": "Charlestown High", "SCH_LABEL": "Charlestown HS", "SCH_TYPE": "HS", "SHARED": " ", "COMPLEX": " ", "POINT_X": 774759.58953300002, "POINT_Y": 2963846.89176 }, "geometry": { "type": "Point", "coordinates": [ -71.061070593019494, 42.380118677406166 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 12, "OBJECTID": 12, "BLDG_ID": 15, "BLDG_NAME": "Edwards Bldg", "ADDRESS": "28 Walker Street", "CITY": "Charlestown", "ZIPCODE": "02129", "CSP_SCH_ID": 2010, "SCH_ID": 2010, "SCH_NAME": "Edwards Middle", "SCH_LABEL": "Edwards MS", "SCH_TYPE": "MS", "SHARED": " ", "COMPLEX": " ", "POINT_X": 773096.99999599997, "POINT_Y": 2963459.9999899999 }, "geometry": { "type": "Point", "coordinates": [ -71.067231244321462, 42.379080355474635 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 13, "OBJECTID": 13, "BLDG_ID": 16, "BLDG_NAME": "Warren-Prescott Bldg", "ADDRESS": "50 School Street", "CITY": "Charlestown", "ZIPCODE": "02129", "CSP_SCH_ID": 4283, "SCH_ID": 4283, "SCH_NAME": "Warren\/Prescott K-8", "SCH_LABEL": "Warren\/Prescott K-8", "SCH_TYPE": "K-8", "SHARED": " ", "COMPLEX": " ", "POINT_X": 773855.71650800004, "POINT_Y": 2963069.6648499998 }, "geometry": { "type": "Point", "coordinates": [ -71.064430592758541, 42.377998676579331 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 14, "OBJECTID": 14, "BLDG_ID": 17, "BLDG_NAME": "Eliot Bldg", "ADDRESS": "16 Charter Street", "CITY": "Boston", "ZIPCODE": "02113", "CSP_SCH_ID": 4381, "SCH_ID": 4381, "SCH_NAME": "Eliot K-8", "SCH_LABEL": "Eliot K-8", "SCH_TYPE": "K-8", "SHARED": " ", "COMPLEX": " ", "POINT_X": 776866.99999899999, "POINT_Y": 2958750.0000200002 }, "geometry": { "type": "Point", "coordinates": [ -71.053369669707493, 42.36610274159122 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 15, "OBJECTID": 15, "BLDG_ID": 21, "BLDG_NAME": "Abraham Lincoln Building", "ADDRESS": "152 Arlington Street", "CITY": "Boston", "ZIPCODE": "02116", "CSP_SCH_ID": 1450, "SCH_ID": 1450, "SCH_NAME": "Quincy Upper School", "SCH_LABEL": "Quincy Upper (6-12)", "SCH_TYPE": "K-12", "SHARED": " ", "COMPLEX": " ", "POINT_X": 772661.99999499996, "POINT_Y": 2952280.0000100001 }, "geometry": { "type": "Point", "coordinates": [ -71.069050246565709, 42.348408293305269 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 16, "OBJECTID": 16, "BLDG_ID": 22, "BLDG_NAME": "Boston HS Bldg", "ADDRESS": "885 Washington Street", "CITY": "Boston", "ZIPCODE": "02111", "CSP_SCH_ID": 4650, "SCH_ID": 4650, "SCH_NAME": "Quincy Lower (K-5)", "SCH_LABEL": "Quincy Lower (K-5)", "SCH_TYPE": "K-12", "SHARED": " ", "COMPLEX": " ", "POINT_X": 773779.12476399995, "POINT_Y": 2952129.1045900001 }, "geometry": { "type": "Point", "coordinates": [ -71.064920592332612, 42.347978670540776 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 17, "OBJECTID": 17, "BLDG_ID": 24, "BLDG_NAME": "Snowden Hs Bldg", "ADDRESS": "150 Newbury Street", "CITY": "Boston", "ZIPCODE": "02116", "CSP_SCH_ID": 1200, "SCH_ID": 1200, "SCH_NAME": "Snowden International", "SCH_LABEL": "Snowden HS", "SCH_TYPE": "HS", "SHARED": " ", "COMPLEX": " ", "POINT_X": 770246.74098500004, "POINT_Y": 2953058.86974 }, "geometry": { "type": "Point", "coordinates": [ -71.077970596390585, 42.350578670999262 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 18, "OBJECTID": 18, "BLDG_ID": 26, "BLDG_NAME": "Mckinley Mackey Bldg", "ADDRESS": "90 Warren Avenue", "CITY": "Boston", "ZIPCODE": "02116", "CSP_SCH_ID": 1291, "SCH_ID": 1291, "SCH_NAME": "McKinley Elementary", "SCH_LABEL": "McKinley Elem", "SCH_TYPE": "Special", "SHARED": "Shared", "COMPLEX": " ", "POINT_X": 771460.93791400001, "POINT_Y": 2950801.8119800002 }, "geometry": { "type": "Point", "coordinates": [ -71.073520594017609, 42.344368669560012 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 19, "OBJECTID": 19, "BLDG_ID": 26, "BLDG_NAME": "Mckinley Mackey Bldg", "ADDRESS": "90 Warren Avenue", "CITY": "Boston", "ZIPCODE": "02116", "CSP_SCH_ID": 1294, "SCH_ID": 1294, "SCH_NAME": "McKinley So. End Acad", "SCH_LABEL": "McKinley S. End Acad", "SCH_TYPE": "Special", "SHARED": "Shared", "COMPLEX": " ", "POINT_X": 771460.93791400001, "POINT_Y": 2950801.8119800002 }, "geometry": { "type": "Point", "coordinates": [ -71.073520594017609, 42.344368669560012 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 20, "OBJECTID": 20, "BLDG_ID": 27, "BLDG_NAME": "Hurley Bldg", "ADDRESS": "70 Worcester Street", "CITY": "Boston", "ZIPCODE": "02118", "CSP_SCH_ID": 4260, "SCH_ID": 4260, "SCH_NAME": "Hurley K-8", "SCH_LABEL": "Hurley K-8", "SCH_TYPE": "K-8", "SHARED": " ", "COMPLEX": " ", "POINT_X": 770330.23656899994, "POINT_Y": 2948751.74884 }, "geometry": { "type": "Point", "coordinates": [ -71.077740595824949, 42.338758668670373 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 21, "OBJECTID": 21, "BLDG_ID": 28, "BLDG_NAME": "Blackstone Bldg", "ADDRESS": "380 Shawmut Avenue", "CITY": "Boston", "ZIPCODE": "02118", "CSP_SCH_ID": 4640, "SCH_ID": 4640, "SCH_NAME": "Blackstone Elementary", "SCH_LABEL": "Blackstone", "SCH_TYPE": "ES", "SHARED": " ", "COMPLEX": " ", "POINT_X": 771753.99999399995, "POINT_Y": 2949480.0000100001 }, "geometry": { "type": "Point", "coordinates": [ -71.072461066279729, 42.340737551544919 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 22, "OBJECTID": 22, "BLDG_ID": 31, "BLDG_NAME": "Mason Bldg", "ADDRESS": "150 Norfolk Avenue", "CITY": "Roxbury", "ZIPCODE": "02119", "CSP_SCH_ID": 4121, "SCH_ID": 4121, "SCH_NAME": "Mason Elementary", "SCH_LABEL": "Mason", "SCH_TYPE": "ES", "SHARED": " ", "COMPLEX": " ", "POINT_X": 772085.99999499996, "POINT_Y": 2944190.0 }, "geometry": { "type": "Point", "coordinates": [ -71.071331405280972, 42.326217031375023 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 23, "OBJECTID": 23, "BLDG_ID": 33, "BLDG_NAME": "Clap Bldg", "ADDRESS": "35 Harvest Street", "CITY": "Dorchester", "ZIPCODE": "02125", "CSP_SCH_ID": 4531, "SCH_ID": 4531, "SCH_NAME": "Clap Elementary", "SCH_LABEL": "Clap", "SCH_TYPE": "ES", "SHARED": " ", "COMPLEX": " ", "POINT_X": 775644.99999799998, "POINT_Y": 2943100.0 }, "geometry": { "type": "Point", "coordinates": [ -71.058191344203635, 42.32317619487457 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 24, "OBJECTID": 24, "BLDG_ID": 35, "BLDG_NAME": "Perkins Bldg", "ADDRESS": "50 Burke Street", "CITY": "South Boston", "ZIPCODE": "02127", "CSP_SCH_ID": 4022, "SCH_ID": 4022, "SCH_NAME": "Perkins Elementary", "SCH_LABEL": "Perkins", "SCH_TYPE": "ES", "SHARED": " ", "COMPLEX": " ", "POINT_X": 777698.3368, "POINT_Y": 2946078.0620800001 }, "geometry": { "type": "Point", "coordinates": [ -71.050540585894112, 42.331318668452589 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 25, "OBJECTID": 25, "BLDG_ID": 36, "BLDG_NAME": "South Boston Ed. Bldg", "ADDRESS": "95 G Street", "CITY": "South Boston", "ZIPCODE": "02127", "CSP_SCH_ID": 1162, "SCH_ID": 1162, "SCH_NAME": "Excel High", "SCH_LABEL": "Excel HS", "SCH_TYPE": "HS", "SHARED": " ", "COMPLEX": "S. Boston EC", "POINT_X": 779223.03942499997, "POINT_Y": 2946651.0092799999 }, "geometry": { "type": "Point", "coordinates": [ -71.044890584106909, 42.332868668649837 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 26, "OBJECTID": 27, "BLDG_ID": 37, "BLDG_NAME": "Tynan Bldg", "ADDRESS": "650 E. Fourth Street", "CITY": "South Boston", "ZIPCODE": "02127", "CSP_SCH_ID": 4590, "SCH_ID": 4590, "SCH_NAME": "Tynan Elementary", "SCH_LABEL": "Tynan", "SCH_TYPE": "ES", "SHARED": " ", "COMPLEX": " ", "POINT_X": 780971.00000300002, "POINT_Y": 2947390.0 }, "geometry": { "type": "Point", "coordinates": [ -71.038411284412149, 42.334870707795588 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 27, "OBJECTID": 28, "BLDG_ID": 38, "BLDG_NAME": "Perry Bldg", "ADDRESS": "745 E. Seventh Street", "CITY": "South Boston", "ZIPCODE": "02127", "CSP_SCH_ID": 4592, "SCH_ID": 4592, "SCH_NAME": "Perry K-8", "SCH_LABEL": "Perry K-8", "SCH_TYPE": "K-8", "SHARED": " ", "COMPLEX": " ", "POINT_X": 783197.00000500004, "POINT_Y": 2946400.0 }, "geometry": { "type": "Point", "coordinates": [ -71.030198743759769, 42.332120768615553 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 28, "OBJECTID": 29, "BLDG_ID": 39, "BLDG_NAME": "Russell Bldg", "ADDRESS": "750 Columbia Road", "CITY": "Dorchester", "ZIPCODE": "02125", "CSP_SCH_ID": 4530, "SCH_ID": 4530, "SCH_NAME": "Russell Elementary", "SCH_LABEL": "Russell", "SCH_TYPE": "ES", "SHARED": " ", "COMPLEX": " ", "POINT_X": 775282.99999799998, "POINT_Y": 2942080.0 }, "geometry": { "type": "Point", "coordinates": [ -71.059549408574298, 42.320382411340674 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 29, "OBJECTID": 30, "BLDG_ID": 42, "BLDG_NAME": "Orchard Gardens K-8", "ADDRESS": "906 Albany Street", "CITY": "Roxbury", "ZIPCODE": "02119", "CSP_SCH_ID": 4680, "SCH_ID": 4680, "SCH_NAME": "Orchard Gardens K-8", "SCH_LABEL": "Orchard Gardens K-8", "SCH_TYPE": "K-8", "SHARED": " ", "COMPLEX": " ", "POINT_X": 770299.99999299995, "POINT_Y": 2945660.0 }, "geometry": { "type": "Point", "coordinates": [ -71.077909018974779, 42.330275209898616 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 30, "OBJECTID": 32, "BLDG_ID": 131, "BLDG_NAME": "West Roxbury Ed. Bldg", "ADDRESS": "1205 V.F.W. Parkway", "CITY": "West Roxbury", "ZIPCODE": "02132", "CSP_SCH_ID": 1256, "SCH_ID": 1256, "SCH_NAME": "West Roxbury Academy", "SCH_LABEL": "W. Roxbury Acad", "SCH_TYPE": "HS", "SHARED": "Shared", "COMPLEX": " ", "POINT_X": 744291.89347300003, "POINT_Y": 2928051.2811099999 }, "geometry": { "type": "Point", "coordinates": [ -71.174340624005168, 42.282268654205879 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 31, "OBJECTID": 34, "BLDG_ID": 34, "BLDG_NAME": "Gavin Bldg", "ADDRESS": "215 Dorchester Street", "CITY": "South Boston", "ZIPCODE": "02127", "CSP_SCH_ID": 2450, "SCH_ID": 2450, "SCH_NAME": "UP Academy Boston", "SCH_LABEL": "UP Academy Boston", "SCH_TYPE": "MS", "SHARED": " ", "COMPLEX": " ", "POINT_X": 777724.0, "POINT_Y": 2946900.0 }, "geometry": { "type": "Point", "coordinates": [ -71.050429656763143, 42.333573721970659 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 32, "OBJECTID": 35, "BLDG_ID": 44, "BLDG_NAME": "Wheatley Bldg", "ADDRESS": "20 Kearsage Avenue", "CITY": "Roxbury", "ZIPCODE": "02119", "CSP_SCH_ID": 1410, "SCH_ID": 1410, "SCH_NAME": "Boston Day and Evening Academy", "SCH_LABEL": "BDEA", "SCH_TYPE": "Special", "SHARED": " ", "COMPLEX": " ", "POINT_X": 769277.86597599997, "POINT_Y": 2944471.8391100001 }, "geometry": { "type": "Point", "coordinates": [ -71.081710596888627, 42.327028666048328 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 33, "OBJECTID": 36, "BLDG_ID": 45, "BLDG_NAME": "Carter Center Bldg", "ADDRESS": "396 Northampton Street", "CITY": "Roxbury", "ZIPCODE": "02118", "CSP_SCH_ID": 4261, "SCH_ID": 4261, "SCH_NAME": "Carter Center", "SCH_LABEL": "Carter Center", "SCH_TYPE": "Special", "SHARED": " ", "COMPLEX": " ", "POINT_X": 768677.99999200006, "POINT_Y": 2949400.0000100001 }, "geometry": { "type": "Point", "coordinates": [ -71.083839975495948, 42.340559774424385 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 34, "OBJECTID": 37, "BLDG_ID": 47, "BLDG_NAME": "Madison Park Bldg #1", "ADDRESS": "75 Malcolm X Blvd", "CITY": "Roxbury", "ZIPCODE": "02120", "CSP_SCH_ID": 1210, "SCH_ID": 1210, "SCH_NAME": "Madison Park High", "SCH_LABEL": "Madison Park HS", "SCH_TYPE": "HS", "SHARED": " ", "COMPLEX": " ", "POINT_X": 766949.45791, "POINT_Y": 2946184.2736999998 }, "geometry": { "type": "Point", "coordinates": [ -71.09029059972147, 42.33175866666857 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 35, "OBJECTID": 38, "BLDG_ID": 48, "BLDG_NAME": "Madison Park Bldg #3 - O'Bryant", "ADDRESS": "55 Malcolm X Blvd", "CITY": "Roxbury", "ZIPCODE": "02120", "CSP_SCH_ID": 1030, "SCH_ID": 1030, "SCH_NAME": "O'Bryant Math & Sci.", "SCH_LABEL": "O'Bryant School", "SCH_TYPE": "6\/7-12", "SHARED": " ", "COMPLEX": " ", "POINT_X": 767354.01176599995, "POINT_Y": 2946288.25978 }, "geometry": { "type": "Point", "coordinates": [ -71.088792599082069, 42.332038667227394 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 36, "OBJECTID": 39, "BLDG_ID": 49, "BLDG_NAME": "Timilty Bldg", "ADDRESS": "205 Roxbury Street", "CITY": "Roxbury", "ZIPCODE": "02119", "CSP_SCH_ID": 2040, "SCH_ID": 2040, "SCH_NAME": "Timilty Middle", "SCH_LABEL": "Timilty MS", "SCH_TYPE": "MS", "SHARED": " ", "COMPLEX": " ", "POINT_X": 766767.96863000002, "POINT_Y": 2945687.7828500001 }, "geometry": { "type": "Point", "coordinates": [ -71.09097059931554, 42.330398666249295 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 37, "OBJECTID": 40, "BLDG_ID": 50, "BLDG_NAME": "Hale Bldg", "ADDRESS": "51 Cedar Street", "CITY": "Roxbury", "ZIPCODE": "02119", "CSP_SCH_ID": 4113, "SCH_ID": 4113, "SCH_NAME": "Hale Elementary", "SCH_LABEL": "Hale", "SCH_TYPE": "ES", "SHARED": " ", "COMPLEX": " ", "POINT_X": 766757.51509400003, "POINT_Y": 2943920.2667200002 }, "geometry": { "type": "Point", "coordinates": [ -71.091040599395356, 42.325548665612331 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 38, "OBJECTID": 41, "BLDG_ID": 51, "BLDG_NAME": "Lewis Bldg", "ADDRESS": "131 Walnut Avenue", "CITY": "Roxbury", "ZIPCODE": "02119", "CSP_SCH_ID": 4242, "SCH_ID": 4242, "SCH_NAME": "Higginson\/Lewis (3-8)", "SCH_LABEL": "Higginson\/Lewis (3-8)", "SCH_TYPE": "K-8", "SHARED": " ", "COMPLEX": " ", "POINT_X": 768044.99999100005, "POINT_Y": 2942250.0 }, "geometry": { "type": "Point", "coordinates": [ -71.086309566674217, 42.320948343182138 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 39, "OBJECTID": 42, "BLDG_ID": 53, "BLDG_NAME": "Blue Hill Ave Eec Bldg", "ADDRESS": "263 Blue Hill Ave", "CITY": "Roxbury", "ZIPCODE": "02119", "CSP_SCH_ID": 4460, "SCH_ID": 4460, "SCH_NAME": "Haynes EEC", "SCH_LABEL": "Haynes EEC", "SCH_TYPE": "ELC", "SHARED": " ", "COMPLEX": " ", "POINT_X": 770048.99999299995, "POINT_Y": 2940080.0 }, "geometry": { "type": "Point", "coordinates": [ -71.078939129092163, 42.314966854479408 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 40, "OBJECTID": 43, "BLDG_ID": 54, "BLDG_NAME": "Trotter Bldg", "ADDRESS": "135 Humboldt Avenue", "CITY": "Dorchester", "ZIPCODE": "02121", "CSP_SCH_ID": 4580, "SCH_ID": 4580, "SCH_NAME": "Trotter K-8", "SCH_LABEL": "Trotter K-8", "SCH_TYPE": "K-8", "SHARED": " ", "COMPLEX": " ", "POINT_X": 767639.99999100005, "POINT_Y": 2940350.0 }, "geometry": { "type": "Point", "coordinates": [ -71.087841054297712, 42.315740034881784 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 41, "OBJECTID": 44, "BLDG_ID": 55, "BLDG_NAME": "Boston Latin Academy Bldg", "ADDRESS": "205 Townsend Street", "CITY": "Boston", "ZIPCODE": "02121", "CSP_SCH_ID": 1020, "SCH_ID": 1020, "SCH_NAME": "Boston Latin Academy", "SCH_LABEL": "Boston Latin Acad", "SCH_TYPE": "6\/7-12", "SHARED": " ", "COMPLEX": " ", "POINT_X": 768542.71499899996, "POINT_Y": 2940506.9388100002 }, "geometry": { "type": "Point", "coordinates": [ -71.084500596434282, 42.316158664034354 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 42, "OBJECTID": 45, "BLDG_ID": 56, "BLDG_NAME": "Ellis Bldg", "ADDRESS": "302 Walnut Avenue", "CITY": "Roxbury", "ZIPCODE": "02119", "CSP_SCH_ID": 4240, "SCH_ID": 4240, "SCH_NAME": "Ellis Elementary", "SCH_LABEL": "Ellis", "SCH_TYPE": "ES", "SHARED": " ", "COMPLEX": " ", "POINT_X": 766272.99998900003, "POINT_Y": 2940560.0 }, "geometry": { "type": "Point", "coordinates": [ -71.092891595445749, 42.316334299557376 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 43, "OBJECTID": 46, "BLDG_ID": 57, "BLDG_NAME": "Winthrop Bldg", "ADDRESS": "35 Brookford Street", "CITY": "Dorchester", "ZIPCODE": "02125", "CSP_SCH_ID": 4052, "SCH_ID": 4052, "SCH_NAME": "Winthrop Elementary", "SCH_LABEL": "Winthrop", "SCH_TYPE": "ES", "SHARED": " ", "COMPLEX": " ", "POINT_X": 770939.04802600003, "POINT_Y": 2941263.6170899998 }, "geometry": { "type": "Point", "coordinates": [ -71.075626600836642, 42.318202650509797 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 44, "OBJECTID": 47, "BLDG_ID": 58, "BLDG_NAME": "King Bldg", "ADDRESS": "77 Lawrence Avenue", "CITY": "Dorchester", "ZIPCODE": "02121", "CSP_SCH_ID": 4055, "SCH_ID": 4055, "SCH_NAME": "King K-8", "SCH_LABEL": "King K-8", "SCH_TYPE": "K-8", "SHARED": " ", "COMPLEX": " ", "POINT_X": 770797.39308199997, "POINT_Y": 2938747.2900800002 }, "geometry": { "type": "Point", "coordinates": [ -71.076196593480219, 42.31129966337307 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 45, "OBJECTID": 48, "BLDG_ID": 59, "BLDG_NAME": "Frederick Middle", "ADDRESS": "270 Columbia Road", "CITY": "Dorchester", "ZIPCODE": "02121", "CSP_SCH_ID": 2360, "SCH_ID": 2360, "SCH_NAME": "Frederick Pilot Middle", "SCH_LABEL": "Frederick MS", "SCH_TYPE": "MS", "SHARED": " ", "COMPLEX": " ", "POINT_X": 771013.99999399995, "POINT_Y": 2937930.0 }, "geometry": { "type": "Point", "coordinates": [ -71.075410824966426, 42.309054022910168 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 46, "OBJECTID": 49, "BLDG_ID": 62, "BLDG_NAME": "Holland Bldg", "ADDRESS": "85 Olney Street", "CITY": "Dorchester", "ZIPCODE": "02121", "CSP_SCH_ID": 4250, "SCH_ID": 4250, "SCH_NAME": "UP Academy Holland", "SCH_LABEL": "UP Holland", "SCH_TYPE": "ES", "SHARED": " ", "COMPLEX": " ", "POINT_X": 771439.99999399995, "POINT_Y": 2936679.9999899999 }, "geometry": { "type": "Point", "coordinates": [ -71.073859018656393, 42.305618129084884 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 47, "OBJECTID": 50, "BLDG_ID": 63, "BLDG_NAME": "Mather Bldg", "ADDRESS": "1 Parish Street", "CITY": "Dorchester", "ZIPCODE": "02122", "CSP_SCH_ID": 4350, "SCH_ID": 4350, "SCH_NAME": "Mather Elementary", "SCH_LABEL": "Mather", "SCH_TYPE": "ES", "SHARED": " ", "COMPLEX": " ", "POINT_X": 774909.99999699998, "POINT_Y": 2937710.0 }, "geometry": { "type": "Point", "coordinates": [ -71.061011771919439, 42.308396211936071 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 48, "OBJECTID": 52, "BLDG_ID": 67, "BLDG_NAME": "Marshall Bldg", "ADDRESS": "35 Westville Street", "CITY": "Dorchester", "ZIPCODE": "02124", "CSP_SCH_ID": 4345, "SCH_ID": 4345, "SCH_NAME": "UP Academy Charter School of Dorchester", "SCH_LABEL": "UP Academy of Dorchester", "SCH_TYPE": "K-8", "SHARED": " ", "COMPLEX": " ", "POINT_X": 772296.99999499996, "POINT_Y": 2934609.9999899999 }, "geometry": { "type": "Point", "coordinates": [ -71.070729431728182, 42.299926147124573 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 49, "OBJECTID": 53, "BLDG_ID": 69, "BLDG_NAME": "Ohearn Bldg", "ADDRESS": "1669 Dorchester Avenue", "CITY": "Dorchester", "ZIPCODE": "02122", "CSP_SCH_ID": 4391, "SCH_ID": 4391, "SCH_NAME": "Henderson Lower (K0-1)", "SCH_LABEL": "Henderson Lower (K0-1)", "SCH_TYPE": "K-12", "SHARED": " ", "COMPLEX": " ", "POINT_X": 774609.99999699998, "POINT_Y": 2932449.9999899999 }, "geometry": { "type": "Point", "coordinates": [ -71.062220644047997, 42.293966726809167 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 50, "OBJECTID": 54, "BLDG_ID": 70, "BLDG_NAME": "Murphy Bldg", "ADDRESS": "1 Worrell Street", "CITY": "Dorchester", "ZIPCODE": "02122", "CSP_SCH_ID": 4400, "SCH_ID": 4400, "SCH_NAME": "Murphy K-8", "SCH_LABEL": "Murphy K-8", "SCH_TYPE": "K-8", "SHARED": " ", "COMPLEX": " ", "POINT_X": 778133.90643199999, "POINT_Y": 2932555.6167000001 }, "geometry": { "type": "Point", "coordinates": [ -71.049194058411459, 42.294206177035555 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 51, "OBJECTID": 55, "BLDG_ID": 71, "BLDG_NAME": "Kenny Bldg", "ADDRESS": "19 Oakton Avenue", "CITY": "Dorchester", "ZIPCODE": "02122", "CSP_SCH_ID": 4390, "SCH_ID": 4390, "SCH_NAME": "Kenny Elementary", "SCH_LABEL": "Kenny", "SCH_TYPE": "ES", "SHARED": " ", "COMPLEX": " ", "POINT_X": 777066.99999899999, "POINT_Y": 2929759.9999899999 }, "geometry": { "type": "Point", "coordinates": [ -71.05319153733501, 42.286550250407792 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 52, "OBJECTID": 56, "BLDG_ID": 72, "BLDG_NAME": "Wilson Bldg", "ADDRESS": "18 Croftland Avenue", "CITY": "Dorchester", "ZIPCODE": "02124", "CSP_SCH_ID": 1140, "SCH_ID": 1140, "SCH_NAME": "Henderson Upper (2-12)", "SCH_LABEL": "Henderson Upper (2-12)", "SCH_TYPE": "K-12", "SHARED": " ", "COMPLEX": " ", "POINT_X": 772644.99999499996, "POINT_Y": 2927809.9999899999 }, "geometry": { "type": "Point", "coordinates": [ -71.069569926839065, 42.281261727460347 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 53, "OBJECTID": 57, "BLDG_ID": 73, "BLDG_NAME": "Taylor Bldg", "ADDRESS": "1060 Morton Street", "CITY": "Mattapan", "ZIPCODE": "02126", "CSP_SCH_ID": 4151, "SCH_ID": 4151, "SCH_NAME": "Taylor Elementary", "SCH_LABEL": "Taylor", "SCH_TYPE": "ES", "SHARED": " ", "COMPLEX": " ", "POINT_X": 770523.99999299995, "POINT_Y": 2926559.9999899999 }, "geometry": { "type": "Point", "coordinates": [ -71.077430566036455, 42.277860746256877 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 54, "OBJECTID": 58, "BLDG_ID": 74, "BLDG_NAME": "Thompson Bldg", "ADDRESS": "100 Maxwell Street", "CITY": "Dorchester", "ZIPCODE": "02124", "CSP_SCH_ID": 1990, "SCH_ID": 1990, "SCH_NAME": "Boston International HS", "SCH_LABEL": "Boston Intl HS", "SCH_TYPE": "Special", "SHARED": "Shared", "COMPLEX": " ", "POINT_X": 769575.86050399998, "POINT_Y": 2927851.9051399999 }, "geometry": { "type": "Point", "coordinates": [ -71.080910594145777, 42.281418657595005 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 55, "OBJECTID": 59, "BLDG_ID": 74, "BLDG_NAME": "Thompson Bldg", "ADDRESS": "100 Maxwell Street", "CITY": "Dorchester", "ZIPCODE": "02124", "CSP_SCH_ID": 1991, "SCH_ID": 1991, "SCH_NAME": "Newcomers Academy", "SCH_LABEL": "Newcomers Acad", "SCH_TYPE": "Special", "SHARED": "Shared", "COMPLEX": " ", "POINT_X": 769575.86050399998, "POINT_Y": 2927851.9051399999 }, "geometry": { "type": "Point", "coordinates": [ -71.080910594145777, 42.281418657595005 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 56, "OBJECTID": 60, "BLDG_ID": 77, "BLDG_NAME": "Mildred Avenue Bldg", "ADDRESS": "5 Mildred Avenue", "CITY": "Mattapan", "ZIPCODE": "02126", "CSP_SCH_ID": 4671, "SCH_ID": 4671, "SCH_NAME": "Mildred Avenue K-8", "SCH_LABEL": "Mildred Ave K-8", "SCH_TYPE": "K-8", "SHARED": " ", "COMPLEX": " ", "POINT_X": 767008.11176600005, "POINT_Y": 2926141.9523999998 }, "geometry": { "type": "Point", "coordinates": [ -71.09042959600346, 42.27676065695961 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 57, "OBJECTID": 61, "BLDG_ID": 78, "BLDG_NAME": "Dorchester Ed. Bldg #1 - Main", "ADDRESS": "9 Peacevale Road", "CITY": "Dorchester", "ZIPCODE": "02124", "CSP_SCH_ID": 1460, "SCH_ID": 1460, "SCH_NAME": "TechBoston Academy", "SCH_LABEL": "TechBoston", "SCH_TYPE": "6\/7-12", "SHARED": " ", "COMPLEX": " ", "POINT_X": 770678.99999299995, "POINT_Y": 2930179.9999899999 }, "geometry": { "type": "Point", "coordinates": [ -71.07679145494096, 42.287792154500146 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 58, "OBJECTID": 62, "BLDG_ID": 80, "BLDG_NAME": "Lee Bldg", "ADDRESS": "155 Talbot Avenue", "CITY": "Dorchester", "ZIPCODE": "02124", "CSP_SCH_ID": 4290, "SCH_ID": 4290, "SCH_NAME": "Lee K-8", "SCH_LABEL": "Lee K-8", "SCH_TYPE": "K-8", "SHARED": " ", "COMPLEX": " ", "POINT_X": 769700.92630599998, "POINT_Y": 2931868.2605400002 }, "geometry": { "type": "Point", "coordinates": [ -71.080375419245556, 42.29243810494426 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 59, "OBJECTID": 63, "BLDG_ID": 79, "BLDG_NAME": "Fifield Bldg", "ADDRESS": "25 Dunbar Ave.", "CITY": "Dorchester", "ZIPCODE": "02124", "CSP_SCH_ID": 4291, "SCH_ID": 4291, "SCH_NAME": "Lee Academy (K1-3)", "SCH_LABEL": "Lee Academy (K1-3)", "SCH_TYPE": "ES", "SHARED": " ", "COMPLEX": " ", "POINT_X": 771704.710723, "POINT_Y": 2929753.9164399998 }, "geometry": { "type": "Point", "coordinates": [ -71.073008626969965, 42.28660892640341 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 60, "OBJECTID": 64, "BLDG_ID": 82, "BLDG_NAME": "Holmes Bldg", "ADDRESS": "40 School Street", "CITY": "Dorchester", "ZIPCODE": "02124", "CSP_SCH_ID": 4084, "SCH_ID": 4084, "SCH_NAME": "Holmes Elementary", "SCH_LABEL": "Holmes", "SCH_TYPE": "ES", "SHARED": " ", "COMPLEX": " ", "POINT_X": 770984.99999399995, "POINT_Y": 2933459.9999899999 }, "geometry": { "type": "Point", "coordinates": [ -71.075600259298653, 42.29678849876791 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 61, "OBJECTID": 65, "BLDG_ID": 85, "BLDG_NAME": "Lewenberg Bldg", "ADDRESS": "20 Outlook Road", "CITY": "Mattapan", "ZIPCODE": "02126", "CSP_SCH_ID": 4600, "SCH_ID": 4600, "SCH_NAME": "Young Achievers K-8", "SCH_LABEL": "Young Achievers K-8", "SCH_TYPE": "K-8", "SHARED": " ", "COMPLEX": " ", "POINT_X": 765760.99998900003, "POINT_Y": 2928159.9999899999 }, "geometry": { "type": "Point", "coordinates": [ -71.095002334265146, 42.282314660088566 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 62, "OBJECTID": 66, "BLDG_ID": 86, "BLDG_NAME": "Mattahunt Bldg", "ADDRESS": "100 Hebron Street", "CITY": "Mattapan", "ZIPCODE": "02126", "CSP_SCH_ID": 4691, "SCH_ID": 4691, "SCH_NAME": "Mattahunt Elementary", "SCH_LABEL": "Mattahunt (K1-2)", "SCH_TYPE": "ES", "SHARED": " ", "COMPLEX": " ", "POINT_X": 763312.99998700002, "POINT_Y": 2925779.9999799998 }, "geometry": { "type": "Point", "coordinates": [ -71.104089443168277, 42.275815309827621 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 63, "OBJECTID": 67, "BLDG_ID": 87, "BLDG_NAME": "Chittick Bldg", "ADDRESS": "154 Ruskindale Road", "CITY": "Mattapan", "ZIPCODE": "02126", "CSP_SCH_ID": 4070, "SCH_ID": 4070, "SCH_NAME": "Chittick Elementary", "SCH_LABEL": "Chittick", "SCH_TYPE": "ES", "SHARED": " ", "COMPLEX": " ", "POINT_X": 763140.39985799999, "POINT_Y": 2922660.9709299998 }, "geometry": { "type": "Point", "coordinates": [ -71.104780600428839, 42.267258654407875 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 64, "OBJECTID": 69, "BLDG_ID": 65, "BLDG_NAME": "Cleveland Bldg", "ADDRESS": "11 Charles Street", "CITY": "Dorchester", "ZIPCODE": "02122", "CSP_SCH_ID": 1103, "SCH_ID": 1103, "SCH_NAME": "Comm Acad Sci Health", "SCH_LABEL": "CASH", "SCH_TYPE": "HS", "SHARED": "Shared", "COMPLEX": " ", "POINT_X": 774729.49070299999, "POINT_Y": 2935060.6431100001 }, "geometry": { "type": "Point", "coordinates": [ -71.061729420578004, 42.301128791038373 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 65, "OBJECTID": 70, "BLDG_ID": 91, "BLDG_NAME": "Philbrick Bldg", "ADDRESS": "40 Philbrick Street", "CITY": "Roslindale", "ZIPCODE": "02131", "CSP_SCH_ID": 4561, "SCH_ID": 4561, "SCH_NAME": "Philbrick Elementary", "SCH_LABEL": "Philbrick", "SCH_TYPE": "ES", "SHARED": " ", "COMPLEX": " ", "POINT_X": 759602.91387100006, "POINT_Y": 2929259.10274 }, "geometry": { "type": "Point", "coordinates": [ -71.117740606138767, 42.285408656910441 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 66, "OBJECTID": 71, "BLDG_ID": 92, "BLDG_NAME": "Haley Bldg", "ADDRESS": "570 American Legion Highway", "CITY": "Roslindale", "ZIPCODE": "02131", "CSP_SCH_ID": 4210, "SCH_ID": 4210, "SCH_NAME": "Haley K-8", "SCH_LABEL": "Haley K-8", "SCH_TYPE": "K-8", "SHARED": " ", "COMPLEX": " ", "POINT_X": 762311.95784199995, "POINT_Y": 2929763.3730100002 }, "geometry": { "type": "Point", "coordinates": [ -71.107720601870312, 42.286758657746155 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 67, "OBJECTID": 72, "BLDG_ID": 93, "BLDG_NAME": "Parkman Bldg", "ADDRESS": "25 Walk Hill Street", "CITY": "Jamaica Plain", "ZIPCODE": "02130", "CSP_SCH_ID": 4661, "SCH_ID": 4661, "SCH_NAME": "BTU K-8 Pilot", "SCH_LABEL": "BTU Pilot School K-8", "SCH_TYPE": "K-8", "SHARED": " ", "COMPLEX": " ", "POINT_X": 760074.83, "POINT_Y": 2932624.84345 }, "geometry": { "type": "Point", "coordinates": [ -71.115940606109874, 42.294638658621004 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 68, "OBJECTID": 74, "BLDG_ID": 96, "BLDG_NAME": "Roosevelt Bldg", "ADDRESS": "95 Needham Road", "CITY": "Hyde Park", "ZIPCODE": "02136", "CSP_SCH_ID": 4192, "SCH_ID": 4192, "SCH_NAME": "Roosevelt Upper (2-8)", "SCH_LABEL": "Roosevelt Upper (2-8)", "SCH_TYPE": "K-8", "SHARED": " ", "COMPLEX": " ", "POINT_X": 758126.00001399999, "POINT_Y": 2913780.0000100001 }, "geometry": { "type": "Point", "coordinates": [ -71.123451166168749, 42.242950759657155 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 69, "OBJECTID": 75, "BLDG_ID": 98, "BLDG_NAME": "Channing Bldg", "ADDRESS": "35 Sunnyside Street", "CITY": "Hyde Park", "ZIPCODE": "02136", "CSP_SCH_ID": 4201, "SCH_ID": 4201, "SCH_NAME": "Channing Elementary", "SCH_LABEL": "Channing", "SCH_TYPE": "ES", "SHARED": " ", "COMPLEX": " ", "POINT_X": 755440.04685899999, "POINT_Y": 2916930.6888700002 }, "geometry": { "type": "Point", "coordinates": [ -71.133320608913294, 42.251628650991186 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 70, "OBJECTID": 76, "BLDG_ID": 99, "BLDG_NAME": "Grew Bldg", "ADDRESS": "40 Gordon Avenue", "CITY": "Hyde Park", "ZIPCODE": "02136", "CSP_SCH_ID": 4200, "SCH_ID": 4200, "SCH_NAME": "Grew Elementary", "SCH_LABEL": "Grew", "SCH_TYPE": "ES", "SHARED": " ", "COMPLEX": " ", "POINT_X": 757056.26689299999, "POINT_Y": 2918810.8113099998 }, "geometry": { "type": "Point", "coordinates": [ -71.127320607071439, 42.25676865106476 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 71, "OBJECTID": 77, "BLDG_ID": 100, "BLDG_NAME": "Conley Bldg", "ADDRESS": "450 Poplar Street", "CITY": "Roslindale", "ZIPCODE": "02131", "CSP_SCH_ID": 4080, "SCH_ID": 4080, "SCH_NAME": "Conley Elementary", "SCH_LABEL": "Conley", "SCH_TYPE": "ES", "SHARED": " ", "COMPLEX": " ", "POINT_X": 757100.63047700003, "POINT_Y": 2925381.50997 }, "geometry": { "type": "Point", "coordinates": [ -71.127050608684371, 42.274798655092461 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 72, "OBJECTID": 78, "BLDG_ID": 101, "BLDG_NAME": "Irving Bldg", "ADDRESS": "105 Cummins Highway", "CITY": "Roslindale", "ZIPCODE": "02131", "CSP_SCH_ID": 2140, "SCH_ID": 2140, "SCH_NAME": "Irving Middle", "SCH_LABEL": "Irving MS", "SCH_TYPE": "MS", "SHARED": " ", "COMPLEX": " ", "POINT_X": 757660.211213, "POINT_Y": 2928605.4511199999 }, "geometry": { "type": "Point", "coordinates": [ -71.12493060728049, 42.283638656670995 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 73, "OBJECTID": 79, "BLDG_ID": 102, "BLDG_NAME": "Sumner Bldg", "ADDRESS": "15 Basile Street", "CITY": "Roslindale", "ZIPCODE": "02131", "CSP_SCH_ID": 4560, "SCH_ID": 4560, "SCH_NAME": "Sumner Elementary", "SCH_LABEL": "Sumner", "SCH_TYPE": "ES", "SHARED": " ", "COMPLEX": " ", "POINT_X": 757138.87466900004, "POINT_Y": 2929630.8349299999 }, "geometry": { "type": "Point", "coordinates": [ -71.126840608095961, 42.286458657545964 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 74, "OBJECTID": 80, "BLDG_ID": 105, "BLDG_NAME": "Fuller Bldg", "ADDRESS": "25 Glen Road", "CITY": "Jamaica Plain", "ZIPCODE": "02130", "CSP_SCH_ID": 1340, "SCH_ID": 1340, "SCH_NAME": "Community Academy", "SCH_LABEL": "Community Acad", "SCH_TYPE": "Special", "SHARED": " ", "COMPLEX": " ", "POINT_X": 763418.96936300001, "POINT_Y": 2937847.759 }, "geometry": { "type": "Point", "coordinates": [ -71.103490601747339, 42.308928662665529 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 75, "OBJECTID": 81, "BLDG_ID": 107, "BLDG_NAME": "Hernandez Bldg", "ADDRESS": "61 School Street", "CITY": "Roxbury", "ZIPCODE": "02119", "CSP_SCH_ID": 4053, "SCH_ID": 4053, "SCH_NAME": "Hernandez K-8", "SCH_LABEL": "Hernandez K-8", "SCH_TYPE": "K-8", "SHARED": " ", "COMPLEX": " ", "POINT_X": 764862.99998800003, "POINT_Y": 2939680.0 }, "geometry": { "type": "Point", "coordinates": [ -71.098120206439575, 42.313937883276793 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 76, "OBJECTID": 82, "BLDG_ID": 108, "BLDG_NAME": "English Hs Bldg", "ADDRESS": "144 Mcbride Street", "CITY": "Jamaica Plain", "ZIPCODE": "02130", "CSP_SCH_ID": 1080, "SCH_ID": 1080, "SCH_NAME": "English High", "SCH_LABEL": "English HS", "SCH_TYPE": "HS", "SHARED": " ", "COMPLEX": " ", "POINT_X": 761771.15262499999, "POINT_Y": 2936776.0391899999 }, "geometry": { "type": "Point", "coordinates": [ -71.109600604437517, 42.306008660799328 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 77, "OBJECTID": 83, "BLDG_ID": 109, "BLDG_NAME": "Mendell Bldg", "ADDRESS": "164 School Street", "CITY": "Roxbury", "ZIPCODE": "02119", "CSP_SCH_ID": 4370, "SCH_ID": 4370, "SCH_NAME": "Mendell Elementary", "SCH_LABEL": "Mendell", "SCH_TYPE": "ES", "SHARED": " ", "COMPLEX": " ", "POINT_X": 763914.501299, "POINT_Y": 2940630.6277399999 }, "geometry": { "type": "Point", "coordinates": [ -71.101610602580607, 42.316558664339304 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 78, "OBJECTID": 84, "BLDG_ID": 110, "BLDG_NAME": "Kennedy, J Bldg", "ADDRESS": "7 Bolster Street", "CITY": "Jamaica Plain", "ZIPCODE": "02130", "CSP_SCH_ID": 4270, "SCH_ID": 4270, "SCH_NAME": "Kennedy John F Elemen", "SCH_LABEL": "JF Kennedy", "SCH_TYPE": "ES", "SHARED": " ", "COMPLEX": " ", "POINT_X": 762761.99998600001, "POINT_Y": 2942530.0 }, "geometry": { "type": "Point", "coordinates": [ -71.105839382573436, 42.321785327085706 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 79, "OBJECTID": 85, "BLDG_ID": 111, "BLDG_NAME": "Hennigan Bldg", "ADDRESS": "200 Heath Street", "CITY": "Jamaica Plain", "ZIPCODE": "02130", "CSP_SCH_ID": 4231, "SCH_ID": 4231, "SCH_NAME": "West Zone ELC", "SCH_LABEL": "West Zone ELC", "SCH_TYPE": "ELC", "SHARED": "Shared", "COMPLEX": " ", "POINT_X": 762457.92992100003, "POINT_Y": 2944171.2185200001 }, "geometry": { "type": "Point", "coordinates": [ -71.106935770802252, 42.326292757233318 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 80, "OBJECTID": 86, "BLDG_ID": 113, "BLDG_NAME": "Tobin Bldg", "ADDRESS": "40 Smith Street", "CITY": "Roxbury", "ZIPCODE": "02120", "CSP_SCH_ID": 4570, "SCH_ID": 4570, "SCH_NAME": "Tobin K-8", "SCH_LABEL": "Tobin K-8", "SCH_TYPE": "K-8", "SHARED": " ", "COMPLEX": " ", "POINT_X": 764784.16603600001, "POINT_Y": 2946633.1515199998 }, "geometry": { "type": "Point", "coordinates": [ -71.098290602807225, 42.333018667196676 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 81, "OBJECTID": 87, "BLDG_ID": 115, "BLDG_NAME": "Boston Latin School Bldg", "ADDRESS": "78 Avenue Louis Pasteur", "CITY": "Boston", "ZIPCODE": "02115", "CSP_SCH_ID": 1010, "SCH_ID": 1010, "SCH_NAME": "Boston Latin School", "SCH_LABEL": "Boston Latin Sch", "SCH_TYPE": "6\/7-12", "SHARED": " ", "COMPLEX": " ", "POINT_X": 763856.54949100001, "POINT_Y": 2948407.2022099998 }, "geometry": { "type": "Point", "coordinates": [ -71.101690603335967, 42.337898667877987 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 82, "OBJECTID": 88, "BLDG_ID": 116, "BLDG_NAME": "Health Careers Academy", "ADDRESS": "110 The Fenway", "CITY": "Boston", "ZIPCODE": "02115", "CSP_SCH_ID": 1440, "SCH_ID": 1440, "SCH_NAME": "Kennedy Health Careers Academy (11-12)", "SCH_LABEL": "Kennedy HCA (11-12)", "SCH_TYPE": "HS", "SHARED": " ", "COMPLEX": " ", "POINT_X": 766597.24494999996, "POINT_Y": 2949717.5231400002 }, "geometry": { "type": "Point", "coordinates": [ -71.091530600167118, 42.34145866825515 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 83, "OBJECTID": 89, "BLDG_ID": 118, "BLDG_NAME": "Mission Hill Bldg", "ADDRESS": "67 Alleghany Street", "CITY": "Roxbury", "ZIPCODE": "02120", "CSP_SCH_ID": 1265, "SCH_ID": 1265, "SCH_NAME": "Fenway High", "SCH_LABEL": "Fenway HS", "SCH_TYPE": "HS", "SHARED": " ", "COMPLEX": " ", "POINT_X": 764548.38270099997, "POINT_Y": 2945746.345 }, "geometry": { "type": "Point", "coordinates": [ -71.099178021163354, 42.330588277439375 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 84, "OBJECTID": 90, "BLDG_ID": 118, "BLDG_NAME": "Cleveland Bldg", "ADDRESS": "11 Charles Street", "CITY": "Dorchester", "ZIPCODE": "02122", "CSP_SCH_ID": 1420, "SCH_ID": 1420, "SCH_NAME": "Boston Arts Academy", "SCH_LABEL": "BAA", "SCH_TYPE": "HS", "SHARED": "Shared", "COMPLEX": " ", "POINT_X": 774619.898, "POINT_Y": 2934906.539 }, "geometry": { "type": "Point", "coordinates": [ -71.062152562886169, 42.300698325177976 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 85, "OBJECTID": 91, "BLDG_ID": 119, "BLDG_NAME": "Mckinley Peterborough Bldg", "ADDRESS": "97 Peterborough Street", "CITY": "Boston", "ZIPCODE": "02215", "CSP_SCH_ID": 1293, "SCH_ID": 1293, "SCH_NAME": "McKinley Prep High Sch", "SCH_LABEL": "McKinley Prep HS", "SCH_TYPE": "Special", "SHARED": " ", "COMPLEX": " ", "POINT_X": 764504.05141199997, "POINT_Y": 2950429.1596599999 }, "geometry": { "type": "Point", "coordinates": [ -71.099260603325419, 42.343438669350114 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 86, "OBJECTID": 92, "BLDG_ID": 120, "BLDG_NAME": "Mckinley St Mary'S St Bldg", "ADDRESS": "50 St. Mary Street", "CITY": "Boston", "ZIPCODE": "02215", "CSP_SCH_ID": 1292, "SCH_ID": 1292, "SCH_NAME": "McKinley Middle", "SCH_LABEL": "McKinley MS", "SCH_TYPE": "Special", "SHARED": " ", "COMPLEX": " ", "POINT_X": 762468.91361799999, "POINT_Y": 2952063.2540600002 }, "geometry": { "type": "Point", "coordinates": [ -71.106760606027208, 42.347948669445934 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 87, "OBJECTID": 93, "BLDG_ID": 121, "BLDG_NAME": "Curley, J. Bldg", "ADDRESS": "40 Pershing Road", "CITY": "Jamaica Plain", "ZIPCODE": "02130", "CSP_SCH_ID": 4272, "SCH_ID": 4272, "SCH_NAME": "Curley K-8 (Lower)", "SCH_LABEL": "Curley K-8 (Lower)", "SCH_TYPE": "K-8", "SHARED": " ", "COMPLEX": " ", "POINT_X": 760501.00001600001, "POINT_Y": 2941390.0 }, "geometry": { "type": "Point", "coordinates": [ -71.11421891302389, 42.318685476809193 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 88, "OBJECTID": 94, "BLDG_ID": 122, "BLDG_NAME": "Curley, Mary Bldg", "ADDRESS": "493 Centre Street", "CITY": "Jamaica Plain", "ZIPCODE": "02130", "CSP_SCH_ID": 4272, "SCH_ID": 4272, "SCH_NAME": "Curley K-8 (Upper)", "SCH_LABEL": "Curley K-8 (Upper)", "SCH_TYPE": "K-8", "SHARED": " ", "COMPLEX": " ", "POINT_X": 760844.30247999995, "POINT_Y": 2941327.1203200002 }, "geometry": { "type": "Point", "coordinates": [ -71.112950606072374, 42.318508663764156 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 89, "OBJECTID": 95, "BLDG_ID": 124, "BLDG_NAME": "Manning Bldg", "ADDRESS": "130 Louders Lane", "CITY": "Jamaica Plain", "ZIPCODE": "02130", "CSP_SCH_ID": 4311, "SCH_ID": 4311, "SCH_NAME": "Manning Elementary", "SCH_LABEL": "Manning", "SCH_TYPE": "ES", "SHARED": " ", "COMPLEX": " ", "POINT_X": 755850.53473199997, "POINT_Y": 2936596.6422700002 }, "geometry": { "type": "Point", "coordinates": [ -71.131490611007479, 42.305588660406912 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 90, "OBJECTID": 96, "BLDG_ID": 126, "BLDG_NAME": "Bates Bldg", "ADDRESS": "426 Beech Street", "CITY": "Roslindale", "ZIPCODE": "02131", "CSP_SCH_ID": 4081, "SCH_ID": 4081, "SCH_NAME": "Bates Elementary", "SCH_LABEL": "Bates", "SCH_TYPE": "ES", "SHARED": " ", "COMPLEX": " ", "POINT_X": 754855.14509899996, "POINT_Y": 2926454.13215 }, "geometry": { "type": "Point", "coordinates": [ -71.135330610978983, 42.277768655612746 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 91, "OBJECTID": 97, "BLDG_ID": 127, "BLDG_NAME": "Mozart Bldg", "ADDRESS": "236 Beech Street", "CITY": "Roslindale", "ZIPCODE": "02131", "CSP_SCH_ID": 4082, "SCH_ID": 4082, "SCH_NAME": "Mozart Elementary", "SCH_LABEL": "Mozart", "SCH_TYPE": "ES", "SHARED": " ", "COMPLEX": " ", "POINT_X": 753301.87844100001, "POINT_Y": 2927708.44178 }, "geometry": { "type": "Point", "coordinates": [ -71.141050612951119, 42.281228656069977 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 92, "OBJECTID": 98, "BLDG_ID": 128, "BLDG_NAME": "Russett Road Bldg", "ADDRESS": "140 Russett Road", "CITY": "West Roxbury", "ZIPCODE": "02132", "CSP_SCH_ID": 4033, "SCH_ID": 4033, "SCH_NAME": "Kilmer Upper (4-8)", "SCH_LABEL": "Kilmer Upper (4-8)", "SCH_TYPE": "K-8", "SHARED": " ", "COMPLEX": " ", "POINT_X": 750222.43104599998, "POINT_Y": 2931861.7571100001 }, "geometry": { "type": "Point", "coordinates": [ -71.152367618001492, 42.29266065792342 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 93, "OBJECTID": 99, "BLDG_ID": 129, "BLDG_NAME": "Beethoven Bldg", "ADDRESS": "5125 Washington Street", "CITY": "West Roxbury", "ZIPCODE": "02132", "CSP_SCH_ID": 4030, "SCH_ID": 4030, "SCH_NAME": "Beethoven Elementary", "SCH_LABEL": "Beethoven (K1-2)", "SCH_TYPE": "ES", "SHARED": " ", "COMPLEX": " ", "POINT_X": 749247.24870899995, "POINT_Y": 2921208.6916899998 }, "geometry": { "type": "Point", "coordinates": [ -71.156130616583738, 42.263438651349091 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 94, "OBJECTID": 100, "BLDG_ID": 130, "BLDG_NAME": "Kilmer Bldg", "ADDRESS": "35 Baker Street", "CITY": "West Roxbury", "ZIPCODE": "02132", "CSP_SCH_ID": 4031, "SCH_ID": 4031, "SCH_NAME": "Kilmer Lower (K1-3)", "SCH_LABEL": "Kilmer Lower (K1-3)", "SCH_TYPE": "K-8", "SHARED": " ", "COMPLEX": " ", "POINT_X": 747492.00000400003, "POINT_Y": 2924280.0000200002 }, "geometry": { "type": "Point", "coordinates": [ -71.162570125740743, 42.27188581980127 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 95, "OBJECTID": 101, "BLDG_ID": 131, "BLDG_NAME": "West Roxbury Ed. Bldg", "ADDRESS": "1205 V.F.W. Parkway", "CITY": "West Roxbury", "ZIPCODE": "02132", "CSP_SCH_ID": 1253, "SCH_ID": 1253, "SCH_NAME": "Urban Science Academy", "SCH_LABEL": "Urban Science Academy", "SCH_TYPE": "HS", "SHARED": "Shared", "COMPLEX": "West Roxbury EC", "POINT_X": 744291.89347300003, "POINT_Y": 2928051.2811099999 }, "geometry": { "type": "Point", "coordinates": [ -71.174340624005168, 42.282268654205879 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 96, "OBJECTID": 102, "BLDG_ID": 132, "BLDG_NAME": "Shaw, R.G. Bldg", "ADDRESS": "20 Mt. Vernon Street", "CITY": "West Roxbury", "ZIPCODE": "02132", "CSP_SCH_ID": 4331, "SCH_ID": 4331, "SCH_NAME": "Lyndon K-8", "SCH_LABEL": "Lyndon K-8", "SCH_TYPE": "K-8", "SHARED": " ", "COMPLEX": " ", "POINT_X": 748612.36752500001, "POINT_Y": 2928334.2088199998 }, "geometry": { "type": "Point", "coordinates": [ -71.158370618608686, 42.282998655784283 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 97, "OBJECTID": 103, "BLDG_ID": 133, "BLDG_NAME": "Edison Bldg", "ADDRESS": "60 Glenmont Road", "CITY": "Brighton", "ZIPCODE": "02135", "CSP_SCH_ID": 4178, "SCH_ID": 4178, "SCH_NAME": "Edison K-8", "SCH_LABEL": "Edison K-8", "SCH_TYPE": "K-8", "SHARED": " ", "COMPLEX": " ", "POINT_X": 748029.00601999997, "POINT_Y": 2951141.1571599999 }, "geometry": { "type": "Point", "coordinates": [ -71.160190622679508, 42.345588667283138 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 98, "OBJECTID": 104, "BLDG_ID": 135, "BLDG_NAME": "Lyon, Mary Bldg", "ADDRESS": "50 Beechcroft Street", "CITY": "Brighton", "ZIPCODE": "02135", "CSP_SCH_ID": 4171, "SCH_ID": 4171, "SCH_NAME": "Lyon K-8", "SCH_LABEL": "Lyon K-8", "SCH_TYPE": "K-12", "SHARED": " ", "COMPLEX": " ", "POINT_X": 747666.93001999997, "POINT_Y": 2953140.4177100002 }, "geometry": { "type": "Point", "coordinates": [ -71.161500623646376, 42.351078668404128 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 99, "OBJECTID": 105, "BLDG_ID": 136, "BLDG_NAME": "Garfield Bldg", "ADDRESS": "95 Beechcroft Street", "CITY": "Brighton", "ZIPCODE": "02135", "CSP_SCH_ID": 1171, "SCH_ID": 1171, "SCH_NAME": "Lyon, Mary 9-12", "SCH_LABEL": "Lyon 9-12", "SCH_TYPE": "K-12", "SHARED": " ", "COMPLEX": " ", "POINT_X": 747865.43718799995, "POINT_Y": 2953523.8541899999 }, "geometry": { "type": "Point", "coordinates": [ -71.16076062369531, 42.352128667809041 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 100, "OBJECTID": 106, "BLDG_ID": 137, "BLDG_NAME": "Winship Bldg", "ADDRESS": "54 Dighton Street", "CITY": "Brighton", "ZIPCODE": "02135", "CSP_SCH_ID": 4173, "SCH_ID": 4173, "SCH_NAME": "Winship Elementary", "SCH_LABEL": "Winship", "SCH_TYPE": "ES", "SHARED": " ", "COMPLEX": " ", "POINT_X": 749335.00000600005, "POINT_Y": 2951880.0000100001 }, "geometry": { "type": "Point", "coordinates": [ -71.155348599766185, 42.347601703488074 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 101, "OBJECTID": 107, "BLDG_ID": 139, "BLDG_NAME": "E. Greenwood Bldg", "ADDRESS": "612 Metropolitan Avenue", "CITY": "Hyde Park", "ZIPCODE": "02136", "CSP_SCH_ID": 1230, "SCH_ID": 1230, "SCH_NAME": "Another Course to College", "SCH_LABEL": "ACC", "SCH_TYPE": "HS", "SHARED": " ", "COMPLEX": " ", "POINT_X": 759585.471, "POINT_Y": 2921916.774 }, "geometry": { "type": "Point", "coordinates": [ -71.11792785432263, 42.265261192397553 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 102, "OBJECTID": 108, "BLDG_ID": 140, "BLDG_NAME": "Brighton High School Bldg", "ADDRESS": "25 Warren Street", "CITY": "Brighton", "ZIPCODE": "02135", "CSP_SCH_ID": 1040, "SCH_ID": 1040, "SCH_NAME": "Brighton High", "SCH_LABEL": "Brighton HS", "SCH_TYPE": "HS", "SHARED": " ", "COMPLEX": " ", "POINT_X": 751997.598536, "POINT_Y": 2952432.80174 }, "geometry": { "type": "Point", "coordinates": [ -71.145490617809216, 42.349088668294257 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 103, "OBJECTID": 109, "BLDG_ID": 141, "BLDG_NAME": "Baldwin Bldg", "ADDRESS": "121 Corey Road", "CITY": "Brighton", "ZIPCODE": "02135", "CSP_SCH_ID": 4621, "SCH_ID": 4621, "SCH_NAME": "Baldwin ELPA", "SCH_LABEL": "Baldwin ELPA", "SCH_TYPE": "ELC", "SHARED": " ", "COMPLEX": " ", "POINT_X": 753354.609161, "POINT_Y": 2949869.27556 }, "geometry": { "type": "Point", "coordinates": [ -71.140510617225445, 42.342038668075595 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 104, "OBJECTID": 110, "BLDG_ID": 142, "BLDG_NAME": "Jackson Mann Bldg", "ADDRESS": "40 Armington Street", "CITY": "Allston", "ZIPCODE": "02134", "CSP_SCH_ID": 4610, "SCH_ID": 4610, "SCH_NAME": "Horace Mann", "SCH_LABEL": "Horace Mann K-12", "SCH_TYPE": "Special", "SHARED": "Shared", "COMPLEX": " ", "POINT_X": 754098.77671400004, "POINT_Y": 2953523.97847 }, "geometry": { "type": "Point", "coordinates": [ -71.137700615908841, 42.352058669048986 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 105, "OBJECTID": 111, "BLDG_ID": 142, "BLDG_NAME": "Jackson Mann Bldg", "ADDRESS": "40 Armington Street", "CITY": "Allston", "ZIPCODE": "02134", "CSP_SCH_ID": 4620, "SCH_ID": 4620, "SCH_NAME": "Jackson\/Mann K-8", "SCH_LABEL": "Jackson\/Mann K-8", "SCH_TYPE": "K-8", "SHARED": "Shared", "COMPLEX": " ", "POINT_X": 754098.77671400004, "POINT_Y": 2953523.97847 }, "geometry": { "type": "Point", "coordinates": [ -71.137700615908841, 42.352058669048986 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 106, "OBJECTID": 112, "BLDG_ID": 89, "BLDG_NAME": "Hyde Park EC", "ADDRESS": "655 Metropolitan Ave", "CITY": "Hyde Park", "ZIPCODE": "02136", "CSP_SCH_ID": 1285, "SCH_ID": 1285, "SCH_NAME": "New Mission High", "SCH_LABEL": "New Mission HS", "SCH_TYPE": "6\/7-12", "SHARED": "Shared", "COMPLEX": " ", "POINT_X": 759643.69668099994, "POINT_Y": 2921172.1942199999 }, "geometry": { "type": "Point", "coordinates": [ -71.117910350674322, 42.262419100959299 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 107, "OBJECTID": 113, "BLDG_ID": 144, "BLDG_NAME": "Gardner Bldg", "ADDRESS": "30 Athol Street", "CITY": "Allston", "ZIPCODE": "02134", "CSP_SCH_ID": 4160, "SCH_ID": 4160, "SCH_NAME": "Gardner K-8", "SCH_LABEL": "Gardner K-8", "SCH_TYPE": "K-8", "SHARED": " ", "COMPLEX": " ", "POINT_X": 755055.55588300002, "POINT_Y": 2956702.2253899998 }, "geometry": { "type": "Point", "coordinates": [ -71.134110616168954, 42.360768671267373 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 108, "OBJECTID": 114, "BLDG_ID": 145, "BLDG_NAME": "Ohrenberger Bldg", "ADDRESS": "175 West Boundary Road", "CITY": "West Roxbury", "ZIPCODE": "02132", "CSP_SCH_ID": 4410, "SCH_ID": 4410, "SCH_NAME": "Ohrenberger 3-8", "SCH_LABEL": "Ohrenberger 3-8", "SCH_TYPE": "K-8", "SHARED": " ", "COMPLEX": " ", "POINT_X": 751016.11955900001, "POINT_Y": 2920239.2452600002 }, "geometry": { "type": "Point", "coordinates": [ -71.149610614246598, 42.260758652137149 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 109, "OBJECTID": 115, "BLDG_ID": 146, "BLDG_NAME": "Everett Bldg", "ADDRESS": "71 Pleasant Street", "CITY": "Dorchester", "ZIPCODE": "02125", "CSP_SCH_ID": 4140, "SCH_ID": 4140, "SCH_NAME": "Everett Elementary", "SCH_LABEL": "Everett", "SCH_TYPE": "ES", "SHARED": " ", "COMPLEX": " ", "POINT_X": 775235.99999799998, "POINT_Y": 2939640.0 }, "geometry": { "type": "Point", "coordinates": [ -71.059769760125448, 42.31368761178382 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 110, "OBJECTID": 116, "BLDG_ID": 148, "BLDG_NAME": "Shaw, P.A. Bldg", "ADDRESS": "429 Norfolk Street", "CITY": "Dorchester", "ZIPCODE": "02124", "CSP_SCH_ID": 4670, "SCH_ID": 4670, "SCH_NAME": "P.A. Shaw (K1-3)", "SCH_LABEL": "P.A. Shaw (K1-3)", "SCH_TYPE": "ES", "SHARED": " ", "COMPLEX": " ", "POINT_X": 767969.99999100005, "POINT_Y": 2928099.9999899999 }, "geometry": { "type": "Point", "coordinates": [ -71.086840324927664, 42.28212094476627 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 111, "OBJECTID": 117, "BLDG_ID": 149, "BLDG_NAME": "Greenwood, S Bldg", "ADDRESS": "189 Glenway Street", "CITY": "Dorchester", "ZIPCODE": "02121", "CSP_SCH_ID": 4130, "SCH_ID": 4130, "SCH_NAME": "Greenwood Sarah K-8", "SCH_LABEL": "S. Greenwood K-8", "SCH_TYPE": "K-8", "SHARED": " ", "COMPLEX": " ", "POINT_X": 769615.99999200006, "POINT_Y": 2933369.9999899999 }, "geometry": { "type": "Point", "coordinates": [ -71.080662016801583, 42.296560113168603 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 112, "OBJECTID": 118, "BLDG_ID": 150, "BLDG_NAME": "Burke High School Bldg", "ADDRESS": "60 Washington Street", "CITY": "Dorchester", "ZIPCODE": "02121", "CSP_SCH_ID": 1120, "SCH_ID": 1120, "SCH_NAME": "Burke High", "SCH_LABEL": "Burke HS", "SCH_TYPE": "HS", "SHARED": " ", "COMPLEX": " ", "POINT_X": 769337.07273599994, "POINT_Y": 2937107.129 }, "geometry": { "type": "Point", "coordinates": [ -71.08162523570914, 42.30681876066501 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 113, "OBJECTID": 119, "BLDG_ID": 152, "BLDG_NAME": "Dever Bldg", "ADDRESS": "325 Mt. Vernon Street", "CITY": "Dorchester", "ZIPCODE": "02125", "CSP_SCH_ID": 4100, "SCH_ID": 4100, "SCH_NAME": "Dever Elementary", "SCH_LABEL": "Dever", "SCH_TYPE": "ES", "SHARED": " ", "COMPLEX": " ", "POINT_X": 779834.14147399995, "POINT_Y": 2941100.4128899998 }, "geometry": { "type": "Point", "coordinates": [ -71.042740583242335, 42.31762866625126 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 114, "OBJECTID": 120, "BLDG_ID": 153, "BLDG_NAME": "Mccormack Bldg", "ADDRESS": "315 Mt. Vernon Street", "CITY": "Dorchester", "ZIPCODE": "02125", "CSP_SCH_ID": 2190, "SCH_ID": 2190, "SCH_NAME": "McCormack Middle", "SCH_LABEL": "McCormack MS", "SCH_TYPE": "MS", "SHARED": " ", "COMPLEX": " ", "POINT_X": 779627.81881800003, "POINT_Y": 2941245.0780799999 }, "geometry": { "type": "Point", "coordinates": [ -71.043500582553975, 42.318028665529518 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 115, "OBJECTID": 121, "BLDG_ID": 156, "BLDG_NAME": "Condon Bldg", "ADDRESS": "200 D Street", "CITY": "South Boston", "ZIPCODE": "02127", "CSP_SCH_ID": 4630, "SCH_ID": 4630, "SCH_NAME": "Condon K-8", "SCH_LABEL": "Condon K-8", "SCH_TYPE": "K-8", "SHARED": " ", "COMPLEX": " ", "POINT_X": 777250.0, "POINT_Y": 2948520.0000100001 }, "geometry": { "type": "Point", "coordinates": [ -71.052151221855084, 42.338025893347428 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 116, "OBJECTID": 122, "BLDG_ID": 998, "BLDG_NAME": "New Roosevelt Bldg", "ADDRESS": "30 Millstone Road", "CITY": "Hyde Park", "ZIPCODE": "02136", "CSP_SCH_ID": 4193, "SCH_ID": 4193, "SCH_NAME": "Roosevelt K-8 (K1-1)", "SCH_LABEL": "Roosevelt Lower (K1-1)", "SCH_TYPE": "K-8", "SHARED": " ", "COMPLEX": " ", "POINT_X": 755586.97863499995, "POINT_Y": 2910470.1729000001 }, "geometry": { "type": "Point", "coordinates": [ -71.132880608061342, 42.233898647021277 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 117, "OBJECTID": 123, "BLDG_ID": 2, "BLDG_NAME": "Bradley Bldg\r\n", "ADDRESS": "110 Beachview Road", "CITY": "East Boston", "ZIPCODE": "02128", "CSP_SCH_ID": 4062, "SCH_ID": 4062, "SCH_NAME": "Bradley Elementary", "SCH_LABEL": "Bradley", "SCH_TYPE": "ES", "SHARED": " ", "COMPLEX": " ", "POINT_X": 789872.44461899996, "POINT_Y": 2968119.6819600002 }, "geometry": { "type": "Point", "coordinates": [ -71.005045075999433, 42.391616179458651 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 118, "OBJECTID": 124, "BLDG_ID": 111, "BLDG_NAME": "Hennigan Bldg", "ADDRESS": "200 Heath Street", "CITY": "Jamaica Plain", "ZIPCODE": "02130", "CSP_SCH_ID": 4230, "SCH_ID": 4230, "SCH_NAME": "Hennigan K-8", "SCH_LABEL": "Hennigan K-8", "SCH_TYPE": "K-8", "SHARED": "Shared", "COMPLEX": " ", "POINT_X": 762465.83857200004, "POINT_Y": 2943926.85873 }, "geometry": { "type": "Point", "coordinates": [ -71.106910690182573, 42.325622122989714 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 119, "OBJECTID": 125, "BLDG_ID": 76, "BLDG_NAME": "Mattapan Eec Bldg", "ADDRESS": "108 Babson Street", "CITY": "Mattapan", "ZIPCODE": "02126", "CSP_SCH_ID": 4440, "SCH_ID": 4440, "SCH_NAME": "Ellison\/ Parks ELC", "SCH_LABEL": "Ellison\/ Parks ELC", "SCH_TYPE": "ELC", "SHARED": " ", "COMPLEX": " ", "POINT_X": 766621.39624599996, "POINT_Y": 2924328.1924299998 }, "geometry": { "type": "Point", "coordinates": [ -71.091890597002589, 42.271788654742387 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 120, "OBJECTID": 126, "BLDG_ID": 106, "BLDG_NAME": "Greater Egleston High", "ADDRESS": "80 School Street", "CITY": "Roxbury", "ZIPCODE": "02119", "CSP_SCH_ID": 1430, "SCH_ID": 1430, "SCH_NAME": "Greater Egleston High", "SCH_LABEL": "Greater Egleston HS", "SCH_TYPE": "HS", "SHARED": " ", "COMPLEX": " ", "POINT_X": 764546.11979599996, "POINT_Y": 2939748.0338900001 }, "geometry": { "type": "Point", "coordinates": [ -71.099290601843464, 42.314128662932774 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 121, "OBJECTID": 128, "BLDG_ID": 123, "BLDG_NAME": "Agassiz Building", "ADDRESS": "20 Child St", "CITY": "Jamaica Plain", "ZIPCODE": "02130", "CSP_SCH_ID": 4285, "SCH_ID": 4285, "SCH_NAME": "Mission Hill K-8", "SCH_LABEL": "Mission Hill K-8", "SCH_TYPE": "K-8", "SHARED": "Shared", "COMPLEX": " ", "POINT_X": 760615.27407799999, "POINT_Y": 2937144.8560199998 }, "geometry": { "type": "Point", "coordinates": [ -71.113867441556224, 42.30703515331264 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 122, "OBJECTID": 129, "BLDG_ID": 123, "BLDG_NAME": "Agassiz Building", "ADDRESS": "20 Child St", "CITY": "Jamaica Plain", "ZIPCODE": "02130", "CSP_SCH_ID": 1053, "SCH_ID": 1053, "SCH_NAME": "Margarita Muniz Academy", "SCH_LABEL": "Muniz Academy", "SCH_TYPE": "HS", "SHARED": "Shared", "COMPLEX": " ", "POINT_X": 760448.70256100001, "POINT_Y": 2937207.19875 }, "geometry": { "type": "Point", "coordinates": [ -71.114482185326253, 42.307208292864132 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 123, "OBJECTID": 130, "BLDG_ID": 30, "BLDG_NAME": "Emerson Building", "ADDRESS": "6 Shirley St", "CITY": "Roxbury", "ZIPCODE": "02119", "CSP_SCH_ID": 4123, "SCH_ID": 4123, "SCH_NAME": "Dudley Street Neighborhood Charter School", "SCH_LABEL": "Dudley St NCS", "SCH_TYPE": "ES", "SHARED": " ", "COMPLEX": " ", "POINT_X": 771541.56295000005, "POINT_Y": 2942624.0436200001 }, "geometry": { "type": "Point", "coordinates": [ -71.073373662772028, 42.321927472538313 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 124, "OBJECTID": 131, "BLDG_ID": 114, "BLDG_NAME": "Farragut Building", "ADDRESS": "10 Fenwood Road", "CITY": "Jamaica Plain", "ZIPCODE": "02115", "CSP_SCH_ID": 1441, "SCH_ID": 1441, "SCH_NAME": "Kennedy Health Careers Academy (9-10)", "SCH_LABEL": "Kennedy HCA (9-10)", "SCH_TYPE": "HS", "SHARED": " ", "COMPLEX": " ", "POINT_X": 762545.71295399999, "POINT_Y": 2946955.3512 }, "geometry": { "type": "Point", "coordinates": [ -71.106563664804341, 42.333931425892636 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 125, "OBJECTID": 132, "BLDG_ID": 89, "BLDG_NAME": "Hyde Park EC", "ADDRESS": "655 Metropolitan Ave", "CITY": "Hyde Park", "ZIPCODE": "02136", "CSP_SCH_ID": 1195, "SCH_ID": 1195, "SCH_NAME": "Community Leadership Academy", "SCH_LABEL": "BCLA", "SCH_TYPE": "HS", "SHARED": "Shared", "COMPLEX": " ", "POINT_X": 759599.76460200001, "POINT_Y": 2921175.94527 }, "geometry": { "type": "Point", "coordinates": [ -71.117886065696936, 42.26322789711886 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 126, "OBJECTID": 1335, "BLDG_ID": 1000, "BLDG_NAME": "Eliot Bldg", "ADDRESS": "173 Salem Street", "CITY": "Boston", "ZIPCODE": "02113", "CSP_SCH_ID": 4381, "SCH_ID": 4381, "SCH_NAME": "Eliot K-8", "SCH_LABEL": "Eliot K-8", "SCH_TYPE": "K-8", "SHARED": " ", "COMPLEX": " ", "POINT_X": 776462.973, "POINT_Y": 2958675.531 }, "geometry": { "type": "Point", "coordinates": [ -71.054870785383471, 42.365910958881848 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 127, "OBJECTID": 1736, "BLDG_ID": 52, "BLDG_NAME": "Higginson Bldg", "ADDRESS": "160 Harrishof Street", "CITY": "Roxbury", "ZIPCODE": "02119", "CSP_SCH_ID": 4241, "SCH_ID": 4241, "SCH_NAME": "Higginson Elementary (K1-2)", "SCH_LABEL": "Higginson (K1-2)", "SCH_TYPE": "ES", "SHARED": " ", "COMPLEX": " ", "POINT_X": 766503.82943100005, "POINT_Y": 2941044.2902899999 }, "geometry": { "type": "Point", "coordinates": [ -71.092029570550011, 42.317660189389237 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 128, "OBJECTID": 2136, "BLDG_ID": 0, "BLDG_NAME": "Alighieri Bldg", "ADDRESS": "37 Gove St.", "CITY": "East Boston", "ZIPCODE": "02128", "CSP_SCH_ID": 4321, "SCH_ID": 4321, "SCH_NAME": "Alighieri Montessori", "SCH_LABEL": "Alighieri", "SCH_TYPE": "ES", "SHARED": " ", "COMPLEX": " ", "POINT_X": 781025.95681100001, "POINT_Y": 2960764.0178100001 }, "geometry": { "type": "Point", "coordinates": [ -71.037940081983592, 42.371568436137579 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 129, "OBJECTID": 2938, "BLDG_ID": 0, "BLDG_NAME": "Church Street Bldg", "ADDRESS": "20 Church Street", "CITY": "Boston", "ZIPCODE": "02116", "CSP_SCH_ID": 1215, "SCH_ID": 1215, "SCH_NAME": "Boston Adult Tech Acad", "SCH_LABEL": "BATA", "SCH_TYPE": "Special", "SHARED": " ", "COMPLEX": " ", "POINT_X": 772904.81281499995, "POINT_Y": 2952412.93842 }, "geometry": { "type": "Point", "coordinates": [ -71.068149536019988, 42.348769709818789 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 130, "OBJECTID": 2946, "BLDG_ID": 139, "BLDG_NAME": "Taft Bldg", "ADDRESS": "20 Warren Street", "CITY": "Brighton", "ZIPCODE": "02135", "CSP_SCH_ID": 1470, "SCH_ID": 1470, "SCH_NAME": "Boston Green Academy", "SCH_LABEL": "Boston Green Academy", "SCH_TYPE": "6\/7-12", "SHARED": " ", "COMPLEX": " ", "POINT_X": 751868.38510199997, "POINT_Y": 2952924.9905300001 }, "geometry": { "type": "Point", "coordinates": [ -71.145961058720644, 42.350440724681782 ] } }, +{ "type": "Feature", "properties": { "OBJECTID_1": 131, "OBJECTID": 3346, "BLDG_ID": 150, "BLDG_NAME": "Dearborn Bldg", "ADDRESS": "35 Greenville Street", "CITY": "Roxbury", "ZIPCODE": "02119", "CSP_SCH_ID": 1260, "SCH_ID": 1260, "SCH_NAME": "Dearborn Academy", "SCH_LABEL": "Dearborn Academy", "SCH_TYPE": "6\/7-12", "SHARED": " ", "COMPLEX": " ", "POINT_X": 769605.963, "POINT_Y": 2944154.655 }, "geometry": { "type": "Point", "coordinates": [ -71.080504410343508, 42.326152847095891 ] } } +] +} diff --git a/public/data/boston_rodents.json b/public/data/boston_rodents.json new file mode 100644 index 00000000..24892544 --- /dev/null +++ b/public/data/boston_rodents.json @@ -0,0 +1,926 @@ +var rodents_json = { +"type": "FeatureCollection", + +"features": [ +{ "type": "Feature", "id": 1, "properties": { "CASE_ENQUIRY_ID": 101000833162.0, "OPEN_DT": "05\/03\/2013 11:12:12 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "83-85 Cresthill Rd Brighton MA 02135", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Allston \/ Brighton", "neighborhood_services_district": 15, "ward": "Ward 22", "precinct": 2211, "land_usage": "R2", "LOCATION_STREET_NAME": "83-85 Cresthill Rd", "LOCATION_ZIPCODE": 2135, "LATITUDE": 42.355988, "LONGITUDE": -71.157609, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.157609, 42.355988 ] } } +, +{ "type": "Feature", "id": 2, "properties": { "CASE_ENQUIRY_ID": 101000832197.0, "OPEN_DT": "05\/02\/2013 10:04:13 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "169 Endicott St Boston MA 02113", "fire_district": 3, "pwd_district": "1B", "city_council_district": 1, "police_district": "A1", "neighborhood": "Downtown \/ Financial District", "neighborhood_services_district": 3, "ward": "Ward 3", "precinct": 304, "land_usage": "A", "LOCATION_STREET_NAME": "169 Endicott St", "LOCATION_ZIPCODE": 2113, "LATITUDE": 42.36571, "LONGITUDE": -71.05729, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.05729, 42.36571 ] } } +, +{ "type": "Feature", "id": 3, "properties": { "CASE_ENQUIRY_ID": 101000828597.0, "OPEN_DT": "04\/26\/2013 01:14:08 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "Case Closed VIOISS: Violation Filed ", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "108 Gladstone St East Boston MA 02128", "fire_district": 1, "pwd_district": "09", "city_council_district": 1, "police_district": "A7", "neighborhood": "East Boston", "neighborhood_services_district": 1, "ward": "Ward 1", "precinct": 113, "land_usage": "R3", "LOCATION_STREET_NAME": "108 Gladstone St", "LOCATION_ZIPCODE": 2128, "LATITUDE": 42.38914, "LONGITUDE": -71.0047, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.0047, 42.38914 ] } } +, +{ "type": "Feature", "id": 4, "properties": { "CASE_ENQUIRY_ID": 101000826935.0, "OPEN_DT": "04\/24\/2013 12:02:06 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "64 Newfield St West Roxbury MA 02132", "fire_district": 12, "pwd_district": "06", "city_council_district": 6, "police_district": "E5", "neighborhood": "West Roxbury", "neighborhood_services_district": 12, "ward": "Ward 20", "precinct": 2017, "land_usage": "R1", "LOCATION_STREET_NAME": "64 Newfield St", "LOCATION_ZIPCODE": 2132, "LATITUDE": 42.29048, "LONGITUDE": -71.16706, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.16706, 42.29048 ] } } +, +{ "type": "Feature", "id": 5, "properties": { "CASE_ENQUIRY_ID": 101000821482.0, "OPEN_DT": "04\/12\/2013 08:08:29 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "33 Edison Grn Dorchester MA 02125", "fire_district": 7, "pwd_district": "03", "city_council_district": 2, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 5, "ward": "Ward 7", "precinct": 709, "land_usage": "R3", "LOCATION_STREET_NAME": "33 Edison Grn", "LOCATION_ZIPCODE": 2125, "LATITUDE": 42.31951, "LONGITUDE": -71.05852, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.05852, 42.31951 ] } } +, +{ "type": "Feature", "id": 6, "properties": { "CASE_ENQUIRY_ID": 101000818710.0, "OPEN_DT": "04\/08\/2013 12:16:57 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "365 Marlborough St Boston MA 02115", "fire_district": 4, "pwd_district": "1C", "city_council_district": 8, "police_district": "D4", "neighborhood": "Back Bay", "neighborhood_services_district": 14, "ward": "Ward 5", "precinct": 509, "land_usage": "CM", "LOCATION_STREET_NAME": "365 Marlborough St", "LOCATION_ZIPCODE": 2115, "LATITUDE": 42.35084, "LONGITUDE": -71.08706, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.08706, 42.35084 ] } } +, +{ "type": "Feature", "id": 7, "properties": { "CASE_ENQUIRY_ID": 101000797114.0, "OPEN_DT": "03\/06\/2013 11:49:37 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "62 N Beacon St Allston MA 02134", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Allston \/ Brighton", "neighborhood_services_district": 15, "ward": "Ward 21", "precinct": 2106, "land_usage": "R1", "LOCATION_STREET_NAME": "62 N Beacon St", "LOCATION_ZIPCODE": 2134, "LATITUDE": 42.35387, "LONGITUDE": -71.14112, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.14112, 42.35387 ] } } +, +{ "type": "Feature", "id": 8, "properties": { "CASE_ENQUIRY_ID": 101000719207.0, "OPEN_DT": "12\/10\/2012 10:28:19 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "51 Hemenway St Boston MA 02115", "fire_district": 4, "pwd_district": "10A", "city_council_district": 8, "police_district": "D4", "neighborhood": "Fenway \/ Kenmore \/ Audubon Circle \/ Longwood", "neighborhood_services_district": 14, "ward": "Ward 4", "precinct": 407, "land_usage": "CD", "LOCATION_STREET_NAME": "51 Hemenway St", "LOCATION_ZIPCODE": 2115, "LATITUDE": 42.34518, "LONGITUDE": -71.08983, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.08983, 42.34518 ] } } +, +{ "type": "Feature", "id": 9, "properties": { "CASE_ENQUIRY_ID": 101000706871.0, "OPEN_DT": "11\/15\/2012 01:56:24 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "134-131 Tremont St Boston MA 02111", "fire_district": 3, "pwd_district": "1C", "city_council_district": 2, "police_district": "A1", "neighborhood": "Boston", "neighborhood_services_district": 4, "ward": "03", "precinct": 308, "land_usage": "RC", "LOCATION_STREET_NAME": "134-131 Tremont St", "LOCATION_ZIPCODE": 2111, "LATITUDE": 42.355965, "LONGITUDE": -71.062189, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.062189, 42.355965 ] } } +, +{ "type": "Feature", "id": 10, "properties": { "CASE_ENQUIRY_ID": 101000500743.0, "OPEN_DT": "10\/31\/2012 10:23:04 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "249 Washington St Dorchester MA 02121", "fire_district": 7, "pwd_district": "03", "city_council_district": 4, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 8, "ward": "Ward 14", "precinct": 1402, "land_usage": "R3", "LOCATION_STREET_NAME": "249 Washington St", "LOCATION_ZIPCODE": 2121, "LATITUDE": 42.30132, "LONGITUDE": -71.07695, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.07695, 42.30132 ] } } +, +{ "type": "Feature", "id": 11, "properties": { "CASE_ENQUIRY_ID": 101000495255.0, "OPEN_DT": "10\/22\/2012 09:12:25 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "21 Ridgeway Ln Boston MA 02114", "fire_district": 3, "pwd_district": "1B", "city_council_district": 1, "police_district": "A1", "neighborhood": "Beacon Hill", "neighborhood_services_district": 3, "ward": "Ward 3", "precinct": 306, "land_usage": "R1", "LOCATION_STREET_NAME": "21 Ridgeway Ln", "LOCATION_ZIPCODE": 2114, "LATITUDE": 42.36059, "LONGITUDE": -71.06401, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.06401, 42.36059 ] } } +, +{ "type": "Feature", "id": 12, "properties": { "CASE_ENQUIRY_ID": 101000495233.0, "OPEN_DT": "10\/22\/2012 08:54:25 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "136 Chiswick Rd Brighton MA 02135", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Allston \/ Brighton", "neighborhood_services_district": 15, "ward": "Ward 21", "precinct": 2115, "land_usage": "R4", "LOCATION_STREET_NAME": "136 Chiswick Rd", "LOCATION_ZIPCODE": 2135, "LATITUDE": 42.34056, "LONGITUDE": -71.15332, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.15332, 42.34056 ] } } +, +{ "type": "Feature", "id": 13, "properties": { "CASE_ENQUIRY_ID": 101000485811.0, "OPEN_DT": "09\/28\/2012 02:01:04 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "341 Bunker Hill St Charlestown MA 02129", "fire_district": 3, "pwd_district": "1A", "city_council_district": 1, "police_district": "A15", "neighborhood": "Charlestown", "neighborhood_services_district": 2, "ward": "Ward 2", "precinct": 207, "land_usage": "R2", "LOCATION_STREET_NAME": "341 Bunker Hill St", "LOCATION_ZIPCODE": 2129, "LATITUDE": 42.381527, "LONGITUDE": -71.067475, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.067475, 42.381527 ] } } +, +{ "type": "Feature", "id": 14, "properties": { "CASE_ENQUIRY_ID": 101000481938.0, "OPEN_DT": "09\/20\/2012 09:11:27 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "88 Pembroke St Roxbury MA 02118", "fire_district": 4, "pwd_district": "1C", "city_council_district": 2, "police_district": "D4", "neighborhood": "South End", "neighborhood_services_district": 6, "ward": "Ward 4", "precinct": 403, "land_usage": "CD", "LOCATION_STREET_NAME": "88 Pembroke St", "LOCATION_ZIPCODE": 2118, "LATITUDE": 42.34201, "LONGITUDE": -71.07653, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.07653, 42.34201 ] } } +, +{ "type": "Feature", "id": 15, "properties": { "CASE_ENQUIRY_ID": 101000479893.0, "OPEN_DT": "09\/17\/2012 09:04:06 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "22 Worthington St Mission Hill MA 02120", "fire_district": 9, "pwd_district": "10A", "city_council_district": 8, "police_district": "B2", "neighborhood": "Mission Hill", "neighborhood_services_district": 14, "ward": "Ward 10", "precinct": 1002, "land_usage": "R2", "LOCATION_STREET_NAME": "22 Worthington St", "LOCATION_ZIPCODE": 2120, "LATITUDE": 42.334346, "LONGITUDE": -71.102306, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.102306, 42.334346 ] } } +, +{ "type": "Feature", "id": 16, "properties": { "CASE_ENQUIRY_ID": 101000478329.0, "OPEN_DT": "09\/13\/2012 08:29:49 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "95 Normandy St Dorchester MA 02121", "fire_district": 7, "pwd_district": "03", "city_council_district": 4, "police_district": "B2", "neighborhood": "Roxbury", "neighborhood_services_district": 13, "ward": "Ward 14", "precinct": 1401, "land_usage": "RL", "LOCATION_STREET_NAME": "95 Normandy St", "LOCATION_ZIPCODE": 2121, "LATITUDE": 42.309622, "LONGITUDE": -71.080222, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.080222, 42.309622 ] } } +, +{ "type": "Feature", "id": 17, "properties": { "CASE_ENQUIRY_ID": 101000474248.0, "OPEN_DT": "09\/05\/2012 02:46:08 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "43-47 O St South Boston MA 02127", "fire_district": 6, "pwd_district": "05", "city_council_district": 2, "police_district": "C6", "neighborhood": "South Boston \/ South Boston Waterfront", "neighborhood_services_district": 5, "ward": "Ward 6", "precinct": 607, "land_usage": "CM", "LOCATION_STREET_NAME": "43-47 O St", "LOCATION_ZIPCODE": 2127, "LATITUDE": 42.336769, "LONGITUDE": -71.029401, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.029401, 42.336769 ] } } +, +{ "type": "Feature", "id": 18, "properties": { "CASE_ENQUIRY_ID": 101000473919.0, "OPEN_DT": "09\/04\/2012 11:49:51 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "33 Cunningham St Dorchester MA 02125", "fire_district": 7, "pwd_district": "03", "city_council_district": 7, "police_district": "B2", "neighborhood": "Roxbury", "neighborhood_services_district": 13, "ward": "Ward 13", "precinct": 1304, "land_usage": "R3", "LOCATION_STREET_NAME": "33 Cunningham St", "LOCATION_ZIPCODE": 2125, "LATITUDE": 42.31451, "LONGITUDE": -71.07487, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.07487, 42.31451 ] } } +, +{ "type": "Feature", "id": 19, "properties": { "CASE_ENQUIRY_ID": 101000473141.0, "OPEN_DT": "09\/01\/2012 07:33:09 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "7 Phillips St Boston MA 02114", "fire_district": 3, "pwd_district": "1B", "city_council_district": 8, "police_district": "A1", "neighborhood": "Beacon Hill", "neighborhood_services_district": 14, "ward": "Ward 5", "precinct": 504, "land_usage": "CM", "LOCATION_STREET_NAME": "7 Phillips St", "LOCATION_ZIPCODE": 2114, "LATITUDE": 42.3604, "LONGITUDE": -71.06677, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.06677, 42.3604 ] } } +, +{ "type": "Feature", "id": 20, "properties": { "CASE_ENQUIRY_ID": 101000473007.0, "OPEN_DT": "09\/01\/2012 11:58:58 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "8 Hall St Jamaica Plain MA 02130", "fire_district": 9, "pwd_district": "02", "city_council_district": 6, "police_district": "E13", "neighborhood": "Jamaica Plain", "neighborhood_services_district": 11, "ward": "Ward 11", "precinct": 1110, "land_usage": "CM", "LOCATION_STREET_NAME": "8 Hall St", "LOCATION_ZIPCODE": 2130, "LATITUDE": 42.30497, "LONGITUDE": -71.11428, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.11428, 42.30497 ] } } +, +{ "type": "Feature", "id": 21, "properties": { "CASE_ENQUIRY_ID": 101000472663.0, "OPEN_DT": "08\/31\/2012 02:13:59 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "45 Hemenway St Boston MA 02115", "fire_district": 4, "pwd_district": "10A", "city_council_district": 8, "police_district": "D4", "neighborhood": "Fenway \/ Kenmore \/ Audubon Circle \/ Longwood", "neighborhood_services_district": 14, "ward": "Ward 4", "precinct": 407, "land_usage": "CM", "LOCATION_STREET_NAME": "45 Hemenway St", "LOCATION_ZIPCODE": 2115, "LATITUDE": 42.34537, "LONGITUDE": -71.08978, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.08978, 42.34537 ] } } +, +{ "type": "Feature", "id": 22, "properties": { "CASE_ENQUIRY_ID": 101000472499.0, "OPEN_DT": "08\/31\/2012 11:08:41 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "4 Goodwin Pl Boston MA 02114", "fire_district": 3, "pwd_district": "1B", "city_council_district": 8, "police_district": "A1", "neighborhood": "Beacon Hill", "neighborhood_services_district": 14, "ward": "Ward 5", "precinct": 504, "land_usage": "CD", "LOCATION_STREET_NAME": "4 Goodwin Pl", "LOCATION_ZIPCODE": 2114, "LATITUDE": 42.35988, "LONGITUDE": -71.06918, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.06918, 42.35988 ] } } +, +{ "type": "Feature", "id": 23, "properties": { "CASE_ENQUIRY_ID": 101000472151.0, "OPEN_DT": "08\/30\/2012 05:52:52 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "81 Charles St Boston MA 02114", "fire_district": 3, "pwd_district": "1B", "city_council_district": 8, "police_district": "A1", "neighborhood": "Beacon Hill", "neighborhood_services_district": 14, "ward": "Ward 5", "precinct": 511, "land_usage": "RC", "LOCATION_STREET_NAME": "81 Charles St", "LOCATION_ZIPCODE": 2114, "LATITUDE": 42.35843, "LONGITUDE": -71.07045, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.07045, 42.35843 ] } } +, +{ "type": "Feature", "id": 24, "properties": { "CASE_ENQUIRY_ID": 101000471889.0, "OPEN_DT": "08\/30\/2012 11:28:19 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "47 Revere St Boston MA 02114", "fire_district": 3, "pwd_district": "1B", "city_council_district": 8, "police_district": "A1", "neighborhood": "Beacon Hill", "neighborhood_services_district": 14, "ward": "Ward 5", "precinct": 504, "land_usage": "A", "LOCATION_STREET_NAME": "47 Revere St", "LOCATION_ZIPCODE": 2114, "LATITUDE": 42.35965, "LONGITUDE": -71.06814, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.06814, 42.35965 ] } } +, +{ "type": "Feature", "id": 25, "properties": { "CASE_ENQUIRY_ID": 101000471816.0, "OPEN_DT": "08\/30\/2012 10:22:44 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "101 Etna St Brighton MA 02135", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Allston \/ Brighton", "neighborhood_services_district": 15, "ward": "Ward 22", "precinct": 2203, "land_usage": "R2", "LOCATION_STREET_NAME": "101 Etna St", "LOCATION_ZIPCODE": 2135, "LATITUDE": 42.352373, "LONGITUDE": -71.148504, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.148504, 42.352373 ] } } +, +{ "type": "Feature", "id": 26, "properties": { "CASE_ENQUIRY_ID": 101000471716.0, "OPEN_DT": "08\/30\/2012 08:55:07 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "1 City Hall Plz Boston MA 02108", "fire_district": 3, "pwd_district": "1B", "city_council_district": 1, "police_district": "A1", "neighborhood": "Downtown \/ Financial District", "neighborhood_services_district": 3, "ward": "03", "precinct": 306, "land_usage": "E", "LOCATION_STREET_NAME": "1 City Hall Plz", "LOCATION_ZIPCODE": 2108, "LATITUDE": 42.36042, "LONGITUDE": -71.058274, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.058274, 42.36042 ] } } +, +{ "type": "Feature", "id": 27, "properties": { "CASE_ENQUIRY_ID": 101000471300.0, "OPEN_DT": "08\/29\/2012 01:17:14 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "9 Greenwich Park Roxbury MA 02118", "fire_district": 4, "pwd_district": "1C", "city_council_district": 7, "police_district": "D4", "neighborhood": "South End", "neighborhood_services_district": 6, "ward": "Ward 4", "precinct": 404, "land_usage": "CM", "LOCATION_STREET_NAME": "9 Greenwich Park", "LOCATION_ZIPCODE": 2118, "LATITUDE": 42.342561, "LONGITUDE": -71.080109, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.080109, 42.342561 ] } } +, +{ "type": "Feature", "id": 28, "properties": { "CASE_ENQUIRY_ID": 101000470939.0, "OPEN_DT": "08\/29\/2012 08:25:31 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "20-22 Spaulding St Dorchester MA 02122", "fire_district": 8, "pwd_district": "07", "city_council_district": 3, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 7, "ward": "Ward 16", "precinct": 1607, "land_usage": "R2", "LOCATION_STREET_NAME": "20-22 Spaulding St", "LOCATION_ZIPCODE": 2122, "LATITUDE": 42.292183, "LONGITUDE": -71.054972, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.054972, 42.292183 ] } } +, +{ "type": "Feature", "id": 29, "properties": { "CASE_ENQUIRY_ID": 101000470705.0, "OPEN_DT": "08\/28\/2012 06:08:11 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "4 Downer Ct Dorchester MA 02125", "fire_district": 7, "pwd_district": "03", "city_council_district": 3, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 8, "ward": "Ward 15", "precinct": 1504, "land_usage": "RL", "LOCATION_STREET_NAME": "4 Downer Ct", "LOCATION_ZIPCODE": 2125, "LATITUDE": 42.309613, "LONGITUDE": -71.064377, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.064377, 42.309613 ] } } +, +{ "type": "Feature", "id": 30, "properties": { "CASE_ENQUIRY_ID": 101000470689.0, "OPEN_DT": "08\/28\/2012 06:07:42 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "81-83 Millet St Dorchester MA 02124", "fire_district": 8, "pwd_district": "07", "city_council_district": 4, "police_district": "B3", "neighborhood": "Dorchester", "neighborhood_services_district": 9, "ward": "Ward 17", "precinct": 1703, "land_usage": "R2", "LOCATION_STREET_NAME": "81-83 Millet St", "LOCATION_ZIPCODE": 2124, "LATITUDE": 42.29371, "LONGITUDE": -71.07717, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.07717, 42.29371 ] } } +, +{ "type": "Feature", "id": 31, "properties": { "CASE_ENQUIRY_ID": 101000470280.0, "OPEN_DT": "08\/27\/2012 11:29:34 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "INTERSECTION of A St & Binford St Boston MA ", "fire_district": 6, "pwd_district": "05", "city_council_district": 2, "police_district": "C6", "neighborhood": "South Boston \/ South Boston Waterfront", "neighborhood_services_district": 5, "ward": "Ward 6", "precinct": 601, "land_usage": "", "LOCATION_STREET_NAME": "INTERSECTION A St & Binford St", "LOCATION_ZIPCODE": null, "LATITUDE": 42.344837, "LONGITUDE": -71.053148, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.053148, 42.344837 ] } } +, +{ "type": "Feature", "id": 32, "properties": { "CASE_ENQUIRY_ID": 101000470244.0, "OPEN_DT": "08\/27\/2012 10:58:55 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "30 Glenville Ave Allston MA 02134", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Allston \/ Brighton", "neighborhood_services_district": 15, "ward": "Ward 21", "precinct": 2105, "land_usage": "CD", "LOCATION_STREET_NAME": "30 Glenville Ave", "LOCATION_ZIPCODE": 2134, "LATITUDE": 42.3503, "LONGITUDE": -71.13293, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.13293, 42.3503 ] } } +, +{ "type": "Feature", "id": 33, "properties": { "CASE_ENQUIRY_ID": 101000470238.0, "OPEN_DT": "08\/27\/2012 10:52:01 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "8 Greenwich Park Roxbury MA 02118", "fire_district": 4, "pwd_district": "1C", "city_council_district": 7, "police_district": "D4", "neighborhood": "South End", "neighborhood_services_district": 6, "ward": "Ward 4", "precinct": 404, "land_usage": "CM", "LOCATION_STREET_NAME": "8 Greenwich Park", "LOCATION_ZIPCODE": 2118, "LATITUDE": 42.34229, "LONGITUDE": -71.08036, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.08036, 42.34229 ] } } +, +{ "type": "Feature", "id": 34, "properties": { "CASE_ENQUIRY_ID": 101000469952.0, "OPEN_DT": "08\/26\/2012 06:22:11 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "26 Chestnut St Boston MA 02108", "fire_district": 3, "pwd_district": "1B", "city_council_district": 8, "police_district": "A1", "neighborhood": "Beacon Hill", "neighborhood_services_district": 14, "ward": "Ward 5", "precinct": 503, "land_usage": "A", "LOCATION_STREET_NAME": "26 Chestnut St", "LOCATION_ZIPCODE": 2108, "LATITUDE": 42.357391, "LONGITUDE": -71.06746, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.06746, 42.357391 ] } } +, +{ "type": "Feature", "id": 35, "properties": { "CASE_ENQUIRY_ID": 101000469783.0, "OPEN_DT": "08\/25\/2012 10:50:52 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "46 Fenway Boston MA 02215", "fire_district": 4, "pwd_district": "10A", "city_council_district": 8, "police_district": "D4", "neighborhood": "Fenway \/ Kenmore \/ Audubon Circle \/ Longwood", "neighborhood_services_district": 14, "ward": "Ward 4", "precinct": 407, "land_usage": "CM", "LOCATION_STREET_NAME": "46 Fenway", "LOCATION_ZIPCODE": 2215, "LATITUDE": 42.34505, "LONGITUDE": -71.09033, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.09033, 42.34505 ] } } +, +{ "type": "Feature", "id": 36, "properties": { "CASE_ENQUIRY_ID": 101000469360.0, "OPEN_DT": "08\/24\/2012 11:17:19 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "28 Haviland St Boston MA 02115", "fire_district": 4, "pwd_district": "10A", "city_council_district": 8, "police_district": "D4", "neighborhood": "Fenway \/ Kenmore \/ Audubon Circle \/ Longwood", "neighborhood_services_district": 14, "ward": "Ward 4", "precinct": 406, "land_usage": "RC", "LOCATION_STREET_NAME": "28 Haviland St", "LOCATION_ZIPCODE": 2115, "LATITUDE": 42.346115, "LONGITUDE": -71.089022, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.089022, 42.346115 ] } } +, +{ "type": "Feature", "id": 37, "properties": { "CASE_ENQUIRY_ID": 101000469213.0, "OPEN_DT": "08\/24\/2012 09:14:42 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "18 Garden St Boston MA 02114", "fire_district": 3, "pwd_district": "1B", "city_council_district": 8, "police_district": "A1", "neighborhood": "Beacon Hill", "neighborhood_services_district": 14, "ward": "Ward 5", "precinct": 504, "land_usage": "CD", "LOCATION_STREET_NAME": "18 Garden St", "LOCATION_ZIPCODE": 2114, "LATITUDE": 42.36074, "LONGITUDE": -71.06677, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.06677, 42.36074 ] } } +, +{ "type": "Feature", "id": 38, "properties": { "CASE_ENQUIRY_ID": 101000468692.0, "OPEN_DT": "08\/23\/2012 10:25:19 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "INTERSECTION of W Cedar St & Pinckney St Boston MA ", "fire_district": 3, "pwd_district": "1B", "city_council_district": 8, "police_district": "A1", "neighborhood": "Beacon Hill", "neighborhood_services_district": 14, "ward": "Ward 5", "precinct": 503, "land_usage": "", "LOCATION_STREET_NAME": "INTERSECTION W Cedar St & Pinckney St", "LOCATION_ZIPCODE": null, "LATITUDE": 42.34373, "LONGITUDE": -71.141562, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.141562, 42.34373 ] } } +, +{ "type": "Feature", "id": 39, "properties": { "CASE_ENQUIRY_ID": 101000468181.0, "OPEN_DT": "08\/22\/2012 11:07:33 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "26 Allston St Allston MA 02134", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Allston \/ Brighton", "neighborhood_services_district": 15, "ward": "Ward 21", "precinct": 2106, "land_usage": "A", "LOCATION_STREET_NAME": "26 Allston St", "LOCATION_ZIPCODE": 2134, "LATITUDE": 42.35222, "LONGITUDE": -71.13492, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.13492, 42.35222 ] } } +, +{ "type": "Feature", "id": 40, "properties": { "CASE_ENQUIRY_ID": 101000468168.0, "OPEN_DT": "08\/22\/2012 11:07:18 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": " ", "fire_district": null, "pwd_district": " ", "city_council_district": null, "police_district": " ", "neighborhood": " ", "neighborhood_services_district": null, "ward": " ", "precinct": null, "land_usage": " ", "LOCATION_STREET_NAME": "", "LOCATION_ZIPCODE": null, "LATITUDE": 42.3594, "LONGITUDE": -71.0587, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.0587, 42.3594 ] } } +, +{ "type": "Feature", "id": 41, "properties": { "CASE_ENQUIRY_ID": 101000468162.0, "OPEN_DT": "08\/22\/2012 11:07:09 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "41 Bakersfield St Dorchester MA 02125", "fire_district": 7, "pwd_district": "03", "city_council_district": 3, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 7, "ward": "Ward 13", "precinct": 1306, "land_usage": "R1", "LOCATION_STREET_NAME": "41 Bakersfield St", "LOCATION_ZIPCODE": 2125, "LATITUDE": 42.31666, "LONGITUDE": -71.06125, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.06125, 42.31666 ] } } +, +{ "type": "Feature", "id": 42, "properties": { "CASE_ENQUIRY_ID": 101000468152.0, "OPEN_DT": "08\/22\/2012 11:07:00 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "36 Rockvale Cir Jamaica Plain MA 02130", "fire_district": 9, "pwd_district": "02", "city_council_district": 6, "police_district": "E13", "neighborhood": "Jamaica Plain", "neighborhood_services_district": 11, "ward": "Ward 11", "precinct": 1107, "land_usage": "R3", "LOCATION_STREET_NAME": "36 Rockvale Cir", "LOCATION_ZIPCODE": 2130, "LATITUDE": 42.30714, "LONGITUDE": -71.10473, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.10473, 42.30714 ] } } +, +{ "type": "Feature", "id": 43, "properties": { "CASE_ENQUIRY_ID": 101000467774.0, "OPEN_DT": "08\/21\/2012 03:38:36 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "75 Sydney St Dorchester MA 02125", "fire_district": 7, "pwd_district": "03", "city_council_district": 3, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 7, "ward": "Ward 13", "precinct": 1310, "land_usage": "E", "LOCATION_STREET_NAME": "75 Sydney St", "LOCATION_ZIPCODE": 2125, "LATITUDE": 42.3141, "LONGITUDE": -71.05252, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.05252, 42.3141 ] } } +, +{ "type": "Feature", "id": 44, "properties": { "CASE_ENQUIRY_ID": 101000467567.0, "OPEN_DT": "08\/21\/2012 11:34:15 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "40-42 Cedar Lane Way Boston MA 02114", "fire_district": 3, "pwd_district": "1B", "city_council_district": 8, "police_district": "A1", "neighborhood": "Beacon Hill", "neighborhood_services_district": 14, "ward": "Ward 5", "precinct": 511, "land_usage": "R2", "LOCATION_STREET_NAME": "40-42 Cedar Lane Way", "LOCATION_ZIPCODE": 2114, "LATITUDE": 42.358333, "LONGITUDE": -71.07017, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.07017, 42.358333 ] } } +, +{ "type": "Feature", "id": 45, "properties": { "CASE_ENQUIRY_ID": 101000467084.0, "OPEN_DT": "08\/20\/2012 02:16:19 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "5110 Washington St West Roxbury MA 02132", "fire_district": 12, "pwd_district": "06", "city_council_district": 6, "police_district": "E5", "neighborhood": "West Roxbury", "neighborhood_services_district": 10, "ward": "Ward 20", "precinct": 2003, "land_usage": "A", "LOCATION_STREET_NAME": "5110 Washington St", "LOCATION_ZIPCODE": 2132, "LATITUDE": 42.26355, "LONGITUDE": -71.15403, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.15403, 42.26355 ] } } +, +{ "type": "Feature", "id": 46, "properties": { "CASE_ENQUIRY_ID": 101000466977.0, "OPEN_DT": "08\/20\/2012 11:58:28 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "43 Hemenway St Boston MA 02115", "fire_district": 4, "pwd_district": "10A", "city_council_district": 8, "police_district": "D4", "neighborhood": "Fenway \/ Kenmore \/ Audubon Circle \/ Longwood", "neighborhood_services_district": 14, "ward": "Ward 4", "precinct": 407, "land_usage": "R4", "LOCATION_STREET_NAME": "43 Hemenway St", "LOCATION_ZIPCODE": 2115, "LATITUDE": 42.34542, "LONGITUDE": -71.08977, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.08977, 42.34542 ] } } +, +{ "type": "Feature", "id": 47, "properties": { "CASE_ENQUIRY_ID": 101000465542.0, "OPEN_DT": "08\/16\/2012 12:26:29 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "26 Fenway Boston MA 02215", "fire_district": 4, "pwd_district": "10A", "city_council_district": 8, "police_district": "D4", "neighborhood": "Boston", "neighborhood_services_district": 14, "ward": "04", "precinct": 407, "land_usage": "E", "LOCATION_STREET_NAME": "26 Fenway ", "LOCATION_ZIPCODE": 2215, "LATITUDE": 42.3458, "LONGITUDE": -71.09009, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.09009, 42.3458 ] } } +, +{ "type": "Feature", "id": 48, "properties": { "CASE_ENQUIRY_ID": 101000465516.0, "OPEN_DT": "08\/16\/2012 11:56:26 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "76 Hancock St Dorchester MA 02125", "fire_district": 7, "pwd_district": "03", "city_council_district": 7, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 13, "ward": "Ward 13", "precinct": 1305, "land_usage": "R3", "LOCATION_STREET_NAME": "76 Hancock St", "LOCATION_ZIPCODE": 2125, "LATITUDE": 42.31314, "LONGITUDE": -71.06469, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.06469, 42.31314 ] } } +, +{ "type": "Feature", "id": 49, "properties": { "CASE_ENQUIRY_ID": 101000463964.0, "OPEN_DT": "08\/13\/2012 03:12:27 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "0 N Beacon St Allston MA 02134", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Allston", "neighborhood_services_district": 15, "ward": "21", "precinct": 2106, "land_usage": "C", "LOCATION_STREET_NAME": "0 N Beacon St", "LOCATION_ZIPCODE": 2134, "LATITUDE": 42.35436, "LONGITUDE": -71.14315, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.14315, 42.35436 ] } } +, +{ "type": "Feature", "id": 50, "properties": { "CASE_ENQUIRY_ID": 101000462578.0, "OPEN_DT": "08\/09\/2012 04:17:03 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "5 Symphony Rd Boston MA 02115", "fire_district": 4, "pwd_district": "10A", "city_council_district": 8, "police_district": "D4", "neighborhood": "Fenway \/ Kenmore \/ Audubon Circle \/ Longwood", "neighborhood_services_district": 14, "ward": "Ward 4", "precinct": 407, "land_usage": "R4", "LOCATION_STREET_NAME": "5 Symphony Rd", "LOCATION_ZIPCODE": 2115, "LATITUDE": 42.34288, "LONGITUDE": -71.08694, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.08694, 42.34288 ] } } +, +{ "type": "Feature", "id": 51, "properties": { "CASE_ENQUIRY_ID": 101000462255.0, "OPEN_DT": "08\/09\/2012 09:31:04 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "26 Hemenway St Boston MA 02115", "fire_district": 4, "pwd_district": "10A", "city_council_district": 8, "police_district": "D4", "neighborhood": "Fenway \/ Kenmore \/ Audubon Circle \/ Longwood", "neighborhood_services_district": 14, "ward": "Ward 4", "precinct": 406, "land_usage": "A", "LOCATION_STREET_NAME": "26 Hemenway St", "LOCATION_ZIPCODE": 2115, "LATITUDE": 42.34591, "LONGITUDE": -71.08913, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.08913, 42.34591 ] } } +, +{ "type": "Feature", "id": 52, "properties": { "CASE_ENQUIRY_ID": 101000461525.0, "OPEN_DT": "08\/07\/2012 03:07:37 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "137 Beacon St Boston MA 02116", "fire_district": 4, "pwd_district": "1C", "city_council_district": 8, "police_district": "D4", "neighborhood": "Boston", "neighborhood_services_district": 14, "ward": "05", "precinct": 506, "land_usage": "E", "LOCATION_STREET_NAME": "137 Beacon St", "LOCATION_ZIPCODE": 2116, "LATITUDE": 42.35473, "LONGITUDE": -71.07411, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.07411, 42.35473 ] } } +, +{ "type": "Feature", "id": 53, "properties": { "CASE_ENQUIRY_ID": 101000460940.0, "OPEN_DT": "08\/06\/2012 02:55:26 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "193 Norfolk St Dorchester MA 02124", "fire_district": 8, "pwd_district": "07", "city_council_district": 4, "police_district": "B3", "neighborhood": "Greater Mattapan", "neighborhood_services_district": 9, "ward": "Ward 17", "precinct": 1707, "land_usage": "R2", "LOCATION_STREET_NAME": "193 Norfolk St", "LOCATION_ZIPCODE": 2124, "LATITUDE": 42.28631, "LONGITUDE": -71.07988, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.07988, 42.28631 ] } } +, +{ "type": "Feature", "id": 54, "properties": { "CASE_ENQUIRY_ID": 101000458828.0, "OPEN_DT": "08\/01\/2012 02:22:31 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "25 Rill St Dorchester MA 02125", "fire_district": 7, "pwd_district": "03", "city_council_district": 3, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 8, "ward": "Ward 15", "precinct": 1504, "land_usage": "R3", "LOCATION_STREET_NAME": "25 Rill St", "LOCATION_ZIPCODE": 2125, "LATITUDE": 42.3118, "LONGITUDE": -71.06533, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.06533, 42.3118 ] } } +, +{ "type": "Feature", "id": 55, "properties": { "CASE_ENQUIRY_ID": 101000458518.0, "OPEN_DT": "08\/01\/2012 09:05:46 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "51 Park Vale Ave Allston MA 02134", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Allston \/ Brighton", "neighborhood_services_district": 15, "ward": "Ward 21", "precinct": 2105, "land_usage": "R4", "LOCATION_STREET_NAME": "51 Park Vale Ave", "LOCATION_ZIPCODE": 2134, "LATITUDE": 42.35265, "LONGITUDE": -71.13296, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.13296, 42.35265 ] } } +, +{ "type": "Feature", "id": 56, "properties": { "CASE_ENQUIRY_ID": 101000458512.0, "OPEN_DT": "08\/01\/2012 08:58:58 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "55 Hemenway St Boston MA 02115", "fire_district": 4, "pwd_district": "10A", "city_council_district": 8, "police_district": "D4", "neighborhood": "Fenway \/ Kenmore \/ Audubon Circle \/ Longwood", "neighborhood_services_district": 14, "ward": "Ward 4", "precinct": 407, "land_usage": "R3", "LOCATION_STREET_NAME": "55 Hemenway St", "LOCATION_ZIPCODE": 2115, "LATITUDE": 42.34505, "LONGITUDE": -71.08987, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.08987, 42.34505 ] } } +, +{ "type": "Feature", "id": 57, "properties": { "CASE_ENQUIRY_ID": 101000450769.0, "OPEN_DT": "07\/17\/2012 09:37:29 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "638 Tremont St Roxbury MA 02118", "fire_district": 4, "pwd_district": "1C", "city_council_district": 2, "police_district": "D4", "neighborhood": "South End", "neighborhood_services_district": 6, "ward": "Ward 9", "precinct": 901, "land_usage": "EA", "LOCATION_STREET_NAME": "638 Tremont St", "LOCATION_ZIPCODE": 2118, "LATITUDE": 42.34205, "LONGITUDE": -71.0746, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.0746, 42.34205 ] } } +, +{ "type": "Feature", "id": 58, "properties": { "CASE_ENQUIRY_ID": 101000446381.0, "OPEN_DT": "07\/07\/2012 04:42:25 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "82 Winthrop St Roxbury MA 02119", "fire_district": 7, "pwd_district": "10B", "city_council_district": 7, "police_district": "B2", "neighborhood": "Roxbury", "neighborhood_services_district": 13, "ward": "Ward 8", "precinct": 807, "land_usage": "R3", "LOCATION_STREET_NAME": "82 Winthrop St", "LOCATION_ZIPCODE": 2119, "LATITUDE": 42.3247, "LONGITUDE": -71.07814, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.07814, 42.3247 ] } } +, +{ "type": "Feature", "id": 59, "properties": { "CASE_ENQUIRY_ID": 101000444093.0, "OPEN_DT": "07\/02\/2012 12:06:59 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "21 Wallingford Rd Brighton MA 02135", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Allston \/ Brighton", "neighborhood_services_district": 15, "ward": "Ward 21", "precinct": 2113, "land_usage": "R2", "LOCATION_STREET_NAME": "21 Wallingford Rd", "LOCATION_ZIPCODE": 2135, "LATITUDE": 42.34174, "LONGITUDE": -71.15129, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.15129, 42.34174 ] } } +, +{ "type": "Feature", "id": 60, "properties": { "CASE_ENQUIRY_ID": 101000444090.0, "OPEN_DT": "07\/02\/2012 12:04:30 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "73-75 Causeway St Boston MA 02114", "fire_district": 3, "pwd_district": "1B", "city_council_district": 1, "police_district": "A1", "neighborhood": "Downtown \/ Financial District", "neighborhood_services_district": 3, "ward": "Ward 3", "precinct": 306, "land_usage": "CL", "LOCATION_STREET_NAME": "73-75 Causeway St", "LOCATION_ZIPCODE": 2114, "LATITUDE": 42.364522, "LONGITUDE": -71.062535, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.062535, 42.364522 ] } } +, +{ "type": "Feature", "id": 61, "properties": { "CASE_ENQUIRY_ID": 101000443948.0, "OPEN_DT": "07\/02\/2012 10:14:07 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "83 Wensley St Mission Hill MA 02120", "fire_district": 9, "pwd_district": "10A", "city_council_district": 8, "police_district": "B2", "neighborhood": "Mission Hill", "neighborhood_services_district": 14, "ward": "Ward 10", "precinct": 1005, "land_usage": "R3", "LOCATION_STREET_NAME": "83 Wensley St", "LOCATION_ZIPCODE": 2120, "LATITUDE": 42.32753, "LONGITUDE": -71.10367, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.10367, 42.32753 ] } } +, +{ "type": "Feature", "id": 62, "properties": { "CASE_ENQUIRY_ID": 101000443187.0, "OPEN_DT": "06\/29\/2012 11:42:38 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": " ", "fire_district": null, "pwd_district": " ", "city_council_district": null, "police_district": " ", "neighborhood": " ", "neighborhood_services_district": null, "ward": " ", "precinct": null, "land_usage": " ", "LOCATION_STREET_NAME": "", "LOCATION_ZIPCODE": null, "LATITUDE": 42.3594, "LONGITUDE": -71.0587, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.0587, 42.3594 ] } } +, +{ "type": "Feature", "id": 63, "properties": { "CASE_ENQUIRY_ID": 101000441697.0, "OPEN_DT": "06\/26\/2012 02:57:20 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "91 Gordon St Brighton MA 02135", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Allston \/ Brighton", "neighborhood_services_district": 15, "ward": "Ward 21", "precinct": 2109, "land_usage": "A", "LOCATION_STREET_NAME": "91 Gordon St", "LOCATION_ZIPCODE": 2135, "LATITUDE": 42.349718, "LONGITUDE": -71.140242, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.140242, 42.349718 ] } } +, +{ "type": "Feature", "id": 64, "properties": { "CASE_ENQUIRY_ID": 101000438754.0, "OPEN_DT": "06\/19\/2012 02:42:25 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "109-111 Charter St Boston MA 02113", "fire_district": 3, "pwd_district": "1B", "city_council_district": 1, "police_district": "A1", "neighborhood": "Downtown \/ Financial District", "neighborhood_services_district": 3, "ward": "Ward 3", "precinct": 302, "land_usage": "R4", "LOCATION_STREET_NAME": "109-111 Charter St", "LOCATION_ZIPCODE": 2113, "LATITUDE": 42.36811, "LONGITUDE": -71.05628, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.05628, 42.36811 ] } } +, +{ "type": "Feature", "id": 65, "properties": { "CASE_ENQUIRY_ID": 101000438751.0, "OPEN_DT": "06\/19\/2012 02:38:59 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "19 Wallingford Rd Brighton MA 02135", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Allston \/ Brighton", "neighborhood_services_district": 15, "ward": "Ward 21", "precinct": 2113, "land_usage": "R1", "LOCATION_STREET_NAME": "19 Wallingford Rd", "LOCATION_ZIPCODE": 2135, "LATITUDE": 42.34165, "LONGITUDE": -71.15131, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.15131, 42.34165 ] } } +, +{ "type": "Feature", "id": 66, "properties": { "CASE_ENQUIRY_ID": 101000438744.0, "OPEN_DT": "06\/19\/2012 02:32:10 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "559-569 Washington St Brighton MA 02135", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Allston \/ Brighton", "neighborhood_services_district": 15, "ward": "Ward 22", "precinct": 2207, "land_usage": "C", "LOCATION_STREET_NAME": "559-569 Washington St", "LOCATION_ZIPCODE": 2135, "LATITUDE": 42.34991, "LONGITUDE": -71.1643, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.1643, 42.34991 ] } } +, +{ "type": "Feature", "id": 67, "properties": { "CASE_ENQUIRY_ID": 101000437438.0, "OPEN_DT": "06\/15\/2012 03:42:16 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "1486-1490 Tremont St Mission Hill MA 02120", "fire_district": 9, "pwd_district": "10A", "city_council_district": 8, "police_district": "B2", "neighborhood": "Mission Hill", "neighborhood_services_district": 14, "ward": "Ward 10", "precinct": 1002, "land_usage": "I", "LOCATION_STREET_NAME": "1486-1490 Tremont St", "LOCATION_ZIPCODE": 2120, "LATITUDE": 42.331767, "LONGITUDE": -71.098849, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.098849, 42.331767 ] } } +, +{ "type": "Feature", "id": 68, "properties": { "CASE_ENQUIRY_ID": 101000435628.0, "OPEN_DT": "06\/12\/2012 01:21:49 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "19 Wallingford Rd Brighton MA 02135", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Allston \/ Brighton", "neighborhood_services_district": 15, "ward": "Ward 21", "precinct": 2113, "land_usage": "R1", "LOCATION_STREET_NAME": "19 Wallingford Rd", "LOCATION_ZIPCODE": 2135, "LATITUDE": 42.34165, "LONGITUDE": -71.15131, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.15131, 42.34165 ] } } +, +{ "type": "Feature", "id": 69, "properties": { "CASE_ENQUIRY_ID": 101000431757.0, "OPEN_DT": "06\/04\/2012 11:19:09 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "4 Beale St Dorchester MA 02124", "fire_district": 8, "pwd_district": "07", "city_council_district": 3, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 7, "ward": "Ward 16", "precinct": 1608, "land_usage": "RC", "LOCATION_STREET_NAME": "4 Beale St", "LOCATION_ZIPCODE": 2124, "LATITUDE": 42.28318, "LONGITUDE": -71.06475, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.06475, 42.28318 ] } } +, +{ "type": "Feature", "id": 70, "properties": { "CASE_ENQUIRY_ID": 101000427475.0, "OPEN_DT": "05\/25\/2012 10:11:09 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "215 Commonwealth Ave Boston MA 02116", "fire_district": 4, "pwd_district": "1C", "city_council_district": 8, "police_district": "D4", "neighborhood": "Back Bay", "neighborhood_services_district": 14, "ward": "Ward 5", "precinct": 508, "land_usage": "CM", "LOCATION_STREET_NAME": "215 Commonwealth Ave", "LOCATION_ZIPCODE": 2116, "LATITUDE": 42.351406, "LONGITUDE": -71.081636, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.081636, 42.351406 ] } } +, +{ "type": "Feature", "id": 71, "properties": { "CASE_ENQUIRY_ID": 101000425812.0, "OPEN_DT": "05\/22\/2012 12:06:25 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "61 Burrell St Roxbury MA 02119", "fire_district": 7, "pwd_district": "03", "city_council_district": 7, "police_district": "B2", "neighborhood": "Roxbury", "neighborhood_services_district": 13, "ward": "Ward 8", "precinct": 806, "land_usage": "C", "LOCATION_STREET_NAME": "61 Burrell St", "LOCATION_ZIPCODE": 2119, "LATITUDE": 42.323123, "LONGITUDE": -71.069585, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.069585, 42.323123 ] } } +, +{ "type": "Feature", "id": 72, "properties": { "CASE_ENQUIRY_ID": 101000425642.0, "OPEN_DT": "05\/22\/2012 07:39:01 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "34 Sparhawk St Brighton MA 02135", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Allston \/ Brighton", "neighborhood_services_district": 15, "ward": "Ward 22", "precinct": 2203, "land_usage": "E", "LOCATION_STREET_NAME": "34 Sparhawk St", "LOCATION_ZIPCODE": 2135, "LATITUDE": 42.351339, "LONGITUDE": -71.151577, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.151577, 42.351339 ] } } +, +{ "type": "Feature", "id": 73, "properties": { "CASE_ENQUIRY_ID": 101000422066.0, "OPEN_DT": "05\/15\/2012 08:59:46 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "9 Wilbur St Dorchester MA 02125", "fire_district": 7, "pwd_district": "03", "city_council_district": 7, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 13, "ward": "Ward 13", "precinct": 1305, "land_usage": "R2", "LOCATION_STREET_NAME": "9 Wilbur St", "LOCATION_ZIPCODE": 2125, "LATITUDE": 42.31552, "LONGITUDE": -71.06563, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.06563, 42.31552 ] } } +, +{ "type": "Feature", "id": 74, "properties": { "CASE_ENQUIRY_ID": 101000419156.0, "OPEN_DT": "05\/09\/2012 09:44:57 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "240 Marlborough St Boston MA 02116", "fire_district": 4, "pwd_district": "1C", "city_council_district": 8, "police_district": "D4", "neighborhood": "Back Bay", "neighborhood_services_district": 14, "ward": "Ward 5", "precinct": 508, "land_usage": "CM", "LOCATION_STREET_NAME": "240 Marlborough St", "LOCATION_ZIPCODE": 2116, "LATITUDE": 42.35179, "LONGITUDE": -71.08179, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.08179, 42.35179 ] } } +, +{ "type": "Feature", "id": 75, "properties": { "CASE_ENQUIRY_ID": 101000416699.0, "OPEN_DT": "05\/03\/2012 01:44:34 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "1027 Commonwealth Ave Boston MA 02215", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Allston \/ Brighton", "neighborhood_services_district": 14, "ward": "Ward 21", "precinct": 2103, "land_usage": "RC", "LOCATION_STREET_NAME": "1027 Commonwealth Ave", "LOCATION_ZIPCODE": 2215, "LATITUDE": 42.352231, "LONGITUDE": -71.121594, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.121594, 42.352231 ] } } +, +{ "type": "Feature", "id": 76, "properties": { "CASE_ENQUIRY_ID": 101000399100.0, "OPEN_DT": "03\/23\/2012 07:05:50 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "37 Hendry St Dorchester MA 02125", "fire_district": 7, "pwd_district": "03", "city_council_district": 3, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 8, "ward": "Ward 15", "precinct": 1504, "land_usage": "R3", "LOCATION_STREET_NAME": "37 Hendry St", "LOCATION_ZIPCODE": 2125, "LATITUDE": 42.31009, "LONGITUDE": -71.06576, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.06576, 42.31009 ] } } +, +{ "type": "Feature", "id": 77, "properties": { "CASE_ENQUIRY_ID": 101000390720.0, "OPEN_DT": "03\/05\/2012 08:21:47 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "5 Ayr Rd Brighton MA 02135", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Allston \/ Brighton", "neighborhood_services_district": 15, "ward": "Ward 21", "precinct": 2114, "land_usage": "R2", "LOCATION_STREET_NAME": "5 Ayr Rd", "LOCATION_ZIPCODE": 2135, "LATITUDE": 42.33686, "LONGITUDE": -71.149, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.149, 42.33686 ] } } +, +{ "type": "Feature", "id": 78, "properties": { "CASE_ENQUIRY_ID": 101000386317.0, "OPEN_DT": "02\/21\/2012 10:23:13 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "172 Leyden St East Boston MA 02128", "fire_district": 1, "pwd_district": "09", "city_council_district": 1, "police_district": "A7", "neighborhood": "East Boston", "neighborhood_services_district": 1, "ward": "Ward 1", "precinct": 113, "land_usage": "R1", "LOCATION_STREET_NAME": "172 Leyden St", "LOCATION_ZIPCODE": 2128, "LATITUDE": 42.3889, "LONGITUDE": -71.00513, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.00513, 42.3889 ] } } +, +{ "type": "Feature", "id": 79, "properties": { "CASE_ENQUIRY_ID": 101000384181.0, "OPEN_DT": "02\/14\/2012 10:40:14 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "25 Dennis St Roxbury MA 02119", "fire_district": 7, "pwd_district": "03", "city_council_district": 7, "police_district": "B2", "neighborhood": "Roxbury", "neighborhood_services_district": 13, "ward": "Ward 8", "precinct": 807, "land_usage": "R1", "LOCATION_STREET_NAME": "25 Dennis St", "LOCATION_ZIPCODE": 2119, "LATITUDE": 42.32275, "LONGITUDE": -71.07526, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.07526, 42.32275 ] } } +, +{ "type": "Feature", "id": 80, "properties": { "CASE_ENQUIRY_ID": 101000383309.0, "OPEN_DT": "02\/10\/2012 12:46:07 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "1733 Commonwealth Ave Brighton MA 02135", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Allston \/ Brighton", "neighborhood_services_district": 15, "ward": "Ward 21", "precinct": 2113, "land_usage": "R2", "LOCATION_STREET_NAME": "1733 Commonwealth Ave", "LOCATION_ZIPCODE": 2135, "LATITUDE": 42.3419, "LONGITUDE": -71.1491, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.1491, 42.3419 ] } } +, +{ "type": "Feature", "id": 81, "properties": { "CASE_ENQUIRY_ID": 101000379988.0, "OPEN_DT": "02\/01\/2012 02:26:41 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "252 Marlborough St Boston MA 02116", "fire_district": 4, "pwd_district": "1C", "city_council_district": 8, "police_district": "D4", "neighborhood": "Back Bay", "neighborhood_services_district": 14, "ward": "Ward 5", "precinct": 508, "land_usage": "CM", "LOCATION_STREET_NAME": "252 Marlborough St", "LOCATION_ZIPCODE": 2116, "LATITUDE": 42.35167, "LONGITUDE": -71.08222, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.08222, 42.35167 ] } } +, +{ "type": "Feature", "id": 82, "properties": { "CASE_ENQUIRY_ID": 101000373127.0, "OPEN_DT": "01\/11\/2012 11:08:12 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "5 Upham Ave Dorchester MA 02125", "fire_district": 7, "pwd_district": "03", "city_council_district": 7, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 13, "ward": "Ward 13", "precinct": 1305, "land_usage": "R3", "LOCATION_STREET_NAME": "5 Upham Ave", "LOCATION_ZIPCODE": 2125, "LATITUDE": 42.31526, "LONGITUDE": -71.0656, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.0656, 42.31526 ] } } +, +{ "type": "Feature", "id": 83, "properties": { "CASE_ENQUIRY_ID": 101000370975.0, "OPEN_DT": "01\/05\/2012 12:39:06 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "Case Closed NOVIO: No Violation Found\/No Cause ", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "INTERSECTION of Cenacle Rd & Lake St Brighton MA ", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Allston \/ Brighton", "neighborhood_services_district": 15, "ward": "Ward 22", "precinct": 2208, "land_usage": "", "LOCATION_STREET_NAME": "INTERSECTION Cenacle Rd & Lake St", "LOCATION_ZIPCODE": null, "LATITUDE": 42.34362, "LONGITUDE": -71.141672, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.141672, 42.34362 ] } } +, +{ "type": "Feature", "id": 84, "properties": { "CASE_ENQUIRY_ID": 101000370864.0, "OPEN_DT": "01\/05\/2012 10:08:12 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "610 Columbus Ave Roxbury MA 02118", "fire_district": 9, "pwd_district": "10B", "city_council_district": 7, "police_district": "D4", "neighborhood": "Roxbury", "neighborhood_services_district": 13, "ward": "Ward 9", "precinct": 903, "land_usage": "A", "LOCATION_STREET_NAME": "610 Columbus Ave", "LOCATION_ZIPCODE": 2118, "LATITUDE": 42.33969, "LONGITUDE": -71.08251, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.08251, 42.33969 ] } } +, +{ "type": "Feature", "id": 85, "properties": { "CASE_ENQUIRY_ID": 101000369043.0, "OPEN_DT": "12\/30\/2011 09:23:38 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "50 Park Vale Ave Allston MA 02134", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Allston \/ Brighton", "neighborhood_services_district": 15, "ward": "Ward 21", "precinct": 2105, "land_usage": "A", "LOCATION_STREET_NAME": "50 Park Vale Ave", "LOCATION_ZIPCODE": 2134, "LATITUDE": 42.35264, "LONGITUDE": -71.13344, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.13344, 42.35264 ] } } +, +{ "type": "Feature", "id": 86, "properties": { "CASE_ENQUIRY_ID": 101000366696.0, "OPEN_DT": "12\/21\/2011 11:53:25 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "8 Barnes Ave East Boston MA 02128", "fire_district": 1, "pwd_district": "09", "city_council_district": 1, "police_district": "A7", "neighborhood": "East Boston", "neighborhood_services_district": 1, "ward": "Ward 1", "precinct": 112, "land_usage": "R2", "LOCATION_STREET_NAME": "8 Barnes Ave", "LOCATION_ZIPCODE": 2128, "LATITUDE": 42.38593, "LONGITUDE": -71.00657, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.00657, 42.38593 ] } } +, +{ "type": "Feature", "id": 87, "properties": { "CASE_ENQUIRY_ID": 101000356347.0, "OPEN_DT": "11\/21\/2011 05:58:30 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "Case Closed VIOISS: Violation Filed ", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "120 Commonwealth Ave Boston MA 02116", "fire_district": 4, "pwd_district": "1C", "city_council_district": 8, "police_district": "D4", "neighborhood": "Back Bay", "neighborhood_services_district": 14, "ward": "Ward 5", "precinct": 507, "land_usage": "CD", "LOCATION_STREET_NAME": "120 Commonwealth Ave", "LOCATION_ZIPCODE": 2116, "LATITUDE": 42.351802, "LONGITUDE": -71.076817, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.076817, 42.351802 ] } } +, +{ "type": "Feature", "id": 88, "properties": { "CASE_ENQUIRY_ID": 101000354709.0, "OPEN_DT": "11\/16\/2011 11:43:13 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "123 Newbury St Boston MA 02116", "fire_district": 4, "pwd_district": "1C", "city_council_district": 8, "police_district": "D4", "neighborhood": "Back Bay", "neighborhood_services_district": 14, "ward": "Ward 5", "precinct": 507, "land_usage": "RC", "LOCATION_STREET_NAME": "123 Newbury St", "LOCATION_ZIPCODE": 2116, "LATITUDE": 42.351433, "LONGITUDE": -71.076557, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.076557, 42.351433 ] } } +, +{ "type": "Feature", "id": 89, "properties": { "CASE_ENQUIRY_ID": 101000351418.0, "OPEN_DT": "11\/07\/2011 11:00:12 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "2 Mead St Allston MA 02134", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Allston \/ Brighton", "neighborhood_services_district": 15, "ward": "Ward 22", "precinct": 2202, "land_usage": "R3", "LOCATION_STREET_NAME": "2 Mead St", "LOCATION_ZIPCODE": 2134, "LATITUDE": 42.36153, "LONGITUDE": -71.13203, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.13203, 42.36153 ] } } +, +{ "type": "Feature", "id": 90, "properties": { "CASE_ENQUIRY_ID": 101000343040.0, "OPEN_DT": "10\/17\/2011 08:59:52 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "44-46 Sagamore St Dorchester MA 02125", "fire_district": 7, "pwd_district": "03", "city_council_district": 3, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 7, "ward": "Ward 13", "precinct": 1309, "land_usage": "R2", "LOCATION_STREET_NAME": "44-46 Sagamore St", "LOCATION_ZIPCODE": 2125, "LATITUDE": 42.314681, "LONGITUDE": -71.054915, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.054915, 42.314681 ] } } +, +{ "type": "Feature", "id": 91, "properties": { "CASE_ENQUIRY_ID": 101000314422.0, "OPEN_DT": "08\/15\/2011 12:33:07 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "Case Closed NOVIO: No Violation Found\/No Cause ", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "98 Knoll St Roslindale MA 02131", "fire_district": 9, "pwd_district": "06", "city_council_district": 5, "police_district": "E5", "neighborhood": "Roslindale", "neighborhood_services_district": 10, "ward": "Ward 20", "precinct": 2001, "land_usage": "R1", "LOCATION_STREET_NAME": "98 Knoll St", "LOCATION_ZIPCODE": 2131, "LATITUDE": 42.29308, "LONGITUDE": -71.13582, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.13582, 42.29308 ] } } +, +{ "type": "Feature", "id": 92, "properties": { "CASE_ENQUIRY_ID": 101000305253.0, "OPEN_DT": "07\/22\/2011 06:57:07 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": " ", "fire_district": null, "pwd_district": " ", "city_council_district": null, "police_district": " ", "neighborhood": " ", "neighborhood_services_district": null, "ward": " ", "precinct": null, "land_usage": " ", "LOCATION_STREET_NAME": "", "LOCATION_ZIPCODE": null, "LATITUDE": 42.3594, "LONGITUDE": -71.0587, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.0587, 42.3594 ] } } +, +{ "type": "Feature", "id": 93, "properties": { "CASE_ENQUIRY_ID": 101000298927.0, "OPEN_DT": "07\/08\/2011 12:21:56 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "24 Armington St Allston MA 02134", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Allston \/ Brighton", "neighborhood_services_district": 15, "ward": "Ward 21", "precinct": 2106, "land_usage": "R4", "LOCATION_STREET_NAME": "24 Armington St", "LOCATION_ZIPCODE": 2134, "LATITUDE": 42.352387, "LONGITUDE": -71.137011, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.137011, 42.352387 ] } } +, +{ "type": "Feature", "id": 94, "properties": { "CASE_ENQUIRY_ID": 101000858190.0, "OPEN_DT": "06\/12\/2013 09:09:24 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "516 Lagrange St West Roxbury MA 02132", "fire_district": 12, "pwd_district": "06", "city_council_district": 6, "police_district": "E5", "neighborhood": "West Roxbury", "neighborhood_services_district": 12, "ward": "Ward 20", "precinct": 2013, "land_usage": "R1", "LOCATION_STREET_NAME": "516 Lagrange St", "LOCATION_ZIPCODE": 2132, "LATITUDE": 42.28356, "LONGITUDE": -71.16167, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.16167, 42.28356 ] } } +, +{ "type": "Feature", "id": 95, "properties": { "CASE_ENQUIRY_ID": 101000993203.0, "OPEN_DT": "12\/30\/2013 01:48:18 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "41 Grove St Boston MA 02114", "fire_district": 3, "pwd_district": "1B", "city_council_district": 8, "police_district": "A1", "neighborhood": "Beacon Hill", "neighborhood_services_district": 14, "ward": "Ward 5", "precinct": 504, "land_usage": "R4", "LOCATION_STREET_NAME": "41 Grove St", "LOCATION_ZIPCODE": 2114, "LATITUDE": 42.35978, "LONGITUDE": -71.06878, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.06878, 42.35978 ] } } +, +{ "type": "Feature", "id": 96, "properties": { "CASE_ENQUIRY_ID": 101000953611.0, "OPEN_DT": "10\/24\/2013 04:42:33 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "22 Josephine St Dorchester MA 02122", "fire_district": 7, "pwd_district": "03", "city_council_district": 3, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 8, "ward": "Ward 15", "precinct": 1508, "land_usage": "R3", "LOCATION_STREET_NAME": "22 Josephine St", "LOCATION_ZIPCODE": 2122, "LATITUDE": 42.30074, "LONGITUDE": -71.06464, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.06464, 42.30074 ] } } +, +{ "type": "Feature", "id": 97, "properties": { "CASE_ENQUIRY_ID": 101001122596.0, "OPEN_DT": "07\/07\/2014 10:35:51 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "56 Granger St Dorchester MA 02122", "fire_district": 7, "pwd_district": "03", "city_council_district": 3, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 8, "ward": "Ward 15", "precinct": 1506, "land_usage": "R3", "LOCATION_STREET_NAME": "56 Granger St", "LOCATION_ZIPCODE": 2122, "LATITUDE": 42.30269, "LONGITUDE": -71.05737, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.05737, 42.30269 ] } } +, +{ "type": "Feature", "id": 98, "properties": { "CASE_ENQUIRY_ID": 101000859491.0, "OPEN_DT": "06\/13\/2013 03:28:00 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "24 Dunwell St West Roxbury MA 02132", "fire_district": 12, "pwd_district": "06", "city_council_district": 6, "police_district": "E5", "neighborhood": "West Roxbury", "neighborhood_services_district": 12, "ward": "Ward 20", "precinct": 2005, "land_usage": "R1", "LOCATION_STREET_NAME": "24 Dunwell St", "LOCATION_ZIPCODE": 2132, "LATITUDE": 42.27766, "LONGITUDE": -71.16845, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.16845, 42.27766 ] } } +, +{ "type": "Feature", "id": 99, "properties": { "CASE_ENQUIRY_ID": 101001025530.0, "OPEN_DT": "02\/13\/2014 01:06:48 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "8 Oxford Pl Boston MA 02111", "fire_district": 4, "pwd_district": "1C", "city_council_district": 2, "police_district": "A1", "neighborhood": "Downtown \/ Financial District", "neighborhood_services_district": 4, "ward": "Ward 3", "precinct": 308, "land_usage": "R4", "LOCATION_STREET_NAME": "8 Oxford Pl", "LOCATION_ZIPCODE": 2111, "LATITUDE": 42.351802, "LONGITUDE": -71.060808, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.060808, 42.351802 ] } } +, +{ "type": "Feature", "id": 100, "properties": { "CASE_ENQUIRY_ID": 101000903427.0, "OPEN_DT": "08\/16\/2013 11:54:44 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "191 Walworth St Roslindale MA 02131", "fire_district": 12, "pwd_district": "06", "city_council_district": 5, "police_district": "E5", "neighborhood": "Roslindale", "neighborhood_services_district": 10, "ward": "20", "precinct": 2009, "land_usage": "", "LOCATION_STREET_NAME": "191 Walworth St", "LOCATION_ZIPCODE": 2131, "LATITUDE": 42.278958, "LONGITUDE": -71.137246, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.137246, 42.278958 ] } } +, +{ "type": "Feature", "id": 101, "properties": { "CASE_ENQUIRY_ID": 101001117642.0, "OPEN_DT": "06\/27\/2014 07:11:40 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "125 Walworth St Roslindale MA 02131", "fire_district": 12, "pwd_district": "06", "city_council_district": 5, "police_district": "E5", "neighborhood": "Roslindale", "neighborhood_services_district": 10, "ward": "Ward 20", "precinct": 2009, "land_usage": "R1", "LOCATION_STREET_NAME": "125 Walworth St", "LOCATION_ZIPCODE": 2131, "LATITUDE": 42.28278, "LONGITUDE": -71.13762, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.13762, 42.28278 ] } } +, +{ "type": "Feature", "id": 102, "properties": { "CASE_ENQUIRY_ID": 101001123574.0, "OPEN_DT": "07\/08\/2014 09:53:23 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "22-26 Hawthorne St Roxbury MA 02119", "fire_district": 9, "pwd_district": "10B", "city_council_district": 7, "police_district": "B2", "neighborhood": "Roxbury", "neighborhood_services_district": 13, "ward": "11", "precinct": 1102, "land_usage": "", "LOCATION_STREET_NAME": "22-26 Hawthorne St", "LOCATION_ZIPCODE": 2119, "LATITUDE": 42.3594, "LONGITUDE": -71.0587, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.0587, 42.3594 ] } } +, +{ "type": "Feature", "id": 103, "properties": { "CASE_ENQUIRY_ID": 101001117271.0, "OPEN_DT": "06\/27\/2014 10:43:51 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "8 Robinwood Ave Jamaica Plain MA 02130", "fire_district": 9, "pwd_district": "02", "city_council_district": 6, "police_district": "E13", "neighborhood": "Jamaica Plain", "neighborhood_services_district": 11, "ward": "19", "precinct": 1904, "land_usage": "", "LOCATION_STREET_NAME": "8 Robinwood Ave", "LOCATION_ZIPCODE": 2130, "LATITUDE": 42.3594, "LONGITUDE": -71.0587, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.0587, 42.3594 ] } } +, +{ "type": "Feature", "id": 104, "properties": { "CASE_ENQUIRY_ID": 101001024880.0, "OPEN_DT": "02\/12\/2014 12:49:25 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "54 Beach St Boston MA 02111", "fire_district": 4, "pwd_district": "1C", "city_council_district": 2, "police_district": "A1", "neighborhood": "Downtown \/ Financial District", "neighborhood_services_district": 4, "ward": "Ward 3", "precinct": 308, "land_usage": "RC", "LOCATION_STREET_NAME": "54 Beach St", "LOCATION_ZIPCODE": 2111, "LATITUDE": 42.3515, "LONGITUDE": -71.06058, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.06058, 42.3515 ] } } +, +{ "type": "Feature", "id": 105, "properties": { "CASE_ENQUIRY_ID": 101001023923.0, "OPEN_DT": "02\/11\/2014 10:58:07 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "27 Pasadena Rd Dorchester MA 02121", "fire_district": 7, "pwd_district": "03", "city_council_district": 4, "police_district": "B2", "neighborhood": "Roxbury", "neighborhood_services_district": 13, "ward": "Ward 14", "precinct": 1403, "land_usage": "CM", "LOCATION_STREET_NAME": "27 Pasadena Rd", "LOCATION_ZIPCODE": 2121, "LATITUDE": 42.30551, "LONGITUDE": -71.08273, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.08273, 42.30551 ] } } +, +{ "type": "Feature", "id": 106, "properties": { "CASE_ENQUIRY_ID": 101000971992.0, "OPEN_DT": "11\/26\/2013 08:02:36 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "1039-1045 Commonwealth Ave Boston MA 02215", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Allston \/ Brighton", "neighborhood_services_district": 14, "ward": "Ward 21", "precinct": 2103, "land_usage": "RC", "LOCATION_STREET_NAME": "1039-1045 Commonwealth Ave", "LOCATION_ZIPCODE": 2215, "LATITUDE": 42.352334, "LONGITUDE": -71.122164, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.122164, 42.352334 ] } } +, +{ "type": "Feature", "id": 107, "properties": { "CASE_ENQUIRY_ID": 101001120465.0, "OPEN_DT": "07\/02\/2014 12:32:13 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "5 Coleman St Dorchester MA 02125", "fire_district": 7, "pwd_district": "03", "city_council_district": 3, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 8, "ward": "Ward 15", "precinct": 1504, "land_usage": "R3", "LOCATION_STREET_NAME": "5 Coleman St", "LOCATION_ZIPCODE": 2125, "LATITUDE": 42.30917, "LONGITUDE": -71.0652, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.0652, 42.30917 ] } } +, +{ "type": "Feature", "id": 108, "properties": { "CASE_ENQUIRY_ID": 101000916065.0, "OPEN_DT": "09\/02\/2013 12:45:54 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "53 Hillside St Mission Hill MA 02120", "fire_district": 9, "pwd_district": "10A", "city_council_district": 8, "police_district": "B2", "neighborhood": "Mission Hill", "neighborhood_services_district": 14, "ward": "Ward 10", "precinct": 1005, "land_usage": "R3", "LOCATION_STREET_NAME": "53 Hillside St", "LOCATION_ZIPCODE": 2120, "LATITUDE": 42.33025, "LONGITUDE": -71.10121, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.10121, 42.33025 ] } } +, +{ "type": "Feature", "id": 109, "properties": { "CASE_ENQUIRY_ID": 101000862095.0, "OPEN_DT": "06\/18\/2013 10:04:51 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "3 Trent St Dorchester MA 02125", "fire_district": 7, "pwd_district": "03", "city_council_district": 3, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 8, "ward": "Ward 15", "precinct": 1504, "land_usage": "RL", "LOCATION_STREET_NAME": "3 Trent St", "LOCATION_ZIPCODE": 2125, "LATITUDE": 42.309239, "LONGITUDE": -71.065412, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.065412, 42.309239 ] } } +, +{ "type": "Feature", "id": 110, "properties": { "CASE_ENQUIRY_ID": 101000914452.0, "OPEN_DT": "08\/30\/2013 01:29:09 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "15 Ledgewood Rd West Roxbury MA 02132", "fire_district": 12, "pwd_district": "06", "city_council_district": 6, "police_district": "E5", "neighborhood": "West Roxbury", "neighborhood_services_district": 12, "ward": "Ward 20", "precinct": 2020, "land_usage": "R1", "LOCATION_STREET_NAME": "15 Ledgewood Rd", "LOCATION_ZIPCODE": 2132, "LATITUDE": 42.29518, "LONGITUDE": -71.16365, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.16365, 42.29518 ] } } +, +{ "type": "Feature", "id": 111, "properties": { "CASE_ENQUIRY_ID": 101000923584.0, "OPEN_DT": "09\/11\/2013 09:12:21 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "4 Lake St Brighton MA 02135", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Allston \/ Brighton", "neighborhood_services_district": 15, "ward": "Ward 22", "precinct": 2208, "land_usage": "R3", "LOCATION_STREET_NAME": "4 Lake St", "LOCATION_ZIPCODE": 2135, "LATITUDE": 42.34053, "LONGITUDE": -71.16634, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.16634, 42.34053 ] } } +, +{ "type": "Feature", "id": 112, "properties": { "CASE_ENQUIRY_ID": 101001052789.0, "OPEN_DT": "03\/24\/2014 10:24:06 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "536-544 Centre St Jamaica Plain MA 02130", "fire_district": 9, "pwd_district": "02", "city_council_district": 6, "police_district": "E13", "neighborhood": "Jamaica Plain", "neighborhood_services_district": 11, "ward": "Ward 19", "precinct": 1905, "land_usage": "C", "LOCATION_STREET_NAME": "536-544 Centre St", "LOCATION_ZIPCODE": 2130, "LATITUDE": 42.31686, "LONGITUDE": -71.11327, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.11327, 42.31686 ] } } +, +{ "type": "Feature", "id": 113, "properties": { "CASE_ENQUIRY_ID": 101001101843.0, "OPEN_DT": "06\/02\/2014 02:39:43 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "50 Gardner St Allston MA 02134", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Allston \/ Brighton", "neighborhood_services_district": 15, "ward": "Ward 21", "precinct": 2104, "land_usage": "R2", "LOCATION_STREET_NAME": "50 Gardner St", "LOCATION_ZIPCODE": 2134, "LATITUDE": 42.35386, "LONGITUDE": -71.12886, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.12886, 42.35386 ] } } +, +{ "type": "Feature", "id": 114, "properties": { "CASE_ENQUIRY_ID": 101001113589.0, "OPEN_DT": "06\/23\/2014 07:35:27 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "8 Sussex St Mission Hill MA 02120", "fire_district": 7, "pwd_district": "10B", "city_council_district": 7, "police_district": "D4", "neighborhood": "Roxbury", "neighborhood_services_district": 13, "ward": "Ward 9", "precinct": 903, "land_usage": "R1", "LOCATION_STREET_NAME": "8 Sussex St", "LOCATION_ZIPCODE": 2120, "LATITUDE": 42.33604, "LONGITUDE": -71.08346, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.08346, 42.33604 ] } } +, +{ "type": "Feature", "id": 115, "properties": { "CASE_ENQUIRY_ID": 101001107852.0, "OPEN_DT": "06\/12\/2014 10:57:13 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "134 Greenwood St Dorchester MA 02121", "fire_district": 7, "pwd_district": "03", "city_council_district": 4, "police_district": "B3", "neighborhood": "Greater Mattapan", "neighborhood_services_district": 8, "ward": "Ward 14", "precinct": 1402, "land_usage": "R3", "LOCATION_STREET_NAME": "134 Greenwood St", "LOCATION_ZIPCODE": 2121, "LATITUDE": 42.29739, "LONGITUDE": -71.07935, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.07935, 42.29739 ] } } +, +{ "type": "Feature", "id": 116, "properties": { "CASE_ENQUIRY_ID": 101001132846.0, "OPEN_DT": "07\/20\/2014 11:45:47 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "38A Union Ave Jamaica Plain MA 02130", "fire_district": 9, "pwd_district": "02", "city_council_district": 6, "police_district": "E13", "neighborhood": "Jamaica Plain", "neighborhood_services_district": 11, "ward": "Ward 11", "precinct": 1107, "land_usage": "CD", "LOCATION_STREET_NAME": "38A Union Ave", "LOCATION_ZIPCODE": 2130, "LATITUDE": 42.30858, "LONGITUDE": -71.10649, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.10649, 42.30858 ] } } +, +{ "type": "Feature", "id": 117, "properties": { "CASE_ENQUIRY_ID": 101001037568.0, "OPEN_DT": "02\/27\/2014 01:25:31 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "65 Empire St Allston MA 02134", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Allston \/ Brighton", "neighborhood_services_district": 15, "ward": "Ward 22", "precinct": 2201, "land_usage": "A", "LOCATION_STREET_NAME": "65 Empire St", "LOCATION_ZIPCODE": 2134, "LATITUDE": 42.35803, "LONGITUDE": -71.12752, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.12752, 42.35803 ] } } +, +{ "type": "Feature", "id": 118, "properties": { "CASE_ENQUIRY_ID": 101001114176.0, "OPEN_DT": "06\/23\/2014 02:54:51 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "321 Summit Ave Brighton MA 02135", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Allston \/ Brighton", "neighborhood_services_district": 15, "ward": "Ward 21", "precinct": 2109, "land_usage": "A", "LOCATION_STREET_NAME": "321 Summit Ave", "LOCATION_ZIPCODE": 2135, "LATITUDE": 42.345501, "LONGITUDE": -71.140161, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.140161, 42.345501 ] } } +, +{ "type": "Feature", "id": 119, "properties": { "CASE_ENQUIRY_ID": 101001044054.0, "OPEN_DT": "03\/10\/2014 01:54:55 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "247 Cambridge St Allston MA 02134", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Allston \/ Brighton", "neighborhood_services_district": 15, "ward": "Ward 22", "precinct": 2201, "land_usage": "R3", "LOCATION_STREET_NAME": "247 Cambridge St", "LOCATION_ZIPCODE": 2134, "LATITUDE": 42.3578, "LONGITUDE": -71.12748, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.12748, 42.3578 ] } } +, +{ "type": "Feature", "id": 120, "properties": { "CASE_ENQUIRY_ID": 101000969471.0, "OPEN_DT": "11\/21\/2013 08:36:33 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "66-68 Raymond St Allston MA 02134", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Allston \/ Brighton", "neighborhood_services_district": 15, "ward": "Ward 22", "precinct": 2202, "land_usage": "R2", "LOCATION_STREET_NAME": "66-68 Raymond St", "LOCATION_ZIPCODE": 2134, "LATITUDE": 42.361503, "LONGITUDE": -71.132577, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.132577, 42.361503 ] } } +, +{ "type": "Feature", "id": 121, "properties": { "CASE_ENQUIRY_ID": 101001051624.0, "OPEN_DT": "03\/21\/2014 10:32:23 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "17 Gordon St Allston MA 02134", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Allston \/ Brighton", "neighborhood_services_district": 15, "ward": "Ward 21", "precinct": 2106, "land_usage": "CD", "LOCATION_STREET_NAME": "17 Gordon St", "LOCATION_ZIPCODE": 2134, "LATITUDE": 42.35349, "LONGITUDE": -71.140954, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.140954, 42.35349 ] } } +, +{ "type": "Feature", "id": 122, "properties": { "CASE_ENQUIRY_ID": 101001063196.0, "OPEN_DT": "04\/08\/2014 09:51:40 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "780 Boylston St Boston MA 02199", "fire_district": 4, "pwd_district": "1C", "city_council_district": 2, "police_district": "D4", "neighborhood": "Back Bay", "neighborhood_services_district": 6, "ward": "Ward 4", "precinct": 402, "land_usage": "RC", "LOCATION_STREET_NAME": "780 Boylston St", "LOCATION_ZIPCODE": 2199, "LATITUDE": 42.348135, "LONGITUDE": -71.080855, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.080855, 42.348135 ] } } +, +{ "type": "Feature", "id": 123, "properties": { "CASE_ENQUIRY_ID": 101001024882.0, "OPEN_DT": "02\/12\/2014 12:51:03 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "56 Beach St Boston MA 02111", "fire_district": 4, "pwd_district": "1C", "city_council_district": 2, "police_district": "A1", "neighborhood": "Downtown \/ Financial District", "neighborhood_services_district": 4, "ward": "Ward 3", "precinct": 308, "land_usage": "RC", "LOCATION_STREET_NAME": "56 Beach St", "LOCATION_ZIPCODE": 2111, "LATITUDE": 42.35149, "LONGITUDE": -71.06052, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.06052, 42.35149 ] } } +, +{ "type": "Feature", "id": 124, "properties": { "CASE_ENQUIRY_ID": 101001106700.0, "OPEN_DT": "06\/10\/2014 02:48:41 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "164 Florence St Roslindale MA 02131", "fire_district": 12, "pwd_district": "02", "city_council_district": 5, "police_district": "E5", "neighborhood": "Roslindale", "neighborhood_services_district": 10, "ward": "Ward 19", "precinct": 1913, "land_usage": "R2", "LOCATION_STREET_NAME": "164 Florence St", "LOCATION_ZIPCODE": 2131, "LATITUDE": 42.287766, "LONGITUDE": -71.122086, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.122086, 42.287766 ] } } +, +{ "type": "Feature", "id": 125, "properties": { "CASE_ENQUIRY_ID": 101000929460.0, "OPEN_DT": "09\/18\/2013 10:07:58 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "8 Carol Cir West Roxbury MA 02132", "fire_district": 12, "pwd_district": "06", "city_council_district": 6, "police_district": "E5", "neighborhood": "West Roxbury", "neighborhood_services_district": 12, "ward": "Ward 20", "precinct": 2005, "land_usage": "A", "LOCATION_STREET_NAME": "8 Carol Cir", "LOCATION_ZIPCODE": 2132, "LATITUDE": 42.26828, "LONGITUDE": -71.15074, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.15074, 42.26828 ] } } +, +{ "type": "Feature", "id": 126, "properties": { "CASE_ENQUIRY_ID": 101001118633.0, "OPEN_DT": "06\/30\/2014 01:06:36 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "528 Cambridge St Allston MA 02134", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Allston \/ Brighton", "neighborhood_services_district": 15, "ward": "Ward 21", "precinct": 2106, "land_usage": "R3", "LOCATION_STREET_NAME": "528 Cambridge St", "LOCATION_ZIPCODE": 2134, "LATITUDE": 42.35278, "LONGITUDE": -71.13902, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.13902, 42.35278 ] } } +, +{ "type": "Feature", "id": 127, "properties": { "CASE_ENQUIRY_ID": 101001105935.0, "OPEN_DT": "06\/09\/2014 02:11:45 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "297 Bolton St South Boston MA 02127", "fire_district": 6, "pwd_district": "05", "city_council_district": 2, "police_district": "C6", "neighborhood": "South Boston \/ South Boston Waterfront", "neighborhood_services_district": 5, "ward": "Ward 6", "precinct": 604, "land_usage": "R1", "LOCATION_STREET_NAME": "297 Bolton St", "LOCATION_ZIPCODE": 2127, "LATITUDE": 42.33682, "LONGITUDE": -71.04502, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.04502, 42.33682 ] } } +, +{ "type": "Feature", "id": 128, "properties": { "CASE_ENQUIRY_ID": 101001112253.0, "OPEN_DT": "06\/20\/2014 08:07:02 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "21 Union Ave Jamaica Plain MA 02130", "fire_district": 9, "pwd_district": "02", "city_council_district": 6, "police_district": "E13", "neighborhood": "Jamaica Plain", "neighborhood_services_district": 11, "ward": "Ward 11", "precinct": 1107, "land_usage": "R2", "LOCATION_STREET_NAME": "21 Union Ave", "LOCATION_ZIPCODE": 2130, "LATITUDE": 42.30928, "LONGITUDE": -71.10647, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.10647, 42.30928 ] } } +, +{ "type": "Feature", "id": 129, "properties": { "CASE_ENQUIRY_ID": 101000916068.0, "OPEN_DT": "09\/02\/2013 12:47:37 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "126 Calumet St Mission Hill MA 02120", "fire_district": 9, "pwd_district": "10A", "city_council_district": 8, "police_district": "B2", "neighborhood": "Mission Hill", "neighborhood_services_district": 14, "ward": "Ward 10", "precinct": 1003, "land_usage": "R3", "LOCATION_STREET_NAME": "126 Calumet St", "LOCATION_ZIPCODE": 2120, "LATITUDE": 42.33096, "LONGITUDE": -71.1026, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.1026, 42.33096 ] } } +, +{ "type": "Feature", "id": 130, "properties": { "CASE_ENQUIRY_ID": 101001126026.0, "OPEN_DT": "07\/10\/2014 02:49:38 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "12 Kensington St Roxbury MA 02119", "fire_district": 9, "pwd_district": "10B", "city_council_district": 7, "police_district": "B2", "neighborhood": "Roxbury", "neighborhood_services_district": 13, "ward": "Ward 12", "precinct": 1203, "land_usage": "R3", "LOCATION_STREET_NAME": "12 Kensington St", "LOCATION_ZIPCODE": 2119, "LATITUDE": 42.32064, "LONGITUDE": -71.09077, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.09077, 42.32064 ] } } +, +{ "type": "Feature", "id": 131, "properties": { "CASE_ENQUIRY_ID": 101001003762.0, "OPEN_DT": "01\/13\/2014 10:24:12 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "6 Harbell Ter Dorchester MA 02122", "fire_district": 7, "pwd_district": "03", "city_council_district": 3, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 8, "ward": "Ward 15", "precinct": 1508, "land_usage": "R1", "LOCATION_STREET_NAME": "6 Harbell Ter", "LOCATION_ZIPCODE": 2122, "LATITUDE": 42.30133, "LONGITUDE": -71.05786, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.05786, 42.30133 ] } } +, +{ "type": "Feature", "id": 132, "properties": { "CASE_ENQUIRY_ID": 101001025531.0, "OPEN_DT": "02\/13\/2014 01:08:04 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "9 Oxford Pl Boston MA 02111", "fire_district": 4, "pwd_district": "1C", "city_council_district": 2, "police_district": "A1", "neighborhood": "Downtown \/ Financial District", "neighborhood_services_district": 4, "ward": "Ward 3", "precinct": 308, "land_usage": "R4", "LOCATION_STREET_NAME": "9 Oxford Pl", "LOCATION_ZIPCODE": 2111, "LATITUDE": 42.35175, "LONGITUDE": -71.06079, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.06079, 42.35175 ] } } +, +{ "type": "Feature", "id": 133, "properties": { "CASE_ENQUIRY_ID": 101001032840.0, "OPEN_DT": "02\/21\/2014 10:29:48 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "INTERSECTION of Edgemont St & South St Roslindale MA", "fire_district": 9, "pwd_district": "06", "city_council_district": 6, "police_district": "E5", "neighborhood": "Roslindale", "neighborhood_services_district": 10, "ward": "Ward 20", "precinct": 2007, "land_usage": "", "LOCATION_STREET_NAME": "INTERSECTION Edgemont St & South St", "LOCATION_ZIPCODE": null, "LATITUDE": 42.31262, "LONGITUDE": -71.12186, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.12186, 42.31262 ] } } +, +{ "type": "Feature", "id": 134, "properties": { "CASE_ENQUIRY_ID": 101001110865.0, "OPEN_DT": "06\/18\/2014 10:26:15 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "60 Princeton St East Boston MA 02128", "fire_district": 1, "pwd_district": "09", "city_council_district": 1, "police_district": "A7", "neighborhood": "East Boston", "neighborhood_services_district": 1, "ward": "Ward 1", "precinct": 107, "land_usage": "R2", "LOCATION_STREET_NAME": "60 Princeton St", "LOCATION_ZIPCODE": 2128, "LATITUDE": 42.3773, "LONGITUDE": -71.03696, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.03696, 42.3773 ] } } +, +{ "type": "Feature", "id": 135, "properties": { "CASE_ENQUIRY_ID": 101000958424.0, "OPEN_DT": "11\/01\/2013 12:03:37 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "70-72 Rowe St Roslindale MA 02131", "fire_district": 12, "pwd_district": "02", "city_council_district": 5, "police_district": "E5", "neighborhood": "Roslindale", "neighborhood_services_district": 10, "ward": "19", "precinct": 1910, "land_usage": "", "LOCATION_STREET_NAME": "70-72 Rowe St", "LOCATION_ZIPCODE": 2131, "LATITUDE": 42.282257, "LONGITUDE": -71.120355, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.120355, 42.282257 ] } } +, +{ "type": "Feature", "id": 136, "properties": { "CASE_ENQUIRY_ID": 101001104802.0, "OPEN_DT": "06\/06\/2014 06:57:26 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "42 Lyon St Dorchester MA 02122", "fire_district": 7, "pwd_district": "03", "city_council_district": 3, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 8, "ward": "Ward 15", "precinct": 1509, "land_usage": "R4", "LOCATION_STREET_NAME": "42 Lyon St", "LOCATION_ZIPCODE": 2122, "LATITUDE": 42.30604, "LONGITUDE": -71.06093, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.06093, 42.30604 ] } } +, +{ "type": "Feature", "id": 137, "properties": { "CASE_ENQUIRY_ID": 101000978663.0, "OPEN_DT": "12\/09\/2013 11:11:03 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "56 Sheridan St Jamaica Plain MA 02130", "fire_district": 9, "pwd_district": "02", "city_council_district": 6, "police_district": "E13", "neighborhood": "Jamaica Plain", "neighborhood_services_district": 11, "ward": "Ward 19", "precinct": 1901, "land_usage": "CM", "LOCATION_STREET_NAME": "56 Sheridan St", "LOCATION_ZIPCODE": 2130, "LATITUDE": 42.320972, "LONGITUDE": -71.10732, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.10732, 42.320972 ] } } +, +{ "type": "Feature", "id": 138, "properties": { "CASE_ENQUIRY_ID": 101001128528.0, "OPEN_DT": "07\/14\/2014 03:21:46 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "INTERSECTION of Green St & Union Ave Jamaica Plain MA", "fire_district": 9, "pwd_district": "02", "city_council_district": 6, "police_district": "E13", "neighborhood": "Jamaica Plain", "neighborhood_services_district": 11, "ward": "Ward 11", "precinct": 1106, "land_usage": "", "LOCATION_STREET_NAME": "INTERSECTION Green St & Union Ave", "LOCATION_ZIPCODE": null, "LATITUDE": 42.2882, "LONGITUDE": -71.05487, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.05487, 42.2882 ] } } +, +{ "type": "Feature", "id": 139, "properties": { "CASE_ENQUIRY_ID": 101000914515.0, "OPEN_DT": "08\/30\/2013 02:18:07 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "21 Worcester St Roxbury MA 02118", "fire_district": 4, "pwd_district": "1C", "city_council_district": 7, "police_district": "D4", "neighborhood": "South End", "neighborhood_services_district": 6, "ward": "Ward 9", "precinct": 902, "land_usage": "R3", "LOCATION_STREET_NAME": "21 Worcester St", "LOCATION_ZIPCODE": 2118, "LATITUDE": 42.33812, "LONGITUDE": -71.07616, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.07616, 42.33812 ] } } +, +{ "type": "Feature", "id": 140, "properties": { "CASE_ENQUIRY_ID": 101001103012.0, "OPEN_DT": "06\/04\/2014 09:44:32 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "221-227 Border St East Boston MA 02128", "fire_district": 1, "pwd_district": "09", "city_council_district": 1, "police_district": "A7", "neighborhood": "East Boston", "neighborhood_services_district": 1, "ward": "Ward 1", "precinct": 106, "land_usage": "C", "LOCATION_STREET_NAME": "221-227 Border St", "LOCATION_ZIPCODE": 2128, "LATITUDE": 42.37585, "LONGITUDE": -71.03959, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.03959, 42.37585 ] } } +, +{ "type": "Feature", "id": 141, "properties": { "CASE_ENQUIRY_ID": 101001128328.0, "OPEN_DT": "07\/14\/2014 01:51:34 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "97 Horace St East Boston MA 02128", "fire_district": 1, "pwd_district": "09", "city_council_district": 1, "police_district": "A7", "neighborhood": "East Boston", "neighborhood_services_district": 1, "ward": "Ward 1", "precinct": 111, "land_usage": "R2", "LOCATION_STREET_NAME": "97 Horace St", "LOCATION_ZIPCODE": 2128, "LATITUDE": 42.38257, "LONGITUDE": -71.01583, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.01583, 42.38257 ] } } +, +{ "type": "Feature", "id": 142, "properties": { "CASE_ENQUIRY_ID": 101001041587.0, "OPEN_DT": "03\/06\/2014 09:01:37 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "", "fire_district": null, "pwd_district": "", "city_council_district": null, "police_district": "", "neighborhood": "", "neighborhood_services_district": null, "ward": "", "precinct": null, "land_usage": "", "LOCATION_STREET_NAME": "", "LOCATION_ZIPCODE": null, "LATITUDE": 42.3594, "LONGITUDE": -71.0587, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.0587, 42.3594 ] } } +, +{ "type": "Feature", "id": 143, "properties": { "CASE_ENQUIRY_ID": 101001107915.0, "OPEN_DT": "06\/12\/2014 12:11:17 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "43-45 Jones Ave Dorchester MA 02124", "fire_district": 8, "pwd_district": "07", "city_council_district": 4, "police_district": "B3", "neighborhood": "Greater Mattapan", "neighborhood_services_district": 9, "ward": "Ward 14", "precinct": 1413, "land_usage": "R1", "LOCATION_STREET_NAME": "43-45 Jones Ave", "LOCATION_ZIPCODE": 2124, "LATITUDE": 42.286415, "LONGITUDE": -71.083856, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.083856, 42.286415 ] } } +, +{ "type": "Feature", "id": 144, "properties": { "CASE_ENQUIRY_ID": 101000918119.0, "OPEN_DT": "09\/04\/2013 01:29:51 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "244 Kelton St Allston MA 02134", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Allston \/ Brighton", "neighborhood_services_district": 15, "ward": "Ward 21", "precinct": 2108, "land_usage": "A", "LOCATION_STREET_NAME": "244 Kelton St", "LOCATION_ZIPCODE": 2134, "LATITUDE": 42.346573, "LONGITUDE": -71.135826, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.135826, 42.346573 ] } } +, +{ "type": "Feature", "id": 145, "properties": { "CASE_ENQUIRY_ID": 101001131997.0, "OPEN_DT": "07\/18\/2014 11:31:59 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "838 Blue Hill Ave Dorchester MA 02124", "fire_district": 7, "pwd_district": "03", "city_council_district": 4, "police_district": "B3", "neighborhood": "Greater Mattapan", "neighborhood_services_district": 9, "ward": "Ward 14", "precinct": 1409, "land_usage": "C", "LOCATION_STREET_NAME": "838 Blue Hill Ave", "LOCATION_ZIPCODE": 2124, "LATITUDE": 42.296053, "LONGITUDE": -71.087229, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.087229, 42.296053 ] } } +, +{ "type": "Feature", "id": 146, "properties": { "CASE_ENQUIRY_ID": 101001095803.0, "OPEN_DT": "05\/22\/2014 04:09:27 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "12 Taft St Dorchester MA 02125", "fire_district": 7, "pwd_district": "03", "city_council_district": 3, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 7, "ward": "Ward 13", "precinct": 1308, "land_usage": "CM", "LOCATION_STREET_NAME": "12 Taft St", "LOCATION_ZIPCODE": 2125, "LATITUDE": 42.31706, "LONGITUDE": -71.05747, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.05747, 42.31706 ] } } +, +{ "type": "Feature", "id": 147, "properties": { "CASE_ENQUIRY_ID": 101001128435.0, "OPEN_DT": "07\/14\/2014 02:47:04 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "41 Revere St Boston MA 02114", "fire_district": 3, "pwd_district": "1B", "city_council_district": 8, "police_district": "A1", "neighborhood": "Beacon Hill", "neighborhood_services_district": 14, "ward": "Ward 5", "precinct": 504, "land_usage": "CD", "LOCATION_STREET_NAME": "41 Revere St", "LOCATION_ZIPCODE": 2114, "LATITUDE": 42.359661, "LONGITUDE": -71.067938, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.067938, 42.359661 ] } } +, +{ "type": "Feature", "id": 148, "properties": { "CASE_ENQUIRY_ID": 101001002418.0, "OPEN_DT": "01\/10\/2014 01:42:35 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "29 Wendover St Dorchester MA 02125", "fire_district": 7, "pwd_district": "03", "city_council_district": 7, "police_district": "B2", "neighborhood": "Dorchester", "neighborhood_services_district": 13, "ward": "Ward 7", "precinct": 710, "land_usage": "", "LOCATION_STREET_NAME": "29 Wendover St", "LOCATION_ZIPCODE": 2125, "LATITUDE": 42.318821, "LONGITUDE": -71.065782, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.065782, 42.318821 ] } } +, +{ "type": "Feature", "id": 149, "properties": { "CASE_ENQUIRY_ID": 101000884200.0, "OPEN_DT": "07\/22\/2013 09:22:26 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "Case Closed VIOCOR: Violation Corrected", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "69-71 Millet St Dorchester MA 02124", "fire_district": 8, "pwd_district": "07", "city_council_district": 4, "police_district": "B3", "neighborhood": "Dorchester", "neighborhood_services_district": 9, "ward": "Ward 17", "precinct": 1703, "land_usage": "R3", "LOCATION_STREET_NAME": "69-71 Millet St", "LOCATION_ZIPCODE": 2124, "LATITUDE": 42.29413, "LONGITUDE": -71.07732, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.07732, 42.29413 ] } } +, +{ "type": "Feature", "id": 150, "properties": { "CASE_ENQUIRY_ID": 101001123877.0, "OPEN_DT": "07\/08\/2014 01:07:05 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "15-33 Sleeper St Boston MA 02210", "fire_district": 6, "pwd_district": "05", "city_council_district": 2, "police_district": "C6", "neighborhood": "South Boston \/ South Boston Waterfront", "neighborhood_services_district": 5, "ward": "Ward 6", "precinct": 601, "land_usage": "CM", "LOCATION_STREET_NAME": "15-33 Sleeper St", "LOCATION_ZIPCODE": 2210, "LATITUDE": 42.352, "LONGITUDE": -71.04893, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.04893, 42.352 ] } } +, +{ "type": "Feature", "id": 151, "properties": { "CASE_ENQUIRY_ID": 101001005071.0, "OPEN_DT": "01\/14\/2014 11:50:00 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "INTERSECTION of Corinth St & Washington St Roslindale MA", "fire_district": 12, "pwd_district": "06", "city_council_district": 5, "police_district": "E5", "neighborhood": "Roslindale", "neighborhood_services_district": 10, "ward": "Ward 20", "precinct": 2002, "land_usage": "", "LOCATION_STREET_NAME": "INTERSECTION Corinth St & Washington St", "LOCATION_ZIPCODE": null, "LATITUDE": 42.35941, "LONGITUDE": -71.06788, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.06788, 42.35941 ] } } +, +{ "type": "Feature", "id": 152, "properties": { "CASE_ENQUIRY_ID": 101001049340.0, "OPEN_DT": "03\/18\/2014 02:49:21 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "384-426 Washington St Brighton MA 02135", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Allston \/ Brighton", "neighborhood_services_district": 15, "ward": "Ward 22", "precinct": 2203, "land_usage": "RC", "LOCATION_STREET_NAME": "384-426 Washington St", "LOCATION_ZIPCODE": 2135, "LATITUDE": 42.348961, "LONGITUDE": -71.154374, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.154374, 42.348961 ] } } +, +{ "type": "Feature", "id": 153, "properties": { "CASE_ENQUIRY_ID": 101001095295.0, "OPEN_DT": "05\/22\/2014 09:33:38 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "520 Saratoga St East Boston MA 02128", "fire_district": 1, "pwd_district": "09", "city_council_district": 1, "police_district": "A7", "neighborhood": "East Boston", "neighborhood_services_district": 1, "ward": "Ward 1", "precinct": 110, "land_usage": "R3", "LOCATION_STREET_NAME": "520 Saratoga St", "LOCATION_ZIPCODE": 2128, "LATITUDE": 42.38063, "LONGITUDE": -71.02597, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.02597, 42.38063 ] } } +, +{ "type": "Feature", "id": 154, "properties": { "CASE_ENQUIRY_ID": 101001129396.0, "OPEN_DT": "07\/15\/2014 01:57:28 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "125 Rosseter St Dorchester MA 02121", "fire_district": 7, "pwd_district": "03", "city_council_district": 4, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 8, "ward": "Ward 14", "precinct": 1404, "land_usage": "R4", "LOCATION_STREET_NAME": "125 Rosseter St", "LOCATION_ZIPCODE": 2121, "LATITUDE": 42.3016, "LONGITUDE": -71.07316, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.07316, 42.3016 ] } } +, +{ "type": "Feature", "id": 155, "properties": { "CASE_ENQUIRY_ID": 101000916879.0, "OPEN_DT": "09\/03\/2013 11:53:17 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "3 Ayr Rd Brighton MA 02135", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Allston \/ Brighton", "neighborhood_services_district": 15, "ward": "Ward 21", "precinct": 2114, "land_usage": "R2", "LOCATION_STREET_NAME": "3 Ayr Rd", "LOCATION_ZIPCODE": 2135, "LATITUDE": 42.33698, "LONGITUDE": -71.14906, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.14906, 42.33698 ] } } +, +{ "type": "Feature", "id": 156, "properties": { "CASE_ENQUIRY_ID": 101000915009.0, "OPEN_DT": "08\/31\/2013 01:35:54 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "679 Lagrange St West Roxbury MA 02132", "fire_district": 12, "pwd_district": "06", "city_council_district": 6, "police_district": "E5", "neighborhood": "West Roxbury", "neighborhood_services_district": 12, "ward": "Ward 20", "precinct": 2017, "land_usage": "R1", "LOCATION_STREET_NAME": "679 Lagrange St", "LOCATION_ZIPCODE": 2132, "LATITUDE": 42.28867, "LONGITUDE": -71.16611, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.16611, 42.28867 ] } } +, +{ "type": "Feature", "id": 157, "properties": { "CASE_ENQUIRY_ID": 101000916918.0, "OPEN_DT": "09\/03\/2013 12:17:46 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "675 Lagrange St West Roxbury MA 02132", "fire_district": 12, "pwd_district": "06", "city_council_district": 6, "police_district": "E5", "neighborhood": "West Roxbury", "neighborhood_services_district": 12, "ward": "Ward 20", "precinct": 2017, "land_usage": "R1", "LOCATION_STREET_NAME": "675 Lagrange St", "LOCATION_ZIPCODE": 2132, "LATITUDE": 42.28854, "LONGITUDE": -71.16599, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.16599, 42.28854 ] } } +, +{ "type": "Feature", "id": 158, "properties": { "CASE_ENQUIRY_ID": 101001113597.0, "OPEN_DT": "06\/23\/2014 07:50:43 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "35 Westville St Dorchester MA 02124", "fire_district": 7, "pwd_district": "03", "city_council_district": 4, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 8, "ward": "15", "precinct": 1505, "land_usage": "E", "LOCATION_STREET_NAME": "35 Westville St", "LOCATION_ZIPCODE": 2124, "LATITUDE": 42.299767, "LONGITUDE": -71.071179, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.071179, 42.299767 ] } } +, +{ "type": "Feature", "id": 159, "properties": { "CASE_ENQUIRY_ID": 101000893975.0, "OPEN_DT": "08\/04\/2013 07:57:40 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "Case Closed NOVIO: No Violation Found\/No Cause", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "99 Parkton Rd Jamaica Plain MA 02130", "fire_district": 9, "pwd_district": "02", "city_council_district": 6, "police_district": "E13", "neighborhood": "Jamaica Plain", "neighborhood_services_district": 11, "ward": "Ward 10", "precinct": 1009, "land_usage": "R2", "LOCATION_STREET_NAME": "99 Parkton Rd", "LOCATION_ZIPCODE": 2130, "LATITUDE": 42.321535, "LONGITUDE": -71.11479, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.11479, 42.321535 ] } } +, +{ "type": "Feature", "id": 160, "properties": { "CASE_ENQUIRY_ID": 101001100917.0, "OPEN_DT": "05\/31\/2014 03:48:13 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "41 Anderson St Boston MA 02114", "fire_district": 3, "pwd_district": "1B", "city_council_district": 8, "police_district": "A1", "neighborhood": "Beacon Hill", "neighborhood_services_district": 14, "ward": "Ward 5", "precinct": 504, "land_usage": "A", "LOCATION_STREET_NAME": "41 Anderson St", "LOCATION_ZIPCODE": 2114, "LATITUDE": 42.359852, "LONGITUDE": -71.067904, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.067904, 42.359852 ] } } +, +{ "type": "Feature", "id": 161, "properties": { "CASE_ENQUIRY_ID": 101000947328.0, "OPEN_DT": "10\/16\/2013 10:10:40 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "5 Clarkson St Dorchester MA 02125", "fire_district": 7, "pwd_district": "03", "city_council_district": 3, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 8, "ward": "15", "precinct": 1504, "land_usage": "", "LOCATION_STREET_NAME": "5 Clarkson St", "LOCATION_ZIPCODE": 2125, "LATITUDE": 42.3594, "LONGITUDE": -71.0587, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.0587, 42.3594 ] } } +, +{ "type": "Feature", "id": 162, "properties": { "CASE_ENQUIRY_ID": 101001122926.0, "OPEN_DT": "07\/07\/2014 02:28:42 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "18 Hudson St Boston MA 02111", "fire_district": 4, "pwd_district": "1C", "city_council_district": 2, "police_district": "A1", "neighborhood": "Downtown \/ Financial District", "neighborhood_services_district": 4, "ward": "Ward 3", "precinct": 308, "land_usage": "RC", "LOCATION_STREET_NAME": "18 Hudson St", "LOCATION_ZIPCODE": 2111, "LATITUDE": 42.35052, "LONGITUDE": -71.059999, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.059999, 42.35052 ] } } +, +{ "type": "Feature", "id": 163, "properties": { "CASE_ENQUIRY_ID": 101001105708.0, "OPEN_DT": "06\/09\/2014 10:56:29 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "84 Bailey St Dorchester MA 02124", "fire_district": 8, "pwd_district": "07", "city_council_district": 4, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 8, "ward": "Ward 17", "precinct": 1711, "land_usage": "R3", "LOCATION_STREET_NAME": "84 Bailey St", "LOCATION_ZIPCODE": 2124, "LATITUDE": 42.28501, "LONGITUDE": -71.06522, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.06522, 42.28501 ] } } +, +{ "type": "Feature", "id": 164, "properties": { "CASE_ENQUIRY_ID": 101001024787.0, "OPEN_DT": "02\/12\/2014 11:41:14 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "40-42 Harrison Ave Boston MA 02111", "fire_district": 4, "pwd_district": "1C", "city_council_district": 2, "police_district": "A1", "neighborhood": "Downtown \/ Financial District", "neighborhood_services_district": 4, "ward": "Ward 3", "precinct": 308, "land_usage": "RC", "LOCATION_STREET_NAME": "40-42 Harrison Ave", "LOCATION_ZIPCODE": 2111, "LATITUDE": 42.351664, "LONGITUDE": -71.060968, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.060968, 42.351664 ] } } +, +{ "type": "Feature", "id": 165, "properties": { "CASE_ENQUIRY_ID": 101001025528.0, "OPEN_DT": "02\/13\/2014 01:02:25 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "6 Oxford Pl Boston MA 02111", "fire_district": 4, "pwd_district": "1C", "city_council_district": 2, "police_district": "A1", "neighborhood": "Downtown \/ Financial District", "neighborhood_services_district": 4, "ward": "Ward 3", "precinct": 308, "land_usage": "R4", "LOCATION_STREET_NAME": "6 Oxford Pl", "LOCATION_ZIPCODE": 2111, "LATITUDE": 42.35189, "LONGITUDE": -71.06084, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.06084, 42.35189 ] } } +, +{ "type": "Feature", "id": 166, "properties": { "CASE_ENQUIRY_ID": 101001119288.0, "OPEN_DT": "07\/01\/2014 10:10:31 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "435 Quincy St Dorchester MA 02125", "fire_district": 7, "pwd_district": "03", "city_council_district": 3, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 8, "ward": "Ward 15", "precinct": 1503, "land_usage": "A", "LOCATION_STREET_NAME": "435 Quincy St", "LOCATION_ZIPCODE": 2125, "LATITUDE": 42.30957, "LONGITUDE": -71.06706, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.06706, 42.30957 ] } } +, +{ "type": "Feature", "id": 167, "properties": { "CASE_ENQUIRY_ID": 101001060116.0, "OPEN_DT": "04\/03\/2014 09:25:05 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "27 Priscilla Rd Brighton MA 02135", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Allston \/ Brighton", "neighborhood_services_district": 15, "ward": "Ward 21", "precinct": 2113, "land_usage": "R2", "LOCATION_STREET_NAME": "27 Priscilla Rd", "LOCATION_ZIPCODE": 2135, "LATITUDE": 42.344559, "LONGITUDE": -71.151548, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.151548, 42.344559 ] } } +, +{ "type": "Feature", "id": 168, "properties": { "CASE_ENQUIRY_ID": 101000920969.0, "OPEN_DT": "09\/07\/2013 02:47:13 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "671 Lagrange St West Roxbury MA 02132", "fire_district": 12, "pwd_district": "06", "city_council_district": 6, "police_district": "E5", "neighborhood": "West Roxbury", "neighborhood_services_district": 12, "ward": "Ward 20", "precinct": 2017, "land_usage": "R1", "LOCATION_STREET_NAME": "671 Lagrange St", "LOCATION_ZIPCODE": 2132, "LATITUDE": 42.28842, "LONGITUDE": -71.16588, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.16588, 42.28842 ] } } +, +{ "type": "Feature", "id": 169, "properties": { "CASE_ENQUIRY_ID": 101000942814.0, "OPEN_DT": "10\/08\/2013 01:20:06 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "40 Zeller St Roslindale MA 02131", "fire_district": 9, "pwd_district": "06", "city_council_district": 5, "police_district": "E5", "neighborhood": "Roslindale", "neighborhood_services_district": 10, "ward": "Ward 20", "precinct": 2001, "land_usage": "R1", "LOCATION_STREET_NAME": "40 Zeller St", "LOCATION_ZIPCODE": 2131, "LATITUDE": 42.292, "LONGITUDE": -71.13683, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.13683, 42.292 ] } } +, +{ "type": "Feature", "id": 170, "properties": { "CASE_ENQUIRY_ID": 101001089226.0, "OPEN_DT": "05\/14\/2014 11:54:46 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "43 Jones Ave Dorchester MA 02124", "fire_district": 8, "pwd_district": "07", "city_council_district": 4, "police_district": "B3", "neighborhood": "Greater Mattapan", "neighborhood_services_district": 9, "ward": "Ward 14", "precinct": 1413, "land_usage": "RL", "LOCATION_STREET_NAME": "43 Jones Ave", "LOCATION_ZIPCODE": 2124, "LATITUDE": 42.286457, "LONGITUDE": -71.083668, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.083668, 42.286457 ] } } +, +{ "type": "Feature", "id": 171, "properties": { "CASE_ENQUIRY_ID": 101001082069.0, "OPEN_DT": "05\/05\/2014 01:31:24 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "35 Harwood St Dorchester MA 02124", "fire_district": 8, "pwd_district": "07", "city_council_district": 4, "police_district": "B3", "neighborhood": "Greater Mattapan", "neighborhood_services_district": 9, "ward": "Ward 14", "precinct": 1412, "land_usage": "CM", "LOCATION_STREET_NAME": "35 Harwood St", "LOCATION_ZIPCODE": 2124, "LATITUDE": 42.28585, "LONGITUDE": -71.0879, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.0879, 42.28585 ] } } +, +{ "type": "Feature", "id": 172, "properties": { "CASE_ENQUIRY_ID": 101001103144.0, "OPEN_DT": "06\/04\/2014 11:58:52 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "45 Sargent St Dorchester MA 02125", "fire_district": 7, "pwd_district": "03", "city_council_district": 7, "police_district": "B2", "neighborhood": "Roxbury", "neighborhood_services_district": 13, "ward": "Ward 13", "precinct": 1304, "land_usage": "R2", "LOCATION_STREET_NAME": "45 Sargent St", "LOCATION_ZIPCODE": 2125, "LATITUDE": 42.31488, "LONGITUDE": -71.07386, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.07386, 42.31488 ] } } +, +{ "type": "Feature", "id": 173, "properties": { "CASE_ENQUIRY_ID": 101000951114.0, "OPEN_DT": "10\/22\/2013 09:21:05 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "INTERSECTION of Courtney Rd & Russett Rd Boston MA", "fire_district": null, "pwd_district": "", "city_council_district": 6, "police_district": "", "neighborhood": "", "neighborhood_services_district": 12, "ward": "Ward 20", "precinct": 2019, "land_usage": "", "LOCATION_STREET_NAME": "INTERSECTION Courtney Rd & Russett Rd", "LOCATION_ZIPCODE": null, "LATITUDE": 42.330104, "LONGITUDE": -71.09494, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.09494, 42.330104 ] } } +, +{ "type": "Feature", "id": 174, "properties": { "CASE_ENQUIRY_ID": 101001128820.0, "OPEN_DT": "07\/15\/2014 07:35:06 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "24 Winston Rd Dorchester MA 02124", "fire_district": 8, "pwd_district": "07", "city_council_district": 4, "police_district": "B3", "neighborhood": "Greater Mattapan", "neighborhood_services_district": 9, "ward": "Ward 14", "precinct": 1413, "land_usage": "R1", "LOCATION_STREET_NAME": "24 Winston Rd", "LOCATION_ZIPCODE": 2124, "LATITUDE": 42.28513, "LONGITUDE": -71.08719, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.08719, 42.28513 ] } } +, +{ "type": "Feature", "id": 175, "properties": { "CASE_ENQUIRY_ID": 101001110815.0, "OPEN_DT": "06\/18\/2014 09:44:20 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "127 King St Dorchester MA 02122", "fire_district": 8, "pwd_district": "07", "city_council_district": 3, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 7, "ward": "Ward 16", "precinct": 1605, "land_usage": "R3", "LOCATION_STREET_NAME": "127 King St", "LOCATION_ZIPCODE": 2122, "LATITUDE": 42.29372, "LONGITUDE": -71.054, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.054, 42.29372 ] } } +, +{ "type": "Feature", "id": 176, "properties": { "CASE_ENQUIRY_ID": 101001124787.0, "OPEN_DT": "07\/09\/2014 11:44:43 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "11 Treadway Rd Dorchester MA 02125", "fire_district": 7, "pwd_district": "03", "city_council_district": 3, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 7, "ward": "Ward 13", "precinct": 1309, "land_usage": "R3", "LOCATION_STREET_NAME": "11 Treadway Rd", "LOCATION_ZIPCODE": 2125, "LATITUDE": 42.3134, "LONGITUDE": -71.05796, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.05796, 42.3134 ] } } +, +{ "type": "Feature", "id": 177, "properties": { "CASE_ENQUIRY_ID": 101000992229.0, "OPEN_DT": "12\/27\/2013 04:32:08 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "37 Parker St Charlestown MA 02129", "fire_district": 3, "pwd_district": "1A", "city_council_district": 1, "police_district": "A15", "neighborhood": "Charlestown", "neighborhood_services_district": 2, "ward": "Ward 2", "precinct": 207, "land_usage": "CM", "LOCATION_STREET_NAME": "37 Parker St", "LOCATION_ZIPCODE": 2129, "LATITUDE": 42.382767, "LONGITUDE": -71.079564, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.079564, 42.382767 ] } } +, +{ "type": "Feature", "id": 178, "properties": { "CASE_ENQUIRY_ID": 101001123105.0, "OPEN_DT": "07\/07\/2014 05:02:34 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "4 Centre St Roxbury MA 02119", "fire_district": 7, "pwd_district": "10B", "city_council_district": 7, "police_district": "B2", "neighborhood": "Roxbury", "neighborhood_services_district": 13, "ward": "Ward 9", "precinct": 905, "land_usage": "R3", "LOCATION_STREET_NAME": "4 Centre St", "LOCATION_ZIPCODE": 2119, "LATITUDE": 42.329777, "LONGITUDE": -71.091783, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.091783, 42.329777 ] } } +, +{ "type": "Feature", "id": 179, "properties": { "CASE_ENQUIRY_ID": 101001133661.0, "OPEN_DT": "07\/21\/2014 01:26:31 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "11 Monument St Charlestown MA 02129", "fire_district": 3, "pwd_district": "1A", "city_council_district": 1, "police_district": "A15", "neighborhood": "Charlestown", "neighborhood_services_district": 2, "ward": "Ward 2", "precinct": 204, "land_usage": "R2", "LOCATION_STREET_NAME": "11 Monument St", "LOCATION_ZIPCODE": 2129, "LATITUDE": 42.37744, "LONGITUDE": -71.06001, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.06001, 42.37744 ] } } +, +{ "type": "Feature", "id": 180, "properties": { "CASE_ENQUIRY_ID": 101001116613.0, "OPEN_DT": "06\/26\/2014 10:43:29 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "39 Saunders St Allston MA 02134", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Allston \/ Brighton", "neighborhood_services_district": 15, "ward": "Ward 21", "precinct": 2106, "land_usage": "R1", "LOCATION_STREET_NAME": "39 Saunders St", "LOCATION_ZIPCODE": 2134, "LATITUDE": 42.35332, "LONGITUDE": -71.14195, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.14195, 42.35332 ] } } +, +{ "type": "Feature", "id": 181, "properties": { "CASE_ENQUIRY_ID": 101001107384.0, "OPEN_DT": "06\/11\/2014 01:51:33 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "29 Speedwell St Dorchester MA 02122", "fire_district": 7, "pwd_district": "03", "city_council_district": 3, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 8, "ward": "Ward 15", "precinct": 1507, "land_usage": "R1", "LOCATION_STREET_NAME": "29 Speedwell St", "LOCATION_ZIPCODE": 2122, "LATITUDE": 42.30413, "LONGITUDE": -71.0669, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.0669, 42.30413 ] } } +, +{ "type": "Feature", "id": 182, "properties": { "CASE_ENQUIRY_ID": 101001050923.0, "OPEN_DT": "03\/20\/2014 01:12:47 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "10 Robey St Roxbury MA 02119", "fire_district": 7, "pwd_district": "03", "city_council_district": 7, "police_district": "B2", "neighborhood": "Roxbury", "neighborhood_services_district": 13, "ward": "Ward 8", "precinct": 806, "land_usage": "CD", "LOCATION_STREET_NAME": "10 Robey St", "LOCATION_ZIPCODE": 2119, "LATITUDE": 42.322723, "LONGITUDE": -71.068079, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.068079, 42.322723 ] } } +, +{ "type": "Feature", "id": 183, "properties": { "CASE_ENQUIRY_ID": 101000952418.0, "OPEN_DT": "10\/23\/2013 11:10:36 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "37 Newburg St Roslindale MA 02131", "fire_district": 12, "pwd_district": "06", "city_council_district": 5, "police_district": "E5", "neighborhood": "Roslindale", "neighborhood_services_district": 10, "ward": "Ward 20", "precinct": 2002, "land_usage": "R3", "LOCATION_STREET_NAME": "37 Newburg St", "LOCATION_ZIPCODE": 2131, "LATITUDE": 42.28535, "LONGITUDE": -71.13937, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.13937, 42.28535 ] } } +, +{ "type": "Feature", "id": 184, "properties": { "CASE_ENQUIRY_ID": 101001089027.0, "OPEN_DT": "05\/14\/2014 10:00:02 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "105 Allston St Allston MA 02134", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Allston \/ Brighton", "neighborhood_services_district": 15, "ward": "Ward 21", "precinct": 2106, "land_usage": "E", "LOCATION_STREET_NAME": "105 Allston St", "LOCATION_ZIPCODE": 2134, "LATITUDE": 42.349897, "LONGITUDE": -71.137178, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.137178, 42.349897 ] } } +, +{ "type": "Feature", "id": 185, "properties": { "CASE_ENQUIRY_ID": 101000902340.0, "OPEN_DT": "08\/15\/2013 11:17:02 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "14 Furbush Rd West Roxbury MA 02132", "fire_district": 12, "pwd_district": "06", "city_council_district": 6, "police_district": "E5", "neighborhood": "West Roxbury", "neighborhood_services_district": 12, "ward": "Ward 20", "precinct": 2017, "land_usage": "R1", "LOCATION_STREET_NAME": "14 Furbush Rd", "LOCATION_ZIPCODE": 2132, "LATITUDE": 42.292763, "LONGITUDE": -71.168501, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.168501, 42.292763 ] } } +, +{ "type": "Feature", "id": 186, "properties": { "CASE_ENQUIRY_ID": 101001130648.0, "OPEN_DT": "07\/16\/2014 08:10:11 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "77 Sawyer Ave Dorchester MA 02125", "fire_district": 7, "pwd_district": "03", "city_council_district": 3, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 7, "ward": "Ward 13", "precinct": 1309, "land_usage": "CM", "LOCATION_STREET_NAME": "77 Sawyer Ave", "LOCATION_ZIPCODE": 2125, "LATITUDE": 42.31264, "LONGITUDE": -71.06176, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.06176, 42.31264 ] } } +, +{ "type": "Feature", "id": 187, "properties": { "CASE_ENQUIRY_ID": 101001116478.0, "OPEN_DT": "06\/26\/2014 08:56:13 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "4873 Washington St West Roxbury MA 02132", "fire_district": 12, "pwd_district": "06", "city_council_district": 6, "police_district": "E5", "neighborhood": "West Roxbury", "neighborhood_services_district": 12, "ward": "Ward 20", "precinct": 2010, "land_usage": "CM", "LOCATION_STREET_NAME": "4873 Washington St", "LOCATION_ZIPCODE": 2132, "LATITUDE": 42.27037, "LONGITUDE": -71.14738, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.14738, 42.27037 ] } } +, +{ "type": "Feature", "id": 188, "properties": { "CASE_ENQUIRY_ID": 101000934740.0, "OPEN_DT": "09\/26\/2013 09:07:40 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "49 Bellevue St Dorchester MA 02125", "fire_district": 7, "pwd_district": "03", "city_council_district": 3, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 8, "ward": "Ward 15", "precinct": 1501, "land_usage": "R3", "LOCATION_STREET_NAME": "49 Bellevue St", "LOCATION_ZIPCODE": 2125, "LATITUDE": 42.30974, "LONGITUDE": -71.06851, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.06851, 42.30974 ] } } +, +{ "type": "Feature", "id": 189, "properties": { "CASE_ENQUIRY_ID": 101001108180.0, "OPEN_DT": "06\/12\/2014 08:29:09 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "9 Forbes St Jamaica Plain MA 02130", "fire_district": 9, "pwd_district": "02", "city_council_district": 6, "police_district": "E13", "neighborhood": "Jamaica Plain", "neighborhood_services_district": 11, "ward": "19", "precinct": 1901, "land_usage": "R3", "LOCATION_STREET_NAME": "9 Forbes St", "LOCATION_ZIPCODE": 2130, "LATITUDE": 42.321968, "LONGITUDE": -71.108137, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.108137, 42.321968 ] } } +, +{ "type": "Feature", "id": 190, "properties": { "CASE_ENQUIRY_ID": 101001109610.0, "OPEN_DT": "06\/16\/2014 01:52:23 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "INTERSECTION of Greenough Ave & Greenough Park Jamaica Plain MA", "fire_district": 9, "pwd_district": "02", "city_council_district": 6, "police_district": "E13", "neighborhood": "Jamaica Plain", "neighborhood_services_district": 11, "ward": "Ward 19", "precinct": 1906, "land_usage": "", "LOCATION_STREET_NAME": "INTERSECTION Greenough Ave & Greenough Park", "LOCATION_ZIPCODE": null, "LATITUDE": 42.28862, "LONGITUDE": -71.05341, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.05341, 42.28862 ] } } +, +{ "type": "Feature", "id": 191, "properties": { "CASE_ENQUIRY_ID": 101001007320.0, "OPEN_DT": "01\/17\/2014 07:00:02 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "120-0 Byron St East Boston MA 02128", "fire_district": 1, "pwd_district": "09", "city_council_district": 1, "police_district": "A7", "neighborhood": "East Boston", "neighborhood_services_district": 1, "ward": "01", "precinct": 111, "land_usage": "", "LOCATION_STREET_NAME": "120-0 Byron St", "LOCATION_ZIPCODE": 2128, "LATITUDE": 42.38387, "LONGITUDE": -71.016271, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.016271, 42.38387 ] } } +, +{ "type": "Feature", "id": 192, "properties": { "CASE_ENQUIRY_ID": 101001120948.0, "OPEN_DT": "07\/03\/2014 08:21:56 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "47 Savin Hill Ave Dorchester MA 02125", "fire_district": 7, "pwd_district": "03", "city_council_district": 3, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 8, "ward": "Ward 15", "precinct": 1506, "land_usage": "R3", "LOCATION_STREET_NAME": "47 Savin Hill Ave", "LOCATION_ZIPCODE": 2125, "LATITUDE": 42.31274, "LONGITUDE": -71.05656, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.05656, 42.31274 ] } } +, +{ "type": "Feature", "id": 193, "properties": { "CASE_ENQUIRY_ID": 101000907761.0, "OPEN_DT": "08\/21\/2013 07:57:24 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "439 Shawmut Ave Roxbury MA 02118", "fire_district": 4, "pwd_district": "1C", "city_council_district": 2, "police_district": "D4", "neighborhood": "South End", "neighborhood_services_district": 6, "ward": "Ward 9", "precinct": 901, "land_usage": "CM", "LOCATION_STREET_NAME": "439 Shawmut Ave", "LOCATION_ZIPCODE": 2118, "LATITUDE": 42.33966, "LONGITUDE": -71.07483, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.07483, 42.33966 ] } } +, +{ "type": "Feature", "id": 194, "properties": { "CASE_ENQUIRY_ID": 101001090318.0, "OPEN_DT": "05\/15\/2014 01:20:01 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "25 Breed St East Boston MA 02128", "fire_district": 1, "pwd_district": "09", "city_council_district": 1, "police_district": "A7", "neighborhood": "East Boston", "neighborhood_services_district": 1, "ward": "Ward 1", "precinct": 113, "land_usage": "CM", "LOCATION_STREET_NAME": "25 Breed St", "LOCATION_ZIPCODE": 2128, "LATITUDE": 42.38802, "LONGITUDE": -71.00631, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.00631, 42.38802 ] } } +, +{ "type": "Feature", "id": 195, "properties": { "CASE_ENQUIRY_ID": 101001115513.0, "OPEN_DT": "06\/25\/2014 08:21:05 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "", "fire_district": null, "pwd_district": "", "city_council_district": null, "police_district": "", "neighborhood": "", "neighborhood_services_district": null, "ward": "", "precinct": null, "land_usage": "", "LOCATION_STREET_NAME": "", "LOCATION_ZIPCODE": null, "LATITUDE": 42.3594, "LONGITUDE": -71.0587, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.0587, 42.3594 ] } } +, +{ "type": "Feature", "id": 196, "properties": { "CASE_ENQUIRY_ID": 101000989133.0, "OPEN_DT": "12\/20\/2013 01:15:14 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "36 Gordon St Allston MA 02134", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Allston \/ Brighton", "neighborhood_services_district": 15, "ward": "Ward 21", "precinct": 2106, "land_usage": "R2", "LOCATION_STREET_NAME": "36 Gordon St", "LOCATION_ZIPCODE": 2134, "LATITUDE": 42.35211, "LONGITUDE": -71.13994, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.13994, 42.35211 ] } } +, +{ "type": "Feature", "id": 197, "properties": { "CASE_ENQUIRY_ID": 101001080559.0, "OPEN_DT": "05\/02\/2014 03:29:05 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "INTERSECTION of Park St & Waldeck St Dorchester MA", "fire_district": 8, "pwd_district": "07", "city_council_district": 4, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 9, "ward": "Ward 17", "precinct": 1703, "land_usage": "", "LOCATION_STREET_NAME": "INTERSECTION Park St & Waldeck St", "LOCATION_ZIPCODE": null, "LATITUDE": 42.27246, "LONGITUDE": -71.16457, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.16457, 42.27246 ] } } +, +{ "type": "Feature", "id": 198, "properties": { "CASE_ENQUIRY_ID": 101000914034.0, "OPEN_DT": "08\/30\/2013 08:21:30 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "66 Greenwich St Dorchester MA 02122", "fire_district": 7, "pwd_district": "03", "city_council_district": 3, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 8, "ward": "Ward 15", "precinct": 1506, "land_usage": "R3", "LOCATION_STREET_NAME": "66 Greenwich St", "LOCATION_ZIPCODE": 2122, "LATITUDE": 42.30444, "LONGITUDE": -71.05639, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.05639, 42.30444 ] } } +, +{ "type": "Feature", "id": 199, "properties": { "CASE_ENQUIRY_ID": 101001127747.0, "OPEN_DT": "07\/14\/2014 07:36:10 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "3 Trent St Dorchester MA 02125", "fire_district": 7, "pwd_district": "03", "city_council_district": 3, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 8, "ward": "Ward 15", "precinct": 1504, "land_usage": "RL", "LOCATION_STREET_NAME": "3 Trent St", "LOCATION_ZIPCODE": 2125, "LATITUDE": 42.309239, "LONGITUDE": -71.065412, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.065412, 42.309239 ] } } +, +{ "type": "Feature", "id": 200, "properties": { "CASE_ENQUIRY_ID": 101000877823.0, "OPEN_DT": "07\/11\/2013 08:14:08 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "1650 VFW Pkwy West Roxbury MA 02132", "fire_district": 12, "pwd_district": "06", "city_council_district": 6, "police_district": "E5", "neighborhood": "West Roxbury", "neighborhood_services_district": 12, "ward": "Ward 20", "precinct": 2016, "land_usage": "C", "LOCATION_STREET_NAME": "1650 VFW Pkwy", "LOCATION_ZIPCODE": 2132, "LATITUDE": 42.264402, "LONGITUDE": -71.16782, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.16782, 42.264402 ] } } +, +{ "type": "Feature", "id": 201, "properties": { "CASE_ENQUIRY_ID": 101001119937.0, "OPEN_DT": "07\/02\/2014 07:14:23 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "19 Branch St Boston MA 02108", "fire_district": 3, "pwd_district": "1B", "city_council_district": 8, "police_district": "A1", "neighborhood": "Beacon Hill", "neighborhood_services_district": 14, "ward": "Ward 5", "precinct": 503, "land_usage": "R2", "LOCATION_STREET_NAME": "19 Branch St", "LOCATION_ZIPCODE": 2108, "LATITUDE": 42.35683, "LONGITUDE": -71.06868, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.06868, 42.35683 ] } } +, +{ "type": "Feature", "id": 202, "properties": { "CASE_ENQUIRY_ID": 101001123006.0, "OPEN_DT": "07\/07\/2014 03:18:09 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "231-233 Amory St Jamaica Plain MA 02130", "fire_district": 9, "pwd_district": "02", "city_council_district": 6, "police_district": "E13", "neighborhood": "Jamaica Plain", "neighborhood_services_district": 11, "ward": "Ward 11", "precinct": 1106, "land_usage": "R2", "LOCATION_STREET_NAME": "231-233 Amory St", "LOCATION_ZIPCODE": 2130, "LATITUDE": 42.31616, "LONGITUDE": -71.10375, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.10375, 42.31616 ] } } +, +{ "type": "Feature", "id": 203, "properties": { "CASE_ENQUIRY_ID": 101000882280.0, "OPEN_DT": "07\/18\/2013 12:44:14 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "Case Closed VIOCOR: Violation Corrected", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "919 Beacon St Boston MA 02215", "fire_district": null, "pwd_district": "10A", "city_council_district": 8, "police_district": "D4", "neighborhood": "Fenway \/ Kenmore \/ Audubon Circle \/ Longwood", "neighborhood_services_district": 14, "ward": "Ward 21", "precinct": 2101, "land_usage": "CM", "LOCATION_STREET_NAME": "919 Beacon St", "LOCATION_ZIPCODE": 2215, "LATITUDE": 42.34596, "LONGITUDE": -71.10626, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.10626, 42.34596 ] } } +, +{ "type": "Feature", "id": 204, "properties": { "CASE_ENQUIRY_ID": 101001123657.0, "OPEN_DT": "07\/08\/2014 10:36:47 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "235-237 Amory St Jamaica Plain MA 02130", "fire_district": 9, "pwd_district": "02", "city_council_district": 6, "police_district": "E13", "neighborhood": "Jamaica Plain", "neighborhood_services_district": 11, "ward": "Ward 11", "precinct": 1106, "land_usage": "R2", "LOCATION_STREET_NAME": "235-237 Amory St", "LOCATION_ZIPCODE": 2130, "LATITUDE": 42.31605, "LONGITUDE": -71.10385, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.10385, 42.31605 ] } } +, +{ "type": "Feature", "id": 205, "properties": { "CASE_ENQUIRY_ID": 101000950835.0, "OPEN_DT": "10\/21\/2013 08:15:38 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "1522 VFW Pkwy West Roxbury MA 02132", "fire_district": 12, "pwd_district": "06", "city_council_district": 6, "police_district": "E5", "neighborhood": "West Roxbury", "neighborhood_services_district": 12, "ward": "Ward 20", "precinct": 2016, "land_usage": "CD", "LOCATION_STREET_NAME": "1522 VFW Pkwy", "LOCATION_ZIPCODE": 2132, "LATITUDE": 42.268512, "LONGITUDE": -71.170859, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.170859, 42.268512 ] } } +, +{ "type": "Feature", "id": 206, "properties": { "CASE_ENQUIRY_ID": 101001093354.0, "OPEN_DT": "05\/20\/2014 09:15:04 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "51-53 Woodcliff St Dorchester MA 02125", "fire_district": 7, "pwd_district": "03", "city_council_district": 7, "police_district": "B2", "neighborhood": "Roxbury", "neighborhood_services_district": 13, "ward": "Ward 13", "precinct": 1301, "land_usage": "RL", "LOCATION_STREET_NAME": "51-53 Woodcliff St", "LOCATION_ZIPCODE": 2125, "LATITUDE": 42.315615, "LONGITUDE": -71.075929, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.075929, 42.315615 ] } } +, +{ "type": "Feature", "id": 207, "properties": { "CASE_ENQUIRY_ID": 101001061690.0, "OPEN_DT": "04\/05\/2014 05:17:22 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "1-4 Saint George St Roxbury MA 02118", "fire_district": 4, "pwd_district": "1C", "city_council_district": 2, "police_district": "D4", "neighborhood": "South End", "neighborhood_services_district": 6, "ward": "08", "precinct": 802, "land_usage": "", "LOCATION_STREET_NAME": "1-4 Saint George St", "LOCATION_ZIPCODE": 2118, "LATITUDE": 42.338562, "LONGITUDE": -71.071563, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.071563, 42.338562 ] } } +, +{ "type": "Feature", "id": 208, "properties": { "CASE_ENQUIRY_ID": 101000927168.0, "OPEN_DT": "09\/14\/2013 01:29:19 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "44 Boylston St Jamaica Plain MA 02130", "fire_district": 9, "pwd_district": "02", "city_council_district": 6, "police_district": "E13", "neighborhood": "Jamaica Plain", "neighborhood_services_district": 11, "ward": "Ward 19", "precinct": 1901, "land_usage": "R3", "LOCATION_STREET_NAME": "44 Boylston St", "LOCATION_ZIPCODE": 2130, "LATITUDE": 42.3181, "LONGITUDE": -71.1082, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.1082, 42.3181 ] } } +, +{ "type": "Feature", "id": 209, "properties": { "CASE_ENQUIRY_ID": 101001101289.0, "OPEN_DT": "06\/02\/2014 07:43:07 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "43 Jones Ave Dorchester MA 02124", "fire_district": 8, "pwd_district": "07", "city_council_district": 4, "police_district": "B3", "neighborhood": "Greater Mattapan", "neighborhood_services_district": 9, "ward": "Ward 14", "precinct": 1413, "land_usage": "RL", "LOCATION_STREET_NAME": "43 Jones Ave", "LOCATION_ZIPCODE": 2124, "LATITUDE": 42.286457, "LONGITUDE": -71.083668, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.083668, 42.286457 ] } } +, +{ "type": "Feature", "id": 210, "properties": { "CASE_ENQUIRY_ID": 101001119388.0, "OPEN_DT": "07\/01\/2014 11:15:18 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "INTERSECTION of Blakemore St & Hyde Park Ave Roslindale MA", "fire_district": 12, "pwd_district": "02", "city_council_district": 5, "police_district": "E18", "neighborhood": "Roslindale", "neighborhood_services_district": 10, "ward": "Ward 18", "precinct": 1807, "land_usage": "", "LOCATION_STREET_NAME": "INTERSECTION Blakemore St & Hyde Park Ave", "LOCATION_ZIPCODE": null, "LATITUDE": 42.28283, "LONGITUDE": -71.13091, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.13091, 42.28283 ] } } +, +{ "type": "Feature", "id": 211, "properties": { "CASE_ENQUIRY_ID": 101001117088.0, "OPEN_DT": "06\/27\/2014 07:23:39 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "79-81 Richfield St Dorchester MA 02121", "fire_district": 7, "pwd_district": "03", "city_council_district": 4, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 8, "ward": "Ward 15", "precinct": 1502, "land_usage": "R3", "LOCATION_STREET_NAME": "79-81 Richfield St", "LOCATION_ZIPCODE": 2121, "LATITUDE": 42.30565, "LONGITUDE": -71.07017, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.07017, 42.30565 ] } } +, +{ "type": "Feature", "id": 212, "properties": { "CASE_ENQUIRY_ID": 101000864117.0, "OPEN_DT": "06\/20\/2013 01:54:49 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "", "fire_district": null, "pwd_district": "", "city_council_district": null, "police_district": "", "neighborhood": "", "neighborhood_services_district": null, "ward": "", "precinct": null, "land_usage": "", "LOCATION_STREET_NAME": "", "LOCATION_ZIPCODE": null, "LATITUDE": 42.3594, "LONGITUDE": -71.0587, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.0587, 42.3594 ] } } +, +{ "type": "Feature", "id": 213, "properties": { "CASE_ENQUIRY_ID": 101000923977.0, "OPEN_DT": "09\/11\/2013 10:45:00 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "85 Hamilton St Dorchester MA 02125", "fire_district": 7, "pwd_district": "03", "city_council_district": 4, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 8, "ward": "Ward 15", "precinct": 1502, "land_usage": "R3", "LOCATION_STREET_NAME": "85 Hamilton St", "LOCATION_ZIPCODE": 2125, "LATITUDE": 42.30766, "LONGITUDE": -71.06926, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.06926, 42.30766 ] } } +, +{ "type": "Feature", "id": 214, "properties": { "CASE_ENQUIRY_ID": 101001024863.0, "OPEN_DT": "02\/12\/2014 12:38:29 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "36-38 Harrison Ave Boston MA 02111", "fire_district": 4, "pwd_district": "1C", "city_council_district": 2, "police_district": "A1", "neighborhood": "Downtown \/ Financial District", "neighborhood_services_district": 4, "ward": "Ward 3", "precinct": 308, "land_usage": "RC", "LOCATION_STREET_NAME": "36-38 Harrison Ave", "LOCATION_ZIPCODE": 2111, "LATITUDE": 42.35177, "LONGITUDE": -71.061, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.061, 42.35177 ] } } +, +{ "type": "Feature", "id": 215, "properties": { "CASE_ENQUIRY_ID": 101001105294.0, "OPEN_DT": "06\/08\/2014 05:32:08 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "", "fire_district": null, "pwd_district": "", "city_council_district": null, "police_district": "", "neighborhood": "", "neighborhood_services_district": null, "ward": "", "precinct": null, "land_usage": "", "LOCATION_STREET_NAME": "", "LOCATION_ZIPCODE": null, "LATITUDE": 42.3594, "LONGITUDE": -71.0587, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.0587, 42.3594 ] } } +, +{ "type": "Feature", "id": 216, "properties": { "CASE_ENQUIRY_ID": 101000879520.0, "OPEN_DT": "07\/15\/2013 11:34:50 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "1650 VFW Pkwy West Roxbury MA 02132", "fire_district": 12, "pwd_district": "06", "city_council_district": 6, "police_district": "E5", "neighborhood": "West Roxbury", "neighborhood_services_district": 12, "ward": "Ward 20", "precinct": 2016, "land_usage": "C", "LOCATION_STREET_NAME": "1650 VFW Pkwy", "LOCATION_ZIPCODE": 2132, "LATITUDE": 42.264402, "LONGITUDE": -71.16782, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.16782, 42.264402 ] } } +, +{ "type": "Feature", "id": 217, "properties": { "CASE_ENQUIRY_ID": 101001051627.0, "OPEN_DT": "03\/21\/2014 10:36:17 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "4 Concord Sq Roxbury MA 02118", "fire_district": 4, "pwd_district": "1C", "city_council_district": 7, "police_district": "D4", "neighborhood": "South End", "neighborhood_services_district": 6, "ward": "Ward 4", "precinct": 404, "land_usage": "CM", "LOCATION_STREET_NAME": "4 Concord Sq", "LOCATION_ZIPCODE": 2118, "LATITUDE": 42.34076, "LONGITUDE": -71.07859, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.07859, 42.34076 ] } } +, +{ "type": "Feature", "id": 218, "properties": { "CASE_ENQUIRY_ID": 101001097858.0, "OPEN_DT": "05\/27\/2014 10:52:52 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "455 Massachusetts Ave Roxbury MA 02118", "fire_district": 9, "pwd_district": "10B", "city_council_district": 7, "police_district": "D4", "neighborhood": "Roxbury", "neighborhood_services_district": 13, "ward": "Ward 9", "precinct": 903, "land_usage": "CM", "LOCATION_STREET_NAME": "455 Massachusetts Ave", "LOCATION_ZIPCODE": 2118, "LATITUDE": 42.34013, "LONGITUDE": -71.08156, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.08156, 42.34013 ] } } +, +{ "type": "Feature", "id": 219, "properties": { "CASE_ENQUIRY_ID": 101001124062.0, "OPEN_DT": "07\/08\/2014 02:36:09 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "761-765 Morton St Mattapan MA 02126", "fire_district": 8, "pwd_district": "07", "city_council_district": 4, "police_district": "B3", "neighborhood": "Greater Mattapan", "neighborhood_services_district": 9, "ward": "Ward 14", "precinct": 1405, "land_usage": "C", "LOCATION_STREET_NAME": "761-765 Morton St", "LOCATION_ZIPCODE": 2126, "LATITUDE": 42.283478, "LONGITUDE": -71.089409, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.089409, 42.283478 ] } } +, +{ "type": "Feature", "id": 220, "properties": { "CASE_ENQUIRY_ID": 101001025529.0, "OPEN_DT": "02\/13\/2014 01:05:12 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "7 Oxford Pl Boston MA 02111", "fire_district": 4, "pwd_district": "1C", "city_council_district": 2, "police_district": "A1", "neighborhood": "Downtown \/ Financial District", "neighborhood_services_district": 4, "ward": "Ward 3", "precinct": 308, "land_usage": "R4", "LOCATION_STREET_NAME": "7 Oxford Pl", "LOCATION_ZIPCODE": 2111, "LATITUDE": 42.351847, "LONGITUDE": -71.060822, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.060822, 42.351847 ] } } +, +{ "type": "Feature", "id": 221, "properties": { "CASE_ENQUIRY_ID": 101001105964.0, "OPEN_DT": "06\/09\/2014 02:35:07 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "47 Strathmore Rd Brighton MA 02135", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Allston \/ Brighton", "neighborhood_services_district": 15, "ward": "Ward 21", "precinct": 2114, "land_usage": "R3", "LOCATION_STREET_NAME": "47 Strathmore Rd", "LOCATION_ZIPCODE": 2135, "LATITUDE": 42.33775, "LONGITUDE": -71.14717, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.14717, 42.33775 ] } } +, +{ "type": "Feature", "id": 222, "properties": { "CASE_ENQUIRY_ID": 101001024857.0, "OPEN_DT": "02\/12\/2014 12:33:13 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "28 Harrison Ave Boston MA 02111", "fire_district": 4, "pwd_district": "1C", "city_council_district": 2, "police_district": "A1", "neighborhood": "Downtown \/ Financial District", "neighborhood_services_district": 4, "ward": "Ward 3", "precinct": 308, "land_usage": "RC", "LOCATION_STREET_NAME": "28 Harrison Ave", "LOCATION_ZIPCODE": 2111, "LATITUDE": 42.351964, "LONGITUDE": -71.06103, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.06103, 42.351964 ] } } +, +{ "type": "Feature", "id": 223, "properties": { "CASE_ENQUIRY_ID": 101000919994.0, "OPEN_DT": "09\/06\/2013 08:41:06 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "27 Thornley St Dorchester MA 02125", "fire_district": 7, "pwd_district": "03", "city_council_district": 3, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 7, "ward": "Ward 13", "precinct": 1309, "land_usage": "R2", "LOCATION_STREET_NAME": "27 Thornley St", "LOCATION_ZIPCODE": 2125, "LATITUDE": 42.31445, "LONGITUDE": -71.05918, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.05918, 42.31445 ] } } +, +{ "type": "Feature", "id": 224, "properties": { "CASE_ENQUIRY_ID": 101001051893.0, "OPEN_DT": "03\/21\/2014 02:32:53 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "41 Orkney Rd Brighton MA 02135", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Allston \/ Brighton", "neighborhood_services_district": 15, "ward": "Ward 21", "precinct": 2114, "land_usage": "R3", "LOCATION_STREET_NAME": "41 Orkney Rd", "LOCATION_ZIPCODE": 2135, "LATITUDE": 42.33705, "LONGITUDE": -71.14966, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.14966, 42.33705 ] } } +, +{ "type": "Feature", "id": 225, "properties": { "CASE_ENQUIRY_ID": 101001099571.0, "OPEN_DT": "05\/29\/2014 11:06:02 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "66 Phillips St Boston MA 02114", "fire_district": 3, "pwd_district": "1B", "city_council_district": 8, "police_district": "A1", "neighborhood": "Beacon Hill", "neighborhood_services_district": 14, "ward": "Ward 5", "precinct": 504, "land_usage": "R3", "LOCATION_STREET_NAME": "66 Phillips St", "LOCATION_ZIPCODE": 2114, "LATITUDE": 42.36018, "LONGITUDE": -71.06904, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.06904, 42.36018 ] } } +, +{ "type": "Feature", "id": 226, "properties": { "CASE_ENQUIRY_ID": 101000952618.0, "OPEN_DT": "10\/23\/2013 01:13:39 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "79 Brayton Rd Brighton MA 02135", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Allston \/ Brighton", "neighborhood_services_district": 15, "ward": "Ward 22", "precinct": 2204, "land_usage": "R2", "LOCATION_STREET_NAME": "79 Brayton Rd", "LOCATION_ZIPCODE": 2135, "LATITUDE": 42.349017, "LONGITUDE": -71.170317, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.170317, 42.349017 ] } } +, +{ "type": "Feature", "id": 227, "properties": { "CASE_ENQUIRY_ID": 101001124034.0, "OPEN_DT": "07\/08\/2014 02:18:26 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "61 Beach St Boston MA 02111", "fire_district": 4, "pwd_district": "1C", "city_council_district": 2, "police_district": "A1", "neighborhood": "Downtown \/ Financial District", "neighborhood_services_district": 4, "ward": "Ward 3", "precinct": 308, "land_usage": "RC", "LOCATION_STREET_NAME": "61 Beach St", "LOCATION_ZIPCODE": 2111, "LATITUDE": 42.35115, "LONGITUDE": -71.06025, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.06025, 42.35115 ] } } +, +{ "type": "Feature", "id": 228, "properties": { "CASE_ENQUIRY_ID": 101001106442.0, "OPEN_DT": "06\/10\/2014 10:41:29 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "26 School St Jamaica Plain MA 02130", "fire_district": 9, "pwd_district": "02", "city_council_district": 7, "police_district": "E13", "neighborhood": "Jamaica Plain", "neighborhood_services_district": 11, "ward": "Ward 11", "precinct": 1105, "land_usage": "R4", "LOCATION_STREET_NAME": "26 School St", "LOCATION_ZIPCODE": 2130, "LATITUDE": 42.31297, "LONGITUDE": -71.09732, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.09732, 42.31297 ] } } +, +{ "type": "Feature", "id": 229, "properties": { "CASE_ENQUIRY_ID": 101001077579.0, "OPEN_DT": "04\/29\/2014 09:00:25 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "4 Lorne St Dorchester MA 02124", "fire_district": 8, "pwd_district": "07", "city_council_district": 4, "police_district": "B3", "neighborhood": "Greater Mattapan", "neighborhood_services_district": 9, "ward": "Ward 14", "precinct": 1409, "land_usage": "A", "LOCATION_STREET_NAME": "4 Lorne St", "LOCATION_ZIPCODE": 2124, "LATITUDE": 42.29314, "LONGITUDE": -71.08993, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.08993, 42.29314 ] } } +, +{ "type": "Feature", "id": 230, "properties": { "CASE_ENQUIRY_ID": 101000920447.0, "OPEN_DT": "09\/06\/2013 02:27:41 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "Case Closed NOVIO: No Violation Found\/No Cause", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "180 Leyden St East Boston MA 02128", "fire_district": 1, "pwd_district": "09", "city_council_district": 1, "police_district": "A7", "neighborhood": "East Boston", "neighborhood_services_district": 1, "ward": "Ward 1", "precinct": 113, "land_usage": "R2", "LOCATION_STREET_NAME": "180 Leyden St", "LOCATION_ZIPCODE": 2128, "LATITUDE": 42.38886, "LONGITUDE": -71.00463, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.00463, 42.38886 ] } } +, +{ "type": "Feature", "id": 231, "properties": { "CASE_ENQUIRY_ID": 101001120049.0, "OPEN_DT": "07\/02\/2014 08:23:03 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "817 South St Roslindale MA 02131", "fire_district": 9, "pwd_district": "06", "city_council_district": 5, "police_district": "E5", "neighborhood": "Roslindale", "neighborhood_services_district": 10, "ward": "Ward 20", "precinct": 2004, "land_usage": "R1", "LOCATION_STREET_NAME": "817 South St", "LOCATION_ZIPCODE": 2131, "LATITUDE": 42.28822, "LONGITUDE": -71.13101, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.13101, 42.28822 ] } } +, +{ "type": "Feature", "id": 232, "properties": { "CASE_ENQUIRY_ID": 101001117132.0, "OPEN_DT": "06\/27\/2014 08:34:03 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "24 Heath St Jamaica Plain MA 02130", "fire_district": 9, "pwd_district": "10A", "city_council_district": 6, "police_district": "E13", "neighborhood": "Jamaica Plain", "neighborhood_services_district": 11, "ward": "Ward 10", "precinct": 1007, "land_usage": "E", "LOCATION_STREET_NAME": "24 Heath St", "LOCATION_ZIPCODE": 2130, "LATITUDE": 42.32486, "LONGITUDE": -71.09944, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.09944, 42.32486 ] } } +, +{ "type": "Feature", "id": 233, "properties": { "CASE_ENQUIRY_ID": 101001034566.0, "OPEN_DT": "02\/24\/2014 07:24:21 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "487-489 Ashmont St Dorchester MA 02122", "fire_district": 8, "pwd_district": "07", "city_council_district": 3, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 7, "ward": "Ward 16", "precinct": 1609, "land_usage": "R2", "LOCATION_STREET_NAME": "487-489 Ashmont St", "LOCATION_ZIPCODE": 2122, "LATITUDE": 42.28868, "LONGITUDE": -71.05322, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.05322, 42.28868 ] } } +, +{ "type": "Feature", "id": 234, "properties": { "CASE_ENQUIRY_ID": 101001099032.0, "OPEN_DT": "05\/28\/2014 02:21:18 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "145 Lexington St East Boston MA 02128", "fire_district": 1, "pwd_district": "09", "city_council_district": 1, "police_district": "A7", "neighborhood": "East Boston", "neighborhood_services_district": 1, "ward": "Ward 1", "precinct": 109, "land_usage": "R4", "LOCATION_STREET_NAME": "145 Lexington St", "LOCATION_ZIPCODE": 2128, "LATITUDE": 42.37871, "LONGITUDE": -71.03439, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.03439, 42.37871 ] } } +, +{ "type": "Feature", "id": 235, "properties": { "CASE_ENQUIRY_ID": 101001100677.0, "OPEN_DT": "05\/30\/2014 05:56:28 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "46 Gardner St Allston MA 02134", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Allston \/ Brighton", "neighborhood_services_district": 15, "ward": "Ward 21", "precinct": 2104, "land_usage": "R3", "LOCATION_STREET_NAME": "46 Gardner St", "LOCATION_ZIPCODE": 2134, "LATITUDE": 42.35382, "LONGITUDE": -71.12912, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.12912, 42.35382 ] } } +, +{ "type": "Feature", "id": 236, "properties": { "CASE_ENQUIRY_ID": 101001116968.0, "OPEN_DT": "06\/26\/2014 05:12:04 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "576-578 Blue Hill Ave Dorchester MA 02121", "fire_district": 7, "pwd_district": "03", "city_council_district": 4, "police_district": "B2", "neighborhood": "Greater Mattapan", "neighborhood_services_district": 13, "ward": "Ward 14", "precinct": 1403, "land_usage": "R4", "LOCATION_STREET_NAME": "576-578 Blue Hill Ave", "LOCATION_ZIPCODE": 2121, "LATITUDE": 42.30446, "LONGITUDE": -71.08445, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.08445, 42.30446 ] } } +, +{ "type": "Feature", "id": 237, "properties": { "CASE_ENQUIRY_ID": 101001134043.0, "OPEN_DT": "07\/21\/2014 09:42:17 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "INTERSECTION of E Fourth St & Pacific St South Boston MA", "fire_district": 6, "pwd_district": "05", "city_council_district": 2, "police_district": "C6", "neighborhood": "South Boston \/ South Boston Waterfront", "neighborhood_services_district": 5, "ward": "Ward 6", "precinct": 604, "land_usage": "", "LOCATION_STREET_NAME": "INTERSECTION E Fourth St & Pacific St", "LOCATION_ZIPCODE": null, "LATITUDE": 42.299671, "LONGITUDE": -71.074977, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.074977, 42.299671 ] } } +, +{ "type": "Feature", "id": 238, "properties": { "CASE_ENQUIRY_ID": 101001133350.0, "OPEN_DT": "07\/21\/2014 10:10:35 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "192 Boston St Dorchester MA 02125", "fire_district": 6, "pwd_district": "03", "city_council_district": 2, "police_district": "C6", "neighborhood": "Dorchester", "neighborhood_services_district": 5, "ward": "Ward 7", "precinct": 709, "land_usage": "R3", "LOCATION_STREET_NAME": "192 Boston St", "LOCATION_ZIPCODE": 2125, "LATITUDE": 42.32316, "LONGITUDE": -71.06028, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.06028, 42.32316 ] } } +, +{ "type": "Feature", "id": 239, "properties": { "CASE_ENQUIRY_ID": 101000875524.0, "OPEN_DT": "07\/09\/2013 09:36:28 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "256 Commonwealth Ave Boston MA 02116", "fire_district": 4, "pwd_district": "1C", "city_council_district": 8, "police_district": "D4", "neighborhood": "Back Bay", "neighborhood_services_district": 14, "ward": "Ward 5", "precinct": 508, "land_usage": "CM", "LOCATION_STREET_NAME": "256 Commonwealth Ave", "LOCATION_ZIPCODE": 2116, "LATITUDE": 42.35011, "LONGITUDE": -71.08314, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.08314, 42.35011 ] } } +, +{ "type": "Feature", "id": 240, "properties": { "CASE_ENQUIRY_ID": 101001120062.0, "OPEN_DT": "07\/02\/2014 08:34:23 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "6 Dwight St Roxbury MA 02118", "fire_district": 4, "pwd_district": "1C", "city_council_district": 2, "police_district": "D4", "neighborhood": "South End", "neighborhood_services_district": 4, "ward": "Ward 3", "precinct": 307, "land_usage": "R4", "LOCATION_STREET_NAME": "6 Dwight St", "LOCATION_ZIPCODE": 2118, "LATITUDE": 42.34391, "LONGITUDE": -71.06815, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.06815, 42.34391 ] } } +, +{ "type": "Feature", "id": 241, "properties": { "CASE_ENQUIRY_ID": 101001079085.0, "OPEN_DT": "05\/01\/2014 07:33:43 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "9 Radnor Rd Brighton MA 02135", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Allston \/ Brighton", "neighborhood_services_district": 15, "ward": "Ward 22", "precinct": 2209, "land_usage": "R2", "LOCATION_STREET_NAME": "9 Radnor Rd", "LOCATION_ZIPCODE": 2135, "LATITUDE": 42.34049, "LONGITUDE": -71.15874, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.15874, 42.34049 ] } } +, +{ "type": "Feature", "id": 242, "properties": { "CASE_ENQUIRY_ID": 101000865233.0, "OPEN_DT": "06\/22\/2013 11:59:23 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "60 Manthorne Rd West Roxbury MA 02132", "fire_district": 12, "pwd_district": "06", "city_council_district": 6, "police_district": "E5", "neighborhood": "West Roxbury", "neighborhood_services_district": 12, "ward": "Ward 20", "precinct": 2018, "land_usage": "R1", "LOCATION_STREET_NAME": "60 Manthorne Rd", "LOCATION_ZIPCODE": 2132, "LATITUDE": 42.28916, "LONGITUDE": -71.15157, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.15157, 42.28916 ] } } +, +{ "type": "Feature", "id": 243, "properties": { "CASE_ENQUIRY_ID": 101001024873.0, "OPEN_DT": "02\/12\/2014 12:43:12 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "4 Oxford Pl Boston MA 02111", "fire_district": 4, "pwd_district": "1C", "city_council_district": 2, "police_district": "A1", "neighborhood": "Downtown \/ Financial District", "neighborhood_services_district": 4, "ward": "Ward 3", "precinct": 308, "land_usage": "R4", "LOCATION_STREET_NAME": "4 Oxford Pl", "LOCATION_ZIPCODE": 2111, "LATITUDE": 42.35199, "LONGITUDE": -71.06087, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.06087, 42.35199 ] } } +, +{ "type": "Feature", "id": 244, "properties": { "CASE_ENQUIRY_ID": 101001122589.0, "OPEN_DT": "07\/07\/2014 10:34:00 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "234 Monsignor Dennis F O'Callaghan Way South Boston MA 02127", "fire_district": 6, "pwd_district": "05", "city_council_district": 2, "police_district": "C6", "neighborhood": "South Boston \/ South Boston Waterfront", "neighborhood_services_district": 5, "ward": "07", "precinct": 707, "land_usage": "E", "LOCATION_STREET_NAME": "234 Monsignor Dennis F O'Callaghan Way", "LOCATION_ZIPCODE": 2127, "LATITUDE": 42.32754, "LONGITUDE": -71.05559, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.05559, 42.32754 ] } } +, +{ "type": "Feature", "id": 245, "properties": { "CASE_ENQUIRY_ID": 101001075590.0, "OPEN_DT": "04\/25\/2014 01:22:17 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "435 Walnut Ave Jamaica Plain MA 02130", "fire_district": 9, "pwd_district": "02", "city_council_district": 7, "police_district": "E13", "neighborhood": "Jamaica Plain", "neighborhood_services_district": 11, "ward": "Ward 11", "precinct": 1105, "land_usage": "A", "LOCATION_STREET_NAME": "435 Walnut Ave", "LOCATION_ZIPCODE": 2130, "LATITUDE": 42.31238, "LONGITUDE": -71.09713, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.09713, 42.31238 ] } } +, +{ "type": "Feature", "id": 246, "properties": { "CASE_ENQUIRY_ID": 101001096022.0, "OPEN_DT": "05\/23\/2014 08:11:31 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "3 Forbes St Jamaica Plain MA 02130", "fire_district": 9, "pwd_district": "02", "city_council_district": 6, "police_district": "E13", "neighborhood": "Jamaica Plain", "neighborhood_services_district": 11, "ward": "Ward 19", "precinct": 1901, "land_usage": "R4", "LOCATION_STREET_NAME": "3 Forbes St", "LOCATION_ZIPCODE": 2130, "LATITUDE": 42.32203, "LONGITUDE": -71.10842, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.10842, 42.32203 ] } } +, +{ "type": "Feature", "id": 247, "properties": { "CASE_ENQUIRY_ID": 101001095641.0, "OPEN_DT": "05\/22\/2014 01:56:50 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "755 Bennington St East Boston MA 02128", "fire_district": 1, "pwd_district": "09", "city_council_district": 1, "police_district": "A7", "neighborhood": "East Boston", "neighborhood_services_district": 1, "ward": "Ward 1", "precinct": 112, "land_usage": "R2", "LOCATION_STREET_NAME": "755 Bennington St", "LOCATION_ZIPCODE": 2128, "LATITUDE": 42.38498, "LONGITUDE": -71.01103, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.01103, 42.38498 ] } } +, +{ "type": "Feature", "id": 248, "properties": { "CASE_ENQUIRY_ID": 101001083455.0, "OPEN_DT": "05\/07\/2014 08:03:52 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "INTERSECTION of Antrim St & Ashley St East Boston MA", "fire_district": 1, "pwd_district": "09", "city_council_district": 1, "police_district": "A7", "neighborhood": "East Boston", "neighborhood_services_district": 1, "ward": "Ward 1", "precinct": 113, "land_usage": "", "LOCATION_STREET_NAME": "INTERSECTION Antrim St & Ashley St", "LOCATION_ZIPCODE": null, "LATITUDE": 42.271326, "LONGITUDE": -71.069437, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.069437, 42.271326 ] } } +, +{ "type": "Feature", "id": 249, "properties": { "CASE_ENQUIRY_ID": 101001125864.0, "OPEN_DT": "07\/10\/2014 12:27:58 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "1-4 Saint George St Roxbury MA 02118", "fire_district": 4, "pwd_district": "1C", "city_council_district": 2, "police_district": "D4", "neighborhood": "South End", "neighborhood_services_district": 6, "ward": "08", "precinct": 802, "land_usage": "", "LOCATION_STREET_NAME": "1-4 Saint George St", "LOCATION_ZIPCODE": 2118, "LATITUDE": 42.338562, "LONGITUDE": -71.071563, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.071563, 42.338562 ] } } +, +{ "type": "Feature", "id": 250, "properties": { "CASE_ENQUIRY_ID": 101001122391.0, "OPEN_DT": "07\/07\/2014 08:30:09 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "109-153 Lincoln St Boston MA 02111", "fire_district": 4, "pwd_district": "1C", "city_council_district": 2, "police_district": "A1", "neighborhood": "Downtown \/ Financial District", "neighborhood_services_district": 4, "ward": "Ward 3", "precinct": 308, "land_usage": "C", "LOCATION_STREET_NAME": "109-153 Lincoln St", "LOCATION_ZIPCODE": 2111, "LATITUDE": 42.35154, "LONGITUDE": -71.05857, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.05857, 42.35154 ] } } +, +{ "type": "Feature", "id": 251, "properties": { "CASE_ENQUIRY_ID": 101001065774.0, "OPEN_DT": "04\/11\/2014 07:05:11 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "120 Ardale St Roslindale MA 02131", "fire_district": 9, "pwd_district": "06", "city_council_district": 5, "police_district": "E5", "neighborhood": "Roslindale", "neighborhood_services_district": 10, "ward": "Ward 20", "precinct": 2001, "land_usage": "R1", "LOCATION_STREET_NAME": "120 Ardale St", "LOCATION_ZIPCODE": 2131, "LATITUDE": 42.29313, "LONGITUDE": -71.13723, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.13723, 42.29313 ] } } +, +{ "type": "Feature", "id": 252, "properties": { "CASE_ENQUIRY_ID": 101001124042.0, "OPEN_DT": "07\/08\/2014 02:22:22 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "", "fire_district": null, "pwd_district": "", "city_council_district": null, "police_district": "", "neighborhood": "", "neighborhood_services_district": null, "ward": "", "precinct": null, "land_usage": "", "LOCATION_STREET_NAME": "", "LOCATION_ZIPCODE": null, "LATITUDE": 42.3594, "LONGITUDE": -71.0587, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.0587, 42.3594 ] } } +, +{ "type": "Feature", "id": 253, "properties": { "CASE_ENQUIRY_ID": 101001105946.0, "OPEN_DT": "06\/09\/2014 02:22:05 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "45 Englewood Ave Brighton MA 02135", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Allston \/ Brighton", "neighborhood_services_district": 15, "ward": "Ward 21", "precinct": 2114, "land_usage": "R4", "LOCATION_STREET_NAME": "45 Englewood Ave", "LOCATION_ZIPCODE": 2135, "LATITUDE": 42.33825, "LONGITUDE": -71.14703, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.14703, 42.33825 ] } } +, +{ "type": "Feature", "id": 254, "properties": { "CASE_ENQUIRY_ID": 101000900410.0, "OPEN_DT": "08\/13\/2013 10:38:11 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "20 Rustic Rd West Roxbury MA 02132", "fire_district": 12, "pwd_district": "06", "city_council_district": 6, "police_district": "E5", "neighborhood": "West Roxbury", "neighborhood_services_district": 12, "ward": "Ward 20", "precinct": 2014, "land_usage": "R1", "LOCATION_STREET_NAME": "20 Rustic Rd", "LOCATION_ZIPCODE": 2132, "LATITUDE": 42.27773, "LONGITUDE": -71.15079, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.15079, 42.27773 ] } } +, +{ "type": "Feature", "id": 255, "properties": { "CASE_ENQUIRY_ID": 101001101768.0, "OPEN_DT": "06\/02\/2014 01:24:29 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "15 Lindall Pl Boston MA 02114", "fire_district": 3, "pwd_district": "1B", "city_council_district": 8, "police_district": "A1", "neighborhood": "Beacon Hill", "neighborhood_services_district": 14, "ward": "Ward 5", "precinct": 504, "land_usage": "R1", "LOCATION_STREET_NAME": "15 Lindall Pl", "LOCATION_ZIPCODE": 2114, "LATITUDE": 42.36047, "LONGITUDE": -71.0694, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.0694, 42.36047 ] } } +, +{ "type": "Feature", "id": 256, "properties": { "CASE_ENQUIRY_ID": 101001025532.0, "OPEN_DT": "02\/13\/2014 01:09:22 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "10 Oxford Pl Boston MA 02111", "fire_district": 4, "pwd_district": "1C", "city_council_district": 2, "police_district": "A1", "neighborhood": "Downtown \/ Financial District", "neighborhood_services_district": 4, "ward": "Ward 3", "precinct": 308, "land_usage": "R4", "LOCATION_STREET_NAME": "10 Oxford Pl", "LOCATION_ZIPCODE": 2111, "LATITUDE": 42.35171, "LONGITUDE": -71.06078, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.06078, 42.35171 ] } } +, +{ "type": "Feature", "id": 257, "properties": { "CASE_ENQUIRY_ID": 101001011357.0, "OPEN_DT": "01\/24\/2014 07:11:29 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "667 Tremont St Roxbury MA 02118", "fire_district": 4, "pwd_district": "1C", "city_council_district": 2, "police_district": "D4", "neighborhood": "South End", "neighborhood_services_district": 6, "ward": "Ward 4", "precinct": 403, "land_usage": "RC", "LOCATION_STREET_NAME": "667 Tremont St", "LOCATION_ZIPCODE": 2118, "LATITUDE": 42.34192, "LONGITUDE": -71.07594, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.07594, 42.34192 ] } } +, +{ "type": "Feature", "id": 258, "properties": { "CASE_ENQUIRY_ID": 101000945074.0, "OPEN_DT": "10\/11\/2013 09:43:14 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "19 Dakota St Dorchester MA 02124", "fire_district": 7, "pwd_district": "03", "city_council_district": 4, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 9, "ward": "Ward 17", "precinct": 1701, "land_usage": "R3", "LOCATION_STREET_NAME": "19 Dakota St", "LOCATION_ZIPCODE": 2124, "LATITUDE": 42.29864, "LONGITUDE": -71.07187, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.07187, 42.29864 ] } } +, +{ "type": "Feature", "id": 259, "properties": { "CASE_ENQUIRY_ID": 101001099132.0, "OPEN_DT": "05\/28\/2014 03:27:12 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "4 Charles St Boston MA 02108", "fire_district": 3, "pwd_district": "1C", "city_council_district": 8, "police_district": "A1", "neighborhood": "Boston", "neighborhood_services_district": 14, "ward": "5", "precinct": 503, "land_usage": "", "LOCATION_STREET_NAME": "4 Charles St", "LOCATION_ZIPCODE": 2108, "LATITUDE": 42.3594, "LONGITUDE": -71.0587, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.0587, 42.3594 ] } } +, +{ "type": "Feature", "id": 260, "properties": { "CASE_ENQUIRY_ID": 101001090248.0, "OPEN_DT": "05\/15\/2014 12:43:36 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "5 Coleman St Dorchester MA 02125", "fire_district": 7, "pwd_district": "03", "city_council_district": 3, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 8, "ward": "Ward 15", "precinct": 1504, "land_usage": "R3", "LOCATION_STREET_NAME": "5 Coleman St", "LOCATION_ZIPCODE": 2125, "LATITUDE": 42.30917, "LONGITUDE": -71.0652, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.0652, 42.30917 ] } } +, +{ "type": "Feature", "id": 261, "properties": { "CASE_ENQUIRY_ID": 101001110749.0, "OPEN_DT": "06\/18\/2014 08:32:44 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "6 Columbia Rd Dorchester MA 02121", "fire_district": 7, "pwd_district": "03", "city_council_district": 4, "police_district": "B2", "neighborhood": "Greater Mattapan", "neighborhood_services_district": 13, "ward": "Ward 14", "precinct": 1403, "land_usage": "RC", "LOCATION_STREET_NAME": "6 Columbia Rd", "LOCATION_ZIPCODE": 2121, "LATITUDE": 42.303743, "LONGITUDE": -71.08471, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.08471, 42.303743 ] } } +, +{ "type": "Feature", "id": 262, "properties": { "CASE_ENQUIRY_ID": 101001129600.0, "OPEN_DT": "07\/15\/2014 05:27:50 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "94 Horace St East Boston MA 02128", "fire_district": 1, "pwd_district": "09", "city_council_district": 1, "police_district": "A7", "neighborhood": "East Boston", "neighborhood_services_district": 1, "ward": "Ward 1", "precinct": 111, "land_usage": "E", "LOCATION_STREET_NAME": "94 Horace St", "LOCATION_ZIPCODE": 2128, "LATITUDE": 42.38287, "LONGITUDE": -71.01606, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.01606, 42.38287 ] } } +, +{ "type": "Feature", "id": 263, "properties": { "CASE_ENQUIRY_ID": 101000902154.0, "OPEN_DT": "08\/15\/2013 09:11:46 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "8 Autumn St West Roxbury MA 02132", "fire_district": 12, "pwd_district": "06", "city_council_district": 6, "police_district": "E5", "neighborhood": "West Roxbury", "neighborhood_services_district": 12, "ward": "Ward 20", "precinct": 2005, "land_usage": "R1", "LOCATION_STREET_NAME": "8 Autumn St", "LOCATION_ZIPCODE": 2132, "LATITUDE": 42.275956, "LONGITUDE": -71.161077, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.161077, 42.275956 ] } } +, +{ "type": "Feature", "id": 264, "properties": { "CASE_ENQUIRY_ID": 101001133226.0, "OPEN_DT": "07\/21\/2014 09:01:05 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "568-570 Blue Hill Ave Dorchester MA 02121", "fire_district": 7, "pwd_district": "03", "city_council_district": 4, "police_district": "B2", "neighborhood": "Greater Mattapan", "neighborhood_services_district": 13, "ward": "Ward 14", "precinct": 1403, "land_usage": "A", "LOCATION_STREET_NAME": "568-570 Blue Hill Ave", "LOCATION_ZIPCODE": 2121, "LATITUDE": 42.30475, "LONGITUDE": -71.08436, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.08436, 42.30475 ] } } +, +{ "type": "Feature", "id": 265, "properties": { "CASE_ENQUIRY_ID": 101001024879.0, "OPEN_DT": "02\/12\/2014 12:47:59 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "52 Beach St Boston MA 02111", "fire_district": 4, "pwd_district": "1C", "city_council_district": 2, "police_district": "A1", "neighborhood": "Downtown \/ Financial District", "neighborhood_services_district": 4, "ward": "Ward 3", "precinct": 308, "land_usage": "RC", "LOCATION_STREET_NAME": "52 Beach St", "LOCATION_ZIPCODE": 2111, "LATITUDE": 42.35152, "LONGITUDE": -71.06065, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.06065, 42.35152 ] } } +, +{ "type": "Feature", "id": 266, "properties": { "CASE_ENQUIRY_ID": 101001102181.0, "OPEN_DT": "06\/03\/2014 08:19:06 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "4 Houghton St Dorchester MA 02122", "fire_district": 8, "pwd_district": "07", "city_council_district": 3, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 7, "ward": "Ward 16", "precinct": 1605, "land_usage": "CM", "LOCATION_STREET_NAME": "4 Houghton St", "LOCATION_ZIPCODE": 2122, "LATITUDE": 42.295904, "LONGITUDE": -71.052934, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.052934, 42.295904 ] } } +, +{ "type": "Feature", "id": 267, "properties": { "CASE_ENQUIRY_ID": 101001101664.0, "OPEN_DT": "06\/02\/2014 11:56:26 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "59 Westland Ave Boston MA 02115", "fire_district": 4, "pwd_district": "10A", "city_council_district": 8, "police_district": "D4", "neighborhood": "Fenway \/ Kenmore \/ Audubon Circle \/ Longwood", "neighborhood_services_district": 14, "ward": "Ward 4", "precinct": 407, "land_usage": "RC", "LOCATION_STREET_NAME": "59 Westland Ave", "LOCATION_ZIPCODE": 2115, "LATITUDE": 42.34394, "LONGITUDE": -71.08831, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.08831, 42.34394 ] } } +, +{ "type": "Feature", "id": 268, "properties": { "CASE_ENQUIRY_ID": 101001066864.0, "OPEN_DT": "04\/13\/2014 06:08:13 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "690 Dorchester Ave South Boston MA 02127", "fire_district": 6, "pwd_district": "05", "city_council_district": 2, "police_district": "C6", "neighborhood": "South Boston \/ South Boston Waterfront", "neighborhood_services_district": 5, "ward": "Ward 7", "precinct": 707, "land_usage": "CM", "LOCATION_STREET_NAME": "690 Dorchester Ave", "LOCATION_ZIPCODE": 2127, "LATITUDE": 42.32665, "LONGITUDE": -71.05667, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.05667, 42.32665 ] } } +, +{ "type": "Feature", "id": 269, "properties": { "CASE_ENQUIRY_ID": 101000991212.0, "OPEN_DT": "12\/26\/2013 08:35:56 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "665-665A Tremont St Roxbury MA 02118", "fire_district": 4, "pwd_district": "1C", "city_council_district": 2, "police_district": "D4", "neighborhood": "South End", "neighborhood_services_district": 6, "ward": "Ward 4", "precinct": 403, "land_usage": "RC", "LOCATION_STREET_NAME": "665-665A Tremont St", "LOCATION_ZIPCODE": 2118, "LATITUDE": 42.34195, "LONGITUDE": -71.07587, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.07587, 42.34195 ] } } +, +{ "type": "Feature", "id": 270, "properties": { "CASE_ENQUIRY_ID": 101000948061.0, "OPEN_DT": "10\/17\/2013 10:02:58 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "44 Zeller St Roslindale MA 02131", "fire_district": 9, "pwd_district": "06", "city_council_district": 5, "police_district": "E5", "neighborhood": "Roslindale", "neighborhood_services_district": 10, "ward": "Ward 20", "precinct": 2001, "land_usage": "R1", "LOCATION_STREET_NAME": "44 Zeller St", "LOCATION_ZIPCODE": 2131, "LATITUDE": 42.29207, "LONGITUDE": -71.13698, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.13698, 42.29207 ] } } +, +{ "type": "Feature", "id": 271, "properties": { "CASE_ENQUIRY_ID": 101001116677.0, "OPEN_DT": "06\/26\/2014 11:35:00 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "25 Abbot St Dorchester MA 02124", "fire_district": 7, "pwd_district": "03", "city_council_district": 4, "police_district": "B3", "neighborhood": "Greater Mattapan", "neighborhood_services_district": 9, "ward": "Ward 14", "precinct": 1409, "land_usage": "R2", "LOCATION_STREET_NAME": "25 Abbot St", "LOCATION_ZIPCODE": 2124, "LATITUDE": 42.29647, "LONGITUDE": -71.08595, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.08595, 42.29647 ] } } +, +{ "type": "Feature", "id": 272, "properties": { "CASE_ENQUIRY_ID": 101001099134.0, "OPEN_DT": "05\/28\/2014 03:28:07 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "INTERSECTION of Bailey St & Dorchester Ave Dorchester MA", "fire_district": 8, "pwd_district": "07", "city_council_district": 3, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 7, "ward": "Ward 16", "precinct": 1608, "land_usage": "", "LOCATION_STREET_NAME": "INTERSECTION Bailey St & Dorchester Ave", "LOCATION_ZIPCODE": null, "LATITUDE": 42.28717, "LONGITUDE": -71.05484, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.05484, 42.28717 ] } } +, +{ "type": "Feature", "id": 273, "properties": { "CASE_ENQUIRY_ID": 101000956076.0, "OPEN_DT": "10\/29\/2013 10:13:09 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "10 Hendry St Dorchester MA 02125", "fire_district": 7, "pwd_district": "03", "city_council_district": 3, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 8, "ward": "Ward 15", "precinct": 1504, "land_usage": "R3", "LOCATION_STREET_NAME": "10 Hendry St", "LOCATION_ZIPCODE": 2125, "LATITUDE": 42.30897, "LONGITUDE": -71.06486, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.06486, 42.30897 ] } } +, +{ "type": "Feature", "id": 274, "properties": { "CASE_ENQUIRY_ID": 101001117085.0, "OPEN_DT": "06\/27\/2014 07:16:34 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "8 Coleman St Dorchester MA 02125", "fire_district": 7, "pwd_district": "03", "city_council_district": 3, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 8, "ward": "Ward 15", "precinct": 1504, "land_usage": "R3", "LOCATION_STREET_NAME": "8 Coleman St", "LOCATION_ZIPCODE": 2125, "LATITUDE": 42.30887, "LONGITUDE": -71.06513, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.06513, 42.30887 ] } } +, +{ "type": "Feature", "id": 275, "properties": { "CASE_ENQUIRY_ID": 101001119484.0, "OPEN_DT": "07\/01\/2014 12:23:37 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "143 Intervale St Dorchester MA 02121", "fire_district": 7, "pwd_district": "03", "city_council_district": 4, "police_district": "B2", "neighborhood": "Roxbury", "neighborhood_services_district": 13, "ward": "Ward 14", "precinct": 1401, "land_usage": "R3", "LOCATION_STREET_NAME": "143 Intervale St", "LOCATION_ZIPCODE": 2121, "LATITUDE": 42.30953, "LONGITUDE": -71.07524, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.07524, 42.30953 ] } } +, +{ "type": "Feature", "id": 276, "properties": { "CASE_ENQUIRY_ID": 101000986568.0, "OPEN_DT": "12\/18\/2013 08:51:33 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "116-118 Whitfield St Dorchester MA 02124", "fire_district": 8, "pwd_district": "07", "city_council_district": 4, "police_district": "B3", "neighborhood": "Dorchester", "neighborhood_services_district": 9, "ward": "Ward 17", "precinct": 1703, "land_usage": "A", "LOCATION_STREET_NAME": "116-118 Whitfield St", "LOCATION_ZIPCODE": 2124, "LATITUDE": 42.29344, "LONGITUDE": -71.07528, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.07528, 42.29344 ] } } +, +{ "type": "Feature", "id": 277, "properties": { "CASE_ENQUIRY_ID": 101001109412.0, "OPEN_DT": "06\/16\/2014 11:03:03 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "366 Centre St Jamaica Plain MA 02130", "fire_district": 9, "pwd_district": "02", "city_council_district": 6, "police_district": "E13", "neighborhood": "Jamaica Plain", "neighborhood_services_district": 11, "ward": "Ward 19", "precinct": 1901, "land_usage": "RC", "LOCATION_STREET_NAME": "366 Centre St", "LOCATION_ZIPCODE": 2130, "LATITUDE": 42.32217, "LONGITUDE": -71.10859, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.10859, 42.32217 ] } } +, +{ "type": "Feature", "id": 278, "properties": { "CASE_ENQUIRY_ID": 101001130991.0, "OPEN_DT": "07\/17\/2014 10:28:02 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "178 W Seventh St South Boston MA 02127", "fire_district": 6, "pwd_district": "05", "city_council_district": 2, "police_district": "C6", "neighborhood": "South Boston \/ South Boston Waterfront", "neighborhood_services_district": 5, "ward": "Ward 6", "precinct": 603, "land_usage": "R3", "LOCATION_STREET_NAME": "178 W Seventh St", "LOCATION_ZIPCODE": 2127, "LATITUDE": 42.33471, "LONGITUDE": -71.05118, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.05118, 42.33471 ] } } +, +{ "type": "Feature", "id": 279, "properties": { "CASE_ENQUIRY_ID": 101001133992.0, "OPEN_DT": "07\/21\/2014 07:04:41 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "1-3 Imrie Rd Allston MA 02134", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Allston \/ Brighton", "neighborhood_services_district": 15, "ward": "Ward 21", "precinct": 2106, "land_usage": "R3", "LOCATION_STREET_NAME": "1-3 Imrie Rd", "LOCATION_ZIPCODE": 2134, "LATITUDE": 42.3526, "LONGITUDE": -71.13862, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.13862, 42.3526 ] } } +, +{ "type": "Feature", "id": 280, "properties": { "CASE_ENQUIRY_ID": 101000872356.0, "OPEN_DT": "07\/03\/2013 09:03:16 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "5 Symphony Rd Boston MA 02115", "fire_district": 4, "pwd_district": "10A", "city_council_district": 8, "police_district": "D4", "neighborhood": "Fenway \/ Kenmore \/ Audubon Circle \/ Longwood", "neighborhood_services_district": 14, "ward": "Ward 4", "precinct": 407, "land_usage": "R4", "LOCATION_STREET_NAME": "5 Symphony Rd", "LOCATION_ZIPCODE": 2115, "LATITUDE": 42.34288, "LONGITUDE": -71.08694, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.08694, 42.34288 ] } } +, +{ "type": "Feature", "id": 281, "properties": { "CASE_ENQUIRY_ID": 101001099172.0, "OPEN_DT": "05\/28\/2014 03:56:07 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "318 Princeton St East Boston MA 02128", "fire_district": 1, "pwd_district": "09", "city_council_district": 1, "police_district": "A7", "neighborhood": "East Boston", "neighborhood_services_district": 1, "ward": "Ward 1", "precinct": 109, "land_usage": "R3", "LOCATION_STREET_NAME": "318 Princeton St", "LOCATION_ZIPCODE": 2128, "LATITUDE": 42.38051, "LONGITUDE": -71.02837, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.02837, 42.38051 ] } } +, +{ "type": "Feature", "id": 282, "properties": { "CASE_ENQUIRY_ID": 101001087173.0, "OPEN_DT": "05\/12\/2014 12:08:09 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "248 Neponset Valley Pkwy Hyde Park MA 02136", "fire_district": 12, "pwd_district": "08", "city_council_district": 5, "police_district": "E18", "neighborhood": "Hyde Park", "neighborhood_services_district": 10, "ward": "Ward 18", "precinct": 1820, "land_usage": "R1", "LOCATION_STREET_NAME": "248 Neponset Valley Pkwy", "LOCATION_ZIPCODE": 2136, "LATITUDE": 42.23639, "LONGITUDE": -71.12826, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.12826, 42.23639 ] } } +, +{ "type": "Feature", "id": 283, "properties": { "CASE_ENQUIRY_ID": 101001075397.0, "OPEN_DT": "04\/25\/2014 10:40:37 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "844 Dorchester Ave Dorchester MA 02125", "fire_district": 6, "pwd_district": "03", "city_council_district": 2, "police_district": "C6", "neighborhood": "Dorchester", "neighborhood_services_district": 5, "ward": "Ward 7", "precinct": 708, "land_usage": "R3", "LOCATION_STREET_NAME": "844 Dorchester Ave", "LOCATION_ZIPCODE": 2125, "LATITUDE": 42.32202, "LONGITUDE": -71.05659, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.05659, 42.32202 ] } } +, +{ "type": "Feature", "id": 284, "properties": { "CASE_ENQUIRY_ID": 101001131647.0, "OPEN_DT": "07\/18\/2014 07:34:12 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "54 Granger St Dorchester MA 02122", "fire_district": 7, "pwd_district": "03", "city_council_district": 3, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 8, "ward": "Ward 15", "precinct": 1506, "land_usage": "R3", "LOCATION_STREET_NAME": "54 Granger St", "LOCATION_ZIPCODE": 2122, "LATITUDE": 42.30265, "LONGITUDE": -71.05749, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.05749, 42.30265 ] } } +, +{ "type": "Feature", "id": 285, "properties": { "CASE_ENQUIRY_ID": 101001129354.0, "OPEN_DT": "07\/15\/2014 01:19:44 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "470-472 Warren St Dorchester MA 02121", "fire_district": 9, "pwd_district": "10B", "city_council_district": 7, "police_district": "B2", "neighborhood": "Roxbury", "neighborhood_services_district": 13, "ward": "Ward 12", "precinct": 1206, "land_usage": "R3", "LOCATION_STREET_NAME": "470-472 Warren St", "LOCATION_ZIPCODE": 2121, "LATITUDE": 42.315032, "LONGITUDE": -71.083189, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.083189, 42.315032 ] } } +, +{ "type": "Feature", "id": 286, "properties": { "CASE_ENQUIRY_ID": 101001025533.0, "OPEN_DT": "02\/13\/2014 01:10:33 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "11 Oxford Pl Boston MA 02111", "fire_district": 4, "pwd_district": "1C", "city_council_district": 2, "police_district": "A1", "neighborhood": "Downtown \/ Financial District", "neighborhood_services_district": 4, "ward": "Ward 3", "precinct": 308, "land_usage": "R3", "LOCATION_STREET_NAME": "11 Oxford Pl", "LOCATION_ZIPCODE": 2111, "LATITUDE": 42.35166, "LONGITUDE": -71.06076, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.06076, 42.35166 ] } } +, +{ "type": "Feature", "id": 287, "properties": { "CASE_ENQUIRY_ID": 101001112608.0, "OPEN_DT": "06\/20\/2014 12:47:57 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "120 Huntington Ave Boston MA 02116", "fire_district": 4, "pwd_district": "1C", "city_council_district": 2, "police_district": "D4", "neighborhood": "Back Bay", "neighborhood_services_district": 6, "ward": "04", "precinct": 402, "land_usage": "", "LOCATION_STREET_NAME": "120 Huntington Ave", "LOCATION_ZIPCODE": 2116, "LATITUDE": 42.3594, "LONGITUDE": -71.0587, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.0587, 42.3594 ] } } +, +{ "type": "Feature", "id": 288, "properties": { "CASE_ENQUIRY_ID": 101001103599.0, "OPEN_DT": "06\/05\/2014 07:27:23 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "348 Bowdoin St Dorchester MA 02125", "fire_district": 7, "pwd_district": "03", "city_council_district": 3, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 8, "ward": "Ward 15", "precinct": 1504, "land_usage": "CM", "LOCATION_STREET_NAME": "348 Bowdoin St", "LOCATION_ZIPCODE": 2125, "LATITUDE": 42.30877, "LONGITUDE": -71.06467, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.06467, 42.30877 ] } } +, +{ "type": "Feature", "id": 289, "properties": { "CASE_ENQUIRY_ID": 101001090189.0, "OPEN_DT": "05\/15\/2014 11:37:16 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "43 Boulevard Ter Allston MA 02134", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Allston \/ Brighton", "neighborhood_services_district": 15, "ward": "Ward 21", "precinct": 2109, "land_usage": "R3", "LOCATION_STREET_NAME": "43 Boulevard Ter", "LOCATION_ZIPCODE": 2134, "LATITUDE": 42.34749, "LONGITUDE": -71.14006, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.14006, 42.34749 ] } } +, +{ "type": "Feature", "id": 290, "properties": { "CASE_ENQUIRY_ID": 101001082076.0, "OPEN_DT": "05\/05\/2014 01:35:13 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "53 Copeland St Roxbury MA 02119", "fire_district": 7, "pwd_district": "10B", "city_council_district": 7, "police_district": "B2", "neighborhood": "Roxbury", "neighborhood_services_district": 13, "ward": "Ward 12", "precinct": 1204, "land_usage": "R3", "LOCATION_STREET_NAME": "53 Copeland St", "LOCATION_ZIPCODE": 2119, "LATITUDE": 42.32271, "LONGITUDE": -71.07967, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.07967, 42.32271 ] } } +, +{ "type": "Feature", "id": 291, "properties": { "CASE_ENQUIRY_ID": 101000950834.0, "OPEN_DT": "10\/21\/2013 08:12:10 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "501 Weld St West Roxbury MA 02132", "fire_district": 9, "pwd_district": "06", "city_council_district": 6, "police_district": "E5", "neighborhood": "West Roxbury", "neighborhood_services_district": 12, "ward": "Ward 20", "precinct": 2019, "land_usage": "R1", "LOCATION_STREET_NAME": "501 Weld St", "LOCATION_ZIPCODE": 2132, "LATITUDE": 42.29351, "LONGITUDE": -71.15333, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.15333, 42.29351 ] } } +, +{ "type": "Feature", "id": 292, "properties": { "CASE_ENQUIRY_ID": 101001116571.0, "OPEN_DT": "06\/26\/2014 10:10:18 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "46 Lyon St Dorchester MA 02122", "fire_district": 7, "pwd_district": "03", "city_council_district": 3, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 8, "ward": "Ward 15", "precinct": 1509, "land_usage": "CM", "LOCATION_STREET_NAME": "46 Lyon St", "LOCATION_ZIPCODE": 2122, "LATITUDE": 42.30601, "LONGITUDE": -71.06108, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.06108, 42.30601 ] } } +, +{ "type": "Feature", "id": 293, "properties": { "CASE_ENQUIRY_ID": 101000901844.0, "OPEN_DT": "08\/14\/2013 04:19:12 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "INTERSECTION of Dudley St & North Ave Roxbury MA", "fire_district": 7, "pwd_district": "03", "city_council_district": 7, "police_district": "B2", "neighborhood": "Roxbury", "neighborhood_services_district": 13, "ward": "Ward 8", "precinct": 805, "land_usage": "", "LOCATION_STREET_NAME": "INTERSECTION Dudley St & North Ave", "LOCATION_ZIPCODE": null, "LATITUDE": 42.29036, "LONGITUDE": -71.12776, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.12776, 42.29036 ] } } +, +{ "type": "Feature", "id": 294, "properties": { "CASE_ENQUIRY_ID": 101000953664.0, "OPEN_DT": "10\/24\/2013 06:43:16 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "1 Courtney Rd West Roxbury MA 02132", "fire_district": 9, "pwd_district": "06", "city_council_district": 6, "police_district": "E5", "neighborhood": "West Roxbury", "neighborhood_services_district": 12, "ward": "Ward 20", "precinct": 2019, "land_usage": "R1", "LOCATION_STREET_NAME": "1 Courtney Rd", "LOCATION_ZIPCODE": 2132, "LATITUDE": 42.29451, "LONGITUDE": -71.15198, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.15198, 42.29451 ] } } +, +{ "type": "Feature", "id": 295, "properties": { "CASE_ENQUIRY_ID": 101000999375.0, "OPEN_DT": "01\/06\/2014 05:10:35 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "690 Massachusetts Ave Roxbury MA 02118", "fire_district": 4, "pwd_district": "1C", "city_council_district": 2, "police_district": "D4", "neighborhood": "South End", "neighborhood_services_district": 6, "ward": "Ward 8", "precinct": 802, "land_usage": "CM", "LOCATION_STREET_NAME": "690 Massachusetts Ave", "LOCATION_ZIPCODE": 2118, "LATITUDE": 42.33545, "LONGITUDE": -71.07529, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.07529, 42.33545 ] } } +, +{ "type": "Feature", "id": 296, "properties": { "CASE_ENQUIRY_ID": 101001123979.0, "OPEN_DT": "07\/08\/2014 01:51:16 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "72 Kneeland St Boston MA 02111", "fire_district": 4, "pwd_district": "1C", "city_council_district": 2, "police_district": "A1", "neighborhood": "Downtown \/ Financial District", "neighborhood_services_district": 4, "ward": "Ward 3", "precinct": 308, "land_usage": "C", "LOCATION_STREET_NAME": "72 Kneeland St", "LOCATION_ZIPCODE": 2111, "LATITUDE": 42.35054, "LONGITUDE": -71.06053, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.06053, 42.35054 ] } } +, +{ "type": "Feature", "id": 297, "properties": { "CASE_ENQUIRY_ID": 101001044808.0, "OPEN_DT": "03\/11\/2014 11:19:36 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "13 Kenilworth St Roxbury MA 02119", "fire_district": 7, "pwd_district": "10B", "city_council_district": 7, "police_district": "B2", "neighborhood": "Roxbury", "neighborhood_services_district": 13, "ward": "Ward 9", "precinct": 905, "land_usage": "R2", "LOCATION_STREET_NAME": "13 Kenilworth St", "LOCATION_ZIPCODE": 2119, "LATITUDE": 42.32889, "LONGITUDE": -71.08746, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.08746, 42.32889 ] } } +, +{ "type": "Feature", "id": 298, "properties": { "CASE_ENQUIRY_ID": 101001118741.0, "OPEN_DT": "06\/30\/2014 03:08:55 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "INTERSECTION of Coolidge Rd & Haskell St Allston MA", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Allston \/ Brighton", "neighborhood_services_district": 15, "ward": "Ward 22", "precinct": 2201, "land_usage": "", "LOCATION_STREET_NAME": "INTERSECTION Coolidge Rd & Haskell St", "LOCATION_ZIPCODE": null, "LATITUDE": 42.293782, "LONGITUDE": -71.16903, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.16903, 42.293782 ] } } +, +{ "type": "Feature", "id": 299, "properties": { "CASE_ENQUIRY_ID": 101000857929.0, "OPEN_DT": "06\/11\/2013 04:47:54 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "516 Lagrange St West Roxbury MA 02132", "fire_district": 12, "pwd_district": "06", "city_council_district": 6, "police_district": "E5", "neighborhood": "West Roxbury", "neighborhood_services_district": 12, "ward": "Ward 20", "precinct": 2013, "land_usage": "R1", "LOCATION_STREET_NAME": "516 Lagrange St", "LOCATION_ZIPCODE": 2132, "LATITUDE": 42.28356, "LONGITUDE": -71.16167, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.16167, 42.28356 ] } } +, +{ "type": "Feature", "id": 300, "properties": { "CASE_ENQUIRY_ID": 101001024861.0, "OPEN_DT": "02\/12\/2014 12:35:08 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "", "fire_district": null, "pwd_district": "", "city_council_district": null, "police_district": "", "neighborhood": "", "neighborhood_services_district": null, "ward": "", "precinct": null, "land_usage": "", "LOCATION_STREET_NAME": "", "LOCATION_ZIPCODE": null, "LATITUDE": 42.3594, "LONGITUDE": -71.0587, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.0587, 42.3594 ] } } +, +{ "type": "Feature", "id": 301, "properties": { "CASE_ENQUIRY_ID": 101001024862.0, "OPEN_DT": "02\/12\/2014 12:36:42 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "34 Harrison Ave Boston MA 02111", "fire_district": 4, "pwd_district": "1C", "city_council_district": 2, "police_district": "A1", "neighborhood": "Downtown \/ Financial District", "neighborhood_services_district": 4, "ward": "Ward 3", "precinct": 308, "land_usage": "RC", "LOCATION_STREET_NAME": "34 Harrison Ave", "LOCATION_ZIPCODE": 2111, "LATITUDE": 42.35184, "LONGITUDE": -71.061, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.061, 42.35184 ] } } +, +{ "type": "Feature", "id": 302, "properties": { "CASE_ENQUIRY_ID": 101000890976.0, "OPEN_DT": "07\/31\/2013 09:38:08 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "202 Baker St West Roxbury MA 02132", "fire_district": 12, "pwd_district": "06", "city_council_district": 6, "police_district": "E5", "neighborhood": "West Roxbury", "neighborhood_services_district": 12, "ward": "Ward 20", "precinct": 2005, "land_usage": "R4", "LOCATION_STREET_NAME": "202 Baker St", "LOCATION_ZIPCODE": 2132, "LATITUDE": 42.27651, "LONGITUDE": -71.16723, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.16723, 42.27651 ] } } +, +{ "type": "Feature", "id": 303, "properties": { "CASE_ENQUIRY_ID": 101001129552.0, "OPEN_DT": "07\/15\/2014 03:51:08 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "538 Blue Hill Ave Dorchester MA 02121", "fire_district": 7, "pwd_district": "03", "city_council_district": 4, "police_district": "B2", "neighborhood": "Roxbury", "neighborhood_services_district": 13, "ward": "Ward 14", "precinct": 1403, "land_usage": "C", "LOCATION_STREET_NAME": "538 Blue Hill Ave", "LOCATION_ZIPCODE": 2121, "LATITUDE": 42.30543, "LONGITUDE": -71.08422, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.08422, 42.30543 ] } } +, +{ "type": "Feature", "id": 304, "properties": { "CASE_ENQUIRY_ID": 101001102077.0, "OPEN_DT": "06\/02\/2014 08:16:57 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "9 Forbes St Jamaica Plain MA 02130", "fire_district": 9, "pwd_district": "02", "city_council_district": 6, "police_district": "E13", "neighborhood": "Jamaica Plain", "neighborhood_services_district": 11, "ward": "19", "precinct": 1901, "land_usage": "R3", "LOCATION_STREET_NAME": "9 Forbes St", "LOCATION_ZIPCODE": 2130, "LATITUDE": 42.321968, "LONGITUDE": -71.108137, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.108137, 42.321968 ] } } +, +{ "type": "Feature", "id": 305, "properties": { "CASE_ENQUIRY_ID": 101001099519.0, "OPEN_DT": "05\/29\/2014 10:19:47 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "104 Pleasant St Dorchester MA 02125", "fire_district": 7, "pwd_district": "03", "city_council_district": 3, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 8, "ward": "Ward 15", "precinct": 1504, "land_usage": "R3", "LOCATION_STREET_NAME": "104 Pleasant St", "LOCATION_ZIPCODE": 2125, "LATITUDE": 42.31215, "LONGITUDE": -71.05878, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.05878, 42.31215 ] } } +, +{ "type": "Feature", "id": 306, "properties": { "CASE_ENQUIRY_ID": 101001131727.0, "OPEN_DT": "07\/18\/2014 08:29:37 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "30-108 Westminster Ave Roxbury MA 02119", "fire_district": 9, "pwd_district": "10B", "city_council_district": 7, "police_district": "B2", "neighborhood": "Roxbury", "neighborhood_services_district": 13, "ward": "11", "precinct": 1103, "land_usage": "", "LOCATION_STREET_NAME": "30-108 Westminster Ave", "LOCATION_ZIPCODE": 2119, "LATITUDE": 42.316189, "LONGITUDE": -71.094062, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.094062, 42.316189 ] } } +, +{ "type": "Feature", "id": 307, "properties": { "CASE_ENQUIRY_ID": 101001078492.0, "OPEN_DT": "04\/30\/2014 09:45:37 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "85 Brunswick St Dorchester MA 02121", "fire_district": 7, "pwd_district": "03", "city_council_district": 4, "police_district": "B2", "neighborhood": "Roxbury", "neighborhood_services_district": 13, "ward": "Ward 14", "precinct": 1401, "land_usage": "R3", "LOCATION_STREET_NAME": "85 Brunswick St", "LOCATION_ZIPCODE": 2121, "LATITUDE": 42.31092, "LONGITUDE": -71.08062, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.08062, 42.31092 ] } } +, +{ "type": "Feature", "id": 308, "properties": { "CASE_ENQUIRY_ID": 101001133604.0, "OPEN_DT": "07\/21\/2014 12:49:50 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "404 Marlborough St Boston MA 02115", "fire_district": 4, "pwd_district": "1C", "city_council_district": 8, "police_district": "D4", "neighborhood": "Back Bay", "neighborhood_services_district": 14, "ward": "Ward 5", "precinct": 509, "land_usage": "R4", "LOCATION_STREET_NAME": "404 Marlborough St", "LOCATION_ZIPCODE": 2115, "LATITUDE": 42.35002, "LONGITUDE": -71.08834, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.08834, 42.35002 ] } } +, +{ "type": "Feature", "id": 309, "properties": { "CASE_ENQUIRY_ID": 101001024868.0, "OPEN_DT": "02\/12\/2014 12:40:45 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "36-38 Harrison Ave Boston MA 02111", "fire_district": 4, "pwd_district": "1C", "city_council_district": 2, "police_district": "A1", "neighborhood": "Downtown \/ Financial District", "neighborhood_services_district": 4, "ward": "Ward 3", "precinct": 308, "land_usage": "RC", "LOCATION_STREET_NAME": "36-38 Harrison Ave", "LOCATION_ZIPCODE": 2111, "LATITUDE": 42.35177, "LONGITUDE": -71.061, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.061, 42.35177 ] } } +, +{ "type": "Feature", "id": 310, "properties": { "CASE_ENQUIRY_ID": 101001114596.0, "OPEN_DT": "06\/24\/2014 08:57:11 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "44 Wildwood St Dorchester MA 02124", "fire_district": 8, "pwd_district": "07", "city_council_district": 4, "police_district": "B3", "neighborhood": "Greater Mattapan", "neighborhood_services_district": 9, "ward": "Ward 14", "precinct": 1405, "land_usage": "R2", "LOCATION_STREET_NAME": "44 Wildwood St", "LOCATION_ZIPCODE": 2124, "LATITUDE": 42.28321, "LONGITUDE": -71.08805, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.08805, 42.28321 ] } } +, +{ "type": "Feature", "id": 311, "properties": { "CASE_ENQUIRY_ID": 101001113728.0, "OPEN_DT": "06\/23\/2014 09:15:37 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "379 River St Mattapan MA 02126", "fire_district": 8, "pwd_district": "07", "city_council_district": 4, "police_district": "B3", "neighborhood": "Greater Mattapan", "neighborhood_services_district": 9, "ward": "Ward 18", "precinct": 1804, "land_usage": "R2", "LOCATION_STREET_NAME": "379 River St", "LOCATION_ZIPCODE": 2126, "LATITUDE": 42.27029, "LONGITUDE": -71.08865, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.08865, 42.27029 ] } } +, +{ "type": "Feature", "id": 312, "properties": { "CASE_ENQUIRY_ID": 101001080421.0, "OPEN_DT": "05\/02\/2014 01:30:52 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "", "fire_district": null, "pwd_district": "", "city_council_district": null, "police_district": "", "neighborhood": "", "neighborhood_services_district": null, "ward": "", "precinct": null, "land_usage": "", "LOCATION_STREET_NAME": "", "LOCATION_ZIPCODE": null, "LATITUDE": 42.3594, "LONGITUDE": -71.0587, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.0587, 42.3594 ] } } +, +{ "type": "Feature", "id": 313, "properties": { "CASE_ENQUIRY_ID": 101001113256.0, "OPEN_DT": "06\/21\/2014 01:46:27 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "17 Pleasant St Dorchester MA 02125", "fire_district": 7, "pwd_district": "03", "city_council_district": 3, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 7, "ward": "Ward 13", "precinct": 1306, "land_usage": "R3", "LOCATION_STREET_NAME": "17 Pleasant St", "LOCATION_ZIPCODE": 2125, "LATITUDE": 42.31753, "LONGITUDE": -71.05943, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.05943, 42.31753 ] } } +, +{ "type": "Feature", "id": 314, "properties": { "CASE_ENQUIRY_ID": 101000885397.0, "OPEN_DT": "07\/23\/2013 12:07:32 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "171 Trenton St East Boston MA 02128", "fire_district": 1, "pwd_district": "09", "city_council_district": 1, "police_district": "A7", "neighborhood": "East Boston", "neighborhood_services_district": 1, "ward": "Ward 1", "precinct": 109, "land_usage": "R3", "LOCATION_STREET_NAME": "171 Trenton St", "LOCATION_ZIPCODE": 2128, "LATITUDE": 42.38021, "LONGITUDE": -71.03242, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.03242, 42.38021 ] } } +, +{ "type": "Feature", "id": 315, "properties": { "CASE_ENQUIRY_ID": 101001134974.0, "OPEN_DT": "07\/22\/2014 08:35:29 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "119 W Newton St Roxbury MA 02118", "fire_district": 4, "pwd_district": "1C", "city_council_district": 2, "police_district": "D4", "neighborhood": "South End", "neighborhood_services_district": 6, "ward": "Ward 4", "precinct": 403, "land_usage": "R4", "LOCATION_STREET_NAME": "119 W Newton St", "LOCATION_ZIPCODE": 2118, "LATITUDE": 42.34184, "LONGITUDE": -71.07682, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.07682, 42.34184 ] } } +, +{ "type": "Feature", "id": 316, "properties": { "CASE_ENQUIRY_ID": 101001134478.0, "OPEN_DT": "07\/22\/2014 11:29:04 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "175-175A Chestnut Ave Jamaica Plain MA 02130", "fire_district": 9, "pwd_district": "02", "city_council_district": 6, "police_district": "E13", "neighborhood": "Jamaica Plain", "neighborhood_services_district": 11, "ward": "Ward 19", "precinct": 1904, "land_usage": "R2", "LOCATION_STREET_NAME": "175-175A Chestnut Ave", "LOCATION_ZIPCODE": 2130, "LATITUDE": 42.31684, "LONGITUDE": -71.10713, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.10713, 42.31684 ] } } +, +{ "type": "Feature", "id": 317, "properties": { "CASE_ENQUIRY_ID": 101001135284.0, "OPEN_DT": "07\/23\/2014 10:18:30 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "41 De Soto Rd West Roxbury MA 02132", "fire_district": 12, "pwd_district": "06", "city_council_district": 6, "police_district": "E5", "neighborhood": "West Roxbury", "neighborhood_services_district": 10, "ward": "Ward 20", "precinct": 2003, "land_usage": "R1", "LOCATION_STREET_NAME": "41 De Soto Rd", "LOCATION_ZIPCODE": 2132, "LATITUDE": 42.26152, "LONGITUDE": -71.15403, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.15403, 42.26152 ] } } +, +{ "type": "Feature", "id": 318, "properties": { "CASE_ENQUIRY_ID": 101001135067.0, "OPEN_DT": "07\/23\/2014 07:45:56 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "204 N Beacon St Brighton MA 02135", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Allston \/ Brighton", "neighborhood_services_district": 15, "ward": "Ward 22", "precinct": 2206, "land_usage": "C", "LOCATION_STREET_NAME": "204 N Beacon St", "LOCATION_ZIPCODE": 2135, "LATITUDE": 42.355805, "LONGITUDE": -71.148674, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.148674, 42.355805 ] } } +, +{ "type": "Feature", "id": 319, "properties": { "CASE_ENQUIRY_ID": 101001135457.0, "OPEN_DT": "07\/23\/2014 12:11:04 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "5 Blackinton St East Boston MA 02128", "fire_district": 1, "pwd_district": "09", "city_council_district": 1, "police_district": "A7", "neighborhood": "East Boston", "neighborhood_services_district": 1, "ward": "Ward 1", "precinct": 113, "land_usage": "R4", "LOCATION_STREET_NAME": "5 Blackinton St", "LOCATION_ZIPCODE": 2128, "LATITUDE": 42.38796, "LONGITUDE": -71.00358, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.00358, 42.38796 ] } } +, +{ "type": "Feature", "id": 320, "properties": { "CASE_ENQUIRY_ID": 101001135081.0, "OPEN_DT": "07\/23\/2014 07:53:06 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "", "fire_district": null, "pwd_district": "", "city_council_district": null, "police_district": "", "neighborhood": "", "neighborhood_services_district": null, "ward": "", "precinct": null, "land_usage": "", "LOCATION_STREET_NAME": "", "LOCATION_ZIPCODE": null, "LATITUDE": 42.3594, "LONGITUDE": -71.0587, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.0587, 42.3594 ] } } +, +{ "type": "Feature", "id": 321, "properties": { "CASE_ENQUIRY_ID": 101001135602.0, "OPEN_DT": "07\/23\/2014 02:30:33 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "4 Ford St East Boston MA 02128", "fire_district": 1, "pwd_district": "09", "city_council_district": 1, "police_district": "A7", "neighborhood": "East Boston", "neighborhood_services_district": 1, "ward": "Ward 1", "precinct": 113, "land_usage": "R2", "LOCATION_STREET_NAME": "4 Ford St", "LOCATION_ZIPCODE": 2128, "LATITUDE": 42.38743, "LONGITUDE": -71.00788, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.00788, 42.38743 ] } } +, +{ "type": "Feature", "id": 322, "properties": { "CASE_ENQUIRY_ID": 101001135240.0, "OPEN_DT": "07\/23\/2014 09:47:17 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "582 Dorchester Ave South Boston MA 02127", "fire_district": 6, "pwd_district": "05", "city_council_district": 2, "police_district": "C6", "neighborhood": "South Boston", "neighborhood_services_district": 5, "ward": "07", "precinct": 706, "land_usage": "", "LOCATION_STREET_NAME": "582 Dorchester Ave", "LOCATION_ZIPCODE": 2127, "LATITUDE": 42.329935, "LONGITUDE": -71.056761, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.056761, 42.329935 ] } } +, +{ "type": "Feature", "id": 323, "properties": { "CASE_ENQUIRY_ID": 101001136467.0, "OPEN_DT": "07\/24\/2014 04:17:49 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "2 Wigglesworth St Mission Hill MA 02120", "fire_district": 9, "pwd_district": "10A", "city_council_district": 8, "police_district": "B2", "neighborhood": "Mission Hill", "neighborhood_services_district": 14, "ward": "Ward 10", "precinct": 1003, "land_usage": "R3", "LOCATION_STREET_NAME": "2 Wigglesworth St", "LOCATION_ZIPCODE": 2120, "LATITUDE": 42.334103, "LONGITUDE": -71.103279, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.103279, 42.334103 ] } } +, +{ "type": "Feature", "id": 324, "properties": { "CASE_ENQUIRY_ID": 101001135949.0, "OPEN_DT": "07\/24\/2014 08:02:49 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "32 Dorset St Dorchester MA 02125", "fire_district": 6, "pwd_district": "03", "city_council_district": 2, "police_district": "C6", "neighborhood": "Dorchester", "neighborhood_services_district": 5, "ward": "Ward 7", "precinct": 708, "land_usage": "R3", "LOCATION_STREET_NAME": "32 Dorset St", "LOCATION_ZIPCODE": 2125, "LATITUDE": 42.32366, "LONGITUDE": -71.05847, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.05847, 42.32366 ] } } +, +{ "type": "Feature", "id": 325, "properties": { "CASE_ENQUIRY_ID": 101001136865.0, "OPEN_DT": "07\/25\/2014 09:50:22 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "15 Germania St Jamaica Plain MA 02130", "fire_district": 9, "pwd_district": "02", "city_council_district": 6, "police_district": "E13", "neighborhood": "Jamaica Plain", "neighborhood_services_district": 11, "ward": "Ward 11", "precinct": 1106, "land_usage": "CM", "LOCATION_STREET_NAME": "15 Germania St", "LOCATION_ZIPCODE": 2130, "LATITUDE": 42.31413, "LONGITUDE": -71.10212, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.10212, 42.31413 ] } } +, +{ "type": "Feature", "id": 326, "properties": { "CASE_ENQUIRY_ID": 101001136874.0, "OPEN_DT": "07\/25\/2014 09:57:04 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "9 Germania St Jamaica Plain MA 02130", "fire_district": 9, "pwd_district": "02", "city_council_district": 6, "police_district": "E13", "neighborhood": "Jamaica Plain", "neighborhood_services_district": 11, "ward": "Ward 11", "precinct": 1106, "land_usage": "R2", "LOCATION_STREET_NAME": "9 Germania St", "LOCATION_ZIPCODE": 2130, "LATITUDE": 42.31406, "LONGITUDE": -71.10194, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.10194, 42.31406 ] } } +, +{ "type": "Feature", "id": 327, "properties": { "CASE_ENQUIRY_ID": 101001136619.0, "OPEN_DT": "07\/25\/2014 07:21:26 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "23 Dorchester St South Boston MA 02127", "fire_district": 6, "pwd_district": "05", "city_council_district": 2, "police_district": "C6", "neighborhood": "South Boston \/ South Boston Waterfront", "neighborhood_services_district": 5, "ward": "Ward 6", "precinct": 604, "land_usage": "CM", "LOCATION_STREET_NAME": "23 Dorchester St", "LOCATION_ZIPCODE": 2127, "LATITUDE": 42.33694, "LONGITUDE": -71.04393, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.04393, 42.33694 ] } } +, +{ "type": "Feature", "id": 328, "properties": { "CASE_ENQUIRY_ID": 101001136654.0, "OPEN_DT": "07\/25\/2014 08:19:01 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "97 Horace St East Boston MA 02128", "fire_district": 1, "pwd_district": "09", "city_council_district": 1, "police_district": "A7", "neighborhood": "East Boston", "neighborhood_services_district": 1, "ward": "Ward 1", "precinct": 111, "land_usage": "R2", "LOCATION_STREET_NAME": "97 Horace St", "LOCATION_ZIPCODE": 2128, "LATITUDE": 42.38257, "LONGITUDE": -71.01583, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.01583, 42.38257 ] } } +, +{ "type": "Feature", "id": 329, "properties": { "CASE_ENQUIRY_ID": 101001137193.0, "OPEN_DT": "07\/25\/2014 02:44:02 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "17 Union Ave Jamaica Plain MA 02130", "fire_district": 9, "pwd_district": "02", "city_council_district": 6, "police_district": "E13", "neighborhood": "Jamaica Plain", "neighborhood_services_district": 11, "ward": "Ward 11", "precinct": 1107, "land_usage": "R1", "LOCATION_STREET_NAME": "17 Union Ave", "LOCATION_ZIPCODE": 2130, "LATITUDE": 42.30945, "LONGITUDE": -71.10629, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.10629, 42.30945 ] } } +, +{ "type": "Feature", "id": 330, "properties": { "CASE_ENQUIRY_ID": 101001136934.0, "OPEN_DT": "07\/25\/2014 10:36:18 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "209 Boylston St Jamaica Plain MA 02130", "fire_district": 9, "pwd_district": "02", "city_council_district": 6, "police_district": "E13", "neighborhood": "Jamaica Plain", "neighborhood_services_district": 11, "ward": "Ward 11", "precinct": 1106, "land_usage": "R3", "LOCATION_STREET_NAME": "209 Boylston St", "LOCATION_ZIPCODE": 2130, "LATITUDE": 42.31381, "LONGITUDE": -71.10122, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.10122, 42.31381 ] } } +, +{ "type": "Feature", "id": 331, "properties": { "CASE_ENQUIRY_ID": 101001137620.0, "OPEN_DT": "07\/26\/2014 05:04:41 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "34 Chiswick Rd Brighton MA 02135", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Allston \/ Brighton", "neighborhood_services_district": 15, "ward": "Ward 21", "precinct": 2115, "land_usage": "A", "LOCATION_STREET_NAME": "34 Chiswick Rd", "LOCATION_ZIPCODE": 2135, "LATITUDE": 42.33889, "LONGITUDE": -71.15059, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.15059, 42.33889 ] } } +, +{ "type": "Feature", "id": 332, "properties": { "CASE_ENQUIRY_ID": 101001137895.0, "OPEN_DT": "07\/27\/2014 10:52:53 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "143 Putnam St East Boston MA 02128", "fire_district": 1, "pwd_district": "09", "city_council_district": 1, "police_district": "A7", "neighborhood": "East Boston", "neighborhood_services_district": 1, "ward": "Ward 1", "precinct": 106, "land_usage": "R3", "LOCATION_STREET_NAME": "143 Putnam St", "LOCATION_ZIPCODE": 2128, "LATITUDE": 42.37795, "LONGITUDE": -71.03194, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.03194, 42.37795 ] } } +, +{ "type": "Feature", "id": 333, "properties": { "CASE_ENQUIRY_ID": 101001138484.0, "OPEN_DT": "07\/28\/2014 01:18:39 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "3 Hooper St Dorchester MA 02124", "fire_district": 8, "pwd_district": "07", "city_council_district": 4, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 9, "ward": "Ward 17", "precinct": 1703, "land_usage": "R1", "LOCATION_STREET_NAME": "3 Hooper St", "LOCATION_ZIPCODE": 2124, "LATITUDE": 42.29467, "LONGITUDE": -71.0693, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.0693, 42.29467 ] } } +, +{ "type": "Feature", "id": 334, "properties": { "CASE_ENQUIRY_ID": 101001138411.0, "OPEN_DT": "07\/28\/2014 12:15:26 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "10 Mallon Rd Dorchester MA 02121", "fire_district": 7, "pwd_district": "03", "city_council_district": 4, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 8, "ward": "Ward 14", "precinct": 1404, "land_usage": "R2", "LOCATION_STREET_NAME": "10 Mallon Rd", "LOCATION_ZIPCODE": 2121, "LATITUDE": 42.30256, "LONGITUDE": -71.07411, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.07411, 42.30256 ] } } +, +{ "type": "Feature", "id": 335, "properties": { "CASE_ENQUIRY_ID": 101001138150.0, "OPEN_DT": "07\/28\/2014 09:36:03 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "234 Monsignor Dennis F O'Callaghan Way South Boston MA 02127", "fire_district": 6, "pwd_district": "05", "city_council_district": 2, "police_district": "C6", "neighborhood": "South Boston \/ South Boston Waterfront", "neighborhood_services_district": 5, "ward": "07", "precinct": 707, "land_usage": "E", "LOCATION_STREET_NAME": "234 Monsignor Dennis F O'Callaghan Way", "LOCATION_ZIPCODE": 2127, "LATITUDE": 42.32754, "LONGITUDE": -71.05559, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.05559, 42.32754 ] } } +, +{ "type": "Feature", "id": 336, "properties": { "CASE_ENQUIRY_ID": 101001138231.0, "OPEN_DT": "07\/28\/2014 10:28:35 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "12 Hereford St Boston MA 02115", "fire_district": 4, "pwd_district": "1C", "city_council_district": 8, "police_district": "D4", "neighborhood": "Back Bay", "neighborhood_services_district": 14, "ward": "Ward 5", "precinct": 509, "land_usage": "CM", "LOCATION_STREET_NAME": "12 Hereford St", "LOCATION_ZIPCODE": 2115, "LATITUDE": 42.35132, "LONGITUDE": -71.08674, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.08674, 42.35132 ] } } +, +{ "type": "Feature", "id": 337, "properties": { "CASE_ENQUIRY_ID": 101001139004.0, "OPEN_DT": "07\/29\/2014 08:41:51 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "311 Belgrade Ave Roslindale MA 02131", "fire_district": 9, "pwd_district": "06", "city_council_district": 5, "police_district": "E5", "neighborhood": "Roslindale", "neighborhood_services_district": 10, "ward": "Ward 20", "precinct": 2008, "land_usage": "R3", "LOCATION_STREET_NAME": "311 Belgrade Ave", "LOCATION_ZIPCODE": 2131, "LATITUDE": 42.28626, "LONGITUDE": -71.14427, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.14427, 42.28626 ] } } +, +{ "type": "Feature", "id": 338, "properties": { "CASE_ENQUIRY_ID": 101001139403.0, "OPEN_DT": "07\/29\/2014 02:59:00 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "6 Mallon Rd Dorchester MA 02121", "fire_district": 7, "pwd_district": "03", "city_council_district": 4, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 8, "ward": "Ward 14", "precinct": 1404, "land_usage": "R2", "LOCATION_STREET_NAME": "6 Mallon Rd", "LOCATION_ZIPCODE": 2121, "LATITUDE": 42.30265, "LONGITUDE": -71.07397, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.07397, 42.30265 ] } } +, +{ "type": "Feature", "id": 339, "properties": { "CASE_ENQUIRY_ID": 101001138989.0, "OPEN_DT": "07\/29\/2014 08:35:59 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "305 Belgrade Ave Roslindale MA 02131", "fire_district": 9, "pwd_district": "06", "city_council_district": 5, "police_district": "E5", "neighborhood": "Roslindale", "neighborhood_services_district": 10, "ward": "Ward 20", "precinct": 2008, "land_usage": "R4", "LOCATION_STREET_NAME": "305 Belgrade Ave", "LOCATION_ZIPCODE": 2131, "LATITUDE": 42.28628, "LONGITUDE": -71.14408, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.14408, 42.28628 ] } } +, +{ "type": "Feature", "id": 340, "properties": { "CASE_ENQUIRY_ID": 101001139011.0, "OPEN_DT": "07\/29\/2014 08:44:46 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "11 Topliff St Dorchester MA 02122", "fire_district": 7, "pwd_district": "03", "city_council_district": 4, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 8, "ward": "Ward 15", "precinct": 1502, "land_usage": "R3", "LOCATION_STREET_NAME": "11 Topliff St", "LOCATION_ZIPCODE": 2122, "LATITUDE": 42.30426, "LONGITUDE": -71.06879, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.06879, 42.30426 ] } } +, +{ "type": "Feature", "id": 341, "properties": { "CASE_ENQUIRY_ID": 101001139775.0, "OPEN_DT": "07\/30\/2014 08:41:14 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "19 Santuit St Dorchester MA 02124", "fire_district": 8, "pwd_district": "07", "city_council_district": 3, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 8, "ward": "Ward 16", "precinct": 1603, "land_usage": "R3", "LOCATION_STREET_NAME": "19 Santuit St", "LOCATION_ZIPCODE": 2124, "LATITUDE": 42.2903, "LONGITUDE": -71.06399, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.06399, 42.2903 ] } } +, +{ "type": "Feature", "id": 342, "properties": { "CASE_ENQUIRY_ID": 101001139769.0, "OPEN_DT": "07\/30\/2014 08:38:21 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "78 Spring Park Ave Jamaica Plain MA 02130", "fire_district": 9, "pwd_district": "02", "city_council_district": 6, "police_district": "E13", "neighborhood": "Jamaica Plain", "neighborhood_services_district": 11, "ward": "Ward 19", "precinct": 1904, "land_usage": "A", "LOCATION_STREET_NAME": "78 Spring Park Ave", "LOCATION_ZIPCODE": 2130, "LATITUDE": 42.3166, "LONGITUDE": -71.10778, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.10778, 42.3166 ] } } +, +{ "type": "Feature", "id": 343, "properties": { "CASE_ENQUIRY_ID": 101001139816.0, "OPEN_DT": "07\/30\/2014 09:02:12 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "130 Boston St Dorchester MA 02125", "fire_district": 6, "pwd_district": "03", "city_council_district": 2, "police_district": "C6", "neighborhood": "Dorchester", "neighborhood_services_district": 5, "ward": "Ward 7", "precinct": 708, "land_usage": "R3", "LOCATION_STREET_NAME": "130 Boston St", "LOCATION_ZIPCODE": 2125, "LATITUDE": 42.32501, "LONGITUDE": -71.05904, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.05904, 42.32501 ] } } +, +{ "type": "Feature", "id": 344, "properties": { "CASE_ENQUIRY_ID": 101001140097.0, "OPEN_DT": "07\/30\/2014 11:53:17 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "20 Woodward Park St Dorchester MA 02125", "fire_district": 7, "pwd_district": "03", "city_council_district": 7, "police_district": "B2", "neighborhood": "Roxbury", "neighborhood_services_district": 13, "ward": "Ward 13", "precinct": 1302, "land_usage": "EA", "LOCATION_STREET_NAME": "20 Woodward Park St", "LOCATION_ZIPCODE": 2125, "LATITUDE": 42.318631, "LONGITUDE": -71.073038, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.073038, 42.318631 ] } } +, +{ "type": "Feature", "id": 345, "properties": { "CASE_ENQUIRY_ID": 101001140370.0, "OPEN_DT": "07\/30\/2014 03:33:40 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "12 Navillus Ter Dorchester MA 02122", "fire_district": 7, "pwd_district": "03", "city_council_district": 3, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 8, "ward": "Ward 15", "precinct": 1504, "land_usage": "R3", "LOCATION_STREET_NAME": "12 Navillus Ter", "LOCATION_ZIPCODE": 2122, "LATITUDE": 42.31002, "LONGITUDE": -71.06166, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.06166, 42.31002 ] } } +, +{ "type": "Feature", "id": 346, "properties": { "CASE_ENQUIRY_ID": 101001140354.0, "OPEN_DT": "07\/30\/2014 03:23:35 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "682 Blue Hill Ave Dorchester MA 02121", "fire_district": 7, "pwd_district": "03", "city_council_district": 4, "police_district": "B3", "neighborhood": "Greater Mattapan", "neighborhood_services_district": 8, "ward": "Ward 14", "precinct": 1407, "land_usage": "R4", "LOCATION_STREET_NAME": "682 Blue Hill Ave", "LOCATION_ZIPCODE": 2121, "LATITUDE": 42.30095, "LONGITUDE": -71.08551, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.08551, 42.30095 ] } } +, +{ "type": "Feature", "id": 347, "properties": { "CASE_ENQUIRY_ID": 101001139821.0, "OPEN_DT": "07\/30\/2014 09:03:23 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "48 Harlem St Dorchester MA 02121", "fire_district": 7, "pwd_district": "03", "city_council_district": 4, "police_district": "B3", "neighborhood": "Greater Mattapan", "neighborhood_services_district": 8, "ward": "Ward 14", "precinct": 1402, "land_usage": "R3", "LOCATION_STREET_NAME": "48 Harlem St", "LOCATION_ZIPCODE": 2121, "LATITUDE": 42.30054, "LONGITUDE": -71.08011, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.08011, 42.30054 ] } } +, +{ "type": "Feature", "id": 348, "properties": { "CASE_ENQUIRY_ID": 101001139820.0, "OPEN_DT": "07\/30\/2014 09:03:22 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "140-142 Boston St Dorchester MA 02125", "fire_district": 6, "pwd_district": "03", "city_council_district": 2, "police_district": "C6", "neighborhood": "Dorchester", "neighborhood_services_district": 5, "ward": "Ward 7", "precinct": 708, "land_usage": "R3", "LOCATION_STREET_NAME": "140-142 Boston St", "LOCATION_ZIPCODE": 2125, "LATITUDE": 42.32464, "LONGITUDE": -71.05924, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.05924, 42.32464 ] } } +, +{ "type": "Feature", "id": 349, "properties": { "CASE_ENQUIRY_ID": 101001141021.0, "OPEN_DT": "07\/31\/2014 01:00:35 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "96 Normandy St Dorchester MA 02121", "fire_district": 7, "pwd_district": "03", "city_council_district": 4, "police_district": "B2", "neighborhood": "Roxbury", "neighborhood_services_district": 13, "ward": "Ward 14", "precinct": 1401, "land_usage": "R3", "LOCATION_STREET_NAME": "96 Normandy St", "LOCATION_ZIPCODE": 2121, "LATITUDE": 42.30941, "LONGITUDE": -71.07983, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.07983, 42.30941 ] } } +, +{ "type": "Feature", "id": 350, "properties": { "CASE_ENQUIRY_ID": 101001140759.0, "OPEN_DT": "07\/31\/2014 09:24:15 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "169 Byron St East Boston MA 02128", "fire_district": 1, "pwd_district": "09", "city_council_district": 1, "police_district": "A7", "neighborhood": "East Boston", "neighborhood_services_district": 1, "ward": "Ward 1", "precinct": 111, "land_usage": "R2", "LOCATION_STREET_NAME": "169 Byron St", "LOCATION_ZIPCODE": 2128, "LATITUDE": 42.38216, "LONGITUDE": -71.01561, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.01561, 42.38216 ] } } +, +{ "type": "Feature", "id": 351, "properties": { "CASE_ENQUIRY_ID": 101001141122.0, "OPEN_DT": "07\/31\/2014 02:46:57 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "183-185A Massachusetts Ave Boston MA 02115", "fire_district": 4, "pwd_district": "10A", "city_council_district": 7, "police_district": "D4", "neighborhood": "Back Bay", "neighborhood_services_district": 14, "ward": "Ward 4", "precinct": 405, "land_usage": "CM", "LOCATION_STREET_NAME": "183-185A Massachusetts Ave", "LOCATION_ZIPCODE": 2115, "LATITUDE": 42.34554, "LONGITUDE": -71.08721, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.08721, 42.34554 ] } } +, +{ "type": "Feature", "id": 352, "properties": { "CASE_ENQUIRY_ID": 101001140880.0, "OPEN_DT": "07\/31\/2014 11:05:54 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "100 Cowper St East Boston MA 02128", "fire_district": 1, "pwd_district": "09", "city_council_district": 1, "police_district": "A7", "neighborhood": "East Boston", "neighborhood_services_district": 1, "ward": "Ward 1", "precinct": 111, "land_usage": "R2", "LOCATION_STREET_NAME": "100 Cowper St", "LOCATION_ZIPCODE": 2128, "LATITUDE": 42.38098, "LONGITUDE": -71.01684, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.01684, 42.38098 ] } } +, +{ "type": "Feature", "id": 353, "properties": { "CASE_ENQUIRY_ID": 101001140766.0, "OPEN_DT": "07\/31\/2014 09:33:25 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "", "fire_district": null, "pwd_district": "", "city_council_district": null, "police_district": "", "neighborhood": "", "neighborhood_services_district": null, "ward": "", "precinct": null, "land_usage": "", "LOCATION_STREET_NAME": "", "LOCATION_ZIPCODE": null, "LATITUDE": 42.3594, "LONGITUDE": -71.0587, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.0587, 42.3594 ] } } +, +{ "type": "Feature", "id": 354, "properties": { "CASE_ENQUIRY_ID": 101001111244.0, "OPEN_DT": "06\/18\/2014 03:30:40 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "Case Closed NOVIO: No Violation Found\/No Cause", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "17 Milton Ave Dorchester MA 02124", "fire_district": 8, "pwd_district": "07", "city_council_district": 4, "police_district": "B3", "neighborhood": "Dorchester", "neighborhood_services_district": 9, "ward": "Ward 17", "precinct": 1707, "land_usage": "R2", "LOCATION_STREET_NAME": "17 Milton Ave", "LOCATION_ZIPCODE": 2124, "LATITUDE": 42.28676, "LONGITUDE": -71.07888, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.07888, 42.28676 ] } } +, +{ "type": "Feature", "id": 355, "properties": { "CASE_ENQUIRY_ID": 101001141756.0, "OPEN_DT": "08\/01\/2014 11:23:12 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "", "fire_district": null, "pwd_district": "", "city_council_district": null, "police_district": "", "neighborhood": "", "neighborhood_services_district": null, "ward": "", "precinct": null, "land_usage": "", "LOCATION_STREET_NAME": "", "LOCATION_ZIPCODE": null, "LATITUDE": 42.3594, "LONGITUDE": -71.0587, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.0587, 42.3594 ] } } +, +{ "type": "Feature", "id": 356, "properties": { "CASE_ENQUIRY_ID": 101001142898.0, "OPEN_DT": "08\/04\/2014 11:46:08 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "Case Closed CLOSED: Closed\/No Permit", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "19 Tip Top St Brighton MA 02135", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Allston \/ Brighton", "neighborhood_services_district": 15, "ward": "Ward 22", "precinct": 2204, "land_usage": "R1", "LOCATION_STREET_NAME": "19 Tip Top St", "LOCATION_ZIPCODE": 2135, "LATITUDE": 42.35071, "LONGITUDE": -71.17045, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.17045, 42.35071 ] } } +, +{ "type": "Feature", "id": 357, "properties": { "CASE_ENQUIRY_ID": 101001142738.0, "OPEN_DT": "08\/04\/2014 09:53:22 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "34 School St Brighton MA 02135", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Allston \/ Brighton", "neighborhood_services_district": 15, "ward": "Ward 22", "precinct": 2205, "land_usage": "R1", "LOCATION_STREET_NAME": "34 School St", "LOCATION_ZIPCODE": 2135, "LATITUDE": 42.36016, "LONGITUDE": -71.14248, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.14248, 42.36016 ] } } +, +{ "type": "Feature", "id": 358, "properties": { "CASE_ENQUIRY_ID": 101001143086.0, "OPEN_DT": "08\/04\/2014 02:10:46 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "390-394 Riverway Boston MA 02115", "fire_district": 9, "pwd_district": "10A", "city_council_district": 8, "police_district": "B2", "neighborhood": "Mission Hill", "neighborhood_services_district": 14, "ward": "10", "precinct": 1004, "land_usage": "CM", "LOCATION_STREET_NAME": "390-394 Riverway", "LOCATION_ZIPCODE": 2115, "LATITUDE": 42.332315, "LONGITUDE": -71.11219, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.11219, 42.332315 ] } } +, +{ "type": "Feature", "id": 359, "properties": { "CASE_ENQUIRY_ID": 101001143111.0, "OPEN_DT": "08\/04\/2014 02:31:24 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "525 Washington St Brighton MA 02135", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Brighton", "neighborhood_services_district": 15, "ward": "22", "precinct": 2207, "land_usage": "", "LOCATION_STREET_NAME": "525 Washington St", "LOCATION_ZIPCODE": 2135, "LATITUDE": 42.3594, "LONGITUDE": -71.0587, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.0587, 42.3594 ] } } +, +{ "type": "Feature", "id": 360, "properties": { "CASE_ENQUIRY_ID": 101001143259.0, "OPEN_DT": "08\/04\/2014 04:32:47 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "37 Meadowview Rd Hyde Park MA 02136", "fire_district": 12, "pwd_district": "08", "city_council_district": 5, "police_district": "E18", "neighborhood": "Hyde Park", "neighborhood_services_district": 10, "ward": "Ward 18", "precinct": 1820, "land_usage": "R1", "LOCATION_STREET_NAME": "37 Meadowview Rd", "LOCATION_ZIPCODE": 2136, "LATITUDE": 42.23304, "LONGITUDE": -71.12968, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.12968, 42.23304 ] } } +, +{ "type": "Feature", "id": 361, "properties": { "CASE_ENQUIRY_ID": 101001143116.0, "OPEN_DT": "08\/04\/2014 02:32:34 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "31 Pratt St Allston MA 02134", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Allston \/ Brighton", "neighborhood_services_district": 15, "ward": "Ward 21", "precinct": 2104, "land_usage": "R2", "LOCATION_STREET_NAME": "31 Pratt St", "LOCATION_ZIPCODE": 2134, "LATITUDE": 42.35489, "LONGITUDE": -71.12858, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.12858, 42.35489 ] } } +, +{ "type": "Feature", "id": 362, "properties": { "CASE_ENQUIRY_ID": 101001144221.0, "OPEN_DT": "08\/05\/2014 08:57:59 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "250-250A Shawmut Ave Roxbury MA 02118", "fire_district": 4, "pwd_district": "1C", "city_council_district": 2, "police_district": "D4", "neighborhood": "South End", "neighborhood_services_district": 4, "ward": "Ward 3", "precinct": 307, "land_usage": "R3", "LOCATION_STREET_NAME": "250-250A Shawmut Ave", "LOCATION_ZIPCODE": 2118, "LATITUDE": 42.34341, "LONGITUDE": -71.06812, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.06812, 42.34341 ] } } +, +{ "type": "Feature", "id": 363, "properties": { "CASE_ENQUIRY_ID": 101001143739.0, "OPEN_DT": "08\/05\/2014 11:04:11 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "291 Centre St Dorchester MA 02122", "fire_district": 8, "pwd_district": "07", "city_council_district": 3, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 7, "ward": "Ward 16", "precinct": 1604, "land_usage": "R3", "LOCATION_STREET_NAME": "291 Centre St", "LOCATION_ZIPCODE": 2122, "LATITUDE": 42.29376, "LONGITUDE": -71.06094, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.06094, 42.29376 ] } } +, +{ "type": "Feature", "id": 364, "properties": { "CASE_ENQUIRY_ID": 101001143605.0, "OPEN_DT": "08\/05\/2014 09:22:14 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "80 Ashley St East Boston MA 02128", "fire_district": 1, "pwd_district": "09", "city_council_district": 1, "police_district": "A7", "neighborhood": "East Boston", "neighborhood_services_district": 1, "ward": "Ward 1", "precinct": 113, "land_usage": "R1", "LOCATION_STREET_NAME": "80 Ashley St", "LOCATION_ZIPCODE": 2128, "LATITUDE": 42.38825, "LONGITUDE": -71.00869, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.00869, 42.38825 ] } } +, +{ "type": "Feature", "id": 365, "properties": { "CASE_ENQUIRY_ID": 101001143751.0, "OPEN_DT": "08\/05\/2014 11:16:56 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "385 Dorchester Ave South Boston MA 02127", "fire_district": 6, "pwd_district": "05", "city_council_district": 2, "police_district": "C6", "neighborhood": "South Boston \/ South Boston Waterfront", "neighborhood_services_district": 5, "ward": "07", "precinct": 705, "land_usage": "RC", "LOCATION_STREET_NAME": "385 Dorchester Ave", "LOCATION_ZIPCODE": 2127, "LATITUDE": 42.334607, "LONGITUDE": -71.05799, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.05799, 42.334607 ] } } +, +{ "type": "Feature", "id": 366, "properties": { "CASE_ENQUIRY_ID": 101001144477.0, "OPEN_DT": "08\/06\/2014 09:59:21 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "177-179 Green St Jamaica Plain MA 02130", "fire_district": 9, "pwd_district": "02", "city_council_district": 6, "police_district": "E13", "neighborhood": "Jamaica Plain", "neighborhood_services_district": 11, "ward": "Ward 11", "precinct": 1107, "land_usage": "I", "LOCATION_STREET_NAME": "177-179 Green St", "LOCATION_ZIPCODE": 2130, "LATITUDE": 42.30996, "LONGITUDE": -71.10612, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.10612, 42.30996 ] } } +, +{ "type": "Feature", "id": 367, "properties": { "CASE_ENQUIRY_ID": 101001144681.0, "OPEN_DT": "08\/06\/2014 12:23:18 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "3559 Washington St Jamaica Plain MA 02130", "fire_district": 9, "pwd_district": "02", "city_council_district": 6, "police_district": "E13", "neighborhood": "Jamaica Plain", "neighborhood_services_district": 11, "ward": "Ward 11", "precinct": 1108, "land_usage": "R3", "LOCATION_STREET_NAME": "3559 Washington St", "LOCATION_ZIPCODE": 2130, "LATITUDE": 42.30459, "LONGITUDE": -71.10966, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.10966, 42.30459 ] } } +, +{ "type": "Feature", "id": 368, "properties": { "CASE_ENQUIRY_ID": 101001144472.0, "OPEN_DT": "08\/06\/2014 09:57:29 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "181-187 Green St Jamaica Plain MA 02130", "fire_district": 9, "pwd_district": "02", "city_council_district": 6, "police_district": "E13", "neighborhood": "Jamaica Plain", "neighborhood_services_district": 11, "ward": "Ward 11", "precinct": 1107, "land_usage": "RC", "LOCATION_STREET_NAME": "181-187 Green St", "LOCATION_ZIPCODE": 2130, "LATITUDE": 42.309875, "LONGITUDE": -71.105942, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.105942, 42.309875 ] } } +, +{ "type": "Feature", "id": 369, "properties": { "CASE_ENQUIRY_ID": 101001144981.0, "OPEN_DT": "08\/06\/2014 05:27:04 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "29 Parker St Charlestown MA 02129", "fire_district": 3, "pwd_district": "1A", "city_council_district": 1, "police_district": "A15", "neighborhood": "Charlestown", "neighborhood_services_district": 2, "ward": "Ward 2", "precinct": 207, "land_usage": "R1", "LOCATION_STREET_NAME": "29 Parker St", "LOCATION_ZIPCODE": 2129, "LATITUDE": 42.38294, "LONGITUDE": -71.07944, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.07944, 42.38294 ] } } +, +{ "type": "Feature", "id": 370, "properties": { "CASE_ENQUIRY_ID": 101001145225.0, "OPEN_DT": "08\/07\/2014 08:51:06 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "31 Duncan St Dorchester MA 02122", "fire_district": 7, "pwd_district": "03", "city_council_district": 3, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 8, "ward": "Ward 15", "precinct": 1506, "land_usage": "R2", "LOCATION_STREET_NAME": "31 Duncan St", "LOCATION_ZIPCODE": 2122, "LATITUDE": 42.30222, "LONGITUDE": -71.05832, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.05832, 42.30222 ] } } +, +{ "type": "Feature", "id": 371, "properties": { "CASE_ENQUIRY_ID": 101001145607.0, "OPEN_DT": "08\/07\/2014 01:38:25 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "21 Dacia St Dorchester MA 02125", "fire_district": 7, "pwd_district": "03", "city_council_district": 7, "police_district": "B2", "neighborhood": "Roxbury", "neighborhood_services_district": 13, "ward": "Ward 13", "precinct": 1301, "land_usage": "R3", "LOCATION_STREET_NAME": "21 Dacia St", "LOCATION_ZIPCODE": 2125, "LATITUDE": 42.314823, "LONGITUDE": -71.07722, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.07722, 42.314823 ] } } +, +{ "type": "Feature", "id": 372, "properties": { "CASE_ENQUIRY_ID": 101001145563.0, "OPEN_DT": "08\/07\/2014 12:50:00 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "0 Milk St Boston MA 02109", "fire_district": 3, "pwd_district": "1C", "city_council_district": 1, "police_district": "A1", "neighborhood": "Downtown \/ Financial District", "neighborhood_services_district": 3, "ward": "Ward 3", "precinct": 306, "land_usage": "E", "LOCATION_STREET_NAME": "0 Milk St", "LOCATION_ZIPCODE": 2109, "LATITUDE": 42.35877, "LONGITUDE": -71.052388, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.052388, 42.35877 ] } } +, +{ "type": "Feature", "id": 373, "properties": { "CASE_ENQUIRY_ID": 101001145143.0, "OPEN_DT": "08\/07\/2014 08:07:58 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "198 London St East Boston MA 02128", "fire_district": 1, "pwd_district": "09", "city_council_district": 1, "police_district": "A7", "neighborhood": "East Boston", "neighborhood_services_district": 1, "ward": "Ward 1", "precinct": 106, "land_usage": "R3", "LOCATION_STREET_NAME": "198 London St", "LOCATION_ZIPCODE": 2128, "LATITUDE": 42.37533, "LONGITUDE": -71.03689, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.03689, 42.37533 ] } } +, +{ "type": "Feature", "id": 374, "properties": { "CASE_ENQUIRY_ID": 101001146438.0, "OPEN_DT": "08\/08\/2014 01:21:02 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "62 W Rutland Sq Roxbury MA 02118", "fire_district": 4, "pwd_district": "1C", "city_council_district": 7, "police_district": "D4", "neighborhood": "South End", "neighborhood_services_district": 6, "ward": "Ward 4", "precinct": 404, "land_usage": "A", "LOCATION_STREET_NAME": "62 W Rutland Sq", "LOCATION_ZIPCODE": 2118, "LATITUDE": 42.34291, "LONGITUDE": -71.07989, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.07989, 42.34291 ] } } +, +{ "type": "Feature", "id": 375, "properties": { "CASE_ENQUIRY_ID": 101001146411.0, "OPEN_DT": "08\/08\/2014 12:34:04 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "958 Bennington St East Boston MA 02128", "fire_district": 1, "pwd_district": "09", "city_council_district": 1, "police_district": "A7", "neighborhood": "East Boston", "neighborhood_services_district": 1, "ward": "Ward 1", "precinct": 113, "land_usage": "CM", "LOCATION_STREET_NAME": "958 Bennington St", "LOCATION_ZIPCODE": 2128, "LATITUDE": 42.386243, "LONGITUDE": -71.008806, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.008806, 42.386243 ] } } +, +{ "type": "Feature", "id": 376, "properties": { "CASE_ENQUIRY_ID": 101001147104.0, "OPEN_DT": "08\/10\/2014 06:12:59 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "462 Sumner St East Boston MA 02128", "fire_district": 1, "pwd_district": "09", "city_council_district": 1, "police_district": "A7", "neighborhood": "East Boston", "neighborhood_services_district": 1, "ward": "Ward 1", "precinct": 101, "land_usage": "CD", "LOCATION_STREET_NAME": "462 Sumner St", "LOCATION_ZIPCODE": 2128, "LATITUDE": 42.36556, "LONGITUDE": -71.03171, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.03171, 42.36556 ] } } +, +{ "type": "Feature", "id": 377, "properties": { "CASE_ENQUIRY_ID": 101001147815.0, "OPEN_DT": "08\/11\/2014 02:33:14 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "8 Duncan Pl Dorchester MA 02122", "fire_district": 7, "pwd_district": "03", "city_council_district": 3, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 8, "ward": "Ward 15", "precinct": 1506, "land_usage": "R2", "LOCATION_STREET_NAME": "8 Duncan Pl", "LOCATION_ZIPCODE": 2122, "LATITUDE": 42.30252, "LONGITUDE": -71.05881, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.05881, 42.30252 ] } } +, +{ "type": "Feature", "id": 378, "properties": { "CASE_ENQUIRY_ID": 101001147976.0, "OPEN_DT": "08\/11\/2014 04:25:31 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "471-473 E Fourth St South Boston MA 02127", "fire_district": 6, "pwd_district": "05", "city_council_district": 2, "police_district": "C6", "neighborhood": "South Boston \/ South Boston Waterfront", "neighborhood_services_district": 5, "ward": "Ward 7", "precinct": 704, "land_usage": "R2", "LOCATION_STREET_NAME": "471-473 E Fourth St", "LOCATION_ZIPCODE": 2127, "LATITUDE": 42.3346, "LONGITUDE": -71.04644, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.04644, 42.3346 ] } } +, +{ "type": "Feature", "id": 379, "properties": { "CASE_ENQUIRY_ID": 101001147892.0, "OPEN_DT": "08\/11\/2014 03:29:00 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "134 Norwell St Dorchester MA 02121", "fire_district": 7, "pwd_district": "03", "city_council_district": 4, "police_district": "B3", "neighborhood": "Dorchester", "neighborhood_services_district": 8, "ward": "Ward 14", "precinct": 1402, "land_usage": "R2", "LOCATION_STREET_NAME": "134 Norwell St", "LOCATION_ZIPCODE": 2121, "LATITUDE": 42.29783, "LONGITUDE": -71.07843, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.07843, 42.29783 ] } } +, +{ "type": "Feature", "id": 380, "properties": { "CASE_ENQUIRY_ID": 101001147679.0, "OPEN_DT": "08\/11\/2014 12:36:21 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "", "fire_district": null, "pwd_district": "", "city_council_district": null, "police_district": "", "neighborhood": "", "neighborhood_services_district": null, "ward": "", "precinct": null, "land_usage": "", "LOCATION_STREET_NAME": "", "LOCATION_ZIPCODE": null, "LATITUDE": 42.3594, "LONGITUDE": -71.0587, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.0587, 42.3594 ] } } +, +{ "type": "Feature", "id": 381, "properties": { "CASE_ENQUIRY_ID": 101001147405.0, "OPEN_DT": "08\/11\/2014 09:58:10 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "16 Fernald Ter Dorchester MA 02125", "fire_district": 7, "pwd_district": "03", "city_council_district": 3, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 8, "ward": "Ward 15", "precinct": 1504, "land_usage": "R2", "LOCATION_STREET_NAME": "16 Fernald Ter", "LOCATION_ZIPCODE": 2125, "LATITUDE": 42.31034, "LONGITUDE": -71.06674, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.06674, 42.31034 ] } } +, +{ "type": "Feature", "id": 382, "properties": { "CASE_ENQUIRY_ID": 101001148191.0, "OPEN_DT": "08\/12\/2014 07:32:25 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "", "fire_district": null, "pwd_district": "", "city_council_district": null, "police_district": "", "neighborhood": "", "neighborhood_services_district": null, "ward": "", "precinct": null, "land_usage": "", "LOCATION_STREET_NAME": "", "LOCATION_ZIPCODE": null, "LATITUDE": 42.3594, "LONGITUDE": -71.0587, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.0587, 42.3594 ] } } +, +{ "type": "Feature", "id": 383, "properties": { "CASE_ENQUIRY_ID": 101001148685.0, "OPEN_DT": "08\/12\/2014 01:04:15 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "81 E Brookline St Roxbury MA 02118", "fire_district": 4, "pwd_district": "1C", "city_council_district": 2, "police_district": "D4", "neighborhood": "South End", "neighborhood_services_district": 6, "ward": "Ward 8", "precinct": 802, "land_usage": "CM", "LOCATION_STREET_NAME": "81 E Brookline St", "LOCATION_ZIPCODE": 2118, "LATITUDE": 42.33749, "LONGITUDE": -71.07021, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.07021, 42.33749 ] } } +, +{ "type": "Feature", "id": 384, "properties": { "CASE_ENQUIRY_ID": 101001148665.0, "OPEN_DT": "08\/12\/2014 12:47:39 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "113-117 Paul Gore St Jamaica Plain MA 02130", "fire_district": 9, "pwd_district": "02", "city_council_district": 6, "police_district": "E13", "neighborhood": "Jamaica Plain", "neighborhood_services_district": 11, "ward": "Ward 19", "precinct": 1901, "land_usage": "R4", "LOCATION_STREET_NAME": "113-117 Paul Gore St", "LOCATION_ZIPCODE": 2130, "LATITUDE": 42.3184, "LONGITUDE": -71.10611, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.10611, 42.3184 ] } } +, +{ "type": "Feature", "id": 385, "properties": { "CASE_ENQUIRY_ID": 101001148181.0, "OPEN_DT": "08\/12\/2014 07:22:22 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "38 Pratt St Allston MA 02134", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Allston \/ Brighton", "neighborhood_services_district": 15, "ward": "Ward 21", "precinct": 2104, "land_usage": "R3", "LOCATION_STREET_NAME": "38 Pratt St", "LOCATION_ZIPCODE": 2134, "LATITUDE": 42.3553, "LONGITUDE": -71.128, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.128, 42.3553 ] } } +, +{ "type": "Feature", "id": 386, "properties": { "CASE_ENQUIRY_ID": 101001148185.0, "OPEN_DT": "08\/12\/2014 07:24:46 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "", "fire_district": null, "pwd_district": "", "city_council_district": null, "police_district": "", "neighborhood": "", "neighborhood_services_district": null, "ward": "", "precinct": null, "land_usage": "", "LOCATION_STREET_NAME": "", "LOCATION_ZIPCODE": null, "LATITUDE": 42.3594, "LONGITUDE": -71.0587, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.0587, 42.3594 ] } } +, +{ "type": "Feature", "id": 387, "properties": { "CASE_ENQUIRY_ID": 101001148753.0, "OPEN_DT": "08\/12\/2014 01:55:30 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "66 Homer St East Boston MA 02128", "fire_district": 1, "pwd_district": "09", "city_council_district": 1, "police_district": "A7", "neighborhood": "East Boston", "neighborhood_services_district": 1, "ward": "Ward 1", "precinct": 111, "land_usage": "R1", "LOCATION_STREET_NAME": "66 Homer St", "LOCATION_ZIPCODE": 2128, "LATITUDE": 42.38172, "LONGITUDE": -71.0169, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.0169, 42.38172 ] } } +, +{ "type": "Feature", "id": 388, "properties": { "CASE_ENQUIRY_ID": 101001148374.0, "OPEN_DT": "08\/12\/2014 09:31:20 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "Case Closed ADCLSD: Administratively Closed", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "1-4 Saint George St Roxbury MA 02118", "fire_district": 4, "pwd_district": "1C", "city_council_district": 2, "police_district": "D4", "neighborhood": "South End", "neighborhood_services_district": 6, "ward": "08", "precinct": 802, "land_usage": "", "LOCATION_STREET_NAME": "1-4 Saint George St", "LOCATION_ZIPCODE": 2118, "LATITUDE": 42.338562, "LONGITUDE": -71.071563, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.071563, 42.338562 ] } } +, +{ "type": "Feature", "id": 389, "properties": { "CASE_ENQUIRY_ID": 101001148184.0, "OPEN_DT": "08\/12\/2014 07:24:37 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "43 Pratt St Allston MA 02134", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Allston \/ Brighton", "neighborhood_services_district": 15, "ward": "Ward 21", "precinct": 2104, "land_usage": "R2", "LOCATION_STREET_NAME": "43 Pratt St", "LOCATION_ZIPCODE": 2134, "LATITUDE": 42.35502, "LONGITUDE": -71.12772, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.12772, 42.35502 ] } } +, +{ "type": "Feature", "id": 390, "properties": { "CASE_ENQUIRY_ID": 101001148410.0, "OPEN_DT": "08\/12\/2014 09:47:20 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "23 Bilodeau Rd Dorchester MA 02121", "fire_district": 7, "pwd_district": "03", "city_council_district": 4, "police_district": "B2", "neighborhood": "Roxbury", "neighborhood_services_district": 13, "ward": "Ward 14", "precinct": 1403, "land_usage": "R2", "LOCATION_STREET_NAME": "23 Bilodeau Rd", "LOCATION_ZIPCODE": 2121, "LATITUDE": 42.30774, "LONGITUDE": -71.08153, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.08153, 42.30774 ] } } +, +{ "type": "Feature", "id": 391, "properties": { "CASE_ENQUIRY_ID": 101001148182.0, "OPEN_DT": "08\/12\/2014 07:23:29 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "40 Pratt St Allston MA 02134", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Allston \/ Brighton", "neighborhood_services_district": 15, "ward": "Ward 21", "precinct": 2104, "land_usage": "R1", "LOCATION_STREET_NAME": "40 Pratt St", "LOCATION_ZIPCODE": 2134, "LATITUDE": 42.35533, "LONGITUDE": -71.12786, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.12786, 42.35533 ] } } +, +{ "type": "Feature", "id": 392, "properties": { "CASE_ENQUIRY_ID": 101001148189.0, "OPEN_DT": "08\/12\/2014 07:28:03 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "", "fire_district": null, "pwd_district": "", "city_council_district": null, "police_district": "", "neighborhood": "", "neighborhood_services_district": null, "ward": "", "precinct": null, "land_usage": "", "LOCATION_STREET_NAME": "", "LOCATION_ZIPCODE": null, "LATITUDE": 42.3594, "LONGITUDE": -71.0587, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.0587, 42.3594 ] } } +, +{ "type": "Feature", "id": 393, "properties": { "CASE_ENQUIRY_ID": 101001149015.0, "OPEN_DT": "08\/12\/2014 07:11:23 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "93 Normandy St Dorchester MA 02121", "fire_district": 7, "pwd_district": "03", "city_council_district": 4, "police_district": "B2", "neighborhood": "Roxbury", "neighborhood_services_district": 13, "ward": "Ward 14", "precinct": 1401, "land_usage": "R3", "LOCATION_STREET_NAME": "93 Normandy St", "LOCATION_ZIPCODE": 2121, "LATITUDE": 42.30967, "LONGITUDE": -71.08009, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.08009, 42.30967 ] } } +, +{ "type": "Feature", "id": 394, "properties": { "CASE_ENQUIRY_ID": 101001148536.0, "OPEN_DT": "08\/12\/2014 11:03:27 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "251 Beacon St Boston MA 02116", "fire_district": 4, "pwd_district": "1C", "city_council_district": 8, "police_district": "D4", "neighborhood": "Back Bay", "neighborhood_services_district": 14, "ward": "Ward 5", "precinct": 507, "land_usage": "CD", "LOCATION_STREET_NAME": "251 Beacon St", "LOCATION_ZIPCODE": 2116, "LATITUDE": 42.35352, "LONGITUDE": -71.07863, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.07863, 42.35352 ] } } +, +{ "type": "Feature", "id": 395, "properties": { "CASE_ENQUIRY_ID": 101001148715.0, "OPEN_DT": "08\/12\/2014 01:27:26 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "742 Bennington St East Boston MA 02128", "fire_district": 1, "pwd_district": "09", "city_council_district": 1, "police_district": "A7", "neighborhood": "East Boston", "neighborhood_services_district": 1, "ward": "Ward 1", "precinct": 113, "land_usage": "R3", "LOCATION_STREET_NAME": "742 Bennington St", "LOCATION_ZIPCODE": 2128, "LATITUDE": 42.38542, "LONGITUDE": -71.01123, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.01123, 42.38542 ] } } +, +{ "type": "Feature", "id": 396, "properties": { "CASE_ENQUIRY_ID": 101001148491.0, "OPEN_DT": "08\/12\/2014 10:35:33 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "72-76 Richmond St Dorchester MA 02124", "fire_district": 8, "pwd_district": "07", "city_council_district": 3, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 7, "ward": "Ward 16", "precinct": 1611, "land_usage": "E", "LOCATION_STREET_NAME": "72-76 Richmond St", "LOCATION_ZIPCODE": 2124, "LATITUDE": 42.274552, "LONGITUDE": -71.066733, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.066733, 42.274552 ] } } +, +{ "type": "Feature", "id": 397, "properties": { "CASE_ENQUIRY_ID": 101001148401.0, "OPEN_DT": "08\/12\/2014 09:41:37 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "130 Rosseter St Dorchester MA 02121", "fire_district": 7, "pwd_district": "03", "city_council_district": 4, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 8, "ward": "Ward 14", "precinct": 1404, "land_usage": "R1", "LOCATION_STREET_NAME": "130 Rosseter St", "LOCATION_ZIPCODE": 2121, "LATITUDE": 42.30156, "LONGITUDE": -71.07274, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.07274, 42.30156 ] } } +, +{ "type": "Feature", "id": 398, "properties": { "CASE_ENQUIRY_ID": 101001148905.0, "OPEN_DT": "08\/12\/2014 03:56:00 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "577 E Eighth St South Boston MA 02127", "fire_district": 6, "pwd_district": "05", "city_council_district": 2, "police_district": "C6", "neighborhood": "South Boston \/ South Boston Waterfront", "neighborhood_services_district": 5, "ward": "Ward 7", "precinct": 702, "land_usage": "R3", "LOCATION_STREET_NAME": "577 E Eighth St", "LOCATION_ZIPCODE": 2127, "LATITUDE": 42.33125, "LONGITUDE": -71.03857, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.03857, 42.33125 ] } } +, +{ "type": "Feature", "id": 399, "properties": { "CASE_ENQUIRY_ID": 101001149098.0, "OPEN_DT": "08\/13\/2014 07:14:30 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "16 Mead St Allston MA 02134", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Allston \/ Brighton", "neighborhood_services_district": 15, "ward": "Ward 22", "precinct": 2202, "land_usage": "R3", "LOCATION_STREET_NAME": "16 Mead St", "LOCATION_ZIPCODE": 2134, "LATITUDE": 42.3619, "LONGITUDE": -71.1319, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.1319, 42.3619 ] } } +, +{ "type": "Feature", "id": 400, "properties": { "CASE_ENQUIRY_ID": 101001149404.0, "OPEN_DT": "08\/13\/2014 10:39:23 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "87 Adams St Dorchester MA 02122", "fire_district": 7, "pwd_district": "03", "city_council_district": 3, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 8, "ward": "Ward 15", "precinct": 1509, "land_usage": "R3", "LOCATION_STREET_NAME": "87 Adams St", "LOCATION_ZIPCODE": 2122, "LATITUDE": 42.30583, "LONGITUDE": -71.06195, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.06195, 42.30583 ] } } +, +{ "type": "Feature", "id": 401, "properties": { "CASE_ENQUIRY_ID": 101001149654.0, "OPEN_DT": "08\/13\/2014 02:44:09 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "38 East St Dorchester MA 02122", "fire_district": 7, "pwd_district": "03", "city_council_district": 3, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 8, "ward": "Ward 15", "precinct": 1504, "land_usage": "R3", "LOCATION_STREET_NAME": "38 East St", "LOCATION_ZIPCODE": 2122, "LATITUDE": 42.30743, "LONGITUDE": -71.06043, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.06043, 42.30743 ] } } +, +{ "type": "Feature", "id": 402, "properties": { "CASE_ENQUIRY_ID": 101001149796.0, "OPEN_DT": "08\/13\/2014 06:00:37 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "182 Wordsworth St East Boston MA 02128", "fire_district": 1, "pwd_district": "09", "city_council_district": 1, "police_district": "A7", "neighborhood": "East Boston", "neighborhood_services_district": 1, "ward": "Ward 1", "precinct": 112, "land_usage": "R1", "LOCATION_STREET_NAME": "182 Wordsworth St", "LOCATION_ZIPCODE": 2128, "LATITUDE": 42.38183, "LONGITUDE": -71.01329, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.01329, 42.38183 ] } } +, +{ "type": "Feature", "id": 403, "properties": { "CASE_ENQUIRY_ID": 101001149737.0, "OPEN_DT": "08\/13\/2014 03:55:05 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "32 Parker St Charlestown MA 02129", "fire_district": 3, "pwd_district": "1A", "city_council_district": 1, "police_district": "A15", "neighborhood": "Charlestown", "neighborhood_services_district": 2, "ward": "Ward 2", "precinct": 207, "land_usage": "R4", "LOCATION_STREET_NAME": "32 Parker St", "LOCATION_ZIPCODE": 2129, "LATITUDE": 42.38279, "LONGITUDE": -71.07916, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.07916, 42.38279 ] } } +, +{ "type": "Feature", "id": 404, "properties": { "CASE_ENQUIRY_ID": 101001149615.0, "OPEN_DT": "08\/13\/2014 02:02:00 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "84 E Brookline St Roxbury MA 02118", "fire_district": 4, "pwd_district": "1C", "city_council_district": 2, "police_district": "D4", "neighborhood": "South End", "neighborhood_services_district": 6, "ward": "Ward 8", "precinct": 801, "land_usage": "CM", "LOCATION_STREET_NAME": "84 E Brookline St", "LOCATION_ZIPCODE": 2118, "LATITUDE": 42.3376, "LONGITUDE": -71.06983, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.06983, 42.3376 ] } } +, +{ "type": "Feature", "id": 405, "properties": { "CASE_ENQUIRY_ID": 101001150420.0, "OPEN_DT": "08\/14\/2014 01:55:13 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "4 Sumner St Dorchester MA 02125", "fire_district": 7, "pwd_district": "03", "city_council_district": 2, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 5, "ward": "Ward 7", "precinct": 709, "land_usage": "R3", "LOCATION_STREET_NAME": "4 Sumner St", "LOCATION_ZIPCODE": 2125, "LATITUDE": 42.31965, "LONGITUDE": -71.0608, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.0608, 42.31965 ] } } +, +{ "type": "Feature", "id": 406, "properties": { "CASE_ENQUIRY_ID": 101001150616.0, "OPEN_DT": "08\/14\/2014 04:43:49 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "59 Worcester St Roxbury MA 02118", "fire_district": 4, "pwd_district": "1C", "city_council_district": 7, "police_district": "D4", "neighborhood": "South End", "neighborhood_services_district": 6, "ward": "Ward 9", "precinct": 902, "land_usage": "RC", "LOCATION_STREET_NAME": "59 Worcester St", "LOCATION_ZIPCODE": 2118, "LATITUDE": 42.3391, "LONGITUDE": -71.07732, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.07732, 42.3391 ] } } +, +{ "type": "Feature", "id": 407, "properties": { "CASE_ENQUIRY_ID": 101001150557.0, "OPEN_DT": "08\/14\/2014 03:44:35 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "11 Clive St Jamaica Plain MA 02130", "fire_district": 9, "pwd_district": "02", "city_council_district": 6, "police_district": "E13", "neighborhood": "Jamaica Plain", "neighborhood_services_district": 11, "ward": "Ward 19", "precinct": 1901, "land_usage": "R1", "LOCATION_STREET_NAME": "11 Clive St", "LOCATION_ZIPCODE": 2130, "LATITUDE": 42.31743, "LONGITUDE": -71.10824, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.10824, 42.31743 ] } } +, +{ "type": "Feature", "id": 408, "properties": { "CASE_ENQUIRY_ID": 101001150177.0, "OPEN_DT": "08\/14\/2014 10:46:52 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "16 Harris Ave Jamaica Plain MA 02130", "fire_district": 9, "pwd_district": "02", "city_council_district": 6, "police_district": "E13", "neighborhood": "Jamaica Plain", "neighborhood_services_district": 11, "ward": "Ward 19", "precinct": 1906, "land_usage": "R2", "LOCATION_STREET_NAME": "16 Harris Ave", "LOCATION_ZIPCODE": 2130, "LATITUDE": 42.31101, "LONGITUDE": -71.11231, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.11231, 42.31101 ] } } +, +{ "type": "Feature", "id": 409, "properties": { "CASE_ENQUIRY_ID": 101001150352.0, "OPEN_DT": "08\/14\/2014 12:54:20 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "46 Neponset Ave Dorchester MA 02122", "fire_district": 7, "pwd_district": "07", "city_council_district": 3, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 7, "ward": "Ward 16", "precinct": 1602, "land_usage": "R3", "LOCATION_STREET_NAME": "46 Neponset Ave", "LOCATION_ZIPCODE": 2122, "LATITUDE": 42.29636, "LONGITUDE": -71.05473, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.05473, 42.29636 ] } } +, +{ "type": "Feature", "id": 410, "properties": { "CASE_ENQUIRY_ID": 101001150470.0, "OPEN_DT": "08\/14\/2014 02:34:23 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "171 Trenton St East Boston MA 02128", "fire_district": 1, "pwd_district": "09", "city_council_district": 1, "police_district": "A7", "neighborhood": "East Boston", "neighborhood_services_district": 1, "ward": "Ward 1", "precinct": 109, "land_usage": "R3", "LOCATION_STREET_NAME": "171 Trenton St", "LOCATION_ZIPCODE": 2128, "LATITUDE": 42.38021, "LONGITUDE": -71.03242, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.03242, 42.38021 ] } } +, +{ "type": "Feature", "id": 411, "properties": { "CASE_ENQUIRY_ID": 101001150848.0, "OPEN_DT": "08\/15\/2014 08:44:22 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "371-373 Dorchester St South Boston MA 02127", "fire_district": 6, "pwd_district": "05", "city_council_district": 2, "police_district": "C6", "neighborhood": "South Boston \/ South Boston Waterfront", "neighborhood_services_district": 5, "ward": "Ward 7", "precinct": 706, "land_usage": "CM", "LOCATION_STREET_NAME": "371-373 Dorchester St", "LOCATION_ZIPCODE": 2127, "LATITUDE": 42.33041, "LONGITUDE": -71.05577, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.05577, 42.33041 ] } } +, +{ "type": "Feature", "id": 412, "properties": { "CASE_ENQUIRY_ID": 101001150964.0, "OPEN_DT": "08\/15\/2014 10:18:21 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "", "fire_district": null, "pwd_district": "", "city_council_district": null, "police_district": "", "neighborhood": "", "neighborhood_services_district": null, "ward": "", "precinct": null, "land_usage": "", "LOCATION_STREET_NAME": "", "LOCATION_ZIPCODE": null, "LATITUDE": 42.3594, "LONGITUDE": -71.0587, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.0587, 42.3594 ] } } +, +{ "type": "Feature", "id": 413, "properties": { "CASE_ENQUIRY_ID": 101001151103.0, "OPEN_DT": "08\/15\/2014 12:26:33 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "221 Columbus Ave Boston MA 02116", "fire_district": 4, "pwd_district": "1C", "city_council_district": 2, "police_district": "D4", "neighborhood": "Back Bay", "neighborhood_services_district": 6, "ward": "Ward 4", "precinct": 402, "land_usage": "CM", "LOCATION_STREET_NAME": "221 Columbus Ave", "LOCATION_ZIPCODE": 2116, "LATITUDE": 42.348248, "LONGITUDE": -71.07269, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.07269, 42.348248 ] } } +, +{ "type": "Feature", "id": 414, "properties": { "CASE_ENQUIRY_ID": 101001150820.0, "OPEN_DT": "08\/15\/2014 08:24:24 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "10 Pratt St Allston MA 02134", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Allston \/ Brighton", "neighborhood_services_district": 15, "ward": "Ward 21", "precinct": 2104, "land_usage": "R2", "LOCATION_STREET_NAME": "10 Pratt St", "LOCATION_ZIPCODE": 2134, "LATITUDE": 42.355, "LONGITUDE": -71.12986, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.12986, 42.355 ] } } +, +{ "type": "Feature", "id": 415, "properties": { "CASE_ENQUIRY_ID": 101001150888.0, "OPEN_DT": "08\/15\/2014 09:18:30 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "14 Wigglesworth St Mission Hill MA 02120", "fire_district": 9, "pwd_district": "10A", "city_council_district": 8, "police_district": "B2", "neighborhood": "Mission Hill", "neighborhood_services_district": 14, "ward": "Ward 10", "precinct": 1003, "land_usage": "R2", "LOCATION_STREET_NAME": "14 Wigglesworth St", "LOCATION_ZIPCODE": 2120, "LATITUDE": 42.3344, "LONGITUDE": -71.1031, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.1031, 42.3344 ] } } +, +{ "type": "Feature", "id": 416, "properties": { "CASE_ENQUIRY_ID": 101001150818.0, "OPEN_DT": "08\/15\/2014 08:23:16 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "7 Greylock Rd Allston MA 02134", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Allston \/ Brighton", "neighborhood_services_district": 15, "ward": "Ward 21", "precinct": 2107, "land_usage": "R2", "LOCATION_STREET_NAME": "7 Greylock Rd", "LOCATION_ZIPCODE": 2134, "LATITUDE": 42.35042, "LONGITUDE": -71.13552, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.13552, 42.35042 ] } } +, +{ "type": "Feature", "id": 417, "properties": { "CASE_ENQUIRY_ID": 101001150921.0, "OPEN_DT": "08\/15\/2014 09:43:33 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "37 Coolidge Rd Allston MA 02134", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Allston \/ Brighton", "neighborhood_services_district": 15, "ward": "Ward 22", "precinct": 2201, "land_usage": "R1", "LOCATION_STREET_NAME": "37 Coolidge Rd", "LOCATION_ZIPCODE": 2134, "LATITUDE": 42.35954, "LONGITUDE": -71.13019, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.13019, 42.35954 ] } } +, +{ "type": "Feature", "id": 418, "properties": { "CASE_ENQUIRY_ID": 101001150893.0, "OPEN_DT": "08\/15\/2014 09:21:41 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "8 Wigglesworth St Mission Hill MA 02120", "fire_district": 9, "pwd_district": "10A", "city_council_district": 8, "police_district": "B2", "neighborhood": "Mission Hill", "neighborhood_services_district": 14, "ward": "Ward 10", "precinct": 1003, "land_usage": "R4", "LOCATION_STREET_NAME": "8 Wigglesworth St", "LOCATION_ZIPCODE": 2120, "LATITUDE": 42.33425, "LONGITUDE": -71.1032, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.1032, 42.33425 ] } } +, +{ "type": "Feature", "id": 419, "properties": { "CASE_ENQUIRY_ID": 101001150902.0, "OPEN_DT": "08\/15\/2014 09:26:36 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "27 Delle Ave Mission Hill MA 02120", "fire_district": 9, "pwd_district": "10A", "city_council_district": 8, "police_district": "B2", "neighborhood": "Mission Hill", "neighborhood_services_district": 14, "ward": "Ward 10", "precinct": 1002, "land_usage": "R4", "LOCATION_STREET_NAME": "27 Delle Ave", "LOCATION_ZIPCODE": 2120, "LATITUDE": 42.33114, "LONGITUDE": -71.09852, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.09852, 42.33114 ] } } +, +{ "type": "Feature", "id": 420, "properties": { "CASE_ENQUIRY_ID": 101001152372.0, "OPEN_DT": "08\/18\/2014 01:40:08 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "379 River St Mattapan MA 02126", "fire_district": 8, "pwd_district": "07", "city_council_district": 4, "police_district": "B3", "neighborhood": "Greater Mattapan", "neighborhood_services_district": 9, "ward": "Ward 18", "precinct": 1804, "land_usage": "R2", "LOCATION_STREET_NAME": "379 River St", "LOCATION_ZIPCODE": 2126, "LATITUDE": 42.27029, "LONGITUDE": -71.08865, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.08865, 42.27029 ] } } +, +{ "type": "Feature", "id": 421, "properties": { "CASE_ENQUIRY_ID": 101001152229.0, "OPEN_DT": "08\/18\/2014 11:48:46 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "", "fire_district": null, "pwd_district": "", "city_council_district": null, "police_district": "", "neighborhood": "", "neighborhood_services_district": null, "ward": "", "precinct": null, "land_usage": "", "LOCATION_STREET_NAME": "", "LOCATION_ZIPCODE": null, "LATITUDE": 42.3594, "LONGITUDE": -71.0587, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.0587, 42.3594 ] } } +, +{ "type": "Feature", "id": 422, "properties": { "CASE_ENQUIRY_ID": 101001152743.0, "OPEN_DT": "08\/18\/2014 10:37:03 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "125 Rosseter St Dorchester MA 02121", "fire_district": 7, "pwd_district": "03", "city_council_district": 4, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 8, "ward": "Ward 14", "precinct": 1404, "land_usage": "R4", "LOCATION_STREET_NAME": "125 Rosseter St", "LOCATION_ZIPCODE": 2121, "LATITUDE": 42.3016, "LONGITUDE": -71.07316, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.07316, 42.3016 ] } } +, +{ "type": "Feature", "id": 423, "properties": { "CASE_ENQUIRY_ID": 101001152711.0, "OPEN_DT": "08\/18\/2014 08:14:17 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "INTERSECTION of Intervale St & Normandy St Dorchester MA", "fire_district": 7, "pwd_district": "03", "city_council_district": 4, "police_district": "B2", "neighborhood": "Roxbury", "neighborhood_services_district": 13, "ward": "Ward 14", "precinct": 1401, "land_usage": "", "LOCATION_STREET_NAME": "INTERSECTION Intervale St & Normandy St", "LOCATION_ZIPCODE": null, "LATITUDE": 42.380631, "LONGITUDE": -71.069532, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.069532, 42.380631 ] } } +, +{ "type": "Feature", "id": 424, "properties": { "CASE_ENQUIRY_ID": 101001152208.0, "OPEN_DT": "08\/18\/2014 11:35:05 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "79 Holworthy St Dorchester MA 02121", "fire_district": 9, "pwd_district": "10B", "city_council_district": 7, "police_district": "B2", "neighborhood": "Dorchester", "neighborhood_services_district": 13, "ward": "12", "precinct": 1208, "land_usage": "", "LOCATION_STREET_NAME": "79 Holworthy St", "LOCATION_ZIPCODE": 2121, "LATITUDE": 42.3594, "LONGITUDE": -71.0587, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.0587, 42.3594 ] } } +, +{ "type": "Feature", "id": 425, "properties": { "CASE_ENQUIRY_ID": 101001152591.0, "OPEN_DT": "08\/18\/2014 04:39:29 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "40 Cedar Lane Way Boston MA 02114", "fire_district": 3, "pwd_district": "1B", "city_council_district": 8, "police_district": "A1", "neighborhood": "Beacon Hill", "neighborhood_services_district": 14, "ward": "Ward 5", "precinct": 511, "land_usage": "R2", "LOCATION_STREET_NAME": "40 Cedar Lane Way", "LOCATION_ZIPCODE": 2114, "LATITUDE": 42.358332, "LONGITUDE": -71.07017, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.07017, 42.358332 ] } } +, +{ "type": "Feature", "id": 426, "properties": { "CASE_ENQUIRY_ID": 101001151623.0, "OPEN_DT": "08\/16\/2014 09:46:16 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "58 S Russell St Boston MA 02114", "fire_district": 3, "pwd_district": "1B", "city_council_district": 1, "police_district": "A1", "neighborhood": "Beacon Hill", "neighborhood_services_district": 3, "ward": "Ward 3", "precinct": 306, "land_usage": "A", "LOCATION_STREET_NAME": "58 S Russell St", "LOCATION_ZIPCODE": 2114, "LATITUDE": 42.359584, "LONGITUDE": -71.06582, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.06582, 42.359584 ] } } +, +{ "type": "Feature", "id": 427, "properties": { "CASE_ENQUIRY_ID": 101001152334.0, "OPEN_DT": "08\/18\/2014 12:58:48 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "11 Saint George St Roxbury MA 02118", "fire_district": 4, "pwd_district": "1C", "city_council_district": 2, "police_district": "D4", "neighborhood": "South End", "neighborhood_services_district": 6, "ward": "Ward 8", "precinct": 802, "land_usage": "CM", "LOCATION_STREET_NAME": "11 Saint George St", "LOCATION_ZIPCODE": 2118, "LATITUDE": 42.33824, "LONGITUDE": -71.07214, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.07214, 42.33824 ] } } +, +{ "type": "Feature", "id": 428, "properties": { "CASE_ENQUIRY_ID": 101001152617.0, "OPEN_DT": "08\/18\/2014 05:15:25 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "", "fire_district": null, "pwd_district": "", "city_council_district": null, "police_district": "", "neighborhood": "", "neighborhood_services_district": null, "ward": "", "precinct": null, "land_usage": "", "LOCATION_STREET_NAME": "", "LOCATION_ZIPCODE": null, "LATITUDE": 42.3594, "LONGITUDE": -71.0587, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.0587, 42.3594 ] } } +, +{ "type": "Feature", "id": 429, "properties": { "CASE_ENQUIRY_ID": 101001152630.0, "OPEN_DT": "08\/18\/2014 05:25:25 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "", "fire_district": null, "pwd_district": "", "city_council_district": null, "police_district": "", "neighborhood": "", "neighborhood_services_district": null, "ward": "", "precinct": null, "land_usage": "", "LOCATION_STREET_NAME": "", "LOCATION_ZIPCODE": null, "LATITUDE": 42.3594, "LONGITUDE": -71.0587, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.0587, 42.3594 ] } } +, +{ "type": "Feature", "id": 430, "properties": { "CASE_ENQUIRY_ID": 101001152384.0, "OPEN_DT": "08\/18\/2014 01:50:56 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "11 Topliff St Dorchester MA 02122", "fire_district": 7, "pwd_district": "03", "city_council_district": 4, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 8, "ward": "Ward 15", "precinct": 1502, "land_usage": "R3", "LOCATION_STREET_NAME": "11 Topliff St", "LOCATION_ZIPCODE": 2122, "LATITUDE": 42.30426, "LONGITUDE": -71.06879, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.06879, 42.30426 ] } } +, +{ "type": "Feature", "id": 431, "properties": { "CASE_ENQUIRY_ID": 101001152062.0, "OPEN_DT": "08\/18\/2014 09:55:06 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "14 Alpha Rd Dorchester MA 02124", "fire_district": 8, "pwd_district": "07", "city_council_district": 4, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 9, "ward": "Ward 17", "precinct": 1703, "land_usage": "R1", "LOCATION_STREET_NAME": "14 Alpha Rd", "LOCATION_ZIPCODE": 2124, "LATITUDE": 42.29595, "LONGITUDE": -71.06781, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.06781, 42.29595 ] } } +, +{ "type": "Feature", "id": 432, "properties": { "CASE_ENQUIRY_ID": 101001152263.0, "OPEN_DT": "08\/18\/2014 12:15:00 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "", "fire_district": null, "pwd_district": "", "city_council_district": null, "police_district": "", "neighborhood": "", "neighborhood_services_district": null, "ward": "", "precinct": null, "land_usage": "", "LOCATION_STREET_NAME": "", "LOCATION_ZIPCODE": null, "LATITUDE": 42.3594, "LONGITUDE": -71.0587, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.0587, 42.3594 ] } } +, +{ "type": "Feature", "id": 433, "properties": { "CASE_ENQUIRY_ID": 101001152621.0, "OPEN_DT": "08\/18\/2014 05:18:36 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "", "fire_district": null, "pwd_district": "", "city_council_district": null, "police_district": "", "neighborhood": "", "neighborhood_services_district": null, "ward": "", "precinct": null, "land_usage": "", "LOCATION_STREET_NAME": "", "LOCATION_ZIPCODE": null, "LATITUDE": 42.3594, "LONGITUDE": -71.0587, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.0587, 42.3594 ] } } +, +{ "type": "Feature", "id": 434, "properties": { "CASE_ENQUIRY_ID": 101001152206.0, "OPEN_DT": "08\/18\/2014 11:32:39 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "", "fire_district": null, "pwd_district": "", "city_council_district": null, "police_district": "", "neighborhood": "", "neighborhood_services_district": null, "ward": "", "precinct": null, "land_usage": "", "LOCATION_STREET_NAME": "", "LOCATION_ZIPCODE": null, "LATITUDE": 42.3594, "LONGITUDE": -71.0587, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.0587, 42.3594 ] } } +, +{ "type": "Feature", "id": 435, "properties": { "CASE_ENQUIRY_ID": 101001152613.0, "OPEN_DT": "08\/18\/2014 05:13:31 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "", "fire_district": null, "pwd_district": "", "city_council_district": null, "police_district": "", "neighborhood": "", "neighborhood_services_district": null, "ward": "", "precinct": null, "land_usage": "", "LOCATION_STREET_NAME": "", "LOCATION_ZIPCODE": null, "LATITUDE": 42.3594, "LONGITUDE": -71.0587, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.0587, 42.3594 ] } } +, +{ "type": "Feature", "id": 436, "properties": { "CASE_ENQUIRY_ID": 101001152354.0, "OPEN_DT": "08\/18\/2014 01:21:35 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "70 Bailey St Dorchester MA 02124", "fire_district": 8, "pwd_district": "07", "city_council_district": 4, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 8, "ward": "Ward 17", "precinct": 1711, "land_usage": "R1", "LOCATION_STREET_NAME": "70 Bailey St", "LOCATION_ZIPCODE": 2124, "LATITUDE": 42.28467, "LONGITUDE": -71.0665, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.0665, 42.28467 ] } } +, +{ "type": "Feature", "id": 437, "properties": { "CASE_ENQUIRY_ID": 101001153326.0, "OPEN_DT": "08\/19\/2014 01:30:06 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "15A Linden St Allston MA 02134", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Allston \/ Brighton", "neighborhood_services_district": 15, "ward": "Ward 21", "precinct": 2104, "land_usage": "R4", "LOCATION_STREET_NAME": "15A Linden St", "LOCATION_ZIPCODE": 2134, "LATITUDE": 42.355324, "LONGITUDE": -71.131044, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.131044, 42.355324 ] } } +, +{ "type": "Feature", "id": 438, "properties": { "CASE_ENQUIRY_ID": 101001153306.0, "OPEN_DT": "08\/19\/2014 01:20:04 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "21 Imrie Rd Allston MA 02134", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Allston \/ Brighton", "neighborhood_services_district": 15, "ward": "Ward 21", "precinct": 2106, "land_usage": "R2", "LOCATION_STREET_NAME": "21 Imrie Rd", "LOCATION_ZIPCODE": 2134, "LATITUDE": 42.3521, "LONGITUDE": -71.13841, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.13841, 42.3521 ] } } +, +{ "type": "Feature", "id": 439, "properties": { "CASE_ENQUIRY_ID": 101001153316.0, "OPEN_DT": "08\/19\/2014 01:26:31 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "15 Linden St Allston MA 02134", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Allston \/ Brighton", "neighborhood_services_district": 15, "ward": "Ward 21", "precinct": 2104, "land_usage": "R4", "LOCATION_STREET_NAME": "15 Linden St", "LOCATION_ZIPCODE": 2134, "LATITUDE": 42.35538, "LONGITUDE": -71.13108, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.13108, 42.35538 ] } } +, +{ "type": "Feature", "id": 440, "properties": { "CASE_ENQUIRY_ID": 101001153298.0, "OPEN_DT": "08\/19\/2014 01:15:04 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "27 Gordon St Allston MA 02134", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Allston \/ Brighton", "neighborhood_services_district": 15, "ward": "Ward 21", "precinct": 2106, "land_usage": "R1", "LOCATION_STREET_NAME": "27 Gordon St", "LOCATION_ZIPCODE": 2134, "LATITUDE": 42.35291, "LONGITUDE": -71.14065, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.14065, 42.35291 ] } } +, +{ "type": "Feature", "id": 441, "properties": { "CASE_ENQUIRY_ID": 101001154189.0, "OPEN_DT": "08\/20\/2014 01:26:32 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "82 Rosseter St Dorchester MA 02121", "fire_district": 7, "pwd_district": "03", "city_council_district": 4, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 8, "ward": "Ward 14", "precinct": 1404, "land_usage": "R3", "LOCATION_STREET_NAME": "82 Rosseter St", "LOCATION_ZIPCODE": 2121, "LATITUDE": 42.30349, "LONGITUDE": -71.07402, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.07402, 42.30349 ] } } +, +{ "type": "Feature", "id": 442, "properties": { "CASE_ENQUIRY_ID": 101001153938.0, "OPEN_DT": "08\/20\/2014 09:45:01 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "8 Stanwood St Dorchester MA 02121", "fire_district": 7, "pwd_district": "03", "city_council_district": 4, "police_district": "B2", "neighborhood": "Roxbury", "neighborhood_services_district": 13, "ward": "Ward 14", "precinct": 1401, "land_usage": "R2", "LOCATION_STREET_NAME": "8 Stanwood St", "LOCATION_ZIPCODE": 2121, "LATITUDE": 42.31014, "LONGITUDE": -71.08138, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.08138, 42.31014 ] } } +, +{ "type": "Feature", "id": 443, "properties": { "CASE_ENQUIRY_ID": 101001154365.0, "OPEN_DT": "08\/20\/2014 04:48:53 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "83 Byron St East Boston MA 02128", "fire_district": 1, "pwd_district": "09", "city_council_district": 1, "police_district": "A7", "neighborhood": "East Boston", "neighborhood_services_district": 1, "ward": "Ward 1", "precinct": 111, "land_usage": "R1", "LOCATION_STREET_NAME": "83 Byron St", "LOCATION_ZIPCODE": 2128, "LATITUDE": 42.38422, "LONGITUDE": -71.01832, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.01832, 42.38422 ] } } +, +{ "type": "Feature", "id": 444, "properties": { "CASE_ENQUIRY_ID": 101001154396.0, "OPEN_DT": "08\/20\/2014 05:35:22 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "10-12 Manley St Dorchester MA 02122", "fire_district": 7, "pwd_district": "07", "city_council_district": 3, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 7, "ward": "Ward 16", "precinct": 1602, "land_usage": "R3", "LOCATION_STREET_NAME": "10-12 Manley St", "LOCATION_ZIPCODE": 2122, "LATITUDE": 42.29636, "LONGITUDE": -71.05433, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.05433, 42.29636 ] } } +, +{ "type": "Feature", "id": 445, "properties": { "CASE_ENQUIRY_ID": 101001153778.0, "OPEN_DT": "08\/20\/2014 08:25:41 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "54 Marshfield St Roxbury MA 02119", "fire_district": 7, "pwd_district": "03", "city_council_district": 7, "police_district": "B2", "neighborhood": "Roxbury", "neighborhood_services_district": 13, "ward": "Ward 8", "precinct": 806, "land_usage": "R3", "LOCATION_STREET_NAME": "54 Marshfield St", "LOCATION_ZIPCODE": 2119, "LATITUDE": 42.32332, "LONGITUDE": -71.06835, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.06835, 42.32332 ] } } +, +{ "type": "Feature", "id": 446, "properties": { "CASE_ENQUIRY_ID": 101001153710.0, "OPEN_DT": "08\/20\/2014 07:56:10 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "79 Byron St East Boston MA 02128", "fire_district": 1, "pwd_district": "09", "city_council_district": 1, "police_district": "A7", "neighborhood": "East Boston", "neighborhood_services_district": 1, "ward": "Ward 1", "precinct": 111, "land_usage": "R3", "LOCATION_STREET_NAME": "79 Byron St", "LOCATION_ZIPCODE": 2128, "LATITUDE": 42.38427, "LONGITUDE": -71.01849, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.01849, 42.38427 ] } } +, +{ "type": "Feature", "id": 447, "properties": { "CASE_ENQUIRY_ID": 101001154280.0, "OPEN_DT": "08\/20\/2014 03:00:46 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "9 Chestnut St Boston MA 02108", "fire_district": 3, "pwd_district": "1B", "city_council_district": 8, "police_district": "A1", "neighborhood": "Beacon Hill", "neighborhood_services_district": 14, "ward": "Ward 5", "precinct": 503, "land_usage": "R1", "LOCATION_STREET_NAME": "9 Chestnut St", "LOCATION_ZIPCODE": 2108, "LATITUDE": 42.35787, "LONGITUDE": -71.06664, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.06664, 42.35787 ] } } +, +{ "type": "Feature", "id": 448, "properties": { "CASE_ENQUIRY_ID": 101001154247.0, "OPEN_DT": "08\/20\/2014 02:15:13 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "43-55 Linden St Allston MA 02134", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Allston \/ Brighton", "neighborhood_services_district": 15, "ward": "Ward 21", "precinct": 2104, "land_usage": "A", "LOCATION_STREET_NAME": "43-55 Linden St", "LOCATION_ZIPCODE": 2134, "LATITUDE": 42.35404, "LONGITUDE": -71.13043, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.13043, 42.35404 ] } } +, +{ "type": "Feature", "id": 449, "properties": { "CASE_ENQUIRY_ID": 101001154450.0, "OPEN_DT": "08\/20\/2014 07:52:12 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "3371-3373 Washington St Jamaica Plain MA 02130", "fire_district": 9, "pwd_district": "02", "city_council_district": 6, "police_district": "E13", "neighborhood": "Jamaica Plain", "neighborhood_services_district": 11, "ward": "11", "precinct": 1107, "land_usage": "", "LOCATION_STREET_NAME": "3371-3373 Washington St", "LOCATION_ZIPCODE": 2130, "LATITUDE": 42.3594, "LONGITUDE": -71.0587, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.0587, 42.3594 ] } } +, +{ "type": "Feature", "id": 450, "properties": { "CASE_ENQUIRY_ID": 101001153788.0, "OPEN_DT": "08\/20\/2014 08:30:31 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "89 Burrell St Roxbury MA 02119", "fire_district": 7, "pwd_district": "03", "city_council_district": 7, "police_district": "B2", "neighborhood": "Roxbury", "neighborhood_services_district": 13, "ward": "Ward 8", "precinct": 806, "land_usage": "R3", "LOCATION_STREET_NAME": "89 Burrell St", "LOCATION_ZIPCODE": 2119, "LATITUDE": 42.32357, "LONGITUDE": -71.06842, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.06842, 42.32357 ] } } +, +{ "type": "Feature", "id": 451, "properties": { "CASE_ENQUIRY_ID": 101001153785.0, "OPEN_DT": "08\/20\/2014 08:29:06 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "93 E Brookline St Roxbury MA 02118", "fire_district": 4, "pwd_district": "1C", "city_council_district": 2, "police_district": "D4", "neighborhood": "South End", "neighborhood_services_district": 6, "ward": "Ward 8", "precinct": 802, "land_usage": "R4", "LOCATION_STREET_NAME": "93 E Brookline St", "LOCATION_ZIPCODE": 2118, "LATITUDE": 42.33723, "LONGITUDE": -71.06989, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.06989, 42.33723 ] } } +, +{ "type": "Feature", "id": 452, "properties": { "CASE_ENQUIRY_ID": 101001154443.0, "OPEN_DT": "08\/20\/2014 07:42:07 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "9-11 Tip Top St Brighton MA 02135", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Allston \/ Brighton", "neighborhood_services_district": 15, "ward": "Ward 22", "precinct": 2204, "land_usage": "R2", "LOCATION_STREET_NAME": "9-11 Tip Top St", "LOCATION_ZIPCODE": 2135, "LATITUDE": 42.351001, "LONGITUDE": -71.17024, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.17024, 42.351001 ] } } +, +{ "type": "Feature", "id": 453, "properties": { "CASE_ENQUIRY_ID": 101001154265.0, "OPEN_DT": "08\/20\/2014 02:40:03 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "0 Caspian Way Dorchester MA 02125", "fire_district": 7, "pwd_district": "03", "city_council_district": 3, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 7, "ward": "Ward 13", "precinct": 1310, "land_usage": "E", "LOCATION_STREET_NAME": "0 Caspian Way", "LOCATION_ZIPCODE": 2125, "LATITUDE": 42.310771, "LONGITUDE": -71.048937, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.048937, 42.310771 ] } } +, +{ "type": "Feature", "id": 454, "properties": { "CASE_ENQUIRY_ID": 101001154389.0, "OPEN_DT": "08\/20\/2014 05:17:03 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "9 Seattle St Allston MA 02134", "fire_district": 11, "pwd_district": "04", "city_council_district": 9, "police_district": "D14", "neighborhood": "Allston \/ Brighton", "neighborhood_services_district": 15, "ward": "Ward 22", "precinct": 2201, "land_usage": "R1", "LOCATION_STREET_NAME": "9 Seattle St", "LOCATION_ZIPCODE": 2134, "LATITUDE": 42.35926, "LONGITUDE": -71.124, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.124, 42.35926 ] } } +, +{ "type": "Feature", "id": 455, "properties": { "CASE_ENQUIRY_ID": 101001154763.0, "OPEN_DT": "08\/21\/2014 10:51:38 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "12 Hinckley St Dorchester MA 02125", "fire_district": 7, "pwd_district": "03", "city_council_district": 3, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 7, "ward": "Ward 13", "precinct": 1306, "land_usage": "R2", "LOCATION_STREET_NAME": "12 Hinckley St", "LOCATION_ZIPCODE": 2125, "LATITUDE": 42.31721, "LONGITUDE": -71.05985, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.05985, 42.31721 ] } } +, +{ "type": "Feature", "id": 456, "properties": { "CASE_ENQUIRY_ID": 101001154998.0, "OPEN_DT": "08\/21\/2014 02:22:13 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "74 E Brookline St Roxbury MA 02118", "fire_district": 4, "pwd_district": "1C", "city_council_district": 2, "police_district": "D4", "neighborhood": "South End", "neighborhood_services_district": 6, "ward": "Ward 8", "precinct": 801, "land_usage": "R4", "LOCATION_STREET_NAME": "74 E Brookline St", "LOCATION_ZIPCODE": 2118, "LATITUDE": 42.33783, "LONGITUDE": -71.0701, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.0701, 42.33783 ] } } +, +{ "type": "Feature", "id": 457, "properties": { "CASE_ENQUIRY_ID": 101001154781.0, "OPEN_DT": "08\/21\/2014 11:06:36 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "14 Van Winkle St Dorchester MA 02124", "fire_district": 8, "pwd_district": "07", "city_council_district": 3, "police_district": "C11", "neighborhood": "Dorchester", "neighborhood_services_district": 7, "ward": "Ward 16", "precinct": 1608, "land_usage": "R2", "LOCATION_STREET_NAME": "14 Van Winkle St", "LOCATION_ZIPCODE": 2124, "LATITUDE": 42.2824, "LONGITUDE": -71.06455, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.06455, 42.2824 ] } } +, +{ "type": "Feature", "id": 458, "properties": { "CASE_ENQUIRY_ID": 101001155224.0, "OPEN_DT": "08\/21\/2014 09:39:52 PM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "250-250A Shawmut Ave Roxbury MA 02118", "fire_district": 4, "pwd_district": "1C", "city_council_district": 2, "police_district": "D4", "neighborhood": "South End", "neighborhood_services_district": 4, "ward": "Ward 3", "precinct": 307, "land_usage": "R3", "LOCATION_STREET_NAME": "250-250A Shawmut Ave", "LOCATION_ZIPCODE": 2118, "LATITUDE": 42.34341, "LONGITUDE": -71.06812, "Source": "Self Service" }, "geometry": { "type": "Point", "coordinates": [ -71.06812, 42.34341 ] } } +, +{ "type": "Feature", "id": 459, "properties": { "CASE_ENQUIRY_ID": 101001154651.0, "OPEN_DT": "08\/21\/2014 09:19:56 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "85-91 W Newton St Roxbury MA 02118", "fire_district": 4, "pwd_district": "1C", "city_council_district": 2, "police_district": "D4", "neighborhood": "South End", "neighborhood_services_district": 6, "ward": "Ward 9", "precinct": 901, "land_usage": "RC", "LOCATION_STREET_NAME": "85-91 W Newton St", "LOCATION_ZIPCODE": 2118, "LATITUDE": 42.34097, "LONGITUDE": -71.075794, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.075794, 42.34097 ] } } +, +{ "type": "Feature", "id": 460, "properties": { "CASE_ENQUIRY_ID": 101001154721.0, "OPEN_DT": "08\/21\/2014 10:13:26 AM", "CLOSED_DT": null, "CASE_STATUS": "Open", "CLOSURE_REASON": "", "CASE_TITLE": "Rodent Activity", "SUBJECT": "Inspectional Services", "REASON": "Environmental Services", "TYPE": "Rodent Activity", "QUEUE": "ISD_Environmental Services (INTERNAL)", "Department": "ISD", "Location": "94 Horace St East Boston MA 02128", "fire_district": 1, "pwd_district": "09", "city_council_district": 1, "police_district": "A7", "neighborhood": "East Boston", "neighborhood_services_district": 1, "ward": "Ward 1", "precinct": 111, "land_usage": "E", "LOCATION_STREET_NAME": "94 Horace St", "LOCATION_ZIPCODE": 2128, "LATITUDE": 42.38287, "LONGITUDE": -71.01606, "Source": "Constituent Call" }, "geometry": { "type": "Point", "coordinates": [ -71.01606, 42.38287 ] } } + +] +} \ No newline at end of file diff --git a/public/index.html b/public/index.html new file mode 100644 index 00000000..7704672f --- /dev/null +++ b/public/index.html @@ -0,0 +1,284 @@ + + + + Mapping with D3 + + + + + + + + + + + + + + + + + + + + + +

Public Schools, Fire Departments, Police Stations, and Hospitals in Boston

+ +

+
+ + +
+ + + \ No newline at end of file diff --git a/public/js/d3.js b/public/js/d3.js new file mode 100644 index 00000000..a527caa8 --- /dev/null +++ b/public/js/d3.js @@ -0,0 +1,15945 @@ +// https://d3js.org Version 4.0.0. Copyright 2016 Mike Bostock. +(function (global, factory) { + typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : + typeof define === 'function' && define.amd ? define(['exports'], factory) : + (factory((global.d3 = global.d3 || {}))); +}(this, function (exports) { 'use strict'; + + var version = "4.0.0"; + + function ascending(a, b) { + return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN; + } + + function bisector(compare) { + if (compare.length === 1) compare = ascendingComparator(compare); + return { + left: function(a, x, lo, hi) { + if (lo == null) lo = 0; + if (hi == null) hi = a.length; + while (lo < hi) { + var mid = lo + hi >>> 1; + if (compare(a[mid], x) < 0) lo = mid + 1; + else hi = mid; + } + return lo; + }, + right: function(a, x, lo, hi) { + if (lo == null) lo = 0; + if (hi == null) hi = a.length; + while (lo < hi) { + var mid = lo + hi >>> 1; + if (compare(a[mid], x) > 0) hi = mid; + else lo = mid + 1; + } + return lo; + } + }; + } + + function ascendingComparator(f) { + return function(d, x) { + return ascending(f(d), x); + }; + } + + var ascendingBisect = bisector(ascending); + var bisectRight = ascendingBisect.right; + var bisectLeft = ascendingBisect.left; + + function descending(a, b) { + return b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN; + } + + function number(x) { + return x === null ? NaN : +x; + } + + function variance(array, f) { + var n = array.length, + m = 0, + a, + d, + s = 0, + i = -1, + j = 0; + + if (f == null) { + while (++i < n) { + if (!isNaN(a = number(array[i]))) { + d = a - m; + m += d / ++j; + s += d * (a - m); + } + } + } + + else { + while (++i < n) { + if (!isNaN(a = number(f(array[i], i, array)))) { + d = a - m; + m += d / ++j; + s += d * (a - m); + } + } + } + + if (j > 1) return s / (j - 1); + } + + function deviation(array, f) { + var v = variance(array, f); + return v ? Math.sqrt(v) : v; + } + + function extent(array, f) { + var i = -1, + n = array.length, + a, + b, + c; + + if (f == null) { + while (++i < n) if ((b = array[i]) != null && b >= b) { a = c = b; break; } + while (++i < n) if ((b = array[i]) != null) { + if (a > b) a = b; + if (c < b) c = b; + } + } + + else { + while (++i < n) if ((b = f(array[i], i, array)) != null && b >= b) { a = c = b; break; } + while (++i < n) if ((b = f(array[i], i, array)) != null) { + if (a > b) a = b; + if (c < b) c = b; + } + } + + return [a, c]; + } + + var array = Array.prototype; + + var slice = array.slice; + var map = array.map; + + function constant(x) { + return function() { + return x; + }; + } + + function identity(x) { + return x; + } + + function range(start, stop, step) { + start = +start, stop = +stop, step = (n = arguments.length) < 2 ? (stop = start, start = 0, 1) : n < 3 ? 1 : +step; + + var i = -1, + n = Math.max(0, Math.ceil((stop - start) / step)) | 0, + range = new Array(n); + + while (++i < n) { + range[i] = start + i * step; + } + + return range; + } + + var e10 = Math.sqrt(50); + var e5 = Math.sqrt(10); + var e2 = Math.sqrt(2); + function ticks(start, stop, count) { + var step = tickStep(start, stop, count); + return range( + Math.ceil(start / step) * step, + Math.floor(stop / step) * step + step / 2, // inclusive + step + ); + } + + function tickStep(start, stop, count) { + var step0 = Math.abs(stop - start) / Math.max(0, count), + step1 = Math.pow(10, Math.floor(Math.log(step0) / Math.LN10)), + error = step0 / step1; + if (error >= e10) step1 *= 10; + else if (error >= e5) step1 *= 5; + else if (error >= e2) step1 *= 2; + return stop < start ? -step1 : step1; + } + + function sturges(values) { + return Math.ceil(Math.log(values.length) / Math.LN2) + 1; + } + + function histogram() { + var value = identity, + domain = extent, + threshold = sturges; + + function histogram(data) { + var i, + n = data.length, + x, + values = new Array(n); + + for (i = 0; i < n; ++i) { + values[i] = value(data[i], i, data); + } + + var xz = domain(values), + x0 = xz[0], + x1 = xz[1], + tz = threshold(values, x0, x1); + + // Convert number of thresholds into uniform thresholds. + if (!Array.isArray(tz)) tz = ticks(x0, x1, tz); + + // Remove any thresholds outside the domain. + var m = tz.length; + while (tz[0] <= x0) tz.shift(), --m; + while (tz[m - 1] >= x1) tz.pop(), --m; + + var bins = new Array(m + 1), + bin; + + // Initialize bins. + for (i = 0; i <= m; ++i) { + bin = bins[i] = []; + bin.x0 = i > 0 ? tz[i - 1] : x0; + bin.x1 = i < m ? tz[i] : x1; + } + + // Assign data to bins by value, ignoring any outside the domain. + for (i = 0; i < n; ++i) { + x = values[i]; + if (x0 <= x && x <= x1) { + bins[bisectRight(tz, x, 0, m)].push(data[i]); + } + } + + return bins; + } + + histogram.value = function(_) { + return arguments.length ? (value = typeof _ === "function" ? _ : constant(_), histogram) : value; + }; + + histogram.domain = function(_) { + return arguments.length ? (domain = typeof _ === "function" ? _ : constant([_[0], _[1]]), histogram) : domain; + }; + + histogram.thresholds = function(_) { + return arguments.length ? (threshold = typeof _ === "function" ? _ : Array.isArray(_) ? constant(slice.call(_)) : constant(_), histogram) : threshold; + }; + + return histogram; + } + + function threshold(array, p, f) { + if (f == null) f = number; + if (!(n = array.length)) return; + if ((p = +p) <= 0 || n < 2) return +f(array[0], 0, array); + if (p >= 1) return +f(array[n - 1], n - 1, array); + var n, + h = (n - 1) * p, + i = Math.floor(h), + a = +f(array[i], i, array), + b = +f(array[i + 1], i + 1, array); + return a + (b - a) * (h - i); + } + + function freedmanDiaconis(values, min, max) { + values = map.call(values, number).sort(ascending); + return Math.ceil((max - min) / (2 * (threshold(values, 0.75) - threshold(values, 0.25)) * Math.pow(values.length, -1 / 3))); + } + + function scott(values, min, max) { + return Math.ceil((max - min) / (3.5 * deviation(values) * Math.pow(values.length, -1 / 3))); + } + + function max(array, f) { + var i = -1, + n = array.length, + a, + b; + + if (f == null) { + while (++i < n) if ((b = array[i]) != null && b >= b) { a = b; break; } + while (++i < n) if ((b = array[i]) != null && b > a) a = b; + } + + else { + while (++i < n) if ((b = f(array[i], i, array)) != null && b >= b) { a = b; break; } + while (++i < n) if ((b = f(array[i], i, array)) != null && b > a) a = b; + } + + return a; + } + + function mean(array, f) { + var s = 0, + n = array.length, + a, + i = -1, + j = n; + + if (f == null) { + while (++i < n) if (!isNaN(a = number(array[i]))) s += a; else --j; + } + + else { + while (++i < n) if (!isNaN(a = number(f(array[i], i, array)))) s += a; else --j; + } + + if (j) return s / j; + } + + function median(array, f) { + var numbers = [], + n = array.length, + a, + i = -1; + + if (f == null) { + while (++i < n) if (!isNaN(a = number(array[i]))) numbers.push(a); + } + + else { + while (++i < n) if (!isNaN(a = number(f(array[i], i, array)))) numbers.push(a); + } + + return threshold(numbers.sort(ascending), 0.5); + } + + function merge(arrays) { + var n = arrays.length, + m, + i = -1, + j = 0, + merged, + array; + + while (++i < n) j += arrays[i].length; + merged = new Array(j); + + while (--n >= 0) { + array = arrays[n]; + m = array.length; + while (--m >= 0) { + merged[--j] = array[m]; + } + } + + return merged; + } + + function min(array, f) { + var i = -1, + n = array.length, + a, + b; + + if (f == null) { + while (++i < n) if ((b = array[i]) != null && b >= b) { a = b; break; } + while (++i < n) if ((b = array[i]) != null && a > b) a = b; + } + + else { + while (++i < n) if ((b = f(array[i], i, array)) != null && b >= b) { a = b; break; } + while (++i < n) if ((b = f(array[i], i, array)) != null && a > b) a = b; + } + + return a; + } + + function pairs(array) { + var i = 0, n = array.length - 1, p = array[0], pairs = new Array(n < 0 ? 0 : n); + while (i < n) pairs[i] = [p, p = array[++i]]; + return pairs; + } + + function permute(array, indexes) { + var i = indexes.length, permutes = new Array(i); + while (i--) permutes[i] = array[indexes[i]]; + return permutes; + } + + function scan(array, compare) { + if (!(n = array.length)) return; + var i = 0, + n, + j = 0, + xi, + xj = array[j]; + + if (!compare) compare = ascending; + + while (++i < n) if (compare(xi = array[i], xj) < 0 || compare(xj, xj) !== 0) xj = xi, j = i; + + if (compare(xj, xj) === 0) return j; + } + + function shuffle(array, i0, i1) { + var m = (i1 == null ? array.length : i1) - (i0 = i0 == null ? 0 : +i0), + t, + i; + + while (m) { + i = Math.random() * m-- | 0; + t = array[m + i0]; + array[m + i0] = array[i + i0]; + array[i + i0] = t; + } + + return array; + } + + function sum(array, f) { + var s = 0, + n = array.length, + a, + i = -1; + + if (f == null) { + while (++i < n) if (a = +array[i]) s += a; // Note: zero and null are equivalent. + } + + else { + while (++i < n) if (a = +f(array[i], i, array)) s += a; + } + + return s; + } + + function transpose(matrix) { + if (!(n = matrix.length)) return []; + for (var i = -1, m = min(matrix, length), transpose = new Array(m); ++i < m;) { + for (var j = -1, n, row = transpose[i] = new Array(n); ++j < n;) { + row[j] = matrix[j][i]; + } + } + return transpose; + } + + function length(d) { + return d.length; + } + + function zip() { + return transpose(arguments); + } + + var prefix = "$"; + + function Map() {} + + Map.prototype = map$1.prototype = { + constructor: Map, + has: function(key) { + return (prefix + key) in this; + }, + get: function(key) { + return this[prefix + key]; + }, + set: function(key, value) { + this[prefix + key] = value; + return this; + }, + remove: function(key) { + var property = prefix + key; + return property in this && delete this[property]; + }, + clear: function() { + for (var property in this) if (property[0] === prefix) delete this[property]; + }, + keys: function() { + var keys = []; + for (var property in this) if (property[0] === prefix) keys.push(property.slice(1)); + return keys; + }, + values: function() { + var values = []; + for (var property in this) if (property[0] === prefix) values.push(this[property]); + return values; + }, + entries: function() { + var entries = []; + for (var property in this) if (property[0] === prefix) entries.push({key: property.slice(1), value: this[property]}); + return entries; + }, + size: function() { + var size = 0; + for (var property in this) if (property[0] === prefix) ++size; + return size; + }, + empty: function() { + for (var property in this) if (property[0] === prefix) return false; + return true; + }, + each: function(f) { + for (var property in this) if (property[0] === prefix) f(this[property], property.slice(1), this); + } + }; + + function map$1(object, f) { + var map = new Map; + + // Copy constructor. + if (object instanceof Map) object.each(function(value, key) { map.set(key, value); }); + + // Index array by numeric index or specified key function. + else if (Array.isArray(object)) { + var i = -1, + n = object.length, + o; + + if (f == null) while (++i < n) map.set(i, object[i]); + else while (++i < n) map.set(f(o = object[i], i, object), o); + } + + // Convert object to map. + else if (object) for (var key in object) map.set(key, object[key]); + + return map; + } + + function nest() { + var keys = [], + sortKeys = [], + sortValues, + rollup, + nest; + + function apply(array, depth, createResult, setResult) { + if (depth >= keys.length) return rollup != null + ? rollup(array) : (sortValues != null + ? array.sort(sortValues) + : array); + + var i = -1, + n = array.length, + key = keys[depth++], + keyValue, + value, + valuesByKey = map$1(), + values, + result = createResult(); + + while (++i < n) { + if (values = valuesByKey.get(keyValue = key(value = array[i]) + "")) { + values.push(value); + } else { + valuesByKey.set(keyValue, [value]); + } + } + + valuesByKey.each(function(values, key) { + setResult(result, key, apply(values, depth, createResult, setResult)); + }); + + return result; + } + + function entries(map, depth) { + if (++depth > keys.length) return map; + var array, sortKey = sortKeys[depth - 1]; + if (rollup != null && depth >= keys.length) array = map.entries(); + else array = [], map.each(function(v, k) { array.push({key: k, values: entries(v, depth)}); }); + return sortKey != null ? array.sort(function(a, b) { return sortKey(a.key, b.key); }) : array; + } + + return nest = { + object: function(array) { return apply(array, 0, createObject, setObject); }, + map: function(array) { return apply(array, 0, createMap, setMap); }, + entries: function(array) { return entries(apply(array, 0, createMap, setMap), 0); }, + key: function(d) { keys.push(d); return nest; }, + sortKeys: function(order) { sortKeys[keys.length - 1] = order; return nest; }, + sortValues: function(order) { sortValues = order; return nest; }, + rollup: function(f) { rollup = f; return nest; } + }; + } + + function createObject() { + return {}; + } + + function setObject(object, key, value) { + object[key] = value; + } + + function createMap() { + return map$1(); + } + + function setMap(map, key, value) { + map.set(key, value); + } + + function Set() {} + + var proto = map$1.prototype; + + Set.prototype = set.prototype = { + constructor: Set, + has: proto.has, + add: function(value) { + value += ""; + this[prefix + value] = value; + return this; + }, + remove: proto.remove, + clear: proto.clear, + values: proto.keys, + size: proto.size, + empty: proto.empty, + each: proto.each + }; + + function set(object, f) { + var set = new Set; + + // Copy constructor. + if (object instanceof Set) object.each(function(value) { set.add(value); }); + + // Otherwise, assume it’s an array. + else if (object) { + var i = -1, n = object.length; + if (f == null) while (++i < n) set.add(object[i]); + else while (++i < n) set.add(f(object[i], i, object)); + } + + return set; + } + + function keys(map) { + var keys = []; + for (var key in map) keys.push(key); + return keys; + } + + function values(map) { + var values = []; + for (var key in map) values.push(map[key]); + return values; + } + + function entries(map) { + var entries = []; + for (var key in map) entries.push({key: key, value: map[key]}); + return entries; + } + + function uniform(min, max) { + min = min == null ? 0 : +min; + max = max == null ? 1 : +max; + if (arguments.length === 1) max = min, min = 0; + else max -= min; + return function() { + return Math.random() * max + min; + }; + } + + function normal(mu, sigma) { + var x, r; + mu = mu == null ? 0 : +mu; + sigma = sigma == null ? 1 : +sigma; + return function() { + var y; + + // If available, use the second previously-generated uniform random. + if (x != null) y = x, x = null; + + // Otherwise, generate a new x and y. + else do { + x = Math.random() * 2 - 1; + y = Math.random() * 2 - 1; + r = x * x + y * y; + } while (!r || r > 1); + + return mu + sigma * y * Math.sqrt(-2 * Math.log(r) / r); + }; + } + + function logNormal() { + var randomNormal = normal.apply(this, arguments); + return function() { + return Math.exp(randomNormal()); + }; + } + + function irwinHall(n) { + return function() { + for (var sum = 0, i = 0; i < n; ++i) sum += Math.random(); + return sum; + }; + } + + function bates(n) { + var randomIrwinHall = irwinHall(n); + return function() { + return randomIrwinHall() / n; + }; + } + + function exponential(lambda) { + return function() { + return -Math.log(1 - Math.random()) / lambda; + }; + } + + function linear(t) { + return +t; + } + + function quadIn(t) { + return t * t; + } + + function quadOut(t) { + return t * (2 - t); + } + + function quadInOut(t) { + return ((t *= 2) <= 1 ? t * t : --t * (2 - t) + 1) / 2; + } + + function cubicIn(t) { + return t * t * t; + } + + function cubicOut(t) { + return --t * t * t + 1; + } + + function easeCubicInOut(t) { + return ((t *= 2) <= 1 ? t * t * t : (t -= 2) * t * t + 2) / 2; + } + + var exponent = 3; + + var polyIn = (function custom(e) { + e = +e; + + function polyIn(t) { + return Math.pow(t, e); + } + + polyIn.exponent = custom; + + return polyIn; + })(exponent); + + var polyOut = (function custom(e) { + e = +e; + + function polyOut(t) { + return 1 - Math.pow(1 - t, e); + } + + polyOut.exponent = custom; + + return polyOut; + })(exponent); + + var polyInOut = (function custom(e) { + e = +e; + + function polyInOut(t) { + return ((t *= 2) <= 1 ? Math.pow(t, e) : 2 - Math.pow(2 - t, e)) / 2; + } + + polyInOut.exponent = custom; + + return polyInOut; + })(exponent); + + var pi = Math.PI; + var halfPi = pi / 2; + function sinIn(t) { + return 1 - Math.cos(t * halfPi); + } + + function sinOut(t) { + return Math.sin(t * halfPi); + } + + function sinInOut(t) { + return (1 - Math.cos(pi * t)) / 2; + } + + function expIn(t) { + return Math.pow(2, 10 * t - 10); + } + + function expOut(t) { + return 1 - Math.pow(2, -10 * t); + } + + function expInOut(t) { + return ((t *= 2) <= 1 ? Math.pow(2, 10 * t - 10) : 2 - Math.pow(2, 10 - 10 * t)) / 2; + } + + function circleIn(t) { + return 1 - Math.sqrt(1 - t * t); + } + + function circleOut(t) { + return Math.sqrt(1 - --t * t); + } + + function circleInOut(t) { + return ((t *= 2) <= 1 ? 1 - Math.sqrt(1 - t * t) : Math.sqrt(1 - (t -= 2) * t) + 1) / 2; + } + + var b1 = 4 / 11; + var b2 = 6 / 11; + var b3 = 8 / 11; + var b4 = 3 / 4; + var b5 = 9 / 11; + var b6 = 10 / 11; + var b7 = 15 / 16; + var b8 = 21 / 22; + var b9 = 63 / 64; + var b0 = 1 / b1 / b1; + function bounceIn(t) { + return 1 - bounceOut(1 - t); + } + + function bounceOut(t) { + return (t = +t) < b1 ? b0 * t * t : t < b3 ? b0 * (t -= b2) * t + b4 : t < b6 ? b0 * (t -= b5) * t + b7 : b0 * (t -= b8) * t + b9; + } + + function bounceInOut(t) { + return ((t *= 2) <= 1 ? 1 - bounceOut(1 - t) : bounceOut(t - 1) + 1) / 2; + } + + var overshoot = 1.70158; + + var backIn = (function custom(s) { + s = +s; + + function backIn(t) { + return t * t * ((s + 1) * t - s); + } + + backIn.overshoot = custom; + + return backIn; + })(overshoot); + + var backOut = (function custom(s) { + s = +s; + + function backOut(t) { + return --t * t * ((s + 1) * t + s) + 1; + } + + backOut.overshoot = custom; + + return backOut; + })(overshoot); + + var backInOut = (function custom(s) { + s = +s; + + function backInOut(t) { + return ((t *= 2) < 1 ? t * t * ((s + 1) * t - s) : (t -= 2) * t * ((s + 1) * t + s) + 2) / 2; + } + + backInOut.overshoot = custom; + + return backInOut; + })(overshoot); + + var tau = 2 * Math.PI; + var amplitude = 1; + var period = 0.3; + var elasticIn = (function custom(a, p) { + var s = Math.asin(1 / (a = Math.max(1, a))) * (p /= tau); + + function elasticIn(t) { + return a * Math.pow(2, 10 * --t) * Math.sin((s - t) / p); + } + + elasticIn.amplitude = function(a) { return custom(a, p * tau); }; + elasticIn.period = function(p) { return custom(a, p); }; + + return elasticIn; + })(amplitude, period); + + var elasticOut = (function custom(a, p) { + var s = Math.asin(1 / (a = Math.max(1, a))) * (p /= tau); + + function elasticOut(t) { + return 1 - a * Math.pow(2, -10 * (t = +t)) * Math.sin((t + s) / p); + } + + elasticOut.amplitude = function(a) { return custom(a, p * tau); }; + elasticOut.period = function(p) { return custom(a, p); }; + + return elasticOut; + })(amplitude, period); + + var elasticInOut = (function custom(a, p) { + var s = Math.asin(1 / (a = Math.max(1, a))) * (p /= tau); + + function elasticInOut(t) { + return ((t = t * 2 - 1) < 0 + ? a * Math.pow(2, 10 * t) * Math.sin((s - t) / p) + : 2 - a * Math.pow(2, -10 * t) * Math.sin((s + t) / p)) / 2; + } + + elasticInOut.amplitude = function(a) { return custom(a, p * tau); }; + elasticInOut.period = function(p) { return custom(a, p); }; + + return elasticInOut; + })(amplitude, period); + + function area(polygon) { + var i = -1, + n = polygon.length, + a, + b = polygon[n - 1], + area = 0; + + while (++i < n) { + a = b; + b = polygon[i]; + area += a[1] * b[0] - a[0] * b[1]; + } + + return area / 2; + } + + function centroid(polygon) { + var i = -1, + n = polygon.length, + x = 0, + y = 0, + a, + b = polygon[n - 1], + c, + k = 0; + + while (++i < n) { + a = b; + b = polygon[i]; + k += c = a[0] * b[1] - b[0] * a[1]; + x += (a[0] + b[0]) * c; + y += (a[1] + b[1]) * c; + } + + return k *= 3, [x / k, y / k]; + } + + // Returns the 2D cross product of AB and AC vectors, i.e., the z-component of + // the 3D cross product in a quadrant I Cartesian coordinate system (+x is + // right, +y is up). Returns a positive value if ABC is counter-clockwise, + // negative if clockwise, and zero if the points are collinear. + function cross(a, b, c) { + return (b[0] - a[0]) * (c[1] - a[1]) - (b[1] - a[1]) * (c[0] - a[0]); + } + + function lexicographicOrder(a, b) { + return a[0] - b[0] || a[1] - b[1]; + } + + // Computes the upper convex hull per the monotone chain algorithm. + // Assumes points.length >= 3, is sorted by x, unique in y. + // Returns an array of indices into points in left-to-right order. + function computeUpperHullIndexes(points) { + var n = points.length, + indexes = [0, 1], + size = 2; + + for (var i = 2; i < n; ++i) { + while (size > 1 && cross(points[indexes[size - 2]], points[indexes[size - 1]], points[i]) <= 0) --size; + indexes[size++] = i; + } + + return indexes.slice(0, size); // remove popped points + } + + function hull(points) { + if ((n = points.length) < 3) return null; + + var i, + n, + sortedPoints = new Array(n), + flippedPoints = new Array(n); + + for (i = 0; i < n; ++i) sortedPoints[i] = [+points[i][0], +points[i][1], i]; + sortedPoints.sort(lexicographicOrder); + for (i = 0; i < n; ++i) flippedPoints[i] = [sortedPoints[i][0], -sortedPoints[i][1]]; + + var upperIndexes = computeUpperHullIndexes(sortedPoints), + lowerIndexes = computeUpperHullIndexes(flippedPoints); + + // Construct the hull polygon, removing possible duplicate endpoints. + var skipLeft = lowerIndexes[0] === upperIndexes[0], + skipRight = lowerIndexes[lowerIndexes.length - 1] === upperIndexes[upperIndexes.length - 1], + hull = []; + + // Add upper hull in right-to-l order. + // Then add lower hull in left-to-right order. + for (i = upperIndexes.length - 1; i >= 0; --i) hull.push(points[sortedPoints[upperIndexes[i]][2]]); + for (i = +skipLeft; i < lowerIndexes.length - skipRight; ++i) hull.push(points[sortedPoints[lowerIndexes[i]][2]]); + + return hull; + } + + function contains(polygon, point) { + var n = polygon.length, + p = polygon[n - 1], + x = point[0], y = point[1], + x0 = p[0], y0 = p[1], + x1, y1, + inside = false; + + for (var i = 0; i < n; ++i) { + p = polygon[i], x1 = p[0], y1 = p[1]; + if (((y1 > y) !== (y0 > y)) && (x < (x0 - x1) * (y - y1) / (y0 - y1) + x1)) inside = !inside; + x0 = x1, y0 = y1; + } + + return inside; + } + + function length$1(polygon) { + var i = -1, + n = polygon.length, + b = polygon[n - 1], + xa, + ya, + xb = b[0], + yb = b[1], + perimeter = 0; + + while (++i < n) { + xa = xb; + ya = yb; + b = polygon[i]; + xb = b[0]; + yb = b[1]; + xa -= xb; + ya -= yb; + perimeter += Math.sqrt(xa * xa + ya * ya); + } + + return perimeter; + } + +var pi$1 = Math.PI; +var tau$1 = 2 * pi$1; + var epsilon = 1e-6; + var tauEpsilon = tau$1 - epsilon; + function Path() { + this._x0 = this._y0 = // start of current subpath + this._x1 = this._y1 = null; // end of current subpath + this._ = []; + } + + function path() { + return new Path; + } + + Path.prototype = path.prototype = { + constructor: Path, + moveTo: function(x, y) { + this._.push("M", this._x0 = this._x1 = +x, ",", this._y0 = this._y1 = +y); + }, + closePath: function() { + if (this._x1 !== null) { + this._x1 = this._x0, this._y1 = this._y0; + this._.push("Z"); + } + }, + lineTo: function(x, y) { + this._.push("L", this._x1 = +x, ",", this._y1 = +y); + }, + quadraticCurveTo: function(x1, y1, x, y) { + this._.push("Q", +x1, ",", +y1, ",", this._x1 = +x, ",", this._y1 = +y); + }, + bezierCurveTo: function(x1, y1, x2, y2, x, y) { + this._.push("C", +x1, ",", +y1, ",", +x2, ",", +y2, ",", this._x1 = +x, ",", this._y1 = +y); + }, + arcTo: function(x1, y1, x2, y2, r) { + x1 = +x1, y1 = +y1, x2 = +x2, y2 = +y2, r = +r; + var x0 = this._x1, + y0 = this._y1, + x21 = x2 - x1, + y21 = y2 - y1, + x01 = x0 - x1, + y01 = y0 - y1, + l01_2 = x01 * x01 + y01 * y01; + + // Is the radius negative? Error. + if (r < 0) throw new Error("negative radius: " + r); + + // Is this path empty? Move to (x1,y1). + if (this._x1 === null) { + this._.push( + "M", this._x1 = x1, ",", this._y1 = y1 + ); + } + + // Or, is (x1,y1) coincident with (x0,y0)? Do nothing. + else if (!(l01_2 > epsilon)); + + // Or, are (x0,y0), (x1,y1) and (x2,y2) collinear? + // Equivalently, is (x1,y1) coincident with (x2,y2)? + // Or, is the radius zero? Line to (x1,y1). + else if (!(Math.abs(y01 * x21 - y21 * x01) > epsilon) || !r) { + this._.push( + "L", this._x1 = x1, ",", this._y1 = y1 + ); + } + + // Otherwise, draw an arc! + else { + var x20 = x2 - x0, + y20 = y2 - y0, + l21_2 = x21 * x21 + y21 * y21, + l20_2 = x20 * x20 + y20 * y20, + l21 = Math.sqrt(l21_2), + l01 = Math.sqrt(l01_2), + l = r * Math.tan((pi$1 - Math.acos((l21_2 + l01_2 - l20_2) / (2 * l21 * l01))) / 2), + t01 = l / l01, + t21 = l / l21; + + // If the start tangent is not coincident with (x0,y0), line to. + if (Math.abs(t01 - 1) > epsilon) { + this._.push( + "L", x1 + t01 * x01, ",", y1 + t01 * y01 + ); + } + + this._.push( + "A", r, ",", r, ",0,0,", +(y01 * x20 > x01 * y20), ",", this._x1 = x1 + t21 * x21, ",", this._y1 = y1 + t21 * y21 + ); + } + }, + arc: function(x, y, r, a0, a1, ccw) { + x = +x, y = +y, r = +r; + var dx = r * Math.cos(a0), + dy = r * Math.sin(a0), + x0 = x + dx, + y0 = y + dy, + cw = 1 ^ ccw, + da = ccw ? a0 - a1 : a1 - a0; + + // Is the radius negative? Error. + if (r < 0) throw new Error("negative radius: " + r); + + // Is this path empty? Move to (x0,y0). + if (this._x1 === null) { + this._.push( + "M", x0, ",", y0 + ); + } + + // Or, is (x0,y0) not coincident with the previous point? Line to (x0,y0). + else if (Math.abs(this._x1 - x0) > epsilon || Math.abs(this._y1 - y0) > epsilon) { + this._.push( + "L", x0, ",", y0 + ); + } + + // Is this arc empty? We’re done. + if (!r) return; + + // Is this a complete circle? Draw two arcs to complete the circle. + if (da > tauEpsilon) { + this._.push( + "A", r, ",", r, ",0,1,", cw, ",", x - dx, ",", y - dy, + "A", r, ",", r, ",0,1,", cw, ",", this._x1 = x0, ",", this._y1 = y0 + ); + } + + // Otherwise, draw an arc! + else { + if (da < 0) da = da % tau$1 + tau$1; + this._.push( + "A", r, ",", r, ",0,", +(da >= pi$1), ",", cw, ",", this._x1 = x + r * Math.cos(a1), ",", this._y1 = y + r * Math.sin(a1) + ); + } + }, + rect: function(x, y, w, h) { + this._.push("M", this._x0 = this._x1 = +x, ",", this._y0 = this._y1 = +y, "h", +w, "v", +h, "h", -w, "Z"); + }, + toString: function() { + return this._.join(""); + } + }; + + function tree_add(d) { + var x = +this._x.call(null, d), + y = +this._y.call(null, d); + return add(this.cover(x, y), x, y, d); + } + + function add(tree, x, y, d) { + if (isNaN(x) || isNaN(y)) return tree; // ignore invalid points + + var parent, + node = tree._root, + leaf = {data: d}, + x0 = tree._x0, + y0 = tree._y0, + x1 = tree._x1, + y1 = tree._y1, + xm, + ym, + xp, + yp, + right, + bottom, + i, + j; + + // If the tree is empty, initialize the root as a leaf. + if (!node) return tree._root = leaf, tree; + + // Find the existing leaf for the new point, or add it. + while (node.length) { + if (right = x >= (xm = (x0 + x1) / 2)) x0 = xm; else x1 = xm; + if (bottom = y >= (ym = (y0 + y1) / 2)) y0 = ym; else y1 = ym; + if (parent = node, !(node = node[i = bottom << 1 | right])) return parent[i] = leaf, tree; + } + + // Is the new point is exactly coincident with the existing point? + xp = +tree._x.call(null, node.data); + yp = +tree._y.call(null, node.data); + if (x === xp && y === yp) return leaf.next = node, parent ? parent[i] = leaf : tree._root = leaf, tree; + + // Otherwise, split the leaf node until the old and new point are separated. + do { + parent = parent ? parent[i] = new Array(4) : tree._root = new Array(4); + if (right = x >= (xm = (x0 + x1) / 2)) x0 = xm; else x1 = xm; + if (bottom = y >= (ym = (y0 + y1) / 2)) y0 = ym; else y1 = ym; + } while ((i = bottom << 1 | right) === (j = (yp >= ym) << 1 | (xp >= xm))); + return parent[j] = node, parent[i] = leaf, tree; + } + + function addAll(data) { + var d, i, n = data.length, + x, + y, + xz = new Array(n), + yz = new Array(n), + x0 = Infinity, + y0 = Infinity, + x1 = -Infinity, + y1 = -Infinity; + + // Compute the points and their extent. + for (i = 0; i < n; ++i) { + if (isNaN(x = +this._x.call(null, d = data[i])) || isNaN(y = +this._y.call(null, d))) continue; + xz[i] = x; + yz[i] = y; + if (x < x0) x0 = x; + if (x > x1) x1 = x; + if (y < y0) y0 = y; + if (y > y1) y1 = y; + } + + // If there were no (valid) points, inherit the existing extent. + if (x1 < x0) x0 = this._x0, x1 = this._x1; + if (y1 < y0) y0 = this._y0, y1 = this._y1; + + // Expand the tree to cover the new points. + this.cover(x0, y0).cover(x1, y1); + + // Add the new points. + for (i = 0; i < n; ++i) { + add(this, xz[i], yz[i], data[i]); + } + + return this; + } + + function tree_cover(x, y) { + if (isNaN(x = +x) || isNaN(y = +y)) return this; // ignore invalid points + + var x0 = this._x0, + y0 = this._y0, + x1 = this._x1, + y1 = this._y1; + + // If the quadtree has no extent, initialize them. + // Integer extent are necessary so that if we later double the extent, + // the existing quadrant boundaries don’t change due to floating point error! + if (isNaN(x0)) { + x1 = (x0 = Math.floor(x)) + 1; + y1 = (y0 = Math.floor(y)) + 1; + } + + // Otherwise, double repeatedly to cover. + else if (x0 > x || x > x1 || y0 > y || y > y1) { + var z = x1 - x0, + node = this._root, + parent, + i; + + switch (i = (y < (y0 + y1) / 2) << 1 | (x < (x0 + x1) / 2)) { + case 0: { + do parent = new Array(4), parent[i] = node, node = parent; + while (z *= 2, x1 = x0 + z, y1 = y0 + z, x > x1 || y > y1); + break; + } + case 1: { + do parent = new Array(4), parent[i] = node, node = parent; + while (z *= 2, x0 = x1 - z, y1 = y0 + z, x0 > x || y > y1); + break; + } + case 2: { + do parent = new Array(4), parent[i] = node, node = parent; + while (z *= 2, x1 = x0 + z, y0 = y1 - z, x > x1 || y0 > y); + break; + } + case 3: { + do parent = new Array(4), parent[i] = node, node = parent; + while (z *= 2, x0 = x1 - z, y0 = y1 - z, x0 > x || y0 > y); + break; + } + } + + if (this._root && this._root.length) this._root = node; + } + + // If the quadtree covers the point already, just return. + else return this; + + this._x0 = x0; + this._y0 = y0; + this._x1 = x1; + this._y1 = y1; + return this; + } + + function tree_data() { + var data = []; + this.visit(function(node) { + if (!node.length) do data.push(node.data); while (node = node.next) + }); + return data; + } + + function tree_extent(_) { + return arguments.length + ? this.cover(+_[0][0], +_[0][1]).cover(+_[1][0], +_[1][1]) + : isNaN(this._x0) ? undefined : [[this._x0, this._y0], [this._x1, this._y1]]; + } + + function Quad(node, x0, y0, x1, y1) { + this.node = node; + this.x0 = x0; + this.y0 = y0; + this.x1 = x1; + this.y1 = y1; + } + + function tree_find(x, y, radius) { + var data, + x0 = this._x0, + y0 = this._y0, + x1, + y1, + x2, + y2, + x3 = this._x1, + y3 = this._y1, + quads = [], + node = this._root, + q, + i; + + if (node) quads.push(new Quad(node, x0, y0, x3, y3)); + if (radius == null) radius = Infinity; + else { + x0 = x - radius, y0 = y - radius; + x3 = x + radius, y3 = y + radius; + radius *= radius; + } + + while (q = quads.pop()) { + + // Stop searching if this quadrant can’t contain a closer node. + if (!(node = q.node) + || (x1 = q.x0) > x3 + || (y1 = q.y0) > y3 + || (x2 = q.x1) < x0 + || (y2 = q.y1) < y0) continue; + + // Bisect the current quadrant. + if (node.length) { + var xm = (x1 + x2) / 2, + ym = (y1 + y2) / 2; + + quads.push( + new Quad(node[3], xm, ym, x2, y2), + new Quad(node[2], x1, ym, xm, y2), + new Quad(node[1], xm, y1, x2, ym), + new Quad(node[0], x1, y1, xm, ym) + ); + + // Visit the closest quadrant first. + if (i = (y >= ym) << 1 | (x >= xm)) { + q = quads[quads.length - 1]; + quads[quads.length - 1] = quads[quads.length - 1 - i]; + quads[quads.length - 1 - i] = q; + } + } + + // Visit this point. (Visiting coincident points isn’t necessary!) + else { + var dx = x - +this._x.call(null, node.data), + dy = y - +this._y.call(null, node.data), + d2 = dx * dx + dy * dy; + if (d2 < radius) { + var d = Math.sqrt(radius = d2); + x0 = x - d, y0 = y - d; + x3 = x + d, y3 = y + d; + data = node.data; + } + } + } + + return data; + } + + function tree_remove(d) { + if (isNaN(x = +this._x.call(null, d)) || isNaN(y = +this._y.call(null, d))) return this; // ignore invalid points + + var parent, + node = this._root, + retainer, + previous, + next, + x0 = this._x0, + y0 = this._y0, + x1 = this._x1, + y1 = this._y1, + x, + y, + xm, + ym, + right, + bottom, + i, + j; + + // If the tree is empty, initialize the root as a leaf. + if (!node) return this; + + // Find the leaf node for the point. + // While descending, also retain the deepest parent with a non-removed sibling. + if (node.length) while (true) { + if (right = x >= (xm = (x0 + x1) / 2)) x0 = xm; else x1 = xm; + if (bottom = y >= (ym = (y0 + y1) / 2)) y0 = ym; else y1 = ym; + if (!(parent = node, node = node[i = bottom << 1 | right])) return this; + if (!node.length) break; + if (parent[(i + 1) & 3] || parent[(i + 2) & 3] || parent[(i + 3) & 3]) retainer = parent, j = i; + } + + // Find the point to remove. + while (node.data !== d) if (!(previous = node, node = node.next)) return this; + if (next = node.next) delete node.next; + + // If there are multiple coincident points, remove just the point. + if (previous) return (next ? previous.next = next : delete previous.next), this; + + // If this is the root point, remove it. + if (!parent) return this._root = next, this; + + // Remove this leaf. + next ? parent[i] = next : delete parent[i]; + + // If the parent now contains exactly one leaf, collapse superfluous parents. + if ((node = parent[0] || parent[1] || parent[2] || parent[3]) + && node === (parent[3] || parent[2] || parent[1] || parent[0]) + && !node.length) { + if (retainer) retainer[j] = node; + else this._root = node; + } + + return this; + } + + function removeAll(data) { + for (var i = 0, n = data.length; i < n; ++i) this.remove(data[i]); + return this; + } + + function tree_root() { + return this._root; + } + + function tree_size() { + var size = 0; + this.visit(function(node) { + if (!node.length) do ++size; while (node = node.next) + }); + return size; + } + + function tree_visit(callback) { + var quads = [], q, node = this._root, child, x0, y0, x1, y1; + if (node) quads.push(new Quad(node, this._x0, this._y0, this._x1, this._y1)); + while (q = quads.pop()) { + if (!callback(node = q.node, x0 = q.x0, y0 = q.y0, x1 = q.x1, y1 = q.y1) && node.length) { + var xm = (x0 + x1) / 2, ym = (y0 + y1) / 2; + if (child = node[3]) quads.push(new Quad(child, xm, ym, x1, y1)); + if (child = node[2]) quads.push(new Quad(child, x0, ym, xm, y1)); + if (child = node[1]) quads.push(new Quad(child, xm, y0, x1, ym)); + if (child = node[0]) quads.push(new Quad(child, x0, y0, xm, ym)); + } + } + return this; + } + + function tree_visitAfter(callback) { + var quads = [], next = [], q; + if (this._root) quads.push(new Quad(this._root, this._x0, this._y0, this._x1, this._y1)); + while (q = quads.pop()) { + var node = q.node; + if (node.length) { + var child, x0 = q.x0, y0 = q.y0, x1 = q.x1, y1 = q.y1, xm = (x0 + x1) / 2, ym = (y0 + y1) / 2; + if (child = node[0]) quads.push(new Quad(child, x0, y0, xm, ym)); + if (child = node[1]) quads.push(new Quad(child, xm, y0, x1, ym)); + if (child = node[2]) quads.push(new Quad(child, x0, ym, xm, y1)); + if (child = node[3]) quads.push(new Quad(child, xm, ym, x1, y1)); + } + next.push(q); + } + while (q = next.pop()) { + callback(q.node, q.x0, q.y0, q.x1, q.y1); + } + return this; + } + + function defaultX(d) { + return d[0]; + } + + function tree_x(_) { + return arguments.length ? (this._x = _, this) : this._x; + } + + function defaultY(d) { + return d[1]; + } + + function tree_y(_) { + return arguments.length ? (this._y = _, this) : this._y; + } + + function quadtree(nodes, x, y) { + var tree = new Quadtree(x == null ? defaultX : x, y == null ? defaultY : y, NaN, NaN, NaN, NaN); + return nodes == null ? tree : tree.addAll(nodes); + } + + function Quadtree(x, y, x0, y0, x1, y1) { + this._x = x; + this._y = y; + this._x0 = x0; + this._y0 = y0; + this._x1 = x1; + this._y1 = y1; + this._root = undefined; + } + + function leaf_copy(leaf) { + var copy = {data: leaf.data}, next = copy; + while (leaf = leaf.next) next = next.next = {data: leaf.data}; + return copy; + } + + var treeProto = quadtree.prototype = Quadtree.prototype; + + treeProto.copy = function() { + var copy = new Quadtree(this._x, this._y, this._x0, this._y0, this._x1, this._y1), + node = this._root, + nodes, + child; + + if (!node) return copy; + + if (!node.length) return copy._root = leaf_copy(node), copy; + + nodes = [{source: node, target: copy._root = new Array(4)}]; + while (node = nodes.pop()) { + for (var i = 0; i < 4; ++i) { + if (child = node.source[i]) { + if (child.length) nodes.push({source: child, target: node.target[i] = new Array(4)}); + else node.target[i] = leaf_copy(child); + } + } + } + + return copy; + }; + + treeProto.add = tree_add; + treeProto.addAll = addAll; + treeProto.cover = tree_cover; + treeProto.data = tree_data; + treeProto.extent = tree_extent; + treeProto.find = tree_find; + treeProto.remove = tree_remove; + treeProto.removeAll = removeAll; + treeProto.root = tree_root; + treeProto.size = tree_size; + treeProto.visit = tree_visit; + treeProto.visitAfter = tree_visitAfter; + treeProto.x = tree_x; + treeProto.y = tree_y; + + var slice$1 = [].slice; + + var noabort = {}; + + function Queue(size) { + if (!(size >= 1)) throw new Error; + this._size = size; + this._call = + this._error = null; + this._tasks = []; + this._data = []; + this._waiting = + this._active = + this._ended = + this._start = 0; // inside a synchronous task callback? + } + + Queue.prototype = queue.prototype = { + constructor: Queue, + defer: function(callback) { + if (typeof callback !== "function" || this._call) throw new Error; + if (this._error != null) return this; + var t = slice$1.call(arguments, 1); + t.push(callback); + ++this._waiting, this._tasks.push(t); + poke(this); + return this; + }, + abort: function() { + if (this._error == null) abort(this, new Error("abort")); + return this; + }, + await: function(callback) { + if (typeof callback !== "function" || this._call) throw new Error; + this._call = function(error, results) { callback.apply(null, [error].concat(results)); }; + maybeNotify(this); + return this; + }, + awaitAll: function(callback) { + if (typeof callback !== "function" || this._call) throw new Error; + this._call = callback; + maybeNotify(this); + return this; + } + }; + + function poke(q) { + if (!q._start) try { start(q); } // let the current task complete + catch (e) { if (q._tasks[q._ended + q._active - 1]) abort(q, e); } // task errored synchronously + } + + function start(q) { + while (q._start = q._waiting && q._active < q._size) { + var i = q._ended + q._active, + t = q._tasks[i], + j = t.length - 1, + c = t[j]; + t[j] = end(q, i); + --q._waiting, ++q._active; + t = c.apply(null, t); + if (!q._tasks[i]) continue; // task finished synchronously + q._tasks[i] = t || noabort; + } + } + + function end(q, i) { + return function(e, r) { + if (!q._tasks[i]) return; // ignore multiple callbacks + --q._active, ++q._ended; + q._tasks[i] = null; + if (q._error != null) return; // ignore secondary errors + if (e != null) { + abort(q, e); + } else { + q._data[i] = r; + if (q._waiting) poke(q); + else maybeNotify(q); + } + }; + } + + function abort(q, e) { + var i = q._tasks.length, t; + q._error = e; // ignore active callbacks + q._data = undefined; // allow gc + q._waiting = NaN; // prevent starting + + while (--i >= 0) { + if (t = q._tasks[i]) { + q._tasks[i] = null; + if (t.abort) try { t.abort(); } + catch (e) { /* ignore */ } + } + } + + q._active = NaN; // allow notification + maybeNotify(q); + } + + function maybeNotify(q) { + if (!q._active && q._call) q._call(q._error, q._data); + } + + function queue(concurrency) { + return new Queue(arguments.length ? +concurrency : Infinity); + } + + function constant$1(x) { + return function constant() { + return x; + }; + } + + var epsilon$1 = 1e-12; + var pi$2 = Math.PI; + var halfPi$1 = pi$2 / 2; + var tau$2 = 2 * pi$2; + + function arcInnerRadius(d) { + return d.innerRadius; + } + + function arcOuterRadius(d) { + return d.outerRadius; + } + + function arcStartAngle(d) { + return d.startAngle; + } + + function arcEndAngle(d) { + return d.endAngle; + } + + function arcPadAngle(d) { + return d && d.padAngle; // Note: optional! + } + + function asin(x) { + return x >= 1 ? halfPi$1 : x <= -1 ? -halfPi$1 : Math.asin(x); + } + + function intersect(x0, y0, x1, y1, x2, y2, x3, y3) { + var x10 = x1 - x0, y10 = y1 - y0, + x32 = x3 - x2, y32 = y3 - y2, + t = (x32 * (y0 - y2) - y32 * (x0 - x2)) / (y32 * x10 - x32 * y10); + return [x0 + t * x10, y0 + t * y10]; + } + + // Compute perpendicular offset line of length rc. + // http://mathworld.wolfram.com/Circle-LineIntersection.html + function cornerTangents(x0, y0, x1, y1, r1, rc, cw) { + var x01 = x0 - x1, + y01 = y0 - y1, + lo = (cw ? rc : -rc) / Math.sqrt(x01 * x01 + y01 * y01), + ox = lo * y01, + oy = -lo * x01, + x11 = x0 + ox, + y11 = y0 + oy, + x10 = x1 + ox, + y10 = y1 + oy, + x00 = (x11 + x10) / 2, + y00 = (y11 + y10) / 2, + dx = x10 - x11, + dy = y10 - y11, + d2 = dx * dx + dy * dy, + r = r1 - rc, + D = x11 * y10 - x10 * y11, + d = (dy < 0 ? -1 : 1) * Math.sqrt(Math.max(0, r * r * d2 - D * D)), + cx0 = (D * dy - dx * d) / d2, + cy0 = (-D * dx - dy * d) / d2, + cx1 = (D * dy + dx * d) / d2, + cy1 = (-D * dx + dy * d) / d2, + dx0 = cx0 - x00, + dy0 = cy0 - y00, + dx1 = cx1 - x00, + dy1 = cy1 - y00; + + // Pick the closer of the two intersection points. + // TODO Is there a faster way to determine which intersection to use? + if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) cx0 = cx1, cy0 = cy1; + + return { + cx: cx0, + cy: cy0, + x01: -ox, + y01: -oy, + x11: cx0 * (r1 / r - 1), + y11: cy0 * (r1 / r - 1) + }; + } + + function arc() { + var innerRadius = arcInnerRadius, + outerRadius = arcOuterRadius, + cornerRadius = constant$1(0), + padRadius = null, + startAngle = arcStartAngle, + endAngle = arcEndAngle, + padAngle = arcPadAngle, + context = null; + + function arc() { + var buffer, + r, + r0 = +innerRadius.apply(this, arguments), + r1 = +outerRadius.apply(this, arguments), + a0 = startAngle.apply(this, arguments) - halfPi$1, + a1 = endAngle.apply(this, arguments) - halfPi$1, + da = Math.abs(a1 - a0), + cw = a1 > a0; + + if (!context) context = buffer = path(); + + // Ensure that the outer radius is always larger than the inner radius. + if (r1 < r0) r = r1, r1 = r0, r0 = r; + + // Is it a point? + if (!(r1 > epsilon$1)) context.moveTo(0, 0); + + // Or is it a circle or annulus? + else if (da > tau$2 - epsilon$1) { + context.moveTo(r1 * Math.cos(a0), r1 * Math.sin(a0)); + context.arc(0, 0, r1, a0, a1, !cw); + if (r0 > epsilon$1) { + context.moveTo(r0 * Math.cos(a1), r0 * Math.sin(a1)); + context.arc(0, 0, r0, a1, a0, cw); + } + } + + // Or is it a circular or annular sector? + else { + var a01 = a0, + a11 = a1, + a00 = a0, + a10 = a1, + da0 = da, + da1 = da, + ap = padAngle.apply(this, arguments) / 2, + rp = (ap > epsilon$1) && (padRadius ? +padRadius.apply(this, arguments) : Math.sqrt(r0 * r0 + r1 * r1)), + rc = Math.min(Math.abs(r1 - r0) / 2, +cornerRadius.apply(this, arguments)), + rc0 = rc, + rc1 = rc, + t0, + t1; + + // Apply padding? Note that since r1 ≥ r0, da1 ≥ da0. + if (rp > epsilon$1) { + var p0 = asin(rp / r0 * Math.sin(ap)), + p1 = asin(rp / r1 * Math.sin(ap)); + if ((da0 -= p0 * 2) > epsilon$1) p0 *= (cw ? 1 : -1), a00 += p0, a10 -= p0; + else da0 = 0, a00 = a10 = (a0 + a1) / 2; + if ((da1 -= p1 * 2) > epsilon$1) p1 *= (cw ? 1 : -1), a01 += p1, a11 -= p1; + else da1 = 0, a01 = a11 = (a0 + a1) / 2; + } + + var x01 = r1 * Math.cos(a01), + y01 = r1 * Math.sin(a01), + x10 = r0 * Math.cos(a10), + y10 = r0 * Math.sin(a10); + + // Apply rounded corners? + if (rc > epsilon$1) { + var x11 = r1 * Math.cos(a11), + y11 = r1 * Math.sin(a11), + x00 = r0 * Math.cos(a00), + y00 = r0 * Math.sin(a00); + + // Restrict the corner radius according to the sector angle. + if (da < pi$2) { + var oc = da0 > epsilon$1 ? intersect(x01, y01, x00, y00, x11, y11, x10, y10) : [x10, y10], + ax = x01 - oc[0], + ay = y01 - oc[1], + bx = x11 - oc[0], + by = y11 - oc[1], + kc = 1 / Math.sin(Math.acos((ax * bx + ay * by) / (Math.sqrt(ax * ax + ay * ay) * Math.sqrt(bx * bx + by * by))) / 2), + lc = Math.sqrt(oc[0] * oc[0] + oc[1] * oc[1]); + rc0 = Math.min(rc, (r0 - lc) / (kc - 1)); + rc1 = Math.min(rc, (r1 - lc) / (kc + 1)); + } + } + + // Is the sector collapsed to a line? + if (!(da1 > epsilon$1)) context.moveTo(x01, y01); + + // Does the sector’s outer ring have rounded corners? + else if (rc1 > epsilon$1) { + t0 = cornerTangents(x00, y00, x01, y01, r1, rc1, cw); + t1 = cornerTangents(x11, y11, x10, y10, r1, rc1, cw); + + context.moveTo(t0.cx + t0.x01, t0.cy + t0.y01); + + // Have the corners merged? + if (rc1 < rc) context.arc(t0.cx, t0.cy, rc1, Math.atan2(t0.y01, t0.x01), Math.atan2(t1.y01, t1.x01), !cw); + + // Otherwise, draw the two corners and the ring. + else { + context.arc(t0.cx, t0.cy, rc1, Math.atan2(t0.y01, t0.x01), Math.atan2(t0.y11, t0.x11), !cw); + context.arc(0, 0, r1, Math.atan2(t0.cy + t0.y11, t0.cx + t0.x11), Math.atan2(t1.cy + t1.y11, t1.cx + t1.x11), !cw); + context.arc(t1.cx, t1.cy, rc1, Math.atan2(t1.y11, t1.x11), Math.atan2(t1.y01, t1.x01), !cw); + } + } + + // Or is the outer ring just a circular arc? + else context.moveTo(x01, y01), context.arc(0, 0, r1, a01, a11, !cw); + + // Is there no inner ring, and it’s a circular sector? + // Or perhaps it’s an annular sector collapsed due to padding? + if (!(r0 > epsilon$1) || !(da0 > epsilon$1)) context.lineTo(x10, y10); + + // Does the sector’s inner ring (or point) have rounded corners? + else if (rc0 > epsilon$1) { + t0 = cornerTangents(x10, y10, x11, y11, r0, -rc0, cw); + t1 = cornerTangents(x01, y01, x00, y00, r0, -rc0, cw); + + context.lineTo(t0.cx + t0.x01, t0.cy + t0.y01); + + // Have the corners merged? + if (rc0 < rc) context.arc(t0.cx, t0.cy, rc0, Math.atan2(t0.y01, t0.x01), Math.atan2(t1.y01, t1.x01), !cw); + + // Otherwise, draw the two corners and the ring. + else { + context.arc(t0.cx, t0.cy, rc0, Math.atan2(t0.y01, t0.x01), Math.atan2(t0.y11, t0.x11), !cw); + context.arc(0, 0, r0, Math.atan2(t0.cy + t0.y11, t0.cx + t0.x11), Math.atan2(t1.cy + t1.y11, t1.cx + t1.x11), cw); + context.arc(t1.cx, t1.cy, rc0, Math.atan2(t1.y11, t1.x11), Math.atan2(t1.y01, t1.x01), !cw); + } + } + + // Or is the inner ring just a circular arc? + else context.arc(0, 0, r0, a10, a00, cw); + } + + context.closePath(); + + if (buffer) return context = null, buffer + "" || null; + } + + arc.centroid = function() { + var r = (+innerRadius.apply(this, arguments) + +outerRadius.apply(this, arguments)) / 2, + a = (+startAngle.apply(this, arguments) + +endAngle.apply(this, arguments)) / 2 - pi$2 / 2; + return [Math.cos(a) * r, Math.sin(a) * r]; + }; + + arc.innerRadius = function(_) { + return arguments.length ? (innerRadius = typeof _ === "function" ? _ : constant$1(+_), arc) : innerRadius; + }; + + arc.outerRadius = function(_) { + return arguments.length ? (outerRadius = typeof _ === "function" ? _ : constant$1(+_), arc) : outerRadius; + }; + + arc.cornerRadius = function(_) { + return arguments.length ? (cornerRadius = typeof _ === "function" ? _ : constant$1(+_), arc) : cornerRadius; + }; + + arc.padRadius = function(_) { + return arguments.length ? (padRadius = _ == null ? null : typeof _ === "function" ? _ : constant$1(+_), arc) : padRadius; + }; + + arc.startAngle = function(_) { + return arguments.length ? (startAngle = typeof _ === "function" ? _ : constant$1(+_), arc) : startAngle; + }; + + arc.endAngle = function(_) { + return arguments.length ? (endAngle = typeof _ === "function" ? _ : constant$1(+_), arc) : endAngle; + }; + + arc.padAngle = function(_) { + return arguments.length ? (padAngle = typeof _ === "function" ? _ : constant$1(+_), arc) : padAngle; + }; + + arc.context = function(_) { + return arguments.length ? ((context = _ == null ? null : _), arc) : context; + }; + + return arc; + } + + function Linear(context) { + this._context = context; + } + + Linear.prototype = { + areaStart: function() { + this._line = 0; + }, + areaEnd: function() { + this._line = NaN; + }, + lineStart: function() { + this._point = 0; + }, + lineEnd: function() { + if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath(); + this._line = 1 - this._line; + }, + point: function(x, y) { + x = +x, y = +y; + switch (this._point) { + case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break; + case 1: this._point = 2; // proceed + default: this._context.lineTo(x, y); break; + } + } + }; + + function curveLinear(context) { + return new Linear(context); + } + + function x(p) { + return p[0]; + } + + function y(p) { + return p[1]; + } + + function line() { + var x$$ = x, + y$$ = y, + defined = constant$1(true), + context = null, + curve = curveLinear, + output = null; + + function line(data) { + var i, + n = data.length, + d, + defined0 = false, + buffer; + + if (context == null) output = curve(buffer = path()); + + for (i = 0; i <= n; ++i) { + if (!(i < n && defined(d = data[i], i, data)) === defined0) { + if (defined0 = !defined0) output.lineStart(); + else output.lineEnd(); + } + if (defined0) output.point(+x$$(d, i, data), +y$$(d, i, data)); + } + + if (buffer) return output = null, buffer + "" || null; + } + + line.x = function(_) { + return arguments.length ? (x$$ = typeof _ === "function" ? _ : constant$1(+_), line) : x$$; + }; + + line.y = function(_) { + return arguments.length ? (y$$ = typeof _ === "function" ? _ : constant$1(+_), line) : y$$; + }; + + line.defined = function(_) { + return arguments.length ? (defined = typeof _ === "function" ? _ : constant$1(!!_), line) : defined; + }; + + line.curve = function(_) { + return arguments.length ? (curve = _, context != null && (output = curve(context)), line) : curve; + }; + + line.context = function(_) { + return arguments.length ? (_ == null ? context = output = null : output = curve(context = _), line) : context; + }; + + return line; + } + + function area$1() { + var x0 = x, + x1 = null, + y0 = constant$1(0), + y1 = y, + defined = constant$1(true), + context = null, + curve = curveLinear, + output = null; + + function area(data) { + var i, + j, + k, + n = data.length, + d, + defined0 = false, + buffer, + x0z = new Array(n), + y0z = new Array(n); + + if (context == null) output = curve(buffer = path()); + + for (i = 0; i <= n; ++i) { + if (!(i < n && defined(d = data[i], i, data)) === defined0) { + if (defined0 = !defined0) { + j = i; + output.areaStart(); + output.lineStart(); + } else { + output.lineEnd(); + output.lineStart(); + for (k = i - 1; k >= j; --k) { + output.point(x0z[k], y0z[k]); + } + output.lineEnd(); + output.areaEnd(); + } + } + if (defined0) { + x0z[i] = +x0(d, i, data), y0z[i] = +y0(d, i, data); + output.point(x1 ? +x1(d, i, data) : x0z[i], y1 ? +y1(d, i, data) : y0z[i]); + } + } + + if (buffer) return output = null, buffer + "" || null; + } + + function arealine() { + return line().defined(defined).curve(curve).context(context); + } + + area.x = function(_) { + return arguments.length ? (x0 = typeof _ === "function" ? _ : constant$1(+_), x1 = null, area) : x0; + }; + + area.x0 = function(_) { + return arguments.length ? (x0 = typeof _ === "function" ? _ : constant$1(+_), area) : x0; + }; + + area.x1 = function(_) { + return arguments.length ? (x1 = _ == null ? null : typeof _ === "function" ? _ : constant$1(+_), area) : x1; + }; + + area.y = function(_) { + return arguments.length ? (y0 = typeof _ === "function" ? _ : constant$1(+_), y1 = null, area) : y0; + }; + + area.y0 = function(_) { + return arguments.length ? (y0 = typeof _ === "function" ? _ : constant$1(+_), area) : y0; + }; + + area.y1 = function(_) { + return arguments.length ? (y1 = _ == null ? null : typeof _ === "function" ? _ : constant$1(+_), area) : y1; + }; + + area.lineX0 = + area.lineY0 = function() { + return arealine().x(x0).y(y0); + }; + + area.lineY1 = function() { + return arealine().x(x0).y(y1); + }; + + area.lineX1 = function() { + return arealine().x(x1).y(y0); + }; + + area.defined = function(_) { + return arguments.length ? (defined = typeof _ === "function" ? _ : constant$1(!!_), area) : defined; + }; + + area.curve = function(_) { + return arguments.length ? (curve = _, context != null && (output = curve(context)), area) : curve; + }; + + area.context = function(_) { + return arguments.length ? (_ == null ? context = output = null : output = curve(context = _), area) : context; + }; + + return area; + } + + function descending$1(a, b) { + return b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN; + } + + function identity$1(d) { + return d; + } + + function pie() { + var value = identity$1, + sortValues = descending$1, + sort = null, + startAngle = constant$1(0), + endAngle = constant$1(tau$2), + padAngle = constant$1(0); + + function pie(data) { + var i, + n = data.length, + j, + k, + sum = 0, + index = new Array(n), + arcs = new Array(n), + a0 = +startAngle.apply(this, arguments), + da = Math.min(tau$2, Math.max(-tau$2, endAngle.apply(this, arguments) - a0)), + a1, + p = Math.min(Math.abs(da) / n, padAngle.apply(this, arguments)), + pa = p * (da < 0 ? -1 : 1), + v; + + for (i = 0; i < n; ++i) { + if ((v = arcs[index[i] = i] = +value(data[i], i, data)) > 0) { + sum += v; + } + } + + // Optionally sort the arcs by previously-computed values or by data. + if (sortValues != null) index.sort(function(i, j) { return sortValues(arcs[i], arcs[j]); }); + else if (sort != null) index.sort(function(i, j) { return sort(data[i], data[j]); }); + + // Compute the arcs! They are stored in the original data's order. + for (i = 0, k = sum ? (da - n * pa) / sum : 0; i < n; ++i, a0 = a1) { + j = index[i], v = arcs[j], a1 = a0 + (v > 0 ? v * k : 0) + pa, arcs[j] = { + data: data[j], + index: i, + value: v, + startAngle: a0, + endAngle: a1, + padAngle: p + }; + } + + return arcs; + } + + pie.value = function(_) { + return arguments.length ? (value = typeof _ === "function" ? _ : constant$1(+_), pie) : value; + }; + + pie.sortValues = function(_) { + return arguments.length ? (sortValues = _, sort = null, pie) : sortValues; + }; + + pie.sort = function(_) { + return arguments.length ? (sort = _, sortValues = null, pie) : sort; + }; + + pie.startAngle = function(_) { + return arguments.length ? (startAngle = typeof _ === "function" ? _ : constant$1(+_), pie) : startAngle; + }; + + pie.endAngle = function(_) { + return arguments.length ? (endAngle = typeof _ === "function" ? _ : constant$1(+_), pie) : endAngle; + }; + + pie.padAngle = function(_) { + return arguments.length ? (padAngle = typeof _ === "function" ? _ : constant$1(+_), pie) : padAngle; + }; + + return pie; + } + + var curveRadialLinear = curveRadial(curveLinear); + + function Radial(curve) { + this._curve = curve; + } + + Radial.prototype = { + areaStart: function() { + this._curve.areaStart(); + }, + areaEnd: function() { + this._curve.areaEnd(); + }, + lineStart: function() { + this._curve.lineStart(); + }, + lineEnd: function() { + this._curve.lineEnd(); + }, + point: function(a, r) { + this._curve.point(r * Math.sin(a), r * -Math.cos(a)); + } + }; + + function curveRadial(curve) { + + function radial(context) { + return new Radial(curve(context)); + } + + radial._curve = curve; + + return radial; + } + + function radialLine(l) { + var c = l.curve; + + l.angle = l.x, delete l.x; + l.radius = l.y, delete l.y; + + l.curve = function(_) { + return arguments.length ? c(curveRadial(_)) : c()._curve; + }; + + return l; + } + + function radialLine$1() { + return radialLine(line().curve(curveRadialLinear)); + } + + function radialArea() { + var a = area$1().curve(curveRadialLinear), + c = a.curve, + x0 = a.lineX0, + x1 = a.lineX1, + y0 = a.lineY0, + y1 = a.lineY1; + + a.angle = a.x, delete a.x; + a.startAngle = a.x0, delete a.x0; + a.endAngle = a.x1, delete a.x1; + a.radius = a.y, delete a.y; + a.innerRadius = a.y0, delete a.y0; + a.outerRadius = a.y1, delete a.y1; + a.lineStartAngle = function() { return radialLine(x0()); }, delete a.lineX0; + a.lineEndAngle = function() { return radialLine(x1()); }, delete a.lineX1; + a.lineInnerRadius = function() { return radialLine(y0()); }, delete a.lineY0; + a.lineOuterRadius = function() { return radialLine(y1()); }, delete a.lineY1; + + a.curve = function(_) { + return arguments.length ? c(curveRadial(_)) : c()._curve; + }; + + return a; + } + + var circle = { + draw: function(context, size) { + var r = Math.sqrt(size / pi$2); + context.moveTo(r, 0); + context.arc(0, 0, r, 0, tau$2); + } + }; + + var cross$1 = { + draw: function(context, size) { + var r = Math.sqrt(size / 5) / 2; + context.moveTo(-3 * r, -r); + context.lineTo(-r, -r); + context.lineTo(-r, -3 * r); + context.lineTo(r, -3 * r); + context.lineTo(r, -r); + context.lineTo(3 * r, -r); + context.lineTo(3 * r, r); + context.lineTo(r, r); + context.lineTo(r, 3 * r); + context.lineTo(-r, 3 * r); + context.lineTo(-r, r); + context.lineTo(-3 * r, r); + context.closePath(); + } + }; + + var tan30 = Math.sqrt(1 / 3); + var tan30_2 = tan30 * 2; + var diamond = { + draw: function(context, size) { + var y = Math.sqrt(size / tan30_2), + x = y * tan30; + context.moveTo(0, -y); + context.lineTo(x, 0); + context.lineTo(0, y); + context.lineTo(-x, 0); + context.closePath(); + } + }; + + var ka = 0.89081309152928522810; + var kr = Math.sin(pi$2 / 10) / Math.sin(7 * pi$2 / 10); + var kx = Math.sin(tau$2 / 10) * kr; + var ky = -Math.cos(tau$2 / 10) * kr; + var star = { + draw: function(context, size) { + var r = Math.sqrt(size * ka), + x = kx * r, + y = ky * r; + context.moveTo(0, -r); + context.lineTo(x, y); + for (var i = 1; i < 5; ++i) { + var a = tau$2 * i / 5, + c = Math.cos(a), + s = Math.sin(a); + context.lineTo(s * r, -c * r); + context.lineTo(c * x - s * y, s * x + c * y); + } + context.closePath(); + } + }; + + var square = { + draw: function(context, size) { + var w = Math.sqrt(size), + x = -w / 2; + context.rect(x, x, w, w); + } + }; + + var sqrt3 = Math.sqrt(3); + + var triangle = { + draw: function(context, size) { + var y = -Math.sqrt(size / (sqrt3 * 3)); + context.moveTo(0, y * 2); + context.lineTo(-sqrt3 * y, -y); + context.lineTo(sqrt3 * y, -y); + context.closePath(); + } + }; + + var c = -0.5; + var s = Math.sqrt(3) / 2; + var k = 1 / Math.sqrt(12); + var a = (k / 2 + 1) * 3; + var wye = { + draw: function(context, size) { + var r = Math.sqrt(size / a), + x0 = r / 2, + y0 = r * k, + x1 = x0, + y1 = r * k + r, + x2 = -x1, + y2 = y1; + context.moveTo(x0, y0); + context.lineTo(x1, y1); + context.lineTo(x2, y2); + context.lineTo(c * x0 - s * y0, s * x0 + c * y0); + context.lineTo(c * x1 - s * y1, s * x1 + c * y1); + context.lineTo(c * x2 - s * y2, s * x2 + c * y2); + context.lineTo(c * x0 + s * y0, c * y0 - s * x0); + context.lineTo(c * x1 + s * y1, c * y1 - s * x1); + context.lineTo(c * x2 + s * y2, c * y2 - s * x2); + context.closePath(); + } + }; + + var symbols = [ + circle, + cross$1, + diamond, + square, + star, + triangle, + wye + ]; + + function symbol() { + var type = constant$1(circle), + size = constant$1(64), + context = null; + + function symbol() { + var buffer; + if (!context) context = buffer = path(); + type.apply(this, arguments).draw(context, +size.apply(this, arguments)); + if (buffer) return context = null, buffer + "" || null; + } + + symbol.type = function(_) { + return arguments.length ? (type = typeof _ === "function" ? _ : constant$1(_), symbol) : type; + }; + + symbol.size = function(_) { + return arguments.length ? (size = typeof _ === "function" ? _ : constant$1(+_), symbol) : size; + }; + + symbol.context = function(_) { + return arguments.length ? (context = _ == null ? null : _, symbol) : context; + }; + + return symbol; + } + + function noop() {} + + function point(that, x, y) { + that._context.bezierCurveTo( + (2 * that._x0 + that._x1) / 3, + (2 * that._y0 + that._y1) / 3, + (that._x0 + 2 * that._x1) / 3, + (that._y0 + 2 * that._y1) / 3, + (that._x0 + 4 * that._x1 + x) / 6, + (that._y0 + 4 * that._y1 + y) / 6 + ); + } + + function Basis(context) { + this._context = context; + } + + Basis.prototype = { + areaStart: function() { + this._line = 0; + }, + areaEnd: function() { + this._line = NaN; + }, + lineStart: function() { + this._x0 = this._x1 = + this._y0 = this._y1 = NaN; + this._point = 0; + }, + lineEnd: function() { + switch (this._point) { + case 3: point(this, this._x1, this._y1); // proceed + case 2: this._context.lineTo(this._x1, this._y1); break; + } + if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath(); + this._line = 1 - this._line; + }, + point: function(x, y) { + x = +x, y = +y; + switch (this._point) { + case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break; + case 1: this._point = 2; break; + case 2: this._point = 3; this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6); // proceed + default: point(this, x, y); break; + } + this._x0 = this._x1, this._x1 = x; + this._y0 = this._y1, this._y1 = y; + } + }; + + function basis(context) { + return new Basis(context); + } + + function BasisClosed(context) { + this._context = context; + } + + BasisClosed.prototype = { + areaStart: noop, + areaEnd: noop, + lineStart: function() { + this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = + this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = NaN; + this._point = 0; + }, + lineEnd: function() { + switch (this._point) { + case 1: { + this._context.moveTo(this._x2, this._y2); + this._context.closePath(); + break; + } + case 2: { + this._context.moveTo((this._x2 + 2 * this._x3) / 3, (this._y2 + 2 * this._y3) / 3); + this._context.lineTo((this._x3 + 2 * this._x2) / 3, (this._y3 + 2 * this._y2) / 3); + this._context.closePath(); + break; + } + case 3: { + this.point(this._x2, this._y2); + this.point(this._x3, this._y3); + this.point(this._x4, this._y4); + break; + } + } + }, + point: function(x, y) { + x = +x, y = +y; + switch (this._point) { + case 0: this._point = 1; this._x2 = x, this._y2 = y; break; + case 1: this._point = 2; this._x3 = x, this._y3 = y; break; + case 2: this._point = 3; this._x4 = x, this._y4 = y; this._context.moveTo((this._x0 + 4 * this._x1 + x) / 6, (this._y0 + 4 * this._y1 + y) / 6); break; + default: point(this, x, y); break; + } + this._x0 = this._x1, this._x1 = x; + this._y0 = this._y1, this._y1 = y; + } + }; + + function basisClosed(context) { + return new BasisClosed(context); + } + + function BasisOpen(context) { + this._context = context; + } + + BasisOpen.prototype = { + areaStart: function() { + this._line = 0; + }, + areaEnd: function() { + this._line = NaN; + }, + lineStart: function() { + this._x0 = this._x1 = + this._y0 = this._y1 = NaN; + this._point = 0; + }, + lineEnd: function() { + if (this._line || (this._line !== 0 && this._point === 3)) this._context.closePath(); + this._line = 1 - this._line; + }, + point: function(x, y) { + x = +x, y = +y; + switch (this._point) { + case 0: this._point = 1; break; + case 1: this._point = 2; break; + case 2: this._point = 3; var x0 = (this._x0 + 4 * this._x1 + x) / 6, y0 = (this._y0 + 4 * this._y1 + y) / 6; this._line ? this._context.lineTo(x0, y0) : this._context.moveTo(x0, y0); break; + case 3: this._point = 4; // proceed + default: point(this, x, y); break; + } + this._x0 = this._x1, this._x1 = x; + this._y0 = this._y1, this._y1 = y; + } + }; + + function basisOpen(context) { + return new BasisOpen(context); + } + + function Bundle(context, beta) { + this._basis = new Basis(context); + this._beta = beta; + } + + Bundle.prototype = { + lineStart: function() { + this._x = []; + this._y = []; + this._basis.lineStart(); + }, + lineEnd: function() { + var x = this._x, + y = this._y, + j = x.length - 1; + + if (j > 0) { + var x0 = x[0], + y0 = y[0], + dx = x[j] - x0, + dy = y[j] - y0, + i = -1, + t; + + while (++i <= j) { + t = i / j; + this._basis.point( + this._beta * x[i] + (1 - this._beta) * (x0 + t * dx), + this._beta * y[i] + (1 - this._beta) * (y0 + t * dy) + ); + } + } + + this._x = this._y = null; + this._basis.lineEnd(); + }, + point: function(x, y) { + this._x.push(+x); + this._y.push(+y); + } + }; + + var bundle = (function custom(beta) { + + function bundle(context) { + return beta === 1 ? new Basis(context) : new Bundle(context, beta); + } + + bundle.beta = function(beta) { + return custom(+beta); + }; + + return bundle; + })(0.85); + + function point$1(that, x, y) { + that._context.bezierCurveTo( + that._x1 + that._k * (that._x2 - that._x0), + that._y1 + that._k * (that._y2 - that._y0), + that._x2 + that._k * (that._x1 - x), + that._y2 + that._k * (that._y1 - y), + that._x2, + that._y2 + ); + } + + function Cardinal(context, tension) { + this._context = context; + this._k = (1 - tension) / 6; + } + + Cardinal.prototype = { + areaStart: function() { + this._line = 0; + }, + areaEnd: function() { + this._line = NaN; + }, + lineStart: function() { + this._x0 = this._x1 = this._x2 = + this._y0 = this._y1 = this._y2 = NaN; + this._point = 0; + }, + lineEnd: function() { + switch (this._point) { + case 2: this._context.lineTo(this._x2, this._y2); break; + case 3: point$1(this, this._x1, this._y1); break; + } + if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath(); + this._line = 1 - this._line; + }, + point: function(x, y) { + x = +x, y = +y; + switch (this._point) { + case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break; + case 1: this._point = 2; this._x1 = x, this._y1 = y; break; + case 2: this._point = 3; // proceed + default: point$1(this, x, y); break; + } + this._x0 = this._x1, this._x1 = this._x2, this._x2 = x; + this._y0 = this._y1, this._y1 = this._y2, this._y2 = y; + } + }; + + var cardinal = (function custom(tension) { + + function cardinal(context) { + return new Cardinal(context, tension); + } + + cardinal.tension = function(tension) { + return custom(+tension); + }; + + return cardinal; + })(0); + + function CardinalClosed(context, tension) { + this._context = context; + this._k = (1 - tension) / 6; + } + + CardinalClosed.prototype = { + areaStart: noop, + areaEnd: noop, + lineStart: function() { + this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 = + this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN; + this._point = 0; + }, + lineEnd: function() { + switch (this._point) { + case 1: { + this._context.moveTo(this._x3, this._y3); + this._context.closePath(); + break; + } + case 2: { + this._context.lineTo(this._x3, this._y3); + this._context.closePath(); + break; + } + case 3: { + this.point(this._x3, this._y3); + this.point(this._x4, this._y4); + this.point(this._x5, this._y5); + break; + } + } + }, + point: function(x, y) { + x = +x, y = +y; + switch (this._point) { + case 0: this._point = 1; this._x3 = x, this._y3 = y; break; + case 1: this._point = 2; this._context.moveTo(this._x4 = x, this._y4 = y); break; + case 2: this._point = 3; this._x5 = x, this._y5 = y; break; + default: point$1(this, x, y); break; + } + this._x0 = this._x1, this._x1 = this._x2, this._x2 = x; + this._y0 = this._y1, this._y1 = this._y2, this._y2 = y; + } + }; + + var cardinalClosed = (function custom(tension) { + + function cardinal(context) { + return new CardinalClosed(context, tension); + } + + cardinal.tension = function(tension) { + return custom(+tension); + }; + + return cardinal; + })(0); + + function CardinalOpen(context, tension) { + this._context = context; + this._k = (1 - tension) / 6; + } + + CardinalOpen.prototype = { + areaStart: function() { + this._line = 0; + }, + areaEnd: function() { + this._line = NaN; + }, + lineStart: function() { + this._x0 = this._x1 = this._x2 = + this._y0 = this._y1 = this._y2 = NaN; + this._point = 0; + }, + lineEnd: function() { + if (this._line || (this._line !== 0 && this._point === 3)) this._context.closePath(); + this._line = 1 - this._line; + }, + point: function(x, y) { + x = +x, y = +y; + switch (this._point) { + case 0: this._point = 1; break; + case 1: this._point = 2; break; + case 2: this._point = 3; this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2); break; + case 3: this._point = 4; // proceed + default: point$1(this, x, y); break; + } + this._x0 = this._x1, this._x1 = this._x2, this._x2 = x; + this._y0 = this._y1, this._y1 = this._y2, this._y2 = y; + } + }; + + var cardinalOpen = (function custom(tension) { + + function cardinal(context) { + return new CardinalOpen(context, tension); + } + + cardinal.tension = function(tension) { + return custom(+tension); + }; + + return cardinal; + })(0); + + function point$2(that, x, y) { + var x1 = that._x1, + y1 = that._y1, + x2 = that._x2, + y2 = that._y2; + + if (that._l01_a > epsilon$1) { + var a = 2 * that._l01_2a + 3 * that._l01_a * that._l12_a + that._l12_2a, + n = 3 * that._l01_a * (that._l01_a + that._l12_a); + x1 = (x1 * a - that._x0 * that._l12_2a + that._x2 * that._l01_2a) / n; + y1 = (y1 * a - that._y0 * that._l12_2a + that._y2 * that._l01_2a) / n; + } + + if (that._l23_a > epsilon$1) { + var b = 2 * that._l23_2a + 3 * that._l23_a * that._l12_a + that._l12_2a, + m = 3 * that._l23_a * (that._l23_a + that._l12_a); + x2 = (x2 * b + that._x1 * that._l23_2a - x * that._l12_2a) / m; + y2 = (y2 * b + that._y1 * that._l23_2a - y * that._l12_2a) / m; + } + + that._context.bezierCurveTo(x1, y1, x2, y2, that._x2, that._y2); + } + + function CatmullRom(context, alpha) { + this._context = context; + this._alpha = alpha; + } + + CatmullRom.prototype = { + areaStart: function() { + this._line = 0; + }, + areaEnd: function() { + this._line = NaN; + }, + lineStart: function() { + this._x0 = this._x1 = this._x2 = + this._y0 = this._y1 = this._y2 = NaN; + this._l01_a = this._l12_a = this._l23_a = + this._l01_2a = this._l12_2a = this._l23_2a = + this._point = 0; + }, + lineEnd: function() { + switch (this._point) { + case 2: this._context.lineTo(this._x2, this._y2); break; + case 3: this.point(this, this._x2, this._y2); break; + } + if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath(); + this._line = 1 - this._line; + }, + point: function(x, y) { + x = +x, y = +y; + + if (this._point) { + var x23 = this._x2 - x, + y23 = this._y2 - y; + this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha)); + } + + switch (this._point) { + case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break; + case 1: this._point = 2; break; + case 2: this._point = 3; // proceed + default: point$2(this, x, y); break; + } + + this._l01_a = this._l12_a, this._l12_a = this._l23_a; + this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a; + this._x0 = this._x1, this._x1 = this._x2, this._x2 = x; + this._y0 = this._y1, this._y1 = this._y2, this._y2 = y; + } + }; + + var catmullRom = (function custom(alpha) { + + function catmullRom(context) { + return alpha ? new CatmullRom(context, alpha) : new Cardinal(context, 0); + } + + catmullRom.alpha = function(alpha) { + return custom(+alpha); + }; + + return catmullRom; + })(0.5); + + function CatmullRomClosed(context, alpha) { + this._context = context; + this._alpha = alpha; + } + + CatmullRomClosed.prototype = { + areaStart: noop, + areaEnd: noop, + lineStart: function() { + this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 = + this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN; + this._l01_a = this._l12_a = this._l23_a = + this._l01_2a = this._l12_2a = this._l23_2a = + this._point = 0; + }, + lineEnd: function() { + switch (this._point) { + case 1: { + this._context.moveTo(this._x3, this._y3); + this._context.closePath(); + break; + } + case 2: { + this._context.lineTo(this._x3, this._y3); + this._context.closePath(); + break; + } + case 3: { + this.point(this._x3, this._y3); + this.point(this._x4, this._y4); + this.point(this._x5, this._y5); + break; + } + } + }, + point: function(x, y) { + x = +x, y = +y; + + if (this._point) { + var x23 = this._x2 - x, + y23 = this._y2 - y; + this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha)); + } + + switch (this._point) { + case 0: this._point = 1; this._x3 = x, this._y3 = y; break; + case 1: this._point = 2; this._context.moveTo(this._x4 = x, this._y4 = y); break; + case 2: this._point = 3; this._x5 = x, this._y5 = y; break; + default: point$2(this, x, y); break; + } + + this._l01_a = this._l12_a, this._l12_a = this._l23_a; + this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a; + this._x0 = this._x1, this._x1 = this._x2, this._x2 = x; + this._y0 = this._y1, this._y1 = this._y2, this._y2 = y; + } + }; + + var catmullRomClosed = (function custom(alpha) { + + function catmullRom(context) { + return alpha ? new CatmullRomClosed(context, alpha) : new CardinalClosed(context, 0); + } + + catmullRom.alpha = function(alpha) { + return custom(+alpha); + }; + + return catmullRom; + })(0.5); + + function CatmullRomOpen(context, alpha) { + this._context = context; + this._alpha = alpha; + } + + CatmullRomOpen.prototype = { + areaStart: function() { + this._line = 0; + }, + areaEnd: function() { + this._line = NaN; + }, + lineStart: function() { + this._x0 = this._x1 = this._x2 = + this._y0 = this._y1 = this._y2 = NaN; + this._l01_a = this._l12_a = this._l23_a = + this._l01_2a = this._l12_2a = this._l23_2a = + this._point = 0; + }, + lineEnd: function() { + if (this._line || (this._line !== 0 && this._point === 3)) this._context.closePath(); + this._line = 1 - this._line; + }, + point: function(x, y) { + x = +x, y = +y; + + if (this._point) { + var x23 = this._x2 - x, + y23 = this._y2 - y; + this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha)); + } + + switch (this._point) { + case 0: this._point = 1; break; + case 1: this._point = 2; break; + case 2: this._point = 3; this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2); break; + case 3: this._point = 4; // proceed + default: point$2(this, x, y); break; + } + + this._l01_a = this._l12_a, this._l12_a = this._l23_a; + this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a; + this._x0 = this._x1, this._x1 = this._x2, this._x2 = x; + this._y0 = this._y1, this._y1 = this._y2, this._y2 = y; + } + }; + + var catmullRomOpen = (function custom(alpha) { + + function catmullRom(context) { + return alpha ? new CatmullRomOpen(context, alpha) : new CardinalOpen(context, 0); + } + + catmullRom.alpha = function(alpha) { + return custom(+alpha); + }; + + return catmullRom; + })(0.5); + + function LinearClosed(context) { + this._context = context; + } + + LinearClosed.prototype = { + areaStart: noop, + areaEnd: noop, + lineStart: function() { + this._point = 0; + }, + lineEnd: function() { + if (this._point) this._context.closePath(); + }, + point: function(x, y) { + x = +x, y = +y; + if (this._point) this._context.lineTo(x, y); + else this._point = 1, this._context.moveTo(x, y); + } + }; + + function linearClosed(context) { + return new LinearClosed(context); + } + + function sign(x) { + return x < 0 ? -1 : 1; + } + + // Calculate the slopes of the tangents (Hermite-type interpolation) based on + // the following paper: Steffen, M. 1990. A Simple Method for Monotonic + // Interpolation in One Dimension. Astronomy and Astrophysics, Vol. 239, NO. + // NOV(II), P. 443, 1990. + function slope3(that, x2, y2) { + var h0 = that._x1 - that._x0, + h1 = x2 - that._x1, + s0 = (that._y1 - that._y0) / (h0 || h1 < 0 && -0), + s1 = (y2 - that._y1) / (h1 || h0 < 0 && -0), + p = (s0 * h1 + s1 * h0) / (h0 + h1); + return (sign(s0) + sign(s1)) * Math.min(Math.abs(s0), Math.abs(s1), 0.5 * Math.abs(p)) || 0; + } + + // Calculate a one-sided slope. + function slope2(that, t) { + var h = that._x1 - that._x0; + return h ? (3 * (that._y1 - that._y0) / h - t) / 2 : t; + } + + // According to https://en.wikipedia.org/wiki/Cubic_Hermite_spline#Representations + // "you can express cubic Hermite interpolation in terms of cubic Bézier curves + // with respect to the four values p0, p0 + m0 / 3, p1 - m1 / 3, p1". + function point$3(that, t0, t1) { + var x0 = that._x0, + y0 = that._y0, + x1 = that._x1, + y1 = that._y1, + dx = (x1 - x0) / 3; + that._context.bezierCurveTo(x0 + dx, y0 + dx * t0, x1 - dx, y1 - dx * t1, x1, y1); + } + + function MonotoneX(context) { + this._context = context; + } + + MonotoneX.prototype = { + areaStart: function() { + this._line = 0; + }, + areaEnd: function() { + this._line = NaN; + }, + lineStart: function() { + this._x0 = this._x1 = + this._y0 = this._y1 = + this._t0 = NaN; + this._point = 0; + }, + lineEnd: function() { + switch (this._point) { + case 2: this._context.lineTo(this._x1, this._y1); break; + case 3: point$3(this, this._t0, slope2(this, this._t0)); break; + } + if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath(); + this._line = 1 - this._line; + }, + point: function(x, y) { + var t1 = NaN; + + x = +x, y = +y; + if (x === this._x1 && y === this._y1) return; // Ignore coincident points. + switch (this._point) { + case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break; + case 1: this._point = 2; break; + case 2: this._point = 3; point$3(this, slope2(this, t1 = slope3(this, x, y)), t1); break; + default: point$3(this, this._t0, t1 = slope3(this, x, y)); break; + } + + this._x0 = this._x1, this._x1 = x; + this._y0 = this._y1, this._y1 = y; + this._t0 = t1; + } + } + + function MonotoneY(context) { + this._context = new ReflectContext(context); + } + + (MonotoneY.prototype = Object.create(MonotoneX.prototype)).point = function(x, y) { + MonotoneX.prototype.point.call(this, y, x); + }; + + function ReflectContext(context) { + this._context = context; + } + + ReflectContext.prototype = { + moveTo: function(x, y) { this._context.moveTo(y, x); }, + closePath: function() { this._context.closePath(); }, + lineTo: function(x, y) { this._context.lineTo(y, x); }, + bezierCurveTo: function(x1, y1, x2, y2, x, y) { this._context.bezierCurveTo(y1, x1, y2, x2, y, x); } + }; + + function monotoneX(context) { + return new MonotoneX(context); + } + + function monotoneY(context) { + return new MonotoneY(context); + } + + function Natural(context) { + this._context = context; + } + + Natural.prototype = { + areaStart: function() { + this._line = 0; + }, + areaEnd: function() { + this._line = NaN; + }, + lineStart: function() { + this._x = []; + this._y = []; + }, + lineEnd: function() { + var x = this._x, + y = this._y, + n = x.length; + + if (n) { + this._line ? this._context.lineTo(x[0], y[0]) : this._context.moveTo(x[0], y[0]); + if (n === 2) { + this._context.lineTo(x[1], y[1]); + } else { + var px = controlPoints(x), + py = controlPoints(y); + for (var i0 = 0, i1 = 1; i1 < n; ++i0, ++i1) { + this._context.bezierCurveTo(px[0][i0], py[0][i0], px[1][i0], py[1][i0], x[i1], y[i1]); + } + } + } + + if (this._line || (this._line !== 0 && n === 1)) this._context.closePath(); + this._line = 1 - this._line; + this._x = this._y = null; + }, + point: function(x, y) { + this._x.push(+x); + this._y.push(+y); + } + }; + + // See https://www.particleincell.com/2012/bezier-splines/ for derivation. + function controlPoints(x) { + var i, + n = x.length - 1, + m, + a = new Array(n), + b = new Array(n), + r = new Array(n); + a[0] = 0, b[0] = 2, r[0] = x[0] + 2 * x[1]; + for (i = 1; i < n - 1; ++i) a[i] = 1, b[i] = 4, r[i] = 4 * x[i] + 2 * x[i + 1]; + a[n - 1] = 2, b[n - 1] = 7, r[n - 1] = 8 * x[n - 1] + x[n]; + for (i = 1; i < n; ++i) m = a[i] / b[i - 1], b[i] -= m, r[i] -= m * r[i - 1]; + a[n - 1] = r[n - 1] / b[n - 1]; + for (i = n - 2; i >= 0; --i) a[i] = (r[i] - a[i + 1]) / b[i]; + b[n - 1] = (x[n] + a[n - 1]) / 2; + for (i = 0; i < n - 1; ++i) b[i] = 2 * x[i + 1] - a[i + 1]; + return [a, b]; + } + + function natural(context) { + return new Natural(context); + } + + function Step(context, t) { + this._context = context; + this._t = t; + } + + Step.prototype = { + areaStart: function() { + this._line = 0; + }, + areaEnd: function() { + this._line = NaN; + }, + lineStart: function() { + this._x = this._y = NaN; + this._point = 0; + }, + lineEnd: function() { + if (0 < this._t && this._t < 1 && this._point === 2) this._context.lineTo(this._x, this._y); + if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath(); + if (this._line >= 0) this._t = 1 - this._t, this._line = 1 - this._line; + }, + point: function(x, y) { + x = +x, y = +y; + switch (this._point) { + case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break; + case 1: this._point = 2; // proceed + default: { + if (this._t <= 0) { + this._context.lineTo(this._x, y); + this._context.lineTo(x, y); + } else { + var x1 = this._x * (1 - this._t) + x * this._t; + this._context.lineTo(x1, this._y); + this._context.lineTo(x1, y); + } + break; + } + } + this._x = x, this._y = y; + } + }; + + function step(context) { + return new Step(context, 0.5); + } + + function stepBefore(context) { + return new Step(context, 0); + } + + function stepAfter(context) { + return new Step(context, 1); + } + + var slice$2 = Array.prototype.slice; + + function none(series, order) { + if (!((n = series.length) > 1)) return; + for (var i = 1, s0, s1 = series[order[0]], n, m = s1.length; i < n; ++i) { + s0 = s1, s1 = series[order[i]]; + for (var j = 0; j < m; ++j) { + s1[j][1] += s1[j][0] = isNaN(s0[j][1]) ? s0[j][0] : s0[j][1]; + } + } + } + + function none$1(series) { + var n = series.length, o = new Array(n); + while (--n >= 0) o[n] = n; + return o; + } + + function stackValue(d, key) { + return d[key]; + } + + function stack() { + var keys = constant$1([]), + order = none$1, + offset = none, + value = stackValue; + + function stack(data) { + var kz = keys.apply(this, arguments), + i, + m = data.length, + n = kz.length, + sz = new Array(n), + oz; + + for (i = 0; i < n; ++i) { + for (var ki = kz[i], si = sz[i] = new Array(m), j = 0, sij; j < m; ++j) { + si[j] = sij = [0, +value(data[j], ki, j, data)]; + sij.data = data[j]; + } + si.key = ki; + } + + for (i = 0, oz = order(sz); i < n; ++i) { + sz[oz[i]].index = i; + } + + offset(sz, oz); + return sz; + } + + stack.keys = function(_) { + return arguments.length ? (keys = typeof _ === "function" ? _ : constant$1(slice$2.call(_)), stack) : keys; + }; + + stack.value = function(_) { + return arguments.length ? (value = typeof _ === "function" ? _ : constant$1(+_), stack) : value; + }; + + stack.order = function(_) { + return arguments.length ? (order = _ == null ? none$1 : typeof _ === "function" ? _ : constant$1(slice$2.call(_)), stack) : order; + }; + + stack.offset = function(_) { + return arguments.length ? (offset = _ == null ? none : _, stack) : offset; + }; + + return stack; + } + + function expand(series, order) { + if (!((n = series.length) > 0)) return; + for (var i, n, j = 0, m = series[0].length, y; j < m; ++j) { + for (y = i = 0; i < n; ++i) y += series[i][j][1] || 0; + if (y) for (i = 0; i < n; ++i) series[i][j][1] /= y; + } + none(series, order); + } + + function silhouette(series, order) { + if (!((n = series.length) > 0)) return; + for (var j = 0, s0 = series[order[0]], n, m = s0.length; j < m; ++j) { + for (var i = 0, y = 0; i < n; ++i) y += series[i][j][1] || 0; + s0[j][1] += s0[j][0] = -y / 2; + } + none(series, order); + } + + function wiggle(series, order) { + if (!((n = series.length) > 0) || !((m = (s0 = series[order[0]]).length) > 0)) return; + for (var y = 0, j = 1, s0, m, n; j < m; ++j) { + for (var i = 0, s1 = 0, s2 = 0; i < n; ++i) { + var si = series[order[i]], + sij0 = si[j][1] || 0, + sij1 = si[j - 1][1] || 0, + s3 = (sij0 - sij1) / 2; + for (var k = 0; k < i; ++k) { + var sk = series[order[k]], + skj0 = sk[j][1] || 0, + skj1 = sk[j - 1][1] || 0; + s3 += skj0 - skj1; + } + s1 += sij0, s2 += s3 * sij0; + } + s0[j - 1][1] += s0[j - 1][0] = y; + if (s1) y -= s2 / s1; + } + s0[j - 1][1] += s0[j - 1][0] = y; + none(series, order); + } + + function ascending$1(series) { + var sums = series.map(sum$1); + return none$1(series).sort(function(a, b) { return sums[a] - sums[b]; }); + } + + function sum$1(series) { + var s = 0, i = -1, n = series.length, v; + while (++i < n) if (v = +series[i][1]) s += v; + return s; + } + + function descending$2(series) { + return ascending$1(series).reverse(); + } + + function insideOut(series) { + var n = series.length, + i, + j, + sums = series.map(sum$1), + order = none$1(series).sort(function(a, b) { return sums[b] - sums[a]; }), + top = 0, + bottom = 0, + tops = [], + bottoms = []; + + for (i = 0; i < n; ++i) { + j = order[i]; + if (top < bottom) { + top += sums[j]; + tops.push(j); + } else { + bottom += sums[j]; + bottoms.push(j); + } + } + + return bottoms.reverse().concat(tops); + } + + function reverse(series) { + return none$1(series).reverse(); + } + + function define(constructor, factory, prototype) { + constructor.prototype = factory.prototype = prototype; + prototype.constructor = constructor; + } + + function extend(parent, definition) { + var prototype = Object.create(parent.prototype); + for (var key in definition) prototype[key] = definition[key]; + return prototype; + } + + function Color() {} + + var darker = 0.7; + var brighter = 1 / darker; + + var reHex3 = /^#([0-9a-f]{3})$/; + var reHex6 = /^#([0-9a-f]{6})$/; + var reRgbInteger = /^rgb\(\s*([-+]?\d+)\s*,\s*([-+]?\d+)\s*,\s*([-+]?\d+)\s*\)$/; + var reRgbPercent = /^rgb\(\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*\)$/; + var reRgbaInteger = /^rgba\(\s*([-+]?\d+)\s*,\s*([-+]?\d+)\s*,\s*([-+]?\d+)\s*,\s*([-+]?\d+(?:\.\d+)?)\s*\)$/; + var reRgbaPercent = /^rgba\(\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)\s*\)$/; + var reHslPercent = /^hsl\(\s*([-+]?\d+(?:\.\d+)?)\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*\)$/; + var reHslaPercent = /^hsla\(\s*([-+]?\d+(?:\.\d+)?)\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)\s*\)$/; + var named = { + aliceblue: 0xf0f8ff, + antiquewhite: 0xfaebd7, + aqua: 0x00ffff, + aquamarine: 0x7fffd4, + azure: 0xf0ffff, + beige: 0xf5f5dc, + bisque: 0xffe4c4, + black: 0x000000, + blanchedalmond: 0xffebcd, + blue: 0x0000ff, + blueviolet: 0x8a2be2, + brown: 0xa52a2a, + burlywood: 0xdeb887, + cadetblue: 0x5f9ea0, + chartreuse: 0x7fff00, + chocolate: 0xd2691e, + coral: 0xff7f50, + cornflowerblue: 0x6495ed, + cornsilk: 0xfff8dc, + crimson: 0xdc143c, + cyan: 0x00ffff, + darkblue: 0x00008b, + darkcyan: 0x008b8b, + darkgoldenrod: 0xb8860b, + darkgray: 0xa9a9a9, + darkgreen: 0x006400, + darkgrey: 0xa9a9a9, + darkkhaki: 0xbdb76b, + darkmagenta: 0x8b008b, + darkolivegreen: 0x556b2f, + darkorange: 0xff8c00, + darkorchid: 0x9932cc, + darkred: 0x8b0000, + darksalmon: 0xe9967a, + darkseagreen: 0x8fbc8f, + darkslateblue: 0x483d8b, + darkslategray: 0x2f4f4f, + darkslategrey: 0x2f4f4f, + darkturquoise: 0x00ced1, + darkviolet: 0x9400d3, + deeppink: 0xff1493, + deepskyblue: 0x00bfff, + dimgray: 0x696969, + dimgrey: 0x696969, + dodgerblue: 0x1e90ff, + firebrick: 0xb22222, + floralwhite: 0xfffaf0, + forestgreen: 0x228b22, + fuchsia: 0xff00ff, + gainsboro: 0xdcdcdc, + ghostwhite: 0xf8f8ff, + gold: 0xffd700, + goldenrod: 0xdaa520, + gray: 0x808080, + green: 0x008000, + greenyellow: 0xadff2f, + grey: 0x808080, + honeydew: 0xf0fff0, + hotpink: 0xff69b4, + indianred: 0xcd5c5c, + indigo: 0x4b0082, + ivory: 0xfffff0, + khaki: 0xf0e68c, + lavender: 0xe6e6fa, + lavenderblush: 0xfff0f5, + lawngreen: 0x7cfc00, + lemonchiffon: 0xfffacd, + lightblue: 0xadd8e6, + lightcoral: 0xf08080, + lightcyan: 0xe0ffff, + lightgoldenrodyellow: 0xfafad2, + lightgray: 0xd3d3d3, + lightgreen: 0x90ee90, + lightgrey: 0xd3d3d3, + lightpink: 0xffb6c1, + lightsalmon: 0xffa07a, + lightseagreen: 0x20b2aa, + lightskyblue: 0x87cefa, + lightslategray: 0x778899, + lightslategrey: 0x778899, + lightsteelblue: 0xb0c4de, + lightyellow: 0xffffe0, + lime: 0x00ff00, + limegreen: 0x32cd32, + linen: 0xfaf0e6, + magenta: 0xff00ff, + maroon: 0x800000, + mediumaquamarine: 0x66cdaa, + mediumblue: 0x0000cd, + mediumorchid: 0xba55d3, + mediumpurple: 0x9370db, + mediumseagreen: 0x3cb371, + mediumslateblue: 0x7b68ee, + mediumspringgreen: 0x00fa9a, + mediumturquoise: 0x48d1cc, + mediumvioletred: 0xc71585, + midnightblue: 0x191970, + mintcream: 0xf5fffa, + mistyrose: 0xffe4e1, + moccasin: 0xffe4b5, + navajowhite: 0xffdead, + navy: 0x000080, + oldlace: 0xfdf5e6, + olive: 0x808000, + olivedrab: 0x6b8e23, + orange: 0xffa500, + orangered: 0xff4500, + orchid: 0xda70d6, + palegoldenrod: 0xeee8aa, + palegreen: 0x98fb98, + paleturquoise: 0xafeeee, + palevioletred: 0xdb7093, + papayawhip: 0xffefd5, + peachpuff: 0xffdab9, + peru: 0xcd853f, + pink: 0xffc0cb, + plum: 0xdda0dd, + powderblue: 0xb0e0e6, + purple: 0x800080, + rebeccapurple: 0x663399, + red: 0xff0000, + rosybrown: 0xbc8f8f, + royalblue: 0x4169e1, + saddlebrown: 0x8b4513, + salmon: 0xfa8072, + sandybrown: 0xf4a460, + seagreen: 0x2e8b57, + seashell: 0xfff5ee, + sienna: 0xa0522d, + silver: 0xc0c0c0, + skyblue: 0x87ceeb, + slateblue: 0x6a5acd, + slategray: 0x708090, + slategrey: 0x708090, + snow: 0xfffafa, + springgreen: 0x00ff7f, + steelblue: 0x4682b4, + tan: 0xd2b48c, + teal: 0x008080, + thistle: 0xd8bfd8, + tomato: 0xff6347, + turquoise: 0x40e0d0, + violet: 0xee82ee, + wheat: 0xf5deb3, + white: 0xffffff, + whitesmoke: 0xf5f5f5, + yellow: 0xffff00, + yellowgreen: 0x9acd32 + }; + + define(Color, color, { + displayable: function() { + return this.rgb().displayable(); + }, + toString: function() { + return this.rgb() + ""; + } + }); + + function color(format) { + var m; + format = (format + "").trim().toLowerCase(); + return (m = reHex3.exec(format)) ? (m = parseInt(m[1], 16), new Rgb((m >> 8 & 0xf) | (m >> 4 & 0x0f0), (m >> 4 & 0xf) | (m & 0xf0), ((m & 0xf) << 4) | (m & 0xf), 1)) // #f00 + : (m = reHex6.exec(format)) ? rgbn(parseInt(m[1], 16)) // #ff0000 + : (m = reRgbInteger.exec(format)) ? new Rgb(m[1], m[2], m[3], 1) // rgb(255, 0, 0) + : (m = reRgbPercent.exec(format)) ? new Rgb(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, 1) // rgb(100%, 0%, 0%) + : (m = reRgbaInteger.exec(format)) ? rgba(m[1], m[2], m[3], m[4]) // rgba(255, 0, 0, 1) + : (m = reRgbaPercent.exec(format)) ? rgba(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, m[4]) // rgb(100%, 0%, 0%, 1) + : (m = reHslPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, 1) // hsl(120, 50%, 50%) + : (m = reHslaPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, m[4]) // hsla(120, 50%, 50%, 1) + : named.hasOwnProperty(format) ? rgbn(named[format]) + : format === "transparent" ? new Rgb(NaN, NaN, NaN, 0) + : null; + } + + function rgbn(n) { + return new Rgb(n >> 16 & 0xff, n >> 8 & 0xff, n & 0xff, 1); + } + + function rgba(r, g, b, a) { + if (a <= 0) r = g = b = NaN; + return new Rgb(r, g, b, a); + } + + function rgbConvert(o) { + if (!(o instanceof Color)) o = color(o); + if (!o) return new Rgb; + o = o.rgb(); + return new Rgb(o.r, o.g, o.b, o.opacity); + } + + function colorRgb(r, g, b, opacity) { + return arguments.length === 1 ? rgbConvert(r) : new Rgb(r, g, b, opacity == null ? 1 : opacity); + } + + function Rgb(r, g, b, opacity) { + this.r = +r; + this.g = +g; + this.b = +b; + this.opacity = +opacity; + } + + define(Rgb, colorRgb, extend(Color, { + brighter: function(k) { + k = k == null ? brighter : Math.pow(brighter, k); + return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity); + }, + darker: function(k) { + k = k == null ? darker : Math.pow(darker, k); + return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity); + }, + rgb: function() { + return this; + }, + displayable: function() { + return (0 <= this.r && this.r <= 255) + && (0 <= this.g && this.g <= 255) + && (0 <= this.b && this.b <= 255) + && (0 <= this.opacity && this.opacity <= 1); + }, + toString: function() { + var a = this.opacity; a = isNaN(a) ? 1 : Math.max(0, Math.min(1, a)); + return (a === 1 ? "rgb(" : "rgba(") + + Math.max(0, Math.min(255, Math.round(this.r) || 0)) + ", " + + Math.max(0, Math.min(255, Math.round(this.g) || 0)) + ", " + + Math.max(0, Math.min(255, Math.round(this.b) || 0)) + + (a === 1 ? ")" : ", " + a + ")"); + } + })); + + function hsla(h, s, l, a) { + if (a <= 0) h = s = l = NaN; + else if (l <= 0 || l >= 1) h = s = NaN; + else if (s <= 0) h = NaN; + return new Hsl(h, s, l, a); + } + + function hslConvert(o) { + if (o instanceof Hsl) return new Hsl(o.h, o.s, o.l, o.opacity); + if (!(o instanceof Color)) o = color(o); + if (!o) return new Hsl; + if (o instanceof Hsl) return o; + o = o.rgb(); + var r = o.r / 255, + g = o.g / 255, + b = o.b / 255, + min = Math.min(r, g, b), + max = Math.max(r, g, b), + h = NaN, + s = max - min, + l = (max + min) / 2; + if (s) { + if (r === max) h = (g - b) / s + (g < b) * 6; + else if (g === max) h = (b - r) / s + 2; + else h = (r - g) / s + 4; + s /= l < 0.5 ? max + min : 2 - max - min; + h *= 60; + } else { + s = l > 0 && l < 1 ? 0 : h; + } + return new Hsl(h, s, l, o.opacity); + } + + function colorHsl(h, s, l, opacity) { + return arguments.length === 1 ? hslConvert(h) : new Hsl(h, s, l, opacity == null ? 1 : opacity); + } + + function Hsl(h, s, l, opacity) { + this.h = +h; + this.s = +s; + this.l = +l; + this.opacity = +opacity; + } + + define(Hsl, colorHsl, extend(Color, { + brighter: function(k) { + k = k == null ? brighter : Math.pow(brighter, k); + return new Hsl(this.h, this.s, this.l * k, this.opacity); + }, + darker: function(k) { + k = k == null ? darker : Math.pow(darker, k); + return new Hsl(this.h, this.s, this.l * k, this.opacity); + }, + rgb: function() { + var h = this.h % 360 + (this.h < 0) * 360, + s = isNaN(h) || isNaN(this.s) ? 0 : this.s, + l = this.l, + m2 = l + (l < 0.5 ? l : 1 - l) * s, + m1 = 2 * l - m2; + return new Rgb( + hsl2rgb(h >= 240 ? h - 240 : h + 120, m1, m2), + hsl2rgb(h, m1, m2), + hsl2rgb(h < 120 ? h + 240 : h - 120, m1, m2), + this.opacity + ); + }, + displayable: function() { + return (0 <= this.s && this.s <= 1 || isNaN(this.s)) + && (0 <= this.l && this.l <= 1) + && (0 <= this.opacity && this.opacity <= 1); + } + })); + + /* From FvD 13.37, CSS Color Module Level 3 */ + function hsl2rgb(h, m1, m2) { + return (h < 60 ? m1 + (m2 - m1) * h / 60 + : h < 180 ? m2 + : h < 240 ? m1 + (m2 - m1) * (240 - h) / 60 + : m1) * 255; + } + + var deg2rad = Math.PI / 180; + var rad2deg = 180 / Math.PI; + + var Kn = 18; + var Xn = 0.950470; + var Yn = 1; + var Zn = 1.088830; + var t0 = 4 / 29; + var t1 = 6 / 29; + var t2 = 3 * t1 * t1; + var t3 = t1 * t1 * t1; + function labConvert(o) { + if (o instanceof Lab) return new Lab(o.l, o.a, o.b, o.opacity); + if (o instanceof Hcl) { + var h = o.h * deg2rad; + return new Lab(o.l, Math.cos(h) * o.c, Math.sin(h) * o.c, o.opacity); + } + if (!(o instanceof Rgb)) o = rgbConvert(o); + var b = rgb2xyz(o.r), + a = rgb2xyz(o.g), + l = rgb2xyz(o.b), + x = xyz2lab((0.4124564 * b + 0.3575761 * a + 0.1804375 * l) / Xn), + y = xyz2lab((0.2126729 * b + 0.7151522 * a + 0.0721750 * l) / Yn), + z = xyz2lab((0.0193339 * b + 0.1191920 * a + 0.9503041 * l) / Zn); + return new Lab(116 * y - 16, 500 * (x - y), 200 * (y - z), o.opacity); + } + + function lab(l, a, b, opacity) { + return arguments.length === 1 ? labConvert(l) : new Lab(l, a, b, opacity == null ? 1 : opacity); + } + + function Lab(l, a, b, opacity) { + this.l = +l; + this.a = +a; + this.b = +b; + this.opacity = +opacity; + } + + define(Lab, lab, extend(Color, { + brighter: function(k) { + return new Lab(this.l + Kn * (k == null ? 1 : k), this.a, this.b, this.opacity); + }, + darker: function(k) { + return new Lab(this.l - Kn * (k == null ? 1 : k), this.a, this.b, this.opacity); + }, + rgb: function() { + var y = (this.l + 16) / 116, + x = isNaN(this.a) ? y : y + this.a / 500, + z = isNaN(this.b) ? y : y - this.b / 200; + y = Yn * lab2xyz(y); + x = Xn * lab2xyz(x); + z = Zn * lab2xyz(z); + return new Rgb( + xyz2rgb( 3.2404542 * x - 1.5371385 * y - 0.4985314 * z), // D65 -> sRGB + xyz2rgb(-0.9692660 * x + 1.8760108 * y + 0.0415560 * z), + xyz2rgb( 0.0556434 * x - 0.2040259 * y + 1.0572252 * z), + this.opacity + ); + } + })); + + function xyz2lab(t) { + return t > t3 ? Math.pow(t, 1 / 3) : t / t2 + t0; + } + + function lab2xyz(t) { + return t > t1 ? t * t * t : t2 * (t - t0); + } + + function xyz2rgb(x) { + return 255 * (x <= 0.0031308 ? 12.92 * x : 1.055 * Math.pow(x, 1 / 2.4) - 0.055); + } + + function rgb2xyz(x) { + return (x /= 255) <= 0.04045 ? x / 12.92 : Math.pow((x + 0.055) / 1.055, 2.4); + } + + function hclConvert(o) { + if (o instanceof Hcl) return new Hcl(o.h, o.c, o.l, o.opacity); + if (!(o instanceof Lab)) o = labConvert(o); + var h = Math.atan2(o.b, o.a) * rad2deg; + return new Hcl(h < 0 ? h + 360 : h, Math.sqrt(o.a * o.a + o.b * o.b), o.l, o.opacity); + } + + function colorHcl(h, c, l, opacity) { + return arguments.length === 1 ? hclConvert(h) : new Hcl(h, c, l, opacity == null ? 1 : opacity); + } + + function Hcl(h, c, l, opacity) { + this.h = +h; + this.c = +c; + this.l = +l; + this.opacity = +opacity; + } + + define(Hcl, colorHcl, extend(Color, { + brighter: function(k) { + return new Hcl(this.h, this.c, this.l + Kn * (k == null ? 1 : k), this.opacity); + }, + darker: function(k) { + return new Hcl(this.h, this.c, this.l - Kn * (k == null ? 1 : k), this.opacity); + }, + rgb: function() { + return labConvert(this).rgb(); + } + })); + + var A = -0.14861; + var B = +1.78277; + var C = -0.29227; + var D = -0.90649; + var E = +1.97294; + var ED = E * D; + var EB = E * B; + var BC_DA = B * C - D * A; + function cubehelixConvert(o) { + if (o instanceof Cubehelix) return new Cubehelix(o.h, o.s, o.l, o.opacity); + if (!(o instanceof Rgb)) o = rgbConvert(o); + var r = o.r / 255, + g = o.g / 255, + b = o.b / 255, + l = (BC_DA * b + ED * r - EB * g) / (BC_DA + ED - EB), + bl = b - l, + k = (E * (g - l) - C * bl) / D, + s = Math.sqrt(k * k + bl * bl) / (E * l * (1 - l)), // NaN if l=0 or l=1 + h = s ? Math.atan2(k, bl) * rad2deg - 120 : NaN; + return new Cubehelix(h < 0 ? h + 360 : h, s, l, o.opacity); + } + + function cubehelix(h, s, l, opacity) { + return arguments.length === 1 ? cubehelixConvert(h) : new Cubehelix(h, s, l, opacity == null ? 1 : opacity); + } + + function Cubehelix(h, s, l, opacity) { + this.h = +h; + this.s = +s; + this.l = +l; + this.opacity = +opacity; + } + + define(Cubehelix, cubehelix, extend(Color, { + brighter: function(k) { + k = k == null ? brighter : Math.pow(brighter, k); + return new Cubehelix(this.h, this.s, this.l * k, this.opacity); + }, + darker: function(k) { + k = k == null ? darker : Math.pow(darker, k); + return new Cubehelix(this.h, this.s, this.l * k, this.opacity); + }, + rgb: function() { + var h = isNaN(this.h) ? 0 : (this.h + 120) * deg2rad, + l = +this.l, + a = isNaN(this.s) ? 0 : this.s * l * (1 - l), + cosh = Math.cos(h), + sinh = Math.sin(h); + return new Rgb( + 255 * (l + a * (A * cosh + B * sinh)), + 255 * (l + a * (C * cosh + D * sinh)), + 255 * (l + a * (E * cosh)), + this.opacity + ); + } + })); + + function basis$1(t1, v0, v1, v2, v3) { + var t2 = t1 * t1, t3 = t2 * t1; + return ((1 - 3 * t1 + 3 * t2 - t3) * v0 + + (4 - 6 * t2 + 3 * t3) * v1 + + (1 + 3 * t1 + 3 * t2 - 3 * t3) * v2 + + t3 * v3) / 6; + } + + function basis$2(values) { + var n = values.length - 1; + return function(t) { + var i = t <= 0 ? (t = 0) : t >= 1 ? (t = 1, n - 1) : Math.floor(t * n), + v1 = values[i], + v2 = values[i + 1], + v0 = i > 0 ? values[i - 1] : 2 * v1 - v2, + v3 = i < n - 1 ? values[i + 2] : 2 * v2 - v1; + return basis$1((t - i / n) * n, v0, v1, v2, v3); + }; + } + + function basisClosed$1(values) { + var n = values.length; + return function(t) { + var i = Math.floor(((t %= 1) < 0 ? ++t : t) * n), + v0 = values[(i + n - 1) % n], + v1 = values[i % n], + v2 = values[(i + 1) % n], + v3 = values[(i + 2) % n]; + return basis$1((t - i / n) * n, v0, v1, v2, v3); + }; + } + + function constant$2(x) { + return function() { + return x; + }; + } + + function linear$1(a, d) { + return function(t) { + return a + t * d; + }; + } + + function exponential$1(a, b, y) { + return a = Math.pow(a, y), b = Math.pow(b, y) - a, y = 1 / y, function(t) { + return Math.pow(a + t * b, y); + }; + } + + function hue(a, b) { + var d = b - a; + return d ? linear$1(a, d > 180 || d < -180 ? d - 360 * Math.round(d / 360) : d) : constant$2(isNaN(a) ? b : a); + } + + function gamma(y) { + return (y = +y) === 1 ? nogamma : function(a, b) { + return b - a ? exponential$1(a, b, y) : constant$2(isNaN(a) ? b : a); + }; + } + + function nogamma(a, b) { + var d = b - a; + return d ? linear$1(a, d) : constant$2(isNaN(a) ? b : a); + } + + var interpolateRgb = (function rgbGamma(y) { + var color = gamma(y); + + function rgb(start, end) { + var r = color((start = colorRgb(start)).r, (end = colorRgb(end)).r), + g = color(start.g, end.g), + b = color(start.b, end.b), + opacity = color(start.opacity, end.opacity); + return function(t) { + start.r = r(t); + start.g = g(t); + start.b = b(t); + start.opacity = opacity(t); + return start + ""; + }; + } + + rgb.gamma = rgbGamma; + + return rgb; + })(1); + + function rgbSpline(spline) { + return function(colors) { + var n = colors.length, + r = new Array(n), + g = new Array(n), + b = new Array(n), + i, color; + for (i = 0; i < n; ++i) { + color = colorRgb(colors[i]); + r[i] = color.r || 0; + g[i] = color.g || 0; + b[i] = color.b || 0; + } + r = spline(r); + g = spline(g); + b = spline(b); + color.opacity = 1; + return function(t) { + color.r = r(t); + color.g = g(t); + color.b = b(t); + return color + ""; + }; + }; + } + + var rgbBasis = rgbSpline(basis$2); + var rgbBasisClosed = rgbSpline(basisClosed$1); + + function array$1(a, b) { + var nb = b ? b.length : 0, + na = a ? Math.min(nb, a.length) : 0, + x = new Array(nb), + c = new Array(nb), + i; + + for (i = 0; i < na; ++i) x[i] = interpolate(a[i], b[i]); + for (; i < nb; ++i) c[i] = b[i]; + + return function(t) { + for (i = 0; i < na; ++i) c[i] = x[i](t); + return c; + }; + } + + function interpolateNumber(a, b) { + return a = +a, b -= a, function(t) { + return a + b * t; + }; + } + + function object(a, b) { + var i = {}, + c = {}, + k; + + if (a === null || typeof a !== "object") a = {}; + if (b === null || typeof b !== "object") b = {}; + + for (k in b) { + if (k in a) { + i[k] = interpolate(a[k], b[k]); + } else { + c[k] = b[k]; + } + } + + return function(t) { + for (k in i) c[k] = i[k](t); + return c; + }; + } + + var reA = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g; + var reB = new RegExp(reA.source, "g"); + function zero(b) { + return function() { + return b; + }; + } + + function one(b) { + return function(t) { + return b(t) + ""; + }; + } + + function interpolateString(a, b) { + var bi = reA.lastIndex = reB.lastIndex = 0, // scan index for next number in b + am, // current match in a + bm, // current match in b + bs, // string preceding current number in b, if any + i = -1, // index in s + s = [], // string constants and placeholders + q = []; // number interpolators + + // Coerce inputs to strings. + a = a + "", b = b + ""; + + // Interpolate pairs of numbers in a & b. + while ((am = reA.exec(a)) + && (bm = reB.exec(b))) { + if ((bs = bm.index) > bi) { // a string precedes the next number in b + bs = b.slice(bi, bs); + if (s[i]) s[i] += bs; // coalesce with previous string + else s[++i] = bs; + } + if ((am = am[0]) === (bm = bm[0])) { // numbers in a & b match + if (s[i]) s[i] += bm; // coalesce with previous string + else s[++i] = bm; + } else { // interpolate non-matching numbers + s[++i] = null; + q.push({i: i, x: interpolateNumber(am, bm)}); + } + bi = reB.lastIndex; + } + + // Add remains of b. + if (bi < b.length) { + bs = b.slice(bi); + if (s[i]) s[i] += bs; // coalesce with previous string + else s[++i] = bs; + } + + // Special optimization for only a single match. + // Otherwise, interpolate each of the numbers and rejoin the string. + return s.length < 2 ? (q[0] + ? one(q[0].x) + : zero(b)) + : (b = q.length, function(t) { + for (var i = 0, o; i < b; ++i) s[(o = q[i]).i] = o.x(t); + return s.join(""); + }); + } + + function interpolate(a, b) { + var t = typeof b, c; + return b == null || t === "boolean" ? constant$2(b) + : (t === "number" ? interpolateNumber + : t === "string" ? ((c = color(b)) ? (b = c, interpolateRgb) : interpolateString) + : b instanceof color ? interpolateRgb + : Array.isArray(b) ? array$1 + : object)(a, b); + } + + function interpolateRound(a, b) { + return a = +a, b -= a, function(t) { + return Math.round(a + b * t); + }; + } + + var degrees = 180 / Math.PI; + + var identity$2 = { + translateX: 0, + translateY: 0, + rotate: 0, + skewX: 0, + scaleX: 1, + scaleY: 1 + }; + + function decompose(a, b, c, d, e, f) { + var scaleX, scaleY, skewX; + if (scaleX = Math.sqrt(a * a + b * b)) a /= scaleX, b /= scaleX; + if (skewX = a * c + b * d) c -= a * skewX, d -= b * skewX; + if (scaleY = Math.sqrt(c * c + d * d)) c /= scaleY, d /= scaleY, skewX /= scaleY; + if (a * d < b * c) a = -a, b = -b, skewX = -skewX, scaleX = -scaleX; + return { + translateX: e, + translateY: f, + rotate: Math.atan2(b, a) * degrees, + skewX: Math.atan(skewX) * degrees, + scaleX: scaleX, + scaleY: scaleY + }; + } + + var cssNode; + var cssRoot; + var cssView; + var svgNode; + function parseCss(value) { + if (value === "none") return identity$2; + if (!cssNode) cssNode = document.createElement("DIV"), cssRoot = document.documentElement, cssView = document.defaultView; + cssNode.style.transform = value; + value = cssView.getComputedStyle(cssRoot.appendChild(cssNode), null).getPropertyValue("transform"); + cssRoot.removeChild(cssNode); + var m = value.slice(7, -1).split(","); + return decompose(+m[0], +m[1], +m[2], +m[3], +m[4], +m[5]); + } + + function parseSvg(value) { + if (!svgNode) svgNode = document.createElementNS("http://www.w3.org/2000/svg", "g"); + svgNode.setAttribute("transform", value == null ? "" : value); + var m = svgNode.transform.baseVal.consolidate().matrix; + return decompose(m.a, m.b, m.c, m.d, m.e, m.f); + } + + function interpolateTransform(parse, pxComma, pxParen, degParen) { + + function pop(s) { + return s.length ? s.pop() + " " : ""; + } + + function translate(xa, ya, xb, yb, s, q) { + if (xa !== xb || ya !== yb) { + var i = s.push("translate(", null, pxComma, null, pxParen); + q.push({i: i - 4, x: interpolateNumber(xa, xb)}, {i: i - 2, x: interpolateNumber(ya, yb)}); + } else if (xb || yb) { + s.push("translate(" + xb + pxComma + yb + pxParen); + } + } + + function rotate(a, b, s, q) { + if (a !== b) { + if (a - b > 180) b += 360; else if (b - a > 180) a += 360; // shortest path + q.push({i: s.push(pop(s) + "rotate(", null, degParen) - 2, x: interpolateNumber(a, b)}); + } else if (b) { + s.push(pop(s) + "rotate(" + b + degParen); + } + } + + function skewX(a, b, s, q) { + if (a !== b) { + q.push({i: s.push(pop(s) + "skewX(", null, degParen) - 2, x: interpolateNumber(a, b)}); + } else if (b) { + s.push(pop(s) + "skewX(" + b + degParen); + } + } + + function scale(xa, ya, xb, yb, s, q) { + if (xa !== xb || ya !== yb) { + var i = s.push(pop(s) + "scale(", null, ",", null, ")"); + q.push({i: i - 4, x: interpolateNumber(xa, xb)}, {i: i - 2, x: interpolateNumber(ya, yb)}); + } else if (xb !== 1 || yb !== 1) { + s.push(pop(s) + "scale(" + xb + "," + yb + ")"); + } + } + + return function(a, b) { + var s = [], // string constants and placeholders + q = []; // number interpolators + a = parse(a), b = parse(b); + translate(a.translateX, a.translateY, b.translateX, b.translateY, s, q); + rotate(a.rotate, b.rotate, s, q); + skewX(a.skewX, b.skewX, s, q); + scale(a.scaleX, a.scaleY, b.scaleX, b.scaleY, s, q); + a = b = null; // gc + return function(t) { + var i = -1, n = q.length, o; + while (++i < n) s[(o = q[i]).i] = o.x(t); + return s.join(""); + }; + }; + } + + var interpolateTransform$1 = interpolateTransform(parseCss, "px, ", "px)", "deg)"); + var interpolateTransform$2 = interpolateTransform(parseSvg, ", ", ")", ")"); + + var rho = Math.SQRT2; + var rho2 = 2; + var rho4 = 4; + var epsilon2 = 1e-12; + function cosh(x) { + return ((x = Math.exp(x)) + 1 / x) / 2; + } + + function sinh(x) { + return ((x = Math.exp(x)) - 1 / x) / 2; + } + + function tanh(x) { + return ((x = Math.exp(2 * x)) - 1) / (x + 1); + } + + // p0 = [ux0, uy0, w0] + // p1 = [ux1, uy1, w1] + function interpolateZoom(p0, p1) { + var ux0 = p0[0], uy0 = p0[1], w0 = p0[2], + ux1 = p1[0], uy1 = p1[1], w1 = p1[2], + dx = ux1 - ux0, + dy = uy1 - uy0, + d2 = dx * dx + dy * dy, + i, + S; + + // Special case for u0 ≅ u1. + if (d2 < epsilon2) { + S = Math.log(w1 / w0) / rho; + i = function(t) { + return [ + ux0 + t * dx, + uy0 + t * dy, + w0 * Math.exp(rho * t * S) + ]; + } + } + + // General case. + else { + var d1 = Math.sqrt(d2), + b0 = (w1 * w1 - w0 * w0 + rho4 * d2) / (2 * w0 * rho2 * d1), + b1 = (w1 * w1 - w0 * w0 - rho4 * d2) / (2 * w1 * rho2 * d1), + r0 = Math.log(Math.sqrt(b0 * b0 + 1) - b0), + r1 = Math.log(Math.sqrt(b1 * b1 + 1) - b1); + S = (r1 - r0) / rho; + i = function(t) { + var s = t * S, + coshr0 = cosh(r0), + u = w0 / (rho2 * d1) * (coshr0 * tanh(rho * s + r0) - sinh(r0)); + return [ + ux0 + u * dx, + uy0 + u * dy, + w0 * coshr0 / cosh(rho * s + r0) + ]; + } + } + + i.duration = S * 1000; + + return i; + } + + function hsl(hue) { + return function(start, end) { + var h = hue((start = colorHsl(start)).h, (end = colorHsl(end)).h), + s = nogamma(start.s, end.s), + l = nogamma(start.l, end.l), + opacity = nogamma(start.opacity, end.opacity); + return function(t) { + start.h = h(t); + start.s = s(t); + start.l = l(t); + start.opacity = opacity(t); + return start + ""; + }; + } + } + + var hsl$1 = hsl(hue); + var hslLong = hsl(nogamma); + + function lab$1(start, end) { + var l = nogamma((start = lab(start)).l, (end = lab(end)).l), + a = nogamma(start.a, end.a), + b = nogamma(start.b, end.b), + opacity = nogamma(start.opacity, end.opacity); + return function(t) { + start.l = l(t); + start.a = a(t); + start.b = b(t); + start.opacity = opacity(t); + return start + ""; + }; + } + + function hcl(hue) { + return function(start, end) { + var h = hue((start = colorHcl(start)).h, (end = colorHcl(end)).h), + c = nogamma(start.c, end.c), + l = nogamma(start.l, end.l), + opacity = nogamma(start.opacity, end.opacity); + return function(t) { + start.h = h(t); + start.c = c(t); + start.l = l(t); + start.opacity = opacity(t); + return start + ""; + }; + } + } + + var hcl$1 = hcl(hue); + var hclLong = hcl(nogamma); + + function cubehelix$1(hue) { + return (function cubehelixGamma(y) { + y = +y; + + function cubehelix$$(start, end) { + var h = hue((start = cubehelix(start)).h, (end = cubehelix(end)).h), + s = nogamma(start.s, end.s), + l = nogamma(start.l, end.l), + opacity = nogamma(start.opacity, end.opacity); + return function(t) { + start.h = h(t); + start.s = s(t); + start.l = l(Math.pow(t, y)); + start.opacity = opacity(t); + return start + ""; + }; + } + + cubehelix$$.gamma = cubehelixGamma; + + return cubehelix$$; + })(1); + } + + var cubehelix$2 = cubehelix$1(hue); + var interpolateCubehelixLong = cubehelix$1(nogamma); + + function quantize(interpolate, n) { + var samples = new Array(n); + for (var i = 0; i < n; ++i) samples[i] = interpolate(i / (n - 1)); + return samples; + } + + var noop$1 = {value: function() {}}; + + function dispatch() { + for (var i = 0, n = arguments.length, _ = {}, t; i < n; ++i) { + if (!(t = arguments[i] + "") || (t in _)) throw new Error("illegal type: " + t); + _[t] = []; + } + return new Dispatch(_); + } + + function Dispatch(_) { + this._ = _; + } + + function parseTypenames(typenames, types) { + return typenames.trim().split(/^|\s+/).map(function(t) { + var name = "", i = t.indexOf("."); + if (i >= 0) name = t.slice(i + 1), t = t.slice(0, i); + if (t && !types.hasOwnProperty(t)) throw new Error("unknown type: " + t); + return {type: t, name: name}; + }); + } + + Dispatch.prototype = dispatch.prototype = { + constructor: Dispatch, + on: function(typename, callback) { + var _ = this._, + T = parseTypenames(typename + "", _), + t, + i = -1, + n = T.length; + + // If no callback was specified, return the callback of the given type and name. + if (arguments.length < 2) { + while (++i < n) if ((t = (typename = T[i]).type) && (t = get(_[t], typename.name))) return t; + return; + } + + // If a type was specified, set the callback for the given type and name. + // Otherwise, if a null callback was specified, remove callbacks of the given name. + if (callback != null && typeof callback !== "function") throw new Error("invalid callback: " + callback); + while (++i < n) { + if (t = (typename = T[i]).type) _[t] = set$1(_[t], typename.name, callback); + else if (callback == null) for (t in _) _[t] = set$1(_[t], typename.name, null); + } + + return this; + }, + copy: function() { + var copy = {}, _ = this._; + for (var t in _) copy[t] = _[t].slice(); + return new Dispatch(copy); + }, + call: function(type, that) { + if ((n = arguments.length - 2) > 0) for (var args = new Array(n), i = 0, n, t; i < n; ++i) args[i] = arguments[i + 2]; + if (!this._.hasOwnProperty(type)) throw new Error("unknown type: " + type); + for (t = this._[type], i = 0, n = t.length; i < n; ++i) t[i].value.apply(that, args); + }, + apply: function(type, that, args) { + if (!this._.hasOwnProperty(type)) throw new Error("unknown type: " + type); + for (var t = this._[type], i = 0, n = t.length; i < n; ++i) t[i].value.apply(that, args); + } + }; + + function get(type, name) { + for (var i = 0, n = type.length, c; i < n; ++i) { + if ((c = type[i]).name === name) { + return c.value; + } + } + } + + function set$1(type, name, callback) { + for (var i = 0, n = type.length; i < n; ++i) { + if (type[i].name === name) { + type[i] = noop$1, type = type.slice(0, i).concat(type.slice(i + 1)); + break; + } + } + if (callback != null) type.push({name: name, value: callback}); + return type; + } + + function objectConverter(columns) { + return new Function("d", "return {" + columns.map(function(name, i) { + return JSON.stringify(name) + ": d[" + i + "]"; + }).join(",") + "}"); + } + + function customConverter(columns, f) { + var object = objectConverter(columns); + return function(row, i) { + return f(object(row), i, columns); + }; + } + + // Compute unique columns in order of discovery. + function inferColumns(rows) { + var columnSet = Object.create(null), + columns = []; + + rows.forEach(function(row) { + for (var column in row) { + if (!(column in columnSet)) { + columns.push(columnSet[column] = column); + } + } + }); + + return columns; + } + + function dsv(delimiter) { + var reFormat = new RegExp("[\"" + delimiter + "\n]"), + delimiterCode = delimiter.charCodeAt(0); + + function parse(text, f) { + var convert, columns, rows = parseRows(text, function(row, i) { + if (convert) return convert(row, i - 1); + columns = row, convert = f ? customConverter(row, f) : objectConverter(row); + }); + rows.columns = columns; + return rows; + } + + function parseRows(text, f) { + var EOL = {}, // sentinel value for end-of-line + EOF = {}, // sentinel value for end-of-file + rows = [], // output rows + N = text.length, + I = 0, // current character index + n = 0, // the current line number + t, // the current token + eol; // is the current token followed by EOL? + + function token() { + if (I >= N) return EOF; // special case: end of file + if (eol) return eol = false, EOL; // special case: end of line + + // special case: quotes + var j = I, c; + if (text.charCodeAt(j) === 34) { + var i = j; + while (i++ < N) { + if (text.charCodeAt(i) === 34) { + if (text.charCodeAt(i + 1) !== 34) break; + ++i; + } + } + I = i + 2; + c = text.charCodeAt(i + 1); + if (c === 13) { + eol = true; + if (text.charCodeAt(i + 2) === 10) ++I; + } else if (c === 10) { + eol = true; + } + return text.slice(j + 1, i).replace(/""/g, "\""); + } + + // common case: find next delimiter or newline + while (I < N) { + var k = 1; + c = text.charCodeAt(I++); + if (c === 10) eol = true; // \n + else if (c === 13) { eol = true; if (text.charCodeAt(I) === 10) ++I, ++k; } // \r|\r\n + else if (c !== delimiterCode) continue; + return text.slice(j, I - k); + } + + // special case: last token before EOF + return text.slice(j); + } + + while ((t = token()) !== EOF) { + var a = []; + while (t !== EOL && t !== EOF) { + a.push(t); + t = token(); + } + if (f && (a = f(a, n++)) == null) continue; + rows.push(a); + } + + return rows; + } + + function format(rows, columns) { + if (columns == null) columns = inferColumns(rows); + return [columns.map(formatValue).join(delimiter)].concat(rows.map(function(row) { + return columns.map(function(column) { + return formatValue(row[column]); + }).join(delimiter); + })).join("\n"); + } + + function formatRows(rows) { + return rows.map(formatRow).join("\n"); + } + + function formatRow(row) { + return row.map(formatValue).join(delimiter); + } + + function formatValue(text) { + return text == null ? "" + : reFormat.test(text += "") ? "\"" + text.replace(/\"/g, "\"\"") + "\"" + : text; + } + + return { + parse: parse, + parseRows: parseRows, + format: format, + formatRows: formatRows + }; + } + + var csv = dsv(","); + + var csvParse = csv.parse; + var csvParseRows = csv.parseRows; + var csvFormat = csv.format; + var csvFormatRows = csv.formatRows; + + var tsv = dsv("\t"); + + var tsvParse = tsv.parse; + var tsvParseRows = tsv.parseRows; + var tsvFormat = tsv.format; + var tsvFormatRows = tsv.formatRows; + + function request(url, callback) { + var request, + event = dispatch("beforesend", "progress", "load", "error"), + mimeType, + headers = map$1(), + xhr = new XMLHttpRequest, + user = null, + password = null, + response, + responseType, + timeout = 0; + + // If IE does not support CORS, use XDomainRequest. + if (typeof XDomainRequest !== "undefined" + && !("withCredentials" in xhr) + && /^(http(s)?:)?\/\//.test(url)) xhr = new XDomainRequest; + + "onload" in xhr + ? xhr.onload = xhr.onerror = xhr.ontimeout = respond + : xhr.onreadystatechange = function(o) { xhr.readyState > 3 && respond(o); }; + + function respond(o) { + var status = xhr.status, result; + if (!status && hasResponse(xhr) + || status >= 200 && status < 300 + || status === 304) { + if (response) { + try { + result = response.call(request, xhr); + } catch (e) { + event.call("error", request, e); + return; + } + } else { + result = xhr; + } + event.call("load", request, result); + } else { + event.call("error", request, o); + } + } + + xhr.onprogress = function(e) { + event.call("progress", request, e); + }; + + request = { + header: function(name, value) { + name = (name + "").toLowerCase(); + if (arguments.length < 2) return headers.get(name); + if (value == null) headers.remove(name); + else headers.set(name, value + ""); + return request; + }, + + // If mimeType is non-null and no Accept header is set, a default is used. + mimeType: function(value) { + if (!arguments.length) return mimeType; + mimeType = value == null ? null : value + ""; + return request; + }, + + // Specifies what type the response value should take; + // for instance, arraybuffer, blob, document, or text. + responseType: function(value) { + if (!arguments.length) return responseType; + responseType = value; + return request; + }, + + timeout: function(value) { + if (!arguments.length) return timeout; + timeout = +value; + return request; + }, + + user: function(value) { + return arguments.length < 1 ? user : (user = value == null ? null : value + "", request); + }, + + password: function(value) { + return arguments.length < 1 ? password : (password = value == null ? null : value + "", request); + }, + + // Specify how to convert the response content to a specific type; + // changes the callback value on "load" events. + response: function(value) { + response = value; + return request; + }, + + // Alias for send("GET", …). + get: function(data, callback) { + return request.send("GET", data, callback); + }, + + // Alias for send("POST", …). + post: function(data, callback) { + return request.send("POST", data, callback); + }, + + // If callback is non-null, it will be used for error and load events. + send: function(method, data, callback) { + if (!callback && typeof data === "function") callback = data, data = null; + if (callback && callback.length === 1) callback = fixCallback(callback); + xhr.open(method, url, true, user, password); + if (mimeType != null && !headers.has("accept")) headers.set("accept", mimeType + ",*/*"); + if (xhr.setRequestHeader) headers.each(function(value, name) { xhr.setRequestHeader(name, value); }); + if (mimeType != null && xhr.overrideMimeType) xhr.overrideMimeType(mimeType); + if (responseType != null) xhr.responseType = responseType; + if (timeout > 0) xhr.timeout = timeout; + if (callback) request.on("error", callback).on("load", function(xhr) { callback(null, xhr); }); + event.call("beforesend", request, xhr); + xhr.send(data == null ? null : data); + return request; + }, + + abort: function() { + xhr.abort(); + return request; + }, + + on: function() { + var value = event.on.apply(event, arguments); + return value === event ? request : value; + } + }; + + return callback + ? request.get(callback) + : request; + } + + function fixCallback(callback) { + return function(error, xhr) { + callback(error == null ? xhr : null); + }; + } + + function hasResponse(xhr) { + var type = xhr.responseType; + return type && type !== "text" + ? xhr.response // null on error + : xhr.responseText; // "" on error + } + + function type(defaultMimeType, response) { + return function(url, callback) { + var r = request(url).mimeType(defaultMimeType).response(response); + return callback ? r.get(callback) : r; + }; + } + + var html = type("text/html", function(xhr) { + return document.createRange().createContextualFragment(xhr.responseText); + }); + + var json = type("application/json", function(xhr) { + return JSON.parse(xhr.responseText); + }); + + var text = type("text/plain", function(xhr) { + return xhr.responseText; + }); + + var xml = type("application/xml", function(xhr) { + var xml = xhr.responseXML; + if (!xml) throw new Error("parse error"); + return xml; + }); + + function dsv$1(defaultMimeType, parse) { + return function(url, row, callback) { + if (arguments.length < 3) callback = row, row = null; + var r = request(url).mimeType(defaultMimeType); + r.row = function(_) { return arguments.length ? r.response(responseOf(parse, row = _)) : row; }; + r.row(row); + return callback ? r.get(callback) : r; + }; + } + + function responseOf(parse, row) { + return function(request) { + return parse(request.responseText, row); + }; + } + + var csv$1 = dsv$1("text/csv", csvParse); + + var tsv$1 = dsv$1("text/tab-separated-values", tsvParse); + + var frame = 0; + var timeout = 0; + var interval = 0; + var pokeDelay = 1000; + var taskHead; + var taskTail; + var clockLast = 0; + var clockNow = 0; + var clockSkew = 0; + var clock = typeof performance === "object" ? performance : Date; + var setFrame = typeof requestAnimationFrame === "function" + ? (clock === Date ? function(f) { requestAnimationFrame(function() { f(clock.now()); }); } : requestAnimationFrame) + : function(f) { setTimeout(f, 17); }; + function now() { + return clockNow || (setFrame(clearNow), clockNow = clock.now() + clockSkew); + } + + function clearNow() { + clockNow = 0; + } + + function Timer() { + this._call = + this._time = + this._next = null; + } + + Timer.prototype = timer.prototype = { + constructor: Timer, + restart: function(callback, delay, time) { + if (typeof callback !== "function") throw new TypeError("callback is not a function"); + time = (time == null ? now() : +time) + (delay == null ? 0 : +delay); + if (!this._next && taskTail !== this) { + if (taskTail) taskTail._next = this; + else taskHead = this; + taskTail = this; + } + this._call = callback; + this._time = time; + sleep(); + }, + stop: function() { + if (this._call) { + this._call = null; + this._time = Infinity; + sleep(); + } + } + }; + + function timer(callback, delay, time) { + var t = new Timer; + t.restart(callback, delay, time); + return t; + } + + function timerFlush() { + now(); // Get the current time, if not already set. + ++frame; // Pretend we’ve set an alarm, if we haven’t already. + var t = taskHead, e; + while (t) { + if ((e = clockNow - t._time) >= 0) t._call.call(null, e); + t = t._next; + } + --frame; + } + + function wake(time) { + clockNow = (clockLast = time || clock.now()) + clockSkew; + frame = timeout = 0; + try { + timerFlush(); + } finally { + frame = 0; + nap(); + clockNow = 0; + } + } + + function poke$1() { + var now = clock.now(), delay = now - clockLast; + if (delay > pokeDelay) clockSkew -= delay, clockLast = now; + } + + function nap() { + var t0, t1 = taskHead, t2, time = Infinity; + while (t1) { + if (t1._call) { + if (time > t1._time) time = t1._time; + t0 = t1, t1 = t1._next; + } else { + t2 = t1._next, t1._next = null; + t1 = t0 ? t0._next = t2 : taskHead = t2; + } + } + taskTail = t0; + sleep(time); + } + + function sleep(time) { + if (frame) return; // Soonest alarm already set, or will be. + if (timeout) timeout = clearTimeout(timeout); + var delay = time - clockNow; + if (delay > 24) { + if (time < Infinity) timeout = setTimeout(wake, delay); + if (interval) interval = clearInterval(interval); + } else { + if (!interval) interval = setInterval(poke$1, pokeDelay); + frame = 1, setFrame(wake); + } + } + + function timeout$1(callback, delay, time) { + var t = new Timer; + delay = delay == null ? 0 : +delay; + t.restart(function(elapsed) { + t.stop(); + callback(elapsed + delay); + }, delay, time); + return t; + } + + function interval$1(callback, delay, time) { + var t = new Timer, total = delay; + if (delay == null) return t.restart(callback, delay, time), t; + delay = +delay, time = time == null ? now() : +time; + t.restart(function tick(elapsed) { + elapsed += total; + t.restart(tick, total += delay, time); + callback(elapsed); + }, delay, time); + return t; + } + +var t0$1 = new Date; +var t1$1 = new Date; + function newInterval(floori, offseti, count, field) { + + function interval(date) { + return floori(date = new Date(+date)), date; + } + + interval.floor = interval; + + interval.ceil = function(date) { + return floori(date = new Date(date - 1)), offseti(date, 1), floori(date), date; + }; + + interval.round = function(date) { + var d0 = interval(date), + d1 = interval.ceil(date); + return date - d0 < d1 - date ? d0 : d1; + }; + + interval.offset = function(date, step) { + return offseti(date = new Date(+date), step == null ? 1 : Math.floor(step)), date; + }; + + interval.range = function(start, stop, step) { + var range = []; + start = interval.ceil(start); + step = step == null ? 1 : Math.floor(step); + if (!(start < stop) || !(step > 0)) return range; // also handles Invalid Date + do range.push(new Date(+start)); while (offseti(start, step), floori(start), start < stop) + return range; + }; + + interval.filter = function(test) { + return newInterval(function(date) { + while (floori(date), !test(date)) date.setTime(date - 1); + }, function(date, step) { + while (--step >= 0) while (offseti(date, 1), !test(date)); + }); + }; + + if (count) { + interval.count = function(start, end) { + t0$1.setTime(+start), t1$1.setTime(+end); + floori(t0$1), floori(t1$1); + return Math.floor(count(t0$1, t1$1)); + }; + + interval.every = function(step) { + step = Math.floor(step); + return !isFinite(step) || !(step > 0) ? null + : !(step > 1) ? interval + : interval.filter(field + ? function(d) { return field(d) % step === 0; } + : function(d) { return interval.count(0, d) % step === 0; }); + }; + } + + return interval; + } + + var millisecond = newInterval(function() { + // noop + }, function(date, step) { + date.setTime(+date + step); + }, function(start, end) { + return end - start; + }); + + // An optimized implementation for this simple case. + millisecond.every = function(k) { + k = Math.floor(k); + if (!isFinite(k) || !(k > 0)) return null; + if (!(k > 1)) return millisecond; + return newInterval(function(date) { + date.setTime(Math.floor(date / k) * k); + }, function(date, step) { + date.setTime(+date + step * k); + }, function(start, end) { + return (end - start) / k; + }); + }; + + var milliseconds = millisecond.range; + + var durationSecond = 1e3; + var durationMinute = 6e4; + var durationHour = 36e5; + var durationDay = 864e5; + var durationWeek = 6048e5; + + var second = newInterval(function(date) { + date.setTime(Math.floor(date / durationSecond) * durationSecond); + }, function(date, step) { + date.setTime(+date + step * durationSecond); + }, function(start, end) { + return (end - start) / durationSecond; + }, function(date) { + return date.getUTCSeconds(); + }); + + var seconds = second.range; + + var minute = newInterval(function(date) { + date.setTime(Math.floor(date / durationMinute) * durationMinute); + }, function(date, step) { + date.setTime(+date + step * durationMinute); + }, function(start, end) { + return (end - start) / durationMinute; + }, function(date) { + return date.getMinutes(); + }); + + var minutes = minute.range; + + var hour = newInterval(function(date) { + var offset = date.getTimezoneOffset() * durationMinute % durationHour; + if (offset < 0) offset += durationHour; + date.setTime(Math.floor((+date - offset) / durationHour) * durationHour + offset); + }, function(date, step) { + date.setTime(+date + step * durationHour); + }, function(start, end) { + return (end - start) / durationHour; + }, function(date) { + return date.getHours(); + }); + + var hours = hour.range; + + var day = newInterval(function(date) { + date.setHours(0, 0, 0, 0); + }, function(date, step) { + date.setDate(date.getDate() + step); + }, function(start, end) { + return (end - start - (end.getTimezoneOffset() - start.getTimezoneOffset()) * durationMinute) / durationDay; + }, function(date) { + return date.getDate() - 1; + }); + + var days = day.range; + + function weekday(i) { + return newInterval(function(date) { + date.setDate(date.getDate() - (date.getDay() + 7 - i) % 7); + date.setHours(0, 0, 0, 0); + }, function(date, step) { + date.setDate(date.getDate() + step * 7); + }, function(start, end) { + return (end - start - (end.getTimezoneOffset() - start.getTimezoneOffset()) * durationMinute) / durationWeek; + }); + } + + var timeWeek = weekday(0); + var timeMonday = weekday(1); + var tuesday = weekday(2); + var wednesday = weekday(3); + var thursday = weekday(4); + var friday = weekday(5); + var saturday = weekday(6); + + var sundays = timeWeek.range; + var mondays = timeMonday.range; + var tuesdays = tuesday.range; + var wednesdays = wednesday.range; + var thursdays = thursday.range; + var fridays = friday.range; + var saturdays = saturday.range; + + var month = newInterval(function(date) { + date.setDate(1); + date.setHours(0, 0, 0, 0); + }, function(date, step) { + date.setMonth(date.getMonth() + step); + }, function(start, end) { + return end.getMonth() - start.getMonth() + (end.getFullYear() - start.getFullYear()) * 12; + }, function(date) { + return date.getMonth(); + }); + + var months = month.range; + + var year = newInterval(function(date) { + date.setMonth(0, 1); + date.setHours(0, 0, 0, 0); + }, function(date, step) { + date.setFullYear(date.getFullYear() + step); + }, function(start, end) { + return end.getFullYear() - start.getFullYear(); + }, function(date) { + return date.getFullYear(); + }); + + // An optimized implementation for this simple case. + year.every = function(k) { + return !isFinite(k = Math.floor(k)) || !(k > 0) ? null : newInterval(function(date) { + date.setFullYear(Math.floor(date.getFullYear() / k) * k); + date.setMonth(0, 1); + date.setHours(0, 0, 0, 0); + }, function(date, step) { + date.setFullYear(date.getFullYear() + step * k); + }); + }; + + var years = year.range; + + var utcMinute = newInterval(function(date) { + date.setUTCSeconds(0, 0); + }, function(date, step) { + date.setTime(+date + step * durationMinute); + }, function(start, end) { + return (end - start) / durationMinute; + }, function(date) { + return date.getUTCMinutes(); + }); + + var utcMinutes = utcMinute.range; + + var utcHour = newInterval(function(date) { + date.setUTCMinutes(0, 0, 0); + }, function(date, step) { + date.setTime(+date + step * durationHour); + }, function(start, end) { + return (end - start) / durationHour; + }, function(date) { + return date.getUTCHours(); + }); + + var utcHours = utcHour.range; + + var utcDay = newInterval(function(date) { + date.setUTCHours(0, 0, 0, 0); + }, function(date, step) { + date.setUTCDate(date.getUTCDate() + step); + }, function(start, end) { + return (end - start) / durationDay; + }, function(date) { + return date.getUTCDate() - 1; + }); + + var utcDays = utcDay.range; + + function utcWeekday(i) { + return newInterval(function(date) { + date.setUTCDate(date.getUTCDate() - (date.getUTCDay() + 7 - i) % 7); + date.setUTCHours(0, 0, 0, 0); + }, function(date, step) { + date.setUTCDate(date.getUTCDate() + step * 7); + }, function(start, end) { + return (end - start) / durationWeek; + }); + } + + var utcWeek = utcWeekday(0); + var utcMonday = utcWeekday(1); + var utcTuesday = utcWeekday(2); + var utcWednesday = utcWeekday(3); + var utcThursday = utcWeekday(4); + var utcFriday = utcWeekday(5); + var utcSaturday = utcWeekday(6); + + var utcSundays = utcWeek.range; + var utcMondays = utcMonday.range; + var utcTuesdays = utcTuesday.range; + var utcWednesdays = utcWednesday.range; + var utcThursdays = utcThursday.range; + var utcFridays = utcFriday.range; + var utcSaturdays = utcSaturday.range; + + var utcMonth = newInterval(function(date) { + date.setUTCDate(1); + date.setUTCHours(0, 0, 0, 0); + }, function(date, step) { + date.setUTCMonth(date.getUTCMonth() + step); + }, function(start, end) { + return end.getUTCMonth() - start.getUTCMonth() + (end.getUTCFullYear() - start.getUTCFullYear()) * 12; + }, function(date) { + return date.getUTCMonth(); + }); + + var utcMonths = utcMonth.range; + + var utcYear = newInterval(function(date) { + date.setUTCMonth(0, 1); + date.setUTCHours(0, 0, 0, 0); + }, function(date, step) { + date.setUTCFullYear(date.getUTCFullYear() + step); + }, function(start, end) { + return end.getUTCFullYear() - start.getUTCFullYear(); + }, function(date) { + return date.getUTCFullYear(); + }); + + // An optimized implementation for this simple case. + utcYear.every = function(k) { + return !isFinite(k = Math.floor(k)) || !(k > 0) ? null : newInterval(function(date) { + date.setUTCFullYear(Math.floor(date.getUTCFullYear() / k) * k); + date.setUTCMonth(0, 1); + date.setUTCHours(0, 0, 0, 0); + }, function(date, step) { + date.setUTCFullYear(date.getUTCFullYear() + step * k); + }); + }; + + var utcYears = utcYear.range; + + // Computes the decimal coefficient and exponent of the specified number x with + // significant digits p, where x is positive and p is in [1, 21] or undefined. + // For example, formatDecimal(1.23) returns ["123", 0]. + function formatDecimal(x, p) { + if ((i = (x = p ? x.toExponential(p - 1) : x.toExponential()).indexOf("e")) < 0) return null; // NaN, ±Infinity + var i, coefficient = x.slice(0, i); + + // The string returned by toExponential either has the form \d\.\d+e[-+]\d+ + // (e.g., 1.2e+3) or the form \de[-+]\d+ (e.g., 1e+3). + return [ + coefficient.length > 1 ? coefficient[0] + coefficient.slice(2) : coefficient, + +x.slice(i + 1) + ]; + } + + function exponent$1(x) { + return x = formatDecimal(Math.abs(x)), x ? x[1] : NaN; + } + + function formatGroup(grouping, thousands) { + return function(value, width) { + var i = value.length, + t = [], + j = 0, + g = grouping[0], + length = 0; + + while (i > 0 && g > 0) { + if (length + g + 1 > width) g = Math.max(1, width - length); + t.push(value.substring(i -= g, i + g)); + if ((length += g + 1) > width) break; + g = grouping[j = (j + 1) % grouping.length]; + } + + return t.reverse().join(thousands); + }; + } + + function formatDefault(x, p) { + x = x.toPrecision(p); + + out: for (var n = x.length, i = 1, i0 = -1, i1; i < n; ++i) { + switch (x[i]) { + case ".": i0 = i1 = i; break; + case "0": if (i0 === 0) i0 = i; i1 = i; break; + case "e": break out; + default: if (i0 > 0) i0 = 0; break; + } + } + + return i0 > 0 ? x.slice(0, i0) + x.slice(i1 + 1) : x; + } + + var prefixExponent; + + function formatPrefixAuto(x, p) { + var d = formatDecimal(x, p); + if (!d) return x + ""; + var coefficient = d[0], + exponent = d[1], + i = exponent - (prefixExponent = Math.max(-8, Math.min(8, Math.floor(exponent / 3))) * 3) + 1, + n = coefficient.length; + return i === n ? coefficient + : i > n ? coefficient + new Array(i - n + 1).join("0") + : i > 0 ? coefficient.slice(0, i) + "." + coefficient.slice(i) + : "0." + new Array(1 - i).join("0") + formatDecimal(x, Math.max(0, p + i - 1))[0]; // less than 1y! + } + + function formatRounded(x, p) { + var d = formatDecimal(x, p); + if (!d) return x + ""; + var coefficient = d[0], + exponent = d[1]; + return exponent < 0 ? "0." + new Array(-exponent).join("0") + coefficient + : coefficient.length > exponent + 1 ? coefficient.slice(0, exponent + 1) + "." + coefficient.slice(exponent + 1) + : coefficient + new Array(exponent - coefficient.length + 2).join("0"); + } + + var formatTypes = { + "": formatDefault, + "%": function(x, p) { return (x * 100).toFixed(p); }, + "b": function(x) { return Math.round(x).toString(2); }, + "c": function(x) { return x + ""; }, + "d": function(x) { return Math.round(x).toString(10); }, + "e": function(x, p) { return x.toExponential(p); }, + "f": function(x, p) { return x.toFixed(p); }, + "g": function(x, p) { return x.toPrecision(p); }, + "o": function(x) { return Math.round(x).toString(8); }, + "p": function(x, p) { return formatRounded(x * 100, p); }, + "r": formatRounded, + "s": formatPrefixAuto, + "X": function(x) { return Math.round(x).toString(16).toUpperCase(); }, + "x": function(x) { return Math.round(x).toString(16); } + }; + + // [[fill]align][sign][symbol][0][width][,][.precision][type] + var re = /^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i; + + function formatSpecifier(specifier) { + return new FormatSpecifier(specifier); + } + + function FormatSpecifier(specifier) { + if (!(match = re.exec(specifier))) throw new Error("invalid format: " + specifier); + + var match, + fill = match[1] || " ", + align = match[2] || ">", + sign = match[3] || "-", + symbol = match[4] || "", + zero = !!match[5], + width = match[6] && +match[6], + comma = !!match[7], + precision = match[8] && +match[8].slice(1), + type = match[9] || ""; + + // The "n" type is an alias for ",g". + if (type === "n") comma = true, type = "g"; + + // Map invalid types to the default format. + else if (!formatTypes[type]) type = ""; + + // If zero fill is specified, padding goes after sign and before digits. + if (zero || (fill === "0" && align === "=")) zero = true, fill = "0", align = "="; + + this.fill = fill; + this.align = align; + this.sign = sign; + this.symbol = symbol; + this.zero = zero; + this.width = width; + this.comma = comma; + this.precision = precision; + this.type = type; + } + + FormatSpecifier.prototype.toString = function() { + return this.fill + + this.align + + this.sign + + this.symbol + + (this.zero ? "0" : "") + + (this.width == null ? "" : Math.max(1, this.width | 0)) + + (this.comma ? "," : "") + + (this.precision == null ? "" : "." + Math.max(0, this.precision | 0)) + + this.type; + }; + + var prefixes = ["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"]; + + function identity$3(x) { + return x; + } + + function formatLocale(locale) { + var group = locale.grouping && locale.thousands ? formatGroup(locale.grouping, locale.thousands) : identity$3, + currency = locale.currency, + decimal = locale.decimal; + + function newFormat(specifier) { + specifier = formatSpecifier(specifier); + + var fill = specifier.fill, + align = specifier.align, + sign = specifier.sign, + symbol = specifier.symbol, + zero = specifier.zero, + width = specifier.width, + comma = specifier.comma, + precision = specifier.precision, + type = specifier.type; + + // Compute the prefix and suffix. + // For SI-prefix, the suffix is lazily computed. + var prefix = symbol === "$" ? currency[0] : symbol === "#" && /[boxX]/.test(type) ? "0" + type.toLowerCase() : "", + suffix = symbol === "$" ? currency[1] : /[%p]/.test(type) ? "%" : ""; + + // What format function should we use? + // Is this an integer type? + // Can this type generate exponential notation? + var formatType = formatTypes[type], + maybeSuffix = !type || /[defgprs%]/.test(type); + + // Set the default precision if not specified, + // or clamp the specified precision to the supported range. + // For significant precision, it must be in [1, 21]. + // For fixed precision, it must be in [0, 20]. + precision = precision == null ? (type ? 6 : 12) + : /[gprs]/.test(type) ? Math.max(1, Math.min(21, precision)) + : Math.max(0, Math.min(20, precision)); + + function format(value) { + var valuePrefix = prefix, + valueSuffix = suffix, + i, n, c; + + if (type === "c") { + valueSuffix = formatType(value) + valueSuffix; + value = ""; + } else { + value = +value; + + // Convert negative to positive, and compute the prefix. + // Note that -0 is not less than 0, but 1 / -0 is! + var valueNegative = (value < 0 || 1 / value < 0) && (value *= -1, true); + + // Perform the initial formatting. + value = formatType(value, precision); + + // If the original value was negative, it may be rounded to zero during + // formatting; treat this as (positive) zero. + if (valueNegative) { + i = -1, n = value.length; + valueNegative = false; + while (++i < n) { + if (c = value.charCodeAt(i), (48 < c && c < 58) + || (type === "x" && 96 < c && c < 103) + || (type === "X" && 64 < c && c < 71)) { + valueNegative = true; + break; + } + } + } + + // Compute the prefix and suffix. + valuePrefix = (valueNegative ? (sign === "(" ? sign : "-") : sign === "-" || sign === "(" ? "" : sign) + valuePrefix; + valueSuffix = valueSuffix + (type === "s" ? prefixes[8 + prefixExponent / 3] : "") + (valueNegative && sign === "(" ? ")" : ""); + + // Break the formatted value into the integer “value” part that can be + // grouped, and fractional or exponential “suffix” part that is not. + if (maybeSuffix) { + i = -1, n = value.length; + while (++i < n) { + if (c = value.charCodeAt(i), 48 > c || c > 57) { + valueSuffix = (c === 46 ? decimal + value.slice(i + 1) : value.slice(i)) + valueSuffix; + value = value.slice(0, i); + break; + } + } + } + } + + // If the fill character is not "0", grouping is applied before padding. + if (comma && !zero) value = group(value, Infinity); + + // Compute the padding. + var length = valuePrefix.length + value.length + valueSuffix.length, + padding = length < width ? new Array(width - length + 1).join(fill) : ""; + + // If the fill character is "0", grouping is applied after padding. + if (comma && zero) value = group(padding + value, padding.length ? width - valueSuffix.length : Infinity), padding = ""; + + // Reconstruct the final output based on the desired alignment. + switch (align) { + case "<": return valuePrefix + value + valueSuffix + padding; + case "=": return valuePrefix + padding + value + valueSuffix; + case "^": return padding.slice(0, length = padding.length >> 1) + valuePrefix + value + valueSuffix + padding.slice(length); + } + return padding + valuePrefix + value + valueSuffix; + } + + format.toString = function() { + return specifier + ""; + }; + + return format; + } + + function formatPrefix(specifier, value) { + var f = newFormat((specifier = formatSpecifier(specifier), specifier.type = "f", specifier)), + e = Math.max(-8, Math.min(8, Math.floor(exponent$1(value) / 3))) * 3, + k = Math.pow(10, -e), + prefix = prefixes[8 + e / 3]; + return function(value) { + return f(k * value) + prefix; + }; + } + + return { + format: newFormat, + formatPrefix: formatPrefix + }; + } + + var locale; + exports.format; + exports.formatPrefix; + + defaultLocale({ + decimal: ".", + thousands: ",", + grouping: [3], + currency: ["$", ""] + }); + + function defaultLocale(definition) { + locale = formatLocale(definition); + exports.format = locale.format; + exports.formatPrefix = locale.formatPrefix; + return locale; + } + + function precisionFixed(step) { + return Math.max(0, -exponent$1(Math.abs(step))); + } + + function precisionPrefix(step, value) { + return Math.max(0, Math.max(-8, Math.min(8, Math.floor(exponent$1(value) / 3))) * 3 - exponent$1(Math.abs(step))); + } + + function precisionRound(step, max) { + step = Math.abs(step), max = Math.abs(max) - step; + return Math.max(0, exponent$1(max) - exponent$1(step)) + 1; + } + + function localDate(d) { + if (0 <= d.y && d.y < 100) { + var date = new Date(-1, d.m, d.d, d.H, d.M, d.S, d.L); + date.setFullYear(d.y); + return date; + } + return new Date(d.y, d.m, d.d, d.H, d.M, d.S, d.L); + } + + function utcDate(d) { + if (0 <= d.y && d.y < 100) { + var date = new Date(Date.UTC(-1, d.m, d.d, d.H, d.M, d.S, d.L)); + date.setUTCFullYear(d.y); + return date; + } + return new Date(Date.UTC(d.y, d.m, d.d, d.H, d.M, d.S, d.L)); + } + + function newYear(y) { + return {y: y, m: 0, d: 1, H: 0, M: 0, S: 0, L: 0}; + } + + function formatLocale$1(locale) { + var locale_dateTime = locale.dateTime, + locale_date = locale.date, + locale_time = locale.time, + locale_periods = locale.periods, + locale_weekdays = locale.days, + locale_shortWeekdays = locale.shortDays, + locale_months = locale.months, + locale_shortMonths = locale.shortMonths; + + var periodRe = formatRe(locale_periods), + periodLookup = formatLookup(locale_periods), + weekdayRe = formatRe(locale_weekdays), + weekdayLookup = formatLookup(locale_weekdays), + shortWeekdayRe = formatRe(locale_shortWeekdays), + shortWeekdayLookup = formatLookup(locale_shortWeekdays), + monthRe = formatRe(locale_months), + monthLookup = formatLookup(locale_months), + shortMonthRe = formatRe(locale_shortMonths), + shortMonthLookup = formatLookup(locale_shortMonths); + + var formats = { + "a": formatShortWeekday, + "A": formatWeekday, + "b": formatShortMonth, + "B": formatMonth, + "c": null, + "d": formatDayOfMonth, + "e": formatDayOfMonth, + "H": formatHour24, + "I": formatHour12, + "j": formatDayOfYear, + "L": formatMilliseconds, + "m": formatMonthNumber, + "M": formatMinutes, + "p": formatPeriod, + "S": formatSeconds, + "U": formatWeekNumberSunday, + "w": formatWeekdayNumber, + "W": formatWeekNumberMonday, + "x": null, + "X": null, + "y": formatYear, + "Y": formatFullYear, + "Z": formatZone, + "%": formatLiteralPercent + }; + + var utcFormats = { + "a": formatUTCShortWeekday, + "A": formatUTCWeekday, + "b": formatUTCShortMonth, + "B": formatUTCMonth, + "c": null, + "d": formatUTCDayOfMonth, + "e": formatUTCDayOfMonth, + "H": formatUTCHour24, + "I": formatUTCHour12, + "j": formatUTCDayOfYear, + "L": formatUTCMilliseconds, + "m": formatUTCMonthNumber, + "M": formatUTCMinutes, + "p": formatUTCPeriod, + "S": formatUTCSeconds, + "U": formatUTCWeekNumberSunday, + "w": formatUTCWeekdayNumber, + "W": formatUTCWeekNumberMonday, + "x": null, + "X": null, + "y": formatUTCYear, + "Y": formatUTCFullYear, + "Z": formatUTCZone, + "%": formatLiteralPercent + }; + + var parses = { + "a": parseShortWeekday, + "A": parseWeekday, + "b": parseShortMonth, + "B": parseMonth, + "c": parseLocaleDateTime, + "d": parseDayOfMonth, + "e": parseDayOfMonth, + "H": parseHour24, + "I": parseHour24, + "j": parseDayOfYear, + "L": parseMilliseconds, + "m": parseMonthNumber, + "M": parseMinutes, + "p": parsePeriod, + "S": parseSeconds, + "U": parseWeekNumberSunday, + "w": parseWeekdayNumber, + "W": parseWeekNumberMonday, + "x": parseLocaleDate, + "X": parseLocaleTime, + "y": parseYear, + "Y": parseFullYear, + "Z": parseZone, + "%": parseLiteralPercent + }; + + // These recursive directive definitions must be deferred. + formats.x = newFormat(locale_date, formats); + formats.X = newFormat(locale_time, formats); + formats.c = newFormat(locale_dateTime, formats); + utcFormats.x = newFormat(locale_date, utcFormats); + utcFormats.X = newFormat(locale_time, utcFormats); + utcFormats.c = newFormat(locale_dateTime, utcFormats); + + function newFormat(specifier, formats) { + return function(date) { + var string = [], + i = -1, + j = 0, + n = specifier.length, + c, + pad, + format; + + if (!(date instanceof Date)) date = new Date(+date); + + while (++i < n) { + if (specifier.charCodeAt(i) === 37) { + string.push(specifier.slice(j, i)); + if ((pad = pads[c = specifier.charAt(++i)]) != null) c = specifier.charAt(++i); + else pad = c === "e" ? " " : "0"; + if (format = formats[c]) c = format(date, pad); + string.push(c); + j = i + 1; + } + } + + string.push(specifier.slice(j, i)); + return string.join(""); + }; + } + + function newParse(specifier, newDate) { + return function(string) { + var d = newYear(1900), + i = parseSpecifier(d, specifier, string += "", 0); + if (i != string.length) return null; + + // The am-pm flag is 0 for AM, and 1 for PM. + if ("p" in d) d.H = d.H % 12 + d.p * 12; + + // Convert day-of-week and week-of-year to day-of-year. + if ("W" in d || "U" in d) { + if (!("w" in d)) d.w = "W" in d ? 1 : 0; + var day = "Z" in d ? utcDate(newYear(d.y)).getUTCDay() : newDate(newYear(d.y)).getDay(); + d.m = 0; + d.d = "W" in d ? (d.w + 6) % 7 + d.W * 7 - (day + 5) % 7 : d.w + d.U * 7 - (day + 6) % 7; + } + + // If a time zone is specified, all fields are interpreted as UTC and then + // offset according to the specified time zone. + if ("Z" in d) { + d.H += d.Z / 100 | 0; + d.M += d.Z % 100; + return utcDate(d); + } + + // Otherwise, all fields are in local time. + return newDate(d); + }; + } + + function parseSpecifier(d, specifier, string, j) { + var i = 0, + n = specifier.length, + m = string.length, + c, + parse; + + while (i < n) { + if (j >= m) return -1; + c = specifier.charCodeAt(i++); + if (c === 37) { + c = specifier.charAt(i++); + parse = parses[c in pads ? specifier.charAt(i++) : c]; + if (!parse || ((j = parse(d, string, j)) < 0)) return -1; + } else if (c != string.charCodeAt(j++)) { + return -1; + } + } + + return j; + } + + function parsePeriod(d, string, i) { + var n = periodRe.exec(string.slice(i)); + return n ? (d.p = periodLookup[n[0].toLowerCase()], i + n[0].length) : -1; + } + + function parseShortWeekday(d, string, i) { + var n = shortWeekdayRe.exec(string.slice(i)); + return n ? (d.w = shortWeekdayLookup[n[0].toLowerCase()], i + n[0].length) : -1; + } + + function parseWeekday(d, string, i) { + var n = weekdayRe.exec(string.slice(i)); + return n ? (d.w = weekdayLookup[n[0].toLowerCase()], i + n[0].length) : -1; + } + + function parseShortMonth(d, string, i) { + var n = shortMonthRe.exec(string.slice(i)); + return n ? (d.m = shortMonthLookup[n[0].toLowerCase()], i + n[0].length) : -1; + } + + function parseMonth(d, string, i) { + var n = monthRe.exec(string.slice(i)); + return n ? (d.m = monthLookup[n[0].toLowerCase()], i + n[0].length) : -1; + } + + function parseLocaleDateTime(d, string, i) { + return parseSpecifier(d, locale_dateTime, string, i); + } + + function parseLocaleDate(d, string, i) { + return parseSpecifier(d, locale_date, string, i); + } + + function parseLocaleTime(d, string, i) { + return parseSpecifier(d, locale_time, string, i); + } + + function formatShortWeekday(d) { + return locale_shortWeekdays[d.getDay()]; + } + + function formatWeekday(d) { + return locale_weekdays[d.getDay()]; + } + + function formatShortMonth(d) { + return locale_shortMonths[d.getMonth()]; + } + + function formatMonth(d) { + return locale_months[d.getMonth()]; + } + + function formatPeriod(d) { + return locale_periods[+(d.getHours() >= 12)]; + } + + function formatUTCShortWeekday(d) { + return locale_shortWeekdays[d.getUTCDay()]; + } + + function formatUTCWeekday(d) { + return locale_weekdays[d.getUTCDay()]; + } + + function formatUTCShortMonth(d) { + return locale_shortMonths[d.getUTCMonth()]; + } + + function formatUTCMonth(d) { + return locale_months[d.getUTCMonth()]; + } + + function formatUTCPeriod(d) { + return locale_periods[+(d.getUTCHours() >= 12)]; + } + + return { + format: function(specifier) { + var f = newFormat(specifier += "", formats); + f.toString = function() { return specifier; }; + return f; + }, + parse: function(specifier) { + var p = newParse(specifier += "", localDate); + p.toString = function() { return specifier; }; + return p; + }, + utcFormat: function(specifier) { + var f = newFormat(specifier += "", utcFormats); + f.toString = function() { return specifier; }; + return f; + }, + utcParse: function(specifier) { + var p = newParse(specifier, utcDate); + p.toString = function() { return specifier; }; + return p; + } + }; + } + + var pads = {"-": "", "_": " ", "0": "0"}; + var numberRe = /^\s*\d+/; + var percentRe = /^%/; + var requoteRe = /[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g; + function pad(value, fill, width) { + var sign = value < 0 ? "-" : "", + string = (sign ? -value : value) + "", + length = string.length; + return sign + (length < width ? new Array(width - length + 1).join(fill) + string : string); + } + + function requote(s) { + return s.replace(requoteRe, "\\$&"); + } + + function formatRe(names) { + return new RegExp("^(?:" + names.map(requote).join("|") + ")", "i"); + } + + function formatLookup(names) { + var map = {}, i = -1, n = names.length; + while (++i < n) map[names[i].toLowerCase()] = i; + return map; + } + + function parseWeekdayNumber(d, string, i) { + var n = numberRe.exec(string.slice(i, i + 1)); + return n ? (d.w = +n[0], i + n[0].length) : -1; + } + + function parseWeekNumberSunday(d, string, i) { + var n = numberRe.exec(string.slice(i)); + return n ? (d.U = +n[0], i + n[0].length) : -1; + } + + function parseWeekNumberMonday(d, string, i) { + var n = numberRe.exec(string.slice(i)); + return n ? (d.W = +n[0], i + n[0].length) : -1; + } + + function parseFullYear(d, string, i) { + var n = numberRe.exec(string.slice(i, i + 4)); + return n ? (d.y = +n[0], i + n[0].length) : -1; + } + + function parseYear(d, string, i) { + var n = numberRe.exec(string.slice(i, i + 2)); + return n ? (d.y = +n[0] + (+n[0] > 68 ? 1900 : 2000), i + n[0].length) : -1; + } + + function parseZone(d, string, i) { + var n = /^(Z)|([+-]\d\d)(?:\:?(\d\d))?/.exec(string.slice(i, i + 6)); + return n ? (d.Z = n[1] ? 0 : -(n[2] + (n[3] || "00")), i + n[0].length) : -1; + } + + function parseMonthNumber(d, string, i) { + var n = numberRe.exec(string.slice(i, i + 2)); + return n ? (d.m = n[0] - 1, i + n[0].length) : -1; + } + + function parseDayOfMonth(d, string, i) { + var n = numberRe.exec(string.slice(i, i + 2)); + return n ? (d.d = +n[0], i + n[0].length) : -1; + } + + function parseDayOfYear(d, string, i) { + var n = numberRe.exec(string.slice(i, i + 3)); + return n ? (d.m = 0, d.d = +n[0], i + n[0].length) : -1; + } + + function parseHour24(d, string, i) { + var n = numberRe.exec(string.slice(i, i + 2)); + return n ? (d.H = +n[0], i + n[0].length) : -1; + } + + function parseMinutes(d, string, i) { + var n = numberRe.exec(string.slice(i, i + 2)); + return n ? (d.M = +n[0], i + n[0].length) : -1; + } + + function parseSeconds(d, string, i) { + var n = numberRe.exec(string.slice(i, i + 2)); + return n ? (d.S = +n[0], i + n[0].length) : -1; + } + + function parseMilliseconds(d, string, i) { + var n = numberRe.exec(string.slice(i, i + 3)); + return n ? (d.L = +n[0], i + n[0].length) : -1; + } + + function parseLiteralPercent(d, string, i) { + var n = percentRe.exec(string.slice(i, i + 1)); + return n ? i + n[0].length : -1; + } + + function formatDayOfMonth(d, p) { + return pad(d.getDate(), p, 2); + } + + function formatHour24(d, p) { + return pad(d.getHours(), p, 2); + } + + function formatHour12(d, p) { + return pad(d.getHours() % 12 || 12, p, 2); + } + + function formatDayOfYear(d, p) { + return pad(1 + day.count(year(d), d), p, 3); + } + + function formatMilliseconds(d, p) { + return pad(d.getMilliseconds(), p, 3); + } + + function formatMonthNumber(d, p) { + return pad(d.getMonth() + 1, p, 2); + } + + function formatMinutes(d, p) { + return pad(d.getMinutes(), p, 2); + } + + function formatSeconds(d, p) { + return pad(d.getSeconds(), p, 2); + } + + function formatWeekNumberSunday(d, p) { + return pad(timeWeek.count(year(d), d), p, 2); + } + + function formatWeekdayNumber(d) { + return d.getDay(); + } + + function formatWeekNumberMonday(d, p) { + return pad(timeMonday.count(year(d), d), p, 2); + } + + function formatYear(d, p) { + return pad(d.getFullYear() % 100, p, 2); + } + + function formatFullYear(d, p) { + return pad(d.getFullYear() % 10000, p, 4); + } + + function formatZone(d) { + var z = d.getTimezoneOffset(); + return (z > 0 ? "-" : (z *= -1, "+")) + + pad(z / 60 | 0, "0", 2) + + pad(z % 60, "0", 2); + } + + function formatUTCDayOfMonth(d, p) { + return pad(d.getUTCDate(), p, 2); + } + + function formatUTCHour24(d, p) { + return pad(d.getUTCHours(), p, 2); + } + + function formatUTCHour12(d, p) { + return pad(d.getUTCHours() % 12 || 12, p, 2); + } + + function formatUTCDayOfYear(d, p) { + return pad(1 + utcDay.count(utcYear(d), d), p, 3); + } + + function formatUTCMilliseconds(d, p) { + return pad(d.getUTCMilliseconds(), p, 3); + } + + function formatUTCMonthNumber(d, p) { + return pad(d.getUTCMonth() + 1, p, 2); + } + + function formatUTCMinutes(d, p) { + return pad(d.getUTCMinutes(), p, 2); + } + + function formatUTCSeconds(d, p) { + return pad(d.getUTCSeconds(), p, 2); + } + + function formatUTCWeekNumberSunday(d, p) { + return pad(utcWeek.count(utcYear(d), d), p, 2); + } + + function formatUTCWeekdayNumber(d) { + return d.getUTCDay(); + } + + function formatUTCWeekNumberMonday(d, p) { + return pad(utcMonday.count(utcYear(d), d), p, 2); + } + + function formatUTCYear(d, p) { + return pad(d.getUTCFullYear() % 100, p, 2); + } + + function formatUTCFullYear(d, p) { + return pad(d.getUTCFullYear() % 10000, p, 4); + } + + function formatUTCZone() { + return "+0000"; + } + + function formatLiteralPercent() { + return "%"; + } + + var locale$1; + exports.timeFormat; + exports.timeParse; + exports.utcFormat; + exports.utcParse; + + defaultLocale$1({ + dateTime: "%x, %X", + date: "%-m/%-d/%Y", + time: "%-I:%M:%S %p", + periods: ["AM", "PM"], + days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], + shortDays: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], + months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], + shortMonths: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"] + }); + + function defaultLocale$1(definition) { + locale$1 = formatLocale$1(definition); + exports.timeFormat = locale$1.format; + exports.timeParse = locale$1.parse; + exports.utcFormat = locale$1.utcFormat; + exports.utcParse = locale$1.utcParse; + return locale$1; + } + + var isoSpecifier = "%Y-%m-%dT%H:%M:%S.%LZ"; + + function formatIsoNative(date) { + return date.toISOString(); + } + + var formatIso = Date.prototype.toISOString + ? formatIsoNative + : exports.utcFormat(isoSpecifier); + + function parseIsoNative(string) { + var date = new Date(string); + return isNaN(date) ? null : date; + } + + var parseIso = +new Date("2000-01-01T00:00:00.000Z") + ? parseIsoNative + : exports.utcParse(isoSpecifier); + + var array$2 = Array.prototype; + + var map$2 = array$2.map; + var slice$3 = array$2.slice; + + var implicit = {name: "implicit"}; + + function ordinal(range) { + var index = map$1(), + domain = [], + unknown = implicit; + + range = range == null ? [] : slice$3.call(range); + + function scale(d) { + var key = d + "", i = index.get(key); + if (!i) { + if (unknown !== implicit) return unknown; + index.set(key, i = domain.push(d)); + } + return range[(i - 1) % range.length]; + } + + scale.domain = function(_) { + if (!arguments.length) return domain.slice(); + domain = [], index = map$1(); + var i = -1, n = _.length, d, key; + while (++i < n) if (!index.has(key = (d = _[i]) + "")) index.set(key, domain.push(d)); + return scale; + }; + + scale.range = function(_) { + return arguments.length ? (range = slice$3.call(_), scale) : range.slice(); + }; + + scale.unknown = function(_) { + return arguments.length ? (unknown = _, scale) : unknown; + }; + + scale.copy = function() { + return ordinal() + .domain(domain) + .range(range) + .unknown(unknown); + }; + + return scale; + } + + function band() { + var scale = ordinal().unknown(undefined), + domain = scale.domain, + ordinalRange = scale.range, + range$$ = [0, 1], + step, + bandwidth, + round = false, + paddingInner = 0, + paddingOuter = 0, + align = 0.5; + + delete scale.unknown; + + function rescale() { + var n = domain().length, + reverse = range$$[1] < range$$[0], + start = range$$[reverse - 0], + stop = range$$[1 - reverse]; + step = (stop - start) / Math.max(1, n - paddingInner + paddingOuter * 2); + if (round) step = Math.floor(step); + start += (stop - start - step * (n - paddingInner)) * align; + bandwidth = step * (1 - paddingInner); + if (round) start = Math.round(start), bandwidth = Math.round(bandwidth); + var values = range(n).map(function(i) { return start + step * i; }); + return ordinalRange(reverse ? values.reverse() : values); + } + + scale.domain = function(_) { + return arguments.length ? (domain(_), rescale()) : domain(); + }; + + scale.range = function(_) { + return arguments.length ? (range$$ = [+_[0], +_[1]], rescale()) : range$$.slice(); + }; + + scale.rangeRound = function(_) { + return range$$ = [+_[0], +_[1]], round = true, rescale(); + }; + + scale.bandwidth = function() { + return bandwidth; + }; + + scale.step = function() { + return step; + }; + + scale.round = function(_) { + return arguments.length ? (round = !!_, rescale()) : round; + }; + + scale.padding = function(_) { + return arguments.length ? (paddingInner = paddingOuter = Math.max(0, Math.min(1, _)), rescale()) : paddingInner; + }; + + scale.paddingInner = function(_) { + return arguments.length ? (paddingInner = Math.max(0, Math.min(1, _)), rescale()) : paddingInner; + }; + + scale.paddingOuter = function(_) { + return arguments.length ? (paddingOuter = Math.max(0, Math.min(1, _)), rescale()) : paddingOuter; + }; + + scale.align = function(_) { + return arguments.length ? (align = Math.max(0, Math.min(1, _)), rescale()) : align; + }; + + scale.copy = function() { + return band() + .domain(domain()) + .range(range$$) + .round(round) + .paddingInner(paddingInner) + .paddingOuter(paddingOuter) + .align(align); + }; + + return rescale(); + } + + function pointish(scale) { + var copy = scale.copy; + + scale.padding = scale.paddingOuter; + delete scale.paddingInner; + delete scale.paddingOuter; + + scale.copy = function() { + return pointish(copy()); + }; + + return scale; + } + + function point$4() { + return pointish(band().paddingInner(1)); + } + + function constant$3(x) { + return function() { + return x; + }; + } + + function number$1(x) { + return +x; + } + + var unit = [0, 1]; + + function deinterpolate(a, b) { + return (b -= (a = +a)) + ? function(x) { return (x - a) / b; } + : constant$3(b); + } + + function deinterpolateClamp(deinterpolate) { + return function(a, b) { + var d = deinterpolate(a = +a, b = +b); + return function(x) { return x <= a ? 0 : x >= b ? 1 : d(x); }; + }; + } + + function reinterpolateClamp(reinterpolate) { + return function(a, b) { + var r = reinterpolate(a = +a, b = +b); + return function(t) { return t <= 0 ? a : t >= 1 ? b : r(t); }; + }; + } + + function bimap(domain, range, deinterpolate, reinterpolate) { + var d0 = domain[0], d1 = domain[1], r0 = range[0], r1 = range[1]; + if (d1 < d0) d0 = deinterpolate(d1, d0), r0 = reinterpolate(r1, r0); + else d0 = deinterpolate(d0, d1), r0 = reinterpolate(r0, r1); + return function(x) { return r0(d0(x)); }; + } + + function polymap(domain, range, deinterpolate, reinterpolate) { + var j = Math.min(domain.length, range.length) - 1, + d = new Array(j), + r = new Array(j), + i = -1; + + // Reverse descending domains. + if (domain[j] < domain[0]) { + domain = domain.slice().reverse(); + range = range.slice().reverse(); + } + + while (++i < j) { + d[i] = deinterpolate(domain[i], domain[i + 1]); + r[i] = reinterpolate(range[i], range[i + 1]); + } + + return function(x) { + var i = bisectRight(domain, x, 1, j) - 1; + return r[i](d[i](x)); + }; + } + + function copy(source, target) { + return target + .domain(source.domain()) + .range(source.range()) + .interpolate(source.interpolate()) + .clamp(source.clamp()); + } + + // deinterpolate(a, b)(x) takes a domain value x in [a,b] and returns the corresponding parameter t in [0,1]. + // reinterpolate(a, b)(t) takes a parameter t in [0,1] and returns the corresponding domain value x in [a,b]. + function continuous(deinterpolate$$, reinterpolate) { + var domain = unit, + range = unit, + interpolate$$ = interpolate, + clamp = false, + piecewise, + output, + input; + + function rescale() { + piecewise = Math.min(domain.length, range.length) > 2 ? polymap : bimap; + output = input = null; + return scale; + } + + function scale(x) { + return (output || (output = piecewise(domain, range, clamp ? deinterpolateClamp(deinterpolate$$) : deinterpolate$$, interpolate$$)))(+x); + } + + scale.invert = function(y) { + return (input || (input = piecewise(range, domain, deinterpolate, clamp ? reinterpolateClamp(reinterpolate) : reinterpolate)))(+y); + }; + + scale.domain = function(_) { + return arguments.length ? (domain = map$2.call(_, number$1), rescale()) : domain.slice(); + }; + + scale.range = function(_) { + return arguments.length ? (range = slice$3.call(_), rescale()) : range.slice(); + }; + + scale.rangeRound = function(_) { + return range = slice$3.call(_), interpolate$$ = interpolateRound, rescale(); + }; + + scale.clamp = function(_) { + return arguments.length ? (clamp = !!_, rescale()) : clamp; + }; + + scale.interpolate = function(_) { + return arguments.length ? (interpolate$$ = _, rescale()) : interpolate$$; + }; + + return rescale(); + } + + function tickFormat(domain, count, specifier) { + var start = domain[0], + stop = domain[domain.length - 1], + step = tickStep(start, stop, count == null ? 10 : count), + precision; + specifier = formatSpecifier(specifier == null ? ",f" : specifier); + switch (specifier.type) { + case "s": { + var value = Math.max(Math.abs(start), Math.abs(stop)); + if (specifier.precision == null && !isNaN(precision = precisionPrefix(step, value))) specifier.precision = precision; + return exports.formatPrefix(specifier, value); + } + case "": + case "e": + case "g": + case "p": + case "r": { + if (specifier.precision == null && !isNaN(precision = precisionRound(step, Math.max(Math.abs(start), Math.abs(stop))))) specifier.precision = precision - (specifier.type === "e"); + break; + } + case "f": + case "%": { + if (specifier.precision == null && !isNaN(precision = precisionFixed(step))) specifier.precision = precision - (specifier.type === "%") * 2; + break; + } + } + return exports.format(specifier); + } + + function linearish(scale) { + var domain = scale.domain; + + scale.ticks = function(count) { + var d = domain(); + return ticks(d[0], d[d.length - 1], count == null ? 10 : count); + }; + + scale.tickFormat = function(count, specifier) { + return tickFormat(domain(), count, specifier); + }; + + scale.nice = function(count) { + var d = domain(), + i = d.length - 1, + n = count == null ? 10 : count, + start = d[0], + stop = d[i], + step = tickStep(start, stop, n); + + if (step) { + step = tickStep(Math.floor(start / step) * step, Math.ceil(stop / step) * step, n); + d[0] = Math.floor(start / step) * step; + d[i] = Math.ceil(stop / step) * step; + domain(d); + } + + return scale; + }; + + return scale; + } + + function linear$2() { + var scale = continuous(deinterpolate, interpolateNumber); + + scale.copy = function() { + return copy(scale, linear$2()); + }; + + return linearish(scale); + } + + function identity$4() { + var domain = [0, 1]; + + function scale(x) { + return +x; + } + + scale.invert = scale; + + scale.domain = scale.range = function(_) { + return arguments.length ? (domain = map$2.call(_, number$1), scale) : domain.slice(); + }; + + scale.copy = function() { + return identity$4().domain(domain); + }; + + return linearish(scale); + } + + function nice(domain, interval) { + domain = domain.slice(); + + var i0 = 0, + i1 = domain.length - 1, + x0 = domain[i0], + x1 = domain[i1], + t; + + if (x1 < x0) { + t = i0, i0 = i1, i1 = t; + t = x0, x0 = x1, x1 = t; + } + + domain[i0] = interval.floor(x0); + domain[i1] = interval.ceil(x1); + return domain; + } + + function deinterpolate$1(a, b) { + return (b = Math.log(b / a)) + ? function(x) { return Math.log(x / a) / b; } + : constant$3(b); + } + + function reinterpolate(a, b) { + return a < 0 + ? function(t) { return -Math.pow(-b, t) * Math.pow(-a, 1 - t); } + : function(t) { return Math.pow(b, t) * Math.pow(a, 1 - t); }; + } + + function pow10(x) { + return isFinite(x) ? +("1e" + x) : x < 0 ? 0 : x; + } + + function powp(base) { + return base === 10 ? pow10 + : base === Math.E ? Math.exp + : function(x) { return Math.pow(base, x); }; + } + + function logp(base) { + return base === Math.E ? Math.log + : base === 10 && Math.log10 + || base === 2 && Math.log2 + || (base = Math.log(base), function(x) { return Math.log(x) / base; }); + } + + function reflect(f) { + return function(x) { + return -f(-x); + }; + } + + function log() { + var scale = continuous(deinterpolate$1, reinterpolate).domain([1, 10]), + domain = scale.domain, + base = 10, + logs = logp(10), + pows = powp(10); + + function rescale() { + logs = logp(base), pows = powp(base); + if (domain()[0] < 0) logs = reflect(logs), pows = reflect(pows); + return scale; + } + + scale.base = function(_) { + return arguments.length ? (base = +_, rescale()) : base; + }; + + scale.domain = function(_) { + return arguments.length ? (domain(_), rescale()) : domain(); + }; + + scale.ticks = function(count) { + var d = domain(), + u = d[0], + v = d[d.length - 1], + r; + + if (r = v < u) i = u, u = v, v = i; + + var i = logs(u), + j = logs(v), + p, + k, + t, + n = count == null ? 10 : +count, + z = []; + + if (!(base % 1) && j - i < n) { + i = Math.round(i) - 1, j = Math.round(j) + 1; + if (u > 0) for (; i < j; ++i) { + for (k = 1, p = pows(i); k < base; ++k) { + t = p * k; + if (t < u) continue; + if (t > v) break; + z.push(t); + } + } else for (; i < j; ++i) { + for (k = base - 1, p = pows(i); k >= 1; --k) { + t = p * k; + if (t < u) continue; + if (t > v) break; + z.push(t); + } + } + } else { + z = ticks(i, j, Math.min(j - i, n)).map(pows); + } + + return r ? z.reverse() : z; + }; + + scale.tickFormat = function(count, specifier) { + if (specifier == null) specifier = base === 10 ? ".0e" : ","; + if (typeof specifier !== "function") specifier = exports.format(specifier); + if (count === Infinity) return specifier; + if (count == null) count = 10; + var k = Math.max(1, base * count / scale.ticks().length); // TODO fast estimate? + return function(d) { + var i = d / pows(Math.round(logs(d))); + if (i * base < base - 0.5) i *= base; + return i <= k ? specifier(d) : ""; + }; + }; + + scale.nice = function() { + return domain(nice(domain(), { + floor: function(x) { return pows(Math.floor(logs(x))); }, + ceil: function(x) { return pows(Math.ceil(logs(x))); } + })); + }; + + scale.copy = function() { + return copy(scale, log().base(base)); + }; + + return scale; + } + + function raise(x, exponent) { + return x < 0 ? -Math.pow(-x, exponent) : Math.pow(x, exponent); + } + + function pow() { + var exponent = 1, + scale = continuous(deinterpolate, reinterpolate), + domain = scale.domain; + + function deinterpolate(a, b) { + return (b = raise(b, exponent) - (a = raise(a, exponent))) + ? function(x) { return (raise(x, exponent) - a) / b; } + : constant$3(b); + } + + function reinterpolate(a, b) { + b = raise(b, exponent) - (a = raise(a, exponent)); + return function(t) { return raise(a + b * t, 1 / exponent); }; + } + + scale.exponent = function(_) { + return arguments.length ? (exponent = +_, domain(domain())) : exponent; + }; + + scale.copy = function() { + return copy(scale, pow().exponent(exponent)); + }; + + return linearish(scale); + } + + function sqrt() { + return pow().exponent(0.5); + } + + function quantile() { + var domain = [], + range = [], + thresholds = []; + + function rescale() { + var i = 0, n = Math.max(1, range.length); + thresholds = new Array(n - 1); + while (++i < n) thresholds[i - 1] = threshold(domain, i / n); + return scale; + } + + function scale(x) { + if (!isNaN(x = +x)) return range[bisectRight(thresholds, x)]; + } + + scale.invertExtent = function(y) { + var i = range.indexOf(y); + return i < 0 ? [NaN, NaN] : [ + i > 0 ? thresholds[i - 1] : domain[0], + i < thresholds.length ? thresholds[i] : domain[domain.length - 1] + ]; + }; + + scale.domain = function(_) { + if (!arguments.length) return domain.slice(); + domain = []; + for (var i = 0, n = _.length, d; i < n; ++i) if (d = _[i], d != null && !isNaN(d = +d)) domain.push(d); + domain.sort(ascending); + return rescale(); + }; + + scale.range = function(_) { + return arguments.length ? (range = slice$3.call(_), rescale()) : range.slice(); + }; + + scale.quantiles = function() { + return thresholds.slice(); + }; + + scale.copy = function() { + return quantile() + .domain(domain) + .range(range); + }; + + return scale; + } + + function quantize$1() { + var x0 = 0, + x1 = 1, + n = 1, + domain = [0.5], + range = [0, 1]; + + function scale(x) { + if (x <= x) return range[bisectRight(domain, x, 0, n)]; + } + + function rescale() { + var i = -1; + domain = new Array(n); + while (++i < n) domain[i] = ((i + 1) * x1 - (i - n) * x0) / (n + 1); + return scale; + } + + scale.domain = function(_) { + return arguments.length ? (x0 = +_[0], x1 = +_[1], rescale()) : [x0, x1]; + }; + + scale.range = function(_) { + return arguments.length ? (n = (range = slice$3.call(_)).length - 1, rescale()) : range.slice(); + }; + + scale.invertExtent = function(y) { + var i = range.indexOf(y); + return i < 0 ? [NaN, NaN] + : i < 1 ? [x0, domain[0]] + : i >= n ? [domain[n - 1], x1] + : [domain[i - 1], domain[i]]; + }; + + scale.copy = function() { + return quantize$1() + .domain([x0, x1]) + .range(range); + }; + + return linearish(scale); + } + + function threshold$1() { + var domain = [0.5], + range = [0, 1], + n = 1; + + function scale(x) { + if (x <= x) return range[bisectRight(domain, x, 0, n)]; + } + + scale.domain = function(_) { + return arguments.length ? (domain = slice$3.call(_), n = Math.min(domain.length, range.length - 1), scale) : domain.slice(); + }; + + scale.range = function(_) { + return arguments.length ? (range = slice$3.call(_), n = Math.min(domain.length, range.length - 1), scale) : range.slice(); + }; + + scale.invertExtent = function(y) { + var i = range.indexOf(y); + return [domain[i - 1], domain[i]]; + }; + + scale.copy = function() { + return threshold$1() + .domain(domain) + .range(range); + }; + + return scale; + } + +var durationSecond$1 = 1000; +var durationMinute$1 = durationSecond$1 * 60; +var durationHour$1 = durationMinute$1 * 60; +var durationDay$1 = durationHour$1 * 24; +var durationWeek$1 = durationDay$1 * 7; + var durationMonth = durationDay$1 * 30; + var durationYear = durationDay$1 * 365; + function date(t) { + return new Date(t); + } + + function number$2(t) { + return t instanceof Date ? +t : +new Date(+t); + } + + function calendar(year, month, week, day, hour, minute, second, millisecond, format) { + var scale = continuous(deinterpolate, interpolateNumber), + invert = scale.invert, + domain = scale.domain; + + var formatMillisecond = format(".%L"), + formatSecond = format(":%S"), + formatMinute = format("%I:%M"), + formatHour = format("%I %p"), + formatDay = format("%a %d"), + formatWeek = format("%b %d"), + formatMonth = format("%B"), + formatYear = format("%Y"); + + var tickIntervals = [ + [second, 1, durationSecond$1], + [second, 5, 5 * durationSecond$1], + [second, 15, 15 * durationSecond$1], + [second, 30, 30 * durationSecond$1], + [minute, 1, durationMinute$1], + [minute, 5, 5 * durationMinute$1], + [minute, 15, 15 * durationMinute$1], + [minute, 30, 30 * durationMinute$1], + [ hour, 1, durationHour$1 ], + [ hour, 3, 3 * durationHour$1 ], + [ hour, 6, 6 * durationHour$1 ], + [ hour, 12, 12 * durationHour$1 ], + [ day, 1, durationDay$1 ], + [ day, 2, 2 * durationDay$1 ], + [ week, 1, durationWeek$1 ], + [ month, 1, durationMonth ], + [ month, 3, 3 * durationMonth ], + [ year, 1, durationYear ] + ]; + + function tickFormat(date) { + return (second(date) < date ? formatMillisecond + : minute(date) < date ? formatSecond + : hour(date) < date ? formatMinute + : day(date) < date ? formatHour + : month(date) < date ? (week(date) < date ? formatDay : formatWeek) + : year(date) < date ? formatMonth + : formatYear)(date); + } + + function tickInterval(interval, start, stop, step) { + if (interval == null) interval = 10; + + // If a desired tick count is specified, pick a reasonable tick interval + // based on the extent of the domain and a rough estimate of tick size. + // Otherwise, assume interval is already a time interval and use it. + if (typeof interval === "number") { + var target = Math.abs(stop - start) / interval, + i = bisector(function(i) { return i[2]; }).right(tickIntervals, target); + if (i === tickIntervals.length) { + step = tickStep(start / durationYear, stop / durationYear, interval); + interval = year; + } else if (i) { + i = tickIntervals[target / tickIntervals[i - 1][2] < tickIntervals[i][2] / target ? i - 1 : i]; + step = i[1]; + interval = i[0]; + } else { + step = tickStep(start, stop, interval); + interval = millisecond; + } + } + + return step == null ? interval : interval.every(step); + } + + scale.invert = function(y) { + return new Date(invert(y)); + }; + + scale.domain = function(_) { + return arguments.length ? domain(map$2.call(_, number$2)) : domain().map(date); + }; + + scale.ticks = function(interval, step) { + var d = domain(), + t0 = d[0], + t1 = d[d.length - 1], + r = t1 < t0, + t; + if (r) t = t0, t0 = t1, t1 = t; + t = tickInterval(interval, t0, t1, step); + t = t ? t.range(t0, t1 + 1) : []; // inclusive stop + return r ? t.reverse() : t; + }; + + scale.tickFormat = function(count, specifier) { + return specifier == null ? tickFormat : format(specifier); + }; + + scale.nice = function(interval, step) { + var d = domain(); + return (interval = tickInterval(interval, d[0], d[d.length - 1], step)) + ? domain(nice(d, interval)) + : scale; + }; + + scale.copy = function() { + return copy(scale, calendar(year, month, week, day, hour, minute, second, millisecond, format)); + }; + + return scale; + } + + function time() { + return calendar(year, month, timeWeek, day, hour, minute, second, millisecond, exports.timeFormat).domain([new Date(2000, 0, 1), new Date(2000, 0, 2)]); + } + + function utcTime() { + return calendar(utcYear, utcMonth, utcWeek, utcDay, utcHour, utcMinute, second, millisecond, exports.utcFormat).domain([Date.UTC(2000, 0, 1), Date.UTC(2000, 0, 2)]); + } + + function colors(s) { + return s.match(/.{6}/g).map(function(x) { + return "#" + x; + }); + } + + var category10 = colors("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"); + + var category20b = colors("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6"); + + var category20c = colors("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9"); + + var category20 = colors("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5"); + + var cubehelix$3 = interpolateCubehelixLong(cubehelix(300, 0.5, 0.0), cubehelix(-240, 0.5, 1.0)); + + var warm = interpolateCubehelixLong(cubehelix(-100, 0.75, 0.35), cubehelix(80, 1.50, 0.8)); + + var cool = interpolateCubehelixLong(cubehelix(260, 0.75, 0.35), cubehelix(80, 1.50, 0.8)); + + var rainbow = cubehelix(); + + function rainbow$1(t) { + if (t < 0 || t > 1) t -= Math.floor(t); + var ts = Math.abs(t - 0.5); + rainbow.h = 360 * t - 100; + rainbow.s = 1.5 - 1.5 * ts; + rainbow.l = 0.8 - 0.9 * ts; + return rainbow + ""; + } + + function ramp(range) { + var n = range.length; + return function(t) { + return range[Math.max(0, Math.min(n - 1, Math.floor(t * n)))]; + }; + } + + var viridis = ramp(colors("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")); + + var magma = ramp(colors("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")); + + var inferno = ramp(colors("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")); + + var plasma = ramp(colors("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")); + + function sequential(interpolator) { + var x0 = 0, + x1 = 1, + clamp = false; + + function scale(x) { + var t = (x - x0) / (x1 - x0); + return interpolator(clamp ? Math.max(0, Math.min(1, t)) : t); + } + + scale.domain = function(_) { + return arguments.length ? (x0 = +_[0], x1 = +_[1], scale) : [x0, x1]; + }; + + scale.clamp = function(_) { + return arguments.length ? (clamp = !!_, scale) : clamp; + }; + + scale.interpolator = function(_) { + return arguments.length ? (interpolator = _, scale) : interpolator; + }; + + scale.copy = function() { + return sequential(interpolator).domain([x0, x1]).clamp(clamp); + }; + + return linearish(scale); + } + + var xhtml = "http://www.w3.org/1999/xhtml"; + + var namespaces = { + svg: "http://www.w3.org/2000/svg", + xhtml: xhtml, + xlink: "http://www.w3.org/1999/xlink", + xml: "http://www.w3.org/XML/1998/namespace", + xmlns: "http://www.w3.org/2000/xmlns/" + }; + + function namespace(name) { + var prefix = name += "", i = prefix.indexOf(":"); + if (i >= 0 && (prefix = name.slice(0, i)) !== "xmlns") name = name.slice(i + 1); + return namespaces.hasOwnProperty(prefix) ? {space: namespaces[prefix], local: name} : name; + } + + function creatorInherit(name) { + return function() { + var document = this.ownerDocument, + uri = this.namespaceURI; + return uri === xhtml && document.documentElement.namespaceURI === xhtml + ? document.createElement(name) + : document.createElementNS(uri, name); + }; + } + + function creatorFixed(fullname) { + return function() { + return this.ownerDocument.createElementNS(fullname.space, fullname.local); + }; + } + + function creator(name) { + var fullname = namespace(name); + return (fullname.local + ? creatorFixed + : creatorInherit)(fullname); + } + + var nextId = 0; + + function local() { + return new Local; + } + + function Local() { + this._ = "@" + (++nextId).toString(36); + } + + Local.prototype = local.prototype = { + constructor: Local, + get: function(node) { + var id = this._; + while (!(id in node)) if (!(node = node.parentNode)) return; + return node[id]; + }, + set: function(node, value) { + return node[this._] = value; + }, + remove: function(node) { + return this._ in node && delete node[this._]; + }, + toString: function() { + return this._; + } + }; + + var matcher = function(selector) { + return function() { + return this.matches(selector); + }; + }; + + if (typeof document !== "undefined") { + var element = document.documentElement; + if (!element.matches) { + var vendorMatches = element.webkitMatchesSelector + || element.msMatchesSelector + || element.mozMatchesSelector + || element.oMatchesSelector; + matcher = function(selector) { + return function() { + return vendorMatches.call(this, selector); + }; + }; + } + } + + var matcher$1 = matcher; + + var filterEvents = {}; + + exports.event = null; + + if (typeof document !== "undefined") { + var element$1 = document.documentElement; + if (!("onmouseenter" in element$1)) { + filterEvents = {mouseenter: "mouseover", mouseleave: "mouseout"}; + } + } + + function filterContextListener(listener, index, group) { + listener = contextListener(listener, index, group); + return function(event) { + var related = event.relatedTarget; + if (!related || (related !== this && !(related.compareDocumentPosition(this) & 8))) { + listener.call(this, event); + } + }; + } + + function contextListener(listener, index, group) { + return function(event1) { + var event0 = exports.event; // Events can be reentrant (e.g., focus). + exports.event = event1; + try { + listener.call(this, this.__data__, index, group); + } finally { + exports.event = event0; + } + }; + } + + function parseTypenames$1(typenames) { + return typenames.trim().split(/^|\s+/).map(function(t) { + var name = "", i = t.indexOf("."); + if (i >= 0) name = t.slice(i + 1), t = t.slice(0, i); + return {type: t, name: name}; + }); + } + + function onRemove(typename) { + return function() { + var on = this.__on; + if (!on) return; + for (var j = 0, i = -1, m = on.length, o; j < m; ++j) { + if (o = on[j], (!typename.type || o.type === typename.type) && o.name === typename.name) { + this.removeEventListener(o.type, o.listener, o.capture); + } else { + on[++i] = o; + } + } + if (++i) on.length = i; + else delete this.__on; + }; + } + + function onAdd(typename, value, capture) { + var wrap = filterEvents.hasOwnProperty(typename.type) ? filterContextListener : contextListener; + return function(d, i, group) { + var on = this.__on, o, listener = wrap(value, i, group); + if (on) for (var j = 0, m = on.length; j < m; ++j) { + if ((o = on[j]).type === typename.type && o.name === typename.name) { + this.removeEventListener(o.type, o.listener, o.capture); + this.addEventListener(o.type, o.listener = listener, o.capture = capture); + o.value = value; + return; + } + } + this.addEventListener(typename.type, listener, capture); + o = {type: typename.type, name: typename.name, value: value, listener: listener, capture: capture}; + if (!on) this.__on = [o]; + else on.push(o); + }; + } + + function selection_on(typename, value, capture) { + var typenames = parseTypenames$1(typename + ""), i, n = typenames.length, t; + + if (arguments.length < 2) { + var on = this.node().__on; + if (on) for (var j = 0, m = on.length, o; j < m; ++j) { + for (i = 0, o = on[j]; i < n; ++i) { + if ((t = typenames[i]).type === o.type && t.name === o.name) { + return o.value; + } + } + } + return; + } + + on = value ? onAdd : onRemove; + if (capture == null) capture = false; + for (i = 0; i < n; ++i) this.each(on(typenames[i], value, capture)); + return this; + } + + function customEvent(event1, listener, that, args) { + var event0 = exports.event; + event1.sourceEvent = exports.event; + exports.event = event1; + try { + return listener.apply(that, args); + } finally { + exports.event = event0; + } + } + + function sourceEvent() { + var current = exports.event, source; + while (source = current.sourceEvent) current = source; + return current; + } + + function point$5(node, event) { + var svg = node.ownerSVGElement || node; + + if (svg.createSVGPoint) { + var point = svg.createSVGPoint(); + point.x = event.clientX, point.y = event.clientY; + point = point.matrixTransform(node.getScreenCTM().inverse()); + return [point.x, point.y]; + } + + var rect = node.getBoundingClientRect(); + return [event.clientX - rect.left - node.clientLeft, event.clientY - rect.top - node.clientTop]; + } + + function mouse(node) { + var event = sourceEvent(); + if (event.changedTouches) event = event.changedTouches[0]; + return point$5(node, event); + } + + function none$2() {} + + function selector(selector) { + return selector == null ? none$2 : function() { + return this.querySelector(selector); + }; + } + + function selection_select(select) { + if (typeof select !== "function") select = selector(select); + + for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) { + for (var group = groups[j], n = group.length, subgroup = subgroups[j] = new Array(n), node, subnode, i = 0; i < n; ++i) { + if ((node = group[i]) && (subnode = select.call(node, node.__data__, i, group))) { + if ("__data__" in node) subnode.__data__ = node.__data__; + subgroup[i] = subnode; + } + } + } + + return new Selection(subgroups, this._parents); + } + + function empty() { + return []; + } + + function selectorAll(selector) { + return selector == null ? empty : function() { + return this.querySelectorAll(selector); + }; + } + + function selection_selectAll(select) { + if (typeof select !== "function") select = selectorAll(select); + + for (var groups = this._groups, m = groups.length, subgroups = [], parents = [], j = 0; j < m; ++j) { + for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) { + if (node = group[i]) { + subgroups.push(select.call(node, node.__data__, i, group)); + parents.push(node); + } + } + } + + return new Selection(subgroups, parents); + } + + function selection_filter(match) { + if (typeof match !== "function") match = matcher$1(match); + + for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) { + for (var group = groups[j], n = group.length, subgroup = subgroups[j] = [], node, i = 0; i < n; ++i) { + if ((node = group[i]) && match.call(node, node.__data__, i, group)) { + subgroup.push(node); + } + } + } + + return new Selection(subgroups, this._parents); + } + + function sparse(update) { + return new Array(update.length); + } + + function selection_enter() { + return new Selection(this._enter || this._groups.map(sparse), this._parents); + } + + function EnterNode(parent, datum) { + this.ownerDocument = parent.ownerDocument; + this.namespaceURI = parent.namespaceURI; + this._next = null; + this._parent = parent; + this.__data__ = datum; + } + + EnterNode.prototype = { + constructor: EnterNode, + appendChild: function(child) { return this._parent.insertBefore(child, this._next); }, + insertBefore: function(child, next) { return this._parent.insertBefore(child, next); }, + querySelector: function(selector) { return this._parent.querySelector(selector); }, + querySelectorAll: function(selector) { return this._parent.querySelectorAll(selector); } + }; + + function constant$4(x) { + return function() { + return x; + }; + } + + var keyPrefix = "$"; // Protect against keys like “__proto__”. + + function bindIndex(parent, group, enter, update, exit, data) { + var i = 0, + node, + groupLength = group.length, + dataLength = data.length; + + // Put any non-null nodes that fit into update. + // Put any null nodes into enter. + // Put any remaining data into enter. + for (; i < dataLength; ++i) { + if (node = group[i]) { + node.__data__ = data[i]; + update[i] = node; + } else { + enter[i] = new EnterNode(parent, data[i]); + } + } + + // Put any non-null nodes that don’t fit into exit. + for (; i < groupLength; ++i) { + if (node = group[i]) { + exit[i] = node; + } + } + } + + function bindKey(parent, group, enter, update, exit, data, key) { + var i, + node, + nodeByKeyValue = {}, + groupLength = group.length, + dataLength = data.length, + keyValues = new Array(groupLength), + keyValue; + + // Compute the key for each node. + // If multiple nodes have the same key, the duplicates are added to exit. + for (i = 0; i < groupLength; ++i) { + if (node = group[i]) { + keyValues[i] = keyValue = keyPrefix + key.call(node, node.__data__, i, group); + if (keyValue in nodeByKeyValue) { + exit[i] = node; + } else { + nodeByKeyValue[keyValue] = node; + } + } + } + + // Compute the key for each datum. + // If there a node associated with this key, join and add it to update. + // If there is not (or the key is a duplicate), add it to enter. + for (i = 0; i < dataLength; ++i) { + keyValue = keyPrefix + key.call(parent, data[i], i, data); + if (node = nodeByKeyValue[keyValue]) { + update[i] = node; + node.__data__ = data[i]; + nodeByKeyValue[keyValue] = null; + } else { + enter[i] = new EnterNode(parent, data[i]); + } + } + + // Add any remaining nodes that were not bound to data to exit. + for (i = 0; i < groupLength; ++i) { + if ((node = group[i]) && (nodeByKeyValue[keyValues[i]] === node)) { + exit[i] = node; + } + } + } + + function selection_data(value, key) { + if (!value) { + data = new Array(this.size()), j = -1; + this.each(function(d) { data[++j] = d; }); + return data; + } + + var bind = key ? bindKey : bindIndex, + parents = this._parents, + groups = this._groups; + + if (typeof value !== "function") value = constant$4(value); + + for (var m = groups.length, update = new Array(m), enter = new Array(m), exit = new Array(m), j = 0; j < m; ++j) { + var parent = parents[j], + group = groups[j], + groupLength = group.length, + data = value.call(parent, parent && parent.__data__, j, parents), + dataLength = data.length, + enterGroup = enter[j] = new Array(dataLength), + updateGroup = update[j] = new Array(dataLength), + exitGroup = exit[j] = new Array(groupLength); + + bind(parent, group, enterGroup, updateGroup, exitGroup, data, key); + + // Now connect the enter nodes to their following update node, such that + // appendChild can insert the materialized enter node before this node, + // rather than at the end of the parent node. + for (var i0 = 0, i1 = 0, previous, next; i0 < dataLength; ++i0) { + if (previous = enterGroup[i0]) { + if (i0 >= i1) i1 = i0 + 1; + while (!(next = updateGroup[i1]) && ++i1 < dataLength); + previous._next = next || null; + } + } + } + + update = new Selection(update, parents); + update._enter = enter; + update._exit = exit; + return update; + } + + function selection_exit() { + return new Selection(this._exit || this._groups.map(sparse), this._parents); + } + + function selection_merge(selection) { + + for (var groups0 = this._groups, groups1 = selection._groups, m0 = groups0.length, m1 = groups1.length, m = Math.min(m0, m1), merges = new Array(m0), j = 0; j < m; ++j) { + for (var group0 = groups0[j], group1 = groups1[j], n = group0.length, merge = merges[j] = new Array(n), node, i = 0; i < n; ++i) { + if (node = group0[i] || group1[i]) { + merge[i] = node; + } + } + } + + for (; j < m0; ++j) { + merges[j] = groups0[j]; + } + + return new Selection(merges, this._parents); + } + + function selection_order() { + + for (var groups = this._groups, j = -1, m = groups.length; ++j < m;) { + for (var group = groups[j], i = group.length - 1, next = group[i], node; --i >= 0;) { + if (node = group[i]) { + if (next && next !== node.nextSibling) next.parentNode.insertBefore(node, next); + next = node; + } + } + } + + return this; + } + + function selection_sort(compare) { + if (!compare) compare = ascending$2; + + function compareNode(a, b) { + return a && b ? compare(a.__data__, b.__data__) : !a - !b; + } + + for (var groups = this._groups, m = groups.length, sortgroups = new Array(m), j = 0; j < m; ++j) { + for (var group = groups[j], n = group.length, sortgroup = sortgroups[j] = new Array(n), node, i = 0; i < n; ++i) { + if (node = group[i]) { + sortgroup[i] = node; + } + } + sortgroup.sort(compareNode); + } + + return new Selection(sortgroups, this._parents).order(); + } + + function ascending$2(a, b) { + return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN; + } + + function selection_call() { + var callback = arguments[0]; + arguments[0] = this; + callback.apply(null, arguments); + return this; + } + + function selection_nodes() { + var nodes = new Array(this.size()), i = -1; + this.each(function() { nodes[++i] = this; }); + return nodes; + } + + function selection_node() { + + for (var groups = this._groups, j = 0, m = groups.length; j < m; ++j) { + for (var group = groups[j], i = 0, n = group.length; i < n; ++i) { + var node = group[i]; + if (node) return node; + } + } + + return null; + } + + function selection_size() { + var size = 0; + this.each(function() { ++size; }); + return size; + } + + function selection_empty() { + return !this.node(); + } + + function selection_each(callback) { + + for (var groups = this._groups, j = 0, m = groups.length; j < m; ++j) { + for (var group = groups[j], i = 0, n = group.length, node; i < n; ++i) { + if (node = group[i]) callback.call(node, node.__data__, i, group); + } + } + + return this; + } + + function attrRemove(name) { + return function() { + this.removeAttribute(name); + }; + } + + function attrRemoveNS(fullname) { + return function() { + this.removeAttributeNS(fullname.space, fullname.local); + }; + } + + function attrConstant(name, value) { + return function() { + this.setAttribute(name, value); + }; + } + + function attrConstantNS(fullname, value) { + return function() { + this.setAttributeNS(fullname.space, fullname.local, value); + }; + } + + function attrFunction(name, value) { + return function() { + var v = value.apply(this, arguments); + if (v == null) this.removeAttribute(name); + else this.setAttribute(name, v); + }; + } + + function attrFunctionNS(fullname, value) { + return function() { + var v = value.apply(this, arguments); + if (v == null) this.removeAttributeNS(fullname.space, fullname.local); + else this.setAttributeNS(fullname.space, fullname.local, v); + }; + } + + function selection_attr(name, value) { + var fullname = namespace(name); + + if (arguments.length < 2) { + var node = this.node(); + return fullname.local + ? node.getAttributeNS(fullname.space, fullname.local) + : node.getAttribute(fullname); + } + + return this.each((value == null + ? (fullname.local ? attrRemoveNS : attrRemove) : (typeof value === "function" + ? (fullname.local ? attrFunctionNS : attrFunction) + : (fullname.local ? attrConstantNS : attrConstant)))(fullname, value)); + } + + function window(node) { + return (node.ownerDocument && node.ownerDocument.defaultView) // node is a Node + || (node.document && node) // node is a Window + || node.defaultView; // node is a Document + } + + function styleRemove(name) { + return function() { + this.style.removeProperty(name); + }; + } + + function styleConstant(name, value, priority) { + return function() { + this.style.setProperty(name, value, priority); + }; + } + + function styleFunction(name, value, priority) { + return function() { + var v = value.apply(this, arguments); + if (v == null) this.style.removeProperty(name); + else this.style.setProperty(name, v, priority); + }; + } + + function selection_style(name, value, priority) { + var node; + return arguments.length > 1 + ? this.each((value == null + ? styleRemove : typeof value === "function" + ? styleFunction + : styleConstant)(name, value, priority == null ? "" : priority)) + : window(node = this.node()) + .getComputedStyle(node, null) + .getPropertyValue(name); + } + + function propertyRemove(name) { + return function() { + delete this[name]; + }; + } + + function propertyConstant(name, value) { + return function() { + this[name] = value; + }; + } + + function propertyFunction(name, value) { + return function() { + var v = value.apply(this, arguments); + if (v == null) delete this[name]; + else this[name] = v; + }; + } + + function selection_property(name, value) { + return arguments.length > 1 + ? this.each((value == null + ? propertyRemove : typeof value === "function" + ? propertyFunction + : propertyConstant)(name, value)) + : this.node()[name]; + } + + function classArray(string) { + return string.trim().split(/^|\s+/); + } + + function classList(node) { + return node.classList || new ClassList(node); + } + + function ClassList(node) { + this._node = node; + this._names = classArray(node.getAttribute("class") || ""); + } + + ClassList.prototype = { + add: function(name) { + var i = this._names.indexOf(name); + if (i < 0) { + this._names.push(name); + this._node.setAttribute("class", this._names.join(" ")); + } + }, + remove: function(name) { + var i = this._names.indexOf(name); + if (i >= 0) { + this._names.splice(i, 1); + this._node.setAttribute("class", this._names.join(" ")); + } + }, + contains: function(name) { + return this._names.indexOf(name) >= 0; + } + }; + + function classedAdd(node, names) { + var list = classList(node), i = -1, n = names.length; + while (++i < n) list.add(names[i]); + } + + function classedRemove(node, names) { + var list = classList(node), i = -1, n = names.length; + while (++i < n) list.remove(names[i]); + } + + function classedTrue(names) { + return function() { + classedAdd(this, names); + }; + } + + function classedFalse(names) { + return function() { + classedRemove(this, names); + }; + } + + function classedFunction(names, value) { + return function() { + (value.apply(this, arguments) ? classedAdd : classedRemove)(this, names); + }; + } + + function selection_classed(name, value) { + var names = classArray(name + ""); + + if (arguments.length < 2) { + var list = classList(this.node()), i = -1, n = names.length; + while (++i < n) if (!list.contains(names[i])) return false; + return true; + } + + return this.each((typeof value === "function" + ? classedFunction : value + ? classedTrue + : classedFalse)(names, value)); + } + + function textRemove() { + this.textContent = ""; + } + + function textConstant(value) { + return function() { + this.textContent = value; + }; + } + + function textFunction(value) { + return function() { + var v = value.apply(this, arguments); + this.textContent = v == null ? "" : v; + }; + } + + function selection_text(value) { + return arguments.length + ? this.each(value == null + ? textRemove : (typeof value === "function" + ? textFunction + : textConstant)(value)) + : this.node().textContent; + } + + function htmlRemove() { + this.innerHTML = ""; + } + + function htmlConstant(value) { + return function() { + this.innerHTML = value; + }; + } + + function htmlFunction(value) { + return function() { + var v = value.apply(this, arguments); + this.innerHTML = v == null ? "" : v; + }; + } + + function selection_html(value) { + return arguments.length + ? this.each(value == null + ? htmlRemove : (typeof value === "function" + ? htmlFunction + : htmlConstant)(value)) + : this.node().innerHTML; + } + + function raise$1() { + if (this.nextSibling) this.parentNode.appendChild(this); + } + + function selection_raise() { + return this.each(raise$1); + } + + function lower() { + if (this.previousSibling) this.parentNode.insertBefore(this, this.parentNode.firstChild); + } + + function selection_lower() { + return this.each(lower); + } + + function selection_append(name) { + var create = typeof name === "function" ? name : creator(name); + return this.select(function() { + return this.appendChild(create.apply(this, arguments)); + }); + } + + function constantNull() { + return null; + } + + function selection_insert(name, before) { + var create = typeof name === "function" ? name : creator(name), + select = before == null ? constantNull : typeof before === "function" ? before : selector(before); + return this.select(function() { + return this.insertBefore(create.apply(this, arguments), select.apply(this, arguments) || null); + }); + } + + function remove() { + var parent = this.parentNode; + if (parent) parent.removeChild(this); + } + + function selection_remove() { + return this.each(remove); + } + + function selection_datum(value) { + return arguments.length + ? this.property("__data__", value) + : this.node().__data__; + } + + function dispatchEvent(node, type, params) { + var window$$ = window(node), + event = window$$.CustomEvent; + + if (event) { + event = new event(type, params); + } else { + event = window$$.document.createEvent("Event"); + if (params) event.initEvent(type, params.bubbles, params.cancelable), event.detail = params.detail; + else event.initEvent(type, false, false); + } + + node.dispatchEvent(event); + } + + function dispatchConstant(type, params) { + return function() { + return dispatchEvent(this, type, params); + }; + } + + function dispatchFunction(type, params) { + return function() { + return dispatchEvent(this, type, params.apply(this, arguments)); + }; + } + + function selection_dispatch(type, params) { + return this.each((typeof params === "function" + ? dispatchFunction + : dispatchConstant)(type, params)); + } + + var root = [null]; + + function Selection(groups, parents) { + this._groups = groups; + this._parents = parents; + } + + function selection() { + return new Selection([[document.documentElement]], root); + } + + Selection.prototype = selection.prototype = { + constructor: Selection, + select: selection_select, + selectAll: selection_selectAll, + filter: selection_filter, + data: selection_data, + enter: selection_enter, + exit: selection_exit, + merge: selection_merge, + order: selection_order, + sort: selection_sort, + call: selection_call, + nodes: selection_nodes, + node: selection_node, + size: selection_size, + empty: selection_empty, + each: selection_each, + attr: selection_attr, + style: selection_style, + property: selection_property, + classed: selection_classed, + text: selection_text, + html: selection_html, + raise: selection_raise, + lower: selection_lower, + append: selection_append, + insert: selection_insert, + remove: selection_remove, + datum: selection_datum, + on: selection_on, + dispatch: selection_dispatch + }; + + function select(selector) { + return typeof selector === "string" + ? new Selection([[document.querySelector(selector)]], [document.documentElement]) + : new Selection([[selector]], root); + } + + function selectAll(selector) { + return typeof selector === "string" + ? new Selection([document.querySelectorAll(selector)], [document.documentElement]) + : new Selection([selector == null ? [] : selector], root); + } + + function touch(node, touches, identifier) { + if (arguments.length < 3) identifier = touches, touches = sourceEvent().changedTouches; + + for (var i = 0, n = touches ? touches.length : 0, touch; i < n; ++i) { + if ((touch = touches[i]).identifier === identifier) { + return point$5(node, touch); + } + } + + return null; + } + + function touches(node, touches) { + if (touches == null) touches = sourceEvent().touches; + + for (var i = 0, n = touches ? touches.length : 0, points = new Array(n); i < n; ++i) { + points[i] = point$5(node, touches[i]); + } + + return points; + } + + var emptyOn = dispatch("start", "end", "interrupt"); + var emptyTween = []; + + var CREATED = 0; + var SCHEDULED = 1; + var STARTING = 2; + var STARTED = 3; + var ENDING = 4; + var ENDED = 5; + + function schedule(node, name, id, index, group, timing) { + var schedules = node.__transition; + if (!schedules) node.__transition = {}; + else if (id in schedules) return; + create(node, id, { + name: name, + index: index, // For context during callback. + group: group, // For context during callback. + on: emptyOn, + tween: emptyTween, + time: timing.time, + delay: timing.delay, + duration: timing.duration, + ease: timing.ease, + timer: null, + state: CREATED + }); + } + + function init(node, id) { + var schedule = node.__transition; + if (!schedule || !(schedule = schedule[id]) || schedule.state > CREATED) throw new Error("too late"); + return schedule; + } + + function set$2(node, id) { + var schedule = node.__transition; + if (!schedule || !(schedule = schedule[id]) || schedule.state > STARTING) throw new Error("too late"); + return schedule; + } + + function get$1(node, id) { + var schedule = node.__transition; + if (!schedule || !(schedule = schedule[id])) throw new Error("too late"); + return schedule; + } + + function create(node, id, self) { + var schedules = node.__transition, + tween; + + // Initialize the self timer when the transition is created. + // Note the actual delay is not known until the first callback! + schedules[id] = self; + self.timer = timer(schedule, 0, self.time); + + // If the delay is greater than this first sleep, sleep some more; + // otherwise, start immediately. + function schedule(elapsed) { + self.state = SCHEDULED; + if (self.delay <= elapsed) start(elapsed - self.delay); + else self.timer.restart(start, self.delay, self.time); + } + + function start(elapsed) { + var i, j, n, o; + + for (i in schedules) { + o = schedules[i]; + if (o.name !== self.name) continue; + + // Interrupt the active transition, if any. + // Dispatch the interrupt event. + if (o.state === STARTED) { + o.state = ENDED; + o.timer.stop(); + o.on.call("interrupt", node, node.__data__, o.index, o.group); + delete schedules[i]; + } + + // Cancel any pre-empted transitions. No interrupt event is dispatched + // because the cancelled transitions never started. Note that this also + // removes this transition from the pending list! + else if (+i < id) { + o.state = ENDED; + o.timer.stop(); + delete schedules[i]; + } + } + + // Defer the first tick to end of the current frame; see mbostock/d3#1576. + // Note the transition may be canceled after start and before the first tick! + // Note this must be scheduled before the start event; see d3/d3-transition#16! + // Assuming this is successful, subsequent callbacks go straight to tick. + timeout$1(function() { + if (self.state === STARTED) { + self.timer.restart(tick, self.delay, self.time); + tick(elapsed); + } + }); + + // Dispatch the start event. + // Note this must be done before the tween are initialized. + self.state = STARTING; + self.on.call("start", node, node.__data__, self.index, self.group); + if (self.state !== STARTING) return; // interrupted + self.state = STARTED; + + // Initialize the tween, deleting null tween. + tween = new Array(n = self.tween.length); + for (i = 0, j = -1; i < n; ++i) { + if (o = self.tween[i].value.call(node, node.__data__, self.index, self.group)) { + tween[++j] = o; + } + } + tween.length = j + 1; + } + + function tick(elapsed) { + var t = elapsed < self.duration ? self.ease.call(null, elapsed / self.duration) : (self.state = ENDING, 1), + i = -1, + n = tween.length; + + while (++i < n) { + tween[i].call(null, t); + } + + // Dispatch the end event. + if (self.state === ENDING) { + self.state = ENDED; + self.timer.stop(); + self.on.call("end", node, node.__data__, self.index, self.group); + for (i in schedules) if (+i !== id) return void delete schedules[id]; + delete node.__transition; + } + } + } + + function interrupt(node, name) { + var schedules = node.__transition, + schedule, + active, + empty = true, + i; + + if (!schedules) return; + + name = name == null ? null : name + ""; + + for (i in schedules) { + if ((schedule = schedules[i]).name !== name) { empty = false; continue; } + active = schedule.state === STARTED; + schedule.state = ENDED; + schedule.timer.stop(); + if (active) schedule.on.call("interrupt", node, node.__data__, schedule.index, schedule.group); + delete schedules[i]; + } + + if (empty) delete node.__transition; + } + + function selection_interrupt(name) { + return this.each(function() { + interrupt(this, name); + }); + } + + function tweenRemove(id, name) { + var tween0, tween1; + return function() { + var schedule = set$2(this, id), + tween = schedule.tween; + + // If this node shared tween with the previous node, + // just assign the updated shared tween and we’re done! + // Otherwise, copy-on-write. + if (tween !== tween0) { + tween1 = tween0 = tween; + for (var i = 0, n = tween1.length; i < n; ++i) { + if (tween1[i].name === name) { + tween1 = tween1.slice(); + tween1.splice(i, 1); + break; + } + } + } + + schedule.tween = tween1; + }; + } + + function tweenFunction(id, name, value) { + var tween0, tween1; + if (typeof value !== "function") throw new Error; + return function() { + var schedule = set$2(this, id), + tween = schedule.tween; + + // If this node shared tween with the previous node, + // just assign the updated shared tween and we’re done! + // Otherwise, copy-on-write. + if (tween !== tween0) { + tween1 = (tween0 = tween).slice(); + for (var t = {name: name, value: value}, i = 0, n = tween1.length; i < n; ++i) { + if (tween1[i].name === name) { + tween1[i] = t; + break; + } + } + if (i === n) tween1.push(t); + } + + schedule.tween = tween1; + }; + } + + function transition_tween(name, value) { + var id = this._id; + + name += ""; + + if (arguments.length < 2) { + var tween = get$1(this.node(), id).tween; + for (var i = 0, n = tween.length, t; i < n; ++i) { + if ((t = tween[i]).name === name) { + return t.value; + } + } + return null; + } + + return this.each((value == null ? tweenRemove : tweenFunction)(id, name, value)); + } + + function tweenValue(transition, name, value) { + var id = transition._id; + + transition.each(function() { + var schedule = set$2(this, id); + (schedule.value || (schedule.value = {}))[name] = value.apply(this, arguments); + }); + + return function(node) { + return get$1(node, id).value[name]; + }; + } + + function interpolate$1(a, b) { + var c; + return (typeof b === "number" ? interpolateNumber + : b instanceof color ? interpolateRgb + : (c = color(b)) ? (b = c, interpolateRgb) + : interpolateString)(a, b); + } + + function attrRemove$1(name) { + return function() { + this.removeAttribute(name); + }; + } + + function attrRemoveNS$1(fullname) { + return function() { + this.removeAttributeNS(fullname.space, fullname.local); + }; + } + + function attrConstant$1(name, interpolate, value1) { + var value00, + interpolate0; + return function() { + var value0 = this.getAttribute(name); + return value0 === value1 ? null + : value0 === value00 ? interpolate0 + : interpolate0 = interpolate(value00 = value0, value1); + }; + } + + function attrConstantNS$1(fullname, interpolate, value1) { + var value00, + interpolate0; + return function() { + var value0 = this.getAttributeNS(fullname.space, fullname.local); + return value0 === value1 ? null + : value0 === value00 ? interpolate0 + : interpolate0 = interpolate(value00 = value0, value1); + }; + } + + function attrFunction$1(name, interpolate, value) { + var value00, + value10, + interpolate0; + return function() { + var value0, value1 = value(this); + if (value1 == null) return void this.removeAttribute(name); + value0 = this.getAttribute(name); + return value0 === value1 ? null + : value0 === value00 && value1 === value10 ? interpolate0 + : interpolate0 = interpolate(value00 = value0, value10 = value1); + }; + } + + function attrFunctionNS$1(fullname, interpolate, value) { + var value00, + value10, + interpolate0; + return function() { + var value0, value1 = value(this); + if (value1 == null) return void this.removeAttributeNS(fullname.space, fullname.local); + value0 = this.getAttributeNS(fullname.space, fullname.local); + return value0 === value1 ? null + : value0 === value00 && value1 === value10 ? interpolate0 + : interpolate0 = interpolate(value00 = value0, value10 = value1); + }; + } + + function transition_attr(name, value) { + var fullname = namespace(name), i = fullname === "transform" ? interpolateTransform$2 : interpolate$1; + return this.attrTween(name, typeof value === "function" + ? (fullname.local ? attrFunctionNS$1 : attrFunction$1)(fullname, i, tweenValue(this, "attr." + name, value)) + : value == null ? (fullname.local ? attrRemoveNS$1 : attrRemove$1)(fullname) + : (fullname.local ? attrConstantNS$1 : attrConstant$1)(fullname, i, value)); + } + + function attrTweenNS(fullname, value) { + function tween() { + var node = this, i = value.apply(node, arguments); + return i && function(t) { + node.setAttributeNS(fullname.space, fullname.local, i(t)); + }; + } + tween._value = value; + return tween; + } + + function attrTween(name, value) { + function tween() { + var node = this, i = value.apply(node, arguments); + return i && function(t) { + node.setAttribute(name, i(t)); + }; + } + tween._value = value; + return tween; + } + + function transition_attrTween(name, value) { + var key = "attr." + name; + if (arguments.length < 2) return (key = this.tween(key)) && key._value; + if (value == null) return this.tween(key, null); + if (typeof value !== "function") throw new Error; + var fullname = namespace(name); + return this.tween(key, (fullname.local ? attrTweenNS : attrTween)(fullname, value)); + } + + function delayFunction(id, value) { + return function() { + init(this, id).delay = +value.apply(this, arguments); + }; + } + + function delayConstant(id, value) { + return value = +value, function() { + init(this, id).delay = value; + }; + } + + function transition_delay(value) { + var id = this._id; + + return arguments.length + ? this.each((typeof value === "function" + ? delayFunction + : delayConstant)(id, value)) + : get$1(this.node(), id).delay; + } + + function durationFunction(id, value) { + return function() { + set$2(this, id).duration = +value.apply(this, arguments); + }; + } + + function durationConstant(id, value) { + return value = +value, function() { + set$2(this, id).duration = value; + }; + } + + function transition_duration(value) { + var id = this._id; + + return arguments.length + ? this.each((typeof value === "function" + ? durationFunction + : durationConstant)(id, value)) + : get$1(this.node(), id).duration; + } + + function easeConstant(id, value) { + if (typeof value !== "function") throw new Error; + return function() { + set$2(this, id).ease = value; + }; + } + + function transition_ease(value) { + var id = this._id; + + return arguments.length + ? this.each(easeConstant(id, value)) + : get$1(this.node(), id).ease; + } + + function transition_filter(match) { + if (typeof match !== "function") match = matcher$1(match); + + for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) { + for (var group = groups[j], n = group.length, subgroup = subgroups[j] = [], node, i = 0; i < n; ++i) { + if ((node = group[i]) && match.call(node, node.__data__, i, group)) { + subgroup.push(node); + } + } + } + + return new Transition(subgroups, this._parents, this._name, this._id); + } + + function transition_merge(transition) { + if (transition._id !== this._id) throw new Error; + + for (var groups0 = this._groups, groups1 = transition._groups, m0 = groups0.length, m1 = groups1.length, m = Math.min(m0, m1), merges = new Array(m0), j = 0; j < m; ++j) { + for (var group0 = groups0[j], group1 = groups1[j], n = group0.length, merge = merges[j] = new Array(n), node, i = 0; i < n; ++i) { + if (node = group0[i] || group1[i]) { + merge[i] = node; + } + } + } + + for (; j < m0; ++j) { + merges[j] = groups0[j]; + } + + return new Transition(merges, this._parents, this._name, this._id); + } + + function start$1(name) { + return (name + "").trim().split(/^|\s+/).every(function(t) { + var i = t.indexOf("."); + if (i >= 0) t = t.slice(0, i); + return !t || t === "start"; + }); + } + + function onFunction(id, name, listener) { + var on0, on1, sit = start$1(name) ? init : set$2; + return function() { + var schedule = sit(this, id), + on = schedule.on; + + // If this node shared a dispatch with the previous node, + // just assign the updated shared dispatch and we’re done! + // Otherwise, copy-on-write. + if (on !== on0) (on1 = (on0 = on).copy()).on(name, listener); + + schedule.on = on1; + }; + } + + function transition_on(name, listener) { + var id = this._id; + + return arguments.length < 2 + ? get$1(this.node(), id).on.on(name) + : this.each(onFunction(id, name, listener)); + } + + function removeFunction(id) { + return function() { + var parent = this.parentNode; + for (var i in this.__transition) if (+i !== id) return; + if (parent) parent.removeChild(this); + }; + } + + function transition_remove() { + return this.on("end.remove", removeFunction(this._id)); + } + + function transition_select(select) { + var name = this._name, + id = this._id; + + if (typeof select !== "function") select = selector(select); + + for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) { + for (var group = groups[j], n = group.length, subgroup = subgroups[j] = new Array(n), node, subnode, i = 0; i < n; ++i) { + if ((node = group[i]) && (subnode = select.call(node, node.__data__, i, group))) { + if ("__data__" in node) subnode.__data__ = node.__data__; + subgroup[i] = subnode; + schedule(subgroup[i], name, id, i, subgroup, get$1(node, id)); + } + } + } + + return new Transition(subgroups, this._parents, name, id); + } + + function transition_selectAll(select) { + var name = this._name, + id = this._id; + + if (typeof select !== "function") select = selectorAll(select); + + for (var groups = this._groups, m = groups.length, subgroups = [], parents = [], j = 0; j < m; ++j) { + for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) { + if (node = group[i]) { + for (var children = select.call(node, node.__data__, i, group), child, inherit = get$1(node, id), k = 0, l = children.length; k < l; ++k) { + if (child = children[k]) { + schedule(child, name, id, k, children, inherit); + } + } + subgroups.push(children); + parents.push(node); + } + } + } + + return new Transition(subgroups, parents, name, id); + } + + var Selection$1 = selection.prototype.constructor; + + function transition_selection() { + return new Selection$1(this._groups, this._parents); + } + + function styleRemove$1(name, interpolate) { + var value00, + value10, + interpolate0; + return function() { + var style = window(this).getComputedStyle(this, null), + value0 = style.getPropertyValue(name), + value1 = (this.style.removeProperty(name), style.getPropertyValue(name)); + return value0 === value1 ? null + : value0 === value00 && value1 === value10 ? interpolate0 + : interpolate0 = interpolate(value00 = value0, value10 = value1); + }; + } + + function styleRemoveEnd(name) { + return function() { + this.style.removeProperty(name); + }; + } + + function styleConstant$1(name, interpolate, value1) { + var value00, + interpolate0; + return function() { + var value0 = window(this).getComputedStyle(this, null).getPropertyValue(name); + return value0 === value1 ? null + : value0 === value00 ? interpolate0 + : interpolate0 = interpolate(value00 = value0, value1); + }; + } + + function styleFunction$1(name, interpolate, value) { + var value00, + value10, + interpolate0; + return function() { + var style = window(this).getComputedStyle(this, null), + value0 = style.getPropertyValue(name), + value1 = value(this); + if (value1 == null) value1 = (this.style.removeProperty(name), style.getPropertyValue(name)); + return value0 === value1 ? null + : value0 === value00 && value1 === value10 ? interpolate0 + : interpolate0 = interpolate(value00 = value0, value10 = value1); + }; + } + + function transition_style(name, value, priority) { + var i = (name += "") === "transform" ? interpolateTransform$1 : interpolate$1; + return value == null ? this + .styleTween(name, styleRemove$1(name, i)) + .on("end.style." + name, styleRemoveEnd(name)) + : this.styleTween(name, typeof value === "function" + ? styleFunction$1(name, i, tweenValue(this, "style." + name, value)) + : styleConstant$1(name, i, value), priority); + } + + function styleTween(name, value, priority) { + function tween() { + var node = this, i = value.apply(node, arguments); + return i && function(t) { + node.style.setProperty(name, i(t), priority); + }; + } + tween._value = value; + return tween; + } + + function transition_styleTween(name, value, priority) { + var key = "style." + (name += ""); + if (arguments.length < 2) return (key = this.tween(key)) && key._value; + if (value == null) return this.tween(key, null); + if (typeof value !== "function") throw new Error; + return this.tween(key, styleTween(name, value, priority == null ? "" : priority)); + } + + function textConstant$1(value) { + return function() { + this.textContent = value; + }; + } + + function textFunction$1(value) { + return function() { + var value1 = value(this); + this.textContent = value1 == null ? "" : value1; + }; + } + + function transition_text(value) { + return this.tween("text", typeof value === "function" + ? textFunction$1(tweenValue(this, "text", value)) + : textConstant$1(value == null ? "" : value + "")); + } + + function transition_transition() { + var name = this._name, + id0 = this._id, + id1 = newId(); + + for (var groups = this._groups, m = groups.length, j = 0; j < m; ++j) { + for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) { + if (node = group[i]) { + var inherit = get$1(node, id0); + schedule(node, name, id1, i, group, { + time: inherit.time + inherit.delay + inherit.duration, + delay: 0, + duration: inherit.duration, + ease: inherit.ease + }); + } + } + } + + return new Transition(groups, this._parents, name, id1); + } + + var id = 0; + + function Transition(groups, parents, name, id) { + this._groups = groups; + this._parents = parents; + this._name = name; + this._id = id; + } + + function transition(name) { + return selection().transition(name); + } + + function newId() { + return ++id; + } + + var selection_prototype = selection.prototype; + + Transition.prototype = transition.prototype = { + constructor: Transition, + select: transition_select, + selectAll: transition_selectAll, + filter: transition_filter, + merge: transition_merge, + selection: transition_selection, + transition: transition_transition, + call: selection_prototype.call, + nodes: selection_prototype.nodes, + node: selection_prototype.node, + size: selection_prototype.size, + empty: selection_prototype.empty, + each: selection_prototype.each, + on: transition_on, + attr: transition_attr, + attrTween: transition_attrTween, + style: transition_style, + styleTween: transition_styleTween, + text: transition_text, + remove: transition_remove, + tween: transition_tween, + delay: transition_delay, + duration: transition_duration, + ease: transition_ease + }; + + var defaultTiming = { + time: null, // Set on use. + delay: 0, + duration: 250, + ease: easeCubicInOut + }; + + function inherit(node, id) { + var timing; + while (!(timing = node.__transition) || !(timing = timing[id])) { + if (!(node = node.parentNode)) { + return defaultTiming.time = now(), defaultTiming; + } + } + return timing; + } + + function selection_transition(name) { + var id, + timing; + + if (name instanceof Transition) { + id = name._id, name = name._name; + } else { + id = newId(), (timing = defaultTiming).time = now(), name = name == null ? null : name + ""; + } + + for (var groups = this._groups, m = groups.length, j = 0; j < m; ++j) { + for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) { + if (node = group[i]) { + schedule(node, name, id, i, group, timing || inherit(node, id)); + } + } + } + + return new Transition(groups, this._parents, name, id); + } + + selection.prototype.interrupt = selection_interrupt; + selection.prototype.transition = selection_transition; + + var root$1 = [null]; + + function active(node, name) { + var schedules = node.__transition, + schedule, + i; + + if (schedules) { + name = name == null ? null : name + ""; + for (i in schedules) { + if ((schedule = schedules[i]).state > SCHEDULED && schedule.name === name) { + return new Transition([[node]], root$1, name, +i); + } + } + } + + return null; + } + + var slice$4 = Array.prototype.slice; + + function identity$5(x) { + return x; + } + + var top = 1; + var right = 2; + var bottom = 3; + var left = 4; +var epsilon$2 = 1e-6; + function translateX(scale0, scale1, d) { + var x = scale0(d); + return "translate(" + (isFinite(x) ? x : scale1(d)) + ",0)"; + } + + function translateY(scale0, scale1, d) { + var y = scale0(d); + return "translate(0," + (isFinite(y) ? y : scale1(d)) + ")"; + } + + function center(scale) { + var width = scale.bandwidth() / 2; + return function(d) { + return scale(d) + width; + }; + } + + function entering() { + return !this.__axis; + } + + function axis(orient, scale) { + var tickArguments = [], + tickValues = null, + tickFormat = null, + tickSizeInner = 6, + tickSizeOuter = 6, + tickPadding = 3; + + function axis(context) { + var values = tickValues == null ? (scale.ticks ? scale.ticks.apply(scale, tickArguments) : scale.domain()) : tickValues, + format = tickFormat == null ? (scale.tickFormat ? scale.tickFormat.apply(scale, tickArguments) : identity$5) : tickFormat, + spacing = Math.max(tickSizeInner, 0) + tickPadding, + transform = orient === top || orient === bottom ? translateX : translateY, + range = scale.range(), + range0 = range[0] + 0.5, + range1 = range[range.length - 1] + 0.5, + position = (scale.bandwidth ? center : identity$5)(scale.copy()), + selection = context.selection ? context.selection() : context, + path = selection.selectAll(".domain").data([null]), + tick = selection.selectAll(".tick").data(values, scale).order(), + tickExit = tick.exit(), + tickEnter = tick.enter().append("g").attr("class", "tick"), + line = tick.select("line"), + text = tick.select("text"), + k = orient === top || orient === left ? -1 : 1, + x, y = orient === left || orient === right ? (x = "x", "y") : (x = "y", "x"); + + path = path.merge(path.enter().insert("path", ".tick") + .attr("class", "domain") + .attr("stroke", "#000")); + + tick = tick.merge(tickEnter); + + line = line.merge(tickEnter.append("line") + .attr("stroke", "#000") + .attr(x + "2", k * tickSizeInner) + .attr(y + "1", 0.5) + .attr(y + "2", 0.5)); + + text = text.merge(tickEnter.append("text") + .attr("fill", "#000") + .attr(x, k * spacing) + .attr(y, 0.5) + .attr("dy", orient === top ? "0em" : orient === bottom ? ".71em" : ".32em")); + + if (context !== selection) { + path = path.transition(context); + tick = tick.transition(context); + line = line.transition(context); + text = text.transition(context); + + tickExit = tickExit.transition(context) + .attr("opacity", epsilon$2) + .attr("transform", function(d) { return transform(position, this.parentNode.__axis || position, d); }); + + tickEnter + .attr("opacity", epsilon$2) + .attr("transform", function(d) { return transform(this.parentNode.__axis || position, position, d); }); + } + + tickExit.remove(); + + path + .attr("d", orient === left || orient == right + ? "M" + k * tickSizeOuter + "," + range0 + "H0.5V" + range1 + "H" + k * tickSizeOuter + : "M" + range0 + "," + k * tickSizeOuter + "V0.5H" + range1 + "V" + k * tickSizeOuter); + + tick + .attr("opacity", 1) + .attr("transform", function(d) { return transform(position, position, d); }); + + line + .attr(x + "2", k * tickSizeInner); + + text + .attr(x, k * spacing) + .text(format); + + selection.filter(entering) + .attr("fill", "none") + .attr("font-size", 10) + .attr("font-family", "sans-serif") + .attr("text-anchor", orient === right ? "start" : orient === left ? "end" : "middle"); + + selection + .each(function() { this.__axis = position; }); + } + + axis.scale = function(_) { + return arguments.length ? (scale = _, axis) : scale; + }; + + axis.ticks = function() { + return tickArguments = slice$4.call(arguments), axis; + }; + + axis.tickArguments = function(_) { + return arguments.length ? (tickArguments = _ == null ? [] : slice$4.call(_), axis) : tickArguments.slice(); + }; + + axis.tickValues = function(_) { + return arguments.length ? (tickValues = _ == null ? null : slice$4.call(_), axis) : tickValues && tickValues.slice(); + }; + + axis.tickFormat = function(_) { + return arguments.length ? (tickFormat = _, axis) : tickFormat; + }; + + axis.tickSize = function(_) { + return arguments.length ? (tickSizeInner = tickSizeOuter = +_, axis) : tickSizeInner; + }; + + axis.tickSizeInner = function(_) { + return arguments.length ? (tickSizeInner = +_, axis) : tickSizeInner; + }; + + axis.tickSizeOuter = function(_) { + return arguments.length ? (tickSizeOuter = +_, axis) : tickSizeOuter; + }; + + axis.tickPadding = function(_) { + return arguments.length ? (tickPadding = +_, axis) : tickPadding; + }; + + return axis; + } + + function axisTop(scale) { + return axis(top, scale); + } + + function axisRight(scale) { + return axis(right, scale); + } + + function axisBottom(scale) { + return axis(bottom, scale); + } + + function axisLeft(scale) { + return axis(left, scale); + } + + function defaultSeparation(a, b) { + return a.parent === b.parent ? 1 : 2; + } + + function meanX(children) { + return children.reduce(meanXReduce, 0) / children.length; + } + + function meanXReduce(x, c) { + return x + c.x; + } + + function maxY(children) { + return 1 + children.reduce(maxYReduce, 0); + } + + function maxYReduce(y, c) { + return Math.max(y, c.y); + } + + function leafLeft(node) { + var children; + while (children = node.children) node = children[0]; + return node; + } + + function leafRight(node) { + var children; + while (children = node.children) node = children[children.length - 1]; + return node; + } + + function cluster() { + var separation = defaultSeparation, + dx = 1, + dy = 1, + nodeSize = false; + + function cluster(root) { + var previousNode, + x = 0; + + // First walk, computing the initial x & y values. + root.eachAfter(function(node) { + var children = node.children; + if (children) { + node.x = meanX(children); + node.y = maxY(children); + } else { + node.x = previousNode ? x += separation(node, previousNode) : 0; + node.y = 0; + previousNode = node; + } + }); + + var left = leafLeft(root), + right = leafRight(root), + x0 = left.x - separation(left, right) / 2, + x1 = right.x + separation(right, left) / 2; + + // Second walk, normalizing x & y to the desired size. + return root.eachAfter(nodeSize ? function(node) { + node.x = (node.x - root.x) * dx; + node.y = (root.y - node.y) * dy; + } : function(node) { + node.x = (node.x - x0) / (x1 - x0) * dx; + node.y = (1 - (root.y ? node.y / root.y : 1)) * dy; + }); + } + + cluster.separation = function(x) { + return arguments.length ? (separation = x, cluster) : separation; + }; + + cluster.size = function(x) { + return arguments.length ? (nodeSize = false, dx = +x[0], dy = +x[1], cluster) : (nodeSize ? null : [dx, dy]); + }; + + cluster.nodeSize = function(x) { + return arguments.length ? (nodeSize = true, dx = +x[0], dy = +x[1], cluster) : (nodeSize ? [dx, dy] : null); + }; + + return cluster; + } + + function node_each(callback) { + var node = this, current, next = [node], children, i, n; + do { + current = next.reverse(), next = []; + while (node = current.pop()) { + callback(node), children = node.children; + if (children) for (i = 0, n = children.length; i < n; ++i) { + next.push(children[i]); + } + } + } while (next.length); + return this; + } + + function node_eachBefore(callback) { + var node = this, nodes = [node], children, i; + while (node = nodes.pop()) { + callback(node), children = node.children; + if (children) for (i = children.length - 1; i >= 0; --i) { + nodes.push(children[i]); + } + } + return this; + } + + function node_eachAfter(callback) { + var node = this, nodes = [node], next = [], children, i, n; + while (node = nodes.pop()) { + next.push(node), children = node.children; + if (children) for (i = 0, n = children.length; i < n; ++i) { + nodes.push(children[i]); + } + } + while (node = next.pop()) { + callback(node); + } + return this; + } + + function node_sum(value) { + return this.eachAfter(function(node) { + var sum = +value(node.data) || 0, + children = node.children, + i = children && children.length; + while (--i >= 0) sum += children[i].value; + node.value = sum; + }); + } + + function node_sort(compare) { + return this.eachBefore(function(node) { + if (node.children) { + node.children.sort(compare); + } + }); + } + + function node_path(end) { + var start = this, + ancestor = leastCommonAncestor(start, end), + nodes = [start]; + while (start !== ancestor) { + start = start.parent; + nodes.push(start); + } + var k = nodes.length; + while (end !== ancestor) { + nodes.splice(k, 0, end); + end = end.parent; + } + return nodes; + } + + function leastCommonAncestor(a, b) { + if (a === b) return a; + var aNodes = a.ancestors(), + bNodes = b.ancestors(), + c = null; + a = aNodes.pop(); + b = bNodes.pop(); + while (a === b) { + c = a; + a = aNodes.pop(); + b = bNodes.pop(); + } + return c; + } + + function node_ancestors() { + var node = this, nodes = [node]; + while (node = node.parent) { + nodes.push(node); + } + return nodes; + } + + function node_descendants() { + var nodes = []; + this.each(function(node) { + nodes.push(node); + }); + return nodes; + } + + function node_leaves() { + var leaves = []; + this.eachBefore(function(node) { + if (!node.children) { + leaves.push(node); + } + }); + return leaves; + } + + function node_links() { + var root = this, links = []; + root.each(function(node) { + if (node !== root) { // Don’t include the root’s parent, if any. + links.push({source: node.parent, target: node}); + } + }); + return links; + } + + function hierarchy(data, children) { + var root = new Node(data), + valued = +data.value && (root.value = data.value), + node, + nodes = [root], + child, + childs, + i, + n; + + if (children == null) children = defaultChildren; + + while (node = nodes.pop()) { + if (valued) node.value = +node.data.value; + if ((childs = children(node.data)) && (n = childs.length)) { + node.children = new Array(n); + for (i = n - 1; i >= 0; --i) { + nodes.push(child = node.children[i] = new Node(childs[i])); + child.parent = node; + child.depth = node.depth + 1; + } + } + } + + return root.eachBefore(computeHeight); + } + + function node_copy() { + return hierarchy(this).eachBefore(copyData); + } + + function defaultChildren(d) { + return d.children; + } + + function copyData(node) { + node.data = node.data.data; + } + + function computeHeight(node) { + var height = 0; + do node.height = height; + while ((node = node.parent) && (node.height < ++height)); + } + + function Node(data) { + this.data = data; + this.depth = + this.height = 0; + this.parent = null; + } + + Node.prototype = hierarchy.prototype = { + constructor: Node, + each: node_each, + eachAfter: node_eachAfter, + eachBefore: node_eachBefore, + sum: node_sum, + sort: node_sort, + path: node_path, + ancestors: node_ancestors, + descendants: node_descendants, + leaves: node_leaves, + links: node_links, + copy: node_copy + }; + + function Node$2(value) { + this._ = value; + this.next = null; + } + + function shuffle$1(array) { + var i, + n = (array = array.slice()).length, + head = null, + node = head; + + while (n) { + var next = new Node$2(array[n - 1]); + if (node) node = node.next = next; + else node = head = next; + array[i] = array[--n]; + } + + return { + head: head, + tail: node + }; + } + + function enclose(circles) { + return encloseN(shuffle$1(circles), []); + } + + function encloses(a, b) { + var dx = b.x - a.x, + dy = b.y - a.y, + dr = a.r - b.r; + return dr * dr + 1e-6 > dx * dx + dy * dy; + } + + // Returns the smallest circle that contains circles L and intersects circles B. + function encloseN(L, B) { + var circle, + l0 = null, + l1 = L.head, + l2, + p1; + + switch (B.length) { + case 1: circle = enclose1(B[0]); break; + case 2: circle = enclose2(B[0], B[1]); break; + case 3: circle = enclose3(B[0], B[1], B[2]); break; + } + + while (l1) { + p1 = l1._, l2 = l1.next; + if (!circle || !encloses(circle, p1)) { + + // Temporarily truncate L before l1. + if (l0) L.tail = l0, l0.next = null; + else L.head = L.tail = null; + + B.push(p1); + circle = encloseN(L, B); // Note: reorders L! + B.pop(); + + // Move l1 to the front of L and reconnect the truncated list L. + if (L.head) l1.next = L.head, L.head = l1; + else l1.next = null, L.head = L.tail = l1; + l0 = L.tail, l0.next = l2; + + } else { + l0 = l1; + } + l1 = l2; + } + + L.tail = l0; + return circle; + } + + function enclose1(a) { + return { + x: a.x, + y: a.y, + r: a.r + }; + } + + function enclose2(a, b) { + var x1 = a.x, y1 = a.y, r1 = a.r, + x2 = b.x, y2 = b.y, r2 = b.r, + x21 = x2 - x1, y21 = y2 - y1, r21 = r2 - r1, + l = Math.sqrt(x21 * x21 + y21 * y21); + return { + x: (x1 + x2 + x21 / l * r21) / 2, + y: (y1 + y2 + y21 / l * r21) / 2, + r: (l + r1 + r2) / 2 + }; + } + + function enclose3(a, b, c) { + var x1 = a.x, y1 = a.y, r1 = a.r, + x2 = b.x, y2 = b.y, r2 = b.r, + x3 = c.x, y3 = c.y, r3 = c.r, + a2 = 2 * (x1 - x2), + b2 = 2 * (y1 - y2), + c2 = 2 * (r2 - r1), + d2 = x1 * x1 + y1 * y1 - r1 * r1 - x2 * x2 - y2 * y2 + r2 * r2, + a3 = 2 * (x1 - x3), + b3 = 2 * (y1 - y3), + c3 = 2 * (r3 - r1), + d3 = x1 * x1 + y1 * y1 - r1 * r1 - x3 * x3 - y3 * y3 + r3 * r3, + ab = a3 * b2 - a2 * b3, + xa = (b2 * d3 - b3 * d2) / ab - x1, + xb = (b3 * c2 - b2 * c3) / ab, + ya = (a3 * d2 - a2 * d3) / ab - y1, + yb = (a2 * c3 - a3 * c2) / ab, + A = xb * xb + yb * yb - 1, + B = 2 * (xa * xb + ya * yb + r1), + C = xa * xa + ya * ya - r1 * r1, + r = (-B - Math.sqrt(B * B - 4 * A * C)) / (2 * A); + return { + x: xa + xb * r + x1, + y: ya + yb * r + y1, + r: r + }; + } + + function place(a, b, c) { + var ax = a.x, + ay = a.y, + da = b.r + c.r, + db = a.r + c.r, + dx = b.x - ax, + dy = b.y - ay, + dc = dx * dx + dy * dy; + if (dc) { + var x = 0.5 + ((db *= db) - (da *= da)) / (2 * dc), + y = Math.sqrt(Math.max(0, 2 * da * (db + dc) - (db -= dc) * db - da * da)) / (2 * dc); + c.x = ax + x * dx + y * dy; + c.y = ay + x * dy - y * dx; + } else { + c.x = ax + db; + c.y = ay; + } + } + + function intersects(a, b) { + var dx = b.x - a.x, + dy = b.y - a.y, + dr = a.r + b.r; + return dr * dr > dx * dx + dy * dy; + } + + function distance2(circle, x, y) { + var dx = circle.x - x, + dy = circle.y - y; + return dx * dx + dy * dy; + } + + function Node$1(circle) { + this._ = circle; + this.next = null; + this.previous = null; + } + + function packEnclose(circles) { + if (!(n = circles.length)) return 0; + + var a, b, c, n; + + // Place the first circle. + a = circles[0], a.x = 0, a.y = 0; + if (!(n > 1)) return a.r; + + // Place the second circle. + b = circles[1], a.x = -b.r, b.x = a.r, b.y = 0; + if (!(n > 2)) return a.r + b.r; + + // Place the third circle. + place(b, a, c = circles[2]); + + // Initialize the weighted centroid. + var aa = a.r * a.r, + ba = b.r * b.r, + ca = c.r * c.r, + oa = aa + ba + ca, + ox = aa * a.x + ba * b.x + ca * c.x, + oy = aa * a.y + ba * b.y + ca * c.y, + cx, cy, i, j, k, sj, sk; + + // Initialize the front-chain using the first three circles a, b and c. + a = new Node$1(a), b = new Node$1(b), c = new Node$1(c); + a.next = c.previous = b; + b.next = a.previous = c; + c.next = b.previous = a; + + // Attempt to place each remaining circle… + pack: for (i = 3; i < n; ++i) { + place(a._, b._, c = circles[i]), c = new Node$1(c); + + // If there are only three elements in the front-chain… + if ((k = a.previous) === (j = b.next)) { + // If the new circle intersects the third circle, + // rotate the front chain to try the next position. + if (intersects(j._, c._)) { + a = b, b = j, --i; + continue pack; + } + } + + // Find the closest intersecting circle on the front-chain, if any. + else { + sj = j._.r, sk = k._.r; + do { + if (sj <= sk) { + if (intersects(j._, c._)) { + b = j, a.next = b, b.previous = a, --i; + continue pack; + } + j = j.next, sj += j._.r; + } else { + if (intersects(k._, c._)) { + a = k, a.next = b, b.previous = a, --i; + continue pack; + } + k = k.previous, sk += k._.r; + } + } while (j !== k.next); + } + + // Success! Insert the new circle c between a and b. + c.previous = a, c.next = b, a.next = b.previous = b = c; + + // Update the weighted centroid. + oa += ca = c._.r * c._.r; + ox += ca * c._.x; + oy += ca * c._.y; + + // Compute the new closest circle a to centroid. + aa = distance2(a._, cx = ox / oa, cy = oy / oa); + while ((c = c.next) !== b) { + if ((ca = distance2(c._, cx, cy)) < aa) { + a = c, aa = ca; + } + } + b = a.next; + } + + // Compute the enclosing circle of the front chain. + a = [b._], c = b; while ((c = c.next) !== b) a.push(c._); c = enclose(a); + + // Translate the circles to put the enclosing circle around the origin. + for (i = 0; i < n; ++i) a = circles[i], a.x -= c.x, a.y -= c.y; + + return c.r; + } + + function siblings(circles) { + packEnclose(circles); + return circles; + } + + function optional(f) { + return f == null ? null : required(f); + } + + function required(f) { + if (typeof f !== "function") throw new Error; + return f; + } + + function constantZero() { + return 0; + } + + function constant$5(x) { + return function() { + return x; + }; + } + + function defaultRadius(d) { + return Math.sqrt(d.value); + } + + function index() { + var radius = null, + dx = 1, + dy = 1, + padding = constantZero; + + function pack(root) { + root.x = dx / 2, root.y = dy / 2; + if (radius) { + root.eachBefore(radiusLeaf(radius)) + .eachAfter(packChildren(padding, 0.5)) + .eachBefore(translateChild(1)); + } else { + root.eachBefore(radiusLeaf(defaultRadius)) + .eachAfter(packChildren(constantZero, 1)) + .eachAfter(packChildren(padding, root.r / Math.min(dx, dy))) + .eachBefore(translateChild(Math.min(dx, dy) / (2 * root.r))); + } + return root; + } + + pack.radius = function(x) { + return arguments.length ? (radius = optional(x), pack) : radius; + }; + + pack.size = function(x) { + return arguments.length ? (dx = +x[0], dy = +x[1], pack) : [dx, dy]; + }; + + pack.padding = function(x) { + return arguments.length ? (padding = typeof x === "function" ? x : constant$5(+x), pack) : padding; + }; + + return pack; + } + + function radiusLeaf(radius) { + return function(node) { + if (!node.children) { + node.r = Math.max(0, +radius(node) || 0); + } + }; + } + + function packChildren(padding, k) { + return function(node) { + if (children = node.children) { + var children, + i, + n = children.length, + r = padding(node) * k || 0, + e; + + if (r) for (i = 0; i < n; ++i) children[i].r += r; + e = packEnclose(children); + if (r) for (i = 0; i < n; ++i) children[i].r -= r; + node.r = e + r; + } + }; + } + + function translateChild(k) { + return function(node) { + var parent = node.parent; + node.r *= k; + if (parent) { + node.x = parent.x + k * node.x; + node.y = parent.y + k * node.y; + } + }; + } + + function roundNode(node) { + node.x0 = Math.round(node.x0); + node.y0 = Math.round(node.y0); + node.x1 = Math.round(node.x1); + node.y1 = Math.round(node.y1); + } + + function treemapDice(parent, x0, y0, x1, y1) { + var nodes = parent.children, + node, + i = -1, + n = nodes.length, + k = parent.value && (x1 - x0) / parent.value; + + while (++i < n) { + node = nodes[i], node.y0 = y0, node.y1 = y1; + node.x0 = x0, node.x1 = x0 += node.value * k; + } + } + + function partition() { + var dx = 1, + dy = 1, + padding = 0, + round = false; + + function partition(root) { + var n = root.height + 1; + root.x0 = + root.y0 = padding; + root.x1 = dx; + root.y1 = dy / n; + root.eachBefore(positionNode(dy, n)); + if (round) root.eachBefore(roundNode); + return root; + } + + function positionNode(dy, n) { + return function(node) { + if (node.children) { + treemapDice(node, node.x0, dy * (node.depth + 1) / n, node.x1, dy * (node.depth + 2) / n); + } + var x0 = node.x0, + y0 = node.y0, + x1 = node.x1 - padding, + y1 = node.y1 - padding; + if (x1 < x0) x0 = x1 = (x0 + x1) / 2; + if (y1 < y0) y0 = y1 = (y0 + y1) / 2; + node.x0 = x0; + node.y0 = y0; + node.x1 = x1; + node.y1 = y1; + }; + } + + partition.round = function(x) { + return arguments.length ? (round = !!x, partition) : round; + }; + + partition.size = function(x) { + return arguments.length ? (dx = +x[0], dy = +x[1], partition) : [dx, dy]; + }; + + partition.padding = function(x) { + return arguments.length ? (padding = +x, partition) : padding; + }; + + return partition; + } + +var keyPrefix$1 = "$"; + var preroot = {depth: -1}; + var ambiguous = {}; + function defaultId(d) { + return d.id; + } + + function defaultParentId(d) { + return d.parentId; + } + + function stratify() { + var id = defaultId, + parentId = defaultParentId; + + function stratify(data) { + var d, + i, + n = data.length, + root, + parent, + node, + nodes = new Array(n), + nodeId, + nodeKey, + nodeByKey = {}; + + for (i = 0; i < n; ++i) { + d = data[i], node = nodes[i] = new Node(d); + if ((nodeId = id(d, i, data)) != null && (nodeId += "")) { + nodeKey = keyPrefix$1 + (node.id = nodeId); + nodeByKey[nodeKey] = nodeKey in nodeByKey ? ambiguous : node; + } + } + + for (i = 0; i < n; ++i) { + node = nodes[i], nodeId = parentId(data[i], i, data); + if (nodeId == null || !(nodeId += "")) { + if (root) throw new Error("multiple roots"); + root = node; + } else { + parent = nodeByKey[keyPrefix$1 + nodeId]; + if (!parent) throw new Error("missing: " + nodeId); + if (parent === ambiguous) throw new Error("ambiguous: " + nodeId); + if (parent.children) parent.children.push(node); + else parent.children = [node]; + node.parent = parent; + } + } + + if (!root) throw new Error("no root"); + root.parent = preroot; + root.eachBefore(function(node) { node.depth = node.parent.depth + 1; --n; }).eachBefore(computeHeight); + root.parent = null; + if (n > 0) throw new Error("cycle"); + + return root; + } + + stratify.id = function(x) { + return arguments.length ? (id = required(x), stratify) : id; + }; + + stratify.parentId = function(x) { + return arguments.length ? (parentId = required(x), stratify) : parentId; + }; + + return stratify; + } + + function defaultSeparation$1(a, b) { + return a.parent === b.parent ? 1 : 2; + } + + // function radialSeparation(a, b) { + // return (a.parent === b.parent ? 1 : 2) / a.depth; + // } + + // This function is used to traverse the left contour of a subtree (or + // subforest). It returns the successor of v on this contour. This successor is + // either given by the leftmost child of v or by the thread of v. The function + // returns null if and only if v is on the highest level of its subtree. + function nextLeft(v) { + var children = v.children; + return children ? children[0] : v.t; + } + + // This function works analogously to nextLeft. + function nextRight(v) { + var children = v.children; + return children ? children[children.length - 1] : v.t; + } + + // Shifts the current subtree rooted at w+. This is done by increasing + // prelim(w+) and mod(w+) by shift. + function moveSubtree(wm, wp, shift) { + var change = shift / (wp.i - wm.i); + wp.c -= change; + wp.s += shift; + wm.c += change; + wp.z += shift; + wp.m += shift; + } + + // All other shifts, applied to the smaller subtrees between w- and w+, are + // performed by this function. To prepare the shifts, we have to adjust + // change(w+), shift(w+), and change(w-). + function executeShifts(v) { + var shift = 0, + change = 0, + children = v.children, + i = children.length, + w; + while (--i >= 0) { + w = children[i]; + w.z += shift; + w.m += shift; + shift += w.s + (change += w.c); + } + } + + // If vi-’s ancestor is a sibling of v, returns vi-’s ancestor. Otherwise, + // returns the specified (default) ancestor. + function nextAncestor(vim, v, ancestor) { + return vim.a.parent === v.parent ? vim.a : ancestor; + } + + function TreeNode(node, i) { + this._ = node; + this.parent = null; + this.children = null; + this.A = null; // default ancestor + this.a = this; // ancestor + this.z = 0; // prelim + this.m = 0; // mod + this.c = 0; // change + this.s = 0; // shift + this.t = null; // thread + this.i = i; // number + } + + TreeNode.prototype = Object.create(Node.prototype); + + function treeRoot(root) { + var tree = new TreeNode(root, 0), + node, + nodes = [tree], + child, + children, + i, + n; + + while (node = nodes.pop()) { + if (children = node._.children) { + node.children = new Array(n = children.length); + for (i = n - 1; i >= 0; --i) { + nodes.push(child = node.children[i] = new TreeNode(children[i], i)); + child.parent = node; + } + } + } + + (tree.parent = new TreeNode(null, 0)).children = [tree]; + return tree; + } + + // Node-link tree diagram using the Reingold-Tilford "tidy" algorithm + function tree() { + var separation = defaultSeparation$1, + dx = 1, + dy = 1, + nodeSize = null; + + function tree(root) { + var t = treeRoot(root); + + // Compute the layout using Buchheim et al.’s algorithm. + t.eachAfter(firstWalk), t.parent.m = -t.z; + t.eachBefore(secondWalk); + + // If a fixed node size is specified, scale x and y. + if (nodeSize) root.eachBefore(sizeNode); + + // If a fixed tree size is specified, scale x and y based on the extent. + // Compute the left-most, right-most, and depth-most nodes for extents. + else { + var left = root, + right = root, + bottom = root; + root.eachBefore(function(node) { + if (node.x < left.x) left = node; + if (node.x > right.x) right = node; + if (node.depth > bottom.depth) bottom = node; + }); + var s = left === right ? 1 : separation(left, right) / 2, + tx = s - left.x, + kx = dx / (right.x + s + tx), + ky = dy / (bottom.depth || 1); + root.eachBefore(function(node) { + node.x = (node.x + tx) * kx; + node.y = node.depth * ky; + }); + } + + return root; + } + + // Computes a preliminary x-coordinate for v. Before that, FIRST WALK is + // applied recursively to the children of v, as well as the function + // APPORTION. After spacing out the children by calling EXECUTE SHIFTS, the + // node v is placed to the midpoint of its outermost children. + function firstWalk(v) { + var children = v.children, + siblings = v.parent.children, + w = v.i ? siblings[v.i - 1] : null; + if (children) { + executeShifts(v); + var midpoint = (children[0].z + children[children.length - 1].z) / 2; + if (w) { + v.z = w.z + separation(v._, w._); + v.m = v.z - midpoint; + } else { + v.z = midpoint; + } + } else if (w) { + v.z = w.z + separation(v._, w._); + } + v.parent.A = apportion(v, w, v.parent.A || siblings[0]); + } + + // Computes all real x-coordinates by summing up the modifiers recursively. + function secondWalk(v) { + v._.x = v.z + v.parent.m; + v.m += v.parent.m; + } + + // The core of the algorithm. Here, a new subtree is combined with the + // previous subtrees. Threads are used to traverse the inside and outside + // contours of the left and right subtree up to the highest common level. The + // vertices used for the traversals are vi+, vi-, vo-, and vo+, where the + // superscript o means outside and i means inside, the subscript - means left + // subtree and + means right subtree. For summing up the modifiers along the + // contour, we use respective variables si+, si-, so-, and so+. Whenever two + // nodes of the inside contours conflict, we compute the left one of the + // greatest uncommon ancestors using the function ANCESTOR and call MOVE + // SUBTREE to shift the subtree and prepare the shifts of smaller subtrees. + // Finally, we add a new thread (if necessary). + function apportion(v, w, ancestor) { + if (w) { + var vip = v, + vop = v, + vim = w, + vom = vip.parent.children[0], + sip = vip.m, + sop = vop.m, + sim = vim.m, + som = vom.m, + shift; + while (vim = nextRight(vim), vip = nextLeft(vip), vim && vip) { + vom = nextLeft(vom); + vop = nextRight(vop); + vop.a = v; + shift = vim.z + sim - vip.z - sip + separation(vim._, vip._); + if (shift > 0) { + moveSubtree(nextAncestor(vim, v, ancestor), v, shift); + sip += shift; + sop += shift; + } + sim += vim.m; + sip += vip.m; + som += vom.m; + sop += vop.m; + } + if (vim && !nextRight(vop)) { + vop.t = vim; + vop.m += sim - sop; + } + if (vip && !nextLeft(vom)) { + vom.t = vip; + vom.m += sip - som; + ancestor = v; + } + } + return ancestor; + } + + function sizeNode(node) { + node.x *= dx; + node.y = node.depth * dy; + } + + tree.separation = function(x) { + return arguments.length ? (separation = x, tree) : separation; + }; + + tree.size = function(x) { + return arguments.length ? (nodeSize = false, dx = +x[0], dy = +x[1], tree) : (nodeSize ? null : [dx, dy]); + }; + + tree.nodeSize = function(x) { + return arguments.length ? (nodeSize = true, dx = +x[0], dy = +x[1], tree) : (nodeSize ? [dx, dy] : null); + }; + + return tree; + } + + function treemapSlice(parent, x0, y0, x1, y1) { + var nodes = parent.children, + node, + i = -1, + n = nodes.length, + k = parent.value && (y1 - y0) / parent.value; + + while (++i < n) { + node = nodes[i], node.x0 = x0, node.x1 = x1; + node.y0 = y0, node.y1 = y0 += node.value * k; + } + } + + var phi = (1 + Math.sqrt(5)) / 2; + + function squarifyRatio(ratio, parent, x0, y0, x1, y1) { + var rows = [], + nodes = parent.children, + row, + nodeValue, + i0 = 0, + i1, + n = nodes.length, + dx, dy, + value = parent.value, + sumValue, + minValue, + maxValue, + newRatio, + minRatio, + alpha, + beta; + + while (i0 < n) { + dx = x1 - x0, dy = y1 - y0; + minValue = maxValue = sumValue = nodes[i0].value; + alpha = Math.max(dy / dx, dx / dy) / (value * ratio); + beta = sumValue * sumValue * alpha; + minRatio = Math.max(maxValue / beta, beta / minValue); + + // Keep adding nodes while the aspect ratio maintains or improves. + for (i1 = i0 + 1; i1 < n; ++i1) { + sumValue += nodeValue = nodes[i1].value; + if (nodeValue < minValue) minValue = nodeValue; + if (nodeValue > maxValue) maxValue = nodeValue; + beta = sumValue * sumValue * alpha; + newRatio = Math.max(maxValue / beta, beta / minValue); + if (newRatio > minRatio) { sumValue -= nodeValue; break; } + minRatio = newRatio; + } + + // Position and record the row orientation. + rows.push(row = {value: sumValue, dice: dx < dy, children: nodes.slice(i0, i1)}); + if (row.dice) treemapDice(row, x0, y0, x1, value ? y0 += dy * sumValue / value : y1); + else treemapSlice(row, x0, y0, value ? x0 += dx * sumValue / value : x1, y1); + value -= sumValue, i0 = i1; + } + + return rows; + } + + var squarify = (function custom(ratio) { + + function squarify(parent, x0, y0, x1, y1) { + squarifyRatio(ratio, parent, x0, y0, x1, y1); + } + + squarify.ratio = function(x) { + return custom((x = +x) > 1 ? x : 1); + }; + + return squarify; + })(phi); + + function index$1() { + var tile = squarify, + round = false, + dx = 1, + dy = 1, + paddingStack = [0], + paddingInner = constantZero, + paddingTop = constantZero, + paddingRight = constantZero, + paddingBottom = constantZero, + paddingLeft = constantZero; + + function treemap(root) { + root.x0 = + root.y0 = 0; + root.x1 = dx; + root.y1 = dy; + root.eachBefore(positionNode); + paddingStack = [0]; + if (round) root.eachBefore(roundNode); + return root; + } + + function positionNode(node) { + var p = paddingStack[node.depth], + x0 = node.x0 + p, + y0 = node.y0 + p, + x1 = node.x1 - p, + y1 = node.y1 - p; + if (x1 < x0) x0 = x1 = (x0 + x1) / 2; + if (y1 < y0) y0 = y1 = (y0 + y1) / 2; + node.x0 = x0; + node.y0 = y0; + node.x1 = x1; + node.y1 = y1; + if (node.children) { + p = paddingStack[node.depth + 1] = paddingInner(node) / 2; + x0 += paddingLeft(node) - p; + y0 += paddingTop(node) - p; + x1 -= paddingRight(node) - p; + y1 -= paddingBottom(node) - p; + if (x1 < x0) x0 = x1 = (x0 + x1) / 2; + if (y1 < y0) y0 = y1 = (y0 + y1) / 2; + tile(node, x0, y0, x1, y1); + } + } + + treemap.round = function(x) { + return arguments.length ? (round = !!x, treemap) : round; + }; + + treemap.size = function(x) { + return arguments.length ? (dx = +x[0], dy = +x[1], treemap) : [dx, dy]; + }; + + treemap.tile = function(x) { + return arguments.length ? (tile = required(x), treemap) : tile; + }; + + treemap.padding = function(x) { + return arguments.length ? treemap.paddingInner(x).paddingOuter(x) : treemap.paddingInner(); + }; + + treemap.paddingInner = function(x) { + return arguments.length ? (paddingInner = typeof x === "function" ? x : constant$5(+x), treemap) : paddingInner; + }; + + treemap.paddingOuter = function(x) { + return arguments.length ? treemap.paddingTop(x).paddingRight(x).paddingBottom(x).paddingLeft(x) : treemap.paddingTop(); + }; + + treemap.paddingTop = function(x) { + return arguments.length ? (paddingTop = typeof x === "function" ? x : constant$5(+x), treemap) : paddingTop; + }; + + treemap.paddingRight = function(x) { + return arguments.length ? (paddingRight = typeof x === "function" ? x : constant$5(+x), treemap) : paddingRight; + }; + + treemap.paddingBottom = function(x) { + return arguments.length ? (paddingBottom = typeof x === "function" ? x : constant$5(+x), treemap) : paddingBottom; + }; + + treemap.paddingLeft = function(x) { + return arguments.length ? (paddingLeft = typeof x === "function" ? x : constant$5(+x), treemap) : paddingLeft; + }; + + return treemap; + } + + function binary(parent, x0, y0, x1, y1) { + var nodes = parent.children, + i, n = nodes.length, + sum, sums = new Array(n + 1); + + for (sums[0] = sum = i = 0; i < n; ++i) { + sums[i + 1] = sum += nodes[i].value; + } + + partition(0, n, parent.value, x0, y0, x1, y1); + + function partition(i, j, value, x0, y0, x1, y1) { + if (i >= j - 1) { + var node = nodes[i]; + node.x0 = x0, node.y0 = y0; + node.x1 = x1, node.y1 = y1; + return; + } + + var valueOffset = sums[i], + valueTarget = (value / 2) + valueOffset, + k = i + 1, + hi = j - 1; + + while (k < hi) { + var mid = k + hi >>> 1; + if (sums[mid] < valueTarget) k = mid + 1; + else hi = mid; + } + + var valueLeft = sums[k] - valueOffset, + valueRight = value - valueLeft; + + if ((y1 - y0) > (x1 - x0)) { + var yk = (y0 * valueRight + y1 * valueLeft) / value; + partition(i, k, valueLeft, x0, y0, x1, yk); + partition(k, j, valueRight, x0, yk, x1, y1); + } else { + var xk = (x0 * valueRight + x1 * valueLeft) / value; + partition(i, k, valueLeft, x0, y0, xk, y1); + partition(k, j, valueRight, xk, y0, x1, y1); + } + } + } + + function sliceDice(parent, x0, y0, x1, y1) { + (parent.depth & 1 ? treemapSlice : treemapDice)(parent, x0, y0, x1, y1); + } + + var resquarify = (function custom(ratio) { + + function resquarify(parent, x0, y0, x1, y1) { + if ((rows = parent._squarify) && (rows.ratio === ratio)) { + var rows, + row, + nodes, + i, + j = -1, + n, + m = rows.length, + value = parent.value; + + while (++j < m) { + row = rows[j], nodes = row.children; + for (i = row.value = 0, n = nodes.length; i < n; ++i) row.value += nodes[i].value; + if (row.dice) treemapDice(row, x0, y0, x1, y0 += (y1 - y0) * row.value / value); + else treemapSlice(row, x0, y0, x0 += (x1 - x0) * row.value / value, y1); + value -= row.value; + } + } else { + parent._squarify = rows = squarifyRatio(ratio, parent, x0, y0, x1, y1); + rows.ratio = ratio; + } + } + + resquarify.ratio = function(x) { + return custom((x = +x) > 1 ? x : 1); + }; + + return resquarify; + })(phi); + + function center$1(x, y) { + var nodes; + + if (x == null) x = 0; + if (y == null) y = 0; + + function force() { + var i, + n = nodes.length, + node, + sx = 0, + sy = 0; + + for (i = 0; i < n; ++i) { + node = nodes[i], sx += node.x, sy += node.y; + } + + for (sx = sx / n - x, sy = sy / n - y, i = 0; i < n; ++i) { + node = nodes[i], node.x -= sx, node.y -= sy; + } + } + + force.initialize = function(_) { + nodes = _; + }; + + force.x = function(_) { + return arguments.length ? (x = +_, force) : x; + }; + + force.y = function(_) { + return arguments.length ? (y = +_, force) : y; + }; + + return force; + } + + function constant$6(x) { + return function() { + return x; + }; + } + + function jiggle() { + return (Math.random() - 0.5) * 1e-6; + } + + function x$1(d) { + return d.x + d.vx; + } + + function y$1(d) { + return d.y + d.vy; + } + + function collide(radius) { + var nodes, + radii, + strength = 1, + iterations = 1; + + if (typeof radius !== "function") radius = constant$6(radius == null ? 1 : +radius); + + function force() { + var i, n = nodes.length, + tree, + node, + xi, + yi, + ri, + ri2; + + for (var k = 0; k < iterations; ++k) { + tree = quadtree(nodes, x$1, y$1).visitAfter(prepare); + for (i = 0; i < n; ++i) { + node = nodes[i]; + ri = radii[i], ri2 = ri * ri; + xi = node.x + node.vx; + yi = node.y + node.vy; + tree.visit(apply); + } + } + + function apply(quad, x0, y0, x1, y1) { + var data = quad.data, rj = quad.r, r = ri + rj; + if (data) { + if (data.index > i) { + var x = xi - data.x - data.vx, + y = yi - data.y - data.vy, + l = x * x + y * y; + if (l < r * r) { + if (x === 0) x = jiggle(), l += x * x; + if (y === 0) y = jiggle(), l += y * y; + l = (r - (l = Math.sqrt(l))) / l * strength; + node.vx += (x *= l) * (r = (rj *= rj) / (ri2 + rj)); + node.vy += (y *= l) * r; + data.vx -= x * (r = 1 - r); + data.vy -= y * r; + } + } + return; + } + return x0 > xi + r || x1 < xi - r || y0 > yi + r || y1 < yi - r; + } + } + + function prepare(quad) { + if (quad.data) return quad.r = radii[quad.data.index]; + for (var i = quad.r = 0; i < 4; ++i) { + if (quad[i] && quad[i].r > quad.r) { + quad.r = quad[i].r; + } + } + } + + force.initialize = function(_) { + var i, n = (nodes = _).length; radii = new Array(n); + for (i = 0; i < n; ++i) radii[i] = +radius(nodes[i], i, nodes); + }; + + force.iterations = function(_) { + return arguments.length ? (iterations = +_, force) : iterations; + }; + + force.strength = function(_) { + return arguments.length ? (strength = +_, force) : strength; + }; + + force.radius = function(_) { + return arguments.length ? (radius = typeof _ === "function" ? _ : constant$6(+_), force) : radius; + }; + + return force; + } + + function index$2(d, i) { + return i; + } + + function link(links) { + var id = index$2, + strength = defaultStrength, + strengths, + distance = constant$6(30), + distances, + nodes, + count, + bias, + iterations = 1; + + if (links == null) links = []; + + function defaultStrength(link) { + return 1 / Math.min(count[link.source.index], count[link.target.index]); + } + + function force(alpha) { + for (var k = 0, n = links.length; k < iterations; ++k) { + for (var i = 0, link, source, target, x, y, l, b; i < n; ++i) { + link = links[i], source = link.source, target = link.target; + x = target.x + target.vx - source.x - source.vx || jiggle(); + y = target.y + target.vy - source.y - source.vy || jiggle(); + l = Math.sqrt(x * x + y * y); + l = (l - distances[i]) / l * alpha * strengths[i]; + x *= l, y *= l; + target.vx -= x * (b = bias[i]); + target.vy -= y * b; + source.vx += x * (b = 1 - b); + source.vy += y * b; + } + } + } + + function initialize() { + if (!nodes) return; + + var i, + n = nodes.length, + m = links.length, + nodeById = map$1(nodes, id), + link; + + for (i = 0, count = new Array(n); i < n; ++i) { + count[i] = 0; + } + + for (i = 0; i < m; ++i) { + link = links[i], link.index = i; + if (typeof link.source !== "object") link.source = nodeById.get(link.source); + if (typeof link.target !== "object") link.target = nodeById.get(link.target); + ++count[link.source.index], ++count[link.target.index]; + } + + for (i = 0, bias = new Array(m); i < m; ++i) { + link = links[i], bias[i] = count[link.source.index] / (count[link.source.index] + count[link.target.index]); + } + + strengths = new Array(m), initializeStrength(); + distances = new Array(m), initializeDistance(); + } + + function initializeStrength() { + if (!nodes) return; + + for (var i = 0, n = links.length; i < n; ++i) { + strengths[i] = +strength(links[i], i, links); + } + } + + function initializeDistance() { + if (!nodes) return; + + for (var i = 0, n = links.length; i < n; ++i) { + distances[i] = +distance(links[i], i, links); + } + } + + force.initialize = function(_) { + nodes = _; + initialize(); + }; + + force.links = function(_) { + return arguments.length ? (links = _, initialize(), force) : links; + }; + + force.id = function(_) { + return arguments.length ? (id = _, force) : id; + }; + + force.iterations = function(_) { + return arguments.length ? (iterations = +_, force) : iterations; + }; + + force.strength = function(_) { + return arguments.length ? (strength = typeof _ === "function" ? _ : constant$6(+_), initializeStrength(), force) : strength; + }; + + force.distance = function(_) { + return arguments.length ? (distance = typeof _ === "function" ? _ : constant$6(+_), initializeDistance(), force) : distance; + }; + + return force; + } + + function x$2(d) { + return d.x; + } + + function y$2(d) { + return d.y; + } + + var initialRadius = 10; + var initialAngle = Math.PI * (3 - Math.sqrt(5)); + function simulation(nodes) { + var simulation, + alpha = 1, + alphaMin = 0.001, + alphaDecay = 1 - Math.pow(alphaMin, 1 / 300), + alphaTarget = 0, + velocityDecay = 0.6, + forces = map$1(), + stepper = timer(step), + event = dispatch("tick", "end"); + + if (nodes == null) nodes = []; + + function step() { + tick(); + event.call("tick", simulation); + if (alpha < alphaMin) { + stepper.stop(); + event.call("end", simulation); + } + } + + function tick() { + var i, n = nodes.length, node; + + alpha += (alphaTarget - alpha) * alphaDecay; + + forces.each(function(force) { + force(alpha); + }); + + for (i = 0; i < n; ++i) { + node = nodes[i]; + if (node.fx == null) node.x += node.vx *= velocityDecay; + else node.x = node.fx, node.vx = 0; + if (node.fy == null) node.y += node.vy *= velocityDecay; + else node.y = node.fy, node.vy = 0; + } + } + + function initializeNodes() { + for (var i = 0, n = nodes.length, node; i < n; ++i) { + node = nodes[i], node.index = i; + if (isNaN(node.x) || isNaN(node.y)) { + var radius = initialRadius * Math.sqrt(i), angle = i * initialAngle; + node.x = radius * Math.cos(angle); + node.y = radius * Math.sin(angle); + } + if (isNaN(node.vx) || isNaN(node.vy)) { + node.vx = node.vy = 0; + } + } + } + + function initializeForce(force) { + if (force.initialize) force.initialize(nodes); + return force; + } + + initializeNodes(); + + return simulation = { + tick: tick, + + restart: function() { + return stepper.restart(step), simulation; + }, + + stop: function() { + return stepper.stop(), simulation; + }, + + nodes: function(_) { + return arguments.length ? (nodes = _, initializeNodes(), forces.each(initializeForce), simulation) : nodes; + }, + + alpha: function(_) { + return arguments.length ? (alpha = +_, simulation) : alpha; + }, + + alphaMin: function(_) { + return arguments.length ? (alphaMin = +_, simulation) : alphaMin; + }, + + alphaDecay: function(_) { + return arguments.length ? (alphaDecay = +_, simulation) : +alphaDecay; + }, + + alphaTarget: function(_) { + return arguments.length ? (alphaTarget = +_, simulation) : alphaTarget; + }, + + velocityDecay: function(_) { + return arguments.length ? (velocityDecay = 1 - _, simulation) : 1 - velocityDecay; + }, + + force: function(name, _) { + return arguments.length > 1 ? ((_ == null ? forces.remove(name) : forces.set(name, initializeForce(_))), simulation) : forces.get(name); + }, + + find: function(x, y, radius) { + var i = 0, + n = nodes.length, + dx, + dy, + d2, + node, + closest; + + if (radius == null) radius = Infinity; + else radius *= radius; + + for (i = 0; i < n; ++i) { + node = nodes[i]; + dx = x - node.x; + dy = y - node.y; + d2 = dx * dx + dy * dy; + if (d2 < radius) closest = node, radius = d2; + } + + return closest; + }, + + on: function(name, _) { + return arguments.length > 1 ? (event.on(name, _), simulation) : event.on(name); + } + }; + } + + function manyBody() { + var nodes, + node, + alpha, + strength = constant$6(-30), + strengths, + distanceMin2 = 1, + distanceMax2 = Infinity, + theta2 = 0.81; + + function force(_) { + var i, n = nodes.length, tree = quadtree(nodes, x$2, y$2).visitAfter(accumulate); + for (alpha = _, i = 0; i < n; ++i) node = nodes[i], tree.visit(apply); + } + + function initialize() { + if (!nodes) return; + var i, n = nodes.length; + strengths = new Array(n); + for (i = 0; i < n; ++i) strengths[i] = +strength(nodes[i], i, nodes); + } + + function accumulate(quad) { + var strength = 0, q, c, x, y, i; + + // For internal nodes, accumulate forces from child quadrants. + if (quad.length) { + for (x = y = i = 0; i < 4; ++i) { + if ((q = quad[i]) && (c = q.value)) { + strength += c, x += c * q.x, y += c * q.y; + } + } + quad.x = x / strength; + quad.y = y / strength; + } + + // For leaf nodes, accumulate forces from coincident quadrants. + else { + q = quad; + q.x = q.data.x; + q.y = q.data.y; + do strength += strengths[q.data.index]; + while (q = q.next); + } + + quad.value = strength; + } + + function apply(quad, x1, _, x2) { + if (!quad.value) return true; + + var x = quad.x - node.x, + y = quad.y - node.y, + w = x2 - x1, + l = x * x + y * y; + + // Apply the Barnes-Hut approximation if possible. + // Limit forces for very close nodes; randomize direction if coincident. + if (w * w / theta2 < l) { + if (l < distanceMax2) { + if (x === 0) x = jiggle(), l += x * x; + if (y === 0) y = jiggle(), l += y * y; + if (l < distanceMin2) l = Math.sqrt(distanceMin2 * l); + node.vx += x * quad.value * alpha / l; + node.vy += y * quad.value * alpha / l; + } + return true; + } + + // Otherwise, process points directly. + else if (quad.length || l >= distanceMax2) return; + + // Limit forces for very close nodes; randomize direction if coincident. + if (quad.data !== node || quad.next) { + if (x === 0) x = jiggle(), l += x * x; + if (y === 0) y = jiggle(), l += y * y; + if (l < distanceMin2) l = Math.sqrt(distanceMin2 * l); + } + + do if (quad.data !== node) { + w = strengths[quad.data.index] * alpha / l; + node.vx += x * w; + node.vy += y * w; + } while (quad = quad.next); + } + + force.initialize = function(_) { + nodes = _; + initialize(); + }; + + force.strength = function(_) { + return arguments.length ? (strength = typeof _ === "function" ? _ : constant$6(+_), initialize(), force) : strength; + }; + + force.distanceMin = function(_) { + return arguments.length ? (distanceMin2 = _ * _, force) : Math.sqrt(distanceMin2); + }; + + force.distanceMax = function(_) { + return arguments.length ? (distanceMax2 = _ * _, force) : Math.sqrt(distanceMax2); + }; + + force.theta = function(_) { + return arguments.length ? (theta2 = _ * _, force) : Math.sqrt(theta2); + }; + + return force; + } + + function x$3(x) { + var strength = constant$6(0.1), + nodes, + strengths, + xz; + + if (typeof x !== "function") x = constant$6(x == null ? 0 : +x); + + function force(alpha) { + for (var i = 0, n = nodes.length, node; i < n; ++i) { + node = nodes[i], node.vx += (xz[i] - node.x) * strengths[i] * alpha; + } + } + + function initialize() { + if (!nodes) return; + var i, n = nodes.length; + strengths = new Array(n); + xz = new Array(n); + for (i = 0; i < n; ++i) { + strengths[i] = isNaN(xz[i] = +x(nodes[i], i, nodes)) ? 0 : +strength(nodes[i], i, nodes); + } + } + + force.initialize = function(_) { + nodes = _; + initialize(); + }; + + force.strength = function(_) { + return arguments.length ? (strength = typeof _ === "function" ? _ : constant$6(+_), initialize(), force) : strength; + }; + + force.x = function(_) { + return arguments.length ? (x = typeof _ === "function" ? _ : constant$6(+_), initialize(), force) : x; + }; + + return force; + } + + function y$3(y) { + var strength = constant$6(0.1), + nodes, + strengths, + yz; + + if (typeof y !== "function") y = constant$6(y == null ? 0 : +y); + + function force(alpha) { + for (var i = 0, n = nodes.length, node; i < n; ++i) { + node = nodes[i], node.vy += (yz[i] - node.y) * strengths[i] * alpha; + } + } + + function initialize() { + if (!nodes) return; + var i, n = nodes.length; + strengths = new Array(n); + yz = new Array(n); + for (i = 0; i < n; ++i) { + strengths[i] = isNaN(yz[i] = +y(nodes[i], i, nodes)) ? 0 : +strength(nodes[i], i, nodes); + } + } + + force.initialize = function(_) { + nodes = _; + initialize(); + }; + + force.strength = function(_) { + return arguments.length ? (strength = typeof _ === "function" ? _ : constant$6(+_), initialize(), force) : strength; + }; + + force.y = function(_) { + return arguments.length ? (y = typeof _ === "function" ? _ : constant$6(+_), initialize(), force) : y; + }; + + return force; + } + + function nopropagation() { + exports.event.stopImmediatePropagation(); + } + + function noevent() { + exports.event.preventDefault(); + exports.event.stopImmediatePropagation(); + } + + function dragDisable(view) { + var root = view.document.documentElement, + selection = select(view).on("dragstart.drag", noevent, true); + if ("onselectstart" in root) { + selection.on("selectstart.drag", noevent, true); + } else { + root.__noselect = root.style.MozUserSelect; + root.style.MozUserSelect = "none"; + } + } + + function dragEnable(view, noclick) { + var root = view.document.documentElement, + selection = select(view).on("dragstart.drag", null); + if (noclick) { + selection.on("click.drag", noevent, true); + setTimeout(function() { selection.on("click.drag", null); }, 0); + } + if ("onselectstart" in root) { + selection.on("selectstart.drag", null); + } else { + root.style.MozUserSelect = root.__noselect; + delete root.__noselect; + } + } + + function constant$7(x) { + return function() { + return x; + }; + } + + function DragEvent(target, type, subject, id, active, x, y, dx, dy, dispatch) { + this.target = target; + this.type = type; + this.subject = subject; + this.identifier = id; + this.active = active; + this.x = x; + this.y = y; + this.dx = dx; + this.dy = dy; + this._ = dispatch; + } + + DragEvent.prototype.on = function() { + var value = this._.on.apply(this._, arguments); + return value === this._ ? this : value; + }; + + // Ignore right-click, since that should open the context menu. + function defaultFilter() { + return !exports.event.button; + } + + function defaultContainer() { + return this.parentNode; + } + + function defaultSubject(d) { + return d == null ? {x: exports.event.x, y: exports.event.y} : d; + } + + function drag() { + var filter = defaultFilter, + container = defaultContainer, + subject = defaultSubject, + gestures = {}, + listeners = dispatch("start", "drag", "end"), + active = 0, + mousemoving, + touchending; + + function drag(selection) { + selection + .on("mousedown.drag", mousedowned) + .on("touchstart.drag", touchstarted) + .on("touchmove.drag", touchmoved) + .on("touchend.drag touchcancel.drag", touchended) + .style("-webkit-tap-highlight-color", "rgba(0,0,0,0)"); + } + + function mousedowned() { + if (touchending || !filter.apply(this, arguments)) return; + var gesture = beforestart("mouse", container.apply(this, arguments), mouse, this, arguments); + if (!gesture) return; + select(exports.event.view).on("mousemove.drag", mousemoved, true).on("mouseup.drag", mouseupped, true); + dragDisable(exports.event.view); + nopropagation(); + mousemoving = false; + gesture("start"); + } + + function mousemoved() { + noevent(); + mousemoving = true; + gestures.mouse("drag"); + } + + function mouseupped() { + select(exports.event.view).on("mousemove.drag mouseup.drag", null); + dragEnable(exports.event.view, mousemoving); + noevent(); + gestures.mouse("end"); + } + + function touchstarted() { + if (!filter.apply(this, arguments)) return; + var touches = exports.event.changedTouches, + c = container.apply(this, arguments), + n = touches.length, i, gesture; + + for (i = 0; i < n; ++i) { + if (gesture = beforestart(touches[i].identifier, c, touch, this, arguments)) { + nopropagation(); + gesture("start"); + } + } + } + + function touchmoved() { + var touches = exports.event.changedTouches, + n = touches.length, i, gesture; + + for (i = 0; i < n; ++i) { + if (gesture = gestures[touches[i].identifier]) { + noevent(); + gesture("drag"); + } + } + } + + function touchended() { + var touches = exports.event.changedTouches, + n = touches.length, i, gesture; + + if (touchending) clearTimeout(touchending); + touchending = setTimeout(function() { touchending = null; }, 500); // Ghost clicks are delayed! + for (i = 0; i < n; ++i) { + if (gesture = gestures[touches[i].identifier]) { + nopropagation(); + gesture("end"); + } + } + } + + function beforestart(id, container, point, that, args) { + var p = point(container, id), s, dx, dy, + sublisteners = listeners.copy(); + + if (!customEvent(new DragEvent(drag, "beforestart", s, id, active, p[0], p[1], 0, 0, sublisteners), function() { + if ((exports.event.subject = s = subject.apply(that, args)) == null) return false; + dx = s.x - p[0] || 0; + dy = s.y - p[1] || 0; + return true; + })) return; + + return function gesture(type) { + var p0 = p, n; + switch (type) { + case "start": gestures[id] = gesture, n = active++; break; + case "end": delete gestures[id], --active; // nobreak + case "drag": p = point(container, id), n = active; break; + } + customEvent(new DragEvent(drag, type, s, id, n, p[0] + dx, p[1] + dy, p[0] - p0[0], p[1] - p0[1], sublisteners), sublisteners.apply, sublisteners, [type, that, args]); + }; + } + + drag.filter = function(_) { + return arguments.length ? (filter = typeof _ === "function" ? _ : constant$7(!!_), drag) : filter; + }; + + drag.container = function(_) { + return arguments.length ? (container = typeof _ === "function" ? _ : constant$7(_), drag) : container; + }; + + drag.subject = function(_) { + return arguments.length ? (subject = typeof _ === "function" ? _ : constant$7(_), drag) : subject; + }; + + drag.on = function() { + var value = listeners.on.apply(listeners, arguments); + return value === listeners ? drag : value; + }; + + return drag; + } + + function constant$8(x) { + return function() { + return x; + }; + } + + function x$4(d) { + return d[0]; + } + + function y$4(d) { + return d[1]; + } + + function RedBlackTree() { + this._ = null; // root node + } + + function RedBlackNode(node) { + node.U = // parent node + node.C = // color - true for red, false for black + node.L = // left node + node.R = // right node + node.P = // previous node + node.N = null; // next node + } + + RedBlackTree.prototype = { + constructor: RedBlackTree, + + insert: function(after, node) { + var parent, grandpa, uncle; + + if (after) { + node.P = after; + node.N = after.N; + if (after.N) after.N.P = node; + after.N = node; + if (after.R) { + after = after.R; + while (after.L) after = after.L; + after.L = node; + } else { + after.R = node; + } + parent = after; + } else if (this._) { + after = RedBlackFirst(this._); + node.P = null; + node.N = after; + after.P = after.L = node; + parent = after; + } else { + node.P = node.N = null; + this._ = node; + parent = null; + } + node.L = node.R = null; + node.U = parent; + node.C = true; + + after = node; + while (parent && parent.C) { + grandpa = parent.U; + if (parent === grandpa.L) { + uncle = grandpa.R; + if (uncle && uncle.C) { + parent.C = uncle.C = false; + grandpa.C = true; + after = grandpa; + } else { + if (after === parent.R) { + RedBlackRotateLeft(this, parent); + after = parent; + parent = after.U; + } + parent.C = false; + grandpa.C = true; + RedBlackRotateRight(this, grandpa); + } + } else { + uncle = grandpa.L; + if (uncle && uncle.C) { + parent.C = uncle.C = false; + grandpa.C = true; + after = grandpa; + } else { + if (after === parent.L) { + RedBlackRotateRight(this, parent); + after = parent; + parent = after.U; + } + parent.C = false; + grandpa.C = true; + RedBlackRotateLeft(this, grandpa); + } + } + parent = after.U; + } + this._.C = false; + }, + + remove: function(node) { + if (node.N) node.N.P = node.P; + if (node.P) node.P.N = node.N; + node.N = node.P = null; + + var parent = node.U, + sibling, + left = node.L, + right = node.R, + next, + red; + + if (!left) next = right; + else if (!right) next = left; + else next = RedBlackFirst(right); + + if (parent) { + if (parent.L === node) parent.L = next; + else parent.R = next; + } else { + this._ = next; + } + + if (left && right) { + red = next.C; + next.C = node.C; + next.L = left; + left.U = next; + if (next !== right) { + parent = next.U; + next.U = node.U; + node = next.R; + parent.L = node; + next.R = right; + right.U = next; + } else { + next.U = parent; + parent = next; + node = next.R; + } + } else { + red = node.C; + node = next; + } + + if (node) node.U = parent; + if (red) return; + if (node && node.C) { node.C = false; return; } + + do { + if (node === this._) break; + if (node === parent.L) { + sibling = parent.R; + if (sibling.C) { + sibling.C = false; + parent.C = true; + RedBlackRotateLeft(this, parent); + sibling = parent.R; + } + if ((sibling.L && sibling.L.C) + || (sibling.R && sibling.R.C)) { + if (!sibling.R || !sibling.R.C) { + sibling.L.C = false; + sibling.C = true; + RedBlackRotateRight(this, sibling); + sibling = parent.R; + } + sibling.C = parent.C; + parent.C = sibling.R.C = false; + RedBlackRotateLeft(this, parent); + node = this._; + break; + } + } else { + sibling = parent.L; + if (sibling.C) { + sibling.C = false; + parent.C = true; + RedBlackRotateRight(this, parent); + sibling = parent.L; + } + if ((sibling.L && sibling.L.C) + || (sibling.R && sibling.R.C)) { + if (!sibling.L || !sibling.L.C) { + sibling.R.C = false; + sibling.C = true; + RedBlackRotateLeft(this, sibling); + sibling = parent.L; + } + sibling.C = parent.C; + parent.C = sibling.L.C = false; + RedBlackRotateRight(this, parent); + node = this._; + break; + } + } + sibling.C = true; + node = parent; + parent = parent.U; + } while (!node.C); + + if (node) node.C = false; + } + }; + + function RedBlackRotateLeft(tree, node) { + var p = node, + q = node.R, + parent = p.U; + + if (parent) { + if (parent.L === p) parent.L = q; + else parent.R = q; + } else { + tree._ = q; + } + + q.U = parent; + p.U = q; + p.R = q.L; + if (p.R) p.R.U = p; + q.L = p; + } + + function RedBlackRotateRight(tree, node) { + var p = node, + q = node.L, + parent = p.U; + + if (parent) { + if (parent.L === p) parent.L = q; + else parent.R = q; + } else { + tree._ = q; + } + + q.U = parent; + p.U = q; + p.L = q.R; + if (p.L) p.L.U = p; + q.R = p; + } + + function RedBlackFirst(node) { + while (node.L) node = node.L; + return node; + } + + function createEdge(left, right, v0, v1) { + var edge = [null, null], + index = edges.push(edge) - 1; + edge.left = left; + edge.right = right; + if (v0) setEdgeEnd(edge, left, right, v0); + if (v1) setEdgeEnd(edge, right, left, v1); + cells[left.index].halfedges.push(index); + cells[right.index].halfedges.push(index); + return edge; + } + + function createBorderEdge(left, v0, v1) { + var edge = [v0, v1]; + edge.left = left; + return edge; + } + + function setEdgeEnd(edge, left, right, vertex) { + if (!edge[0] && !edge[1]) { + edge[0] = vertex; + edge.left = left; + edge.right = right; + } else if (edge.left === right) { + edge[1] = vertex; + } else { + edge[0] = vertex; + } + } + + // Liang–Barsky line clipping. + function clipEdge(edge, x0, y0, x1, y1) { + var a = edge[0], + b = edge[1], + ax = a[0], + ay = a[1], + bx = b[0], + by = b[1], + t0 = 0, + t1 = 1, + dx = bx - ax, + dy = by - ay, + r; + + r = x0 - ax; + if (!dx && r > 0) return; + r /= dx; + if (dx < 0) { + if (r < t0) return; + if (r < t1) t1 = r; + } else if (dx > 0) { + if (r > t1) return; + if (r > t0) t0 = r; + } + + r = x1 - ax; + if (!dx && r < 0) return; + r /= dx; + if (dx < 0) { + if (r > t1) return; + if (r > t0) t0 = r; + } else if (dx > 0) { + if (r < t0) return; + if (r < t1) t1 = r; + } + + r = y0 - ay; + if (!dy && r > 0) return; + r /= dy; + if (dy < 0) { + if (r < t0) return; + if (r < t1) t1 = r; + } else if (dy > 0) { + if (r > t1) return; + if (r > t0) t0 = r; + } + + r = y1 - ay; + if (!dy && r < 0) return; + r /= dy; + if (dy < 0) { + if (r > t1) return; + if (r > t0) t0 = r; + } else if (dy > 0) { + if (r < t0) return; + if (r < t1) t1 = r; + } + + if (!(t0 > 0) && !(t1 < 1)) return true; // TODO Better check? + + if (t0 > 0) edge[0] = [ax + t0 * dx, ay + t0 * dy]; + if (t1 < 1) edge[1] = [ax + t1 * dx, ay + t1 * dy]; + return true; + } + + function connectEdge(edge, x0, y0, x1, y1) { + var v1 = edge[1]; + if (v1) return true; + + var v0 = edge[0], + left = edge.left, + right = edge.right, + lx = left[0], + ly = left[1], + rx = right[0], + ry = right[1], + fx = (lx + rx) / 2, + fy = (ly + ry) / 2, + fm, + fb; + + if (ry === ly) { + if (fx < x0 || fx >= x1) return; + if (lx > rx) { + if (!v0) v0 = [fx, y0]; + else if (v0[1] >= y1) return; + v1 = [fx, y1]; + } else { + if (!v0) v0 = [fx, y1]; + else if (v0[1] < y0) return; + v1 = [fx, y0]; + } + } else { + fm = (lx - rx) / (ry - ly); + fb = fy - fm * fx; + if (fm < -1 || fm > 1) { + if (lx > rx) { + if (!v0) v0 = [(y0 - fb) / fm, y0]; + else if (v0[1] >= y1) return; + v1 = [(y1 - fb) / fm, y1]; + } else { + if (!v0) v0 = [(y1 - fb) / fm, y1]; + else if (v0[1] < y0) return; + v1 = [(y0 - fb) / fm, y0]; + } + } else { + if (ly < ry) { + if (!v0) v0 = [x0, fm * x0 + fb]; + else if (v0[0] >= x1) return; + v1 = [x1, fm * x1 + fb]; + } else { + if (!v0) v0 = [x1, fm * x1 + fb]; + else if (v0[0] < x0) return; + v1 = [x0, fm * x0 + fb]; + } + } + } + + edge[0] = v0; + edge[1] = v1; + return true; + } + + function clipEdges(x0, y0, x1, y1) { + var i = edges.length, + edge; + + while (i--) { + if (!connectEdge(edge = edges[i], x0, y0, x1, y1) + || !clipEdge(edge, x0, y0, x1, y1) + || !(Math.abs(edge[0][0] - edge[1][0]) > epsilon$3 + || Math.abs(edge[0][1] - edge[1][1]) > epsilon$3)) { + delete edges[i]; + } + } + } + + function createCell(site) { + return cells[site.index] = { + site: site, + halfedges: [] + }; + } + + function cellHalfedgeAngle(cell, edge) { + var site = cell.site, + va = edge.left, + vb = edge.right; + if (site === vb) vb = va, va = site; + if (vb) return Math.atan2(vb[1] - va[1], vb[0] - va[0]); + if (site === va) va = edge[1], vb = edge[0]; + else va = edge[0], vb = edge[1]; + return Math.atan2(va[0] - vb[0], vb[1] - va[1]); + } + + function cellHalfedgeStart(cell, edge) { + return edge[+(edge.left !== cell.site)]; + } + + function cellHalfedgeEnd(cell, edge) { + return edge[+(edge.left === cell.site)]; + } + + function sortCellHalfedges() { + for (var i = 0, n = cells.length, cell, halfedges, j, m; i < n; ++i) { + if ((cell = cells[i]) && (m = (halfedges = cell.halfedges).length)) { + var index = new Array(m), + array = new Array(m); + for (j = 0; j < m; ++j) index[j] = j, array[j] = cellHalfedgeAngle(cell, edges[halfedges[j]]); + index.sort(function(i, j) { return array[j] - array[i]; }); + for (j = 0; j < m; ++j) array[j] = halfedges[index[j]]; + for (j = 0; j < m; ++j) halfedges[j] = array[j]; + } + } + } + + function clipCells(x0, y0, x1, y1) { + var nCells = cells.length, + iCell, + cell, + site, + iHalfedge, + halfedges, + nHalfedges, + start, + startX, + startY, + end, + endX, + endY, + cover = true; + + for (iCell = 0; iCell < nCells; ++iCell) { + if (cell = cells[iCell]) { + site = cell.site; + halfedges = cell.halfedges; + iHalfedge = halfedges.length; + + // Remove any dangling clipped edges. + while (iHalfedge--) { + if (!edges[halfedges[iHalfedge]]) { + halfedges.splice(iHalfedge, 1); + } + } + + // Insert any border edges as necessary. + iHalfedge = 0, nHalfedges = halfedges.length; + while (iHalfedge < nHalfedges) { + end = cellHalfedgeEnd(cell, edges[halfedges[iHalfedge]]), endX = end[0], endY = end[1]; + start = cellHalfedgeStart(cell, edges[halfedges[++iHalfedge % nHalfedges]]), startX = start[0], startY = start[1]; + if (Math.abs(endX - startX) > epsilon$3 || Math.abs(endY - startY) > epsilon$3) { + halfedges.splice(iHalfedge, 0, edges.push(createBorderEdge(site, end, + Math.abs(endX - x0) < epsilon$3 && y1 - endY > epsilon$3 ? [x0, Math.abs(startX - x0) < epsilon$3 ? startY : y1] + : Math.abs(endY - y1) < epsilon$3 && x1 - endX > epsilon$3 ? [Math.abs(startY - y1) < epsilon$3 ? startX : x1, y1] + : Math.abs(endX - x1) < epsilon$3 && endY - y0 > epsilon$3 ? [x1, Math.abs(startX - x1) < epsilon$3 ? startY : y0] + : Math.abs(endY - y0) < epsilon$3 && endX - x0 > epsilon$3 ? [Math.abs(startY - y0) < epsilon$3 ? startX : x0, y0] + : null)) - 1); + ++nHalfedges; + } + } + + if (nHalfedges) cover = false; + } + } + + // If there weren’t any edges, have the closest site cover the extent. + // It doesn’t matter which corner of the extent we measure! + if (cover) { + var dx, dy, d2, dc = Infinity; + + for (iCell = 0, cover = null; iCell < nCells; ++iCell) { + if (cell = cells[iCell]) { + site = cell.site; + dx = site[0] - x0; + dy = site[1] - y0; + d2 = dx * dx + dy * dy; + if (d2 < dc) dc = d2, cover = cell; + } + } + + if (cover) { + var v00 = [x0, y0], v01 = [x0, y1], v11 = [x1, y1], v10 = [x1, y0]; + cover.halfedges.push( + edges.push(createBorderEdge(site = cover.site, v00, v01)) - 1, + edges.push(createBorderEdge(site, v01, v11)) - 1, + edges.push(createBorderEdge(site, v11, v10)) - 1, + edges.push(createBorderEdge(site, v10, v00)) - 1 + ); + } + } + + // Lastly delete any cells with no edges; these were entirely clipped. + for (iCell = 0; iCell < nCells; ++iCell) { + if (cell = cells[iCell]) { + if (!cell.halfedges.length) { + delete cells[iCell]; + } + } + } + } + + var circlePool = []; + + var firstCircle; + + function Circle() { + RedBlackNode(this); + this.x = + this.y = + this.arc = + this.site = + this.cy = null; + } + + function attachCircle(arc) { + var lArc = arc.P, + rArc = arc.N; + + if (!lArc || !rArc) return; + + var lSite = lArc.site, + cSite = arc.site, + rSite = rArc.site; + + if (lSite === rSite) return; + + var bx = cSite[0], + by = cSite[1], + ax = lSite[0] - bx, + ay = lSite[1] - by, + cx = rSite[0] - bx, + cy = rSite[1] - by; + + var d = 2 * (ax * cy - ay * cx); + if (d >= -epsilon2$1) return; + + var ha = ax * ax + ay * ay, + hc = cx * cx + cy * cy, + x = (cy * ha - ay * hc) / d, + y = (ax * hc - cx * ha) / d; + + var circle = circlePool.pop() || new Circle; + circle.arc = arc; + circle.site = cSite; + circle.x = x + bx; + circle.y = (circle.cy = y + by) + Math.sqrt(x * x + y * y); // y bottom + + arc.circle = circle; + + var before = null, + node = circles._; + + while (node) { + if (circle.y < node.y || (circle.y === node.y && circle.x <= node.x)) { + if (node.L) node = node.L; + else { before = node.P; break; } + } else { + if (node.R) node = node.R; + else { before = node; break; } + } + } + + circles.insert(before, circle); + if (!before) firstCircle = circle; + } + + function detachCircle(arc) { + var circle = arc.circle; + if (circle) { + if (!circle.P) firstCircle = circle.N; + circles.remove(circle); + circlePool.push(circle); + RedBlackNode(circle); + arc.circle = null; + } + } + + var beachPool = []; + + function Beach() { + RedBlackNode(this); + this.edge = + this.site = + this.circle = null; + } + + function createBeach(site) { + var beach = beachPool.pop() || new Beach; + beach.site = site; + return beach; + } + + function detachBeach(beach) { + detachCircle(beach); + beaches.remove(beach); + beachPool.push(beach); + RedBlackNode(beach); + } + + function removeBeach(beach) { + var circle = beach.circle, + x = circle.x, + y = circle.cy, + vertex = [x, y], + previous = beach.P, + next = beach.N, + disappearing = [beach]; + + detachBeach(beach); + + var lArc = previous; + while (lArc.circle + && Math.abs(x - lArc.circle.x) < epsilon$3 + && Math.abs(y - lArc.circle.cy) < epsilon$3) { + previous = lArc.P; + disappearing.unshift(lArc); + detachBeach(lArc); + lArc = previous; + } + + disappearing.unshift(lArc); + detachCircle(lArc); + + var rArc = next; + while (rArc.circle + && Math.abs(x - rArc.circle.x) < epsilon$3 + && Math.abs(y - rArc.circle.cy) < epsilon$3) { + next = rArc.N; + disappearing.push(rArc); + detachBeach(rArc); + rArc = next; + } + + disappearing.push(rArc); + detachCircle(rArc); + + var nArcs = disappearing.length, + iArc; + for (iArc = 1; iArc < nArcs; ++iArc) { + rArc = disappearing[iArc]; + lArc = disappearing[iArc - 1]; + setEdgeEnd(rArc.edge, lArc.site, rArc.site, vertex); + } + + lArc = disappearing[0]; + rArc = disappearing[nArcs - 1]; + rArc.edge = createEdge(lArc.site, rArc.site, null, vertex); + + attachCircle(lArc); + attachCircle(rArc); + } + + function addBeach(site) { + var x = site[0], + directrix = site[1], + lArc, + rArc, + dxl, + dxr, + node = beaches._; + + while (node) { + dxl = leftBreakPoint(node, directrix) - x; + if (dxl > epsilon$3) node = node.L; else { + dxr = x - rightBreakPoint(node, directrix); + if (dxr > epsilon$3) { + if (!node.R) { + lArc = node; + break; + } + node = node.R; + } else { + if (dxl > -epsilon$3) { + lArc = node.P; + rArc = node; + } else if (dxr > -epsilon$3) { + lArc = node; + rArc = node.N; + } else { + lArc = rArc = node; + } + break; + } + } + } + + createCell(site); + var newArc = createBeach(site); + beaches.insert(lArc, newArc); + + if (!lArc && !rArc) return; + + if (lArc === rArc) { + detachCircle(lArc); + rArc = createBeach(lArc.site); + beaches.insert(newArc, rArc); + newArc.edge = rArc.edge = createEdge(lArc.site, newArc.site); + attachCircle(lArc); + attachCircle(rArc); + return; + } + + if (!rArc) { // && lArc + newArc.edge = createEdge(lArc.site, newArc.site); + return; + } + + // else lArc !== rArc + detachCircle(lArc); + detachCircle(rArc); + + var lSite = lArc.site, + ax = lSite[0], + ay = lSite[1], + bx = site[0] - ax, + by = site[1] - ay, + rSite = rArc.site, + cx = rSite[0] - ax, + cy = rSite[1] - ay, + d = 2 * (bx * cy - by * cx), + hb = bx * bx + by * by, + hc = cx * cx + cy * cy, + vertex = [(cy * hb - by * hc) / d + ax, (bx * hc - cx * hb) / d + ay]; + + setEdgeEnd(rArc.edge, lSite, rSite, vertex); + newArc.edge = createEdge(lSite, site, null, vertex); + rArc.edge = createEdge(site, rSite, null, vertex); + attachCircle(lArc); + attachCircle(rArc); + } + + function leftBreakPoint(arc, directrix) { + var site = arc.site, + rfocx = site[0], + rfocy = site[1], + pby2 = rfocy - directrix; + + if (!pby2) return rfocx; + + var lArc = arc.P; + if (!lArc) return -Infinity; + + site = lArc.site; + var lfocx = site[0], + lfocy = site[1], + plby2 = lfocy - directrix; + + if (!plby2) return lfocx; + + var hl = lfocx - rfocx, + aby2 = 1 / pby2 - 1 / plby2, + b = hl / plby2; + + if (aby2) return (-b + Math.sqrt(b * b - 2 * aby2 * (hl * hl / (-2 * plby2) - lfocy + plby2 / 2 + rfocy - pby2 / 2))) / aby2 + rfocx; + + return (rfocx + lfocx) / 2; + } + + function rightBreakPoint(arc, directrix) { + var rArc = arc.N; + if (rArc) return leftBreakPoint(rArc, directrix); + var site = arc.site; + return site[1] === directrix ? site[0] : Infinity; + } + + var epsilon$3 = 1e-6; + var epsilon2$1 = 1e-12; + var beaches; + var cells; + var circles; + var edges; + + function triangleArea(a, b, c) { + return (a[0] - c[0]) * (b[1] - a[1]) - (a[0] - b[0]) * (c[1] - a[1]); + } + + function lexicographic(a, b) { + return b[1] - a[1] + || b[0] - a[0]; + } + + function Diagram(sites, extent) { + var site = sites.sort(lexicographic).pop(), + x, + y, + circle; + + edges = []; + cells = new Array(sites.length); + beaches = new RedBlackTree; + circles = new RedBlackTree; + + while (true) { + circle = firstCircle; + if (site && (!circle || site[1] < circle.y || (site[1] === circle.y && site[0] < circle.x))) { + if (site[0] !== x || site[1] !== y) { + addBeach(site); + x = site[0], y = site[1]; + } + site = sites.pop(); + } else if (circle) { + removeBeach(circle.arc); + } else { + break; + } + } + + sortCellHalfedges(); + + if (extent) { + var x0 = +extent[0][0], + y0 = +extent[0][1], + x1 = +extent[1][0], + y1 = +extent[1][1]; + clipEdges(x0, y0, x1, y1); + clipCells(x0, y0, x1, y1); + } + + this.edges = edges; + this.cells = cells; + + beaches = + circles = + edges = + cells = null; + } + + Diagram.prototype = { + constructor: Diagram, + + polygons: function() { + var edges = this.edges; + + return this.cells.map(function(cell) { + var polygon = cell.halfedges.map(function(i) { return cellHalfedgeStart(cell, edges[i]); }); + polygon.data = cell.site.data; + return polygon; + }); + }, + + triangles: function() { + var triangles = [], + edges = this.edges; + + this.cells.forEach(function(cell, i) { + var site = cell.site, + halfedges = cell.halfedges, + j = -1, + m = halfedges.length, + s0, + e1 = edges[halfedges[m - 1]], + s1 = e1.left === site ? e1.right : e1.left; + + while (++j < m) { + s0 = s1; + e1 = edges[halfedges[j]]; + s1 = e1.left === site ? e1.right : e1.left; + if (i < s0.index && i < s1.index && triangleArea(site, s0, s1) < 0) { + triangles.push([site.data, s0.data, s1.data]); + } + } + }); + + return triangles; + }, + + links: function() { + return this.edges.filter(function(edge) { + return edge.right; + }).map(function(edge) { + return { + source: edge.left.data, + target: edge.right.data + }; + }); + } + } + + function voronoi() { + var x = x$4, + y = y$4, + extent = null; + + function voronoi(data) { + return new Diagram(data.map(function(d, i) { + var s = [Math.round(x(d, i, data) / epsilon$3) * epsilon$3, Math.round(y(d, i, data) / epsilon$3) * epsilon$3]; + s.index = i; + s.data = d; + return s; + }), extent); + } + + voronoi.polygons = function(data) { + return voronoi(data).polygons(); + }; + + voronoi.links = function(data) { + return voronoi(data).links(); + }; + + voronoi.triangles = function(data) { + return voronoi(data).triangles(); + }; + + voronoi.x = function(_) { + return arguments.length ? (x = typeof _ === "function" ? _ : constant$8(+_), voronoi) : x; + }; + + voronoi.y = function(_) { + return arguments.length ? (y = typeof _ === "function" ? _ : constant$8(+_), voronoi) : y; + }; + + voronoi.extent = function(_) { + return arguments.length ? (extent = _ == null ? null : [[+_[0][0], +_[0][1]], [+_[1][0], +_[1][1]]], voronoi) : extent && [[extent[0][0], extent[0][1]], [extent[1][0], extent[1][1]]]; + }; + + voronoi.size = function(_) { + return arguments.length ? (extent = _ == null ? null : [[0, 0], [+_[0], +_[1]]], voronoi) : extent && [extent[1][0], extent[1][1]]; + }; + + return voronoi; + } + + function constant$9(x) { + return function() { + return x; + }; + } + + function ZoomEvent(target, type, transform) { + this.target = target; + this.type = type; + this.transform = transform; + } + + function Transform(k, x, y) { + this.k = k; + this.x = x; + this.y = y; + } + + Transform.prototype = { + constructor: Transform, + scale: function(k) { + return k === 1 ? this : new Transform(this.k * k, this.x, this.y); + }, + translate: function(x, y) { + return x === 0 & y === 0 ? this : new Transform(this.k, this.x + this.k * x, this.y + this.k * y); + }, + apply: function(point) { + return [point[0] * this.k + this.x, point[1] * this.k + this.y]; + }, + applyX: function(x) { + return x * this.k + this.x; + }, + applyY: function(y) { + return y * this.k + this.y; + }, + invert: function(location) { + return [(location[0] - this.x) / this.k, (location[1] - this.y) / this.k]; + }, + invertX: function(x) { + return (x - this.x) / this.k; + }, + invertY: function(y) { + return (y - this.y) / this.k; + }, + rescaleX: function(x) { + return x.copy().domain(x.range().map(this.invertX, this).map(x.invert, x)); + }, + rescaleY: function(y) { + return y.copy().domain(y.range().map(this.invertY, this).map(y.invert, y)); + }, + toString: function() { + return "translate(" + this.x + "," + this.y + ") scale(" + this.k + ")"; + } + }; + + var identity$6 = new Transform(1, 0, 0); + + transform.prototype = Transform.prototype; + + function transform(node) { + return node.__zoom || identity$6; + } + + function nopropagation$1() { + exports.event.stopImmediatePropagation(); + } + + function noevent$1() { + exports.event.preventDefault(); + exports.event.stopImmediatePropagation(); + } + + // Ignore right-click, since that should open the context menu. + function defaultFilter$1() { + return !exports.event.button; + } + + function defaultExtent() { + var e = this, w, h; + if (e instanceof SVGElement) { + e = e.ownerSVGElement || e; + w = e.width.baseVal.value; + h = e.height.baseVal.value; + } else { + w = e.clientWidth; + h = e.clientHeight; + } + return [[0, 0], [w, h]]; + } + + function defaultTransform() { + return this.__zoom || identity$6; + } + + function zoom() { + var filter = defaultFilter$1, + extent = defaultExtent, + k0 = 0, + k1 = Infinity, + x0 = -k1, + x1 = k1, + y0 = x0, + y1 = x1, + duration = 250, + gestures = [], + listeners = dispatch("start", "zoom", "end"), + mousemoving, + mousePoint, + mouseLocation, + touchstarting, + touchending, + touchDelay = 500, + wheelTimer, + wheelDelay = 150; + + function zoom(selection) { + selection + .on("wheel.zoom", wheeled) + .on("mousedown.zoom", mousedowned) + .on("dblclick.zoom", dblclicked) + .on("touchstart.zoom", touchstarted) + .on("touchmove.zoom", touchmoved) + .on("touchend.zoom touchcancel.zoom", touchended) + .style("-webkit-tap-highlight-color", "rgba(0,0,0,0)") + .property("__zoom", defaultTransform); + } + + zoom.transform = function(collection, transform) { + var selection = collection.selection ? collection.selection() : collection; + selection.property("__zoom", defaultTransform); + if (collection !== selection) { + schedule(collection, transform); + } else { + selection.interrupt().each(function() { + gesture(this, arguments) + .start() + .zoom(null, typeof transform === "function" ? transform.apply(this, arguments) : transform) + .end(); + }); + } + }; + + zoom.scaleBy = function(selection, k) { + zoom.scaleTo(selection, function() { + var k0 = this.__zoom.k, + k1 = typeof k === "function" ? k.apply(this, arguments) : k; + return k0 * k1; + }); + }; + + zoom.scaleTo = function(selection, k) { + zoom.transform(selection, function() { + var e = extent.apply(this, arguments), + t0 = this.__zoom, + p0 = centroid(e), + p1 = t0.invert(p0), + k1 = typeof k === "function" ? k.apply(this, arguments) : k; + return constrain(translate(scale(t0, k1), p0, p1), e); + }); + }; + + zoom.translateBy = function(selection, x, y) { + zoom.transform(selection, function() { + return constrain(this.__zoom.translate( + typeof x === "function" ? x.apply(this, arguments) : x, + typeof y === "function" ? y.apply(this, arguments) : y + ), extent.apply(this, arguments)); + }); + }; + + function scale(transform, k) { + k = Math.max(k0, Math.min(k1, k)); + return k === transform.k ? transform : new Transform(k, transform.x, transform.y); + } + + function translate(transform, p0, p1) { + var x = p0[0] - p1[0] * transform.k, y = p0[1] - p1[1] * transform.k; + return x === transform.x && y === transform.y ? transform : new Transform(transform.k, x, y); + } + + function constrain(transform, extent) { + var dx = Math.min(0, transform.invertX(extent[0][0]) - x0) || Math.max(0, transform.invertX(extent[1][0]) - x1), + dy = Math.min(0, transform.invertY(extent[0][1]) - y0) || Math.max(0, transform.invertY(extent[1][1]) - y1); + return dx || dy ? transform.translate(dx, dy) : transform; + } + + function centroid(extent) { + return [(+extent[0][0] + +extent[1][0]) / 2, (+extent[0][1] + +extent[1][1]) / 2]; + } + + function schedule(transition, transform, center) { + transition + .on("start.zoom", function() { gesture(this, arguments).start(); }) + .on("interrupt.zoom end.zoom", function() { gesture(this, arguments).end(); }) + .tween("zoom", function() { + var that = this, + args = arguments, + g = gesture(that, args), + e = extent.apply(that, args), + p = center || centroid(e), + w = Math.max(e[1][0] - e[0][0], e[1][1] - e[0][1]), + a = that.__zoom, + b = typeof transform === "function" ? transform.apply(that, args) : transform, + i = interpolateZoom(a.invert(p).concat(w / a.k), b.invert(p).concat(w / b.k)); + return function(t) { + if (t === 1) t = b; // Avoid rounding error on end. + else { var l = i(t), k = w / l[2]; t = new Transform(k, p[0] - l[0] * k, p[1] - l[1] * k); } + g.zoom(null, t); + }; + }); + } + + function gesture(that, args) { + for (var i = 0, n = gestures.length, g; i < n; ++i) { + if ((g = gestures[i]).that === that) { + return g; + } + } + return new Gesture(that, args); + } + + function Gesture(that, args) { + this.that = that; + this.args = args; + this.index = -1; + this.active = 0; + } + + Gesture.prototype = { + start: function() { + if (++this.active === 1) { + this.index = gestures.push(this) - 1; + this.emit("start"); + } + return this; + }, + zoom: function(key, transform) { + if (mousePoint && key !== "mouse") mouseLocation = transform.invert(mousePoint); + if (this.touch0 && key !== "touch") this.touch0[1] = transform.invert(this.touch0[0]); + if (this.touch1 && key !== "touch") this.touch1[1] = transform.invert(this.touch1[0]); + this.that.__zoom = transform; + this.emit("zoom"); + return this; + }, + end: function() { + if (--this.active === 0) { + gestures.splice(this.index, 1); + mousePoint = mouseLocation = null; + this.index = -1; + this.emit("end"); + } + return this; + }, + emit: function(type) { + customEvent(new ZoomEvent(zoom, type, this.that.__zoom), listeners.apply, listeners, [type, this.that, this.args]); + } + }; + + function wheeled() { + if (!filter.apply(this, arguments)) return; + var g = gesture(this, arguments), + t = this.__zoom, + k = Math.max(k0, Math.min(k1, t.k * Math.pow(2, -exports.event.deltaY * (exports.event.deltaMode ? 120 : 1) / 500))); + + // If the mouse is in the same location as before, reuse it. + // If there were recent wheel events, reset the wheel idle timeout. + if (wheelTimer) { + var point = mouse(this); + if (mousePoint[0] !== point[0] || mousePoint[1] !== point[1]) { + mouseLocation = t.invert(mousePoint = point); + } + clearTimeout(wheelTimer); + } + + // If this wheel event won’t trigger a transform change, ignore it. + else if (t.k === k) return; + + // Otherwise, capture the mouse point and location at the start. + else { + g.extent = extent.apply(this, arguments); + mouseLocation = t.invert(mousePoint = mouse(this)); + interrupt(this); + g.start(); + } + + noevent$1(); + wheelTimer = setTimeout(wheelidled, wheelDelay); + g.zoom("mouse", constrain(translate(scale(t, k), mousePoint, mouseLocation), g.extent)); + + function wheelidled() { + wheelTimer = null; + g.end(); + } + } + + function mousedowned() { + if (touchending || !filter.apply(this, arguments)) return; + var g = gesture(this, arguments), + v = select(exports.event.view).on("mousemove.zoom", mousemoved, true).on("mouseup.zoom", mouseupped, true); + + dragDisable(exports.event.view); + nopropagation$1(); + mousemoving = false; + g.extent = extent.apply(this, arguments); + mouseLocation = this.__zoom.invert(mousePoint = mouse(this)); + interrupt(this); + g.start(); + + function mousemoved() { + noevent$1(); + mousemoving = true; + g.zoom("mouse", constrain(translate(g.that.__zoom, mousePoint = mouse(g.that), mouseLocation), g.extent)); + } + + function mouseupped() { + v.on("mousemove.zoom mouseup.zoom", null); + dragEnable(exports.event.view, mousemoving); + noevent$1(); + g.end(); + } + } + + function dblclicked() { + if (!filter.apply(this, arguments)) return; + var t0 = this.__zoom, + p0 = mouse(this), + p1 = t0.invert(p0), + k1 = t0.k * (exports.event.shiftKey ? 0.5 : 2), + t1 = constrain(translate(scale(t0, k1), p0, p1), extent.apply(this, arguments)); + + noevent$1(); + if (duration > 0) select(this).transition().duration(duration).call(schedule, t1, p0); + else select(this).call(zoom.transform, t1); + } + + function touchstarted() { + if (!filter.apply(this, arguments)) return; + var g = gesture(this, arguments), + touches = exports.event.changedTouches, + n = touches.length, i, t, p; + + nopropagation$1(); + for (i = 0; i < n; ++i) { + t = touches[i], p = touch(this, touches, t.identifier); + p = [p, this.__zoom.invert(p), t.identifier]; + if (!g.touch0) g.touch0 = p; + else if (!g.touch1) g.touch1 = p; + } + if (touchstarting) { + touchstarting = clearTimeout(touchstarting); + if (!g.touch1) return g.end(), dblclicked.apply(this, arguments); + } + if (exports.event.touches.length === n) { + touchstarting = setTimeout(function() { touchstarting = null; }, touchDelay); + interrupt(this); + g.extent = extent.apply(this, arguments); + g.start(); + } + } + + function touchmoved() { + var g = gesture(this, arguments), + touches = exports.event.changedTouches, + n = touches.length, i, t, p, l; + + noevent$1(); + if (touchstarting) touchstarting = clearTimeout(touchstarting); + for (i = 0; i < n; ++i) { + t = touches[i], p = touch(this, touches, t.identifier); + if (g.touch0 && g.touch0[2] === t.identifier) g.touch0[0] = p; + else if (g.touch1 && g.touch1[2] === t.identifier) g.touch1[0] = p; + } + t = g.that.__zoom; + if (g.touch1) { + var p0 = g.touch0[0], l0 = g.touch0[1], + p1 = g.touch1[0], l1 = g.touch1[1], + dp = (dp = p1[0] - p0[0]) * dp + (dp = p1[1] - p0[1]) * dp, + dl = (dl = l1[0] - l0[0]) * dl + (dl = l1[1] - l0[1]) * dl; + t = scale(t, Math.sqrt(dp / dl)); + p = [(p0[0] + p1[0]) / 2, (p0[1] + p1[1]) / 2]; + l = [(l0[0] + l1[0]) / 2, (l0[1] + l1[1]) / 2]; + } + else if (g.touch0) p = g.touch0[0], l = g.touch0[1]; + else return; + g.zoom("touch", constrain(translate(t, p, l), g.extent)); + } + + function touchended() { + var g = gesture(this, arguments), + touches = exports.event.changedTouches, + n = touches.length, i, t; + + nopropagation$1(); + if (touchending) clearTimeout(touchending); + touchending = setTimeout(function() { touchending = null; }, touchDelay); + for (i = 0; i < n; ++i) { + t = touches[i]; + if (g.touch0 && g.touch0[2] === t.identifier) delete g.touch0; + else if (g.touch1 && g.touch1[2] === t.identifier) delete g.touch1; + } + if (g.touch1 && !g.touch0) g.touch0 = g.touch1, delete g.touch1; + if (!g.touch0) g.end(); + } + + zoom.filter = function(_) { + return arguments.length ? (filter = typeof _ === "function" ? _ : constant$9(!!_), zoom) : filter; + }; + + zoom.extent = function(_) { + return arguments.length ? (extent = typeof _ === "function" ? _ : constant$9([[+_[0][0], +_[0][1]], [+_[1][0], +_[1][1]]]), zoom) : extent; + }; + + zoom.scaleExtent = function(_) { + return arguments.length ? (k0 = +_[0], k1 = +_[1], zoom) : [k0, k1]; + }; + + zoom.translateExtent = function(_) { + return arguments.length ? (x0 = +_[0][0], x1 = +_[1][0], y0 = +_[0][1], y1 = +_[1][1], zoom) : [[x0, y0], [x1, y1]]; + }; + + zoom.duration = function(_) { + return arguments.length ? (duration = +_, zoom) : duration; + }; + + zoom.on = function() { + var value = listeners.on.apply(listeners, arguments); + return value === listeners ? zoom : value; + }; + + return zoom; + } + + function constant$10(x) { + return function() { + return x; + }; + } + + function BrushEvent(target, type, selection) { + this.target = target; + this.type = type; + this.selection = selection; + } + + function nopropagation$2() { + exports.event.stopImmediatePropagation(); + } + + function noevent$2() { + exports.event.preventDefault(); + exports.event.stopImmediatePropagation(); + } + + var MODE_DRAG = {name: "drag"}; + var MODE_SPACE = {name: "space"}; + var MODE_HANDLE = {name: "handle"}; + var MODE_CENTER = {name: "center"}; + var X = { + name: "x", + handles: ["e", "w"].map(type$1), + input: function(x, e) { return x && [[x[0], e[0][1]], [x[1], e[1][1]]]; }, + output: function(xy) { return xy && [xy[0][0], xy[1][0]]; } + }; + + var Y = { + name: "y", + handles: ["n", "s"].map(type$1), + input: function(y, e) { return y && [[e[0][0], y[0]], [e[1][0], y[1]]]; }, + output: function(xy) { return xy && [xy[0][1], xy[1][1]]; } + }; + + var XY = { + name: "xy", + handles: ["n", "e", "s", "w", "nw", "ne", "se", "sw"].map(type$1), + input: function(xy) { return xy; }, + output: function(xy) { return xy; } + }; + + var cursors = { + overlay: "crosshair", + selection: "move", + n: "ns-resize", + e: "ew-resize", + s: "ns-resize", + w: "ew-resize", + nw: "nwse-resize", + ne: "nesw-resize", + se: "nwse-resize", + sw: "nesw-resize" + }; + + var flipX = { + e: "w", + w: "e", + nw: "ne", + ne: "nw", + se: "sw", + sw: "se" + }; + + var flipY = { + n: "s", + s: "n", + nw: "sw", + ne: "se", + se: "ne", + sw: "nw" + }; + + var signsX = { + overlay: +1, + selection: +1, + n: null, + e: +1, + s: null, + w: -1, + nw: -1, + ne: +1, + se: +1, + sw: -1 + }; + + var signsY = { + overlay: +1, + selection: +1, + n: -1, + e: null, + s: +1, + w: null, + nw: -1, + ne: -1, + se: +1, + sw: +1 + }; + + function type$1(t) { + return {type: t}; + } + + // Ignore right-click, since that should open the context menu. + function defaultFilter$2() { + return !exports.event.button; + } + + function defaultExtent$1() { + var svg = this.ownerSVGElement || this; + return [[0, 0], [svg.width.baseVal.value, svg.height.baseVal.value]]; + } + + // Like d3.local, but with the name “__brush” rather than auto-generated. + function local$1(node) { + while (!node.__brush) if (!(node = node.parentNode)) return; + return node.__brush; + } + + function empty$1(extent) { + return extent[0][0] === extent[1][0] + || extent[0][1] === extent[1][1]; + } + + function brushSelection(node) { + var state = node.__brush; + return state ? state.dim.output(state.selection) : null; + } + + function brushX() { + return brush$1(X); + } + + function brushY() { + return brush$1(Y); + } + + function brush() { + return brush$1(XY); + } + + function brush$1(dim) { + var extent = defaultExtent$1, + filter = defaultFilter$2, + listeners = dispatch(brush, "start", "brush", "end"), + handleSize = 6, + touchending; + + function brush(group) { + var overlay = group + .property("__brush", initialize) + .selectAll(".overlay") + .data([type$1("overlay")]); + + overlay.enter().append("rect") + .attr("class", "overlay") + .attr("pointer-events", "all") + .attr("cursor", cursors.overlay) + .merge(overlay) + .each(function() { + var extent = local$1(this).extent; + select(this) + .attr("x", extent[0][0]) + .attr("y", extent[0][1]) + .attr("width", extent[1][0] - extent[0][0]) + .attr("height", extent[1][1] - extent[0][1]); + }); + + group.selectAll(".selection") + .data([type$1("selection")]) + .enter().append("rect") + .attr("class", "selection") + .attr("cursor", cursors.selection) + .attr("fill", "#777") + .attr("fill-opacity", 0.3) + .attr("stroke", "#fff") + .attr("shape-rendering", "crispEdges"); + + var handle = group.selectAll(".handle") + .data(dim.handles, function(d) { return d.type; }); + + handle.exit().remove(); + + handle.enter().append("rect") + .attr("class", function(d) { return "handle handle--" + d.type; }) + .attr("cursor", function(d) { return cursors[d.type]; }); + + group + .each(redraw) + .attr("fill", "none") + .attr("pointer-events", "all") + .style("-webkit-tap-highlight-color", "rgba(0,0,0,0)") + .on("mousedown.brush touchstart.brush", started); + } + + brush.move = function(group, selection) { + if (group.selection) { + group + .on("start.brush", function() { emitter(this, arguments).beforestart().start(); }) + .on("interrupt.brush end.brush", function() { emitter(this, arguments).end(); }) + .tween("brush", function() { + var that = this, + state = that.__brush, + emit = emitter(that, arguments), + selection0 = state.selection, + selection1 = dim.input(typeof selection === "function" ? selection.apply(this, arguments) : selection, state.extent), + i = interpolate(selection0, selection1); + + function tween(t) { + state.selection = t === 1 && empty$1(selection1) ? null : i(t); + redraw.call(that); + emit.brush(); + } + + return selection0 && selection1 ? tween : tween(1); + }); + } else { + group + .each(function() { + var that = this, + args = arguments, + state = that.__brush, + selection1 = dim.input(typeof selection === "function" ? selection.apply(that, args) : selection, state.extent), + emit = emitter(that, args).beforestart(); + + interrupt(that); + state.selection = selection1 == null || empty$1(selection1) ? null : selection1; + redraw.call(that); + emit.start().brush().end(); + }); + } + }; + + function redraw() { + var group = select(this), + selection = local$1(this).selection; + + if (selection) { + group.selectAll(".selection") + .style("display", null) + .attr("x", selection[0][0]) + .attr("y", selection[0][1]) + .attr("width", selection[1][0] - selection[0][0]) + .attr("height", selection[1][1] - selection[0][1]); + + group.selectAll(".handle") + .style("display", null) + .attr("x", function(d) { return d.type[d.type.length - 1] === "e" ? selection[1][0] - handleSize / 2 : selection[0][0] - handleSize / 2; }) + .attr("y", function(d) { return d.type[0] === "s" ? selection[1][1] - handleSize / 2 : selection[0][1] - handleSize / 2; }) + .attr("width", function(d) { return d.type === "n" || d.type === "s" ? selection[1][0] - selection[0][0] + handleSize : handleSize; }) + .attr("height", function(d) { return d.type === "e" || d.type === "w" ? selection[1][1] - selection[0][1] + handleSize : handleSize; }); + } + + else { + group.selectAll(".selection,.handle") + .style("display", "none") + .attr("x", null) + .attr("y", null) + .attr("width", null) + .attr("height", null); + } + } + + function emitter(that, args) { + return that.__brush.emitter || new Emitter(that, args); + } + + function Emitter(that, args) { + this.that = that; + this.args = args; + this.state = that.__brush; + this.active = 0; + } + + Emitter.prototype = { + beforestart: function() { + if (++this.active === 1) this.state.emitter = this, this.starting = true; + return this; + }, + start: function() { + if (this.starting) this.starting = false, this.emit("start"); + return this; + }, + brush: function() { + this.emit("brush"); + return this; + }, + end: function() { + if (--this.active === 0) delete this.state.emitter, this.emit("end"); + return this; + }, + emit: function(type) { + customEvent(new BrushEvent(brush, type, dim.output(this.state.selection)), listeners.apply, listeners, [type, this.that, this.args]); + } + }; + + function started() { + if (exports.event.touches) { if (exports.event.changedTouches.length < exports.event.touches.length) return noevent$2(); } + else if (touchending) return; + if (!filter.apply(this, arguments)) return; + + var that = this, + type = exports.event.target.__data__.type, + mode = (exports.event.metaKey ? type = "overlay" : type) === "selection" ? MODE_DRAG : (exports.event.altKey ? MODE_CENTER : MODE_HANDLE), + signX = dim === Y ? null : signsX[type], + signY = dim === X ? null : signsY[type], + state = local$1(that), + extent = state.extent, + selection = state.selection, + W = extent[0][0], w0, w1, + N = extent[0][1], n0, n1, + E = extent[1][0], e0, e1, + S = extent[1][1], s0, s1, + dx, + dy, + moving, + shifting = signX && signY && exports.event.shiftKey, + lockX, + lockY, + point0 = mouse(that), + point = point0, + emit = emitter(that, arguments).beforestart(); + + if (type === "overlay") { + state.selection = selection = [ + [w0 = dim === Y ? W : point0[0], n0 = dim === X ? N : point0[1]], + [e0 = dim === Y ? E : w0, s0 = dim === X ? S : n0] + ]; + } else { + w0 = selection[0][0]; + n0 = selection[0][1]; + e0 = selection[1][0]; + s0 = selection[1][1]; + } + + w1 = w0; + n1 = n0; + e1 = e0; + s1 = s0; + + var group = select(that) + .attr("pointer-events", "none"); + + var overlay = group.selectAll(".overlay") + .attr("cursor", cursors[type]); + + if (exports.event.touches) { + group + .on("touchmove.brush", moved, true) + .on("touchend.brush touchcancel.brush", ended, true); + } else { + var view = select(exports.event.view) + .on("keydown.brush", keydowned, true) + .on("keyup.brush", keyupped, true) + .on("mousemove.brush", moved, true) + .on("mouseup.brush", ended, true); + + dragDisable(exports.event.view); + } + + nopropagation$2(); + interrupt(that); + redraw.call(that); + emit.start(); + + function moved() { + var point1 = mouse(that); + if (shifting && !lockX && !lockY) { + if (Math.abs(point1[0] - point[0]) > Math.abs(point1[1] - point[1])) lockY = true; + else lockX = true; + } + point = point1; + moving = true; + noevent$2(); + move(); + } + + function move() { + var t; + + dx = point[0] - point0[0]; + dy = point[1] - point0[1]; + + switch (mode) { + case MODE_SPACE: + case MODE_DRAG: { + if (signX) dx = Math.max(W - w0, Math.min(E - e0, dx)), w1 = w0 + dx, e1 = e0 + dx; + if (signY) dy = Math.max(N - n0, Math.min(S - s0, dy)), n1 = n0 + dy, s1 = s0 + dy; + break; + } + case MODE_HANDLE: { + if (signX < 0) dx = Math.max(W - w0, Math.min(E - w0, dx)), w1 = w0 + dx, e1 = e0; + else if (signX > 0) dx = Math.max(W - e0, Math.min(E - e0, dx)), w1 = w0, e1 = e0 + dx; + if (signY < 0) dy = Math.max(N - n0, Math.min(S - n0, dy)), n1 = n0 + dy, s1 = s0; + else if (signY > 0) dy = Math.max(N - s0, Math.min(S - s0, dy)), n1 = n0, s1 = s0 + dy; + break; + } + case MODE_CENTER: { + if (signX) w1 = Math.max(W, Math.min(E, w0 - dx * signX)), e1 = Math.max(W, Math.min(E, e0 + dx * signX)); + if (signY) n1 = Math.max(N, Math.min(S, n0 - dy * signY)), s1 = Math.max(N, Math.min(S, s0 + dy * signY)); + break; + } + } + + if (e1 < w1) { + signX *= -1; + t = w0, w0 = e0, e0 = t; + t = w1, w1 = e1, e1 = t; + if (type in flipX) overlay.attr("cursor", cursors[type = flipX[type]]); + } + + if (s1 < n1) { + signY *= -1; + t = n0, n0 = s0, s0 = t; + t = n1, n1 = s1, s1 = t; + if (type in flipY) overlay.attr("cursor", cursors[type = flipY[type]]); + } + + selection = state.selection; // May be set by brush.move! + + if (lockX) w1 = selection[0][0], e1 = selection[1][0]; + if (lockY) n1 = selection[0][1], s1 = selection[1][1]; + + if (selection[0][0] !== w1 + || selection[0][1] !== n1 + || selection[1][0] !== e1 + || selection[1][1] !== s1) { + state.selection = [[w1, n1], [e1, s1]]; + redraw.call(that); + emit.brush(); + } + } + + function ended() { + nopropagation$2(); + if (exports.event.touches) { + if (exports.event.touches.length) return; + if (touchending) clearTimeout(touchending); + touchending = setTimeout(function() { touchending = null; }, 500); // Ghost clicks are delayed! + group.on("touchmove.brush touchend.brush touchcancel.brush", null); + } else { + dragEnable(exports.event.view, moving); + view.on("keydown.brush keyup.brush mousemove.brush mouseup.brush", null); + } + group.attr("pointer-events", "all"); + overlay.attr("cursor", cursors.overlay); + if (empty$1(selection)) state.selection = null, redraw.call(that); + emit.end(); + } + + function keydowned() { + switch (exports.event.keyCode) { + case 16: { // SHIFT + shifting = signX && signY; + break; + } + case 18: { // ALT + if (mode === MODE_HANDLE) { + if (signX) e0 = e1 - dx * signX, w0 = w1 + dx * signX; + if (signY) s0 = s1 - dy * signY, n0 = n1 + dy * signY; + mode = MODE_CENTER; + move(); + } + break; + } + case 32: { // SPACE; takes priority over ALT + if (mode === MODE_HANDLE || mode === MODE_CENTER) { + if (signX < 0) e0 = e1 - dx; else if (signX > 0) w0 = w1 - dx; + if (signY < 0) s0 = s1 - dy; else if (signY > 0) n0 = n1 - dy; + mode = MODE_SPACE; + overlay.attr("cursor", cursors.selection); + move(); + } + break; + } + default: return; + } + noevent$2(); + } + + function keyupped() { + switch (exports.event.keyCode) { + case 16: { // SHIFT + if (shifting) { + lockX = lockY = shifting = false; + move(); + } + break; + } + case 18: { // ALT + if (mode === MODE_CENTER) { + if (signX < 0) e0 = e1; else if (signX > 0) w0 = w1; + if (signY < 0) s0 = s1; else if (signY > 0) n0 = n1; + mode = MODE_HANDLE; + move(); + } + break; + } + case 32: { // SPACE + if (mode === MODE_SPACE) { + if (exports.event.altKey) { + if (signX) e0 = e1 - dx * signX, w0 = w1 + dx * signX; + if (signY) s0 = s1 - dy * signY, n0 = n1 + dy * signY; + mode = MODE_CENTER; + } else { + if (signX < 0) e0 = e1; else if (signX > 0) w0 = w1; + if (signY < 0) s0 = s1; else if (signY > 0) n0 = n1; + mode = MODE_HANDLE; + } + overlay.attr("cursor", cursors[type]); + move(); + } + break; + } + default: return; + } + noevent$2(); + } + } + + function initialize() { + var state = this.__brush || {selection: null}; + state.extent = extent.apply(this, arguments); + state.dim = dim; + return state; + } + + brush.extent = function(_) { + return arguments.length ? (extent = typeof _ === "function" ? _ : constant$10([[+_[0][0], +_[0][1]], [+_[1][0], +_[1][1]]]), brush) : extent; + }; + + brush.filter = function(_) { + return arguments.length ? (filter = typeof _ === "function" ? _ : constant$10(!!_), brush) : filter; + }; + + brush.handleSize = function(_) { + return arguments.length ? (handleSize = +_, brush) : handleSize; + }; + + brush.on = function() { + var value = listeners.on.apply(listeners, arguments); + return value === listeners ? brush : value; + }; + + return brush; + } + + // Adds floating point numbers with twice the normal precision. + // Reference: J. R. Shewchuk, Adaptive Precision Floating-Point Arithmetic and + // Fast Robust Geometric Predicates, Discrete & Computational Geometry 18(3) + // 305–363 (1997). + // Code adapted from GeographicLib by Charles F. F. Karney, + // http://geographiclib.sourceforge.net/ + + function adder() { + return new Adder; + } + + function Adder() { + this.reset(); + } + + Adder.prototype = { + constructor: Adder, + reset: function() { + this.s = // rounded value + this.t = 0; // exact error + }, + add: function(y) { + add$1(temp, y, this.t); + add$1(this, temp.s, this.s); + if (this.s) this.t += temp.t; + else this.s = temp.t; + }, + valueOf: function() { + return this.s; + } + }; + + var temp = new Adder; + + function add$1(adder, a, b) { + var x = adder.s = a + b, + bv = x - a, + av = x - bv; + adder.t = (a - av) + (b - bv); + } + + var epsilon$4 = 1e-6; + var epsilon2$2 = 1e-12; + var pi$3 = Math.PI; + var halfPi$2 = pi$3 / 2; + var quarterPi = pi$3 / 4; + var tau$3 = pi$3 * 2; + + var degrees$1 = 180 / pi$3; + var radians = pi$3 / 180; + + var abs = Math.abs; + var atan = Math.atan; + var atan2 = Math.atan2; + var cos = Math.cos; + var ceil = Math.ceil; + var exp = Math.exp; + var log$1 = Math.log; + var pow$1 = Math.pow; + var sin = Math.sin; + var sign$1 = Math.sign || function(x) { return x > 0 ? 1 : x < 0 ? -1 : 0; }; + var sqrt$1 = Math.sqrt; + var tan = Math.tan; + + function acos(x) { + return x > 1 ? 0 : x < -1 ? pi$3 : Math.acos(x); + } + + function asin$1(x) { + return x > 1 ? halfPi$2 : x < -1 ? -halfPi$2 : Math.asin(x); + } + + function haversin(x) { + return (x = sin(x / 2)) * x; + } + + function noop$2() {} + + function streamGeometry(geometry, stream) { + if (geometry && streamGeometryType.hasOwnProperty(geometry.type)) { + streamGeometryType[geometry.type](geometry, stream); + } + } + + var streamObjectType = { + Feature: function(feature, stream) { + streamGeometry(feature.geometry, stream); + }, + FeatureCollection: function(object, stream) { + var features = object.features, i = -1, n = features.length; + while (++i < n) streamGeometry(features[i].geometry, stream); + } + }; + + var streamGeometryType = { + Sphere: function(object, stream) { + stream.sphere(); + }, + Point: function(object, stream) { + object = object.coordinates; + stream.point(object[0], object[1], object[2]); + }, + MultiPoint: function(object, stream) { + var coordinates = object.coordinates, i = -1, n = coordinates.length; + while (++i < n) object = coordinates[i], stream.point(object[0], object[1], object[2]); + }, + LineString: function(object, stream) { + streamLine(object.coordinates, stream, 0); + }, + MultiLineString: function(object, stream) { + var coordinates = object.coordinates, i = -1, n = coordinates.length; + while (++i < n) streamLine(coordinates[i], stream, 0); + }, + Polygon: function(object, stream) { + streamPolygon(object.coordinates, stream); + }, + MultiPolygon: function(object, stream) { + var coordinates = object.coordinates, i = -1, n = coordinates.length; + while (++i < n) streamPolygon(coordinates[i], stream); + }, + GeometryCollection: function(object, stream) { + var geometries = object.geometries, i = -1, n = geometries.length; + while (++i < n) streamGeometry(geometries[i], stream); + } + }; + + function streamLine(coordinates, stream, closed) { + var i = -1, n = coordinates.length - closed, coordinate; + stream.lineStart(); + while (++i < n) coordinate = coordinates[i], stream.point(coordinate[0], coordinate[1], coordinate[2]); + stream.lineEnd(); + } + + function streamPolygon(coordinates, stream) { + var i = -1, n = coordinates.length; + stream.polygonStart(); + while (++i < n) streamLine(coordinates[i], stream, 1); + stream.polygonEnd(); + } + + function stream(object, stream) { + if (object && streamObjectType.hasOwnProperty(object.type)) { + streamObjectType[object.type](object, stream); + } else { + streamGeometry(object, stream); + } + } + + var areaRingSum; + + var areaSum; + var lambda00; + var phi00; + var lambda0; + var cosPhi0; + var sinPhi0; + var areaStream = { + point: noop$2, + lineStart: noop$2, + lineEnd: noop$2, + polygonStart: function() { + areaRingSum.reset(); + areaStream.lineStart = areaRingStart; + areaStream.lineEnd = areaRingEnd; + }, + polygonEnd: function() { + var areaRing = +areaRingSum; + areaSum.add(areaRing < 0 ? tau$3 + areaRing : areaRing); + this.lineStart = this.lineEnd = this.point = noop$2; + }, + sphere: function() { + areaSum.add(tau$3); + } + }; + + function areaRingStart() { + areaStream.point = areaPointFirst; + } + + function areaRingEnd() { + areaPoint(lambda00, phi00); + } + + function areaPointFirst(lambda, phi) { + areaStream.point = areaPoint; + lambda00 = lambda, phi00 = phi; + lambda *= radians, phi *= radians; + lambda0 = lambda, cosPhi0 = cos(phi = phi / 2 + quarterPi), sinPhi0 = sin(phi); + } + + function areaPoint(lambda, phi) { + lambda *= radians, phi *= radians; + phi = phi / 2 + quarterPi; // half the angular distance from south pole + + // Spherical excess E for a spherical triangle with vertices: south pole, + // previous point, current point. Uses a formula derived from Cagnoli’s + // theorem. See Todhunter, Spherical Trig. (1871), Sec. 103, Eq. (2). + var dLambda = lambda - lambda0, + sdLambda = dLambda >= 0 ? 1 : -1, + adLambda = sdLambda * dLambda, + cosPhi = cos(phi), + sinPhi = sin(phi), + k = sinPhi0 * sinPhi, + u = cosPhi0 * cosPhi + k * cos(adLambda), + v = k * sdLambda * sin(adLambda); + areaRingSum.add(atan2(v, u)); + + // Advance the previous points. + lambda0 = lambda, cosPhi0 = cosPhi, sinPhi0 = sinPhi; + } + + function area$2(object) { + if (areaSum) areaSum.reset(); + else areaSum = adder(), areaRingSum = adder(); + stream(object, areaStream); + return areaSum * 2; + } + + function spherical(cartesian) { + return [atan2(cartesian[1], cartesian[0]), asin$1(cartesian[2])]; + } + + function cartesian(spherical) { + var lambda = spherical[0], phi = spherical[1], cosPhi = cos(phi); + return [cosPhi * cos(lambda), cosPhi * sin(lambda), sin(phi)]; + } + + function cartesianDot(a, b) { + return a[0] * b[0] + a[1] * b[1] + a[2] * b[2]; + } + + function cartesianCross(a, b) { + return [a[1] * b[2] - a[2] * b[1], a[2] * b[0] - a[0] * b[2], a[0] * b[1] - a[1] * b[0]]; + } + + // TODO return a + function cartesianAddInPlace(a, b) { + a[0] += b[0], a[1] += b[1], a[2] += b[2]; + } + + function cartesianScale(vector, k) { + return [vector[0] * k, vector[1] * k, vector[2] * k]; + } + + // TODO return d + function cartesianNormalizeInPlace(d) { + var l = sqrt$1(d[0] * d[0] + d[1] * d[1] + d[2] * d[2]); + d[0] /= l, d[1] /= l, d[2] /= l; + } + +var lambda0$1; + var phi0; + var lambda1; + var phi1; + var lambda2; +var lambda00$1; +var phi00$1; + var p0; + var deltaSum; + var ranges; +var range$1; + var boundsStream = { + point: boundsPoint, + lineStart: boundsLineStart, + lineEnd: boundsLineEnd, + polygonStart: function() { + boundsStream.point = boundsRingPoint; + boundsStream.lineStart = boundsRingStart; + boundsStream.lineEnd = boundsRingEnd; + deltaSum.reset(); + areaStream.polygonStart(); + }, + polygonEnd: function() { + areaStream.polygonEnd(); + boundsStream.point = boundsPoint; + boundsStream.lineStart = boundsLineStart; + boundsStream.lineEnd = boundsLineEnd; + if (areaRingSum < 0) lambda0$1 = -(lambda1 = 180), phi0 = -(phi1 = 90); + else if (deltaSum > epsilon$4) phi1 = 90; + else if (deltaSum < -epsilon$4) phi0 = -90; + range$1[0] = lambda0$1, range$1[1] = lambda1; + } + }; + + function boundsPoint(lambda, phi) { + ranges.push(range$1 = [lambda0$1 = lambda, lambda1 = lambda]); + if (phi < phi0) phi0 = phi; + if (phi > phi1) phi1 = phi; + } + + function linePoint(lambda, phi) { + var p = cartesian([lambda * radians, phi * radians]); + if (p0) { + var normal = cartesianCross(p0, p), + equatorial = [normal[1], -normal[0], 0], + inflection = cartesianCross(equatorial, normal); + cartesianNormalizeInPlace(inflection); + inflection = spherical(inflection); + var delta = lambda - lambda2, + sign = delta > 0 ? 1 : -1, + lambdai = inflection[0] * degrees$1 * sign, + phii, + antimeridian = abs(delta) > 180; + if (antimeridian ^ (sign * lambda2 < lambdai && lambdai < sign * lambda)) { + phii = inflection[1] * degrees$1; + if (phii > phi1) phi1 = phii; + } else if (lambdai = (lambdai + 360) % 360 - 180, antimeridian ^ (sign * lambda2 < lambdai && lambdai < sign * lambda)) { + phii = -inflection[1] * degrees$1; + if (phii < phi0) phi0 = phii; + } else { + if (phi < phi0) phi0 = phi; + if (phi > phi1) phi1 = phi; + } + if (antimeridian) { + if (lambda < lambda2) { + if (angle(lambda0$1, lambda) > angle(lambda0$1, lambda1)) lambda1 = lambda; + } else { + if (angle(lambda, lambda1) > angle(lambda0$1, lambda1)) lambda0$1 = lambda; + } + } else { + if (lambda1 >= lambda0$1) { + if (lambda < lambda0$1) lambda0$1 = lambda; + if (lambda > lambda1) lambda1 = lambda; + } else { + if (lambda > lambda2) { + if (angle(lambda0$1, lambda) > angle(lambda0$1, lambda1)) lambda1 = lambda; + } else { + if (angle(lambda, lambda1) > angle(lambda0$1, lambda1)) lambda0$1 = lambda; + } + } + } + } else { + boundsPoint(lambda, phi); + } + p0 = p, lambda2 = lambda; + } + + function boundsLineStart() { + boundsStream.point = linePoint; + } + + function boundsLineEnd() { + range$1[0] = lambda0$1, range$1[1] = lambda1; + boundsStream.point = boundsPoint; + p0 = null; + } + + function boundsRingPoint(lambda, phi) { + if (p0) { + var delta = lambda - lambda2; + deltaSum.add(abs(delta) > 180 ? delta + (delta > 0 ? 360 : -360) : delta); + } else { + lambda00$1 = lambda, phi00$1 = phi; + } + areaStream.point(lambda, phi); + linePoint(lambda, phi); + } + + function boundsRingStart() { + areaStream.lineStart(); + } + + function boundsRingEnd() { + boundsRingPoint(lambda00$1, phi00$1); + areaStream.lineEnd(); + if (abs(deltaSum) > epsilon$4) lambda0$1 = -(lambda1 = 180); + range$1[0] = lambda0$1, range$1[1] = lambda1; + p0 = null; + } + + // Finds the left-right distance between two longitudes. + // This is almost the same as (lambda1 - lambda0 + 360°) % 360°, except that we want + // the distance between ±180° to be 360°. + function angle(lambda0, lambda1) { + return (lambda1 -= lambda0) < 0 ? lambda1 + 360 : lambda1; + } + + function rangeCompare(a, b) { + return a[0] - b[0]; + } + + function rangeContains(range, x) { + return range[0] <= range[1] ? range[0] <= x && x <= range[1] : x < range[0] || range[1] < x; + } + + function bounds(feature) { + var i, n, a, b, merged, deltaMax, delta; + + if (deltaSum) deltaSum.reset(); + else deltaSum = adder(); + phi1 = lambda1 = -(lambda0$1 = phi0 = Infinity); + ranges = []; + stream(feature, boundsStream); + + // First, sort ranges by their minimum longitudes. + if (n = ranges.length) { + ranges.sort(rangeCompare); + + // Then, merge any ranges that overlap. + for (i = 1, a = ranges[0], merged = [a]; i < n; ++i) { + b = ranges[i]; + if (rangeContains(a, b[0]) || rangeContains(a, b[1])) { + if (angle(a[0], b[1]) > angle(a[0], a[1])) a[1] = b[1]; + if (angle(b[0], a[1]) > angle(a[0], a[1])) a[0] = b[0]; + } else { + merged.push(a = b); + } + } + + // Finally, find the largest gap between the merged ranges. + // The final bounding box will be the inverse of this gap. + for (deltaMax = -Infinity, n = merged.length - 1, i = 0, a = merged[n]; i <= n; a = b, ++i) { + b = merged[i]; + if ((delta = angle(a[1], b[0])) > deltaMax) deltaMax = delta, lambda0$1 = b[0], lambda1 = a[1]; + } + } + + ranges = range$1 = null; + + return lambda0$1 === Infinity || phi0 === Infinity + ? [[NaN, NaN], [NaN, NaN]] + : [[lambda0$1, phi0], [lambda1, phi1]]; + } + + var W0; + var W1; + var X0; + var Y0; + var Z0; + var X1; + var Y1; + var Z1; + var X2; + var Y2; + var Z2; +var lambda00$2; +var phi00$2; + var x0; + var y0; + var z0; + // previous point + + var centroidStream = { + sphere: noop$2, + point: centroidPoint, + lineStart: centroidLineStart, + lineEnd: centroidLineEnd, + polygonStart: function() { + centroidStream.lineStart = centroidRingStart; + centroidStream.lineEnd = centroidRingEnd; + }, + polygonEnd: function() { + centroidStream.lineStart = centroidLineStart; + centroidStream.lineEnd = centroidLineEnd; + } + }; + + // Arithmetic mean of Cartesian vectors. + function centroidPoint(lambda, phi) { + lambda *= radians, phi *= radians; + var cosPhi = cos(phi); + centroidPointCartesian(cosPhi * cos(lambda), cosPhi * sin(lambda), sin(phi)); + } + + function centroidPointCartesian(x, y, z) { + ++W0; + X0 += (x - X0) / W0; + Y0 += (y - Y0) / W0; + Z0 += (z - Z0) / W0; + } + + function centroidLineStart() { + centroidStream.point = centroidLinePointFirst; + } + + function centroidLinePointFirst(lambda, phi) { + lambda *= radians, phi *= radians; + var cosPhi = cos(phi); + x0 = cosPhi * cos(lambda); + y0 = cosPhi * sin(lambda); + z0 = sin(phi); + centroidStream.point = centroidLinePoint; + centroidPointCartesian(x0, y0, z0); + } + + function centroidLinePoint(lambda, phi) { + lambda *= radians, phi *= radians; + var cosPhi = cos(phi), + x = cosPhi * cos(lambda), + y = cosPhi * sin(lambda), + z = sin(phi), + w = atan2(sqrt$1((w = y0 * z - z0 * y) * w + (w = z0 * x - x0 * z) * w + (w = x0 * y - y0 * x) * w), x0 * x + y0 * y + z0 * z); + W1 += w; + X1 += w * (x0 + (x0 = x)); + Y1 += w * (y0 + (y0 = y)); + Z1 += w * (z0 + (z0 = z)); + centroidPointCartesian(x0, y0, z0); + } + + function centroidLineEnd() { + centroidStream.point = centroidPoint; + } + + // See J. E. Brock, The Inertia Tensor for a Spherical Triangle, + // J. Applied Mechanics 42, 239 (1975). + function centroidRingStart() { + centroidStream.point = centroidRingPointFirst; + } + + function centroidRingEnd() { + centroidRingPoint(lambda00$2, phi00$2); + centroidStream.point = centroidPoint; + } + + function centroidRingPointFirst(lambda, phi) { + lambda00$2 = lambda, phi00$2 = phi; + lambda *= radians, phi *= radians; + centroidStream.point = centroidRingPoint; + var cosPhi = cos(phi); + x0 = cosPhi * cos(lambda); + y0 = cosPhi * sin(lambda); + z0 = sin(phi); + centroidPointCartesian(x0, y0, z0); + } + + function centroidRingPoint(lambda, phi) { + lambda *= radians, phi *= radians; + var cosPhi = cos(phi), + x = cosPhi * cos(lambda), + y = cosPhi * sin(lambda), + z = sin(phi), + cx = y0 * z - z0 * y, + cy = z0 * x - x0 * z, + cz = x0 * y - y0 * x, + m = sqrt$1(cx * cx + cy * cy + cz * cz), + u = x0 * x + y0 * y + z0 * z, + v = m && -acos(u) / m, // area weight + w = atan2(m, u); // line weight + X2 += v * cx; + Y2 += v * cy; + Z2 += v * cz; + W1 += w; + X1 += w * (x0 + (x0 = x)); + Y1 += w * (y0 + (y0 = y)); + Z1 += w * (z0 + (z0 = z)); + centroidPointCartesian(x0, y0, z0); + } + + function centroid$1(object) { + W0 = W1 = + X0 = Y0 = Z0 = + X1 = Y1 = Z1 = + X2 = Y2 = Z2 = 0; + stream(object, centroidStream); + + var x = X2, + y = Y2, + z = Z2, + m = x * x + y * y + z * z; + + // If the area-weighted ccentroid is undefined, fall back to length-weighted ccentroid. + if (m < epsilon2$2) { + x = X1, y = Y1, z = Z1; + // If the feature has zero length, fall back to arithmetic mean of point vectors. + if (W1 < epsilon$4) x = X0, y = Y0, z = Z0; + m = x * x + y * y + z * z; + // If the feature still has an undefined ccentroid, then return. + if (m < epsilon2$2) return [NaN, NaN]; + } + + return [atan2(y, x) * degrees$1, asin$1(z / sqrt$1(m)) * degrees$1]; + } + + function constant$11(x) { + return function() { + return x; + }; + } + + function compose(a, b) { + + function compose(x, y) { + return x = a(x, y), b(x[0], x[1]); + } + + if (a.invert && b.invert) compose.invert = function(x, y) { + return x = b.invert(x, y), x && a.invert(x[0], x[1]); + }; + + return compose; + } + + function rotationIdentity(lambda, phi) { + return [lambda > pi$3 ? lambda - tau$3 : lambda < -pi$3 ? lambda + tau$3 : lambda, phi]; + } + + rotationIdentity.invert = rotationIdentity; + + function rotateRadians(deltaLambda, deltaPhi, deltaGamma) { + return (deltaLambda %= tau$3) ? (deltaPhi || deltaGamma ? compose(rotationLambda(deltaLambda), rotationPhiGamma(deltaPhi, deltaGamma)) + : rotationLambda(deltaLambda)) + : (deltaPhi || deltaGamma ? rotationPhiGamma(deltaPhi, deltaGamma) + : rotationIdentity); + } + + function forwardRotationLambda(deltaLambda) { + return function(lambda, phi) { + return lambda += deltaLambda, [lambda > pi$3 ? lambda - tau$3 : lambda < -pi$3 ? lambda + tau$3 : lambda, phi]; + }; + } + + function rotationLambda(deltaLambda) { + var rotation = forwardRotationLambda(deltaLambda); + rotation.invert = forwardRotationLambda(-deltaLambda); + return rotation; + } + + function rotationPhiGamma(deltaPhi, deltaGamma) { + var cosDeltaPhi = cos(deltaPhi), + sinDeltaPhi = sin(deltaPhi), + cosDeltaGamma = cos(deltaGamma), + sinDeltaGamma = sin(deltaGamma); + + function rotation(lambda, phi) { + var cosPhi = cos(phi), + x = cos(lambda) * cosPhi, + y = sin(lambda) * cosPhi, + z = sin(phi), + k = z * cosDeltaPhi + x * sinDeltaPhi; + return [ + atan2(y * cosDeltaGamma - k * sinDeltaGamma, x * cosDeltaPhi - z * sinDeltaPhi), + asin$1(k * cosDeltaGamma + y * sinDeltaGamma) + ]; + } + + rotation.invert = function(lambda, phi) { + var cosPhi = cos(phi), + x = cos(lambda) * cosPhi, + y = sin(lambda) * cosPhi, + z = sin(phi), + k = z * cosDeltaGamma - y * sinDeltaGamma; + return [ + atan2(y * cosDeltaGamma + z * sinDeltaGamma, x * cosDeltaPhi + k * sinDeltaPhi), + asin$1(k * cosDeltaPhi - x * sinDeltaPhi) + ]; + }; + + return rotation; + } + + function rotation(rotate) { + rotate = rotateRadians(rotate[0] * radians, rotate[1] * radians, rotate.length > 2 ? rotate[2] * radians : 0); + + function forward(coordinates) { + coordinates = rotate(coordinates[0] * radians, coordinates[1] * radians); + return coordinates[0] *= degrees$1, coordinates[1] *= degrees$1, coordinates; + } + + forward.invert = function(coordinates) { + coordinates = rotate.invert(coordinates[0] * radians, coordinates[1] * radians); + return coordinates[0] *= degrees$1, coordinates[1] *= degrees$1, coordinates; + }; + + return forward; + } + + // Generates a circle centered at [0°, 0°], with a given radius and precision. + function circleStream(stream, radius, delta, direction, t0, t1) { + if (!delta) return; + var cosRadius = cos(radius), + sinRadius = sin(radius), + step = direction * delta; + if (t0 == null) { + t0 = radius + direction * tau$3; + t1 = radius - step / 2; + } else { + t0 = circleRadius(cosRadius, t0); + t1 = circleRadius(cosRadius, t1); + if (direction > 0 ? t0 < t1 : t0 > t1) t0 += direction * tau$3; + } + for (var point, t = t0; direction > 0 ? t > t1 : t < t1; t -= step) { + point = spherical([cosRadius, -sinRadius * cos(t), -sinRadius * sin(t)]); + stream.point(point[0], point[1]); + } + } + + // Returns the signed angle of a cartesian point relative to [cosRadius, 0, 0]. + function circleRadius(cosRadius, point) { + point = cartesian(point), point[0] -= cosRadius; + cartesianNormalizeInPlace(point); + var radius = acos(-point[1]); + return ((-point[2] < 0 ? -radius : radius) + tau$3 - epsilon$4) % tau$3; + } + + function circle$1() { + var center = constant$11([0, 0]), + radius = constant$11(90), + precision = constant$11(6), + ring, + rotate, + stream = {point: point}; + + function point(x, y) { + ring.push(x = rotate(x, y)); + x[0] *= degrees$1, x[1] *= degrees$1; + } + + function circle() { + var c = center.apply(this, arguments), + r = radius.apply(this, arguments) * radians, + p = precision.apply(this, arguments) * radians; + ring = []; + rotate = rotateRadians(-c[0] * radians, -c[1] * radians, 0).invert; + circleStream(stream, r, p, 1); + c = {type: "Polygon", coordinates: [ring]}; + ring = rotate = null; + return c; + } + + circle.center = function(_) { + return arguments.length ? (center = typeof _ === "function" ? _ : constant$11([+_[0], +_[1]]), circle) : center; + }; + + circle.radius = function(_) { + return arguments.length ? (radius = typeof _ === "function" ? _ : constant$11(+_), circle) : radius; + }; + + circle.precision = function(_) { + return arguments.length ? (precision = typeof _ === "function" ? _ : constant$11(+_), circle) : precision; + }; + + return circle; + } + + function clipBuffer() { + var lines = [], + line; + return { + point: function(x, y) { + line.push([x, y]); + }, + lineStart: function() { + lines.push(line = []); + }, + lineEnd: noop$2, + rejoin: function() { + if (lines.length > 1) lines.push(lines.pop().concat(lines.shift())); + }, + result: function() { + var result = lines; + lines = []; + line = null; + return result; + } + }; + } + + function clipLine(a, b, x0, y0, x1, y1) { + var ax = a[0], + ay = a[1], + bx = b[0], + by = b[1], + t0 = 0, + t1 = 1, + dx = bx - ax, + dy = by - ay, + r; + + r = x0 - ax; + if (!dx && r > 0) return; + r /= dx; + if (dx < 0) { + if (r < t0) return; + if (r < t1) t1 = r; + } else if (dx > 0) { + if (r > t1) return; + if (r > t0) t0 = r; + } + + r = x1 - ax; + if (!dx && r < 0) return; + r /= dx; + if (dx < 0) { + if (r > t1) return; + if (r > t0) t0 = r; + } else if (dx > 0) { + if (r < t0) return; + if (r < t1) t1 = r; + } + + r = y0 - ay; + if (!dy && r > 0) return; + r /= dy; + if (dy < 0) { + if (r < t0) return; + if (r < t1) t1 = r; + } else if (dy > 0) { + if (r > t1) return; + if (r > t0) t0 = r; + } + + r = y1 - ay; + if (!dy && r < 0) return; + r /= dy; + if (dy < 0) { + if (r > t1) return; + if (r > t0) t0 = r; + } else if (dy > 0) { + if (r < t0) return; + if (r < t1) t1 = r; + } + + if (t0 > 0) a[0] = ax + t0 * dx, a[1] = ay + t0 * dy; + if (t1 < 1) b[0] = ax + t1 * dx, b[1] = ay + t1 * dy; + return true; + } + + function pointEqual(a, b) { + return abs(a[0] - b[0]) < epsilon$4 && abs(a[1] - b[1]) < epsilon$4; + } + + function Intersection(point, points, other, entry) { + this.x = point; + this.z = points; + this.o = other; // another intersection + this.e = entry; // is an entry? + this.v = false; // visited + this.n = this.p = null; // next & previous + } + + // A generalized polygon clipping algorithm: given a polygon that has been cut + // into its visible line segments, and rejoins the segments by interpolating + // along the clip edge. + function clipPolygon(segments, compareIntersection, startInside, interpolate, stream) { + var subject = [], + clip = [], + i, + n; + + segments.forEach(function(segment) { + if ((n = segment.length - 1) <= 0) return; + var n, p0 = segment[0], p1 = segment[n], x; + + // If the first and last points of a segment are coincident, then treat as a + // closed ring. TODO if all rings are closed, then the winding order of the + // exterior ring should be checked. + if (pointEqual(p0, p1)) { + stream.lineStart(); + for (i = 0; i < n; ++i) stream.point((p0 = segment[i])[0], p0[1]); + stream.lineEnd(); + return; + } + + subject.push(x = new Intersection(p0, segment, null, true)); + clip.push(x.o = new Intersection(p0, null, x, false)); + subject.push(x = new Intersection(p1, segment, null, false)); + clip.push(x.o = new Intersection(p1, null, x, true)); + }); + + if (!subject.length) return; + + clip.sort(compareIntersection); + link$1(subject); + link$1(clip); + + for (i = 0, n = clip.length; i < n; ++i) { + clip[i].e = startInside = !startInside; + } + + var start = subject[0], + points, + point; + + while (1) { + // Find first unvisited intersection. + var current = start, + isSubject = true; + while (current.v) if ((current = current.n) === start) return; + points = current.z; + stream.lineStart(); + do { + current.v = current.o.v = true; + if (current.e) { + if (isSubject) { + for (i = 0, n = points.length; i < n; ++i) stream.point((point = points[i])[0], point[1]); + } else { + interpolate(current.x, current.n.x, 1, stream); + } + current = current.n; + } else { + if (isSubject) { + points = current.p.z; + for (i = points.length - 1; i >= 0; --i) stream.point((point = points[i])[0], point[1]); + } else { + interpolate(current.x, current.p.x, -1, stream); + } + current = current.p; + } + current = current.o; + points = current.z; + isSubject = !isSubject; + } while (!current.v); + stream.lineEnd(); + } + } + + function link$1(array) { + if (!(n = array.length)) return; + var n, + i = 0, + a = array[0], + b; + while (++i < n) { + a.n = b = array[i]; + b.p = a; + a = b; + } + a.n = b = array[0]; + b.p = a; + } + + var clipMax = 1e9; + var clipMin = -clipMax; + // TODO Use d3-polygon’s polygonContains here for the ring check? + // TODO Eliminate duplicate buffering in clipBuffer and polygon.push? + + function clipExtent(x0, y0, x1, y1) { + + function visible(x, y) { + return x0 <= x && x <= x1 && y0 <= y && y <= y1; + } + + function interpolate(from, to, direction, stream) { + var a = 0, a1 = 0; + if (from == null + || (a = corner(from, direction)) !== (a1 = corner(to, direction)) + || comparePoint(from, to) < 0 ^ direction > 0) { + do stream.point(a === 0 || a === 3 ? x0 : x1, a > 1 ? y1 : y0); + while ((a = (a + direction + 4) % 4) !== a1); + } else { + stream.point(to[0], to[1]); + } + } + + function corner(p, direction) { + return abs(p[0] - x0) < epsilon$4 ? direction > 0 ? 0 : 3 + : abs(p[0] - x1) < epsilon$4 ? direction > 0 ? 2 : 1 + : abs(p[1] - y0) < epsilon$4 ? direction > 0 ? 1 : 0 + : direction > 0 ? 3 : 2; // abs(p[1] - y1) < epsilon + } + + function compareIntersection(a, b) { + return comparePoint(a.x, b.x); + } + + function comparePoint(a, b) { + var ca = corner(a, 1), + cb = corner(b, 1); + return ca !== cb ? ca - cb + : ca === 0 ? b[1] - a[1] + : ca === 1 ? a[0] - b[0] + : ca === 2 ? a[1] - b[1] + : b[0] - a[0]; + } + + return function(stream) { + var activeStream = stream, + bufferStream = clipBuffer(), + segments, + polygon, + ring, + x__, y__, v__, // first point + x_, y_, v_, // previous point + first, + clean; + + var clipStream = { + point: point, + lineStart: lineStart, + lineEnd: lineEnd, + polygonStart: polygonStart, + polygonEnd: polygonEnd + }; + + function point(x, y) { + if (visible(x, y)) activeStream.point(x, y); + } + + function polygonInside() { + var winding = 0; + + for (var i = 0, n = polygon.length; i < n; ++i) { + for (var ring = polygon[i], j = 1, m = ring.length, point = ring[0], a0, a1, b0 = point[0], b1 = point[1]; j < m; ++j) { + a0 = b0, a1 = b1, point = ring[j], b0 = point[0], b1 = point[1]; + if (a1 <= y1) { if (b1 > y1 && (b0 - a0) * (y1 - a1) > (b1 - a1) * (x0 - a0)) ++winding; } + else { if (b1 <= y1 && (b0 - a0) * (y1 - a1) < (b1 - a1) * (x0 - a0)) --winding; } + } + } + + return winding; + } + + // Buffer geometry within a polygon and then clip it en masse. + function polygonStart() { + activeStream = bufferStream, segments = [], polygon = [], clean = true; + } + + function polygonEnd() { + var startInside = polygonInside(), + cleanInside = clean && startInside, + visible = (segments = merge(segments)).length; + if (cleanInside || visible) { + stream.polygonStart(); + if (cleanInside) { + stream.lineStart(); + interpolate(null, null, 1, stream); + stream.lineEnd(); + } + if (visible) { + clipPolygon(segments, compareIntersection, startInside, interpolate, stream); + } + stream.polygonEnd(); + } + activeStream = stream, segments = polygon = ring = null; + } + + function lineStart() { + clipStream.point = linePoint; + if (polygon) polygon.push(ring = []); + first = true; + v_ = false; + x_ = y_ = NaN; + } + + // TODO rather than special-case polygons, simply handle them separately. + // Ideally, coincident intersection points should be jittered to avoid + // clipping issues. + function lineEnd() { + if (segments) { + linePoint(x__, y__); + if (v__ && v_) bufferStream.rejoin(); + segments.push(bufferStream.result()); + } + clipStream.point = point; + if (v_) activeStream.lineEnd(); + } + + function linePoint(x, y) { + var v = visible(x, y); + if (polygon) ring.push([x, y]); + if (first) { + x__ = x, y__ = y, v__ = v; + first = false; + if (v) { + activeStream.lineStart(); + activeStream.point(x, y); + } + } else { + if (v && v_) activeStream.point(x, y); + else { + var a = [x_ = Math.max(clipMin, Math.min(clipMax, x_)), y_ = Math.max(clipMin, Math.min(clipMax, y_))], + b = [x = Math.max(clipMin, Math.min(clipMax, x)), y = Math.max(clipMin, Math.min(clipMax, y))]; + if (clipLine(a, b, x0, y0, x1, y1)) { + if (!v_) { + activeStream.lineStart(); + activeStream.point(a[0], a[1]); + } + activeStream.point(b[0], b[1]); + if (!v) activeStream.lineEnd(); + clean = false; + } else if (v) { + activeStream.lineStart(); + activeStream.point(x, y); + clean = false; + } + } + } + x_ = x, y_ = y, v_ = v; + } + + return clipStream; + }; + } + + function extent$1() { + var x0 = 0, + y0 = 0, + x1 = 960, + y1 = 500, + cache, + cacheStream, + clip; + + return clip = { + stream: function(stream) { + return cache && cacheStream === stream ? cache : cache = clipExtent(x0, y0, x1, y1)(cacheStream = stream); + }, + extent: function(_) { + return arguments.length ? (x0 = +_[0][0], y0 = +_[0][1], x1 = +_[1][0], y1 = +_[1][1], cache = cacheStream = null, clip) : [[x0, y0], [x1, y1]]; + } + }; + } + + var lengthSum; +var lambda0$2; +var sinPhi0$1; +var cosPhi0$1; + var lengthStream = { + sphere: noop$2, + point: noop$2, + lineStart: lengthLineStart, + lineEnd: noop$2, + polygonStart: noop$2, + polygonEnd: noop$2 + }; + + function lengthLineStart() { + lengthStream.point = lengthPointFirst; + lengthStream.lineEnd = lengthLineEnd; + } + + function lengthLineEnd() { + lengthStream.point = lengthStream.lineEnd = noop$2; + } + + function lengthPointFirst(lambda, phi) { + lambda *= radians, phi *= radians; + lambda0$2 = lambda, sinPhi0$1 = sin(phi), cosPhi0$1 = cos(phi); + lengthStream.point = lengthPoint; + } + + function lengthPoint(lambda, phi) { + lambda *= radians, phi *= radians; + var sinPhi = sin(phi), + cosPhi = cos(phi), + delta = abs(lambda - lambda0$2), + cosDelta = cos(delta), + sinDelta = sin(delta), + x = cosPhi * sinDelta, + y = cosPhi0$1 * sinPhi - sinPhi0$1 * cosPhi * cosDelta, + z = sinPhi0$1 * sinPhi + cosPhi0$1 * cosPhi * cosDelta; + lengthSum.add(atan2(sqrt$1(x * x + y * y), z)); + lambda0$2 = lambda, sinPhi0$1 = sinPhi, cosPhi0$1 = cosPhi; + } + + function length$2(object) { + if (lengthSum) lengthSum.reset(); + else lengthSum = adder(); + stream(object, lengthStream); + return +lengthSum; + } + + var coordinates = [null, null]; +var object$1 = {type: "LineString", coordinates: coordinates}; + function distance(a, b) { + coordinates[0] = a; + coordinates[1] = b; + return length$2(object$1); + } + + function graticuleX(y0, y1, dy) { + var y = range(y0, y1 - epsilon$4, dy).concat(y1); + return function(x) { return y.map(function(y) { return [x, y]; }); }; + } + + function graticuleY(x0, x1, dx) { + var x = range(x0, x1 - epsilon$4, dx).concat(x1); + return function(y) { return x.map(function(x) { return [x, y]; }); }; + } + + function graticule() { + var x1, x0, X1, X0, + y1, y0, Y1, Y0, + dx = 10, dy = dx, DX = 90, DY = 360, + x, y, X, Y, + precision = 2.5; + + function graticule() { + return {type: "MultiLineString", coordinates: lines()}; + } + + function lines() { + return range(ceil(X0 / DX) * DX, X1, DX).map(X) + .concat(range(ceil(Y0 / DY) * DY, Y1, DY).map(Y)) + .concat(range(ceil(x0 / dx) * dx, x1, dx).filter(function(x) { return abs(x % DX) > epsilon$4; }).map(x)) + .concat(range(ceil(y0 / dy) * dy, y1, dy).filter(function(y) { return abs(y % DY) > epsilon$4; }).map(y)); + } + + graticule.lines = function() { + return lines().map(function(coordinates) { return {type: "LineString", coordinates: coordinates}; }); + }; + + graticule.outline = function() { + return { + type: "Polygon", + coordinates: [ + X(X0).concat( + Y(Y1).slice(1), + X(X1).reverse().slice(1), + Y(Y0).reverse().slice(1)) + ] + }; + }; + + graticule.extent = function(_) { + if (!arguments.length) return graticule.extentMinor(); + return graticule.extentMajor(_).extentMinor(_); + }; + + graticule.extentMajor = function(_) { + if (!arguments.length) return [[X0, Y0], [X1, Y1]]; + X0 = +_[0][0], X1 = +_[1][0]; + Y0 = +_[0][1], Y1 = +_[1][1]; + if (X0 > X1) _ = X0, X0 = X1, X1 = _; + if (Y0 > Y1) _ = Y0, Y0 = Y1, Y1 = _; + return graticule.precision(precision); + }; + + graticule.extentMinor = function(_) { + if (!arguments.length) return [[x0, y0], [x1, y1]]; + x0 = +_[0][0], x1 = +_[1][0]; + y0 = +_[0][1], y1 = +_[1][1]; + if (x0 > x1) _ = x0, x0 = x1, x1 = _; + if (y0 > y1) _ = y0, y0 = y1, y1 = _; + return graticule.precision(precision); + }; + + graticule.step = function(_) { + if (!arguments.length) return graticule.stepMinor(); + return graticule.stepMajor(_).stepMinor(_); + }; + + graticule.stepMajor = function(_) { + if (!arguments.length) return [DX, DY]; + DX = +_[0], DY = +_[1]; + return graticule; + }; + + graticule.stepMinor = function(_) { + if (!arguments.length) return [dx, dy]; + dx = +_[0], dy = +_[1]; + return graticule; + }; + + graticule.precision = function(_) { + if (!arguments.length) return precision; + precision = +_; + x = graticuleX(y0, y1, 90); + y = graticuleY(x0, x1, precision); + X = graticuleX(Y0, Y1, 90); + Y = graticuleY(X0, X1, precision); + return graticule; + }; + + return graticule + .extentMajor([[-180, -90 + epsilon$4], [180, 90 - epsilon$4]]) + .extentMinor([[-180, -80 - epsilon$4], [180, 80 + epsilon$4]]); + } + + function interpolate$2(a, b) { + var x0 = a[0] * radians, + y0 = a[1] * radians, + x1 = b[0] * radians, + y1 = b[1] * radians, + cy0 = cos(y0), + sy0 = sin(y0), + cy1 = cos(y1), + sy1 = sin(y1), + kx0 = cy0 * cos(x0), + ky0 = cy0 * sin(x0), + kx1 = cy1 * cos(x1), + ky1 = cy1 * sin(x1), + d = 2 * asin$1(sqrt$1(haversin(y1 - y0) + cy0 * cy1 * haversin(x1 - x0))), + k = sin(d); + + var interpolate = d ? function(t) { + var B = sin(t *= d) / k, + A = sin(d - t) / k, + x = A * kx0 + B * kx1, + y = A * ky0 + B * ky1, + z = A * sy0 + B * sy1; + return [ + atan2(y, x) * degrees$1, + atan2(z, sqrt$1(x * x + y * y)) * degrees$1 + ]; + } : function() { + return [x0 * degrees$1, y0 * degrees$1]; + }; + + interpolate.distance = d; + + return interpolate; + } + + function identity$7(x) { + return x; + } + +var areaSum$1 = adder(); +var areaRingSum$1 = adder(); + var x00; + var y00; +var x0$1; +var y0$1; + var areaStream$1 = { + point: noop$2, + lineStart: noop$2, + lineEnd: noop$2, + polygonStart: function() { + areaStream$1.lineStart = areaRingStart$1; + areaStream$1.lineEnd = areaRingEnd$1; + }, + polygonEnd: function() { + areaStream$1.lineStart = areaStream$1.lineEnd = areaStream$1.point = noop$2; + areaSum$1.add(abs(areaRingSum$1)); + areaRingSum$1.reset(); + }, + result: function() { + var area = areaSum$1 / 2; + areaSum$1.reset(); + return area; + } + }; + + function areaRingStart$1() { + areaStream$1.point = areaPointFirst$1; + } + + function areaPointFirst$1(x, y) { + areaStream$1.point = areaPoint$1; + x00 = x0$1 = x, y00 = y0$1 = y; + } + + function areaPoint$1(x, y) { + areaRingSum$1.add(y0$1 * x - x0$1 * y); + x0$1 = x, y0$1 = y; + } + + function areaRingEnd$1() { + areaPoint$1(x00, y00); + } + +var x0$2 = Infinity; +var y0$2 = x0$2; + var x1 = -x0$2; + var y1 = x1; + var boundsStream$1 = { + point: boundsPoint$1, + lineStart: noop$2, + lineEnd: noop$2, + polygonStart: noop$2, + polygonEnd: noop$2, + result: function() { + var bounds = [[x0$2, y0$2], [x1, y1]]; + x1 = y1 = -(y0$2 = x0$2 = Infinity); + return bounds; + } + }; + + function boundsPoint$1(x, y) { + if (x < x0$2) x0$2 = x; + if (x > x1) x1 = x; + if (y < y0$2) y0$2 = y; + if (y > y1) y1 = y; + } + +var X0$1 = 0; +var Y0$1 = 0; +var Z0$1 = 0; +var X1$1 = 0; +var Y1$1 = 0; +var Z1$1 = 0; +var X2$1 = 0; +var Y2$1 = 0; +var Z2$1 = 0; +var x00$1; +var y00$1; +var x0$3; +var y0$3; + var centroidStream$1 = { + point: centroidPoint$1, + lineStart: centroidLineStart$1, + lineEnd: centroidLineEnd$1, + polygonStart: function() { + centroidStream$1.lineStart = centroidRingStart$1; + centroidStream$1.lineEnd = centroidRingEnd$1; + }, + polygonEnd: function() { + centroidStream$1.point = centroidPoint$1; + centroidStream$1.lineStart = centroidLineStart$1; + centroidStream$1.lineEnd = centroidLineEnd$1; + }, + result: function() { + var centroid = Z2$1 ? [X2$1 / Z2$1, Y2$1 / Z2$1] + : Z1$1 ? [X1$1 / Z1$1, Y1$1 / Z1$1] + : Z0$1 ? [X0$1 / Z0$1, Y0$1 / Z0$1] + : [NaN, NaN]; + X0$1 = Y0$1 = Z0$1 = + X1$1 = Y1$1 = Z1$1 = + X2$1 = Y2$1 = Z2$1 = 0; + return centroid; + } + }; + + function centroidPoint$1(x, y) { + X0$1 += x; + Y0$1 += y; + ++Z0$1; + } + + function centroidLineStart$1() { + centroidStream$1.point = centroidPointFirstLine; + } + + function centroidPointFirstLine(x, y) { + centroidStream$1.point = centroidPointLine; + centroidPoint$1(x0$3 = x, y0$3 = y); + } + + function centroidPointLine(x, y) { + var dx = x - x0$3, dy = y - y0$3, z = sqrt$1(dx * dx + dy * dy); + X1$1 += z * (x0$3 + x) / 2; + Y1$1 += z * (y0$3 + y) / 2; + Z1$1 += z; + centroidPoint$1(x0$3 = x, y0$3 = y); + } + + function centroidLineEnd$1() { + centroidStream$1.point = centroidPoint$1; + } + + function centroidRingStart$1() { + centroidStream$1.point = centroidPointFirstRing; + } + + function centroidRingEnd$1() { + centroidPointRing(x00$1, y00$1); + } + + function centroidPointFirstRing(x, y) { + centroidStream$1.point = centroidPointRing; + centroidPoint$1(x00$1 = x0$3 = x, y00$1 = y0$3 = y); + } + + function centroidPointRing(x, y) { + var dx = x - x0$3, + dy = y - y0$3, + z = sqrt$1(dx * dx + dy * dy); + + X1$1 += z * (x0$3 + x) / 2; + Y1$1 += z * (y0$3 + y) / 2; + Z1$1 += z; + + z = y0$3 * x - x0$3 * y; + X2$1 += z * (x0$3 + x); + Y2$1 += z * (y0$3 + y); + Z2$1 += z * 3; + centroidPoint$1(x0$3 = x, y0$3 = y); + } + + function PathContext(context) { + var pointRadius = 4.5; + + var stream = { + point: point, + + // While inside a line, override point to moveTo then lineTo. + lineStart: function() { stream.point = pointLineStart; }, + lineEnd: lineEnd, + + // While inside a polygon, override lineEnd to closePath. + polygonStart: function() { stream.lineEnd = lineEndPolygon; }, + polygonEnd: function() { stream.lineEnd = lineEnd; stream.point = point; }, + + pointRadius: function(_) { + pointRadius = _; + return stream; + }, + + result: noop$2 + }; + + function point(x, y) { + context.moveTo(x + pointRadius, y); + context.arc(x, y, pointRadius, 0, tau$3); + } + + function pointLineStart(x, y) { + context.moveTo(x, y); + stream.point = pointLine; + } + + function pointLine(x, y) { + context.lineTo(x, y); + } + + function lineEnd() { + stream.point = point; + } + + function lineEndPolygon() { + context.closePath(); + } + + return stream; + } + + function PathString() { + var pointCircle = circle$2(4.5), + string = []; + + var stream = { + point: point, + lineStart: lineStart, + lineEnd: lineEnd, + polygonStart: function() { + stream.lineEnd = lineEndPolygon; + }, + polygonEnd: function() { + stream.lineEnd = lineEnd; + stream.point = point; + }, + pointRadius: function(_) { + pointCircle = circle$2(_); + return stream; + }, + result: function() { + if (string.length) { + var result = string.join(""); + string = []; + return result; + } + } + }; + + function point(x, y) { + string.push("M", x, ",", y, pointCircle); + } + + function pointLineStart(x, y) { + string.push("M", x, ",", y); + stream.point = pointLine; + } + + function pointLine(x, y) { + string.push("L", x, ",", y); + } + + function lineStart() { + stream.point = pointLineStart; + } + + function lineEnd() { + stream.point = point; + } + + function lineEndPolygon() { + string.push("Z"); + } + + return stream; + } + + function circle$2(radius) { + return "m0," + radius + + "a" + radius + "," + radius + " 0 1,1 0," + -2 * radius + + "a" + radius + "," + radius + " 0 1,1 0," + 2 * radius + + "z"; + } + + function index$3() { + var pointRadius = 4.5, + projection, + projectionStream, + context, + contextStream; + + function path(object) { + if (object) { + if (typeof pointRadius === "function") contextStream.pointRadius(+pointRadius.apply(this, arguments)); + stream(object, projectionStream(contextStream)); + } + return contextStream.result(); + } + + path.area = function(object) { + stream(object, projectionStream(areaStream$1)); + return areaStream$1.result(); + }; + + path.bounds = function(object) { + stream(object, projectionStream(boundsStream$1)); + return boundsStream$1.result(); + }; + + path.centroid = function(object) { + stream(object, projectionStream(centroidStream$1)); + return centroidStream$1.result(); + }; + + path.projection = function(_) { + return arguments.length ? (projectionStream = (projection = _) == null ? identity$7 : _.stream, path) : projection; + }; + + path.context = function(_) { + if (!arguments.length) return context; + contextStream = (context = _) == null ? new PathString : new PathContext(_); + if (typeof pointRadius !== "function") contextStream.pointRadius(pointRadius); + return path; + }; + + path.pointRadius = function(_) { + if (!arguments.length) return pointRadius; + pointRadius = typeof _ === "function" ? _ : (contextStream.pointRadius(+_), +_); + return path; + }; + + return path.projection(null).context(null); + } + + var sum$2 = adder(); + + function polygonContains(polygon, point) { + var lambda = point[0], + phi = point[1], + normal = [sin(lambda), -cos(lambda), 0], + angle = 0, + winding = 0; + + for (var i = 0, n = polygon.length; i < n; ++i) { + if (!(m = (ring = polygon[i]).length)) continue; + var ring, + m, + point0 = ring[m - 1], + lambda0 = point0[0], + phi0 = point0[1] / 2 + quarterPi, + sinPhi0 = sin(phi0), + cosPhi0 = cos(phi0); + + for (var j = 0; j < m; ++j, lambda0 = lambda1, sinPhi0 = sinPhi1, cosPhi0 = cosPhi1, point0 = point1) { + var point1 = ring[j], + lambda1 = point1[0], + phi1 = point1[1] / 2 + quarterPi, + sinPhi1 = sin(phi1), + cosPhi1 = cos(phi1), + delta = lambda1 - lambda0, + sign = delta >= 0 ? 1 : -1, + absDelta = sign * delta, + antimeridian = absDelta > pi$3, + k = sinPhi0 * sinPhi1; + + sum$2.add(atan2(k * sign * sin(absDelta), cosPhi0 * cosPhi1 + k * cos(absDelta))); + angle += antimeridian ? delta + sign * tau$3 : delta; + + // Are the longitudes either side of the point’s meridian (lambda), + // and are the latitudes smaller than the parallel (phi)? + if (antimeridian ^ lambda0 >= lambda ^ lambda1 >= lambda) { + var arc = cartesianCross(cartesian(point0), cartesian(point1)); + cartesianNormalizeInPlace(arc); + var intersection = cartesianCross(normal, arc); + cartesianNormalizeInPlace(intersection); + var phiArc = (antimeridian ^ delta >= 0 ? -1 : 1) * asin$1(intersection[2]); + if (phi > phiArc || phi === phiArc && (arc[0] || arc[1])) { + winding += antimeridian ^ delta >= 0 ? 1 : -1; + } + } + } + } + + // First, determine whether the South pole is inside or outside: + // + // It is inside if: + // * the polygon winds around it in a clockwise direction. + // * the polygon does not (cumulatively) wind around it, but has a negative + // (counter-clockwise) area. + // + // Second, count the (signed) number of times a segment crosses a lambda + // from the point to the South pole. If it is zero, then the point is the + // same side as the South pole. + + var contains = (angle < -epsilon$4 || angle < epsilon$4 && sum$2 < -epsilon$4) ^ (winding & 1); + sum$2.reset(); + return contains; + } + + function clip(pointVisible, clipLine, interpolate, start) { + return function(rotate, sink) { + var line = clipLine(sink), + rotatedStart = rotate.invert(start[0], start[1]), + ringBuffer = clipBuffer(), + ringSink = clipLine(ringBuffer), + polygonStarted = false, + polygon, + segments, + ring; + + var clip = { + point: point, + lineStart: lineStart, + lineEnd: lineEnd, + polygonStart: function() { + clip.point = pointRing; + clip.lineStart = ringStart; + clip.lineEnd = ringEnd; + segments = []; + polygon = []; + }, + polygonEnd: function() { + clip.point = point; + clip.lineStart = lineStart; + clip.lineEnd = lineEnd; + segments = merge(segments); + var startInside = polygonContains(polygon, rotatedStart); + if (segments.length) { + if (!polygonStarted) sink.polygonStart(), polygonStarted = true; + clipPolygon(segments, compareIntersection, startInside, interpolate, sink); + } else if (startInside) { + if (!polygonStarted) sink.polygonStart(), polygonStarted = true; + sink.lineStart(); + interpolate(null, null, 1, sink); + sink.lineEnd(); + } + if (polygonStarted) sink.polygonEnd(), polygonStarted = false; + segments = polygon = null; + }, + sphere: function() { + sink.polygonStart(); + sink.lineStart(); + interpolate(null, null, 1, sink); + sink.lineEnd(); + sink.polygonEnd(); + } + }; + + function point(lambda, phi) { + var point = rotate(lambda, phi); + if (pointVisible(lambda = point[0], phi = point[1])) sink.point(lambda, phi); + } + + function pointLine(lambda, phi) { + var point = rotate(lambda, phi); + line.point(point[0], point[1]); + } + + function lineStart() { + clip.point = pointLine; + line.lineStart(); + } + + function lineEnd() { + clip.point = point; + line.lineEnd(); + } + + function pointRing(lambda, phi) { + ring.push([lambda, phi]); + var point = rotate(lambda, phi); + ringSink.point(point[0], point[1]); + } + + function ringStart() { + ringSink.lineStart(); + ring = []; + } + + function ringEnd() { + pointRing(ring[0][0], ring[0][1]); + ringSink.lineEnd(); + + var clean = ringSink.clean(), + ringSegments = ringBuffer.result(), + i, n = ringSegments.length, m, + segment, + point; + + ring.pop(); + polygon.push(ring); + ring = null; + + if (!n) return; + + // No intersections. + if (clean & 1) { + segment = ringSegments[0]; + if ((m = segment.length - 1) > 0) { + if (!polygonStarted) sink.polygonStart(), polygonStarted = true; + sink.lineStart(); + for (i = 0; i < m; ++i) sink.point((point = segment[i])[0], point[1]); + sink.lineEnd(); + } + return; + } + + // Rejoin connected segments. + // TODO reuse ringBuffer.rejoin()? + if (n > 1 && clean & 2) ringSegments.push(ringSegments.pop().concat(ringSegments.shift())); + + segments.push(ringSegments.filter(validSegment)); + } + + return clip; + }; + } + + function validSegment(segment) { + return segment.length > 1; + } + + // Intersections are sorted along the clip edge. For both antimeridian cutting + // and circle clipping, the same comparison is used. + function compareIntersection(a, b) { + return ((a = a.x)[0] < 0 ? a[1] - halfPi$2 - epsilon$4 : halfPi$2 - a[1]) + - ((b = b.x)[0] < 0 ? b[1] - halfPi$2 - epsilon$4 : halfPi$2 - b[1]); + } + + var clipAntimeridian = clip( + function() { return true; }, + clipAntimeridianLine, + clipAntimeridianInterpolate, + [-pi$3, -halfPi$2] + ); + + // Takes a line and cuts into visible segments. Return values: 0 - there were + // intersections or the line was empty; 1 - no intersections; 2 - there were + // intersections, and the first and last segments should be rejoined. + function clipAntimeridianLine(stream) { + var lambda0 = NaN, + phi0 = NaN, + sign0 = NaN, + clean; // no intersections + + return { + lineStart: function() { + stream.lineStart(); + clean = 1; + }, + point: function(lambda1, phi1) { + var sign1 = lambda1 > 0 ? pi$3 : -pi$3, + delta = abs(lambda1 - lambda0); + if (abs(delta - pi$3) < epsilon$4) { // line crosses a pole + stream.point(lambda0, phi0 = (phi0 + phi1) / 2 > 0 ? halfPi$2 : -halfPi$2); + stream.point(sign0, phi0); + stream.lineEnd(); + stream.lineStart(); + stream.point(sign1, phi0); + stream.point(lambda1, phi0); + clean = 0; + } else if (sign0 !== sign1 && delta >= pi$3) { // line crosses antimeridian + if (abs(lambda0 - sign0) < epsilon$4) lambda0 -= sign0 * epsilon$4; // handle degeneracies + if (abs(lambda1 - sign1) < epsilon$4) lambda1 -= sign1 * epsilon$4; + phi0 = clipAntimeridianIntersect(lambda0, phi0, lambda1, phi1); + stream.point(sign0, phi0); + stream.lineEnd(); + stream.lineStart(); + stream.point(sign1, phi0); + clean = 0; + } + stream.point(lambda0 = lambda1, phi0 = phi1); + sign0 = sign1; + }, + lineEnd: function() { + stream.lineEnd(); + lambda0 = phi0 = NaN; + }, + clean: function() { + return 2 - clean; // if intersections, rejoin first and last segments + } + }; + } + + function clipAntimeridianIntersect(lambda0, phi0, lambda1, phi1) { + var cosPhi0, + cosPhi1, + sinLambda0Lambda1 = sin(lambda0 - lambda1); + return abs(sinLambda0Lambda1) > epsilon$4 + ? atan((sin(phi0) * (cosPhi1 = cos(phi1)) * sin(lambda1) + - sin(phi1) * (cosPhi0 = cos(phi0)) * sin(lambda0)) + / (cosPhi0 * cosPhi1 * sinLambda0Lambda1)) + : (phi0 + phi1) / 2; + } + + function clipAntimeridianInterpolate(from, to, direction, stream) { + var phi; + if (from == null) { + phi = direction * halfPi$2; + stream.point(-pi$3, phi); + stream.point(0, phi); + stream.point(pi$3, phi); + stream.point(pi$3, 0); + stream.point(pi$3, -phi); + stream.point(0, -phi); + stream.point(-pi$3, -phi); + stream.point(-pi$3, 0); + stream.point(-pi$3, phi); + } else if (abs(from[0] - to[0]) > epsilon$4) { + var lambda = from[0] < to[0] ? pi$3 : -pi$3; + phi = direction * lambda / 2; + stream.point(-lambda, phi); + stream.point(0, phi); + stream.point(lambda, phi); + } else { + stream.point(to[0], to[1]); + } + } + + function clipCircle(radius, delta) { + var cr = cos(radius), + smallRadius = cr > 0, + notHemisphere = abs(cr) > epsilon$4; // TODO optimise for this common case + + function interpolate(from, to, direction, stream) { + circleStream(stream, radius, delta, direction, from, to); + } + + function visible(lambda, phi) { + return cos(lambda) * cos(phi) > cr; + } + + // Takes a line and cuts into visible segments. Return values used for polygon + // clipping: 0 - there were intersections or the line was empty; 1 - no + // intersections 2 - there were intersections, and the first and last segments + // should be rejoined. + function clipLine(stream) { + var point0, // previous point + c0, // code for previous point + v0, // visibility of previous point + v00, // visibility of first point + clean; // no intersections + return { + lineStart: function() { + v00 = v0 = false; + clean = 1; + }, + point: function(lambda, phi) { + var point1 = [lambda, phi], + point2, + v = visible(lambda, phi), + c = smallRadius + ? v ? 0 : code(lambda, phi) + : v ? code(lambda + (lambda < 0 ? pi$3 : -pi$3), phi) : 0; + if (!point0 && (v00 = v0 = v)) stream.lineStart(); + // Handle degeneracies. + // TODO ignore if not clipping polygons. + if (v !== v0) { + point2 = intersect(point0, point1); + if (pointEqual(point0, point2) || pointEqual(point1, point2)) { + point1[0] += epsilon$4; + point1[1] += epsilon$4; + v = visible(point1[0], point1[1]); + } + } + if (v !== v0) { + clean = 0; + if (v) { + // outside going in + stream.lineStart(); + point2 = intersect(point1, point0); + stream.point(point2[0], point2[1]); + } else { + // inside going out + point2 = intersect(point0, point1); + stream.point(point2[0], point2[1]); + stream.lineEnd(); + } + point0 = point2; + } else if (notHemisphere && point0 && smallRadius ^ v) { + var t; + // If the codes for two points are different, or are both zero, + // and there this segment intersects with the small circle. + if (!(c & c0) && (t = intersect(point1, point0, true))) { + clean = 0; + if (smallRadius) { + stream.lineStart(); + stream.point(t[0][0], t[0][1]); + stream.point(t[1][0], t[1][1]); + stream.lineEnd(); + } else { + stream.point(t[1][0], t[1][1]); + stream.lineEnd(); + stream.lineStart(); + stream.point(t[0][0], t[0][1]); + } + } + } + if (v && (!point0 || !pointEqual(point0, point1))) { + stream.point(point1[0], point1[1]); + } + point0 = point1, v0 = v, c0 = c; + }, + lineEnd: function() { + if (v0) stream.lineEnd(); + point0 = null; + }, + // Rejoin first and last segments if there were intersections and the first + // and last points were visible. + clean: function() { + return clean | ((v00 && v0) << 1); + } + }; + } + + // Intersects the great circle between a and b with the clip circle. + function intersect(a, b, two) { + var pa = cartesian(a), + pb = cartesian(b); + + // We have two planes, n1.p = d1 and n2.p = d2. + // Find intersection line p(t) = c1 n1 + c2 n2 + t (n1 ⨯ n2). + var n1 = [1, 0, 0], // normal + n2 = cartesianCross(pa, pb), + n2n2 = cartesianDot(n2, n2), + n1n2 = n2[0], // cartesianDot(n1, n2), + determinant = n2n2 - n1n2 * n1n2; + + // Two polar points. + if (!determinant) return !two && a; + + var c1 = cr * n2n2 / determinant, + c2 = -cr * n1n2 / determinant, + n1xn2 = cartesianCross(n1, n2), + A = cartesianScale(n1, c1), + B = cartesianScale(n2, c2); + cartesianAddInPlace(A, B); + + // Solve |p(t)|^2 = 1. + var u = n1xn2, + w = cartesianDot(A, u), + uu = cartesianDot(u, u), + t2 = w * w - uu * (cartesianDot(A, A) - 1); + + if (t2 < 0) return; + + var t = sqrt$1(t2), + q = cartesianScale(u, (-w - t) / uu); + cartesianAddInPlace(q, A); + q = spherical(q); + + if (!two) return q; + + // Two intersection points. + var lambda0 = a[0], + lambda1 = b[0], + phi0 = a[1], + phi1 = b[1], + z; + + if (lambda1 < lambda0) z = lambda0, lambda0 = lambda1, lambda1 = z; + + var delta = lambda1 - lambda0, + polar = abs(delta - pi$3) < epsilon$4, + meridian = polar || delta < epsilon$4; + + if (!polar && phi1 < phi0) z = phi0, phi0 = phi1, phi1 = z; + + // Check that the first point is between a and b. + if (meridian + ? polar + ? phi0 + phi1 > 0 ^ q[1] < (abs(q[0] - lambda0) < epsilon$4 ? phi0 : phi1) + : phi0 <= q[1] && q[1] <= phi1 + : delta > pi$3 ^ (lambda0 <= q[0] && q[0] <= lambda1)) { + var q1 = cartesianScale(u, (-w + t) / uu); + cartesianAddInPlace(q1, A); + return [q, spherical(q1)]; + } + } + + // Generates a 4-bit vector representing the location of a point relative to + // the small circle's bounding box. + function code(lambda, phi) { + var r = smallRadius ? radius : pi$3 - radius, + code = 0; + if (lambda < -r) code |= 1; // left + else if (lambda > r) code |= 2; // right + if (phi < -r) code |= 4; // below + else if (phi > r) code |= 8; // above + return code; + } + + return clip(visible, clipLine, interpolate, smallRadius ? [0, -radius] : [-pi$3, radius - pi$3]); + } + + function transform$1(prototype) { + return { + stream: transform$2(prototype) + }; + } + + function transform$2(prototype) { + function T() {} + var p = T.prototype = Object.create(Transform$1.prototype); + for (var k in prototype) p[k] = prototype[k]; + return function(stream) { + var t = new T; + t.stream = stream; + return t; + }; + } + + function Transform$1() {} + + Transform$1.prototype = { + point: function(x, y) { this.stream.point(x, y); }, + sphere: function() { this.stream.sphere(); }, + lineStart: function() { this.stream.lineStart(); }, + lineEnd: function() { this.stream.lineEnd(); }, + polygonStart: function() { this.stream.polygonStart(); }, + polygonEnd: function() { this.stream.polygonEnd(); } + }; + + var maxDepth = 16; + var cosMinDistance = cos(30 * radians); + // cos(minimum angular distance) + + function resample(project, delta2) { + return +delta2 ? resample$1(project, delta2) : resampleNone(project); + } + + function resampleNone(project) { + return transform$2({ + point: function(x, y) { + x = project(x, y); + this.stream.point(x[0], x[1]); + } + }); + } + + function resample$1(project, delta2) { + + function resampleLineTo(x0, y0, lambda0, a0, b0, c0, x1, y1, lambda1, a1, b1, c1, depth, stream) { + var dx = x1 - x0, + dy = y1 - y0, + d2 = dx * dx + dy * dy; + if (d2 > 4 * delta2 && depth--) { + var a = a0 + a1, + b = b0 + b1, + c = c0 + c1, + m = sqrt$1(a * a + b * b + c * c), + phi2 = asin$1(c /= m), + lambda2 = abs(abs(c) - 1) < epsilon$4 || abs(lambda0 - lambda1) < epsilon$4 ? (lambda0 + lambda1) / 2 : atan2(b, a), + p = project(lambda2, phi2), + x2 = p[0], + y2 = p[1], + dx2 = x2 - x0, + dy2 = y2 - y0, + dz = dy * dx2 - dx * dy2; + if (dz * dz / d2 > delta2 // perpendicular projected distance + || abs((dx * dx2 + dy * dy2) / d2 - 0.5) > 0.3 // midpoint close to an end + || a0 * a1 + b0 * b1 + c0 * c1 < cosMinDistance) { // angular distance + resampleLineTo(x0, y0, lambda0, a0, b0, c0, x2, y2, lambda2, a /= m, b /= m, c, depth, stream); + stream.point(x2, y2); + resampleLineTo(x2, y2, lambda2, a, b, c, x1, y1, lambda1, a1, b1, c1, depth, stream); + } + } + } + return function(stream) { + var lambda00, x00, y00, a00, b00, c00, // first point + lambda0, x0, y0, a0, b0, c0; // previous point + + var resampleStream = { + point: point, + lineStart: lineStart, + lineEnd: lineEnd, + polygonStart: function() { stream.polygonStart(); resampleStream.lineStart = ringStart; }, + polygonEnd: function() { stream.polygonEnd(); resampleStream.lineStart = lineStart; } + }; + + function point(x, y) { + x = project(x, y); + stream.point(x[0], x[1]); + } + + function lineStart() { + x0 = NaN; + resampleStream.point = linePoint; + stream.lineStart(); + } + + function linePoint(lambda, phi) { + var c = cartesian([lambda, phi]), p = project(lambda, phi); + resampleLineTo(x0, y0, lambda0, a0, b0, c0, x0 = p[0], y0 = p[1], lambda0 = lambda, a0 = c[0], b0 = c[1], c0 = c[2], maxDepth, stream); + stream.point(x0, y0); + } + + function lineEnd() { + resampleStream.point = point; + stream.lineEnd(); + } + + function ringStart() { + lineStart(); + resampleStream.point = ringPoint; + resampleStream.lineEnd = ringEnd; + } + + function ringPoint(lambda, phi) { + linePoint(lambda00 = lambda, phi), x00 = x0, y00 = y0, a00 = a0, b00 = b0, c00 = c0; + resampleStream.point = linePoint; + } + + function ringEnd() { + resampleLineTo(x0, y0, lambda0, a0, b0, c0, x00, y00, lambda00, a00, b00, c00, maxDepth, stream); + resampleStream.lineEnd = lineEnd; + lineEnd(); + } + + return resampleStream; + }; + } + + var transformRadians = transform$2({ + point: function(x, y) { + this.stream.point(x * radians, y * radians); + } + }); + + function projection(project) { + return projectionMutator(function() { return project; })(); + } + + function projectionMutator(projectAt) { + var project, + k = 150, // scale + x = 480, y = 250, // translate + dx, dy, lambda = 0, phi = 0, // center + deltaLambda = 0, deltaPhi = 0, deltaGamma = 0, rotate, projectRotate, // rotate + theta = null, preclip = clipAntimeridian, // clip angle + x0 = null, y0, x1, y1, postclip = identity$7, // clip extent + delta2 = 0.5, projectResample = resample(projectTransform, delta2), // precision + cache, + cacheStream; + + function projection(point) { + point = projectRotate(point[0] * radians, point[1] * radians); + return [point[0] * k + dx, dy - point[1] * k]; + } + + function invert(point) { + point = projectRotate.invert((point[0] - dx) / k, (dy - point[1]) / k); + return point && [point[0] * degrees$1, point[1] * degrees$1]; + } + + function projectTransform(x, y) { + return x = project(x, y), [x[0] * k + dx, dy - x[1] * k]; + } + + projection.stream = function(stream) { + return cache && cacheStream === stream ? cache : cache = transformRadians(preclip(rotate, projectResample(postclip(cacheStream = stream)))); + }; + + projection.clipAngle = function(_) { + return arguments.length ? (preclip = +_ ? clipCircle(theta = _ * radians, 6 * radians) : (theta = null, clipAntimeridian), reset()) : theta * degrees$1; + }; + + projection.clipExtent = function(_) { + return arguments.length ? (postclip = _ == null ? (x0 = y0 = x1 = y1 = null, identity$7) : clipExtent(x0 = +_[0][0], y0 = +_[0][1], x1 = +_[1][0], y1 = +_[1][1]), reset()) : x0 == null ? null : [[x0, y0], [x1, y1]]; + }; + + projection.scale = function(_) { + return arguments.length ? (k = +_, recenter()) : k; + }; + + projection.translate = function(_) { + return arguments.length ? (x = +_[0], y = +_[1], recenter()) : [x, y]; + }; + + projection.center = function(_) { + return arguments.length ? (lambda = _[0] % 360 * radians, phi = _[1] % 360 * radians, recenter()) : [lambda * degrees$1, phi * degrees$1]; + }; + + projection.rotate = function(_) { + return arguments.length ? (deltaLambda = _[0] % 360 * radians, deltaPhi = _[1] % 360 * radians, deltaGamma = _.length > 2 ? _[2] % 360 * radians : 0, recenter()) : [deltaLambda * degrees$1, deltaPhi * degrees$1, deltaGamma * degrees$1]; + }; + + projection.precision = function(_) { + return arguments.length ? (projectResample = resample(projectTransform, delta2 = _ * _), reset()) : sqrt$1(delta2); + }; + + function recenter() { + projectRotate = compose(rotate = rotateRadians(deltaLambda, deltaPhi, deltaGamma), project); + var center = project(lambda, phi); + dx = x - center[0] * k; + dy = y + center[1] * k; + return reset(); + } + + function reset() { + cache = cacheStream = null; + return projection; + } + + return function() { + project = projectAt.apply(this, arguments); + projection.invert = project.invert && invert; + return recenter(); + }; + } + + function conicProjection(projectAt) { + var phi0 = 0, + phi1 = pi$3 / 3, + m = projectionMutator(projectAt), + p = m(phi0, phi1); + + p.parallels = function(_) { + return arguments.length ? m(phi0 = _[0] * radians, phi1 = _[1] * radians) : [phi0 * degrees$1, phi1 * degrees$1]; + }; + + return p; + } + + function conicEqualArea(y0, y1) { + var sy0 = sin(y0), + n = (sy0 + sin(y1)) / 2, + c = 1 + sy0 * (2 * n - sy0), + r0 = sqrt$1(c) / n; + + function project(x, y) { + var r = sqrt$1(c - 2 * n * sin(y)) / n; + return [r * sin(x *= n), r0 - r * cos(x)]; + } + + project.invert = function(x, y) { + var r0y = r0 - y; + return [atan2(x, r0y) / n, asin$1((c - (x * x + r0y * r0y) * n * n) / (2 * n))]; + }; + + return project; + } + + function conicEqualArea$1() { + return conicProjection(conicEqualArea) + .scale(151) + .translate([480, 347]); + } + + function albers() { + return conicEqualArea$1() + .parallels([29.5, 45.5]) + .scale(1070) + .translate([480, 250]) + .rotate([96, 0]) + .center([-0.6, 38.7]); + } + + // The projections must have mutually exclusive clip regions on the sphere, + // as this will avoid emitting interleaving lines and polygons. + function multiplex(streams) { + var n = streams.length; + return { + point: function(x, y) { var i = -1; while (++i < n) streams[i].point(x, y); }, + sphere: function() { var i = -1; while (++i < n) streams[i].sphere(); }, + lineStart: function() { var i = -1; while (++i < n) streams[i].lineStart(); }, + lineEnd: function() { var i = -1; while (++i < n) streams[i].lineEnd(); }, + polygonStart: function() { var i = -1; while (++i < n) streams[i].polygonStart(); }, + polygonEnd: function() { var i = -1; while (++i < n) streams[i].polygonEnd(); } + }; + } + + // A composite projection for the United States, configured by default for + // 960×500. Also works quite well at 960×600 with scale 1285. The set of + // standard parallels for each region comes from USGS, which is published here: + // http://egsc.usgs.gov/isb/pubs/MapProjections/projections.html#albers + function albersUsa() { + var cache, + cacheStream, + lower48 = albers(), lower48Point, + alaska = conicEqualArea$1().rotate([154, 0]).center([-2, 58.5]).parallels([55, 65]), alaskaPoint, // EPSG:3338 + hawaii = conicEqualArea$1().rotate([157, 0]).center([-3, 19.9]).parallels([8, 18]), hawaiiPoint, // ESRI:102007 + point, pointStream = {point: function(x, y) { point = [x, y]; }}; + + function albersUsa(coordinates) { + var x = coordinates[0], y = coordinates[1]; + return point = null, + (lower48Point.point(x, y), point) + || (alaskaPoint.point(x, y), point) + || (hawaiiPoint.point(x, y), point); + } + + albersUsa.invert = function(coordinates) { + var k = lower48.scale(), + t = lower48.translate(), + x = (coordinates[0] - t[0]) / k, + y = (coordinates[1] - t[1]) / k; + return (y >= 0.120 && y < 0.234 && x >= -0.425 && x < -0.214 ? alaska + : y >= 0.166 && y < 0.234 && x >= -0.214 && x < -0.115 ? hawaii + : lower48).invert(coordinates); + }; + + albersUsa.stream = function(stream) { + return cache && cacheStream === stream ? cache : cache = multiplex([lower48.stream(cacheStream = stream), alaska.stream(stream), hawaii.stream(stream)]); + }; + + albersUsa.precision = function(_) { + if (!arguments.length) return lower48.precision(); + lower48.precision(_), alaska.precision(_), hawaii.precision(_); + return albersUsa; + }; + + albersUsa.scale = function(_) { + if (!arguments.length) return lower48.scale(); + lower48.scale(_), alaska.scale(_ * 0.35), hawaii.scale(_); + return albersUsa.translate(lower48.translate()); + }; + + albersUsa.translate = function(_) { + if (!arguments.length) return lower48.translate(); + var k = lower48.scale(), x = +_[0], y = +_[1]; + + lower48Point = lower48 + .translate(_) + .clipExtent([[x - 0.455 * k, y - 0.238 * k], [x + 0.455 * k, y + 0.238 * k]]) + .stream(pointStream); + + alaskaPoint = alaska + .translate([x - 0.307 * k, y + 0.201 * k]) + .clipExtent([[x - 0.425 * k + epsilon$4, y + 0.120 * k + epsilon$4], [x - 0.214 * k - epsilon$4, y + 0.234 * k - epsilon$4]]) + .stream(pointStream); + + hawaiiPoint = hawaii + .translate([x - 0.205 * k, y + 0.212 * k]) + .clipExtent([[x - 0.214 * k + epsilon$4, y + 0.166 * k + epsilon$4], [x - 0.115 * k - epsilon$4, y + 0.234 * k - epsilon$4]]) + .stream(pointStream); + + return albersUsa; + }; + + return albersUsa.scale(1070); + } + + function azimuthal(scale) { + return function(x, y) { + var cx = cos(x), + cy = cos(y), + k = scale(cx * cy); + return [ + k * cy * sin(x), + k * sin(y) + ]; + } + } + + function azimuthalInvert(angle) { + return function(x, y) { + var z = sqrt$1(x * x + y * y), + c = angle(z), + sc = sin(c), + cc = cos(c); + return [ + atan2(x * sc, z * cc), + asin$1(z && y * sc / z) + ]; + } + } + + var azimuthalEqualArea = azimuthal(function(cxcy) { + return sqrt$1(2 / (1 + cxcy)); + }); + + azimuthalEqualArea.invert = azimuthalInvert(function(z) { + return 2 * asin$1(z / 2); + }); + + function azimuthalEqualArea$1() { + return projection(azimuthalEqualArea) + .scale(120) + .clipAngle(180 - 1e-3); + } + + var azimuthalEquidistant = azimuthal(function(c) { + return (c = acos(c)) && c / sin(c); + }); + + azimuthalEquidistant.invert = azimuthalInvert(function(z) { + return z; + }); + + function azimuthalEquidistant$1() { + return projection(azimuthalEquidistant) + .scale(480 / tau$3) + .clipAngle(180 - 1e-3); + } + + function mercator(lambda, phi) { + return [lambda, log$1(tan((halfPi$2 + phi) / 2))]; + } + + mercator.invert = function(x, y) { + return [x, 2 * atan(exp(y)) - halfPi$2]; + }; + + function mercator$1() { + return mercatorProjection(mercator); + } + + function mercatorProjection(project) { + var m = projection(project), + scale = m.scale, + translate = m.translate, + clipExtent = m.clipExtent, + clipAuto; + + m.scale = function(_) { + return arguments.length ? (scale(_), clipAuto && m.clipExtent(null), m) : scale(); + }; + + m.translate = function(_) { + return arguments.length ? (translate(_), clipAuto && m.clipExtent(null), m) : translate(); + }; + + m.clipExtent = function(_) { + if (!arguments.length) return clipAuto ? null : clipExtent(); + if (clipAuto = _ == null) { + var k = pi$3 * scale(), t = translate(); + _ = [[t[0] - k, t[1] - k], [t[0] + k, t[1] + k]]; + } + clipExtent(_); + return m; + }; + + return m.clipExtent(null).scale(961 / tau$3); + } + + function tany(y) { + return tan((halfPi$2 + y) / 2); + } + + function conicConformal(y0, y1) { + var cy0 = cos(y0), + n = y0 === y1 ? sin(y0) : log$1(cy0 / cos(y1)) / log$1(tany(y1) / tany(y0)), + f = cy0 * pow$1(tany(y0), n) / n; + + if (!n) return mercator; + + function project(x, y) { + if (f > 0) { if (y < -halfPi$2 + epsilon$4) y = -halfPi$2 + epsilon$4; } + else { if (y > halfPi$2 - epsilon$4) y = halfPi$2 - epsilon$4; } + var r = f / pow$1(tany(y), n); + return [r * sin(n * x), f - r * cos(n * x)]; + } + + project.invert = function(x, y) { + var fy = f - y, r = sign$1(n) * sqrt$1(x * x + fy * fy); + return [atan2(x, fy) / n, 2 * atan(pow$1(f / r, 1 / n)) - halfPi$2]; + }; + + return project; + } + + function conicConformal$1() { + return conicProjection(conicConformal); + } + + function equirectangular(lambda, phi) { + return [lambda, phi]; + } + + equirectangular.invert = equirectangular; + + function equirectangular$1() { + return projection(equirectangular).scale(480 / pi$3); + } + + function conicEquidistant(y0, y1) { + var cy0 = cos(y0), + n = y0 === y1 ? sin(y0) : (cy0 - cos(y1)) / (y1 - y0), + g = cy0 / n + y0; + + if (abs(n) < epsilon$4) return equirectangular; + + function project(x, y) { + var gy = g - y, nx = n * x; + return [gy * sin(nx), g - gy * cos(nx)]; + } + + project.invert = function(x, y) { + var gy = g - y; + return [atan2(x, gy) / n, g - sign$1(n) * sqrt$1(x * x + gy * gy)]; + }; + + return project; + } + + function conicEquidistant$1() { + return conicProjection(conicEquidistant) + .scale(128) + .translate([480, 280]); + } + + function gnomonic(x, y) { + var cy = cos(y), k = cos(x) * cy; + return [cy * sin(x) / k, sin(y) / k]; + } + + gnomonic.invert = azimuthalInvert(atan); + + function gnomonic$1() { + return projection(gnomonic) + .scale(139) + .clipAngle(60); + } + + function orthographic(x, y) { + return [cos(y) * sin(x), sin(y)]; + } + + orthographic.invert = azimuthalInvert(asin$1); + + function orthographic$1() { + return projection(orthographic) + .scale(240) + .clipAngle(90 + epsilon$4); + } + + function stereographic(x, y) { + var cy = cos(y), k = 1 + cos(x) * cy; + return [cy * sin(x) / k, sin(y) / k]; + } + + stereographic.invert = azimuthalInvert(function(z) { + return 2 + atan(z); + }); + + function stereographic$1() { + return projection(stereographic) + .scale(240) + .clipAngle(142); + } + + function transverseMercator(lambda, phi) { + return [log$1(tan((halfPi$2 + phi) / 2)), -lambda]; + } + + transverseMercator.invert = function(x, y) { + return [-y, 2 * atan(exp(x)) - halfPi$2]; + }; + + function transverseMercator$1() { + var m = mercatorProjection(transverseMercator), + center = m.center, + rotate = m.rotate; + + m.center = function(_) { + return arguments.length ? center([-_[1], _[0]]) : (_ = center(), [_[1], -_[0]]); + }; + + m.rotate = function(_) { + return arguments.length ? rotate([_[0], _[1], _.length > 2 ? _[2] + 90 : 90]) : (_ = rotate(), [_[0], _[1], _[2] - 90]); + }; + + return rotate([0, 0, 90]); + } + + exports.version = version; + exports.bisect = bisectRight; + exports.bisectRight = bisectRight; + exports.bisectLeft = bisectLeft; + exports.ascending = ascending; + exports.bisector = bisector; + exports.descending = descending; + exports.deviation = deviation; + exports.extent = extent; + exports.histogram = histogram; + exports.thresholdFreedmanDiaconis = freedmanDiaconis; + exports.thresholdScott = scott; + exports.thresholdSturges = sturges; + exports.max = max; + exports.mean = mean; + exports.median = median; + exports.merge = merge; + exports.min = min; + exports.pairs = pairs; + exports.permute = permute; + exports.quantile = threshold; + exports.range = range; + exports.scan = scan; + exports.shuffle = shuffle; + exports.sum = sum; + exports.ticks = ticks; + exports.tickStep = tickStep; + exports.transpose = transpose; + exports.variance = variance; + exports.zip = zip; + exports.entries = entries; + exports.keys = keys; + exports.values = values; + exports.map = map$1; + exports.set = set; + exports.nest = nest; + exports.randomUniform = uniform; + exports.randomNormal = normal; + exports.randomLogNormal = logNormal; + exports.randomBates = bates; + exports.randomIrwinHall = irwinHall; + exports.randomExponential = exponential; + exports.easeLinear = linear; + exports.easeQuad = quadInOut; + exports.easeQuadIn = quadIn; + exports.easeQuadOut = quadOut; + exports.easeQuadInOut = quadInOut; + exports.easeCubic = easeCubicInOut; + exports.easeCubicIn = cubicIn; + exports.easeCubicOut = cubicOut; + exports.easeCubicInOut = easeCubicInOut; + exports.easePoly = polyInOut; + exports.easePolyIn = polyIn; + exports.easePolyOut = polyOut; + exports.easePolyInOut = polyInOut; + exports.easeSin = sinInOut; + exports.easeSinIn = sinIn; + exports.easeSinOut = sinOut; + exports.easeSinInOut = sinInOut; + exports.easeExp = expInOut; + exports.easeExpIn = expIn; + exports.easeExpOut = expOut; + exports.easeExpInOut = expInOut; + exports.easeCircle = circleInOut; + exports.easeCircleIn = circleIn; + exports.easeCircleOut = circleOut; + exports.easeCircleInOut = circleInOut; + exports.easeBounce = bounceOut; + exports.easeBounceIn = bounceIn; + exports.easeBounceOut = bounceOut; + exports.easeBounceInOut = bounceInOut; + exports.easeBack = backInOut; + exports.easeBackIn = backIn; + exports.easeBackOut = backOut; + exports.easeBackInOut = backInOut; + exports.easeElastic = elasticOut; + exports.easeElasticIn = elasticIn; + exports.easeElasticOut = elasticOut; + exports.easeElasticInOut = elasticInOut; + exports.polygonArea = area; + exports.polygonCentroid = centroid; + exports.polygonHull = hull; + exports.polygonContains = contains; + exports.polygonLength = length$1; + exports.path = path; + exports.quadtree = quadtree; + exports.queue = queue; + exports.arc = arc; + exports.area = area$1; + exports.line = line; + exports.pie = pie; + exports.radialArea = radialArea; + exports.radialLine = radialLine$1; + exports.symbol = symbol; + exports.symbols = symbols; + exports.symbolCircle = circle; + exports.symbolCross = cross$1; + exports.symbolDiamond = diamond; + exports.symbolSquare = square; + exports.symbolStar = star; + exports.symbolTriangle = triangle; + exports.symbolWye = wye; + exports.curveBasisClosed = basisClosed; + exports.curveBasisOpen = basisOpen; + exports.curveBasis = basis; + exports.curveBundle = bundle; + exports.curveCardinalClosed = cardinalClosed; + exports.curveCardinalOpen = cardinalOpen; + exports.curveCardinal = cardinal; + exports.curveCatmullRomClosed = catmullRomClosed; + exports.curveCatmullRomOpen = catmullRomOpen; + exports.curveCatmullRom = catmullRom; + exports.curveLinearClosed = linearClosed; + exports.curveLinear = curveLinear; + exports.curveMonotoneX = monotoneX; + exports.curveMonotoneY = monotoneY; + exports.curveNatural = natural; + exports.curveStep = step; + exports.curveStepAfter = stepAfter; + exports.curveStepBefore = stepBefore; + exports.stack = stack; + exports.stackOffsetExpand = expand; + exports.stackOffsetNone = none; + exports.stackOffsetSilhouette = silhouette; + exports.stackOffsetWiggle = wiggle; + exports.stackOrderAscending = ascending$1; + exports.stackOrderDescending = descending$2; + exports.stackOrderInsideOut = insideOut; + exports.stackOrderNone = none$1; + exports.stackOrderReverse = reverse; + exports.color = color; + exports.rgb = colorRgb; + exports.hsl = colorHsl; + exports.lab = lab; + exports.hcl = colorHcl; + exports.cubehelix = cubehelix; + exports.interpolate = interpolate; + exports.interpolateArray = array$1; + exports.interpolateNumber = interpolateNumber; + exports.interpolateObject = object; + exports.interpolateRound = interpolateRound; + exports.interpolateString = interpolateString; + exports.interpolateTransformCss = interpolateTransform$1; + exports.interpolateTransformSvg = interpolateTransform$2; + exports.interpolateZoom = interpolateZoom; + exports.interpolateRgb = interpolateRgb; + exports.interpolateRgbBasis = rgbBasis; + exports.interpolateRgbBasisClosed = rgbBasisClosed; + exports.interpolateHsl = hsl$1; + exports.interpolateHslLong = hslLong; + exports.interpolateLab = lab$1; + exports.interpolateHcl = hcl$1; + exports.interpolateHclLong = hclLong; + exports.interpolateCubehelix = cubehelix$2; + exports.interpolateCubehelixLong = interpolateCubehelixLong; + exports.interpolateBasis = basis$2; + exports.interpolateBasisClosed = basisClosed$1; + exports.quantize = quantize; + exports.dispatch = dispatch; + exports.dsvFormat = dsv; + exports.csvParse = csvParse; + exports.csvParseRows = csvParseRows; + exports.csvFormat = csvFormat; + exports.csvFormatRows = csvFormatRows; + exports.tsvParse = tsvParse; + exports.tsvParseRows = tsvParseRows; + exports.tsvFormat = tsvFormat; + exports.tsvFormatRows = tsvFormatRows; + exports.request = request; + exports.html = html; + exports.json = json; + exports.text = text; + exports.xml = xml; + exports.csv = csv$1; + exports.tsv = tsv$1; + exports.now = now; + exports.timer = timer; + exports.timerFlush = timerFlush; + exports.timeout = timeout$1; + exports.interval = interval$1; + exports.timeInterval = newInterval; + exports.timeMillisecond = millisecond; + exports.timeMilliseconds = milliseconds; + exports.timeSecond = second; + exports.timeSeconds = seconds; + exports.timeMinute = minute; + exports.timeMinutes = minutes; + exports.timeHour = hour; + exports.timeHours = hours; + exports.timeDay = day; + exports.timeDays = days; + exports.timeWeek = timeWeek; + exports.timeWeeks = sundays; + exports.timeSunday = timeWeek; + exports.timeSundays = sundays; + exports.timeMonday = timeMonday; + exports.timeMondays = mondays; + exports.timeTuesday = tuesday; + exports.timeTuesdays = tuesdays; + exports.timeWednesday = wednesday; + exports.timeWednesdays = wednesdays; + exports.timeThursday = thursday; + exports.timeThursdays = thursdays; + exports.timeFriday = friday; + exports.timeFridays = fridays; + exports.timeSaturday = saturday; + exports.timeSaturdays = saturdays; + exports.timeMonth = month; + exports.timeMonths = months; + exports.timeYear = year; + exports.timeYears = years; + exports.utcMillisecond = millisecond; + exports.utcMilliseconds = milliseconds; + exports.utcSecond = second; + exports.utcSeconds = seconds; + exports.utcMinute = utcMinute; + exports.utcMinutes = utcMinutes; + exports.utcHour = utcHour; + exports.utcHours = utcHours; + exports.utcDay = utcDay; + exports.utcDays = utcDays; + exports.utcWeek = utcWeek; + exports.utcWeeks = utcSundays; + exports.utcSunday = utcWeek; + exports.utcSundays = utcSundays; + exports.utcMonday = utcMonday; + exports.utcMondays = utcMondays; + exports.utcTuesday = utcTuesday; + exports.utcTuesdays = utcTuesdays; + exports.utcWednesday = utcWednesday; + exports.utcWednesdays = utcWednesdays; + exports.utcThursday = utcThursday; + exports.utcThursdays = utcThursdays; + exports.utcFriday = utcFriday; + exports.utcFridays = utcFridays; + exports.utcSaturday = utcSaturday; + exports.utcSaturdays = utcSaturdays; + exports.utcMonth = utcMonth; + exports.utcMonths = utcMonths; + exports.utcYear = utcYear; + exports.utcYears = utcYears; + exports.formatLocale = formatLocale; + exports.formatDefaultLocale = defaultLocale; + exports.formatSpecifier = formatSpecifier; + exports.precisionFixed = precisionFixed; + exports.precisionPrefix = precisionPrefix; + exports.precisionRound = precisionRound; + exports.isoFormat = formatIso; + exports.isoParse = parseIso; + exports.timeFormatLocale = formatLocale$1; + exports.timeFormatDefaultLocale = defaultLocale$1; + exports.scaleBand = band; + exports.scalePoint = point$4; + exports.scaleIdentity = identity$4; + exports.scaleLinear = linear$2; + exports.scaleLog = log; + exports.scaleOrdinal = ordinal; + exports.scaleImplicit = implicit; + exports.scalePow = pow; + exports.scaleSqrt = sqrt; + exports.scaleQuantile = quantile; + exports.scaleQuantize = quantize$1; + exports.scaleThreshold = threshold$1; + exports.scaleTime = time; + exports.scaleUtc = utcTime; + exports.schemeCategory10 = category10; + exports.schemeCategory20b = category20b; + exports.schemeCategory20c = category20c; + exports.schemeCategory20 = category20; + exports.scaleSequential = sequential; + exports.interpolateCubehelixDefault = cubehelix$3; + exports.interpolateRainbow = rainbow$1; + exports.interpolateWarm = warm; + exports.interpolateCool = cool; + exports.interpolateViridis = viridis; + exports.interpolateMagma = magma; + exports.interpolateInferno = inferno; + exports.interpolatePlasma = plasma; + exports.creator = creator; + exports.customEvent = customEvent; + exports.local = local; + exports.matcher = matcher$1; + exports.mouse = mouse; + exports.namespace = namespace; + exports.namespaces = namespaces; + exports.select = select; + exports.selectAll = selectAll; + exports.selection = selection; + exports.selector = selector; + exports.selectorAll = selectorAll; + exports.touch = touch; + exports.touches = touches; + exports.window = window; + exports.active = active; + exports.interrupt = interrupt; + exports.transition = transition; + exports.axisTop = axisTop; + exports.axisRight = axisRight; + exports.axisBottom = axisBottom; + exports.axisLeft = axisLeft; + exports.cluster = cluster; + exports.hierarchy = hierarchy; + exports.pack = index; + exports.packSiblings = siblings; + exports.packEnclose = enclose; + exports.partition = partition; + exports.stratify = stratify; + exports.tree = tree; + exports.treemap = index$1; + exports.treemapBinary = binary; + exports.treemapDice = treemapDice; + exports.treemapSlice = treemapSlice; + exports.treemapSliceDice = sliceDice; + exports.treemapSquarify = squarify; + exports.treemapResquarify = resquarify; + exports.forceCenter = center$1; + exports.forceCollide = collide; + exports.forceLink = link; + exports.forceManyBody = manyBody; + exports.forceSimulation = simulation; + exports.forceX = x$3; + exports.forceY = y$3; + exports.drag = drag; + exports.dragDisable = dragDisable; + exports.dragEnable = dragEnable; + exports.voronoi = voronoi; + exports.zoom = zoom; + exports.zoomIdentity = identity$6; + exports.zoomTransform = transform; + exports.brush = brush; + exports.brushX = brushX; + exports.brushY = brushY; + exports.brushSelection = brushSelection; + exports.geoArea = area$2; + exports.geoBounds = bounds; + exports.geoCentroid = centroid$1; + exports.geoCircle = circle$1; + exports.geoClipExtent = extent$1; + exports.geoDistance = distance; + exports.geoGraticule = graticule; + exports.geoInterpolate = interpolate$2; + exports.geoLength = length$2; + exports.geoPath = index$3; + exports.geoAlbers = albers; + exports.geoAlbersUsa = albersUsa; + exports.geoAzimuthalEqualArea = azimuthalEqualArea$1; + exports.geoAzimuthalEquidistant = azimuthalEquidistant$1; + exports.geoConicConformal = conicConformal$1; + exports.geoConicEqualArea = conicEqualArea$1; + exports.geoConicEquidistant = conicEquidistant$1; + exports.geoEquirectangular = equirectangular$1; + exports.geoGnomonic = gnomonic$1; + exports.geoProjection = projection; + exports.geoProjectionMutator = projectionMutator; + exports.geoMercator = mercator$1; + exports.geoOrthographic = orthographic$1; + exports.geoStereographic = stereographic$1; + exports.geoTransverseMercator = transverseMercator$1; + exports.geoRotation = rotation; + exports.geoStream = stream; + exports.geoTransform = transform$1; + + Object.defineProperty(exports, '__esModule', { value: true }); + +})); \ No newline at end of file diff --git a/public/js/d3.min.js b/public/js/d3.min.js new file mode 100644 index 00000000..607d1879 --- /dev/null +++ b/public/js/d3.min.js @@ -0,0 +1,2 @@ +// https://d3js.org Version 4.13.0. Copyright 2018 Mike Bostock. +(function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(t.d3=t.d3||{})})(this,function(t){"use strict";function n(t,n){return tn?1:t>=n?0:NaN}function e(t){return 1===t.length&&(t=function(t){return function(e,r){return n(t(e),r)}}(t)),{left:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r>>1;t(n[o],e)<0?r=o+1:i=o}return r},right:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r>>1;t(n[o],e)>0?i=o:r=o+1}return r}}}function r(t,n){return[t,n]}function i(t){return null===t?NaN:+t}function o(t,n){var e,r,o=t.length,u=0,a=-1,c=0,s=0;if(null==n)for(;++a1)return s/(u-1)}function u(t,n){var e=o(t,n);return e?Math.sqrt(e):e}function a(t,n){var e,r,i,o=t.length,u=-1;if(null==n){for(;++u=e)for(r=i=e;++ue&&(r=e),i=e)for(r=i=e;++ue&&(r=e),i0)return[t];if((r=n0)for(t=Math.ceil(t/u),n=Math.floor(n/u),o=new Array(i=Math.ceil(n-t+1));++a=0?(o>=Hs?10:o>=js?5:o>=Xs?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=Hs?10:o>=js?5:o>=Xs?2:1)}function p(t,n,e){var r=Math.abs(n-t)/Math.max(0,e),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=Hs?i*=10:o>=js?i*=5:o>=Xs&&(i*=2),n=1)return+e(t[r-1],r-1,t);var r,o=(r-1)*n,u=Math.floor(o),a=+e(t[u],u,t);return a+(+e(t[u+1],u+1,t)-a)*(o-u)}}function g(t){for(var n,e,r,i=t.length,o=-1,u=0;++o=0;)for(n=(r=t[i]).length;--n>=0;)e[--u]=r[n];return e}function _(t,n){var e,r,i=t.length,o=-1;if(null==n){for(;++o=e)for(r=e;++oe&&(r=e)}else for(;++o=e)for(r=e;++oe&&(r=e);return r}function y(t){if(!(i=t.length))return[];for(var n=-1,e=_(t,m),r=new Array(e);++n=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),tf.hasOwnProperty(n)?{space:tf[n],local:t}:t}function A(t){var n=E(t);return(n.local?function(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}:function(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===Ks&&n.documentElement.namespaceURI===Ks?n.createElement(t):n.createElementNS(e,t)}})(n)}function C(){}function z(t){return null==t?C:function(){return this.querySelector(t)}}function P(){return[]}function R(t){return null==t?P:function(){return this.querySelectorAll(t)}}function L(t){return new Array(t.length)}function q(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function D(t,n,e,r,i,o){for(var u,a=0,c=n.length,s=o.length;an?1:t>=n?0:NaN}function F(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function I(t,n){return t.style.getPropertyValue(n)||F(t).getComputedStyle(t,null).getPropertyValue(n)}function Y(t){return t.trim().split(/^|\s+/)}function B(t){return t.classList||new H(t)}function H(t){this._node=t,this._names=Y(t.getAttribute("class")||"")}function j(t,n){for(var e=B(t),r=-1,i=n.length;++r>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1)):(n=df.exec(t))?At(parseInt(n[1],16)):(n=vf.exec(t))?new Rt(n[1],n[2],n[3],1):(n=gf.exec(t))?new Rt(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=_f.exec(t))?Ct(n[1],n[2],n[3],n[4]):(n=yf.exec(t))?Ct(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=mf.exec(t))?Lt(n[1],n[2]/100,n[3]/100,1):(n=xf.exec(t))?Lt(n[1],n[2]/100,n[3]/100,n[4]):bf.hasOwnProperty(t)?At(bf[t]):"transparent"===t?new Rt(NaN,NaN,NaN,0):null}function At(t){return new Rt(t>>16&255,t>>8&255,255&t,1)}function Ct(t,n,e,r){return r<=0&&(t=n=e=NaN),new Rt(t,n,e,r)}function zt(t){return t instanceof St||(t=Et(t)),t?(t=t.rgb(),new Rt(t.r,t.g,t.b,t.opacity)):new Rt}function Pt(t,n,e,r){return 1===arguments.length?zt(t):new Rt(t,n,e,null==r?1:r)}function Rt(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function Lt(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new Dt(t,n,e,r)}function qt(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof Dt)return new Dt(t.h,t.s,t.l,t.opacity);if(t instanceof St||(t=Et(t)),!t)return new Dt;if(t instanceof Dt)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),o=Math.max(n,e,r),u=NaN,a=o-i,c=(o+i)/2;return a?(u=n===o?(e-r)/a+6*(e0&&c<1?0:u,new Dt(u,a,c,t.opacity)}(t):new Dt(t,n,e,null==r?1:r)}function Dt(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function Ut(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}function Ot(t){if(t instanceof It)return new It(t.l,t.a,t.b,t.opacity);if(t instanceof Vt){var n=t.h*wf;return new It(t.l,Math.cos(n)*t.c,Math.sin(n)*t.c,t.opacity)}t instanceof Rt||(t=zt(t));var e=jt(t.r),r=jt(t.g),i=jt(t.b),o=Yt((.4124564*e+.3575761*r+.1804375*i)/Tf),u=Yt((.2126729*e+.7151522*r+.072175*i)/Nf);return new It(116*u-16,500*(o-u),200*(u-Yt((.0193339*e+.119192*r+.9503041*i)/kf)),t.opacity)}function Ft(t,n,e,r){return 1===arguments.length?Ot(t):new It(t,n,e,null==r?1:r)}function It(t,n,e,r){this.l=+t,this.a=+n,this.b=+e,this.opacity=+r}function Yt(t){return t>Cf?Math.pow(t,1/3):t/Af+Sf}function Bt(t){return t>Ef?t*t*t:Af*(t-Sf)}function Ht(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function jt(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Xt(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof Vt)return new Vt(t.h,t.c,t.l,t.opacity);t instanceof It||(t=Ot(t));var n=Math.atan2(t.b,t.a)*Mf;return new Vt(n<0?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new Vt(t,n,e,null==r?1:r)}function Vt(t,n,e,r){this.h=+t,this.c=+n,this.l=+e,this.opacity=+r}function $t(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof Wt)return new Wt(t.h,t.s,t.l,t.opacity);t instanceof Rt||(t=zt(t));var n=t.r/255,e=t.g/255,r=t.b/255,i=(Df*r+Lf*n-qf*e)/(Df+Lf-qf),o=r-i,u=(Rf*(e-i)-zf*o)/Pf,a=Math.sqrt(u*u+o*o)/(Rf*i*(1-i)),c=a?Math.atan2(u,o)*Mf-120:NaN;return new Wt(c<0?c+360:c,a,i,t.opacity)}(t):new Wt(t,n,e,null==r?1:r)}function Wt(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function Zt(t,n,e,r,i){var o=t*t,u=o*t;return((1-3*t+3*o-u)*n+(4-6*o+3*u)*e+(1+3*t+3*o-3*u)*r+u*i)/6}function Gt(t){var n=t.length-1;return function(e){var r=e<=0?e=0:e>=1?(e=1,n-1):Math.floor(e*n),i=t[r],o=t[r+1],u=r>0?t[r-1]:2*i-o,a=r180||e<-180?e-360*Math.round(e/360):e):Jt(isNaN(t)?n:t)}function nn(t){return 1==(t=+t)?en:function(n,e){return e-n?function(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}(n,e,t):Jt(isNaN(n)?e:n)}}function en(t,n){var e=n-t;return e?Kt(t,e):Jt(isNaN(t)?n:t)}function rn(t){return function(n){var e,r,i=n.length,o=new Array(i),u=new Array(i),a=new Array(i);for(e=0;eo&&(i=n.slice(o,i),a[u]?a[u]+=i:a[++u]=i),(e=e[0])===(r=r[0])?a[u]?a[u]+=r:a[++u]=r:(a[++u]=null,c.push({i:u,x:an(e,r)})),o=$f.lastIndex;return o180?n+=360:n-t>180&&(t+=360),o.push({i:e.push(i(e)+"rotate(",null,r)-2,x:an(t,n)})):n&&e.push(i(e)+"rotate("+n+r)}(o.rotate,u.rotate,a,c),function(t,n,e,o){t!==n?o.push({i:e.push(i(e)+"skewX(",null,r)-2,x:an(t,n)}):n&&e.push(i(e)+"skewX("+n+r)}(o.skewX,u.skewX,a,c),function(t,n,e,r,o,u){if(t!==e||n!==r){var a=o.push(i(o)+"scale(",null,",",null,")");u.push({i:a-4,x:an(t,e)},{i:a-2,x:an(n,r)})}else 1===e&&1===r||o.push(i(o)+"scale("+e+","+r+")")}(o.scaleX,o.scaleY,u.scaleX,u.scaleY,a,c),o=u=null,function(t){for(var n,e=-1,r=c.length;++e=0&&n._call.call(null,t),n=n._next;--cl}function Tn(){pl=(hl=vl.now())+dl,cl=sl=0;try{Mn()}finally{cl=0,function(){var t,n,e=Yf,r=1/0;for(;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:Yf=n);Bf=t,kn(r)}(),pl=0}}function Nn(){var t=vl.now(),n=t-hl;n>ll&&(dl-=n,hl=t)}function kn(t){if(!cl){sl&&(sl=clearTimeout(sl));t-pl>24?(t<1/0&&(sl=setTimeout(Tn,t-vl.now()-dl)),fl&&(fl=clearInterval(fl))):(fl||(hl=vl.now(),fl=setInterval(Nn,ll)),cl=1,gl(Tn))}}function Sn(t,n,e){var r=new bn;return n=null==n?0:+n,r.restart(function(e){r.stop(),t(e+n)},n,e),r}function En(t,n,e,r,i,o){var u=t.__transition;if(u){if(e in u)return}else t.__transition={};(function(t,n,e){function r(c){var s,f,l,h;if(e.state!==xl)return o();for(s in a)if((h=a[s]).name===e.name){if(h.state===wl)return Sn(r);h.state===Ml?(h.state=Nl,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete a[s]):+sml)throw new Error("too late; already scheduled");return e}function Cn(t,n){var e=zn(t,n);if(e.state>bl)throw new Error("too late; already started");return e}function zn(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}function Pn(t,n){var e,r,i,o=t.__transition,u=!0;if(o){n=null==n?null:n+"";for(i in o)(e=o[i]).name===n?(r=e.state>bl&&e.stateMath.abs(t[1]-D[1])?b=!0:x=!0),D=t,m=!0,$n(),o()}function o(){var t;switch(_=D[0]-q[0],y=D[1]-q[1],T){case th:case Kl:N&&(_=Math.max(C-a,Math.min(P-p,_)),s=a+_,d=p+_),k&&(y=Math.max(z-l,Math.min(R-v,y)),h=l+y,g=v+y);break;case nh:N<0?(_=Math.max(C-a,Math.min(P-a,_)),s=a+_,d=p):N>0&&(_=Math.max(C-p,Math.min(P-p,_)),s=a,d=p+_),k<0?(y=Math.max(z-l,Math.min(R-l,y)),h=l+y,g=v):k>0&&(y=Math.max(z-v,Math.min(R-v,y)),h=l,g=v+y);break;case eh:N&&(s=Math.max(C,Math.min(P,a-_*N)),d=Math.max(C,Math.min(P,p+_*N))),k&&(h=Math.max(z,Math.min(R,l-y*k)),g=Math.max(z,Math.min(R,v+y*k)))}d0&&(a=s-_),k<0?v=g-y:k>0&&(l=h-y),T=th,F.attr("cursor",uh.selection),o());break;default:return}$n()},!0).on("keyup.brush",function(){switch(t.event.keyCode){case 16:L&&(x=b=L=!1,o());break;case 18:T===eh&&(N<0?p=d:N>0&&(a=s),k<0?v=g:k>0&&(l=h),T=nh,o());break;case 32:T===th&&(t.event.altKey?(N&&(p=d-_*N,a=s+_*N),k&&(v=g-y*k,l=h+y*k),T=eh):(N<0?p=d:N>0&&(a=s),k<0?v=g:k>0&&(l=h),T=nh),F.attr("cursor",uh[M]),o());break;default:return}$n()},!0).on("mousemove.brush",e,!0).on("mouseup.brush",u,!0);_t(t.event.view)}Vn(),Pn(w),r.call(w),U.start()}}function a(){var t=this.__brush||{selection:null};return t.extent=s.apply(this,arguments),t.dim=n,t}var c,s=Gn,f=Zn,l=N(e,"start","brush","end"),h=6;return e.move=function(t,e){t.selection?t.on("start.brush",function(){i(this,arguments).beforestart().start()}).on("interrupt.brush end.brush",function(){i(this,arguments).end()}).tween("brush",function(){function t(t){u.selection=1===t&&Jn(s)?null:f(t),r.call(o),a.brush()}var o=this,u=o.__brush,a=i(o,arguments),c=u.selection,s=n.input("function"==typeof e?e.apply(this,arguments):e,u.extent),f=fn(c,s);return c&&s?t:t(1)}):t.each(function(){var t=arguments,o=this.__brush,u=n.input("function"==typeof e?e.apply(this,t):e,o.extent),a=i(this,t).beforestart();Pn(this),o.selection=null==u||Jn(u)?null:u,r.call(this),a.start().brush().end()})},o.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting&&(this.starting=!1,this.emit("start")),this},brush:function(){return this.emit("brush"),this},end:function(){return 0==--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(t){it(new function(t,n,e){this.target=t,this.type=n,this.selection=e}(e,t,n.output(this.state.selection)),l.apply,l,[t,this.that,this.args])}},e.extent=function(t){return arguments.length?(s="function"==typeof t?t:Xn([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),e):s},e.filter=function(t){return arguments.length?(f="function"==typeof t?t:Xn(!!t),e):f},e.handleSize=function(t){return arguments.length?(h=+t,e):h},e.on=function(){var t=l.on.apply(l,arguments);return t===l?e:t},e}function te(t){return function(){return t}}function ne(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function ee(){return new ne}function re(t){return t.source}function ie(t){return t.target}function oe(t){return t.radius}function ue(t){return t.startAngle}function ae(t){return t.endAngle}function ce(){}function se(t,n){var e=new ce;if(t instanceof ce)t.each(function(t,n){e.set(n,t)});else if(Array.isArray(t)){var r,i=-1,o=t.length;if(null==n)for(;++i=u?s=!0:(e=t.charCodeAt(a++))===Nh?f=!0:e===kh&&(f=!0,t.charCodeAt(a)===Nh&&++a),t.slice(r+1,n-1).replace(/""/g,'"')}for(;a=(o=(v+_)/2))?v=o:_=o,(f=e>=(u=(g+y)/2))?g=u:y=u,i=p,!(p=p[l=f<<1|s]))return i[l]=d,t;if(a=+t._x.call(null,p.data),c=+t._y.call(null,p.data),n===a&&e===c)return d.next=p,i?i[l]=d:t._root=d,t;do{i=i?i[l]=new Array(4):t._root=new Array(4),(s=n>=(o=(v+_)/2))?v=o:_=o,(f=e>=(u=(g+y)/2))?g=u:y=u}while((l=f<<1|s)==(h=(c>=u)<<1|a>=o));return i[h]=p,i[l]=d,t}function be(t,n,e,r,i){this.node=t,this.x0=n,this.y0=e,this.x1=r,this.y1=i}function we(t){return t[0]}function Me(t){return t[1]}function Te(t,n,e){var r=new Ne(null==n?we:n,null==e?Me:e,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function Ne(t,n,e,r,i,o){this._x=t,this._y=n,this._x0=e,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function ke(t){for(var n={data:t.data},e=n;t=t.next;)e=e.next={data:t.data};return n}function Se(t){return t.x+t.vx}function Ee(t){return t.y+t.vy}function Ae(t){return t.index}function Ce(t,n){var e=t.get(n);if(!e)throw new Error("missing: "+n);return e}function ze(t){return t.x}function Pe(t){return t.y}function Re(t,n){if((e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var e,r=t.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+t.slice(e+1)]}function Le(t){return(t=Re(Math.abs(t)))?t[1]:NaN}function qe(t,n){var e=Re(t,n);if(!e)return t+"";var r=e[0],i=e[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}function De(t){return new Ue(t)}function Ue(t){if(!(n=Bh.exec(t)))throw new Error("invalid format: "+t);var n,e=n[1]||" ",r=n[2]||">",i=n[3]||"-",o=n[4]||"",u=!!n[5],a=n[6]&&+n[6],c=!!n[7],s=n[8]&&+n[8].slice(1),f=n[9]||"";"n"===f?(c=!0,f="g"):Yh[f]||(f=""),(u||"0"===e&&"="===r)&&(u=!0,e="0",r="="),this.fill=e,this.align=r,this.sign=i,this.symbol=o,this.zero=u,this.width=a,this.comma=c,this.precision=s,this.type=f}function Oe(t){return t}function Fe(t){function n(t){function n(t){var n,r,u,f=g,x=_;if("c"===v)x=y(t)+x,t="";else{var b=(t=+t)<0;if(t=y(Math.abs(t),d),b&&0==+t&&(b=!1),f=(b?"("===s?s:"-":"-"===s||"("===s?"":s)+f,x=("s"===v?jh[8+Oh/3]:"")+x+(b&&"("===s?")":""),m)for(n=-1,r=t.length;++n(u=t.charCodeAt(n))||u>57){x=(46===u?i+t.slice(n+1):t.slice(n))+x,t=t.slice(0,n);break}}p&&!l&&(t=e(t,1/0));var w=f.length+t.length+x.length,M=w>1)+f+t+x+M.slice(w);break;default:t=M+f+t+x}return o(t)}var a=(t=De(t)).fill,c=t.align,s=t.sign,f=t.symbol,l=t.zero,h=t.width,p=t.comma,d=t.precision,v=t.type,g="$"===f?r[0]:"#"===f&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",_="$"===f?r[1]:/[%p]/.test(v)?u:"",y=Yh[v],m=!v||/[defgprs%]/.test(v);return d=null==d?v?6:12:/[gprs]/.test(v)?Math.max(1,Math.min(21,d)):Math.max(0,Math.min(20,d)),n.toString=function(){return t+""},n}var e=t.grouping&&t.thousands?function(t,n){return function(e,r){for(var i=e.length,o=[],u=0,a=t[0],c=0;i>0&&a>0&&(c+a+1>r&&(a=Math.max(1,r-c)),o.push(e.substring(i-=a,i+a)),!((c+=a+1)>r));)a=t[u=(u+1)%t.length];return o.reverse().join(n)}}(t.grouping,t.thousands):Oe,r=t.currency,i=t.decimal,o=t.numerals?function(t){return function(n){return n.replace(/[0-9]/g,function(n){return t[+n]})}}(t.numerals):Oe,u=t.percent||"%";return{format:n,formatPrefix:function(t,e){var r=n((t=De(t),t.type="f",t)),i=3*Math.max(-8,Math.min(8,Math.floor(Le(e)/3))),o=Math.pow(10,-i),u=jh[8+i/3];return function(t){return r(o*t)+u}}}}function Ie(n){return Hh=Fe(n),t.format=Hh.format,t.formatPrefix=Hh.formatPrefix,Hh}function Ye(t){return Math.max(0,-Le(Math.abs(t)))}function Be(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Le(n)/3)))-Le(Math.abs(t)))}function He(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,Le(n)-Le(t))+1}function je(){return new Xe}function Xe(){this.reset()}function Ve(t,n,e){var r=t.s=n+e,i=r-n,o=r-i;t.t=n-o+(e-i)}function $e(t){return t>1?0:t<-1?Np:Math.acos(t)}function We(t){return t>1?kp:t<-1?-kp:Math.asin(t)}function Ze(t){return(t=Fp(t/2))*t}function Ge(){}function Qe(t,n){t&&jp.hasOwnProperty(t.type)&&jp[t.type](t,n)}function Je(t,n,e){var r,i=-1,o=t.length-e;for(n.lineStart();++i=0?1:-1,i=r*e,o=Lp(n),u=Fp(n),a=Zh*u,c=Wh*o+a*Lp(i),s=a*r*Fp(i);Xp.add(Rp(s,c)),$h=t,Wh=o,Zh=u}function or(t){return[Rp(t[1],t[0]),We(t[2])]}function ur(t){var n=t[0],e=t[1],r=Lp(e);return[r*Lp(n),r*Fp(n),Fp(e)]}function ar(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function cr(t,n){return[t[1]*n[2]-t[2]*n[1],t[2]*n[0]-t[0]*n[2],t[0]*n[1]-t[1]*n[0]]}function sr(t,n){t[0]+=n[0],t[1]+=n[1],t[2]+=n[2]}function fr(t,n){return[t[0]*n,t[1]*n,t[2]*n]}function lr(t){var n=Yp(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=n,t[1]/=n,t[2]/=n}function hr(t,n){ip.push(op=[Gh=t,Jh=t]),nKh&&(Kh=n)}function pr(t,n){var e=ur([t*Cp,n*Cp]);if(rp){var r=cr(rp,e),i=cr([r[1],-r[0],0],r);lr(i),i=or(i);var o,u=t-tp,a=u>0?1:-1,c=i[0]*Ap*a,s=zp(u)>180;s^(a*tpKh&&(Kh=o):(c=(c+360)%360-180,s^(a*tpKh&&(Kh=n))),s?tmr(Gh,Jh)&&(Jh=t):mr(t,Jh)>mr(Gh,Jh)&&(Gh=t):Jh>=Gh?(tJh&&(Jh=t)):t>tp?mr(Gh,t)>mr(Gh,Jh)&&(Jh=t):mr(t,Jh)>mr(Gh,Jh)&&(Gh=t)}else ip.push(op=[Gh=t,Jh=t]);nKh&&(Kh=n),rp=e,tp=t}function dr(){Zp.point=pr}function vr(){op[0]=Gh,op[1]=Jh,Zp.point=hr,rp=null}function gr(t,n){if(rp){var e=t-tp;Wp.add(zp(e)>180?e+(e>0?360:-360):e)}else np=t,ep=n;$p.point(t,n),pr(t,n)}function _r(){$p.lineStart()}function yr(){gr(np,ep),$p.lineEnd(),zp(Wp)>Mp&&(Gh=-(Jh=180)),op[0]=Gh,op[1]=Jh,rp=null}function mr(t,n){return(n-=t)<0?n+360:n}function xr(t,n){return t[0]-n[0]}function br(t,n){return t[0]<=t[1]?t[0]<=n&&n<=t[1]:nNp?t-Ep:t<-Np?t+Ep:t,n]}function qr(t,n,e){return(t%=Ep)?n||e?Rr(Ur(t),Or(n,e)):Ur(t):n||e?Or(n,e):Lr}function Dr(t){return function(n,e){return n+=t,[n>Np?n-Ep:n<-Np?n+Ep:n,e]}}function Ur(t){var n=Dr(t);return n.invert=Dr(-t),n}function Or(t,n){function e(t,n){var e=Lp(n),a=Lp(t)*e,c=Fp(t)*e,s=Fp(n),f=s*r+a*i;return[Rp(c*o-f*u,a*r-s*i),We(f*o+c*u)]}var r=Lp(t),i=Fp(t),o=Lp(n),u=Fp(n);return e.invert=function(t,n){var e=Lp(n),a=Lp(t)*e,c=Fp(t)*e,s=Fp(n),f=s*o-c*u;return[Rp(c*o+s*u,a*r+f*i),We(f*r-a*i)]},e}function Fr(t){function n(n){return n=t(n[0]*Cp,n[1]*Cp),n[0]*=Ap,n[1]*=Ap,n}return t=qr(t[0]*Cp,t[1]*Cp,t.length>2?t[2]*Cp:0),n.invert=function(n){return n=t.invert(n[0]*Cp,n[1]*Cp),n[0]*=Ap,n[1]*=Ap,n},n}function Ir(t,n,e,r,i,o){if(e){var u=Lp(n),a=Fp(n),c=r*e;null==i?(i=n+r*Ep,o=n-c/2):(i=Yr(u,i),o=Yr(u,o),(r>0?io)&&(i+=r*Ep));for(var s,f=i;r>0?f>o:f1&&n.push(n.pop().concat(n.shift()))},result:function(){var e=n;return n=[],t=null,e}}}function Hr(t,n){return zp(t[0]-n[0])=0;--o)i.point((f=s[o])[0],f[1]);else r(h.x,h.p.x,-1,i);h=h.p}s=(h=h.o).z,p=!p}while(!h.v);i.lineEnd()}}}function Vr(t){if(n=t.length){for(var n,e,r=0,i=t[0];++r=0?1:-1,T=M*w,N=T>Np,k=d*x;if(cd.add(Rp(k*M*Fp(T),v*b+k*Lp(T))),o+=N?w+M*Ep:w,N^h>=e^y>=e){var S=cr(ur(l),ur(_));lr(S);var E=cr(i,S);lr(E);var A=(N^w>=0?-1:1)*We(E[2]);(r>A||r===A&&(S[0]||S[1]))&&(u+=N^w>=0?1:-1)}}return(o<-Mp||o0){for(m||(i.polygonStart(),m=!0),i.lineStart(),t=0;t1&&2&o&&u.push(u.pop().concat(u.shift())),p.push(u.filter(Zr))}var h,p,d,v=n(i),_=Br(),y=n(_),m=!1,x={point:o,lineStart:a,lineEnd:c,polygonStart:function(){x.point=s,x.lineStart=f,x.lineEnd=l,p=[],h=[]},polygonEnd:function(){x.point=o,x.lineStart=a,x.lineEnd=c,p=g(p);var t=$r(h,r);p.length?(m||(i.polygonStart(),m=!0),Xr(p,Gr,t,e,i)):t&&(m||(i.polygonStart(),m=!0),i.lineStart(),e(null,null,1,i),i.lineEnd()),m&&(i.polygonEnd(),m=!1),p=h=null},sphere:function(){i.polygonStart(),i.lineStart(),e(null,null,1,i),i.lineEnd(),i.polygonEnd()}};return x}}function Zr(t){return t.length>1}function Gr(t,n){return((t=t.x)[0]<0?t[1]-kp-Mp:kp-t[1])-((n=n.x)[0]<0?n[1]-kp-Mp:kp-n[1])}function Qr(t){function n(t,n){return Lp(t)*Lp(n)>i}function e(t,n,e){var r=[1,0,0],o=cr(ur(t),ur(n)),u=ar(o,o),a=o[0],c=u-a*a;if(!c)return!e&&t;var s=i*u/c,f=-i*a/c,l=cr(r,o),h=fr(r,s);sr(h,fr(o,f));var p=l,d=ar(h,p),v=ar(p,p),g=d*d-v*(ar(h,h)-1);if(!(g<0)){var _=Yp(g),y=fr(p,(-d-_)/v);if(sr(y,h),y=or(y),!e)return y;var m,x=t[0],b=n[0],w=t[1],M=n[1];b0^y[1]<(zp(y[0]-x)Np^(x<=y[0]&&y[0]<=b)){var k=fr(p,(-d+_)/v);return sr(k,h),[y,or(k)]}}}function r(n,e){var r=u?t:Np-t,i=0;return n<-r?i|=1:n>r&&(i|=2),e<-r?i|=4:e>r&&(i|=8),i}var i=Lp(t),o=6*Cp,u=i>0,a=zp(i)>Mp;return Wr(n,function(t){var i,o,c,s,f;return{lineStart:function(){s=c=!1,f=1},point:function(l,h){var p,d=[l,h],v=n(l,h),g=u?v?0:r(l,h):v?r(l+(l<0?Np:-Np),h):0;if(!i&&(s=c=v)&&t.lineStart(),v!==c&&(!(p=e(i,d))||Hr(i,p)||Hr(d,p))&&(d[0]+=Mp,d[1]+=Mp,v=n(d[0],d[1])),v!==c)f=0,v?(t.lineStart(),p=e(d,i),t.point(p[0],p[1])):(p=e(i,d),t.point(p[0],p[1]),t.lineEnd()),i=p;else if(a&&i&&u^v){var _;g&o||!(_=e(d,i,!0))||(f=0,u?(t.lineStart(),t.point(_[0][0],_[0][1]),t.point(_[1][0],_[1][1]),t.lineEnd()):(t.point(_[1][0],_[1][1]),t.lineEnd(),t.lineStart(),t.point(_[0][0],_[0][1])))}!v||i&&Hr(i,d)||t.point(d[0],d[1]),i=d,c=v,o=g},lineEnd:function(){c&&t.lineEnd(),i=null},clean:function(){return f|(s&&c)<<1}}},function(n,e,r,i){Ir(i,t,o,r,n,e)},u?[0,-t]:[-Np,t-Np])}function Jr(t,n,e,r){function i(i,o){return t<=i&&i<=e&&n<=o&&o<=r}function o(i,o,a,s){var f=0,l=0;if(null==i||(f=u(i,a))!==(l=u(o,a))||c(i,o)<0^a>0)do{s.point(0===f||3===f?t:e,f>1?r:n)}while((f=(f+a+4)%4)!==l);else s.point(o[0],o[1])}function u(r,i){return zp(r[0]-t)0?0:3:zp(r[0]-e)0?2:1:zp(r[1]-n)0?1:0:i>0?3:2}function a(t,n){return c(t.x,n.x)}function c(t,n){var e=u(t,1),r=u(n,1);return e!==r?e-r:0===e?n[1]-t[1]:1===e?t[0]-n[0]:2===e?t[1]-n[1]:n[0]-t[0]}return function(u){function c(t,n){i(t,n)&&w.point(t,n)}function s(o,u){var a=i(o,u);if(l&&h.push([o,u]),x)p=o,d=u,v=a,x=!1,a&&(w.lineStart(),w.point(o,u));else if(a&&m)w.point(o,u);else{var c=[_=Math.max(ld,Math.min(fd,_)),y=Math.max(ld,Math.min(fd,y))],s=[o=Math.max(ld,Math.min(fd,o)),u=Math.max(ld,Math.min(fd,u))];!function(t,n,e,r,i,o){var u,a=t[0],c=t[1],s=0,f=1,l=n[0]-a,h=n[1]-c;if(u=e-a,l||!(u>0)){if(u/=l,l<0){if(u0){if(u>f)return;u>s&&(s=u)}if(u=i-a,l||!(u<0)){if(u/=l,l<0){if(u>f)return;u>s&&(s=u)}else if(l>0){if(u0)){if(u/=h,h<0){if(u0){if(u>f)return;u>s&&(s=u)}if(u=o-c,h||!(u<0)){if(u/=h,h<0){if(u>f)return;u>s&&(s=u)}else if(h>0){if(u0&&(t[0]=a+s*l,t[1]=c+s*h),f<1&&(n[0]=a+f*l,n[1]=c+f*h),!0}}}}}(c,s,t,n,e,r)?a&&(w.lineStart(),w.point(o,u),b=!1):(m||(w.lineStart(),w.point(c[0],c[1])),w.point(s[0],s[1]),a||w.lineEnd(),b=!1)}_=o,y=u,m=a}var f,l,h,p,d,v,_,y,m,x,b,w=u,M=Br(),T={point:c,lineStart:function(){T.point=s,l&&l.push(h=[]),x=!0,m=!1,_=y=NaN},lineEnd:function(){f&&(s(p,d),v&&m&&M.rejoin(),f.push(M.result())),T.point=c,m&&w.lineEnd()},polygonStart:function(){w=M,f=[],l=[],b=!0},polygonEnd:function(){var n=function(){for(var n=0,e=0,i=l.length;er&&(h-o)*(r-u)>(p-u)*(t-o)&&++n:p<=r&&(h-o)*(r-u)<(p-u)*(t-o)&&--n;return n}(),e=b&&n,i=(f=g(f)).length;(e||i)&&(u.polygonStart(),e&&(u.lineStart(),o(null,null,1,u),u.lineEnd()),i&&Xr(f,a,n,o,u),u.polygonEnd()),w=u,f=l=h=null}};return T}}function Kr(){pd.point=pd.lineEnd=Ge}function ti(t,n){Qp=t*=Cp,Jp=Fp(n*=Cp),Kp=Lp(n),pd.point=ni}function ni(t,n){t*=Cp;var e=Fp(n*=Cp),r=Lp(n),i=zp(t-Qp),o=Lp(i),u=r*Fp(i),a=Kp*e-Jp*r*o,c=Jp*e+Kp*r*o;hd.add(Rp(Yp(u*u+a*a),c)),Qp=t,Jp=e,Kp=r}function ei(t){return hd.reset(),tr(t,pd),+hd}function ri(t,n){return dd[0]=t,dd[1]=n,ei(vd)}function ii(t,n){return!(!t||!_d.hasOwnProperty(t.type))&&_d[t.type](t,n)}function oi(t,n){return 0===ri(t,n)}function ui(t,n){var e=ri(t[0],t[1]);return ri(t[0],n)+ri(n,t[1])<=e+Mp}function ai(t,n){return!!$r(t.map(ci),si(n))}function ci(t){return(t=t.map(si)).pop(),t}function si(t){return[t[0]*Cp,t[1]*Cp]}function fi(t,n,e){var r=f(t,n-Mp,e).concat(n);return function(t){return r.map(function(n){return[t,n]})}}function li(t,n,e){var r=f(t,n-Mp,e).concat(n);return function(t){return r.map(function(n){return[n,t]})}}function hi(){function t(){return{type:"MultiLineString",coordinates:n()}}function n(){return f(qp(o/_)*_,i,_).map(p).concat(f(qp(s/y)*y,c,y).map(d)).concat(f(qp(r/v)*v,e,v).filter(function(t){return zp(t%_)>Mp}).map(l)).concat(f(qp(a/g)*g,u,g).filter(function(t){return zp(t%y)>Mp}).map(h))}var e,r,i,o,u,a,c,s,l,h,p,d,v=10,g=v,_=90,y=360,m=2.5;return t.lines=function(){return n().map(function(t){return{type:"LineString",coordinates:t}})},t.outline=function(){return{type:"Polygon",coordinates:[p(o).concat(d(c).slice(1),p(i).reverse().slice(1),d(s).reverse().slice(1))]}},t.extent=function(n){return arguments.length?t.extentMajor(n).extentMinor(n):t.extentMinor()},t.extentMajor=function(n){return arguments.length?(o=+n[0][0],i=+n[1][0],s=+n[0][1],c=+n[1][1],o>i&&(n=o,o=i,i=n),s>c&&(n=s,s=c,c=n),t.precision(m)):[[o,s],[i,c]]},t.extentMinor=function(n){return arguments.length?(r=+n[0][0],e=+n[1][0],a=+n[0][1],u=+n[1][1],r>e&&(n=r,r=e,e=n),a>u&&(n=a,a=u,u=n),t.precision(m)):[[r,a],[e,u]]},t.step=function(n){return arguments.length?t.stepMajor(n).stepMinor(n):t.stepMinor()},t.stepMajor=function(n){return arguments.length?(_=+n[0],y=+n[1],t):[_,y]},t.stepMinor=function(n){return arguments.length?(v=+n[0],g=+n[1],t):[v,g]},t.precision=function(n){return arguments.length?(m=+n,l=fi(a,u,90),h=li(r,e,m),p=fi(s,c,90),d=li(o,i,m),t):m},t.extentMajor([[-180,-90+Mp],[180,90-Mp]]).extentMinor([[-180,-80-Mp],[180,80+Mp]])}function pi(t){return t}function di(){xd.point=vi}function vi(t,n){xd.point=gi,td=ed=t,nd=rd=n}function gi(t,n){md.add(rd*t-ed*n),ed=t,rd=n}function _i(){gi(td,nd)}function yi(t,n){kd+=t,Sd+=n,++Ed}function mi(){qd.point=xi}function xi(t,n){qd.point=bi,yi(ud=t,ad=n)}function bi(t,n){var e=t-ud,r=n-ad,i=Yp(e*e+r*r);Ad+=i*(ud+t)/2,Cd+=i*(ad+n)/2,zd+=i,yi(ud=t,ad=n)}function wi(){qd.point=yi}function Mi(){qd.point=Ni}function Ti(){ki(id,od)}function Ni(t,n){qd.point=ki,yi(id=ud=t,od=ad=n)}function ki(t,n){var e=t-ud,r=n-ad,i=Yp(e*e+r*r);Ad+=i*(ud+t)/2,Cd+=i*(ad+n)/2,zd+=i,Pd+=(i=ad*t-ud*n)*(ud+t),Rd+=i*(ad+n),Ld+=3*i,yi(ud=t,ad=n)}function Si(t){this._context=t}function Ei(t,n){Bd.point=Ai,Ud=Fd=t,Od=Id=n}function Ai(t,n){Fd-=t,Id-=n,Yd.add(Yp(Fd*Fd+Id*Id)),Fd=t,Id=n}function Ci(){this._string=[]}function zi(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function Pi(t){return function(n){var e=new Ri;for(var r in t)e[r]=t[r];return e.stream=n,e}}function Ri(){}function Li(t,n,e){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=r&&t.clipExtent(null),tr(e,t.stream(Nd)),n(Nd.result()),null!=r&&t.clipExtent(r),t}function qi(t,n,e){return Li(t,function(e){var r=n[1][0]-n[0][0],i=n[1][1]-n[0][1],o=Math.min(r/(e[1][0]-e[0][0]),i/(e[1][1]-e[0][1])),u=+n[0][0]+(r-o*(e[1][0]+e[0][0]))/2,a=+n[0][1]+(i-o*(e[1][1]+e[0][1]))/2;t.scale(150*o).translate([u,a])},e)}function Di(t,n,e){return qi(t,[[0,0],n],e)}function Ui(t,n,e){return Li(t,function(e){var r=+n,i=r/(e[1][0]-e[0][0]),o=(r-i*(e[1][0]+e[0][0]))/2,u=-i*e[0][1];t.scale(150*i).translate([o,u])},e)}function Oi(t,n,e){return Li(t,function(e){var r=+n,i=r/(e[1][1]-e[0][1]),o=-i*e[0][0],u=(r-i*(e[1][1]+e[0][1]))/2;t.scale(150*i).translate([o,u])},e)}function Fi(t,n){return+n?function(t,n){function e(r,i,o,u,a,c,s,f,l,h,p,d,v,g){var _=s-r,y=f-i,m=_*_+y*y;if(m>4*n&&v--){var x=u+h,b=a+p,w=c+d,M=Yp(x*x+b*b+w*w),T=We(w/=M),N=zp(zp(w)-1)n||zp((_*A+y*C)/m-.5)>.3||u*h+a*p+c*d2?t[2]%360*Cp:0,r()):[x*Ap,b*Ap,w*Ap]},n.precision=function(t){return arguments.length?(E=Fi(e,S=t*t),i()):Yp(S)},n.fitExtent=function(t,e){return qi(n,t,e)},n.fitSize=function(t,e){return Di(n,t,e)},n.fitWidth=function(t,e){return Ui(n,t,e)},n.fitHeight=function(t,e){return Oi(n,t,e)},function(){return o=t.apply(this,arguments),n.invert=o.invert&&function(t){return(t=s.invert((t[0]-u)/v,(a-t[1])/v))&&[t[0]*Ap,t[1]*Ap]},r()}}function Bi(t){var n=0,e=Np/3,r=Yi(t),i=r(n,e);return i.parallels=function(t){return arguments.length?r(n=t[0]*Cp,e=t[1]*Cp):[n*Ap,e*Ap]},i}function Hi(t,n){function e(t,n){var e=Yp(o-2*i*Fp(n))/i;return[e*Fp(t*=i),u-e*Lp(t)]}var r=Fp(t),i=(r+Fp(n))/2;if(zp(i)0?n<-kp+Mp&&(n=-kp+Mp):n>kp-Mp&&(n=kp-Mp);var e=o/Op(Gi(n),i);return[e*Fp(i*t),o-e*Lp(i*t)]}var r=Lp(t),i=t===n?Fp(t):Up(r/Lp(n))/Up(Gi(n)/Gi(t)),o=r*Op(Gi(t),i)/i;return i?(e.invert=function(t,n){var e=o-n,r=Ip(i)*Yp(t*t+e*e);return[Rp(t,zp(e))/i*Ip(e),2*Pp(Op(o/r,1/i))-kp]},e):Wi}function Ji(t,n){return[t,n]}function Ki(t,n){function e(t,n){var e=o-n,r=i*t;return[e*Fp(r),o-e*Lp(r)]}var r=Lp(t),i=t===n?Fp(t):(r-Lp(n))/(n-t),o=r/i+t;return zp(i)=0;)n+=e[r].value;else n=1;t.value=n}function fo(t,n){var e,r,i,o,u,a=new vo(t),c=+t.value&&(a.value=t.value),s=[a];for(null==n&&(n=lo);e=s.pop();)if(c&&(e.value=+e.data.value),(i=n(e.data))&&(u=i.length))for(e.children=new Array(u),o=u-1;o>=0;--o)s.push(r=e.children[o]=new vo(i[o])),r.parent=e,r.depth=e.depth+1;return a.eachBefore(po)}function lo(t){return t.children}function ho(t){t.data=t.data.data}function po(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function vo(t){this.data=t,this.depth=this.height=0,this.parent=null}function go(t){for(var n,e,r=0,i=(t=function(t){for(var n,e,r=t.length;r;)e=Math.random()*r--|0,n=t[r],t[r]=t[e],t[e]=n;return t}(Wd.call(t))).length,o=[];r0&&e*e>r*r+i*i}function mo(t,n){for(var e=0;ee*e+r*r}function To(t){var n=t._,e=t.next._,r=n.r+e.r,i=(n.x*e.r+e.x*n.r)/r,o=(n.y*e.r+e.y*n.r)/r;return i*i+o*o}function No(t){this._=t,this.next=null,this.previous=null}function ko(t){if(!(i=t.length))return 0;var n,e,r,i,o,u,a,c,s,f,l;if(n=t[0],n.x=0,n.y=0,!(i>1))return n.r;if(e=t[1],n.x=-e.r,e.x=n.r,e.y=0,!(i>2))return n.r+e.r;wo(e,n,r=t[2]),n=new No(n),e=new No(e),r=new No(r),n.next=r.previous=e,e.next=n.previous=r,r.next=e.previous=n;t:for(a=3;ah&&(h=a),g=f*f*v,(p=Math.max(h/g,g/l))>d){f-=a;break}d=p}_.push(u={value:f,dice:c1&&Vo(t[e[r-2]],t[e[r-1]],t[i])<=0;)--r;e[r++]=i}return e.slice(0,r)}function Zo(t){this._size=t,this._call=this._error=null,this._tasks=[],this._data=[],this._waiting=this._active=this._ended=this._start=0}function Go(t){if(!t._start)try{(function(t){for(;t._start=t._waiting&&t._active=0;)if((e=t._tasks[r])&&(t._tasks[r]=null,e.abort))try{e.abort()}catch(n){}t._active=NaN,Jo(t)}function Jo(t){if(!t._active&&t._call){var n=t._data;t._data=void 0,t._call(t._error,n)}}function Ko(t){if(null==t)t=1/0;else if(!((t=+t)>=1))throw new Error("invalid concurrency");return new Zo(t)}function tu(){return Math.random()}function nu(t,n){function e(t){var n,e=s.status;if(!e&&function(t){var n=t.responseType;return n&&"text"!==n?t.response:t.responseText}(s)||e>=200&&e<300||304===e){if(o)try{n=o.call(r,s)}catch(t){return void a.call("error",r,t)}else n=s;a.call("load",r,n)}else a.call("error",r,t)}var r,i,o,u,a=N("beforesend","progress","load","error"),c=se(),s=new XMLHttpRequest,f=null,l=null,h=0;if("undefined"==typeof XDomainRequest||"withCredentials"in s||!/^(http(s)?:)?\/\//.test(t)||(s=new XDomainRequest),"onload"in s?s.onload=s.onerror=s.ontimeout=e:s.onreadystatechange=function(t){s.readyState>3&&e(t)},s.onprogress=function(t){a.call("progress",r,t)},r={header:function(t,n){return t=(t+"").toLowerCase(),arguments.length<2?c.get(t):(null==n?c.remove(t):c.set(t,n+""),r)},mimeType:function(t){return arguments.length?(i=null==t?null:t+"",r):i},responseType:function(t){return arguments.length?(u=t,r):u},timeout:function(t){return arguments.length?(h=+t,r):h},user:function(t){return arguments.length<1?f:(f=null==t?null:t+"",r)},password:function(t){return arguments.length<1?l:(l=null==t?null:t+"",r)},response:function(t){return o=t,r},get:function(t,n){return r.send("GET",t,n)},post:function(t,n){return r.send("POST",t,n)},send:function(n,e,o){return s.open(n,t,!0,f,l),null==i||c.has("accept")||c.set("accept",i+",*/*"),s.setRequestHeader&&c.each(function(t,n){s.setRequestHeader(n,t)}),null!=i&&s.overrideMimeType&&s.overrideMimeType(i),null!=u&&(s.responseType=u),h>0&&(s.timeout=h),null==o&&"function"==typeof e&&(o=e,e=null),null!=o&&1===o.length&&(o=function(t){return function(n,e){t(null==n?e:null)}}(o)),null!=o&&r.on("error",o).on("load",function(t){o(null,t)}),a.call("beforesend",r,s),s.send(null==e?null:e),r},abort:function(){return s.abort(),r},on:function(){var t=a.on.apply(a,arguments);return t===a?r:t}},null!=n){if("function"!=typeof n)throw new Error("invalid callback: "+n);return r.get(n)}return r}function eu(t,n){return function(e,r){var i=nu(e).mimeType(t).response(n);if(null!=r){if("function"!=typeof r)throw new Error("invalid callback: "+r);return i.get(r)}return i}}function ru(t,n){return function(e,r,i){arguments.length<3&&(i=r,r=null);var o=nu(e).mimeType(t);return o.row=function(t){return arguments.length?o.response(function(t,n){return function(e){return t(e.responseText,n)}}(n,r=t)):r},o.row(r),i?o.get(i):o}}function iu(t){function n(n){var o=n+"",u=e.get(o);if(!u){if(i!==yv)return i;e.set(o,u=r.push(n))}return t[(u-1)%t.length]}var e=se(),r=[],i=yv;return t=null==t?[]:_v.call(t),n.domain=function(t){if(!arguments.length)return r.slice();r=[],e=se();for(var i,o,u=-1,a=t.length;++u2?lu:fu,o=u=null,r}function r(n){return(o||(o=i(a,c,f?function(t){return function(n,e){var r=t(n=+n,e=+e);return function(t){return t<=n?0:t>=e?1:r(t)}}}(t):t,s)))(+n)}var i,o,u,a=mv,c=mv,s=fn,f=!1;return r.invert=function(t){return(u||(u=i(c,a,su,f?function(t){return function(n,e){var r=t(n=+n,e=+e);return function(t){return t<=0?n:t>=1?e:r(t)}}}(n):n)))(+t)},r.domain=function(t){return arguments.length?(a=gv.call(t,cu),e()):a.slice()},r.range=function(t){return arguments.length?(c=_v.call(t),e()):c.slice()},r.rangeRound=function(t){return c=_v.call(t),s=ln,e()},r.clamp=function(t){return arguments.length?(f=!!t,e()):f},r.interpolate=function(t){return arguments.length?(s=t,e()):s},e()}function du(n){var e=n.domain;return n.ticks=function(t){var n=e();return l(n[0],n[n.length-1],null==t?10:t)},n.tickFormat=function(n,r){return function(n,e,r){var i,o=n[0],u=n[n.length-1],a=p(o,u,null==e?10:e);switch((r=De(null==r?",f":r)).type){case"s":var c=Math.max(Math.abs(o),Math.abs(u));return null!=r.precision||isNaN(i=Be(a,c))||(r.precision=i),t.formatPrefix(r,c);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=He(a,Math.max(Math.abs(o),Math.abs(u))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=Ye(a))||(r.precision=i-2*("%"===r.type))}return t.format(r)}(e(),n,r)},n.nice=function(t){null==t&&(t=10);var r,i=e(),o=0,u=i.length-1,a=i[o],c=i[u];return c0?r=h(a=Math.floor(a/r)*r,c=Math.ceil(c/r)*r,t):r<0&&(r=h(a=Math.ceil(a*r)/r,c=Math.floor(c*r)/r,t)),r>0?(i[o]=Math.floor(a/r)*r,i[u]=Math.ceil(c/r)*r,e(i)):r<0&&(i[o]=Math.ceil(a*r)/r,i[u]=Math.floor(c*r)/r,e(i)),n},n}function vu(){var t=pu(su,an);return t.copy=function(){return hu(t,vu())},du(t)}function gu(){function t(t){return+t}var n=[0,1];return t.invert=t,t.domain=t.range=function(e){return arguments.length?(n=gv.call(e,cu),t):n.slice()},t.copy=function(){return gu().domain(n)},du(t)}function _u(t,n){var e,r=0,i=(t=t.slice()).length-1,o=t[r],u=t[i];return u0){for(;pc)break;g.push(h)}}else for(;p=1;--f)if(!((h=s*f)c)break;g.push(h)}}else g=l(p,d,Math.min(d-p,v)).map(u);return n?g.reverse():g},e.tickFormat=function(n,r){if(null==r&&(r=10===i?".0e":","),"function"!=typeof r&&(r=t.format(r)),n===1/0)return r;null==n&&(n=10);var a=Math.max(1,i*n/e.ticks().length);return function(t){var n=t/u(Math.round(o(t)));return n*i0?o[n-1]:r[0],n=i?[o[i-1],r]:[o[n-1],o[n]]},t.copy=function(){return Eu().domain([e,r]).range(u)},du(t)}function Au(){function t(t){if(t<=t)return e[Os(n,t,0,r)]}var n=[.5],e=[0,1],r=1;return t.domain=function(i){return arguments.length?(n=_v.call(i),r=Math.min(n.length,e.length-1),t):n.slice()},t.range=function(i){return arguments.length?(e=_v.call(i),r=Math.min(n.length,e.length-1),t):e.slice()},t.invertExtent=function(t){var r=e.indexOf(t);return[n[r-1],n[r]]},t.copy=function(){return Au().domain(n).range(e)},t}function Cu(t,n,e,r){function i(n){return t(n=new Date(+n)),n}return i.floor=i,i.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},i.round=function(t){var n=i(t),e=i.ceil(t);return t-n0))return a;do{a.push(u=new Date(+e)),n(e,o),t(e)}while(u=n)for(;t(n),!e(n);)n.setTime(n-1)},function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;n(t,-1),!e(t););else for(;--r>=0;)for(;n(t,1),!e(t););})},e&&(i.count=function(n,r){return xv.setTime(+n),bv.setTime(+r),t(xv),t(bv),Math.floor(e(xv,bv))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(n){return r(n)%t==0}:function(n){return i.count(0,n)%t==0}):i:null}),i}function zu(t){return Cu(function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+7*n)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Tv)/Nv})}function Pu(t){return Cu(function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+7*n)},function(t,n){return(n-t)/Nv})}function Ru(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Lu(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function qu(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}function Du(t){function n(t,n){return function(e){var r,i,o,u=[],a=-1,c=0,s=t.length;for(e instanceof Date||(e=new Date(+e));++a53)return null;"w"in u||(u.w=1),"Z"in u?(i=(o=(i=Lu(qu(u.y))).getUTCDay())>4||0===o?og.ceil(i):og(i),i=eg.offset(i,7*(u.V-1)),u.y=i.getUTCFullYear(),u.m=i.getUTCMonth(),u.d=i.getUTCDate()+(u.w+6)%7):(i=(o=(i=n(qu(u.y))).getDay())>4||0===o?qv.ceil(i):qv(i),i=Pv.offset(i,7*(u.V-1)),u.y=i.getFullYear(),u.m=i.getMonth(),u.d=i.getDate()+(u.w+6)%7)}else("W"in u||"U"in u)&&("w"in u||(u.w="u"in u?u.u%7:"W"in u?1:0),o="Z"in u?Lu(qu(u.y)).getUTCDay():n(qu(u.y)).getDay(),u.m=0,u.d="W"in u?(u.w+6)%7+7*u.W-(o+5)%7:u.w+7*u.U-(o+6)%7);return"Z"in u?(u.H+=u.Z/100|0,u.M+=u.Z%100,Lu(u)):n(u)}}function r(t,n,e,r){for(var i,o,u=0,a=n.length,c=e.length;u=c)return-1;if(37===(i=n.charCodeAt(u++))){if(i=n.charAt(u++),!(o=T[i in Mg?n.charAt(u++):i])||(r=o(t,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}var i=t.dateTime,o=t.date,u=t.time,a=t.periods,c=t.days,s=t.shortDays,f=t.months,l=t.shortMonths,h=Fu(a),p=Iu(a),d=Fu(c),v=Iu(c),g=Fu(s),_=Iu(s),y=Fu(f),m=Iu(f),x=Fu(l),b=Iu(l),w={a:function(t){return s[t.getDay()]},A:function(t){return c[t.getDay()]},b:function(t){return l[t.getMonth()]},B:function(t){return f[t.getMonth()]},c:null,d:ua,e:ua,f:la,H:aa,I:ca,j:sa,L:fa,m:ha,M:pa,p:function(t){return a[+(t.getHours()>=12)]},Q:Ya,s:Ba,S:da,u:va,U:ga,V:_a,w:ya,W:ma,x:null,X:null,y:xa,Y:ba,Z:wa,"%":Ia},M={a:function(t){return s[t.getUTCDay()]},A:function(t){return c[t.getUTCDay()]},b:function(t){return l[t.getUTCMonth()]},B:function(t){return f[t.getUTCMonth()]},c:null,d:Ma,e:Ma,f:Ea,H:Ta,I:Na,j:ka,L:Sa,m:Aa,M:Ca,p:function(t){return a[+(t.getUTCHours()>=12)]},Q:Ya,s:Ba,S:za,u:Pa,U:Ra,V:La,w:qa,W:Da,x:null,X:null,y:Ua,Y:Oa,Z:Fa,"%":Ia},T={a:function(t,n,e){var r=g.exec(n.slice(e));return r?(t.w=_[r[0].toLowerCase()],e+r[0].length):-1},A:function(t,n,e){var r=d.exec(n.slice(e));return r?(t.w=v[r[0].toLowerCase()],e+r[0].length):-1},b:function(t,n,e){var r=x.exec(n.slice(e));return r?(t.m=b[r[0].toLowerCase()],e+r[0].length):-1},B:function(t,n,e){var r=y.exec(n.slice(e));return r?(t.m=m[r[0].toLowerCase()],e+r[0].length):-1},c:function(t,n,e){return r(t,i,n,e)},d:Gu,e:Gu,f:ea,H:Ju,I:Ju,j:Qu,L:na,m:Zu,M:Ku,p:function(t,n,e){var r=h.exec(n.slice(e));return r?(t.p=p[r[0].toLowerCase()],e+r[0].length):-1},Q:ia,s:oa,S:ta,u:Bu,U:Hu,V:ju,w:Yu,W:Xu,x:function(t,n,e){return r(t,o,n,e)},X:function(t,n,e){return r(t,u,n,e)},y:$u,Y:Vu,Z:Wu,"%":ra};return w.x=n(o,w),w.X=n(u,w),w.c=n(i,w),M.x=n(o,M),M.X=n(u,M),M.c=n(i,M),{format:function(t){var e=n(t+="",w);return e.toString=function(){return t},e},parse:function(t){var n=e(t+="",Ru);return n.toString=function(){return t},n},utcFormat:function(t){var e=n(t+="",M);return e.toString=function(){return t},e},utcParse:function(t){var n=e(t,Lu);return n.toString=function(){return t},n}}}function Uu(t,n,e){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o68?1900:2e3),e+r[0].length):-1}function Wu(t,n,e){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(e,e+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),e+r[0].length):-1}function Zu(t,n,e){var r=Tg.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function Gu(t,n,e){var r=Tg.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function Qu(t,n,e){var r=Tg.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function Ju(t,n,e){var r=Tg.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function Ku(t,n,e){var r=Tg.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function ta(t,n,e){var r=Tg.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function na(t,n,e){var r=Tg.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function ea(t,n,e){var r=Tg.exec(n.slice(e,e+6));return r?(t.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function ra(t,n,e){var r=Ng.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function ia(t,n,e){var r=Tg.exec(n.slice(e));return r?(t.Q=+r[0],e+r[0].length):-1}function oa(t,n,e){var r=Tg.exec(n.slice(e));return r?(t.Q=1e3*+r[0],e+r[0].length):-1}function ua(t,n){return Uu(t.getDate(),n,2)}function aa(t,n){return Uu(t.getHours(),n,2)}function ca(t,n){return Uu(t.getHours()%12||12,n,2)}function sa(t,n){return Uu(1+Pv.count(Gv(t),t),n,3)}function fa(t,n){return Uu(t.getMilliseconds(),n,3)}function la(t,n){return fa(t,n)+"000"}function ha(t,n){return Uu(t.getMonth()+1,n,2)}function pa(t,n){return Uu(t.getMinutes(),n,2)}function da(t,n){return Uu(t.getSeconds(),n,2)}function va(t){var n=t.getDay();return 0===n?7:n}function ga(t,n){return Uu(Lv.count(Gv(t),t),n,2)}function _a(t,n){var e=t.getDay();return t=e>=4||0===e?Ov(t):Ov.ceil(t),Uu(Ov.count(Gv(t),t)+(4===Gv(t).getDay()),n,2)}function ya(t){return t.getDay()}function ma(t,n){return Uu(qv.count(Gv(t),t),n,2)}function xa(t,n){return Uu(t.getFullYear()%100,n,2)}function ba(t,n){return Uu(t.getFullYear()%1e4,n,4)}function wa(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+Uu(n/60|0,"0",2)+Uu(n%60,"0",2)}function Ma(t,n){return Uu(t.getUTCDate(),n,2)}function Ta(t,n){return Uu(t.getUTCHours(),n,2)}function Na(t,n){return Uu(t.getUTCHours()%12||12,n,2)}function ka(t,n){return Uu(1+eg.count(xg(t),t),n,3)}function Sa(t,n){return Uu(t.getUTCMilliseconds(),n,3)}function Ea(t,n){return Sa(t,n)+"000"}function Aa(t,n){return Uu(t.getUTCMonth()+1,n,2)}function Ca(t,n){return Uu(t.getUTCMinutes(),n,2)}function za(t,n){return Uu(t.getUTCSeconds(),n,2)}function Pa(t){var n=t.getUTCDay();return 0===n?7:n}function Ra(t,n){return Uu(ig.count(xg(t),t),n,2)}function La(t,n){var e=t.getUTCDay();return t=e>=4||0===e?cg(t):cg.ceil(t),Uu(cg.count(xg(t),t)+(4===xg(t).getUTCDay()),n,2)}function qa(t){return t.getUTCDay()}function Da(t,n){return Uu(og.count(xg(t),t),n,2)}function Ua(t,n){return Uu(t.getUTCFullYear()%100,n,2)}function Oa(t,n){return Uu(t.getUTCFullYear()%1e4,n,4)}function Fa(){return"+0000"}function Ia(){return"%"}function Ya(t){return+t}function Ba(t){return Math.floor(+t/1e3)}function Ha(n){return bg=Du(n),t.timeFormat=bg.format,t.timeParse=bg.parse,t.utcFormat=bg.utcFormat,t.utcParse=bg.utcParse,bg}function ja(t){return new Date(t)}function Xa(t){return t instanceof Date?+t:+new Date(+t)}function Va(t,n,r,i,o,u,a,c,s){function f(e){return(a(e)=1?i_:t<=-1?-i_:Math.asin(t)}function Ja(t){return t.innerRadius}function Ka(t){return t.outerRadius}function tc(t){return t.startAngle}function nc(t){return t.endAngle}function ec(t){return t&&t.padAngle}function rc(t,n,e,r,i,o,u){var a=t-e,c=n-r,s=(u?o:-o)/n_(a*a+c*c),f=s*c,l=-s*a,h=t+f,p=n+l,d=e+f,v=r+l,g=(h+d)/2,_=(p+v)/2,y=d-h,m=v-p,x=y*y+m*m,b=i-o,w=h*v-d*p,M=(m<0?-1:1)*n_(Jg(0,b*b*x-w*w)),T=(w*m-y*M)/x,N=(-w*y-m*M)/x,k=(w*m+y*M)/x,S=(-w*y+m*M)/x,E=T-g,A=N-_,C=k-g,z=S-_;return E*E+A*A>C*C+z*z&&(T=k,N=S),{cx:T,cy:N,x01:-f,y01:-l,x11:T*(i/b-1),y11:N*(i/b-1)}}function ic(t){this._context=t}function oc(t){return new ic(t)}function uc(t){return t[0]}function ac(t){return t[1]}function cc(){function t(t){var a,c,s,f=t.length,l=!1;for(null==i&&(u=o(s=ee())),a=0;a<=f;++a)!(a=f;--l)s.point(g[l],_[l]);s.lineEnd(),s.areaEnd()}v&&(g[n]=+e(h,n,t),_[n]=+i(h,n,t),s.point(r?+r(h,n,t):g[n],o?+o(h,n,t):_[n]))}if(p)return s=null,p+""||null}function n(){return cc().defined(u).curve(c).context(a)}var e=uc,r=null,i=Ga(0),o=ac,u=Ga(!0),a=null,c=oc,s=null;return t.x=function(n){return arguments.length?(e="function"==typeof n?n:Ga(+n),r=null,t):e},t.x0=function(n){return arguments.length?(e="function"==typeof n?n:Ga(+n),t):e},t.x1=function(n){return arguments.length?(r=null==n?null:"function"==typeof n?n:Ga(+n),t):r},t.y=function(n){return arguments.length?(i="function"==typeof n?n:Ga(+n),o=null,t):i},t.y0=function(n){return arguments.length?(i="function"==typeof n?n:Ga(+n),t):i},t.y1=function(n){return arguments.length?(o=null==n?null:"function"==typeof n?n:Ga(+n),t):o},t.lineX0=t.lineY0=function(){return n().x(e).y(i)},t.lineY1=function(){return n().x(e).y(o)},t.lineX1=function(){return n().x(r).y(i)},t.defined=function(n){return arguments.length?(u="function"==typeof n?n:Ga(!!n),t):u},t.curve=function(n){return arguments.length?(c=n,null!=a&&(s=c(a)),t):c},t.context=function(n){return arguments.length?(null==n?a=s=null:s=c(a=n),t):a},t}function fc(t,n){return nt?1:n>=t?0:NaN}function lc(t){return t}function hc(t){this._curve=t}function pc(t){function n(n){return new hc(t(n))}return n._curve=t,n}function dc(t){var n=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?n(pc(t)):n()._curve},t}function vc(){return dc(cc().curve(u_))}function gc(){var t=sc().curve(u_),n=t.curve,e=t.lineX0,r=t.lineX1,i=t.lineY0,o=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return dc(e())},delete t.lineX0,t.lineEndAngle=function(){return dc(r())},delete t.lineX1,t.lineInnerRadius=function(){return dc(i())},delete t.lineY0,t.lineOuterRadius=function(){return dc(o())},delete t.lineY1,t.curve=function(t){return arguments.length?n(pc(t)):n()._curve},t}function _c(t,n){return[(n=+n)*Math.cos(t-=Math.PI/2),n*Math.sin(t)]}function yc(t){return t.source}function mc(t){return t.target}function xc(t){function n(){var n,a=a_.call(arguments),c=e.apply(this,a),s=r.apply(this,a);if(u||(u=n=ee()),t(u,+i.apply(this,(a[0]=c,a)),+o.apply(this,a),+i.apply(this,(a[0]=s,a)),+o.apply(this,a)),n)return u=null,n+""||null}var e=yc,r=mc,i=uc,o=ac,u=null;return n.source=function(t){return arguments.length?(e=t,n):e},n.target=function(t){return arguments.length?(r=t,n):r},n.x=function(t){return arguments.length?(i="function"==typeof t?t:Ga(+t),n):i},n.y=function(t){return arguments.length?(o="function"==typeof t?t:Ga(+t),n):o},n.context=function(t){return arguments.length?(u=null==t?null:t,n):u},n}function bc(t,n,e,r,i){t.moveTo(n,e),t.bezierCurveTo(n=(n+r)/2,e,n,i,r,i)}function wc(t,n,e,r,i){t.moveTo(n,e),t.bezierCurveTo(n,e=(e+i)/2,r,e,r,i)}function Mc(t,n,e,r,i){var o=_c(n,e),u=_c(n,e=(e+i)/2),a=_c(r,e),c=_c(r,i);t.moveTo(o[0],o[1]),t.bezierCurveTo(u[0],u[1],a[0],a[1],c[0],c[1])}function Tc(){}function Nc(t,n,e){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+n)/6,(t._y0+4*t._y1+e)/6)}function kc(t){this._context=t}function Sc(t){this._context=t}function Ec(t){this._context=t}function Ac(t,n){this._basis=new kc(t),this._beta=n}function Cc(t,n,e){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-n),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function zc(t,n){this._context=t,this._k=(1-n)/6}function Pc(t,n){this._context=t,this._k=(1-n)/6}function Rc(t,n){this._context=t,this._k=(1-n)/6}function Lc(t,n,e){var r=t._x1,i=t._y1,o=t._x2,u=t._y2;if(t._l01_a>e_){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,i=(i*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>e_){var s=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,f=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*s+t._x1*t._l23_2a-n*t._l12_2a)/f,u=(u*s+t._y1*t._l23_2a-e*t._l12_2a)/f}t._context.bezierCurveTo(r,i,o,u,t._x2,t._y2)}function qc(t,n){this._context=t,this._alpha=n}function Dc(t,n){this._context=t,this._alpha=n}function Uc(t,n){this._context=t,this._alpha=n}function Oc(t){this._context=t}function Fc(t){return t<0?-1:1}function Ic(t,n,e){var r=t._x1-t._x0,i=n-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),u=(e-t._y1)/(i||r<0&&-0),a=(o*i+u*r)/(r+i);return(Fc(o)+Fc(u))*Math.min(Math.abs(o),Math.abs(u),.5*Math.abs(a))||0}function Yc(t,n){var e=t._x1-t._x0;return e?(3*(t._y1-t._y0)/e-n)/2:n}function Bc(t,n,e){var r=t._x0,i=t._y0,o=t._x1,u=t._y1,a=(o-r)/3;t._context.bezierCurveTo(r+a,i+a*n,o-a,u-a*e,o,u)}function Hc(t){this._context=t}function jc(t){this._context=new Xc(t)}function Xc(t){this._context=t}function Vc(t){this._context=t}function $c(t){var n,e,r=t.length-1,i=new Array(r),o=new Array(r),u=new Array(r);for(i[0]=0,o[0]=2,u[0]=t[0]+2*t[1],n=1;n=0;--n)i[n]=(u[n]-i[n+1])/o[n];for(o[r-1]=(t[r]+i[r-1])/2,n=0;n1)for(var e,r,i,o=1,u=t[n[0]],a=u.length;o=0;)e[n]=n;return e}function Qc(t,n){return t[n]}function Jc(t){var n=t.map(Kc);return Gc(t).sort(function(t,e){return n[t]-n[e]})}function Kc(t){for(var n,e=0,r=-1,i=t.length;++r0)){if(o/=h,h<0){if(o0){if(o>l)return;o>f&&(f=o)}if(o=r-c,h||!(o<0)){if(o/=h,h<0){if(o>l)return;o>f&&(f=o)}else if(h>0){if(o0)){if(o/=p,p<0){if(o0){if(o>l)return;o>f&&(f=o)}if(o=i-s,p||!(o<0)){if(o/=p,p<0){if(o>l)return;o>f&&(f=o)}else if(p>0){if(o0||l<1)||(f>0&&(t[0]=[c+f*h,s+f*p]),l<1&&(t[1]=[c+l*h,s+l*p]),!0)}}}}}function hs(t,n,e,r,i){var o=t[1];if(o)return!0;var u,a,c=t[0],s=t.left,f=t.right,l=s[0],h=s[1],p=f[0],d=f[1],v=(l+p)/2,g=(h+d)/2;if(d===h){if(v=r)return;if(l>p){if(c){if(c[1]>=i)return}else c=[v,e];o=[v,i]}else{if(c){if(c[1]1)if(l>p){if(c){if(c[1]>=i)return}else c=[(e-a)/u,e];o=[(i-a)/u,i]}else{if(c){if(c[1]=r)return}else c=[n,u*n+a];o=[r,u*r+a]}else{if(c){if(c[0]=-I_)){var p=c*c+s*s,d=f*f+l*l,v=(l*p-s*d)/h,g=(c*d-f*p)/h,_=U_.pop()||new function(){is(this),this.x=this.y=this.arc=this.site=this.cy=null};_.arc=t,_.site=i,_.x=v+u,_.y=(_.cy=g+a)+Math.sqrt(v*v+g*g),t.circle=_;for(var y=null,m=q_._;m;)if(_.yF_)a=a.L;else{if(!((i=o-function(t,n){var e=t.N;if(e)return ws(e,n);var r=t.site;return r[1]===n?r[0]:1/0}(a,u))>F_)){r>-F_?(n=a.P,e=a):i>-F_?(n=a,e=a.N):n=e=a;break}if(!a.R){n=a;break}a=a.R}(function(t){L_[t.index]={site:t,halfedges:[]}})(t);var c=ys(t);if(R_.insert(n,c),n||e){if(n===e)return _s(n),e=ys(n.site),R_.insert(c,e),c.edge=e.edge=cs(n.site,c.site),gs(n),void gs(e);if(e){_s(n),_s(e);var s=n.site,f=s[0],l=s[1],h=t[0]-f,p=t[1]-l,d=e.site,v=d[0]-f,g=d[1]-l,_=2*(h*g-p*v),y=h*h+p*p,m=v*v+g*g,x=[(g*y-p*m)/_+f,(h*m-v*y)/_+l];fs(e.edge,s,d,x),c.edge=cs(s,t,null,x),e.edge=cs(t,d,null,x),gs(n),gs(e)}else c.edge=cs(n.site,c.site)}}function ws(t,n){var e=t.site,r=e[0],i=e[1],o=i-n;if(!o)return r;var u=t.P;if(!u)return-1/0;var a=(e=u.site)[0],c=e[1],s=c-n;if(!s)return a;var f=a-r,l=1/o-1/s,h=f/s;return l?(-h+Math.sqrt(h*h-2*l*(f*f/(-2*s)-c+s/2+i-o/2)))/l+r:(r+a)/2}function Ms(t,n,e){return(t[0]-e[0])*(n[1]-t[1])-(t[0]-n[0])*(e[1]-t[1])}function Ts(t,n){return n[1]-t[1]||n[0]-t[0]}function Ns(t,n){var e,r,i,o=t.sort(Ts).pop();for(D_=[],L_=new Array(t.length),R_=new rs,q_=new rs;;)if(i=P_,o&&(!i||o[1]F_||Math.abs(i[0][1]-i[1][1])>F_)||delete D_[o]})(u,a,c,s),function(t,n,e,r){var i,o,u,a,c,s,f,l,h,p,d,v,g=L_.length,_=!0;for(i=0;iF_||Math.abs(v-h)>F_)&&(c.splice(a,0,D_.push(ss(u,p,Math.abs(d-t)F_?[t,Math.abs(l-t)F_?[Math.abs(h-r)F_?[e,Math.abs(l-e)F_?[Math.abs(h-n)r?(r+i)/2:Math.min(0,r)||Math.max(0,i),u>o?(o+u)/2:Math.min(0,o)||Math.max(0,u))}var Us=e(n),Os=Us.right,Fs=Us.left,Is=Array.prototype,Ys=Is.slice,Bs=Is.map,Hs=Math.sqrt(50),js=Math.sqrt(10),Xs=Math.sqrt(2),Vs=Array.prototype.slice,$s=1,Ws=2,Zs=3,Gs=4,Qs=1e-6,Js={value:function(){}};k.prototype=N.prototype={constructor:k,on:function(t,n){var e,r=this._,i=function(t,n){return t.trim().split(/^|\s+/).map(function(t){var e="",r=t.indexOf(".");if(r>=0&&(e=t.slice(r+1),t=t.slice(0,r)),t&&!n.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}})}(t+"",r),o=-1,u=i.length;{if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++o0)for(var e,r,i=new Array(e),o=0;o=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var af={};if(t.event=null,"undefined"!=typeof document){"onmouseenter"in document.documentElement||(af={mouseenter:"mouseover",mouseleave:"mouseout"})}var cf=[null];ut.prototype=at.prototype={constructor:ut,select:function(t){"function"!=typeof t&&(t=z(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i=x&&(x=m+1);!(y=g[x])&&++x=0;)(r=i[o])&&(u&&u!==r.nextSibling&&u.parentNode.insertBefore(r,u),u=r);return this},sort:function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=O);for(var e=this._groups,r=e.length,i=new Array(r),o=0;o1?this.each((null==n?function(t){return function(){this.style.removeProperty(t)}}:"function"==typeof n?function(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}:function(t,n,e){return function(){this.style.setProperty(t,n,e)}})(t,n,null==e?"":e)):I(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?function(t){return function(){delete this[t]}}:"function"==typeof n?function(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}:function(t,n){return function(){this[t]=n}})(t,n)):this.node()[t]},classed:function(t,n){var e=Y(t+"");if(arguments.length<2){for(var r=B(this.node()),i=-1,o=e.length;++i=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}})}(t+""),u=o.length;if(!(arguments.length<2)){for(a=n?rt:et,null==e&&(e=!1),r=0;r=240?t-240:t+120,i,r),Ut(t,i,r),Ut(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var wf=Math.PI/180,Mf=180/Math.PI,Tf=.95047,Nf=1,kf=1.08883,Sf=4/29,Ef=6/29,Af=3*Ef*Ef,Cf=Ef*Ef*Ef;Nt(It,Ft,kt(St,{brighter:function(t){return new It(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new It(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,n=isNaN(this.a)?t:t+this.a/500,e=isNaN(this.b)?t:t-this.b/200;return t=Nf*Bt(t),n=Tf*Bt(n),e=kf*Bt(e),new Rt(Ht(3.2404542*n-1.5371385*t-.4985314*e),Ht(-.969266*n+1.8760108*t+.041556*e),Ht(.0556434*n-.2040259*t+1.0572252*e),this.opacity)}})),Nt(Vt,Xt,kt(St,{brighter:function(t){return new Vt(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new Vt(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return Ot(this).rgb()}}));var zf=-.29227,Pf=-.90649,Rf=1.97294,Lf=Rf*Pf,qf=1.78277*Rf,Df=1.78277*zf- -.14861*Pf;Nt(Wt,$t,kt(St,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Wt(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Wt(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*wf,n=+this.l,e=isNaN(this.s)?0:this.s*n*(1-n),r=Math.cos(t),i=Math.sin(t);return new Rt(255*(n+e*(-.14861*r+1.78277*i)),255*(n+e*(zf*r+Pf*i)),255*(n+e*(Rf*r)),this.opacity)}}));var Uf,Of,Ff,If,Yf,Bf,Hf=function t(n){function e(t,n){var e=r((t=Pt(t)).r,(n=Pt(n)).r),i=r(t.g,n.g),o=r(t.b,n.b),u=en(t.opacity,n.opacity);return function(n){return t.r=e(n),t.g=i(n),t.b=o(n),t.opacity=u(n),t+""}}var r=nn(n);return e.gamma=t,e}(1),jf=rn(Gt),Xf=rn(Qt),Vf=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,$f=new RegExp(Vf.source,"g"),Wf=180/Math.PI,Zf={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},Gf=pn(function(t){return"none"===t?Zf:(Uf||(Uf=document.createElement("DIV"),Of=document.documentElement,Ff=document.defaultView),Uf.style.transform=t,t=Ff.getComputedStyle(Of.appendChild(Uf),null).getPropertyValue("transform"),Of.removeChild(Uf),t=t.slice(7,-1).split(","),hn(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))},"px, ","px)","deg)"),Qf=pn(function(t){return null==t?Zf:(If||(If=document.createElementNS("http://www.w3.org/2000/svg","g")),If.setAttribute("transform",t),(t=If.transform.baseVal.consolidate())?(t=t.matrix,hn(t.a,t.b,t.c,t.d,t.e,t.f)):Zf)},", ",")",")"),Jf=Math.SQRT2,Kf=2,tl=4,nl=1e-12,el=gn(tn),rl=gn(en),il=_n(tn),ol=_n(en),ul=yn(tn),al=yn(en),cl=0,sl=0,fl=0,ll=1e3,hl=0,pl=0,dl=0,vl="object"==typeof performance&&performance.now?performance:Date,gl="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};bn.prototype=wn.prototype={constructor:bn,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?mn():+e)+(null==n?0:+n),this._next||Bf===this||(Bf?Bf._next=this:Yf=this,Bf=this),this._call=t,this._time=e,kn()},stop:function(){this._call&&(this._call=null,this._time=1/0,kn())}};var _l=N("start","end","interrupt"),yl=[],ml=0,xl=1,bl=2,wl=3,Ml=4,Tl=5,Nl=6,kl=at.prototype.constructor,Sl=0,El=at.prototype;qn.prototype=Dn.prototype={constructor:qn,select:function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=z(t));for(var r=this._groups,i=r.length,o=new Array(i),u=0;u=0&&(t=t.slice(0,n)),!t||"start"===t})}(n)?An:Cn;return function(){var u=o(this,t),a=u.on;a!==r&&(i=(r=a).copy()).on(n,e),u.on=i}}(e,t,n))},attr:function(t,n){var e=E(t),r="transform"===e?Qf:Ln;return this.attrTween(t,"function"==typeof n?(e.local?function(t,n,e){var r,i,o;return function(){var u,a=e(this);if(null!=a)return(u=this.getAttributeNS(t.space,t.local))===a?null:u===r&&a===i?o:o=n(r=u,i=a);this.removeAttributeNS(t.space,t.local)}}:function(t,n,e){var r,i,o;return function(){var u,a=e(this);if(null!=a)return(u=this.getAttribute(t))===a?null:u===r&&a===i?o:o=n(r=u,i=a);this.removeAttribute(t)}})(e,r,Rn(this,"attr."+t,n)):null==n?(e.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}})(e):(e.local?function(t,n,e){var r,i;return function(){var o=this.getAttributeNS(t.space,t.local);return o===e?null:o===r?i:i=n(r=o,e)}}:function(t,n,e){var r,i;return function(){var o=this.getAttribute(t);return o===e?null:o===r?i:i=n(r=o,e)}})(e,r,n+""))},attrTween:function(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==n)return this.tween(e,null);if("function"!=typeof n)throw new Error;var r=E(t);return this.tween(e,(r.local?function(t,n){function e(){var e=this,r=n.apply(e,arguments);return r&&function(n){e.setAttributeNS(t.space,t.local,r(n))}}return e._value=n,e}:function(t,n){function e(){var e=this,r=n.apply(e,arguments);return r&&function(n){e.setAttribute(t,r(n))}}return e._value=n,e})(r,n))},style:function(t,n,e){var r="transform"==(t+="")?Gf:Ln;return null==n?this.styleTween(t,function(t,n){var e,r,i;return function(){var o=I(this,t),u=(this.style.removeProperty(t),I(this,t));return o===u?null:o===e&&u===r?i:i=n(e=o,r=u)}}(t,r)).on("end.style."+t,function(t){return function(){this.style.removeProperty(t)}}(t)):this.styleTween(t,"function"==typeof n?function(t,n,e){var r,i,o;return function(){var u=I(this,t),a=e(this);return null==a&&(this.style.removeProperty(t),a=I(this,t)),u===a?null:u===r&&a===i?o:o=n(r=u,i=a)}}(t,r,Rn(this,"style."+t,n)):function(t,n,e){var r,i;return function(){var o=I(this,t);return o===e?null:o===r?i:i=n(r=o,e)}}(t,r,n+""),e)},styleTween:function(t,n,e){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==n)return this.tween(r,null);if("function"!=typeof n)throw new Error;return this.tween(r,function(t,n,e){function r(){var r=this,i=n.apply(r,arguments);return i&&function(n){r.style.setProperty(t,i(n),e)}}return r._value=n,r}(t,n,null==e?"":e))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var n=t(this);this.textContent=null==n?"":n}}(Rn(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},remove:function(){return this.on("end.remove",function(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}(this._id))},tween:function(t,n){var e=this._id;if(t+="",arguments.length<2){for(var r,i=zn(this.node(),e).tween,o=0,u=i.length;o1e-6)if(Math.abs(f*a-c*s)>1e-6&&i){var h=e-o,p=r-u,d=a*a+c*c,v=h*h+p*p,g=Math.sqrt(d),_=Math.sqrt(l),y=i*Math.tan((yh-Math.acos((d+l-v)/(2*g*_)))/2),m=y/_,x=y/g;Math.abs(m-1)>1e-6&&(this._+="L"+(t+m*s)+","+(n+m*f)),this._+="A"+i+","+i+",0,0,"+ +(f*h>s*p)+","+(this._x1=t+x*a)+","+(this._y1=n+x*c)}else this._+="L"+(this._x1=t)+","+(this._y1=n);else;},arc:function(t,n,e,r,i,o){t=+t,n=+n;var u=(e=+e)*Math.cos(r),a=e*Math.sin(r),c=t+u,s=n+a,f=1^o,l=o?r-i:i-r;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+c+","+s:(Math.abs(this._x1-c)>1e-6||Math.abs(this._y1-s)>1e-6)&&(this._+="L"+c+","+s),e&&(l<0&&(l=l%mh+mh),l>xh?this._+="A"+e+","+e+",0,1,"+f+","+(t-u)+","+(n-a)+"A"+e+","+e+",0,1,"+f+","+(this._x1=c)+","+(this._y1=s):l>1e-6&&(this._+="A"+e+","+e+",0,"+ +(l>=yh)+","+f+","+(this._x1=t+e*Math.cos(i))+","+(this._y1=n+e*Math.sin(i))))},rect:function(t,n,e,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +r+"h"+-e+"Z"},toString:function(){return this._}};ce.prototype=se.prototype={constructor:ce,has:function(t){return"$"+t in this},get:function(t){return this["$"+t]},set:function(t,n){return this["$"+t]=n,this},remove:function(t){var n="$"+t;return n in this&&delete this[n]},clear:function(){for(var t in this)"$"===t[0]&&delete this[t]},keys:function(){var t=[];for(var n in this)"$"===n[0]&&t.push(n.slice(1));return t},values:function(){var t=[];for(var n in this)"$"===n[0]&&t.push(this[n]);return t},entries:function(){var t=[];for(var n in this)"$"===n[0]&&t.push({key:n.slice(1),value:this[n]});return t},size:function(){var t=0;for(var n in this)"$"===n[0]&&++t;return t},empty:function(){for(var t in this)if("$"===t[0])return!1;return!0},each:function(t){for(var n in this)"$"===n[0]&&t(this[n],n.slice(1),this)}};var bh=se.prototype;de.prototype=ve.prototype={constructor:de,has:bh.has,add:function(t){return t+="",this["$"+t]=t,this},remove:bh.remove,clear:bh.clear,values:bh.keys,size:bh.size,empty:bh.empty,each:bh.each};var wh={},Mh={},Th=34,Nh=10,kh=13,Sh=_e(","),Eh=Sh.parse,Ah=Sh.parseRows,Ch=Sh.format,zh=Sh.formatRows,Ph=_e("\t"),Rh=Ph.parse,Lh=Ph.parseRows,qh=Ph.format,Dh=Ph.formatRows,Uh=Te.prototype=Ne.prototype;Uh.copy=function(){var t,n,e=new Ne(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return e;if(!r.length)return e._root=ke(r),e;for(t=[{source:r,target:e._root=new Array(4)}];r=t.pop();)for(var i=0;i<4;++i)(n=r.source[i])&&(n.length?t.push({source:n,target:r.target[i]=new Array(4)}):r.target[i]=ke(n));return e},Uh.add=function(t){var n=+this._x.call(null,t),e=+this._y.call(null,t);return xe(this.cover(n,e),n,e,t)},Uh.addAll=function(t){var n,e,r,i,o=t.length,u=new Array(o),a=new Array(o),c=1/0,s=1/0,f=-1/0,l=-1/0;for(e=0;ef&&(f=r),il&&(l=i));for(ft||t>i||r>n||n>o))return this;var u,a,c=i-e,s=this._root;switch(a=(n<(r+o)/2)<<1|t<(e+i)/2){case 0:do{u=new Array(4),u[a]=s,s=u}while(c*=2,i=e+c,o=r+c,t>i||n>o);break;case 1:do{u=new Array(4),u[a]=s,s=u}while(c*=2,e=i-c,o=r+c,e>t||n>o);break;case 2:do{u=new Array(4),u[a]=s,s=u}while(c*=2,i=e+c,r=o-c,t>i||r>n);break;case 3:do{u=new Array(4),u[a]=s,s=u}while(c*=2,e=i-c,r=o-c,e>t||r>n)}this._root&&this._root.length&&(this._root=s)}return this._x0=e,this._y0=r,this._x1=i,this._y1=o,this},Uh.data=function(){var t=[];return this.visit(function(n){if(!n.length)do{t.push(n.data)}while(n=n.next)}),t},Uh.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},Uh.find=function(t,n,e){var r,i,o,u,a,c,s,f=this._x0,l=this._y0,h=this._x1,p=this._y1,d=[],v=this._root;for(v&&d.push(new be(v,f,l,h,p)),null==e?e=1/0:(f=t-e,l=n-e,h=t+e,p=n+e,e*=e);c=d.pop();)if(!(!(v=c.node)||(i=c.x0)>h||(o=c.y0)>p||(u=c.x1)=_)<<1|t>=g)&&(c=d[d.length-1],d[d.length-1]=d[d.length-1-s],d[d.length-1-s]=c)}else{var y=t-+this._x.call(null,v.data),m=n-+this._y.call(null,v.data),x=y*y+m*m;if(x=(a=(d+g)/2))?d=a:g=a,(f=u>=(c=(v+_)/2))?v=c:_=c,n=p,!(p=p[l=f<<1|s]))return this;if(!p.length)break;(n[l+1&3]||n[l+2&3]||n[l+3&3])&&(e=n,h=l)}for(;p.data!==t;)if(r=p,!(p=p.next))return this;return(i=p.next)&&delete p.next,r?(i?r.next=i:delete r.next,this):n?(i?n[l]=i:delete n[l],(p=n[0]||n[1]||n[2]||n[3])&&p===(n[3]||n[2]||n[1]||n[0])&&!p.length&&(e?e[h]=p:this._root=p),this):(this._root=i,this)},Uh.removeAll=function(t){for(var n=0,e=t.length;n0&&(o=0)}return o>0?t.slice(0,o)+t.slice(e+1):t},"%":function(t,n){return(100*t).toFixed(n)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},g:function(t,n){return t.toPrecision(n)},o:function(t){return Math.round(t).toString(8)},p:function(t,n){return qe(100*t,n)},r:qe,s:function(t,n){var e=Re(t,n);if(!e)return t+"";var r=e[0],i=e[1],o=i-(Oh=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,u=r.length;return o===u?r:o>u?r+new Array(o-u+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Re(t,Math.max(0,n+o-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},Bh=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;De.prototype=Ue.prototype,Ue.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+this.type};var Hh,jh=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];Ie({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),Xe.prototype={constructor:Xe,reset:function(){this.s=this.t=0},add:function(t){Ve(wp,t,this.t),Ve(this,wp.s,this.s),this.s?this.t+=wp.t:this.s=wp.t},valueOf:function(){return this.s}};var Xh,Vh,$h,Wh,Zh,Gh,Qh,Jh,Kh,tp,np,ep,rp,ip,op,up,ap,cp,sp,fp,lp,hp,pp,dp,vp,gp,_p,yp,mp,xp,bp,wp=new Xe,Mp=1e-6,Tp=1e-12,Np=Math.PI,kp=Np/2,Sp=Np/4,Ep=2*Np,Ap=180/Np,Cp=Np/180,zp=Math.abs,Pp=Math.atan,Rp=Math.atan2,Lp=Math.cos,qp=Math.ceil,Dp=Math.exp,Up=Math.log,Op=Math.pow,Fp=Math.sin,Ip=Math.sign||function(t){return t>0?1:t<0?-1:0},Yp=Math.sqrt,Bp=Math.tan,Hp={Feature:function(t,n){Qe(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++rMp?Kh=90:Wp<-Mp&&(Qh=-90),op[0]=Gh,op[1]=Jh}},Gp={sphere:Ge,point:wr,lineStart:Tr,lineEnd:Sr,polygonStart:function(){Gp.lineStart=Er,Gp.lineEnd=Ar},polygonEnd:function(){Gp.lineStart=Tr,Gp.lineEnd=Sr}};Lr.invert=Lr;var Qp,Jp,Kp,td,nd,ed,rd,id,od,ud,ad,cd=je(),sd=Wr(function(){return!0},function(t){var n,e=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),n=1},point:function(o,u){var a=o>0?Np:-Np,c=zp(o-e);zp(c-Np)0?kp:-kp),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(a,r),t.point(o,r),n=0):i!==a&&c>=Np&&(zp(e-i)Mp?Pp((Fp(n)*(o=Lp(r))*Fp(e)-Fp(r)*(i=Lp(n))*Fp(t))/(i*o*u)):(n+r)/2}(e,r,o,u),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(a,r),n=0),t.point(e=o,r=u),i=a},lineEnd:function(){t.lineEnd(),e=r=NaN},clean:function(){return 2-n}}},function(t,n,e,r){var i;if(null==t)i=e*kp,r.point(-Np,i),r.point(0,i),r.point(Np,i),r.point(Np,0),r.point(Np,-i),r.point(0,-i),r.point(-Np,-i),r.point(-Np,0),r.point(-Np,i);else if(zp(t[0]-n[0])>Mp){var o=t[0]Md&&(Md=t),nTd&&(Td=n)},lineStart:Ge,lineEnd:Ge,polygonStart:Ge,polygonEnd:Ge,result:function(){var t=[[bd,wd],[Md,Td]];return Md=Td=-(wd=bd=1/0),t}},kd=0,Sd=0,Ed=0,Ad=0,Cd=0,zd=0,Pd=0,Rd=0,Ld=0,qd={point:yi,lineStart:mi,lineEnd:wi,polygonStart:function(){qd.lineStart=Mi,qd.lineEnd=Ti},polygonEnd:function(){qd.point=yi,qd.lineStart=mi,qd.lineEnd=wi},result:function(){var t=Ld?[Pd/Ld,Rd/Ld]:zd?[Ad/zd,Cd/zd]:Ed?[kd/Ed,Sd/Ed]:[NaN,NaN];return kd=Sd=Ed=Ad=Cd=zd=Pd=Rd=Ld=0,t}};Si.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,n){switch(this._point){case 0:this._context.moveTo(t,n),this._point=1;break;case 1:this._context.lineTo(t,n);break;default:this._context.moveTo(t+this._radius,n),this._context.arc(t,n,this._radius,0,Ep)}},result:Ge};var Dd,Ud,Od,Fd,Id,Yd=je(),Bd={point:Ge,lineStart:function(){Bd.point=Ei},lineEnd:function(){Dd&&Ai(Ud,Od),Bd.point=Ge},polygonStart:function(){Dd=!0},polygonEnd:function(){Dd=null},result:function(){var t=+Yd;return Yd.reset(),t}};Ci.prototype={_radius:4.5,_circle:zi(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,n){switch(this._point){case 0:this._string.push("M",t,",",n),this._point=1;break;case 1:this._string.push("L",t,",",n);break;default:null==this._circle&&(this._circle=zi(this._radius)),this._string.push("M",t,",",n,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}},Ri.prototype={constructor:Ri,point:function(t,n){this.stream.point(t,n)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var Hd=16,jd=Lp(30*Cp),Xd=Pi({point:function(t,n){this.stream.point(t*Cp,n*Cp)}}),Vd=Vi(function(t){return Yp(2/(1+t))});Vd.invert=$i(function(t){return 2*We(t/2)});var $d=Vi(function(t){return(t=$e(t))&&t/Fp(t)});$d.invert=$i(function(t){return t}),Wi.invert=function(t,n){return[t,2*Pp(Dp(n))-kp]},Ji.invert=Ji,to.invert=$i(Pp),eo.invert=function(t,n){var e,r=n,i=25;do{var o=r*r,u=o*o;r-=e=(r*(1.007226+o*(.015085+u*(.028874*o-.044475-.005916*u)))-n)/(1.007226+o*(.045255+u*(.259866*o-.311325-.005916*11*u)))}while(zp(e)>Mp&&--i>0);return[t/(.8707+(o=r*r)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),r]},ro.invert=$i(We),io.invert=$i(function(t){return 2*Pp(t)}),oo.invert=function(t,n){return[-n,2*Pp(Dp(t))-kp]},vo.prototype=fo.prototype={constructor:vo,count:function(){return this.eachAfter(so)},each:function(t){var n,e,r,i,o=this,u=[o];do{for(n=u.reverse(),u=[];o=n.pop();)if(t(o),e=o.children)for(r=0,i=e.length;r=0;--e)i.push(n[e]);return this},sum:function(t){return this.eachAfter(function(n){for(var e=+t(n.data)||0,r=n.children,i=r&&r.length;--i>=0;)e+=r[i].value;n.value=e})},sort:function(t){return this.eachBefore(function(n){n.children&&n.children.sort(t)})},path:function(t){for(var n=this,e=function(t,n){if(t===n)return t;var e=t.ancestors(),r=n.ancestors(),i=null;for(t=e.pop(),n=r.pop();t===n;)i=t,t=e.pop(),n=r.pop();return i}(n,t),r=[n];n!==e;)n=n.parent,r.push(n);for(var i=r.length;t!==e;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n},descendants:function(){var t=[];return this.each(function(n){t.push(n)}),t},leaves:function(){var t=[];return this.eachBefore(function(n){n.children||t.push(n)}),t},links:function(){var t=this,n=[];return t.each(function(e){e!==t&&n.push({source:e.parent,target:e})}),n},copy:function(){return fo(this).eachBefore(ho)}};var Wd=Array.prototype.slice,Zd="$",Gd={depth:-1},Qd={};Ho.prototype=Object.create(vo.prototype);var Jd=(1+Math.sqrt(5))/2,Kd=function t(n){function e(t,e,r,i,o){Xo(n,t,e,r,i,o)}return e.ratio=function(n){return t((n=+n)>1?n:1)},e}(Jd),tv=function t(n){function e(t,e,r,i,o){if((u=t._squarify)&&u.ratio===n)for(var u,a,c,s,f,l=-1,h=u.length,p=t.value;++l1?n:1)},e}(Jd),nv=[].slice,ev={};Zo.prototype=Ko.prototype={constructor:Zo,defer:function(t){if("function"!=typeof t)throw new Error("invalid callback");if(this._call)throw new Error("defer after await");if(null!=this._error)return this;var n=nv.call(arguments,1);return n.push(t),++this._waiting,this._tasks.push(n),Go(this),this},abort:function(){return null==this._error&&Qo(this,new Error("abort")),this},await:function(t){if("function"!=typeof t)throw new Error("invalid callback");if(this._call)throw new Error("multiple await");return this._call=function(n,e){t.apply(null,[n].concat(e))},Jo(this),this},awaitAll:function(t){if("function"!=typeof t)throw new Error("invalid callback");if(this._call)throw new Error("multiple await");return this._call=t,Jo(this),this}};var rv=function t(n){function e(t,e){return t=null==t?0:+t,e=null==e?1:+e,1===arguments.length?(e=t,t=0):e-=t,function(){return n()*e+t}}return e.source=t,e}(tu),iv=function t(n){function e(t,e){var r,i;return t=null==t?0:+t,e=null==e?1:+e,function(){var o;if(null!=r)o=r,r=null;else do{r=2*n()-1,o=2*n()-1,i=r*r+o*o}while(!i||i>1);return t+e*o*Math.sqrt(-2*Math.log(i)/i)}}return e.source=t,e}(tu),ov=function t(n){function e(){var t=iv.source(n).apply(this,arguments);return function(){return Math.exp(t())}}return e.source=t,e}(tu),uv=function t(n){function e(t){return function(){for(var e=0,r=0;r0?t>1?Cu(function(n){n.setTime(Math.floor(n/t)*t)},function(n,e){n.setTime(+n+e*t)},function(n,e){return(e-n)/t}):wv:null};var Mv=wv.range,Tv=6e4,Nv=6048e5,kv=Cu(function(t){t.setTime(1e3*Math.floor(t/1e3))},function(t,n){t.setTime(+t+1e3*n)},function(t,n){return(n-t)/1e3},function(t){return t.getUTCSeconds()}),Sv=kv.range,Ev=Cu(function(t){t.setTime(Math.floor(t/Tv)*Tv)},function(t,n){t.setTime(+t+n*Tv)},function(t,n){return(n-t)/Tv},function(t){return t.getMinutes()}),Av=Ev.range,Cv=Cu(function(t){var n=t.getTimezoneOffset()*Tv%36e5;n<0&&(n+=36e5),t.setTime(36e5*Math.floor((+t-n)/36e5)+n)},function(t,n){t.setTime(+t+36e5*n)},function(t,n){return(n-t)/36e5},function(t){return t.getHours()}),zv=Cv.range,Pv=Cu(function(t){t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Tv)/864e5},function(t){return t.getDate()-1}),Rv=Pv.range,Lv=zu(0),qv=zu(1),Dv=zu(2),Uv=zu(3),Ov=zu(4),Fv=zu(5),Iv=zu(6),Yv=Lv.range,Bv=qv.range,Hv=Dv.range,jv=Uv.range,Xv=Ov.range,Vv=Fv.range,$v=Iv.range,Wv=Cu(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,n){t.setMonth(t.getMonth()+n)},function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())},function(t){return t.getMonth()}),Zv=Wv.range,Gv=Cu(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t,n){return n.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});Gv.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Cu(function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,e){n.setFullYear(n.getFullYear()+e*t)}):null};var Qv=Gv.range,Jv=Cu(function(t){t.setUTCSeconds(0,0)},function(t,n){t.setTime(+t+n*Tv)},function(t,n){return(n-t)/Tv},function(t){return t.getUTCMinutes()}),Kv=Jv.range,tg=Cu(function(t){t.setUTCMinutes(0,0,0)},function(t,n){t.setTime(+t+36e5*n)},function(t,n){return(n-t)/36e5},function(t){return t.getUTCHours()}),ng=tg.range,eg=Cu(function(t){t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n)},function(t,n){return(n-t)/864e5},function(t){return t.getUTCDate()-1}),rg=eg.range,ig=Pu(0),og=Pu(1),ug=Pu(2),ag=Pu(3),cg=Pu(4),sg=Pu(5),fg=Pu(6),lg=ig.range,hg=og.range,pg=ug.range,dg=ag.range,vg=cg.range,gg=sg.range,_g=fg.range,yg=Cu(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCMonth(t.getUTCMonth()+n)},function(t,n){return n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()}),mg=yg.range,xg=Cu(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)},function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});xg.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Cu(function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)}):null};var bg,wg=xg.range,Mg={"-":"",_:" ",0:"0"},Tg=/^\s*\d+/,Ng=/^%/,kg=/[\\^$*+?|[\]().{}]/g;Ha({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var Sg="%Y-%m-%dT%H:%M:%S.%LZ",Eg=Date.prototype.toISOString?function(t){return t.toISOString()}:t.utcFormat(Sg),Ag=+new Date("2000-01-01T00:00:00.000Z")?function(t){var n=new Date(t);return isNaN(n)?null:n}:t.utcParse(Sg),Cg=1e3,zg=60*Cg,Pg=60*zg,Rg=24*Pg,Lg=7*Rg,qg=30*Rg,Dg=365*Rg,Ug=$a("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),Og=$a("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6"),Fg=$a("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9"),Ig=$a("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5"),Yg=al($t(300,.5,0),$t(-240,.5,1)),Bg=al($t(-100,.75,.35),$t(80,1.5,.8)),Hg=al($t(260,.75,.35),$t(80,1.5,.8)),jg=$t(),Xg=Wa($a("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),Vg=Wa($a("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),$g=Wa($a("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),Wg=Wa($a("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),Zg=Math.abs,Gg=Math.atan2,Qg=Math.cos,Jg=Math.max,Kg=Math.min,t_=Math.sin,n_=Math.sqrt,e_=1e-12,r_=Math.PI,i_=r_/2,o_=2*r_;ic.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}};var u_=pc(oc);hc.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,n){this._curve.point(n*Math.sin(t),n*-Math.cos(t))}};var a_=Array.prototype.slice,c_={draw:function(t,n){var e=Math.sqrt(n/r_);t.moveTo(e,0),t.arc(0,0,e,0,o_)}},s_={draw:function(t,n){var e=Math.sqrt(n/5)/2;t.moveTo(-3*e,-e),t.lineTo(-e,-e),t.lineTo(-e,-3*e),t.lineTo(e,-3*e),t.lineTo(e,-e),t.lineTo(3*e,-e),t.lineTo(3*e,e),t.lineTo(e,e),t.lineTo(e,3*e),t.lineTo(-e,3*e),t.lineTo(-e,e),t.lineTo(-3*e,e),t.closePath()}},f_=Math.sqrt(1/3),l_=2*f_,h_={draw:function(t,n){var e=Math.sqrt(n/l_),r=e*f_;t.moveTo(0,-e),t.lineTo(r,0),t.lineTo(0,e),t.lineTo(-r,0),t.closePath()}},p_=Math.sin(r_/10)/Math.sin(7*r_/10),d_=Math.sin(o_/10)*p_,v_=-Math.cos(o_/10)*p_,g_={draw:function(t,n){var e=Math.sqrt(.8908130915292852*n),r=d_*e,i=v_*e;t.moveTo(0,-e),t.lineTo(r,i);for(var o=1;o<5;++o){var u=o_*o/5,a=Math.cos(u),c=Math.sin(u);t.lineTo(c*e,-a*e),t.lineTo(a*r-c*i,c*r+a*i)}t.closePath()}},__={draw:function(t,n){var e=Math.sqrt(n),r=-e/2;t.rect(r,r,e,e)}},y_=Math.sqrt(3),m_={draw:function(t,n){var e=-Math.sqrt(n/(3*y_));t.moveTo(0,2*e),t.lineTo(-y_*e,-e),t.lineTo(y_*e,-e),t.closePath()}},x_=Math.sqrt(3)/2,b_=1/Math.sqrt(12),w_=3*(b_/2+1),M_={draw:function(t,n){var e=Math.sqrt(n/w_),r=e/2,i=e*b_,o=r,u=e*b_+e,a=-o,c=u;t.moveTo(r,i),t.lineTo(o,u),t.lineTo(a,c),t.lineTo(-.5*r-x_*i,x_*r+-.5*i),t.lineTo(-.5*o-x_*u,x_*o+-.5*u),t.lineTo(-.5*a-x_*c,x_*a+-.5*c),t.lineTo(-.5*r+x_*i,-.5*i-x_*r),t.lineTo(-.5*o+x_*u,-.5*u-x_*o),t.lineTo(-.5*a+x_*c,-.5*c-x_*a),t.closePath()}},T_=[c_,s_,h_,__,g_,m_,M_];kc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Nc(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Nc(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},Sc.prototype={areaStart:Tc,areaEnd:Tc,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x2=t,this._y2=n;break;case 1:this._point=2,this._x3=t,this._y3=n;break;case 2:this._point=3,this._x4=t,this._y4=n,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+n)/6);break;default:Nc(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},Ec.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var e=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+n)/6;this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 3:this._point=4;default:Nc(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},Ac.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,n=this._y,e=t.length-1;if(e>0)for(var r,i=t[0],o=n[0],u=t[e]-i,a=n[e]-o,c=-1;++c<=e;)r=c/e,this._basis.point(this._beta*t[c]+(1-this._beta)*(i+r*u),this._beta*n[c]+(1-this._beta)*(o+r*a));this._x=this._y=null,this._basis.lineEnd()},point:function(t,n){this._x.push(+t),this._y.push(+n)}};var N_=function t(n){function e(t){return 1===n?new kc(t):new Ac(t,n)}return e.beta=function(n){return t(+n)},e}(.85);zc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Cc(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2,this._x1=t,this._y1=n;break;case 2:this._point=3;default:Cc(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var k_=function t(n){function e(t){return new zc(t,n)}return e.tension=function(n){return t(+n)},e}(0);Pc.prototype={areaStart:Tc,areaEnd:Tc,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:Cc(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var S_=function t(n){function e(t){return new Pc(t,n)}return e.tension=function(n){return t(+n)},e}(0);Rc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Cc(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var E_=function t(n){function e(t){return new Rc(t,n)}return e.tension=function(n){return t(+n)},e}(0);qc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3;default:Lc(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var A_=function t(n){function e(t){return n?new qc(t,n):new zc(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);Dc.prototype={areaStart:Tc,areaEnd:Tc,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:Lc(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var C_=function t(n){function e(t){return n?new Dc(t,n):new Pc(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);Uc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Lc(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var z_=function t(n){function e(t){return n?new Uc(t,n):new Rc(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);Oc.prototype={areaStart:Tc,areaEnd:Tc,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,n){t=+t,n=+n,this._point?this._context.lineTo(t,n):(this._point=1,this._context.moveTo(t,n))}},Hc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Bc(this,this._t0,Yc(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){var e=NaN;if(t=+t,n=+n,t!==this._x1||n!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,Bc(this,Yc(this,e=Ic(this,t,n)),e);break;default:Bc(this,this._t0,e=Ic(this,t,n))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n,this._t0=e}}},(jc.prototype=Object.create(Hc.prototype)).point=function(t,n){Hc.prototype.point.call(this,n,t)},Xc.prototype={moveTo:function(t,n){this._context.moveTo(n,t)},closePath:function(){this._context.closePath()},lineTo:function(t,n){this._context.lineTo(n,t)},bezierCurveTo:function(t,n,e,r,i,o){this._context.bezierCurveTo(n,t,r,e,o,i)}},Vc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,n=this._y,e=t.length;if(e)if(this._line?this._context.lineTo(t[0],n[0]):this._context.moveTo(t[0],n[0]),2===e)this._context.lineTo(t[1],n[1]);else for(var r=$c(t),i=$c(n),o=0,u=1;u=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,n),this._context.lineTo(t,n);else{var e=this._x*(1-this._t)+t*this._t;this._context.lineTo(e,this._y),this._context.lineTo(e,n)}}this._x=t,this._y=n}},rs.prototype={constructor:rs,insert:function(t,n){var e,r,i;if(t){if(n.P=t,n.N=t.N,t.N&&(t.N.P=n),t.N=n,t.R){for(t=t.R;t.L;)t=t.L;t.L=n}else t.R=n;e=t}else this._?(t=as(this._),n.P=null,n.N=t,t.P=t.L=n,e=t):(n.P=n.N=null,this._=n,e=null);for(n.L=n.R=null,n.U=e,n.C=!0,t=n;e&&e.C;)e===(r=e.U).L?(i=r.R)&&i.C?(e.C=i.C=!1,r.C=!0,t=r):(t===e.R&&(os(this,e),e=(t=e).U),e.C=!1,r.C=!0,us(this,r)):(i=r.L)&&i.C?(e.C=i.C=!1,r.C=!0,t=r):(t===e.L&&(us(this,e),e=(t=e).U),e.C=!1,r.C=!0,os(this,r)),e=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var n,e,r,i=t.U,o=t.L,u=t.R;if(e=o?u?as(u):o:u,i?i.L===t?i.L=e:i.R=e:this._=e,o&&u?(r=e.C,e.C=t.C,e.L=o,o.U=e,e!==u?(i=e.U,e.U=t.U,t=e.R,i.L=t,e.R=u,u.U=e):(e.U=i,i=e,t=e.R)):(r=t.C,t=e),t&&(t.U=i),!r)if(t&&t.C)t.C=!1;else{do{if(t===this._)break;if(t===i.L){if((n=i.R).C&&(n.C=!1,i.C=!0,os(this,i),n=i.R),n.L&&n.L.C||n.R&&n.R.C){n.R&&n.R.C||(n.L.C=!1,n.C=!0,us(this,n),n=i.R),n.C=i.C,i.C=n.R.C=!1,os(this,i),t=this._;break}}else if((n=i.L).C&&(n.C=!1,i.C=!0,us(this,i),n=i.L),n.L&&n.L.C||n.R&&n.R.C){n.L&&n.L.C||(n.R.C=!1,n.C=!0,os(this,n),n=i.L),n.C=i.C,i.C=n.L.C=!1,us(this,i),t=this._;break}n.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}};var P_,R_,L_,q_,D_,U_=[],O_=[],F_=1e-6,I_=1e-12;Ns.prototype={constructor:Ns,polygons:function(){var t=this.edges;return this.cells.map(function(n){var e=n.halfedges.map(function(e){return ds(n,t[e])});return e.data=n.site.data,e})},triangles:function(){var t=[],n=this.edges;return this.cells.forEach(function(e,r){if(o=(i=e.halfedges).length)for(var i,o,u,a=e.site,c=-1,s=n[i[o-1]],f=s.left===a?s.right:s.left;++c=a)return null;var c=t-i.site[0],s=n-i.site[1],f=c*c+s*s;do{i=o.cells[r=u],u=null,i.halfedges.forEach(function(e){var r=o.edges[e],a=r.left;if(a!==i.site&&a||(a=r.right)){var c=t-a[0],s=n-a[1],l=c*c+s*s;lt?1:n>=t?0:NaN},t.deviation=u,t.extent=a,t.histogram=function(){function t(t){var i,o,u=t.length,a=new Array(u);for(i=0;il;)h.pop(),--d;var v,g=new Array(d+1);for(i=0;i<=d;++i)(v=g[i]=[]).x0=i>0?h[i-1]:s,v.x1=i=e)for(r=e;++or&&(r=e)}else for(;++o=e)for(r=e;++or&&(r=e);return r},t.mean=function(t,n){var e,r=t.length,o=r,u=-1,a=0;if(null==n)for(;++u=o.length)return null!=e&&n.sort(e),null!=r?r(n):n;for(var c,s,f,l=-1,h=n.length,p=o[i++],d=se(),v=u();++lo.length)return t;var i,a=u[e-1];return null!=r&&e>=o.length?i=t.entries():(i=[],t.each(function(t,r){i.push({key:r,values:n(t,e)})})),null!=a?i.sort(function(t,n){return a(t.key,n.key)}):i}var e,r,i,o=[],u=[];return i={object:function(n){return t(n,0,fe,le)},map:function(n){return t(n,0,he,pe)},entries:function(e){return n(t(e,0,he,pe),0)},key:function(t){return o.push(t),i},sortKeys:function(t){return u[o.length-1]=t,i},sortValues:function(t){return e=t,i},rollup:function(t){return r=t,i}}},t.set=ve,t.map=se,t.keys=function(t){var n=[];for(var e in t)n.push(e);return n},t.values=function(t){var n=[];for(var e in t)n.push(t[e]);return n},t.entries=function(t){var n=[];for(var e in t)n.push({key:e,value:t[e]});return n},t.color=Et,t.rgb=Pt,t.hsl=qt,t.lab=Ft,t.hcl=Xt,t.cubehelix=$t,t.dispatch=N,t.drag=function(){function n(t){t.on("mousedown.drag",e).filter(g).on("touchstart.drag",o).on("touchmove.drag",u).on("touchend.drag touchcancel.drag",a).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function e(){if(!h&&p.apply(this,arguments)){var n=c("mouse",d.apply(this,arguments),pt,this,arguments);n&&(ct(t.event.view).on("mousemove.drag",r,!0).on("mouseup.drag",i,!0),_t(t.event.view),vt(),l=!1,s=t.event.clientX,f=t.event.clientY,n("start"))}}function r(){if(gt(),!l){var n=t.event.clientX-s,e=t.event.clientY-f;l=n*n+e*e>x}_.mouse("drag")}function i(){ct(t.event.view).on("mousemove.drag mouseup.drag",null),yt(t.event.view,l),gt(),_.mouse("end")}function o(){if(p.apply(this,arguments)){var n,e,r=t.event.changedTouches,i=d.apply(this,arguments),o=r.length;for(n=0;nc+p||is+p||or.index){var d=c-a.x-a.vx,v=s-a.y-a.vy,g=d*d+v*v;gt.r&&(t.r=t[n].r)}function r(){if(i){var n,e,r=i.length;for(o=new Array(r),n=0;n=f)){(t.data!==o||t.next)&&(0===i&&(i=me(),p+=i*i),0===c&&(c=me(),p+=c*c),p1?(null==n?l.remove(t):l.set(t,i(n)),o):l.get(t)},find:function(n,e,r){var i,o,u,a,c,s=0,f=t.length;for(null==r?r=1/0:r*=r,s=0;s1?(p.on(t,n),o):p.on(t)}}},t.forceX=function(t){function n(t){for(var n,e=0,u=r.length;emr(r[0],r[1])&&(r[1]=i[1]),mr(i[0],r[1])>mr(r[0],r[1])&&(r[0]=i[0])):o.push(r=i);for(u=-1/0,n=0,r=o[e=o.length-1];n<=e;r=i,++n)i=o[n],(a=mr(r[1],i[0]))>u&&(u=a,Gh=i[0],Jh=r[1])}return ip=op=null,Gh===1/0||Qh===1/0?[[NaN,NaN],[NaN,NaN]]:[[Gh,Qh],[Jh,Kh]]},t.geoCentroid=function(t){up=ap=cp=sp=fp=lp=hp=pp=dp=vp=gp=0,tr(t,Gp);var n=dp,e=vp,r=gp,i=n*n+e*e+r*r;return i=.12&&i<.234&&r>=-.425&&r<-.214?s:i>=.166&&i<.234&&r>=-.214&&r<-.115?f:c).invert(t)},t.stream=function(t){return e&&r===t?e:e=function(t){var n=t.length;return{point:function(e,r){for(var i=-1;++i2?t[2]+90:90]):(t=e(),[t[0],t[1],t[2]-90])},e([0,0,90]).scale(159.155)},t.geoTransverseMercatorRaw=oo,t.geoRotation=Fr,t.geoStream=tr,t.geoTransform=function(t){return{stream:Pi(t)}},t.cluster=function(){function t(t){var o,u=0;t.eachAfter(function(t){var e=t.children;e?(t.x=function(t){return t.reduce(ao,0)/t.length}(e),t.y=function(t){return 1+t.reduce(co,0)}(e)):(t.x=o?u+=n(t,o):0,t.y=0,o=t)});var a=function(t){for(var n;n=t.children;)t=n[0];return t}(t),c=function(t){for(var n;n=t.children;)t=n[n.length-1];return t}(t),s=a.x-n(a,c)/2,f=c.x+n(c,a)/2;return t.eachAfter(i?function(n){n.x=(n.x-t.x)*e,n.y=(t.y-n.y)*r}:function(n){n.x=(n.x-s)/(f-s)*e,n.y=(1-(t.y?n.y/t.y:1))*r})}var n=uo,e=1,r=1,i=!1;return t.separation=function(e){return arguments.length?(n=e,t):n},t.size=function(n){return arguments.length?(i=!1,e=+n[0],r=+n[1],t):i?null:[e,r]},t.nodeSize=function(n){return arguments.length?(i=!0,e=+n[0],r=+n[1],t):i?[e,r]:null},t},t.hierarchy=fo,t.pack=function(){function t(t){return t.x=e/2,t.y=r/2,n?t.eachBefore(zo(n)).eachAfter(Po(i,.5)).eachBefore(Ro(1)):t.eachBefore(zo(Co)).eachAfter(Po(Eo,1)).eachAfter(Po(i,t.r/Math.min(e,r))).eachBefore(Ro(Math.min(e,r)/(2*t.r))),t}var n=null,e=1,r=1,i=Eo;return t.radius=function(e){return arguments.length?(n=function(t){return null==t?null:So(t)}(e),t):n},t.size=function(n){return arguments.length?(e=+n[0],r=+n[1],t):[e,r]},t.padding=function(n){return arguments.length?(i="function"==typeof n?n:Ao(+n),t):i},t},t.packSiblings=function(t){return ko(t),t},t.packEnclose=go,t.partition=function(){function t(t){var o=t.height+1;return t.x0=t.y0=r,t.x1=n,t.y1=e/o,t.eachBefore(function(t,n){return function(e){e.children&&qo(e,e.x0,t*(e.depth+1)/n,e.x1,t*(e.depth+2)/n);var i=e.x0,o=e.y0,u=e.x1-r,a=e.y1-r;u0)throw new Error("cycle");return o}var n=Do,e=Uo;return t.id=function(e){return arguments.length?(n=So(e),t):n},t.parentId=function(n){return arguments.length?(e=So(n),t):e},t},t.tree=function(){function t(t){var c=function(t){for(var n,e,r,i,o,u=new Ho(t,0),a=[u];n=a.pop();)if(r=n._.children)for(n.children=new Array(o=r.length),i=o-1;i>=0;--i)a.push(e=n.children[i]=new Ho(r[i],i)),e.parent=n;return(u.parent=new Ho(null,0)).children=[u],u}(t);if(c.eachAfter(n),c.parent.m=-c.z,c.eachBefore(e),a)t.eachBefore(r);else{var s=t,f=t,l=t;t.eachBefore(function(t){t.xf.x&&(f=t),t.depth>l.depth&&(l=t)});var h=s===f?1:i(s,f)/2,p=h-s.x,d=o/(f.x+h+p),v=u/(l.depth||1);t.eachBefore(function(t){t.x=(t.x+p)*d,t.y=t.depth*v})}return t}function n(t){var n=t.children,e=t.parent.children,r=t.i?e[t.i-1]:null;if(n){(function(t){for(var n,e=0,r=0,i=t.children,o=i.length;--o>=0;)(n=i[o]).z+=e,n.m+=e,e+=n.s+(r+=n.c)})(t);var o=(n[0].z+n[n.length-1].z)/2;r?(t.z=r.z+i(t._,r._),t.m=t.z-o):t.z=o}else r&&(t.z=r.z+i(t._,r._));t.parent.A=function(t,n,e){if(n){for(var r,o=t,u=t,a=n,c=o.parent.children[0],s=o.m,f=u.m,l=a.m,h=c.m;a=Io(a),o=Fo(o),a&&o;)c=Fo(c),(u=Io(u)).a=t,(r=a.z+l-o.z-s+i(a._,o._))>0&&(Yo(Bo(a,t,e),t,r),s+=r,f+=r),l+=a.m,s+=o.m,h+=c.m,f+=u.m;a&&!Io(u)&&(u.t=a,u.m+=l-f),o&&!Fo(c)&&(c.t=o,c.m+=s-h,e=t)}return e}(t,r,t.parent.A||e[0])}function e(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function r(t){t.x*=o,t.y=t.depth*u}var i=Oo,o=1,u=1,a=null;return t.separation=function(n){return arguments.length?(i=n,t):i},t.size=function(n){return arguments.length?(a=!1,o=+n[0],u=+n[1],t):a?null:[o,u]},t.nodeSize=function(n){return arguments.length?(a=!0,o=+n[0],u=+n[1],t):a?[o,u]:null},t},t.treemap=function(){function t(t){return t.x0=t.y0=0,t.x1=i,t.y1=o,t.eachBefore(n),u=[0],r&&t.eachBefore(Lo),t}function n(t){var n=u[t.depth],r=t.x0+n,i=t.y0+n,o=t.x1-n,h=t.y1-n;o=n-1){var s=c[t];return s.x0=r,s.y0=i,s.x1=u,void(s.y1=a)}for(var l=f[t],h=e/2+l,p=t+1,d=n-1;p>>1;f[v]a-i){var y=(r*_+u*g)/e;o(t,p,g,r,i,y,a),o(p,n,_,y,i,u,a)}else{var m=(i*_+a*g)/e;o(t,p,g,r,i,u,m),o(p,n,_,r,m,u,a)}}var u,a,c=t.children,s=c.length,f=new Array(s+1);for(f[0]=a=u=0;u=0;--n)s.push(t[r[o[n]][2]]);for(n=+a;na!=s>a&&u<(c-e)*(a-r)/(s-r)+e&&(f=!f),c=e,s=r;return f},t.polygonLength=function(t){for(var n,e,r=-1,i=t.length,o=t[i-1],u=o[0],a=o[1],c=0;++r1)&&(t-=Math.floor(t));var n=Math.abs(t-.5);return jg.h=360*t-100,jg.s=1.5-1.5*n,jg.l=.8-.9*n,jg+""},t.interpolateWarm=Bg,t.interpolateCool=Hg,t.interpolateViridis=Xg,t.interpolateMagma=Vg,t.interpolateInferno=$g,t.interpolatePlasma=Wg,t.scaleSequential=Za,t.create=function(t){return ct(A(t).call(document.documentElement))},t.creator=A,t.local=st,t.matcher=of,t.mouse=pt,t.namespace=E,t.namespaces=tf,t.clientPoint=ht,t.select=ct,t.selectAll=function(t){return"string"==typeof t?new ut([document.querySelectorAll(t)],[document.documentElement]):new ut([null==t?[]:t],cf)},t.selection=at,t.selector=z,t.selectorAll=R,t.style=I,t.touch=dt,t.touches=function(t,n){null==n&&(n=lt().touches);for(var e=0,r=n?n.length:0,i=new Array(r);eh;if(c||(c=t=ee()),le_)if(d>o_-e_)c.moveTo(l*Qg(h),l*t_(h)),c.arc(0,0,l,h,p,!v),f>e_&&(c.moveTo(f*Qg(p),f*t_(p)),c.arc(0,0,f,p,h,v));else{var g,_,y=h,m=p,x=h,b=p,w=d,M=d,T=a.apply(this,arguments)/2,N=T>e_&&(i?+i.apply(this,arguments):n_(f*f+l*l)),k=Kg(Zg(l-f)/2,+r.apply(this,arguments)),S=k,E=k;if(N>e_){var A=Qa(N/f*t_(T)),C=Qa(N/l*t_(T));(w-=2*A)>e_?(A*=v?1:-1,x+=A,b-=A):(w=0,x=b=(h+p)/2),(M-=2*C)>e_?(C*=v?1:-1,y+=C,m-=C):(M=0,y=m=(h+p)/2)}var z=l*Qg(y),P=l*t_(y),R=f*Qg(b),L=f*t_(b);if(k>e_){var q=l*Qg(m),D=l*t_(m),U=f*Qg(x),O=f*t_(x);if(de_?function(t,n,e,r,i,o,u,a){var c=e-t,s=r-n,f=u-i,l=a-o,h=(f*(n-o)-l*(t-i))/(l*c-f*s);return[t+h*c,n+h*s]}(z,P,U,O,q,D,R,L):[R,L],I=z-F[0],Y=P-F[1],B=q-F[0],H=D-F[1],j=1/t_(function(t){return t>1?0:t<-1?r_:Math.acos(t)}((I*B+Y*H)/(n_(I*I+Y*Y)*n_(B*B+H*H)))/2),X=n_(F[0]*F[0]+F[1]*F[1]);S=Kg(k,(f-X)/(j-1)),E=Kg(k,(l-X)/(j+1))}}M>e_?E>e_?(g=rc(U,O,z,P,l,E,v),_=rc(q,D,R,L,l,E,v),c.moveTo(g.cx+g.x01,g.cy+g.y01),Ee_&&w>e_?S>e_?(g=rc(R,L,q,D,f,-S,v),_=rc(z,P,U,O,f,-S,v),c.lineTo(g.cx+g.x01,g.cy+g.y01),S0&&(p+=l);for(null!=e?d.sort(function(t,n){return e(v[t],v[n])}):null!=r&&d.sort(function(n,e){return r(t[n],t[e])}),a=0,s=p?(_-h*m)/p:0;a0?l*s:0)+m,v[c]={data:t[c],index:a,value:l,startAngle:g,endAngle:f,padAngle:y};return v}var n=lc,e=fc,r=null,i=Ga(0),o=Ga(o_),u=Ga(0);return t.value=function(e){return arguments.length?(n="function"==typeof e?e:Ga(+e),t):n},t.sortValues=function(n){return arguments.length?(e=n,r=null,t):e},t.sort=function(n){return arguments.length?(r=n,e=null,t):r},t.startAngle=function(n){return arguments.length?(i="function"==typeof n?n:Ga(+n),t):i},t.endAngle=function(n){return arguments.length?(o="function"==typeof n?n:Ga(+n),t):o},t.padAngle=function(n){return arguments.length?(u="function"==typeof n?n:Ga(+n),t):u},t},t.areaRadial=gc,t.radialArea=gc,t.lineRadial=vc,t.radialLine=vc,t.pointRadial=_c,t.linkHorizontal=function(){return xc(bc)},t.linkVertical=function(){return xc(wc)},t.linkRadial=function(){var t=xc(Mc);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t},t.symbol=function(){function t(){var t;if(r||(r=t=ee()),n.apply(this,arguments).draw(r,+e.apply(this,arguments)),t)return r=null,t+""||null}var n=Ga(c_),e=Ga(64),r=null;return t.type=function(e){return arguments.length?(n="function"==typeof e?e:Ga(e),t):n},t.size=function(n){return arguments.length?(e="function"==typeof n?n:Ga(+n),t):e},t.context=function(n){return arguments.length?(r=null==n?null:n,t):r},t},t.symbols=T_,t.symbolCircle=c_,t.symbolCross=s_,t.symbolDiamond=h_,t.symbolSquare=__,t.symbolStar=g_,t.symbolTriangle=m_,t.symbolWye=M_,t.curveBasisClosed=function(t){return new Sc(t)},t.curveBasisOpen=function(t){return new Ec(t)},t.curveBasis=function(t){return new kc(t)},t.curveBundle=N_,t.curveCardinalClosed=S_,t.curveCardinalOpen=E_,t.curveCardinal=k_,t.curveCatmullRomClosed=C_,t.curveCatmullRomOpen=z_,t.curveCatmullRom=A_,t.curveLinearClosed=function(t){return new Oc(t)},t.curveLinear=oc,t.curveMonotoneX=function(t){return new Hc(t)},t.curveMonotoneY=function(t){return new jc(t)},t.curveNatural=function(t){return new Vc(t)},t.curveStep=function(t){return new Wc(t,.5)},t.curveStepAfter=function(t){return new Wc(t,1)},t.curveStepBefore=function(t){return new Wc(t,0)},t.stack=function(){function t(t){var o,u,a=n.apply(this,arguments),c=t.length,s=a.length,f=new Array(s);for(o=0;o0){for(var e,r,i,o=0,u=t[0].length;o1)for(var e,r,i,o,u,a,c=0,s=t[n[0]].length;c=0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=u,r[0]=u+=i):r[0]=o},t.stackOffsetNone=Zc,t.stackOffsetSilhouette=function(t,n){if((e=t.length)>0){for(var e,r=0,i=t[n[0]],o=i.length;r0&&(r=(e=t[n[0]]).length)>0){for(var e,r,i,o=0,u=1;uxl&&e.name===n)return new qn([[t]],Jl,n,+r)}return null},t.interrupt=Pn,t.voronoi=function(){function t(t){return new Ns(t.map(function(r,i){var o=[Math.round(n(r,i,t)/F_)*F_,Math.round(e(r,i,t)/F_)*F_];return o.index=i,o.data=r,o}),r)}var n=ns,e=es,r=null;return t.polygons=function(n){return t(n).polygons()},t.links=function(n){return t(n).links()},t.triangles=function(n){return t(n).triangles()},t.x=function(e){return arguments.length?(n="function"==typeof e?e:ts(+e),t):n},t.y=function(n){return arguments.length?(e="function"==typeof n?n:ts(+n),t):e},t.extent=function(n){return arguments.length?(r=null==n?null:[[+n[0][0],+n[0][1]],[+n[1][0],+n[1][1]]],t):r&&[[r[0][0],r[0][1]],[r[1][0],r[1][1]]]},t.size=function(n){return arguments.length?(r=null==n?null:[[0,0],[+n[0],+n[1]]],t):r&&[r[1][0]-r[0][0],r[1][1]-r[0][1]]},t},t.zoom=function(){function n(t){t.property("__zoom",Rs).on("wheel.zoom",c).on("mousedown.zoom",s).on("dblclick.zoom",f).filter(x).on("touchstart.zoom",l).on("touchmove.zoom",h).on("touchend.zoom touchcancel.zoom",p).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function e(t,n){return(n=Math.max(b[0],Math.min(b[1],n)))===t.k?t:new Ss(n,t.x,t.y)}function r(t,n,e){var r=n[0]-e[0]*t.k,i=n[1]-e[1]*t.k;return r===t.x&&i===t.y?t:new Ss(t.k,r,i)}function i(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function o(t,n,e){t.on("start.zoom",function(){u(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){u(this,arguments).end()}).tween("zoom",function(){var t=arguments,r=u(this,t),o=_.apply(this,t),a=e||i(o),c=Math.max(o[1][0]-o[0][0],o[1][1]-o[0][1]),s=this.__zoom,f="function"==typeof n?n.apply(this,t):n,l=T(s.invert(a).concat(c/s.k),f.invert(a).concat(c/f.k));return function(t){if(1===t)t=f;else{var n=l(t),e=c/n[2];t=new Ss(e,a[0]-n[0]*e,a[1]-n[1]*e)}r.zoom(null,t)}})}function u(t,n){for(var e,r=0,i=k.length;rC}n.zoom("mouse",y(r(n.that.__zoom,n.mouse[0]=pt(n.that),n.mouse[1]),n.extent,w))},!0).on("mouseup.zoom",function(){e.on("mousemove.zoom mouseup.zoom",null),yt(t.event.view,n.moved),Cs(),n.end()},!0),i=pt(this),o=t.event.clientX,a=t.event.clientY;_t(t.event.view),As(),n.mouse=[i,this.__zoom.invert(i)],Pn(this),n.start()}}function f(){if(g.apply(this,arguments)){var i=this.__zoom,u=pt(this),a=i.invert(u),c=i.k*(t.event.shiftKey?.5:2),s=y(r(e(i,c),u,a),_.apply(this,arguments),w);Cs(),M>0?ct(this).transition().duration(M).call(o,s,u):ct(this).call(n.transform,s)}}function l(){if(g.apply(this,arguments)){var n,e,r,i,o=u(this,arguments),a=t.event.changedTouches,c=a.length;for(As(),e=0;en?1:t>=n?0:NaN}function e(t){let e=t,r=t;function i(t,n,e,i){for(null==e&&(e=0),null==i&&(i=t.length);e>>1;r(t[o],n)<0?e=o+1:i=o}return e}return 1===t.length&&(e=(n,e)=>t(n)-e,r=function(t){return(e,r)=>n(t(e),r)}(t)),{left:i,center:function(t,n,r,o){null==r&&(r=0),null==o&&(o=t.length);const a=i(t,n,r,o-1);return a>r&&e(t[a-1],n)>-e(t[a],n)?a-1:a},right:function(t,n,e,i){for(null==e&&(e=0),null==i&&(i=t.length);e>>1;r(t[o],n)>0?i=o:e=o+1}return e}}}function r(t){return null===t?NaN:+t}const i=e(n),o=i.right,a=i.left,u=e(r).center;function c(t,n){let e=0;if(void 0===n)for(let n of t)null!=n&&(n=+n)>=n&&++e;else{let r=-1;for(let i of t)null!=(i=n(i,++r,t))&&(i=+i)>=i&&++e}return e}function f(t){return 0|t.length}function s(t){return!(t>0)}function l(t){return"object"!=typeof t||"length"in t?t:Array.from(t)}function h(t,n){let e,r=0,i=0,o=0;if(void 0===n)for(let n of t)null!=n&&(n=+n)>=n&&(e=n-i,i+=e/++r,o+=e*(n-i));else{let a=-1;for(let u of t)null!=(u=n(u,++a,t))&&(u=+u)>=u&&(e=u-i,i+=e/++r,o+=e*(u-i))}if(r>1)return o/(r-1)}function d(t,n){const e=h(t,n);return e?Math.sqrt(e):e}function p(t,n){let e,r;if(void 0===n)for(const n of t)null!=n&&(void 0===e?n>=n&&(e=r=n):(e>n&&(e=n),r=o&&(e=r=o):(e>o&&(e=o),r0){for(o=t[--i];i>0&&(n=o,e=t[--i],o=n+e,r=e-(o-n),!r););i>0&&(r<0&&t[i-1]<0||r>0&&t[i-1]>0)&&(e=2*r,n=o+e,e==n-o&&(o=n))}return o}}function y(t){return t}function v(t){if(1!==t.length)throw new Error("duplicate key");return t[0]}function _(t,n,e,r){return function t(i,o){if(o>=r.length)return e(i);const a=new Map,u=r[o++];let c=-1;for(const t of i){const n=u(t,++c,i),e=a.get(n);e?e.push(t):a.set(n,[t])}for(const[n,e]of a)a.set(n,t(e,o));return n(a)}(t,0)}var b=Array.prototype.slice;function m(t){return function(){return t}}var x=Math.sqrt(50),w=Math.sqrt(10),M=Math.sqrt(2);function A(t,n,e){var r,i,o,a,u=-1;if(e=+e,(t=+t)===(n=+n)&&e>0)return[t];if((r=n0)for(t=Math.ceil(t/a),n=Math.floor(n/a),o=new Array(i=Math.ceil(n-t+1));++u=0?(o>=x?10:o>=w?5:o>=M?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=x?10:o>=w?5:o>=M?2:1)}function S(t,n,e){var r=Math.abs(n-t)/Math.max(0,e),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=x?i*=10:o>=w?i*=5:o>=M&&(i*=2),n0?(t=Math.floor(t/i)*i,n=Math.ceil(n/i)*i):i<0&&(t=Math.ceil(t*i)/i,n=Math.floor(n*i)/i),r=i}}function k(t){return Math.ceil(Math.log(c(t))/Math.LN2)+1}function N(){var t=y,n=p,e=k;function r(r){Array.isArray(r)||(r=Array.from(r));var i,a,u=r.length,c=new Array(u);for(i=0;il;)h.pop(),--d;var g,y=new Array(d+1);for(i=0;i<=d;++i)(g=y[i]=[]).x0=i>0?h[i-1]:s,g.x1=i=n)&&(e=n);else{let r=-1;for(let i of t)null!=(i=n(i,++r,t))&&(e=i)&&(e=i)}return e}function P(t,n){let e;if(void 0===n)for(const n of t)null!=n&&(e>n||void 0===e&&n>=n)&&(e=n);else{let r=-1;for(let i of t)null!=(i=n(i,++r,t))&&(e>i||void 0===e&&i>=i)&&(e=i)}return e}function z(t,e,r=0,i=t.length-1,o=n){for(;i>r;){if(i-r>600){const n=i-r+1,a=e-r+1,u=Math.log(n),c=.5*Math.exp(2*u/3),f=.5*Math.sqrt(u*c*(n-c)/n)*(a-n/2<0?-1:1);z(t,e,Math.max(r,Math.floor(e-a*c/n+f)),Math.min(i,Math.floor(e+(n-a)*c/n+f)),o)}const n=t[e];let a=r,u=i;for(D(t,r,e),o(t[i],n)>0&&D(t,r,i);a0;)--u}0===o(t[r],n)?D(t,r,u):(++u,D(t,u,i)),u<=e&&(r=u+1),e<=u&&(i=u-1)}return t}function D(t,n,e){const r=t[n];t[n]=t[e],t[e]=r}function q(t,n,e){if(r=(t=Float64Array.from(function*(t,n){if(void 0===n)for(let n of t)null!=n&&(n=+n)>=n&&(yield n);else{let e=-1;for(let r of t)null!=(r=n(r,++e,t))&&(r=+r)>=r&&(yield r)}}(t,e))).length){if((n=+n)<=0||r<2)return P(t);if(n>=1)return C(t);var r,i=(r-1)*n,o=Math.floor(i),a=C(z(t,o).subarray(0,o+1));return a+(P(t.subarray(o+1))-a)*(i-o)}}function R(t,n,e=r){if(i=t.length){if((n=+n)<=0||i<2)return+e(t[0],0,t);if(n>=1)return+e(t[i-1],i-1,t);var i,o=(i-1)*n,a=Math.floor(o),u=+e(t[a],a,t);return u+(+e(t[a+1],a+1,t)-u)*(o-a)}}function F(t,n){let e,r=-1,i=-1;if(void 0===n)for(const n of t)++i,null!=n&&(e=n)&&(e=n,r=i);else for(let o of t)null!=(o=n(o,++i,t))&&(e=o)&&(e=o,r=i);return r}function O(t){return Array.from(function*(t){for(const n of t)yield*n}(t))}function U(t,n){let e,r=-1,i=-1;if(void 0===n)for(const n of t)++i,null!=n&&(e>n||void 0===e&&n>=n)&&(e=n,r=i);else for(let o of t)null!=(o=n(o,++i,t))&&(e>o||void 0===e&&o>=o)&&(e=o,r=i);return r}function I(t,n){return[t,n]}function B(t,n,e){t=+t,n=+n,e=(i=arguments.length)<2?(n=t,t=0,1):i<3?1:+e;for(var r=-1,i=0|Math.max(0,Math.ceil((n-t)/e)),o=new Array(i);++r+t(n)}function tt(t){var n=Math.max(0,t.bandwidth()-1)/2;return t.round()&&(n=Math.round(n)),function(e){return+t(e)+n}}function nt(){return!this.__axis}function et(t,n){var e=[],r=null,i=null,o=6,a=6,u=3,c=1===t||4===t?-1:1,f=4===t||2===t?"x":"y",s=1===t||3===t?K:Q;function l(l){var h=null==r?n.ticks?n.ticks.apply(n,e):n.domain():r,d=null==i?n.tickFormat?n.tickFormat.apply(n,e):W:i,p=Math.max(o,0)+u,g=n.range(),y=+g[0]+.5,v=+g[g.length-1]+.5,_=(n.bandwidth?tt:J)(n.copy()),b=l.selection?l.selection():l,m=b.selectAll(".domain").data([null]),x=b.selectAll(".tick").data(h,n).order(),w=x.exit(),M=x.enter().append("g").attr("class","tick"),A=x.select("line"),T=x.select("text");m=m.merge(m.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),x=x.merge(M),A=A.merge(M.append("line").attr("stroke","currentColor").attr(f+"2",c*o)),T=T.merge(M.append("text").attr("fill","currentColor").attr(f,c*p).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),l!==b&&(m=m.transition(l),x=x.transition(l),A=A.transition(l),T=T.transition(l),w=w.transition(l).attr("opacity",Z).attr("transform",(function(t){return isFinite(t=_(t))?s(t):this.getAttribute("transform")})),M.attr("opacity",Z).attr("transform",(function(t){var n=this.parentNode.__axis;return s(n&&isFinite(n=n(t))?n:_(t))}))),w.remove(),m.attr("d",4===t||2==t?a?"M"+c*a+","+y+"H0.5V"+v+"H"+c*a:"M0.5,"+y+"V"+v:a?"M"+y+","+c*a+"V0.5H"+v+"V"+c*a:"M"+y+",0.5H"+v),x.attr("opacity",1).attr("transform",(function(t){return s(_(t))})),A.attr(f+"2",c*o),T.attr(f,c*p).text(d),b.filter(nt).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),b.each((function(){this.__axis=_}))}return l.scale=function(t){return arguments.length?(n=t,l):n},l.ticks=function(){return e=$.call(arguments),l},l.tickArguments=function(t){return arguments.length?(e=null==t?[]:$.call(t),l):e.slice()},l.tickValues=function(t){return arguments.length?(r=null==t?null:$.call(t),l):r&&r.slice()},l.tickFormat=function(t){return arguments.length?(i=t,l):i},l.tickSize=function(t){return arguments.length?(o=a=+t,l):o},l.tickSizeInner=function(t){return arguments.length?(o=+t,l):o},l.tickSizeOuter=function(t){return arguments.length?(a=+t,l):a},l.tickPadding=function(t){return arguments.length?(u=+t,l):u},l}var rt={value:()=>{}};function it(){for(var t,n=0,e=arguments.length,r={};n=0&&(e=t.slice(r+1),t=t.slice(0,r)),t&&!n.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))}function ut(t,n){for(var e,r=0,i=t.length;r0)for(var e,r,i=new Array(e),o=0;o=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),st.hasOwnProperty(n)?{space:st[n],local:t}:t}function ht(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===ft&&n.documentElement.namespaceURI===ft?n.createElement(t):n.createElementNS(e,t)}}function dt(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function pt(t){var n=lt(t);return(n.local?dt:ht)(n)}function gt(){}function yt(t){return null==t?gt:function(){return this.querySelector(t)}}function vt(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function _t(){return[]}function bt(t){return null==t?_t:function(){return this.querySelectorAll(t)}}function mt(t){return function(){return this.matches(t)}}function xt(t){return function(n){return n.matches(t)}}var wt=Array.prototype.find;function Mt(){return this.firstElementChild}var At=Array.prototype.filter;function Tt(){return this.children}function St(t){return new Array(t.length)}function Et(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function kt(t){return function(){return t}}function Nt(t,n,e,r,i,o){for(var a,u=0,c=n.length,f=o.length;un?1:t>=n?0:NaN}function Dt(t){return function(){this.removeAttribute(t)}}function qt(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Rt(t,n){return function(){this.setAttribute(t,n)}}function Ft(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function Ot(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function Ut(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function It(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Bt(t){return function(){this.style.removeProperty(t)}}function Yt(t,n,e){return function(){this.style.setProperty(t,n,e)}}function Lt(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function jt(t,n){return t.style.getPropertyValue(n)||It(t).getComputedStyle(t,null).getPropertyValue(n)}function Ht(t){return function(){delete this[t]}}function Xt(t,n){return function(){this[t]=n}}function Gt(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function Vt(t){return t.trim().split(/^|\s+/)}function $t(t){return t.classList||new Wt(t)}function Wt(t){this._node=t,this._names=Vt(t.getAttribute("class")||"")}function Zt(t,n){for(var e=$t(t),r=-1,i=n.length;++r=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}}))}function gn(t){return function(){var n=this.__on;if(n){for(var e,r=0,i=-1,o=n.length;r=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var mn=[null];function xn(t,n){this._groups=t,this._parents=n}function wn(){return new xn([[document.documentElement]],mn)}function Mn(t){return"string"==typeof t?new xn([[document.querySelector(t)]],[document.documentElement]):new xn([[t]],mn)}xn.prototype=wn.prototype={constructor:xn,select:function(t){"function"!=typeof t&&(t=yt(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i=x&&(x=m+1);!(b=y[x])&&++x=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=zt);for(var e=this._groups,r=e.length,i=new Array(r),o=0;o1?this.each((null==n?Bt:"function"==typeof n?Lt:Yt)(t,n,null==e?"":e)):jt(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?Ht:"function"==typeof n?Gt:Xt)(t,n)):this.node()[t]},classed:function(t,n){var e=Vt(t+"");if(arguments.length<2){for(var r=$t(this.node()),i=-1,o=e.length;++i()=>t;function qn(t,{sourceEvent:n,subject:e,target:r,identifier:i,active:o,x:a,y:u,dx:c,dy:f,dispatch:s}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},subject:{value:e,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:o,enumerable:!0,configurable:!0},x:{value:a,enumerable:!0,configurable:!0},y:{value:u,enumerable:!0,configurable:!0},dx:{value:c,enumerable:!0,configurable:!0},dy:{value:f,enumerable:!0,configurable:!0},_:{value:s}})}function Rn(t){return!t.ctrlKey&&!t.button}function Fn(){return this.parentNode}function On(t,n){return null==n?{x:t.x,y:t.y}:n}function Un(){return navigator.maxTouchPoints||"ontouchstart"in this}function In(t,n,e){t.prototype=n.prototype=e,e.constructor=t}function Bn(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function Yn(){}qn.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var Ln=.7,jn=1/Ln,Hn="\\s*([+-]?\\d+)\\s*",Xn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Gn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Vn=/^#([0-9a-f]{3,8})$/,$n=new RegExp("^rgb\\("+[Hn,Hn,Hn]+"\\)$"),Wn=new RegExp("^rgb\\("+[Gn,Gn,Gn]+"\\)$"),Zn=new RegExp("^rgba\\("+[Hn,Hn,Hn,Xn]+"\\)$"),Kn=new RegExp("^rgba\\("+[Gn,Gn,Gn,Xn]+"\\)$"),Qn=new RegExp("^hsl\\("+[Xn,Gn,Gn]+"\\)$"),Jn=new RegExp("^hsla\\("+[Xn,Gn,Gn,Xn]+"\\)$"),te={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function ne(){return this.rgb().formatHex()}function ee(){return this.rgb().formatRgb()}function re(t){var n,e;return t=(t+"").trim().toLowerCase(),(n=Vn.exec(t))?(e=n[1].length,n=parseInt(n[1],16),6===e?ie(n):3===e?new ce(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?oe(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?oe(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=$n.exec(t))?new ce(n[1],n[2],n[3],1):(n=Wn.exec(t))?new ce(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=Zn.exec(t))?oe(n[1],n[2],n[3],n[4]):(n=Kn.exec(t))?oe(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=Qn.exec(t))?he(n[1],n[2]/100,n[3]/100,1):(n=Jn.exec(t))?he(n[1],n[2]/100,n[3]/100,n[4]):te.hasOwnProperty(t)?ie(te[t]):"transparent"===t?new ce(NaN,NaN,NaN,0):null}function ie(t){return new ce(t>>16&255,t>>8&255,255&t,1)}function oe(t,n,e,r){return r<=0&&(t=n=e=NaN),new ce(t,n,e,r)}function ae(t){return t instanceof Yn||(t=re(t)),t?new ce((t=t.rgb()).r,t.g,t.b,t.opacity):new ce}function ue(t,n,e,r){return 1===arguments.length?ae(t):new ce(t,n,e,null==r?1:r)}function ce(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function fe(){return"#"+le(this.r)+le(this.g)+le(this.b)}function se(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function le(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function he(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new ge(t,n,e,r)}function de(t){if(t instanceof ge)return new ge(t.h,t.s,t.l,t.opacity);if(t instanceof Yn||(t=re(t)),!t)return new ge;if(t instanceof ge)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),o=Math.max(n,e,r),a=NaN,u=o-i,c=(o+i)/2;return u?(a=n===o?(e-r)/u+6*(e0&&c<1?0:a,new ge(a,u,c,t.opacity)}function pe(t,n,e,r){return 1===arguments.length?de(t):new ge(t,n,e,null==r?1:r)}function ge(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function ye(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}In(Yn,re,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:ne,formatHex:ne,formatHsl:function(){return de(this).formatHsl()},formatRgb:ee,toString:ee}),In(ce,ue,Bn(Yn,{brighter:function(t){return t=null==t?jn:Math.pow(jn,t),new ce(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?Ln:Math.pow(Ln,t),new ce(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:fe,formatHex:fe,formatRgb:se,toString:se})),In(ge,pe,Bn(Yn,{brighter:function(t){return t=null==t?jn:Math.pow(jn,t),new ge(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Ln:Math.pow(Ln,t),new ge(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new ce(ye(t>=240?t-240:t+120,i,r),ye(t,i,r),ye(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));const ve=Math.PI/180,_e=180/Math.PI,be=.96422,me=.82521,xe=4/29,we=6/29,Me=3*we*we;function Ae(t){if(t instanceof Se)return new Se(t.l,t.a,t.b,t.opacity);if(t instanceof De)return qe(t);t instanceof ce||(t=ae(t));var n,e,r=Ce(t.r),i=Ce(t.g),o=Ce(t.b),a=Ee((.2225045*r+.7168786*i+.0606169*o)/1);return r===i&&i===o?n=e=a:(n=Ee((.4360747*r+.3850649*i+.1430804*o)/be),e=Ee((.0139322*r+.0971045*i+.7141733*o)/me)),new Se(116*a-16,500*(n-a),200*(a-e),t.opacity)}function Te(t,n,e,r){return 1===arguments.length?Ae(t):new Se(t,n,e,null==r?1:r)}function Se(t,n,e,r){this.l=+t,this.a=+n,this.b=+e,this.opacity=+r}function Ee(t){return t>.008856451679035631?Math.pow(t,1/3):t/Me+xe}function ke(t){return t>we?t*t*t:Me*(t-xe)}function Ne(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Ce(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Pe(t){if(t instanceof De)return new De(t.h,t.c,t.l,t.opacity);if(t instanceof Se||(t=Ae(t)),0===t.a&&0===t.b)return new De(NaN,0=1?(e=1,n-1):Math.floor(e*n),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,u=r()=>t;function Ze(t,n){return function(e){return t+e*n}}function Ke(t,n){var e=n-t;return e?Ze(t,e>180||e<-180?e-360*Math.round(e/360):e):We(isNaN(t)?n:t)}function Qe(t){return 1==(t=+t)?Je:function(n,e){return e-n?function(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}(n,e,t):We(isNaN(n)?e:n)}}function Je(t,n){var e=n-t;return e?Ze(t,e):We(isNaN(t)?n:t)}var tr=function t(n){var e=Qe(n);function r(t,n){var r=e((t=ue(t)).r,(n=ue(n)).r),i=e(t.g,n.g),o=e(t.b,n.b),a=Je(t.opacity,n.opacity);return function(n){return t.r=r(n),t.g=i(n),t.b=o(n),t.opacity=a(n),t+""}}return r.gamma=t,r}(1);function nr(t){return function(n){var e,r,i=n.length,o=new Array(i),a=new Array(i),u=new Array(i);for(e=0;eo&&(i=n.slice(o,i),u[a]?u[a]+=i:u[++a]=i),(e=e[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,c.push({i:a,x:cr(e,r)})),o=lr.lastIndex;return o180?n+=360:n-t>180&&(t+=360),o.push({i:e.push(i(e)+"rotate(",null,r)-2,x:cr(t,n)})):n&&e.push(i(e)+"rotate("+n+r)}(o.rotate,a.rotate,u,c),function(t,n,e,o){t!==n?o.push({i:e.push(i(e)+"skewX(",null,r)-2,x:cr(t,n)}):n&&e.push(i(e)+"skewX("+n+r)}(o.skewX,a.skewX,u,c),function(t,n,e,r,o,a){if(t!==e||n!==r){var u=o.push(i(o)+"scale(",null,",",null,")");a.push({i:u-4,x:cr(t,e)},{i:u-2,x:cr(n,r)})}else 1===e&&1===r||o.push(i(o)+"scale("+e+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,u,c),o=a=null,function(t){for(var n,e=-1,r=c.length;++e=0&&n._call.call(null,t),n=n._next;--Fr}function Wr(){Br=(Ir=Lr.now())+Yr,Fr=Or=0;try{$r()}finally{Fr=0,function(){var t,n,e=qr,r=1/0;for(;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:qr=n);Rr=t,Kr(r)}(),Br=0}}function Zr(){var t=Lr.now(),n=t-Ir;n>1e3&&(Yr-=n,Ir=t)}function Kr(t){Fr||(Or&&(Or=clearTimeout(Or)),t-Br>24?(t<1/0&&(Or=setTimeout(Wr,t-Lr.now()-Yr)),Ur&&(Ur=clearInterval(Ur))):(Ur||(Ir=Lr.now(),Ur=setInterval(Zr,1e3)),Fr=1,jr(Wr)))}function Qr(t,n,e){var r=new Gr;return n=null==n?0:+n,r.restart(e=>{r.stop(),t(e+n)},n,e),r}Gr.prototype=Vr.prototype={constructor:Gr,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?Hr():+e)+(null==n?0:+n),this._next||Rr===this||(Rr?Rr._next=this:qr=this,Rr=this),this._call=t,this._time=e,Kr()},stop:function(){this._call&&(this._call=null,this._time=1/0,Kr())}};var Jr=it("start","end","cancel","interrupt"),ti=[];function ni(t,n,e,r,i,o){var a=t.__transition;if(a){if(e in a)return}else t.__transition={};!function(t,n,e){var r,i=t.__transition;function o(t){e.state=1,e.timer.restart(a,e.delay,e.time),e.delay<=t&&a(t-e.delay)}function a(o){var f,s,l,h;if(1!==e.state)return c();for(f in i)if((h=i[f]).name===e.name){if(3===h.state)return Qr(a);4===h.state?(h.state=6,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[f]):+f0)throw new Error("too late; already scheduled");return e}function ri(t,n){var e=ii(t,n);if(e.state>3)throw new Error("too late; already running");return e}function ii(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}function oi(t,n){var e,r,i,o=t.__transition,a=!0;if(o){for(i in n=null==n?null:n+"",o)(e=o[i]).name===n?(r=e.state>2&&e.state<5,e.state=6,e.timer.stop(),e.on.call(r?"interrupt":"cancel",t,t.__data__,e.index,e.group),delete o[i]):a=!1;a&&delete t.__transition}}function ai(t,n){var e,r;return function(){var i=ri(this,t),o=i.tween;if(o!==e)for(var a=0,u=(r=e=o).length;a=0&&(t=t.slice(0,n)),!t||"start"===t}))}(n)?ei:ri;return function(){var a=o(this,t),u=a.on;u!==r&&(i=(r=u).copy()).on(n,e),a.on=i}}var Si=wn.prototype.constructor;function Ei(t){return function(){this.style.removeProperty(t)}}function ki(t,n,e){return function(r){this.style.setProperty(t,n.call(this,r),e)}}function Ni(t,n,e){var r,i;function o(){var o=n.apply(this,arguments);return o!==i&&(r=(i=o)&&ki(t,o,e)),r}return o._value=n,o}function Ci(t){return function(n){this.textContent=t.call(this,n)}}function Pi(t){var n,e;function r(){var r=t.apply(this,arguments);return r!==e&&(n=(e=r)&&Ci(r)),n}return r._value=t,r}var zi=0;function Di(t,n,e,r){this._groups=t,this._parents=n,this._name=e,this._id=r}function qi(t){return wn().transition(t)}function Ri(){return++zi}var Fi=wn.prototype;Di.prototype=qi.prototype={constructor:Di,select:function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=yt(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a()=>t;function fo(t,{sourceEvent:n,target:e,selection:r,mode:i,dispatch:o}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:e,enumerable:!0,configurable:!0},selection:{value:r,enumerable:!0,configurable:!0},mode:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function so(t){t.stopImmediatePropagation()}function lo(t){t.preventDefault(),t.stopImmediatePropagation()}var ho={name:"drag"},po={name:"space"},go={name:"handle"},yo={name:"center"};const{abs:vo,max:_o,min:bo}=Math;function mo(t){return[+t[0],+t[1]]}function xo(t){return[mo(t[0]),mo(t[1])]}var wo={name:"x",handles:["w","e"].map(Co),input:function(t,n){return null==t?null:[[+t[0],n[0][1]],[+t[1],n[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},Mo={name:"y",handles:["n","s"].map(Co),input:function(t,n){return null==t?null:[[n[0][0],+t[0]],[n[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},Ao={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(Co),input:function(t){return null==t?null:xo(t)},output:function(t){return t}},To={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},So={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},Eo={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},ko={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},No={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function Co(t){return{type:t}}function Po(t){return!t.ctrlKey&&!t.button}function zo(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function Do(){return navigator.maxTouchPoints||"ontouchstart"in this}function qo(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function Ro(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function Fo(t){var n,e=zo,r=Po,i=Do,o=!0,a=it("start","brush","end"),u=6;function c(n){var e=n.property("__brush",g).selectAll(".overlay").data([Co("overlay")]);e.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",To.overlay).merge(e).each((function(){var t=qo(this).extent;Mn(this).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1])})),n.selectAll(".selection").data([Co("selection")]).enter().append("rect").attr("class","selection").attr("cursor",To.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=n.selectAll(".handle").data(t.handles,(function(t){return t.type}));r.exit().remove(),r.enter().append("rect").attr("class",(function(t){return"handle handle--"+t.type})).attr("cursor",(function(t){return To[t.type]})),n.each(f).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",h).filter(i).on("touchstart.brush",h).on("touchmove.brush",d).on("touchend.brush touchcancel.brush",p).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function f(){var t=Mn(this),n=qo(this).selection;n?(t.selectAll(".selection").style("display",null).attr("x",n[0][0]).attr("y",n[0][1]).attr("width",n[1][0]-n[0][0]).attr("height",n[1][1]-n[0][1]),t.selectAll(".handle").style("display",null).attr("x",(function(t){return"e"===t.type[t.type.length-1]?n[1][0]-u/2:n[0][0]-u/2})).attr("y",(function(t){return"s"===t.type[0]?n[1][1]-u/2:n[0][1]-u/2})).attr("width",(function(t){return"n"===t.type||"s"===t.type?n[1][0]-n[0][0]+u:u})).attr("height",(function(t){return"e"===t.type||"w"===t.type?n[1][1]-n[0][1]+u:u}))):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function s(t,n,e){var r=t.__brush.emitter;return!r||e&&r.clean?new l(t,n,e):r}function l(t,n,e){this.that=t,this.args=n,this.state=t.__brush,this.active=0,this.clean=e}function h(e){if((!n||e.touches)&&r.apply(this,arguments)){var i,a,u,c,l,h,d,p,g,y,v,_=this,b=e.target.__data__.type,m="selection"===(o&&e.metaKey?b="overlay":b)?ho:o&&e.altKey?yo:go,x=t===Mo?null:ko[b],w=t===wo?null:No[b],M=qo(_),A=M.extent,T=M.selection,S=A[0][0],E=A[0][1],k=A[1][0],N=A[1][1],C=0,P=0,z=x&&w&&o&&e.shiftKey,D=Array.from(e.touches||[e],t=>{const n=t.identifier;return(t=kn(t,_)).point0=t.slice(),t.identifier=n,t});if("overlay"===b){T&&(g=!0);const n=[D[0],D[1]||D[0]];M.selection=T=[[i=t===Mo?S:bo(n[0][0],n[1][0]),u=t===wo?E:bo(n[0][1],n[1][1])],[l=t===Mo?k:_o(n[0][0],n[1][0]),d=t===wo?N:_o(n[0][1],n[1][1])]],D.length>1&&I()}else i=T[0][0],u=T[0][1],l=T[1][0],d=T[1][1];a=i,c=u,h=l,p=d;var q=Mn(_).attr("pointer-events","none"),R=q.selectAll(".overlay").attr("cursor",To[b]);oi(_);var F=s(_,arguments,!0).beforestart();if(e.touches)F.moved=U,F.ended=B;else{var O=Mn(e.view).on("mousemove.brush",U,!0).on("mouseup.brush",B,!0);o&&O.on("keydown.brush",Y,!0).on("keyup.brush",L,!0),Pn(e.view)}f.call(_),F.start(e,m.name)}function U(t){for(const n of t.changedTouches||[t])for(const t of D)t.identifier===n.identifier&&(t.cur=kn(n,_));if(z&&!y&&!v&&1===D.length){const t=D[0];vo(t.cur[0]-t[0])>vo(t.cur[1]-t[1])?v=!0:y=!0}for(const t of D)t.cur&&(t[0]=t.cur[0],t[1]=t.cur[1]);g=!0,lo(t),I(t)}function I(t){const n=D[0],e=n.point0;var r;switch(C=n[0]-e[0],P=n[1]-e[1],m){case po:case ho:x&&(C=_o(S-i,bo(k-l,C)),a=i+C,h=l+C),w&&(P=_o(E-u,bo(N-d,P)),c=u+P,p=d+P);break;case go:D[1]?(x&&(a=_o(S,bo(k,D[0][0])),h=_o(S,bo(k,D[1][0])),x=1),w&&(c=_o(E,bo(N,D[0][1])),p=_o(E,bo(N,D[1][1])),w=1)):(x<0?(C=_o(S-i,bo(k-i,C)),a=i+C,h=l):x>0&&(C=_o(S-l,bo(k-l,C)),a=i,h=l+C),w<0?(P=_o(E-u,bo(N-u,P)),c=u+P,p=d):w>0&&(P=_o(E-d,bo(N-d,P)),c=u,p=d+P));break;case yo:x&&(a=_o(S,bo(k,i-C*x)),h=_o(S,bo(k,l+C*x))),w&&(c=_o(E,bo(N,u-P*w)),p=_o(E,bo(N,d+P*w)))}h0&&(i=a-C),w<0?d=p-P:w>0&&(u=c-P),m=po,R.attr("cursor",To.selection),I());break;default:return}lo(t)}function L(t){switch(t.keyCode){case 16:z&&(y=v=z=!1,I());break;case 18:m===yo&&(x<0?l=h:x>0&&(i=a),w<0?d=p:w>0&&(u=c),m=go,I());break;case 32:m===po&&(t.altKey?(x&&(l=h-C*x,i=a+C*x),w&&(d=p-P*w,u=c+P*w),m=yo):(x<0?l=h:x>0&&(i=a),w<0?d=p:w>0&&(u=c),m=go),R.attr("cursor",To[b]),I());break;default:return}lo(t)}}function d(t){s(this,arguments).moved(t)}function p(t){s(this,arguments).ended(t)}function g(){var n=this.__brush||{selection:null};return n.extent=xo(e.apply(this,arguments)),n.dim=t,n}return c.move=function(n,e){n.tween?n.on("start.brush",(function(t){s(this,arguments).beforestart().start(t)})).on("interrupt.brush end.brush",(function(t){s(this,arguments).end(t)})).tween("brush",(function(){var n=this,r=n.__brush,i=s(n,arguments),o=r.selection,a=t.input("function"==typeof e?e.apply(this,arguments):e,r.extent),u=dr(o,a);function c(t){r.selection=1===t&&null===a?null:u(t),f.call(n),i.brush()}return null!==o&&null!==a?c:c(1)})):n.each((function(){var n=this,r=arguments,i=n.__brush,o=t.input("function"==typeof e?e.apply(n,r):e,i.extent),a=s(n,r).beforestart();oi(n),i.selection=null===o?null:o,f.call(n),a.start().brush().end()}))},c.clear=function(t){c.move(t,null)},l.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(t,n){return this.starting?(this.starting=!1,this.emit("start",t,n)):this.emit("brush",t),this},brush:function(t,n){return this.emit("brush",t,n),this},end:function(t,n){return 0==--this.active&&(delete this.state.emitter,this.emit("end",t,n)),this},emit:function(n,e,r){var i=Mn(this.that).datum();a.call(n,this.that,new fo(n,{sourceEvent:e,target:c,selection:t.output(this.state.selection),mode:r,dispatch:a}),i)}},c.extent=function(t){return arguments.length?(e="function"==typeof t?t:co(xo(t)),c):e},c.filter=function(t){return arguments.length?(r="function"==typeof t?t:co(!!t),c):r},c.touchable=function(t){return arguments.length?(i="function"==typeof t?t:co(!!t),c):i},c.handleSize=function(t){return arguments.length?(u=+t,c):u},c.keyModifiers=function(t){return arguments.length?(o=!!t,c):o},c.on=function(){var t=a.on.apply(a,arguments);return t===a?c:t},c}var Oo=Math.abs,Uo=Math.cos,Io=Math.sin,Bo=Math.PI,Yo=Bo/2,Lo=2*Bo,jo=Math.max,Ho=1e-12;function Xo(t,n){return Array.from({length:n-t},(n,e)=>t+e)}function Go(t){return function(n,e){return t(n.source.value+n.target.value,e.source.value+e.target.value)}}function Vo(t,n){var e=0,r=null,i=null,o=null;function a(a){var u,c=a.length,f=new Array(c),s=Xo(0,c),l=new Array(c*c),h=new Array(c),d=0;a=Float64Array.from({length:c*c},n?(t,n)=>a[n%c][n/c|0]:(t,n)=>a[n/c|0][n%c]);for(let n=0;nr(f[t],f[n]));for(const e of s){const r=n;if(t){const t=Xo(1+~c,c).filter(t=>t<0?a[~t*c+e]:a[e*c+t]);i&&t.sort((t,n)=>i(t<0?-a[~t*c+e]:a[e*c+t],n<0?-a[~n*c+e]:a[e*c+n]));for(const r of t)if(r<0){(l[~r*c+e]||(l[~r*c+e]={source:null,target:null})).target={index:e,startAngle:n,endAngle:n+=a[~r*c+e]*d,value:a[~r*c+e]}}else{(l[e*c+r]||(l[e*c+r]={source:null,target:null})).source={index:e,startAngle:n,endAngle:n+=a[e*c+r]*d,value:a[e*c+r]}}h[e]={index:e,startAngle:r,endAngle:n,value:f[e]}}else{const t=Xo(0,c).filter(t=>a[e*c+t]||a[t*c+e]);i&&t.sort((t,n)=>i(a[e*c+t],a[e*c+n]));for(const r of t){let t;if(eZo)if(Math.abs(s*u-c*f)>Zo&&i){var h=e-o,d=r-a,p=u*u+c*c,g=h*h+d*d,y=Math.sqrt(p),v=Math.sqrt(l),_=i*Math.tan(($o-Math.acos((p+l-g)/(2*y*v)))/2),b=_/v,m=_/y;Math.abs(b-1)>Zo&&(this._+="L"+(t+b*f)+","+(n+b*s)),this._+="A"+i+","+i+",0,0,"+ +(s*h>f*d)+","+(this._x1=t+m*u)+","+(this._y1=n+m*c)}else this._+="L"+(this._x1=t)+","+(this._y1=n);else;},arc:function(t,n,e,r,i,o){t=+t,n=+n,o=!!o;var a=(e=+e)*Math.cos(r),u=e*Math.sin(r),c=t+a,f=n+u,s=1^o,l=o?r-i:i-r;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+c+","+f:(Math.abs(this._x1-c)>Zo||Math.abs(this._y1-f)>Zo)&&(this._+="L"+c+","+f),e&&(l<0&&(l=l%Wo+Wo),l>Ko?this._+="A"+e+","+e+",0,1,"+s+","+(t-a)+","+(n-u)+"A"+e+","+e+",0,1,"+s+","+(this._x1=c)+","+(this._y1=f):l>Zo&&(this._+="A"+e+","+e+",0,"+ +(l>=$o)+","+s+","+(this._x1=t+e*Math.cos(i))+","+(this._y1=n+e*Math.sin(i))))},rect:function(t,n,e,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +r+"h"+-e+"Z"},toString:function(){return this._}};var ta=Array.prototype.slice;function na(t){return function(){return t}}function ea(t){return t.source}function ra(t){return t.target}function ia(t){return t.radius}function oa(t){return t.startAngle}function aa(t){return t.endAngle}function ua(){return 0}function ca(){return 10}function fa(t){var n=ea,e=ra,r=ia,i=ia,o=oa,a=aa,u=ua,c=null;function f(){var f,s=n.apply(this,arguments),l=e.apply(this,arguments),h=u.apply(this,arguments)/2,d=ta.call(arguments),p=+r.apply(this,(d[0]=s,d)),g=o.apply(this,d)-Yo,y=a.apply(this,d)-Yo,v=+i.apply(this,(d[0]=l,d)),_=o.apply(this,d)-Yo,b=a.apply(this,d)-Yo;if(c||(c=f=Jo()),h>Ho&&(Oo(y-g)>2*h+Ho?y>g?(g+=h,y-=h):(g-=h,y+=h):g=y=(g+y)/2,Oo(b-_)>2*h+Ho?b>_?(_+=h,b-=h):(_-=h,b+=h):_=b=(_+b)/2),c.moveTo(p*Uo(g),p*Io(g)),c.arc(0,0,p,g,y),g!==_||y!==b)if(t){var m=+t.apply(this,arguments),x=v-m,w=(_+b)/2;c.quadraticCurveTo(0,0,x*Uo(_),x*Io(_)),c.lineTo(v*Uo(w),v*Io(w)),c.lineTo(x*Uo(b),x*Io(b))}else c.quadraticCurveTo(0,0,v*Uo(_),v*Io(_)),c.arc(0,0,v,_,b);if(c.quadraticCurveTo(0,0,p*Uo(g),p*Io(g)),c.closePath(),f)return c=null,f+""||null}return t&&(f.headRadius=function(n){return arguments.length?(t="function"==typeof n?n:na(+n),f):t}),f.radius=function(t){return arguments.length?(r=i="function"==typeof t?t:na(+t),f):r},f.sourceRadius=function(t){return arguments.length?(r="function"==typeof t?t:na(+t),f):r},f.targetRadius=function(t){return arguments.length?(i="function"==typeof t?t:na(+t),f):i},f.startAngle=function(t){return arguments.length?(o="function"==typeof t?t:na(+t),f):o},f.endAngle=function(t){return arguments.length?(a="function"==typeof t?t:na(+t),f):a},f.padAngle=function(t){return arguments.length?(u="function"==typeof t?t:na(+t),f):u},f.source=function(t){return arguments.length?(n=t,f):n},f.target=function(t){return arguments.length?(e=t,f):e},f.context=function(t){return arguments.length?(c=null==t?null:t,f):c},f}var sa=Array.prototype.slice;function la(t,n){return t-n}var ha=t=>()=>t;function da(t,n){for(var e,r=-1,i=n.length;++rr!=d>r&&e<(h-f)*(r-s)/(d-s)+f&&(i=-i)}return i}function ga(t,n,e){var r,i,o,a;return function(t,n,e){return(n[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(n[1]-t[1])}(t,n,e)&&(i=t[r=+(t[0]===n[0])],o=e[r],a=n[r],i<=o&&o<=a||a<=o&&o<=i)}function ya(){}var va=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function _a(){var t=1,n=1,e=k,r=u;function i(t){var n=e(t);if(Array.isArray(n))n=n.slice().sort(la);else{var r=p(t),i=r[0],a=r[1];n=S(i,a,n),n=B(Math.floor(i/n)*n,Math.floor(a/n)*n,n)}return n.map((function(n){return o(t,n)}))}function o(e,i){var o=[],u=[];return function(e,r,i){var o,u,c,f,s,l,h=new Array,d=new Array;o=u=-1,f=e[0]>=r,va[f<<1].forEach(p);for(;++o=r,va[c|f<<1].forEach(p);va[f<<0].forEach(p);for(;++u=r,s=e[u*t]>=r,va[f<<1|s<<2].forEach(p);++o=r,l=s,s=e[u*t+o+1]>=r,va[c|f<<1|s<<2|l<<3].forEach(p);va[f|s<<3].forEach(p)}o=-1,s=e[u*t]>=r,va[s<<2].forEach(p);for(;++o=r,va[s<<2|l<<3].forEach(p);function p(t){var n,e,r=[t[0][0]+o,t[0][1]+u],c=[t[1][0]+o,t[1][1]+u],f=a(r),s=a(c);(n=d[f])?(e=h[s])?(delete d[n.end],delete h[e.start],n===e?(n.ring.push(c),i(n.ring)):h[n.start]=d[e.end]={start:n.start,end:e.end,ring:n.ring.concat(e.ring)}):(delete d[n.end],n.ring.push(c),d[n.end=s]=n):(n=h[s])?(e=d[f])?(delete h[n.start],delete d[e.end],n===e?(n.ring.push(c),i(n.ring)):h[e.start]=d[n.end]={start:e.start,end:n.end,ring:e.ring.concat(n.ring)}):(delete h[n.start],n.ring.unshift(r),h[n.start=f]=n):h[f]=d[s]={start:f,end:s,ring:[r,c]}}va[s<<3].forEach(p)}(e,i,(function(t){r(t,e,i),function(t){for(var n=0,e=t.length,r=t[e-1][1]*t[0][0]-t[e-1][0]*t[0][1];++n0?o.push([t]):u.push(t)})),u.forEach((function(t){for(var n,e=0,r=o.length;e0&&a0&&u=0&&o>=0))throw new Error("invalid size");return t=r,n=o,i},i.thresholds=function(t){return arguments.length?(e="function"==typeof t?t:Array.isArray(t)?ha(sa.call(t)):ha(t),i):e},i.smooth=function(t){return arguments.length?(r=t?u:ya,i):r===u},i}function ba(t,n,e){for(var r=t.width,i=t.height,o=1+(e<<1),a=0;a=e&&(u>=o&&(c-=t.data[u-o+a*r]),n.data[u-e+a*r]=c/Math.min(u+1,r-1+o-u,o))}function ma(t,n,e){for(var r=t.width,i=t.height,o=1+(e<<1),a=0;a=e&&(u>=o&&(c-=t.data[a+(u-o)*r]),n.data[a+(u-e)*r]=c/Math.min(u+1,i-1+o-u,o))}function xa(t){return t[0]}function wa(t){return t[1]}function Ma(){return 1}const Aa=Math.pow(2,-52),Ta=new Uint32Array(512);class Sa{static from(t,n=qa,e=Ra){const r=t.length,i=new Float64Array(2*r);for(let o=0;o>1;if(n>0&&"number"!=typeof t[0])throw new Error("Expected coords to contain numbers.");this.coords=t;const e=Math.max(2*n-5,0);this._triangles=new Uint32Array(3*e),this._halfedges=new Int32Array(3*e),this._hashSize=Math.ceil(Math.sqrt(n)),this._hullPrev=new Uint32Array(n),this._hullNext=new Uint32Array(n),this._hullTri=new Uint32Array(n),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(n),this._dists=new Float64Array(n),this.update()}update(){const{coords:t,_hullPrev:n,_hullNext:e,_hullTri:r,_hullHash:i}=this,o=t.length>>1;let a=1/0,u=1/0,c=-1/0,f=-1/0;for(let n=0;nc&&(c=e),r>f&&(f=r),this._ids[n]=n}const s=(a+c)/2,l=(u+f)/2;let h,d,p,g=1/0;for(let n=0;n0&&(d=n,g=e)}let _=t[2*d],b=t[2*d+1],m=1/0;for(let n=0;nr&&(n[e++]=i,r=this._dists[i])}return this.hull=n.subarray(0,e),this.triangles=new Uint32Array(0),void(this.halfedges=new Uint32Array(0))}if(Na(y,v,_,b,x,w)){const t=d,n=_,e=b;d=p,_=x,b=w,p=t,x=n,w=e}const M=function(t,n,e,r,i,o){const a=e-t,u=r-n,c=i-t,f=o-n,s=a*a+u*u,l=c*c+f*f,h=.5/(a*f-u*c);return{x:t+(f*s-u*l)*h,y:n+(a*l-c*s)*h}}(y,v,_,b,x,w);this._cx=M.x,this._cy=M.y;for(let n=0;n0&&Math.abs(f-o)<=Aa&&Math.abs(s-a)<=Aa)continue;if(o=f,a=s,c===h||c===d||c===p)continue;let l=0;for(let t=0,n=this._hashKey(f,s);t0?3-e:1+e)/4}(t-this._cx,n-this._cy)*this._hashSize)%this._hashSize}_legalize(t){const{_triangles:n,_halfedges:e,coords:r}=this;let i=0,o=0;for(;;){const a=e[t],u=t-t%3;if(o=u+(t+2)%3,-1===a){if(0===i)break;t=Ta[--i];continue}const c=a-a%3,f=u+(t+1)%3,s=c+(a+2)%3,l=n[o],h=n[t],d=n[f],p=n[s];if(Ca(r[2*l],r[2*l+1],r[2*h],r[2*h+1],r[2*d],r[2*d+1],r[2*p],r[2*p+1])){n[t]=p,n[a]=l;const r=e[s];if(-1===r){let n=this._hullStart;do{if(this._hullTri[n]===s){this._hullTri[n]=t;break}n=this._hullPrev[n]}while(n!==this._hullStart)}this._link(t,r),this._link(a,e[o]),this._link(o,s);const u=c+(a+1)%3;i=33306690738754716e-32*Math.abs(a+u)?a-u:0}function Na(t,n,e,r,i,o){return(ka(i,o,t,n,e,r)||ka(t,n,e,r,i,o)||ka(e,r,i,o,t,n))<0}function Ca(t,n,e,r,i,o,a,u){const c=t-a,f=n-u,s=e-a,l=r-u,h=i-a,d=o-u,p=s*s+l*l,g=h*h+d*d;return c*(l*g-p*d)-f*(s*g-p*h)+(c*c+f*f)*(s*d-l*h)<0}function Pa(t,n,e,r,i,o){const a=e-t,u=r-n,c=i-t,f=o-n,s=a*a+u*u,l=c*c+f*f,h=.5/(a*f-u*c),d=(f*s-u*l)*h,p=(a*l-c*s)*h;return d*d+p*p}function za(t,n,e,r){if(r-e<=20)for(let i=e+1;i<=r;i++){const r=t[i],o=n[r];let a=i-1;for(;a>=e&&n[t[a]]>o;)t[a+1]=t[a--];t[a+1]=r}else{let i=e+1,o=r;Da(t,e+r>>1,i),n[t[e]]>n[t[r]]&&Da(t,e,r),n[t[i]]>n[t[r]]&&Da(t,i,r),n[t[e]]>n[t[i]]&&Da(t,e,i);const a=t[i],u=n[a];for(;;){do{i++}while(n[t[i]]u);if(o=o-e?(za(t,n,i,r),za(t,n,e,o-1)):(za(t,n,e,o-1),za(t,n,i,r))}}function Da(t,n,e){const r=t[n];t[n]=t[e],t[e]=r}function qa(t){return t[0]}function Ra(t){return t[1]}const Fa=1e-6;class Oa{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(t,n){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(t,n){this._+=`L${this._x1=+t},${this._y1=+n}`}arc(t,n,e){const r=(t=+t)+(e=+e),i=n=+n;if(e<0)throw new Error("negative radius");null===this._x1?this._+=`M${r},${i}`:(Math.abs(this._x1-r)>Fa||Math.abs(this._y1-i)>Fa)&&(this._+="L"+r+","+i),e&&(this._+=`A${e},${e},0,1,1,${t-e},${n}A${e},${e},0,1,1,${this._x1=r},${this._y1=i}`)}rect(t,n,e,r){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${+e}v${+r}h${-e}Z`}value(){return this._||null}}class Ua{constructor(){this._=[]}moveTo(t,n){this._.push([t,n])}closePath(){this._.push(this._[0].slice())}lineTo(t,n){this._.push([t,n])}value(){return this._.length?this._:null}}class Ia{constructor(t,[n,e,r,i]=[0,0,960,500]){if(!((r=+r)>=(n=+n)&&(i=+i)>=(e=+e)))throw new Error("invalid bounds");this.delaunay=t,this._circumcenters=new Float64Array(2*t.points.length),this.vectors=new Float64Array(2*t.points.length),this.xmax=r,this.xmin=n,this.ymax=i,this.ymin=e,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:t,hull:n,triangles:e},vectors:r}=this,i=this.circumcenters=this._circumcenters.subarray(0,e.length/3*2);for(let n,r,o=0,a=0,u=e.length;o1;)i-=2;for(let t=2;t4)for(let t=0;t0){if(n>=this.ymax)return null;(i=(this.ymax-n)/r)0){if(t>=this.xmax)return null;(i=(this.xmax-t)/e)this.xmax?2:0)|(nthis.ymax?8:0)}}const Ba=2*Math.PI,Ya=Math.pow;function La(t){return t[0]}function ja(t){return t[1]}function Ha(t,n,e){return[t+Math.sin(t+n)*e,n+Math.cos(t-n)*e]}class Xa{static from(t,n=La,e=ja,r){return new Xa("length"in t?function(t,n,e,r){const i=t.length,o=new Float64Array(2*i);for(let a=0;a2&&function(t){const{triangles:n,coords:e}=t;for(let t=0;t1e-10)return!1}return!0}(t)){this.collinear=Int32Array.from({length:n.length/2},(t,n)=>n).sort((t,e)=>n[2*t]-n[2*e]||n[2*t+1]-n[2*e+1]);const t=this.collinear[0],e=this.collinear[this.collinear.length-1],r=[n[2*t],n[2*t+1],n[2*e],n[2*e+1]],i=1e-8*Math.hypot(r[3]-r[1],r[2]-r[0]);for(let t=0,e=n.length/2;t0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=r[0],this.triangles[1]=r[1],this.triangles[2]=r[1],o[r[0]]=1,2===r.length&&(o[r[1]]=0))}voronoi(t){return new Ia(this,t)}*neighbors(t){const{inedges:n,hull:e,_hullIndex:r,halfedges:i,triangles:o,collinear:a}=this;if(a){const n=a.indexOf(t);return n>0&&(yield a[n-1]),void(n=0&&i!==e&&i!==r;)e=i;return i}_step(t,n,e){const{inedges:r,hull:i,_hullIndex:o,halfedges:a,triangles:u,points:c}=this;if(-1===r[t]||!c.length)return(t+1)%(c.length>>1);let f=t,s=Ya(n-c[2*t],2)+Ya(e-c[2*t+1],2);const l=r[t];let h=l;do{let r=u[h];const l=Ya(n-c[2*r],2)+Ya(e-c[2*r+1],2);if(l9999?"+"+Za(t,6):Za(t,4)}(t.getUTCFullYear())+"-"+Za(t.getUTCMonth()+1,2)+"-"+Za(t.getUTCDate(),2)+(i?"T"+Za(n,2)+":"+Za(e,2)+":"+Za(r,2)+"."+Za(i,3)+"Z":r?"T"+Za(n,2)+":"+Za(e,2)+":"+Za(r,2)+"Z":e||n?"T"+Za(n,2)+":"+Za(e,2)+"Z":"")}function Qa(t){var n=new RegExp('["'+t+"\n\r]"),e=t.charCodeAt(0);function r(t,n){var r,i=[],o=t.length,a=0,u=0,c=o<=0,f=!1;function s(){if(c)return Va;if(f)return f=!1,Ga;var n,r,i=a;if(34===t.charCodeAt(i)){for(;a++=o?c=!0:10===(r=t.charCodeAt(a++))?f=!0:13===r&&(f=!0,10===t.charCodeAt(a)&&++a),t.slice(i+1,n-1).replace(/""/g,'"')}for(;abu(n,e).then(n=>(new DOMParser).parseFromString(n,t))}var Tu=Au("application/xml"),Su=Au("text/html"),Eu=Au("image/svg+xml");function ku(t,n,e,r){if(isNaN(n)||isNaN(e))return t;var i,o,a,u,c,f,s,l,h,d=t._root,p={data:r},g=t._x0,y=t._y0,v=t._x1,_=t._y1;if(!d)return t._root=p,t;for(;d.length;)if((f=n>=(o=(g+v)/2))?g=o:v=o,(s=e>=(a=(y+_)/2))?y=a:_=a,i=d,!(d=d[l=s<<1|f]))return i[l]=p,t;if(u=+t._x.call(null,d.data),c=+t._y.call(null,d.data),n===u&&e===c)return p.next=d,i?i[l]=p:t._root=p,t;do{i=i?i[l]=new Array(4):t._root=new Array(4),(f=n>=(o=(g+v)/2))?g=o:v=o,(s=e>=(a=(y+_)/2))?y=a:_=a}while((l=s<<1|f)==(h=(c>=a)<<1|u>=o));return i[h]=d,i[l]=p,t}function Nu(t,n,e,r,i){this.node=t,this.x0=n,this.y0=e,this.x1=r,this.y1=i}function Cu(t){return t[0]}function Pu(t){return t[1]}function zu(t,n,e){var r=new Du(null==n?Cu:n,null==e?Pu:e,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function Du(t,n,e,r,i,o){this._x=t,this._y=n,this._x0=e,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function qu(t){for(var n={data:t.data},e=n;t=t.next;)e=e.next={data:t.data};return n}var Ru=zu.prototype=Du.prototype;function Fu(t){return function(){return t}}function Ou(t){return 1e-6*(t()-.5)}function Uu(t){return t.x+t.vx}function Iu(t){return t.y+t.vy}function Bu(t){return t.index}function Yu(t,n){var e=t.get(n);if(!e)throw new Error("node not found: "+n);return e}Ru.copy=function(){var t,n,e=new Du(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return e;if(!r.length)return e._root=qu(r),e;for(t=[{source:r,target:e._root=new Array(4)}];r=t.pop();)for(var i=0;i<4;++i)(n=r.source[i])&&(n.length?t.push({source:n,target:r.target[i]=new Array(4)}):r.target[i]=qu(n));return e},Ru.add=function(t){const n=+this._x.call(null,t),e=+this._y.call(null,t);return ku(this.cover(n,e),n,e,t)},Ru.addAll=function(t){var n,e,r,i,o=t.length,a=new Array(o),u=new Array(o),c=1/0,f=1/0,s=-1/0,l=-1/0;for(e=0;es&&(s=r),il&&(l=i));if(c>s||f>l)return this;for(this.cover(c,f).cover(s,l),e=0;et||t>=i||r>n||n>=o;)switch(u=(nh||(o=c.y0)>d||(a=c.x1)=v)<<1|t>=y)&&(c=p[p.length-1],p[p.length-1]=p[p.length-1-f],p[p.length-1-f]=c)}else{var _=t-+this._x.call(null,g.data),b=n-+this._y.call(null,g.data),m=_*_+b*b;if(m=(u=(p+y)/2))?p=u:y=u,(s=a>=(c=(g+v)/2))?g=c:v=c,n=d,!(d=d[l=s<<1|f]))return this;if(!d.length)break;(n[l+1&3]||n[l+2&3]||n[l+3&3])&&(e=n,h=l)}for(;d.data!==t;)if(r=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,r?(i?r.next=i:delete r.next,this):n?(i?n[l]=i:delete n[l],(d=n[0]||n[1]||n[2]||n[3])&&d===(n[3]||n[2]||n[1]||n[0])&&!d.length&&(e?e[h]=d:this._root=d),this):(this._root=i,this)},Ru.removeAll=function(t){for(var n=0,e=t.length;n1?r[0]+r.slice(2):r,+t.slice(e+1)]}function Vu(t){return(t=Gu(Math.abs(t)))?t[1]:NaN}var $u,Wu=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Zu(t){if(!(n=Wu.exec(t)))throw new Error("invalid format: "+t);var n;return new Ku({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}function Ku(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function Qu(t,n){var e=Gu(t,n);if(!e)return t+"";var r=e[0],i=e[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}Zu.prototype=Ku.prototype,Ku.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Ju={"%":(t,n)=>(100*t).toFixed(n),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,n)=>t.toExponential(n),f:(t,n)=>t.toFixed(n),g:(t,n)=>t.toPrecision(n),o:t=>Math.round(t).toString(8),p:(t,n)=>Qu(100*t,n),r:Qu,s:function(t,n){var e=Gu(t,n);if(!e)return t+"";var r=e[0],i=e[1],o=i-($u=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Gu(t,Math.max(0,n+o-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function tc(t){return t}var nc,ec=Array.prototype.map,rc=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function ic(t){var n,e,r=void 0===t.grouping||void 0===t.thousands?tc:(n=ec.call(t.grouping,Number),e=t.thousands+"",function(t,r){for(var i=t.length,o=[],a=0,u=n[0],c=0;i>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),o.push(t.substring(i-=u,i+u)),!((c+=u+1)>r));)u=n[a=(a+1)%n.length];return o.reverse().join(e)}),i=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",u=void 0===t.numerals?tc:function(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}}(ec.call(t.numerals,String)),c=void 0===t.percent?"%":t.percent+"",f=void 0===t.minus?"−":t.minus+"",s=void 0===t.nan?"NaN":t.nan+"";function l(t){var n=(t=Zu(t)).fill,e=t.align,l=t.sign,h=t.symbol,d=t.zero,p=t.width,g=t.comma,y=t.precision,v=t.trim,_=t.type;"n"===_?(g=!0,_="g"):Ju[_]||(void 0===y&&(y=12),v=!0,_="g"),(d||"0"===n&&"="===e)&&(d=!0,n="0",e="=");var b="$"===h?i:"#"===h&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",m="$"===h?o:/[%p]/.test(_)?c:"",x=Ju[_],w=/[defgprs%]/.test(_);function M(t){var i,o,c,h=b,M=m;if("c"===_)M=x(t)+M,t="";else{var A=(t=+t)<0||1/t<0;if(t=isNaN(t)?s:x(Math.abs(t),y),v&&(t=function(t){t:for(var n,e=t.length,r=1,i=-1;r0&&(i=0)}return i>0?t.slice(0,i)+t.slice(n+1):t}(t)),A&&0==+t&&"+"!==l&&(A=!1),h=(A?"("===l?l:f:"-"===l||"("===l?"":l)+h,M=("s"===_?rc[8+$u/3]:"")+M+(A&&"("===l?")":""),w)for(i=-1,o=t.length;++i(c=t.charCodeAt(i))||c>57){M=(46===c?a+t.slice(i+1):t.slice(i))+M,t=t.slice(0,i);break}}g&&!d&&(t=r(t,1/0));var T=h.length+t.length+M.length,S=T>1)+h+t+M+S.slice(T);break;default:t=S+h+t+M}return u(t)}return y=void 0===y?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),M.toString=function(){return t+""},M}return{format:l,formatPrefix:function(t,n){var e=l(((t=Zu(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Vu(n)/3))),i=Math.pow(10,-r),o=rc[8+r/3];return function(t){return e(i*t)+o}}}}function oc(n){return nc=ic(n),t.format=nc.format,t.formatPrefix=nc.formatPrefix,nc}function ac(t){return Math.max(0,-Vu(Math.abs(t)))}function uc(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Vu(n)/3)))-Vu(Math.abs(t)))}function cc(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,Vu(n)-Vu(t))+1}oc({thousands:",",grouping:[3],currency:["$",""]});var fc=1e-6,sc=1e-12,lc=Math.PI,hc=lc/2,dc=lc/4,pc=2*lc,gc=180/lc,yc=lc/180,vc=Math.abs,_c=Math.atan,bc=Math.atan2,mc=Math.cos,xc=Math.ceil,wc=Math.exp,Mc=Math.hypot,Ac=Math.log,Tc=Math.pow,Sc=Math.sin,Ec=Math.sign||function(t){return t>0?1:t<0?-1:0},kc=Math.sqrt,Nc=Math.tan;function Cc(t){return t>1?0:t<-1?lc:Math.acos(t)}function Pc(t){return t>1?hc:t<-1?-hc:Math.asin(t)}function zc(t){return(t=Sc(t/2))*t}function Dc(){}function qc(t,n){t&&Fc.hasOwnProperty(t.type)&&Fc[t.type](t,n)}var Rc={Feature:function(t,n){qc(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++r=0?1:-1,i=r*e,o=mc(n=(n*=yc)/2+dc),a=Sc(n),u=Hc*a,c=jc*o+u*mc(i),f=u*r*Sc(i);ef.add(bc(f,c)),Lc=t,jc=o,Hc=a}function sf(t){return[bc(t[1],t[0]),Pc(t[2])]}function lf(t){var n=t[0],e=t[1],r=mc(e);return[r*mc(n),r*Sc(n),Sc(e)]}function hf(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function df(t,n){return[t[1]*n[2]-t[2]*n[1],t[2]*n[0]-t[0]*n[2],t[0]*n[1]-t[1]*n[0]]}function pf(t,n){t[0]+=n[0],t[1]+=n[1],t[2]+=n[2]}function gf(t,n){return[t[0]*n,t[1]*n,t[2]*n]}function yf(t){var n=kc(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=n,t[1]/=n,t[2]/=n}var vf,_f,bf,mf,xf,wf,Mf,Af,Tf,Sf,Ef,kf,Nf,Cf,Pf,zf,Df={point:qf,lineStart:Ff,lineEnd:Of,polygonStart:function(){Df.point=Uf,Df.lineStart=If,Df.lineEnd=Bf,Jc=new g,of.polygonStart()},polygonEnd:function(){of.polygonEnd(),Df.point=qf,Df.lineStart=Ff,Df.lineEnd=Of,ef<0?(Xc=-(Vc=180),Gc=-($c=90)):Jc>fc?$c=90:Jc<-1e-6&&(Gc=-90),nf[0]=Xc,nf[1]=Vc},sphere:function(){Xc=-(Vc=180),Gc=-($c=90)}};function qf(t,n){tf.push(nf=[Xc=t,Vc=t]),n$c&&($c=n)}function Rf(t,n){var e=lf([t*yc,n*yc]);if(Qc){var r=df(Qc,e),i=df([r[1],-r[0],0],r);yf(i),i=sf(i);var o,a=t-Wc,u=a>0?1:-1,c=i[0]*gc*u,f=vc(a)>180;f^(u*Wc$c&&($c=o):f^(u*Wc<(c=(c+360)%360-180)&&c$c&&($c=n)),f?tYf(Xc,Vc)&&(Vc=t):Yf(t,Vc)>Yf(Xc,Vc)&&(Xc=t):Vc>=Xc?(tVc&&(Vc=t)):t>Wc?Yf(Xc,t)>Yf(Xc,Vc)&&(Vc=t):Yf(t,Vc)>Yf(Xc,Vc)&&(Xc=t)}else tf.push(nf=[Xc=t,Vc=t]);n$c&&($c=n),Qc=e,Wc=t}function Ff(){Df.point=Rf}function Of(){nf[0]=Xc,nf[1]=Vc,Df.point=qf,Qc=null}function Uf(t,n){if(Qc){var e=t-Wc;Jc.add(vc(e)>180?e+(e>0?360:-360):e)}else Zc=t,Kc=n;of.point(t,n),Rf(t,n)}function If(){of.lineStart()}function Bf(){Uf(Zc,Kc),of.lineEnd(),vc(Jc)>fc&&(Xc=-(Vc=180)),nf[0]=Xc,nf[1]=Vc,Qc=null}function Yf(t,n){return(n-=t)<0?n+360:n}function Lf(t,n){return t[0]-n[0]}function jf(t,n){return t[0]<=t[1]?t[0]<=n&&n<=t[1]:nlc?t+Math.round(-t/pc)*pc:t,n]}function is(t,n,e){return(t%=pc)?n||e?es(as(t),us(n,e)):as(t):n||e?us(n,e):rs}function os(t){return function(n,e){return[(n+=t)>lc?n-pc:n<-lc?n+pc:n,e]}}function as(t){var n=os(t);return n.invert=os(-t),n}function us(t,n){var e=mc(t),r=Sc(t),i=mc(n),o=Sc(n);function a(t,n){var a=mc(n),u=mc(t)*a,c=Sc(t)*a,f=Sc(n),s=f*e+u*r;return[bc(c*i-s*o,u*e-f*r),Pc(s*i+c*o)]}return a.invert=function(t,n){var a=mc(n),u=mc(t)*a,c=Sc(t)*a,f=Sc(n),s=f*i-c*o;return[bc(c*i+f*o,u*e+s*r),Pc(s*e-u*r)]},a}function cs(t){function n(n){return(n=t(n[0]*yc,n[1]*yc))[0]*=gc,n[1]*=gc,n}return t=is(t[0]*yc,t[1]*yc,t.length>2?t[2]*yc:0),n.invert=function(n){return(n=t.invert(n[0]*yc,n[1]*yc))[0]*=gc,n[1]*=gc,n},n}function fs(t,n,e,r,i,o){if(e){var a=mc(n),u=Sc(n),c=r*e;null==i?(i=n+r*pc,o=n-c/2):(i=ss(a,i),o=ss(a,o),(r>0?io)&&(i+=r*pc));for(var f,s=i;r>0?s>o:s1&&n.push(n.pop().concat(n.shift()))},result:function(){var e=n;return n=[],t=null,e}}}function hs(t,n){return vc(t[0]-n[0])=0;--o)i.point((s=f[o])[0],s[1]);else r(h.x,h.p.x,-1,i);h=h.p}f=(h=h.o).z,d=!d}while(!h.v);i.lineEnd()}}}function gs(t){if(n=t.length){for(var n,e,r=0,i=t[0];++r=0?1:-1,E=S*T,k=E>lc,N=v*M;if(c.add(bc(N*S*Sc(E),_*A+N*mc(E))),a+=k?T+S*pc:T,k^p>=e^x>=e){var C=df(lf(d),lf(m));yf(C);var P=df(o,C);yf(P);var z=(k^T>=0?-1:1)*Pc(P[2]);(r>z||r===z&&(C[0]||C[1]))&&(u+=k^T>=0?1:-1)}}return(a<-1e-6||a0){for(l||(i.polygonStart(),l=!0),i.lineStart(),t=0;t1&&2&c&&h.push(h.pop().concat(h.shift())),a.push(h.filter(bs))}return h}}function bs(t){return t.length>1}function ms(t,n){return((t=t.x)[0]<0?t[1]-hc-fc:hc-t[1])-((n=n.x)[0]<0?n[1]-hc-fc:hc-n[1])}rs.invert=rs;var xs=_s((function(){return!0}),(function(t){var n,e=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),n=1},point:function(o,a){var u=o>0?lc:-lc,c=vc(o-e);vc(c-lc)0?hc:-hc),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),t.point(o,r),n=0):i!==u&&c>=lc&&(vc(e-i)fc?_c((Sc(n)*(o=mc(r))*Sc(e)-Sc(r)*(i=mc(n))*Sc(t))/(i*o*a)):(n+r)/2}(e,r,o,a),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),n=0),t.point(e=o,r=a),i=u},lineEnd:function(){t.lineEnd(),e=r=NaN},clean:function(){return 2-n}}}),(function(t,n,e,r){var i;if(null==t)i=e*hc,r.point(-lc,i),r.point(0,i),r.point(lc,i),r.point(lc,0),r.point(lc,-i),r.point(0,-i),r.point(-lc,-i),r.point(-lc,0),r.point(-lc,i);else if(vc(t[0]-n[0])>fc){var o=t[0]0,i=vc(n)>fc;function o(t,e){return mc(t)*mc(e)>n}function a(t,e,r){var i=[1,0,0],o=df(lf(t),lf(e)),a=hf(o,o),u=o[0],c=a-u*u;if(!c)return!r&&t;var f=n*a/c,s=-n*u/c,l=df(i,o),h=gf(i,f);pf(h,gf(o,s));var d=l,p=hf(h,d),g=hf(d,d),y=p*p-g*(hf(h,h)-1);if(!(y<0)){var v=kc(y),_=gf(d,(-p-v)/g);if(pf(_,h),_=sf(_),!r)return _;var b,m=t[0],x=e[0],w=t[1],M=e[1];x0^_[1]<(vc(_[0]-m)lc^(m<=_[0]&&_[0]<=x)){var S=gf(d,(-p+v)/g);return pf(S,h),[_,sf(S)]}}}function u(n,e){var i=r?t:lc-t,o=0;return n<-i?o|=1:n>i&&(o|=2),e<-i?o|=4:e>i&&(o|=8),o}return _s(o,(function(t){var n,e,c,f,s;return{lineStart:function(){f=c=!1,s=1},point:function(l,h){var d,p=[l,h],g=o(l,h),y=r?g?0:u(l,h):g?u(l+(l<0?lc:-lc),h):0;if(!n&&(f=c=g)&&t.lineStart(),g!==c&&(!(d=a(n,p))||hs(n,d)||hs(p,d))&&(p[2]=1),g!==c)s=0,g?(t.lineStart(),d=a(p,n),t.point(d[0],d[1])):(d=a(n,p),t.point(d[0],d[1],2),t.lineEnd()),n=d;else if(i&&n&&r^g){var v;y&e||!(v=a(p,n,!0))||(s=0,r?(t.lineStart(),t.point(v[0][0],v[0][1]),t.point(v[1][0],v[1][1]),t.lineEnd()):(t.point(v[1][0],v[1][1]),t.lineEnd(),t.lineStart(),t.point(v[0][0],v[0][1],3)))}!g||n&&hs(n,p)||t.point(p[0],p[1]),n=p,c=g,e=y},lineEnd:function(){c&&t.lineEnd(),n=null},clean:function(){return s|(f&&c)<<1}}}),(function(n,r,i,o){fs(o,t,e,i,n,r)}),r?[0,-t]:[-lc,t-lc])}var Ms,As,Ts,Ss,Es=1e9,ks=-Es;function Ns(t,n,e,r){function i(i,o){return t<=i&&i<=e&&n<=o&&o<=r}function o(i,o,u,f){var s=0,l=0;if(null==i||(s=a(i,u))!==(l=a(o,u))||c(i,o)<0^u>0)do{f.point(0===s||3===s?t:e,s>1?r:n)}while((s=(s+u+4)%4)!==l);else f.point(o[0],o[1])}function a(r,i){return vc(r[0]-t)0?0:3:vc(r[0]-e)0?2:1:vc(r[1]-n)0?1:0:i>0?3:2}function u(t,n){return c(t.x,n.x)}function c(t,n){var e=a(t,1),r=a(n,1);return e!==r?e-r:0===e?n[1]-t[1]:1===e?t[0]-n[0]:2===e?t[1]-n[1]:n[0]-t[0]}return function(a){var c,f,s,l,h,d,p,g,y,v,_,b=a,m=ls(),x={point:w,lineStart:function(){x.point=M,f&&f.push(s=[]);v=!0,y=!1,p=g=NaN},lineEnd:function(){c&&(M(l,h),d&&y&&m.rejoin(),c.push(m.result()));x.point=w,y&&b.lineEnd()},polygonStart:function(){b=m,c=[],f=[],_=!0},polygonEnd:function(){var n=function(){for(var n=0,e=0,i=f.length;er&&(h-o)*(r-a)>(d-a)*(t-o)&&++n:d<=r&&(h-o)*(r-a)<(d-a)*(t-o)&&--n;return n}(),e=_&&n,i=(c=O(c)).length;(e||i)&&(a.polygonStart(),e&&(a.lineStart(),o(null,null,1,a),a.lineEnd()),i&&ps(c,u,n,o,a),a.polygonEnd());b=a,c=f=s=null}};function w(t,n){i(t,n)&&b.point(t,n)}function M(o,a){var u=i(o,a);if(f&&s.push([o,a]),v)l=o,h=a,d=u,v=!1,u&&(b.lineStart(),b.point(o,a));else if(u&&y)b.point(o,a);else{var c=[p=Math.max(ks,Math.min(Es,p)),g=Math.max(ks,Math.min(Es,g))],m=[o=Math.max(ks,Math.min(Es,o)),a=Math.max(ks,Math.min(Es,a))];!function(t,n,e,r,i,o){var a,u=t[0],c=t[1],f=0,s=1,l=n[0]-u,h=n[1]-c;if(a=e-u,l||!(a>0)){if(a/=l,l<0){if(a0){if(a>s)return;a>f&&(f=a)}if(a=i-u,l||!(a<0)){if(a/=l,l<0){if(a>s)return;a>f&&(f=a)}else if(l>0){if(a0)){if(a/=h,h<0){if(a0){if(a>s)return;a>f&&(f=a)}if(a=o-c,h||!(a<0)){if(a/=h,h<0){if(a>s)return;a>f&&(f=a)}else if(h>0){if(a0&&(t[0]=u+f*l,t[1]=c+f*h),s<1&&(n[0]=u+s*l,n[1]=c+s*h),!0}}}}}(c,m,t,n,e,r)?u&&(b.lineStart(),b.point(o,a),_=!1):(y||(b.lineStart(),b.point(c[0],c[1])),b.point(m[0],m[1]),u||b.lineEnd(),_=!1)}p=o,g=a,y=u}return x}}var Cs={sphere:Dc,point:Dc,lineStart:function(){Cs.point=zs,Cs.lineEnd=Ps},lineEnd:Dc,polygonStart:Dc,polygonEnd:Dc};function Ps(){Cs.point=Cs.lineEnd=Dc}function zs(t,n){As=t*=yc,Ts=Sc(n*=yc),Ss=mc(n),Cs.point=Ds}function Ds(t,n){t*=yc;var e=Sc(n*=yc),r=mc(n),i=vc(t-As),o=mc(i),a=r*Sc(i),u=Ss*e-Ts*r*o,c=Ts*e+Ss*r*o;Ms.add(bc(kc(a*a+u*u),c)),As=t,Ts=e,Ss=r}function qs(t){return Ms=new g,Ic(t,Cs),+Ms}var Rs=[null,null],Fs={type:"LineString",coordinates:Rs};function Os(t,n){return Rs[0]=t,Rs[1]=n,qs(Fs)}var Us={Feature:function(t,n){return Bs(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++r0&&(i=Os(t[o],t[o-1]))>0&&e<=i&&r<=i&&(e+r-i)*(1-Math.pow((e-r)/i,2))fc})).map(c)).concat(B(xc(o/d)*d,i,d).filter((function(t){return vc(t%g)>fc})).map(f))}return v.lines=function(){return _().map((function(t){return{type:"LineString",coordinates:t}}))},v.outline=function(){return{type:"Polygon",coordinates:[s(r).concat(l(a).slice(1),s(e).reverse().slice(1),l(u).reverse().slice(1))]}},v.extent=function(t){return arguments.length?v.extentMajor(t).extentMinor(t):v.extentMinor()},v.extentMajor=function(t){return arguments.length?(r=+t[0][0],e=+t[1][0],u=+t[0][1],a=+t[1][1],r>e&&(t=r,r=e,e=t),u>a&&(t=u,u=a,a=t),v.precision(y)):[[r,u],[e,a]]},v.extentMinor=function(e){return arguments.length?(n=+e[0][0],t=+e[1][0],o=+e[0][1],i=+e[1][1],n>t&&(e=n,n=t,t=e),o>i&&(e=o,o=i,i=e),v.precision(y)):[[n,o],[t,i]]},v.step=function(t){return arguments.length?v.stepMajor(t).stepMinor(t):v.stepMinor()},v.stepMajor=function(t){return arguments.length?(p=+t[0],g=+t[1],v):[p,g]},v.stepMinor=function(t){return arguments.length?(h=+t[0],d=+t[1],v):[h,d]},v.precision=function(h){return arguments.length?(y=+h,c=Gs(o,i,90),f=Vs(n,t,y),s=Gs(u,a,90),l=Vs(r,e,y),v):y},v.extentMajor([[-180,-89.999999],[180,89.999999]]).extentMinor([[-180,-80.000001],[180,80.000001]])}var Ws,Zs,Ks,Qs,Js=t=>t,tl=new g,nl=new g,el={point:Dc,lineStart:Dc,lineEnd:Dc,polygonStart:function(){el.lineStart=rl,el.lineEnd=al},polygonEnd:function(){el.lineStart=el.lineEnd=el.point=Dc,tl.add(vc(nl)),nl=new g},result:function(){var t=tl/2;return tl=new g,t}};function rl(){el.point=il}function il(t,n){el.point=ol,Ws=Ks=t,Zs=Qs=n}function ol(t,n){nl.add(Qs*t-Ks*n),Ks=t,Qs=n}function al(){ol(Ws,Zs)}var ul=1/0,cl=ul,fl=-ul,sl=fl,ll={point:function(t,n){tfl&&(fl=t);nsl&&(sl=n)},lineStart:Dc,lineEnd:Dc,polygonStart:Dc,polygonEnd:Dc,result:function(){var t=[[ul,cl],[fl,sl]];return fl=sl=-(cl=ul=1/0),t}};var hl,dl,pl,gl,yl=0,vl=0,_l=0,bl=0,ml=0,xl=0,wl=0,Ml=0,Al=0,Tl={point:Sl,lineStart:El,lineEnd:Cl,polygonStart:function(){Tl.lineStart=Pl,Tl.lineEnd=zl},polygonEnd:function(){Tl.point=Sl,Tl.lineStart=El,Tl.lineEnd=Cl},result:function(){var t=Al?[wl/Al,Ml/Al]:xl?[bl/xl,ml/xl]:_l?[yl/_l,vl/_l]:[NaN,NaN];return yl=vl=_l=bl=ml=xl=wl=Ml=Al=0,t}};function Sl(t,n){yl+=t,vl+=n,++_l}function El(){Tl.point=kl}function kl(t,n){Tl.point=Nl,Sl(pl=t,gl=n)}function Nl(t,n){var e=t-pl,r=n-gl,i=kc(e*e+r*r);bl+=i*(pl+t)/2,ml+=i*(gl+n)/2,xl+=i,Sl(pl=t,gl=n)}function Cl(){Tl.point=Sl}function Pl(){Tl.point=Dl}function zl(){ql(hl,dl)}function Dl(t,n){Tl.point=ql,Sl(hl=pl=t,dl=gl=n)}function ql(t,n){var e=t-pl,r=n-gl,i=kc(e*e+r*r);bl+=i*(pl+t)/2,ml+=i*(gl+n)/2,xl+=i,wl+=(i=gl*t-pl*n)*(pl+t),Ml+=i*(gl+n),Al+=3*i,Sl(pl=t,gl=n)}function Rl(t){this._context=t}Rl.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,n){switch(this._point){case 0:this._context.moveTo(t,n),this._point=1;break;case 1:this._context.lineTo(t,n);break;default:this._context.moveTo(t+this._radius,n),this._context.arc(t,n,this._radius,0,pc)}},result:Dc};var Fl,Ol,Ul,Il,Bl,Yl=new g,Ll={point:Dc,lineStart:function(){Ll.point=jl},lineEnd:function(){Fl&&Hl(Ol,Ul),Ll.point=Dc},polygonStart:function(){Fl=!0},polygonEnd:function(){Fl=null},result:function(){var t=+Yl;return Yl=new g,t}};function jl(t,n){Ll.point=Hl,Ol=Il=t,Ul=Bl=n}function Hl(t,n){Il-=t,Bl-=n,Yl.add(kc(Il*Il+Bl*Bl)),Il=t,Bl=n}function Xl(){this._string=[]}function Gl(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function Vl(t){return function(n){var e=new $l;for(var r in t)e[r]=t[r];return e.stream=n,e}}function $l(){}function Wl(t,n,e){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=r&&t.clipExtent(null),Ic(e,t.stream(ll)),n(ll.result()),null!=r&&t.clipExtent(r),t}function Zl(t,n,e){return Wl(t,(function(e){var r=n[1][0]-n[0][0],i=n[1][1]-n[0][1],o=Math.min(r/(e[1][0]-e[0][0]),i/(e[1][1]-e[0][1])),a=+n[0][0]+(r-o*(e[1][0]+e[0][0]))/2,u=+n[0][1]+(i-o*(e[1][1]+e[0][1]))/2;t.scale(150*o).translate([a,u])}),e)}function Kl(t,n,e){return Zl(t,[[0,0],n],e)}function Ql(t,n,e){return Wl(t,(function(e){var r=+n,i=r/(e[1][0]-e[0][0]),o=(r-i*(e[1][0]+e[0][0]))/2,a=-i*e[0][1];t.scale(150*i).translate([o,a])}),e)}function Jl(t,n,e){return Wl(t,(function(e){var r=+n,i=r/(e[1][1]-e[0][1]),o=-i*e[0][0],a=(r-i*(e[1][1]+e[0][1]))/2;t.scale(150*i).translate([o,a])}),e)}Xl.prototype={_radius:4.5,_circle:Gl(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,n){switch(this._point){case 0:this._string.push("M",t,",",n),this._point=1;break;case 1:this._string.push("L",t,",",n);break;default:null==this._circle&&(this._circle=Gl(this._radius)),this._string.push("M",t,",",n,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}},$l.prototype={constructor:$l,point:function(t,n){this.stream.point(t,n)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var th=mc(30*yc);function nh(t,n){return+n?function(t,n){function e(r,i,o,a,u,c,f,s,l,h,d,p,g,y){var v=f-r,_=s-i,b=v*v+_*_;if(b>4*n&&g--){var m=a+h,x=u+d,w=c+p,M=kc(m*m+x*x+w*w),A=Pc(w/=M),T=vc(vc(w)-1)n||vc((v*N+_*C)/b-.5)>.3||a*h+u*d+c*p2?t[2]%360*yc:0,N()):[y*gc,v*gc,_*gc]},E.angle=function(t){return arguments.length?(b=t%360*yc,N()):b*gc},E.reflectX=function(t){return arguments.length?(m=t?-1:1,N()):m<0},E.reflectY=function(t){return arguments.length?(x=t?-1:1,N()):x<0},E.precision=function(t){return arguments.length?(a=nh(u,S=t*t),C()):kc(S)},E.fitExtent=function(t,n){return Zl(E,t,n)},E.fitSize=function(t,n){return Kl(E,t,n)},E.fitWidth=function(t,n){return Ql(E,t,n)},E.fitHeight=function(t,n){return Jl(E,t,n)},function(){return n=t.apply(this,arguments),E.invert=n.invert&&k,N()}}function ah(t){var n=0,e=lc/3,r=oh(t),i=r(n,e);return i.parallels=function(t){return arguments.length?r(n=t[0]*yc,e=t[1]*yc):[n*gc,e*gc]},i}function uh(t,n){var e=Sc(t),r=(e+Sc(n))/2;if(vc(r)0?n<-hc+fc&&(n=-hc+fc):n>hc-fc&&(n=hc-fc);var e=i/Tc(yh(n),r);return[e*Sc(r*t),i-e*mc(r*t)]}return o.invert=function(t,n){var e=i-n,o=Ec(r)*kc(t*t+e*e),a=bc(t,vc(e))*Ec(e);return e*r<0&&(a-=lc*Ec(t)*Ec(e)),[a/r,2*_c(Tc(i/o,1/r))-hc]},o}function _h(t,n){return[t,n]}function bh(t,n){var e=mc(t),r=t===n?Sc(t):(e-mc(n))/(n-t),i=e/r+t;if(vc(r)=0;)n+=e[r].value;else n=1;t.value=n}function Rh(t,n){t instanceof Map?(t=[void 0,t],void 0===n&&(n=Oh)):void 0===n&&(n=Fh);for(var e,r,i,o,a,u=new Bh(t),c=[u];e=c.pop();)if((i=n(e.data))&&(a=(i=Array.from(i)).length))for(e.children=i,o=a-1;o>=0;--o)c.push(r=i[o]=new Bh(i[o])),r.parent=e,r.depth=e.depth+1;return u.eachBefore(Ih)}function Fh(t){return t.children}function Oh(t){return Array.isArray(t)?t[1]:null}function Uh(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function Ih(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function Bh(t){this.data=t,this.depth=this.height=0,this.parent=null}function Yh(t){for(var n,e,r=0,i=(t=function(t){for(var n,e,r=t.length;r;)e=Math.random()*r--|0,n=t[r],t[r]=t[e],t[e]=n;return t}(Array.from(t))).length,o=[];r0&&e*e>r*r+i*i}function Xh(t,n){for(var e=0;e(a*=a)?(r=(f+a-i)/(2*f),o=Math.sqrt(Math.max(0,a/f-r*r)),e.x=t.x-r*u-o*c,e.y=t.y-r*c+o*u):(r=(f+i-a)/(2*f),o=Math.sqrt(Math.max(0,i/f-r*r)),e.x=n.x+r*u-o*c,e.y=n.y+r*c+o*u)):(e.x=n.x+e.r,e.y=n.y)}function Zh(t,n){var e=t.r+n.r-1e-6,r=n.x-t.x,i=n.y-t.y;return e>0&&e*e>r*r+i*i}function Kh(t){var n=t._,e=t.next._,r=n.r+e.r,i=(n.x*e.r+e.x*n.r)/r,o=(n.y*e.r+e.y*n.r)/r;return i*i+o*o}function Qh(t){this._=t,this.next=null,this.previous=null}function Jh(t){if(!(i=(t=function(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}(t)).length))return 0;var n,e,r,i,o,a,u,c,f,s,l;if((n=t[0]).x=0,n.y=0,!(i>1))return n.r;if(e=t[1],n.x=-e.r,e.x=n.r,e.y=0,!(i>2))return n.r+e.r;Wh(e,n,r=t[2]),n=new Qh(n),e=new Qh(e),r=new Qh(r),n.next=r.previous=e,e.next=n.previous=r,r.next=e.previous=n;t:for(u=3;ufc&&--i>0);return[t/(.8707+(o=r*r)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),r]},kh.invert=lh(Pc),Nh.invert=lh((function(t){return 2*_c(t)})),Ch.invert=function(t,n){return[-n,2*_c(wc(t))-hc]},Bh.prototype=Rh.prototype={constructor:Bh,count:function(){return this.eachAfter(qh)},each:function(t,n){let e=-1;for(const r of this)t.call(n,r,++e,this);return this},eachAfter:function(t,n){for(var e,r,i,o=this,a=[o],u=[],c=-1;o=a.pop();)if(u.push(o),e=o.children)for(r=0,i=e.length;r=0;--r)o.push(e[r]);return this},find:function(t,n){let e=-1;for(const r of this)if(t.call(n,r,++e,this))return r},sum:function(t){return this.eachAfter((function(n){for(var e=+t(n.data)||0,r=n.children,i=r&&r.length;--i>=0;)e+=r[i].value;n.value=e}))},sort:function(t){return this.eachBefore((function(n){n.children&&n.children.sort(t)}))},path:function(t){for(var n=this,e=function(t,n){if(t===n)return t;var e=t.ancestors(),r=n.ancestors(),i=null;t=e.pop(),n=r.pop();for(;t===n;)i=t,t=e.pop(),n=r.pop();return i}(n,t),r=[n];n!==e;)n=n.parent,r.push(n);for(var i=r.length;t!==e;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore((function(n){n.children||t.push(n)})),t},links:function(){var t=this,n=[];return t.each((function(e){e!==t&&n.push({source:e.parent,target:e})})),n},copy:function(){return Rh(this).eachBefore(Uh)},[Symbol.iterator]:function*(){var t,n,e,r,i=this,o=[i];do{for(t=o.reverse(),o=[];i=t.pop();)if(yield i,n=i.children)for(e=0,r=n.length;eh&&(h=u),y=s*s*g,(d=Math.max(h/y,y/l))>p){s-=u;break}p=d}v.push(a={value:s,dice:c1?n:1)},e}(xd);var Ad=function t(n){function e(t,e,r,i,o){if((a=t._squarify)&&a.ratio===n)for(var a,u,c,f,s,l=-1,h=a.length,d=t.value;++l1?n:1)},e}(xd);function Td(t,n,e){return(n[0]-t[0])*(e[1]-t[1])-(n[1]-t[1])*(e[0]-t[0])}function Sd(t,n){return t[0]-n[0]||t[1]-n[1]}function Ed(t){const n=t.length,e=[0,1];let r,i=2;for(r=2;r1&&Td(t[e[i-2]],t[e[i-1]],t[r])<=0;)--i;e[i++]=r}return e.slice(0,i)}var kd=Math.random,Nd=function t(n){function e(t,e){return t=null==t?0:+t,e=null==e?1:+e,1===arguments.length?(e=t,t=0):e-=t,function(){return n()*e+t}}return e.source=t,e}(kd),Cd=function t(n){function e(t,e){return arguments.length<2&&(e=t,t=0),t=Math.floor(t),e=Math.floor(e)-t,function(){return Math.floor(n()*e+t)}}return e.source=t,e}(kd),Pd=function t(n){function e(t,e){var r,i;return t=null==t?0:+t,e=null==e?1:+e,function(){var o;if(null!=r)o=r,r=null;else do{r=2*n()-1,o=2*n()-1,i=r*r+o*o}while(!i||i>1);return t+e*o*Math.sqrt(-2*Math.log(i)/i)}}return e.source=t,e}(kd),zd=function t(n){var e=Pd.source(n);function r(){var t=e.apply(this,arguments);return function(){return Math.exp(t())}}return r.source=t,r}(kd),Dd=function t(n){function e(t){return(t=+t)<=0?()=>0:function(){for(var e=0,r=t;r>1;--r)e+=n();return e+r*n()}}return e.source=t,e}(kd),qd=function t(n){var e=Dd.source(n);function r(t){if(0==(t=+t))return n;var r=e(t);return function(){return r()/t}}return r.source=t,r}(kd),Rd=function t(n){function e(t){return function(){return-Math.log1p(-n())/t}}return e.source=t,e}(kd),Fd=function t(n){function e(t){if((t=+t)<0)throw new RangeError("invalid alpha");return t=1/-t,function(){return Math.pow(1-n(),t)}}return e.source=t,e}(kd),Od=function t(n){function e(t){if((t=+t)<0||t>1)throw new RangeError("invalid p");return function(){return Math.floor(n()+t)}}return e.source=t,e}(kd),Ud=function t(n){function e(t){if((t=+t)<0||t>1)throw new RangeError("invalid p");return 0===t?()=>1/0:1===t?()=>1:(t=Math.log1p(-t),function(){return 1+Math.floor(Math.log1p(-n())/t)})}return e.source=t,e}(kd),Id=function t(n){var e=Pd.source(n)();function r(t,r){if((t=+t)<0)throw new RangeError("invalid k");if(0===t)return()=>0;if(r=null==r?1:+r,1===t)return()=>-Math.log1p(-n())*r;var i=(t<1?t+1:t)-1/3,o=1/(3*Math.sqrt(i)),a=t<1?()=>Math.pow(n(),1/t):()=>1;return function(){do{do{var t=e(),u=1+o*t}while(u<=0);u*=u*u;var c=1-n()}while(c>=1-.0331*t*t*t*t&&Math.log(c)>=.5*t*t+i*(1-u+Math.log(u)));return i*u*a()*r}}return r.source=t,r}(kd),Bd=function t(n){var e=Id.source(n);function r(t,n){var r=e(t),i=e(n);return function(){var t=r();return 0===t?0:t/(t+i())}}return r.source=t,r}(kd),Yd=function t(n){var e=Ud.source(n),r=Bd.source(n);function i(t,n){return t=+t,(n=+n)>=1?()=>t:n<=0?()=>0:function(){for(var i=0,o=t,a=n;o*a>16&&o*(1-a)>16;){var u=Math.floor((o+1)*a),c=r(u,o-u+1)();c<=a?(i+=u,o-=u,a=(a-c)/(1-c)):(o=u-1,a/=c)}for(var f=a<.5,s=e(f?a:1-a),l=s(),h=0;l<=o;++h)l+=s();return i+(f?h:o-h)}}return i.source=t,i}(kd),Ld=function t(n){function e(t,e,r){var i;return 0==(t=+t)?i=t=>-Math.log(t):(t=1/t,i=n=>Math.pow(n,t)),e=null==e?0:+e,r=null==r?1:+r,function(){return e+r*i(-Math.log1p(-n()))}}return e.source=t,e}(kd),jd=function t(n){function e(t,e){return t=null==t?0:+t,e=null==e?1:+e,function(){return t+e*Math.tan(Math.PI*n())}}return e.source=t,e}(kd),Hd=function t(n){function e(t,e){return t=null==t?0:+t,e=null==e?1:+e,function(){var r=n();return t+e*Math.log(r/(1-r))}}return e.source=t,e}(kd),Xd=function t(n){var e=Id.source(n),r=Yd.source(n);function i(t){return function(){for(var i=0,o=t;o>16;){var a=Math.floor(.875*o),u=e(a)();if(u>o)return i+r(a-1,o/u)();i+=a,o-=u}for(var c=-Math.log1p(-n()),f=0;c<=o;++f)c-=Math.log1p(-n());return i+f}}return i.source=t,i}(kd);const Gd=1/4294967296;function Vd(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}function $d(t,n){switch(arguments.length){case 0:break;case 1:"function"==typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"==typeof n?this.interpolator(n):this.range(n)}return this}const Wd=Symbol("implicit");function Zd(){var t=new Map,n=[],e=[],r=Wd;function i(i){var o=i+"",a=t.get(o);if(!a){if(r!==Wd)return r;t.set(o,a=n.push(i))}return e[(a-1)%e.length]}return i.domain=function(e){if(!arguments.length)return n.slice();n=[],t=new Map;for(const r of e){const e=r+"";t.has(e)||t.set(e,n.push(r))}return i},i.range=function(t){return arguments.length?(e=Array.from(t),i):e.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return Zd(n,e).unknown(r)},Vd.apply(i,arguments),i}function Kd(){var t,n,e=Zd().unknown(void 0),r=e.domain,i=e.range,o=0,a=1,u=!1,c=0,f=0,s=.5;function l(){var e=r().length,l=an&&(e=t,t=n,n=e),function(e){return Math.max(t,Math.min(n,e))}}(a[0],a[t-1])),r=t>2?ip:rp,i=o=null,l}function l(n){return isNaN(n=+n)?e:(i||(i=r(a.map(t),u,c)))(t(f(n)))}return l.invert=function(e){return f(n((o||(o=r(u,a.map(t),cr)))(e)))},l.domain=function(t){return arguments.length?(a=Array.from(t,Jd),s()):a.slice()},l.range=function(t){return arguments.length?(u=Array.from(t),s()):u.slice()},l.rangeRound=function(t){return u=Array.from(t),c=pr,s()},l.clamp=function(t){return arguments.length?(f=!!t||np,s()):f!==np},l.interpolate=function(t){return arguments.length?(c=t,s()):c},l.unknown=function(t){return arguments.length?(e=t,l):e},function(e,r){return t=e,n=r,s()}}function up(){return ap()(np,np)}function cp(n,e,r,i){var o,a=S(n,e,r);switch((i=Zu(null==i?",f":i)).type){case"s":var u=Math.max(Math.abs(n),Math.abs(e));return null!=i.precision||isNaN(o=uc(a,u))||(i.precision=o),t.formatPrefix(i,u);case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(o=cc(a,Math.max(Math.abs(n),Math.abs(e))))||(i.precision=o-("e"===i.type));break;case"f":case"%":null!=i.precision||isNaN(o=ac(a))||(i.precision=o-2*("%"===i.type))}return t.format(i)}function fp(t){var n=t.domain;return t.ticks=function(t){var e=n();return A(e[0],e[e.length-1],null==t?10:t)},t.tickFormat=function(t,e){var r=n();return cp(r[0],r[r.length-1],null==t?10:t,e)},t.nice=function(e){null==e&&(e=10);var r,i,o=n(),a=0,u=o.length-1,c=o[a],f=o[u],s=10;for(f0;){if((i=T(c,f,e))===r)return o[a]=c,o[u]=f,n(o);if(i>0)c=Math.floor(c/i)*i,f=Math.ceil(f/i)*i;else{if(!(i<0))break;c=Math.ceil(c*i)/i,f=Math.floor(f*i)/i}r=i}return t},t}function sp(t,n){var e,r=0,i=(t=t.slice()).length-1,o=t[r],a=t[i];return a0){for(;h<=d;++h)for(s=1,f=r(h);sc)break;g.push(l)}}else for(;h<=d;++h)for(s=a-1,f=r(h);s>=1;--s)if(!((l=f*s)c)break;g.push(l)}2*g.length0))return u;do{u.push(a=new Date(+e)),n(e,o),t(e)}while(a=n)for(;t(n),!e(n);)n.setTime(n-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;n(t,-1),!e(t););else for(;--r>=0;)for(;n(t,1),!e(t););}))},e&&(i.count=function(n,r){return kp.setTime(+n),Np.setTime(+r),t(kp),t(Np),Math.floor(e(kp,Np))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(n){return r(n)%t==0}:function(n){return i.count(0,n)%t==0}):i:null}),i}var Pp=Cp((function(){}),(function(t,n){t.setTime(+t+n)}),(function(t,n){return n-t}));Pp.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Cp((function(n){n.setTime(Math.floor(n/t)*t)}),(function(n,e){n.setTime(+n+e*t)}),(function(n,e){return(e-n)/t})):Pp:null};var zp=Pp.range,Dp=1e3,qp=6e4,Rp=36e5,Fp=864e5,Op=6048e5,Up=Cp((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,n){t.setTime(+t+n*Dp)}),(function(t,n){return(n-t)/Dp}),(function(t){return t.getUTCSeconds()})),Ip=Up.range,Bp=Cp((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Dp)}),(function(t,n){t.setTime(+t+n*qp)}),(function(t,n){return(n-t)/qp}),(function(t){return t.getMinutes()})),Yp=Bp.range,Lp=Cp((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Dp-t.getMinutes()*qp)}),(function(t,n){t.setTime(+t+n*Rp)}),(function(t,n){return(n-t)/Rp}),(function(t){return t.getHours()})),jp=Lp.range,Hp=Cp(t=>t.setHours(0,0,0,0),(t,n)=>t.setDate(t.getDate()+n),(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*qp)/Fp,t=>t.getDate()-1),Xp=Hp.range;function Gp(t){return Cp((function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)}),(function(t,n){t.setDate(t.getDate()+7*n)}),(function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*qp)/Op}))}var Vp=Gp(0),$p=Gp(1),Wp=Gp(2),Zp=Gp(3),Kp=Gp(4),Qp=Gp(5),Jp=Gp(6),tg=Vp.range,ng=$p.range,eg=Wp.range,rg=Zp.range,ig=Kp.range,og=Qp.range,ag=Jp.range,ug=Cp((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,n){t.setMonth(t.getMonth()+n)}),(function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()})),cg=ug.range,fg=Cp((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n)}),(function(t,n){return n.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));fg.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Cp((function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)}),(function(n,e){n.setFullYear(n.getFullYear()+e*t)})):null};var sg=fg.range,lg=Cp((function(t){t.setUTCSeconds(0,0)}),(function(t,n){t.setTime(+t+n*qp)}),(function(t,n){return(n-t)/qp}),(function(t){return t.getUTCMinutes()})),hg=lg.range,dg=Cp((function(t){t.setUTCMinutes(0,0,0)}),(function(t,n){t.setTime(+t+n*Rp)}),(function(t,n){return(n-t)/Rp}),(function(t){return t.getUTCHours()})),pg=dg.range,gg=Cp((function(t){t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+n)}),(function(t,n){return(n-t)/Fp}),(function(t){return t.getUTCDate()-1})),yg=gg.range;function vg(t){return Cp((function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+7*n)}),(function(t,n){return(n-t)/Op}))}var _g=vg(0),bg=vg(1),mg=vg(2),xg=vg(3),wg=vg(4),Mg=vg(5),Ag=vg(6),Tg=_g.range,Sg=bg.range,Eg=mg.range,kg=xg.range,Ng=wg.range,Cg=Mg.range,Pg=Ag.range,zg=Cp((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCMonth(t.getUTCMonth()+n)}),(function(t,n){return n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()})),Dg=zg.range,qg=Cp((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)}),(function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));qg.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Cp((function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)}),(function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)})):null};var Rg=qg.range;function Fg(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Og(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Ug(t,n,e){return{y:t,m:n,d:e,H:0,M:0,S:0,L:0}}function Ig(t){var n=t.dateTime,e=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,u=t.months,c=t.shortMonths,f=Vg(i),s=$g(i),l=Vg(o),h=$g(o),d=Vg(a),p=$g(a),g=Vg(u),y=$g(u),v=Vg(c),_=$g(c),b={a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return u[t.getMonth()]},c:null,d:gy,e:gy,f:my,g:Py,G:Dy,H:yy,I:vy,j:_y,L:by,m:xy,M:wy,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:ev,s:rv,S:My,u:Ay,U:Ty,V:Ey,w:ky,W:Ny,x:null,X:null,y:Cy,Y:zy,Z:qy,"%":nv},m={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return u[t.getUTCMonth()]},c:null,d:Ry,e:Ry,f:By,g:Ky,G:Jy,H:Fy,I:Oy,j:Uy,L:Iy,m:Yy,M:Ly,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:ev,s:rv,S:jy,u:Hy,U:Xy,V:Vy,w:$y,W:Wy,x:null,X:null,y:Zy,Y:Qy,Z:tv,"%":nv},x={a:function(t,n,e){var r=d.exec(n.slice(e));return r?(t.w=p.get(r[0].toLowerCase()),e+r[0].length):-1},A:function(t,n,e){var r=l.exec(n.slice(e));return r?(t.w=h.get(r[0].toLowerCase()),e+r[0].length):-1},b:function(t,n,e){var r=v.exec(n.slice(e));return r?(t.m=_.get(r[0].toLowerCase()),e+r[0].length):-1},B:function(t,n,e){var r=g.exec(n.slice(e));return r?(t.m=y.get(r[0].toLowerCase()),e+r[0].length):-1},c:function(t,e,r){return A(t,n,e,r)},d:oy,e:oy,f:ly,g:ny,G:ty,H:uy,I:uy,j:ay,L:sy,m:iy,M:cy,p:function(t,n,e){var r=f.exec(n.slice(e));return r?(t.p=s.get(r[0].toLowerCase()),e+r[0].length):-1},q:ry,Q:dy,s:py,S:fy,u:Zg,U:Kg,V:Qg,w:Wg,W:Jg,x:function(t,n,r){return A(t,e,n,r)},X:function(t,n,e){return A(t,r,n,e)},y:ny,Y:ty,Z:ey,"%":hy};function w(t,n){return function(e){var r,i,o,a=[],u=-1,c=0,f=t.length;for(e instanceof Date||(e=new Date(+e));++u53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=Og(Ug(o.y,0,1))).getUTCDay(),r=i>4||0===i?bg.ceil(r):bg(r),r=gg.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=Fg(Ug(o.y,0,1))).getDay(),r=i>4||0===i?$p.ceil(r):$p(r),r=Hp.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?Og(Ug(o.y,0,1)).getUTCDay():Fg(Ug(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,Og(o)):Fg(o)}}function A(t,n,e,r){for(var i,o,a=0,u=n.length,c=e.length;a=c)return-1;if(37===(i=n.charCodeAt(a++))){if(i=n.charAt(a++),!(o=x[i in Yg?n.charAt(a++):i])||(r=o(t,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}return b.x=w(e,b),b.X=w(r,b),b.c=w(n,b),m.x=w(e,m),m.X=w(r,m),m.c=w(n,m),{format:function(t){var n=w(t+="",b);return n.toString=function(){return t},n},parse:function(t){var n=M(t+="",!1);return n.toString=function(){return t},n},utcFormat:function(t){var n=w(t+="",m);return n.toString=function(){return t},n},utcParse:function(t){var n=M(t+="",!0);return n.toString=function(){return t},n}}}var Bg,Yg={"-":"",_:" ",0:"0"},Lg=/^\s*\d+/,jg=/^%/,Hg=/[\\^$*+?|[\]().{}]/g;function Xg(t,n,e){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o[t.toLowerCase(),n]))}function Wg(t,n,e){var r=Lg.exec(n.slice(e,e+1));return r?(t.w=+r[0],e+r[0].length):-1}function Zg(t,n,e){var r=Lg.exec(n.slice(e,e+1));return r?(t.u=+r[0],e+r[0].length):-1}function Kg(t,n,e){var r=Lg.exec(n.slice(e,e+2));return r?(t.U=+r[0],e+r[0].length):-1}function Qg(t,n,e){var r=Lg.exec(n.slice(e,e+2));return r?(t.V=+r[0],e+r[0].length):-1}function Jg(t,n,e){var r=Lg.exec(n.slice(e,e+2));return r?(t.W=+r[0],e+r[0].length):-1}function ty(t,n,e){var r=Lg.exec(n.slice(e,e+4));return r?(t.y=+r[0],e+r[0].length):-1}function ny(t,n,e){var r=Lg.exec(n.slice(e,e+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),e+r[0].length):-1}function ey(t,n,e){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(e,e+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),e+r[0].length):-1}function ry(t,n,e){var r=Lg.exec(n.slice(e,e+1));return r?(t.q=3*r[0]-3,e+r[0].length):-1}function iy(t,n,e){var r=Lg.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function oy(t,n,e){var r=Lg.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function ay(t,n,e){var r=Lg.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function uy(t,n,e){var r=Lg.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function cy(t,n,e){var r=Lg.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function fy(t,n,e){var r=Lg.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function sy(t,n,e){var r=Lg.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function ly(t,n,e){var r=Lg.exec(n.slice(e,e+6));return r?(t.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function hy(t,n,e){var r=jg.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function dy(t,n,e){var r=Lg.exec(n.slice(e));return r?(t.Q=+r[0],e+r[0].length):-1}function py(t,n,e){var r=Lg.exec(n.slice(e));return r?(t.s=+r[0],e+r[0].length):-1}function gy(t,n){return Xg(t.getDate(),n,2)}function yy(t,n){return Xg(t.getHours(),n,2)}function vy(t,n){return Xg(t.getHours()%12||12,n,2)}function _y(t,n){return Xg(1+Hp.count(fg(t),t),n,3)}function by(t,n){return Xg(t.getMilliseconds(),n,3)}function my(t,n){return by(t,n)+"000"}function xy(t,n){return Xg(t.getMonth()+1,n,2)}function wy(t,n){return Xg(t.getMinutes(),n,2)}function My(t,n){return Xg(t.getSeconds(),n,2)}function Ay(t){var n=t.getDay();return 0===n?7:n}function Ty(t,n){return Xg(Vp.count(fg(t)-1,t),n,2)}function Sy(t){var n=t.getDay();return n>=4||0===n?Kp(t):Kp.ceil(t)}function Ey(t,n){return t=Sy(t),Xg(Kp.count(fg(t),t)+(4===fg(t).getDay()),n,2)}function ky(t){return t.getDay()}function Ny(t,n){return Xg($p.count(fg(t)-1,t),n,2)}function Cy(t,n){return Xg(t.getFullYear()%100,n,2)}function Py(t,n){return Xg((t=Sy(t)).getFullYear()%100,n,2)}function zy(t,n){return Xg(t.getFullYear()%1e4,n,4)}function Dy(t,n){var e=t.getDay();return Xg((t=e>=4||0===e?Kp(t):Kp.ceil(t)).getFullYear()%1e4,n,4)}function qy(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+Xg(n/60|0,"0",2)+Xg(n%60,"0",2)}function Ry(t,n){return Xg(t.getUTCDate(),n,2)}function Fy(t,n){return Xg(t.getUTCHours(),n,2)}function Oy(t,n){return Xg(t.getUTCHours()%12||12,n,2)}function Uy(t,n){return Xg(1+gg.count(qg(t),t),n,3)}function Iy(t,n){return Xg(t.getUTCMilliseconds(),n,3)}function By(t,n){return Iy(t,n)+"000"}function Yy(t,n){return Xg(t.getUTCMonth()+1,n,2)}function Ly(t,n){return Xg(t.getUTCMinutes(),n,2)}function jy(t,n){return Xg(t.getUTCSeconds(),n,2)}function Hy(t){var n=t.getUTCDay();return 0===n?7:n}function Xy(t,n){return Xg(_g.count(qg(t)-1,t),n,2)}function Gy(t){var n=t.getUTCDay();return n>=4||0===n?wg(t):wg.ceil(t)}function Vy(t,n){return t=Gy(t),Xg(wg.count(qg(t),t)+(4===qg(t).getUTCDay()),n,2)}function $y(t){return t.getUTCDay()}function Wy(t,n){return Xg(bg.count(qg(t)-1,t),n,2)}function Zy(t,n){return Xg(t.getUTCFullYear()%100,n,2)}function Ky(t,n){return Xg((t=Gy(t)).getUTCFullYear()%100,n,2)}function Qy(t,n){return Xg(t.getUTCFullYear()%1e4,n,4)}function Jy(t,n){var e=t.getUTCDay();return Xg((t=e>=4||0===e?wg(t):wg.ceil(t)).getUTCFullYear()%1e4,n,4)}function tv(){return"+0000"}function nv(){return"%"}function ev(t){return+t}function rv(t){return Math.floor(+t/1e3)}function iv(n){return Bg=Ig(n),t.timeFormat=Bg.format,t.timeParse=Bg.parse,t.utcFormat=Bg.utcFormat,t.utcParse=Bg.utcParse,Bg}iv({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var ov="%Y-%m-%dT%H:%M:%S.%LZ";var av=Date.prototype.toISOString?function(t){return t.toISOString()}:t.utcFormat(ov);var uv=+new Date("2000-01-01T00:00:00.000Z")?function(t){var n=new Date(t);return isNaN(n)?null:n}:t.utcParse(ov),cv=1e3,fv=6e4,sv=36e5,lv=864e5,hv=2592e6,dv=31536e6;function pv(t){return new Date(t)}function gv(t){return t instanceof Date?+t:+new Date(+t)}function yv(t,n,r,i,o,a,u,c,f){var s=up(),l=s.invert,h=s.domain,d=f(".%L"),p=f(":%S"),g=f("%I:%M"),y=f("%I %p"),v=f("%a %d"),_=f("%b %d"),b=f("%B"),m=f("%Y"),x=[[u,1,cv],[u,5,5e3],[u,15,15e3],[u,30,3e4],[a,1,fv],[a,5,3e5],[a,15,9e5],[a,30,18e5],[o,1,sv],[o,3,108e5],[o,6,216e5],[o,12,432e5],[i,1,lv],[i,2,1728e5],[r,1,6048e5],[n,1,hv],[n,3,7776e6],[t,1,dv]];function w(e){return(u(e)er(t[t.length-1]),qv=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(wv),Rv=Dv(qv),Fv=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(wv),Ov=Dv(Fv),Uv=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(wv),Iv=Dv(Uv),Bv=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(wv),Yv=Dv(Bv),Lv=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(wv),jv=Dv(Lv),Hv=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(wv),Xv=Dv(Hv),Gv=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(wv),Vv=Dv(Gv),$v=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(wv),Wv=Dv($v),Zv=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(wv),Kv=Dv(Zv),Qv=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(wv),Jv=Dv(Qv),t_=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(wv),n_=Dv(t_),e_=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(wv),r_=Dv(e_),i_=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(wv),o_=Dv(i_),a_=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(wv),u_=Dv(a_),c_=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(wv),f_=Dv(c_),s_=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(wv),l_=Dv(s_),h_=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(wv),d_=Dv(h_),p_=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(wv),g_=Dv(p_),y_=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(wv),v_=Dv(y_),__=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(wv),b_=Dv(__),m_=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(wv),x_=Dv(m_),w_=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(wv),M_=Dv(w_),A_=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(wv),T_=Dv(A_),S_=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(wv),E_=Dv(S_),k_=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(wv),N_=Dv(k_),C_=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(wv),P_=Dv(C_),z_=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(wv),D_=Dv(z_);var q_=zr(He(300,.5,0),He(-240,.5,1)),R_=zr(He(-100,.75,.35),He(80,1.5,.8)),F_=zr(He(260,.75,.35),He(80,1.5,.8)),O_=He();var U_=ue(),I_=Math.PI/3,B_=2*Math.PI/3;function Y_(t){var n=t.length;return function(e){return t[Math.max(0,Math.min(n-1,Math.floor(e*n)))]}}var L_=Y_(wv("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),j_=Y_(wv("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),H_=Y_(wv("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),X_=Y_(wv("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function G_(t){return function(){return t}}var V_=Math.abs,$_=Math.atan2,W_=Math.cos,Z_=Math.max,K_=Math.min,Q_=Math.sin,J_=Math.sqrt,tb=1e-12,nb=Math.PI,eb=nb/2,rb=2*nb;function ib(t){return t>1?0:t<-1?nb:Math.acos(t)}function ob(t){return t>=1?eb:t<=-1?-eb:Math.asin(t)}function ab(t){return t.innerRadius}function ub(t){return t.outerRadius}function cb(t){return t.startAngle}function fb(t){return t.endAngle}function sb(t){return t&&t.padAngle}function lb(t,n,e,r,i,o,a,u){var c=e-t,f=r-n,s=a-i,l=u-o,h=l*c-s*f;if(!(h*hC*C+P*P&&(A=S,T=E),{cx:A,cy:T,x01:-s,y01:-l,x11:A*(i/x-1),y11:T*(i/x-1)}}var db=Array.prototype.slice;function pb(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function gb(t){this._context=t}function yb(t){return new gb(t)}function vb(t){return t[0]}function _b(t){return t[1]}function bb(t,n){var e=G_(!0),r=null,i=yb,o=null;function a(a){var u,c,f,s=(a=pb(a)).length,l=!1;for(null==r&&(o=i(f=Jo())),u=0;u<=s;++u)!(u=s;--l)u.point(y[l],v[l]);u.lineEnd(),u.areaEnd()}g&&(y[f]=+t(h,f,c),v[f]=+n(h,f,c),u.point(r?+r(h,f,c):y[f],e?+e(h,f,c):v[f]))}if(d)return u=null,d+""||null}function f(){return bb().defined(i).curve(a).context(o)}return t="function"==typeof t?t:void 0===t?vb:G_(+t),n="function"==typeof n?n:G_(void 0===n?0:+n),e="function"==typeof e?e:void 0===e?_b:G_(+e),c.x=function(n){return arguments.length?(t="function"==typeof n?n:G_(+n),r=null,c):t},c.x0=function(n){return arguments.length?(t="function"==typeof n?n:G_(+n),c):t},c.x1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:G_(+t),c):r},c.y=function(t){return arguments.length?(n="function"==typeof t?t:G_(+t),e=null,c):n},c.y0=function(t){return arguments.length?(n="function"==typeof t?t:G_(+t),c):n},c.y1=function(t){return arguments.length?(e=null==t?null:"function"==typeof t?t:G_(+t),c):e},c.lineX0=c.lineY0=function(){return f().x(t).y(n)},c.lineY1=function(){return f().x(t).y(e)},c.lineX1=function(){return f().x(r).y(n)},c.defined=function(t){return arguments.length?(i="function"==typeof t?t:G_(!!t),c):i},c.curve=function(t){return arguments.length?(a=t,null!=o&&(u=a(o)),c):a},c.context=function(t){return arguments.length?(null==t?o=u=null:u=a(o=t),c):o},c}function xb(t,n){return nt?1:n>=t?0:NaN}function wb(t){return t}gb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}};var Mb=Tb(yb);function Ab(t){this._curve=t}function Tb(t){function n(n){return new Ab(t(n))}return n._curve=t,n}function Sb(t){var n=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?n(Tb(t)):n()._curve},t}function Eb(){return Sb(bb().curve(Mb))}function kb(){var t=mb().curve(Mb),n=t.curve,e=t.lineX0,r=t.lineX1,i=t.lineY0,o=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return Sb(e())},delete t.lineX0,t.lineEndAngle=function(){return Sb(r())},delete t.lineX1,t.lineInnerRadius=function(){return Sb(i())},delete t.lineY0,t.lineOuterRadius=function(){return Sb(o())},delete t.lineY1,t.curve=function(t){return arguments.length?n(Tb(t)):n()._curve},t}function Nb(t,n){return[(n=+n)*Math.cos(t-=Math.PI/2),n*Math.sin(t)]}function Cb(t){return t.source}function Pb(t){return t.target}function zb(t){var n=Cb,e=Pb,r=vb,i=_b,o=null;function a(){var a,u=db.call(arguments),c=n.apply(this,u),f=e.apply(this,u);if(o||(o=a=Jo()),t(o,+r.apply(this,(u[0]=c,u)),+i.apply(this,u),+r.apply(this,(u[0]=f,u)),+i.apply(this,u)),a)return o=null,a+""||null}return a.source=function(t){return arguments.length?(n=t,a):n},a.target=function(t){return arguments.length?(e=t,a):e},a.x=function(t){return arguments.length?(r="function"==typeof t?t:G_(+t),a):r},a.y=function(t){return arguments.length?(i="function"==typeof t?t:G_(+t),a):i},a.context=function(t){return arguments.length?(o=null==t?null:t,a):o},a}function Db(t,n,e,r,i){t.moveTo(n,e),t.bezierCurveTo(n=(n+r)/2,e,n,i,r,i)}function qb(t,n,e,r,i){t.moveTo(n,e),t.bezierCurveTo(n,e=(e+i)/2,r,e,r,i)}function Rb(t,n,e,r,i){var o=Nb(n,e),a=Nb(n,e=(e+i)/2),u=Nb(r,e),c=Nb(r,i);t.moveTo(o[0],o[1]),t.bezierCurveTo(a[0],a[1],u[0],u[1],c[0],c[1])}Ab.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,n){this._curve.point(n*Math.sin(t),n*-Math.cos(t))}};var Fb={draw:function(t,n){var e=Math.sqrt(n/nb);t.moveTo(e,0),t.arc(0,0,e,0,rb)}},Ob={draw:function(t,n){var e=Math.sqrt(n/5)/2;t.moveTo(-3*e,-e),t.lineTo(-e,-e),t.lineTo(-e,-3*e),t.lineTo(e,-3*e),t.lineTo(e,-e),t.lineTo(3*e,-e),t.lineTo(3*e,e),t.lineTo(e,e),t.lineTo(e,3*e),t.lineTo(-e,3*e),t.lineTo(-e,e),t.lineTo(-3*e,e),t.closePath()}},Ub=Math.sqrt(1/3),Ib=2*Ub,Bb={draw:function(t,n){var e=Math.sqrt(n/Ib),r=e*Ub;t.moveTo(0,-e),t.lineTo(r,0),t.lineTo(0,e),t.lineTo(-r,0),t.closePath()}},Yb=Math.sin(nb/10)/Math.sin(7*nb/10),Lb=Math.sin(rb/10)*Yb,jb=-Math.cos(rb/10)*Yb,Hb={draw:function(t,n){var e=Math.sqrt(.8908130915292852*n),r=Lb*e,i=jb*e;t.moveTo(0,-e),t.lineTo(r,i);for(var o=1;o<5;++o){var a=rb*o/5,u=Math.cos(a),c=Math.sin(a);t.lineTo(c*e,-u*e),t.lineTo(u*r-c*i,c*r+u*i)}t.closePath()}},Xb={draw:function(t,n){var e=Math.sqrt(n),r=-e/2;t.rect(r,r,e,e)}},Gb=Math.sqrt(3),Vb={draw:function(t,n){var e=-Math.sqrt(n/(3*Gb));t.moveTo(0,2*e),t.lineTo(-Gb*e,-e),t.lineTo(Gb*e,-e),t.closePath()}},$b=-.5,Wb=Math.sqrt(3)/2,Zb=1/Math.sqrt(12),Kb=3*(Zb/2+1),Qb={draw:function(t,n){var e=Math.sqrt(n/Kb),r=e/2,i=e*Zb,o=r,a=e*Zb+e,u=-o,c=a;t.moveTo(r,i),t.lineTo(o,a),t.lineTo(u,c),t.lineTo($b*r-Wb*i,Wb*r+$b*i),t.lineTo($b*o-Wb*a,Wb*o+$b*a),t.lineTo($b*u-Wb*c,Wb*u+$b*c),t.lineTo($b*r+Wb*i,$b*i-Wb*r),t.lineTo($b*o+Wb*a,$b*a-Wb*o),t.lineTo($b*u+Wb*c,$b*c-Wb*u),t.closePath()}},Jb=[Fb,Ob,Bb,Xb,Hb,Vb,Qb];function tm(){}function nm(t,n,e){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+n)/6,(t._y0+4*t._y1+e)/6)}function em(t){this._context=t}function rm(t){this._context=t}function im(t){this._context=t}function om(t,n){this._basis=new em(t),this._beta=n}em.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:nm(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:nm(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},rm.prototype={areaStart:tm,areaEnd:tm,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x2=t,this._y2=n;break;case 1:this._point=2,this._x3=t,this._y3=n;break;case 2:this._point=3,this._x4=t,this._y4=n,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+n)/6);break;default:nm(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},im.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var e=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+n)/6;this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 3:this._point=4;default:nm(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},om.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,n=this._y,e=t.length-1;if(e>0)for(var r,i=t[0],o=n[0],a=t[e]-i,u=n[e]-o,c=-1;++c<=e;)r=c/e,this._basis.point(this._beta*t[c]+(1-this._beta)*(i+r*a),this._beta*n[c]+(1-this._beta)*(o+r*u));this._x=this._y=null,this._basis.lineEnd()},point:function(t,n){this._x.push(+t),this._y.push(+n)}};var am=function t(n){function e(t){return 1===n?new em(t):new om(t,n)}return e.beta=function(n){return t(+n)},e}(.85);function um(t,n,e){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-n),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function cm(t,n){this._context=t,this._k=(1-n)/6}cm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:um(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2,this._x1=t,this._y1=n;break;case 2:this._point=3;default:um(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var fm=function t(n){function e(t){return new cm(t,n)}return e.tension=function(n){return t(+n)},e}(0);function sm(t,n){this._context=t,this._k=(1-n)/6}sm.prototype={areaStart:tm,areaEnd:tm,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:um(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var lm=function t(n){function e(t){return new sm(t,n)}return e.tension=function(n){return t(+n)},e}(0);function hm(t,n){this._context=t,this._k=(1-n)/6}hm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:um(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var dm=function t(n){function e(t){return new hm(t,n)}return e.tension=function(n){return t(+n)},e}(0);function pm(t,n,e){var r=t._x1,i=t._y1,o=t._x2,a=t._y2;if(t._l01_a>tb){var u=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*u-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,i=(i*u-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>tb){var f=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,s=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*f+t._x1*t._l23_2a-n*t._l12_2a)/s,a=(a*f+t._y1*t._l23_2a-e*t._l12_2a)/s}t._context.bezierCurveTo(r,i,o,a,t._x2,t._y2)}function gm(t,n){this._context=t,this._alpha=n}gm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3;default:pm(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var ym=function t(n){function e(t){return n?new gm(t,n):new cm(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function vm(t,n){this._context=t,this._alpha=n}vm.prototype={areaStart:tm,areaEnd:tm,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:pm(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var _m=function t(n){function e(t){return n?new vm(t,n):new sm(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function bm(t,n){this._context=t,this._alpha=n}bm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:pm(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var mm=function t(n){function e(t){return n?new bm(t,n):new hm(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function xm(t){this._context=t}function wm(t){return t<0?-1:1}function Mm(t,n,e){var r=t._x1-t._x0,i=n-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),a=(e-t._y1)/(i||r<0&&-0),u=(o*i+a*r)/(r+i);return(wm(o)+wm(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(u))||0}function Am(t,n){var e=t._x1-t._x0;return e?(3*(t._y1-t._y0)/e-n)/2:n}function Tm(t,n,e){var r=t._x0,i=t._y0,o=t._x1,a=t._y1,u=(o-r)/3;t._context.bezierCurveTo(r+u,i+u*n,o-u,a-u*e,o,a)}function Sm(t){this._context=t}function Em(t){this._context=new km(t)}function km(t){this._context=t}function Nm(t){this._context=t}function Cm(t){var n,e,r=t.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=t[0]+2*t[1],n=1;n=0;--n)i[n]=(a[n]-i[n+1])/o[n];for(o[r-1]=(t[r]+i[r-1])/2,n=0;n1)for(var e,r,i,o=1,a=t[n[0]],u=a.length;o=0;)e[n]=n;return e}function qm(t,n){return t[n]}function Rm(t){const n=[];return n.key=t,n}function Fm(t){var n=t.map(Om);return Dm(t).sort((function(t,e){return n[t]-n[e]}))}function Om(t){for(var n,e=-1,r=0,i=t.length,o=-1/0;++eo&&(o=n,r=e);return r}function Um(t){var n=t.map(Im);return Dm(t).sort((function(t,e){return n[t]-n[e]}))}function Im(t){for(var n,e=0,r=-1,i=t.length;++r=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,n),this._context.lineTo(t,n);else{var e=this._x*(1-this._t)+t*this._t;this._context.lineTo(e,this._y),this._context.lineTo(e,n)}}this._x=t,this._y=n}};var Bm=t=>()=>t;function Ym(t,{sourceEvent:n,target:e,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:e,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function Lm(t,n,e){this.k=t,this.x=n,this.y=e}Lm.prototype={constructor:Lm,scale:function(t){return 1===t?this:new Lm(this.k*t,this.x,this.y)},translate:function(t,n){return 0===t&0===n?this:new Lm(this.k,this.x+this.k*t,this.y+this.k*n)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var jm=new Lm(1,0,0);function Hm(t){for(;!t.__zoom;)if(!(t=t.parentNode))return jm;return t.__zoom}function Xm(t){t.stopImmediatePropagation()}function Gm(t){t.preventDefault(),t.stopImmediatePropagation()}function Vm(t){return!(t.ctrlKey&&"wheel"!==t.type||t.button)}function $m(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function Wm(){return this.__zoom||jm}function Zm(t){return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function Km(){return navigator.maxTouchPoints||"ontouchstart"in this}function Qm(t,n,e){var r=t.invertX(n[0][0])-e[0][0],i=t.invertX(n[1][0])-e[1][0],o=t.invertY(n[0][1])-e[0][1],a=t.invertY(n[1][1])-e[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}Hm.prototype=Lm.prototype,t.Adder=g,t.Delaunay=Xa,t.FormatSpecifier=Ku,t.Voronoi=Ia,t.active=function(t,n){var e,r,i=t.__transition;if(i)for(r in n=null==n?null:n+"",i)if((e=i[r]).state>1&&e.name===n)return new Di([[t]],uo,n,+r);return null},t.arc=function(){var t=ab,n=ub,e=G_(0),r=null,i=cb,o=fb,a=sb,u=null;function c(){var c,f,s=+t.apply(this,arguments),l=+n.apply(this,arguments),h=i.apply(this,arguments)-eb,d=o.apply(this,arguments)-eb,p=V_(d-h),g=d>h;if(u||(u=c=Jo()),ltb)if(p>rb-tb)u.moveTo(l*W_(h),l*Q_(h)),u.arc(0,0,l,h,d,!g),s>tb&&(u.moveTo(s*W_(d),s*Q_(d)),u.arc(0,0,s,d,h,g));else{var y,v,_=h,b=d,m=h,x=d,w=p,M=p,A=a.apply(this,arguments)/2,T=A>tb&&(r?+r.apply(this,arguments):J_(s*s+l*l)),S=K_(V_(l-s)/2,+e.apply(this,arguments)),E=S,k=S;if(T>tb){var N=ob(T/s*Q_(A)),C=ob(T/l*Q_(A));(w-=2*N)>tb?(m+=N*=g?1:-1,x-=N):(w=0,m=x=(h+d)/2),(M-=2*C)>tb?(_+=C*=g?1:-1,b-=C):(M=0,_=b=(h+d)/2)}var P=l*W_(_),z=l*Q_(_),D=s*W_(x),q=s*Q_(x);if(S>tb){var R,F=l*W_(b),O=l*Q_(b),U=s*W_(m),I=s*Q_(m);if(ptb?k>tb?(y=hb(U,I,P,z,l,k,g),v=hb(F,O,D,q,l,k,g),u.moveTo(y.cx+y.x01,y.cy+y.y01),ktb&&w>tb?E>tb?(y=hb(D,q,F,O,s,-E,g),v=hb(P,z,U,I,s,-E,g),u.lineTo(y.cx+y.x01,y.cy+y.y01),E>a,f=i+2*u>>a,s=ha(20);function l(r){var i=new Float32Array(c*f),l=new Float32Array(c*f);r.forEach((function(r,o,s){var l=+t(r,o,s)+u>>a,h=+n(r,o,s)+u>>a,d=+e(r,o,s);l>=0&&l=0&&h>a),ma({width:c,height:f,data:l},{width:c,height:f,data:i},o>>a),ba({width:c,height:f,data:i},{width:c,height:f,data:l},o>>a),ma({width:c,height:f,data:l},{width:c,height:f,data:i},o>>a),ba({width:c,height:f,data:i},{width:c,height:f,data:l},o>>a),ma({width:c,height:f,data:l},{width:c,height:f,data:i},o>>a);var d=s(i);if(!Array.isArray(d)){var p=C(i);d=S(0,p,d),(d=B(0,Math.floor(p/d)*d,d)).shift()}return _a().thresholds(d).size([c,f])(i).map(h)}function h(t){return t.value*=Math.pow(2,-2*a),t.coordinates.forEach(d),t}function d(t){t.forEach(p)}function p(t){t.forEach(g)}function g(t){t[0]=t[0]*Math.pow(2,a)-u,t[1]=t[1]*Math.pow(2,a)-u}function y(){return c=r+2*(u=3*o)>>a,f=i+2*u>>a,l}return l.x=function(n){return arguments.length?(t="function"==typeof n?n:ha(+n),l):t},l.y=function(t){return arguments.length?(n="function"==typeof t?t:ha(+t),l):n},l.weight=function(t){return arguments.length?(e="function"==typeof t?t:ha(+t),l):e},l.size=function(t){if(!arguments.length)return[r,i];var n=+t[0],e=+t[1];if(!(n>=0&&e>=0))throw new Error("invalid size");return r=n,i=e,y()},l.cellSize=function(t){if(!arguments.length)return 1<=1))throw new Error("invalid cell size");return a=Math.floor(Math.log(t)/Math.LN2),y()},l.thresholds=function(t){return arguments.length?(s="function"==typeof t?t:Array.isArray(t)?ha(sa.call(t)):ha(t),l):s},l.bandwidth=function(t){if(!arguments.length)return Math.sqrt(o*(o+1));if(!((t=+t)>=0))throw new Error("invalid bandwidth");return o=Math.round((Math.sqrt(4*t*t+1)-1)/2),y()},l},t.contours=_a,t.count=c,t.create=function(t){return Mn(pt(t).call(document.documentElement))},t.creator=pt,t.cross=function(...t){const n="function"==typeof t[t.length-1]&&function(t){return n=>t(...n)}(t.pop()),e=(t=t.map(l)).map(f),r=t.length-1,i=new Array(r+1).fill(0),o=[];if(r<0||e.some(s))return o;for(;;){o.push(i.map((n,e)=>t[e][n]));let a=r;for(;++i[a]===e[a];){if(0===a)return n?o.map(n):o;i[a--]=0}}},t.csv=xu,t.csvFormat=eu,t.csvFormatBody=ru,t.csvFormatRow=ou,t.csvFormatRows=iu,t.csvFormatValue=au,t.csvParse=tu,t.csvParseRows=nu,t.cubehelix=He,t.cumsum=function(t,n){var e=0,r=0;return Float64Array.from(t,void 0===n?t=>e+=+t||0:i=>e+=+n(i,r++,t)||0)},t.curveBasis=function(t){return new em(t)},t.curveBasisClosed=function(t){return new rm(t)},t.curveBasisOpen=function(t){return new im(t)},t.curveBundle=am,t.curveCardinal=fm,t.curveCardinalClosed=lm,t.curveCardinalOpen=dm,t.curveCatmullRom=ym,t.curveCatmullRomClosed=_m,t.curveCatmullRomOpen=mm,t.curveLinear=yb,t.curveLinearClosed=function(t){return new xm(t)},t.curveMonotoneX=function(t){return new Sm(t)},t.curveMonotoneY=function(t){return new Em(t)},t.curveNatural=function(t){return new Nm(t)},t.curveStep=function(t){return new Pm(t,.5)},t.curveStepAfter=function(t){return new Pm(t,1)},t.curveStepBefore=function(t){return new Pm(t,0)},t.descending=function(t,n){return nt?1:n>=t?0:NaN},t.deviation=d,t.difference=function(t,...n){t=new Set(t);for(const e of n)for(const n of e)t.delete(n);return t},t.disjoint=function(t,n){const e=n[Symbol.iterator](),r=new Set;for(const n of t){if(r.has(n))return!1;let t,i;for(;({value:t,done:i}=e.next())&&!i;){if(Object.is(n,t))return!1;r.add(t)}}return!0},t.dispatch=it,t.drag=function(){var t,n,e,r,i=Rn,o=Fn,a=On,u=Un,c={},f=it("start","drag","end"),s=0,l=0;function h(t){t.on("mousedown.drag",d).filter(u).on("touchstart.drag",y).on("touchmove.drag",v).on("touchend.drag touchcancel.drag",_).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function d(a,u){if(!r&&i.call(this,a,u)){var c=b(this,o.call(this,a,u),a,u,"mouse");c&&(Mn(a.view).on("mousemove.drag",p,!0).on("mouseup.drag",g,!0),Pn(a.view),Nn(a),e=!1,t=a.clientX,n=a.clientY,c("start",a))}}function p(r){if(Cn(r),!e){var i=r.clientX-t,o=r.clientY-n;e=i*i+o*o>l}c.mouse("drag",r)}function g(t){Mn(t.view).on("mousemove.drag mouseup.drag",null),zn(t.view,e),Cn(t),c.mouse("end",t)}function y(t,n){if(i.call(this,t,n)){var e,r,a=t.changedTouches,u=o.call(this,t,n),c=a.length;for(e=0;e+t,t.easePoly=Yi,t.easePolyIn=Ii,t.easePolyInOut=Yi,t.easePolyOut=Bi,t.easeQuad=Oi,t.easeQuadIn=function(t){return t*t},t.easeQuadInOut=Oi,t.easeQuadOut=function(t){return t*(2-t)},t.easeSin=Hi,t.easeSinIn=function(t){return 1==+t?1:1-Math.cos(t*ji)},t.easeSinInOut=Hi,t.easeSinOut=function(t){return Math.sin(t*ji)},t.every=function(t,n){if("function"!=typeof n)throw new TypeError("test is not a function");let e=-1;for(const r of t)if(!n(r,++e,t))return!1;return!0},t.extent=p,t.filter=function(t,n){if("function"!=typeof n)throw new TypeError("test is not a function");const e=[];let r=-1;for(const i of t)n(i,++r,t)&&e.push(i);return e},t.forceCenter=function(t,n){var e,r=1;function i(){var i,o,a=e.length,u=0,c=0;for(i=0;if+p||os+p||ac.index){var g=f-u.x-u.vx,y=s-u.y-u.vy,v=g*g+y*y;vt.r&&(t.r=t[n].r)}function c(){if(n){var r,i,o=n.length;for(e=new Array(o),r=0;r[u(t,n,r),t]));for(a=0,i=new Array(f);a=u)){(t.data!==n||t.next)&&(0===l&&(p+=(l=Ou(e))*l),0===h&&(p+=(h=Ou(e))*h),p(t=(1664525*t+1013904223)%Lu)/Lu}();function l(){h(),f.call("tick",n),e1?(null==e?u.delete(t):u.set(t,p(e)),n):u.get(t)},find:function(n,e,r){var i,o,a,u,c,f=0,s=t.length;for(null==r?r=1/0:r*=r,f=0;f1?(f.on(t,e),n):f.on(t)}}},t.forceX=function(t){var n,e,r,i=Fu(.1);function o(t){for(var i,o=0,a=n.length;o=.12&&i<.234&&r>=-.425&&r<-.214?u:i>=.166&&i<.234&&r>=-.214&&r<-.115?c:a).invert(t)},s.stream=function(e){return t&&n===e?t:(r=[a.stream(n=e),u.stream(e),c.stream(e)],i=r.length,t={point:function(t,n){for(var e=-1;++eYf(r[0],r[1])&&(r[1]=i[1]),Yf(i[0],r[1])>Yf(r[0],r[1])&&(r[0]=i[0])):o.push(r=i);for(a=-1/0,n=0,r=o[e=o.length-1];n<=e;r=i,++n)i=o[n],(u=Yf(r[1],i[0]))>a&&(a=u,Xc=i[0],Vc=r[1])}return tf=nf=null,Xc===1/0||Gc===1/0?[[NaN,NaN],[NaN,NaN]]:[[Xc,Gc],[Vc,$c]]},t.geoCentroid=function(t){vf=_f=bf=mf=xf=wf=Mf=Af=0,Tf=new g,Sf=new g,Ef=new g,Ic(t,Hf);var n=+Tf,e=+Sf,r=+Ef,i=Mc(n,e,r);return i2?t[2]+90:90]):[(t=e())[0],t[1],t[2]-90]},e([0,0,90]).scale(159.155)},t.geoTransverseMercatorRaw=Ch,t.gray=function(t,n){return new Se(t,0,0,null==n?1:n)},t.greatest=function(t,e=n){let r,i=!1;if(1===e.length){let o;for(const a of t){const t=e(a);(i?n(t,o)>0:0===n(t,t))&&(r=a,o=t,i=!0)}}else for(const n of t)(i?e(n,r)>0:0===e(n,n))&&(r=n,i=!0);return r},t.greatestIndex=function(t,e=n){if(1===e.length)return F(t,e);let r,i=-1,o=-1;for(const n of t)++o,(i<0?0===e(n,n):e(n,r)>0)&&(r=n,i=o);return i},t.group=function(t,...n){return _(t,y,y,n)},t.groups=function(t,...n){return _(t,Array.from,y,n)},t.hcl=ze,t.hierarchy=Rh,t.histogram=N,t.hsl=pe,t.html=Su,t.image=function(t,n){return new Promise((function(e,r){var i=new Image;for(var o in n)i[o]=n[o];i.onerror=r,i.onload=function(){e(i)},i.src=t}))},t.index=function(t,...n){return _(t,y,v,n)},t.indexes=function(t,...n){return _(t,Array.from,v,n)},t.interpolate=dr,t.interpolateArray=function(t,n){return(or(n)?ir:ar)(t,n)},t.interpolateBasis=Ve,t.interpolateBasisClosed=$e,t.interpolateBlues=M_,t.interpolateBrBG=Rv,t.interpolateBuGn=Jv,t.interpolateBuPu=n_,t.interpolateCividis=function(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-t*(35.34-t*(2381.73-t*(6402.7-t*(7024.72-2710.57*t)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+t*(170.73+t*(52.82-t*(131.46-t*(176.58-67.37*t)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+t*(442.36-t*(2482.43-t*(6167.24-t*(6614.94-2475.67*t)))))))+")"},t.interpolateCool=F_,t.interpolateCubehelix=Pr,t.interpolateCubehelixDefault=q_,t.interpolateCubehelixLong=zr,t.interpolateDate=ur,t.interpolateDiscrete=function(t){var n=t.length;return function(e){return t[Math.max(0,Math.min(n-1,Math.floor(e*n)))]}},t.interpolateGnBu=r_,t.interpolateGreens=T_,t.interpolateGreys=E_,t.interpolateHcl=kr,t.interpolateHclLong=Nr,t.interpolateHsl=Tr,t.interpolateHslLong=Sr,t.interpolateHue=function(t,n){var e=Ke(+t,+n);return function(t){var n=e(t);return n-360*Math.floor(n/360)}},t.interpolateInferno=H_,t.interpolateLab=function(t,n){var e=Je((t=Te(t)).l,(n=Te(n)).l),r=Je(t.a,n.a),i=Je(t.b,n.b),o=Je(t.opacity,n.opacity);return function(n){return t.l=e(n),t.a=r(n),t.b=i(n),t.opacity=o(n),t+""}},t.interpolateMagma=j_,t.interpolateNumber=cr,t.interpolateNumberArray=ir,t.interpolateObject=fr,t.interpolateOrRd=o_,t.interpolateOranges=D_,t.interpolatePRGn=Ov,t.interpolatePiYG=Iv,t.interpolatePlasma=X_,t.interpolatePuBu=f_,t.interpolatePuBuGn=u_,t.interpolatePuOr=Yv,t.interpolatePuRd=l_,t.interpolatePurples=N_,t.interpolateRainbow=function(t){(t<0||t>1)&&(t-=Math.floor(t));var n=Math.abs(t-.5);return O_.h=360*t-100,O_.s=1.5-1.5*n,O_.l=.8-.9*n,O_+""},t.interpolateRdBu=jv,t.interpolateRdGy=Xv,t.interpolateRdPu=d_,t.interpolateRdYlBu=Vv,t.interpolateRdYlGn=Wv,t.interpolateReds=P_,t.interpolateRgb=tr,t.interpolateRgbBasis=er,t.interpolateRgbBasisClosed=rr,t.interpolateRound=pr,t.interpolateSinebow=function(t){var n;return t=(.5-t)*Math.PI,U_.r=255*(n=Math.sin(t))*n,U_.g=255*(n=Math.sin(t+I_))*n,U_.b=255*(n=Math.sin(t+B_))*n,U_+""},t.interpolateSpectral=Kv,t.interpolateString=hr,t.interpolateTransformCss=mr,t.interpolateTransformSvg=xr,t.interpolateTurbo=function(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+t*(1172.33-t*(10793.56-t*(33300.12-t*(38394.49-14825.05*t)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+t*(557.33+t*(1225.33-t*(3574.96-t*(1073.77+707.56*t)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+t*(3211.1-t*(15327.97-t*(27814-t*(22569.18-6838.66*t)))))))+")"},t.interpolateViridis=L_,t.interpolateWarm=R_,t.interpolateYlGn=v_,t.interpolateYlGnBu=g_,t.interpolateYlOrBr=b_,t.interpolateYlOrRd=x_,t.interpolateZoom=Mr,t.interrupt=oi,t.intersection=function(t,...n){t=new Set(t),n=n.map(G);t:for(const e of t)for(const r of n)if(!r.has(e)){t.delete(e);continue t}return t},t.interval=function(t,n,e){var r=new Gr,i=n;return null==n?(r.restart(t,n,e),r):(r._restart=r.restart,r.restart=function(t,n,e){n=+n,e=null==e?Hr():+e,r._restart((function o(a){a+=i,r._restart(o,i+=n,e),t(a)}),n,e)},r.restart(t,n,e),r)},t.isoFormat=av,t.isoParse=uv,t.json=function(t,n){return fetch(t,n).then(Mu)},t.lab=Te,t.lch=function(t,n,e,r){return 1===arguments.length?Pe(t):new De(e,n,t,null==r?1:r)},t.least=function(t,e=n){let r,i=!1;if(1===e.length){let o;for(const a of t){const t=e(a);(i?n(t,o)<0:0===n(t,t))&&(r=a,o=t,i=!0)}}else for(const n of t)(i?e(n,r)<0:0===e(n,n))&&(r=n,i=!0);return r},t.leastIndex=Y,t.line=bb,t.lineRadial=Eb,t.linkHorizontal=function(){return zb(Db)},t.linkRadial=function(){var t=zb(Rb);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t},t.linkVertical=function(){return zb(qb)},t.local=Tn,t.map=function(t,n){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");if("function"!=typeof n)throw new TypeError("mapper is not a function");return Array.from(t,(e,r)=>n(e,r,t))},t.matcher=mt,t.max=C,t.maxIndex=F,t.mean=function(t,n){let e=0,r=0;if(void 0===n)for(let n of t)null!=n&&(n=+n)>=n&&(++e,r+=n);else{let i=-1;for(let o of t)null!=(o=n(o,++i,t))&&(o=+o)>=o&&(++e,r+=o)}if(e)return r/e},t.median=function(t,n){return q(t,.5,n)},t.merge=O,t.min=P,t.minIndex=U,t.namespace=lt,t.namespaces=st,t.nice=E,t.now=Hr,t.pack=function(){var t=null,n=1,e=1,r=ed;function i(i){return i.x=n/2,i.y=e/2,t?i.eachBefore(od(t)).eachAfter(ad(r,.5)).eachBefore(ud(1)):i.eachBefore(od(id)).eachAfter(ad(ed,1)).eachAfter(ad(r,i.r/Math.min(n,e))).eachBefore(ud(Math.min(n,e)/(2*i.r))),i}return i.radius=function(n){return arguments.length?(t=td(n),i):t},i.size=function(t){return arguments.length?(n=+t[0],e=+t[1],i):[n,e]},i.padding=function(t){return arguments.length?(r="function"==typeof t?t:rd(+t),i):r},i},t.packEnclose=Yh,t.packSiblings=function(t){return Jh(t),t},t.pairs=function(t,n=I){const e=[];let r,i=!1;for(const o of t)i&&e.push(n(r,o)),r=o,i=!0;return e},t.partition=function(){var t=1,n=1,e=0,r=!1;function i(i){var o=i.height+1;return i.x0=i.y0=e,i.x1=t,i.y1=n/o,i.eachBefore(function(t,n){return function(r){r.children&&fd(r,r.x0,t*(r.depth+1)/n,r.x1,t*(r.depth+2)/n);var i=r.x0,o=r.y0,a=r.x1-e,u=r.y1-e;at[n])},t.pie=function(){var t=wb,n=xb,e=null,r=G_(0),i=G_(rb),o=G_(0);function a(a){var u,c,f,s,l,h=(a=pb(a)).length,d=0,p=new Array(h),g=new Array(h),y=+r.apply(this,arguments),v=Math.min(rb,Math.max(-rb,i.apply(this,arguments)-y)),_=Math.min(Math.abs(v)/h,o.apply(this,arguments)),b=_*(v<0?-1:1);for(u=0;u0&&(d+=l);for(null!=n?p.sort((function(t,e){return n(g[t],g[e])})):null!=e&&p.sort((function(t,n){return e(a[t],a[n])})),u=0,f=d?(v-h*b)/d:0;u0?l*f:0)+b,g[c]={data:a[c],index:u,value:l,startAngle:y,endAngle:s,padAngle:_};return g}return a.value=function(n){return arguments.length?(t="function"==typeof n?n:G_(+n),a):t},a.sortValues=function(t){return arguments.length?(n=t,e=null,a):n},a.sort=function(t){return arguments.length?(e=t,n=null,a):e},a.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:G_(+t),a):r},a.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:G_(+t),a):i},a.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:G_(+t),a):o},a},t.piecewise=Dr,t.pointRadial=Nb,t.pointer=kn,t.pointers=function(t,n){return t.target&&(t=En(t),void 0===n&&(n=t.currentTarget),t=t.touches||[t]),Array.from(t,t=>kn(t,n))},t.polygonArea=function(t){for(var n,e=-1,r=t.length,i=t[r-1],o=0;++eu!=f>u&&a<(c-e)*(u-r)/(f-r)+e&&(s=!s),c=e,f=r;return s},t.polygonHull=function(t){if((e=t.length)<3)return null;var n,e,r=new Array(e),i=new Array(e);for(n=0;n=0;--n)f.push(t[r[o[n]][2]]);for(n=+u;n(n=1664525*n+1013904223|0,Gd*(n>>>0))},t.randomLogNormal=zd,t.randomLogistic=Hd,t.randomNormal=Pd,t.randomPareto=Fd,t.randomPoisson=Xd,t.randomUniform=Nd,t.randomWeibull=Ld,t.range=B,t.reduce=function(t,n,e){if("function"!=typeof n)throw new TypeError("reducer is not a function");const r=t[Symbol.iterator]();let i,o,a=-1;if(arguments.length<3){if(({done:i,value:e}=r.next()),i)return;++a}for(;({done:i,value:o}=r.next()),!i;)e=n(e,o,++a,t);return e},t.reverse=function(t){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");return Array.from(t).reverse()},t.rgb=ue,t.ribbon=function(){return fa()},t.ribbonArrow=function(){return fa(ca)},t.rollup=function(t,n,...e){return _(t,y,n,e)},t.rollups=function(t,n,...e){return _(t,Array.from,n,e)},t.scaleBand=Kd,t.scaleDiverging=function t(){var n=fp(mv()(np));return n.copy=function(){return _v(n,t())},$d.apply(n,arguments)},t.scaleDivergingLog=function t(){var n=vp(mv()).domain([.1,1,10]);return n.copy=function(){return _v(n,t()).base(n.base())},$d.apply(n,arguments)},t.scaleDivergingPow=xv,t.scaleDivergingSqrt=function(){return xv.apply(null,arguments).exponent(.5)},t.scaleDivergingSymlog=function t(){var n=mp(mv());return n.copy=function(){return _v(n,t()).constant(n.constant())},$d.apply(n,arguments)},t.scaleIdentity=function t(n){var e;function r(t){return isNaN(t=+t)?e:t}return r.invert=r,r.domain=r.range=function(t){return arguments.length?(n=Array.from(t,Jd),r):n.slice()},r.unknown=function(t){return arguments.length?(e=t,r):e},r.copy=function(){return t(n).unknown(e)},n=arguments.length?Array.from(n,Jd):[0,1],fp(r)},t.scaleImplicit=Wd,t.scaleLinear=function t(){var n=up();return n.copy=function(){return op(n,t())},Vd.apply(n,arguments),fp(n)},t.scaleLog=function t(){var n=vp(ap()).domain([1,10]);return n.copy=function(){return op(n,t()).base(n.base())},Vd.apply(n,arguments),n},t.scaleOrdinal=Zd,t.scalePoint=function(){return Qd(Kd.apply(null,arguments).paddingInner(1))},t.scalePow=Tp,t.scaleQuantile=function t(){var e,r=[],i=[],a=[];function u(){var t=0,n=Math.max(1,i.length);for(a=new Array(n-1);++t0?a[n-1]:r[0],n=i?[a[i-1],r]:[a[n-1],a[n]]},c.unknown=function(t){return arguments.length?(n=t,c):c},c.thresholds=function(){return a.slice()},c.copy=function(){return t().domain([e,r]).range(u).unknown(n)},Vd.apply(fp(c),arguments)},t.scaleRadial=function t(){var n,e=up(),r=[0,1],i=!1;function o(t){var r=Ep(e(t));return isNaN(r)?n:i?Math.round(r):r}return o.invert=function(t){return e.invert(Sp(t))},o.domain=function(t){return arguments.length?(e.domain(t),o):e.domain()},o.range=function(t){return arguments.length?(e.range((r=Array.from(t,Jd)).map(Sp)),o):r.slice()},o.rangeRound=function(t){return o.range(t).round(!0)},o.round=function(t){return arguments.length?(i=!!t,o):i},o.clamp=function(t){return arguments.length?(e.clamp(t),o):e.clamp()},o.unknown=function(t){return arguments.length?(n=t,o):n},o.copy=function(){return t(e.domain(),r).round(i).clamp(e.clamp()).unknown(n)},Vd.apply(o,arguments),fp(o)},t.scaleSequential=function t(){var n=fp(vv()(np));return n.copy=function(){return _v(n,t())},$d.apply(n,arguments)},t.scaleSequentialLog=function t(){var n=vp(vv()).domain([1,10]);return n.copy=function(){return _v(n,t()).base(n.base())},$d.apply(n,arguments)},t.scaleSequentialPow=bv,t.scaleSequentialQuantile=function t(){var e=[],r=np;function i(t){if(!isNaN(t=+t))return r((o(e,t,1)-1)/(e.length-1))}return i.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let n of t)null==n||isNaN(n=+n)||e.push(n);return e.sort(n),i},i.interpolator=function(t){return arguments.length?(r=t,i):r},i.range=function(){return e.map((t,n)=>r(n/(e.length-1)))},i.quantiles=function(t){return Array.from({length:t+1},(n,r)=>q(e,r/t))},i.copy=function(){return t(r).domain(e)},$d.apply(i,arguments)},t.scaleSequentialSqrt=function(){return bv.apply(null,arguments).exponent(.5)},t.scaleSequentialSymlog=function t(){var n=mp(vv());return n.copy=function(){return _v(n,t()).constant(n.constant())},$d.apply(n,arguments)},t.scaleSqrt=function(){return Tp.apply(null,arguments).exponent(.5)},t.scaleSymlog=function t(){var n=mp(ap());return n.copy=function(){return op(n,t()).constant(n.constant())},Vd.apply(n,arguments)},t.scaleThreshold=function t(){var n,e=[.5],r=[0,1],i=1;function a(t){return t<=t?r[o(e,t,0,i)]:n}return a.domain=function(t){return arguments.length?(e=Array.from(t),i=Math.min(e.length,r.length-1),a):e.slice()},a.range=function(t){return arguments.length?(r=Array.from(t),i=Math.min(e.length,r.length-1),a):r.slice()},a.invertExtent=function(t){var n=r.indexOf(t);return[e[n-1],e[n]]},a.unknown=function(t){return arguments.length?(n=t,a):n},a.copy=function(){return t().domain(e).range(r).unknown(n)},Vd.apply(a,arguments)},t.scaleTime=function(){return Vd.apply(yv(fg,ug,Vp,Hp,Lp,Bp,Up,Pp,t.timeFormat).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},t.scaleUtc=function(){return Vd.apply(yv(qg,zg,_g,gg,dg,lg,Up,Pp,t.utcFormat).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},t.scan=function(t,n){const e=Y(t,n);return e<0?void 0:e},t.schemeAccent=Av,t.schemeBlues=w_,t.schemeBrBG=qv,t.schemeBuGn=Qv,t.schemeBuPu=t_,t.schemeCategory10=Mv,t.schemeDark2=Tv,t.schemeGnBu=e_,t.schemeGreens=A_,t.schemeGreys=S_,t.schemeOrRd=i_,t.schemeOranges=z_,t.schemePRGn=Fv,t.schemePaired=Sv,t.schemePastel1=Ev,t.schemePastel2=kv,t.schemePiYG=Uv,t.schemePuBu=c_,t.schemePuBuGn=a_,t.schemePuOr=Bv,t.schemePuRd=s_,t.schemePurples=k_,t.schemeRdBu=Lv,t.schemeRdGy=Hv,t.schemeRdPu=h_,t.schemeRdYlBu=Gv,t.schemeRdYlGn=$v,t.schemeReds=C_,t.schemeSet1=Nv,t.schemeSet2=Cv,t.schemeSet3=Pv,t.schemeSpectral=Zv,t.schemeTableau10=zv,t.schemeYlGn=y_,t.schemeYlGnBu=p_,t.schemeYlOrBr=__,t.schemeYlOrRd=m_,t.select=Mn,t.selectAll=function(t){return"string"==typeof t?new xn([document.querySelectorAll(t)],[document.documentElement]):new xn([null==t?[]:vt(t)],mn)},t.selection=wn,t.selector=yt,t.selectorAll=bt,t.shuffle=L,t.shuffler=j,t.some=function(t,n){if("function"!=typeof n)throw new TypeError("test is not a function");let e=-1;for(const r of t)if(n(r,++e,t))return!0;return!1},t.sort=function(t,e=n){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");return Array.from(t).sort(e)},t.stack=function(){var t=G_([]),n=Dm,e=zm,r=qm;function i(i){var o,a,u=Array.from(t.apply(this,arguments),Rm),c=u.length,f=-1;for(const t of i)for(o=0,++f;o0)for(var e,r,i,o,a,u,c=0,f=t[n[0]].length;c0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=a,r[0]=a+=i):(r[0]=0,r[1]=i)},t.stackOffsetExpand=function(t,n){if((r=t.length)>0){for(var e,r,i,o=0,a=t[0].length;o0){for(var e,r=0,i=t[n[0]],o=i.length;r0&&(r=(e=t[n[0]]).length)>0){for(var e,r,i,o=0,a=1;a0)throw new Error("cycle");return o}return e.id=function(n){return arguments.length?(t=nd(n),e):t},e.parentId=function(t){return arguments.length?(n=nd(t),e):n},e},t.style=jt,t.subset=function(t,n){return V(n,t)},t.sum=function(t,n){let e=0;if(void 0===n)for(let n of t)(n=+n)&&(e+=n);else{let r=-1;for(let i of t)(i=+n(i,++r,t))&&(e+=i)}return e},t.superset=V,t.svg=Eu,t.symbol=function(t,n){var e=null;function r(){var r;if(e||(e=r=Jo()),t.apply(this,arguments).draw(e,+n.apply(this,arguments)),r)return e=null,r+""||null}return t="function"==typeof t?t:G_(t||Fb),n="function"==typeof n?n:G_(void 0===n?64:+n),r.type=function(n){return arguments.length?(t="function"==typeof n?n:G_(n),r):t},r.size=function(t){return arguments.length?(n="function"==typeof t?t:G_(+t),r):n},r.context=function(t){return arguments.length?(e=null==t?null:t,r):e},r},t.symbolCircle=Fb,t.symbolCross=Ob,t.symbolDiamond=Bb,t.symbolSquare=Xb,t.symbolStar=Hb,t.symbolTriangle=Vb,t.symbolWye=Qb,t.symbols=Jb,t.text=bu,t.thresholdFreedmanDiaconis=function(t,n,e){return Math.ceil((e-n)/(2*(q(t,.75)-q(t,.25))*Math.pow(c(t),-1/3)))},t.thresholdScott=function(t,n,e){return Math.ceil((e-n)/(3.5*d(t)*Math.pow(c(t),-1/3)))},t.thresholdSturges=k,t.tickFormat=cp,t.tickIncrement=T,t.tickStep=S,t.ticks=A,t.timeDay=Hp,t.timeDays=Xp,t.timeFormatDefaultLocale=iv,t.timeFormatLocale=Ig,t.timeFriday=Qp,t.timeFridays=og,t.timeHour=Lp,t.timeHours=jp,t.timeInterval=Cp,t.timeMillisecond=Pp,t.timeMilliseconds=zp,t.timeMinute=Bp,t.timeMinutes=Yp,t.timeMonday=$p,t.timeMondays=ng,t.timeMonth=ug,t.timeMonths=cg,t.timeSaturday=Jp,t.timeSaturdays=ag,t.timeSecond=Up,t.timeSeconds=Ip,t.timeSunday=Vp,t.timeSundays=tg,t.timeThursday=Kp,t.timeThursdays=ig,t.timeTuesday=Wp,t.timeTuesdays=eg,t.timeWednesday=Zp,t.timeWednesdays=rg,t.timeWeek=Vp,t.timeWeeks=tg,t.timeYear=fg,t.timeYears=sg,t.timeout=Qr,t.timer=Vr,t.timerFlush=$r,t.transition=qi,t.transpose=H,t.tree=function(){var t=pd,n=1,e=1,r=null;function i(i){var c=function(t){for(var n,e,r,i,o,a=new bd(t,0),u=[a];n=u.pop();)if(r=n._.children)for(n.children=new Array(o=r.length),i=o-1;i>=0;--i)u.push(e=n.children[i]=new bd(r[i],i)),e.parent=n;return(a.parent=new bd(null,0)).children=[a],a}(i);if(c.eachAfter(o),c.parent.m=-c.z,c.eachBefore(a),r)i.eachBefore(u);else{var f=i,s=i,l=i;i.eachBefore((function(t){t.xs.x&&(s=t),t.depth>l.depth&&(l=t)}));var h=f===s?1:t(f,s)/2,d=h-f.x,p=n/(s.x+h+d),g=e/(l.depth||1);i.eachBefore((function(t){t.x=(t.x+d)*p,t.y=t.depth*g}))}return i}function o(n){var e=n.children,r=n.parent.children,i=n.i?r[n.i-1]:null;if(e){!function(t){for(var n,e=0,r=0,i=t.children,o=i.length;--o>=0;)(n=i[o]).z+=e,n.m+=e,e+=n.s+(r+=n.c)}(n);var o=(e[0].z+e[e.length-1].z)/2;i?(n.z=i.z+t(n._,i._),n.m=n.z-o):n.z=o}else i&&(n.z=i.z+t(n._,i._));n.parent.A=function(n,e,r){if(e){for(var i,o=n,a=n,u=e,c=o.parent.children[0],f=o.m,s=a.m,l=u.m,h=c.m;u=yd(u),o=gd(o),u&&o;)c=gd(c),(a=yd(a)).a=n,(i=u.z+l-o.z-f+t(u._,o._))>0&&(vd(_d(u,n,r),n,i),f+=i,s+=i),l+=u.m,f+=o.m,h+=c.m,s+=a.m;u&&!yd(a)&&(a.t=u,a.m+=l-s),o&&!gd(c)&&(c.t=o,c.m+=f-h,r=n)}return r}(n,i,n.parent.A||r[0])}function a(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function u(t){t.x*=n,t.y=t.depth*e}return i.separation=function(n){return arguments.length?(t=n,i):t},i.size=function(t){return arguments.length?(r=!1,n=+t[0],e=+t[1],i):r?null:[n,e]},i.nodeSize=function(t){return arguments.length?(r=!0,n=+t[0],e=+t[1],i):r?[n,e]:null},i},t.treemap=function(){var t=Md,n=!1,e=1,r=1,i=[0],o=ed,a=ed,u=ed,c=ed,f=ed;function s(t){return t.x0=t.y0=0,t.x1=e,t.y1=r,t.eachBefore(l),i=[0],n&&t.eachBefore(cd),t}function l(n){var e=i[n.depth],r=n.x0+e,s=n.y0+e,l=n.x1-e,h=n.y1-e;l=e-1){var s=u[n];return s.x0=i,s.y0=o,s.x1=a,void(s.y1=c)}var l=f[n],h=r/2+l,d=n+1,p=e-1;for(;d>>1;f[g]c-o){var _=r?(i*v+a*y)/r:a;t(n,d,y,i,o,_,c),t(d,e,v,_,o,a,c)}else{var b=r?(o*v+c*y)/r:c;t(n,d,y,i,o,a,b),t(d,e,v,i,b,a,c)}}(0,c,t.value,n,e,r,i)},t.treemapDice=fd,t.treemapResquarify=Ad,t.treemapSlice=md,t.treemapSliceDice=function(t,n,e,r,i){(1&t.depth?md:fd)(t,n,e,r,i)},t.treemapSquarify=Md,t.tsv=wu,t.tsvFormat=su,t.tsvFormatBody=lu,t.tsvFormatRow=du,t.tsvFormatRows=hu,t.tsvFormatValue=pu,t.tsvParse=cu,t.tsvParseRows=fu,t.union=function(...t){const n=new Set;for(const e of t)for(const t of e)n.add(t);return n},t.utcDay=gg,t.utcDays=yg,t.utcFriday=Mg,t.utcFridays=Cg,t.utcHour=dg,t.utcHours=pg,t.utcMillisecond=Pp,t.utcMilliseconds=zp,t.utcMinute=lg,t.utcMinutes=hg,t.utcMonday=bg,t.utcMondays=Sg,t.utcMonth=zg,t.utcMonths=Dg,t.utcSaturday=Ag,t.utcSaturdays=Pg,t.utcSecond=Up,t.utcSeconds=Ip,t.utcSunday=_g,t.utcSundays=Tg,t.utcThursday=wg,t.utcThursdays=Ng,t.utcTuesday=mg,t.utcTuesdays=Eg,t.utcWednesday=xg,t.utcWednesdays=kg,t.utcWeek=_g,t.utcWeeks=Tg,t.utcYear=qg,t.utcYears=Rg,t.variance=h,t.version="6.2.0",t.window=It,t.xml=Tu,t.zip=function(){return H(arguments)},t.zoom=function(){var t,n,e,r=Vm,i=$m,o=Qm,a=Zm,u=Km,c=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],s=250,l=Mr,h=it("start","zoom","end"),d=500,p=0,g=10;function y(t){t.property("__zoom",Wm).on("wheel.zoom",M).on("mousedown.zoom",A).on("dblclick.zoom",T).filter(u).on("touchstart.zoom",S).on("touchmove.zoom",E).on("touchend.zoom touchcancel.zoom",k).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function v(t,n){return(n=Math.max(c[0],Math.min(c[1],n)))===t.k?t:new Lm(n,t.x,t.y)}function _(t,n,e){var r=n[0]-e[0]*t.k,i=n[1]-e[1]*t.k;return r===t.x&&i===t.y?t:new Lm(t.k,r,i)}function b(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function m(t,n,e,r){t.on("start.zoom",(function(){x(this,arguments).event(r).start()})).on("interrupt.zoom end.zoom",(function(){x(this,arguments).event(r).end()})).tween("zoom",(function(){var t=this,o=arguments,a=x(t,o).event(r),u=i.apply(t,o),c=null==e?b(u):"function"==typeof e?e.apply(t,o):e,f=Math.max(u[1][0]-u[0][0],u[1][1]-u[0][1]),s=t.__zoom,h="function"==typeof n?n.apply(t,o):n,d=l(s.invert(c).concat(f/s.k),h.invert(c).concat(f/h.k));return function(t){if(1===t)t=h;else{var n=d(t),e=f/n[2];t=new Lm(e,c[0]-n[0]*e,c[1]-n[1]*e)}a.zoom(null,t)}}))}function x(t,n,e){return!e&&t.__zooming||new w(t,n)}function w(t,n){this.that=t,this.args=n,this.active=0,this.sourceEvent=null,this.extent=i.apply(t,n),this.taps=0}function M(t,...n){if(r.apply(this,arguments)){var e=x(this,n).event(t),i=this.__zoom,u=Math.max(c[0],Math.min(c[1],i.k*Math.pow(2,a.apply(this,arguments)))),s=kn(t);if(e.wheel)e.mouse[0][0]===s[0]&&e.mouse[0][1]===s[1]||(e.mouse[1]=i.invert(e.mouse[0]=s)),clearTimeout(e.wheel);else{if(i.k===u)return;e.mouse=[s,i.invert(s)],oi(this),e.start()}Gm(t),e.wheel=setTimeout(l,150),e.zoom("mouse",o(_(v(i,u),e.mouse[0],e.mouse[1]),e.extent,f))}function l(){e.wheel=null,e.end()}}function A(t,...n){if(!e&&r.apply(this,arguments)){var i=x(this,n,!0).event(t),a=Mn(t.view).on("mousemove.zoom",h,!0).on("mouseup.zoom",d,!0),u=kn(t,c),c=t.currentTarget,s=t.clientX,l=t.clientY;Pn(t.view),Xm(t),i.mouse=[u,this.__zoom.invert(u)],oi(this),i.start()}function h(t){if(Gm(t),!i.moved){var n=t.clientX-s,e=t.clientY-l;i.moved=n*n+e*e>p}i.event(t).zoom("mouse",o(_(i.that.__zoom,i.mouse[0]=kn(t,c),i.mouse[1]),i.extent,f))}function d(t){a.on("mousemove.zoom mouseup.zoom",null),zn(t.view,i.moved),Gm(t),i.event(t).end()}}function T(t,...n){if(r.apply(this,arguments)){var e=this.__zoom,a=kn(t.changedTouches?t.changedTouches[0]:t,this),u=e.invert(a),c=e.k*(t.shiftKey?.5:2),l=o(_(v(e,c),a,u),i.apply(this,n),f);Gm(t),s>0?Mn(this).transition().duration(s).call(m,l,a,t):Mn(this).call(y.transform,l,a,t)}}function S(e,...i){if(r.apply(this,arguments)){var o,a,u,c,f=e.touches,s=f.length,l=x(this,i,e.changedTouches.length===s).event(e);for(Xm(e),a=0;a> 8 & 0xff ] + _lut[ d0 >> 16 & 0xff ] + _lut[ d0 >> 24 & 0xff ] + '-' + + _lut[ d1 & 0xff ] + _lut[ d1 >> 8 & 0xff ] + '-' + _lut[ d1 >> 16 & 0x0f | 0x40 ] + _lut[ d1 >> 24 & 0xff ] + '-' + + _lut[ d2 & 0x3f | 0x80 ] + _lut[ d2 >> 8 & 0xff ] + '-' + _lut[ d2 >> 16 & 0xff ] + _lut[ d2 >> 24 & 0xff ] + + _lut[ d3 & 0xff ] + _lut[ d3 >> 8 & 0xff ] + _lut[ d3 >> 16 & 0xff ] + _lut[ d3 >> 24 & 0xff ]; + + // .toUpperCase() here flattens concatenated strings to save heap memory space. + return uuid.toUpperCase(); + + }, + + clamp: function ( value, min, max ) { + + return Math.max( min, Math.min( max, value ) ); + + }, + + // compute euclidian modulo of m % n + // https://en.wikipedia.org/wiki/Modulo_operation + + euclideanModulo: function ( n, m ) { + + return ( ( n % m ) + m ) % m; + + }, + + // Linear mapping from range to range + + mapLinear: function ( x, a1, a2, b1, b2 ) { + + return b1 + ( x - a1 ) * ( b2 - b1 ) / ( a2 - a1 ); + + }, + + // https://en.wikipedia.org/wiki/Linear_interpolation + + lerp: function ( x, y, t ) { + + return ( 1 - t ) * x + t * y; + + }, + + // http://en.wikipedia.org/wiki/Smoothstep + + smoothstep: function ( x, min, max ) { + + if ( x <= min ) return 0; + if ( x >= max ) return 1; + + x = ( x - min ) / ( max - min ); + + return x * x * ( 3 - 2 * x ); + + }, + + smootherstep: function ( x, min, max ) { + + if ( x <= min ) return 0; + if ( x >= max ) return 1; + + x = ( x - min ) / ( max - min ); + + return x * x * x * ( x * ( x * 6 - 15 ) + 10 ); + + }, + + // Random integer from interval + + randInt: function ( low, high ) { + + return low + Math.floor( Math.random() * ( high - low + 1 ) ); + + }, + + // Random float from interval + + randFloat: function ( low, high ) { + + return low + Math.random() * ( high - low ); + + }, + + // Random float from <-range/2, range/2> interval + + randFloatSpread: function ( range ) { + + return range * ( 0.5 - Math.random() ); + + }, + + // Deterministic pseudo-random float in the interval [ 0, 1 ] + + seededRandom: function ( s ) { + + if ( s !== undefined ) _seed = s % 2147483647; + + // Park-Miller algorithm + + _seed = _seed * 16807 % 2147483647; + + return ( _seed - 1 ) / 2147483646; + + }, + + degToRad: function ( degrees ) { + + return degrees * MathUtils.DEG2RAD; + + }, + + radToDeg: function ( radians ) { + + return radians * MathUtils.RAD2DEG; + + }, + + isPowerOfTwo: function ( value ) { + + return ( value & ( value - 1 ) ) === 0 && value !== 0; + + }, + + ceilPowerOfTwo: function ( value ) { + + return Math.pow( 2, Math.ceil( Math.log( value ) / Math.LN2 ) ); + + }, + + floorPowerOfTwo: function ( value ) { + + return Math.pow( 2, Math.floor( Math.log( value ) / Math.LN2 ) ); + + }, + + setQuaternionFromProperEuler: function ( q, a, b, c, order ) { + + // Intrinsic Proper Euler Angles - see https://en.wikipedia.org/wiki/Euler_angles + + // rotations are applied to the axes in the order specified by 'order' + // rotation by angle 'a' is applied first, then by angle 'b', then by angle 'c' + // angles are in radians + + const cos = Math.cos; + const sin = Math.sin; + + const c2 = cos( b / 2 ); + const s2 = sin( b / 2 ); + + const c13 = cos( ( a + c ) / 2 ); + const s13 = sin( ( a + c ) / 2 ); + + const c1_3 = cos( ( a - c ) / 2 ); + const s1_3 = sin( ( a - c ) / 2 ); + + const c3_1 = cos( ( c - a ) / 2 ); + const s3_1 = sin( ( c - a ) / 2 ); + + switch ( order ) { + + case 'XYX': + q.set( c2 * s13, s2 * c1_3, s2 * s1_3, c2 * c13 ); + break; + + case 'YZY': + q.set( s2 * s1_3, c2 * s13, s2 * c1_3, c2 * c13 ); + break; + + case 'ZXZ': + q.set( s2 * c1_3, s2 * s1_3, c2 * s13, c2 * c13 ); + break; + + case 'XZX': + q.set( c2 * s13, s2 * s3_1, s2 * c3_1, c2 * c13 ); + break; + + case 'YXY': + q.set( s2 * c3_1, c2 * s13, s2 * s3_1, c2 * c13 ); + break; + + case 'ZYZ': + q.set( s2 * s3_1, s2 * c3_1, c2 * s13, c2 * c13 ); + break; + + default: + console.warn( 'THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: ' + order ); + + } + + } + +}; + +class Vector2 { + + constructor( x = 0, y = 0 ) { + + Object.defineProperty( this, 'isVector2', { value: true } ); + + this.x = x; + this.y = y; + + } + + get width() { + + return this.x; + + } + + set width( value ) { + + this.x = value; + + } + + get height() { + + return this.y; + + } + + set height( value ) { + + this.y = value; + + } + + set( x, y ) { + + this.x = x; + this.y = y; + + return this; + + } + + setScalar( scalar ) { + + this.x = scalar; + this.y = scalar; + + return this; + + } + + setX( x ) { + + this.x = x; + + return this; + + } + + setY( y ) { + + this.y = y; + + return this; + + } + + setComponent( index, value ) { + + switch ( index ) { + + case 0: this.x = value; break; + case 1: this.y = value; break; + default: throw new Error( 'index is out of range: ' + index ); + + } + + return this; + + } + + getComponent( index ) { + + switch ( index ) { + + case 0: return this.x; + case 1: return this.y; + default: throw new Error( 'index is out of range: ' + index ); + + } + + } + + clone() { + + return new this.constructor( this.x, this.y ); + + } + + copy( v ) { + + this.x = v.x; + this.y = v.y; + + return this; + + } + + add( v, w ) { + + if ( w !== undefined ) { + + console.warn( 'THREE.Vector2: .add() now only accepts one argument. Use .addVectors( a, b ) instead.' ); + return this.addVectors( v, w ); + + } + + this.x += v.x; + this.y += v.y; + + return this; + + } + + addScalar( s ) { + + this.x += s; + this.y += s; + + return this; + + } + + addVectors( a, b ) { + + this.x = a.x + b.x; + this.y = a.y + b.y; + + return this; + + } + + addScaledVector( v, s ) { + + this.x += v.x * s; + this.y += v.y * s; + + return this; + + } + + sub( v, w ) { + + if ( w !== undefined ) { + + console.warn( 'THREE.Vector2: .sub() now only accepts one argument. Use .subVectors( a, b ) instead.' ); + return this.subVectors( v, w ); + + } + + this.x -= v.x; + this.y -= v.y; + + return this; + + } + + subScalar( s ) { + + this.x -= s; + this.y -= s; + + return this; + + } + + subVectors( a, b ) { + + this.x = a.x - b.x; + this.y = a.y - b.y; + + return this; + + } + + multiply( v ) { + + this.x *= v.x; + this.y *= v.y; + + return this; + + } + + multiplyScalar( scalar ) { + + this.x *= scalar; + this.y *= scalar; + + return this; + + } + + divide( v ) { + + this.x /= v.x; + this.y /= v.y; + + return this; + + } + + divideScalar( scalar ) { + + return this.multiplyScalar( 1 / scalar ); + + } + + applyMatrix3( m ) { + + const x = this.x, y = this.y; + const e = m.elements; + + this.x = e[ 0 ] * x + e[ 3 ] * y + e[ 6 ]; + this.y = e[ 1 ] * x + e[ 4 ] * y + e[ 7 ]; + + return this; + + } + + min( v ) { + + this.x = Math.min( this.x, v.x ); + this.y = Math.min( this.y, v.y ); + + return this; + + } + + max( v ) { + + this.x = Math.max( this.x, v.x ); + this.y = Math.max( this.y, v.y ); + + return this; + + } + + clamp( min, max ) { + + // assumes min < max, componentwise + + this.x = Math.max( min.x, Math.min( max.x, this.x ) ); + this.y = Math.max( min.y, Math.min( max.y, this.y ) ); + + return this; + + } + + clampScalar( minVal, maxVal ) { + + this.x = Math.max( minVal, Math.min( maxVal, this.x ) ); + this.y = Math.max( minVal, Math.min( maxVal, this.y ) ); + + return this; + + } + + clampLength( min, max ) { + + const length = this.length(); + + return this.divideScalar( length || 1 ).multiplyScalar( Math.max( min, Math.min( max, length ) ) ); + + } + + floor() { + + this.x = Math.floor( this.x ); + this.y = Math.floor( this.y ); + + return this; + + } + + ceil() { + + this.x = Math.ceil( this.x ); + this.y = Math.ceil( this.y ); + + return this; + + } + + round() { + + this.x = Math.round( this.x ); + this.y = Math.round( this.y ); + + return this; + + } + + roundToZero() { + + this.x = ( this.x < 0 ) ? Math.ceil( this.x ) : Math.floor( this.x ); + this.y = ( this.y < 0 ) ? Math.ceil( this.y ) : Math.floor( this.y ); + + return this; + + } + + negate() { + + this.x = - this.x; + this.y = - this.y; + + return this; + + } + + dot( v ) { + + return this.x * v.x + this.y * v.y; + + } + + cross( v ) { + + return this.x * v.y - this.y * v.x; + + } + + lengthSq() { + + return this.x * this.x + this.y * this.y; + + } + + length() { + + return Math.sqrt( this.x * this.x + this.y * this.y ); + + } + + manhattanLength() { + + return Math.abs( this.x ) + Math.abs( this.y ); + + } + + normalize() { + + return this.divideScalar( this.length() || 1 ); + + } + + angle() { + + // computes the angle in radians with respect to the positive x-axis + + const angle = Math.atan2( - this.y, - this.x ) + Math.PI; + + return angle; + + } + + distanceTo( v ) { + + return Math.sqrt( this.distanceToSquared( v ) ); + + } + + distanceToSquared( v ) { + + const dx = this.x - v.x, dy = this.y - v.y; + return dx * dx + dy * dy; + + } + + manhattanDistanceTo( v ) { + + return Math.abs( this.x - v.x ) + Math.abs( this.y - v.y ); + + } + + setLength( length ) { + + return this.normalize().multiplyScalar( length ); + + } + + lerp( v, alpha ) { + + this.x += ( v.x - this.x ) * alpha; + this.y += ( v.y - this.y ) * alpha; + + return this; + + } + + lerpVectors( v1, v2, alpha ) { + + this.x = v1.x + ( v2.x - v1.x ) * alpha; + this.y = v1.y + ( v2.y - v1.y ) * alpha; + + return this; + + } + + equals( v ) { + + return ( ( v.x === this.x ) && ( v.y === this.y ) ); + + } + + fromArray( array, offset ) { + + if ( offset === undefined ) offset = 0; + + this.x = array[ offset ]; + this.y = array[ offset + 1 ]; + + return this; + + } + + toArray( array, offset ) { + + if ( array === undefined ) array = []; + if ( offset === undefined ) offset = 0; + + array[ offset ] = this.x; + array[ offset + 1 ] = this.y; + + return array; + + } + + fromBufferAttribute( attribute, index, offset ) { + + if ( offset !== undefined ) { + + console.warn( 'THREE.Vector2: offset has been removed from .fromBufferAttribute().' ); + + } + + this.x = attribute.getX( index ); + this.y = attribute.getY( index ); + + return this; + + } + + rotateAround( center, angle ) { + + const c = Math.cos( angle ), s = Math.sin( angle ); + + const x = this.x - center.x; + const y = this.y - center.y; + + this.x = x * c - y * s + center.x; + this.y = x * s + y * c + center.y; + + return this; + + } + + random() { + + this.x = Math.random(); + this.y = Math.random(); + + return this; + + } + +} + +class Matrix3 { + + constructor() { + + Object.defineProperty( this, 'isMatrix3', { value: true } ); + + this.elements = [ + + 1, 0, 0, + 0, 1, 0, + 0, 0, 1 + + ]; + + if ( arguments.length > 0 ) { + + console.error( 'THREE.Matrix3: the constructor no longer reads arguments. use .set() instead.' ); + + } + + } + + set( n11, n12, n13, n21, n22, n23, n31, n32, n33 ) { + + const te = this.elements; + + te[ 0 ] = n11; te[ 1 ] = n21; te[ 2 ] = n31; + te[ 3 ] = n12; te[ 4 ] = n22; te[ 5 ] = n32; + te[ 6 ] = n13; te[ 7 ] = n23; te[ 8 ] = n33; + + return this; + + } + + identity() { + + this.set( + + 1, 0, 0, + 0, 1, 0, + 0, 0, 1 + + ); + + return this; + + } + + clone() { + + return new this.constructor().fromArray( this.elements ); + + } + + copy( m ) { + + const te = this.elements; + const me = m.elements; + + te[ 0 ] = me[ 0 ]; te[ 1 ] = me[ 1 ]; te[ 2 ] = me[ 2 ]; + te[ 3 ] = me[ 3 ]; te[ 4 ] = me[ 4 ]; te[ 5 ] = me[ 5 ]; + te[ 6 ] = me[ 6 ]; te[ 7 ] = me[ 7 ]; te[ 8 ] = me[ 8 ]; + + return this; + + } + + extractBasis( xAxis, yAxis, zAxis ) { + + xAxis.setFromMatrix3Column( this, 0 ); + yAxis.setFromMatrix3Column( this, 1 ); + zAxis.setFromMatrix3Column( this, 2 ); + + return this; + + } + + setFromMatrix4( m ) { + + const me = m.elements; + + this.set( + + me[ 0 ], me[ 4 ], me[ 8 ], + me[ 1 ], me[ 5 ], me[ 9 ], + me[ 2 ], me[ 6 ], me[ 10 ] + + ); + + return this; + + } + + multiply( m ) { + + return this.multiplyMatrices( this, m ); + + } + + premultiply( m ) { + + return this.multiplyMatrices( m, this ); + + } + + multiplyMatrices( a, b ) { + + const ae = a.elements; + const be = b.elements; + const te = this.elements; + + const a11 = ae[ 0 ], a12 = ae[ 3 ], a13 = ae[ 6 ]; + const a21 = ae[ 1 ], a22 = ae[ 4 ], a23 = ae[ 7 ]; + const a31 = ae[ 2 ], a32 = ae[ 5 ], a33 = ae[ 8 ]; + + const b11 = be[ 0 ], b12 = be[ 3 ], b13 = be[ 6 ]; + const b21 = be[ 1 ], b22 = be[ 4 ], b23 = be[ 7 ]; + const b31 = be[ 2 ], b32 = be[ 5 ], b33 = be[ 8 ]; + + te[ 0 ] = a11 * b11 + a12 * b21 + a13 * b31; + te[ 3 ] = a11 * b12 + a12 * b22 + a13 * b32; + te[ 6 ] = a11 * b13 + a12 * b23 + a13 * b33; + + te[ 1 ] = a21 * b11 + a22 * b21 + a23 * b31; + te[ 4 ] = a21 * b12 + a22 * b22 + a23 * b32; + te[ 7 ] = a21 * b13 + a22 * b23 + a23 * b33; + + te[ 2 ] = a31 * b11 + a32 * b21 + a33 * b31; + te[ 5 ] = a31 * b12 + a32 * b22 + a33 * b32; + te[ 8 ] = a31 * b13 + a32 * b23 + a33 * b33; + + return this; + + } + + multiplyScalar( s ) { + + const te = this.elements; + + te[ 0 ] *= s; te[ 3 ] *= s; te[ 6 ] *= s; + te[ 1 ] *= s; te[ 4 ] *= s; te[ 7 ] *= s; + te[ 2 ] *= s; te[ 5 ] *= s; te[ 8 ] *= s; + + return this; + + } + + determinant() { + + const te = this.elements; + + const a = te[ 0 ], b = te[ 1 ], c = te[ 2 ], + d = te[ 3 ], e = te[ 4 ], f = te[ 5 ], + g = te[ 6 ], h = te[ 7 ], i = te[ 8 ]; + + return a * e * i - a * f * h - b * d * i + b * f * g + c * d * h - c * e * g; + + } + + getInverse( matrix, throwOnDegenerate ) { + + if ( throwOnDegenerate !== undefined ) { + + console.warn( "THREE.Matrix3: .getInverse() can no longer be configured to throw on degenerate." ); + + } + + const me = matrix.elements, + te = this.elements, + + n11 = me[ 0 ], n21 = me[ 1 ], n31 = me[ 2 ], + n12 = me[ 3 ], n22 = me[ 4 ], n32 = me[ 5 ], + n13 = me[ 6 ], n23 = me[ 7 ], n33 = me[ 8 ], + + t11 = n33 * n22 - n32 * n23, + t12 = n32 * n13 - n33 * n12, + t13 = n23 * n12 - n22 * n13, + + det = n11 * t11 + n21 * t12 + n31 * t13; + + if ( det === 0 ) return this.set( 0, 0, 0, 0, 0, 0, 0, 0, 0 ); + + const detInv = 1 / det; + + te[ 0 ] = t11 * detInv; + te[ 1 ] = ( n31 * n23 - n33 * n21 ) * detInv; + te[ 2 ] = ( n32 * n21 - n31 * n22 ) * detInv; + + te[ 3 ] = t12 * detInv; + te[ 4 ] = ( n33 * n11 - n31 * n13 ) * detInv; + te[ 5 ] = ( n31 * n12 - n32 * n11 ) * detInv; + + te[ 6 ] = t13 * detInv; + te[ 7 ] = ( n21 * n13 - n23 * n11 ) * detInv; + te[ 8 ] = ( n22 * n11 - n21 * n12 ) * detInv; + + return this; + + } + + transpose() { + + let tmp; + const m = this.elements; + + tmp = m[ 1 ]; m[ 1 ] = m[ 3 ]; m[ 3 ] = tmp; + tmp = m[ 2 ]; m[ 2 ] = m[ 6 ]; m[ 6 ] = tmp; + tmp = m[ 5 ]; m[ 5 ] = m[ 7 ]; m[ 7 ] = tmp; + + return this; + + } + + getNormalMatrix( matrix4 ) { + + return this.setFromMatrix4( matrix4 ).getInverse( this ).transpose(); + + } + + transposeIntoArray( r ) { + + const m = this.elements; + + r[ 0 ] = m[ 0 ]; + r[ 1 ] = m[ 3 ]; + r[ 2 ] = m[ 6 ]; + r[ 3 ] = m[ 1 ]; + r[ 4 ] = m[ 4 ]; + r[ 5 ] = m[ 7 ]; + r[ 6 ] = m[ 2 ]; + r[ 7 ] = m[ 5 ]; + r[ 8 ] = m[ 8 ]; + + return this; + + } + + setUvTransform( tx, ty, sx, sy, rotation, cx, cy ) { + + const c = Math.cos( rotation ); + const s = Math.sin( rotation ); + + this.set( + sx * c, sx * s, - sx * ( c * cx + s * cy ) + cx + tx, + - sy * s, sy * c, - sy * ( - s * cx + c * cy ) + cy + ty, + 0, 0, 1 + ); + + } + + scale( sx, sy ) { + + const te = this.elements; + + te[ 0 ] *= sx; te[ 3 ] *= sx; te[ 6 ] *= sx; + te[ 1 ] *= sy; te[ 4 ] *= sy; te[ 7 ] *= sy; + + return this; + + } + + rotate( theta ) { + + const c = Math.cos( theta ); + const s = Math.sin( theta ); + + const te = this.elements; + + const a11 = te[ 0 ], a12 = te[ 3 ], a13 = te[ 6 ]; + const a21 = te[ 1 ], a22 = te[ 4 ], a23 = te[ 7 ]; + + te[ 0 ] = c * a11 + s * a21; + te[ 3 ] = c * a12 + s * a22; + te[ 6 ] = c * a13 + s * a23; + + te[ 1 ] = - s * a11 + c * a21; + te[ 4 ] = - s * a12 + c * a22; + te[ 7 ] = - s * a13 + c * a23; + + return this; + + } + + translate( tx, ty ) { + + const te = this.elements; + + te[ 0 ] += tx * te[ 2 ]; te[ 3 ] += tx * te[ 5 ]; te[ 6 ] += tx * te[ 8 ]; + te[ 1 ] += ty * te[ 2 ]; te[ 4 ] += ty * te[ 5 ]; te[ 7 ] += ty * te[ 8 ]; + + return this; + + } + + equals( matrix ) { + + const te = this.elements; + const me = matrix.elements; + + for ( let i = 0; i < 9; i ++ ) { + + if ( te[ i ] !== me[ i ] ) return false; + + } + + return true; + + } + + fromArray( array, offset ) { + + if ( offset === undefined ) offset = 0; + + for ( let i = 0; i < 9; i ++ ) { + + this.elements[ i ] = array[ i + offset ]; + + } + + return this; + + } + + toArray( array, offset ) { + + if ( array === undefined ) array = []; + if ( offset === undefined ) offset = 0; + + const te = this.elements; + + array[ offset ] = te[ 0 ]; + array[ offset + 1 ] = te[ 1 ]; + array[ offset + 2 ] = te[ 2 ]; + + array[ offset + 3 ] = te[ 3 ]; + array[ offset + 4 ] = te[ 4 ]; + array[ offset + 5 ] = te[ 5 ]; + + array[ offset + 6 ] = te[ 6 ]; + array[ offset + 7 ] = te[ 7 ]; + array[ offset + 8 ] = te[ 8 ]; + + return array; + + } + +} + +let _canvas; + +const ImageUtils = { + + getDataURL: function ( image ) { + + if ( /^data:/i.test( image.src ) ) { + + return image.src; + + } + + if ( typeof HTMLCanvasElement == 'undefined' ) { + + return image.src; + + } + + let canvas; + + if ( image instanceof HTMLCanvasElement ) { + + canvas = image; + + } else { + + if ( _canvas === undefined ) _canvas = document.createElementNS( 'http://www.w3.org/1999/xhtml', 'canvas' ); + + _canvas.width = image.width; + _canvas.height = image.height; + + const context = _canvas.getContext( '2d' ); + + if ( image instanceof ImageData ) { + + context.putImageData( image, 0, 0 ); + + } else { + + context.drawImage( image, 0, 0, image.width, image.height ); + + } + + canvas = _canvas; + + } + + if ( canvas.width > 2048 || canvas.height > 2048 ) { + + return canvas.toDataURL( 'image/jpeg', 0.6 ); + + } else { + + return canvas.toDataURL( 'image/png' ); + + } + + } + +}; + +let textureId = 0; + +function Texture( image, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy, encoding ) { + + Object.defineProperty( this, 'id', { value: textureId ++ } ); + + this.uuid = MathUtils.generateUUID(); + + this.name = ''; + + this.image = image !== undefined ? image : Texture.DEFAULT_IMAGE; + this.mipmaps = []; + + this.mapping = mapping !== undefined ? mapping : Texture.DEFAULT_MAPPING; + + this.wrapS = wrapS !== undefined ? wrapS : ClampToEdgeWrapping; + this.wrapT = wrapT !== undefined ? wrapT : ClampToEdgeWrapping; + + this.magFilter = magFilter !== undefined ? magFilter : LinearFilter; + this.minFilter = minFilter !== undefined ? minFilter : LinearMipmapLinearFilter; + + this.anisotropy = anisotropy !== undefined ? anisotropy : 1; + + this.format = format !== undefined ? format : RGBAFormat; + this.internalFormat = null; + this.type = type !== undefined ? type : UnsignedByteType; + + this.offset = new Vector2( 0, 0 ); + this.repeat = new Vector2( 1, 1 ); + this.center = new Vector2( 0, 0 ); + this.rotation = 0; + + this.matrixAutoUpdate = true; + this.matrix = new Matrix3(); + + this.generateMipmaps = true; + this.premultiplyAlpha = false; + this.flipY = true; + this.unpackAlignment = 4; // valid values: 1, 2, 4, 8 (see http://www.khronos.org/opengles/sdk/docs/man/xhtml/glPixelStorei.xml) + + // Values of encoding !== THREE.LinearEncoding only supported on map, envMap and emissiveMap. + // + // Also changing the encoding after already used by a Material will not automatically make the Material + // update. You need to explicitly call Material.needsUpdate to trigger it to recompile. + this.encoding = encoding !== undefined ? encoding : LinearEncoding; + + this.version = 0; + this.onUpdate = null; + +} + +Texture.DEFAULT_IMAGE = undefined; +Texture.DEFAULT_MAPPING = UVMapping; + +Texture.prototype = Object.assign( Object.create( EventDispatcher.prototype ), { + + constructor: Texture, + + isTexture: true, + + updateMatrix: function () { + + this.matrix.setUvTransform( this.offset.x, this.offset.y, this.repeat.x, this.repeat.y, this.rotation, this.center.x, this.center.y ); + + }, + + clone: function () { + + return new this.constructor().copy( this ); + + }, + + copy: function ( source ) { + + this.name = source.name; + + this.image = source.image; + this.mipmaps = source.mipmaps.slice( 0 ); + + this.mapping = source.mapping; + + this.wrapS = source.wrapS; + this.wrapT = source.wrapT; + + this.magFilter = source.magFilter; + this.minFilter = source.minFilter; + + this.anisotropy = source.anisotropy; + + this.format = source.format; + this.internalFormat = source.internalFormat; + this.type = source.type; + + this.offset.copy( source.offset ); + this.repeat.copy( source.repeat ); + this.center.copy( source.center ); + this.rotation = source.rotation; + + this.matrixAutoUpdate = source.matrixAutoUpdate; + this.matrix.copy( source.matrix ); + + this.generateMipmaps = source.generateMipmaps; + this.premultiplyAlpha = source.premultiplyAlpha; + this.flipY = source.flipY; + this.unpackAlignment = source.unpackAlignment; + this.encoding = source.encoding; + + return this; + + }, + + toJSON: function ( meta ) { + + const isRootObject = ( meta === undefined || typeof meta === 'string' ); + + if ( ! isRootObject && meta.textures[ this.uuid ] !== undefined ) { + + return meta.textures[ this.uuid ]; + + } + + const output = { + + metadata: { + version: 4.5, + type: 'Texture', + generator: 'Texture.toJSON' + }, + + uuid: this.uuid, + name: this.name, + + mapping: this.mapping, + + repeat: [ this.repeat.x, this.repeat.y ], + offset: [ this.offset.x, this.offset.y ], + center: [ this.center.x, this.center.y ], + rotation: this.rotation, + + wrap: [ this.wrapS, this.wrapT ], + + format: this.format, + type: this.type, + encoding: this.encoding, + + minFilter: this.minFilter, + magFilter: this.magFilter, + anisotropy: this.anisotropy, + + flipY: this.flipY, + + premultiplyAlpha: this.premultiplyAlpha, + unpackAlignment: this.unpackAlignment + + }; + + if ( this.image !== undefined ) { + + // TODO: Move to THREE.Image + + const image = this.image; + + if ( image.uuid === undefined ) { + + image.uuid = MathUtils.generateUUID(); // UGH + + } + + if ( ! isRootObject && meta.images[ image.uuid ] === undefined ) { + + let url; + + if ( Array.isArray( image ) ) { + + // process array of images e.g. CubeTexture + + url = []; + + for ( let i = 0, l = image.length; i < l; i ++ ) { + + url.push( ImageUtils.getDataURL( image[ i ] ) ); + + } + + } else { + + // process single image + + url = ImageUtils.getDataURL( image ); + + } + + meta.images[ image.uuid ] = { + uuid: image.uuid, + url: url + }; + + } + + output.image = image.uuid; + + } + + if ( ! isRootObject ) { + + meta.textures[ this.uuid ] = output; + + } + + return output; + + }, + + dispose: function () { + + this.dispatchEvent( { type: 'dispose' } ); + + }, + + transformUv: function ( uv ) { + + if ( this.mapping !== UVMapping ) return uv; + + uv.applyMatrix3( this.matrix ); + + if ( uv.x < 0 || uv.x > 1 ) { + + switch ( this.wrapS ) { + + case RepeatWrapping: + + uv.x = uv.x - Math.floor( uv.x ); + break; + + case ClampToEdgeWrapping: + + uv.x = uv.x < 0 ? 0 : 1; + break; + + case MirroredRepeatWrapping: + + if ( Math.abs( Math.floor( uv.x ) % 2 ) === 1 ) { + + uv.x = Math.ceil( uv.x ) - uv.x; + + } else { + + uv.x = uv.x - Math.floor( uv.x ); + + } + + break; + + } + + } + + if ( uv.y < 0 || uv.y > 1 ) { + + switch ( this.wrapT ) { + + case RepeatWrapping: + + uv.y = uv.y - Math.floor( uv.y ); + break; + + case ClampToEdgeWrapping: + + uv.y = uv.y < 0 ? 0 : 1; + break; + + case MirroredRepeatWrapping: + + if ( Math.abs( Math.floor( uv.y ) % 2 ) === 1 ) { + + uv.y = Math.ceil( uv.y ) - uv.y; + + } else { + + uv.y = uv.y - Math.floor( uv.y ); + + } + + break; + + } + + } + + if ( this.flipY ) { + + uv.y = 1 - uv.y; + + } + + return uv; + + } + +} ); + +Object.defineProperty( Texture.prototype, "needsUpdate", { + + set: function ( value ) { + + if ( value === true ) this.version ++; + + } + +} ); + +class Vector4 { + + constructor( x = 0, y = 0, z = 0, w = 1 ) { + + Object.defineProperty( this, 'isVector4', { value: true } ); + + this.x = x; + this.y = y; + this.z = z; + this.w = w; + + } + + get width() { + + return this.z; + + } + + set width( value ) { + + this.z = value; + + } + + get height() { + + return this.w; + + } + + set height( value ) { + + this.w = value; + + } + + set( x, y, z, w ) { + + this.x = x; + this.y = y; + this.z = z; + this.w = w; + + return this; + + } + + setScalar( scalar ) { + + this.x = scalar; + this.y = scalar; + this.z = scalar; + this.w = scalar; + + return this; + + } + + setX( x ) { + + this.x = x; + + return this; + + } + + setY( y ) { + + this.y = y; + + return this; + + } + + setZ( z ) { + + this.z = z; + + return this; + + } + + setW( w ) { + + this.w = w; + + return this; + + } + + setComponent( index, value ) { + + switch ( index ) { + + case 0: this.x = value; break; + case 1: this.y = value; break; + case 2: this.z = value; break; + case 3: this.w = value; break; + default: throw new Error( 'index is out of range: ' + index ); + + } + + return this; + + } + + getComponent( index ) { + + switch ( index ) { + + case 0: return this.x; + case 1: return this.y; + case 2: return this.z; + case 3: return this.w; + default: throw new Error( 'index is out of range: ' + index ); + + } + + } + + clone() { + + return new this.constructor( this.x, this.y, this.z, this.w ); + + } + + copy( v ) { + + this.x = v.x; + this.y = v.y; + this.z = v.z; + this.w = ( v.w !== undefined ) ? v.w : 1; + + return this; + + } + + add( v, w ) { + + if ( w !== undefined ) { + + console.warn( 'THREE.Vector4: .add() now only accepts one argument. Use .addVectors( a, b ) instead.' ); + return this.addVectors( v, w ); + + } + + this.x += v.x; + this.y += v.y; + this.z += v.z; + this.w += v.w; + + return this; + + } + + addScalar( s ) { + + this.x += s; + this.y += s; + this.z += s; + this.w += s; + + return this; + + } + + addVectors( a, b ) { + + this.x = a.x + b.x; + this.y = a.y + b.y; + this.z = a.z + b.z; + this.w = a.w + b.w; + + return this; + + } + + addScaledVector( v, s ) { + + this.x += v.x * s; + this.y += v.y * s; + this.z += v.z * s; + this.w += v.w * s; + + return this; + + } + + sub( v, w ) { + + if ( w !== undefined ) { + + console.warn( 'THREE.Vector4: .sub() now only accepts one argument. Use .subVectors( a, b ) instead.' ); + return this.subVectors( v, w ); + + } + + this.x -= v.x; + this.y -= v.y; + this.z -= v.z; + this.w -= v.w; + + return this; + + } + + subScalar( s ) { + + this.x -= s; + this.y -= s; + this.z -= s; + this.w -= s; + + return this; + + } + + subVectors( a, b ) { + + this.x = a.x - b.x; + this.y = a.y - b.y; + this.z = a.z - b.z; + this.w = a.w - b.w; + + return this; + + } + + multiplyScalar( scalar ) { + + this.x *= scalar; + this.y *= scalar; + this.z *= scalar; + this.w *= scalar; + + return this; + + } + + applyMatrix4( m ) { + + const x = this.x, y = this.y, z = this.z, w = this.w; + const e = m.elements; + + this.x = e[ 0 ] * x + e[ 4 ] * y + e[ 8 ] * z + e[ 12 ] * w; + this.y = e[ 1 ] * x + e[ 5 ] * y + e[ 9 ] * z + e[ 13 ] * w; + this.z = e[ 2 ] * x + e[ 6 ] * y + e[ 10 ] * z + e[ 14 ] * w; + this.w = e[ 3 ] * x + e[ 7 ] * y + e[ 11 ] * z + e[ 15 ] * w; + + return this; + + } + + divideScalar( scalar ) { + + return this.multiplyScalar( 1 / scalar ); + + } + + setAxisAngleFromQuaternion( q ) { + + // http://www.euclideanspace.com/maths/geometry/rotations/conversions/quaternionToAngle/index.htm + + // q is assumed to be normalized + + this.w = 2 * Math.acos( q.w ); + + const s = Math.sqrt( 1 - q.w * q.w ); + + if ( s < 0.0001 ) { + + this.x = 1; + this.y = 0; + this.z = 0; + + } else { + + this.x = q.x / s; + this.y = q.y / s; + this.z = q.z / s; + + } + + return this; + + } + + setAxisAngleFromRotationMatrix( m ) { + + // http://www.euclideanspace.com/maths/geometry/rotations/conversions/matrixToAngle/index.htm + + // assumes the upper 3x3 of m is a pure rotation matrix (i.e, unscaled) + + let angle, x, y, z; // variables for result + const epsilon = 0.01, // margin to allow for rounding errors + epsilon2 = 0.1, // margin to distinguish between 0 and 180 degrees + + te = m.elements, + + m11 = te[ 0 ], m12 = te[ 4 ], m13 = te[ 8 ], + m21 = te[ 1 ], m22 = te[ 5 ], m23 = te[ 9 ], + m31 = te[ 2 ], m32 = te[ 6 ], m33 = te[ 10 ]; + + if ( ( Math.abs( m12 - m21 ) < epsilon ) && + ( Math.abs( m13 - m31 ) < epsilon ) && + ( Math.abs( m23 - m32 ) < epsilon ) ) { + + // singularity found + // first check for identity matrix which must have +1 for all terms + // in leading diagonal and zero in other terms + + if ( ( Math.abs( m12 + m21 ) < epsilon2 ) && + ( Math.abs( m13 + m31 ) < epsilon2 ) && + ( Math.abs( m23 + m32 ) < epsilon2 ) && + ( Math.abs( m11 + m22 + m33 - 3 ) < epsilon2 ) ) { + + // this singularity is identity matrix so angle = 0 + + this.set( 1, 0, 0, 0 ); + + return this; // zero angle, arbitrary axis + + } + + // otherwise this singularity is angle = 180 + + angle = Math.PI; + + const xx = ( m11 + 1 ) / 2; + const yy = ( m22 + 1 ) / 2; + const zz = ( m33 + 1 ) / 2; + const xy = ( m12 + m21 ) / 4; + const xz = ( m13 + m31 ) / 4; + const yz = ( m23 + m32 ) / 4; + + if ( ( xx > yy ) && ( xx > zz ) ) { + + // m11 is the largest diagonal term + + if ( xx < epsilon ) { + + x = 0; + y = 0.707106781; + z = 0.707106781; + + } else { + + x = Math.sqrt( xx ); + y = xy / x; + z = xz / x; + + } + + } else if ( yy > zz ) { + + // m22 is the largest diagonal term + + if ( yy < epsilon ) { + + x = 0.707106781; + y = 0; + z = 0.707106781; + + } else { + + y = Math.sqrt( yy ); + x = xy / y; + z = yz / y; + + } + + } else { + + // m33 is the largest diagonal term so base result on this + + if ( zz < epsilon ) { + + x = 0.707106781; + y = 0.707106781; + z = 0; + + } else { + + z = Math.sqrt( zz ); + x = xz / z; + y = yz / z; + + } + + } + + this.set( x, y, z, angle ); + + return this; // return 180 deg rotation + + } + + // as we have reached here there are no singularities so we can handle normally + + let s = Math.sqrt( ( m32 - m23 ) * ( m32 - m23 ) + + ( m13 - m31 ) * ( m13 - m31 ) + + ( m21 - m12 ) * ( m21 - m12 ) ); // used to normalize + + if ( Math.abs( s ) < 0.001 ) s = 1; + + // prevent divide by zero, should not happen if matrix is orthogonal and should be + // caught by singularity test above, but I've left it in just in case + + this.x = ( m32 - m23 ) / s; + this.y = ( m13 - m31 ) / s; + this.z = ( m21 - m12 ) / s; + this.w = Math.acos( ( m11 + m22 + m33 - 1 ) / 2 ); + + return this; + + } + + min( v ) { + + this.x = Math.min( this.x, v.x ); + this.y = Math.min( this.y, v.y ); + this.z = Math.min( this.z, v.z ); + this.w = Math.min( this.w, v.w ); + + return this; + + } + + max( v ) { + + this.x = Math.max( this.x, v.x ); + this.y = Math.max( this.y, v.y ); + this.z = Math.max( this.z, v.z ); + this.w = Math.max( this.w, v.w ); + + return this; + + } + + clamp( min, max ) { + + // assumes min < max, componentwise + + this.x = Math.max( min.x, Math.min( max.x, this.x ) ); + this.y = Math.max( min.y, Math.min( max.y, this.y ) ); + this.z = Math.max( min.z, Math.min( max.z, this.z ) ); + this.w = Math.max( min.w, Math.min( max.w, this.w ) ); + + return this; + + } + + clampScalar( minVal, maxVal ) { + + this.x = Math.max( minVal, Math.min( maxVal, this.x ) ); + this.y = Math.max( minVal, Math.min( maxVal, this.y ) ); + this.z = Math.max( minVal, Math.min( maxVal, this.z ) ); + this.w = Math.max( minVal, Math.min( maxVal, this.w ) ); + + return this; + + } + + clampLength( min, max ) { + + const length = this.length(); + + return this.divideScalar( length || 1 ).multiplyScalar( Math.max( min, Math.min( max, length ) ) ); + + } + + floor() { + + this.x = Math.floor( this.x ); + this.y = Math.floor( this.y ); + this.z = Math.floor( this.z ); + this.w = Math.floor( this.w ); + + return this; + + } + + ceil() { + + this.x = Math.ceil( this.x ); + this.y = Math.ceil( this.y ); + this.z = Math.ceil( this.z ); + this.w = Math.ceil( this.w ); + + return this; + + } + + round() { + + this.x = Math.round( this.x ); + this.y = Math.round( this.y ); + this.z = Math.round( this.z ); + this.w = Math.round( this.w ); + + return this; + + } + + roundToZero() { + + this.x = ( this.x < 0 ) ? Math.ceil( this.x ) : Math.floor( this.x ); + this.y = ( this.y < 0 ) ? Math.ceil( this.y ) : Math.floor( this.y ); + this.z = ( this.z < 0 ) ? Math.ceil( this.z ) : Math.floor( this.z ); + this.w = ( this.w < 0 ) ? Math.ceil( this.w ) : Math.floor( this.w ); + + return this; + + } + + negate() { + + this.x = - this.x; + this.y = - this.y; + this.z = - this.z; + this.w = - this.w; + + return this; + + } + + dot( v ) { + + return this.x * v.x + this.y * v.y + this.z * v.z + this.w * v.w; + + } + + lengthSq() { + + return this.x * this.x + this.y * this.y + this.z * this.z + this.w * this.w; + + } + + length() { + + return Math.sqrt( this.x * this.x + this.y * this.y + this.z * this.z + this.w * this.w ); + + } + + manhattanLength() { + + return Math.abs( this.x ) + Math.abs( this.y ) + Math.abs( this.z ) + Math.abs( this.w ); + + } + + normalize() { + + return this.divideScalar( this.length() || 1 ); + + } + + setLength( length ) { + + return this.normalize().multiplyScalar( length ); + + } + + lerp( v, alpha ) { + + this.x += ( v.x - this.x ) * alpha; + this.y += ( v.y - this.y ) * alpha; + this.z += ( v.z - this.z ) * alpha; + this.w += ( v.w - this.w ) * alpha; + + return this; + + } + + lerpVectors( v1, v2, alpha ) { + + this.x = v1.x + ( v2.x - v1.x ) * alpha; + this.y = v1.y + ( v2.y - v1.y ) * alpha; + this.z = v1.z + ( v2.z - v1.z ) * alpha; + this.w = v1.w + ( v2.w - v1.w ) * alpha; + + return this; + + } + + equals( v ) { + + return ( ( v.x === this.x ) && ( v.y === this.y ) && ( v.z === this.z ) && ( v.w === this.w ) ); + + } + + fromArray( array, offset ) { + + if ( offset === undefined ) offset = 0; + + this.x = array[ offset ]; + this.y = array[ offset + 1 ]; + this.z = array[ offset + 2 ]; + this.w = array[ offset + 3 ]; + + return this; + + } + + toArray( array, offset ) { + + if ( array === undefined ) array = []; + if ( offset === undefined ) offset = 0; + + array[ offset ] = this.x; + array[ offset + 1 ] = this.y; + array[ offset + 2 ] = this.z; + array[ offset + 3 ] = this.w; + + return array; + + } + + fromBufferAttribute( attribute, index, offset ) { + + if ( offset !== undefined ) { + + console.warn( 'THREE.Vector4: offset has been removed from .fromBufferAttribute().' ); + + } + + this.x = attribute.getX( index ); + this.y = attribute.getY( index ); + this.z = attribute.getZ( index ); + this.w = attribute.getW( index ); + + return this; + + } + + random() { + + this.x = Math.random(); + this.y = Math.random(); + this.z = Math.random(); + this.w = Math.random(); + + return this; + + } + +} + +/* + In options, we can specify: + * Texture parameters for an auto-generated target texture + * depthBuffer/stencilBuffer: Booleans to indicate if we should generate these buffers +*/ +function WebGLRenderTarget( width, height, options ) { + + this.width = width; + this.height = height; + + this.scissor = new Vector4( 0, 0, width, height ); + this.scissorTest = false; + + this.viewport = new Vector4( 0, 0, width, height ); + + options = options || {}; + + this.texture = new Texture( undefined, options.mapping, options.wrapS, options.wrapT, options.magFilter, options.minFilter, options.format, options.type, options.anisotropy, options.encoding ); + + this.texture.image = {}; + this.texture.image.width = width; + this.texture.image.height = height; + + this.texture.generateMipmaps = options.generateMipmaps !== undefined ? options.generateMipmaps : false; + this.texture.minFilter = options.minFilter !== undefined ? options.minFilter : LinearFilter; + + this.depthBuffer = options.depthBuffer !== undefined ? options.depthBuffer : true; + this.stencilBuffer = options.stencilBuffer !== undefined ? options.stencilBuffer : false; + this.depthTexture = options.depthTexture !== undefined ? options.depthTexture : null; + +} + +WebGLRenderTarget.prototype = Object.assign( Object.create( EventDispatcher.prototype ), { + + constructor: WebGLRenderTarget, + + isWebGLRenderTarget: true, + + setSize: function ( width, height ) { + + if ( this.width !== width || this.height !== height ) { + + this.width = width; + this.height = height; + + this.texture.image.width = width; + this.texture.image.height = height; + + this.dispose(); + + } + + this.viewport.set( 0, 0, width, height ); + this.scissor.set( 0, 0, width, height ); + + }, + + clone: function () { + + return new this.constructor().copy( this ); + + }, + + copy: function ( source ) { + + this.width = source.width; + this.height = source.height; + + this.viewport.copy( source.viewport ); + + this.texture = source.texture.clone(); + + this.depthBuffer = source.depthBuffer; + this.stencilBuffer = source.stencilBuffer; + this.depthTexture = source.depthTexture; + + return this; + + }, + + dispose: function () { + + this.dispatchEvent( { type: 'dispose' } ); + + } + +} ); + +function WebGLMultisampleRenderTarget( width, height, options ) { + + WebGLRenderTarget.call( this, width, height, options ); + + this.samples = 4; + +} + +WebGLMultisampleRenderTarget.prototype = Object.assign( Object.create( WebGLRenderTarget.prototype ), { + + constructor: WebGLMultisampleRenderTarget, + + isWebGLMultisampleRenderTarget: true, + + copy: function ( source ) { + + WebGLRenderTarget.prototype.copy.call( this, source ); + + this.samples = source.samples; + + return this; + + } + +} ); + +class Quaternion { + + constructor( x = 0, y = 0, z = 0, w = 1 ) { + + Object.defineProperty( this, 'isQuaternion', { value: true } ); + + this._x = x; + this._y = y; + this._z = z; + this._w = w; + + } + + static slerp( qa, qb, qm, t ) { + + return qm.copy( qa ).slerp( qb, t ); + + } + + static slerpFlat( dst, dstOffset, src0, srcOffset0, src1, srcOffset1, t ) { + + // fuzz-free, array-based Quaternion SLERP operation + + let x0 = src0[ srcOffset0 + 0 ], + y0 = src0[ srcOffset0 + 1 ], + z0 = src0[ srcOffset0 + 2 ], + w0 = src0[ srcOffset0 + 3 ]; + + const x1 = src1[ srcOffset1 + 0 ], + y1 = src1[ srcOffset1 + 1 ], + z1 = src1[ srcOffset1 + 2 ], + w1 = src1[ srcOffset1 + 3 ]; + + if ( w0 !== w1 || x0 !== x1 || y0 !== y1 || z0 !== z1 ) { + + let s = 1 - t; + const cos = x0 * x1 + y0 * y1 + z0 * z1 + w0 * w1, + dir = ( cos >= 0 ? 1 : - 1 ), + sqrSin = 1 - cos * cos; + + // Skip the Slerp for tiny steps to avoid numeric problems: + if ( sqrSin > Number.EPSILON ) { + + const sin = Math.sqrt( sqrSin ), + len = Math.atan2( sin, cos * dir ); + + s = Math.sin( s * len ) / sin; + t = Math.sin( t * len ) / sin; + + } + + const tDir = t * dir; + + x0 = x0 * s + x1 * tDir; + y0 = y0 * s + y1 * tDir; + z0 = z0 * s + z1 * tDir; + w0 = w0 * s + w1 * tDir; + + // Normalize in case we just did a lerp: + if ( s === 1 - t ) { + + const f = 1 / Math.sqrt( x0 * x0 + y0 * y0 + z0 * z0 + w0 * w0 ); + + x0 *= f; + y0 *= f; + z0 *= f; + w0 *= f; + + } + + } + + dst[ dstOffset ] = x0; + dst[ dstOffset + 1 ] = y0; + dst[ dstOffset + 2 ] = z0; + dst[ dstOffset + 3 ] = w0; + + } + + static multiplyQuaternionsFlat( dst, dstOffset, src0, srcOffset0, src1, srcOffset1 ) { + + const x0 = src0[ srcOffset0 ]; + const y0 = src0[ srcOffset0 + 1 ]; + const z0 = src0[ srcOffset0 + 2 ]; + const w0 = src0[ srcOffset0 + 3 ]; + + const x1 = src1[ srcOffset1 ]; + const y1 = src1[ srcOffset1 + 1 ]; + const z1 = src1[ srcOffset1 + 2 ]; + const w1 = src1[ srcOffset1 + 3 ]; + + dst[ dstOffset ] = x0 * w1 + w0 * x1 + y0 * z1 - z0 * y1; + dst[ dstOffset + 1 ] = y0 * w1 + w0 * y1 + z0 * x1 - x0 * z1; + dst[ dstOffset + 2 ] = z0 * w1 + w0 * z1 + x0 * y1 - y0 * x1; + dst[ dstOffset + 3 ] = w0 * w1 - x0 * x1 - y0 * y1 - z0 * z1; + + return dst; + + } + + get x() { + + return this._x; + + } + + set x( value ) { + + this._x = value; + this._onChangeCallback(); + + } + + get y() { + + return this._y; + + } + + set y( value ) { + + this._y = value; + this._onChangeCallback(); + + } + + get z() { + + return this._z; + + } + + set z( value ) { + + this._z = value; + this._onChangeCallback(); + + } + + get w() { + + return this._w; + + } + + set w( value ) { + + this._w = value; + this._onChangeCallback(); + + } + + set( x, y, z, w ) { + + this._x = x; + this._y = y; + this._z = z; + this._w = w; + + this._onChangeCallback(); + + return this; + + } + + clone() { + + return new this.constructor( this._x, this._y, this._z, this._w ); + + } + + copy( quaternion ) { + + this._x = quaternion.x; + this._y = quaternion.y; + this._z = quaternion.z; + this._w = quaternion.w; + + this._onChangeCallback(); + + return this; + + } + + setFromEuler( euler, update ) { + + if ( ! ( euler && euler.isEuler ) ) { + + throw new Error( 'THREE.Quaternion: .setFromEuler() now expects an Euler rotation rather than a Vector3 and order.' ); + + } + + const x = euler._x, y = euler._y, z = euler._z, order = euler._order; + + // http://www.mathworks.com/matlabcentral/fileexchange/ + // 20696-function-to-convert-between-dcm-euler-angles-quaternions-and-euler-vectors/ + // content/SpinCalc.m + + const cos = Math.cos; + const sin = Math.sin; + + const c1 = cos( x / 2 ); + const c2 = cos( y / 2 ); + const c3 = cos( z / 2 ); + + const s1 = sin( x / 2 ); + const s2 = sin( y / 2 ); + const s3 = sin( z / 2 ); + + switch ( order ) { + + case 'XYZ': + this._x = s1 * c2 * c3 + c1 * s2 * s3; + this._y = c1 * s2 * c3 - s1 * c2 * s3; + this._z = c1 * c2 * s3 + s1 * s2 * c3; + this._w = c1 * c2 * c3 - s1 * s2 * s3; + break; + + case 'YXZ': + this._x = s1 * c2 * c3 + c1 * s2 * s3; + this._y = c1 * s2 * c3 - s1 * c2 * s3; + this._z = c1 * c2 * s3 - s1 * s2 * c3; + this._w = c1 * c2 * c3 + s1 * s2 * s3; + break; + + case 'ZXY': + this._x = s1 * c2 * c3 - c1 * s2 * s3; + this._y = c1 * s2 * c3 + s1 * c2 * s3; + this._z = c1 * c2 * s3 + s1 * s2 * c3; + this._w = c1 * c2 * c3 - s1 * s2 * s3; + break; + + case 'ZYX': + this._x = s1 * c2 * c3 - c1 * s2 * s3; + this._y = c1 * s2 * c3 + s1 * c2 * s3; + this._z = c1 * c2 * s3 - s1 * s2 * c3; + this._w = c1 * c2 * c3 + s1 * s2 * s3; + break; + + case 'YZX': + this._x = s1 * c2 * c3 + c1 * s2 * s3; + this._y = c1 * s2 * c3 + s1 * c2 * s3; + this._z = c1 * c2 * s3 - s1 * s2 * c3; + this._w = c1 * c2 * c3 - s1 * s2 * s3; + break; + + case 'XZY': + this._x = s1 * c2 * c3 - c1 * s2 * s3; + this._y = c1 * s2 * c3 - s1 * c2 * s3; + this._z = c1 * c2 * s3 + s1 * s2 * c3; + this._w = c1 * c2 * c3 + s1 * s2 * s3; + break; + + default: + console.warn( 'THREE.Quaternion: .setFromEuler() encountered an unknown order: ' + order ); + + } + + if ( update !== false ) this._onChangeCallback(); + + return this; + + } + + setFromAxisAngle( axis, angle ) { + + // http://www.euclideanspace.com/maths/geometry/rotations/conversions/angleToQuaternion/index.htm + + // assumes axis is normalized + + const halfAngle = angle / 2, s = Math.sin( halfAngle ); + + this._x = axis.x * s; + this._y = axis.y * s; + this._z = axis.z * s; + this._w = Math.cos( halfAngle ); + + this._onChangeCallback(); + + return this; + + } + + setFromRotationMatrix( m ) { + + // http://www.euclideanspace.com/maths/geometry/rotations/conversions/matrixToQuaternion/index.htm + + // assumes the upper 3x3 of m is a pure rotation matrix (i.e, unscaled) + + const te = m.elements, + + m11 = te[ 0 ], m12 = te[ 4 ], m13 = te[ 8 ], + m21 = te[ 1 ], m22 = te[ 5 ], m23 = te[ 9 ], + m31 = te[ 2 ], m32 = te[ 6 ], m33 = te[ 10 ], + + trace = m11 + m22 + m33; + + if ( trace > 0 ) { + + const s = 0.5 / Math.sqrt( trace + 1.0 ); + + this._w = 0.25 / s; + this._x = ( m32 - m23 ) * s; + this._y = ( m13 - m31 ) * s; + this._z = ( m21 - m12 ) * s; + + } else if ( m11 > m22 && m11 > m33 ) { + + const s = 2.0 * Math.sqrt( 1.0 + m11 - m22 - m33 ); + + this._w = ( m32 - m23 ) / s; + this._x = 0.25 * s; + this._y = ( m12 + m21 ) / s; + this._z = ( m13 + m31 ) / s; + + } else if ( m22 > m33 ) { + + const s = 2.0 * Math.sqrt( 1.0 + m22 - m11 - m33 ); + + this._w = ( m13 - m31 ) / s; + this._x = ( m12 + m21 ) / s; + this._y = 0.25 * s; + this._z = ( m23 + m32 ) / s; + + } else { + + const s = 2.0 * Math.sqrt( 1.0 + m33 - m11 - m22 ); + + this._w = ( m21 - m12 ) / s; + this._x = ( m13 + m31 ) / s; + this._y = ( m23 + m32 ) / s; + this._z = 0.25 * s; + + } + + this._onChangeCallback(); + + return this; + + } + + setFromUnitVectors( vFrom, vTo ) { + + // assumes direction vectors vFrom and vTo are normalized + + const EPS = 0.000001; + + let r = vFrom.dot( vTo ) + 1; + + if ( r < EPS ) { + + r = 0; + + if ( Math.abs( vFrom.x ) > Math.abs( vFrom.z ) ) { + + this._x = - vFrom.y; + this._y = vFrom.x; + this._z = 0; + this._w = r; + + } else { + + this._x = 0; + this._y = - vFrom.z; + this._z = vFrom.y; + this._w = r; + + } + + } else { + + // crossVectors( vFrom, vTo ); // inlined to avoid cyclic dependency on Vector3 + + this._x = vFrom.y * vTo.z - vFrom.z * vTo.y; + this._y = vFrom.z * vTo.x - vFrom.x * vTo.z; + this._z = vFrom.x * vTo.y - vFrom.y * vTo.x; + this._w = r; + + } + + return this.normalize(); + + } + + angleTo( q ) { + + return 2 * Math.acos( Math.abs( MathUtils.clamp( this.dot( q ), - 1, 1 ) ) ); + + } + + rotateTowards( q, step ) { + + const angle = this.angleTo( q ); + + if ( angle === 0 ) return this; + + const t = Math.min( 1, step / angle ); + + this.slerp( q, t ); + + return this; + + } + + identity() { + + return this.set( 0, 0, 0, 1 ); + + } + + inverse() { + + // quaternion is assumed to have unit length + + return this.conjugate(); + + } + + conjugate() { + + this._x *= - 1; + this._y *= - 1; + this._z *= - 1; + + this._onChangeCallback(); + + return this; + + } + + dot( v ) { + + return this._x * v._x + this._y * v._y + this._z * v._z + this._w * v._w; + + } + + lengthSq() { + + return this._x * this._x + this._y * this._y + this._z * this._z + this._w * this._w; + + } + + length() { + + return Math.sqrt( this._x * this._x + this._y * this._y + this._z * this._z + this._w * this._w ); + + } + + normalize() { + + let l = this.length(); + + if ( l === 0 ) { + + this._x = 0; + this._y = 0; + this._z = 0; + this._w = 1; + + } else { + + l = 1 / l; + + this._x = this._x * l; + this._y = this._y * l; + this._z = this._z * l; + this._w = this._w * l; + + } + + this._onChangeCallback(); + + return this; + + } + + multiply( q, p ) { + + if ( p !== undefined ) { + + console.warn( 'THREE.Quaternion: .multiply() now only accepts one argument. Use .multiplyQuaternions( a, b ) instead.' ); + return this.multiplyQuaternions( q, p ); + + } + + return this.multiplyQuaternions( this, q ); + + } + + premultiply( q ) { + + return this.multiplyQuaternions( q, this ); + + } + + multiplyQuaternions( a, b ) { + + // from http://www.euclideanspace.com/maths/algebra/realNormedAlgebra/quaternions/code/index.htm + + const qax = a._x, qay = a._y, qaz = a._z, qaw = a._w; + const qbx = b._x, qby = b._y, qbz = b._z, qbw = b._w; + + this._x = qax * qbw + qaw * qbx + qay * qbz - qaz * qby; + this._y = qay * qbw + qaw * qby + qaz * qbx - qax * qbz; + this._z = qaz * qbw + qaw * qbz + qax * qby - qay * qbx; + this._w = qaw * qbw - qax * qbx - qay * qby - qaz * qbz; + + this._onChangeCallback(); + + return this; + + } + + slerp( qb, t ) { + + if ( t === 0 ) return this; + if ( t === 1 ) return this.copy( qb ); + + const x = this._x, y = this._y, z = this._z, w = this._w; + + // http://www.euclideanspace.com/maths/algebra/realNormedAlgebra/quaternions/slerp/ + + let cosHalfTheta = w * qb._w + x * qb._x + y * qb._y + z * qb._z; + + if ( cosHalfTheta < 0 ) { + + this._w = - qb._w; + this._x = - qb._x; + this._y = - qb._y; + this._z = - qb._z; + + cosHalfTheta = - cosHalfTheta; + + } else { + + this.copy( qb ); + + } + + if ( cosHalfTheta >= 1.0 ) { + + this._w = w; + this._x = x; + this._y = y; + this._z = z; + + return this; + + } + + const sqrSinHalfTheta = 1.0 - cosHalfTheta * cosHalfTheta; + + if ( sqrSinHalfTheta <= Number.EPSILON ) { + + const s = 1 - t; + this._w = s * w + t * this._w; + this._x = s * x + t * this._x; + this._y = s * y + t * this._y; + this._z = s * z + t * this._z; + + this.normalize(); + this._onChangeCallback(); + + return this; + + } + + const sinHalfTheta = Math.sqrt( sqrSinHalfTheta ); + const halfTheta = Math.atan2( sinHalfTheta, cosHalfTheta ); + const ratioA = Math.sin( ( 1 - t ) * halfTheta ) / sinHalfTheta, + ratioB = Math.sin( t * halfTheta ) / sinHalfTheta; + + this._w = ( w * ratioA + this._w * ratioB ); + this._x = ( x * ratioA + this._x * ratioB ); + this._y = ( y * ratioA + this._y * ratioB ); + this._z = ( z * ratioA + this._z * ratioB ); + + this._onChangeCallback(); + + return this; + + } + + equals( quaternion ) { + + return ( quaternion._x === this._x ) && ( quaternion._y === this._y ) && ( quaternion._z === this._z ) && ( quaternion._w === this._w ); + + } + + fromArray( array, offset ) { + + if ( offset === undefined ) offset = 0; + + this._x = array[ offset ]; + this._y = array[ offset + 1 ]; + this._z = array[ offset + 2 ]; + this._w = array[ offset + 3 ]; + + this._onChangeCallback(); + + return this; + + } + + toArray( array, offset ) { + + if ( array === undefined ) array = []; + if ( offset === undefined ) offset = 0; + + array[ offset ] = this._x; + array[ offset + 1 ] = this._y; + array[ offset + 2 ] = this._z; + array[ offset + 3 ] = this._w; + + return array; + + } + + fromBufferAttribute( attribute, index ) { + + this._x = attribute.getX( index ); + this._y = attribute.getY( index ); + this._z = attribute.getZ( index ); + this._w = attribute.getW( index ); + + return this; + + } + + _onChange( callback ) { + + this._onChangeCallback = callback; + + return this; + + } + + _onChangeCallback() {} + +} + +class Vector3 { + + constructor( x = 0, y = 0, z = 0 ) { + + Object.defineProperty( this, 'isVector3', { value: true } ); + + this.x = x; + this.y = y; + this.z = z; + + } + + set( x, y, z ) { + + if ( z === undefined ) z = this.z; // sprite.scale.set(x,y) + + this.x = x; + this.y = y; + this.z = z; + + return this; + + } + + setScalar( scalar ) { + + this.x = scalar; + this.y = scalar; + this.z = scalar; + + return this; + + } + + setX( x ) { + + this.x = x; + + return this; + + } + + setY( y ) { + + this.y = y; + + return this; + + } + + setZ( z ) { + + this.z = z; + + return this; + + } + + setComponent( index, value ) { + + switch ( index ) { + + case 0: this.x = value; break; + case 1: this.y = value; break; + case 2: this.z = value; break; + default: throw new Error( 'index is out of range: ' + index ); + + } + + return this; + + } + + getComponent( index ) { + + switch ( index ) { + + case 0: return this.x; + case 1: return this.y; + case 2: return this.z; + default: throw new Error( 'index is out of range: ' + index ); + + } + + } + + clone() { + + return new this.constructor( this.x, this.y, this.z ); + + } + + copy( v ) { + + this.x = v.x; + this.y = v.y; + this.z = v.z; + + return this; + + } + + add( v, w ) { + + if ( w !== undefined ) { + + console.warn( 'THREE.Vector3: .add() now only accepts one argument. Use .addVectors( a, b ) instead.' ); + return this.addVectors( v, w ); + + } + + this.x += v.x; + this.y += v.y; + this.z += v.z; + + return this; + + } + + addScalar( s ) { + + this.x += s; + this.y += s; + this.z += s; + + return this; + + } + + addVectors( a, b ) { + + this.x = a.x + b.x; + this.y = a.y + b.y; + this.z = a.z + b.z; + + return this; + + } + + addScaledVector( v, s ) { + + this.x += v.x * s; + this.y += v.y * s; + this.z += v.z * s; + + return this; + + } + + sub( v, w ) { + + if ( w !== undefined ) { + + console.warn( 'THREE.Vector3: .sub() now only accepts one argument. Use .subVectors( a, b ) instead.' ); + return this.subVectors( v, w ); + + } + + this.x -= v.x; + this.y -= v.y; + this.z -= v.z; + + return this; + + } + + subScalar( s ) { + + this.x -= s; + this.y -= s; + this.z -= s; + + return this; + + } + + subVectors( a, b ) { + + this.x = a.x - b.x; + this.y = a.y - b.y; + this.z = a.z - b.z; + + return this; + + } + + multiply( v, w ) { + + if ( w !== undefined ) { + + console.warn( 'THREE.Vector3: .multiply() now only accepts one argument. Use .multiplyVectors( a, b ) instead.' ); + return this.multiplyVectors( v, w ); + + } + + this.x *= v.x; + this.y *= v.y; + this.z *= v.z; + + return this; + + } + + multiplyScalar( scalar ) { + + this.x *= scalar; + this.y *= scalar; + this.z *= scalar; + + return this; + + } + + multiplyVectors( a, b ) { + + this.x = a.x * b.x; + this.y = a.y * b.y; + this.z = a.z * b.z; + + return this; + + } + + applyEuler( euler ) { + + if ( ! ( euler && euler.isEuler ) ) { + + console.error( 'THREE.Vector3: .applyEuler() now expects an Euler rotation rather than a Vector3 and order.' ); + + } + + return this.applyQuaternion( _quaternion.setFromEuler( euler ) ); + + } + + applyAxisAngle( axis, angle ) { + + return this.applyQuaternion( _quaternion.setFromAxisAngle( axis, angle ) ); + + } + + applyMatrix3( m ) { + + const x = this.x, y = this.y, z = this.z; + const e = m.elements; + + this.x = e[ 0 ] * x + e[ 3 ] * y + e[ 6 ] * z; + this.y = e[ 1 ] * x + e[ 4 ] * y + e[ 7 ] * z; + this.z = e[ 2 ] * x + e[ 5 ] * y + e[ 8 ] * z; + + return this; + + } + + applyNormalMatrix( m ) { + + return this.applyMatrix3( m ).normalize(); + + } + + applyMatrix4( m ) { + + const x = this.x, y = this.y, z = this.z; + const e = m.elements; + + const w = 1 / ( e[ 3 ] * x + e[ 7 ] * y + e[ 11 ] * z + e[ 15 ] ); + + this.x = ( e[ 0 ] * x + e[ 4 ] * y + e[ 8 ] * z + e[ 12 ] ) * w; + this.y = ( e[ 1 ] * x + e[ 5 ] * y + e[ 9 ] * z + e[ 13 ] ) * w; + this.z = ( e[ 2 ] * x + e[ 6 ] * y + e[ 10 ] * z + e[ 14 ] ) * w; + + return this; + + } + + applyQuaternion( q ) { + + const x = this.x, y = this.y, z = this.z; + const qx = q.x, qy = q.y, qz = q.z, qw = q.w; + + // calculate quat * vector + + const ix = qw * x + qy * z - qz * y; + const iy = qw * y + qz * x - qx * z; + const iz = qw * z + qx * y - qy * x; + const iw = - qx * x - qy * y - qz * z; + + // calculate result * inverse quat + + this.x = ix * qw + iw * - qx + iy * - qz - iz * - qy; + this.y = iy * qw + iw * - qy + iz * - qx - ix * - qz; + this.z = iz * qw + iw * - qz + ix * - qy - iy * - qx; + + return this; + + } + + project( camera ) { + + return this.applyMatrix4( camera.matrixWorldInverse ).applyMatrix4( camera.projectionMatrix ); + + } + + unproject( camera ) { + + return this.applyMatrix4( camera.projectionMatrixInverse ).applyMatrix4( camera.matrixWorld ); + + } + + transformDirection( m ) { + + // input: THREE.Matrix4 affine matrix + // vector interpreted as a direction + + const x = this.x, y = this.y, z = this.z; + const e = m.elements; + + this.x = e[ 0 ] * x + e[ 4 ] * y + e[ 8 ] * z; + this.y = e[ 1 ] * x + e[ 5 ] * y + e[ 9 ] * z; + this.z = e[ 2 ] * x + e[ 6 ] * y + e[ 10 ] * z; + + return this.normalize(); + + } + + divide( v ) { + + this.x /= v.x; + this.y /= v.y; + this.z /= v.z; + + return this; + + } + + divideScalar( scalar ) { + + return this.multiplyScalar( 1 / scalar ); + + } + + min( v ) { + + this.x = Math.min( this.x, v.x ); + this.y = Math.min( this.y, v.y ); + this.z = Math.min( this.z, v.z ); + + return this; + + } + + max( v ) { + + this.x = Math.max( this.x, v.x ); + this.y = Math.max( this.y, v.y ); + this.z = Math.max( this.z, v.z ); + + return this; + + } + + clamp( min, max ) { + + // assumes min < max, componentwise + + this.x = Math.max( min.x, Math.min( max.x, this.x ) ); + this.y = Math.max( min.y, Math.min( max.y, this.y ) ); + this.z = Math.max( min.z, Math.min( max.z, this.z ) ); + + return this; + + } + + clampScalar( minVal, maxVal ) { + + this.x = Math.max( minVal, Math.min( maxVal, this.x ) ); + this.y = Math.max( minVal, Math.min( maxVal, this.y ) ); + this.z = Math.max( minVal, Math.min( maxVal, this.z ) ); + + return this; + + } + + clampLength( min, max ) { + + const length = this.length(); + + return this.divideScalar( length || 1 ).multiplyScalar( Math.max( min, Math.min( max, length ) ) ); + + } + + floor() { + + this.x = Math.floor( this.x ); + this.y = Math.floor( this.y ); + this.z = Math.floor( this.z ); + + return this; + + } + + ceil() { + + this.x = Math.ceil( this.x ); + this.y = Math.ceil( this.y ); + this.z = Math.ceil( this.z ); + + return this; + + } + + round() { + + this.x = Math.round( this.x ); + this.y = Math.round( this.y ); + this.z = Math.round( this.z ); + + return this; + + } + + roundToZero() { + + this.x = ( this.x < 0 ) ? Math.ceil( this.x ) : Math.floor( this.x ); + this.y = ( this.y < 0 ) ? Math.ceil( this.y ) : Math.floor( this.y ); + this.z = ( this.z < 0 ) ? Math.ceil( this.z ) : Math.floor( this.z ); + + return this; + + } + + negate() { + + this.x = - this.x; + this.y = - this.y; + this.z = - this.z; + + return this; + + } + + dot( v ) { + + return this.x * v.x + this.y * v.y + this.z * v.z; + + } + + // TODO lengthSquared? + + lengthSq() { + + return this.x * this.x + this.y * this.y + this.z * this.z; + + } + + length() { + + return Math.sqrt( this.x * this.x + this.y * this.y + this.z * this.z ); + + } + + manhattanLength() { + + return Math.abs( this.x ) + Math.abs( this.y ) + Math.abs( this.z ); + + } + + normalize() { + + return this.divideScalar( this.length() || 1 ); + + } + + setLength( length ) { + + return this.normalize().multiplyScalar( length ); + + } + + lerp( v, alpha ) { + + this.x += ( v.x - this.x ) * alpha; + this.y += ( v.y - this.y ) * alpha; + this.z += ( v.z - this.z ) * alpha; + + return this; + + } + + lerpVectors( v1, v2, alpha ) { + + this.x = v1.x + ( v2.x - v1.x ) * alpha; + this.y = v1.y + ( v2.y - v1.y ) * alpha; + this.z = v1.z + ( v2.z - v1.z ) * alpha; + + return this; + + } + + cross( v, w ) { + + if ( w !== undefined ) { + + console.warn( 'THREE.Vector3: .cross() now only accepts one argument. Use .crossVectors( a, b ) instead.' ); + return this.crossVectors( v, w ); + + } + + return this.crossVectors( this, v ); + + } + + crossVectors( a, b ) { + + const ax = a.x, ay = a.y, az = a.z; + const bx = b.x, by = b.y, bz = b.z; + + this.x = ay * bz - az * by; + this.y = az * bx - ax * bz; + this.z = ax * by - ay * bx; + + return this; + + } + + projectOnVector( v ) { + + const denominator = v.lengthSq(); + + if ( denominator === 0 ) return this.set( 0, 0, 0 ); + + const scalar = v.dot( this ) / denominator; + + return this.copy( v ).multiplyScalar( scalar ); + + } + + projectOnPlane( planeNormal ) { + + _vector.copy( this ).projectOnVector( planeNormal ); + + return this.sub( _vector ); + + } + + reflect( normal ) { + + // reflect incident vector off plane orthogonal to normal + // normal is assumed to have unit length + + return this.sub( _vector.copy( normal ).multiplyScalar( 2 * this.dot( normal ) ) ); + + } + + angleTo( v ) { + + const denominator = Math.sqrt( this.lengthSq() * v.lengthSq() ); + + if ( denominator === 0 ) return Math.PI / 2; + + const theta = this.dot( v ) / denominator; + + // clamp, to handle numerical problems + + return Math.acos( MathUtils.clamp( theta, - 1, 1 ) ); + + } + + distanceTo( v ) { + + return Math.sqrt( this.distanceToSquared( v ) ); + + } + + distanceToSquared( v ) { + + const dx = this.x - v.x, dy = this.y - v.y, dz = this.z - v.z; + + return dx * dx + dy * dy + dz * dz; + + } + + manhattanDistanceTo( v ) { + + return Math.abs( this.x - v.x ) + Math.abs( this.y - v.y ) + Math.abs( this.z - v.z ); + + } + + setFromSpherical( s ) { + + return this.setFromSphericalCoords( s.radius, s.phi, s.theta ); + + } + + setFromSphericalCoords( radius, phi, theta ) { + + const sinPhiRadius = Math.sin( phi ) * radius; + + this.x = sinPhiRadius * Math.sin( theta ); + this.y = Math.cos( phi ) * radius; + this.z = sinPhiRadius * Math.cos( theta ); + + return this; + + } + + setFromCylindrical( c ) { + + return this.setFromCylindricalCoords( c.radius, c.theta, c.y ); + + } + + setFromCylindricalCoords( radius, theta, y ) { + + this.x = radius * Math.sin( theta ); + this.y = y; + this.z = radius * Math.cos( theta ); + + return this; + + } + + setFromMatrixPosition( m ) { + + const e = m.elements; + + this.x = e[ 12 ]; + this.y = e[ 13 ]; + this.z = e[ 14 ]; + + return this; + + } + + setFromMatrixScale( m ) { + + const sx = this.setFromMatrixColumn( m, 0 ).length(); + const sy = this.setFromMatrixColumn( m, 1 ).length(); + const sz = this.setFromMatrixColumn( m, 2 ).length(); + + this.x = sx; + this.y = sy; + this.z = sz; + + return this; + + } + + setFromMatrixColumn( m, index ) { + + return this.fromArray( m.elements, index * 4 ); + + } + + setFromMatrix3Column( m, index ) { + + return this.fromArray( m.elements, index * 3 ); + + } + + equals( v ) { + + return ( ( v.x === this.x ) && ( v.y === this.y ) && ( v.z === this.z ) ); + + } + + fromArray( array, offset ) { + + if ( offset === undefined ) offset = 0; + + this.x = array[ offset ]; + this.y = array[ offset + 1 ]; + this.z = array[ offset + 2 ]; + + return this; + + } + + toArray( array, offset ) { + + if ( array === undefined ) array = []; + if ( offset === undefined ) offset = 0; + + array[ offset ] = this.x; + array[ offset + 1 ] = this.y; + array[ offset + 2 ] = this.z; + + return array; + + } + + fromBufferAttribute( attribute, index, offset ) { + + if ( offset !== undefined ) { + + console.warn( 'THREE.Vector3: offset has been removed from .fromBufferAttribute().' ); + + } + + this.x = attribute.getX( index ); + this.y = attribute.getY( index ); + this.z = attribute.getZ( index ); + + return this; + + } + + random() { + + this.x = Math.random(); + this.y = Math.random(); + this.z = Math.random(); + + return this; + + } + +} + +const _vector = /*@__PURE__*/ new Vector3(); +const _quaternion = /*@__PURE__*/ new Quaternion(); + +class Box3 { + + constructor( min, max ) { + + Object.defineProperty( this, 'isBox3', { value: true } ); + + this.min = ( min !== undefined ) ? min : new Vector3( + Infinity, + Infinity, + Infinity ); + this.max = ( max !== undefined ) ? max : new Vector3( - Infinity, - Infinity, - Infinity ); + + } + + set( min, max ) { + + this.min.copy( min ); + this.max.copy( max ); + + return this; + + } + + setFromArray( array ) { + + let minX = + Infinity; + let minY = + Infinity; + let minZ = + Infinity; + + let maxX = - Infinity; + let maxY = - Infinity; + let maxZ = - Infinity; + + for ( let i = 0, l = array.length; i < l; i += 3 ) { + + const x = array[ i ]; + const y = array[ i + 1 ]; + const z = array[ i + 2 ]; + + if ( x < minX ) minX = x; + if ( y < minY ) minY = y; + if ( z < minZ ) minZ = z; + + if ( x > maxX ) maxX = x; + if ( y > maxY ) maxY = y; + if ( z > maxZ ) maxZ = z; + + } + + this.min.set( minX, minY, minZ ); + this.max.set( maxX, maxY, maxZ ); + + return this; + + } + + setFromBufferAttribute( attribute ) { + + let minX = + Infinity; + let minY = + Infinity; + let minZ = + Infinity; + + let maxX = - Infinity; + let maxY = - Infinity; + let maxZ = - Infinity; + + for ( let i = 0, l = attribute.count; i < l; i ++ ) { + + const x = attribute.getX( i ); + const y = attribute.getY( i ); + const z = attribute.getZ( i ); + + if ( x < minX ) minX = x; + if ( y < minY ) minY = y; + if ( z < minZ ) minZ = z; + + if ( x > maxX ) maxX = x; + if ( y > maxY ) maxY = y; + if ( z > maxZ ) maxZ = z; + + } + + this.min.set( minX, minY, minZ ); + this.max.set( maxX, maxY, maxZ ); + + return this; + + } + + setFromPoints( points ) { + + this.makeEmpty(); + + for ( let i = 0, il = points.length; i < il; i ++ ) { + + this.expandByPoint( points[ i ] ); + + } + + return this; + + } + + setFromCenterAndSize( center, size ) { + + const halfSize = _vector$1.copy( size ).multiplyScalar( 0.5 ); + + this.min.copy( center ).sub( halfSize ); + this.max.copy( center ).add( halfSize ); + + return this; + + } + + setFromObject( object ) { + + this.makeEmpty(); + + return this.expandByObject( object ); + + } + + clone() { + + return new this.constructor().copy( this ); + + } + + copy( box ) { + + this.min.copy( box.min ); + this.max.copy( box.max ); + + return this; + + } + + makeEmpty() { + + this.min.x = this.min.y = this.min.z = + Infinity; + this.max.x = this.max.y = this.max.z = - Infinity; + + return this; + + } + + isEmpty() { + + // this is a more robust check for empty than ( volume <= 0 ) because volume can get positive with two negative axes + + return ( this.max.x < this.min.x ) || ( this.max.y < this.min.y ) || ( this.max.z < this.min.z ); + + } + + getCenter( target ) { + + if ( target === undefined ) { + + console.warn( 'THREE.Box3: .getCenter() target is now required' ); + target = new Vector3(); + + } + + return this.isEmpty() ? target.set( 0, 0, 0 ) : target.addVectors( this.min, this.max ).multiplyScalar( 0.5 ); + + } + + getSize( target ) { + + if ( target === undefined ) { + + console.warn( 'THREE.Box3: .getSize() target is now required' ); + target = new Vector3(); + + } + + return this.isEmpty() ? target.set( 0, 0, 0 ) : target.subVectors( this.max, this.min ); + + } + + expandByPoint( point ) { + + this.min.min( point ); + this.max.max( point ); + + return this; + + } + + expandByVector( vector ) { + + this.min.sub( vector ); + this.max.add( vector ); + + return this; + + } + + expandByScalar( scalar ) { + + this.min.addScalar( - scalar ); + this.max.addScalar( scalar ); + + return this; + + } + + expandByObject( object ) { + + // Computes the world-axis-aligned bounding box of an object (including its children), + // accounting for both the object's, and children's, world transforms + + object.updateWorldMatrix( false, false ); + + const geometry = object.geometry; + + if ( geometry !== undefined ) { + + if ( geometry.boundingBox === null ) { + + geometry.computeBoundingBox(); + + } + + _box.copy( geometry.boundingBox ); + _box.applyMatrix4( object.matrixWorld ); + + this.union( _box ); + + } + + const children = object.children; + + for ( let i = 0, l = children.length; i < l; i ++ ) { + + this.expandByObject( children[ i ] ); + + } + + return this; + + } + + containsPoint( point ) { + + return point.x < this.min.x || point.x > this.max.x || + point.y < this.min.y || point.y > this.max.y || + point.z < this.min.z || point.z > this.max.z ? false : true; + + } + + containsBox( box ) { + + return this.min.x <= box.min.x && box.max.x <= this.max.x && + this.min.y <= box.min.y && box.max.y <= this.max.y && + this.min.z <= box.min.z && box.max.z <= this.max.z; + + } + + getParameter( point, target ) { + + // This can potentially have a divide by zero if the box + // has a size dimension of 0. + + if ( target === undefined ) { + + console.warn( 'THREE.Box3: .getParameter() target is now required' ); + target = new Vector3(); + + } + + return target.set( + ( point.x - this.min.x ) / ( this.max.x - this.min.x ), + ( point.y - this.min.y ) / ( this.max.y - this.min.y ), + ( point.z - this.min.z ) / ( this.max.z - this.min.z ) + ); + + } + + intersectsBox( box ) { + + // using 6 splitting planes to rule out intersections. + return box.max.x < this.min.x || box.min.x > this.max.x || + box.max.y < this.min.y || box.min.y > this.max.y || + box.max.z < this.min.z || box.min.z > this.max.z ? false : true; + + } + + intersectsSphere( sphere ) { + + // Find the point on the AABB closest to the sphere center. + this.clampPoint( sphere.center, _vector$1 ); + + // If that point is inside the sphere, the AABB and sphere intersect. + return _vector$1.distanceToSquared( sphere.center ) <= ( sphere.radius * sphere.radius ); + + } + + intersectsPlane( plane ) { + + // We compute the minimum and maximum dot product values. If those values + // are on the same side (back or front) of the plane, then there is no intersection. + + let min, max; + + if ( plane.normal.x > 0 ) { + + min = plane.normal.x * this.min.x; + max = plane.normal.x * this.max.x; + + } else { + + min = plane.normal.x * this.max.x; + max = plane.normal.x * this.min.x; + + } + + if ( plane.normal.y > 0 ) { + + min += plane.normal.y * this.min.y; + max += plane.normal.y * this.max.y; + + } else { + + min += plane.normal.y * this.max.y; + max += plane.normal.y * this.min.y; + + } + + if ( plane.normal.z > 0 ) { + + min += plane.normal.z * this.min.z; + max += plane.normal.z * this.max.z; + + } else { + + min += plane.normal.z * this.max.z; + max += plane.normal.z * this.min.z; + + } + + return ( min <= - plane.constant && max >= - plane.constant ); + + } + + intersectsTriangle( triangle ) { + + if ( this.isEmpty() ) { + + return false; + + } + + // compute box center and extents + this.getCenter( _center ); + _extents.subVectors( this.max, _center ); + + // translate triangle to aabb origin + _v0.subVectors( triangle.a, _center ); + _v1.subVectors( triangle.b, _center ); + _v2.subVectors( triangle.c, _center ); + + // compute edge vectors for triangle + _f0.subVectors( _v1, _v0 ); + _f1.subVectors( _v2, _v1 ); + _f2.subVectors( _v0, _v2 ); + + // test against axes that are given by cross product combinations of the edges of the triangle and the edges of the aabb + // make an axis testing of each of the 3 sides of the aabb against each of the 3 sides of the triangle = 9 axis of separation + // axis_ij = u_i x f_j (u0, u1, u2 = face normals of aabb = x,y,z axes vectors since aabb is axis aligned) + let axes = [ + 0, - _f0.z, _f0.y, 0, - _f1.z, _f1.y, 0, - _f2.z, _f2.y, + _f0.z, 0, - _f0.x, _f1.z, 0, - _f1.x, _f2.z, 0, - _f2.x, + - _f0.y, _f0.x, 0, - _f1.y, _f1.x, 0, - _f2.y, _f2.x, 0 + ]; + if ( ! satForAxes( axes, _v0, _v1, _v2, _extents ) ) { + + return false; + + } + + // test 3 face normals from the aabb + axes = [ 1, 0, 0, 0, 1, 0, 0, 0, 1 ]; + if ( ! satForAxes( axes, _v0, _v1, _v2, _extents ) ) { + + return false; + + } + + // finally testing the face normal of the triangle + // use already existing triangle edge vectors here + _triangleNormal.crossVectors( _f0, _f1 ); + axes = [ _triangleNormal.x, _triangleNormal.y, _triangleNormal.z ]; + + return satForAxes( axes, _v0, _v1, _v2, _extents ); + + } + + clampPoint( point, target ) { + + if ( target === undefined ) { + + console.warn( 'THREE.Box3: .clampPoint() target is now required' ); + target = new Vector3(); + + } + + return target.copy( point ).clamp( this.min, this.max ); + + } + + distanceToPoint( point ) { + + const clampedPoint = _vector$1.copy( point ).clamp( this.min, this.max ); + + return clampedPoint.sub( point ).length(); + + } + + getBoundingSphere( target ) { + + if ( target === undefined ) { + + console.error( 'THREE.Box3: .getBoundingSphere() target is now required' ); + //target = new Sphere(); // removed to avoid cyclic dependency + + } + + this.getCenter( target.center ); + + target.radius = this.getSize( _vector$1 ).length() * 0.5; + + return target; + + } + + intersect( box ) { + + this.min.max( box.min ); + this.max.min( box.max ); + + // ensure that if there is no overlap, the result is fully empty, not slightly empty with non-inf/+inf values that will cause subsequence intersects to erroneously return valid values. + if ( this.isEmpty() ) this.makeEmpty(); + + return this; + + } + + union( box ) { + + this.min.min( box.min ); + this.max.max( box.max ); + + return this; + + } + + applyMatrix4( matrix ) { + + // transform of empty box is an empty box. + if ( this.isEmpty() ) return this; + + // NOTE: I am using a binary pattern to specify all 2^3 combinations below + _points[ 0 ].set( this.min.x, this.min.y, this.min.z ).applyMatrix4( matrix ); // 000 + _points[ 1 ].set( this.min.x, this.min.y, this.max.z ).applyMatrix4( matrix ); // 001 + _points[ 2 ].set( this.min.x, this.max.y, this.min.z ).applyMatrix4( matrix ); // 010 + _points[ 3 ].set( this.min.x, this.max.y, this.max.z ).applyMatrix4( matrix ); // 011 + _points[ 4 ].set( this.max.x, this.min.y, this.min.z ).applyMatrix4( matrix ); // 100 + _points[ 5 ].set( this.max.x, this.min.y, this.max.z ).applyMatrix4( matrix ); // 101 + _points[ 6 ].set( this.max.x, this.max.y, this.min.z ).applyMatrix4( matrix ); // 110 + _points[ 7 ].set( this.max.x, this.max.y, this.max.z ).applyMatrix4( matrix ); // 111 + + this.setFromPoints( _points ); + + return this; + + } + + translate( offset ) { + + this.min.add( offset ); + this.max.add( offset ); + + return this; + + } + + equals( box ) { + + return box.min.equals( this.min ) && box.max.equals( this.max ); + + } + +} + +function satForAxes( axes, v0, v1, v2, extents ) { + + for ( let i = 0, j = axes.length - 3; i <= j; i += 3 ) { + + _testAxis.fromArray( axes, i ); + // project the aabb onto the seperating axis + const r = extents.x * Math.abs( _testAxis.x ) + extents.y * Math.abs( _testAxis.y ) + extents.z * Math.abs( _testAxis.z ); + // project all 3 vertices of the triangle onto the seperating axis + const p0 = v0.dot( _testAxis ); + const p1 = v1.dot( _testAxis ); + const p2 = v2.dot( _testAxis ); + // actual test, basically see if either of the most extreme of the triangle points intersects r + if ( Math.max( - Math.max( p0, p1, p2 ), Math.min( p0, p1, p2 ) ) > r ) { + + // points of the projected triangle are outside the projected half-length of the aabb + // the axis is seperating and we can exit + return false; + + } + + } + + return true; + +} + +const _points = [ + /*@__PURE__*/ new Vector3(), + /*@__PURE__*/ new Vector3(), + /*@__PURE__*/ new Vector3(), + /*@__PURE__*/ new Vector3(), + /*@__PURE__*/ new Vector3(), + /*@__PURE__*/ new Vector3(), + /*@__PURE__*/ new Vector3(), + /*@__PURE__*/ new Vector3() +]; + +const _vector$1 = /*@__PURE__*/ new Vector3(); + +const _box = /*@__PURE__*/ new Box3(); + +// triangle centered vertices + +const _v0 = /*@__PURE__*/ new Vector3(); +const _v1 = /*@__PURE__*/ new Vector3(); +const _v2 = /*@__PURE__*/ new Vector3(); + +// triangle edge vectors + +const _f0 = /*@__PURE__*/ new Vector3(); +const _f1 = /*@__PURE__*/ new Vector3(); +const _f2 = /*@__PURE__*/ new Vector3(); + +const _center = /*@__PURE__*/ new Vector3(); +const _extents = /*@__PURE__*/ new Vector3(); +const _triangleNormal = /*@__PURE__*/ new Vector3(); +const _testAxis = /*@__PURE__*/ new Vector3(); + +const _box$1 = /*@__PURE__*/ new Box3(); + +class Sphere { + + constructor( center, radius ) { + + this.center = ( center !== undefined ) ? center : new Vector3(); + this.radius = ( radius !== undefined ) ? radius : - 1; + + } + + set( center, radius ) { + + this.center.copy( center ); + this.radius = radius; + + return this; + + } + + setFromPoints( points, optionalCenter ) { + + const center = this.center; + + if ( optionalCenter !== undefined ) { + + center.copy( optionalCenter ); + + } else { + + _box$1.setFromPoints( points ).getCenter( center ); + + } + + let maxRadiusSq = 0; + + for ( let i = 0, il = points.length; i < il; i ++ ) { + + maxRadiusSq = Math.max( maxRadiusSq, center.distanceToSquared( points[ i ] ) ); + + } + + this.radius = Math.sqrt( maxRadiusSq ); + + return this; + + } + + clone() { + + return new this.constructor().copy( this ); + + } + + copy( sphere ) { + + this.center.copy( sphere.center ); + this.radius = sphere.radius; + + return this; + + } + + isEmpty() { + + return ( this.radius < 0 ); + + } + + makeEmpty() { + + this.center.set( 0, 0, 0 ); + this.radius = - 1; + + return this; + + } + + containsPoint( point ) { + + return ( point.distanceToSquared( this.center ) <= ( this.radius * this.radius ) ); + + } + + distanceToPoint( point ) { + + return ( point.distanceTo( this.center ) - this.radius ); + + } + + intersectsSphere( sphere ) { + + const radiusSum = this.radius + sphere.radius; + + return sphere.center.distanceToSquared( this.center ) <= ( radiusSum * radiusSum ); + + } + + intersectsBox( box ) { + + return box.intersectsSphere( this ); + + } + + intersectsPlane( plane ) { + + return Math.abs( plane.distanceToPoint( this.center ) ) <= this.radius; + + } + + clampPoint( point, target ) { + + const deltaLengthSq = this.center.distanceToSquared( point ); + + if ( target === undefined ) { + + console.warn( 'THREE.Sphere: .clampPoint() target is now required' ); + target = new Vector3(); + + } + + target.copy( point ); + + if ( deltaLengthSq > ( this.radius * this.radius ) ) { + + target.sub( this.center ).normalize(); + target.multiplyScalar( this.radius ).add( this.center ); + + } + + return target; + + } + + getBoundingBox( target ) { + + if ( target === undefined ) { + + console.warn( 'THREE.Sphere: .getBoundingBox() target is now required' ); + target = new Box3(); + + } + + if ( this.isEmpty() ) { + + // Empty sphere produces empty bounding box + target.makeEmpty(); + return target; + + } + + target.set( this.center, this.center ); + target.expandByScalar( this.radius ); + + return target; + + } + + applyMatrix4( matrix ) { + + this.center.applyMatrix4( matrix ); + this.radius = this.radius * matrix.getMaxScaleOnAxis(); + + return this; + + } + + translate( offset ) { + + this.center.add( offset ); + + return this; + + } + + equals( sphere ) { + + return sphere.center.equals( this.center ) && ( sphere.radius === this.radius ); + + } + +} + +const _vector$2 = /*@__PURE__*/ new Vector3(); +const _segCenter = /*@__PURE__*/ new Vector3(); +const _segDir = /*@__PURE__*/ new Vector3(); +const _diff = /*@__PURE__*/ new Vector3(); + +const _edge1 = /*@__PURE__*/ new Vector3(); +const _edge2 = /*@__PURE__*/ new Vector3(); +const _normal = /*@__PURE__*/ new Vector3(); + +class Ray { + + constructor( origin, direction ) { + + this.origin = ( origin !== undefined ) ? origin : new Vector3(); + this.direction = ( direction !== undefined ) ? direction : new Vector3( 0, 0, - 1 ); + + } + + set( origin, direction ) { + + this.origin.copy( origin ); + this.direction.copy( direction ); + + return this; + + } + + clone() { + + return new this.constructor().copy( this ); + + } + + copy( ray ) { + + this.origin.copy( ray.origin ); + this.direction.copy( ray.direction ); + + return this; + + } + + at( t, target ) { + + if ( target === undefined ) { + + console.warn( 'THREE.Ray: .at() target is now required' ); + target = new Vector3(); + + } + + return target.copy( this.direction ).multiplyScalar( t ).add( this.origin ); + + } + + lookAt( v ) { + + this.direction.copy( v ).sub( this.origin ).normalize(); + + return this; + + } + + recast( t ) { + + this.origin.copy( this.at( t, _vector$2 ) ); + + return this; + + } + + closestPointToPoint( point, target ) { + + if ( target === undefined ) { + + console.warn( 'THREE.Ray: .closestPointToPoint() target is now required' ); + target = new Vector3(); + + } + + target.subVectors( point, this.origin ); + + const directionDistance = target.dot( this.direction ); + + if ( directionDistance < 0 ) { + + return target.copy( this.origin ); + + } + + return target.copy( this.direction ).multiplyScalar( directionDistance ).add( this.origin ); + + } + + distanceToPoint( point ) { + + return Math.sqrt( this.distanceSqToPoint( point ) ); + + } + + distanceSqToPoint( point ) { + + const directionDistance = _vector$2.subVectors( point, this.origin ).dot( this.direction ); + + // point behind the ray + + if ( directionDistance < 0 ) { + + return this.origin.distanceToSquared( point ); + + } + + _vector$2.copy( this.direction ).multiplyScalar( directionDistance ).add( this.origin ); + + return _vector$2.distanceToSquared( point ); + + } + + distanceSqToSegment( v0, v1, optionalPointOnRay, optionalPointOnSegment ) { + + // from http://www.geometrictools.com/GTEngine/Include/Mathematics/GteDistRaySegment.h + // It returns the min distance between the ray and the segment + // defined by v0 and v1 + // It can also set two optional targets : + // - The closest point on the ray + // - The closest point on the segment + + _segCenter.copy( v0 ).add( v1 ).multiplyScalar( 0.5 ); + _segDir.copy( v1 ).sub( v0 ).normalize(); + _diff.copy( this.origin ).sub( _segCenter ); + + const segExtent = v0.distanceTo( v1 ) * 0.5; + const a01 = - this.direction.dot( _segDir ); + const b0 = _diff.dot( this.direction ); + const b1 = - _diff.dot( _segDir ); + const c = _diff.lengthSq(); + const det = Math.abs( 1 - a01 * a01 ); + let s0, s1, sqrDist, extDet; + + if ( det > 0 ) { + + // The ray and segment are not parallel. + + s0 = a01 * b1 - b0; + s1 = a01 * b0 - b1; + extDet = segExtent * det; + + if ( s0 >= 0 ) { + + if ( s1 >= - extDet ) { + + if ( s1 <= extDet ) { + + // region 0 + // Minimum at interior points of ray and segment. + + const invDet = 1 / det; + s0 *= invDet; + s1 *= invDet; + sqrDist = s0 * ( s0 + a01 * s1 + 2 * b0 ) + s1 * ( a01 * s0 + s1 + 2 * b1 ) + c; + + } else { + + // region 1 + + s1 = segExtent; + s0 = Math.max( 0, - ( a01 * s1 + b0 ) ); + sqrDist = - s0 * s0 + s1 * ( s1 + 2 * b1 ) + c; + + } + + } else { + + // region 5 + + s1 = - segExtent; + s0 = Math.max( 0, - ( a01 * s1 + b0 ) ); + sqrDist = - s0 * s0 + s1 * ( s1 + 2 * b1 ) + c; + + } + + } else { + + if ( s1 <= - extDet ) { + + // region 4 + + s0 = Math.max( 0, - ( - a01 * segExtent + b0 ) ); + s1 = ( s0 > 0 ) ? - segExtent : Math.min( Math.max( - segExtent, - b1 ), segExtent ); + sqrDist = - s0 * s0 + s1 * ( s1 + 2 * b1 ) + c; + + } else if ( s1 <= extDet ) { + + // region 3 + + s0 = 0; + s1 = Math.min( Math.max( - segExtent, - b1 ), segExtent ); + sqrDist = s1 * ( s1 + 2 * b1 ) + c; + + } else { + + // region 2 + + s0 = Math.max( 0, - ( a01 * segExtent + b0 ) ); + s1 = ( s0 > 0 ) ? segExtent : Math.min( Math.max( - segExtent, - b1 ), segExtent ); + sqrDist = - s0 * s0 + s1 * ( s1 + 2 * b1 ) + c; + + } + + } + + } else { + + // Ray and segment are parallel. + + s1 = ( a01 > 0 ) ? - segExtent : segExtent; + s0 = Math.max( 0, - ( a01 * s1 + b0 ) ); + sqrDist = - s0 * s0 + s1 * ( s1 + 2 * b1 ) + c; + + } + + if ( optionalPointOnRay ) { + + optionalPointOnRay.copy( this.direction ).multiplyScalar( s0 ).add( this.origin ); + + } + + if ( optionalPointOnSegment ) { + + optionalPointOnSegment.copy( _segDir ).multiplyScalar( s1 ).add( _segCenter ); + + } + + return sqrDist; + + } + + intersectSphere( sphere, target ) { + + _vector$2.subVectors( sphere.center, this.origin ); + const tca = _vector$2.dot( this.direction ); + const d2 = _vector$2.dot( _vector$2 ) - tca * tca; + const radius2 = sphere.radius * sphere.radius; + + if ( d2 > radius2 ) return null; + + const thc = Math.sqrt( radius2 - d2 ); + + // t0 = first intersect point - entrance on front of sphere + const t0 = tca - thc; + + // t1 = second intersect point - exit point on back of sphere + const t1 = tca + thc; + + // test to see if both t0 and t1 are behind the ray - if so, return null + if ( t0 < 0 && t1 < 0 ) return null; + + // test to see if t0 is behind the ray: + // if it is, the ray is inside the sphere, so return the second exit point scaled by t1, + // in order to always return an intersect point that is in front of the ray. + if ( t0 < 0 ) return this.at( t1, target ); + + // else t0 is in front of the ray, so return the first collision point scaled by t0 + return this.at( t0, target ); + + } + + intersectsSphere( sphere ) { + + return this.distanceSqToPoint( sphere.center ) <= ( sphere.radius * sphere.radius ); + + } + + distanceToPlane( plane ) { + + const denominator = plane.normal.dot( this.direction ); + + if ( denominator === 0 ) { + + // line is coplanar, return origin + if ( plane.distanceToPoint( this.origin ) === 0 ) { + + return 0; + + } + + // Null is preferable to undefined since undefined means.... it is undefined + + return null; + + } + + const t = - ( this.origin.dot( plane.normal ) + plane.constant ) / denominator; + + // Return if the ray never intersects the plane + + return t >= 0 ? t : null; + + } + + intersectPlane( plane, target ) { + + const t = this.distanceToPlane( plane ); + + if ( t === null ) { + + return null; + + } + + return this.at( t, target ); + + } + + intersectsPlane( plane ) { + + // check if the ray lies on the plane first + + const distToPoint = plane.distanceToPoint( this.origin ); + + if ( distToPoint === 0 ) { + + return true; + + } + + const denominator = plane.normal.dot( this.direction ); + + if ( denominator * distToPoint < 0 ) { + + return true; + + } + + // ray origin is behind the plane (and is pointing behind it) + + return false; + + } + + intersectBox( box, target ) { + + let tmin, tmax, tymin, tymax, tzmin, tzmax; + + const invdirx = 1 / this.direction.x, + invdiry = 1 / this.direction.y, + invdirz = 1 / this.direction.z; + + const origin = this.origin; + + if ( invdirx >= 0 ) { + + tmin = ( box.min.x - origin.x ) * invdirx; + tmax = ( box.max.x - origin.x ) * invdirx; + + } else { + + tmin = ( box.max.x - origin.x ) * invdirx; + tmax = ( box.min.x - origin.x ) * invdirx; + + } + + if ( invdiry >= 0 ) { + + tymin = ( box.min.y - origin.y ) * invdiry; + tymax = ( box.max.y - origin.y ) * invdiry; + + } else { + + tymin = ( box.max.y - origin.y ) * invdiry; + tymax = ( box.min.y - origin.y ) * invdiry; + + } + + if ( ( tmin > tymax ) || ( tymin > tmax ) ) return null; + + // These lines also handle the case where tmin or tmax is NaN + // (result of 0 * Infinity). x !== x returns true if x is NaN + + if ( tymin > tmin || tmin !== tmin ) tmin = tymin; + + if ( tymax < tmax || tmax !== tmax ) tmax = tymax; + + if ( invdirz >= 0 ) { + + tzmin = ( box.min.z - origin.z ) * invdirz; + tzmax = ( box.max.z - origin.z ) * invdirz; + + } else { + + tzmin = ( box.max.z - origin.z ) * invdirz; + tzmax = ( box.min.z - origin.z ) * invdirz; + + } + + if ( ( tmin > tzmax ) || ( tzmin > tmax ) ) return null; + + if ( tzmin > tmin || tmin !== tmin ) tmin = tzmin; + + if ( tzmax < tmax || tmax !== tmax ) tmax = tzmax; + + //return point closest to the ray (positive side) + + if ( tmax < 0 ) return null; + + return this.at( tmin >= 0 ? tmin : tmax, target ); + + } + + intersectsBox( box ) { + + return this.intersectBox( box, _vector$2 ) !== null; + + } + + intersectTriangle( a, b, c, backfaceCulling, target ) { + + // Compute the offset origin, edges, and normal. + + // from http://www.geometrictools.com/GTEngine/Include/Mathematics/GteIntrRay3Triangle3.h + + _edge1.subVectors( b, a ); + _edge2.subVectors( c, a ); + _normal.crossVectors( _edge1, _edge2 ); + + // Solve Q + t*D = b1*E1 + b2*E2 (Q = kDiff, D = ray direction, + // E1 = kEdge1, E2 = kEdge2, N = Cross(E1,E2)) by + // |Dot(D,N)|*b1 = sign(Dot(D,N))*Dot(D,Cross(Q,E2)) + // |Dot(D,N)|*b2 = sign(Dot(D,N))*Dot(D,Cross(E1,Q)) + // |Dot(D,N)|*t = -sign(Dot(D,N))*Dot(Q,N) + let DdN = this.direction.dot( _normal ); + let sign; + + if ( DdN > 0 ) { + + if ( backfaceCulling ) return null; + sign = 1; + + } else if ( DdN < 0 ) { + + sign = - 1; + DdN = - DdN; + + } else { + + return null; + + } + + _diff.subVectors( this.origin, a ); + const DdQxE2 = sign * this.direction.dot( _edge2.crossVectors( _diff, _edge2 ) ); + + // b1 < 0, no intersection + if ( DdQxE2 < 0 ) { + + return null; + + } + + const DdE1xQ = sign * this.direction.dot( _edge1.cross( _diff ) ); + + // b2 < 0, no intersection + if ( DdE1xQ < 0 ) { + + return null; + + } + + // b1+b2 > 1, no intersection + if ( DdQxE2 + DdE1xQ > DdN ) { + + return null; + + } + + // Line intersects triangle, check if ray does. + const QdN = - sign * _diff.dot( _normal ); + + // t < 0, no intersection + if ( QdN < 0 ) { + + return null; + + } + + // Ray intersects triangle. + return this.at( QdN / DdN, target ); + + } + + applyMatrix4( matrix4 ) { + + this.origin.applyMatrix4( matrix4 ); + this.direction.transformDirection( matrix4 ); + + return this; + + } + + equals( ray ) { + + return ray.origin.equals( this.origin ) && ray.direction.equals( this.direction ); + + } + +} + +class Matrix4 { + + constructor() { + + Object.defineProperty( this, 'isMatrix4', { value: true } ); + + this.elements = [ + + 1, 0, 0, 0, + 0, 1, 0, 0, + 0, 0, 1, 0, + 0, 0, 0, 1 + + ]; + + if ( arguments.length > 0 ) { + + console.error( 'THREE.Matrix4: the constructor no longer reads arguments. use .set() instead.' ); + + } + + } + + set( n11, n12, n13, n14, n21, n22, n23, n24, n31, n32, n33, n34, n41, n42, n43, n44 ) { + + const te = this.elements; + + te[ 0 ] = n11; te[ 4 ] = n12; te[ 8 ] = n13; te[ 12 ] = n14; + te[ 1 ] = n21; te[ 5 ] = n22; te[ 9 ] = n23; te[ 13 ] = n24; + te[ 2 ] = n31; te[ 6 ] = n32; te[ 10 ] = n33; te[ 14 ] = n34; + te[ 3 ] = n41; te[ 7 ] = n42; te[ 11 ] = n43; te[ 15 ] = n44; + + return this; + + } + + identity() { + + this.set( + + 1, 0, 0, 0, + 0, 1, 0, 0, + 0, 0, 1, 0, + 0, 0, 0, 1 + + ); + + return this; + + } + + clone() { + + return new Matrix4().fromArray( this.elements ); + + } + + copy( m ) { + + const te = this.elements; + const me = m.elements; + + te[ 0 ] = me[ 0 ]; te[ 1 ] = me[ 1 ]; te[ 2 ] = me[ 2 ]; te[ 3 ] = me[ 3 ]; + te[ 4 ] = me[ 4 ]; te[ 5 ] = me[ 5 ]; te[ 6 ] = me[ 6 ]; te[ 7 ] = me[ 7 ]; + te[ 8 ] = me[ 8 ]; te[ 9 ] = me[ 9 ]; te[ 10 ] = me[ 10 ]; te[ 11 ] = me[ 11 ]; + te[ 12 ] = me[ 12 ]; te[ 13 ] = me[ 13 ]; te[ 14 ] = me[ 14 ]; te[ 15 ] = me[ 15 ]; + + return this; + + } + + copyPosition( m ) { + + const te = this.elements, me = m.elements; + + te[ 12 ] = me[ 12 ]; + te[ 13 ] = me[ 13 ]; + te[ 14 ] = me[ 14 ]; + + return this; + + } + + extractBasis( xAxis, yAxis, zAxis ) { + + xAxis.setFromMatrixColumn( this, 0 ); + yAxis.setFromMatrixColumn( this, 1 ); + zAxis.setFromMatrixColumn( this, 2 ); + + return this; + + } + + makeBasis( xAxis, yAxis, zAxis ) { + + this.set( + xAxis.x, yAxis.x, zAxis.x, 0, + xAxis.y, yAxis.y, zAxis.y, 0, + xAxis.z, yAxis.z, zAxis.z, 0, + 0, 0, 0, 1 + ); + + return this; + + } + + extractRotation( m ) { + + // this method does not support reflection matrices + + const te = this.elements; + const me = m.elements; + + const scaleX = 1 / _v1$1.setFromMatrixColumn( m, 0 ).length(); + const scaleY = 1 / _v1$1.setFromMatrixColumn( m, 1 ).length(); + const scaleZ = 1 / _v1$1.setFromMatrixColumn( m, 2 ).length(); + + te[ 0 ] = me[ 0 ] * scaleX; + te[ 1 ] = me[ 1 ] * scaleX; + te[ 2 ] = me[ 2 ] * scaleX; + te[ 3 ] = 0; + + te[ 4 ] = me[ 4 ] * scaleY; + te[ 5 ] = me[ 5 ] * scaleY; + te[ 6 ] = me[ 6 ] * scaleY; + te[ 7 ] = 0; + + te[ 8 ] = me[ 8 ] * scaleZ; + te[ 9 ] = me[ 9 ] * scaleZ; + te[ 10 ] = me[ 10 ] * scaleZ; + te[ 11 ] = 0; + + te[ 12 ] = 0; + te[ 13 ] = 0; + te[ 14 ] = 0; + te[ 15 ] = 1; + + return this; + + } + + makeRotationFromEuler( euler ) { + + if ( ! ( euler && euler.isEuler ) ) { + + console.error( 'THREE.Matrix4: .makeRotationFromEuler() now expects a Euler rotation rather than a Vector3 and order.' ); + + } + + const te = this.elements; + + const x = euler.x, y = euler.y, z = euler.z; + const a = Math.cos( x ), b = Math.sin( x ); + const c = Math.cos( y ), d = Math.sin( y ); + const e = Math.cos( z ), f = Math.sin( z ); + + if ( euler.order === 'XYZ' ) { + + const ae = a * e, af = a * f, be = b * e, bf = b * f; + + te[ 0 ] = c * e; + te[ 4 ] = - c * f; + te[ 8 ] = d; + + te[ 1 ] = af + be * d; + te[ 5 ] = ae - bf * d; + te[ 9 ] = - b * c; + + te[ 2 ] = bf - ae * d; + te[ 6 ] = be + af * d; + te[ 10 ] = a * c; + + } else if ( euler.order === 'YXZ' ) { + + const ce = c * e, cf = c * f, de = d * e, df = d * f; + + te[ 0 ] = ce + df * b; + te[ 4 ] = de * b - cf; + te[ 8 ] = a * d; + + te[ 1 ] = a * f; + te[ 5 ] = a * e; + te[ 9 ] = - b; + + te[ 2 ] = cf * b - de; + te[ 6 ] = df + ce * b; + te[ 10 ] = a * c; + + } else if ( euler.order === 'ZXY' ) { + + const ce = c * e, cf = c * f, de = d * e, df = d * f; + + te[ 0 ] = ce - df * b; + te[ 4 ] = - a * f; + te[ 8 ] = de + cf * b; + + te[ 1 ] = cf + de * b; + te[ 5 ] = a * e; + te[ 9 ] = df - ce * b; + + te[ 2 ] = - a * d; + te[ 6 ] = b; + te[ 10 ] = a * c; + + } else if ( euler.order === 'ZYX' ) { + + const ae = a * e, af = a * f, be = b * e, bf = b * f; + + te[ 0 ] = c * e; + te[ 4 ] = be * d - af; + te[ 8 ] = ae * d + bf; + + te[ 1 ] = c * f; + te[ 5 ] = bf * d + ae; + te[ 9 ] = af * d - be; + + te[ 2 ] = - d; + te[ 6 ] = b * c; + te[ 10 ] = a * c; + + } else if ( euler.order === 'YZX' ) { + + const ac = a * c, ad = a * d, bc = b * c, bd = b * d; + + te[ 0 ] = c * e; + te[ 4 ] = bd - ac * f; + te[ 8 ] = bc * f + ad; + + te[ 1 ] = f; + te[ 5 ] = a * e; + te[ 9 ] = - b * e; + + te[ 2 ] = - d * e; + te[ 6 ] = ad * f + bc; + te[ 10 ] = ac - bd * f; + + } else if ( euler.order === 'XZY' ) { + + const ac = a * c, ad = a * d, bc = b * c, bd = b * d; + + te[ 0 ] = c * e; + te[ 4 ] = - f; + te[ 8 ] = d * e; + + te[ 1 ] = ac * f + bd; + te[ 5 ] = a * e; + te[ 9 ] = ad * f - bc; + + te[ 2 ] = bc * f - ad; + te[ 6 ] = b * e; + te[ 10 ] = bd * f + ac; + + } + + // bottom row + te[ 3 ] = 0; + te[ 7 ] = 0; + te[ 11 ] = 0; + + // last column + te[ 12 ] = 0; + te[ 13 ] = 0; + te[ 14 ] = 0; + te[ 15 ] = 1; + + return this; + + } + + makeRotationFromQuaternion( q ) { + + return this.compose( _zero, q, _one ); + + } + + lookAt( eye, target, up ) { + + const te = this.elements; + + _z.subVectors( eye, target ); + + if ( _z.lengthSq() === 0 ) { + + // eye and target are in the same position + + _z.z = 1; + + } + + _z.normalize(); + _x.crossVectors( up, _z ); + + if ( _x.lengthSq() === 0 ) { + + // up and z are parallel + + if ( Math.abs( up.z ) === 1 ) { + + _z.x += 0.0001; + + } else { + + _z.z += 0.0001; + + } + + _z.normalize(); + _x.crossVectors( up, _z ); + + } + + _x.normalize(); + _y.crossVectors( _z, _x ); + + te[ 0 ] = _x.x; te[ 4 ] = _y.x; te[ 8 ] = _z.x; + te[ 1 ] = _x.y; te[ 5 ] = _y.y; te[ 9 ] = _z.y; + te[ 2 ] = _x.z; te[ 6 ] = _y.z; te[ 10 ] = _z.z; + + return this; + + } + + multiply( m, n ) { + + if ( n !== undefined ) { + + console.warn( 'THREE.Matrix4: .multiply() now only accepts one argument. Use .multiplyMatrices( a, b ) instead.' ); + return this.multiplyMatrices( m, n ); + + } + + return this.multiplyMatrices( this, m ); + + } + + premultiply( m ) { + + return this.multiplyMatrices( m, this ); + + } + + multiplyMatrices( a, b ) { + + const ae = a.elements; + const be = b.elements; + const te = this.elements; + + const a11 = ae[ 0 ], a12 = ae[ 4 ], a13 = ae[ 8 ], a14 = ae[ 12 ]; + const a21 = ae[ 1 ], a22 = ae[ 5 ], a23 = ae[ 9 ], a24 = ae[ 13 ]; + const a31 = ae[ 2 ], a32 = ae[ 6 ], a33 = ae[ 10 ], a34 = ae[ 14 ]; + const a41 = ae[ 3 ], a42 = ae[ 7 ], a43 = ae[ 11 ], a44 = ae[ 15 ]; + + const b11 = be[ 0 ], b12 = be[ 4 ], b13 = be[ 8 ], b14 = be[ 12 ]; + const b21 = be[ 1 ], b22 = be[ 5 ], b23 = be[ 9 ], b24 = be[ 13 ]; + const b31 = be[ 2 ], b32 = be[ 6 ], b33 = be[ 10 ], b34 = be[ 14 ]; + const b41 = be[ 3 ], b42 = be[ 7 ], b43 = be[ 11 ], b44 = be[ 15 ]; + + te[ 0 ] = a11 * b11 + a12 * b21 + a13 * b31 + a14 * b41; + te[ 4 ] = a11 * b12 + a12 * b22 + a13 * b32 + a14 * b42; + te[ 8 ] = a11 * b13 + a12 * b23 + a13 * b33 + a14 * b43; + te[ 12 ] = a11 * b14 + a12 * b24 + a13 * b34 + a14 * b44; + + te[ 1 ] = a21 * b11 + a22 * b21 + a23 * b31 + a24 * b41; + te[ 5 ] = a21 * b12 + a22 * b22 + a23 * b32 + a24 * b42; + te[ 9 ] = a21 * b13 + a22 * b23 + a23 * b33 + a24 * b43; + te[ 13 ] = a21 * b14 + a22 * b24 + a23 * b34 + a24 * b44; + + te[ 2 ] = a31 * b11 + a32 * b21 + a33 * b31 + a34 * b41; + te[ 6 ] = a31 * b12 + a32 * b22 + a33 * b32 + a34 * b42; + te[ 10 ] = a31 * b13 + a32 * b23 + a33 * b33 + a34 * b43; + te[ 14 ] = a31 * b14 + a32 * b24 + a33 * b34 + a34 * b44; + + te[ 3 ] = a41 * b11 + a42 * b21 + a43 * b31 + a44 * b41; + te[ 7 ] = a41 * b12 + a42 * b22 + a43 * b32 + a44 * b42; + te[ 11 ] = a41 * b13 + a42 * b23 + a43 * b33 + a44 * b43; + te[ 15 ] = a41 * b14 + a42 * b24 + a43 * b34 + a44 * b44; + + return this; + + } + + multiplyScalar( s ) { + + const te = this.elements; + + te[ 0 ] *= s; te[ 4 ] *= s; te[ 8 ] *= s; te[ 12 ] *= s; + te[ 1 ] *= s; te[ 5 ] *= s; te[ 9 ] *= s; te[ 13 ] *= s; + te[ 2 ] *= s; te[ 6 ] *= s; te[ 10 ] *= s; te[ 14 ] *= s; + te[ 3 ] *= s; te[ 7 ] *= s; te[ 11 ] *= s; te[ 15 ] *= s; + + return this; + + } + + determinant() { + + const te = this.elements; + + const n11 = te[ 0 ], n12 = te[ 4 ], n13 = te[ 8 ], n14 = te[ 12 ]; + const n21 = te[ 1 ], n22 = te[ 5 ], n23 = te[ 9 ], n24 = te[ 13 ]; + const n31 = te[ 2 ], n32 = te[ 6 ], n33 = te[ 10 ], n34 = te[ 14 ]; + const n41 = te[ 3 ], n42 = te[ 7 ], n43 = te[ 11 ], n44 = te[ 15 ]; + + //TODO: make this more efficient + //( based on http://www.euclideanspace.com/maths/algebra/matrix/functions/inverse/fourD/index.htm ) + + return ( + n41 * ( + + n14 * n23 * n32 + - n13 * n24 * n32 + - n14 * n22 * n33 + + n12 * n24 * n33 + + n13 * n22 * n34 + - n12 * n23 * n34 + ) + + n42 * ( + + n11 * n23 * n34 + - n11 * n24 * n33 + + n14 * n21 * n33 + - n13 * n21 * n34 + + n13 * n24 * n31 + - n14 * n23 * n31 + ) + + n43 * ( + + n11 * n24 * n32 + - n11 * n22 * n34 + - n14 * n21 * n32 + + n12 * n21 * n34 + + n14 * n22 * n31 + - n12 * n24 * n31 + ) + + n44 * ( + - n13 * n22 * n31 + - n11 * n23 * n32 + + n11 * n22 * n33 + + n13 * n21 * n32 + - n12 * n21 * n33 + + n12 * n23 * n31 + ) + + ); + + } + + transpose() { + + const te = this.elements; + let tmp; + + tmp = te[ 1 ]; te[ 1 ] = te[ 4 ]; te[ 4 ] = tmp; + tmp = te[ 2 ]; te[ 2 ] = te[ 8 ]; te[ 8 ] = tmp; + tmp = te[ 6 ]; te[ 6 ] = te[ 9 ]; te[ 9 ] = tmp; + + tmp = te[ 3 ]; te[ 3 ] = te[ 12 ]; te[ 12 ] = tmp; + tmp = te[ 7 ]; te[ 7 ] = te[ 13 ]; te[ 13 ] = tmp; + tmp = te[ 11 ]; te[ 11 ] = te[ 14 ]; te[ 14 ] = tmp; + + return this; + + } + + setPosition( x, y, z ) { + + const te = this.elements; + + if ( x.isVector3 ) { + + te[ 12 ] = x.x; + te[ 13 ] = x.y; + te[ 14 ] = x.z; + + } else { + + te[ 12 ] = x; + te[ 13 ] = y; + te[ 14 ] = z; + + } + + return this; + + } + + getInverse( m, throwOnDegenerate ) { + + if ( throwOnDegenerate !== undefined ) { + + console.warn( "THREE.Matrix4: .getInverse() can no longer be configured to throw on degenerate." ); + + } + + // based on http://www.euclideanspace.com/maths/algebra/matrix/functions/inverse/fourD/index.htm + const te = this.elements, + me = m.elements, + + n11 = me[ 0 ], n21 = me[ 1 ], n31 = me[ 2 ], n41 = me[ 3 ], + n12 = me[ 4 ], n22 = me[ 5 ], n32 = me[ 6 ], n42 = me[ 7 ], + n13 = me[ 8 ], n23 = me[ 9 ], n33 = me[ 10 ], n43 = me[ 11 ], + n14 = me[ 12 ], n24 = me[ 13 ], n34 = me[ 14 ], n44 = me[ 15 ], + + t11 = n23 * n34 * n42 - n24 * n33 * n42 + n24 * n32 * n43 - n22 * n34 * n43 - n23 * n32 * n44 + n22 * n33 * n44, + t12 = n14 * n33 * n42 - n13 * n34 * n42 - n14 * n32 * n43 + n12 * n34 * n43 + n13 * n32 * n44 - n12 * n33 * n44, + t13 = n13 * n24 * n42 - n14 * n23 * n42 + n14 * n22 * n43 - n12 * n24 * n43 - n13 * n22 * n44 + n12 * n23 * n44, + t14 = n14 * n23 * n32 - n13 * n24 * n32 - n14 * n22 * n33 + n12 * n24 * n33 + n13 * n22 * n34 - n12 * n23 * n34; + + const det = n11 * t11 + n21 * t12 + n31 * t13 + n41 * t14; + + if ( det === 0 ) return this.set( 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ); + + const detInv = 1 / det; + + te[ 0 ] = t11 * detInv; + te[ 1 ] = ( n24 * n33 * n41 - n23 * n34 * n41 - n24 * n31 * n43 + n21 * n34 * n43 + n23 * n31 * n44 - n21 * n33 * n44 ) * detInv; + te[ 2 ] = ( n22 * n34 * n41 - n24 * n32 * n41 + n24 * n31 * n42 - n21 * n34 * n42 - n22 * n31 * n44 + n21 * n32 * n44 ) * detInv; + te[ 3 ] = ( n23 * n32 * n41 - n22 * n33 * n41 - n23 * n31 * n42 + n21 * n33 * n42 + n22 * n31 * n43 - n21 * n32 * n43 ) * detInv; + + te[ 4 ] = t12 * detInv; + te[ 5 ] = ( n13 * n34 * n41 - n14 * n33 * n41 + n14 * n31 * n43 - n11 * n34 * n43 - n13 * n31 * n44 + n11 * n33 * n44 ) * detInv; + te[ 6 ] = ( n14 * n32 * n41 - n12 * n34 * n41 - n14 * n31 * n42 + n11 * n34 * n42 + n12 * n31 * n44 - n11 * n32 * n44 ) * detInv; + te[ 7 ] = ( n12 * n33 * n41 - n13 * n32 * n41 + n13 * n31 * n42 - n11 * n33 * n42 - n12 * n31 * n43 + n11 * n32 * n43 ) * detInv; + + te[ 8 ] = t13 * detInv; + te[ 9 ] = ( n14 * n23 * n41 - n13 * n24 * n41 - n14 * n21 * n43 + n11 * n24 * n43 + n13 * n21 * n44 - n11 * n23 * n44 ) * detInv; + te[ 10 ] = ( n12 * n24 * n41 - n14 * n22 * n41 + n14 * n21 * n42 - n11 * n24 * n42 - n12 * n21 * n44 + n11 * n22 * n44 ) * detInv; + te[ 11 ] = ( n13 * n22 * n41 - n12 * n23 * n41 - n13 * n21 * n42 + n11 * n23 * n42 + n12 * n21 * n43 - n11 * n22 * n43 ) * detInv; + + te[ 12 ] = t14 * detInv; + te[ 13 ] = ( n13 * n24 * n31 - n14 * n23 * n31 + n14 * n21 * n33 - n11 * n24 * n33 - n13 * n21 * n34 + n11 * n23 * n34 ) * detInv; + te[ 14 ] = ( n14 * n22 * n31 - n12 * n24 * n31 - n14 * n21 * n32 + n11 * n24 * n32 + n12 * n21 * n34 - n11 * n22 * n34 ) * detInv; + te[ 15 ] = ( n12 * n23 * n31 - n13 * n22 * n31 + n13 * n21 * n32 - n11 * n23 * n32 - n12 * n21 * n33 + n11 * n22 * n33 ) * detInv; + + return this; + + } + + scale( v ) { + + const te = this.elements; + const x = v.x, y = v.y, z = v.z; + + te[ 0 ] *= x; te[ 4 ] *= y; te[ 8 ] *= z; + te[ 1 ] *= x; te[ 5 ] *= y; te[ 9 ] *= z; + te[ 2 ] *= x; te[ 6 ] *= y; te[ 10 ] *= z; + te[ 3 ] *= x; te[ 7 ] *= y; te[ 11 ] *= z; + + return this; + + } + + getMaxScaleOnAxis() { + + const te = this.elements; + + const scaleXSq = te[ 0 ] * te[ 0 ] + te[ 1 ] * te[ 1 ] + te[ 2 ] * te[ 2 ]; + const scaleYSq = te[ 4 ] * te[ 4 ] + te[ 5 ] * te[ 5 ] + te[ 6 ] * te[ 6 ]; + const scaleZSq = te[ 8 ] * te[ 8 ] + te[ 9 ] * te[ 9 ] + te[ 10 ] * te[ 10 ]; + + return Math.sqrt( Math.max( scaleXSq, scaleYSq, scaleZSq ) ); + + } + + makeTranslation( x, y, z ) { + + this.set( + + 1, 0, 0, x, + 0, 1, 0, y, + 0, 0, 1, z, + 0, 0, 0, 1 + + ); + + return this; + + } + + makeRotationX( theta ) { + + const c = Math.cos( theta ), s = Math.sin( theta ); + + this.set( + + 1, 0, 0, 0, + 0, c, - s, 0, + 0, s, c, 0, + 0, 0, 0, 1 + + ); + + return this; + + } + + makeRotationY( theta ) { + + const c = Math.cos( theta ), s = Math.sin( theta ); + + this.set( + + c, 0, s, 0, + 0, 1, 0, 0, + - s, 0, c, 0, + 0, 0, 0, 1 + + ); + + return this; + + } + + makeRotationZ( theta ) { + + const c = Math.cos( theta ), s = Math.sin( theta ); + + this.set( + + c, - s, 0, 0, + s, c, 0, 0, + 0, 0, 1, 0, + 0, 0, 0, 1 + + ); + + return this; + + } + + makeRotationAxis( axis, angle ) { + + // Based on http://www.gamedev.net/reference/articles/article1199.asp + + const c = Math.cos( angle ); + const s = Math.sin( angle ); + const t = 1 - c; + const x = axis.x, y = axis.y, z = axis.z; + const tx = t * x, ty = t * y; + + this.set( + + tx * x + c, tx * y - s * z, tx * z + s * y, 0, + tx * y + s * z, ty * y + c, ty * z - s * x, 0, + tx * z - s * y, ty * z + s * x, t * z * z + c, 0, + 0, 0, 0, 1 + + ); + + return this; + + } + + makeScale( x, y, z ) { + + this.set( + + x, 0, 0, 0, + 0, y, 0, 0, + 0, 0, z, 0, + 0, 0, 0, 1 + + ); + + return this; + + } + + makeShear( x, y, z ) { + + this.set( + + 1, y, z, 0, + x, 1, z, 0, + x, y, 1, 0, + 0, 0, 0, 1 + + ); + + return this; + + } + + compose( position, quaternion, scale ) { + + const te = this.elements; + + const x = quaternion._x, y = quaternion._y, z = quaternion._z, w = quaternion._w; + const x2 = x + x, y2 = y + y, z2 = z + z; + const xx = x * x2, xy = x * y2, xz = x * z2; + const yy = y * y2, yz = y * z2, zz = z * z2; + const wx = w * x2, wy = w * y2, wz = w * z2; + + const sx = scale.x, sy = scale.y, sz = scale.z; + + te[ 0 ] = ( 1 - ( yy + zz ) ) * sx; + te[ 1 ] = ( xy + wz ) * sx; + te[ 2 ] = ( xz - wy ) * sx; + te[ 3 ] = 0; + + te[ 4 ] = ( xy - wz ) * sy; + te[ 5 ] = ( 1 - ( xx + zz ) ) * sy; + te[ 6 ] = ( yz + wx ) * sy; + te[ 7 ] = 0; + + te[ 8 ] = ( xz + wy ) * sz; + te[ 9 ] = ( yz - wx ) * sz; + te[ 10 ] = ( 1 - ( xx + yy ) ) * sz; + te[ 11 ] = 0; + + te[ 12 ] = position.x; + te[ 13 ] = position.y; + te[ 14 ] = position.z; + te[ 15 ] = 1; + + return this; + + } + + decompose( position, quaternion, scale ) { + + const te = this.elements; + + let sx = _v1$1.set( te[ 0 ], te[ 1 ], te[ 2 ] ).length(); + const sy = _v1$1.set( te[ 4 ], te[ 5 ], te[ 6 ] ).length(); + const sz = _v1$1.set( te[ 8 ], te[ 9 ], te[ 10 ] ).length(); + + // if determine is negative, we need to invert one scale + const det = this.determinant(); + if ( det < 0 ) sx = - sx; + + position.x = te[ 12 ]; + position.y = te[ 13 ]; + position.z = te[ 14 ]; + + // scale the rotation part + _m1.copy( this ); + + const invSX = 1 / sx; + const invSY = 1 / sy; + const invSZ = 1 / sz; + + _m1.elements[ 0 ] *= invSX; + _m1.elements[ 1 ] *= invSX; + _m1.elements[ 2 ] *= invSX; + + _m1.elements[ 4 ] *= invSY; + _m1.elements[ 5 ] *= invSY; + _m1.elements[ 6 ] *= invSY; + + _m1.elements[ 8 ] *= invSZ; + _m1.elements[ 9 ] *= invSZ; + _m1.elements[ 10 ] *= invSZ; + + quaternion.setFromRotationMatrix( _m1 ); + + scale.x = sx; + scale.y = sy; + scale.z = sz; + + return this; + + } + + makePerspective( left, right, top, bottom, near, far ) { + + if ( far === undefined ) { + + console.warn( 'THREE.Matrix4: .makePerspective() has been redefined and has a new signature. Please check the docs.' ); + + } + + const te = this.elements; + const x = 2 * near / ( right - left ); + const y = 2 * near / ( top - bottom ); + + const a = ( right + left ) / ( right - left ); + const b = ( top + bottom ) / ( top - bottom ); + const c = - ( far + near ) / ( far - near ); + const d = - 2 * far * near / ( far - near ); + + te[ 0 ] = x; te[ 4 ] = 0; te[ 8 ] = a; te[ 12 ] = 0; + te[ 1 ] = 0; te[ 5 ] = y; te[ 9 ] = b; te[ 13 ] = 0; + te[ 2 ] = 0; te[ 6 ] = 0; te[ 10 ] = c; te[ 14 ] = d; + te[ 3 ] = 0; te[ 7 ] = 0; te[ 11 ] = - 1; te[ 15 ] = 0; + + return this; + + } + + makeOrthographic( left, right, top, bottom, near, far ) { + + const te = this.elements; + const w = 1.0 / ( right - left ); + const h = 1.0 / ( top - bottom ); + const p = 1.0 / ( far - near ); + + const x = ( right + left ) * w; + const y = ( top + bottom ) * h; + const z = ( far + near ) * p; + + te[ 0 ] = 2 * w; te[ 4 ] = 0; te[ 8 ] = 0; te[ 12 ] = - x; + te[ 1 ] = 0; te[ 5 ] = 2 * h; te[ 9 ] = 0; te[ 13 ] = - y; + te[ 2 ] = 0; te[ 6 ] = 0; te[ 10 ] = - 2 * p; te[ 14 ] = - z; + te[ 3 ] = 0; te[ 7 ] = 0; te[ 11 ] = 0; te[ 15 ] = 1; + + return this; + + } + + equals( matrix ) { + + const te = this.elements; + const me = matrix.elements; + + for ( let i = 0; i < 16; i ++ ) { + + if ( te[ i ] !== me[ i ] ) return false; + + } + + return true; + + } + + fromArray( array, offset ) { + + if ( offset === undefined ) offset = 0; + + for ( let i = 0; i < 16; i ++ ) { + + this.elements[ i ] = array[ i + offset ]; + + } + + return this; + + } + + toArray( array, offset ) { + + if ( array === undefined ) array = []; + if ( offset === undefined ) offset = 0; + + const te = this.elements; + + array[ offset ] = te[ 0 ]; + array[ offset + 1 ] = te[ 1 ]; + array[ offset + 2 ] = te[ 2 ]; + array[ offset + 3 ] = te[ 3 ]; + + array[ offset + 4 ] = te[ 4 ]; + array[ offset + 5 ] = te[ 5 ]; + array[ offset + 6 ] = te[ 6 ]; + array[ offset + 7 ] = te[ 7 ]; + + array[ offset + 8 ] = te[ 8 ]; + array[ offset + 9 ] = te[ 9 ]; + array[ offset + 10 ] = te[ 10 ]; + array[ offset + 11 ] = te[ 11 ]; + + array[ offset + 12 ] = te[ 12 ]; + array[ offset + 13 ] = te[ 13 ]; + array[ offset + 14 ] = te[ 14 ]; + array[ offset + 15 ] = te[ 15 ]; + + return array; + + } + +} + +const _v1$1 = /*@__PURE__*/ new Vector3(); +const _m1 = /*@__PURE__*/ new Matrix4(); +const _zero = /*@__PURE__*/ new Vector3( 0, 0, 0 ); +const _one = /*@__PURE__*/ new Vector3( 1, 1, 1 ); +const _x = /*@__PURE__*/ new Vector3(); +const _y = /*@__PURE__*/ new Vector3(); +const _z = /*@__PURE__*/ new Vector3(); + +class Euler { + + constructor( x = 0, y = 0, z = 0, order = Euler.DefaultOrder ) { + + Object.defineProperty( this, 'isEuler', { value: true } ); + + this._x = x; + this._y = y; + this._z = z; + this._order = order; + + } + + get x() { + + return this._x; + + } + + set x( value ) { + + this._x = value; + this._onChangeCallback(); + + } + + get y() { + + return this._y; + + } + + set y( value ) { + + this._y = value; + this._onChangeCallback(); + + } + + get z() { + + return this._z; + + } + + set z( value ) { + + this._z = value; + this._onChangeCallback(); + + } + + get order() { + + return this._order; + + } + + set order( value ) { + + this._order = value; + this._onChangeCallback(); + + } + + set( x, y, z, order ) { + + this._x = x; + this._y = y; + this._z = z; + this._order = order || this._order; + + this._onChangeCallback(); + + return this; + + } + + clone() { + + return new this.constructor( this._x, this._y, this._z, this._order ); + + } + + copy( euler ) { + + this._x = euler._x; + this._y = euler._y; + this._z = euler._z; + this._order = euler._order; + + this._onChangeCallback(); + + return this; + + } + + setFromRotationMatrix( m, order, update ) { + + const clamp = MathUtils.clamp; + + // assumes the upper 3x3 of m is a pure rotation matrix (i.e, unscaled) + + const te = m.elements; + const m11 = te[ 0 ], m12 = te[ 4 ], m13 = te[ 8 ]; + const m21 = te[ 1 ], m22 = te[ 5 ], m23 = te[ 9 ]; + const m31 = te[ 2 ], m32 = te[ 6 ], m33 = te[ 10 ]; + + order = order || this._order; + + switch ( order ) { + + case 'XYZ': + + this._y = Math.asin( clamp( m13, - 1, 1 ) ); + + if ( Math.abs( m13 ) < 0.9999999 ) { + + this._x = Math.atan2( - m23, m33 ); + this._z = Math.atan2( - m12, m11 ); + + } else { + + this._x = Math.atan2( m32, m22 ); + this._z = 0; + + } + + break; + + case 'YXZ': + + this._x = Math.asin( - clamp( m23, - 1, 1 ) ); + + if ( Math.abs( m23 ) < 0.9999999 ) { + + this._y = Math.atan2( m13, m33 ); + this._z = Math.atan2( m21, m22 ); + + } else { + + this._y = Math.atan2( - m31, m11 ); + this._z = 0; + + } + + break; + + case 'ZXY': + + this._x = Math.asin( clamp( m32, - 1, 1 ) ); + + if ( Math.abs( m32 ) < 0.9999999 ) { + + this._y = Math.atan2( - m31, m33 ); + this._z = Math.atan2( - m12, m22 ); + + } else { + + this._y = 0; + this._z = Math.atan2( m21, m11 ); + + } + + break; + + case 'ZYX': + + this._y = Math.asin( - clamp( m31, - 1, 1 ) ); + + if ( Math.abs( m31 ) < 0.9999999 ) { + + this._x = Math.atan2( m32, m33 ); + this._z = Math.atan2( m21, m11 ); + + } else { + + this._x = 0; + this._z = Math.atan2( - m12, m22 ); + + } + + break; + + case 'YZX': + + this._z = Math.asin( clamp( m21, - 1, 1 ) ); + + if ( Math.abs( m21 ) < 0.9999999 ) { + + this._x = Math.atan2( - m23, m22 ); + this._y = Math.atan2( - m31, m11 ); + + } else { + + this._x = 0; + this._y = Math.atan2( m13, m33 ); + + } + + break; + + case 'XZY': + + this._z = Math.asin( - clamp( m12, - 1, 1 ) ); + + if ( Math.abs( m12 ) < 0.9999999 ) { + + this._x = Math.atan2( m32, m22 ); + this._y = Math.atan2( m13, m11 ); + + } else { + + this._x = Math.atan2( - m23, m33 ); + this._y = 0; + + } + + break; + + default: + + console.warn( 'THREE.Euler: .setFromRotationMatrix() encountered an unknown order: ' + order ); + + } + + this._order = order; + + if ( update !== false ) this._onChangeCallback(); + + return this; + + } + + setFromQuaternion( q, order, update ) { + + _matrix.makeRotationFromQuaternion( q ); + + return this.setFromRotationMatrix( _matrix, order, update ); + + } + + setFromVector3( v, order ) { + + return this.set( v.x, v.y, v.z, order || this._order ); + + } + + reorder( newOrder ) { + + // WARNING: this discards revolution information -bhouston + + _quaternion$1.setFromEuler( this ); + + return this.setFromQuaternion( _quaternion$1, newOrder ); + + } + + equals( euler ) { + + return ( euler._x === this._x ) && ( euler._y === this._y ) && ( euler._z === this._z ) && ( euler._order === this._order ); + + } + + fromArray( array ) { + + this._x = array[ 0 ]; + this._y = array[ 1 ]; + this._z = array[ 2 ]; + if ( array[ 3 ] !== undefined ) this._order = array[ 3 ]; + + this._onChangeCallback(); + + return this; + + } + + toArray( array, offset ) { + + if ( array === undefined ) array = []; + if ( offset === undefined ) offset = 0; + + array[ offset ] = this._x; + array[ offset + 1 ] = this._y; + array[ offset + 2 ] = this._z; + array[ offset + 3 ] = this._order; + + return array; + + } + + toVector3( optionalResult ) { + + if ( optionalResult ) { + + return optionalResult.set( this._x, this._y, this._z ); + + } else { + + return new Vector3( this._x, this._y, this._z ); + + } + + } + + _onChange( callback ) { + + this._onChangeCallback = callback; + + return this; + + } + + _onChangeCallback() {} + +} + +Euler.DefaultOrder = 'XYZ'; +Euler.RotationOrders = [ 'XYZ', 'YZX', 'ZXY', 'XZY', 'YXZ', 'ZYX' ]; + +const _matrix = /*@__PURE__*/ new Matrix4(); +const _quaternion$1 = /*@__PURE__*/ new Quaternion(); + +class Layers { + + constructor() { + + this.mask = 1 | 0; + + } + + set( channel ) { + + this.mask = 1 << channel | 0; + + } + + enable( channel ) { + + this.mask |= 1 << channel | 0; + + } + + enableAll() { + + this.mask = 0xffffffff | 0; + + } + + toggle( channel ) { + + this.mask ^= 1 << channel | 0; + + } + + disable( channel ) { + + this.mask &= ~ ( 1 << channel | 0 ); + + } + + disableAll() { + + this.mask = 0; + + } + + test( layers ) { + + return ( this.mask & layers.mask ) !== 0; + + } + +} + +let _object3DId = 0; + +const _v1$2 = new Vector3(); +const _q1 = new Quaternion(); +const _m1$1 = new Matrix4(); +const _target = new Vector3(); + +const _position = new Vector3(); +const _scale = new Vector3(); +const _quaternion$2 = new Quaternion(); + +const _xAxis = new Vector3( 1, 0, 0 ); +const _yAxis = new Vector3( 0, 1, 0 ); +const _zAxis = new Vector3( 0, 0, 1 ); + +const _addedEvent = { type: 'added' }; +const _removedEvent = { type: 'removed' }; + +function Object3D() { + + Object.defineProperty( this, 'id', { value: _object3DId ++ } ); + + this.uuid = MathUtils.generateUUID(); + + this.name = ''; + this.type = 'Object3D'; + + this.parent = null; + this.children = []; + + this.up = Object3D.DefaultUp.clone(); + + const position = new Vector3(); + const rotation = new Euler(); + const quaternion = new Quaternion(); + const scale = new Vector3( 1, 1, 1 ); + + function onRotationChange() { + + quaternion.setFromEuler( rotation, false ); + + } + + function onQuaternionChange() { + + rotation.setFromQuaternion( quaternion, undefined, false ); + + } + + rotation._onChange( onRotationChange ); + quaternion._onChange( onQuaternionChange ); + + Object.defineProperties( this, { + position: { + configurable: true, + enumerable: true, + value: position + }, + rotation: { + configurable: true, + enumerable: true, + value: rotation + }, + quaternion: { + configurable: true, + enumerable: true, + value: quaternion + }, + scale: { + configurable: true, + enumerable: true, + value: scale + }, + modelViewMatrix: { + value: new Matrix4() + }, + normalMatrix: { + value: new Matrix3() + } + } ); + + this.matrix = new Matrix4(); + this.matrixWorld = new Matrix4(); + + this.matrixAutoUpdate = Object3D.DefaultMatrixAutoUpdate; + this.matrixWorldNeedsUpdate = false; + + this.layers = new Layers(); + this.visible = true; + + this.castShadow = false; + this.receiveShadow = false; + + this.frustumCulled = true; + this.renderOrder = 0; + + this.userData = {}; + +} + +Object3D.DefaultUp = new Vector3( 0, 1, 0 ); +Object3D.DefaultMatrixAutoUpdate = true; + +Object3D.prototype = Object.assign( Object.create( EventDispatcher.prototype ), { + + constructor: Object3D, + + isObject3D: true, + + onBeforeRender: function () {}, + onAfterRender: function () {}, + + applyMatrix4: function ( matrix ) { + + if ( this.matrixAutoUpdate ) this.updateMatrix(); + + this.matrix.premultiply( matrix ); + + this.matrix.decompose( this.position, this.quaternion, this.scale ); + + }, + + applyQuaternion: function ( q ) { + + this.quaternion.premultiply( q ); + + return this; + + }, + + setRotationFromAxisAngle: function ( axis, angle ) { + + // assumes axis is normalized + + this.quaternion.setFromAxisAngle( axis, angle ); + + }, + + setRotationFromEuler: function ( euler ) { + + this.quaternion.setFromEuler( euler, true ); + + }, + + setRotationFromMatrix: function ( m ) { + + // assumes the upper 3x3 of m is a pure rotation matrix (i.e, unscaled) + + this.quaternion.setFromRotationMatrix( m ); + + }, + + setRotationFromQuaternion: function ( q ) { + + // assumes q is normalized + + this.quaternion.copy( q ); + + }, + + rotateOnAxis: function ( axis, angle ) { + + // rotate object on axis in object space + // axis is assumed to be normalized + + _q1.setFromAxisAngle( axis, angle ); + + this.quaternion.multiply( _q1 ); + + return this; + + }, + + rotateOnWorldAxis: function ( axis, angle ) { + + // rotate object on axis in world space + // axis is assumed to be normalized + // method assumes no rotated parent + + _q1.setFromAxisAngle( axis, angle ); + + this.quaternion.premultiply( _q1 ); + + return this; + + }, + + rotateX: function ( angle ) { + + return this.rotateOnAxis( _xAxis, angle ); + + }, + + rotateY: function ( angle ) { + + return this.rotateOnAxis( _yAxis, angle ); + + }, + + rotateZ: function ( angle ) { + + return this.rotateOnAxis( _zAxis, angle ); + + }, + + translateOnAxis: function ( axis, distance ) { + + // translate object by distance along axis in object space + // axis is assumed to be normalized + + _v1$2.copy( axis ).applyQuaternion( this.quaternion ); + + this.position.add( _v1$2.multiplyScalar( distance ) ); + + return this; + + }, + + translateX: function ( distance ) { + + return this.translateOnAxis( _xAxis, distance ); + + }, + + translateY: function ( distance ) { + + return this.translateOnAxis( _yAxis, distance ); + + }, + + translateZ: function ( distance ) { + + return this.translateOnAxis( _zAxis, distance ); + + }, + + localToWorld: function ( vector ) { + + return vector.applyMatrix4( this.matrixWorld ); + + }, + + worldToLocal: function ( vector ) { + + return vector.applyMatrix4( _m1$1.getInverse( this.matrixWorld ) ); + + }, + + lookAt: function ( x, y, z ) { + + // This method does not support objects having non-uniformly-scaled parent(s) + + if ( x.isVector3 ) { + + _target.copy( x ); + + } else { + + _target.set( x, y, z ); + + } + + const parent = this.parent; + + this.updateWorldMatrix( true, false ); + + _position.setFromMatrixPosition( this.matrixWorld ); + + if ( this.isCamera || this.isLight ) { + + _m1$1.lookAt( _position, _target, this.up ); + + } else { + + _m1$1.lookAt( _target, _position, this.up ); + + } + + this.quaternion.setFromRotationMatrix( _m1$1 ); + + if ( parent ) { + + _m1$1.extractRotation( parent.matrixWorld ); + _q1.setFromRotationMatrix( _m1$1 ); + this.quaternion.premultiply( _q1.inverse() ); + + } + + }, + + add: function ( object ) { + + if ( arguments.length > 1 ) { + + for ( let i = 0; i < arguments.length; i ++ ) { + + this.add( arguments[ i ] ); + + } + + return this; + + } + + if ( object === this ) { + + console.error( "THREE.Object3D.add: object can't be added as a child of itself.", object ); + return this; + + } + + if ( ( object && object.isObject3D ) ) { + + if ( object.parent !== null ) { + + object.parent.remove( object ); + + } + + object.parent = this; + this.children.push( object ); + + object.dispatchEvent( _addedEvent ); + + } else { + + console.error( "THREE.Object3D.add: object not an instance of THREE.Object3D.", object ); + + } + + return this; + + }, + + remove: function ( object ) { + + if ( arguments.length > 1 ) { + + for ( let i = 0; i < arguments.length; i ++ ) { + + this.remove( arguments[ i ] ); + + } + + return this; + + } + + const index = this.children.indexOf( object ); + + if ( index !== - 1 ) { + + object.parent = null; + this.children.splice( index, 1 ); + + object.dispatchEvent( _removedEvent ); + + } + + return this; + + }, + + attach: function ( object ) { + + // adds object as a child of this, while maintaining the object's world transform + + this.updateWorldMatrix( true, false ); + + _m1$1.getInverse( this.matrixWorld ); + + if ( object.parent !== null ) { + + object.parent.updateWorldMatrix( true, false ); + + _m1$1.multiply( object.parent.matrixWorld ); + + } + + object.applyMatrix4( _m1$1 ); + + object.updateWorldMatrix( false, false ); + + this.add( object ); + + return this; + + }, + + getObjectById: function ( id ) { + + return this.getObjectByProperty( 'id', id ); + + }, + + getObjectByName: function ( name ) { + + return this.getObjectByProperty( 'name', name ); + + }, + + getObjectByProperty: function ( name, value ) { + + if ( this[ name ] === value ) return this; + + for ( let i = 0, l = this.children.length; i < l; i ++ ) { + + const child = this.children[ i ]; + const object = child.getObjectByProperty( name, value ); + + if ( object !== undefined ) { + + return object; + + } + + } + + return undefined; + + }, + + getWorldPosition: function ( target ) { + + if ( target === undefined ) { + + console.warn( 'THREE.Object3D: .getWorldPosition() target is now required' ); + target = new Vector3(); + + } + + this.updateWorldMatrix( true, false ); + + return target.setFromMatrixPosition( this.matrixWorld ); + + }, + + getWorldQuaternion: function ( target ) { + + if ( target === undefined ) { + + console.warn( 'THREE.Object3D: .getWorldQuaternion() target is now required' ); + target = new Quaternion(); + + } + + this.updateWorldMatrix( true, false ); + + this.matrixWorld.decompose( _position, target, _scale ); + + return target; + + }, + + getWorldScale: function ( target ) { + + if ( target === undefined ) { + + console.warn( 'THREE.Object3D: .getWorldScale() target is now required' ); + target = new Vector3(); + + } + + this.updateWorldMatrix( true, false ); + + this.matrixWorld.decompose( _position, _quaternion$2, target ); + + return target; + + }, + + getWorldDirection: function ( target ) { + + if ( target === undefined ) { + + console.warn( 'THREE.Object3D: .getWorldDirection() target is now required' ); + target = new Vector3(); + + } + + this.updateWorldMatrix( true, false ); + + const e = this.matrixWorld.elements; + + return target.set( e[ 8 ], e[ 9 ], e[ 10 ] ).normalize(); + + }, + + raycast: function () {}, + + traverse: function ( callback ) { + + callback( this ); + + const children = this.children; + + for ( let i = 0, l = children.length; i < l; i ++ ) { + + children[ i ].traverse( callback ); + + } + + }, + + traverseVisible: function ( callback ) { + + if ( this.visible === false ) return; + + callback( this ); + + const children = this.children; + + for ( let i = 0, l = children.length; i < l; i ++ ) { + + children[ i ].traverseVisible( callback ); + + } + + }, + + traverseAncestors: function ( callback ) { + + const parent = this.parent; + + if ( parent !== null ) { + + callback( parent ); + + parent.traverseAncestors( callback ); + + } + + }, + + updateMatrix: function () { + + this.matrix.compose( this.position, this.quaternion, this.scale ); + + this.matrixWorldNeedsUpdate = true; + + }, + + updateMatrixWorld: function ( force ) { + + if ( this.matrixAutoUpdate ) this.updateMatrix(); + + if ( this.matrixWorldNeedsUpdate || force ) { + + if ( this.parent === null ) { + + this.matrixWorld.copy( this.matrix ); + + } else { + + this.matrixWorld.multiplyMatrices( this.parent.matrixWorld, this.matrix ); + + } + + this.matrixWorldNeedsUpdate = false; + + force = true; + + } + + // update children + + const children = this.children; + + for ( let i = 0, l = children.length; i < l; i ++ ) { + + children[ i ].updateMatrixWorld( force ); + + } + + }, + + updateWorldMatrix: function ( updateParents, updateChildren ) { + + const parent = this.parent; + + if ( updateParents === true && parent !== null ) { + + parent.updateWorldMatrix( true, false ); + + } + + if ( this.matrixAutoUpdate ) this.updateMatrix(); + + if ( this.parent === null ) { + + this.matrixWorld.copy( this.matrix ); + + } else { + + this.matrixWorld.multiplyMatrices( this.parent.matrixWorld, this.matrix ); + + } + + // update children + + if ( updateChildren === true ) { + + const children = this.children; + + for ( let i = 0, l = children.length; i < l; i ++ ) { + + children[ i ].updateWorldMatrix( false, true ); + + } + + } + + }, + + toJSON: function ( meta ) { + + // meta is a string when called from JSON.stringify + const isRootObject = ( meta === undefined || typeof meta === 'string' ); + + const output = {}; + + // meta is a hash used to collect geometries, materials. + // not providing it implies that this is the root object + // being serialized. + if ( isRootObject ) { + + // initialize meta obj + meta = { + geometries: {}, + materials: {}, + textures: {}, + images: {}, + shapes: {} + }; + + output.metadata = { + version: 4.5, + type: 'Object', + generator: 'Object3D.toJSON' + }; + + } + + // standard Object3D serialization + + const object = {}; + + object.uuid = this.uuid; + object.type = this.type; + + if ( this.name !== '' ) object.name = this.name; + if ( this.castShadow === true ) object.castShadow = true; + if ( this.receiveShadow === true ) object.receiveShadow = true; + if ( this.visible === false ) object.visible = false; + if ( this.frustumCulled === false ) object.frustumCulled = false; + if ( this.renderOrder !== 0 ) object.renderOrder = this.renderOrder; + if ( JSON.stringify( this.userData ) !== '{}' ) object.userData = this.userData; + + object.layers = this.layers.mask; + object.matrix = this.matrix.toArray(); + + if ( this.matrixAutoUpdate === false ) object.matrixAutoUpdate = false; + + // object specific properties + + if ( this.isInstancedMesh ) { + + object.type = 'InstancedMesh'; + object.count = this.count; + object.instanceMatrix = this.instanceMatrix.toJSON(); + + } + + // + + function serialize( library, element ) { + + if ( library[ element.uuid ] === undefined ) { + + library[ element.uuid ] = element.toJSON( meta ); + + } + + return element.uuid; + + } + + if ( this.isMesh || this.isLine || this.isPoints ) { + + object.geometry = serialize( meta.geometries, this.geometry ); + + const parameters = this.geometry.parameters; + + if ( parameters !== undefined && parameters.shapes !== undefined ) { + + const shapes = parameters.shapes; + + if ( Array.isArray( shapes ) ) { + + for ( let i = 0, l = shapes.length; i < l; i ++ ) { + + const shape = shapes[ i ]; + + serialize( meta.shapes, shape ); + + } + + } else { + + serialize( meta.shapes, shapes ); + + } + + } + + } + + if ( this.material !== undefined ) { + + if ( Array.isArray( this.material ) ) { + + const uuids = []; + + for ( let i = 0, l = this.material.length; i < l; i ++ ) { + + uuids.push( serialize( meta.materials, this.material[ i ] ) ); + + } + + object.material = uuids; + + } else { + + object.material = serialize( meta.materials, this.material ); + + } + + } + + // + + if ( this.children.length > 0 ) { + + object.children = []; + + for ( let i = 0; i < this.children.length; i ++ ) { + + object.children.push( this.children[ i ].toJSON( meta ).object ); + + } + + } + + if ( isRootObject ) { + + const geometries = extractFromCache( meta.geometries ); + const materials = extractFromCache( meta.materials ); + const textures = extractFromCache( meta.textures ); + const images = extractFromCache( meta.images ); + const shapes = extractFromCache( meta.shapes ); + + if ( geometries.length > 0 ) output.geometries = geometries; + if ( materials.length > 0 ) output.materials = materials; + if ( textures.length > 0 ) output.textures = textures; + if ( images.length > 0 ) output.images = images; + if ( shapes.length > 0 ) output.shapes = shapes; + + } + + output.object = object; + + return output; + + // extract data from the cache hash + // remove metadata on each item + // and return as array + function extractFromCache( cache ) { + + const values = []; + for ( const key in cache ) { + + const data = cache[ key ]; + delete data.metadata; + values.push( data ); + + } + + return values; + + } + + }, + + clone: function ( recursive ) { + + return new this.constructor().copy( this, recursive ); + + }, + + copy: function ( source, recursive ) { + + if ( recursive === undefined ) recursive = true; + + this.name = source.name; + + this.up.copy( source.up ); + + this.position.copy( source.position ); + this.rotation.order = source.rotation.order; + this.quaternion.copy( source.quaternion ); + this.scale.copy( source.scale ); + + this.matrix.copy( source.matrix ); + this.matrixWorld.copy( source.matrixWorld ); + + this.matrixAutoUpdate = source.matrixAutoUpdate; + this.matrixWorldNeedsUpdate = source.matrixWorldNeedsUpdate; + + this.layers.mask = source.layers.mask; + this.visible = source.visible; + + this.castShadow = source.castShadow; + this.receiveShadow = source.receiveShadow; + + this.frustumCulled = source.frustumCulled; + this.renderOrder = source.renderOrder; + + this.userData = JSON.parse( JSON.stringify( source.userData ) ); + + if ( recursive === true ) { + + for ( let i = 0; i < source.children.length; i ++ ) { + + const child = source.children[ i ]; + this.add( child.clone() ); + + } + + } + + return this; + + } + +} ); + +const _vector1 = /*@__PURE__*/ new Vector3(); +const _vector2 = /*@__PURE__*/ new Vector3(); +const _normalMatrix = /*@__PURE__*/ new Matrix3(); + +class Plane { + + constructor( normal, constant ) { + + Object.defineProperty( this, 'isPlane', { value: true } ); + + // normal is assumed to be normalized + + this.normal = ( normal !== undefined ) ? normal : new Vector3( 1, 0, 0 ); + this.constant = ( constant !== undefined ) ? constant : 0; + + } + + set( normal, constant ) { + + this.normal.copy( normal ); + this.constant = constant; + + return this; + + } + + setComponents( x, y, z, w ) { + + this.normal.set( x, y, z ); + this.constant = w; + + return this; + + } + + setFromNormalAndCoplanarPoint( normal, point ) { + + this.normal.copy( normal ); + this.constant = - point.dot( this.normal ); + + return this; + + } + + setFromCoplanarPoints( a, b, c ) { + + const normal = _vector1.subVectors( c, b ).cross( _vector2.subVectors( a, b ) ).normalize(); + + // Q: should an error be thrown if normal is zero (e.g. degenerate plane)? + + this.setFromNormalAndCoplanarPoint( normal, a ); + + return this; + + } + + clone() { + + return new this.constructor().copy( this ); + + } + + copy( plane ) { + + this.normal.copy( plane.normal ); + this.constant = plane.constant; + + return this; + + } + + normalize() { + + // Note: will lead to a divide by zero if the plane is invalid. + + const inverseNormalLength = 1.0 / this.normal.length(); + this.normal.multiplyScalar( inverseNormalLength ); + this.constant *= inverseNormalLength; + + return this; + + } + + negate() { + + this.constant *= - 1; + this.normal.negate(); + + return this; + + } + + distanceToPoint( point ) { + + return this.normal.dot( point ) + this.constant; + + } + + distanceToSphere( sphere ) { + + return this.distanceToPoint( sphere.center ) - sphere.radius; + + } + + projectPoint( point, target ) { + + if ( target === undefined ) { + + console.warn( 'THREE.Plane: .projectPoint() target is now required' ); + target = new Vector3(); + + } + + return target.copy( this.normal ).multiplyScalar( - this.distanceToPoint( point ) ).add( point ); + + } + + intersectLine( line, target ) { + + if ( target === undefined ) { + + console.warn( 'THREE.Plane: .intersectLine() target is now required' ); + target = new Vector3(); + + } + + const direction = line.delta( _vector1 ); + + const denominator = this.normal.dot( direction ); + + if ( denominator === 0 ) { + + // line is coplanar, return origin + if ( this.distanceToPoint( line.start ) === 0 ) { + + return target.copy( line.start ); + + } + + // Unsure if this is the correct method to handle this case. + return undefined; + + } + + const t = - ( line.start.dot( this.normal ) + this.constant ) / denominator; + + if ( t < 0 || t > 1 ) { + + return undefined; + + } + + return target.copy( direction ).multiplyScalar( t ).add( line.start ); + + } + + intersectsLine( line ) { + + // Note: this tests if a line intersects the plane, not whether it (or its end-points) are coplanar with it. + + const startSign = this.distanceToPoint( line.start ); + const endSign = this.distanceToPoint( line.end ); + + return ( startSign < 0 && endSign > 0 ) || ( endSign < 0 && startSign > 0 ); + + } + + intersectsBox( box ) { + + return box.intersectsPlane( this ); + + } + + intersectsSphere( sphere ) { + + return sphere.intersectsPlane( this ); + + } + + coplanarPoint( target ) { + + if ( target === undefined ) { + + console.warn( 'THREE.Plane: .coplanarPoint() target is now required' ); + target = new Vector3(); + + } + + return target.copy( this.normal ).multiplyScalar( - this.constant ); + + } + + applyMatrix4( matrix, optionalNormalMatrix ) { + + const normalMatrix = optionalNormalMatrix || _normalMatrix.getNormalMatrix( matrix ); + + const referencePoint = this.coplanarPoint( _vector1 ).applyMatrix4( matrix ); + + const normal = this.normal.applyMatrix3( normalMatrix ).normalize(); + + this.constant = - referencePoint.dot( normal ); + + return this; + + } + + translate( offset ) { + + this.constant -= offset.dot( this.normal ); + + return this; + + } + + equals( plane ) { + + return plane.normal.equals( this.normal ) && ( plane.constant === this.constant ); + + } + +} + +const _v0$1 = /*@__PURE__*/ new Vector3(); +const _v1$3 = /*@__PURE__*/ new Vector3(); +const _v2$1 = /*@__PURE__*/ new Vector3(); +const _v3 = /*@__PURE__*/ new Vector3(); + +const _vab = /*@__PURE__*/ new Vector3(); +const _vac = /*@__PURE__*/ new Vector3(); +const _vbc = /*@__PURE__*/ new Vector3(); +const _vap = /*@__PURE__*/ new Vector3(); +const _vbp = /*@__PURE__*/ new Vector3(); +const _vcp = /*@__PURE__*/ new Vector3(); + +class Triangle { + + constructor( a, b, c ) { + + this.a = ( a !== undefined ) ? a : new Vector3(); + this.b = ( b !== undefined ) ? b : new Vector3(); + this.c = ( c !== undefined ) ? c : new Vector3(); + + } + + static getNormal( a, b, c, target ) { + + if ( target === undefined ) { + + console.warn( 'THREE.Triangle: .getNormal() target is now required' ); + target = new Vector3(); + + } + + target.subVectors( c, b ); + _v0$1.subVectors( a, b ); + target.cross( _v0$1 ); + + const targetLengthSq = target.lengthSq(); + if ( targetLengthSq > 0 ) { + + return target.multiplyScalar( 1 / Math.sqrt( targetLengthSq ) ); + + } + + return target.set( 0, 0, 0 ); + + } + + // static/instance method to calculate barycentric coordinates + // based on: http://www.blackpawn.com/texts/pointinpoly/default.html + static getBarycoord( point, a, b, c, target ) { + + _v0$1.subVectors( c, a ); + _v1$3.subVectors( b, a ); + _v2$1.subVectors( point, a ); + + const dot00 = _v0$1.dot( _v0$1 ); + const dot01 = _v0$1.dot( _v1$3 ); + const dot02 = _v0$1.dot( _v2$1 ); + const dot11 = _v1$3.dot( _v1$3 ); + const dot12 = _v1$3.dot( _v2$1 ); + + const denom = ( dot00 * dot11 - dot01 * dot01 ); + + if ( target === undefined ) { + + console.warn( 'THREE.Triangle: .getBarycoord() target is now required' ); + target = new Vector3(); + + } + + // collinear or singular triangle + if ( denom === 0 ) { + + // arbitrary location outside of triangle? + // not sure if this is the best idea, maybe should be returning undefined + return target.set( - 2, - 1, - 1 ); + + } + + const invDenom = 1 / denom; + const u = ( dot11 * dot02 - dot01 * dot12 ) * invDenom; + const v = ( dot00 * dot12 - dot01 * dot02 ) * invDenom; + + // barycentric coordinates must always sum to 1 + return target.set( 1 - u - v, v, u ); + + } + + static containsPoint( point, a, b, c ) { + + this.getBarycoord( point, a, b, c, _v3 ); + + return ( _v3.x >= 0 ) && ( _v3.y >= 0 ) && ( ( _v3.x + _v3.y ) <= 1 ); + + } + + static getUV( point, p1, p2, p3, uv1, uv2, uv3, target ) { + + this.getBarycoord( point, p1, p2, p3, _v3 ); + + target.set( 0, 0 ); + target.addScaledVector( uv1, _v3.x ); + target.addScaledVector( uv2, _v3.y ); + target.addScaledVector( uv3, _v3.z ); + + return target; + + } + + static isFrontFacing( a, b, c, direction ) { + + _v0$1.subVectors( c, b ); + _v1$3.subVectors( a, b ); + + // strictly front facing + return ( _v0$1.cross( _v1$3 ).dot( direction ) < 0 ) ? true : false; + + } + + set( a, b, c ) { + + this.a.copy( a ); + this.b.copy( b ); + this.c.copy( c ); + + return this; + + } + + setFromPointsAndIndices( points, i0, i1, i2 ) { + + this.a.copy( points[ i0 ] ); + this.b.copy( points[ i1 ] ); + this.c.copy( points[ i2 ] ); + + return this; + + } + + clone() { + + return new this.constructor().copy( this ); + + } + + copy( triangle ) { + + this.a.copy( triangle.a ); + this.b.copy( triangle.b ); + this.c.copy( triangle.c ); + + return this; + + } + + getArea() { + + _v0$1.subVectors( this.c, this.b ); + _v1$3.subVectors( this.a, this.b ); + + return _v0$1.cross( _v1$3 ).length() * 0.5; + + } + + getMidpoint( target ) { + + if ( target === undefined ) { + + console.warn( 'THREE.Triangle: .getMidpoint() target is now required' ); + target = new Vector3(); + + } + + return target.addVectors( this.a, this.b ).add( this.c ).multiplyScalar( 1 / 3 ); + + } + + getNormal( target ) { + + return Triangle.getNormal( this.a, this.b, this.c, target ); + + } + + getPlane( target ) { + + if ( target === undefined ) { + + console.warn( 'THREE.Triangle: .getPlane() target is now required' ); + target = new Plane(); + + } + + return target.setFromCoplanarPoints( this.a, this.b, this.c ); + + } + + getBarycoord( point, target ) { + + return Triangle.getBarycoord( point, this.a, this.b, this.c, target ); + + } + + getUV( point, uv1, uv2, uv3, target ) { + + return Triangle.getUV( point, this.a, this.b, this.c, uv1, uv2, uv3, target ); + + } + + containsPoint( point ) { + + return Triangle.containsPoint( point, this.a, this.b, this.c ); + + } + + isFrontFacing( direction ) { + + return Triangle.isFrontFacing( this.a, this.b, this.c, direction ); + + } + + intersectsBox( box ) { + + return box.intersectsTriangle( this ); + + } + + closestPointToPoint( p, target ) { + + if ( target === undefined ) { + + console.warn( 'THREE.Triangle: .closestPointToPoint() target is now required' ); + target = new Vector3(); + + } + + const a = this.a, b = this.b, c = this.c; + let v, w; + + // algorithm thanks to Real-Time Collision Detection by Christer Ericson, + // published by Morgan Kaufmann Publishers, (c) 2005 Elsevier Inc., + // under the accompanying license; see chapter 5.1.5 for detailed explanation. + // basically, we're distinguishing which of the voronoi regions of the triangle + // the point lies in with the minimum amount of redundant computation. + + _vab.subVectors( b, a ); + _vac.subVectors( c, a ); + _vap.subVectors( p, a ); + const d1 = _vab.dot( _vap ); + const d2 = _vac.dot( _vap ); + if ( d1 <= 0 && d2 <= 0 ) { + + // vertex region of A; barycentric coords (1, 0, 0) + return target.copy( a ); + + } + + _vbp.subVectors( p, b ); + const d3 = _vab.dot( _vbp ); + const d4 = _vac.dot( _vbp ); + if ( d3 >= 0 && d4 <= d3 ) { + + // vertex region of B; barycentric coords (0, 1, 0) + return target.copy( b ); + + } + + const vc = d1 * d4 - d3 * d2; + if ( vc <= 0 && d1 >= 0 && d3 <= 0 ) { + + v = d1 / ( d1 - d3 ); + // edge region of AB; barycentric coords (1-v, v, 0) + return target.copy( a ).addScaledVector( _vab, v ); + + } + + _vcp.subVectors( p, c ); + const d5 = _vab.dot( _vcp ); + const d6 = _vac.dot( _vcp ); + if ( d6 >= 0 && d5 <= d6 ) { + + // vertex region of C; barycentric coords (0, 0, 1) + return target.copy( c ); + + } + + const vb = d5 * d2 - d1 * d6; + if ( vb <= 0 && d2 >= 0 && d6 <= 0 ) { + + w = d2 / ( d2 - d6 ); + // edge region of AC; barycentric coords (1-w, 0, w) + return target.copy( a ).addScaledVector( _vac, w ); + + } + + const va = d3 * d6 - d5 * d4; + if ( va <= 0 && ( d4 - d3 ) >= 0 && ( d5 - d6 ) >= 0 ) { + + _vbc.subVectors( c, b ); + w = ( d4 - d3 ) / ( ( d4 - d3 ) + ( d5 - d6 ) ); + // edge region of BC; barycentric coords (0, 1-w, w) + return target.copy( b ).addScaledVector( _vbc, w ); // edge region of BC + + } + + // face region + const denom = 1 / ( va + vb + vc ); + // u = va * denom + v = vb * denom; + w = vc * denom; + + return target.copy( a ).addScaledVector( _vab, v ).addScaledVector( _vac, w ); + + } + + equals( triangle ) { + + return triangle.a.equals( this.a ) && triangle.b.equals( this.b ) && triangle.c.equals( this.c ); + + } + +} + +const _colorKeywords = { 'aliceblue': 0xF0F8FF, 'antiquewhite': 0xFAEBD7, 'aqua': 0x00FFFF, 'aquamarine': 0x7FFFD4, 'azure': 0xF0FFFF, + 'beige': 0xF5F5DC, 'bisque': 0xFFE4C4, 'black': 0x000000, 'blanchedalmond': 0xFFEBCD, 'blue': 0x0000FF, 'blueviolet': 0x8A2BE2, + 'brown': 0xA52A2A, 'burlywood': 0xDEB887, 'cadetblue': 0x5F9EA0, 'chartreuse': 0x7FFF00, 'chocolate': 0xD2691E, 'coral': 0xFF7F50, + 'cornflowerblue': 0x6495ED, 'cornsilk': 0xFFF8DC, 'crimson': 0xDC143C, 'cyan': 0x00FFFF, 'darkblue': 0x00008B, 'darkcyan': 0x008B8B, + 'darkgoldenrod': 0xB8860B, 'darkgray': 0xA9A9A9, 'darkgreen': 0x006400, 'darkgrey': 0xA9A9A9, 'darkkhaki': 0xBDB76B, 'darkmagenta': 0x8B008B, + 'darkolivegreen': 0x556B2F, 'darkorange': 0xFF8C00, 'darkorchid': 0x9932CC, 'darkred': 0x8B0000, 'darksalmon': 0xE9967A, 'darkseagreen': 0x8FBC8F, + 'darkslateblue': 0x483D8B, 'darkslategray': 0x2F4F4F, 'darkslategrey': 0x2F4F4F, 'darkturquoise': 0x00CED1, 'darkviolet': 0x9400D3, + 'deeppink': 0xFF1493, 'deepskyblue': 0x00BFFF, 'dimgray': 0x696969, 'dimgrey': 0x696969, 'dodgerblue': 0x1E90FF, 'firebrick': 0xB22222, + 'floralwhite': 0xFFFAF0, 'forestgreen': 0x228B22, 'fuchsia': 0xFF00FF, 'gainsboro': 0xDCDCDC, 'ghostwhite': 0xF8F8FF, 'gold': 0xFFD700, + 'goldenrod': 0xDAA520, 'gray': 0x808080, 'green': 0x008000, 'greenyellow': 0xADFF2F, 'grey': 0x808080, 'honeydew': 0xF0FFF0, 'hotpink': 0xFF69B4, + 'indianred': 0xCD5C5C, 'indigo': 0x4B0082, 'ivory': 0xFFFFF0, 'khaki': 0xF0E68C, 'lavender': 0xE6E6FA, 'lavenderblush': 0xFFF0F5, 'lawngreen': 0x7CFC00, + 'lemonchiffon': 0xFFFACD, 'lightblue': 0xADD8E6, 'lightcoral': 0xF08080, 'lightcyan': 0xE0FFFF, 'lightgoldenrodyellow': 0xFAFAD2, 'lightgray': 0xD3D3D3, + 'lightgreen': 0x90EE90, 'lightgrey': 0xD3D3D3, 'lightpink': 0xFFB6C1, 'lightsalmon': 0xFFA07A, 'lightseagreen': 0x20B2AA, 'lightskyblue': 0x87CEFA, + 'lightslategray': 0x778899, 'lightslategrey': 0x778899, 'lightsteelblue': 0xB0C4DE, 'lightyellow': 0xFFFFE0, 'lime': 0x00FF00, 'limegreen': 0x32CD32, + 'linen': 0xFAF0E6, 'magenta': 0xFF00FF, 'maroon': 0x800000, 'mediumaquamarine': 0x66CDAA, 'mediumblue': 0x0000CD, 'mediumorchid': 0xBA55D3, + 'mediumpurple': 0x9370DB, 'mediumseagreen': 0x3CB371, 'mediumslateblue': 0x7B68EE, 'mediumspringgreen': 0x00FA9A, 'mediumturquoise': 0x48D1CC, + 'mediumvioletred': 0xC71585, 'midnightblue': 0x191970, 'mintcream': 0xF5FFFA, 'mistyrose': 0xFFE4E1, 'moccasin': 0xFFE4B5, 'navajowhite': 0xFFDEAD, + 'navy': 0x000080, 'oldlace': 0xFDF5E6, 'olive': 0x808000, 'olivedrab': 0x6B8E23, 'orange': 0xFFA500, 'orangered': 0xFF4500, 'orchid': 0xDA70D6, + 'palegoldenrod': 0xEEE8AA, 'palegreen': 0x98FB98, 'paleturquoise': 0xAFEEEE, 'palevioletred': 0xDB7093, 'papayawhip': 0xFFEFD5, 'peachpuff': 0xFFDAB9, + 'peru': 0xCD853F, 'pink': 0xFFC0CB, 'plum': 0xDDA0DD, 'powderblue': 0xB0E0E6, 'purple': 0x800080, 'rebeccapurple': 0x663399, 'red': 0xFF0000, 'rosybrown': 0xBC8F8F, + 'royalblue': 0x4169E1, 'saddlebrown': 0x8B4513, 'salmon': 0xFA8072, 'sandybrown': 0xF4A460, 'seagreen': 0x2E8B57, 'seashell': 0xFFF5EE, + 'sienna': 0xA0522D, 'silver': 0xC0C0C0, 'skyblue': 0x87CEEB, 'slateblue': 0x6A5ACD, 'slategray': 0x708090, 'slategrey': 0x708090, 'snow': 0xFFFAFA, + 'springgreen': 0x00FF7F, 'steelblue': 0x4682B4, 'tan': 0xD2B48C, 'teal': 0x008080, 'thistle': 0xD8BFD8, 'tomato': 0xFF6347, 'turquoise': 0x40E0D0, + 'violet': 0xEE82EE, 'wheat': 0xF5DEB3, 'white': 0xFFFFFF, 'whitesmoke': 0xF5F5F5, 'yellow': 0xFFFF00, 'yellowgreen': 0x9ACD32 }; + +const _hslA = { h: 0, s: 0, l: 0 }; +const _hslB = { h: 0, s: 0, l: 0 }; + +function hue2rgb( p, q, t ) { + + if ( t < 0 ) t += 1; + if ( t > 1 ) t -= 1; + if ( t < 1 / 6 ) return p + ( q - p ) * 6 * t; + if ( t < 1 / 2 ) return q; + if ( t < 2 / 3 ) return p + ( q - p ) * 6 * ( 2 / 3 - t ); + return p; + +} + +function SRGBToLinear( c ) { + + return ( c < 0.04045 ) ? c * 0.0773993808 : Math.pow( c * 0.9478672986 + 0.0521327014, 2.4 ); + +} + +function LinearToSRGB( c ) { + + return ( c < 0.0031308 ) ? c * 12.92 : 1.055 * ( Math.pow( c, 0.41666 ) ) - 0.055; + +} + +class Color { + + constructor( r, g, b ) { + + Object.defineProperty( this, 'isColor', { value: true } ); + + if ( g === undefined && b === undefined ) { + + // r is THREE.Color, hex or string + return this.set( r ); + + } + + return this.setRGB( r, g, b ); + + } + + set( value ) { + + if ( value && value.isColor ) { + + this.copy( value ); + + } else if ( typeof value === 'number' ) { + + this.setHex( value ); + + } else if ( typeof value === 'string' ) { + + this.setStyle( value ); + + } + + return this; + + } + + setScalar( scalar ) { + + this.r = scalar; + this.g = scalar; + this.b = scalar; + + return this; + + } + + setHex( hex ) { + + hex = Math.floor( hex ); + + this.r = ( hex >> 16 & 255 ) / 255; + this.g = ( hex >> 8 & 255 ) / 255; + this.b = ( hex & 255 ) / 255; + + return this; + + } + + setRGB( r, g, b ) { + + this.r = r; + this.g = g; + this.b = b; + + return this; + + } + + setHSL( h, s, l ) { + + // h,s,l ranges are in 0.0 - 1.0 + h = MathUtils.euclideanModulo( h, 1 ); + s = MathUtils.clamp( s, 0, 1 ); + l = MathUtils.clamp( l, 0, 1 ); + + if ( s === 0 ) { + + this.r = this.g = this.b = l; + + } else { + + const p = l <= 0.5 ? l * ( 1 + s ) : l + s - ( l * s ); + const q = ( 2 * l ) - p; + + this.r = hue2rgb( q, p, h + 1 / 3 ); + this.g = hue2rgb( q, p, h ); + this.b = hue2rgb( q, p, h - 1 / 3 ); + + } + + return this; + + } + + setStyle( style ) { + + function handleAlpha( string ) { + + if ( string === undefined ) return; + + if ( parseFloat( string ) < 1 ) { + + console.warn( 'THREE.Color: Alpha component of ' + style + ' will be ignored.' ); + + } + + } + + + let m; + + if ( m = /^((?:rgb|hsl)a?)\(\s*([^\)]*)\)/.exec( style ) ) { + + // rgb / hsl + + let color; + const name = m[ 1 ]; + const components = m[ 2 ]; + + switch ( name ) { + + case 'rgb': + case 'rgba': + + if ( color = /^(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(,\s*([0-9]*\.?[0-9]+)\s*)?$/.exec( components ) ) { + + // rgb(255,0,0) rgba(255,0,0,0.5) + this.r = Math.min( 255, parseInt( color[ 1 ], 10 ) ) / 255; + this.g = Math.min( 255, parseInt( color[ 2 ], 10 ) ) / 255; + this.b = Math.min( 255, parseInt( color[ 3 ], 10 ) ) / 255; + + handleAlpha( color[ 5 ] ); + + return this; + + } + + if ( color = /^(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(,\s*([0-9]*\.?[0-9]+)\s*)?$/.exec( components ) ) { + + // rgb(100%,0%,0%) rgba(100%,0%,0%,0.5) + this.r = Math.min( 100, parseInt( color[ 1 ], 10 ) ) / 100; + this.g = Math.min( 100, parseInt( color[ 2 ], 10 ) ) / 100; + this.b = Math.min( 100, parseInt( color[ 3 ], 10 ) ) / 100; + + handleAlpha( color[ 5 ] ); + + return this; + + } + + break; + + case 'hsl': + case 'hsla': + + if ( color = /^([0-9]*\.?[0-9]+)\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(,\s*([0-9]*\.?[0-9]+)\s*)?$/.exec( components ) ) { + + // hsl(120,50%,50%) hsla(120,50%,50%,0.5) + const h = parseFloat( color[ 1 ] ) / 360; + const s = parseInt( color[ 2 ], 10 ) / 100; + const l = parseInt( color[ 3 ], 10 ) / 100; + + handleAlpha( color[ 5 ] ); + + return this.setHSL( h, s, l ); + + } + + break; + + } + + } else if ( m = /^\#([A-Fa-f0-9]+)$/.exec( style ) ) { + + // hex color + + const hex = m[ 1 ]; + const size = hex.length; + + if ( size === 3 ) { + + // #ff0 + this.r = parseInt( hex.charAt( 0 ) + hex.charAt( 0 ), 16 ) / 255; + this.g = parseInt( hex.charAt( 1 ) + hex.charAt( 1 ), 16 ) / 255; + this.b = parseInt( hex.charAt( 2 ) + hex.charAt( 2 ), 16 ) / 255; + + return this; + + } else if ( size === 6 ) { + + // #ff0000 + this.r = parseInt( hex.charAt( 0 ) + hex.charAt( 1 ), 16 ) / 255; + this.g = parseInt( hex.charAt( 2 ) + hex.charAt( 3 ), 16 ) / 255; + this.b = parseInt( hex.charAt( 4 ) + hex.charAt( 5 ), 16 ) / 255; + + return this; + + } + + } + + if ( style && style.length > 0 ) { + + return this.setColorName( style ); + + } + + return this; + + } + + setColorName( style ) { + + // color keywords + const hex = _colorKeywords[ style ]; + + if ( hex !== undefined ) { + + // red + this.setHex( hex ); + + } else { + + // unknown color + console.warn( 'THREE.Color: Unknown color ' + style ); + + } + + return this; + + } + + clone() { + + return new this.constructor( this.r, this.g, this.b ); + + } + + copy( color ) { + + this.r = color.r; + this.g = color.g; + this.b = color.b; + + return this; + + } + + copyGammaToLinear( color, gammaFactor ) { + + if ( gammaFactor === undefined ) gammaFactor = 2.0; + + this.r = Math.pow( color.r, gammaFactor ); + this.g = Math.pow( color.g, gammaFactor ); + this.b = Math.pow( color.b, gammaFactor ); + + return this; + + } + + copyLinearToGamma( color, gammaFactor ) { + + if ( gammaFactor === undefined ) gammaFactor = 2.0; + + const safeInverse = ( gammaFactor > 0 ) ? ( 1.0 / gammaFactor ) : 1.0; + + this.r = Math.pow( color.r, safeInverse ); + this.g = Math.pow( color.g, safeInverse ); + this.b = Math.pow( color.b, safeInverse ); + + return this; + + } + + convertGammaToLinear( gammaFactor ) { + + this.copyGammaToLinear( this, gammaFactor ); + + return this; + + } + + convertLinearToGamma( gammaFactor ) { + + this.copyLinearToGamma( this, gammaFactor ); + + return this; + + } + + copySRGBToLinear( color ) { + + this.r = SRGBToLinear( color.r ); + this.g = SRGBToLinear( color.g ); + this.b = SRGBToLinear( color.b ); + + return this; + + } + + copyLinearToSRGB( color ) { + + this.r = LinearToSRGB( color.r ); + this.g = LinearToSRGB( color.g ); + this.b = LinearToSRGB( color.b ); + + return this; + + } + + convertSRGBToLinear() { + + this.copySRGBToLinear( this ); + + return this; + + } + + convertLinearToSRGB() { + + this.copyLinearToSRGB( this ); + + return this; + + } + + getHex() { + + return ( this.r * 255 ) << 16 ^ ( this.g * 255 ) << 8 ^ ( this.b * 255 ) << 0; + + } + + getHexString() { + + return ( '000000' + this.getHex().toString( 16 ) ).slice( - 6 ); + + } + + getHSL( target ) { + + // h,s,l ranges are in 0.0 - 1.0 + + if ( target === undefined ) { + + console.warn( 'THREE.Color: .getHSL() target is now required' ); + target = { h: 0, s: 0, l: 0 }; + + } + + const r = this.r, g = this.g, b = this.b; + + const max = Math.max( r, g, b ); + const min = Math.min( r, g, b ); + + let hue, saturation; + const lightness = ( min + max ) / 2.0; + + if ( min === max ) { + + hue = 0; + saturation = 0; + + } else { + + const delta = max - min; + + saturation = lightness <= 0.5 ? delta / ( max + min ) : delta / ( 2 - max - min ); + + switch ( max ) { + + case r: hue = ( g - b ) / delta + ( g < b ? 6 : 0 ); break; + case g: hue = ( b - r ) / delta + 2; break; + case b: hue = ( r - g ) / delta + 4; break; + + } + + hue /= 6; + + } + + target.h = hue; + target.s = saturation; + target.l = lightness; + + return target; + + } + + getStyle() { + + return 'rgb(' + ( ( this.r * 255 ) | 0 ) + ',' + ( ( this.g * 255 ) | 0 ) + ',' + ( ( this.b * 255 ) | 0 ) + ')'; + + } + + offsetHSL( h, s, l ) { + + this.getHSL( _hslA ); + + _hslA.h += h; _hslA.s += s; _hslA.l += l; + + this.setHSL( _hslA.h, _hslA.s, _hslA.l ); + + return this; + + } + + add( color ) { + + this.r += color.r; + this.g += color.g; + this.b += color.b; + + return this; + + } + + addColors( color1, color2 ) { + + this.r = color1.r + color2.r; + this.g = color1.g + color2.g; + this.b = color1.b + color2.b; + + return this; + + } + + addScalar( s ) { + + this.r += s; + this.g += s; + this.b += s; + + return this; + + } + + sub( color ) { + + this.r = Math.max( 0, this.r - color.r ); + this.g = Math.max( 0, this.g - color.g ); + this.b = Math.max( 0, this.b - color.b ); + + return this; + + } + + multiply( color ) { + + this.r *= color.r; + this.g *= color.g; + this.b *= color.b; + + return this; + + } + + multiplyScalar( s ) { + + this.r *= s; + this.g *= s; + this.b *= s; + + return this; + + } + + lerp( color, alpha ) { + + this.r += ( color.r - this.r ) * alpha; + this.g += ( color.g - this.g ) * alpha; + this.b += ( color.b - this.b ) * alpha; + + return this; + + } + + lerpHSL( color, alpha ) { + + this.getHSL( _hslA ); + color.getHSL( _hslB ); + + const h = MathUtils.lerp( _hslA.h, _hslB.h, alpha ); + const s = MathUtils.lerp( _hslA.s, _hslB.s, alpha ); + const l = MathUtils.lerp( _hslA.l, _hslB.l, alpha ); + + this.setHSL( h, s, l ); + + return this; + + } + + equals( c ) { + + return ( c.r === this.r ) && ( c.g === this.g ) && ( c.b === this.b ); + + } + + fromArray( array, offset ) { + + if ( offset === undefined ) offset = 0; + + this.r = array[ offset ]; + this.g = array[ offset + 1 ]; + this.b = array[ offset + 2 ]; + + return this; + + } + + toArray( array, offset ) { + + if ( array === undefined ) array = []; + if ( offset === undefined ) offset = 0; + + array[ offset ] = this.r; + array[ offset + 1 ] = this.g; + array[ offset + 2 ] = this.b; + + return array; + + } + + fromBufferAttribute( attribute, index ) { + + this.r = attribute.getX( index ); + this.g = attribute.getY( index ); + this.b = attribute.getZ( index ); + + if ( attribute.normalized === true ) { + + // assuming Uint8Array + + this.r /= 255; + this.g /= 255; + this.b /= 255; + + } + + return this; + + } + + toJSON() { + + return this.getHex(); + + } + +} + +Color.NAMES = _colorKeywords; +Color.prototype.r = 1; +Color.prototype.g = 1; +Color.prototype.b = 1; + +class Face3 { + + constructor( a, b, c, normal, color, materialIndex ) { + + this.a = a; + this.b = b; + this.c = c; + + this.normal = ( normal && normal.isVector3 ) ? normal : new Vector3(); + this.vertexNormals = Array.isArray( normal ) ? normal : []; + + this.color = ( color && color.isColor ) ? color : new Color(); + this.vertexColors = Array.isArray( color ) ? color : []; + + this.materialIndex = materialIndex !== undefined ? materialIndex : 0; + + } + + clone() { + + return new this.constructor().copy( this ); + + } + + copy( source ) { + + this.a = source.a; + this.b = source.b; + this.c = source.c; + + this.normal.copy( source.normal ); + this.color.copy( source.color ); + + this.materialIndex = source.materialIndex; + + for ( let i = 0, il = source.vertexNormals.length; i < il; i ++ ) { + + this.vertexNormals[ i ] = source.vertexNormals[ i ].clone(); + + } + + for ( let i = 0, il = source.vertexColors.length; i < il; i ++ ) { + + this.vertexColors[ i ] = source.vertexColors[ i ].clone(); + + } + + return this; + + } + +} + +let materialId = 0; + +function Material() { + + Object.defineProperty( this, 'id', { value: materialId ++ } ); + + this.uuid = MathUtils.generateUUID(); + + this.name = ''; + this.type = 'Material'; + + this.fog = true; + + this.blending = NormalBlending; + this.side = FrontSide; + this.flatShading = false; + this.vertexColors = false; + + this.opacity = 1; + this.transparent = false; + + this.blendSrc = SrcAlphaFactor; + this.blendDst = OneMinusSrcAlphaFactor; + this.blendEquation = AddEquation; + this.blendSrcAlpha = null; + this.blendDstAlpha = null; + this.blendEquationAlpha = null; + + this.depthFunc = LessEqualDepth; + this.depthTest = true; + this.depthWrite = true; + + this.stencilWriteMask = 0xff; + this.stencilFunc = AlwaysStencilFunc; + this.stencilRef = 0; + this.stencilFuncMask = 0xff; + this.stencilFail = KeepStencilOp; + this.stencilZFail = KeepStencilOp; + this.stencilZPass = KeepStencilOp; + this.stencilWrite = false; + + this.clippingPlanes = null; + this.clipIntersection = false; + this.clipShadows = false; + + this.shadowSide = null; + + this.colorWrite = true; + + this.precision = null; // override the renderer's default precision for this material + + this.polygonOffset = false; + this.polygonOffsetFactor = 0; + this.polygonOffsetUnits = 0; + + this.dithering = false; + + this.alphaTest = 0; + this.premultipliedAlpha = false; + + this.visible = true; + + this.toneMapped = true; + + this.userData = {}; + + this.version = 0; + +} + +Material.prototype = Object.assign( Object.create( EventDispatcher.prototype ), { + + constructor: Material, + + isMaterial: true, + + onBeforeCompile: function ( /* shaderobject, renderer */ ) {}, + + customProgramCacheKey: function () { + + return this.onBeforeCompile.toString(); + + }, + + setValues: function ( values ) { + + if ( values === undefined ) return; + + for ( const key in values ) { + + const newValue = values[ key ]; + + if ( newValue === undefined ) { + + console.warn( "THREE.Material: '" + key + "' parameter is undefined." ); + continue; + + } + + // for backward compatability if shading is set in the constructor + if ( key === 'shading' ) { + + console.warn( 'THREE.' + this.type + ': .shading has been removed. Use the boolean .flatShading instead.' ); + this.flatShading = ( newValue === FlatShading ) ? true : false; + continue; + + } + + const currentValue = this[ key ]; + + if ( currentValue === undefined ) { + + console.warn( "THREE." + this.type + ": '" + key + "' is not a property of this material." ); + continue; + + } + + if ( currentValue && currentValue.isColor ) { + + currentValue.set( newValue ); + + } else if ( ( currentValue && currentValue.isVector3 ) && ( newValue && newValue.isVector3 ) ) { + + currentValue.copy( newValue ); + + } else { + + this[ key ] = newValue; + + } + + } + + }, + + toJSON: function ( meta ) { + + const isRoot = ( meta === undefined || typeof meta === 'string' ); + + if ( isRoot ) { + + meta = { + textures: {}, + images: {} + }; + + } + + const data = { + metadata: { + version: 4.5, + type: 'Material', + generator: 'Material.toJSON' + } + }; + + // standard Material serialization + data.uuid = this.uuid; + data.type = this.type; + + if ( this.name !== '' ) data.name = this.name; + + if ( this.color && this.color.isColor ) data.color = this.color.getHex(); + + if ( this.roughness !== undefined ) data.roughness = this.roughness; + if ( this.metalness !== undefined ) data.metalness = this.metalness; + + if ( this.sheen && this.sheen.isColor ) data.sheen = this.sheen.getHex(); + if ( this.emissive && this.emissive.isColor ) data.emissive = this.emissive.getHex(); + if ( this.emissiveIntensity && this.emissiveIntensity !== 1 ) data.emissiveIntensity = this.emissiveIntensity; + + if ( this.specular && this.specular.isColor ) data.specular = this.specular.getHex(); + if ( this.shininess !== undefined ) data.shininess = this.shininess; + if ( this.clearcoat !== undefined ) data.clearcoat = this.clearcoat; + if ( this.clearcoatRoughness !== undefined ) data.clearcoatRoughness = this.clearcoatRoughness; + + if ( this.clearcoatMap && this.clearcoatMap.isTexture ) { + + data.clearcoatMap = this.clearcoatMap.toJSON( meta ).uuid; + + } + + if ( this.clearcoatRoughnessMap && this.clearcoatRoughnessMap.isTexture ) { + + data.clearcoatRoughnessMap = this.clearcoatRoughnessMap.toJSON( meta ).uuid; + + } + + if ( this.clearcoatNormalMap && this.clearcoatNormalMap.isTexture ) { + + data.clearcoatNormalMap = this.clearcoatNormalMap.toJSON( meta ).uuid; + data.clearcoatNormalScale = this.clearcoatNormalScale.toArray(); + + } + + if ( this.map && this.map.isTexture ) data.map = this.map.toJSON( meta ).uuid; + if ( this.matcap && this.matcap.isTexture ) data.matcap = this.matcap.toJSON( meta ).uuid; + if ( this.alphaMap && this.alphaMap.isTexture ) data.alphaMap = this.alphaMap.toJSON( meta ).uuid; + if ( this.lightMap && this.lightMap.isTexture ) data.lightMap = this.lightMap.toJSON( meta ).uuid; + + if ( this.aoMap && this.aoMap.isTexture ) { + + data.aoMap = this.aoMap.toJSON( meta ).uuid; + data.aoMapIntensity = this.aoMapIntensity; + + } + + if ( this.bumpMap && this.bumpMap.isTexture ) { + + data.bumpMap = this.bumpMap.toJSON( meta ).uuid; + data.bumpScale = this.bumpScale; + + } + + if ( this.normalMap && this.normalMap.isTexture ) { + + data.normalMap = this.normalMap.toJSON( meta ).uuid; + data.normalMapType = this.normalMapType; + data.normalScale = this.normalScale.toArray(); + + } + + if ( this.displacementMap && this.displacementMap.isTexture ) { + + data.displacementMap = this.displacementMap.toJSON( meta ).uuid; + data.displacementScale = this.displacementScale; + data.displacementBias = this.displacementBias; + + } + + if ( this.roughnessMap && this.roughnessMap.isTexture ) data.roughnessMap = this.roughnessMap.toJSON( meta ).uuid; + if ( this.metalnessMap && this.metalnessMap.isTexture ) data.metalnessMap = this.metalnessMap.toJSON( meta ).uuid; + + if ( this.emissiveMap && this.emissiveMap.isTexture ) data.emissiveMap = this.emissiveMap.toJSON( meta ).uuid; + if ( this.specularMap && this.specularMap.isTexture ) data.specularMap = this.specularMap.toJSON( meta ).uuid; + + if ( this.envMap && this.envMap.isTexture ) { + + data.envMap = this.envMap.toJSON( meta ).uuid; + data.reflectivity = this.reflectivity; // Scale behind envMap + data.refractionRatio = this.refractionRatio; + + if ( this.combine !== undefined ) data.combine = this.combine; + if ( this.envMapIntensity !== undefined ) data.envMapIntensity = this.envMapIntensity; + + } + + if ( this.gradientMap && this.gradientMap.isTexture ) { + + data.gradientMap = this.gradientMap.toJSON( meta ).uuid; + + } + + if ( this.size !== undefined ) data.size = this.size; + if ( this.sizeAttenuation !== undefined ) data.sizeAttenuation = this.sizeAttenuation; + + if ( this.blending !== NormalBlending ) data.blending = this.blending; + if ( this.flatShading === true ) data.flatShading = this.flatShading; + if ( this.side !== FrontSide ) data.side = this.side; + if ( this.vertexColors ) data.vertexColors = true; + + if ( this.opacity < 1 ) data.opacity = this.opacity; + if ( this.transparent === true ) data.transparent = this.transparent; + + data.depthFunc = this.depthFunc; + data.depthTest = this.depthTest; + data.depthWrite = this.depthWrite; + + data.stencilWrite = this.stencilWrite; + data.stencilWriteMask = this.stencilWriteMask; + data.stencilFunc = this.stencilFunc; + data.stencilRef = this.stencilRef; + data.stencilFuncMask = this.stencilFuncMask; + data.stencilFail = this.stencilFail; + data.stencilZFail = this.stencilZFail; + data.stencilZPass = this.stencilZPass; + + // rotation (SpriteMaterial) + if ( this.rotation && this.rotation !== 0 ) data.rotation = this.rotation; + + if ( this.polygonOffset === true ) data.polygonOffset = true; + if ( this.polygonOffsetFactor !== 0 ) data.polygonOffsetFactor = this.polygonOffsetFactor; + if ( this.polygonOffsetUnits !== 0 ) data.polygonOffsetUnits = this.polygonOffsetUnits; + + if ( this.linewidth && this.linewidth !== 1 ) data.linewidth = this.linewidth; + if ( this.dashSize !== undefined ) data.dashSize = this.dashSize; + if ( this.gapSize !== undefined ) data.gapSize = this.gapSize; + if ( this.scale !== undefined ) data.scale = this.scale; + + if ( this.dithering === true ) data.dithering = true; + + if ( this.alphaTest > 0 ) data.alphaTest = this.alphaTest; + if ( this.premultipliedAlpha === true ) data.premultipliedAlpha = this.premultipliedAlpha; + + if ( this.wireframe === true ) data.wireframe = this.wireframe; + if ( this.wireframeLinewidth > 1 ) data.wireframeLinewidth = this.wireframeLinewidth; + if ( this.wireframeLinecap !== 'round' ) data.wireframeLinecap = this.wireframeLinecap; + if ( this.wireframeLinejoin !== 'round' ) data.wireframeLinejoin = this.wireframeLinejoin; + + if ( this.morphTargets === true ) data.morphTargets = true; + if ( this.morphNormals === true ) data.morphNormals = true; + if ( this.skinning === true ) data.skinning = true; + + if ( this.visible === false ) data.visible = false; + + if ( this.toneMapped === false ) data.toneMapped = false; + + if ( JSON.stringify( this.userData ) !== '{}' ) data.userData = this.userData; + + // TODO: Copied from Object3D.toJSON + + function extractFromCache( cache ) { + + const values = []; + + for ( const key in cache ) { + + const data = cache[ key ]; + delete data.metadata; + values.push( data ); + + } + + return values; + + } + + if ( isRoot ) { + + const textures = extractFromCache( meta.textures ); + const images = extractFromCache( meta.images ); + + if ( textures.length > 0 ) data.textures = textures; + if ( images.length > 0 ) data.images = images; + + } + + return data; + + }, + + clone: function () { + + return new this.constructor().copy( this ); + + }, + + copy: function ( source ) { + + this.name = source.name; + + this.fog = source.fog; + + this.blending = source.blending; + this.side = source.side; + this.flatShading = source.flatShading; + this.vertexColors = source.vertexColors; + + this.opacity = source.opacity; + this.transparent = source.transparent; + + this.blendSrc = source.blendSrc; + this.blendDst = source.blendDst; + this.blendEquation = source.blendEquation; + this.blendSrcAlpha = source.blendSrcAlpha; + this.blendDstAlpha = source.blendDstAlpha; + this.blendEquationAlpha = source.blendEquationAlpha; + + this.depthFunc = source.depthFunc; + this.depthTest = source.depthTest; + this.depthWrite = source.depthWrite; + + this.stencilWriteMask = source.stencilWriteMask; + this.stencilFunc = source.stencilFunc; + this.stencilRef = source.stencilRef; + this.stencilFuncMask = source.stencilFuncMask; + this.stencilFail = source.stencilFail; + this.stencilZFail = source.stencilZFail; + this.stencilZPass = source.stencilZPass; + this.stencilWrite = source.stencilWrite; + + const srcPlanes = source.clippingPlanes; + let dstPlanes = null; + + if ( srcPlanes !== null ) { + + const n = srcPlanes.length; + dstPlanes = new Array( n ); + + for ( let i = 0; i !== n; ++ i ) { + + dstPlanes[ i ] = srcPlanes[ i ].clone(); + + } + + } + + this.clippingPlanes = dstPlanes; + this.clipIntersection = source.clipIntersection; + this.clipShadows = source.clipShadows; + + this.shadowSide = source.shadowSide; + + this.colorWrite = source.colorWrite; + + this.precision = source.precision; + + this.polygonOffset = source.polygonOffset; + this.polygonOffsetFactor = source.polygonOffsetFactor; + this.polygonOffsetUnits = source.polygonOffsetUnits; + + this.dithering = source.dithering; + + this.alphaTest = source.alphaTest; + this.premultipliedAlpha = source.premultipliedAlpha; + + this.visible = source.visible; + + this.toneMapped = source.toneMapped; + + this.userData = JSON.parse( JSON.stringify( source.userData ) ); + + return this; + + }, + + dispose: function () { + + this.dispatchEvent( { type: 'dispose' } ); + + } + +} ); + +Object.defineProperty( Material.prototype, 'needsUpdate', { + + set: function ( value ) { + + if ( value === true ) this.version ++; + + } + +} ); + +/** + * parameters = { + * color: , + * opacity: , + * map: new THREE.Texture( ), + * + * lightMap: new THREE.Texture( ), + * lightMapIntensity: + * + * aoMap: new THREE.Texture( ), + * aoMapIntensity: + * + * specularMap: new THREE.Texture( ), + * + * alphaMap: new THREE.Texture( ), + * + * envMap: new THREE.CubeTexture( [posx, negx, posy, negy, posz, negz] ), + * combine: THREE.Multiply, + * reflectivity: , + * refractionRatio: , + * + * depthTest: , + * depthWrite: , + * + * wireframe: , + * wireframeLinewidth: , + * + * skinning: , + * morphTargets: + * } + */ + +function MeshBasicMaterial( parameters ) { + + Material.call( this ); + + this.type = 'MeshBasicMaterial'; + + this.color = new Color( 0xffffff ); // emissive + + this.map = null; + + this.lightMap = null; + this.lightMapIntensity = 1.0; + + this.aoMap = null; + this.aoMapIntensity = 1.0; + + this.specularMap = null; + + this.alphaMap = null; + + this.envMap = null; + this.combine = MultiplyOperation; + this.reflectivity = 1; + this.refractionRatio = 0.98; + + this.wireframe = false; + this.wireframeLinewidth = 1; + this.wireframeLinecap = 'round'; + this.wireframeLinejoin = 'round'; + + this.skinning = false; + this.morphTargets = false; + + this.setValues( parameters ); + +} + +MeshBasicMaterial.prototype = Object.create( Material.prototype ); +MeshBasicMaterial.prototype.constructor = MeshBasicMaterial; + +MeshBasicMaterial.prototype.isMeshBasicMaterial = true; + +MeshBasicMaterial.prototype.copy = function ( source ) { + + Material.prototype.copy.call( this, source ); + + this.color.copy( source.color ); + + this.map = source.map; + + this.lightMap = source.lightMap; + this.lightMapIntensity = source.lightMapIntensity; + + this.aoMap = source.aoMap; + this.aoMapIntensity = source.aoMapIntensity; + + this.specularMap = source.specularMap; + + this.alphaMap = source.alphaMap; + + this.envMap = source.envMap; + this.combine = source.combine; + this.reflectivity = source.reflectivity; + this.refractionRatio = source.refractionRatio; + + this.wireframe = source.wireframe; + this.wireframeLinewidth = source.wireframeLinewidth; + this.wireframeLinecap = source.wireframeLinecap; + this.wireframeLinejoin = source.wireframeLinejoin; + + this.skinning = source.skinning; + this.morphTargets = source.morphTargets; + + return this; + +}; + +const _vector$3 = new Vector3(); +const _vector2$1 = new Vector2(); + +function BufferAttribute( array, itemSize, normalized ) { + + if ( Array.isArray( array ) ) { + + throw new TypeError( 'THREE.BufferAttribute: array should be a Typed Array.' ); + + } + + this.name = ''; + + this.array = array; + this.itemSize = itemSize; + this.count = array !== undefined ? array.length / itemSize : 0; + this.normalized = normalized === true; + + this.usage = StaticDrawUsage; + this.updateRange = { offset: 0, count: - 1 }; + + this.version = 0; + +} + +Object.defineProperty( BufferAttribute.prototype, 'needsUpdate', { + + set: function ( value ) { + + if ( value === true ) this.version ++; + + } + +} ); + +Object.assign( BufferAttribute.prototype, { + + isBufferAttribute: true, + + onUploadCallback: function () {}, + + setUsage: function ( value ) { + + this.usage = value; + + return this; + + }, + + copy: function ( source ) { + + this.name = source.name; + this.array = new source.array.constructor( source.array ); + this.itemSize = source.itemSize; + this.count = source.count; + this.normalized = source.normalized; + + this.usage = source.usage; + + return this; + + }, + + copyAt: function ( index1, attribute, index2 ) { + + index1 *= this.itemSize; + index2 *= attribute.itemSize; + + for ( let i = 0, l = this.itemSize; i < l; i ++ ) { + + this.array[ index1 + i ] = attribute.array[ index2 + i ]; + + } + + return this; + + }, + + copyArray: function ( array ) { + + this.array.set( array ); + + return this; + + }, + + copyColorsArray: function ( colors ) { + + const array = this.array; + let offset = 0; + + for ( let i = 0, l = colors.length; i < l; i ++ ) { + + let color = colors[ i ]; + + if ( color === undefined ) { + + console.warn( 'THREE.BufferAttribute.copyColorsArray(): color is undefined', i ); + color = new Color(); + + } + + array[ offset ++ ] = color.r; + array[ offset ++ ] = color.g; + array[ offset ++ ] = color.b; + + } + + return this; + + }, + + copyVector2sArray: function ( vectors ) { + + const array = this.array; + let offset = 0; + + for ( let i = 0, l = vectors.length; i < l; i ++ ) { + + let vector = vectors[ i ]; + + if ( vector === undefined ) { + + console.warn( 'THREE.BufferAttribute.copyVector2sArray(): vector is undefined', i ); + vector = new Vector2(); + + } + + array[ offset ++ ] = vector.x; + array[ offset ++ ] = vector.y; + + } + + return this; + + }, + + copyVector3sArray: function ( vectors ) { + + const array = this.array; + let offset = 0; + + for ( let i = 0, l = vectors.length; i < l; i ++ ) { + + let vector = vectors[ i ]; + + if ( vector === undefined ) { + + console.warn( 'THREE.BufferAttribute.copyVector3sArray(): vector is undefined', i ); + vector = new Vector3(); + + } + + array[ offset ++ ] = vector.x; + array[ offset ++ ] = vector.y; + array[ offset ++ ] = vector.z; + + } + + return this; + + }, + + copyVector4sArray: function ( vectors ) { + + const array = this.array; + let offset = 0; + + for ( let i = 0, l = vectors.length; i < l; i ++ ) { + + let vector = vectors[ i ]; + + if ( vector === undefined ) { + + console.warn( 'THREE.BufferAttribute.copyVector4sArray(): vector is undefined', i ); + vector = new Vector4(); + + } + + array[ offset ++ ] = vector.x; + array[ offset ++ ] = vector.y; + array[ offset ++ ] = vector.z; + array[ offset ++ ] = vector.w; + + } + + return this; + + }, + + applyMatrix3: function ( m ) { + + if ( this.itemSize === 2 ) { + + for ( let i = 0, l = this.count; i < l; i ++ ) { + + _vector2$1.fromBufferAttribute( this, i ); + _vector2$1.applyMatrix3( m ); + + this.setXY( i, _vector2$1.x, _vector2$1.y ); + + } + + } else if ( this.itemSize === 3 ) { + + for ( let i = 0, l = this.count; i < l; i ++ ) { + + _vector$3.fromBufferAttribute( this, i ); + _vector$3.applyMatrix3( m ); + + this.setXYZ( i, _vector$3.x, _vector$3.y, _vector$3.z ); + + } + + } + + return this; + + }, + + applyMatrix4: function ( m ) { + + for ( let i = 0, l = this.count; i < l; i ++ ) { + + _vector$3.x = this.getX( i ); + _vector$3.y = this.getY( i ); + _vector$3.z = this.getZ( i ); + + _vector$3.applyMatrix4( m ); + + this.setXYZ( i, _vector$3.x, _vector$3.y, _vector$3.z ); + + } + + return this; + + }, + + applyNormalMatrix: function ( m ) { + + for ( let i = 0, l = this.count; i < l; i ++ ) { + + _vector$3.x = this.getX( i ); + _vector$3.y = this.getY( i ); + _vector$3.z = this.getZ( i ); + + _vector$3.applyNormalMatrix( m ); + + this.setXYZ( i, _vector$3.x, _vector$3.y, _vector$3.z ); + + } + + return this; + + }, + + transformDirection: function ( m ) { + + for ( let i = 0, l = this.count; i < l; i ++ ) { + + _vector$3.x = this.getX( i ); + _vector$3.y = this.getY( i ); + _vector$3.z = this.getZ( i ); + + _vector$3.transformDirection( m ); + + this.setXYZ( i, _vector$3.x, _vector$3.y, _vector$3.z ); + + } + + return this; + + }, + + set: function ( value, offset ) { + + if ( offset === undefined ) offset = 0; + + this.array.set( value, offset ); + + return this; + + }, + + getX: function ( index ) { + + return this.array[ index * this.itemSize ]; + + }, + + setX: function ( index, x ) { + + this.array[ index * this.itemSize ] = x; + + return this; + + }, + + getY: function ( index ) { + + return this.array[ index * this.itemSize + 1 ]; + + }, + + setY: function ( index, y ) { + + this.array[ index * this.itemSize + 1 ] = y; + + return this; + + }, + + getZ: function ( index ) { + + return this.array[ index * this.itemSize + 2 ]; + + }, + + setZ: function ( index, z ) { + + this.array[ index * this.itemSize + 2 ] = z; + + return this; + + }, + + getW: function ( index ) { + + return this.array[ index * this.itemSize + 3 ]; + + }, + + setW: function ( index, w ) { + + this.array[ index * this.itemSize + 3 ] = w; + + return this; + + }, + + setXY: function ( index, x, y ) { + + index *= this.itemSize; + + this.array[ index + 0 ] = x; + this.array[ index + 1 ] = y; + + return this; + + }, + + setXYZ: function ( index, x, y, z ) { + + index *= this.itemSize; + + this.array[ index + 0 ] = x; + this.array[ index + 1 ] = y; + this.array[ index + 2 ] = z; + + return this; + + }, + + setXYZW: function ( index, x, y, z, w ) { + + index *= this.itemSize; + + this.array[ index + 0 ] = x; + this.array[ index + 1 ] = y; + this.array[ index + 2 ] = z; + this.array[ index + 3 ] = w; + + return this; + + }, + + onUpload: function ( callback ) { + + this.onUploadCallback = callback; + + return this; + + }, + + clone: function () { + + return new this.constructor( this.array, this.itemSize ).copy( this ); + + }, + + toJSON: function () { + + return { + itemSize: this.itemSize, + type: this.array.constructor.name, + array: Array.prototype.slice.call( this.array ), + normalized: this.normalized + }; + + } + +} ); + +// + +function Int8BufferAttribute( array, itemSize, normalized ) { + + BufferAttribute.call( this, new Int8Array( array ), itemSize, normalized ); + +} + +Int8BufferAttribute.prototype = Object.create( BufferAttribute.prototype ); +Int8BufferAttribute.prototype.constructor = Int8BufferAttribute; + + +function Uint8BufferAttribute( array, itemSize, normalized ) { + + BufferAttribute.call( this, new Uint8Array( array ), itemSize, normalized ); + +} + +Uint8BufferAttribute.prototype = Object.create( BufferAttribute.prototype ); +Uint8BufferAttribute.prototype.constructor = Uint8BufferAttribute; + + +function Uint8ClampedBufferAttribute( array, itemSize, normalized ) { + + BufferAttribute.call( this, new Uint8ClampedArray( array ), itemSize, normalized ); + +} + +Uint8ClampedBufferAttribute.prototype = Object.create( BufferAttribute.prototype ); +Uint8ClampedBufferAttribute.prototype.constructor = Uint8ClampedBufferAttribute; + + +function Int16BufferAttribute( array, itemSize, normalized ) { + + BufferAttribute.call( this, new Int16Array( array ), itemSize, normalized ); + +} + +Int16BufferAttribute.prototype = Object.create( BufferAttribute.prototype ); +Int16BufferAttribute.prototype.constructor = Int16BufferAttribute; + + +function Uint16BufferAttribute( array, itemSize, normalized ) { + + BufferAttribute.call( this, new Uint16Array( array ), itemSize, normalized ); + +} + +Uint16BufferAttribute.prototype = Object.create( BufferAttribute.prototype ); +Uint16BufferAttribute.prototype.constructor = Uint16BufferAttribute; + + +function Int32BufferAttribute( array, itemSize, normalized ) { + + BufferAttribute.call( this, new Int32Array( array ), itemSize, normalized ); + +} + +Int32BufferAttribute.prototype = Object.create( BufferAttribute.prototype ); +Int32BufferAttribute.prototype.constructor = Int32BufferAttribute; + + +function Uint32BufferAttribute( array, itemSize, normalized ) { + + BufferAttribute.call( this, new Uint32Array( array ), itemSize, normalized ); + +} + +Uint32BufferAttribute.prototype = Object.create( BufferAttribute.prototype ); +Uint32BufferAttribute.prototype.constructor = Uint32BufferAttribute; + + +function Float32BufferAttribute( array, itemSize, normalized ) { + + BufferAttribute.call( this, new Float32Array( array ), itemSize, normalized ); + +} + +Float32BufferAttribute.prototype = Object.create( BufferAttribute.prototype ); +Float32BufferAttribute.prototype.constructor = Float32BufferAttribute; + + +function Float64BufferAttribute( array, itemSize, normalized ) { + + BufferAttribute.call( this, new Float64Array( array ), itemSize, normalized ); + +} + +Float64BufferAttribute.prototype = Object.create( BufferAttribute.prototype ); +Float64BufferAttribute.prototype.constructor = Float64BufferAttribute; + +class DirectGeometry { + + constructor() { + + this.vertices = []; + this.normals = []; + this.colors = []; + this.uvs = []; + this.uvs2 = []; + + this.groups = []; + + this.morphTargets = {}; + + this.skinWeights = []; + this.skinIndices = []; + + // this.lineDistances = []; + + this.boundingBox = null; + this.boundingSphere = null; + + // update flags + + this.verticesNeedUpdate = false; + this.normalsNeedUpdate = false; + this.colorsNeedUpdate = false; + this.uvsNeedUpdate = false; + this.groupsNeedUpdate = false; + + } + + computeGroups( geometry ) { + + const groups = []; + + let group, i; + let materialIndex = undefined; + + const faces = geometry.faces; + + for ( i = 0; i < faces.length; i ++ ) { + + const face = faces[ i ]; + + // materials + + if ( face.materialIndex !== materialIndex ) { + + materialIndex = face.materialIndex; + + if ( group !== undefined ) { + + group.count = ( i * 3 ) - group.start; + groups.push( group ); + + } + + group = { + start: i * 3, + materialIndex: materialIndex + }; + + } + + } + + if ( group !== undefined ) { + + group.count = ( i * 3 ) - group.start; + groups.push( group ); + + } + + this.groups = groups; + + } + + fromGeometry( geometry ) { + + const faces = geometry.faces; + const vertices = geometry.vertices; + const faceVertexUvs = geometry.faceVertexUvs; + + const hasFaceVertexUv = faceVertexUvs[ 0 ] && faceVertexUvs[ 0 ].length > 0; + const hasFaceVertexUv2 = faceVertexUvs[ 1 ] && faceVertexUvs[ 1 ].length > 0; + + // morphs + + const morphTargets = geometry.morphTargets; + const morphTargetsLength = morphTargets.length; + + let morphTargetsPosition; + + if ( morphTargetsLength > 0 ) { + + morphTargetsPosition = []; + + for ( let i = 0; i < morphTargetsLength; i ++ ) { + + morphTargetsPosition[ i ] = { + name: morphTargets[ i ].name, + data: [] + }; + + } + + this.morphTargets.position = morphTargetsPosition; + + } + + const morphNormals = geometry.morphNormals; + const morphNormalsLength = morphNormals.length; + + let morphTargetsNormal; + + if ( morphNormalsLength > 0 ) { + + morphTargetsNormal = []; + + for ( let i = 0; i < morphNormalsLength; i ++ ) { + + morphTargetsNormal[ i ] = { + name: morphNormals[ i ].name, + data: [] + }; + + } + + this.morphTargets.normal = morphTargetsNormal; + + } + + // skins + + const skinIndices = geometry.skinIndices; + const skinWeights = geometry.skinWeights; + + const hasSkinIndices = skinIndices.length === vertices.length; + const hasSkinWeights = skinWeights.length === vertices.length; + + // + + if ( vertices.length > 0 && faces.length === 0 ) { + + console.error( 'THREE.DirectGeometry: Faceless geometries are not supported.' ); + + } + + for ( let i = 0; i < faces.length; i ++ ) { + + const face = faces[ i ]; + + this.vertices.push( vertices[ face.a ], vertices[ face.b ], vertices[ face.c ] ); + + const vertexNormals = face.vertexNormals; + + if ( vertexNormals.length === 3 ) { + + this.normals.push( vertexNormals[ 0 ], vertexNormals[ 1 ], vertexNormals[ 2 ] ); + + } else { + + const normal = face.normal; + + this.normals.push( normal, normal, normal ); + + } + + const vertexColors = face.vertexColors; + + if ( vertexColors.length === 3 ) { + + this.colors.push( vertexColors[ 0 ], vertexColors[ 1 ], vertexColors[ 2 ] ); + + } else { + + const color = face.color; + + this.colors.push( color, color, color ); + + } + + if ( hasFaceVertexUv === true ) { + + const vertexUvs = faceVertexUvs[ 0 ][ i ]; + + if ( vertexUvs !== undefined ) { + + this.uvs.push( vertexUvs[ 0 ], vertexUvs[ 1 ], vertexUvs[ 2 ] ); + + } else { + + console.warn( 'THREE.DirectGeometry.fromGeometry(): Undefined vertexUv ', i ); + + this.uvs.push( new Vector2(), new Vector2(), new Vector2() ); + + } + + } + + if ( hasFaceVertexUv2 === true ) { + + const vertexUvs = faceVertexUvs[ 1 ][ i ]; + + if ( vertexUvs !== undefined ) { + + this.uvs2.push( vertexUvs[ 0 ], vertexUvs[ 1 ], vertexUvs[ 2 ] ); + + } else { + + console.warn( 'THREE.DirectGeometry.fromGeometry(): Undefined vertexUv2 ', i ); + + this.uvs2.push( new Vector2(), new Vector2(), new Vector2() ); + + } + + } + + // morphs + + for ( let j = 0; j < morphTargetsLength; j ++ ) { + + const morphTarget = morphTargets[ j ].vertices; + + morphTargetsPosition[ j ].data.push( morphTarget[ face.a ], morphTarget[ face.b ], morphTarget[ face.c ] ); + + } + + for ( let j = 0; j < morphNormalsLength; j ++ ) { + + const morphNormal = morphNormals[ j ].vertexNormals[ i ]; + + morphTargetsNormal[ j ].data.push( morphNormal.a, morphNormal.b, morphNormal.c ); + + } + + // skins + + if ( hasSkinIndices ) { + + this.skinIndices.push( skinIndices[ face.a ], skinIndices[ face.b ], skinIndices[ face.c ] ); + + } + + if ( hasSkinWeights ) { + + this.skinWeights.push( skinWeights[ face.a ], skinWeights[ face.b ], skinWeights[ face.c ] ); + + } + + } + + this.computeGroups( geometry ); + + this.verticesNeedUpdate = geometry.verticesNeedUpdate; + this.normalsNeedUpdate = geometry.normalsNeedUpdate; + this.colorsNeedUpdate = geometry.colorsNeedUpdate; + this.uvsNeedUpdate = geometry.uvsNeedUpdate; + this.groupsNeedUpdate = geometry.groupsNeedUpdate; + + if ( geometry.boundingSphere !== null ) { + + this.boundingSphere = geometry.boundingSphere.clone(); + + } + + if ( geometry.boundingBox !== null ) { + + this.boundingBox = geometry.boundingBox.clone(); + + } + + return this; + + } + +} + +function arrayMax( array ) { + + if ( array.length === 0 ) return - Infinity; + + let max = array[ 0 ]; + + for ( let i = 1, l = array.length; i < l; ++ i ) { + + if ( array[ i ] > max ) max = array[ i ]; + + } + + return max; + +} + +let _bufferGeometryId = 1; // BufferGeometry uses odd numbers as Id + +const _m1$2 = new Matrix4(); +const _obj = new Object3D(); +const _offset = new Vector3(); +const _box$2 = new Box3(); +const _boxMorphTargets = new Box3(); +const _vector$4 = new Vector3(); + +function BufferGeometry() { + + Object.defineProperty( this, 'id', { value: _bufferGeometryId += 2 } ); + + this.uuid = MathUtils.generateUUID(); + + this.name = ''; + this.type = 'BufferGeometry'; + + this.index = null; + this.attributes = {}; + + this.morphAttributes = {}; + this.morphTargetsRelative = false; + + this.groups = []; + + this.boundingBox = null; + this.boundingSphere = null; + + this.drawRange = { start: 0, count: Infinity }; + + this.userData = {}; + +} + +BufferGeometry.prototype = Object.assign( Object.create( EventDispatcher.prototype ), { + + constructor: BufferGeometry, + + isBufferGeometry: true, + + getIndex: function () { + + return this.index; + + }, + + setIndex: function ( index ) { + + if ( Array.isArray( index ) ) { + + this.index = new ( arrayMax( index ) > 65535 ? Uint32BufferAttribute : Uint16BufferAttribute )( index, 1 ); + + } else { + + this.index = index; + + } + + return this; + + }, + + getAttribute: function ( name ) { + + return this.attributes[ name ]; + + }, + + setAttribute: function ( name, attribute ) { + + this.attributes[ name ] = attribute; + + return this; + + }, + + deleteAttribute: function ( name ) { + + delete this.attributes[ name ]; + + return this; + + }, + + addGroup: function ( start, count, materialIndex ) { + + this.groups.push( { + + start: start, + count: count, + materialIndex: materialIndex !== undefined ? materialIndex : 0 + + } ); + + }, + + clearGroups: function () { + + this.groups = []; + + }, + + setDrawRange: function ( start, count ) { + + this.drawRange.start = start; + this.drawRange.count = count; + + }, + + applyMatrix4: function ( matrix ) { + + const position = this.attributes.position; + + if ( position !== undefined ) { + + position.applyMatrix4( matrix ); + + position.needsUpdate = true; + + } + + const normal = this.attributes.normal; + + if ( normal !== undefined ) { + + const normalMatrix = new Matrix3().getNormalMatrix( matrix ); + + normal.applyNormalMatrix( normalMatrix ); + + normal.needsUpdate = true; + + } + + const tangent = this.attributes.tangent; + + if ( tangent !== undefined ) { + + tangent.transformDirection( matrix ); + + tangent.needsUpdate = true; + + } + + if ( this.boundingBox !== null ) { + + this.computeBoundingBox(); + + } + + if ( this.boundingSphere !== null ) { + + this.computeBoundingSphere(); + + } + + return this; + + }, + + rotateX: function ( angle ) { + + // rotate geometry around world x-axis + + _m1$2.makeRotationX( angle ); + + this.applyMatrix4( _m1$2 ); + + return this; + + }, + + rotateY: function ( angle ) { + + // rotate geometry around world y-axis + + _m1$2.makeRotationY( angle ); + + this.applyMatrix4( _m1$2 ); + + return this; + + }, + + rotateZ: function ( angle ) { + + // rotate geometry around world z-axis + + _m1$2.makeRotationZ( angle ); + + this.applyMatrix4( _m1$2 ); + + return this; + + }, + + translate: function ( x, y, z ) { + + // translate geometry + + _m1$2.makeTranslation( x, y, z ); + + this.applyMatrix4( _m1$2 ); + + return this; + + }, + + scale: function ( x, y, z ) { + + // scale geometry + + _m1$2.makeScale( x, y, z ); + + this.applyMatrix4( _m1$2 ); + + return this; + + }, + + lookAt: function ( vector ) { + + _obj.lookAt( vector ); + + _obj.updateMatrix(); + + this.applyMatrix4( _obj.matrix ); + + return this; + + }, + + center: function () { + + this.computeBoundingBox(); + + this.boundingBox.getCenter( _offset ).negate(); + + this.translate( _offset.x, _offset.y, _offset.z ); + + return this; + + }, + + setFromObject: function ( object ) { + + // console.log( 'THREE.BufferGeometry.setFromObject(). Converting', object, this ); + + const geometry = object.geometry; + + if ( object.isPoints || object.isLine ) { + + const positions = new Float32BufferAttribute( geometry.vertices.length * 3, 3 ); + const colors = new Float32BufferAttribute( geometry.colors.length * 3, 3 ); + + this.setAttribute( 'position', positions.copyVector3sArray( geometry.vertices ) ); + this.setAttribute( 'color', colors.copyColorsArray( geometry.colors ) ); + + if ( geometry.lineDistances && geometry.lineDistances.length === geometry.vertices.length ) { + + const lineDistances = new Float32BufferAttribute( geometry.lineDistances.length, 1 ); + + this.setAttribute( 'lineDistance', lineDistances.copyArray( geometry.lineDistances ) ); + + } + + if ( geometry.boundingSphere !== null ) { + + this.boundingSphere = geometry.boundingSphere.clone(); + + } + + if ( geometry.boundingBox !== null ) { + + this.boundingBox = geometry.boundingBox.clone(); + + } + + } else if ( object.isMesh ) { + + if ( geometry && geometry.isGeometry ) { + + this.fromGeometry( geometry ); + + } + + } + + return this; + + }, + + setFromPoints: function ( points ) { + + const position = []; + + for ( let i = 0, l = points.length; i < l; i ++ ) { + + const point = points[ i ]; + position.push( point.x, point.y, point.z || 0 ); + + } + + this.setAttribute( 'position', new Float32BufferAttribute( position, 3 ) ); + + return this; + + }, + + updateFromObject: function ( object ) { + + let geometry = object.geometry; + + if ( object.isMesh ) { + + let direct = geometry.__directGeometry; + + if ( geometry.elementsNeedUpdate === true ) { + + direct = undefined; + geometry.elementsNeedUpdate = false; + + } + + if ( direct === undefined ) { + + return this.fromGeometry( geometry ); + + } + + direct.verticesNeedUpdate = geometry.verticesNeedUpdate; + direct.normalsNeedUpdate = geometry.normalsNeedUpdate; + direct.colorsNeedUpdate = geometry.colorsNeedUpdate; + direct.uvsNeedUpdate = geometry.uvsNeedUpdate; + direct.groupsNeedUpdate = geometry.groupsNeedUpdate; + + geometry.verticesNeedUpdate = false; + geometry.normalsNeedUpdate = false; + geometry.colorsNeedUpdate = false; + geometry.uvsNeedUpdate = false; + geometry.groupsNeedUpdate = false; + + geometry = direct; + + } + + if ( geometry.verticesNeedUpdate === true ) { + + const attribute = this.attributes.position; + + if ( attribute !== undefined ) { + + attribute.copyVector3sArray( geometry.vertices ); + attribute.needsUpdate = true; + + } + + geometry.verticesNeedUpdate = false; + + } + + if ( geometry.normalsNeedUpdate === true ) { + + const attribute = this.attributes.normal; + + if ( attribute !== undefined ) { + + attribute.copyVector3sArray( geometry.normals ); + attribute.needsUpdate = true; + + } + + geometry.normalsNeedUpdate = false; + + } + + if ( geometry.colorsNeedUpdate === true ) { + + const attribute = this.attributes.color; + + if ( attribute !== undefined ) { + + attribute.copyColorsArray( geometry.colors ); + attribute.needsUpdate = true; + + } + + geometry.colorsNeedUpdate = false; + + } + + if ( geometry.uvsNeedUpdate ) { + + const attribute = this.attributes.uv; + + if ( attribute !== undefined ) { + + attribute.copyVector2sArray( geometry.uvs ); + attribute.needsUpdate = true; + + } + + geometry.uvsNeedUpdate = false; + + } + + if ( geometry.lineDistancesNeedUpdate ) { + + const attribute = this.attributes.lineDistance; + + if ( attribute !== undefined ) { + + attribute.copyArray( geometry.lineDistances ); + attribute.needsUpdate = true; + + } + + geometry.lineDistancesNeedUpdate = false; + + } + + if ( geometry.groupsNeedUpdate ) { + + geometry.computeGroups( object.geometry ); + this.groups = geometry.groups; + + geometry.groupsNeedUpdate = false; + + } + + return this; + + }, + + fromGeometry: function ( geometry ) { + + geometry.__directGeometry = new DirectGeometry().fromGeometry( geometry ); + + return this.fromDirectGeometry( geometry.__directGeometry ); + + }, + + fromDirectGeometry: function ( geometry ) { + + const positions = new Float32Array( geometry.vertices.length * 3 ); + this.setAttribute( 'position', new BufferAttribute( positions, 3 ).copyVector3sArray( geometry.vertices ) ); + + if ( geometry.normals.length > 0 ) { + + const normals = new Float32Array( geometry.normals.length * 3 ); + this.setAttribute( 'normal', new BufferAttribute( normals, 3 ).copyVector3sArray( geometry.normals ) ); + + } + + if ( geometry.colors.length > 0 ) { + + const colors = new Float32Array( geometry.colors.length * 3 ); + this.setAttribute( 'color', new BufferAttribute( colors, 3 ).copyColorsArray( geometry.colors ) ); + + } + + if ( geometry.uvs.length > 0 ) { + + const uvs = new Float32Array( geometry.uvs.length * 2 ); + this.setAttribute( 'uv', new BufferAttribute( uvs, 2 ).copyVector2sArray( geometry.uvs ) ); + + } + + if ( geometry.uvs2.length > 0 ) { + + const uvs2 = new Float32Array( geometry.uvs2.length * 2 ); + this.setAttribute( 'uv2', new BufferAttribute( uvs2, 2 ).copyVector2sArray( geometry.uvs2 ) ); + + } + + // groups + + this.groups = geometry.groups; + + // morphs + + for ( const name in geometry.morphTargets ) { + + const array = []; + const morphTargets = geometry.morphTargets[ name ]; + + for ( let i = 0, l = morphTargets.length; i < l; i ++ ) { + + const morphTarget = morphTargets[ i ]; + + const attribute = new Float32BufferAttribute( morphTarget.data.length * 3, 3 ); + attribute.name = morphTarget.name; + + array.push( attribute.copyVector3sArray( morphTarget.data ) ); + + } + + this.morphAttributes[ name ] = array; + + } + + // skinning + + if ( geometry.skinIndices.length > 0 ) { + + const skinIndices = new Float32BufferAttribute( geometry.skinIndices.length * 4, 4 ); + this.setAttribute( 'skinIndex', skinIndices.copyVector4sArray( geometry.skinIndices ) ); + + } + + if ( geometry.skinWeights.length > 0 ) { + + const skinWeights = new Float32BufferAttribute( geometry.skinWeights.length * 4, 4 ); + this.setAttribute( 'skinWeight', skinWeights.copyVector4sArray( geometry.skinWeights ) ); + + } + + // + + if ( geometry.boundingSphere !== null ) { + + this.boundingSphere = geometry.boundingSphere.clone(); + + } + + if ( geometry.boundingBox !== null ) { + + this.boundingBox = geometry.boundingBox.clone(); + + } + + return this; + + }, + + computeBoundingBox: function () { + + if ( this.boundingBox === null ) { + + this.boundingBox = new Box3(); + + } + + const position = this.attributes.position; + const morphAttributesPosition = this.morphAttributes.position; + + if ( position && position.isGLBufferAttribute ) { + + console.error( 'THREE.BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box. Alternatively set "mesh.frustumCulled" to "false".', this ); + + this.boundingBox.set( + new Vector3( - Infinity, - Infinity, - Infinity ), + new Vector3( + Infinity, + Infinity, + Infinity ) + ); + + return; + + } + + if ( position !== undefined ) { + + this.boundingBox.setFromBufferAttribute( position ); + + // process morph attributes if present + + if ( morphAttributesPosition ) { + + for ( let i = 0, il = morphAttributesPosition.length; i < il; i ++ ) { + + const morphAttribute = morphAttributesPosition[ i ]; + _box$2.setFromBufferAttribute( morphAttribute ); + + if ( this.morphTargetsRelative ) { + + _vector$4.addVectors( this.boundingBox.min, _box$2.min ); + this.boundingBox.expandByPoint( _vector$4 ); + + _vector$4.addVectors( this.boundingBox.max, _box$2.max ); + this.boundingBox.expandByPoint( _vector$4 ); + + } else { + + this.boundingBox.expandByPoint( _box$2.min ); + this.boundingBox.expandByPoint( _box$2.max ); + + } + + } + + } + + } else { + + this.boundingBox.makeEmpty(); + + } + + if ( isNaN( this.boundingBox.min.x ) || isNaN( this.boundingBox.min.y ) || isNaN( this.boundingBox.min.z ) ) { + + console.error( 'THREE.BufferGeometry.computeBoundingBox(): Computed min/max have NaN values. The "position" attribute is likely to have NaN values.', this ); + + } + + }, + + computeBoundingSphere: function () { + + if ( this.boundingSphere === null ) { + + this.boundingSphere = new Sphere(); + + } + + const position = this.attributes.position; + const morphAttributesPosition = this.morphAttributes.position; + + if ( position && position.isGLBufferAttribute ) { + + console.error( 'THREE.BufferGeometry.computeBoundingSphere(): GLBufferAttribute requires a manual bounding sphere. Alternatively set "mesh.frustumCulled" to "false".', this ); + + this.boundingSphere.set( new Vector3(), Infinity ); + + return; + + } + + if ( position ) { + + // first, find the center of the bounding sphere + + const center = this.boundingSphere.center; + + _box$2.setFromBufferAttribute( position ); + + // process morph attributes if present + + if ( morphAttributesPosition ) { + + for ( let i = 0, il = morphAttributesPosition.length; i < il; i ++ ) { + + const morphAttribute = morphAttributesPosition[ i ]; + _boxMorphTargets.setFromBufferAttribute( morphAttribute ); + + if ( this.morphTargetsRelative ) { + + _vector$4.addVectors( _box$2.min, _boxMorphTargets.min ); + _box$2.expandByPoint( _vector$4 ); + + _vector$4.addVectors( _box$2.max, _boxMorphTargets.max ); + _box$2.expandByPoint( _vector$4 ); + + } else { + + _box$2.expandByPoint( _boxMorphTargets.min ); + _box$2.expandByPoint( _boxMorphTargets.max ); + + } + + } + + } + + _box$2.getCenter( center ); + + // second, try to find a boundingSphere with a radius smaller than the + // boundingSphere of the boundingBox: sqrt(3) smaller in the best case + + let maxRadiusSq = 0; + + for ( let i = 0, il = position.count; i < il; i ++ ) { + + _vector$4.fromBufferAttribute( position, i ); + + maxRadiusSq = Math.max( maxRadiusSq, center.distanceToSquared( _vector$4 ) ); + + } + + // process morph attributes if present + + if ( morphAttributesPosition ) { + + for ( let i = 0, il = morphAttributesPosition.length; i < il; i ++ ) { + + const morphAttribute = morphAttributesPosition[ i ]; + const morphTargetsRelative = this.morphTargetsRelative; + + for ( let j = 0, jl = morphAttribute.count; j < jl; j ++ ) { + + _vector$4.fromBufferAttribute( morphAttribute, j ); + + if ( morphTargetsRelative ) { + + _offset.fromBufferAttribute( position, j ); + _vector$4.add( _offset ); + + } + + maxRadiusSq = Math.max( maxRadiusSq, center.distanceToSquared( _vector$4 ) ); + + } + + } + + } + + this.boundingSphere.radius = Math.sqrt( maxRadiusSq ); + + if ( isNaN( this.boundingSphere.radius ) ) { + + console.error( 'THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.', this ); + + } + + } + + }, + + computeFaceNormals: function () { + + // backwards compatibility + + }, + + computeVertexNormals: function () { + + const index = this.index; + const positionAttribute = this.getAttribute( 'position' ); + + if ( positionAttribute !== undefined ) { + + let normalAttribute = this.getAttribute( 'normal' ); + + if ( normalAttribute === undefined ) { + + normalAttribute = new BufferAttribute( new Float32Array( positionAttribute.count * 3 ), 3 ); + this.setAttribute( 'normal', normalAttribute ); + + } else { + + // reset existing normals to zero + + for ( let i = 0, il = normalAttribute.count; i < il; i ++ ) { + + normalAttribute.setXYZ( i, 0, 0, 0 ); + + } + + } + + const pA = new Vector3(), pB = new Vector3(), pC = new Vector3(); + const nA = new Vector3(), nB = new Vector3(), nC = new Vector3(); + const cb = new Vector3(), ab = new Vector3(); + + // indexed elements + + if ( index ) { + + for ( let i = 0, il = index.count; i < il; i += 3 ) { + + const vA = index.getX( i + 0 ); + const vB = index.getX( i + 1 ); + const vC = index.getX( i + 2 ); + + pA.fromBufferAttribute( positionAttribute, vA ); + pB.fromBufferAttribute( positionAttribute, vB ); + pC.fromBufferAttribute( positionAttribute, vC ); + + cb.subVectors( pC, pB ); + ab.subVectors( pA, pB ); + cb.cross( ab ); + + nA.fromBufferAttribute( normalAttribute, vA ); + nB.fromBufferAttribute( normalAttribute, vB ); + nC.fromBufferAttribute( normalAttribute, vC ); + + nA.add( cb ); + nB.add( cb ); + nC.add( cb ); + + normalAttribute.setXYZ( vA, nA.x, nA.y, nA.z ); + normalAttribute.setXYZ( vB, nB.x, nB.y, nB.z ); + normalAttribute.setXYZ( vC, nC.x, nC.y, nC.z ); + + } + + } else { + + // non-indexed elements (unconnected triangle soup) + + for ( let i = 0, il = positionAttribute.count; i < il; i += 3 ) { + + pA.fromBufferAttribute( positionAttribute, i + 0 ); + pB.fromBufferAttribute( positionAttribute, i + 1 ); + pC.fromBufferAttribute( positionAttribute, i + 2 ); + + cb.subVectors( pC, pB ); + ab.subVectors( pA, pB ); + cb.cross( ab ); + + normalAttribute.setXYZ( i + 0, cb.x, cb.y, cb.z ); + normalAttribute.setXYZ( i + 1, cb.x, cb.y, cb.z ); + normalAttribute.setXYZ( i + 2, cb.x, cb.y, cb.z ); + + } + + } + + this.normalizeNormals(); + + normalAttribute.needsUpdate = true; + + } + + }, + + merge: function ( geometry, offset ) { + + if ( ! ( geometry && geometry.isBufferGeometry ) ) { + + console.error( 'THREE.BufferGeometry.merge(): geometry not an instance of THREE.BufferGeometry.', geometry ); + return; + + } + + if ( offset === undefined ) { + + offset = 0; + + console.warn( + 'THREE.BufferGeometry.merge(): Overwriting original geometry, starting at offset=0. ' + + 'Use BufferGeometryUtils.mergeBufferGeometries() for lossless merge.' + ); + + } + + const attributes = this.attributes; + + for ( const key in attributes ) { + + if ( geometry.attributes[ key ] === undefined ) continue; + + const attribute1 = attributes[ key ]; + const attributeArray1 = attribute1.array; + + const attribute2 = geometry.attributes[ key ]; + const attributeArray2 = attribute2.array; + + const attributeOffset = attribute2.itemSize * offset; + const length = Math.min( attributeArray2.length, attributeArray1.length - attributeOffset ); + + for ( let i = 0, j = attributeOffset; i < length; i ++, j ++ ) { + + attributeArray1[ j ] = attributeArray2[ i ]; + + } + + } + + return this; + + }, + + normalizeNormals: function () { + + const normals = this.attributes.normal; + + for ( let i = 0, il = normals.count; i < il; i ++ ) { + + _vector$4.fromBufferAttribute( normals, i ); + + _vector$4.normalize(); + + normals.setXYZ( i, _vector$4.x, _vector$4.y, _vector$4.z ); + + } + + }, + + toNonIndexed: function () { + + function convertBufferAttribute( attribute, indices ) { + + const array = attribute.array; + const itemSize = attribute.itemSize; + const normalized = attribute.normalized; + + const array2 = new array.constructor( indices.length * itemSize ); + + let index = 0, index2 = 0; + + for ( let i = 0, l = indices.length; i < l; i ++ ) { + + index = indices[ i ] * itemSize; + + for ( let j = 0; j < itemSize; j ++ ) { + + array2[ index2 ++ ] = array[ index ++ ]; + + } + + } + + return new BufferAttribute( array2, itemSize, normalized ); + + } + + // + + if ( this.index === null ) { + + console.warn( 'THREE.BufferGeometry.toNonIndexed(): Geometry is already non-indexed.' ); + return this; + + } + + const geometry2 = new BufferGeometry(); + + const indices = this.index.array; + const attributes = this.attributes; + + // attributes + + for ( const name in attributes ) { + + const attribute = attributes[ name ]; + + const newAttribute = convertBufferAttribute( attribute, indices ); + + geometry2.setAttribute( name, newAttribute ); + + } + + // morph attributes + + const morphAttributes = this.morphAttributes; + + for ( const name in morphAttributes ) { + + const morphArray = []; + const morphAttribute = morphAttributes[ name ]; // morphAttribute: array of Float32BufferAttributes + + for ( let i = 0, il = morphAttribute.length; i < il; i ++ ) { + + const attribute = morphAttribute[ i ]; + + const newAttribute = convertBufferAttribute( attribute, indices ); + + morphArray.push( newAttribute ); + + } + + geometry2.morphAttributes[ name ] = morphArray; + + } + + geometry2.morphTargetsRelative = this.morphTargetsRelative; + + // groups + + const groups = this.groups; + + for ( let i = 0, l = groups.length; i < l; i ++ ) { + + const group = groups[ i ]; + geometry2.addGroup( group.start, group.count, group.materialIndex ); + + } + + return geometry2; + + }, + + toJSON: function () { + + const data = { + metadata: { + version: 4.5, + type: 'BufferGeometry', + generator: 'BufferGeometry.toJSON' + } + }; + + // standard BufferGeometry serialization + + data.uuid = this.uuid; + data.type = this.type; + if ( this.name !== '' ) data.name = this.name; + if ( Object.keys( this.userData ).length > 0 ) data.userData = this.userData; + + if ( this.parameters !== undefined ) { + + const parameters = this.parameters; + + for ( const key in parameters ) { + + if ( parameters[ key ] !== undefined ) data[ key ] = parameters[ key ]; + + } + + return data; + + } + + data.data = { attributes: {} }; + + const index = this.index; + + if ( index !== null ) { + + data.data.index = { + type: index.array.constructor.name, + array: Array.prototype.slice.call( index.array ) + }; + + } + + const attributes = this.attributes; + + for ( const key in attributes ) { + + const attribute = attributes[ key ]; + + const attributeData = attribute.toJSON( data.data ); + + if ( attribute.name !== '' ) attributeData.name = attribute.name; + + data.data.attributes[ key ] = attributeData; + + } + + const morphAttributes = {}; + let hasMorphAttributes = false; + + for ( const key in this.morphAttributes ) { + + const attributeArray = this.morphAttributes[ key ]; + + const array = []; + + for ( let i = 0, il = attributeArray.length; i < il; i ++ ) { + + const attribute = attributeArray[ i ]; + + const attributeData = attribute.toJSON( data.data ); + + if ( attribute.name !== '' ) attributeData.name = attribute.name; + + array.push( attributeData ); + + } + + if ( array.length > 0 ) { + + morphAttributes[ key ] = array; + + hasMorphAttributes = true; + + } + + } + + if ( hasMorphAttributes ) { + + data.data.morphAttributes = morphAttributes; + data.data.morphTargetsRelative = this.morphTargetsRelative; + + } + + const groups = this.groups; + + if ( groups.length > 0 ) { + + data.data.groups = JSON.parse( JSON.stringify( groups ) ); + + } + + const boundingSphere = this.boundingSphere; + + if ( boundingSphere !== null ) { + + data.data.boundingSphere = { + center: boundingSphere.center.toArray(), + radius: boundingSphere.radius + }; + + } + + return data; + + }, + + clone: function () { + + /* + // Handle primitives + + const parameters = this.parameters; + + if ( parameters !== undefined ) { + + const values = []; + + for ( const key in parameters ) { + + values.push( parameters[ key ] ); + + } + + const geometry = Object.create( this.constructor.prototype ); + this.constructor.apply( geometry, values ); + return geometry; + + } + + return new this.constructor().copy( this ); + */ + + return new BufferGeometry().copy( this ); + + }, + + copy: function ( source ) { + + // reset + + this.index = null; + this.attributes = {}; + this.morphAttributes = {}; + this.groups = []; + this.boundingBox = null; + this.boundingSphere = null; + + // used for storing cloned, shared data + + const data = {}; + + // name + + this.name = source.name; + + // index + + const index = source.index; + + if ( index !== null ) { + + this.setIndex( index.clone( data ) ); + + } + + // attributes + + const attributes = source.attributes; + + for ( const name in attributes ) { + + const attribute = attributes[ name ]; + this.setAttribute( name, attribute.clone( data ) ); + + } + + // morph attributes + + const morphAttributes = source.morphAttributes; + + for ( const name in morphAttributes ) { + + const array = []; + const morphAttribute = morphAttributes[ name ]; // morphAttribute: array of Float32BufferAttributes + + for ( let i = 0, l = morphAttribute.length; i < l; i ++ ) { + + array.push( morphAttribute[ i ].clone( data ) ); + + } + + this.morphAttributes[ name ] = array; + + } + + this.morphTargetsRelative = source.morphTargetsRelative; + + // groups + + const groups = source.groups; + + for ( let i = 0, l = groups.length; i < l; i ++ ) { + + const group = groups[ i ]; + this.addGroup( group.start, group.count, group.materialIndex ); + + } + + // bounding box + + const boundingBox = source.boundingBox; + + if ( boundingBox !== null ) { + + this.boundingBox = boundingBox.clone(); + + } + + // bounding sphere + + const boundingSphere = source.boundingSphere; + + if ( boundingSphere !== null ) { + + this.boundingSphere = boundingSphere.clone(); + + } + + // draw range + + this.drawRange.start = source.drawRange.start; + this.drawRange.count = source.drawRange.count; + + // user data + + this.userData = source.userData; + + return this; + + }, + + dispose: function () { + + this.dispatchEvent( { type: 'dispose' } ); + + } + +} ); + +const _inverseMatrix = new Matrix4(); +const _ray = new Ray(); +const _sphere = new Sphere(); + +const _vA = new Vector3(); +const _vB = new Vector3(); +const _vC = new Vector3(); + +const _tempA = new Vector3(); +const _tempB = new Vector3(); +const _tempC = new Vector3(); + +const _morphA = new Vector3(); +const _morphB = new Vector3(); +const _morphC = new Vector3(); + +const _uvA = new Vector2(); +const _uvB = new Vector2(); +const _uvC = new Vector2(); + +const _intersectionPoint = new Vector3(); +const _intersectionPointWorld = new Vector3(); + +function Mesh( geometry, material ) { + + Object3D.call( this ); + + this.type = 'Mesh'; + + this.geometry = geometry !== undefined ? geometry : new BufferGeometry(); + this.material = material !== undefined ? material : new MeshBasicMaterial(); + + this.updateMorphTargets(); + +} + +Mesh.prototype = Object.assign( Object.create( Object3D.prototype ), { + + constructor: Mesh, + + isMesh: true, + + copy: function ( source ) { + + Object3D.prototype.copy.call( this, source ); + + if ( source.morphTargetInfluences !== undefined ) { + + this.morphTargetInfluences = source.morphTargetInfluences.slice(); + + } + + if ( source.morphTargetDictionary !== undefined ) { + + this.morphTargetDictionary = Object.assign( {}, source.morphTargetDictionary ); + + } + + this.material = source.material; + this.geometry = source.geometry; + + return this; + + }, + + updateMorphTargets: function () { + + const geometry = this.geometry; + + if ( geometry.isBufferGeometry ) { + + const morphAttributes = geometry.morphAttributes; + const keys = Object.keys( morphAttributes ); + + if ( keys.length > 0 ) { + + const morphAttribute = morphAttributes[ keys[ 0 ] ]; + + if ( morphAttribute !== undefined ) { + + this.morphTargetInfluences = []; + this.morphTargetDictionary = {}; + + for ( let m = 0, ml = morphAttribute.length; m < ml; m ++ ) { + + const name = morphAttribute[ m ].name || String( m ); + + this.morphTargetInfluences.push( 0 ); + this.morphTargetDictionary[ name ] = m; + + } + + } + + } + + } else { + + const morphTargets = geometry.morphTargets; + + if ( morphTargets !== undefined && morphTargets.length > 0 ) { + + console.error( 'THREE.Mesh.updateMorphTargets() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.' ); + + } + + } + + }, + + raycast: function ( raycaster, intersects ) { + + const geometry = this.geometry; + const material = this.material; + const matrixWorld = this.matrixWorld; + + if ( material === undefined ) return; + + // Checking boundingSphere distance to ray + + if ( geometry.boundingSphere === null ) geometry.computeBoundingSphere(); + + _sphere.copy( geometry.boundingSphere ); + _sphere.applyMatrix4( matrixWorld ); + + if ( raycaster.ray.intersectsSphere( _sphere ) === false ) return; + + // + + _inverseMatrix.getInverse( matrixWorld ); + _ray.copy( raycaster.ray ).applyMatrix4( _inverseMatrix ); + + // Check boundingBox before continuing + + if ( geometry.boundingBox !== null ) { + + if ( _ray.intersectsBox( geometry.boundingBox ) === false ) return; + + } + + let intersection; + + if ( geometry.isBufferGeometry ) { + + const index = geometry.index; + const position = geometry.attributes.position; + const morphPosition = geometry.morphAttributes.position; + const morphTargetsRelative = geometry.morphTargetsRelative; + const uv = geometry.attributes.uv; + const uv2 = geometry.attributes.uv2; + const groups = geometry.groups; + const drawRange = geometry.drawRange; + + if ( index !== null ) { + + // indexed buffer geometry + + if ( Array.isArray( material ) ) { + + for ( let i = 0, il = groups.length; i < il; i ++ ) { + + const group = groups[ i ]; + const groupMaterial = material[ group.materialIndex ]; + + const start = Math.max( group.start, drawRange.start ); + const end = Math.min( ( group.start + group.count ), ( drawRange.start + drawRange.count ) ); + + for ( let j = start, jl = end; j < jl; j += 3 ) { + + const a = index.getX( j ); + const b = index.getX( j + 1 ); + const c = index.getX( j + 2 ); + + intersection = checkBufferGeometryIntersection( this, groupMaterial, raycaster, _ray, position, morphPosition, morphTargetsRelative, uv, uv2, a, b, c ); + + if ( intersection ) { + + intersection.faceIndex = Math.floor( j / 3 ); // triangle number in indexed buffer semantics + intersection.face.materialIndex = group.materialIndex; + intersects.push( intersection ); + + } + + } + + } + + } else { + + const start = Math.max( 0, drawRange.start ); + const end = Math.min( index.count, ( drawRange.start + drawRange.count ) ); + + for ( let i = start, il = end; i < il; i += 3 ) { + + const a = index.getX( i ); + const b = index.getX( i + 1 ); + const c = index.getX( i + 2 ); + + intersection = checkBufferGeometryIntersection( this, material, raycaster, _ray, position, morphPosition, morphTargetsRelative, uv, uv2, a, b, c ); + + if ( intersection ) { + + intersection.faceIndex = Math.floor( i / 3 ); // triangle number in indexed buffer semantics + intersects.push( intersection ); + + } + + } + + } + + } else if ( position !== undefined ) { + + // non-indexed buffer geometry + + if ( Array.isArray( material ) ) { + + for ( let i = 0, il = groups.length; i < il; i ++ ) { + + const group = groups[ i ]; + const groupMaterial = material[ group.materialIndex ]; + + const start = Math.max( group.start, drawRange.start ); + const end = Math.min( ( group.start + group.count ), ( drawRange.start + drawRange.count ) ); + + for ( let j = start, jl = end; j < jl; j += 3 ) { + + const a = j; + const b = j + 1; + const c = j + 2; + + intersection = checkBufferGeometryIntersection( this, groupMaterial, raycaster, _ray, position, morphPosition, morphTargetsRelative, uv, uv2, a, b, c ); + + if ( intersection ) { + + intersection.faceIndex = Math.floor( j / 3 ); // triangle number in non-indexed buffer semantics + intersection.face.materialIndex = group.materialIndex; + intersects.push( intersection ); + + } + + } + + } + + } else { + + const start = Math.max( 0, drawRange.start ); + const end = Math.min( position.count, ( drawRange.start + drawRange.count ) ); + + for ( let i = start, il = end; i < il; i += 3 ) { + + const a = i; + const b = i + 1; + const c = i + 2; + + intersection = checkBufferGeometryIntersection( this, material, raycaster, _ray, position, morphPosition, morphTargetsRelative, uv, uv2, a, b, c ); + + if ( intersection ) { + + intersection.faceIndex = Math.floor( i / 3 ); // triangle number in non-indexed buffer semantics + intersects.push( intersection ); + + } + + } + + } + + } + + } else if ( geometry.isGeometry ) { + + const isMultiMaterial = Array.isArray( material ); + + const vertices = geometry.vertices; + const faces = geometry.faces; + let uvs; + + const faceVertexUvs = geometry.faceVertexUvs[ 0 ]; + if ( faceVertexUvs.length > 0 ) uvs = faceVertexUvs; + + for ( let f = 0, fl = faces.length; f < fl; f ++ ) { + + const face = faces[ f ]; + const faceMaterial = isMultiMaterial ? material[ face.materialIndex ] : material; + + if ( faceMaterial === undefined ) continue; + + const fvA = vertices[ face.a ]; + const fvB = vertices[ face.b ]; + const fvC = vertices[ face.c ]; + + intersection = checkIntersection( this, faceMaterial, raycaster, _ray, fvA, fvB, fvC, _intersectionPoint ); + + if ( intersection ) { + + if ( uvs && uvs[ f ] ) { + + const uvs_f = uvs[ f ]; + _uvA.copy( uvs_f[ 0 ] ); + _uvB.copy( uvs_f[ 1 ] ); + _uvC.copy( uvs_f[ 2 ] ); + + intersection.uv = Triangle.getUV( _intersectionPoint, fvA, fvB, fvC, _uvA, _uvB, _uvC, new Vector2() ); + + } + + intersection.face = face; + intersection.faceIndex = f; + intersects.push( intersection ); + + } + + } + + } + + } + +} ); + +function checkIntersection( object, material, raycaster, ray, pA, pB, pC, point ) { + + let intersect; + + if ( material.side === BackSide ) { + + intersect = ray.intersectTriangle( pC, pB, pA, true, point ); + + } else { + + intersect = ray.intersectTriangle( pA, pB, pC, material.side !== DoubleSide, point ); + + } + + if ( intersect === null ) return null; + + _intersectionPointWorld.copy( point ); + _intersectionPointWorld.applyMatrix4( object.matrixWorld ); + + const distance = raycaster.ray.origin.distanceTo( _intersectionPointWorld ); + + if ( distance < raycaster.near || distance > raycaster.far ) return null; + + return { + distance: distance, + point: _intersectionPointWorld.clone(), + object: object + }; + +} + +function checkBufferGeometryIntersection( object, material, raycaster, ray, position, morphPosition, morphTargetsRelative, uv, uv2, a, b, c ) { + + _vA.fromBufferAttribute( position, a ); + _vB.fromBufferAttribute( position, b ); + _vC.fromBufferAttribute( position, c ); + + const morphInfluences = object.morphTargetInfluences; + + if ( material.morphTargets && morphPosition && morphInfluences ) { + + _morphA.set( 0, 0, 0 ); + _morphB.set( 0, 0, 0 ); + _morphC.set( 0, 0, 0 ); + + for ( let i = 0, il = morphPosition.length; i < il; i ++ ) { + + const influence = morphInfluences[ i ]; + const morphAttribute = morphPosition[ i ]; + + if ( influence === 0 ) continue; + + _tempA.fromBufferAttribute( morphAttribute, a ); + _tempB.fromBufferAttribute( morphAttribute, b ); + _tempC.fromBufferAttribute( morphAttribute, c ); + + if ( morphTargetsRelative ) { + + _morphA.addScaledVector( _tempA, influence ); + _morphB.addScaledVector( _tempB, influence ); + _morphC.addScaledVector( _tempC, influence ); + + } else { + + _morphA.addScaledVector( _tempA.sub( _vA ), influence ); + _morphB.addScaledVector( _tempB.sub( _vB ), influence ); + _morphC.addScaledVector( _tempC.sub( _vC ), influence ); + + } + + } + + _vA.add( _morphA ); + _vB.add( _morphB ); + _vC.add( _morphC ); + + } + + if ( object.isSkinnedMesh ) { + + object.boneTransform( a, _vA ); + object.boneTransform( b, _vB ); + object.boneTransform( c, _vC ); + + } + + const intersection = checkIntersection( object, material, raycaster, ray, _vA, _vB, _vC, _intersectionPoint ); + + if ( intersection ) { + + if ( uv ) { + + _uvA.fromBufferAttribute( uv, a ); + _uvB.fromBufferAttribute( uv, b ); + _uvC.fromBufferAttribute( uv, c ); + + intersection.uv = Triangle.getUV( _intersectionPoint, _vA, _vB, _vC, _uvA, _uvB, _uvC, new Vector2() ); + + } + + if ( uv2 ) { + + _uvA.fromBufferAttribute( uv2, a ); + _uvB.fromBufferAttribute( uv2, b ); + _uvC.fromBufferAttribute( uv2, c ); + + intersection.uv2 = Triangle.getUV( _intersectionPoint, _vA, _vB, _vC, _uvA, _uvB, _uvC, new Vector2() ); + + } + + const face = new Face3( a, b, c ); + Triangle.getNormal( _vA, _vB, _vC, face.normal ); + + intersection.face = face; + + } + + return intersection; + +} + +class BoxBufferGeometry extends BufferGeometry { + + constructor( width = 1, height = 1, depth = 1, widthSegments = 1, heightSegments = 1, depthSegments = 1 ) { + + super(); + + this.type = 'BoxBufferGeometry'; + + this.parameters = { + width: width, + height: height, + depth: depth, + widthSegments: widthSegments, + heightSegments: heightSegments, + depthSegments: depthSegments + }; + + const scope = this; + + // segments + + widthSegments = Math.floor( widthSegments ); + heightSegments = Math.floor( heightSegments ); + depthSegments = Math.floor( depthSegments ); + + // buffers + + const indices = []; + const vertices = []; + const normals = []; + const uvs = []; + + // helper variables + + let numberOfVertices = 0; + let groupStart = 0; + + // build each side of the box geometry + + buildPlane( 'z', 'y', 'x', - 1, - 1, depth, height, width, depthSegments, heightSegments, 0 ); // px + buildPlane( 'z', 'y', 'x', 1, - 1, depth, height, - width, depthSegments, heightSegments, 1 ); // nx + buildPlane( 'x', 'z', 'y', 1, 1, width, depth, height, widthSegments, depthSegments, 2 ); // py + buildPlane( 'x', 'z', 'y', 1, - 1, width, depth, - height, widthSegments, depthSegments, 3 ); // ny + buildPlane( 'x', 'y', 'z', 1, - 1, width, height, depth, widthSegments, heightSegments, 4 ); // pz + buildPlane( 'x', 'y', 'z', - 1, - 1, width, height, - depth, widthSegments, heightSegments, 5 ); // nz + + // build geometry + + this.setIndex( indices ); + this.setAttribute( 'position', new Float32BufferAttribute( vertices, 3 ) ); + this.setAttribute( 'normal', new Float32BufferAttribute( normals, 3 ) ); + this.setAttribute( 'uv', new Float32BufferAttribute( uvs, 2 ) ); + + function buildPlane( u, v, w, udir, vdir, width, height, depth, gridX, gridY, materialIndex ) { + + const segmentWidth = width / gridX; + const segmentHeight = height / gridY; + + const widthHalf = width / 2; + const heightHalf = height / 2; + const depthHalf = depth / 2; + + const gridX1 = gridX + 1; + const gridY1 = gridY + 1; + + let vertexCounter = 0; + let groupCount = 0; + + const vector = new Vector3(); + + // generate vertices, normals and uvs + + for ( let iy = 0; iy < gridY1; iy ++ ) { + + const y = iy * segmentHeight - heightHalf; + + for ( let ix = 0; ix < gridX1; ix ++ ) { + + const x = ix * segmentWidth - widthHalf; + + // set values to correct vector component + + vector[ u ] = x * udir; + vector[ v ] = y * vdir; + vector[ w ] = depthHalf; + + // now apply vector to vertex buffer + + vertices.push( vector.x, vector.y, vector.z ); + + // set values to correct vector component + + vector[ u ] = 0; + vector[ v ] = 0; + vector[ w ] = depth > 0 ? 1 : - 1; + + // now apply vector to normal buffer + + normals.push( vector.x, vector.y, vector.z ); + + // uvs + + uvs.push( ix / gridX ); + uvs.push( 1 - ( iy / gridY ) ); + + // counters + + vertexCounter += 1; + + } + + } + + // indices + + // 1. you need three indices to draw a single face + // 2. a single segment consists of two faces + // 3. so we need to generate six (2*3) indices per segment + + for ( let iy = 0; iy < gridY; iy ++ ) { + + for ( let ix = 0; ix < gridX; ix ++ ) { + + const a = numberOfVertices + ix + gridX1 * iy; + const b = numberOfVertices + ix + gridX1 * ( iy + 1 ); + const c = numberOfVertices + ( ix + 1 ) + gridX1 * ( iy + 1 ); + const d = numberOfVertices + ( ix + 1 ) + gridX1 * iy; + + // faces + + indices.push( a, b, d ); + indices.push( b, c, d ); + + // increase counter + + groupCount += 6; + + } + + } + + // add a group to the geometry. this will ensure multi material support + + scope.addGroup( groupStart, groupCount, materialIndex ); + + // calculate new start value for groups + + groupStart += groupCount; + + // update total number of vertices + + numberOfVertices += vertexCounter; + + } + + } + +} + +/** + * Uniform Utilities + */ + +function cloneUniforms( src ) { + + const dst = {}; + + for ( const u in src ) { + + dst[ u ] = {}; + + for ( const p in src[ u ] ) { + + const property = src[ u ][ p ]; + + if ( property && ( property.isColor || + property.isMatrix3 || property.isMatrix4 || + property.isVector2 || property.isVector3 || property.isVector4 || + property.isTexture ) ) { + + dst[ u ][ p ] = property.clone(); + + } else if ( Array.isArray( property ) ) { + + dst[ u ][ p ] = property.slice(); + + } else { + + dst[ u ][ p ] = property; + + } + + } + + } + + return dst; + +} + +function mergeUniforms( uniforms ) { + + const merged = {}; + + for ( let u = 0; u < uniforms.length; u ++ ) { + + const tmp = cloneUniforms( uniforms[ u ] ); + + for ( const p in tmp ) { + + merged[ p ] = tmp[ p ]; + + } + + } + + return merged; + +} + +// Legacy + +const UniformsUtils = { clone: cloneUniforms, merge: mergeUniforms }; + +var default_vertex = "void main() {\n\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n}"; + +var default_fragment = "void main() {\n\tgl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );\n}"; + +/** + * parameters = { + * defines: { "label" : "value" }, + * uniforms: { "parameter1": { value: 1.0 }, "parameter2": { value2: 2 } }, + * + * fragmentShader: , + * vertexShader: , + * + * wireframe: , + * wireframeLinewidth: , + * + * lights: , + * + * skinning: , + * morphTargets: , + * morphNormals: + * } + */ + +function ShaderMaterial( parameters ) { + + Material.call( this ); + + this.type = 'ShaderMaterial'; + + this.defines = {}; + this.uniforms = {}; + + this.vertexShader = default_vertex; + this.fragmentShader = default_fragment; + + this.linewidth = 1; + + this.wireframe = false; + this.wireframeLinewidth = 1; + + this.fog = false; // set to use scene fog + this.lights = false; // set to use scene lights + this.clipping = false; // set to use user-defined clipping planes + + this.skinning = false; // set to use skinning attribute streams + this.morphTargets = false; // set to use morph targets + this.morphNormals = false; // set to use morph normals + + this.extensions = { + derivatives: false, // set to use derivatives + fragDepth: false, // set to use fragment depth values + drawBuffers: false, // set to use draw buffers + shaderTextureLOD: false // set to use shader texture LOD + }; + + // When rendered geometry doesn't include these attributes but the material does, + // use these default values in WebGL. This avoids errors when buffer data is missing. + this.defaultAttributeValues = { + 'color': [ 1, 1, 1 ], + 'uv': [ 0, 0 ], + 'uv2': [ 0, 0 ] + }; + + this.index0AttributeName = undefined; + this.uniformsNeedUpdate = false; + + this.glslVersion = null; + + if ( parameters !== undefined ) { + + if ( parameters.attributes !== undefined ) { + + console.error( 'THREE.ShaderMaterial: attributes should now be defined in THREE.BufferGeometry instead.' ); + + } + + this.setValues( parameters ); + + } + +} + +ShaderMaterial.prototype = Object.create( Material.prototype ); +ShaderMaterial.prototype.constructor = ShaderMaterial; + +ShaderMaterial.prototype.isShaderMaterial = true; + +ShaderMaterial.prototype.copy = function ( source ) { + + Material.prototype.copy.call( this, source ); + + this.fragmentShader = source.fragmentShader; + this.vertexShader = source.vertexShader; + + this.uniforms = cloneUniforms( source.uniforms ); + + this.defines = Object.assign( {}, source.defines ); + + this.wireframe = source.wireframe; + this.wireframeLinewidth = source.wireframeLinewidth; + + this.lights = source.lights; + this.clipping = source.clipping; + + this.skinning = source.skinning; + + this.morphTargets = source.morphTargets; + this.morphNormals = source.morphNormals; + + this.extensions = Object.assign( {}, source.extensions ); + + this.glslVersion = source.glslVersion; + + return this; + +}; + +ShaderMaterial.prototype.toJSON = function ( meta ) { + + const data = Material.prototype.toJSON.call( this, meta ); + + data.glslVersion = this.glslVersion; + data.uniforms = {}; + + for ( const name in this.uniforms ) { + + const uniform = this.uniforms[ name ]; + const value = uniform.value; + + if ( value && value.isTexture ) { + + data.uniforms[ name ] = { + type: 't', + value: value.toJSON( meta ).uuid + }; + + } else if ( value && value.isColor ) { + + data.uniforms[ name ] = { + type: 'c', + value: value.getHex() + }; + + } else if ( value && value.isVector2 ) { + + data.uniforms[ name ] = { + type: 'v2', + value: value.toArray() + }; + + } else if ( value && value.isVector3 ) { + + data.uniforms[ name ] = { + type: 'v3', + value: value.toArray() + }; + + } else if ( value && value.isVector4 ) { + + data.uniforms[ name ] = { + type: 'v4', + value: value.toArray() + }; + + } else if ( value && value.isMatrix3 ) { + + data.uniforms[ name ] = { + type: 'm3', + value: value.toArray() + }; + + } else if ( value && value.isMatrix4 ) { + + data.uniforms[ name ] = { + type: 'm4', + value: value.toArray() + }; + + } else { + + data.uniforms[ name ] = { + value: value + }; + + // note: the array variants v2v, v3v, v4v, m4v and tv are not supported so far + + } + + } + + if ( Object.keys( this.defines ).length > 0 ) data.defines = this.defines; + + data.vertexShader = this.vertexShader; + data.fragmentShader = this.fragmentShader; + + const extensions = {}; + + for ( const key in this.extensions ) { + + if ( this.extensions[ key ] === true ) extensions[ key ] = true; + + } + + if ( Object.keys( extensions ).length > 0 ) data.extensions = extensions; + + return data; + +}; + +function Camera() { + + Object3D.call( this ); + + this.type = 'Camera'; + + this.matrixWorldInverse = new Matrix4(); + + this.projectionMatrix = new Matrix4(); + this.projectionMatrixInverse = new Matrix4(); + +} + +Camera.prototype = Object.assign( Object.create( Object3D.prototype ), { + + constructor: Camera, + + isCamera: true, + + copy: function ( source, recursive ) { + + Object3D.prototype.copy.call( this, source, recursive ); + + this.matrixWorldInverse.copy( source.matrixWorldInverse ); + + this.projectionMatrix.copy( source.projectionMatrix ); + this.projectionMatrixInverse.copy( source.projectionMatrixInverse ); + + return this; + + }, + + getWorldDirection: function ( target ) { + + if ( target === undefined ) { + + console.warn( 'THREE.Camera: .getWorldDirection() target is now required' ); + target = new Vector3(); + + } + + this.updateMatrixWorld( true ); + + const e = this.matrixWorld.elements; + + return target.set( - e[ 8 ], - e[ 9 ], - e[ 10 ] ).normalize(); + + }, + + updateMatrixWorld: function ( force ) { + + Object3D.prototype.updateMatrixWorld.call( this, force ); + + this.matrixWorldInverse.getInverse( this.matrixWorld ); + + }, + + updateWorldMatrix: function ( updateParents, updateChildren ) { + + Object3D.prototype.updateWorldMatrix.call( this, updateParents, updateChildren ); + + this.matrixWorldInverse.getInverse( this.matrixWorld ); + + }, + + clone: function () { + + return new this.constructor().copy( this ); + + } + +} ); + +function PerspectiveCamera( fov, aspect, near, far ) { + + Camera.call( this ); + + this.type = 'PerspectiveCamera'; + + this.fov = fov !== undefined ? fov : 50; + this.zoom = 1; + + this.near = near !== undefined ? near : 0.1; + this.far = far !== undefined ? far : 2000; + this.focus = 10; + + this.aspect = aspect !== undefined ? aspect : 1; + this.view = null; + + this.filmGauge = 35; // width of the film (default in millimeters) + this.filmOffset = 0; // horizontal film offset (same unit as gauge) + + this.updateProjectionMatrix(); + +} + +PerspectiveCamera.prototype = Object.assign( Object.create( Camera.prototype ), { + + constructor: PerspectiveCamera, + + isPerspectiveCamera: true, + + copy: function ( source, recursive ) { + + Camera.prototype.copy.call( this, source, recursive ); + + this.fov = source.fov; + this.zoom = source.zoom; + + this.near = source.near; + this.far = source.far; + this.focus = source.focus; + + this.aspect = source.aspect; + this.view = source.view === null ? null : Object.assign( {}, source.view ); + + this.filmGauge = source.filmGauge; + this.filmOffset = source.filmOffset; + + return this; + + }, + + /** + * Sets the FOV by focal length in respect to the current .filmGauge. + * + * The default film gauge is 35, so that the focal length can be specified for + * a 35mm (full frame) camera. + * + * Values for focal length and film gauge must have the same unit. + */ + setFocalLength: function ( focalLength ) { + + // see http://www.bobatkins.com/photography/technical/field_of_view.html + const vExtentSlope = 0.5 * this.getFilmHeight() / focalLength; + + this.fov = MathUtils.RAD2DEG * 2 * Math.atan( vExtentSlope ); + this.updateProjectionMatrix(); + + }, + + /** + * Calculates the focal length from the current .fov and .filmGauge. + */ + getFocalLength: function () { + + const vExtentSlope = Math.tan( MathUtils.DEG2RAD * 0.5 * this.fov ); + + return 0.5 * this.getFilmHeight() / vExtentSlope; + + }, + + getEffectiveFOV: function () { + + return MathUtils.RAD2DEG * 2 * Math.atan( + Math.tan( MathUtils.DEG2RAD * 0.5 * this.fov ) / this.zoom ); + + }, + + getFilmWidth: function () { + + // film not completely covered in portrait format (aspect < 1) + return this.filmGauge * Math.min( this.aspect, 1 ); + + }, + + getFilmHeight: function () { + + // film not completely covered in landscape format (aspect > 1) + return this.filmGauge / Math.max( this.aspect, 1 ); + + }, + + /** + * Sets an offset in a larger frustum. This is useful for multi-window or + * multi-monitor/multi-machine setups. + * + * For example, if you have 3x2 monitors and each monitor is 1920x1080 and + * the monitors are in grid like this + * + * +---+---+---+ + * | A | B | C | + * +---+---+---+ + * | D | E | F | + * +---+---+---+ + * + * then for each monitor you would call it like this + * + * const w = 1920; + * const h = 1080; + * const fullWidth = w * 3; + * const fullHeight = h * 2; + * + * --A-- + * camera.setViewOffset( fullWidth, fullHeight, w * 0, h * 0, w, h ); + * --B-- + * camera.setViewOffset( fullWidth, fullHeight, w * 1, h * 0, w, h ); + * --C-- + * camera.setViewOffset( fullWidth, fullHeight, w * 2, h * 0, w, h ); + * --D-- + * camera.setViewOffset( fullWidth, fullHeight, w * 0, h * 1, w, h ); + * --E-- + * camera.setViewOffset( fullWidth, fullHeight, w * 1, h * 1, w, h ); + * --F-- + * camera.setViewOffset( fullWidth, fullHeight, w * 2, h * 1, w, h ); + * + * Note there is no reason monitors have to be the same size or in a grid. + */ + setViewOffset: function ( fullWidth, fullHeight, x, y, width, height ) { + + this.aspect = fullWidth / fullHeight; + + if ( this.view === null ) { + + this.view = { + enabled: true, + fullWidth: 1, + fullHeight: 1, + offsetX: 0, + offsetY: 0, + width: 1, + height: 1 + }; + + } + + this.view.enabled = true; + this.view.fullWidth = fullWidth; + this.view.fullHeight = fullHeight; + this.view.offsetX = x; + this.view.offsetY = y; + this.view.width = width; + this.view.height = height; + + this.updateProjectionMatrix(); + + }, + + clearViewOffset: function () { + + if ( this.view !== null ) { + + this.view.enabled = false; + + } + + this.updateProjectionMatrix(); + + }, + + updateProjectionMatrix: function () { + + const near = this.near; + let top = near * Math.tan( MathUtils.DEG2RAD * 0.5 * this.fov ) / this.zoom; + let height = 2 * top; + let width = this.aspect * height; + let left = - 0.5 * width; + const view = this.view; + + if ( this.view !== null && this.view.enabled ) { + + const fullWidth = view.fullWidth, + fullHeight = view.fullHeight; + + left += view.offsetX * width / fullWidth; + top -= view.offsetY * height / fullHeight; + width *= view.width / fullWidth; + height *= view.height / fullHeight; + + } + + const skew = this.filmOffset; + if ( skew !== 0 ) left += near * skew / this.getFilmWidth(); + + this.projectionMatrix.makePerspective( left, left + width, top, top - height, near, this.far ); + + this.projectionMatrixInverse.getInverse( this.projectionMatrix ); + + }, + + toJSON: function ( meta ) { + + const data = Object3D.prototype.toJSON.call( this, meta ); + + data.object.fov = this.fov; + data.object.zoom = this.zoom; + + data.object.near = this.near; + data.object.far = this.far; + data.object.focus = this.focus; + + data.object.aspect = this.aspect; + + if ( this.view !== null ) data.object.view = Object.assign( {}, this.view ); + + data.object.filmGauge = this.filmGauge; + data.object.filmOffset = this.filmOffset; + + return data; + + } + +} ); + +const fov = 90, aspect = 1; + +function CubeCamera( near, far, renderTarget ) { + + Object3D.call( this ); + + this.type = 'CubeCamera'; + + if ( renderTarget.isWebGLCubeRenderTarget !== true ) { + + console.error( 'THREE.CubeCamera: The constructor now expects an instance of WebGLCubeRenderTarget as third parameter.' ); + return; + + } + + this.renderTarget = renderTarget; + + const cameraPX = new PerspectiveCamera( fov, aspect, near, far ); + cameraPX.layers = this.layers; + cameraPX.up.set( 0, - 1, 0 ); + cameraPX.lookAt( new Vector3( 1, 0, 0 ) ); + this.add( cameraPX ); + + const cameraNX = new PerspectiveCamera( fov, aspect, near, far ); + cameraNX.layers = this.layers; + cameraNX.up.set( 0, - 1, 0 ); + cameraNX.lookAt( new Vector3( - 1, 0, 0 ) ); + this.add( cameraNX ); + + const cameraPY = new PerspectiveCamera( fov, aspect, near, far ); + cameraPY.layers = this.layers; + cameraPY.up.set( 0, 0, 1 ); + cameraPY.lookAt( new Vector3( 0, 1, 0 ) ); + this.add( cameraPY ); + + const cameraNY = new PerspectiveCamera( fov, aspect, near, far ); + cameraNY.layers = this.layers; + cameraNY.up.set( 0, 0, - 1 ); + cameraNY.lookAt( new Vector3( 0, - 1, 0 ) ); + this.add( cameraNY ); + + const cameraPZ = new PerspectiveCamera( fov, aspect, near, far ); + cameraPZ.layers = this.layers; + cameraPZ.up.set( 0, - 1, 0 ); + cameraPZ.lookAt( new Vector3( 0, 0, 1 ) ); + this.add( cameraPZ ); + + const cameraNZ = new PerspectiveCamera( fov, aspect, near, far ); + cameraNZ.layers = this.layers; + cameraNZ.up.set( 0, - 1, 0 ); + cameraNZ.lookAt( new Vector3( 0, 0, - 1 ) ); + this.add( cameraNZ ); + + this.update = function ( renderer, scene ) { + + if ( this.parent === null ) this.updateMatrixWorld(); + + const currentXrEnabled = renderer.xr.enabled; + const currentRenderTarget = renderer.getRenderTarget(); + + renderer.xr.enabled = false; + + const generateMipmaps = renderTarget.texture.generateMipmaps; + + renderTarget.texture.generateMipmaps = false; + + renderer.setRenderTarget( renderTarget, 0 ); + renderer.render( scene, cameraPX ); + + renderer.setRenderTarget( renderTarget, 1 ); + renderer.render( scene, cameraNX ); + + renderer.setRenderTarget( renderTarget, 2 ); + renderer.render( scene, cameraPY ); + + renderer.setRenderTarget( renderTarget, 3 ); + renderer.render( scene, cameraNY ); + + renderer.setRenderTarget( renderTarget, 4 ); + renderer.render( scene, cameraPZ ); + + renderTarget.texture.generateMipmaps = generateMipmaps; + + renderer.setRenderTarget( renderTarget, 5 ); + renderer.render( scene, cameraNZ ); + + renderer.setRenderTarget( currentRenderTarget ); + + renderer.xr.enabled = currentXrEnabled; + + }; + + this.clear = function ( renderer, color, depth, stencil ) { + + const currentRenderTarget = renderer.getRenderTarget(); + + for ( let i = 0; i < 6; i ++ ) { + + renderer.setRenderTarget( renderTarget, i ); + + renderer.clear( color, depth, stencil ); + + } + + renderer.setRenderTarget( currentRenderTarget ); + + }; + +} + +CubeCamera.prototype = Object.create( Object3D.prototype ); +CubeCamera.prototype.constructor = CubeCamera; + +function CubeTexture( images, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy, encoding ) { + + images = images !== undefined ? images : []; + mapping = mapping !== undefined ? mapping : CubeReflectionMapping; + format = format !== undefined ? format : RGBFormat; + + Texture.call( this, images, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy, encoding ); + + this.flipY = false; + + this._needsFlipEnvMap = true; + +} + +CubeTexture.prototype = Object.create( Texture.prototype ); +CubeTexture.prototype.constructor = CubeTexture; + +CubeTexture.prototype.isCubeTexture = true; + +Object.defineProperty( CubeTexture.prototype, 'images', { + + get: function () { + + return this.image; + + }, + + set: function ( value ) { + + this.image = value; + + } + +} ); + +function WebGLCubeRenderTarget( size, options, dummy ) { + + if ( Number.isInteger( options ) ) { + + console.warn( 'THREE.WebGLCubeRenderTarget: constructor signature is now WebGLCubeRenderTarget( size, options )' ); + + options = dummy; + + } + + WebGLRenderTarget.call( this, size, size, options ); + + options = options || {}; + + this.texture = new CubeTexture( undefined, options.mapping, options.wrapS, options.wrapT, options.magFilter, options.minFilter, options.format, options.type, options.anisotropy, options.encoding ); + + this.texture._needsFlipEnvMap = false; + +} + +WebGLCubeRenderTarget.prototype = Object.create( WebGLRenderTarget.prototype ); +WebGLCubeRenderTarget.prototype.constructor = WebGLCubeRenderTarget; + +WebGLCubeRenderTarget.prototype.isWebGLCubeRenderTarget = true; + +WebGLCubeRenderTarget.prototype.fromEquirectangularTexture = function ( renderer, texture ) { + + this.texture.type = texture.type; + this.texture.format = RGBAFormat; // see #18859 + this.texture.encoding = texture.encoding; + + this.texture.generateMipmaps = texture.generateMipmaps; + this.texture.minFilter = texture.minFilter; + this.texture.magFilter = texture.magFilter; + + const shader = { + + uniforms: { + tEquirect: { value: null }, + }, + + vertexShader: /* glsl */` + + varying vec3 vWorldDirection; + + vec3 transformDirection( in vec3 dir, in mat4 matrix ) { + + return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz ); + + } + + void main() { + + vWorldDirection = transformDirection( position, modelMatrix ); + + #include + #include + + } + `, + + fragmentShader: /* glsl */` + + uniform sampler2D tEquirect; + + varying vec3 vWorldDirection; + + #include + + void main() { + + vec3 direction = normalize( vWorldDirection ); + + vec2 sampleUV = equirectUv( direction ); + + gl_FragColor = texture2D( tEquirect, sampleUV ); + + } + ` + }; + + const geometry = new BoxBufferGeometry( 5, 5, 5 ); + + const material = new ShaderMaterial( { + + name: 'CubemapFromEquirect', + + uniforms: cloneUniforms( shader.uniforms ), + vertexShader: shader.vertexShader, + fragmentShader: shader.fragmentShader, + side: BackSide, + blending: NoBlending + + } ); + + material.uniforms.tEquirect.value = texture; + + const mesh = new Mesh( geometry, material ); + + const currentMinFilter = texture.minFilter; + + // Avoid blurred poles + if ( texture.minFilter === LinearMipmapLinearFilter ) texture.minFilter = LinearFilter; + + const camera = new CubeCamera( 1, 10, this ); + camera.update( renderer, mesh ); + + texture.minFilter = currentMinFilter; + + mesh.geometry.dispose(); + mesh.material.dispose(); + + return this; + +}; + +function DataTexture( data, width, height, format, type, mapping, wrapS, wrapT, magFilter, minFilter, anisotropy, encoding ) { + + Texture.call( this, null, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy, encoding ); + + this.image = { data: data || null, width: width || 1, height: height || 1 }; + + this.magFilter = magFilter !== undefined ? magFilter : NearestFilter; + this.minFilter = minFilter !== undefined ? minFilter : NearestFilter; + + this.generateMipmaps = false; + this.flipY = false; + this.unpackAlignment = 1; + + this.needsUpdate = true; + +} + +DataTexture.prototype = Object.create( Texture.prototype ); +DataTexture.prototype.constructor = DataTexture; + +DataTexture.prototype.isDataTexture = true; + +const _sphere$1 = /*@__PURE__*/ new Sphere(); +const _vector$5 = /*@__PURE__*/ new Vector3(); + +class Frustum { + + constructor( p0, p1, p2, p3, p4, p5 ) { + + this.planes = [ + + ( p0 !== undefined ) ? p0 : new Plane(), + ( p1 !== undefined ) ? p1 : new Plane(), + ( p2 !== undefined ) ? p2 : new Plane(), + ( p3 !== undefined ) ? p3 : new Plane(), + ( p4 !== undefined ) ? p4 : new Plane(), + ( p5 !== undefined ) ? p5 : new Plane() + + ]; + + } + + set( p0, p1, p2, p3, p4, p5 ) { + + const planes = this.planes; + + planes[ 0 ].copy( p0 ); + planes[ 1 ].copy( p1 ); + planes[ 2 ].copy( p2 ); + planes[ 3 ].copy( p3 ); + planes[ 4 ].copy( p4 ); + planes[ 5 ].copy( p5 ); + + return this; + + } + + clone() { + + return new this.constructor().copy( this ); + + } + + copy( frustum ) { + + const planes = this.planes; + + for ( let i = 0; i < 6; i ++ ) { + + planes[ i ].copy( frustum.planes[ i ] ); + + } + + return this; + + } + + setFromProjectionMatrix( m ) { + + const planes = this.planes; + const me = m.elements; + const me0 = me[ 0 ], me1 = me[ 1 ], me2 = me[ 2 ], me3 = me[ 3 ]; + const me4 = me[ 4 ], me5 = me[ 5 ], me6 = me[ 6 ], me7 = me[ 7 ]; + const me8 = me[ 8 ], me9 = me[ 9 ], me10 = me[ 10 ], me11 = me[ 11 ]; + const me12 = me[ 12 ], me13 = me[ 13 ], me14 = me[ 14 ], me15 = me[ 15 ]; + + planes[ 0 ].setComponents( me3 - me0, me7 - me4, me11 - me8, me15 - me12 ).normalize(); + planes[ 1 ].setComponents( me3 + me0, me7 + me4, me11 + me8, me15 + me12 ).normalize(); + planes[ 2 ].setComponents( me3 + me1, me7 + me5, me11 + me9, me15 + me13 ).normalize(); + planes[ 3 ].setComponents( me3 - me1, me7 - me5, me11 - me9, me15 - me13 ).normalize(); + planes[ 4 ].setComponents( me3 - me2, me7 - me6, me11 - me10, me15 - me14 ).normalize(); + planes[ 5 ].setComponents( me3 + me2, me7 + me6, me11 + me10, me15 + me14 ).normalize(); + + return this; + + } + + intersectsObject( object ) { + + const geometry = object.geometry; + + if ( geometry.boundingSphere === null ) geometry.computeBoundingSphere(); + + _sphere$1.copy( geometry.boundingSphere ).applyMatrix4( object.matrixWorld ); + + return this.intersectsSphere( _sphere$1 ); + + } + + intersectsSprite( sprite ) { + + _sphere$1.center.set( 0, 0, 0 ); + _sphere$1.radius = 0.7071067811865476; + _sphere$1.applyMatrix4( sprite.matrixWorld ); + + return this.intersectsSphere( _sphere$1 ); + + } + + intersectsSphere( sphere ) { + + const planes = this.planes; + const center = sphere.center; + const negRadius = - sphere.radius; + + for ( let i = 0; i < 6; i ++ ) { + + const distance = planes[ i ].distanceToPoint( center ); + + if ( distance < negRadius ) { + + return false; + + } + + } + + return true; + + } + + intersectsBox( box ) { + + const planes = this.planes; + + for ( let i = 0; i < 6; i ++ ) { + + const plane = planes[ i ]; + + // corner at max distance + + _vector$5.x = plane.normal.x > 0 ? box.max.x : box.min.x; + _vector$5.y = plane.normal.y > 0 ? box.max.y : box.min.y; + _vector$5.z = plane.normal.z > 0 ? box.max.z : box.min.z; + + if ( plane.distanceToPoint( _vector$5 ) < 0 ) { + + return false; + + } + + } + + return true; + + } + + containsPoint( point ) { + + const planes = this.planes; + + for ( let i = 0; i < 6; i ++ ) { + + if ( planes[ i ].distanceToPoint( point ) < 0 ) { + + return false; + + } + + } + + return true; + + } + +} + +function WebGLAnimation() { + + let context = null; + let isAnimating = false; + let animationLoop = null; + let requestId = null; + + function onAnimationFrame( time, frame ) { + + animationLoop( time, frame ); + + requestId = context.requestAnimationFrame( onAnimationFrame ); + + } + + return { + + start: function () { + + if ( isAnimating === true ) return; + if ( animationLoop === null ) return; + + requestId = context.requestAnimationFrame( onAnimationFrame ); + + isAnimating = true; + + }, + + stop: function () { + + context.cancelAnimationFrame( requestId ); + + isAnimating = false; + + }, + + setAnimationLoop: function ( callback ) { + + animationLoop = callback; + + }, + + setContext: function ( value ) { + + context = value; + + } + + }; + +} + +function WebGLAttributes( gl, capabilities ) { + + const isWebGL2 = capabilities.isWebGL2; + + const buffers = new WeakMap(); + + function createBuffer( attribute, bufferType ) { + + const array = attribute.array; + const usage = attribute.usage; + + const buffer = gl.createBuffer(); + + gl.bindBuffer( bufferType, buffer ); + gl.bufferData( bufferType, array, usage ); + + attribute.onUploadCallback(); + + let type = 5126; + + if ( array instanceof Float32Array ) { + + type = 5126; + + } else if ( array instanceof Float64Array ) { + + console.warn( 'THREE.WebGLAttributes: Unsupported data buffer format: Float64Array.' ); + + } else if ( array instanceof Uint16Array ) { + + type = 5123; + + } else if ( array instanceof Int16Array ) { + + type = 5122; + + } else if ( array instanceof Uint32Array ) { + + type = 5125; + + } else if ( array instanceof Int32Array ) { + + type = 5124; + + } else if ( array instanceof Int8Array ) { + + type = 5120; + + } else if ( array instanceof Uint8Array ) { + + type = 5121; + + } + + return { + buffer: buffer, + type: type, + bytesPerElement: array.BYTES_PER_ELEMENT, + version: attribute.version + }; + + } + + function updateBuffer( buffer, attribute, bufferType ) { + + const array = attribute.array; + const updateRange = attribute.updateRange; + + gl.bindBuffer( bufferType, buffer ); + + if ( updateRange.count === - 1 ) { + + // Not using update ranges + + gl.bufferSubData( bufferType, 0, array ); + + } else { + + if ( isWebGL2 ) { + + gl.bufferSubData( bufferType, updateRange.offset * array.BYTES_PER_ELEMENT, + array, updateRange.offset, updateRange.count ); + + } else { + + gl.bufferSubData( bufferType, updateRange.offset * array.BYTES_PER_ELEMENT, + array.subarray( updateRange.offset, updateRange.offset + updateRange.count ) ); + + } + + updateRange.count = - 1; // reset range + + } + + } + + // + + function get( attribute ) { + + if ( attribute.isInterleavedBufferAttribute ) attribute = attribute.data; + + return buffers.get( attribute ); + + } + + function remove( attribute ) { + + if ( attribute.isInterleavedBufferAttribute ) attribute = attribute.data; + + const data = buffers.get( attribute ); + + if ( data ) { + + gl.deleteBuffer( data.buffer ); + + buffers.delete( attribute ); + + } + + } + + function update( attribute, bufferType ) { + + if ( attribute.isGLBufferAttribute ) { + + var cached = buffers.get( attribute ); + + if ( ! cached || cached.version < attribute.version ) { + + buffers.set( attribute, { + buffer: attribute.buffer, + type: attribute.type, + bytesPerElement: attribute.elementSize, + version: attribute.version + } ); + + } + + return; + + } + + if ( attribute.isInterleavedBufferAttribute ) attribute = attribute.data; + + const data = buffers.get( attribute ); + + if ( data === undefined ) { + + buffers.set( attribute, createBuffer( attribute, bufferType ) ); + + } else if ( data.version < attribute.version ) { + + updateBuffer( data.buffer, attribute, bufferType ); + + data.version = attribute.version; + + } + + } + + return { + + get: get, + remove: remove, + update: update + + }; + +} + +class PlaneBufferGeometry extends BufferGeometry { + + constructor( width, height, widthSegments, heightSegments ) { + + super(); + this.type = 'PlaneBufferGeometry'; + + this.parameters = { + width: width, + height: height, + widthSegments: widthSegments, + heightSegments: heightSegments + }; + + width = width || 1; + height = height || 1; + + const width_half = width / 2; + const height_half = height / 2; + + const gridX = Math.floor( widthSegments ) || 1; + const gridY = Math.floor( heightSegments ) || 1; + + const gridX1 = gridX + 1; + const gridY1 = gridY + 1; + + const segment_width = width / gridX; + const segment_height = height / gridY; + + // buffers + + const indices = []; + const vertices = []; + const normals = []; + const uvs = []; + + // generate vertices, normals and uvs + + for ( let iy = 0; iy < gridY1; iy ++ ) { + + const y = iy * segment_height - height_half; + + for ( let ix = 0; ix < gridX1; ix ++ ) { + + const x = ix * segment_width - width_half; + + vertices.push( x, - y, 0 ); + + normals.push( 0, 0, 1 ); + + uvs.push( ix / gridX ); + uvs.push( 1 - ( iy / gridY ) ); + + } + + } + + // indices + + for ( let iy = 0; iy < gridY; iy ++ ) { + + for ( let ix = 0; ix < gridX; ix ++ ) { + + const a = ix + gridX1 * iy; + const b = ix + gridX1 * ( iy + 1 ); + const c = ( ix + 1 ) + gridX1 * ( iy + 1 ); + const d = ( ix + 1 ) + gridX1 * iy; + + // faces + + indices.push( a, b, d ); + indices.push( b, c, d ); + + } + + } + + // build geometry + + this.setIndex( indices ); + this.setAttribute( 'position', new Float32BufferAttribute( vertices, 3 ) ); + this.setAttribute( 'normal', new Float32BufferAttribute( normals, 3 ) ); + this.setAttribute( 'uv', new Float32BufferAttribute( uvs, 2 ) ); + + } + +} + +var alphamap_fragment = "#ifdef USE_ALPHAMAP\n\tdiffuseColor.a *= texture2D( alphaMap, vUv ).g;\n#endif"; + +var alphamap_pars_fragment = "#ifdef USE_ALPHAMAP\n\tuniform sampler2D alphaMap;\n#endif"; + +var alphatest_fragment = "#ifdef ALPHATEST\n\tif ( diffuseColor.a < ALPHATEST ) discard;\n#endif"; + +var aomap_fragment = "#ifdef USE_AOMAP\n\tfloat ambientOcclusion = ( texture2D( aoMap, vUv2 ).r - 1.0 ) * aoMapIntensity + 1.0;\n\treflectedLight.indirectDiffuse *= ambientOcclusion;\n\t#if defined( USE_ENVMAP ) && defined( STANDARD )\n\t\tfloat dotNV = saturate( dot( geometry.normal, geometry.viewDir ) );\n\t\treflectedLight.indirectSpecular *= computeSpecularOcclusion( dotNV, ambientOcclusion, material.specularRoughness );\n\t#endif\n#endif"; + +var aomap_pars_fragment = "#ifdef USE_AOMAP\n\tuniform sampler2D aoMap;\n\tuniform float aoMapIntensity;\n#endif"; + +var begin_vertex = "vec3 transformed = vec3( position );"; + +var beginnormal_vertex = "vec3 objectNormal = vec3( normal );\n#ifdef USE_TANGENT\n\tvec3 objectTangent = vec3( tangent.xyz );\n#endif"; + +var bsdfs = "vec2 integrateSpecularBRDF( const in float dotNV, const in float roughness ) {\n\tconst vec4 c0 = vec4( - 1, - 0.0275, - 0.572, 0.022 );\n\tconst vec4 c1 = vec4( 1, 0.0425, 1.04, - 0.04 );\n\tvec4 r = roughness * c0 + c1;\n\tfloat a004 = min( r.x * r.x, exp2( - 9.28 * dotNV ) ) * r.x + r.y;\n\treturn vec2( -1.04, 1.04 ) * a004 + r.zw;\n}\nfloat punctualLightIntensityToIrradianceFactor( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) {\n#if defined ( PHYSICALLY_CORRECT_LIGHTS )\n\tfloat distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 );\n\tif( cutoffDistance > 0.0 ) {\n\t\tdistanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) );\n\t}\n\treturn distanceFalloff;\n#else\n\tif( cutoffDistance > 0.0 && decayExponent > 0.0 ) {\n\t\treturn pow( saturate( -lightDistance / cutoffDistance + 1.0 ), decayExponent );\n\t}\n\treturn 1.0;\n#endif\n}\nvec3 BRDF_Diffuse_Lambert( const in vec3 diffuseColor ) {\n\treturn RECIPROCAL_PI * diffuseColor;\n}\nvec3 F_Schlick( const in vec3 specularColor, const in float dotLH ) {\n\tfloat fresnel = exp2( ( -5.55473 * dotLH - 6.98316 ) * dotLH );\n\treturn ( 1.0 - specularColor ) * fresnel + specularColor;\n}\nvec3 F_Schlick_RoughnessDependent( const in vec3 F0, const in float dotNV, const in float roughness ) {\n\tfloat fresnel = exp2( ( -5.55473 * dotNV - 6.98316 ) * dotNV );\n\tvec3 Fr = max( vec3( 1.0 - roughness ), F0 ) - F0;\n\treturn Fr * fresnel + F0;\n}\nfloat G_GGX_Smith( const in float alpha, const in float dotNL, const in float dotNV ) {\n\tfloat a2 = pow2( alpha );\n\tfloat gl = dotNL + sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );\n\tfloat gv = dotNV + sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );\n\treturn 1.0 / ( gl * gv );\n}\nfloat G_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) {\n\tfloat a2 = pow2( alpha );\n\tfloat gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );\n\tfloat gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );\n\treturn 0.5 / max( gv + gl, EPSILON );\n}\nfloat D_GGX( const in float alpha, const in float dotNH ) {\n\tfloat a2 = pow2( alpha );\n\tfloat denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0;\n\treturn RECIPROCAL_PI * a2 / pow2( denom );\n}\nvec3 BRDF_Specular_GGX( const in IncidentLight incidentLight, const in vec3 viewDir, const in vec3 normal, const in vec3 specularColor, const in float roughness ) {\n\tfloat alpha = pow2( roughness );\n\tvec3 halfDir = normalize( incidentLight.direction + viewDir );\n\tfloat dotNL = saturate( dot( normal, incidentLight.direction ) );\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat dotLH = saturate( dot( incidentLight.direction, halfDir ) );\n\tvec3 F = F_Schlick( specularColor, dotLH );\n\tfloat G = G_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n\tfloat D = D_GGX( alpha, dotNH );\n\treturn F * ( G * D );\n}\nvec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) {\n\tconst float LUT_SIZE = 64.0;\n\tconst float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE;\n\tconst float LUT_BIAS = 0.5 / LUT_SIZE;\n\tfloat dotNV = saturate( dot( N, V ) );\n\tvec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) );\n\tuv = uv * LUT_SCALE + LUT_BIAS;\n\treturn uv;\n}\nfloat LTC_ClippedSphereFormFactor( const in vec3 f ) {\n\tfloat l = length( f );\n\treturn max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 );\n}\nvec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) {\n\tfloat x = dot( v1, v2 );\n\tfloat y = abs( x );\n\tfloat a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y;\n\tfloat b = 3.4175940 + ( 4.1616724 + y ) * y;\n\tfloat v = a / b;\n\tfloat theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v;\n\treturn cross( v1, v2 ) * theta_sintheta;\n}\nvec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) {\n\tvec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ];\n\tvec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ];\n\tvec3 lightNormal = cross( v1, v2 );\n\tif( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 );\n\tvec3 T1, T2;\n\tT1 = normalize( V - N * dot( V, N ) );\n\tT2 = - cross( N, T1 );\n\tmat3 mat = mInv * transposeMat3( mat3( T1, T2, N ) );\n\tvec3 coords[ 4 ];\n\tcoords[ 0 ] = mat * ( rectCoords[ 0 ] - P );\n\tcoords[ 1 ] = mat * ( rectCoords[ 1 ] - P );\n\tcoords[ 2 ] = mat * ( rectCoords[ 2 ] - P );\n\tcoords[ 3 ] = mat * ( rectCoords[ 3 ] - P );\n\tcoords[ 0 ] = normalize( coords[ 0 ] );\n\tcoords[ 1 ] = normalize( coords[ 1 ] );\n\tcoords[ 2 ] = normalize( coords[ 2 ] );\n\tcoords[ 3 ] = normalize( coords[ 3 ] );\n\tvec3 vectorFormFactor = vec3( 0.0 );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] );\n\tfloat result = LTC_ClippedSphereFormFactor( vectorFormFactor );\n\treturn vec3( result );\n}\nvec3 BRDF_Specular_GGX_Environment( const in vec3 viewDir, const in vec3 normal, const in vec3 specularColor, const in float roughness ) {\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tvec2 brdf = integrateSpecularBRDF( dotNV, roughness );\n\treturn specularColor * brdf.x + brdf.y;\n}\nvoid BRDF_Specular_Multiscattering_Environment( const in GeometricContext geometry, const in vec3 specularColor, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n\tfloat dotNV = saturate( dot( geometry.normal, geometry.viewDir ) );\n\tvec3 F = F_Schlick_RoughnessDependent( specularColor, dotNV, roughness );\n\tvec2 brdf = integrateSpecularBRDF( dotNV, roughness );\n\tvec3 FssEss = F * brdf.x + brdf.y;\n\tfloat Ess = brdf.x + brdf.y;\n\tfloat Ems = 1.0 - Ess;\n\tvec3 Favg = specularColor + ( 1.0 - specularColor ) * 0.047619;\tvec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg );\n\tsingleScatter += FssEss;\n\tmultiScatter += Fms * Ems;\n}\nfloat G_BlinnPhong_Implicit( ) {\n\treturn 0.25;\n}\nfloat D_BlinnPhong( const in float shininess, const in float dotNH ) {\n\treturn RECIPROCAL_PI * ( shininess * 0.5 + 1.0 ) * pow( dotNH, shininess );\n}\nvec3 BRDF_Specular_BlinnPhong( const in IncidentLight incidentLight, const in GeometricContext geometry, const in vec3 specularColor, const in float shininess ) {\n\tvec3 halfDir = normalize( incidentLight.direction + geometry.viewDir );\n\tfloat dotNH = saturate( dot( geometry.normal, halfDir ) );\n\tfloat dotLH = saturate( dot( incidentLight.direction, halfDir ) );\n\tvec3 F = F_Schlick( specularColor, dotLH );\n\tfloat G = G_BlinnPhong_Implicit( );\n\tfloat D = D_BlinnPhong( shininess, dotNH );\n\treturn F * ( G * D );\n}\nfloat GGXRoughnessToBlinnExponent( const in float ggxRoughness ) {\n\treturn ( 2.0 / pow2( ggxRoughness + 0.0001 ) - 2.0 );\n}\nfloat BlinnExponentToGGXRoughness( const in float blinnExponent ) {\n\treturn sqrt( 2.0 / ( blinnExponent + 2.0 ) );\n}\n#if defined( USE_SHEEN )\nfloat D_Charlie(float roughness, float NoH) {\n\tfloat invAlpha = 1.0 / roughness;\n\tfloat cos2h = NoH * NoH;\n\tfloat sin2h = max(1.0 - cos2h, 0.0078125);\treturn (2.0 + invAlpha) * pow(sin2h, invAlpha * 0.5) / (2.0 * PI);\n}\nfloat V_Neubelt(float NoV, float NoL) {\n\treturn saturate(1.0 / (4.0 * (NoL + NoV - NoL * NoV)));\n}\nvec3 BRDF_Specular_Sheen( const in float roughness, const in vec3 L, const in GeometricContext geometry, vec3 specularColor ) {\n\tvec3 N = geometry.normal;\n\tvec3 V = geometry.viewDir;\n\tvec3 H = normalize( V + L );\n\tfloat dotNH = saturate( dot( N, H ) );\n\treturn specularColor * D_Charlie( roughness, dotNH ) * V_Neubelt( dot(N, V), dot(N, L) );\n}\n#endif"; + +var bumpmap_pars_fragment = "#ifdef USE_BUMPMAP\n\tuniform sampler2D bumpMap;\n\tuniform float bumpScale;\n\tvec2 dHdxy_fwd() {\n\t\tvec2 dSTdx = dFdx( vUv );\n\t\tvec2 dSTdy = dFdy( vUv );\n\t\tfloat Hll = bumpScale * texture2D( bumpMap, vUv ).x;\n\t\tfloat dBx = bumpScale * texture2D( bumpMap, vUv + dSTdx ).x - Hll;\n\t\tfloat dBy = bumpScale * texture2D( bumpMap, vUv + dSTdy ).x - Hll;\n\t\treturn vec2( dBx, dBy );\n\t}\n\tvec3 perturbNormalArb( vec3 surf_pos, vec3 surf_norm, vec2 dHdxy ) {\n\t\tvec3 vSigmaX = vec3( dFdx( surf_pos.x ), dFdx( surf_pos.y ), dFdx( surf_pos.z ) );\n\t\tvec3 vSigmaY = vec3( dFdy( surf_pos.x ), dFdy( surf_pos.y ), dFdy( surf_pos.z ) );\n\t\tvec3 vN = surf_norm;\n\t\tvec3 R1 = cross( vSigmaY, vN );\n\t\tvec3 R2 = cross( vN, vSigmaX );\n\t\tfloat fDet = dot( vSigmaX, R1 );\n\t\tfDet *= ( float( gl_FrontFacing ) * 2.0 - 1.0 );\n\t\tvec3 vGrad = sign( fDet ) * ( dHdxy.x * R1 + dHdxy.y * R2 );\n\t\treturn normalize( abs( fDet ) * surf_norm - vGrad );\n\t}\n#endif"; + +var clipping_planes_fragment = "#if NUM_CLIPPING_PLANES > 0\n\tvec4 plane;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {\n\t\tplane = clippingPlanes[ i ];\n\t\tif ( dot( vClipPosition, plane.xyz ) > plane.w ) discard;\n\t}\n\t#pragma unroll_loop_end\n\t#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES\n\t\tbool clipped = true;\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {\n\t\t\tplane = clippingPlanes[ i ];\n\t\t\tclipped = ( dot( vClipPosition, plane.xyz ) > plane.w ) && clipped;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t\tif ( clipped ) discard;\n\t#endif\n#endif"; + +var clipping_planes_pars_fragment = "#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n\tuniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ];\n#endif"; + +var clipping_planes_pars_vertex = "#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n#endif"; + +var clipping_planes_vertex = "#if NUM_CLIPPING_PLANES > 0\n\tvClipPosition = - mvPosition.xyz;\n#endif"; + +var color_fragment = "#ifdef USE_COLOR\n\tdiffuseColor.rgb *= vColor;\n#endif"; + +var color_pars_fragment = "#ifdef USE_COLOR\n\tvarying vec3 vColor;\n#endif"; + +var color_pars_vertex = "#if defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )\n\tvarying vec3 vColor;\n#endif"; + +var color_vertex = "#if defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )\n\tvColor = vec3( 1.0 );\n#endif\n#ifdef USE_COLOR\n\tvColor.xyz *= color.xyz;\n#endif\n#ifdef USE_INSTANCING_COLOR\n\tvColor.xyz *= instanceColor.xyz;\n#endif"; + +var common = "#define PI 3.141592653589793\n#define PI2 6.283185307179586\n#define PI_HALF 1.5707963267948966\n#define RECIPROCAL_PI 0.3183098861837907\n#define RECIPROCAL_PI2 0.15915494309189535\n#define EPSILON 1e-6\n#ifndef saturate\n#define saturate(a) clamp( a, 0.0, 1.0 )\n#endif\n#define whiteComplement(a) ( 1.0 - saturate( a ) )\nfloat pow2( const in float x ) { return x*x; }\nfloat pow3( const in float x ) { return x*x*x; }\nfloat pow4( const in float x ) { float x2 = x*x; return x2*x2; }\nfloat average( const in vec3 color ) { return dot( color, vec3( 0.3333 ) ); }\nhighp float rand( const in vec2 uv ) {\n\tconst highp float a = 12.9898, b = 78.233, c = 43758.5453;\n\thighp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI );\n\treturn fract(sin(sn) * c);\n}\n#ifdef HIGH_PRECISION\n\tfloat precisionSafeLength( vec3 v ) { return length( v ); }\n#else\n\tfloat max3( vec3 v ) { return max( max( v.x, v.y ), v.z ); }\n\tfloat precisionSafeLength( vec3 v ) {\n\t\tfloat maxComponent = max3( abs( v ) );\n\t\treturn length( v / maxComponent ) * maxComponent;\n\t}\n#endif\nstruct IncidentLight {\n\tvec3 color;\n\tvec3 direction;\n\tbool visible;\n};\nstruct ReflectedLight {\n\tvec3 directDiffuse;\n\tvec3 directSpecular;\n\tvec3 indirectDiffuse;\n\tvec3 indirectSpecular;\n};\nstruct GeometricContext {\n\tvec3 position;\n\tvec3 normal;\n\tvec3 viewDir;\n#ifdef CLEARCOAT\n\tvec3 clearcoatNormal;\n#endif\n};\nvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n}\nvec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( vec4( dir, 0.0 ) * matrix ).xyz );\n}\nvec3 projectOnPlane(in vec3 point, in vec3 pointOnPlane, in vec3 planeNormal ) {\n\tfloat distance = dot( planeNormal, point - pointOnPlane );\n\treturn - distance * planeNormal + point;\n}\nfloat sideOfPlane( in vec3 point, in vec3 pointOnPlane, in vec3 planeNormal ) {\n\treturn sign( dot( point - pointOnPlane, planeNormal ) );\n}\nvec3 linePlaneIntersect( in vec3 pointOnLine, in vec3 lineDirection, in vec3 pointOnPlane, in vec3 planeNormal ) {\n\treturn lineDirection * ( dot( planeNormal, pointOnPlane - pointOnLine ) / dot( planeNormal, lineDirection ) ) + pointOnLine;\n}\nmat3 transposeMat3( const in mat3 m ) {\n\tmat3 tmp;\n\ttmp[ 0 ] = vec3( m[ 0 ].x, m[ 1 ].x, m[ 2 ].x );\n\ttmp[ 1 ] = vec3( m[ 0 ].y, m[ 1 ].y, m[ 2 ].y );\n\ttmp[ 2 ] = vec3( m[ 0 ].z, m[ 1 ].z, m[ 2 ].z );\n\treturn tmp;\n}\nfloat linearToRelativeLuminance( const in vec3 color ) {\n\tvec3 weights = vec3( 0.2126, 0.7152, 0.0722 );\n\treturn dot( weights, color.rgb );\n}\nbool isPerspectiveMatrix( mat4 m ) {\n\treturn m[ 2 ][ 3 ] == - 1.0;\n}\nvec2 equirectUv( in vec3 dir ) {\n\tfloat u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5;\n\tfloat v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5;\n\treturn vec2( u, v );\n}"; + +var cube_uv_reflection_fragment = "#ifdef ENVMAP_TYPE_CUBE_UV\n\t#define cubeUV_maxMipLevel 8.0\n\t#define cubeUV_minMipLevel 4.0\n\t#define cubeUV_maxTileSize 256.0\n\t#define cubeUV_minTileSize 16.0\n\tfloat getFace( vec3 direction ) {\n\t\tvec3 absDirection = abs( direction );\n\t\tfloat face = - 1.0;\n\t\tif ( absDirection.x > absDirection.z ) {\n\t\t\tif ( absDirection.x > absDirection.y )\n\t\t\t\tface = direction.x > 0.0 ? 0.0 : 3.0;\n\t\t\telse\n\t\t\t\tface = direction.y > 0.0 ? 1.0 : 4.0;\n\t\t} else {\n\t\t\tif ( absDirection.z > absDirection.y )\n\t\t\t\tface = direction.z > 0.0 ? 2.0 : 5.0;\n\t\t\telse\n\t\t\t\tface = direction.y > 0.0 ? 1.0 : 4.0;\n\t\t}\n\t\treturn face;\n\t}\n\tvec2 getUV( vec3 direction, float face ) {\n\t\tvec2 uv;\n\t\tif ( face == 0.0 ) {\n\t\t\tuv = vec2( direction.z, direction.y ) / abs( direction.x );\n\t\t} else if ( face == 1.0 ) {\n\t\t\tuv = vec2( - direction.x, - direction.z ) / abs( direction.y );\n\t\t} else if ( face == 2.0 ) {\n\t\t\tuv = vec2( - direction.x, direction.y ) / abs( direction.z );\n\t\t} else if ( face == 3.0 ) {\n\t\t\tuv = vec2( - direction.z, direction.y ) / abs( direction.x );\n\t\t} else if ( face == 4.0 ) {\n\t\t\tuv = vec2( - direction.x, direction.z ) / abs( direction.y );\n\t\t} else {\n\t\t\tuv = vec2( direction.x, direction.y ) / abs( direction.z );\n\t\t}\n\t\treturn 0.5 * ( uv + 1.0 );\n\t}\n\tvec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) {\n\t\tfloat face = getFace( direction );\n\t\tfloat filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 );\n\t\tmipInt = max( mipInt, cubeUV_minMipLevel );\n\t\tfloat faceSize = exp2( mipInt );\n\t\tfloat texelSize = 1.0 / ( 3.0 * cubeUV_maxTileSize );\n\t\tvec2 uv = getUV( direction, face ) * ( faceSize - 1.0 );\n\t\tvec2 f = fract( uv );\n\t\tuv += 0.5 - f;\n\t\tif ( face > 2.0 ) {\n\t\t\tuv.y += faceSize;\n\t\t\tface -= 3.0;\n\t\t}\n\t\tuv.x += face * faceSize;\n\t\tif ( mipInt < cubeUV_maxMipLevel ) {\n\t\t\tuv.y += 2.0 * cubeUV_maxTileSize;\n\t\t}\n\t\tuv.y += filterInt * 2.0 * cubeUV_minTileSize;\n\t\tuv.x += 3.0 * max( 0.0, cubeUV_maxTileSize - 2.0 * faceSize );\n\t\tuv *= texelSize;\n\t\tvec3 tl = envMapTexelToLinear( texture2D( envMap, uv ) ).rgb;\n\t\tuv.x += texelSize;\n\t\tvec3 tr = envMapTexelToLinear( texture2D( envMap, uv ) ).rgb;\n\t\tuv.y += texelSize;\n\t\tvec3 br = envMapTexelToLinear( texture2D( envMap, uv ) ).rgb;\n\t\tuv.x -= texelSize;\n\t\tvec3 bl = envMapTexelToLinear( texture2D( envMap, uv ) ).rgb;\n\t\tvec3 tm = mix( tl, tr, f.x );\n\t\tvec3 bm = mix( bl, br, f.x );\n\t\treturn mix( tm, bm, f.y );\n\t}\n\t#define r0 1.0\n\t#define v0 0.339\n\t#define m0 - 2.0\n\t#define r1 0.8\n\t#define v1 0.276\n\t#define m1 - 1.0\n\t#define r4 0.4\n\t#define v4 0.046\n\t#define m4 2.0\n\t#define r5 0.305\n\t#define v5 0.016\n\t#define m5 3.0\n\t#define r6 0.21\n\t#define v6 0.0038\n\t#define m6 4.0\n\tfloat roughnessToMip( float roughness ) {\n\t\tfloat mip = 0.0;\n\t\tif ( roughness >= r1 ) {\n\t\t\tmip = ( r0 - roughness ) * ( m1 - m0 ) / ( r0 - r1 ) + m0;\n\t\t} else if ( roughness >= r4 ) {\n\t\t\tmip = ( r1 - roughness ) * ( m4 - m1 ) / ( r1 - r4 ) + m1;\n\t\t} else if ( roughness >= r5 ) {\n\t\t\tmip = ( r4 - roughness ) * ( m5 - m4 ) / ( r4 - r5 ) + m4;\n\t\t} else if ( roughness >= r6 ) {\n\t\t\tmip = ( r5 - roughness ) * ( m6 - m5 ) / ( r5 - r6 ) + m5;\n\t\t} else {\n\t\t\tmip = - 2.0 * log2( 1.16 * roughness );\t\t}\n\t\treturn mip;\n\t}\n\tvec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) {\n\t\tfloat mip = clamp( roughnessToMip( roughness ), m0, cubeUV_maxMipLevel );\n\t\tfloat mipF = fract( mip );\n\t\tfloat mipInt = floor( mip );\n\t\tvec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt );\n\t\tif ( mipF == 0.0 ) {\n\t\t\treturn vec4( color0, 1.0 );\n\t\t} else {\n\t\t\tvec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 );\n\t\t\treturn vec4( mix( color0, color1, mipF ), 1.0 );\n\t\t}\n\t}\n#endif"; + +var defaultnormal_vertex = "vec3 transformedNormal = objectNormal;\n#ifdef USE_INSTANCING\n\tmat3 m = mat3( instanceMatrix );\n\ttransformedNormal /= vec3( dot( m[ 0 ], m[ 0 ] ), dot( m[ 1 ], m[ 1 ] ), dot( m[ 2 ], m[ 2 ] ) );\n\ttransformedNormal = m * transformedNormal;\n#endif\ntransformedNormal = normalMatrix * transformedNormal;\n#ifdef FLIP_SIDED\n\ttransformedNormal = - transformedNormal;\n#endif\n#ifdef USE_TANGENT\n\tvec3 transformedTangent = ( modelViewMatrix * vec4( objectTangent, 0.0 ) ).xyz;\n\t#ifdef FLIP_SIDED\n\t\ttransformedTangent = - transformedTangent;\n\t#endif\n#endif"; + +var displacementmap_pars_vertex = "#ifdef USE_DISPLACEMENTMAP\n\tuniform sampler2D displacementMap;\n\tuniform float displacementScale;\n\tuniform float displacementBias;\n#endif"; + +var displacementmap_vertex = "#ifdef USE_DISPLACEMENTMAP\n\ttransformed += normalize( objectNormal ) * ( texture2D( displacementMap, vUv ).x * displacementScale + displacementBias );\n#endif"; + +var emissivemap_fragment = "#ifdef USE_EMISSIVEMAP\n\tvec4 emissiveColor = texture2D( emissiveMap, vUv );\n\temissiveColor.rgb = emissiveMapTexelToLinear( emissiveColor ).rgb;\n\ttotalEmissiveRadiance *= emissiveColor.rgb;\n#endif"; + +var emissivemap_pars_fragment = "#ifdef USE_EMISSIVEMAP\n\tuniform sampler2D emissiveMap;\n#endif"; + +var encodings_fragment = "gl_FragColor = linearToOutputTexel( gl_FragColor );"; + +var encodings_pars_fragment = "\nvec4 LinearToLinear( in vec4 value ) {\n\treturn value;\n}\nvec4 GammaToLinear( in vec4 value, in float gammaFactor ) {\n\treturn vec4( pow( value.rgb, vec3( gammaFactor ) ), value.a );\n}\nvec4 LinearToGamma( in vec4 value, in float gammaFactor ) {\n\treturn vec4( pow( value.rgb, vec3( 1.0 / gammaFactor ) ), value.a );\n}\nvec4 sRGBToLinear( in vec4 value ) {\n\treturn vec4( mix( pow( value.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), value.rgb * 0.0773993808, vec3( lessThanEqual( value.rgb, vec3( 0.04045 ) ) ) ), value.a );\n}\nvec4 LinearTosRGB( in vec4 value ) {\n\treturn vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a );\n}\nvec4 RGBEToLinear( in vec4 value ) {\n\treturn vec4( value.rgb * exp2( value.a * 255.0 - 128.0 ), 1.0 );\n}\nvec4 LinearToRGBE( in vec4 value ) {\n\tfloat maxComponent = max( max( value.r, value.g ), value.b );\n\tfloat fExp = clamp( ceil( log2( maxComponent ) ), -128.0, 127.0 );\n\treturn vec4( value.rgb / exp2( fExp ), ( fExp + 128.0 ) / 255.0 );\n}\nvec4 RGBMToLinear( in vec4 value, in float maxRange ) {\n\treturn vec4( value.rgb * value.a * maxRange, 1.0 );\n}\nvec4 LinearToRGBM( in vec4 value, in float maxRange ) {\n\tfloat maxRGB = max( value.r, max( value.g, value.b ) );\n\tfloat M = clamp( maxRGB / maxRange, 0.0, 1.0 );\n\tM = ceil( M * 255.0 ) / 255.0;\n\treturn vec4( value.rgb / ( M * maxRange ), M );\n}\nvec4 RGBDToLinear( in vec4 value, in float maxRange ) {\n\treturn vec4( value.rgb * ( ( maxRange / 255.0 ) / value.a ), 1.0 );\n}\nvec4 LinearToRGBD( in vec4 value, in float maxRange ) {\n\tfloat maxRGB = max( value.r, max( value.g, value.b ) );\n\tfloat D = max( maxRange / maxRGB, 1.0 );\n\tD = clamp( floor( D ) / 255.0, 0.0, 1.0 );\n\treturn vec4( value.rgb * ( D * ( 255.0 / maxRange ) ), D );\n}\nconst mat3 cLogLuvM = mat3( 0.2209, 0.3390, 0.4184, 0.1138, 0.6780, 0.7319, 0.0102, 0.1130, 0.2969 );\nvec4 LinearToLogLuv( in vec4 value ) {\n\tvec3 Xp_Y_XYZp = cLogLuvM * value.rgb;\n\tXp_Y_XYZp = max( Xp_Y_XYZp, vec3( 1e-6, 1e-6, 1e-6 ) );\n\tvec4 vResult;\n\tvResult.xy = Xp_Y_XYZp.xy / Xp_Y_XYZp.z;\n\tfloat Le = 2.0 * log2(Xp_Y_XYZp.y) + 127.0;\n\tvResult.w = fract( Le );\n\tvResult.z = ( Le - ( floor( vResult.w * 255.0 ) ) / 255.0 ) / 255.0;\n\treturn vResult;\n}\nconst mat3 cLogLuvInverseM = mat3( 6.0014, -2.7008, -1.7996, -1.3320, 3.1029, -5.7721, 0.3008, -1.0882, 5.6268 );\nvec4 LogLuvToLinear( in vec4 value ) {\n\tfloat Le = value.z * 255.0 + value.w;\n\tvec3 Xp_Y_XYZp;\n\tXp_Y_XYZp.y = exp2( ( Le - 127.0 ) / 2.0 );\n\tXp_Y_XYZp.z = Xp_Y_XYZp.y / value.y;\n\tXp_Y_XYZp.x = value.x * Xp_Y_XYZp.z;\n\tvec3 vRGB = cLogLuvInverseM * Xp_Y_XYZp.rgb;\n\treturn vec4( max( vRGB, 0.0 ), 1.0 );\n}"; + +var envmap_fragment = "#ifdef USE_ENVMAP\n\t#ifdef ENV_WORLDPOS\n\t\tvec3 cameraToFrag;\n\t\tif ( isOrthographic ) {\n\t\t\tcameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n\t\t} else {\n\t\t\tcameraToFrag = normalize( vWorldPosition - cameraPosition );\n\t\t}\n\t\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvec3 reflectVec = reflect( cameraToFrag, worldNormal );\n\t\t#else\n\t\t\tvec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio );\n\t\t#endif\n\t#else\n\t\tvec3 reflectVec = vReflect;\n\t#endif\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tvec4 envColor = textureCube( envMap, vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) );\n\t#elif defined( ENVMAP_TYPE_CUBE_UV )\n\t\tvec4 envColor = textureCubeUV( envMap, reflectVec, 0.0 );\n\t#else\n\t\tvec4 envColor = vec4( 0.0 );\n\t#endif\n\t#ifndef ENVMAP_TYPE_CUBE_UV\n\t\tenvColor = envMapTexelToLinear( envColor );\n\t#endif\n\t#ifdef ENVMAP_BLENDING_MULTIPLY\n\t\toutgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_MIX )\n\t\toutgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_ADD )\n\t\toutgoingLight += envColor.xyz * specularStrength * reflectivity;\n\t#endif\n#endif"; + +var envmap_common_pars_fragment = "#ifdef USE_ENVMAP\n\tuniform float envMapIntensity;\n\tuniform float flipEnvMap;\n\tuniform int maxMipLevel;\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tuniform samplerCube envMap;\n\t#else\n\t\tuniform sampler2D envMap;\n\t#endif\n\t\n#endif"; + +var envmap_pars_fragment = "#ifdef USE_ENVMAP\n\tuniform float reflectivity;\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG )\n\t\t#define ENV_WORLDPOS\n\t#endif\n\t#ifdef ENV_WORLDPOS\n\t\tvarying vec3 vWorldPosition;\n\t\tuniform float refractionRatio;\n\t#else\n\t\tvarying vec3 vReflect;\n\t#endif\n#endif"; + +var envmap_pars_vertex = "#ifdef USE_ENVMAP\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) ||defined( PHONG )\n\t\t#define ENV_WORLDPOS\n\t#endif\n\t#ifdef ENV_WORLDPOS\n\t\t\n\t\tvarying vec3 vWorldPosition;\n\t#else\n\t\tvarying vec3 vReflect;\n\t\tuniform float refractionRatio;\n\t#endif\n#endif"; + +var envmap_vertex = "#ifdef USE_ENVMAP\n\t#ifdef ENV_WORLDPOS\n\t\tvWorldPosition = worldPosition.xyz;\n\t#else\n\t\tvec3 cameraToVertex;\n\t\tif ( isOrthographic ) {\n\t\t\tcameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n\t\t} else {\n\t\t\tcameraToVertex = normalize( worldPosition.xyz - cameraPosition );\n\t\t}\n\t\tvec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvReflect = reflect( cameraToVertex, worldNormal );\n\t\t#else\n\t\t\tvReflect = refract( cameraToVertex, worldNormal, refractionRatio );\n\t\t#endif\n\t#endif\n#endif"; + +var fog_vertex = "#ifdef USE_FOG\n\tfogDepth = - mvPosition.z;\n#endif"; + +var fog_pars_vertex = "#ifdef USE_FOG\n\tvarying float fogDepth;\n#endif"; + +var fog_fragment = "#ifdef USE_FOG\n\t#ifdef FOG_EXP2\n\t\tfloat fogFactor = 1.0 - exp( - fogDensity * fogDensity * fogDepth * fogDepth );\n\t#else\n\t\tfloat fogFactor = smoothstep( fogNear, fogFar, fogDepth );\n\t#endif\n\tgl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor );\n#endif"; + +var fog_pars_fragment = "#ifdef USE_FOG\n\tuniform vec3 fogColor;\n\tvarying float fogDepth;\n\t#ifdef FOG_EXP2\n\t\tuniform float fogDensity;\n\t#else\n\t\tuniform float fogNear;\n\t\tuniform float fogFar;\n\t#endif\n#endif"; + +var gradientmap_pars_fragment = "#ifdef USE_GRADIENTMAP\n\tuniform sampler2D gradientMap;\n#endif\nvec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) {\n\tfloat dotNL = dot( normal, lightDirection );\n\tvec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 );\n\t#ifdef USE_GRADIENTMAP\n\t\treturn texture2D( gradientMap, coord ).rgb;\n\t#else\n\t\treturn ( coord.x < 0.7 ) ? vec3( 0.7 ) : vec3( 1.0 );\n\t#endif\n}"; + +var lightmap_fragment = "#ifdef USE_LIGHTMAP\n\tvec4 lightMapTexel= texture2D( lightMap, vUv2 );\n\treflectedLight.indirectDiffuse += PI * lightMapTexelToLinear( lightMapTexel ).rgb * lightMapIntensity;\n#endif"; + +var lightmap_pars_fragment = "#ifdef USE_LIGHTMAP\n\tuniform sampler2D lightMap;\n\tuniform float lightMapIntensity;\n#endif"; + +var lights_lambert_vertex = "vec3 diffuse = vec3( 1.0 );\nGeometricContext geometry;\ngeometry.position = mvPosition.xyz;\ngeometry.normal = normalize( transformedNormal );\ngeometry.viewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( -mvPosition.xyz );\nGeometricContext backGeometry;\nbackGeometry.position = geometry.position;\nbackGeometry.normal = -geometry.normal;\nbackGeometry.viewDir = geometry.viewDir;\nvLightFront = vec3( 0.0 );\nvIndirectFront = vec3( 0.0 );\n#ifdef DOUBLE_SIDED\n\tvLightBack = vec3( 0.0 );\n\tvIndirectBack = vec3( 0.0 );\n#endif\nIncidentLight directLight;\nfloat dotNL;\nvec3 directLightColor_Diffuse;\nvIndirectFront += getAmbientLightIrradiance( ambientLightColor );\nvIndirectFront += getLightProbeIrradiance( lightProbe, geometry );\n#ifdef DOUBLE_SIDED\n\tvIndirectBack += getAmbientLightIrradiance( ambientLightColor );\n\tvIndirectBack += getLightProbeIrradiance( lightProbe, backGeometry );\n#endif\n#if NUM_POINT_LIGHTS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n\t\tgetPointDirectLightIrradiance( pointLights[ i ], geometry, directLight );\n\t\tdotNL = dot( geometry.normal, directLight.direction );\n\t\tdirectLightColor_Diffuse = PI * directLight.color;\n\t\tvLightFront += saturate( dotNL ) * directLightColor_Diffuse;\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvLightBack += saturate( -dotNL ) * directLightColor_Diffuse;\n\t\t#endif\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if NUM_SPOT_LIGHTS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n\t\tgetSpotDirectLightIrradiance( spotLights[ i ], geometry, directLight );\n\t\tdotNL = dot( geometry.normal, directLight.direction );\n\t\tdirectLightColor_Diffuse = PI * directLight.color;\n\t\tvLightFront += saturate( dotNL ) * directLightColor_Diffuse;\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvLightBack += saturate( -dotNL ) * directLightColor_Diffuse;\n\t\t#endif\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if NUM_DIR_LIGHTS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n\t\tgetDirectionalDirectLightIrradiance( directionalLights[ i ], geometry, directLight );\n\t\tdotNL = dot( geometry.normal, directLight.direction );\n\t\tdirectLightColor_Diffuse = PI * directLight.color;\n\t\tvLightFront += saturate( dotNL ) * directLightColor_Diffuse;\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvLightBack += saturate( -dotNL ) * directLightColor_Diffuse;\n\t\t#endif\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if NUM_HEMI_LIGHTS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\n\t\tvIndirectFront += getHemisphereLightIrradiance( hemisphereLights[ i ], geometry );\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvIndirectBack += getHemisphereLightIrradiance( hemisphereLights[ i ], backGeometry );\n\t\t#endif\n\t}\n\t#pragma unroll_loop_end\n#endif"; + +var lights_pars_begin = "uniform bool receiveShadow;\nuniform vec3 ambientLightColor;\nuniform vec3 lightProbe[ 9 ];\nvec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) {\n\tfloat x = normal.x, y = normal.y, z = normal.z;\n\tvec3 result = shCoefficients[ 0 ] * 0.886227;\n\tresult += shCoefficients[ 1 ] * 2.0 * 0.511664 * y;\n\tresult += shCoefficients[ 2 ] * 2.0 * 0.511664 * z;\n\tresult += shCoefficients[ 3 ] * 2.0 * 0.511664 * x;\n\tresult += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y;\n\tresult += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z;\n\tresult += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 );\n\tresult += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z;\n\tresult += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y );\n\treturn result;\n}\nvec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in GeometricContext geometry ) {\n\tvec3 worldNormal = inverseTransformDirection( geometry.normal, viewMatrix );\n\tvec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe );\n\treturn irradiance;\n}\nvec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) {\n\tvec3 irradiance = ambientLightColor;\n\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\tirradiance *= PI;\n\t#endif\n\treturn irradiance;\n}\n#if NUM_DIR_LIGHTS > 0\n\tstruct DirectionalLight {\n\t\tvec3 direction;\n\t\tvec3 color;\n\t};\n\tuniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ];\n\tvoid getDirectionalDirectLightIrradiance( const in DirectionalLight directionalLight, const in GeometricContext geometry, out IncidentLight directLight ) {\n\t\tdirectLight.color = directionalLight.color;\n\t\tdirectLight.direction = directionalLight.direction;\n\t\tdirectLight.visible = true;\n\t}\n#endif\n#if NUM_POINT_LIGHTS > 0\n\tstruct PointLight {\n\t\tvec3 position;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t};\n\tuniform PointLight pointLights[ NUM_POINT_LIGHTS ];\n\tvoid getPointDirectLightIrradiance( const in PointLight pointLight, const in GeometricContext geometry, out IncidentLight directLight ) {\n\t\tvec3 lVector = pointLight.position - geometry.position;\n\t\tdirectLight.direction = normalize( lVector );\n\t\tfloat lightDistance = length( lVector );\n\t\tdirectLight.color = pointLight.color;\n\t\tdirectLight.color *= punctualLightIntensityToIrradianceFactor( lightDistance, pointLight.distance, pointLight.decay );\n\t\tdirectLight.visible = ( directLight.color != vec3( 0.0 ) );\n\t}\n#endif\n#if NUM_SPOT_LIGHTS > 0\n\tstruct SpotLight {\n\t\tvec3 position;\n\t\tvec3 direction;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t\tfloat coneCos;\n\t\tfloat penumbraCos;\n\t};\n\tuniform SpotLight spotLights[ NUM_SPOT_LIGHTS ];\n\tvoid getSpotDirectLightIrradiance( const in SpotLight spotLight, const in GeometricContext geometry, out IncidentLight directLight ) {\n\t\tvec3 lVector = spotLight.position - geometry.position;\n\t\tdirectLight.direction = normalize( lVector );\n\t\tfloat lightDistance = length( lVector );\n\t\tfloat angleCos = dot( directLight.direction, spotLight.direction );\n\t\tif ( angleCos > spotLight.coneCos ) {\n\t\t\tfloat spotEffect = smoothstep( spotLight.coneCos, spotLight.penumbraCos, angleCos );\n\t\t\tdirectLight.color = spotLight.color;\n\t\t\tdirectLight.color *= spotEffect * punctualLightIntensityToIrradianceFactor( lightDistance, spotLight.distance, spotLight.decay );\n\t\t\tdirectLight.visible = true;\n\t\t} else {\n\t\t\tdirectLight.color = vec3( 0.0 );\n\t\t\tdirectLight.visible = false;\n\t\t}\n\t}\n#endif\n#if NUM_RECT_AREA_LIGHTS > 0\n\tstruct RectAreaLight {\n\t\tvec3 color;\n\t\tvec3 position;\n\t\tvec3 halfWidth;\n\t\tvec3 halfHeight;\n\t};\n\tuniform sampler2D ltc_1;\tuniform sampler2D ltc_2;\n\tuniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ];\n#endif\n#if NUM_HEMI_LIGHTS > 0\n\tstruct HemisphereLight {\n\t\tvec3 direction;\n\t\tvec3 skyColor;\n\t\tvec3 groundColor;\n\t};\n\tuniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ];\n\tvec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in GeometricContext geometry ) {\n\t\tfloat dotNL = dot( geometry.normal, hemiLight.direction );\n\t\tfloat hemiDiffuseWeight = 0.5 * dotNL + 0.5;\n\t\tvec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight );\n\t\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\t\tirradiance *= PI;\n\t\t#endif\n\t\treturn irradiance;\n\t}\n#endif"; + +var envmap_physical_pars_fragment = "#if defined( USE_ENVMAP )\n\t#ifdef ENVMAP_MODE_REFRACTION\n\t\tuniform float refractionRatio;\n\t#endif\n\tvec3 getLightProbeIndirectIrradiance( const in GeometricContext geometry, const in int maxMIPLevel ) {\n\t\tvec3 worldNormal = inverseTransformDirection( geometry.normal, viewMatrix );\n\t\t#ifdef ENVMAP_TYPE_CUBE\n\t\t\tvec3 queryVec = vec3( flipEnvMap * worldNormal.x, worldNormal.yz );\n\t\t\t#ifdef TEXTURE_LOD_EXT\n\t\t\t\tvec4 envMapColor = textureCubeLodEXT( envMap, queryVec, float( maxMIPLevel ) );\n\t\t\t#else\n\t\t\t\tvec4 envMapColor = textureCube( envMap, queryVec, float( maxMIPLevel ) );\n\t\t\t#endif\n\t\t\tenvMapColor.rgb = envMapTexelToLinear( envMapColor ).rgb;\n\t\t#elif defined( ENVMAP_TYPE_CUBE_UV )\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, worldNormal, 1.0 );\n\t\t#else\n\t\t\tvec4 envMapColor = vec4( 0.0 );\n\t\t#endif\n\t\treturn PI * envMapColor.rgb * envMapIntensity;\n\t}\n\tfloat getSpecularMIPLevel( const in float roughness, const in int maxMIPLevel ) {\n\t\tfloat maxMIPLevelScalar = float( maxMIPLevel );\n\t\tfloat sigma = PI * roughness * roughness / ( 1.0 + roughness );\n\t\tfloat desiredMIPLevel = maxMIPLevelScalar + log2( sigma );\n\t\treturn clamp( desiredMIPLevel, 0.0, maxMIPLevelScalar );\n\t}\n\tvec3 getLightProbeIndirectRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness, const in int maxMIPLevel ) {\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvec3 reflectVec = reflect( -viewDir, normal );\n\t\t\treflectVec = normalize( mix( reflectVec, normal, roughness * roughness) );\n\t\t#else\n\t\t\tvec3 reflectVec = refract( -viewDir, normal, refractionRatio );\n\t\t#endif\n\t\treflectVec = inverseTransformDirection( reflectVec, viewMatrix );\n\t\tfloat specularMIPLevel = getSpecularMIPLevel( roughness, maxMIPLevel );\n\t\t#ifdef ENVMAP_TYPE_CUBE\n\t\t\tvec3 queryReflectVec = vec3( flipEnvMap * reflectVec.x, reflectVec.yz );\n\t\t\t#ifdef TEXTURE_LOD_EXT\n\t\t\t\tvec4 envMapColor = textureCubeLodEXT( envMap, queryReflectVec, specularMIPLevel );\n\t\t\t#else\n\t\t\t\tvec4 envMapColor = textureCube( envMap, queryReflectVec, specularMIPLevel );\n\t\t\t#endif\n\t\t\tenvMapColor.rgb = envMapTexelToLinear( envMapColor ).rgb;\n\t\t#elif defined( ENVMAP_TYPE_CUBE_UV )\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, reflectVec, roughness );\n\t\t#endif\n\t\treturn envMapColor.rgb * envMapIntensity;\n\t}\n#endif"; + +var lights_toon_fragment = "ToonMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;"; + +var lights_toon_pars_fragment = "varying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\nstruct ToonMaterial {\n\tvec3 diffuseColor;\n};\nvoid RE_Direct_Toon( const in IncidentLight directLight, const in GeometricContext geometry, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n\tvec3 irradiance = getGradientIrradiance( geometry.normal, directLight.direction ) * directLight.color;\n\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\tirradiance *= PI;\n\t#endif\n\treflectedLight.directDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in GeometricContext geometry, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_Toon\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Toon\n#define Material_LightProbeLOD( material )\t(0)"; + +var lights_phong_fragment = "BlinnPhongMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularColor = specular;\nmaterial.specularShininess = shininess;\nmaterial.specularStrength = specularStrength;"; + +var lights_phong_pars_fragment = "varying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\nstruct BlinnPhongMaterial {\n\tvec3 diffuseColor;\n\tvec3 specularColor;\n\tfloat specularShininess;\n\tfloat specularStrength;\n};\nvoid RE_Direct_BlinnPhong( const in IncidentLight directLight, const in GeometricContext geometry, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometry.normal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\tirradiance *= PI;\n\t#endif\n\treflectedLight.directDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\n\treflectedLight.directSpecular += irradiance * BRDF_Specular_BlinnPhong( directLight, geometry, material.specularColor, material.specularShininess ) * material.specularStrength;\n}\nvoid RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in GeometricContext geometry, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_BlinnPhong\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_BlinnPhong\n#define Material_LightProbeLOD( material )\t(0)"; + +var lights_physical_fragment = "PhysicalMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor );\nvec3 dxy = max( abs( dFdx( geometryNormal ) ), abs( dFdy( geometryNormal ) ) );\nfloat geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z );\nmaterial.specularRoughness = max( roughnessFactor, 0.0525 );material.specularRoughness += geometryRoughness;\nmaterial.specularRoughness = min( material.specularRoughness, 1.0 );\n#ifdef REFLECTIVITY\n\tmaterial.specularColor = mix( vec3( MAXIMUM_SPECULAR_COEFFICIENT * pow2( reflectivity ) ), diffuseColor.rgb, metalnessFactor );\n#else\n\tmaterial.specularColor = mix( vec3( DEFAULT_SPECULAR_COEFFICIENT ), diffuseColor.rgb, metalnessFactor );\n#endif\n#ifdef CLEARCOAT\n\tmaterial.clearcoat = clearcoat;\n\tmaterial.clearcoatRoughness = clearcoatRoughness;\n\t#ifdef USE_CLEARCOATMAP\n\t\tmaterial.clearcoat *= texture2D( clearcoatMap, vUv ).x;\n\t#endif\n\t#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\t\tmaterial.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vUv ).y;\n\t#endif\n\tmaterial.clearcoat = saturate( material.clearcoat );\tmaterial.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 );\n\tmaterial.clearcoatRoughness += geometryRoughness;\n\tmaterial.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 );\n#endif\n#ifdef USE_SHEEN\n\tmaterial.sheenColor = sheen;\n#endif"; + +var lights_physical_pars_fragment = "struct PhysicalMaterial {\n\tvec3 diffuseColor;\n\tfloat specularRoughness;\n\tvec3 specularColor;\n#ifdef CLEARCOAT\n\tfloat clearcoat;\n\tfloat clearcoatRoughness;\n#endif\n#ifdef USE_SHEEN\n\tvec3 sheenColor;\n#endif\n};\n#define MAXIMUM_SPECULAR_COEFFICIENT 0.16\n#define DEFAULT_SPECULAR_COEFFICIENT 0.04\nfloat clearcoatDHRApprox( const in float roughness, const in float dotNL ) {\n\treturn DEFAULT_SPECULAR_COEFFICIENT + ( 1.0 - DEFAULT_SPECULAR_COEFFICIENT ) * ( pow( 1.0 - dotNL, 5.0 ) * pow( 1.0 - roughness, 2.0 ) );\n}\n#if NUM_RECT_AREA_LIGHTS > 0\n\tvoid RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\t\tvec3 normal = geometry.normal;\n\t\tvec3 viewDir = geometry.viewDir;\n\t\tvec3 position = geometry.position;\n\t\tvec3 lightPos = rectAreaLight.position;\n\t\tvec3 halfWidth = rectAreaLight.halfWidth;\n\t\tvec3 halfHeight = rectAreaLight.halfHeight;\n\t\tvec3 lightColor = rectAreaLight.color;\n\t\tfloat roughness = material.specularRoughness;\n\t\tvec3 rectCoords[ 4 ];\n\t\trectCoords[ 0 ] = lightPos + halfWidth - halfHeight;\t\trectCoords[ 1 ] = lightPos - halfWidth - halfHeight;\n\t\trectCoords[ 2 ] = lightPos - halfWidth + halfHeight;\n\t\trectCoords[ 3 ] = lightPos + halfWidth + halfHeight;\n\t\tvec2 uv = LTC_Uv( normal, viewDir, roughness );\n\t\tvec4 t1 = texture2D( ltc_1, uv );\n\t\tvec4 t2 = texture2D( ltc_2, uv );\n\t\tmat3 mInv = mat3(\n\t\t\tvec3( t1.x, 0, t1.y ),\n\t\t\tvec3( 0, 1, 0 ),\n\t\t\tvec3( t1.z, 0, t1.w )\n\t\t);\n\t\tvec3 fresnel = ( material.specularColor * t2.x + ( vec3( 1.0 ) - material.specularColor ) * t2.y );\n\t\treflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords );\n\t\treflectedLight.directDiffuse += lightColor * material.diffuseColor * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords );\n\t}\n#endif\nvoid RE_Direct_Physical( const in IncidentLight directLight, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometry.normal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\tirradiance *= PI;\n\t#endif\n\t#ifdef CLEARCOAT\n\t\tfloat ccDotNL = saturate( dot( geometry.clearcoatNormal, directLight.direction ) );\n\t\tvec3 ccIrradiance = ccDotNL * directLight.color;\n\t\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\t\tccIrradiance *= PI;\n\t\t#endif\n\t\tfloat clearcoatDHR = material.clearcoat * clearcoatDHRApprox( material.clearcoatRoughness, ccDotNL );\n\t\treflectedLight.directSpecular += ccIrradiance * material.clearcoat * BRDF_Specular_GGX( directLight, geometry.viewDir, geometry.clearcoatNormal, vec3( DEFAULT_SPECULAR_COEFFICIENT ), material.clearcoatRoughness );\n\t#else\n\t\tfloat clearcoatDHR = 0.0;\n\t#endif\n\t#ifdef USE_SHEEN\n\t\treflectedLight.directSpecular += ( 1.0 - clearcoatDHR ) * irradiance * BRDF_Specular_Sheen(\n\t\t\tmaterial.specularRoughness,\n\t\t\tdirectLight.direction,\n\t\t\tgeometry,\n\t\t\tmaterial.sheenColor\n\t\t);\n\t#else\n\t\treflectedLight.directSpecular += ( 1.0 - clearcoatDHR ) * irradiance * BRDF_Specular_GGX( directLight, geometry.viewDir, geometry.normal, material.specularColor, material.specularRoughness);\n\t#endif\n\treflectedLight.directDiffuse += ( 1.0 - clearcoatDHR ) * irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) {\n\t#ifdef CLEARCOAT\n\t\tfloat ccDotNV = saturate( dot( geometry.clearcoatNormal, geometry.viewDir ) );\n\t\treflectedLight.indirectSpecular += clearcoatRadiance * material.clearcoat * BRDF_Specular_GGX_Environment( geometry.viewDir, geometry.clearcoatNormal, vec3( DEFAULT_SPECULAR_COEFFICIENT ), material.clearcoatRoughness );\n\t\tfloat ccDotNL = ccDotNV;\n\t\tfloat clearcoatDHR = material.clearcoat * clearcoatDHRApprox( material.clearcoatRoughness, ccDotNL );\n\t#else\n\t\tfloat clearcoatDHR = 0.0;\n\t#endif\n\tfloat clearcoatInv = 1.0 - clearcoatDHR;\n\tvec3 singleScattering = vec3( 0.0 );\n\tvec3 multiScattering = vec3( 0.0 );\n\tvec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI;\n\tBRDF_Specular_Multiscattering_Environment( geometry, material.specularColor, material.specularRoughness, singleScattering, multiScattering );\n\tvec3 diffuse = material.diffuseColor * ( 1.0 - ( singleScattering + multiScattering ) );\n\treflectedLight.indirectSpecular += clearcoatInv * radiance * singleScattering;\n\treflectedLight.indirectSpecular += multiScattering * cosineWeightedIrradiance;\n\treflectedLight.indirectDiffuse += diffuse * cosineWeightedIrradiance;\n}\n#define RE_Direct\t\t\t\tRE_Direct_Physical\n#define RE_Direct_RectArea\t\tRE_Direct_RectArea_Physical\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Physical\n#define RE_IndirectSpecular\t\tRE_IndirectSpecular_Physical\nfloat computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) {\n\treturn saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion );\n}"; + +var lights_fragment_begin = "\nGeometricContext geometry;\ngeometry.position = - vViewPosition;\ngeometry.normal = normal;\ngeometry.viewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition );\n#ifdef CLEARCOAT\n\tgeometry.clearcoatNormal = clearcoatNormal;\n#endif\nIncidentLight directLight;\n#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct )\n\tPointLight pointLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0\n\tPointLightShadow pointLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n\t\tpointLight = pointLights[ i ];\n\t\tgetPointDirectLightIrradiance( pointLight, geometry, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS )\n\t\tpointLightShadow = pointLightShadows[ i ];\n\t\tdirectLight.color *= all( bvec2( directLight.visible, receiveShadow ) ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct )\n\tSpotLight spotLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0\n\tSpotLightShadow spotLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n\t\tspotLight = spotLights[ i ];\n\t\tgetSpotDirectLightIrradiance( spotLight, geometry, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\tspotLightShadow = spotLightShadows[ i ];\n\t\tdirectLight.color *= all( bvec2( directLight.visible, receiveShadow ) ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotShadowCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct )\n\tDirectionalLight directionalLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0\n\tDirectionalLightShadow directionalLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n\t\tdirectionalLight = directionalLights[ i ];\n\t\tgetDirectionalDirectLightIrradiance( directionalLight, geometry, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS )\n\t\tdirectionalLightShadow = directionalLightShadows[ i ];\n\t\tdirectLight.color *= all( bvec2( directLight.visible, receiveShadow ) ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea )\n\tRectAreaLight rectAreaLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) {\n\t\trectAreaLight = rectAreaLights[ i ];\n\t\tRE_Direct_RectArea( rectAreaLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if defined( RE_IndirectDiffuse )\n\tvec3 iblIrradiance = vec3( 0.0 );\n\tvec3 irradiance = getAmbientLightIrradiance( ambientLightColor );\n\tirradiance += getLightProbeIrradiance( lightProbe, geometry );\n\t#if ( NUM_HEMI_LIGHTS > 0 )\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\n\t\t\tirradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometry );\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n#endif\n#if defined( RE_IndirectSpecular )\n\tvec3 radiance = vec3( 0.0 );\n\tvec3 clearcoatRadiance = vec3( 0.0 );\n#endif"; + +var lights_fragment_maps = "#if defined( RE_IndirectDiffuse )\n\t#ifdef USE_LIGHTMAP\n\t\tvec4 lightMapTexel= texture2D( lightMap, vUv2 );\n\t\tvec3 lightMapIrradiance = lightMapTexelToLinear( lightMapTexel ).rgb * lightMapIntensity;\n\t\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\t\tlightMapIrradiance *= PI;\n\t\t#endif\n\t\tirradiance += lightMapIrradiance;\n\t#endif\n\t#if defined( USE_ENVMAP ) && defined( STANDARD ) && defined( ENVMAP_TYPE_CUBE_UV )\n\t\tiblIrradiance += getLightProbeIndirectIrradiance( geometry, maxMipLevel );\n\t#endif\n#endif\n#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular )\n\tradiance += getLightProbeIndirectRadiance( geometry.viewDir, geometry.normal, material.specularRoughness, maxMipLevel );\n\t#ifdef CLEARCOAT\n\t\tclearcoatRadiance += getLightProbeIndirectRadiance( geometry.viewDir, geometry.clearcoatNormal, material.clearcoatRoughness, maxMipLevel );\n\t#endif\n#endif"; + +var lights_fragment_end = "#if defined( RE_IndirectDiffuse )\n\tRE_IndirectDiffuse( irradiance, geometry, material, reflectedLight );\n#endif\n#if defined( RE_IndirectSpecular )\n\tRE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometry, material, reflectedLight );\n#endif"; + +var logdepthbuf_fragment = "#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )\n\tgl_FragDepthEXT = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5;\n#endif"; + +var logdepthbuf_pars_fragment = "#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )\n\tuniform float logDepthBufFC;\n\tvarying float vFragDepth;\n\tvarying float vIsPerspective;\n#endif"; + +var logdepthbuf_pars_vertex = "#ifdef USE_LOGDEPTHBUF\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvarying float vFragDepth;\n\t\tvarying float vIsPerspective;\n\t#else\n\t\tuniform float logDepthBufFC;\n\t#endif\n#endif"; + +var logdepthbuf_vertex = "#ifdef USE_LOGDEPTHBUF\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvFragDepth = 1.0 + gl_Position.w;\n\t\tvIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) );\n\t#else\n\t\tif ( isPerspectiveMatrix( projectionMatrix ) ) {\n\t\t\tgl_Position.z = log2( max( EPSILON, gl_Position.w + 1.0 ) ) * logDepthBufFC - 1.0;\n\t\t\tgl_Position.z *= gl_Position.w;\n\t\t}\n\t#endif\n#endif"; + +var map_fragment = "#ifdef USE_MAP\n\tvec4 texelColor = texture2D( map, vUv );\n\ttexelColor = mapTexelToLinear( texelColor );\n\tdiffuseColor *= texelColor;\n#endif"; + +var map_pars_fragment = "#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif"; + +var map_particle_fragment = "#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\tvec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy;\n#endif\n#ifdef USE_MAP\n\tvec4 mapTexel = texture2D( map, uv );\n\tdiffuseColor *= mapTexelToLinear( mapTexel );\n#endif\n#ifdef USE_ALPHAMAP\n\tdiffuseColor.a *= texture2D( alphaMap, uv ).g;\n#endif"; + +var map_particle_pars_fragment = "#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\tuniform mat3 uvTransform;\n#endif\n#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif\n#ifdef USE_ALPHAMAP\n\tuniform sampler2D alphaMap;\n#endif"; + +var metalnessmap_fragment = "float metalnessFactor = metalness;\n#ifdef USE_METALNESSMAP\n\tvec4 texelMetalness = texture2D( metalnessMap, vUv );\n\tmetalnessFactor *= texelMetalness.b;\n#endif"; + +var metalnessmap_pars_fragment = "#ifdef USE_METALNESSMAP\n\tuniform sampler2D metalnessMap;\n#endif"; + +var morphnormal_vertex = "#ifdef USE_MORPHNORMALS\n\tobjectNormal *= morphTargetBaseInfluence;\n\tobjectNormal += morphNormal0 * morphTargetInfluences[ 0 ];\n\tobjectNormal += morphNormal1 * morphTargetInfluences[ 1 ];\n\tobjectNormal += morphNormal2 * morphTargetInfluences[ 2 ];\n\tobjectNormal += morphNormal3 * morphTargetInfluences[ 3 ];\n#endif"; + +var morphtarget_pars_vertex = "#ifdef USE_MORPHTARGETS\n\tuniform float morphTargetBaseInfluence;\n\t#ifndef USE_MORPHNORMALS\n\t\tuniform float morphTargetInfluences[ 8 ];\n\t#else\n\t\tuniform float morphTargetInfluences[ 4 ];\n\t#endif\n#endif"; + +var morphtarget_vertex = "#ifdef USE_MORPHTARGETS\n\ttransformed *= morphTargetBaseInfluence;\n\ttransformed += morphTarget0 * morphTargetInfluences[ 0 ];\n\ttransformed += morphTarget1 * morphTargetInfluences[ 1 ];\n\ttransformed += morphTarget2 * morphTargetInfluences[ 2 ];\n\ttransformed += morphTarget3 * morphTargetInfluences[ 3 ];\n\t#ifndef USE_MORPHNORMALS\n\t\ttransformed += morphTarget4 * morphTargetInfluences[ 4 ];\n\t\ttransformed += morphTarget5 * morphTargetInfluences[ 5 ];\n\t\ttransformed += morphTarget6 * morphTargetInfluences[ 6 ];\n\t\ttransformed += morphTarget7 * morphTargetInfluences[ 7 ];\n\t#endif\n#endif"; + +var normal_fragment_begin = "#ifdef FLAT_SHADED\n\tvec3 fdx = vec3( dFdx( vViewPosition.x ), dFdx( vViewPosition.y ), dFdx( vViewPosition.z ) );\n\tvec3 fdy = vec3( dFdy( vViewPosition.x ), dFdy( vViewPosition.y ), dFdy( vViewPosition.z ) );\n\tvec3 normal = normalize( cross( fdx, fdy ) );\n#else\n\tvec3 normal = normalize( vNormal );\n\t#ifdef DOUBLE_SIDED\n\t\tnormal = normal * ( float( gl_FrontFacing ) * 2.0 - 1.0 );\n\t#endif\n\t#ifdef USE_TANGENT\n\t\tvec3 tangent = normalize( vTangent );\n\t\tvec3 bitangent = normalize( vBitangent );\n\t\t#ifdef DOUBLE_SIDED\n\t\t\ttangent = tangent * ( float( gl_FrontFacing ) * 2.0 - 1.0 );\n\t\t\tbitangent = bitangent * ( float( gl_FrontFacing ) * 2.0 - 1.0 );\n\t\t#endif\n\t\t#if defined( TANGENTSPACE_NORMALMAP ) || defined( USE_CLEARCOAT_NORMALMAP )\n\t\t\tmat3 vTBN = mat3( tangent, bitangent, normal );\n\t\t#endif\n\t#endif\n#endif\nvec3 geometryNormal = normal;"; + +var normal_fragment_maps = "#ifdef OBJECTSPACE_NORMALMAP\n\tnormal = texture2D( normalMap, vUv ).xyz * 2.0 - 1.0;\n\t#ifdef FLIP_SIDED\n\t\tnormal = - normal;\n\t#endif\n\t#ifdef DOUBLE_SIDED\n\t\tnormal = normal * ( float( gl_FrontFacing ) * 2.0 - 1.0 );\n\t#endif\n\tnormal = normalize( normalMatrix * normal );\n#elif defined( TANGENTSPACE_NORMALMAP )\n\tvec3 mapN = texture2D( normalMap, vUv ).xyz * 2.0 - 1.0;\n\tmapN.xy *= normalScale;\n\t#ifdef USE_TANGENT\n\t\tnormal = normalize( vTBN * mapN );\n\t#else\n\t\tnormal = perturbNormal2Arb( -vViewPosition, normal, mapN );\n\t#endif\n#elif defined( USE_BUMPMAP )\n\tnormal = perturbNormalArb( -vViewPosition, normal, dHdxy_fwd() );\n#endif"; + +var normalmap_pars_fragment = "#ifdef USE_NORMALMAP\n\tuniform sampler2D normalMap;\n\tuniform vec2 normalScale;\n#endif\n#ifdef OBJECTSPACE_NORMALMAP\n\tuniform mat3 normalMatrix;\n#endif\n#if ! defined ( USE_TANGENT ) && ( defined ( TANGENTSPACE_NORMALMAP ) || defined ( USE_CLEARCOAT_NORMALMAP ) )\n\tvec3 perturbNormal2Arb( vec3 eye_pos, vec3 surf_norm, vec3 mapN ) {\n\t\tvec3 q0 = vec3( dFdx( eye_pos.x ), dFdx( eye_pos.y ), dFdx( eye_pos.z ) );\n\t\tvec3 q1 = vec3( dFdy( eye_pos.x ), dFdy( eye_pos.y ), dFdy( eye_pos.z ) );\n\t\tvec2 st0 = dFdx( vUv.st );\n\t\tvec2 st1 = dFdy( vUv.st );\n\t\tfloat scale = sign( st1.t * st0.s - st0.t * st1.s );\n\t\tvec3 S = normalize( ( q0 * st1.t - q1 * st0.t ) * scale );\n\t\tvec3 T = normalize( ( - q0 * st1.s + q1 * st0.s ) * scale );\n\t\tvec3 N = normalize( surf_norm );\n\t\tmat3 tsn = mat3( S, T, N );\n\t\tmapN.xy *= ( float( gl_FrontFacing ) * 2.0 - 1.0 );\n\t\treturn normalize( tsn * mapN );\n\t}\n#endif"; + +var clearcoat_normal_fragment_begin = "#ifdef CLEARCOAT\n\tvec3 clearcoatNormal = geometryNormal;\n#endif"; + +var clearcoat_normal_fragment_maps = "#ifdef USE_CLEARCOAT_NORMALMAP\n\tvec3 clearcoatMapN = texture2D( clearcoatNormalMap, vUv ).xyz * 2.0 - 1.0;\n\tclearcoatMapN.xy *= clearcoatNormalScale;\n\t#ifdef USE_TANGENT\n\t\tclearcoatNormal = normalize( vTBN * clearcoatMapN );\n\t#else\n\t\tclearcoatNormal = perturbNormal2Arb( - vViewPosition, clearcoatNormal, clearcoatMapN );\n\t#endif\n#endif"; + +var clearcoat_pars_fragment = "#ifdef USE_CLEARCOATMAP\n\tuniform sampler2D clearcoatMap;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tuniform sampler2D clearcoatRoughnessMap;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tuniform sampler2D clearcoatNormalMap;\n\tuniform vec2 clearcoatNormalScale;\n#endif"; + +var packing = "vec3 packNormalToRGB( const in vec3 normal ) {\n\treturn normalize( normal ) * 0.5 + 0.5;\n}\nvec3 unpackRGBToNormal( const in vec3 rgb ) {\n\treturn 2.0 * rgb.xyz - 1.0;\n}\nconst float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.;\nconst vec3 PackFactors = vec3( 256. * 256. * 256., 256. * 256., 256. );\nconst vec4 UnpackFactors = UnpackDownscale / vec4( PackFactors, 1. );\nconst float ShiftRight8 = 1. / 256.;\nvec4 packDepthToRGBA( const in float v ) {\n\tvec4 r = vec4( fract( v * PackFactors ), v );\n\tr.yzw -= r.xyz * ShiftRight8;\treturn r * PackUpscale;\n}\nfloat unpackRGBAToDepth( const in vec4 v ) {\n\treturn dot( v, UnpackFactors );\n}\nvec4 pack2HalfToRGBA( vec2 v ) {\n\tvec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ));\n\treturn vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w);\n}\nvec2 unpackRGBATo2Half( vec4 v ) {\n\treturn vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) );\n}\nfloat viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn ( viewZ + near ) / ( near - far );\n}\nfloat orthographicDepthToViewZ( const in float linearClipZ, const in float near, const in float far ) {\n\treturn linearClipZ * ( near - far ) - near;\n}\nfloat viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn (( near + viewZ ) * far ) / (( far - near ) * viewZ );\n}\nfloat perspectiveDepthToViewZ( const in float invClipZ, const in float near, const in float far ) {\n\treturn ( near * far ) / ( ( far - near ) * invClipZ - far );\n}"; + +var premultiplied_alpha_fragment = "#ifdef PREMULTIPLIED_ALPHA\n\tgl_FragColor.rgb *= gl_FragColor.a;\n#endif"; + +var project_vertex = "vec4 mvPosition = vec4( transformed, 1.0 );\n#ifdef USE_INSTANCING\n\tmvPosition = instanceMatrix * mvPosition;\n#endif\nmvPosition = modelViewMatrix * mvPosition;\ngl_Position = projectionMatrix * mvPosition;"; + +var dithering_fragment = "#ifdef DITHERING\n\tgl_FragColor.rgb = dithering( gl_FragColor.rgb );\n#endif"; + +var dithering_pars_fragment = "#ifdef DITHERING\n\tvec3 dithering( vec3 color ) {\n\t\tfloat grid_position = rand( gl_FragCoord.xy );\n\t\tvec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 );\n\t\tdither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position );\n\t\treturn color + dither_shift_RGB;\n\t}\n#endif"; + +var roughnessmap_fragment = "float roughnessFactor = roughness;\n#ifdef USE_ROUGHNESSMAP\n\tvec4 texelRoughness = texture2D( roughnessMap, vUv );\n\troughnessFactor *= texelRoughness.g;\n#endif"; + +var roughnessmap_pars_fragment = "#ifdef USE_ROUGHNESSMAP\n\tuniform sampler2D roughnessMap;\n#endif"; + +var shadowmap_pars_fragment = "#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tstruct DirectionalLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vSpotShadowCoord[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tstruct SpotLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tstruct PointLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t\tfloat shadowCameraNear;\n\t\t\tfloat shadowCameraFar;\n\t\t};\n\t\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n\t#endif\n\tfloat texture2DCompare( sampler2D depths, vec2 uv, float compare ) {\n\t\treturn step( compare, unpackRGBAToDepth( texture2D( depths, uv ) ) );\n\t}\n\tvec2 texture2DDistribution( sampler2D shadow, vec2 uv ) {\n\t\treturn unpackRGBATo2Half( texture2D( shadow, uv ) );\n\t}\n\tfloat VSMShadow (sampler2D shadow, vec2 uv, float compare ){\n\t\tfloat occlusion = 1.0;\n\t\tvec2 distribution = texture2DDistribution( shadow, uv );\n\t\tfloat hard_shadow = step( compare , distribution.x );\n\t\tif (hard_shadow != 1.0 ) {\n\t\t\tfloat distance = compare - distribution.x ;\n\t\t\tfloat variance = max( 0.00000, distribution.y * distribution.y );\n\t\t\tfloat softness_probability = variance / (variance + distance * distance );\t\t\tsoftness_probability = clamp( ( softness_probability - 0.3 ) / ( 0.95 - 0.3 ), 0.0, 1.0 );\t\t\tocclusion = clamp( max( hard_shadow, softness_probability ), 0.0, 1.0 );\n\t\t}\n\t\treturn occlusion;\n\t}\n\tfloat getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord ) {\n\t\tfloat shadow = 1.0;\n\t\tshadowCoord.xyz /= shadowCoord.w;\n\t\tshadowCoord.z += shadowBias;\n\t\tbvec4 inFrustumVec = bvec4 ( shadowCoord.x >= 0.0, shadowCoord.x <= 1.0, shadowCoord.y >= 0.0, shadowCoord.y <= 1.0 );\n\t\tbool inFrustum = all( inFrustumVec );\n\t\tbvec2 frustumTestVec = bvec2( inFrustum, shadowCoord.z <= 1.0 );\n\t\tbool frustumTest = all( frustumTestVec );\n\t\tif ( frustumTest ) {\n\t\t#if defined( SHADOWMAP_TYPE_PCF )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx0 = - texelSize.x * shadowRadius;\n\t\t\tfloat dy0 = - texelSize.y * shadowRadius;\n\t\t\tfloat dx1 = + texelSize.x * shadowRadius;\n\t\t\tfloat dy1 = + texelSize.y * shadowRadius;\n\t\t\tfloat dx2 = dx0 / 2.0;\n\t\t\tfloat dy2 = dy0 / 2.0;\n\t\t\tfloat dx3 = dx1 / 2.0;\n\t\t\tfloat dy3 = dy1 / 2.0;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z )\n\t\t\t) * ( 1.0 / 17.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_PCF_SOFT )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx = texelSize.x;\n\t\t\tfloat dy = texelSize.y;\n\t\t\tvec2 uv = shadowCoord.xy;\n\t\t\tvec2 f = fract( uv * shadowMapSize + 0.5 );\n\t\t\tuv -= f * texelSize;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, uv, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + vec2( dx, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + vec2( 0.0, dy ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + texelSize, shadowCoord.z ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, 0.0 ), shadowCoord.z ), \n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 0.0 ), shadowCoord.z ),\n\t\t\t\t\t f.x ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, dy ), shadowCoord.z ), \n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, dy ), shadowCoord.z ),\n\t\t\t\t\t f.x ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( 0.0, -dy ), shadowCoord.z ), \n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 0.0, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t f.y ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( dx, -dy ), shadowCoord.z ), \n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t f.y ) +\n\t\t\t\tmix( mix( texture2DCompare( shadowMap, uv + vec2( -dx, -dy ), shadowCoord.z ), \n\t\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t\t f.x ),\n\t\t\t\t\t mix( texture2DCompare( shadowMap, uv + vec2( -dx, 2.0 * dy ), shadowCoord.z ), \n\t\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t\t f.x ),\n\t\t\t\t\t f.y )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_VSM )\n\t\t\tshadow = VSMShadow( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#else\n\t\t\tshadow = texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#endif\n\t\t}\n\t\treturn shadow;\n\t}\n\tvec2 cubeToUV( vec3 v, float texelSizeY ) {\n\t\tvec3 absV = abs( v );\n\t\tfloat scaleToCube = 1.0 / max( absV.x, max( absV.y, absV.z ) );\n\t\tabsV *= scaleToCube;\n\t\tv *= scaleToCube * ( 1.0 - 2.0 * texelSizeY );\n\t\tvec2 planar = v.xy;\n\t\tfloat almostATexel = 1.5 * texelSizeY;\n\t\tfloat almostOne = 1.0 - almostATexel;\n\t\tif ( absV.z >= almostOne ) {\n\t\t\tif ( v.z > 0.0 )\n\t\t\t\tplanar.x = 4.0 - v.x;\n\t\t} else if ( absV.x >= almostOne ) {\n\t\t\tfloat signX = sign( v.x );\n\t\t\tplanar.x = v.z * signX + 2.0 * signX;\n\t\t} else if ( absV.y >= almostOne ) {\n\t\t\tfloat signY = sign( v.y );\n\t\t\tplanar.x = v.x + 2.0 * signY + 2.0;\n\t\t\tplanar.y = v.z * signY - 2.0;\n\t\t}\n\t\treturn vec2( 0.125, 0.25 ) * planar + vec2( 0.375, 0.75 );\n\t}\n\tfloat getPointShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) {\n\t\tvec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) );\n\t\tvec3 lightToPosition = shadowCoord.xyz;\n\t\tfloat dp = ( length( lightToPosition ) - shadowCameraNear ) / ( shadowCameraFar - shadowCameraNear );\t\tdp += shadowBias;\n\t\tvec3 bd3D = normalize( lightToPosition );\n\t\t#if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT ) || defined( SHADOWMAP_TYPE_VSM )\n\t\t\tvec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y;\n\t\t\treturn (\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#else\n\t\t\treturn texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp );\n\t\t#endif\n\t}\n#endif"; + +var shadowmap_pars_vertex = "#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\tuniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tstruct DirectionalLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t\tuniform mat4 spotShadowMatrix[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vSpotShadowCoord[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tstruct SpotLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\tuniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tstruct PointLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t\tfloat shadowCameraNear;\n\t\t\tfloat shadowCameraFar;\n\t\t};\n\t\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n\t#endif\n#endif"; + +var shadowmap_vertex = "#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0 || NUM_SPOT_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0\n\t\tvec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\t\tvec4 shadowWorldPosition;\n\t#endif\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 );\n\t\tvDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {\n\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias, 0 );\n\t\tvSpotShadowCoord[ i ] = spotShadowMatrix[ i ] * shadowWorldPosition;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 );\n\t\tvPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n#endif"; + +var shadowmask_pars_fragment = "float getShadowMask() {\n\tfloat shadow = 1.0;\n\t#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\tDirectionalLightShadow directionalLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\tdirectionalLight = directionalLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\tSpotLightShadow spotLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {\n\t\tspotLight = spotLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowBias, spotLight.shadowRadius, vSpotShadowCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\tPointLightShadow pointLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\tpointLight = pointLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#endif\n\treturn shadow;\n}"; + +var skinbase_vertex = "#ifdef USE_SKINNING\n\tmat4 boneMatX = getBoneMatrix( skinIndex.x );\n\tmat4 boneMatY = getBoneMatrix( skinIndex.y );\n\tmat4 boneMatZ = getBoneMatrix( skinIndex.z );\n\tmat4 boneMatW = getBoneMatrix( skinIndex.w );\n#endif"; + +var skinning_pars_vertex = "#ifdef USE_SKINNING\n\tuniform mat4 bindMatrix;\n\tuniform mat4 bindMatrixInverse;\n\t#ifdef BONE_TEXTURE\n\t\tuniform highp sampler2D boneTexture;\n\t\tuniform int boneTextureSize;\n\t\tmat4 getBoneMatrix( const in float i ) {\n\t\t\tfloat j = i * 4.0;\n\t\t\tfloat x = mod( j, float( boneTextureSize ) );\n\t\t\tfloat y = floor( j / float( boneTextureSize ) );\n\t\t\tfloat dx = 1.0 / float( boneTextureSize );\n\t\t\tfloat dy = 1.0 / float( boneTextureSize );\n\t\t\ty = dy * ( y + 0.5 );\n\t\t\tvec4 v1 = texture2D( boneTexture, vec2( dx * ( x + 0.5 ), y ) );\n\t\t\tvec4 v2 = texture2D( boneTexture, vec2( dx * ( x + 1.5 ), y ) );\n\t\t\tvec4 v3 = texture2D( boneTexture, vec2( dx * ( x + 2.5 ), y ) );\n\t\t\tvec4 v4 = texture2D( boneTexture, vec2( dx * ( x + 3.5 ), y ) );\n\t\t\tmat4 bone = mat4( v1, v2, v3, v4 );\n\t\t\treturn bone;\n\t\t}\n\t#else\n\t\tuniform mat4 boneMatrices[ MAX_BONES ];\n\t\tmat4 getBoneMatrix( const in float i ) {\n\t\t\tmat4 bone = boneMatrices[ int(i) ];\n\t\t\treturn bone;\n\t\t}\n\t#endif\n#endif"; + +var skinning_vertex = "#ifdef USE_SKINNING\n\tvec4 skinVertex = bindMatrix * vec4( transformed, 1.0 );\n\tvec4 skinned = vec4( 0.0 );\n\tskinned += boneMatX * skinVertex * skinWeight.x;\n\tskinned += boneMatY * skinVertex * skinWeight.y;\n\tskinned += boneMatZ * skinVertex * skinWeight.z;\n\tskinned += boneMatW * skinVertex * skinWeight.w;\n\ttransformed = ( bindMatrixInverse * skinned ).xyz;\n#endif"; + +var skinnormal_vertex = "#ifdef USE_SKINNING\n\tmat4 skinMatrix = mat4( 0.0 );\n\tskinMatrix += skinWeight.x * boneMatX;\n\tskinMatrix += skinWeight.y * boneMatY;\n\tskinMatrix += skinWeight.z * boneMatZ;\n\tskinMatrix += skinWeight.w * boneMatW;\n\tskinMatrix = bindMatrixInverse * skinMatrix * bindMatrix;\n\tobjectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz;\n\t#ifdef USE_TANGENT\n\t\tobjectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz;\n\t#endif\n#endif"; + +var specularmap_fragment = "float specularStrength;\n#ifdef USE_SPECULARMAP\n\tvec4 texelSpecular = texture2D( specularMap, vUv );\n\tspecularStrength = texelSpecular.r;\n#else\n\tspecularStrength = 1.0;\n#endif"; + +var specularmap_pars_fragment = "#ifdef USE_SPECULARMAP\n\tuniform sampler2D specularMap;\n#endif"; + +var tonemapping_fragment = "#if defined( TONE_MAPPING )\n\tgl_FragColor.rgb = toneMapping( gl_FragColor.rgb );\n#endif"; + +var tonemapping_pars_fragment = "#ifndef saturate\n#define saturate(a) clamp( a, 0.0, 1.0 )\n#endif\nuniform float toneMappingExposure;\nvec3 LinearToneMapping( vec3 color ) {\n\treturn toneMappingExposure * color;\n}\nvec3 ReinhardToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\treturn saturate( color / ( vec3( 1.0 ) + color ) );\n}\nvec3 OptimizedCineonToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\tcolor = max( vec3( 0.0 ), color - 0.004 );\n\treturn pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) );\n}\nvec3 RRTAndODTFit( vec3 v ) {\n\tvec3 a = v * ( v + 0.0245786 ) - 0.000090537;\n\tvec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081;\n\treturn a / b;\n}\nvec3 ACESFilmicToneMapping( vec3 color ) {\n\tconst mat3 ACESInputMat = mat3(\n\t\tvec3( 0.59719, 0.07600, 0.02840 ),\t\tvec3( 0.35458, 0.90834, 0.13383 ),\n\t\tvec3( 0.04823, 0.01566, 0.83777 )\n\t);\n\tconst mat3 ACESOutputMat = mat3(\n\t\tvec3( 1.60475, -0.10208, -0.00327 ),\t\tvec3( -0.53108, 1.10813, -0.07276 ),\n\t\tvec3( -0.07367, -0.00605, 1.07602 )\n\t);\n\tcolor *= toneMappingExposure / 0.6;\n\tcolor = ACESInputMat * color;\n\tcolor = RRTAndODTFit( color );\n\tcolor = ACESOutputMat * color;\n\treturn saturate( color );\n}\nvec3 CustomToneMapping( vec3 color ) { return color; }"; + +var transmissionmap_fragment = "#ifdef USE_TRANSMISSIONMAP\n\ttotalTransmission *= texture2D( transmissionMap, vUv ).r;\n#endif"; + +var transmissionmap_pars_fragment = "#ifdef USE_TRANSMISSIONMAP\n\tuniform sampler2D transmissionMap;\n#endif"; + +var uv_pars_fragment = "#if ( defined( USE_UV ) && ! defined( UVS_VERTEX_ONLY ) )\n\tvarying vec2 vUv;\n#endif"; + +var uv_pars_vertex = "#ifdef USE_UV\n\t#ifdef UVS_VERTEX_ONLY\n\t\tvec2 vUv;\n\t#else\n\t\tvarying vec2 vUv;\n\t#endif\n\tuniform mat3 uvTransform;\n#endif"; + +var uv_vertex = "#ifdef USE_UV\n\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n#endif"; + +var uv2_pars_fragment = "#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\n\tvarying vec2 vUv2;\n#endif"; + +var uv2_pars_vertex = "#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\n\tattribute vec2 uv2;\n\tvarying vec2 vUv2;\n\tuniform mat3 uv2Transform;\n#endif"; + +var uv2_vertex = "#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\n\tvUv2 = ( uv2Transform * vec3( uv2, 1 ) ).xy;\n#endif"; + +var worldpos_vertex = "#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP )\n\tvec4 worldPosition = vec4( transformed, 1.0 );\n\t#ifdef USE_INSTANCING\n\t\tworldPosition = instanceMatrix * worldPosition;\n\t#endif\n\tworldPosition = modelMatrix * worldPosition;\n#endif"; + +var background_frag = "uniform sampler2D t2D;\nvarying vec2 vUv;\nvoid main() {\n\tvec4 texColor = texture2D( t2D, vUv );\n\tgl_FragColor = mapTexelToLinear( texColor );\n\t#include \n\t#include \n}"; + +var background_vert = "varying vec2 vUv;\nuniform mat3 uvTransform;\nvoid main() {\n\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n\tgl_Position = vec4( position.xy, 1.0, 1.0 );\n}"; + +var cube_frag = "#include \nuniform float opacity;\nvarying vec3 vWorldDirection;\n#include \nvoid main() {\n\tvec3 vReflect = vWorldDirection;\n\t#include \n\tgl_FragColor = envColor;\n\tgl_FragColor.a *= opacity;\n\t#include \n\t#include \n}"; + +var cube_vert = "varying vec3 vWorldDirection;\n#include \nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include \n\t#include \n\tgl_Position.z = gl_Position.w;\n}"; + +var depth_frag = "#if DEPTH_PACKING == 3200\n\tuniform float opacity;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvarying vec2 vHighPrecisionZW;\nvoid main() {\n\t#include \n\tvec4 diffuseColor = vec4( 1.0 );\n\t#if DEPTH_PACKING == 3200\n\t\tdiffuseColor.a = opacity;\n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\tfloat fragCoordZ = 0.5 * vHighPrecisionZW[0] / vHighPrecisionZW[1] + 0.5;\n\t#if DEPTH_PACKING == 3200\n\t\tgl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity );\n\t#elif DEPTH_PACKING == 3201\n\t\tgl_FragColor = packDepthToRGBA( fragCoordZ );\n\t#endif\n}"; + +var depth_vert = "#include \n#include \n#include \n#include \n#include \n#include \n#include \nvarying vec2 vHighPrecisionZW;\nvoid main() {\n\t#include \n\t#include \n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include \n\t\t#include \n\t\t#include \n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvHighPrecisionZW = gl_Position.zw;\n}"; + +var distanceRGBA_frag = "#define DISTANCE\nuniform vec3 referencePosition;\nuniform float nearDistance;\nuniform float farDistance;\nvarying vec3 vWorldPosition;\n#include \n#include \n#include \n#include \n#include \n#include \nvoid main () {\n\t#include \n\tvec4 diffuseColor = vec4( 1.0 );\n\t#include \n\t#include \n\t#include \n\tfloat dist = length( vWorldPosition - referencePosition );\n\tdist = ( dist - nearDistance ) / ( farDistance - nearDistance );\n\tdist = saturate( dist );\n\tgl_FragColor = packDepthToRGBA( dist );\n}"; + +var distanceRGBA_vert = "#define DISTANCE\nvarying vec3 vWorldPosition;\n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include \n\t\t#include \n\t\t#include \n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvWorldPosition = worldPosition.xyz;\n}"; + +var equirect_frag = "uniform sampler2D tEquirect;\nvarying vec3 vWorldDirection;\n#include \nvoid main() {\n\tvec3 direction = normalize( vWorldDirection );\n\tvec2 sampleUV = equirectUv( direction );\n\tvec4 texColor = texture2D( tEquirect, sampleUV );\n\tgl_FragColor = mapTexelToLinear( texColor );\n\t#include \n\t#include \n}"; + +var equirect_vert = "varying vec3 vWorldDirection;\n#include \nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include \n\t#include \n}"; + +var linedashed_frag = "uniform vec3 diffuse;\nuniform float opacity;\nuniform float dashSize;\nuniform float totalSize;\nvarying float vLineDistance;\n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tif ( mod( vLineDistance, totalSize ) > dashSize ) {\n\t\tdiscard;\n\t}\n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\t#include \n\toutgoingLight = diffuseColor.rgb;\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include \n\t#include \n\t#include \n\t#include \n}"; + +var linedashed_vert = "uniform float scale;\nattribute float lineDistance;\nvarying float vLineDistance;\n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvLineDistance = scale * lineDistance;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}"; + +var meshbasic_frag = "uniform vec3 diffuse;\nuniform float opacity;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\t#ifdef USE_LIGHTMAP\n\t\n\t\tvec4 lightMapTexel= texture2D( lightMap, vUv2 );\n\t\treflectedLight.indirectDiffuse += lightMapTexelToLinear( lightMapTexel ).rgb * lightMapIntensity;\n\t#else\n\t\treflectedLight.indirectDiffuse += vec3( 1.0 );\n\t#endif\n\t#include \n\treflectedLight.indirectDiffuse *= diffuseColor.rgb;\n\tvec3 outgoingLight = reflectedLight.indirectDiffuse;\n\t#include \n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}"; + +var meshbasic_vert = "#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#ifdef USE_ENVMAP\n\t#include \n\t#include \n\t#include \n\t#include \n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}"; + +var meshlambert_frag = "uniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\nvarying vec3 vLightFront;\nvarying vec3 vIndirectFront;\n#ifdef DOUBLE_SIDED\n\tvarying vec3 vLightBack;\n\tvarying vec3 vIndirectBack;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#ifdef DOUBLE_SIDED\n\t\treflectedLight.indirectDiffuse += ( gl_FrontFacing ) ? vIndirectFront : vIndirectBack;\n\t#else\n\t\treflectedLight.indirectDiffuse += vIndirectFront;\n\t#endif\n\t#include \n\treflectedLight.indirectDiffuse *= BRDF_Diffuse_Lambert( diffuseColor.rgb );\n\t#ifdef DOUBLE_SIDED\n\t\treflectedLight.directDiffuse = ( gl_FrontFacing ) ? vLightFront : vLightBack;\n\t#else\n\t\treflectedLight.directDiffuse = vLightFront;\n\t#endif\n\treflectedLight.directDiffuse *= BRDF_Diffuse_Lambert( diffuseColor.rgb ) * getShadowMask();\n\t#include \n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\t#include \n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}"; + +var meshlambert_vert = "#define LAMBERT\nvarying vec3 vLightFront;\nvarying vec3 vIndirectFront;\n#ifdef DOUBLE_SIDED\n\tvarying vec3 vLightBack;\n\tvarying vec3 vIndirectBack;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}"; + +var meshmatcap_frag = "#define MATCAP\nuniform vec3 diffuse;\nuniform float opacity;\nuniform sampler2D matcap;\nvarying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 viewDir = normalize( vViewPosition );\n\tvec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) );\n\tvec3 y = cross( viewDir, x );\n\tvec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5;\n\t#ifdef USE_MATCAP\n\t\tvec4 matcapColor = texture2D( matcap, uv );\n\t\tmatcapColor = matcapTexelToLinear( matcapColor );\n\t#else\n\t\tvec4 matcapColor = vec4( 1.0 );\n\t#endif\n\tvec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb;\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}"; + +var meshmatcap_vert = "#define MATCAP\nvarying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#ifndef FLAT_SHADED\n\t\tvNormal = normalize( transformedNormal );\n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - mvPosition.xyz;\n}"; + +var meshtoon_frag = "#define TOON\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}"; + +var meshtoon_vert = "#define TOON\nvarying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - mvPosition.xyz;\n\t#include \n\t#include \n\t#include \n}"; + +var meshphong_frag = "#define PHONG\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform vec3 specular;\nuniform float shininess;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;\n\t#include \n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}"; + +var meshphong_vert = "#define PHONG\nvarying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - mvPosition.xyz;\n\t#include \n\t#include \n\t#include \n\t#include \n}"; + +var meshphysical_frag = "#define STANDARD\n#ifdef PHYSICAL\n\t#define REFLECTIVITY\n\t#define CLEARCOAT\n\t#define TRANSMISSION\n#endif\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float roughness;\nuniform float metalness;\nuniform float opacity;\n#ifdef TRANSMISSION\n\tuniform float transmission;\n#endif\n#ifdef REFLECTIVITY\n\tuniform float reflectivity;\n#endif\n#ifdef CLEARCOAT\n\tuniform float clearcoat;\n\tuniform float clearcoatRoughness;\n#endif\n#ifdef USE_SHEEN\n\tuniform vec3 sheen;\n#endif\nvarying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#ifdef TRANSMISSION\n\t\tfloat totalTransmission = transmission;\n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;\n\t#ifdef TRANSMISSION\n\t\tdiffuseColor.a *= mix( saturate( 1. - totalTransmission + linearToRelativeLuminance( reflectedLight.directSpecular + reflectedLight.indirectSpecular ) ), 1.0, metalness );\n\t#endif\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}"; + +var meshphysical_vert = "#define STANDARD\nvarying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n\t#ifdef USE_TANGENT\n\t\tvTangent = normalize( transformedTangent );\n\t\tvBitangent = normalize( cross( vNormal, vTangent ) * tangent.w );\n\t#endif\n#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - mvPosition.xyz;\n\t#include \n\t#include \n\t#include \n}"; + +var normal_frag = "#define NORMAL\nuniform float opacity;\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( TANGENTSPACE_NORMALMAP )\n\tvarying vec3 vViewPosition;\n#endif\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\tgl_FragColor = vec4( packNormalToRGB( normal ), opacity );\n}"; + +var normal_vert = "#define NORMAL\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( TANGENTSPACE_NORMALMAP )\n\tvarying vec3 vViewPosition;\n#endif\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n\t#ifdef USE_TANGENT\n\t\tvTangent = normalize( transformedTangent );\n\t\tvBitangent = normalize( cross( vNormal, vTangent ) * tangent.w );\n\t#endif\n#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( TANGENTSPACE_NORMALMAP )\n\tvViewPosition = - mvPosition.xyz;\n#endif\n}"; + +var points_frag = "uniform vec3 diffuse;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\t#include \n\t#include \n\t#include \n\toutgoingLight = diffuseColor.rgb;\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include \n\t#include \n\t#include \n\t#include \n}"; + +var points_vert = "uniform float size;\nuniform float scale;\n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\tgl_PointSize = size;\n\t#ifdef USE_SIZEATTENUATION\n\t\tbool isPerspective = isPerspectiveMatrix( projectionMatrix );\n\t\tif ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z );\n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n}"; + +var shadow_frag = "uniform vec3 color;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tgl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) );\n\t#include \n\t#include \n\t#include \n}"; + +var shadow_vert = "#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}"; + +var sprite_frag = "uniform vec3 diffuse;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\t#include \n\t#include \n\t#include \n\toutgoingLight = diffuseColor.rgb;\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include \n\t#include \n\t#include \n}"; + +var sprite_vert = "uniform float rotation;\nuniform vec2 center;\n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec4 mvPosition = modelViewMatrix * vec4( 0.0, 0.0, 0.0, 1.0 );\n\tvec2 scale;\n\tscale.x = length( vec3( modelMatrix[ 0 ].x, modelMatrix[ 0 ].y, modelMatrix[ 0 ].z ) );\n\tscale.y = length( vec3( modelMatrix[ 1 ].x, modelMatrix[ 1 ].y, modelMatrix[ 1 ].z ) );\n\t#ifndef USE_SIZEATTENUATION\n\t\tbool isPerspective = isPerspectiveMatrix( projectionMatrix );\n\t\tif ( isPerspective ) scale *= - mvPosition.z;\n\t#endif\n\tvec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale;\n\tvec2 rotatedPosition;\n\trotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y;\n\trotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y;\n\tmvPosition.xy += rotatedPosition;\n\tgl_Position = projectionMatrix * mvPosition;\n\t#include \n\t#include \n\t#include \n}"; + +const ShaderChunk = { + alphamap_fragment: alphamap_fragment, + alphamap_pars_fragment: alphamap_pars_fragment, + alphatest_fragment: alphatest_fragment, + aomap_fragment: aomap_fragment, + aomap_pars_fragment: aomap_pars_fragment, + begin_vertex: begin_vertex, + beginnormal_vertex: beginnormal_vertex, + bsdfs: bsdfs, + bumpmap_pars_fragment: bumpmap_pars_fragment, + clipping_planes_fragment: clipping_planes_fragment, + clipping_planes_pars_fragment: clipping_planes_pars_fragment, + clipping_planes_pars_vertex: clipping_planes_pars_vertex, + clipping_planes_vertex: clipping_planes_vertex, + color_fragment: color_fragment, + color_pars_fragment: color_pars_fragment, + color_pars_vertex: color_pars_vertex, + color_vertex: color_vertex, + common: common, + cube_uv_reflection_fragment: cube_uv_reflection_fragment, + defaultnormal_vertex: defaultnormal_vertex, + displacementmap_pars_vertex: displacementmap_pars_vertex, + displacementmap_vertex: displacementmap_vertex, + emissivemap_fragment: emissivemap_fragment, + emissivemap_pars_fragment: emissivemap_pars_fragment, + encodings_fragment: encodings_fragment, + encodings_pars_fragment: encodings_pars_fragment, + envmap_fragment: envmap_fragment, + envmap_common_pars_fragment: envmap_common_pars_fragment, + envmap_pars_fragment: envmap_pars_fragment, + envmap_pars_vertex: envmap_pars_vertex, + envmap_physical_pars_fragment: envmap_physical_pars_fragment, + envmap_vertex: envmap_vertex, + fog_vertex: fog_vertex, + fog_pars_vertex: fog_pars_vertex, + fog_fragment: fog_fragment, + fog_pars_fragment: fog_pars_fragment, + gradientmap_pars_fragment: gradientmap_pars_fragment, + lightmap_fragment: lightmap_fragment, + lightmap_pars_fragment: lightmap_pars_fragment, + lights_lambert_vertex: lights_lambert_vertex, + lights_pars_begin: lights_pars_begin, + lights_toon_fragment: lights_toon_fragment, + lights_toon_pars_fragment: lights_toon_pars_fragment, + lights_phong_fragment: lights_phong_fragment, + lights_phong_pars_fragment: lights_phong_pars_fragment, + lights_physical_fragment: lights_physical_fragment, + lights_physical_pars_fragment: lights_physical_pars_fragment, + lights_fragment_begin: lights_fragment_begin, + lights_fragment_maps: lights_fragment_maps, + lights_fragment_end: lights_fragment_end, + logdepthbuf_fragment: logdepthbuf_fragment, + logdepthbuf_pars_fragment: logdepthbuf_pars_fragment, + logdepthbuf_pars_vertex: logdepthbuf_pars_vertex, + logdepthbuf_vertex: logdepthbuf_vertex, + map_fragment: map_fragment, + map_pars_fragment: map_pars_fragment, + map_particle_fragment: map_particle_fragment, + map_particle_pars_fragment: map_particle_pars_fragment, + metalnessmap_fragment: metalnessmap_fragment, + metalnessmap_pars_fragment: metalnessmap_pars_fragment, + morphnormal_vertex: morphnormal_vertex, + morphtarget_pars_vertex: morphtarget_pars_vertex, + morphtarget_vertex: morphtarget_vertex, + normal_fragment_begin: normal_fragment_begin, + normal_fragment_maps: normal_fragment_maps, + normalmap_pars_fragment: normalmap_pars_fragment, + clearcoat_normal_fragment_begin: clearcoat_normal_fragment_begin, + clearcoat_normal_fragment_maps: clearcoat_normal_fragment_maps, + clearcoat_pars_fragment: clearcoat_pars_fragment, + packing: packing, + premultiplied_alpha_fragment: premultiplied_alpha_fragment, + project_vertex: project_vertex, + dithering_fragment: dithering_fragment, + dithering_pars_fragment: dithering_pars_fragment, + roughnessmap_fragment: roughnessmap_fragment, + roughnessmap_pars_fragment: roughnessmap_pars_fragment, + shadowmap_pars_fragment: shadowmap_pars_fragment, + shadowmap_pars_vertex: shadowmap_pars_vertex, + shadowmap_vertex: shadowmap_vertex, + shadowmask_pars_fragment: shadowmask_pars_fragment, + skinbase_vertex: skinbase_vertex, + skinning_pars_vertex: skinning_pars_vertex, + skinning_vertex: skinning_vertex, + skinnormal_vertex: skinnormal_vertex, + specularmap_fragment: specularmap_fragment, + specularmap_pars_fragment: specularmap_pars_fragment, + tonemapping_fragment: tonemapping_fragment, + tonemapping_pars_fragment: tonemapping_pars_fragment, + transmissionmap_fragment: transmissionmap_fragment, + transmissionmap_pars_fragment: transmissionmap_pars_fragment, + uv_pars_fragment: uv_pars_fragment, + uv_pars_vertex: uv_pars_vertex, + uv_vertex: uv_vertex, + uv2_pars_fragment: uv2_pars_fragment, + uv2_pars_vertex: uv2_pars_vertex, + uv2_vertex: uv2_vertex, + worldpos_vertex: worldpos_vertex, + + background_frag: background_frag, + background_vert: background_vert, + cube_frag: cube_frag, + cube_vert: cube_vert, + depth_frag: depth_frag, + depth_vert: depth_vert, + distanceRGBA_frag: distanceRGBA_frag, + distanceRGBA_vert: distanceRGBA_vert, + equirect_frag: equirect_frag, + equirect_vert: equirect_vert, + linedashed_frag: linedashed_frag, + linedashed_vert: linedashed_vert, + meshbasic_frag: meshbasic_frag, + meshbasic_vert: meshbasic_vert, + meshlambert_frag: meshlambert_frag, + meshlambert_vert: meshlambert_vert, + meshmatcap_frag: meshmatcap_frag, + meshmatcap_vert: meshmatcap_vert, + meshtoon_frag: meshtoon_frag, + meshtoon_vert: meshtoon_vert, + meshphong_frag: meshphong_frag, + meshphong_vert: meshphong_vert, + meshphysical_frag: meshphysical_frag, + meshphysical_vert: meshphysical_vert, + normal_frag: normal_frag, + normal_vert: normal_vert, + points_frag: points_frag, + points_vert: points_vert, + shadow_frag: shadow_frag, + shadow_vert: shadow_vert, + sprite_frag: sprite_frag, + sprite_vert: sprite_vert +}; + +/** + * Uniforms library for shared webgl shaders + */ + +const UniformsLib = { + + common: { + + diffuse: { value: new Color( 0xeeeeee ) }, + opacity: { value: 1.0 }, + + map: { value: null }, + uvTransform: { value: new Matrix3() }, + uv2Transform: { value: new Matrix3() }, + + alphaMap: { value: null }, + + }, + + specularmap: { + + specularMap: { value: null }, + + }, + + envmap: { + + envMap: { value: null }, + flipEnvMap: { value: - 1 }, + reflectivity: { value: 1.0 }, + refractionRatio: { value: 0.98 }, + maxMipLevel: { value: 0 } + + }, + + aomap: { + + aoMap: { value: null }, + aoMapIntensity: { value: 1 } + + }, + + lightmap: { + + lightMap: { value: null }, + lightMapIntensity: { value: 1 } + + }, + + emissivemap: { + + emissiveMap: { value: null } + + }, + + bumpmap: { + + bumpMap: { value: null }, + bumpScale: { value: 1 } + + }, + + normalmap: { + + normalMap: { value: null }, + normalScale: { value: new Vector2( 1, 1 ) } + + }, + + displacementmap: { + + displacementMap: { value: null }, + displacementScale: { value: 1 }, + displacementBias: { value: 0 } + + }, + + roughnessmap: { + + roughnessMap: { value: null } + + }, + + metalnessmap: { + + metalnessMap: { value: null } + + }, + + gradientmap: { + + gradientMap: { value: null } + + }, + + fog: { + + fogDensity: { value: 0.00025 }, + fogNear: { value: 1 }, + fogFar: { value: 2000 }, + fogColor: { value: new Color( 0xffffff ) } + + }, + + lights: { + + ambientLightColor: { value: [] }, + + lightProbe: { value: [] }, + + directionalLights: { value: [], properties: { + direction: {}, + color: {} + } }, + + directionalLightShadows: { value: [], properties: { + shadowBias: {}, + shadowNormalBias: {}, + shadowRadius: {}, + shadowMapSize: {} + } }, + + directionalShadowMap: { value: [] }, + directionalShadowMatrix: { value: [] }, + + spotLights: { value: [], properties: { + color: {}, + position: {}, + direction: {}, + distance: {}, + coneCos: {}, + penumbraCos: {}, + decay: {} + } }, + + spotLightShadows: { value: [], properties: { + shadowBias: {}, + shadowNormalBias: {}, + shadowRadius: {}, + shadowMapSize: {} + } }, + + spotShadowMap: { value: [] }, + spotShadowMatrix: { value: [] }, + + pointLights: { value: [], properties: { + color: {}, + position: {}, + decay: {}, + distance: {} + } }, + + pointLightShadows: { value: [], properties: { + shadowBias: {}, + shadowNormalBias: {}, + shadowRadius: {}, + shadowMapSize: {}, + shadowCameraNear: {}, + shadowCameraFar: {} + } }, + + pointShadowMap: { value: [] }, + pointShadowMatrix: { value: [] }, + + hemisphereLights: { value: [], properties: { + direction: {}, + skyColor: {}, + groundColor: {} + } }, + + // TODO (abelnation): RectAreaLight BRDF data needs to be moved from example to main src + rectAreaLights: { value: [], properties: { + color: {}, + position: {}, + width: {}, + height: {} + } }, + + ltc_1: { value: null }, + ltc_2: { value: null } + + }, + + points: { + + diffuse: { value: new Color( 0xeeeeee ) }, + opacity: { value: 1.0 }, + size: { value: 1.0 }, + scale: { value: 1.0 }, + map: { value: null }, + alphaMap: { value: null }, + uvTransform: { value: new Matrix3() } + + }, + + sprite: { + + diffuse: { value: new Color( 0xeeeeee ) }, + opacity: { value: 1.0 }, + center: { value: new Vector2( 0.5, 0.5 ) }, + rotation: { value: 0.0 }, + map: { value: null }, + alphaMap: { value: null }, + uvTransform: { value: new Matrix3() } + + } + +}; + +const ShaderLib = { + + basic: { + + uniforms: mergeUniforms( [ + UniformsLib.common, + UniformsLib.specularmap, + UniformsLib.envmap, + UniformsLib.aomap, + UniformsLib.lightmap, + UniformsLib.fog + ] ), + + vertexShader: ShaderChunk.meshbasic_vert, + fragmentShader: ShaderChunk.meshbasic_frag + + }, + + lambert: { + + uniforms: mergeUniforms( [ + UniformsLib.common, + UniformsLib.specularmap, + UniformsLib.envmap, + UniformsLib.aomap, + UniformsLib.lightmap, + UniformsLib.emissivemap, + UniformsLib.fog, + UniformsLib.lights, + { + emissive: { value: new Color( 0x000000 ) } + } + ] ), + + vertexShader: ShaderChunk.meshlambert_vert, + fragmentShader: ShaderChunk.meshlambert_frag + + }, + + phong: { + + uniforms: mergeUniforms( [ + UniformsLib.common, + UniformsLib.specularmap, + UniformsLib.envmap, + UniformsLib.aomap, + UniformsLib.lightmap, + UniformsLib.emissivemap, + UniformsLib.bumpmap, + UniformsLib.normalmap, + UniformsLib.displacementmap, + UniformsLib.fog, + UniformsLib.lights, + { + emissive: { value: new Color( 0x000000 ) }, + specular: { value: new Color( 0x111111 ) }, + shininess: { value: 30 } + } + ] ), + + vertexShader: ShaderChunk.meshphong_vert, + fragmentShader: ShaderChunk.meshphong_frag + + }, + + standard: { + + uniforms: mergeUniforms( [ + UniformsLib.common, + UniformsLib.envmap, + UniformsLib.aomap, + UniformsLib.lightmap, + UniformsLib.emissivemap, + UniformsLib.bumpmap, + UniformsLib.normalmap, + UniformsLib.displacementmap, + UniformsLib.roughnessmap, + UniformsLib.metalnessmap, + UniformsLib.fog, + UniformsLib.lights, + { + emissive: { value: new Color( 0x000000 ) }, + roughness: { value: 1.0 }, + metalness: { value: 0.0 }, + envMapIntensity: { value: 1 } // temporary + } + ] ), + + vertexShader: ShaderChunk.meshphysical_vert, + fragmentShader: ShaderChunk.meshphysical_frag + + }, + + toon: { + + uniforms: mergeUniforms( [ + UniformsLib.common, + UniformsLib.aomap, + UniformsLib.lightmap, + UniformsLib.emissivemap, + UniformsLib.bumpmap, + UniformsLib.normalmap, + UniformsLib.displacementmap, + UniformsLib.gradientmap, + UniformsLib.fog, + UniformsLib.lights, + { + emissive: { value: new Color( 0x000000 ) } + } + ] ), + + vertexShader: ShaderChunk.meshtoon_vert, + fragmentShader: ShaderChunk.meshtoon_frag + + }, + + matcap: { + + uniforms: mergeUniforms( [ + UniformsLib.common, + UniformsLib.bumpmap, + UniformsLib.normalmap, + UniformsLib.displacementmap, + UniformsLib.fog, + { + matcap: { value: null } + } + ] ), + + vertexShader: ShaderChunk.meshmatcap_vert, + fragmentShader: ShaderChunk.meshmatcap_frag + + }, + + points: { + + uniforms: mergeUniforms( [ + UniformsLib.points, + UniformsLib.fog + ] ), + + vertexShader: ShaderChunk.points_vert, + fragmentShader: ShaderChunk.points_frag + + }, + + dashed: { + + uniforms: mergeUniforms( [ + UniformsLib.common, + UniformsLib.fog, + { + scale: { value: 1 }, + dashSize: { value: 1 }, + totalSize: { value: 2 } + } + ] ), + + vertexShader: ShaderChunk.linedashed_vert, + fragmentShader: ShaderChunk.linedashed_frag + + }, + + depth: { + + uniforms: mergeUniforms( [ + UniformsLib.common, + UniformsLib.displacementmap + ] ), + + vertexShader: ShaderChunk.depth_vert, + fragmentShader: ShaderChunk.depth_frag + + }, + + normal: { + + uniforms: mergeUniforms( [ + UniformsLib.common, + UniformsLib.bumpmap, + UniformsLib.normalmap, + UniformsLib.displacementmap, + { + opacity: { value: 1.0 } + } + ] ), + + vertexShader: ShaderChunk.normal_vert, + fragmentShader: ShaderChunk.normal_frag + + }, + + sprite: { + + uniforms: mergeUniforms( [ + UniformsLib.sprite, + UniformsLib.fog + ] ), + + vertexShader: ShaderChunk.sprite_vert, + fragmentShader: ShaderChunk.sprite_frag + + }, + + background: { + + uniforms: { + uvTransform: { value: new Matrix3() }, + t2D: { value: null }, + }, + + vertexShader: ShaderChunk.background_vert, + fragmentShader: ShaderChunk.background_frag + + }, + /* ------------------------------------------------------------------------- + // Cube map shader + ------------------------------------------------------------------------- */ + + cube: { + + uniforms: mergeUniforms( [ + UniformsLib.envmap, + { + opacity: { value: 1.0 } + } + ] ), + + vertexShader: ShaderChunk.cube_vert, + fragmentShader: ShaderChunk.cube_frag + + }, + + equirect: { + + uniforms: { + tEquirect: { value: null }, + }, + + vertexShader: ShaderChunk.equirect_vert, + fragmentShader: ShaderChunk.equirect_frag + + }, + + distanceRGBA: { + + uniforms: mergeUniforms( [ + UniformsLib.common, + UniformsLib.displacementmap, + { + referencePosition: { value: new Vector3() }, + nearDistance: { value: 1 }, + farDistance: { value: 1000 } + } + ] ), + + vertexShader: ShaderChunk.distanceRGBA_vert, + fragmentShader: ShaderChunk.distanceRGBA_frag + + }, + + shadow: { + + uniforms: mergeUniforms( [ + UniformsLib.lights, + UniformsLib.fog, + { + color: { value: new Color( 0x00000 ) }, + opacity: { value: 1.0 } + }, + ] ), + + vertexShader: ShaderChunk.shadow_vert, + fragmentShader: ShaderChunk.shadow_frag + + } + +}; + +ShaderLib.physical = { + + uniforms: mergeUniforms( [ + ShaderLib.standard.uniforms, + { + clearcoat: { value: 0 }, + clearcoatMap: { value: null }, + clearcoatRoughness: { value: 0 }, + clearcoatRoughnessMap: { value: null }, + clearcoatNormalScale: { value: new Vector2( 1, 1 ) }, + clearcoatNormalMap: { value: null }, + sheen: { value: new Color( 0x000000 ) }, + transmission: { value: 0 }, + transmissionMap: { value: null }, + } + ] ), + + vertexShader: ShaderChunk.meshphysical_vert, + fragmentShader: ShaderChunk.meshphysical_frag + +}; + +function WebGLBackground( renderer, cubemaps, state, objects, premultipliedAlpha ) { + + const clearColor = new Color( 0x000000 ); + let clearAlpha = 0; + + let planeMesh; + let boxMesh; + + let currentBackground = null; + let currentBackgroundVersion = 0; + let currentTonemapping = null; + + function render( renderList, scene, camera, forceClear ) { + + let background = scene.isScene === true ? scene.background : null; + + if ( background && background.isTexture ) { + + background = cubemaps.get( background ); + + } + + // Ignore background in AR + // TODO: Reconsider this. + + const xr = renderer.xr; + const session = xr.getSession && xr.getSession(); + + if ( session && session.environmentBlendMode === 'additive' ) { + + background = null; + + } + + if ( background === null ) { + + setClear( clearColor, clearAlpha ); + + } else if ( background && background.isColor ) { + + setClear( background, 1 ); + forceClear = true; + + } + + if ( renderer.autoClear || forceClear ) { + + renderer.clear( renderer.autoClearColor, renderer.autoClearDepth, renderer.autoClearStencil ); + + } + + if ( background && ( background.isCubeTexture || background.isWebGLCubeRenderTarget || background.mapping === CubeUVReflectionMapping ) ) { + + if ( boxMesh === undefined ) { + + boxMesh = new Mesh( + new BoxBufferGeometry( 1, 1, 1 ), + new ShaderMaterial( { + name: 'BackgroundCubeMaterial', + uniforms: cloneUniforms( ShaderLib.cube.uniforms ), + vertexShader: ShaderLib.cube.vertexShader, + fragmentShader: ShaderLib.cube.fragmentShader, + side: BackSide, + depthTest: false, + depthWrite: false, + fog: false + } ) + ); + + boxMesh.geometry.deleteAttribute( 'normal' ); + boxMesh.geometry.deleteAttribute( 'uv' ); + + boxMesh.onBeforeRender = function ( renderer, scene, camera ) { + + this.matrixWorld.copyPosition( camera.matrixWorld ); + + }; + + // enable code injection for non-built-in material + Object.defineProperty( boxMesh.material, 'envMap', { + + get: function () { + + return this.uniforms.envMap.value; + + } + + } ); + + objects.update( boxMesh ); + + } + + if ( background.isWebGLCubeRenderTarget ) { + + // TODO Deprecate + + background = background.texture; + + } + + boxMesh.material.uniforms.envMap.value = background; + boxMesh.material.uniforms.flipEnvMap.value = ( background.isCubeTexture && background._needsFlipEnvMap ) ? - 1 : 1; + + if ( currentBackground !== background || + currentBackgroundVersion !== background.version || + currentTonemapping !== renderer.toneMapping ) { + + boxMesh.material.needsUpdate = true; + + currentBackground = background; + currentBackgroundVersion = background.version; + currentTonemapping = renderer.toneMapping; + + } + + // push to the pre-sorted opaque render list + renderList.unshift( boxMesh, boxMesh.geometry, boxMesh.material, 0, 0, null ); + + } else if ( background && background.isTexture ) { + + if ( planeMesh === undefined ) { + + planeMesh = new Mesh( + new PlaneBufferGeometry( 2, 2 ), + new ShaderMaterial( { + name: 'BackgroundMaterial', + uniforms: cloneUniforms( ShaderLib.background.uniforms ), + vertexShader: ShaderLib.background.vertexShader, + fragmentShader: ShaderLib.background.fragmentShader, + side: FrontSide, + depthTest: false, + depthWrite: false, + fog: false + } ) + ); + + planeMesh.geometry.deleteAttribute( 'normal' ); + + // enable code injection for non-built-in material + Object.defineProperty( planeMesh.material, 'map', { + + get: function () { + + return this.uniforms.t2D.value; + + } + + } ); + + objects.update( planeMesh ); + + } + + planeMesh.material.uniforms.t2D.value = background; + + if ( background.matrixAutoUpdate === true ) { + + background.updateMatrix(); + + } + + planeMesh.material.uniforms.uvTransform.value.copy( background.matrix ); + + if ( currentBackground !== background || + currentBackgroundVersion !== background.version || + currentTonemapping !== renderer.toneMapping ) { + + planeMesh.material.needsUpdate = true; + + currentBackground = background; + currentBackgroundVersion = background.version; + currentTonemapping = renderer.toneMapping; + + } + + + // push to the pre-sorted opaque render list + renderList.unshift( planeMesh, planeMesh.geometry, planeMesh.material, 0, 0, null ); + + } + + } + + function setClear( color, alpha ) { + + state.buffers.color.setClear( color.r, color.g, color.b, alpha, premultipliedAlpha ); + + } + + return { + + getClearColor: function () { + + return clearColor; + + }, + setClearColor: function ( color, alpha ) { + + clearColor.set( color ); + clearAlpha = alpha !== undefined ? alpha : 1; + setClear( clearColor, clearAlpha ); + + }, + getClearAlpha: function () { + + return clearAlpha; + + }, + setClearAlpha: function ( alpha ) { + + clearAlpha = alpha; + setClear( clearColor, clearAlpha ); + + }, + render: render + + }; + +} + +function WebGLBindingStates( gl, extensions, attributes, capabilities ) { + + const maxVertexAttributes = gl.getParameter( 34921 ); + + const extension = capabilities.isWebGL2 ? null : extensions.get( 'OES_vertex_array_object' ); + const vaoAvailable = capabilities.isWebGL2 || extension !== null; + + const bindingStates = {}; + + const defaultState = createBindingState( null ); + let currentState = defaultState; + + function setup( object, material, program, geometry, index ) { + + let updateBuffers = false; + + if ( vaoAvailable ) { + + const state = getBindingState( geometry, program, material ); + + if ( currentState !== state ) { + + currentState = state; + bindVertexArrayObject( currentState.object ); + + } + + updateBuffers = needsUpdate( geometry, index ); + + if ( updateBuffers ) saveCache( geometry, index ); + + } else { + + const wireframe = ( material.wireframe === true ); + + if ( currentState.geometry !== geometry.id || + currentState.program !== program.id || + currentState.wireframe !== wireframe ) { + + currentState.geometry = geometry.id; + currentState.program = program.id; + currentState.wireframe = wireframe; + + updateBuffers = true; + + } + + } + + if ( object.isInstancedMesh === true ) { + + updateBuffers = true; + + } + + if ( index !== null ) { + + attributes.update( index, 34963 ); + + } + + if ( updateBuffers ) { + + setupVertexAttributes( object, material, program, geometry ); + + if ( index !== null ) { + + gl.bindBuffer( 34963, attributes.get( index ).buffer ); + + } + + } + + } + + function createVertexArrayObject() { + + if ( capabilities.isWebGL2 ) return gl.createVertexArray(); + + return extension.createVertexArrayOES(); + + } + + function bindVertexArrayObject( vao ) { + + if ( capabilities.isWebGL2 ) return gl.bindVertexArray( vao ); + + return extension.bindVertexArrayOES( vao ); + + } + + function deleteVertexArrayObject( vao ) { + + if ( capabilities.isWebGL2 ) return gl.deleteVertexArray( vao ); + + return extension.deleteVertexArrayOES( vao ); + + } + + function getBindingState( geometry, program, material ) { + + const wireframe = ( material.wireframe === true ); + + let programMap = bindingStates[ geometry.id ]; + + if ( programMap === undefined ) { + + programMap = {}; + bindingStates[ geometry.id ] = programMap; + + } + + let stateMap = programMap[ program.id ]; + + if ( stateMap === undefined ) { + + stateMap = {}; + programMap[ program.id ] = stateMap; + + } + + let state = stateMap[ wireframe ]; + + if ( state === undefined ) { + + state = createBindingState( createVertexArrayObject() ); + stateMap[ wireframe ] = state; + + } + + return state; + + } + + function createBindingState( vao ) { + + const newAttributes = []; + const enabledAttributes = []; + const attributeDivisors = []; + + for ( let i = 0; i < maxVertexAttributes; i ++ ) { + + newAttributes[ i ] = 0; + enabledAttributes[ i ] = 0; + attributeDivisors[ i ] = 0; + + } + + return { + + // for backward compatibility on non-VAO support browser + geometry: null, + program: null, + wireframe: false, + + newAttributes: newAttributes, + enabledAttributes: enabledAttributes, + attributeDivisors: attributeDivisors, + object: vao, + attributes: {}, + index: null + + }; + + } + + function needsUpdate( geometry, index ) { + + const cachedAttributes = currentState.attributes; + const geometryAttributes = geometry.attributes; + + if ( Object.keys( cachedAttributes ).length !== Object.keys( geometryAttributes ).length ) return true; + + for ( const key in geometryAttributes ) { + + const cachedAttribute = cachedAttributes[ key ]; + const geometryAttribute = geometryAttributes[ key ]; + + if ( cachedAttribute === undefined ) return true; + + if ( cachedAttribute.attribute !== geometryAttribute ) return true; + + if ( cachedAttribute.data !== geometryAttribute.data ) return true; + + } + + if ( currentState.index !== index ) return true; + + return false; + + } + + function saveCache( geometry, index ) { + + const cache = {}; + const attributes = geometry.attributes; + + for ( const key in attributes ) { + + const attribute = attributes[ key ]; + + const data = {}; + data.attribute = attribute; + + if ( attribute.data ) { + + data.data = attribute.data; + + } + + cache[ key ] = data; + + } + + currentState.attributes = cache; + + currentState.index = index; + + } + + function initAttributes() { + + const newAttributes = currentState.newAttributes; + + for ( let i = 0, il = newAttributes.length; i < il; i ++ ) { + + newAttributes[ i ] = 0; + + } + + } + + function enableAttribute( attribute ) { + + enableAttributeAndDivisor( attribute, 0 ); + + } + + function enableAttributeAndDivisor( attribute, meshPerAttribute ) { + + const newAttributes = currentState.newAttributes; + const enabledAttributes = currentState.enabledAttributes; + const attributeDivisors = currentState.attributeDivisors; + + newAttributes[ attribute ] = 1; + + if ( enabledAttributes[ attribute ] === 0 ) { + + gl.enableVertexAttribArray( attribute ); + enabledAttributes[ attribute ] = 1; + + } + + if ( attributeDivisors[ attribute ] !== meshPerAttribute ) { + + const extension = capabilities.isWebGL2 ? gl : extensions.get( 'ANGLE_instanced_arrays' ); + + extension[ capabilities.isWebGL2 ? 'vertexAttribDivisor' : 'vertexAttribDivisorANGLE' ]( attribute, meshPerAttribute ); + attributeDivisors[ attribute ] = meshPerAttribute; + + } + + } + + function disableUnusedAttributes() { + + const newAttributes = currentState.newAttributes; + const enabledAttributes = currentState.enabledAttributes; + + for ( let i = 0, il = enabledAttributes.length; i < il; i ++ ) { + + if ( enabledAttributes[ i ] !== newAttributes[ i ] ) { + + gl.disableVertexAttribArray( i ); + enabledAttributes[ i ] = 0; + + } + + } + + } + + function vertexAttribPointer( index, size, type, normalized, stride, offset ) { + + if ( capabilities.isWebGL2 === true && ( type === 5124 || type === 5125 ) ) { + + gl.vertexAttribIPointer( index, size, type, stride, offset ); + + } else { + + gl.vertexAttribPointer( index, size, type, normalized, stride, offset ); + + } + + } + + function setupVertexAttributes( object, material, program, geometry ) { + + if ( capabilities.isWebGL2 === false && ( object.isInstancedMesh || geometry.isInstancedBufferGeometry ) ) { + + if ( extensions.get( 'ANGLE_instanced_arrays' ) === null ) return; + + } + + initAttributes(); + + const geometryAttributes = geometry.attributes; + + const programAttributes = program.getAttributes(); + + const materialDefaultAttributeValues = material.defaultAttributeValues; + + for ( const name in programAttributes ) { + + const programAttribute = programAttributes[ name ]; + + if ( programAttribute >= 0 ) { + + const geometryAttribute = geometryAttributes[ name ]; + + if ( geometryAttribute !== undefined ) { + + const normalized = geometryAttribute.normalized; + const size = geometryAttribute.itemSize; + + const attribute = attributes.get( geometryAttribute ); + + // TODO Attribute may not be available on context restore + + if ( attribute === undefined ) continue; + + const buffer = attribute.buffer; + const type = attribute.type; + const bytesPerElement = attribute.bytesPerElement; + + if ( geometryAttribute.isInterleavedBufferAttribute ) { + + const data = geometryAttribute.data; + const stride = data.stride; + const offset = geometryAttribute.offset; + + if ( data && data.isInstancedInterleavedBuffer ) { + + enableAttributeAndDivisor( programAttribute, data.meshPerAttribute ); + + if ( geometry._maxInstanceCount === undefined ) { + + geometry._maxInstanceCount = data.meshPerAttribute * data.count; + + } + + } else { + + enableAttribute( programAttribute ); + + } + + gl.bindBuffer( 34962, buffer ); + vertexAttribPointer( programAttribute, size, type, normalized, stride * bytesPerElement, offset * bytesPerElement ); + + } else { + + if ( geometryAttribute.isInstancedBufferAttribute ) { + + enableAttributeAndDivisor( programAttribute, geometryAttribute.meshPerAttribute ); + + if ( geometry._maxInstanceCount === undefined ) { + + geometry._maxInstanceCount = geometryAttribute.meshPerAttribute * geometryAttribute.count; + + } + + } else { + + enableAttribute( programAttribute ); + + } + + gl.bindBuffer( 34962, buffer ); + vertexAttribPointer( programAttribute, size, type, normalized, 0, 0 ); + + } + + } else if ( name === 'instanceMatrix' ) { + + const attribute = attributes.get( object.instanceMatrix ); + + // TODO Attribute may not be available on context restore + + if ( attribute === undefined ) continue; + + const buffer = attribute.buffer; + const type = attribute.type; + + enableAttributeAndDivisor( programAttribute + 0, 1 ); + enableAttributeAndDivisor( programAttribute + 1, 1 ); + enableAttributeAndDivisor( programAttribute + 2, 1 ); + enableAttributeAndDivisor( programAttribute + 3, 1 ); + + gl.bindBuffer( 34962, buffer ); + + gl.vertexAttribPointer( programAttribute + 0, 4, type, false, 64, 0 ); + gl.vertexAttribPointer( programAttribute + 1, 4, type, false, 64, 16 ); + gl.vertexAttribPointer( programAttribute + 2, 4, type, false, 64, 32 ); + gl.vertexAttribPointer( programAttribute + 3, 4, type, false, 64, 48 ); + + } else if ( name === 'instanceColor' ) { + + const attribute = attributes.get( object.instanceColor ); + + // TODO Attribute may not be available on context restore + + if ( attribute === undefined ) continue; + + const buffer = attribute.buffer; + const type = attribute.type; + + enableAttributeAndDivisor( programAttribute, 1 ); + + gl.bindBuffer( 34962, buffer ); + + gl.vertexAttribPointer( programAttribute, 3, type, false, 12, 0 ); + + } else if ( materialDefaultAttributeValues !== undefined ) { + + const value = materialDefaultAttributeValues[ name ]; + + if ( value !== undefined ) { + + switch ( value.length ) { + + case 2: + gl.vertexAttrib2fv( programAttribute, value ); + break; + + case 3: + gl.vertexAttrib3fv( programAttribute, value ); + break; + + case 4: + gl.vertexAttrib4fv( programAttribute, value ); + break; + + default: + gl.vertexAttrib1fv( programAttribute, value ); + + } + + } + + } + + } + + } + + disableUnusedAttributes(); + + } + + function dispose() { + + reset(); + + for ( const geometryId in bindingStates ) { + + const programMap = bindingStates[ geometryId ]; + + for ( const programId in programMap ) { + + const stateMap = programMap[ programId ]; + + for ( const wireframe in stateMap ) { + + deleteVertexArrayObject( stateMap[ wireframe ].object ); + + delete stateMap[ wireframe ]; + + } + + delete programMap[ programId ]; + + } + + delete bindingStates[ geometryId ]; + + } + + } + + function releaseStatesOfGeometry( geometry ) { + + if ( bindingStates[ geometry.id ] === undefined ) return; + + const programMap = bindingStates[ geometry.id ]; + + for ( const programId in programMap ) { + + const stateMap = programMap[ programId ]; + + for ( const wireframe in stateMap ) { + + deleteVertexArrayObject( stateMap[ wireframe ].object ); + + delete stateMap[ wireframe ]; + + } + + delete programMap[ programId ]; + + } + + delete bindingStates[ geometry.id ]; + + } + + function releaseStatesOfProgram( program ) { + + for ( const geometryId in bindingStates ) { + + const programMap = bindingStates[ geometryId ]; + + if ( programMap[ program.id ] === undefined ) continue; + + const stateMap = programMap[ program.id ]; + + for ( const wireframe in stateMap ) { + + deleteVertexArrayObject( stateMap[ wireframe ].object ); + + delete stateMap[ wireframe ]; + + } + + delete programMap[ program.id ]; + + } + + } + + function reset() { + + resetDefaultState(); + + if ( currentState === defaultState ) return; + + currentState = defaultState; + bindVertexArrayObject( currentState.object ); + + } + + // for backward-compatilibity + + function resetDefaultState() { + + defaultState.geometry = null; + defaultState.program = null; + defaultState.wireframe = false; + + } + + return { + + setup: setup, + reset: reset, + resetDefaultState: resetDefaultState, + dispose: dispose, + releaseStatesOfGeometry: releaseStatesOfGeometry, + releaseStatesOfProgram: releaseStatesOfProgram, + + initAttributes: initAttributes, + enableAttribute: enableAttribute, + disableUnusedAttributes: disableUnusedAttributes + + }; + +} + +function WebGLBufferRenderer( gl, extensions, info, capabilities ) { + + const isWebGL2 = capabilities.isWebGL2; + + let mode; + + function setMode( value ) { + + mode = value; + + } + + function render( start, count ) { + + gl.drawArrays( mode, start, count ); + + info.update( count, mode, 1 ); + + } + + function renderInstances( start, count, primcount ) { + + if ( primcount === 0 ) return; + + let extension, methodName; + + if ( isWebGL2 ) { + + extension = gl; + methodName = 'drawArraysInstanced'; + + } else { + + extension = extensions.get( 'ANGLE_instanced_arrays' ); + methodName = 'drawArraysInstancedANGLE'; + + if ( extension === null ) { + + console.error( 'THREE.WebGLBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.' ); + return; + + } + + } + + extension[ methodName ]( mode, start, count, primcount ); + + info.update( count, mode, primcount ); + + } + + // + + this.setMode = setMode; + this.render = render; + this.renderInstances = renderInstances; + +} + +function WebGLCapabilities( gl, extensions, parameters ) { + + let maxAnisotropy; + + function getMaxAnisotropy() { + + if ( maxAnisotropy !== undefined ) return maxAnisotropy; + + const extension = extensions.get( 'EXT_texture_filter_anisotropic' ); + + if ( extension !== null ) { + + maxAnisotropy = gl.getParameter( extension.MAX_TEXTURE_MAX_ANISOTROPY_EXT ); + + } else { + + maxAnisotropy = 0; + + } + + return maxAnisotropy; + + } + + function getMaxPrecision( precision ) { + + if ( precision === 'highp' ) { + + if ( gl.getShaderPrecisionFormat( 35633, 36338 ).precision > 0 && + gl.getShaderPrecisionFormat( 35632, 36338 ).precision > 0 ) { + + return 'highp'; + + } + + precision = 'mediump'; + + } + + if ( precision === 'mediump' ) { + + if ( gl.getShaderPrecisionFormat( 35633, 36337 ).precision > 0 && + gl.getShaderPrecisionFormat( 35632, 36337 ).precision > 0 ) { + + return 'mediump'; + + } + + } + + return 'lowp'; + + } + + /* eslint-disable no-undef */ + const isWebGL2 = ( typeof WebGL2RenderingContext !== 'undefined' && gl instanceof WebGL2RenderingContext ) || + ( typeof WebGL2ComputeRenderingContext !== 'undefined' && gl instanceof WebGL2ComputeRenderingContext ); + /* eslint-enable no-undef */ + + let precision = parameters.precision !== undefined ? parameters.precision : 'highp'; + const maxPrecision = getMaxPrecision( precision ); + + if ( maxPrecision !== precision ) { + + console.warn( 'THREE.WebGLRenderer:', precision, 'not supported, using', maxPrecision, 'instead.' ); + precision = maxPrecision; + + } + + const logarithmicDepthBuffer = parameters.logarithmicDepthBuffer === true; + + const maxTextures = gl.getParameter( 34930 ); + const maxVertexTextures = gl.getParameter( 35660 ); + const maxTextureSize = gl.getParameter( 3379 ); + const maxCubemapSize = gl.getParameter( 34076 ); + + const maxAttributes = gl.getParameter( 34921 ); + const maxVertexUniforms = gl.getParameter( 36347 ); + const maxVaryings = gl.getParameter( 36348 ); + const maxFragmentUniforms = gl.getParameter( 36349 ); + + const vertexTextures = maxVertexTextures > 0; + const floatFragmentTextures = isWebGL2 || !! extensions.get( 'OES_texture_float' ); + const floatVertexTextures = vertexTextures && floatFragmentTextures; + + const maxSamples = isWebGL2 ? gl.getParameter( 36183 ) : 0; + + return { + + isWebGL2: isWebGL2, + + getMaxAnisotropy: getMaxAnisotropy, + getMaxPrecision: getMaxPrecision, + + precision: precision, + logarithmicDepthBuffer: logarithmicDepthBuffer, + + maxTextures: maxTextures, + maxVertexTextures: maxVertexTextures, + maxTextureSize: maxTextureSize, + maxCubemapSize: maxCubemapSize, + + maxAttributes: maxAttributes, + maxVertexUniforms: maxVertexUniforms, + maxVaryings: maxVaryings, + maxFragmentUniforms: maxFragmentUniforms, + + vertexTextures: vertexTextures, + floatFragmentTextures: floatFragmentTextures, + floatVertexTextures: floatVertexTextures, + + maxSamples: maxSamples + + }; + +} + +function WebGLClipping( properties ) { + + const scope = this; + + let globalState = null, + numGlobalPlanes = 0, + localClippingEnabled = false, + renderingShadows = false; + + const plane = new Plane(), + viewNormalMatrix = new Matrix3(), + + uniform = { value: null, needsUpdate: false }; + + this.uniform = uniform; + this.numPlanes = 0; + this.numIntersection = 0; + + this.init = function ( planes, enableLocalClipping, camera ) { + + const enabled = + planes.length !== 0 || + enableLocalClipping || + // enable state of previous frame - the clipping code has to + // run another frame in order to reset the state: + numGlobalPlanes !== 0 || + localClippingEnabled; + + localClippingEnabled = enableLocalClipping; + + globalState = projectPlanes( planes, camera, 0 ); + numGlobalPlanes = planes.length; + + return enabled; + + }; + + this.beginShadows = function () { + + renderingShadows = true; + projectPlanes( null ); + + }; + + this.endShadows = function () { + + renderingShadows = false; + resetGlobalState(); + + }; + + this.setState = function ( material, camera, useCache ) { + + const planes = material.clippingPlanes, + clipIntersection = material.clipIntersection, + clipShadows = material.clipShadows; + + const materialProperties = properties.get( material ); + + if ( ! localClippingEnabled || planes === null || planes.length === 0 || renderingShadows && ! clipShadows ) { + + // there's no local clipping + + if ( renderingShadows ) { + + // there's no global clipping + + projectPlanes( null ); + + } else { + + resetGlobalState(); + + } + + } else { + + const nGlobal = renderingShadows ? 0 : numGlobalPlanes, + lGlobal = nGlobal * 4; + + let dstArray = materialProperties.clippingState || null; + + uniform.value = dstArray; // ensure unique state + + dstArray = projectPlanes( planes, camera, lGlobal, useCache ); + + for ( let i = 0; i !== lGlobal; ++ i ) { + + dstArray[ i ] = globalState[ i ]; + + } + + materialProperties.clippingState = dstArray; + this.numIntersection = clipIntersection ? this.numPlanes : 0; + this.numPlanes += nGlobal; + + } + + + }; + + function resetGlobalState() { + + if ( uniform.value !== globalState ) { + + uniform.value = globalState; + uniform.needsUpdate = numGlobalPlanes > 0; + + } + + scope.numPlanes = numGlobalPlanes; + scope.numIntersection = 0; + + } + + function projectPlanes( planes, camera, dstOffset, skipTransform ) { + + const nPlanes = planes !== null ? planes.length : 0; + let dstArray = null; + + if ( nPlanes !== 0 ) { + + dstArray = uniform.value; + + if ( skipTransform !== true || dstArray === null ) { + + const flatSize = dstOffset + nPlanes * 4, + viewMatrix = camera.matrixWorldInverse; + + viewNormalMatrix.getNormalMatrix( viewMatrix ); + + if ( dstArray === null || dstArray.length < flatSize ) { + + dstArray = new Float32Array( flatSize ); + + } + + for ( let i = 0, i4 = dstOffset; i !== nPlanes; ++ i, i4 += 4 ) { + + plane.copy( planes[ i ] ).applyMatrix4( viewMatrix, viewNormalMatrix ); + + plane.normal.toArray( dstArray, i4 ); + dstArray[ i4 + 3 ] = plane.constant; + + } + + } + + uniform.value = dstArray; + uniform.needsUpdate = true; + + } + + scope.numPlanes = nPlanes; + scope.numIntersection = 0; + + return dstArray; + + } + +} + +function WebGLCubeMaps( renderer ) { + + let cubemaps = new WeakMap(); + + function mapTextureMapping( texture, mapping ) { + + if ( mapping === EquirectangularReflectionMapping ) { + + texture.mapping = CubeReflectionMapping; + + } else if ( mapping === EquirectangularRefractionMapping ) { + + texture.mapping = CubeRefractionMapping; + + } + + return texture; + + } + + function get( texture ) { + + if ( texture && texture.isTexture ) { + + const mapping = texture.mapping; + + if ( mapping === EquirectangularReflectionMapping || mapping === EquirectangularRefractionMapping ) { + + if ( cubemaps.has( texture ) ) { + + const cubemap = cubemaps.get( texture ).texture; + return mapTextureMapping( cubemap, texture.mapping ); + + } else { + + const image = texture.image; + + if ( image && image.height > 0 ) { + + const currentRenderList = renderer.getRenderList(); + const currentRenderTarget = renderer.getRenderTarget(); + const currentRenderState = renderer.getRenderState(); + + const renderTarget = new WebGLCubeRenderTarget( image.height / 2 ); + renderTarget.fromEquirectangularTexture( renderer, texture ); + cubemaps.set( texture, renderTarget ); + + renderer.setRenderTarget( currentRenderTarget ); + renderer.setRenderList( currentRenderList ); + renderer.setRenderState( currentRenderState ); + + return mapTextureMapping( renderTarget.texture, texture.mapping ); + + } else { + + // image not yet ready. try the conversion next frame + + return null; + + } + + } + + } + + } + + return texture; + + } + + function dispose() { + + cubemaps = new WeakMap(); + + } + + return { + get: get, + dispose: dispose + }; + +} + +function WebGLExtensions( gl ) { + + const extensions = {}; + + return { + + has: function ( name ) { + + if ( extensions[ name ] !== undefined ) { + + return extensions[ name ] !== null; + + } + + let extension; + + switch ( name ) { + + case 'WEBGL_depth_texture': + extension = gl.getExtension( 'WEBGL_depth_texture' ) || gl.getExtension( 'MOZ_WEBGL_depth_texture' ) || gl.getExtension( 'WEBKIT_WEBGL_depth_texture' ); + break; + + case 'EXT_texture_filter_anisotropic': + extension = gl.getExtension( 'EXT_texture_filter_anisotropic' ) || gl.getExtension( 'MOZ_EXT_texture_filter_anisotropic' ) || gl.getExtension( 'WEBKIT_EXT_texture_filter_anisotropic' ); + break; + + case 'WEBGL_compressed_texture_s3tc': + extension = gl.getExtension( 'WEBGL_compressed_texture_s3tc' ) || gl.getExtension( 'MOZ_WEBGL_compressed_texture_s3tc' ) || gl.getExtension( 'WEBKIT_WEBGL_compressed_texture_s3tc' ); + break; + + case 'WEBGL_compressed_texture_pvrtc': + extension = gl.getExtension( 'WEBGL_compressed_texture_pvrtc' ) || gl.getExtension( 'WEBKIT_WEBGL_compressed_texture_pvrtc' ); + break; + + default: + extension = gl.getExtension( name ); + + } + + extensions[ name ] = extension; + + return extension !== null; + + }, + + get: function ( name ) { + + if ( ! this.has( name ) ) { + + console.warn( 'THREE.WebGLRenderer: ' + name + ' extension not supported.' ); + + } + + return extensions[ name ]; + + } + + }; + +} + +function WebGLGeometries( gl, attributes, info, bindingStates ) { + + const geometries = new WeakMap(); + const wireframeAttributes = new WeakMap(); + + function onGeometryDispose( event ) { + + const geometry = event.target; + const buffergeometry = geometries.get( geometry ); + + if ( buffergeometry.index !== null ) { + + attributes.remove( buffergeometry.index ); + + } + + for ( const name in buffergeometry.attributes ) { + + attributes.remove( buffergeometry.attributes[ name ] ); + + } + + geometry.removeEventListener( 'dispose', onGeometryDispose ); + + geometries.delete( geometry ); + + const attribute = wireframeAttributes.get( buffergeometry ); + + if ( attribute ) { + + attributes.remove( attribute ); + wireframeAttributes.delete( buffergeometry ); + + } + + bindingStates.releaseStatesOfGeometry( geometry ); + + if ( geometry.isInstancedBufferGeometry === true ) { + + delete geometry._maxInstanceCount; + + } + + // + + info.memory.geometries --; + + } + + function get( object, geometry ) { + + let buffergeometry = geometries.get( geometry ); + + if ( buffergeometry ) return buffergeometry; + + geometry.addEventListener( 'dispose', onGeometryDispose ); + + if ( geometry.isBufferGeometry ) { + + buffergeometry = geometry; + + } else if ( geometry.isGeometry ) { + + if ( geometry._bufferGeometry === undefined ) { + + geometry._bufferGeometry = new BufferGeometry().setFromObject( object ); + + } + + buffergeometry = geometry._bufferGeometry; + + } + + geometries.set( geometry, buffergeometry ); + + info.memory.geometries ++; + + return buffergeometry; + + } + + function update( geometry ) { + + const geometryAttributes = geometry.attributes; + + // Updating index buffer in VAO now. See WebGLBindingStates. + + for ( const name in geometryAttributes ) { + + attributes.update( geometryAttributes[ name ], 34962 ); + + } + + // morph targets + + const morphAttributes = geometry.morphAttributes; + + for ( const name in morphAttributes ) { + + const array = morphAttributes[ name ]; + + for ( let i = 0, l = array.length; i < l; i ++ ) { + + attributes.update( array[ i ], 34962 ); + + } + + } + + } + + function updateWireframeAttribute( geometry ) { + + const indices = []; + + const geometryIndex = geometry.index; + const geometryPosition = geometry.attributes.position; + let version = 0; + + if ( geometryIndex !== null ) { + + const array = geometryIndex.array; + version = geometryIndex.version; + + for ( let i = 0, l = array.length; i < l; i += 3 ) { + + const a = array[ i + 0 ]; + const b = array[ i + 1 ]; + const c = array[ i + 2 ]; + + indices.push( a, b, b, c, c, a ); + + } + + } else { + + const array = geometryPosition.array; + version = geometryPosition.version; + + for ( let i = 0, l = ( array.length / 3 ) - 1; i < l; i += 3 ) { + + const a = i + 0; + const b = i + 1; + const c = i + 2; + + indices.push( a, b, b, c, c, a ); + + } + + } + + const attribute = new ( arrayMax( indices ) > 65535 ? Uint32BufferAttribute : Uint16BufferAttribute )( indices, 1 ); + attribute.version = version; + + // Updating index buffer in VAO now. See WebGLBindingStates + + // + + const previousAttribute = wireframeAttributes.get( geometry ); + + if ( previousAttribute ) attributes.remove( previousAttribute ); + + // + + wireframeAttributes.set( geometry, attribute ); + + } + + function getWireframeAttribute( geometry ) { + + const currentAttribute = wireframeAttributes.get( geometry ); + + if ( currentAttribute ) { + + const geometryIndex = geometry.index; + + if ( geometryIndex !== null ) { + + // if the attribute is obsolete, create a new one + + if ( currentAttribute.version < geometryIndex.version ) { + + updateWireframeAttribute( geometry ); + + } + + } + + } else { + + updateWireframeAttribute( geometry ); + + } + + return wireframeAttributes.get( geometry ); + + } + + return { + + get: get, + update: update, + + getWireframeAttribute: getWireframeAttribute + + }; + +} + +function WebGLIndexedBufferRenderer( gl, extensions, info, capabilities ) { + + const isWebGL2 = capabilities.isWebGL2; + + let mode; + + function setMode( value ) { + + mode = value; + + } + + let type, bytesPerElement; + + function setIndex( value ) { + + type = value.type; + bytesPerElement = value.bytesPerElement; + + } + + function render( start, count ) { + + gl.drawElements( mode, count, type, start * bytesPerElement ); + + info.update( count, mode, 1 ); + + } + + function renderInstances( start, count, primcount ) { + + if ( primcount === 0 ) return; + + let extension, methodName; + + if ( isWebGL2 ) { + + extension = gl; + methodName = 'drawElementsInstanced'; + + } else { + + extension = extensions.get( 'ANGLE_instanced_arrays' ); + methodName = 'drawElementsInstancedANGLE'; + + if ( extension === null ) { + + console.error( 'THREE.WebGLIndexedBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.' ); + return; + + } + + } + + extension[ methodName ]( mode, count, type, start * bytesPerElement, primcount ); + + info.update( count, mode, primcount ); + + } + + // + + this.setMode = setMode; + this.setIndex = setIndex; + this.render = render; + this.renderInstances = renderInstances; + +} + +function WebGLInfo( gl ) { + + const memory = { + geometries: 0, + textures: 0 + }; + + const render = { + frame: 0, + calls: 0, + triangles: 0, + points: 0, + lines: 0 + }; + + function update( count, mode, instanceCount ) { + + render.calls ++; + + switch ( mode ) { + + case 4: + render.triangles += instanceCount * ( count / 3 ); + break; + + case 1: + render.lines += instanceCount * ( count / 2 ); + break; + + case 3: + render.lines += instanceCount * ( count - 1 ); + break; + + case 2: + render.lines += instanceCount * count; + break; + + case 0: + render.points += instanceCount * count; + break; + + default: + console.error( 'THREE.WebGLInfo: Unknown draw mode:', mode ); + break; + + } + + } + + function reset() { + + render.frame ++; + render.calls = 0; + render.triangles = 0; + render.points = 0; + render.lines = 0; + + } + + return { + memory: memory, + render: render, + programs: null, + autoReset: true, + reset: reset, + update: update + }; + +} + +function numericalSort( a, b ) { + + return a[ 0 ] - b[ 0 ]; + +} + +function absNumericalSort( a, b ) { + + return Math.abs( b[ 1 ] ) - Math.abs( a[ 1 ] ); + +} + +function WebGLMorphtargets( gl ) { + + const influencesList = {}; + const morphInfluences = new Float32Array( 8 ); + + const workInfluences = []; + + for ( let i = 0; i < 8; i ++ ) { + + workInfluences[ i ] = [ i, 0 ]; + + } + + function update( object, geometry, material, program ) { + + const objectInfluences = object.morphTargetInfluences; + + // When object doesn't have morph target influences defined, we treat it as a 0-length array + // This is important to make sure we set up morphTargetBaseInfluence / morphTargetInfluences + + const length = objectInfluences === undefined ? 0 : objectInfluences.length; + + let influences = influencesList[ geometry.id ]; + + if ( influences === undefined ) { + + // initialise list + + influences = []; + + for ( let i = 0; i < length; i ++ ) { + + influences[ i ] = [ i, 0 ]; + + } + + influencesList[ geometry.id ] = influences; + + } + + // Collect influences + + for ( let i = 0; i < length; i ++ ) { + + const influence = influences[ i ]; + + influence[ 0 ] = i; + influence[ 1 ] = objectInfluences[ i ]; + + } + + influences.sort( absNumericalSort ); + + for ( let i = 0; i < 8; i ++ ) { + + if ( i < length && influences[ i ][ 1 ] ) { + + workInfluences[ i ][ 0 ] = influences[ i ][ 0 ]; + workInfluences[ i ][ 1 ] = influences[ i ][ 1 ]; + + } else { + + workInfluences[ i ][ 0 ] = Number.MAX_SAFE_INTEGER; + workInfluences[ i ][ 1 ] = 0; + + } + + } + + workInfluences.sort( numericalSort ); + + const morphTargets = material.morphTargets && geometry.morphAttributes.position; + const morphNormals = material.morphNormals && geometry.morphAttributes.normal; + + let morphInfluencesSum = 0; + + for ( let i = 0; i < 8; i ++ ) { + + const influence = workInfluences[ i ]; + const index = influence[ 0 ]; + const value = influence[ 1 ]; + + if ( index !== Number.MAX_SAFE_INTEGER && value ) { + + if ( morphTargets && geometry.getAttribute( 'morphTarget' + i ) !== morphTargets[ index ] ) { + + geometry.setAttribute( 'morphTarget' + i, morphTargets[ index ] ); + + } + + if ( morphNormals && geometry.getAttribute( 'morphNormal' + i ) !== morphNormals[ index ] ) { + + geometry.setAttribute( 'morphNormal' + i, morphNormals[ index ] ); + + } + + morphInfluences[ i ] = value; + morphInfluencesSum += value; + + } else { + + if ( morphTargets && geometry.getAttribute( 'morphTarget' + i ) !== undefined ) { + + geometry.deleteAttribute( 'morphTarget' + i ); + + } + + if ( morphNormals && geometry.getAttribute( 'morphNormal' + i ) !== undefined ) { + + geometry.deleteAttribute( 'morphNormal' + i ); + + } + + morphInfluences[ i ] = 0; + + } + + } + + // GLSL shader uses formula baseinfluence * base + sum(target * influence) + // This allows us to switch between absolute morphs and relative morphs without changing shader code + // When baseinfluence = 1 - sum(influence), the above is equivalent to sum((target - base) * influence) + const morphBaseInfluence = geometry.morphTargetsRelative ? 1 : 1 - morphInfluencesSum; + + program.getUniforms().setValue( gl, 'morphTargetBaseInfluence', morphBaseInfluence ); + program.getUniforms().setValue( gl, 'morphTargetInfluences', morphInfluences ); + + } + + return { + + update: update + + }; + +} + +function WebGLObjects( gl, geometries, attributes, info ) { + + let updateMap = new WeakMap(); + + function update( object ) { + + const frame = info.render.frame; + + const geometry = object.geometry; + const buffergeometry = geometries.get( object, geometry ); + + // Update once per frame + + if ( updateMap.get( buffergeometry ) !== frame ) { + + if ( geometry.isGeometry ) { + + buffergeometry.updateFromObject( object ); + + } + + geometries.update( buffergeometry ); + + updateMap.set( buffergeometry, frame ); + + } + + if ( object.isInstancedMesh ) { + + attributes.update( object.instanceMatrix, 34962 ); + + if ( object.instanceColor !== null ) { + + attributes.update( object.instanceColor, 34962 ); + + } + + } + + return buffergeometry; + + } + + function dispose() { + + updateMap = new WeakMap(); + + } + + return { + + update: update, + dispose: dispose + + }; + +} + +function DataTexture2DArray( data, width, height, depth ) { + + Texture.call( this, null ); + + this.image = { data: data || null, width: width || 1, height: height || 1, depth: depth || 1 }; + + this.magFilter = NearestFilter; + this.minFilter = NearestFilter; + + this.wrapR = ClampToEdgeWrapping; + + this.generateMipmaps = false; + this.flipY = false; + + this.needsUpdate = true; + +} + +DataTexture2DArray.prototype = Object.create( Texture.prototype ); +DataTexture2DArray.prototype.constructor = DataTexture2DArray; +DataTexture2DArray.prototype.isDataTexture2DArray = true; + +function DataTexture3D( data, width, height, depth ) { + + // We're going to add .setXXX() methods for setting properties later. + // Users can still set in DataTexture3D directly. + // + // const texture = new THREE.DataTexture3D( data, width, height, depth ); + // texture.anisotropy = 16; + // + // See #14839 + + Texture.call( this, null ); + + this.image = { data: data || null, width: width || 1, height: height || 1, depth: depth || 1 }; + + this.magFilter = NearestFilter; + this.minFilter = NearestFilter; + + this.wrapR = ClampToEdgeWrapping; + + this.generateMipmaps = false; + this.flipY = false; + + this.needsUpdate = true; + + +} + +DataTexture3D.prototype = Object.create( Texture.prototype ); +DataTexture3D.prototype.constructor = DataTexture3D; +DataTexture3D.prototype.isDataTexture3D = true; + +/** + * Uniforms of a program. + * Those form a tree structure with a special top-level container for the root, + * which you get by calling 'new WebGLUniforms( gl, program )'. + * + * + * Properties of inner nodes including the top-level container: + * + * .seq - array of nested uniforms + * .map - nested uniforms by name + * + * + * Methods of all nodes except the top-level container: + * + * .setValue( gl, value, [textures] ) + * + * uploads a uniform value(s) + * the 'textures' parameter is needed for sampler uniforms + * + * + * Static methods of the top-level container (textures factorizations): + * + * .upload( gl, seq, values, textures ) + * + * sets uniforms in 'seq' to 'values[id].value' + * + * .seqWithValue( seq, values ) : filteredSeq + * + * filters 'seq' entries with corresponding entry in values + * + * + * Methods of the top-level container (textures factorizations): + * + * .setValue( gl, name, value, textures ) + * + * sets uniform with name 'name' to 'value' + * + * .setOptional( gl, obj, prop ) + * + * like .set for an optional property of the object + * + */ + +const emptyTexture = new Texture(); +const emptyTexture2dArray = new DataTexture2DArray(); +const emptyTexture3d = new DataTexture3D(); +const emptyCubeTexture = new CubeTexture(); + +// --- Utilities --- + +// Array Caches (provide typed arrays for temporary by size) + +const arrayCacheF32 = []; +const arrayCacheI32 = []; + +// Float32Array caches used for uploading Matrix uniforms + +const mat4array = new Float32Array( 16 ); +const mat3array = new Float32Array( 9 ); +const mat2array = new Float32Array( 4 ); + +// Flattening for arrays of vectors and matrices + +function flatten( array, nBlocks, blockSize ) { + + const firstElem = array[ 0 ]; + + if ( firstElem <= 0 || firstElem > 0 ) return array; + // unoptimized: ! isNaN( firstElem ) + // see http://jacksondunstan.com/articles/983 + + const n = nBlocks * blockSize; + let r = arrayCacheF32[ n ]; + + if ( r === undefined ) { + + r = new Float32Array( n ); + arrayCacheF32[ n ] = r; + + } + + if ( nBlocks !== 0 ) { + + firstElem.toArray( r, 0 ); + + for ( let i = 1, offset = 0; i !== nBlocks; ++ i ) { + + offset += blockSize; + array[ i ].toArray( r, offset ); + + } + + } + + return r; + +} + +function arraysEqual( a, b ) { + + if ( a.length !== b.length ) return false; + + for ( let i = 0, l = a.length; i < l; i ++ ) { + + if ( a[ i ] !== b[ i ] ) return false; + + } + + return true; + +} + +function copyArray( a, b ) { + + for ( let i = 0, l = b.length; i < l; i ++ ) { + + a[ i ] = b[ i ]; + + } + +} + +// Texture unit allocation + +function allocTexUnits( textures, n ) { + + let r = arrayCacheI32[ n ]; + + if ( r === undefined ) { + + r = new Int32Array( n ); + arrayCacheI32[ n ] = r; + + } + + for ( let i = 0; i !== n; ++ i ) { + + r[ i ] = textures.allocateTextureUnit(); + + } + + return r; + +} + +// --- Setters --- + +// Note: Defining these methods externally, because they come in a bunch +// and this way their names minify. + +// Single scalar + +function setValueV1f( gl, v ) { + + const cache = this.cache; + + if ( cache[ 0 ] === v ) return; + + gl.uniform1f( this.addr, v ); + + cache[ 0 ] = v; + +} + +// Single float vector (from flat array or THREE.VectorN) + +function setValueV2f( gl, v ) { + + const cache = this.cache; + + if ( v.x !== undefined ) { + + if ( cache[ 0 ] !== v.x || cache[ 1 ] !== v.y ) { + + gl.uniform2f( this.addr, v.x, v.y ); + + cache[ 0 ] = v.x; + cache[ 1 ] = v.y; + + } + + } else { + + if ( arraysEqual( cache, v ) ) return; + + gl.uniform2fv( this.addr, v ); + + copyArray( cache, v ); + + } + +} + +function setValueV3f( gl, v ) { + + const cache = this.cache; + + if ( v.x !== undefined ) { + + if ( cache[ 0 ] !== v.x || cache[ 1 ] !== v.y || cache[ 2 ] !== v.z ) { + + gl.uniform3f( this.addr, v.x, v.y, v.z ); + + cache[ 0 ] = v.x; + cache[ 1 ] = v.y; + cache[ 2 ] = v.z; + + } + + } else if ( v.r !== undefined ) { + + if ( cache[ 0 ] !== v.r || cache[ 1 ] !== v.g || cache[ 2 ] !== v.b ) { + + gl.uniform3f( this.addr, v.r, v.g, v.b ); + + cache[ 0 ] = v.r; + cache[ 1 ] = v.g; + cache[ 2 ] = v.b; + + } + + } else { + + if ( arraysEqual( cache, v ) ) return; + + gl.uniform3fv( this.addr, v ); + + copyArray( cache, v ); + + } + +} + +function setValueV4f( gl, v ) { + + const cache = this.cache; + + if ( v.x !== undefined ) { + + if ( cache[ 0 ] !== v.x || cache[ 1 ] !== v.y || cache[ 2 ] !== v.z || cache[ 3 ] !== v.w ) { + + gl.uniform4f( this.addr, v.x, v.y, v.z, v.w ); + + cache[ 0 ] = v.x; + cache[ 1 ] = v.y; + cache[ 2 ] = v.z; + cache[ 3 ] = v.w; + + } + + } else { + + if ( arraysEqual( cache, v ) ) return; + + gl.uniform4fv( this.addr, v ); + + copyArray( cache, v ); + + } + +} + +// Single matrix (from flat array or MatrixN) + +function setValueM2( gl, v ) { + + const cache = this.cache; + const elements = v.elements; + + if ( elements === undefined ) { + + if ( arraysEqual( cache, v ) ) return; + + gl.uniformMatrix2fv( this.addr, false, v ); + + copyArray( cache, v ); + + } else { + + if ( arraysEqual( cache, elements ) ) return; + + mat2array.set( elements ); + + gl.uniformMatrix2fv( this.addr, false, mat2array ); + + copyArray( cache, elements ); + + } + +} + +function setValueM3( gl, v ) { + + const cache = this.cache; + const elements = v.elements; + + if ( elements === undefined ) { + + if ( arraysEqual( cache, v ) ) return; + + gl.uniformMatrix3fv( this.addr, false, v ); + + copyArray( cache, v ); + + } else { + + if ( arraysEqual( cache, elements ) ) return; + + mat3array.set( elements ); + + gl.uniformMatrix3fv( this.addr, false, mat3array ); + + copyArray( cache, elements ); + + } + +} + +function setValueM4( gl, v ) { + + const cache = this.cache; + const elements = v.elements; + + if ( elements === undefined ) { + + if ( arraysEqual( cache, v ) ) return; + + gl.uniformMatrix4fv( this.addr, false, v ); + + copyArray( cache, v ); + + } else { + + if ( arraysEqual( cache, elements ) ) return; + + mat4array.set( elements ); + + gl.uniformMatrix4fv( this.addr, false, mat4array ); + + copyArray( cache, elements ); + + } + +} + +// Single texture (2D / Cube) + +function setValueT1( gl, v, textures ) { + + const cache = this.cache; + const unit = textures.allocateTextureUnit(); + + if ( cache[ 0 ] !== unit ) { + + gl.uniform1i( this.addr, unit ); + cache[ 0 ] = unit; + + } + + textures.safeSetTexture2D( v || emptyTexture, unit ); + +} + +function setValueT2DArray1( gl, v, textures ) { + + const cache = this.cache; + const unit = textures.allocateTextureUnit(); + + if ( cache[ 0 ] !== unit ) { + + gl.uniform1i( this.addr, unit ); + cache[ 0 ] = unit; + + } + + textures.setTexture2DArray( v || emptyTexture2dArray, unit ); + +} + +function setValueT3D1( gl, v, textures ) { + + const cache = this.cache; + const unit = textures.allocateTextureUnit(); + + if ( cache[ 0 ] !== unit ) { + + gl.uniform1i( this.addr, unit ); + cache[ 0 ] = unit; + + } + + textures.setTexture3D( v || emptyTexture3d, unit ); + +} + +function setValueT6( gl, v, textures ) { + + const cache = this.cache; + const unit = textures.allocateTextureUnit(); + + if ( cache[ 0 ] !== unit ) { + + gl.uniform1i( this.addr, unit ); + cache[ 0 ] = unit; + + } + + textures.safeSetTextureCube( v || emptyCubeTexture, unit ); + +} + +// Integer / Boolean vectors or arrays thereof (always flat arrays) + +function setValueV1i( gl, v ) { + + const cache = this.cache; + + if ( cache[ 0 ] === v ) return; + + gl.uniform1i( this.addr, v ); + + cache[ 0 ] = v; + +} + +function setValueV2i( gl, v ) { + + const cache = this.cache; + + if ( arraysEqual( cache, v ) ) return; + + gl.uniform2iv( this.addr, v ); + + copyArray( cache, v ); + +} + +function setValueV3i( gl, v ) { + + const cache = this.cache; + + if ( arraysEqual( cache, v ) ) return; + + gl.uniform3iv( this.addr, v ); + + copyArray( cache, v ); + +} + +function setValueV4i( gl, v ) { + + const cache = this.cache; + + if ( arraysEqual( cache, v ) ) return; + + gl.uniform4iv( this.addr, v ); + + copyArray( cache, v ); + +} + +// uint + +function setValueV1ui( gl, v ) { + + const cache = this.cache; + + if ( cache[ 0 ] === v ) return; + + gl.uniform1ui( this.addr, v ); + + cache[ 0 ] = v; + +} + +// Helper to pick the right setter for the singular case + +function getSingularSetter( type ) { + + switch ( type ) { + + case 0x1406: return setValueV1f; // FLOAT + case 0x8b50: return setValueV2f; // _VEC2 + case 0x8b51: return setValueV3f; // _VEC3 + case 0x8b52: return setValueV4f; // _VEC4 + + case 0x8b5a: return setValueM2; // _MAT2 + case 0x8b5b: return setValueM3; // _MAT3 + case 0x8b5c: return setValueM4; // _MAT4 + + case 0x1404: case 0x8b56: return setValueV1i; // INT, BOOL + case 0x8b53: case 0x8b57: return setValueV2i; // _VEC2 + case 0x8b54: case 0x8b58: return setValueV3i; // _VEC3 + case 0x8b55: case 0x8b59: return setValueV4i; // _VEC4 + + case 0x1405: return setValueV1ui; // UINT + + case 0x8b5e: // SAMPLER_2D + case 0x8d66: // SAMPLER_EXTERNAL_OES + case 0x8dca: // INT_SAMPLER_2D + case 0x8dd2: // UNSIGNED_INT_SAMPLER_2D + case 0x8b62: // SAMPLER_2D_SHADOW + return setValueT1; + + case 0x8b5f: // SAMPLER_3D + case 0x8dcb: // INT_SAMPLER_3D + case 0x8dd3: // UNSIGNED_INT_SAMPLER_3D + return setValueT3D1; + + case 0x8b60: // SAMPLER_CUBE + case 0x8dcc: // INT_SAMPLER_CUBE + case 0x8dd4: // UNSIGNED_INT_SAMPLER_CUBE + case 0x8dc5: // SAMPLER_CUBE_SHADOW + return setValueT6; + + case 0x8dc1: // SAMPLER_2D_ARRAY + case 0x8dcf: // INT_SAMPLER_2D_ARRAY + case 0x8dd7: // UNSIGNED_INT_SAMPLER_2D_ARRAY + case 0x8dc4: // SAMPLER_2D_ARRAY_SHADOW + return setValueT2DArray1; + + } + +} + +// Array of scalars +function setValueV1fArray( gl, v ) { + + gl.uniform1fv( this.addr, v ); + +} + +// Integer / Boolean vectors or arrays thereof (always flat arrays) +function setValueV1iArray( gl, v ) { + + gl.uniform1iv( this.addr, v ); + +} + +function setValueV2iArray( gl, v ) { + + gl.uniform2iv( this.addr, v ); + +} + +function setValueV3iArray( gl, v ) { + + gl.uniform3iv( this.addr, v ); + +} + +function setValueV4iArray( gl, v ) { + + gl.uniform4iv( this.addr, v ); + +} + + +// Array of vectors (flat or from THREE classes) + +function setValueV2fArray( gl, v ) { + + const data = flatten( v, this.size, 2 ); + + gl.uniform2fv( this.addr, data ); + +} + +function setValueV3fArray( gl, v ) { + + const data = flatten( v, this.size, 3 ); + + gl.uniform3fv( this.addr, data ); + +} + +function setValueV4fArray( gl, v ) { + + const data = flatten( v, this.size, 4 ); + + gl.uniform4fv( this.addr, data ); + +} + +// Array of matrices (flat or from THREE clases) + +function setValueM2Array( gl, v ) { + + const data = flatten( v, this.size, 4 ); + + gl.uniformMatrix2fv( this.addr, false, data ); + +} + +function setValueM3Array( gl, v ) { + + const data = flatten( v, this.size, 9 ); + + gl.uniformMatrix3fv( this.addr, false, data ); + +} + +function setValueM4Array( gl, v ) { + + const data = flatten( v, this.size, 16 ); + + gl.uniformMatrix4fv( this.addr, false, data ); + +} + +// Array of textures (2D / Cube) + +function setValueT1Array( gl, v, textures ) { + + const n = v.length; + + const units = allocTexUnits( textures, n ); + + gl.uniform1iv( this.addr, units ); + + for ( let i = 0; i !== n; ++ i ) { + + textures.safeSetTexture2D( v[ i ] || emptyTexture, units[ i ] ); + + } + +} + +function setValueT6Array( gl, v, textures ) { + + const n = v.length; + + const units = allocTexUnits( textures, n ); + + gl.uniform1iv( this.addr, units ); + + for ( let i = 0; i !== n; ++ i ) { + + textures.safeSetTextureCube( v[ i ] || emptyCubeTexture, units[ i ] ); + + } + +} + +// Helper to pick the right setter for a pure (bottom-level) array + +function getPureArraySetter( type ) { + + switch ( type ) { + + case 0x1406: return setValueV1fArray; // FLOAT + case 0x8b50: return setValueV2fArray; // _VEC2 + case 0x8b51: return setValueV3fArray; // _VEC3 + case 0x8b52: return setValueV4fArray; // _VEC4 + + case 0x8b5a: return setValueM2Array; // _MAT2 + case 0x8b5b: return setValueM3Array; // _MAT3 + case 0x8b5c: return setValueM4Array; // _MAT4 + + case 0x1404: case 0x8b56: return setValueV1iArray; // INT, BOOL + case 0x8b53: case 0x8b57: return setValueV2iArray; // _VEC2 + case 0x8b54: case 0x8b58: return setValueV3iArray; // _VEC3 + case 0x8b55: case 0x8b59: return setValueV4iArray; // _VEC4 + + case 0x8b5e: // SAMPLER_2D + case 0x8d66: // SAMPLER_EXTERNAL_OES + case 0x8dca: // INT_SAMPLER_2D + case 0x8dd2: // UNSIGNED_INT_SAMPLER_2D + case 0x8b62: // SAMPLER_2D_SHADOW + return setValueT1Array; + + case 0x8b60: // SAMPLER_CUBE + case 0x8dcc: // INT_SAMPLER_CUBE + case 0x8dd4: // UNSIGNED_INT_SAMPLER_CUBE + case 0x8dc5: // SAMPLER_CUBE_SHADOW + return setValueT6Array; + + } + +} + +// --- Uniform Classes --- + +function SingleUniform( id, activeInfo, addr ) { + + this.id = id; + this.addr = addr; + this.cache = []; + this.setValue = getSingularSetter( activeInfo.type ); + + // this.path = activeInfo.name; // DEBUG + +} + +function PureArrayUniform( id, activeInfo, addr ) { + + this.id = id; + this.addr = addr; + this.cache = []; + this.size = activeInfo.size; + this.setValue = getPureArraySetter( activeInfo.type ); + + // this.path = activeInfo.name; // DEBUG + +} + +PureArrayUniform.prototype.updateCache = function ( data ) { + + const cache = this.cache; + + if ( data instanceof Float32Array && cache.length !== data.length ) { + + this.cache = new Float32Array( data.length ); + + } + + copyArray( cache, data ); + +}; + +function StructuredUniform( id ) { + + this.id = id; + + this.seq = []; + this.map = {}; + +} + +StructuredUniform.prototype.setValue = function ( gl, value, textures ) { + + const seq = this.seq; + + for ( let i = 0, n = seq.length; i !== n; ++ i ) { + + const u = seq[ i ]; + u.setValue( gl, value[ u.id ], textures ); + + } + +}; + +// --- Top-level --- + +// Parser - builds up the property tree from the path strings + +const RePathPart = /([\w\d_]+)(\])?(\[|\.)?/g; + +// extracts +// - the identifier (member name or array index) +// - followed by an optional right bracket (found when array index) +// - followed by an optional left bracket or dot (type of subscript) +// +// Note: These portions can be read in a non-overlapping fashion and +// allow straightforward parsing of the hierarchy that WebGL encodes +// in the uniform names. + +function addUniform( container, uniformObject ) { + + container.seq.push( uniformObject ); + container.map[ uniformObject.id ] = uniformObject; + +} + +function parseUniform( activeInfo, addr, container ) { + + const path = activeInfo.name, + pathLength = path.length; + + // reset RegExp object, because of the early exit of a previous run + RePathPart.lastIndex = 0; + + while ( true ) { + + const match = RePathPart.exec( path ), + matchEnd = RePathPart.lastIndex; + + let id = match[ 1 ]; + const idIsIndex = match[ 2 ] === ']', + subscript = match[ 3 ]; + + if ( idIsIndex ) id = id | 0; // convert to integer + + if ( subscript === undefined || subscript === '[' && matchEnd + 2 === pathLength ) { + + // bare name or "pure" bottom-level array "[0]" suffix + + addUniform( container, subscript === undefined ? + new SingleUniform( id, activeInfo, addr ) : + new PureArrayUniform( id, activeInfo, addr ) ); + + break; + + } else { + + // step into inner node / create it in case it doesn't exist + + const map = container.map; + let next = map[ id ]; + + if ( next === undefined ) { + + next = new StructuredUniform( id ); + addUniform( container, next ); + + } + + container = next; + + } + + } + +} + +// Root Container + +function WebGLUniforms( gl, program ) { + + this.seq = []; + this.map = {}; + + const n = gl.getProgramParameter( program, 35718 ); + + for ( let i = 0; i < n; ++ i ) { + + const info = gl.getActiveUniform( program, i ), + addr = gl.getUniformLocation( program, info.name ); + + parseUniform( info, addr, this ); + + } + +} + +WebGLUniforms.prototype.setValue = function ( gl, name, value, textures ) { + + const u = this.map[ name ]; + + if ( u !== undefined ) u.setValue( gl, value, textures ); + +}; + +WebGLUniforms.prototype.setOptional = function ( gl, object, name ) { + + const v = object[ name ]; + + if ( v !== undefined ) this.setValue( gl, name, v ); + +}; + + +// Static interface + +WebGLUniforms.upload = function ( gl, seq, values, textures ) { + + for ( let i = 0, n = seq.length; i !== n; ++ i ) { + + const u = seq[ i ], + v = values[ u.id ]; + + if ( v.needsUpdate !== false ) { + + // note: always updating when .needsUpdate is undefined + u.setValue( gl, v.value, textures ); + + } + + } + +}; + +WebGLUniforms.seqWithValue = function ( seq, values ) { + + const r = []; + + for ( let i = 0, n = seq.length; i !== n; ++ i ) { + + const u = seq[ i ]; + if ( u.id in values ) r.push( u ); + + } + + return r; + +}; + +function WebGLShader( gl, type, string ) { + + const shader = gl.createShader( type ); + + gl.shaderSource( shader, string ); + gl.compileShader( shader ); + + return shader; + +} + +let programIdCount = 0; + +function addLineNumbers( string ) { + + const lines = string.split( '\n' ); + + for ( let i = 0; i < lines.length; i ++ ) { + + lines[ i ] = ( i + 1 ) + ': ' + lines[ i ]; + + } + + return lines.join( '\n' ); + +} + +function getEncodingComponents( encoding ) { + + switch ( encoding ) { + + case LinearEncoding: + return [ 'Linear', '( value )' ]; + case sRGBEncoding: + return [ 'sRGB', '( value )' ]; + case RGBEEncoding: + return [ 'RGBE', '( value )' ]; + case RGBM7Encoding: + return [ 'RGBM', '( value, 7.0 )' ]; + case RGBM16Encoding: + return [ 'RGBM', '( value, 16.0 )' ]; + case RGBDEncoding: + return [ 'RGBD', '( value, 256.0 )' ]; + case GammaEncoding: + return [ 'Gamma', '( value, float( GAMMA_FACTOR ) )' ]; + case LogLuvEncoding: + return [ 'LogLuv', '( value )' ]; + default: + console.warn( 'THREE.WebGLProgram: Unsupported encoding:', encoding ); + return [ 'Linear', '( value )' ]; + + } + +} + +function getShaderErrors( gl, shader, type ) { + + const status = gl.getShaderParameter( shader, 35713 ); + const log = gl.getShaderInfoLog( shader ).trim(); + + if ( status && log === '' ) return ''; + + // --enable-privileged-webgl-extension + // console.log( '**' + type + '**', gl.getExtension( 'WEBGL_debug_shaders' ).getTranslatedShaderSource( shader ) ); + + const source = gl.getShaderSource( shader ); + + return 'THREE.WebGLShader: gl.getShaderInfoLog() ' + type + '\n' + log + addLineNumbers( source ); + +} + +function getTexelDecodingFunction( functionName, encoding ) { + + const components = getEncodingComponents( encoding ); + return 'vec4 ' + functionName + '( vec4 value ) { return ' + components[ 0 ] + 'ToLinear' + components[ 1 ] + '; }'; + +} + +function getTexelEncodingFunction( functionName, encoding ) { + + const components = getEncodingComponents( encoding ); + return 'vec4 ' + functionName + '( vec4 value ) { return LinearTo' + components[ 0 ] + components[ 1 ] + '; }'; + +} + +function getToneMappingFunction( functionName, toneMapping ) { + + let toneMappingName; + + switch ( toneMapping ) { + + case LinearToneMapping: + toneMappingName = 'Linear'; + break; + + case ReinhardToneMapping: + toneMappingName = 'Reinhard'; + break; + + case CineonToneMapping: + toneMappingName = 'OptimizedCineon'; + break; + + case ACESFilmicToneMapping: + toneMappingName = 'ACESFilmic'; + break; + + case CustomToneMapping: + toneMappingName = 'Custom'; + break; + + default: + console.warn( 'THREE.WebGLProgram: Unsupported toneMapping:', toneMapping ); + toneMappingName = 'Linear'; + + } + + return 'vec3 ' + functionName + '( vec3 color ) { return ' + toneMappingName + 'ToneMapping( color ); }'; + +} + +function generateExtensions( parameters ) { + + const chunks = [ + ( parameters.extensionDerivatives || parameters.envMapCubeUV || parameters.bumpMap || parameters.tangentSpaceNormalMap || parameters.clearcoatNormalMap || parameters.flatShading || parameters.shaderID === 'physical' ) ? '#extension GL_OES_standard_derivatives : enable' : '', + ( parameters.extensionFragDepth || parameters.logarithmicDepthBuffer ) && parameters.rendererExtensionFragDepth ? '#extension GL_EXT_frag_depth : enable' : '', + ( parameters.extensionDrawBuffers && parameters.rendererExtensionDrawBuffers ) ? '#extension GL_EXT_draw_buffers : require' : '', + ( parameters.extensionShaderTextureLOD || parameters.envMap ) && parameters.rendererExtensionShaderTextureLod ? '#extension GL_EXT_shader_texture_lod : enable' : '' + ]; + + return chunks.filter( filterEmptyLine ).join( '\n' ); + +} + +function generateDefines( defines ) { + + const chunks = []; + + for ( const name in defines ) { + + const value = defines[ name ]; + + if ( value === false ) continue; + + chunks.push( '#define ' + name + ' ' + value ); + + } + + return chunks.join( '\n' ); + +} + +function fetchAttributeLocations( gl, program ) { + + const attributes = {}; + + const n = gl.getProgramParameter( program, 35721 ); + + for ( let i = 0; i < n; i ++ ) { + + const info = gl.getActiveAttrib( program, i ); + const name = info.name; + + // console.log( 'THREE.WebGLProgram: ACTIVE VERTEX ATTRIBUTE:', name, i ); + + attributes[ name ] = gl.getAttribLocation( program, name ); + + } + + return attributes; + +} + +function filterEmptyLine( string ) { + + return string !== ''; + +} + +function replaceLightNums( string, parameters ) { + + return string + .replace( /NUM_DIR_LIGHTS/g, parameters.numDirLights ) + .replace( /NUM_SPOT_LIGHTS/g, parameters.numSpotLights ) + .replace( /NUM_RECT_AREA_LIGHTS/g, parameters.numRectAreaLights ) + .replace( /NUM_POINT_LIGHTS/g, parameters.numPointLights ) + .replace( /NUM_HEMI_LIGHTS/g, parameters.numHemiLights ) + .replace( /NUM_DIR_LIGHT_SHADOWS/g, parameters.numDirLightShadows ) + .replace( /NUM_SPOT_LIGHT_SHADOWS/g, parameters.numSpotLightShadows ) + .replace( /NUM_POINT_LIGHT_SHADOWS/g, parameters.numPointLightShadows ); + +} + +function replaceClippingPlaneNums( string, parameters ) { + + return string + .replace( /NUM_CLIPPING_PLANES/g, parameters.numClippingPlanes ) + .replace( /UNION_CLIPPING_PLANES/g, ( parameters.numClippingPlanes - parameters.numClipIntersection ) ); + +} + +// Resolve Includes + +const includePattern = /^[ \t]*#include +<([\w\d./]+)>/gm; + +function resolveIncludes( string ) { + + return string.replace( includePattern, includeReplacer ); + +} + +function includeReplacer( match, include ) { + + const string = ShaderChunk[ include ]; + + if ( string === undefined ) { + + throw new Error( 'Can not resolve #include <' + include + '>' ); + + } + + return resolveIncludes( string ); + +} + +// Unroll Loops + +const deprecatedUnrollLoopPattern = /#pragma unroll_loop[\s]+?for \( int i \= (\d+)\; i < (\d+)\; i \+\+ \) \{([\s\S]+?)(?=\})\}/g; +const unrollLoopPattern = /#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g; + +function unrollLoops( string ) { + + return string + .replace( unrollLoopPattern, loopReplacer ) + .replace( deprecatedUnrollLoopPattern, deprecatedLoopReplacer ); + +} + +function deprecatedLoopReplacer( match, start, end, snippet ) { + + console.warn( 'WebGLProgram: #pragma unroll_loop shader syntax is deprecated. Please use #pragma unroll_loop_start syntax instead.' ); + return loopReplacer( match, start, end, snippet ); + +} + +function loopReplacer( match, start, end, snippet ) { + + let string = ''; + + for ( let i = parseInt( start ); i < parseInt( end ); i ++ ) { + + string += snippet + .replace( /\[\s*i\s*\]/g, '[ ' + i + ' ]' ) + .replace( /UNROLLED_LOOP_INDEX/g, i ); + + } + + return string; + +} + +// + +function generatePrecision( parameters ) { + + let precisionstring = "precision " + parameters.precision + " float;\nprecision " + parameters.precision + " int;"; + + if ( parameters.precision === "highp" ) { + + precisionstring += "\n#define HIGH_PRECISION"; + + } else if ( parameters.precision === "mediump" ) { + + precisionstring += "\n#define MEDIUM_PRECISION"; + + } else if ( parameters.precision === "lowp" ) { + + precisionstring += "\n#define LOW_PRECISION"; + + } + + return precisionstring; + +} + +function generateShadowMapTypeDefine( parameters ) { + + let shadowMapTypeDefine = 'SHADOWMAP_TYPE_BASIC'; + + if ( parameters.shadowMapType === PCFShadowMap ) { + + shadowMapTypeDefine = 'SHADOWMAP_TYPE_PCF'; + + } else if ( parameters.shadowMapType === PCFSoftShadowMap ) { + + shadowMapTypeDefine = 'SHADOWMAP_TYPE_PCF_SOFT'; + + } else if ( parameters.shadowMapType === VSMShadowMap ) { + + shadowMapTypeDefine = 'SHADOWMAP_TYPE_VSM'; + + } + + return shadowMapTypeDefine; + +} + +function generateEnvMapTypeDefine( parameters ) { + + let envMapTypeDefine = 'ENVMAP_TYPE_CUBE'; + + if ( parameters.envMap ) { + + switch ( parameters.envMapMode ) { + + case CubeReflectionMapping: + case CubeRefractionMapping: + envMapTypeDefine = 'ENVMAP_TYPE_CUBE'; + break; + + case CubeUVReflectionMapping: + case CubeUVRefractionMapping: + envMapTypeDefine = 'ENVMAP_TYPE_CUBE_UV'; + break; + + } + + } + + return envMapTypeDefine; + +} + +function generateEnvMapModeDefine( parameters ) { + + let envMapModeDefine = 'ENVMAP_MODE_REFLECTION'; + + if ( parameters.envMap ) { + + switch ( parameters.envMapMode ) { + + case CubeRefractionMapping: + case CubeUVRefractionMapping: + + envMapModeDefine = 'ENVMAP_MODE_REFRACTION'; + break; + + } + + } + + return envMapModeDefine; + +} + +function generateEnvMapBlendingDefine( parameters ) { + + let envMapBlendingDefine = 'ENVMAP_BLENDING_NONE'; + + if ( parameters.envMap ) { + + switch ( parameters.combine ) { + + case MultiplyOperation: + envMapBlendingDefine = 'ENVMAP_BLENDING_MULTIPLY'; + break; + + case MixOperation: + envMapBlendingDefine = 'ENVMAP_BLENDING_MIX'; + break; + + case AddOperation: + envMapBlendingDefine = 'ENVMAP_BLENDING_ADD'; + break; + + } + + } + + return envMapBlendingDefine; + +} + +function WebGLProgram( renderer, cacheKey, parameters, bindingStates ) { + + const gl = renderer.getContext(); + + const defines = parameters.defines; + + let vertexShader = parameters.vertexShader; + let fragmentShader = parameters.fragmentShader; + + const shadowMapTypeDefine = generateShadowMapTypeDefine( parameters ); + const envMapTypeDefine = generateEnvMapTypeDefine( parameters ); + const envMapModeDefine = generateEnvMapModeDefine( parameters ); + const envMapBlendingDefine = generateEnvMapBlendingDefine( parameters ); + + + const gammaFactorDefine = ( renderer.gammaFactor > 0 ) ? renderer.gammaFactor : 1.0; + + const customExtensions = parameters.isWebGL2 ? '' : generateExtensions( parameters ); + + const customDefines = generateDefines( defines ); + + const program = gl.createProgram(); + + let prefixVertex, prefixFragment; + let versionString = parameters.glslVersion ? '#version ' + parameters.glslVersion + "\n" : ''; + + if ( parameters.isRawShaderMaterial ) { + + prefixVertex = [ + + customDefines + + ].filter( filterEmptyLine ).join( '\n' ); + + if ( prefixVertex.length > 0 ) { + + prefixVertex += '\n'; + + } + + prefixFragment = [ + + customExtensions, + customDefines + + ].filter( filterEmptyLine ).join( '\n' ); + + if ( prefixFragment.length > 0 ) { + + prefixFragment += '\n'; + + } + + } else { + + prefixVertex = [ + + generatePrecision( parameters ), + + '#define SHADER_NAME ' + parameters.shaderName, + + customDefines, + + parameters.instancing ? '#define USE_INSTANCING' : '', + parameters.instancingColor ? '#define USE_INSTANCING_COLOR' : '', + + parameters.supportsVertexTextures ? '#define VERTEX_TEXTURES' : '', + + '#define GAMMA_FACTOR ' + gammaFactorDefine, + + '#define MAX_BONES ' + parameters.maxBones, + ( parameters.useFog && parameters.fog ) ? '#define USE_FOG' : '', + ( parameters.useFog && parameters.fogExp2 ) ? '#define FOG_EXP2' : '', + + parameters.map ? '#define USE_MAP' : '', + parameters.envMap ? '#define USE_ENVMAP' : '', + parameters.envMap ? '#define ' + envMapModeDefine : '', + parameters.lightMap ? '#define USE_LIGHTMAP' : '', + parameters.aoMap ? '#define USE_AOMAP' : '', + parameters.emissiveMap ? '#define USE_EMISSIVEMAP' : '', + parameters.bumpMap ? '#define USE_BUMPMAP' : '', + parameters.normalMap ? '#define USE_NORMALMAP' : '', + ( parameters.normalMap && parameters.objectSpaceNormalMap ) ? '#define OBJECTSPACE_NORMALMAP' : '', + ( parameters.normalMap && parameters.tangentSpaceNormalMap ) ? '#define TANGENTSPACE_NORMALMAP' : '', + + parameters.clearcoatMap ? '#define USE_CLEARCOATMAP' : '', + parameters.clearcoatRoughnessMap ? '#define USE_CLEARCOAT_ROUGHNESSMAP' : '', + parameters.clearcoatNormalMap ? '#define USE_CLEARCOAT_NORMALMAP' : '', + parameters.displacementMap && parameters.supportsVertexTextures ? '#define USE_DISPLACEMENTMAP' : '', + parameters.specularMap ? '#define USE_SPECULARMAP' : '', + parameters.roughnessMap ? '#define USE_ROUGHNESSMAP' : '', + parameters.metalnessMap ? '#define USE_METALNESSMAP' : '', + parameters.alphaMap ? '#define USE_ALPHAMAP' : '', + parameters.transmissionMap ? '#define USE_TRANSMISSIONMAP' : '', + + parameters.vertexTangents ? '#define USE_TANGENT' : '', + parameters.vertexColors ? '#define USE_COLOR' : '', + parameters.vertexUvs ? '#define USE_UV' : '', + parameters.uvsVertexOnly ? '#define UVS_VERTEX_ONLY' : '', + + parameters.flatShading ? '#define FLAT_SHADED' : '', + + parameters.skinning ? '#define USE_SKINNING' : '', + parameters.useVertexTexture ? '#define BONE_TEXTURE' : '', + + parameters.morphTargets ? '#define USE_MORPHTARGETS' : '', + parameters.morphNormals && parameters.flatShading === false ? '#define USE_MORPHNORMALS' : '', + parameters.doubleSided ? '#define DOUBLE_SIDED' : '', + parameters.flipSided ? '#define FLIP_SIDED' : '', + + parameters.shadowMapEnabled ? '#define USE_SHADOWMAP' : '', + parameters.shadowMapEnabled ? '#define ' + shadowMapTypeDefine : '', + + parameters.sizeAttenuation ? '#define USE_SIZEATTENUATION' : '', + + parameters.logarithmicDepthBuffer ? '#define USE_LOGDEPTHBUF' : '', + ( parameters.logarithmicDepthBuffer && parameters.rendererExtensionFragDepth ) ? '#define USE_LOGDEPTHBUF_EXT' : '', + + 'uniform mat4 modelMatrix;', + 'uniform mat4 modelViewMatrix;', + 'uniform mat4 projectionMatrix;', + 'uniform mat4 viewMatrix;', + 'uniform mat3 normalMatrix;', + 'uniform vec3 cameraPosition;', + 'uniform bool isOrthographic;', + + '#ifdef USE_INSTANCING', + + ' attribute mat4 instanceMatrix;', + + '#endif', + + '#ifdef USE_INSTANCING_COLOR', + + ' attribute vec3 instanceColor;', + + '#endif', + + 'attribute vec3 position;', + 'attribute vec3 normal;', + 'attribute vec2 uv;', + + '#ifdef USE_TANGENT', + + ' attribute vec4 tangent;', + + '#endif', + + '#ifdef USE_COLOR', + + ' attribute vec3 color;', + + '#endif', + + '#ifdef USE_MORPHTARGETS', + + ' attribute vec3 morphTarget0;', + ' attribute vec3 morphTarget1;', + ' attribute vec3 morphTarget2;', + ' attribute vec3 morphTarget3;', + + ' #ifdef USE_MORPHNORMALS', + + ' attribute vec3 morphNormal0;', + ' attribute vec3 morphNormal1;', + ' attribute vec3 morphNormal2;', + ' attribute vec3 morphNormal3;', + + ' #else', + + ' attribute vec3 morphTarget4;', + ' attribute vec3 morphTarget5;', + ' attribute vec3 morphTarget6;', + ' attribute vec3 morphTarget7;', + + ' #endif', + + '#endif', + + '#ifdef USE_SKINNING', + + ' attribute vec4 skinIndex;', + ' attribute vec4 skinWeight;', + + '#endif', + + '\n' + + ].filter( filterEmptyLine ).join( '\n' ); + + prefixFragment = [ + + customExtensions, + + generatePrecision( parameters ), + + '#define SHADER_NAME ' + parameters.shaderName, + + customDefines, + + parameters.alphaTest ? '#define ALPHATEST ' + parameters.alphaTest + ( parameters.alphaTest % 1 ? '' : '.0' ) : '', // add '.0' if integer + + '#define GAMMA_FACTOR ' + gammaFactorDefine, + + ( parameters.useFog && parameters.fog ) ? '#define USE_FOG' : '', + ( parameters.useFog && parameters.fogExp2 ) ? '#define FOG_EXP2' : '', + + parameters.map ? '#define USE_MAP' : '', + parameters.matcap ? '#define USE_MATCAP' : '', + parameters.envMap ? '#define USE_ENVMAP' : '', + parameters.envMap ? '#define ' + envMapTypeDefine : '', + parameters.envMap ? '#define ' + envMapModeDefine : '', + parameters.envMap ? '#define ' + envMapBlendingDefine : '', + parameters.lightMap ? '#define USE_LIGHTMAP' : '', + parameters.aoMap ? '#define USE_AOMAP' : '', + parameters.emissiveMap ? '#define USE_EMISSIVEMAP' : '', + parameters.bumpMap ? '#define USE_BUMPMAP' : '', + parameters.normalMap ? '#define USE_NORMALMAP' : '', + ( parameters.normalMap && parameters.objectSpaceNormalMap ) ? '#define OBJECTSPACE_NORMALMAP' : '', + ( parameters.normalMap && parameters.tangentSpaceNormalMap ) ? '#define TANGENTSPACE_NORMALMAP' : '', + parameters.clearcoatMap ? '#define USE_CLEARCOATMAP' : '', + parameters.clearcoatRoughnessMap ? '#define USE_CLEARCOAT_ROUGHNESSMAP' : '', + parameters.clearcoatNormalMap ? '#define USE_CLEARCOAT_NORMALMAP' : '', + parameters.specularMap ? '#define USE_SPECULARMAP' : '', + parameters.roughnessMap ? '#define USE_ROUGHNESSMAP' : '', + parameters.metalnessMap ? '#define USE_METALNESSMAP' : '', + parameters.alphaMap ? '#define USE_ALPHAMAP' : '', + + parameters.sheen ? '#define USE_SHEEN' : '', + parameters.transmissionMap ? '#define USE_TRANSMISSIONMAP' : '', + + parameters.vertexTangents ? '#define USE_TANGENT' : '', + parameters.vertexColors || parameters.instancingColor ? '#define USE_COLOR' : '', + parameters.vertexUvs ? '#define USE_UV' : '', + parameters.uvsVertexOnly ? '#define UVS_VERTEX_ONLY' : '', + + parameters.gradientMap ? '#define USE_GRADIENTMAP' : '', + + parameters.flatShading ? '#define FLAT_SHADED' : '', + + parameters.doubleSided ? '#define DOUBLE_SIDED' : '', + parameters.flipSided ? '#define FLIP_SIDED' : '', + + parameters.shadowMapEnabled ? '#define USE_SHADOWMAP' : '', + parameters.shadowMapEnabled ? '#define ' + shadowMapTypeDefine : '', + + parameters.premultipliedAlpha ? '#define PREMULTIPLIED_ALPHA' : '', + + parameters.physicallyCorrectLights ? '#define PHYSICALLY_CORRECT_LIGHTS' : '', + + parameters.logarithmicDepthBuffer ? '#define USE_LOGDEPTHBUF' : '', + ( parameters.logarithmicDepthBuffer && parameters.rendererExtensionFragDepth ) ? '#define USE_LOGDEPTHBUF_EXT' : '', + + ( ( parameters.extensionShaderTextureLOD || parameters.envMap ) && parameters.rendererExtensionShaderTextureLod ) ? '#define TEXTURE_LOD_EXT' : '', + + 'uniform mat4 viewMatrix;', + 'uniform vec3 cameraPosition;', + 'uniform bool isOrthographic;', + + ( parameters.toneMapping !== NoToneMapping ) ? '#define TONE_MAPPING' : '', + ( parameters.toneMapping !== NoToneMapping ) ? ShaderChunk[ 'tonemapping_pars_fragment' ] : '', // this code is required here because it is used by the toneMapping() function defined below + ( parameters.toneMapping !== NoToneMapping ) ? getToneMappingFunction( 'toneMapping', parameters.toneMapping ) : '', + + parameters.dithering ? '#define DITHERING' : '', + + ShaderChunk[ 'encodings_pars_fragment' ], // this code is required here because it is used by the various encoding/decoding function defined below + parameters.map ? getTexelDecodingFunction( 'mapTexelToLinear', parameters.mapEncoding ) : '', + parameters.matcap ? getTexelDecodingFunction( 'matcapTexelToLinear', parameters.matcapEncoding ) : '', + parameters.envMap ? getTexelDecodingFunction( 'envMapTexelToLinear', parameters.envMapEncoding ) : '', + parameters.emissiveMap ? getTexelDecodingFunction( 'emissiveMapTexelToLinear', parameters.emissiveMapEncoding ) : '', + parameters.lightMap ? getTexelDecodingFunction( 'lightMapTexelToLinear', parameters.lightMapEncoding ) : '', + getTexelEncodingFunction( 'linearToOutputTexel', parameters.outputEncoding ), + + parameters.depthPacking ? '#define DEPTH_PACKING ' + parameters.depthPacking : '', + + '\n' + + ].filter( filterEmptyLine ).join( '\n' ); + + } + + vertexShader = resolveIncludes( vertexShader ); + vertexShader = replaceLightNums( vertexShader, parameters ); + vertexShader = replaceClippingPlaneNums( vertexShader, parameters ); + + fragmentShader = resolveIncludes( fragmentShader ); + fragmentShader = replaceLightNums( fragmentShader, parameters ); + fragmentShader = replaceClippingPlaneNums( fragmentShader, parameters ); + + vertexShader = unrollLoops( vertexShader ); + fragmentShader = unrollLoops( fragmentShader ); + + if ( parameters.isWebGL2 && parameters.isRawShaderMaterial !== true ) { + + // GLSL 3.0 conversion for built-in materials and ShaderMaterial + + versionString = '#version 300 es\n'; + + prefixVertex = [ + '#define attribute in', + '#define varying out', + '#define texture2D texture' + ].join( '\n' ) + '\n' + prefixVertex; + + prefixFragment = [ + '#define varying in', + ( parameters.glslVersion === GLSL3 ) ? '' : 'out highp vec4 pc_fragColor;', + ( parameters.glslVersion === GLSL3 ) ? '' : '#define gl_FragColor pc_fragColor', + '#define gl_FragDepthEXT gl_FragDepth', + '#define texture2D texture', + '#define textureCube texture', + '#define texture2DProj textureProj', + '#define texture2DLodEXT textureLod', + '#define texture2DProjLodEXT textureProjLod', + '#define textureCubeLodEXT textureLod', + '#define texture2DGradEXT textureGrad', + '#define texture2DProjGradEXT textureProjGrad', + '#define textureCubeGradEXT textureGrad' + ].join( '\n' ) + '\n' + prefixFragment; + + } + + const vertexGlsl = versionString + prefixVertex + vertexShader; + const fragmentGlsl = versionString + prefixFragment + fragmentShader; + + // console.log( '*VERTEX*', vertexGlsl ); + // console.log( '*FRAGMENT*', fragmentGlsl ); + + const glVertexShader = WebGLShader( gl, 35633, vertexGlsl ); + const glFragmentShader = WebGLShader( gl, 35632, fragmentGlsl ); + + gl.attachShader( program, glVertexShader ); + gl.attachShader( program, glFragmentShader ); + + // Force a particular attribute to index 0. + + if ( parameters.index0AttributeName !== undefined ) { + + gl.bindAttribLocation( program, 0, parameters.index0AttributeName ); + + } else if ( parameters.morphTargets === true ) { + + // programs with morphTargets displace position out of attribute 0 + gl.bindAttribLocation( program, 0, 'position' ); + + } + + gl.linkProgram( program ); + + // check for link errors + if ( renderer.debug.checkShaderErrors ) { + + const programLog = gl.getProgramInfoLog( program ).trim(); + const vertexLog = gl.getShaderInfoLog( glVertexShader ).trim(); + const fragmentLog = gl.getShaderInfoLog( glFragmentShader ).trim(); + + let runnable = true; + let haveDiagnostics = true; + + if ( gl.getProgramParameter( program, 35714 ) === false ) { + + runnable = false; + + const vertexErrors = getShaderErrors( gl, glVertexShader, 'vertex' ); + const fragmentErrors = getShaderErrors( gl, glFragmentShader, 'fragment' ); + + console.error( 'THREE.WebGLProgram: shader error: ', gl.getError(), '35715', gl.getProgramParameter( program, 35715 ), 'gl.getProgramInfoLog', programLog, vertexErrors, fragmentErrors ); + + } else if ( programLog !== '' ) { + + console.warn( 'THREE.WebGLProgram: gl.getProgramInfoLog()', programLog ); + + } else if ( vertexLog === '' || fragmentLog === '' ) { + + haveDiagnostics = false; + + } + + if ( haveDiagnostics ) { + + this.diagnostics = { + + runnable: runnable, + + programLog: programLog, + + vertexShader: { + + log: vertexLog, + prefix: prefixVertex + + }, + + fragmentShader: { + + log: fragmentLog, + prefix: prefixFragment + + } + + }; + + } + + } + + // Clean up + + // Crashes in iOS9 and iOS10. #18402 + // gl.detachShader( program, glVertexShader ); + // gl.detachShader( program, glFragmentShader ); + + gl.deleteShader( glVertexShader ); + gl.deleteShader( glFragmentShader ); + + // set up caching for uniform locations + + let cachedUniforms; + + this.getUniforms = function () { + + if ( cachedUniforms === undefined ) { + + cachedUniforms = new WebGLUniforms( gl, program ); + + } + + return cachedUniforms; + + }; + + // set up caching for attribute locations + + let cachedAttributes; + + this.getAttributes = function () { + + if ( cachedAttributes === undefined ) { + + cachedAttributes = fetchAttributeLocations( gl, program ); + + } + + return cachedAttributes; + + }; + + // free resource + + this.destroy = function () { + + bindingStates.releaseStatesOfProgram( this ); + + gl.deleteProgram( program ); + this.program = undefined; + + }; + + // + + this.name = parameters.shaderName; + this.id = programIdCount ++; + this.cacheKey = cacheKey; + this.usedTimes = 1; + this.program = program; + this.vertexShader = glVertexShader; + this.fragmentShader = glFragmentShader; + + return this; + +} + +function WebGLPrograms( renderer, cubemaps, extensions, capabilities, bindingStates, clipping ) { + + const programs = []; + + const isWebGL2 = capabilities.isWebGL2; + const logarithmicDepthBuffer = capabilities.logarithmicDepthBuffer; + const floatVertexTextures = capabilities.floatVertexTextures; + const maxVertexUniforms = capabilities.maxVertexUniforms; + const vertexTextures = capabilities.vertexTextures; + + let precision = capabilities.precision; + + const shaderIDs = { + MeshDepthMaterial: 'depth', + MeshDistanceMaterial: 'distanceRGBA', + MeshNormalMaterial: 'normal', + MeshBasicMaterial: 'basic', + MeshLambertMaterial: 'lambert', + MeshPhongMaterial: 'phong', + MeshToonMaterial: 'toon', + MeshStandardMaterial: 'physical', + MeshPhysicalMaterial: 'physical', + MeshMatcapMaterial: 'matcap', + LineBasicMaterial: 'basic', + LineDashedMaterial: 'dashed', + PointsMaterial: 'points', + ShadowMaterial: 'shadow', + SpriteMaterial: 'sprite' + }; + + const parameterNames = [ + "precision", "isWebGL2", "supportsVertexTextures", "outputEncoding", "instancing", "instancingColor", + "map", "mapEncoding", "matcap", "matcapEncoding", "envMap", "envMapMode", "envMapEncoding", "envMapCubeUV", + "lightMap", "lightMapEncoding", "aoMap", "emissiveMap", "emissiveMapEncoding", "bumpMap", "normalMap", "objectSpaceNormalMap", "tangentSpaceNormalMap", "clearcoatMap", "clearcoatRoughnessMap", "clearcoatNormalMap", "displacementMap", "specularMap", + "roughnessMap", "metalnessMap", "gradientMap", + "alphaMap", "combine", "vertexColors", "vertexTangents", "vertexUvs", "uvsVertexOnly", "fog", "useFog", "fogExp2", + "flatShading", "sizeAttenuation", "logarithmicDepthBuffer", "skinning", + "maxBones", "useVertexTexture", "morphTargets", "morphNormals", + "maxMorphTargets", "maxMorphNormals", "premultipliedAlpha", + "numDirLights", "numPointLights", "numSpotLights", "numHemiLights", "numRectAreaLights", + "numDirLightShadows", "numPointLightShadows", "numSpotLightShadows", + "shadowMapEnabled", "shadowMapType", "toneMapping", 'physicallyCorrectLights', + "alphaTest", "doubleSided", "flipSided", "numClippingPlanes", "numClipIntersection", "depthPacking", "dithering", + "sheen", "transmissionMap" + ]; + + function getMaxBones( object ) { + + const skeleton = object.skeleton; + const bones = skeleton.bones; + + if ( floatVertexTextures ) { + + return 1024; + + } else { + + // default for when object is not specified + // ( for example when prebuilding shader to be used with multiple objects ) + // + // - leave some extra space for other uniforms + // - limit here is ANGLE's 254 max uniform vectors + // (up to 54 should be safe) + + const nVertexUniforms = maxVertexUniforms; + const nVertexMatrices = Math.floor( ( nVertexUniforms - 20 ) / 4 ); + + const maxBones = Math.min( nVertexMatrices, bones.length ); + + if ( maxBones < bones.length ) { + + console.warn( 'THREE.WebGLRenderer: Skeleton has ' + bones.length + ' bones. This GPU supports ' + maxBones + '.' ); + return 0; + + } + + return maxBones; + + } + + } + + function getTextureEncodingFromMap( map ) { + + let encoding; + + if ( ! map ) { + + encoding = LinearEncoding; + + } else if ( map.isTexture ) { + + encoding = map.encoding; + + } else if ( map.isWebGLRenderTarget ) { + + console.warn( "THREE.WebGLPrograms.getTextureEncodingFromMap: don't use render targets as textures. Use their .texture property instead." ); + encoding = map.texture.encoding; + + } + + return encoding; + + } + + function getParameters( material, lights, shadows, scene, object ) { + + const fog = scene.fog; + const environment = material.isMeshStandardMaterial ? scene.environment : null; + + const envMap = cubemaps.get( material.envMap || environment ); + + const shaderID = shaderIDs[ material.type ]; + + // heuristics to create shader parameters according to lights in the scene + // (not to blow over maxLights budget) + + const maxBones = object.isSkinnedMesh ? getMaxBones( object ) : 0; + + if ( material.precision !== null ) { + + precision = capabilities.getMaxPrecision( material.precision ); + + if ( precision !== material.precision ) { + + console.warn( 'THREE.WebGLProgram.getParameters:', material.precision, 'not supported, using', precision, 'instead.' ); + + } + + } + + let vertexShader, fragmentShader; + + if ( shaderID ) { + + const shader = ShaderLib[ shaderID ]; + + vertexShader = shader.vertexShader; + fragmentShader = shader.fragmentShader; + + } else { + + vertexShader = material.vertexShader; + fragmentShader = material.fragmentShader; + + } + + const currentRenderTarget = renderer.getRenderTarget(); + + const parameters = { + + isWebGL2: isWebGL2, + + shaderID: shaderID, + shaderName: material.type, + + vertexShader: vertexShader, + fragmentShader: fragmentShader, + defines: material.defines, + + isRawShaderMaterial: material.isRawShaderMaterial === true, + glslVersion: material.glslVersion, + + precision: precision, + + instancing: object.isInstancedMesh === true, + instancingColor: object.isInstancedMesh === true && object.instanceColor !== null, + + supportsVertexTextures: vertexTextures, + outputEncoding: ( currentRenderTarget !== null ) ? getTextureEncodingFromMap( currentRenderTarget.texture ) : renderer.outputEncoding, + map: !! material.map, + mapEncoding: getTextureEncodingFromMap( material.map ), + matcap: !! material.matcap, + matcapEncoding: getTextureEncodingFromMap( material.matcap ), + envMap: !! envMap, + envMapMode: envMap && envMap.mapping, + envMapEncoding: getTextureEncodingFromMap( envMap ), + envMapCubeUV: ( !! envMap ) && ( ( envMap.mapping === CubeUVReflectionMapping ) || ( envMap.mapping === CubeUVRefractionMapping ) ), + lightMap: !! material.lightMap, + lightMapEncoding: getTextureEncodingFromMap( material.lightMap ), + aoMap: !! material.aoMap, + emissiveMap: !! material.emissiveMap, + emissiveMapEncoding: getTextureEncodingFromMap( material.emissiveMap ), + bumpMap: !! material.bumpMap, + normalMap: !! material.normalMap, + objectSpaceNormalMap: material.normalMapType === ObjectSpaceNormalMap, + tangentSpaceNormalMap: material.normalMapType === TangentSpaceNormalMap, + clearcoatMap: !! material.clearcoatMap, + clearcoatRoughnessMap: !! material.clearcoatRoughnessMap, + clearcoatNormalMap: !! material.clearcoatNormalMap, + displacementMap: !! material.displacementMap, + roughnessMap: !! material.roughnessMap, + metalnessMap: !! material.metalnessMap, + specularMap: !! material.specularMap, + alphaMap: !! material.alphaMap, + + gradientMap: !! material.gradientMap, + + sheen: !! material.sheen, + + transmissionMap: !! material.transmissionMap, + + combine: material.combine, + + vertexTangents: ( material.normalMap && material.vertexTangents ), + vertexColors: material.vertexColors, + vertexUvs: !! material.map || !! material.bumpMap || !! material.normalMap || !! material.specularMap || !! material.alphaMap || !! material.emissiveMap || !! material.roughnessMap || !! material.metalnessMap || !! material.clearcoatMap || !! material.clearcoatRoughnessMap || !! material.clearcoatNormalMap || !! material.displacementMap || !! material.transmissionMap, + uvsVertexOnly: ! ( !! material.map || !! material.bumpMap || !! material.normalMap || !! material.specularMap || !! material.alphaMap || !! material.emissiveMap || !! material.roughnessMap || !! material.metalnessMap || !! material.clearcoatNormalMap || !! material.transmissionMap ) && !! material.displacementMap, + + fog: !! fog, + useFog: material.fog, + fogExp2: ( fog && fog.isFogExp2 ), + + flatShading: material.flatShading, + + sizeAttenuation: material.sizeAttenuation, + logarithmicDepthBuffer: logarithmicDepthBuffer, + + skinning: material.skinning && maxBones > 0, + maxBones: maxBones, + useVertexTexture: floatVertexTextures, + + morphTargets: material.morphTargets, + morphNormals: material.morphNormals, + maxMorphTargets: renderer.maxMorphTargets, + maxMorphNormals: renderer.maxMorphNormals, + + numDirLights: lights.directional.length, + numPointLights: lights.point.length, + numSpotLights: lights.spot.length, + numRectAreaLights: lights.rectArea.length, + numHemiLights: lights.hemi.length, + + numDirLightShadows: lights.directionalShadowMap.length, + numPointLightShadows: lights.pointShadowMap.length, + numSpotLightShadows: lights.spotShadowMap.length, + + numClippingPlanes: clipping.numPlanes, + numClipIntersection: clipping.numIntersection, + + dithering: material.dithering, + + shadowMapEnabled: renderer.shadowMap.enabled && shadows.length > 0, + shadowMapType: renderer.shadowMap.type, + + toneMapping: material.toneMapped ? renderer.toneMapping : NoToneMapping, + physicallyCorrectLights: renderer.physicallyCorrectLights, + + premultipliedAlpha: material.premultipliedAlpha, + + alphaTest: material.alphaTest, + doubleSided: material.side === DoubleSide, + flipSided: material.side === BackSide, + + depthPacking: ( material.depthPacking !== undefined ) ? material.depthPacking : false, + + index0AttributeName: material.index0AttributeName, + + extensionDerivatives: material.extensions && material.extensions.derivatives, + extensionFragDepth: material.extensions && material.extensions.fragDepth, + extensionDrawBuffers: material.extensions && material.extensions.drawBuffers, + extensionShaderTextureLOD: material.extensions && material.extensions.shaderTextureLOD, + + rendererExtensionFragDepth: isWebGL2 || extensions.has( 'EXT_frag_depth' ), + rendererExtensionDrawBuffers: isWebGL2 || extensions.has( 'WEBGL_draw_buffers' ), + rendererExtensionShaderTextureLod: isWebGL2 || extensions.has( 'EXT_shader_texture_lod' ), + + customProgramCacheKey: material.customProgramCacheKey() + + }; + + return parameters; + + } + + function getProgramCacheKey( parameters ) { + + const array = []; + + if ( parameters.shaderID ) { + + array.push( parameters.shaderID ); + + } else { + + array.push( parameters.fragmentShader ); + array.push( parameters.vertexShader ); + + } + + if ( parameters.defines !== undefined ) { + + for ( const name in parameters.defines ) { + + array.push( name ); + array.push( parameters.defines[ name ] ); + + } + + } + + if ( parameters.isRawShaderMaterial === false ) { + + for ( let i = 0; i < parameterNames.length; i ++ ) { + + array.push( parameters[ parameterNames[ i ] ] ); + + } + + array.push( renderer.outputEncoding ); + array.push( renderer.gammaFactor ); + + } + + array.push( parameters.customProgramCacheKey ); + + return array.join(); + + } + + function getUniforms( material ) { + + const shaderID = shaderIDs[ material.type ]; + let uniforms; + + if ( shaderID ) { + + const shader = ShaderLib[ shaderID ]; + uniforms = UniformsUtils.clone( shader.uniforms ); + + } else { + + uniforms = material.uniforms; + + } + + return uniforms; + + } + + function acquireProgram( parameters, cacheKey ) { + + let program; + + // Check if code has been already compiled + for ( let p = 0, pl = programs.length; p < pl; p ++ ) { + + const preexistingProgram = programs[ p ]; + + if ( preexistingProgram.cacheKey === cacheKey ) { + + program = preexistingProgram; + ++ program.usedTimes; + + break; + + } + + } + + if ( program === undefined ) { + + program = new WebGLProgram( renderer, cacheKey, parameters, bindingStates ); + programs.push( program ); + + } + + return program; + + } + + function releaseProgram( program ) { + + if ( -- program.usedTimes === 0 ) { + + // Remove from unordered set + const i = programs.indexOf( program ); + programs[ i ] = programs[ programs.length - 1 ]; + programs.pop(); + + // Free WebGL resources + program.destroy(); + + } + + } + + return { + getParameters: getParameters, + getProgramCacheKey: getProgramCacheKey, + getUniforms: getUniforms, + acquireProgram: acquireProgram, + releaseProgram: releaseProgram, + // Exposed for resource monitoring & error feedback via renderer.info: + programs: programs + }; + +} + +function WebGLProperties() { + + let properties = new WeakMap(); + + function get( object ) { + + let map = properties.get( object ); + + if ( map === undefined ) { + + map = {}; + properties.set( object, map ); + + } + + return map; + + } + + function remove( object ) { + + properties.delete( object ); + + } + + function update( object, key, value ) { + + properties.get( object )[ key ] = value; + + } + + function dispose() { + + properties = new WeakMap(); + + } + + return { + get: get, + remove: remove, + update: update, + dispose: dispose + }; + +} + +function painterSortStable( a, b ) { + + if ( a.groupOrder !== b.groupOrder ) { + + return a.groupOrder - b.groupOrder; + + } else if ( a.renderOrder !== b.renderOrder ) { + + return a.renderOrder - b.renderOrder; + + } else if ( a.program !== b.program ) { + + return a.program.id - b.program.id; + + } else if ( a.material.id !== b.material.id ) { + + return a.material.id - b.material.id; + + } else if ( a.z !== b.z ) { + + return a.z - b.z; + + } else { + + return a.id - b.id; + + } + +} + +function reversePainterSortStable( a, b ) { + + if ( a.groupOrder !== b.groupOrder ) { + + return a.groupOrder - b.groupOrder; + + } else if ( a.renderOrder !== b.renderOrder ) { + + return a.renderOrder - b.renderOrder; + + } else if ( a.z !== b.z ) { + + return b.z - a.z; + + } else { + + return a.id - b.id; + + } + +} + + +function WebGLRenderList( properties ) { + + const renderItems = []; + let renderItemsIndex = 0; + + const opaque = []; + const transparent = []; + + const defaultProgram = { id: - 1 }; + + function init() { + + renderItemsIndex = 0; + + opaque.length = 0; + transparent.length = 0; + + } + + function getNextRenderItem( object, geometry, material, groupOrder, z, group ) { + + let renderItem = renderItems[ renderItemsIndex ]; + const materialProperties = properties.get( material ); + + if ( renderItem === undefined ) { + + renderItem = { + id: object.id, + object: object, + geometry: geometry, + material: material, + program: materialProperties.program || defaultProgram, + groupOrder: groupOrder, + renderOrder: object.renderOrder, + z: z, + group: group + }; + + renderItems[ renderItemsIndex ] = renderItem; + + } else { + + renderItem.id = object.id; + renderItem.object = object; + renderItem.geometry = geometry; + renderItem.material = material; + renderItem.program = materialProperties.program || defaultProgram; + renderItem.groupOrder = groupOrder; + renderItem.renderOrder = object.renderOrder; + renderItem.z = z; + renderItem.group = group; + + } + + renderItemsIndex ++; + + return renderItem; + + } + + function push( object, geometry, material, groupOrder, z, group ) { + + const renderItem = getNextRenderItem( object, geometry, material, groupOrder, z, group ); + + ( material.transparent === true ? transparent : opaque ).push( renderItem ); + + } + + function unshift( object, geometry, material, groupOrder, z, group ) { + + const renderItem = getNextRenderItem( object, geometry, material, groupOrder, z, group ); + + ( material.transparent === true ? transparent : opaque ).unshift( renderItem ); + + } + + function sort( customOpaqueSort, customTransparentSort ) { + + if ( opaque.length > 1 ) opaque.sort( customOpaqueSort || painterSortStable ); + if ( transparent.length > 1 ) transparent.sort( customTransparentSort || reversePainterSortStable ); + + } + + function finish() { + + // Clear references from inactive renderItems in the list + + for ( let i = renderItemsIndex, il = renderItems.length; i < il; i ++ ) { + + const renderItem = renderItems[ i ]; + + if ( renderItem.id === null ) break; + + renderItem.id = null; + renderItem.object = null; + renderItem.geometry = null; + renderItem.material = null; + renderItem.program = null; + renderItem.group = null; + + } + + } + + return { + + opaque: opaque, + transparent: transparent, + + init: init, + push: push, + unshift: unshift, + finish: finish, + + sort: sort + }; + +} + +function WebGLRenderLists( properties ) { + + let lists = new WeakMap(); + + function get( scene, camera ) { + + const cameras = lists.get( scene ); + let list; + + if ( cameras === undefined ) { + + list = new WebGLRenderList( properties ); + lists.set( scene, new WeakMap() ); + lists.get( scene ).set( camera, list ); + + } else { + + list = cameras.get( camera ); + if ( list === undefined ) { + + list = new WebGLRenderList( properties ); + cameras.set( camera, list ); + + } + + } + + return list; + + } + + function dispose() { + + lists = new WeakMap(); + + } + + return { + get: get, + dispose: dispose + }; + +} + +function UniformsCache() { + + const lights = {}; + + return { + + get: function ( light ) { + + if ( lights[ light.id ] !== undefined ) { + + return lights[ light.id ]; + + } + + let uniforms; + + switch ( light.type ) { + + case 'DirectionalLight': + uniforms = { + direction: new Vector3(), + color: new Color() + }; + break; + + case 'SpotLight': + uniforms = { + position: new Vector3(), + direction: new Vector3(), + color: new Color(), + distance: 0, + coneCos: 0, + penumbraCos: 0, + decay: 0 + }; + break; + + case 'PointLight': + uniforms = { + position: new Vector3(), + color: new Color(), + distance: 0, + decay: 0 + }; + break; + + case 'HemisphereLight': + uniforms = { + direction: new Vector3(), + skyColor: new Color(), + groundColor: new Color() + }; + break; + + case 'RectAreaLight': + uniforms = { + color: new Color(), + position: new Vector3(), + halfWidth: new Vector3(), + halfHeight: new Vector3() + }; + break; + + } + + lights[ light.id ] = uniforms; + + return uniforms; + + } + + }; + +} + +function ShadowUniformsCache() { + + const lights = {}; + + return { + + get: function ( light ) { + + if ( lights[ light.id ] !== undefined ) { + + return lights[ light.id ]; + + } + + let uniforms; + + switch ( light.type ) { + + case 'DirectionalLight': + uniforms = { + shadowBias: 0, + shadowNormalBias: 0, + shadowRadius: 1, + shadowMapSize: new Vector2() + }; + break; + + case 'SpotLight': + uniforms = { + shadowBias: 0, + shadowNormalBias: 0, + shadowRadius: 1, + shadowMapSize: new Vector2() + }; + break; + + case 'PointLight': + uniforms = { + shadowBias: 0, + shadowNormalBias: 0, + shadowRadius: 1, + shadowMapSize: new Vector2(), + shadowCameraNear: 1, + shadowCameraFar: 1000 + }; + break; + + // TODO (abelnation): set RectAreaLight shadow uniforms + + } + + lights[ light.id ] = uniforms; + + return uniforms; + + } + + }; + +} + + + +let nextVersion = 0; + +function shadowCastingLightsFirst( lightA, lightB ) { + + return ( lightB.castShadow ? 1 : 0 ) - ( lightA.castShadow ? 1 : 0 ); + +} + +function WebGLLights() { + + const cache = new UniformsCache(); + + const shadowCache = ShadowUniformsCache(); + + const state = { + + version: 0, + + hash: { + directionalLength: - 1, + pointLength: - 1, + spotLength: - 1, + rectAreaLength: - 1, + hemiLength: - 1, + + numDirectionalShadows: - 1, + numPointShadows: - 1, + numSpotShadows: - 1 + }, + + ambient: [ 0, 0, 0 ], + probe: [], + directional: [], + directionalShadow: [], + directionalShadowMap: [], + directionalShadowMatrix: [], + spot: [], + spotShadow: [], + spotShadowMap: [], + spotShadowMatrix: [], + rectArea: [], + rectAreaLTC1: null, + rectAreaLTC2: null, + point: [], + pointShadow: [], + pointShadowMap: [], + pointShadowMatrix: [], + hemi: [] + + }; + + for ( let i = 0; i < 9; i ++ ) state.probe.push( new Vector3() ); + + const vector3 = new Vector3(); + const matrix4 = new Matrix4(); + const matrix42 = new Matrix4(); + + function setup( lights, shadows, camera ) { + + let r = 0, g = 0, b = 0; + + for ( let i = 0; i < 9; i ++ ) state.probe[ i ].set( 0, 0, 0 ); + + let directionalLength = 0; + let pointLength = 0; + let spotLength = 0; + let rectAreaLength = 0; + let hemiLength = 0; + + let numDirectionalShadows = 0; + let numPointShadows = 0; + let numSpotShadows = 0; + + const viewMatrix = camera.matrixWorldInverse; + + lights.sort( shadowCastingLightsFirst ); + + for ( let i = 0, l = lights.length; i < l; i ++ ) { + + const light = lights[ i ]; + + const color = light.color; + const intensity = light.intensity; + const distance = light.distance; + + const shadowMap = ( light.shadow && light.shadow.map ) ? light.shadow.map.texture : null; + + if ( light.isAmbientLight ) { + + r += color.r * intensity; + g += color.g * intensity; + b += color.b * intensity; + + } else if ( light.isLightProbe ) { + + for ( let j = 0; j < 9; j ++ ) { + + state.probe[ j ].addScaledVector( light.sh.coefficients[ j ], intensity ); + + } + + } else if ( light.isDirectionalLight ) { + + const uniforms = cache.get( light ); + + uniforms.color.copy( light.color ).multiplyScalar( light.intensity ); + uniforms.direction.setFromMatrixPosition( light.matrixWorld ); + vector3.setFromMatrixPosition( light.target.matrixWorld ); + uniforms.direction.sub( vector3 ); + uniforms.direction.transformDirection( viewMatrix ); + + if ( light.castShadow ) { + + const shadow = light.shadow; + + const shadowUniforms = shadowCache.get( light ); + + shadowUniforms.shadowBias = shadow.bias; + shadowUniforms.shadowNormalBias = shadow.normalBias; + shadowUniforms.shadowRadius = shadow.radius; + shadowUniforms.shadowMapSize = shadow.mapSize; + + state.directionalShadow[ directionalLength ] = shadowUniforms; + state.directionalShadowMap[ directionalLength ] = shadowMap; + state.directionalShadowMatrix[ directionalLength ] = light.shadow.matrix; + + numDirectionalShadows ++; + + } + + state.directional[ directionalLength ] = uniforms; + + directionalLength ++; + + } else if ( light.isSpotLight ) { + + const uniforms = cache.get( light ); + + uniforms.position.setFromMatrixPosition( light.matrixWorld ); + uniforms.position.applyMatrix4( viewMatrix ); + + uniforms.color.copy( color ).multiplyScalar( intensity ); + uniforms.distance = distance; + + uniforms.direction.setFromMatrixPosition( light.matrixWorld ); + vector3.setFromMatrixPosition( light.target.matrixWorld ); + uniforms.direction.sub( vector3 ); + uniforms.direction.transformDirection( viewMatrix ); + + uniforms.coneCos = Math.cos( light.angle ); + uniforms.penumbraCos = Math.cos( light.angle * ( 1 - light.penumbra ) ); + uniforms.decay = light.decay; + + if ( light.castShadow ) { + + const shadow = light.shadow; + + const shadowUniforms = shadowCache.get( light ); + + shadowUniforms.shadowBias = shadow.bias; + shadowUniforms.shadowNormalBias = shadow.normalBias; + shadowUniforms.shadowRadius = shadow.radius; + shadowUniforms.shadowMapSize = shadow.mapSize; + + state.spotShadow[ spotLength ] = shadowUniforms; + state.spotShadowMap[ spotLength ] = shadowMap; + state.spotShadowMatrix[ spotLength ] = light.shadow.matrix; + + numSpotShadows ++; + + } + + state.spot[ spotLength ] = uniforms; + + spotLength ++; + + } else if ( light.isRectAreaLight ) { + + const uniforms = cache.get( light ); + + // (a) intensity is the total visible light emitted + //uniforms.color.copy( color ).multiplyScalar( intensity / ( light.width * light.height * Math.PI ) ); + + // (b) intensity is the brightness of the light + uniforms.color.copy( color ).multiplyScalar( intensity ); + + uniforms.position.setFromMatrixPosition( light.matrixWorld ); + uniforms.position.applyMatrix4( viewMatrix ); + + // extract local rotation of light to derive width/height half vectors + matrix42.identity(); + matrix4.copy( light.matrixWorld ); + matrix4.premultiply( viewMatrix ); + matrix42.extractRotation( matrix4 ); + + uniforms.halfWidth.set( light.width * 0.5, 0.0, 0.0 ); + uniforms.halfHeight.set( 0.0, light.height * 0.5, 0.0 ); + + uniforms.halfWidth.applyMatrix4( matrix42 ); + uniforms.halfHeight.applyMatrix4( matrix42 ); + + // TODO (abelnation): RectAreaLight distance? + // uniforms.distance = distance; + + state.rectArea[ rectAreaLength ] = uniforms; + + rectAreaLength ++; + + } else if ( light.isPointLight ) { + + const uniforms = cache.get( light ); + + uniforms.position.setFromMatrixPosition( light.matrixWorld ); + uniforms.position.applyMatrix4( viewMatrix ); + + uniforms.color.copy( light.color ).multiplyScalar( light.intensity ); + uniforms.distance = light.distance; + uniforms.decay = light.decay; + + if ( light.castShadow ) { + + const shadow = light.shadow; + + const shadowUniforms = shadowCache.get( light ); + + shadowUniforms.shadowBias = shadow.bias; + shadowUniforms.shadowNormalBias = shadow.normalBias; + shadowUniforms.shadowRadius = shadow.radius; + shadowUniforms.shadowMapSize = shadow.mapSize; + shadowUniforms.shadowCameraNear = shadow.camera.near; + shadowUniforms.shadowCameraFar = shadow.camera.far; + + state.pointShadow[ pointLength ] = shadowUniforms; + state.pointShadowMap[ pointLength ] = shadowMap; + state.pointShadowMatrix[ pointLength ] = light.shadow.matrix; + + numPointShadows ++; + + } + + state.point[ pointLength ] = uniforms; + + pointLength ++; + + } else if ( light.isHemisphereLight ) { + + const uniforms = cache.get( light ); + + uniforms.direction.setFromMatrixPosition( light.matrixWorld ); + uniforms.direction.transformDirection( viewMatrix ); + uniforms.direction.normalize(); + + uniforms.skyColor.copy( light.color ).multiplyScalar( intensity ); + uniforms.groundColor.copy( light.groundColor ).multiplyScalar( intensity ); + + state.hemi[ hemiLength ] = uniforms; + + hemiLength ++; + + } + + } + + if ( rectAreaLength > 0 ) { + + state.rectAreaLTC1 = UniformsLib.LTC_1; + state.rectAreaLTC2 = UniformsLib.LTC_2; + + } + + state.ambient[ 0 ] = r; + state.ambient[ 1 ] = g; + state.ambient[ 2 ] = b; + + const hash = state.hash; + + if ( hash.directionalLength !== directionalLength || + hash.pointLength !== pointLength || + hash.spotLength !== spotLength || + hash.rectAreaLength !== rectAreaLength || + hash.hemiLength !== hemiLength || + hash.numDirectionalShadows !== numDirectionalShadows || + hash.numPointShadows !== numPointShadows || + hash.numSpotShadows !== numSpotShadows ) { + + state.directional.length = directionalLength; + state.spot.length = spotLength; + state.rectArea.length = rectAreaLength; + state.point.length = pointLength; + state.hemi.length = hemiLength; + + state.directionalShadow.length = numDirectionalShadows; + state.directionalShadowMap.length = numDirectionalShadows; + state.pointShadow.length = numPointShadows; + state.pointShadowMap.length = numPointShadows; + state.spotShadow.length = numSpotShadows; + state.spotShadowMap.length = numSpotShadows; + state.directionalShadowMatrix.length = numDirectionalShadows; + state.pointShadowMatrix.length = numPointShadows; + state.spotShadowMatrix.length = numSpotShadows; + + hash.directionalLength = directionalLength; + hash.pointLength = pointLength; + hash.spotLength = spotLength; + hash.rectAreaLength = rectAreaLength; + hash.hemiLength = hemiLength; + + hash.numDirectionalShadows = numDirectionalShadows; + hash.numPointShadows = numPointShadows; + hash.numSpotShadows = numSpotShadows; + + state.version = nextVersion ++; + + } + + } + + return { + setup: setup, + state: state + }; + +} + +function WebGLRenderState() { + + const lights = new WebGLLights(); + + const lightsArray = []; + const shadowsArray = []; + + function init() { + + lightsArray.length = 0; + shadowsArray.length = 0; + + } + + function pushLight( light ) { + + lightsArray.push( light ); + + } + + function pushShadow( shadowLight ) { + + shadowsArray.push( shadowLight ); + + } + + function setupLights( camera ) { + + lights.setup( lightsArray, shadowsArray, camera ); + + } + + const state = { + lightsArray: lightsArray, + shadowsArray: shadowsArray, + + lights: lights + }; + + return { + init: init, + state: state, + setupLights: setupLights, + + pushLight: pushLight, + pushShadow: pushShadow + }; + +} + +function WebGLRenderStates() { + + let renderStates = new WeakMap(); + + function get( scene, camera ) { + + let renderState; + + if ( renderStates.has( scene ) === false ) { + + renderState = new WebGLRenderState(); + renderStates.set( scene, new WeakMap() ); + renderStates.get( scene ).set( camera, renderState ); + + } else { + + if ( renderStates.get( scene ).has( camera ) === false ) { + + renderState = new WebGLRenderState(); + renderStates.get( scene ).set( camera, renderState ); + + } else { + + renderState = renderStates.get( scene ).get( camera ); + + } + + } + + return renderState; + + } + + function dispose() { + + renderStates = new WeakMap(); + + } + + return { + get: get, + dispose: dispose + }; + +} + +/** + * parameters = { + * + * opacity: , + * + * map: new THREE.Texture( ), + * + * alphaMap: new THREE.Texture( ), + * + * displacementMap: new THREE.Texture( ), + * displacementScale: , + * displacementBias: , + * + * wireframe: , + * wireframeLinewidth: + * } + */ + +function MeshDepthMaterial( parameters ) { + + Material.call( this ); + + this.type = 'MeshDepthMaterial'; + + this.depthPacking = BasicDepthPacking; + + this.skinning = false; + this.morphTargets = false; + + this.map = null; + + this.alphaMap = null; + + this.displacementMap = null; + this.displacementScale = 1; + this.displacementBias = 0; + + this.wireframe = false; + this.wireframeLinewidth = 1; + + this.fog = false; + + this.setValues( parameters ); + +} + +MeshDepthMaterial.prototype = Object.create( Material.prototype ); +MeshDepthMaterial.prototype.constructor = MeshDepthMaterial; + +MeshDepthMaterial.prototype.isMeshDepthMaterial = true; + +MeshDepthMaterial.prototype.copy = function ( source ) { + + Material.prototype.copy.call( this, source ); + + this.depthPacking = source.depthPacking; + + this.skinning = source.skinning; + this.morphTargets = source.morphTargets; + + this.map = source.map; + + this.alphaMap = source.alphaMap; + + this.displacementMap = source.displacementMap; + this.displacementScale = source.displacementScale; + this.displacementBias = source.displacementBias; + + this.wireframe = source.wireframe; + this.wireframeLinewidth = source.wireframeLinewidth; + + return this; + +}; + +/** + * parameters = { + * + * referencePosition: , + * nearDistance: , + * farDistance: , + * + * skinning: , + * morphTargets: , + * + * map: new THREE.Texture( ), + * + * alphaMap: new THREE.Texture( ), + * + * displacementMap: new THREE.Texture( ), + * displacementScale: , + * displacementBias: + * + * } + */ + +function MeshDistanceMaterial( parameters ) { + + Material.call( this ); + + this.type = 'MeshDistanceMaterial'; + + this.referencePosition = new Vector3(); + this.nearDistance = 1; + this.farDistance = 1000; + + this.skinning = false; + this.morphTargets = false; + + this.map = null; + + this.alphaMap = null; + + this.displacementMap = null; + this.displacementScale = 1; + this.displacementBias = 0; + + this.fog = false; + + this.setValues( parameters ); + +} + +MeshDistanceMaterial.prototype = Object.create( Material.prototype ); +MeshDistanceMaterial.prototype.constructor = MeshDistanceMaterial; + +MeshDistanceMaterial.prototype.isMeshDistanceMaterial = true; + +MeshDistanceMaterial.prototype.copy = function ( source ) { + + Material.prototype.copy.call( this, source ); + + this.referencePosition.copy( source.referencePosition ); + this.nearDistance = source.nearDistance; + this.farDistance = source.farDistance; + + this.skinning = source.skinning; + this.morphTargets = source.morphTargets; + + this.map = source.map; + + this.alphaMap = source.alphaMap; + + this.displacementMap = source.displacementMap; + this.displacementScale = source.displacementScale; + this.displacementBias = source.displacementBias; + + return this; + +}; + +var vsm_frag = "uniform sampler2D shadow_pass;\nuniform vec2 resolution;\nuniform float radius;\n#include \nvoid main() {\n\tfloat mean = 0.0;\n\tfloat squared_mean = 0.0;\n\tfloat depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy ) / resolution ) );\n\tfor ( float i = -1.0; i < 1.0 ; i += SAMPLE_RATE) {\n\t\t#ifdef HORIZONAL_PASS\n\t\t\tvec2 distribution = unpackRGBATo2Half( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( i, 0.0 ) * radius ) / resolution ) );\n\t\t\tmean += distribution.x;\n\t\t\tsquared_mean += distribution.y * distribution.y + distribution.x * distribution.x;\n\t\t#else\n\t\t\tfloat depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, i ) * radius ) / resolution ) );\n\t\t\tmean += depth;\n\t\t\tsquared_mean += depth * depth;\n\t\t#endif\n\t}\n\tmean = mean * HALF_SAMPLE_RATE;\n\tsquared_mean = squared_mean * HALF_SAMPLE_RATE;\n\tfloat std_dev = sqrt( squared_mean - mean * mean );\n\tgl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) );\n}"; + +var vsm_vert = "void main() {\n\tgl_Position = vec4( position, 1.0 );\n}"; + +function WebGLShadowMap( _renderer, _objects, maxTextureSize ) { + + let _frustum = new Frustum(); + + const _shadowMapSize = new Vector2(), + _viewportSize = new Vector2(), + + _viewport = new Vector4(), + + _depthMaterials = [], + _distanceMaterials = [], + + _materialCache = {}; + + const shadowSide = { 0: BackSide, 1: FrontSide, 2: DoubleSide }; + + const shadowMaterialVertical = new ShaderMaterial( { + + defines: { + SAMPLE_RATE: 2.0 / 8.0, + HALF_SAMPLE_RATE: 1.0 / 8.0 + }, + + uniforms: { + shadow_pass: { value: null }, + resolution: { value: new Vector2() }, + radius: { value: 4.0 } + }, + + vertexShader: vsm_vert, + + fragmentShader: vsm_frag + + } ); + + const shadowMaterialHorizonal = shadowMaterialVertical.clone(); + shadowMaterialHorizonal.defines.HORIZONAL_PASS = 1; + + const fullScreenTri = new BufferGeometry(); + fullScreenTri.setAttribute( + "position", + new BufferAttribute( + new Float32Array( [ - 1, - 1, 0.5, 3, - 1, 0.5, - 1, 3, 0.5 ] ), + 3 + ) + ); + + const fullScreenMesh = new Mesh( fullScreenTri, shadowMaterialVertical ); + + const scope = this; + + this.enabled = false; + + this.autoUpdate = true; + this.needsUpdate = false; + + this.type = PCFShadowMap; + + this.render = function ( lights, scene, camera ) { + + if ( scope.enabled === false ) return; + if ( scope.autoUpdate === false && scope.needsUpdate === false ) return; + + if ( lights.length === 0 ) return; + + const currentRenderTarget = _renderer.getRenderTarget(); + const activeCubeFace = _renderer.getActiveCubeFace(); + const activeMipmapLevel = _renderer.getActiveMipmapLevel(); + + const _state = _renderer.state; + + // Set GL state for depth map. + _state.setBlending( NoBlending ); + _state.buffers.color.setClear( 1, 1, 1, 1 ); + _state.buffers.depth.setTest( true ); + _state.setScissorTest( false ); + + // render depth map + + for ( let i = 0, il = lights.length; i < il; i ++ ) { + + const light = lights[ i ]; + const shadow = light.shadow; + + if ( shadow === undefined ) { + + console.warn( 'THREE.WebGLShadowMap:', light, 'has no shadow.' ); + continue; + + } + + if ( shadow.autoUpdate === false && shadow.needsUpdate === false ) continue; + + _shadowMapSize.copy( shadow.mapSize ); + + const shadowFrameExtents = shadow.getFrameExtents(); + + _shadowMapSize.multiply( shadowFrameExtents ); + + _viewportSize.copy( shadow.mapSize ); + + if ( _shadowMapSize.x > maxTextureSize || _shadowMapSize.y > maxTextureSize ) { + + if ( _shadowMapSize.x > maxTextureSize ) { + + _viewportSize.x = Math.floor( maxTextureSize / shadowFrameExtents.x ); + _shadowMapSize.x = _viewportSize.x * shadowFrameExtents.x; + shadow.mapSize.x = _viewportSize.x; + + } + + if ( _shadowMapSize.y > maxTextureSize ) { + + _viewportSize.y = Math.floor( maxTextureSize / shadowFrameExtents.y ); + _shadowMapSize.y = _viewportSize.y * shadowFrameExtents.y; + shadow.mapSize.y = _viewportSize.y; + + } + + } + + if ( shadow.map === null && ! shadow.isPointLightShadow && this.type === VSMShadowMap ) { + + const pars = { minFilter: LinearFilter, magFilter: LinearFilter, format: RGBAFormat }; + + shadow.map = new WebGLRenderTarget( _shadowMapSize.x, _shadowMapSize.y, pars ); + shadow.map.texture.name = light.name + ".shadowMap"; + + shadow.mapPass = new WebGLRenderTarget( _shadowMapSize.x, _shadowMapSize.y, pars ); + + shadow.camera.updateProjectionMatrix(); + + } + + if ( shadow.map === null ) { + + const pars = { minFilter: NearestFilter, magFilter: NearestFilter, format: RGBAFormat }; + + shadow.map = new WebGLRenderTarget( _shadowMapSize.x, _shadowMapSize.y, pars ); + shadow.map.texture.name = light.name + ".shadowMap"; + + shadow.camera.updateProjectionMatrix(); + + } + + _renderer.setRenderTarget( shadow.map ); + _renderer.clear(); + + const viewportCount = shadow.getViewportCount(); + + for ( let vp = 0; vp < viewportCount; vp ++ ) { + + const viewport = shadow.getViewport( vp ); + + _viewport.set( + _viewportSize.x * viewport.x, + _viewportSize.y * viewport.y, + _viewportSize.x * viewport.z, + _viewportSize.y * viewport.w + ); + + _state.viewport( _viewport ); + + shadow.updateMatrices( light, vp ); + + _frustum = shadow.getFrustum(); + + renderObject( scene, camera, shadow.camera, light, this.type ); + + } + + // do blur pass for VSM + + if ( ! shadow.isPointLightShadow && this.type === VSMShadowMap ) { + + VSMPass( shadow, camera ); + + } + + shadow.needsUpdate = false; + + } + + scope.needsUpdate = false; + + _renderer.setRenderTarget( currentRenderTarget, activeCubeFace, activeMipmapLevel ); + + }; + + function VSMPass( shadow, camera ) { + + const geometry = _objects.update( fullScreenMesh ); + + // vertical pass + + shadowMaterialVertical.uniforms.shadow_pass.value = shadow.map.texture; + shadowMaterialVertical.uniforms.resolution.value = shadow.mapSize; + shadowMaterialVertical.uniforms.radius.value = shadow.radius; + _renderer.setRenderTarget( shadow.mapPass ); + _renderer.clear(); + _renderer.renderBufferDirect( camera, null, geometry, shadowMaterialVertical, fullScreenMesh, null ); + + // horizonal pass + + shadowMaterialHorizonal.uniforms.shadow_pass.value = shadow.mapPass.texture; + shadowMaterialHorizonal.uniforms.resolution.value = shadow.mapSize; + shadowMaterialHorizonal.uniforms.radius.value = shadow.radius; + _renderer.setRenderTarget( shadow.map ); + _renderer.clear(); + _renderer.renderBufferDirect( camera, null, geometry, shadowMaterialHorizonal, fullScreenMesh, null ); + + } + + function getDepthMaterialVariant( useMorphing, useSkinning, useInstancing ) { + + const index = useMorphing << 0 | useSkinning << 1 | useInstancing << 2; + + let material = _depthMaterials[ index ]; + + if ( material === undefined ) { + + material = new MeshDepthMaterial( { + + depthPacking: RGBADepthPacking, + + morphTargets: useMorphing, + skinning: useSkinning + + } ); + + _depthMaterials[ index ] = material; + + } + + return material; + + } + + function getDistanceMaterialVariant( useMorphing, useSkinning, useInstancing ) { + + const index = useMorphing << 0 | useSkinning << 1 | useInstancing << 2; + + let material = _distanceMaterials[ index ]; + + if ( material === undefined ) { + + material = new MeshDistanceMaterial( { + + morphTargets: useMorphing, + skinning: useSkinning + + } ); + + _distanceMaterials[ index ] = material; + + } + + return material; + + } + + function getDepthMaterial( object, geometry, material, light, shadowCameraNear, shadowCameraFar, type ) { + + let result = null; + + let getMaterialVariant = getDepthMaterialVariant; + let customMaterial = object.customDepthMaterial; + + if ( light.isPointLight === true ) { + + getMaterialVariant = getDistanceMaterialVariant; + customMaterial = object.customDistanceMaterial; + + } + + if ( customMaterial === undefined ) { + + let useMorphing = false; + + if ( material.morphTargets === true ) { + + useMorphing = geometry.morphAttributes && geometry.morphAttributes.position && geometry.morphAttributes.position.length > 0; + + } + + let useSkinning = false; + + if ( object.isSkinnedMesh === true ) { + + if ( material.skinning === true ) { + + useSkinning = true; + + } else { + + console.warn( 'THREE.WebGLShadowMap: THREE.SkinnedMesh with material.skinning set to false:', object ); + + } + + } + + const useInstancing = object.isInstancedMesh === true; + + result = getMaterialVariant( useMorphing, useSkinning, useInstancing ); + + } else { + + result = customMaterial; + + } + + if ( _renderer.localClippingEnabled && + material.clipShadows === true && + material.clippingPlanes.length !== 0 ) { + + // in this case we need a unique material instance reflecting the + // appropriate state + + const keyA = result.uuid, keyB = material.uuid; + + let materialsForVariant = _materialCache[ keyA ]; + + if ( materialsForVariant === undefined ) { + + materialsForVariant = {}; + _materialCache[ keyA ] = materialsForVariant; + + } + + let cachedMaterial = materialsForVariant[ keyB ]; + + if ( cachedMaterial === undefined ) { + + cachedMaterial = result.clone(); + materialsForVariant[ keyB ] = cachedMaterial; + + } + + result = cachedMaterial; + + } + + result.visible = material.visible; + result.wireframe = material.wireframe; + + if ( type === VSMShadowMap ) { + + result.side = ( material.shadowSide !== null ) ? material.shadowSide : material.side; + + } else { + + result.side = ( material.shadowSide !== null ) ? material.shadowSide : shadowSide[ material.side ]; + + } + + result.clipShadows = material.clipShadows; + result.clippingPlanes = material.clippingPlanes; + result.clipIntersection = material.clipIntersection; + + result.wireframeLinewidth = material.wireframeLinewidth; + result.linewidth = material.linewidth; + + if ( light.isPointLight === true && result.isMeshDistanceMaterial === true ) { + + result.referencePosition.setFromMatrixPosition( light.matrixWorld ); + result.nearDistance = shadowCameraNear; + result.farDistance = shadowCameraFar; + + } + + return result; + + } + + function renderObject( object, camera, shadowCamera, light, type ) { + + if ( object.visible === false ) return; + + const visible = object.layers.test( camera.layers ); + + if ( visible && ( object.isMesh || object.isLine || object.isPoints ) ) { + + if ( ( object.castShadow || ( object.receiveShadow && type === VSMShadowMap ) ) && ( ! object.frustumCulled || _frustum.intersectsObject( object ) ) ) { + + object.modelViewMatrix.multiplyMatrices( shadowCamera.matrixWorldInverse, object.matrixWorld ); + + const geometry = _objects.update( object ); + const material = object.material; + + if ( Array.isArray( material ) ) { + + const groups = geometry.groups; + + for ( let k = 0, kl = groups.length; k < kl; k ++ ) { + + const group = groups[ k ]; + const groupMaterial = material[ group.materialIndex ]; + + if ( groupMaterial && groupMaterial.visible ) { + + const depthMaterial = getDepthMaterial( object, geometry, groupMaterial, light, shadowCamera.near, shadowCamera.far, type ); + + _renderer.renderBufferDirect( shadowCamera, null, geometry, depthMaterial, object, group ); + + } + + } + + } else if ( material.visible ) { + + const depthMaterial = getDepthMaterial( object, geometry, material, light, shadowCamera.near, shadowCamera.far, type ); + + _renderer.renderBufferDirect( shadowCamera, null, geometry, depthMaterial, object, null ); + + } + + } + + } + + const children = object.children; + + for ( let i = 0, l = children.length; i < l; i ++ ) { + + renderObject( children[ i ], camera, shadowCamera, light, type ); + + } + + } + +} + +function WebGLState( gl, extensions, capabilities ) { + + const isWebGL2 = capabilities.isWebGL2; + + function ColorBuffer() { + + let locked = false; + + const color = new Vector4(); + let currentColorMask = null; + const currentColorClear = new Vector4( 0, 0, 0, 0 ); + + return { + + setMask: function ( colorMask ) { + + if ( currentColorMask !== colorMask && ! locked ) { + + gl.colorMask( colorMask, colorMask, colorMask, colorMask ); + currentColorMask = colorMask; + + } + + }, + + setLocked: function ( lock ) { + + locked = lock; + + }, + + setClear: function ( r, g, b, a, premultipliedAlpha ) { + + if ( premultipliedAlpha === true ) { + + r *= a; g *= a; b *= a; + + } + + color.set( r, g, b, a ); + + if ( currentColorClear.equals( color ) === false ) { + + gl.clearColor( r, g, b, a ); + currentColorClear.copy( color ); + + } + + }, + + reset: function () { + + locked = false; + + currentColorMask = null; + currentColorClear.set( - 1, 0, 0, 0 ); // set to invalid state + + } + + }; + + } + + function DepthBuffer() { + + let locked = false; + + let currentDepthMask = null; + let currentDepthFunc = null; + let currentDepthClear = null; + + return { + + setTest: function ( depthTest ) { + + if ( depthTest ) { + + enable( 2929 ); + + } else { + + disable( 2929 ); + + } + + }, + + setMask: function ( depthMask ) { + + if ( currentDepthMask !== depthMask && ! locked ) { + + gl.depthMask( depthMask ); + currentDepthMask = depthMask; + + } + + }, + + setFunc: function ( depthFunc ) { + + if ( currentDepthFunc !== depthFunc ) { + + if ( depthFunc ) { + + switch ( depthFunc ) { + + case NeverDepth: + + gl.depthFunc( 512 ); + break; + + case AlwaysDepth: + + gl.depthFunc( 519 ); + break; + + case LessDepth: + + gl.depthFunc( 513 ); + break; + + case LessEqualDepth: + + gl.depthFunc( 515 ); + break; + + case EqualDepth: + + gl.depthFunc( 514 ); + break; + + case GreaterEqualDepth: + + gl.depthFunc( 518 ); + break; + + case GreaterDepth: + + gl.depthFunc( 516 ); + break; + + case NotEqualDepth: + + gl.depthFunc( 517 ); + break; + + default: + + gl.depthFunc( 515 ); + + } + + } else { + + gl.depthFunc( 515 ); + + } + + currentDepthFunc = depthFunc; + + } + + }, + + setLocked: function ( lock ) { + + locked = lock; + + }, + + setClear: function ( depth ) { + + if ( currentDepthClear !== depth ) { + + gl.clearDepth( depth ); + currentDepthClear = depth; + + } + + }, + + reset: function () { + + locked = false; + + currentDepthMask = null; + currentDepthFunc = null; + currentDepthClear = null; + + } + + }; + + } + + function StencilBuffer() { + + let locked = false; + + let currentStencilMask = null; + let currentStencilFunc = null; + let currentStencilRef = null; + let currentStencilFuncMask = null; + let currentStencilFail = null; + let currentStencilZFail = null; + let currentStencilZPass = null; + let currentStencilClear = null; + + return { + + setTest: function ( stencilTest ) { + + if ( ! locked ) { + + if ( stencilTest ) { + + enable( 2960 ); + + } else { + + disable( 2960 ); + + } + + } + + }, + + setMask: function ( stencilMask ) { + + if ( currentStencilMask !== stencilMask && ! locked ) { + + gl.stencilMask( stencilMask ); + currentStencilMask = stencilMask; + + } + + }, + + setFunc: function ( stencilFunc, stencilRef, stencilMask ) { + + if ( currentStencilFunc !== stencilFunc || + currentStencilRef !== stencilRef || + currentStencilFuncMask !== stencilMask ) { + + gl.stencilFunc( stencilFunc, stencilRef, stencilMask ); + + currentStencilFunc = stencilFunc; + currentStencilRef = stencilRef; + currentStencilFuncMask = stencilMask; + + } + + }, + + setOp: function ( stencilFail, stencilZFail, stencilZPass ) { + + if ( currentStencilFail !== stencilFail || + currentStencilZFail !== stencilZFail || + currentStencilZPass !== stencilZPass ) { + + gl.stencilOp( stencilFail, stencilZFail, stencilZPass ); + + currentStencilFail = stencilFail; + currentStencilZFail = stencilZFail; + currentStencilZPass = stencilZPass; + + } + + }, + + setLocked: function ( lock ) { + + locked = lock; + + }, + + setClear: function ( stencil ) { + + if ( currentStencilClear !== stencil ) { + + gl.clearStencil( stencil ); + currentStencilClear = stencil; + + } + + }, + + reset: function () { + + locked = false; + + currentStencilMask = null; + currentStencilFunc = null; + currentStencilRef = null; + currentStencilFuncMask = null; + currentStencilFail = null; + currentStencilZFail = null; + currentStencilZPass = null; + currentStencilClear = null; + + } + + }; + + } + + // + + const colorBuffer = new ColorBuffer(); + const depthBuffer = new DepthBuffer(); + const stencilBuffer = new StencilBuffer(); + + let enabledCapabilities = {}; + + let currentProgram = null; + + let currentBlendingEnabled = null; + let currentBlending = null; + let currentBlendEquation = null; + let currentBlendSrc = null; + let currentBlendDst = null; + let currentBlendEquationAlpha = null; + let currentBlendSrcAlpha = null; + let currentBlendDstAlpha = null; + let currentPremultipledAlpha = false; + + let currentFlipSided = null; + let currentCullFace = null; + + let currentLineWidth = null; + + let currentPolygonOffsetFactor = null; + let currentPolygonOffsetUnits = null; + + const maxTextures = gl.getParameter( 35661 ); + + let lineWidthAvailable = false; + let version = 0; + const glVersion = gl.getParameter( 7938 ); + + if ( glVersion.indexOf( 'WebGL' ) !== - 1 ) { + + version = parseFloat( /^WebGL\ ([0-9])/.exec( glVersion )[ 1 ] ); + lineWidthAvailable = ( version >= 1.0 ); + + } else if ( glVersion.indexOf( 'OpenGL ES' ) !== - 1 ) { + + version = parseFloat( /^OpenGL\ ES\ ([0-9])/.exec( glVersion )[ 1 ] ); + lineWidthAvailable = ( version >= 2.0 ); + + } + + let currentTextureSlot = null; + let currentBoundTextures = {}; + + const currentScissor = new Vector4(); + const currentViewport = new Vector4(); + + function createTexture( type, target, count ) { + + const data = new Uint8Array( 4 ); // 4 is required to match default unpack alignment of 4. + const texture = gl.createTexture(); + + gl.bindTexture( type, texture ); + gl.texParameteri( type, 10241, 9728 ); + gl.texParameteri( type, 10240, 9728 ); + + for ( let i = 0; i < count; i ++ ) { + + gl.texImage2D( target + i, 0, 6408, 1, 1, 0, 6408, 5121, data ); + + } + + return texture; + + } + + const emptyTextures = {}; + emptyTextures[ 3553 ] = createTexture( 3553, 3553, 1 ); + emptyTextures[ 34067 ] = createTexture( 34067, 34069, 6 ); + + // init + + colorBuffer.setClear( 0, 0, 0, 1 ); + depthBuffer.setClear( 1 ); + stencilBuffer.setClear( 0 ); + + enable( 2929 ); + depthBuffer.setFunc( LessEqualDepth ); + + setFlipSided( false ); + setCullFace( CullFaceBack ); + enable( 2884 ); + + setBlending( NoBlending ); + + // + + function enable( id ) { + + if ( enabledCapabilities[ id ] !== true ) { + + gl.enable( id ); + enabledCapabilities[ id ] = true; + + } + + } + + function disable( id ) { + + if ( enabledCapabilities[ id ] !== false ) { + + gl.disable( id ); + enabledCapabilities[ id ] = false; + + } + + } + + function useProgram( program ) { + + if ( currentProgram !== program ) { + + gl.useProgram( program ); + + currentProgram = program; + + return true; + + } + + return false; + + } + + const equationToGL = { + [ AddEquation ]: 32774, + [ SubtractEquation ]: 32778, + [ ReverseSubtractEquation ]: 32779 + }; + + if ( isWebGL2 ) { + + equationToGL[ MinEquation ] = 32775; + equationToGL[ MaxEquation ] = 32776; + + } else { + + const extension = extensions.get( 'EXT_blend_minmax' ); + + if ( extension !== null ) { + + equationToGL[ MinEquation ] = extension.MIN_EXT; + equationToGL[ MaxEquation ] = extension.MAX_EXT; + + } + + } + + const factorToGL = { + [ ZeroFactor ]: 0, + [ OneFactor ]: 1, + [ SrcColorFactor ]: 768, + [ SrcAlphaFactor ]: 770, + [ SrcAlphaSaturateFactor ]: 776, + [ DstColorFactor ]: 774, + [ DstAlphaFactor ]: 772, + [ OneMinusSrcColorFactor ]: 769, + [ OneMinusSrcAlphaFactor ]: 771, + [ OneMinusDstColorFactor ]: 775, + [ OneMinusDstAlphaFactor ]: 773 + }; + + function setBlending( blending, blendEquation, blendSrc, blendDst, blendEquationAlpha, blendSrcAlpha, blendDstAlpha, premultipliedAlpha ) { + + if ( blending === NoBlending ) { + + if ( currentBlendingEnabled ) { + + disable( 3042 ); + currentBlendingEnabled = false; + + } + + return; + + } + + if ( ! currentBlendingEnabled ) { + + enable( 3042 ); + currentBlendingEnabled = true; + + } + + if ( blending !== CustomBlending ) { + + if ( blending !== currentBlending || premultipliedAlpha !== currentPremultipledAlpha ) { + + if ( currentBlendEquation !== AddEquation || currentBlendEquationAlpha !== AddEquation ) { + + gl.blendEquation( 32774 ); + + currentBlendEquation = AddEquation; + currentBlendEquationAlpha = AddEquation; + + } + + if ( premultipliedAlpha ) { + + switch ( blending ) { + + case NormalBlending: + gl.blendFuncSeparate( 1, 771, 1, 771 ); + break; + + case AdditiveBlending: + gl.blendFunc( 1, 1 ); + break; + + case SubtractiveBlending: + gl.blendFuncSeparate( 0, 0, 769, 771 ); + break; + + case MultiplyBlending: + gl.blendFuncSeparate( 0, 768, 0, 770 ); + break; + + default: + console.error( 'THREE.WebGLState: Invalid blending: ', blending ); + break; + + } + + } else { + + switch ( blending ) { + + case NormalBlending: + gl.blendFuncSeparate( 770, 771, 1, 771 ); + break; + + case AdditiveBlending: + gl.blendFunc( 770, 1 ); + break; + + case SubtractiveBlending: + gl.blendFunc( 0, 769 ); + break; + + case MultiplyBlending: + gl.blendFunc( 0, 768 ); + break; + + default: + console.error( 'THREE.WebGLState: Invalid blending: ', blending ); + break; + + } + + } + + currentBlendSrc = null; + currentBlendDst = null; + currentBlendSrcAlpha = null; + currentBlendDstAlpha = null; + + currentBlending = blending; + currentPremultipledAlpha = premultipliedAlpha; + + } + + return; + + } + + // custom blending + + blendEquationAlpha = blendEquationAlpha || blendEquation; + blendSrcAlpha = blendSrcAlpha || blendSrc; + blendDstAlpha = blendDstAlpha || blendDst; + + if ( blendEquation !== currentBlendEquation || blendEquationAlpha !== currentBlendEquationAlpha ) { + + gl.blendEquationSeparate( equationToGL[ blendEquation ], equationToGL[ blendEquationAlpha ] ); + + currentBlendEquation = blendEquation; + currentBlendEquationAlpha = blendEquationAlpha; + + } + + if ( blendSrc !== currentBlendSrc || blendDst !== currentBlendDst || blendSrcAlpha !== currentBlendSrcAlpha || blendDstAlpha !== currentBlendDstAlpha ) { + + gl.blendFuncSeparate( factorToGL[ blendSrc ], factorToGL[ blendDst ], factorToGL[ blendSrcAlpha ], factorToGL[ blendDstAlpha ] ); + + currentBlendSrc = blendSrc; + currentBlendDst = blendDst; + currentBlendSrcAlpha = blendSrcAlpha; + currentBlendDstAlpha = blendDstAlpha; + + } + + currentBlending = blending; + currentPremultipledAlpha = null; + + } + + function setMaterial( material, frontFaceCW ) { + + material.side === DoubleSide + ? disable( 2884 ) + : enable( 2884 ); + + let flipSided = ( material.side === BackSide ); + if ( frontFaceCW ) flipSided = ! flipSided; + + setFlipSided( flipSided ); + + ( material.blending === NormalBlending && material.transparent === false ) + ? setBlending( NoBlending ) + : setBlending( material.blending, material.blendEquation, material.blendSrc, material.blendDst, material.blendEquationAlpha, material.blendSrcAlpha, material.blendDstAlpha, material.premultipliedAlpha ); + + depthBuffer.setFunc( material.depthFunc ); + depthBuffer.setTest( material.depthTest ); + depthBuffer.setMask( material.depthWrite ); + colorBuffer.setMask( material.colorWrite ); + + const stencilWrite = material.stencilWrite; + stencilBuffer.setTest( stencilWrite ); + if ( stencilWrite ) { + + stencilBuffer.setMask( material.stencilWriteMask ); + stencilBuffer.setFunc( material.stencilFunc, material.stencilRef, material.stencilFuncMask ); + stencilBuffer.setOp( material.stencilFail, material.stencilZFail, material.stencilZPass ); + + } + + setPolygonOffset( material.polygonOffset, material.polygonOffsetFactor, material.polygonOffsetUnits ); + + } + + // + + function setFlipSided( flipSided ) { + + if ( currentFlipSided !== flipSided ) { + + if ( flipSided ) { + + gl.frontFace( 2304 ); + + } else { + + gl.frontFace( 2305 ); + + } + + currentFlipSided = flipSided; + + } + + } + + function setCullFace( cullFace ) { + + if ( cullFace !== CullFaceNone ) { + + enable( 2884 ); + + if ( cullFace !== currentCullFace ) { + + if ( cullFace === CullFaceBack ) { + + gl.cullFace( 1029 ); + + } else if ( cullFace === CullFaceFront ) { + + gl.cullFace( 1028 ); + + } else { + + gl.cullFace( 1032 ); + + } + + } + + } else { + + disable( 2884 ); + + } + + currentCullFace = cullFace; + + } + + function setLineWidth( width ) { + + if ( width !== currentLineWidth ) { + + if ( lineWidthAvailable ) gl.lineWidth( width ); + + currentLineWidth = width; + + } + + } + + function setPolygonOffset( polygonOffset, factor, units ) { + + if ( polygonOffset ) { + + enable( 32823 ); + + if ( currentPolygonOffsetFactor !== factor || currentPolygonOffsetUnits !== units ) { + + gl.polygonOffset( factor, units ); + + currentPolygonOffsetFactor = factor; + currentPolygonOffsetUnits = units; + + } + + } else { + + disable( 32823 ); + + } + + } + + function setScissorTest( scissorTest ) { + + if ( scissorTest ) { + + enable( 3089 ); + + } else { + + disable( 3089 ); + + } + + } + + // texture + + function activeTexture( webglSlot ) { + + if ( webglSlot === undefined ) webglSlot = 33984 + maxTextures - 1; + + if ( currentTextureSlot !== webglSlot ) { + + gl.activeTexture( webglSlot ); + currentTextureSlot = webglSlot; + + } + + } + + function bindTexture( webglType, webglTexture ) { + + if ( currentTextureSlot === null ) { + + activeTexture(); + + } + + let boundTexture = currentBoundTextures[ currentTextureSlot ]; + + if ( boundTexture === undefined ) { + + boundTexture = { type: undefined, texture: undefined }; + currentBoundTextures[ currentTextureSlot ] = boundTexture; + + } + + if ( boundTexture.type !== webglType || boundTexture.texture !== webglTexture ) { + + gl.bindTexture( webglType, webglTexture || emptyTextures[ webglType ] ); + + boundTexture.type = webglType; + boundTexture.texture = webglTexture; + + } + + } + + function unbindTexture() { + + const boundTexture = currentBoundTextures[ currentTextureSlot ]; + + if ( boundTexture !== undefined && boundTexture.type !== undefined ) { + + gl.bindTexture( boundTexture.type, null ); + + boundTexture.type = undefined; + boundTexture.texture = undefined; + + } + + } + + function compressedTexImage2D() { + + try { + + gl.compressedTexImage2D.apply( gl, arguments ); + + } catch ( error ) { + + console.error( 'THREE.WebGLState:', error ); + + } + + } + + function texImage2D() { + + try { + + gl.texImage2D.apply( gl, arguments ); + + } catch ( error ) { + + console.error( 'THREE.WebGLState:', error ); + + } + + } + + function texImage3D() { + + try { + + gl.texImage3D.apply( gl, arguments ); + + } catch ( error ) { + + console.error( 'THREE.WebGLState:', error ); + + } + + } + + // + + function scissor( scissor ) { + + if ( currentScissor.equals( scissor ) === false ) { + + gl.scissor( scissor.x, scissor.y, scissor.z, scissor.w ); + currentScissor.copy( scissor ); + + } + + } + + function viewport( viewport ) { + + if ( currentViewport.equals( viewport ) === false ) { + + gl.viewport( viewport.x, viewport.y, viewport.z, viewport.w ); + currentViewport.copy( viewport ); + + } + + } + + // + + function reset() { + + enabledCapabilities = {}; + + currentTextureSlot = null; + currentBoundTextures = {}; + + currentProgram = null; + + currentBlending = null; + + currentFlipSided = null; + currentCullFace = null; + + colorBuffer.reset(); + depthBuffer.reset(); + stencilBuffer.reset(); + + } + + return { + + buffers: { + color: colorBuffer, + depth: depthBuffer, + stencil: stencilBuffer + }, + + enable: enable, + disable: disable, + + useProgram: useProgram, + + setBlending: setBlending, + setMaterial: setMaterial, + + setFlipSided: setFlipSided, + setCullFace: setCullFace, + + setLineWidth: setLineWidth, + setPolygonOffset: setPolygonOffset, + + setScissorTest: setScissorTest, + + activeTexture: activeTexture, + bindTexture: bindTexture, + unbindTexture: unbindTexture, + compressedTexImage2D: compressedTexImage2D, + texImage2D: texImage2D, + texImage3D: texImage3D, + + scissor: scissor, + viewport: viewport, + + reset: reset + + }; + +} + +function WebGLTextures( _gl, extensions, state, properties, capabilities, utils, info ) { + + const isWebGL2 = capabilities.isWebGL2; + const maxTextures = capabilities.maxTextures; + const maxCubemapSize = capabilities.maxCubemapSize; + const maxTextureSize = capabilities.maxTextureSize; + const maxSamples = capabilities.maxSamples; + + const _videoTextures = new WeakMap(); + let _canvas; + + // cordova iOS (as of 5.0) still uses UIWebView, which provides OffscreenCanvas, + // also OffscreenCanvas.getContext("webgl"), but not OffscreenCanvas.getContext("2d")! + // Some implementations may only implement OffscreenCanvas partially (e.g. lacking 2d). + + let useOffscreenCanvas = false; + + try { + + useOffscreenCanvas = typeof OffscreenCanvas !== 'undefined' + && ( new OffscreenCanvas( 1, 1 ).getContext( "2d" ) ) !== null; + + } catch ( err ) { + + // Ignore any errors + + } + + function createCanvas( width, height ) { + + // Use OffscreenCanvas when available. Specially needed in web workers + + return useOffscreenCanvas ? + new OffscreenCanvas( width, height ) : + document.createElementNS( 'http://www.w3.org/1999/xhtml', 'canvas' ); + + } + + function resizeImage( image, needsPowerOfTwo, needsNewCanvas, maxSize ) { + + let scale = 1; + + // handle case if texture exceeds max size + + if ( image.width > maxSize || image.height > maxSize ) { + + scale = maxSize / Math.max( image.width, image.height ); + + } + + // only perform resize if necessary + + if ( scale < 1 || needsPowerOfTwo === true ) { + + // only perform resize for certain image types + + if ( ( typeof HTMLImageElement !== 'undefined' && image instanceof HTMLImageElement ) || + ( typeof HTMLCanvasElement !== 'undefined' && image instanceof HTMLCanvasElement ) || + ( typeof ImageBitmap !== 'undefined' && image instanceof ImageBitmap ) ) { + + const floor = needsPowerOfTwo ? MathUtils.floorPowerOfTwo : Math.floor; + + const width = floor( scale * image.width ); + const height = floor( scale * image.height ); + + if ( _canvas === undefined ) _canvas = createCanvas( width, height ); + + // cube textures can't reuse the same canvas + + const canvas = needsNewCanvas ? createCanvas( width, height ) : _canvas; + + canvas.width = width; + canvas.height = height; + + const context = canvas.getContext( '2d' ); + context.drawImage( image, 0, 0, width, height ); + + console.warn( 'THREE.WebGLRenderer: Texture has been resized from (' + image.width + 'x' + image.height + ') to (' + width + 'x' + height + ').' ); + + return canvas; + + } else { + + if ( 'data' in image ) { + + console.warn( 'THREE.WebGLRenderer: Image in DataTexture is too big (' + image.width + 'x' + image.height + ').' ); + + } + + return image; + + } + + } + + return image; + + } + + function isPowerOfTwo( image ) { + + return MathUtils.isPowerOfTwo( image.width ) && MathUtils.isPowerOfTwo( image.height ); + + } + + function textureNeedsPowerOfTwo( texture ) { + + if ( isWebGL2 ) return false; + + return ( texture.wrapS !== ClampToEdgeWrapping || texture.wrapT !== ClampToEdgeWrapping ) || + ( texture.minFilter !== NearestFilter && texture.minFilter !== LinearFilter ); + + } + + function textureNeedsGenerateMipmaps( texture, supportsMips ) { + + return texture.generateMipmaps && supportsMips && + texture.minFilter !== NearestFilter && texture.minFilter !== LinearFilter; + + } + + function generateMipmap( target, texture, width, height ) { + + _gl.generateMipmap( target ); + + const textureProperties = properties.get( texture ); + + // Note: Math.log( x ) * Math.LOG2E used instead of Math.log2( x ) which is not supported by IE11 + textureProperties.__maxMipLevel = Math.log( Math.max( width, height ) ) * Math.LOG2E; + + } + + function getInternalFormat( internalFormatName, glFormat, glType ) { + + if ( isWebGL2 === false ) return glFormat; + + if ( internalFormatName !== null ) { + + if ( _gl[ internalFormatName ] !== undefined ) return _gl[ internalFormatName ]; + + console.warn( 'THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format \'' + internalFormatName + '\'' ); + + } + + let internalFormat = glFormat; + + if ( glFormat === 6403 ) { + + if ( glType === 5126 ) internalFormat = 33326; + if ( glType === 5131 ) internalFormat = 33325; + if ( glType === 5121 ) internalFormat = 33321; + + } + + if ( glFormat === 6407 ) { + + if ( glType === 5126 ) internalFormat = 34837; + if ( glType === 5131 ) internalFormat = 34843; + if ( glType === 5121 ) internalFormat = 32849; + + } + + if ( glFormat === 6408 ) { + + if ( glType === 5126 ) internalFormat = 34836; + if ( glType === 5131 ) internalFormat = 34842; + if ( glType === 5121 ) internalFormat = 32856; + + } + + if ( internalFormat === 33325 || internalFormat === 33326 || + internalFormat === 34842 || internalFormat === 34836 ) { + + extensions.get( 'EXT_color_buffer_float' ); + + } + + return internalFormat; + + } + + // Fallback filters for non-power-of-2 textures + + function filterFallback( f ) { + + if ( f === NearestFilter || f === NearestMipmapNearestFilter || f === NearestMipmapLinearFilter ) { + + return 9728; + + } + + return 9729; + + } + + // + + function onTextureDispose( event ) { + + const texture = event.target; + + texture.removeEventListener( 'dispose', onTextureDispose ); + + deallocateTexture( texture ); + + if ( texture.isVideoTexture ) { + + _videoTextures.delete( texture ); + + } + + info.memory.textures --; + + } + + function onRenderTargetDispose( event ) { + + const renderTarget = event.target; + + renderTarget.removeEventListener( 'dispose', onRenderTargetDispose ); + + deallocateRenderTarget( renderTarget ); + + info.memory.textures --; + + } + + // + + function deallocateTexture( texture ) { + + const textureProperties = properties.get( texture ); + + if ( textureProperties.__webglInit === undefined ) return; + + _gl.deleteTexture( textureProperties.__webglTexture ); + + properties.remove( texture ); + + } + + function deallocateRenderTarget( renderTarget ) { + + const renderTargetProperties = properties.get( renderTarget ); + const textureProperties = properties.get( renderTarget.texture ); + + if ( ! renderTarget ) return; + + if ( textureProperties.__webglTexture !== undefined ) { + + _gl.deleteTexture( textureProperties.__webglTexture ); + + } + + if ( renderTarget.depthTexture ) { + + renderTarget.depthTexture.dispose(); + + } + + if ( renderTarget.isWebGLCubeRenderTarget ) { + + for ( let i = 0; i < 6; i ++ ) { + + _gl.deleteFramebuffer( renderTargetProperties.__webglFramebuffer[ i ] ); + if ( renderTargetProperties.__webglDepthbuffer ) _gl.deleteRenderbuffer( renderTargetProperties.__webglDepthbuffer[ i ] ); + + } + + } else { + + _gl.deleteFramebuffer( renderTargetProperties.__webglFramebuffer ); + if ( renderTargetProperties.__webglDepthbuffer ) _gl.deleteRenderbuffer( renderTargetProperties.__webglDepthbuffer ); + if ( renderTargetProperties.__webglMultisampledFramebuffer ) _gl.deleteFramebuffer( renderTargetProperties.__webglMultisampledFramebuffer ); + if ( renderTargetProperties.__webglColorRenderbuffer ) _gl.deleteRenderbuffer( renderTargetProperties.__webglColorRenderbuffer ); + if ( renderTargetProperties.__webglDepthRenderbuffer ) _gl.deleteRenderbuffer( renderTargetProperties.__webglDepthRenderbuffer ); + + } + + properties.remove( renderTarget.texture ); + properties.remove( renderTarget ); + + } + + // + + let textureUnits = 0; + + function resetTextureUnits() { + + textureUnits = 0; + + } + + function allocateTextureUnit() { + + const textureUnit = textureUnits; + + if ( textureUnit >= maxTextures ) { + + console.warn( 'THREE.WebGLTextures: Trying to use ' + textureUnit + ' texture units while this GPU supports only ' + maxTextures ); + + } + + textureUnits += 1; + + return textureUnit; + + } + + // + + function setTexture2D( texture, slot ) { + + const textureProperties = properties.get( texture ); + + if ( texture.isVideoTexture ) updateVideoTexture( texture ); + + if ( texture.version > 0 && textureProperties.__version !== texture.version ) { + + const image = texture.image; + + if ( image === undefined ) { + + console.warn( 'THREE.WebGLRenderer: Texture marked for update but image is undefined' ); + + } else if ( image.complete === false ) { + + console.warn( 'THREE.WebGLRenderer: Texture marked for update but image is incomplete' ); + + } else { + + uploadTexture( textureProperties, texture, slot ); + return; + + } + + } + + state.activeTexture( 33984 + slot ); + state.bindTexture( 3553, textureProperties.__webglTexture ); + + } + + function setTexture2DArray( texture, slot ) { + + const textureProperties = properties.get( texture ); + + if ( texture.version > 0 && textureProperties.__version !== texture.version ) { + + uploadTexture( textureProperties, texture, slot ); + return; + + } + + state.activeTexture( 33984 + slot ); + state.bindTexture( 35866, textureProperties.__webglTexture ); + + } + + function setTexture3D( texture, slot ) { + + const textureProperties = properties.get( texture ); + + if ( texture.version > 0 && textureProperties.__version !== texture.version ) { + + uploadTexture( textureProperties, texture, slot ); + return; + + } + + state.activeTexture( 33984 + slot ); + state.bindTexture( 32879, textureProperties.__webglTexture ); + + } + + function setTextureCube( texture, slot ) { + + const textureProperties = properties.get( texture ); + + if ( texture.version > 0 && textureProperties.__version !== texture.version ) { + + uploadCubeTexture( textureProperties, texture, slot ); + return; + + } + + state.activeTexture( 33984 + slot ); + state.bindTexture( 34067, textureProperties.__webglTexture ); + + } + + const wrappingToGL = { + [ RepeatWrapping ]: 10497, + [ ClampToEdgeWrapping ]: 33071, + [ MirroredRepeatWrapping ]: 33648 + }; + + const filterToGL = { + [ NearestFilter ]: 9728, + [ NearestMipmapNearestFilter ]: 9984, + [ NearestMipmapLinearFilter ]: 9986, + + [ LinearFilter ]: 9729, + [ LinearMipmapNearestFilter ]: 9985, + [ LinearMipmapLinearFilter ]: 9987 + }; + + function setTextureParameters( textureType, texture, supportsMips ) { + + if ( supportsMips ) { + + _gl.texParameteri( textureType, 10242, wrappingToGL[ texture.wrapS ] ); + _gl.texParameteri( textureType, 10243, wrappingToGL[ texture.wrapT ] ); + + if ( textureType === 32879 || textureType === 35866 ) { + + _gl.texParameteri( textureType, 32882, wrappingToGL[ texture.wrapR ] ); + + } + + _gl.texParameteri( textureType, 10240, filterToGL[ texture.magFilter ] ); + _gl.texParameteri( textureType, 10241, filterToGL[ texture.minFilter ] ); + + } else { + + _gl.texParameteri( textureType, 10242, 33071 ); + _gl.texParameteri( textureType, 10243, 33071 ); + + if ( textureType === 32879 || textureType === 35866 ) { + + _gl.texParameteri( textureType, 32882, 33071 ); + + } + + if ( texture.wrapS !== ClampToEdgeWrapping || texture.wrapT !== ClampToEdgeWrapping ) { + + console.warn( 'THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping.' ); + + } + + _gl.texParameteri( textureType, 10240, filterFallback( texture.magFilter ) ); + _gl.texParameteri( textureType, 10241, filterFallback( texture.minFilter ) ); + + if ( texture.minFilter !== NearestFilter && texture.minFilter !== LinearFilter ) { + + console.warn( 'THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.' ); + + } + + } + + const extension = extensions.get( 'EXT_texture_filter_anisotropic' ); + + if ( extension ) { + + if ( texture.type === FloatType && extensions.get( 'OES_texture_float_linear' ) === null ) return; + if ( texture.type === HalfFloatType && ( isWebGL2 || extensions.get( 'OES_texture_half_float_linear' ) ) === null ) return; + + if ( texture.anisotropy > 1 || properties.get( texture ).__currentAnisotropy ) { + + _gl.texParameterf( textureType, extension.TEXTURE_MAX_ANISOTROPY_EXT, Math.min( texture.anisotropy, capabilities.getMaxAnisotropy() ) ); + properties.get( texture ).__currentAnisotropy = texture.anisotropy; + + } + + } + + } + + function initTexture( textureProperties, texture ) { + + if ( textureProperties.__webglInit === undefined ) { + + textureProperties.__webglInit = true; + + texture.addEventListener( 'dispose', onTextureDispose ); + + textureProperties.__webglTexture = _gl.createTexture(); + + info.memory.textures ++; + + } + + } + + function uploadTexture( textureProperties, texture, slot ) { + + let textureType = 3553; + + if ( texture.isDataTexture2DArray ) textureType = 35866; + if ( texture.isDataTexture3D ) textureType = 32879; + + initTexture( textureProperties, texture ); + + state.activeTexture( 33984 + slot ); + state.bindTexture( textureType, textureProperties.__webglTexture ); + + _gl.pixelStorei( 37440, texture.flipY ); + _gl.pixelStorei( 37441, texture.premultiplyAlpha ); + _gl.pixelStorei( 3317, texture.unpackAlignment ); + + const needsPowerOfTwo = textureNeedsPowerOfTwo( texture ) && isPowerOfTwo( texture.image ) === false; + const image = resizeImage( texture.image, needsPowerOfTwo, false, maxTextureSize ); + + const supportsMips = isPowerOfTwo( image ) || isWebGL2, + glFormat = utils.convert( texture.format ); + + let glType = utils.convert( texture.type ), + glInternalFormat = getInternalFormat( texture.internalFormat, glFormat, glType ); + + setTextureParameters( textureType, texture, supportsMips ); + + let mipmap; + const mipmaps = texture.mipmaps; + + if ( texture.isDepthTexture ) { + + // populate depth texture with dummy data + + glInternalFormat = 6402; + + if ( isWebGL2 ) { + + if ( texture.type === FloatType ) { + + glInternalFormat = 36012; + + } else if ( texture.type === UnsignedIntType ) { + + glInternalFormat = 33190; + + } else if ( texture.type === UnsignedInt248Type ) { + + glInternalFormat = 35056; + + } else { + + glInternalFormat = 33189; // WebGL2 requires sized internalformat for glTexImage2D + + } + + } else { + + if ( texture.type === FloatType ) { + + console.error( 'WebGLRenderer: Floating point depth texture requires WebGL2.' ); + + } + + } + + // validation checks for WebGL 1 + + if ( texture.format === DepthFormat && glInternalFormat === 6402 ) { + + // The error INVALID_OPERATION is generated by texImage2D if format and internalformat are + // DEPTH_COMPONENT and type is not UNSIGNED_SHORT or UNSIGNED_INT + // (https://www.khronos.org/registry/webgl/extensions/WEBGL_depth_texture/) + if ( texture.type !== UnsignedShortType && texture.type !== UnsignedIntType ) { + + console.warn( 'THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture.' ); + + texture.type = UnsignedShortType; + glType = utils.convert( texture.type ); + + } + + } + + if ( texture.format === DepthStencilFormat && glInternalFormat === 6402 ) { + + // Depth stencil textures need the DEPTH_STENCIL internal format + // (https://www.khronos.org/registry/webgl/extensions/WEBGL_depth_texture/) + glInternalFormat = 34041; + + // The error INVALID_OPERATION is generated by texImage2D if format and internalformat are + // DEPTH_STENCIL and type is not UNSIGNED_INT_24_8_WEBGL. + // (https://www.khronos.org/registry/webgl/extensions/WEBGL_depth_texture/) + if ( texture.type !== UnsignedInt248Type ) { + + console.warn( 'THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture.' ); + + texture.type = UnsignedInt248Type; + glType = utils.convert( texture.type ); + + } + + } + + // + + state.texImage2D( 3553, 0, glInternalFormat, image.width, image.height, 0, glFormat, glType, null ); + + } else if ( texture.isDataTexture ) { + + // use manually created mipmaps if available + // if there are no manual mipmaps + // set 0 level mipmap and then use GL to generate other mipmap levels + + if ( mipmaps.length > 0 && supportsMips ) { + + for ( let i = 0, il = mipmaps.length; i < il; i ++ ) { + + mipmap = mipmaps[ i ]; + state.texImage2D( 3553, i, glInternalFormat, mipmap.width, mipmap.height, 0, glFormat, glType, mipmap.data ); + + } + + texture.generateMipmaps = false; + textureProperties.__maxMipLevel = mipmaps.length - 1; + + } else { + + state.texImage2D( 3553, 0, glInternalFormat, image.width, image.height, 0, glFormat, glType, image.data ); + textureProperties.__maxMipLevel = 0; + + } + + } else if ( texture.isCompressedTexture ) { + + for ( let i = 0, il = mipmaps.length; i < il; i ++ ) { + + mipmap = mipmaps[ i ]; + + if ( texture.format !== RGBAFormat && texture.format !== RGBFormat ) { + + if ( glFormat !== null ) { + + state.compressedTexImage2D( 3553, i, glInternalFormat, mipmap.width, mipmap.height, 0, mipmap.data ); + + } else { + + console.warn( 'THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()' ); + + } + + } else { + + state.texImage2D( 3553, i, glInternalFormat, mipmap.width, mipmap.height, 0, glFormat, glType, mipmap.data ); + + } + + } + + textureProperties.__maxMipLevel = mipmaps.length - 1; + + } else if ( texture.isDataTexture2DArray ) { + + state.texImage3D( 35866, 0, glInternalFormat, image.width, image.height, image.depth, 0, glFormat, glType, image.data ); + textureProperties.__maxMipLevel = 0; + + } else if ( texture.isDataTexture3D ) { + + state.texImage3D( 32879, 0, glInternalFormat, image.width, image.height, image.depth, 0, glFormat, glType, image.data ); + textureProperties.__maxMipLevel = 0; + + } else { + + // regular Texture (image, video, canvas) + + // use manually created mipmaps if available + // if there are no manual mipmaps + // set 0 level mipmap and then use GL to generate other mipmap levels + + if ( mipmaps.length > 0 && supportsMips ) { + + for ( let i = 0, il = mipmaps.length; i < il; i ++ ) { + + mipmap = mipmaps[ i ]; + state.texImage2D( 3553, i, glInternalFormat, glFormat, glType, mipmap ); + + } + + texture.generateMipmaps = false; + textureProperties.__maxMipLevel = mipmaps.length - 1; + + } else { + + state.texImage2D( 3553, 0, glInternalFormat, glFormat, glType, image ); + textureProperties.__maxMipLevel = 0; + + } + + } + + if ( textureNeedsGenerateMipmaps( texture, supportsMips ) ) { + + generateMipmap( textureType, texture, image.width, image.height ); + + } + + textureProperties.__version = texture.version; + + if ( texture.onUpdate ) texture.onUpdate( texture ); + + } + + function uploadCubeTexture( textureProperties, texture, slot ) { + + if ( texture.image.length !== 6 ) return; + + initTexture( textureProperties, texture ); + + state.activeTexture( 33984 + slot ); + state.bindTexture( 34067, textureProperties.__webglTexture ); + + _gl.pixelStorei( 37440, texture.flipY ); + + const isCompressed = ( texture && ( texture.isCompressedTexture || texture.image[ 0 ].isCompressedTexture ) ); + const isDataTexture = ( texture.image[ 0 ] && texture.image[ 0 ].isDataTexture ); + + const cubeImage = []; + + for ( let i = 0; i < 6; i ++ ) { + + if ( ! isCompressed && ! isDataTexture ) { + + cubeImage[ i ] = resizeImage( texture.image[ i ], false, true, maxCubemapSize ); + + } else { + + cubeImage[ i ] = isDataTexture ? texture.image[ i ].image : texture.image[ i ]; + + } + + } + + const image = cubeImage[ 0 ], + supportsMips = isPowerOfTwo( image ) || isWebGL2, + glFormat = utils.convert( texture.format ), + glType = utils.convert( texture.type ), + glInternalFormat = getInternalFormat( texture.internalFormat, glFormat, glType ); + + setTextureParameters( 34067, texture, supportsMips ); + + let mipmaps; + + if ( isCompressed ) { + + for ( let i = 0; i < 6; i ++ ) { + + mipmaps = cubeImage[ i ].mipmaps; + + for ( let j = 0; j < mipmaps.length; j ++ ) { + + const mipmap = mipmaps[ j ]; + + if ( texture.format !== RGBAFormat && texture.format !== RGBFormat ) { + + if ( glFormat !== null ) { + + state.compressedTexImage2D( 34069 + i, j, glInternalFormat, mipmap.width, mipmap.height, 0, mipmap.data ); + + } else { + + console.warn( 'THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .setTextureCube()' ); + + } + + } else { + + state.texImage2D( 34069 + i, j, glInternalFormat, mipmap.width, mipmap.height, 0, glFormat, glType, mipmap.data ); + + } + + } + + } + + textureProperties.__maxMipLevel = mipmaps.length - 1; + + } else { + + mipmaps = texture.mipmaps; + + for ( let i = 0; i < 6; i ++ ) { + + if ( isDataTexture ) { + + state.texImage2D( 34069 + i, 0, glInternalFormat, cubeImage[ i ].width, cubeImage[ i ].height, 0, glFormat, glType, cubeImage[ i ].data ); + + for ( let j = 0; j < mipmaps.length; j ++ ) { + + const mipmap = mipmaps[ j ]; + const mipmapImage = mipmap.image[ i ].image; + + state.texImage2D( 34069 + i, j + 1, glInternalFormat, mipmapImage.width, mipmapImage.height, 0, glFormat, glType, mipmapImage.data ); + + } + + } else { + + state.texImage2D( 34069 + i, 0, glInternalFormat, glFormat, glType, cubeImage[ i ] ); + + for ( let j = 0; j < mipmaps.length; j ++ ) { + + const mipmap = mipmaps[ j ]; + + state.texImage2D( 34069 + i, j + 1, glInternalFormat, glFormat, glType, mipmap.image[ i ] ); + + } + + } + + } + + textureProperties.__maxMipLevel = mipmaps.length; + + } + + if ( textureNeedsGenerateMipmaps( texture, supportsMips ) ) { + + // We assume images for cube map have the same size. + generateMipmap( 34067, texture, image.width, image.height ); + + } + + textureProperties.__version = texture.version; + + if ( texture.onUpdate ) texture.onUpdate( texture ); + + } + + // Render targets + + // Setup storage for target texture and bind it to correct framebuffer + function setupFrameBufferTexture( framebuffer, renderTarget, attachment, textureTarget ) { + + const glFormat = utils.convert( renderTarget.texture.format ); + const glType = utils.convert( renderTarget.texture.type ); + const glInternalFormat = getInternalFormat( renderTarget.texture.internalFormat, glFormat, glType ); + state.texImage2D( textureTarget, 0, glInternalFormat, renderTarget.width, renderTarget.height, 0, glFormat, glType, null ); + _gl.bindFramebuffer( 36160, framebuffer ); + _gl.framebufferTexture2D( 36160, attachment, textureTarget, properties.get( renderTarget.texture ).__webglTexture, 0 ); + _gl.bindFramebuffer( 36160, null ); + + } + + // Setup storage for internal depth/stencil buffers and bind to correct framebuffer + function setupRenderBufferStorage( renderbuffer, renderTarget, isMultisample ) { + + _gl.bindRenderbuffer( 36161, renderbuffer ); + + if ( renderTarget.depthBuffer && ! renderTarget.stencilBuffer ) { + + let glInternalFormat = 33189; + + if ( isMultisample ) { + + const depthTexture = renderTarget.depthTexture; + + if ( depthTexture && depthTexture.isDepthTexture ) { + + if ( depthTexture.type === FloatType ) { + + glInternalFormat = 36012; + + } else if ( depthTexture.type === UnsignedIntType ) { + + glInternalFormat = 33190; + + } + + } + + const samples = getRenderTargetSamples( renderTarget ); + + _gl.renderbufferStorageMultisample( 36161, samples, glInternalFormat, renderTarget.width, renderTarget.height ); + + } else { + + _gl.renderbufferStorage( 36161, glInternalFormat, renderTarget.width, renderTarget.height ); + + } + + _gl.framebufferRenderbuffer( 36160, 36096, 36161, renderbuffer ); + + } else if ( renderTarget.depthBuffer && renderTarget.stencilBuffer ) { + + if ( isMultisample ) { + + const samples = getRenderTargetSamples( renderTarget ); + + _gl.renderbufferStorageMultisample( 36161, samples, 35056, renderTarget.width, renderTarget.height ); + + } else { + + _gl.renderbufferStorage( 36161, 34041, renderTarget.width, renderTarget.height ); + + } + + + _gl.framebufferRenderbuffer( 36160, 33306, 36161, renderbuffer ); + + } else { + + const glFormat = utils.convert( renderTarget.texture.format ); + const glType = utils.convert( renderTarget.texture.type ); + const glInternalFormat = getInternalFormat( renderTarget.texture.internalFormat, glFormat, glType ); + + if ( isMultisample ) { + + const samples = getRenderTargetSamples( renderTarget ); + + _gl.renderbufferStorageMultisample( 36161, samples, glInternalFormat, renderTarget.width, renderTarget.height ); + + } else { + + _gl.renderbufferStorage( 36161, glInternalFormat, renderTarget.width, renderTarget.height ); + + } + + } + + _gl.bindRenderbuffer( 36161, null ); + + } + + // Setup resources for a Depth Texture for a FBO (needs an extension) + function setupDepthTexture( framebuffer, renderTarget ) { + + const isCube = ( renderTarget && renderTarget.isWebGLCubeRenderTarget ); + if ( isCube ) throw new Error( 'Depth Texture with cube render targets is not supported' ); + + _gl.bindFramebuffer( 36160, framebuffer ); + + if ( ! ( renderTarget.depthTexture && renderTarget.depthTexture.isDepthTexture ) ) { + + throw new Error( 'renderTarget.depthTexture must be an instance of THREE.DepthTexture' ); + + } + + // upload an empty depth texture with framebuffer size + if ( ! properties.get( renderTarget.depthTexture ).__webglTexture || + renderTarget.depthTexture.image.width !== renderTarget.width || + renderTarget.depthTexture.image.height !== renderTarget.height ) { + + renderTarget.depthTexture.image.width = renderTarget.width; + renderTarget.depthTexture.image.height = renderTarget.height; + renderTarget.depthTexture.needsUpdate = true; + + } + + setTexture2D( renderTarget.depthTexture, 0 ); + + const webglDepthTexture = properties.get( renderTarget.depthTexture ).__webglTexture; + + if ( renderTarget.depthTexture.format === DepthFormat ) { + + _gl.framebufferTexture2D( 36160, 36096, 3553, webglDepthTexture, 0 ); + + } else if ( renderTarget.depthTexture.format === DepthStencilFormat ) { + + _gl.framebufferTexture2D( 36160, 33306, 3553, webglDepthTexture, 0 ); + + } else { + + throw new Error( 'Unknown depthTexture format' ); + + } + + } + + // Setup GL resources for a non-texture depth buffer + function setupDepthRenderbuffer( renderTarget ) { + + const renderTargetProperties = properties.get( renderTarget ); + + const isCube = ( renderTarget.isWebGLCubeRenderTarget === true ); + + if ( renderTarget.depthTexture ) { + + if ( isCube ) throw new Error( 'target.depthTexture not supported in Cube render targets' ); + + setupDepthTexture( renderTargetProperties.__webglFramebuffer, renderTarget ); + + } else { + + if ( isCube ) { + + renderTargetProperties.__webglDepthbuffer = []; + + for ( let i = 0; i < 6; i ++ ) { + + _gl.bindFramebuffer( 36160, renderTargetProperties.__webglFramebuffer[ i ] ); + renderTargetProperties.__webglDepthbuffer[ i ] = _gl.createRenderbuffer(); + setupRenderBufferStorage( renderTargetProperties.__webglDepthbuffer[ i ], renderTarget, false ); + + } + + } else { + + _gl.bindFramebuffer( 36160, renderTargetProperties.__webglFramebuffer ); + renderTargetProperties.__webglDepthbuffer = _gl.createRenderbuffer(); + setupRenderBufferStorage( renderTargetProperties.__webglDepthbuffer, renderTarget, false ); + + } + + } + + _gl.bindFramebuffer( 36160, null ); + + } + + // Set up GL resources for the render target + function setupRenderTarget( renderTarget ) { + + const renderTargetProperties = properties.get( renderTarget ); + const textureProperties = properties.get( renderTarget.texture ); + + renderTarget.addEventListener( 'dispose', onRenderTargetDispose ); + + textureProperties.__webglTexture = _gl.createTexture(); + + info.memory.textures ++; + + const isCube = ( renderTarget.isWebGLCubeRenderTarget === true ); + const isMultisample = ( renderTarget.isWebGLMultisampleRenderTarget === true ); + const supportsMips = isPowerOfTwo( renderTarget ) || isWebGL2; + + // Handles WebGL2 RGBFormat fallback - #18858 + + if ( isWebGL2 && renderTarget.texture.format === RGBFormat && ( renderTarget.texture.type === FloatType || renderTarget.texture.type === HalfFloatType ) ) { + + renderTarget.texture.format = RGBAFormat; + + console.warn( 'THREE.WebGLRenderer: Rendering to textures with RGB format is not supported. Using RGBA format instead.' ); + + } + + // Setup framebuffer + + if ( isCube ) { + + renderTargetProperties.__webglFramebuffer = []; + + for ( let i = 0; i < 6; i ++ ) { + + renderTargetProperties.__webglFramebuffer[ i ] = _gl.createFramebuffer(); + + } + + } else { + + renderTargetProperties.__webglFramebuffer = _gl.createFramebuffer(); + + if ( isMultisample ) { + + if ( isWebGL2 ) { + + renderTargetProperties.__webglMultisampledFramebuffer = _gl.createFramebuffer(); + renderTargetProperties.__webglColorRenderbuffer = _gl.createRenderbuffer(); + + _gl.bindRenderbuffer( 36161, renderTargetProperties.__webglColorRenderbuffer ); + + const glFormat = utils.convert( renderTarget.texture.format ); + const glType = utils.convert( renderTarget.texture.type ); + const glInternalFormat = getInternalFormat( renderTarget.texture.internalFormat, glFormat, glType ); + const samples = getRenderTargetSamples( renderTarget ); + _gl.renderbufferStorageMultisample( 36161, samples, glInternalFormat, renderTarget.width, renderTarget.height ); + + _gl.bindFramebuffer( 36160, renderTargetProperties.__webglMultisampledFramebuffer ); + _gl.framebufferRenderbuffer( 36160, 36064, 36161, renderTargetProperties.__webglColorRenderbuffer ); + _gl.bindRenderbuffer( 36161, null ); + + if ( renderTarget.depthBuffer ) { + + renderTargetProperties.__webglDepthRenderbuffer = _gl.createRenderbuffer(); + setupRenderBufferStorage( renderTargetProperties.__webglDepthRenderbuffer, renderTarget, true ); + + } + + _gl.bindFramebuffer( 36160, null ); + + + } else { + + console.warn( 'THREE.WebGLRenderer: WebGLMultisampleRenderTarget can only be used with WebGL2.' ); + + } + + } + + } + + // Setup color buffer + + if ( isCube ) { + + state.bindTexture( 34067, textureProperties.__webglTexture ); + setTextureParameters( 34067, renderTarget.texture, supportsMips ); + + for ( let i = 0; i < 6; i ++ ) { + + setupFrameBufferTexture( renderTargetProperties.__webglFramebuffer[ i ], renderTarget, 36064, 34069 + i ); + + } + + if ( textureNeedsGenerateMipmaps( renderTarget.texture, supportsMips ) ) { + + generateMipmap( 34067, renderTarget.texture, renderTarget.width, renderTarget.height ); + + } + + state.bindTexture( 34067, null ); + + } else { + + state.bindTexture( 3553, textureProperties.__webglTexture ); + setTextureParameters( 3553, renderTarget.texture, supportsMips ); + setupFrameBufferTexture( renderTargetProperties.__webglFramebuffer, renderTarget, 36064, 3553 ); + + if ( textureNeedsGenerateMipmaps( renderTarget.texture, supportsMips ) ) { + + generateMipmap( 3553, renderTarget.texture, renderTarget.width, renderTarget.height ); + + } + + state.bindTexture( 3553, null ); + + } + + // Setup depth and stencil buffers + + if ( renderTarget.depthBuffer ) { + + setupDepthRenderbuffer( renderTarget ); + + } + + } + + function updateRenderTargetMipmap( renderTarget ) { + + const texture = renderTarget.texture; + const supportsMips = isPowerOfTwo( renderTarget ) || isWebGL2; + + if ( textureNeedsGenerateMipmaps( texture, supportsMips ) ) { + + const target = renderTarget.isWebGLCubeRenderTarget ? 34067 : 3553; + const webglTexture = properties.get( texture ).__webglTexture; + + state.bindTexture( target, webglTexture ); + generateMipmap( target, texture, renderTarget.width, renderTarget.height ); + state.bindTexture( target, null ); + + } + + } + + function updateMultisampleRenderTarget( renderTarget ) { + + if ( renderTarget.isWebGLMultisampleRenderTarget ) { + + if ( isWebGL2 ) { + + const renderTargetProperties = properties.get( renderTarget ); + + _gl.bindFramebuffer( 36008, renderTargetProperties.__webglMultisampledFramebuffer ); + _gl.bindFramebuffer( 36009, renderTargetProperties.__webglFramebuffer ); + + const width = renderTarget.width; + const height = renderTarget.height; + let mask = 16384; + + if ( renderTarget.depthBuffer ) mask |= 256; + if ( renderTarget.stencilBuffer ) mask |= 1024; + + _gl.blitFramebuffer( 0, 0, width, height, 0, 0, width, height, mask, 9728 ); + + _gl.bindFramebuffer( 36160, renderTargetProperties.__webglMultisampledFramebuffer ); // see #18905 + + } else { + + console.warn( 'THREE.WebGLRenderer: WebGLMultisampleRenderTarget can only be used with WebGL2.' ); + + } + + } + + } + + function getRenderTargetSamples( renderTarget ) { + + return ( isWebGL2 && renderTarget.isWebGLMultisampleRenderTarget ) ? + Math.min( maxSamples, renderTarget.samples ) : 0; + + } + + function updateVideoTexture( texture ) { + + const frame = info.render.frame; + + // Check the last frame we updated the VideoTexture + + if ( _videoTextures.get( texture ) !== frame ) { + + _videoTextures.set( texture, frame ); + texture.update(); + + } + + } + + // backwards compatibility + + let warnedTexture2D = false; + let warnedTextureCube = false; + + function safeSetTexture2D( texture, slot ) { + + if ( texture && texture.isWebGLRenderTarget ) { + + if ( warnedTexture2D === false ) { + + console.warn( "THREE.WebGLTextures.safeSetTexture2D: don't use render targets as textures. Use their .texture property instead." ); + warnedTexture2D = true; + + } + + texture = texture.texture; + + } + + setTexture2D( texture, slot ); + + } + + function safeSetTextureCube( texture, slot ) { + + if ( texture && texture.isWebGLCubeRenderTarget ) { + + if ( warnedTextureCube === false ) { + + console.warn( "THREE.WebGLTextures.safeSetTextureCube: don't use cube render targets as textures. Use their .texture property instead." ); + warnedTextureCube = true; + + } + + texture = texture.texture; + + } + + + setTextureCube( texture, slot ); + + } + + // + + this.allocateTextureUnit = allocateTextureUnit; + this.resetTextureUnits = resetTextureUnits; + + this.setTexture2D = setTexture2D; + this.setTexture2DArray = setTexture2DArray; + this.setTexture3D = setTexture3D; + this.setTextureCube = setTextureCube; + this.setupRenderTarget = setupRenderTarget; + this.updateRenderTargetMipmap = updateRenderTargetMipmap; + this.updateMultisampleRenderTarget = updateMultisampleRenderTarget; + + this.safeSetTexture2D = safeSetTexture2D; + this.safeSetTextureCube = safeSetTextureCube; + +} + +function WebGLUtils( gl, extensions, capabilities ) { + + const isWebGL2 = capabilities.isWebGL2; + + function convert( p ) { + + let extension; + + if ( p === UnsignedByteType ) return 5121; + if ( p === UnsignedShort4444Type ) return 32819; + if ( p === UnsignedShort5551Type ) return 32820; + if ( p === UnsignedShort565Type ) return 33635; + + if ( p === ByteType ) return 5120; + if ( p === ShortType ) return 5122; + if ( p === UnsignedShortType ) return 5123; + if ( p === IntType ) return 5124; + if ( p === UnsignedIntType ) return 5125; + if ( p === FloatType ) return 5126; + + if ( p === HalfFloatType ) { + + if ( isWebGL2 ) return 5131; + + extension = extensions.get( 'OES_texture_half_float' ); + + if ( extension !== null ) { + + return extension.HALF_FLOAT_OES; + + } else { + + return null; + + } + + } + + if ( p === AlphaFormat ) return 6406; + if ( p === RGBFormat ) return 6407; + if ( p === RGBAFormat ) return 6408; + if ( p === LuminanceFormat ) return 6409; + if ( p === LuminanceAlphaFormat ) return 6410; + if ( p === DepthFormat ) return 6402; + if ( p === DepthStencilFormat ) return 34041; + if ( p === RedFormat ) return 6403; + + // WebGL2 formats. + + if ( p === RedIntegerFormat ) return 36244; + if ( p === RGFormat ) return 33319; + if ( p === RGIntegerFormat ) return 33320; + if ( p === RGBIntegerFormat ) return 36248; + if ( p === RGBAIntegerFormat ) return 36249; + + if ( p === RGB_S3TC_DXT1_Format || p === RGBA_S3TC_DXT1_Format || + p === RGBA_S3TC_DXT3_Format || p === RGBA_S3TC_DXT5_Format ) { + + extension = extensions.get( 'WEBGL_compressed_texture_s3tc' ); + + if ( extension !== null ) { + + if ( p === RGB_S3TC_DXT1_Format ) return extension.COMPRESSED_RGB_S3TC_DXT1_EXT; + if ( p === RGBA_S3TC_DXT1_Format ) return extension.COMPRESSED_RGBA_S3TC_DXT1_EXT; + if ( p === RGBA_S3TC_DXT3_Format ) return extension.COMPRESSED_RGBA_S3TC_DXT3_EXT; + if ( p === RGBA_S3TC_DXT5_Format ) return extension.COMPRESSED_RGBA_S3TC_DXT5_EXT; + + } else { + + return null; + + } + + } + + if ( p === RGB_PVRTC_4BPPV1_Format || p === RGB_PVRTC_2BPPV1_Format || + p === RGBA_PVRTC_4BPPV1_Format || p === RGBA_PVRTC_2BPPV1_Format ) { + + extension = extensions.get( 'WEBGL_compressed_texture_pvrtc' ); + + if ( extension !== null ) { + + if ( p === RGB_PVRTC_4BPPV1_Format ) return extension.COMPRESSED_RGB_PVRTC_4BPPV1_IMG; + if ( p === RGB_PVRTC_2BPPV1_Format ) return extension.COMPRESSED_RGB_PVRTC_2BPPV1_IMG; + if ( p === RGBA_PVRTC_4BPPV1_Format ) return extension.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG; + if ( p === RGBA_PVRTC_2BPPV1_Format ) return extension.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG; + + } else { + + return null; + + } + + } + + if ( p === RGB_ETC1_Format ) { + + extension = extensions.get( 'WEBGL_compressed_texture_etc1' ); + + if ( extension !== null ) { + + return extension.COMPRESSED_RGB_ETC1_WEBGL; + + } else { + + return null; + + } + + } + + if ( p === RGB_ETC2_Format || p === RGBA_ETC2_EAC_Format ) { + + extension = extensions.get( 'WEBGL_compressed_texture_etc' ); + + if ( extension !== null ) { + + if ( p === RGB_ETC2_Format ) return extension.COMPRESSED_RGB8_ETC2; + if ( p === RGBA_ETC2_EAC_Format ) return extension.COMPRESSED_RGBA8_ETC2_EAC; + + } + + } + + if ( p === RGBA_ASTC_4x4_Format || p === RGBA_ASTC_5x4_Format || p === RGBA_ASTC_5x5_Format || + p === RGBA_ASTC_6x5_Format || p === RGBA_ASTC_6x6_Format || p === RGBA_ASTC_8x5_Format || + p === RGBA_ASTC_8x6_Format || p === RGBA_ASTC_8x8_Format || p === RGBA_ASTC_10x5_Format || + p === RGBA_ASTC_10x6_Format || p === RGBA_ASTC_10x8_Format || p === RGBA_ASTC_10x10_Format || + p === RGBA_ASTC_12x10_Format || p === RGBA_ASTC_12x12_Format || + p === SRGB8_ALPHA8_ASTC_4x4_Format || p === SRGB8_ALPHA8_ASTC_5x4_Format || p === SRGB8_ALPHA8_ASTC_5x5_Format || + p === SRGB8_ALPHA8_ASTC_6x5_Format || p === SRGB8_ALPHA8_ASTC_6x6_Format || p === SRGB8_ALPHA8_ASTC_8x5_Format || + p === SRGB8_ALPHA8_ASTC_8x6_Format || p === SRGB8_ALPHA8_ASTC_8x8_Format || p === SRGB8_ALPHA8_ASTC_10x5_Format || + p === SRGB8_ALPHA8_ASTC_10x6_Format || p === SRGB8_ALPHA8_ASTC_10x8_Format || p === SRGB8_ALPHA8_ASTC_10x10_Format || + p === SRGB8_ALPHA8_ASTC_12x10_Format || p === SRGB8_ALPHA8_ASTC_12x12_Format ) { + + extension = extensions.get( 'WEBGL_compressed_texture_astc' ); + + if ( extension !== null ) { + + // TODO Complete? + + return p; + + } else { + + return null; + + } + + } + + if ( p === RGBA_BPTC_Format ) { + + extension = extensions.get( 'EXT_texture_compression_bptc' ); + + if ( extension !== null ) { + + // TODO Complete? + + return p; + + } else { + + return null; + + } + + } + + if ( p === UnsignedInt248Type ) { + + if ( isWebGL2 ) return 34042; + + extension = extensions.get( 'WEBGL_depth_texture' ); + + if ( extension !== null ) { + + return extension.UNSIGNED_INT_24_8_WEBGL; + + } else { + + return null; + + } + + } + + } + + return { convert: convert }; + +} + +function ArrayCamera( array ) { + + PerspectiveCamera.call( this ); + + this.cameras = array || []; + +} + +ArrayCamera.prototype = Object.assign( Object.create( PerspectiveCamera.prototype ), { + + constructor: ArrayCamera, + + isArrayCamera: true + +} ); + +function Group() { + + Object3D.call( this ); + + this.type = 'Group'; + +} + +Group.prototype = Object.assign( Object.create( Object3D.prototype ), { + + constructor: Group, + + isGroup: true + +} ); + +function WebXRController() { + + this._targetRay = null; + this._grip = null; + this._hand = null; + +} + +Object.assign( WebXRController.prototype, { + + constructor: WebXRController, + + getHandSpace: function () { + + if ( this._hand === null ) { + + this._hand = new Group(); + this._hand.matrixAutoUpdate = false; + this._hand.visible = false; + + this._hand.joints = []; + this._hand.inputState = { pinching: false }; + + if ( window.XRHand ) { + + for ( let i = 0; i <= window.XRHand.LITTLE_PHALANX_TIP; i ++ ) { + + // The transform of this joint will be updated with the joint pose on each frame + const joint = new Group(); + joint.matrixAutoUpdate = false; + joint.visible = false; + this._hand.joints.push( joint ); + // ?? + this._hand.add( joint ); + + } + + } + + } + + return this._hand; + + }, + + getTargetRaySpace: function () { + + if ( this._targetRay === null ) { + + this._targetRay = new Group(); + this._targetRay.matrixAutoUpdate = false; + this._targetRay.visible = false; + + } + + return this._targetRay; + + }, + + getGripSpace: function () { + + if ( this._grip === null ) { + + this._grip = new Group(); + this._grip.matrixAutoUpdate = false; + this._grip.visible = false; + + } + + return this._grip; + + }, + + dispatchEvent: function ( event ) { + + if ( this._targetRay !== null ) { + + this._targetRay.dispatchEvent( event ); + + } + + if ( this._grip !== null ) { + + this._grip.dispatchEvent( event ); + + } + + if ( this._hand !== null ) { + + this._hand.dispatchEvent( event ); + + } + + return this; + + }, + + disconnect: function ( inputSource ) { + + this.dispatchEvent( { type: 'disconnected', data: inputSource } ); + + if ( this._targetRay !== null ) { + + this._targetRay.visible = false; + + } + + if ( this._grip !== null ) { + + this._grip.visible = false; + + } + + if ( this._hand !== null ) { + + this._hand.visible = false; + + } + + return this; + + }, + + update: function ( inputSource, frame, referenceSpace ) { + + let inputPose = null; + let gripPose = null; + let handPose = null; + + const targetRay = this._targetRay; + const grip = this._grip; + const hand = this._hand; + + if ( inputSource ) { + + if ( hand && inputSource.hand ) { + + handPose = true; + + for ( let i = 0; i <= window.XRHand.LITTLE_PHALANX_TIP; i ++ ) { + + if ( inputSource.hand[ i ] ) { + + // Update the joints groups with the XRJoint poses + const jointPose = frame.getJointPose( inputSource.hand[ i ], referenceSpace ); + const joint = hand.joints[ i ]; + + if ( jointPose !== null ) { + + joint.matrix.fromArray( jointPose.transform.matrix ); + joint.matrix.decompose( joint.position, joint.rotation, joint.scale ); + joint.jointRadius = jointPose.radius; + + } + + joint.visible = jointPose !== null; + + // Custom events + + // Check pinch + const indexTip = hand.joints[ window.XRHand.INDEX_PHALANX_TIP ]; + const thumbTip = hand.joints[ window.XRHand.THUMB_PHALANX_TIP ]; + const distance = indexTip.position.distanceTo( thumbTip.position ); + + const distanceToPinch = 0.02; + const threshold = 0.005; + + if ( hand.inputState.pinching && distance > distanceToPinch + threshold ) { + + hand.inputState.pinching = false; + this.dispatchEvent( { + type: "pinchend", + handedness: inputSource.handedness, + target: this + } ); + + } else if ( ! hand.inputState.pinching && distance <= distanceToPinch - threshold ) { + + hand.inputState.pinching = true; + this.dispatchEvent( { + type: "pinchstart", + handedness: inputSource.handedness, + target: this + } ); + + } + + } + + } + + } else { + + if ( targetRay !== null ) { + + inputPose = frame.getPose( inputSource.targetRaySpace, referenceSpace ); + + if ( inputPose !== null ) { + + targetRay.matrix.fromArray( inputPose.transform.matrix ); + targetRay.matrix.decompose( targetRay.position, targetRay.rotation, targetRay.scale ); + + } + + } + + if ( grip !== null && inputSource.gripSpace ) { + + gripPose = frame.getPose( inputSource.gripSpace, referenceSpace ); + + if ( gripPose !== null ) { + + grip.matrix.fromArray( gripPose.transform.matrix ); + grip.matrix.decompose( grip.position, grip.rotation, grip.scale ); + + } + + } + + } + + } + + if ( targetRay !== null ) { + + targetRay.visible = ( inputPose !== null ); + + } + + if ( grip !== null ) { + + grip.visible = ( gripPose !== null ); + + } + + if ( hand !== null ) { + + hand.visible = ( handPose !== null ); + + } + + return this; + + } + +} ); + +function WebXRManager( renderer, gl ) { + + const scope = this; + + let session = null; + + let framebufferScaleFactor = 1.0; + + let referenceSpace = null; + let referenceSpaceType = 'local-floor'; + + let pose = null; + + const controllers = []; + const inputSourcesMap = new Map(); + + // + + const cameraL = new PerspectiveCamera(); + cameraL.layers.enable( 1 ); + cameraL.viewport = new Vector4(); + + const cameraR = new PerspectiveCamera(); + cameraR.layers.enable( 2 ); + cameraR.viewport = new Vector4(); + + const cameras = [ cameraL, cameraR ]; + + const cameraVR = new ArrayCamera(); + cameraVR.layers.enable( 1 ); + cameraVR.layers.enable( 2 ); + + let _currentDepthNear = null; + let _currentDepthFar = null; + + // + + this.enabled = false; + + this.isPresenting = false; + + this.getController = function ( index ) { + + let controller = controllers[ index ]; + + if ( controller === undefined ) { + + controller = new WebXRController(); + controllers[ index ] = controller; + + } + + return controller.getTargetRaySpace(); + + }; + + this.getControllerGrip = function ( index ) { + + let controller = controllers[ index ]; + + if ( controller === undefined ) { + + controller = new WebXRController(); + controllers[ index ] = controller; + + } + + return controller.getGripSpace(); + + }; + + this.getHand = function ( index ) { + + let controller = controllers[ index ]; + + if ( controller === undefined ) { + + controller = new WebXRController(); + controllers[ index ] = controller; + + } + + return controller.getHandSpace(); + + }; + + // + + function onSessionEvent( event ) { + + const controller = inputSourcesMap.get( event.inputSource ); + + if ( controller ) { + + controller.dispatchEvent( { type: event.type, data: event.inputSource } ); + + } + + } + + function onSessionEnd() { + + inputSourcesMap.forEach( function ( controller, inputSource ) { + + controller.disconnect( inputSource ); + + } ); + + inputSourcesMap.clear(); + + // + + renderer.setFramebuffer( null ); + renderer.setRenderTarget( renderer.getRenderTarget() ); // Hack #15830 + animation.stop(); + + scope.isPresenting = false; + + scope.dispatchEvent( { type: 'sessionend' } ); + + } + + function onRequestReferenceSpace( value ) { + + referenceSpace = value; + + animation.setContext( session ); + animation.start(); + + scope.isPresenting = true; + + scope.dispatchEvent( { type: 'sessionstart' } ); + + } + + this.setFramebufferScaleFactor = function ( value ) { + + framebufferScaleFactor = value; + + if ( scope.isPresenting === true ) { + + console.warn( 'THREE.WebXRManager: Cannot change framebuffer scale while presenting.' ); + + } + + }; + + this.setReferenceSpaceType = function ( value ) { + + referenceSpaceType = value; + + if ( scope.isPresenting === true ) { + + console.warn( 'THREE.WebXRManager: Cannot change reference space type while presenting.' ); + + } + + }; + + this.getReferenceSpace = function () { + + return referenceSpace; + + }; + + this.getSession = function () { + + return session; + + }; + + this.setSession = function ( value ) { + + session = value; + + if ( session !== null ) { + + session.addEventListener( 'select', onSessionEvent ); + session.addEventListener( 'selectstart', onSessionEvent ); + session.addEventListener( 'selectend', onSessionEvent ); + session.addEventListener( 'squeeze', onSessionEvent ); + session.addEventListener( 'squeezestart', onSessionEvent ); + session.addEventListener( 'squeezeend', onSessionEvent ); + session.addEventListener( 'end', onSessionEnd ); + + const attributes = gl.getContextAttributes(); + + if ( attributes.xrCompatible !== true ) { + + gl.makeXRCompatible(); + + } + + const layerInit = { + antialias: attributes.antialias, + alpha: attributes.alpha, + depth: attributes.depth, + stencil: attributes.stencil, + framebufferScaleFactor: framebufferScaleFactor + }; + + // eslint-disable-next-line no-undef + const baseLayer = new XRWebGLLayer( session, gl, layerInit ); + + session.updateRenderState( { baseLayer: baseLayer } ); + + session.requestReferenceSpace( referenceSpaceType ).then( onRequestReferenceSpace ); + + // + + session.addEventListener( 'inputsourceschange', updateInputSources ); + + } + + }; + + function updateInputSources( event ) { + + const inputSources = session.inputSources; + + // Assign inputSources to available controllers + + for ( let i = 0; i < controllers.length; i ++ ) { + + inputSourcesMap.set( inputSources[ i ], controllers[ i ] ); + + } + + // Notify disconnected + + for ( let i = 0; i < event.removed.length; i ++ ) { + + const inputSource = event.removed[ i ]; + const controller = inputSourcesMap.get( inputSource ); + + if ( controller ) { + + controller.dispatchEvent( { type: 'disconnected', data: inputSource } ); + inputSourcesMap.delete( inputSource ); + + } + + } + + // Notify connected + + for ( let i = 0; i < event.added.length; i ++ ) { + + const inputSource = event.added[ i ]; + const controller = inputSourcesMap.get( inputSource ); + + if ( controller ) { + + controller.dispatchEvent( { type: 'connected', data: inputSource } ); + + } + + } + + } + + // + + const cameraLPos = new Vector3(); + const cameraRPos = new Vector3(); + + /** + * Assumes 2 cameras that are parallel and share an X-axis, and that + * the cameras' projection and world matrices have already been set. + * And that near and far planes are identical for both cameras. + * Visualization of this technique: https://computergraphics.stackexchange.com/a/4765 + */ + function setProjectionFromUnion( camera, cameraL, cameraR ) { + + cameraLPos.setFromMatrixPosition( cameraL.matrixWorld ); + cameraRPos.setFromMatrixPosition( cameraR.matrixWorld ); + + const ipd = cameraLPos.distanceTo( cameraRPos ); + + const projL = cameraL.projectionMatrix.elements; + const projR = cameraR.projectionMatrix.elements; + + // VR systems will have identical far and near planes, and + // most likely identical top and bottom frustum extents. + // Use the left camera for these values. + const near = projL[ 14 ] / ( projL[ 10 ] - 1 ); + const far = projL[ 14 ] / ( projL[ 10 ] + 1 ); + const topFov = ( projL[ 9 ] + 1 ) / projL[ 5 ]; + const bottomFov = ( projL[ 9 ] - 1 ) / projL[ 5 ]; + + const leftFov = ( projL[ 8 ] - 1 ) / projL[ 0 ]; + const rightFov = ( projR[ 8 ] + 1 ) / projR[ 0 ]; + const left = near * leftFov; + const right = near * rightFov; + + // Calculate the new camera's position offset from the + // left camera. xOffset should be roughly half `ipd`. + const zOffset = ipd / ( - leftFov + rightFov ); + const xOffset = zOffset * - leftFov; + + // TODO: Better way to apply this offset? + cameraL.matrixWorld.decompose( camera.position, camera.quaternion, camera.scale ); + camera.translateX( xOffset ); + camera.translateZ( zOffset ); + camera.matrixWorld.compose( camera.position, camera.quaternion, camera.scale ); + camera.matrixWorldInverse.getInverse( camera.matrixWorld ); + + // Find the union of the frustum values of the cameras and scale + // the values so that the near plane's position does not change in world space, + // although must now be relative to the new union camera. + const near2 = near + zOffset; + const far2 = far + zOffset; + const left2 = left - xOffset; + const right2 = right + ( ipd - xOffset ); + const top2 = topFov * far / far2 * near2; + const bottom2 = bottomFov * far / far2 * near2; + + camera.projectionMatrix.makePerspective( left2, right2, top2, bottom2, near2, far2 ); + + } + + function updateCamera( camera, parent ) { + + if ( parent === null ) { + + camera.matrixWorld.copy( camera.matrix ); + + } else { + + camera.matrixWorld.multiplyMatrices( parent.matrixWorld, camera.matrix ); + + } + + camera.matrixWorldInverse.getInverse( camera.matrixWorld ); + + } + + this.getCamera = function ( camera ) { + + cameraVR.near = cameraR.near = cameraL.near = camera.near; + cameraVR.far = cameraR.far = cameraL.far = camera.far; + + if ( _currentDepthNear !== cameraVR.near || _currentDepthFar !== cameraVR.far ) { + + // Note that the new renderState won't apply until the next frame. See #18320 + + session.updateRenderState( { + depthNear: cameraVR.near, + depthFar: cameraVR.far + } ); + + _currentDepthNear = cameraVR.near; + _currentDepthFar = cameraVR.far; + + } + + const parent = camera.parent; + const cameras = cameraVR.cameras; + + updateCamera( cameraVR, parent ); + + for ( let i = 0; i < cameras.length; i ++ ) { + + updateCamera( cameras[ i ], parent ); + + } + + // update camera and its children + + camera.matrixWorld.copy( cameraVR.matrixWorld ); + + const children = camera.children; + + for ( let i = 0, l = children.length; i < l; i ++ ) { + + children[ i ].updateMatrixWorld( true ); + + } + + // update projection matrix for proper view frustum culling + + if ( cameras.length === 2 ) { + + setProjectionFromUnion( cameraVR, cameraL, cameraR ); + + } else { + + // assume single camera setup (AR) + + cameraVR.projectionMatrix.copy( cameraL.projectionMatrix ); + + } + + return cameraVR; + + }; + + // Animation Loop + + let onAnimationFrameCallback = null; + + function onAnimationFrame( time, frame ) { + + pose = frame.getViewerPose( referenceSpace ); + + if ( pose !== null ) { + + const views = pose.views; + const baseLayer = session.renderState.baseLayer; + + renderer.setFramebuffer( baseLayer.framebuffer ); + + let cameraVRNeedsUpdate = false; + + // check if it's necessary to rebuild cameraVR's camera list + + if ( views.length !== cameraVR.cameras.length ) { + + cameraVR.cameras.length = 0; + cameraVRNeedsUpdate = true; + + } + + for ( let i = 0; i < views.length; i ++ ) { + + const view = views[ i ]; + const viewport = baseLayer.getViewport( view ); + + const camera = cameras[ i ]; + camera.matrix.fromArray( view.transform.matrix ); + camera.projectionMatrix.fromArray( view.projectionMatrix ); + camera.viewport.set( viewport.x, viewport.y, viewport.width, viewport.height ); + + if ( i === 0 ) { + + cameraVR.matrix.copy( camera.matrix ); + + } + + if ( cameraVRNeedsUpdate === true ) { + + cameraVR.cameras.push( camera ); + + } + + } + + } + + // + + const inputSources = session.inputSources; + + for ( let i = 0; i < controllers.length; i ++ ) { + + const controller = controllers[ i ]; + const inputSource = inputSources[ i ]; + + controller.update( inputSource, frame, referenceSpace ); + + } + + if ( onAnimationFrameCallback ) onAnimationFrameCallback( time, frame ); + + } + + const animation = new WebGLAnimation(); + animation.setAnimationLoop( onAnimationFrame ); + + this.setAnimationLoop = function ( callback ) { + + onAnimationFrameCallback = callback; + + }; + + this.dispose = function () {}; + +} + +Object.assign( WebXRManager.prototype, EventDispatcher.prototype ); + +function WebGLMaterials( properties ) { + + function refreshFogUniforms( uniforms, fog ) { + + uniforms.fogColor.value.copy( fog.color ); + + if ( fog.isFog ) { + + uniforms.fogNear.value = fog.near; + uniforms.fogFar.value = fog.far; + + } else if ( fog.isFogExp2 ) { + + uniforms.fogDensity.value = fog.density; + + } + + } + + function refreshMaterialUniforms( uniforms, material, pixelRatio, height ) { + + if ( material.isMeshBasicMaterial ) { + + refreshUniformsCommon( uniforms, material ); + + } else if ( material.isMeshLambertMaterial ) { + + refreshUniformsCommon( uniforms, material ); + refreshUniformsLambert( uniforms, material ); + + } else if ( material.isMeshToonMaterial ) { + + refreshUniformsCommon( uniforms, material ); + refreshUniformsToon( uniforms, material ); + + } else if ( material.isMeshPhongMaterial ) { + + refreshUniformsCommon( uniforms, material ); + refreshUniformsPhong( uniforms, material ); + + } else if ( material.isMeshStandardMaterial ) { + + refreshUniformsCommon( uniforms, material ); + + if ( material.isMeshPhysicalMaterial ) { + + refreshUniformsPhysical( uniforms, material ); + + } else { + + refreshUniformsStandard( uniforms, material ); + + } + + } else if ( material.isMeshMatcapMaterial ) { + + refreshUniformsCommon( uniforms, material ); + refreshUniformsMatcap( uniforms, material ); + + } else if ( material.isMeshDepthMaterial ) { + + refreshUniformsCommon( uniforms, material ); + refreshUniformsDepth( uniforms, material ); + + } else if ( material.isMeshDistanceMaterial ) { + + refreshUniformsCommon( uniforms, material ); + refreshUniformsDistance( uniforms, material ); + + } else if ( material.isMeshNormalMaterial ) { + + refreshUniformsCommon( uniforms, material ); + refreshUniformsNormal( uniforms, material ); + + } else if ( material.isLineBasicMaterial ) { + + refreshUniformsLine( uniforms, material ); + + if ( material.isLineDashedMaterial ) { + + refreshUniformsDash( uniforms, material ); + + } + + } else if ( material.isPointsMaterial ) { + + refreshUniformsPoints( uniforms, material, pixelRatio, height ); + + } else if ( material.isSpriteMaterial ) { + + refreshUniformsSprites( uniforms, material ); + + } else if ( material.isShadowMaterial ) { + + uniforms.color.value.copy( material.color ); + uniforms.opacity.value = material.opacity; + + } else if ( material.isShaderMaterial ) { + + material.uniformsNeedUpdate = false; // #15581 + + } + + } + + function refreshUniformsCommon( uniforms, material ) { + + uniforms.opacity.value = material.opacity; + + if ( material.color ) { + + uniforms.diffuse.value.copy( material.color ); + + } + + if ( material.emissive ) { + + uniforms.emissive.value.copy( material.emissive ).multiplyScalar( material.emissiveIntensity ); + + } + + if ( material.map ) { + + uniforms.map.value = material.map; + + } + + if ( material.alphaMap ) { + + uniforms.alphaMap.value = material.alphaMap; + + } + + if ( material.specularMap ) { + + uniforms.specularMap.value = material.specularMap; + + } + + const envMap = properties.get( material ).envMap; + + if ( envMap ) { + + uniforms.envMap.value = envMap; + + uniforms.flipEnvMap.value = ( envMap.isCubeTexture && envMap._needsFlipEnvMap ) ? - 1 : 1; + + uniforms.reflectivity.value = material.reflectivity; + uniforms.refractionRatio.value = material.refractionRatio; + + const maxMipLevel = properties.get( envMap ).__maxMipLevel; + + if ( maxMipLevel !== undefined ) { + + uniforms.maxMipLevel.value = maxMipLevel; + + } + + } + + if ( material.lightMap ) { + + uniforms.lightMap.value = material.lightMap; + uniforms.lightMapIntensity.value = material.lightMapIntensity; + + } + + if ( material.aoMap ) { + + uniforms.aoMap.value = material.aoMap; + uniforms.aoMapIntensity.value = material.aoMapIntensity; + + } + + // uv repeat and offset setting priorities + // 1. color map + // 2. specular map + // 3. displacementMap map + // 4. normal map + // 5. bump map + // 6. roughnessMap map + // 7. metalnessMap map + // 8. alphaMap map + // 9. emissiveMap map + // 10. clearcoat map + // 11. clearcoat normal map + // 12. clearcoat roughnessMap map + + let uvScaleMap; + + if ( material.map ) { + + uvScaleMap = material.map; + + } else if ( material.specularMap ) { + + uvScaleMap = material.specularMap; + + } else if ( material.displacementMap ) { + + uvScaleMap = material.displacementMap; + + } else if ( material.normalMap ) { + + uvScaleMap = material.normalMap; + + } else if ( material.bumpMap ) { + + uvScaleMap = material.bumpMap; + + } else if ( material.roughnessMap ) { + + uvScaleMap = material.roughnessMap; + + } else if ( material.metalnessMap ) { + + uvScaleMap = material.metalnessMap; + + } else if ( material.alphaMap ) { + + uvScaleMap = material.alphaMap; + + } else if ( material.emissiveMap ) { + + uvScaleMap = material.emissiveMap; + + } else if ( material.clearcoatMap ) { + + uvScaleMap = material.clearcoatMap; + + } else if ( material.clearcoatNormalMap ) { + + uvScaleMap = material.clearcoatNormalMap; + + } else if ( material.clearcoatRoughnessMap ) { + + uvScaleMap = material.clearcoatRoughnessMap; + + } + + if ( uvScaleMap !== undefined ) { + + // backwards compatibility + if ( uvScaleMap.isWebGLRenderTarget ) { + + uvScaleMap = uvScaleMap.texture; + + } + + if ( uvScaleMap.matrixAutoUpdate === true ) { + + uvScaleMap.updateMatrix(); + + } + + uniforms.uvTransform.value.copy( uvScaleMap.matrix ); + + } + + // uv repeat and offset setting priorities for uv2 + // 1. ao map + // 2. light map + + let uv2ScaleMap; + + if ( material.aoMap ) { + + uv2ScaleMap = material.aoMap; + + } else if ( material.lightMap ) { + + uv2ScaleMap = material.lightMap; + + } + + if ( uv2ScaleMap !== undefined ) { + + // backwards compatibility + if ( uv2ScaleMap.isWebGLRenderTarget ) { + + uv2ScaleMap = uv2ScaleMap.texture; + + } + + if ( uv2ScaleMap.matrixAutoUpdate === true ) { + + uv2ScaleMap.updateMatrix(); + + } + + uniforms.uv2Transform.value.copy( uv2ScaleMap.matrix ); + + } + + } + + function refreshUniformsLine( uniforms, material ) { + + uniforms.diffuse.value.copy( material.color ); + uniforms.opacity.value = material.opacity; + + } + + function refreshUniformsDash( uniforms, material ) { + + uniforms.dashSize.value = material.dashSize; + uniforms.totalSize.value = material.dashSize + material.gapSize; + uniforms.scale.value = material.scale; + + } + + function refreshUniformsPoints( uniforms, material, pixelRatio, height ) { + + uniforms.diffuse.value.copy( material.color ); + uniforms.opacity.value = material.opacity; + uniforms.size.value = material.size * pixelRatio; + uniforms.scale.value = height * 0.5; + + if ( material.map ) { + + uniforms.map.value = material.map; + + } + + if ( material.alphaMap ) { + + uniforms.alphaMap.value = material.alphaMap; + + } + + // uv repeat and offset setting priorities + // 1. color map + // 2. alpha map + + let uvScaleMap; + + if ( material.map ) { + + uvScaleMap = material.map; + + } else if ( material.alphaMap ) { + + uvScaleMap = material.alphaMap; + + } + + if ( uvScaleMap !== undefined ) { + + if ( uvScaleMap.matrixAutoUpdate === true ) { + + uvScaleMap.updateMatrix(); + + } + + uniforms.uvTransform.value.copy( uvScaleMap.matrix ); + + } + + } + + function refreshUniformsSprites( uniforms, material ) { + + uniforms.diffuse.value.copy( material.color ); + uniforms.opacity.value = material.opacity; + uniforms.rotation.value = material.rotation; + + if ( material.map ) { + + uniforms.map.value = material.map; + + } + + if ( material.alphaMap ) { + + uniforms.alphaMap.value = material.alphaMap; + + } + + // uv repeat and offset setting priorities + // 1. color map + // 2. alpha map + + let uvScaleMap; + + if ( material.map ) { + + uvScaleMap = material.map; + + } else if ( material.alphaMap ) { + + uvScaleMap = material.alphaMap; + + } + + if ( uvScaleMap !== undefined ) { + + if ( uvScaleMap.matrixAutoUpdate === true ) { + + uvScaleMap.updateMatrix(); + + } + + uniforms.uvTransform.value.copy( uvScaleMap.matrix ); + + } + + } + + function refreshUniformsLambert( uniforms, material ) { + + if ( material.emissiveMap ) { + + uniforms.emissiveMap.value = material.emissiveMap; + + } + + } + + function refreshUniformsPhong( uniforms, material ) { + + uniforms.specular.value.copy( material.specular ); + uniforms.shininess.value = Math.max( material.shininess, 1e-4 ); // to prevent pow( 0.0, 0.0 ) + + if ( material.emissiveMap ) { + + uniforms.emissiveMap.value = material.emissiveMap; + + } + + if ( material.bumpMap ) { + + uniforms.bumpMap.value = material.bumpMap; + uniforms.bumpScale.value = material.bumpScale; + if ( material.side === BackSide ) uniforms.bumpScale.value *= - 1; + + } + + if ( material.normalMap ) { + + uniforms.normalMap.value = material.normalMap; + uniforms.normalScale.value.copy( material.normalScale ); + if ( material.side === BackSide ) uniforms.normalScale.value.negate(); + + } + + if ( material.displacementMap ) { + + uniforms.displacementMap.value = material.displacementMap; + uniforms.displacementScale.value = material.displacementScale; + uniforms.displacementBias.value = material.displacementBias; + + } + + } + + function refreshUniformsToon( uniforms, material ) { + + if ( material.gradientMap ) { + + uniforms.gradientMap.value = material.gradientMap; + + } + + if ( material.emissiveMap ) { + + uniforms.emissiveMap.value = material.emissiveMap; + + } + + if ( material.bumpMap ) { + + uniforms.bumpMap.value = material.bumpMap; + uniforms.bumpScale.value = material.bumpScale; + if ( material.side === BackSide ) uniforms.bumpScale.value *= - 1; + + } + + if ( material.normalMap ) { + + uniforms.normalMap.value = material.normalMap; + uniforms.normalScale.value.copy( material.normalScale ); + if ( material.side === BackSide ) uniforms.normalScale.value.negate(); + + } + + if ( material.displacementMap ) { + + uniforms.displacementMap.value = material.displacementMap; + uniforms.displacementScale.value = material.displacementScale; + uniforms.displacementBias.value = material.displacementBias; + + } + + } + + function refreshUniformsStandard( uniforms, material ) { + + uniforms.roughness.value = material.roughness; + uniforms.metalness.value = material.metalness; + + if ( material.roughnessMap ) { + + uniforms.roughnessMap.value = material.roughnessMap; + + } + + if ( material.metalnessMap ) { + + uniforms.metalnessMap.value = material.metalnessMap; + + } + + if ( material.emissiveMap ) { + + uniforms.emissiveMap.value = material.emissiveMap; + + } + + if ( material.bumpMap ) { + + uniforms.bumpMap.value = material.bumpMap; + uniforms.bumpScale.value = material.bumpScale; + if ( material.side === BackSide ) uniforms.bumpScale.value *= - 1; + + } + + if ( material.normalMap ) { + + uniforms.normalMap.value = material.normalMap; + uniforms.normalScale.value.copy( material.normalScale ); + if ( material.side === BackSide ) uniforms.normalScale.value.negate(); + + } + + if ( material.displacementMap ) { + + uniforms.displacementMap.value = material.displacementMap; + uniforms.displacementScale.value = material.displacementScale; + uniforms.displacementBias.value = material.displacementBias; + + } + + const envMap = properties.get( material ).envMap; + + if ( envMap ) { + + //uniforms.envMap.value = material.envMap; // part of uniforms common + uniforms.envMapIntensity.value = material.envMapIntensity; + + } + + } + + function refreshUniformsPhysical( uniforms, material ) { + + refreshUniformsStandard( uniforms, material ); + + uniforms.reflectivity.value = material.reflectivity; // also part of uniforms common + + uniforms.clearcoat.value = material.clearcoat; + uniforms.clearcoatRoughness.value = material.clearcoatRoughness; + if ( material.sheen ) uniforms.sheen.value.copy( material.sheen ); + + if ( material.clearcoatMap ) { + + uniforms.clearcoatMap.value = material.clearcoatMap; + + } + + if ( material.clearcoatRoughnessMap ) { + + uniforms.clearcoatRoughnessMap.value = material.clearcoatRoughnessMap; + + } + + if ( material.clearcoatNormalMap ) { + + uniforms.clearcoatNormalScale.value.copy( material.clearcoatNormalScale ); + uniforms.clearcoatNormalMap.value = material.clearcoatNormalMap; + + if ( material.side === BackSide ) { + + uniforms.clearcoatNormalScale.value.negate(); + + } + + } + + uniforms.transmission.value = material.transmission; + + if ( material.transmissionMap ) { + + uniforms.transmissionMap.value = material.transmissionMap; + + } + + } + + function refreshUniformsMatcap( uniforms, material ) { + + if ( material.matcap ) { + + uniforms.matcap.value = material.matcap; + + } + + if ( material.bumpMap ) { + + uniforms.bumpMap.value = material.bumpMap; + uniforms.bumpScale.value = material.bumpScale; + if ( material.side === BackSide ) uniforms.bumpScale.value *= - 1; + + } + + if ( material.normalMap ) { + + uniforms.normalMap.value = material.normalMap; + uniforms.normalScale.value.copy( material.normalScale ); + if ( material.side === BackSide ) uniforms.normalScale.value.negate(); + + } + + if ( material.displacementMap ) { + + uniforms.displacementMap.value = material.displacementMap; + uniforms.displacementScale.value = material.displacementScale; + uniforms.displacementBias.value = material.displacementBias; + + } + + } + + function refreshUniformsDepth( uniforms, material ) { + + if ( material.displacementMap ) { + + uniforms.displacementMap.value = material.displacementMap; + uniforms.displacementScale.value = material.displacementScale; + uniforms.displacementBias.value = material.displacementBias; + + } + + } + + function refreshUniformsDistance( uniforms, material ) { + + if ( material.displacementMap ) { + + uniforms.displacementMap.value = material.displacementMap; + uniforms.displacementScale.value = material.displacementScale; + uniforms.displacementBias.value = material.displacementBias; + + } + + uniforms.referencePosition.value.copy( material.referencePosition ); + uniforms.nearDistance.value = material.nearDistance; + uniforms.farDistance.value = material.farDistance; + + } + + function refreshUniformsNormal( uniforms, material ) { + + if ( material.bumpMap ) { + + uniforms.bumpMap.value = material.bumpMap; + uniforms.bumpScale.value = material.bumpScale; + if ( material.side === BackSide ) uniforms.bumpScale.value *= - 1; + + } + + if ( material.normalMap ) { + + uniforms.normalMap.value = material.normalMap; + uniforms.normalScale.value.copy( material.normalScale ); + if ( material.side === BackSide ) uniforms.normalScale.value.negate(); + + } + + if ( material.displacementMap ) { + + uniforms.displacementMap.value = material.displacementMap; + uniforms.displacementScale.value = material.displacementScale; + uniforms.displacementBias.value = material.displacementBias; + + } + + } + + return { + refreshFogUniforms: refreshFogUniforms, + refreshMaterialUniforms: refreshMaterialUniforms + }; + +} + +function WebGLRenderer( parameters ) { + + parameters = parameters || {}; + + const _canvas = parameters.canvas !== undefined ? parameters.canvas : document.createElementNS( 'http://www.w3.org/1999/xhtml', 'canvas' ), + _context = parameters.context !== undefined ? parameters.context : null, + + _alpha = parameters.alpha !== undefined ? parameters.alpha : false, + _depth = parameters.depth !== undefined ? parameters.depth : true, + _stencil = parameters.stencil !== undefined ? parameters.stencil : true, + _antialias = parameters.antialias !== undefined ? parameters.antialias : false, + _premultipliedAlpha = parameters.premultipliedAlpha !== undefined ? parameters.premultipliedAlpha : true, + _preserveDrawingBuffer = parameters.preserveDrawingBuffer !== undefined ? parameters.preserveDrawingBuffer : false, + _powerPreference = parameters.powerPreference !== undefined ? parameters.powerPreference : 'default', + _failIfMajorPerformanceCaveat = parameters.failIfMajorPerformanceCaveat !== undefined ? parameters.failIfMajorPerformanceCaveat : false; + + let currentRenderList = null; + let currentRenderState = null; + + // public properties + + this.domElement = _canvas; + + // Debug configuration container + this.debug = { + + /** + * Enables error checking and reporting when shader programs are being compiled + * @type {boolean} + */ + checkShaderErrors: true + }; + + // clearing + + this.autoClear = true; + this.autoClearColor = true; + this.autoClearDepth = true; + this.autoClearStencil = true; + + // scene graph + + this.sortObjects = true; + + // user-defined clipping + + this.clippingPlanes = []; + this.localClippingEnabled = false; + + // physically based shading + + this.gammaFactor = 2.0; // for backwards compatibility + this.outputEncoding = LinearEncoding; + + // physical lights + + this.physicallyCorrectLights = false; + + // tone mapping + + this.toneMapping = NoToneMapping; + this.toneMappingExposure = 1.0; + + // morphs + + this.maxMorphTargets = 8; + this.maxMorphNormals = 4; + + // internal properties + + const _this = this; + + let _isContextLost = false; + + // internal state cache + + let _framebuffer = null; + + let _currentActiveCubeFace = 0; + let _currentActiveMipmapLevel = 0; + let _currentRenderTarget = null; + let _currentFramebuffer = null; + let _currentMaterialId = - 1; + + let _currentCamera = null; + let _currentArrayCamera = null; + + const _currentViewport = new Vector4(); + const _currentScissor = new Vector4(); + let _currentScissorTest = null; + + // + + let _width = _canvas.width; + let _height = _canvas.height; + + let _pixelRatio = 1; + let _opaqueSort = null; + let _transparentSort = null; + + const _viewport = new Vector4( 0, 0, _width, _height ); + const _scissor = new Vector4( 0, 0, _width, _height ); + let _scissorTest = false; + + // frustum + + const _frustum = new Frustum(); + + // clipping + + let _clippingEnabled = false; + let _localClippingEnabled = false; + + // camera matrices cache + + const _projScreenMatrix = new Matrix4(); + + const _vector3 = new Vector3(); + + const _emptyScene = { background: null, fog: null, environment: null, overrideMaterial: null, isScene: true }; + + function getTargetPixelRatio() { + + return _currentRenderTarget === null ? _pixelRatio : 1; + + } + + // initialize + + let _gl = _context; + + function getContext( contextNames, contextAttributes ) { + + for ( let i = 0; i < contextNames.length; i ++ ) { + + const contextName = contextNames[ i ]; + const context = _canvas.getContext( contextName, contextAttributes ); + if ( context !== null ) return context; + + } + + return null; + + } + + try { + + const contextAttributes = { + alpha: _alpha, + depth: _depth, + stencil: _stencil, + antialias: _antialias, + premultipliedAlpha: _premultipliedAlpha, + preserveDrawingBuffer: _preserveDrawingBuffer, + powerPreference: _powerPreference, + failIfMajorPerformanceCaveat: _failIfMajorPerformanceCaveat + }; + + // event listeners must be registered before WebGL context is created, see #12753 + + _canvas.addEventListener( 'webglcontextlost', onContextLost, false ); + _canvas.addEventListener( 'webglcontextrestored', onContextRestore, false ); + + if ( _gl === null ) { + + const contextNames = [ 'webgl2', 'webgl', 'experimental-webgl' ]; + + if ( _this.isWebGL1Renderer === true ) { + + contextNames.shift(); + + } + + _gl = getContext( contextNames, contextAttributes ); + + if ( _gl === null ) { + + if ( getContext( contextNames ) ) { + + throw new Error( 'Error creating WebGL context with your selected attributes.' ); + + } else { + + throw new Error( 'Error creating WebGL context.' ); + + } + + } + + } + + // Some experimental-webgl implementations do not have getShaderPrecisionFormat + + if ( _gl.getShaderPrecisionFormat === undefined ) { + + _gl.getShaderPrecisionFormat = function () { + + return { 'rangeMin': 1, 'rangeMax': 1, 'precision': 1 }; + + }; + + } + + } catch ( error ) { + + console.error( 'THREE.WebGLRenderer: ' + error.message ); + throw error; + + } + + let extensions, capabilities, state, info; + let properties, textures, cubemaps, attributes, geometries, objects; + let programCache, materials, renderLists, renderStates, clipping; + + let background, morphtargets, bufferRenderer, indexedBufferRenderer; + + let utils, bindingStates; + + function initGLContext() { + + extensions = new WebGLExtensions( _gl ); + + capabilities = new WebGLCapabilities( _gl, extensions, parameters ); + + if ( capabilities.isWebGL2 === false ) { + + extensions.get( 'WEBGL_depth_texture' ); + extensions.get( 'OES_texture_float' ); + extensions.get( 'OES_texture_half_float' ); + extensions.get( 'OES_texture_half_float_linear' ); + extensions.get( 'OES_standard_derivatives' ); + extensions.get( 'OES_element_index_uint' ); + extensions.get( 'OES_vertex_array_object' ); + extensions.get( 'ANGLE_instanced_arrays' ); + + } + + extensions.get( 'OES_texture_float_linear' ); + + utils = new WebGLUtils( _gl, extensions, capabilities ); + + state = new WebGLState( _gl, extensions, capabilities ); + state.scissor( _currentScissor.copy( _scissor ).multiplyScalar( _pixelRatio ).floor() ); + state.viewport( _currentViewport.copy( _viewport ).multiplyScalar( _pixelRatio ).floor() ); + + info = new WebGLInfo( _gl ); + properties = new WebGLProperties(); + textures = new WebGLTextures( _gl, extensions, state, properties, capabilities, utils, info ); + cubemaps = new WebGLCubeMaps( _this ); + attributes = new WebGLAttributes( _gl, capabilities ); + bindingStates = new WebGLBindingStates( _gl, extensions, attributes, capabilities ); + geometries = new WebGLGeometries( _gl, attributes, info, bindingStates ); + objects = new WebGLObjects( _gl, geometries, attributes, info ); + morphtargets = new WebGLMorphtargets( _gl ); + clipping = new WebGLClipping( properties ); + programCache = new WebGLPrograms( _this, cubemaps, extensions, capabilities, bindingStates, clipping ); + materials = new WebGLMaterials( properties ); + renderLists = new WebGLRenderLists( properties ); + renderStates = new WebGLRenderStates(); + background = new WebGLBackground( _this, cubemaps, state, objects, _premultipliedAlpha ); + + bufferRenderer = new WebGLBufferRenderer( _gl, extensions, info, capabilities ); + indexedBufferRenderer = new WebGLIndexedBufferRenderer( _gl, extensions, info, capabilities ); + + info.programs = programCache.programs; + + _this.capabilities = capabilities; + _this.extensions = extensions; + _this.properties = properties; + _this.renderLists = renderLists; + _this.state = state; + _this.info = info; + + } + + initGLContext(); + + // xr + + const xr = new WebXRManager( _this, _gl ); + + this.xr = xr; + + // shadow map + + const shadowMap = new WebGLShadowMap( _this, objects, capabilities.maxTextureSize ); + + this.shadowMap = shadowMap; + + // API + + this.getContext = function () { + + return _gl; + + }; + + this.getContextAttributes = function () { + + return _gl.getContextAttributes(); + + }; + + this.forceContextLoss = function () { + + const extension = extensions.get( 'WEBGL_lose_context' ); + if ( extension ) extension.loseContext(); + + }; + + this.forceContextRestore = function () { + + const extension = extensions.get( 'WEBGL_lose_context' ); + if ( extension ) extension.restoreContext(); + + }; + + this.getPixelRatio = function () { + + return _pixelRatio; + + }; + + this.setPixelRatio = function ( value ) { + + if ( value === undefined ) return; + + _pixelRatio = value; + + this.setSize( _width, _height, false ); + + }; + + this.getSize = function ( target ) { + + if ( target === undefined ) { + + console.warn( 'WebGLRenderer: .getsize() now requires a Vector2 as an argument' ); + + target = new Vector2(); + + } + + return target.set( _width, _height ); + + }; + + this.setSize = function ( width, height, updateStyle ) { + + if ( xr.isPresenting ) { + + console.warn( 'THREE.WebGLRenderer: Can\'t change size while VR device is presenting.' ); + return; + + } + + _width = width; + _height = height; + + _canvas.width = Math.floor( width * _pixelRatio ); + _canvas.height = Math.floor( height * _pixelRatio ); + + if ( updateStyle !== false ) { + + _canvas.style.width = width + 'px'; + _canvas.style.height = height + 'px'; + + } + + this.setViewport( 0, 0, width, height ); + + }; + + this.getDrawingBufferSize = function ( target ) { + + if ( target === undefined ) { + + console.warn( 'WebGLRenderer: .getdrawingBufferSize() now requires a Vector2 as an argument' ); + + target = new Vector2(); + + } + + return target.set( _width * _pixelRatio, _height * _pixelRatio ).floor(); + + }; + + this.setDrawingBufferSize = function ( width, height, pixelRatio ) { + + _width = width; + _height = height; + + _pixelRatio = pixelRatio; + + _canvas.width = Math.floor( width * pixelRatio ); + _canvas.height = Math.floor( height * pixelRatio ); + + this.setViewport( 0, 0, width, height ); + + }; + + this.getCurrentViewport = function ( target ) { + + if ( target === undefined ) { + + console.warn( 'WebGLRenderer: .getCurrentViewport() now requires a Vector4 as an argument' ); + + target = new Vector4(); + + } + + return target.copy( _currentViewport ); + + }; + + this.getViewport = function ( target ) { + + return target.copy( _viewport ); + + }; + + this.setViewport = function ( x, y, width, height ) { + + if ( x.isVector4 ) { + + _viewport.set( x.x, x.y, x.z, x.w ); + + } else { + + _viewport.set( x, y, width, height ); + + } + + state.viewport( _currentViewport.copy( _viewport ).multiplyScalar( _pixelRatio ).floor() ); + + }; + + this.getScissor = function ( target ) { + + return target.copy( _scissor ); + + }; + + this.setScissor = function ( x, y, width, height ) { + + if ( x.isVector4 ) { + + _scissor.set( x.x, x.y, x.z, x.w ); + + } else { + + _scissor.set( x, y, width, height ); + + } + + state.scissor( _currentScissor.copy( _scissor ).multiplyScalar( _pixelRatio ).floor() ); + + }; + + this.getScissorTest = function () { + + return _scissorTest; + + }; + + this.setScissorTest = function ( boolean ) { + + state.setScissorTest( _scissorTest = boolean ); + + }; + + this.setOpaqueSort = function ( method ) { + + _opaqueSort = method; + + }; + + this.setTransparentSort = function ( method ) { + + _transparentSort = method; + + }; + + // Clearing + + this.getClearColor = function () { + + return background.getClearColor(); + + }; + + this.setClearColor = function () { + + background.setClearColor.apply( background, arguments ); + + }; + + this.getClearAlpha = function () { + + return background.getClearAlpha(); + + }; + + this.setClearAlpha = function () { + + background.setClearAlpha.apply( background, arguments ); + + }; + + this.clear = function ( color, depth, stencil ) { + + let bits = 0; + + if ( color === undefined || color ) bits |= 16384; + if ( depth === undefined || depth ) bits |= 256; + if ( stencil === undefined || stencil ) bits |= 1024; + + _gl.clear( bits ); + + }; + + this.clearColor = function () { + + this.clear( true, false, false ); + + }; + + this.clearDepth = function () { + + this.clear( false, true, false ); + + }; + + this.clearStencil = function () { + + this.clear( false, false, true ); + + }; + + // + + this.dispose = function () { + + _canvas.removeEventListener( 'webglcontextlost', onContextLost, false ); + _canvas.removeEventListener( 'webglcontextrestored', onContextRestore, false ); + + renderLists.dispose(); + renderStates.dispose(); + properties.dispose(); + cubemaps.dispose(); + objects.dispose(); + bindingStates.dispose(); + + xr.dispose(); + + animation.stop(); + + }; + + // Events + + function onContextLost( event ) { + + event.preventDefault(); + + console.log( 'THREE.WebGLRenderer: Context Lost.' ); + + _isContextLost = true; + + } + + function onContextRestore( /* event */ ) { + + console.log( 'THREE.WebGLRenderer: Context Restored.' ); + + _isContextLost = false; + + initGLContext(); + + } + + function onMaterialDispose( event ) { + + const material = event.target; + + material.removeEventListener( 'dispose', onMaterialDispose ); + + deallocateMaterial( material ); + + } + + // Buffer deallocation + + function deallocateMaterial( material ) { + + releaseMaterialProgramReference( material ); + + properties.remove( material ); + + } + + + function releaseMaterialProgramReference( material ) { + + const programInfo = properties.get( material ).program; + + if ( programInfo !== undefined ) { + + programCache.releaseProgram( programInfo ); + + } + + } + + // Buffer rendering + + function renderObjectImmediate( object, program ) { + + object.render( function ( object ) { + + _this.renderBufferImmediate( object, program ); + + } ); + + } + + this.renderBufferImmediate = function ( object, program ) { + + bindingStates.initAttributes(); + + const buffers = properties.get( object ); + + if ( object.hasPositions && ! buffers.position ) buffers.position = _gl.createBuffer(); + if ( object.hasNormals && ! buffers.normal ) buffers.normal = _gl.createBuffer(); + if ( object.hasUvs && ! buffers.uv ) buffers.uv = _gl.createBuffer(); + if ( object.hasColors && ! buffers.color ) buffers.color = _gl.createBuffer(); + + const programAttributes = program.getAttributes(); + + if ( object.hasPositions ) { + + _gl.bindBuffer( 34962, buffers.position ); + _gl.bufferData( 34962, object.positionArray, 35048 ); + + bindingStates.enableAttribute( programAttributes.position ); + _gl.vertexAttribPointer( programAttributes.position, 3, 5126, false, 0, 0 ); + + } + + if ( object.hasNormals ) { + + _gl.bindBuffer( 34962, buffers.normal ); + _gl.bufferData( 34962, object.normalArray, 35048 ); + + bindingStates.enableAttribute( programAttributes.normal ); + _gl.vertexAttribPointer( programAttributes.normal, 3, 5126, false, 0, 0 ); + + } + + if ( object.hasUvs ) { + + _gl.bindBuffer( 34962, buffers.uv ); + _gl.bufferData( 34962, object.uvArray, 35048 ); + + bindingStates.enableAttribute( programAttributes.uv ); + _gl.vertexAttribPointer( programAttributes.uv, 2, 5126, false, 0, 0 ); + + } + + if ( object.hasColors ) { + + _gl.bindBuffer( 34962, buffers.color ); + _gl.bufferData( 34962, object.colorArray, 35048 ); + + bindingStates.enableAttribute( programAttributes.color ); + _gl.vertexAttribPointer( programAttributes.color, 3, 5126, false, 0, 0 ); + + } + + bindingStates.disableUnusedAttributes(); + + _gl.drawArrays( 4, 0, object.count ); + + object.count = 0; + + }; + + this.renderBufferDirect = function ( camera, scene, geometry, material, object, group ) { + + if ( scene === null ) scene = _emptyScene; // renderBufferDirect second parameter used to be fog (could be null) + + const frontFaceCW = ( object.isMesh && object.matrixWorld.determinant() < 0 ); + + const program = setProgram( camera, scene, material, object ); + + state.setMaterial( material, frontFaceCW ); + + // + + let index = geometry.index; + const position = geometry.attributes.position; + + // + + if ( index === null ) { + + if ( position === undefined || position.count === 0 ) return; + + } else if ( index.count === 0 ) { + + return; + + } + + // + + let rangeFactor = 1; + + if ( material.wireframe === true ) { + + index = geometries.getWireframeAttribute( geometry ); + rangeFactor = 2; + + } + + if ( material.morphTargets || material.morphNormals ) { + + morphtargets.update( object, geometry, material, program ); + + } + + bindingStates.setup( object, material, program, geometry, index ); + + let attribute; + let renderer = bufferRenderer; + + if ( index !== null ) { + + attribute = attributes.get( index ); + + renderer = indexedBufferRenderer; + renderer.setIndex( attribute ); + + } + + // + + const dataCount = ( index !== null ) ? index.count : position.count; + + const rangeStart = geometry.drawRange.start * rangeFactor; + const rangeCount = geometry.drawRange.count * rangeFactor; + + const groupStart = group !== null ? group.start * rangeFactor : 0; + const groupCount = group !== null ? group.count * rangeFactor : Infinity; + + const drawStart = Math.max( rangeStart, groupStart ); + const drawEnd = Math.min( dataCount, rangeStart + rangeCount, groupStart + groupCount ) - 1; + + const drawCount = Math.max( 0, drawEnd - drawStart + 1 ); + + if ( drawCount === 0 ) return; + + // + + if ( object.isMesh ) { + + if ( material.wireframe === true ) { + + state.setLineWidth( material.wireframeLinewidth * getTargetPixelRatio() ); + renderer.setMode( 1 ); + + } else { + + renderer.setMode( 4 ); + + } + + } else if ( object.isLine ) { + + let lineWidth = material.linewidth; + + if ( lineWidth === undefined ) lineWidth = 1; // Not using Line*Material + + state.setLineWidth( lineWidth * getTargetPixelRatio() ); + + if ( object.isLineSegments ) { + + renderer.setMode( 1 ); + + } else if ( object.isLineLoop ) { + + renderer.setMode( 2 ); + + } else { + + renderer.setMode( 3 ); + + } + + } else if ( object.isPoints ) { + + renderer.setMode( 0 ); + + } else if ( object.isSprite ) { + + renderer.setMode( 4 ); + + } + + if ( object.isInstancedMesh ) { + + renderer.renderInstances( drawStart, drawCount, object.count ); + + } else if ( geometry.isInstancedBufferGeometry ) { + + const instanceCount = Math.min( geometry.instanceCount, geometry._maxInstanceCount ); + + renderer.renderInstances( drawStart, drawCount, instanceCount ); + + } else { + + renderer.render( drawStart, drawCount ); + + } + + }; + + // Compile + + this.compile = function ( scene, camera ) { + + currentRenderState = renderStates.get( scene, camera ); + currentRenderState.init(); + + scene.traverseVisible( function ( object ) { + + if ( object.isLight && object.layers.test( camera.layers ) ) { + + currentRenderState.pushLight( object ); + + if ( object.castShadow ) { + + currentRenderState.pushShadow( object ); + + } + + } + + } ); + + currentRenderState.setupLights( camera ); + + const compiled = new WeakMap(); + + scene.traverse( function ( object ) { + + const material = object.material; + + if ( material ) { + + if ( Array.isArray( material ) ) { + + for ( let i = 0; i < material.length; i ++ ) { + + const material2 = material[ i ]; + + if ( compiled.has( material2 ) === false ) { + + initMaterial( material2, scene, object ); + compiled.set( material2 ); + + } + + } + + } else if ( compiled.has( material ) === false ) { + + initMaterial( material, scene, object ); + compiled.set( material ); + + } + + } + + } ); + + }; + + // Animation Loop + + let onAnimationFrameCallback = null; + + function onAnimationFrame( time ) { + + if ( xr.isPresenting ) return; + if ( onAnimationFrameCallback ) onAnimationFrameCallback( time ); + + } + + const animation = new WebGLAnimation(); + animation.setAnimationLoop( onAnimationFrame ); + + if ( typeof window !== 'undefined' ) animation.setContext( window ); + + this.setAnimationLoop = function ( callback ) { + + onAnimationFrameCallback = callback; + xr.setAnimationLoop( callback ); + + ( callback === null ) ? animation.stop() : animation.start(); + + }; + + // Rendering + + this.render = function ( scene, camera ) { + + let renderTarget, forceClear; + + if ( arguments[ 2 ] !== undefined ) { + + console.warn( 'THREE.WebGLRenderer.render(): the renderTarget argument has been removed. Use .setRenderTarget() instead.' ); + renderTarget = arguments[ 2 ]; + + } + + if ( arguments[ 3 ] !== undefined ) { + + console.warn( 'THREE.WebGLRenderer.render(): the forceClear argument has been removed. Use .clear() instead.' ); + forceClear = arguments[ 3 ]; + + } + + if ( camera !== undefined && camera.isCamera !== true ) { + + console.error( 'THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.' ); + return; + + } + + if ( _isContextLost === true ) return; + + // reset caching for this frame + + bindingStates.resetDefaultState(); + _currentMaterialId = - 1; + _currentCamera = null; + + // update scene graph + + if ( scene.autoUpdate === true ) scene.updateMatrixWorld(); + + // update camera matrices and frustum + + if ( camera.parent === null ) camera.updateMatrixWorld(); + + if ( xr.enabled === true && xr.isPresenting === true ) { + + camera = xr.getCamera( camera ); + + } + + // + if ( scene.isScene === true ) scene.onBeforeRender( _this, scene, camera, renderTarget || _currentRenderTarget ); + + currentRenderState = renderStates.get( scene, camera ); + currentRenderState.init(); + + _projScreenMatrix.multiplyMatrices( camera.projectionMatrix, camera.matrixWorldInverse ); + _frustum.setFromProjectionMatrix( _projScreenMatrix ); + + _localClippingEnabled = this.localClippingEnabled; + _clippingEnabled = clipping.init( this.clippingPlanes, _localClippingEnabled, camera ); + + currentRenderList = renderLists.get( scene, camera ); + currentRenderList.init(); + + projectObject( scene, camera, 0, _this.sortObjects ); + + currentRenderList.finish(); + + if ( _this.sortObjects === true ) { + + currentRenderList.sort( _opaqueSort, _transparentSort ); + + } + + // + + if ( _clippingEnabled === true ) clipping.beginShadows(); + + const shadowsArray = currentRenderState.state.shadowsArray; + + shadowMap.render( shadowsArray, scene, camera ); + + currentRenderState.setupLights( camera ); + + if ( _clippingEnabled === true ) clipping.endShadows(); + + // + + if ( this.info.autoReset === true ) this.info.reset(); + + if ( renderTarget !== undefined ) { + + this.setRenderTarget( renderTarget ); + + } + + // + + background.render( currentRenderList, scene, camera, forceClear ); + + // render scene + + const opaqueObjects = currentRenderList.opaque; + const transparentObjects = currentRenderList.transparent; + + if ( opaqueObjects.length > 0 ) renderObjects( opaqueObjects, scene, camera ); + if ( transparentObjects.length > 0 ) renderObjects( transparentObjects, scene, camera ); + + // + + if ( scene.isScene === true ) scene.onAfterRender( _this, scene, camera ); + + // + + if ( _currentRenderTarget !== null ) { + + // Generate mipmap if we're using any kind of mipmap filtering + + textures.updateRenderTargetMipmap( _currentRenderTarget ); + + // resolve multisample renderbuffers to a single-sample texture if necessary + + textures.updateMultisampleRenderTarget( _currentRenderTarget ); + + } + + // Ensure depth buffer writing is enabled so it can be cleared on next render + + state.buffers.depth.setTest( true ); + state.buffers.depth.setMask( true ); + state.buffers.color.setMask( true ); + + state.setPolygonOffset( false ); + + // _gl.finish(); + + currentRenderList = null; + currentRenderState = null; + + }; + + function projectObject( object, camera, groupOrder, sortObjects ) { + + if ( object.visible === false ) return; + + const visible = object.layers.test( camera.layers ); + + if ( visible ) { + + if ( object.isGroup ) { + + groupOrder = object.renderOrder; + + } else if ( object.isLOD ) { + + if ( object.autoUpdate === true ) object.update( camera ); + + } else if ( object.isLight ) { + + currentRenderState.pushLight( object ); + + if ( object.castShadow ) { + + currentRenderState.pushShadow( object ); + + } + + } else if ( object.isSprite ) { + + if ( ! object.frustumCulled || _frustum.intersectsSprite( object ) ) { + + if ( sortObjects ) { + + _vector3.setFromMatrixPosition( object.matrixWorld ) + .applyMatrix4( _projScreenMatrix ); + + } + + const geometry = objects.update( object ); + const material = object.material; + + if ( material.visible ) { + + currentRenderList.push( object, geometry, material, groupOrder, _vector3.z, null ); + + } + + } + + } else if ( object.isImmediateRenderObject ) { + + if ( sortObjects ) { + + _vector3.setFromMatrixPosition( object.matrixWorld ) + .applyMatrix4( _projScreenMatrix ); + + } + + currentRenderList.push( object, null, object.material, groupOrder, _vector3.z, null ); + + } else if ( object.isMesh || object.isLine || object.isPoints ) { + + if ( object.isSkinnedMesh ) { + + // update skeleton only once in a frame + + if ( object.skeleton.frame !== info.render.frame ) { + + object.skeleton.update(); + object.skeleton.frame = info.render.frame; + + } + + } + + if ( ! object.frustumCulled || _frustum.intersectsObject( object ) ) { + + if ( sortObjects ) { + + _vector3.setFromMatrixPosition( object.matrixWorld ) + .applyMatrix4( _projScreenMatrix ); + + } + + const geometry = objects.update( object ); + const material = object.material; + + if ( Array.isArray( material ) ) { + + const groups = geometry.groups; + + for ( let i = 0, l = groups.length; i < l; i ++ ) { + + const group = groups[ i ]; + const groupMaterial = material[ group.materialIndex ]; + + if ( groupMaterial && groupMaterial.visible ) { + + currentRenderList.push( object, geometry, groupMaterial, groupOrder, _vector3.z, group ); + + } + + } + + } else if ( material.visible ) { + + currentRenderList.push( object, geometry, material, groupOrder, _vector3.z, null ); + + } + + } + + } + + } + + const children = object.children; + + for ( let i = 0, l = children.length; i < l; i ++ ) { + + projectObject( children[ i ], camera, groupOrder, sortObjects ); + + } + + } + + function renderObjects( renderList, scene, camera ) { + + const overrideMaterial = scene.isScene === true ? scene.overrideMaterial : null; + + for ( let i = 0, l = renderList.length; i < l; i ++ ) { + + const renderItem = renderList[ i ]; + + const object = renderItem.object; + const geometry = renderItem.geometry; + const material = overrideMaterial === null ? renderItem.material : overrideMaterial; + const group = renderItem.group; + + if ( camera.isArrayCamera ) { + + _currentArrayCamera = camera; + + const cameras = camera.cameras; + + for ( let j = 0, jl = cameras.length; j < jl; j ++ ) { + + const camera2 = cameras[ j ]; + + if ( object.layers.test( camera2.layers ) ) { + + state.viewport( _currentViewport.copy( camera2.viewport ) ); + + currentRenderState.setupLights( camera2 ); + + renderObject( object, scene, camera2, geometry, material, group ); + + } + + } + + } else { + + _currentArrayCamera = null; + + renderObject( object, scene, camera, geometry, material, group ); + + } + + } + + } + + function renderObject( object, scene, camera, geometry, material, group ) { + + object.onBeforeRender( _this, scene, camera, geometry, material, group ); + currentRenderState = renderStates.get( scene, _currentArrayCamera || camera ); + + object.modelViewMatrix.multiplyMatrices( camera.matrixWorldInverse, object.matrixWorld ); + object.normalMatrix.getNormalMatrix( object.modelViewMatrix ); + + if ( object.isImmediateRenderObject ) { + + const program = setProgram( camera, scene, material, object ); + + state.setMaterial( material ); + + bindingStates.reset(); + + renderObjectImmediate( object, program ); + + } else { + + _this.renderBufferDirect( camera, scene, geometry, material, object, group ); + + } + + object.onAfterRender( _this, scene, camera, geometry, material, group ); + currentRenderState = renderStates.get( scene, _currentArrayCamera || camera ); + + } + + function initMaterial( material, scene, object ) { + + if ( scene.isScene !== true ) scene = _emptyScene; // scene could be a Mesh, Line, Points, ... + + const materialProperties = properties.get( material ); + + const lights = currentRenderState.state.lights; + const shadowsArray = currentRenderState.state.shadowsArray; + + const lightsStateVersion = lights.state.version; + + const parameters = programCache.getParameters( material, lights.state, shadowsArray, scene, object ); + const programCacheKey = programCache.getProgramCacheKey( parameters ); + + let program = materialProperties.program; + let programChange = true; + + if ( program === undefined ) { + + // new material + material.addEventListener( 'dispose', onMaterialDispose ); + + } else if ( program.cacheKey !== programCacheKey ) { + + // changed glsl or parameters + releaseMaterialProgramReference( material ); + + } else if ( materialProperties.lightsStateVersion !== lightsStateVersion ) { + + programChange = false; + + } else if ( parameters.shaderID !== undefined ) { + + // same glsl and uniform list, envMap still needs the update here to avoid a frame-late effect + + const environment = material.isMeshStandardMaterial ? scene.environment : null; + materialProperties.envMap = cubemaps.get( material.envMap || environment ); + + return; + + } else { + + // only rebuild uniform list + programChange = false; + + } + + if ( programChange ) { + + parameters.uniforms = programCache.getUniforms( material ); + + material.onBeforeCompile( parameters, _this ); + + program = programCache.acquireProgram( parameters, programCacheKey ); + + materialProperties.program = program; + materialProperties.uniforms = parameters.uniforms; + materialProperties.outputEncoding = parameters.outputEncoding; + + } + + const uniforms = materialProperties.uniforms; + + if ( ! material.isShaderMaterial && + ! material.isRawShaderMaterial || + material.clipping === true ) { + + materialProperties.numClippingPlanes = clipping.numPlanes; + materialProperties.numIntersection = clipping.numIntersection; + uniforms.clippingPlanes = clipping.uniform; + + } + + materialProperties.environment = material.isMeshStandardMaterial ? scene.environment : null; + materialProperties.fog = scene.fog; + materialProperties.envMap = cubemaps.get( material.envMap || materialProperties.environment ); + + // store the light setup it was created for + + materialProperties.needsLights = materialNeedsLights( material ); + materialProperties.lightsStateVersion = lightsStateVersion; + + if ( materialProperties.needsLights ) { + + // wire up the material to this renderer's lighting state + + uniforms.ambientLightColor.value = lights.state.ambient; + uniforms.lightProbe.value = lights.state.probe; + uniforms.directionalLights.value = lights.state.directional; + uniforms.directionalLightShadows.value = lights.state.directionalShadow; + uniforms.spotLights.value = lights.state.spot; + uniforms.spotLightShadows.value = lights.state.spotShadow; + uniforms.rectAreaLights.value = lights.state.rectArea; + uniforms.ltc_1.value = lights.state.rectAreaLTC1; + uniforms.ltc_2.value = lights.state.rectAreaLTC2; + uniforms.pointLights.value = lights.state.point; + uniforms.pointLightShadows.value = lights.state.pointShadow; + uniforms.hemisphereLights.value = lights.state.hemi; + + uniforms.directionalShadowMap.value = lights.state.directionalShadowMap; + uniforms.directionalShadowMatrix.value = lights.state.directionalShadowMatrix; + uniforms.spotShadowMap.value = lights.state.spotShadowMap; + uniforms.spotShadowMatrix.value = lights.state.spotShadowMatrix; + uniforms.pointShadowMap.value = lights.state.pointShadowMap; + uniforms.pointShadowMatrix.value = lights.state.pointShadowMatrix; + // TODO (abelnation): add area lights shadow info to uniforms + + } + + const progUniforms = materialProperties.program.getUniforms(); + const uniformsList = WebGLUniforms.seqWithValue( progUniforms.seq, uniforms ); + + materialProperties.uniformsList = uniformsList; + + } + + function setProgram( camera, scene, material, object ) { + + if ( scene.isScene !== true ) scene = _emptyScene; // scene could be a Mesh, Line, Points, ... + + textures.resetTextureUnits(); + + const fog = scene.fog; + const environment = material.isMeshStandardMaterial ? scene.environment : null; + const encoding = ( _currentRenderTarget === null ) ? _this.outputEncoding : _currentRenderTarget.texture.encoding; + const envMap = cubemaps.get( material.envMap || environment ); + + const materialProperties = properties.get( material ); + const lights = currentRenderState.state.lights; + + if ( _clippingEnabled === true ) { + + if ( _localClippingEnabled === true || camera !== _currentCamera ) { + + const useCache = + camera === _currentCamera && + material.id === _currentMaterialId; + + // we might want to call this function with some ClippingGroup + // object instead of the material, once it becomes feasible + // (#8465, #8379) + clipping.setState( material, camera, useCache ); + + } + + } + + if ( material.version === materialProperties.__version ) { + + if ( material.fog && materialProperties.fog !== fog ) { + + initMaterial( material, scene, object ); + + } else if ( materialProperties.environment !== environment ) { + + initMaterial( material, scene, object ); + + } else if ( materialProperties.needsLights && ( materialProperties.lightsStateVersion !== lights.state.version ) ) { + + initMaterial( material, scene, object ); + + } else if ( materialProperties.numClippingPlanes !== undefined && + ( materialProperties.numClippingPlanes !== clipping.numPlanes || + materialProperties.numIntersection !== clipping.numIntersection ) ) { + + initMaterial( material, scene, object ); + + } else if ( materialProperties.outputEncoding !== encoding ) { + + initMaterial( material, scene, object ); + + } else if ( materialProperties.envMap !== envMap ) { + + initMaterial( material, scene, object ); + + } + + } else { + + initMaterial( material, scene, object ); + materialProperties.__version = material.version; + + } + + let refreshProgram = false; + let refreshMaterial = false; + let refreshLights = false; + + const program = materialProperties.program, + p_uniforms = program.getUniforms(), + m_uniforms = materialProperties.uniforms; + + if ( state.useProgram( program.program ) ) { + + refreshProgram = true; + refreshMaterial = true; + refreshLights = true; + + } + + if ( material.id !== _currentMaterialId ) { + + _currentMaterialId = material.id; + + refreshMaterial = true; + + } + + if ( refreshProgram || _currentCamera !== camera ) { + + p_uniforms.setValue( _gl, 'projectionMatrix', camera.projectionMatrix ); + + if ( capabilities.logarithmicDepthBuffer ) { + + p_uniforms.setValue( _gl, 'logDepthBufFC', + 2.0 / ( Math.log( camera.far + 1.0 ) / Math.LN2 ) ); + + } + + if ( _currentCamera !== camera ) { + + _currentCamera = camera; + + // lighting uniforms depend on the camera so enforce an update + // now, in case this material supports lights - or later, when + // the next material that does gets activated: + + refreshMaterial = true; // set to true on material change + refreshLights = true; // remains set until update done + + } + + // load material specific uniforms + // (shader material also gets them for the sake of genericity) + + if ( material.isShaderMaterial || + material.isMeshPhongMaterial || + material.isMeshToonMaterial || + material.isMeshStandardMaterial || + material.envMap ) { + + const uCamPos = p_uniforms.map.cameraPosition; + + if ( uCamPos !== undefined ) { + + uCamPos.setValue( _gl, + _vector3.setFromMatrixPosition( camera.matrixWorld ) ); + + } + + } + + if ( material.isMeshPhongMaterial || + material.isMeshToonMaterial || + material.isMeshLambertMaterial || + material.isMeshBasicMaterial || + material.isMeshStandardMaterial || + material.isShaderMaterial ) { + + p_uniforms.setValue( _gl, 'isOrthographic', camera.isOrthographicCamera === true ); + + } + + if ( material.isMeshPhongMaterial || + material.isMeshToonMaterial || + material.isMeshLambertMaterial || + material.isMeshBasicMaterial || + material.isMeshStandardMaterial || + material.isShaderMaterial || + material.isShadowMaterial || + material.skinning ) { + + p_uniforms.setValue( _gl, 'viewMatrix', camera.matrixWorldInverse ); + + } + + } + + // skinning uniforms must be set even if material didn't change + // auto-setting of texture unit for bone texture must go before other textures + // otherwise textures used for skinning can take over texture units reserved for other material textures + + if ( material.skinning ) { + + p_uniforms.setOptional( _gl, object, 'bindMatrix' ); + p_uniforms.setOptional( _gl, object, 'bindMatrixInverse' ); + + const skeleton = object.skeleton; + + if ( skeleton ) { + + const bones = skeleton.bones; + + if ( capabilities.floatVertexTextures ) { + + if ( skeleton.boneTexture === undefined ) { + + // layout (1 matrix = 4 pixels) + // RGBA RGBA RGBA RGBA (=> column1, column2, column3, column4) + // with 8x8 pixel texture max 16 bones * 4 pixels = (8 * 8) + // 16x16 pixel texture max 64 bones * 4 pixels = (16 * 16) + // 32x32 pixel texture max 256 bones * 4 pixels = (32 * 32) + // 64x64 pixel texture max 1024 bones * 4 pixels = (64 * 64) + + + let size = Math.sqrt( bones.length * 4 ); // 4 pixels needed for 1 matrix + size = MathUtils.ceilPowerOfTwo( size ); + size = Math.max( size, 4 ); + + const boneMatrices = new Float32Array( size * size * 4 ); // 4 floats per RGBA pixel + boneMatrices.set( skeleton.boneMatrices ); // copy current values + + const boneTexture = new DataTexture( boneMatrices, size, size, RGBAFormat, FloatType ); + + skeleton.boneMatrices = boneMatrices; + skeleton.boneTexture = boneTexture; + skeleton.boneTextureSize = size; + + } + + p_uniforms.setValue( _gl, 'boneTexture', skeleton.boneTexture, textures ); + p_uniforms.setValue( _gl, 'boneTextureSize', skeleton.boneTextureSize ); + + } else { + + p_uniforms.setOptional( _gl, skeleton, 'boneMatrices' ); + + } + + } + + } + + if ( refreshMaterial || materialProperties.receiveShadow !== object.receiveShadow ) { + + materialProperties.receiveShadow = object.receiveShadow; + p_uniforms.setValue( _gl, 'receiveShadow', object.receiveShadow ); + + } + + if ( refreshMaterial ) { + + p_uniforms.setValue( _gl, 'toneMappingExposure', _this.toneMappingExposure ); + + if ( materialProperties.needsLights ) { + + // the current material requires lighting info + + // note: all lighting uniforms are always set correctly + // they simply reference the renderer's state for their + // values + // + // use the current material's .needsUpdate flags to set + // the GL state when required + + markUniformsLightsNeedsUpdate( m_uniforms, refreshLights ); + + } + + // refresh uniforms common to several materials + + if ( fog && material.fog ) { + + materials.refreshFogUniforms( m_uniforms, fog ); + + } + + materials.refreshMaterialUniforms( m_uniforms, material, _pixelRatio, _height ); + + WebGLUniforms.upload( _gl, materialProperties.uniformsList, m_uniforms, textures ); + + } + + if ( material.isShaderMaterial && material.uniformsNeedUpdate === true ) { + + WebGLUniforms.upload( _gl, materialProperties.uniformsList, m_uniforms, textures ); + material.uniformsNeedUpdate = false; + + } + + if ( material.isSpriteMaterial ) { + + p_uniforms.setValue( _gl, 'center', object.center ); + + } + + // common matrices + + p_uniforms.setValue( _gl, 'modelViewMatrix', object.modelViewMatrix ); + p_uniforms.setValue( _gl, 'normalMatrix', object.normalMatrix ); + p_uniforms.setValue( _gl, 'modelMatrix', object.matrixWorld ); + + return program; + + } + + // If uniforms are marked as clean, they don't need to be loaded to the GPU. + + function markUniformsLightsNeedsUpdate( uniforms, value ) { + + uniforms.ambientLightColor.needsUpdate = value; + uniforms.lightProbe.needsUpdate = value; + + uniforms.directionalLights.needsUpdate = value; + uniforms.directionalLightShadows.needsUpdate = value; + uniforms.pointLights.needsUpdate = value; + uniforms.pointLightShadows.needsUpdate = value; + uniforms.spotLights.needsUpdate = value; + uniforms.spotLightShadows.needsUpdate = value; + uniforms.rectAreaLights.needsUpdate = value; + uniforms.hemisphereLights.needsUpdate = value; + + } + + function materialNeedsLights( material ) { + + return material.isMeshLambertMaterial || material.isMeshToonMaterial || material.isMeshPhongMaterial || + material.isMeshStandardMaterial || material.isShadowMaterial || + ( material.isShaderMaterial && material.lights === true ); + + } + + // + this.setFramebuffer = function ( value ) { + + if ( _framebuffer !== value && _currentRenderTarget === null ) _gl.bindFramebuffer( 36160, value ); + + _framebuffer = value; + + }; + + this.getActiveCubeFace = function () { + + return _currentActiveCubeFace; + + }; + + this.getActiveMipmapLevel = function () { + + return _currentActiveMipmapLevel; + + }; + + this.getRenderList = function () { + + return currentRenderList; + + }; + + this.setRenderList = function ( renderList ) { + + currentRenderList = renderList; + + }; + + this.getRenderState = function () { + + return currentRenderState; + + }; + + this.setRenderState = function ( renderState ) { + + currentRenderState = renderState; + + }; + + this.getRenderTarget = function () { + + return _currentRenderTarget; + + }; + + this.setRenderTarget = function ( renderTarget, activeCubeFace = 0, activeMipmapLevel = 0 ) { + + _currentRenderTarget = renderTarget; + _currentActiveCubeFace = activeCubeFace; + _currentActiveMipmapLevel = activeMipmapLevel; + + if ( renderTarget && properties.get( renderTarget ).__webglFramebuffer === undefined ) { + + textures.setupRenderTarget( renderTarget ); + + } + + let framebuffer = _framebuffer; + let isCube = false; + + if ( renderTarget ) { + + const __webglFramebuffer = properties.get( renderTarget ).__webglFramebuffer; + + if ( renderTarget.isWebGLCubeRenderTarget ) { + + framebuffer = __webglFramebuffer[ activeCubeFace ]; + isCube = true; + + } else if ( renderTarget.isWebGLMultisampleRenderTarget ) { + + framebuffer = properties.get( renderTarget ).__webglMultisampledFramebuffer; + + } else { + + framebuffer = __webglFramebuffer; + + } + + _currentViewport.copy( renderTarget.viewport ); + _currentScissor.copy( renderTarget.scissor ); + _currentScissorTest = renderTarget.scissorTest; + + } else { + + _currentViewport.copy( _viewport ).multiplyScalar( _pixelRatio ).floor(); + _currentScissor.copy( _scissor ).multiplyScalar( _pixelRatio ).floor(); + _currentScissorTest = _scissorTest; + + } + + if ( _currentFramebuffer !== framebuffer ) { + + _gl.bindFramebuffer( 36160, framebuffer ); + _currentFramebuffer = framebuffer; + + } + + state.viewport( _currentViewport ); + state.scissor( _currentScissor ); + state.setScissorTest( _currentScissorTest ); + + if ( isCube ) { + + const textureProperties = properties.get( renderTarget.texture ); + _gl.framebufferTexture2D( 36160, 36064, 34069 + activeCubeFace, textureProperties.__webglTexture, activeMipmapLevel ); + + } + + }; + + this.readRenderTargetPixels = function ( renderTarget, x, y, width, height, buffer, activeCubeFaceIndex ) { + + if ( ! ( renderTarget && renderTarget.isWebGLRenderTarget ) ) { + + console.error( 'THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.' ); + return; + + } + + let framebuffer = properties.get( renderTarget ).__webglFramebuffer; + + if ( renderTarget.isWebGLCubeRenderTarget && activeCubeFaceIndex !== undefined ) { + + framebuffer = framebuffer[ activeCubeFaceIndex ]; + + } + + if ( framebuffer ) { + + let restore = false; + + if ( framebuffer !== _currentFramebuffer ) { + + _gl.bindFramebuffer( 36160, framebuffer ); + + restore = true; + + } + + try { + + const texture = renderTarget.texture; + const textureFormat = texture.format; + const textureType = texture.type; + + if ( textureFormat !== RGBAFormat && utils.convert( textureFormat ) !== _gl.getParameter( 35739 ) ) { + + console.error( 'THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.' ); + return; + + } + + if ( textureType !== UnsignedByteType && utils.convert( textureType ) !== _gl.getParameter( 35738 ) && // IE11, Edge and Chrome Mac < 52 (#9513) + ! ( textureType === FloatType && ( capabilities.isWebGL2 || extensions.get( 'OES_texture_float' ) || extensions.get( 'WEBGL_color_buffer_float' ) ) ) && // Chrome Mac >= 52 and Firefox + ! ( textureType === HalfFloatType && ( capabilities.isWebGL2 ? extensions.get( 'EXT_color_buffer_float' ) : extensions.get( 'EXT_color_buffer_half_float' ) ) ) ) { + + console.error( 'THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.' ); + return; + + } + + if ( _gl.checkFramebufferStatus( 36160 ) === 36053 ) { + + // the following if statement ensures valid read requests (no out-of-bounds pixels, see #8604) + + if ( ( x >= 0 && x <= ( renderTarget.width - width ) ) && ( y >= 0 && y <= ( renderTarget.height - height ) ) ) { + + _gl.readPixels( x, y, width, height, utils.convert( textureFormat ), utils.convert( textureType ), buffer ); + + } + + } else { + + console.error( 'THREE.WebGLRenderer.readRenderTargetPixels: readPixels from renderTarget failed. Framebuffer not complete.' ); + + } + + } finally { + + if ( restore ) { + + _gl.bindFramebuffer( 36160, _currentFramebuffer ); + + } + + } + + } + + }; + + this.copyFramebufferToTexture = function ( position, texture, level ) { + + if ( level === undefined ) level = 0; + + const levelScale = Math.pow( 2, - level ); + const width = Math.floor( texture.image.width * levelScale ); + const height = Math.floor( texture.image.height * levelScale ); + const glFormat = utils.convert( texture.format ); + + textures.setTexture2D( texture, 0 ); + + _gl.copyTexImage2D( 3553, level, glFormat, position.x, position.y, width, height, 0 ); + + state.unbindTexture(); + + }; + + this.copyTextureToTexture = function ( position, srcTexture, dstTexture, level ) { + + if ( level === undefined ) level = 0; + + const width = srcTexture.image.width; + const height = srcTexture.image.height; + const glFormat = utils.convert( dstTexture.format ); + const glType = utils.convert( dstTexture.type ); + + textures.setTexture2D( dstTexture, 0 ); + + // As another texture upload may have changed pixelStorei + // parameters, make sure they are correct for the dstTexture + _gl.pixelStorei( 37440, dstTexture.flipY ); + _gl.pixelStorei( 37441, dstTexture.premultiplyAlpha ); + _gl.pixelStorei( 3317, dstTexture.unpackAlignment ); + + if ( srcTexture.isDataTexture ) { + + _gl.texSubImage2D( 3553, level, position.x, position.y, width, height, glFormat, glType, srcTexture.image.data ); + + } else { + + if ( srcTexture.isCompressedTexture ) { + + _gl.compressedTexSubImage2D( 3553, level, position.x, position.y, srcTexture.mipmaps[ 0 ].width, srcTexture.mipmaps[ 0 ].height, glFormat, srcTexture.mipmaps[ 0 ].data ); + + } else { + + _gl.texSubImage2D( 3553, level, position.x, position.y, glFormat, glType, srcTexture.image ); + + } + + } + + // Generate mipmaps only when copying level 0 + if ( level === 0 && dstTexture.generateMipmaps ) _gl.generateMipmap( 3553 ); + + state.unbindTexture(); + + }; + + this.initTexture = function ( texture ) { + + textures.setTexture2D( texture, 0 ); + + state.unbindTexture(); + + }; + + if ( typeof __THREE_DEVTOOLS__ !== 'undefined' ) { + + __THREE_DEVTOOLS__.dispatchEvent( new CustomEvent( 'observe', { detail: this } ) ); // eslint-disable-line no-undef + + } + +} + +function WebGL1Renderer( parameters ) { + + WebGLRenderer.call( this, parameters ); + +} + +WebGL1Renderer.prototype = Object.assign( Object.create( WebGLRenderer.prototype ), { + + constructor: WebGL1Renderer, + + isWebGL1Renderer: true + +} ); + +class FogExp2 { + + constructor( color, density ) { + + Object.defineProperty( this, 'isFogExp2', { value: true } ); + + this.name = ''; + + this.color = new Color( color ); + this.density = ( density !== undefined ) ? density : 0.00025; + + } + + clone() { + + return new FogExp2( this.color, this.density ); + + } + + toJSON( /* meta */ ) { + + return { + type: 'FogExp2', + color: this.color.getHex(), + density: this.density + }; + + } + +} + +class Fog { + + constructor( color, near, far ) { + + Object.defineProperty( this, 'isFog', { value: true } ); + + this.name = ''; + + this.color = new Color( color ); + + this.near = ( near !== undefined ) ? near : 1; + this.far = ( far !== undefined ) ? far : 1000; + + } + + clone() { + + return new Fog( this.color, this.near, this.far ); + + } + + toJSON( /* meta */ ) { + + return { + type: 'Fog', + color: this.color.getHex(), + near: this.near, + far: this.far + }; + + } + +} + +class Scene extends Object3D { + + constructor() { + + super(); + + Object.defineProperty( this, 'isScene', { value: true } ); + + this.type = 'Scene'; + + this.background = null; + this.environment = null; + this.fog = null; + + this.overrideMaterial = null; + + this.autoUpdate = true; // checked by the renderer + + if ( typeof __THREE_DEVTOOLS__ !== 'undefined' ) { + + __THREE_DEVTOOLS__.dispatchEvent( new CustomEvent( 'observe', { detail: this } ) ); // eslint-disable-line no-undef + + } + + } + + copy( source, recursive ) { + + super.copy( source, recursive ); + + if ( source.background !== null ) this.background = source.background.clone(); + if ( source.environment !== null ) this.environment = source.environment.clone(); + if ( source.fog !== null ) this.fog = source.fog.clone(); + + if ( source.overrideMaterial !== null ) this.overrideMaterial = source.overrideMaterial.clone(); + + this.autoUpdate = source.autoUpdate; + this.matrixAutoUpdate = source.matrixAutoUpdate; + + return this; + + } + + toJSON( meta ) { + + const data = super.toJSON( meta ); + + if ( this.background !== null ) data.object.background = this.background.toJSON( meta ); + if ( this.environment !== null ) data.object.environment = this.environment.toJSON( meta ); + if ( this.fog !== null ) data.object.fog = this.fog.toJSON(); + + return data; + + } + +} + +function InterleavedBuffer( array, stride ) { + + this.array = array; + this.stride = stride; + this.count = array !== undefined ? array.length / stride : 0; + + this.usage = StaticDrawUsage; + this.updateRange = { offset: 0, count: - 1 }; + + this.version = 0; + + this.uuid = MathUtils.generateUUID(); + +} + +Object.defineProperty( InterleavedBuffer.prototype, 'needsUpdate', { + + set: function ( value ) { + + if ( value === true ) this.version ++; + + } + +} ); + +Object.assign( InterleavedBuffer.prototype, { + + isInterleavedBuffer: true, + + onUploadCallback: function () {}, + + setUsage: function ( value ) { + + this.usage = value; + + return this; + + }, + + copy: function ( source ) { + + this.array = new source.array.constructor( source.array ); + this.count = source.count; + this.stride = source.stride; + this.usage = source.usage; + + return this; + + }, + + copyAt: function ( index1, attribute, index2 ) { + + index1 *= this.stride; + index2 *= attribute.stride; + + for ( let i = 0, l = this.stride; i < l; i ++ ) { + + this.array[ index1 + i ] = attribute.array[ index2 + i ]; + + } + + return this; + + }, + + set: function ( value, offset ) { + + if ( offset === undefined ) offset = 0; + + this.array.set( value, offset ); + + return this; + + }, + + clone: function ( data ) { + + if ( data.arrayBuffers === undefined ) { + + data.arrayBuffers = {}; + + } + + if ( this.array.buffer._uuid === undefined ) { + + this.array.buffer._uuid = MathUtils.generateUUID(); + + } + + if ( data.arrayBuffers[ this.array.buffer._uuid ] === undefined ) { + + data.arrayBuffers[ this.array.buffer._uuid ] = this.array.slice( 0 ).buffer; + + } + + const array = new this.array.constructor( data.arrayBuffers[ this.array.buffer._uuid ] ); + + const ib = new InterleavedBuffer( array, this.stride ); + ib.setUsage( this.usage ); + + return ib; + + }, + + onUpload: function ( callback ) { + + this.onUploadCallback = callback; + + return this; + + }, + + toJSON: function ( data ) { + + if ( data.arrayBuffers === undefined ) { + + data.arrayBuffers = {}; + + } + + // generate UUID for array buffer if necessary + + if ( this.array.buffer._uuid === undefined ) { + + this.array.buffer._uuid = MathUtils.generateUUID(); + + } + + if ( data.arrayBuffers[ this.array.buffer._uuid ] === undefined ) { + + data.arrayBuffers[ this.array.buffer._uuid ] = Array.prototype.slice.call( new Uint32Array( this.array.buffer ) ); + + } + + // + + return { + uuid: this.uuid, + buffer: this.array.buffer._uuid, + type: this.array.constructor.name, + stride: this.stride + }; + + } + +} ); + +const _vector$6 = new Vector3(); + +function InterleavedBufferAttribute( interleavedBuffer, itemSize, offset, normalized ) { + + this.name = ''; + + this.data = interleavedBuffer; + this.itemSize = itemSize; + this.offset = offset; + + this.normalized = normalized === true; + +} + +Object.defineProperties( InterleavedBufferAttribute.prototype, { + + count: { + + get: function () { + + return this.data.count; + + } + + }, + + array: { + + get: function () { + + return this.data.array; + + } + + }, + + needsUpdate: { + + set: function ( value ) { + + this.data.needsUpdate = value; + + } + + } + +} ); + +Object.assign( InterleavedBufferAttribute.prototype, { + + isInterleavedBufferAttribute: true, + + applyMatrix4: function ( m ) { + + for ( let i = 0, l = this.data.count; i < l; i ++ ) { + + _vector$6.x = this.getX( i ); + _vector$6.y = this.getY( i ); + _vector$6.z = this.getZ( i ); + + _vector$6.applyMatrix4( m ); + + this.setXYZ( i, _vector$6.x, _vector$6.y, _vector$6.z ); + + } + + return this; + + }, + + setX: function ( index, x ) { + + this.data.array[ index * this.data.stride + this.offset ] = x; + + return this; + + }, + + setY: function ( index, y ) { + + this.data.array[ index * this.data.stride + this.offset + 1 ] = y; + + return this; + + }, + + setZ: function ( index, z ) { + + this.data.array[ index * this.data.stride + this.offset + 2 ] = z; + + return this; + + }, + + setW: function ( index, w ) { + + this.data.array[ index * this.data.stride + this.offset + 3 ] = w; + + return this; + + }, + + getX: function ( index ) { + + return this.data.array[ index * this.data.stride + this.offset ]; + + }, + + getY: function ( index ) { + + return this.data.array[ index * this.data.stride + this.offset + 1 ]; + + }, + + getZ: function ( index ) { + + return this.data.array[ index * this.data.stride + this.offset + 2 ]; + + }, + + getW: function ( index ) { + + return this.data.array[ index * this.data.stride + this.offset + 3 ]; + + }, + + setXY: function ( index, x, y ) { + + index = index * this.data.stride + this.offset; + + this.data.array[ index + 0 ] = x; + this.data.array[ index + 1 ] = y; + + return this; + + }, + + setXYZ: function ( index, x, y, z ) { + + index = index * this.data.stride + this.offset; + + this.data.array[ index + 0 ] = x; + this.data.array[ index + 1 ] = y; + this.data.array[ index + 2 ] = z; + + return this; + + }, + + setXYZW: function ( index, x, y, z, w ) { + + index = index * this.data.stride + this.offset; + + this.data.array[ index + 0 ] = x; + this.data.array[ index + 1 ] = y; + this.data.array[ index + 2 ] = z; + this.data.array[ index + 3 ] = w; + + return this; + + }, + + clone: function ( data ) { + + if ( data === undefined ) { + + console.log( 'THREE.InterleavedBufferAttribute.clone(): Cloning an interlaved buffer attribute will deinterleave buffer data.' ); + + const array = []; + + for ( let i = 0; i < this.count; i ++ ) { + + const index = i * this.data.stride + this.offset; + + for ( let j = 0; j < this.itemSize; j ++ ) { + + array.push( this.data.array[ index + j ] ); + + } + + } + + return new BufferAttribute( new this.array.constructor( array ), this.itemSize, this.normalized ); + + } else { + + if ( data.interleavedBuffers === undefined ) { + + data.interleavedBuffers = {}; + + } + + if ( data.interleavedBuffers[ this.data.uuid ] === undefined ) { + + data.interleavedBuffers[ this.data.uuid ] = this.data.clone( data ); + + } + + return new InterleavedBufferAttribute( data.interleavedBuffers[ this.data.uuid ], this.itemSize, this.offset, this.normalized ); + + } + + }, + + toJSON: function ( data ) { + + if ( data === undefined ) { + + console.log( 'THREE.InterleavedBufferAttribute.toJSON(): Serializing an interlaved buffer attribute will deinterleave buffer data.' ); + + const array = []; + + for ( let i = 0; i < this.count; i ++ ) { + + const index = i * this.data.stride + this.offset; + + for ( let j = 0; j < this.itemSize; j ++ ) { + + array.push( this.data.array[ index + j ] ); + + } + + } + + // deinterleave data and save it as an ordinary buffer attribute for now + + return { + itemSize: this.itemSize, + type: this.array.constructor.name, + array: array, + normalized: this.normalized + }; + + } else { + + // save as true interlaved attribtue + + if ( data.interleavedBuffers === undefined ) { + + data.interleavedBuffers = {}; + + } + + if ( data.interleavedBuffers[ this.data.uuid ] === undefined ) { + + data.interleavedBuffers[ this.data.uuid ] = this.data.toJSON( data ); + + } + + return { + isInterleavedBufferAttribute: true, + itemSize: this.itemSize, + data: this.data.uuid, + offset: this.offset, + normalized: this.normalized + }; + + } + + } + +} ); + +/** + * parameters = { + * color: , + * map: new THREE.Texture( ), + * alphaMap: new THREE.Texture( ), + * rotation: , + * sizeAttenuation: + * } + */ + +function SpriteMaterial( parameters ) { + + Material.call( this ); + + this.type = 'SpriteMaterial'; + + this.color = new Color( 0xffffff ); + + this.map = null; + + this.alphaMap = null; + + this.rotation = 0; + + this.sizeAttenuation = true; + + this.transparent = true; + + this.setValues( parameters ); + +} + +SpriteMaterial.prototype = Object.create( Material.prototype ); +SpriteMaterial.prototype.constructor = SpriteMaterial; +SpriteMaterial.prototype.isSpriteMaterial = true; + +SpriteMaterial.prototype.copy = function ( source ) { + + Material.prototype.copy.call( this, source ); + + this.color.copy( source.color ); + + this.map = source.map; + + this.alphaMap = source.alphaMap; + + this.rotation = source.rotation; + + this.sizeAttenuation = source.sizeAttenuation; + + return this; + +}; + +let _geometry; + +const _intersectPoint = new Vector3(); +const _worldScale = new Vector3(); +const _mvPosition = new Vector3(); + +const _alignedPosition = new Vector2(); +const _rotatedPosition = new Vector2(); +const _viewWorldMatrix = new Matrix4(); + +const _vA$1 = new Vector3(); +const _vB$1 = new Vector3(); +const _vC$1 = new Vector3(); + +const _uvA$1 = new Vector2(); +const _uvB$1 = new Vector2(); +const _uvC$1 = new Vector2(); + +function Sprite( material ) { + + Object3D.call( this ); + + this.type = 'Sprite'; + + if ( _geometry === undefined ) { + + _geometry = new BufferGeometry(); + + const float32Array = new Float32Array( [ + - 0.5, - 0.5, 0, 0, 0, + 0.5, - 0.5, 0, 1, 0, + 0.5, 0.5, 0, 1, 1, + - 0.5, 0.5, 0, 0, 1 + ] ); + + const interleavedBuffer = new InterleavedBuffer( float32Array, 5 ); + + _geometry.setIndex( [ 0, 1, 2, 0, 2, 3 ] ); + _geometry.setAttribute( 'position', new InterleavedBufferAttribute( interleavedBuffer, 3, 0, false ) ); + _geometry.setAttribute( 'uv', new InterleavedBufferAttribute( interleavedBuffer, 2, 3, false ) ); + + } + + this.geometry = _geometry; + this.material = ( material !== undefined ) ? material : new SpriteMaterial(); + + this.center = new Vector2( 0.5, 0.5 ); + +} + +Sprite.prototype = Object.assign( Object.create( Object3D.prototype ), { + + constructor: Sprite, + + isSprite: true, + + raycast: function ( raycaster, intersects ) { + + if ( raycaster.camera === null ) { + + console.error( 'THREE.Sprite: "Raycaster.camera" needs to be set in order to raycast against sprites.' ); + + } + + _worldScale.setFromMatrixScale( this.matrixWorld ); + + _viewWorldMatrix.copy( raycaster.camera.matrixWorld ); + this.modelViewMatrix.multiplyMatrices( raycaster.camera.matrixWorldInverse, this.matrixWorld ); + + _mvPosition.setFromMatrixPosition( this.modelViewMatrix ); + + if ( raycaster.camera.isPerspectiveCamera && this.material.sizeAttenuation === false ) { + + _worldScale.multiplyScalar( - _mvPosition.z ); + + } + + const rotation = this.material.rotation; + let sin, cos; + + if ( rotation !== 0 ) { + + cos = Math.cos( rotation ); + sin = Math.sin( rotation ); + + } + + const center = this.center; + + transformVertex( _vA$1.set( - 0.5, - 0.5, 0 ), _mvPosition, center, _worldScale, sin, cos ); + transformVertex( _vB$1.set( 0.5, - 0.5, 0 ), _mvPosition, center, _worldScale, sin, cos ); + transformVertex( _vC$1.set( 0.5, 0.5, 0 ), _mvPosition, center, _worldScale, sin, cos ); + + _uvA$1.set( 0, 0 ); + _uvB$1.set( 1, 0 ); + _uvC$1.set( 1, 1 ); + + // check first triangle + let intersect = raycaster.ray.intersectTriangle( _vA$1, _vB$1, _vC$1, false, _intersectPoint ); + + if ( intersect === null ) { + + // check second triangle + transformVertex( _vB$1.set( - 0.5, 0.5, 0 ), _mvPosition, center, _worldScale, sin, cos ); + _uvB$1.set( 0, 1 ); + + intersect = raycaster.ray.intersectTriangle( _vA$1, _vC$1, _vB$1, false, _intersectPoint ); + if ( intersect === null ) { + + return; + + } + + } + + const distance = raycaster.ray.origin.distanceTo( _intersectPoint ); + + if ( distance < raycaster.near || distance > raycaster.far ) return; + + intersects.push( { + + distance: distance, + point: _intersectPoint.clone(), + uv: Triangle.getUV( _intersectPoint, _vA$1, _vB$1, _vC$1, _uvA$1, _uvB$1, _uvC$1, new Vector2() ), + face: null, + object: this + + } ); + + }, + + copy: function ( source ) { + + Object3D.prototype.copy.call( this, source ); + + if ( source.center !== undefined ) this.center.copy( source.center ); + + this.material = source.material; + + return this; + + } + +} ); + +function transformVertex( vertexPosition, mvPosition, center, scale, sin, cos ) { + + // compute position in camera space + _alignedPosition.subVectors( vertexPosition, center ).addScalar( 0.5 ).multiply( scale ); + + // to check if rotation is not zero + if ( sin !== undefined ) { + + _rotatedPosition.x = ( cos * _alignedPosition.x ) - ( sin * _alignedPosition.y ); + _rotatedPosition.y = ( sin * _alignedPosition.x ) + ( cos * _alignedPosition.y ); + + } else { + + _rotatedPosition.copy( _alignedPosition ); + + } + + + vertexPosition.copy( mvPosition ); + vertexPosition.x += _rotatedPosition.x; + vertexPosition.y += _rotatedPosition.y; + + // transform to world space + vertexPosition.applyMatrix4( _viewWorldMatrix ); + +} + +const _v1$4 = new Vector3(); +const _v2$2 = new Vector3(); + +function LOD() { + + Object3D.call( this ); + + this._currentLevel = 0; + + this.type = 'LOD'; + + Object.defineProperties( this, { + levels: { + enumerable: true, + value: [] + } + } ); + + this.autoUpdate = true; + +} + +LOD.prototype = Object.assign( Object.create( Object3D.prototype ), { + + constructor: LOD, + + isLOD: true, + + copy: function ( source ) { + + Object3D.prototype.copy.call( this, source, false ); + + const levels = source.levels; + + for ( let i = 0, l = levels.length; i < l; i ++ ) { + + const level = levels[ i ]; + + this.addLevel( level.object.clone(), level.distance ); + + } + + this.autoUpdate = source.autoUpdate; + + return this; + + }, + + addLevel: function ( object, distance ) { + + if ( distance === undefined ) distance = 0; + + distance = Math.abs( distance ); + + const levels = this.levels; + + let l; + + for ( l = 0; l < levels.length; l ++ ) { + + if ( distance < levels[ l ].distance ) { + + break; + + } + + } + + levels.splice( l, 0, { distance: distance, object: object } ); + + this.add( object ); + + return this; + + }, + + getCurrentLevel: function () { + + return this._currentLevel; + + }, + + getObjectForDistance: function ( distance ) { + + const levels = this.levels; + + if ( levels.length > 0 ) { + + let i, l; + + for ( i = 1, l = levels.length; i < l; i ++ ) { + + if ( distance < levels[ i ].distance ) { + + break; + + } + + } + + return levels[ i - 1 ].object; + + } + + return null; + + }, + + raycast: function ( raycaster, intersects ) { + + const levels = this.levels; + + if ( levels.length > 0 ) { + + _v1$4.setFromMatrixPosition( this.matrixWorld ); + + const distance = raycaster.ray.origin.distanceTo( _v1$4 ); + + this.getObjectForDistance( distance ).raycast( raycaster, intersects ); + + } + + }, + + update: function ( camera ) { + + const levels = this.levels; + + if ( levels.length > 1 ) { + + _v1$4.setFromMatrixPosition( camera.matrixWorld ); + _v2$2.setFromMatrixPosition( this.matrixWorld ); + + const distance = _v1$4.distanceTo( _v2$2 ) / camera.zoom; + + levels[ 0 ].object.visible = true; + + let i, l; + + for ( i = 1, l = levels.length; i < l; i ++ ) { + + if ( distance >= levels[ i ].distance ) { + + levels[ i - 1 ].object.visible = false; + levels[ i ].object.visible = true; + + } else { + + break; + + } + + } + + this._currentLevel = i - 1; + + for ( ; i < l; i ++ ) { + + levels[ i ].object.visible = false; + + } + + } + + }, + + toJSON: function ( meta ) { + + const data = Object3D.prototype.toJSON.call( this, meta ); + + if ( this.autoUpdate === false ) data.object.autoUpdate = false; + + data.object.levels = []; + + const levels = this.levels; + + for ( let i = 0, l = levels.length; i < l; i ++ ) { + + const level = levels[ i ]; + + data.object.levels.push( { + object: level.object.uuid, + distance: level.distance + } ); + + } + + return data; + + } + +} ); + +function SkinnedMesh( geometry, material ) { + + if ( geometry && geometry.isGeometry ) { + + console.error( 'THREE.SkinnedMesh no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.' ); + + } + + Mesh.call( this, geometry, material ); + + this.type = 'SkinnedMesh'; + + this.bindMode = 'attached'; + this.bindMatrix = new Matrix4(); + this.bindMatrixInverse = new Matrix4(); + +} + +SkinnedMesh.prototype = Object.assign( Object.create( Mesh.prototype ), { + + constructor: SkinnedMesh, + + isSkinnedMesh: true, + + copy: function ( source ) { + + Mesh.prototype.copy.call( this, source ); + + this.bindMode = source.bindMode; + this.bindMatrix.copy( source.bindMatrix ); + this.bindMatrixInverse.copy( source.bindMatrixInverse ); + + this.skeleton = source.skeleton; + + return this; + + }, + + bind: function ( skeleton, bindMatrix ) { + + this.skeleton = skeleton; + + if ( bindMatrix === undefined ) { + + this.updateMatrixWorld( true ); + + this.skeleton.calculateInverses(); + + bindMatrix = this.matrixWorld; + + } + + this.bindMatrix.copy( bindMatrix ); + this.bindMatrixInverse.getInverse( bindMatrix ); + + }, + + pose: function () { + + this.skeleton.pose(); + + }, + + normalizeSkinWeights: function () { + + const vector = new Vector4(); + + const skinWeight = this.geometry.attributes.skinWeight; + + for ( let i = 0, l = skinWeight.count; i < l; i ++ ) { + + vector.x = skinWeight.getX( i ); + vector.y = skinWeight.getY( i ); + vector.z = skinWeight.getZ( i ); + vector.w = skinWeight.getW( i ); + + const scale = 1.0 / vector.manhattanLength(); + + if ( scale !== Infinity ) { + + vector.multiplyScalar( scale ); + + } else { + + vector.set( 1, 0, 0, 0 ); // do something reasonable + + } + + skinWeight.setXYZW( i, vector.x, vector.y, vector.z, vector.w ); + + } + + }, + + updateMatrixWorld: function ( force ) { + + Mesh.prototype.updateMatrixWorld.call( this, force ); + + if ( this.bindMode === 'attached' ) { + + this.bindMatrixInverse.getInverse( this.matrixWorld ); + + } else if ( this.bindMode === 'detached' ) { + + this.bindMatrixInverse.getInverse( this.bindMatrix ); + + } else { + + console.warn( 'THREE.SkinnedMesh: Unrecognized bindMode: ' + this.bindMode ); + + } + + }, + + boneTransform: ( function () { + + const basePosition = new Vector3(); + + const skinIndex = new Vector4(); + const skinWeight = new Vector4(); + + const vector = new Vector3(); + const matrix = new Matrix4(); + + return function ( index, target ) { + + const skeleton = this.skeleton; + const geometry = this.geometry; + + skinIndex.fromBufferAttribute( geometry.attributes.skinIndex, index ); + skinWeight.fromBufferAttribute( geometry.attributes.skinWeight, index ); + + basePosition.fromBufferAttribute( geometry.attributes.position, index ).applyMatrix4( this.bindMatrix ); + + target.set( 0, 0, 0 ); + + for ( let i = 0; i < 4; i ++ ) { + + const weight = skinWeight.getComponent( i ); + + if ( weight !== 0 ) { + + const boneIndex = skinIndex.getComponent( i ); + + matrix.multiplyMatrices( skeleton.bones[ boneIndex ].matrixWorld, skeleton.boneInverses[ boneIndex ] ); + + target.addScaledVector( vector.copy( basePosition ).applyMatrix4( matrix ), weight ); + + } + + } + + return target.applyMatrix4( this.bindMatrixInverse ); + + }; + + }() ) + +} ); + +const _offsetMatrix = new Matrix4(); +const _identityMatrix = new Matrix4(); + +function Skeleton( bones, boneInverses ) { + + // copy the bone array + + bones = bones || []; + + this.bones = bones.slice( 0 ); + this.boneMatrices = new Float32Array( this.bones.length * 16 ); + + this.frame = - 1; + + // use the supplied bone inverses or calculate the inverses + + if ( boneInverses === undefined ) { + + this.calculateInverses(); + + } else { + + if ( this.bones.length === boneInverses.length ) { + + this.boneInverses = boneInverses.slice( 0 ); + + } else { + + console.warn( 'THREE.Skeleton boneInverses is the wrong length.' ); + + this.boneInverses = []; + + for ( let i = 0, il = this.bones.length; i < il; i ++ ) { + + this.boneInverses.push( new Matrix4() ); + + } + + } + + } + +} + +Object.assign( Skeleton.prototype, { + + calculateInverses: function () { + + this.boneInverses = []; + + for ( let i = 0, il = this.bones.length; i < il; i ++ ) { + + const inverse = new Matrix4(); + + if ( this.bones[ i ] ) { + + inverse.getInverse( this.bones[ i ].matrixWorld ); + + } + + this.boneInverses.push( inverse ); + + } + + }, + + pose: function () { + + // recover the bind-time world matrices + + for ( let i = 0, il = this.bones.length; i < il; i ++ ) { + + const bone = this.bones[ i ]; + + if ( bone ) { + + bone.matrixWorld.getInverse( this.boneInverses[ i ] ); + + } + + } + + // compute the local matrices, positions, rotations and scales + + for ( let i = 0, il = this.bones.length; i < il; i ++ ) { + + const bone = this.bones[ i ]; + + if ( bone ) { + + if ( bone.parent && bone.parent.isBone ) { + + bone.matrix.getInverse( bone.parent.matrixWorld ); + bone.matrix.multiply( bone.matrixWorld ); + + } else { + + bone.matrix.copy( bone.matrixWorld ); + + } + + bone.matrix.decompose( bone.position, bone.quaternion, bone.scale ); + + } + + } + + }, + + update: function () { + + const bones = this.bones; + const boneInverses = this.boneInverses; + const boneMatrices = this.boneMatrices; + const boneTexture = this.boneTexture; + + // flatten bone matrices to array + + for ( let i = 0, il = bones.length; i < il; i ++ ) { + + // compute the offset between the current and the original transform + + const matrix = bones[ i ] ? bones[ i ].matrixWorld : _identityMatrix; + + _offsetMatrix.multiplyMatrices( matrix, boneInverses[ i ] ); + _offsetMatrix.toArray( boneMatrices, i * 16 ); + + } + + if ( boneTexture !== undefined ) { + + boneTexture.needsUpdate = true; + + } + + }, + + clone: function () { + + return new Skeleton( this.bones, this.boneInverses ); + + }, + + getBoneByName: function ( name ) { + + for ( let i = 0, il = this.bones.length; i < il; i ++ ) { + + const bone = this.bones[ i ]; + + if ( bone.name === name ) { + + return bone; + + } + + } + + return undefined; + + }, + + dispose: function ( ) { + + if ( this.boneTexture ) { + + this.boneTexture.dispose(); + + this.boneTexture = undefined; + + } + + } + +} ); + +function Bone() { + + Object3D.call( this ); + + this.type = 'Bone'; + +} + +Bone.prototype = Object.assign( Object.create( Object3D.prototype ), { + + constructor: Bone, + + isBone: true + +} ); + +const _instanceLocalMatrix = new Matrix4(); +const _instanceWorldMatrix = new Matrix4(); + +const _instanceIntersects = []; + +const _mesh = new Mesh(); + +function InstancedMesh( geometry, material, count ) { + + Mesh.call( this, geometry, material ); + + this.instanceMatrix = new BufferAttribute( new Float32Array( count * 16 ), 16 ); + this.instanceColor = null; + + this.count = count; + + this.frustumCulled = false; + +} + +InstancedMesh.prototype = Object.assign( Object.create( Mesh.prototype ), { + + constructor: InstancedMesh, + + isInstancedMesh: true, + + copy: function ( source ) { + + Mesh.prototype.copy.call( this, source ); + + this.instanceMatrix.copy( source.instanceMatrix ); + this.count = source.count; + + return this; + + }, + + setColorAt: function ( index, color ) { + + if ( this.instanceColor === null ) { + + this.instanceColor = new BufferAttribute( new Float32Array( this.count * 3 ), 3 ); + + } + + color.toArray( this.instanceColor.array, index * 3 ); + + }, + + getMatrixAt: function ( index, matrix ) { + + matrix.fromArray( this.instanceMatrix.array, index * 16 ); + + }, + + raycast: function ( raycaster, intersects ) { + + const matrixWorld = this.matrixWorld; + const raycastTimes = this.count; + + _mesh.geometry = this.geometry; + _mesh.material = this.material; + + if ( _mesh.material === undefined ) return; + + for ( let instanceId = 0; instanceId < raycastTimes; instanceId ++ ) { + + // calculate the world matrix for each instance + + this.getMatrixAt( instanceId, _instanceLocalMatrix ); + + _instanceWorldMatrix.multiplyMatrices( matrixWorld, _instanceLocalMatrix ); + + // the mesh represents this single instance + + _mesh.matrixWorld = _instanceWorldMatrix; + + _mesh.raycast( raycaster, _instanceIntersects ); + + // process the result of raycast + + for ( let i = 0, l = _instanceIntersects.length; i < l; i ++ ) { + + const intersect = _instanceIntersects[ i ]; + intersect.instanceId = instanceId; + intersect.object = this; + intersects.push( intersect ); + + } + + _instanceIntersects.length = 0; + + } + + }, + + setMatrixAt: function ( index, matrix ) { + + matrix.toArray( this.instanceMatrix.array, index * 16 ); + + }, + + updateMorphTargets: function () { + + } + +} ); + +/** + * parameters = { + * color: , + * opacity: , + * + * linewidth: , + * linecap: "round", + * linejoin: "round" + * } + */ + +function LineBasicMaterial( parameters ) { + + Material.call( this ); + + this.type = 'LineBasicMaterial'; + + this.color = new Color( 0xffffff ); + + this.linewidth = 1; + this.linecap = 'round'; + this.linejoin = 'round'; + + this.morphTargets = false; + + this.setValues( parameters ); + +} + +LineBasicMaterial.prototype = Object.create( Material.prototype ); +LineBasicMaterial.prototype.constructor = LineBasicMaterial; + +LineBasicMaterial.prototype.isLineBasicMaterial = true; + +LineBasicMaterial.prototype.copy = function ( source ) { + + Material.prototype.copy.call( this, source ); + + this.color.copy( source.color ); + + this.linewidth = source.linewidth; + this.linecap = source.linecap; + this.linejoin = source.linejoin; + + this.morphTargets = source.morphTargets; + + return this; + +}; + +const _start = new Vector3(); +const _end = new Vector3(); +const _inverseMatrix$1 = new Matrix4(); +const _ray$1 = new Ray(); +const _sphere$2 = new Sphere(); + +function Line( geometry, material, mode ) { + + if ( mode === 1 ) { + + console.error( 'THREE.Line: parameter THREE.LinePieces no longer supported. Use THREE.LineSegments instead.' ); + + } + + Object3D.call( this ); + + this.type = 'Line'; + + this.geometry = geometry !== undefined ? geometry : new BufferGeometry(); + this.material = material !== undefined ? material : new LineBasicMaterial(); + + this.updateMorphTargets(); + +} + +Line.prototype = Object.assign( Object.create( Object3D.prototype ), { + + constructor: Line, + + isLine: true, + + copy: function ( source ) { + + Object3D.prototype.copy.call( this, source ); + + this.material = source.material; + this.geometry = source.geometry; + + return this; + + }, + + computeLineDistances: function () { + + const geometry = this.geometry; + + if ( geometry.isBufferGeometry ) { + + // we assume non-indexed geometry + + if ( geometry.index === null ) { + + const positionAttribute = geometry.attributes.position; + const lineDistances = [ 0 ]; + + for ( let i = 1, l = positionAttribute.count; i < l; i ++ ) { + + _start.fromBufferAttribute( positionAttribute, i - 1 ); + _end.fromBufferAttribute( positionAttribute, i ); + + lineDistances[ i ] = lineDistances[ i - 1 ]; + lineDistances[ i ] += _start.distanceTo( _end ); + + } + + geometry.setAttribute( 'lineDistance', new Float32BufferAttribute( lineDistances, 1 ) ); + + } else { + + console.warn( 'THREE.Line.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.' ); + + } + + } else if ( geometry.isGeometry ) { + + const vertices = geometry.vertices; + const lineDistances = geometry.lineDistances; + + lineDistances[ 0 ] = 0; + + for ( let i = 1, l = vertices.length; i < l; i ++ ) { + + lineDistances[ i ] = lineDistances[ i - 1 ]; + lineDistances[ i ] += vertices[ i - 1 ].distanceTo( vertices[ i ] ); + + } + + } + + return this; + + }, + + raycast: function ( raycaster, intersects ) { + + const geometry = this.geometry; + const matrixWorld = this.matrixWorld; + const threshold = raycaster.params.Line.threshold; + + // Checking boundingSphere distance to ray + + if ( geometry.boundingSphere === null ) geometry.computeBoundingSphere(); + + _sphere$2.copy( geometry.boundingSphere ); + _sphere$2.applyMatrix4( matrixWorld ); + _sphere$2.radius += threshold; + + if ( raycaster.ray.intersectsSphere( _sphere$2 ) === false ) return; + + // + + _inverseMatrix$1.getInverse( matrixWorld ); + _ray$1.copy( raycaster.ray ).applyMatrix4( _inverseMatrix$1 ); + + const localThreshold = threshold / ( ( this.scale.x + this.scale.y + this.scale.z ) / 3 ); + const localThresholdSq = localThreshold * localThreshold; + + const vStart = new Vector3(); + const vEnd = new Vector3(); + const interSegment = new Vector3(); + const interRay = new Vector3(); + const step = this.isLineSegments ? 2 : 1; + + if ( geometry.isBufferGeometry ) { + + const index = geometry.index; + const attributes = geometry.attributes; + const positionAttribute = attributes.position; + + if ( index !== null ) { + + const indices = index.array; + + for ( let i = 0, l = indices.length - 1; i < l; i += step ) { + + const a = indices[ i ]; + const b = indices[ i + 1 ]; + + vStart.fromBufferAttribute( positionAttribute, a ); + vEnd.fromBufferAttribute( positionAttribute, b ); + + const distSq = _ray$1.distanceSqToSegment( vStart, vEnd, interRay, interSegment ); + + if ( distSq > localThresholdSq ) continue; + + interRay.applyMatrix4( this.matrixWorld ); //Move back to world space for distance calculation + + const distance = raycaster.ray.origin.distanceTo( interRay ); + + if ( distance < raycaster.near || distance > raycaster.far ) continue; + + intersects.push( { + + distance: distance, + // What do we want? intersection point on the ray or on the segment?? + // point: raycaster.ray.at( distance ), + point: interSegment.clone().applyMatrix4( this.matrixWorld ), + index: i, + face: null, + faceIndex: null, + object: this + + } ); + + } + + } else { + + for ( let i = 0, l = positionAttribute.count - 1; i < l; i += step ) { + + vStart.fromBufferAttribute( positionAttribute, i ); + vEnd.fromBufferAttribute( positionAttribute, i + 1 ); + + const distSq = _ray$1.distanceSqToSegment( vStart, vEnd, interRay, interSegment ); + + if ( distSq > localThresholdSq ) continue; + + interRay.applyMatrix4( this.matrixWorld ); //Move back to world space for distance calculation + + const distance = raycaster.ray.origin.distanceTo( interRay ); + + if ( distance < raycaster.near || distance > raycaster.far ) continue; + + intersects.push( { + + distance: distance, + // What do we want? intersection point on the ray or on the segment?? + // point: raycaster.ray.at( distance ), + point: interSegment.clone().applyMatrix4( this.matrixWorld ), + index: i, + face: null, + faceIndex: null, + object: this + + } ); + + } + + } + + } else if ( geometry.isGeometry ) { + + const vertices = geometry.vertices; + const nbVertices = vertices.length; + + for ( let i = 0; i < nbVertices - 1; i += step ) { + + const distSq = _ray$1.distanceSqToSegment( vertices[ i ], vertices[ i + 1 ], interRay, interSegment ); + + if ( distSq > localThresholdSq ) continue; + + interRay.applyMatrix4( this.matrixWorld ); //Move back to world space for distance calculation + + const distance = raycaster.ray.origin.distanceTo( interRay ); + + if ( distance < raycaster.near || distance > raycaster.far ) continue; + + intersects.push( { + + distance: distance, + // What do we want? intersection point on the ray or on the segment?? + // point: raycaster.ray.at( distance ), + point: interSegment.clone().applyMatrix4( this.matrixWorld ), + index: i, + face: null, + faceIndex: null, + object: this + + } ); + + } + + } + + }, + + updateMorphTargets: function () { + + const geometry = this.geometry; + + if ( geometry.isBufferGeometry ) { + + const morphAttributes = geometry.morphAttributes; + const keys = Object.keys( morphAttributes ); + + if ( keys.length > 0 ) { + + const morphAttribute = morphAttributes[ keys[ 0 ] ]; + + if ( morphAttribute !== undefined ) { + + this.morphTargetInfluences = []; + this.morphTargetDictionary = {}; + + for ( let m = 0, ml = morphAttribute.length; m < ml; m ++ ) { + + const name = morphAttribute[ m ].name || String( m ); + + this.morphTargetInfluences.push( 0 ); + this.morphTargetDictionary[ name ] = m; + + } + + } + + } + + } else { + + const morphTargets = geometry.morphTargets; + + if ( morphTargets !== undefined && morphTargets.length > 0 ) { + + console.error( 'THREE.Line.updateMorphTargets() does not support THREE.Geometry. Use THREE.BufferGeometry instead.' ); + + } + + } + + } + +} ); + +const _start$1 = new Vector3(); +const _end$1 = new Vector3(); + +function LineSegments( geometry, material ) { + + Line.call( this, geometry, material ); + + this.type = 'LineSegments'; + +} + +LineSegments.prototype = Object.assign( Object.create( Line.prototype ), { + + constructor: LineSegments, + + isLineSegments: true, + + computeLineDistances: function () { + + const geometry = this.geometry; + + if ( geometry.isBufferGeometry ) { + + // we assume non-indexed geometry + + if ( geometry.index === null ) { + + const positionAttribute = geometry.attributes.position; + const lineDistances = []; + + for ( let i = 0, l = positionAttribute.count; i < l; i += 2 ) { + + _start$1.fromBufferAttribute( positionAttribute, i ); + _end$1.fromBufferAttribute( positionAttribute, i + 1 ); + + lineDistances[ i ] = ( i === 0 ) ? 0 : lineDistances[ i - 1 ]; + lineDistances[ i + 1 ] = lineDistances[ i ] + _start$1.distanceTo( _end$1 ); + + } + + geometry.setAttribute( 'lineDistance', new Float32BufferAttribute( lineDistances, 1 ) ); + + } else { + + console.warn( 'THREE.LineSegments.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.' ); + + } + + } else if ( geometry.isGeometry ) { + + const vertices = geometry.vertices; + const lineDistances = geometry.lineDistances; + + for ( let i = 0, l = vertices.length; i < l; i += 2 ) { + + _start$1.copy( vertices[ i ] ); + _end$1.copy( vertices[ i + 1 ] ); + + lineDistances[ i ] = ( i === 0 ) ? 0 : lineDistances[ i - 1 ]; + lineDistances[ i + 1 ] = lineDistances[ i ] + _start$1.distanceTo( _end$1 ); + + } + + } + + return this; + + } + +} ); + +function LineLoop( geometry, material ) { + + Line.call( this, geometry, material ); + + this.type = 'LineLoop'; + +} + +LineLoop.prototype = Object.assign( Object.create( Line.prototype ), { + + constructor: LineLoop, + + isLineLoop: true, + +} ); + +/** + * parameters = { + * color: , + * opacity: , + * map: new THREE.Texture( ), + * alphaMap: new THREE.Texture( ), + * + * size: , + * sizeAttenuation: + * + * morphTargets: + * } + */ + +function PointsMaterial( parameters ) { + + Material.call( this ); + + this.type = 'PointsMaterial'; + + this.color = new Color( 0xffffff ); + + this.map = null; + + this.alphaMap = null; + + this.size = 1; + this.sizeAttenuation = true; + + this.morphTargets = false; + + this.setValues( parameters ); + +} + +PointsMaterial.prototype = Object.create( Material.prototype ); +PointsMaterial.prototype.constructor = PointsMaterial; + +PointsMaterial.prototype.isPointsMaterial = true; + +PointsMaterial.prototype.copy = function ( source ) { + + Material.prototype.copy.call( this, source ); + + this.color.copy( source.color ); + + this.map = source.map; + + this.alphaMap = source.alphaMap; + + this.size = source.size; + this.sizeAttenuation = source.sizeAttenuation; + + this.morphTargets = source.morphTargets; + + return this; + +}; + +const _inverseMatrix$2 = new Matrix4(); +const _ray$2 = new Ray(); +const _sphere$3 = new Sphere(); +const _position$1 = new Vector3(); + +function Points( geometry, material ) { + + Object3D.call( this ); + + this.type = 'Points'; + + this.geometry = geometry !== undefined ? geometry : new BufferGeometry(); + this.material = material !== undefined ? material : new PointsMaterial(); + + this.updateMorphTargets(); + +} + +Points.prototype = Object.assign( Object.create( Object3D.prototype ), { + + constructor: Points, + + isPoints: true, + + copy: function ( source ) { + + Object3D.prototype.copy.call( this, source ); + + this.material = source.material; + this.geometry = source.geometry; + + return this; + + }, + + raycast: function ( raycaster, intersects ) { + + const geometry = this.geometry; + const matrixWorld = this.matrixWorld; + const threshold = raycaster.params.Points.threshold; + + // Checking boundingSphere distance to ray + + if ( geometry.boundingSphere === null ) geometry.computeBoundingSphere(); + + _sphere$3.copy( geometry.boundingSphere ); + _sphere$3.applyMatrix4( matrixWorld ); + _sphere$3.radius += threshold; + + if ( raycaster.ray.intersectsSphere( _sphere$3 ) === false ) return; + + // + + _inverseMatrix$2.getInverse( matrixWorld ); + _ray$2.copy( raycaster.ray ).applyMatrix4( _inverseMatrix$2 ); + + const localThreshold = threshold / ( ( this.scale.x + this.scale.y + this.scale.z ) / 3 ); + const localThresholdSq = localThreshold * localThreshold; + + if ( geometry.isBufferGeometry ) { + + const index = geometry.index; + const attributes = geometry.attributes; + const positionAttribute = attributes.position; + + if ( index !== null ) { + + const indices = index.array; + + for ( let i = 0, il = indices.length; i < il; i ++ ) { + + const a = indices[ i ]; + + _position$1.fromBufferAttribute( positionAttribute, a ); + + testPoint( _position$1, a, localThresholdSq, matrixWorld, raycaster, intersects, this ); + + } + + } else { + + for ( let i = 0, l = positionAttribute.count; i < l; i ++ ) { + + _position$1.fromBufferAttribute( positionAttribute, i ); + + testPoint( _position$1, i, localThresholdSq, matrixWorld, raycaster, intersects, this ); + + } + + } + + } else { + + const vertices = geometry.vertices; + + for ( let i = 0, l = vertices.length; i < l; i ++ ) { + + testPoint( vertices[ i ], i, localThresholdSq, matrixWorld, raycaster, intersects, this ); + + } + + } + + }, + + updateMorphTargets: function () { + + const geometry = this.geometry; + + if ( geometry.isBufferGeometry ) { + + const morphAttributes = geometry.morphAttributes; + const keys = Object.keys( morphAttributes ); + + if ( keys.length > 0 ) { + + const morphAttribute = morphAttributes[ keys[ 0 ] ]; + + if ( morphAttribute !== undefined ) { + + this.morphTargetInfluences = []; + this.morphTargetDictionary = {}; + + for ( let m = 0, ml = morphAttribute.length; m < ml; m ++ ) { + + const name = morphAttribute[ m ].name || String( m ); + + this.morphTargetInfluences.push( 0 ); + this.morphTargetDictionary[ name ] = m; + + } + + } + + } + + } else { + + const morphTargets = geometry.morphTargets; + + if ( morphTargets !== undefined && morphTargets.length > 0 ) { + + console.error( 'THREE.Points.updateMorphTargets() does not support THREE.Geometry. Use THREE.BufferGeometry instead.' ); + + } + + } + + } + +} ); + +function testPoint( point, index, localThresholdSq, matrixWorld, raycaster, intersects, object ) { + + const rayPointDistanceSq = _ray$2.distanceSqToPoint( point ); + + if ( rayPointDistanceSq < localThresholdSq ) { + + const intersectPoint = new Vector3(); + + _ray$2.closestPointToPoint( point, intersectPoint ); + intersectPoint.applyMatrix4( matrixWorld ); + + const distance = raycaster.ray.origin.distanceTo( intersectPoint ); + + if ( distance < raycaster.near || distance > raycaster.far ) return; + + intersects.push( { + + distance: distance, + distanceToRay: Math.sqrt( rayPointDistanceSq ), + point: intersectPoint, + index: index, + face: null, + object: object + + } ); + + } + +} + +function VideoTexture( video, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy ) { + + Texture.call( this, video, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy ); + + this.format = format !== undefined ? format : RGBFormat; + + this.minFilter = minFilter !== undefined ? minFilter : LinearFilter; + this.magFilter = magFilter !== undefined ? magFilter : LinearFilter; + + this.generateMipmaps = false; + + const scope = this; + + function updateVideo() { + + scope.needsUpdate = true; + video.requestVideoFrameCallback( updateVideo ); + + } + + if ( 'requestVideoFrameCallback' in video ) { + + video.requestVideoFrameCallback( updateVideo ); + + } + +} + +VideoTexture.prototype = Object.assign( Object.create( Texture.prototype ), { + + constructor: VideoTexture, + + isVideoTexture: true, + + update: function () { + + const video = this.image; + const hasVideoFrameCallback = 'requestVideoFrameCallback' in video; + + if ( hasVideoFrameCallback === false && video.readyState >= video.HAVE_CURRENT_DATA ) { + + this.needsUpdate = true; + + } + + } + +} ); + +function CompressedTexture( mipmaps, width, height, format, type, mapping, wrapS, wrapT, magFilter, minFilter, anisotropy, encoding ) { + + Texture.call( this, null, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy, encoding ); + + this.image = { width: width, height: height }; + this.mipmaps = mipmaps; + + // no flipping for cube textures + // (also flipping doesn't work for compressed textures ) + + this.flipY = false; + + // can't generate mipmaps for compressed textures + // mips must be embedded in DDS files + + this.generateMipmaps = false; + +} + +CompressedTexture.prototype = Object.create( Texture.prototype ); +CompressedTexture.prototype.constructor = CompressedTexture; + +CompressedTexture.prototype.isCompressedTexture = true; + +function CanvasTexture( canvas, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy ) { + + Texture.call( this, canvas, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy ); + + this.needsUpdate = true; + +} + +CanvasTexture.prototype = Object.create( Texture.prototype ); +CanvasTexture.prototype.constructor = CanvasTexture; +CanvasTexture.prototype.isCanvasTexture = true; + +function DepthTexture( width, height, type, mapping, wrapS, wrapT, magFilter, minFilter, anisotropy, format ) { + + format = format !== undefined ? format : DepthFormat; + + if ( format !== DepthFormat && format !== DepthStencilFormat ) { + + throw new Error( 'DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat' ); + + } + + if ( type === undefined && format === DepthFormat ) type = UnsignedShortType; + if ( type === undefined && format === DepthStencilFormat ) type = UnsignedInt248Type; + + Texture.call( this, null, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy ); + + this.image = { width: width, height: height }; + + this.magFilter = magFilter !== undefined ? magFilter : NearestFilter; + this.minFilter = minFilter !== undefined ? minFilter : NearestFilter; + + this.flipY = false; + this.generateMipmaps = false; + +} + +DepthTexture.prototype = Object.create( Texture.prototype ); +DepthTexture.prototype.constructor = DepthTexture; +DepthTexture.prototype.isDepthTexture = true; + +let _geometryId = 0; // Geometry uses even numbers as Id +const _m1$3 = new Matrix4(); +const _obj$1 = new Object3D(); +const _offset$1 = new Vector3(); + +function Geometry() { + + Object.defineProperty( this, 'id', { value: _geometryId += 2 } ); + + this.uuid = MathUtils.generateUUID(); + + this.name = ''; + this.type = 'Geometry'; + + this.vertices = []; + this.colors = []; + this.faces = []; + this.faceVertexUvs = [[]]; + + this.morphTargets = []; + this.morphNormals = []; + + this.skinWeights = []; + this.skinIndices = []; + + this.lineDistances = []; + + this.boundingBox = null; + this.boundingSphere = null; + + // update flags + + this.elementsNeedUpdate = false; + this.verticesNeedUpdate = false; + this.uvsNeedUpdate = false; + this.normalsNeedUpdate = false; + this.colorsNeedUpdate = false; + this.lineDistancesNeedUpdate = false; + this.groupsNeedUpdate = false; + +} + +Geometry.prototype = Object.assign( Object.create( EventDispatcher.prototype ), { + + constructor: Geometry, + + isGeometry: true, + + applyMatrix4: function ( matrix ) { + + const normalMatrix = new Matrix3().getNormalMatrix( matrix ); + + for ( let i = 0, il = this.vertices.length; i < il; i ++ ) { + + const vertex = this.vertices[ i ]; + vertex.applyMatrix4( matrix ); + + } + + for ( let i = 0, il = this.faces.length; i < il; i ++ ) { + + const face = this.faces[ i ]; + face.normal.applyMatrix3( normalMatrix ).normalize(); + + for ( let j = 0, jl = face.vertexNormals.length; j < jl; j ++ ) { + + face.vertexNormals[ j ].applyMatrix3( normalMatrix ).normalize(); + + } + + } + + if ( this.boundingBox !== null ) { + + this.computeBoundingBox(); + + } + + if ( this.boundingSphere !== null ) { + + this.computeBoundingSphere(); + + } + + this.verticesNeedUpdate = true; + this.normalsNeedUpdate = true; + + return this; + + }, + + rotateX: function ( angle ) { + + // rotate geometry around world x-axis + + _m1$3.makeRotationX( angle ); + + this.applyMatrix4( _m1$3 ); + + return this; + + }, + + rotateY: function ( angle ) { + + // rotate geometry around world y-axis + + _m1$3.makeRotationY( angle ); + + this.applyMatrix4( _m1$3 ); + + return this; + + }, + + rotateZ: function ( angle ) { + + // rotate geometry around world z-axis + + _m1$3.makeRotationZ( angle ); + + this.applyMatrix4( _m1$3 ); + + return this; + + }, + + translate: function ( x, y, z ) { + + // translate geometry + + _m1$3.makeTranslation( x, y, z ); + + this.applyMatrix4( _m1$3 ); + + return this; + + }, + + scale: function ( x, y, z ) { + + // scale geometry + + _m1$3.makeScale( x, y, z ); + + this.applyMatrix4( _m1$3 ); + + return this; + + }, + + lookAt: function ( vector ) { + + _obj$1.lookAt( vector ); + + _obj$1.updateMatrix(); + + this.applyMatrix4( _obj$1.matrix ); + + return this; + + }, + + fromBufferGeometry: function ( geometry ) { + + const scope = this; + + const index = geometry.index !== null ? geometry.index : undefined; + const attributes = geometry.attributes; + + if ( attributes.position === undefined ) { + + console.error( 'THREE.Geometry.fromBufferGeometry(): Position attribute required for conversion.' ); + return this; + + } + + const position = attributes.position; + const normal = attributes.normal; + const color = attributes.color; + const uv = attributes.uv; + const uv2 = attributes.uv2; + + if ( uv2 !== undefined ) this.faceVertexUvs[ 1 ] = []; + + for ( let i = 0; i < position.count; i ++ ) { + + scope.vertices.push( new Vector3().fromBufferAttribute( position, i ) ); + + if ( color !== undefined ) { + + scope.colors.push( new Color().fromBufferAttribute( color, i ) ); + + } + + } + + function addFace( a, b, c, materialIndex ) { + + const vertexColors = ( color === undefined ) ? [] : [ + scope.colors[ a ].clone(), + scope.colors[ b ].clone(), + scope.colors[ c ].clone() + ]; + + const vertexNormals = ( normal === undefined ) ? [] : [ + new Vector3().fromBufferAttribute( normal, a ), + new Vector3().fromBufferAttribute( normal, b ), + new Vector3().fromBufferAttribute( normal, c ) + ]; + + const face = new Face3( a, b, c, vertexNormals, vertexColors, materialIndex ); + + scope.faces.push( face ); + + if ( uv !== undefined ) { + + scope.faceVertexUvs[ 0 ].push( [ + new Vector2().fromBufferAttribute( uv, a ), + new Vector2().fromBufferAttribute( uv, b ), + new Vector2().fromBufferAttribute( uv, c ) + ] ); + + } + + if ( uv2 !== undefined ) { + + scope.faceVertexUvs[ 1 ].push( [ + new Vector2().fromBufferAttribute( uv2, a ), + new Vector2().fromBufferAttribute( uv2, b ), + new Vector2().fromBufferAttribute( uv2, c ) + ] ); + + } + + } + + const groups = geometry.groups; + + if ( groups.length > 0 ) { + + for ( let i = 0; i < groups.length; i ++ ) { + + const group = groups[ i ]; + + const start = group.start; + const count = group.count; + + for ( let j = start, jl = start + count; j < jl; j += 3 ) { + + if ( index !== undefined ) { + + addFace( index.getX( j ), index.getX( j + 1 ), index.getX( j + 2 ), group.materialIndex ); + + } else { + + addFace( j, j + 1, j + 2, group.materialIndex ); + + } + + } + + } + + } else { + + if ( index !== undefined ) { + + for ( let i = 0; i < index.count; i += 3 ) { + + addFace( index.getX( i ), index.getX( i + 1 ), index.getX( i + 2 ) ); + + } + + } else { + + for ( let i = 0; i < position.count; i += 3 ) { + + addFace( i, i + 1, i + 2 ); + + } + + } + + } + + this.computeFaceNormals(); + + if ( geometry.boundingBox !== null ) { + + this.boundingBox = geometry.boundingBox.clone(); + + } + + if ( geometry.boundingSphere !== null ) { + + this.boundingSphere = geometry.boundingSphere.clone(); + + } + + return this; + + }, + + center: function () { + + this.computeBoundingBox(); + + this.boundingBox.getCenter( _offset$1 ).negate(); + + this.translate( _offset$1.x, _offset$1.y, _offset$1.z ); + + return this; + + }, + + normalize: function () { + + this.computeBoundingSphere(); + + const center = this.boundingSphere.center; + const radius = this.boundingSphere.radius; + + const s = radius === 0 ? 1 : 1.0 / radius; + + const matrix = new Matrix4(); + matrix.set( + s, 0, 0, - s * center.x, + 0, s, 0, - s * center.y, + 0, 0, s, - s * center.z, + 0, 0, 0, 1 + ); + + this.applyMatrix4( matrix ); + + return this; + + }, + + computeFaceNormals: function () { + + const cb = new Vector3(), ab = new Vector3(); + + for ( let f = 0, fl = this.faces.length; f < fl; f ++ ) { + + const face = this.faces[ f ]; + + const vA = this.vertices[ face.a ]; + const vB = this.vertices[ face.b ]; + const vC = this.vertices[ face.c ]; + + cb.subVectors( vC, vB ); + ab.subVectors( vA, vB ); + cb.cross( ab ); + + cb.normalize(); + + face.normal.copy( cb ); + + } + + }, + + computeVertexNormals: function ( areaWeighted ) { + + if ( areaWeighted === undefined ) areaWeighted = true; + + const vertices = new Array( this.vertices.length ); + + for ( let v = 0, vl = this.vertices.length; v < vl; v ++ ) { + + vertices[ v ] = new Vector3(); + + } + + if ( areaWeighted ) { + + // vertex normals weighted by triangle areas + // http://www.iquilezles.org/www/articles/normals/normals.htm + + const cb = new Vector3(), ab = new Vector3(); + + for ( let f = 0, fl = this.faces.length; f < fl; f ++ ) { + + const face = this.faces[ f ]; + + const vA = this.vertices[ face.a ]; + const vB = this.vertices[ face.b ]; + const vC = this.vertices[ face.c ]; + + cb.subVectors( vC, vB ); + ab.subVectors( vA, vB ); + cb.cross( ab ); + + vertices[ face.a ].add( cb ); + vertices[ face.b ].add( cb ); + vertices[ face.c ].add( cb ); + + } + + } else { + + this.computeFaceNormals(); + + for ( let f = 0, fl = this.faces.length; f < fl; f ++ ) { + + const face = this.faces[ f ]; + + vertices[ face.a ].add( face.normal ); + vertices[ face.b ].add( face.normal ); + vertices[ face.c ].add( face.normal ); + + } + + } + + for ( let v = 0, vl = this.vertices.length; v < vl; v ++ ) { + + vertices[ v ].normalize(); + + } + + for ( let f = 0, fl = this.faces.length; f < fl; f ++ ) { + + const face = this.faces[ f ]; + + const vertexNormals = face.vertexNormals; + + if ( vertexNormals.length === 3 ) { + + vertexNormals[ 0 ].copy( vertices[ face.a ] ); + vertexNormals[ 1 ].copy( vertices[ face.b ] ); + vertexNormals[ 2 ].copy( vertices[ face.c ] ); + + } else { + + vertexNormals[ 0 ] = vertices[ face.a ].clone(); + vertexNormals[ 1 ] = vertices[ face.b ].clone(); + vertexNormals[ 2 ] = vertices[ face.c ].clone(); + + } + + } + + if ( this.faces.length > 0 ) { + + this.normalsNeedUpdate = true; + + } + + }, + + computeFlatVertexNormals: function () { + + this.computeFaceNormals(); + + for ( let f = 0, fl = this.faces.length; f < fl; f ++ ) { + + const face = this.faces[ f ]; + + const vertexNormals = face.vertexNormals; + + if ( vertexNormals.length === 3 ) { + + vertexNormals[ 0 ].copy( face.normal ); + vertexNormals[ 1 ].copy( face.normal ); + vertexNormals[ 2 ].copy( face.normal ); + + } else { + + vertexNormals[ 0 ] = face.normal.clone(); + vertexNormals[ 1 ] = face.normal.clone(); + vertexNormals[ 2 ] = face.normal.clone(); + + } + + } + + if ( this.faces.length > 0 ) { + + this.normalsNeedUpdate = true; + + } + + }, + + computeMorphNormals: function () { + + // save original normals + // - create temp variables on first access + // otherwise just copy (for faster repeated calls) + + for ( let f = 0, fl = this.faces.length; f < fl; f ++ ) { + + const face = this.faces[ f ]; + + if ( ! face.__originalFaceNormal ) { + + face.__originalFaceNormal = face.normal.clone(); + + } else { + + face.__originalFaceNormal.copy( face.normal ); + + } + + if ( ! face.__originalVertexNormals ) face.__originalVertexNormals = []; + + for ( let i = 0, il = face.vertexNormals.length; i < il; i ++ ) { + + if ( ! face.__originalVertexNormals[ i ] ) { + + face.__originalVertexNormals[ i ] = face.vertexNormals[ i ].clone(); + + } else { + + face.__originalVertexNormals[ i ].copy( face.vertexNormals[ i ] ); + + } + + } + + } + + // use temp geometry to compute face and vertex normals for each morph + + const tmpGeo = new Geometry(); + tmpGeo.faces = this.faces; + + for ( let i = 0, il = this.morphTargets.length; i < il; i ++ ) { + + // create on first access + + if ( ! this.morphNormals[ i ] ) { + + this.morphNormals[ i ] = {}; + this.morphNormals[ i ].faceNormals = []; + this.morphNormals[ i ].vertexNormals = []; + + const dstNormalsFace = this.morphNormals[ i ].faceNormals; + const dstNormalsVertex = this.morphNormals[ i ].vertexNormals; + + for ( let f = 0, fl = this.faces.length; f < fl; f ++ ) { + + const faceNormal = new Vector3(); + const vertexNormals = { a: new Vector3(), b: new Vector3(), c: new Vector3() }; + + dstNormalsFace.push( faceNormal ); + dstNormalsVertex.push( vertexNormals ); + + } + + } + + const morphNormals = this.morphNormals[ i ]; + + // set vertices to morph target + + tmpGeo.vertices = this.morphTargets[ i ].vertices; + + // compute morph normals + + tmpGeo.computeFaceNormals(); + tmpGeo.computeVertexNormals(); + + // store morph normals + + for ( let f = 0, fl = this.faces.length; f < fl; f ++ ) { + + const face = this.faces[ f ]; + + const faceNormal = morphNormals.faceNormals[ f ]; + const vertexNormals = morphNormals.vertexNormals[ f ]; + + faceNormal.copy( face.normal ); + + vertexNormals.a.copy( face.vertexNormals[ 0 ] ); + vertexNormals.b.copy( face.vertexNormals[ 1 ] ); + vertexNormals.c.copy( face.vertexNormals[ 2 ] ); + + } + + } + + // restore original normals + + for ( let f = 0, fl = this.faces.length; f < fl; f ++ ) { + + const face = this.faces[ f ]; + + face.normal = face.__originalFaceNormal; + face.vertexNormals = face.__originalVertexNormals; + + } + + }, + + computeBoundingBox: function () { + + if ( this.boundingBox === null ) { + + this.boundingBox = new Box3(); + + } + + this.boundingBox.setFromPoints( this.vertices ); + + }, + + computeBoundingSphere: function () { + + if ( this.boundingSphere === null ) { + + this.boundingSphere = new Sphere(); + + } + + this.boundingSphere.setFromPoints( this.vertices ); + + }, + + merge: function ( geometry, matrix, materialIndexOffset ) { + + if ( ! ( geometry && geometry.isGeometry ) ) { + + console.error( 'THREE.Geometry.merge(): geometry not an instance of THREE.Geometry.', geometry ); + return; + + } + + let normalMatrix; + const vertexOffset = this.vertices.length, + vertices1 = this.vertices, + vertices2 = geometry.vertices, + faces1 = this.faces, + faces2 = geometry.faces, + colors1 = this.colors, + colors2 = geometry.colors; + + if ( materialIndexOffset === undefined ) materialIndexOffset = 0; + + if ( matrix !== undefined ) { + + normalMatrix = new Matrix3().getNormalMatrix( matrix ); + + } + + // vertices + + for ( let i = 0, il = vertices2.length; i < il; i ++ ) { + + const vertex = vertices2[ i ]; + + const vertexCopy = vertex.clone(); + + if ( matrix !== undefined ) vertexCopy.applyMatrix4( matrix ); + + vertices1.push( vertexCopy ); + + } + + // colors + + for ( let i = 0, il = colors2.length; i < il; i ++ ) { + + colors1.push( colors2[ i ].clone() ); + + } + + // faces + + for ( let i = 0, il = faces2.length; i < il; i ++ ) { + + const face = faces2[ i ]; + let normal, color; + const faceVertexNormals = face.vertexNormals, + faceVertexColors = face.vertexColors; + + const faceCopy = new Face3( face.a + vertexOffset, face.b + vertexOffset, face.c + vertexOffset ); + faceCopy.normal.copy( face.normal ); + + if ( normalMatrix !== undefined ) { + + faceCopy.normal.applyMatrix3( normalMatrix ).normalize(); + + } + + for ( let j = 0, jl = faceVertexNormals.length; j < jl; j ++ ) { + + normal = faceVertexNormals[ j ].clone(); + + if ( normalMatrix !== undefined ) { + + normal.applyMatrix3( normalMatrix ).normalize(); + + } + + faceCopy.vertexNormals.push( normal ); + + } + + faceCopy.color.copy( face.color ); + + for ( let j = 0, jl = faceVertexColors.length; j < jl; j ++ ) { + + color = faceVertexColors[ j ]; + faceCopy.vertexColors.push( color.clone() ); + + } + + faceCopy.materialIndex = face.materialIndex + materialIndexOffset; + + faces1.push( faceCopy ); + + } + + // uvs + + for ( let i = 0, il = geometry.faceVertexUvs.length; i < il; i ++ ) { + + const faceVertexUvs2 = geometry.faceVertexUvs[ i ]; + + if ( this.faceVertexUvs[ i ] === undefined ) this.faceVertexUvs[ i ] = []; + + for ( let j = 0, jl = faceVertexUvs2.length; j < jl; j ++ ) { + + const uvs2 = faceVertexUvs2[ j ], uvsCopy = []; + + for ( let k = 0, kl = uvs2.length; k < kl; k ++ ) { + + uvsCopy.push( uvs2[ k ].clone() ); + + } + + this.faceVertexUvs[ i ].push( uvsCopy ); + + } + + } + + }, + + mergeMesh: function ( mesh ) { + + if ( ! ( mesh && mesh.isMesh ) ) { + + console.error( 'THREE.Geometry.mergeMesh(): mesh not an instance of THREE.Mesh.', mesh ); + return; + + } + + if ( mesh.matrixAutoUpdate ) mesh.updateMatrix(); + + this.merge( mesh.geometry, mesh.matrix ); + + }, + + /* + * Checks for duplicate vertices with hashmap. + * Duplicated vertices are removed + * and faces' vertices are updated. + */ + + mergeVertices: function () { + + const verticesMap = {}; // Hashmap for looking up vertices by position coordinates (and making sure they are unique) + const unique = [], changes = []; + + const precisionPoints = 4; // number of decimal points, e.g. 4 for epsilon of 0.0001 + const precision = Math.pow( 10, precisionPoints ); + + for ( let i = 0, il = this.vertices.length; i < il; i ++ ) { + + const v = this.vertices[ i ]; + const key = Math.round( v.x * precision ) + '_' + Math.round( v.y * precision ) + '_' + Math.round( v.z * precision ); + + if ( verticesMap[ key ] === undefined ) { + + verticesMap[ key ] = i; + unique.push( this.vertices[ i ] ); + changes[ i ] = unique.length - 1; + + } else { + + //console.log('Duplicate vertex found. ', i, ' could be using ', verticesMap[key]); + changes[ i ] = changes[ verticesMap[ key ] ]; + + } + + } + + + // if faces are completely degenerate after merging vertices, we + // have to remove them from the geometry. + const faceIndicesToRemove = []; + + for ( let i = 0, il = this.faces.length; i < il; i ++ ) { + + const face = this.faces[ i ]; + + face.a = changes[ face.a ]; + face.b = changes[ face.b ]; + face.c = changes[ face.c ]; + + const indices = [ face.a, face.b, face.c ]; + + // if any duplicate vertices are found in a Face3 + // we have to remove the face as nothing can be saved + for ( let n = 0; n < 3; n ++ ) { + + if ( indices[ n ] === indices[ ( n + 1 ) % 3 ] ) { + + faceIndicesToRemove.push( i ); + break; + + } + + } + + } + + for ( let i = faceIndicesToRemove.length - 1; i >= 0; i -- ) { + + const idx = faceIndicesToRemove[ i ]; + + this.faces.splice( idx, 1 ); + + for ( let j = 0, jl = this.faceVertexUvs.length; j < jl; j ++ ) { + + this.faceVertexUvs[ j ].splice( idx, 1 ); + + } + + } + + // Use unique set of vertices + + const diff = this.vertices.length - unique.length; + this.vertices = unique; + return diff; + + }, + + setFromPoints: function ( points ) { + + this.vertices = []; + + for ( let i = 0, l = points.length; i < l; i ++ ) { + + const point = points[ i ]; + this.vertices.push( new Vector3( point.x, point.y, point.z || 0 ) ); + + } + + return this; + + }, + + sortFacesByMaterialIndex: function () { + + const faces = this.faces; + const length = faces.length; + + // tag faces + + for ( let i = 0; i < length; i ++ ) { + + faces[ i ]._id = i; + + } + + // sort faces + + function materialIndexSort( a, b ) { + + return a.materialIndex - b.materialIndex; + + } + + faces.sort( materialIndexSort ); + + // sort uvs + + const uvs1 = this.faceVertexUvs[ 0 ]; + const uvs2 = this.faceVertexUvs[ 1 ]; + + let newUvs1, newUvs2; + + if ( uvs1 && uvs1.length === length ) newUvs1 = []; + if ( uvs2 && uvs2.length === length ) newUvs2 = []; + + for ( let i = 0; i < length; i ++ ) { + + const id = faces[ i ]._id; + + if ( newUvs1 ) newUvs1.push( uvs1[ id ] ); + if ( newUvs2 ) newUvs2.push( uvs2[ id ] ); + + } + + if ( newUvs1 ) this.faceVertexUvs[ 0 ] = newUvs1; + if ( newUvs2 ) this.faceVertexUvs[ 1 ] = newUvs2; + + }, + + toJSON: function () { + + const data = { + metadata: { + version: 4.5, + type: 'Geometry', + generator: 'Geometry.toJSON' + } + }; + + // standard Geometry serialization + + data.uuid = this.uuid; + data.type = this.type; + if ( this.name !== '' ) data.name = this.name; + + if ( this.parameters !== undefined ) { + + const parameters = this.parameters; + + for ( const key in parameters ) { + + if ( parameters[ key ] !== undefined ) data[ key ] = parameters[ key ]; + + } + + return data; + + } + + const vertices = []; + + for ( let i = 0; i < this.vertices.length; i ++ ) { + + const vertex = this.vertices[ i ]; + vertices.push( vertex.x, vertex.y, vertex.z ); + + } + + const faces = []; + const normals = []; + const normalsHash = {}; + const colors = []; + const colorsHash = {}; + const uvs = []; + const uvsHash = {}; + + for ( let i = 0; i < this.faces.length; i ++ ) { + + const face = this.faces[ i ]; + + const hasMaterial = true; + const hasFaceUv = false; // deprecated + const hasFaceVertexUv = this.faceVertexUvs[ 0 ][ i ] !== undefined; + const hasFaceNormal = face.normal.length() > 0; + const hasFaceVertexNormal = face.vertexNormals.length > 0; + const hasFaceColor = face.color.r !== 1 || face.color.g !== 1 || face.color.b !== 1; + const hasFaceVertexColor = face.vertexColors.length > 0; + + let faceType = 0; + + faceType = setBit( faceType, 0, 0 ); // isQuad + faceType = setBit( faceType, 1, hasMaterial ); + faceType = setBit( faceType, 2, hasFaceUv ); + faceType = setBit( faceType, 3, hasFaceVertexUv ); + faceType = setBit( faceType, 4, hasFaceNormal ); + faceType = setBit( faceType, 5, hasFaceVertexNormal ); + faceType = setBit( faceType, 6, hasFaceColor ); + faceType = setBit( faceType, 7, hasFaceVertexColor ); + + faces.push( faceType ); + faces.push( face.a, face.b, face.c ); + faces.push( face.materialIndex ); + + if ( hasFaceVertexUv ) { + + const faceVertexUvs = this.faceVertexUvs[ 0 ][ i ]; + + faces.push( + getUvIndex( faceVertexUvs[ 0 ] ), + getUvIndex( faceVertexUvs[ 1 ] ), + getUvIndex( faceVertexUvs[ 2 ] ) + ); + + } + + if ( hasFaceNormal ) { + + faces.push( getNormalIndex( face.normal ) ); + + } + + if ( hasFaceVertexNormal ) { + + const vertexNormals = face.vertexNormals; + + faces.push( + getNormalIndex( vertexNormals[ 0 ] ), + getNormalIndex( vertexNormals[ 1 ] ), + getNormalIndex( vertexNormals[ 2 ] ) + ); + + } + + if ( hasFaceColor ) { + + faces.push( getColorIndex( face.color ) ); + + } + + if ( hasFaceVertexColor ) { + + const vertexColors = face.vertexColors; + + faces.push( + getColorIndex( vertexColors[ 0 ] ), + getColorIndex( vertexColors[ 1 ] ), + getColorIndex( vertexColors[ 2 ] ) + ); + + } + + } + + function setBit( value, position, enabled ) { + + return enabled ? value | ( 1 << position ) : value & ( ~ ( 1 << position ) ); + + } + + function getNormalIndex( normal ) { + + const hash = normal.x.toString() + normal.y.toString() + normal.z.toString(); + + if ( normalsHash[ hash ] !== undefined ) { + + return normalsHash[ hash ]; + + } + + normalsHash[ hash ] = normals.length / 3; + normals.push( normal.x, normal.y, normal.z ); + + return normalsHash[ hash ]; + + } + + function getColorIndex( color ) { + + const hash = color.r.toString() + color.g.toString() + color.b.toString(); + + if ( colorsHash[ hash ] !== undefined ) { + + return colorsHash[ hash ]; + + } + + colorsHash[ hash ] = colors.length; + colors.push( color.getHex() ); + + return colorsHash[ hash ]; + + } + + function getUvIndex( uv ) { + + const hash = uv.x.toString() + uv.y.toString(); + + if ( uvsHash[ hash ] !== undefined ) { + + return uvsHash[ hash ]; + + } + + uvsHash[ hash ] = uvs.length / 2; + uvs.push( uv.x, uv.y ); + + return uvsHash[ hash ]; + + } + + data.data = {}; + + data.data.vertices = vertices; + data.data.normals = normals; + if ( colors.length > 0 ) data.data.colors = colors; + if ( uvs.length > 0 ) data.data.uvs = [ uvs ]; // temporal backward compatibility + data.data.faces = faces; + + return data; + + }, + + clone: function () { + + /* + // Handle primitives + + const parameters = this.parameters; + + if ( parameters !== undefined ) { + + const values = []; + + for ( const key in parameters ) { + + values.push( parameters[ key ] ); + + } + + const geometry = Object.create( this.constructor.prototype ); + this.constructor.apply( geometry, values ); + return geometry; + + } + + return new this.constructor().copy( this ); + */ + + return new Geometry().copy( this ); + + }, + + copy: function ( source ) { + + // reset + + this.vertices = []; + this.colors = []; + this.faces = []; + this.faceVertexUvs = [[]]; + this.morphTargets = []; + this.morphNormals = []; + this.skinWeights = []; + this.skinIndices = []; + this.lineDistances = []; + this.boundingBox = null; + this.boundingSphere = null; + + // name + + this.name = source.name; + + // vertices + + const vertices = source.vertices; + + for ( let i = 0, il = vertices.length; i < il; i ++ ) { + + this.vertices.push( vertices[ i ].clone() ); + + } + + // colors + + const colors = source.colors; + + for ( let i = 0, il = colors.length; i < il; i ++ ) { + + this.colors.push( colors[ i ].clone() ); + + } + + // faces + + const faces = source.faces; + + for ( let i = 0, il = faces.length; i < il; i ++ ) { + + this.faces.push( faces[ i ].clone() ); + + } + + // face vertex uvs + + for ( let i = 0, il = source.faceVertexUvs.length; i < il; i ++ ) { + + const faceVertexUvs = source.faceVertexUvs[ i ]; + + if ( this.faceVertexUvs[ i ] === undefined ) { + + this.faceVertexUvs[ i ] = []; + + } + + for ( let j = 0, jl = faceVertexUvs.length; j < jl; j ++ ) { + + const uvs = faceVertexUvs[ j ], uvsCopy = []; + + for ( let k = 0, kl = uvs.length; k < kl; k ++ ) { + + const uv = uvs[ k ]; + + uvsCopy.push( uv.clone() ); + + } + + this.faceVertexUvs[ i ].push( uvsCopy ); + + } + + } + + // morph targets + + const morphTargets = source.morphTargets; + + for ( let i = 0, il = morphTargets.length; i < il; i ++ ) { + + const morphTarget = {}; + morphTarget.name = morphTargets[ i ].name; + + // vertices + + if ( morphTargets[ i ].vertices !== undefined ) { + + morphTarget.vertices = []; + + for ( let j = 0, jl = morphTargets[ i ].vertices.length; j < jl; j ++ ) { + + morphTarget.vertices.push( morphTargets[ i ].vertices[ j ].clone() ); + + } + + } + + // normals + + if ( morphTargets[ i ].normals !== undefined ) { + + morphTarget.normals = []; + + for ( let j = 0, jl = morphTargets[ i ].normals.length; j < jl; j ++ ) { + + morphTarget.normals.push( morphTargets[ i ].normals[ j ].clone() ); + + } + + } + + this.morphTargets.push( morphTarget ); + + } + + // morph normals + + const morphNormals = source.morphNormals; + + for ( let i = 0, il = morphNormals.length; i < il; i ++ ) { + + const morphNormal = {}; + + // vertex normals + + if ( morphNormals[ i ].vertexNormals !== undefined ) { + + morphNormal.vertexNormals = []; + + for ( let j = 0, jl = morphNormals[ i ].vertexNormals.length; j < jl; j ++ ) { + + const srcVertexNormal = morphNormals[ i ].vertexNormals[ j ]; + const destVertexNormal = {}; + + destVertexNormal.a = srcVertexNormal.a.clone(); + destVertexNormal.b = srcVertexNormal.b.clone(); + destVertexNormal.c = srcVertexNormal.c.clone(); + + morphNormal.vertexNormals.push( destVertexNormal ); + + } + + } + + // face normals + + if ( morphNormals[ i ].faceNormals !== undefined ) { + + morphNormal.faceNormals = []; + + for ( let j = 0, jl = morphNormals[ i ].faceNormals.length; j < jl; j ++ ) { + + morphNormal.faceNormals.push( morphNormals[ i ].faceNormals[ j ].clone() ); + + } + + } + + this.morphNormals.push( morphNormal ); + + } + + // skin weights + + const skinWeights = source.skinWeights; + + for ( let i = 0, il = skinWeights.length; i < il; i ++ ) { + + this.skinWeights.push( skinWeights[ i ].clone() ); + + } + + // skin indices + + const skinIndices = source.skinIndices; + + for ( let i = 0, il = skinIndices.length; i < il; i ++ ) { + + this.skinIndices.push( skinIndices[ i ].clone() ); + + } + + // line distances + + const lineDistances = source.lineDistances; + + for ( let i = 0, il = lineDistances.length; i < il; i ++ ) { + + this.lineDistances.push( lineDistances[ i ] ); + + } + + // bounding box + + const boundingBox = source.boundingBox; + + if ( boundingBox !== null ) { + + this.boundingBox = boundingBox.clone(); + + } + + // bounding sphere + + const boundingSphere = source.boundingSphere; + + if ( boundingSphere !== null ) { + + this.boundingSphere = boundingSphere.clone(); + + } + + // update flags + + this.elementsNeedUpdate = source.elementsNeedUpdate; + this.verticesNeedUpdate = source.verticesNeedUpdate; + this.uvsNeedUpdate = source.uvsNeedUpdate; + this.normalsNeedUpdate = source.normalsNeedUpdate; + this.colorsNeedUpdate = source.colorsNeedUpdate; + this.lineDistancesNeedUpdate = source.lineDistancesNeedUpdate; + this.groupsNeedUpdate = source.groupsNeedUpdate; + + return this; + + }, + + dispose: function () { + + this.dispatchEvent( { type: 'dispose' } ); + + } + +} ); + +class BoxGeometry extends Geometry { + + constructor( width, height, depth, widthSegments, heightSegments, depthSegments ) { + + super(); + + this.type = 'BoxGeometry'; + + this.parameters = { + width: width, + height: height, + depth: depth, + widthSegments: widthSegments, + heightSegments: heightSegments, + depthSegments: depthSegments + }; + + this.fromBufferGeometry( new BoxBufferGeometry( width, height, depth, widthSegments, heightSegments, depthSegments ) ); + this.mergeVertices(); + + } + +} + +class CircleBufferGeometry extends BufferGeometry { + + constructor( radius, segments, thetaStart, thetaLength ) { + + super(); + + this.type = 'CircleBufferGeometry'; + + this.parameters = { + radius: radius, + segments: segments, + thetaStart: thetaStart, + thetaLength: thetaLength + }; + + radius = radius || 1; + segments = segments !== undefined ? Math.max( 3, segments ) : 8; + + thetaStart = thetaStart !== undefined ? thetaStart : 0; + thetaLength = thetaLength !== undefined ? thetaLength : Math.PI * 2; + + // buffers + + const indices = []; + const vertices = []; + const normals = []; + const uvs = []; + + // helper variables + + const vertex = new Vector3(); + const uv = new Vector2(); + + // center point + + vertices.push( 0, 0, 0 ); + normals.push( 0, 0, 1 ); + uvs.push( 0.5, 0.5 ); + + for ( let s = 0, i = 3; s <= segments; s ++, i += 3 ) { + + const segment = thetaStart + s / segments * thetaLength; + + // vertex + + vertex.x = radius * Math.cos( segment ); + vertex.y = radius * Math.sin( segment ); + + vertices.push( vertex.x, vertex.y, vertex.z ); + + // normal + + normals.push( 0, 0, 1 ); + + // uvs + + uv.x = ( vertices[ i ] / radius + 1 ) / 2; + uv.y = ( vertices[ i + 1 ] / radius + 1 ) / 2; + + uvs.push( uv.x, uv.y ); + + } + + // indices + + for ( let i = 1; i <= segments; i ++ ) { + + indices.push( i, i + 1, 0 ); + + } + + // build geometry + + this.setIndex( indices ); + this.setAttribute( 'position', new Float32BufferAttribute( vertices, 3 ) ); + this.setAttribute( 'normal', new Float32BufferAttribute( normals, 3 ) ); + this.setAttribute( 'uv', new Float32BufferAttribute( uvs, 2 ) ); + + } + +} + +class CircleGeometry extends Geometry { + + constructor( radius, segments, thetaStart, thetaLength ) { + + super(); + this.type = 'CircleGeometry'; + + this.parameters = { + radius: radius, + segments: segments, + thetaStart: thetaStart, + thetaLength: thetaLength + }; + + this.fromBufferGeometry( new CircleBufferGeometry( radius, segments, thetaStart, thetaLength ) ); + this.mergeVertices(); + + } + +} + +class CylinderBufferGeometry extends BufferGeometry { + + constructor( radiusTop, radiusBottom, height, radialSegments, heightSegments, openEnded, thetaStart, thetaLength ) { + + super(); + this.type = 'CylinderBufferGeometry'; + + this.parameters = { + radiusTop: radiusTop, + radiusBottom: radiusBottom, + height: height, + radialSegments: radialSegments, + heightSegments: heightSegments, + openEnded: openEnded, + thetaStart: thetaStart, + thetaLength: thetaLength + }; + + const scope = this; + + radiusTop = radiusTop !== undefined ? radiusTop : 1; + radiusBottom = radiusBottom !== undefined ? radiusBottom : 1; + height = height || 1; + + radialSegments = Math.floor( radialSegments ) || 8; + heightSegments = Math.floor( heightSegments ) || 1; + + openEnded = openEnded !== undefined ? openEnded : false; + thetaStart = thetaStart !== undefined ? thetaStart : 0.0; + thetaLength = thetaLength !== undefined ? thetaLength : Math.PI * 2; + + // buffers + + const indices = []; + const vertices = []; + const normals = []; + const uvs = []; + + // helper variables + + let index = 0; + const indexArray = []; + const halfHeight = height / 2; + let groupStart = 0; + + // generate geometry + + generateTorso(); + + if ( openEnded === false ) { + + if ( radiusTop > 0 ) generateCap( true ); + if ( radiusBottom > 0 ) generateCap( false ); + + } + + // build geometry + + this.setIndex( indices ); + this.setAttribute( 'position', new Float32BufferAttribute( vertices, 3 ) ); + this.setAttribute( 'normal', new Float32BufferAttribute( normals, 3 ) ); + this.setAttribute( 'uv', new Float32BufferAttribute( uvs, 2 ) ); + + function generateTorso() { + + const normal = new Vector3(); + const vertex = new Vector3(); + + let groupCount = 0; + + // this will be used to calculate the normal + const slope = ( radiusBottom - radiusTop ) / height; + + // generate vertices, normals and uvs + + for ( let y = 0; y <= heightSegments; y ++ ) { + + const indexRow = []; + + const v = y / heightSegments; + + // calculate the radius of the current row + + const radius = v * ( radiusBottom - radiusTop ) + radiusTop; + + for ( let x = 0; x <= radialSegments; x ++ ) { + + const u = x / radialSegments; + + const theta = u * thetaLength + thetaStart; + + const sinTheta = Math.sin( theta ); + const cosTheta = Math.cos( theta ); + + // vertex + + vertex.x = radius * sinTheta; + vertex.y = - v * height + halfHeight; + vertex.z = radius * cosTheta; + vertices.push( vertex.x, vertex.y, vertex.z ); + + // normal + + normal.set( sinTheta, slope, cosTheta ).normalize(); + normals.push( normal.x, normal.y, normal.z ); + + // uv + + uvs.push( u, 1 - v ); + + // save index of vertex in respective row + + indexRow.push( index ++ ); + + } + + // now save vertices of the row in our index array + + indexArray.push( indexRow ); + + } + + // generate indices + + for ( let x = 0; x < radialSegments; x ++ ) { + + for ( let y = 0; y < heightSegments; y ++ ) { + + // we use the index array to access the correct indices + + const a = indexArray[ y ][ x ]; + const b = indexArray[ y + 1 ][ x ]; + const c = indexArray[ y + 1 ][ x + 1 ]; + const d = indexArray[ y ][ x + 1 ]; + + // faces + + indices.push( a, b, d ); + indices.push( b, c, d ); + + // update group counter + + groupCount += 6; + + } + + } + + // add a group to the geometry. this will ensure multi material support + + scope.addGroup( groupStart, groupCount, 0 ); + + // calculate new start value for groups + + groupStart += groupCount; + + } + + function generateCap( top ) { + + // save the index of the first center vertex + const centerIndexStart = index; + + const uv = new Vector2(); + const vertex = new Vector3(); + + let groupCount = 0; + + const radius = ( top === true ) ? radiusTop : radiusBottom; + const sign = ( top === true ) ? 1 : - 1; + + // first we generate the center vertex data of the cap. + // because the geometry needs one set of uvs per face, + // we must generate a center vertex per face/segment + + for ( let x = 1; x <= radialSegments; x ++ ) { + + // vertex + + vertices.push( 0, halfHeight * sign, 0 ); + + // normal + + normals.push( 0, sign, 0 ); + + // uv + + uvs.push( 0.5, 0.5 ); + + // increase index + + index ++; + + } + + // save the index of the last center vertex + const centerIndexEnd = index; + + // now we generate the surrounding vertices, normals and uvs + + for ( let x = 0; x <= radialSegments; x ++ ) { + + const u = x / radialSegments; + const theta = u * thetaLength + thetaStart; + + const cosTheta = Math.cos( theta ); + const sinTheta = Math.sin( theta ); + + // vertex + + vertex.x = radius * sinTheta; + vertex.y = halfHeight * sign; + vertex.z = radius * cosTheta; + vertices.push( vertex.x, vertex.y, vertex.z ); + + // normal + + normals.push( 0, sign, 0 ); + + // uv + + uv.x = ( cosTheta * 0.5 ) + 0.5; + uv.y = ( sinTheta * 0.5 * sign ) + 0.5; + uvs.push( uv.x, uv.y ); + + // increase index + + index ++; + + } + + // generate indices + + for ( let x = 0; x < radialSegments; x ++ ) { + + const c = centerIndexStart + x; + const i = centerIndexEnd + x; + + if ( top === true ) { + + // face top + + indices.push( i, i + 1, c ); + + } else { + + // face bottom + + indices.push( i + 1, i, c ); + + } + + groupCount += 3; + + } + + // add a group to the geometry. this will ensure multi material support + + scope.addGroup( groupStart, groupCount, top === true ? 1 : 2 ); + + // calculate new start value for groups + + groupStart += groupCount; + + } + + } + +} + +class CylinderGeometry extends Geometry { + + constructor( radiusTop, radiusBottom, height, radialSegments, heightSegments, openEnded, thetaStart, thetaLength ) { + + super(); + this.type = 'CylinderGeometry'; + + this.parameters = { + radiusTop: radiusTop, + radiusBottom: radiusBottom, + height: height, + radialSegments: radialSegments, + heightSegments: heightSegments, + openEnded: openEnded, + thetaStart: thetaStart, + thetaLength: thetaLength + }; + + this.fromBufferGeometry( new CylinderBufferGeometry( radiusTop, radiusBottom, height, radialSegments, heightSegments, openEnded, thetaStart, thetaLength ) ); + this.mergeVertices(); + + } + +} + +class ConeGeometry extends CylinderGeometry { + + constructor( radius, height, radialSegments, heightSegments, openEnded, thetaStart, thetaLength ) { + + super( 0, radius, height, radialSegments, heightSegments, openEnded, thetaStart, thetaLength ); + this.type = 'ConeGeometry'; + + this.parameters = { + radius: radius, + height: height, + radialSegments: radialSegments, + heightSegments: heightSegments, + openEnded: openEnded, + thetaStart: thetaStart, + thetaLength: thetaLength + }; + + } + +} + +class ConeBufferGeometry extends CylinderBufferGeometry { + + constructor( radius, height, radialSegments, heightSegments, openEnded, thetaStart, thetaLength ) { + + super( 0, radius, height, radialSegments, heightSegments, openEnded, thetaStart, thetaLength ); + this.type = 'ConeBufferGeometry'; + + this.parameters = { + radius: radius, + height: height, + radialSegments: radialSegments, + heightSegments: heightSegments, + openEnded: openEnded, + thetaStart: thetaStart, + thetaLength: thetaLength + }; + + } + +} + +class PolyhedronBufferGeometry extends BufferGeometry { + + constructor( vertices, indices, radius, detail ) { + + super(); + + this.type = 'PolyhedronBufferGeometry'; + + this.parameters = { + vertices: vertices, + indices: indices, + radius: radius, + detail: detail + }; + + radius = radius || 1; + detail = detail || 0; + + // default buffer data + + const vertexBuffer = []; + const uvBuffer = []; + + // the subdivision creates the vertex buffer data + + subdivide( detail ); + + // all vertices should lie on a conceptual sphere with a given radius + + applyRadius( radius ); + + // finally, create the uv data + + generateUVs(); + + // build non-indexed geometry + + this.setAttribute( 'position', new Float32BufferAttribute( vertexBuffer, 3 ) ); + this.setAttribute( 'normal', new Float32BufferAttribute( vertexBuffer.slice(), 3 ) ); + this.setAttribute( 'uv', new Float32BufferAttribute( uvBuffer, 2 ) ); + + if ( detail === 0 ) { + + this.computeVertexNormals(); // flat normals + + } else { + + this.normalizeNormals(); // smooth normals + + } + + // helper functions + + function subdivide( detail ) { + + const a = new Vector3(); + const b = new Vector3(); + const c = new Vector3(); + + // iterate over all faces and apply a subdivison with the given detail value + + for ( let i = 0; i < indices.length; i += 3 ) { + + // get the vertices of the face + + getVertexByIndex( indices[ i + 0 ], a ); + getVertexByIndex( indices[ i + 1 ], b ); + getVertexByIndex( indices[ i + 2 ], c ); + + // perform subdivision + + subdivideFace( a, b, c, detail ); + + } + + } + + function subdivideFace( a, b, c, detail ) { + + const cols = detail + 1; + + // we use this multidimensional array as a data structure for creating the subdivision + + const v = []; + + // construct all of the vertices for this subdivision + + for ( let i = 0; i <= cols; i ++ ) { + + v[ i ] = []; + + const aj = a.clone().lerp( c, i / cols ); + const bj = b.clone().lerp( c, i / cols ); + + const rows = cols - i; + + for ( let j = 0; j <= rows; j ++ ) { + + if ( j === 0 && i === cols ) { + + v[ i ][ j ] = aj; + + } else { + + v[ i ][ j ] = aj.clone().lerp( bj, j / rows ); + + } + + } + + } + + // construct all of the faces + + for ( let i = 0; i < cols; i ++ ) { + + for ( let j = 0; j < 2 * ( cols - i ) - 1; j ++ ) { + + const k = Math.floor( j / 2 ); + + if ( j % 2 === 0 ) { + + pushVertex( v[ i ][ k + 1 ] ); + pushVertex( v[ i + 1 ][ k ] ); + pushVertex( v[ i ][ k ] ); + + } else { + + pushVertex( v[ i ][ k + 1 ] ); + pushVertex( v[ i + 1 ][ k + 1 ] ); + pushVertex( v[ i + 1 ][ k ] ); + + } + + } + + } + + } + + function applyRadius( radius ) { + + const vertex = new Vector3(); + + // iterate over the entire buffer and apply the radius to each vertex + + for ( let i = 0; i < vertexBuffer.length; i += 3 ) { + + vertex.x = vertexBuffer[ i + 0 ]; + vertex.y = vertexBuffer[ i + 1 ]; + vertex.z = vertexBuffer[ i + 2 ]; + + vertex.normalize().multiplyScalar( radius ); + + vertexBuffer[ i + 0 ] = vertex.x; + vertexBuffer[ i + 1 ] = vertex.y; + vertexBuffer[ i + 2 ] = vertex.z; + + } + + } + + function generateUVs() { + + const vertex = new Vector3(); + + for ( let i = 0; i < vertexBuffer.length; i += 3 ) { + + vertex.x = vertexBuffer[ i + 0 ]; + vertex.y = vertexBuffer[ i + 1 ]; + vertex.z = vertexBuffer[ i + 2 ]; + + const u = azimuth( vertex ) / 2 / Math.PI + 0.5; + const v = inclination( vertex ) / Math.PI + 0.5; + uvBuffer.push( u, 1 - v ); + + } + + correctUVs(); + + correctSeam(); + + } + + function correctSeam() { + + // handle case when face straddles the seam, see #3269 + + for ( let i = 0; i < uvBuffer.length; i += 6 ) { + + // uv data of a single face + + const x0 = uvBuffer[ i + 0 ]; + const x1 = uvBuffer[ i + 2 ]; + const x2 = uvBuffer[ i + 4 ]; + + const max = Math.max( x0, x1, x2 ); + const min = Math.min( x0, x1, x2 ); + + // 0.9 is somewhat arbitrary + + if ( max > 0.9 && min < 0.1 ) { + + if ( x0 < 0.2 ) uvBuffer[ i + 0 ] += 1; + if ( x1 < 0.2 ) uvBuffer[ i + 2 ] += 1; + if ( x2 < 0.2 ) uvBuffer[ i + 4 ] += 1; + + } + + } + + } + + function pushVertex( vertex ) { + + vertexBuffer.push( vertex.x, vertex.y, vertex.z ); + + } + + function getVertexByIndex( index, vertex ) { + + const stride = index * 3; + + vertex.x = vertices[ stride + 0 ]; + vertex.y = vertices[ stride + 1 ]; + vertex.z = vertices[ stride + 2 ]; + + } + + function correctUVs() { + + const a = new Vector3(); + const b = new Vector3(); + const c = new Vector3(); + + const centroid = new Vector3(); + + const uvA = new Vector2(); + const uvB = new Vector2(); + const uvC = new Vector2(); + + for ( let i = 0, j = 0; i < vertexBuffer.length; i += 9, j += 6 ) { + + a.set( vertexBuffer[ i + 0 ], vertexBuffer[ i + 1 ], vertexBuffer[ i + 2 ] ); + b.set( vertexBuffer[ i + 3 ], vertexBuffer[ i + 4 ], vertexBuffer[ i + 5 ] ); + c.set( vertexBuffer[ i + 6 ], vertexBuffer[ i + 7 ], vertexBuffer[ i + 8 ] ); + + uvA.set( uvBuffer[ j + 0 ], uvBuffer[ j + 1 ] ); + uvB.set( uvBuffer[ j + 2 ], uvBuffer[ j + 3 ] ); + uvC.set( uvBuffer[ j + 4 ], uvBuffer[ j + 5 ] ); + + centroid.copy( a ).add( b ).add( c ).divideScalar( 3 ); + + const azi = azimuth( centroid ); + + correctUV( uvA, j + 0, a, azi ); + correctUV( uvB, j + 2, b, azi ); + correctUV( uvC, j + 4, c, azi ); + + } + + } + + function correctUV( uv, stride, vector, azimuth ) { + + if ( ( azimuth < 0 ) && ( uv.x === 1 ) ) { + + uvBuffer[ stride ] = uv.x - 1; + + } + + if ( ( vector.x === 0 ) && ( vector.z === 0 ) ) { + + uvBuffer[ stride ] = azimuth / 2 / Math.PI + 0.5; + + } + + } + + // Angle around the Y axis, counter-clockwise when looking from above. + + function azimuth( vector ) { + + return Math.atan2( vector.z, - vector.x ); + + } + + + // Angle above the XZ plane. + + function inclination( vector ) { + + return Math.atan2( - vector.y, Math.sqrt( ( vector.x * vector.x ) + ( vector.z * vector.z ) ) ); + + } + + } + +} + +class DodecahedronBufferGeometry extends PolyhedronBufferGeometry { + + constructor( radius, detail ) { + + const t = ( 1 + Math.sqrt( 5 ) ) / 2; + const r = 1 / t; + + const vertices = [ + + // (±1, ±1, ±1) + - 1, - 1, - 1, - 1, - 1, 1, + - 1, 1, - 1, - 1, 1, 1, + 1, - 1, - 1, 1, - 1, 1, + 1, 1, - 1, 1, 1, 1, + + // (0, ±1/φ, ±φ) + 0, - r, - t, 0, - r, t, + 0, r, - t, 0, r, t, + + // (±1/φ, ±φ, 0) + - r, - t, 0, - r, t, 0, + r, - t, 0, r, t, 0, + + // (±φ, 0, ±1/φ) + - t, 0, - r, t, 0, - r, + - t, 0, r, t, 0, r + ]; + + const indices = [ + 3, 11, 7, 3, 7, 15, 3, 15, 13, + 7, 19, 17, 7, 17, 6, 7, 6, 15, + 17, 4, 8, 17, 8, 10, 17, 10, 6, + 8, 0, 16, 8, 16, 2, 8, 2, 10, + 0, 12, 1, 0, 1, 18, 0, 18, 16, + 6, 10, 2, 6, 2, 13, 6, 13, 15, + 2, 16, 18, 2, 18, 3, 2, 3, 13, + 18, 1, 9, 18, 9, 11, 18, 11, 3, + 4, 14, 12, 4, 12, 0, 4, 0, 8, + 11, 9, 5, 11, 5, 19, 11, 19, 7, + 19, 5, 14, 19, 14, 4, 19, 4, 17, + 1, 12, 14, 1, 14, 5, 1, 5, 9 + ]; + + super( vertices, indices, radius, detail ); + + this.type = 'DodecahedronBufferGeometry'; + + this.parameters = { + radius: radius, + detail: detail + }; + + } + +} + +class DodecahedronGeometry extends Geometry { + + constructor( radius, detail ) { + + super(); + this.type = 'DodecahedronGeometry'; + + this.parameters = { + radius: radius, + detail: detail + }; + + this.fromBufferGeometry( new DodecahedronBufferGeometry( radius, detail ) ); + this.mergeVertices(); + + } + +} + +const _v0$2 = new Vector3(); +const _v1$5 = new Vector3(); +const _normal$1 = new Vector3(); +const _triangle = new Triangle(); + +class EdgesGeometry extends BufferGeometry { + + constructor( geometry, thresholdAngle ) { + + super(); + + this.type = 'EdgesGeometry'; + + this.parameters = { + thresholdAngle: thresholdAngle + }; + + thresholdAngle = ( thresholdAngle !== undefined ) ? thresholdAngle : 1; + + if ( geometry.isGeometry ) { + + geometry = new BufferGeometry().fromGeometry( geometry ); + + } + + const precisionPoints = 4; + const precision = Math.pow( 10, precisionPoints ); + const thresholdDot = Math.cos( MathUtils.DEG2RAD * thresholdAngle ); + + const indexAttr = geometry.getIndex(); + const positionAttr = geometry.getAttribute( 'position' ); + const indexCount = indexAttr ? indexAttr.count : positionAttr.count; + + const indexArr = [ 0, 0, 0 ]; + const vertKeys = [ 'a', 'b', 'c' ]; + const hashes = new Array( 3 ); + + const edgeData = {}; + const vertices = []; + for ( let i = 0; i < indexCount; i += 3 ) { + + if ( indexAttr ) { + + indexArr[ 0 ] = indexAttr.getX( i ); + indexArr[ 1 ] = indexAttr.getX( i + 1 ); + indexArr[ 2 ] = indexAttr.getX( i + 2 ); + + } else { + + indexArr[ 0 ] = i; + indexArr[ 1 ] = i + 1; + indexArr[ 2 ] = i + 2; + + } + + const { a, b, c } = _triangle; + a.fromBufferAttribute( positionAttr, indexArr[ 0 ] ); + b.fromBufferAttribute( positionAttr, indexArr[ 1 ] ); + c.fromBufferAttribute( positionAttr, indexArr[ 2 ] ); + _triangle.getNormal( _normal$1 ); + + // create hashes for the edge from the vertices + hashes[ 0 ] = `${ Math.round( a.x * precision ) },${ Math.round( a.y * precision ) },${ Math.round( a.z * precision ) }`; + hashes[ 1 ] = `${ Math.round( b.x * precision ) },${ Math.round( b.y * precision ) },${ Math.round( b.z * precision ) }`; + hashes[ 2 ] = `${ Math.round( c.x * precision ) },${ Math.round( c.y * precision ) },${ Math.round( c.z * precision ) }`; + + // skip degenerate triangles + if ( hashes[ 0 ] === hashes[ 1 ] || hashes[ 1 ] === hashes[ 2 ] || hashes[ 2 ] === hashes[ 0 ] ) { + + continue; + + } + + // iterate over every edge + for ( let j = 0; j < 3; j ++ ) { + + // get the first and next vertex making up the edge + const jNext = ( j + 1 ) % 3; + const vecHash0 = hashes[ j ]; + const vecHash1 = hashes[ jNext ]; + const v0 = _triangle[ vertKeys[ j ] ]; + const v1 = _triangle[ vertKeys[ jNext ] ]; + + const hash = `${ vecHash0 }_${ vecHash1 }`; + const reverseHash = `${ vecHash1 }_${ vecHash0 }`; + + if ( reverseHash in edgeData && edgeData[ reverseHash ] ) { + + // if we found a sibling edge add it into the vertex array if + // it meets the angle threshold and delete the edge from the map. + if ( _normal$1.dot( edgeData[ reverseHash ].normal ) <= thresholdDot ) { + + vertices.push( v0.x, v0.y, v0.z ); + vertices.push( v1.x, v1.y, v1.z ); + + } + + edgeData[ reverseHash ] = null; + + } else if ( ! ( hash in edgeData ) ) { + + // if we've already got an edge here then skip adding a new one + edgeData[ hash ] = { + + index0: indexArr[ j ], + index1: indexArr[ jNext ], + normal: _normal$1.clone(), + + }; + + } + + } + + } + + // iterate over all remaining, unmatched edges and add them to the vertex array + for ( const key in edgeData ) { + + if ( edgeData[ key ] ) { + + const { index0, index1 } = edgeData[ key ]; + _v0$2.fromBufferAttribute( positionAttr, index0 ); + _v1$5.fromBufferAttribute( positionAttr, index1 ); + + vertices.push( _v0$2.x, _v0$2.y, _v0$2.z ); + vertices.push( _v1$5.x, _v1$5.y, _v1$5.z ); + + } + + } + + this.setAttribute( 'position', new Float32BufferAttribute( vertices, 3 ) ); + + } + +} + +/** + * Port from https://github.com/mapbox/earcut (v2.2.2) + */ + +const Earcut = { + + triangulate: function ( data, holeIndices, dim ) { + + dim = dim || 2; + + const hasHoles = holeIndices && holeIndices.length; + const outerLen = hasHoles ? holeIndices[ 0 ] * dim : data.length; + let outerNode = linkedList( data, 0, outerLen, dim, true ); + const triangles = []; + + if ( ! outerNode || outerNode.next === outerNode.prev ) return triangles; + + let minX, minY, maxX, maxY, x, y, invSize; + + if ( hasHoles ) outerNode = eliminateHoles( data, holeIndices, outerNode, dim ); + + // if the shape is not too simple, we'll use z-order curve hash later; calculate polygon bbox + if ( data.length > 80 * dim ) { + + minX = maxX = data[ 0 ]; + minY = maxY = data[ 1 ]; + + for ( let i = dim; i < outerLen; i += dim ) { + + x = data[ i ]; + y = data[ i + 1 ]; + if ( x < minX ) minX = x; + if ( y < minY ) minY = y; + if ( x > maxX ) maxX = x; + if ( y > maxY ) maxY = y; + + } + + // minX, minY and invSize are later used to transform coords into integers for z-order calculation + invSize = Math.max( maxX - minX, maxY - minY ); + invSize = invSize !== 0 ? 1 / invSize : 0; + + } + + earcutLinked( outerNode, triangles, dim, minX, minY, invSize ); + + return triangles; + + } + +}; + +// create a circular doubly linked list from polygon points in the specified winding order +function linkedList( data, start, end, dim, clockwise ) { + + let i, last; + + if ( clockwise === ( signedArea( data, start, end, dim ) > 0 ) ) { + + for ( i = start; i < end; i += dim ) last = insertNode( i, data[ i ], data[ i + 1 ], last ); + + } else { + + for ( i = end - dim; i >= start; i -= dim ) last = insertNode( i, data[ i ], data[ i + 1 ], last ); + + } + + if ( last && equals( last, last.next ) ) { + + removeNode( last ); + last = last.next; + + } + + return last; + +} + +// eliminate colinear or duplicate points +function filterPoints( start, end ) { + + if ( ! start ) return start; + if ( ! end ) end = start; + + let p = start, + again; + do { + + again = false; + + if ( ! p.steiner && ( equals( p, p.next ) || area( p.prev, p, p.next ) === 0 ) ) { + + removeNode( p ); + p = end = p.prev; + if ( p === p.next ) break; + again = true; + + } else { + + p = p.next; + + } + + } while ( again || p !== end ); + + return end; + +} + +// main ear slicing loop which triangulates a polygon (given as a linked list) +function earcutLinked( ear, triangles, dim, minX, minY, invSize, pass ) { + + if ( ! ear ) return; + + // interlink polygon nodes in z-order + if ( ! pass && invSize ) indexCurve( ear, minX, minY, invSize ); + + let stop = ear, + prev, next; + + // iterate through ears, slicing them one by one + while ( ear.prev !== ear.next ) { + + prev = ear.prev; + next = ear.next; + + if ( invSize ? isEarHashed( ear, minX, minY, invSize ) : isEar( ear ) ) { + + // cut off the triangle + triangles.push( prev.i / dim ); + triangles.push( ear.i / dim ); + triangles.push( next.i / dim ); + + removeNode( ear ); + + // skipping the next vertex leads to less sliver triangles + ear = next.next; + stop = next.next; + + continue; + + } + + ear = next; + + // if we looped through the whole remaining polygon and can't find any more ears + if ( ear === stop ) { + + // try filtering points and slicing again + if ( ! pass ) { + + earcutLinked( filterPoints( ear ), triangles, dim, minX, minY, invSize, 1 ); + + // if this didn't work, try curing all small self-intersections locally + + } else if ( pass === 1 ) { + + ear = cureLocalIntersections( filterPoints( ear ), triangles, dim ); + earcutLinked( ear, triangles, dim, minX, minY, invSize, 2 ); + + // as a last resort, try splitting the remaining polygon into two + + } else if ( pass === 2 ) { + + splitEarcut( ear, triangles, dim, minX, minY, invSize ); + + } + + break; + + } + + } + +} + +// check whether a polygon node forms a valid ear with adjacent nodes +function isEar( ear ) { + + const a = ear.prev, + b = ear, + c = ear.next; + + if ( area( a, b, c ) >= 0 ) return false; // reflex, can't be an ear + + // now make sure we don't have other points inside the potential ear + let p = ear.next.next; + + while ( p !== ear.prev ) { + + if ( pointInTriangle( a.x, a.y, b.x, b.y, c.x, c.y, p.x, p.y ) && + area( p.prev, p, p.next ) >= 0 ) return false; + p = p.next; + + } + + return true; + +} + +function isEarHashed( ear, minX, minY, invSize ) { + + const a = ear.prev, + b = ear, + c = ear.next; + + if ( area( a, b, c ) >= 0 ) return false; // reflex, can't be an ear + + // triangle bbox; min & max are calculated like this for speed + const minTX = a.x < b.x ? ( a.x < c.x ? a.x : c.x ) : ( b.x < c.x ? b.x : c.x ), + minTY = a.y < b.y ? ( a.y < c.y ? a.y : c.y ) : ( b.y < c.y ? b.y : c.y ), + maxTX = a.x > b.x ? ( a.x > c.x ? a.x : c.x ) : ( b.x > c.x ? b.x : c.x ), + maxTY = a.y > b.y ? ( a.y > c.y ? a.y : c.y ) : ( b.y > c.y ? b.y : c.y ); + + // z-order range for the current triangle bbox; + const minZ = zOrder( minTX, minTY, minX, minY, invSize ), + maxZ = zOrder( maxTX, maxTY, minX, minY, invSize ); + + let p = ear.prevZ, + n = ear.nextZ; + + // look for points inside the triangle in both directions + while ( p && p.z >= minZ && n && n.z <= maxZ ) { + + if ( p !== ear.prev && p !== ear.next && + pointInTriangle( a.x, a.y, b.x, b.y, c.x, c.y, p.x, p.y ) && + area( p.prev, p, p.next ) >= 0 ) return false; + p = p.prevZ; + + if ( n !== ear.prev && n !== ear.next && + pointInTriangle( a.x, a.y, b.x, b.y, c.x, c.y, n.x, n.y ) && + area( n.prev, n, n.next ) >= 0 ) return false; + n = n.nextZ; + + } + + // look for remaining points in decreasing z-order + while ( p && p.z >= minZ ) { + + if ( p !== ear.prev && p !== ear.next && + pointInTriangle( a.x, a.y, b.x, b.y, c.x, c.y, p.x, p.y ) && + area( p.prev, p, p.next ) >= 0 ) return false; + p = p.prevZ; + + } + + // look for remaining points in increasing z-order + while ( n && n.z <= maxZ ) { + + if ( n !== ear.prev && n !== ear.next && + pointInTriangle( a.x, a.y, b.x, b.y, c.x, c.y, n.x, n.y ) && + area( n.prev, n, n.next ) >= 0 ) return false; + n = n.nextZ; + + } + + return true; + +} + +// go through all polygon nodes and cure small local self-intersections +function cureLocalIntersections( start, triangles, dim ) { + + let p = start; + do { + + const a = p.prev, + b = p.next.next; + + if ( ! equals( a, b ) && intersects( a, p, p.next, b ) && locallyInside( a, b ) && locallyInside( b, a ) ) { + + triangles.push( a.i / dim ); + triangles.push( p.i / dim ); + triangles.push( b.i / dim ); + + // remove two nodes involved + removeNode( p ); + removeNode( p.next ); + + p = start = b; + + } + + p = p.next; + + } while ( p !== start ); + + return filterPoints( p ); + +} + +// try splitting polygon into two and triangulate them independently +function splitEarcut( start, triangles, dim, minX, minY, invSize ) { + + // look for a valid diagonal that divides the polygon into two + let a = start; + do { + + let b = a.next.next; + while ( b !== a.prev ) { + + if ( a.i !== b.i && isValidDiagonal( a, b ) ) { + + // split the polygon in two by the diagonal + let c = splitPolygon( a, b ); + + // filter colinear points around the cuts + a = filterPoints( a, a.next ); + c = filterPoints( c, c.next ); + + // run earcut on each half + earcutLinked( a, triangles, dim, minX, minY, invSize ); + earcutLinked( c, triangles, dim, minX, minY, invSize ); + return; + + } + + b = b.next; + + } + + a = a.next; + + } while ( a !== start ); + +} + +// link every hole into the outer loop, producing a single-ring polygon without holes +function eliminateHoles( data, holeIndices, outerNode, dim ) { + + const queue = []; + let i, len, start, end, list; + + for ( i = 0, len = holeIndices.length; i < len; i ++ ) { + + start = holeIndices[ i ] * dim; + end = i < len - 1 ? holeIndices[ i + 1 ] * dim : data.length; + list = linkedList( data, start, end, dim, false ); + if ( list === list.next ) list.steiner = true; + queue.push( getLeftmost( list ) ); + + } + + queue.sort( compareX ); + + // process holes from left to right + for ( i = 0; i < queue.length; i ++ ) { + + eliminateHole( queue[ i ], outerNode ); + outerNode = filterPoints( outerNode, outerNode.next ); + + } + + return outerNode; + +} + +function compareX( a, b ) { + + return a.x - b.x; + +} + +// find a bridge between vertices that connects hole with an outer ring and and link it +function eliminateHole( hole, outerNode ) { + + outerNode = findHoleBridge( hole, outerNode ); + if ( outerNode ) { + + const b = splitPolygon( outerNode, hole ); + + // filter collinear points around the cuts + filterPoints( outerNode, outerNode.next ); + filterPoints( b, b.next ); + + } + +} + +// David Eberly's algorithm for finding a bridge between hole and outer polygon +function findHoleBridge( hole, outerNode ) { + + let p = outerNode; + const hx = hole.x; + const hy = hole.y; + let qx = - Infinity, m; + + // find a segment intersected by a ray from the hole's leftmost point to the left; + // segment's endpoint with lesser x will be potential connection point + do { + + if ( hy <= p.y && hy >= p.next.y && p.next.y !== p.y ) { + + const x = p.x + ( hy - p.y ) * ( p.next.x - p.x ) / ( p.next.y - p.y ); + if ( x <= hx && x > qx ) { + + qx = x; + if ( x === hx ) { + + if ( hy === p.y ) return p; + if ( hy === p.next.y ) return p.next; + + } + + m = p.x < p.next.x ? p : p.next; + + } + + } + + p = p.next; + + } while ( p !== outerNode ); + + if ( ! m ) return null; + + if ( hx === qx ) return m; // hole touches outer segment; pick leftmost endpoint + + // look for points inside the triangle of hole point, segment intersection and endpoint; + // if there are no points found, we have a valid connection; + // otherwise choose the point of the minimum angle with the ray as connection point + + const stop = m, + mx = m.x, + my = m.y; + let tanMin = Infinity, tan; + + p = m; + + do { + + if ( hx >= p.x && p.x >= mx && hx !== p.x && + pointInTriangle( hy < my ? hx : qx, hy, mx, my, hy < my ? qx : hx, hy, p.x, p.y ) ) { + + tan = Math.abs( hy - p.y ) / ( hx - p.x ); // tangential + + if ( locallyInside( p, hole ) && ( tan < tanMin || ( tan === tanMin && ( p.x > m.x || ( p.x === m.x && sectorContainsSector( m, p ) ) ) ) ) ) { + + m = p; + tanMin = tan; + + } + + } + + p = p.next; + + } while ( p !== stop ); + + return m; + +} + +// whether sector in vertex m contains sector in vertex p in the same coordinates +function sectorContainsSector( m, p ) { + + return area( m.prev, m, p.prev ) < 0 && area( p.next, m, m.next ) < 0; + +} + +// interlink polygon nodes in z-order +function indexCurve( start, minX, minY, invSize ) { + + let p = start; + do { + + if ( p.z === null ) p.z = zOrder( p.x, p.y, minX, minY, invSize ); + p.prevZ = p.prev; + p.nextZ = p.next; + p = p.next; + + } while ( p !== start ); + + p.prevZ.nextZ = null; + p.prevZ = null; + + sortLinked( p ); + +} + +// Simon Tatham's linked list merge sort algorithm +// http://www.chiark.greenend.org.uk/~sgtatham/algorithms/listsort.html +function sortLinked( list ) { + + let i, p, q, e, tail, numMerges, pSize, qSize, + inSize = 1; + + do { + + p = list; + list = null; + tail = null; + numMerges = 0; + + while ( p ) { + + numMerges ++; + q = p; + pSize = 0; + for ( i = 0; i < inSize; i ++ ) { + + pSize ++; + q = q.nextZ; + if ( ! q ) break; + + } + + qSize = inSize; + + while ( pSize > 0 || ( qSize > 0 && q ) ) { + + if ( pSize !== 0 && ( qSize === 0 || ! q || p.z <= q.z ) ) { + + e = p; + p = p.nextZ; + pSize --; + + } else { + + e = q; + q = q.nextZ; + qSize --; + + } + + if ( tail ) tail.nextZ = e; + else list = e; + + e.prevZ = tail; + tail = e; + + } + + p = q; + + } + + tail.nextZ = null; + inSize *= 2; + + } while ( numMerges > 1 ); + + return list; + +} + +// z-order of a point given coords and inverse of the longer side of data bbox +function zOrder( x, y, minX, minY, invSize ) { + + // coords are transformed into non-negative 15-bit integer range + x = 32767 * ( x - minX ) * invSize; + y = 32767 * ( y - minY ) * invSize; + + x = ( x | ( x << 8 ) ) & 0x00FF00FF; + x = ( x | ( x << 4 ) ) & 0x0F0F0F0F; + x = ( x | ( x << 2 ) ) & 0x33333333; + x = ( x | ( x << 1 ) ) & 0x55555555; + + y = ( y | ( y << 8 ) ) & 0x00FF00FF; + y = ( y | ( y << 4 ) ) & 0x0F0F0F0F; + y = ( y | ( y << 2 ) ) & 0x33333333; + y = ( y | ( y << 1 ) ) & 0x55555555; + + return x | ( y << 1 ); + +} + +// find the leftmost node of a polygon ring +function getLeftmost( start ) { + + let p = start, + leftmost = start; + do { + + if ( p.x < leftmost.x || ( p.x === leftmost.x && p.y < leftmost.y ) ) leftmost = p; + p = p.next; + + } while ( p !== start ); + + return leftmost; + +} + +// check if a point lies within a convex triangle +function pointInTriangle( ax, ay, bx, by, cx, cy, px, py ) { + + return ( cx - px ) * ( ay - py ) - ( ax - px ) * ( cy - py ) >= 0 && + ( ax - px ) * ( by - py ) - ( bx - px ) * ( ay - py ) >= 0 && + ( bx - px ) * ( cy - py ) - ( cx - px ) * ( by - py ) >= 0; + +} + +// check if a diagonal between two polygon nodes is valid (lies in polygon interior) +function isValidDiagonal( a, b ) { + + return a.next.i !== b.i && a.prev.i !== b.i && ! intersectsPolygon( a, b ) && // dones't intersect other edges + ( locallyInside( a, b ) && locallyInside( b, a ) && middleInside( a, b ) && // locally visible + ( area( a.prev, a, b.prev ) || area( a, b.prev, b ) ) || // does not create opposite-facing sectors + equals( a, b ) && area( a.prev, a, a.next ) > 0 && area( b.prev, b, b.next ) > 0 ); // special zero-length case + +} + +// signed area of a triangle +function area( p, q, r ) { + + return ( q.y - p.y ) * ( r.x - q.x ) - ( q.x - p.x ) * ( r.y - q.y ); + +} + +// check if two points are equal +function equals( p1, p2 ) { + + return p1.x === p2.x && p1.y === p2.y; + +} + +// check if two segments intersect +function intersects( p1, q1, p2, q2 ) { + + const o1 = sign( area( p1, q1, p2 ) ); + const o2 = sign( area( p1, q1, q2 ) ); + const o3 = sign( area( p2, q2, p1 ) ); + const o4 = sign( area( p2, q2, q1 ) ); + + if ( o1 !== o2 && o3 !== o4 ) return true; // general case + + if ( o1 === 0 && onSegment( p1, p2, q1 ) ) return true; // p1, q1 and p2 are collinear and p2 lies on p1q1 + if ( o2 === 0 && onSegment( p1, q2, q1 ) ) return true; // p1, q1 and q2 are collinear and q2 lies on p1q1 + if ( o3 === 0 && onSegment( p2, p1, q2 ) ) return true; // p2, q2 and p1 are collinear and p1 lies on p2q2 + if ( o4 === 0 && onSegment( p2, q1, q2 ) ) return true; // p2, q2 and q1 are collinear and q1 lies on p2q2 + + return false; + +} + +// for collinear points p, q, r, check if point q lies on segment pr +function onSegment( p, q, r ) { + + return q.x <= Math.max( p.x, r.x ) && q.x >= Math.min( p.x, r.x ) && q.y <= Math.max( p.y, r.y ) && q.y >= Math.min( p.y, r.y ); + +} + +function sign( num ) { + + return num > 0 ? 1 : num < 0 ? - 1 : 0; + +} + +// check if a polygon diagonal intersects any polygon segments +function intersectsPolygon( a, b ) { + + let p = a; + do { + + if ( p.i !== a.i && p.next.i !== a.i && p.i !== b.i && p.next.i !== b.i && + intersects( p, p.next, a, b ) ) return true; + p = p.next; + + } while ( p !== a ); + + return false; + +} + +// check if a polygon diagonal is locally inside the polygon +function locallyInside( a, b ) { + + return area( a.prev, a, a.next ) < 0 ? + area( a, b, a.next ) >= 0 && area( a, a.prev, b ) >= 0 : + area( a, b, a.prev ) < 0 || area( a, a.next, b ) < 0; + +} + +// check if the middle point of a polygon diagonal is inside the polygon +function middleInside( a, b ) { + + let p = a, + inside = false; + const px = ( a.x + b.x ) / 2, + py = ( a.y + b.y ) / 2; + do { + + if ( ( ( p.y > py ) !== ( p.next.y > py ) ) && p.next.y !== p.y && + ( px < ( p.next.x - p.x ) * ( py - p.y ) / ( p.next.y - p.y ) + p.x ) ) + inside = ! inside; + p = p.next; + + } while ( p !== a ); + + return inside; + +} + +// link two polygon vertices with a bridge; if the vertices belong to the same ring, it splits polygon into two; +// if one belongs to the outer ring and another to a hole, it merges it into a single ring +function splitPolygon( a, b ) { + + const a2 = new Node( a.i, a.x, a.y ), + b2 = new Node( b.i, b.x, b.y ), + an = a.next, + bp = b.prev; + + a.next = b; + b.prev = a; + + a2.next = an; + an.prev = a2; + + b2.next = a2; + a2.prev = b2; + + bp.next = b2; + b2.prev = bp; + + return b2; + +} + +// create a node and optionally link it with previous one (in a circular doubly linked list) +function insertNode( i, x, y, last ) { + + const p = new Node( i, x, y ); + + if ( ! last ) { + + p.prev = p; + p.next = p; + + } else { + + p.next = last.next; + p.prev = last; + last.next.prev = p; + last.next = p; + + } + + return p; + +} + +function removeNode( p ) { + + p.next.prev = p.prev; + p.prev.next = p.next; + + if ( p.prevZ ) p.prevZ.nextZ = p.nextZ; + if ( p.nextZ ) p.nextZ.prevZ = p.prevZ; + +} + +function Node( i, x, y ) { + + // vertex index in coordinates array + this.i = i; + + // vertex coordinates + this.x = x; + this.y = y; + + // previous and next vertex nodes in a polygon ring + this.prev = null; + this.next = null; + + // z-order curve value + this.z = null; + + // previous and next nodes in z-order + this.prevZ = null; + this.nextZ = null; + + // indicates whether this is a steiner point + this.steiner = false; + +} + +function signedArea( data, start, end, dim ) { + + let sum = 0; + for ( let i = start, j = end - dim; i < end; i += dim ) { + + sum += ( data[ j ] - data[ i ] ) * ( data[ i + 1 ] + data[ j + 1 ] ); + j = i; + + } + + return sum; + +} + +const ShapeUtils = { + + // calculate area of the contour polygon + + area: function ( contour ) { + + const n = contour.length; + let a = 0.0; + + for ( let p = n - 1, q = 0; q < n; p = q ++ ) { + + a += contour[ p ].x * contour[ q ].y - contour[ q ].x * contour[ p ].y; + + } + + return a * 0.5; + + }, + + isClockWise: function ( pts ) { + + return ShapeUtils.area( pts ) < 0; + + }, + + triangulateShape: function ( contour, holes ) { + + const vertices = []; // flat array of vertices like [ x0,y0, x1,y1, x2,y2, ... ] + const holeIndices = []; // array of hole indices + const faces = []; // final array of vertex indices like [ [ a,b,d ], [ b,c,d ] ] + + removeDupEndPts( contour ); + addContour( vertices, contour ); + + // + + let holeIndex = contour.length; + + holes.forEach( removeDupEndPts ); + + for ( let i = 0; i < holes.length; i ++ ) { + + holeIndices.push( holeIndex ); + holeIndex += holes[ i ].length; + addContour( vertices, holes[ i ] ); + + } + + // + + const triangles = Earcut.triangulate( vertices, holeIndices ); + + // + + for ( let i = 0; i < triangles.length; i += 3 ) { + + faces.push( triangles.slice( i, i + 3 ) ); + + } + + return faces; + + } + +}; + +function removeDupEndPts( points ) { + + const l = points.length; + + if ( l > 2 && points[ l - 1 ].equals( points[ 0 ] ) ) { + + points.pop(); + + } + +} + +function addContour( vertices, contour ) { + + for ( let i = 0; i < contour.length; i ++ ) { + + vertices.push( contour[ i ].x ); + vertices.push( contour[ i ].y ); + + } + +} + +/** + * Creates extruded geometry from a path shape. + * + * parameters = { + * + * curveSegments: , // number of points on the curves + * steps: , // number of points for z-side extrusions / used for subdividing segments of extrude spline too + * depth: , // Depth to extrude the shape + * + * bevelEnabled: , // turn on bevel + * bevelThickness: , // how deep into the original shape bevel goes + * bevelSize: , // how far from shape outline (including bevelOffset) is bevel + * bevelOffset: , // how far from shape outline does bevel start + * bevelSegments: , // number of bevel layers + * + * extrudePath: // curve to extrude shape along + * + * UVGenerator: // object that provides UV generator functions + * + * } + */ + +class ExtrudeBufferGeometry extends BufferGeometry { + + constructor( shapes, options ) { + + super(); + + this.type = 'ExtrudeBufferGeometry'; + + this.parameters = { + shapes: shapes, + options: options + }; + + shapes = Array.isArray( shapes ) ? shapes : [ shapes ]; + + const scope = this; + + const verticesArray = []; + const uvArray = []; + + for ( let i = 0, l = shapes.length; i < l; i ++ ) { + + const shape = shapes[ i ]; + addShape( shape ); + + } + + // build geometry + + this.setAttribute( 'position', new Float32BufferAttribute( verticesArray, 3 ) ); + this.setAttribute( 'uv', new Float32BufferAttribute( uvArray, 2 ) ); + + this.computeVertexNormals(); + + // functions + + function addShape( shape ) { + + const placeholder = []; + + // options + + const curveSegments = options.curveSegments !== undefined ? options.curveSegments : 12; + const steps = options.steps !== undefined ? options.steps : 1; + let depth = options.depth !== undefined ? options.depth : 100; + + let bevelEnabled = options.bevelEnabled !== undefined ? options.bevelEnabled : true; + let bevelThickness = options.bevelThickness !== undefined ? options.bevelThickness : 6; + let bevelSize = options.bevelSize !== undefined ? options.bevelSize : bevelThickness - 2; + let bevelOffset = options.bevelOffset !== undefined ? options.bevelOffset : 0; + let bevelSegments = options.bevelSegments !== undefined ? options.bevelSegments : 3; + + const extrudePath = options.extrudePath; + + const uvgen = options.UVGenerator !== undefined ? options.UVGenerator : WorldUVGenerator; + + // deprecated options + + if ( options.amount !== undefined ) { + + console.warn( 'THREE.ExtrudeBufferGeometry: amount has been renamed to depth.' ); + depth = options.amount; + + } + + // + + let extrudePts, extrudeByPath = false; + let splineTube, binormal, normal, position2; + + if ( extrudePath ) { + + extrudePts = extrudePath.getSpacedPoints( steps ); + + extrudeByPath = true; + bevelEnabled = false; // bevels not supported for path extrusion + + // SETUP TNB variables + + // TODO1 - have a .isClosed in spline? + + splineTube = extrudePath.computeFrenetFrames( steps, false ); + + // console.log(splineTube, 'splineTube', splineTube.normals.length, 'steps', steps, 'extrudePts', extrudePts.length); + + binormal = new Vector3(); + normal = new Vector3(); + position2 = new Vector3(); + + } + + // Safeguards if bevels are not enabled + + if ( ! bevelEnabled ) { + + bevelSegments = 0; + bevelThickness = 0; + bevelSize = 0; + bevelOffset = 0; + + } + + // Variables initialization + + const shapePoints = shape.extractPoints( curveSegments ); + + let vertices = shapePoints.shape; + const holes = shapePoints.holes; + + const reverse = ! ShapeUtils.isClockWise( vertices ); + + if ( reverse ) { + + vertices = vertices.reverse(); + + // Maybe we should also check if holes are in the opposite direction, just to be safe ... + + for ( let h = 0, hl = holes.length; h < hl; h ++ ) { + + const ahole = holes[ h ]; + + if ( ShapeUtils.isClockWise( ahole ) ) { + + holes[ h ] = ahole.reverse(); + + } + + } + + } + + + const faces = ShapeUtils.triangulateShape( vertices, holes ); + + /* Vertices */ + + const contour = vertices; // vertices has all points but contour has only points of circumference + + for ( let h = 0, hl = holes.length; h < hl; h ++ ) { + + const ahole = holes[ h ]; + + vertices = vertices.concat( ahole ); + + } + + + function scalePt2( pt, vec, size ) { + + if ( ! vec ) console.error( "THREE.ExtrudeGeometry: vec does not exist" ); + + return vec.clone().multiplyScalar( size ).add( pt ); + + } + + const vlen = vertices.length, flen = faces.length; + + + // Find directions for point movement + + + function getBevelVec( inPt, inPrev, inNext ) { + + // computes for inPt the corresponding point inPt' on a new contour + // shifted by 1 unit (length of normalized vector) to the left + // if we walk along contour clockwise, this new contour is outside the old one + // + // inPt' is the intersection of the two lines parallel to the two + // adjacent edges of inPt at a distance of 1 unit on the left side. + + let v_trans_x, v_trans_y, shrink_by; // resulting translation vector for inPt + + // good reading for geometry algorithms (here: line-line intersection) + // http://geomalgorithms.com/a05-_intersect-1.html + + const v_prev_x = inPt.x - inPrev.x, + v_prev_y = inPt.y - inPrev.y; + const v_next_x = inNext.x - inPt.x, + v_next_y = inNext.y - inPt.y; + + const v_prev_lensq = ( v_prev_x * v_prev_x + v_prev_y * v_prev_y ); + + // check for collinear edges + const collinear0 = ( v_prev_x * v_next_y - v_prev_y * v_next_x ); + + if ( Math.abs( collinear0 ) > Number.EPSILON ) { + + // not collinear + + // length of vectors for normalizing + + const v_prev_len = Math.sqrt( v_prev_lensq ); + const v_next_len = Math.sqrt( v_next_x * v_next_x + v_next_y * v_next_y ); + + // shift adjacent points by unit vectors to the left + + const ptPrevShift_x = ( inPrev.x - v_prev_y / v_prev_len ); + const ptPrevShift_y = ( inPrev.y + v_prev_x / v_prev_len ); + + const ptNextShift_x = ( inNext.x - v_next_y / v_next_len ); + const ptNextShift_y = ( inNext.y + v_next_x / v_next_len ); + + // scaling factor for v_prev to intersection point + + const sf = ( ( ptNextShift_x - ptPrevShift_x ) * v_next_y - + ( ptNextShift_y - ptPrevShift_y ) * v_next_x ) / + ( v_prev_x * v_next_y - v_prev_y * v_next_x ); + + // vector from inPt to intersection point + + v_trans_x = ( ptPrevShift_x + v_prev_x * sf - inPt.x ); + v_trans_y = ( ptPrevShift_y + v_prev_y * sf - inPt.y ); + + // Don't normalize!, otherwise sharp corners become ugly + // but prevent crazy spikes + const v_trans_lensq = ( v_trans_x * v_trans_x + v_trans_y * v_trans_y ); + if ( v_trans_lensq <= 2 ) { + + return new Vector2( v_trans_x, v_trans_y ); + + } else { + + shrink_by = Math.sqrt( v_trans_lensq / 2 ); + + } + + } else { + + // handle special case of collinear edges + + let direction_eq = false; // assumes: opposite + + if ( v_prev_x > Number.EPSILON ) { + + if ( v_next_x > Number.EPSILON ) { + + direction_eq = true; + + } + + } else { + + if ( v_prev_x < - Number.EPSILON ) { + + if ( v_next_x < - Number.EPSILON ) { + + direction_eq = true; + + } + + } else { + + if ( Math.sign( v_prev_y ) === Math.sign( v_next_y ) ) { + + direction_eq = true; + + } + + } + + } + + if ( direction_eq ) { + + // console.log("Warning: lines are a straight sequence"); + v_trans_x = - v_prev_y; + v_trans_y = v_prev_x; + shrink_by = Math.sqrt( v_prev_lensq ); + + } else { + + // console.log("Warning: lines are a straight spike"); + v_trans_x = v_prev_x; + v_trans_y = v_prev_y; + shrink_by = Math.sqrt( v_prev_lensq / 2 ); + + } + + } + + return new Vector2( v_trans_x / shrink_by, v_trans_y / shrink_by ); + + } + + + const contourMovements = []; + + for ( let i = 0, il = contour.length, j = il - 1, k = i + 1; i < il; i ++, j ++, k ++ ) { + + if ( j === il ) j = 0; + if ( k === il ) k = 0; + + // (j)---(i)---(k) + // console.log('i,j,k', i, j , k) + + contourMovements[ i ] = getBevelVec( contour[ i ], contour[ j ], contour[ k ] ); + + } + + const holesMovements = []; + let oneHoleMovements, verticesMovements = contourMovements.concat(); + + for ( let h = 0, hl = holes.length; h < hl; h ++ ) { + + const ahole = holes[ h ]; + + oneHoleMovements = []; + + for ( let i = 0, il = ahole.length, j = il - 1, k = i + 1; i < il; i ++, j ++, k ++ ) { + + if ( j === il ) j = 0; + if ( k === il ) k = 0; + + // (j)---(i)---(k) + oneHoleMovements[ i ] = getBevelVec( ahole[ i ], ahole[ j ], ahole[ k ] ); + + } + + holesMovements.push( oneHoleMovements ); + verticesMovements = verticesMovements.concat( oneHoleMovements ); + + } + + + // Loop bevelSegments, 1 for the front, 1 for the back + + for ( let b = 0; b < bevelSegments; b ++ ) { + + //for ( b = bevelSegments; b > 0; b -- ) { + + const t = b / bevelSegments; + const z = bevelThickness * Math.cos( t * Math.PI / 2 ); + const bs = bevelSize * Math.sin( t * Math.PI / 2 ) + bevelOffset; + + // contract shape + + for ( let i = 0, il = contour.length; i < il; i ++ ) { + + const vert = scalePt2( contour[ i ], contourMovements[ i ], bs ); + + v( vert.x, vert.y, - z ); + + } + + // expand holes + + for ( let h = 0, hl = holes.length; h < hl; h ++ ) { + + const ahole = holes[ h ]; + oneHoleMovements = holesMovements[ h ]; + + for ( let i = 0, il = ahole.length; i < il; i ++ ) { + + const vert = scalePt2( ahole[ i ], oneHoleMovements[ i ], bs ); + + v( vert.x, vert.y, - z ); + + } + + } + + } + + const bs = bevelSize + bevelOffset; + + // Back facing vertices + + for ( let i = 0; i < vlen; i ++ ) { + + const vert = bevelEnabled ? scalePt2( vertices[ i ], verticesMovements[ i ], bs ) : vertices[ i ]; + + if ( ! extrudeByPath ) { + + v( vert.x, vert.y, 0 ); + + } else { + + // v( vert.x, vert.y + extrudePts[ 0 ].y, extrudePts[ 0 ].x ); + + normal.copy( splineTube.normals[ 0 ] ).multiplyScalar( vert.x ); + binormal.copy( splineTube.binormals[ 0 ] ).multiplyScalar( vert.y ); + + position2.copy( extrudePts[ 0 ] ).add( normal ).add( binormal ); + + v( position2.x, position2.y, position2.z ); + + } + + } + + // Add stepped vertices... + // Including front facing vertices + + for ( let s = 1; s <= steps; s ++ ) { + + for ( let i = 0; i < vlen; i ++ ) { + + const vert = bevelEnabled ? scalePt2( vertices[ i ], verticesMovements[ i ], bs ) : vertices[ i ]; + + if ( ! extrudeByPath ) { + + v( vert.x, vert.y, depth / steps * s ); + + } else { + + // v( vert.x, vert.y + extrudePts[ s - 1 ].y, extrudePts[ s - 1 ].x ); + + normal.copy( splineTube.normals[ s ] ).multiplyScalar( vert.x ); + binormal.copy( splineTube.binormals[ s ] ).multiplyScalar( vert.y ); + + position2.copy( extrudePts[ s ] ).add( normal ).add( binormal ); + + v( position2.x, position2.y, position2.z ); + + } + + } + + } + + + // Add bevel segments planes + + //for ( b = 1; b <= bevelSegments; b ++ ) { + for ( let b = bevelSegments - 1; b >= 0; b -- ) { + + const t = b / bevelSegments; + const z = bevelThickness * Math.cos( t * Math.PI / 2 ); + const bs = bevelSize * Math.sin( t * Math.PI / 2 ) + bevelOffset; + + // contract shape + + for ( let i = 0, il = contour.length; i < il; i ++ ) { + + const vert = scalePt2( contour[ i ], contourMovements[ i ], bs ); + v( vert.x, vert.y, depth + z ); + + } + + // expand holes + + for ( let h = 0, hl = holes.length; h < hl; h ++ ) { + + const ahole = holes[ h ]; + oneHoleMovements = holesMovements[ h ]; + + for ( let i = 0, il = ahole.length; i < il; i ++ ) { + + const vert = scalePt2( ahole[ i ], oneHoleMovements[ i ], bs ); + + if ( ! extrudeByPath ) { + + v( vert.x, vert.y, depth + z ); + + } else { + + v( vert.x, vert.y + extrudePts[ steps - 1 ].y, extrudePts[ steps - 1 ].x + z ); + + } + + } + + } + + } + + /* Faces */ + + // Top and bottom faces + + buildLidFaces(); + + // Sides faces + + buildSideFaces(); + + + ///// Internal functions + + function buildLidFaces() { + + const start = verticesArray.length / 3; + + if ( bevelEnabled ) { + + let layer = 0; // steps + 1 + let offset = vlen * layer; + + // Bottom faces + + for ( let i = 0; i < flen; i ++ ) { + + const face = faces[ i ]; + f3( face[ 2 ] + offset, face[ 1 ] + offset, face[ 0 ] + offset ); + + } + + layer = steps + bevelSegments * 2; + offset = vlen * layer; + + // Top faces + + for ( let i = 0; i < flen; i ++ ) { + + const face = faces[ i ]; + f3( face[ 0 ] + offset, face[ 1 ] + offset, face[ 2 ] + offset ); + + } + + } else { + + // Bottom faces + + for ( let i = 0; i < flen; i ++ ) { + + const face = faces[ i ]; + f3( face[ 2 ], face[ 1 ], face[ 0 ] ); + + } + + // Top faces + + for ( let i = 0; i < flen; i ++ ) { + + const face = faces[ i ]; + f3( face[ 0 ] + vlen * steps, face[ 1 ] + vlen * steps, face[ 2 ] + vlen * steps ); + + } + + } + + scope.addGroup( start, verticesArray.length / 3 - start, 0 ); + + } + + // Create faces for the z-sides of the shape + + function buildSideFaces() { + + const start = verticesArray.length / 3; + let layeroffset = 0; + sidewalls( contour, layeroffset ); + layeroffset += contour.length; + + for ( let h = 0, hl = holes.length; h < hl; h ++ ) { + + const ahole = holes[ h ]; + sidewalls( ahole, layeroffset ); + + //, true + layeroffset += ahole.length; + + } + + + scope.addGroup( start, verticesArray.length / 3 - start, 1 ); + + + } + + function sidewalls( contour, layeroffset ) { + + let i = contour.length; + + while ( -- i >= 0 ) { + + const j = i; + let k = i - 1; + if ( k < 0 ) k = contour.length - 1; + + //console.log('b', i,j, i-1, k,vertices.length); + + for ( let s = 0, sl = ( steps + bevelSegments * 2 ); s < sl; s ++ ) { + + const slen1 = vlen * s; + const slen2 = vlen * ( s + 1 ); + + const a = layeroffset + j + slen1, + b = layeroffset + k + slen1, + c = layeroffset + k + slen2, + d = layeroffset + j + slen2; + + f4( a, b, c, d ); + + } + + } + + } + + function v( x, y, z ) { + + placeholder.push( x ); + placeholder.push( y ); + placeholder.push( z ); + + } + + + function f3( a, b, c ) { + + addVertex( a ); + addVertex( b ); + addVertex( c ); + + const nextIndex = verticesArray.length / 3; + const uvs = uvgen.generateTopUV( scope, verticesArray, nextIndex - 3, nextIndex - 2, nextIndex - 1 ); + + addUV( uvs[ 0 ] ); + addUV( uvs[ 1 ] ); + addUV( uvs[ 2 ] ); + + } + + function f4( a, b, c, d ) { + + addVertex( a ); + addVertex( b ); + addVertex( d ); + + addVertex( b ); + addVertex( c ); + addVertex( d ); + + + const nextIndex = verticesArray.length / 3; + const uvs = uvgen.generateSideWallUV( scope, verticesArray, nextIndex - 6, nextIndex - 3, nextIndex - 2, nextIndex - 1 ); + + addUV( uvs[ 0 ] ); + addUV( uvs[ 1 ] ); + addUV( uvs[ 3 ] ); + + addUV( uvs[ 1 ] ); + addUV( uvs[ 2 ] ); + addUV( uvs[ 3 ] ); + + } + + function addVertex( index ) { + + verticesArray.push( placeholder[ index * 3 + 0 ] ); + verticesArray.push( placeholder[ index * 3 + 1 ] ); + verticesArray.push( placeholder[ index * 3 + 2 ] ); + + } + + + function addUV( vector2 ) { + + uvArray.push( vector2.x ); + uvArray.push( vector2.y ); + + } + + } + + } + + toJSON() { + + const data = BufferGeometry.prototype.toJSON.call( this ); + + const shapes = this.parameters.shapes; + const options = this.parameters.options; + + return toJSON( shapes, options, data ); + + } + +} + +const WorldUVGenerator = { + + generateTopUV: function ( geometry, vertices, indexA, indexB, indexC ) { + + const a_x = vertices[ indexA * 3 ]; + const a_y = vertices[ indexA * 3 + 1 ]; + const b_x = vertices[ indexB * 3 ]; + const b_y = vertices[ indexB * 3 + 1 ]; + const c_x = vertices[ indexC * 3 ]; + const c_y = vertices[ indexC * 3 + 1 ]; + + return [ + new Vector2( a_x, a_y ), + new Vector2( b_x, b_y ), + new Vector2( c_x, c_y ) + ]; + + }, + + generateSideWallUV: function ( geometry, vertices, indexA, indexB, indexC, indexD ) { + + const a_x = vertices[ indexA * 3 ]; + const a_y = vertices[ indexA * 3 + 1 ]; + const a_z = vertices[ indexA * 3 + 2 ]; + const b_x = vertices[ indexB * 3 ]; + const b_y = vertices[ indexB * 3 + 1 ]; + const b_z = vertices[ indexB * 3 + 2 ]; + const c_x = vertices[ indexC * 3 ]; + const c_y = vertices[ indexC * 3 + 1 ]; + const c_z = vertices[ indexC * 3 + 2 ]; + const d_x = vertices[ indexD * 3 ]; + const d_y = vertices[ indexD * 3 + 1 ]; + const d_z = vertices[ indexD * 3 + 2 ]; + + if ( Math.abs( a_y - b_y ) < 0.01 ) { + + return [ + new Vector2( a_x, 1 - a_z ), + new Vector2( b_x, 1 - b_z ), + new Vector2( c_x, 1 - c_z ), + new Vector2( d_x, 1 - d_z ) + ]; + + } else { + + return [ + new Vector2( a_y, 1 - a_z ), + new Vector2( b_y, 1 - b_z ), + new Vector2( c_y, 1 - c_z ), + new Vector2( d_y, 1 - d_z ) + ]; + + } + + } + +}; + +function toJSON( shapes, options, data ) { + + data.shapes = []; + + if ( Array.isArray( shapes ) ) { + + for ( let i = 0, l = shapes.length; i < l; i ++ ) { + + const shape = shapes[ i ]; + + data.shapes.push( shape.uuid ); + + } + + } else { + + data.shapes.push( shapes.uuid ); + + } + + if ( options.extrudePath !== undefined ) data.options.extrudePath = options.extrudePath.toJSON(); + + return data; + +} + +/** + * Creates extruded geometry from a path shape. + * + * parameters = { + * + * curveSegments: , // number of points on the curves + * steps: , // number of points for z-side extrusions / used for subdividing segments of extrude spline too + * depth: , // Depth to extrude the shape + * + * bevelEnabled: , // turn on bevel + * bevelThickness: , // how deep into the original shape bevel goes + * bevelSize: , // how far from shape outline (including bevelOffset) is bevel + * bevelOffset: , // how far from shape outline does bevel start + * bevelSegments: , // number of bevel layers + * + * extrudePath: // curve to extrude shape along + * + * UVGenerator: // object that provides UV generator functions + * + * } + */ + +class ExtrudeGeometry extends Geometry { + + constructor( shapes, options ) { + + super(); + + this.type = 'ExtrudeGeometry'; + + this.parameters = { + shapes: shapes, + options: options + }; + + this.fromBufferGeometry( new ExtrudeBufferGeometry( shapes, options ) ); + this.mergeVertices(); + + } + + toJSON() { + + const data = super.toJSON(); + + const shapes = this.parameters.shapes; + const options = this.parameters.options; + + return toJSON$1( shapes, options, data ); + + } + +} + +function toJSON$1( shapes, options, data ) { + + data.shapes = []; + + if ( Array.isArray( shapes ) ) { + + for ( let i = 0, l = shapes.length; i < l; i ++ ) { + + const shape = shapes[ i ]; + + data.shapes.push( shape.uuid ); + + } + + } else { + + data.shapes.push( shapes.uuid ); + + } + + if ( options.extrudePath !== undefined ) data.options.extrudePath = options.extrudePath.toJSON(); + + return data; + +} + +class IcosahedronBufferGeometry extends PolyhedronBufferGeometry { + + constructor( radius, detail ) { + + const t = ( 1 + Math.sqrt( 5 ) ) / 2; + + const vertices = [ + - 1, t, 0, 1, t, 0, - 1, - t, 0, 1, - t, 0, + 0, - 1, t, 0, 1, t, 0, - 1, - t, 0, 1, - t, + t, 0, - 1, t, 0, 1, - t, 0, - 1, - t, 0, 1 + ]; + + const indices = [ + 0, 11, 5, 0, 5, 1, 0, 1, 7, 0, 7, 10, 0, 10, 11, + 1, 5, 9, 5, 11, 4, 11, 10, 2, 10, 7, 6, 7, 1, 8, + 3, 9, 4, 3, 4, 2, 3, 2, 6, 3, 6, 8, 3, 8, 9, + 4, 9, 5, 2, 4, 11, 6, 2, 10, 8, 6, 7, 9, 8, 1 + ]; + + super( vertices, indices, radius, detail ); + + this.type = 'IcosahedronBufferGeometry'; + + this.parameters = { + radius: radius, + detail: detail + }; + + } + +} + +class IcosahedronGeometry extends Geometry { + + constructor( radius, detail ) { + + super(); + + this.type = 'IcosahedronGeometry'; + + this.parameters = { + radius: radius, + detail: detail + }; + + this.fromBufferGeometry( new IcosahedronBufferGeometry( radius, detail ) ); + this.mergeVertices(); + + } + +} + +class LatheBufferGeometry extends BufferGeometry { + + constructor( points, segments, phiStart, phiLength ) { + + super(); + + this.type = 'LatheBufferGeometry'; + + this.parameters = { + points: points, + segments: segments, + phiStart: phiStart, + phiLength: phiLength + }; + + segments = Math.floor( segments ) || 12; + phiStart = phiStart || 0; + phiLength = phiLength || Math.PI * 2; + + // clamp phiLength so it's in range of [ 0, 2PI ] + + phiLength = MathUtils.clamp( phiLength, 0, Math.PI * 2 ); + + + // buffers + + const indices = []; + const vertices = []; + const uvs = []; + + // helper variables + + const inverseSegments = 1.0 / segments; + const vertex = new Vector3(); + const uv = new Vector2(); + + // generate vertices and uvs + + for ( let i = 0; i <= segments; i ++ ) { + + const phi = phiStart + i * inverseSegments * phiLength; + + const sin = Math.sin( phi ); + const cos = Math.cos( phi ); + + for ( let j = 0; j <= ( points.length - 1 ); j ++ ) { + + // vertex + + vertex.x = points[ j ].x * sin; + vertex.y = points[ j ].y; + vertex.z = points[ j ].x * cos; + + vertices.push( vertex.x, vertex.y, vertex.z ); + + // uv + + uv.x = i / segments; + uv.y = j / ( points.length - 1 ); + + uvs.push( uv.x, uv.y ); + + + } + + } + + // indices + + for ( let i = 0; i < segments; i ++ ) { + + for ( let j = 0; j < ( points.length - 1 ); j ++ ) { + + const base = j + i * points.length; + + const a = base; + const b = base + points.length; + const c = base + points.length + 1; + const d = base + 1; + + // faces + + indices.push( a, b, d ); + indices.push( b, c, d ); + + } + + } + + // build geometry + + this.setIndex( indices ); + this.setAttribute( 'position', new Float32BufferAttribute( vertices, 3 ) ); + this.setAttribute( 'uv', new Float32BufferAttribute( uvs, 2 ) ); + + // generate normals + + this.computeVertexNormals(); + + // if the geometry is closed, we need to average the normals along the seam. + // because the corresponding vertices are identical (but still have different UVs). + + if ( phiLength === Math.PI * 2 ) { + + const normals = this.attributes.normal.array; + const n1 = new Vector3(); + const n2 = new Vector3(); + const n = new Vector3(); + + // this is the buffer offset for the last line of vertices + + const base = segments * points.length * 3; + + for ( let i = 0, j = 0; i < points.length; i ++, j += 3 ) { + + // select the normal of the vertex in the first line + + n1.x = normals[ j + 0 ]; + n1.y = normals[ j + 1 ]; + n1.z = normals[ j + 2 ]; + + // select the normal of the vertex in the last line + + n2.x = normals[ base + j + 0 ]; + n2.y = normals[ base + j + 1 ]; + n2.z = normals[ base + j + 2 ]; + + // average normals + + n.addVectors( n1, n2 ).normalize(); + + // assign the new values to both normals + + normals[ j + 0 ] = normals[ base + j + 0 ] = n.x; + normals[ j + 1 ] = normals[ base + j + 1 ] = n.y; + normals[ j + 2 ] = normals[ base + j + 2 ] = n.z; + + } + + } + + } + +} + +class LatheGeometry extends Geometry { + + constructor( points, segments, phiStart, phiLength ) { + + super(); + + this.type = 'LatheGeometry'; + + this.parameters = { + points: points, + segments: segments, + phiStart: phiStart, + phiLength: phiLength + }; + + this.fromBufferGeometry( new LatheBufferGeometry( points, segments, phiStart, phiLength ) ); + this.mergeVertices(); + + } + +} + +class OctahedronBufferGeometry extends PolyhedronBufferGeometry { + + constructor( radius, detail ) { + + const vertices = [ + 1, 0, 0, - 1, 0, 0, 0, 1, 0, + 0, - 1, 0, 0, 0, 1, 0, 0, - 1 + ]; + + const indices = [ + 0, 2, 4, 0, 4, 3, 0, 3, 5, + 0, 5, 2, 1, 2, 5, 1, 5, 3, + 1, 3, 4, 1, 4, 2 + ]; + + super( vertices, indices, radius, detail ); + + this.type = 'OctahedronBufferGeometry'; + + this.parameters = { + radius: radius, + detail: detail + }; + + } + +} + +class OctahedronGeometry extends Geometry { + + constructor( radius, detail ) { + + super(); + + this.type = 'OctahedronGeometry'; + + this.parameters = { + radius: radius, + detail: detail + }; + + this.fromBufferGeometry( new OctahedronBufferGeometry( radius, detail ) ); + this.mergeVertices(); + + } + +} + +/** + * Parametric Surfaces Geometry + * based on the brilliant article by @prideout https://prideout.net/blog/old/blog/index.html@p=44.html + */ + +function ParametricBufferGeometry( func, slices, stacks ) { + + BufferGeometry.call( this ); + + this.type = 'ParametricBufferGeometry'; + + this.parameters = { + func: func, + slices: slices, + stacks: stacks + }; + + // buffers + + const indices = []; + const vertices = []; + const normals = []; + const uvs = []; + + const EPS = 0.00001; + + const normal = new Vector3(); + + const p0 = new Vector3(), p1 = new Vector3(); + const pu = new Vector3(), pv = new Vector3(); + + if ( func.length < 3 ) { + + console.error( 'THREE.ParametricGeometry: Function must now modify a Vector3 as third parameter.' ); + + } + + // generate vertices, normals and uvs + + const sliceCount = slices + 1; + + for ( let i = 0; i <= stacks; i ++ ) { + + const v = i / stacks; + + for ( let j = 0; j <= slices; j ++ ) { + + const u = j / slices; + + // vertex + + func( u, v, p0 ); + vertices.push( p0.x, p0.y, p0.z ); + + // normal + + // approximate tangent vectors via finite differences + + if ( u - EPS >= 0 ) { + + func( u - EPS, v, p1 ); + pu.subVectors( p0, p1 ); + + } else { + + func( u + EPS, v, p1 ); + pu.subVectors( p1, p0 ); + + } + + if ( v - EPS >= 0 ) { + + func( u, v - EPS, p1 ); + pv.subVectors( p0, p1 ); + + } else { + + func( u, v + EPS, p1 ); + pv.subVectors( p1, p0 ); + + } + + // cross product of tangent vectors returns surface normal + + normal.crossVectors( pu, pv ).normalize(); + normals.push( normal.x, normal.y, normal.z ); + + // uv + + uvs.push( u, v ); + + } + + } + + // generate indices + + for ( let i = 0; i < stacks; i ++ ) { + + for ( let j = 0; j < slices; j ++ ) { + + const a = i * sliceCount + j; + const b = i * sliceCount + j + 1; + const c = ( i + 1 ) * sliceCount + j + 1; + const d = ( i + 1 ) * sliceCount + j; + + // faces one and two + + indices.push( a, b, d ); + indices.push( b, c, d ); + + } + + } + + // build geometry + + this.setIndex( indices ); + this.setAttribute( 'position', new Float32BufferAttribute( vertices, 3 ) ); + this.setAttribute( 'normal', new Float32BufferAttribute( normals, 3 ) ); + this.setAttribute( 'uv', new Float32BufferAttribute( uvs, 2 ) ); + +} + +ParametricBufferGeometry.prototype = Object.create( BufferGeometry.prototype ); +ParametricBufferGeometry.prototype.constructor = ParametricBufferGeometry; + +/** + * Parametric Surfaces Geometry + * based on the brilliant article by @prideout https://prideout.net/blog/old/blog/index.html@p=44.html + */ + +function ParametricGeometry( func, slices, stacks ) { + + Geometry.call( this ); + + this.type = 'ParametricGeometry'; + + this.parameters = { + func: func, + slices: slices, + stacks: stacks + }; + + this.fromBufferGeometry( new ParametricBufferGeometry( func, slices, stacks ) ); + this.mergeVertices(); + +} + +ParametricGeometry.prototype = Object.create( Geometry.prototype ); +ParametricGeometry.prototype.constructor = ParametricGeometry; + +class PlaneGeometry extends Geometry { + + constructor( width, height, widthSegments, heightSegments ) { + + super(); + + this.type = 'PlaneGeometry'; + + this.parameters = { + width: width, + height: height, + widthSegments: widthSegments, + heightSegments: heightSegments + }; + + this.fromBufferGeometry( new PlaneBufferGeometry( width, height, widthSegments, heightSegments ) ); + this.mergeVertices(); + + } + +} + +class PolyhedronGeometry extends Geometry { + + constructor( vertices, indices, radius, detail ) { + + super(); + + this.type = 'PolyhedronGeometry'; + + this.parameters = { + vertices: vertices, + indices: indices, + radius: radius, + detail: detail + }; + + this.fromBufferGeometry( new PolyhedronBufferGeometry( vertices, indices, radius, detail ) ); + this.mergeVertices(); + + } + +} + +class RingBufferGeometry extends BufferGeometry { + + constructor( innerRadius, outerRadius, thetaSegments, phiSegments, thetaStart, thetaLength ) { + + super(); + + this.type = 'RingBufferGeometry'; + + this.parameters = { + innerRadius: innerRadius, + outerRadius: outerRadius, + thetaSegments: thetaSegments, + phiSegments: phiSegments, + thetaStart: thetaStart, + thetaLength: thetaLength + }; + + innerRadius = innerRadius || 0.5; + outerRadius = outerRadius || 1; + + thetaStart = thetaStart !== undefined ? thetaStart : 0; + thetaLength = thetaLength !== undefined ? thetaLength : Math.PI * 2; + + thetaSegments = thetaSegments !== undefined ? Math.max( 3, thetaSegments ) : 8; + phiSegments = phiSegments !== undefined ? Math.max( 1, phiSegments ) : 1; + + // buffers + + const indices = []; + const vertices = []; + const normals = []; + const uvs = []; + + // some helper variables + + let radius = innerRadius; + const radiusStep = ( ( outerRadius - innerRadius ) / phiSegments ); + const vertex = new Vector3(); + const uv = new Vector2(); + + // generate vertices, normals and uvs + + for ( let j = 0; j <= phiSegments; j ++ ) { + + for ( let i = 0; i <= thetaSegments; i ++ ) { + + // values are generate from the inside of the ring to the outside + + const segment = thetaStart + i / thetaSegments * thetaLength; + + // vertex + + vertex.x = radius * Math.cos( segment ); + vertex.y = radius * Math.sin( segment ); + + vertices.push( vertex.x, vertex.y, vertex.z ); + + // normal + + normals.push( 0, 0, 1 ); + + // uv + + uv.x = ( vertex.x / outerRadius + 1 ) / 2; + uv.y = ( vertex.y / outerRadius + 1 ) / 2; + + uvs.push( uv.x, uv.y ); + + } + + // increase the radius for next row of vertices + + radius += radiusStep; + + } + + // indices + + for ( let j = 0; j < phiSegments; j ++ ) { + + const thetaSegmentLevel = j * ( thetaSegments + 1 ); + + for ( let i = 0; i < thetaSegments; i ++ ) { + + const segment = i + thetaSegmentLevel; + + const a = segment; + const b = segment + thetaSegments + 1; + const c = segment + thetaSegments + 2; + const d = segment + 1; + + // faces + + indices.push( a, b, d ); + indices.push( b, c, d ); + + } + + } + + // build geometry + + this.setIndex( indices ); + this.setAttribute( 'position', new Float32BufferAttribute( vertices, 3 ) ); + this.setAttribute( 'normal', new Float32BufferAttribute( normals, 3 ) ); + this.setAttribute( 'uv', new Float32BufferAttribute( uvs, 2 ) ); + + } + +} + +class RingGeometry extends Geometry { + + constructor( innerRadius, outerRadius, thetaSegments, phiSegments, thetaStart, thetaLength ) { + + super(); + + this.type = 'RingGeometry'; + + this.parameters = { + innerRadius: innerRadius, + outerRadius: outerRadius, + thetaSegments: thetaSegments, + phiSegments: phiSegments, + thetaStart: thetaStart, + thetaLength: thetaLength + }; + + this.fromBufferGeometry( new RingBufferGeometry( innerRadius, outerRadius, thetaSegments, phiSegments, thetaStart, thetaLength ) ); + this.mergeVertices(); + + } + +} + +class ShapeBufferGeometry extends BufferGeometry { + + constructor( shapes, curveSegments ) { + + super(); + this.type = 'ShapeBufferGeometry'; + + this.parameters = { + shapes: shapes, + curveSegments: curveSegments + }; + + curveSegments = curveSegments || 12; + + // buffers + + const indices = []; + const vertices = []; + const normals = []; + const uvs = []; + + // helper variables + + let groupStart = 0; + let groupCount = 0; + + // allow single and array values for "shapes" parameter + + if ( Array.isArray( shapes ) === false ) { + + addShape( shapes ); + + } else { + + for ( let i = 0; i < shapes.length; i ++ ) { + + addShape( shapes[ i ] ); + + this.addGroup( groupStart, groupCount, i ); // enables MultiMaterial support + + groupStart += groupCount; + groupCount = 0; + + } + + } + + // build geometry + + this.setIndex( indices ); + this.setAttribute( 'position', new Float32BufferAttribute( vertices, 3 ) ); + this.setAttribute( 'normal', new Float32BufferAttribute( normals, 3 ) ); + this.setAttribute( 'uv', new Float32BufferAttribute( uvs, 2 ) ); + + + // helper functions + + function addShape( shape ) { + + const indexOffset = vertices.length / 3; + const points = shape.extractPoints( curveSegments ); + + let shapeVertices = points.shape; + const shapeHoles = points.holes; + + // check direction of vertices + + if ( ShapeUtils.isClockWise( shapeVertices ) === false ) { + + shapeVertices = shapeVertices.reverse(); + + } + + for ( let i = 0, l = shapeHoles.length; i < l; i ++ ) { + + const shapeHole = shapeHoles[ i ]; + + if ( ShapeUtils.isClockWise( shapeHole ) === true ) { + + shapeHoles[ i ] = shapeHole.reverse(); + + } + + } + + const faces = ShapeUtils.triangulateShape( shapeVertices, shapeHoles ); + + // join vertices of inner and outer paths to a single array + + for ( let i = 0, l = shapeHoles.length; i < l; i ++ ) { + + const shapeHole = shapeHoles[ i ]; + shapeVertices = shapeVertices.concat( shapeHole ); + + } + + // vertices, normals, uvs + + for ( let i = 0, l = shapeVertices.length; i < l; i ++ ) { + + const vertex = shapeVertices[ i ]; + + vertices.push( vertex.x, vertex.y, 0 ); + normals.push( 0, 0, 1 ); + uvs.push( vertex.x, vertex.y ); // world uvs + + } + + // incides + + for ( let i = 0, l = faces.length; i < l; i ++ ) { + + const face = faces[ i ]; + + const a = face[ 0 ] + indexOffset; + const b = face[ 1 ] + indexOffset; + const c = face[ 2 ] + indexOffset; + + indices.push( a, b, c ); + groupCount += 3; + + } + + } + + } + + toJSON() { + + const data = BufferGeometry.prototype.toJSON.call( this ); + + const shapes = this.parameters.shapes; + + return toJSON$2( shapes, data ); + + } + +} + +function toJSON$2( shapes, data ) { + + data.shapes = []; + + if ( Array.isArray( shapes ) ) { + + for ( let i = 0, l = shapes.length; i < l; i ++ ) { + + const shape = shapes[ i ]; + + data.shapes.push( shape.uuid ); + + } + + } else { + + data.shapes.push( shapes.uuid ); + + } + + return data; + +} + +class ShapeGeometry extends Geometry { + + constructor( shapes, curveSegments ) { + + super(); + this.type = 'ShapeGeometry'; + + if ( typeof curveSegments === 'object' ) { + + console.warn( 'THREE.ShapeGeometry: Options parameter has been removed.' ); + + curveSegments = curveSegments.curveSegments; + + } + + this.parameters = { + shapes: shapes, + curveSegments: curveSegments + }; + + this.fromBufferGeometry( new ShapeBufferGeometry( shapes, curveSegments ) ); + this.mergeVertices(); + + } + + toJSON() { + + const data = Geometry.prototype.toJSON.call( this ); + + const shapes = this.parameters.shapes; + + return toJSON$3( shapes, data ); + + } + +} + +function toJSON$3( shapes, data ) { + + data.shapes = []; + + if ( Array.isArray( shapes ) ) { + + for ( let i = 0, l = shapes.length; i < l; i ++ ) { + + const shape = shapes[ i ]; + + data.shapes.push( shape.uuid ); + + } + + } else { + + data.shapes.push( shapes.uuid ); + + } + + return data; + +} + +class SphereBufferGeometry extends BufferGeometry { + + constructor( radius, widthSegments, heightSegments, phiStart, phiLength, thetaStart, thetaLength ) { + + super(); + this.type = 'SphereBufferGeometry'; + + this.parameters = { + radius: radius, + widthSegments: widthSegments, + heightSegments: heightSegments, + phiStart: phiStart, + phiLength: phiLength, + thetaStart: thetaStart, + thetaLength: thetaLength + }; + + radius = radius || 1; + + widthSegments = Math.max( 3, Math.floor( widthSegments ) || 8 ); + heightSegments = Math.max( 2, Math.floor( heightSegments ) || 6 ); + + phiStart = phiStart !== undefined ? phiStart : 0; + phiLength = phiLength !== undefined ? phiLength : Math.PI * 2; + + thetaStart = thetaStart !== undefined ? thetaStart : 0; + thetaLength = thetaLength !== undefined ? thetaLength : Math.PI; + + const thetaEnd = Math.min( thetaStart + thetaLength, Math.PI ); + + let index = 0; + const grid = []; + + const vertex = new Vector3(); + const normal = new Vector3(); + + // buffers + + const indices = []; + const vertices = []; + const normals = []; + const uvs = []; + + // generate vertices, normals and uvs + + for ( let iy = 0; iy <= heightSegments; iy ++ ) { + + const verticesRow = []; + + const v = iy / heightSegments; + + // special case for the poles + + let uOffset = 0; + + if ( iy == 0 && thetaStart == 0 ) { + + uOffset = 0.5 / widthSegments; + + } else if ( iy == heightSegments && thetaEnd == Math.PI ) { + + uOffset = - 0.5 / widthSegments; + + } + + for ( let ix = 0; ix <= widthSegments; ix ++ ) { + + const u = ix / widthSegments; + + // vertex + + vertex.x = - radius * Math.cos( phiStart + u * phiLength ) * Math.sin( thetaStart + v * thetaLength ); + vertex.y = radius * Math.cos( thetaStart + v * thetaLength ); + vertex.z = radius * Math.sin( phiStart + u * phiLength ) * Math.sin( thetaStart + v * thetaLength ); + + vertices.push( vertex.x, vertex.y, vertex.z ); + + // normal + + normal.copy( vertex ).normalize(); + normals.push( normal.x, normal.y, normal.z ); + + // uv + + uvs.push( u + uOffset, 1 - v ); + + verticesRow.push( index ++ ); + + } + + grid.push( verticesRow ); + + } + + // indices + + for ( let iy = 0; iy < heightSegments; iy ++ ) { + + for ( let ix = 0; ix < widthSegments; ix ++ ) { + + const a = grid[ iy ][ ix + 1 ]; + const b = grid[ iy ][ ix ]; + const c = grid[ iy + 1 ][ ix ]; + const d = grid[ iy + 1 ][ ix + 1 ]; + + if ( iy !== 0 || thetaStart > 0 ) indices.push( a, b, d ); + if ( iy !== heightSegments - 1 || thetaEnd < Math.PI ) indices.push( b, c, d ); + + } + + } + + // build geometry + + this.setIndex( indices ); + this.setAttribute( 'position', new Float32BufferAttribute( vertices, 3 ) ); + this.setAttribute( 'normal', new Float32BufferAttribute( normals, 3 ) ); + this.setAttribute( 'uv', new Float32BufferAttribute( uvs, 2 ) ); + + } + +} + +class SphereGeometry extends Geometry { + + constructor( radius, widthSegments, heightSegments, phiStart, phiLength, thetaStart, thetaLength ) { + + super(); + this.type = 'SphereGeometry'; + + this.parameters = { + radius: radius, + widthSegments: widthSegments, + heightSegments: heightSegments, + phiStart: phiStart, + phiLength: phiLength, + thetaStart: thetaStart, + thetaLength: thetaLength + }; + + this.fromBufferGeometry( new SphereBufferGeometry( radius, widthSegments, heightSegments, phiStart, phiLength, thetaStart, thetaLength ) ); + this.mergeVertices(); + + } + +} + +class TetrahedronBufferGeometry extends PolyhedronBufferGeometry { + + constructor( radius, detail ) { + + const vertices = [ + 1, 1, 1, - 1, - 1, 1, - 1, 1, - 1, 1, - 1, - 1 + ]; + + const indices = [ + 2, 1, 0, 0, 3, 2, 1, 3, 0, 2, 3, 1 + ]; + + super( vertices, indices, radius, detail ); + + this.type = 'TetrahedronBufferGeometry'; + + this.parameters = { + radius: radius, + detail: detail + }; + + } + +} + +class TetrahedronGeometry extends Geometry { + + constructor( radius, detail ) { + + super(); + this.type = 'TetrahedronGeometry'; + + this.parameters = { + radius: radius, + detail: detail + }; + + this.fromBufferGeometry( new TetrahedronBufferGeometry( radius, detail ) ); + this.mergeVertices(); + + } + +} + +/** + * Text = 3D Text + * + * parameters = { + * font: , // font + * + * size: , // size of the text + * height: , // thickness to extrude text + * curveSegments: , // number of points on the curves + * + * bevelEnabled: , // turn on bevel + * bevelThickness: , // how deep into text bevel goes + * bevelSize: , // how far from text outline (including bevelOffset) is bevel + * bevelOffset: // how far from text outline does bevel start + * } + */ + +class TextBufferGeometry extends ExtrudeBufferGeometry { + + constructor( text, parameters ) { + + parameters = parameters || {}; + + const font = parameters.font; + + if ( ! ( font && font.isFont ) ) { + + console.error( 'THREE.TextGeometry: font parameter is not an instance of THREE.Font.' ); + return new BufferGeometry(); + + } + + const shapes = font.generateShapes( text, parameters.size ); + + // translate parameters to ExtrudeGeometry API + + parameters.depth = parameters.height !== undefined ? parameters.height : 50; + + // defaults + + if ( parameters.bevelThickness === undefined ) parameters.bevelThickness = 10; + if ( parameters.bevelSize === undefined ) parameters.bevelSize = 8; + if ( parameters.bevelEnabled === undefined ) parameters.bevelEnabled = false; + + super( shapes, parameters ); + + this.type = 'TextBufferGeometry'; + + } + +} + +/** + * Text = 3D Text + * + * parameters = { + * font: , // font + * + * size: , // size of the text + * height: , // thickness to extrude text + * curveSegments: , // number of points on the curves + * + * bevelEnabled: , // turn on bevel + * bevelThickness: , // how deep into text bevel goes + * bevelSize: , // how far from text outline (including bevelOffset) is bevel + * bevelOffset: // how far from text outline does bevel start + * } + */ + +class TextGeometry extends Geometry { + + constructor( text, parameters ) { + + super(); + this.type = 'TextGeometry'; + + this.parameters = { + text: text, + parameters: parameters + }; + + this.fromBufferGeometry( new TextBufferGeometry( text, parameters ) ); + this.mergeVertices(); + + } + +} + +class TorusBufferGeometry extends BufferGeometry { + + constructor( radius, tube, radialSegments, tubularSegments, arc ) { + + super(); + this.type = 'TorusBufferGeometry'; + + this.parameters = { + radius: radius, + tube: tube, + radialSegments: radialSegments, + tubularSegments: tubularSegments, + arc: arc + }; + + radius = radius || 1; + tube = tube || 0.4; + radialSegments = Math.floor( radialSegments ) || 8; + tubularSegments = Math.floor( tubularSegments ) || 6; + arc = arc || Math.PI * 2; + + // buffers + + const indices = []; + const vertices = []; + const normals = []; + const uvs = []; + + // helper variables + + const center = new Vector3(); + const vertex = new Vector3(); + const normal = new Vector3(); + + // generate vertices, normals and uvs + + for ( let j = 0; j <= radialSegments; j ++ ) { + + for ( let i = 0; i <= tubularSegments; i ++ ) { + + const u = i / tubularSegments * arc; + const v = j / radialSegments * Math.PI * 2; + + // vertex + + vertex.x = ( radius + tube * Math.cos( v ) ) * Math.cos( u ); + vertex.y = ( radius + tube * Math.cos( v ) ) * Math.sin( u ); + vertex.z = tube * Math.sin( v ); + + vertices.push( vertex.x, vertex.y, vertex.z ); + + // normal + + center.x = radius * Math.cos( u ); + center.y = radius * Math.sin( u ); + normal.subVectors( vertex, center ).normalize(); + + normals.push( normal.x, normal.y, normal.z ); + + // uv + + uvs.push( i / tubularSegments ); + uvs.push( j / radialSegments ); + + } + + } + + // generate indices + + for ( let j = 1; j <= radialSegments; j ++ ) { + + for ( let i = 1; i <= tubularSegments; i ++ ) { + + // indices + + const a = ( tubularSegments + 1 ) * j + i - 1; + const b = ( tubularSegments + 1 ) * ( j - 1 ) + i - 1; + const c = ( tubularSegments + 1 ) * ( j - 1 ) + i; + const d = ( tubularSegments + 1 ) * j + i; + + // faces + + indices.push( a, b, d ); + indices.push( b, c, d ); + + } + + } + + // build geometry + + this.setIndex( indices ); + this.setAttribute( 'position', new Float32BufferAttribute( vertices, 3 ) ); + this.setAttribute( 'normal', new Float32BufferAttribute( normals, 3 ) ); + this.setAttribute( 'uv', new Float32BufferAttribute( uvs, 2 ) ); + + } + +} + +class TorusGeometry extends Geometry { + + constructor( radius, tube, radialSegments, tubularSegments, arc ) { + + super(); + this.type = 'TorusGeometry'; + + this.parameters = { + radius: radius, + tube: tube, + radialSegments: radialSegments, + tubularSegments: tubularSegments, + arc: arc + }; + + this.fromBufferGeometry( new TorusBufferGeometry( radius, tube, radialSegments, tubularSegments, arc ) ); + this.mergeVertices(); + + } + +} + +class TorusKnotBufferGeometry extends BufferGeometry { + + constructor( radius, tube, tubularSegments, radialSegments, p, q ) { + + super(); + this.type = 'TorusKnotBufferGeometry'; + + this.parameters = { + radius: radius, + tube: tube, + tubularSegments: tubularSegments, + radialSegments: radialSegments, + p: p, + q: q + }; + + radius = radius || 1; + tube = tube || 0.4; + tubularSegments = Math.floor( tubularSegments ) || 64; + radialSegments = Math.floor( radialSegments ) || 8; + p = p || 2; + q = q || 3; + + // buffers + + const indices = []; + const vertices = []; + const normals = []; + const uvs = []; + + // helper variables + + const vertex = new Vector3(); + const normal = new Vector3(); + + const P1 = new Vector3(); + const P2 = new Vector3(); + + const B = new Vector3(); + const T = new Vector3(); + const N = new Vector3(); + + // generate vertices, normals and uvs + + for ( let i = 0; i <= tubularSegments; ++ i ) { + + // the radian "u" is used to calculate the position on the torus curve of the current tubular segement + + const u = i / tubularSegments * p * Math.PI * 2; + + // now we calculate two points. P1 is our current position on the curve, P2 is a little farther ahead. + // these points are used to create a special "coordinate space", which is necessary to calculate the correct vertex positions + + calculatePositionOnCurve( u, p, q, radius, P1 ); + calculatePositionOnCurve( u + 0.01, p, q, radius, P2 ); + + // calculate orthonormal basis + + T.subVectors( P2, P1 ); + N.addVectors( P2, P1 ); + B.crossVectors( T, N ); + N.crossVectors( B, T ); + + // normalize B, N. T can be ignored, we don't use it + + B.normalize(); + N.normalize(); + + for ( let j = 0; j <= radialSegments; ++ j ) { + + // now calculate the vertices. they are nothing more than an extrusion of the torus curve. + // because we extrude a shape in the xy-plane, there is no need to calculate a z-value. + + const v = j / radialSegments * Math.PI * 2; + const cx = - tube * Math.cos( v ); + const cy = tube * Math.sin( v ); + + // now calculate the final vertex position. + // first we orient the extrusion with our basis vectos, then we add it to the current position on the curve + + vertex.x = P1.x + ( cx * N.x + cy * B.x ); + vertex.y = P1.y + ( cx * N.y + cy * B.y ); + vertex.z = P1.z + ( cx * N.z + cy * B.z ); + + vertices.push( vertex.x, vertex.y, vertex.z ); + + // normal (P1 is always the center/origin of the extrusion, thus we can use it to calculate the normal) + + normal.subVectors( vertex, P1 ).normalize(); + + normals.push( normal.x, normal.y, normal.z ); + + // uv + + uvs.push( i / tubularSegments ); + uvs.push( j / radialSegments ); + + } + + } + + // generate indices + + for ( let j = 1; j <= tubularSegments; j ++ ) { + + for ( let i = 1; i <= radialSegments; i ++ ) { + + // indices + + const a = ( radialSegments + 1 ) * ( j - 1 ) + ( i - 1 ); + const b = ( radialSegments + 1 ) * j + ( i - 1 ); + const c = ( radialSegments + 1 ) * j + i; + const d = ( radialSegments + 1 ) * ( j - 1 ) + i; + + // faces + + indices.push( a, b, d ); + indices.push( b, c, d ); + + } + + } + + // build geometry + + this.setIndex( indices ); + this.setAttribute( 'position', new Float32BufferAttribute( vertices, 3 ) ); + this.setAttribute( 'normal', new Float32BufferAttribute( normals, 3 ) ); + this.setAttribute( 'uv', new Float32BufferAttribute( uvs, 2 ) ); + + // this function calculates the current position on the torus curve + + function calculatePositionOnCurve( u, p, q, radius, position ) { + + const cu = Math.cos( u ); + const su = Math.sin( u ); + const quOverP = q / p * u; + const cs = Math.cos( quOverP ); + + position.x = radius * ( 2 + cs ) * 0.5 * cu; + position.y = radius * ( 2 + cs ) * su * 0.5; + position.z = radius * Math.sin( quOverP ) * 0.5; + + } + + } + +} + +class TorusKnotGeometry extends Geometry { + + constructor( radius, tube, tubularSegments, radialSegments, p, q, heightScale ) { + + super(); + this.type = 'TorusKnotGeometry'; + + this.parameters = { + radius: radius, + tube: tube, + tubularSegments: tubularSegments, + radialSegments: radialSegments, + p: p, + q: q + }; + + if ( heightScale !== undefined ) console.warn( 'THREE.TorusKnotGeometry: heightScale has been deprecated. Use .scale( x, y, z ) instead.' ); + + this.fromBufferGeometry( new TorusKnotBufferGeometry( radius, tube, tubularSegments, radialSegments, p, q ) ); + this.mergeVertices(); + + } + +} + +class TubeBufferGeometry extends BufferGeometry { + + constructor( path, tubularSegments, radius, radialSegments, closed ) { + + super(); + this.type = 'TubeBufferGeometry'; + + this.parameters = { + path: path, + tubularSegments: tubularSegments, + radius: radius, + radialSegments: radialSegments, + closed: closed + }; + + tubularSegments = tubularSegments || 64; + radius = radius || 1; + radialSegments = radialSegments || 8; + closed = closed || false; + + const frames = path.computeFrenetFrames( tubularSegments, closed ); + + // expose internals + + this.tangents = frames.tangents; + this.normals = frames.normals; + this.binormals = frames.binormals; + + // helper variables + + const vertex = new Vector3(); + const normal = new Vector3(); + const uv = new Vector2(); + let P = new Vector3(); + + // buffer + + const vertices = []; + const normals = []; + const uvs = []; + const indices = []; + + // create buffer data + + generateBufferData(); + + // build geometry + + this.setIndex( indices ); + this.setAttribute( 'position', new Float32BufferAttribute( vertices, 3 ) ); + this.setAttribute( 'normal', new Float32BufferAttribute( normals, 3 ) ); + this.setAttribute( 'uv', new Float32BufferAttribute( uvs, 2 ) ); + + // functions + + function generateBufferData() { + + for ( let i = 0; i < tubularSegments; i ++ ) { + + generateSegment( i ); + + } + + // if the geometry is not closed, generate the last row of vertices and normals + // at the regular position on the given path + // + // if the geometry is closed, duplicate the first row of vertices and normals (uvs will differ) + + generateSegment( ( closed === false ) ? tubularSegments : 0 ); + + // uvs are generated in a separate function. + // this makes it easy compute correct values for closed geometries + + generateUVs(); + + // finally create faces + + generateIndices(); + + } + + function generateSegment( i ) { + + // we use getPointAt to sample evenly distributed points from the given path + + P = path.getPointAt( i / tubularSegments, P ); + + // retrieve corresponding normal and binormal + + const N = frames.normals[ i ]; + const B = frames.binormals[ i ]; + + // generate normals and vertices for the current segment + + for ( let j = 0; j <= radialSegments; j ++ ) { + + const v = j / radialSegments * Math.PI * 2; + + const sin = Math.sin( v ); + const cos = - Math.cos( v ); + + // normal + + normal.x = ( cos * N.x + sin * B.x ); + normal.y = ( cos * N.y + sin * B.y ); + normal.z = ( cos * N.z + sin * B.z ); + normal.normalize(); + + normals.push( normal.x, normal.y, normal.z ); + + // vertex + + vertex.x = P.x + radius * normal.x; + vertex.y = P.y + radius * normal.y; + vertex.z = P.z + radius * normal.z; + + vertices.push( vertex.x, vertex.y, vertex.z ); + + } + + } + + function generateIndices() { + + for ( let j = 1; j <= tubularSegments; j ++ ) { + + for ( let i = 1; i <= radialSegments; i ++ ) { + + const a = ( radialSegments + 1 ) * ( j - 1 ) + ( i - 1 ); + const b = ( radialSegments + 1 ) * j + ( i - 1 ); + const c = ( radialSegments + 1 ) * j + i; + const d = ( radialSegments + 1 ) * ( j - 1 ) + i; + + // faces + + indices.push( a, b, d ); + indices.push( b, c, d ); + + } + + } + + } + + function generateUVs() { + + for ( let i = 0; i <= tubularSegments; i ++ ) { + + for ( let j = 0; j <= radialSegments; j ++ ) { + + uv.x = i / tubularSegments; + uv.y = j / radialSegments; + + uvs.push( uv.x, uv.y ); + + } + + } + + } + + } + toJSON() { + + const data = BufferGeometry.prototype.toJSON.call( this ); + + data.path = this.parameters.path.toJSON(); + + return data; + + } + +} + +class TubeGeometry extends Geometry { + + constructor( path, tubularSegments, radius, radialSegments, closed, taper ) { + + super(); + this.type = 'TubeGeometry'; + + this.parameters = { + path: path, + tubularSegments: tubularSegments, + radius: radius, + radialSegments: radialSegments, + closed: closed + }; + + if ( taper !== undefined ) console.warn( 'THREE.TubeGeometry: taper has been removed.' ); + + const bufferGeometry = new TubeBufferGeometry( path, tubularSegments, radius, radialSegments, closed ); + + // expose internals + + this.tangents = bufferGeometry.tangents; + this.normals = bufferGeometry.normals; + this.binormals = bufferGeometry.binormals; + + // create geometry + + this.fromBufferGeometry( bufferGeometry ); + this.mergeVertices(); + + } + +} + +class WireframeGeometry extends BufferGeometry { + + constructor( geometry ) { + + super(); + this.type = 'WireframeGeometry'; + + // buffer + + const vertices = []; + + // helper variables + + const edge = [ 0, 0 ], edges = {}; + const keys = [ 'a', 'b', 'c' ]; + + // different logic for Geometry and BufferGeometry + + if ( geometry && geometry.isGeometry ) { + + // create a data structure that contains all edges without duplicates + + const faces = geometry.faces; + + for ( let i = 0, l = faces.length; i < l; i ++ ) { + + const face = faces[ i ]; + + for ( let j = 0; j < 3; j ++ ) { + + const edge1 = face[ keys[ j ] ]; + const edge2 = face[ keys[ ( j + 1 ) % 3 ] ]; + edge[ 0 ] = Math.min( edge1, edge2 ); // sorting prevents duplicates + edge[ 1 ] = Math.max( edge1, edge2 ); + + const key = edge[ 0 ] + ',' + edge[ 1 ]; + + if ( edges[ key ] === undefined ) { + + edges[ key ] = { index1: edge[ 0 ], index2: edge[ 1 ] }; + + } + + } + + } + + // generate vertices + + for ( const key in edges ) { + + const e = edges[ key ]; + + let vertex = geometry.vertices[ e.index1 ]; + vertices.push( vertex.x, vertex.y, vertex.z ); + + vertex = geometry.vertices[ e.index2 ]; + vertices.push( vertex.x, vertex.y, vertex.z ); + + } + + } else if ( geometry && geometry.isBufferGeometry ) { + + const vertex = new Vector3(); + + if ( geometry.index !== null ) { + + // indexed BufferGeometry + + const position = geometry.attributes.position; + const indices = geometry.index; + let groups = geometry.groups; + + if ( groups.length === 0 ) { + + groups = [ { start: 0, count: indices.count, materialIndex: 0 } ]; + + } + + // create a data structure that contains all eges without duplicates + + for ( let o = 0, ol = groups.length; o < ol; ++ o ) { + + const group = groups[ o ]; + + const start = group.start; + const count = group.count; + + for ( let i = start, l = ( start + count ); i < l; i += 3 ) { + + for ( let j = 0; j < 3; j ++ ) { + + const edge1 = indices.getX( i + j ); + const edge2 = indices.getX( i + ( j + 1 ) % 3 ); + edge[ 0 ] = Math.min( edge1, edge2 ); // sorting prevents duplicates + edge[ 1 ] = Math.max( edge1, edge2 ); + + const key = edge[ 0 ] + ',' + edge[ 1 ]; + + if ( edges[ key ] === undefined ) { + + edges[ key ] = { index1: edge[ 0 ], index2: edge[ 1 ] }; + + } + + } + + } + + } + + // generate vertices + + for ( const key in edges ) { + + const e = edges[ key ]; + + vertex.fromBufferAttribute( position, e.index1 ); + vertices.push( vertex.x, vertex.y, vertex.z ); + + vertex.fromBufferAttribute( position, e.index2 ); + vertices.push( vertex.x, vertex.y, vertex.z ); + + } + + } else { + + // non-indexed BufferGeometry + + const position = geometry.attributes.position; + + for ( let i = 0, l = ( position.count / 3 ); i < l; i ++ ) { + + for ( let j = 0; j < 3; j ++ ) { + + // three edges per triangle, an edge is represented as (index1, index2) + // e.g. the first triangle has the following edges: (0,1),(1,2),(2,0) + + const index1 = 3 * i + j; + vertex.fromBufferAttribute( position, index1 ); + vertices.push( vertex.x, vertex.y, vertex.z ); + + const index2 = 3 * i + ( ( j + 1 ) % 3 ); + vertex.fromBufferAttribute( position, index2 ); + vertices.push( vertex.x, vertex.y, vertex.z ); + + } + + } + + } + + } + + // build geometry + + this.setAttribute( 'position', new Float32BufferAttribute( vertices, 3 ) ); + + } + +} + +var Geometries = /*#__PURE__*/Object.freeze({ + __proto__: null, + BoxGeometry: BoxGeometry, + BoxBufferGeometry: BoxBufferGeometry, + CircleGeometry: CircleGeometry, + CircleBufferGeometry: CircleBufferGeometry, + ConeGeometry: ConeGeometry, + ConeBufferGeometry: ConeBufferGeometry, + CylinderGeometry: CylinderGeometry, + CylinderBufferGeometry: CylinderBufferGeometry, + DodecahedronGeometry: DodecahedronGeometry, + DodecahedronBufferGeometry: DodecahedronBufferGeometry, + EdgesGeometry: EdgesGeometry, + ExtrudeGeometry: ExtrudeGeometry, + ExtrudeBufferGeometry: ExtrudeBufferGeometry, + IcosahedronGeometry: IcosahedronGeometry, + IcosahedronBufferGeometry: IcosahedronBufferGeometry, + LatheGeometry: LatheGeometry, + LatheBufferGeometry: LatheBufferGeometry, + OctahedronGeometry: OctahedronGeometry, + OctahedronBufferGeometry: OctahedronBufferGeometry, + ParametricGeometry: ParametricGeometry, + ParametricBufferGeometry: ParametricBufferGeometry, + PlaneGeometry: PlaneGeometry, + PlaneBufferGeometry: PlaneBufferGeometry, + PolyhedronGeometry: PolyhedronGeometry, + PolyhedronBufferGeometry: PolyhedronBufferGeometry, + RingGeometry: RingGeometry, + RingBufferGeometry: RingBufferGeometry, + ShapeGeometry: ShapeGeometry, + ShapeBufferGeometry: ShapeBufferGeometry, + SphereGeometry: SphereGeometry, + SphereBufferGeometry: SphereBufferGeometry, + TetrahedronGeometry: TetrahedronGeometry, + TetrahedronBufferGeometry: TetrahedronBufferGeometry, + TextGeometry: TextGeometry, + TextBufferGeometry: TextBufferGeometry, + TorusGeometry: TorusGeometry, + TorusBufferGeometry: TorusBufferGeometry, + TorusKnotGeometry: TorusKnotGeometry, + TorusKnotBufferGeometry: TorusKnotBufferGeometry, + TubeGeometry: TubeGeometry, + TubeBufferGeometry: TubeBufferGeometry, + WireframeGeometry: WireframeGeometry +}); + +/** + * parameters = { + * color: + * } + */ + +function ShadowMaterial( parameters ) { + + Material.call( this ); + + this.type = 'ShadowMaterial'; + + this.color = new Color( 0x000000 ); + this.transparent = true; + + this.setValues( parameters ); + +} + +ShadowMaterial.prototype = Object.create( Material.prototype ); +ShadowMaterial.prototype.constructor = ShadowMaterial; + +ShadowMaterial.prototype.isShadowMaterial = true; + +ShadowMaterial.prototype.copy = function ( source ) { + + Material.prototype.copy.call( this, source ); + + this.color.copy( source.color ); + + return this; + +}; + +function RawShaderMaterial( parameters ) { + + ShaderMaterial.call( this, parameters ); + + this.type = 'RawShaderMaterial'; + +} + +RawShaderMaterial.prototype = Object.create( ShaderMaterial.prototype ); +RawShaderMaterial.prototype.constructor = RawShaderMaterial; + +RawShaderMaterial.prototype.isRawShaderMaterial = true; + +/** + * parameters = { + * color: , + * roughness: , + * metalness: , + * opacity: , + * + * map: new THREE.Texture( ), + * + * lightMap: new THREE.Texture( ), + * lightMapIntensity: + * + * aoMap: new THREE.Texture( ), + * aoMapIntensity: + * + * emissive: , + * emissiveIntensity: + * emissiveMap: new THREE.Texture( ), + * + * bumpMap: new THREE.Texture( ), + * bumpScale: , + * + * normalMap: new THREE.Texture( ), + * normalMapType: THREE.TangentSpaceNormalMap, + * normalScale: , + * + * displacementMap: new THREE.Texture( ), + * displacementScale: , + * displacementBias: , + * + * roughnessMap: new THREE.Texture( ), + * + * metalnessMap: new THREE.Texture( ), + * + * alphaMap: new THREE.Texture( ), + * + * envMap: new THREE.CubeTexture( [posx, negx, posy, negy, posz, negz] ), + * envMapIntensity: + * + * refractionRatio: , + * + * wireframe: , + * wireframeLinewidth: , + * + * skinning: , + * morphTargets: , + * morphNormals: + * } + */ + +function MeshStandardMaterial( parameters ) { + + Material.call( this ); + + this.defines = { 'STANDARD': '' }; + + this.type = 'MeshStandardMaterial'; + + this.color = new Color( 0xffffff ); // diffuse + this.roughness = 1.0; + this.metalness = 0.0; + + this.map = null; + + this.lightMap = null; + this.lightMapIntensity = 1.0; + + this.aoMap = null; + this.aoMapIntensity = 1.0; + + this.emissive = new Color( 0x000000 ); + this.emissiveIntensity = 1.0; + this.emissiveMap = null; + + this.bumpMap = null; + this.bumpScale = 1; + + this.normalMap = null; + this.normalMapType = TangentSpaceNormalMap; + this.normalScale = new Vector2( 1, 1 ); + + this.displacementMap = null; + this.displacementScale = 1; + this.displacementBias = 0; + + this.roughnessMap = null; + + this.metalnessMap = null; + + this.alphaMap = null; + + this.envMap = null; + this.envMapIntensity = 1.0; + + this.refractionRatio = 0.98; + + this.wireframe = false; + this.wireframeLinewidth = 1; + this.wireframeLinecap = 'round'; + this.wireframeLinejoin = 'round'; + + this.skinning = false; + this.morphTargets = false; + this.morphNormals = false; + + this.vertexTangents = false; + + this.setValues( parameters ); + +} + +MeshStandardMaterial.prototype = Object.create( Material.prototype ); +MeshStandardMaterial.prototype.constructor = MeshStandardMaterial; + +MeshStandardMaterial.prototype.isMeshStandardMaterial = true; + +MeshStandardMaterial.prototype.copy = function ( source ) { + + Material.prototype.copy.call( this, source ); + + this.defines = { 'STANDARD': '' }; + + this.color.copy( source.color ); + this.roughness = source.roughness; + this.metalness = source.metalness; + + this.map = source.map; + + this.lightMap = source.lightMap; + this.lightMapIntensity = source.lightMapIntensity; + + this.aoMap = source.aoMap; + this.aoMapIntensity = source.aoMapIntensity; + + this.emissive.copy( source.emissive ); + this.emissiveMap = source.emissiveMap; + this.emissiveIntensity = source.emissiveIntensity; + + this.bumpMap = source.bumpMap; + this.bumpScale = source.bumpScale; + + this.normalMap = source.normalMap; + this.normalMapType = source.normalMapType; + this.normalScale.copy( source.normalScale ); + + this.displacementMap = source.displacementMap; + this.displacementScale = source.displacementScale; + this.displacementBias = source.displacementBias; + + this.roughnessMap = source.roughnessMap; + + this.metalnessMap = source.metalnessMap; + + this.alphaMap = source.alphaMap; + + this.envMap = source.envMap; + this.envMapIntensity = source.envMapIntensity; + + this.refractionRatio = source.refractionRatio; + + this.wireframe = source.wireframe; + this.wireframeLinewidth = source.wireframeLinewidth; + this.wireframeLinecap = source.wireframeLinecap; + this.wireframeLinejoin = source.wireframeLinejoin; + + this.skinning = source.skinning; + this.morphTargets = source.morphTargets; + this.morphNormals = source.morphNormals; + + this.vertexTangents = source.vertexTangents; + + return this; + +}; + +/** + * parameters = { + * clearcoat: , + * clearcoatMap: new THREE.Texture( ), + * clearcoatRoughness: , + * clearcoatRoughnessMap: new THREE.Texture( ), + * clearcoatNormalScale: , + * clearcoatNormalMap: new THREE.Texture( ), + * + * reflectivity: , + * ior: , + * + * sheen: , + * + * transmission: , + * transmissionMap: new THREE.Texture( ) + * } + */ + +function MeshPhysicalMaterial( parameters ) { + + MeshStandardMaterial.call( this ); + + this.defines = { + + 'STANDARD': '', + 'PHYSICAL': '' + + }; + + this.type = 'MeshPhysicalMaterial'; + + this.clearcoat = 0.0; + this.clearcoatMap = null; + this.clearcoatRoughness = 0.0; + this.clearcoatRoughnessMap = null; + this.clearcoatNormalScale = new Vector2( 1, 1 ); + this.clearcoatNormalMap = null; + + this.reflectivity = 0.5; // maps to F0 = 0.04 + + Object.defineProperty( this, 'ior', { + get: function () { + + return ( 1 + 0.4 * this.reflectivity ) / ( 1 - 0.4 * this.reflectivity ); + + }, + set: function ( ior ) { + + this.reflectivity = MathUtils.clamp( 2.5 * ( ior - 1 ) / ( ior + 1 ), 0, 1 ); + + } + } ); + + this.sheen = null; // null will disable sheen bsdf + + this.transmission = 0.0; + this.transmissionMap = null; + + this.setValues( parameters ); + +} + +MeshPhysicalMaterial.prototype = Object.create( MeshStandardMaterial.prototype ); +MeshPhysicalMaterial.prototype.constructor = MeshPhysicalMaterial; + +MeshPhysicalMaterial.prototype.isMeshPhysicalMaterial = true; + +MeshPhysicalMaterial.prototype.copy = function ( source ) { + + MeshStandardMaterial.prototype.copy.call( this, source ); + + this.defines = { + + 'STANDARD': '', + 'PHYSICAL': '' + + }; + + this.clearcoat = source.clearcoat; + this.clearcoatMap = source.clearcoatMap; + this.clearcoatRoughness = source.clearcoatRoughness; + this.clearcoatRoughnessMap = source.clearcoatRoughnessMap; + this.clearcoatNormalMap = source.clearcoatNormalMap; + this.clearcoatNormalScale.copy( source.clearcoatNormalScale ); + + this.reflectivity = source.reflectivity; + + if ( source.sheen ) { + + this.sheen = ( this.sheen || new Color() ).copy( source.sheen ); + + } else { + + this.sheen = null; + + } + + this.transmission = source.transmission; + this.transmissionMap = source.transmissionMap; + + return this; + +}; + +/** + * parameters = { + * color: , + * specular: , + * shininess: , + * opacity: , + * + * map: new THREE.Texture( ), + * + * lightMap: new THREE.Texture( ), + * lightMapIntensity: + * + * aoMap: new THREE.Texture( ), + * aoMapIntensity: + * + * emissive: , + * emissiveIntensity: + * emissiveMap: new THREE.Texture( ), + * + * bumpMap: new THREE.Texture( ), + * bumpScale: , + * + * normalMap: new THREE.Texture( ), + * normalMapType: THREE.TangentSpaceNormalMap, + * normalScale: , + * + * displacementMap: new THREE.Texture( ), + * displacementScale: , + * displacementBias: , + * + * specularMap: new THREE.Texture( ), + * + * alphaMap: new THREE.Texture( ), + * + * envMap: new THREE.CubeTexture( [posx, negx, posy, negy, posz, negz] ), + * combine: THREE.MultiplyOperation, + * reflectivity: , + * refractionRatio: , + * + * wireframe: , + * wireframeLinewidth: , + * + * skinning: , + * morphTargets: , + * morphNormals: + * } + */ + +function MeshPhongMaterial( parameters ) { + + Material.call( this ); + + this.type = 'MeshPhongMaterial'; + + this.color = new Color( 0xffffff ); // diffuse + this.specular = new Color( 0x111111 ); + this.shininess = 30; + + this.map = null; + + this.lightMap = null; + this.lightMapIntensity = 1.0; + + this.aoMap = null; + this.aoMapIntensity = 1.0; + + this.emissive = new Color( 0x000000 ); + this.emissiveIntensity = 1.0; + this.emissiveMap = null; + + this.bumpMap = null; + this.bumpScale = 1; + + this.normalMap = null; + this.normalMapType = TangentSpaceNormalMap; + this.normalScale = new Vector2( 1, 1 ); + + this.displacementMap = null; + this.displacementScale = 1; + this.displacementBias = 0; + + this.specularMap = null; + + this.alphaMap = null; + + this.envMap = null; + this.combine = MultiplyOperation; + this.reflectivity = 1; + this.refractionRatio = 0.98; + + this.wireframe = false; + this.wireframeLinewidth = 1; + this.wireframeLinecap = 'round'; + this.wireframeLinejoin = 'round'; + + this.skinning = false; + this.morphTargets = false; + this.morphNormals = false; + + this.setValues( parameters ); + +} + +MeshPhongMaterial.prototype = Object.create( Material.prototype ); +MeshPhongMaterial.prototype.constructor = MeshPhongMaterial; + +MeshPhongMaterial.prototype.isMeshPhongMaterial = true; + +MeshPhongMaterial.prototype.copy = function ( source ) { + + Material.prototype.copy.call( this, source ); + + this.color.copy( source.color ); + this.specular.copy( source.specular ); + this.shininess = source.shininess; + + this.map = source.map; + + this.lightMap = source.lightMap; + this.lightMapIntensity = source.lightMapIntensity; + + this.aoMap = source.aoMap; + this.aoMapIntensity = source.aoMapIntensity; + + this.emissive.copy( source.emissive ); + this.emissiveMap = source.emissiveMap; + this.emissiveIntensity = source.emissiveIntensity; + + this.bumpMap = source.bumpMap; + this.bumpScale = source.bumpScale; + + this.normalMap = source.normalMap; + this.normalMapType = source.normalMapType; + this.normalScale.copy( source.normalScale ); + + this.displacementMap = source.displacementMap; + this.displacementScale = source.displacementScale; + this.displacementBias = source.displacementBias; + + this.specularMap = source.specularMap; + + this.alphaMap = source.alphaMap; + + this.envMap = source.envMap; + this.combine = source.combine; + this.reflectivity = source.reflectivity; + this.refractionRatio = source.refractionRatio; + + this.wireframe = source.wireframe; + this.wireframeLinewidth = source.wireframeLinewidth; + this.wireframeLinecap = source.wireframeLinecap; + this.wireframeLinejoin = source.wireframeLinejoin; + + this.skinning = source.skinning; + this.morphTargets = source.morphTargets; + this.morphNormals = source.morphNormals; + + return this; + +}; + +/** + * parameters = { + * color: , + * + * map: new THREE.Texture( ), + * gradientMap: new THREE.Texture( ), + * + * lightMap: new THREE.Texture( ), + * lightMapIntensity: + * + * aoMap: new THREE.Texture( ), + * aoMapIntensity: + * + * emissive: , + * emissiveIntensity: + * emissiveMap: new THREE.Texture( ), + * + * bumpMap: new THREE.Texture( ), + * bumpScale: , + * + * normalMap: new THREE.Texture( ), + * normalMapType: THREE.TangentSpaceNormalMap, + * normalScale: , + * + * displacementMap: new THREE.Texture( ), + * displacementScale: , + * displacementBias: , + * + * alphaMap: new THREE.Texture( ), + * + * wireframe: , + * wireframeLinewidth: , + * + * skinning: , + * morphTargets: , + * morphNormals: + * } + */ + +function MeshToonMaterial( parameters ) { + + Material.call( this ); + + this.defines = { 'TOON': '' }; + + this.type = 'MeshToonMaterial'; + + this.color = new Color( 0xffffff ); + + this.map = null; + this.gradientMap = null; + + this.lightMap = null; + this.lightMapIntensity = 1.0; + + this.aoMap = null; + this.aoMapIntensity = 1.0; + + this.emissive = new Color( 0x000000 ); + this.emissiveIntensity = 1.0; + this.emissiveMap = null; + + this.bumpMap = null; + this.bumpScale = 1; + + this.normalMap = null; + this.normalMapType = TangentSpaceNormalMap; + this.normalScale = new Vector2( 1, 1 ); + + this.displacementMap = null; + this.displacementScale = 1; + this.displacementBias = 0; + + this.alphaMap = null; + + this.wireframe = false; + this.wireframeLinewidth = 1; + this.wireframeLinecap = 'round'; + this.wireframeLinejoin = 'round'; + + this.skinning = false; + this.morphTargets = false; + this.morphNormals = false; + + this.setValues( parameters ); + +} + +MeshToonMaterial.prototype = Object.create( Material.prototype ); +MeshToonMaterial.prototype.constructor = MeshToonMaterial; + +MeshToonMaterial.prototype.isMeshToonMaterial = true; + +MeshToonMaterial.prototype.copy = function ( source ) { + + Material.prototype.copy.call( this, source ); + + this.color.copy( source.color ); + + this.map = source.map; + this.gradientMap = source.gradientMap; + + this.lightMap = source.lightMap; + this.lightMapIntensity = source.lightMapIntensity; + + this.aoMap = source.aoMap; + this.aoMapIntensity = source.aoMapIntensity; + + this.emissive.copy( source.emissive ); + this.emissiveMap = source.emissiveMap; + this.emissiveIntensity = source.emissiveIntensity; + + this.bumpMap = source.bumpMap; + this.bumpScale = source.bumpScale; + + this.normalMap = source.normalMap; + this.normalMapType = source.normalMapType; + this.normalScale.copy( source.normalScale ); + + this.displacementMap = source.displacementMap; + this.displacementScale = source.displacementScale; + this.displacementBias = source.displacementBias; + + this.alphaMap = source.alphaMap; + + this.wireframe = source.wireframe; + this.wireframeLinewidth = source.wireframeLinewidth; + this.wireframeLinecap = source.wireframeLinecap; + this.wireframeLinejoin = source.wireframeLinejoin; + + this.skinning = source.skinning; + this.morphTargets = source.morphTargets; + this.morphNormals = source.morphNormals; + + return this; + +}; + +/** + * parameters = { + * opacity: , + * + * bumpMap: new THREE.Texture( ), + * bumpScale: , + * + * normalMap: new THREE.Texture( ), + * normalMapType: THREE.TangentSpaceNormalMap, + * normalScale: , + * + * displacementMap: new THREE.Texture( ), + * displacementScale: , + * displacementBias: , + * + * wireframe: , + * wireframeLinewidth: + * + * skinning: , + * morphTargets: , + * morphNormals: + * } + */ + +function MeshNormalMaterial( parameters ) { + + Material.call( this ); + + this.type = 'MeshNormalMaterial'; + + this.bumpMap = null; + this.bumpScale = 1; + + this.normalMap = null; + this.normalMapType = TangentSpaceNormalMap; + this.normalScale = new Vector2( 1, 1 ); + + this.displacementMap = null; + this.displacementScale = 1; + this.displacementBias = 0; + + this.wireframe = false; + this.wireframeLinewidth = 1; + + this.fog = false; + + this.skinning = false; + this.morphTargets = false; + this.morphNormals = false; + + this.setValues( parameters ); + +} + +MeshNormalMaterial.prototype = Object.create( Material.prototype ); +MeshNormalMaterial.prototype.constructor = MeshNormalMaterial; + +MeshNormalMaterial.prototype.isMeshNormalMaterial = true; + +MeshNormalMaterial.prototype.copy = function ( source ) { + + Material.prototype.copy.call( this, source ); + + this.bumpMap = source.bumpMap; + this.bumpScale = source.bumpScale; + + this.normalMap = source.normalMap; + this.normalMapType = source.normalMapType; + this.normalScale.copy( source.normalScale ); + + this.displacementMap = source.displacementMap; + this.displacementScale = source.displacementScale; + this.displacementBias = source.displacementBias; + + this.wireframe = source.wireframe; + this.wireframeLinewidth = source.wireframeLinewidth; + + this.skinning = source.skinning; + this.morphTargets = source.morphTargets; + this.morphNormals = source.morphNormals; + + return this; + +}; + +/** + * parameters = { + * color: , + * opacity: , + * + * map: new THREE.Texture( ), + * + * lightMap: new THREE.Texture( ), + * lightMapIntensity: + * + * aoMap: new THREE.Texture( ), + * aoMapIntensity: + * + * emissive: , + * emissiveIntensity: + * emissiveMap: new THREE.Texture( ), + * + * specularMap: new THREE.Texture( ), + * + * alphaMap: new THREE.Texture( ), + * + * envMap: new THREE.CubeTexture( [posx, negx, posy, negy, posz, negz] ), + * combine: THREE.Multiply, + * reflectivity: , + * refractionRatio: , + * + * wireframe: , + * wireframeLinewidth: , + * + * skinning: , + * morphTargets: , + * morphNormals: + * } + */ + +function MeshLambertMaterial( parameters ) { + + Material.call( this ); + + this.type = 'MeshLambertMaterial'; + + this.color = new Color( 0xffffff ); // diffuse + + this.map = null; + + this.lightMap = null; + this.lightMapIntensity = 1.0; + + this.aoMap = null; + this.aoMapIntensity = 1.0; + + this.emissive = new Color( 0x000000 ); + this.emissiveIntensity = 1.0; + this.emissiveMap = null; + + this.specularMap = null; + + this.alphaMap = null; + + this.envMap = null; + this.combine = MultiplyOperation; + this.reflectivity = 1; + this.refractionRatio = 0.98; + + this.wireframe = false; + this.wireframeLinewidth = 1; + this.wireframeLinecap = 'round'; + this.wireframeLinejoin = 'round'; + + this.skinning = false; + this.morphTargets = false; + this.morphNormals = false; + + this.setValues( parameters ); + +} + +MeshLambertMaterial.prototype = Object.create( Material.prototype ); +MeshLambertMaterial.prototype.constructor = MeshLambertMaterial; + +MeshLambertMaterial.prototype.isMeshLambertMaterial = true; + +MeshLambertMaterial.prototype.copy = function ( source ) { + + Material.prototype.copy.call( this, source ); + + this.color.copy( source.color ); + + this.map = source.map; + + this.lightMap = source.lightMap; + this.lightMapIntensity = source.lightMapIntensity; + + this.aoMap = source.aoMap; + this.aoMapIntensity = source.aoMapIntensity; + + this.emissive.copy( source.emissive ); + this.emissiveMap = source.emissiveMap; + this.emissiveIntensity = source.emissiveIntensity; + + this.specularMap = source.specularMap; + + this.alphaMap = source.alphaMap; + + this.envMap = source.envMap; + this.combine = source.combine; + this.reflectivity = source.reflectivity; + this.refractionRatio = source.refractionRatio; + + this.wireframe = source.wireframe; + this.wireframeLinewidth = source.wireframeLinewidth; + this.wireframeLinecap = source.wireframeLinecap; + this.wireframeLinejoin = source.wireframeLinejoin; + + this.skinning = source.skinning; + this.morphTargets = source.morphTargets; + this.morphNormals = source.morphNormals; + + return this; + +}; + +/** + * parameters = { + * color: , + * opacity: , + * + * matcap: new THREE.Texture( ), + * + * map: new THREE.Texture( ), + * + * bumpMap: new THREE.Texture( ), + * bumpScale: , + * + * normalMap: new THREE.Texture( ), + * normalMapType: THREE.TangentSpaceNormalMap, + * normalScale: , + * + * displacementMap: new THREE.Texture( ), + * displacementScale: , + * displacementBias: , + * + * alphaMap: new THREE.Texture( ), + * + * skinning: , + * morphTargets: , + * morphNormals: + * } + */ + +function MeshMatcapMaterial( parameters ) { + + Material.call( this ); + + this.defines = { 'MATCAP': '' }; + + this.type = 'MeshMatcapMaterial'; + + this.color = new Color( 0xffffff ); // diffuse + + this.matcap = null; + + this.map = null; + + this.bumpMap = null; + this.bumpScale = 1; + + this.normalMap = null; + this.normalMapType = TangentSpaceNormalMap; + this.normalScale = new Vector2( 1, 1 ); + + this.displacementMap = null; + this.displacementScale = 1; + this.displacementBias = 0; + + this.alphaMap = null; + + this.skinning = false; + this.morphTargets = false; + this.morphNormals = false; + + this.setValues( parameters ); + +} + +MeshMatcapMaterial.prototype = Object.create( Material.prototype ); +MeshMatcapMaterial.prototype.constructor = MeshMatcapMaterial; + +MeshMatcapMaterial.prototype.isMeshMatcapMaterial = true; + +MeshMatcapMaterial.prototype.copy = function ( source ) { + + Material.prototype.copy.call( this, source ); + + this.defines = { 'MATCAP': '' }; + + this.color.copy( source.color ); + + this.matcap = source.matcap; + + this.map = source.map; + + this.bumpMap = source.bumpMap; + this.bumpScale = source.bumpScale; + + this.normalMap = source.normalMap; + this.normalMapType = source.normalMapType; + this.normalScale.copy( source.normalScale ); + + this.displacementMap = source.displacementMap; + this.displacementScale = source.displacementScale; + this.displacementBias = source.displacementBias; + + this.alphaMap = source.alphaMap; + + this.skinning = source.skinning; + this.morphTargets = source.morphTargets; + this.morphNormals = source.morphNormals; + + return this; + +}; + +/** + * parameters = { + * color: , + * opacity: , + * + * linewidth: , + * + * scale: , + * dashSize: , + * gapSize: + * } + */ + +function LineDashedMaterial( parameters ) { + + LineBasicMaterial.call( this ); + + this.type = 'LineDashedMaterial'; + + this.scale = 1; + this.dashSize = 3; + this.gapSize = 1; + + this.setValues( parameters ); + +} + +LineDashedMaterial.prototype = Object.create( LineBasicMaterial.prototype ); +LineDashedMaterial.prototype.constructor = LineDashedMaterial; + +LineDashedMaterial.prototype.isLineDashedMaterial = true; + +LineDashedMaterial.prototype.copy = function ( source ) { + + LineBasicMaterial.prototype.copy.call( this, source ); + + this.scale = source.scale; + this.dashSize = source.dashSize; + this.gapSize = source.gapSize; + + return this; + +}; + +var Materials = /*#__PURE__*/Object.freeze({ + __proto__: null, + ShadowMaterial: ShadowMaterial, + SpriteMaterial: SpriteMaterial, + RawShaderMaterial: RawShaderMaterial, + ShaderMaterial: ShaderMaterial, + PointsMaterial: PointsMaterial, + MeshPhysicalMaterial: MeshPhysicalMaterial, + MeshStandardMaterial: MeshStandardMaterial, + MeshPhongMaterial: MeshPhongMaterial, + MeshToonMaterial: MeshToonMaterial, + MeshNormalMaterial: MeshNormalMaterial, + MeshLambertMaterial: MeshLambertMaterial, + MeshDepthMaterial: MeshDepthMaterial, + MeshDistanceMaterial: MeshDistanceMaterial, + MeshBasicMaterial: MeshBasicMaterial, + MeshMatcapMaterial: MeshMatcapMaterial, + LineDashedMaterial: LineDashedMaterial, + LineBasicMaterial: LineBasicMaterial, + Material: Material +}); + +const AnimationUtils = { + + // same as Array.prototype.slice, but also works on typed arrays + arraySlice: function ( array, from, to ) { + + if ( AnimationUtils.isTypedArray( array ) ) { + + // in ios9 array.subarray(from, undefined) will return empty array + // but array.subarray(from) or array.subarray(from, len) is correct + return new array.constructor( array.subarray( from, to !== undefined ? to : array.length ) ); + + } + + return array.slice( from, to ); + + }, + + // converts an array to a specific type + convertArray: function ( array, type, forceClone ) { + + if ( ! array || // let 'undefined' and 'null' pass + ! forceClone && array.constructor === type ) return array; + + if ( typeof type.BYTES_PER_ELEMENT === 'number' ) { + + return new type( array ); // create typed array + + } + + return Array.prototype.slice.call( array ); // create Array + + }, + + isTypedArray: function ( object ) { + + return ArrayBuffer.isView( object ) && + ! ( object instanceof DataView ); + + }, + + // returns an array by which times and values can be sorted + getKeyframeOrder: function ( times ) { + + function compareTime( i, j ) { + + return times[ i ] - times[ j ]; + + } + + const n = times.length; + const result = new Array( n ); + for ( let i = 0; i !== n; ++ i ) result[ i ] = i; + + result.sort( compareTime ); + + return result; + + }, + + // uses the array previously returned by 'getKeyframeOrder' to sort data + sortedArray: function ( values, stride, order ) { + + const nValues = values.length; + const result = new values.constructor( nValues ); + + for ( let i = 0, dstOffset = 0; dstOffset !== nValues; ++ i ) { + + const srcOffset = order[ i ] * stride; + + for ( let j = 0; j !== stride; ++ j ) { + + result[ dstOffset ++ ] = values[ srcOffset + j ]; + + } + + } + + return result; + + }, + + // function for parsing AOS keyframe formats + flattenJSON: function ( jsonKeys, times, values, valuePropertyName ) { + + let i = 1, key = jsonKeys[ 0 ]; + + while ( key !== undefined && key[ valuePropertyName ] === undefined ) { + + key = jsonKeys[ i ++ ]; + + } + + if ( key === undefined ) return; // no data + + let value = key[ valuePropertyName ]; + if ( value === undefined ) return; // no data + + if ( Array.isArray( value ) ) { + + do { + + value = key[ valuePropertyName ]; + + if ( value !== undefined ) { + + times.push( key.time ); + values.push.apply( values, value ); // push all elements + + } + + key = jsonKeys[ i ++ ]; + + } while ( key !== undefined ); + + } else if ( value.toArray !== undefined ) { + + // ...assume THREE.Math-ish + + do { + + value = key[ valuePropertyName ]; + + if ( value !== undefined ) { + + times.push( key.time ); + value.toArray( values, values.length ); + + } + + key = jsonKeys[ i ++ ]; + + } while ( key !== undefined ); + + } else { + + // otherwise push as-is + + do { + + value = key[ valuePropertyName ]; + + if ( value !== undefined ) { + + times.push( key.time ); + values.push( value ); + + } + + key = jsonKeys[ i ++ ]; + + } while ( key !== undefined ); + + } + + }, + + subclip: function ( sourceClip, name, startFrame, endFrame, fps ) { + + fps = fps || 30; + + const clip = sourceClip.clone(); + + clip.name = name; + + const tracks = []; + + for ( let i = 0; i < clip.tracks.length; ++ i ) { + + const track = clip.tracks[ i ]; + const valueSize = track.getValueSize(); + + const times = []; + const values = []; + + for ( let j = 0; j < track.times.length; ++ j ) { + + const frame = track.times[ j ] * fps; + + if ( frame < startFrame || frame >= endFrame ) continue; + + times.push( track.times[ j ] ); + + for ( let k = 0; k < valueSize; ++ k ) { + + values.push( track.values[ j * valueSize + k ] ); + + } + + } + + if ( times.length === 0 ) continue; + + track.times = AnimationUtils.convertArray( times, track.times.constructor ); + track.values = AnimationUtils.convertArray( values, track.values.constructor ); + + tracks.push( track ); + + } + + clip.tracks = tracks; + + // find minimum .times value across all tracks in the trimmed clip + + let minStartTime = Infinity; + + for ( let i = 0; i < clip.tracks.length; ++ i ) { + + if ( minStartTime > clip.tracks[ i ].times[ 0 ] ) { + + minStartTime = clip.tracks[ i ].times[ 0 ]; + + } + + } + + // shift all tracks such that clip begins at t=0 + + for ( let i = 0; i < clip.tracks.length; ++ i ) { + + clip.tracks[ i ].shift( - 1 * minStartTime ); + + } + + clip.resetDuration(); + + return clip; + + }, + + makeClipAdditive: function ( targetClip, referenceFrame, referenceClip, fps ) { + + if ( referenceFrame === undefined ) referenceFrame = 0; + if ( referenceClip === undefined ) referenceClip = targetClip; + if ( fps === undefined || fps <= 0 ) fps = 30; + + const numTracks = referenceClip.tracks.length; + const referenceTime = referenceFrame / fps; + + // Make each track's values relative to the values at the reference frame + for ( let i = 0; i < numTracks; ++ i ) { + + const referenceTrack = referenceClip.tracks[ i ]; + const referenceTrackType = referenceTrack.ValueTypeName; + + // Skip this track if it's non-numeric + if ( referenceTrackType === 'bool' || referenceTrackType === 'string' ) continue; + + // Find the track in the target clip whose name and type matches the reference track + const targetTrack = targetClip.tracks.find( function ( track ) { + + return track.name === referenceTrack.name + && track.ValueTypeName === referenceTrackType; + + } ); + + if ( targetTrack === undefined ) continue; + + let referenceOffset = 0; + const referenceValueSize = referenceTrack.getValueSize(); + + if ( referenceTrack.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline ) { + + referenceOffset = referenceValueSize / 3; + + } + + let targetOffset = 0; + const targetValueSize = targetTrack.getValueSize(); + + if ( targetTrack.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline ) { + + targetOffset = targetValueSize / 3; + + } + + const lastIndex = referenceTrack.times.length - 1; + let referenceValue; + + // Find the value to subtract out of the track + if ( referenceTime <= referenceTrack.times[ 0 ] ) { + + // Reference frame is earlier than the first keyframe, so just use the first keyframe + const startIndex = referenceOffset; + const endIndex = referenceValueSize - referenceOffset; + referenceValue = AnimationUtils.arraySlice( referenceTrack.values, startIndex, endIndex ); + + } else if ( referenceTime >= referenceTrack.times[ lastIndex ] ) { + + // Reference frame is after the last keyframe, so just use the last keyframe + const startIndex = lastIndex * referenceValueSize + referenceOffset; + const endIndex = startIndex + referenceValueSize - referenceOffset; + referenceValue = AnimationUtils.arraySlice( referenceTrack.values, startIndex, endIndex ); + + } else { + + // Interpolate to the reference value + const interpolant = referenceTrack.createInterpolant(); + const startIndex = referenceOffset; + const endIndex = referenceValueSize - referenceOffset; + interpolant.evaluate( referenceTime ); + referenceValue = AnimationUtils.arraySlice( interpolant.resultBuffer, startIndex, endIndex ); + + } + + // Conjugate the quaternion + if ( referenceTrackType === 'quaternion' ) { + + const referenceQuat = new Quaternion().fromArray( referenceValue ).normalize().conjugate(); + referenceQuat.toArray( referenceValue ); + + } + + // Subtract the reference value from all of the track values + + const numTimes = targetTrack.times.length; + for ( let j = 0; j < numTimes; ++ j ) { + + const valueStart = j * targetValueSize + targetOffset; + + if ( referenceTrackType === 'quaternion' ) { + + // Multiply the conjugate for quaternion track types + Quaternion.multiplyQuaternionsFlat( + targetTrack.values, + valueStart, + referenceValue, + 0, + targetTrack.values, + valueStart + ); + + } else { + + const valueEnd = targetValueSize - targetOffset * 2; + + // Subtract each value for all other numeric track types + for ( let k = 0; k < valueEnd; ++ k ) { + + targetTrack.values[ valueStart + k ] -= referenceValue[ k ]; + + } + + } + + } + + } + + targetClip.blendMode = AdditiveAnimationBlendMode; + + return targetClip; + + } + +}; + +/** + * Abstract base class of interpolants over parametric samples. + * + * The parameter domain is one dimensional, typically the time or a path + * along a curve defined by the data. + * + * The sample values can have any dimensionality and derived classes may + * apply special interpretations to the data. + * + * This class provides the interval seek in a Template Method, deferring + * the actual interpolation to derived classes. + * + * Time complexity is O(1) for linear access crossing at most two points + * and O(log N) for random access, where N is the number of positions. + * + * References: + * + * http://www.oodesign.com/template-method-pattern.html + * + */ + +function Interpolant( parameterPositions, sampleValues, sampleSize, resultBuffer ) { + + this.parameterPositions = parameterPositions; + this._cachedIndex = 0; + + this.resultBuffer = resultBuffer !== undefined ? + resultBuffer : new sampleValues.constructor( sampleSize ); + this.sampleValues = sampleValues; + this.valueSize = sampleSize; + +} + +Object.assign( Interpolant.prototype, { + + evaluate: function ( t ) { + + const pp = this.parameterPositions; + let i1 = this._cachedIndex, + t1 = pp[ i1 ], + t0 = pp[ i1 - 1 ]; + + validate_interval: { + + seek: { + + let right; + + linear_scan: { + + //- See http://jsperf.com/comparison-to-undefined/3 + //- slower code: + //- + //- if ( t >= t1 || t1 === undefined ) { + forward_scan: if ( ! ( t < t1 ) ) { + + for ( let giveUpAt = i1 + 2; ; ) { + + if ( t1 === undefined ) { + + if ( t < t0 ) break forward_scan; + + // after end + + i1 = pp.length; + this._cachedIndex = i1; + return this.afterEnd_( i1 - 1, t, t0 ); + + } + + if ( i1 === giveUpAt ) break; // this loop + + t0 = t1; + t1 = pp[ ++ i1 ]; + + if ( t < t1 ) { + + // we have arrived at the sought interval + break seek; + + } + + } + + // prepare binary search on the right side of the index + right = pp.length; + break linear_scan; + + } + + //- slower code: + //- if ( t < t0 || t0 === undefined ) { + if ( ! ( t >= t0 ) ) { + + // looping? + + const t1global = pp[ 1 ]; + + if ( t < t1global ) { + + i1 = 2; // + 1, using the scan for the details + t0 = t1global; + + } + + // linear reverse scan + + for ( let giveUpAt = i1 - 2; ; ) { + + if ( t0 === undefined ) { + + // before start + + this._cachedIndex = 0; + return this.beforeStart_( 0, t, t1 ); + + } + + if ( i1 === giveUpAt ) break; // this loop + + t1 = t0; + t0 = pp[ -- i1 - 1 ]; + + if ( t >= t0 ) { + + // we have arrived at the sought interval + break seek; + + } + + } + + // prepare binary search on the left side of the index + right = i1; + i1 = 0; + break linear_scan; + + } + + // the interval is valid + + break validate_interval; + + } // linear scan + + // binary search + + while ( i1 < right ) { + + const mid = ( i1 + right ) >>> 1; + + if ( t < pp[ mid ] ) { + + right = mid; + + } else { + + i1 = mid + 1; + + } + + } + + t1 = pp[ i1 ]; + t0 = pp[ i1 - 1 ]; + + // check boundary cases, again + + if ( t0 === undefined ) { + + this._cachedIndex = 0; + return this.beforeStart_( 0, t, t1 ); + + } + + if ( t1 === undefined ) { + + i1 = pp.length; + this._cachedIndex = i1; + return this.afterEnd_( i1 - 1, t0, t ); + + } + + } // seek + + this._cachedIndex = i1; + + this.intervalChanged_( i1, t0, t1 ); + + } // validate_interval + + return this.interpolate_( i1, t0, t, t1 ); + + }, + + settings: null, // optional, subclass-specific settings structure + // Note: The indirection allows central control of many interpolants. + + // --- Protected interface + + DefaultSettings_: {}, + + getSettings_: function () { + + return this.settings || this.DefaultSettings_; + + }, + + copySampleValue_: function ( index ) { + + // copies a sample value to the result buffer + + const result = this.resultBuffer, + values = this.sampleValues, + stride = this.valueSize, + offset = index * stride; + + for ( let i = 0; i !== stride; ++ i ) { + + result[ i ] = values[ offset + i ]; + + } + + return result; + + }, + + // Template methods for derived classes: + + interpolate_: function ( /* i1, t0, t, t1 */ ) { + + throw new Error( 'call to abstract method' ); + // implementations shall return this.resultBuffer + + }, + + intervalChanged_: function ( /* i1, t0, t1 */ ) { + + // empty + + } + +} ); + +// DECLARE ALIAS AFTER assign prototype +Object.assign( Interpolant.prototype, { + + //( 0, t, t0 ), returns this.resultBuffer + beforeStart_: Interpolant.prototype.copySampleValue_, + + //( N-1, tN-1, t ), returns this.resultBuffer + afterEnd_: Interpolant.prototype.copySampleValue_, + +} ); + +/** + * Fast and simple cubic spline interpolant. + * + * It was derived from a Hermitian construction setting the first derivative + * at each sample position to the linear slope between neighboring positions + * over their parameter interval. + */ + +function CubicInterpolant( parameterPositions, sampleValues, sampleSize, resultBuffer ) { + + Interpolant.call( this, parameterPositions, sampleValues, sampleSize, resultBuffer ); + + this._weightPrev = - 0; + this._offsetPrev = - 0; + this._weightNext = - 0; + this._offsetNext = - 0; + +} + +CubicInterpolant.prototype = Object.assign( Object.create( Interpolant.prototype ), { + + constructor: CubicInterpolant, + + DefaultSettings_: { + + endingStart: ZeroCurvatureEnding, + endingEnd: ZeroCurvatureEnding + + }, + + intervalChanged_: function ( i1, t0, t1 ) { + + const pp = this.parameterPositions; + let iPrev = i1 - 2, + iNext = i1 + 1, + + tPrev = pp[ iPrev ], + tNext = pp[ iNext ]; + + if ( tPrev === undefined ) { + + switch ( this.getSettings_().endingStart ) { + + case ZeroSlopeEnding: + + // f'(t0) = 0 + iPrev = i1; + tPrev = 2 * t0 - t1; + + break; + + case WrapAroundEnding: + + // use the other end of the curve + iPrev = pp.length - 2; + tPrev = t0 + pp[ iPrev ] - pp[ iPrev + 1 ]; + + break; + + default: // ZeroCurvatureEnding + + // f''(t0) = 0 a.k.a. Natural Spline + iPrev = i1; + tPrev = t1; + + } + + } + + if ( tNext === undefined ) { + + switch ( this.getSettings_().endingEnd ) { + + case ZeroSlopeEnding: + + // f'(tN) = 0 + iNext = i1; + tNext = 2 * t1 - t0; + + break; + + case WrapAroundEnding: + + // use the other end of the curve + iNext = 1; + tNext = t1 + pp[ 1 ] - pp[ 0 ]; + + break; + + default: // ZeroCurvatureEnding + + // f''(tN) = 0, a.k.a. Natural Spline + iNext = i1 - 1; + tNext = t0; + + } + + } + + const halfDt = ( t1 - t0 ) * 0.5, + stride = this.valueSize; + + this._weightPrev = halfDt / ( t0 - tPrev ); + this._weightNext = halfDt / ( tNext - t1 ); + this._offsetPrev = iPrev * stride; + this._offsetNext = iNext * stride; + + }, + + interpolate_: function ( i1, t0, t, t1 ) { + + const result = this.resultBuffer, + values = this.sampleValues, + stride = this.valueSize, + + o1 = i1 * stride, o0 = o1 - stride, + oP = this._offsetPrev, oN = this._offsetNext, + wP = this._weightPrev, wN = this._weightNext, + + p = ( t - t0 ) / ( t1 - t0 ), + pp = p * p, + ppp = pp * p; + + // evaluate polynomials + + const sP = - wP * ppp + 2 * wP * pp - wP * p; + const s0 = ( 1 + wP ) * ppp + ( - 1.5 - 2 * wP ) * pp + ( - 0.5 + wP ) * p + 1; + const s1 = ( - 1 - wN ) * ppp + ( 1.5 + wN ) * pp + 0.5 * p; + const sN = wN * ppp - wN * pp; + + // combine data linearly + + for ( let i = 0; i !== stride; ++ i ) { + + result[ i ] = + sP * values[ oP + i ] + + s0 * values[ o0 + i ] + + s1 * values[ o1 + i ] + + sN * values[ oN + i ]; + + } + + return result; + + } + +} ); + +function LinearInterpolant( parameterPositions, sampleValues, sampleSize, resultBuffer ) { + + Interpolant.call( this, parameterPositions, sampleValues, sampleSize, resultBuffer ); + +} + +LinearInterpolant.prototype = Object.assign( Object.create( Interpolant.prototype ), { + + constructor: LinearInterpolant, + + interpolate_: function ( i1, t0, t, t1 ) { + + const result = this.resultBuffer, + values = this.sampleValues, + stride = this.valueSize, + + offset1 = i1 * stride, + offset0 = offset1 - stride, + + weight1 = ( t - t0 ) / ( t1 - t0 ), + weight0 = 1 - weight1; + + for ( let i = 0; i !== stride; ++ i ) { + + result[ i ] = + values[ offset0 + i ] * weight0 + + values[ offset1 + i ] * weight1; + + } + + return result; + + } + +} ); + +/** + * + * Interpolant that evaluates to the sample value at the position preceeding + * the parameter. + */ + +function DiscreteInterpolant( parameterPositions, sampleValues, sampleSize, resultBuffer ) { + + Interpolant.call( this, parameterPositions, sampleValues, sampleSize, resultBuffer ); + +} + +DiscreteInterpolant.prototype = Object.assign( Object.create( Interpolant.prototype ), { + + constructor: DiscreteInterpolant, + + interpolate_: function ( i1 /*, t0, t, t1 */ ) { + + return this.copySampleValue_( i1 - 1 ); + + } + +} ); + +function KeyframeTrack( name, times, values, interpolation ) { + + if ( name === undefined ) throw new Error( 'THREE.KeyframeTrack: track name is undefined' ); + if ( times === undefined || times.length === 0 ) throw new Error( 'THREE.KeyframeTrack: no keyframes in track named ' + name ); + + this.name = name; + + this.times = AnimationUtils.convertArray( times, this.TimeBufferType ); + this.values = AnimationUtils.convertArray( values, this.ValueBufferType ); + + this.setInterpolation( interpolation || this.DefaultInterpolation ); + +} + +// Static methods + +Object.assign( KeyframeTrack, { + + // Serialization (in static context, because of constructor invocation + // and automatic invocation of .toJSON): + + toJSON: function ( track ) { + + const trackType = track.constructor; + + let json; + + // derived classes can define a static toJSON method + if ( trackType.toJSON !== undefined ) { + + json = trackType.toJSON( track ); + + } else { + + // by default, we assume the data can be serialized as-is + json = { + + 'name': track.name, + 'times': AnimationUtils.convertArray( track.times, Array ), + 'values': AnimationUtils.convertArray( track.values, Array ) + + }; + + const interpolation = track.getInterpolation(); + + if ( interpolation !== track.DefaultInterpolation ) { + + json.interpolation = interpolation; + + } + + } + + json.type = track.ValueTypeName; // mandatory + + return json; + + } + +} ); + +Object.assign( KeyframeTrack.prototype, { + + constructor: KeyframeTrack, + + TimeBufferType: Float32Array, + + ValueBufferType: Float32Array, + + DefaultInterpolation: InterpolateLinear, + + InterpolantFactoryMethodDiscrete: function ( result ) { + + return new DiscreteInterpolant( this.times, this.values, this.getValueSize(), result ); + + }, + + InterpolantFactoryMethodLinear: function ( result ) { + + return new LinearInterpolant( this.times, this.values, this.getValueSize(), result ); + + }, + + InterpolantFactoryMethodSmooth: function ( result ) { + + return new CubicInterpolant( this.times, this.values, this.getValueSize(), result ); + + }, + + setInterpolation: function ( interpolation ) { + + let factoryMethod; + + switch ( interpolation ) { + + case InterpolateDiscrete: + + factoryMethod = this.InterpolantFactoryMethodDiscrete; + + break; + + case InterpolateLinear: + + factoryMethod = this.InterpolantFactoryMethodLinear; + + break; + + case InterpolateSmooth: + + factoryMethod = this.InterpolantFactoryMethodSmooth; + + break; + + } + + if ( factoryMethod === undefined ) { + + const message = "unsupported interpolation for " + + this.ValueTypeName + " keyframe track named " + this.name; + + if ( this.createInterpolant === undefined ) { + + // fall back to default, unless the default itself is messed up + if ( interpolation !== this.DefaultInterpolation ) { + + this.setInterpolation( this.DefaultInterpolation ); + + } else { + + throw new Error( message ); // fatal, in this case + + } + + } + + console.warn( 'THREE.KeyframeTrack:', message ); + return this; + + } + + this.createInterpolant = factoryMethod; + + return this; + + }, + + getInterpolation: function () { + + switch ( this.createInterpolant ) { + + case this.InterpolantFactoryMethodDiscrete: + + return InterpolateDiscrete; + + case this.InterpolantFactoryMethodLinear: + + return InterpolateLinear; + + case this.InterpolantFactoryMethodSmooth: + + return InterpolateSmooth; + + } + + }, + + getValueSize: function () { + + return this.values.length / this.times.length; + + }, + + // move all keyframes either forwards or backwards in time + shift: function ( timeOffset ) { + + if ( timeOffset !== 0.0 ) { + + const times = this.times; + + for ( let i = 0, n = times.length; i !== n; ++ i ) { + + times[ i ] += timeOffset; + + } + + } + + return this; + + }, + + // scale all keyframe times by a factor (useful for frame <-> seconds conversions) + scale: function ( timeScale ) { + + if ( timeScale !== 1.0 ) { + + const times = this.times; + + for ( let i = 0, n = times.length; i !== n; ++ i ) { + + times[ i ] *= timeScale; + + } + + } + + return this; + + }, + + // removes keyframes before and after animation without changing any values within the range [startTime, endTime]. + // IMPORTANT: We do not shift around keys to the start of the track time, because for interpolated keys this will change their values + trim: function ( startTime, endTime ) { + + const times = this.times, + nKeys = times.length; + + let from = 0, + to = nKeys - 1; + + while ( from !== nKeys && times[ from ] < startTime ) { + + ++ from; + + } + + while ( to !== - 1 && times[ to ] > endTime ) { + + -- to; + + } + + ++ to; // inclusive -> exclusive bound + + if ( from !== 0 || to !== nKeys ) { + + // empty tracks are forbidden, so keep at least one keyframe + if ( from >= to ) { + + to = Math.max( to, 1 ); + from = to - 1; + + } + + const stride = this.getValueSize(); + this.times = AnimationUtils.arraySlice( times, from, to ); + this.values = AnimationUtils.arraySlice( this.values, from * stride, to * stride ); + + } + + return this; + + }, + + // ensure we do not get a GarbageInGarbageOut situation, make sure tracks are at least minimally viable + validate: function () { + + let valid = true; + + const valueSize = this.getValueSize(); + if ( valueSize - Math.floor( valueSize ) !== 0 ) { + + console.error( 'THREE.KeyframeTrack: Invalid value size in track.', this ); + valid = false; + + } + + const times = this.times, + values = this.values, + + nKeys = times.length; + + if ( nKeys === 0 ) { + + console.error( 'THREE.KeyframeTrack: Track is empty.', this ); + valid = false; + + } + + let prevTime = null; + + for ( let i = 0; i !== nKeys; i ++ ) { + + const currTime = times[ i ]; + + if ( typeof currTime === 'number' && isNaN( currTime ) ) { + + console.error( 'THREE.KeyframeTrack: Time is not a valid number.', this, i, currTime ); + valid = false; + break; + + } + + if ( prevTime !== null && prevTime > currTime ) { + + console.error( 'THREE.KeyframeTrack: Out of order keys.', this, i, currTime, prevTime ); + valid = false; + break; + + } + + prevTime = currTime; + + } + + if ( values !== undefined ) { + + if ( AnimationUtils.isTypedArray( values ) ) { + + for ( let i = 0, n = values.length; i !== n; ++ i ) { + + const value = values[ i ]; + + if ( isNaN( value ) ) { + + console.error( 'THREE.KeyframeTrack: Value is not a valid number.', this, i, value ); + valid = false; + break; + + } + + } + + } + + } + + return valid; + + }, + + // removes equivalent sequential keys as common in morph target sequences + // (0,0,0,0,1,1,1,0,0,0,0,0,0,0) --> (0,0,1,1,0,0) + optimize: function () { + + // times or values may be shared with other tracks, so overwriting is unsafe + const times = AnimationUtils.arraySlice( this.times ), + values = AnimationUtils.arraySlice( this.values ), + stride = this.getValueSize(), + + smoothInterpolation = this.getInterpolation() === InterpolateSmooth, + + lastIndex = times.length - 1; + + let writeIndex = 1; + + for ( let i = 1; i < lastIndex; ++ i ) { + + let keep = false; + + const time = times[ i ]; + const timeNext = times[ i + 1 ]; + + // remove adjacent keyframes scheduled at the same time + + if ( time !== timeNext && ( i !== 1 || time !== time[ 0 ] ) ) { + + if ( ! smoothInterpolation ) { + + // remove unnecessary keyframes same as their neighbors + + const offset = i * stride, + offsetP = offset - stride, + offsetN = offset + stride; + + for ( let j = 0; j !== stride; ++ j ) { + + const value = values[ offset + j ]; + + if ( value !== values[ offsetP + j ] || + value !== values[ offsetN + j ] ) { + + keep = true; + break; + + } + + } + + } else { + + keep = true; + + } + + } + + // in-place compaction + + if ( keep ) { + + if ( i !== writeIndex ) { + + times[ writeIndex ] = times[ i ]; + + const readOffset = i * stride, + writeOffset = writeIndex * stride; + + for ( let j = 0; j !== stride; ++ j ) { + + values[ writeOffset + j ] = values[ readOffset + j ]; + + } + + } + + ++ writeIndex; + + } + + } + + // flush last keyframe (compaction looks ahead) + + if ( lastIndex > 0 ) { + + times[ writeIndex ] = times[ lastIndex ]; + + for ( let readOffset = lastIndex * stride, writeOffset = writeIndex * stride, j = 0; j !== stride; ++ j ) { + + values[ writeOffset + j ] = values[ readOffset + j ]; + + } + + ++ writeIndex; + + } + + if ( writeIndex !== times.length ) { + + this.times = AnimationUtils.arraySlice( times, 0, writeIndex ); + this.values = AnimationUtils.arraySlice( values, 0, writeIndex * stride ); + + } else { + + this.times = times; + this.values = values; + + } + + return this; + + }, + + clone: function () { + + const times = AnimationUtils.arraySlice( this.times, 0 ); + const values = AnimationUtils.arraySlice( this.values, 0 ); + + const TypedKeyframeTrack = this.constructor; + const track = new TypedKeyframeTrack( this.name, times, values ); + + // Interpolant argument to constructor is not saved, so copy the factory method directly. + track.createInterpolant = this.createInterpolant; + + return track; + + } + +} ); + +/** + * A Track of Boolean keyframe values. + */ + +function BooleanKeyframeTrack( name, times, values ) { + + KeyframeTrack.call( this, name, times, values ); + +} + +BooleanKeyframeTrack.prototype = Object.assign( Object.create( KeyframeTrack.prototype ), { + + constructor: BooleanKeyframeTrack, + + ValueTypeName: 'bool', + ValueBufferType: Array, + + DefaultInterpolation: InterpolateDiscrete, + + InterpolantFactoryMethodLinear: undefined, + InterpolantFactoryMethodSmooth: undefined + + // Note: Actually this track could have a optimized / compressed + // representation of a single value and a custom interpolant that + // computes "firstValue ^ isOdd( index )". + +} ); + +/** + * A Track of keyframe values that represent color. + */ + +function ColorKeyframeTrack( name, times, values, interpolation ) { + + KeyframeTrack.call( this, name, times, values, interpolation ); + +} + +ColorKeyframeTrack.prototype = Object.assign( Object.create( KeyframeTrack.prototype ), { + + constructor: ColorKeyframeTrack, + + ValueTypeName: 'color' + + // ValueBufferType is inherited + + // DefaultInterpolation is inherited + + // Note: Very basic implementation and nothing special yet. + // However, this is the place for color space parameterization. + +} ); + +/** + * A Track of numeric keyframe values. + */ + +function NumberKeyframeTrack( name, times, values, interpolation ) { + + KeyframeTrack.call( this, name, times, values, interpolation ); + +} + +NumberKeyframeTrack.prototype = Object.assign( Object.create( KeyframeTrack.prototype ), { + + constructor: NumberKeyframeTrack, + + ValueTypeName: 'number' + + // ValueBufferType is inherited + + // DefaultInterpolation is inherited + +} ); + +/** + * Spherical linear unit quaternion interpolant. + */ + +function QuaternionLinearInterpolant( parameterPositions, sampleValues, sampleSize, resultBuffer ) { + + Interpolant.call( this, parameterPositions, sampleValues, sampleSize, resultBuffer ); + +} + +QuaternionLinearInterpolant.prototype = Object.assign( Object.create( Interpolant.prototype ), { + + constructor: QuaternionLinearInterpolant, + + interpolate_: function ( i1, t0, t, t1 ) { + + const result = this.resultBuffer, + values = this.sampleValues, + stride = this.valueSize, + + alpha = ( t - t0 ) / ( t1 - t0 ); + + let offset = i1 * stride; + + for ( let end = offset + stride; offset !== end; offset += 4 ) { + + Quaternion.slerpFlat( result, 0, values, offset - stride, values, offset, alpha ); + + } + + return result; + + } + +} ); + +/** + * A Track of quaternion keyframe values. + */ + +function QuaternionKeyframeTrack( name, times, values, interpolation ) { + + KeyframeTrack.call( this, name, times, values, interpolation ); + +} + +QuaternionKeyframeTrack.prototype = Object.assign( Object.create( KeyframeTrack.prototype ), { + + constructor: QuaternionKeyframeTrack, + + ValueTypeName: 'quaternion', + + // ValueBufferType is inherited + + DefaultInterpolation: InterpolateLinear, + + InterpolantFactoryMethodLinear: function ( result ) { + + return new QuaternionLinearInterpolant( this.times, this.values, this.getValueSize(), result ); + + }, + + InterpolantFactoryMethodSmooth: undefined // not yet implemented + +} ); + +/** + * A Track that interpolates Strings + */ + +function StringKeyframeTrack( name, times, values, interpolation ) { + + KeyframeTrack.call( this, name, times, values, interpolation ); + +} + +StringKeyframeTrack.prototype = Object.assign( Object.create( KeyframeTrack.prototype ), { + + constructor: StringKeyframeTrack, + + ValueTypeName: 'string', + ValueBufferType: Array, + + DefaultInterpolation: InterpolateDiscrete, + + InterpolantFactoryMethodLinear: undefined, + + InterpolantFactoryMethodSmooth: undefined + +} ); + +/** + * A Track of vectored keyframe values. + */ + +function VectorKeyframeTrack( name, times, values, interpolation ) { + + KeyframeTrack.call( this, name, times, values, interpolation ); + +} + +VectorKeyframeTrack.prototype = Object.assign( Object.create( KeyframeTrack.prototype ), { + + constructor: VectorKeyframeTrack, + + ValueTypeName: 'vector' + + // ValueBufferType is inherited + + // DefaultInterpolation is inherited + +} ); + +function AnimationClip( name, duration, tracks, blendMode ) { + + this.name = name; + this.tracks = tracks; + this.duration = ( duration !== undefined ) ? duration : - 1; + this.blendMode = ( blendMode !== undefined ) ? blendMode : NormalAnimationBlendMode; + + this.uuid = MathUtils.generateUUID(); + + // this means it should figure out its duration by scanning the tracks + if ( this.duration < 0 ) { + + this.resetDuration(); + + } + +} + +function getTrackTypeForValueTypeName( typeName ) { + + switch ( typeName.toLowerCase() ) { + + case 'scalar': + case 'double': + case 'float': + case 'number': + case 'integer': + + return NumberKeyframeTrack; + + case 'vector': + case 'vector2': + case 'vector3': + case 'vector4': + + return VectorKeyframeTrack; + + case 'color': + + return ColorKeyframeTrack; + + case 'quaternion': + + return QuaternionKeyframeTrack; + + case 'bool': + case 'boolean': + + return BooleanKeyframeTrack; + + case 'string': + + return StringKeyframeTrack; + + } + + throw new Error( 'THREE.KeyframeTrack: Unsupported typeName: ' + typeName ); + +} + +function parseKeyframeTrack( json ) { + + if ( json.type === undefined ) { + + throw new Error( 'THREE.KeyframeTrack: track type undefined, can not parse' ); + + } + + const trackType = getTrackTypeForValueTypeName( json.type ); + + if ( json.times === undefined ) { + + const times = [], values = []; + + AnimationUtils.flattenJSON( json.keys, times, values, 'value' ); + + json.times = times; + json.values = values; + + } + + // derived classes can define a static parse method + if ( trackType.parse !== undefined ) { + + return trackType.parse( json ); + + } else { + + // by default, we assume a constructor compatible with the base + return new trackType( json.name, json.times, json.values, json.interpolation ); + + } + +} + +Object.assign( AnimationClip, { + + parse: function ( json ) { + + const tracks = [], + jsonTracks = json.tracks, + frameTime = 1.0 / ( json.fps || 1.0 ); + + for ( let i = 0, n = jsonTracks.length; i !== n; ++ i ) { + + tracks.push( parseKeyframeTrack( jsonTracks[ i ] ).scale( frameTime ) ); + + } + + return new AnimationClip( json.name, json.duration, tracks, json.blendMode ); + + }, + + toJSON: function ( clip ) { + + const tracks = [], + clipTracks = clip.tracks; + + const json = { + + 'name': clip.name, + 'duration': clip.duration, + 'tracks': tracks, + 'uuid': clip.uuid, + 'blendMode': clip.blendMode + + }; + + for ( let i = 0, n = clipTracks.length; i !== n; ++ i ) { + + tracks.push( KeyframeTrack.toJSON( clipTracks[ i ] ) ); + + } + + return json; + + }, + + CreateFromMorphTargetSequence: function ( name, morphTargetSequence, fps, noLoop ) { + + const numMorphTargets = morphTargetSequence.length; + const tracks = []; + + for ( let i = 0; i < numMorphTargets; i ++ ) { + + let times = []; + let values = []; + + times.push( + ( i + numMorphTargets - 1 ) % numMorphTargets, + i, + ( i + 1 ) % numMorphTargets ); + + values.push( 0, 1, 0 ); + + const order = AnimationUtils.getKeyframeOrder( times ); + times = AnimationUtils.sortedArray( times, 1, order ); + values = AnimationUtils.sortedArray( values, 1, order ); + + // if there is a key at the first frame, duplicate it as the + // last frame as well for perfect loop. + if ( ! noLoop && times[ 0 ] === 0 ) { + + times.push( numMorphTargets ); + values.push( values[ 0 ] ); + + } + + tracks.push( + new NumberKeyframeTrack( + '.morphTargetInfluences[' + morphTargetSequence[ i ].name + ']', + times, values + ).scale( 1.0 / fps ) ); + + } + + return new AnimationClip( name, - 1, tracks ); + + }, + + findByName: function ( objectOrClipArray, name ) { + + let clipArray = objectOrClipArray; + + if ( ! Array.isArray( objectOrClipArray ) ) { + + const o = objectOrClipArray; + clipArray = o.geometry && o.geometry.animations || o.animations; + + } + + for ( let i = 0; i < clipArray.length; i ++ ) { + + if ( clipArray[ i ].name === name ) { + + return clipArray[ i ]; + + } + + } + + return null; + + }, + + CreateClipsFromMorphTargetSequences: function ( morphTargets, fps, noLoop ) { + + const animationToMorphTargets = {}; + + // tested with https://regex101.com/ on trick sequences + // such flamingo_flyA_003, flamingo_run1_003, crdeath0059 + const pattern = /^([\w-]*?)([\d]+)$/; + + // sort morph target names into animation groups based + // patterns like Walk_001, Walk_002, Run_001, Run_002 + for ( let i = 0, il = morphTargets.length; i < il; i ++ ) { + + const morphTarget = morphTargets[ i ]; + const parts = morphTarget.name.match( pattern ); + + if ( parts && parts.length > 1 ) { + + const name = parts[ 1 ]; + + let animationMorphTargets = animationToMorphTargets[ name ]; + + if ( ! animationMorphTargets ) { + + animationToMorphTargets[ name ] = animationMorphTargets = []; + + } + + animationMorphTargets.push( morphTarget ); + + } + + } + + const clips = []; + + for ( const name in animationToMorphTargets ) { + + clips.push( AnimationClip.CreateFromMorphTargetSequence( name, animationToMorphTargets[ name ], fps, noLoop ) ); + + } + + return clips; + + }, + + // parse the animation.hierarchy format + parseAnimation: function ( animation, bones ) { + + if ( ! animation ) { + + console.error( 'THREE.AnimationClip: No animation in JSONLoader data.' ); + return null; + + } + + const addNonemptyTrack = function ( trackType, trackName, animationKeys, propertyName, destTracks ) { + + // only return track if there are actually keys. + if ( animationKeys.length !== 0 ) { + + const times = []; + const values = []; + + AnimationUtils.flattenJSON( animationKeys, times, values, propertyName ); + + // empty keys are filtered out, so check again + if ( times.length !== 0 ) { + + destTracks.push( new trackType( trackName, times, values ) ); + + } + + } + + }; + + const tracks = []; + + const clipName = animation.name || 'default'; + const fps = animation.fps || 30; + const blendMode = animation.blendMode; + + // automatic length determination in AnimationClip. + let duration = animation.length || - 1; + + const hierarchyTracks = animation.hierarchy || []; + + for ( let h = 0; h < hierarchyTracks.length; h ++ ) { + + const animationKeys = hierarchyTracks[ h ].keys; + + // skip empty tracks + if ( ! animationKeys || animationKeys.length === 0 ) continue; + + // process morph targets + if ( animationKeys[ 0 ].morphTargets ) { + + // figure out all morph targets used in this track + const morphTargetNames = {}; + + let k; + + for ( k = 0; k < animationKeys.length; k ++ ) { + + if ( animationKeys[ k ].morphTargets ) { + + for ( let m = 0; m < animationKeys[ k ].morphTargets.length; m ++ ) { + + morphTargetNames[ animationKeys[ k ].morphTargets[ m ] ] = - 1; + + } + + } + + } + + // create a track for each morph target with all zero + // morphTargetInfluences except for the keys in which + // the morphTarget is named. + for ( const morphTargetName in morphTargetNames ) { + + const times = []; + const values = []; + + for ( let m = 0; m !== animationKeys[ k ].morphTargets.length; ++ m ) { + + const animationKey = animationKeys[ k ]; + + times.push( animationKey.time ); + values.push( ( animationKey.morphTarget === morphTargetName ) ? 1 : 0 ); + + } + + tracks.push( new NumberKeyframeTrack( '.morphTargetInfluence[' + morphTargetName + ']', times, values ) ); + + } + + duration = morphTargetNames.length * ( fps || 1.0 ); + + } else { + + // ...assume skeletal animation + + const boneName = '.bones[' + bones[ h ].name + ']'; + + addNonemptyTrack( + VectorKeyframeTrack, boneName + '.position', + animationKeys, 'pos', tracks ); + + addNonemptyTrack( + QuaternionKeyframeTrack, boneName + '.quaternion', + animationKeys, 'rot', tracks ); + + addNonemptyTrack( + VectorKeyframeTrack, boneName + '.scale', + animationKeys, 'scl', tracks ); + + } + + } + + if ( tracks.length === 0 ) { + + return null; + + } + + const clip = new AnimationClip( clipName, duration, tracks, blendMode ); + + return clip; + + } + +} ); + +Object.assign( AnimationClip.prototype, { + + resetDuration: function () { + + const tracks = this.tracks; + let duration = 0; + + for ( let i = 0, n = tracks.length; i !== n; ++ i ) { + + const track = this.tracks[ i ]; + + duration = Math.max( duration, track.times[ track.times.length - 1 ] ); + + } + + this.duration = duration; + + return this; + + }, + + trim: function () { + + for ( let i = 0; i < this.tracks.length; i ++ ) { + + this.tracks[ i ].trim( 0, this.duration ); + + } + + return this; + + }, + + validate: function () { + + let valid = true; + + for ( let i = 0; i < this.tracks.length; i ++ ) { + + valid = valid && this.tracks[ i ].validate(); + + } + + return valid; + + }, + + optimize: function () { + + for ( let i = 0; i < this.tracks.length; i ++ ) { + + this.tracks[ i ].optimize(); + + } + + return this; + + }, + + clone: function () { + + const tracks = []; + + for ( let i = 0; i < this.tracks.length; i ++ ) { + + tracks.push( this.tracks[ i ].clone() ); + + } + + return new AnimationClip( this.name, this.duration, tracks, this.blendMode ); + + } + +} ); + +const Cache = { + + enabled: false, + + files: {}, + + add: function ( key, file ) { + + if ( this.enabled === false ) return; + + // console.log( 'THREE.Cache', 'Adding key:', key ); + + this.files[ key ] = file; + + }, + + get: function ( key ) { + + if ( this.enabled === false ) return; + + // console.log( 'THREE.Cache', 'Checking key:', key ); + + return this.files[ key ]; + + }, + + remove: function ( key ) { + + delete this.files[ key ]; + + }, + + clear: function () { + + this.files = {}; + + } + +}; + +function LoadingManager( onLoad, onProgress, onError ) { + + const scope = this; + + let isLoading = false; + let itemsLoaded = 0; + let itemsTotal = 0; + let urlModifier = undefined; + const handlers = []; + + // Refer to #5689 for the reason why we don't set .onStart + // in the constructor + + this.onStart = undefined; + this.onLoad = onLoad; + this.onProgress = onProgress; + this.onError = onError; + + this.itemStart = function ( url ) { + + itemsTotal ++; + + if ( isLoading === false ) { + + if ( scope.onStart !== undefined ) { + + scope.onStart( url, itemsLoaded, itemsTotal ); + + } + + } + + isLoading = true; + + }; + + this.itemEnd = function ( url ) { + + itemsLoaded ++; + + if ( scope.onProgress !== undefined ) { + + scope.onProgress( url, itemsLoaded, itemsTotal ); + + } + + if ( itemsLoaded === itemsTotal ) { + + isLoading = false; + + if ( scope.onLoad !== undefined ) { + + scope.onLoad(); + + } + + } + + }; + + this.itemError = function ( url ) { + + if ( scope.onError !== undefined ) { + + scope.onError( url ); + + } + + }; + + this.resolveURL = function ( url ) { + + if ( urlModifier ) { + + return urlModifier( url ); + + } + + return url; + + }; + + this.setURLModifier = function ( transform ) { + + urlModifier = transform; + + return this; + + }; + + this.addHandler = function ( regex, loader ) { + + handlers.push( regex, loader ); + + return this; + + }; + + this.removeHandler = function ( regex ) { + + const index = handlers.indexOf( regex ); + + if ( index !== - 1 ) { + + handlers.splice( index, 2 ); + + } + + return this; + + }; + + this.getHandler = function ( file ) { + + for ( let i = 0, l = handlers.length; i < l; i += 2 ) { + + const regex = handlers[ i ]; + const loader = handlers[ i + 1 ]; + + if ( regex.global ) regex.lastIndex = 0; // see #17920 + + if ( regex.test( file ) ) { + + return loader; + + } + + } + + return null; + + }; + +} + +const DefaultLoadingManager = new LoadingManager(); + +function Loader( manager ) { + + this.manager = ( manager !== undefined ) ? manager : DefaultLoadingManager; + + this.crossOrigin = 'anonymous'; + this.withCredentials = false; + this.path = ''; + this.resourcePath = ''; + this.requestHeader = {}; + +} + +Object.assign( Loader.prototype, { + + load: function ( /* url, onLoad, onProgress, onError */ ) {}, + + loadAsync: function ( url, onProgress ) { + + const scope = this; + + return new Promise( function ( resolve, reject ) { + + scope.load( url, resolve, onProgress, reject ); + + } ); + + }, + + parse: function ( /* data */ ) {}, + + setCrossOrigin: function ( crossOrigin ) { + + this.crossOrigin = crossOrigin; + return this; + + }, + + setWithCredentials: function ( value ) { + + this.withCredentials = value; + return this; + + }, + + setPath: function ( path ) { + + this.path = path; + return this; + + }, + + setResourcePath: function ( resourcePath ) { + + this.resourcePath = resourcePath; + return this; + + }, + + setRequestHeader: function ( requestHeader ) { + + this.requestHeader = requestHeader; + return this; + + } + +} ); + +const loading = {}; + +function FileLoader( manager ) { + + Loader.call( this, manager ); + +} + +FileLoader.prototype = Object.assign( Object.create( Loader.prototype ), { + + constructor: FileLoader, + + load: function ( url, onLoad, onProgress, onError ) { + + if ( url === undefined ) url = ''; + + if ( this.path !== undefined ) url = this.path + url; + + url = this.manager.resolveURL( url ); + + const scope = this; + + const cached = Cache.get( url ); + + if ( cached !== undefined ) { + + scope.manager.itemStart( url ); + + setTimeout( function () { + + if ( onLoad ) onLoad( cached ); + + scope.manager.itemEnd( url ); + + }, 0 ); + + return cached; + + } + + // Check if request is duplicate + + if ( loading[ url ] !== undefined ) { + + loading[ url ].push( { + + onLoad: onLoad, + onProgress: onProgress, + onError: onError + + } ); + + return; + + } + + // Check for data: URI + const dataUriRegex = /^data:(.*?)(;base64)?,(.*)$/; + const dataUriRegexResult = url.match( dataUriRegex ); + let request; + + // Safari can not handle Data URIs through XMLHttpRequest so process manually + if ( dataUriRegexResult ) { + + const mimeType = dataUriRegexResult[ 1 ]; + const isBase64 = !! dataUriRegexResult[ 2 ]; + + let data = dataUriRegexResult[ 3 ]; + data = decodeURIComponent( data ); + + if ( isBase64 ) data = atob( data ); + + try { + + let response; + const responseType = ( this.responseType || '' ).toLowerCase(); + + switch ( responseType ) { + + case 'arraybuffer': + case 'blob': + + const view = new Uint8Array( data.length ); + + for ( let i = 0; i < data.length; i ++ ) { + + view[ i ] = data.charCodeAt( i ); + + } + + if ( responseType === 'blob' ) { + + response = new Blob( [ view.buffer ], { type: mimeType } ); + + } else { + + response = view.buffer; + + } + + break; + + case 'document': + + const parser = new DOMParser(); + response = parser.parseFromString( data, mimeType ); + + break; + + case 'json': + + response = JSON.parse( data ); + + break; + + default: // 'text' or other + + response = data; + + break; + + } + + // Wait for next browser tick like standard XMLHttpRequest event dispatching does + setTimeout( function () { + + if ( onLoad ) onLoad( response ); + + scope.manager.itemEnd( url ); + + }, 0 ); + + } catch ( error ) { + + // Wait for next browser tick like standard XMLHttpRequest event dispatching does + setTimeout( function () { + + if ( onError ) onError( error ); + + scope.manager.itemError( url ); + scope.manager.itemEnd( url ); + + }, 0 ); + + } + + } else { + + // Initialise array for duplicate requests + + loading[ url ] = []; + + loading[ url ].push( { + + onLoad: onLoad, + onProgress: onProgress, + onError: onError + + } ); + + request = new XMLHttpRequest(); + + request.open( 'GET', url, true ); + + request.addEventListener( 'load', function ( event ) { + + const response = this.response; + + const callbacks = loading[ url ]; + + delete loading[ url ]; + + if ( this.status === 200 || this.status === 0 ) { + + // Some browsers return HTTP Status 0 when using non-http protocol + // e.g. 'file://' or 'data://'. Handle as success. + + if ( this.status === 0 ) console.warn( 'THREE.FileLoader: HTTP Status 0 received.' ); + + // Add to cache only on HTTP success, so that we do not cache + // error response bodies as proper responses to requests. + Cache.add( url, response ); + + for ( let i = 0, il = callbacks.length; i < il; i ++ ) { + + const callback = callbacks[ i ]; + if ( callback.onLoad ) callback.onLoad( response ); + + } + + scope.manager.itemEnd( url ); + + } else { + + for ( let i = 0, il = callbacks.length; i < il; i ++ ) { + + const callback = callbacks[ i ]; + if ( callback.onError ) callback.onError( event ); + + } + + scope.manager.itemError( url ); + scope.manager.itemEnd( url ); + + } + + }, false ); + + request.addEventListener( 'progress', function ( event ) { + + const callbacks = loading[ url ]; + + for ( let i = 0, il = callbacks.length; i < il; i ++ ) { + + const callback = callbacks[ i ]; + if ( callback.onProgress ) callback.onProgress( event ); + + } + + }, false ); + + request.addEventListener( 'error', function ( event ) { + + const callbacks = loading[ url ]; + + delete loading[ url ]; + + for ( let i = 0, il = callbacks.length; i < il; i ++ ) { + + const callback = callbacks[ i ]; + if ( callback.onError ) callback.onError( event ); + + } + + scope.manager.itemError( url ); + scope.manager.itemEnd( url ); + + }, false ); + + request.addEventListener( 'abort', function ( event ) { + + const callbacks = loading[ url ]; + + delete loading[ url ]; + + for ( let i = 0, il = callbacks.length; i < il; i ++ ) { + + const callback = callbacks[ i ]; + if ( callback.onError ) callback.onError( event ); + + } + + scope.manager.itemError( url ); + scope.manager.itemEnd( url ); + + }, false ); + + if ( this.responseType !== undefined ) request.responseType = this.responseType; + if ( this.withCredentials !== undefined ) request.withCredentials = this.withCredentials; + + if ( request.overrideMimeType ) request.overrideMimeType( this.mimeType !== undefined ? this.mimeType : 'text/plain' ); + + for ( const header in this.requestHeader ) { + + request.setRequestHeader( header, this.requestHeader[ header ] ); + + } + + request.send( null ); + + } + + scope.manager.itemStart( url ); + + return request; + + }, + + setResponseType: function ( value ) { + + this.responseType = value; + return this; + + }, + + setMimeType: function ( value ) { + + this.mimeType = value; + return this; + + } + +} ); + +function AnimationLoader( manager ) { + + Loader.call( this, manager ); + +} + +AnimationLoader.prototype = Object.assign( Object.create( Loader.prototype ), { + + constructor: AnimationLoader, + + load: function ( url, onLoad, onProgress, onError ) { + + const scope = this; + + const loader = new FileLoader( scope.manager ); + loader.setPath( scope.path ); + loader.setRequestHeader( scope.requestHeader ); + loader.setWithCredentials( scope.withCredentials ); + loader.load( url, function ( text ) { + + try { + + onLoad( scope.parse( JSON.parse( text ) ) ); + + } catch ( e ) { + + if ( onError ) { + + onError( e ); + + } else { + + console.error( e ); + + } + + scope.manager.itemError( url ); + + } + + }, onProgress, onError ); + + }, + + parse: function ( json ) { + + const animations = []; + + for ( let i = 0; i < json.length; i ++ ) { + + const clip = AnimationClip.parse( json[ i ] ); + + animations.push( clip ); + + } + + return animations; + + } + +} ); + +/** + * Abstract Base class to block based textures loader (dds, pvr, ...) + * + * Sub classes have to implement the parse() method which will be used in load(). + */ + +function CompressedTextureLoader( manager ) { + + Loader.call( this, manager ); + +} + +CompressedTextureLoader.prototype = Object.assign( Object.create( Loader.prototype ), { + + constructor: CompressedTextureLoader, + + load: function ( url, onLoad, onProgress, onError ) { + + const scope = this; + + const images = []; + + const texture = new CompressedTexture(); + texture.image = images; + + const loader = new FileLoader( this.manager ); + loader.setPath( this.path ); + loader.setResponseType( 'arraybuffer' ); + loader.setRequestHeader( this.requestHeader ); + loader.setWithCredentials( scope.withCredentials ); + + let loaded = 0; + + function loadTexture( i ) { + + loader.load( url[ i ], function ( buffer ) { + + const texDatas = scope.parse( buffer, true ); + + images[ i ] = { + width: texDatas.width, + height: texDatas.height, + format: texDatas.format, + mipmaps: texDatas.mipmaps + }; + + loaded += 1; + + if ( loaded === 6 ) { + + if ( texDatas.mipmapCount === 1 ) + texture.minFilter = LinearFilter; + + texture.format = texDatas.format; + texture.needsUpdate = true; + + if ( onLoad ) onLoad( texture ); + + } + + }, onProgress, onError ); + + } + + if ( Array.isArray( url ) ) { + + for ( let i = 0, il = url.length; i < il; ++ i ) { + + loadTexture( i ); + + } + + } else { + + // compressed cubemap texture stored in a single DDS file + + loader.load( url, function ( buffer ) { + + const texDatas = scope.parse( buffer, true ); + + if ( texDatas.isCubemap ) { + + const faces = texDatas.mipmaps.length / texDatas.mipmapCount; + + for ( let f = 0; f < faces; f ++ ) { + + images[ f ] = { mipmaps: [] }; + + for ( let i = 0; i < texDatas.mipmapCount; i ++ ) { + + images[ f ].mipmaps.push( texDatas.mipmaps[ f * texDatas.mipmapCount + i ] ); + images[ f ].format = texDatas.format; + images[ f ].width = texDatas.width; + images[ f ].height = texDatas.height; + + } + + } + + } else { + + texture.image.width = texDatas.width; + texture.image.height = texDatas.height; + texture.mipmaps = texDatas.mipmaps; + + } + + if ( texDatas.mipmapCount === 1 ) { + + texture.minFilter = LinearFilter; + + } + + texture.format = texDatas.format; + texture.needsUpdate = true; + + if ( onLoad ) onLoad( texture ); + + }, onProgress, onError ); + + } + + return texture; + + } + +} ); + +function ImageLoader( manager ) { + + Loader.call( this, manager ); + +} + +ImageLoader.prototype = Object.assign( Object.create( Loader.prototype ), { + + constructor: ImageLoader, + + load: function ( url, onLoad, onProgress, onError ) { + + if ( this.path !== undefined ) url = this.path + url; + + url = this.manager.resolveURL( url ); + + const scope = this; + + const cached = Cache.get( url ); + + if ( cached !== undefined ) { + + scope.manager.itemStart( url ); + + setTimeout( function () { + + if ( onLoad ) onLoad( cached ); + + scope.manager.itemEnd( url ); + + }, 0 ); + + return cached; + + } + + const image = document.createElementNS( 'http://www.w3.org/1999/xhtml', 'img' ); + + function onImageLoad() { + + image.removeEventListener( 'load', onImageLoad, false ); + image.removeEventListener( 'error', onImageError, false ); + + Cache.add( url, this ); + + if ( onLoad ) onLoad( this ); + + scope.manager.itemEnd( url ); + + } + + function onImageError( event ) { + + image.removeEventListener( 'load', onImageLoad, false ); + image.removeEventListener( 'error', onImageError, false ); + + if ( onError ) onError( event ); + + scope.manager.itemError( url ); + scope.manager.itemEnd( url ); + + } + + image.addEventListener( 'load', onImageLoad, false ); + image.addEventListener( 'error', onImageError, false ); + + if ( url.substr( 0, 5 ) !== 'data:' ) { + + if ( this.crossOrigin !== undefined ) image.crossOrigin = this.crossOrigin; + + } + + scope.manager.itemStart( url ); + + image.src = url; + + return image; + + } + +} ); + +function CubeTextureLoader( manager ) { + + Loader.call( this, manager ); + +} + +CubeTextureLoader.prototype = Object.assign( Object.create( Loader.prototype ), { + + constructor: CubeTextureLoader, + + load: function ( urls, onLoad, onProgress, onError ) { + + const texture = new CubeTexture(); + + const loader = new ImageLoader( this.manager ); + loader.setCrossOrigin( this.crossOrigin ); + loader.setPath( this.path ); + + let loaded = 0; + + function loadTexture( i ) { + + loader.load( urls[ i ], function ( image ) { + + texture.images[ i ] = image; + + loaded ++; + + if ( loaded === 6 ) { + + texture.needsUpdate = true; + + if ( onLoad ) onLoad( texture ); + + } + + }, undefined, onError ); + + } + + for ( let i = 0; i < urls.length; ++ i ) { + + loadTexture( i ); + + } + + return texture; + + } + +} ); + +/** + * Abstract Base class to load generic binary textures formats (rgbe, hdr, ...) + * + * Sub classes have to implement the parse() method which will be used in load(). + */ + +function DataTextureLoader( manager ) { + + Loader.call( this, manager ); + +} + +DataTextureLoader.prototype = Object.assign( Object.create( Loader.prototype ), { + + constructor: DataTextureLoader, + + load: function ( url, onLoad, onProgress, onError ) { + + const scope = this; + + const texture = new DataTexture(); + + const loader = new FileLoader( this.manager ); + loader.setResponseType( 'arraybuffer' ); + loader.setRequestHeader( this.requestHeader ); + loader.setPath( this.path ); + loader.setWithCredentials( scope.withCredentials ); + loader.load( url, function ( buffer ) { + + const texData = scope.parse( buffer ); + + if ( ! texData ) return; + + if ( texData.image !== undefined ) { + + texture.image = texData.image; + + } else if ( texData.data !== undefined ) { + + texture.image.width = texData.width; + texture.image.height = texData.height; + texture.image.data = texData.data; + + } + + texture.wrapS = texData.wrapS !== undefined ? texData.wrapS : ClampToEdgeWrapping; + texture.wrapT = texData.wrapT !== undefined ? texData.wrapT : ClampToEdgeWrapping; + + texture.magFilter = texData.magFilter !== undefined ? texData.magFilter : LinearFilter; + texture.minFilter = texData.minFilter !== undefined ? texData.minFilter : LinearFilter; + + texture.anisotropy = texData.anisotropy !== undefined ? texData.anisotropy : 1; + + if ( texData.format !== undefined ) { + + texture.format = texData.format; + + } + + if ( texData.type !== undefined ) { + + texture.type = texData.type; + + } + + if ( texData.mipmaps !== undefined ) { + + texture.mipmaps = texData.mipmaps; + texture.minFilter = LinearMipmapLinearFilter; // presumably... + + } + + if ( texData.mipmapCount === 1 ) { + + texture.minFilter = LinearFilter; + + } + + texture.needsUpdate = true; + + if ( onLoad ) onLoad( texture, texData ); + + }, onProgress, onError ); + + + return texture; + + } + +} ); + +function TextureLoader( manager ) { + + Loader.call( this, manager ); + +} + +TextureLoader.prototype = Object.assign( Object.create( Loader.prototype ), { + + constructor: TextureLoader, + + load: function ( url, onLoad, onProgress, onError ) { + + const texture = new Texture(); + + const loader = new ImageLoader( this.manager ); + loader.setCrossOrigin( this.crossOrigin ); + loader.setPath( this.path ); + + loader.load( url, function ( image ) { + + texture.image = image; + + // JPEGs can't have an alpha channel, so memory can be saved by storing them as RGB. + const isJPEG = url.search( /\.jpe?g($|\?)/i ) > 0 || url.search( /^data\:image\/jpeg/ ) === 0; + + texture.format = isJPEG ? RGBFormat : RGBAFormat; + texture.needsUpdate = true; + + if ( onLoad !== undefined ) { + + onLoad( texture ); + + } + + }, onProgress, onError ); + + return texture; + + } + +} ); + +/** + * Extensible curve object. + * + * Some common of curve methods: + * .getPoint( t, optionalTarget ), .getTangent( t, optionalTarget ) + * .getPointAt( u, optionalTarget ), .getTangentAt( u, optionalTarget ) + * .getPoints(), .getSpacedPoints() + * .getLength() + * .updateArcLengths() + * + * This following curves inherit from THREE.Curve: + * + * -- 2D curves -- + * THREE.ArcCurve + * THREE.CubicBezierCurve + * THREE.EllipseCurve + * THREE.LineCurve + * THREE.QuadraticBezierCurve + * THREE.SplineCurve + * + * -- 3D curves -- + * THREE.CatmullRomCurve3 + * THREE.CubicBezierCurve3 + * THREE.LineCurve3 + * THREE.QuadraticBezierCurve3 + * + * A series of curves can be represented as a THREE.CurvePath. + * + **/ + +function Curve() { + + this.type = 'Curve'; + + this.arcLengthDivisions = 200; + +} + +Object.assign( Curve.prototype, { + + // Virtual base class method to overwrite and implement in subclasses + // - t [0 .. 1] + + getPoint: function ( /* t, optionalTarget */ ) { + + console.warn( 'THREE.Curve: .getPoint() not implemented.' ); + return null; + + }, + + // Get point at relative position in curve according to arc length + // - u [0 .. 1] + + getPointAt: function ( u, optionalTarget ) { + + const t = this.getUtoTmapping( u ); + return this.getPoint( t, optionalTarget ); + + }, + + // Get sequence of points using getPoint( t ) + + getPoints: function ( divisions ) { + + if ( divisions === undefined ) divisions = 5; + + const points = []; + + for ( let d = 0; d <= divisions; d ++ ) { + + points.push( this.getPoint( d / divisions ) ); + + } + + return points; + + }, + + // Get sequence of points using getPointAt( u ) + + getSpacedPoints: function ( divisions ) { + + if ( divisions === undefined ) divisions = 5; + + const points = []; + + for ( let d = 0; d <= divisions; d ++ ) { + + points.push( this.getPointAt( d / divisions ) ); + + } + + return points; + + }, + + // Get total curve arc length + + getLength: function () { + + const lengths = this.getLengths(); + return lengths[ lengths.length - 1 ]; + + }, + + // Get list of cumulative segment lengths + + getLengths: function ( divisions ) { + + if ( divisions === undefined ) divisions = this.arcLengthDivisions; + + if ( this.cacheArcLengths && + ( this.cacheArcLengths.length === divisions + 1 ) && + ! this.needsUpdate ) { + + return this.cacheArcLengths; + + } + + this.needsUpdate = false; + + const cache = []; + let current, last = this.getPoint( 0 ); + let sum = 0; + + cache.push( 0 ); + + for ( let p = 1; p <= divisions; p ++ ) { + + current = this.getPoint( p / divisions ); + sum += current.distanceTo( last ); + cache.push( sum ); + last = current; + + } + + this.cacheArcLengths = cache; + + return cache; // { sums: cache, sum: sum }; Sum is in the last element. + + }, + + updateArcLengths: function () { + + this.needsUpdate = true; + this.getLengths(); + + }, + + // Given u ( 0 .. 1 ), get a t to find p. This gives you points which are equidistant + + getUtoTmapping: function ( u, distance ) { + + const arcLengths = this.getLengths(); + + let i = 0; + const il = arcLengths.length; + + let targetArcLength; // The targeted u distance value to get + + if ( distance ) { + + targetArcLength = distance; + + } else { + + targetArcLength = u * arcLengths[ il - 1 ]; + + } + + // binary search for the index with largest value smaller than target u distance + + let low = 0, high = il - 1, comparison; + + while ( low <= high ) { + + i = Math.floor( low + ( high - low ) / 2 ); // less likely to overflow, though probably not issue here, JS doesn't really have integers, all numbers are floats + + comparison = arcLengths[ i ] - targetArcLength; + + if ( comparison < 0 ) { + + low = i + 1; + + } else if ( comparison > 0 ) { + + high = i - 1; + + } else { + + high = i; + break; + + // DONE + + } + + } + + i = high; + + if ( arcLengths[ i ] === targetArcLength ) { + + return i / ( il - 1 ); + + } + + // we could get finer grain at lengths, or use simple interpolation between two points + + const lengthBefore = arcLengths[ i ]; + const lengthAfter = arcLengths[ i + 1 ]; + + const segmentLength = lengthAfter - lengthBefore; + + // determine where we are between the 'before' and 'after' points + + const segmentFraction = ( targetArcLength - lengthBefore ) / segmentLength; + + // add that fractional amount to t + + const t = ( i + segmentFraction ) / ( il - 1 ); + + return t; + + }, + + // Returns a unit vector tangent at t + // In case any sub curve does not implement its tangent derivation, + // 2 points a small delta apart will be used to find its gradient + // which seems to give a reasonable approximation + + getTangent: function ( t, optionalTarget ) { + + const delta = 0.0001; + let t1 = t - delta; + let t2 = t + delta; + + // Capping in case of danger + + if ( t1 < 0 ) t1 = 0; + if ( t2 > 1 ) t2 = 1; + + const pt1 = this.getPoint( t1 ); + const pt2 = this.getPoint( t2 ); + + const tangent = optionalTarget || ( ( pt1.isVector2 ) ? new Vector2() : new Vector3() ); + + tangent.copy( pt2 ).sub( pt1 ).normalize(); + + return tangent; + + }, + + getTangentAt: function ( u, optionalTarget ) { + + const t = this.getUtoTmapping( u ); + return this.getTangent( t, optionalTarget ); + + }, + + computeFrenetFrames: function ( segments, closed ) { + + // see http://www.cs.indiana.edu/pub/techreports/TR425.pdf + + const normal = new Vector3(); + + const tangents = []; + const normals = []; + const binormals = []; + + const vec = new Vector3(); + const mat = new Matrix4(); + + // compute the tangent vectors for each segment on the curve + + for ( let i = 0; i <= segments; i ++ ) { + + const u = i / segments; + + tangents[ i ] = this.getTangentAt( u, new Vector3() ); + tangents[ i ].normalize(); + + } + + // select an initial normal vector perpendicular to the first tangent vector, + // and in the direction of the minimum tangent xyz component + + normals[ 0 ] = new Vector3(); + binormals[ 0 ] = new Vector3(); + let min = Number.MAX_VALUE; + const tx = Math.abs( tangents[ 0 ].x ); + const ty = Math.abs( tangents[ 0 ].y ); + const tz = Math.abs( tangents[ 0 ].z ); + + if ( tx <= min ) { + + min = tx; + normal.set( 1, 0, 0 ); + + } + + if ( ty <= min ) { + + min = ty; + normal.set( 0, 1, 0 ); + + } + + if ( tz <= min ) { + + normal.set( 0, 0, 1 ); + + } + + vec.crossVectors( tangents[ 0 ], normal ).normalize(); + + normals[ 0 ].crossVectors( tangents[ 0 ], vec ); + binormals[ 0 ].crossVectors( tangents[ 0 ], normals[ 0 ] ); + + + // compute the slowly-varying normal and binormal vectors for each segment on the curve + + for ( let i = 1; i <= segments; i ++ ) { + + normals[ i ] = normals[ i - 1 ].clone(); + + binormals[ i ] = binormals[ i - 1 ].clone(); + + vec.crossVectors( tangents[ i - 1 ], tangents[ i ] ); + + if ( vec.length() > Number.EPSILON ) { + + vec.normalize(); + + const theta = Math.acos( MathUtils.clamp( tangents[ i - 1 ].dot( tangents[ i ] ), - 1, 1 ) ); // clamp for floating pt errors + + normals[ i ].applyMatrix4( mat.makeRotationAxis( vec, theta ) ); + + } + + binormals[ i ].crossVectors( tangents[ i ], normals[ i ] ); + + } + + // if the curve is closed, postprocess the vectors so the first and last normal vectors are the same + + if ( closed === true ) { + + let theta = Math.acos( MathUtils.clamp( normals[ 0 ].dot( normals[ segments ] ), - 1, 1 ) ); + theta /= segments; + + if ( tangents[ 0 ].dot( vec.crossVectors( normals[ 0 ], normals[ segments ] ) ) > 0 ) { + + theta = - theta; + + } + + for ( let i = 1; i <= segments; i ++ ) { + + // twist a little... + normals[ i ].applyMatrix4( mat.makeRotationAxis( tangents[ i ], theta * i ) ); + binormals[ i ].crossVectors( tangents[ i ], normals[ i ] ); + + } + + } + + return { + tangents: tangents, + normals: normals, + binormals: binormals + }; + + }, + + clone: function () { + + return new this.constructor().copy( this ); + + }, + + copy: function ( source ) { + + this.arcLengthDivisions = source.arcLengthDivisions; + + return this; + + }, + + toJSON: function () { + + const data = { + metadata: { + version: 4.5, + type: 'Curve', + generator: 'Curve.toJSON' + } + }; + + data.arcLengthDivisions = this.arcLengthDivisions; + data.type = this.type; + + return data; + + }, + + fromJSON: function ( json ) { + + this.arcLengthDivisions = json.arcLengthDivisions; + + return this; + + } + +} ); + +function EllipseCurve( aX, aY, xRadius, yRadius, aStartAngle, aEndAngle, aClockwise, aRotation ) { + + Curve.call( this ); + + this.type = 'EllipseCurve'; + + this.aX = aX || 0; + this.aY = aY || 0; + + this.xRadius = xRadius || 1; + this.yRadius = yRadius || 1; + + this.aStartAngle = aStartAngle || 0; + this.aEndAngle = aEndAngle || 2 * Math.PI; + + this.aClockwise = aClockwise || false; + + this.aRotation = aRotation || 0; + +} + +EllipseCurve.prototype = Object.create( Curve.prototype ); +EllipseCurve.prototype.constructor = EllipseCurve; + +EllipseCurve.prototype.isEllipseCurve = true; + +EllipseCurve.prototype.getPoint = function ( t, optionalTarget ) { + + const point = optionalTarget || new Vector2(); + + const twoPi = Math.PI * 2; + let deltaAngle = this.aEndAngle - this.aStartAngle; + const samePoints = Math.abs( deltaAngle ) < Number.EPSILON; + + // ensures that deltaAngle is 0 .. 2 PI + while ( deltaAngle < 0 ) deltaAngle += twoPi; + while ( deltaAngle > twoPi ) deltaAngle -= twoPi; + + if ( deltaAngle < Number.EPSILON ) { + + if ( samePoints ) { + + deltaAngle = 0; + + } else { + + deltaAngle = twoPi; + + } + + } + + if ( this.aClockwise === true && ! samePoints ) { + + if ( deltaAngle === twoPi ) { + + deltaAngle = - twoPi; + + } else { + + deltaAngle = deltaAngle - twoPi; + + } + + } + + const angle = this.aStartAngle + t * deltaAngle; + let x = this.aX + this.xRadius * Math.cos( angle ); + let y = this.aY + this.yRadius * Math.sin( angle ); + + if ( this.aRotation !== 0 ) { + + const cos = Math.cos( this.aRotation ); + const sin = Math.sin( this.aRotation ); + + const tx = x - this.aX; + const ty = y - this.aY; + + // Rotate the point about the center of the ellipse. + x = tx * cos - ty * sin + this.aX; + y = tx * sin + ty * cos + this.aY; + + } + + return point.set( x, y ); + +}; + +EllipseCurve.prototype.copy = function ( source ) { + + Curve.prototype.copy.call( this, source ); + + this.aX = source.aX; + this.aY = source.aY; + + this.xRadius = source.xRadius; + this.yRadius = source.yRadius; + + this.aStartAngle = source.aStartAngle; + this.aEndAngle = source.aEndAngle; + + this.aClockwise = source.aClockwise; + + this.aRotation = source.aRotation; + + return this; + +}; + + +EllipseCurve.prototype.toJSON = function () { + + const data = Curve.prototype.toJSON.call( this ); + + data.aX = this.aX; + data.aY = this.aY; + + data.xRadius = this.xRadius; + data.yRadius = this.yRadius; + + data.aStartAngle = this.aStartAngle; + data.aEndAngle = this.aEndAngle; + + data.aClockwise = this.aClockwise; + + data.aRotation = this.aRotation; + + return data; + +}; + +EllipseCurve.prototype.fromJSON = function ( json ) { + + Curve.prototype.fromJSON.call( this, json ); + + this.aX = json.aX; + this.aY = json.aY; + + this.xRadius = json.xRadius; + this.yRadius = json.yRadius; + + this.aStartAngle = json.aStartAngle; + this.aEndAngle = json.aEndAngle; + + this.aClockwise = json.aClockwise; + + this.aRotation = json.aRotation; + + return this; + +}; + +function ArcCurve( aX, aY, aRadius, aStartAngle, aEndAngle, aClockwise ) { + + EllipseCurve.call( this, aX, aY, aRadius, aRadius, aStartAngle, aEndAngle, aClockwise ); + + this.type = 'ArcCurve'; + +} + +ArcCurve.prototype = Object.create( EllipseCurve.prototype ); +ArcCurve.prototype.constructor = ArcCurve; + +ArcCurve.prototype.isArcCurve = true; + +/** + * Centripetal CatmullRom Curve - which is useful for avoiding + * cusps and self-intersections in non-uniform catmull rom curves. + * http://www.cemyuksel.com/research/catmullrom_param/catmullrom.pdf + * + * curve.type accepts centripetal(default), chordal and catmullrom + * curve.tension is used for catmullrom which defaults to 0.5 + */ + + +/* +Based on an optimized c++ solution in + - http://stackoverflow.com/questions/9489736/catmull-rom-curve-with-no-cusps-and-no-self-intersections/ + - http://ideone.com/NoEbVM + +This CubicPoly class could be used for reusing some variables and calculations, +but for three.js curve use, it could be possible inlined and flatten into a single function call +which can be placed in CurveUtils. +*/ + +function CubicPoly() { + + let c0 = 0, c1 = 0, c2 = 0, c3 = 0; + + /* + * Compute coefficients for a cubic polynomial + * p(s) = c0 + c1*s + c2*s^2 + c3*s^3 + * such that + * p(0) = x0, p(1) = x1 + * and + * p'(0) = t0, p'(1) = t1. + */ + function init( x0, x1, t0, t1 ) { + + c0 = x0; + c1 = t0; + c2 = - 3 * x0 + 3 * x1 - 2 * t0 - t1; + c3 = 2 * x0 - 2 * x1 + t0 + t1; + + } + + return { + + initCatmullRom: function ( x0, x1, x2, x3, tension ) { + + init( x1, x2, tension * ( x2 - x0 ), tension * ( x3 - x1 ) ); + + }, + + initNonuniformCatmullRom: function ( x0, x1, x2, x3, dt0, dt1, dt2 ) { + + // compute tangents when parameterized in [t1,t2] + let t1 = ( x1 - x0 ) / dt0 - ( x2 - x0 ) / ( dt0 + dt1 ) + ( x2 - x1 ) / dt1; + let t2 = ( x2 - x1 ) / dt1 - ( x3 - x1 ) / ( dt1 + dt2 ) + ( x3 - x2 ) / dt2; + + // rescale tangents for parametrization in [0,1] + t1 *= dt1; + t2 *= dt1; + + init( x1, x2, t1, t2 ); + + }, + + calc: function ( t ) { + + const t2 = t * t; + const t3 = t2 * t; + return c0 + c1 * t + c2 * t2 + c3 * t3; + + } + + }; + +} + +// + +const tmp = new Vector3(); +const px = new CubicPoly(), py = new CubicPoly(), pz = new CubicPoly(); + +function CatmullRomCurve3( points, closed, curveType, tension ) { + + Curve.call( this ); + + this.type = 'CatmullRomCurve3'; + + this.points = points || []; + this.closed = closed || false; + this.curveType = curveType || 'centripetal'; + this.tension = ( tension !== undefined ) ? tension : 0.5; + +} + +CatmullRomCurve3.prototype = Object.create( Curve.prototype ); +CatmullRomCurve3.prototype.constructor = CatmullRomCurve3; + +CatmullRomCurve3.prototype.isCatmullRomCurve3 = true; + +CatmullRomCurve3.prototype.getPoint = function ( t, optionalTarget ) { + + const point = optionalTarget || new Vector3(); + + const points = this.points; + const l = points.length; + + const p = ( l - ( this.closed ? 0 : 1 ) ) * t; + let intPoint = Math.floor( p ); + let weight = p - intPoint; + + if ( this.closed ) { + + intPoint += intPoint > 0 ? 0 : ( Math.floor( Math.abs( intPoint ) / l ) + 1 ) * l; + + } else if ( weight === 0 && intPoint === l - 1 ) { + + intPoint = l - 2; + weight = 1; + + } + + let p0, p3; // 4 points (p1 & p2 defined below) + + if ( this.closed || intPoint > 0 ) { + + p0 = points[ ( intPoint - 1 ) % l ]; + + } else { + + // extrapolate first point + tmp.subVectors( points[ 0 ], points[ 1 ] ).add( points[ 0 ] ); + p0 = tmp; + + } + + const p1 = points[ intPoint % l ]; + const p2 = points[ ( intPoint + 1 ) % l ]; + + if ( this.closed || intPoint + 2 < l ) { + + p3 = points[ ( intPoint + 2 ) % l ]; + + } else { + + // extrapolate last point + tmp.subVectors( points[ l - 1 ], points[ l - 2 ] ).add( points[ l - 1 ] ); + p3 = tmp; + + } + + if ( this.curveType === 'centripetal' || this.curveType === 'chordal' ) { + + // init Centripetal / Chordal Catmull-Rom + const pow = this.curveType === 'chordal' ? 0.5 : 0.25; + let dt0 = Math.pow( p0.distanceToSquared( p1 ), pow ); + let dt1 = Math.pow( p1.distanceToSquared( p2 ), pow ); + let dt2 = Math.pow( p2.distanceToSquared( p3 ), pow ); + + // safety check for repeated points + if ( dt1 < 1e-4 ) dt1 = 1.0; + if ( dt0 < 1e-4 ) dt0 = dt1; + if ( dt2 < 1e-4 ) dt2 = dt1; + + px.initNonuniformCatmullRom( p0.x, p1.x, p2.x, p3.x, dt0, dt1, dt2 ); + py.initNonuniformCatmullRom( p0.y, p1.y, p2.y, p3.y, dt0, dt1, dt2 ); + pz.initNonuniformCatmullRom( p0.z, p1.z, p2.z, p3.z, dt0, dt1, dt2 ); + + } else if ( this.curveType === 'catmullrom' ) { + + px.initCatmullRom( p0.x, p1.x, p2.x, p3.x, this.tension ); + py.initCatmullRom( p0.y, p1.y, p2.y, p3.y, this.tension ); + pz.initCatmullRom( p0.z, p1.z, p2.z, p3.z, this.tension ); + + } + + point.set( + px.calc( weight ), + py.calc( weight ), + pz.calc( weight ) + ); + + return point; + +}; + +CatmullRomCurve3.prototype.copy = function ( source ) { + + Curve.prototype.copy.call( this, source ); + + this.points = []; + + for ( let i = 0, l = source.points.length; i < l; i ++ ) { + + const point = source.points[ i ]; + + this.points.push( point.clone() ); + + } + + this.closed = source.closed; + this.curveType = source.curveType; + this.tension = source.tension; + + return this; + +}; + +CatmullRomCurve3.prototype.toJSON = function () { + + const data = Curve.prototype.toJSON.call( this ); + + data.points = []; + + for ( let i = 0, l = this.points.length; i < l; i ++ ) { + + const point = this.points[ i ]; + data.points.push( point.toArray() ); + + } + + data.closed = this.closed; + data.curveType = this.curveType; + data.tension = this.tension; + + return data; + +}; + +CatmullRomCurve3.prototype.fromJSON = function ( json ) { + + Curve.prototype.fromJSON.call( this, json ); + + this.points = []; + + for ( let i = 0, l = json.points.length; i < l; i ++ ) { + + const point = json.points[ i ]; + this.points.push( new Vector3().fromArray( point ) ); + + } + + this.closed = json.closed; + this.curveType = json.curveType; + this.tension = json.tension; + + return this; + +}; + +/** + * Bezier Curves formulas obtained from + * http://en.wikipedia.org/wiki/Bézier_curve + */ + +function CatmullRom( t, p0, p1, p2, p3 ) { + + const v0 = ( p2 - p0 ) * 0.5; + const v1 = ( p3 - p1 ) * 0.5; + const t2 = t * t; + const t3 = t * t2; + return ( 2 * p1 - 2 * p2 + v0 + v1 ) * t3 + ( - 3 * p1 + 3 * p2 - 2 * v0 - v1 ) * t2 + v0 * t + p1; + +} + +// + +function QuadraticBezierP0( t, p ) { + + const k = 1 - t; + return k * k * p; + +} + +function QuadraticBezierP1( t, p ) { + + return 2 * ( 1 - t ) * t * p; + +} + +function QuadraticBezierP2( t, p ) { + + return t * t * p; + +} + +function QuadraticBezier( t, p0, p1, p2 ) { + + return QuadraticBezierP0( t, p0 ) + QuadraticBezierP1( t, p1 ) + + QuadraticBezierP2( t, p2 ); + +} + +// + +function CubicBezierP0( t, p ) { + + const k = 1 - t; + return k * k * k * p; + +} + +function CubicBezierP1( t, p ) { + + const k = 1 - t; + return 3 * k * k * t * p; + +} + +function CubicBezierP2( t, p ) { + + return 3 * ( 1 - t ) * t * t * p; + +} + +function CubicBezierP3( t, p ) { + + return t * t * t * p; + +} + +function CubicBezier( t, p0, p1, p2, p3 ) { + + return CubicBezierP0( t, p0 ) + CubicBezierP1( t, p1 ) + CubicBezierP2( t, p2 ) + + CubicBezierP3( t, p3 ); + +} + +function CubicBezierCurve( v0, v1, v2, v3 ) { + + Curve.call( this ); + + this.type = 'CubicBezierCurve'; + + this.v0 = v0 || new Vector2(); + this.v1 = v1 || new Vector2(); + this.v2 = v2 || new Vector2(); + this.v3 = v3 || new Vector2(); + +} + +CubicBezierCurve.prototype = Object.create( Curve.prototype ); +CubicBezierCurve.prototype.constructor = CubicBezierCurve; + +CubicBezierCurve.prototype.isCubicBezierCurve = true; + +CubicBezierCurve.prototype.getPoint = function ( t, optionalTarget ) { + + const point = optionalTarget || new Vector2(); + + const v0 = this.v0, v1 = this.v1, v2 = this.v2, v3 = this.v3; + + point.set( + CubicBezier( t, v0.x, v1.x, v2.x, v3.x ), + CubicBezier( t, v0.y, v1.y, v2.y, v3.y ) + ); + + return point; + +}; + +CubicBezierCurve.prototype.copy = function ( source ) { + + Curve.prototype.copy.call( this, source ); + + this.v0.copy( source.v0 ); + this.v1.copy( source.v1 ); + this.v2.copy( source.v2 ); + this.v3.copy( source.v3 ); + + return this; + +}; + +CubicBezierCurve.prototype.toJSON = function () { + + const data = Curve.prototype.toJSON.call( this ); + + data.v0 = this.v0.toArray(); + data.v1 = this.v1.toArray(); + data.v2 = this.v2.toArray(); + data.v3 = this.v3.toArray(); + + return data; + +}; + +CubicBezierCurve.prototype.fromJSON = function ( json ) { + + Curve.prototype.fromJSON.call( this, json ); + + this.v0.fromArray( json.v0 ); + this.v1.fromArray( json.v1 ); + this.v2.fromArray( json.v2 ); + this.v3.fromArray( json.v3 ); + + return this; + +}; + +function CubicBezierCurve3( v0, v1, v2, v3 ) { + + Curve.call( this ); + + this.type = 'CubicBezierCurve3'; + + this.v0 = v0 || new Vector3(); + this.v1 = v1 || new Vector3(); + this.v2 = v2 || new Vector3(); + this.v3 = v3 || new Vector3(); + +} + +CubicBezierCurve3.prototype = Object.create( Curve.prototype ); +CubicBezierCurve3.prototype.constructor = CubicBezierCurve3; + +CubicBezierCurve3.prototype.isCubicBezierCurve3 = true; + +CubicBezierCurve3.prototype.getPoint = function ( t, optionalTarget ) { + + const point = optionalTarget || new Vector3(); + + const v0 = this.v0, v1 = this.v1, v2 = this.v2, v3 = this.v3; + + point.set( + CubicBezier( t, v0.x, v1.x, v2.x, v3.x ), + CubicBezier( t, v0.y, v1.y, v2.y, v3.y ), + CubicBezier( t, v0.z, v1.z, v2.z, v3.z ) + ); + + return point; + +}; + +CubicBezierCurve3.prototype.copy = function ( source ) { + + Curve.prototype.copy.call( this, source ); + + this.v0.copy( source.v0 ); + this.v1.copy( source.v1 ); + this.v2.copy( source.v2 ); + this.v3.copy( source.v3 ); + + return this; + +}; + +CubicBezierCurve3.prototype.toJSON = function () { + + const data = Curve.prototype.toJSON.call( this ); + + data.v0 = this.v0.toArray(); + data.v1 = this.v1.toArray(); + data.v2 = this.v2.toArray(); + data.v3 = this.v3.toArray(); + + return data; + +}; + +CubicBezierCurve3.prototype.fromJSON = function ( json ) { + + Curve.prototype.fromJSON.call( this, json ); + + this.v0.fromArray( json.v0 ); + this.v1.fromArray( json.v1 ); + this.v2.fromArray( json.v2 ); + this.v3.fromArray( json.v3 ); + + return this; + +}; + +function LineCurve( v1, v2 ) { + + Curve.call( this ); + + this.type = 'LineCurve'; + + this.v1 = v1 || new Vector2(); + this.v2 = v2 || new Vector2(); + +} + +LineCurve.prototype = Object.create( Curve.prototype ); +LineCurve.prototype.constructor = LineCurve; + +LineCurve.prototype.isLineCurve = true; + +LineCurve.prototype.getPoint = function ( t, optionalTarget ) { + + const point = optionalTarget || new Vector2(); + + if ( t === 1 ) { + + point.copy( this.v2 ); + + } else { + + point.copy( this.v2 ).sub( this.v1 ); + point.multiplyScalar( t ).add( this.v1 ); + + } + + return point; + +}; + +// Line curve is linear, so we can overwrite default getPointAt + +LineCurve.prototype.getPointAt = function ( u, optionalTarget ) { + + return this.getPoint( u, optionalTarget ); + +}; + +LineCurve.prototype.getTangent = function ( t, optionalTarget ) { + + const tangent = optionalTarget || new Vector2(); + + tangent.copy( this.v2 ).sub( this.v1 ).normalize(); + + return tangent; + +}; + +LineCurve.prototype.copy = function ( source ) { + + Curve.prototype.copy.call( this, source ); + + this.v1.copy( source.v1 ); + this.v2.copy( source.v2 ); + + return this; + +}; + +LineCurve.prototype.toJSON = function () { + + const data = Curve.prototype.toJSON.call( this ); + + data.v1 = this.v1.toArray(); + data.v2 = this.v2.toArray(); + + return data; + +}; + +LineCurve.prototype.fromJSON = function ( json ) { + + Curve.prototype.fromJSON.call( this, json ); + + this.v1.fromArray( json.v1 ); + this.v2.fromArray( json.v2 ); + + return this; + +}; + +function LineCurve3( v1, v2 ) { + + Curve.call( this ); + + this.type = 'LineCurve3'; + + this.v1 = v1 || new Vector3(); + this.v2 = v2 || new Vector3(); + +} + +LineCurve3.prototype = Object.create( Curve.prototype ); +LineCurve3.prototype.constructor = LineCurve3; + +LineCurve3.prototype.isLineCurve3 = true; + +LineCurve3.prototype.getPoint = function ( t, optionalTarget ) { + + const point = optionalTarget || new Vector3(); + + if ( t === 1 ) { + + point.copy( this.v2 ); + + } else { + + point.copy( this.v2 ).sub( this.v1 ); + point.multiplyScalar( t ).add( this.v1 ); + + } + + return point; + +}; + +// Line curve is linear, so we can overwrite default getPointAt + +LineCurve3.prototype.getPointAt = function ( u, optionalTarget ) { + + return this.getPoint( u, optionalTarget ); + +}; + +LineCurve3.prototype.copy = function ( source ) { + + Curve.prototype.copy.call( this, source ); + + this.v1.copy( source.v1 ); + this.v2.copy( source.v2 ); + + return this; + +}; + +LineCurve3.prototype.toJSON = function () { + + const data = Curve.prototype.toJSON.call( this ); + + data.v1 = this.v1.toArray(); + data.v2 = this.v2.toArray(); + + return data; + +}; + +LineCurve3.prototype.fromJSON = function ( json ) { + + Curve.prototype.fromJSON.call( this, json ); + + this.v1.fromArray( json.v1 ); + this.v2.fromArray( json.v2 ); + + return this; + +}; + +function QuadraticBezierCurve( v0, v1, v2 ) { + + Curve.call( this ); + + this.type = 'QuadraticBezierCurve'; + + this.v0 = v0 || new Vector2(); + this.v1 = v1 || new Vector2(); + this.v2 = v2 || new Vector2(); + +} + +QuadraticBezierCurve.prototype = Object.create( Curve.prototype ); +QuadraticBezierCurve.prototype.constructor = QuadraticBezierCurve; + +QuadraticBezierCurve.prototype.isQuadraticBezierCurve = true; + +QuadraticBezierCurve.prototype.getPoint = function ( t, optionalTarget ) { + + const point = optionalTarget || new Vector2(); + + const v0 = this.v0, v1 = this.v1, v2 = this.v2; + + point.set( + QuadraticBezier( t, v0.x, v1.x, v2.x ), + QuadraticBezier( t, v0.y, v1.y, v2.y ) + ); + + return point; + +}; + +QuadraticBezierCurve.prototype.copy = function ( source ) { + + Curve.prototype.copy.call( this, source ); + + this.v0.copy( source.v0 ); + this.v1.copy( source.v1 ); + this.v2.copy( source.v2 ); + + return this; + +}; + +QuadraticBezierCurve.prototype.toJSON = function () { + + const data = Curve.prototype.toJSON.call( this ); + + data.v0 = this.v0.toArray(); + data.v1 = this.v1.toArray(); + data.v2 = this.v2.toArray(); + + return data; + +}; + +QuadraticBezierCurve.prototype.fromJSON = function ( json ) { + + Curve.prototype.fromJSON.call( this, json ); + + this.v0.fromArray( json.v0 ); + this.v1.fromArray( json.v1 ); + this.v2.fromArray( json.v2 ); + + return this; + +}; + +function QuadraticBezierCurve3( v0, v1, v2 ) { + + Curve.call( this ); + + this.type = 'QuadraticBezierCurve3'; + + this.v0 = v0 || new Vector3(); + this.v1 = v1 || new Vector3(); + this.v2 = v2 || new Vector3(); + +} + +QuadraticBezierCurve3.prototype = Object.create( Curve.prototype ); +QuadraticBezierCurve3.prototype.constructor = QuadraticBezierCurve3; + +QuadraticBezierCurve3.prototype.isQuadraticBezierCurve3 = true; + +QuadraticBezierCurve3.prototype.getPoint = function ( t, optionalTarget ) { + + const point = optionalTarget || new Vector3(); + + const v0 = this.v0, v1 = this.v1, v2 = this.v2; + + point.set( + QuadraticBezier( t, v0.x, v1.x, v2.x ), + QuadraticBezier( t, v0.y, v1.y, v2.y ), + QuadraticBezier( t, v0.z, v1.z, v2.z ) + ); + + return point; + +}; + +QuadraticBezierCurve3.prototype.copy = function ( source ) { + + Curve.prototype.copy.call( this, source ); + + this.v0.copy( source.v0 ); + this.v1.copy( source.v1 ); + this.v2.copy( source.v2 ); + + return this; + +}; + +QuadraticBezierCurve3.prototype.toJSON = function () { + + const data = Curve.prototype.toJSON.call( this ); + + data.v0 = this.v0.toArray(); + data.v1 = this.v1.toArray(); + data.v2 = this.v2.toArray(); + + return data; + +}; + +QuadraticBezierCurve3.prototype.fromJSON = function ( json ) { + + Curve.prototype.fromJSON.call( this, json ); + + this.v0.fromArray( json.v0 ); + this.v1.fromArray( json.v1 ); + this.v2.fromArray( json.v2 ); + + return this; + +}; + +function SplineCurve( points ) { + + Curve.call( this ); + + this.type = 'SplineCurve'; + + this.points = points || []; + +} + +SplineCurve.prototype = Object.create( Curve.prototype ); +SplineCurve.prototype.constructor = SplineCurve; + +SplineCurve.prototype.isSplineCurve = true; + +SplineCurve.prototype.getPoint = function ( t, optionalTarget ) { + + const point = optionalTarget || new Vector2(); + + const points = this.points; + const p = ( points.length - 1 ) * t; + + const intPoint = Math.floor( p ); + const weight = p - intPoint; + + const p0 = points[ intPoint === 0 ? intPoint : intPoint - 1 ]; + const p1 = points[ intPoint ]; + const p2 = points[ intPoint > points.length - 2 ? points.length - 1 : intPoint + 1 ]; + const p3 = points[ intPoint > points.length - 3 ? points.length - 1 : intPoint + 2 ]; + + point.set( + CatmullRom( weight, p0.x, p1.x, p2.x, p3.x ), + CatmullRom( weight, p0.y, p1.y, p2.y, p3.y ) + ); + + return point; + +}; + +SplineCurve.prototype.copy = function ( source ) { + + Curve.prototype.copy.call( this, source ); + + this.points = []; + + for ( let i = 0, l = source.points.length; i < l; i ++ ) { + + const point = source.points[ i ]; + + this.points.push( point.clone() ); + + } + + return this; + +}; + +SplineCurve.prototype.toJSON = function () { + + const data = Curve.prototype.toJSON.call( this ); + + data.points = []; + + for ( let i = 0, l = this.points.length; i < l; i ++ ) { + + const point = this.points[ i ]; + data.points.push( point.toArray() ); + + } + + return data; + +}; + +SplineCurve.prototype.fromJSON = function ( json ) { + + Curve.prototype.fromJSON.call( this, json ); + + this.points = []; + + for ( let i = 0, l = json.points.length; i < l; i ++ ) { + + const point = json.points[ i ]; + this.points.push( new Vector2().fromArray( point ) ); + + } + + return this; + +}; + +var Curves = /*#__PURE__*/Object.freeze({ + __proto__: null, + ArcCurve: ArcCurve, + CatmullRomCurve3: CatmullRomCurve3, + CubicBezierCurve: CubicBezierCurve, + CubicBezierCurve3: CubicBezierCurve3, + EllipseCurve: EllipseCurve, + LineCurve: LineCurve, + LineCurve3: LineCurve3, + QuadraticBezierCurve: QuadraticBezierCurve, + QuadraticBezierCurve3: QuadraticBezierCurve3, + SplineCurve: SplineCurve +}); + +/************************************************************** + * Curved Path - a curve path is simply a array of connected + * curves, but retains the api of a curve + **************************************************************/ + +function CurvePath() { + + Curve.call( this ); + + this.type = 'CurvePath'; + + this.curves = []; + this.autoClose = false; // Automatically closes the path + +} + +CurvePath.prototype = Object.assign( Object.create( Curve.prototype ), { + + constructor: CurvePath, + + add: function ( curve ) { + + this.curves.push( curve ); + + }, + + closePath: function () { + + // Add a line curve if start and end of lines are not connected + const startPoint = this.curves[ 0 ].getPoint( 0 ); + const endPoint = this.curves[ this.curves.length - 1 ].getPoint( 1 ); + + if ( ! startPoint.equals( endPoint ) ) { + + this.curves.push( new LineCurve( endPoint, startPoint ) ); + + } + + }, + + // To get accurate point with reference to + // entire path distance at time t, + // following has to be done: + + // 1. Length of each sub path have to be known + // 2. Locate and identify type of curve + // 3. Get t for the curve + // 4. Return curve.getPointAt(t') + + getPoint: function ( t ) { + + const d = t * this.getLength(); + const curveLengths = this.getCurveLengths(); + let i = 0; + + // To think about boundaries points. + + while ( i < curveLengths.length ) { + + if ( curveLengths[ i ] >= d ) { + + const diff = curveLengths[ i ] - d; + const curve = this.curves[ i ]; + + const segmentLength = curve.getLength(); + const u = segmentLength === 0 ? 0 : 1 - diff / segmentLength; + + return curve.getPointAt( u ); + + } + + i ++; + + } + + return null; + + // loop where sum != 0, sum > d , sum+1 1 && ! points[ points.length - 1 ].equals( points[ 0 ] ) ) { + + points.push( points[ 0 ] ); + + } + + return points; + + }, + + copy: function ( source ) { + + Curve.prototype.copy.call( this, source ); + + this.curves = []; + + for ( let i = 0, l = source.curves.length; i < l; i ++ ) { + + const curve = source.curves[ i ]; + + this.curves.push( curve.clone() ); + + } + + this.autoClose = source.autoClose; + + return this; + + }, + + toJSON: function () { + + const data = Curve.prototype.toJSON.call( this ); + + data.autoClose = this.autoClose; + data.curves = []; + + for ( let i = 0, l = this.curves.length; i < l; i ++ ) { + + const curve = this.curves[ i ]; + data.curves.push( curve.toJSON() ); + + } + + return data; + + }, + + fromJSON: function ( json ) { + + Curve.prototype.fromJSON.call( this, json ); + + this.autoClose = json.autoClose; + this.curves = []; + + for ( let i = 0, l = json.curves.length; i < l; i ++ ) { + + const curve = json.curves[ i ]; + this.curves.push( new Curves[ curve.type ]().fromJSON( curve ) ); + + } + + return this; + + } + +} ); + +function Path( points ) { + + CurvePath.call( this ); + + this.type = 'Path'; + + this.currentPoint = new Vector2(); + + if ( points ) { + + this.setFromPoints( points ); + + } + +} + +Path.prototype = Object.assign( Object.create( CurvePath.prototype ), { + + constructor: Path, + + setFromPoints: function ( points ) { + + this.moveTo( points[ 0 ].x, points[ 0 ].y ); + + for ( let i = 1, l = points.length; i < l; i ++ ) { + + this.lineTo( points[ i ].x, points[ i ].y ); + + } + + return this; + + }, + + moveTo: function ( x, y ) { + + this.currentPoint.set( x, y ); // TODO consider referencing vectors instead of copying? + + return this; + + }, + + lineTo: function ( x, y ) { + + const curve = new LineCurve( this.currentPoint.clone(), new Vector2( x, y ) ); + this.curves.push( curve ); + + this.currentPoint.set( x, y ); + + return this; + + }, + + quadraticCurveTo: function ( aCPx, aCPy, aX, aY ) { + + const curve = new QuadraticBezierCurve( + this.currentPoint.clone(), + new Vector2( aCPx, aCPy ), + new Vector2( aX, aY ) + ); + + this.curves.push( curve ); + + this.currentPoint.set( aX, aY ); + + return this; + + }, + + bezierCurveTo: function ( aCP1x, aCP1y, aCP2x, aCP2y, aX, aY ) { + + const curve = new CubicBezierCurve( + this.currentPoint.clone(), + new Vector2( aCP1x, aCP1y ), + new Vector2( aCP2x, aCP2y ), + new Vector2( aX, aY ) + ); + + this.curves.push( curve ); + + this.currentPoint.set( aX, aY ); + + return this; + + }, + + splineThru: function ( pts /*Array of Vector*/ ) { + + const npts = [ this.currentPoint.clone() ].concat( pts ); + + const curve = new SplineCurve( npts ); + this.curves.push( curve ); + + this.currentPoint.copy( pts[ pts.length - 1 ] ); + + return this; + + }, + + arc: function ( aX, aY, aRadius, aStartAngle, aEndAngle, aClockwise ) { + + const x0 = this.currentPoint.x; + const y0 = this.currentPoint.y; + + this.absarc( aX + x0, aY + y0, aRadius, + aStartAngle, aEndAngle, aClockwise ); + + return this; + + }, + + absarc: function ( aX, aY, aRadius, aStartAngle, aEndAngle, aClockwise ) { + + this.absellipse( aX, aY, aRadius, aRadius, aStartAngle, aEndAngle, aClockwise ); + + return this; + + }, + + ellipse: function ( aX, aY, xRadius, yRadius, aStartAngle, aEndAngle, aClockwise, aRotation ) { + + const x0 = this.currentPoint.x; + const y0 = this.currentPoint.y; + + this.absellipse( aX + x0, aY + y0, xRadius, yRadius, aStartAngle, aEndAngle, aClockwise, aRotation ); + + return this; + + }, + + absellipse: function ( aX, aY, xRadius, yRadius, aStartAngle, aEndAngle, aClockwise, aRotation ) { + + const curve = new EllipseCurve( aX, aY, xRadius, yRadius, aStartAngle, aEndAngle, aClockwise, aRotation ); + + if ( this.curves.length > 0 ) { + + // if a previous curve is present, attempt to join + const firstPoint = curve.getPoint( 0 ); + + if ( ! firstPoint.equals( this.currentPoint ) ) { + + this.lineTo( firstPoint.x, firstPoint.y ); + + } + + } + + this.curves.push( curve ); + + const lastPoint = curve.getPoint( 1 ); + this.currentPoint.copy( lastPoint ); + + return this; + + }, + + copy: function ( source ) { + + CurvePath.prototype.copy.call( this, source ); + + this.currentPoint.copy( source.currentPoint ); + + return this; + + }, + + toJSON: function () { + + const data = CurvePath.prototype.toJSON.call( this ); + + data.currentPoint = this.currentPoint.toArray(); + + return data; + + }, + + fromJSON: function ( json ) { + + CurvePath.prototype.fromJSON.call( this, json ); + + this.currentPoint.fromArray( json.currentPoint ); + + return this; + + } + +} ); + +function Shape( points ) { + + Path.call( this, points ); + + this.uuid = MathUtils.generateUUID(); + + this.type = 'Shape'; + + this.holes = []; + +} + +Shape.prototype = Object.assign( Object.create( Path.prototype ), { + + constructor: Shape, + + getPointsHoles: function ( divisions ) { + + const holesPts = []; + + for ( let i = 0, l = this.holes.length; i < l; i ++ ) { + + holesPts[ i ] = this.holes[ i ].getPoints( divisions ); + + } + + return holesPts; + + }, + + // get points of shape and holes (keypoints based on segments parameter) + + extractPoints: function ( divisions ) { + + return { + + shape: this.getPoints( divisions ), + holes: this.getPointsHoles( divisions ) + + }; + + }, + + copy: function ( source ) { + + Path.prototype.copy.call( this, source ); + + this.holes = []; + + for ( let i = 0, l = source.holes.length; i < l; i ++ ) { + + const hole = source.holes[ i ]; + + this.holes.push( hole.clone() ); + + } + + return this; + + }, + + toJSON: function () { + + const data = Path.prototype.toJSON.call( this ); + + data.uuid = this.uuid; + data.holes = []; + + for ( let i = 0, l = this.holes.length; i < l; i ++ ) { + + const hole = this.holes[ i ]; + data.holes.push( hole.toJSON() ); + + } + + return data; + + }, + + fromJSON: function ( json ) { + + Path.prototype.fromJSON.call( this, json ); + + this.uuid = json.uuid; + this.holes = []; + + for ( let i = 0, l = json.holes.length; i < l; i ++ ) { + + const hole = json.holes[ i ]; + this.holes.push( new Path().fromJSON( hole ) ); + + } + + return this; + + } + +} ); + +function Light( color, intensity ) { + + Object3D.call( this ); + + this.type = 'Light'; + + this.color = new Color( color ); + this.intensity = intensity !== undefined ? intensity : 1; + +} + +Light.prototype = Object.assign( Object.create( Object3D.prototype ), { + + constructor: Light, + + isLight: true, + + copy: function ( source ) { + + Object3D.prototype.copy.call( this, source ); + + this.color.copy( source.color ); + this.intensity = source.intensity; + + return this; + + }, + + toJSON: function ( meta ) { + + const data = Object3D.prototype.toJSON.call( this, meta ); + + data.object.color = this.color.getHex(); + data.object.intensity = this.intensity; + + if ( this.groundColor !== undefined ) data.object.groundColor = this.groundColor.getHex(); + + if ( this.distance !== undefined ) data.object.distance = this.distance; + if ( this.angle !== undefined ) data.object.angle = this.angle; + if ( this.decay !== undefined ) data.object.decay = this.decay; + if ( this.penumbra !== undefined ) data.object.penumbra = this.penumbra; + + if ( this.shadow !== undefined ) data.object.shadow = this.shadow.toJSON(); + + return data; + + } + +} ); + +function HemisphereLight( skyColor, groundColor, intensity ) { + + Light.call( this, skyColor, intensity ); + + this.type = 'HemisphereLight'; + + this.position.copy( Object3D.DefaultUp ); + this.updateMatrix(); + + this.groundColor = new Color( groundColor ); + +} + +HemisphereLight.prototype = Object.assign( Object.create( Light.prototype ), { + + constructor: HemisphereLight, + + isHemisphereLight: true, + + copy: function ( source ) { + + Light.prototype.copy.call( this, source ); + + this.groundColor.copy( source.groundColor ); + + return this; + + } + +} ); + +function LightShadow( camera ) { + + this.camera = camera; + + this.bias = 0; + this.normalBias = 0; + this.radius = 1; + + this.mapSize = new Vector2( 512, 512 ); + + this.map = null; + this.mapPass = null; + this.matrix = new Matrix4(); + + this.autoUpdate = true; + this.needsUpdate = false; + + this._frustum = new Frustum(); + this._frameExtents = new Vector2( 1, 1 ); + + this._viewportCount = 1; + + this._viewports = [ + + new Vector4( 0, 0, 1, 1 ) + + ]; + +} + +Object.assign( LightShadow.prototype, { + + _projScreenMatrix: new Matrix4(), + + _lightPositionWorld: new Vector3(), + + _lookTarget: new Vector3(), + + getViewportCount: function () { + + return this._viewportCount; + + }, + + getFrustum: function () { + + return this._frustum; + + }, + + updateMatrices: function ( light ) { + + const shadowCamera = this.camera, + shadowMatrix = this.matrix, + projScreenMatrix = this._projScreenMatrix, + lookTarget = this._lookTarget, + lightPositionWorld = this._lightPositionWorld; + + lightPositionWorld.setFromMatrixPosition( light.matrixWorld ); + shadowCamera.position.copy( lightPositionWorld ); + + lookTarget.setFromMatrixPosition( light.target.matrixWorld ); + shadowCamera.lookAt( lookTarget ); + shadowCamera.updateMatrixWorld(); + + projScreenMatrix.multiplyMatrices( shadowCamera.projectionMatrix, shadowCamera.matrixWorldInverse ); + this._frustum.setFromProjectionMatrix( projScreenMatrix ); + + shadowMatrix.set( + 0.5, 0.0, 0.0, 0.5, + 0.0, 0.5, 0.0, 0.5, + 0.0, 0.0, 0.5, 0.5, + 0.0, 0.0, 0.0, 1.0 + ); + + shadowMatrix.multiply( shadowCamera.projectionMatrix ); + shadowMatrix.multiply( shadowCamera.matrixWorldInverse ); + + }, + + getViewport: function ( viewportIndex ) { + + return this._viewports[ viewportIndex ]; + + }, + + getFrameExtents: function () { + + return this._frameExtents; + + }, + + copy: function ( source ) { + + this.camera = source.camera.clone(); + + this.bias = source.bias; + this.radius = source.radius; + + this.mapSize.copy( source.mapSize ); + + return this; + + }, + + clone: function () { + + return new this.constructor().copy( this ); + + }, + + toJSON: function () { + + const object = {}; + + if ( this.bias !== 0 ) object.bias = this.bias; + if ( this.normalBias !== 0 ) object.normalBias = this.normalBias; + if ( this.radius !== 1 ) object.radius = this.radius; + if ( this.mapSize.x !== 512 || this.mapSize.y !== 512 ) object.mapSize = this.mapSize.toArray(); + + object.camera = this.camera.toJSON( false ).object; + delete object.camera.matrix; + + return object; + + } + +} ); + +function SpotLightShadow() { + + LightShadow.call( this, new PerspectiveCamera( 50, 1, 0.5, 500 ) ); + + this.focus = 1; + +} + +SpotLightShadow.prototype = Object.assign( Object.create( LightShadow.prototype ), { + + constructor: SpotLightShadow, + + isSpotLightShadow: true, + + updateMatrices: function ( light ) { + + const camera = this.camera; + + const fov = MathUtils.RAD2DEG * 2 * light.angle * this.focus; + const aspect = this.mapSize.width / this.mapSize.height; + const far = light.distance || camera.far; + + if ( fov !== camera.fov || aspect !== camera.aspect || far !== camera.far ) { + + camera.fov = fov; + camera.aspect = aspect; + camera.far = far; + camera.updateProjectionMatrix(); + + } + + LightShadow.prototype.updateMatrices.call( this, light ); + + } + +} ); + +function SpotLight( color, intensity, distance, angle, penumbra, decay ) { + + Light.call( this, color, intensity ); + + this.type = 'SpotLight'; + + this.position.copy( Object3D.DefaultUp ); + this.updateMatrix(); + + this.target = new Object3D(); + + Object.defineProperty( this, 'power', { + get: function () { + + // intensity = power per solid angle. + // ref: equation (17) from https://seblagarde.files.wordpress.com/2015/07/course_notes_moving_frostbite_to_pbr_v32.pdf + return this.intensity * Math.PI; + + }, + set: function ( power ) { + + // intensity = power per solid angle. + // ref: equation (17) from https://seblagarde.files.wordpress.com/2015/07/course_notes_moving_frostbite_to_pbr_v32.pdf + this.intensity = power / Math.PI; + + } + } ); + + this.distance = ( distance !== undefined ) ? distance : 0; + this.angle = ( angle !== undefined ) ? angle : Math.PI / 3; + this.penumbra = ( penumbra !== undefined ) ? penumbra : 0; + this.decay = ( decay !== undefined ) ? decay : 1; // for physically correct lights, should be 2. + + this.shadow = new SpotLightShadow(); + +} + +SpotLight.prototype = Object.assign( Object.create( Light.prototype ), { + + constructor: SpotLight, + + isSpotLight: true, + + copy: function ( source ) { + + Light.prototype.copy.call( this, source ); + + this.distance = source.distance; + this.angle = source.angle; + this.penumbra = source.penumbra; + this.decay = source.decay; + + this.target = source.target.clone(); + + this.shadow = source.shadow.clone(); + + return this; + + } + +} ); + +function PointLightShadow() { + + LightShadow.call( this, new PerspectiveCamera( 90, 1, 0.5, 500 ) ); + + this._frameExtents = new Vector2( 4, 2 ); + + this._viewportCount = 6; + + this._viewports = [ + // These viewports map a cube-map onto a 2D texture with the + // following orientation: + // + // xzXZ + // y Y + // + // X - Positive x direction + // x - Negative x direction + // Y - Positive y direction + // y - Negative y direction + // Z - Positive z direction + // z - Negative z direction + + // positive X + new Vector4( 2, 1, 1, 1 ), + // negative X + new Vector4( 0, 1, 1, 1 ), + // positive Z + new Vector4( 3, 1, 1, 1 ), + // negative Z + new Vector4( 1, 1, 1, 1 ), + // positive Y + new Vector4( 3, 0, 1, 1 ), + // negative Y + new Vector4( 1, 0, 1, 1 ) + ]; + + this._cubeDirections = [ + new Vector3( 1, 0, 0 ), new Vector3( - 1, 0, 0 ), new Vector3( 0, 0, 1 ), + new Vector3( 0, 0, - 1 ), new Vector3( 0, 1, 0 ), new Vector3( 0, - 1, 0 ) + ]; + + this._cubeUps = [ + new Vector3( 0, 1, 0 ), new Vector3( 0, 1, 0 ), new Vector3( 0, 1, 0 ), + new Vector3( 0, 1, 0 ), new Vector3( 0, 0, 1 ), new Vector3( 0, 0, - 1 ) + ]; + +} + +PointLightShadow.prototype = Object.assign( Object.create( LightShadow.prototype ), { + + constructor: PointLightShadow, + + isPointLightShadow: true, + + updateMatrices: function ( light, viewportIndex ) { + + if ( viewportIndex === undefined ) viewportIndex = 0; + + const camera = this.camera, + shadowMatrix = this.matrix, + lightPositionWorld = this._lightPositionWorld, + lookTarget = this._lookTarget, + projScreenMatrix = this._projScreenMatrix; + + lightPositionWorld.setFromMatrixPosition( light.matrixWorld ); + camera.position.copy( lightPositionWorld ); + + lookTarget.copy( camera.position ); + lookTarget.add( this._cubeDirections[ viewportIndex ] ); + camera.up.copy( this._cubeUps[ viewportIndex ] ); + camera.lookAt( lookTarget ); + camera.updateMatrixWorld(); + + shadowMatrix.makeTranslation( - lightPositionWorld.x, - lightPositionWorld.y, - lightPositionWorld.z ); + + projScreenMatrix.multiplyMatrices( camera.projectionMatrix, camera.matrixWorldInverse ); + this._frustum.setFromProjectionMatrix( projScreenMatrix ); + + } + +} ); + +function PointLight( color, intensity, distance, decay ) { + + Light.call( this, color, intensity ); + + this.type = 'PointLight'; + + Object.defineProperty( this, 'power', { + get: function () { + + // intensity = power per solid angle. + // ref: equation (15) from https://seblagarde.files.wordpress.com/2015/07/course_notes_moving_frostbite_to_pbr_v32.pdf + return this.intensity * 4 * Math.PI; + + }, + set: function ( power ) { + + // intensity = power per solid angle. + // ref: equation (15) from https://seblagarde.files.wordpress.com/2015/07/course_notes_moving_frostbite_to_pbr_v32.pdf + this.intensity = power / ( 4 * Math.PI ); + + } + } ); + + this.distance = ( distance !== undefined ) ? distance : 0; + this.decay = ( decay !== undefined ) ? decay : 1; // for physically correct lights, should be 2. + + this.shadow = new PointLightShadow(); + +} + +PointLight.prototype = Object.assign( Object.create( Light.prototype ), { + + constructor: PointLight, + + isPointLight: true, + + copy: function ( source ) { + + Light.prototype.copy.call( this, source ); + + this.distance = source.distance; + this.decay = source.decay; + + this.shadow = source.shadow.clone(); + + return this; + + } + +} ); + +function OrthographicCamera( left, right, top, bottom, near, far ) { + + Camera.call( this ); + + this.type = 'OrthographicCamera'; + + this.zoom = 1; + this.view = null; + + this.left = ( left !== undefined ) ? left : - 1; + this.right = ( right !== undefined ) ? right : 1; + this.top = ( top !== undefined ) ? top : 1; + this.bottom = ( bottom !== undefined ) ? bottom : - 1; + + this.near = ( near !== undefined ) ? near : 0.1; + this.far = ( far !== undefined ) ? far : 2000; + + this.updateProjectionMatrix(); + +} + +OrthographicCamera.prototype = Object.assign( Object.create( Camera.prototype ), { + + constructor: OrthographicCamera, + + isOrthographicCamera: true, + + copy: function ( source, recursive ) { + + Camera.prototype.copy.call( this, source, recursive ); + + this.left = source.left; + this.right = source.right; + this.top = source.top; + this.bottom = source.bottom; + this.near = source.near; + this.far = source.far; + + this.zoom = source.zoom; + this.view = source.view === null ? null : Object.assign( {}, source.view ); + + return this; + + }, + + setViewOffset: function ( fullWidth, fullHeight, x, y, width, height ) { + + if ( this.view === null ) { + + this.view = { + enabled: true, + fullWidth: 1, + fullHeight: 1, + offsetX: 0, + offsetY: 0, + width: 1, + height: 1 + }; + + } + + this.view.enabled = true; + this.view.fullWidth = fullWidth; + this.view.fullHeight = fullHeight; + this.view.offsetX = x; + this.view.offsetY = y; + this.view.width = width; + this.view.height = height; + + this.updateProjectionMatrix(); + + }, + + clearViewOffset: function () { + + if ( this.view !== null ) { + + this.view.enabled = false; + + } + + this.updateProjectionMatrix(); + + }, + + updateProjectionMatrix: function () { + + const dx = ( this.right - this.left ) / ( 2 * this.zoom ); + const dy = ( this.top - this.bottom ) / ( 2 * this.zoom ); + const cx = ( this.right + this.left ) / 2; + const cy = ( this.top + this.bottom ) / 2; + + let left = cx - dx; + let right = cx + dx; + let top = cy + dy; + let bottom = cy - dy; + + if ( this.view !== null && this.view.enabled ) { + + const scaleW = ( this.right - this.left ) / this.view.fullWidth / this.zoom; + const scaleH = ( this.top - this.bottom ) / this.view.fullHeight / this.zoom; + + left += scaleW * this.view.offsetX; + right = left + scaleW * this.view.width; + top -= scaleH * this.view.offsetY; + bottom = top - scaleH * this.view.height; + + } + + this.projectionMatrix.makeOrthographic( left, right, top, bottom, this.near, this.far ); + + this.projectionMatrixInverse.getInverse( this.projectionMatrix ); + + }, + + toJSON: function ( meta ) { + + const data = Object3D.prototype.toJSON.call( this, meta ); + + data.object.zoom = this.zoom; + data.object.left = this.left; + data.object.right = this.right; + data.object.top = this.top; + data.object.bottom = this.bottom; + data.object.near = this.near; + data.object.far = this.far; + + if ( this.view !== null ) data.object.view = Object.assign( {}, this.view ); + + return data; + + } + +} ); + +function DirectionalLightShadow() { + + LightShadow.call( this, new OrthographicCamera( - 5, 5, 5, - 5, 0.5, 500 ) ); + +} + +DirectionalLightShadow.prototype = Object.assign( Object.create( LightShadow.prototype ), { + + constructor: DirectionalLightShadow, + + isDirectionalLightShadow: true, + + updateMatrices: function ( light ) { + + LightShadow.prototype.updateMatrices.call( this, light ); + + } + +} ); + +function DirectionalLight( color, intensity ) { + + Light.call( this, color, intensity ); + + this.type = 'DirectionalLight'; + + this.position.copy( Object3D.DefaultUp ); + this.updateMatrix(); + + this.target = new Object3D(); + + this.shadow = new DirectionalLightShadow(); + +} + +DirectionalLight.prototype = Object.assign( Object.create( Light.prototype ), { + + constructor: DirectionalLight, + + isDirectionalLight: true, + + copy: function ( source ) { + + Light.prototype.copy.call( this, source ); + + this.target = source.target.clone(); + + this.shadow = source.shadow.clone(); + + return this; + + } + +} ); + +function AmbientLight( color, intensity ) { + + Light.call( this, color, intensity ); + + this.type = 'AmbientLight'; + +} + +AmbientLight.prototype = Object.assign( Object.create( Light.prototype ), { + + constructor: AmbientLight, + + isAmbientLight: true + +} ); + +function RectAreaLight( color, intensity, width, height ) { + + Light.call( this, color, intensity ); + + this.type = 'RectAreaLight'; + + this.width = ( width !== undefined ) ? width : 10; + this.height = ( height !== undefined ) ? height : 10; + +} + +RectAreaLight.prototype = Object.assign( Object.create( Light.prototype ), { + + constructor: RectAreaLight, + + isRectAreaLight: true, + + copy: function ( source ) { + + Light.prototype.copy.call( this, source ); + + this.width = source.width; + this.height = source.height; + + return this; + + }, + + toJSON: function ( meta ) { + + const data = Light.prototype.toJSON.call( this, meta ); + + data.object.width = this.width; + data.object.height = this.height; + + return data; + + } + +} ); + +/** + * Primary reference: + * https://graphics.stanford.edu/papers/envmap/envmap.pdf + * + * Secondary reference: + * https://www.ppsloan.org/publications/StupidSH36.pdf + */ + +// 3-band SH defined by 9 coefficients + +class SphericalHarmonics3 { + + constructor() { + + Object.defineProperty( this, 'isSphericalHarmonics3', { value: true } ); + + this.coefficients = []; + + for ( let i = 0; i < 9; i ++ ) { + + this.coefficients.push( new Vector3() ); + + } + + } + + set( coefficients ) { + + for ( let i = 0; i < 9; i ++ ) { + + this.coefficients[ i ].copy( coefficients[ i ] ); + + } + + return this; + + } + + zero() { + + for ( let i = 0; i < 9; i ++ ) { + + this.coefficients[ i ].set( 0, 0, 0 ); + + } + + return this; + + } + + // get the radiance in the direction of the normal + // target is a Vector3 + getAt( normal, target ) { + + // normal is assumed to be unit length + + const x = normal.x, y = normal.y, z = normal.z; + + const coeff = this.coefficients; + + // band 0 + target.copy( coeff[ 0 ] ).multiplyScalar( 0.282095 ); + + // band 1 + target.addScaledVector( coeff[ 1 ], 0.488603 * y ); + target.addScaledVector( coeff[ 2 ], 0.488603 * z ); + target.addScaledVector( coeff[ 3 ], 0.488603 * x ); + + // band 2 + target.addScaledVector( coeff[ 4 ], 1.092548 * ( x * y ) ); + target.addScaledVector( coeff[ 5 ], 1.092548 * ( y * z ) ); + target.addScaledVector( coeff[ 6 ], 0.315392 * ( 3.0 * z * z - 1.0 ) ); + target.addScaledVector( coeff[ 7 ], 1.092548 * ( x * z ) ); + target.addScaledVector( coeff[ 8 ], 0.546274 * ( x * x - y * y ) ); + + return target; + + } + + // get the irradiance (radiance convolved with cosine lobe) in the direction of the normal + // target is a Vector3 + // https://graphics.stanford.edu/papers/envmap/envmap.pdf + getIrradianceAt( normal, target ) { + + // normal is assumed to be unit length + + const x = normal.x, y = normal.y, z = normal.z; + + const coeff = this.coefficients; + + // band 0 + target.copy( coeff[ 0 ] ).multiplyScalar( 0.886227 ); // π * 0.282095 + + // band 1 + target.addScaledVector( coeff[ 1 ], 2.0 * 0.511664 * y ); // ( 2 * π / 3 ) * 0.488603 + target.addScaledVector( coeff[ 2 ], 2.0 * 0.511664 * z ); + target.addScaledVector( coeff[ 3 ], 2.0 * 0.511664 * x ); + + // band 2 + target.addScaledVector( coeff[ 4 ], 2.0 * 0.429043 * x * y ); // ( π / 4 ) * 1.092548 + target.addScaledVector( coeff[ 5 ], 2.0 * 0.429043 * y * z ); + target.addScaledVector( coeff[ 6 ], 0.743125 * z * z - 0.247708 ); // ( π / 4 ) * 0.315392 * 3 + target.addScaledVector( coeff[ 7 ], 2.0 * 0.429043 * x * z ); + target.addScaledVector( coeff[ 8 ], 0.429043 * ( x * x - y * y ) ); // ( π / 4 ) * 0.546274 + + return target; + + } + + add( sh ) { + + for ( let i = 0; i < 9; i ++ ) { + + this.coefficients[ i ].add( sh.coefficients[ i ] ); + + } + + return this; + + } + + addScaledSH( sh, s ) { + + for ( let i = 0; i < 9; i ++ ) { + + this.coefficients[ i ].addScaledVector( sh.coefficients[ i ], s ); + + } + + return this; + + } + + scale( s ) { + + for ( let i = 0; i < 9; i ++ ) { + + this.coefficients[ i ].multiplyScalar( s ); + + } + + return this; + + } + + lerp( sh, alpha ) { + + for ( let i = 0; i < 9; i ++ ) { + + this.coefficients[ i ].lerp( sh.coefficients[ i ], alpha ); + + } + + return this; + + } + + equals( sh ) { + + for ( let i = 0; i < 9; i ++ ) { + + if ( ! this.coefficients[ i ].equals( sh.coefficients[ i ] ) ) { + + return false; + + } + + } + + return true; + + } + + copy( sh ) { + + return this.set( sh.coefficients ); + + } + + clone() { + + return new this.constructor().copy( this ); + + } + + fromArray( array, offset ) { + + if ( offset === undefined ) offset = 0; + + const coefficients = this.coefficients; + + for ( let i = 0; i < 9; i ++ ) { + + coefficients[ i ].fromArray( array, offset + ( i * 3 ) ); + + } + + return this; + + } + + toArray( array, offset ) { + + if ( array === undefined ) array = []; + if ( offset === undefined ) offset = 0; + + const coefficients = this.coefficients; + + for ( let i = 0; i < 9; i ++ ) { + + coefficients[ i ].toArray( array, offset + ( i * 3 ) ); + + } + + return array; + + } + + // evaluate the basis functions + // shBasis is an Array[ 9 ] + static getBasisAt( normal, shBasis ) { + + // normal is assumed to be unit length + + const x = normal.x, y = normal.y, z = normal.z; + + // band 0 + shBasis[ 0 ] = 0.282095; + + // band 1 + shBasis[ 1 ] = 0.488603 * y; + shBasis[ 2 ] = 0.488603 * z; + shBasis[ 3 ] = 0.488603 * x; + + // band 2 + shBasis[ 4 ] = 1.092548 * x * y; + shBasis[ 5 ] = 1.092548 * y * z; + shBasis[ 6 ] = 0.315392 * ( 3 * z * z - 1 ); + shBasis[ 7 ] = 1.092548 * x * z; + shBasis[ 8 ] = 0.546274 * ( x * x - y * y ); + + } + +} + +function LightProbe( sh, intensity ) { + + Light.call( this, undefined, intensity ); + + this.type = 'LightProbe'; + + this.sh = ( sh !== undefined ) ? sh : new SphericalHarmonics3(); + +} + +LightProbe.prototype = Object.assign( Object.create( Light.prototype ), { + + constructor: LightProbe, + + isLightProbe: true, + + copy: function ( source ) { + + Light.prototype.copy.call( this, source ); + + this.sh.copy( source.sh ); + + return this; + + }, + + fromJSON: function ( json ) { + + this.intensity = json.intensity; // TODO: Move this bit to Light.fromJSON(); + this.sh.fromArray( json.sh ); + + return this; + + }, + + toJSON: function ( meta ) { + + const data = Light.prototype.toJSON.call( this, meta ); + + data.object.sh = this.sh.toArray(); + + return data; + + } + +} ); + +function MaterialLoader( manager ) { + + Loader.call( this, manager ); + + this.textures = {}; + +} + +MaterialLoader.prototype = Object.assign( Object.create( Loader.prototype ), { + + constructor: MaterialLoader, + + load: function ( url, onLoad, onProgress, onError ) { + + const scope = this; + + const loader = new FileLoader( scope.manager ); + loader.setPath( scope.path ); + loader.setRequestHeader( scope.requestHeader ); + loader.setWithCredentials( scope.withCredentials ); + loader.load( url, function ( text ) { + + try { + + onLoad( scope.parse( JSON.parse( text ) ) ); + + } catch ( e ) { + + if ( onError ) { + + onError( e ); + + } else { + + console.error( e ); + + } + + scope.manager.itemError( url ); + + } + + }, onProgress, onError ); + + }, + + parse: function ( json ) { + + const textures = this.textures; + + function getTexture( name ) { + + if ( textures[ name ] === undefined ) { + + console.warn( 'THREE.MaterialLoader: Undefined texture', name ); + + } + + return textures[ name ]; + + } + + const material = new Materials[ json.type ](); + + if ( json.uuid !== undefined ) material.uuid = json.uuid; + if ( json.name !== undefined ) material.name = json.name; + if ( json.color !== undefined ) material.color.setHex( json.color ); + if ( json.roughness !== undefined ) material.roughness = json.roughness; + if ( json.metalness !== undefined ) material.metalness = json.metalness; + if ( json.sheen !== undefined ) material.sheen = new Color().setHex( json.sheen ); + if ( json.emissive !== undefined ) material.emissive.setHex( json.emissive ); + if ( json.specular !== undefined ) material.specular.setHex( json.specular ); + if ( json.shininess !== undefined ) material.shininess = json.shininess; + if ( json.clearcoat !== undefined ) material.clearcoat = json.clearcoat; + if ( json.clearcoatRoughness !== undefined ) material.clearcoatRoughness = json.clearcoatRoughness; + if ( json.fog !== undefined ) material.fog = json.fog; + if ( json.flatShading !== undefined ) material.flatShading = json.flatShading; + if ( json.blending !== undefined ) material.blending = json.blending; + if ( json.combine !== undefined ) material.combine = json.combine; + if ( json.side !== undefined ) material.side = json.side; + if ( json.opacity !== undefined ) material.opacity = json.opacity; + if ( json.transparent !== undefined ) material.transparent = json.transparent; + if ( json.alphaTest !== undefined ) material.alphaTest = json.alphaTest; + if ( json.depthTest !== undefined ) material.depthTest = json.depthTest; + if ( json.depthWrite !== undefined ) material.depthWrite = json.depthWrite; + if ( json.colorWrite !== undefined ) material.colorWrite = json.colorWrite; + + if ( json.stencilWrite !== undefined ) material.stencilWrite = json.stencilWrite; + if ( json.stencilWriteMask !== undefined ) material.stencilWriteMask = json.stencilWriteMask; + if ( json.stencilFunc !== undefined ) material.stencilFunc = json.stencilFunc; + if ( json.stencilRef !== undefined ) material.stencilRef = json.stencilRef; + if ( json.stencilFuncMask !== undefined ) material.stencilFuncMask = json.stencilFuncMask; + if ( json.stencilFail !== undefined ) material.stencilFail = json.stencilFail; + if ( json.stencilZFail !== undefined ) material.stencilZFail = json.stencilZFail; + if ( json.stencilZPass !== undefined ) material.stencilZPass = json.stencilZPass; + + if ( json.wireframe !== undefined ) material.wireframe = json.wireframe; + if ( json.wireframeLinewidth !== undefined ) material.wireframeLinewidth = json.wireframeLinewidth; + if ( json.wireframeLinecap !== undefined ) material.wireframeLinecap = json.wireframeLinecap; + if ( json.wireframeLinejoin !== undefined ) material.wireframeLinejoin = json.wireframeLinejoin; + + if ( json.rotation !== undefined ) material.rotation = json.rotation; + + if ( json.linewidth !== 1 ) material.linewidth = json.linewidth; + if ( json.dashSize !== undefined ) material.dashSize = json.dashSize; + if ( json.gapSize !== undefined ) material.gapSize = json.gapSize; + if ( json.scale !== undefined ) material.scale = json.scale; + + if ( json.polygonOffset !== undefined ) material.polygonOffset = json.polygonOffset; + if ( json.polygonOffsetFactor !== undefined ) material.polygonOffsetFactor = json.polygonOffsetFactor; + if ( json.polygonOffsetUnits !== undefined ) material.polygonOffsetUnits = json.polygonOffsetUnits; + + if ( json.skinning !== undefined ) material.skinning = json.skinning; + if ( json.morphTargets !== undefined ) material.morphTargets = json.morphTargets; + if ( json.morphNormals !== undefined ) material.morphNormals = json.morphNormals; + if ( json.dithering !== undefined ) material.dithering = json.dithering; + + if ( json.vertexTangents !== undefined ) material.vertexTangents = json.vertexTangents; + + if ( json.visible !== undefined ) material.visible = json.visible; + + if ( json.toneMapped !== undefined ) material.toneMapped = json.toneMapped; + + if ( json.userData !== undefined ) material.userData = json.userData; + + if ( json.vertexColors !== undefined ) { + + if ( typeof json.vertexColors === 'number' ) { + + material.vertexColors = ( json.vertexColors > 0 ) ? true : false; + + } else { + + material.vertexColors = json.vertexColors; + + } + + } + + // Shader Material + + if ( json.uniforms !== undefined ) { + + for ( const name in json.uniforms ) { + + const uniform = json.uniforms[ name ]; + + material.uniforms[ name ] = {}; + + switch ( uniform.type ) { + + case 't': + material.uniforms[ name ].value = getTexture( uniform.value ); + break; + + case 'c': + material.uniforms[ name ].value = new Color().setHex( uniform.value ); + break; + + case 'v2': + material.uniforms[ name ].value = new Vector2().fromArray( uniform.value ); + break; + + case 'v3': + material.uniforms[ name ].value = new Vector3().fromArray( uniform.value ); + break; + + case 'v4': + material.uniforms[ name ].value = new Vector4().fromArray( uniform.value ); + break; + + case 'm3': + material.uniforms[ name ].value = new Matrix3().fromArray( uniform.value ); + break; + + case 'm4': + material.uniforms[ name ].value = new Matrix4().fromArray( uniform.value ); + break; + + default: + material.uniforms[ name ].value = uniform.value; + + } + + } + + } + + if ( json.defines !== undefined ) material.defines = json.defines; + if ( json.vertexShader !== undefined ) material.vertexShader = json.vertexShader; + if ( json.fragmentShader !== undefined ) material.fragmentShader = json.fragmentShader; + + if ( json.extensions !== undefined ) { + + for ( const key in json.extensions ) { + + material.extensions[ key ] = json.extensions[ key ]; + + } + + } + + // Deprecated + + if ( json.shading !== undefined ) material.flatShading = json.shading === 1; // THREE.FlatShading + + // for PointsMaterial + + if ( json.size !== undefined ) material.size = json.size; + if ( json.sizeAttenuation !== undefined ) material.sizeAttenuation = json.sizeAttenuation; + + // maps + + if ( json.map !== undefined ) material.map = getTexture( json.map ); + if ( json.matcap !== undefined ) material.matcap = getTexture( json.matcap ); + + if ( json.alphaMap !== undefined ) material.alphaMap = getTexture( json.alphaMap ); + + if ( json.bumpMap !== undefined ) material.bumpMap = getTexture( json.bumpMap ); + if ( json.bumpScale !== undefined ) material.bumpScale = json.bumpScale; + + if ( json.normalMap !== undefined ) material.normalMap = getTexture( json.normalMap ); + if ( json.normalMapType !== undefined ) material.normalMapType = json.normalMapType; + if ( json.normalScale !== undefined ) { + + let normalScale = json.normalScale; + + if ( Array.isArray( normalScale ) === false ) { + + // Blender exporter used to export a scalar. See #7459 + + normalScale = [ normalScale, normalScale ]; + + } + + material.normalScale = new Vector2().fromArray( normalScale ); + + } + + if ( json.displacementMap !== undefined ) material.displacementMap = getTexture( json.displacementMap ); + if ( json.displacementScale !== undefined ) material.displacementScale = json.displacementScale; + if ( json.displacementBias !== undefined ) material.displacementBias = json.displacementBias; + + if ( json.roughnessMap !== undefined ) material.roughnessMap = getTexture( json.roughnessMap ); + if ( json.metalnessMap !== undefined ) material.metalnessMap = getTexture( json.metalnessMap ); + + if ( json.emissiveMap !== undefined ) material.emissiveMap = getTexture( json.emissiveMap ); + if ( json.emissiveIntensity !== undefined ) material.emissiveIntensity = json.emissiveIntensity; + + if ( json.specularMap !== undefined ) material.specularMap = getTexture( json.specularMap ); + + if ( json.envMap !== undefined ) material.envMap = getTexture( json.envMap ); + if ( json.envMapIntensity !== undefined ) material.envMapIntensity = json.envMapIntensity; + + if ( json.reflectivity !== undefined ) material.reflectivity = json.reflectivity; + if ( json.refractionRatio !== undefined ) material.refractionRatio = json.refractionRatio; + + if ( json.lightMap !== undefined ) material.lightMap = getTexture( json.lightMap ); + if ( json.lightMapIntensity !== undefined ) material.lightMapIntensity = json.lightMapIntensity; + + if ( json.aoMap !== undefined ) material.aoMap = getTexture( json.aoMap ); + if ( json.aoMapIntensity !== undefined ) material.aoMapIntensity = json.aoMapIntensity; + + if ( json.gradientMap !== undefined ) material.gradientMap = getTexture( json.gradientMap ); + + if ( json.clearcoatMap !== undefined ) material.clearcoatMap = getTexture( json.clearcoatMap ); + if ( json.clearcoatRoughnessMap !== undefined ) material.clearcoatRoughnessMap = getTexture( json.clearcoatRoughnessMap ); + if ( json.clearcoatNormalMap !== undefined ) material.clearcoatNormalMap = getTexture( json.clearcoatNormalMap ); + if ( json.clearcoatNormalScale !== undefined ) material.clearcoatNormalScale = new Vector2().fromArray( json.clearcoatNormalScale ); + + if ( json.transmission !== undefined ) material.transmission = json.transmission; + if ( json.transmissionMap !== undefined ) material.transmissionMap = getTexture( json.transmissionMap ); + + return material; + + }, + + setTextures: function ( value ) { + + this.textures = value; + return this; + + } + +} ); + +const LoaderUtils = { + + decodeText: function ( array ) { + + if ( typeof TextDecoder !== 'undefined' ) { + + return new TextDecoder().decode( array ); + + } + + // Avoid the String.fromCharCode.apply(null, array) shortcut, which + // throws a "maximum call stack size exceeded" error for large arrays. + + let s = ''; + + for ( let i = 0, il = array.length; i < il; i ++ ) { + + // Implicitly assumes little-endian. + s += String.fromCharCode( array[ i ] ); + + } + + try { + + // merges multi-byte utf-8 characters. + + return decodeURIComponent( escape( s ) ); + + } catch ( e ) { // see #16358 + + return s; + + } + + }, + + extractUrlBase: function ( url ) { + + const index = url.lastIndexOf( '/' ); + + if ( index === - 1 ) return './'; + + return url.substr( 0, index + 1 ); + + } + +}; + +function InstancedBufferGeometry() { + + BufferGeometry.call( this ); + + this.type = 'InstancedBufferGeometry'; + this.instanceCount = Infinity; + +} + +InstancedBufferGeometry.prototype = Object.assign( Object.create( BufferGeometry.prototype ), { + + constructor: InstancedBufferGeometry, + + isInstancedBufferGeometry: true, + + copy: function ( source ) { + + BufferGeometry.prototype.copy.call( this, source ); + + this.instanceCount = source.instanceCount; + + return this; + + }, + + clone: function () { + + return new this.constructor().copy( this ); + + }, + + toJSON: function () { + + const data = BufferGeometry.prototype.toJSON.call( this ); + + data.instanceCount = this.instanceCount; + + data.isInstancedBufferGeometry = true; + + return data; + + } + +} ); + +function InstancedBufferAttribute( array, itemSize, normalized, meshPerAttribute ) { + + if ( typeof ( normalized ) === 'number' ) { + + meshPerAttribute = normalized; + + normalized = false; + + console.error( 'THREE.InstancedBufferAttribute: The constructor now expects normalized as the third argument.' ); + + } + + BufferAttribute.call( this, array, itemSize, normalized ); + + this.meshPerAttribute = meshPerAttribute || 1; + +} + +InstancedBufferAttribute.prototype = Object.assign( Object.create( BufferAttribute.prototype ), { + + constructor: InstancedBufferAttribute, + + isInstancedBufferAttribute: true, + + copy: function ( source ) { + + BufferAttribute.prototype.copy.call( this, source ); + + this.meshPerAttribute = source.meshPerAttribute; + + return this; + + }, + + toJSON: function () { + + const data = BufferAttribute.prototype.toJSON.call( this ); + + data.meshPerAttribute = this.meshPerAttribute; + + data.isInstancedBufferAttribute = true; + + return data; + + } + +} ); + +function BufferGeometryLoader( manager ) { + + Loader.call( this, manager ); + +} + +BufferGeometryLoader.prototype = Object.assign( Object.create( Loader.prototype ), { + + constructor: BufferGeometryLoader, + + load: function ( url, onLoad, onProgress, onError ) { + + const scope = this; + + const loader = new FileLoader( scope.manager ); + loader.setPath( scope.path ); + loader.setRequestHeader( scope.requestHeader ); + loader.setWithCredentials( scope.withCredentials ); + loader.load( url, function ( text ) { + + try { + + onLoad( scope.parse( JSON.parse( text ) ) ); + + } catch ( e ) { + + if ( onError ) { + + onError( e ); + + } else { + + console.error( e ); + + } + + scope.manager.itemError( url ); + + } + + }, onProgress, onError ); + + }, + + parse: function ( json ) { + + const interleavedBufferMap = {}; + const arrayBufferMap = {}; + + function getInterleavedBuffer( json, uuid ) { + + if ( interleavedBufferMap[ uuid ] !== undefined ) return interleavedBufferMap[ uuid ]; + + const interleavedBuffers = json.interleavedBuffers; + const interleavedBuffer = interleavedBuffers[ uuid ]; + + const buffer = getArrayBuffer( json, interleavedBuffer.buffer ); + + const array = new TYPED_ARRAYS[ interleavedBuffer.type ]( buffer ); + const ib = new InterleavedBuffer( array, interleavedBuffer.stride ); + ib.uuid = interleavedBuffer.uuid; + + interleavedBufferMap[ uuid ] = ib; + + return ib; + + } + + function getArrayBuffer( json, uuid ) { + + if ( arrayBufferMap[ uuid ] !== undefined ) return arrayBufferMap[ uuid ]; + + const arrayBuffers = json.arrayBuffers; + const arrayBuffer = arrayBuffers[ uuid ]; + + const ab = new Uint32Array( arrayBuffer ).buffer; + + arrayBufferMap[ uuid ] = ab; + + return ab; + + } + + const geometry = json.isInstancedBufferGeometry ? new InstancedBufferGeometry() : new BufferGeometry(); + + const index = json.data.index; + + if ( index !== undefined ) { + + const typedArray = new TYPED_ARRAYS[ index.type ]( index.array ); + geometry.setIndex( new BufferAttribute( typedArray, 1 ) ); + + } + + const attributes = json.data.attributes; + + for ( const key in attributes ) { + + const attribute = attributes[ key ]; + let bufferAttribute; + + if ( attribute.isInterleavedBufferAttribute ) { + + const interleavedBuffer = getInterleavedBuffer( json.data, attribute.data ); + bufferAttribute = new InterleavedBufferAttribute( interleavedBuffer, attribute.itemSize, attribute.offset, attribute.normalized ); + + } else { + + const typedArray = new TYPED_ARRAYS[ attribute.type ]( attribute.array ); + const bufferAttributeConstr = attribute.isInstancedBufferAttribute ? InstancedBufferAttribute : BufferAttribute; + bufferAttribute = new bufferAttributeConstr( typedArray, attribute.itemSize, attribute.normalized ); + + } + + if ( attribute.name !== undefined ) bufferAttribute.name = attribute.name; + geometry.setAttribute( key, bufferAttribute ); + + } + + const morphAttributes = json.data.morphAttributes; + + if ( morphAttributes ) { + + for ( const key in morphAttributes ) { + + const attributeArray = morphAttributes[ key ]; + + const array = []; + + for ( let i = 0, il = attributeArray.length; i < il; i ++ ) { + + const attribute = attributeArray[ i ]; + let bufferAttribute; + + if ( attribute.isInterleavedBufferAttribute ) { + + const interleavedBuffer = getInterleavedBuffer( json.data, attribute.data ); + bufferAttribute = new InterleavedBufferAttribute( interleavedBuffer, attribute.itemSize, attribute.offset, attribute.normalized ); + + } else { + + const typedArray = new TYPED_ARRAYS[ attribute.type ]( attribute.array ); + bufferAttribute = new BufferAttribute( typedArray, attribute.itemSize, attribute.normalized ); + + } + + if ( attribute.name !== undefined ) bufferAttribute.name = attribute.name; + array.push( bufferAttribute ); + + } + + geometry.morphAttributes[ key ] = array; + + } + + } + + const morphTargetsRelative = json.data.morphTargetsRelative; + + if ( morphTargetsRelative ) { + + geometry.morphTargetsRelative = true; + + } + + const groups = json.data.groups || json.data.drawcalls || json.data.offsets; + + if ( groups !== undefined ) { + + for ( let i = 0, n = groups.length; i !== n; ++ i ) { + + const group = groups[ i ]; + + geometry.addGroup( group.start, group.count, group.materialIndex ); + + } + + } + + const boundingSphere = json.data.boundingSphere; + + if ( boundingSphere !== undefined ) { + + const center = new Vector3(); + + if ( boundingSphere.center !== undefined ) { + + center.fromArray( boundingSphere.center ); + + } + + geometry.boundingSphere = new Sphere( center, boundingSphere.radius ); + + } + + if ( json.name ) geometry.name = json.name; + if ( json.userData ) geometry.userData = json.userData; + + return geometry; + + } + +} ); + +const TYPED_ARRAYS = { + Int8Array: Int8Array, + Uint8Array: Uint8Array, + // Workaround for IE11 pre KB2929437. See #11440 + Uint8ClampedArray: typeof Uint8ClampedArray !== 'undefined' ? Uint8ClampedArray : Uint8Array, + Int16Array: Int16Array, + Uint16Array: Uint16Array, + Int32Array: Int32Array, + Uint32Array: Uint32Array, + Float32Array: Float32Array, + Float64Array: Float64Array +}; + +class ObjectLoader extends Loader { + + constructor( manager ) { + + super( manager ); + + } + + load( url, onLoad, onProgress, onError ) { + + const scope = this; + + const path = ( this.path === '' ) ? LoaderUtils.extractUrlBase( url ) : this.path; + this.resourcePath = this.resourcePath || path; + + const loader = new FileLoader( this.manager ); + loader.setPath( this.path ); + loader.setRequestHeader( this.requestHeader ); + loader.setWithCredentials( this.withCredentials ); + loader.load( url, function ( text ) { + + let json = null; + + try { + + json = JSON.parse( text ); + + } catch ( error ) { + + if ( onError !== undefined ) onError( error ); + + console.error( 'THREE:ObjectLoader: Can\'t parse ' + url + '.', error.message ); + + return; + + } + + const metadata = json.metadata; + + if ( metadata === undefined || metadata.type === undefined || metadata.type.toLowerCase() === 'geometry' ) { + + console.error( 'THREE.ObjectLoader: Can\'t load ' + url ); + return; + + } + + scope.parse( json, onLoad ); + + }, onProgress, onError ); + + } + + parse( json, onLoad ) { + + const shapes = this.parseShape( json.shapes ); + const geometries = this.parseGeometries( json.geometries, shapes ); + + const images = this.parseImages( json.images, function () { + + if ( onLoad !== undefined ) onLoad( object ); + + } ); + + const textures = this.parseTextures( json.textures, images ); + const materials = this.parseMaterials( json.materials, textures ); + + const object = this.parseObject( json.object, geometries, materials ); + + if ( json.animations ) { + + object.animations = this.parseAnimations( json.animations ); + + } + + if ( json.images === undefined || json.images.length === 0 ) { + + if ( onLoad !== undefined ) onLoad( object ); + + } + + return object; + + } + + parseShape( json ) { + + const shapes = {}; + + if ( json !== undefined ) { + + for ( let i = 0, l = json.length; i < l; i ++ ) { + + const shape = new Shape().fromJSON( json[ i ] ); + + shapes[ shape.uuid ] = shape; + + } + + } + + return shapes; + + } + + parseGeometries( json, shapes ) { + + const geometries = {}; + let geometryShapes; + + if ( json !== undefined ) { + + const bufferGeometryLoader = new BufferGeometryLoader(); + + for ( let i = 0, l = json.length; i < l; i ++ ) { + + let geometry; + const data = json[ i ]; + + switch ( data.type ) { + + case 'PlaneGeometry': + case 'PlaneBufferGeometry': + + geometry = new Geometries[ data.type ]( + data.width, + data.height, + data.widthSegments, + data.heightSegments + ); + + break; + + case 'BoxGeometry': + case 'BoxBufferGeometry': + case 'CubeGeometry': // backwards compatible + + geometry = new Geometries[ data.type ]( + data.width, + data.height, + data.depth, + data.widthSegments, + data.heightSegments, + data.depthSegments + ); + + break; + + case 'CircleGeometry': + case 'CircleBufferGeometry': + + geometry = new Geometries[ data.type ]( + data.radius, + data.segments, + data.thetaStart, + data.thetaLength + ); + + break; + + case 'CylinderGeometry': + case 'CylinderBufferGeometry': + + geometry = new Geometries[ data.type ]( + data.radiusTop, + data.radiusBottom, + data.height, + data.radialSegments, + data.heightSegments, + data.openEnded, + data.thetaStart, + data.thetaLength + ); + + break; + + case 'ConeGeometry': + case 'ConeBufferGeometry': + + geometry = new Geometries[ data.type ]( + data.radius, + data.height, + data.radialSegments, + data.heightSegments, + data.openEnded, + data.thetaStart, + data.thetaLength + ); + + break; + + case 'SphereGeometry': + case 'SphereBufferGeometry': + + geometry = new Geometries[ data.type ]( + data.radius, + data.widthSegments, + data.heightSegments, + data.phiStart, + data.phiLength, + data.thetaStart, + data.thetaLength + ); + + break; + + case 'DodecahedronGeometry': + case 'DodecahedronBufferGeometry': + case 'IcosahedronGeometry': + case 'IcosahedronBufferGeometry': + case 'OctahedronGeometry': + case 'OctahedronBufferGeometry': + case 'TetrahedronGeometry': + case 'TetrahedronBufferGeometry': + + geometry = new Geometries[ data.type ]( + data.radius, + data.detail + ); + + break; + + case 'RingGeometry': + case 'RingBufferGeometry': + + geometry = new Geometries[ data.type ]( + data.innerRadius, + data.outerRadius, + data.thetaSegments, + data.phiSegments, + data.thetaStart, + data.thetaLength + ); + + break; + + case 'TorusGeometry': + case 'TorusBufferGeometry': + + geometry = new Geometries[ data.type ]( + data.radius, + data.tube, + data.radialSegments, + data.tubularSegments, + data.arc + ); + + break; + + case 'TorusKnotGeometry': + case 'TorusKnotBufferGeometry': + + geometry = new Geometries[ data.type ]( + data.radius, + data.tube, + data.tubularSegments, + data.radialSegments, + data.p, + data.q + ); + + break; + + case 'TubeGeometry': + case 'TubeBufferGeometry': + + // This only works for built-in curves (e.g. CatmullRomCurve3). + // User defined curves or instances of CurvePath will not be deserialized. + geometry = new Geometries[ data.type ]( + new Curves[ data.path.type ]().fromJSON( data.path ), + data.tubularSegments, + data.radius, + data.radialSegments, + data.closed + ); + + break; + + case 'LatheGeometry': + case 'LatheBufferGeometry': + + geometry = new Geometries[ data.type ]( + data.points, + data.segments, + data.phiStart, + data.phiLength + ); + + break; + + case 'PolyhedronGeometry': + case 'PolyhedronBufferGeometry': + + geometry = new Geometries[ data.type ]( + data.vertices, + data.indices, + data.radius, + data.details + ); + + break; + + case 'ShapeGeometry': + case 'ShapeBufferGeometry': + + geometryShapes = []; + + for ( let j = 0, jl = data.shapes.length; j < jl; j ++ ) { + + const shape = shapes[ data.shapes[ j ] ]; + + geometryShapes.push( shape ); + + } + + geometry = new Geometries[ data.type ]( + geometryShapes, + data.curveSegments + ); + + break; + + + case 'ExtrudeGeometry': + case 'ExtrudeBufferGeometry': + + geometryShapes = []; + + for ( let j = 0, jl = data.shapes.length; j < jl; j ++ ) { + + const shape = shapes[ data.shapes[ j ] ]; + + geometryShapes.push( shape ); + + } + + const extrudePath = data.options.extrudePath; + + if ( extrudePath !== undefined ) { + + data.options.extrudePath = new Curves[ extrudePath.type ]().fromJSON( extrudePath ); + + } + + geometry = new Geometries[ data.type ]( + geometryShapes, + data.options + ); + + break; + + case 'BufferGeometry': + case 'InstancedBufferGeometry': + + geometry = bufferGeometryLoader.parse( data ); + + break; + + case 'Geometry': + + console.error( 'THREE.ObjectLoader: Loading "Geometry" is not supported anymore.' ); + + break; + + default: + + console.warn( 'THREE.ObjectLoader: Unsupported geometry type "' + data.type + '"' ); + + continue; + + } + + geometry.uuid = data.uuid; + + if ( data.name !== undefined ) geometry.name = data.name; + if ( geometry.isBufferGeometry === true && data.userData !== undefined ) geometry.userData = data.userData; + + geometries[ data.uuid ] = geometry; + + } + + } + + return geometries; + + } + + parseMaterials( json, textures ) { + + const cache = {}; // MultiMaterial + const materials = {}; + + if ( json !== undefined ) { + + const loader = new MaterialLoader(); + loader.setTextures( textures ); + + for ( let i = 0, l = json.length; i < l; i ++ ) { + + const data = json[ i ]; + + if ( data.type === 'MultiMaterial' ) { + + // Deprecated + + const array = []; + + for ( let j = 0; j < data.materials.length; j ++ ) { + + const material = data.materials[ j ]; + + if ( cache[ material.uuid ] === undefined ) { + + cache[ material.uuid ] = loader.parse( material ); + + } + + array.push( cache[ material.uuid ] ); + + } + + materials[ data.uuid ] = array; + + } else { + + if ( cache[ data.uuid ] === undefined ) { + + cache[ data.uuid ] = loader.parse( data ); + + } + + materials[ data.uuid ] = cache[ data.uuid ]; + + } + + } + + } + + return materials; + + } + + parseAnimations( json ) { + + const animations = []; + + for ( let i = 0; i < json.length; i ++ ) { + + const data = json[ i ]; + + const clip = AnimationClip.parse( data ); + + if ( data.uuid !== undefined ) clip.uuid = data.uuid; + + animations.push( clip ); + + } + + return animations; + + } + + parseImages( json, onLoad ) { + + const scope = this; + const images = {}; + + let loader; + + function loadImage( url ) { + + scope.manager.itemStart( url ); + + return loader.load( url, function () { + + scope.manager.itemEnd( url ); + + }, undefined, function () { + + scope.manager.itemError( url ); + scope.manager.itemEnd( url ); + + } ); + + } + + if ( json !== undefined && json.length > 0 ) { + + const manager = new LoadingManager( onLoad ); + + loader = new ImageLoader( manager ); + loader.setCrossOrigin( this.crossOrigin ); + + for ( let i = 0, il = json.length; i < il; i ++ ) { + + const image = json[ i ]; + const url = image.url; + + if ( Array.isArray( url ) ) { + + // load array of images e.g CubeTexture + + images[ image.uuid ] = []; + + for ( let j = 0, jl = url.length; j < jl; j ++ ) { + + const currentUrl = url[ j ]; + + const path = /^(\/\/)|([a-z]+:(\/\/)?)/i.test( currentUrl ) ? currentUrl : scope.resourcePath + currentUrl; + + images[ image.uuid ].push( loadImage( path ) ); + + } + + } else { + + // load single image + + const path = /^(\/\/)|([a-z]+:(\/\/)?)/i.test( image.url ) ? image.url : scope.resourcePath + image.url; + + images[ image.uuid ] = loadImage( path ); + + } + + } + + } + + return images; + + } + + parseTextures( json, images ) { + + function parseConstant( value, type ) { + + if ( typeof value === 'number' ) return value; + + console.warn( 'THREE.ObjectLoader.parseTexture: Constant should be in numeric form.', value ); + + return type[ value ]; + + } + + const textures = {}; + + if ( json !== undefined ) { + + for ( let i = 0, l = json.length; i < l; i ++ ) { + + const data = json[ i ]; + + if ( data.image === undefined ) { + + console.warn( 'THREE.ObjectLoader: No "image" specified for', data.uuid ); + + } + + if ( images[ data.image ] === undefined ) { + + console.warn( 'THREE.ObjectLoader: Undefined image', data.image ); + + } + + let texture; + + if ( Array.isArray( images[ data.image ] ) ) { + + texture = new CubeTexture( images[ data.image ] ); + + } else { + + texture = new Texture( images[ data.image ] ); + + } + + texture.needsUpdate = true; + + texture.uuid = data.uuid; + + if ( data.name !== undefined ) texture.name = data.name; + + if ( data.mapping !== undefined ) texture.mapping = parseConstant( data.mapping, TEXTURE_MAPPING ); + + if ( data.offset !== undefined ) texture.offset.fromArray( data.offset ); + if ( data.repeat !== undefined ) texture.repeat.fromArray( data.repeat ); + if ( data.center !== undefined ) texture.center.fromArray( data.center ); + if ( data.rotation !== undefined ) texture.rotation = data.rotation; + + if ( data.wrap !== undefined ) { + + texture.wrapS = parseConstant( data.wrap[ 0 ], TEXTURE_WRAPPING ); + texture.wrapT = parseConstant( data.wrap[ 1 ], TEXTURE_WRAPPING ); + + } + + if ( data.format !== undefined ) texture.format = data.format; + if ( data.type !== undefined ) texture.type = data.type; + if ( data.encoding !== undefined ) texture.encoding = data.encoding; + + if ( data.minFilter !== undefined ) texture.minFilter = parseConstant( data.minFilter, TEXTURE_FILTER ); + if ( data.magFilter !== undefined ) texture.magFilter = parseConstant( data.magFilter, TEXTURE_FILTER ); + if ( data.anisotropy !== undefined ) texture.anisotropy = data.anisotropy; + + if ( data.flipY !== undefined ) texture.flipY = data.flipY; + + if ( data.premultiplyAlpha !== undefined ) texture.premultiplyAlpha = data.premultiplyAlpha; + if ( data.unpackAlignment !== undefined ) texture.unpackAlignment = data.unpackAlignment; + + textures[ data.uuid ] = texture; + + } + + } + + return textures; + + } + + parseObject( data, geometries, materials ) { + + let object; + + function getGeometry( name ) { + + if ( geometries[ name ] === undefined ) { + + console.warn( 'THREE.ObjectLoader: Undefined geometry', name ); + + } + + return geometries[ name ]; + + } + + function getMaterial( name ) { + + if ( name === undefined ) return undefined; + + if ( Array.isArray( name ) ) { + + const array = []; + + for ( let i = 0, l = name.length; i < l; i ++ ) { + + const uuid = name[ i ]; + + if ( materials[ uuid ] === undefined ) { + + console.warn( 'THREE.ObjectLoader: Undefined material', uuid ); + + } + + array.push( materials[ uuid ] ); + + } + + return array; + + } + + if ( materials[ name ] === undefined ) { + + console.warn( 'THREE.ObjectLoader: Undefined material', name ); + + } + + return materials[ name ]; + + } + + let geometry, material; + + switch ( data.type ) { + + case 'Scene': + + object = new Scene(); + + if ( data.background !== undefined ) { + + if ( Number.isInteger( data.background ) ) { + + object.background = new Color( data.background ); + + } + + } + + if ( data.fog !== undefined ) { + + if ( data.fog.type === 'Fog' ) { + + object.fog = new Fog( data.fog.color, data.fog.near, data.fog.far ); + + } else if ( data.fog.type === 'FogExp2' ) { + + object.fog = new FogExp2( data.fog.color, data.fog.density ); + + } + + } + + break; + + case 'PerspectiveCamera': + + object = new PerspectiveCamera( data.fov, data.aspect, data.near, data.far ); + + if ( data.focus !== undefined ) object.focus = data.focus; + if ( data.zoom !== undefined ) object.zoom = data.zoom; + if ( data.filmGauge !== undefined ) object.filmGauge = data.filmGauge; + if ( data.filmOffset !== undefined ) object.filmOffset = data.filmOffset; + if ( data.view !== undefined ) object.view = Object.assign( {}, data.view ); + + break; + + case 'OrthographicCamera': + + object = new OrthographicCamera( data.left, data.right, data.top, data.bottom, data.near, data.far ); + + if ( data.zoom !== undefined ) object.zoom = data.zoom; + if ( data.view !== undefined ) object.view = Object.assign( {}, data.view ); + + break; + + case 'AmbientLight': + + object = new AmbientLight( data.color, data.intensity ); + + break; + + case 'DirectionalLight': + + object = new DirectionalLight( data.color, data.intensity ); + + break; + + case 'PointLight': + + object = new PointLight( data.color, data.intensity, data.distance, data.decay ); + + break; + + case 'RectAreaLight': + + object = new RectAreaLight( data.color, data.intensity, data.width, data.height ); + + break; + + case 'SpotLight': + + object = new SpotLight( data.color, data.intensity, data.distance, data.angle, data.penumbra, data.decay ); + + break; + + case 'HemisphereLight': + + object = new HemisphereLight( data.color, data.groundColor, data.intensity ); + + break; + + case 'LightProbe': + + object = new LightProbe().fromJSON( data ); + + break; + + case 'SkinnedMesh': + + console.warn( 'THREE.ObjectLoader.parseObject() does not support SkinnedMesh yet.' ); + + case 'Mesh': + + geometry = getGeometry( data.geometry ); + material = getMaterial( data.material ); + + object = new Mesh( geometry, material ); + + break; + + case 'InstancedMesh': + + geometry = getGeometry( data.geometry ); + material = getMaterial( data.material ); + const count = data.count; + const instanceMatrix = data.instanceMatrix; + + object = new InstancedMesh( geometry, material, count ); + object.instanceMatrix = new BufferAttribute( new Float32Array( instanceMatrix.array ), 16 ); + + break; + + case 'LOD': + + object = new LOD(); + + break; + + case 'Line': + + object = new Line( getGeometry( data.geometry ), getMaterial( data.material ), data.mode ); + + break; + + case 'LineLoop': + + object = new LineLoop( getGeometry( data.geometry ), getMaterial( data.material ) ); + + break; + + case 'LineSegments': + + object = new LineSegments( getGeometry( data.geometry ), getMaterial( data.material ) ); + + break; + + case 'PointCloud': + case 'Points': + + object = new Points( getGeometry( data.geometry ), getMaterial( data.material ) ); + + break; + + case 'Sprite': + + object = new Sprite( getMaterial( data.material ) ); + + break; + + case 'Group': + + object = new Group(); + + break; + + default: + + object = new Object3D(); + + } + + object.uuid = data.uuid; + + if ( data.name !== undefined ) object.name = data.name; + + if ( data.matrix !== undefined ) { + + object.matrix.fromArray( data.matrix ); + + if ( data.matrixAutoUpdate !== undefined ) object.matrixAutoUpdate = data.matrixAutoUpdate; + if ( object.matrixAutoUpdate ) object.matrix.decompose( object.position, object.quaternion, object.scale ); + + } else { + + if ( data.position !== undefined ) object.position.fromArray( data.position ); + if ( data.rotation !== undefined ) object.rotation.fromArray( data.rotation ); + if ( data.quaternion !== undefined ) object.quaternion.fromArray( data.quaternion ); + if ( data.scale !== undefined ) object.scale.fromArray( data.scale ); + + } + + if ( data.castShadow !== undefined ) object.castShadow = data.castShadow; + if ( data.receiveShadow !== undefined ) object.receiveShadow = data.receiveShadow; + + if ( data.shadow ) { + + if ( data.shadow.bias !== undefined ) object.shadow.bias = data.shadow.bias; + if ( data.shadow.normalBias !== undefined ) object.shadow.normalBias = data.shadow.normalBias; + if ( data.shadow.radius !== undefined ) object.shadow.radius = data.shadow.radius; + if ( data.shadow.mapSize !== undefined ) object.shadow.mapSize.fromArray( data.shadow.mapSize ); + if ( data.shadow.camera !== undefined ) object.shadow.camera = this.parseObject( data.shadow.camera ); + + } + + if ( data.visible !== undefined ) object.visible = data.visible; + if ( data.frustumCulled !== undefined ) object.frustumCulled = data.frustumCulled; + if ( data.renderOrder !== undefined ) object.renderOrder = data.renderOrder; + if ( data.userData !== undefined ) object.userData = data.userData; + if ( data.layers !== undefined ) object.layers.mask = data.layers; + + if ( data.children !== undefined ) { + + const children = data.children; + + for ( let i = 0; i < children.length; i ++ ) { + + object.add( this.parseObject( children[ i ], geometries, materials ) ); + + } + + } + + if ( data.type === 'LOD' ) { + + if ( data.autoUpdate !== undefined ) object.autoUpdate = data.autoUpdate; + + const levels = data.levels; + + for ( let l = 0; l < levels.length; l ++ ) { + + const level = levels[ l ]; + const child = object.getObjectByProperty( 'uuid', level.object ); + + if ( child !== undefined ) { + + object.addLevel( child, level.distance ); + + } + + } + + } + + return object; + + } + + /* DEPRECATED */ + + setTexturePath( value ) { + + console.warn( 'THREE.ObjectLoader: .setTexturePath() has been renamed to .setResourcePath().' ); + return this.setResourcePath( value ); + + } + +} + +const TEXTURE_MAPPING = { + UVMapping: UVMapping, + CubeReflectionMapping: CubeReflectionMapping, + CubeRefractionMapping: CubeRefractionMapping, + EquirectangularReflectionMapping: EquirectangularReflectionMapping, + EquirectangularRefractionMapping: EquirectangularRefractionMapping, + CubeUVReflectionMapping: CubeUVReflectionMapping, + CubeUVRefractionMapping: CubeUVRefractionMapping +}; + +const TEXTURE_WRAPPING = { + RepeatWrapping: RepeatWrapping, + ClampToEdgeWrapping: ClampToEdgeWrapping, + MirroredRepeatWrapping: MirroredRepeatWrapping +}; + +const TEXTURE_FILTER = { + NearestFilter: NearestFilter, + NearestMipmapNearestFilter: NearestMipmapNearestFilter, + NearestMipmapLinearFilter: NearestMipmapLinearFilter, + LinearFilter: LinearFilter, + LinearMipmapNearestFilter: LinearMipmapNearestFilter, + LinearMipmapLinearFilter: LinearMipmapLinearFilter +}; + +function ImageBitmapLoader( manager ) { + + if ( typeof createImageBitmap === 'undefined' ) { + + console.warn( 'THREE.ImageBitmapLoader: createImageBitmap() not supported.' ); + + } + + if ( typeof fetch === 'undefined' ) { + + console.warn( 'THREE.ImageBitmapLoader: fetch() not supported.' ); + + } + + Loader.call( this, manager ); + + this.options = { premultiplyAlpha: 'none' }; + +} + +ImageBitmapLoader.prototype = Object.assign( Object.create( Loader.prototype ), { + + constructor: ImageBitmapLoader, + + isImageBitmapLoader: true, + + setOptions: function setOptions( options ) { + + this.options = options; + + return this; + + }, + + load: function ( url, onLoad, onProgress, onError ) { + + if ( url === undefined ) url = ''; + + if ( this.path !== undefined ) url = this.path + url; + + url = this.manager.resolveURL( url ); + + const scope = this; + + const cached = Cache.get( url ); + + if ( cached !== undefined ) { + + scope.manager.itemStart( url ); + + setTimeout( function () { + + if ( onLoad ) onLoad( cached ); + + scope.manager.itemEnd( url ); + + }, 0 ); + + return cached; + + } + + const fetchOptions = {}; + fetchOptions.credentials = ( this.crossOrigin === 'anonymous' ) ? 'same-origin' : 'include'; + + fetch( url, fetchOptions ).then( function ( res ) { + + return res.blob(); + + } ).then( function ( blob ) { + + return createImageBitmap( blob, scope.options ); + + } ).then( function ( imageBitmap ) { + + Cache.add( url, imageBitmap ); + + if ( onLoad ) onLoad( imageBitmap ); + + scope.manager.itemEnd( url ); + + } ).catch( function ( e ) { + + if ( onError ) onError( e ); + + scope.manager.itemError( url ); + scope.manager.itemEnd( url ); + + } ); + + scope.manager.itemStart( url ); + + } + +} ); + +function ShapePath() { + + this.type = 'ShapePath'; + + this.color = new Color(); + + this.subPaths = []; + this.currentPath = null; + +} + +Object.assign( ShapePath.prototype, { + + moveTo: function ( x, y ) { + + this.currentPath = new Path(); + this.subPaths.push( this.currentPath ); + this.currentPath.moveTo( x, y ); + + return this; + + }, + + lineTo: function ( x, y ) { + + this.currentPath.lineTo( x, y ); + + return this; + + }, + + quadraticCurveTo: function ( aCPx, aCPy, aX, aY ) { + + this.currentPath.quadraticCurveTo( aCPx, aCPy, aX, aY ); + + return this; + + }, + + bezierCurveTo: function ( aCP1x, aCP1y, aCP2x, aCP2y, aX, aY ) { + + this.currentPath.bezierCurveTo( aCP1x, aCP1y, aCP2x, aCP2y, aX, aY ); + + return this; + + }, + + splineThru: function ( pts ) { + + this.currentPath.splineThru( pts ); + + return this; + + }, + + toShapes: function ( isCCW, noHoles ) { + + function toShapesNoHoles( inSubpaths ) { + + const shapes = []; + + for ( let i = 0, l = inSubpaths.length; i < l; i ++ ) { + + const tmpPath = inSubpaths[ i ]; + + const tmpShape = new Shape(); + tmpShape.curves = tmpPath.curves; + + shapes.push( tmpShape ); + + } + + return shapes; + + } + + function isPointInsidePolygon( inPt, inPolygon ) { + + const polyLen = inPolygon.length; + + // inPt on polygon contour => immediate success or + // toggling of inside/outside at every single! intersection point of an edge + // with the horizontal line through inPt, left of inPt + // not counting lowerY endpoints of edges and whole edges on that line + let inside = false; + for ( let p = polyLen - 1, q = 0; q < polyLen; p = q ++ ) { + + let edgeLowPt = inPolygon[ p ]; + let edgeHighPt = inPolygon[ q ]; + + let edgeDx = edgeHighPt.x - edgeLowPt.x; + let edgeDy = edgeHighPt.y - edgeLowPt.y; + + if ( Math.abs( edgeDy ) > Number.EPSILON ) { + + // not parallel + if ( edgeDy < 0 ) { + + edgeLowPt = inPolygon[ q ]; edgeDx = - edgeDx; + edgeHighPt = inPolygon[ p ]; edgeDy = - edgeDy; + + } + + if ( ( inPt.y < edgeLowPt.y ) || ( inPt.y > edgeHighPt.y ) ) continue; + + if ( inPt.y === edgeLowPt.y ) { + + if ( inPt.x === edgeLowPt.x ) return true; // inPt is on contour ? + // continue; // no intersection or edgeLowPt => doesn't count !!! + + } else { + + const perpEdge = edgeDy * ( inPt.x - edgeLowPt.x ) - edgeDx * ( inPt.y - edgeLowPt.y ); + if ( perpEdge === 0 ) return true; // inPt is on contour ? + if ( perpEdge < 0 ) continue; + inside = ! inside; // true intersection left of inPt + + } + + } else { + + // parallel or collinear + if ( inPt.y !== edgeLowPt.y ) continue; // parallel + // edge lies on the same horizontal line as inPt + if ( ( ( edgeHighPt.x <= inPt.x ) && ( inPt.x <= edgeLowPt.x ) ) || + ( ( edgeLowPt.x <= inPt.x ) && ( inPt.x <= edgeHighPt.x ) ) ) return true; // inPt: Point on contour ! + // continue; + + } + + } + + return inside; + + } + + const isClockWise = ShapeUtils.isClockWise; + + const subPaths = this.subPaths; + if ( subPaths.length === 0 ) return []; + + if ( noHoles === true ) return toShapesNoHoles( subPaths ); + + + let solid, tmpPath, tmpShape; + const shapes = []; + + if ( subPaths.length === 1 ) { + + tmpPath = subPaths[ 0 ]; + tmpShape = new Shape(); + tmpShape.curves = tmpPath.curves; + shapes.push( tmpShape ); + return shapes; + + } + + let holesFirst = ! isClockWise( subPaths[ 0 ].getPoints() ); + holesFirst = isCCW ? ! holesFirst : holesFirst; + + // console.log("Holes first", holesFirst); + + const betterShapeHoles = []; + const newShapes = []; + let newShapeHoles = []; + let mainIdx = 0; + let tmpPoints; + + newShapes[ mainIdx ] = undefined; + newShapeHoles[ mainIdx ] = []; + + for ( let i = 0, l = subPaths.length; i < l; i ++ ) { + + tmpPath = subPaths[ i ]; + tmpPoints = tmpPath.getPoints(); + solid = isClockWise( tmpPoints ); + solid = isCCW ? ! solid : solid; + + if ( solid ) { + + if ( ( ! holesFirst ) && ( newShapes[ mainIdx ] ) ) mainIdx ++; + + newShapes[ mainIdx ] = { s: new Shape(), p: tmpPoints }; + newShapes[ mainIdx ].s.curves = tmpPath.curves; + + if ( holesFirst ) mainIdx ++; + newShapeHoles[ mainIdx ] = []; + + //console.log('cw', i); + + } else { + + newShapeHoles[ mainIdx ].push( { h: tmpPath, p: tmpPoints[ 0 ] } ); + + //console.log('ccw', i); + + } + + } + + // only Holes? -> probably all Shapes with wrong orientation + if ( ! newShapes[ 0 ] ) return toShapesNoHoles( subPaths ); + + + if ( newShapes.length > 1 ) { + + let ambiguous = false; + const toChange = []; + + for ( let sIdx = 0, sLen = newShapes.length; sIdx < sLen; sIdx ++ ) { + + betterShapeHoles[ sIdx ] = []; + + } + + for ( let sIdx = 0, sLen = newShapes.length; sIdx < sLen; sIdx ++ ) { + + const sho = newShapeHoles[ sIdx ]; + + for ( let hIdx = 0; hIdx < sho.length; hIdx ++ ) { + + const ho = sho[ hIdx ]; + let hole_unassigned = true; + + for ( let s2Idx = 0; s2Idx < newShapes.length; s2Idx ++ ) { + + if ( isPointInsidePolygon( ho.p, newShapes[ s2Idx ].p ) ) { + + if ( sIdx !== s2Idx ) toChange.push( { froms: sIdx, tos: s2Idx, hole: hIdx } ); + if ( hole_unassigned ) { + + hole_unassigned = false; + betterShapeHoles[ s2Idx ].push( ho ); + + } else { + + ambiguous = true; + + } + + } + + } + + if ( hole_unassigned ) { + + betterShapeHoles[ sIdx ].push( ho ); + + } + + } + + } + // console.log("ambiguous: ", ambiguous); + + if ( toChange.length > 0 ) { + + // console.log("to change: ", toChange); + if ( ! ambiguous ) newShapeHoles = betterShapeHoles; + + } + + } + + let tmpHoles; + + for ( let i = 0, il = newShapes.length; i < il; i ++ ) { + + tmpShape = newShapes[ i ].s; + shapes.push( tmpShape ); + tmpHoles = newShapeHoles[ i ]; + + for ( let j = 0, jl = tmpHoles.length; j < jl; j ++ ) { + + tmpShape.holes.push( tmpHoles[ j ].h ); + + } + + } + + //console.log("shape", shapes); + + return shapes; + + } + +} ); + +function Font( data ) { + + this.type = 'Font'; + + this.data = data; + +} + +Object.assign( Font.prototype, { + + isFont: true, + + generateShapes: function ( text, size ) { + + if ( size === undefined ) size = 100; + + const shapes = []; + const paths = createPaths( text, size, this.data ); + + for ( let p = 0, pl = paths.length; p < pl; p ++ ) { + + Array.prototype.push.apply( shapes, paths[ p ].toShapes() ); + + } + + return shapes; + + } + +} ); + +function createPaths( text, size, data ) { + + const chars = Array.from ? Array.from( text ) : String( text ).split( '' ); // workaround for IE11, see #13988 + const scale = size / data.resolution; + const line_height = ( data.boundingBox.yMax - data.boundingBox.yMin + data.underlineThickness ) * scale; + + const paths = []; + + let offsetX = 0, offsetY = 0; + + for ( let i = 0; i < chars.length; i ++ ) { + + const char = chars[ i ]; + + if ( char === '\n' ) { + + offsetX = 0; + offsetY -= line_height; + + } else { + + const ret = createPath( char, scale, offsetX, offsetY, data ); + offsetX += ret.offsetX; + paths.push( ret.path ); + + } + + } + + return paths; + +} + +function createPath( char, scale, offsetX, offsetY, data ) { + + const glyph = data.glyphs[ char ] || data.glyphs[ '?' ]; + + if ( ! glyph ) { + + console.error( 'THREE.Font: character "' + char + '" does not exists in font family ' + data.familyName + '.' ); + + return; + + } + + const path = new ShapePath(); + + let x, y, cpx, cpy, cpx1, cpy1, cpx2, cpy2; + + if ( glyph.o ) { + + const outline = glyph._cachedOutline || ( glyph._cachedOutline = glyph.o.split( ' ' ) ); + + for ( let i = 0, l = outline.length; i < l; ) { + + const action = outline[ i ++ ]; + + switch ( action ) { + + case 'm': // moveTo + + x = outline[ i ++ ] * scale + offsetX; + y = outline[ i ++ ] * scale + offsetY; + + path.moveTo( x, y ); + + break; + + case 'l': // lineTo + + x = outline[ i ++ ] * scale + offsetX; + y = outline[ i ++ ] * scale + offsetY; + + path.lineTo( x, y ); + + break; + + case 'q': // quadraticCurveTo + + cpx = outline[ i ++ ] * scale + offsetX; + cpy = outline[ i ++ ] * scale + offsetY; + cpx1 = outline[ i ++ ] * scale + offsetX; + cpy1 = outline[ i ++ ] * scale + offsetY; + + path.quadraticCurveTo( cpx1, cpy1, cpx, cpy ); + + break; + + case 'b': // bezierCurveTo + + cpx = outline[ i ++ ] * scale + offsetX; + cpy = outline[ i ++ ] * scale + offsetY; + cpx1 = outline[ i ++ ] * scale + offsetX; + cpy1 = outline[ i ++ ] * scale + offsetY; + cpx2 = outline[ i ++ ] * scale + offsetX; + cpy2 = outline[ i ++ ] * scale + offsetY; + + path.bezierCurveTo( cpx1, cpy1, cpx2, cpy2, cpx, cpy ); + + break; + + } + + } + + } + + return { offsetX: glyph.ha * scale, path: path }; + +} + +function FontLoader( manager ) { + + Loader.call( this, manager ); + +} + +FontLoader.prototype = Object.assign( Object.create( Loader.prototype ), { + + constructor: FontLoader, + + load: function ( url, onLoad, onProgress, onError ) { + + const scope = this; + + const loader = new FileLoader( this.manager ); + loader.setPath( this.path ); + loader.setRequestHeader( this.requestHeader ); + loader.setWithCredentials( scope.withCredentials ); + loader.load( url, function ( text ) { + + let json; + + try { + + json = JSON.parse( text ); + + } catch ( e ) { + + console.warn( 'THREE.FontLoader: typeface.js support is being deprecated. Use typeface.json instead.' ); + json = JSON.parse( text.substring( 65, text.length - 2 ) ); + + } + + const font = scope.parse( json ); + + if ( onLoad ) onLoad( font ); + + }, onProgress, onError ); + + }, + + parse: function ( json ) { + + return new Font( json ); + + } + +} ); + +let _context; + +const AudioContext = { + + getContext: function () { + + if ( _context === undefined ) { + + _context = new ( window.AudioContext || window.webkitAudioContext )(); + + } + + return _context; + + }, + + setContext: function ( value ) { + + _context = value; + + } + +}; + +function AudioLoader( manager ) { + + Loader.call( this, manager ); + +} + +AudioLoader.prototype = Object.assign( Object.create( Loader.prototype ), { + + constructor: AudioLoader, + + load: function ( url, onLoad, onProgress, onError ) { + + const scope = this; + + const loader = new FileLoader( scope.manager ); + loader.setResponseType( 'arraybuffer' ); + loader.setPath( scope.path ); + loader.setRequestHeader( scope.requestHeader ); + loader.setWithCredentials( scope.withCredentials ); + loader.load( url, function ( buffer ) { + + try { + + // Create a copy of the buffer. The `decodeAudioData` method + // detaches the buffer when complete, preventing reuse. + const bufferCopy = buffer.slice( 0 ); + + const context = AudioContext.getContext(); + context.decodeAudioData( bufferCopy, function ( audioBuffer ) { + + onLoad( audioBuffer ); + + } ); + + } catch ( e ) { + + if ( onError ) { + + onError( e ); + + } else { + + console.error( e ); + + } + + scope.manager.itemError( url ); + + } + + }, onProgress, onError ); + + } + +} ); + +function HemisphereLightProbe( skyColor, groundColor, intensity ) { + + LightProbe.call( this, undefined, intensity ); + + const color1 = new Color().set( skyColor ); + const color2 = new Color().set( groundColor ); + + const sky = new Vector3( color1.r, color1.g, color1.b ); + const ground = new Vector3( color2.r, color2.g, color2.b ); + + // without extra factor of PI in the shader, should = 1 / Math.sqrt( Math.PI ); + const c0 = Math.sqrt( Math.PI ); + const c1 = c0 * Math.sqrt( 0.75 ); + + this.sh.coefficients[ 0 ].copy( sky ).add( ground ).multiplyScalar( c0 ); + this.sh.coefficients[ 1 ].copy( sky ).sub( ground ).multiplyScalar( c1 ); + +} + +HemisphereLightProbe.prototype = Object.assign( Object.create( LightProbe.prototype ), { + + constructor: HemisphereLightProbe, + + isHemisphereLightProbe: true, + + copy: function ( source ) { // modifying colors not currently supported + + LightProbe.prototype.copy.call( this, source ); + + return this; + + }, + + toJSON: function ( meta ) { + + const data = LightProbe.prototype.toJSON.call( this, meta ); + + // data.sh = this.sh.toArray(); // todo + + return data; + + } + +} ); + +function AmbientLightProbe( color, intensity ) { + + LightProbe.call( this, undefined, intensity ); + + const color1 = new Color().set( color ); + + // without extra factor of PI in the shader, would be 2 / Math.sqrt( Math.PI ); + this.sh.coefficients[ 0 ].set( color1.r, color1.g, color1.b ).multiplyScalar( 2 * Math.sqrt( Math.PI ) ); + +} + +AmbientLightProbe.prototype = Object.assign( Object.create( LightProbe.prototype ), { + + constructor: AmbientLightProbe, + + isAmbientLightProbe: true, + + copy: function ( source ) { // modifying color not currently supported + + LightProbe.prototype.copy.call( this, source ); + + return this; + + }, + + toJSON: function ( meta ) { + + const data = LightProbe.prototype.toJSON.call( this, meta ); + + // data.sh = this.sh.toArray(); // todo + + return data; + + } + +} ); + +const _eyeRight = new Matrix4(); +const _eyeLeft = new Matrix4(); + +function StereoCamera() { + + this.type = 'StereoCamera'; + + this.aspect = 1; + + this.eyeSep = 0.064; + + this.cameraL = new PerspectiveCamera(); + this.cameraL.layers.enable( 1 ); + this.cameraL.matrixAutoUpdate = false; + + this.cameraR = new PerspectiveCamera(); + this.cameraR.layers.enable( 2 ); + this.cameraR.matrixAutoUpdate = false; + + this._cache = { + focus: null, + fov: null, + aspect: null, + near: null, + far: null, + zoom: null, + eyeSep: null + }; + +} + +Object.assign( StereoCamera.prototype, { + + update: function ( camera ) { + + const cache = this._cache; + + const needsUpdate = cache.focus !== camera.focus || cache.fov !== camera.fov || + cache.aspect !== camera.aspect * this.aspect || cache.near !== camera.near || + cache.far !== camera.far || cache.zoom !== camera.zoom || cache.eyeSep !== this.eyeSep; + + if ( needsUpdate ) { + + cache.focus = camera.focus; + cache.fov = camera.fov; + cache.aspect = camera.aspect * this.aspect; + cache.near = camera.near; + cache.far = camera.far; + cache.zoom = camera.zoom; + cache.eyeSep = this.eyeSep; + + // Off-axis stereoscopic effect based on + // http://paulbourke.net/stereographics/stereorender/ + + const projectionMatrix = camera.projectionMatrix.clone(); + const eyeSepHalf = cache.eyeSep / 2; + const eyeSepOnProjection = eyeSepHalf * cache.near / cache.focus; + const ymax = ( cache.near * Math.tan( MathUtils.DEG2RAD * cache.fov * 0.5 ) ) / cache.zoom; + let xmin, xmax; + + // translate xOffset + + _eyeLeft.elements[ 12 ] = - eyeSepHalf; + _eyeRight.elements[ 12 ] = eyeSepHalf; + + // for left eye + + xmin = - ymax * cache.aspect + eyeSepOnProjection; + xmax = ymax * cache.aspect + eyeSepOnProjection; + + projectionMatrix.elements[ 0 ] = 2 * cache.near / ( xmax - xmin ); + projectionMatrix.elements[ 8 ] = ( xmax + xmin ) / ( xmax - xmin ); + + this.cameraL.projectionMatrix.copy( projectionMatrix ); + + // for right eye + + xmin = - ymax * cache.aspect - eyeSepOnProjection; + xmax = ymax * cache.aspect - eyeSepOnProjection; + + projectionMatrix.elements[ 0 ] = 2 * cache.near / ( xmax - xmin ); + projectionMatrix.elements[ 8 ] = ( xmax + xmin ) / ( xmax - xmin ); + + this.cameraR.projectionMatrix.copy( projectionMatrix ); + + } + + this.cameraL.matrixWorld.copy( camera.matrixWorld ).multiply( _eyeLeft ); + this.cameraR.matrixWorld.copy( camera.matrixWorld ).multiply( _eyeRight ); + + } + +} ); + +class Clock { + + constructor( autoStart ) { + + this.autoStart = ( autoStart !== undefined ) ? autoStart : true; + + this.startTime = 0; + this.oldTime = 0; + this.elapsedTime = 0; + + this.running = false; + + } + + start() { + + this.startTime = ( typeof performance === 'undefined' ? Date : performance ).now(); // see #10732 + + this.oldTime = this.startTime; + this.elapsedTime = 0; + this.running = true; + + } + + stop() { + + this.getElapsedTime(); + this.running = false; + this.autoStart = false; + + } + + getElapsedTime() { + + this.getDelta(); + return this.elapsedTime; + + } + + getDelta() { + + let diff = 0; + + if ( this.autoStart && ! this.running ) { + + this.start(); + return 0; + + } + + if ( this.running ) { + + const newTime = ( typeof performance === 'undefined' ? Date : performance ).now(); + + diff = ( newTime - this.oldTime ) / 1000; + this.oldTime = newTime; + + this.elapsedTime += diff; + + } + + return diff; + + } + +} + +const _position$2 = /*@__PURE__*/ new Vector3(); +const _quaternion$3 = /*@__PURE__*/ new Quaternion(); +const _scale$1 = /*@__PURE__*/ new Vector3(); +const _orientation = /*@__PURE__*/ new Vector3(); + +class AudioListener extends Object3D { + + constructor() { + + super(); + + this.type = 'AudioListener'; + + this.context = AudioContext.getContext(); + + this.gain = this.context.createGain(); + this.gain.connect( this.context.destination ); + + this.filter = null; + + this.timeDelta = 0; + + // private + + this._clock = new Clock(); + + } + + getInput() { + + return this.gain; + + } + + removeFilter() { + + if ( this.filter !== null ) { + + this.gain.disconnect( this.filter ); + this.filter.disconnect( this.context.destination ); + this.gain.connect( this.context.destination ); + this.filter = null; + + } + + return this; + + } + + getFilter() { + + return this.filter; + + } + + setFilter( value ) { + + if ( this.filter !== null ) { + + this.gain.disconnect( this.filter ); + this.filter.disconnect( this.context.destination ); + + } else { + + this.gain.disconnect( this.context.destination ); + + } + + this.filter = value; + this.gain.connect( this.filter ); + this.filter.connect( this.context.destination ); + + return this; + + } + + getMasterVolume() { + + return this.gain.gain.value; + + } + + setMasterVolume( value ) { + + this.gain.gain.setTargetAtTime( value, this.context.currentTime, 0.01 ); + + return this; + + } + + updateMatrixWorld( force ) { + + super.updateMatrixWorld( force ); + + const listener = this.context.listener; + const up = this.up; + + this.timeDelta = this._clock.getDelta(); + + this.matrixWorld.decompose( _position$2, _quaternion$3, _scale$1 ); + + _orientation.set( 0, 0, - 1 ).applyQuaternion( _quaternion$3 ); + + if ( listener.positionX ) { + + // code path for Chrome (see #14393) + + const endTime = this.context.currentTime + this.timeDelta; + + listener.positionX.linearRampToValueAtTime( _position$2.x, endTime ); + listener.positionY.linearRampToValueAtTime( _position$2.y, endTime ); + listener.positionZ.linearRampToValueAtTime( _position$2.z, endTime ); + listener.forwardX.linearRampToValueAtTime( _orientation.x, endTime ); + listener.forwardY.linearRampToValueAtTime( _orientation.y, endTime ); + listener.forwardZ.linearRampToValueAtTime( _orientation.z, endTime ); + listener.upX.linearRampToValueAtTime( up.x, endTime ); + listener.upY.linearRampToValueAtTime( up.y, endTime ); + listener.upZ.linearRampToValueAtTime( up.z, endTime ); + + } else { + + listener.setPosition( _position$2.x, _position$2.y, _position$2.z ); + listener.setOrientation( _orientation.x, _orientation.y, _orientation.z, up.x, up.y, up.z ); + + } + + } + +} + +class Audio extends Object3D { + + constructor( listener ) { + + super(); + + this.type = 'Audio'; + + this.listener = listener; + this.context = listener.context; + + this.gain = this.context.createGain(); + this.gain.connect( listener.getInput() ); + + this.autoplay = false; + + this.buffer = null; + this.detune = 0; + this.loop = false; + this.loopStart = 0; + this.loopEnd = 0; + this.offset = 0; + this.duration = undefined; + this.playbackRate = 1; + this.isPlaying = false; + this.hasPlaybackControl = true; + this.source = null; + this.sourceType = 'empty'; + + this._startedAt = 0; + this._progress = 0; + this._connected = false; + + this.filters = []; + + } + + getOutput() { + + return this.gain; + + } + + setNodeSource( audioNode ) { + + this.hasPlaybackControl = false; + this.sourceType = 'audioNode'; + this.source = audioNode; + this.connect(); + + return this; + + } + + setMediaElementSource( mediaElement ) { + + this.hasPlaybackControl = false; + this.sourceType = 'mediaNode'; + this.source = this.context.createMediaElementSource( mediaElement ); + this.connect(); + + return this; + + } + + setMediaStreamSource( mediaStream ) { + + this.hasPlaybackControl = false; + this.sourceType = 'mediaStreamNode'; + this.source = this.context.createMediaStreamSource( mediaStream ); + this.connect(); + + return this; + + } + + setBuffer( audioBuffer ) { + + this.buffer = audioBuffer; + this.sourceType = 'buffer'; + + if ( this.autoplay ) this.play(); + + return this; + + } + + play( delay ) { + + if ( delay === undefined ) delay = 0; + + if ( this.isPlaying === true ) { + + console.warn( 'THREE.Audio: Audio is already playing.' ); + return; + + } + + if ( this.hasPlaybackControl === false ) { + + console.warn( 'THREE.Audio: this Audio has no playback control.' ); + return; + + } + + this._startedAt = this.context.currentTime + delay; + + const source = this.context.createBufferSource(); + source.buffer = this.buffer; + source.loop = this.loop; + source.loopStart = this.loopStart; + source.loopEnd = this.loopEnd; + source.onended = this.onEnded.bind( this ); + source.start( this._startedAt, this._progress + this.offset, this.duration ); + + this.isPlaying = true; + + this.source = source; + + this.setDetune( this.detune ); + this.setPlaybackRate( this.playbackRate ); + + return this.connect(); + + } + + pause() { + + if ( this.hasPlaybackControl === false ) { + + console.warn( 'THREE.Audio: this Audio has no playback control.' ); + return; + + } + + if ( this.isPlaying === true ) { + + // update current progress + + this._progress += Math.max( this.context.currentTime - this._startedAt, 0 ) * this.playbackRate; + + if ( this.loop === true ) { + + // ensure _progress does not exceed duration with looped audios + + this._progress = this._progress % ( this.duration || this.buffer.duration ); + + } + + this.source.stop(); + this.source.onended = null; + + this.isPlaying = false; + + } + + return this; + + } + + stop() { + + if ( this.hasPlaybackControl === false ) { + + console.warn( 'THREE.Audio: this Audio has no playback control.' ); + return; + + } + + this._progress = 0; + + this.source.stop(); + this.source.onended = null; + this.isPlaying = false; + + return this; + + } + + connect() { + + if ( this.filters.length > 0 ) { + + this.source.connect( this.filters[ 0 ] ); + + for ( let i = 1, l = this.filters.length; i < l; i ++ ) { + + this.filters[ i - 1 ].connect( this.filters[ i ] ); + + } + + this.filters[ this.filters.length - 1 ].connect( this.getOutput() ); + + } else { + + this.source.connect( this.getOutput() ); + + } + + this._connected = true; + + return this; + + } + + disconnect() { + + if ( this.filters.length > 0 ) { + + this.source.disconnect( this.filters[ 0 ] ); + + for ( let i = 1, l = this.filters.length; i < l; i ++ ) { + + this.filters[ i - 1 ].disconnect( this.filters[ i ] ); + + } + + this.filters[ this.filters.length - 1 ].disconnect( this.getOutput() ); + + } else { + + this.source.disconnect( this.getOutput() ); + + } + + this._connected = false; + + return this; + + } + + getFilters() { + + return this.filters; + + } + + setFilters( value ) { + + if ( ! value ) value = []; + + if ( this._connected === true ) { + + this.disconnect(); + this.filters = value; + this.connect(); + + } else { + + this.filters = value; + + } + + return this; + + } + + setDetune( value ) { + + this.detune = value; + + if ( this.source.detune === undefined ) return; // only set detune when available + + if ( this.isPlaying === true ) { + + this.source.detune.setTargetAtTime( this.detune, this.context.currentTime, 0.01 ); + + } + + return this; + + } + + getDetune() { + + return this.detune; + + } + + getFilter() { + + return this.getFilters()[ 0 ]; + + } + + setFilter( filter ) { + + return this.setFilters( filter ? [ filter ] : [] ); + + } + + setPlaybackRate( value ) { + + if ( this.hasPlaybackControl === false ) { + + console.warn( 'THREE.Audio: this Audio has no playback control.' ); + return; + + } + + this.playbackRate = value; + + if ( this.isPlaying === true ) { + + this.source.playbackRate.setTargetAtTime( this.playbackRate, this.context.currentTime, 0.01 ); + + } + + return this; + + } + + getPlaybackRate() { + + return this.playbackRate; + + } + + onEnded() { + + this.isPlaying = false; + + } + + getLoop() { + + if ( this.hasPlaybackControl === false ) { + + console.warn( 'THREE.Audio: this Audio has no playback control.' ); + return false; + + } + + return this.loop; + + } + + setLoop( value ) { + + if ( this.hasPlaybackControl === false ) { + + console.warn( 'THREE.Audio: this Audio has no playback control.' ); + return; + + } + + this.loop = value; + + if ( this.isPlaying === true ) { + + this.source.loop = this.loop; + + } + + return this; + + } + + setLoopStart( value ) { + + this.loopStart = value; + + return this; + + } + + setLoopEnd( value ) { + + this.loopEnd = value; + + return this; + + } + + getVolume() { + + return this.gain.gain.value; + + } + + setVolume( value ) { + + this.gain.gain.setTargetAtTime( value, this.context.currentTime, 0.01 ); + + return this; + + } + +} + +const _position$3 = /*@__PURE__*/ new Vector3(); +const _quaternion$4 = /*@__PURE__*/ new Quaternion(); +const _scale$2 = /*@__PURE__*/ new Vector3(); +const _orientation$1 = /*@__PURE__*/ new Vector3(); + +class PositionalAudio extends Audio { + + constructor( listener ) { + + super( listener ); + + this.panner = this.context.createPanner(); + this.panner.panningModel = 'HRTF'; + this.panner.connect( this.gain ); + + } + + getOutput() { + + return this.panner; + + } + + getRefDistance() { + + return this.panner.refDistance; + + } + + setRefDistance( value ) { + + this.panner.refDistance = value; + + return this; + + } + + getRolloffFactor() { + + return this.panner.rolloffFactor; + + } + + setRolloffFactor( value ) { + + this.panner.rolloffFactor = value; + + return this; + + } + + getDistanceModel() { + + return this.panner.distanceModel; + + } + + setDistanceModel( value ) { + + this.panner.distanceModel = value; + + return this; + + } + + getMaxDistance() { + + return this.panner.maxDistance; + + } + + setMaxDistance( value ) { + + this.panner.maxDistance = value; + + return this; + + } + + setDirectionalCone( coneInnerAngle, coneOuterAngle, coneOuterGain ) { + + this.panner.coneInnerAngle = coneInnerAngle; + this.panner.coneOuterAngle = coneOuterAngle; + this.panner.coneOuterGain = coneOuterGain; + + return this; + + } + + updateMatrixWorld( force ) { + + super.updateMatrixWorld( force ); + + if ( this.hasPlaybackControl === true && this.isPlaying === false ) return; + + this.matrixWorld.decompose( _position$3, _quaternion$4, _scale$2 ); + + _orientation$1.set( 0, 0, 1 ).applyQuaternion( _quaternion$4 ); + + const panner = this.panner; + + if ( panner.positionX ) { + + // code path for Chrome and Firefox (see #14393) + + const endTime = this.context.currentTime + this.listener.timeDelta; + + panner.positionX.linearRampToValueAtTime( _position$3.x, endTime ); + panner.positionY.linearRampToValueAtTime( _position$3.y, endTime ); + panner.positionZ.linearRampToValueAtTime( _position$3.z, endTime ); + panner.orientationX.linearRampToValueAtTime( _orientation$1.x, endTime ); + panner.orientationY.linearRampToValueAtTime( _orientation$1.y, endTime ); + panner.orientationZ.linearRampToValueAtTime( _orientation$1.z, endTime ); + + } else { + + panner.setPosition( _position$3.x, _position$3.y, _position$3.z ); + panner.setOrientation( _orientation$1.x, _orientation$1.y, _orientation$1.z ); + + } + + } + +} + +class AudioAnalyser { + + constructor( audio, fftSize ) { + + this.analyser = audio.context.createAnalyser(); + this.analyser.fftSize = fftSize !== undefined ? fftSize : 2048; + + this.data = new Uint8Array( this.analyser.frequencyBinCount ); + + audio.getOutput().connect( this.analyser ); + + } + + + getFrequencyData() { + + this.analyser.getByteFrequencyData( this.data ); + + return this.data; + + } + + getAverageFrequency() { + + let value = 0; + const data = this.getFrequencyData(); + + for ( let i = 0; i < data.length; i ++ ) { + + value += data[ i ]; + + } + + return value / data.length; + + } + +} + +function PropertyMixer( binding, typeName, valueSize ) { + + this.binding = binding; + this.valueSize = valueSize; + + let mixFunction, + mixFunctionAdditive, + setIdentity; + + // buffer layout: [ incoming | accu0 | accu1 | orig | addAccu | (optional work) ] + // + // interpolators can use .buffer as their .result + // the data then goes to 'incoming' + // + // 'accu0' and 'accu1' are used frame-interleaved for + // the cumulative result and are compared to detect + // changes + // + // 'orig' stores the original state of the property + // + // 'add' is used for additive cumulative results + // + // 'work' is optional and is only present for quaternion types. It is used + // to store intermediate quaternion multiplication results + + switch ( typeName ) { + + case 'quaternion': + mixFunction = this._slerp; + mixFunctionAdditive = this._slerpAdditive; + setIdentity = this._setAdditiveIdentityQuaternion; + + this.buffer = new Float64Array( valueSize * 6 ); + this._workIndex = 5; + break; + + case 'string': + case 'bool': + mixFunction = this._select; + + // Use the regular mix function and for additive on these types, + // additive is not relevant for non-numeric types + mixFunctionAdditive = this._select; + + setIdentity = this._setAdditiveIdentityOther; + + this.buffer = new Array( valueSize * 5 ); + break; + + default: + mixFunction = this._lerp; + mixFunctionAdditive = this._lerpAdditive; + setIdentity = this._setAdditiveIdentityNumeric; + + this.buffer = new Float64Array( valueSize * 5 ); + + } + + this._mixBufferRegion = mixFunction; + this._mixBufferRegionAdditive = mixFunctionAdditive; + this._setIdentity = setIdentity; + this._origIndex = 3; + this._addIndex = 4; + + this.cumulativeWeight = 0; + this.cumulativeWeightAdditive = 0; + + this.useCount = 0; + this.referenceCount = 0; + +} + +Object.assign( PropertyMixer.prototype, { + + // accumulate data in the 'incoming' region into 'accu' + accumulate: function ( accuIndex, weight ) { + + // note: happily accumulating nothing when weight = 0, the caller knows + // the weight and shouldn't have made the call in the first place + + const buffer = this.buffer, + stride = this.valueSize, + offset = accuIndex * stride + stride; + + let currentWeight = this.cumulativeWeight; + + if ( currentWeight === 0 ) { + + // accuN := incoming * weight + + for ( let i = 0; i !== stride; ++ i ) { + + buffer[ offset + i ] = buffer[ i ]; + + } + + currentWeight = weight; + + } else { + + // accuN := accuN + incoming * weight + + currentWeight += weight; + const mix = weight / currentWeight; + this._mixBufferRegion( buffer, offset, 0, mix, stride ); + + } + + this.cumulativeWeight = currentWeight; + + }, + + // accumulate data in the 'incoming' region into 'add' + accumulateAdditive: function ( weight ) { + + const buffer = this.buffer, + stride = this.valueSize, + offset = stride * this._addIndex; + + if ( this.cumulativeWeightAdditive === 0 ) { + + // add = identity + + this._setIdentity(); + + } + + // add := add + incoming * weight + + this._mixBufferRegionAdditive( buffer, offset, 0, weight, stride ); + this.cumulativeWeightAdditive += weight; + + }, + + // apply the state of 'accu' to the binding when accus differ + apply: function ( accuIndex ) { + + const stride = this.valueSize, + buffer = this.buffer, + offset = accuIndex * stride + stride, + + weight = this.cumulativeWeight, + weightAdditive = this.cumulativeWeightAdditive, + + binding = this.binding; + + this.cumulativeWeight = 0; + this.cumulativeWeightAdditive = 0; + + if ( weight < 1 ) { + + // accuN := accuN + original * ( 1 - cumulativeWeight ) + + const originalValueOffset = stride * this._origIndex; + + this._mixBufferRegion( + buffer, offset, originalValueOffset, 1 - weight, stride ); + + } + + if ( weightAdditive > 0 ) { + + // accuN := accuN + additive accuN + + this._mixBufferRegionAdditive( buffer, offset, this._addIndex * stride, 1, stride ); + + } + + for ( let i = stride, e = stride + stride; i !== e; ++ i ) { + + if ( buffer[ i ] !== buffer[ i + stride ] ) { + + // value has changed -> update scene graph + + binding.setValue( buffer, offset ); + break; + + } + + } + + }, + + // remember the state of the bound property and copy it to both accus + saveOriginalState: function () { + + const binding = this.binding; + + const buffer = this.buffer, + stride = this.valueSize, + + originalValueOffset = stride * this._origIndex; + + binding.getValue( buffer, originalValueOffset ); + + // accu[0..1] := orig -- initially detect changes against the original + for ( let i = stride, e = originalValueOffset; i !== e; ++ i ) { + + buffer[ i ] = buffer[ originalValueOffset + ( i % stride ) ]; + + } + + // Add to identity for additive + this._setIdentity(); + + this.cumulativeWeight = 0; + this.cumulativeWeightAdditive = 0; + + }, + + // apply the state previously taken via 'saveOriginalState' to the binding + restoreOriginalState: function () { + + const originalValueOffset = this.valueSize * 3; + this.binding.setValue( this.buffer, originalValueOffset ); + + }, + + _setAdditiveIdentityNumeric: function () { + + const startIndex = this._addIndex * this.valueSize; + const endIndex = startIndex + this.valueSize; + + for ( let i = startIndex; i < endIndex; i ++ ) { + + this.buffer[ i ] = 0; + + } + + }, + + _setAdditiveIdentityQuaternion: function () { + + this._setAdditiveIdentityNumeric(); + this.buffer[ this._addIndex * this.valueSize + 3 ] = 1; + + }, + + _setAdditiveIdentityOther: function () { + + const startIndex = this._origIndex * this.valueSize; + const targetIndex = this._addIndex * this.valueSize; + + for ( let i = 0; i < this.valueSize; i ++ ) { + + this.buffer[ targetIndex + i ] = this.buffer[ startIndex + i ]; + + } + + }, + + + // mix functions + + _select: function ( buffer, dstOffset, srcOffset, t, stride ) { + + if ( t >= 0.5 ) { + + for ( let i = 0; i !== stride; ++ i ) { + + buffer[ dstOffset + i ] = buffer[ srcOffset + i ]; + + } + + } + + }, + + _slerp: function ( buffer, dstOffset, srcOffset, t ) { + + Quaternion.slerpFlat( buffer, dstOffset, buffer, dstOffset, buffer, srcOffset, t ); + + }, + + _slerpAdditive: function ( buffer, dstOffset, srcOffset, t, stride ) { + + const workOffset = this._workIndex * stride; + + // Store result in intermediate buffer offset + Quaternion.multiplyQuaternionsFlat( buffer, workOffset, buffer, dstOffset, buffer, srcOffset ); + + // Slerp to the intermediate result + Quaternion.slerpFlat( buffer, dstOffset, buffer, dstOffset, buffer, workOffset, t ); + + }, + + _lerp: function ( buffer, dstOffset, srcOffset, t, stride ) { + + const s = 1 - t; + + for ( let i = 0; i !== stride; ++ i ) { + + const j = dstOffset + i; + + buffer[ j ] = buffer[ j ] * s + buffer[ srcOffset + i ] * t; + + } + + }, + + _lerpAdditive: function ( buffer, dstOffset, srcOffset, t, stride ) { + + for ( let i = 0; i !== stride; ++ i ) { + + const j = dstOffset + i; + + buffer[ j ] = buffer[ j ] + buffer[ srcOffset + i ] * t; + + } + + } + +} ); + +// Characters [].:/ are reserved for track binding syntax. +const _RESERVED_CHARS_RE = '\\[\\]\\.:\\/'; +const _reservedRe = new RegExp( '[' + _RESERVED_CHARS_RE + ']', 'g' ); + +// Attempts to allow node names from any language. ES5's `\w` regexp matches +// only latin characters, and the unicode \p{L} is not yet supported. So +// instead, we exclude reserved characters and match everything else. +const _wordChar = '[^' + _RESERVED_CHARS_RE + ']'; +const _wordCharOrDot = '[^' + _RESERVED_CHARS_RE.replace( '\\.', '' ) + ']'; + +// Parent directories, delimited by '/' or ':'. Currently unused, but must +// be matched to parse the rest of the track name. +const _directoryRe = /((?:WC+[\/:])*)/.source.replace( 'WC', _wordChar ); + +// Target node. May contain word characters (a-zA-Z0-9_) and '.' or '-'. +const _nodeRe = /(WCOD+)?/.source.replace( 'WCOD', _wordCharOrDot ); + +// Object on target node, and accessor. May not contain reserved +// characters. Accessor may contain any character except closing bracket. +const _objectRe = /(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace( 'WC', _wordChar ); + +// Property and accessor. May not contain reserved characters. Accessor may +// contain any non-bracket characters. +const _propertyRe = /\.(WC+)(?:\[(.+)\])?/.source.replace( 'WC', _wordChar ); + +const _trackRe = new RegExp( '' + + '^' + + _directoryRe + + _nodeRe + + _objectRe + + _propertyRe + + '$' +); + +const _supportedObjectNames = [ 'material', 'materials', 'bones' ]; + +function Composite( targetGroup, path, optionalParsedPath ) { + + const parsedPath = optionalParsedPath || PropertyBinding.parseTrackName( path ); + + this._targetGroup = targetGroup; + this._bindings = targetGroup.subscribe_( path, parsedPath ); + +} + +Object.assign( Composite.prototype, { + + getValue: function ( array, offset ) { + + this.bind(); // bind all binding + + const firstValidIndex = this._targetGroup.nCachedObjects_, + binding = this._bindings[ firstValidIndex ]; + + // and only call .getValue on the first + if ( binding !== undefined ) binding.getValue( array, offset ); + + }, + + setValue: function ( array, offset ) { + + const bindings = this._bindings; + + for ( let i = this._targetGroup.nCachedObjects_, n = bindings.length; i !== n; ++ i ) { + + bindings[ i ].setValue( array, offset ); + + } + + }, + + bind: function () { + + const bindings = this._bindings; + + for ( let i = this._targetGroup.nCachedObjects_, n = bindings.length; i !== n; ++ i ) { + + bindings[ i ].bind(); + + } + + }, + + unbind: function () { + + const bindings = this._bindings; + + for ( let i = this._targetGroup.nCachedObjects_, n = bindings.length; i !== n; ++ i ) { + + bindings[ i ].unbind(); + + } + + } + +} ); + + +function PropertyBinding( rootNode, path, parsedPath ) { + + this.path = path; + this.parsedPath = parsedPath || PropertyBinding.parseTrackName( path ); + + this.node = PropertyBinding.findNode( rootNode, this.parsedPath.nodeName ) || rootNode; + + this.rootNode = rootNode; + +} + +Object.assign( PropertyBinding, { + + Composite: Composite, + + create: function ( root, path, parsedPath ) { + + if ( ! ( root && root.isAnimationObjectGroup ) ) { + + return new PropertyBinding( root, path, parsedPath ); + + } else { + + return new PropertyBinding.Composite( root, path, parsedPath ); + + } + + }, + + /** + * Replaces spaces with underscores and removes unsupported characters from + * node names, to ensure compatibility with parseTrackName(). + * + * @param {string} name Node name to be sanitized. + * @return {string} + */ + sanitizeNodeName: function ( name ) { + + return name.replace( /\s/g, '_' ).replace( _reservedRe, '' ); + + }, + + parseTrackName: function ( trackName ) { + + const matches = _trackRe.exec( trackName ); + + if ( ! matches ) { + + throw new Error( 'PropertyBinding: Cannot parse trackName: ' + trackName ); + + } + + const results = { + // directoryName: matches[ 1 ], // (tschw) currently unused + nodeName: matches[ 2 ], + objectName: matches[ 3 ], + objectIndex: matches[ 4 ], + propertyName: matches[ 5 ], // required + propertyIndex: matches[ 6 ] + }; + + const lastDot = results.nodeName && results.nodeName.lastIndexOf( '.' ); + + if ( lastDot !== undefined && lastDot !== - 1 ) { + + const objectName = results.nodeName.substring( lastDot + 1 ); + + // Object names must be checked against an allowlist. Otherwise, there + // is no way to parse 'foo.bar.baz': 'baz' must be a property, but + // 'bar' could be the objectName, or part of a nodeName (which can + // include '.' characters). + if ( _supportedObjectNames.indexOf( objectName ) !== - 1 ) { + + results.nodeName = results.nodeName.substring( 0, lastDot ); + results.objectName = objectName; + + } + + } + + if ( results.propertyName === null || results.propertyName.length === 0 ) { + + throw new Error( 'PropertyBinding: can not parse propertyName from trackName: ' + trackName ); + + } + + return results; + + }, + + findNode: function ( root, nodeName ) { + + if ( ! nodeName || nodeName === "" || nodeName === "." || nodeName === - 1 || nodeName === root.name || nodeName === root.uuid ) { + + return root; + + } + + // search into skeleton bones. + if ( root.skeleton ) { + + const bone = root.skeleton.getBoneByName( nodeName ); + + if ( bone !== undefined ) { + + return bone; + + } + + } + + // search into node subtree. + if ( root.children ) { + + const searchNodeSubtree = function ( children ) { + + for ( let i = 0; i < children.length; i ++ ) { + + const childNode = children[ i ]; + + if ( childNode.name === nodeName || childNode.uuid === nodeName ) { + + return childNode; + + } + + const result = searchNodeSubtree( childNode.children ); + + if ( result ) return result; + + } + + return null; + + }; + + const subTreeNode = searchNodeSubtree( root.children ); + + if ( subTreeNode ) { + + return subTreeNode; + + } + + } + + return null; + + } + +} ); + +Object.assign( PropertyBinding.prototype, { // prototype, continued + + // these are used to "bind" a nonexistent property + _getValue_unavailable: function () {}, + _setValue_unavailable: function () {}, + + BindingType: { + Direct: 0, + EntireArray: 1, + ArrayElement: 2, + HasFromToArray: 3 + }, + + Versioning: { + None: 0, + NeedsUpdate: 1, + MatrixWorldNeedsUpdate: 2 + }, + + GetterByBindingType: [ + + function getValue_direct( buffer, offset ) { + + buffer[ offset ] = this.node[ this.propertyName ]; + + }, + + function getValue_array( buffer, offset ) { + + const source = this.resolvedProperty; + + for ( let i = 0, n = source.length; i !== n; ++ i ) { + + buffer[ offset ++ ] = source[ i ]; + + } + + }, + + function getValue_arrayElement( buffer, offset ) { + + buffer[ offset ] = this.resolvedProperty[ this.propertyIndex ]; + + }, + + function getValue_toArray( buffer, offset ) { + + this.resolvedProperty.toArray( buffer, offset ); + + } + + ], + + SetterByBindingTypeAndVersioning: [ + + [ + // Direct + + function setValue_direct( buffer, offset ) { + + this.targetObject[ this.propertyName ] = buffer[ offset ]; + + }, + + function setValue_direct_setNeedsUpdate( buffer, offset ) { + + this.targetObject[ this.propertyName ] = buffer[ offset ]; + this.targetObject.needsUpdate = true; + + }, + + function setValue_direct_setMatrixWorldNeedsUpdate( buffer, offset ) { + + this.targetObject[ this.propertyName ] = buffer[ offset ]; + this.targetObject.matrixWorldNeedsUpdate = true; + + } + + ], [ + + // EntireArray + + function setValue_array( buffer, offset ) { + + const dest = this.resolvedProperty; + + for ( let i = 0, n = dest.length; i !== n; ++ i ) { + + dest[ i ] = buffer[ offset ++ ]; + + } + + }, + + function setValue_array_setNeedsUpdate( buffer, offset ) { + + const dest = this.resolvedProperty; + + for ( let i = 0, n = dest.length; i !== n; ++ i ) { + + dest[ i ] = buffer[ offset ++ ]; + + } + + this.targetObject.needsUpdate = true; + + }, + + function setValue_array_setMatrixWorldNeedsUpdate( buffer, offset ) { + + const dest = this.resolvedProperty; + + for ( let i = 0, n = dest.length; i !== n; ++ i ) { + + dest[ i ] = buffer[ offset ++ ]; + + } + + this.targetObject.matrixWorldNeedsUpdate = true; + + } + + ], [ + + // ArrayElement + + function setValue_arrayElement( buffer, offset ) { + + this.resolvedProperty[ this.propertyIndex ] = buffer[ offset ]; + + }, + + function setValue_arrayElement_setNeedsUpdate( buffer, offset ) { + + this.resolvedProperty[ this.propertyIndex ] = buffer[ offset ]; + this.targetObject.needsUpdate = true; + + }, + + function setValue_arrayElement_setMatrixWorldNeedsUpdate( buffer, offset ) { + + this.resolvedProperty[ this.propertyIndex ] = buffer[ offset ]; + this.targetObject.matrixWorldNeedsUpdate = true; + + } + + ], [ + + // HasToFromArray + + function setValue_fromArray( buffer, offset ) { + + this.resolvedProperty.fromArray( buffer, offset ); + + }, + + function setValue_fromArray_setNeedsUpdate( buffer, offset ) { + + this.resolvedProperty.fromArray( buffer, offset ); + this.targetObject.needsUpdate = true; + + }, + + function setValue_fromArray_setMatrixWorldNeedsUpdate( buffer, offset ) { + + this.resolvedProperty.fromArray( buffer, offset ); + this.targetObject.matrixWorldNeedsUpdate = true; + + } + + ] + + ], + + getValue: function getValue_unbound( targetArray, offset ) { + + this.bind(); + this.getValue( targetArray, offset ); + + // Note: This class uses a State pattern on a per-method basis: + // 'bind' sets 'this.getValue' / 'setValue' and shadows the + // prototype version of these methods with one that represents + // the bound state. When the property is not found, the methods + // become no-ops. + + }, + + setValue: function getValue_unbound( sourceArray, offset ) { + + this.bind(); + this.setValue( sourceArray, offset ); + + }, + + // create getter / setter pair for a property in the scene graph + bind: function () { + + let targetObject = this.node; + const parsedPath = this.parsedPath; + + const objectName = parsedPath.objectName; + const propertyName = parsedPath.propertyName; + let propertyIndex = parsedPath.propertyIndex; + + if ( ! targetObject ) { + + targetObject = PropertyBinding.findNode( this.rootNode, parsedPath.nodeName ) || this.rootNode; + + this.node = targetObject; + + } + + // set fail state so we can just 'return' on error + this.getValue = this._getValue_unavailable; + this.setValue = this._setValue_unavailable; + + // ensure there is a value node + if ( ! targetObject ) { + + console.error( 'THREE.PropertyBinding: Trying to update node for track: ' + this.path + ' but it wasn\'t found.' ); + return; + + } + + if ( objectName ) { + + let objectIndex = parsedPath.objectIndex; + + // special cases were we need to reach deeper into the hierarchy to get the face materials.... + switch ( objectName ) { + + case 'materials': + + if ( ! targetObject.material ) { + + console.error( 'THREE.PropertyBinding: Can not bind to material as node does not have a material.', this ); + return; + + } + + if ( ! targetObject.material.materials ) { + + console.error( 'THREE.PropertyBinding: Can not bind to material.materials as node.material does not have a materials array.', this ); + return; + + } + + targetObject = targetObject.material.materials; + + break; + + case 'bones': + + if ( ! targetObject.skeleton ) { + + console.error( 'THREE.PropertyBinding: Can not bind to bones as node does not have a skeleton.', this ); + return; + + } + + // potential future optimization: skip this if propertyIndex is already an integer + // and convert the integer string to a true integer. + + targetObject = targetObject.skeleton.bones; + + // support resolving morphTarget names into indices. + for ( let i = 0; i < targetObject.length; i ++ ) { + + if ( targetObject[ i ].name === objectIndex ) { + + objectIndex = i; + break; + + } + + } + + break; + + default: + + if ( targetObject[ objectName ] === undefined ) { + + console.error( 'THREE.PropertyBinding: Can not bind to objectName of node undefined.', this ); + return; + + } + + targetObject = targetObject[ objectName ]; + + } + + + if ( objectIndex !== undefined ) { + + if ( targetObject[ objectIndex ] === undefined ) { + + console.error( 'THREE.PropertyBinding: Trying to bind to objectIndex of objectName, but is undefined.', this, targetObject ); + return; + + } + + targetObject = targetObject[ objectIndex ]; + + } + + } + + // resolve property + const nodeProperty = targetObject[ propertyName ]; + + if ( nodeProperty === undefined ) { + + const nodeName = parsedPath.nodeName; + + console.error( 'THREE.PropertyBinding: Trying to update property for track: ' + nodeName + + '.' + propertyName + ' but it wasn\'t found.', targetObject ); + return; + + } + + // determine versioning scheme + let versioning = this.Versioning.None; + + this.targetObject = targetObject; + + if ( targetObject.needsUpdate !== undefined ) { // material + + versioning = this.Versioning.NeedsUpdate; + + } else if ( targetObject.matrixWorldNeedsUpdate !== undefined ) { // node transform + + versioning = this.Versioning.MatrixWorldNeedsUpdate; + + } + + // determine how the property gets bound + let bindingType = this.BindingType.Direct; + + if ( propertyIndex !== undefined ) { + + // access a sub element of the property array (only primitives are supported right now) + + if ( propertyName === "morphTargetInfluences" ) { + + // potential optimization, skip this if propertyIndex is already an integer, and convert the integer string to a true integer. + + // support resolving morphTarget names into indices. + if ( ! targetObject.geometry ) { + + console.error( 'THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.', this ); + return; + + } + + if ( targetObject.geometry.isBufferGeometry ) { + + if ( ! targetObject.geometry.morphAttributes ) { + + console.error( 'THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.morphAttributes.', this ); + return; + + } + + if ( targetObject.morphTargetDictionary[ propertyIndex ] !== undefined ) { + + propertyIndex = targetObject.morphTargetDictionary[ propertyIndex ]; + + } + + + } else { + + console.error( 'THREE.PropertyBinding: Can not bind to morphTargetInfluences on THREE.Geometry. Use THREE.BufferGeometry instead.', this ); + return; + + } + + } + + bindingType = this.BindingType.ArrayElement; + + this.resolvedProperty = nodeProperty; + this.propertyIndex = propertyIndex; + + } else if ( nodeProperty.fromArray !== undefined && nodeProperty.toArray !== undefined ) { + + // must use copy for Object3D.Euler/Quaternion + + bindingType = this.BindingType.HasFromToArray; + + this.resolvedProperty = nodeProperty; + + } else if ( Array.isArray( nodeProperty ) ) { + + bindingType = this.BindingType.EntireArray; + + this.resolvedProperty = nodeProperty; + + } else { + + this.propertyName = propertyName; + + } + + // select getter / setter + this.getValue = this.GetterByBindingType[ bindingType ]; + this.setValue = this.SetterByBindingTypeAndVersioning[ bindingType ][ versioning ]; + + }, + + unbind: function () { + + this.node = null; + + // back to the prototype version of getValue / setValue + // note: avoiding to mutate the shape of 'this' via 'delete' + this.getValue = this._getValue_unbound; + this.setValue = this._setValue_unbound; + + } + +} ); + +// DECLARE ALIAS AFTER assign prototype +Object.assign( PropertyBinding.prototype, { + + // initial state of these methods that calls 'bind' + _getValue_unbound: PropertyBinding.prototype.getValue, + _setValue_unbound: PropertyBinding.prototype.setValue, + +} ); + +/** + * + * A group of objects that receives a shared animation state. + * + * Usage: + * + * - Add objects you would otherwise pass as 'root' to the + * constructor or the .clipAction method of AnimationMixer. + * + * - Instead pass this object as 'root'. + * + * - You can also add and remove objects later when the mixer + * is running. + * + * Note: + * + * Objects of this class appear as one object to the mixer, + * so cache control of the individual objects must be done + * on the group. + * + * Limitation: + * + * - The animated properties must be compatible among the + * all objects in the group. + * + * - A single property can either be controlled through a + * target group or directly, but not both. + */ + +function AnimationObjectGroup() { + + this.uuid = MathUtils.generateUUID(); + + // cached objects followed by the active ones + this._objects = Array.prototype.slice.call( arguments ); + + this.nCachedObjects_ = 0; // threshold + // note: read by PropertyBinding.Composite + + const indices = {}; + this._indicesByUUID = indices; // for bookkeeping + + for ( let i = 0, n = arguments.length; i !== n; ++ i ) { + + indices[ arguments[ i ].uuid ] = i; + + } + + this._paths = []; // inside: string + this._parsedPaths = []; // inside: { we don't care, here } + this._bindings = []; // inside: Array< PropertyBinding > + this._bindingsIndicesByPath = {}; // inside: indices in these arrays + + const scope = this; + + this.stats = { + + objects: { + get total() { + + return scope._objects.length; + + }, + get inUse() { + + return this.total - scope.nCachedObjects_; + + } + }, + get bindingsPerObject() { + + return scope._bindings.length; + + } + + }; + +} + +Object.assign( AnimationObjectGroup.prototype, { + + isAnimationObjectGroup: true, + + add: function () { + + const objects = this._objects, + indicesByUUID = this._indicesByUUID, + paths = this._paths, + parsedPaths = this._parsedPaths, + bindings = this._bindings, + nBindings = bindings.length; + + let knownObject = undefined, + nObjects = objects.length, + nCachedObjects = this.nCachedObjects_; + + for ( let i = 0, n = arguments.length; i !== n; ++ i ) { + + const object = arguments[ i ], + uuid = object.uuid; + let index = indicesByUUID[ uuid ]; + + if ( index === undefined ) { + + // unknown object -> add it to the ACTIVE region + + index = nObjects ++; + indicesByUUID[ uuid ] = index; + objects.push( object ); + + // accounting is done, now do the same for all bindings + + for ( let j = 0, m = nBindings; j !== m; ++ j ) { + + bindings[ j ].push( new PropertyBinding( object, paths[ j ], parsedPaths[ j ] ) ); + + } + + } else if ( index < nCachedObjects ) { + + knownObject = objects[ index ]; + + // move existing object to the ACTIVE region + + const firstActiveIndex = -- nCachedObjects, + lastCachedObject = objects[ firstActiveIndex ]; + + indicesByUUID[ lastCachedObject.uuid ] = index; + objects[ index ] = lastCachedObject; + + indicesByUUID[ uuid ] = firstActiveIndex; + objects[ firstActiveIndex ] = object; + + // accounting is done, now do the same for all bindings + + for ( let j = 0, m = nBindings; j !== m; ++ j ) { + + const bindingsForPath = bindings[ j ], + lastCached = bindingsForPath[ firstActiveIndex ]; + + let binding = bindingsForPath[ index ]; + + bindingsForPath[ index ] = lastCached; + + if ( binding === undefined ) { + + // since we do not bother to create new bindings + // for objects that are cached, the binding may + // or may not exist + + binding = new PropertyBinding( object, paths[ j ], parsedPaths[ j ] ); + + } + + bindingsForPath[ firstActiveIndex ] = binding; + + } + + } else if ( objects[ index ] !== knownObject ) { + + console.error( 'THREE.AnimationObjectGroup: Different objects with the same UUID ' + + 'detected. Clean the caches or recreate your infrastructure when reloading scenes.' ); + + } // else the object is already where we want it to be + + } // for arguments + + this.nCachedObjects_ = nCachedObjects; + + }, + + remove: function () { + + const objects = this._objects, + indicesByUUID = this._indicesByUUID, + bindings = this._bindings, + nBindings = bindings.length; + + let nCachedObjects = this.nCachedObjects_; + + for ( let i = 0, n = arguments.length; i !== n; ++ i ) { + + const object = arguments[ i ], + uuid = object.uuid, + index = indicesByUUID[ uuid ]; + + if ( index !== undefined && index >= nCachedObjects ) { + + // move existing object into the CACHED region + + const lastCachedIndex = nCachedObjects ++, + firstActiveObject = objects[ lastCachedIndex ]; + + indicesByUUID[ firstActiveObject.uuid ] = index; + objects[ index ] = firstActiveObject; + + indicesByUUID[ uuid ] = lastCachedIndex; + objects[ lastCachedIndex ] = object; + + // accounting is done, now do the same for all bindings + + for ( let j = 0, m = nBindings; j !== m; ++ j ) { + + const bindingsForPath = bindings[ j ], + firstActive = bindingsForPath[ lastCachedIndex ], + binding = bindingsForPath[ index ]; + + bindingsForPath[ index ] = firstActive; + bindingsForPath[ lastCachedIndex ] = binding; + + } + + } + + } // for arguments + + this.nCachedObjects_ = nCachedObjects; + + }, + + // remove & forget + uncache: function () { + + const objects = this._objects, + indicesByUUID = this._indicesByUUID, + bindings = this._bindings, + nBindings = bindings.length; + + let nCachedObjects = this.nCachedObjects_, + nObjects = objects.length; + + for ( let i = 0, n = arguments.length; i !== n; ++ i ) { + + const object = arguments[ i ], + uuid = object.uuid, + index = indicesByUUID[ uuid ]; + + if ( index !== undefined ) { + + delete indicesByUUID[ uuid ]; + + if ( index < nCachedObjects ) { + + // object is cached, shrink the CACHED region + + const firstActiveIndex = -- nCachedObjects, + lastCachedObject = objects[ firstActiveIndex ], + lastIndex = -- nObjects, + lastObject = objects[ lastIndex ]; + + // last cached object takes this object's place + indicesByUUID[ lastCachedObject.uuid ] = index; + objects[ index ] = lastCachedObject; + + // last object goes to the activated slot and pop + indicesByUUID[ lastObject.uuid ] = firstActiveIndex; + objects[ firstActiveIndex ] = lastObject; + objects.pop(); + + // accounting is done, now do the same for all bindings + + for ( let j = 0, m = nBindings; j !== m; ++ j ) { + + const bindingsForPath = bindings[ j ], + lastCached = bindingsForPath[ firstActiveIndex ], + last = bindingsForPath[ lastIndex ]; + + bindingsForPath[ index ] = lastCached; + bindingsForPath[ firstActiveIndex ] = last; + bindingsForPath.pop(); + + } + + } else { + + // object is active, just swap with the last and pop + + const lastIndex = -- nObjects, + lastObject = objects[ lastIndex ]; + + indicesByUUID[ lastObject.uuid ] = index; + objects[ index ] = lastObject; + objects.pop(); + + // accounting is done, now do the same for all bindings + + for ( let j = 0, m = nBindings; j !== m; ++ j ) { + + const bindingsForPath = bindings[ j ]; + + bindingsForPath[ index ] = bindingsForPath[ lastIndex ]; + bindingsForPath.pop(); + + } + + } // cached or active + + } // if object is known + + } // for arguments + + this.nCachedObjects_ = nCachedObjects; + + }, + + // Internal interface used by befriended PropertyBinding.Composite: + + subscribe_: function ( path, parsedPath ) { + + // returns an array of bindings for the given path that is changed + // according to the contained objects in the group + + const indicesByPath = this._bindingsIndicesByPath; + let index = indicesByPath[ path ]; + const bindings = this._bindings; + + if ( index !== undefined ) return bindings[ index ]; + + const paths = this._paths, + parsedPaths = this._parsedPaths, + objects = this._objects, + nObjects = objects.length, + nCachedObjects = this.nCachedObjects_, + bindingsForPath = new Array( nObjects ); + + index = bindings.length; + + indicesByPath[ path ] = index; + + paths.push( path ); + parsedPaths.push( parsedPath ); + bindings.push( bindingsForPath ); + + for ( let i = nCachedObjects, n = objects.length; i !== n; ++ i ) { + + const object = objects[ i ]; + bindingsForPath[ i ] = new PropertyBinding( object, path, parsedPath ); + + } + + return bindingsForPath; + + }, + + unsubscribe_: function ( path ) { + + // tells the group to forget about a property path and no longer + // update the array previously obtained with 'subscribe_' + + const indicesByPath = this._bindingsIndicesByPath, + index = indicesByPath[ path ]; + + if ( index !== undefined ) { + + const paths = this._paths, + parsedPaths = this._parsedPaths, + bindings = this._bindings, + lastBindingsIndex = bindings.length - 1, + lastBindings = bindings[ lastBindingsIndex ], + lastBindingsPath = path[ lastBindingsIndex ]; + + indicesByPath[ lastBindingsPath ] = index; + + bindings[ index ] = lastBindings; + bindings.pop(); + + parsedPaths[ index ] = parsedPaths[ lastBindingsIndex ]; + parsedPaths.pop(); + + paths[ index ] = paths[ lastBindingsIndex ]; + paths.pop(); + + } + + } + +} ); + +class AnimationAction { + + constructor( mixer, clip, localRoot, blendMode ) { + + this._mixer = mixer; + this._clip = clip; + this._localRoot = localRoot || null; + this.blendMode = blendMode || clip.blendMode; + + const tracks = clip.tracks, + nTracks = tracks.length, + interpolants = new Array( nTracks ); + + const interpolantSettings = { + endingStart: ZeroCurvatureEnding, + endingEnd: ZeroCurvatureEnding + }; + + for ( let i = 0; i !== nTracks; ++ i ) { + + const interpolant = tracks[ i ].createInterpolant( null ); + interpolants[ i ] = interpolant; + interpolant.settings = interpolantSettings; + + } + + this._interpolantSettings = interpolantSettings; + + this._interpolants = interpolants; // bound by the mixer + + // inside: PropertyMixer (managed by the mixer) + this._propertyBindings = new Array( nTracks ); + + this._cacheIndex = null; // for the memory manager + this._byClipCacheIndex = null; // for the memory manager + + this._timeScaleInterpolant = null; + this._weightInterpolant = null; + + this.loop = LoopRepeat; + this._loopCount = - 1; + + // global mixer time when the action is to be started + // it's set back to 'null' upon start of the action + this._startTime = null; + + // scaled local time of the action + // gets clamped or wrapped to 0..clip.duration according to loop + this.time = 0; + + this.timeScale = 1; + this._effectiveTimeScale = 1; + + this.weight = 1; + this._effectiveWeight = 1; + + this.repetitions = Infinity; // no. of repetitions when looping + + this.paused = false; // true -> zero effective time scale + this.enabled = true; // false -> zero effective weight + + this.clampWhenFinished = false;// keep feeding the last frame? + + this.zeroSlopeAtStart = true;// for smooth interpolation w/o separate + this.zeroSlopeAtEnd = true;// clips for start, loop and end + + } + + // State & Scheduling + + play() { + + this._mixer._activateAction( this ); + + return this; + + } + + stop() { + + this._mixer._deactivateAction( this ); + + return this.reset(); + + } + + reset() { + + this.paused = false; + this.enabled = true; + + this.time = 0; // restart clip + this._loopCount = - 1;// forget previous loops + this._startTime = null;// forget scheduling + + return this.stopFading().stopWarping(); + + } + + isRunning() { + + return this.enabled && ! this.paused && this.timeScale !== 0 && + this._startTime === null && this._mixer._isActiveAction( this ); + + } + + // return true when play has been called + isScheduled() { + + return this._mixer._isActiveAction( this ); + + } + + startAt( time ) { + + this._startTime = time; + + return this; + + } + + setLoop( mode, repetitions ) { + + this.loop = mode; + this.repetitions = repetitions; + + return this; + + } + + // Weight + + // set the weight stopping any scheduled fading + // although .enabled = false yields an effective weight of zero, this + // method does *not* change .enabled, because it would be confusing + setEffectiveWeight( weight ) { + + this.weight = weight; + + // note: same logic as when updated at runtime + this._effectiveWeight = this.enabled ? weight : 0; + + return this.stopFading(); + + } + + // return the weight considering fading and .enabled + getEffectiveWeight() { + + return this._effectiveWeight; + + } + + fadeIn( duration ) { + + return this._scheduleFading( duration, 0, 1 ); + + } + + fadeOut( duration ) { + + return this._scheduleFading( duration, 1, 0 ); + + } + + crossFadeFrom( fadeOutAction, duration, warp ) { + + fadeOutAction.fadeOut( duration ); + this.fadeIn( duration ); + + if ( warp ) { + + const fadeInDuration = this._clip.duration, + fadeOutDuration = fadeOutAction._clip.duration, + + startEndRatio = fadeOutDuration / fadeInDuration, + endStartRatio = fadeInDuration / fadeOutDuration; + + fadeOutAction.warp( 1.0, startEndRatio, duration ); + this.warp( endStartRatio, 1.0, duration ); + + } + + return this; + + } + + crossFadeTo( fadeInAction, duration, warp ) { + + return fadeInAction.crossFadeFrom( this, duration, warp ); + + } + + stopFading() { + + const weightInterpolant = this._weightInterpolant; + + if ( weightInterpolant !== null ) { + + this._weightInterpolant = null; + this._mixer._takeBackControlInterpolant( weightInterpolant ); + + } + + return this; + + } + + // Time Scale Control + + // set the time scale stopping any scheduled warping + // although .paused = true yields an effective time scale of zero, this + // method does *not* change .paused, because it would be confusing + setEffectiveTimeScale( timeScale ) { + + this.timeScale = timeScale; + this._effectiveTimeScale = this.paused ? 0 : timeScale; + + return this.stopWarping(); + + } + + // return the time scale considering warping and .paused + getEffectiveTimeScale() { + + return this._effectiveTimeScale; + + } + + setDuration( duration ) { + + this.timeScale = this._clip.duration / duration; + + return this.stopWarping(); + + } + + syncWith( action ) { + + this.time = action.time; + this.timeScale = action.timeScale; + + return this.stopWarping(); + + } + + halt( duration ) { + + return this.warp( this._effectiveTimeScale, 0, duration ); + + } + + warp( startTimeScale, endTimeScale, duration ) { + + const mixer = this._mixer, + now = mixer.time, + timeScale = this.timeScale; + + let interpolant = this._timeScaleInterpolant; + + if ( interpolant === null ) { + + interpolant = mixer._lendControlInterpolant(); + this._timeScaleInterpolant = interpolant; + + } + + const times = interpolant.parameterPositions, + values = interpolant.sampleValues; + + times[ 0 ] = now; + times[ 1 ] = now + duration; + + values[ 0 ] = startTimeScale / timeScale; + values[ 1 ] = endTimeScale / timeScale; + + return this; + + } + + stopWarping() { + + const timeScaleInterpolant = this._timeScaleInterpolant; + + if ( timeScaleInterpolant !== null ) { + + this._timeScaleInterpolant = null; + this._mixer._takeBackControlInterpolant( timeScaleInterpolant ); + + } + + return this; + + } + + // Object Accessors + + getMixer() { + + return this._mixer; + + } + + getClip() { + + return this._clip; + + } + + getRoot() { + + return this._localRoot || this._mixer._root; + + } + + // Interna + + _update( time, deltaTime, timeDirection, accuIndex ) { + + // called by the mixer + + if ( ! this.enabled ) { + + // call ._updateWeight() to update ._effectiveWeight + + this._updateWeight( time ); + return; + + } + + const startTime = this._startTime; + + if ( startTime !== null ) { + + // check for scheduled start of action + + const timeRunning = ( time - startTime ) * timeDirection; + if ( timeRunning < 0 || timeDirection === 0 ) { + + return; // yet to come / don't decide when delta = 0 + + } + + // start + + this._startTime = null; // unschedule + deltaTime = timeDirection * timeRunning; + + } + + // apply time scale and advance time + + deltaTime *= this._updateTimeScale( time ); + const clipTime = this._updateTime( deltaTime ); + + // note: _updateTime may disable the action resulting in + // an effective weight of 0 + + const weight = this._updateWeight( time ); + + if ( weight > 0 ) { + + const interpolants = this._interpolants; + const propertyMixers = this._propertyBindings; + + switch ( this.blendMode ) { + + case AdditiveAnimationBlendMode: + + for ( let j = 0, m = interpolants.length; j !== m; ++ j ) { + + interpolants[ j ].evaluate( clipTime ); + propertyMixers[ j ].accumulateAdditive( weight ); + + } + + break; + + case NormalAnimationBlendMode: + default: + + for ( let j = 0, m = interpolants.length; j !== m; ++ j ) { + + interpolants[ j ].evaluate( clipTime ); + propertyMixers[ j ].accumulate( accuIndex, weight ); + + } + + } + + } + + } + + _updateWeight( time ) { + + let weight = 0; + + if ( this.enabled ) { + + weight = this.weight; + const interpolant = this._weightInterpolant; + + if ( interpolant !== null ) { + + const interpolantValue = interpolant.evaluate( time )[ 0 ]; + + weight *= interpolantValue; + + if ( time > interpolant.parameterPositions[ 1 ] ) { + + this.stopFading(); + + if ( interpolantValue === 0 ) { + + // faded out, disable + this.enabled = false; + + } + + } + + } + + } + + this._effectiveWeight = weight; + return weight; + + } + + _updateTimeScale( time ) { + + let timeScale = 0; + + if ( ! this.paused ) { + + timeScale = this.timeScale; + + const interpolant = this._timeScaleInterpolant; + + if ( interpolant !== null ) { + + const interpolantValue = interpolant.evaluate( time )[ 0 ]; + + timeScale *= interpolantValue; + + if ( time > interpolant.parameterPositions[ 1 ] ) { + + this.stopWarping(); + + if ( timeScale === 0 ) { + + // motion has halted, pause + this.paused = true; + + } else { + + // warp done - apply final time scale + this.timeScale = timeScale; + + } + + } + + } + + } + + this._effectiveTimeScale = timeScale; + return timeScale; + + } + + _updateTime( deltaTime ) { + + const duration = this._clip.duration; + const loop = this.loop; + + let time = this.time + deltaTime; + let loopCount = this._loopCount; + + const pingPong = ( loop === LoopPingPong ); + + if ( deltaTime === 0 ) { + + if ( loopCount === - 1 ) return time; + + return ( pingPong && ( loopCount & 1 ) === 1 ) ? duration - time : time; + + } + + if ( loop === LoopOnce ) { + + if ( loopCount === - 1 ) { + + // just started + + this._loopCount = 0; + this._setEndings( true, true, false ); + + } + + handle_stop: { + + if ( time >= duration ) { + + time = duration; + + } else if ( time < 0 ) { + + time = 0; + + } else { + + this.time = time; + + break handle_stop; + + } + + if ( this.clampWhenFinished ) this.paused = true; + else this.enabled = false; + + this.time = time; + + this._mixer.dispatchEvent( { + type: 'finished', action: this, + direction: deltaTime < 0 ? - 1 : 1 + } ); + + } + + } else { // repetitive Repeat or PingPong + + if ( loopCount === - 1 ) { + + // just started + + if ( deltaTime >= 0 ) { + + loopCount = 0; + + this._setEndings( true, this.repetitions === 0, pingPong ); + + } else { + + // when looping in reverse direction, the initial + // transition through zero counts as a repetition, + // so leave loopCount at -1 + + this._setEndings( this.repetitions === 0, true, pingPong ); + + } + + } + + if ( time >= duration || time < 0 ) { + + // wrap around + + const loopDelta = Math.floor( time / duration ); // signed + time -= duration * loopDelta; + + loopCount += Math.abs( loopDelta ); + + const pending = this.repetitions - loopCount; + + if ( pending <= 0 ) { + + // have to stop (switch state, clamp time, fire event) + + if ( this.clampWhenFinished ) this.paused = true; + else this.enabled = false; + + time = deltaTime > 0 ? duration : 0; + + this.time = time; + + this._mixer.dispatchEvent( { + type: 'finished', action: this, + direction: deltaTime > 0 ? 1 : - 1 + } ); + + } else { + + // keep running + + if ( pending === 1 ) { + + // entering the last round + + const atStart = deltaTime < 0; + this._setEndings( atStart, ! atStart, pingPong ); + + } else { + + this._setEndings( false, false, pingPong ); + + } + + this._loopCount = loopCount; + + this.time = time; + + this._mixer.dispatchEvent( { + type: 'loop', action: this, loopDelta: loopDelta + } ); + + } + + } else { + + this.time = time; + + } + + if ( pingPong && ( loopCount & 1 ) === 1 ) { + + // invert time for the "pong round" + + return duration - time; + + } + + } + + return time; + + } + + _setEndings( atStart, atEnd, pingPong ) { + + const settings = this._interpolantSettings; + + if ( pingPong ) { + + settings.endingStart = ZeroSlopeEnding; + settings.endingEnd = ZeroSlopeEnding; + + } else { + + // assuming for LoopOnce atStart == atEnd == true + + if ( atStart ) { + + settings.endingStart = this.zeroSlopeAtStart ? ZeroSlopeEnding : ZeroCurvatureEnding; + + } else { + + settings.endingStart = WrapAroundEnding; + + } + + if ( atEnd ) { + + settings.endingEnd = this.zeroSlopeAtEnd ? ZeroSlopeEnding : ZeroCurvatureEnding; + + } else { + + settings.endingEnd = WrapAroundEnding; + + } + + } + + } + + _scheduleFading( duration, weightNow, weightThen ) { + + const mixer = this._mixer, now = mixer.time; + let interpolant = this._weightInterpolant; + + if ( interpolant === null ) { + + interpolant = mixer._lendControlInterpolant(); + this._weightInterpolant = interpolant; + + } + + const times = interpolant.parameterPositions, + values = interpolant.sampleValues; + + times[ 0 ] = now; + values[ 0 ] = weightNow; + times[ 1 ] = now + duration; + values[ 1 ] = weightThen; + + return this; + + } + +} + +function AnimationMixer( root ) { + + this._root = root; + this._initMemoryManager(); + this._accuIndex = 0; + + this.time = 0; + + this.timeScale = 1.0; + +} + +AnimationMixer.prototype = Object.assign( Object.create( EventDispatcher.prototype ), { + + constructor: AnimationMixer, + + _bindAction: function ( action, prototypeAction ) { + + const root = action._localRoot || this._root, + tracks = action._clip.tracks, + nTracks = tracks.length, + bindings = action._propertyBindings, + interpolants = action._interpolants, + rootUuid = root.uuid, + bindingsByRoot = this._bindingsByRootAndName; + + let bindingsByName = bindingsByRoot[ rootUuid ]; + + if ( bindingsByName === undefined ) { + + bindingsByName = {}; + bindingsByRoot[ rootUuid ] = bindingsByName; + + } + + for ( let i = 0; i !== nTracks; ++ i ) { + + const track = tracks[ i ], + trackName = track.name; + + let binding = bindingsByName[ trackName ]; + + if ( binding !== undefined ) { + + bindings[ i ] = binding; + + } else { + + binding = bindings[ i ]; + + if ( binding !== undefined ) { + + // existing binding, make sure the cache knows + + if ( binding._cacheIndex === null ) { + + ++ binding.referenceCount; + this._addInactiveBinding( binding, rootUuid, trackName ); + + } + + continue; + + } + + const path = prototypeAction && prototypeAction. + _propertyBindings[ i ].binding.parsedPath; + + binding = new PropertyMixer( + PropertyBinding.create( root, trackName, path ), + track.ValueTypeName, track.getValueSize() ); + + ++ binding.referenceCount; + this._addInactiveBinding( binding, rootUuid, trackName ); + + bindings[ i ] = binding; + + } + + interpolants[ i ].resultBuffer = binding.buffer; + + } + + }, + + _activateAction: function ( action ) { + + if ( ! this._isActiveAction( action ) ) { + + if ( action._cacheIndex === null ) { + + // this action has been forgotten by the cache, but the user + // appears to be still using it -> rebind + + const rootUuid = ( action._localRoot || this._root ).uuid, + clipUuid = action._clip.uuid, + actionsForClip = this._actionsByClip[ clipUuid ]; + + this._bindAction( action, + actionsForClip && actionsForClip.knownActions[ 0 ] ); + + this._addInactiveAction( action, clipUuid, rootUuid ); + + } + + const bindings = action._propertyBindings; + + // increment reference counts / sort out state + for ( let i = 0, n = bindings.length; i !== n; ++ i ) { + + const binding = bindings[ i ]; + + if ( binding.useCount ++ === 0 ) { + + this._lendBinding( binding ); + binding.saveOriginalState(); + + } + + } + + this._lendAction( action ); + + } + + }, + + _deactivateAction: function ( action ) { + + if ( this._isActiveAction( action ) ) { + + const bindings = action._propertyBindings; + + // decrement reference counts / sort out state + for ( let i = 0, n = bindings.length; i !== n; ++ i ) { + + const binding = bindings[ i ]; + + if ( -- binding.useCount === 0 ) { + + binding.restoreOriginalState(); + this._takeBackBinding( binding ); + + } + + } + + this._takeBackAction( action ); + + } + + }, + + // Memory manager + + _initMemoryManager: function () { + + this._actions = []; // 'nActiveActions' followed by inactive ones + this._nActiveActions = 0; + + this._actionsByClip = {}; + // inside: + // { + // knownActions: Array< AnimationAction > - used as prototypes + // actionByRoot: AnimationAction - lookup + // } + + + this._bindings = []; // 'nActiveBindings' followed by inactive ones + this._nActiveBindings = 0; + + this._bindingsByRootAndName = {}; // inside: Map< name, PropertyMixer > + + + this._controlInterpolants = []; // same game as above + this._nActiveControlInterpolants = 0; + + const scope = this; + + this.stats = { + + actions: { + get total() { + + return scope._actions.length; + + }, + get inUse() { + + return scope._nActiveActions; + + } + }, + bindings: { + get total() { + + return scope._bindings.length; + + }, + get inUse() { + + return scope._nActiveBindings; + + } + }, + controlInterpolants: { + get total() { + + return scope._controlInterpolants.length; + + }, + get inUse() { + + return scope._nActiveControlInterpolants; + + } + } + + }; + + }, + + // Memory management for AnimationAction objects + + _isActiveAction: function ( action ) { + + const index = action._cacheIndex; + return index !== null && index < this._nActiveActions; + + }, + + _addInactiveAction: function ( action, clipUuid, rootUuid ) { + + const actions = this._actions, + actionsByClip = this._actionsByClip; + + let actionsForClip = actionsByClip[ clipUuid ]; + + if ( actionsForClip === undefined ) { + + actionsForClip = { + + knownActions: [ action ], + actionByRoot: {} + + }; + + action._byClipCacheIndex = 0; + + actionsByClip[ clipUuid ] = actionsForClip; + + } else { + + const knownActions = actionsForClip.knownActions; + + action._byClipCacheIndex = knownActions.length; + knownActions.push( action ); + + } + + action._cacheIndex = actions.length; + actions.push( action ); + + actionsForClip.actionByRoot[ rootUuid ] = action; + + }, + + _removeInactiveAction: function ( action ) { + + const actions = this._actions, + lastInactiveAction = actions[ actions.length - 1 ], + cacheIndex = action._cacheIndex; + + lastInactiveAction._cacheIndex = cacheIndex; + actions[ cacheIndex ] = lastInactiveAction; + actions.pop(); + + action._cacheIndex = null; + + + const clipUuid = action._clip.uuid, + actionsByClip = this._actionsByClip, + actionsForClip = actionsByClip[ clipUuid ], + knownActionsForClip = actionsForClip.knownActions, + + lastKnownAction = + knownActionsForClip[ knownActionsForClip.length - 1 ], + + byClipCacheIndex = action._byClipCacheIndex; + + lastKnownAction._byClipCacheIndex = byClipCacheIndex; + knownActionsForClip[ byClipCacheIndex ] = lastKnownAction; + knownActionsForClip.pop(); + + action._byClipCacheIndex = null; + + + const actionByRoot = actionsForClip.actionByRoot, + rootUuid = ( action._localRoot || this._root ).uuid; + + delete actionByRoot[ rootUuid ]; + + if ( knownActionsForClip.length === 0 ) { + + delete actionsByClip[ clipUuid ]; + + } + + this._removeInactiveBindingsForAction( action ); + + }, + + _removeInactiveBindingsForAction: function ( action ) { + + const bindings = action._propertyBindings; + + for ( let i = 0, n = bindings.length; i !== n; ++ i ) { + + const binding = bindings[ i ]; + + if ( -- binding.referenceCount === 0 ) { + + this._removeInactiveBinding( binding ); + + } + + } + + }, + + _lendAction: function ( action ) { + + // [ active actions | inactive actions ] + // [ active actions >| inactive actions ] + // s a + // <-swap-> + // a s + + const actions = this._actions, + prevIndex = action._cacheIndex, + + lastActiveIndex = this._nActiveActions ++, + + firstInactiveAction = actions[ lastActiveIndex ]; + + action._cacheIndex = lastActiveIndex; + actions[ lastActiveIndex ] = action; + + firstInactiveAction._cacheIndex = prevIndex; + actions[ prevIndex ] = firstInactiveAction; + + }, + + _takeBackAction: function ( action ) { + + // [ active actions | inactive actions ] + // [ active actions |< inactive actions ] + // a s + // <-swap-> + // s a + + const actions = this._actions, + prevIndex = action._cacheIndex, + + firstInactiveIndex = -- this._nActiveActions, + + lastActiveAction = actions[ firstInactiveIndex ]; + + action._cacheIndex = firstInactiveIndex; + actions[ firstInactiveIndex ] = action; + + lastActiveAction._cacheIndex = prevIndex; + actions[ prevIndex ] = lastActiveAction; + + }, + + // Memory management for PropertyMixer objects + + _addInactiveBinding: function ( binding, rootUuid, trackName ) { + + const bindingsByRoot = this._bindingsByRootAndName, + bindings = this._bindings; + + let bindingByName = bindingsByRoot[ rootUuid ]; + + if ( bindingByName === undefined ) { + + bindingByName = {}; + bindingsByRoot[ rootUuid ] = bindingByName; + + } + + bindingByName[ trackName ] = binding; + + binding._cacheIndex = bindings.length; + bindings.push( binding ); + + }, + + _removeInactiveBinding: function ( binding ) { + + const bindings = this._bindings, + propBinding = binding.binding, + rootUuid = propBinding.rootNode.uuid, + trackName = propBinding.path, + bindingsByRoot = this._bindingsByRootAndName, + bindingByName = bindingsByRoot[ rootUuid ], + + lastInactiveBinding = bindings[ bindings.length - 1 ], + cacheIndex = binding._cacheIndex; + + lastInactiveBinding._cacheIndex = cacheIndex; + bindings[ cacheIndex ] = lastInactiveBinding; + bindings.pop(); + + delete bindingByName[ trackName ]; + + if ( Object.keys( bindingByName ).length === 0 ) { + + delete bindingsByRoot[ rootUuid ]; + + } + + }, + + _lendBinding: function ( binding ) { + + const bindings = this._bindings, + prevIndex = binding._cacheIndex, + + lastActiveIndex = this._nActiveBindings ++, + + firstInactiveBinding = bindings[ lastActiveIndex ]; + + binding._cacheIndex = lastActiveIndex; + bindings[ lastActiveIndex ] = binding; + + firstInactiveBinding._cacheIndex = prevIndex; + bindings[ prevIndex ] = firstInactiveBinding; + + }, + + _takeBackBinding: function ( binding ) { + + const bindings = this._bindings, + prevIndex = binding._cacheIndex, + + firstInactiveIndex = -- this._nActiveBindings, + + lastActiveBinding = bindings[ firstInactiveIndex ]; + + binding._cacheIndex = firstInactiveIndex; + bindings[ firstInactiveIndex ] = binding; + + lastActiveBinding._cacheIndex = prevIndex; + bindings[ prevIndex ] = lastActiveBinding; + + }, + + + // Memory management of Interpolants for weight and time scale + + _lendControlInterpolant: function () { + + const interpolants = this._controlInterpolants, + lastActiveIndex = this._nActiveControlInterpolants ++; + + let interpolant = interpolants[ lastActiveIndex ]; + + if ( interpolant === undefined ) { + + interpolant = new LinearInterpolant( + new Float32Array( 2 ), new Float32Array( 2 ), + 1, this._controlInterpolantsResultBuffer ); + + interpolant.__cacheIndex = lastActiveIndex; + interpolants[ lastActiveIndex ] = interpolant; + + } + + return interpolant; + + }, + + _takeBackControlInterpolant: function ( interpolant ) { + + const interpolants = this._controlInterpolants, + prevIndex = interpolant.__cacheIndex, + + firstInactiveIndex = -- this._nActiveControlInterpolants, + + lastActiveInterpolant = interpolants[ firstInactiveIndex ]; + + interpolant.__cacheIndex = firstInactiveIndex; + interpolants[ firstInactiveIndex ] = interpolant; + + lastActiveInterpolant.__cacheIndex = prevIndex; + interpolants[ prevIndex ] = lastActiveInterpolant; + + }, + + _controlInterpolantsResultBuffer: new Float32Array( 1 ), + + // return an action for a clip optionally using a custom root target + // object (this method allocates a lot of dynamic memory in case a + // previously unknown clip/root combination is specified) + clipAction: function ( clip, optionalRoot, blendMode ) { + + const root = optionalRoot || this._root, + rootUuid = root.uuid; + + let clipObject = typeof clip === 'string' ? AnimationClip.findByName( root, clip ) : clip; + + const clipUuid = clipObject !== null ? clipObject.uuid : clip; + + const actionsForClip = this._actionsByClip[ clipUuid ]; + let prototypeAction = null; + + if ( blendMode === undefined ) { + + if ( clipObject !== null ) { + + blendMode = clipObject.blendMode; + + } else { + + blendMode = NormalAnimationBlendMode; + + } + + } + + if ( actionsForClip !== undefined ) { + + const existingAction = actionsForClip.actionByRoot[ rootUuid ]; + + if ( existingAction !== undefined && existingAction.blendMode === blendMode ) { + + return existingAction; + + } + + // we know the clip, so we don't have to parse all + // the bindings again but can just copy + prototypeAction = actionsForClip.knownActions[ 0 ]; + + // also, take the clip from the prototype action + if ( clipObject === null ) + clipObject = prototypeAction._clip; + + } + + // clip must be known when specified via string + if ( clipObject === null ) return null; + + // allocate all resources required to run it + const newAction = new AnimationAction( this, clipObject, optionalRoot, blendMode ); + + this._bindAction( newAction, prototypeAction ); + + // and make the action known to the memory manager + this._addInactiveAction( newAction, clipUuid, rootUuid ); + + return newAction; + + }, + + // get an existing action + existingAction: function ( clip, optionalRoot ) { + + const root = optionalRoot || this._root, + rootUuid = root.uuid, + + clipObject = typeof clip === 'string' ? + AnimationClip.findByName( root, clip ) : clip, + + clipUuid = clipObject ? clipObject.uuid : clip, + + actionsForClip = this._actionsByClip[ clipUuid ]; + + if ( actionsForClip !== undefined ) { + + return actionsForClip.actionByRoot[ rootUuid ] || null; + + } + + return null; + + }, + + // deactivates all previously scheduled actions + stopAllAction: function () { + + const actions = this._actions, + nActions = this._nActiveActions; + + for ( let i = nActions - 1; i >= 0; -- i ) { + + actions[ i ].stop(); + + } + + return this; + + }, + + // advance the time and update apply the animation + update: function ( deltaTime ) { + + deltaTime *= this.timeScale; + + const actions = this._actions, + nActions = this._nActiveActions, + + time = this.time += deltaTime, + timeDirection = Math.sign( deltaTime ), + + accuIndex = this._accuIndex ^= 1; + + // run active actions + + for ( let i = 0; i !== nActions; ++ i ) { + + const action = actions[ i ]; + + action._update( time, deltaTime, timeDirection, accuIndex ); + + } + + // update scene graph + + const bindings = this._bindings, + nBindings = this._nActiveBindings; + + for ( let i = 0; i !== nBindings; ++ i ) { + + bindings[ i ].apply( accuIndex ); + + } + + return this; + + }, + + // Allows you to seek to a specific time in an animation. + setTime: function ( timeInSeconds ) { + + this.time = 0; // Zero out time attribute for AnimationMixer object; + for ( let i = 0; i < this._actions.length; i ++ ) { + + this._actions[ i ].time = 0; // Zero out time attribute for all associated AnimationAction objects. + + } + + return this.update( timeInSeconds ); // Update used to set exact time. Returns "this" AnimationMixer object. + + }, + + // return this mixer's root target object + getRoot: function () { + + return this._root; + + }, + + // free all resources specific to a particular clip + uncacheClip: function ( clip ) { + + const actions = this._actions, + clipUuid = clip.uuid, + actionsByClip = this._actionsByClip, + actionsForClip = actionsByClip[ clipUuid ]; + + if ( actionsForClip !== undefined ) { + + // note: just calling _removeInactiveAction would mess up the + // iteration state and also require updating the state we can + // just throw away + + const actionsToRemove = actionsForClip.knownActions; + + for ( let i = 0, n = actionsToRemove.length; i !== n; ++ i ) { + + const action = actionsToRemove[ i ]; + + this._deactivateAction( action ); + + const cacheIndex = action._cacheIndex, + lastInactiveAction = actions[ actions.length - 1 ]; + + action._cacheIndex = null; + action._byClipCacheIndex = null; + + lastInactiveAction._cacheIndex = cacheIndex; + actions[ cacheIndex ] = lastInactiveAction; + actions.pop(); + + this._removeInactiveBindingsForAction( action ); + + } + + delete actionsByClip[ clipUuid ]; + + } + + }, + + // free all resources specific to a particular root target object + uncacheRoot: function ( root ) { + + const rootUuid = root.uuid, + actionsByClip = this._actionsByClip; + + for ( const clipUuid in actionsByClip ) { + + const actionByRoot = actionsByClip[ clipUuid ].actionByRoot, + action = actionByRoot[ rootUuid ]; + + if ( action !== undefined ) { + + this._deactivateAction( action ); + this._removeInactiveAction( action ); + + } + + } + + const bindingsByRoot = this._bindingsByRootAndName, + bindingByName = bindingsByRoot[ rootUuid ]; + + if ( bindingByName !== undefined ) { + + for ( const trackName in bindingByName ) { + + const binding = bindingByName[ trackName ]; + binding.restoreOriginalState(); + this._removeInactiveBinding( binding ); + + } + + } + + }, + + // remove a targeted clip from the cache + uncacheAction: function ( clip, optionalRoot ) { + + const action = this.existingAction( clip, optionalRoot ); + + if ( action !== null ) { + + this._deactivateAction( action ); + this._removeInactiveAction( action ); + + } + + } + +} ); + +class Uniform { + + constructor( value ) { + + if ( typeof value === 'string' ) { + + console.warn( 'THREE.Uniform: Type parameter is no longer needed.' ); + value = arguments[ 1 ]; + + } + + this.value = value; + + } + + clone() { + + return new Uniform( this.value.clone === undefined ? this.value : this.value.clone() ); + + } + +} + +function InstancedInterleavedBuffer( array, stride, meshPerAttribute ) { + + InterleavedBuffer.call( this, array, stride ); + + this.meshPerAttribute = meshPerAttribute || 1; + +} + +InstancedInterleavedBuffer.prototype = Object.assign( Object.create( InterleavedBuffer.prototype ), { + + constructor: InstancedInterleavedBuffer, + + isInstancedInterleavedBuffer: true, + + copy: function ( source ) { + + InterleavedBuffer.prototype.copy.call( this, source ); + + this.meshPerAttribute = source.meshPerAttribute; + + return this; + + }, + + clone: function ( data ) { + + const ib = InterleavedBuffer.prototype.clone.call( this, data ); + + ib.meshPerAttribute = this.meshPerAttribute; + + return ib; + + }, + + toJSON: function ( data ) { + + const json = InterleavedBuffer.prototype.toJSON.call( this, data ); + + json.isInstancedInterleavedBuffer = true; + json.meshPerAttribute = this.meshPerAttribute; + + return json; + + } + +} ); + +function GLBufferAttribute( buffer, type, itemSize, elementSize, count ) { + + this.buffer = buffer; + this.type = type; + this.itemSize = itemSize; + this.elementSize = elementSize; + this.count = count; + + this.version = 0; + +} + +Object.defineProperty( GLBufferAttribute.prototype, 'needsUpdate', { + + set: function ( value ) { + + if ( value === true ) this.version ++; + + } + +} ); + +Object.assign( GLBufferAttribute.prototype, { + + isGLBufferAttribute: true, + + setBuffer: function ( buffer ) { + + this.buffer = buffer; + + return this; + + }, + + setType: function ( type, elementSize ) { + + this.type = type; + this.elementSize = elementSize; + + return this; + + }, + + setItemSize: function ( itemSize ) { + + this.itemSize = itemSize; + + return this; + + }, + + setCount: function ( count ) { + + this.count = count; + + return this; + + }, + +} ); + +function Raycaster( origin, direction, near, far ) { + + this.ray = new Ray( origin, direction ); + // direction is assumed to be normalized (for accurate distance calculations) + + this.near = near || 0; + this.far = far || Infinity; + this.camera = null; + this.layers = new Layers(); + + this.params = { + Mesh: {}, + Line: { threshold: 1 }, + LOD: {}, + Points: { threshold: 1 }, + Sprite: {} + }; + + Object.defineProperties( this.params, { + PointCloud: { + get: function () { + + console.warn( 'THREE.Raycaster: params.PointCloud has been renamed to params.Points.' ); + return this.Points; + + } + } + } ); + +} + +function ascSort( a, b ) { + + return a.distance - b.distance; + +} + +function intersectObject( object, raycaster, intersects, recursive ) { + + if ( object.layers.test( raycaster.layers ) ) { + + object.raycast( raycaster, intersects ); + + } + + if ( recursive === true ) { + + const children = object.children; + + for ( let i = 0, l = children.length; i < l; i ++ ) { + + intersectObject( children[ i ], raycaster, intersects, true ); + + } + + } + +} + +Object.assign( Raycaster.prototype, { + + set: function ( origin, direction ) { + + // direction is assumed to be normalized (for accurate distance calculations) + + this.ray.set( origin, direction ); + + }, + + setFromCamera: function ( coords, camera ) { + + if ( ( camera && camera.isPerspectiveCamera ) ) { + + this.ray.origin.setFromMatrixPosition( camera.matrixWorld ); + this.ray.direction.set( coords.x, coords.y, 0.5 ).unproject( camera ).sub( this.ray.origin ).normalize(); + this.camera = camera; + + } else if ( ( camera && camera.isOrthographicCamera ) ) { + + this.ray.origin.set( coords.x, coords.y, ( camera.near + camera.far ) / ( camera.near - camera.far ) ).unproject( camera ); // set origin in plane of camera + this.ray.direction.set( 0, 0, - 1 ).transformDirection( camera.matrixWorld ); + this.camera = camera; + + } else { + + console.error( 'THREE.Raycaster: Unsupported camera type.' ); + + } + + }, + + intersectObject: function ( object, recursive, optionalTarget ) { + + const intersects = optionalTarget || []; + + intersectObject( object, this, intersects, recursive ); + + intersects.sort( ascSort ); + + return intersects; + + }, + + intersectObjects: function ( objects, recursive, optionalTarget ) { + + const intersects = optionalTarget || []; + + if ( Array.isArray( objects ) === false ) { + + console.warn( 'THREE.Raycaster.intersectObjects: objects is not an Array.' ); + return intersects; + + } + + for ( let i = 0, l = objects.length; i < l; i ++ ) { + + intersectObject( objects[ i ], this, intersects, recursive ); + + } + + intersects.sort( ascSort ); + + return intersects; + + } + +} ); + +/** + * Ref: https://en.wikipedia.org/wiki/Spherical_coordinate_system + * + * The polar angle (phi) is measured from the positive y-axis. The positive y-axis is up. + * The azimuthal angle (theta) is measured from the positive z-axis. + */ + +class Spherical { + + constructor( radius = 1, phi = 0, theta = 0 ) { + + this.radius = radius; + this.phi = phi; // polar angle + this.theta = theta; // azimuthal angle + + return this; + + } + + set( radius, phi, theta ) { + + this.radius = radius; + this.phi = phi; + this.theta = theta; + + return this; + + } + + clone() { + + return new this.constructor().copy( this ); + + } + + copy( other ) { + + this.radius = other.radius; + this.phi = other.phi; + this.theta = other.theta; + + return this; + + } + + // restrict phi to be betwee EPS and PI-EPS + makeSafe() { + + const EPS = 0.000001; + this.phi = Math.max( EPS, Math.min( Math.PI - EPS, this.phi ) ); + + return this; + + } + + setFromVector3( v ) { + + return this.setFromCartesianCoords( v.x, v.y, v.z ); + + } + + setFromCartesianCoords( x, y, z ) { + + this.radius = Math.sqrt( x * x + y * y + z * z ); + + if ( this.radius === 0 ) { + + this.theta = 0; + this.phi = 0; + + } else { + + this.theta = Math.atan2( x, z ); + this.phi = Math.acos( MathUtils.clamp( y / this.radius, - 1, 1 ) ); + + } + + return this; + + } + +} + +/** + * Ref: https://en.wikipedia.org/wiki/Cylindrical_coordinate_system + */ + +class Cylindrical { + + constructor( radius, theta, y ) { + + this.radius = ( radius !== undefined ) ? radius : 1.0; // distance from the origin to a point in the x-z plane + this.theta = ( theta !== undefined ) ? theta : 0; // counterclockwise angle in the x-z plane measured in radians from the positive z-axis + this.y = ( y !== undefined ) ? y : 0; // height above the x-z plane + + return this; + + } + + set( radius, theta, y ) { + + this.radius = radius; + this.theta = theta; + this.y = y; + + return this; + + } + + clone() { + + return new this.constructor().copy( this ); + + } + + copy( other ) { + + this.radius = other.radius; + this.theta = other.theta; + this.y = other.y; + + return this; + + } + + setFromVector3( v ) { + + return this.setFromCartesianCoords( v.x, v.y, v.z ); + + } + + setFromCartesianCoords( x, y, z ) { + + this.radius = Math.sqrt( x * x + z * z ); + this.theta = Math.atan2( x, z ); + this.y = y; + + return this; + + } + +} + +const _vector$7 = /*@__PURE__*/ new Vector2(); + +class Box2 { + + constructor( min, max ) { + + Object.defineProperty( this, 'isBox2', { value: true } ); + + this.min = ( min !== undefined ) ? min : new Vector2( + Infinity, + Infinity ); + this.max = ( max !== undefined ) ? max : new Vector2( - Infinity, - Infinity ); + + } + + set( min, max ) { + + this.min.copy( min ); + this.max.copy( max ); + + return this; + + } + + setFromPoints( points ) { + + this.makeEmpty(); + + for ( let i = 0, il = points.length; i < il; i ++ ) { + + this.expandByPoint( points[ i ] ); + + } + + return this; + + } + + setFromCenterAndSize( center, size ) { + + const halfSize = _vector$7.copy( size ).multiplyScalar( 0.5 ); + this.min.copy( center ).sub( halfSize ); + this.max.copy( center ).add( halfSize ); + + return this; + + } + + clone() { + + return new this.constructor().copy( this ); + + } + + copy( box ) { + + this.min.copy( box.min ); + this.max.copy( box.max ); + + return this; + + } + + makeEmpty() { + + this.min.x = this.min.y = + Infinity; + this.max.x = this.max.y = - Infinity; + + return this; + + } + + isEmpty() { + + // this is a more robust check for empty than ( volume <= 0 ) because volume can get positive with two negative axes + + return ( this.max.x < this.min.x ) || ( this.max.y < this.min.y ); + + } + + getCenter( target ) { + + if ( target === undefined ) { + + console.warn( 'THREE.Box2: .getCenter() target is now required' ); + target = new Vector2(); + + } + + return this.isEmpty() ? target.set( 0, 0 ) : target.addVectors( this.min, this.max ).multiplyScalar( 0.5 ); + + } + + getSize( target ) { + + if ( target === undefined ) { + + console.warn( 'THREE.Box2: .getSize() target is now required' ); + target = new Vector2(); + + } + + return this.isEmpty() ? target.set( 0, 0 ) : target.subVectors( this.max, this.min ); + + } + + expandByPoint( point ) { + + this.min.min( point ); + this.max.max( point ); + + return this; + + } + + expandByVector( vector ) { + + this.min.sub( vector ); + this.max.add( vector ); + + return this; + + } + + expandByScalar( scalar ) { + + this.min.addScalar( - scalar ); + this.max.addScalar( scalar ); + + return this; + + } + + containsPoint( point ) { + + return point.x < this.min.x || point.x > this.max.x || + point.y < this.min.y || point.y > this.max.y ? false : true; + + } + + containsBox( box ) { + + return this.min.x <= box.min.x && box.max.x <= this.max.x && + this.min.y <= box.min.y && box.max.y <= this.max.y; + + } + + getParameter( point, target ) { + + // This can potentially have a divide by zero if the box + // has a size dimension of 0. + + if ( target === undefined ) { + + console.warn( 'THREE.Box2: .getParameter() target is now required' ); + target = new Vector2(); + + } + + return target.set( + ( point.x - this.min.x ) / ( this.max.x - this.min.x ), + ( point.y - this.min.y ) / ( this.max.y - this.min.y ) + ); + + } + + intersectsBox( box ) { + + // using 4 splitting planes to rule out intersections + + return box.max.x < this.min.x || box.min.x > this.max.x || + box.max.y < this.min.y || box.min.y > this.max.y ? false : true; + + } + + clampPoint( point, target ) { + + if ( target === undefined ) { + + console.warn( 'THREE.Box2: .clampPoint() target is now required' ); + target = new Vector2(); + + } + + return target.copy( point ).clamp( this.min, this.max ); + + } + + distanceToPoint( point ) { + + const clampedPoint = _vector$7.copy( point ).clamp( this.min, this.max ); + return clampedPoint.sub( point ).length(); + + } + + intersect( box ) { + + this.min.max( box.min ); + this.max.min( box.max ); + + return this; + + } + + union( box ) { + + this.min.min( box.min ); + this.max.max( box.max ); + + return this; + + } + + translate( offset ) { + + this.min.add( offset ); + this.max.add( offset ); + + return this; + + } + + equals( box ) { + + return box.min.equals( this.min ) && box.max.equals( this.max ); + + } + +} + +const _startP = /*@__PURE__*/ new Vector3(); +const _startEnd = /*@__PURE__*/ new Vector3(); + +class Line3 { + + constructor( start, end ) { + + this.start = ( start !== undefined ) ? start : new Vector3(); + this.end = ( end !== undefined ) ? end : new Vector3(); + + } + + set( start, end ) { + + this.start.copy( start ); + this.end.copy( end ); + + return this; + + } + + clone() { + + return new this.constructor().copy( this ); + + } + + copy( line ) { + + this.start.copy( line.start ); + this.end.copy( line.end ); + + return this; + + } + + getCenter( target ) { + + if ( target === undefined ) { + + console.warn( 'THREE.Line3: .getCenter() target is now required' ); + target = new Vector3(); + + } + + return target.addVectors( this.start, this.end ).multiplyScalar( 0.5 ); + + } + + delta( target ) { + + if ( target === undefined ) { + + console.warn( 'THREE.Line3: .delta() target is now required' ); + target = new Vector3(); + + } + + return target.subVectors( this.end, this.start ); + + } + + distanceSq() { + + return this.start.distanceToSquared( this.end ); + + } + + distance() { + + return this.start.distanceTo( this.end ); + + } + + at( t, target ) { + + if ( target === undefined ) { + + console.warn( 'THREE.Line3: .at() target is now required' ); + target = new Vector3(); + + } + + return this.delta( target ).multiplyScalar( t ).add( this.start ); + + } + + closestPointToPointParameter( point, clampToLine ) { + + _startP.subVectors( point, this.start ); + _startEnd.subVectors( this.end, this.start ); + + const startEnd2 = _startEnd.dot( _startEnd ); + const startEnd_startP = _startEnd.dot( _startP ); + + let t = startEnd_startP / startEnd2; + + if ( clampToLine ) { + + t = MathUtils.clamp( t, 0, 1 ); + + } + + return t; + + } + + closestPointToPoint( point, clampToLine, target ) { + + const t = this.closestPointToPointParameter( point, clampToLine ); + + if ( target === undefined ) { + + console.warn( 'THREE.Line3: .closestPointToPoint() target is now required' ); + target = new Vector3(); + + } + + return this.delta( target ).multiplyScalar( t ).add( this.start ); + + } + + applyMatrix4( matrix ) { + + this.start.applyMatrix4( matrix ); + this.end.applyMatrix4( matrix ); + + return this; + + } + + equals( line ) { + + return line.start.equals( this.start ) && line.end.equals( this.end ); + + } + +} + +function ImmediateRenderObject( material ) { + + Object3D.call( this ); + + this.material = material; + this.render = function ( /* renderCallback */ ) {}; + + this.hasPositions = false; + this.hasNormals = false; + this.hasColors = false; + this.hasUvs = false; + + this.positionArray = null; + this.normalArray = null; + this.colorArray = null; + this.uvArray = null; + + this.count = 0; + +} + +ImmediateRenderObject.prototype = Object.create( Object3D.prototype ); +ImmediateRenderObject.prototype.constructor = ImmediateRenderObject; + +ImmediateRenderObject.prototype.isImmediateRenderObject = true; + +const _vector$8 = /*@__PURE__*/ new Vector3(); + +class SpotLightHelper extends Object3D { + + constructor( light, color ) { + + super(); + this.light = light; + this.light.updateMatrixWorld(); + + this.matrix = light.matrixWorld; + this.matrixAutoUpdate = false; + + this.color = color; + + const geometry = new BufferGeometry(); + + const positions = [ + 0, 0, 0, 0, 0, 1, + 0, 0, 0, 1, 0, 1, + 0, 0, 0, - 1, 0, 1, + 0, 0, 0, 0, 1, 1, + 0, 0, 0, 0, - 1, 1 + ]; + + for ( let i = 0, j = 1, l = 32; i < l; i ++, j ++ ) { + + const p1 = ( i / l ) * Math.PI * 2; + const p2 = ( j / l ) * Math.PI * 2; + + positions.push( + Math.cos( p1 ), Math.sin( p1 ), 1, + Math.cos( p2 ), Math.sin( p2 ), 1 + ); + + } + + geometry.setAttribute( 'position', new Float32BufferAttribute( positions, 3 ) ); + + const material = new LineBasicMaterial( { fog: false, toneMapped: false } ); + + this.cone = new LineSegments( geometry, material ); + this.add( this.cone ); + + this.update(); + + } + + dispose() { + + this.cone.geometry.dispose(); + this.cone.material.dispose(); + + } + + update() { + + this.light.updateMatrixWorld(); + + const coneLength = this.light.distance ? this.light.distance : 1000; + const coneWidth = coneLength * Math.tan( this.light.angle ); + + this.cone.scale.set( coneWidth, coneWidth, coneLength ); + + _vector$8.setFromMatrixPosition( this.light.target.matrixWorld ); + + this.cone.lookAt( _vector$8 ); + + if ( this.color !== undefined ) { + + this.cone.material.color.set( this.color ); + + } else { + + this.cone.material.color.copy( this.light.color ); + + } + + } + +} + +const _vector$9 = /*@__PURE__*/ new Vector3(); +const _boneMatrix = /*@__PURE__*/ new Matrix4(); +const _matrixWorldInv = /*@__PURE__*/ new Matrix4(); + + +class SkeletonHelper extends LineSegments { + + constructor( object ) { + + const bones = getBoneList( object ); + + const geometry = new BufferGeometry(); + + const vertices = []; + const colors = []; + + const color1 = new Color( 0, 0, 1 ); + const color2 = new Color( 0, 1, 0 ); + + for ( let i = 0; i < bones.length; i ++ ) { + + const bone = bones[ i ]; + + if ( bone.parent && bone.parent.isBone ) { + + vertices.push( 0, 0, 0 ); + vertices.push( 0, 0, 0 ); + colors.push( color1.r, color1.g, color1.b ); + colors.push( color2.r, color2.g, color2.b ); + + } + + } + + geometry.setAttribute( 'position', new Float32BufferAttribute( vertices, 3 ) ); + geometry.setAttribute( 'color', new Float32BufferAttribute( colors, 3 ) ); + + const material = new LineBasicMaterial( { vertexColors: true, depthTest: false, depthWrite: false, toneMapped: false, transparent: true } ); + + super( geometry, material ); + + this.type = 'SkeletonHelper'; + this.isSkeletonHelper = true; + + this.root = object; + this.bones = bones; + + this.matrix = object.matrixWorld; + this.matrixAutoUpdate = false; + + } + + updateMatrixWorld( force ) { + + const bones = this.bones; + + const geometry = this.geometry; + const position = geometry.getAttribute( 'position' ); + + _matrixWorldInv.getInverse( this.root.matrixWorld ); + + for ( let i = 0, j = 0; i < bones.length; i ++ ) { + + const bone = bones[ i ]; + + if ( bone.parent && bone.parent.isBone ) { + + _boneMatrix.multiplyMatrices( _matrixWorldInv, bone.matrixWorld ); + _vector$9.setFromMatrixPosition( _boneMatrix ); + position.setXYZ( j, _vector$9.x, _vector$9.y, _vector$9.z ); + + _boneMatrix.multiplyMatrices( _matrixWorldInv, bone.parent.matrixWorld ); + _vector$9.setFromMatrixPosition( _boneMatrix ); + position.setXYZ( j + 1, _vector$9.x, _vector$9.y, _vector$9.z ); + + j += 2; + + } + + } + + geometry.getAttribute( 'position' ).needsUpdate = true; + + super.updateMatrixWorld( force ); + + } + +} + + +function getBoneList( object ) { + + const boneList = []; + + if ( object && object.isBone ) { + + boneList.push( object ); + + } + + for ( let i = 0; i < object.children.length; i ++ ) { + + boneList.push.apply( boneList, getBoneList( object.children[ i ] ) ); + + } + + return boneList; + +} + +class PointLightHelper extends Mesh { + + constructor( light, sphereSize, color ) { + + const geometry = new SphereBufferGeometry( sphereSize, 4, 2 ); + const material = new MeshBasicMaterial( { wireframe: true, fog: false, toneMapped: false } ); + + super( geometry, material ); + + this.light = light; + this.light.updateMatrixWorld(); + + this.color = color; + + this.type = 'PointLightHelper'; + + this.matrix = this.light.matrixWorld; + this.matrixAutoUpdate = false; + + this.update(); + + + /* + // TODO: delete this comment? + const distanceGeometry = new THREE.IcosahedronBufferGeometry( 1, 2 ); + const distanceMaterial = new THREE.MeshBasicMaterial( { color: hexColor, fog: false, wireframe: true, opacity: 0.1, transparent: true } ); + + this.lightSphere = new THREE.Mesh( bulbGeometry, bulbMaterial ); + this.lightDistance = new THREE.Mesh( distanceGeometry, distanceMaterial ); + + const d = light.distance; + + if ( d === 0.0 ) { + + this.lightDistance.visible = false; + + } else { + + this.lightDistance.scale.set( d, d, d ); + + } + + this.add( this.lightDistance ); + */ + + } + + dispose() { + + this.geometry.dispose(); + this.material.dispose(); + + } + + update() { + + if ( this.color !== undefined ) { + + this.material.color.set( this.color ); + + } else { + + this.material.color.copy( this.light.color ); + + } + + /* + const d = this.light.distance; + + if ( d === 0.0 ) { + + this.lightDistance.visible = false; + + } else { + + this.lightDistance.visible = true; + this.lightDistance.scale.set( d, d, d ); + + } + */ + + } + +} + +const _vector$a = /*@__PURE__*/ new Vector3(); +const _color1 = /*@__PURE__*/ new Color(); +const _color2 = /*@__PURE__*/ new Color(); + +class HemisphereLightHelper extends Object3D { + + constructor( light, size, color ) { + + super(); + this.light = light; + this.light.updateMatrixWorld(); + + this.matrix = light.matrixWorld; + this.matrixAutoUpdate = false; + + this.color = color; + + const geometry = new OctahedronBufferGeometry( size ); + geometry.rotateY( Math.PI * 0.5 ); + + this.material = new MeshBasicMaterial( { wireframe: true, fog: false, toneMapped: false } ); + if ( this.color === undefined ) this.material.vertexColors = true; + + const position = geometry.getAttribute( 'position' ); + const colors = new Float32Array( position.count * 3 ); + + geometry.setAttribute( 'color', new BufferAttribute( colors, 3 ) ); + + this.add( new Mesh( geometry, this.material ) ); + + this.update(); + + } + + dispose() { + + this.children[ 0 ].geometry.dispose(); + this.children[ 0 ].material.dispose(); + + } + + update() { + + const mesh = this.children[ 0 ]; + + if ( this.color !== undefined ) { + + this.material.color.set( this.color ); + + } else { + + const colors = mesh.geometry.getAttribute( 'color' ); + + _color1.copy( this.light.color ); + _color2.copy( this.light.groundColor ); + + for ( let i = 0, l = colors.count; i < l; i ++ ) { + + const color = ( i < ( l / 2 ) ) ? _color1 : _color2; + + colors.setXYZ( i, color.r, color.g, color.b ); + + } + + colors.needsUpdate = true; + + } + + mesh.lookAt( _vector$a.setFromMatrixPosition( this.light.matrixWorld ).negate() ); + + } + +} + +class GridHelper extends LineSegments { + + constructor( size, divisions, color1, color2 ) { + + size = size || 10; + divisions = divisions || 10; + color1 = new Color( color1 !== undefined ? color1 : 0x444444 ); + color2 = new Color( color2 !== undefined ? color2 : 0x888888 ); + + const center = divisions / 2; + const step = size / divisions; + const halfSize = size / 2; + + const vertices = [], colors = []; + + for ( let i = 0, j = 0, k = - halfSize; i <= divisions; i ++, k += step ) { + + vertices.push( - halfSize, 0, k, halfSize, 0, k ); + vertices.push( k, 0, - halfSize, k, 0, halfSize ); + + const color = i === center ? color1 : color2; + + color.toArray( colors, j ); j += 3; + color.toArray( colors, j ); j += 3; + color.toArray( colors, j ); j += 3; + color.toArray( colors, j ); j += 3; + + } + + const geometry = new BufferGeometry(); + geometry.setAttribute( 'position', new Float32BufferAttribute( vertices, 3 ) ); + geometry.setAttribute( 'color', new Float32BufferAttribute( colors, 3 ) ); + + const material = new LineBasicMaterial( { vertexColors: true, toneMapped: false } ); + + super( geometry, material ); + + this.type = 'GridHelper'; + + } + +} + +class PolarGridHelper extends LineSegments { + + constructor( radius, radials, circles, divisions, color1, color2 ) { + + radius = radius || 10; + radials = radials || 16; + circles = circles || 8; + divisions = divisions || 64; + color1 = new Color( color1 !== undefined ? color1 : 0x444444 ); + color2 = new Color( color2 !== undefined ? color2 : 0x888888 ); + + const vertices = []; + const colors = []; + + // create the radials + + for ( let i = 0; i <= radials; i ++ ) { + + const v = ( i / radials ) * ( Math.PI * 2 ); + + const x = Math.sin( v ) * radius; + const z = Math.cos( v ) * radius; + + vertices.push( 0, 0, 0 ); + vertices.push( x, 0, z ); + + const color = ( i & 1 ) ? color1 : color2; + + colors.push( color.r, color.g, color.b ); + colors.push( color.r, color.g, color.b ); + + } + + // create the circles + + for ( let i = 0; i <= circles; i ++ ) { + + const color = ( i & 1 ) ? color1 : color2; + + const r = radius - ( radius / circles * i ); + + for ( let j = 0; j < divisions; j ++ ) { + + // first vertex + + let v = ( j / divisions ) * ( Math.PI * 2 ); + + let x = Math.sin( v ) * r; + let z = Math.cos( v ) * r; + + vertices.push( x, 0, z ); + colors.push( color.r, color.g, color.b ); + + // second vertex + + v = ( ( j + 1 ) / divisions ) * ( Math.PI * 2 ); + + x = Math.sin( v ) * r; + z = Math.cos( v ) * r; + + vertices.push( x, 0, z ); + colors.push( color.r, color.g, color.b ); + + } + + } + + const geometry = new BufferGeometry(); + geometry.setAttribute( 'position', new Float32BufferAttribute( vertices, 3 ) ); + geometry.setAttribute( 'color', new Float32BufferAttribute( colors, 3 ) ); + + const material = new LineBasicMaterial( { vertexColors: true, toneMapped: false } ); + + super( geometry, material ); + + this.type = 'PolarGridHelper'; + + } + +} + +const _v1$6 = /*@__PURE__*/ new Vector3(); +const _v2$3 = /*@__PURE__*/ new Vector3(); +const _v3$1 = /*@__PURE__*/ new Vector3(); + +class DirectionalLightHelper extends Object3D { + + constructor( light, size, color ) { + + super(); + this.light = light; + this.light.updateMatrixWorld(); + + this.matrix = light.matrixWorld; + this.matrixAutoUpdate = false; + + this.color = color; + + if ( size === undefined ) size = 1; + + let geometry = new BufferGeometry(); + geometry.setAttribute( 'position', new Float32BufferAttribute( [ + - size, size, 0, + size, size, 0, + size, - size, 0, + - size, - size, 0, + - size, size, 0 + ], 3 ) ); + + const material = new LineBasicMaterial( { fog: false, toneMapped: false } ); + + this.lightPlane = new Line( geometry, material ); + this.add( this.lightPlane ); + + geometry = new BufferGeometry(); + geometry.setAttribute( 'position', new Float32BufferAttribute( [ 0, 0, 0, 0, 0, 1 ], 3 ) ); + + this.targetLine = new Line( geometry, material ); + this.add( this.targetLine ); + + this.update(); + + } + + dispose() { + + this.lightPlane.geometry.dispose(); + this.lightPlane.material.dispose(); + this.targetLine.geometry.dispose(); + this.targetLine.material.dispose(); + + } + + update() { + + _v1$6.setFromMatrixPosition( this.light.matrixWorld ); + _v2$3.setFromMatrixPosition( this.light.target.matrixWorld ); + _v3$1.subVectors( _v2$3, _v1$6 ); + + this.lightPlane.lookAt( _v2$3 ); + + if ( this.color !== undefined ) { + + this.lightPlane.material.color.set( this.color ); + this.targetLine.material.color.set( this.color ); + + } else { + + this.lightPlane.material.color.copy( this.light.color ); + this.targetLine.material.color.copy( this.light.color ); + + } + + this.targetLine.lookAt( _v2$3 ); + this.targetLine.scale.z = _v3$1.length(); + + } + +} + +const _vector$b = /*@__PURE__*/ new Vector3(); +const _camera = /*@__PURE__*/ new Camera(); + +/** + * - shows frustum, line of sight and up of the camera + * - suitable for fast updates + * - based on frustum visualization in lightgl.js shadowmap example + * http://evanw.github.com/lightgl.js/tests/shadowmap.html + */ + +class CameraHelper extends LineSegments { + + constructor( camera ) { + + const geometry = new BufferGeometry(); + const material = new LineBasicMaterial( { color: 0xffffff, vertexColors: true, toneMapped: false } ); + + const vertices = []; + const colors = []; + + const pointMap = {}; + + // colors + + const colorFrustum = new Color( 0xffaa00 ); + const colorCone = new Color( 0xff0000 ); + const colorUp = new Color( 0x00aaff ); + const colorTarget = new Color( 0xffffff ); + const colorCross = new Color( 0x333333 ); + + // near + + addLine( 'n1', 'n2', colorFrustum ); + addLine( 'n2', 'n4', colorFrustum ); + addLine( 'n4', 'n3', colorFrustum ); + addLine( 'n3', 'n1', colorFrustum ); + + // far + + addLine( 'f1', 'f2', colorFrustum ); + addLine( 'f2', 'f4', colorFrustum ); + addLine( 'f4', 'f3', colorFrustum ); + addLine( 'f3', 'f1', colorFrustum ); + + // sides + + addLine( 'n1', 'f1', colorFrustum ); + addLine( 'n2', 'f2', colorFrustum ); + addLine( 'n3', 'f3', colorFrustum ); + addLine( 'n4', 'f4', colorFrustum ); + + // cone + + addLine( 'p', 'n1', colorCone ); + addLine( 'p', 'n2', colorCone ); + addLine( 'p', 'n3', colorCone ); + addLine( 'p', 'n4', colorCone ); + + // up + + addLine( 'u1', 'u2', colorUp ); + addLine( 'u2', 'u3', colorUp ); + addLine( 'u3', 'u1', colorUp ); + + // target + + addLine( 'c', 't', colorTarget ); + addLine( 'p', 'c', colorCross ); + + // cross + + addLine( 'cn1', 'cn2', colorCross ); + addLine( 'cn3', 'cn4', colorCross ); + + addLine( 'cf1', 'cf2', colorCross ); + addLine( 'cf3', 'cf4', colorCross ); + + function addLine( a, b, color ) { + + addPoint( a, color ); + addPoint( b, color ); + + } + + function addPoint( id, color ) { + + vertices.push( 0, 0, 0 ); + colors.push( color.r, color.g, color.b ); + + if ( pointMap[ id ] === undefined ) { + + pointMap[ id ] = []; + + } + + pointMap[ id ].push( ( vertices.length / 3 ) - 1 ); + + } + + geometry.setAttribute( 'position', new Float32BufferAttribute( vertices, 3 ) ); + geometry.setAttribute( 'color', new Float32BufferAttribute( colors, 3 ) ); + + super( geometry, material ); + + this.type = 'CameraHelper'; + + this.camera = camera; + if ( this.camera.updateProjectionMatrix ) this.camera.updateProjectionMatrix(); + + this.matrix = camera.matrixWorld; + this.matrixAutoUpdate = false; + + this.pointMap = pointMap; + + this.update(); + + } + + update() { + + const geometry = this.geometry; + const pointMap = this.pointMap; + + const w = 1, h = 1; + + // we need just camera projection matrix inverse + // world matrix must be identity + + _camera.projectionMatrixInverse.copy( this.camera.projectionMatrixInverse ); + + // center / target + + setPoint( 'c', pointMap, geometry, _camera, 0, 0, - 1 ); + setPoint( 't', pointMap, geometry, _camera, 0, 0, 1 ); + + // near + + setPoint( 'n1', pointMap, geometry, _camera, - w, - h, - 1 ); + setPoint( 'n2', pointMap, geometry, _camera, w, - h, - 1 ); + setPoint( 'n3', pointMap, geometry, _camera, - w, h, - 1 ); + setPoint( 'n4', pointMap, geometry, _camera, w, h, - 1 ); + + // far + + setPoint( 'f1', pointMap, geometry, _camera, - w, - h, 1 ); + setPoint( 'f2', pointMap, geometry, _camera, w, - h, 1 ); + setPoint( 'f3', pointMap, geometry, _camera, - w, h, 1 ); + setPoint( 'f4', pointMap, geometry, _camera, w, h, 1 ); + + // up + + setPoint( 'u1', pointMap, geometry, _camera, w * 0.7, h * 1.1, - 1 ); + setPoint( 'u2', pointMap, geometry, _camera, - w * 0.7, h * 1.1, - 1 ); + setPoint( 'u3', pointMap, geometry, _camera, 0, h * 2, - 1 ); + + // cross + + setPoint( 'cf1', pointMap, geometry, _camera, - w, 0, 1 ); + setPoint( 'cf2', pointMap, geometry, _camera, w, 0, 1 ); + setPoint( 'cf3', pointMap, geometry, _camera, 0, - h, 1 ); + setPoint( 'cf4', pointMap, geometry, _camera, 0, h, 1 ); + + setPoint( 'cn1', pointMap, geometry, _camera, - w, 0, - 1 ); + setPoint( 'cn2', pointMap, geometry, _camera, w, 0, - 1 ); + setPoint( 'cn3', pointMap, geometry, _camera, 0, - h, - 1 ); + setPoint( 'cn4', pointMap, geometry, _camera, 0, h, - 1 ); + + geometry.getAttribute( 'position' ).needsUpdate = true; + + } + +} + + +function setPoint( point, pointMap, geometry, camera, x, y, z ) { + + _vector$b.set( x, y, z ).unproject( camera ); + + const points = pointMap[ point ]; + + if ( points !== undefined ) { + + const position = geometry.getAttribute( 'position' ); + + for ( let i = 0, l = points.length; i < l; i ++ ) { + + position.setXYZ( points[ i ], _vector$b.x, _vector$b.y, _vector$b.z ); + + } + + } + +} + +const _box$3 = /*@__PURE__*/ new Box3(); + +class BoxHelper extends LineSegments { + + constructor( object, color = 0xffff00 ) { + + const indices = new Uint16Array( [ 0, 1, 1, 2, 2, 3, 3, 0, 4, 5, 5, 6, 6, 7, 7, 4, 0, 4, 1, 5, 2, 6, 3, 7 ] ); + const positions = new Float32Array( 8 * 3 ); + + const geometry = new BufferGeometry(); + geometry.setIndex( new BufferAttribute( indices, 1 ) ); + geometry.setAttribute( 'position', new BufferAttribute( positions, 3 ) ); + + super( geometry, new LineBasicMaterial( { color: color, toneMapped: false } ) ); + + this.object = object; + this.type = 'BoxHelper'; + + this.matrixAutoUpdate = false; + + this.update(); + + } + + update( object ) { + + if ( object !== undefined ) { + + console.warn( 'THREE.BoxHelper: .update() has no longer arguments.' ); + + } + + if ( this.object !== undefined ) { + + _box$3.setFromObject( this.object ); + + } + + if ( _box$3.isEmpty() ) return; + + const min = _box$3.min; + const max = _box$3.max; + + /* + 5____4 + 1/___0/| + | 6__|_7 + 2/___3/ + + 0: max.x, max.y, max.z + 1: min.x, max.y, max.z + 2: min.x, min.y, max.z + 3: max.x, min.y, max.z + 4: max.x, max.y, min.z + 5: min.x, max.y, min.z + 6: min.x, min.y, min.z + 7: max.x, min.y, min.z + */ + + const position = this.geometry.attributes.position; + const array = position.array; + + array[ 0 ] = max.x; array[ 1 ] = max.y; array[ 2 ] = max.z; + array[ 3 ] = min.x; array[ 4 ] = max.y; array[ 5 ] = max.z; + array[ 6 ] = min.x; array[ 7 ] = min.y; array[ 8 ] = max.z; + array[ 9 ] = max.x; array[ 10 ] = min.y; array[ 11 ] = max.z; + array[ 12 ] = max.x; array[ 13 ] = max.y; array[ 14 ] = min.z; + array[ 15 ] = min.x; array[ 16 ] = max.y; array[ 17 ] = min.z; + array[ 18 ] = min.x; array[ 19 ] = min.y; array[ 20 ] = min.z; + array[ 21 ] = max.x; array[ 22 ] = min.y; array[ 23 ] = min.z; + + position.needsUpdate = true; + + this.geometry.computeBoundingSphere(); + + + } + + setFromObject( object ) { + + this.object = object; + this.update(); + + return this; + + } + + copy( source ) { + + LineSegments.prototype.copy.call( this, source ); + + this.object = source.object; + + return this; + + } + +} + +class Box3Helper extends LineSegments { + + constructor( box, color = 0xffff00 ) { + + const indices = new Uint16Array( [ 0, 1, 1, 2, 2, 3, 3, 0, 4, 5, 5, 6, 6, 7, 7, 4, 0, 4, 1, 5, 2, 6, 3, 7 ] ); + + const positions = [ 1, 1, 1, - 1, 1, 1, - 1, - 1, 1, 1, - 1, 1, 1, 1, - 1, - 1, 1, - 1, - 1, - 1, - 1, 1, - 1, - 1 ]; + + const geometry = new BufferGeometry(); + + geometry.setIndex( new BufferAttribute( indices, 1 ) ); + + geometry.setAttribute( 'position', new Float32BufferAttribute( positions, 3 ) ); + + super( geometry, new LineBasicMaterial( { color: color, toneMapped: false } ) ); + + this.box = box; + + this.type = 'Box3Helper'; + + this.geometry.computeBoundingSphere(); + + } + + updateMatrixWorld( force ) { + + const box = this.box; + + if ( box.isEmpty() ) return; + + box.getCenter( this.position ); + + box.getSize( this.scale ); + + this.scale.multiplyScalar( 0.5 ); + + super.updateMatrixWorld( force ); + + } + +} + +class PlaneHelper extends Line { + + constructor( plane, size, hex ) { + + const color = ( hex !== undefined ) ? hex : 0xffff00; + + const positions = [ 1, - 1, 1, - 1, 1, 1, - 1, - 1, 1, 1, 1, 1, - 1, 1, 1, - 1, - 1, 1, 1, - 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 0 ]; + + const geometry = new BufferGeometry(); + geometry.setAttribute( 'position', new Float32BufferAttribute( positions, 3 ) ); + geometry.computeBoundingSphere(); + + super( geometry, new LineBasicMaterial( { color: color, toneMapped: false } ) ); + + this.type = 'PlaneHelper'; + + this.plane = plane; + + this.size = ( size === undefined ) ? 1 : size; + + const positions2 = [ 1, 1, 1, - 1, 1, 1, - 1, - 1, 1, 1, 1, 1, - 1, - 1, 1, 1, - 1, 1 ]; + + const geometry2 = new BufferGeometry(); + geometry2.setAttribute( 'position', new Float32BufferAttribute( positions2, 3 ) ); + geometry2.computeBoundingSphere(); + + this.add( new Mesh( geometry2, new MeshBasicMaterial( { color: color, opacity: 0.2, transparent: true, depthWrite: false, toneMapped: false } ) ) ); + + } + + updateMatrixWorld( force ) { + + let scale = - this.plane.constant; + + if ( Math.abs( scale ) < 1e-8 ) scale = 1e-8; // sign does not matter + + this.scale.set( 0.5 * this.size, 0.5 * this.size, scale ); + + this.children[ 0 ].material.side = ( scale < 0 ) ? BackSide : FrontSide; // renderer flips side when determinant < 0; flipping not wanted here + + this.lookAt( this.plane.normal ); + + super.updateMatrixWorld( force ); + + } + +} + +const _axis = /*@__PURE__*/ new Vector3(); +let _lineGeometry, _coneGeometry; + +class ArrowHelper extends Object3D { + + constructor( dir, origin, length, color, headLength, headWidth ) { + + super(); + // dir is assumed to be normalized + + this.type = 'ArrowHelper'; + + if ( dir === undefined ) dir = new Vector3( 0, 0, 1 ); + if ( origin === undefined ) origin = new Vector3( 0, 0, 0 ); + if ( length === undefined ) length = 1; + if ( color === undefined ) color = 0xffff00; + if ( headLength === undefined ) headLength = 0.2 * length; + if ( headWidth === undefined ) headWidth = 0.2 * headLength; + + if ( _lineGeometry === undefined ) { + + _lineGeometry = new BufferGeometry(); + _lineGeometry.setAttribute( 'position', new Float32BufferAttribute( [ 0, 0, 0, 0, 1, 0 ], 3 ) ); + + _coneGeometry = new CylinderBufferGeometry( 0, 0.5, 1, 5, 1 ); + _coneGeometry.translate( 0, - 0.5, 0 ); + + } + + this.position.copy( origin ); + + this.line = new Line( _lineGeometry, new LineBasicMaterial( { color: color, toneMapped: false } ) ); + this.line.matrixAutoUpdate = false; + this.add( this.line ); + + this.cone = new Mesh( _coneGeometry, new MeshBasicMaterial( { color: color, toneMapped: false } ) ); + this.cone.matrixAutoUpdate = false; + this.add( this.cone ); + + this.setDirection( dir ); + this.setLength( length, headLength, headWidth ); + + } + + setDirection( dir ) { + + // dir is assumed to be normalized + + if ( dir.y > 0.99999 ) { + + this.quaternion.set( 0, 0, 0, 1 ); + + } else if ( dir.y < - 0.99999 ) { + + this.quaternion.set( 1, 0, 0, 0 ); + + } else { + + _axis.set( dir.z, 0, - dir.x ).normalize(); + + const radians = Math.acos( dir.y ); + + this.quaternion.setFromAxisAngle( _axis, radians ); + + } + + } + + setLength( length, headLength, headWidth ) { + + if ( headLength === undefined ) headLength = 0.2 * length; + if ( headWidth === undefined ) headWidth = 0.2 * headLength; + + this.line.scale.set( 1, Math.max( 0.0001, length - headLength ), 1 ); // see #17458 + this.line.updateMatrix(); + + this.cone.scale.set( headWidth, headLength, headWidth ); + this.cone.position.y = length; + this.cone.updateMatrix(); + + } + + setColor( color ) { + + this.line.material.color.set( color ); + this.cone.material.color.set( color ); + + } + + copy( source ) { + + super.copy( source, false ); + + this.line.copy( source.line ); + this.cone.copy( source.cone ); + + return this; + + } + +} + +class AxesHelper extends LineSegments { + + constructor( size = 1 ) { + + const vertices = [ + 0, 0, 0, size, 0, 0, + 0, 0, 0, 0, size, 0, + 0, 0, 0, 0, 0, size + ]; + + const colors = [ + 1, 0, 0, 1, 0.6, 0, + 0, 1, 0, 0.6, 1, 0, + 0, 0, 1, 0, 0.6, 1 + ]; + + const geometry = new BufferGeometry(); + geometry.setAttribute( 'position', new Float32BufferAttribute( vertices, 3 ) ); + geometry.setAttribute( 'color', new Float32BufferAttribute( colors, 3 ) ); + + const material = new LineBasicMaterial( { vertexColors: true, toneMapped: false } ); + + super( geometry, material ); + + this.type = 'AxesHelper'; + + } + +} + +const LOD_MIN = 4; +const LOD_MAX = 8; +const SIZE_MAX = Math.pow( 2, LOD_MAX ); + +// The standard deviations (radians) associated with the extra mips. These are +// chosen to approximate a Trowbridge-Reitz distribution function times the +// geometric shadowing function. These sigma values squared must match the +// variance #defines in cube_uv_reflection_fragment.glsl.js. +const EXTRA_LOD_SIGMA = [ 0.125, 0.215, 0.35, 0.446, 0.526, 0.582 ]; + +const TOTAL_LODS = LOD_MAX - LOD_MIN + 1 + EXTRA_LOD_SIGMA.length; + +// The maximum length of the blur for loop. Smaller sigmas will use fewer +// samples and exit early, but not recompile the shader. +const MAX_SAMPLES = 20; + +const ENCODINGS = { + [ LinearEncoding ]: 0, + [ sRGBEncoding ]: 1, + [ RGBEEncoding ]: 2, + [ RGBM7Encoding ]: 3, + [ RGBM16Encoding ]: 4, + [ RGBDEncoding ]: 5, + [ GammaEncoding ]: 6 +}; + +const _flatCamera = /*@__PURE__*/ new OrthographicCamera(); +const { _lodPlanes, _sizeLods, _sigmas } = /*@__PURE__*/ _createPlanes(); +let _oldTarget = null; + +// Golden Ratio +const PHI = ( 1 + Math.sqrt( 5 ) ) / 2; +const INV_PHI = 1 / PHI; + +// Vertices of a dodecahedron (except the opposites, which represent the +// same axis), used as axis directions evenly spread on a sphere. +const _axisDirections = [ + /*@__PURE__*/ new Vector3( 1, 1, 1 ), + /*@__PURE__*/ new Vector3( - 1, 1, 1 ), + /*@__PURE__*/ new Vector3( 1, 1, - 1 ), + /*@__PURE__*/ new Vector3( - 1, 1, - 1 ), + /*@__PURE__*/ new Vector3( 0, PHI, INV_PHI ), + /*@__PURE__*/ new Vector3( 0, PHI, - INV_PHI ), + /*@__PURE__*/ new Vector3( INV_PHI, 0, PHI ), + /*@__PURE__*/ new Vector3( - INV_PHI, 0, PHI ), + /*@__PURE__*/ new Vector3( PHI, INV_PHI, 0 ), + /*@__PURE__*/ new Vector3( - PHI, INV_PHI, 0 ) ]; + +/** + * This class generates a Prefiltered, Mipmapped Radiance Environment Map + * (PMREM) from a cubeMap environment texture. This allows different levels of + * blur to be quickly accessed based on material roughness. It is packed into a + * special CubeUV format that allows us to perform custom interpolation so that + * we can support nonlinear formats such as RGBE. Unlike a traditional mipmap + * chain, it only goes down to the LOD_MIN level (above), and then creates extra + * even more filtered 'mips' at the same LOD_MIN resolution, associated with + * higher roughness levels. In this way we maintain resolution to smoothly + * interpolate diffuse lighting while limiting sampling computation. + */ + +class PMREMGenerator { + + constructor( renderer ) { + + this._renderer = renderer; + this._pingPongRenderTarget = null; + + this._blurMaterial = _getBlurShader( MAX_SAMPLES ); + this._equirectShader = null; + this._cubemapShader = null; + + this._compileMaterial( this._blurMaterial ); + + } + + /** + * Generates a PMREM from a supplied Scene, which can be faster than using an + * image if networking bandwidth is low. Optional sigma specifies a blur radius + * in radians to be applied to the scene before PMREM generation. Optional near + * and far planes ensure the scene is rendered in its entirety (the cubeCamera + * is placed at the origin). + */ + fromScene( scene, sigma = 0, near = 0.1, far = 100 ) { + + _oldTarget = this._renderer.getRenderTarget(); + const cubeUVRenderTarget = this._allocateTargets(); + + this._sceneToCubeUV( scene, near, far, cubeUVRenderTarget ); + if ( sigma > 0 ) { + + this._blur( cubeUVRenderTarget, 0, 0, sigma ); + + } + + this._applyPMREM( cubeUVRenderTarget ); + this._cleanup( cubeUVRenderTarget ); + + return cubeUVRenderTarget; + + } + + /** + * Generates a PMREM from an equirectangular texture, which can be either LDR + * (RGBFormat) or HDR (RGBEFormat). The ideal input image size is 1k (1024 x 512), + * as this matches best with the 256 x 256 cubemap output. + */ + fromEquirectangular( equirectangular ) { + + return this._fromTexture( equirectangular ); + + } + + /** + * Generates a PMREM from an cubemap texture, which can be either LDR + * (RGBFormat) or HDR (RGBEFormat). The ideal input cube size is 256 x 256, + * as this matches best with the 256 x 256 cubemap output. + */ + fromCubemap( cubemap ) { + + return this._fromTexture( cubemap ); + + } + + /** + * Pre-compiles the cubemap shader. You can get faster start-up by invoking this method during + * your texture's network fetch for increased concurrency. + */ + compileCubemapShader() { + + if ( this._cubemapShader === null ) { + + this._cubemapShader = _getCubemapShader(); + this._compileMaterial( this._cubemapShader ); + + } + + } + + /** + * Pre-compiles the equirectangular shader. You can get faster start-up by invoking this method during + * your texture's network fetch for increased concurrency. + */ + compileEquirectangularShader() { + + if ( this._equirectShader === null ) { + + this._equirectShader = _getEquirectShader(); + this._compileMaterial( this._equirectShader ); + + } + + } + + /** + * Disposes of the PMREMGenerator's internal memory. Note that PMREMGenerator is a static class, + * so you should not need more than one PMREMGenerator object. If you do, calling dispose() on + * one of them will cause any others to also become unusable. + */ + dispose() { + + this._blurMaterial.dispose(); + + if ( this._cubemapShader !== null ) this._cubemapShader.dispose(); + if ( this._equirectShader !== null ) this._equirectShader.dispose(); + + for ( let i = 0; i < _lodPlanes.length; i ++ ) { + + _lodPlanes[ i ].dispose(); + + } + + } + + // private interface + + _cleanup( outputTarget ) { + + this._pingPongRenderTarget.dispose(); + this._renderer.setRenderTarget( _oldTarget ); + outputTarget.scissorTest = false; + _setViewport( outputTarget, 0, 0, outputTarget.width, outputTarget.height ); + + } + + _fromTexture( texture ) { + + _oldTarget = this._renderer.getRenderTarget(); + const cubeUVRenderTarget = this._allocateTargets( texture ); + this._textureToCubeUV( texture, cubeUVRenderTarget ); + this._applyPMREM( cubeUVRenderTarget ); + this._cleanup( cubeUVRenderTarget ); + + return cubeUVRenderTarget; + + } + + _allocateTargets( texture ) { // warning: null texture is valid + + const params = { + magFilter: NearestFilter, + minFilter: NearestFilter, + generateMipmaps: false, + type: UnsignedByteType, + format: RGBEFormat, + encoding: _isLDR( texture ) ? texture.encoding : RGBEEncoding, + depthBuffer: false + }; + + const cubeUVRenderTarget = _createRenderTarget( params ); + cubeUVRenderTarget.depthBuffer = texture ? false : true; + this._pingPongRenderTarget = _createRenderTarget( params ); + return cubeUVRenderTarget; + + } + + _compileMaterial( material ) { + + const tmpMesh = new Mesh( _lodPlanes[ 0 ], material ); + this._renderer.compile( tmpMesh, _flatCamera ); + + } + + _sceneToCubeUV( scene, near, far, cubeUVRenderTarget ) { + + const fov = 90; + const aspect = 1; + const cubeCamera = new PerspectiveCamera( fov, aspect, near, far ); + const upSign = [ 1, - 1, 1, 1, 1, 1 ]; + const forwardSign = [ 1, 1, 1, - 1, - 1, - 1 ]; + const renderer = this._renderer; + + const outputEncoding = renderer.outputEncoding; + const toneMapping = renderer.toneMapping; + const clearColor = renderer.getClearColor(); + const clearAlpha = renderer.getClearAlpha(); + + renderer.toneMapping = NoToneMapping; + renderer.outputEncoding = LinearEncoding; + + let background = scene.background; + if ( background && background.isColor ) { + + background.convertSRGBToLinear(); + // Convert linear to RGBE + const maxComponent = Math.max( background.r, background.g, background.b ); + const fExp = Math.min( Math.max( Math.ceil( Math.log2( maxComponent ) ), - 128.0 ), 127.0 ); + background = background.multiplyScalar( Math.pow( 2.0, - fExp ) ); + const alpha = ( fExp + 128.0 ) / 255.0; + renderer.setClearColor( background, alpha ); + scene.background = null; + + } + + for ( let i = 0; i < 6; i ++ ) { + + const col = i % 3; + if ( col == 0 ) { + + cubeCamera.up.set( 0, upSign[ i ], 0 ); + cubeCamera.lookAt( forwardSign[ i ], 0, 0 ); + + } else if ( col == 1 ) { + + cubeCamera.up.set( 0, 0, upSign[ i ] ); + cubeCamera.lookAt( 0, forwardSign[ i ], 0 ); + + } else { + + cubeCamera.up.set( 0, upSign[ i ], 0 ); + cubeCamera.lookAt( 0, 0, forwardSign[ i ] ); + + } + + _setViewport( cubeUVRenderTarget, + col * SIZE_MAX, i > 2 ? SIZE_MAX : 0, SIZE_MAX, SIZE_MAX ); + renderer.setRenderTarget( cubeUVRenderTarget ); + renderer.render( scene, cubeCamera ); + + } + + renderer.toneMapping = toneMapping; + renderer.outputEncoding = outputEncoding; + renderer.setClearColor( clearColor, clearAlpha ); + + } + + _textureToCubeUV( texture, cubeUVRenderTarget ) { + + const renderer = this._renderer; + + if ( texture.isCubeTexture ) { + + if ( this._cubemapShader == null ) { + + this._cubemapShader = _getCubemapShader(); + + } + + } else { + + if ( this._equirectShader == null ) { + + this._equirectShader = _getEquirectShader(); + + } + + } + + const material = texture.isCubeTexture ? this._cubemapShader : this._equirectShader; + const mesh = new Mesh( _lodPlanes[ 0 ], material ); + + const uniforms = material.uniforms; + + uniforms[ 'envMap' ].value = texture; + + if ( ! texture.isCubeTexture ) { + + uniforms[ 'texelSize' ].value.set( 1.0 / texture.image.width, 1.0 / texture.image.height ); + + } + + uniforms[ 'inputEncoding' ].value = ENCODINGS[ texture.encoding ]; + uniforms[ 'outputEncoding' ].value = ENCODINGS[ cubeUVRenderTarget.texture.encoding ]; + + _setViewport( cubeUVRenderTarget, 0, 0, 3 * SIZE_MAX, 2 * SIZE_MAX ); + + renderer.setRenderTarget( cubeUVRenderTarget ); + renderer.render( mesh, _flatCamera ); + + } + + _applyPMREM( cubeUVRenderTarget ) { + + const renderer = this._renderer; + const autoClear = renderer.autoClear; + renderer.autoClear = false; + + for ( let i = 1; i < TOTAL_LODS; i ++ ) { + + const sigma = Math.sqrt( _sigmas[ i ] * _sigmas[ i ] - _sigmas[ i - 1 ] * _sigmas[ i - 1 ] ); + + const poleAxis = _axisDirections[ ( i - 1 ) % _axisDirections.length ]; + + this._blur( cubeUVRenderTarget, i - 1, i, sigma, poleAxis ); + + } + + renderer.autoClear = autoClear; + + } + + /** + * This is a two-pass Gaussian blur for a cubemap. Normally this is done + * vertically and horizontally, but this breaks down on a cube. Here we apply + * the blur latitudinally (around the poles), and then longitudinally (towards + * the poles) to approximate the orthogonally-separable blur. It is least + * accurate at the poles, but still does a decent job. + */ + _blur( cubeUVRenderTarget, lodIn, lodOut, sigma, poleAxis ) { + + const pingPongRenderTarget = this._pingPongRenderTarget; + + this._halfBlur( + cubeUVRenderTarget, + pingPongRenderTarget, + lodIn, + lodOut, + sigma, + 'latitudinal', + poleAxis ); + + this._halfBlur( + pingPongRenderTarget, + cubeUVRenderTarget, + lodOut, + lodOut, + sigma, + 'longitudinal', + poleAxis ); + + } + + _halfBlur( targetIn, targetOut, lodIn, lodOut, sigmaRadians, direction, poleAxis ) { + + const renderer = this._renderer; + const blurMaterial = this._blurMaterial; + + if ( direction !== 'latitudinal' && direction !== 'longitudinal' ) { + + console.error( + 'blur direction must be either latitudinal or longitudinal!' ); + + } + + // Number of standard deviations at which to cut off the discrete approximation. + const STANDARD_DEVIATIONS = 3; + + const blurMesh = new Mesh( _lodPlanes[ lodOut ], blurMaterial ); + const blurUniforms = blurMaterial.uniforms; + + const pixels = _sizeLods[ lodIn ] - 1; + const radiansPerPixel = isFinite( sigmaRadians ) ? Math.PI / ( 2 * pixels ) : 2 * Math.PI / ( 2 * MAX_SAMPLES - 1 ); + const sigmaPixels = sigmaRadians / radiansPerPixel; + const samples = isFinite( sigmaRadians ) ? 1 + Math.floor( STANDARD_DEVIATIONS * sigmaPixels ) : MAX_SAMPLES; + + if ( samples > MAX_SAMPLES ) { + + console.warn( `sigmaRadians, ${ + sigmaRadians}, is too large and will clip, as it requested ${ + samples} samples when the maximum is set to ${MAX_SAMPLES}` ); + + } + + const weights = []; + let sum = 0; + + for ( let i = 0; i < MAX_SAMPLES; ++ i ) { + + const x = i / sigmaPixels; + const weight = Math.exp( - x * x / 2 ); + weights.push( weight ); + + if ( i == 0 ) { + + sum += weight; + + } else if ( i < samples ) { + + sum += 2 * weight; + + } + + } + + for ( let i = 0; i < weights.length; i ++ ) { + + weights[ i ] = weights[ i ] / sum; + + } + + blurUniforms[ 'envMap' ].value = targetIn.texture; + blurUniforms[ 'samples' ].value = samples; + blurUniforms[ 'weights' ].value = weights; + blurUniforms[ 'latitudinal' ].value = direction === 'latitudinal'; + + if ( poleAxis ) { + + blurUniforms[ 'poleAxis' ].value = poleAxis; + + } + + blurUniforms[ 'dTheta' ].value = radiansPerPixel; + blurUniforms[ 'mipInt' ].value = LOD_MAX - lodIn; + blurUniforms[ 'inputEncoding' ].value = ENCODINGS[ targetIn.texture.encoding ]; + blurUniforms[ 'outputEncoding' ].value = ENCODINGS[ targetIn.texture.encoding ]; + + const outputSize = _sizeLods[ lodOut ]; + const x = 3 * Math.max( 0, SIZE_MAX - 2 * outputSize ); + const y = ( lodOut === 0 ? 0 : 2 * SIZE_MAX ) + 2 * outputSize * ( lodOut > LOD_MAX - LOD_MIN ? lodOut - LOD_MAX + LOD_MIN : 0 ); + + _setViewport( targetOut, x, y, 3 * outputSize, 2 * outputSize ); + renderer.setRenderTarget( targetOut ); + renderer.render( blurMesh, _flatCamera ); + + } + +} + +function _isLDR( texture ) { + + if ( texture === undefined || texture.type !== UnsignedByteType ) return false; + + return texture.encoding === LinearEncoding || texture.encoding === sRGBEncoding || texture.encoding === GammaEncoding; + +} + +function _createPlanes() { + + const _lodPlanes = []; + const _sizeLods = []; + const _sigmas = []; + + let lod = LOD_MAX; + + for ( let i = 0; i < TOTAL_LODS; i ++ ) { + + const sizeLod = Math.pow( 2, lod ); + _sizeLods.push( sizeLod ); + let sigma = 1.0 / sizeLod; + + if ( i > LOD_MAX - LOD_MIN ) { + + sigma = EXTRA_LOD_SIGMA[ i - LOD_MAX + LOD_MIN - 1 ]; + + } else if ( i == 0 ) { + + sigma = 0; + + } + + _sigmas.push( sigma ); + + const texelSize = 1.0 / ( sizeLod - 1 ); + const min = - texelSize / 2; + const max = 1 + texelSize / 2; + const uv1 = [ min, min, max, min, max, max, min, min, max, max, min, max ]; + + const cubeFaces = 6; + const vertices = 6; + const positionSize = 3; + const uvSize = 2; + const faceIndexSize = 1; + + const position = new Float32Array( positionSize * vertices * cubeFaces ); + const uv = new Float32Array( uvSize * vertices * cubeFaces ); + const faceIndex = new Float32Array( faceIndexSize * vertices * cubeFaces ); + + for ( let face = 0; face < cubeFaces; face ++ ) { + + const x = ( face % 3 ) * 2 / 3 - 1; + const y = face > 2 ? 0 : - 1; + const coordinates = [ + x, y, 0, + x + 2 / 3, y, 0, + x + 2 / 3, y + 1, 0, + x, y, 0, + x + 2 / 3, y + 1, 0, + x, y + 1, 0 + ]; + position.set( coordinates, positionSize * vertices * face ); + uv.set( uv1, uvSize * vertices * face ); + const fill = [ face, face, face, face, face, face ]; + faceIndex.set( fill, faceIndexSize * vertices * face ); + + } + + const planes = new BufferGeometry(); + planes.setAttribute( 'position', new BufferAttribute( position, positionSize ) ); + planes.setAttribute( 'uv', new BufferAttribute( uv, uvSize ) ); + planes.setAttribute( 'faceIndex', new BufferAttribute( faceIndex, faceIndexSize ) ); + _lodPlanes.push( planes ); + + if ( lod > LOD_MIN ) { + + lod --; + + } + + } + + return { _lodPlanes, _sizeLods, _sigmas }; + +} + +function _createRenderTarget( params ) { + + const cubeUVRenderTarget = new WebGLRenderTarget( 3 * SIZE_MAX, 3 * SIZE_MAX, params ); + cubeUVRenderTarget.texture.mapping = CubeUVReflectionMapping; + cubeUVRenderTarget.texture.name = 'PMREM.cubeUv'; + cubeUVRenderTarget.scissorTest = true; + return cubeUVRenderTarget; + +} + +function _setViewport( target, x, y, width, height ) { + + target.viewport.set( x, y, width, height ); + target.scissor.set( x, y, width, height ); + +} + +function _getBlurShader( maxSamples ) { + + const weights = new Float32Array( maxSamples ); + const poleAxis = new Vector3( 0, 1, 0 ); + const shaderMaterial = new RawShaderMaterial( { + + name: 'SphericalGaussianBlur', + + defines: { 'n': maxSamples }, + + uniforms: { + 'envMap': { value: null }, + 'samples': { value: 1 }, + 'weights': { value: weights }, + 'latitudinal': { value: false }, + 'dTheta': { value: 0 }, + 'mipInt': { value: 0 }, + 'poleAxis': { value: poleAxis }, + 'inputEncoding': { value: ENCODINGS[ LinearEncoding ] }, + 'outputEncoding': { value: ENCODINGS[ LinearEncoding ] } + }, + + vertexShader: _getCommonVertexShader(), + + fragmentShader: /* glsl */` + + precision mediump float; + precision mediump int; + + varying vec3 vOutputDirection; + + uniform sampler2D envMap; + uniform int samples; + uniform float weights[ n ]; + uniform bool latitudinal; + uniform float dTheta; + uniform float mipInt; + uniform vec3 poleAxis; + + ${ _getEncodings() } + + #define ENVMAP_TYPE_CUBE_UV + #include + + vec3 getSample( float theta, vec3 axis ) { + + float cosTheta = cos( theta ); + // Rodrigues' axis-angle rotation + vec3 sampleDirection = vOutputDirection * cosTheta + + cross( axis, vOutputDirection ) * sin( theta ) + + axis * dot( axis, vOutputDirection ) * ( 1.0 - cosTheta ); + + return bilinearCubeUV( envMap, sampleDirection, mipInt ); + + } + + void main() { + + vec3 axis = latitudinal ? poleAxis : cross( poleAxis, vOutputDirection ); + + if ( all( equal( axis, vec3( 0.0 ) ) ) ) { + + axis = vec3( vOutputDirection.z, 0.0, - vOutputDirection.x ); + + } + + axis = normalize( axis ); + + gl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 ); + gl_FragColor.rgb += weights[ 0 ] * getSample( 0.0, axis ); + + for ( int i = 1; i < n; i++ ) { + + if ( i >= samples ) { + + break; + + } + + float theta = dTheta * float( i ); + gl_FragColor.rgb += weights[ i ] * getSample( -1.0 * theta, axis ); + gl_FragColor.rgb += weights[ i ] * getSample( theta, axis ); + + } + + gl_FragColor = linearToOutputTexel( gl_FragColor ); + + } + `, + + blending: NoBlending, + depthTest: false, + depthWrite: false + + } ); + + return shaderMaterial; + +} + +function _getEquirectShader() { + + const texelSize = new Vector2( 1, 1 ); + const shaderMaterial = new RawShaderMaterial( { + + name: 'EquirectangularToCubeUV', + + uniforms: { + 'envMap': { value: null }, + 'texelSize': { value: texelSize }, + 'inputEncoding': { value: ENCODINGS[ LinearEncoding ] }, + 'outputEncoding': { value: ENCODINGS[ LinearEncoding ] } + }, + + vertexShader: _getCommonVertexShader(), + + fragmentShader: /* glsl */` + + precision mediump float; + precision mediump int; + + varying vec3 vOutputDirection; + + uniform sampler2D envMap; + uniform vec2 texelSize; + + ${ _getEncodings() } + + #include + + void main() { + + gl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 ); + + vec3 outputDirection = normalize( vOutputDirection ); + vec2 uv = equirectUv( outputDirection ); + + vec2 f = fract( uv / texelSize - 0.5 ); + uv -= f * texelSize; + vec3 tl = envMapTexelToLinear( texture2D ( envMap, uv ) ).rgb; + uv.x += texelSize.x; + vec3 tr = envMapTexelToLinear( texture2D ( envMap, uv ) ).rgb; + uv.y += texelSize.y; + vec3 br = envMapTexelToLinear( texture2D ( envMap, uv ) ).rgb; + uv.x -= texelSize.x; + vec3 bl = envMapTexelToLinear( texture2D ( envMap, uv ) ).rgb; + + vec3 tm = mix( tl, tr, f.x ); + vec3 bm = mix( bl, br, f.x ); + gl_FragColor.rgb = mix( tm, bm, f.y ); + + gl_FragColor = linearToOutputTexel( gl_FragColor ); + + } + `, + + blending: NoBlending, + depthTest: false, + depthWrite: false + + } ); + + return shaderMaterial; + +} + +function _getCubemapShader() { + + const shaderMaterial = new RawShaderMaterial( { + + name: 'CubemapToCubeUV', + + uniforms: { + 'envMap': { value: null }, + 'inputEncoding': { value: ENCODINGS[ LinearEncoding ] }, + 'outputEncoding': { value: ENCODINGS[ LinearEncoding ] } + }, + + vertexShader: _getCommonVertexShader(), + + fragmentShader: /* glsl */` + + precision mediump float; + precision mediump int; + + varying vec3 vOutputDirection; + + uniform samplerCube envMap; + + ${ _getEncodings() } + + void main() { + + gl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 ); + gl_FragColor.rgb = envMapTexelToLinear( textureCube( envMap, vec3( - vOutputDirection.x, vOutputDirection.yz ) ) ).rgb; + gl_FragColor = linearToOutputTexel( gl_FragColor ); + + } + `, + + blending: NoBlending, + depthTest: false, + depthWrite: false + + } ); + + return shaderMaterial; + +} + +function _getCommonVertexShader() { + + return /* glsl */` + + precision mediump float; + precision mediump int; + + attribute vec3 position; + attribute vec2 uv; + attribute float faceIndex; + + varying vec3 vOutputDirection; + + // RH coordinate system; PMREM face-indexing convention + vec3 getDirection( vec2 uv, float face ) { + + uv = 2.0 * uv - 1.0; + + vec3 direction = vec3( uv, 1.0 ); + + if ( face == 0.0 ) { + + direction = direction.zyx; // ( 1, v, u ) pos x + + } else if ( face == 1.0 ) { + + direction = direction.xzy; + direction.xz *= -1.0; // ( -u, 1, -v ) pos y + + } else if ( face == 2.0 ) { + + direction.x *= -1.0; // ( -u, v, 1 ) pos z + + } else if ( face == 3.0 ) { + + direction = direction.zyx; + direction.xz *= -1.0; // ( -1, v, -u ) neg x + + } else if ( face == 4.0 ) { + + direction = direction.xzy; + direction.xy *= -1.0; // ( -u, -1, v ) neg y + + } else if ( face == 5.0 ) { + + direction.z *= -1.0; // ( u, v, -1 ) neg z + + } + + return direction; + + } + + void main() { + + vOutputDirection = getDirection( uv, faceIndex ); + gl_Position = vec4( position, 1.0 ); + + } + `; + +} + +function _getEncodings() { + + return /* glsl */` + + uniform int inputEncoding; + uniform int outputEncoding; + + #include + + vec4 inputTexelToLinear( vec4 value ) { + + if ( inputEncoding == 0 ) { + + return value; + + } else if ( inputEncoding == 1 ) { + + return sRGBToLinear( value ); + + } else if ( inputEncoding == 2 ) { + + return RGBEToLinear( value ); + + } else if ( inputEncoding == 3 ) { + + return RGBMToLinear( value, 7.0 ); + + } else if ( inputEncoding == 4 ) { + + return RGBMToLinear( value, 16.0 ); + + } else if ( inputEncoding == 5 ) { + + return RGBDToLinear( value, 256.0 ); + + } else { + + return GammaToLinear( value, 2.2 ); + + } + + } + + vec4 linearToOutputTexel( vec4 value ) { + + if ( outputEncoding == 0 ) { + + return value; + + } else if ( outputEncoding == 1 ) { + + return LinearTosRGB( value ); + + } else if ( outputEncoding == 2 ) { + + return LinearToRGBE( value ); + + } else if ( outputEncoding == 3 ) { + + return LinearToRGBM( value, 7.0 ); + + } else if ( outputEncoding == 4 ) { + + return LinearToRGBM( value, 16.0 ); + + } else if ( outputEncoding == 5 ) { + + return LinearToRGBD( value, 256.0 ); + + } else { + + return LinearToGamma( value, 2.2 ); + + } + + } + + vec4 envMapTexelToLinear( vec4 color ) { + + return inputTexelToLinear( color ); + + } + `; + +} + +function Face4( a, b, c, d, normal, color, materialIndex ) { + + console.warn( 'THREE.Face4 has been removed. A THREE.Face3 will be created instead.' ); + return new Face3( a, b, c, normal, color, materialIndex ); + +} + +const LineStrip = 0; +const LinePieces = 1; +const NoColors = 0; +const FaceColors = 1; +const VertexColors = 2; + +function MeshFaceMaterial( materials ) { + + console.warn( 'THREE.MeshFaceMaterial has been removed. Use an Array instead.' ); + return materials; + +} + +function MultiMaterial( materials ) { + + if ( materials === undefined ) materials = []; + + console.warn( 'THREE.MultiMaterial has been removed. Use an Array instead.' ); + materials.isMultiMaterial = true; + materials.materials = materials; + materials.clone = function () { + + return materials.slice(); + + }; + + return materials; + +} + +function PointCloud( geometry, material ) { + + console.warn( 'THREE.PointCloud has been renamed to THREE.Points.' ); + return new Points( geometry, material ); + +} + +function Particle( material ) { + + console.warn( 'THREE.Particle has been renamed to THREE.Sprite.' ); + return new Sprite( material ); + +} + +function ParticleSystem( geometry, material ) { + + console.warn( 'THREE.ParticleSystem has been renamed to THREE.Points.' ); + return new Points( geometry, material ); + +} + +function PointCloudMaterial( parameters ) { + + console.warn( 'THREE.PointCloudMaterial has been renamed to THREE.PointsMaterial.' ); + return new PointsMaterial( parameters ); + +} + +function ParticleBasicMaterial( parameters ) { + + console.warn( 'THREE.ParticleBasicMaterial has been renamed to THREE.PointsMaterial.' ); + return new PointsMaterial( parameters ); + +} + +function ParticleSystemMaterial( parameters ) { + + console.warn( 'THREE.ParticleSystemMaterial has been renamed to THREE.PointsMaterial.' ); + return new PointsMaterial( parameters ); + +} + +function Vertex( x, y, z ) { + + console.warn( 'THREE.Vertex has been removed. Use THREE.Vector3 instead.' ); + return new Vector3( x, y, z ); + +} + +// + +function DynamicBufferAttribute( array, itemSize ) { + + console.warn( 'THREE.DynamicBufferAttribute has been removed. Use new THREE.BufferAttribute().setUsage( THREE.DynamicDrawUsage ) instead.' ); + return new BufferAttribute( array, itemSize ).setUsage( DynamicDrawUsage ); + +} + +function Int8Attribute( array, itemSize ) { + + console.warn( 'THREE.Int8Attribute has been removed. Use new THREE.Int8BufferAttribute() instead.' ); + return new Int8BufferAttribute( array, itemSize ); + +} + +function Uint8Attribute( array, itemSize ) { + + console.warn( 'THREE.Uint8Attribute has been removed. Use new THREE.Uint8BufferAttribute() instead.' ); + return new Uint8BufferAttribute( array, itemSize ); + +} + +function Uint8ClampedAttribute( array, itemSize ) { + + console.warn( 'THREE.Uint8ClampedAttribute has been removed. Use new THREE.Uint8ClampedBufferAttribute() instead.' ); + return new Uint8ClampedBufferAttribute( array, itemSize ); + +} + +function Int16Attribute( array, itemSize ) { + + console.warn( 'THREE.Int16Attribute has been removed. Use new THREE.Int16BufferAttribute() instead.' ); + return new Int16BufferAttribute( array, itemSize ); + +} + +function Uint16Attribute( array, itemSize ) { + + console.warn( 'THREE.Uint16Attribute has been removed. Use new THREE.Uint16BufferAttribute() instead.' ); + return new Uint16BufferAttribute( array, itemSize ); + +} + +function Int32Attribute( array, itemSize ) { + + console.warn( 'THREE.Int32Attribute has been removed. Use new THREE.Int32BufferAttribute() instead.' ); + return new Int32BufferAttribute( array, itemSize ); + +} + +function Uint32Attribute( array, itemSize ) { + + console.warn( 'THREE.Uint32Attribute has been removed. Use new THREE.Uint32BufferAttribute() instead.' ); + return new Uint32BufferAttribute( array, itemSize ); + +} + +function Float32Attribute( array, itemSize ) { + + console.warn( 'THREE.Float32Attribute has been removed. Use new THREE.Float32BufferAttribute() instead.' ); + return new Float32BufferAttribute( array, itemSize ); + +} + +function Float64Attribute( array, itemSize ) { + + console.warn( 'THREE.Float64Attribute has been removed. Use new THREE.Float64BufferAttribute() instead.' ); + return new Float64BufferAttribute( array, itemSize ); + +} + +// + +Curve.create = function ( construct, getPoint ) { + + console.log( 'THREE.Curve.create() has been deprecated' ); + + construct.prototype = Object.create( Curve.prototype ); + construct.prototype.constructor = construct; + construct.prototype.getPoint = getPoint; + + return construct; + +}; + +// + +Object.assign( CurvePath.prototype, { + + createPointsGeometry: function ( divisions ) { + + console.warn( 'THREE.CurvePath: .createPointsGeometry() has been removed. Use new THREE.Geometry().setFromPoints( points ) instead.' ); + + // generate geometry from path points (for Line or Points objects) + + const pts = this.getPoints( divisions ); + return this.createGeometry( pts ); + + }, + + createSpacedPointsGeometry: function ( divisions ) { + + console.warn( 'THREE.CurvePath: .createSpacedPointsGeometry() has been removed. Use new THREE.Geometry().setFromPoints( points ) instead.' ); + + // generate geometry from equidistant sampling along the path + + const pts = this.getSpacedPoints( divisions ); + return this.createGeometry( pts ); + + }, + + createGeometry: function ( points ) { + + console.warn( 'THREE.CurvePath: .createGeometry() has been removed. Use new THREE.Geometry().setFromPoints( points ) instead.' ); + + const geometry = new Geometry(); + + for ( let i = 0, l = points.length; i < l; i ++ ) { + + const point = points[ i ]; + geometry.vertices.push( new Vector3( point.x, point.y, point.z || 0 ) ); + + } + + return geometry; + + } + +} ); + +// + +Object.assign( Path.prototype, { + + fromPoints: function ( points ) { + + console.warn( 'THREE.Path: .fromPoints() has been renamed to .setFromPoints().' ); + return this.setFromPoints( points ); + + } + +} ); + +// + +function ClosedSplineCurve3( points ) { + + console.warn( 'THREE.ClosedSplineCurve3 has been deprecated. Use THREE.CatmullRomCurve3 instead.' ); + + CatmullRomCurve3.call( this, points ); + this.type = 'catmullrom'; + this.closed = true; + +} + +ClosedSplineCurve3.prototype = Object.create( CatmullRomCurve3.prototype ); + +// + +function SplineCurve3( points ) { + + console.warn( 'THREE.SplineCurve3 has been deprecated. Use THREE.CatmullRomCurve3 instead.' ); + + CatmullRomCurve3.call( this, points ); + this.type = 'catmullrom'; + +} + +SplineCurve3.prototype = Object.create( CatmullRomCurve3.prototype ); + +// + +function Spline( points ) { + + console.warn( 'THREE.Spline has been removed. Use THREE.CatmullRomCurve3 instead.' ); + + CatmullRomCurve3.call( this, points ); + this.type = 'catmullrom'; + +} + +Spline.prototype = Object.create( CatmullRomCurve3.prototype ); + +Object.assign( Spline.prototype, { + + initFromArray: function ( /* a */ ) { + + console.error( 'THREE.Spline: .initFromArray() has been removed.' ); + + }, + getControlPointsArray: function ( /* optionalTarget */ ) { + + console.error( 'THREE.Spline: .getControlPointsArray() has been removed.' ); + + }, + reparametrizeByArcLength: function ( /* samplingCoef */ ) { + + console.error( 'THREE.Spline: .reparametrizeByArcLength() has been removed.' ); + + } + +} ); + +// + +function AxisHelper( size ) { + + console.warn( 'THREE.AxisHelper has been renamed to THREE.AxesHelper.' ); + return new AxesHelper( size ); + +} + +function BoundingBoxHelper( object, color ) { + + console.warn( 'THREE.BoundingBoxHelper has been deprecated. Creating a THREE.BoxHelper instead.' ); + return new BoxHelper( object, color ); + +} + +function EdgesHelper( object, hex ) { + + console.warn( 'THREE.EdgesHelper has been removed. Use THREE.EdgesGeometry instead.' ); + return new LineSegments( new EdgesGeometry( object.geometry ), new LineBasicMaterial( { color: hex !== undefined ? hex : 0xffffff } ) ); + +} + +GridHelper.prototype.setColors = function () { + + console.error( 'THREE.GridHelper: setColors() has been deprecated, pass them in the constructor instead.' ); + +}; + +SkeletonHelper.prototype.update = function () { + + console.error( 'THREE.SkeletonHelper: update() no longer needs to be called.' ); + +}; + +function WireframeHelper( object, hex ) { + + console.warn( 'THREE.WireframeHelper has been removed. Use THREE.WireframeGeometry instead.' ); + return new LineSegments( new WireframeGeometry( object.geometry ), new LineBasicMaterial( { color: hex !== undefined ? hex : 0xffffff } ) ); + +} + +// + +Object.assign( Loader.prototype, { + + extractUrlBase: function ( url ) { + + console.warn( 'THREE.Loader: .extractUrlBase() has been deprecated. Use THREE.LoaderUtils.extractUrlBase() instead.' ); + return LoaderUtils.extractUrlBase( url ); + + } + +} ); + +Loader.Handlers = { + + add: function ( /* regex, loader */ ) { + + console.error( 'THREE.Loader: Handlers.add() has been removed. Use LoadingManager.addHandler() instead.' ); + + }, + + get: function ( /* file */ ) { + + console.error( 'THREE.Loader: Handlers.get() has been removed. Use LoadingManager.getHandler() instead.' ); + + } + +}; + +function XHRLoader( manager ) { + + console.warn( 'THREE.XHRLoader has been renamed to THREE.FileLoader.' ); + return new FileLoader( manager ); + +} + +function BinaryTextureLoader( manager ) { + + console.warn( 'THREE.BinaryTextureLoader has been renamed to THREE.DataTextureLoader.' ); + return new DataTextureLoader( manager ); + +} + +// + +Object.assign( Box2.prototype, { + + center: function ( optionalTarget ) { + + console.warn( 'THREE.Box2: .center() has been renamed to .getCenter().' ); + return this.getCenter( optionalTarget ); + + }, + empty: function () { + + console.warn( 'THREE.Box2: .empty() has been renamed to .isEmpty().' ); + return this.isEmpty(); + + }, + isIntersectionBox: function ( box ) { + + console.warn( 'THREE.Box2: .isIntersectionBox() has been renamed to .intersectsBox().' ); + return this.intersectsBox( box ); + + }, + size: function ( optionalTarget ) { + + console.warn( 'THREE.Box2: .size() has been renamed to .getSize().' ); + return this.getSize( optionalTarget ); + + } +} ); + +Object.assign( Box3.prototype, { + + center: function ( optionalTarget ) { + + console.warn( 'THREE.Box3: .center() has been renamed to .getCenter().' ); + return this.getCenter( optionalTarget ); + + }, + empty: function () { + + console.warn( 'THREE.Box3: .empty() has been renamed to .isEmpty().' ); + return this.isEmpty(); + + }, + isIntersectionBox: function ( box ) { + + console.warn( 'THREE.Box3: .isIntersectionBox() has been renamed to .intersectsBox().' ); + return this.intersectsBox( box ); + + }, + isIntersectionSphere: function ( sphere ) { + + console.warn( 'THREE.Box3: .isIntersectionSphere() has been renamed to .intersectsSphere().' ); + return this.intersectsSphere( sphere ); + + }, + size: function ( optionalTarget ) { + + console.warn( 'THREE.Box3: .size() has been renamed to .getSize().' ); + return this.getSize( optionalTarget ); + + } +} ); + +Object.assign( Sphere.prototype, { + + empty: function () { + + console.warn( 'THREE.Sphere: .empty() has been renamed to .isEmpty().' ); + return this.isEmpty(); + + }, + +} ); + +Frustum.prototype.setFromMatrix = function ( m ) { + + console.warn( 'THREE.Frustum: .setFromMatrix() has been renamed to .setFromProjectionMatrix().' ); + return this.setFromProjectionMatrix( m ); + +}; + +Line3.prototype.center = function ( optionalTarget ) { + + console.warn( 'THREE.Line3: .center() has been renamed to .getCenter().' ); + return this.getCenter( optionalTarget ); + +}; + +Object.assign( MathUtils, { + + random16: function () { + + console.warn( 'THREE.Math: .random16() has been deprecated. Use Math.random() instead.' ); + return Math.random(); + + }, + + nearestPowerOfTwo: function ( value ) { + + console.warn( 'THREE.Math: .nearestPowerOfTwo() has been renamed to .floorPowerOfTwo().' ); + return MathUtils.floorPowerOfTwo( value ); + + }, + + nextPowerOfTwo: function ( value ) { + + console.warn( 'THREE.Math: .nextPowerOfTwo() has been renamed to .ceilPowerOfTwo().' ); + return MathUtils.ceilPowerOfTwo( value ); + + } + +} ); + +Object.assign( Matrix3.prototype, { + + flattenToArrayOffset: function ( array, offset ) { + + console.warn( "THREE.Matrix3: .flattenToArrayOffset() has been deprecated. Use .toArray() instead." ); + return this.toArray( array, offset ); + + }, + multiplyVector3: function ( vector ) { + + console.warn( 'THREE.Matrix3: .multiplyVector3() has been removed. Use vector.applyMatrix3( matrix ) instead.' ); + return vector.applyMatrix3( this ); + + }, + multiplyVector3Array: function ( /* a */ ) { + + console.error( 'THREE.Matrix3: .multiplyVector3Array() has been removed.' ); + + }, + applyToBufferAttribute: function ( attribute ) { + + console.warn( 'THREE.Matrix3: .applyToBufferAttribute() has been removed. Use attribute.applyMatrix3( matrix ) instead.' ); + return attribute.applyMatrix3( this ); + + }, + applyToVector3Array: function ( /* array, offset, length */ ) { + + console.error( 'THREE.Matrix3: .applyToVector3Array() has been removed.' ); + + } + +} ); + +Object.assign( Matrix4.prototype, { + + extractPosition: function ( m ) { + + console.warn( 'THREE.Matrix4: .extractPosition() has been renamed to .copyPosition().' ); + return this.copyPosition( m ); + + }, + flattenToArrayOffset: function ( array, offset ) { + + console.warn( "THREE.Matrix4: .flattenToArrayOffset() has been deprecated. Use .toArray() instead." ); + return this.toArray( array, offset ); + + }, + getPosition: function () { + + console.warn( 'THREE.Matrix4: .getPosition() has been removed. Use Vector3.setFromMatrixPosition( matrix ) instead.' ); + return new Vector3().setFromMatrixColumn( this, 3 ); + + }, + setRotationFromQuaternion: function ( q ) { + + console.warn( 'THREE.Matrix4: .setRotationFromQuaternion() has been renamed to .makeRotationFromQuaternion().' ); + return this.makeRotationFromQuaternion( q ); + + }, + multiplyToArray: function () { + + console.warn( 'THREE.Matrix4: .multiplyToArray() has been removed.' ); + + }, + multiplyVector3: function ( vector ) { + + console.warn( 'THREE.Matrix4: .multiplyVector3() has been removed. Use vector.applyMatrix4( matrix ) instead.' ); + return vector.applyMatrix4( this ); + + }, + multiplyVector4: function ( vector ) { + + console.warn( 'THREE.Matrix4: .multiplyVector4() has been removed. Use vector.applyMatrix4( matrix ) instead.' ); + return vector.applyMatrix4( this ); + + }, + multiplyVector3Array: function ( /* a */ ) { + + console.error( 'THREE.Matrix4: .multiplyVector3Array() has been removed.' ); + + }, + rotateAxis: function ( v ) { + + console.warn( 'THREE.Matrix4: .rotateAxis() has been removed. Use Vector3.transformDirection( matrix ) instead.' ); + v.transformDirection( this ); + + }, + crossVector: function ( vector ) { + + console.warn( 'THREE.Matrix4: .crossVector() has been removed. Use vector.applyMatrix4( matrix ) instead.' ); + return vector.applyMatrix4( this ); + + }, + translate: function () { + + console.error( 'THREE.Matrix4: .translate() has been removed.' ); + + }, + rotateX: function () { + + console.error( 'THREE.Matrix4: .rotateX() has been removed.' ); + + }, + rotateY: function () { + + console.error( 'THREE.Matrix4: .rotateY() has been removed.' ); + + }, + rotateZ: function () { + + console.error( 'THREE.Matrix4: .rotateZ() has been removed.' ); + + }, + rotateByAxis: function () { + + console.error( 'THREE.Matrix4: .rotateByAxis() has been removed.' ); + + }, + applyToBufferAttribute: function ( attribute ) { + + console.warn( 'THREE.Matrix4: .applyToBufferAttribute() has been removed. Use attribute.applyMatrix4( matrix ) instead.' ); + return attribute.applyMatrix4( this ); + + }, + applyToVector3Array: function ( /* array, offset, length */ ) { + + console.error( 'THREE.Matrix4: .applyToVector3Array() has been removed.' ); + + }, + makeFrustum: function ( left, right, bottom, top, near, far ) { + + console.warn( 'THREE.Matrix4: .makeFrustum() has been removed. Use .makePerspective( left, right, top, bottom, near, far ) instead.' ); + return this.makePerspective( left, right, top, bottom, near, far ); + + } + +} ); + +Plane.prototype.isIntersectionLine = function ( line ) { + + console.warn( 'THREE.Plane: .isIntersectionLine() has been renamed to .intersectsLine().' ); + return this.intersectsLine( line ); + +}; + +Quaternion.prototype.multiplyVector3 = function ( vector ) { + + console.warn( 'THREE.Quaternion: .multiplyVector3() has been removed. Use is now vector.applyQuaternion( quaternion ) instead.' ); + return vector.applyQuaternion( this ); + +}; + +Object.assign( Ray.prototype, { + + isIntersectionBox: function ( box ) { + + console.warn( 'THREE.Ray: .isIntersectionBox() has been renamed to .intersectsBox().' ); + return this.intersectsBox( box ); + + }, + isIntersectionPlane: function ( plane ) { + + console.warn( 'THREE.Ray: .isIntersectionPlane() has been renamed to .intersectsPlane().' ); + return this.intersectsPlane( plane ); + + }, + isIntersectionSphere: function ( sphere ) { + + console.warn( 'THREE.Ray: .isIntersectionSphere() has been renamed to .intersectsSphere().' ); + return this.intersectsSphere( sphere ); + + } + +} ); + +Object.assign( Triangle.prototype, { + + area: function () { + + console.warn( 'THREE.Triangle: .area() has been renamed to .getArea().' ); + return this.getArea(); + + }, + barycoordFromPoint: function ( point, target ) { + + console.warn( 'THREE.Triangle: .barycoordFromPoint() has been renamed to .getBarycoord().' ); + return this.getBarycoord( point, target ); + + }, + midpoint: function ( target ) { + + console.warn( 'THREE.Triangle: .midpoint() has been renamed to .getMidpoint().' ); + return this.getMidpoint( target ); + + }, + normal: function ( target ) { + + console.warn( 'THREE.Triangle: .normal() has been renamed to .getNormal().' ); + return this.getNormal( target ); + + }, + plane: function ( target ) { + + console.warn( 'THREE.Triangle: .plane() has been renamed to .getPlane().' ); + return this.getPlane( target ); + + } + +} ); + +Object.assign( Triangle, { + + barycoordFromPoint: function ( point, a, b, c, target ) { + + console.warn( 'THREE.Triangle: .barycoordFromPoint() has been renamed to .getBarycoord().' ); + return Triangle.getBarycoord( point, a, b, c, target ); + + }, + normal: function ( a, b, c, target ) { + + console.warn( 'THREE.Triangle: .normal() has been renamed to .getNormal().' ); + return Triangle.getNormal( a, b, c, target ); + + } + +} ); + +Object.assign( Shape.prototype, { + + extractAllPoints: function ( divisions ) { + + console.warn( 'THREE.Shape: .extractAllPoints() has been removed. Use .extractPoints() instead.' ); + return this.extractPoints( divisions ); + + }, + extrude: function ( options ) { + + console.warn( 'THREE.Shape: .extrude() has been removed. Use ExtrudeGeometry() instead.' ); + return new ExtrudeGeometry( this, options ); + + }, + makeGeometry: function ( options ) { + + console.warn( 'THREE.Shape: .makeGeometry() has been removed. Use ShapeGeometry() instead.' ); + return new ShapeGeometry( this, options ); + + } + +} ); + +Object.assign( Vector2.prototype, { + + fromAttribute: function ( attribute, index, offset ) { + + console.warn( 'THREE.Vector2: .fromAttribute() has been renamed to .fromBufferAttribute().' ); + return this.fromBufferAttribute( attribute, index, offset ); + + }, + distanceToManhattan: function ( v ) { + + console.warn( 'THREE.Vector2: .distanceToManhattan() has been renamed to .manhattanDistanceTo().' ); + return this.manhattanDistanceTo( v ); + + }, + lengthManhattan: function () { + + console.warn( 'THREE.Vector2: .lengthManhattan() has been renamed to .manhattanLength().' ); + return this.manhattanLength(); + + } + +} ); + +Object.assign( Vector3.prototype, { + + setEulerFromRotationMatrix: function () { + + console.error( 'THREE.Vector3: .setEulerFromRotationMatrix() has been removed. Use Euler.setFromRotationMatrix() instead.' ); + + }, + setEulerFromQuaternion: function () { + + console.error( 'THREE.Vector3: .setEulerFromQuaternion() has been removed. Use Euler.setFromQuaternion() instead.' ); + + }, + getPositionFromMatrix: function ( m ) { + + console.warn( 'THREE.Vector3: .getPositionFromMatrix() has been renamed to .setFromMatrixPosition().' ); + return this.setFromMatrixPosition( m ); + + }, + getScaleFromMatrix: function ( m ) { + + console.warn( 'THREE.Vector3: .getScaleFromMatrix() has been renamed to .setFromMatrixScale().' ); + return this.setFromMatrixScale( m ); + + }, + getColumnFromMatrix: function ( index, matrix ) { + + console.warn( 'THREE.Vector3: .getColumnFromMatrix() has been renamed to .setFromMatrixColumn().' ); + return this.setFromMatrixColumn( matrix, index ); + + }, + applyProjection: function ( m ) { + + console.warn( 'THREE.Vector3: .applyProjection() has been removed. Use .applyMatrix4( m ) instead.' ); + return this.applyMatrix4( m ); + + }, + fromAttribute: function ( attribute, index, offset ) { + + console.warn( 'THREE.Vector3: .fromAttribute() has been renamed to .fromBufferAttribute().' ); + return this.fromBufferAttribute( attribute, index, offset ); + + }, + distanceToManhattan: function ( v ) { + + console.warn( 'THREE.Vector3: .distanceToManhattan() has been renamed to .manhattanDistanceTo().' ); + return this.manhattanDistanceTo( v ); + + }, + lengthManhattan: function () { + + console.warn( 'THREE.Vector3: .lengthManhattan() has been renamed to .manhattanLength().' ); + return this.manhattanLength(); + + } + +} ); + +Object.assign( Vector4.prototype, { + + fromAttribute: function ( attribute, index, offset ) { + + console.warn( 'THREE.Vector4: .fromAttribute() has been renamed to .fromBufferAttribute().' ); + return this.fromBufferAttribute( attribute, index, offset ); + + }, + lengthManhattan: function () { + + console.warn( 'THREE.Vector4: .lengthManhattan() has been renamed to .manhattanLength().' ); + return this.manhattanLength(); + + } + +} ); + +// + +Object.assign( Geometry.prototype, { + + computeTangents: function () { + + console.error( 'THREE.Geometry: .computeTangents() has been removed.' ); + + }, + computeLineDistances: function () { + + console.error( 'THREE.Geometry: .computeLineDistances() has been removed. Use THREE.Line.computeLineDistances() instead.' ); + + }, + applyMatrix: function ( matrix ) { + + console.warn( 'THREE.Geometry: .applyMatrix() has been renamed to .applyMatrix4().' ); + return this.applyMatrix4( matrix ); + + } + +} ); + +Object.assign( Object3D.prototype, { + + getChildByName: function ( name ) { + + console.warn( 'THREE.Object3D: .getChildByName() has been renamed to .getObjectByName().' ); + return this.getObjectByName( name ); + + }, + renderDepth: function () { + + console.warn( 'THREE.Object3D: .renderDepth has been removed. Use .renderOrder, instead.' ); + + }, + translate: function ( distance, axis ) { + + console.warn( 'THREE.Object3D: .translate() has been removed. Use .translateOnAxis( axis, distance ) instead.' ); + return this.translateOnAxis( axis, distance ); + + }, + getWorldRotation: function () { + + console.error( 'THREE.Object3D: .getWorldRotation() has been removed. Use THREE.Object3D.getWorldQuaternion( target ) instead.' ); + + }, + applyMatrix: function ( matrix ) { + + console.warn( 'THREE.Object3D: .applyMatrix() has been renamed to .applyMatrix4().' ); + return this.applyMatrix4( matrix ); + + } + +} ); + +Object.defineProperties( Object3D.prototype, { + + eulerOrder: { + get: function () { + + console.warn( 'THREE.Object3D: .eulerOrder is now .rotation.order.' ); + return this.rotation.order; + + }, + set: function ( value ) { + + console.warn( 'THREE.Object3D: .eulerOrder is now .rotation.order.' ); + this.rotation.order = value; + + } + }, + useQuaternion: { + get: function () { + + console.warn( 'THREE.Object3D: .useQuaternion has been removed. The library now uses quaternions by default.' ); + + }, + set: function () { + + console.warn( 'THREE.Object3D: .useQuaternion has been removed. The library now uses quaternions by default.' ); + + } + } + +} ); + +Object.assign( Mesh.prototype, { + + setDrawMode: function () { + + console.error( 'THREE.Mesh: .setDrawMode() has been removed. The renderer now always assumes THREE.TrianglesDrawMode. Transform your geometry via BufferGeometryUtils.toTrianglesDrawMode() if necessary.' ); + + }, + +} ); + +Object.defineProperties( Mesh.prototype, { + + drawMode: { + get: function () { + + console.error( 'THREE.Mesh: .drawMode has been removed. The renderer now always assumes THREE.TrianglesDrawMode.' ); + return TrianglesDrawMode; + + }, + set: function () { + + console.error( 'THREE.Mesh: .drawMode has been removed. The renderer now always assumes THREE.TrianglesDrawMode. Transform your geometry via BufferGeometryUtils.toTrianglesDrawMode() if necessary.' ); + + } + } + +} ); + +Object.defineProperties( LOD.prototype, { + + objects: { + get: function () { + + console.warn( 'THREE.LOD: .objects has been renamed to .levels.' ); + return this.levels; + + } + } + +} ); + +Object.defineProperty( Skeleton.prototype, 'useVertexTexture', { + + get: function () { + + console.warn( 'THREE.Skeleton: useVertexTexture has been removed.' ); + + }, + set: function () { + + console.warn( 'THREE.Skeleton: useVertexTexture has been removed.' ); + + } + +} ); + +SkinnedMesh.prototype.initBones = function () { + + console.error( 'THREE.SkinnedMesh: initBones() has been removed.' ); + +}; + +Object.defineProperty( Curve.prototype, '__arcLengthDivisions', { + + get: function () { + + console.warn( 'THREE.Curve: .__arcLengthDivisions is now .arcLengthDivisions.' ); + return this.arcLengthDivisions; + + }, + set: function ( value ) { + + console.warn( 'THREE.Curve: .__arcLengthDivisions is now .arcLengthDivisions.' ); + this.arcLengthDivisions = value; + + } + +} ); + +// + +PerspectiveCamera.prototype.setLens = function ( focalLength, filmGauge ) { + + console.warn( "THREE.PerspectiveCamera.setLens is deprecated. " + + "Use .setFocalLength and .filmGauge for a photographic setup." ); + + if ( filmGauge !== undefined ) this.filmGauge = filmGauge; + this.setFocalLength( focalLength ); + +}; + +// + +Object.defineProperties( Light.prototype, { + onlyShadow: { + set: function () { + + console.warn( 'THREE.Light: .onlyShadow has been removed.' ); + + } + }, + shadowCameraFov: { + set: function ( value ) { + + console.warn( 'THREE.Light: .shadowCameraFov is now .shadow.camera.fov.' ); + this.shadow.camera.fov = value; + + } + }, + shadowCameraLeft: { + set: function ( value ) { + + console.warn( 'THREE.Light: .shadowCameraLeft is now .shadow.camera.left.' ); + this.shadow.camera.left = value; + + } + }, + shadowCameraRight: { + set: function ( value ) { + + console.warn( 'THREE.Light: .shadowCameraRight is now .shadow.camera.right.' ); + this.shadow.camera.right = value; + + } + }, + shadowCameraTop: { + set: function ( value ) { + + console.warn( 'THREE.Light: .shadowCameraTop is now .shadow.camera.top.' ); + this.shadow.camera.top = value; + + } + }, + shadowCameraBottom: { + set: function ( value ) { + + console.warn( 'THREE.Light: .shadowCameraBottom is now .shadow.camera.bottom.' ); + this.shadow.camera.bottom = value; + + } + }, + shadowCameraNear: { + set: function ( value ) { + + console.warn( 'THREE.Light: .shadowCameraNear is now .shadow.camera.near.' ); + this.shadow.camera.near = value; + + } + }, + shadowCameraFar: { + set: function ( value ) { + + console.warn( 'THREE.Light: .shadowCameraFar is now .shadow.camera.far.' ); + this.shadow.camera.far = value; + + } + }, + shadowCameraVisible: { + set: function () { + + console.warn( 'THREE.Light: .shadowCameraVisible has been removed. Use new THREE.CameraHelper( light.shadow.camera ) instead.' ); + + } + }, + shadowBias: { + set: function ( value ) { + + console.warn( 'THREE.Light: .shadowBias is now .shadow.bias.' ); + this.shadow.bias = value; + + } + }, + shadowDarkness: { + set: function () { + + console.warn( 'THREE.Light: .shadowDarkness has been removed.' ); + + } + }, + shadowMapWidth: { + set: function ( value ) { + + console.warn( 'THREE.Light: .shadowMapWidth is now .shadow.mapSize.width.' ); + this.shadow.mapSize.width = value; + + } + }, + shadowMapHeight: { + set: function ( value ) { + + console.warn( 'THREE.Light: .shadowMapHeight is now .shadow.mapSize.height.' ); + this.shadow.mapSize.height = value; + + } + } +} ); + +// + +Object.defineProperties( BufferAttribute.prototype, { + + length: { + get: function () { + + console.warn( 'THREE.BufferAttribute: .length has been deprecated. Use .count instead.' ); + return this.array.length; + + } + }, + dynamic: { + get: function () { + + console.warn( 'THREE.BufferAttribute: .dynamic has been deprecated. Use .usage instead.' ); + return this.usage === DynamicDrawUsage; + + }, + set: function ( /* value */ ) { + + console.warn( 'THREE.BufferAttribute: .dynamic has been deprecated. Use .usage instead.' ); + this.setUsage( DynamicDrawUsage ); + + } + } + +} ); + +Object.assign( BufferAttribute.prototype, { + setDynamic: function ( value ) { + + console.warn( 'THREE.BufferAttribute: .setDynamic() has been deprecated. Use .setUsage() instead.' ); + this.setUsage( value === true ? DynamicDrawUsage : StaticDrawUsage ); + return this; + + }, + copyIndicesArray: function ( /* indices */ ) { + + console.error( 'THREE.BufferAttribute: .copyIndicesArray() has been removed.' ); + + }, + setArray: function ( /* array */ ) { + + console.error( 'THREE.BufferAttribute: .setArray has been removed. Use BufferGeometry .setAttribute to replace/resize attribute buffers' ); + + } +} ); + +Object.assign( BufferGeometry.prototype, { + + addIndex: function ( index ) { + + console.warn( 'THREE.BufferGeometry: .addIndex() has been renamed to .setIndex().' ); + this.setIndex( index ); + + }, + addAttribute: function ( name, attribute ) { + + console.warn( 'THREE.BufferGeometry: .addAttribute() has been renamed to .setAttribute().' ); + + if ( ! ( attribute && attribute.isBufferAttribute ) && ! ( attribute && attribute.isInterleavedBufferAttribute ) ) { + + console.warn( 'THREE.BufferGeometry: .addAttribute() now expects ( name, attribute ).' ); + + return this.setAttribute( name, new BufferAttribute( arguments[ 1 ], arguments[ 2 ] ) ); + + } + + if ( name === 'index' ) { + + console.warn( 'THREE.BufferGeometry.addAttribute: Use .setIndex() for index attribute.' ); + this.setIndex( attribute ); + + return this; + + } + + return this.setAttribute( name, attribute ); + + }, + addDrawCall: function ( start, count, indexOffset ) { + + if ( indexOffset !== undefined ) { + + console.warn( 'THREE.BufferGeometry: .addDrawCall() no longer supports indexOffset.' ); + + } + + console.warn( 'THREE.BufferGeometry: .addDrawCall() is now .addGroup().' ); + this.addGroup( start, count ); + + }, + clearDrawCalls: function () { + + console.warn( 'THREE.BufferGeometry: .clearDrawCalls() is now .clearGroups().' ); + this.clearGroups(); + + }, + computeTangents: function () { + + console.warn( 'THREE.BufferGeometry: .computeTangents() has been removed.' ); + + }, + computeOffsets: function () { + + console.warn( 'THREE.BufferGeometry: .computeOffsets() has been removed.' ); + + }, + removeAttribute: function ( name ) { + + console.warn( 'THREE.BufferGeometry: .removeAttribute() has been renamed to .deleteAttribute().' ); + + return this.deleteAttribute( name ); + + }, + applyMatrix: function ( matrix ) { + + console.warn( 'THREE.BufferGeometry: .applyMatrix() has been renamed to .applyMatrix4().' ); + return this.applyMatrix4( matrix ); + + } + +} ); + +Object.defineProperties( BufferGeometry.prototype, { + + drawcalls: { + get: function () { + + console.error( 'THREE.BufferGeometry: .drawcalls has been renamed to .groups.' ); + return this.groups; + + } + }, + offsets: { + get: function () { + + console.warn( 'THREE.BufferGeometry: .offsets has been renamed to .groups.' ); + return this.groups; + + } + } + +} ); + +Object.defineProperties( InstancedBufferGeometry.prototype, { + + maxInstancedCount: { + get: function () { + + console.warn( 'THREE.InstancedBufferGeometry: .maxInstancedCount has been renamed to .instanceCount.' ); + return this.instanceCount; + + }, + set: function ( value ) { + + console.warn( 'THREE.InstancedBufferGeometry: .maxInstancedCount has been renamed to .instanceCount.' ); + this.instanceCount = value; + + } + } + +} ); + +Object.defineProperties( Raycaster.prototype, { + + linePrecision: { + get: function () { + + console.warn( 'THREE.Raycaster: .linePrecision has been deprecated. Use .params.Line.threshold instead.' ); + return this.params.Line.threshold; + + }, + set: function ( value ) { + + console.warn( 'THREE.Raycaster: .linePrecision has been deprecated. Use .params.Line.threshold instead.' ); + this.params.Line.threshold = value; + + } + } + +} ); + +Object.defineProperties( InterleavedBuffer.prototype, { + + dynamic: { + get: function () { + + console.warn( 'THREE.InterleavedBuffer: .length has been deprecated. Use .usage instead.' ); + return this.usage === DynamicDrawUsage; + + }, + set: function ( value ) { + + console.warn( 'THREE.InterleavedBuffer: .length has been deprecated. Use .usage instead.' ); + this.setUsage( value ); + + } + } + +} ); + +Object.assign( InterleavedBuffer.prototype, { + setDynamic: function ( value ) { + + console.warn( 'THREE.InterleavedBuffer: .setDynamic() has been deprecated. Use .setUsage() instead.' ); + this.setUsage( value === true ? DynamicDrawUsage : StaticDrawUsage ); + return this; + + }, + setArray: function ( /* array */ ) { + + console.error( 'THREE.InterleavedBuffer: .setArray has been removed. Use BufferGeometry .setAttribute to replace/resize attribute buffers' ); + + } +} ); + +// + +Object.assign( ExtrudeBufferGeometry.prototype, { + + getArrays: function () { + + console.error( 'THREE.ExtrudeBufferGeometry: .getArrays() has been removed.' ); + + }, + + addShapeList: function () { + + console.error( 'THREE.ExtrudeBufferGeometry: .addShapeList() has been removed.' ); + + }, + + addShape: function () { + + console.error( 'THREE.ExtrudeBufferGeometry: .addShape() has been removed.' ); + + } + +} ); + +// + +Object.assign( Scene.prototype, { + + dispose: function () { + + console.error( 'THREE.Scene: .dispose() has been removed.' ); + + } + +} ); + +// + +Object.defineProperties( Uniform.prototype, { + + dynamic: { + set: function () { + + console.warn( 'THREE.Uniform: .dynamic has been removed. Use object.onBeforeRender() instead.' ); + + } + }, + onUpdate: { + value: function () { + + console.warn( 'THREE.Uniform: .onUpdate() has been removed. Use object.onBeforeRender() instead.' ); + return this; + + } + } + +} ); + +// + +Object.defineProperties( Material.prototype, { + + wrapAround: { + get: function () { + + console.warn( 'THREE.Material: .wrapAround has been removed.' ); + + }, + set: function () { + + console.warn( 'THREE.Material: .wrapAround has been removed.' ); + + } + }, + + overdraw: { + get: function () { + + console.warn( 'THREE.Material: .overdraw has been removed.' ); + + }, + set: function () { + + console.warn( 'THREE.Material: .overdraw has been removed.' ); + + } + }, + + wrapRGB: { + get: function () { + + console.warn( 'THREE.Material: .wrapRGB has been removed.' ); + return new Color(); + + } + }, + + shading: { + get: function () { + + console.error( 'THREE.' + this.type + ': .shading has been removed. Use the boolean .flatShading instead.' ); + + }, + set: function ( value ) { + + console.warn( 'THREE.' + this.type + ': .shading has been removed. Use the boolean .flatShading instead.' ); + this.flatShading = ( value === FlatShading ); + + } + }, + + stencilMask: { + get: function () { + + console.warn( 'THREE.' + this.type + ': .stencilMask has been removed. Use .stencilFuncMask instead.' ); + return this.stencilFuncMask; + + }, + set: function ( value ) { + + console.warn( 'THREE.' + this.type + ': .stencilMask has been removed. Use .stencilFuncMask instead.' ); + this.stencilFuncMask = value; + + } + } + +} ); + +Object.defineProperties( MeshPhongMaterial.prototype, { + + metal: { + get: function () { + + console.warn( 'THREE.MeshPhongMaterial: .metal has been removed. Use THREE.MeshStandardMaterial instead.' ); + return false; + + }, + set: function () { + + console.warn( 'THREE.MeshPhongMaterial: .metal has been removed. Use THREE.MeshStandardMaterial instead' ); + + } + } + +} ); + +Object.defineProperties( MeshPhysicalMaterial.prototype, { + + transparency: { + get: function () { + + console.warn( 'THREE.MeshPhysicalMaterial: .transparency has been renamed to .transmission.' ); + return this.transmission; + + }, + set: function ( value ) { + + console.warn( 'THREE.MeshPhysicalMaterial: .transparency has been renamed to .transmission.' ); + this.transmission = value; + + } + } + +} ); + +Object.defineProperties( ShaderMaterial.prototype, { + + derivatives: { + get: function () { + + console.warn( 'THREE.ShaderMaterial: .derivatives has been moved to .extensions.derivatives.' ); + return this.extensions.derivatives; + + }, + set: function ( value ) { + + console.warn( 'THREE. ShaderMaterial: .derivatives has been moved to .extensions.derivatives.' ); + this.extensions.derivatives = value; + + } + } + +} ); + +// + +Object.assign( WebGLRenderer.prototype, { + + clearTarget: function ( renderTarget, color, depth, stencil ) { + + console.warn( 'THREE.WebGLRenderer: .clearTarget() has been deprecated. Use .setRenderTarget() and .clear() instead.' ); + this.setRenderTarget( renderTarget ); + this.clear( color, depth, stencil ); + + }, + animate: function ( callback ) { + + console.warn( 'THREE.WebGLRenderer: .animate() is now .setAnimationLoop().' ); + this.setAnimationLoop( callback ); + + }, + getCurrentRenderTarget: function () { + + console.warn( 'THREE.WebGLRenderer: .getCurrentRenderTarget() is now .getRenderTarget().' ); + return this.getRenderTarget(); + + }, + getMaxAnisotropy: function () { + + console.warn( 'THREE.WebGLRenderer: .getMaxAnisotropy() is now .capabilities.getMaxAnisotropy().' ); + return this.capabilities.getMaxAnisotropy(); + + }, + getPrecision: function () { + + console.warn( 'THREE.WebGLRenderer: .getPrecision() is now .capabilities.precision.' ); + return this.capabilities.precision; + + }, + resetGLState: function () { + + console.warn( 'THREE.WebGLRenderer: .resetGLState() is now .state.reset().' ); + return this.state.reset(); + + }, + supportsFloatTextures: function () { + + console.warn( 'THREE.WebGLRenderer: .supportsFloatTextures() is now .extensions.get( \'OES_texture_float\' ).' ); + return this.extensions.get( 'OES_texture_float' ); + + }, + supportsHalfFloatTextures: function () { + + console.warn( 'THREE.WebGLRenderer: .supportsHalfFloatTextures() is now .extensions.get( \'OES_texture_half_float\' ).' ); + return this.extensions.get( 'OES_texture_half_float' ); + + }, + supportsStandardDerivatives: function () { + + console.warn( 'THREE.WebGLRenderer: .supportsStandardDerivatives() is now .extensions.get( \'OES_standard_derivatives\' ).' ); + return this.extensions.get( 'OES_standard_derivatives' ); + + }, + supportsCompressedTextureS3TC: function () { + + console.warn( 'THREE.WebGLRenderer: .supportsCompressedTextureS3TC() is now .extensions.get( \'WEBGL_compressed_texture_s3tc\' ).' ); + return this.extensions.get( 'WEBGL_compressed_texture_s3tc' ); + + }, + supportsCompressedTexturePVRTC: function () { + + console.warn( 'THREE.WebGLRenderer: .supportsCompressedTexturePVRTC() is now .extensions.get( \'WEBGL_compressed_texture_pvrtc\' ).' ); + return this.extensions.get( 'WEBGL_compressed_texture_pvrtc' ); + + }, + supportsBlendMinMax: function () { + + console.warn( 'THREE.WebGLRenderer: .supportsBlendMinMax() is now .extensions.get( \'EXT_blend_minmax\' ).' ); + return this.extensions.get( 'EXT_blend_minmax' ); + + }, + supportsVertexTextures: function () { + + console.warn( 'THREE.WebGLRenderer: .supportsVertexTextures() is now .capabilities.vertexTextures.' ); + return this.capabilities.vertexTextures; + + }, + supportsInstancedArrays: function () { + + console.warn( 'THREE.WebGLRenderer: .supportsInstancedArrays() is now .extensions.get( \'ANGLE_instanced_arrays\' ).' ); + return this.extensions.get( 'ANGLE_instanced_arrays' ); + + }, + enableScissorTest: function ( boolean ) { + + console.warn( 'THREE.WebGLRenderer: .enableScissorTest() is now .setScissorTest().' ); + this.setScissorTest( boolean ); + + }, + initMaterial: function () { + + console.warn( 'THREE.WebGLRenderer: .initMaterial() has been removed.' ); + + }, + addPrePlugin: function () { + + console.warn( 'THREE.WebGLRenderer: .addPrePlugin() has been removed.' ); + + }, + addPostPlugin: function () { + + console.warn( 'THREE.WebGLRenderer: .addPostPlugin() has been removed.' ); + + }, + updateShadowMap: function () { + + console.warn( 'THREE.WebGLRenderer: .updateShadowMap() has been removed.' ); + + }, + setFaceCulling: function () { + + console.warn( 'THREE.WebGLRenderer: .setFaceCulling() has been removed.' ); + + }, + allocTextureUnit: function () { + + console.warn( 'THREE.WebGLRenderer: .allocTextureUnit() has been removed.' ); + + }, + setTexture: function () { + + console.warn( 'THREE.WebGLRenderer: .setTexture() has been removed.' ); + + }, + setTexture2D: function () { + + console.warn( 'THREE.WebGLRenderer: .setTexture2D() has been removed.' ); + + }, + setTextureCube: function () { + + console.warn( 'THREE.WebGLRenderer: .setTextureCube() has been removed.' ); + + }, + getActiveMipMapLevel: function () { + + console.warn( 'THREE.WebGLRenderer: .getActiveMipMapLevel() is now .getActiveMipmapLevel().' ); + return this.getActiveMipmapLevel(); + + } + +} ); + +Object.defineProperties( WebGLRenderer.prototype, { + + shadowMapEnabled: { + get: function () { + + return this.shadowMap.enabled; + + }, + set: function ( value ) { + + console.warn( 'THREE.WebGLRenderer: .shadowMapEnabled is now .shadowMap.enabled.' ); + this.shadowMap.enabled = value; + + } + }, + shadowMapType: { + get: function () { + + return this.shadowMap.type; + + }, + set: function ( value ) { + + console.warn( 'THREE.WebGLRenderer: .shadowMapType is now .shadowMap.type.' ); + this.shadowMap.type = value; + + } + }, + shadowMapCullFace: { + get: function () { + + console.warn( 'THREE.WebGLRenderer: .shadowMapCullFace has been removed. Set Material.shadowSide instead.' ); + return undefined; + + }, + set: function ( /* value */ ) { + + console.warn( 'THREE.WebGLRenderer: .shadowMapCullFace has been removed. Set Material.shadowSide instead.' ); + + } + }, + context: { + get: function () { + + console.warn( 'THREE.WebGLRenderer: .context has been removed. Use .getContext() instead.' ); + return this.getContext(); + + } + }, + vr: { + get: function () { + + console.warn( 'THREE.WebGLRenderer: .vr has been renamed to .xr' ); + return this.xr; + + } + }, + gammaInput: { + get: function () { + + console.warn( 'THREE.WebGLRenderer: .gammaInput has been removed. Set the encoding for textures via Texture.encoding instead.' ); + return false; + + }, + set: function () { + + console.warn( 'THREE.WebGLRenderer: .gammaInput has been removed. Set the encoding for textures via Texture.encoding instead.' ); + + } + }, + gammaOutput: { + get: function () { + + console.warn( 'THREE.WebGLRenderer: .gammaOutput has been removed. Set WebGLRenderer.outputEncoding instead.' ); + return false; + + }, + set: function ( value ) { + + console.warn( 'THREE.WebGLRenderer: .gammaOutput has been removed. Set WebGLRenderer.outputEncoding instead.' ); + this.outputEncoding = ( value === true ) ? sRGBEncoding : LinearEncoding; + + } + }, + toneMappingWhitePoint: { + get: function () { + + console.warn( 'THREE.WebGLRenderer: .toneMappingWhitePoint has been removed.' ); + return 1.0; + + }, + set: function () { + + console.warn( 'THREE.WebGLRenderer: .toneMappingWhitePoint has been removed.' ); + + } + }, + +} ); + +Object.defineProperties( WebGLShadowMap.prototype, { + + cullFace: { + get: function () { + + console.warn( 'THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead.' ); + return undefined; + + }, + set: function ( /* cullFace */ ) { + + console.warn( 'THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead.' ); + + } + }, + renderReverseSided: { + get: function () { + + console.warn( 'THREE.WebGLRenderer: .shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead.' ); + return undefined; + + }, + set: function () { + + console.warn( 'THREE.WebGLRenderer: .shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead.' ); + + } + }, + renderSingleSided: { + get: function () { + + console.warn( 'THREE.WebGLRenderer: .shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead.' ); + return undefined; + + }, + set: function () { + + console.warn( 'THREE.WebGLRenderer: .shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead.' ); + + } + } + +} ); + +function WebGLRenderTargetCube( width, height, options ) { + + console.warn( 'THREE.WebGLRenderTargetCube( width, height, options ) is now WebGLCubeRenderTarget( size, options ).' ); + return new WebGLCubeRenderTarget( width, options ); + +} + +// + +Object.defineProperties( WebGLRenderTarget.prototype, { + + wrapS: { + get: function () { + + console.warn( 'THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS.' ); + return this.texture.wrapS; + + }, + set: function ( value ) { + + console.warn( 'THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS.' ); + this.texture.wrapS = value; + + } + }, + wrapT: { + get: function () { + + console.warn( 'THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT.' ); + return this.texture.wrapT; + + }, + set: function ( value ) { + + console.warn( 'THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT.' ); + this.texture.wrapT = value; + + } + }, + magFilter: { + get: function () { + + console.warn( 'THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter.' ); + return this.texture.magFilter; + + }, + set: function ( value ) { + + console.warn( 'THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter.' ); + this.texture.magFilter = value; + + } + }, + minFilter: { + get: function () { + + console.warn( 'THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter.' ); + return this.texture.minFilter; + + }, + set: function ( value ) { + + console.warn( 'THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter.' ); + this.texture.minFilter = value; + + } + }, + anisotropy: { + get: function () { + + console.warn( 'THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy.' ); + return this.texture.anisotropy; + + }, + set: function ( value ) { + + console.warn( 'THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy.' ); + this.texture.anisotropy = value; + + } + }, + offset: { + get: function () { + + console.warn( 'THREE.WebGLRenderTarget: .offset is now .texture.offset.' ); + return this.texture.offset; + + }, + set: function ( value ) { + + console.warn( 'THREE.WebGLRenderTarget: .offset is now .texture.offset.' ); + this.texture.offset = value; + + } + }, + repeat: { + get: function () { + + console.warn( 'THREE.WebGLRenderTarget: .repeat is now .texture.repeat.' ); + return this.texture.repeat; + + }, + set: function ( value ) { + + console.warn( 'THREE.WebGLRenderTarget: .repeat is now .texture.repeat.' ); + this.texture.repeat = value; + + } + }, + format: { + get: function () { + + console.warn( 'THREE.WebGLRenderTarget: .format is now .texture.format.' ); + return this.texture.format; + + }, + set: function ( value ) { + + console.warn( 'THREE.WebGLRenderTarget: .format is now .texture.format.' ); + this.texture.format = value; + + } + }, + type: { + get: function () { + + console.warn( 'THREE.WebGLRenderTarget: .type is now .texture.type.' ); + return this.texture.type; + + }, + set: function ( value ) { + + console.warn( 'THREE.WebGLRenderTarget: .type is now .texture.type.' ); + this.texture.type = value; + + } + }, + generateMipmaps: { + get: function () { + + console.warn( 'THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps.' ); + return this.texture.generateMipmaps; + + }, + set: function ( value ) { + + console.warn( 'THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps.' ); + this.texture.generateMipmaps = value; + + } + } + +} ); + +// + +Object.defineProperties( Audio.prototype, { + + load: { + value: function ( file ) { + + console.warn( 'THREE.Audio: .load has been deprecated. Use THREE.AudioLoader instead.' ); + const scope = this; + const audioLoader = new AudioLoader(); + audioLoader.load( file, function ( buffer ) { + + scope.setBuffer( buffer ); + + } ); + return this; + + } + }, + startTime: { + set: function () { + + console.warn( 'THREE.Audio: .startTime is now .play( delay ).' ); + + } + } + +} ); + +AudioAnalyser.prototype.getData = function () { + + console.warn( 'THREE.AudioAnalyser: .getData() is now .getFrequencyData().' ); + return this.getFrequencyData(); + +}; + +// + +CubeCamera.prototype.updateCubeMap = function ( renderer, scene ) { + + console.warn( 'THREE.CubeCamera: .updateCubeMap() is now .update().' ); + return this.update( renderer, scene ); + +}; + +// + +const GeometryUtils = { + + merge: function ( geometry1, geometry2, materialIndexOffset ) { + + console.warn( 'THREE.GeometryUtils: .merge() has been moved to Geometry. Use geometry.merge( geometry2, matrix, materialIndexOffset ) instead.' ); + let matrix; + + if ( geometry2.isMesh ) { + + geometry2.matrixAutoUpdate && geometry2.updateMatrix(); + + matrix = geometry2.matrix; + geometry2 = geometry2.geometry; + + } + + geometry1.merge( geometry2, matrix, materialIndexOffset ); + + }, + + center: function ( geometry ) { + + console.warn( 'THREE.GeometryUtils: .center() has been moved to Geometry. Use geometry.center() instead.' ); + return geometry.center(); + + } + +}; + +ImageUtils.crossOrigin = undefined; + +ImageUtils.loadTexture = function ( url, mapping, onLoad, onError ) { + + console.warn( 'THREE.ImageUtils.loadTexture has been deprecated. Use THREE.TextureLoader() instead.' ); + + const loader = new TextureLoader(); + loader.setCrossOrigin( this.crossOrigin ); + + const texture = loader.load( url, onLoad, undefined, onError ); + + if ( mapping ) texture.mapping = mapping; + + return texture; + +}; + +ImageUtils.loadTextureCube = function ( urls, mapping, onLoad, onError ) { + + console.warn( 'THREE.ImageUtils.loadTextureCube has been deprecated. Use THREE.CubeTextureLoader() instead.' ); + + const loader = new CubeTextureLoader(); + loader.setCrossOrigin( this.crossOrigin ); + + const texture = loader.load( urls, onLoad, undefined, onError ); + + if ( mapping ) texture.mapping = mapping; + + return texture; + +}; + +ImageUtils.loadCompressedTexture = function () { + + console.error( 'THREE.ImageUtils.loadCompressedTexture has been removed. Use THREE.DDSLoader instead.' ); + +}; + +ImageUtils.loadCompressedTextureCube = function () { + + console.error( 'THREE.ImageUtils.loadCompressedTextureCube has been removed. Use THREE.DDSLoader instead.' ); + +}; + +// + +function CanvasRenderer() { + + console.error( 'THREE.CanvasRenderer has been removed' ); + +} + +// + +function JSONLoader() { + + console.error( 'THREE.JSONLoader has been removed.' ); + +} + +// + +const SceneUtils = { + + createMultiMaterialObject: function ( /* geometry, materials */ ) { + + console.error( 'THREE.SceneUtils has been moved to /examples/jsm/utils/SceneUtils.js' ); + + }, + + detach: function ( /* child, parent, scene */ ) { + + console.error( 'THREE.SceneUtils has been moved to /examples/jsm/utils/SceneUtils.js' ); + + }, + + attach: function ( /* child, scene, parent */ ) { + + console.error( 'THREE.SceneUtils has been moved to /examples/jsm/utils/SceneUtils.js' ); + + } + +}; + +// + +function LensFlare() { + + console.error( 'THREE.LensFlare has been moved to /examples/jsm/objects/Lensflare.js' ); + +} + +if ( typeof __THREE_DEVTOOLS__ !== 'undefined' ) { + + /* eslint-disable no-undef */ + __THREE_DEVTOOLS__.dispatchEvent( new CustomEvent( 'register', { detail: { + revision: REVISION, + } } ) ); + /* eslint-enable no-undef */ + +} + +export { ACESFilmicToneMapping, AddEquation, AddOperation, AdditiveAnimationBlendMode, AdditiveBlending, AlphaFormat, AlwaysDepth, AlwaysStencilFunc, AmbientLight, AmbientLightProbe, AnimationClip, AnimationLoader, AnimationMixer, AnimationObjectGroup, AnimationUtils, ArcCurve, ArrayCamera, ArrowHelper, Audio, AudioAnalyser, AudioContext, AudioListener, AudioLoader, AxesHelper, AxisHelper, BackSide, BasicDepthPacking, BasicShadowMap, BinaryTextureLoader, Bone, BooleanKeyframeTrack, BoundingBoxHelper, Box2, Box3, Box3Helper, BoxBufferGeometry, BoxGeometry, BoxHelper, BufferAttribute, BufferGeometry, BufferGeometryLoader, ByteType, Cache, Camera, CameraHelper, CanvasRenderer, CanvasTexture, CatmullRomCurve3, CineonToneMapping, CircleBufferGeometry, CircleGeometry, ClampToEdgeWrapping, Clock, ClosedSplineCurve3, Color, ColorKeyframeTrack, CompressedTexture, CompressedTextureLoader, ConeBufferGeometry, ConeGeometry, CubeCamera, BoxGeometry as CubeGeometry, CubeReflectionMapping, CubeRefractionMapping, CubeTexture, CubeTextureLoader, CubeUVReflectionMapping, CubeUVRefractionMapping, CubicBezierCurve, CubicBezierCurve3, CubicInterpolant, CullFaceBack, CullFaceFront, CullFaceFrontBack, CullFaceNone, Curve, CurvePath, CustomBlending, CustomToneMapping, CylinderBufferGeometry, CylinderGeometry, Cylindrical, DataTexture, DataTexture2DArray, DataTexture3D, DataTextureLoader, DecrementStencilOp, DecrementWrapStencilOp, DefaultLoadingManager, DepthFormat, DepthStencilFormat, DepthTexture, DirectionalLight, DirectionalLightHelper, DiscreteInterpolant, DodecahedronBufferGeometry, DodecahedronGeometry, DoubleSide, DstAlphaFactor, DstColorFactor, DynamicBufferAttribute, DynamicCopyUsage, DynamicDrawUsage, DynamicReadUsage, EdgesGeometry, EdgesHelper, EllipseCurve, EqualDepth, EqualStencilFunc, EquirectangularReflectionMapping, EquirectangularRefractionMapping, Euler, EventDispatcher, ExtrudeBufferGeometry, ExtrudeGeometry, Face3, Face4, FaceColors, FileLoader, FlatShading, Float32Attribute, Float32BufferAttribute, Float64Attribute, Float64BufferAttribute, FloatType, Fog, FogExp2, Font, FontLoader, FrontSide, Frustum, GLBufferAttribute, GLSL1, GLSL3, GammaEncoding, Geometry, GeometryUtils, GreaterDepth, GreaterEqualDepth, GreaterEqualStencilFunc, GreaterStencilFunc, GridHelper, Group, HalfFloatType, HemisphereLight, HemisphereLightHelper, HemisphereLightProbe, IcosahedronBufferGeometry, IcosahedronGeometry, ImageBitmapLoader, ImageLoader, ImageUtils, ImmediateRenderObject, IncrementStencilOp, IncrementWrapStencilOp, InstancedBufferAttribute, InstancedBufferGeometry, InstancedInterleavedBuffer, InstancedMesh, Int16Attribute, Int16BufferAttribute, Int32Attribute, Int32BufferAttribute, Int8Attribute, Int8BufferAttribute, IntType, InterleavedBuffer, InterleavedBufferAttribute, Interpolant, InterpolateDiscrete, InterpolateLinear, InterpolateSmooth, InvertStencilOp, JSONLoader, KeepStencilOp, KeyframeTrack, LOD, LatheBufferGeometry, LatheGeometry, Layers, LensFlare, LessDepth, LessEqualDepth, LessEqualStencilFunc, LessStencilFunc, Light, LightProbe, Line, Line3, LineBasicMaterial, LineCurve, LineCurve3, LineDashedMaterial, LineLoop, LinePieces, LineSegments, LineStrip, LinearEncoding, LinearFilter, LinearInterpolant, LinearMipMapLinearFilter, LinearMipMapNearestFilter, LinearMipmapLinearFilter, LinearMipmapNearestFilter, LinearToneMapping, Loader, LoaderUtils, LoadingManager, LogLuvEncoding, LoopOnce, LoopPingPong, LoopRepeat, LuminanceAlphaFormat, LuminanceFormat, MOUSE, Material, MaterialLoader, MathUtils as Math, MathUtils, Matrix3, Matrix4, MaxEquation, Mesh, MeshBasicMaterial, MeshDepthMaterial, MeshDistanceMaterial, MeshFaceMaterial, MeshLambertMaterial, MeshMatcapMaterial, MeshNormalMaterial, MeshPhongMaterial, MeshPhysicalMaterial, MeshStandardMaterial, MeshToonMaterial, MinEquation, MirroredRepeatWrapping, MixOperation, MultiMaterial, MultiplyBlending, MultiplyOperation, NearestFilter, NearestMipMapLinearFilter, NearestMipMapNearestFilter, NearestMipmapLinearFilter, NearestMipmapNearestFilter, NeverDepth, NeverStencilFunc, NoBlending, NoColors, NoToneMapping, NormalAnimationBlendMode, NormalBlending, NotEqualDepth, NotEqualStencilFunc, NumberKeyframeTrack, Object3D, ObjectLoader, ObjectSpaceNormalMap, OctahedronBufferGeometry, OctahedronGeometry, OneFactor, OneMinusDstAlphaFactor, OneMinusDstColorFactor, OneMinusSrcAlphaFactor, OneMinusSrcColorFactor, OrthographicCamera, PCFShadowMap, PCFSoftShadowMap, PMREMGenerator, ParametricBufferGeometry, ParametricGeometry, Particle, ParticleBasicMaterial, ParticleSystem, ParticleSystemMaterial, Path, PerspectiveCamera, Plane, PlaneBufferGeometry, PlaneGeometry, PlaneHelper, PointCloud, PointCloudMaterial, PointLight, PointLightHelper, Points, PointsMaterial, PolarGridHelper, PolyhedronBufferGeometry, PolyhedronGeometry, PositionalAudio, PropertyBinding, PropertyMixer, QuadraticBezierCurve, QuadraticBezierCurve3, Quaternion, QuaternionKeyframeTrack, QuaternionLinearInterpolant, REVISION, RGBADepthPacking, RGBAFormat, RGBAIntegerFormat, RGBA_ASTC_10x10_Format, RGBA_ASTC_10x5_Format, RGBA_ASTC_10x6_Format, RGBA_ASTC_10x8_Format, RGBA_ASTC_12x10_Format, RGBA_ASTC_12x12_Format, RGBA_ASTC_4x4_Format, RGBA_ASTC_5x4_Format, RGBA_ASTC_5x5_Format, RGBA_ASTC_6x5_Format, RGBA_ASTC_6x6_Format, RGBA_ASTC_8x5_Format, RGBA_ASTC_8x6_Format, RGBA_ASTC_8x8_Format, RGBA_BPTC_Format, RGBA_ETC2_EAC_Format, RGBA_PVRTC_2BPPV1_Format, RGBA_PVRTC_4BPPV1_Format, RGBA_S3TC_DXT1_Format, RGBA_S3TC_DXT3_Format, RGBA_S3TC_DXT5_Format, RGBDEncoding, RGBEEncoding, RGBEFormat, RGBFormat, RGBIntegerFormat, RGBM16Encoding, RGBM7Encoding, RGB_ETC1_Format, RGB_ETC2_Format, RGB_PVRTC_2BPPV1_Format, RGB_PVRTC_4BPPV1_Format, RGB_S3TC_DXT1_Format, RGFormat, RGIntegerFormat, RawShaderMaterial, Ray, Raycaster, RectAreaLight, RedFormat, RedIntegerFormat, ReinhardToneMapping, RepeatWrapping, ReplaceStencilOp, ReverseSubtractEquation, RingBufferGeometry, RingGeometry, SRGB8_ALPHA8_ASTC_10x10_Format, SRGB8_ALPHA8_ASTC_10x5_Format, SRGB8_ALPHA8_ASTC_10x6_Format, SRGB8_ALPHA8_ASTC_10x8_Format, SRGB8_ALPHA8_ASTC_12x10_Format, SRGB8_ALPHA8_ASTC_12x12_Format, SRGB8_ALPHA8_ASTC_4x4_Format, SRGB8_ALPHA8_ASTC_5x4_Format, SRGB8_ALPHA8_ASTC_5x5_Format, SRGB8_ALPHA8_ASTC_6x5_Format, SRGB8_ALPHA8_ASTC_6x6_Format, SRGB8_ALPHA8_ASTC_8x5_Format, SRGB8_ALPHA8_ASTC_8x6_Format, SRGB8_ALPHA8_ASTC_8x8_Format, Scene, SceneUtils, ShaderChunk, ShaderLib, ShaderMaterial, ShadowMaterial, Shape, ShapeBufferGeometry, ShapeGeometry, ShapePath, ShapeUtils, ShortType, Skeleton, SkeletonHelper, SkinnedMesh, SmoothShading, Sphere, SphereBufferGeometry, SphereGeometry, Spherical, SphericalHarmonics3, Spline, SplineCurve, SplineCurve3, SpotLight, SpotLightHelper, Sprite, SpriteMaterial, SrcAlphaFactor, SrcAlphaSaturateFactor, SrcColorFactor, StaticCopyUsage, StaticDrawUsage, StaticReadUsage, StereoCamera, StreamCopyUsage, StreamDrawUsage, StreamReadUsage, StringKeyframeTrack, SubtractEquation, SubtractiveBlending, TOUCH, TangentSpaceNormalMap, TetrahedronBufferGeometry, TetrahedronGeometry, TextBufferGeometry, TextGeometry, Texture, TextureLoader, TorusBufferGeometry, TorusGeometry, TorusKnotBufferGeometry, TorusKnotGeometry, Triangle, TriangleFanDrawMode, TriangleStripDrawMode, TrianglesDrawMode, TubeBufferGeometry, TubeGeometry, UVMapping, Uint16Attribute, Uint16BufferAttribute, Uint32Attribute, Uint32BufferAttribute, Uint8Attribute, Uint8BufferAttribute, Uint8ClampedAttribute, Uint8ClampedBufferAttribute, Uniform, UniformsLib, UniformsUtils, UnsignedByteType, UnsignedInt248Type, UnsignedIntType, UnsignedShort4444Type, UnsignedShort5551Type, UnsignedShort565Type, UnsignedShortType, VSMShadowMap, Vector2, Vector3, Vector4, VectorKeyframeTrack, Vertex, VertexColors, VideoTexture, WebGL1Renderer, WebGLCubeRenderTarget, WebGLMultisampleRenderTarget, WebGLRenderTarget, WebGLRenderTargetCube, WebGLRenderer, WebGLUtils, WireframeGeometry, WireframeHelper, WrapAroundEnding, XHRLoader, ZeroCurvatureEnding, ZeroFactor, ZeroSlopeEnding, ZeroStencilOp, sRGBEncoding }; \ No newline at end of file diff --git a/public/script.js b/public/script.js new file mode 100644 index 00000000..e69de29b diff --git a/public/tutorial.css b/public/tutorial.css new file mode 100644 index 00000000..c40c83f6 --- /dev/null +++ b/public/tutorial.css @@ -0,0 +1,31 @@ +body { + position: absolute; + font-family: "Proxima Nova", "Montserrat", sans-serif; +} + +h2{ + padding-top: 30px; +} + +h2 { + position: absolute; + left: 10px; + font-size: 1.3em; + font-weight: 100; +} + +.fire-departments{ + fill: red; +} + +.hospitals{ + fill: rgb(248, 220, 255); +} + +.police{ + fill: rgb(3, 20, 248); +} + +.schools{ + fill: rgb(144, 243, 157); +} \ No newline at end of file diff --git a/public/tutorial.html b/public/tutorial.html new file mode 100644 index 00000000..f39f6aa1 --- /dev/null +++ b/public/tutorial.html @@ -0,0 +1,36 @@ + + + + Mapping with D3 + + + + + + + + + + + + + + + +

Public Schools, Fire Departments, Police Stations, and Hospitals in Boston

+ + + + + + +

+
+ + +
+ + + \ No newline at end of file diff --git a/server.js b/server.js new file mode 100644 index 00000000..be6aa5de --- /dev/null +++ b/server.js @@ -0,0 +1,88 @@ +var browserify = require('browserify'); +const express = require("express"); +const app = express(); +const bodyParser = require("body-parser"); +const cors = require("cors"); +const fs = require( 'fs' ); +var d3 = require("d3"); + +//allows body-parser to extract data from the form element +app.use( + bodyParser.urlencoded({ + extended: true + }) +); +app.use(bodyParser.json()); +app.use(cors()); +//serving the files +const expressSession = require("express-session")({ + secret: "secret", + resave: false, + saveUninitialized: false +}); + + +app.use(expressSession); +app.use(express.static("public")); +app.use(express.static("./")); + +/* +const fireReadData = fs.readFileSync('public/data/boston_fire_departments.json','utf8') +const fire= JSON.parse(fireReadData) + +const policeReadData = fs.readFileSync('public/data/boston_police.json','utf8') +const police= JSON.parse(policeReadData) + +const schoolReadData = fs.readFileSync('public/data/boston_public_schools.json','utf8') +const school= JSON.parse(schoolReadData) + +const hospitalReadData = fs.readFileSync('public/data/boston_hospitals.json','utf8') +const hospital= JSON.parse(hospitalReadData) + +const mapReadData = fs.readFileSync('public/data/boston_neighborhoods.json','utf8') +const map= JSON.parse(mapReadData) + + app.post("/replace",(req, res) => { + res.end(replaceData(tasksCollection, req, res)); + }); + + //get methods + app.get("/", function(req, res) { + console.log("this does print ") + res.send(map.html); + }); + + app.get("/fire", function(req, res) { + res.send(fire); + }); + + app.get("/school", function(req, res) { + res.send(school); + }); + + app.get("/police", function(req, res) { + res.send(police); + }); + + app.get("/hospital", function(req, res) { + res.send(hospital); + }); + + app.get("/map", function(req, res) { + console.log("map requested") + res.send(map); + }); + + + //delete methods + app.delete("/delete",function(req, res) { + res.send(deleteData(tasksCollection, req, res)); + }); +*/ +//initializing the server +var server = app.listen(3002, function() { + var host = server.address().address; + var port = server.address().port; + + console.log("listening at http://%s:%s", host, port); +});