!function(r){if("object"==typeofexports&&"undefined"!=typeofmodule)module.exports=r();elseif("function"==typeofdefine&&define.amd)define([],r);else{vare;e="undefined"!=typeofwindow?window:"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:this,e.omnivore=r()}}(function(){varr;returnfunctionr(e,t,n){functiono(u,a){if(!t[u]){if(!e[u]){vars="function"==typeofrequire&&require;if(!a&&s)returns(u,!0);if(i)returni(u,!0);varf=newError("Cannot find module '"+u+"'");throwf.code="MODULE_NOT_FOUND",f}varc=t[u]={exports:{}};e[u][0].call(c.exports,function(r){vart=e[u][1][r];returno(t?t:r)},c,c.exports,r,e,t,n)}returnt[u].exports}for(vari="function"==typeofrequire&&require,u=0;u<n.length;u++)o(n[u]);returno}({1:[function(r,e,t){functionn(r,e){"setGeoJSON"inr?r.setGeoJSON(e):"addData"inr&&r.addData(e)}functiono(r,e,t){varo=t||L.geoJson();returny(r,function(r,e){returnr?o.fire("error",{error:r}):(n(o,JSON.parse(e.responseText)),voido.fire("ready"))}),o}functioni(r,e,t){functionn(r,t){returnr?o.fire("error",{error:r}):(l(t.responseText,e,o),voido.fire("ready"))}varo=t||L.geoJson();returny(r,n),o}functionu(r,e,t){functionn(r,t){functionn(){i=!0}vari;returnr?o.fire("error",{error:r}):(o.on("error",n),p(t.responseText,e,o),o.off("error",n),void(i||o.fire("ready")))}varo=t||L.geoJson();returny(r,n),o}functiona(r,e,t){functionn(r,t){functionn(){i=!0}vari;returnr?o.fire("error",{error:r}):(o.on("error",n),h(t.responseXML||t.responseText,e,o),o.off("error",n),void(i||o.fire("ready")))}varo=t||L.geoJson();returny(r,n),o}functions(r,e,t){functionn(r,t){functionn(){i=!0}vari;returnr?o.fire("error",{error:r}):(o.on("error",n),g(t.responseXML||t.responseText,e,o),o.off("error",n),void(i||o.fire("ready")))}varo=t||L.geoJson();returny(r,n),o}functionf(r,e,t){functionn(r,t){returnr?o.fire("error",{error:r}):(v(t.responseText,e,o),voido.fire("ready"))}varo=t||L.geoJson();returny(r,n),o}functionc(r,e,t){functionn(r,t){returnr?o.fire("error",{error:r}):(d(t.responseText,e,o),voido.fire("ready"))}varo=t||L.geoJson();returny(r,n),o}functionl(r,e,t){varo="string"==typeofr?JSON.parse(r):r;t=t||L.geoJson();for(variino.objects){varu=S.feature(o,o.objects[i]);u.features?n(t,u.features):n(t,u)}returnt}functionp(r,e,t){functiono(r,e){returnr?t.fire("error",{error:r}):voidn(t,e)}returnt=t||L.geoJson(),e=e||{},x.csv2geojson(r,e,o),t}functionh(r,e,t){varo=m(r);if(!o)returnt.fire("error",{error:"Could not parse GPX"});t=t||L.geoJson();vari=T.gpx(o);returnn(t,i),t}functiong(r,e,t){varo=m(r);if(!o)returnt.fire("error",{error:"Could not parse KML"});t=t||L.geoJson();vari=T.kml(o);returnn(t,i),t}functiond(r,e,t){t=t||L.geoJson(),e=e||{};for(varo=E.decode(r,e.precision),i={type:"LineString",coordinates:[]},u=0;u<o.length;u++)i.coordinates[u]=[o[u][1],o[u][0]];returnn(t,i),t}functionv(r,e,t){t=t||L.geoJson();varo=w(r);returnn(t,o),t}functionm(r){return"string"==typeofr?(newDOMParser).parseFromString(r,"text/xml"):r}vary=r("corslite"),x=r("csv2geojson"),w=r("wellknown"),E=r("polyline"),S=r("topojson"),T=r("togeojson");e.exports.polyline=c,e.exports.polyline.parse=d,e.exports.geojson=o,e.exports.topojson=i,e.exports.topojson.parse=l,e.exports.csv=u,e.exports.csv.parse=p,e.exports.gpx=a,e.exports.gpx.parse=h,e.exports.kml=s,e.exports.kml.parse=g,e.exports.wkt=f,e.exports.wkt.parse=v},{corslite:4,csv2geojson:5,polyline:8,togeojson:9,topojson:10,wellknown:11}],2:[function(r,e,t){},{}],3:[function(r,e,t){functionn(){thrownewError("setTimeout has not been defined")}functiono(){thrownewError("clearTimeout has not been defined")}functioni(r){if(l===setTimeout)returnsetTimeout(r,0);if((l===n||!l)&&setTimeout)returnl=setTimeout,setTimeout(r,0);try{returnl(r,0)}catch(e){try{returnl.call(null,r,0)}catch(e){returnl.call(this,r,0)}}}functionu(r){if(p===clearTimeout)returnclearTimeout(r);if((p===o||!p)&&clearTimeout)returnp=clearTimeout,clearTimeout(r);try{returnp(r)}catch(e){try{returnp.call(null,r)}catch(e){returnp.call(this,r)}}}functiona(){v&&g&&(v=!1