Skip to content

Instantly share code, notes, and snippets.

@davo
Forked from monsieurBelbo/README.md
Created March 5, 2013 21:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davo/5094476 to your computer and use it in GitHub Desktop.
Save davo/5094476 to your computer and use it in GitHub Desktop.

The Issue

I'm trying to build a map that can be zoomed using the mouse wheel and panned with drag. For that I'm using d3.behavior.zoom() and it works fine for the map. However, I also need to mark some points in the map (which are included in the same topojson used to draw the map). They get rendered just fine, but I'm having trouble handling the zoom behaviour with these points. If you try to zoom or pan, the points get translated abruptly and even seem to change their path!

Any ideas?

<!DOCTYPE html>
<meta charset="utf-8">
<script src="http://d3js.org/d3.v3.js"></script>
<script src="topojson.v0.min.js"></script>
<html>
<style>
.background {
fill: none;
pointer-events: all;
}
.department {
fill: #aaa;
stroke: #fff;
stroke-width: 1.5px;
}
</style>
<body>
<script>
d3.json("santafe.json", function(error, theProvince) {
var width= 960, height= 500;
var svg = d3.select("body").append("svg");
var departments = topojson.object(theProvince, theProvince.objects.departments);
// The projection
var projection = d3.geo.mercator()
.scale(14000)
.center([-60.951,-31.2])
.translate([width / 2, height / 2]);
// The path
var path = d3.geo.path()
.projection(projection);
// Zoom behavior
var zoom = d3.behavior.zoom()
.translate(projection.translate())
.scaleExtent([height, Infinity])
.scale(projection.scale())
.on("zoom", function() {
projection.translate(d3.event.translate).scale(d3.event.scale)
map.selectAll("path.zoomable").attr("d", path);
});
// The map
var map = svg.append("g")
.classed("provinceMap", true)
.call(zoom);
map.append("rect")
.attr("class", "background")
.attr("width", width)
.attr("height", height);
// Departments
map.selectAll(".department")
.data(departments.geometries)
.enter().append("path")
.classed("department", true)
.classed("zoomable", true)
.attr("d", path);
// Places
map.selectAll(".place-label")
.data(topojson.object(theProvince, theProvince.objects.maternidades).geometries)
.enter().append("path")
.classed("place", true)
.classed("zoomable", true)
.attr("d", d3.svg.symbol().type("cross"))
.attr("transform", function(d) { return "translate(" + projection(d.coordinates.reverse()) + ")"; });
});
</script>
</body>
</html>
Display the source blob
Display the rendered blob
Raw
{"type":"Topology","transform":{"scale":[0.0034412286420048253,0.003560855294599284],"translate":[-62.88922119140625,-63.598921]},"objects":{"departments":{"type":"GeometryCollection","geometries":[{"type":"Polygon","arcs":[[0,1,2,3,4]],"properties":{"ID_0":11,"ISO":"ARG","NAME_0":"Argentina","ID_1":21,"NAME_1":"Santa Fe","ID_2":439,"NAME_2":"Belgrano","VARNAME_2":"Las Rosas","TYPE_2":"Departamento","ENGTYPE_2":"Department"}},{"type":"Polygon","arcs":[[5,6,7,8,-2,9]],"properties":{"ID_0":11,"ISO":"ARG","NAME_0":"Argentina","ID_1":21,"NAME_1":"Santa Fe","ID_2":440,"NAME_2":"Caseros","VARNAME_2":"Casilda","TYPE_2":"Departamento","ENGTYPE_2":"Department"}},{"type":"Polygon","arcs":[[10,11,12,13]],"properties":{"ID_0":11,"ISO":"ARG","NAME_0":"Argentina","ID_1":21,"NAME_1":"Santa Fe","ID_2":441,"NAME_2":"Castellanos","VARNAME_2":"Rafaela","TYPE_2":"Departamento","ENGTYPE_2":"Department"}},{"type":"Polygon","arcs":[[14,-7,15,16,17]],"properties":{"ID_0":11,"ISO":"ARG","NAME_0":"Argentina","ID_1":21,"NAME_1":"Santa Fe","ID_2":442,"NAME_2":"Constitución","VARNAME_2":"Villa Constitucion","TYPE_2":"Departamento","ENGTYPE_2":"Department"}},{"type":"Polygon","arcs":[[18,19,20,21]],"properties":{"ID_0":11,"ISO":"ARG","NAME_0":"Argentina","ID_1":21,"NAME_1":"Santa Fe","ID_2":443,"NAME_2":"Garay","VARNAME_2":"Helvencia","TYPE_2":"Departamento","ENGTYPE_2":"Department"}},{"type":"Polygon","arcs":[[-8,-15,22]],"properties":{"ID_0":11,"ISO":"ARG","NAME_0":"Argentina","ID_1":21,"NAME_1":"Santa Fe","ID_2":444,"NAME_2":"General López","VARNAME_2":"Melincue","TYPE_2":"Departamento","ENGTYPE_2":"Department"}},{"type":"Polygon","arcs":[[23,24,25]],"properties":{"ID_0":11,"ISO":"ARG","NAME_0":"Argentina","ID_1":21,"NAME_1":"Santa Fe","ID_2":445,"NAME_2":"General Obligado","VARNAME_2":"Reconquista","TYPE_2":"Departamento","ENGTYPE_2":"Department"}},{"type":"Polygon","arcs":[[-10,-1,26,27]],"properties":{"ID_0":11,"ISO":"ARG","NAME_0":"Argentina","ID_1":21,"NAME_1":"Santa Fe","ID_2":446,"NAME_2":"Iriondo","VARNAME_2":"Cañada de Gomez","TYPE_2":"Departamento","ENGTYPE_2":"Department"}},{"type":"Polygon","arcs":[[28,29,30,-19,31]],"properties":{"ID_0":11,"ISO":"ARG","NAME_0":"Argentina","ID_1":21,"NAME_1":"Santa Fe","ID_2":447,"NAME_2":"La Capital","VARNAME_2":"Santa Fe","TYPE_2":"Departamento","ENGTYPE_2":"Department"}},{"type":"Polygon","arcs":[[32,-30,33,34,-11,35]],"properties":{"ID_0":11,"ISO":"ARG","NAME_0":"Argentina","ID_1":21,"NAME_1":"Santa Fe","ID_2":448,"NAME_2":"Las Colonias","VARNAME_2":"Esperanza","TYPE_2":"Departamento","ENGTYPE_2":"Department"}},{"type":"Polygon","arcs":[[36,37,38]],"properties":{"ID_0":11,"ISO":"ARG","NAME_0":"Argentina","ID_1":21,"NAME_1":"Santa Fe","ID_2":449,"NAME_2":"Nueve de Julio","VARNAME_2":"Tostado|9 de Julio","TYPE_2":"Departamento","ENGTYPE_2":"Department"}},{"type":"Polygon","arcs":[[-17,39,40]],"properties":{"ID_0":11,"ISO":"ARG","NAME_0":"Argentina","ID_1":21,"NAME_1":"Santa Fe","ID_2":450,"NAME_2":"Rosario","TYPE_2":"Departamento","ENGTYPE_2":"Department"}},{"type":"Polygon","arcs":[[41,42,-36,-14,43,-38]],"properties":{"ID_0":11,"ISO":"ARG","NAME_0":"Argentina","ID_1":21,"NAME_1":"Santa Fe","ID_2":451,"NAME_2":"San Cristóbal","TYPE_2":"Departamento","ENGTYPE_2":"Department"}},{"type":"Polygon","arcs":[[-21,44,45,-24,46]],"properties":{"ID_0":11,"ISO":"ARG","NAME_0":"Argentina","ID_1":21,"NAME_1":"Santa Fe","ID_2":452,"NAME_2":"San Javier","TYPE_2":"Departamento","ENGTYPE_2":"Department"}},{"type":"Polygon","arcs":[[47,-27,-5,48,-34,-29,49]],"properties":{"ID_0":11,"ISO":"ARG","NAME_0":"Argentina","ID_1":21,"NAME_1":"Santa Fe","ID_2":453,"NAME_2":"San Jerónimo","VARNAME_2":"Coronda","TYPE_2":"Departamento","ENGTYPE_2":"Department"}},{"type":"Polygon","arcs":[[-20,-31,-33,-43,50,-45]],"properties":{"ID_0":11,"ISO":"ARG","NAME_0":"Argentina","ID_1":21,"NAME_1":"Santa Fe","ID_2":454,"NAME_2":"San Justo","TYPE_2":"Departamento","ENGTYPE_2":"Department"}},{"type":"Polygon","arcs":[[-40,-16,-6,-28,-48,51]],"properties":{"ID_0":11,"ISO":"ARG","NAME_0":"Argentina","ID_1":21,"NAME_1":"Santa Fe","ID_2":455,"NAME_2":"San Lorenzo","VARNAME_2":"Coronda","TYPE_2":"Departamento","ENGTYPE_2":"Department"}},{"type":"Polygon","arcs":[[-49,-4,52,-12,-35]],"properties":{"ID_0":11,"ISO":"ARG","NAME_0":"Argentina","ID_1":21,"NAME_1":"Santa Fe","ID_2":456,"NAME_2":"San Martín","VARNAME_2":"Sastre","TYPE_2":"Departamento","ENGTYPE_2":"Department"}},{"type":"Polygon","arcs":[[-46,-51,-42,-37,53,-25]],"properties":{"ID_0":11,"ISO":"ARG","NAME_0":"Argentina","ID_1":21,"NAME_1":"Santa Fe","ID_2":457,"NAME_2":"Vera","TYPE_2":"Departamento","ENGTYPE_2":"Department"}}]},"maternidades":{"type":"GeometryCollection","geometries":[{"type":"Point","coordinates":[8698,833],"properties":{"NAME":"Htal. Prov. Rosario"}},{"type":"Point","coordinates":[8891,735],"properties":{"NAME":"Htal Escuela E. Perón"}},{"type":"Point","coordinates":[8703,823],"properties":{"NAME":"Htal Samco Esperanza"}},{"type":"Point","coordinates":[7101,0],"properties":{"NAME":"Htal Provincial Centenario"}},{"type":"Point","coordinates":[9999,1192],"properties":{"NAME":"Htal Villa Ocampo"}},{"type":"Point","coordinates":[8758,806],"properties":{"NAME":"Htal Granaderos a caballo"}},{"type":"Point","coordinates":[9071,805],"properties":{"NAME":"Htal. Reconquista"}},{"type":"Point","coordinates":[8553,590],"properties":{"NAME":"Htal Firmat"}},{"type":"Point","coordinates":[7101,0],"properties":{"NAME":"Htal. Venado Tuerto"}},{"type":"Point","coordinates":[8626,914],"properties":{"NAME":"Htal. Villa Constitución","ADM0NAME":"Argentina","ADM0_A3":"ARG","ADM1NAME":"Santa Fe","ISO_A2":"AR","LATITUDE":-30.932906475,"LONGITUDE":-61.5666144222}},{"type":"Point","coordinates":[9078,808],"properties":{"NAME":"HOSP DR JOSE MARIA CULLEN","ADM0NAME":"Argentina","ADM0_A3":"ARG","ADM1NAME":"Santa Fe","ISO_A2":"AR","LATITUDE":-30.932906475,"LONGITUDE":-61.5666144222}},{"type":"Point","coordinates":[8686,829],"properties":{"NAME":"Htal. R. Saenz Peña","ADM0NAME":"Argentina","ADM0_A3":"ARG","ADM1NAME":"Santa Fe","ISO_A2":"AR","LATITUDE":-30.932906475,"LONGITUDE":-61.5666144222}},{"type":"Point","coordinates":[8193,1409],"properties":{"NAME":"Htal. San Justo","ADM0NAME":"Argentina","ADM0_A3":"ARG","ADM1NAME":"Santa Fe","ISO_A2":"AR","LATITUDE":-30.932906475,"LONGITUDE":-61.5666144222}},{"type":"Point","coordinates":[9007,489],"properties":{"NAME":"Htal. San Jorge","ADM0NAME":"Argentina","ADM0_A3":"ARG","ADM1NAME":"Santa Fe","ISO_A2":"AR","LATITUDE":-30.932906475,"LONGITUDE":-61.5666144222}},{"type":"Point","coordinates":[8675,685],"properties":{"NAME":"Htal. San Carlos,Casilda","ADM0NAME":"Argentina","ADM0_A3":"ARG","ADM1NAME":"Santa Fe","ISO_A2":"AR","LATITUDE":-30.932906475,"LONGITUDE":-61.5666144222}},{"type":"Point","coordinates":[9195,589],"properties":{"NAME":"Htal. Rafaela","ADM0NAME":"Argentina","ADM0_A3":"ARG","ADM1NAME":"Santa Fe","ISO_A2":"AR","LATITUDE":-30.932906475,"LONGITUDE":-61.5666144222}},{"type":"Point","coordinates":[8193,1409],"properties":{"NAME":"Htal. Iturraspe","ADM0NAME":"Argentina","ADM0_A3":"ARG","ADM1NAME":"Santa Fe","ISO_A2":"AR","LATITUDE":-30.932906475,"LONGITUDE":-61.5666144222}},{"type":"Point","coordinates":[9465,663],"properties":{"NAME":"Htal. Iturraspe","ADM0NAME":"Argentina","ADM0_A3":"ARG","ADM1NAME":"Santa Fe","ISO_A2":"AR","LATITUDE":-30.932906475,"LONGITUDE":-61.5666144222}}]}},"arcs":[[[417,8762],[-1,-3],[-5,-16],[-5,-15],[-5,-16],[4,0],[0,-2],[-4,-15],[-8,-32],[1,0],[1,-1],[-7,-25],[6,-2],[-35,-6],[-6,-4],[-9,-31],[-8,-26]],[[336,8568],[-2,1],[-2,1],[-2,1],[-2,1],[-2,0],[-2,2],[-1,1],[-1,1],[-2,2],[-1,1],[-1,1],[-2,2],[-1,1],[-1,1]],[[314,8584],[0,1],[1,0],[1,1],[1,1],[1,1],[0,1],[0,1],[0,1],[0,1],[1,0],[0,1],[0,1],[-1,1],[0,1],[-1,1],[1,1],[0,1],[-1,1],[0,1],[1,0],[0,1],[0,1],[0,1],[0,1],[1,1],[0,1],[0,1],[0,1],[0,1],[0,1],[1,0],[1,1],[0,1],[0,1],[1,1],[0,1],[0,1],[0,1],[1,1],[-1,0],[0,1],[0,1],[-1,1],[0,1],[-1,0],[0,1],[0,1],[-1,0],[0,1],[-1,0],[0,1],[-1,1],[0,1],[1,1],[0,1],[1,1],[0,1],[0,1],[1,0],[0,1],[0,1],[0,1],[1,1],[0,1],[0,1],[0,1],[0,1],[0,1],[-1,1],[0,1],[0,1],[-1,1],[0,1],[0,1],[0,1],[0,1],[0,1],[-1,0],[-1,1],[0,1],[-1,1],[0,1],[0,1],[-1,1],[0,1],[-1,0],[-1,1],[-1,0],[-1,1],[-1,0],[-1,0],[0,1],[-1,0],[-1,1],[-1,1],[0,1],[-1,1],[0,1],[0,1],[-1,0],[0,1],[0,1],[-1,0],[0,1],[-1,1],[-1,1],[-1,1],[-1,1],[0,1],[-1,0],[0,1],[-1,1],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[0,1],[-1,0],[-1,0],[-1,0],[-1,1],[-1,0],[-1,1],[-1,0],[0,1],[-1,0],[-1,1],[-1,0],[-1,1],[-1,1],[1,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[1,1],[10,5],[1,0],[1,0],[1,0],[1,0],[1,1],[1,0],[0,1],[1,0],[0,1],[0,1],[1,1],[0,1],[0,1],[0,1],[0,1],[-1,1],[-1,1],[-1,0],[-1,-1],[-1,0],[-1,0],[-1,0],[-1,0],[-1,1],[-1,0],[0,1],[1,1],[1,1],[1,0],[1,1],[1,1],[0,1],[1,1],[0,1],[-1,1],[0,1],[-1,1],[-1,0],[-1,0],[-1,0],[-1,0],[-1,1],[-1,0],[0,1],[0,1],[1,0],[1,1],[1,0],[0,1],[1,0],[0,1],[1,1],[0,1],[-1,1],[0,1],[0,1],[0,1],[-1,0],[0,1],[0,1],[-1,1],[0,1],[0,1],[-1,1],[0,1],[0,1],[-1,1],[0,1],[0,1],[-1,0],[0,1],[0,1],[-1,0],[0,1],[0,1],[-1,0],[0,1],[0,1],[-1,0],[0,1],[-1,0],[0,1],[-1,1],[-1,1],[-1,0],[0,1],[-1,0],[0,1],[-1,0],[-1,1],[-1,1],[-1,1],[0,1],[-1,0],[0,1],[-1,0],[0,1],[-1,0],[0,1],[-1,1],[1,3],[-5,6],[-2,1],[-1,4]],[[255,8777],[22,6],[-1,4],[25,-5],[37,-6],[37,-6],[25,-5]],[[400,8765],[11,-2],[6,-1]],[[484,8615],[8,-9],[3,-4],[11,-15],[3,-4],[11,-12],[-15,-26],[-7,-1],[4,-13],[-2,-1],[-2,-1],[-2,-1],[-2,-1],[-2,-3],[5,-7],[10,-14],[-6,-4],[3,-2],[11,-16],[3,-4]],[[518,8477],[-1,0],[-2,-1],[-1,-1],[-1,-2],[-2,-1],[-2,-1],[-1,-2],[-1,-1],[-2,-1],[-2,-1],[-2,-1],[-2,-1],[-2,0],[-2,-1],[-2,0],[-2,0],[-2,-1],[-2,-2],[-1,-1],[-1,-2],[-2,-1],[-34,44],[-18,-8],[-3,-2],[-15,-8],[-13,0]],[[400,8482],[-4,0],[-7,0],[-25,0],[-23,0],[-61,-1],[-14,0],[-1,0],[-14,0],[0,1],[-17,0],[-10,0]],[[224,8482],[1,1],[1,1],[3,4],[13,17],[12,16],[1,1],[4,6],[7,12],[1,0],[0,1],[13,17],[1,0],[1,0],[1,1],[1,0],[0,1],[1,0],[1,0],[1,1],[1,1],[1,0],[1,0],[0,1],[1,0],[0,1],[1,0],[1,1],[1,1],[0,1],[1,1],[0,1],[1,1],[0,1],[1,0],[1,0],[0,1],[1,0],[1,1],[1,0],[0,1],[0,1],[1,0],[0,1],[1,0],[0,1],[1,0],[1,1],[1,0],[1,1],[1,0],[0,1],[1,0],[1,1],[1,1],[1,0],[0,1],[1,1],[1,0]],[[336,8568],[2,0],[2,-1],[2,0],[2,1],[2,0],[1,-1],[2,1],[2,1],[2,-1],[1,1],[1,2],[1,2],[2,0],[2,-1],[2,1],[2,0],[2,0],[3,1],[2,0],[2,0],[2,0],[2,0],[2,2],[1,1],[2,1],[2,1],[2,0],[2,1],[2,1],[2,1],[2,1],[1,1],[2,1],[2,1],[2,1],[2,1],[2,0],[2,1],[2,1],[1,1],[3,0],[2,0],[2,0],[2,0],[2,0],[2,0],[3,1],[1,1],[2,1],[3,0],[2,-1],[2,1],[2,0],[2,0],[3,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[0,1],[1,0],[1,0],[1,0],[0,1],[1,0],[1,0],[0,1],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[0,1],[1,0],[1,0],[1,0],[0,1],[1,0],[0,1],[1,0],[0,1],[1,0],[1,0],[0,1],[1,0],[1,0],[0,1],[1,0],[0,1],[1,1],[1,0],[0,1],[1,0],[1,1],[1,0],[1,0],[0,1],[1,0],[0,1],[1,0],[0,1],[0,1],[1,0],[0,1],[1,0],[0,1],[1,0],[0,1],[1,0],[1,0],[0,1],[1,0]],[[484,9224],[-8,-33],[-8,-37],[0,-2],[-14,-54],[-5,-20],[-7,-27],[-11,-50],[-12,1],[-3,-15],[-15,2],[-2,-9],[-10,-37],[0,-6]],[[389,8937],[-22,4],[0,-3],[-28,6],[0,5],[-43,6],[-48,9],[3,10],[-35,7]],[[216,8981],[4,2],[2,6],[2,7],[3,8],[2,4],[7,20],[0,2],[3,8],[2,4],[1,5],[2,6],[5,14],[0,2],[6,17],[1,2],[6,18],[7,19],[3,10],[3,10],[6,15],[1,4],[7,20],[0,2],[6,17],[3,9],[3,11],[0,1],[0,1],[1,2]],[[302,9227],[21,-3],[30,-5],[3,10],[62,-10],[4,15],[62,-10]],[[512,8360],[-11,11],[2,1],[-25,32],[-50,64],[-13,-7],[-3,5],[-2,2],[-3,5],[-7,9]],[[518,8477],[2,0],[2,0],[2,1],[2,1],[2,1],[1,1],[2,1],[2,1],[2,0],[2,1],[2,1],[1,1],[2,1],[3,0],[2,0],[2,1],[2,0],[2,0],[2,1],[2,1],[2,1],[2,2],[1,1],[1,1],[1,2],[0,1]],[[564,8498],[1,1],[0,2],[1,1],[0,1],[0,1],[1,2],[1,1],[1,2],[2,1],[2,1],[2,1],[2,1],[2,0],[2,1],[2,1],[1,1],[2,1],[2,2],[2,0],[2,0],[2,-1],[2,-1],[1,-1],[2,-1],[1,-2],[2,-1],[2,-1],[1,-1],[1,-2],[2,-1],[0,-1],[2,0],[2,-1],[2,0],[0,-1],[1,0],[0,-1],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[0,-1],[1,0],[0,-1],[0,-1],[1,0],[0,-1],[1,0],[0,-1],[1,0],[1,0],[1,0],[0,-1],[1,0],[0,-1],[1,0],[0,-1],[1,0],[1,0],[1,0],[1,0],[1,0],[0,-1],[1,0],[1,0],[0,-1],[1,0],[1,0],[1,0],[0,-1],[1,0],[1,-1],[1,0],[1,-1],[1,0],[1,0],[0,-1],[1,0],[1,0],[1,0],[1,0],[1,0],[0,-1],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[0,1],[1,0],[1,0],[1,0],[1,1],[1,0],[0,1],[1,0],[1,1],[1,0],[0,1],[1,0],[0,1],[1,0],[1,0],[0,1],[1,0],[0,1],[1,0],[0,1],[1,0],[0,1],[1,0],[0,1],[1,0],[1,0],[0,1],[1,0],[1,0],[0,1],[1,0],[1,0],[1,0],[0,1],[1,0],[1,0],[1,1],[1,0],[0,1],[1,0],[0,1],[0,1],[1,0],[0,1],[0,1],[1,0],[0,1],[1,0],[0,1],[1,0],[0,1],[1,0],[0,1],[0,1],[1,0],[0,1],[1,0],[0,1],[0,1],[1,0],[0,1],[0,1],[1,0],[0,1],[1,0],[0,1],[1,0],[0,1],[1,0],[1,1],[1,1],[0,1],[1,0],[0,1],[1,1],[0,1],[1,0],[0,1],[1,0],[1,0],[0,1],[1,0],[0,1],[1,0],[1,1],[1,1],[1,0],[0,1],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[3,-1],[2,0],[2,0],[2,1],[2,1],[2,0],[2,1],[2,1],[3,2]],[[750,8538],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[1,0],[0,-1],[0,-1],[0,-1],[1,-1],[1,0],[0,-1],[1,0],[1,-1],[1,0],[1,0],[1,-1],[1,0],[1,0],[1,0],[1,-1],[1,0],[1,0],[1,-1],[1,0],[0,-1],[0,-1],[-1,-1],[-2,0],[-1,0],[0,-1],[0,-1],[0,-2],[-1,-1],[-1,-2],[-1,-1],[-1,-1],[-1,-2],[0,-2],[0,-1],[-2,-1],[-1,-1],[-1,-1],[-1,-1],[-1,0],[-1,-1],[-2,-1],[0,-1],[-1,-2],[-1,-1],[-1,-1],[0,-1],[1,-2],[1,-2],[-1,-1],[-1,-2],[-1,-1],[0,-1],[0,-1],[-1,0],[-1,-2],[-1,-1],[-1,-2],[-1,-1],[-2,-1],[-1,0],[-1,-1],[-1,0],[-1,-1],[-1,-1],[-1,0],[-1,-1],[-2,-1],[-1,0],[-1,0],[-1,-2],[-1,-1],[0,-1],[-1,0],[-2,-1],[0,-2],[-1,-1],[0,-2],[-1,-1],[0,-1],[-1,-2],[0,-2],[-1,-1],[0,-1],[0,-1],[0,-2],[0,-1],[0,-2],[0,-2],[1,-1],[1,-2],[-1,-1],[-1,-2],[-1,-1],[-2,-1],[-1,0],[-1,0],[0,-1],[-1,0],[-2,-1],[-2,-2],[-1,-2],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[-1,-1],[0,-2],[0,-1],[1,-2],[0,-1],[-1,-1],[-2,0],[-2,-1],[-2,0],[-1,-1],[-1,-1],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,-1],[-1,0],[-1,0],[-1,0],[-1,-1],[-1,0],[-1,0],[-1,0],[-1,1],[-1,0],[-1,0],[-1,0],[-1,1],[-1,0],[-1,1],[-1,0],[-1,0],[-1,1],[-1,0],[-1,0],[-1,0],[-1,0],[-1,1],[-2,1],[-1,0],[-1,0],[-1,0],[-2,1],[-1,0],[-1,0],[-1,0],[-1,2],[-1,1],[-2,1],[-1,0],[-1,1],[-1,1],[-2,2],[-1,1],[-1,1],[-1,0],[-1,0],[-1,1],[-1,0],[-1,1],[-1,0],[-1,0],[-1,1],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,-1],[-1,0],[-1,0],[-1,0],[-1,-1],[-1,0],[-1,0],[-1,0],[-1,1],[-1,0],[-1,0],[-1,0],[-1,1],[-1,0],[-1,0],[-1,0],[-1,1],[-1,0],[-1,0],[-1,0],[-1,1],[-1,0],[-1,1],[-1,0],[-1,1],[-2,2],[-1,1],[-1,1],[-1,1],[-1,0],[-1,0],[-1,1],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,-1],[-1,0],[-1,0],[-1,0],[-1,-1],[-1,0],[-1,0],[0,-1],[-1,0],[-2,-2],[-1,0],[0,-1],[-2,-1],[-1,-1],[-1,-1],[-1,0],[-1,-1],[0,-1],[-1,-1],[-1,0],[-1,-1],[-1,-2],[0,-1],[0,-1],[0,-1],[-1,-1],[0,-2],[0,-2],[1,-1],[0,-1],[0,-1],[0,-1],[-17,-15],[-17,-15],[-7,-6],[-5,-5],[-5,-4],[-10,-9]],[[748,9003],[-8,4],[-1,1],[-2,1],[-2,1],[-2,0],[-2,1],[-1,2],[-1,1],[-2,0],[-3,0],[-2,0],[-1,-2],[-2,0],[-2,0],[-2,1],[-1,2],[-1,1],[-2,0],[-3,0],[-2,0],[-2,0],[-2,-1],[-2,1],[-1,2],[-2,1],[-2,-1],[-2,0],[-2,0],[-3,0],[-2,1],[-1,1],[0,2],[0,2],[0,2],[0,1],[2,2],[2,1],[1,1],[1,2],[0,1],[0,2],[1,2],[0,2],[0,2],[0,1],[1,2],[0,2],[0,2],[0,1],[0,2],[0,2],[-1,2],[1,2],[1,1],[1,2],[1,1],[1,2],[-1,1],[-2,1],[-2,0],[-2,1],[-1,1],[-1,2],[1,2],[0,2],[1,2],[1,1],[2,1],[1,1],[2,1],[1,2],[1,2],[1,1],[1,2],[0,2],[1,1],[0,2],[1,1]],[[702,9093],[0,1],[0,2],[1,1],[0,2],[1,2],[1,2],[0,1],[0,2],[1,2],[1,1],[3,0],[1,2],[2,1],[2,0],[1,1],[2,1],[2,-1],[2,0],[2,1],[1,2],[1,1],[2,1],[1,1],[-1,1],[0,1],[-1,2],[1,1],[1,2],[0,2],[0,2],[0,1],[2,1],[2,0],[1,1],[-1,2],[1,1],[1,2],[2,1],[2,0],[0,2],[1,2],[0,1],[-1,2],[0,2],[0,1],[1,2],[1,2],[1,1],[1,2],[0,2],[1,1],[2,1],[0,2],[1,2],[-1,1],[0,2],[1,2],[0,1],[1,2],[1,2],[1,1],[0,2],[0,2],[1,1],[1,2],[-1,1],[0,1],[2,2],[0,2],[1,1],[0,2],[0,2],[1,1],[2,1],[2,1],[2,1],[1,2],[0,1],[1,2],[0,2],[0,2],[-1,1],[-2,1],[-1,1],[-1,2],[1,2],[1,1],[0,2],[-2,1],[0,1],[0,2],[1,2],[1,2],[1,1],[1,2],[1,1],[1,2],[0,2],[0,1],[2,2],[1,1],[1,2],[1,1],[1,2]],[[770,9241],[2,1],[1,2],[1,1],[0,2],[1,2],[0,1],[0,2],[75,-5],[73,-8],[22,-3]],[[945,9236],[0,-1],[-1,-1],[-1,-1],[-1,0],[-1,-1],[-1,-1],[0,-1],[-1,-1],[-1,-1],[0,-1],[-1,0],[0,-1],[-1,0],[0,-1],[-1,-1],[-1,-1],[-1,-1],[0,-1],[-1,-1],[0,-1],[-1,0],[0,-1],[-1,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[1,-1],[0,-1],[-1,-1],[0,-1],[-1,0],[0,-1],[-1,-1],[-1,-1],[-1,0],[0,-1],[-1,0],[-1,0],[0,-1],[-1,0],[-1,0],[-1,-1],[-1,0],[-1,0],[-1,0],[-1,1],[-1,-1],[-1,0],[-1,0],[0,-1],[-1,0],[0,-1],[-1,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[-1,-1],[0,-1],[0,-1],[0,-1],[0,-1],[-1,0],[0,-1],[0,-1],[-1,0],[0,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[0,-1],[-1,-1],[0,-1],[0,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[0,-1],[-1,0],[0,-1],[-1,-1],[-1,-1],[-1,-1],[0,-1],[-1,0],[0,-1],[0,-1],[-1,0],[0,-1],[-1,0],[-1,-1],[-1,-1],[-1,0],[0,-1],[-1,0],[-1,-1],[-1,-1],[-1,-1],[0,-1],[-1,-1],[0,-1],[-1,0],[0,-1],[0,-1],[-1,0],[0,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[0,-1],[-1,0],[0,-1],[0,-1],[0,-1],[-1,0],[0,-1],[-1,-1],[0,-1],[-1,0],[0,-1],[-1,-1],[-1,-1],[-1,-1],[-1,0],[0,-1],[-1,-1],[-1,-1],[-1,-1],[-1,0],[0,-1],[-1,0],[0,-1],[-1,-1],[-1,-1],[-1,-1],[-1,0],[-1,0],[-1,0],[-1,-1],[-1,0],[-1,0],[-1,-1],[-1,0],[-1,-1],[-1,0],[0,-1],[-1,-1],[-1,-1],[0,-1],[-1,-1],[0,-1],[-1,-1],[0,-1],[-1,-1],[0,-1],[-1,-1],[0,-1],[0,-1],[-1,-1],[0,-1],[0,-1],[0,-1],[-1,0],[0,-1],[0,-1],[-1,0],[0,-1],[-1,-1],[-1,-1],[-1,0],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[-1,-1],[0,-1],[0,-1],[-1,0],[0,-1],[0,-1],[-1,0],[0,-1],[-1,-1],[-1,-1],[-1,-1],[-1,0],[0,-1],[-1,0],[-1,-1],[-1,0],[-1,0],[-1,-1],[-1,0],[0,-1],[-1,0],[-1,-1],[-1,0],[-1,0],[-1,0],[-1,0],[-1,-1],[-1,0],[-1,0],[0,-1],[-1,0],[-1,0],[-1,0],[0,-1],[-1,0],[-1,-1],[-1,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[1,-1],[0,-1],[1,-1],[0,-1],[0,-1],[0,-1],[0,-1],[-1,-1],[0,-1],[0,-1],[0,-1],[-1,0],[0,-1],[0,-1],[-1,-1],[0,-1],[0,-1],[-1,-1],[0,-1],[-1,0],[0,-1],[0,-1],[-1,0],[0,-1],[-1,-1],[0,-1],[0,-1],[-1,-1],[0,-1],[0,-1],[-1,0],[0,-1],[0,-1],[-1,0],[0,-1],[0,-1],[-1,0],[0,-1],[-1,0],[0,-1],[0,-1],[-1,-1],[0,-1],[-1,-1],[-1,-1],[-1,-1],[-1,0],[-1,0],[-1,0],[-1,0],[0,-1],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,-1],[-1,0],[-1,0],[-1,-1],[-1,-1],[0,-1],[-1,0],[-1,-1],[-1,-1],[-1,0],[0,-1],[-1,0],[0,-1],[-1,0],[0,-1],[-1,-1],[-1,-1],[-1,-1],[0,-1],[-1,-1],[0,-1],[1,-1],[-1,0],[0,-1],[0,-1],[-1,0],[0,-1],[-1,0],[-1,-1],[-1,-1],[-1,0],[0,-1],[-1,0],[-1,0],[-1,0],[-1,-1],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,-1],[-1,0],[-1,0],[-1,0],[-1,-1],[-1,0],[-1,-1]],[[512,8360],[-1,-1],[-5,-4],[-1,-1],[-16,-14],[-1,-1],[-16,-15],[-14,-12],[-5,-5],[-2,-2],[-15,-14],[-4,-3],[-12,-12],[-16,-14],[-1,-1],[-9,-9],[-7,-7],[-4,-3],[-14,-11],[-10,-8],[-6,-6],[-1,-1],[-7,-6],[-5,-5],[-4,0],[-4,0],[-13,0],[-4,0],[-1,0],[-7,0],[-1,0],[-24,0],[-16,-1],[-9,0],[-1,0],[-25,0],[-13,1],[-12,0],[-25,-1],[-7,0],[-19,0],[-25,0],[-9,0],[-2,0],[-14,0],[-26,0],[-18,0],[-7,0],[-25,0],[-25,0],[-4,0],[0,1],[1,0],[1,1],[1,0],[1,1],[1,0],[0,1],[1,0],[0,1],[1,0],[0,1],[1,0],[0,1],[1,1],[8,10],[4,5],[7,9],[6,8],[9,11],[5,6],[11,15],[2,2],[14,17],[3,5],[12,13],[4,4],[1,2],[8,10],[5,5],[5,8],[8,9],[5,7],[9,10],[9,13],[4,5],[13,17],[11,13],[3,4],[3,4],[10,13],[10,12],[4,5],[13,17],[9,11]],[[955,9587],[-4,1],[-2,1],[-2,1],[-2,0],[-2,1],[-2,0],[-2,0],[-2,0],[-2,-1],[-1,-1],[-2,-1],[-1,-2],[-2,-1],[-2,-1],[-1,-1],[-2,0],[-3,0],[-2,-1],[-2,0],[-2,1],[-1,2],[0,2],[0,1],[-2,1],[-1,0],[-2,2],[0,1],[-2,1],[-2,0],[-2,0],[-2,1],[-2,2],[0,1],[-1,2],[0,2],[0,1],[-48,5],[-34,5]],[[816,9612],[1,0],[1,1],[0,1],[1,0],[0,1],[0,1],[0,1],[0,1],[1,0],[0,1],[1,0],[0,1],[1,0],[0,1],[1,1],[0,1],[0,1],[0,1],[1,0],[-1,0],[0,1],[1,0],[0,1],[0,1],[1,0],[1,0],[0,1],[1,0],[0,1],[1,0],[1,1],[0,1],[1,1],[0,1],[-1,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[-1,1],[0,1],[0,1],[0,1],[-1,0],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[-1,0],[0,1],[0,1],[0,1],[0,1],[0,1],[-1,0],[0,1],[-1,0],[0,1],[0,1],[-1,0],[0,1],[-1,0],[0,1],[0,1],[-1,0],[0,1],[0,1],[-1,0],[0,1],[-1,0],[0,1],[-1,0],[0,1],[-1,0],[0,1],[-1,0],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[-1,0],[0,1],[0,1],[1,0],[0,1],[0,1],[-1,0],[0,1],[0,1],[-1,0],[0,1],[0,1],[-1,0],[0,1],[16,-3],[4,13],[3,-1],[2,6],[-3,0],[0,5],[-13,2],[8,38],[12,-3],[5,25],[2,-1],[58,-7],[0,1],[1,1],[1,0],[1,1],[0,1],[0,2],[0,1],[-1,1],[0,1],[-1,1],[-1,1],[0,1],[-1,1],[-1,1],[0,2],[0,1],[-1,1],[-1,0],[-1,2],[0,1],[-1,1],[-1,0],[-2,1],[-1,0],[0,1],[0,2],[0,1],[0,1],[1,1],[1,1],[2,0],[1,1],[1,1],[0,1],[0,1],[0,2],[-1,0],[-1,0],[-2,1],[0,1],[0,1],[1,1],[1,1],[2,1],[0,1],[1,1],[0,1],[0,1],[-1,1],[-1,1],[0,2],[-1,0],[-2,1],[-1,1],[-1,1],[-1,0],[-1,1],[-1,1],[-1,1],[0,1],[1,1],[-1,1],[-1,1],[0,1],[1,1],[2,0],[1,0],[1,1],[-1,1],[-1,1],[-1,1],[-1,1],[0,1],[0,1],[0,2],[0,1],[0,1],[-1,1],[0,1],[0,1],[1,2],[0,1],[1,0],[0,1],[1,1],[0,1],[-1,1],[-1,1],[1,1],[1,1],[1,1],[0,1],[1,1],[0,1],[1,2],[0,1],[0,1],[0,1],[1,1],[0,2],[1,1],[0,1],[0,1],[-1,0],[0,1],[0,1],[-1,1],[0,1],[0,1],[-1,0],[0,1],[-1,0],[0,1],[0,1],[0,1],[-1,1],[0,1],[0,1],[1,0],[0,1],[0,1],[0,1],[0,1],[-1,1],[1,1],[0,1],[0,1],[1,0],[0,1],[0,1],[-13,0],[-9,11],[0,21],[28,0],[0,49],[-7,-1],[-2,30]],[[894,9997],[5,0],[24,0],[24,0],[7,0],[16,0],[24,0],[16,0],[7,0],[24,0],[24,0],[17,0],[6,0],[7,0],[17,0],[24,0],[5,0],[18,0],[2,0],[1,0],[0,-1],[1,0],[1,-1],[1,-1],[0,-1],[0,-1],[0,-1],[1,-1],[0,-1],[1,-1],[-1,-2],[-1,0],[0,-1],[-1,-1],[0,-1],[0,-1],[-1,-1],[0,-1],[-1,-1],[0,-1],[-1,-1],[0,-1],[-1,-1],[-1,-1],[0,-1],[-1,0],[0,-1],[0,-1],[-1,0],[0,-1],[-1,0],[-1,-1],[0,-1],[-1,0],[0,-1],[-1,0],[-1,-1],[-1,-1],[-1,0],[-1,0],[0,-1],[-1,0],[-1,0],[-1,0],[-1,-1],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,-1],[-1,0],[-1,0],[0,-1],[-1,0],[-1,0],[-1,0],[-1,0],[-1,1],[-1,0],[-1,0],[-1,0],[-1,0],[-1,1],[-1,-1],[-1,0],[-1,0],[-1,0],[-1,0],[-1,-1],[-1,-1],[-1,-1],[0,-1],[-1,0],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[-1,0],[0,-1],[-1,0],[-1,-1],[-1,-1],[-1,0],[0,-1],[-1,0],[0,-1],[-1,0],[0,-1],[0,-1],[-1,-1],[0,-1],[-1,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[-1,-1],[0,-1],[0,-1],[0,-1],[1,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[1,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[-1,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[1,0],[0,-1],[1,-1],[1,-1],[1,-1],[0,-1],[1,0],[0,-1],[0,-1],[1,0],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[1,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[-1,-1],[-1,0],[0,-1],[0,-2],[0,-1],[1,-1],[0,-1],[1,-1],[0,-1],[0,-1],[1,-1],[1,-1],[1,-1],[0,-1],[1,-1],[0,-1],[1,0],[0,-1],[0,-1],[0,-1],[0,-1],[-1,-1],[0,-1],[-1,-1],[-1,-1],[0,-1],[-1,-1],[0,-1],[-1,0],[0,-1],[-1,-1],[-1,-1],[0,-1],[-1,-1],[0,-1],[-1,-1],[0,-1],[0,-1],[-1,-1],[0,-1],[-1,-1],[0,-1],[0,-1],[0,-1],[0,-1],[-1,0],[0,-1],[0,-1],[0,-1],[-1,0],[0,-1],[-1,0],[0,-1],[0,-1],[-1,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[1,0],[0,-1],[0,-1],[1,0],[1,-1],[1,0],[1,-1],[1,0],[0,-1],[1,0],[1,-1],[1,-1],[0,-1],[0,-1],[0,-1],[-1,-1],[0,-1],[-1,-1],[-1,0],[0,-1],[-1,0],[-1,-1],[-1,-1],[0,-1],[0,-1],[0,-1],[0,-1],[-1,-1],[0,-1],[0,-1],[0,-1],[-1,-1],[-1,0],[0,-1],[-1,0],[0,-1],[-1,0],[-1,-1],[-1,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[-1,0],[0,-1],[0,-1],[-1,0],[0,-1],[-1,-1],[-1,-1],[0,-1],[-1,-1],[-1,0],[0,-1],[-1,0],[-1,0],[-1,-1],[-1,-1],[0,-1],[-1,0],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[1,-1],[-1,-1],[0,-1],[0,-1],[0,-1],[0,-1],[-1,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[1,-1],[0,-1],[0,-1],[0,-1],[-1,0],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[-1,0],[0,-1],[0,-1],[0,-1],[-1,0],[0,-1],[0,-1],[-1,0],[0,-1],[0,-1],[0,-1],[-1,0],[0,-1],[0,-1],[-1,-1],[0,-1],[0,-1],[-1,-1],[0,-1],[0,-1],[0,-1],[-1,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[-1,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[-1,-1],[0,-1],[0,-1],[0,-1],[0,-1],[-1,0],[0,-1],[0,-1],[0,-1],[-1,-1],[0,-1],[-1,-1],[0,-1],[0,-1],[0,-1],[-1,-1],[0,-1],[-1,-1],[0,-1],[-1,-1],[-1,-1],[0,-1],[-1,0],[-1,-1],[-1,-1],[-1,0],[-1,0],[-1,-1],[-1,0],[-1,-1],[-1,0],[-1,-1],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,-1],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,-1],[-1,0],[0,-1],[-1,0],[-1,-1],[0,-1],[0,-1],[0,-1],[0,-1],[-1,-1],[0,-1],[0,-1],[-1,-1],[0,-1],[-1,-1],[-1,0],[-1,-1],[-1,0],[0,-1],[-1,-1],[-1,-1],[-1,-1],[0,-1],[-1,0],[0,-1],[-1,-1],[0,-1],[0,-1],[0,-1],[0,-1],[-1,-1],[-1,-1],[0,-1],[-1,0],[0,-1],[-1,0],[-1,-1],[-1,-1],[-1,-1],[-1,0],[0,-1],[-1,0],[-1,0],[-1,-1],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,-1],[-1,0],[-1,0],[-1,-1],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,-1],[-1,0],[0,-1],[-1,0],[0,-1],[0,-1],[-1,0],[0,-1],[0,-1],[-1,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[-1,-1],[0,-1],[0,-1],[0,-1],[-1,-1],[0,-1],[0,-1],[-1,0],[0,-1],[0,-1],[-1,0],[0,-1],[0,-1],[-1,0],[0,-1],[-1,-1],[0,-1],[-1,-1],[-1,-1],[0,-1],[-1,0],[-1,-1],[-1,-1],[-1,-1],[-1,0],[0,-1],[-1,0],[-1,0],[-1,-1],[-1,-1],[-1,0],[-1,-1],[-1,0],[-1,-1],[-1,0],[-1,0],[0,-1],[-1,0],[-1,0],[0,-1],[-1,-1],[0,-1],[-1,-1],[0,-1],[-1,-1],[0,-1],[-1,-1],[0,-1],[-1,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[1,-1],[0,-1],[1,-1],[1,-1],[0,-1],[1,-1],[0,-1],[0,-1],[-1,-1],[0,-1],[0,-1],[-1,-1]],[[417,8762],[39,-6],[25,-4],[9,4],[14,-2],[1,0],[43,-8],[29,-4],[5,-1],[5,3],[9,-3]],[[596,8741],[-1,0],[0,-1],[-1,0],[0,-1],[-1,0],[0,-1],[0,-1],[0,-1],[-1,0],[0,-1],[0,-1],[0,-1],[-1,0],[0,-1],[0,-1],[1,0],[0,-1],[0,-1],[1,0],[0,-1],[1,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[1,0],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[1,0],[0,-1],[0,-1],[1,0],[0,-1],[1,0],[0,-1],[0,-1],[1,0],[0,-1],[0,-1],[1,0],[0,-1],[1,0],[0,-1],[1,0],[0,-1],[0,-1],[1,0],[0,-1],[1,0],[0,-1],[0,-1],[0,-1],[-1,0],[0,-1],[0,-1],[-1,0],[0,-1],[-1,0],[0,-1],[-1,0],[-1,0],[0,-1],[-1,0],[-1,0],[-1,0],[0,-1],[-1,0],[-1,0],[0,-1],[-1,0],[-1,-1],[-1,0],[0,-1],[-1,0],[-1,-1],[-1,0],[0,-1],[-1,-1],[-1,0],[0,-1],[-1,0],[0,-1],[-1,0],[-1,0],[0,-1],[-1,0],[-1,0],[-1,0],[0,1],[-1,0],[-1,0],[0,1],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[0,-1],[-1,0],[-1,0],[0,-1],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[0,-1],[-1,0],[-1,0],[0,-1],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[0,-1],[-1,0],[-1,0],[-1,0],[0,-1],[-1,0],[-1,0],[0,-1],[0,-1],[-1,0],[0,-1],[-1,0],[0,-1],[-1,0],[0,-1],[-1,0],[0,-1],[-1,0],[0,-1],[0,-1],[-1,0],[0,-1],[-1,0],[0,-1],[0,-1],[0,-1],[-1,0],[0,-1],[-1,0],[0,-1],[0,-1],[-1,0],[0,-1],[-1,0],[-1,0],[0,-1],[-1,0],[0,-1],[0,-1],[-1,0],[0,-1],[0,-1],[0,-1],[-1,0],[0,-1],[0,-1],[-1,0],[0,-1],[0,-1],[-1,0],[0,-1],[0,-1],[-1,0],[0,-1],[-1,0],[0,-1],[-1,0],[-1,0],[0,-1],[-1,0],[-1,0],[0,-1],[-1,0],[-1,0],[0,-1],[-1,0],[-1,0],[-1,-1],[-1,0],[-1,0],[0,-1],[-1,0],[-1,0],[0,-1],[-1,0],[-1,0],[-1,-1],[-1,0],[-1,0],[-1,0],[0,-1],[-1,0],[-1,0],[-1,0],[0,-1],[-1,0],[-1,0],[0,-1],[-1,0],[-1,0],[0,-1],[-1,0],[0,-1],[-1,0],[-1,0],[0,-1],[-1,0],[0,-1],[-1,0],[-1,0],[0,-1],[-1,0],[0,-1],[-1,0],[-1,0],[0,-1],[-1,0],[0,-1],[-1,0],[0,-1],[-1,0],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[-1,-1],[-1,0],[0,-1],[-1,0],[0,-1],[-1,0],[-1,0],[0,-1],[0,-1],[0,-1],[-1,0],[0,-1]],[[631,8882],[-14,4],[0,3],[0,2],[0,2],[0,1],[0,2],[-1,2],[0,2],[0,1],[0,2],[0,2],[0,2],[-1,1],[-2,0],[-2,-1],[-2,1],[-2,1],[-2,0],[-2,-1],[-2,0],[-1,2],[-2,0],[-2,-1],[-2,0],[-2,1],[-1,1],[0,2],[-1,2],[1,2],[0,1],[0,2],[-1,2],[0,2],[-1,1],[-1,2],[-1,1],[-3,0],[-1,-1],[-2,-2],[-1,-1],[-5,1],[-11,1],[-11,3]],[[553,8929],[2,9],[1,1],[7,11],[9,-1],[2,9],[3,2],[11,8],[1,0],[2,1],[1,1],[2,2],[1,1],[2,1],[0,2],[-1,1],[0,2],[-1,2],[0,1],[-1,2],[-1,2],[0,2],[-2,2],[0,1],[2,0],[2,0],[3,0],[2,0],[2,-1],[2,-1],[2,0],[2,-1],[2,0],[2,0],[-1,2],[-1,1],[-1,2],[-1,2],[-1,1],[-2,1],[0,2],[0,2],[2,1],[0,1],[0,1],[-1,1],[-2,1],[-1,1],[0,2],[0,1],[2,1],[0,2],[1,2],[0,2],[0,1],[1,2],[1,1],[1,2],[2,1],[-2,1],[-1,1],[0,2],[0,2],[-1,2],[0,1],[-2,2],[-1,1],[-1,2],[-1,1],[0,2],[-1,2],[0,2],[0,1],[0,2],[1,2],[1,1],[1,2],[-1,1],[-2,1],[-2,0],[-2,0],[-2,0],[-2,0],[-1,-1],[-2,-1],[-2,-1],[-2,0],[-2,-2],[-2,0],[-2,1],[-2,0],[-2,0],[-2,0],[-1,1],[-2,1],[-2,0],[-1,1],[-1,0],[-1,2],[-1,1],[-1,2],[0,2],[1,1],[1,2],[0,2],[2,1],[2,1],[0,2],[-1,1],[-2,2],[0,2],[0,1],[2,2],[2,1],[1,1],[1,1],[2,1],[1,2],[2,1],[1,1],[3,1],[1,1],[1,1],[2,2],[1,1],[1,1],[2,2],[2,1],[1,1],[-1,2],[-1,1],[-2,1],[0,2],[1,2],[1,1],[1,2],[1,1],[0,2],[1,2],[2,1],[1,1],[1,2],[1,2],[1,1],[1,1],[2,2],[1,1],[1,2],[0,2],[0,1],[-2,2],[-2,0],[-2,0],[-2,0],[-1,2],[-1,1],[-1,2],[-1,1],[-1,2],[0,2],[1,2],[2,1],[1,1],[2,2],[1,1],[0,1]],[[599,9149],[42,-8],[-4,-17],[37,-8],[-3,-10],[-5,-3],[6,-1],[30,-9]],[[748,9003],[-1,0],[-1,-1],[-1,0],[-1,-1],[-1,-1],[-1,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[1,0],[0,-1],[0,-1],[1,0],[0,-1],[1,0],[0,-1],[0,-1],[0,-1],[1,0],[0,-1],[0,-1],[-1,-1],[0,-1],[-1,0],[-1,-1],[-1,-1],[-1,0],[0,-1],[-1,0],[-1,0],[-1,-1],[-1,0],[-1,-1],[-1,0],[-1,0],[0,-1],[-1,0],[-1,-1],[-1,0],[-1,0],[0,-1],[-1,0],[-1,0],[0,-1],[-1,0],[-1,-1],[-1,-1],[0,-1],[-1,0],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,0],[-1,0],[0,-1],[-1,0],[-1,-1],[-1,0],[-1,-1],[-1,0],[-1,0],[-1,-1],[-1,0],[-1,0],[-1,-1],[-1,0],[-1,0],[-1,-1],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[0,-1],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,1],[-1,0],[-1,1],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[0,-1],[-1,0],[-1,-1],[-1,-1],[-1,-1],[0,-1],[-1,0],[0,-1],[-1,0],[-1,-1],[-1,-1],[-1,0],[0,-1],[-1,0],[-1,0],[-1,0],[-1,-1],[-1,0],[-1,0],[-1,1],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[0,-1],[-1,-1],[0,-1],[-1,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[1,0],[0,-1],[0,-1],[1,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[-1,0],[0,-1],[0,-1],[0,-1],[-1,-1],[0,-1],[0,-1],[0,-1],[0,-1],[1,-1],[1,-1],[0,-1],[1,-1],[0,-1],[0,-1],[-1,0],[0,-1],[0,-1],[-1,0],[0,-1],[-1,-1],[0,-1],[-1,-1],[0,-1],[0,-1],[-1,-1],[0,-1],[1,-1],[0,-1],[0,-1],[1,-1],[1,-1],[0,-1],[0,-1],[1,-1],[-1,-1],[0,-1],[-1,-1],[0,-1],[-1,0],[-1,-1],[-1,-1],[-1,0],[-1,0],[0,-1],[-1,0],[-1,-1],[-1,-1],[-1,0],[-1,-1],[-1,-1],[-1,0],[0,-1],[0,-1],[-1,-1],[0,-1],[0,-1],[-1,-1]],[[597,9210],[-2,-2],[0,-2],[1,-1],[1,-1],[1,-2],[1,-1],[1,-1],[1,-2],[1,-1],[1,-2],[1,-1],[1,-1],[1,-2],[1,-2],[1,-1],[1,-2],[-1,-2],[-2,0],[-3,1],[-2,0],[-2,-1],[-1,-1],[-3,0],[-2,0],[-2,0],[-1,-1],[-1,-2],[1,-1],[2,-1],[2,-1],[2,-1],[-1,-1],[-1,-2],[-1,-2],[0,-1],[1,-2],[0,-2],[-1,-1],[0,-2],[0,-1],[1,-2],[-1,-1],[-1,-2],[-2,0],[-2,-1],[-1,-2],[1,-2],[2,1],[2,0],[2,0],[2,-1],[1,-1],[2,-2]],[[553,8929],[-4,-18],[-7,2],[-50,9],[-6,1],[0,-2],[0,-2],[1,-2],[0,-1],[1,-2],[1,-2],[0,-2],[2,-1],[0,-2],[-1,0],[-2,-1],[-44,6]],[[444,8912],[-5,0],[-1,-1],[-3,1],[-3,-2],[-1,-3],[-48,7],[6,23]],[[484,9224],[10,39],[12,-2],[41,-6],[0,-2],[29,-8],[-7,-6],[2,-2],[1,-1],[1,-2],[1,-1],[1,-2],[1,-2],[0,-1],[0,-2],[1,-2],[2,-1],[1,-2],[1,-1],[2,-1],[2,-1],[2,0],[2,-1],[0,-2],[2,-1],[1,-1],[2,-1],[2,-1],[1,-1]],[[649,9997],[1,-24],[-27,-1],[2,-35],[-30,-11],[-14,-75],[-1,-8],[-6,-34],[-7,-39],[-3,-20],[-1,-5],[0,-6],[-4,-13],[-6,-28],[-3,-18],[-11,-55],[0,-2],[-7,-29],[-5,-25],[-4,-13],[-1,-12],[1,-2],[0,-2]],[[523,9540],[-1,0],[-2,0],[-2,0],[-2,1],[-1,2],[-1,1],[0,2],[0,2],[0,2],[-1,1],[-1,2],[-1,2],[-1,1],[-2,1],[-2,0],[-2,-1],[-2,1],[1,2],[0,2],[-2,0],[-2,1],[-2,0],[-2,1],[-2,0],[-2,1],[-2,0],[-2,1],[-2,0],[-1,1],[-2,-1],[-2,1],[-2,0],[-2,1],[-2,1],[-2,1],[-1,1],[-1,1],[-2,0],[-1,0],[-1,0],[-2,0],[-8,-35],[-12,-57],[-2,0],[-20,2],[-5,1],[-85,15],[-2,0],[-1,-3],[-18,0],[0,2],[-26,1],[-10,9],[4,20],[-20,2]],[[259,9528],[0,1],[4,20],[3,20],[4,20],[0,1],[2,13],[1,6],[3,20],[4,20],[0,2],[3,18],[4,20],[4,20],[3,20],[3,19],[1,1],[0,3],[2,9],[1,8],[1,6],[3,14],[3,21],[3,20],[4,20],[3,20],[3,17],[1,3],[0,4],[3,16],[1,5],[2,15],[4,20],[3,20],[4,21],[1,8],[15,-2],[24,1],[24,-1],[19,0],[5,0],[23,0],[13,0],[11,0],[8,0],[10,0],[6,0],[23,0],[24,0],[3,0],[21,0],[1,0],[22,0],[16,0],[8,0],[8,0],[4,0],[11,0],[3,0],[7,0]],[[564,8498],[-12,15],[-1,0],[-5,6],[-2,0],[-2,2],[1,0],[1,0],[0,1],[1,0],[1,0],[1,0],[1,0],[0,1],[1,0],[1,0],[0,1],[1,0],[0,1],[1,1],[0,1],[1,0],[1,0],[0,1],[1,0],[0,1],[1,0],[0,1],[1,0],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[-1,0],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[1,0],[0,1],[0,1],[1,0],[0,1],[1,0],[0,1],[1,0],[1,0],[0,1],[1,0],[1,0],[0,1],[1,0],[0,1],[1,0],[0,1],[1,0],[0,1],[1,0],[0,1],[1,1],[0,1],[1,0],[0,1],[7,22],[7,22],[1,2],[1,2],[1,1],[12,22],[-2,4],[0,1],[-1,0],[-4,6],[10,6],[5,-4],[6,2],[1,-4],[-1,-1],[3,0],[5,0],[0,-2],[8,0],[3,0],[2,0],[3,0],[0,1],[7,-1]],[[643,8638],[0,-1],[0,-1],[0,-1],[-1,-1],[0,-1],[0,-1],[0,-1],[-1,-1],[0,-1],[0,-1],[0,-1],[0,-1],[1,-1],[0,-1],[0,-1],[0,-1],[0,-1],[1,-1],[0,-1],[1,0],[1,-1],[0,-1],[1,0],[1,-1],[1,0],[1,-1],[1,-1],[1,0],[1,-1],[1,0],[1,0],[1,-1],[1,-1],[1,0],[1,-1],[0,-1],[1,0],[1,-1],[1,-1],[1,-1],[0,-1],[1,0],[0,-1],[1,-1],[0,-1],[0,-1],[0,-1],[-1,-1],[0,-1],[-1,0],[0,-1],[0,-1],[0,-1],[0,-1],[1,0],[0,-1],[1,-1],[0,-1],[1,0],[0,-1],[1,-1],[1,-1],[1,-1],[1,-1],[1,-1],[1,-1],[0,-1],[1,0],[1,-1],[0,-1],[1,0],[0,-1],[1,0],[0,-1],[1,0],[0,-1],[1,0],[0,-1],[1,0],[0,-1],[1,-1],[1,-1],[0,-1],[0,-1],[1,0],[0,-1],[1,-1],[0,-1],[1,0],[0,-1],[1,-1],[1,-1],[1,-1],[1,-1],[1,-1],[0,-1],[1,0],[1,-1],[1,-1],[1,0],[1,-1],[1,0],[0,-1],[1,0],[1,-1],[1,0],[0,-1],[1,-1],[1,0],[1,-1],[1,0],[0,-1],[1,0],[1,-1],[1,0],[1,0],[1,-1],[1,0],[1,-1],[1,0],[1,-1],[1,-1],[1,0],[0,-1],[1,0],[1,-1],[1,0],[1,0],[1,-1],[1,0],[1,-1],[1,0],[1,-1],[1,0],[1,0],[1,-1],[1,0],[1,-1],[1,0],[1,0],[1,1],[1,0],[1,1],[1,1],[1,0],[1,1],[1,0],[1,0],[1,1],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,-1],[1,0],[1,0],[0,-1],[1,0],[1,-1],[1,-1],[1,-1],[0,-1],[0,-1],[0,-1]],[[523,9540],[0,-1],[2,0],[2,-1],[2,-1],[2,-1],[1,-2],[2,-1],[2,-1],[1,-1],[2,0],[3,0],[2,1],[2,0],[2,0],[1,-1],[2,-2],[0,-1],[2,-1],[2,-1],[2,0],[2,0],[2,0],[2,-1],[1,-1],[2,1],[2,0],[2,0],[2,0],[2,-1],[1,-1],[2,-2],[1,-1],[2,-1],[1,-2],[2,0],[1,-2],[2,-1],[1,-1],[2,-1],[1,-2],[2,-1],[1,0],[1,-3],[1,-2],[1,-1],[1,-2],[2,-1],[2,1],[1,1],[3,1],[2,-1],[3,0],[2,-1],[1,-2],[0,-2],[0,-2],[0,-2],[1,-2],[2,-1],[2,-2],[2,-3],[1,-1],[1,-2],[1,-2],[1,-1],[2,-2],[1,-1],[0,-2],[1,-2],[1,-1],[1,-1],[1,-2],[-2,-1],[-1,-1],[-1,-2],[-1,-1],[-1,-1]],[[625,9462],[0,-1],[0,-2],[0,-2],[0,-1],[0,-2],[1,-2],[2,-1],[1,-1],[0,-2],[0,-1],[1,-2],[1,-2],[0,-1],[-2,-1],[-2,-1],[-2,-1],[-2,0],[1,-1],[1,-1],[1,-2],[0,-2],[0,-2],[0,-1],[0,-2],[-1,-1],[-2,-1],[0,-1],[0,-2],[-1,-2],[-1,-1],[-1,-2],[-1,-2],[0,-2],[0,-1],[-1,-1],[-1,-2],[1,-2],[2,-1],[1,-1],[1,-1],[1,-2],[0,-2],[1,-1],[2,-1],[1,-1],[2,-2],[1,-1],[1,-2],[0,-2],[-1,-1],[-2,-2],[-1,-1],[0,-2],[0,-2],[0,-2],[-1,-1],[-2,-1],[-1,-2],[1,0],[1,-1],[1,-2],[1,-1],[1,-2],[-2,-1],[2,-1],[1,-1],[2,-2],[0,-1],[2,-1],[2,-1],[1,-2],[1,-1],[2,0],[2,0],[2,0],[1,-2],[1,-2],[0,-1],[2,-2],[0,-1],[0,-2],[-1,-2],[-1,-1],[-1,-2],[1,-2],[0,-2],[0,-1],[1,-2],[-1,-1],[-2,0],[-2,-1],[-1,-1],[-1,-2],[0,-1],[0,-2],[0,-2],[-2,0],[0,-1],[2,-1],[-1,-2],[-1,-2],[2,1],[2,1],[2,-2],[-1,-1],[-1,-1],[2,-1],[0,-1],[-1,-2],[0,-2],[1,0],[2,0],[1,-2],[-2,-1],[-1,-1],[2,-1],[0,-2],[0,-2],[1,-1],[0,-2],[0,-1],[2,-2],[-2,0],[-1,-2],[0,-2],[0,-1],[-1,-2],[-2,0],[-2,-2],[-1,0],[-2,-2],[0,-2],[0,-1],[-1,-2],[2,-2],[1,-1],[2,0],[1,-2],[1,-2],[0,-2],[1,-1],[2,-1],[1,-2],[1,-1],[1,-2],[2,-1],[2,0],[2,-1],[1,-1],[0,-2],[-2,-1],[0,-2],[1,-1],[1,-2],[0,-1],[0,-2],[2,-1],[0,-1],[1,-2],[1,-2],[2,0],[0,-2],[0,-2],[-1,-1],[0,-2],[0,-2],[-1,-2],[-1,-1],[0,-2],[-1,-1],[0,-1],[-1,-1],[0,-2],[-1,-2],[-1,-1],[-2,-1],[-2,-1],[-2,0],[-2,1],[-2,0],[-2,1],[-3,0],[-2,0],[-2,0],[0,-2],[-3,1],[-1,-1],[-2,-1],[-1,-2],[-1,-1],[0,-2],[-1,-1],[-1,-2],[-2,0],[-2,-2],[-1,-1],[-2,-1],[-2,0],[-2,0],[-2,0],[-2,2],[-1,1],[-1,1],[-2,1],[-2,0],[-2,0],[-2,-2],[-2,-1],[-1,-1],[-1,-1]],[[302,9227],[4,16],[1,3],[-14,4],[-4,0],[-2,0],[-24,4],[1,13],[-8,1],[-5,1],[-7,6],[-6,6],[-7,7],[-8,8],[-2,2],[0,3],[3,14],[3,16],[1,4],[3,21],[3,17],[0,3],[3,20],[1,6],[1,4],[0,1],[1,9],[3,12],[1,8],[2,13],[3,20],[1,2],[3,18],[3,20],[1,6],[2,10],[0,3]],[[770,9241],[-34,6],[0,2],[0,2],[0,2],[0,1],[0,2],[-1,2],[-1,2],[-1,1],[-1,2],[-2,1],[-1,1],[-2,1],[1,2],[0,2],[1,1],[1,1],[2,2],[2,1],[1,1],[0,2],[0,2],[-1,2],[0,1],[1,2],[0,2],[0,2],[0,2],[0,1],[1,2],[1,1],[1,2],[-1,1],[1,2],[2,1],[2,0],[1,2],[0,2],[1,1],[1,2],[1,2],[2,1],[2,1],[1,1],[2,1],[0,2],[2,0],[2,1],[2,0],[2,1],[2,1],[1,2],[1,1],[1,2],[1,1],[1,2],[1,2],[0,1],[1,2],[2,1],[1,1],[2,1],[2,2],[0,1],[-1,2],[0,2],[0,1],[1,2],[0,2],[-2,1],[-1,2],[1,1],[-1,2],[0,2],[1,2],[1,1],[2,1],[2,1],[2,1],[2,1],[1,1],[-1,2],[0,2],[0,1],[1,2],[2,1],[1,1],[0,2],[1,2],[2,1],[1,2],[0,1],[0,2],[0,2],[1,2],[1,1],[0,2],[2,1],[1,2],[1,2],[1,1],[1,1]],[[800,9396],[1,2],[1,2],[-1,2],[0,1],[1,2],[0,2],[0,2],[0,1],[0,2],[1,2],[1,1],[2,1],[1,2],[0,2],[0,1],[1,2],[2,1],[1,1],[2,2],[2,1],[2,0],[2,1],[2,0],[2,1],[2,1],[1,1],[0,2],[-1,2],[0,2],[1,1],[1,2],[1,2],[1,1],[-1,2],[0,1],[2,1],[2,1],[1,1],[2,1],[2,2],[2,0],[2,0],[2,1],[2,1],[1,1],[1,1],[2,2],[1,1],[1,2],[2,0],[2,1],[1,2],[2,1],[0,2],[0,2],[1,1],[1,2],[2,1],[1,2],[0,1],[1,2],[1,2],[1,1],[3,0],[1,2],[0,1],[-2,2],[-2,-1],[-1,2],[-1,2],[0,1],[-2,1],[-2,0],[-3,1],[-2,0],[-2,0],[-2,0],[-2,-2],[0,1],[-1,0],[0,1],[-1,1],[0,1],[0,1],[-1,0],[0,1],[-1,0],[0,1],[0,1],[0,1],[0,1],[-1,1],[0,1],[-1,0],[0,1],[-1,1],[0,1],[-1,1],[0,1],[-1,0],[0,1],[0,1],[0,1],[0,1],[0,1],[-1,0],[-1,0],[0,1],[0,1],[0,1],[0,1],[1,1],[1,0],[1,0],[0,1],[0,1],[0,1],[1,0],[0,1],[0,1],[-1,1],[0,1],[0,1],[-1,0],[0,1],[0,1],[1,1],[0,1],[0,1],[-1,0],[0,1],[-1,0],[0,1],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[0,1],[-1,0],[0,-1],[-1,0],[-1,0],[-1,0],[0,-1],[-1,0],[-1,1],[-1,0],[-1,0],[0,1],[-1,0],[-1,0],[-1,0],[-1,0],[-1,1],[-1,0],[0,1],[-1,0],[0,1],[-1,0],[0,1],[-1,0],[0,1],[-1,1],[0,1],[0,1],[-1,0],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[-1,0],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[1,1],[-1,0],[0,1],[0,1],[0,1],[-1,1],[0,1],[-1,0],[0,1],[0,1],[-1,0],[0,1],[1,1],[0,1],[0,1],[0,1],[0,1],[0,1],[-1,0],[0,1],[0,1],[-1,0],[0,1],[0,1],[-1,0],[0,1],[0,1],[-1,0],[0,1],[0,1],[0,1],[0,1],[-1,1],[0,1],[1,0],[0,1],[0,1],[0,1],[0,1],[0,1],[1,0],[0,1],[0,1],[1,0],[0,1],[1,1],[0,1],[1,0],[0,1],[1,0],[0,1],[1,0],[0,1],[1,0],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[1,0],[0,1],[0,1]],[[955,9587],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[-1,-1],[0,-1],[0,-1],[-1,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[1,-2],[0,-1],[-1,-1],[0,-1],[-1,-1],[0,-1],[-1,0],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[1,-1],[0,-1],[1,0],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[1,-1],[0,-1],[0,-1],[0,-1],[1,-1],[-1,-1],[0,-1],[0,-1],[-1,-1],[-1,-1],[-1,-1],[0,-1],[-1,0],[0,-1],[-1,0],[-1,-1],[-1,-1],[-1,-1],[0,-1],[-1,0],[0,-1],[0,-1],[0,-1],[-1,0],[1,-1],[0,-1],[0,-1],[0,-1],[1,-1],[0,-1],[1,-1],[0,-1],[0,-1],[0,-1],[1,-1],[0,-1],[1,-1],[0,-1],[1,0],[0,-1],[0,-1],[0,-1],[-1,0],[0,-1],[0,-1],[-1,0],[0,-1],[-1,-1],[-1,-1],[-1,-1],[-1,0],[0,-1],[-1,-1],[-1,-1],[-1,0],[-1,-1],[-1,0],[0,-1],[-1,-1],[-1,0],[0,-1],[-1,0],[-1,-1],[-1,-1],[-1,-1],[0,-1],[-1,-1],[0,-1],[0,-1],[0,-1],[0,-1],[1,0],[0,-1],[0,-1],[1,-1],[0,-1],[1,0],[1,-1],[1,-1],[1,0],[1,-1],[1,0],[1,-1],[1,0],[0,-1],[1,0],[1,-1],[1,0],[1,-1],[1,0],[0,-1],[1,0],[0,-1],[1,-1],[0,-1],[1,-1],[0,-1],[0,-1],[1,-1],[0,-1],[0,-1],[0,-1],[1,-1],[0,-1],[0,-1],[1,-1],[0,-1],[0,-1],[0,-1],[1,-1],[0,-1],[1,-1],[0,-1],[0,-1],[0,-1],[1,-1],[0,-1],[1,-1],[0,-1],[0,-1],[0,-1],[0,-1],[1,0],[0,-1],[0,-1],[0,-1],[1,-1],[2,-1],[2,0],[2,0],[0,-1],[1,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[-1,-1],[0,-1],[-1,0],[0,-1],[-1,0],[-1,0],[-1,0],[-1,0],[-1,0],[0,-1],[-1,0],[-1,-1],[0,-1],[-1,0],[0,-1],[-1,-1],[0,-1],[1,-1],[0,-1],[0,-1],[1,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[-1,-1],[0,-1],[-1,-1],[0,-1],[-1,-1],[-1,-1],[0,-1],[-1,0],[0,-1],[0,-1],[-1,0],[0,-1],[-1,0],[0,-1],[-1,-1],[0,-1],[0,-1],[0,-1],[-1,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[1,-1],[0,-1],[0,-1],[0,-1],[1,-1],[0,-1],[0,-1],[0,-1],[0,-1],[-1,-1],[0,-1],[0,-1],[-1,-1],[-1,-1],[-1,-1],[-1,0],[-1,-1],[-1,0],[-1,0],[-1,-1],[-1,-1],[-1,0],[0,-1],[-1,0],[-1,-1],[-1,0],[-1,-1],[-1,-1],[-1,0],[0,-1],[-1,0],[-1,-1],[-1,-1],[-1,-1],[0,-1],[0,-1],[1,0],[0,-1],[1,-1],[1,-1],[1,-1],[1,-1],[0,-1],[1,0],[1,-1],[1,-1],[1,0],[0,-1],[1,0],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[-1,-1],[0,-1],[0,-1],[0,-1],[-1,0],[0,-1],[-1,-1],[-1,-1],[-1,-1],[-1,0],[0,-1],[-1,-1],[-1,-1],[-1,0],[0,-1],[-1,0],[-1,0],[0,-1],[-1,0],[-1,-1],[-1,-1],[-1,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[1,-1],[1,-1],[0,-1],[1,0],[0,-1],[1,0],[1,-1],[1,0],[1,-1],[1,0],[1,-1],[1,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[1,-1],[0,-1],[1,-1],[0,-1],[1,-1],[0,-1],[0,-1],[0,-1],[1,-1],[0,-1],[0,-1],[0,-1],[1,-1],[0,-1],[0,-1],[1,-1],[0,-1],[1,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[1,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[-1,-1],[-1,-1],[0,-1],[-1,-1],[0,-1],[-1,-1],[0,-1],[-1,-1],[-1,0],[0,-1],[0,-1],[-1,0],[0,-1],[0,-1],[0,-1],[-1,0],[0,-1],[0,-1],[1,-1],[0,-1],[1,-1],[0,-1],[0,-1],[1,0],[0,-1],[1,0],[0,-1],[1,0],[0,-1],[1,0],[1,-1],[1,0],[0,-1],[1,0],[1,-1],[1,0],[1,-1],[1,-1],[0,-1],[1,0],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[-1,-1],[0,-1],[-1,0],[0,-1],[-1,0]],[[619,8733],[-11,6],[-1,1],[-2,1],[0,2],[-1,2],[-1,0],[-1,0],[-1,0],[-1,0],[0,-1],[-1,0],[0,-1],[-1,0],[0,-1],[-1,0],[-1,0],[0,-1]],[[400,8765],[8,28],[6,24],[14,-3],[11,36],[-6,24],[11,38]],[[631,8882],[0,-1],[0,-1],[0,-1],[0,-1],[-1,0],[0,-1],[0,-1],[0,-1],[-1,-1],[0,-1],[0,-1],[0,-1],[1,0],[1,0],[2,0],[2,0],[2,0],[1,-1],[1,-1],[1,-1],[1,0],[0,-1],[0,-1],[1,-1],[1,0],[0,-1],[1,-1],[1,-1],[1,-1],[1,-1],[0,-1],[0,-1],[0,-1],[1,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[-1,-1],[-1,-1],[0,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[0,-1],[-1,0],[0,-1],[-1,-1],[-1,0],[0,-1],[-1,-1],[-1,0],[0,-1],[-1,-1],[-1,0],[0,-1],[-1,-1],[-1,-1],[-1,0],[-1,-1],[0,-1],[-1,0],[-1,-1],[-1,-1],[-1,0],[0,-1],[-1,-1],[0,-1],[0,-1],[0,-1],[0,-1],[1,-1],[1,0],[0,-1],[1,-1],[1,0],[1,-1],[1,-1],[1,0],[1,0],[1,-1],[1,0],[1,0],[1,-1],[1,0],[0,-1],[1,0],[1,-1],[0,-1],[1,0],[0,-1],[1,-1],[0,-1],[1,0],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[-1,0],[0,-1],[0,-1],[0,-1],[-1,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[1,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[-1,-1],[-1,0],[-1,-1],[-1,0],[-1,1],[-1,0],[-1,1],[-1,0],[-1,1],[-1,0],[-1,0],[-1,1],[-1,0],[-1,0],[-1,0],[-1,0],[-1,-1],[-1,-1],[0,-1],[0,-1],[0,-1],[1,-1],[0,-1],[1,-1],[1,-1],[1,-1],[1,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[1,-1],[0,-1],[0,-1],[1,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[-1,0],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[-1,0],[0,-1],[0,-1],[0,-1],[0,-1],[-1,-1],[0,-1],[-1,-1],[-1,0],[0,-1],[-1,-1],[-1,0],[0,-1],[-1,0],[-1,-1],[-1,0],[-1,-1],[-1,-1],[0,-1],[0,-1],[-1,0],[0,-1],[0,-1],[0,-1]],[[625,9462],[14,-2],[5,-1],[103,-17],[5,0],[2,-2],[0,-10],[0,-1],[0,-2],[0,-2],[1,-1],[2,-2],[1,0],[2,-1],[2,-1],[2,0],[2,-1],[2,-1],[2,-1],[2,-1],[0,-2],[1,-2],[0,-1],[0,-2],[1,-2],[1,-1],[1,-2],[1,-1],[2,-1],[2,0],[3,0],[1,-1],[-1,-2],[-1,-1],[-2,-1],[-1,-2],[0,-2],[0,-2],[1,-1],[2,-1],[2,1],[2,0],[2,1],[1,1],[1,2],[1,1],[2,2],[1,1],[3,0],[2,-1],[0,-1]],[[619,8733],[0,-1],[0,-1],[0,-1],[0,-1],[1,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[1,-1],[0,-1],[0,-1],[1,-1],[0,-1],[1,-1],[0,-1],[0,-1],[0,-1],[0,-1],[1,0],[0,-1],[0,-1],[0,-1],[0,-1],[-1,-1],[0,-1],[0,-1],[0,-1],[0,-1],[-1,0],[0,-1],[-1,-1],[0,-1],[1,-1],[0,-1],[0,-1],[1,-1],[0,-1],[1,-1],[0,-1],[1,0],[0,-1],[1,-1],[0,-1],[1,0],[0,-1],[1,-1],[1,-1],[1,-1],[0,-1],[1,-1],[0,-1],[0,-1],[1,-1],[0,-1],[1,-1],[1,0],[0,-1],[1,-1],[0,-1],[1,0],[0,-1],[1,-1],[0,-1],[0,-1],[0,-1],[-1,-1],[-1,0],[-1,-1],[-1,-1],[-1,0],[-1,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[1,-1],[0,-1],[0,-1],[1,-1],[0,-1],[1,-1],[0,-1],[1,-1],[1,0],[0,-1],[1,0],[1,-1],[1,0],[0,-1],[1,0],[1,-1],[0,-1],[1,-1],[1,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1]],[[255,8777],[-5,14],[-4,10],[-4,2],[-6,3],[-15,9],[-4,4],[-10,10],[-3,6],[-3,6],[4,12],[1,2],[0,3],[-1,2],[2,14],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[-1,1],[0,1],[0,1],[-1,0],[0,1],[0,1],[-1,0],[0,1],[0,1],[0,1],[-1,0],[0,1],[0,1],[-1,0],[0,1],[-1,1],[0,1],[-1,0],[-1,1],[-1,1],[0,1],[-1,0],[-1,1],[-1,1],[-1,0],[0,1],[-1,0],[0,1],[-1,1],[0,1],[-1,1],[0,1],[0,1],[0,1],[0,1],[0,1],[-1,0],[0,1],[0,1],[0,1],[1,1],[0,1],[0,1],[0,1],[0,1],[0,1],[1,1],[0,1],[0,1],[1,1],[0,1],[0,1],[1,1],[0,1],[1,1],[0,1],[0,1],[1,0],[0,1],[0,1],[0,1],[0,1],[-1,1],[0,1],[0,1],[0,1],[0,1],[0,1],[-1,1],[0,1],[0,1],[0,1],[-1,0],[0,1],[0,1],[-1,1],[0,1],[-1,1],[0,1],[-1,0],[0,1],[-1,1],[0,1],[-1,1],[-1,1],[-1,1],[0,1],[-1,0],[4,3],[18,14],[9,7]],[[649,9997],[14,0],[24,0],[23,0],[16,0],[8,0],[24,0],[15,0],[8,0],[24,0],[5,0],[19,0],[5,0],[3,0],[2,0],[6,0],[7,0],[24,0],[3,0],[13,0],[2,0]]]}
topojson=function(){function t(t,e){function n(e){var n=t.arcs[e],r=n[0],a=[0,0];return n.forEach(function(t){a[0]+=t[0],a[1]+=t[1]}),[r,a]}var r={},a={},o={};e.forEach(function(t){var e=n(t);(r[e[0]]||(r[e[0]]=[])).push(t),(r[e[1]]||(r[e[1]]=[])).push(~t)}),e.forEach(function(t){var e,r,c=n(t),i=c[0],s=c[1];if(e=o[i])if(delete o[e.end],e.push(t),e.end=s,r=a[s]){delete a[r.start];var u=r===e?e:e.concat(r);a[u.start=e.start]=o[u.end=r.end]=u}else if(r=o[s]){delete a[r.start],delete o[r.end];var u=e.concat(r.map(function(t){return~t}).reverse());a[u.start=e.start]=o[u.end=r.start]=u}else a[e.start]=o[e.end]=e;else if(e=a[s])if(delete a[e.start],e.unshift(t),e.start=i,r=o[i]){delete o[r.end];var f=r===e?e:r.concat(e);a[f.start=r.start]=o[f.end=e.end]=f}else if(r=a[i]){delete a[r.start],delete o[r.end];var f=r.map(function(t){return~t}).reverse().concat(e);a[f.start=r.end]=o[f.end=e.end]=f}else a[e.start]=o[e.end]=e;else if(e=a[i])if(delete a[e.start],e.unshift(~t),e.start=s,r=o[s]){delete o[r.end];var f=r===e?e:r.concat(e);a[f.start=r.start]=o[f.end=e.end]=f}else if(r=a[s]){delete a[r.start],delete o[r.end];var f=r.map(function(t){return~t}).reverse().concat(e);a[f.start=r.end]=o[f.end=e.end]=f}else a[e.start]=o[e.end]=e;else if(e=o[s])if(delete o[e.end],e.push(~t),e.end=i,r=o[i]){delete a[r.start];var u=r===e?e:e.concat(r);a[u.start=e.start]=o[u.end=r.end]=u}else if(r=a[i]){delete a[r.start],delete o[r.end];var u=e.concat(r.map(function(t){return~t}).reverse());a[u.start=e.start]=o[u.end=r.start]=u}else a[e.start]=o[e.end]=e;else e=[t],a[e.start=i]=o[e.end=s]=e});var c=[];for(var i in o)c.push(o[i]);return c}function e(e,r,a){function o(t){0>t&&(t=~t),(l[t]||(l[t]=[])).push(f)}function c(t){t.forEach(o)}function i(t){t.forEach(c)}function s(t){f=t,d[t.type](t.arcs)}var u=[];if(arguments.length>1){var f,l=[],d={LineString:c,MultiLineString:i,Polygon:i,MultiPolygon:function(t){t.forEach(i)}};"GeometryCollection"===r.type?r.geometries.forEach(s):s(r),l.forEach(3>arguments.length?function(t,e){u.push([e])}:function(t,e){a(t[0],t[t.length-1])&&u.push([e])})}else for(var h=0,v=e.arcs.length;v>h;++h)u.push([h]);return n(e,{type:"MultiLineString",arcs:t(e,u)})}function n(t,e){function n(t,e){e.length&&e.pop();for(var n,a=h[0>t?~t:t],o=0,c=a.length,i=0,s=0;c>o;++o)e.push([(i+=(n=a[o])[0])*u+l,(s+=n[1])*f+d]);0>t&&r(e,c)}function a(t){return[t[0]*u+l,t[1]*f+d]}function o(t){for(var e=[],r=0,a=t.length;a>r;++r)n(t[r],e);return e}function c(t){return t.map(o)}function i(t){return t=Object.create(t),t.coordinates=v[t.type](t),t}var s=t.transform,u=s.scale[0],f=s.scale[1],l=s.translate[0],d=s.translate[1],h=t.arcs,v={Point:function(t){return a(t.coordinates)},MultiPoint:function(t){return t.coordinates.map(a)},LineString:function(t){return o(t.arcs)},MultiLineString:function(t){return c(t.arcs)},Polygon:function(t){return c(t.arcs)},MultiPolygon:function(t){return t.arcs.map(c)}};return"GeometryCollection"===e.type?(e=Object.create(e),e.geometries=e.geometries.map(i),e):i(e)}function r(t,e){for(var n,r=t.length,a=r-e;--r>a;)n=t[a],t[a++]=t[r],t[r]=n}function a(t,e){for(var n=0,r=t.length;r>n;){var a=n+r>>>1;e>t[a]?n=a+1:r=a}return n}function o(t,e){function n(t,e){t.forEach(function(t){0>t&&(t=~t);var n=c[t]||(c[t]=[]);n[e]||(n.forEach(function(t){var n,r;r=a(n=i[e],t),n[r]!==t&&n.splice(r,0,t),r=a(n=i[t],e),n[r]!==e&&n.splice(r,0,e)}),n[e]=e)})}function r(t,e){t.forEach(function(t){n(t,e)})}function o(t,e){s[t.type](t.arcs,e)}var c=[],i=e.map(function(){return[]}),s={LineString:n,MultiLineString:r,Polygon:r,MultiPolygon:function(t,e){t.forEach(function(t){r(t,e)})}};return e.forEach(o),i}return{version:"0.0.8",mesh:e,object:n,neighbors:o}}();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment