Non puoi selezionare più di 25 argomenti
Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
52 righe
203 KiB
52 righe
203 KiB
<!DOCTYPE html><html lang="en"><head><script async="" src="https://www.googletagmanager.com/gtag/js?id=UA-140352188-1"></script><script>window.dataLayer = window.dataLayer || []; |
|
function gtag(){dataLayer.push(arguments);} |
|
gtag('js', new Date()); |
|
gtag('config', 'UA-140352188-1');</script><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/><meta name="description" content="The CDN for leaflet-control-geocoder"/><meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1"/><meta name="timestamp" content="2019-10-01T16:23:00.485Z"/><link rel="shortcut icon" href="/favicon.ico"/><title>UNPKG - leaflet-control-geocoder</title><script>window.Promise || document.write('\x3Cscript src="/es6-promise@4.2.5/dist/es6-promise.min.js">\x3C/script>\x3Cscript>ES6Promise.polyfill()\x3C/script>')</script><script>window.fetch || document.write('\x3Cscript src="/whatwg-fetch@3.0.0/dist/fetch.umd.js">\x3C/script>')</script><script>window.__DATA__ = {"packageName":"leaflet-control-geocoder","packageVersion":"1.9.0","availableVersions":["0.0.1","0.1.0","0.2.0","0.2.1","1.0.0","1.1.0","1.2.0","1.2.1","1.3.0","1.3.1","1.3.2","1.3.3","1.3.4","1.4.0","1.5.0","1.5.1","1.5.2","1.5.3","1.5.4","1.5.5","1.5.6","1.5.7","1.5.8","1.6.0","1.7.0","1.8.0","1.8.2","1.8.3","1.9.0"],"filename":"/dist/Control.Geocoder.min.js","target":{"path":"/dist/Control.Geocoder.min.js","type":"file","details":{"contentType":"application/javascript","integrity":"sha384-TrWipy8FKHI5kFM74q3vFOrwtbV0Fr3t2Ynh1POoWkW07ISfWItJoROH142O+q/p","language":"JavaScript","size":25889,"uri":null,"highlights":["<span class=\"code-comment\">/* @preserve\n</span>","<span class=\"code-comment\"> * Leaflet Control Geocoder 1.9.0\n</span>","<span class=\"code-comment\"> * https://github.com/perliedman/leaflet-control-geocoder\n</span>","<span class=\"code-comment\"> *\n</span>","<span class=\"code-comment\"> * Copyright (c) 2012 sa3m (https://github.com/sa3m)\n</span>","<span class=\"code-comment\"> * Copyright (c) 2018 Per Liedman\n</span>","<span class=\"code-comment\"> * All rights reserved.\n</span>","<span class=\"code-comment\"> */</span>\n","<span class=\"code-keyword\">this</span>.L=<span class=\"code-keyword\">this</span>.L||{},<span class=\"code-keyword\">this</span>.L.Control=<span class=\"code-keyword\">this</span>.L.Control||{},<span class=\"code-keyword\">this</span>.L.Control.Geocoder=<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">d</span>)</span>{<span class=\"code-string\">\"use strict\"</span>;d=d&&d.hasOwnProperty(<span class=\"code-string\">\"default\"</span>)?d.default:d;<span class=\"code-keyword\">var</span> a=<span class=\"code-number\">0</span>,n=<span class=\"code-regexp\">/[&<>\"'`]/g</span>,i=<span class=\"code-regexp\">/[&<>\"'`]/</span>,t={<span class=\"code-string\">\"&\"</span>:<span class=\"code-string\">\"&amp;\"</span>,<span class=\"code-string\">\"<\"</span>:<span class=\"code-string\">\"&lt;\"</span>,<span class=\"code-string\">\">\"</span>:<span class=\"code-string\">\"&gt;\"</span>,<span class=\"code-string\">'\"'</span>:<span class=\"code-string\">\"&quot;\"</span>,<span class=\"code-string\">\"'\"</span>:<span class=\"code-string\">\"&#x27;\"</span>,<span class=\"code-string\">\"`\"</span>:<span class=\"code-string\">\"&#x60;\"</span>};<span class=\"code-function\"><span class=\"code-keyword\">function</span> <span class=\"code-title\">r</span>(<span class=\"code-params\">e</span>)</span>{<span class=\"code-keyword\">return</span> t[e]}<span class=\"code-function\"><span class=\"code-keyword\">function</span> <span class=\"code-title\">o</span>(<span class=\"code-params\">e,t,o,s,n</span>)</span>{<span class=\"code-keyword\">var</span> i=<span class=\"code-string\">\"_l_geocoder_\"</span>+a++;t[n||<span class=\"code-string\">\"callback\"</span>]=i,<span class=\"code-built_in\">window</span>[i]=d.Util.bind(o,s);<span class=\"code-keyword\">var</span> r=<span class=\"code-built_in\">document</span>.createElement(<span class=\"code-string\">\"script\"</span>);r.type=<span class=\"code-string\">\"text/javascript\"</span>,r.src=e+l(t),r.id=i,<span class=\"code-built_in\">document</span>.getElementsByTagName(<span class=\"code-string\">\"head\"</span>)[<span class=\"code-number\">0</span>].appendChild(r)}<span class=\"code-function\"><span class=\"code-keyword\">function</span> <span class=\"code-title\">u</span>(<span class=\"code-params\">e,t,o</span>)</span>{<span class=\"code-keyword\">var</span> s=<span class=\"code-keyword\">new</span> XMLHttpRequest;s.onreadystatechange=<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\"></span>)</span>{<span class=\"code-keyword\">if</span>(<span class=\"code-number\">4</span>===s.readyState){<span class=\"code-keyword\">var</span> t;<span class=\"code-keyword\">if</span>(<span class=\"code-number\">200</span>!==s.status&&<span class=\"code-number\">304</span>!==s.status)t=<span class=\"code-string\">\"\"</span>;<span class=\"code-keyword\">else</span> <span class=\"code-keyword\">if</span>(<span class=\"code-string\">\"string\"</span>==<span class=\"code-keyword\">typeof</span> s.response)<span class=\"code-keyword\">try</span>{t=<span class=\"code-built_in\">JSON</span>.parse(s.response)}<span class=\"code-keyword\">catch</span>(e){t=s.response}<span class=\"code-keyword\">else</span> t=s.response;o(t)}},s.open(<span class=\"code-string\">\"GET\"</span>,e+l(t),!<span class=\"code-number\">0</span>),s.responseType=<span class=\"code-string\">\"json\"</span>,s.setRequestHeader(<span class=\"code-string\">\"Accept\"</span>,<span class=\"code-string\">\"application/json\"</span>),s.send(<span class=\"code-literal\">null</span>)}<span class=\"code-function\"><span class=\"code-keyword\">function</span> <span class=\"code-title\">s</span>(<span class=\"code-params\">e,s</span>)</span>{<span class=\"code-keyword\">return</span> e.replace(<span class=\"code-regexp\">/\\{ *([\\w_]+) *\\}/g</span>,<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e,t</span>)</span>{<span class=\"code-keyword\">var</span> o=s[t];<span class=\"code-keyword\">return</span> <span class=\"code-keyword\">void</span> <span class=\"code-number\">0</span>===o?o=<span class=\"code-string\">\"\"</span>:<span class=\"code-string\">\"function\"</span>==<span class=\"code-keyword\">typeof</span> o&&(o=o(s)),<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e</span>)</span>{<span class=\"code-keyword\">return</span> <span class=\"code-literal\">null</span>==e?<span class=\"code-string\">\"\"</span>:e?(e=<span class=\"code-string\">\"\"</span>+e,i.test(e)?e.replace(n,r):e):e+<span class=\"code-string\">\"\"</span>}(o)})}<span class=\"code-function\"><span class=\"code-keyword\">function</span> <span class=\"code-title\">l</span>(<span class=\"code-params\">e,t,o</span>)</span>{<span class=\"code-keyword\">var</span> s=[];<span class=\"code-keyword\">for</span>(<span class=\"code-keyword\">var</span> n <span class=\"code-keyword\">in</span> e){<span class=\"code-keyword\">var</span> i=<span class=\"code-built_in\">encodeURIComponent</span>(o?n.toUpperCase():n),r=e[n];<span class=\"code-keyword\">if</span>(d.Util.isArray(r))<span class=\"code-keyword\">for</span>(<span class=\"code-keyword\">var</span> a=<span class=\"code-number\">0</span>;a<r.length;a++)s.push(i+<span class=\"code-string\">\"=\"</span>+<span class=\"code-built_in\">encodeURIComponent</span>(r[a]));<span class=\"code-keyword\">else</span> s.push(i+<span class=\"code-string\">\"=\"</span>+<span class=\"code-built_in\">encodeURIComponent</span>(r))}<span class=\"code-keyword\">return</span>(t&&<span class=\"code-number\">-1</span>!==t.indexOf(<span class=\"code-string\">\"?\"</span>)?<span class=\"code-string\">\"&\"</span>:<span class=\"code-string\">\"?\"</span>)+s.join(<span class=\"code-string\">\"&\"</span>)}<span class=\"code-keyword\">var</span> c=d.Class.extend({<span class=\"code-attr\">options</span>:{<span class=\"code-attr\">service_url</span>:<span class=\"code-string\">\"https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer\"</span>},<span class=\"code-attr\">initialize</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e,t</span>)</span>{d.setOptions(<span class=\"code-keyword\">this</span>,t),<span class=\"code-keyword\">this</span>._accessToken=e},<span class=\"code-attr\">geocode</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e,r,a</span>)</span>{<span class=\"code-keyword\">var</span> t={<span class=\"code-attr\">SingleLine</span>:e,<span class=\"code-attr\">outFields</span>:<span class=\"code-string\">\"Addr_Type\"</span>,<span class=\"code-attr\">forStorage</span>:!<span class=\"code-number\">1</span>,<span class=\"code-attr\">maxLocations</span>:<span class=\"code-number\">10</span>,<span class=\"code-attr\">f</span>:<span class=\"code-string\">\"json\"</span>};<span class=\"code-keyword\">this</span>._key&&<span class=\"code-keyword\">this</span>._key.length&&(t.token=<span class=\"code-keyword\">this</span>._key),u(<span class=\"code-keyword\">this</span>.options.service_url+<span class=\"code-string\">\"/findAddressCandidates\"</span>,d.extend(t,<span class=\"code-keyword\">this</span>.options.geocodingQueryParams),<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e</span>)</span>{<span class=\"code-keyword\">var</span> t,o,s,n=[];<span class=\"code-keyword\">if</span>(e.candidates&&e.candidates.length)<span class=\"code-keyword\">for</span>(<span class=\"code-keyword\">var</span> i=<span class=\"code-number\">0</span>;i<=e.candidates.length<span class=\"code-number\">-1</span>;i++)t=e.candidates[i],o=d.latLng(t.location.y,t.location.x),s=d.latLngBounds(d.latLng(t.extent.ymax,t.extent.xmax),d.latLng(t.extent.ymin,t.extent.xmin)),n[i]={<span class=\"code-attr\">name</span>:t.address,<span class=\"code-attr\">bbox</span>:s,<span class=\"code-attr\">center</span>:o};r.call(a,n)})},<span class=\"code-attr\">suggest</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e,t,o</span>)</span>{<span class=\"code-keyword\">return</span> <span class=\"code-keyword\">this</span>.geocode(e,t,o)},<span class=\"code-attr\">reverse</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e,t,s,n</span>)</span>{<span class=\"code-keyword\">var</span> o={<span class=\"code-attr\">location</span>:<span class=\"code-built_in\">encodeURIComponent</span>(e.lng)+<span class=\"code-string\">\",\"</span>+<span class=\"code-built_in\">encodeURIComponent</span>(e.lat),<span class=\"code-attr\">distance</span>:<span class=\"code-number\">100</span>,<span class=\"code-attr\">f</span>:<span class=\"code-string\">\"json\"</span>};u(<span class=\"code-keyword\">this</span>.options.service_url+<span class=\"code-string\">\"/reverseGeocode\"</span>,o,<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e</span>)</span>{<span class=\"code-keyword\">var</span> t,o=[];e&&!e.error&&(t=d.latLng(e.location.y,e.location.x),o.push({<span class=\"code-attr\">name</span>:e.address.Match_addr,<span class=\"code-attr\">center</span>:t,<span class=\"code-attr\">bounds</span>:d.latLngBounds(t,t)})),s.call(n,o)})}});<span class=\"code-keyword\">var</span> p=d.Class.extend({<span class=\"code-attr\">initialize</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e</span>)</span>{<span class=\"code-keyword\">this</span>.key=e},<span class=\"code-attr\">geocode</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e,i,r</span>)</span>{o(<span class=\"code-string\">\"https://dev.virtualearth.net/REST/v1/Locations\"</span>,{<span class=\"code-attr\">query</span>:e,<span class=\"code-attr\">key</span>:<span class=\"code-keyword\">this</span>.key},<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e</span>)</span>{<span class=\"code-keyword\">var</span> t=[];<span class=\"code-keyword\">if</span>(<span class=\"code-number\">0</span><e.resourceSets.length)<span class=\"code-keyword\">for</span>(<span class=\"code-keyword\">var</span> o=e.resourceSets[<span class=\"code-number\">0</span>].resources.length<span class=\"code-number\">-1</span>;<span class=\"code-number\">0</span><=o;o--){<span class=\"code-keyword\">var</span> s=e.resourceSets[<span class=\"code-number\">0</span>].resources[o],n=s.bbox;t[o]={<span class=\"code-attr\">name</span>:s.name,<span class=\"code-attr\">bbox</span>:d.latLngBounds([n[<span class=\"code-number\">0</span>],n[<span class=\"code-number\">1</span>]],[n[<span class=\"code-number\">2</span>],n[<span class=\"code-number\">3</span>]]),<span class=\"code-attr\">center</span>:d.latLng(s.point.coordinates)}}i.call(r,t)},<span class=\"code-keyword\">this</span>,<span class=\"code-string\">\"jsonp\"</span>)},<span class=\"code-attr\">reverse</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e,t,i,r</span>)</span>{o(<span class=\"code-string\">\"//dev.virtualearth.net/REST/v1/Locations/\"</span>+e.lat+<span class=\"code-string\">\",\"</span>+e.lng,{<span class=\"code-attr\">key</span>:<span class=\"code-keyword\">this</span>.key},<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e</span>)</span>{<span class=\"code-keyword\">for</span>(<span class=\"code-keyword\">var</span> t=[],o=e.resourceSets[<span class=\"code-number\">0</span>].resources.length<span class=\"code-number\">-1</span>;<span class=\"code-number\">0</span><=o;o--){<span class=\"code-keyword\">var</span> s=e.resourceSets[<span class=\"code-number\">0</span>].resources[o],n=s.bbox;t[o]={<span class=\"code-attr\">name</span>:s.name,<span class=\"code-attr\">bbox</span>:d.latLngBounds([n[<span class=\"code-number\">0</span>],n[<span class=\"code-number\">1</span>]],[n[<span class=\"code-number\">2</span>],n[<span class=\"code-number\">3</span>]]),<span class=\"code-attr\">center</span>:d.latLng(s.point.coordinates)}}i.call(r,t)},<span class=\"code-keyword\">this</span>,<span class=\"code-string\">\"jsonp\"</span>)}});<span class=\"code-keyword\">var</span> h=d.Class.extend({<span class=\"code-attr\">options</span>:{<span class=\"code-attr\">serviceUrl</span>:<span class=\"code-string\">\"https://maps.googleapis.com/maps/api/geocode/json\"</span>,<span class=\"code-attr\">geocodingQueryParams</span>:{},<span class=\"code-attr\">reverseQueryParams</span>:{}},<span class=\"code-attr\">initialize</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e,t</span>)</span>{<span class=\"code-keyword\">this</span>._key=e,d.setOptions(<span class=\"code-keyword\">this</span>,t),<span class=\"code-keyword\">this</span>.options.serviceUrl=<span class=\"code-keyword\">this</span>.options.service_url||<span class=\"code-keyword\">this</span>.options.serviceUrl},<span class=\"code-attr\">geocode</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e,r,a</span>)</span>{<span class=\"code-keyword\">var</span> t={<span class=\"code-attr\">address</span>:e};<span class=\"code-keyword\">this</span>._key&&<span class=\"code-keyword\">this</span>._key.length&&(t.key=<span class=\"code-keyword\">this</span>._key),t=d.Util.extend(t,<span class=\"code-keyword\">this</span>.options.geocodingQueryParams),u(<span class=\"code-keyword\">this</span>.options.serviceUrl,t,<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e</span>)</span>{<span class=\"code-keyword\">var</span> t,o,s,n=[];<span class=\"code-keyword\">if</span>(e.results&&e.results.length)<span class=\"code-keyword\">for</span>(<span class=\"code-keyword\">var</span> i=<span class=\"code-number\">0</span>;i<=e.results.length<span class=\"code-number\">-1</span>;i++)t=e.results[i],o=d.latLng(t.geometry.location),s=d.latLngBounds(d.latLng(t.geometry.viewport.northeast),d.latLng(t.geometry.viewport.southwest)),n[i]={<span class=\"code-attr\">name</span>:t.formatted_address,<span class=\"code-attr\">bbox</span>:s,<span class=\"code-attr\">center</span>:o,<span class=\"code-attr\">properties</span>:t.address_components};r.call(a,n)})},<span class=\"code-attr\">reverse</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e,t,r,a</span>)</span>{<span class=\"code-keyword\">var</span> o={<span class=\"code-attr\">latlng</span>:<span class=\"code-built_in\">encodeURIComponent</span>(e.lat)+<span class=\"code-string\">\",\"</span>+<span class=\"code-built_in\">encodeURIComponent</span>(e.lng)};o=d.Util.extend(o,<span class=\"code-keyword\">this</span>.options.reverseQueryParams),<span class=\"code-keyword\">this</span>._key&&<span class=\"code-keyword\">this</span>._key.length&&(o.key=<span class=\"code-keyword\">this</span>._key),u(<span class=\"code-keyword\">this</span>.options.serviceUrl,o,<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e</span>)</span>{<span class=\"code-keyword\">var</span> t,o,s,n=[];<span class=\"code-keyword\">if</span>(e.results&&e.results.length)<span class=\"code-keyword\">for</span>(<span class=\"code-keyword\">var</span> i=<span class=\"code-number\">0</span>;i<=e.results.length<span class=\"code-number\">-1</span>;i++)t=e.results[i],o=d.latLng(t.geometry.location),s=d.latLngBounds(d.latLng(t.geometry.viewport.northeast),d.latLng(t.geometry.viewport.southwest)),n[i]={<span class=\"code-attr\">name</span>:t.formatted_address,<span class=\"code-attr\">bbox</span>:s,<span class=\"code-attr\">center</span>:o,<span class=\"code-attr\">properties</span>:t.address_components};r.call(a,n)})}});<span class=\"code-keyword\">var</span> g=d.Class.extend({<span class=\"code-attr\">options</span>:{<span class=\"code-attr\">geocodeUrl</span>:<span class=\"code-string\">\"https://geocoder.api.here.com/6.2/geocode.json\"</span>,<span class=\"code-attr\">reverseGeocodeUrl</span>:<span class=\"code-string\">\"https://reverse.geocoder.api.here.com/6.2/reversegeocode.json\"</span>,<span class=\"code-attr\">app_id</span>:<span class=\"code-string\">\"<insert your app_id here>\"</span>,<span class=\"code-attr\">app_code</span>:<span class=\"code-string\">\"<insert your app_code here>\"</span>,<span class=\"code-attr\">geocodingQueryParams</span>:{},<span class=\"code-attr\">reverseQueryParams</span>:{}},<span class=\"code-attr\">initialize</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e</span>)</span>{d.setOptions(<span class=\"code-keyword\">this</span>,e)},<span class=\"code-attr\">geocode</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e,t,o</span>)</span>{<span class=\"code-keyword\">var</span> s={<span class=\"code-attr\">searchtext</span>:e,<span class=\"code-attr\">gen</span>:<span class=\"code-number\">9</span>,<span class=\"code-attr\">app_id</span>:<span class=\"code-keyword\">this</span>.options.app_id,<span class=\"code-attr\">app_code</span>:<span class=\"code-keyword\">this</span>.options.app_code,<span class=\"code-attr\">jsonattributes</span>:<span class=\"code-number\">1</span>};s=d.Util.extend(s,<span class=\"code-keyword\">this</span>.options.geocodingQueryParams),<span class=\"code-keyword\">this</span>.getJSON(<span class=\"code-keyword\">this</span>.options.geocodeUrl,s,t,o)},<span class=\"code-attr\">reverse</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e,t,o,s</span>)</span>{<span class=\"code-keyword\">var</span> n={<span class=\"code-attr\">prox</span>:<span class=\"code-built_in\">encodeURIComponent</span>(e.lat)+<span class=\"code-string\">\",\"</span>+<span class=\"code-built_in\">encodeURIComponent</span>(e.lng),<span class=\"code-attr\">mode</span>:<span class=\"code-string\">\"retrieveAddresses\"</span>,<span class=\"code-attr\">app_id</span>:<span class=\"code-keyword\">this</span>.options.app_id,<span class=\"code-attr\">app_code</span>:<span class=\"code-keyword\">this</span>.options.app_code,<span class=\"code-attr\">gen</span>:<span class=\"code-number\">9</span>,<span class=\"code-attr\">jsonattributes</span>:<span class=\"code-number\">1</span>};n=d.Util.extend(n,<span class=\"code-keyword\">this</span>.options.reverseQueryParams),<span class=\"code-keyword\">this</span>.getJSON(<span class=\"code-keyword\">this</span>.options.reverseGeocodeUrl,n,o,s)},<span class=\"code-attr\">getJSON</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e,t,r,a</span>)</span>{u(e,t,<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e</span>)</span>{<span class=\"code-keyword\">var</span> t,o,s,n=[];<span class=\"code-keyword\">if</span>(e.response.view&&e.response.view.length)<span class=\"code-keyword\">for</span>(<span class=\"code-keyword\">var</span> i=<span class=\"code-number\">0</span>;i<=e.response.view[<span class=\"code-number\">0</span>].result.length<span class=\"code-number\">-1</span>;i++)t=e.response.view[<span class=\"code-number\">0</span>].result[i].location,o=d.latLng(t.displayPosition.latitude,t.displayPosition.longitude),s=d.latLngBounds(d.latLng(t.mapView.topLeft.latitude,t.mapView.topLeft.longitude),d.latLng(t.mapView.bottomRight.latitude,t.mapView.bottomRight.longitude)),n[i]={<span class=\"code-attr\">name</span>:t.address.label,<span class=\"code-attr\">bbox</span>:s,<span class=\"code-attr\">center</span>:o};r.call(a,n)})}});<span class=\"code-keyword\">var</span> m=d.Class.extend({<span class=\"code-attr\">options</span>:{<span class=\"code-attr\">next</span>:<span class=\"code-keyword\">void</span> <span class=\"code-number\">0</span>,<span class=\"code-attr\">sizeInMeters</span>:<span class=\"code-number\">1e4</span>},<span class=\"code-attr\">initialize</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e</span>)</span>{d.Util.setOptions(<span class=\"code-keyword\">this</span>,e)},<span class=\"code-attr\">geocode</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e,t,o</span>)</span>{<span class=\"code-keyword\">var</span> s,n;<span class=\"code-keyword\">if</span>((s=e.match(<span class=\"code-regexp\">/^([NS])\\s*(\\d{1,3}(?:\\.\\d*)?)\\W*([EW])\\s*(\\d{1,3}(?:\\.\\d*)?)$/</span>))?n=d.latLng((<span class=\"code-regexp\">/N/i</span>.test(s[<span class=\"code-number\">1</span>])?<span class=\"code-number\">1</span>:<span class=\"code-number\">-1</span>)*<span class=\"code-built_in\">parseFloat</span>(s[<span class=\"code-number\">2</span>]),(<span class=\"code-regexp\">/E/i</span>.test(s[<span class=\"code-number\">3</span>])?<span class=\"code-number\">1</span>:<span class=\"code-number\">-1</span>)*<span class=\"code-built_in\">parseFloat</span>(s[<span class=\"code-number\">4</span>])):(s=e.match(<span class=\"code-regexp\">/^(\\d{1,3}(?:\\.\\d*)?)\\s*([NS])\\W*(\\d{1,3}(?:\\.\\d*)?)\\s*([EW])$/</span>))?n=d.latLng((<span class=\"code-regexp\">/N/i</span>.test(s[<span class=\"code-number\">2</span>])?<span class=\"code-number\">1</span>:<span class=\"code-number\">-1</span>)*<span class=\"code-built_in\">parseFloat</span>(s[<span class=\"code-number\">1</span>]),(<span class=\"code-regexp\">/E/i</span>.test(s[<span class=\"code-number\">4</span>])?<span class=\"code-number\">1</span>:<span class=\"code-number\">-1</span>)*<span class=\"code-built_in\">parseFloat</span>(s[<span class=\"code-number\">3</span>])):(s=e.match(<span class=\"code-regexp\">/^([NS])\\s*(\\d{1,3})\u00B0?\\s*(\\d{1,3}(?:\\.\\d*)?)?['\u2032]?\\W*([EW])\\s*(\\d{1,3})\u00B0?\\s*(\\d{1,3}(?:\\.\\d*)?)?['\u2032]?$/</span>))?n=d.latLng((<span class=\"code-regexp\">/N/i</span>.test(s[<span class=\"code-number\">1</span>])?<span class=\"code-number\">1</span>:<span class=\"code-number\">-1</span>)*(<span class=\"code-built_in\">parseFloat</span>(s[<span class=\"code-number\">2</span>])+<span class=\"code-built_in\">parseFloat</span>(s[<span class=\"code-number\">3</span>]/<span class=\"code-number\">60</span>)),(<span class=\"code-regexp\">/E/i</span>.test(s[<span class=\"code-number\">4</span>])?<span class=\"code-number\">1</span>:<span class=\"code-number\">-1</span>)*(<span class=\"code-built_in\">parseFloat</span>(s[<span class=\"code-number\">5</span>])+<span class=\"code-built_in\">parseFloat</span>(s[<span class=\"code-number\">6</span>]/<span class=\"code-number\">60</span>))):(s=e.match(<span class=\"code-regexp\">/^(\\d{1,3})\u00B0?\\s*(\\d{1,3}(?:\\.\\d*)?)?['\u2032]?\\s*([NS])\\W*(\\d{1,3})\u00B0?\\s*(\\d{1,3}(?:\\.\\d*)?)?['\u2032]?\\s*([EW])$/</span>))?n=d.latLng((<span class=\"code-regexp\">/N/i</span>.test(s[<span class=\"code-number\">3</span>])?<span class=\"code-number\">1</span>:<span class=\"code-number\">-1</span>)*(<span class=\"code-built_in\">parseFloat</span>(s[<span class=\"code-number\">1</span>])+<span class=\"code-built_in\">parseFloat</span>(s[<span class=\"code-number\">2</span>]/<span class=\"code-number\">60</span>)),(<span class=\"code-regexp\">/E/i</span>.test(s[<span class=\"code-number\">6</span>])?<span class=\"code-number\">1</span>:<span class=\"code-number\">-1</span>)*(<span class=\"code-built_in\">parseFloat</span>(s[<span class=\"code-number\">4</span>])+<span class=\"code-built_in\">parseFloat</span>(s[<span class=\"code-number\">5</span>]/<span class=\"code-number\">60</span>))):(s=e.match(<span class=\"code-regexp\">/^([NS])\\s*(\\d{1,3})\u00B0?\\s*(\\d{1,2})['\u2032]?\\s*(\\d{1,3}(?:\\.\\d*)?)?[\"\u2033]?\\W*([EW])\\s*(\\d{1,3})\u00B0?\\s*(\\d{1,2})['\u2032]?\\s*(\\d{1,3}(?:\\.\\d*)?)?[\"\u2033]?$/</span>))?n=d.latLng((<span class=\"code-regexp\">/N/i</span>.test(s[<span class=\"code-number\">1</span>])?<span class=\"code-number\">1</span>:<span class=\"code-number\">-1</span>)*(<span class=\"code-built_in\">parseFloat</span>(s[<span class=\"code-number\">2</span>])+<span class=\"code-built_in\">parseFloat</span>(s[<span class=\"code-number\">3</span>]/<span class=\"code-number\">60</span>+<span class=\"code-built_in\">parseFloat</span>(s[<span class=\"code-number\">4</span>]/<span class=\"code-number\">3600</span>))),(<span class=\"code-regexp\">/E/i</span>.test(s[<span class=\"code-number\">5</span>])?<span class=\"code-number\">1</span>:<span class=\"code-number\">-1</span>)*(<span class=\"code-built_in\">parseFloat</span>(s[<span class=\"code-number\">6</span>])+<span class=\"code-built_in\">parseFloat</span>(s[<span class=\"code-number\">7</span>]/<span class=\"code-number\">60</span>)+<span class=\"code-built_in\">parseFloat</span>(s[<span class=\"code-number\">8</span>]/<span class=\"code-number\">3600</span>))):(s=e.match(<span class=\"code-regexp\">/^(\\d{1,3})\u00B0?\\s*(\\d{1,2})['\u2032]?\\s*(\\d{1,3}(?:\\.\\d*)?)?[\"\u2033]\\s*([NS])\\W*(\\d{1,3})\u00B0?\\s*(\\d{1,2})['\u2032]?\\s*(\\d{1,3}(?:\\.\\d*)?)?[\"\u2033]?\\s*([EW])$/</span>))?n=d.latLng((<span class=\"code-regexp\">/N/i</span>.test(s[<span class=\"code-number\">4</span>])?<span class=\"code-number\">1</span>:<span class=\"code-number\">-1</span>)*(<span class=\"code-built_in\">parseFloat</span>(s[<span class=\"code-number\">1</span>])+<span class=\"code-built_in\">parseFloat</span>(s[<span class=\"code-number\">2</span>]/<span class=\"code-number\">60</span>+<span class=\"code-built_in\">parseFloat</span>(s[<span class=\"code-number\">3</span>]/<span class=\"code-number\">3600</span>))),(<span class=\"code-regexp\">/E/i</span>.test(s[<span class=\"code-number\">8</span>])?<span class=\"code-number\">1</span>:<span class=\"code-number\">-1</span>)*(<span class=\"code-built_in\">parseFloat</span>(s[<span class=\"code-number\">5</span>])+<span class=\"code-built_in\">parseFloat</span>(s[<span class=\"code-number\">6</span>]/<span class=\"code-number\">60</span>)+<span class=\"code-built_in\">parseFloat</span>(s[<span class=\"code-number\">7</span>]/<span class=\"code-number\">3600</span>))):(s=e.match(<span class=\"code-regexp\">/^\\s*([+-]?\\d+(?:\\.\\d*)?)\\s*[\\s,]\\s*([+-]?\\d+(?:\\.\\d*)?)\\s*$/</span>))&&(n=d.latLng(<span class=\"code-built_in\">parseFloat</span>(s[<span class=\"code-number\">1</span>]),<span class=\"code-built_in\">parseFloat</span>(s[<span class=\"code-number\">2</span>]))),n){<span class=\"code-keyword\">var</span> i=[{<span class=\"code-attr\">name</span>:e,<span class=\"code-attr\">center</span>:n,<span class=\"code-attr\">bbox</span>:n.toBounds(<span class=\"code-keyword\">this</span>.options.sizeInMeters)}];t.call(o,i)}<span class=\"code-keyword\">else</span> <span class=\"code-keyword\">this</span>.options.next&&<span class=\"code-keyword\">this</span>.options.next.geocode(e,t,o)}});<span class=\"code-keyword\">var</span> f=d.Class.extend({<span class=\"code-attr\">options</span>:{<span class=\"code-attr\">serviceUrl</span>:<span class=\"code-string\">\"https://api.mapbox.com/geocoding/v5/mapbox.places/\"</span>,<span class=\"code-attr\">geocodingQueryParams</span>:{},<span class=\"code-attr\">reverseQueryParams</span>:{}},<span class=\"code-attr\">initialize</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e,t</span>)</span>{d.setOptions(<span class=\"code-keyword\">this</span>,t),<span class=\"code-keyword\">this</span>.options.geocodingQueryParams.access_token=e,<span class=\"code-keyword\">this</span>.options.reverseQueryParams.access_token=e},<span class=\"code-attr\">geocode</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e,l,c</span>)</span>{<span class=\"code-keyword\">var</span> t=<span class=\"code-keyword\">this</span>.options.geocodingQueryParams;<span class=\"code-keyword\">void</span> <span class=\"code-number\">0</span>!==t.proximity&&<span class=\"code-keyword\">void</span> <span class=\"code-number\">0</span>!==t.proximity.lat&&<span class=\"code-keyword\">void</span> <span class=\"code-number\">0</span>!==t.proximity.lng&&(t.proximity=t.proximity.lng+<span class=\"code-string\">\",\"</span>+t.proximity.lat),u(<span class=\"code-keyword\">this</span>.options.serviceUrl+<span class=\"code-built_in\">encodeURIComponent</span>(e)+<span class=\"code-string\">\".json\"</span>,t,<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e</span>)</span>{<span class=\"code-keyword\">var</span> t,o,s,n=[];<span class=\"code-keyword\">if</span>(e.features&&e.features.length)<span class=\"code-keyword\">for</span>(<span class=\"code-keyword\">var</span> i=<span class=\"code-number\">0</span>;i<=e.features.length<span class=\"code-number\">-1</span>;i++){t=e.features[i],o=d.latLng(t.center.reverse()),s=t.bbox?d.latLngBounds(d.latLng(t.bbox.slice(<span class=\"code-number\">0</span>,<span class=\"code-number\">2</span>).reverse()),d.latLng(t.bbox.slice(<span class=\"code-number\">2</span>,<span class=\"code-number\">4</span>).reverse())):d.latLngBounds(o,o);<span class=\"code-keyword\">for</span>(<span class=\"code-keyword\">var</span> r={<span class=\"code-attr\">text</span>:t.text,<span class=\"code-attr\">address</span>:t.address},a=<span class=\"code-number\">0</span>;a<(t.context||[]).length;a++){r[t.context[a].id.split(<span class=\"code-string\">\".\"</span>)[<span class=\"code-number\">0</span>]]=t.context[a].text}n[i]={<span class=\"code-attr\">name</span>:t.place_name,<span class=\"code-attr\">bbox</span>:s,<span class=\"code-attr\">center</span>:o,<span class=\"code-attr\">properties</span>:r}}l.call(c,n)})},<span class=\"code-attr\">suggest</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e,t,o</span>)</span>{<span class=\"code-keyword\">return</span> <span class=\"code-keyword\">this</span>.geocode(e,t,o)},<span class=\"code-attr\">reverse</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e,t,r,a</span>)</span>{u(<span class=\"code-keyword\">this</span>.options.serviceUrl+<span class=\"code-built_in\">encodeURIComponent</span>(e.lng)+<span class=\"code-string\">\",\"</span>+<span class=\"code-built_in\">encodeURIComponent</span>(e.lat)+<span class=\"code-string\">\".json\"</span>,<span class=\"code-keyword\">this</span>.options.reverseQueryParams,<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e</span>)</span>{<span class=\"code-keyword\">var</span> t,o,s,n=[];<span class=\"code-keyword\">if</span>(e.features&&e.features.length)<span class=\"code-keyword\">for</span>(<span class=\"code-keyword\">var</span> i=<span class=\"code-number\">0</span>;i<=e.features.length<span class=\"code-number\">-1</span>;i++)t=e.features[i],o=d.latLng(t.center.reverse()),s=t.bbox?d.latLngBounds(d.latLng(t.bbox.slice(<span class=\"code-number\">0</span>,<span class=\"code-number\">2</span>).reverse()),d.latLng(t.bbox.slice(<span class=\"code-number\">2</span>,<span class=\"code-number\">4</span>).reverse())):d.latLngBounds(o,o),n[i]={<span class=\"code-attr\">name</span>:t.place_name,<span class=\"code-attr\">bbox</span>:s,<span class=\"code-attr\">center</span>:o};r.call(a,n)})}});<span class=\"code-keyword\">var</span> v=d.Class.extend({<span class=\"code-attr\">options</span>:{<span class=\"code-attr\">serviceUrl</span>:<span class=\"code-string\">\"https://www.mapquestapi.com/geocoding/v1\"</span>},<span class=\"code-attr\">initialize</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e,t</span>)</span>{<span class=\"code-keyword\">this</span>._key=<span class=\"code-built_in\">decodeURIComponent</span>(e),d.Util.setOptions(<span class=\"code-keyword\">this</span>,t)},<span class=\"code-attr\">_formatName</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\"></span>)</span>{<span class=\"code-keyword\">var</span> e,t=[];<span class=\"code-keyword\">for</span>(e=<span class=\"code-number\">0</span>;e<<span class=\"code-built_in\">arguments</span>.length;e++)<span class=\"code-built_in\">arguments</span>[e]&&t.push(<span class=\"code-built_in\">arguments</span>[e]);<span class=\"code-keyword\">return</span> t.join(<span class=\"code-string\">\", \"</span>)},<span class=\"code-attr\">geocode</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e,i,r</span>)</span>{u(<span class=\"code-keyword\">this</span>.options.serviceUrl+<span class=\"code-string\">\"/address\"</span>,{<span class=\"code-attr\">key</span>:<span class=\"code-keyword\">this</span>._key,<span class=\"code-attr\">location</span>:e,<span class=\"code-attr\">limit</span>:<span class=\"code-number\">5</span>,<span class=\"code-attr\">outFormat</span>:<span class=\"code-string\">\"json\"</span>},d.bind(<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e</span>)</span>{<span class=\"code-keyword\">var</span> t,o,s=[];<span class=\"code-keyword\">if</span>(e.results&&e.results[<span class=\"code-number\">0</span>].locations)<span class=\"code-keyword\">for</span>(<span class=\"code-keyword\">var</span> n=e.results[<span class=\"code-number\">0</span>].locations.length<span class=\"code-number\">-1</span>;<span class=\"code-number\">0</span><=n;n--)t=e.results[<span class=\"code-number\">0</span>].locations[n],o=d.latLng(t.latLng),s[n]={<span class=\"code-attr\">name</span>:<span class=\"code-keyword\">this</span>._formatName(t.street,t.adminArea4,t.adminArea3,t.adminArea1),<span class=\"code-attr\">bbox</span>:d.latLngBounds(o,o),<span class=\"code-attr\">center</span>:o};i.call(r,s)},<span class=\"code-keyword\">this</span>))},<span class=\"code-attr\">reverse</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e,t,i,r</span>)</span>{u(<span class=\"code-keyword\">this</span>.options.serviceUrl+<span class=\"code-string\">\"/reverse\"</span>,{<span class=\"code-attr\">key</span>:<span class=\"code-keyword\">this</span>._key,<span class=\"code-attr\">location</span>:e.lat+<span class=\"code-string\">\",\"</span>+e.lng,<span class=\"code-attr\">outputFormat</span>:<span class=\"code-string\">\"json\"</span>},d.bind(<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e</span>)</span>{<span class=\"code-keyword\">var</span> t,o,s=[];<span class=\"code-keyword\">if</span>(e.results&&e.results[<span class=\"code-number\">0</span>].locations)<span class=\"code-keyword\">for</span>(<span class=\"code-keyword\">var</span> n=e.results[<span class=\"code-number\">0</span>].locations.length<span class=\"code-number\">-1</span>;<span class=\"code-number\">0</span><=n;n--)t=e.results[<span class=\"code-number\">0</span>].locations[n],o=d.latLng(t.latLng),s[n]={<span class=\"code-attr\">name</span>:<span class=\"code-keyword\">this</span>._formatName(t.street,t.adminArea4,t.adminArea3,t.adminArea1),<span class=\"code-attr\">bbox</span>:d.latLngBounds(o,o),<span class=\"code-attr\">center</span>:o};i.call(r,s)},<span class=\"code-keyword\">this</span>))}});<span class=\"code-keyword\">var</span> _=d.Class.extend({<span class=\"code-attr\">options</span>:{<span class=\"code-attr\">userId</span>:<span class=\"code-string\">\"<insert your userId here>\"</span>,<span class=\"code-attr\">apiKey</span>:<span class=\"code-string\">\"<insert your apiKey here>\"</span>,<span class=\"code-attr\">serviceUrl</span>:<span class=\"code-string\">\"https://neutrinoapi.com/\"</span>},<span class=\"code-attr\">initialize</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e</span>)</span>{d.Util.setOptions(<span class=\"code-keyword\">this</span>,e)},<span class=\"code-attr\">geocode</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e,n,i</span>)</span>{u(<span class=\"code-keyword\">this</span>.options.serviceUrl+<span class=\"code-string\">\"geocode-address\"</span>,{<span class=\"code-attr\">apiKey</span>:<span class=\"code-keyword\">this</span>.options.apiKey,<span class=\"code-attr\">userId</span>:<span class=\"code-keyword\">this</span>.options.userId,<span class=\"code-attr\">address</span>:e.split(<span class=\"code-regexp\">/\\s+/</span>).join(<span class=\"code-string\">\".\"</span>)},<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e</span>)</span>{<span class=\"code-keyword\">var</span> t,o,s=[];e.locations&&(e.geometry=e.locations[<span class=\"code-number\">0</span>],t=d.latLng(e.geometry.latitude,e.geometry.longitude),o=d.latLngBounds(t,t),s[<span class=\"code-number\">0</span>]={<span class=\"code-attr\">name</span>:e.geometry.address,<span class=\"code-attr\">bbox</span>:o,<span class=\"code-attr\">center</span>:t}),n.call(i,s)})},<span class=\"code-attr\">suggest</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e,t,o</span>)</span>{<span class=\"code-keyword\">return</span> <span class=\"code-keyword\">this</span>.geocode(e,t,o)},<span class=\"code-attr\">reverse</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">n,e,i,r</span>)</span>{u(<span class=\"code-keyword\">this</span>.options.serviceUrl+<span class=\"code-string\">\"geocode-reverse\"</span>,{<span class=\"code-attr\">apiKey</span>:<span class=\"code-keyword\">this</span>.options.apiKey,<span class=\"code-attr\">userId</span>:<span class=\"code-keyword\">this</span>.options.userId,<span class=\"code-attr\">latitude</span>:n.lat,<span class=\"code-attr\">longitude</span>:n.lng},<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e</span>)</span>{<span class=\"code-keyword\">var</span> t,o,s=[];<span class=\"code-number\">200</span>==e.status.status&&e.found&&(t=d.latLng(n.lat,n.lng),o=d.latLngBounds(t,t),s[<span class=\"code-number\">0</span>]={<span class=\"code-attr\">name</span>:e.address,<span class=\"code-attr\">bbox</span>:o,<span class=\"code-attr\">center</span>:t}),i.call(r,s)})}});<span class=\"code-keyword\">var</span> b=d.Class.extend({<span class=\"code-attr\">options</span>:{<span class=\"code-attr\">serviceUrl</span>:<span class=\"code-string\">\"https://nominatim.openstreetmap.org/\"</span>,<span class=\"code-attr\">geocodingQueryParams</span>:{},<span class=\"code-attr\">reverseQueryParams</span>:{},<span class=\"code-attr\">htmlTemplate</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e</span>)</span>{<span class=\"code-keyword\">var</span> t=e.address,o=[];<span class=\"code-keyword\">return</span>(t.road||t.building)&&o.push(<span class=\"code-string\">\"{building} {road} {house_number}\"</span>),(t.city||t.town||t.village||t.hamlet)&&o.push(<span class=\"code-string\">'<span class=\"'</span>+(<span class=\"code-number\">0</span><o.length?<span class=\"code-string\">\"leaflet-control-geocoder-address-detail\"</span>:<span class=\"code-string\">\"\"</span>)+<span class=\"code-string\">'\">{postcode} {city} {town} {village} {hamlet}</span>'</span>),(t.state||t.country)&&o.push(<span class=\"code-string\">'<span class=\"'</span>+(<span class=\"code-number\">0</span><o.length?<span class=\"code-string\">\"leaflet-control-geocoder-address-context\"</span>:<span class=\"code-string\">\"\"</span>)+<span class=\"code-string\">'\">{state} {country}</span>'</span>),s(o.join(<span class=\"code-string\">\"<br/>\"</span>),t)}},<span class=\"code-attr\">initialize</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e</span>)</span>{d.Util.setOptions(<span class=\"code-keyword\">this</span>,e)},<span class=\"code-attr\">geocode</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e,i,r</span>)</span>{u(<span class=\"code-keyword\">this</span>.options.serviceUrl+<span class=\"code-string\">\"search\"</span>,d.extend({<span class=\"code-attr\">q</span>:e,<span class=\"code-attr\">limit</span>:<span class=\"code-number\">5</span>,<span class=\"code-attr\">format</span>:<span class=\"code-string\">\"json\"</span>,<span class=\"code-attr\">addressdetails</span>:<span class=\"code-number\">1</span>},<span class=\"code-keyword\">this</span>.options.geocodingQueryParams),d.bind(<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e</span>)</span>{<span class=\"code-keyword\">for</span>(<span class=\"code-keyword\">var</span> t=[],o=e.length<span class=\"code-number\">-1</span>;<span class=\"code-number\">0</span><=o;o--){<span class=\"code-keyword\">for</span>(<span class=\"code-keyword\">var</span> s=e[o].boundingbox,n=<span class=\"code-number\">0</span>;n<<span class=\"code-number\">4</span>;n++)s[n]=<span class=\"code-built_in\">parseFloat</span>(s[n]);t[o]={<span class=\"code-attr\">icon</span>:e[o].icon,<span class=\"code-attr\">name</span>:e[o].display_name,<span class=\"code-attr\">html</span>:<span class=\"code-keyword\">this</span>.options.htmlTemplate?<span class=\"code-keyword\">this</span>.options.htmlTemplate(e[o]):<span class=\"code-keyword\">void</span> <span class=\"code-number\">0</span>,<span class=\"code-attr\">bbox</span>:d.latLngBounds([s[<span class=\"code-number\">0</span>],s[<span class=\"code-number\">2</span>]],[s[<span class=\"code-number\">1</span>],s[<span class=\"code-number\">3</span>]]),<span class=\"code-attr\">center</span>:d.latLng(e[o].lat,e[o].lon),<span class=\"code-attr\">properties</span>:e[o]}}i.call(r,t)},<span class=\"code-keyword\">this</span>))},<span class=\"code-attr\">reverse</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e,t,s,n</span>)</span>{u(<span class=\"code-keyword\">this</span>.options.serviceUrl+<span class=\"code-string\">\"reverse\"</span>,d.extend({<span class=\"code-attr\">lat</span>:e.lat,<span class=\"code-attr\">lon</span>:e.lng,<span class=\"code-attr\">zoom</span>:<span class=\"code-built_in\">Math</span>.round(<span class=\"code-built_in\">Math</span>.log(t/<span class=\"code-number\">256</span>)/<span class=\"code-built_in\">Math</span>.log(<span class=\"code-number\">2</span>)),<span class=\"code-attr\">addressdetails</span>:<span class=\"code-number\">1</span>,<span class=\"code-attr\">format</span>:<span class=\"code-string\">\"json\"</span>},<span class=\"code-keyword\">this</span>.options.reverseQueryParams),d.bind(<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e</span>)</span>{<span class=\"code-keyword\">var</span> t,o=[];e&&e.lat&&e.lon&&(t=d.latLng(e.lat,e.lon),o.push({<span class=\"code-attr\">name</span>:e.display_name,<span class=\"code-attr\">html</span>:<span class=\"code-keyword\">this</span>.options.htmlTemplate?<span class=\"code-keyword\">this</span>.options.htmlTemplate(e):<span class=\"code-keyword\">void</span> <span class=\"code-number\">0</span>,<span class=\"code-attr\">center</span>:t,<span class=\"code-attr\">bounds</span>:d.latLngBounds(t,t),<span class=\"code-attr\">properties</span>:e})),s.call(n,o)},<span class=\"code-keyword\">this</span>))}});<span class=\"code-keyword\">var</span> L=d.Class.extend({<span class=\"code-attr\">options</span>:{<span class=\"code-attr\">OpenLocationCode</span>:<span class=\"code-keyword\">void</span> <span class=\"code-number\">0</span>,<span class=\"code-attr\">codeLength</span>:<span class=\"code-keyword\">void</span> <span class=\"code-number\">0</span>},<span class=\"code-attr\">initialize</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e</span>)</span>{d.setOptions(<span class=\"code-keyword\">this</span>,e)},<span class=\"code-attr\">geocode</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e,t,o</span>)</span>{<span class=\"code-keyword\">try</span>{<span class=\"code-keyword\">var</span> s=<span class=\"code-keyword\">this</span>.options.OpenLocationCode.decode(e),n={<span class=\"code-attr\">name</span>:e,<span class=\"code-attr\">center</span>:d.latLng(s.latitudeCenter,s.longitudeCenter),<span class=\"code-attr\">bbox</span>:d.latLngBounds(d.latLng(s.latitudeLo,s.longitudeLo),d.latLng(s.latitudeHi,s.longitudeHi))};t.call(o,[n])}<span class=\"code-keyword\">catch</span>(e){<span class=\"code-built_in\">console</span>.warn(e),t.call(o,[])}},<span class=\"code-attr\">reverse</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e,t,o,s</span>)</span>{<span class=\"code-keyword\">try</span>{<span class=\"code-keyword\">var</span> n={<span class=\"code-attr\">name</span>:<span class=\"code-keyword\">this</span>.options.OpenLocationCode.encode(e.lat,e.lng,<span class=\"code-keyword\">this</span>.options.codeLength),<span class=\"code-attr\">center</span>:d.latLng(e.lat,e.lng),<span class=\"code-attr\">bbox</span>:d.latLngBounds(d.latLng(e.lat,e.lng),d.latLng(e.lat,e.lng))};o.call(s,[n])}<span class=\"code-keyword\">catch</span>(e){<span class=\"code-built_in\">console</span>.warn(e),o.call(s,[])}}});<span class=\"code-keyword\">var</span> y=d.Class.extend({<span class=\"code-attr\">options</span>:{<span class=\"code-attr\">serviceUrl</span>:<span class=\"code-string\">\"https://api.opencagedata.com/geocode/v1/json\"</span>},<span class=\"code-attr\">initialize</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e</span>)</span>{<span class=\"code-keyword\">this</span>._accessToken=e},<span class=\"code-attr\">geocode</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e,r,a</span>)</span>{u(<span class=\"code-keyword\">this</span>.options.serviceUrl,{<span class=\"code-attr\">key</span>:<span class=\"code-keyword\">this</span>._accessToken,<span class=\"code-attr\">q</span>:e},<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e</span>)</span>{<span class=\"code-keyword\">var</span> t,o,s,n=[];<span class=\"code-keyword\">if</span>(e.results&&e.results.length)<span class=\"code-keyword\">for</span>(<span class=\"code-keyword\">var</span> i=<span class=\"code-number\">0</span>;i<e.results.length;i++)s=e.results[i],t=d.latLng(s.geometry),o=s.annotations&&s.annotations.bounds?d.latLngBounds(d.latLng(s.annotations.bounds.northeast),d.latLng(s.annotations.bounds.southwest)):d.latLngBounds(t,t),n.push({<span class=\"code-attr\">name</span>:s.formatted,<span class=\"code-attr\">bbox</span>:o,<span class=\"code-attr\">center</span>:t});r.call(a,n)})},<span class=\"code-attr\">suggest</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e,t,o</span>)</span>{<span class=\"code-keyword\">return</span> <span class=\"code-keyword\">this</span>.geocode(e,t,o)},<span class=\"code-attr\">reverse</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e,t,r,a</span>)</span>{u(<span class=\"code-keyword\">this</span>.options.serviceUrl,{<span class=\"code-attr\">key</span>:<span class=\"code-keyword\">this</span>._accessToken,<span class=\"code-attr\">q</span>:[e.lat,e.lng].join(<span class=\"code-string\">\",\"</span>)},<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e</span>)</span>{<span class=\"code-keyword\">var</span> t,o,s,n=[];<span class=\"code-keyword\">if</span>(e.results&&e.results.length)<span class=\"code-keyword\">for</span>(<span class=\"code-keyword\">var</span> i=<span class=\"code-number\">0</span>;i<e.results.length;i++)s=e.results[i],t=d.latLng(s.geometry),o=s.annotations&&s.annotations.bounds?d.latLngBounds(d.latLng(s.annotations.bounds.northeast),d.latLng(s.annotations.bounds.southwest)):d.latLngBounds(t,t),n.push({<span class=\"code-attr\">name</span>:s.formatted,<span class=\"code-attr\">bbox</span>:o,<span class=\"code-attr\">center</span>:t});r.call(a,n)})}});<span class=\"code-keyword\">var</span> x=d.Class.extend({<span class=\"code-attr\">options</span>:{<span class=\"code-attr\">serviceUrl</span>:<span class=\"code-string\">\"https://api.geocode.earth/v1\"</span>,<span class=\"code-attr\">geocodingQueryParams</span>:{},<span class=\"code-attr\">reverseQueryParams</span>:{}},<span class=\"code-attr\">initialize</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e,t</span>)</span>{d.Util.setOptions(<span class=\"code-keyword\">this</span>,t),<span class=\"code-keyword\">this</span>._apiKey=e,<span class=\"code-keyword\">this</span>._lastSuggest=<span class=\"code-number\">0</span>},<span class=\"code-attr\">geocode</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e,t,o</span>)</span>{<span class=\"code-keyword\">var</span> s=<span class=\"code-keyword\">this</span>;u(<span class=\"code-keyword\">this</span>.options.serviceUrl+<span class=\"code-string\">\"/search\"</span>,d.extend({<span class=\"code-attr\">api_key</span>:<span class=\"code-keyword\">this</span>._apiKey,<span class=\"code-attr\">text</span>:e},<span class=\"code-keyword\">this</span>.options.geocodingQueryParams),<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e</span>)</span>{t.call(o,s._parseResults(e,<span class=\"code-string\">\"bbox\"</span>))})},<span class=\"code-attr\">suggest</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e,t,o</span>)</span>{<span class=\"code-keyword\">var</span> s=<span class=\"code-keyword\">this</span>;u(<span class=\"code-keyword\">this</span>.options.serviceUrl+<span class=\"code-string\">\"/autocomplete\"</span>,d.extend({<span class=\"code-attr\">api_key</span>:<span class=\"code-keyword\">this</span>._apiKey,<span class=\"code-attr\">text</span>:e},<span class=\"code-keyword\">this</span>.options.geocodingQueryParams),d.bind(<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e</span>)</span>{e.geocoding.timestamp><span class=\"code-keyword\">this</span>._lastSuggest&&(<span class=\"code-keyword\">this</span>._lastSuggest=e.geocoding.timestamp,t.call(o,s._parseResults(e,<span class=\"code-string\">\"bbox\"</span>)))},<span class=\"code-keyword\">this</span>))},<span class=\"code-attr\">reverse</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e,t,o,s</span>)</span>{<span class=\"code-keyword\">var</span> n=<span class=\"code-keyword\">this</span>;u(<span class=\"code-keyword\">this</span>.options.serviceUrl+<span class=\"code-string\">\"/reverse\"</span>,d.extend({<span class=\"code-attr\">api_key</span>:<span class=\"code-keyword\">this</span>._apiKey,<span class=\"code-string\">\"point.lat\"</span>:e.lat,<span class=\"code-string\">\"point.lon\"</span>:e.lng},<span class=\"code-keyword\">this</span>.options.reverseQueryParams),<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e</span>)</span>{o.call(s,n._parseResults(e,<span class=\"code-string\">\"bounds\"</span>))})},<span class=\"code-attr\">_parseResults</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e,i</span>)</span>{<span class=\"code-keyword\">var</span> r=[];<span class=\"code-keyword\">return</span> d.geoJson(e,{<span class=\"code-attr\">pointToLayer</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e,t</span>)</span>{<span class=\"code-keyword\">return</span> d.circleMarker(t)},<span class=\"code-attr\">onEachFeature</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e,t</span>)</span>{<span class=\"code-keyword\">var</span> o,s,n={};t.getBounds?s=(o=t.getBounds()).getCenter():o=t.feature.bbox?(s=t.getLatLng(),d.latLngBounds(d.GeoJSON.coordsToLatLng(t.feature.bbox.slice(<span class=\"code-number\">0</span>,<span class=\"code-number\">2</span>)),d.GeoJSON.coordsToLatLng(t.feature.bbox.slice(<span class=\"code-number\">2</span>,<span class=\"code-number\">4</span>)))):(s=t.getLatLng(),d.latLngBounds(s,s)),n.name=t.feature.properties.label,n.center=s,n[i]=o,n.properties=t.feature.properties,r.push(n)}}),r}});<span class=\"code-function\"><span class=\"code-keyword\">function</span> <span class=\"code-title\">e</span>(<span class=\"code-params\">e,t</span>)</span>{<span class=\"code-keyword\">return</span> <span class=\"code-keyword\">new</span> x(e,t)}<span class=\"code-keyword\">var</span> U=x,C=e,k=x,w=e,D=k.extend({<span class=\"code-attr\">options</span>:{<span class=\"code-attr\">serviceUrl</span>:<span class=\"code-string\">\"https://api.openrouteservice.org/geocode\"</span>}});<span class=\"code-keyword\">var</span> E=d.Class.extend({<span class=\"code-attr\">options</span>:{<span class=\"code-attr\">serviceUrl</span>:<span class=\"code-string\">\"https://photon.komoot.de/api/\"</span>,<span class=\"code-attr\">reverseUrl</span>:<span class=\"code-string\">\"https://photon.komoot.de/reverse/\"</span>,<span class=\"code-attr\">nameProperties</span>:[<span class=\"code-string\">\"name\"</span>,<span class=\"code-string\">\"street\"</span>,<span class=\"code-string\">\"suburb\"</span>,<span class=\"code-string\">\"hamlet\"</span>,<span class=\"code-string\">\"town\"</span>,<span class=\"code-string\">\"city\"</span>,<span class=\"code-string\">\"state\"</span>,<span class=\"code-string\">\"country\"</span>]},<span class=\"code-attr\">initialize</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e</span>)</span>{d.setOptions(<span class=\"code-keyword\">this</span>,e)},<span class=\"code-attr\">geocode</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e,t,o</span>)</span>{<span class=\"code-keyword\">var</span> s=d.extend({<span class=\"code-attr\">q</span>:e},<span class=\"code-keyword\">this</span>.options.geocodingQueryParams);u(<span class=\"code-keyword\">this</span>.options.serviceUrl,s,d.bind(<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e</span>)</span>{t.call(o,<span class=\"code-keyword\">this</span>._decodeFeatures(e))},<span class=\"code-keyword\">this</span>))},<span class=\"code-attr\">suggest</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e,t,o</span>)</span>{<span class=\"code-keyword\">return</span> <span class=\"code-keyword\">this</span>.geocode(e,t,o)},<span class=\"code-attr\">reverse</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e,t,o,s</span>)</span>{<span class=\"code-keyword\">var</span> n=d.extend({<span class=\"code-attr\">lat</span>:e.lat,<span class=\"code-attr\">lon</span>:e.lng},<span class=\"code-keyword\">this</span>.options.reverseQueryParams);u(<span class=\"code-keyword\">this</span>.options.reverseUrl,n,d.bind(<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e</span>)</span>{o.call(s,<span class=\"code-keyword\">this</span>._decodeFeatures(e))},<span class=\"code-keyword\">this</span>))},<span class=\"code-attr\">_decodeFeatures</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e</span>)</span>{<span class=\"code-keyword\">var</span> t,o,s,n,i,r,a=[];<span class=\"code-keyword\">if</span>(e&&e.features)<span class=\"code-keyword\">for</span>(t=<span class=\"code-number\">0</span>;t<e.features.length;t++)s=(o=e.features[t]).geometry.coordinates,n=d.latLng(s[<span class=\"code-number\">1</span>],s[<span class=\"code-number\">0</span>]),r=(i=o.properties.extent)?d.latLngBounds([i[<span class=\"code-number\">1</span>],i[<span class=\"code-number\">0</span>]],[i[<span class=\"code-number\">3</span>],i[<span class=\"code-number\">2</span>]]):d.latLngBounds(n,n),a.push({<span class=\"code-attr\">name</span>:<span class=\"code-keyword\">this</span>._decodeFeatureName(o),<span class=\"code-attr\">html</span>:<span class=\"code-keyword\">this</span>.options.htmlTemplate?<span class=\"code-keyword\">this</span>.options.htmlTemplate(o):<span class=\"code-keyword\">void</span> <span class=\"code-number\">0</span>,<span class=\"code-attr\">center</span>:n,<span class=\"code-attr\">bbox</span>:r,<span class=\"code-attr\">properties</span>:o.properties});<span class=\"code-keyword\">return</span> a},<span class=\"code-attr\">_decodeFeatureName</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">t</span>)</span>{<span class=\"code-keyword\">return</span>(<span class=\"code-keyword\">this</span>.options.nameProperties||[]).map(<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e</span>)</span>{<span class=\"code-keyword\">return</span> t.properties[e]}).filter(<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e</span>)</span>{<span class=\"code-keyword\">return</span>!!e}).join(<span class=\"code-string\">\", \"</span>)}});<span class=\"code-keyword\">var</span> T=d.Class.extend({<span class=\"code-attr\">options</span>:{<span class=\"code-attr\">serviceUrl</span>:<span class=\"code-string\">\"https://api.what3words.com/v2/\"</span>},<span class=\"code-attr\">initialize</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e</span>)</span>{<span class=\"code-keyword\">this</span>._accessToken=e},<span class=\"code-attr\">geocode</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e,n,i</span>)</span>{u(<span class=\"code-keyword\">this</span>.options.serviceUrl+<span class=\"code-string\">\"forward\"</span>,{<span class=\"code-attr\">key</span>:<span class=\"code-keyword\">this</span>._accessToken,<span class=\"code-attr\">addr</span>:e.split(<span class=\"code-regexp\">/\\s+/</span>).join(<span class=\"code-string\">\".\"</span>)},<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e</span>)</span>{<span class=\"code-keyword\">var</span> t,o,s=[];e.geometry&&(t=d.latLng(e.geometry.lat,e.geometry.lng),o=d.latLngBounds(t,t),s[<span class=\"code-number\">0</span>]={<span class=\"code-attr\">name</span>:e.words,<span class=\"code-attr\">bbox</span>:o,<span class=\"code-attr\">center</span>:t}),n.call(i,s)})},<span class=\"code-attr\">suggest</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e,t,o</span>)</span>{<span class=\"code-keyword\">return</span> <span class=\"code-keyword\">this</span>.geocode(e,t,o)},<span class=\"code-attr\">reverse</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e,t,n,i</span>)</span>{u(<span class=\"code-keyword\">this</span>.options.serviceUrl+<span class=\"code-string\">\"reverse\"</span>,{<span class=\"code-attr\">key</span>:<span class=\"code-keyword\">this</span>._accessToken,<span class=\"code-attr\">coords</span>:[e.lat,e.lng].join(<span class=\"code-string\">\",\"</span>)},<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e</span>)</span>{<span class=\"code-keyword\">var</span> t,o,s=[];<span class=\"code-number\">200</span>==e.status.status&&(t=d.latLng(e.geometry.lat,e.geometry.lng),o=d.latLngBounds(t,t),s[<span class=\"code-number\">0</span>]={<span class=\"code-attr\">name</span>:e.words,<span class=\"code-attr\">bbox</span>:o,<span class=\"code-attr\">center</span>:t}),n.call(i,s)})}});<span class=\"code-keyword\">var</span> B=<span class=\"code-built_in\">Object</span>.freeze({<span class=\"code-attr\">ArcGis</span>:c,<span class=\"code-attr\">arcgis</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e,t</span>)</span>{<span class=\"code-keyword\">return</span> <span class=\"code-keyword\">new</span> c(e,t)},<span class=\"code-attr\">Bing</span>:p,<span class=\"code-attr\">bing</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e</span>)</span>{<span class=\"code-keyword\">return</span> <span class=\"code-keyword\">new</span> p(e)},<span class=\"code-attr\">Google</span>:h,<span class=\"code-attr\">google</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e,t</span>)</span>{<span class=\"code-keyword\">return</span> <span class=\"code-keyword\">new</span> h(e,t)},<span class=\"code-attr\">HERE</span>:g,<span class=\"code-attr\">here</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e</span>)</span>{<span class=\"code-keyword\">return</span> <span class=\"code-keyword\">new</span> g(e)},<span class=\"code-attr\">LatLng</span>:m,<span class=\"code-attr\">latLng</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e</span>)</span>{<span class=\"code-keyword\">return</span> <span class=\"code-keyword\">new</span> m(e)},<span class=\"code-attr\">Mapbox</span>:f,<span class=\"code-attr\">mapbox</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e,t</span>)</span>{<span class=\"code-keyword\">return</span> <span class=\"code-keyword\">new</span> f(e,t)},<span class=\"code-attr\">MapQuest</span>:v,<span class=\"code-attr\">mapQuest</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e,t</span>)</span>{<span class=\"code-keyword\">return</span> <span class=\"code-keyword\">new</span> v(e,t)},<span class=\"code-attr\">Neutrino</span>:_,<span class=\"code-attr\">neutrino</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e</span>)</span>{<span class=\"code-keyword\">return</span> <span class=\"code-keyword\">new</span> _(e)},<span class=\"code-attr\">Nominatim</span>:b,<span class=\"code-attr\">nominatim</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e</span>)</span>{<span class=\"code-keyword\">return</span> <span class=\"code-keyword\">new</span> b(e)},<span class=\"code-attr\">OpenLocationCode</span>:L,<span class=\"code-attr\">openLocationCode</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e</span>)</span>{<span class=\"code-keyword\">return</span> <span class=\"code-keyword\">new</span> L(e)},<span class=\"code-attr\">OpenCage</span>:y,<span class=\"code-attr\">opencage</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e</span>)</span>{<span class=\"code-keyword\">return</span> <span class=\"code-keyword\">new</span> y(e)},<span class=\"code-attr\">Pelias</span>:x,<span class=\"code-attr\">pelias</span>:e,<span class=\"code-attr\">GeocodeEarth</span>:U,<span class=\"code-attr\">geocodeEarth</span>:C,<span class=\"code-attr\">Mapzen</span>:k,<span class=\"code-attr\">mapzen</span>:w,<span class=\"code-attr\">Openrouteservice</span>:D,<span class=\"code-attr\">openrouteservice</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e,t</span>)</span>{<span class=\"code-keyword\">return</span> <span class=\"code-keyword\">new</span> D(e,t)},<span class=\"code-attr\">Photon</span>:E,<span class=\"code-attr\">photon</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e</span>)</span>{<span class=\"code-keyword\">return</span> <span class=\"code-keyword\">new</span> E(e)},<span class=\"code-attr\">What3Words</span>:T,<span class=\"code-attr\">what3words</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e</span>)</span>{<span class=\"code-keyword\">return</span> <span class=\"code-keyword\">new</span> T(e)}}),R=d.Control.extend({<span class=\"code-attr\">options</span>:{<span class=\"code-attr\">showUniqueResult</span>:!<span class=\"code-number\">0</span>,<span class=\"code-attr\">showResultIcons</span>:!<span class=\"code-number\">1</span>,<span class=\"code-attr\">collapsed</span>:!<span class=\"code-number\">0</span>,<span class=\"code-attr\">expand</span>:<span class=\"code-string\">\"touch\"</span>,<span class=\"code-attr\">position</span>:<span class=\"code-string\">\"topright\"</span>,<span class=\"code-attr\">placeholder</span>:<span class=\"code-string\">\"Search...\"</span>,<span class=\"code-attr\">errorMessage</span>:<span class=\"code-string\">\"Nothing found.\"</span>,<span class=\"code-attr\">queryMinLength</span>:<span class=\"code-number\">1</span>,<span class=\"code-attr\">suggestMinLength</span>:<span class=\"code-number\">3</span>,<span class=\"code-attr\">suggestTimeout</span>:<span class=\"code-number\">250</span>,<span class=\"code-attr\">defaultMarkGeocode</span>:!<span class=\"code-number\">0</span>},<span class=\"code-attr\">includes</span>:d.Evented.prototype||d.Mixin.Events,<span class=\"code-attr\">initialize</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e</span>)</span>{d.Util.setOptions(<span class=\"code-keyword\">this</span>,e),<span class=\"code-keyword\">this</span>.options.geocoder||(<span class=\"code-keyword\">this</span>.options.geocoder=<span class=\"code-keyword\">new</span> b),<span class=\"code-keyword\">this</span>._requestCount=<span class=\"code-number\">0</span>},<span class=\"code-attr\">addThrobberClass</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\"></span>)</span>{d.DomUtil.addClass(<span class=\"code-keyword\">this</span>._container,<span class=\"code-string\">\"leaflet-control-geocoder-throbber\"</span>)},<span class=\"code-attr\">removeThrobberClass</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\"></span>)</span>{d.DomUtil.removeClass(<span class=\"code-keyword\">this</span>._container,<span class=\"code-string\">\"leaflet-control-geocoder-throbber\"</span>)},<span class=\"code-attr\">onAdd</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e</span>)</span>{<span class=\"code-keyword\">var</span> t,o=<span class=\"code-string\">\"leaflet-control-geocoder\"</span>,s=d.DomUtil.create(<span class=\"code-string\">\"div\"</span>,o+<span class=\"code-string\">\" leaflet-bar\"</span>),n=d.DomUtil.create(<span class=\"code-string\">\"button\"</span>,o+<span class=\"code-string\">\"-icon\"</span>,s),i=<span class=\"code-keyword\">this</span>._form=d.DomUtil.create(<span class=\"code-string\">\"div\"</span>,o+<span class=\"code-string\">\"-form\"</span>,s);<span class=\"code-keyword\">return</span> <span class=\"code-keyword\">this</span>._map=e,<span class=\"code-keyword\">this</span>._container=s,n.innerHTML=<span class=\"code-string\">\"&nbsp;\"</span>,n.type=<span class=\"code-string\">\"button\"</span>,(t=<span class=\"code-keyword\">this</span>._input=d.DomUtil.create(<span class=\"code-string\">\"input\"</span>,<span class=\"code-string\">\"\"</span>,i)).type=<span class=\"code-string\">\"text\"</span>,t.placeholder=<span class=\"code-keyword\">this</span>.options.placeholder,d.DomEvent.disableClickPropagation(t),<span class=\"code-keyword\">this</span>._errorElement=d.DomUtil.create(<span class=\"code-string\">\"div\"</span>,o+<span class=\"code-string\">\"-form-no-error\"</span>,s),<span class=\"code-keyword\">this</span>._errorElement.innerHTML=<span class=\"code-keyword\">this</span>.options.errorMessage,<span class=\"code-keyword\">this</span>._alts=d.DomUtil.create(<span class=\"code-string\">\"ul\"</span>,o+<span class=\"code-string\">\"-alternatives leaflet-control-geocoder-alternatives-minimized\"</span>,s),d.DomEvent.disableClickPropagation(<span class=\"code-keyword\">this</span>._alts),d.DomEvent.addListener(t,<span class=\"code-string\">\"keydown\"</span>,<span class=\"code-keyword\">this</span>._keydown,<span class=\"code-keyword\">this</span>),<span class=\"code-keyword\">this</span>.options.geocoder.suggest&&d.DomEvent.addListener(t,<span class=\"code-string\">\"input\"</span>,<span class=\"code-keyword\">this</span>._change,<span class=\"code-keyword\">this</span>),d.DomEvent.addListener(t,<span class=\"code-string\">\"blur\"</span>,<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\"></span>)</span>{<span class=\"code-keyword\">this</span>.options.collapsed&&!<span class=\"code-keyword\">this</span>._preventBlurCollapse&&<span class=\"code-keyword\">this</span>._collapse(),<span class=\"code-keyword\">this</span>._preventBlurCollapse=!<span class=\"code-number\">1</span>},<span class=\"code-keyword\">this</span>),<span class=\"code-keyword\">this</span>.options.collapsed?<span class=\"code-string\">\"click\"</span>===<span class=\"code-keyword\">this</span>.options.expand?d.DomEvent.addListener(s,<span class=\"code-string\">\"click\"</span>,<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e</span>)</span>{<span class=\"code-number\">0</span>===e.button&&<span class=\"code-number\">2</span>!==e.detail&&<span class=\"code-keyword\">this</span>._toggle()},<span class=\"code-keyword\">this</span>):d.Browser.touch&&<span class=\"code-string\">\"touch\"</span>===<span class=\"code-keyword\">this</span>.options.expand?d.DomEvent.addListener(s,<span class=\"code-string\">\"touchstart mousedown\"</span>,<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e</span>)</span>{<span class=\"code-keyword\">this</span>._toggle(),e.preventDefault(),e.stopPropagation()},<span class=\"code-keyword\">this</span>):(d.DomEvent.addListener(s,<span class=\"code-string\">\"mouseover\"</span>,<span class=\"code-keyword\">this</span>._expand,<span class=\"code-keyword\">this</span>),d.DomEvent.addListener(s,<span class=\"code-string\">\"mouseout\"</span>,<span class=\"code-keyword\">this</span>._collapse,<span class=\"code-keyword\">this</span>),<span class=\"code-keyword\">this</span>._map.on(<span class=\"code-string\">\"movestart\"</span>,<span class=\"code-keyword\">this</span>._collapse,<span class=\"code-keyword\">this</span>)):(<span class=\"code-keyword\">this</span>._expand(),d.Browser.touch?d.DomEvent.addListener(s,<span class=\"code-string\">\"touchstart\"</span>,<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\"></span>)</span>{<span class=\"code-keyword\">this</span>._geocode()},<span class=\"code-keyword\">this</span>):d.DomEvent.addListener(s,<span class=\"code-string\">\"click\"</span>,<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\"></span>)</span>{<span class=\"code-keyword\">this</span>._geocode()},<span class=\"code-keyword\">this</span>)),<span class=\"code-keyword\">this</span>.options.defaultMarkGeocode&&<span class=\"code-keyword\">this</span>.on(<span class=\"code-string\">\"markgeocode\"</span>,<span class=\"code-keyword\">this</span>.markGeocode,<span class=\"code-keyword\">this</span>),<span class=\"code-keyword\">this</span>.on(<span class=\"code-string\">\"startgeocode\"</span>,<span class=\"code-keyword\">this</span>.addThrobberClass,<span class=\"code-keyword\">this</span>),<span class=\"code-keyword\">this</span>.on(<span class=\"code-string\">\"finishgeocode\"</span>,<span class=\"code-keyword\">this</span>.removeThrobberClass,<span class=\"code-keyword\">this</span>),<span class=\"code-keyword\">this</span>.on(<span class=\"code-string\">\"startsuggest\"</span>,<span class=\"code-keyword\">this</span>.addThrobberClass,<span class=\"code-keyword\">this</span>),<span class=\"code-keyword\">this</span>.on(<span class=\"code-string\">\"finishsuggest\"</span>,<span class=\"code-keyword\">this</span>.removeThrobberClass,<span class=\"code-keyword\">this</span>),d.DomEvent.disableClickPropagation(s),s},<span class=\"code-attr\">_geocodeResult</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e,t</span>)</span>{<span class=\"code-keyword\">if</span>(!t&&<span class=\"code-keyword\">this</span>.options.showUniqueResult&&<span class=\"code-number\">1</span>===e.length)<span class=\"code-keyword\">this</span>._geocodeResultSelected(e[<span class=\"code-number\">0</span>]);<span class=\"code-keyword\">else</span> <span class=\"code-keyword\">if</span>(<span class=\"code-number\">0</span><e.length){<span class=\"code-keyword\">this</span>._alts.innerHTML=<span class=\"code-string\">\"\"</span>,<span class=\"code-keyword\">this</span>._results=e,d.DomUtil.removeClass(<span class=\"code-keyword\">this</span>._alts,<span class=\"code-string\">\"leaflet-control-geocoder-alternatives-minimized\"</span>),d.DomUtil.addClass(<span class=\"code-keyword\">this</span>._container,<span class=\"code-string\">\"leaflet-control-geocoder-options-open\"</span>);<span class=\"code-keyword\">for</span>(<span class=\"code-keyword\">var</span> o=<span class=\"code-number\">0</span>;o<e.length;o++)<span class=\"code-keyword\">this</span>._alts.appendChild(<span class=\"code-keyword\">this</span>._createAlt(e[o],o))}<span class=\"code-keyword\">else</span> d.DomUtil.addClass(<span class=\"code-keyword\">this</span>._container,<span class=\"code-string\">\"leaflet-control-geocoder-options-error\"</span>),d.DomUtil.addClass(<span class=\"code-keyword\">this</span>._errorElement,<span class=\"code-string\">\"leaflet-control-geocoder-error\"</span>)},<span class=\"code-attr\">markGeocode</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e</span>)</span>{<span class=\"code-keyword\">return</span> e=e.geocode||e,<span class=\"code-keyword\">this</span>._map.fitBounds(e.bbox),<span class=\"code-keyword\">this</span>._geocodeMarker&&<span class=\"code-keyword\">this</span>._map.removeLayer(<span class=\"code-keyword\">this</span>._geocodeMarker),<span class=\"code-keyword\">this</span>._geocodeMarker=<span class=\"code-keyword\">new</span> d.Marker(e.center).bindPopup(e.html||e.name).addTo(<span class=\"code-keyword\">this</span>._map).openPopup(),<span class=\"code-keyword\">this</span>},<span class=\"code-attr\">_geocode</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">t</span>)</span>{<span class=\"code-keyword\">var</span> e=<span class=\"code-keyword\">this</span>._input.value;<span class=\"code-keyword\">if</span>(t||!(e.length<<span class=\"code-keyword\">this</span>.options.queryMinLength)){<span class=\"code-keyword\">var</span> o=++<span class=\"code-keyword\">this</span>._requestCount,s=t?<span class=\"code-string\">\"suggest\"</span>:<span class=\"code-string\">\"geocode\"</span>,n={<span class=\"code-attr\">input</span>:e};<span class=\"code-keyword\">this</span>._lastGeocode=e,t||<span class=\"code-keyword\">this</span>._clearResults(),<span class=\"code-keyword\">this</span>.fire(<span class=\"code-string\">\"start\"</span>+s,n),<span class=\"code-keyword\">this</span>.options.geocoder[s](e,<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e</span>)</span>{o===<span class=\"code-keyword\">this</span>._requestCount&&(n.results=e,<span class=\"code-keyword\">this</span>.fire(<span class=\"code-string\">\"finish\"</span>+s,n),<span class=\"code-keyword\">this</span>._geocodeResult(e,t))},<span class=\"code-keyword\">this</span>)}},<span class=\"code-attr\">_geocodeResultSelected</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e</span>)</span>{<span class=\"code-keyword\">this</span>.fire(<span class=\"code-string\">\"markgeocode\"</span>,{<span class=\"code-attr\">geocode</span>:e})},<span class=\"code-attr\">_toggle</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\"></span>)</span>{d.DomUtil.hasClass(<span class=\"code-keyword\">this</span>._container,<span class=\"code-string\">\"leaflet-control-geocoder-expanded\"</span>)?<span class=\"code-keyword\">this</span>._collapse():<span class=\"code-keyword\">this</span>._expand()},<span class=\"code-attr\">_expand</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\"></span>)</span>{d.DomUtil.addClass(<span class=\"code-keyword\">this</span>._container,<span class=\"code-string\">\"leaflet-control-geocoder-expanded\"</span>),<span class=\"code-keyword\">this</span>._input.select(),<span class=\"code-keyword\">this</span>.fire(<span class=\"code-string\">\"expand\"</span>)},<span class=\"code-attr\">_collapse</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\"></span>)</span>{d.DomUtil.removeClass(<span class=\"code-keyword\">this</span>._container,<span class=\"code-string\">\"leaflet-control-geocoder-expanded\"</span>),d.DomUtil.addClass(<span class=\"code-keyword\">this</span>._alts,<span class=\"code-string\">\"leaflet-control-geocoder-alternatives-minimized\"</span>),d.DomUtil.removeClass(<span class=\"code-keyword\">this</span>._errorElement,<span class=\"code-string\">\"leaflet-control-geocoder-error\"</span>),d.DomUtil.removeClass(<span class=\"code-keyword\">this</span>._container,<span class=\"code-string\">\"leaflet-control-geocoder-options-open\"</span>),d.DomUtil.removeClass(<span class=\"code-keyword\">this</span>._container,<span class=\"code-string\">\"leaflet-control-geocoder-options-error\"</span>),<span class=\"code-keyword\">this</span>._input.blur(),<span class=\"code-keyword\">this</span>.fire(<span class=\"code-string\">\"collapse\"</span>)},<span class=\"code-attr\">_clearResults</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\"></span>)</span>{d.DomUtil.addClass(<span class=\"code-keyword\">this</span>._alts,<span class=\"code-string\">\"leaflet-control-geocoder-alternatives-minimized\"</span>),<span class=\"code-keyword\">this</span>._selection=<span class=\"code-literal\">null</span>,d.DomUtil.removeClass(<span class=\"code-keyword\">this</span>._errorElement,<span class=\"code-string\">\"leaflet-control-geocoder-error\"</span>),d.DomUtil.removeClass(<span class=\"code-keyword\">this</span>._container,<span class=\"code-string\">\"leaflet-control-geocoder-options-open\"</span>),d.DomUtil.removeClass(<span class=\"code-keyword\">this</span>._container,<span class=\"code-string\">\"leaflet-control-geocoder-options-error\"</span>)},<span class=\"code-attr\">_createAlt</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">t,e</span>)</span>{<span class=\"code-keyword\">var</span> o=d.DomUtil.create(<span class=\"code-string\">\"li\"</span>,<span class=\"code-string\">\"\"</span>),s=d.DomUtil.create(<span class=\"code-string\">\"a\"</span>,<span class=\"code-string\">\"\"</span>,o),n=<span class=\"code-keyword\">this</span>.options.showResultIcons&&t.icon?d.DomUtil.create(<span class=\"code-string\">\"img\"</span>,<span class=\"code-string\">\"\"</span>,s):<span class=\"code-literal\">null</span>,i=t.html?<span class=\"code-keyword\">void</span> <span class=\"code-number\">0</span>:<span class=\"code-built_in\">document</span>.createTextNode(t.name);<span class=\"code-keyword\">return</span> n&&(n.src=t.icon),o.setAttribute(<span class=\"code-string\">\"data-result-index\"</span>,e),t.html?s.innerHTML=s.innerHTML+t.html:s.appendChild(i),d.DomEvent.addListener(o,<span class=\"code-string\">\"mousedown touchstart\"</span>,<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e</span>)</span>{<span class=\"code-keyword\">this</span>._preventBlurCollapse=!<span class=\"code-number\">0</span>,d.DomEvent.stop(e),<span class=\"code-keyword\">this</span>._geocodeResultSelected(t),d.DomEvent.on(o,<span class=\"code-string\">\"click\"</span>,<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\"></span>)</span>{<span class=\"code-keyword\">this</span>.options.collapsed?<span class=\"code-keyword\">this</span>._collapse():<span class=\"code-keyword\">this</span>._clearResults()},<span class=\"code-keyword\">this</span>)},<span class=\"code-keyword\">this</span>),o},<span class=\"code-attr\">_keydown</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e</span>)</span>{<span class=\"code-keyword\">var</span> t=<span class=\"code-keyword\">this</span>,o=<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e</span>)</span>{t._selection&&(d.DomUtil.removeClass(t._selection,<span class=\"code-string\">\"leaflet-control-geocoder-selected\"</span>),t._selection=t._selection[<span class=\"code-number\">0</span><e?<span class=\"code-string\">\"nextSibling\"</span>:<span class=\"code-string\">\"previousSibling\"</span>]),t._selection||(t._selection=t._alts[<span class=\"code-number\">0</span><e?<span class=\"code-string\">\"firstChild\"</span>:<span class=\"code-string\">\"lastChild\"</span>]),t._selection&&d.DomUtil.addClass(t._selection,<span class=\"code-string\">\"leaflet-control-geocoder-selected\"</span>)};<span class=\"code-keyword\">switch</span>(e.keyCode){<span class=\"code-keyword\">case</span> <span class=\"code-number\">27</span>:<span class=\"code-keyword\">this</span>.options.collapsed?<span class=\"code-keyword\">this</span>._collapse():<span class=\"code-keyword\">this</span>._clearResults();<span class=\"code-keyword\">break</span>;<span class=\"code-keyword\">case</span> <span class=\"code-number\">38</span>:o(<span class=\"code-number\">-1</span>);<span class=\"code-keyword\">break</span>;<span class=\"code-keyword\">case</span> <span class=\"code-number\">40</span>:o(<span class=\"code-number\">1</span>);<span class=\"code-keyword\">break</span>;<span class=\"code-keyword\">case</span> <span class=\"code-number\">13</span>:<span class=\"code-keyword\">if</span>(<span class=\"code-keyword\">this</span>._selection){<span class=\"code-keyword\">var</span> s=<span class=\"code-built_in\">parseInt</span>(<span class=\"code-keyword\">this</span>._selection.getAttribute(<span class=\"code-string\">\"data-result-index\"</span>),<span class=\"code-number\">10</span>);<span class=\"code-keyword\">this</span>._geocodeResultSelected(<span class=\"code-keyword\">this</span>._results[s]),<span class=\"code-keyword\">this</span>._clearResults()}<span class=\"code-keyword\">else</span> <span class=\"code-keyword\">this</span>._geocode();<span class=\"code-keyword\">break</span>;<span class=\"code-keyword\">default</span>:<span class=\"code-keyword\">return</span>}d.DomEvent.preventDefault(e)},<span class=\"code-attr\">_change</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\"></span>)</span>{<span class=\"code-keyword\">var</span> e=<span class=\"code-keyword\">this</span>._input.value;e!==<span class=\"code-keyword\">this</span>._lastGeocode&&(clearTimeout(<span class=\"code-keyword\">this</span>._suggestTimeout),e.length>=<span class=\"code-keyword\">this</span>.options.suggestMinLength?<span class=\"code-keyword\">this</span>._suggestTimeout=setTimeout(d.bind(<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\"></span>)</span>{<span class=\"code-keyword\">this</span>._geocode(!<span class=\"code-number\">0</span>)},<span class=\"code-keyword\">this</span>),<span class=\"code-keyword\">this</span>.options.suggestTimeout):<span class=\"code-keyword\">this</span>._clearResults())}});<span class=\"code-keyword\">return</span> d.Util.extend(R,B),d.Util.extend(d.Control,{<span class=\"code-attr\">Geocoder</span>:R,<span class=\"code-attr\">geocoder</span>:<span class=\"code-function\"><span class=\"code-keyword\">function</span>(<span class=\"code-params\">e</span>)</span>{<span class=\"code-keyword\">return</span> <span class=\"code-keyword\">new</span> R(e)}}),R}(L);\n","<span class=\"code-comment\">//# sourceMappingURL=Control.Geocoder.min.js.map</span>\n",""]}}}</script></head><body><div id="root"><style data-emotion-css="262b4o">html{box-sizing:border-box;}*,*:before,*:after{box-sizing:inherit;}html,body,#root{height:100%;margin:0;}body{font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;font-size:16px;line-height:1.5;background:white;color:black;}code{font-family:Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace;}th,td{padding:0;}select{font-size:inherit;}#root{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}</style><style data-emotion-css="1r6h1r6">.code-listing{background:#fbfdff;color:#383a42;}.code-comment,.code-quote{color:#a0a1a7;font-style:italic;}.code-doctag,.code-keyword,.code-link,.code-formula{color:#a626a4;}.code-section,.code-name,.code-selector-tag,.code-deletion,.code-subst{color:#e45649;}.code-literal{color:#0184bb;}.code-string,.code-regexp,.code-addition,.code-attribute,.code-meta-string{color:#50a14f;}.code-built_in,.code-class .code-title{color:#c18401;}.code-attr,.code-variable,.code-template-variable,.code-type,.code-selector-class,.code-selector-attr,.code-selector-pseudo,.code-number{color:#986801;}.code-symbol,.code-bullet,.code-meta,.code-selector-id,.code-title{color:#4078f2;}.code-emphasis{font-style:italic;}.code-strong{font-weight:bold;}</style><style data-emotion-css="1c3h18e">.css-1c3h18e{-webkit-flex:1 0 auto;-ms-flex:1 0 auto;flex:1 0 auto;}</style><div class="css-1c3h18e"><style data-emotion-css="1cfuj1t">.css-1cfuj1t{max-width:940px;padding:0 20px;margin:0 auto;}</style><div class="css-1cfuj1t"><style data-emotion-css="xi606m">.css-xi606m{text-align:center;}</style><header class="css-xi606m"><style data-emotion-css="17kjije">.css-17kjije{font-size:3rem;margin-top:2rem;}</style><h1 class="css-17kjije"><style data-emotion-css="1ydg16i">.css-1ydg16i{color:#000;-webkit-text-decoration:none;text-decoration:none;}</style><a href="/" class="css-1ydg16i">UNPKG</a></h1></header><style data-emotion-css="93o42g">.css-93o42g{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}@media (max-width:700px){.css-93o42g{-webkit-flex-direction:column-reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;}}</style><header class="css-93o42g"><style data-emotion-css="k4kplh">.css-k4kplh{font-size:1.5rem;font-weight:normal;-webkit-flex:1;-ms-flex:1;flex:1;}</style><h1 class="css-k4kplh"><nav><span><style data-emotion-css="xt128v">.css-xt128v{color:#0076ff;-webkit-text-decoration:none;text-decoration:none;}.css-xt128v:hover{-webkit-text-decoration:underline;text-decoration:underline;}</style><a href="/browse/leaflet-control-geocoder@1.9.0/" class="css-xt128v">leaflet-control-geocoder</a></span><span><style data-emotion-css="lllnmq">.css-lllnmq{padding-left:5px;padding-right:5px;}</style><span class="css-lllnmq">/</span><a href="/browse/leaflet-control-geocoder@1.9.0/dist/" class="css-xt128v">dist</a></span><span><span class="css-lllnmq">/</span><strong>Control.Geocoder.min.js</strong></span></nav></h1><style data-emotion-css="1nr3dab">.css-1nr3dab{margin-left:20px;}@media (max-width:700px){.css-1nr3dab{margin-left:0;margin-bottom:0;}}</style><p class="css-1nr3dab"><label>Version:<!-- --> <style data-emotion-css="un3bt6">.css-un3bt6{-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;padding:4px 24px 4px 8px;font-weight:600;font-size:0.9em;color:#24292e;border:1px solid rgba(27,31,35,.2);border-radius:3px;background-color:#eff3f6;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAKCAYAAAC9vt6cAAAAAXNSR0IArs4c6QAAARFJREFUKBVjZAACNS39RhBNKrh17WI9o4quoT3Dn78HSNUMUs/CzOTI/O7Vi4dCYpJ3/jP+92BkYGAlyiBGhm8MjIxJt65e3MQM0vDu9YvLYmISILYZELOBxHABRkaGr0yMzF23r12YDFIDNgDEePv65SEhEXENBkYGFSAXuyGMjF8Z/jOsvX3tYiFIDwgwQSgIaaijnvj/P8M5IO8HsjiY/f//D4b//88A1SQhywG9jQr09PS4v/1mPAeUUPzP8B8cJowMjL+Bqu6xMQmaXL164AuyDgwDQJLa2qYSP//9vARkCoMVMzK8YeVkNbh+9uxzMB+JwGoASF5Vx0jz/98/18BqmZi171w9D2EjaaYKEwAEK00XQLdJuwAAAABJRU5ErkJggg==);background-position:right 8px center;background-repeat:no-repeat;background-size:auto 25%;}.css-un3bt6:hover{background-color:#e6ebf1;border-color:rgba(27,31,35,.35);}.css-un3bt6:active{background-color:#e9ecef;border-color:rgba(27,31,35,.35);box-shadow:inset 0 0.15em 0.3em rgba(27,31,35,.15);}</style><select name="version" class="css-un3bt6"><option value="0.0.1">0.0.1</option><option value="0.1.0">0.1.0</option><option value="0.2.0">0.2.0</option><option value="0.2.1">0.2.1</option><option value="1.0.0">1.0.0</option><option value="1.1.0">1.1.0</option><option value="1.2.0">1.2.0</option><option value="1.2.1">1.2.1</option><option value="1.3.0">1.3.0</option><option value="1.3.1">1.3.1</option><option value="1.3.2">1.3.2</option><option value="1.3.3">1.3.3</option><option value="1.3.4">1.3.4</option><option value="1.4.0">1.4.0</option><option value="1.5.0">1.5.0</option><option value="1.5.1">1.5.1</option><option value="1.5.2">1.5.2</option><option value="1.5.3">1.5.3</option><option value="1.5.4">1.5.4</option><option value="1.5.5">1.5.5</option><option value="1.5.6">1.5.6</option><option value="1.5.7">1.5.7</option><option value="1.5.8">1.5.8</option><option value="1.6.0">1.6.0</option><option value="1.7.0">1.7.0</option><option value="1.8.0">1.8.0</option><option value="1.8.2">1.8.2</option><option value="1.8.3">1.8.3</option><option selected="" value="1.9.0">1.9.0</option></select></label></p></header></div><style data-emotion-css="107j3ms">.css-107j3ms{max-width:940px;padding:0 20px;margin:0 auto;}@media (max-width:700px){.css-107j3ms{padding:0;margin:0;}}</style><div class="css-107j3ms"><style data-emotion-css="q3frg4">.css-q3frg4{border:1px solid #dfe2e5;border-radius:3px;}@media (max-width:700px){.css-q3frg4{border-right-width:0;border-left-width:0;}}</style><div class="css-q3frg4"><style data-emotion-css="10o5omr">.css-10o5omr{padding:10px;background:#f6f8fa;color:#424242;border:1px solid #d1d5da;border-top-left-radius:3px;border-top-right-radius:3px;margin:-1px -1px 0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;}@media (max-width:700px){.css-10o5omr{padding-right:20px;padding-left:20px;}}</style><div class="css-10o5omr"><span>25.9 kB</span> <span>JavaScript</span> <style data-emotion-css="12cxnkg">.css-12cxnkg{display:inline-block;-webkit-text-decoration:none;text-decoration:none;padding:2px 8px;font-weight:600;font-size:0.9rem;color:#24292e;background-color:#eff3f6;border:1px solid rgba(27,31,35,.2);border-radius:3px;}.css-12cxnkg:hover{background-color:#e6ebf1;border-color:rgba(27,31,35,.35);}.css-12cxnkg:active{background-color:#e9ecef;border-color:rgba(27,31,35,.35);box-shadow:inset 0 0.15em 0.3em rgba(27,31,35,.15);}</style><a title="Control.Geocoder.min.js" href="/leaflet-control-geocoder@1.9.0/dist/Control.Geocoder.min.js" class="css-12cxnkg">View Raw</a></div><style data-emotion-css="1i31ihw">.css-1i31ihw{overflow-x:auto;overflow-y:hidden;padding-top:5px;padding-bottom:5px;}</style><div class="code-listing css-1i31ihw"><style data-emotion-css="173nir8">.css-173nir8{border:none;border-collapse:collapse;border-spacing:0;}</style><table class="css-173nir8"><tbody><tr><style data-emotion-css="a4x74f">.css-a4x74f{padding-left:10px;padding-right:10px;color:rgba(27,31,35,.3);text-align:right;vertical-align:top;width:1%;min-width:50px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}</style><td id="L1" class="css-a4x74f"><span>1</span></td><style data-emotion-css="1dcdqdg">.css-1dcdqdg{padding-left:10px;padding-right:10px;color:#24292e;white-space:pre;}</style><td id="LC1" class="css-1dcdqdg"><code><span class="code-comment">/* @preserve |
|
</span></code></td></tr><tr><td id="L2" class="css-a4x74f"><span>2</span></td><td id="LC2" class="css-1dcdqdg"><code><span class="code-comment"> * Leaflet Control Geocoder 1.9.0 |
|
</span></code></td></tr><tr><td id="L3" class="css-a4x74f"><span>3</span></td><td id="LC3" class="css-1dcdqdg"><code><span class="code-comment"> * https://github.com/perliedman/leaflet-control-geocoder |
|
</span></code></td></tr><tr><td id="L4" class="css-a4x74f"><span>4</span></td><td id="LC4" class="css-1dcdqdg"><code><span class="code-comment"> * |
|
</span></code></td></tr><tr><td id="L5" class="css-a4x74f"><span>5</span></td><td id="LC5" class="css-1dcdqdg"><code><span class="code-comment"> * Copyright (c) 2012 sa3m (https://github.com/sa3m) |
|
</span></code></td></tr><tr><td id="L6" class="css-a4x74f"><span>6</span></td><td id="LC6" class="css-1dcdqdg"><code><span class="code-comment"> * Copyright (c) 2018 Per Liedman |
|
</span></code></td></tr><tr><td id="L7" class="css-a4x74f"><span>7</span></td><td id="LC7" class="css-1dcdqdg"><code><span class="code-comment"> * All rights reserved. |
|
</span></code></td></tr><tr><td id="L8" class="css-a4x74f"><span>8</span></td><td id="LC8" class="css-1dcdqdg"><code><span class="code-comment"> */</span> |
|
</code></td></tr><tr><td id="L9" class="css-a4x74f"><span>9</span></td><td id="LC9" class="css-1dcdqdg"><code><span class="code-keyword">this</span>.L=<span class="code-keyword">this</span>.L||{},<span class="code-keyword">this</span>.L.Control=<span class="code-keyword">this</span>.L.Control||{},<span class="code-keyword">this</span>.L.Control.Geocoder=<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">d</span>)</span>{<span class="code-string">"use strict"</span>;d=d&&d.hasOwnProperty(<span class="code-string">"default"</span>)?d.default:d;<span class="code-keyword">var</span> a=<span class="code-number">0</span>,n=<span class="code-regexp">/[&<>"'`]/g</span>,i=<span class="code-regexp">/[&<>"'`]/</span>,t={<span class="code-string">"&"</span>:<span class="code-string">"&amp;"</span>,<span class="code-string">"<"</span>:<span class="code-string">"&lt;"</span>,<span class="code-string">">"</span>:<span class="code-string">"&gt;"</span>,<span class="code-string">'"'</span>:<span class="code-string">"&quot;"</span>,<span class="code-string">"'"</span>:<span class="code-string">"&#x27;"</span>,<span class="code-string">"`"</span>:<span class="code-string">"&#x60;"</span>};<span class="code-function"><span class="code-keyword">function</span> <span class="code-title">r</span>(<span class="code-params">e</span>)</span>{<span class="code-keyword">return</span> t[e]}<span class="code-function"><span class="code-keyword">function</span> <span class="code-title">o</span>(<span class="code-params">e,t,o,s,n</span>)</span>{<span class="code-keyword">var</span> i=<span class="code-string">"_l_geocoder_"</span>+a++;t[n||<span class="code-string">"callback"</span>]=i,<span class="code-built_in">window</span>[i]=d.Util.bind(o,s);<span class="code-keyword">var</span> r=<span class="code-built_in">document</span>.createElement(<span class="code-string">"script"</span>);r.type=<span class="code-string">"text/javascript"</span>,r.src=e+l(t),r.id=i,<span class="code-built_in">document</span>.getElementsByTagName(<span class="code-string">"head"</span>)[<span class="code-number">0</span>].appendChild(r)}<span class="code-function"><span class="code-keyword">function</span> <span class="code-title">u</span>(<span class="code-params">e,t,o</span>)</span>{<span class="code-keyword">var</span> s=<span class="code-keyword">new</span> XMLHttpRequest;s.onreadystatechange=<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params"></span>)</span>{<span class="code-keyword">if</span>(<span class="code-number">4</span>===s.readyState){<span class="code-keyword">var</span> t;<span class="code-keyword">if</span>(<span class="code-number">200</span>!==s.status&&<span class="code-number">304</span>!==s.status)t=<span class="code-string">""</span>;<span class="code-keyword">else</span> <span class="code-keyword">if</span>(<span class="code-string">"string"</span>==<span class="code-keyword">typeof</span> s.response)<span class="code-keyword">try</span>{t=<span class="code-built_in">JSON</span>.parse(s.response)}<span class="code-keyword">catch</span>(e){t=s.response}<span class="code-keyword">else</span> t=s.response;o(t)}},s.open(<span class="code-string">"GET"</span>,e+l(t),!<span class="code-number">0</span>),s.responseType=<span class="code-string">"json"</span>,s.setRequestHeader(<span class="code-string">"Accept"</span>,<span class="code-string">"application/json"</span>),s.send(<span class="code-literal">null</span>)}<span class="code-function"><span class="code-keyword">function</span> <span class="code-title">s</span>(<span class="code-params">e,s</span>)</span>{<span class="code-keyword">return</span> e.replace(<span class="code-regexp">/\{ *([\w_]+) *\}/g</span>,<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e,t</span>)</span>{<span class="code-keyword">var</span> o=s[t];<span class="code-keyword">return</span> <span class="code-keyword">void</span> <span class="code-number">0</span>===o?o=<span class="code-string">""</span>:<span class="code-string">"function"</span>==<span class="code-keyword">typeof</span> o&&(o=o(s)),<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e</span>)</span>{<span class="code-keyword">return</span> <span class="code-literal">null</span>==e?<span class="code-string">""</span>:e?(e=<span class="code-string">""</span>+e,i.test(e)?e.replace(n,r):e):e+<span class="code-string">""</span>}(o)})}<span class="code-function"><span class="code-keyword">function</span> <span class="code-title">l</span>(<span class="code-params">e,t,o</span>)</span>{<span class="code-keyword">var</span> s=[];<span class="code-keyword">for</span>(<span class="code-keyword">var</span> n <span class="code-keyword">in</span> e){<span class="code-keyword">var</span> i=<span class="code-built_in">encodeURIComponent</span>(o?n.toUpperCase():n),r=e[n];<span class="code-keyword">if</span>(d.Util.isArray(r))<span class="code-keyword">for</span>(<span class="code-keyword">var</span> a=<span class="code-number">0</span>;a<r.length;a++)s.push(i+<span class="code-string">"="</span>+<span class="code-built_in">encodeURIComponent</span>(r[a]));<span class="code-keyword">else</span> s.push(i+<span class="code-string">"="</span>+<span class="code-built_in">encodeURIComponent</span>(r))}<span class="code-keyword">return</span>(t&&<span class="code-number">-1</span>!==t.indexOf(<span class="code-string">"?"</span>)?<span class="code-string">"&"</span>:<span class="code-string">"?"</span>)+s.join(<span class="code-string">"&"</span>)}<span class="code-keyword">var</span> c=d.Class.extend({<span class="code-attr">options</span>:{<span class="code-attr">service_url</span>:<span class="code-string">"https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer"</span>},<span class="code-attr">initialize</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e,t</span>)</span>{d.setOptions(<span class="code-keyword">this</span>,t),<span class="code-keyword">this</span>._accessToken=e},<span class="code-attr">geocode</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e,r,a</span>)</span>{<span class="code-keyword">var</span> t={<span class="code-attr">SingleLine</span>:e,<span class="code-attr">outFields</span>:<span class="code-string">"Addr_Type"</span>,<span class="code-attr">forStorage</span>:!<span class="code-number">1</span>,<span class="code-attr">maxLocations</span>:<span class="code-number">10</span>,<span class="code-attr">f</span>:<span class="code-string">"json"</span>};<span class="code-keyword">this</span>._key&&<span class="code-keyword">this</span>._key.length&&(t.token=<span class="code-keyword">this</span>._key),u(<span class="code-keyword">this</span>.options.service_url+<span class="code-string">"/findAddressCandidates"</span>,d.extend(t,<span class="code-keyword">this</span>.options.geocodingQueryParams),<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e</span>)</span>{<span class="code-keyword">var</span> t,o,s,n=[];<span class="code-keyword">if</span>(e.candidates&&e.candidates.length)<span class="code-keyword">for</span>(<span class="code-keyword">var</span> i=<span class="code-number">0</span>;i<=e.candidates.length<span class="code-number">-1</span>;i++)t=e.candidates[i],o=d.latLng(t.location.y,t.location.x),s=d.latLngBounds(d.latLng(t.extent.ymax,t.extent.xmax),d.latLng(t.extent.ymin,t.extent.xmin)),n[i]={<span class="code-attr">name</span>:t.address,<span class="code-attr">bbox</span>:s,<span class="code-attr">center</span>:o};r.call(a,n)})},<span class="code-attr">suggest</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e,t,o</span>)</span>{<span class="code-keyword">return</span> <span class="code-keyword">this</span>.geocode(e,t,o)},<span class="code-attr">reverse</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e,t,s,n</span>)</span>{<span class="code-keyword">var</span> o={<span class="code-attr">location</span>:<span class="code-built_in">encodeURIComponent</span>(e.lng)+<span class="code-string">","</span>+<span class="code-built_in">encodeURIComponent</span>(e.lat),<span class="code-attr">distance</span>:<span class="code-number">100</span>,<span class="code-attr">f</span>:<span class="code-string">"json"</span>};u(<span class="code-keyword">this</span>.options.service_url+<span class="code-string">"/reverseGeocode"</span>,o,<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e</span>)</span>{<span class="code-keyword">var</span> t,o=[];e&&!e.error&&(t=d.latLng(e.location.y,e.location.x),o.push({<span class="code-attr">name</span>:e.address.Match_addr,<span class="code-attr">center</span>:t,<span class="code-attr">bounds</span>:d.latLngBounds(t,t)})),s.call(n,o)})}});<span class="code-keyword">var</span> p=d.Class.extend({<span class="code-attr">initialize</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e</span>)</span>{<span class="code-keyword">this</span>.key=e},<span class="code-attr">geocode</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e,i,r</span>)</span>{o(<span class="code-string">"https://dev.virtualearth.net/REST/v1/Locations"</span>,{<span class="code-attr">query</span>:e,<span class="code-attr">key</span>:<span class="code-keyword">this</span>.key},<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e</span>)</span>{<span class="code-keyword">var</span> t=[];<span class="code-keyword">if</span>(<span class="code-number">0</span><e.resourceSets.length)<span class="code-keyword">for</span>(<span class="code-keyword">var</span> o=e.resourceSets[<span class="code-number">0</span>].resources.length<span class="code-number">-1</span>;<span class="code-number">0</span><=o;o--){<span class="code-keyword">var</span> s=e.resourceSets[<span class="code-number">0</span>].resources[o],n=s.bbox;t[o]={<span class="code-attr">name</span>:s.name,<span class="code-attr">bbox</span>:d.latLngBounds([n[<span class="code-number">0</span>],n[<span class="code-number">1</span>]],[n[<span class="code-number">2</span>],n[<span class="code-number">3</span>]]),<span class="code-attr">center</span>:d.latLng(s.point.coordinates)}}i.call(r,t)},<span class="code-keyword">this</span>,<span class="code-string">"jsonp"</span>)},<span class="code-attr">reverse</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e,t,i,r</span>)</span>{o(<span class="code-string">"//dev.virtualearth.net/REST/v1/Locations/"</span>+e.lat+<span class="code-string">","</span>+e.lng,{<span class="code-attr">key</span>:<span class="code-keyword">this</span>.key},<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e</span>)</span>{<span class="code-keyword">for</span>(<span class="code-keyword">var</span> t=[],o=e.resourceSets[<span class="code-number">0</span>].resources.length<span class="code-number">-1</span>;<span class="code-number">0</span><=o;o--){<span class="code-keyword">var</span> s=e.resourceSets[<span class="code-number">0</span>].resources[o],n=s.bbox;t[o]={<span class="code-attr">name</span>:s.name,<span class="code-attr">bbox</span>:d.latLngBounds([n[<span class="code-number">0</span>],n[<span class="code-number">1</span>]],[n[<span class="code-number">2</span>],n[<span class="code-number">3</span>]]),<span class="code-attr">center</span>:d.latLng(s.point.coordinates)}}i.call(r,t)},<span class="code-keyword">this</span>,<span class="code-string">"jsonp"</span>)}});<span class="code-keyword">var</span> h=d.Class.extend({<span class="code-attr">options</span>:{<span class="code-attr">serviceUrl</span>:<span class="code-string">"https://maps.googleapis.com/maps/api/geocode/json"</span>,<span class="code-attr">geocodingQueryParams</span>:{},<span class="code-attr">reverseQueryParams</span>:{}},<span class="code-attr">initialize</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e,t</span>)</span>{<span class="code-keyword">this</span>._key=e,d.setOptions(<span class="code-keyword">this</span>,t),<span class="code-keyword">this</span>.options.serviceUrl=<span class="code-keyword">this</span>.options.service_url||<span class="code-keyword">this</span>.options.serviceUrl},<span class="code-attr">geocode</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e,r,a</span>)</span>{<span class="code-keyword">var</span> t={<span class="code-attr">address</span>:e};<span class="code-keyword">this</span>._key&&<span class="code-keyword">this</span>._key.length&&(t.key=<span class="code-keyword">this</span>._key),t=d.Util.extend(t,<span class="code-keyword">this</span>.options.geocodingQueryParams),u(<span class="code-keyword">this</span>.options.serviceUrl,t,<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e</span>)</span>{<span class="code-keyword">var</span> t,o,s,n=[];<span class="code-keyword">if</span>(e.results&&e.results.length)<span class="code-keyword">for</span>(<span class="code-keyword">var</span> i=<span class="code-number">0</span>;i<=e.results.length<span class="code-number">-1</span>;i++)t=e.results[i],o=d.latLng(t.geometry.location),s=d.latLngBounds(d.latLng(t.geometry.viewport.northeast),d.latLng(t.geometry.viewport.southwest)),n[i]={<span class="code-attr">name</span>:t.formatted_address,<span class="code-attr">bbox</span>:s,<span class="code-attr">center</span>:o,<span class="code-attr">properties</span>:t.address_components};r.call(a,n)})},<span class="code-attr">reverse</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e,t,r,a</span>)</span>{<span class="code-keyword">var</span> o={<span class="code-attr">latlng</span>:<span class="code-built_in">encodeURIComponent</span>(e.lat)+<span class="code-string">","</span>+<span class="code-built_in">encodeURIComponent</span>(e.lng)};o=d.Util.extend(o,<span class="code-keyword">this</span>.options.reverseQueryParams),<span class="code-keyword">this</span>._key&&<span class="code-keyword">this</span>._key.length&&(o.key=<span class="code-keyword">this</span>._key),u(<span class="code-keyword">this</span>.options.serviceUrl,o,<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e</span>)</span>{<span class="code-keyword">var</span> t,o,s,n=[];<span class="code-keyword">if</span>(e.results&&e.results.length)<span class="code-keyword">for</span>(<span class="code-keyword">var</span> i=<span class="code-number">0</span>;i<=e.results.length<span class="code-number">-1</span>;i++)t=e.results[i],o=d.latLng(t.geometry.location),s=d.latLngBounds(d.latLng(t.geometry.viewport.northeast),d.latLng(t.geometry.viewport.southwest)),n[i]={<span class="code-attr">name</span>:t.formatted_address,<span class="code-attr">bbox</span>:s,<span class="code-attr">center</span>:o,<span class="code-attr">properties</span>:t.address_components};r.call(a,n)})}});<span class="code-keyword">var</span> g=d.Class.extend({<span class="code-attr">options</span>:{<span class="code-attr">geocodeUrl</span>:<span class="code-string">"https://geocoder.api.here.com/6.2/geocode.json"</span>,<span class="code-attr">reverseGeocodeUrl</span>:<span class="code-string">"https://reverse.geocoder.api.here.com/6.2/reversegeocode.json"</span>,<span class="code-attr">app_id</span>:<span class="code-string">"<insert your app_id here>"</span>,<span class="code-attr">app_code</span>:<span class="code-string">"<insert your app_code here>"</span>,<span class="code-attr">geocodingQueryParams</span>:{},<span class="code-attr">reverseQueryParams</span>:{}},<span class="code-attr">initialize</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e</span>)</span>{d.setOptions(<span class="code-keyword">this</span>,e)},<span class="code-attr">geocode</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e,t,o</span>)</span>{<span class="code-keyword">var</span> s={<span class="code-attr">searchtext</span>:e,<span class="code-attr">gen</span>:<span class="code-number">9</span>,<span class="code-attr">app_id</span>:<span class="code-keyword">this</span>.options.app_id,<span class="code-attr">app_code</span>:<span class="code-keyword">this</span>.options.app_code,<span class="code-attr">jsonattributes</span>:<span class="code-number">1</span>};s=d.Util.extend(s,<span class="code-keyword">this</span>.options.geocodingQueryParams),<span class="code-keyword">this</span>.getJSON(<span class="code-keyword">this</span>.options.geocodeUrl,s,t,o)},<span class="code-attr">reverse</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e,t,o,s</span>)</span>{<span class="code-keyword">var</span> n={<span class="code-attr">prox</span>:<span class="code-built_in">encodeURIComponent</span>(e.lat)+<span class="code-string">","</span>+<span class="code-built_in">encodeURIComponent</span>(e.lng),<span class="code-attr">mode</span>:<span class="code-string">"retrieveAddresses"</span>,<span class="code-attr">app_id</span>:<span class="code-keyword">this</span>.options.app_id,<span class="code-attr">app_code</span>:<span class="code-keyword">this</span>.options.app_code,<span class="code-attr">gen</span>:<span class="code-number">9</span>,<span class="code-attr">jsonattributes</span>:<span class="code-number">1</span>};n=d.Util.extend(n,<span class="code-keyword">this</span>.options.reverseQueryParams),<span class="code-keyword">this</span>.getJSON(<span class="code-keyword">this</span>.options.reverseGeocodeUrl,n,o,s)},<span class="code-attr">getJSON</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e,t,r,a</span>)</span>{u(e,t,<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e</span>)</span>{<span class="code-keyword">var</span> t,o,s,n=[];<span class="code-keyword">if</span>(e.response.view&&e.response.view.length)<span class="code-keyword">for</span>(<span class="code-keyword">var</span> i=<span class="code-number">0</span>;i<=e.response.view[<span class="code-number">0</span>].result.length<span class="code-number">-1</span>;i++)t=e.response.view[<span class="code-number">0</span>].result[i].location,o=d.latLng(t.displayPosition.latitude,t.displayPosition.longitude),s=d.latLngBounds(d.latLng(t.mapView.topLeft.latitude,t.mapView.topLeft.longitude),d.latLng(t.mapView.bottomRight.latitude,t.mapView.bottomRight.longitude)),n[i]={<span class="code-attr">name</span>:t.address.label,<span class="code-attr">bbox</span>:s,<span class="code-attr">center</span>:o};r.call(a,n)})}});<span class="code-keyword">var</span> m=d.Class.extend({<span class="code-attr">options</span>:{<span class="code-attr">next</span>:<span class="code-keyword">void</span> <span class="code-number">0</span>,<span class="code-attr">sizeInMeters</span>:<span class="code-number">1e4</span>},<span class="code-attr">initialize</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e</span>)</span>{d.Util.setOptions(<span class="code-keyword">this</span>,e)},<span class="code-attr">geocode</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e,t,o</span>)</span>{<span class="code-keyword">var</span> s,n;<span class="code-keyword">if</span>((s=e.match(<span class="code-regexp">/^([NS])\s*(\d{1,3}(?:\.\d*)?)\W*([EW])\s*(\d{1,3}(?:\.\d*)?)$/</span>))?n=d.latLng((<span class="code-regexp">/N/i</span>.test(s[<span class="code-number">1</span>])?<span class="code-number">1</span>:<span class="code-number">-1</span>)*<span class="code-built_in">parseFloat</span>(s[<span class="code-number">2</span>]),(<span class="code-regexp">/E/i</span>.test(s[<span class="code-number">3</span>])?<span class="code-number">1</span>:<span class="code-number">-1</span>)*<span class="code-built_in">parseFloat</span>(s[<span class="code-number">4</span>])):(s=e.match(<span class="code-regexp">/^(\d{1,3}(?:\.\d*)?)\s*([NS])\W*(\d{1,3}(?:\.\d*)?)\s*([EW])$/</span>))?n=d.latLng((<span class="code-regexp">/N/i</span>.test(s[<span class="code-number">2</span>])?<span class="code-number">1</span>:<span class="code-number">-1</span>)*<span class="code-built_in">parseFloat</span>(s[<span class="code-number">1</span>]),(<span class="code-regexp">/E/i</span>.test(s[<span class="code-number">4</span>])?<span class="code-number">1</span>:<span class="code-number">-1</span>)*<span class="code-built_in">parseFloat</span>(s[<span class="code-number">3</span>])):(s=e.match(<span class="code-regexp">/^([NS])\s*(\d{1,3})°?\s*(\d{1,3}(?:\.\d*)?)?['′]?\W*([EW])\s*(\d{1,3})°?\s*(\d{1,3}(?:\.\d*)?)?['′]?$/</span>))?n=d.latLng((<span class="code-regexp">/N/i</span>.test(s[<span class="code-number">1</span>])?<span class="code-number">1</span>:<span class="code-number">-1</span>)*(<span class="code-built_in">parseFloat</span>(s[<span class="code-number">2</span>])+<span class="code-built_in">parseFloat</span>(s[<span class="code-number">3</span>]/<span class="code-number">60</span>)),(<span class="code-regexp">/E/i</span>.test(s[<span class="code-number">4</span>])?<span class="code-number">1</span>:<span class="code-number">-1</span>)*(<span class="code-built_in">parseFloat</span>(s[<span class="code-number">5</span>])+<span class="code-built_in">parseFloat</span>(s[<span class="code-number">6</span>]/<span class="code-number">60</span>))):(s=e.match(<span class="code-regexp">/^(\d{1,3})°?\s*(\d{1,3}(?:\.\d*)?)?['′]?\s*([NS])\W*(\d{1,3})°?\s*(\d{1,3}(?:\.\d*)?)?['′]?\s*([EW])$/</span>))?n=d.latLng((<span class="code-regexp">/N/i</span>.test(s[<span class="code-number">3</span>])?<span class="code-number">1</span>:<span class="code-number">-1</span>)*(<span class="code-built_in">parseFloat</span>(s[<span class="code-number">1</span>])+<span class="code-built_in">parseFloat</span>(s[<span class="code-number">2</span>]/<span class="code-number">60</span>)),(<span class="code-regexp">/E/i</span>.test(s[<span class="code-number">6</span>])?<span class="code-number">1</span>:<span class="code-number">-1</span>)*(<span class="code-built_in">parseFloat</span>(s[<span class="code-number">4</span>])+<span class="code-built_in">parseFloat</span>(s[<span class="code-number">5</span>]/<span class="code-number">60</span>))):(s=e.match(<span class="code-regexp">/^([NS])\s*(\d{1,3})°?\s*(\d{1,2})['′]?\s*(\d{1,3}(?:\.\d*)?)?["″]?\W*([EW])\s*(\d{1,3})°?\s*(\d{1,2})['′]?\s*(\d{1,3}(?:\.\d*)?)?["″]?$/</span>))?n=d.latLng((<span class="code-regexp">/N/i</span>.test(s[<span class="code-number">1</span>])?<span class="code-number">1</span>:<span class="code-number">-1</span>)*(<span class="code-built_in">parseFloat</span>(s[<span class="code-number">2</span>])+<span class="code-built_in">parseFloat</span>(s[<span class="code-number">3</span>]/<span class="code-number">60</span>+<span class="code-built_in">parseFloat</span>(s[<span class="code-number">4</span>]/<span class="code-number">3600</span>))),(<span class="code-regexp">/E/i</span>.test(s[<span class="code-number">5</span>])?<span class="code-number">1</span>:<span class="code-number">-1</span>)*(<span class="code-built_in">parseFloat</span>(s[<span class="code-number">6</span>])+<span class="code-built_in">parseFloat</span>(s[<span class="code-number">7</span>]/<span class="code-number">60</span>)+<span class="code-built_in">parseFloat</span>(s[<span class="code-number">8</span>]/<span class="code-number">3600</span>))):(s=e.match(<span class="code-regexp">/^(\d{1,3})°?\s*(\d{1,2})['′]?\s*(\d{1,3}(?:\.\d*)?)?["″]\s*([NS])\W*(\d{1,3})°?\s*(\d{1,2})['′]?\s*(\d{1,3}(?:\.\d*)?)?["″]?\s*([EW])$/</span>))?n=d.latLng((<span class="code-regexp">/N/i</span>.test(s[<span class="code-number">4</span>])?<span class="code-number">1</span>:<span class="code-number">-1</span>)*(<span class="code-built_in">parseFloat</span>(s[<span class="code-number">1</span>])+<span class="code-built_in">parseFloat</span>(s[<span class="code-number">2</span>]/<span class="code-number">60</span>+<span class="code-built_in">parseFloat</span>(s[<span class="code-number">3</span>]/<span class="code-number">3600</span>))),(<span class="code-regexp">/E/i</span>.test(s[<span class="code-number">8</span>])?<span class="code-number">1</span>:<span class="code-number">-1</span>)*(<span class="code-built_in">parseFloat</span>(s[<span class="code-number">5</span>])+<span class="code-built_in">parseFloat</span>(s[<span class="code-number">6</span>]/<span class="code-number">60</span>)+<span class="code-built_in">parseFloat</span>(s[<span class="code-number">7</span>]/<span class="code-number">3600</span>))):(s=e.match(<span class="code-regexp">/^\s*([+-]?\d+(?:\.\d*)?)\s*[\s,]\s*([+-]?\d+(?:\.\d*)?)\s*$/</span>))&&(n=d.latLng(<span class="code-built_in">parseFloat</span>(s[<span class="code-number">1</span>]),<span class="code-built_in">parseFloat</span>(s[<span class="code-number">2</span>]))),n){<span class="code-keyword">var</span> i=[{<span class="code-attr">name</span>:e,<span class="code-attr">center</span>:n,<span class="code-attr">bbox</span>:n.toBounds(<span class="code-keyword">this</span>.options.sizeInMeters)}];t.call(o,i)}<span class="code-keyword">else</span> <span class="code-keyword">this</span>.options.next&&<span class="code-keyword">this</span>.options.next.geocode(e,t,o)}});<span class="code-keyword">var</span> f=d.Class.extend({<span class="code-attr">options</span>:{<span class="code-attr">serviceUrl</span>:<span class="code-string">"https://api.mapbox.com/geocoding/v5/mapbox.places/"</span>,<span class="code-attr">geocodingQueryParams</span>:{},<span class="code-attr">reverseQueryParams</span>:{}},<span class="code-attr">initialize</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e,t</span>)</span>{d.setOptions(<span class="code-keyword">this</span>,t),<span class="code-keyword">this</span>.options.geocodingQueryParams.access_token=e,<span class="code-keyword">this</span>.options.reverseQueryParams.access_token=e},<span class="code-attr">geocode</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e,l,c</span>)</span>{<span class="code-keyword">var</span> t=<span class="code-keyword">this</span>.options.geocodingQueryParams;<span class="code-keyword">void</span> <span class="code-number">0</span>!==t.proximity&&<span class="code-keyword">void</span> <span class="code-number">0</span>!==t.proximity.lat&&<span class="code-keyword">void</span> <span class="code-number">0</span>!==t.proximity.lng&&(t.proximity=t.proximity.lng+<span class="code-string">","</span>+t.proximity.lat),u(<span class="code-keyword">this</span>.options.serviceUrl+<span class="code-built_in">encodeURIComponent</span>(e)+<span class="code-string">".json"</span>,t,<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e</span>)</span>{<span class="code-keyword">var</span> t,o,s,n=[];<span class="code-keyword">if</span>(e.features&&e.features.length)<span class="code-keyword">for</span>(<span class="code-keyword">var</span> i=<span class="code-number">0</span>;i<=e.features.length<span class="code-number">-1</span>;i++){t=e.features[i],o=d.latLng(t.center.reverse()),s=t.bbox?d.latLngBounds(d.latLng(t.bbox.slice(<span class="code-number">0</span>,<span class="code-number">2</span>).reverse()),d.latLng(t.bbox.slice(<span class="code-number">2</span>,<span class="code-number">4</span>).reverse())):d.latLngBounds(o,o);<span class="code-keyword">for</span>(<span class="code-keyword">var</span> r={<span class="code-attr">text</span>:t.text,<span class="code-attr">address</span>:t.address},a=<span class="code-number">0</span>;a<(t.context||[]).length;a++){r[t.context[a].id.split(<span class="code-string">"."</span>)[<span class="code-number">0</span>]]=t.context[a].text}n[i]={<span class="code-attr">name</span>:t.place_name,<span class="code-attr">bbox</span>:s,<span class="code-attr">center</span>:o,<span class="code-attr">properties</span>:r}}l.call(c,n)})},<span class="code-attr">suggest</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e,t,o</span>)</span>{<span class="code-keyword">return</span> <span class="code-keyword">this</span>.geocode(e,t,o)},<span class="code-attr">reverse</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e,t,r,a</span>)</span>{u(<span class="code-keyword">this</span>.options.serviceUrl+<span class="code-built_in">encodeURIComponent</span>(e.lng)+<span class="code-string">","</span>+<span class="code-built_in">encodeURIComponent</span>(e.lat)+<span class="code-string">".json"</span>,<span class="code-keyword">this</span>.options.reverseQueryParams,<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e</span>)</span>{<span class="code-keyword">var</span> t,o,s,n=[];<span class="code-keyword">if</span>(e.features&&e.features.length)<span class="code-keyword">for</span>(<span class="code-keyword">var</span> i=<span class="code-number">0</span>;i<=e.features.length<span class="code-number">-1</span>;i++)t=e.features[i],o=d.latLng(t.center.reverse()),s=t.bbox?d.latLngBounds(d.latLng(t.bbox.slice(<span class="code-number">0</span>,<span class="code-number">2</span>).reverse()),d.latLng(t.bbox.slice(<span class="code-number">2</span>,<span class="code-number">4</span>).reverse())):d.latLngBounds(o,o),n[i]={<span class="code-attr">name</span>:t.place_name,<span class="code-attr">bbox</span>:s,<span class="code-attr">center</span>:o};r.call(a,n)})}});<span class="code-keyword">var</span> v=d.Class.extend({<span class="code-attr">options</span>:{<span class="code-attr">serviceUrl</span>:<span class="code-string">"https://www.mapquestapi.com/geocoding/v1"</span>},<span class="code-attr">initialize</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e,t</span>)</span>{<span class="code-keyword">this</span>._key=<span class="code-built_in">decodeURIComponent</span>(e),d.Util.setOptions(<span class="code-keyword">this</span>,t)},<span class="code-attr">_formatName</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params"></span>)</span>{<span class="code-keyword">var</span> e,t=[];<span class="code-keyword">for</span>(e=<span class="code-number">0</span>;e<<span class="code-built_in">arguments</span>.length;e++)<span class="code-built_in">arguments</span>[e]&&t.push(<span class="code-built_in">arguments</span>[e]);<span class="code-keyword">return</span> t.join(<span class="code-string">", "</span>)},<span class="code-attr">geocode</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e,i,r</span>)</span>{u(<span class="code-keyword">this</span>.options.serviceUrl+<span class="code-string">"/address"</span>,{<span class="code-attr">key</span>:<span class="code-keyword">this</span>._key,<span class="code-attr">location</span>:e,<span class="code-attr">limit</span>:<span class="code-number">5</span>,<span class="code-attr">outFormat</span>:<span class="code-string">"json"</span>},d.bind(<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e</span>)</span>{<span class="code-keyword">var</span> t,o,s=[];<span class="code-keyword">if</span>(e.results&&e.results[<span class="code-number">0</span>].locations)<span class="code-keyword">for</span>(<span class="code-keyword">var</span> n=e.results[<span class="code-number">0</span>].locations.length<span class="code-number">-1</span>;<span class="code-number">0</span><=n;n--)t=e.results[<span class="code-number">0</span>].locations[n],o=d.latLng(t.latLng),s[n]={<span class="code-attr">name</span>:<span class="code-keyword">this</span>._formatName(t.street,t.adminArea4,t.adminArea3,t.adminArea1),<span class="code-attr">bbox</span>:d.latLngBounds(o,o),<span class="code-attr">center</span>:o};i.call(r,s)},<span class="code-keyword">this</span>))},<span class="code-attr">reverse</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e,t,i,r</span>)</span>{u(<span class="code-keyword">this</span>.options.serviceUrl+<span class="code-string">"/reverse"</span>,{<span class="code-attr">key</span>:<span class="code-keyword">this</span>._key,<span class="code-attr">location</span>:e.lat+<span class="code-string">","</span>+e.lng,<span class="code-attr">outputFormat</span>:<span class="code-string">"json"</span>},d.bind(<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e</span>)</span>{<span class="code-keyword">var</span> t,o,s=[];<span class="code-keyword">if</span>(e.results&&e.results[<span class="code-number">0</span>].locations)<span class="code-keyword">for</span>(<span class="code-keyword">var</span> n=e.results[<span class="code-number">0</span>].locations.length<span class="code-number">-1</span>;<span class="code-number">0</span><=n;n--)t=e.results[<span class="code-number">0</span>].locations[n],o=d.latLng(t.latLng),s[n]={<span class="code-attr">name</span>:<span class="code-keyword">this</span>._formatName(t.street,t.adminArea4,t.adminArea3,t.adminArea1),<span class="code-attr">bbox</span>:d.latLngBounds(o,o),<span class="code-attr">center</span>:o};i.call(r,s)},<span class="code-keyword">this</span>))}});<span class="code-keyword">var</span> _=d.Class.extend({<span class="code-attr">options</span>:{<span class="code-attr">userId</span>:<span class="code-string">"<insert your userId here>"</span>,<span class="code-attr">apiKey</span>:<span class="code-string">"<insert your apiKey here>"</span>,<span class="code-attr">serviceUrl</span>:<span class="code-string">"https://neutrinoapi.com/"</span>},<span class="code-attr">initialize</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e</span>)</span>{d.Util.setOptions(<span class="code-keyword">this</span>,e)},<span class="code-attr">geocode</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e,n,i</span>)</span>{u(<span class="code-keyword">this</span>.options.serviceUrl+<span class="code-string">"geocode-address"</span>,{<span class="code-attr">apiKey</span>:<span class="code-keyword">this</span>.options.apiKey,<span class="code-attr">userId</span>:<span class="code-keyword">this</span>.options.userId,<span class="code-attr">address</span>:e.split(<span class="code-regexp">/\s+/</span>).join(<span class="code-string">"."</span>)},<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e</span>)</span>{<span class="code-keyword">var</span> t,o,s=[];e.locations&&(e.geometry=e.locations[<span class="code-number">0</span>],t=d.latLng(e.geometry.latitude,e.geometry.longitude),o=d.latLngBounds(t,t),s[<span class="code-number">0</span>]={<span class="code-attr">name</span>:e.geometry.address,<span class="code-attr">bbox</span>:o,<span class="code-attr">center</span>:t}),n.call(i,s)})},<span class="code-attr">suggest</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e,t,o</span>)</span>{<span class="code-keyword">return</span> <span class="code-keyword">this</span>.geocode(e,t,o)},<span class="code-attr">reverse</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">n,e,i,r</span>)</span>{u(<span class="code-keyword">this</span>.options.serviceUrl+<span class="code-string">"geocode-reverse"</span>,{<span class="code-attr">apiKey</span>:<span class="code-keyword">this</span>.options.apiKey,<span class="code-attr">userId</span>:<span class="code-keyword">this</span>.options.userId,<span class="code-attr">latitude</span>:n.lat,<span class="code-attr">longitude</span>:n.lng},<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e</span>)</span>{<span class="code-keyword">var</span> t,o,s=[];<span class="code-number">200</span>==e.status.status&&e.found&&(t=d.latLng(n.lat,n.lng),o=d.latLngBounds(t,t),s[<span class="code-number">0</span>]={<span class="code-attr">name</span>:e.address,<span class="code-attr">bbox</span>:o,<span class="code-attr">center</span>:t}),i.call(r,s)})}});<span class="code-keyword">var</span> b=d.Class.extend({<span class="code-attr">options</span>:{<span class="code-attr">serviceUrl</span>:<span class="code-string">"https://nominatim.openstreetmap.org/"</span>,<span class="code-attr">geocodingQueryParams</span>:{},<span class="code-attr">reverseQueryParams</span>:{},<span class="code-attr">htmlTemplate</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e</span>)</span>{<span class="code-keyword">var</span> t=e.address,o=[];<span class="code-keyword">return</span>(t.road||t.building)&&o.push(<span class="code-string">"{building} {road} {house_number}"</span>),(t.city||t.town||t.village||t.hamlet)&&o.push(<span class="code-string">'<span class="'</span>+(<span class="code-number">0</span><o.length?<span class="code-string">"leaflet-control-geocoder-address-detail"</span>:<span class="code-string">""</span>)+<span class="code-string">'">{postcode} {city} {town} {village} {hamlet}</span>'</span>),(t.state||t.country)&&o.push(<span class="code-string">'<span class="'</span>+(<span class="code-number">0</span><o.length?<span class="code-string">"leaflet-control-geocoder-address-context"</span>:<span class="code-string">""</span>)+<span class="code-string">'">{state} {country}</span>'</span>),s(o.join(<span class="code-string">"<br/>"</span>),t)}},<span class="code-attr">initialize</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e</span>)</span>{d.Util.setOptions(<span class="code-keyword">this</span>,e)},<span class="code-attr">geocode</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e,i,r</span>)</span>{u(<span class="code-keyword">this</span>.options.serviceUrl+<span class="code-string">"search"</span>,d.extend({<span class="code-attr">q</span>:e,<span class="code-attr">limit</span>:<span class="code-number">5</span>,<span class="code-attr">format</span>:<span class="code-string">"json"</span>,<span class="code-attr">addressdetails</span>:<span class="code-number">1</span>},<span class="code-keyword">this</span>.options.geocodingQueryParams),d.bind(<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e</span>)</span>{<span class="code-keyword">for</span>(<span class="code-keyword">var</span> t=[],o=e.length<span class="code-number">-1</span>;<span class="code-number">0</span><=o;o--){<span class="code-keyword">for</span>(<span class="code-keyword">var</span> s=e[o].boundingbox,n=<span class="code-number">0</span>;n<<span class="code-number">4</span>;n++)s[n]=<span class="code-built_in">parseFloat</span>(s[n]);t[o]={<span class="code-attr">icon</span>:e[o].icon,<span class="code-attr">name</span>:e[o].display_name,<span class="code-attr">html</span>:<span class="code-keyword">this</span>.options.htmlTemplate?<span class="code-keyword">this</span>.options.htmlTemplate(e[o]):<span class="code-keyword">void</span> <span class="code-number">0</span>,<span class="code-attr">bbox</span>:d.latLngBounds([s[<span class="code-number">0</span>],s[<span class="code-number">2</span>]],[s[<span class="code-number">1</span>],s[<span class="code-number">3</span>]]),<span class="code-attr">center</span>:d.latLng(e[o].lat,e[o].lon),<span class="code-attr">properties</span>:e[o]}}i.call(r,t)},<span class="code-keyword">this</span>))},<span class="code-attr">reverse</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e,t,s,n</span>)</span>{u(<span class="code-keyword">this</span>.options.serviceUrl+<span class="code-string">"reverse"</span>,d.extend({<span class="code-attr">lat</span>:e.lat,<span class="code-attr">lon</span>:e.lng,<span class="code-attr">zoom</span>:<span class="code-built_in">Math</span>.round(<span class="code-built_in">Math</span>.log(t/<span class="code-number">256</span>)/<span class="code-built_in">Math</span>.log(<span class="code-number">2</span>)),<span class="code-attr">addressdetails</span>:<span class="code-number">1</span>,<span class="code-attr">format</span>:<span class="code-string">"json"</span>},<span class="code-keyword">this</span>.options.reverseQueryParams),d.bind(<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e</span>)</span>{<span class="code-keyword">var</span> t,o=[];e&&e.lat&&e.lon&&(t=d.latLng(e.lat,e.lon),o.push({<span class="code-attr">name</span>:e.display_name,<span class="code-attr">html</span>:<span class="code-keyword">this</span>.options.htmlTemplate?<span class="code-keyword">this</span>.options.htmlTemplate(e):<span class="code-keyword">void</span> <span class="code-number">0</span>,<span class="code-attr">center</span>:t,<span class="code-attr">bounds</span>:d.latLngBounds(t,t),<span class="code-attr">properties</span>:e})),s.call(n,o)},<span class="code-keyword">this</span>))}});<span class="code-keyword">var</span> L=d.Class.extend({<span class="code-attr">options</span>:{<span class="code-attr">OpenLocationCode</span>:<span class="code-keyword">void</span> <span class="code-number">0</span>,<span class="code-attr">codeLength</span>:<span class="code-keyword">void</span> <span class="code-number">0</span>},<span class="code-attr">initialize</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e</span>)</span>{d.setOptions(<span class="code-keyword">this</span>,e)},<span class="code-attr">geocode</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e,t,o</span>)</span>{<span class="code-keyword">try</span>{<span class="code-keyword">var</span> s=<span class="code-keyword">this</span>.options.OpenLocationCode.decode(e),n={<span class="code-attr">name</span>:e,<span class="code-attr">center</span>:d.latLng(s.latitudeCenter,s.longitudeCenter),<span class="code-attr">bbox</span>:d.latLngBounds(d.latLng(s.latitudeLo,s.longitudeLo),d.latLng(s.latitudeHi,s.longitudeHi))};t.call(o,[n])}<span class="code-keyword">catch</span>(e){<span class="code-built_in">console</span>.warn(e),t.call(o,[])}},<span class="code-attr">reverse</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e,t,o,s</span>)</span>{<span class="code-keyword">try</span>{<span class="code-keyword">var</span> n={<span class="code-attr">name</span>:<span class="code-keyword">this</span>.options.OpenLocationCode.encode(e.lat,e.lng,<span class="code-keyword">this</span>.options.codeLength),<span class="code-attr">center</span>:d.latLng(e.lat,e.lng),<span class="code-attr">bbox</span>:d.latLngBounds(d.latLng(e.lat,e.lng),d.latLng(e.lat,e.lng))};o.call(s,[n])}<span class="code-keyword">catch</span>(e){<span class="code-built_in">console</span>.warn(e),o.call(s,[])}}});<span class="code-keyword">var</span> y=d.Class.extend({<span class="code-attr">options</span>:{<span class="code-attr">serviceUrl</span>:<span class="code-string">"https://api.opencagedata.com/geocode/v1/json"</span>},<span class="code-attr">initialize</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e</span>)</span>{<span class="code-keyword">this</span>._accessToken=e},<span class="code-attr">geocode</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e,r,a</span>)</span>{u(<span class="code-keyword">this</span>.options.serviceUrl,{<span class="code-attr">key</span>:<span class="code-keyword">this</span>._accessToken,<span class="code-attr">q</span>:e},<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e</span>)</span>{<span class="code-keyword">var</span> t,o,s,n=[];<span class="code-keyword">if</span>(e.results&&e.results.length)<span class="code-keyword">for</span>(<span class="code-keyword">var</span> i=<span class="code-number">0</span>;i<e.results.length;i++)s=e.results[i],t=d.latLng(s.geometry),o=s.annotations&&s.annotations.bounds?d.latLngBounds(d.latLng(s.annotations.bounds.northeast),d.latLng(s.annotations.bounds.southwest)):d.latLngBounds(t,t),n.push({<span class="code-attr">name</span>:s.formatted,<span class="code-attr">bbox</span>:o,<span class="code-attr">center</span>:t});r.call(a,n)})},<span class="code-attr">suggest</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e,t,o</span>)</span>{<span class="code-keyword">return</span> <span class="code-keyword">this</span>.geocode(e,t,o)},<span class="code-attr">reverse</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e,t,r,a</span>)</span>{u(<span class="code-keyword">this</span>.options.serviceUrl,{<span class="code-attr">key</span>:<span class="code-keyword">this</span>._accessToken,<span class="code-attr">q</span>:[e.lat,e.lng].join(<span class="code-string">","</span>)},<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e</span>)</span>{<span class="code-keyword">var</span> t,o,s,n=[];<span class="code-keyword">if</span>(e.results&&e.results.length)<span class="code-keyword">for</span>(<span class="code-keyword">var</span> i=<span class="code-number">0</span>;i<e.results.length;i++)s=e.results[i],t=d.latLng(s.geometry),o=s.annotations&&s.annotations.bounds?d.latLngBounds(d.latLng(s.annotations.bounds.northeast),d.latLng(s.annotations.bounds.southwest)):d.latLngBounds(t,t),n.push({<span class="code-attr">name</span>:s.formatted,<span class="code-attr">bbox</span>:o,<span class="code-attr">center</span>:t});r.call(a,n)})}});<span class="code-keyword">var</span> x=d.Class.extend({<span class="code-attr">options</span>:{<span class="code-attr">serviceUrl</span>:<span class="code-string">"https://api.geocode.earth/v1"</span>,<span class="code-attr">geocodingQueryParams</span>:{},<span class="code-attr">reverseQueryParams</span>:{}},<span class="code-attr">initialize</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e,t</span>)</span>{d.Util.setOptions(<span class="code-keyword">this</span>,t),<span class="code-keyword">this</span>._apiKey=e,<span class="code-keyword">this</span>._lastSuggest=<span class="code-number">0</span>},<span class="code-attr">geocode</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e,t,o</span>)</span>{<span class="code-keyword">var</span> s=<span class="code-keyword">this</span>;u(<span class="code-keyword">this</span>.options.serviceUrl+<span class="code-string">"/search"</span>,d.extend({<span class="code-attr">api_key</span>:<span class="code-keyword">this</span>._apiKey,<span class="code-attr">text</span>:e},<span class="code-keyword">this</span>.options.geocodingQueryParams),<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e</span>)</span>{t.call(o,s._parseResults(e,<span class="code-string">"bbox"</span>))})},<span class="code-attr">suggest</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e,t,o</span>)</span>{<span class="code-keyword">var</span> s=<span class="code-keyword">this</span>;u(<span class="code-keyword">this</span>.options.serviceUrl+<span class="code-string">"/autocomplete"</span>,d.extend({<span class="code-attr">api_key</span>:<span class="code-keyword">this</span>._apiKey,<span class="code-attr">text</span>:e},<span class="code-keyword">this</span>.options.geocodingQueryParams),d.bind(<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e</span>)</span>{e.geocoding.timestamp><span class="code-keyword">this</span>._lastSuggest&&(<span class="code-keyword">this</span>._lastSuggest=e.geocoding.timestamp,t.call(o,s._parseResults(e,<span class="code-string">"bbox"</span>)))},<span class="code-keyword">this</span>))},<span class="code-attr">reverse</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e,t,o,s</span>)</span>{<span class="code-keyword">var</span> n=<span class="code-keyword">this</span>;u(<span class="code-keyword">this</span>.options.serviceUrl+<span class="code-string">"/reverse"</span>,d.extend({<span class="code-attr">api_key</span>:<span class="code-keyword">this</span>._apiKey,<span class="code-string">"point.lat"</span>:e.lat,<span class="code-string">"point.lon"</span>:e.lng},<span class="code-keyword">this</span>.options.reverseQueryParams),<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e</span>)</span>{o.call(s,n._parseResults(e,<span class="code-string">"bounds"</span>))})},<span class="code-attr">_parseResults</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e,i</span>)</span>{<span class="code-keyword">var</span> r=[];<span class="code-keyword">return</span> d.geoJson(e,{<span class="code-attr">pointToLayer</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e,t</span>)</span>{<span class="code-keyword">return</span> d.circleMarker(t)},<span class="code-attr">onEachFeature</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e,t</span>)</span>{<span class="code-keyword">var</span> o,s,n={};t.getBounds?s=(o=t.getBounds()).getCenter():o=t.feature.bbox?(s=t.getLatLng(),d.latLngBounds(d.GeoJSON.coordsToLatLng(t.feature.bbox.slice(<span class="code-number">0</span>,<span class="code-number">2</span>)),d.GeoJSON.coordsToLatLng(t.feature.bbox.slice(<span class="code-number">2</span>,<span class="code-number">4</span>)))):(s=t.getLatLng(),d.latLngBounds(s,s)),n.name=t.feature.properties.label,n.center=s,n[i]=o,n.properties=t.feature.properties,r.push(n)}}),r}});<span class="code-function"><span class="code-keyword">function</span> <span class="code-title">e</span>(<span class="code-params">e,t</span>)</span>{<span class="code-keyword">return</span> <span class="code-keyword">new</span> x(e,t)}<span class="code-keyword">var</span> U=x,C=e,k=x,w=e,D=k.extend({<span class="code-attr">options</span>:{<span class="code-attr">serviceUrl</span>:<span class="code-string">"https://api.openrouteservice.org/geocode"</span>}});<span class="code-keyword">var</span> E=d.Class.extend({<span class="code-attr">options</span>:{<span class="code-attr">serviceUrl</span>:<span class="code-string">"https://photon.komoot.de/api/"</span>,<span class="code-attr">reverseUrl</span>:<span class="code-string">"https://photon.komoot.de/reverse/"</span>,<span class="code-attr">nameProperties</span>:[<span class="code-string">"name"</span>,<span class="code-string">"street"</span>,<span class="code-string">"suburb"</span>,<span class="code-string">"hamlet"</span>,<span class="code-string">"town"</span>,<span class="code-string">"city"</span>,<span class="code-string">"state"</span>,<span class="code-string">"country"</span>]},<span class="code-attr">initialize</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e</span>)</span>{d.setOptions(<span class="code-keyword">this</span>,e)},<span class="code-attr">geocode</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e,t,o</span>)</span>{<span class="code-keyword">var</span> s=d.extend({<span class="code-attr">q</span>:e},<span class="code-keyword">this</span>.options.geocodingQueryParams);u(<span class="code-keyword">this</span>.options.serviceUrl,s,d.bind(<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e</span>)</span>{t.call(o,<span class="code-keyword">this</span>._decodeFeatures(e))},<span class="code-keyword">this</span>))},<span class="code-attr">suggest</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e,t,o</span>)</span>{<span class="code-keyword">return</span> <span class="code-keyword">this</span>.geocode(e,t,o)},<span class="code-attr">reverse</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e,t,o,s</span>)</span>{<span class="code-keyword">var</span> n=d.extend({<span class="code-attr">lat</span>:e.lat,<span class="code-attr">lon</span>:e.lng},<span class="code-keyword">this</span>.options.reverseQueryParams);u(<span class="code-keyword">this</span>.options.reverseUrl,n,d.bind(<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e</span>)</span>{o.call(s,<span class="code-keyword">this</span>._decodeFeatures(e))},<span class="code-keyword">this</span>))},<span class="code-attr">_decodeFeatures</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e</span>)</span>{<span class="code-keyword">var</span> t,o,s,n,i,r,a=[];<span class="code-keyword">if</span>(e&&e.features)<span class="code-keyword">for</span>(t=<span class="code-number">0</span>;t<e.features.length;t++)s=(o=e.features[t]).geometry.coordinates,n=d.latLng(s[<span class="code-number">1</span>],s[<span class="code-number">0</span>]),r=(i=o.properties.extent)?d.latLngBounds([i[<span class="code-number">1</span>],i[<span class="code-number">0</span>]],[i[<span class="code-number">3</span>],i[<span class="code-number">2</span>]]):d.latLngBounds(n,n),a.push({<span class="code-attr">name</span>:<span class="code-keyword">this</span>._decodeFeatureName(o),<span class="code-attr">html</span>:<span class="code-keyword">this</span>.options.htmlTemplate?<span class="code-keyword">this</span>.options.htmlTemplate(o):<span class="code-keyword">void</span> <span class="code-number">0</span>,<span class="code-attr">center</span>:n,<span class="code-attr">bbox</span>:r,<span class="code-attr">properties</span>:o.properties});<span class="code-keyword">return</span> a},<span class="code-attr">_decodeFeatureName</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">t</span>)</span>{<span class="code-keyword">return</span>(<span class="code-keyword">this</span>.options.nameProperties||[]).map(<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e</span>)</span>{<span class="code-keyword">return</span> t.properties[e]}).filter(<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e</span>)</span>{<span class="code-keyword">return</span>!!e}).join(<span class="code-string">", "</span>)}});<span class="code-keyword">var</span> T=d.Class.extend({<span class="code-attr">options</span>:{<span class="code-attr">serviceUrl</span>:<span class="code-string">"https://api.what3words.com/v2/"</span>},<span class="code-attr">initialize</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e</span>)</span>{<span class="code-keyword">this</span>._accessToken=e},<span class="code-attr">geocode</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e,n,i</span>)</span>{u(<span class="code-keyword">this</span>.options.serviceUrl+<span class="code-string">"forward"</span>,{<span class="code-attr">key</span>:<span class="code-keyword">this</span>._accessToken,<span class="code-attr">addr</span>:e.split(<span class="code-regexp">/\s+/</span>).join(<span class="code-string">"."</span>)},<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e</span>)</span>{<span class="code-keyword">var</span> t,o,s=[];e.geometry&&(t=d.latLng(e.geometry.lat,e.geometry.lng),o=d.latLngBounds(t,t),s[<span class="code-number">0</span>]={<span class="code-attr">name</span>:e.words,<span class="code-attr">bbox</span>:o,<span class="code-attr">center</span>:t}),n.call(i,s)})},<span class="code-attr">suggest</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e,t,o</span>)</span>{<span class="code-keyword">return</span> <span class="code-keyword">this</span>.geocode(e,t,o)},<span class="code-attr">reverse</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e,t,n,i</span>)</span>{u(<span class="code-keyword">this</span>.options.serviceUrl+<span class="code-string">"reverse"</span>,{<span class="code-attr">key</span>:<span class="code-keyword">this</span>._accessToken,<span class="code-attr">coords</span>:[e.lat,e.lng].join(<span class="code-string">","</span>)},<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e</span>)</span>{<span class="code-keyword">var</span> t,o,s=[];<span class="code-number">200</span>==e.status.status&&(t=d.latLng(e.geometry.lat,e.geometry.lng),o=d.latLngBounds(t,t),s[<span class="code-number">0</span>]={<span class="code-attr">name</span>:e.words,<span class="code-attr">bbox</span>:o,<span class="code-attr">center</span>:t}),n.call(i,s)})}});<span class="code-keyword">var</span> B=<span class="code-built_in">Object</span>.freeze({<span class="code-attr">ArcGis</span>:c,<span class="code-attr">arcgis</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e,t</span>)</span>{<span class="code-keyword">return</span> <span class="code-keyword">new</span> c(e,t)},<span class="code-attr">Bing</span>:p,<span class="code-attr">bing</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e</span>)</span>{<span class="code-keyword">return</span> <span class="code-keyword">new</span> p(e)},<span class="code-attr">Google</span>:h,<span class="code-attr">google</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e,t</span>)</span>{<span class="code-keyword">return</span> <span class="code-keyword">new</span> h(e,t)},<span class="code-attr">HERE</span>:g,<span class="code-attr">here</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e</span>)</span>{<span class="code-keyword">return</span> <span class="code-keyword">new</span> g(e)},<span class="code-attr">LatLng</span>:m,<span class="code-attr">latLng</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e</span>)</span>{<span class="code-keyword">return</span> <span class="code-keyword">new</span> m(e)},<span class="code-attr">Mapbox</span>:f,<span class="code-attr">mapbox</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e,t</span>)</span>{<span class="code-keyword">return</span> <span class="code-keyword">new</span> f(e,t)},<span class="code-attr">MapQuest</span>:v,<span class="code-attr">mapQuest</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e,t</span>)</span>{<span class="code-keyword">return</span> <span class="code-keyword">new</span> v(e,t)},<span class="code-attr">Neutrino</span>:_,<span class="code-attr">neutrino</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e</span>)</span>{<span class="code-keyword">return</span> <span class="code-keyword">new</span> _(e)},<span class="code-attr">Nominatim</span>:b,<span class="code-attr">nominatim</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e</span>)</span>{<span class="code-keyword">return</span> <span class="code-keyword">new</span> b(e)},<span class="code-attr">OpenLocationCode</span>:L,<span class="code-attr">openLocationCode</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e</span>)</span>{<span class="code-keyword">return</span> <span class="code-keyword">new</span> L(e)},<span class="code-attr">OpenCage</span>:y,<span class="code-attr">opencage</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e</span>)</span>{<span class="code-keyword">return</span> <span class="code-keyword">new</span> y(e)},<span class="code-attr">Pelias</span>:x,<span class="code-attr">pelias</span>:e,<span class="code-attr">GeocodeEarth</span>:U,<span class="code-attr">geocodeEarth</span>:C,<span class="code-attr">Mapzen</span>:k,<span class="code-attr">mapzen</span>:w,<span class="code-attr">Openrouteservice</span>:D,<span class="code-attr">openrouteservice</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e,t</span>)</span>{<span class="code-keyword">return</span> <span class="code-keyword">new</span> D(e,t)},<span class="code-attr">Photon</span>:E,<span class="code-attr">photon</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e</span>)</span>{<span class="code-keyword">return</span> <span class="code-keyword">new</span> E(e)},<span class="code-attr">What3Words</span>:T,<span class="code-attr">what3words</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e</span>)</span>{<span class="code-keyword">return</span> <span class="code-keyword">new</span> T(e)}}),R=d.Control.extend({<span class="code-attr">options</span>:{<span class="code-attr">showUniqueResult</span>:!<span class="code-number">0</span>,<span class="code-attr">showResultIcons</span>:!<span class="code-number">1</span>,<span class="code-attr">collapsed</span>:!<span class="code-number">0</span>,<span class="code-attr">expand</span>:<span class="code-string">"touch"</span>,<span class="code-attr">position</span>:<span class="code-string">"topright"</span>,<span class="code-attr">placeholder</span>:<span class="code-string">"Search..."</span>,<span class="code-attr">errorMessage</span>:<span class="code-string">"Nothing found."</span>,<span class="code-attr">queryMinLength</span>:<span class="code-number">1</span>,<span class="code-attr">suggestMinLength</span>:<span class="code-number">3</span>,<span class="code-attr">suggestTimeout</span>:<span class="code-number">250</span>,<span class="code-attr">defaultMarkGeocode</span>:!<span class="code-number">0</span>},<span class="code-attr">includes</span>:d.Evented.prototype||d.Mixin.Events,<span class="code-attr">initialize</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e</span>)</span>{d.Util.setOptions(<span class="code-keyword">this</span>,e),<span class="code-keyword">this</span>.options.geocoder||(<span class="code-keyword">this</span>.options.geocoder=<span class="code-keyword">new</span> b),<span class="code-keyword">this</span>._requestCount=<span class="code-number">0</span>},<span class="code-attr">addThrobberClass</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params"></span>)</span>{d.DomUtil.addClass(<span class="code-keyword">this</span>._container,<span class="code-string">"leaflet-control-geocoder-throbber"</span>)},<span class="code-attr">removeThrobberClass</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params"></span>)</span>{d.DomUtil.removeClass(<span class="code-keyword">this</span>._container,<span class="code-string">"leaflet-control-geocoder-throbber"</span>)},<span class="code-attr">onAdd</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e</span>)</span>{<span class="code-keyword">var</span> t,o=<span class="code-string">"leaflet-control-geocoder"</span>,s=d.DomUtil.create(<span class="code-string">"div"</span>,o+<span class="code-string">" leaflet-bar"</span>),n=d.DomUtil.create(<span class="code-string">"button"</span>,o+<span class="code-string">"-icon"</span>,s),i=<span class="code-keyword">this</span>._form=d.DomUtil.create(<span class="code-string">"div"</span>,o+<span class="code-string">"-form"</span>,s);<span class="code-keyword">return</span> <span class="code-keyword">this</span>._map=e,<span class="code-keyword">this</span>._container=s,n.innerHTML=<span class="code-string">"&nbsp;"</span>,n.type=<span class="code-string">"button"</span>,(t=<span class="code-keyword">this</span>._input=d.DomUtil.create(<span class="code-string">"input"</span>,<span class="code-string">""</span>,i)).type=<span class="code-string">"text"</span>,t.placeholder=<span class="code-keyword">this</span>.options.placeholder,d.DomEvent.disableClickPropagation(t),<span class="code-keyword">this</span>._errorElement=d.DomUtil.create(<span class="code-string">"div"</span>,o+<span class="code-string">"-form-no-error"</span>,s),<span class="code-keyword">this</span>._errorElement.innerHTML=<span class="code-keyword">this</span>.options.errorMessage,<span class="code-keyword">this</span>._alts=d.DomUtil.create(<span class="code-string">"ul"</span>,o+<span class="code-string">"-alternatives leaflet-control-geocoder-alternatives-minimized"</span>,s),d.DomEvent.disableClickPropagation(<span class="code-keyword">this</span>._alts),d.DomEvent.addListener(t,<span class="code-string">"keydown"</span>,<span class="code-keyword">this</span>._keydown,<span class="code-keyword">this</span>),<span class="code-keyword">this</span>.options.geocoder.suggest&&d.DomEvent.addListener(t,<span class="code-string">"input"</span>,<span class="code-keyword">this</span>._change,<span class="code-keyword">this</span>),d.DomEvent.addListener(t,<span class="code-string">"blur"</span>,<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params"></span>)</span>{<span class="code-keyword">this</span>.options.collapsed&&!<span class="code-keyword">this</span>._preventBlurCollapse&&<span class="code-keyword">this</span>._collapse(),<span class="code-keyword">this</span>._preventBlurCollapse=!<span class="code-number">1</span>},<span class="code-keyword">this</span>),<span class="code-keyword">this</span>.options.collapsed?<span class="code-string">"click"</span>===<span class="code-keyword">this</span>.options.expand?d.DomEvent.addListener(s,<span class="code-string">"click"</span>,<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e</span>)</span>{<span class="code-number">0</span>===e.button&&<span class="code-number">2</span>!==e.detail&&<span class="code-keyword">this</span>._toggle()},<span class="code-keyword">this</span>):d.Browser.touch&&<span class="code-string">"touch"</span>===<span class="code-keyword">this</span>.options.expand?d.DomEvent.addListener(s,<span class="code-string">"touchstart mousedown"</span>,<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e</span>)</span>{<span class="code-keyword">this</span>._toggle(),e.preventDefault(),e.stopPropagation()},<span class="code-keyword">this</span>):(d.DomEvent.addListener(s,<span class="code-string">"mouseover"</span>,<span class="code-keyword">this</span>._expand,<span class="code-keyword">this</span>),d.DomEvent.addListener(s,<span class="code-string">"mouseout"</span>,<span class="code-keyword">this</span>._collapse,<span class="code-keyword">this</span>),<span class="code-keyword">this</span>._map.on(<span class="code-string">"movestart"</span>,<span class="code-keyword">this</span>._collapse,<span class="code-keyword">this</span>)):(<span class="code-keyword">this</span>._expand(),d.Browser.touch?d.DomEvent.addListener(s,<span class="code-string">"touchstart"</span>,<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params"></span>)</span>{<span class="code-keyword">this</span>._geocode()},<span class="code-keyword">this</span>):d.DomEvent.addListener(s,<span class="code-string">"click"</span>,<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params"></span>)</span>{<span class="code-keyword">this</span>._geocode()},<span class="code-keyword">this</span>)),<span class="code-keyword">this</span>.options.defaultMarkGeocode&&<span class="code-keyword">this</span>.on(<span class="code-string">"markgeocode"</span>,<span class="code-keyword">this</span>.markGeocode,<span class="code-keyword">this</span>),<span class="code-keyword">this</span>.on(<span class="code-string">"startgeocode"</span>,<span class="code-keyword">this</span>.addThrobberClass,<span class="code-keyword">this</span>),<span class="code-keyword">this</span>.on(<span class="code-string">"finishgeocode"</span>,<span class="code-keyword">this</span>.removeThrobberClass,<span class="code-keyword">this</span>),<span class="code-keyword">this</span>.on(<span class="code-string">"startsuggest"</span>,<span class="code-keyword">this</span>.addThrobberClass,<span class="code-keyword">this</span>),<span class="code-keyword">this</span>.on(<span class="code-string">"finishsuggest"</span>,<span class="code-keyword">this</span>.removeThrobberClass,<span class="code-keyword">this</span>),d.DomEvent.disableClickPropagation(s),s},<span class="code-attr">_geocodeResult</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e,t</span>)</span>{<span class="code-keyword">if</span>(!t&&<span class="code-keyword">this</span>.options.showUniqueResult&&<span class="code-number">1</span>===e.length)<span class="code-keyword">this</span>._geocodeResultSelected(e[<span class="code-number">0</span>]);<span class="code-keyword">else</span> <span class="code-keyword">if</span>(<span class="code-number">0</span><e.length){<span class="code-keyword">this</span>._alts.innerHTML=<span class="code-string">""</span>,<span class="code-keyword">this</span>._results=e,d.DomUtil.removeClass(<span class="code-keyword">this</span>._alts,<span class="code-string">"leaflet-control-geocoder-alternatives-minimized"</span>),d.DomUtil.addClass(<span class="code-keyword">this</span>._container,<span class="code-string">"leaflet-control-geocoder-options-open"</span>);<span class="code-keyword">for</span>(<span class="code-keyword">var</span> o=<span class="code-number">0</span>;o<e.length;o++)<span class="code-keyword">this</span>._alts.appendChild(<span class="code-keyword">this</span>._createAlt(e[o],o))}<span class="code-keyword">else</span> d.DomUtil.addClass(<span class="code-keyword">this</span>._container,<span class="code-string">"leaflet-control-geocoder-options-error"</span>),d.DomUtil.addClass(<span class="code-keyword">this</span>._errorElement,<span class="code-string">"leaflet-control-geocoder-error"</span>)},<span class="code-attr">markGeocode</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e</span>)</span>{<span class="code-keyword">return</span> e=e.geocode||e,<span class="code-keyword">this</span>._map.fitBounds(e.bbox),<span class="code-keyword">this</span>._geocodeMarker&&<span class="code-keyword">this</span>._map.removeLayer(<span class="code-keyword">this</span>._geocodeMarker),<span class="code-keyword">this</span>._geocodeMarker=<span class="code-keyword">new</span> d.Marker(e.center).bindPopup(e.html||e.name).addTo(<span class="code-keyword">this</span>._map).openPopup(),<span class="code-keyword">this</span>},<span class="code-attr">_geocode</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">t</span>)</span>{<span class="code-keyword">var</span> e=<span class="code-keyword">this</span>._input.value;<span class="code-keyword">if</span>(t||!(e.length<<span class="code-keyword">this</span>.options.queryMinLength)){<span class="code-keyword">var</span> o=++<span class="code-keyword">this</span>._requestCount,s=t?<span class="code-string">"suggest"</span>:<span class="code-string">"geocode"</span>,n={<span class="code-attr">input</span>:e};<span class="code-keyword">this</span>._lastGeocode=e,t||<span class="code-keyword">this</span>._clearResults(),<span class="code-keyword">this</span>.fire(<span class="code-string">"start"</span>+s,n),<span class="code-keyword">this</span>.options.geocoder[s](e,<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e</span>)</span>{o===<span class="code-keyword">this</span>._requestCount&&(n.results=e,<span class="code-keyword">this</span>.fire(<span class="code-string">"finish"</span>+s,n),<span class="code-keyword">this</span>._geocodeResult(e,t))},<span class="code-keyword">this</span>)}},<span class="code-attr">_geocodeResultSelected</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e</span>)</span>{<span class="code-keyword">this</span>.fire(<span class="code-string">"markgeocode"</span>,{<span class="code-attr">geocode</span>:e})},<span class="code-attr">_toggle</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params"></span>)</span>{d.DomUtil.hasClass(<span class="code-keyword">this</span>._container,<span class="code-string">"leaflet-control-geocoder-expanded"</span>)?<span class="code-keyword">this</span>._collapse():<span class="code-keyword">this</span>._expand()},<span class="code-attr">_expand</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params"></span>)</span>{d.DomUtil.addClass(<span class="code-keyword">this</span>._container,<span class="code-string">"leaflet-control-geocoder-expanded"</span>),<span class="code-keyword">this</span>._input.select(),<span class="code-keyword">this</span>.fire(<span class="code-string">"expand"</span>)},<span class="code-attr">_collapse</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params"></span>)</span>{d.DomUtil.removeClass(<span class="code-keyword">this</span>._container,<span class="code-string">"leaflet-control-geocoder-expanded"</span>),d.DomUtil.addClass(<span class="code-keyword">this</span>._alts,<span class="code-string">"leaflet-control-geocoder-alternatives-minimized"</span>),d.DomUtil.removeClass(<span class="code-keyword">this</span>._errorElement,<span class="code-string">"leaflet-control-geocoder-error"</span>),d.DomUtil.removeClass(<span class="code-keyword">this</span>._container,<span class="code-string">"leaflet-control-geocoder-options-open"</span>),d.DomUtil.removeClass(<span class="code-keyword">this</span>._container,<span class="code-string">"leaflet-control-geocoder-options-error"</span>),<span class="code-keyword">this</span>._input.blur(),<span class="code-keyword">this</span>.fire(<span class="code-string">"collapse"</span>)},<span class="code-attr">_clearResults</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params"></span>)</span>{d.DomUtil.addClass(<span class="code-keyword">this</span>._alts,<span class="code-string">"leaflet-control-geocoder-alternatives-minimized"</span>),<span class="code-keyword">this</span>._selection=<span class="code-literal">null</span>,d.DomUtil.removeClass(<span class="code-keyword">this</span>._errorElement,<span class="code-string">"leaflet-control-geocoder-error"</span>),d.DomUtil.removeClass(<span class="code-keyword">this</span>._container,<span class="code-string">"leaflet-control-geocoder-options-open"</span>),d.DomUtil.removeClass(<span class="code-keyword">this</span>._container,<span class="code-string">"leaflet-control-geocoder-options-error"</span>)},<span class="code-attr">_createAlt</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">t,e</span>)</span>{<span class="code-keyword">var</span> o=d.DomUtil.create(<span class="code-string">"li"</span>,<span class="code-string">""</span>),s=d.DomUtil.create(<span class="code-string">"a"</span>,<span class="code-string">""</span>,o),n=<span class="code-keyword">this</span>.options.showResultIcons&&t.icon?d.DomUtil.create(<span class="code-string">"img"</span>,<span class="code-string">""</span>,s):<span class="code-literal">null</span>,i=t.html?<span class="code-keyword">void</span> <span class="code-number">0</span>:<span class="code-built_in">document</span>.createTextNode(t.name);<span class="code-keyword">return</span> n&&(n.src=t.icon),o.setAttribute(<span class="code-string">"data-result-index"</span>,e),t.html?s.innerHTML=s.innerHTML+t.html:s.appendChild(i),d.DomEvent.addListener(o,<span class="code-string">"mousedown touchstart"</span>,<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e</span>)</span>{<span class="code-keyword">this</span>._preventBlurCollapse=!<span class="code-number">0</span>,d.DomEvent.stop(e),<span class="code-keyword">this</span>._geocodeResultSelected(t),d.DomEvent.on(o,<span class="code-string">"click"</span>,<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params"></span>)</span>{<span class="code-keyword">this</span>.options.collapsed?<span class="code-keyword">this</span>._collapse():<span class="code-keyword">this</span>._clearResults()},<span class="code-keyword">this</span>)},<span class="code-keyword">this</span>),o},<span class="code-attr">_keydown</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e</span>)</span>{<span class="code-keyword">var</span> t=<span class="code-keyword">this</span>,o=<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e</span>)</span>{t._selection&&(d.DomUtil.removeClass(t._selection,<span class="code-string">"leaflet-control-geocoder-selected"</span>),t._selection=t._selection[<span class="code-number">0</span><e?<span class="code-string">"nextSibling"</span>:<span class="code-string">"previousSibling"</span>]),t._selection||(t._selection=t._alts[<span class="code-number">0</span><e?<span class="code-string">"firstChild"</span>:<span class="code-string">"lastChild"</span>]),t._selection&&d.DomUtil.addClass(t._selection,<span class="code-string">"leaflet-control-geocoder-selected"</span>)};<span class="code-keyword">switch</span>(e.keyCode){<span class="code-keyword">case</span> <span class="code-number">27</span>:<span class="code-keyword">this</span>.options.collapsed?<span class="code-keyword">this</span>._collapse():<span class="code-keyword">this</span>._clearResults();<span class="code-keyword">break</span>;<span class="code-keyword">case</span> <span class="code-number">38</span>:o(<span class="code-number">-1</span>);<span class="code-keyword">break</span>;<span class="code-keyword">case</span> <span class="code-number">40</span>:o(<span class="code-number">1</span>);<span class="code-keyword">break</span>;<span class="code-keyword">case</span> <span class="code-number">13</span>:<span class="code-keyword">if</span>(<span class="code-keyword">this</span>._selection){<span class="code-keyword">var</span> s=<span class="code-built_in">parseInt</span>(<span class="code-keyword">this</span>._selection.getAttribute(<span class="code-string">"data-result-index"</span>),<span class="code-number">10</span>);<span class="code-keyword">this</span>._geocodeResultSelected(<span class="code-keyword">this</span>._results[s]),<span class="code-keyword">this</span>._clearResults()}<span class="code-keyword">else</span> <span class="code-keyword">this</span>._geocode();<span class="code-keyword">break</span>;<span class="code-keyword">default</span>:<span class="code-keyword">return</span>}d.DomEvent.preventDefault(e)},<span class="code-attr">_change</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params"></span>)</span>{<span class="code-keyword">var</span> e=<span class="code-keyword">this</span>._input.value;e!==<span class="code-keyword">this</span>._lastGeocode&&(clearTimeout(<span class="code-keyword">this</span>._suggestTimeout),e.length>=<span class="code-keyword">this</span>.options.suggestMinLength?<span class="code-keyword">this</span>._suggestTimeout=setTimeout(d.bind(<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params"></span>)</span>{<span class="code-keyword">this</span>._geocode(!<span class="code-number">0</span>)},<span class="code-keyword">this</span>),<span class="code-keyword">this</span>.options.suggestTimeout):<span class="code-keyword">this</span>._clearResults())}});<span class="code-keyword">return</span> d.Util.extend(R,B),d.Util.extend(d.Control,{<span class="code-attr">Geocoder</span>:R,<span class="code-attr">geocoder</span>:<span class="code-function"><span class="code-keyword">function</span>(<span class="code-params">e</span>)</span>{<span class="code-keyword">return</span> <span class="code-keyword">new</span> R(e)}}),R}(L); |
|
</code></td></tr><tr><td id="L10" class="css-a4x74f"><span>10</span></td><td id="LC10" class="css-1dcdqdg"><code><span class="code-comment">//# sourceMappingURL=Control.Geocoder.min.js.map</span> |
|
</code></td></tr></tbody></table></div></div></div></div><style data-emotion-css="1teho9j">.css-1teho9j{margin-top:5rem;background:black;color:#aaa;}</style><footer class="css-1teho9j"><style data-emotion-css="1ui8put">.css-1ui8put{max-width:940px;padding:10px 20px;margin:0 auto;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;}</style><div class="css-1ui8put"><p>© <!-- -->2019<!-- --> UNPKG</p><style data-emotion-css="la3nd4">.css-la3nd4{font-size:1.5rem;}</style><p class="css-la3nd4"><style data-emotion-css="bogekj">.css-bogekj{color:#aaa;display:inline-block;}.css-bogekj:hover{color:white;}</style><a title="Twitter" href="https://twitter.com/unpkg" class="css-bogekj"><style data-emotion-css="i6dzq1">.css-i6dzq1{vertical-align:text-bottom;}</style><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 512 512" class="css-i6dzq1" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"><path d="M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"></path></svg></a><style data-emotion-css="ap0i2q">.css-ap0i2q{color:#aaa;display:inline-block;margin-left:1rem;}.css-ap0i2q:hover{color:white;}</style><a title="GitHub" href="https://github.com/mjackson/unpkg" class="css-ap0i2q"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 496 512" class="css-i6dzq1" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"><path d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"></path></svg></a></p></div></footer></div><script src="/react@16.8.6/umd/react.production.min.js"></script><script src="/react-dom@16.8.6/umd/react-dom.production.min.js"></script><script src="/@emotion/core@10.0.6/dist/core.umd.min.js"></script><script>'use strict';(function(m,v,c){function w(){w=Object.assign||function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b],f;for(f in c)Object.prototype.hasOwnProperty.call(c,f)&&(a[f]=c[f])}return a};return w.apply(this,arguments)}function I(a,b){if(null==a)return{};var c={},f=Object.keys(a),g;for(g=0;g<f.length;g++){var h=f[g];0<=b.indexOf(h)||(c[h]=a[h])}return c}function J(a,b){b||(b=a.slice(0));a.raw=b;return a}function K(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a, |
|
"default")?a["default"]:a}function x(a,b){return b={exports:{}},a(b,b.exports),b.exports}function L(){}function M(){}function fa(a){var b=a.children;a=I(a,["children"]);return E.createElement(N.Provider,{children:b,value:a})}function O(a){return a&&a.map(function(a,c){return m.createElement(a.tag,u({key:c},a.attr),O(a.child))})}function y(a){return function(b){return m.createElement(ha,u({attr:u({},a.attr)},b),O(a.child))}}function ha(a){var b=function(b){var c=a.size||b.size||"1em";if(b.className)var d= |
|
b.className;a.className&&(d=(d?d+" ":"")+a.className);var h=a.attr,n=a.title,l=["attr","title"],q={},p;for(p in a)Object.prototype.hasOwnProperty.call(a,p)&&0>l.indexOf(p)&&(q[p]=a[p]);if(null!=a&&"function"===typeof Object.getOwnPropertySymbols){var k=0;for(p=Object.getOwnPropertySymbols(a);k<p.length;k++)0>l.indexOf(p[k])&&(q[p[k]]=a[p[k]])}return m.createElement("svg",u({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},b.attr,h,q,{className:d,style:u({color:a.color||b.color},b.style, |
|
a.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),n&&m.createElement("title",null,n),a.children)};return void 0!==P?m.createElement(P.Consumer,null,function(a){return b(a)}):b(Q)}function z(a,b){var d=b.css;b=I(b,["css"]);return c.jsx(a,w({css:w({},d,{verticalAlign:"text-bottom"})},b))}function ia(a){return z(R,a)}function ja(a){return z(S,a)}function ka(a){return z(T,a)}function la(a){return z(U,a)}function ma(a){var b=a.path,d=a.details,f=[];"/"!==b&&f.push(c.jsx("tr",{key:".."},c.jsx("td", |
|
{css:F}),c.jsx("td",{css:t},c.jsx("a",{title:"Parent directory",href:"../",css:G},"..")),c.jsx("td",{css:t}),c.jsx("td",{css:H})));a=Object.keys(d).reduce(function(a,b){var c=a.subdirs,f=a.files;b=d[b];"directory"===b.type?c.push(b):"file"===b.type&&f.push(b);return a},{subdirs:[],files:[]});var g=a.files;a.subdirs.sort(V("path")).forEach(function(a){a=a.path.substr(1<b.length?b.length+1:1);var d=a+"/";f.push(c.jsx("tr",{key:a},c.jsx("td",{css:F},c.jsx(ia,null)),c.jsx("td",{css:t},c.jsx("a",{title:a, |
|
href:d,css:G},a)),c.jsx("td",{css:t},"-"),c.jsx("td",{css:H},"-")))});g.sort(V("path")).forEach(function(a){var d=a.size,g=a.contentType;a=a.path.substr(1<b.length?b.length+1:1);f.push(c.jsx("tr",{key:a},c.jsx("td",{css:F},c.jsx(ja,null)),c.jsx("td",{css:t},c.jsx("a",{title:a,href:a,css:G},a)),c.jsx("td",{css:t},W(d)),c.jsx("td",{css:H},g)))});return c.jsx("div",{css:{border:"1px solid #dfe2e5",borderRadius:3,borderTopWidth:0,"@media (max-width: 700px)":{borderRightWidth:0,borderLeftWidth:0}}},c.jsx("table", |
|
{css:{width:"100%",borderCollapse:"collapse",borderRadius:2,background:"#fff","@media (max-width: 700px)":{"& th + th + th + th, & td + td + td + td":{display:"none"}}}},c.jsx("thead",null,c.jsx("tr",null,c.jsx("th",null,c.jsx(A,null,"Icon")),c.jsx("th",null,c.jsx(A,null,"Name")),c.jsx("th",null,c.jsx(A,null,"Size")),c.jsx("th",null,c.jsx(A,null,"Content Type")))),c.jsx("tbody",null,f)))}function na(a){a=a.split("/");return a[a.length-1]}function oa(a){var b=a.uri;return c.jsx("div",{css:{padding:20, |
|
textAlign:"center"}},c.jsx("img",{title:na(a.path),src:b}))}function pa(a){a=a.highlights.slice(0);var b=a.length&&""===a[a.length-1];b&&a.pop();return c.jsx("div",{className:"code-listing",css:{overflowX:"auto",overflowY:"hidden",paddingTop:5,paddingBottom:5}},c.jsx("table",{css:{border:"none",borderCollapse:"collapse",borderSpacing:0}},c.jsx("tbody",null,a.map(function(a,b){var d=b+1;return c.jsx("tr",{key:b},c.jsx("td",{id:"L"+d,css:{paddingLeft:10,paddingRight:10,color:"rgba(27,31,35,.3)",textAlign:"right", |
|
verticalAlign:"top",width:"1%",minWidth:50,userSelect:"none"}},c.jsx("span",null,d)),c.jsx("td",{id:"LC"+d,css:{paddingLeft:10,paddingRight:10,color:"#24292e",whiteSpace:"pre"}},c.jsx("code",{dangerouslySetInnerHTML:{__html:a}})))}),!b&&c.jsx("tr",{key:"no-newline"},c.jsx("td",{css:{paddingLeft:10,paddingRight:10,color:"rgba(27,31,35,.3)",textAlign:"right",verticalAlign:"top",width:"1%",minWidth:50,userSelect:"none"}},"\\"),c.jsx("td",{css:{paddingLeft:10,color:"rgba(27,31,35,.3)",userSelect:"none"}}, |
|
"No newline at end of file")))))}function qa(){return c.jsx("div",{css:{padding:20}},c.jsx("p",{css:{textAlign:"center"}},"No preview available."))}function ra(a){var b=a.path,d=a.details,f=m.useContext(N);a=f.packageName;f=f.packageVersion;var g=d.highlights,h=d.uri,n=d.language;d=d.size;var l=b.split("/");l=l[l.length-1];return c.jsx("div",{css:{border:"1px solid #dfe2e5",borderRadius:3,"@media (max-width: 700px)":{borderRightWidth:0,borderLeftWidth:0}}},c.jsx("div",{css:{padding:10,background:"#f6f8fa", |
|
color:"#424242",border:"1px solid #d1d5da",borderTopLeftRadius:3,borderTopRightRadius:3,margin:"-1px -1px 0",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between","@media (max-width: 700px)":{paddingRight:20,paddingLeft:20}}},c.jsx("span",null,W(d))," ",c.jsx("span",null,n)," ",c.jsx("a",{title:l,href:"/"+a+"@"+f+b,css:{display:"inline-block",textDecoration:"none",padding:"2px 8px",fontWeight:600,fontSize:"0.9rem",color:"#24292e",backgroundColor:"#eff3f6",border:"1px solid rgba(27,31,35,.2)", |
|
borderRadius:3,":hover":{backgroundColor:"#e6ebf1",borderColor:"rgba(27,31,35,.35)"},":active":{backgroundColor:"#e9ecef",borderColor:"rgba(27,31,35,.35)",boxShadow:"inset 0 0.15em 0.3em rgba(27,31,35,.15)"}}},"View Raw")),g?c.jsx(pa,{highlights:g}):h?c.jsx(oa,{path:b,uri:h}):c.jsx(qa,null))}function X(){var a=J(["\n .code-listing {\n background: #fbfdff;\n color: #383a42;\n }\n .code-comment,\n .code-quote {\n color: #a0a1a7;\n font-style: italic;\n }\n .code-doctag,\n .code-keyword,\n .code-link,\n .code-formula {\n color: #a626a4;\n }\n .code-section,\n .code-name,\n .code-selector-tag,\n .code-deletion,\n .code-subst {\n color: #e45649;\n }\n .code-literal {\n color: #0184bb;\n }\n .code-string,\n .code-regexp,\n .code-addition,\n .code-attribute,\n .code-meta-string {\n color: #50a14f;\n }\n .code-built_in,\n .code-class .code-title {\n color: #c18401;\n }\n .code-attr,\n .code-variable,\n .code-template-variable,\n .code-type,\n .code-selector-class,\n .code-selector-attr,\n .code-selector-pseudo,\n .code-number {\n color: #986801;\n }\n .code-symbol,\n .code-bullet,\n .code-meta,\n .code-selector-id,\n .code-title {\n color: #4078f2;\n }\n .code-emphasis {\n font-style: italic;\n }\n .code-strong {\n font-weight: bold;\n }\n"]); |
|
X=function(){return a};return a}function Y(){var a=J(["\n html {\n box-sizing: border-box;\n }\n *,\n *:before,\n *:after {\n box-sizing: inherit;\n }\n\n html,\n body,\n #root {\n height: 100%;\n margin: 0;\n }\n\n body {\n ","\n font-size: 16px;\n line-height: 1.5;\n background: white;\n color: black;\n }\n\n code {\n ","\n }\n\n th,\n td {\n padding: 0;\n }\n\n select {\n font-size: inherit;\n }\n\n #root {\n display: flex;\n flex-direction: column;\n }\n"]); |
|
Y=function(){return a};return a}var E="default"in m?m["default"]:m;v=v&&v.hasOwnProperty("default")?v["default"]:v;var sa="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{},Z=x(function(a,b){function c(a){if("object"===typeof a&&null!==a){var b=a.$$typeof;switch(b){case g:switch(a=a.type,a){case r:case e:case n:case q:case l:case B:return a;default:switch(a=a&&a.$$typeof,a){case k:case C:case p:return a; |
|
default:return b}}case m:case D:case h:return b}}}function f(a){return c(a)===e}Object.defineProperty(b,"__esModule",{value:!0});var g=(a="function"===typeof Symbol&&Symbol.for)?Symbol.for("react.element"):60103,h=a?Symbol.for("react.portal"):60106,n=a?Symbol.for("react.fragment"):60107,l=a?Symbol.for("react.strict_mode"):60108,q=a?Symbol.for("react.profiler"):60114,p=a?Symbol.for("react.provider"):60109,k=a?Symbol.for("react.context"):60110,r=a?Symbol.for("react.async_mode"):60111,e=a?Symbol.for("react.concurrent_mode"): |
|
60111,C=a?Symbol.for("react.forward_ref"):60112,B=a?Symbol.for("react.suspense"):60113,D=a?Symbol.for("react.memo"):60115,m=a?Symbol.for("react.lazy"):60116;b.typeOf=c;b.AsyncMode=r;b.ConcurrentMode=e;b.ContextConsumer=k;b.ContextProvider=p;b.Element=g;b.ForwardRef=C;b.Fragment=n;b.Lazy=m;b.Memo=D;b.Portal=h;b.Profiler=q;b.StrictMode=l;b.Suspense=B;b.isValidElementType=function(a){return"string"===typeof a||"function"===typeof a||a===n||a===e||a===q||a===l||a===B||"object"===typeof a&&null!==a&&(a.$$typeof=== |
|
m||a.$$typeof===D||a.$$typeof===p||a.$$typeof===k||a.$$typeof===C)};b.isAsyncMode=function(a){return f(a)||c(a)===r};b.isConcurrentMode=f;b.isContextConsumer=function(a){return c(a)===k};b.isContextProvider=function(a){return c(a)===p};b.isElement=function(a){return"object"===typeof a&&null!==a&&a.$$typeof===g};b.isForwardRef=function(a){return c(a)===C};b.isFragment=function(a){return c(a)===n};b.isLazy=function(a){return c(a)===m};b.isMemo=function(a){return c(a)===D};b.isPortal=function(a){return c(a)=== |
|
h};b.isProfiler=function(a){return c(a)===q};b.isStrictMode=function(a){return c(a)===l};b.isSuspense=function(a){return c(a)===B}});K(Z);var ta=x(function(a,b){});K(ta);x(function(a){a.exports=Z});(function(){try{if(!Object.assign)return!1;var a=new String("abc");a[5]="de";if("5"===Object.getOwnPropertyNames(a)[0])return!1;var b={};for(a=0;10>a;a++)b["_"+String.fromCharCode(a)]=a;if("0123456789"!==Object.getOwnPropertyNames(b).map(function(a){return b[a]}).join(""))return!1;var c={};"abcdefghijklmnopqrst".split("").forEach(function(a){c[a]= |
|
a});return"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},c)).join("")?!1:!0}catch(f){return!1}})();Function.call.bind(Object.prototype.hasOwnProperty);M.resetWarningCache=L;var ua=function(){function a(a,b,c,d,l,q){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==q)throw a=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"),a.name="Invariant Violation",a;} |
|
function b(){return a}a.isRequired=a;var c={array:a,bool:a,func:a,number:a,object:a,string:a,symbol:a,any:a,arrayOf:b,element:a,elementType:a,instanceOf:b,node:a,objectOf:b,oneOf:b,oneOfType:b,shape:b,exact:b,checkPropTypes:M,resetWarningCache:L};return c.PropTypes=c};x(function(a){a.exports=ua()});var N=m.createContext(),va=Object.assign||function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b],f;for(f in c)Object.prototype.hasOwnProperty.call(c,f)&&(a[f]=c[f])}return a},wa={border:0,clip:"rect(0 0 0 0)", |
|
height:"1px",width:"1px",margin:"-1px",padding:0,overflow:"hidden",position:"absolute"},A=function(a){return E.createElement("div",va({style:wa},a))},aa=x(function(a){(function(b,c){a.exports=c()})(sa,function(){function a(a){if(!a)return!0;if(!g(a)||0!==a.length)for(var c in a)if(p.call(a,c))return!1;return!0}function c(a){return"number"===typeof a||"[object Number]"===q.call(a)}function f(a){return"string"===typeof a||"[object String]"===q.call(a)}function g(a){return"object"===typeof a&&"number"=== |
|
typeof a.length&&"[object Array]"===q.call(a)}function h(a){var c=parseInt(a);return c.toString()===a?c:a}function n(b,e,d,g){c(e)&&(e=[e]);if(a(e))return b;if(f(e))return n(b,e.split("."),d,g);var r=h(e[0]);if(1===e.length)return e=b[r],void 0!==e&&g||(b[r]=d),e;void 0===b[r]&&(c(r)?b[r]=[]:b[r]={});return n(b[r],e.slice(1),d,g)}function l(b,e){c(e)&&(e=[e]);if(!a(b)){if(a(e))return b;if(f(e))return l(b,e.split("."));var d=h(e[0]),r=b[d];if(1===e.length)void 0!==r&&(g(b)?b.splice(d,1):delete b[d]); |
|
else if(void 0!==b[d])return l(b[d],e.slice(1));return b}}var q=Object.prototype.toString,p=Object.prototype.hasOwnProperty,k={ensureExists:function(a,b,c){return n(a,b,c,!0)},set:function(a,b,c,d){return n(a,b,c,d)},insert:function(a,b,c,d){var e=k.get(a,b);d=~~d;g(e)||(e=[],k.set(a,b,e));e.splice(d,0,c)},empty:function(b,d){if(a(d))return b;if(!a(b)){var e,h;if(!(e=k.get(b,d)))return b;if(f(e))return k.set(b,d,"");if("boolean"===typeof e||"[object Boolean]"===q.call(e))return k.set(b,d,!1);if(c(e))return k.set(b, |
|
d,0);if(g(e))e.length=0;else if("object"===typeof e&&"[object Object]"===q.call(e))for(h in e)p.call(e,h)&&delete e[h];else return k.set(b,d,null)}},push:function(a,b){var c=k.get(a,b);g(c)||(c=[],k.set(a,b,c));c.push.apply(c,Array.prototype.slice.call(arguments,2))},coalesce:function(a,b,c){for(var d,e=0,f=b.length;e<f;e++)if(void 0!==(d=k.get(a,b[e])))return d;return c},get:function(b,d,g){c(d)&&(d=[d]);if(a(d))return b;if(a(b))return g;if(f(d))return k.get(b,d.split("."),g);var e=h(d[0]);return 1=== |
|
d.length?void 0===b[e]?g:b[e]:k.get(b[e],d.slice(1),g)},del:function(a,b){return l(a,b)}};return k})});var ba=function(a){return function(b){return typeof b===a}};var xa=function(a,b){var c=1,f=b||function(a,b){return b};"-"===a[0]&&(c=-1,a=a.substr(1));return function(b,d){var g;b=f(a,aa.get(b,a));d=f(a,aa.get(d,a));b<d&&(g=-1);b>d&&(g=1);b===d&&(g=0);return g*c}};var V=function(){var a=Array.prototype.slice.call(arguments),b=a.filter(ba("string")),c=a.filter(ba("function"))[0];return function(a, |
|
d){for(var f=b.length,g=0,l=0;0===g&&l<f;)g=xa(b[l],c)(a,d),l++;return g}};let ca="B kB MB GB TB PB EB ZB YB".split(" "),da=(a,b)=>{let c=a;"string"===typeof b?c=a.toLocaleString(b):!0===b&&(c=a.toLocaleString());return c};var W=(a,b)=>{if(!Number.isFinite(a))throw new TypeError(`Expected a finite number, got ${typeof a}: ${a}`);b=Object.assign({},b);if(b.signed&&0===a)return" 0 B";var c=0>a;let f=c?"-":b.signed?"+":"";c&&(a=-a);if(1>a)return a=da(a,b.locale),f+a+" B";c=Math.min(Math.floor(Math.log10(a)/ |
|
3),ca.length-1);a=Number((a/Math.pow(1E3,c)).toPrecision(3));a=da(a,b.locale);return f+a+" "+ca[c]},Q={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},P=m.createContext&&m.createContext(Q),u=function(){u=Object.assign||function(a){for(var b,c=1,f=arguments.length;c<f;c++){b=arguments[c];for(var g in b)Object.prototype.hasOwnProperty.call(b,g)&&(a[g]=b[g])}return a};return u.apply(this,arguments)},R=function(a){return y({tag:"svg",attr:{viewBox:"0 0 14 16"},child:[{tag:"path",attr:{fillRule:"evenodd", |
|
d:"M13 4H7V3c0-.66-.31-1-1-1H1c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V5c0-.55-.45-1-1-1zM6 4H1V3h5v1z"}}]})(a)};R.displayName="GoFileDirectory";var S=function(a){return y({tag:"svg",attr:{viewBox:"0 0 12 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M6 5H2V4h4v1zM2 8h7V7H2v1zm0 2h7V9H2v1zm0 2h7v-1H2v1zm10-7.5V14c0 .55-.45 1-1 1H1c-.55 0-1-.45-1-1V2c0-.55.45-1 1-1h7.5L12 4.5zM11 5L8 2H1v12h10V5z"}}]})(a)};S.displayName="GoFile";var U=function(a){return y({tag:"svg",attr:{viewBox:"0 0 496 512"}, |
|
child:[{tag:"path",attr:{d:"M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"}}]})(a)}; |
|
U.displayName="FaGithub";var T=function(a){return y({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"}}]})(a)}; |
|
T.displayName="FaTwitter";var G={color:"#0076ff",textDecoration:"none",":hover":{textDecoration:"underline"}},t={paddingTop:6,paddingRight:3,paddingBottom:6,paddingLeft:3,borderTop:"1px solid #eaecef"},F=w({},t,{color:"#424242",width:17,paddingRight:2,paddingLeft:10,"@media (max-width: 700px)":{paddingLeft:20}}),H=w({},t,{textAlign:"right",paddingRight:10,"@media (max-width: 700px)":{paddingRight:20}}),ya=c.css(Y(),'\nfont-family: -apple-system,\n BlinkMacSystemFont,\n "Segoe UI",\n "Roboto",\n "Oxygen",\n "Ubuntu",\n "Cantarell",\n "Fira Sans",\n "Droid Sans",\n "Helvetica Neue",\n sans-serif;\n', |
|
"\nfont-family: Menlo,\n Monaco,\n Lucida Console,\n Liberation Mono,\n DejaVu Sans Mono,\n Bitstream Vera Sans Mono,\n Courier New,\n monospace;\n"),za=c.css(X()),ea={color:"#0076ff",textDecoration:"none",":hover":{textDecoration:"underline"}};v.hydrate(E.createElement(function(a){var b=a.packageName,d=a.packageVersion,f=a.availableVersions;f=void 0===f?[]:f;var g=a.filename;a=a.target;var h=[];if("/"===g)h.push(b);else{var n="/browse/"+b+"@"+d;h.push(c.jsx("a",{href:n+"/",css:ea},b));g=g.replace(/^\/+/, |
|
"").replace(/\/+$/,"").split("/");var l=g.pop();g.forEach(function(a){n+="/"+a;h.push(c.jsx("a",{href:n+"/",css:ea},a))});h.push(l)}return c.jsx(fa,{packageName:b,packageVersion:d},c.jsx(m.Fragment,null,c.jsx(c.Global,{styles:ya}),c.jsx(c.Global,{styles:za}),c.jsx("div",{css:{flex:"1 0 auto"}},c.jsx("div",{css:{maxWidth:940,padding:"0 20px",margin:"0 auto"}},c.jsx("header",{css:{textAlign:"center"}},c.jsx("h1",{css:{fontSize:"3rem",marginTop:"2rem"}},c.jsx("a",{href:"/",css:{color:"#000",textDecoration:"none"}}, |
|
"UNPKG"))),c.jsx("header",{css:{display:"flex",flexDirection:"row",alignItems:"center","@media (max-width: 700px)":{flexDirection:"column-reverse",alignItems:"flex-start"}}},c.jsx("h1",{css:{fontSize:"1.5rem",fontWeight:"normal",flex:1}},c.jsx("nav",null,h.map(function(a,b,d){return c.jsx("span",{key:b},0!==b&&c.jsx("span",{css:{paddingLeft:5,paddingRight:5}},"/"),b===d.length-1?c.jsx("strong",null,a):a)}))),c.jsx("p",{css:{marginLeft:20,"@media (max-width: 700px)":{marginLeft:0,marginBottom:0}}}, |
|
c.jsx("label",null,"Version:"," ",c.jsx("select",{name:"version",defaultValue:d,onChange:function(a){window.location.href=window.location.href.replace("@"+d,"@"+a.target.value)},css:{appearance:"none",cursor:"pointer",padding:"4px 24px 4px 8px",fontWeight:600,fontSize:"0.9em",color:"#24292e",border:"1px solid rgba(27,31,35,.2)",borderRadius:3,backgroundColor:"#eff3f6",backgroundImage:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAKCAYAAAC9vt6cAAAAAXNSR0IArs4c6QAAARFJREFUKBVjZAACNS39RhBNKrh17WI9o4quoT3Dn78HSNUMUs/CzOTI/O7Vi4dCYpJ3/jP+92BkYGAlyiBGhm8MjIxJt65e3MQM0vDu9YvLYmISILYZELOBxHABRkaGr0yMzF23r12YDFIDNgDEePv65SEhEXENBkYGFSAXuyGMjF8Z/jOsvX3tYiFIDwgwQSgIaaijnvj/P8M5IO8HsjiY/f//D4b//88A1SQhywG9jQr09PS4v/1mPAeUUPzP8B8cJowMjL+Bqu6xMQmaXL164AuyDgwDQJLa2qYSP//9vARkCoMVMzK8YeVkNbh+9uxzMB+JwGoASF5Vx0jz/98/18BqmZi171w9D2EjaaYKEwAEK00XQLdJuwAAAABJRU5ErkJggg==)", |
|
backgroundPosition:"right 8px center",backgroundRepeat:"no-repeat",backgroundSize:"auto 25%",":hover":{backgroundColor:"#e6ebf1",borderColor:"rgba(27,31,35,.35)"},":active":{backgroundColor:"#e9ecef",borderColor:"rgba(27,31,35,.35)",boxShadow:"inset 0 0.15em 0.3em rgba(27,31,35,.15)"}}},f.map(function(a){return c.jsx("option",{key:a,value:a},a)})))))),c.jsx("div",{css:{maxWidth:940,padding:"0 20px",margin:"0 auto","@media (max-width: 700px)":{padding:0,margin:0}}},"directory"===a.type?c.jsx(ma,{path:a.path, |
|
details:a.details}):"file"===a.type?c.jsx(ra,{path:a.path,details:a.details}):null)),c.jsx("footer",{css:{marginTop:"5rem",background:"black",color:"#aaa"}},c.jsx("div",{css:{maxWidth:940,padding:"10px 20px",margin:"0 auto",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between"}},c.jsx("p",null,"\u00a9 ",(new Date).getFullYear()," UNPKG"),c.jsx("p",{css:{fontSize:"1.5rem"}},c.jsx("a",{title:"Twitter",href:"https://twitter.com/unpkg",css:{color:"#aaa",display:"inline-block", |
|
":hover":{color:"white"}}},c.jsx(ka,null)),c.jsx("a",{title:"GitHub",href:"https://github.com/mjackson/unpkg",css:{color:"#aaa",display:"inline-block",marginLeft:"1rem",":hover":{color:"white"}}},c.jsx(la,null)))))))},window.__DATA__||{}),document.getElementById("root"))})(React,ReactDOM,emotionCore); |
|
</script></body></html> |