PageSourceSearch

https://keploy.io/_next/static/chunks/4800.91c8a6f0e54ba9dc.js

js keploy.io collected 2026-10-02 11:06:39 UTC 136,015 bytes, 4 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4800],{34782:(t,s,i)=>{i.d(s,{A:()=>sO});var a=Math.PI/2,e=Math.PI/4,h=2*Math.PI,r={};r.greenwich=0,r.lisbon=-9.131906111111,r.paris=2.337229166667,r.bogota=-74.080916666667,r.madrid=-3.687938888889,r.rome=12.452333333333,r.bern=7.439583333333,r.jakarta=106.807719444444,r.ferro=-17.666666666667,r.brussels=4.367975,r.stockholm=18.058277777778,r.athens=23.7163375,r.oslo=10.722916666667;let n={mm:{to_meter:.001},cm:{to_meter:.01},ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937},fath:{to_meter:1.8288},kmi:{to_meter:1852},"us-ch":{to_meter:20.1168402336805},"us-mi":{to_meter:1609.34721869444},km:{to_meter:1e3},"ind-ft":{to_meter:.30479841},"ind-yd":{to_meter:.91439523},mi:{to_meter:1609.344},yd:{to_meter:.9144},ch:{to_meter:20.1168},link:{to_meter:.201168},dm:{to_meter:.1},in:{to_meter:.0254},"ind-ch":{to_meter:20.11669506},"us-in":{to_meter:.025400050800101},"us-yd":{to_meter:.914401828803658}};var o=/[\s_\-\/\(\)]/g;function l(t,s){if(t[s])return t[s];for(var i,a=Object.keys(t),e=s.toLowerCase().replace(o,""),h=-1;++h<a.length;)if((i=a[h]).toLowerCase().replace(o,"")===e)return t[i]}function _(t){var s,i,a,e={},h=t.split("+").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,s){var i=s.split("=");return i.push(!0),t[i[0].toLowerCase()]=i[1],t},{}),o={proj:"projName",datum:"datumCode",rf:function(t){e.rf=parseFloat(t)},lat_0:function(t){e.lat0=.017453292519943295*t},lat_1:function(t){e.lat1=.017453292519943295*t},lat_2:function(t){e.lat2=.017453292519943295*t},lat_ts:function(t){e.lat_ts=.017453292519943295*t},lon_0:function(t){e.long0=.017453292519943295*t},lon_1:function(t){e.long1=.017453292519943295*t},lon_2:function(t){e.long2=.017453292519943295*t},alpha:function(t){e.alpha=.017453292519943295*parseFloat(t)},gamma:function(t){e.rectified_grid_angle=.017453292519943295*parseFloat(t)},lonc:function(t){e.longc=.017453292519943295*t},x_0:function(t){e.x0=parseFloat(t)},y_0:function(t){e.y0=parseFloat(t)},k_0:function(t){e.k0=parseFloat(t)},k:function(t){e.k0=parseFloat(t)},a:function(t){e.a=parseFloat(t)},b:function(t){e.b=parseFloat(t)},r:function(t){e.a=e.b=parseFloat(t)},r_a:function(){e.R_A=!0},zone:function(t){e.zone=parseInt(t,10)},south:function(){e.utmSouth=!0},towgs84:function(t){e.datum_params=t.split(",").map(function(t){return parseFloat(t)})},to_meter:function(t){e.to_meter=parseFloat(t)},units:function(t){e.units=t;var s=l(n,t);s&&(e.to_meter=s.to_meter)},from_greenwich:function(t){e.from_greenwich=.017453292519943295*t},pm:function(t){e.from_greenwich=.017453292519943295*(l(r,t)||parseFloat(t))},nadgrids:function(t){"@null"===t?e.datumCode="none":e.nadgrids=t},axis:function(t){var s="ewnsud";3===t.length&&-1!==s.indexOf(t.substr(0,1))&&-1!==s.indexOf(t.substr(1,1))&&-1!==s.indexOf(t.substr(2,1))&&(e.axis=t)},approx:function(){e.approx=!0},over:function(){e.over=!0}};for(s in h)i=h[s],s in o?"function"==typeof(a=o[s])?a(i):e[a]=i:e[s]=i;return"string"==typeof e.datumCode&&"WGS84"!==e.datumCode&&(e.datumCode=e.datumCode.toLowerCase()),e.projStr=t,e}class c{static getId(t){let s=t.find(t=>Array.isArray(t)&&"ID"===t[0]);return s&&s.length>=3?{authority:s[1],code:parseInt(s[2],10)}:null}static convertUnit(t,s="unit"){if(!t||t.length<3)return{type:s,name:"unknown",conversion_factor:null};let i=t[1],a=parseFloat(t[2])||null,e=t.find(t=>Array.isArray(t)&&"ID"===t[0]);return{type:s,name:i,conversion_factor:a,id:e?{authority:e[1],code:parseInt(e[2],10)}:null}}static convertAxis(t){let s,i=t[1]||"Unknown",a=i.match(/^\((.)\)$/);if(a){let i=a[1].toUpperCase();if("E"===i)s="east";else if("N"===i)s="north";else if("U"===i)s="up";else if(t[2])s=t[2];else throw Error(`Unknown axis abbreviation: ${i}`)}else s=t[2]||"unknown";let e=t.find(t=>Array.isArray(t)&&"ORDER"===t[0]),h=e?parseInt(e[1],10):null,r=t.find(t=>Array.isArray(t)&&("LENGTHUNIT"===t[0]||"ANGLEUNIT"===t[0]||"SCALEUNIT"===t[0]));return{name:i,direction:s,unit:this.convertUnit(r),order:h}}static extractAxes(t){return t.filter(t=>Array.isArray(t)&&"AXIS"===t[0]).map(t=>this.convertAxis(t)).sort((t,s)=>(t.order||0)-(s.order||0))}static convert(t,s={}){switch(t[0]){case"PROJCRS":s.type="ProjectedCRS",s.name=t[1],s.base_crs=t.find(t=>Array.isArray(t)&&"BASEGEOGCRS"===t[0])?this.convert(t.find(t=>
1Array.isArray(t)&&"BASEGEOGCRS"===t[0])):null,s.conversion=t.find(t=>Array.isArray(t)&&"CONVERSION"===t[0])?this.convert(t.find(t=>Array.isArray(t)&&"CONVERSION"===t[0])):null;let i=t.find(t=>Array.isArray(t)&&"CS"===t[0]);i&&(s.coordinate_system={type:i[1],axis:this.extractAxes(t)});let a=t.find(t=>Array.isArray(t)&&"LENGTHUNIT"===t[0]);if(a){let t=this.convertUnit(a);s.coordinate_system.unit=t}s.id=this.getId(t);break;case"BASEGEOGCRS":case"GEOGCRS":case"GEODCRS":s.type="GEODCRS"===t[0]?"GeodeticCRS":"GeographicCRS",s.name=t[1];let e=t.find(t=>Array.isArray(t)&&("DATUM"===t[0]||"ENSEMBLE"===t[0]));if(e){let i=this.convert(e);"ENSEMBLE"===e[0]?s.datum_ensemble=i:s.datum=i;let a=t.find(t=>Array.isArray(t)&&"PRIMEM"===t[0]);a&&"Greenwich"!==a[1]&&(i.prime_meridian={name:a[1],longitude:parseFloat(a[2])})}s.coordinate_system={type:"ellipsoidal",axis:this.extractAxes(t)},s.id=this.getId(t);break;case"DATUM":s.type="GeodeticReferenceFrame",s.name=t[1],s.ellipsoid=t.find(t=>Array.isArray(t)&&"ELLIPSOID"===t[0])?this.convert(t.find(t=>Array.isArray(t)&&"ELLIPSOID"===t[0])):null;break;case"ENSEMBLE":s.type="DatumEnsemble",s.name=t[1],s.members=t.filter(t=>Array.isArray(t)&&"MEMBER"===t[0]).map(t=>({type:"DatumEnsembleMember",name:t[1],id:this.getId(t)}));let h=t.find(t=>Array.isArray(t)&&"ENSEMBLEACCURACY"===t[0]);h&&(s.accuracy=parseFloat(h[1]));let r=t.find(t=>Array.isArray(t)&&"ELLIPSOID"===t[0]);r&&(s.ellipsoid=this.convert(r)),s.id=this.getId(t);break;case"ELLIPSOID":s.type="Ellipsoid",s.name=t[1],s.semi_major_axis=parseFloat(t[2]),s.inverse_flattening=parseFloat(t[3]),t.find(t=>Array.isArray(t)&&"LENGTHUNIT"===t[0])&&this.convert(t.find(t=>Array.isArray(t)&&"LENGTHUNIT"===t[0]),s);break;case"CONVERSION":s.type="Conversion",s.name=t[1],s.method=t.find(t=>Array.isArray(t)&&"METHOD"===t[0])?this.convert(t.find(t=>Array.isArray(t)&&"METHOD"===t[0])):null,s.parameters=t.filter(t=>Array.isArray(t)&&"PARAMETER"===t[0]).map(t=>this.convert(t));break;case"METHOD":s.type="Method",s.name=t[1],s.id=this.getId(t);break;case"PARAMETER":s.type="Parameter",s.name=t[1],s.value=parseFloat(t[2]),s.unit=this.convertUnit(t.find(t=>Array.isArray(t)&&("LENGTHUNIT"===t[0]||"ANGLEUNIT"===t[0]||"SCALEUNIT"===t[0]))),s.id=this.getId(t);break;case"BOUNDCRS":s.type="BoundCRS";let n=t.find(t=>Array.isArray(t)&&"SOURCECRS"===t[0]);if(n){let t=n.find(t=>Array.isArray(t));s.source_crs=t?this.convert(t):null}let o=t.find(t=>Array.isArray(t)&&"TARGETCRS"===t[0]);if(o){let t=o.find(t=>Array.isArray(t));s.target_crs=t?this.convert(t):null}let l=t.find(t=>Array.isArray(t)&&"ABRIDGEDTRANSFORMATION"===t[0]);l?s.transformation=this.convert(l):s.transformation=null;break;case"ABRIDGEDTRANSFORMATION":if(s.type="Transformation",s.name=t[1],s.method=t.find(t=>Array.isArray(t)&&"METHOD"===t[0])?this.convert(t.find(t=>Array.isArray(t)&&"METHOD"===t[0])):null,s.parameters=t.filter(t=>Array.isArray(t)&&("PARAMETER"===t[0]||"PARAMETERFILE"===t[0])).map(t=>"PARAMETER"===t[0]?this.convert(t):"PARAMETERFILE"===t[0]?{name:t[1],value:t[2],id:{authority:"EPSG",code:8656}}:void 0),7===s.parameters.length){let t=s.parameters[6];"Scale difference"===t.name&&(t.value=Math.round((t.value-1)*1e12)/1e6)}s.id=this.getId(t);break;case"AXIS":s.coordinate_system||(s.coordinate_system={type:"unspecified",axis:[]}),s.coordinate_system.axis.push(this.convertAxis(t));break;case"LENGTHUNIT":let _=this.convertUnit(t,"LinearUnit");s.coordinate_system&&s.coordinate_system.axis&&s.coordinate_system.axis.forEach(t=>{t.unit||(t.unit=_)}),_.conversion_factor&&1!==_.conversion_factor&&s.semi_major_axis&&(s.semi_major_axis={value:s.semi_major_axis,unit:_});break;default:s.keyword=t[0]}return s}}let u=c;class M extends u{static convert(t,s={}){return super.convert(t,s),s.coordinate_system&&"Cartesian"===s.coordinate_system.subtype&&delete s.coordinate_system,s.usage&&delete s.usage,s}}class g extends u{static convert(t,s={}){super.convert(t,s);let i=t.find(t=>Array.isArray(t)&&"CS"===t[0]);i&&(s.coordinate_system={subtype:i[1],axis:this.extractAxes(t)});let a=t.find(t=>Array.isArray(t)&&"USAGE"===t[0]);if(a){let t=a.find(t=>Array.isArray(t)&&"SCOPE"===t[0]),i=a.find(t=>Array.isArray(t)&&"AREA"===t[0]),e=a.find(t=>Array.isArray(t)&&"BBOX"===t[0]);s.usage={},t&&(s.usage.scope=t[1]),i&&(s.usage.area=i[1]),e&&(s.usage.bbox=e.slice(1))}return s}}var d=/\s/,f=/[A-Za-z]/,p=/[A-Za-z84_]/,m=/[,\]]/,y=/[\d\.E\-\+]/;function E(t){if("string"!=typeof t)throw Error("not a string");this.text=t.trim(),this.level=0,this.place=0,this.root=null,this.stack=[],this.currentObject=null,this.state=1}function w(t,s,i){Array.isArray(s)&&(i.unshift(s),s=null);var a=s?{}:t,e=i.reduce(function(t,s){return x(s,t),t},a);s&&(t[s]=e)}function x(t,s){if(!Array.isArray(t)){s[t]=!0;return}var i,a=t.shift();if("PARAMETER"===a&&(a=t.shift()),1===t.length){if(Array.isArray(t[0])){s[a]={},x(t[0],s[a]);return}s[a]=t[0];return}if(!t.length){s[a]=!0;return}if("TOWGS84"===a){s[a]=t;return}if("AXIS"===a){a in s||(s[a]=[]),s[a].push(t);return}switch(!Array.isArray(a)&&(s[a]={}),a){case"UNIT":case"PRIMEM":case"VERT_DATUM":s[a]={name:t[0].toLowerCase(),convert:t[1]},3===t.length&&x(t[2],s[a]);return;case"SPHEROID":case"ELLIPSOID":s[a]={name:t[0],a:t[1],rf:t[2]},4===t.length&&x(t[3],s[a]);return;case"EDATUM":case"ENGINEERINGDATUM":case"LOCAL_DATUM":case"DATUM":case"VERT_CS":case"VERTCRS":case"VERTICALCRS":t[0]=["name",t[0]],w(s,a,t);return;
1case"COMPD_CS":case"COMPOUNDCRS":case"FITTED_CS":case"PROJECTEDCRS":case"PROJCRS":case"GEOGCS":case"GEOCCS":case"PROJCS":case"LOCAL_CS":case"GEODCRS":case"GEODETICCRS":case"GEODETICDATUM":case"ENGCRS":case"ENGINEERINGCRS":t[0]=["name",t[0]],w(s,a,t),s[a].type=a;return;default:for(i=-1;++i<t.length;)if(!Array.isArray(t[i]))return x(t,s[a]);return w(s,a,t)}}function S(t){return .017453292519943295*t}function v(t){let s=(t.projName||"").toLowerCase().replace(/_/g," ");void 0===t.long0&&void 0!==t.longc&&(t.long0=t.longc),!t.lat_ts&&t.lat1&&("stereographic south pole"===s||"polar stereographic (variant b)"===s)?(t.lat0=S(t.lat1>0?90:-90),t.lat_ts=t.lat1,delete t.lat1):!t.lat_ts&&t.lat0&&("polar stereographic"===s||"polar stereographic (variant a)"===s)&&(t.lat_ts=t.lat0,t.lat0=S(t.lat0>0?90:-90),delete t.lat1)}function G(t){let s={units:null,to_meter:void 0};return"string"==typeof t?(s.units=t.toLowerCase(),"metre"===s.units&&(s.units="meter"),"meter"===s.units&&(s.to_meter=1)):t&&t.name&&(s.units=t.name.toLowerCase(),"metre"===s.units&&(s.units="meter"),s.to_meter=t.conversion_factor),s}function P(t){return"object"==typeof t?t.value*t.unit.conversion_factor:t}function b(t,s){t.ellipsoid.radius?(s.a=t.ellipsoid.radius,s.rf=0):(s.a=P(t.ellipsoid.semi_major_axis),void 0!==t.ellipsoid.inverse_flattening?s.rf=t.ellipsoid.inverse_flattening:void 0!==t.ellipsoid.semi_major_axis&&void 0!==t.ellipsoid.semi_minor_axis&&(s.rf=s.a/(s.a-P(t.ellipsoid.semi_minor_axis))))}function A(t,s={}){return t&&"object"==typeof t?("BoundCRS"===t.type?(A(t.source_crs,s),t.transformation&&(t.transformation.method&&"NTv2"===t.transformation.method.name?s.nadgrids=t.transformation.parameters[0].value:s.datum_params=t.transformation.parameters.map(t=>t.value))):(Object.keys(t).forEach(i=>{let a=t[i];if(null!==a)switch(i){case"name":if(s.srsCode)break;s.name=a,s.srsCode=a;break;case"type":"GeographicCRS"===a?s.projName="longlat":"GeodeticCRS"===a?t.coordinate_system&&"Cartesian"===t.coordinate_system.subtype?s.projName="geocent":s.projName="longlat":"ProjectedCRS"===a&&t.conversion&&t.conversion.method&&(s.projName=t.conversion.method.name);break;case"datum":case"datum_ensemble":a.ellipsoid&&(s.ellps=a.ellipsoid.name,b(a,s)),a.prime_meridian&&(s.from_greenwich=a.prime_meridian.longitude*Math.PI/180);break;case"ellipsoid":s.ellps=a.name,b(a,s);break;case"prime_meridian":s.long0=(a.longitude||0)*Math.PI/180;break;case"coordinate_system":if(a.axis){let t={east:"e",north:"n",west:"w",south:"s",up:"u",down:"d",geocentricx:"e",geocentricy:"n",geocentricz:"u"},i=a.axis.map(s=>t[s.direction.toLowerCase()]);if(i.every(Boolean)&&(s.axis=i.join(""),2===s.axis.length&&(s.axis+="u")),a.unit){let{units:t,to_meter:i}=G(a.unit);s.units=t,s.to_meter=i}else if(a.axis[0]&&a.axis[0].unit){let{units:t,to_meter:i}=G(a.axis[0].unit);s.units=t,s.to_meter=i}}break;case"id":a.authority&&a.code&&(s.title=a.authority+":"+a.code);break;case"conversion":a.method&&a.method.name&&(s.projName=a.method.name),a.parameters&&a.parameters.forEach(t=>{let i=t.name.toLowerCase().replace(/\s+/g,"_"),a=t.value;t.unit&&t.unit.conversion_factor?s[i]=a*t.unit.conversion_factor:"degree"===t.unit?s[i]=a*Math.PI/180:s[i]=a});break;case"unit":a.name&&(s.units=a.name.toLowerCase(),"metre"===s.units&&(s.units="meter")),a.conversion_factor&&(s.to_meter=a.conversion_factor);break;case"base_crs":A(a,s),s.datumCode=a.id?a.id.authority+"_"+a.id.code:a.name}}),void 0!==s.latitude_of_false_origin&&(s.lat0=s.latitude_of_false_origin),void 0!==s.longitude_of_false_origin&&(s.long0=s.longitude_of_false_origin),void 0!==s.latitude_of_standard_parallel&&(s.lat0=s.latitude_of_standard_parallel,s.lat1=s.latitude_of_standard_parallel),void 0!==s.latitude_of_1st_standard_parallel&&(s.lat1=s.latitude_of_1st_standard_parallel),void 0!==s.latitude_of_2nd_standard_parallel&&(s.lat2=s.latitude_of_2nd_standard_parallel),void 0!==s.latitude_of_projection_centre&&(s.lat0=s.latitude_of_projection_centre),void 0!==s.longitude_of_projection_centre&&(s.longc=s.longitude_of_projection_centre),void 0!==s.easting_at_false_origin&&(s.x0=s.easting_at_false_origin),void 0!==s.northing_at_false_origin&&(s.y0=s.northing_at_false_origin),void 0!==s.latitude_of_natural_origin&&(s.lat0=s.latitude_of_natural_origin),void 0!==s.longitude_of_natural_origin&&(s.long0=s.longitude_of_natural_origin),void 0!==s.longitude_of_origin&&(s.long0=s.longitude_of_origin),void 0!==s.false_easting&&(s.x0=s.false_easting),s.easting_at_projection_centre&&(s.x0=s.easting_at_projection_centre),void 0!==s.false_northing&&(s.y0=s.false_northing),s.northing_at_projection_centre&&(s.y0=s.northing_at_projection_centre),void 0!==s.standard_parallel_1&&(s.lat1=s.standard_parallel_1),void 0!==s.standard_parallel_2&&(s.lat2=s.standard_parallel_2),void 0!==s.scale_factor_at_natural_origin&&(s.k0=s.scale_factor_at_natural_origin),void 0!==s.scale_factor_at_projection_centre&&(s.k0=s.scale_factor_at_projection_centre),void 0!==s.scale_factor_on_pseudo_standard_parallel&&(s.k0=s.scale_factor_on_pseudo_standard_parallel),void 0!==s.azimuth&&(s.alpha=s.azimuth),void 0!==s.azimuth_at_projection_centre&&(s.alpha=s.azimuth_at_projection_centre),s.angle_from_rectified_to_skew_grid&&(s.rectified_grid_angle=s.angle_from_rectified_to_skew_grid),v(s)),s):t}E.prototype.readCharicter=function(){var t=this.text[this.place++];if(4!==this.state)for(;d.test(t);){if(this.place>=this.text.length)return;t=this.text[this.place++]}switch(this.state){case 1:return this.neutral(t);case 2:return this.keyword(t);case 4:return this.quoted(t);case 5:return this.afterquote(t);case 3:return this.number(t);case -1:return}},E.prototype.afterquote=function(t){if('"'===t){this.word+='"',this.state=4;return}if(m.test(t)){this.word=this.word.trim(),this.afterItem(t);return}throw Error("havn't handled \""+t+'" in afterquote yet, index '+this.place)},E.prototype.afterItem=function(t){if(","===t){null!==this.word&&this.currentObject.push(this.word),this.word=null,this.state=1;return}if("]"===t){this.level--,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=1,this.currentObject=this.stack.pop(),this.currentObject||(this.state=-1);return}},E.prototype.number=function(t){if(y.test(t)){this.word+=t;return}if(m.test(t)){this.word=parseFloat(this.word),this.afterItem(t);return}throw Error("havn't handled \""+t+'" in number yet, index '+this.place)},E.prototype.quoted=function(t){if('"'===t){this.state=5;return}this.word+=t},E.prototype.keyword=function(t){if(p.test(t)){this.word+=t;return}if("["===t){var s=[];s.push(this.word),this.level++,null===this.root?this.root=s:this.currentObject.push(s),this.stack.push(this.currentObject),this.currentObject=s,this.state=1;return}if(m.test(t))return void this.afterItem(t);throw Error("havn't handled \""+t+'" in keyword yet, index '+this.place)},E.prototype.neutral=function(t){if(f.test(t)){this.word=t,this.state=2;return}if('"'===t){this.word="",this.state=4;return}if(y.test(t)){this.word=t,this.state=3;return}if(m.test(t))return void this.afterItem(t);throw Error("havn't handled \""+t+'" in neutral yet, index '+this.place)},E.prototype.output=function(){for(;this.place<this.text.length;)this.readCharicter();if(-1===this.state)return this.root;throw Error('unable to parse string "'+this.text+'". State is '+this.state)};
1var N=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];function I(t){if("object"==typeof t)return A(t);let s=function(t){let s=t.toUpperCase();return s.includes("PROJCRS")||s.includes("GEOGCRS")||s.includes("BOUNDCRS")||s.includes("VERTCRS")||s.includes("LENGTHUNIT")||s.includes("ANGLEUNIT")||s.includes("SCALEUNIT")?"WKT2":(s.includes("PROJCS")||s.includes("GEOGCS")||s.includes("LOCAL_CS")||s.includes("VERT_CS")||s.includes("UNIT"),"WKT1")}(t);var i=new E(t).output();if("WKT2"===s)return A(function(t){return("2019"==(t.find(t=>Array.isArray(t)&&"USAGE"===t[0])?"2019":(t.find(t=>Array.isArray(t)&&"CS"===t[0])||"BOUNDCRS"===t[0]||"PROJCRS"===t[0]||t[0],"2015"))?g:M).convert(t)}(i));var a=i[0],e={};return x(i,e),!function t(s){for(var i=Object.keys(s),a=0,e=i.length;a<e;++a){var h=i[a];-1!==N.indexOf(h)&&function(t){if(t.AUTHORITY){var s=Object.keys(t.AUTHORITY)[0];s&&s in t.AUTHORITY&&(t.title=s+":"+t.AUTHORITY[s])}if("GEOGCS"===t.type?t.projName="longlat":"LOCAL_CS"===t.type?(t.projName="identity",t.local=!0):"object"==typeof t.PROJECTION?t.projName=Object.keys(t.PROJECTION)[0]:t.projName=t.PROJECTION,t.AXIS){for(var i="",a=0,e=t.AXIS.length;a<e;++a){var h=[t.AXIS[a][0].toLowerCase(),t.AXIS[a][1].toLowerCase()];-1!==h[0].indexOf("north")||("y"===h[0]||"lat"===h[0])&&"north"===h[1]?i+="n":-1!==h[0].indexOf("south")||("y"===h[0]||"lat"===h[0])&&"south"===h[1]?i+="s":-1!==h[0].indexOf("east")||("x"===h[0]||"lon"===h[0])&&"east"===h[1]?i+="e":(-1!==h[0].indexOf("west")||("x"===h[0]||"lon"===h[0])&&"west"===h[1])&&(i+="w")}2===i.length&&(i+="u"),3===i.length&&(t.axis=i)}t.UNIT&&(t.units=t.UNIT.name.toLowerCase(),"metre"===t.units&&(t.units="meter"),t.UNIT.convert&&("GEOGCS"===t.type?t.DATUM&&t.DATUM.SPHEROID&&(t.to_meter=t.UNIT.convert*t.DATUM.SPHEROID.a):t.to_meter=t.UNIT.convert));var r=t.GEOGCS;function n(s){return s*(t.to_meter||1)}"GEOGCS"===t.type&&(r=t),r&&(r.PRIMEM&&r.PRIMEM.convert&&(t.from_greenwich=S(r.PRIMEM.convert)),r.DATUM?t.datumCode=r.DATUM.name.toLowerCase():t.datumCode=r.name.toLowerCase(),"d_"===t.datumCode.slice(0,2)&&(t.datumCode=t.datumCode.slice(2)),"new_zealand_1949"===t.datumCode&&(t.datumCode="nzgd49"),("wgs_1984"===t.datumCode||"world_geodetic_system_1984"===t.datumCode)&&("Mercator_Auxiliary_Sphere"===t.PROJECTION&&(t.sphere=!0),t.datumCode="wgs84"),"belge_1972"===t.datumCode&&(t.datumCode="rnb72"),r.DATUM&&r.DATUM.SPHEROID&&(t.ellps=r.DATUM.SPHEROID.name.replace("_19","").replace(/[Cc]larke\_18/,"clrk"),"international"===t.ellps.toLowerCase().slice(0,13)&&(t.ellps="intl"),t.a=r.DATUM.SPHEROID.a,t.rf=parseFloat(r.DATUM.SPHEROID.rf)),r.DATUM&&r.DATUM.TOWGS84&&(t.datum_params=r.DATUM.TOWGS84),~t.datumCode.indexOf("osgb_1936")&&(t.datumCode="osgb36"),~t.datumCode.indexOf("osni_1952")&&(t.datumCode="osni52"),(~t.datumCode.indexOf("tm65")||~t.datumCode.indexOf("geodetic_datum_of_1965"))&&(t.datumCode="ire65"),"ch1903+"===t.datumCode&&(t.datumCode="ch1903"),~t.datumCode.indexOf("israel")&&(t.datumCode="isr93")),t.b&&!isFinite(t.b)&&(t.b=t.a),t.rectified_grid_angle&&(t.rectified_grid_angle=S(t.rectified_grid_angle)),[["standard_parallel_1","Standard_Parallel_1"],["standard_parallel_1","Latitude of 1st standard parallel"],["standard_parallel_2","Standard_Parallel_2"],["standard_parallel_2","Latitude of 2nd standard parallel"],["false_easting","False_Easting"],["false_easting","False easting"],["false-easting","Easting at false origin"],["false_northing","False_Northing"],["false_northing","False northing"],["false_northing","Northing at false origin"],["central_meridian","Central_Meridian"],["central_meridian","Longitude of natural origin"],["central_meridian","Longitude of false origin"],["latitude_of_origin","Latitude_Of_Origin"],["latitude_of_origin","Central_Parallel"],["latitude_of_origin","Latitude of natural origin"],["latitude_of_origin","Latitude of false origin"],["scale_factor","Scale_Factor"],["k0","scale_factor"],["latitude_of_center","Latitude_Of_Center"],["latitude_of_center","Latitude_of_center"],["lat0","latitude_of_center",S],["longitude_of_center","Longitude_Of_Center"],["longitude_of_center","Longitude_of_center"],["longc","longitude_of_center",S],["x0","false_easting",n],["y0","fal
1se_northing",n],["long0","central_meridian",S],["lat0","latitude_of_origin",S],["lat0","standard_parallel_1",S],["lat1","standard_parallel_1",S],["lat2","standard_parallel_2",S],["azimuth","Azimuth"],["alpha","azimuth",S],["srsCode","name"]].forEach(function(s){var i,a;return i=s[0],a=s[1],void(!(i in t)&&a in t&&(t[i]=t[a],3===s.length&&(t[i]=s[2](t[i]))))}),v(t)}(s[h]),"object"==typeof s[h]&&t(s[h])}}(e),e[a]}function C(t){var s=this;if(2==arguments.length){var i=arguments[1];"string"==typeof i?"+"===i.charAt(0)?C[t]=_(arguments[1]):C[t]=I(arguments[1]):!i||"object"!=typeof i||"projName"in i?(C[t]=i,i||delete C[t]):C[t]=I(arguments[1])}else if(1==arguments.length){if(Array.isArray(t))return t.map(function(t){return Array.isArray(t)?C.apply(s,t):C(t)});if("string"==typeof t){if(t in C)return C[t]}else"EPSG"in t?C["EPSG:"+t.EPSG]=t:"ESRI"in t?C["ESRI:"+t.ESRI]=t:"IAU2000"in t?C["IAU2000:"+t.IAU2000]=t:console.log(t);return}}!function(t){t("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),t("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),t("EPSG:3857","+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs");for(var s=1;s<=60;++s)t("EPSG:"+(32600+s),"+proj=utm +zone="+s+" +datum=WGS84 +units=m"),t("EPSG:"+(32700+s),"+proj=utm +zone="+s+" +south +datum=WGS84 +units=m");t("EPSG:5041","+title=WGS 84 / UPS North (E,N) +proj=stere +lat_0=90 +lon_0=0 +k=0.994 +x_0=2000000 +y_0=2000000 +datum=WGS84 +units=m"),t("EPSG:5042","+title=WGS 84 / UPS South (E,N) +proj=stere +lat_0=-90 +lon_0=0 +k=0.994 +x_0=2000000 +y_0=2000000 +datum=WGS84 +units=m"),t.WGS84=t["EPSG:4326"],t["EPSG:3785"]=t["EPSG:3857"],t.GOOGLE=t["EPSG:3857"],t["EPSG:900913"]=t["EPSG:3857"],t["EPSG:102113"]=t["EPSG:3857"]}(C);var R=["3857","900913","3785","102113"];let O=function(t){let s;if("string"==typeof t)if(t in C)s=C[t];else if((0===t.indexOf("+")||-1===t.indexOf("["))&&("object"!=typeof t||"srsCode"in t))"+"===t[0]&&(s=_(t));else{var i=function(t){var s=l(t,"extension");if(s)return l(s,"proj4")}(s=I(t));i&&(s=_(i))}else s="projName"in t?t:I(t);return s&&function(t){if(t.title)return 0===t.title.toLowerCase().indexOf("epsg:")&&R.indexOf(t.title.substr(5))>-1;var s=l(t,"authority");if(s){var i=l(s,"epsg");return i&&R.indexOf(i)>-1}}(s)?C["EPSG:3857"]:s};function k(t,s){var i,a;if(t=t||{},!s)return t;for(a in s)void 0!==(i=s[a])&&(t[a]=i);return t}function j(t,s,i){var a=t*s;return i/Math.sqrt(1-a*a)}function T(t){return t<0?-1:1}function q(t,s){return s||3.14159265359>=Math.abs(t)?t:t-T(t)*h}function L(t,s,i){var e=t*i;return Math.tan(.5*(a-s))/(e=Math.pow((1-e)/(1+e),.5*t))}function F(t,s){for(var i,e,h=.5*t,r=a-2*Math.atan(s),n=0;n<=15;n++)if(e=a-2*Math.atan(s*Math.pow((1-(i=t*Math.sin(r)))/(1+i),h))-r,r+=e,1e-10>=Math.abs(e))return r;return -9999}function B(t){return t}var U=["longlat","identity"],D=[{init:function(){var t=this.b/this.a;this.es=1-t*t,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=j(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)},forward:function(t){var s,i,h=t.x,r=t.y;if(57.29577951308232*r>90&&57.29577951308232*r<-90&&57.29577951308232*h>180&&57.29577951308232*h<-180||1e-10>=Math.abs(Math.abs(r)-a))return null;if(this.sphere)s=this.x0+this.a*this.k0*q(h-this.long0,this.over),i=this.y0+this.a*this.k0*Math.log(Math.tan(e+.5*r));else{var n=Math.sin(r),o=L(this.e,r,n);s=this.x0+this.a*this.k0*q(h-this.long0,this.over),i=this.y0-this.a*this.k0*Math.log(o)}return t.x=s,t.y=i,t},inverse:function(t){var s,i=t.x-this.x0,e=t.y-this.y0;if(this.sphere)s=a-2*Math.atan(Math.exp(-e/(this.a*this.k0)));else{var h=Math.exp(-e/(this.a*this.k0));if(-9999===(s=F(this.e,h)))return null}return t.x=q(this.long0+i/(this.a*this.k0),this.over),t.y=s,t},names:["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","Mercator_Variant_A","merc"]},{init:function(){},forward:B,inverse:B,names:U}],z={},W=[];function H(t,s){var i=W.length;
1return t.names?(W[i]=t,t.names.forEach(function(t){z[t.toLowerCase()]=i}),this):(console.log(s),!0)}function Q(t){return t.replace(/[-\(\)\s]+/g," ").trim().replace(/ /g,"_")}let X={MERIT:{a:6378137,rf:298.257,ellipseName:"MERIT 1983"},SGS85:{a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"},GRS80:{a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"},IAU76:{a:6378140,rf:298.257,ellipseName:"IAU 1976"},airy:{a:6377563.396,b:6356256.91,ellipseName:"Airy 1830"},APL4:{a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"},NWL9D:{a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"},mod_airy:{a:6377340.189,b:6356034.446,ellipseName:"Modified Airy"},andrae:{a:6377104.43,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"},aust_SA:{a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"},GRS67:{a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"},bessel:{a:6377397.155,rf:299.1528128,ellipseName:"Bessel 1841"},bess_nam:{a:6377483.865,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"},clrk66:{a:6378206.4,b:6356583.8,ellipseName:"Clarke 1866"},clrk80:{a:6378249.145,rf:293.4663,ellipseName:"Clarke 1880 mod."},clrk80ign:{a:6378249.2,b:6356515,rf:293.4660213,ellipseName:"Clarke 1880 (IGN)"},clrk58:{a:6378293.645208759,rf:294.2606763692654,ellipseName:"Clarke 1858"},CPM:{a:6375738.7,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"},delmbr:{a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"},engelis:{a:6378136.05,rf:298.2566,ellipseName:"Engelis 1985"},evrst30:{a:6377276.345,rf:300.8017,ellipseName:"Everest 1830"},evrst48:{a:6377304.063,rf:300.8017,ellipseName:"Everest 1948"},evrst56:{a:6377301.243,rf:300.8017,ellipseName:"Everest 1956"},evrst69:{a:6377295.664,rf:300.8017,ellipseName:"Everest 1969"},evrstSS:{a:6377298.556,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"},fschr60:{a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"},fschr60m:{a:6378155,rf:298.3,ellipseName:"Fischer 1960"},fschr68:{a:6378150,rf:298.3,ellipseName:"Fischer 1968"},helmert:{a:6378200,rf:298.3,ellipseName:"Helmert 1906"},hough:{a:6378270,rf:297,ellipseName:"Hough"},intl:{a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"},kaula:{a:6378163,rf:298.24,ellipseName:"Kaula 1961"},lerch:{a:6378139,rf:298.257,ellipseName:"Lerch 1979"},mprts:{a:6397300,rf:191,ellipseName:"Maupertius 1738"},new_intl:{a:6378157.5,b:6356772.2,ellipseName:"New International 1967"},plessis:{a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"},krass:{a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"},SEasia:{a:6378155,b:6356773.3205,ellipseName:"Southeast Asia"},walbeck:{a:6376896,b:6355834.8467,ellipseName:"Walbeck"},WGS60:{a:6378165,rf:298.3,ellipseName:"WGS 60"},WGS66:{a:6378145,rf:298.25,ellipseName:"WGS 66"},WGS7:{a:6378135,rf:298.26,ellipseName:"WGS 72"},WGS84:{a:6378137,rf:298.257223563,ellipseName:"WGS 84"},sphere:{a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"}},K=X.WGS84;var V={wgs84:{towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"},ch1903:{towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"},ggrs87:{towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"},nad83:{towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"},nad27:{nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"},potsdam:{towgs84:"598.1,73.7,418.2,0.202,0.045,-2.455,6.7",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"},carthage:{towgs84:"-263.0,6.0,431.0",ellipse:"clark80
vendor: 19,713 bytes, line 1
1",datumName:"Carthage 1934 Tunisia"},hermannskogel:{towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Hermannskogel"},mgi:{towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Militar-Geographische Institut"},osni52:{towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"airy",datumName:"Irish National"},ire65:{towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"},rassadiran:{towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"},nzgd49:{towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"},osgb36:{towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Ordnance Survey of Great Britain 1936"},s_jtsk:{towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"},beduaram:{towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"},gunung_segara:{towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"},rnb72:{towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",datumName:"Reseau National Belge 1972"},EPSG_5451:{towgs84:"6.41,-49.05,-11.28,1.5657,0.5242,6.9718,-5.7649"},IGNF_LURESG:{towgs84:"-192.986,13.673,-39.309,-0.4099,-2.9332,2.6881,0.43"},EPSG_4614:{towgs84:"-119.4248,-303.65872,-11.00061,1.164298,0.174458,1.096259,3.657065"},EPSG_4615:{towgs84:"-494.088,-312.129,279.877,-1.423,-1.013,1.59,-0.748"},ESRI_37241:{towgs84:"-76.822,257.457,-12.817,2.136,-0.033,-2.392,-0.031"},ESRI_37249:{towgs84:"-440.296,58.548,296.265,1.128,10.202,4.559,-0.438"},ESRI_37245:{towgs84:"-511.151,-181.269,139.609,1.05,2.703,1.798,3.071"},EPSG_4178:{towgs84:"24.9,-126.4,-93.2,-0.063,-0.247,-0.041,1.01"},EPSG_4622:{towgs84:"-472.29,-5.63,-304.12,0.4362,-0.8374,0.2563,1.8984"},EPSG_4625:{towgs84:"126.93,547.94,130.41,-2.7867,5.1612,-0.8584,13.8227"},EPSG_5252:{towgs84:"0.023,0.036,-0.068,0.00176,0.00912,-0.01136,0.00439"},EPSG_4314:{towgs84:"597.1,71.4,412.1,0.894,0.068,-1.563,7.58"},EPSG_4282:{towgs84:"-178.3,-316.7,-131.5,5.278,6.077,10.979,19.166"},EPSG_4231:{towgs84:"-83.11,-97.38,-117.22,0.005693,-0.044698,0.044285,0.1218"},EPSG_4274:{towgs84:"-230.994,102.591,25.199,0.633,-0.239,0.9,1.95"},EPSG_4134:{towgs84:"-180.624,-225.516,173.919,-0.81,-1.898,8.336,16.71006"},EPSG_4254:{towgs84:"18.38,192.45,96.82,0.056,-0.142,-0.2,-0.0013"},EPSG_4159:{towgs84:"-194.513,-63.978,-25.759,-3.4027,3.756,-3.352,-0.9175"},EPSG_4687:{towgs84:"0.072,-0.507,-0.245,0.0183,-0.0003,0.007,-0.0093"},EPSG_4227:{towgs84:"-83.58,-397.54,458.78,-17.595,-2.847,4.256,3.225"},EPSG_4746:{towgs84:"599.4,72.4,419.2,-0.062,-0.022,-2.723,6.46"},EPSG_4745:{towgs84:"612.4,77,440.2,-0.054,0.057,-2.797,2.55"},EPSG_6311:{towgs84:"8.846,-4.394,-1.122,-0.00237,-0.146528,0.130428,0.783926"},EPSG_4289:{towgs84:"565.7381,50.4018,465.2904,-0.395026,0.330772,-1.876073,4.07244"},EPSG_4230:{towgs84:"-68.863,-134.888,-111.49,-0.53,-0.14,0.57,-3.4"},EPSG_4154:{towgs84:"-123.02,-158.95,-168.47"},EPSG_4156:{towgs84:"570.8,85.7,462.8,4.998,1.587,5.261,3.56"},EPSG_4299:{towgs84:"482.5,-130.6,564.6,-1.042,-0.214,-0.631,8.15"},EPSG_4179:{towgs84:"33.4,-146.6,-76.3,-0.359,-0.053,0.844,-0.84"},EPSG_4313:{towgs84:"-106.8686,52.2978,-103.7239,0.3366,-0.457,1.8422,-1.2747"},EPSG_4194:{towgs84:"163.511,127.533,-159.789"},EPSG_4195:{towgs84:"105,326,-102.5"},EPSG_4196:{towgs84:"-45,417,-3.5"},EPSG_4611:{towgs84:"-162.619,-276.959,-161.764,0.067753,-2.243648,-1.158828,-1.094246"},EPSG_4633:{towgs84:"137.092,131.66,91.475,-1.9436,-11.5993,-4.3321,-7.4824"},EPSG_4641:{towgs84:"-408.809,366.856,-412.987,1.8842,-0.5308,2.1655,-121.0993"},EPSG_4643:{towgs84:"-480.26,-438.32,-643.429,16.3119,20.1721,-4.0349,-111.7002"},EPSG_4300:{towgs84:"482.5,-130.6,564.6,-1.042,-0.214,-0.631,8.15"},EPSG_4188:{towgs84:"482.5,-130.6,564.6,-1.042,-0.214,-0.631,8.15"},EPSG_4660:{towgs84:"982.6087,552.753,-540.873,6.681627,-31.611492,-19.848161,16.805"},EPSG_4662:{towgs84:"97.295,-263.247,310.882,-1.5999,0.8386,3.1409,13.3259"},EPSG_3906:{towgs84:"577.88891,165.22205,391.18289,4.9145,-0.94729,-13.05098,7.78664"},EPSG_4307:{towgs84:"-209.3622,-87.8162,404.6198,0.0046,3.4784,0.5805,-1.4547"},EPSG_6892:{towgs84:"-76.269,-16.683,68.562,-6.275,10.536,-4.286,-13.686"},EPSG_4690:{towgs84:"221.597,152.441,176.523,2.403,1.3893,0.884,11.4648"},EPSG_4691:{towgs84:"218.769,150.75,176.75,3.5231,2.0037,1.288,10.9817"},EPSG_4629:{towgs84:"72.51,345.411,79.241,-1.5862,-0.8826,-0.5495,1.3653"},EPSG_4630:{towgs84:"165.804,216.213,180.26,-0.6251,-0.4515,-0.0721,7.4111"},EPSG_4692:{towgs84:"217.109,86.452,23.711,0.0183,-0.0003,0.007,-0.0093"},EPSG_9333:{towgs84:"0,0,0,-0.008393,0.000749,-0.010276,0"},EPSG_9059:{towgs84:"0,0,0"},EPSG_4312:{towgs84:"601.705,84.263,485.227,4.7354,1.3145,5.393,-2.3887"},EPSG_4123:{towgs84:"-96.062,-82.428,-121.753,4.801,0.345,-1.376,1.496"},EPSG_4309:{towgs84:"-124.45,183.74,44.64,-0.4384,0.5446,-0.9706,-2.1365"},ESRI_104106:{towgs84:"-283.088,-70.693,117.445,-1.157,0.059,-0.652,-4.058"},EPSG_4281:{towgs84:"-219.247,-73.802,269.529"},EPSG_4322:{towgs84:"0,0,4.5"},EPSG_4324:{towgs84:"0,0,1.9"},EPSG_4284:{towgs84:"43.822,-108.842,-119.585,1.455,-0.761,0.737,0.549"},EPSG_4277:{towgs84:"446.448,-125.157,542.06,0.15,0.247,0.842,-20.489"},EPSG_4207:{towgs84:"-282.1,-72.2,120,-1.529,0.145,-0.89,-4.46"},EPSG_4688:{towgs84:"347.175,1077.618,2623.677,33.9058,-70.6776,9.4013,186.0647"},EPSG_4689:{towgs84:"410.793,54.542,80.501,-2.5596,-2.3517,-0.6594,17.3218"},EPSG_4720:{towgs84:"0,0,4.5"},EPSG_4273:{towgs84:"278.3,93,474.5,7.889,0.05,-6.61,6.21"},EPSG_4240:{towgs84:"204.64,834.74,293.8"},EPSG_4817:{towgs84:"278.3,93,474.5,7.889,0.05,-6.61,6.21"},ESRI_104131:{towgs84:"426.62,142.62,460.09,4.98,4.49,-12.42,-17.1"},EPSG_4265:{towgs84:"-104.1,-49.1,-9.9,0.971,-2.917,0.714,-11.68"},EPSG_4263:{towgs84:"-111.92,-87.85,114.5,1.875,0.202,0.219,0.032"},EPSG_4298:{towgs84:"-689.5937,623.84046,-65.93566,-0.02331,1.17094,-0.80054,5.88536"},EPSG_4270:{towgs84:"-253.4392,-148.452,386.5267,0.15605,0.43,-0.1013,-0.0424"},EPSG_4229:{towgs84:"-121.8,98.1,-10.7"},EPSG_4220:{towgs84:"-55.5,-348,-229.2"},EPSG_4214:{towgs84:"12.646,-155.176,-80.863"},EPSG_4232:{towgs84:"-345,3,223"},EPSG_4238:{towgs84:"-1.977,-13.06,-9.993,0.364,0.254,0.689,-1.037"},EPSG_4168:{towgs84:"-170,33,326"},EPSG_4131:{towgs84:"199,931,318.9"},EPSG_4152:{towgs84:"-0.9102,2.0141,0.5602,0.029039,0.010065,0.010101,0"},EPSG_5228:{towgs84:"572.213,85.334,461.94,4.9732,1.529,5.2484,3.5378"},EPSG_8351:{towgs84:"485.021,169.465,483.839,7.786342,4.397554,4.102655,0"},EPSG_4683:{towgs84:"-127.62,-67.24,-47.04,-3.068,4.903,1.578,-1.06"},EPSG_4133:{towgs84:"0,0,0"},EPSG_7373:{towgs84:"0.819,-0.5762,-1.6446,-0.00378,-0.03317,0.00318,0.0693"},EPSG_9075:{towgs84:"-0.9102,2.0141,0.5602,0.029039,0.010065,0.010101,0"},EPSG_9072:{towgs84:"-0.9102,2.0141,0.5602,0.029039,0.010065,0.010101,0"},EPSG_9294:{towgs84:"1.16835,-1.42001,-2.24431,-0.00822,-0.05508,0.01818,0.23388"},EPSG_4212:{towgs84:"-267.434,173.496,181.814,-13.4704,8.7154,7.3926,14.7492"},EPSG_4191:{towgs84:"-44.183,-0.58,-38.489,2.3867,2.7072,-3.5196,-8.2703"},EPSG_4237:{towgs84:"52.684,-71.194,-13.975,-0.312,-0.1063,-0.3729,1.0191"},EPSG_4740:{towgs84:"-1.08,-0.27,-0.9"},EPSG_4124:{towgs84:"419.3836,99.3335,591.3451,0.850389,1.817277,-7.862238,-0.99496"},EPSG_5681:{towgs84:"584.9636,107.7175,413.8067,1.1155,0.2824,-3.1384,7.9922"},EPSG_4141:{towgs84:"23.772,17.49,17.859,-0.3132,-1.85274,1.67299,-5.4262"},EPSG_4204:{towgs84:"-85.645,-273.077,-79.708,2.289,-1.421,2.532,3.194"},EPSG_4319:{towgs84:"226.702,-193.337,-35.371,-2.229,-4.391,9.238,0.9798"},EPSG_4200:{towgs84:"24.82,-131.21,-82.66"},EPSG_4130:{towgs84:"0,0,0"},EPSG_4127:{towgs84:"-82.875,-57.097,-156.768,-2.158,1.524,-0.982,-0.359"},EPSG_4149:{towgs84:"674.374,15.056,405.346"},EPSG_4617:{towgs84:"-0.991,1.9072,0.5129,0.02579,0.00965,0.01166,0"},EPSG_4663:{towgs84:"-210.502,-66.902,-48.476,2.094,-15.067,-5.817,0.485"},EPSG_4664:{towgs84:"-211.939,137.626,58.3,-0.089,0.251,0.079,0.384"},EPSG_4665:{towgs84:"-105.854,165.589,-38.312,-0.003,-0.026,0.024,-0.048"},EPSG_4666:{towgs84:"631.392,-66.551,481.442,1.09,-4.445,-4.487,-4.43"},EPSG_4756:{towgs84:"-192.873,-39.382,-111.202,-0.00205,-0.0005,0.00335,0.0188"},EPSG_4723:{towgs84:"-179.483,-69.379,-27.584,-7.862,8.163,6.042,-13.925"},EPSG_4726:{towgs84:"8.853,-52.644,180.304,-0.393,-2.323,2.96,-24.081"},EPSG_4267:{towgs84:"-8.0,160.0,176.0"},EPSG_5365:{towgs84:"-0.16959,0.35312,0.51846,0.03385,-0.16325,0.03446,0.03693"},EPSG_4218:{towgs84:"304.5,306.5,-318.1"},EPSG_4242:{towgs84:"-33.722,153.789,94.959,-8.581,-4.478,4.54,8.95"},EPSG_4216:{towgs84:"-292.295,248.758,429.447,4.9971,2.99,6.6906,1.0289"},ESRI_104105:{towgs84:"631.392,-66.551,481.442,1.09,-4.445,-4.487,-4.43"},ESRI_104129:{towgs84:"0,0,0"},EPSG_4673:{towgs84:"174.05,-25.49,112.57"},EPSG_4202:{towgs84:"-124,-60,154"},EPSG_4203:{towgs84:"-117.763,-51.51,139.061,0.292,0.443,0.277,-0.191"},EPSG_3819:{towgs84:"595.48,121.69,515.35,4.115,-2.9383,0.853,-3.408"},EPSG_8694:{towgs84:"-93.799,-132.737,-219.073,-1.844,0.648,-6.37,-0.169"},EPSG_4145:{towgs84:"275.57,676.78,229.6"},EPSG_4283:{towgs84:"0.06155,-0.01087,-0.04019,0.039492,0.032722,0.032898,-0.009994"},EPSG_4317:{towgs84:"2.3287,-147.0425,-92.0802,-0.309248,0.324822,0.497299,5.689063"},EPSG_4272:{towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993"},EPSG_4248:{towgs84:"-307.7,265.3,-363.5"},EPSG_5561:{towgs84:"24,-121,-76"},EPSG_5233:{towgs84:"-0.293,766.95,87.713,0.195704,1.695068,3.473016,-0.039338"},ESRI_104130:{towgs84:"-86,-98,-119"},ESRI_104102:{towgs84:"682,-203,480"},ESRI_37207:{towgs84:"7,-10,-26"},EPSG_4675:{towgs84:"59.935,118.4,-10.871"},ESRI_104109:{towgs84:"-89.121,-348.182,260.871"},ESRI_104112:{towgs84:"-185.583,-230.096,281.361"},ESRI_104113:{towgs84:"25.1,-275.6,222.6"},IGNF_WGS72G:{towgs84:"0,12,6"},IGNF_NTFG:{towgs84:"-168,-60,320"},IGNF_EFATE57G:{towgs84:"-127,-769,472"},IGNF_PGP50G:{towgs84:"324.8,153.6,172.1"},IGNF_REUN47G:{towgs84:"94,-948,-1262"},IGNF_CSG67G:{towgs84:"-186,230,110"},IGNF_GUAD48G:{towgs84:"-467,-16,-300"},IGNF_TAHI51G:{towgs84:"162,117,154"},IGNF_TAHAAG:{towgs84:"65,342,77"},IGNF_NUKU72G:{towgs84:"84,274,65"},IGNF_PETRELS72G:{towgs84:"365,194,166"},IGNF_WALL78G:{towgs84:"253,-133,-127"},IGNF_MAYO50G:{towgs84:"-382,-59,-262"},IGNF_TANNAG:{towgs84:"-139,-967,436"},IGNF_IGN72G:{towgs84:"-13,-348,292"},IGNF_ATIGG:{towgs84:"1118,23,66"},IGNF_FANGA84G:{towgs84:"150.57,158.33,118.32"},IGNF_RUSAT84G:{towgs84:"202.13,174.6,-15.74"},IGNF_KAUE70G:{towgs84:"126.74,300.1,-75.49"},IGNF_MOP90G:{towgs84:"-10.8,-1.8,12.77"},IGNF_MHPF67G:{towgs84:"338.08,212.58,-296.17"},IGNF_TAHI79G:{towgs84:"160.61,116.05,153.69"},IGNF_ANAA92G:{towgs84:"1.5,3.84,4.81"},IGNF_MARQUI72G:{towgs84:"330.91,-13.92,58.56"},IGNF_APAT86G:{towgs84:"143.6,197.82,74.05"},IGNF_TUBU69G:{towgs84:"237.17,171.61,-77.84"},IGNF_STPM50G:{towgs84:"11.363,424.148,373.13"},EPSG_4150:{towgs84:"674.374,15.056,405.346"},EPSG_4754:{towgs84:"-208.4058,-109.8777,-2.5764"},ESRI_104101:{towgs84:"372.87,149.23,585.29"},EPSG_4693:{towgs84:"0,-0.15,0.68"},EPSG_6207:{towgs84:"293.17,726.18,245.36"},EPSG_4153:{towgs84:"-133.63,-157.5,-158.62"},EPSG_4132:{towgs84:"-241.54,-163.64,396.06"},EPSG_4221:{towgs84:"-154.5,150.7,100.4"},EPSG_4266:{towgs84:"-80.7,-132.5,41.1"},EPSG_4193:{towgs84:"-70.9,-151.8,-41.4"},EPSG_5340:{towgs84:"-0.41,0.46,-0.35"},EPSG_4246:{towgs84:"-294.7,-200.1,525.5"},EPSG_4318:{towgs84:"-3.2,-5.7,2.8"},EPSG_4121:{towgs84:"-199.87,74.79,246.62"},EPSG_4223:{towgs84:"-260.1,5.5,432.2"},EPSG_4158:{towgs84:"-0.465,372.095,171.736"},EPSG_4285:{towgs84:"-128.16,-282.42,21.93"},EPSG_4613:{towgs84:"-404.78,685.68,45.47"},EPSG_4607:{towgs84:"195.671,332.517,274.607"},EPSG_4475:{towgs84:"-381.788,-57.501,-256.673"},EPSG_4208:{towgs84:"-157.84,308.54,-146.6"},EPSG_4743:{towgs84:"70.995,-335.916,262.898"},EPSG_4710:{towgs84:"-323.65,551.39,-491.22"},EPSG_7881:{towgs84:"-0.077,0.079,0.086"},EPSG_4682:{towgs84:"283.729,735.942,261.143"},EPSG_4739:{towgs84:"-156,-271,-189"},EPSG_4679:{towgs84:"-80.01,253.26,291.19"},EPSG_4750:{towgs84:"-56.263,16.136,-22.856"},EPSG_4644:{towgs84:"-10.18,-350.43,291.37"},EPSG_4695:{towgs84:"-103.746,-9.614,-255.95"},EPSG_4292:{towgs84:"-355,21,72"},EPSG_4302:{towgs84:"-61.702,284.488,472.052"},EPSG_4143:{towgs84:"-124.76,53,466.79"},EPSG_4606:{towgs84:"-153,153,307"},EPSG_4699:{towgs84:"-770.1,158.4,-498.2"},EPSG_4247:{towgs84:"-273.5,110.6,-357.9"},EPSG_4160:{towgs84:"8.88,184.86,106.69"},EPSG_4161:{towgs84:"-233.43,6.65,173.64"},EPSG_9251:{towgs84:"-9.5,122.9,138.2"},EPSG_9253:{towgs84:"-78.1,101.6,133.3"},EPSG_4297:{towgs84:"-198.383,-240.517,-107.909"},EPSG_4269:{towgs84:"0,0,0"},EPSG_4301:{towgs84:"-147,506,687"},EPSG_4618:{towgs84:"-59,-11,-52"},EPSG_4612:{towgs84:"0,0,0"},EPSG_4678:{towgs84:"44.585,-131.212,-39.544"},EPSG_4250:{towgs84:"-130,29,364"},EPSG_4144:{towgs84:"214,804,268"},EPSG_4147:{towgs84:"-17.51,-108.32,-62.39"},EPSG_4259:{towgs84:"-254.1,-5.36,-100.29"},EPSG_4164:{towgs84:"-76,-138,67"},EPSG_4211:{towgs84:"-378.873,676.002,-46.255"},EPSG_4182:{towgs84:"-422.651,-172.995,84.02"},EPSG_4224:{towgs84:"-143.87,243.37,-33.52"},EPSG_4225:{towgs84:"-205.57,168.77,-4.12"},EPSG_5527:{towgs84:"-67.35,3.88,-38.22"},EPSG_4752:{towgs84:"98,390,-22"},EPSG_4310:{towgs84:"-30,190,89"},EPSG_9248:{towgs84:"-192.26,65.72,132.08"},EPSG_4680:{towgs84:"124.5,-63.5,-281"},EPSG_4701:{towgs84:"-79.9,-158,-168.9"},EPSG_4706:{towgs84:"-146.21,112.63,4.05"},EPSG_4805:{towgs84:"682,-203,480"},EPSG_4201:{towgs84:"-165,-11,206"},EPSG_4210:{towgs84:"-157,-2,-299"},EPSG_4183:{towgs84:"-104,167,-38"},EPSG_4139:{towgs84:"11,72,-101"},EPSG_4668:{towgs84:"-86,-98,-119"},EPSG_4717:{towgs84:"-2,151,181"},EPSG_4732:{towgs84:"102,52,-38"},EPSG_4280:{towgs84:"-377,681,-50"},EPSG_4209:{towgs84:"-138,-105,-289"},EPSG_4261:{towgs84:"31,146,47"},EPSG_4658:{towgs84:"-73,46,-86"},EPSG_4721:{towgs84:"265.025,384.929,-194.046"},EPSG_4222:{towgs84:"-136,-108,-292"},EPSG_4601:{towgs84:"-255,-15,71"},EPSG_4602:{towgs84:"725,685,536"},EPSG_4603:{towgs84:"72,213.7,93"},EPSG_4605:{towgs84:"9,183,236"},EPSG_4621:{towgs84:"137,248,-430"},EPSG_4657:{towgs84:"-28,199,5"},EPSG_4316:{towgs84:"103.25,-100.4,-307.19"},EPSG_4642:{towgs84:"-13,-348,292"},EPSG_4698:{towgs84:"145,-187,103"},EPSG_4192:{towgs84:"-206.1,-174.7,-87.7"},EPSG_4311:{towgs84:"-265,120,-358"},EPSG_4135:{towgs84:"58,-283,-182"},ESRI_104138:{towgs84:"198,-226,-347"},EPSG_4245:{towgs84:"-11,851,5"},EPSG_4142:{towgs84:"-125,53,467"},EPSG_4213:{towgs84:"-106,-87,188"},EPSG_4253:{towgs84:"-133,-77,-51"},EPSG_4129:{towgs84:"-132,-110,-335"},EPSG_4713:{towgs84:"-77,-128,142"},EPSG_4239:{towgs84:"217,823,299"},EPSG_4146:{towgs84:"295,736,257"},EPSG_4155:{towgs84:"-83,37,124"},EPSG_4165:{towgs84:"-173,253,27"},EPSG_4672:{towgs84:"175,-38,113"},EPSG_4236:{towgs84:"-637,-549,-203"},EPSG_4251:{towgs84:"-90,40,88"},EPSG_4271:{towgs84:"-2,374,172"},EPSG_4175:{towgs84:"-88,4,101"},EPSG_4716:{towgs84:"298,-304,-375"},EPSG_4315:{towgs84:"-23,259,-9"},EPSG_4744:{towgs84:"-242.2,-144.9,370.3"},EPSG_4244:{towgs84:"-97,787,86"},EPSG_4293:{towgs84:"616,97,-251"},EPSG_4714:{towgs84:"-127,-769,472"},EPSG_4736:{towgs84:"260,12,-147"},EPSG_6883:{towgs84:"-235,-110,393"},EPSG_6894:{towgs84:"-63,176,185"},EPSG_4205:{towgs84:"-43,-163,45"},EPSG_4256:{towgs84:"41,-220,-134"},EPSG_4262:{towgs84:"639,405,60"},EPSG_4604:{towgs84:"174,359,365"},EPSG_4169:{towgs84:"-115,118,426"},EPSG_4620:{towgs84:"-106,-129,165"},EPSG_4184:{towgs84:"-203,141,53"},EPSG_4616:{towgs84:"-289,-124,60"},EPSG_9403:{towgs84:"-307,-92,127"},EPSG_4684:{towgs84:"-133,-321,50"},EPSG_4708:{towgs84:"-491,-22,435"},EPSG_4707:{towgs84:"114,-116,-333"},EPSG_4709:{towgs84:"145,75,-272"},EPSG_4712:{towgs84:"-205,107,53"},EPSG_4711:{towgs84:"124,-234,-25"},EPSG_4718:{towgs84:"230,-199,-752"},EPSG_4719:{towgs84:"211,147,111"},EPSG_4724:{towgs84:"208,-435,-229"},EPSG_4725:{towgs84:"189,-79,-202"},EPSG_4735:{towgs84:"647,1777,-1124"},EPSG_4722:{towgs84:"-794,119,-298"},EPSG_4728:{towgs84:"-307,-92,127"},EPSG_4734:{towgs84:"-632,438,-609"},EPSG_4727:{towgs84:"912,-58,1227"},EPSG_4729:{towgs84:"185,165,42"},EPSG_4730:{towgs84:"170,42,84"},EPSG_4733:{towgs84:"276,-57,149"},ESRI_37218:{towgs84:"230,-199,-752"},ESRI_37240:{towgs84:"-7,215,225"},ESRI_37221:{towgs84:"252,-209,-751"},ESRI_4305:{towgs84:"-123,-206,219"},ESRI_104139:{towgs84:"-73,-247,227"},EPSG_4748:{towgs84:"51,391,-36"},EPSG_4219:{towgs84:"-384,664,-48"},EPSG_4255:{towgs84:"-333,-222,114"},EPSG_4257:{towgs84:"-587.8,519.75,145.76"},EPSG_4646:{towgs84:"-963,510,-359"},EPSG_6881:{towgs84:"-24,-203,268"},EPSG_6882:{towgs84:"-183,-15,273"},EPSG_4715:{towgs84:"-104,-129,239"},IGNF_RGF93GDD:{towgs84:"0,0,0"},IGNF_RGM04GDD:{towgs84:"0,0,0"},IGNF_RGSPM06GDD:{towgs84:"0,0,0"},IGNF_RGTAAF07GDD:{towgs84:"0,0,0"},IGNF_RGFG95GDD:{towgs84:"0,0,0"},IGNF_RGNCG:{towgs84:"0,0,0"},IGNF_RGPFGDD:{towgs84:"0,0,0"},IGNF_ETRS89G:{towgs84:"0,0,0"},IGNF_RGR92GDD:{towgs84:"0,0,0"},EPSG_4173:{towgs84:"0,0,0"},EPSG_4180:{towgs84:"0,0,0"},EPSG_4619:{towgs84:"0,0,0"},EPSG_4667:{towgs84:"0,0,0"},EPSG_4075:{towgs84:"0,0,0"},EPSG_6706:{towgs84:"0,0,0"},EPSG_7798:{towgs84:"0,0,0"},EPSG_4661:{towgs84:"0,0,0"},EPSG_4669:{towgs84:"0,0,0"},EPSG_8685:{towgs84:"0,0,0"},EPSG_4151:{towgs84:"0,0,0"},EPSG_9702:{towgs84:"0,0,0"},EPSG_4758:{towgs84:"0,0,0"},EPSG_4761:{towgs84:"0,0,0"},EPSG_4765:{towgs84:"0,0,0"},EPSG_8997:{towgs84:"0,0,0"},EPSG_4023:{towgs84:"0,0,0"},EPSG_4670:{towgs84:"0,0,0"},EPSG_4694:{towgs84:"0,0,0"},EPSG_4148:{towgs84:"0,0,0"},EPSG_4163:{towgs84:"0,0,0"},EPSG_4167:{towgs84:"0,0,0"},EPSG_4189:{towgs84:"0,0,0"},EPSG_4190:{towgs84:"0,0,0"},EPSG_4176:{towgs84:"0,0,0"},EPSG_4659:{towgs84:"0,0,0"},EPSG_3824:{towgs84:"0,0,0"},EPSG_3889:{towgs84:"0,0,0"},EPSG_4046:{towgs84:"0,0,0"},EPSG_4081:{towgs84:"0,0,0"},EPSG_4558:{towgs84:"0,0,0"},EPSG_4483:{towgs84:"0,0,0"},EPSG_5013:{towgs84:"0,0,0"},EPSG_5264:{towgs84:"0,0,0"},EPSG_5324:{towgs84:"0,0,0"},EPSG_5354:{towgs84:"0,0,0"},EPSG_5371:{towgs84:"0,0,0"},EPSG_5373:{towgs84:"0,0,0"},EPSG_5381:{towgs84:"0,0,0"},EPSG_5393:{towgs84:"0,0,0"},EPSG_5489:{towgs84:"0,0,0"},EPSG_5593:{towgs84:"0,0,0"},EPSG_6135:{towgs84:"0,0,0"},EPSG_6365:{towgs84:"0,0,0"},EPSG_5246:{towgs84:"0,0,0"},EPSG_7886:{towgs84:"0,0,0"},EPSG_8431:{towgs84:"0,0,0"},EPSG_8427:{towgs84:"0,0,0"},EPSG_8699:{towgs84:"0,0,0"},EPSG_8818:{towgs84:"0,0,0"},EPSG_4757:{towgs84:"0,0,0"},EPSG_9140:{towgs84:"0,0,0"},EPSG_8086:{towgs84:"0,0,0"},EPSG_4686:{towgs84:"0,0,0"},EPSG_4737:{towgs84:"0,0,0"},EPSG_4702:{towgs84:"0,0,0"},EPSG_4747:{towgs84:"0,0,0"},EPSG_4749:{towgs84:"0,0,0"},EPSG_4674:{towgs84:"0,0,0"},EPSG_4755:{towgs84:"0,0,0"},EPSG_4759:{towgs84:"0,0,0"},EPSG_4762:{towgs84:"0,0,0"},EPSG_4763:{towgs84:"0,0,0"},EPSG_4764:{towgs84:"0,0,0"},EPSG_4166:{towgs84:"0,0,0"},EPSG_4170:{towgs84:"0,0,0"},EPSG_5546:{towgs84:"0,0,0"},EPSG_7844:{towgs84:"0,0,0"},EPSG_4818:{towgs84:"589,76,480"},EPSG_10328:{towgs84:"0,0,0"},EPSG_9782:{towgs84:"0,0,0"},EPSG_9777:{towgs84:"0,0,0"},EPSG_10690:{towgs84:"0,0,0"},EPSG_10639:{towgs84:"0,0,0"},EPSG_10739:{towgs84:"0,0,0"},EPSG_7686:{towgs84:"0,0,0"},EPSG_8900:{towgs84:"0,0,0"},EPSG_5886:{towgs84:"0,0,0"},EPSG_7683:{towgs84:"0,0,0"},EPSG_6668:{towgs84:"0,0,0"},EPSG_20046:{towgs84:"0,0,0"},EPSG_10299:{towgs84:"0,0,0"},EPSG_10310:{towgs84:"0,0,0"},EPSG_10475:{towgs84:"0,0,0"},EPSG_4742:{towgs84:"0,0,0"},EPSG_10671:{towgs84:"0,0,0"},EPSG_10762:{towgs84:"0,0,0"},EPSG_10725:{towgs84:"0,0,0"},EPSG_10791:{towgs84:"0,0,0"},EPSG_10800:{towgs84:"0,0,0"},EPSG_10305:{towgs84:"0,0,0"},EPSG_10941:{towgs84:"0,0,0"},EPSG_10968:{towgs84:"0,0,0"},EPSG_10875:{towgs84:"0,0,0"},EPSG_6318:{towgs84:"0,0,0"},EPSG_10910:{towgs84:"0,0,0"}};for(var 
1J in V){var Y=V[J];Y.datumName&&(V[Y.datumName]=Y)}let $=function(t,s,i,a,e,h,r){var n={};return void 0===t||"none"===t?n.datum_type=5:n.datum_type=4,s&&(n.datum_params=s.map(parseFloat),(0!==n.datum_params[0]||0!==n.datum_params[1]||0!==n.datum_params[2])&&(n.datum_type=1),n.datum_params.length>
13&&(0!==n.datum_params[3]||0!==n.datum_params[4]||0!==n.datum_params[5]||0!==n.datum_params[6])&&(n.datum_type=2,n.datum_params[3]*=484813681109536e-20,n.datum_params[4]*=484813681109536e-20,n.datum_params[5]*=484813681109536e-20,n.datum_params[6]=n.datum_params[6]/1e6+1)),r&&(n.datum_type=3,n.grids=r),n.a=i,n.b=a,n.es=e,n.ep2=h,n};var Z={};async function tt(t,s){for(var i=[],a=await s.getImageCount(),e=a-1;e>=0;e--){var h=await s.getImage(e),r=await h.readRasters(),n=[h.getWidth(),h.getHeight()],o=h.getBoundingBox().map(ti),l=[h.fileDirectory.ModelPixelScale[0],h.fileDirectory.ModelPixelScale[1]].map(ti),_=o[0]+(n[0]-1)*l[0],c=o[3]-(n[1]-1)*l[1],u=r[0],M=r[1],g=[];for(let t=n[1]-1;t>=0;t--)for(let s=n[0]-1;s>=0;s--){var d=t*n[0]+s;g.push([-ta(M[d]),ta(u[d])])}i.push({del:l,lim:n,ll:[-_,c],cvs:g})}var f={header:{nSubgrids:a},subgrids:i};return Z[t]=f,f}function ts(t){if(0===t.length)return null;var s="@"===t[0];return(s&&(t=t.slice(1)),"null"===t)?{name:"null",mandatory:!s,grid:null,isNull:!0}:{name:t,mandatory:!s,grid:Z[t]||null,isNull:!1}}function ti(t){return t*Math.PI/180}function ta(t){return t/3600*Math.PI/180}function te(t,s,i){return String.fromCharCode.apply(null,new Uint8Array(t.buffer.slice(s,i)))}function th(t,s){if(!(this instanceof th))return new th(t);this.forward=null,this.inverse=null,this.init=null,this.name,this.names=null,this.title,s=s||function(t){if(t)throw t};var i,a,e,h,r,n,o,_,c=O(t);if("object"!=typeof c)return void s("Could not parse to valid json: "+t);var u=th.projections.get(c.projName);if(!u)return void s("Could not get projection name from: "+t);if(c.datumCode&&"none"!==c.datumCode){var M=l(V,c.datumCode);M&&(c.datum_params=c.datum_params||(M.towgs84?M.towgs84.split(","):null),c.ellps=M.ellipse,c.datumName=M.datumName?M.datumName:c.datumCode)}c.k0=c.k0||1,c.axis=c.axis||"enu",c.ellps=c.ellps||"wgs84",c.lat1=c.lat1||c.lat0;var g=function(t,s,i,a,e){if(!t){var h=l(X,a);h||(h=K),t=h.a,s=h.b,i=h.rf}return i&&!s&&(s=(1-1/i)*t),(0===i||1e-10>Math.abs(t-s))&&(e=!0,s=t),{a:t,b:s,rf:i,sphere:e}}(c.a,c.b,c.rf,c.ellps,c.sphere),d=(i=g.a,a=g.b,g.rf,e=c.R_A,n=((h=i*i)-(r=a*a))/h,o=0,e?(i*=1-n*(.16666666666666666+n*(.04722222222222222+.022156084656084655*n)),h=i*i,n=0):o=Math.sqrt(n),{es:n,e:o,ep2:(h-r)/r}),f=void 0===(_=c.nadgrids)?null:_.split(",").map(ts),p=c.datum||$(c.datumCode,c.datum_params,g.a,g.b,d.es,d.ep2,f);k(this,c),k(this,u),this.a=g.a,this.b=g.b,this.rf=g.rf,this.sphere=g.sphere,this.es=d.es,this.e=d.e,this.ep2=d.ep2,this.datum=p,"init"in this&&"function"==typeof this.init&&this.init(),s(null,this)}function tr(t,s,i){var e,h,r,n=t.x,o=t.y,l=t.z?t.z:0;if(o<-a&&o>-1.001*a)o=-a;else if(o>a&&o<1.001*a)o=a;else if(o<-a)return{x:-1/0,y:-1/0,z:t.z};else if(o>a)return{x:1/0,y:1/0,z:t.z};return n>Math.PI&&(n-=2*Math.PI),h=Math.sin(o),r=Math.cos(o),{x:((e=i/Math.sqrt(1-h*h*s))+l)*r*Math.cos(n),y:(e+l)*r*Math.sin(n),z:(e*(1-s)+l)*h}}function tn(t,s,i,a){var e,h,r,n,o,l,_,c,u,M,g,d,f,p,m,y=1e-12*1e-12,E=t.x,w=t.y,x=t.z?t.z:0;if(e=Math.sqrt(E*E+w*w),h=Math.sqrt(E*E+w*w+x*x),e/i<1e-12){if(p=0,h/i<1e-12)return m=-a,{x:t.x,y:t.y,z:t.z}}else p=Math.atan2(w,E);r=x/h,o=1/Math.sqrt(1-s*(2-s)*(n=e/h)*n),c=n*(1-s)*o,u=r*o,f=0;do f++,_=i/Math.sqrt(1-s*u*u),m=e*c+x*u-_*(1-s*u*u),o=1/Math.sqrt(1-(l=s*_/(_+m))*(2-l)*n*n),M=n*(1-l)*o,d=(g=r*o)*c-M*u,c=M,u=g;while(d*d>y&&f<30);return{x:p,y:Math.atan(g/Math.abs(M)),z:m}}function to(t){return 1===t||2===t}function tl(t,s,i){if(null===t.grids||0===t.grids.length)return console.log("Grid shift grids not found"),-1;var a={x:-i.x,y:i.y},e={x:NaN,y:NaN},h=[];t:for(var r=0;r<t.grids.length;r++){var n=t.grids[r];if(h.push(n.name),n.isNull){e=a;break}if(null===n.grid){if(n.mandatory)return console.log("Unable to find mandatory grid '"+n.name+"'"),-1;continue}for(var o=n.grid.subgrids,l=0,_=o.length;l<_;l++){var c=o[l],u=(Math.abs(c.del[1])+Math.abs(c.del[0]))/1e4,M=c.ll[0]-u,g=c.ll[1]-u,d=c.ll[0]+(c.lim[0]-1)*c.del[0]+u,f=c.ll[1]+(c.lim[1]-1)*c.del[1]+u;if(!(g>a.y)&&!(M>a.x)&&!(f<a.y)&&!(d<a.x)&&!isNaN((e=function(t,s,i){var a={x:NaN,y:NaN};if(isNaN(t.x))return a;var e={x:t.x,y:t.y};e.x-=i.ll[0],e.y-=i.ll[1],e.x=q(e.x-Math.PI)+Math.PI;var h=t_(e,i);if(s){if(isNaN(h.x))return a;h.x=e.x-h.x,h.y=e.y-h.y;var r,n,o=9;do{if(isNaN((n=t_(h,i)).x)){console.log("Inverse grid shift iteration failed, presumably at grid edge.  Using first approximation.");break}r={x:e.x-(n.x+h.x),y:e.y-(n.y+h.y)},h.x+=r.x,h.y+=r.y}while(o--&&Math.abs(r.x)>1e-12&&Math.abs(r.y)>1e-12);if(o<0)return console.log("Inverse grid shift iterator failed to converge."),a;a.x=q(h.x+i.ll[0]),a.y=h.y+i.ll[1]}else isNaN(h.x)||(a.x=t.x+h.x,a.y=t.y+h.y);return a}(a,s,c)).x))break t}}return isNaN(e.x)?(console.log("Failed to find a grid shift table for location '"+-(57.29577951308232*a.x)+" "+57.29577951308232*a.y+" tried: '"+h+"'"),-1):(i.x=-e.x,i.y=e.y,0)}function t_(t,s){var i,a={x:t.x/s.del[0],y:t.y/s.del[1]},e={x:Math.floor(a.x),y:Math.floor(a.y)},h={x:a.x-e.x,y:a.y-e.y},r={x:NaN,y:NaN};if(e.x<0||e.x>=s.lim[0]||e.y<0||e.y>=s.lim[1])return r;i=e.y*s.lim[0]+e.x;var n={x:s.cvs[i][0],y:s.cvs[i][1]};i++;var o={x:s.cvs[i][0],y:s.cvs[i][1]};i+=s.lim[0];var l={x:s.cvs[i][0],y:s.cvs[i][1]};i--;var _={x:s.cvs[i][0],y:s.cvs[i][1]},c=h.x*h.y,u=h.x*(1-h.y),M=(1-h.x)*(1-h.y),g=(1-h.x)*h.y;return r.x=M*n.x+u*o.x+g*_.x+c*l.x,r.y=M*n.y+u*o.y+g*_.y+c*l.y,r}function tc(t,s,i){var a,e,h,r=i.x,n=i.y,o=i.z||0,l={};for(h=0;h<3;h++)if(!s||2!==h||void 0!==i.z)switch(0===h?(a=r,e=-1!=="ew".indexOf(t.axis[h])?"x":"y"):1===
1h?(a=n,e=-1!=="ns".indexOf(t.axis[h])?"y":"x"):(a=o,e="z"),t.axis[h]){case"e":case"n":l[e]=a;break;case"w":case"s":l[e]=-a;break;case"u":void 0!==i[e]&&(l.z=a);break;case"d":void 0!==i[e]&&(l.z=-a);break;default:return null}return l}function tu(t){var s={x:t[0],y:t[1]};return t.length>2&&(s.z=t[2]),t.length>3&&(s.m=t[3]),s}function tM(t){if("function"==typeof Number.isFinite){if(Number.isFinite(t))return;throw TypeError("coordinates must be finite numbers")}if("number"!=typeof t||t!=t||!isFinite(t))throw TypeError("coordinates must be finite numbers")}function tg(t,s,i,a){var e,h,r,n=void 0!==(i=Array.isArray(i)?tu(i):{x:i.x,y:i.y,z:i.z,m:i.m}).z;if(tM((e=i).x),tM(e.y),t.datum&&s.datum&&((1===(h=t).datum.datum_type||2===h.datum.datum_type||3===h.datum.datum_type)&&"WGS84"!==s.datumCode||(1===s.datum.datum_type||2===s.datum.datum_type||3===s.datum.datum_type)&&"WGS84"!==h.datumCode)&&(i=tg(t,r=new th("WGS84"),i,a),t=r),a&&"enu"!==t.axis&&(i=tc(t,!1,i)),"longlat"===t.projName)i={x:.017453292519943295*i.x,y:.017453292519943295*i.y,z:i.z||0};else if(t.to_meter&&(i={x:i.x*t.to_meter,y:i.y*t.to_meter,z:i.z||0}),!(i=t.inverse(i)))return;if(t.from_greenwich&&(i.x+=t.from_greenwich),i=function(t,s,i){if(a=t,e=s,!(a.datum_type!==e.datum_type||a.a!==e.a||Math.abs(a.es-e.es)>5e-11)&&(1===a.datum_type?a.datum_params[0]===e.datum_params[0]&&a.datum_params[1]===e.datum_params[1]&&a.datum_params[2]===e.datum_params[2]:2!==a.datum_type||a.datum_params[0]===e.datum_params[0]&&a.datum_params[1]===e.datum_params[1]&&a.datum_params[2]===e.datum_params[2]&&a.datum_params[3]===e.datum_params[3]&&a.datum_params[4]===e.datum_params[4]&&a.datum_params[5]===e.datum_params[5]&&a.datum_params[6]===e.datum_params[6])||5===t.datum_type||5===s.datum_type)return i;var a,e,h=t.a,r=t.es;if(3===t.datum_type){if(0!==tl(t,!1,i))return;h=6378137,r=.0066943799901413165}var n=s.a,o=s.b,l=s.es;if(3===s.datum_type&&(n=6378137,o=6356752.314,l=.0066943799901413165),r===l&&h===n&&!to(t.datum_type)&&!to(s.datum_type)||(i=tr(i,r,h),to(t.datum_type)&&(i=function(t,s,i){if(1===s)return{x:t.x+i[0],y:t.y+i[1],z:t.z+i[2]};if(2===s){var a=i[0],e=i[1],h=i[2],r=i[3],n=i[4],o=i[5],l=i[6];return{x:l*(t.x-o*t.y+n*t.z)+a,y:l*(o*t.x+t.y-r*t.z)+e,z:l*(-n*t.x+r*t.y+t.z)+h}}}(i,t.datum_type,t.datum_params)),to(s.datum_type)&&(i=function(t,s,i){if(1===s)return{x:t.x-i[0],y:t.y-i[1],z:t.z-i[2]};if(2===s){var a=i[0],e=i[1],h=i[2],r=i[3],n=i[4],o=i[5],l=i[6],_=(t.x-a)/l,c=(t.y-e)/l,u=(t.z-h)/l;return{x:_+o*c-n*u,y:-o*_+c+r*u,z:n*_-r*c+u}}}(i,s.datum_type,s.datum_params)),i=tn(i,l,n,o),3!==s.datum_type||0===tl(s,!0,i)))return i}(t.datum,s.datum,i))return(s.from_greenwich&&(i={x:i.x-s.from_greenwich,y:i.y,z:i.z||0}),"longlat"===s.projName?i={x:57.29577951308232*i.x,y:57.29577951308232*i.y,z:i.z||0}:(i=s.forward(i),s.to_meter&&(i={x:i.x/s.to_meter,y:i.y/s.to_meter,z:i.z||0})),a&&"enu"!==s.axis)?tc(s,!0,i):(i&&!n&&"geocent"!==s.projName&&delete i.z,i)}th.projections={start:function(){D.forEach(H)},add:H,get:function(t){if(!t)return!1;var s=t.toLowerCase();if(void 0!==z[s]&&W[z[s]]||(s=Q(s))in z&&W[z[s]])return W[z[s]]}},th.projections.start();var td=th("WGS84");function tf(t,s,i,a){var e,h,r;if(Array.isArray(i))return(e=tg(t,s,i,a)||{x:NaN,y:NaN},i.length>2)?(void 0===t.name||"geocent"!==t.name)&&(void 0===s.name||"geocent"!==s.name)?[e.x,e.y].concat(i.slice(2)):"number"==typeof e.z?[e.x,e.y,e.z].concat(i.slice(3)):[e.x,e.y,i[2]].concat(i.slice(3)):[e.x,e.y];return h=tg(t,s,i,a),2===(r=Object.keys(i)).length||r.forEach(function(a){if(void 0!==t.name&&"geocent"===t.name||void 0!==s.name&&"geocent"===s.name){if("x"===a||"y"===a||"z"===a)return}else if("x"===a||"y"===a)return;h[a]=i[a]}),h}function tp(t){return t instanceof th?t:"object"==typeof t&&"oProj"in t?t.oProj:th(t)}var tm="AJSAJS",ty="AFAFAF";function tE(t,s){var i,a,e,h,r,n,o,l,_,c,u,M,g,d,f;return s=s||5,i=function(t){var s,i,a,e,h,r,n,o,l=t.lat,_=t.lon,c=tx(l),u=tx(_);o=Math.floor((_+180)/6)+1,180===_&&(o=60),l>=56&&l<64&&_>=3&&_<12&&(o=32),l>=72&&l<84&&(_>=0&&_<9?o=31:_>=9&&_<21?o=33:_>=21&&_<33?o=35:_>=33&&_<42&&(o=37)),n=tx((o-1)*6-180+3),a=6378137/Math.sqrt(1-.00669438*Math.sin(c)*Math.sin(c)),e=Math.tan(c)
1*Math.tan(c),h=.006739496752268451*Math.cos(c)*Math.cos(c);var M=.9996*a*((r=Math.cos(c)*(u-n))+(1-e+h)*r*r*r/6+(5-18*e+e*e+72*h-.39089081163157013)*r*r*r*r*r/120)+5e5,g=.9996*(6378137*(.9983242984503243*c-.002514607064228144*Math.sin(2*c)+2639046602129982e-21*Math.sin(4*c)-3418046101696858e-24*Math.sin(6*c))+a*Math.tan(c)*(r*r/2+(5-e+9*h+4*h*h)*r*r*r*r/24+(61-58*e+e*e+600*h-2.2240339282485886)*r*r*r*r*r*r/720));return l<0&&(g+=1e7),{northing:Math.round(g),easting:Math.round(M),zoneNumber:o,zoneLetter:(i="Z",84>=(s=l)&&s>=72?i="X":72>s&&s>=64?i="W":64>s&&s>=56?i="V":56>s&&s>=48?i="U":48>s&&s>=40?i="T":40>s&&s>=32?i="S":32>s&&s>=24?i="R":24>s&&s>=16?i="Q":16>s&&s>=8?i="P":8>s&&s>=0?i="N":0>s&&s>=-8?i="M":-8>s&&s>=-16?i="L":-16>s&&s>=-24?i="K":-24>s&&s>=-32?i="J":-32>s&&s>=-40?i="H":-40>s&&s>=-48?i="G":-48>s&&s>=-56?i="F":-56>s&&s>=-64?i="E":-64>s&&s>=-72?i="D":-72>s&&s>=-80&&(i="C"),i)}}({lat:t[1],lon:t[0]}),a=s,e="00000"+i.easting,h="00000"+i.northing,i.zoneNumber+i.zoneLetter+(r=i.easting,n=i.northing,o=i.zoneNumber,l=Math.floor(r/1e5),_=Math.floor(n/1e5)%20,c=tG(o)-1,u=tm.charCodeAt(c),M=ty.charCodeAt(c),g=u+l-1,d=M+_,f=!1,g>90&&(g=g-90+65-1,f=!0),(73===g||u<73&&g>73||(g>73||u<73)&&f)&&g++,(79===g||u<79&&g>79||(g>79||u<79)&&f)&&73==++g&&g++,g>90&&(g=g-90+65-1),d>86?(d=d-86+65-1,f=!0):f=!1,(73===d||M<73&&d>73||(d>73||M<73)&&f)&&d++,(79===d||M<79&&d>79||(d>79||M<79)&&f)&&73==++d&&d++,d>86&&(d=d-86+65-1),String.fromCharCode(g)+String.fromCharCode(d))+e.substr(e.length-5,a)+h.substr(h.length-5,a)}function tw(t){var s=tv(tP(t.toUpperCase()));return s.lat&&s.lon?[s.lon,s.lat]:[(s.left+s.right)/2,(s.top+s.bottom)/2]}function tx(t){return Math.PI/180*t}function tS(t){return t/Math.PI*180}function tv(t){var s,i,a,e,h,r,n,o,l=t.northing,_=t.easting,c=t.zoneLetter,u=t.zoneNumber;if(u<0||u>60)return null;var M=(1-Math.sqrt(.99330562))/(1+Math.sqrt(.99330562)),g=l;c<"N"&&(g-=1e7),s=6378137/Math.sqrt(1-.00669438*Math.sin(n=(r=g/.9996/6367449.145945056)+(3*M/2-27*M*M*M/32)*Math.sin(2*r)+(21*M*M/16-55*M*M*M*M/32)*Math.sin(4*r)+151*M*M*M/96*Math.sin(6*r))*Math.sin(n)),i=Math.tan(n)*Math.tan(n),a=.006739496752268451*Math.cos(n)*Math.cos(n),e=6335439.32722994/Math.pow(1-.00669438*Math.sin(n)*Math.sin(n),1.5),h=(_-5e5)/(.9996*s);var d=n-s*Math.tan(n)/e*(h*h/2-(5+3*i+10*a-4*a*a-.06065547077041606)*h*h*h*h/24+(61+90*i+298*a+45*i*i-1.6983531815716497-3*a*a)*h*h*h*h*h*h/720);d=tS(d);var f=(h-(1+2*i+a)*h*h*h/6+(5-2*a+28*i-3*a*a+.05391597401814761+24*i*i)*h*h*h*h*h/120)/Math.cos(n);if(f=(u-1)*6-180+3+tS(f),t.accuracy){var p=tv({northing:t.northing+t.accuracy,easting:t.easting+t.accuracy,zoneLetter:t.zoneLetter,zoneNumber:t.zoneNumber});o={top:p.lat,right:p.lon,bottom:d,left:f}}else o={lat:d,lon:f};return o}function tG(t){var s=t%6;return 0===s&&(s=6),s}function tP(t){if(t&&0===t.length)throw"MGRSPoint coverting from nothing";for(var s,i,a=t.length,e=null,h="",r=0;!/[A-Z]/.test(s=t.charAt(r));){if(r>=2)throw"MGRSPoint bad conversion from: "+t;h+=s,r++}var n=parseInt(h,10);if(0===r||r+3>a)throw"MGRSPoint bad conversion from: "+t;var o=t.charAt(r++);if(o<="A"||"B"===o||"Y"===o||o>="Z"||"I"===o||"O"===o)throw"MGRSPoint zone letter "+o+" not handled: "+t;e=t.substring(r,r+=2);for(var l=tG(n),_=function(t,s){for(var i=tm.charCodeAt(s-1),a=1e5,e=!1;i!==t.charCodeAt(0);){if(73==++i&&i++,79===i&&i++,i>90){if(e)throw"Bad character: "+t;i=65,e=!0}a+=1e5}return a}(e.charAt(0),l),c=function(t,s){if(t>"V")throw"MGRSPoint given invalid Northing "+t;for(var i=ty.charCodeAt(s-1),a=0,e=!1;i!==t.charCodeAt(0);){if(73==++i&&i++,79===i&&i++,i>86){if(e)throw"Bad character: "+t;i=65,e=!0}a+=1e5}return a}(e.charAt(1),l);c<function(t){var s;switch(t){case"C":s=11e5;break;case"D":s=2e6;break;case"E":s=28e5;break;case"F":s=37e5;break;case"G":s=46e5;break;case"H":s=55e5;break;case"J":s=64e5;break;case"K":s=73e5;break;case"L":s=82e5;break;case"M":s=91e5;break;case"N":s=0;break;case"P":s=8e5;break;case"Q":s=17e5;break;case"R":s=26e5;break;case"S":s=35e5;break;case"T":s=44e5;break;case"U":s=53e5;break;case"V":s=62e5;break;case"W":s=7e6;break;case"X":s=79e5;break;default:s=-1}if(s>=0)return s;throw"Invalid zone letter: "+t}(o);)c+=2e6;var u=a-r;if(u%2!=0)throw"MGRSPoint has to have an even number \nof digits after the zone letter and two 100km letters - front \nhalf for easting meters, second half for \nnorthing meters"+t;var M=u/2,g=0,d=0;return M>0&&(i=1e5/Math.pow(10,M),g=parseFloat(t.substring(r,r+M))*i,d=parseFloat(t.substring(r+M))*i),{easting:g+_,northing:d+c,zoneLetter:o,zoneNumber:n,accuracy:i}}function tb(t,s,i){if(!(this instanceof tb))return new tb(t,s,i);if(Array.isArray(t))this.x=t[0],this.y=t[1],this.z=t[2]||0;else if("object"==typeof t)this.x=t.x,this.y=t.y,this.z=t.z||0;else if("string"==typeof t&&void 0===s){var a=t.split(",");this.x=parseFloat(a[0]),this.y=parseFloat(a[1]),this.z=parseFloat(a[2])||0}else this.x=t,this.y=s,this.z=i||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}function tA(t){var s=[];s[0]=1-t*(.25+t*(.046875+t*(.01953125+.01068115234375*t))),s[1]=t*(.75-t*(.046875+t*(.01953125+.01068115234375*t)));var i=t*t;return s[2]=i*(.46875-t*(.013020833333333334+.007120768229166667*t)),i*=t,s[3]=i*(.3645833333333333-.005696614583333333*t),s[4]=i*t*.3076171875,s}function tN(t,s,i,a){return i*=s,s*=s,a[0]*t-i*(a[1]+s*(a[2]+s*(a[3]+s*a[4])))}function tI(t,s,i){for(var a=1/(1-s),e=t,h=20;h;--h){var r=Math.sin(e),n=1-s*r*r;
1if(n=(tN(e,r,Math.cos(e),i)-t)*(n*Math.sqrt(n))*a,e-=n,1e-10>Math.abs(n))break}return e}tb.fromMGRS=function(t){return new tb(tw(t))},tb.prototype.toMGRS=function(t){return tE([this.x,this.y],t)};let tC={init:function(){this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.es&&(this.en=tA(this.es),this.ml0=tN(this.lat0,Math.sin(this.lat0),Math.cos(this.lat0),this.en))},forward:function(t){var s,i,a=t.x,e=t.y,h=q(a-this.long0,this.over),r=Math.sin(e),n=Math.cos(e);if(this.es){var o=n*h,l=Math.pow(o,2),_=this.ep2*Math.pow(n,2),c=Math.pow(_,2),u=Math.pow(Math.abs(n)>1e-10?Math.tan(e):0,2),M=Math.pow(u,2);o/=Math.sqrt(1-this.es*Math.pow(r,2));var g=tN(e,r,n,this.en);s=this.a*(this.k0*o*(1+l/6*(1-u+_+l/20*(5-18*u+M+14*_-58*u*_+l/42*(61+179*M-M*u-479*u)))))+this.x0,i=this.a*(this.k0*(g-this.ml0+r*h*o/2*(1+l/12*(5-u+9*_+4*c+l/30*(61+M-58*u+270*_-330*u*_+l/56*(1385+543*M-M*u-3111*u))))))+this.y0}else{var d=n*Math.sin(h);if(1e-10>Math.abs(Math.abs(d)-1))return 93;if(s=.5*this.a*this.k0*Math.log((1+d)/(1-d))+this.x0,(d=Math.abs(i=n*Math.cos(h)/Math.sqrt(1-Math.pow(d,2))))>=1)if(d-1>1e-10)return 93;else i=0;else i=Math.acos(i);e<0&&(i=-i),i=this.a*this.k0*(i-this.lat0)+this.y0}return t.x=s,t.y=i,t},inverse:function(t){var s,i,e,h,r=(t.x-this.x0)*(1/this.a),n=(t.y-this.y0)*(1/this.a);if(this.es)if(Math.abs(i=tI(s=this.ml0+n/this.k0,this.es,this.en))<a){var o=Math.sin(i),l=Math.cos(i),_=Math.abs(l)>1e-10?Math.tan(i):0,c=this.ep2*Math.pow(l,2),u=Math.pow(c,2),M=Math.pow(_,2),g=Math.pow(M,2),d=r*Math.sqrt(s=1-this.es*Math.pow(o,2))/this.k0,f=Math.pow(d,2);s*=_,e=i-s*f/(1-this.es)*.5*(1-f/12*(5+3*M-9*c*M+c-4*u-f/30*(61+90*M-252*c*M+45*g+46*c-f/56*(1385+3633*M+4095*g+1574*g*M)))),h=q(this.long0+d*(1-f/6*(1+2*M+c-f/20*(5+28*M+24*g+8*c*M+6*c-f/42*(61+662*M+1320*g+720*g*M))))/l,this.over)}else e=a*T(n),h=0;else{var p=Math.exp(r/this.k0),m=.5*(p-1/p),y=Math.cos(this.lat0+n/this.k0);e=Math.asin(s=Math.sqrt((1-Math.pow(y,2))/(1+Math.pow(m,2)))),n<0&&(e=-e),h=0===m&&0===y?0:q(Math.atan2(m,y)+this.long0,this.over)}return t.x=h,t.y=e,t},names:["Fast_Transverse_Mercator","Fast Transverse Mercator"]};function tR(t){var s=Math.exp(t);return(s-1/s)/2}function tO(t,s){var i=Math.max(t=Math.abs(t),s=Math.abs(s)),a=Math.min(t,s)/(i||1);return i*Math.sqrt(1+Math.pow(a,2))}function tk(t,s){for(var i,a=2*Math.cos(2*s),e=t.length-1,h=t[e],r=0;--e>=0;)i=-r+a*h+t[e],r=h,h=i;return s+i*Math.sin(2*s)}function tj(t,s,i){for(var a,e,h,r=Math.sin(s),n=Math.cos(s),o=tR(i),l=a=((a=Math.exp(i))+1/a)/2,_=2*n*l,c=-2*r*o,u=t.length-1,M=t[u],g=0,d=0,f=0;--u>=0;)e=d,h=g,M=-e+_*(d=M)-c*(g=f)+t[u],f=-h+c*d+_*g;return[(_=r*l)*M-(c=n*o)*f,_*f+c*M]}let tT={init:function(){if(!this.approx&&(isNaN(this.es)||this.es<=0))throw Error('Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.');this.approx&&(tC.init.apply(this),this.forward=tC.forward,this.inverse=tC.inverse),this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var t=this.es/(1+Math.sqrt(1-this.es)),s=t/(2-t),i=s;this.cgb[0]=s*(2+s*(-2/3+s*(-2+s*(116/45+s*(26/45+-2854/675*s))))),this.cbg[0]=s*(-2+s*(2/3+s*(4/3+s*(-82/45+s*(32/45+4642/4725*s))))),i*=s,this.cgb[1]=i*(7/3+s*(-1.6+s*(-227/45+s*(2704/315+2323/945*s)))),this.cbg[1]=i*(5/3+s*(-16/15+s*(-13/9+s*(904/315+-1522/945*s)))),i*=s,this.cgb[2]=i*(56/15+s*(-136/35+s*(-1262/105+73814/2835*s))),this.cbg[2]=i*(-26/15+s*(34/21+s*(1.6+-12686/2835*s))),i*=s,this.cgb[3]=i*(4279/630+s*(-332/35+-399572/14175*s)),this.cbg[3]=i*(1237/630+s*(-2.4+-24832/14175*s)),i*=s,this.cgb[4]=i*(4174/315+-144838/6237*s),this.cbg[4]=i*(-734/315+109598/31185*s),i*=s,this.cgb[5]=601676/22275*i,this.cbg[5]=444337/155925*i,i=Math.pow(s,2),this.Qn=this.k0/(1+s)*(1+i*(1/4+i*(1/64+i/256))),this.utg[0]=s*(-.5+s*(2/3+s*(-37/96+s*(1/360+s*(81/512+-96199/604800*s))))),this.gtu[0]=s*(.5+s*(-2/3+s*(5/16+s*(41/180+s*(-127/288+7891/37800*s))))),this.utg[1]=i*(-1/48+s*(-1/15+s*(437/1440+s*(-46/105+1118711/3870720*s)))),this.gtu[1]=i*(13/48+s*(-.6+s*(557/1440+s*(281/630+-1983433/1935360*s)))),i*=s,this.utg[2]=i*(-17/480+s*(37/840+s*(209/4480+-5569/90720*s))),this.gtu[2]=i*(61/240+s*(-103/140+s*(15061/26880+167603/181440*s))),i*=s,this.utg[3]=i*(-4397/161280+s*(11/504+830251/7257600*s)),this.gtu[3]=i*(49561/161280+s*(-179/168+6601661/7257600*s)),i*=s,this.utg[4]=i*(-4583/161280+108847/3991680*s),this.gtu[4]=i*(34729/80640+-3418889/1995840*s),i*=s,this.utg[5]=-0x13b12f5/0x26115000*i,this.gtu[5]=.6650675310896665*i;var a=tk(this.cbg,this.lat0);this.Zb=-this.Qn*(a+function(t,s){for(var i,a=2*Math.cos(s),e=t.length-1,h=t[e],r=0;--e>=0;)i=-r+a*h+t[e],r=h,h=i;return Math.sin(s)*i}(this.gtu,2*a))},forward:function(t){var s,i,a,e,h,r,n,o=q(t.x-this.long0,this.over),l=t.y,_=Math.sin(l=tk(this.cbg,l)),c=Math.cos(l),u=Math.sin(o),M=Math.cos(o);l=Math.atan2(_,M*c),i=0==(h=(e=1+(a=(i=Math.abs(s=Math.tan(o=Math.atan2(u*c,tO(_,c*M)))))*(1+i/(tO(1,i)+1))))-1)?a:a*Math.log(e)/h,o=s<0?-i:i;var g=tj(this.gtu,2*l,2*o);return l+=g[0],2.623395162778>=Math.abs(o+=g[1])?(r=this.a*(this.Qn*o)+this.x0,n=this.a*(this.Qn*l+this.Zb)+this.y0):(r=1/0,n=1/0),t.x=r,t.y=n,t},inverse:function(t){var s,i,a=(t.x-this.x0)*(1/this.a),e=(t.y-this.y0)*(1/this.a);if(e=(e-this.Zb)/this.Qn,2.623395162778>=Math.abs(a/=this.Qn)){var h=tj(this.utg,2*e,2*a);e+=h[0],a+=h[1],a=Math.atan(tR(a));var r=Math.sin(e),n=Math.cos(e),o=Math.sin(a),l=Math.cos(a);e=Math.atan2(r*l,tO(o,l*n)),s=q((a=Math.atan2(o,l*n))+this.long0,this.over),i=tk(this.cgb,e)}else s=1/0,i=1/0;return t.x=s,t.y=i,t},names:["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc","Transverse_Mercator","Transverse Mercator","Gauss Kruger","Gauss_Kruger","tmerc"]},tq={init:function(){var t=function(t,s){if(void 0===t){if((t=Math.floor((q(s)+Math.PI)*30/Math.PI)+1)<0)return 0;if(t>60)return 60}return t}(this.zone,this.long0);if(void 0===t)throw Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(t)-183)*.017453292519943295,this.x0=5e5,this.y0=1e7*!!this.utmSouth,this.k0=.9996,tT.init.apply(this),this.forward=tT.forward,this.inverse=tT.inverse},names:["Universal Transverse Mercator System","utm"],dependsOn:"etmerc"};function tL(t,s){return Math.pow((1-t)/(1+t),s)}let tF={init:function(){var t=Math.sin(this.lat0),s=Math.cos(this.lat0);s*=s,this.rc=Math.sqrt(1-this.es)/(1-this.es*t*t),this.C=Math.sqrt(1+this.es*s*s/(1-this.es)),this.phic0=Math.asin(t/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+e)/(Math.pow(Math.tan(.5*this.lat0+e),this.C)*tL(this.e*t,this.ratexp))},forward:function(t){var s=t.x,i=t.y;return t.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*i+e),this.C)*tL(this.e*Math.sin(i),this.ratexp))-a,t.x=this.C*s,t},inverse:function(t){for(var s=t.x/this.C,i=t.y,h=Math.pow(Math.tan(.5*i+e)/this.K,1/this.C),r=20;r>0&&!(1e-14>Math.abs((i=2*Math.atan(h*tL(this.e*Math.sin(t.y),-.5*this.e))-a)-t.y));--r)t.y=i;return r?(t.x=s,t.y=i,t):null},names:["gauss"]},tB={init:function(){tF.init.apply(this),this.rc&&(this.sinc0=Math.sin(this.phic0),this.cosc0=Math.cos(this.phic0),this.R2=2*this.rc,this.title||(this.title="Oblique Stereographic Alternative"))},forward:function(t){var s,i,a,e;return t.x=q(t.x-this.long0,this.over),tF.forward.apply(this,[t]),s=Math.sin(t.y),i=Math.cos(t.y),a=Math.cos(t.x),t.x=(e=this.k0*this.R2/(1+this.sinc0*s+this.cosc0*i*a))*i*Math.sin(t.x),t.y=e*(this.cosc0*s-this.sinc0*i*a),t.x=this.a*t.x+this.x0,t.y=this.a*t.y+this.y0,t},inverse:function(t){var s,i,a,e,h;if(t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,t.x/=this.k0,t.y/=this.k0,h=tO(t.x,t.y)){var r=2*Math.atan2(h,this.R2);s=Math.sin(r),e=Math.asin((i=Math.cos(r))*this.sinc0+t.y*s*this.cosc0/h),a=Math.atan2(t.x*s,h*this.cosc0*i-t.y*this.sinc0*s)}else e=this.phic0,a=0;return t.x=a,t.y=e,tF.inverse.apply(this,[t]),t.x=q(t.x+this.long0,this.over),t}
1,names:["Stereographic_North_Pole","Oblique_Stereographic","sterea","Oblique Stereographic Alternative","Double_Stereographic"]};function tU(t,s,i){return Math.tan(.5*(a+t))*Math.pow((1-(s*=i))/(1+s),.5*i)}let tD={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.coslat0=Math.cos(this.lat0),this.sinlat0=Math.sin(this.lat0),this.sphere?1===this.k0&&!isNaN(this.lat_ts)&&1e-10>=Math.abs(this.coslat0)&&(this.k0=.5*(1+T(this.lat0)*Math.sin(this.lat_ts))):(1e-10>=Math.abs(this.coslat0)&&(this.lat0>0?this.con=1:this.con=-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),1===this.k0&&!isNaN(this.lat_ts)&&1e-10>=Math.abs(this.coslat0)&&Math.abs(Math.cos(this.lat_ts))>1e-10&&(this.k0=.5*this.cons*j(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/L(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=j(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(tU(this.lat0,this.sinlat0,this.e))-a,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))},forward:function(t){var s,i,e,h,r,n,o=t.x,l=t.y,_=Math.sin(l),c=Math.cos(l),u=q(o-this.long0,this.over);if(1e-10>=Math.abs(Math.abs(o-this.long0)-Math.PI)&&1e-10>=Math.abs(l+this.lat0))return t.x=NaN,t.y=NaN,t;if(this.sphere)s=2*this.k0/(1+this.sinlat0*_+this.coslat0*c*Math.cos(u)),t.x=this.a*s*c*Math.sin(u)+this.x0,t.y=this.a*s*(this.coslat0*_-this.sinlat0*c*Math.cos(u))+this.y0;else{if(h=Math.cos(i=2*Math.atan(tU(l,_,this.e))-a),e=Math.sin(i),1e-10>=Math.abs(this.coslat0))return r=L(this.e,l*this.con,this.con*_),n=2*this.a*this.k0*r/this.cons,t.x=this.x0+n*Math.sin(o-this.long0),t.y=this.y0-this.con*n*Math.cos(o-this.long0),t;1e-10>Math.abs(this.sinlat0)?t.y=(s=2*this.a*this.k0/(1+h*Math.cos(u)))*e:t.y=(s=2*this.a*this.k0*this.ms1/(this.cosX0*(1+this.sinX0*e+this.cosX0*h*Math.cos(u))))*(this.cosX0*e-this.sinX0*h*Math.cos(u))+this.y0,t.x=s*h*Math.sin(u)+this.x0}return t},inverse:function(t){t.x-=this.x0,t.y-=this.y0;var s,i,e,h,r,n=Math.sqrt(t.x*t.x+t.y*t.y);if(this.sphere){var o=2*Math.atan(n/(2*this.a*this.k0));return s=this.long0,i=this.lat0,n<=1e-10||(i=Math.asin(Math.cos(o)*this.sinlat0+t.y*Math.sin(o)*this.coslat0/n),s=1e-10>Math.abs(this.coslat0)?this.lat0>0?q(this.long0+Math.atan2(t.x,-1*t.y),this.over):q(this.long0+Math.atan2(t.x,t.y),this.over):q(this.long0+Math.atan2(t.x*Math.sin(o),n*this.coslat0*Math.cos(o)-t.y*this.sinlat0*Math.sin(o)),this.over)),t.x=s,t.y=i,t}if(1e-10>=Math.abs(this.coslat0)){if(n<=1e-10)return i=this.lat0,t.x=s=this.long0,t.y=i,t;t.x*=this.con,t.y*=this.con,e=n*this.cons/(2*this.a*this.k0),i=this.con*F(this.e,e),s=this.con*q(this.con*this.long0+Math.atan2(t.x,-1*t.y),this.over)}else h=2*Math.atan(n*this.cosX0/(2*this.a*this.k0*this.ms1)),s=this.long0,n<=1e-10?r=this.X0:(r=Math.asin(Math.cos(h)*this.sinX0+t.y*Math.sin(h)*this.cosX0/n),s=q(this.long0+Math.atan2(t.x*Math.sin(h),n*this.cosX0*Math.cos(h)-t.y*this.sinX0*Math.sin(h)),this.over)),i=-1*F(this.e,Math.tan(.5*(a+r)));return t.x=s,t.y=i,t},names:["stere","Stereographic_South_Pole","Polar_Stereographic_variant_A","Polar_Stereographic_variant_B","Polar_Stereographic"],ssfn_:tU},tz={init:function(){var t=this.lat0;this.lambda0=this.long0;var s=Math.sin(t),i=this.a,a=1/this.rf,e=2*a-Math.pow(a,2),h=this.e=Math.sqrt(e);this.R=this.k0*i*Math.sqrt(1-e)/(1-e*Math.pow(s,2)),this.alpha=Math.sqrt(1+e/(1-e)*Math.pow(Math.cos(t),4)),this.b0=Math.asin(s/this.alpha);var r=Math.log(Math.tan(Math.PI/4+this.b0/2)),n=Math.log(Math.tan(Math.PI/4+t/2)),o=Math.log((1+h*s)/(1-h*s));this.K=r-this.alpha*n+this.alpha*h/2*o},forward:function(t){var s=Math.log(Math.tan(Math.PI/4-t.y/2)),i=this.e/2*Math.log((1+this.e*Math.sin(t.y))/(1-this.e*Math.sin(t.y))),a=2*(Math.atan(Math.exp(-this.alpha*(s+i)+this.K))-Math.PI/4),e=this.alpha*(t.x-this.lambda0),h=Math.atan(Math.sin(e)/(Math.sin(this.b0)*Math.tan(a)+Math.cos(this.b0)*Math.cos(e))),r=Math.asin(Math.cos(this.b0)*Math.sin(a)-Math.sin(this.b0)*Math.cos(a)*Math.cos(e));return t.y=this.R/2*Math.log((1+Math.sin(r))/(1-Math.sin(r)))+this.y0,t.x=this.R*h+this.x0,t},inverse:function(t){for(var s=t.x-this.x0,i=t.y-this.y0,a=s/this.R,e=2*(Math.atan(Math.exp(i/this.R))-Math.PI/4),h=Math.asin(Math.cos(this.b0)*Math.sin(e)+Math.sin(this.b0)*Math.cos(e)*Math.cos(a)),r=Math.atan(Math.sin(a)/(Math.cos(this.b0)*Math.cos(a)-Math.sin(this.b0)*Math.tan(e))),n=this.lambda0+r/this.alpha,o=0,l=h,_=-1e3,c=0;Math.abs(l-_)>1e-7;){if(++c>20)return;o=1/this.alpha*(Math.log(Math.tan(Math.PI/4+h/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(l))/2)),_=l,l=2*Math.atan(Math.exp(o))-Math.PI/2}return t.x=n,t.y=l,t},names:["somerc"]},tW={init:function(){var t,s,i,r,n,o,l,_,c,u,M,g,d=0,f=0,p=0,m=0,y=0,E=0,w=0;this.no_off=(t=["Hotine_Oblique_Mercator","Hotine_Oblique_Mercator_variant_A","Hotine_Oblique_Mercator_Azimuth_Natural_Origin"],s="object"==typeof this.projName?Object.keys(this.projName)[0]:this.projName,"no_uoff"in this||"no_off"in this||-1!==t.indexOf(s)||-1!==t.indexOf(Q(s))),this.no_rot="no_rot"in this;var x=!1;"alpha"in this&&(x=!0);var S=!1;if("rectified_grid_angle"in this&&(S=!0),x&&(w=this.alpha),S&&(d=this.rectified_grid_angle),x||S)f=this.longc;else if(p=this.long1,y=this.lat1,m=this.long2,1e-7>=Math.abs(y-(E=this.lat2))||(i=Math.abs(y))<=1e-7||1e-7>=Math.abs(i-a)||1e-7>=Math.abs(Math.abs(this.lat0)-a)||1e-7>=Math.abs(Math.abs(E)-a))throw Error();var v=1-this.es;(r=Math.sqrt(v),Math.abs(this.lat0)>1e-10?(u=Math.sin(this.lat0),n=Math.cos(this.lat0),i=1-this.es*u*u,this.B=n*n,this.B=Math.sqrt(1+this.es*this.B*this.B/v),this.A=this.B*this.k0*r/i,(l=(o=this.B*r/(n*Math.sqrt(i)))*o-1)<=0?l=0:(l=Math.sqrt(l),this.lat0<0&&(l=-l)),this.E=l+=o,this.E*=Math.pow(L(this.e,this.lat0,u),this.B)):(this.B=1/r,this.A=this.k0,this.E=o=l=1),x||S)?(x?(g=Math.asin(Math.sin(w)/o),S||(d=w)):w=Math.asin(o*Math.sin(g=d)),this.lam0=f-Math.asin(.5*(l-1/l)*Math.tan(g))/this.B):(_=Math.pow(L(this.e,y,Math.sin(y)),this.B),c=Math.pow(L(this.e,E,Math.sin(E)),this.B),l=this.E/_,M=((M=this.E*this.E)-c*_)/(M+c*_),(i=p-m)<-Math.PI?m-=h:i>Math.PI&&(m+=h),this.lam0=q(.5*(p+m)-Math.atan(M*Math.tan(.5*this.B*(p-m))/((c-_)/(c+_)))/this.B,this.over),d=w=Math.asin(o*Math.sin(g=Math.atan(2*Math.sin(this.B*q(p-this.lam0,this.over))/(l-1/l))))),this.singam=M
1ath.sin(g),this.cosgam=Math.cos(g),this.sinrot=Math.sin(d),this.cosrot=Math.cos(d),this.rB=1/this.B,this.ArB=this.A*this.rB,this.BrA=1/this.ArB,this.no_off?this.u_0=0:(this.u_0=Math.abs(this.ArB*Math.atan(Math.sqrt(o*o-1)/Math.cos(w))),this.lat0<0&&(this.u_0=-this.u_0)),l=.5*g,this.v_pole_n=this.ArB*Math.log(Math.tan(e-l)),this.v_pole_s=this.ArB*Math.log(Math.tan(e+l))},forward:function(t){var s,i,e,h,r,n,o,l,_={};if(t.x=t.x-this.lam0,Math.abs(Math.abs(t.y)-a)>1e-10){if(n=1/(r=this.E/Math.pow(L(this.e,t.y,Math.sin(t.y)),this.B)),s=.5*(r-n),i=.5*(r+n),h=Math.sin(this.B*t.x),1e-10>Math.abs(Math.abs(e=(s*this.singam-h*this.cosgam)/i)-1))throw Error();l=.5*this.ArB*Math.log((1-e)/(1+e)),o=1e-7>Math.abs(n=Math.cos(this.B*t.x))?this.A*t.x:this.ArB*Math.atan2(s*this.cosgam+h*this.singam,n)}else l=t.y>0?this.v_pole_n:this.v_pole_s,o=this.ArB*t.y;return this.no_rot?(_.x=o,_.y=l):(o-=this.u_0,_.x=l*this.cosrot+o*this.sinrot,_.y=o*this.cosrot-l*this.sinrot),_.x=this.a*_.x+this.x0,_.y=this.a*_.y+this.y0,_},inverse:function(t){var s,i,e,h,r,n,o={};if(t.x=(t.x-this.x0)*(1/this.a),t.y=(t.y-this.y0)*(1/this.a),this.no_rot?(i=t.y,s=t.x):(i=t.x*this.cosrot-t.y*this.sinrot,s=t.y*this.cosrot+t.x*this.sinrot+this.u_0),h=.5*((e=Math.exp(-this.BrA*i))-1/e),1e-10>Math.abs(Math.abs(n=((r=Math.sin(this.BrA*s))*this.cosgam+h*this.singam)/(.5*(e+1/e)))-1))o.x=0,o.y=n<0?-a:a;else{if(o.y=this.E/Math.sqrt((1+n)/(1-n)),o.y=F(this.e,Math.pow(o.y,1/this.B)),o.y===1/0)throw Error();o.x=-this.rB*Math.atan2(h*this.cosgam-r*this.singam,Math.cos(this.BrA*s))}return o.x+=this.lam0,o},names:["Hotine_Oblique_Mercator","Hotine Oblique Mercator","Hotine_Oblique_Mercator_variant_A","Hotine_Oblique_Mercator_Variant_B","Hotine_Oblique_Mercator_Azimuth_Natural_Origin","Hotine_Oblique_Mercator_Two_Point_Natural_Origin","Hotine_Oblique_Mercator_Azimuth_Center","Oblique_Mercator","omerc"]},tH={init:function(){if(this.lat2||(this.lat2=this.lat1),this.k0||(this.k0=1),this.x0=this.x0||0,this.y0=this.y0||0,!(1e-10>Math.abs(this.lat1+this.lat2))){var t=this.b/this.a;this.e=Math.sqrt(1-t*t);var s=Math.sin(this.lat1),i=Math.cos(this.lat1),e=j(this.e,s,i),h=L(this.e,this.lat1,s),r=Math.sin(this.lat2),n=Math.cos(this.lat2),o=j(this.e,r,n),l=L(this.e,this.lat2,r),_=1e-10>Math.abs(Math.abs(this.lat0)-a)?0:L(this.e,this.lat0,Math.sin(this.lat0));Math.abs(this.lat1-this.lat2)>1e-10?this.ns=Math.log(e/o)/Math.log(h/l):this.ns=s,isNaN(this.ns)&&(this.ns=s),this.f0=e/(this.ns*Math.pow(h,this.ns)),this.rh=this.a*this.f0*Math.pow(_,this.ns),this.title||(this.title="Lambert Conformal Conic")}},forward:function(t){var s,i,e=t.x,h=t.y;1e-10>=Math.abs(2*Math.abs(h)-Math.PI)&&(h=T(h)*(a-2e-10));var r=Math.abs(Math.abs(h)-a);if(r>1e-10)s=L(this.e,h,Math.sin(h)),i=this.a*this.f0*Math.pow(s,this.ns);else{if((r=h*this.ns)<=0)return null;i=0}var n=this.ns*q(e-this.long0,this.over);return t.x=this.k0*(i*Math.sin(n))+this.x0,t.y=this.k0*(this.rh-i*Math.cos(n))+this.y0,t},inverse:function(t){var s,i,e,h,r=(t.x-this.x0)/this.k0,n=this.rh-(t.y-this.y0)/this.k0;this.ns>0?(s=Math.sqrt(r*r+n*n),i=1):(s=-Math.sqrt(r*r+n*n),i=-1);var o=0;if(0!==s&&(o=Math.atan2(i*r,i*n)),0!==s||this.ns>0){if(i=1/this.ns,e=Math.pow(s/(this.a*this.f0),i),-9999===(h=F(this.e,e)))return null}else h=-a;return t.x=q(o/this.ns+this.long0,this.over),t.y=h,t},names:["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_1SP","Lambert_Conformal_Conic_2SP","lcc","Lambert Conic Conformal (1SP)","Lambert Conic Conformal (2SP)"]},tQ={init:function(){this.a=6377397.155,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.4334234309119251),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq},forward:function(t){var s,i,a,e,h,r,n,o=t.x,l=t.y,_=q(o-this.long0,this.over);return s=Math.pow((1+this.e*Math.sin(l))/(1-this.e*Math.sin(l)),this.alfa*this.e/2),i=2*(Math.atan(this.k*Math.pow(Math.tan(l/2+this.s45),this.alfa)/s)-this.s45),a=-_*this.alfa,e=Math.asin(Math.cos(this.ad)*Math.sin(i)+Math.sin(this.ad)*Math.cos(i)*Math.cos(a)),h=Math.asin(Math.cos(i)*Math.sin(a)/Math.cos(e)),r=this.n*h,t.y=(n=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(e/2+this.s45),this.n))*Math.cos(r)/1,t.x=n*Math.sin(r)/1,this.czech||(t.y*=-1,t.x*=-1),t},inverse:function(t){var s,i,a,e,h,r,n,o=t.x;t.x=t.y,t.y=o,this.czech||(t.y*=-1,t.x*=-1),h=Math.sqrt(t.x*t.x+t.y*t.y),e=Math.atan2(t.y,t.x)/Math.sin(this.s0),a=2*(Math.atan(Math.pow(this.ro0/h,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),s=Math.asin(Math.cos(this.ad)*Math.sin(a)-Math.sin(this.ad)*Math.cos(a)*Math.cos(e)),i=Math.asin(Math.cos(a)*Math.sin(e)/Math.cos(s)),t.x=this.long0-i/this.alfa,r=s,n=0;var l=0;do t.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(s/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(r))/(1-this.e*Math.sin(r)),this.e/2))-this.s45),1e-10>Math.abs(r-t.y)&&(n=1),r=t.y,l+=1;while(0===n&&l<15);return l>=15?null:t},names:["Krovak","Krovak Modified","Krovak (North Orientated)","Krovak Modified (North Orientated)","krovak"]};function tX(t,s,i,a,e){return t*e-s*Math.sin(2*e)+i*Math.sin(4*e)-a*Math.sin(6*e)}function tK(t){return 1-.25*t*(1+t/16*(3+1.25*t))}function tV(t){return .375*t*(1+.25*t*(1+.46875*t))}function tJ(t){return .05859375*t*t*(1+.75*t)}function tY(t){return t*t*t*(35/3072)}function t$(t,s,i){var a=s*i;return t/Math.sqrt(1-a*a)}function tZ(t){return Math.abs(t)<a?t:t-T(t)*Math.PI}function t0(t,s,i,a,e){h=t/s;for(var h,r,n=0;n<15;n++)if(r=(t-(s*h-i*Math.sin(2*h)+a*Math.sin(4*h)-e*Math.sin(6*h)))/(s-2*i*Math.cos(2*h
1)+4*a*Math.cos(4*h)-6*e*Math.cos(6*h)),h+=r,1e-10>=Math.abs(r))return h;return NaN}let t1={init:function(){this.sphere||(this.e0=tK(this.es),this.e1=tV(this.es),this.e2=tJ(this.es),this.e3=tY(this.es),this.ml0=this.a*tX(this.e0,this.e1,this.e2,this.e3,this.lat0))},forward:function(t){var s,i,a=t.x,e=t.y;if(a=q(a-this.long0,this.over),this.sphere)s=this.a*Math.asin(Math.cos(e)*Math.sin(a)),i=this.a*(Math.atan2(Math.tan(e),Math.cos(a))-this.lat0);else{var h=Math.sin(e),r=Math.cos(e),n=t$(this.a,this.e,h),o=Math.tan(e)*Math.tan(e),l=a*Math.cos(e),_=l*l,c=this.es*r*r/(1-this.es),u=this.a*tX(this.e0,this.e1,this.e2,this.e3,e);s=n*l*(1-_*o*(1/6-(8-o+8*c)*_/120)),i=u-this.ml0+n*h/r*_*(.5+(5-o+6*c)*_/24)}return t.x=s+this.x0,t.y=i+this.y0,t},inverse:function(t){t.x-=this.x0,t.y-=this.y0;var s,i,e=t.x/this.a,h=t.y/this.a;if(this.sphere){var r=h+this.lat0;s=Math.asin(Math.sin(r)*Math.cos(e)),i=Math.atan2(Math.tan(e),Math.cos(r))}else{var n=t0(this.ml0/this.a+h,this.e0,this.e1,this.e2,this.e3);if(1e-10>=Math.abs(Math.abs(n)-a))return t.x=this.long0,t.y=a,h<0&&(t.y*=-1),t;var o=t$(this.a,this.e,Math.sin(n)),l=o*o*o/this.a/this.a*(1-this.es),_=Math.pow(Math.tan(n),2),c=e*this.a/o,u=c*c;s=n-o*Math.tan(n)/l*c*c*(.5-(1+3*_)*c*c/24),i=c*(1-u*(_/3+(1+3*_)*_*u/15))/Math.cos(n)}return t.x=q(i+this.long0,this.over),t.y=tZ(s),t},names:["Cassini","Cassini_Soldner","cass"]};function t4(t,s){var i;return t>1e-7?(i=t*s,(1-t*t)*(s/(1-i*i)-.5/t*Math.log((1-i)/(1+i)))):2*s}let t2={init:function(){var t,s,i,e,h=Math.abs(this.lat0);if(1e-10>Math.abs(h-a)?this.mode=this.lat0<0?1:2:1e-10>Math.abs(h)?this.mode=3:this.mode=4,this.es>0){switch(this.qp=t4(this.e,1),this.mmf=.5/(1-this.es),this.apa=(t=this.es,(i=[])[0]=.3333333333333333*t,s=t*t,i[0]+=.17222222222222222*s,i[1]=.06388888888888888*s,s*=t,i[0]+=.10257936507936508*s,i[1]+=.0664021164021164*s,i[2]=.016415012942191543*s,i),this.mode){case 2:case 1:this.dd=1;break;case 3:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case 4:this.rq=Math.sqrt(.5*this.qp),e=Math.sin(this.lat0),this.sinb1=t4(this.e,e)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*e*e)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd}}else 4===this.mode&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))},forward:function(t){var s,i,h,r,n,o,l,_,c,u,M=t.x,g=t.y;if(M=q(M-this.long0,this.over),this.sphere){if(n=Math.sin(g),u=Math.cos(g),h=Math.cos(M),this.mode===this.OBLIQ||this.mode===this.EQUIT){if((i=this.mode===this.EQUIT?1+u*h:1+this.sinph0*n+this.cosph0*u*h)<=1e-10)return null;s=(i=Math.sqrt(2/i))*u*Math.sin(M),i*=this.mode===this.EQUIT?n:this.cosph0*n-this.sinph0*u*h}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(h=-h),1e-10>Math.abs(g+this.lat0))return null;i=e-.5*g,s=(i=2*(this.mode===this.S_POLE?Math.cos(i):Math.sin(i)))*Math.sin(M),i*=h}}else{switch(l=0,_=0,c=0,h=Math.cos(M),r=Math.sin(M),n=Math.sin(g),o=t4(this.e,n),(this.mode===this.OBLIQ||this.mode===this.EQUIT)&&(_=Math.sqrt(1-(l=o/this.qp)*l)),this.mode){case this.OBLIQ:c=1+this.sinb1*l+this.cosb1*_*h;break;case this.EQUIT:c=1+_*h;break;case this.N_POLE:c=a+g,o=this.qp-o;break;case this.S_POLE:c=g-a,o=this.qp+o}if(1e-10>Math.abs(c))return null;switch(this.mode){case this.OBLIQ:case this.EQUIT:c=Math.sqrt(2/c),i=this.mode===this.OBLIQ?this.ymf*c*(this.cosb1*l-this.sinb1*_*h):(c=Math.sqrt(2/(1+_*h)))*l*this.ymf,s=this.xmf*c*_*r;break;case this.N_POLE:case this.S_POLE:o>=0?(s=(c=Math.sqrt(o))*r,i=h*(this.mode===this.S_POLE?c:-c)):s=i=0}}return t.x=this.a*s+this.x0,t.y=this.a*i+this.y0,t},inverse:function(t){t.x-=this.x0,t.y-=this.y0;var s,i,e,h=t.x/this.a,r=t.y/this.a;if(this.sphere){var n,o,l,_,c,u,M,g,d=0,f=0;if((o=.5*(g=Math.sqrt(h*h+r*r)))>1)return null;switch(o=2*Math.asin(o),(this.mode===this.OBLIQ||this.mode===this.EQUIT)&&(f=Math.sin(o),d=Math.cos(o)),this.mode){case this.EQUIT:o=1e-10>=Math.abs(g)?0:Math.asin(r*f/g),h*=f,r=d*g;break;case this.OBLIQ:o=1e-10>=Math.abs(g)?this.lat0:Math.asin(d*this.sinph0+r*f*this.cosph0/g),h*=f*this.cosph0,r=(d-Math.sin(o)*this.sinph0)*g;break;case this.N_POLE:r=-r,o=a-o;break;case this.S_POLE:o-=a}n=0===r&&(this.mode===this.EQUIT||this.mode===this.OBLIQ)?0:Math.atan2(h,r)}else{if(M=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(h/=this.dd,r*=this.dd,(u=Math.sqrt(h*h+r*r))<1e-10)return t.x=this.long0,t.y=this.lat0,t;l=Math.cos(_=2*Math.asin(.5*u/this.rq)),h*=_=Math.sin(_),this.mode===this.OBLIQ?(M=l*this.sinb1+r*_*this.cosb1/u,c=this.qp*M,r=u*this.cosb1*l-r*this.sinb1*_):(M=r*_/u,c=this.qp*M,r=u*l)}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(r=-r),!(c=h*h+r*r))return t.x=this.long0,t.y=this.lat0,t;M=1-c/this.qp,this.mode===this.S_POLE&&(M=-M)}n=Math.atan2(h,r),s=Math.asin(M),i=this.apa,e=s+s,o=s+i[0]*Math.sin(e)+i[1]*Math.sin(e+e)+i[2]*Math.sin(e+e+e)}return t.x=q(this.long0+n,this.over),t.y=o,t}
1,names:["Lambert Azimuthal Equal Area","Lambert_Azimuthal_Equal_Area","laea"],S_POLE:1,N_POLE:2,EQUIT:3,OBLIQ:4};function t8(t){return Math.abs(t)>1&&(t=t>1?1:-1),Math.asin(t)}let t3={init:function(){1e-10>Math.abs(this.lat1+this.lat2)||(this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e3=Math.sqrt(this.es),this.sin_po=Math.sin(this.lat1),this.cos_po=Math.cos(this.lat1),this.t1=this.sin_po,this.con=this.sin_po,this.ms1=j(this.e3,this.sin_po,this.cos_po),this.qs1=t4(this.e3,this.sin_po),this.sin_po=Math.sin(this.lat2),this.cos_po=Math.cos(this.lat2),this.t2=this.sin_po,this.ms2=j(this.e3,this.sin_po,this.cos_po),this.qs2=t4(this.e3,this.sin_po),this.sin_po=Math.sin(this.lat0),this.cos_po=Math.cos(this.lat0),this.t3=this.sin_po,this.qs0=t4(this.e3,this.sin_po),Math.abs(this.lat1-this.lat2)>1e-10?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)},forward:function(t){var s=t.x,i=t.y;this.sin_phi=Math.sin(i),this.cos_phi=Math.cos(i);var a=t4(this.e3,this.sin_phi),e=this.a*Math.sqrt(this.c-this.ns0*a)/this.ns0,h=this.ns0*q(s-this.long0,this.over),r=e*Math.sin(h)+this.x0,n=this.rh-e*Math.cos(h)+this.y0;return t.x=r,t.y=n,t},inverse:function(t){var s,i,a,e,h;return t.x-=this.x0,t.y=this.rh-t.y+this.y0,this.ns0>=0?(s=Math.sqrt(t.x*t.x+t.y*t.y),a=1):(s=-Math.sqrt(t.x*t.x+t.y*t.y),a=-1),e=0,0!==s&&(e=Math.atan2(a*t.x,a*t.y)),a=s*this.ns0/this.a,this.sphere?h=Math.asin((this.c-a*a)/(2*this.ns0)):(i=(this.c-a*a)/this.ns0,h=this.phi1z(this.e3,i)),t.x=q(e/this.ns0+this.long0,this.over),t.y=h,t},names:["Albers_Conic_Equal_Area","Albers_Equal_Area","Albers","aea"],phi1z:function(t,s){var i,a,e,h,r,n=t8(.5*s);if(t<1e-10)return n;for(var o=t*t,l=1;l<=25;l++)if(i=Math.sin(n),a=Math.cos(n),n+=r=.5*(h=1-(e=t*i)*e)*h/a*(s/(1-o)-i/h+.5/t*Math.log((1-e)/(1+e))),1e-7>=Math.abs(r))return n;return null}},t5={init:function(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0),this.infinity_dist=1e3*this.a,this.rc=1},forward:function(t){var s,i,a,e,h,r,n,o=t.x,l=t.y;return a=q(o-this.long0,this.over),s=Math.sin(l),i=Math.cos(l),e=Math.cos(a),(h=this.sin_p14*s+this.cos_p14*i*e)>0||1e-10>=Math.abs(h)?(r=this.x0+this.a*i*Math.sin(a)/h,n=this.y0+this.a*(this.cos_p14*s-this.sin_p14*i*e)/h):(r=this.x0+this.infinity_dist*i*Math.sin(a),n=this.y0+this.infinity_dist*(this.cos_p14*s-this.sin_p14*i*e)),t.x=r,t.y=n,t},inverse:function(t){var s,i,a,e,h,r;return t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,t.x/=this.k0,t.y/=this.k0,(s=Math.sqrt(t.x*t.x+t.y*t.y))?(i=Math.sin(e=Math.atan2(s,this.rc)),r=t8((a=Math.cos(e))*this.sin_p14+t.y*i*this.cos_p14/s),h=Math.atan2(t.x*i,s*this.cos_p14*a-t.y*this.sin_p14*i),h=q(this.long0+h,this.over)):(r=this.phic0,h=0),t.x=h,t.y=r,t},names:["gnom"]},t6={init:function(){this.sphere||(this.k0=j(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))},forward:function(t){var s,i,a=t.x,e=t.y,h=q(a-this.long0,this.over);if(this.sphere)s=this.x0+this.a*h*Math.cos(this.lat_ts),i=this.y0+this.a*Math.sin(e)/Math.cos(this.lat_ts);else{var r=t4(this.e,Math.sin(e));s=this.x0+this.a*this.k0*h,i=this.y0+this.a*r*.5/this.k0}return t.x=s,t.y=i,t},inverse:function(t){var s,i;return t.x-=this.x0,t.y-=this.y0,this.sphere?(s=q(this.long0+t.x/this.a/Math.cos(this.lat_ts),this.over),i=Math.asin(t.y/this.a*Math.cos(this.lat_ts))):(i=function(t,s){if(1e-6>Math.abs(Math.abs(s)-(1-(1-t*t)/(2*t)*Math.log((1-t)/(1+t)))))if(s<0)return -1*a;else return a;for(var i,e,h,r,n=Math.asin(.5*s),o=0;o<30;o++)if(e=Math.sin(n),h=Math.cos(n),n+=i=Math.pow(1-(r=t*e)*r,2)/(2*h)*(s/(1-t*t)-e/(1-r*r)+.5/t*Math.log((1-r)/(1+r))),1e-10>=Math.abs(i))return n;return NaN}(this.e,2*t.y*this.k0/this.a),s=q(this.long0+t.x/(this.a*this.k0),this.over)),t.x=s,t.y=i,t},names:["cea"]},t9={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Equidistant Cylindrical (Plate Carre)",this.rc=Math.cos(this.lat_ts)},forward:function(t){var s=t.x,i=t.y,a=q(s-this.long0,this.over),e=tZ(i-this.lat0);return t.x=this.x0+this.a*a*this.rc,t.y=this.y0+this.a*e,t},inverse:function(t){var s=t.x,i=t.y;return t.x=q(this.long0+(s-this.x0)/(this.a*this.rc),this.over),t.y=tZ(this.lat0+(i-this.y0)/this.a),t},names:["Equirectangular","Equidistant_Cylindrical","Equidistant_Cylindrical_Spherical","eqc"]},t7={init:function(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=tK(this.es),this.e1=tV(this.es),this.e2=tJ(this.es),this.e3=tY(this.es),this.ml0=this.a*tX(this.e0,this.e1,this.e2,this.e3,this.lat0)}
1,forward:function(t){var s,i,a,e=t.x,h=t.y,r=q(e-this.long0,this.over);if(a=r*Math.sin(h),this.sphere)1e-10>=Math.abs(h)?(s=this.a*r,i=-1*this.a*this.lat0):(s=this.a*Math.sin(a)/Math.tan(h),i=this.a*(tZ(h-this.lat0)+(1-Math.cos(a))/Math.tan(h)));else if(1e-10>=Math.abs(h))s=this.a*r,i=-1*this.ml0;else{var n=t$(this.a,this.e,Math.sin(h))/Math.tan(h);s=n*Math.sin(a),i=this.a*tX(this.e0,this.e1,this.e2,this.e3,h)-this.ml0+n*(1-Math.cos(a))}return t.x=s+this.x0,t.y=i+this.y0,t},inverse:function(t){var s,i,a,e,h,r,n,o,l,_,c,u,M,g,d;if(a=t.x-this.x0,e=t.y-this.y0,this.sphere)if(1e-10>=Math.abs(e+this.a*this.lat0))s=q(a/this.a+this.long0,this.over),i=0;else{for(h=20,r=this.lat0+e/this.a,n=a*a/this.a/this.a+r*r,o=r;h;--h)if(_=Math.tan(o),l=-1*(r*(o*_+1)-o-.5*(o*o+n)*_)/((o-r)/_-1),o+=l,1e-10>=Math.abs(l)){i=o;break}s=q(this.long0+Math.asin(a*Math.tan(o)/this.a)/Math.sin(i),this.over)}else if(1e-10>=Math.abs(e+this.ml0))i=0,s=q(this.long0+a/this.a,this.over);else{for(h=20,r=(this.ml0+e)/this.a,n=a*a/this.a/this.a+r*r,o=r;h;--h)if(c=Math.sqrt(1-(d=this.e*Math.sin(o))*d)*Math.tan(o),u=this.a*tX(this.e0,this.e1,this.e2,this.e3,o),M=this.e0-2*this.e1*Math.cos(2*o)+4*this.e2*Math.cos(4*o)-6*this.e3*Math.cos(6*o),l=(r*(c*(g=u/this.a)+1)-g-.5*c*(g*g+n))/(this.es*Math.sin(2*o)*(g*g+n-2*r*g)/(4*c)+(r-g)*(c*M-2/Math.sin(2*o))-M),o-=l,1e-10>=Math.abs(l)){i=o;break}c=Math.sqrt(1-this.es*Math.pow(Math.sin(i),2))*Math.tan(i),s=q(this.long0+Math.asin(a*c/this.a)/Math.sin(i),this.over)}return t.x=s,t.y=i,t},names:["Polyconic","American_Polyconic","poly"]},st={init:function(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013},forward:function(t){var s,i,a,e=t.x,h=t.y-this.lat0,r=e-this.long0,n=h/484813681109536e-20*1e-5,o=1,l=0;for(s=1;s<=10;s++)o*=n,l+=this.A[s]*o;var _=l,c=1,u=0,M=0,g=0;for(s=1;s<=6;s++)i=c*_-u*r,a=u*_+c*r,c=i,u=a,M=M+this.B_re[s]*c-this.B_im[s]*u,g=g+this.B_im[s]*c+this.B_re[s]*u;return t.x=g*this.a+this.x0,t.y=M*this.a+this.y0,t},inverse:function(t){var s=t.x,i=t.y,a=s-this.x0,e=(i-this.y0)/this.a,h=a/this.a,r=1,n=0,o=0,l=0;for(c=1;c<=6;c++)u=r*e-n*h,M=n*e+r*h,r=u,n=M,o=o+this.C_re[c]*r-this.C_im[c]*n,l=l+this.C_im[c]*r+this.C_re[c]*n;for(var _=0;_<this.iterations;_++){var c,u,M,g,d,f=o,p=l,m=e,y=h;for(c=2;c<=6;c++)g=f*o-p*l,d=p*o+f*l,f=g,p=d,m+=(c-1)*(this.B_re[c]*f-this.B_im[c]*p),y+=(c-1)*(this.B_im[c]*f+this.B_re[c]*p);f=1,p=0;var E=this.B_re[1],w=this.B_im[1];for(c=2;c<=6;c++)g=f*o-p*l,d=p*o+f*l,f=g,p=d,E+=c*(this.B_re[c]*f-this.B_im[c]*p),w+=c*(this.B_im[c]*f+this.B_re[c]*p);var x=E*E+w*w;o=(m*E+y*w)/x,l=(y*E-m*w)/x}var S=o,v=l,G=1,P=0;for(c=1;c<=9;c++)G*=S,P+=this.D[c]*G;var b=this.lat0+484813681109536e-20*P*1e5;return t.x=this.long0+v,t.y=b,t},names:["New_Zealand_Map_Grid","nzmg"]},ss={init:function(){},forward:function(t){var s=t.x,i=t.y,a=q(s-this.long0,this.over),e=this.x0+this.a*a,h=this.y0+this.a*Math.log(Math.tan(Math.PI/4+i/2.5))*1.25;return t.x=e,t.y=h,t},inverse:function(t){t.x-=this.x0,t.y-=this.y0;var s=q(this.long0+t.x/this.a,this.over),i=2.5*(Math.atan(Math.exp(.8*t.y/this.a))-Math.PI/4);return t.x=s,t.y=i,t},names:["Miller_Cylindrical","mill"]},si={init:function(){this.long0=this.long0||0,this.sphere?(this.n=1,this.m=0,this.es=0,this.C_y=Math.sqrt((this.m+1)/this.n),this.C_x=this.C_y/(this.m+1)):this.en=tA(this.es)},forward:function(t){var s,i,a=t.x,e=t.y;if(a=q(a-this.long0,this.over),this.sphere){if(this.m)for(var h=this.n*Math.sin(e),r=20;r;--r){var n=(this.m*e+Math.sin(e)-h)/(this.m+Math.cos(e));if(e-=n,1e-10>Math.abs(n))break}
1else e=1!==this.n?Math.asin(this.n*Math.sin(e)):e;s=this.a*this.C_x*a*(this.m+Math.cos(e)),i=this.a*this.C_y*e}else{var o=Math.sin(e),l=Math.cos(e);i=this.a*tN(e,o,l,this.en),s=this.a*a*l/Math.sqrt(1-this.es*o*o)}return t.x=s,t.y=i,t},inverse:function(t){var s,i,e;return t.x-=this.x0,i=t.x/this.a,t.y-=this.y0,s=t.y/this.a,this.sphere?(s/=this.C_y,i/=this.C_x*(this.m+Math.cos(s)),this.m?s=t8((this.m*s+Math.sin(s))/this.n):1!==this.n&&(s=t8(Math.sin(s)/this.n)),i=q(i+this.long0,this.over),s=tZ(s)):(e=Math.abs(s=tI(t.y/this.a,this.es,this.en)))<a?(e=Math.sin(s),i=q(this.long0+t.x*Math.sqrt(1-this.es*e*e)/(this.a*Math.cos(s)),this.over)):e-1e-10<a&&(i=this.long0),t.x=i,t.y=s,t},names:["Sinusoidal","sinu"]},sa={init:function(){this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0},forward:function(t){for(var s=t.x,i=t.y,a=q(s-this.long0,this.over),e=i,h=Math.PI*Math.sin(i);;){var r=-(e+Math.sin(e)-h)/(1+Math.cos(e));if(e+=r,1e-10>Math.abs(r))break}e/=2,Math.PI/2-Math.abs(i)<1e-10&&(a=0);var n=.900316316158*this.a*a*Math.cos(e)+this.x0,o=1.4142135623731*this.a*Math.sin(e)+this.y0;return t.x=n,t.y=o,t},inverse:function(t){t.x-=this.x0,t.y-=this.y0,Math.abs(s=t.y/(1.4142135623731*this.a))>.999999999999&&(s=.999999999999);var s,i=Math.asin(s),a=q(this.long0+t.x/(.900316316158*this.a*Math.cos(i)),this.over);a<-Math.PI&&(a=-Math.PI),a>Math.PI&&(a=Math.PI),Math.abs(s=(2*i+Math.sin(2*i))/Math.PI)>1&&(s=1);var e=Math.asin(s);return t.x=a,t.y=e,t},names:["Mollweide","moll"]},se={init:function(){1e-10>Math.abs(this.lat1+this.lat2)||(this.lat2=this.lat2||this.lat1,this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=tK(this.es),this.e1=tV(this.es),this.e2=tJ(this.es),this.e3=tY(this.es),this.sin_phi=Math.sin(this.lat1),this.cos_phi=Math.cos(this.lat1),this.ms1=j(this.e,this.sin_phi,this.cos_phi),this.ml1=tX(this.e0,this.e1,this.e2,this.e3,this.lat1),1e-10>Math.abs(this.lat1-this.lat2)?this.ns=this.sin_phi:(this.sin_phi=Math.sin(this.lat2),this.cos_phi=Math.cos(this.lat2),this.ms2=j(this.e,this.sin_phi,this.cos_phi),this.ml2=tX(this.e0,this.e1,this.e2,this.e3,this.lat2),this.ns=(this.ms1-this.ms2)/(this.ml2-this.ml1)),this.g=this.ml1+this.ms1/this.ns,this.ml0=tX(this.e0,this.e1,this.e2,this.e3,this.lat0),this.rh=this.a*(this.g-this.ml0))},forward:function(t){var s,i=t.x,a=t.y;if(this.sphere)s=this.a*(this.g-a);else{var e=tX(this.e0,this.e1,this.e2,this.e3,a);s=this.a*(this.g-e)}var h=this.ns*q(i-this.long0,this.over),r=this.x0+s*Math.sin(h),n=this.y0+this.rh-s*Math.cos(h);return t.x=r,t.y=n,t},inverse:function(t){t.x-=this.x0,t.y=this.rh-t.y+this.y0,this.ns>=0?(i=Math.sqrt(t.x*t.x+t.y*t.y),s=1):(i=-Math.sqrt(t.x*t.x+t.y*t.y),s=-1);var s,i,a,e,h=0;return(0!==i&&(h=Math.atan2(s*t.x,s*t.y)),this.sphere)?(e=q(this.long0+h/this.ns,this.over),a=tZ(this.g-i/this.a),t.x=e):(a=t0(this.g-i/this.a,this.e0,this.e1,this.e2,this.e3),t.x=e=q(this.long0+h/this.ns,this.over)),t.y=a,t},names:["Equidistant_Conic","eqdc"]},sh={init:function(){this.R=this.a}
1,forward:function(t){var s,i,e=t.x,h=t.y,r=q(e-this.long0,this.over);1e-10>=Math.abs(h)&&(s=this.x0+this.R*r,i=this.y0);var n=t8(2*Math.abs(h/Math.PI));(1e-10>=Math.abs(r)||1e-10>=Math.abs(Math.abs(h)-a))&&(s=this.x0,i=h>=0?this.y0+Math.PI*this.R*Math.tan(.5*n):this.y0+-(Math.PI*this.R*Math.tan(.5*n)));var o=.5*Math.abs(Math.PI/r-r/Math.PI),l=o*o,_=Math.sin(n),c=Math.cos(n),u=c/(_+c-1),M=u*(2/_-1),g=M*M,d=Math.PI*this.R*(o*(u-g)+Math.sqrt(l*(u-g)*(u-g)-(g+l)*(u*u-g)))/(g+l);r<0&&(d=-d),s=this.x0+d;var f=l+u;return d=Math.PI*this.R*(M*f-o*Math.sqrt((g+l)*(l+1)-f*f))/(g+l),i=h>=0?this.y0+d:this.y0-d,t.x=s,t.y=i,t},inverse:function(t){var s,i,a,e,h,r,n,o,l,_,c,u;return t.x-=this.x0,t.y-=this.y0,_=Math.PI*this.R,e=(i=t.x/_)*i+(a=t.y/_)*a,r=(h=-Math.abs(a)*(1+e))-2*a*a+i*i,n=-2*h+1+2*a*a+e*e,u=a*a/n+(2*r*r*r/n/n/n-9*h*r/n/n)/27,l=2*Math.sqrt(-(o=(h-r*r/3/n)/n)/3),Math.abs(_=3*u/o/l)>1&&(_=_>=0?1:-1),c=Math.acos(_)/3,s=t.y>=0?(-l*Math.cos(c+Math.PI/3)-r/3/n)*Math.PI:-(-l*Math.cos(c+Math.PI/3)-r/3/n)*Math.PI,t.x=1e-10>Math.abs(i)?this.long0:q(this.long0+Math.PI*(e-1+Math.sqrt(1+2*(i*i-a*a)+e*e))/2/i,this.over),t.y=s,t},names:["Van_der_Grinten_I","VanDerGrinten","Van_der_Grinten","vandg"]},sr={init:function(){this.sin_p12=Math.sin(this.lat0),this.cos_p12=Math.cos(this.lat0),this.f=this.es/(1+Math.sqrt(1-this.es))},forward:function(t){var s,i,e,h,r,n,o,l,_,c,u=t.x,M=t.y,g=Math.sin(t.y),d=Math.cos(t.y),f=q(u-this.long0,this.over);if(this.sphere)if(1e-10>=Math.abs(this.sin_p12-1))return t.x=this.x0+this.a*(a-M)*Math.sin(f),t.y=this.y0-this.a*(a-M)*Math.cos(f),t;else if(1e-10>=Math.abs(this.sin_p12+1))return t.x=this.x0+this.a*(a+M)*Math.sin(f),t.y=this.y0+this.a*(a+M)*Math.cos(f),t;else return l=(o=Math.acos(this.sin_p12*g+this.cos_p12*d*Math.cos(f)))?o/Math.sin(o):1,t.x=this.x0+this.a*l*d*Math.sin(f),t.y=this.y0+this.a*l*(this.cos_p12*g-this.sin_p12*d*Math.cos(f)),t;return(s=tK(this.es),i=tV(this.es),e=tJ(this.es),h=tY(this.es),1e-10>=Math.abs(this.sin_p12-1))?(r=this.a*tX(s,i,e,h,a),n=this.a*tX(s,i,e,h,M),t.x=this.x0+(r-n)*Math.sin(f),t.y=this.y0-(r-n)*Math.cos(f),t):1e-10>=Math.abs(this.sin_p12+1)?(r=this.a*tX(s,i,e,h,a),n=this.a*tX(s,i,e,h,M),t.x=this.x0+(r+n)*Math.sin(f),t.y=this.y0+(r+n)*Math.cos(f),t):(1e-10>Math.abs(u)&&1e-10>Math.abs(M-this.lat0)?t.x=t.y=0:(c=(_=function(t,s,i,a,e,h){let r,n,o,l,_,c,u,M,g,d,f,p,m=a-s,y=Math.atan((1-h)*Math.tan(t)),E=Math.atan((1-h)*Math.tan(i)),w=Math.sin(y),x=Math.cos(y),S=Math.sin(E),v=Math.cos(E),G=m,P,b=100;do{if(0===(o=Math.sqrt(v*(r=Math.sin(G))*(v*r)+(x*S-w*v*(n=Math.cos(G)))*(x*S-w*v*n))))return{azi1:0,s12:0};_=Math.atan2(o,l=w*S+x*v*n),M=0!=(u=1-(c=x*v*r/o)*c)?l-2*w*S/u:0,g=h/16*u*(4+h*(4-3*u)),P=G,G=m+(1-g)*h*c*(_+g*o*(M+g*l*(-1+2*M*M)))}while(Math.abs(G-P)>1e-12&&--b>0);return 0===b?{azi1:NaN,s12:NaN}:(f=1+(d=u*(e*e-e*(1-h)*(e*(1-h)))/(e*(1-h)*(e*(1-h))))/16384*(4096+d*(-768+d*(320-175*d))),{azi1:Math.atan2(v*r,x*S-w*v*n),s12:e*(1-h)*f*(_-(p=d/1024*(256+d*(-128+d*(74-47*d))))*o*(M+p/4*(l*(-1+2*M*M)-p/6*M*(-3+4*o*o)*(-3+4*M*M))))})}(this.lat0,this.long0,M,u,this.a,this.f)).azi1,t.x=_.s12*Math.sin(c),t.y=_.s12*Math.cos(c)),t)},inverse:function(t){var s,i,e,h,r,n,o,l,_,c,u,M,g,d;if(t.x-=this.x0,t.y-=this.y0,this.sphere){if((s=Math.sqrt(t.x*t.x+t.y*t.y))>2*a*this.a)return;return e=Math.sin(i=s/this.a),h=Math.cos(i),r=this.long0,1e-10>=Math.abs(s)?n=this.lat0:(n=t8(h*this.sin_p12+t.y*e*this.cos_p12/s),r=1e-10>=Math.abs(Math.abs(this.lat0)-a)?this.lat0>=0?q(this.long0+Math.atan2(t.x,-t.y),this.over):q(this.long0-Math.atan2(-t.x,t.y),this.over):q(this.long0+Math.atan2(t.x*e,s*this.cos_p12*h-t.y*this.sin_p12*e),this.over)),t.x=r,t.y=n,t}return(o=tK(this.es),l=tV(this.es),_=tJ(this.es),c=tY(this.es),1e-10>=Math.abs(this.sin_p12-1))?(n=t0(((u=this.a*tX(o,l,_,c,a))-(s=Math.sqrt(t.x*t.x+t.y*t.y)))/this.a,o,l,_,c),r=q(this.long0+Math.atan2(t.x,-1*t.y),this.over),t.x=r,t.y=n):1e-10>=Math.abs(this.sin_p12+1)?(u=this.a*tX(o,l,_,c,a),n=t0(((s=Math.sqrt(t.x*t.x+t.y*t.y))-u)/this.a,o,l,_,c),r=q(this.long0+Math.atan2(t.x,t.y),this.over),t.x=r,t.y=n):(M=Math.atan2(t.x,t.y),g=Math.sqrt(t.x*t.x+t.y*t.y),t.x=(d=function(t,s,i,a,e,h){let r,n,o,l,_=Math.atan((1-h)*Math.tan(t)),c=Math.sin(_),u=Math.cos(_),M=Math.sin(i),g=Math.cos(i),d=Math.atan2(c,u*g),f=u*M,p=1-f*f,m=p*(e*e-e*(1-h)*(e*(1-h)))/(e*(1-h)*(e*(1-h))),y=1+m/16384*(4096+m*(-768+m*(320-175*m))),E=m/1024*(256+m*(-128+m*(74-47*m))),w=a/(e*(1-h)*y),x,S=100;do r=Math.cos(2*d+w),l=E*(n=Math.sin(w))*(r+E/4*((o=Math.cos(w))*(-1+2*r*r)-E/6*r*(-3+4*n*n)*(-3+4*r*r))),x=w,w=a/(e*(1-h)*y)+l;
1while(Math.abs(w-x)>1e-12&&--S>0);if(0===S)return{lat2:NaN,lon2:NaN};let v=c*n-u*o*g,G=Math.atan2(c*o+u*n*g,(1-h)*Math.sqrt(f*f+v*v)),P=h/16*p*(4+h*(4-3*p));return{lat2:G,lon2:s+(Math.atan2(n*M,u*o-c*n*g)-(1-P)*h*f*(w+P*n*(r+P*o*(-1+2*r*r))))}}(this.lat0,this.long0,M,g,this.a,this.f)).lon2,t.y=d.lat2),t},names:["Azimuthal_Equidistant","aeqd"]},sn={init:function(){this.sin_p14=Math.sin(this.lat0||0),this.cos_p14=Math.cos(this.lat0||0)},forward:function(t){var s,i,a,e,h,r,n,o=t.x,l=t.y;return a=q(o-(this.long0||0),this.over),s=Math.sin(l),i=Math.cos(l),e=Math.cos(a),((h=this.sin_p14*s+this.cos_p14*i*e)>0||1e-10>=Math.abs(h))&&(r=this.a*i*Math.sin(a),n=(this.y0||0)+this.a*(this.cos_p14*s-this.sin_p14*i*e)),t.x=r,t.y=n,t},inverse:function(t){var s,i,e,h,r,n,o,l;return(t.x-=this.x0||0,t.y-=this.y0||0,e=Math.sin(i=t8((s=Math.sqrt(t.x*t.x+t.y*t.y))/this.a)),h=Math.cos(i),o=this.long0||0,l=this.lat0||0,r=o,1e-10>=Math.abs(s))?n=l:(n=t8(h*this.sin_p14+t.y*e*this.cos_p14/s),1e-10>=Math.abs(Math.abs(l)-a))?r=l>=0?q(o+Math.atan2(t.x,-t.y),this.over):q(o-Math.atan2(-t.x,t.y),this.over):r=q(o+Math.atan2(t.x*e,s*this.cos_p14*h-t.y*this.sin_p14*e),this.over),t.x=r,t.y=n,t},names:["ortho"]};var so={FRONT:1,RIGHT:2,BACK:3,LEFT:4,TOP:5,BOTTOM:6},sl={AREA_0:1,AREA_1:2,AREA_2:3,AREA_3:4};function s_(t,s,i,h){var r;return t<1e-10?(h.value=sl.AREA_0,r=0):Math.abs(r=Math.atan2(s,i))<=e?h.value=sl.AREA_0:r>e&&r<=a+e?(h.value=sl.AREA_1,r-=a):r>a+e||r<=-(a+e)?(h.value=sl.AREA_2,r=r>=0?r-3.14159265359:r+3.14159265359):(h.value=sl.AREA_3,r+=a),r}function sc(t,s){var i=t+s;return i<-3.14159265359?i+=h:i>3.14159265359&&(i-=h),i}let su={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Quadrilateralized Spherical Cube",this.lat0>=a-e/2?this.face=so.TOP:this.lat0<=-(a-e/2)?this.face=so.BOTTOM:Math.abs(this.long0)<=e?this.face=so.FRONT:Math.abs(this.long0)<=a+e?this.face=this.long0>0?so.RIGHT:so.LEFT:this.face=so.BACK,0!==this.es&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)},forward:function(t){var s,i,h,r,n,o,l,_,c,u,M,g={x:0,y:0},d={value:0};return(t.x-=this.long0,s=0!==this.es?Math.atan(this.one_minus_f_squared*Math.tan(t.y)):t.y,i=t.x,this.face===so.TOP)?(r=a-s,i>=e&&i<=a+e?(d.value=sl.AREA_0,h=i-a):i>a+e||i<=-(a+e)?(d.value=sl.AREA_1,h=i>0?i-3.14159265359:i+3.14159265359):i>-(a+e)&&i<=-e?(d.value=sl.AREA_2,h=i+a):(d.value=sl.AREA_3,h=i)):this.face===so.BOTTOM?(r=a+s,i>=e&&i<=a+e?(d.value=sl.AREA_0,h=-i+a):i<e&&i>=-e?(d.value=sl.AREA_1,h=-i):i<-e&&i>=-(a+e)?(d.value=sl.AREA_2,h=-i-a):(d.value=sl.AREA_3,h=i>0?-i+3.14159265359:-i-3.14159265359)):(this.face===so.RIGHT?i=sc(i,+a):this.face===so.BACK?i=sc(i,3.14159265359):this.face===so.LEFT&&(i=sc(i,-a)),c=Math.sin(s),u=Math.cos(s),M=Math.sin(i),l=u*Math.cos(i),_=u*M,this.face===so.FRONT?h=s_(r=Math.acos(l),c,_,d):this.face===so.RIGHT?h=s_(r=Math.acos(_),c,-l,d):this.face===so.BACK?h=s_(r=Math.acos(-l),c,-_,d):this.face===so.LEFT?h=s_(r=Math.acos(-_),c,l,d):(r=h=0,d.value=sl.AREA_0)),n=Math.sqrt((1-Math.cos(r))/(Math.cos(o=Math.atan(3.8197186342052367*(h+Math.acos(Math.sin(h)*Math.cos(e))-a)))*Math.cos(o))/(1-Math.cos(Math.atan(1/Math.cos(h))))),d.value===sl.AREA_1?o+=a:d.value===sl.AREA_2?o+=3.14159265359:d.value===sl.AREA_3&&(o+=4.7123889803850005),g.x=n*Math.cos(o),g.y=n*Math.sin(o),g.x=g.x*this.a+this.x0,g.y=g.y*this.a+this.y0,t.x=g.x,t.y=g.y,t},inverse:function(t){var s,i,e,h,r,n,o,l,_,c,u,M,g,d={lam:0,phi:0},f={value:0};return t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,i=Math.atan(Math.sqrt(t.x*t.x+t.y*t.y)),s=Math.atan2(t.y,t.x),t.x>=0&&t.x>=Math.abs(t.y)?f.value=sl.AREA_0:t.y>=0&&t.y>=Math.abs(t.x)?(f.value=sl.AREA_1,s-=a):t.x<0&&-t.x>=Math.abs(t.y)?(f.value=sl.AREA_2,s=s<0?s+3.14159265359:s-3.14159265359):(f.value=sl.AREA_3,s+=a),r=Math.atan(Math.sin(o=3.14159265359/12*Math.tan(s))/(Math.cos(o)-1/Math.sqrt(2))),(n=1-(e=Math.cos(s))*e*(h=Math.tan(i))*h*(1-Math.cos(Math.atan(1/Math.cos(r)))))<-1?n=-1:n>1&&(n=1),this.face===so.TOP?(d.phi=a-Math.acos(n),f.value===sl.AREA_0?d.lam=r+a:f.value===sl.AREA_1?d.lam=r<0?r+3.14159265359:r-3.14159265359:f.value===sl.AREA_2?d.lam=r-a:d.lam=r):this.face===so.BOTTOM?(d.phi=Math.acos(n)-a,f.value===sl.AREA_0?d.lam=-r+a:f.value===sl.AREA_1?d.lam=-r:f.value===sl.AREA_2?d.lam=-r-a:d.lam=r<0?-r-3.14159265359:-r+3.14159265359):(c=(o=(l=n)*l)>=1?0:Math.sqrt(1-o)*Math.sin(r),o+=c*c,_=o>=1?0:Math.sqrt(1-o),f.value===sl.AREA_1?(o=_,_=-c,c=o):f.value===sl.AREA_2?(_=-_,c=-c):f.value===sl.AREA_3&&(o=_,_=c,c=-o),this.face===so.RIGHT?(o=l,l=-_,_=o):this.face===so.BACK?(l=-l,_=-_):this.face===so.LEFT&&(o=l,l=_,_=-o),d.phi=Math.acos(-c)-a,d.lam=Math.atan2(_,l),this.face===so.RIGHT?d.lam=sc(d.lam,-a):this.face===so.BACK?d.lam=sc(d.lam,-3.14159265359):this.face===so.LEFT&&(d.lam=sc(d.lam,+a))),0!==this.es&&(u=+(d.phi<0),M=Math.tan(d.phi),g=this.b/Math.sqrt(M*M+this.one_minus_f_squared),d.phi=Math.atan(Math.sqrt(this.a*this.a-g*g)/(this.one_minus_f*g)),u&&(d.phi=-d.phi)),d.lam+=this.long0,t.x=d.lam,t.y=d.phi,t},names:["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"]};var sM=[[1,22199e-21,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-986701e-12],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,18736e-12],[.96,-.00305085,-900761e-10,164917e-11],[.9427,-.00382792,-653386e-10,-26154e-10],[.9216,-.00467746,-10457e-8,481243e-11],[.8962,-.00536223,-323831e-10,-543432e-11],[.8679,-.00609363,-113898e-9,332484e-11],[.835,-.00698325,-640253e-10,934959e-12],[.7986,-.00755338,-500009e-10,935324e-12],[.7597,-.00
1798324,-35971e-9,-227626e-11],[.7186,-.00851367,-701149e-10,-86303e-10],[.6732,-.00986209,-199569e-9,191974e-10],[.6213,-.010418,883923e-10,624051e-11],[.5722,-.00906601,182e-6,624051e-11],[.5322,-.00677797,275608e-9,624051e-11]],sg=[[-520417e-23,.0124,121431e-23,-845284e-16],[.062,.0124,-126793e-14,422642e-15],[.124,.0124,507171e-14,-160604e-14],[.186,.0123999,-190189e-13,600152e-14],[.248,.0124002,710039e-13,-224e-10],[.31,.0123992,-264997e-12,835986e-13],[.372,.0124029,988983e-12,-311994e-12],[.434,.0123893,-369093e-11,-435621e-12],[.4958,.0123198,-102252e-10,-345523e-12],[.5571,.0121916,-154081e-10,-582288e-12],[.6176,.0119938,-241424e-10,-525327e-12],[.6769,.011713,-320223e-10,-516405e-12],[.7346,.0113541,-397684e-10,-609052e-12],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-140374e-14],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],sd=function(t,s){return t[0]+s*(t[1]+s*(t[2]+s*t[3]))};let sf={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.es=0,this.title=this.title||"Robinson"},forward:function(t){var s=q(t.x-this.long0,this.over),i=Math.abs(t.y),a=Math.floor(11.459155902616464*i);a<0?a=0:a>=18&&(a=17),i=57.29577951308232*(i-.08726646259971647*a);var e={x:sd(sM[a],i)*s,y:sd(sg[a],i)};return t.y<0&&(e.y=-e.y),e.x=e.x*this.a*.8487+this.x0,e.y=e.y*this.a*1.3523+this.y0,e},inverse:function(t){var s={x:(t.x-this.x0)/(.8487*this.a),y:Math.abs(t.y-this.y0)/(1.3523*this.a)};if(s.y>=1)s.x/=sM[18][0],s.y=t.y<0?-a:a;else{var i=Math.floor(18*s.y);for(i<0?i=0:i>=18&&(i=17);;)if(sg[i][0]>s.y)--i;else if(sg[i+1][0]<=s.y)++i;else break;var e=sg[i],h=5*(s.y-e[0])/(sg[i+1][0]-e[0]);h=function(t,s,i,a){for(var e=s;a;--a){var h=t(e);if(e-=h,1e-10>Math.abs(h))break}return e}(function(t){return(sd(e,t)-s.y)/(e[1]+t*(2*e[2]+3*t*e[3]))},h,0,100),s.x/=sd(sM[i],h),s.y=(5*i+h)*.017453292519943295,t.y<0&&(s.y=-s.y)}return s.x=q(s.x+this.long0,this.over),s},names:["Robinson","robin"]},sp={init:function(){this.name="geocent"},forward:function(t){return tr(t,this.es,this.a)},inverse:function(t){return tn(t,this.es,this.a,this.b)},names:["Geocentric","geocentric","geocent","Geocent"]};var sm={N_POLE:0,S_POLE:1,EQUIT:2,OBLIQ:3},sy={h:{def:1e5,num:!0},azi:{def:0,num:!0,degrees:!0},tilt:{def:0,num:!0,degrees:!0},long0:{def:0,num:!0},lat0:{def:0,num:!0}};
1let sE={init:function(){if(Object.keys(sy).forEach((function(t){if(void 0===this[t])this[t]=sy[t].def;else if(sy[t].num&&isNaN(this[t]))throw Error("Invalid parameter value, must be numeric "+t+" = "+this[t]);else sy[t].num&&(this[t]=parseFloat(this[t]));sy[t].degrees&&(this[t]=.017453292519943295*this[t])}).bind(this)),1e-10>Math.abs(Math.abs(this.lat0)-a)?this.mode=this.lat0<0?sm.S_POLE:sm.N_POLE:1e-10>Math.abs(this.lat0)?this.mode=sm.EQUIT:(this.mode=sm.OBLIQ,this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0)),this.pn1=this.h/this.a,this.pn1<=0||this.pn1>1e10)throw Error("Invalid height");this.p=1+this.pn1,this.rp=1/this.p,this.h1=1/this.pn1,this.pfact=(this.p+1)*this.h1,this.es=0;var t=this.tilt,s=this.azi;this.cg=Math.cos(s),this.sg=Math.sin(s),this.cw=Math.cos(t),this.sw=Math.sin(t)},forward:function(t){t.x-=this.long0;var s,i,a,e,h=Math.sin(t.y),r=Math.cos(t.y),n=Math.cos(t.x);switch(this.mode){case sm.OBLIQ:i=this.sinph0*h+this.cosph0*r*n;break;case sm.EQUIT:i=r*n;break;case sm.S_POLE:i=-h;break;case sm.N_POLE:i=h}switch(s=(i=this.pn1/(this.p-i))*r*Math.sin(t.x),this.mode){case sm.OBLIQ:i*=this.cosph0*h-this.sinph0*r*n;break;case sm.EQUIT:i*=h;break;case sm.N_POLE:i*=-(r*n);break;case sm.S_POLE:i*=r*n}return e=1/((a=i*this.cg+s*this.sg)*this.sw*this.h1+this.cw),s=(s*this.cg-i*this.sg)*this.cw*e,i=a*e,t.x=s*this.a,t.y=i*this.a,t},inverse:function(t){t.x/=this.a,t.y/=this.a;var s,i,a,e,h,r={x:t.x,y:t.y};a=1/(this.pn1-t.y*this.sw),s=this.pn1*t.x*a,i=this.pn1*t.y*this.cw*a,t.x=s*this.cg+i*this.sg,t.y=i*this.cg-s*this.sg;var n=tO(t.x,t.y);if(1e-10>Math.abs(n))r.x=0,r.y=t.y;else{switch(h=1-n*n*this.pfact,e=Math.sqrt(1-(h=(this.p-Math.sqrt(h))/(this.pn1/n+n/this.pn1))*h),this.mode){case sm.OBLIQ:r.y=Math.asin(e*this.sinph0+t.y*h*this.cosph0/n),t.y=(e-this.sinph0*Math.sin(r.y))*n,t.x*=h*this.cosph0;break;case sm.EQUIT:r.y=Math.asin(t.y*h/n),t.y=e*n,t.x*=h;break;case sm.N_POLE:r.y=Math.asin(e),t.y=-t.y;break;case sm.S_POLE:r.y=-Math.asin(e)}r.x=Math.atan2(t.x,t.y)}return t.x=r.x+this.long0,t.y=r.y,t},names:["Tilted_Perspective","tpers"]},sw={init:function(){if(this.flip_axis=+("x"===this.sweep),this.h=Number(this.h),this.radius_g_1=this.h/this.a,this.radius_g_1<=0||this.radius_g_1>1e10)throw Error();if(this.radius_g=1+this.radius_g_1,this.C=this.radius_g*this.radius_g-1,0!==this.es){var t=1-this.es;this.radius_p=Math.sqrt(t),this.radius_p2=t,this.radius_p_inv2=1/t,this.shape="ellipse"}else this.radius_p=1,this.radius_p2=1,this.radius_p_inv2=1,this.shape="sphere";this.title||(this.title="Geostationary Satellite View")},forward:function(t){var s,i,a,e,h=t.x,r=t.y;if(h-=this.long0,"ellipse"===this.shape){r=Math.atan(this.radius_p2*Math.tan(r));var n=this.radius_p/tO(this.radius_p*Math.cos(r),Math.sin(r));if(i=n*Math.cos(h)*Math.cos(r),a=n*Math.sin(h)*Math.cos(r),e=n*Math.sin(r),(this.radius_g-i)*i-a*a-e*e*this.radius_p_inv2<0)return t.x=NaN,t.y=NaN,t;s=this.radius_g-i,this.flip_axis?(t.x=this.radius_g_1*Math.atan(a/tO(e,s)),t.y=this.radius_g_1*Math.atan(e/s)):(t.x=this.radius_g_1*Math.atan(a/s),t.y=this.radius_g_1*Math.atan(e/tO(a,s)))}else"sphere"===this.shape&&(i=Math.cos(h)*(s=Math.cos(r)),a=Math.sin(h)*s,e=Math.sin(r),s=this.radius_g-i,this.flip_axis?(t.x=this.radius_g_1*Math.atan(a/tO(e,s)),t.y=this.radius_g_1*Math.atan(e/s)):(t.x=this.radius_g_1*Math.atan(a/s),t.y=this.radius_g_1*Math.atan(e/tO(a,s))));return t.x=t.x*this.a,t.y=t.y*this.a,t},inverse:function(t){var s,i,a,e,h=-1,r=0,n=0;if(t.x=t.x/this.a,t.y=t.y/this.a,"ellipse"===this.shape){this.flip_axis?(n=Math.tan(t.y/this.radius_g_1),r=Math.tan(t.x/this.radius_g_1)*tO(1,n)):(r=Math.tan(t.x/this.radius_g_1),n=Math.tan(t.y/this.radius_g_1)*tO(1,r));var o=n/this.radius_p;if(s=r*r+o*o+h*h,(a=(i=2*this.radius_g*h)*i-4*s*this.C)<0)return t.x=NaN,t.y=NaN,t;e=(-i-Math.sqrt(a))/(2*s),h=this.radius_g+e*h,r*=e,n*=e,t.x=Math.atan2(r,h),t.y=Math.atan(n*Math.cos(t.x)/h),t.y=Math.atan(this.radius_p_inv2*Math.tan(t.y))}else if("sphere"===this.shape){if(this.flip_axis?(n=Math.tan(t.y/this.radius_g_1),r=Math.tan(t.x/this.radius_g_1)*Math.sqrt(1+n*n)):(r=Math.tan(t.x/this.radius_g_1),n=Math.tan(t.y/this.radius_g_1)*Math.sqrt(1+r*r)),s=r*r+n*n+h*h,(a=(i=2*this.radius_g*h)*i-4*s*this.C)<0)return t.x=NaN,t.y=NaN,t;e=(-i-Math.sqrt(a))/(2*s),h=this.radius_g+e*h,r*=e,n*=e,t.x=Math.atan2(r,h),t.y=Math.atan(n*Math.cos(t.x)/h)}return t.x=t.x+this.long0,t},names:["Geostationary Satellite View","Geostationary_Satellite","geos"]};var sx=Math.sqrt(3)/2;let sS={init:function(){this.es=0,this.long0=void 0!==this.long0?this.long0:0,this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0},forward:function(t){var s=q(t.x-this.long0,this.over),i=Math.asin(sx*Math.sin(t.y)),a=i*i,e=a*
1a*a;return t.x=s*Math.cos(i)/(sx*(1.340264+-.24331799999999998*a+e*(.0062510000000000005+.034164*a))),t.y=i*(1.340264+-.081106*a+e*(893e-6+.003796*a)),t.x=this.a*t.x+this.x0,t.y=this.a*t.y+this.y0,t},inverse:function(t){t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a;var s,i,a,e,h,r=t.y;for(h=0;h<12&&(i=(s=r*r)*s*s,a=r*(1.340264+-.081106*s+i*(893e-6+.003796*s))-t.y,r-=e=a/(1.340264+-.24331799999999998*s+i*(.0062510000000000005+.034164*s)),!(1e-9>Math.abs(e)));++h);return i=(s=r*r)*s*s,t.x=sx*t.x*(1.340264+-.24331799999999998*s+i*(.0062510000000000005+.034164*s))/Math.cos(r),t.y=Math.asin(Math.sin(r)/sx),t.x=q(t.x+this.long0,this.over),t},names:["eqearth","Equal Earth","Equal_Earth"]};function sv(t){var s,i,a,e=q(t.x-(this.long0||0),this.over),h=t.y;return s=this.am1+this.m1-tN(h,i=Math.sin(h),a=Math.cos(h),this.en),i=a*e/(s*Math.sqrt(1-this.es*i*i)),t.x=s*Math.sin(i),t.y=this.am1-s*Math.cos(i),t.x=this.a*t.x+(this.x0||0),t.y=this.a*t.y+(this.y0||0),t}function sG(t){var s,i,e,h;if(t.x=(t.x-(this.x0||0))/this.a,t.y=(t.y-(this.y0||0))/this.a,i=tO(t.x,t.y=this.am1-t.y),(s=Math.abs(h=tI(this.am1+this.m1-i,this.es,this.en)))<a)s=Math.sin(h),e=i*Math.atan2(t.x,t.y)*Math.sqrt(1-this.es*s*s)/Math.cos(h);else if(1e-10>=Math.abs(s-a))e=0;else throw Error();return t.x=q(e+(this.long0||0),this.over),t.y=tZ(h),t}function sP(t){var s,i,a=q(t.x-(this.long0||0),this.over),e=t.y;return Math.abs(i=this.cphi1+this.phi1-e)>1e-10?(t.x=i*Math.sin(s=a*Math.cos(e)/i),t.y=this.cphi1-i*Math.cos(s)):t.x=t.y=0,t.x=this.a*t.x+(this.x0||0),t.y=this.a*t.y+(this.y0||0),t}function sb(t){t.x=(t.x-(this.x0||0))/this.a,t.y=(t.y-(this.y0||0))/this.a;var s,i,e=tO(t.x,t.y=this.cphi1-t.y);if(Math.abs(i=this.cphi1+this.phi1-e)>a)throw Error();return s=1e-10>=Math.abs(Math.abs(i)-a)?0:e*Math.atan2(t.x,t.y)/Math.cos(i),t.x=q(s+(this.long0||0),this.over),t.y=tZ(i),t}let sA={init:function(){var t;if(this.phi1=this.lat1,1e-10>Math.abs(this.phi1))throw Error();this.es?(this.en=tA(this.es),this.m1=tN(this.phi1,this.am1=Math.sin(this.phi1),t=Math.cos(this.phi1),this.en),this.am1=t/(Math.sqrt(1-this.es*this.am1*this.am1)*this.am1),this.inverse=sG,this.forward=sv):(Math.abs(this.phi1)+1e-10>=a?this.cphi1=0:this.cphi1=1/Math.tan(this.phi1),this.inverse=sb,this.forward=sP)},names:["bonne","Bonne (Werner lat_1=90)"]},sN={OBLIQUE:{forward:function(t,s){let{x:i,y:a}=s,e=Math.cos(i+=t.long0),h=Math.sin(a),r=Math.cos(a);s.x=q(Math.atan2(r*Math.sin(i),t.sphip*r*e+t.cphip*h)+t.lamp),s.y=Math.asin(t.sphip*h-t.cphip*r*e);let n=t.obliqueProjection.forward(s);return t.isIdentity&&(n.x*=57.29577951308232,n.y*=57.29577951308232),n},inverse:function(t,s){t.isIdentity&&(s.x*=.017453292519943295,s.y*=.017453292519943295);let{x:i,y:a}=t.obliqueProjection.inverse(s);if(i<Number.MAX_VALUE){let e=Math.cos(i-=t.lamp),h=Math.sin(a),r=Math.cos(a);s.x=Math.atan2(r*Math.sin(i),t.sphip*r*e-t.cphip*h),s.y=Math.asin(t.sphip*h+t.cphip*r*e)}return s.x=q(s.x+t.long0),s}},TRANSVERSE:{forward:function(t,s){let{x:i,y:a}=s;i+=t.long0;let e=Math.cos(a),h=Math.cos(i);s.x=q(Math.atan2(e*Math.sin(i),Math.sin(a))+t.lamp),s.y=Math.asin(-1*e*h);let r=t.obliqueProjection.forward(s);return t.isIdentity&&(r.x*=57.29577951308232,r.y*=57.29577951308232),r},inverse:function(t,s){t.isIdentity&&(s.x*=.017453292519943295,s.y*=.017453292519943295);let{x:i,y:a}=t.obliqueProjection.inverse(s);if(i<Number.MAX_VALUE){let e=Math.cos(a);s.x=Math.atan2(e*Math.sin(i-=t.lamp),-1*Math.sin(a)),s.y=Math.asin(e*Math.cos(i))}return s.x=q(s.x+t.long0),s}}},sI={ROTATE:{o_alpha:"oAlpha",o_lon_c:"oLongC",o_lat_c:"oLatC"},NEW_POLE:{o_lat_p:"oLatP",o_lon_p:"oLongP"},NEW_EQUATOR:{o_lon_1:"oLong1",o_lat_1:"oLat1",o_lon_2:"oLong2",o_lat_2:"oLat2"}},sC={init:function(){let t;if(this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.title=this.title||"General Oblique Transformation",this.isIdentity=U.includes(this.o_proj),!this.o_proj)throw Error("Missing parameter: o_proj");if("ob_tran"===this.o_proj)throw Error("Invalid value for o_proj: "+this.o_proj);let s=th(this.projStr.replace("+proj=ob_tran","").replace("+o_proj=","+proj=").trim());if(!s)throw Error("Invalid parameter: o_proj. Unknown projection "+this.o_proj);s.long0=0,this.obliqueProjection=s;let i=Object.keys(sI),e=t=>{if(void 0===this[t])return;let s=.017453292519943295*parseFloat(this[t]);if(isNaN(s))throw Error("Invalid value for "+t+": "+this[t]);return s};for(let s=0;s<i.length;s++){let a=sI[i[s]],h=Object.entries(a);if(h.some(([t])=>void 0!==this[t])){t=a;for(let t=0;t<h.length;t++){let[s,i]=h[t],a=e(s);if(void 0===a)throw Error("Missing parameter: "+s+".");this[i]=a}break}}if(!t)throw Error("No valid parameters provided for ob_tran projection.");let{lamp:h,phip:r}=function(t,s){let i,e;if(s===sI.ROTATE){let s=t.oLongC,h=t.oLatC,r=t.oAlpha;if(1e-10>=Math.abs(Math.abs(h)-a))throw Error("Invalid value for o_lat_c: "+t.o_lat_c+" should be < 90\xb0");e=s+Math.atan2(-1*Math.cos(r),-1*Math.sin(r)*Math.sin(h)),i=Math.asin(Math.cos(h)*Math.sin(r))}else if(s===sI.NEW_POLE)e=t.oLongP,i=t.oLatP;else{let s=t.oLong1,h=t.oLat1,r=t.oLong2,n=t.oLat2,o=Math.abs(h);if(Math.abs(h)>a-1e-10)throw Error("Invalid value for o_lat_1: "+t.o_lat_1+" should be < 90\xb0");if(Math.abs(n)>a-1e-10)throw Error("Invalid value for o_lat_2: "+t.o_lat_2+" should be < 90\xb0");if(1e-10>Math.abs(h-n))throw Error("Invalid value for o_lat_1 and o_lat_2: o_lat_1 should be different from o_lat_2");if(o<1e-10)throw Error("Invalid value for o_lat_1: o_lat_1 should be different from zero");i=Math.atan(-1*Math.cos((e=Math.atan2(Math.cos(h)*Math.sin(n)*Math.cos(s)-Math.sin(h)*Math.cos(n)*Math.cos(r),Math.sin(h)*Math.cos(n)*Math.sin(r)-Math.cos(h)*Math.sin(n)*Math.sin(s))
1)-s)/Math.tan(h))}return{lamp:e,phip:i}}(this,t);this.lamp=h,Math.abs(r)>1e-10?(this.cphip=Math.cos(r),this.sphip=Math.sin(r),this.projectionType=sN.OBLIQUE):this.projectionType=sN.TRANSVERSE},forward:function(t){return this.projectionType.forward(this,t)},inverse:function(t){return this.projectionType.inverse(this,t)},names:["General Oblique Transformation","General_Oblique_Transformation","ob_tran"]},sR=Object.assign(function(t,s,i){var a,e,h,r=!1;return(void 0===s?(e=tp(t),a=td,r=!0):(void 0!==s.x||Array.isArray(s))&&(i=s,e=tp(t),a=td,r=!0),a||(a=tp(t)),e||(e=tp(s)),i)?tf(a,e,i):(h={forward:function(t,s){return tf(a,e,t,s)},inverse:function(t,s){return tf(e,a,t,s)}},r&&(h.oProj=e),h)},{defaultDatum:"WGS84",Proj:th,WGS84:new th("WGS84"),Point:tb,toPoint:tu,defs:C,nadgrid:function(t,s,i){var a,e,h,r,n,o,l,_,c,u,M,g,d;return s instanceof ArrayBuffer?(a=t,e=s,r=!0,void 0!==(h=i)&&!1===h.includeErrorFields&&(r=!1),u=11!==(o=(n=c=new DataView(e)).getInt32(8,!1))&&(11!==(o=n.getInt32(8,!0))&&console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian"),!0),M=(l=c,_=u,{nFields:l.getInt32(8,_),nSubgridFields:l.getInt32(24,_),nSubgrids:l.getInt32(40,_),shiftType:te(l,56,64).trim(),fromSemiMajorAxis:l.getFloat64(120,_),fromSemiMinorAxis:l.getFloat64(136,_),toSemiMajorAxis:l.getFloat64(152,_),toSemiMinorAxis:l.getFloat64(168,_)}),g=function(t,s,i,a){for(var e=176,h=[],r=0;r<s.nSubgrids;r++){var n,o,l,_=(n=t,o=e,l=i,{name:te(n,o+8,o+16).trim(),parent:te(n,o+24,o+24+8).trim(),lowerLatitude:n.getFloat64(o+72,l),upperLatitude:n.getFloat64(o+88,l),lowerLongitude:n.getFloat64(o+104,l),upperLongitude:n.getFloat64(o+120,l),latitudeInterval:n.getFloat64(o+136,l),longitudeInterval:n.getFloat64(o+152,l),gridNodeCount:n.getInt32(o+168,l)}),c=function(t,s,i,a,e){var h=s+176,r=16;!1===e&&(r=8);for(var n=[],o=0;o<i.gridNodeCount;o++){var l={latitudeShift:t.getFloat32(h+o*r,a),longitudeShift:t.getFloat32(h+o*r+4,a)};!1!==e&&(l.latitudeAccuracy=t.getFloat32(h+o*r+8,a),l.longitudeAccuracy=t.getFloat32(h+o*r+12,a)),n.push(l)}return n}(t,e,_,i,a),u=Math.round(1+(_.upperLongitude-_.lowerLongitude)/_.longitudeInterval),M=Math.round(1+(_.upperLatitude-_.lowerLatitude)/_.latitudeInterval);h.push({ll:[ta(_.lowerLongitude),ta(_.lowerLatitude)],del:[ta(_.longitudeInterval),ta(_.latitudeInterval)],lim:[u,M],count:_.gridNodeCount,cvs:c.map(function(t){return[ta(t.longitudeShift),ta(t.latitudeShift)]})});var g=16;!1===a&&(g=8),e+=176+_.gridNodeCount*g}return h}(c,M,u,r),d={header:M,subgrids:g},Z[a]=d,d):{ready:tt(t,s)}},transform:tg,mgrs:{forward:tE,inverse:function(t){var s=tv(tP(t.toUpperCase()));return s.lat&&s.lon?[s.lon,s.lat,s.lon,s.lat]:[s.left,s.bottom,s.right,s.top]},toPoint:tw},version:"__VERSION__"});!function(t){t.Proj.projections.add(tC),t.Proj.projections.add(tT),t.Proj.projections.add(tq),t.Proj.projections.add(tB),t.Proj.projections.add(tD),t.Proj.projections.add(tz),t.Proj.projections.add(tW),t.Proj.projections.add(tH),t.Proj.projections.add(tQ),t.Proj.projections.add(t1),t.Proj.projections.add(t2),t.Proj.projections.add(t3),t.Proj.projections.add(t5),t.Proj.projections.add(t6),t.Proj.projections.add(t9),t.Proj.projections.add(t7),t.Proj.projections.add(st),t.Proj.projections.add(ss),t.Proj.projections.add(si),t.Proj.projections.add(sa),t.Proj.projections.add(se),t.Proj.projections.add(sh),t.Proj.projections.add(sr),t.Proj.projections.add(sn),t.Proj.projections.add(su),t.Proj.projections.add(sf),t.Proj.projections.add(sp),t.Proj.projections.add(sE),t.Proj.projections.add(sw),t.Proj.projections.add(sS),t.Proj.projections.add(sA),t.Proj.projections.add(sC)}(sR);let sO=sR},38680:(t,s,i)=>{i.d(s,{A:()=>g});let a=(3+8881784197001252e-31)*11102230246251565e-32;function e(t,s,i,a,e){let h,r,n,o,l=s[0],_=a[0],c=0,u=0;_>l==_>-l?(h=l,l=s[++c]):(h=_,_=a[++u]);let M=0;if(c<t&&u<i)for(_>l==_>-l?(r=l+h,n=h-(r-l),l=s[++c]):(r=_+h,n=h-(r-_),_=a[++u]),h=r,0!==n&&(e[M++]=n);c<t&&u<i;)_>l==_>-l?(o=(r=h+l)-h,n=h-(r-o)+(l-o),l=s[++c]):(o=(r=h+_)-h,n=h-(r-o)+(_-o),_=a[++u]),h=r,0!==n&&(e[M++]=n);for(;c<t;)o=(r=h+l)-h,n=h-(r-o)+(l-o),l=s[++c],h=r,0!==n&&(e[M++]=n);for(;u<i;)o=(r=h+_)-h,n=h-(r-o)+(_-o),_=a[++u],h=r,0!==n&&(e[M++]=n);
1return(0!==h||0===M)&&(e[M++]=h),M}function h(t){return new Float64Array(t)}let r=(3+17763568394002505e-31)*11102230246251565e-32,n=(2+13322676295501878e-31)*11102230246251565e-32,o=(9+7105427357601002e-30)*11102230246251565e-32*11102230246251565e-32,l=h(4),_=h(8),c=h(12),u=h(16),M=h(4);h(4),h(4),h(4),h(4),h(4),h(4),h(4),h(4),h(4),h(8),h(8),h(8),h(4),h(8),h(8),h(16),h(12),h(192),h(192),h(4),h(4),h(4),h(4),h(4),h(4),h(4),h(4),h(8),h(8),h(8),h(8),h(8),h(8),h(8),h(8),h(8),h(4),h(4),h(4),h(8),h(16),h(16),h(16),h(32),h(32),h(48),h(64),h(1152),h(1152),h(4),h(4),h(4),h(4),h(4),h(4),h(4),h(4),h(4),h(4),h(24),h(24),h(24),h(24),h(24),h(24),h(24),h(24),h(24),h(24),h(1152),h(1152),h(1152),h(1152),h(1152),h(2304),h(2304),h(3456),h(5760),h(8),h(8),h(8),h(16),h(24),h(48),h(48),h(96),h(192),h(384),h(384),h(384),h(768),h(96),h(96),h(96),h(1152);var g=function(t,s,i={}){if(!t)throw Error("point is required");if(!s)throw Error("polygon is required");let h=function(t){if(!t)throw Error("coord is required");if(!Array.isArray(t)){if("Feature"===t.type&&null!==t.geometry&&"Point"===t.geometry.type)return[...t.geometry.coordinates];if("Point"===t.type)return[...t.coordinates]}if(Array.isArray(t)&&t.length>=2&&!Array.isArray(t[0])&&!Array.isArray(t[1]))return[...t];throw Error("coord must be GeoJSON Point or an Array of numbers")}(t),g="Feature"===s.type?s.geometry:s,d=g.type,f=s.bbox,p=g.coordinates;if(f&&!1==(y=h,(E=f)[0]<=y[0]&&E[1]<=y[1]&&E[2]>=y[0]&&E[3]>=y[1]))return!1;"Polygon"===d&&(p=[p]);let m=!1;for(var y,E,w=0;w<p.length;++w){let t=function(t,s){var i,h,g,d,f,p,m,y,E,w=0,x=t[0],S=t[1],v=s.length;for(i=0;i<v;i++){h=0;var G=s[i],P=G.length-1;if((y=G[0])[0]!==G[P][0]&&y[1]!==G[P][1])throw Error("First and last coordinates in a ring must be the same");for(d=y[0]-x,f=y[1]-S;h<P;h++){if(p=(E=G[h+1])[0]-x,m=E[1]-S,0===f&&0===m){if(p<=0&&d>=0||d<=0&&p>=0)return 0}else if(m>=0&&f<=0||m<=0&&f>=0){if(0===(g=function(t,s,i,h,g,d){let f=(s-0)*(i-0),p=(t-0)*(h-0),m=f-p,y=Math.abs(f+p);return Math.abs(m)>=r*y?m:-function(t,s,i,h,r,g,d){let f,p,m,y,E,w,x,S,v,G,P,b,A,N,I,C,R,O,k=t-r,j=i-r,T=s-g,q=h-g;N=k*q,x=(w=0x8000001*k)-(w-k),S=k-x,v=(w=0x8000001*q)-(w-q),I=S*(G=q-v)-(N-x*v-S*v-x*G),C=T*j,x=(w=0x8000001*T)-(w-T),S=T-x,v=(w=0x8000001*j)-(w-j),P=I-(R=S*(G=j-v)-(C-x*v-S*v-x*G)),E=I-P,l[0]=I-(P+E)+(E-R),E=(b=N+P)-N,P=(A=N-(b-E)+(P-E))-C,E=A-P,l[1]=A-(P+E)+(E-C),E=(O=b+P)-b,l[2]=b-(O-E)+(P-E),l[3]=O;let L=function(t,s){let i=s[0];for(let t=1;t<4;t++)i+=s[t];return i}(0,l),F=n*d;if(L>=F||-L>=F||(E=t-k,f=t-(k+E)+(E-r),E=i-j,m=i-(j+E)+(E-r),E=s-T,p=s-(T+E)+(E-g),E=h-q,y=h-(q+E)+(E-g),0===f&&0===p&&0===m&&0===y)||(F=o*d+a*Math.abs(L),(L+=k*y+q*f-(T*m+j*p))>=F||-L>=F))return L;N=f*q,x=(w=0x8000001*f)-(w-f),S=f-x,v=(w=0x8000001*q)-(w-q),I=S*(G=q-v)-(N-x*v-S*v-x*G),C=p*j,x=(w=0x8000001*p)-(w-p),S=p-x,v=(w=0x8000001*j)-(w-j),P=I-(R=S*(G=j-v)-(C-x*v-S*v-x*G)),E=I-P,M[0]=I-(P+E)+(E-R),E=(b=N+P)-N,P=(A=N-(b-E)+(P-E))-C,E=A-P,M[1]=A-(P+E)+(E-C),E=(O=b+P)-b,M[2]=b-(O-E)+(P-E),M[3]=O;let B=e(4,l,4,M,_);N=k*y,x=(w=0x8000001*k)-(w-k),S=k-x,v=(w=0x8000001*y)-(w-y),I=S*(G=y-v)-(N-x*v-S*v-x*G),C=T*m,x=(w=0x8000001*T)-(w-T),S=T-x,v=(w=0x8000001*m)-(w-m),P=I-(R=S*(G=m-v)-(C-x*v-S*v-x*G)),E=I-P,M[0]=I-(P+E)+(E-R),E=(b=N+P)-N,P=(A=N-(b-E)+(P-E))-C,E=A-P,M[1]=A-(P+E)+(E-C),E=(O=b+P)-b,M[2]=b-(O-E)+(P-E),M[3]=O;let U=e(B,_,4,M,c);N=f*y,x=(w=0x8000001*f)-(w-f),S=f-x,v=(w=0x8000001*y)-(w-y),I=S*(G=y-v)-(N-x*v-S*v-x*G),C=p*m,x=(w=0x8000001*p)-(w-p),S=p-x,v=(w=0x8000001*m)-(w-m),P=I-(R=S*(G=m-v)-(C-x*v-S*v-x*G)),E=I-P,M[0]=I-(P+E)+(E-R),E=(b=N+P)-N,P=(A=N-(b-E)+(P-E))-C,E=A-P,M[1]=A-(P+E)+(E-C),E=(O=b+P)-b,M[2]=b-(O-E)+(P-E),M[3]=O;let D=e(U,c,4,M,u);return u[D-1]}(t,s,i,h,g,d,y)}(d,p,f,m,0,0)))return 0;(g>0&&m>0&&f<=0||g<0&&m<=0&&f>0)&&w++}
1y=E,f=m,d=p}}return w%2!=0}(h,p[w]);if(0===t)return!i.ignoreBoundary;t&&(m=!0)}return m}},56615:(t,s,i)=>{i.d(s,{A:()=>r});var a=i(34782);let e={mercator:"+proj=merc +lon_0={lng} +x_0=0 +y_0=0 +datum=WGS84 +units=m",equirectangular:"+proj=eqc +lon_0={lng} +lat_ts=0 +x_0=0 +y_0=0 +datum=WGS84 +units=m",robinson:"+proj=robin +lon_0={lng} +x_0=0 +y_0=0 +datum=WGS84 +units=m",equalEarth:"+proj=eqearth +lon_0={lng} +x_0=0 +y_0=0 +datum=WGS84 +units=m",mollweide:"+proj=moll +lon_0={lng} +x_0=0 +y_0=0 +datum=WGS84 +units=m",miller:"+proj=mill +lon_0={lng} +x_0=0 +y_0=0 +datum=WGS84 +units=m",sinusoidal:"+proj=sinu +lon_0={lng} +x_0=0 +y_0=0 +datum=WGS84 +units=m",orthographic:"+proj=ortho +lat_0={lat} +lon_0={lng} +x_0=0 +y_0=0 +datum=WGS84 +units=m",gallPeters:"+proj=cea +lon_0={lng} +lat_ts=45 +x_0=0 +y_0=0 +datum=WGS84 +units=m",vanDerGrinten:"+proj=vandg +lon_0={lng} +x_0=0 +y_0=0 +datum=WGS84 +units=m"},h={name:"mercator"};var r=class{constructor({map:t,avoidOuterPins:s=!1}){this.points=t.points,this.pins=[],this.X_MIN=t.X_MIN,this.Y_MAX=t.Y_MAX,this.X_RANGE=t.X_RANGE,this.Y_RANGE=t.Y_RANGE,this.grid=t.grid,this.width=t.width,this.height=t.height,this.ystep=t.ystep,this.avoidOuterPins=s,this.proj4String=((t=h)=>{let s=e[t.name],i=t.center?.lat??0,a=t.center?.lng??0;return s.replace("{lat}",String(i)).replace("{lng}",String(a))})(t.projection??h),this.image={region:t.region,width:t.width,height:t.height}}addPin({lat:t,lng:s,data:i,svgOptions:a}){let e=this.getPin({lat:t,lng:s});if(!e)return;let h={...e,data:i,svgOptions:a};return this.pins.push(h),h}getPin({lat:t,lng:s}){let i=(0,a.A)(this.proj4String,[s,t]);if(!i.every(t=>Number.isFinite(t)))return;let[e,h]=i;if(this.avoidOuterPins)return;let r=this.width*(e-this.X_MIN)/this.X_RANGE,n=Math.round(this.height*(this.Y_MAX-h)/this.Y_RANGE/this.ystep);n%2==0&&"diagonal"===this.grid&&(r-=.5);let o=Math.round(r),l=Math.round(n)*this.ystep;n%2==0&&"diagonal"===this.grid&&(o+=.5);let _=(0,a.A)(this.proj4String,"WGS84",[o*this.X_RANGE/this.width+this.X_MIN,this.Y_MAX-l*this.Y_RANGE/this.height]);if(!_.every(t=>Number.isFinite(t)))return;let[c,u]=_;return{x:o,y:l,lat:u,lng:c}}getPoints(){return[...Object.values(this.points),...this.pins]}getSVG({shape:t="circle",color:s="current",backgroundColor:i="transparent",radius:a=.5}={}){let e=({x:i,y:e,svgOptions:h={}})=>{let r=h.radius||a;if("circle"===t)return`<circle cx="${i}" cy="${e}" r="${r}" fill="${h.color||s}" />`;if("hexagon"===t){let t=Math.sqrt(3)*r;return`<polyline points="${[[i+t,e-r],[i+t,e+r],[i,e+2*r],[i-t,e+r],[i-t,e-r],[i,e-2*r]].map(t=>t.join(",")).join(" ")}" fill="${h.color||s}" />`}return""};return`<svg viewBox="0 0 ${this.width} ${this.height}" xmlns="http://www.w3.org/2000/svg" style="background-color: ${i}">
2        ${Object.values(this.points).map(e).join("\n")}
3        ${this.pins.map(e).join("\n")}
4      </svg>`}}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.