PageSourceSearch

https://www.oberweningen.ch/compiled/index/js/1751.6c72c4e8062e29f1faed.js

js oberweningen.ch collected 2026-10-02 20:43:51 UTC 132,267 bytes, 1 lines download raw bytes

vendor: 13,627 bytes, line 1
1(self.webpackChunkCMS=self.webpackChunkCMS||[]).push([[1751],{62980:(t,s,i)=>{"use strict";i.r(s),i.d(s,{default:()=>Ki});var a=6378137,e=.0066943799901413165,h=484813681109536e-20,r=Math.PI/2,n=1e-10,o=.017453292519943295,l=57.29577951308232,c=Math.PI/4,u=2*Math.PI,_=3.14159265359,M={greenwich:0,lisbon:-9.131906111111,paris:2.337229166667,bogota:-74.080916666667,madrid:-3.687938888889,rome:12.452333333333,bern:7.439583333333,jakarta:106.807719444444,ferro:-17.666666666667,brussels:4.367975,stockholm:18.058277777778,athens:23.7163375,oslo:10.722916666667};const d=M,f={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 g=/[\s_\-\/\(\)]/g;function p(t,s){if(t[s])return t[s];for(var i,a=Object.keys(t),e=s.toLowerCase().replace(g,""),h=-1;++h<a.length;)if((i=a[h]).toLowerCase().replace(g,"")===e)return t[i]}function m(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}),{}),r={proj:"projName",datum:"datumCode",rf:function(t){e.rf=parseFloat(t)},lat_0:function(t){e.lat0=t*o},lat_1:function(t){e.lat1=t*o},lat_2:function(t){e.lat2=t*o},lat_ts:function(t){e.lat_ts=t*o},lon_0:function(t){e.long0=t*o},lon_1:function(t){e.long1=t*o},lon_2:function(t){e.long2=t*o},alpha:function(t){e.alpha=parseFloat(t)*o},gamma:function(t){e.rectified_grid_angle=parseFloat(t)*o},lonc:function(t){e.longc=t*o},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=p(f,t);s&&(e.to_meter=s.to_meter)},from_greenwich:function(t){e.from_greenwich=t*o},pm:function(t){var s=p(d,t);e.from_greenwich=(s||parseFloat(t))*o},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 r?"function"==typeof(a=r[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}const y=class{static getId(t){const 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};const 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){const s=t[1]||"Unknown";let i;const a=s.match(/^\((.)\)$/);if(a){const s=a[1].toUpperCase();if("E"===s)i="east";else if("N"===s)i="north";else if("U"===s)i="up";else{if(!t[2])throw new Error(`Unknown axis abbreviation: ${s}`);i=t[2]}}else i=t[2]||"unknown";const 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:s,direction:i,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=>Array.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;const i=t.find((t=>Array.isArray(t)&&"CS"===t[0]));i&&(s.coordinate_system={type:i[1],axis:this.extractAxes(t)});const a=t.find((t=>Array.isArray(t)&&"LENGTHUNIT"===t[0]));if(a){const 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];const e=t.find((t=>Array.isArray(t)&&("DATUM"===t[0]||"ENSEMBLE"===t[0])));if(e){const i=this.convert(e);"ENSEMBLE"===e[0]?s.datum_ensemble=i:s.datum=i;const 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)})));const h=t.find((t=>Array.isArray(t)&&"ENSEMBLEACCURACY"===t[0]));h&&(s.accuracy=parseFloat(h[1]));const 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";const n=t.find((t=>Array.isArray(t)&&"SOURCECRS"===t[0]));if(n){const t=n.find((t=>Array.isArray(t)));s.source_crs=t?this.convert(t):null}const o=t.find((t=>Array.isArray(t)&&"TARGETCRS"===t[0]));if(o){const t=o.find((t=>Array.isArray(t)));s.target_crs=t?this.convert(t):null}const l=t.find((t=>Array.isArray(t)&&"ABRIDGEDTRANSFORMATION"===t[0]));s.transformation=l?this.convert(l):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){const t=s.parameters[6];"Scale difference"===t.name&&(t.value=Math.round(1e12*(t.value-1))/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":const c=this.convertUnit(t,"LinearUnit");s.coordinate_system&&s.coordinate_system.axis&&s.coordinate_system.axis.forEach((t=>{t.unit||(t.unit=c)})),c.conversion_factor&&1!==c.conversion_factor&&s.semi_major_axis&&(s.semi_major_axis={value:s.semi_major_axis,unit:c});break;default:s.keyword=t[0]}return s}};const w=class extends y{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}};const v=class extends y{static convert(t,s={}){super.convert(t,s);const i=t.find((t=>Array.isArray(t)&&"CS"===t[0]));i&&(s.coordinate_system={subtype:i[1],axis:this.extractAxes(t)});const a=t.find((t=>Array.isArray(t)&&"USAGE"===t[0]));if(a){const 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}};function E(t){const s=function(t){return 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")}(t);return("2019"===s?v:w).convert(t)}const S=function(t){return new A(t).output()};var x=/\s/,P=/[A-Za-z]/,G=/[A-Za-z84_]/,b=/[,\]]/,N=/[\d\.E\-\+]/;function A(t){if("string"!=typeof t)throw new 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 I(t,s,i){Array.isArray(s)&&(i.unshift(s),s=null);var a=s?{}:t,e=i.reduce((function(t,s){return C(s,t),t}),a);s&&(t[s]=e)}function C(t,s){if(Array.isArray(t)){var i=t.shift();if("PARAMETER"===i&&(i=t.shift()),1===t.length)return Array.isArray(t[0])?(s[i]={},void C(t[0],s[i])):void(s[i]=t[0]);if(t.length)if("TOWGS84"!==i){if("AXIS"===i)return i in s||(s[i]=[]),void s[i].push(t);var a;switch(Array.isArray(i)||(s[i]={}),i){case"UNIT":case"PRIMEM":case"VERT_DATUM":return s[i]={name:t[0].toLowerCase(),convert:t[1]},void(3===t.length&&C(t[2],s[i]));case"SPHEROID":case"ELLIPSOID":return s[i]={name:t[0],a:t[1],rf:t[2]},void(4===t.length&&C(t[3],s[i]));case"EDATUM":case"ENGINEERINGDATUM":case"LOCAL_DATUM":case"DATUM":case"VERT_CS":case"VERTCRS":case"VERTICALCRS":return t[0]=["name",t[0]],void I(s,i,t);case"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":return t[0]=["name",t[0]],I(s,i,t),void(s[i].type=i);default:for(a=-1;++a<t.length;)if(!Array.isArray(t[a]))return C(t,s[i]);return I(s,i,t)}}else s[i]=t;else s[i]=!0}else s[t]=!0}A.prototype.readCharicter=function(){var t=this.text[this.place++];if(4!==this.state)for(;x.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}},A.prototype.afterquote=function(t){if('"'===t)return this.word+='"',void(this.state=4);if(b.test(t))return this.word=this.word.trim(),void this.afterItem(t);throw new Error("havn't handled \""+t+'" in afterquote yet, index '+this.place)},A.prototype.afterItem=function(t){return","===t?(null!==this.word&&this.currentObject.push(this.word),this.word=null,void(this.state=1)):"]"===t?(this.level--,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=1,this.currentObject=this.stack.pop(),void(this.currentObject||(this.state=-1))):void 0},A.prototype.number=function(t){if(!N.test(t)){if(b.test(t))return this.word=parseFloat(this.word),void this.afterItem(t);throw new Error("havn't handled \""+t+'" in number yet, index '+this.place)}this.word+=t},A.prototype.quoted=function(t){'"'!==t?this.word+=t:this.state=5},A.prototype.keyword=function(t){if(G.test(t))this.word+=t;else{if("["===t){var s=[];return s.push(this.word),this.level++,null===this.root?this.root=s:this.currentObject.push(s),this.stack.push(this.currentObject),this.currentObject=s,void(this.state=1)}if(!b.test(t))throw new Error("havn't handled \""+t+'" in keyword yet, index '+this.place);this.afterItem(t)}},A.prototype.neutral=function(t){if(P.test(t))return this.word=t,void(this.state=2);if('"'===t)return this.word="",void(this.state=4);if(N.test(t))return this.word=t,void(this.state=3);if(!b.test(t))throw new Error("havn't handled \""+t+'" in neutral yet, index '+this.place);this.afterItem(t)},A.prototype.output=function(){for(;this.place<this.text.length;)this.readCharicter();if(-1===this.state)return this.root;throw new Error('unable to parse string "'+this.text+'". State is '+this.state)};function j(t){return.017453292519943295*t}function O(t){const 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.lat_ts||!t.lat0||"polar stereographic"!==s&&"polar stereographic (variant a)"!==s||(t.lat_ts=t.lat0,t.lat0=j(t.lat0>0?90:-90),delete t.lat1):(t.lat0=j(t.lat1>0?90:-90),t.lat_ts=t.lat1,delete t.lat1)}function k(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 R(t){return"object"==typeof t?t.value*t.unit.conversion_factor:t}function q(t,s){t.ellipsoid.radius?(s.a=t.ellipsoid.radius,s.rf=0):(s.a=R(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-R(t.ellipsoid.semi_minor_axis))))}
1function L(t,s={}){return t&&"object"==typeof t?"BoundCRS"===t.type?(L(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))),s):(Object.keys(t).forEach((i=>{const 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,q(a,s)),a.prime_meridian&&(s.from_greenwich=a.prime_meridian.longitude*Math.PI/180);break;case"ellipsoid":s.ellps=a.name,q(a,s);break;case"prime_meridian":s.long0=(a.longitude||0)*Math.PI/180;break;case"coordinate_system":if(a.axis){const 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){const{units:t,to_meter:i}=k(a.unit);s.units=t,s.to_meter=i}else if(a.axis[0]&&a.axis[0].unit){const{units:t,to_meter:i}=k(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=>{const 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":L(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),O(s),s):t}var T=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];function F(t){for(var s=Object.keys(t),i=0,a=s.length;i<a;++i){var e=s[i];-1!==T.indexOf(e)&&z(t[e]),"object"==typeof t[e]&&F(t[e])}}function z(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[
vendor: 7,442 bytes, line 1
10]&&"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=j(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=j(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",j],["longitude_of_center","Longitude_Of_Center"],["longitude_of_center","Longitude_of_center"],["longc","longitude_of_center",j],["x0","false_easting",n],["y0","false_northing",n],["long0","central_meridian",j],["lat0","latitude_of_origin",j],["lat0","standard_parallel_1",j],["lat1","standard_parallel_1",j],["lat2","standard_parallel_2",j],["azimuth","Azimuth"],["alpha","azimuth",j],["srsCode","name"]].forEach((function(s){return function(t,s){var i=s[0],a=s[1];!(i in t)&&a in t&&(t[i]=t[a],3===s.length&&(t[i]=s[2](t[i])))}(t,s)})),O(t)}function B(t){if("object"==typeof t)return L(t);const s=function(t){const 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=S(t);if("WKT2"===s){return L(E(i))}var a=i[0],e={};return C(i,e),F(e),e[a]}function D(t){var s=this;if(2===arguments.length){var i=arguments[1];"string"==typeof i?"+"===i.charAt(0)?D[t]=m(arguments[1]):D[t]=B(arguments[1]):i&&"object"==typeof i&&!("projName"in i)?D[t]=B(arguments[1]):(D[t]=i,i||delete D[t])}else if(1===arguments.length){if(Array.isArray(t))return t.map((function(t){return Array.isArray(t)?D.apply(s,t):D(t)}));if("string"==typeof t){if(t in D)return D[t]}else"EPSG"in t?D["EPSG:"+t.EPSG]=t:"ESRI"in t?D["ESRI:"+t.ESRI]=t:"IAU2000"in t?D["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"]}(D);const U=D;var W=["3857","900913","3785","102113"];const H=function(t){let s;if(function(t){return"string"==typeof t}(t))if(function(t){return t in U}(t))s=U[t];else if(function(t){return 0!==t.indexOf("+")&&-1!==t.indexOf("[")||"object"==typeof t&&!("srsCode"in t)}(t)){s=B(t);var i=function(t){var s=p(t,"extension");if(s)return p(s,"proj4")}(s);i&&(s=m(i))}else(function(t){return"+"===t[0]})(t)&&(s=m(t));else s="projName"in t?t:B(t);return s&&function(t){if(t.title)return 0===t.title.toLowerCase().indexOf("epsg:")&&W.indexOf(t.title.substr(5))>-1;var s=p(t,"authority");if(s){var i=p(s,"epsg");return i&&W.indexOf(i)>-1}}(s)?U["EPSG:3857"]:s};function Q(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 X(t,s,i){var a=t*s;return i/Math.sqrt(1-a*a)}function J(t){return t<0?-1:1}function V(t,s){return s||Math.abs(t)<=_?t:t-J(t)*u}function K(t,s,i){var a=t*i,e=.5*t;return a=Math.pow((1-a)/(1+a),e),Math.tan(.5*(r-s))/a}function Z(t,s){for(var i,a,e=.5*t,h=r-2*Math.atan(s),n=0;n<=15;n++)if(i=t*Math.sin(h),h+=a=r-2*Math.atan(s*Math.pow((1-i)/(1+i),e))-h,Math.abs(a)<=1e-10)return h;return-9999}function Y(t){return t}var $=["longlat","identity"];var tt=[{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=X(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,a=t.x,e=t.y;if(e*l>90&&e*l<-90&&a*l>180&&a*l<-180)return null;if(Math.abs(Math.abs(e)-r)<=n)return null;if(this.sphere)s=this.x0+this.a*this.k0*V(a-this.long0,this.over),i=this.y0+this.a*this.k0*Math.log(Math.tan(c+.5*e));else{var h=Math.sin(e),o=K(this.e,e,h);s=this.x0+this.a*this.k0*V(a-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,a=t.x-this.x0,e=t.y-this.y0;if(this.sphere)i=r-2*Math.atan(Math.exp(-e/(this.a*this.k0)));else{var h=Math.exp(-e/(this.a*this.k0));if(-9999===(i=Z(this.e,h)))return null}return s=V(this.long0+a/(this.a*this.k0),this.over),t.x=s,t.y=i,t},names:["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","Mercator_Variant_A","merc"]},{init:function(){},forward:Y,inverse:Y,names:$}],st={},it=[];function at(t,s){var i=it.length;
1return t.names?(it[i]=t,t.names.forEach((function(t){st[t.toLowerCase()]=i})),this):(console.log(s),!0)}function et(t){return t.replace(/[-\(\)\s]+/g," ").trim().replace(/ /g,"_")}const ht={start:function(){tt.forEach(at)},add:at,get:function(t){if(!t)return!1;var s=t.toLowerCase();return void 0!==st[s]&&it[st[s]]||(s=et(s))in st&&it[st[s]]?it[st[s]]:void 0}};const rt={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)"}},nt=rt.WGS84;var ot={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 
vendor: 3,089 bytes, line 1
1lt in ot){var ct=ot[lt];ct.datumName&&(ot[ct.datumName]=ct)}const ut=ot;const _t=function(t,s,i,a,e,r,n){var o={};return o.datum_type=void 0===t||"none"===t?5:4,s&&(o.datum_params=s.map(parseFloat),0===o.datum_params[0]&&0===o.datum_params[1]&&0===o.datum_params[2]||(o.datum_type=1),o.datum_params.length>3&&(0===o.datum_params[3]&&0===o.datum_params[4]&&0===o.datum_params[5]&&0===o.datum_params[6]||(o.datum_type=2,o.datum_params[3]*=h,o.datum_params[4]*=h,o.datum_params[5]*=h,o.datum_params[6]=o.datum_params[6]/1e6+1))),n&&(o.datum_type=3,o.grids=n),o.a=i,o.b=a,o.es=e,o.ep2=r,o};var Mt={};async function dt(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(gt),l=[h.fileDirectory.ModelPixelScale[0],h.fileDirectory.ModelPixelScale[1]].map(gt),c=o[0]+(n[0]-1)*l[0],u=o[3]-(n[1]-1)*l[1],_=r[0],M=r[1],d=[];for(let t=n[1]-1;t>=0;t--)for(let s=n[0]-1;s>=0;s--){var f=t*n[0]+s;d.push([-pt(M[f]),pt(_[f])])}i.push({del:l,lim:n,ll:[-c,u],cvs:d})}var g={header:{nSubgrids:a},subgrids:i};return Mt[t]=g,g}function ft(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:Mt[t]||null,isNull:!1}}function gt(t){return t*Math.PI/180}function pt(t){return t/3600*Math.PI/180}function mt(t,s,i){return String.fromCharCode.apply(null,new Uint8Array(t.buffer.slice(s,i)))}function yt(t){return t.map((function(t){return[pt(t.longitudeShift),pt(t.latitudeShift)]}))}function wt(t,s,i){return{name:mt(t,s+8,s+16).trim(),parent:mt(t,s+24,s+24+8).trim(),lowerLatitude:t.getFloat64(s+72,i),upperLatitude:t.getFloat64(s+88,i),lowerLongitude:t.getFloat64(s+104,i),upperLongitude:t.getFloat64(s+120,i),latitudeInterval:t.getFloat64(s+136,i),longitudeInterval:t.getFloat64(s+152,i),gridNodeCount:t.getInt32(s+168,i)}}function vt(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}function Et(t,s){if(!(this instanceof Et))return new Et(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=H(t);if("object"==typeof i){var a=Et.projections.get(i.projName);if(a){if(i.datumCode&&"none"!==i.datumCode){var e=p(ut,i.datumCode);e&&(i.datum_params=i.datum_params||(e.towgs84?e.towgs84.split(","):null),i.ellps=e.ellipse,i.datumName=e.datumName?e.datumName:i.datumCode)}i.k0=i.k0||1,i.axis=i.axis||"enu",i.ellps=i.ellps||"wgs84",i.lat1=i.lat1||i.lat0;var h,r,o,l,c,u,_,M=function(t,s,i,a,e){if(!t){var h=p(rt,a);h||(h=nt),t=h.a,s=h.b,i=h.rf}return i&&!s&&(s=(1-1/i)*t),(0===i||Math.abs(t-s)<n)&&(e=!0,s=t),{a:t,b:s,rf:i,sphere:e}}(i.a,i.b,i.rf,i.ellps,i.sphere),d=(h=M.a,r=M.b,M.rf,o=i.R_A,u=((l=h*h)-(c=r*r))/l,_=0,o?(l=(h*=1-u*(.16666666666666666+u*(.04722222222222222+.022156084656084655
vendor: 4,800 bytes, line 1
1*u)))*h,u=0):_=Math.sqrt(u),{es:u,e:_,ep2:(l-c)/c}),f=function(t){return void 0===t?null:t.split(",").map(ft)}(i.nadgrids),g=i.datum||_t(i.datumCode,i.datum_params,M.a,M.b,d.es,d.ep2,f);Q(this,i),Q(this,a),this.a=M.a,this.b=M.b,this.rf=M.rf,this.sphere=M.sphere,this.es=d.es,this.e=d.e,this.ep2=d.ep2,this.datum=g,"init"in this&&"function"==typeof this.init&&this.init(),s(null,this)}else s("Could not get projection name from: "+t)}else s("Could not parse to valid json: "+t)}Et.projections=ht,Et.projections.start();const St=Et;function xt(t,s,i){var a,e,h,n,o=t.x,l=t.y,c=t.z?t.z:0;if(l<-r&&l>-1.001*r)l=-r;else if(l>r&&l<1.001*r)l=r;else{if(l<-r)return{x:-1/0,y:-1/0,z:t.z};if(l>r)return{x:1/0,y:1/0,z:t.z}}return o>Math.PI&&(o-=2*Math.PI),e=Math.sin(l),n=Math.cos(l),h=e*e,{x:((a=i/Math.sqrt(1-s*h))+c)*n*Math.cos(o),y:(a+c)*n*Math.sin(o),z:(a*(1-s)+c)*e}}function Pt(t,s,i,a){var e,h,n,o,l,c,u,_,M,d,f,g,p,m,y,w=1e-12,v=t.x,E=t.y,S=t.z?t.z:0;if(e=Math.sqrt(v*v+E*E),h=Math.sqrt(v*v+E*E+S*S),e/i<w){if(m=0,h/i<w)return r,y=-a,{x:t.x,y:t.y,z:t.z}}else m=Math.atan2(E,v);n=S/h,_=(o=e/h)*(1-s)*(l=1/Math.sqrt(1-s*(2-s)*o*o)),M=n*l,p=0;do{p++,c=s*(u=i/Math.sqrt(1-s*M*M))/(u+(y=e*_+S*M-u*(1-s*M*M))),g=(f=n*(l=1/Math.sqrt(1-c*(2-c)*o*o)))*_-(d=o*(1-c)*l)*M,_=d,M=f}while(g*g>1e-24&&p<30);return{x:m,y:Math.atan(f/Math.abs(d)),z:y}}function Gt(t){return 1===t||2===t}function bt(t,s,i){if(function(t,s){return t.datum_type===s.datum_type&&!(t.a!==s.a||Math.abs(t.es-s.es)>5e-11)&&(1===t.datum_type?t.datum_params[0]===s.datum_params[0]&&t.datum_params[1]===s.datum_params[1]&&t.datum_params[2]===s.datum_params[2]:2!==t.datum_type||t.datum_params[0]===s.datum_params[0]&&t.datum_params[1]===s.datum_params[1]&&t.datum_params[2]===s.datum_params[2]&&t.datum_params[3]===s.datum_params[3]&&t.datum_params[4]===s.datum_params[4]&&t.datum_params[5]===s.datum_params[5]&&t.datum_params[6]===s.datum_params[6])}(t,s))return i;if(5===t.datum_type||5===s.datum_type)return i;var h=t.a,r=t.es;if(3===t.datum_type){if(0!==Nt(t,!1,i))return;h=a,r=e}var n=s.a,o=s.b,l=s.es;if(3===s.datum_type&&(n=a,o=6356752.314,l=e),r===l&&h===n&&!Gt(t.datum_type)&&!Gt(s.datum_type))return i;if((i=xt(i,r,h),Gt(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)),Gt(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],c=(t.x-a)/l,u=(t.y-e)/l,_=(t.z-h)/l;return{x:c+o*u-n*_,y:-o*c+u+r*_,z:n*c-r*u+_}}}(i,s.datum_type,s.datum_params)),i=Pt(i,l,n,o),3===s.datum_type)&&0!==Nt(s,!0,i))return;return i}function Nt(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:Number.NaN,y:Number.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)for(var o=n.grid.subgrids,c=0,u=o.length;c<u;c++){var _=o[c],M=(Math.abs(_.del[1])+Math.abs(_.del[0]))/1e4,d=_.ll[0]-M,f=_.ll[1]-M,g=_.ll[0]+(_.lim[0]-1)*_.del[0]+M,p=_.ll[1]+(_.lim[1]-1)*_.del[1]+M;if(!(f>a.y||d>a.x||p<a.y||g<a.x)&&(e=At(a,s,_),!isNaN(e.x)))break t}else if(n.mandatory)return console.log("Unable to find mandatory grid '"+n.name+"'"),-1}return isNaN(e.x)?(console.log("Failed to find a grid shift table for location '"+-a.x*l+" "+a.y*l+" tried: '"+h+"'"),-1):(i.x=-e.x,i.y=e.y,0)}function At(t,s,i){var a={x:Number.NaN,y:Number.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=V(e.x-Math.PI)+Math.PI;var h=It(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(n=It(h,i),isNaN(n.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=V(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}function It(t,s){var i,a={x:t.x/s.del[0],y:t.y/s.del[1]},e=Math.floor(a.x),h=Math.floor(a.y),r=a.x-1*e,n=a.y-1*h,o={x:Number.NaN,y:Number.NaN};if(e<0||e>=s.lim[0])return o;if(h<0||h>=s.lim[1])return o;i=h*s.lim[0]+e;var l=s.cvs[i][0],c=s.cvs[i][1];i++;var u=s.cvs[i][0],_=s.cvs[i][1];i+=s.lim[0];var M=s.cvs[i][0],d=s.cvs[i][1];i--;var f=s.cvs[i][0],g=s.cvs[i][1],p=r*n,m=r*(1-n),y=(1-r)*(1-n),w=(1-r)*n;return o.x=y*l+m*u+w*f+p*M,o.y=y*c+m*_+w*g+p*d,o}function Ct(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===
vendor: 5,305 bytes, line 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 jt(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 Ot(t){if("function"==typeof Number.isFinite){if(Number.isFinite(t))return;throw new TypeError("coordinates must be finite numbers")}if("number"!=typeof t||t!=t||!isFinite(t))throw new TypeError("coordinates must be finite numbers")}function kt(t,s,i,a){var e,h=void 0!==(i=Array.isArray(i)?jt(i):{x:i.x,y:i.y,z:i.z,m:i.m}).z;if(function(t){Ot(t.x),Ot(t.y)}(i),t.datum&&s.datum&&function(t,s){return(1===t.datum.datum_type||2===t.datum.datum_type||3===t.datum.datum_type)&&"WGS84"!==s.datumCode||(1===s.datum.datum_type||2===s.datum.datum_type||3===s.datum.datum_type)&&"WGS84"!==t.datumCode}(t,s)&&(i=kt(t,e=new St("WGS84"),i,a),t=e),a&&"enu"!==t.axis&&(i=Ct(t,!1,i)),"longlat"===t.projName)i={x:i.x*o,y:i.y*o,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=bt(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:i.x*l,y:i.y*l,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?Ct(s,!0,i):(i&&!h&&"geocent"!==s.projName&&delete i.z,i)}var Rt=St("WGS84");function qt(t,s,i,a){var e,h,r;return Array.isArray(i)?(e=kt(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?"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].concat(i.slice(2)):[e.x,e.y]):(h=kt(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 Lt(t){return t instanceof St?t:"object"==typeof t&&"oProj"in t?t.oProj:St(t)}const Tt=function(t,s,i){var a,e,h,r=!1;return void 0===s?(e=Lt(t),a=Rt,r=!0):(void 0!==s.x||Array.isArray(s))&&(i=s,e=Lt(t),a=Rt,r=!0),a||(a=Lt(t)),e||(e=Lt(s)),i?qt(a,e,i):(h={forward:function(t,s){return qt(a,e,t,s)},inverse:function(t,s){return qt(e,a,t,s)}},r&&(h.oProj=e),h)};var Ft="AJSAJS",zt="AFAFAF",Bt=65,Dt=73,Ut=79,Wt=86,Ht=90;const Qt={forward:Xt,inverse:function(t){var s=Zt(ts(t.toUpperCase()));if(s.lat&&s.lon)return[s.lon,s.lat,s.lon,s.lat];return[s.left,s.bottom,s.right,s.top]},toPoint:Jt};function Xt(t,s){return s=s||5,function(t,s){var i="00000"+t.easting,a="00000"+t.northing;return t.zoneNumber+t.zoneLetter+(M=t.easting,d=t.northing,f=t.zoneNumber,g=$t(f),p=Math.floor(M/1e5),m=Math.floor(d/1e5)%20,e=p,h=m,r=g,n=r-1,o=Ft.charCodeAt(n),l=zt.charCodeAt(n),c=o+e-1,u=l+h,_=!1,c>Ht&&(c=c-Ht+Bt-1,_=!0),(c===Dt||o<Dt&&c>Dt||(c>Dt||o<Dt)&&_)&&c++,(c===Ut||o<Ut&&c>Ut||(c>Ut||o<Ut)&&_)&&++c===Dt&&c++,c>Ht&&(c=c-Ht+Bt-1),u>Wt?(u=u-Wt+Bt-1,_=!0):_=!1,(u===Dt||l<Dt&&u>Dt||(u>Dt||l<Dt)&&_)&&u++,(u===Ut||l<Ut&&u>Ut||(u>Ut||l<Ut)&&_)&&++u===Dt&&u++,u>Wt&&(u=u-Wt+Bt-1),String.fromCharCode(c)+String.fromCharCode(u))+i.substr(i.length-5,s)+a.substr(a.length-5,s);var e,h,r,n,o,l,c,u,_;var M,d,f,g,p,m}(function(t){var s,i,a,e,h,r,n,o,l=t.lat,c=t.lon,u=6378137,_=.00669438,M=.9996,d=Vt(l),f=Vt(c);o=Math.floor((c+180)/6)+1,180===c&&(o=60);l>=56&&l<64&&c>=3&&c<12&&(o=32);l>=72&&l<84&&(c>=0&&c<9?o=31:c>=9&&c<21?o=33:c>=21&&c<33?o=35:c>=33&&c<42&&(o=37));n=Vt(6*(o-1)-180+3),s=_/(1-_),i=u/Math.sqrt(1-_*Math.sin(d)*Math.sin(d)),a=Math.tan(d)*Math.tan(d),e=s*Math.cos(d)*Math.cos(d),h=Math.cos(d)*(f-n),r=u*((1-_/4-3*_*_/64-5*_*_*_/256)*d-(3*_/8+3*_*_/32+45*_*_*_/1024)*Math.sin(2*d)+(15*_*_/256+45*_*_*_/1024)*Math.sin(4*d)-35*_*_*_/3072*Math.sin(6*d));var g=M*i*(h+(1-a+e)*h*h*h/6+(5-18*a+a*a+72*e-58*s)*h*h*h*h*h/120)+5e5,p=M*(r+i*Math.tan(d)*(h*h/2+(5-a+9*e+4*e*e)*h*h*h*h/24+(61-58*a+a*a+600*e-330*s)*h*h*h*h*h*h/720));l<0&&(p+=1e7);return{northing:Math.round(p),easting:Math.round(g),zoneNumber:o,zoneLetter:Yt(l)}}({lat:t[1],lon:t[0]}),s)}function Jt(t){var s=Zt(ts(t.toUpperCase()));return s.lat&&s.lon?[s.lon,s.lat]:[(s.left+s.right)/2,(s.top+s.bottom)/2]}function Vt(t){return t*(Math.PI/180)}function Kt(t){return t/Math.PI*180}function Zt(t){var s=t.northing,i=t.easting,a=t.zoneLetter,e=t.zoneNumber;if(e<0||e>60)return null;var h,r,n,o,l,c,u,_,M,d=.9996,f=6378137,g=.00669438,p=(1-Math.sqrt(.99330562))/(1+Math.sqrt(.99330562)),m=i-5e5,y=s;a<"N"&&(y-=1e7),u=6*(e-1)-180+3,h=.006739496752268451,M=(_=y/d/6367449.145945056)+(3*p/2-27*p*p*p/32)*Math.sin(2*_)+(21*p*p/16-55*p*p*p*p/32)*Math.sin(4*_)+151*p*p*p/96*Math.sin(6*_),r=f/Math.sqrt(1-g*Math.sin(M)*Math.sin(M)),n=Math.tan(M)*Math.tan(M),o=h*Math.cos(M)*Math.cos(M),l=.99330562*f/Math.pow(1-g*Math.sin(M)*Math.sin(M),1.5),c=m/(r*d);var w=M-r*Math.tan(M)/l*(c*c/2-(5+3*n+10*o-4*o*o-9*h)*c*c*c*c/24+(61+90*n+298*o+45*n*n-1.6983531815716497-3*o*o)*c*c*c*c*c*c/720);w=Kt(w);var v,E=(c-(1+2*n+o)*c*c*c/6+(5-2*o+28*n-3*o*o+8*h+24*n*n)*c*c*c*c*c/120)/Math.cos(M);if(E=u+Kt(E),t.accuracy){var S=Zt({northing:t.northing+t.accuracy,easting:t.easting+t.accuracy,zoneLetter:t.zoneLetter,zoneNumber:t.zoneNumber});
vendor: 65,011 bytes, line 1
1v={top:S.lat,right:S.lon,bottom:w,left:E}}else v={lat:w,lon:E};return v}function Yt(t){var s="Z";return 84>=t&&t>=72?s="X":72>t&&t>=64?s="W":64>t&&t>=56?s="V":56>t&&t>=48?s="U":48>t&&t>=40?s="T":40>t&&t>=32?s="S":32>t&&t>=24?s="R":24>t&&t>=16?s="Q":16>t&&t>=8?s="P":8>t&&t>=0?s="N":0>t&&t>=-8?s="M":-8>t&&t>=-16?s="L":-16>t&&t>=-24?s="K":-24>t&&t>=-32?s="J":-32>t&&t>=-40?s="H":-40>t&&t>=-48?s="G":-48>t&&t>=-56?s="F":-56>t&&t>=-64?s="E":-64>t&&t>=-72?s="D":-72>t&&t>=-80&&(s="C"),s}function $t(t){var s=t%6;return 0===s&&(s=6),s}function ts(t){if(t&&0===t.length)throw"MGRSPoint coverting from nothing";for(var s,i=t.length,a=null,e="",h=0;!/[A-Z]/.test(s=t.charAt(h));){if(h>=2)throw"MGRSPoint bad conversion from: "+t;e+=s,h++}var r=parseInt(e,10);if(0===h||h+3>i)throw"MGRSPoint bad conversion from: "+t;var n=t.charAt(h++);if(n<="A"||"B"===n||"Y"===n||n>="Z"||"I"===n||"O"===n)throw"MGRSPoint zone letter "+n+" not handled: "+t;a=t.substring(h,h+=2);for(var o=$t(r),l=function(t,s){var i=Ft.charCodeAt(s-1),a=1e5,e=!1;for(;i!==t.charCodeAt(0);){if(++i===Dt&&i++,i===Ut&&i++,i>Ht){if(e)throw"Bad character: "+t;i=Bt,e=!0}a+=1e5}return a}(a.charAt(0),o),c=function(t,s){if(t>"V")throw"MGRSPoint given invalid Northing "+t;var i=zt.charCodeAt(s-1),a=0,e=!1;for(;i!==t.charCodeAt(0);){if(++i===Dt&&i++,i===Ut&&i++,i>Wt){if(e)throw"Bad character: "+t;i=Bt,e=!0}a+=1e5}return a}(a.charAt(1),o);c<ss(n);)c+=2e6;var u=i-h;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,d,f=u/2,g=0,p=0;return f>0&&(_=1e5/Math.pow(10,f),M=t.substring(h,h+f),g=parseFloat(M)*_,d=t.substring(h+f),p=parseFloat(d)*_),{easting:g+l,northing:p+c,zoneLetter:n,zoneNumber:r,accuracy:_}}function ss(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}function is(t,s,i){if(!(this instanceof is))return new is(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")}is.fromMGRS=function(t){return new is(Jt(t))},is.prototype.toMGRS=function(t){return Xt([this.x,this.y],t)};const as=is;var es=.046875,hs=.01953125,rs=.01068115234375;function ns(t){var s=[];s[0]=1-t*(.25+t*(es+t*(hs+t*rs))),s[1]=t*(.75-t*(es+t*(hs+t*rs)));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 os(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 ls(t,s,i){for(var a=1/(1-s),e=t,h=20;h;--h){var r=Math.sin(e),o=1-s*r*r;if(e-=o=(os(e,r,Math.cos(e),i)-t)*(o*Math.sqrt(o))*a,Math.abs(o)<n)return e}return e}const cs={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=ns(this.es),this.ml0=os(this.lat0,Math.sin(this.lat0),Math.cos(this.lat0),this.en))},forward:function(t){var s,i,a,e=t.x,h=t.y,r=V(e-this.long0,this.over),o=Math.sin(h),l=Math.cos(h);if(this.es){var c=l*r,u=Math.pow(c,2),_=this.ep2*Math.pow(l,2),M=Math.pow(_,2),d=Math.abs(l)>n?Math.tan(h):0,f=Math.pow(d,2),g=Math.pow(f,2);s=1-this.es*Math.pow(o,2),c/=Math.sqrt(s);var p=os(h,o,l,this.en);i=this.a*(this.k0*c*(1+u/6*(1-f+_+u/20*(5-18*f+g+14*_-58*f*_+u/42*(61+179*g-g*f-479*f)))))+this.x0,a=this.a*(this.k0*(p-this.ml0+o*r*c/2*(1+u/12*(5-f+9*_+4*M+u/30*(61+g-58*f+270*_-330*f*_+u/56*(1385+543*g-g*f-3111*f))))))+this.y0}else{var m=l*Math.sin(r);if(Math.abs(Math.abs(m)-1)<n)return 93;if(i=.5*this.a*this.k0*Math.log((1+m)/(1-m))+this.x0,a=l*Math.cos(r)/Math.sqrt(1-Math.pow(m,2)),(m=Math.abs(a))>=1){if(m-1>n)return 93;a=0}else a=Math.acos(a);h<0&&(a=-a),a=this.a*this.k0*(a-this.lat0)+this.y0}return t.x=i,t.y=a,t},inverse:function(t){var s,i,a,e,h=(t.x-this.x0)*(1/this.a),o=(t.y-this.y0)*(1/this.a);if(this.es)if(i=ls(s=this.ml0+o/this.k0,this.es,this.en),Math.abs(i)<r){var l=Math.sin(i),c=Math.cos(i),u=Math.abs(c)>n?Math.tan(i):0,_=this.ep2*Math.pow(c,2),M=Math.pow(_,2),d=Math.pow(u,2),f=Math.pow(d,2);s=1-this.es*Math.pow(l,2);var g=h*Math.sqrt(s)/this.k0,p=Math.pow(g,2);a=i-(s*=u)*p/(1-this.es)*.5*(1-p/12*(5+3*d-9*_*d+_-4*M-p/30*(61+90*d-252*_*d+45*f+46*_-p/56*(1385+3633*d+4095*f+1574*f*d)))),e=V(this.long0+g*(1-p/6*(1+2*d+_-p/20*(5+28*d+24*f+8*_*d+6*_-p/42*(61+662*d+1320*f+720*f*d))))/c,this.over)}else a=r*J(o),e=0;else{var m=Math.exp(h/this.k0),y=.5*(m-1/m),w=this.lat0+o/this.k0,v=Math.cos(w);s=Math.sqrt((1-Math.pow(v,2))/(1+Math.pow(y,2))),a=Math.asin(s),o<0&&(a=-a),e=0===y&&0===v?0:V(Math.atan2(y,v)+this.long0,this.over)}return t.x=e,t.y=a,t},names:["Fast_Transverse_Mercator","Fast Transverse Mercator"]};function us(t){var s=Math.exp(t);return s=(s-1/s)/2}function _s(t,s){t=Math.abs(t),s=Math.abs(s);var i=Math.max(t,s),a=Math.min(t,s)/(i||1);return i*Math.sqrt(1+Math.pow(a,2))}function Ms(t){var s=Math.abs(t);return s=function(t){var s=1+t,i=s-1;return 0===i?t:t*Math.log(s)/i}(s*(1+s/(_s(1,s)+1))),t<0?-s:s}function ds(t,s){for(var i,a=2*Math.cos(2*s),e=t.length-1,h=t[e],r=0;--e>=0;)i=a*h-r+t[e],r=h,h=i;return s+i*Math.sin(2*s)}function fs(t,s,i){for(var a,e,h=Math.sin(s),r=Math.cos(s),n=us(i),o=function(t){var s=Math.exp(t);return(s+1/s)/2}(i),l=2*r*o,c=-2*h*n,u=t.length-1,_=t[u],M=0,d=0,f=0;--u>=0;)a=d,e=M,_=l*(d=_)-a-c*(M=f)+t[u],f=c*d-e+l*M;return[(l=h*o)*_-(c=r*n)*f,l*f+c*_]}const gs={init:function(){if(!this.approx&&(isNaN(this.es)||this.es<=0))throw new Error('Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.');this.approx&&(cs.init.apply(this),this.forward=cs.forward,this.inverse=cs.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*(s*(116/45+s*(26/45+s*(-2854/675)))-2))),this.cbg[0]=s*(s*(2/3+s*(4/3+s*(-82/45+s*(32/45+s*(4642/4725)))))-2),i*=s,this.cgb[1]=i*(7/3+s*(s*(-227/45+s*(2704/315+s*(2323/945)))-1.6)),this.cbg[1]=i*(5/3+s*(-16/15+s*(-13/9+s*(904/315+s*(-1522/945))))),i*=s,this.cgb[2]=i*(56/15+s*(-136/35+s*(-1262/105+s*(73814/2835)))),this.cbg[2]=i*(-26/15+s*(34/21+s*(1.6+s*(-12686/2835)))),i*=s,this.cgb[3]=i*(4279/630+s*(-332/35+s*(-399572/14175))),this.cbg[3]=i*(1237/630+s*(s*(-24832/14175)-2.4)),i*=s,this.cgb[4]=i*(4174/315+s*(-144838/6237)),this.cbg[4]=i*(-734/315+s*(109598/31185)),i*=s,this.cgb[5]=i*(601676/22275),this.cbg[5]=i*(444337/155925),i=Math.pow(s,2),this.Qn=this.k0/(1+s)*(1+i*(1/4+i*(1/64+i/256))),this.utg[0]=s*(s*(2/3+s*(-37/96+s*(1/360+s*(81/512+s*(-96199/604800)))))-.5),this.gtu[0]=s*(.5+s*(-2/3+s*(5/16+s*(41/180+s*(-127/288+s*(7891/37800)))))),this.utg[1]=i*(-1/48+s*(-1/15+s*(437/1440+s*(-46/105+s*(1118711/3870720))))),this.gtu[1]=i*(13/48+s*(s*(557/1440+s*(281/630+s*(-1983433/1935360)))-.6)),i*=s,this.utg[2]=i*(-17/480+s*(37/840+s*(209/4480+s*(-5569/90720)))),this.gtu[2]=i*(61/240+s*(-103/140+s*(15061/26880+s*(167603/181440)))),i*=s,this.utg[3]=i*(-4397/161280+s*(11/504+s*(830251/7257600))),this.gtu[3]=i*(49561/161280+s*(-179/168+s*(6601661/7257600))),i*=s,this.utg[4]=i*(-4583/161280+s*(108847/3991680)),this.gtu[4]=i*(34729/80640+s*(-3418889/1995840)),i*=s,this.utg[5]=i*(-20648693/638668800),this.gtu[5]=.6650675310896665*i;var a=ds(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=a*h-r+t[e],r=h,h=i;return Math.sin(s)*i}(this.gtu,2*a))},forward:function(t){var s=V(t.x-this.long0,this.over),i=t.y;i=ds(this.cbg,i);var a=Math.sin(i),e=Math.cos(i),h=Math.sin(s),r=Math.cos(s);i=Math.atan2(a,r*e),s=Math.atan2(h*e,_s(a,e*r)),s=Ms(Math.tan(s));var n,o,l=fs(this.gtu,2*i,2*s);return i+=l[0],s+=l[1],Math.abs(s)<=2.623395162778?(n=this.a*(this.Qn*s)+this.x0,o=this.a*(this.Qn*i+this.Zb)+this.y0):(n=1/0,o=1/0),t.x=n,t.y=o,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,a/=this.Qn,Math.abs(a)<=2.623395162778){var h=fs(this.utg,2*e,2*a);e+=h[0],a+=h[1],a=Math.atan(us(a));var r=Math.sin(e),n=Math.cos(e),o=Math.sin(a),l=Math.cos(a);e=Math.atan2(r*l,_s(o,l*n)),s=V((a=Math.atan2(o,l*n))+this.long0,this.over),i=ds(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"]};const ps={init:function(){var t=function(t,s){if(void 0===t){if((t=Math.floor(30*(V(s)+Math.PI)/Math.PI)+1)<0)return 0;if(t>60)return 60}return t}(this.zone,this.long0);if(void 0===t)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(t)-183)*o,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,gs.init.apply(this),this.forward=gs.forward,this.inverse=gs.inverse},names:["Universal Transverse Mercator System","utm"],dependsOn:"etmerc"};function ms(t,s){return Math.pow((1-t)/(1+t),s)}const ys={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+c)/(Math.pow(Math.tan(.5*this.lat0+c),this.C)*ms(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+c),this.C)*ms(this.e*Math.sin(i),this.ratexp))-r,t.x=this.C*s,t},inverse:function(t){for(var s=t.x/this.C,i=t.y,a=Math.pow(Math.tan(.5*i+c)/this.K,1/this.C),e=20;e>0&&(i=2*Math.atan(a*ms(this.e*Math.sin(t.y),-.5*this.e))-r,!(Math.abs(i-t.y)<1e-14));--e)t.y=i;return e?(t.x=s,t.y=i,t):null},names:["gauss"]};const ws={init:function(){ys.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=V(t.x-this.long0,this.over),ys.forward.apply(this,[t]),s=Math.sin(t.y),i=Math.cos(t.y),a=Math.cos(t.x),e=this.k0*this.R2/(1+this.sinc0*s+this.cosc0*i*a),t.x=e*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=_s(t.x,t.y)){var r=2*Math.atan2(h,this.R2);s=Math.sin(r),i=Math.cos(r),e=Math.asin(i*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,ys.inverse.apply(this,[t]),t.x=V(t.x+this.long0,this.over),t},names:["Stereographic_North_Pole","Oblique_Stereographic","sterea","Oblique Stereographic Alternative","Double_Stereographic"]};function vs(t,s,i){return s*=i,Math.tan(.5*(r+t))*Math.pow((1-s)/(1+s),.5*i)}const Es={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)&&Math.abs(this.coslat0)<=n&&(this.k0=.5*(1+J(this.lat0)*Math.sin(this.lat_ts))):(Math.abs(this.coslat0)<=n&&(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)&&Math.abs(this.coslat0)<=n&&Math.abs(Math.cos(this.lat_ts))>n&&(this.k0=.5*this.cons*X(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/K(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=X(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(vs(this.lat0,this.sinlat0,this.e))-r,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))},forward:function(t){var s,i,a,e,h,o,l=t.x,c=t.y,u=Math.sin(c),_=Math.cos(c),M=V(l-this.long0,this.over);return Math.abs(Math.abs(l-this.long0)-Math.PI)<=n&&Math.abs(c+this.lat0)<=n?(t.x=NaN,t.y=NaN,t):this.sphere?(s=2*this.k0/(1+this.sinlat0*u+this.coslat0*_*Math.cos(M)),t.x=this.a*s*_*Math.sin(M)+this.x0,t.y=this.a*s*(this.coslat0*u-this.sinlat0*_*Math.cos(M))+this.y0,t):(i=2*Math.atan(vs(c,u,this.e))-r,e=Math.cos(i),a=Math.sin(i),Math.abs(this.coslat0)<=n?(h=K(this.e,c*this.con,this.con*u),o=2*this.a*this.k0*h/this.cons,t.x=this.x0+o*Math.sin(l-this.long0),t.y=this.y0-this.con*o*Math.cos(l-this.long0),t):(Math.abs(this.sinlat0)<n?(s=2*this.a*this.k0/(1+e*Math.cos(M)),t.y=s*a):(s=2*this.a*this.k0*this.ms1/(this.cosX0*(1+this.sinX0*a+this.cosX0*e*Math.cos(M))),t.y=s*(this.cosX0*a-this.sinX0*e*Math.cos(M))+this.y0),t.x=s*e*Math.sin(M)+this.x0,t))},inverse:function(t){var s,i,a,e,h;t.x-=this.x0,t.y-=this.y0;var o=Math.sqrt(t.x*t.x+t.y*t.y);if(this.sphere){var l=2*Math.atan(o/(2*this.a*this.k0));return s=this.long0,i=this.lat0,o<=n?(t.x=s,t.y=i,t):(i=Math.asin(Math.cos(l)*this.sinlat0+t.y*Math.sin(l)*this.coslat0/o),s=Math.abs(this.coslat0)<n?this.lat0>0?V(this.long0+Math.atan2(t.x,-1*t.y),this.over):V(this.long0+Math.atan2(t.x,t.y),this.over):V(this.long0+Math.atan2(t.x*Math.sin(l),o*this.coslat0*Math.cos(l)-t.y*this.sinlat0*Math.sin(l)),this.over),t.x=s,t.y=i,t)}if(Math.abs(this.coslat0)<=n){if(o<=n)return i=this.lat0,s=this.long0,t.x=s,t.y=i,t;t.x*=this.con,t.y*=this.con,a=o*this.cons/(2*this.a*this.k0),i=this.con*Z(this.e,a),s=this.con*V(this.con*this.long0+Math.atan2(t.x,-1*t.y),this.over)}else e=2*Math.atan(o*this.cosX0/(2*this.a*this.k0*this.ms1)),s=this.long0,o<=n?h=this.X0:(h=Math.asin(Math.cos(e)*this.sinX0+t.y*Math.sin(e)*this.cosX0/o),s=V(this.long0+Math.atan2(t.x*Math.sin(e),o*this.cosX0*Math.cos(e)-t.y*this.sinX0*Math.sin(e)),this.over)),i=-1*Z(this.e,Math.tan(.5*(r+h)));return t.x=s,t.y=i,t},names:["stere","Stereographic_South_Pole","Polar_Stereographic_variant_A","Polar_Stereographic_variant_B","Polar_Stereographic"],ssfn_:vs};const Ss={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=-this.alpha*(s+i)+this.K,e=2*(Math.atan(Math.exp(a))-Math.PI/4),h=this.alpha*(t.x-this.lambda0),r=Math.atan(Math.sin(h)/(Math.sin(this.b0)*Math.tan(e)+Math.cos(this.b0)*Math.cos(h))),n=Math.asin(Math.cos(this.b0)*Math.sin(e)-Math.sin(this.b0)*Math.cos(e)*Math.cos(h));return t.y=this.R/2*Math.log((1+Math.sin(n))/(1-Math.sin(n)))+this.y0,t.x=this.R*r+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,c=-1e3,u=0;Math.abs(l-c)>1e-7;){if(++u>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)),c=l,l=2*Math.atan(Math.exp(o))-Math.PI/2}return t.x=n,t.y=l,t},names:["somerc"]};var xs=1e-7;const Ps={init:function(){var t,s,i,a,e,h,o,l,_,M,d,f,g,p,m=0,y=0,w=0,v=0,E=0,S=0,x=0;this.no_off=(g=["Hotine_Oblique_Mercator","Hotine_Oblique_Mercator_variant_A","Hotine_Oblique_Mercator_Azimuth_Natural_Origin"],p="object"==typeof(f=this).projName?Object.keys(f.projName)[0]:f.projName,"no_uoff"in f||"no_off"in f||-1!==g.indexOf(p)||-1!==g.indexOf(et(p))),this.no_rot="no_rot"in this;var P=!1;"alpha"in this&&(P=!0);var G=!1;if("rectified_grid_angle"in this&&(G=!0),P&&(x=this.alpha),G&&(m=this.rectified_grid_angle),P||G)y=this.longc;else if(w=this.long1,E=this.lat1,v=this.long2,S=this.lat2,Math.abs(E-S)<=xs||(t=Math.abs(E))<=xs||Math.abs(t-r)<=xs||Math.abs(Math.abs(this.lat0)-r)<=xs||Math.abs(Math.abs(S)-r)<=xs)throw new Error;var b=1-this.es;s=Math.sqrt(b),Math.abs(this.lat0)>n?(l=Math.sin(this.lat0),i=Math.cos(this.lat0),t=1-this.es*l*l,this.B=i*i,this.B=Math.sqrt(1+this.es*this.B*this.B/b),this.A=this.B*this.k0*s/t,(e=(a=this.B*s/(i*Math.sqrt(t)))*a-1)<=0?e=0:(e=Math.sqrt(e),this.lat0<0&&(e=-e)),this.E=e+=a,this.E*=Math.pow(K(this.e,this.lat0,l),this.B)):(this.B=1/s,this.A=this.k0,this.E=a=e=1),P||G?(P?(d=Math.asin(Math.sin(x)/a),G||(m=x)):(d=m,x=Math.asin(a*Math.sin(d))),this.lam0=y-Math.asin(.5*(e-1/e)*Math.tan(d))/this.B):(h=Math.pow(K(this.e,E,Math.sin(E)),this.B),o=Math.pow(K(this.e,S,Math.sin(S)),this.B),e=this.E/h,_=(o-h)/(o+h),M=((M=this.E*this.E)-o*h)/(M+o*h),(t=w-v)<-Math.PI?v-=u:t>Math.PI&&(v+=u),this.lam0=V(.5*(w+v)-Math.atan(M*Math.tan(.5*this.B*(w-v))/_)/this.B,this.over),d=Math.atan(2*Math.sin(this.B*V(w-this.lam0,this.over))/(e-1/e)),m=x=Math.asin(a*Math.sin(d))),this.singam=Math.sin(d),this.cosgam=Math.cos(d),this.sinrot=Math.sin(m),this.cosrot=Math.cos(m),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(a*a-1)/Math.cos(x))),this.lat0<0&&(this.u_0=-this.u_0)),e=.5*d,this.v_pole_n=this.ArB*Math.log(Math.tan(c-e)),this.v_pole_s=this.ArB*Math.log(Math.tan(c+e))},forward:function(t){var s,i,a,e,h,o,l,c,u={};if(t.x=t.x-this.lam0,Math.abs(Math.abs(t.y)-r)>n){if(s=.5*((h=this.E/Math.pow(K(this.e,t.y,Math.sin(t.y)),this.B))-(o=1/h)),i=.5*(h+o),e=Math.sin(this.B*t.x),a=(s*this.singam-e*this.cosgam)/i,Math.abs(Math.abs(a)-1)<n)throw new Error;c=.5*this.ArB*Math.log((1-a)/(1+a)),o=Math.cos(this.B*t.x),l=Math.abs(o)<xs?this.A*t.x:this.ArB*Math.atan2(s*this.cosgam+e*this.singam,o)}else c=t.y>0?this.v_pole_n:this.v_pole_s,l=this.ArB*t.y;return this.no_rot?(u.x=l,u.y=c):(l-=this.u_0,u.x=c*this.cosrot+l*this.sinrot,u.y=l*this.cosrot-c*this.sinrot),u.x=this.a*u.x+this.x0,u.y=this.a*u.y+this.y0,u},inverse:function(t){var s,i,a,e,h,o,l,c={};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),e=.5*((a=Math.exp(-this.BrA*i))-1/a),h=.5*(a+1/a),l=((o=Math.sin(this.BrA*s))*this.cosgam+e*this.singam)/h,Math.abs(Math.abs(l)-1)<n)c.x=0,c.y=l<0?-r:r;else{if(c.y=this.E/Math.sqrt((1+l)/(1-l)),c.y=Z(this.e,Math.pow(c.y,1/this.B)),c.y===1/0)throw new Error;c.x=-this.rB*Math.atan2(e*this.cosgam-o*this.singam,Math.cos(this.BrA*s))}return c.x+=this.lam0,c},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"]};const Gs={init:function(){if(this.lat2||(this.lat2=this.lat1),this.k0||(this.k0=1),this.x0=this.x0||0,this.y0=this.y0||0,!(Math.abs(this.lat1+this.lat2)<n)){var t=this.b/this.a;this.e=Math.sqrt(1-t*t);var s=Math.sin(this.lat1),i=Math.cos(this.lat1),a=X(this.e,s,i),e=K(this.e,this.lat1,s),h=Math.sin(this.lat2),o=Math.cos(this.lat2),l=X(this.e,h,o),c=K(this.e,this.lat2,h),u=Math.abs(Math.abs(this.lat0)-r)<n?0:K(this.e,this.lat0,Math.sin(this.lat0));Math.abs(this.lat1-this.lat2)>n?this.ns=Math.log(a/l)/Math.log(e/c):this.ns=s,isNaN(this.ns)&&(this.ns=s),this.f0=a/(this.ns*Math.pow(e,this.ns)),this.rh=this.a*this.f0*Math.pow(u,this.ns),this.title||(this.title="Lambert Conformal Conic")}},forward:function(t){var s=t.x,i=t.y;Math.abs(2*Math.abs(i)-Math.PI)<=n&&(i=J(i)*(r-2e-10));var a,e,h=Math.abs(Math.abs(i)-r);if(h>n)a=K(this.e,i,Math.sin(i)),e=this.a*this.f0*Math.pow(a,this.ns);else{if((h=i*this.ns)<=0)return null;e=0}var o=this.ns*V(s-this.long0,this.over);return t.x=this.k0*(e*Math.sin(o))+this.x0,t.y=this.k0*(this.rh-e*Math.cos(o))+this.y0,t},inverse:function(t){var s,i,a,e,h,n=(t.x-this.x0)/this.k0,o=this.rh-(t.y-this.y0)/this.k0;this.ns>0?(s=Math.sqrt(n*n+o*o),i=1):(s=-Math.sqrt(n*n+o*o),i=-1);var l=0;if(0!==s&&(l=Math.atan2(i*n,i*o)),0!==s||this.ns>0){if(i=1/this.ns,a=Math.pow(s/(this.a*this.f0),i),-9999===(e=Z(this.e,a)))return null}else e=-r;return h=V(l/this.ns+this.long0,this.over),t.x=h,t.y=e,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)"]};const bs={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,c=V(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=-c*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,n=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(e/2+this.s45),this.n),t.y=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),Math.abs(r-t.y)<1e-10&&(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 Ns(t,s,i,a,e){return t*e-s*Math.sin(2*e)+i*Math.sin(4*e)-a*Math.sin(6*e)}function As(t){return 1-.25*t*(1+t/16*(3+1.25*t))}function Is(t){return.375*t*(1+.25*t*(1+.46875*t))}function Cs(t){return.05859375*t*t*(1+.75*t)}function js(t){return t*t*t*(35/3072)}function Os(t,s,i){var a=s*i;return t/Math.sqrt(1-a*a)}function ks(t){return Math.abs(t)<r?t:t-J(t)*Math.PI}function Rs(t,s,i,a,e){var h,r;h=t/s;for(var n=0;n<15;n++)if(h+=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)+4*a*Math.cos(4*h)-6*e*Math.cos(6*h)),Math.abs(r)<=1e-10)return h;return NaN}const qs={init:function(){this.sphere||(this.e0=As(this.es),this.e1=Is(this.es),this.e2=Cs(this.es),this.e3=js(this.es),this.ml0=this.a*Ns(this.e0,this.e1,this.e2,this.e3,this.lat0))},forward:function(t){var s,i,a=t.x,e=t.y;if(a=V(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=Os(this.a,this.e,h),o=Math.tan(e)*Math.tan(e),l=a*Math.cos(e),c=l*l,u=this.es*r*r/(1-this.es);s=n*l*(1-c*o*(1/6-(8-o+8*u)*c/120)),i=this.a*Ns(this.e0,this.e1,this.e2,this.e3,e)-this.ml0+n*h/r*c*(.5+(5-o+6*u)*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,a=t.x/this.a,e=t.y/this.a;if(this.sphere){var h=e+this.lat0;s=Math.asin(Math.sin(h)*Math.cos(a)),i=Math.atan2(Math.tan(a),Math.cos(h))}else{var o=Rs(this.ml0/this.a+e,this.e0,this.e1,this.e2,this.e3);if(Math.abs(Math.abs(o)-r)<=n)return t.x=this.long0,t.y=r,e<0&&(t.y*=-1),t;var l=Os(this.a,this.e,Math.sin(o)),c=l*l*l/this.a/this.a*(1-this.es),u=Math.pow(Math.tan(o),2),_=a*this.a/l,M=_*_;s=o-l*Math.tan(o)/c*_*_*(.5-(1+3*u)*_*_/24),i=_*(1-M*(u/3+(1+3*u)*u*M/15))/Math.cos(o)}return t.x=V(i+this.long0,this.over),t.y=ks(s),t},names:["Cassini","Cassini_Soldner","cass"]};function Ls(t,s){var i;return t>1e-7?(1-t*t)*(s/(1-(i=t*s)*i)-.5/t*Math.log((1-i)/(1+i))):2*s}var Ts=.3333333333333333,Fs=.17222222222222222,zs=.10257936507936508,Bs=.06388888888888888,Ds=.0664021164021164,Us=.016415012942191543;const Ws={init:function(){var t,s=Math.abs(this.lat0);if(Math.abs(s-r)<n?this.mode=this.lat0<0?1:2:Math.abs(s)<n?this.mode=3:this.mode=4,this.es>0)switch(this.qp=Ls(this.e,1),this.mmf=.5/(1-this.es),this.apa=function(t){var s,i=[];return i[0]=t*Ts,s=t*t,i[0]+=s*Fs,i[1]=s*Bs,s*=t,i[0]+=s*zs,i[1]+=s*Ds,i[2]=s*Us,i}(this.es),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),t=Math.sin(this.lat0),this.sinb1=Ls(this.e,t)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*t*t)*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,a,e,h,o,l,u,_,M,d=t.x,f=t.y;if(d=V(d-this.long0,this.over),this.sphere){if(h=Math.sin(f),M=Math.cos(f),a=Math.cos(d),this.mode===this.OBLIQ||this.mode===this.EQUIT){if((i=this.mode===this.EQUIT?1+M*a:1+this.sinph0*h+this.cosph0*M*a)<=n)return null;s=(i=Math.sqrt(2/i))*M*Math.sin(d),i*=this.mode===this.EQUIT?h:this.cosph0*h-this.sinph0*M*a}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(a=-a),Math.abs(f+this.lat0)<n)return null;i=c-.5*f,s=(i=2*(this.mode===this.S_POLE?Math.cos(i):Math.sin(i)))*Math.sin(d),i*=a}}else{switch(l=0,u=0,_=0,a=Math.cos(d),e=Math.sin(d),h=Math.sin(f),o=Ls(this.e,h),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(l=o/this.qp,u=Math.sqrt(1-l*l)),this.mode){case this.OBLIQ:_=1+this.sinb1*l+this.cosb1*u*a;break;case this.EQUIT:_=1+u*a;break;case this.N_POLE:_=r+f,o=this.qp-o;break;case this.S_POLE:_=f-r,o=this.qp+o}if(Math.abs(_)<n)return null;switch(this.mode){case this.OBLIQ:case this.EQUIT:_=Math.sqrt(2/_),i=this.mode===this.OBLIQ?this.ymf*_*(this.cosb1*l-this.sinb1*u*a):(_=Math.sqrt(2/(1+u*a)))*l*this.ymf,s=this.xmf*_*u*e;break;case this.N_POLE:case this.S_POLE:o>=0?(s=(_=Math.sqrt(o))*e,i=a*(this.mode===this.S_POLE?_:-_)):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,a,e,h,o,l,c,u,_,M=t.x/this.a,d=t.y/this.a;if(this.sphere){var f,g=0,p=0;if((i=.5*(f=Math.sqrt(M*M+d*d)))>1)return null;switch(i=2*Math.asin(i),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(p=Math.sin(i),g=Math.cos(i)),this.mode){case this.EQUIT:i=Math.abs(f)<=n?0:Math.asin(d*p/f),M*=p,d=g*f;break;case this.OBLIQ:i=Math.abs(f)<=n?this.lat0:Math.asin(g*this.sinph0+d*p*this.cosph0/f),M*=p*this.cosph0,d=(g-Math.sin(i)*this.sinph0)*f;break;case this.N_POLE:d=-d,i=r-i;break;case this.S_POLE:i-=r}s=0!==d||this.mode!==this.EQUIT&&this.mode!==this.OBLIQ?Math.atan2(M,d):0}else{if(l=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(M/=this.dd,d*=this.dd,(o=Math.sqrt(M*M+d*d))<n)return t.x=this.long0,t.y=this.lat0,t;e=2*Math.asin(.5*o/this.rq),a=Math.cos(e),M*=e=Math.sin(e),this.mode===this.OBLIQ?(l=a*this.sinb1+d*e*this.cosb1/o,h=this.qp*l,d=o*this.cosb1*a-d*this.sinb1*e):(l=d*e/o,h=this.qp*l,d=o*a)}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(d=-d),!(h=M*M+d*d))return t.x=this.long0,t.y=this.lat0,t;l=1-h/this.qp,this.mode===this.S_POLE&&(l=-l)}s=Math.atan2(M,d),c=Math.asin(l),u=this.apa,_=c+c,i=c+u[0]*Math.sin(_)+u[1]*Math.sin(_+_)+u[2]*Math.sin(_+_+_)}return t.x=V(this.long0+s,this.over),t.y=i,t},names:["Lambert Azimuthal Equal Area","Lambert_Azimuthal_Equal_Area","laea"],S_POLE:1,N_POLE:2,EQUIT:3,OBLIQ:4};function Hs(t){return Math.abs(t)>1&&(t=t>1?1:-1),Math.asin(t)}const Qs={init:function(){Math.abs(this.lat1+this.lat2)<n||(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=X(this.e3,this.sin_po,this.cos_po),this.qs1=Ls(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=X(this.e3,this.sin_po,this.cos_po),this.qs2=Ls(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=Ls(this.e3,this.sin_po),Math.abs(this.lat1-this.lat2)>n?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=Ls(this.e3,this.sin_phi),e=this.a*Math.sqrt(this.c-this.ns0*a)/this.ns0,h=this.ns0*V(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,r;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?r=Math.asin((this.c-a*a)/(2*this.ns0)):(i=(this.c-a*a)/this.ns0,r=this.phi1z(this.e3,i)),h=V(e/this.ns0+this.long0,this.over),t.x=h,t.y=r,t},names:["Albers_Conic_Equal_Area","Albers_Equal_Area","Albers","aea"],phi1z:function(t,s){var i,a,e,h,r=Hs(.5*s);if(t<n)return r;for(var o=t*t,l=1;l<=25;l++)if(r+=h=.5*(e=1-(a=t*(i=Math.sin(r)))*a)*e/Math.cos(r)*(s/(1-o)-i/e+.5/t*Math.log((1-a)/(1+a))),Math.abs(h)<=1e-7)return r;return null}};const Xs={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,o,l=t.x,c=t.y;return a=V(l-this.long0,this.over),s=Math.sin(c),i=Math.cos(c),e=Math.cos(a),1,(h=this.sin_p14*s+this.cos_p14*i*e)>0||Math.abs(h)<=n?(r=this.x0+1*this.a*i*Math.sin(a)/h,o=this.y0+1*this.a*(this.cos_p14*s-this.sin_p14*i*e)/h):(r=this.x0+this.infinity_dist*i*Math.sin(a),o=this.y0+this.infinity_dist*(this.cos_p14*s-this.sin_p14*i*e)),t.x=r,t.y=o,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))?(e=Math.atan2(s,this.rc),i=Math.sin(e),r=Hs((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=V(this.long0+h,this.over)):(r=this.phic0,h=0),t.x=h,t.y=r,t},names:["gnom"]};const Js={init:function(){this.sphere||(this.k0=X(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=V(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=Ls(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=V(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){var i=1-(1-t*t)/(2*t)*Math.log((1-t)/(1+t));if(Math.abs(Math.abs(s)-i)<1e-6)return s<0?-1*r:r;for(var a,e,h,n,o=Math.asin(.5*s),l=0;l<30;l++)if(e=Math.sin(o),h=Math.cos(o),n=t*e,o+=a=Math.pow(1-n*n,2)/(2*h)*(s/(1-t*t)-e/(1-n*n)+.5/t*Math.log((1-n)/(1+n))),Math.abs(a)<=1e-10)return o;return NaN}(this.e,2*t.y*this.k0/this.a),s=V(this.long0+t.x/(this.a*this.k0),this.over)),t.x=s,t.y=i,t},names:["cea"]};const Vs={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=V(s-this.long0,this.over),e=ks(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=V(this.long0+(s-this.x0)/(this.a*this.rc),this.over),t.y=ks(this.lat0+(i-this.y0)/this.a),t},names:["Equirectangular","Equidistant_Cylindrical","Equidistant_Cylindrical_Spherical","eqc"]};const Ks={init:function(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=As(this.es),this.e1=Is(this.es),this.e2=Cs(this.es),this.e3=js(this.es),this.ml0=this.a*Ns(this.e0,this.e1,this.e2,this.e3,this.lat0)},forward:function(t){var s,i,a,e=t.x,h=t.y,r=V(e-this.long0,this.over);if(a=r*Math.sin(h),this.sphere)Math.abs(h)<=n?(s=this.a*r,i=-1*this.a*this.lat0):(s=this.a*Math.sin(a)/Math.tan(h),i=this.a*(ks(h-this.lat0)+(1-Math.cos(a))/Math.tan(h)));else if(Math.abs(h)<=n)s=this.a*r,i=-1*this.ml0;else{var o=Os(this.a,this.e,Math.sin(h))/Math.tan(h);s=o*Math.sin(a),i=this.a*Ns(this.e0,this.e1,this.e2,this.e3,h)-this.ml0+o*(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,o,l,c;if(a=t.x-this.x0,e=t.y-this.y0,this.sphere)if(Math.abs(e+this.a*this.lat0)<=n)s=V(a/this.a+this.long0,this.over),i=0;else{var u;for(r=this.lat0+e/this.a,o=a*a/this.a/this.a+r*r,l=r,h=20;h;--h)if(l+=c=-1*(r*(l*(u=Math.tan(l))+1)-l-.5*(l*l+o)*u)/((l-r)/u-1),Math.abs(c)<=n){i=l;break}s=V(this.long0+Math.asin(a*Math.tan(l)/this.a)/Math.sin(i),this.over)}else if(Math.abs(e+this.ml0)<=n)i=0,s=V(this.long0+a/this.a,this.over);else{var _,M,d,f,g;for(r=(this.ml0+e)/this.a,o=a*a/this.a/this.a+r*r,l=r,h=20;h;--h)if(g=this.e*Math.sin(l),_=Math.sqrt(1-g*g)*Math.tan(l),M=this.a*Ns(this.e0,this.e1,this.e2,this.e3,l),d=this.e0-2*this.e1*Math.cos(2*l)+4*this.e2*Math.cos(4*l)-6*this.e3*Math.cos(6*l),l-=c=(r*(_*(f=M/this.a)+1)-f-.5*_*(f*f+o))/(this.es*Math.sin(2*l)*(f*f+o-2*r*f)/(4*_)+(r-f)*(_*d-2/Math.sin(2*l))-d),Math.abs(c)<=n){i=l;break}_=Math.sqrt(1-this.es*Math.pow(Math.sin(i),2))*Math.tan(i),s=V(this.long0+Math.asin(a*_/this.a)/Math.sin(i),this.over)}return t.x=s,t.y=i,t},names:["Polyconic","American_Polyconic","poly"]};const Zs={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=t.x,a=t.y-this.lat0,e=i-this.long0,r=a/h*1e-5,n=e,o=1,l=0;for(s=1;s<=10;s++)o*=r,l+=this.A[s]*o;var c,u=l,_=n,M=1,d=0,f=0,g=0;for(s=1;s<=6;s++)c=d*u+M*_,M=M*u-d*_,d=c,f=f+this.B_re[s]*M-this.B_im[s]*d,g=g+this.B_im[s]*M+this.B_re[s]*d;return t.x=g*this.a+this.x0,t.y=f*this.a+this.y0,t},inverse:function(t){var s,i,a=t.x,e=t.y,r=a-this.x0,n=(e-this.y0)/this.a,o=r/this.a,l=1,c=0,u=0,_=0;for(s=1;s<=6;s++)i=c*n+l*o,l=l*n-c*o,c=i,u=u+this.C_re[s]*l-this.C_im[s]*c,_=_+this.C_im[s]*l+this.C_re[s]*c;for(var M=0;M<this.iterations;M++){var d,f=u,g=_,p=n,m=o;for(s=2;s<=6;s++)d=g*u+f*_,f=f*u-g*_,g=d,p+=(s-1)*(this.B_re[s]*f-this.B_im[s]*g),m+=(s-1)*(this.B_im[s]*f+this.B_re[s]*g);f=1,g=0;var y=this.B_re[1],w=this.B_im[1];for(s=2;s<=6;s++)d=g*u+f*_,f=f*u-g*_,g=d,y+=s*(this.B_re[s]*f-this.B_im[s]*g),w+=s*(this.B_im[s]*f+this.B_re[s]*g);var v=y*y+w*w;u=(p*y+m*w)/v,_=(m*y-p*w)/v}var E=u,S=_,x=1,P=0;for(s=1;s<=9;s++)x*=E,P+=this.D[s]*x;var G=this.lat0+P*h*1e5,b=this.long0+S;return t.x=b,t.y=G,t},names:["New_Zealand_Map_Grid","nzmg"]};const Ys={init:function(){},forward:function(t){var s=t.x,i=t.y,a=V(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=V(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"]};const $s={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=ns(this.es)},forward:function(t){var s,i,a=t.x,e=t.y;if(a=V(a-this.long0,this.over),this.sphere){if(this.m)for(var h=this.n*Math.sin(e),r=20;r;--r){var o=(this.m*e+Math.sin(e)-h)/(this.m+Math.cos(e));if(e-=o,Math.abs(o)<n)break}else 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 l=Math.sin(e),c=Math.cos(e);i=this.a*os(e,l,c,this.en),s=this.a*a*c/Math.sqrt(1-this.es*l*l)}return t.x=s,t.y=i,t},inverse:function(t){var s,i,a;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=Hs((this.m*s+Math.sin(s))/this.n):1!==this.n&&(s=Hs(Math.sin(s)/this.n)),i=V(i+this.long0,this.over),s=ks(s)):(s=ls(t.y/this.a,this.es,this.en),(a=Math.abs(s))<r?(a=Math.sin(s),i=V(this.long0+t.x*Math.sqrt(1-this.es*a*a)/(this.a*Math.cos(s)),this.over)):a-n<r&&(i=this.long0)),t.x=i,t.y=s,t},names:["Sinusoidal","sinu"]};const ti={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=V(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,Math.abs(r)<n)break}e/=2,Math.PI/2-Math.abs(i)<n&&(a=0);var o=.900316316158*this.a*a*Math.cos(e)+this.x0,l=1.4142135623731*this.a*Math.sin(e)+this.y0;return t.x=o,t.y=l,t},inverse:function(t){var s,i;t.x-=this.x0,t.y-=this.y0,i=t.y/(1.4142135623731*this.a),Math.abs(i)>.999999999999&&(i=.999999999999),s=Math.asin(i);var a=V(this.long0+t.x/(.900316316158*this.a*Math.cos(s)),this.over);a<-Math.PI&&(a=-Math.PI),a>Math.PI&&(a=Math.PI),i=(2*s+Math.sin(2*s))/Math.PI,Math.abs(i)>1&&(i=1);var e=Math.asin(i);return t.x=a,t.y=e,t},names:["Mollweide","moll"]};const si={init:function(){Math.abs(this.lat1+this.lat2)<n||(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=As(this.es),this.e1=Is(this.es),this.e2=Cs(this.es),this.e3=js(this.es),this.sin_phi=Math.sin(this.lat1),this.cos_phi=Math.cos(this.lat1),this.ms1=X(this.e,this.sin_phi,this.cos_phi),this.ml1=Ns(this.e0,this.e1,this.e2,this.e3,this.lat1),Math.abs(this.lat1-this.lat2)<n?this.ns=this.sin_phi:(this.sin_phi=Math.sin(this.lat2),this.cos_phi=Math.cos(this.lat2),this.ms2=X(this.e,this.sin_phi,this.cos_phi),this.ml2=Ns(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=Ns(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=Ns(this.e0,this.e1,this.e2,this.e3,a);s=this.a*(this.g-e)}var h=this.ns*V(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){var s,i,a,e;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 h=0;return 0!==i&&(h=Math.atan2(s*t.x,s*t.y)),this.sphere?(e=V(this.long0+h/this.ns,this.over),a=ks(this.g-i/this.a),t.x=e,t.y=a,t):(a=Rs(this.g-i/this.a,this.e0,this.e1,this.e2,this.e3),e=V(this.long0+h/this.ns,this.over),t.x=e,t.y=a,t)},names:["Equidistant_Conic","eqdc"]};const ii={init:function(){this.R=this.a},forward:function(t){var s,i,a=t.x,e=t.y,h=V(a-this.long0,this.over);Math.abs(e)<=n&&(s=this.x0+this.R*h,i=this.y0);var o=Hs(2*Math.abs(e/Math.PI));(Math.abs(h)<=n||Math.abs(Math.abs(e)-r)<=n)&&(s=this.x0,i=e>=0?this.y0+Math.PI*this.R*Math.tan(.5*o):this.y0+Math.PI*this.R*-Math.tan(.5*o));var l=.5*Math.abs(Math.PI/h-h/Math.PI),c=l*l,u=Math.sin(o),_=Math.cos(o),M=_/(u+_-1),d=M*M,f=M*(2/u-1),g=f*f,p=Math.PI*this.R*(l*(M-g)+Math.sqrt(c*(M-g)*(M-g)-(g+c)*(d-g)))/(g+c);h<0&&(p=-p),s=this.x0+p;var m=c+M;return p=Math.PI*this.R*(f*m-l*Math.sqrt((g+c)*(c+1)-m*m))/(g+c),i=e>=0?this.y0+p:this.y0-p,t.x=s,t.y=i,t},inverse:function(t){var s,i,a,e,h,r,o,l,c,u,_,M;return t.x-=this.x0,t.y-=this.y0,_=Math.PI*this.R,h=(a=t.x/_)*a+(e=t.y/_)*e,_=3*(e*e/(l=-2*(r=-Math.abs(e)*(1+h))+1+2*e*e+h*h)+(2*(o=r-2*e*e+a*a)*o*o/l/l/l-9*r*o/l/l)/27)/(c=(r-o*o/3/l)/l)/(u=2*Math.sqrt(-c/3)),Math.abs(_)>1&&(_=_>=0?1:-1),M=Math.acos(_)/3,i=t.y>=0?(-u*Math.cos(M+Math.PI/3)-o/3/l)*Math.PI:-(-u*Math.cos(M+Math.PI/3)-o/3/l)*Math.PI,s=Math.abs(a)<n?this.long0:V(this.long0+Math.PI*(h-1+Math.sqrt(1+2*(a*a-e*e)+h*h))/2/a,this.over),t.x=s,t.y=i,t},names:["Van_der_Grinten_I","VanDerGrinten","Van_der_Grinten","vandg"]};const ai={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,a,e,h,o,l,c,u,_,M,d=t.x,f=t.y,g=Math.sin(t.y),p=Math.cos(t.y),m=V(d-this.long0,this.over);return this.sphere?Math.abs(this.sin_p12-1)<=n?(t.x=this.x0+this.a*(r-f)*Math.sin(m),t.y=this.y0-this.a*(r-f)*Math.cos(m),t):Math.abs(this.sin_p12+1)<=n?(t.x=this.x0+this.a*(r+f)*Math.sin(m),t.y=this.y0+this.a*(r+f)*Math.cos(m),t):(u=this.sin_p12*g+this.cos_p12*p*Math.cos(m),c=(l=Math.acos(u))?l/Math.sin(l):1,t.x=this.x0+this.a*c*p*Math.sin(m),t.y=this.y0+this.a*c*(this.cos_p12*g-this.sin_p12*p*Math.cos(m)),t):(s=As(this.es),i=Is(this.es),a=Cs(this.es),e=js(this.es),Math.abs(this.sin_p12-1)<=n?(h=this.a*Ns(s,i,a,e,r),o=this.a*Ns(s,i,a,e,f),t.x=this.x0+(h-o)*Math.sin(m),t.y=this.y0-(h-o)*Math.cos(m),t):Math.abs(this.sin_p12+1)<=n?(h=this.a*Ns(s,i,a,e,r),o=this.a*Ns(s,i,a,e,f),t.x=this.x0+(h+o)*Math.sin(m),t.y=this.y0+(h+o)*Math.cos(m),t):Math.abs(d)<n&&Math.abs(f-this.lat0)<n?(t.x=t.y=0,t):(_=function(t,s,i,a,e,h){const r=a-s,n=Math.atan((1-h)*Math.tan(t)),o=Math.atan((1-h)*Math.tan(i)),l=Math.sin(n),c=Math.cos(n),u=Math.sin(o),_=Math.cos(o);let M,d,f,g,p,m,y,w,v,E,S,x,P,G,b,N=r,A=100;do{if(d=Math.sin(N),f=Math.cos(N),g=Math.sqrt(_*d*(_*d)+(c*u-l*_*f)*(c*u-l*_*f)),0===g)return{azi1:0,s12:0};p=l*u+c*_*f,m=Math.atan2(g,p),y=c*_*d/g,w=1-y*y,v=0!==w?p-2*l*u/w:0,E=h/16*w*(4+h*(4-3*w)),M=N,N=r+(1-E)*h*y*(m+E*g*(v+E*p*(2*v*v-1)))}while(Math.abs(N-M)>1e-12&&--A>0);return 0===A?{azi1:NaN,s12:NaN}:(S=w*(e*e-e*(1-h)*(e*(1-h)))/(e*(1-h)*(e*(1-h))),x=1+S/16384*(4096+S*(S*(320-175*S)-768)),P=S/1024*(256+S*(S*(74-47*S)-128)),G=P*g*(v+P/4*(p*(2*v*v-1)-P/6*v*(4*g*g-3)*(4*v*v-3))),b=e*(1-h)*x*(m-G),{azi1:Math.atan2(_*d,c*u-l*_*f),s12:b})}(this.lat0,this.long0,f,d,this.a,this.f),M=_.azi1,t.x=_.s12*Math.sin(M),t.y=_.s12*Math.cos(M),t))},inverse:function(t){var s,i,a,e,h,o,l,c,u,_,M,d,f,g,p;if(t.x-=this.x0,t.y-=this.y0,this.sphere){if((s=Math.sqrt(t.x*t.x+t.y*t.y))>2*r*this.a)return;return i=s/this.a,a=Math.sin(i),e=Math.cos(i),h=this.long0,Math.abs(s)<=n?o=this.lat0:(o=Hs(e*this.sin_p12+t.y*a*this.cos_p12/s),l=Math.abs(this.lat0)-r,h=Math.abs(l)<=n?this.lat0>=0?V(this.long0+Math.atan2(t.x,-t.y),this.over):V(this.long0-Math.atan2(-t.x,t.y),this.over):V(this.long0+Math.atan2(t.x*a,s*this.cos_p12*e-t.y*this.sin_p12*a),this.over)),t.x=h,t.y=o,t}return c=As(this.es),u=Is(this.es),_=Cs(this.es),M=js(this.es),Math.abs(this.sin_p12-1)<=n?(o=Rs(((d=this.a*Ns(c,u,_,M,r))-(s=Math.sqrt(t.x*t.x+t.y*t.y)))/this.a,c,u,_,M),h=V(this.long0+Math.atan2(t.x,-1*t.y),this.over),t.x=h,t.y=o,t):Math.abs(this.sin_p12+1)<=n?(d=this.a*Ns(c,u,_,M,r),o=Rs(((s=Math.sqrt(t.x*t.x+t.y*t.y))-d)/this.a,c,u,_,M),h=V(this.long0+Math.atan2(t.x,t.y),this.over),t.x=h,t.y=o,t):(f=Math.atan2(t.x,t.y),g=Math.sqrt(t.x*t.x+t.y*t.y),p=function(t,s,i,a,e,h){const r=Math.atan((1-h)*Math.tan(t)),n=Math.sin(r),o=Math.cos(r),l=Math.sin(i),c=Math.cos(i),u=Math.atan2(n,o*c),_=o*l,M=1-_*_,d=M*(e*e-e*(1-h)*(e*(1-h)))/(e*(1-h)*(e*(1-h))),f=1+d/16384*(4096+d*(d*(320-175*d)-768)),g=d/1024*(256+d*(d*(74-47*d)-128));let p,m,y,w,v,E=a/(e*(1-h)*f),S=100;do{m=Math.cos(2*u+E),y=Math.sin(E),w=Math.cos(E),v=g*y*(m+g/4*(w*(2*m*m-1)-g/6*m*(4*y*y-3)*(4*m*m-3))),p=E,E=a/(e*(1-h)*f)+v}while(Math.abs(E-p)>1e-12&&--S>0);if(0===S)return{lat2:NaN,lon2:NaN};const x=n*y-o*w*c,P=h/16*M*(4+h*(4-3*M));return{lat2:Math.atan2(n*w+o*y*c,(1-h)*Math.sqrt(_*_+x*x)),lon2:s+(Math.atan2(y*l,o*w-n*y*c)-(1-P)*h*_*(E+P*y*(m+P*w*(2*m*m-1))))}}(this.lat0,this.long0,f,g,this.a,this.f),t.x=p.lon2,t.y=p.lat2,t)},names:["Azimuthal_Equidistant","aeqd"]};const ei={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,o,l=t.x,c=t.y;return a=V(l-(this.long0||0),this.over),s=Math.sin(c),i=Math.cos(c),e=Math.cos(a),1,((h=this.sin_p14*s+this.cos_p14*i*e)>0||Math.abs(h)<=n)&&(r=1*this.a*i*Math.sin(a),o=(this.y0||0)+1*this.a*(this.cos_p14*s-this.sin_p14*i*e)),t.x=r,t.y=o,t},inverse:function(t){var s,i,a,e,h,o,l,c,u;return t.x-=this.x0||0,t.y-=this.y0||0,i=Hs((s=Math.sqrt(t.x*t.x+t.y*t.y))/this.a),a=Math.sin(i),e=Math.cos(i),c=this.long0||0,u=this.lat0||0,o=c,Math.abs(s)<=n?(l=u,t.x=o,t.y=l,t):(l=Hs(e*this.sin_p14+t.y*a*this.cos_p14/s),h=Math.abs(u)-r,Math.abs(h)<=n?(o=V(u>=0?c+Math.atan2(t.x,-t.y):c-Math.atan2(-t.x,t.y),this.over),t.x=o,t.y=l,t):(o=V(c+Math.atan2(t.x*a,s*this.cos_p14*e-t.y*this.sin_p14*a),this.over),t.x=o,t.y=l,t))},names:["ortho"]};var hi=1,ri=2,ni=3,oi=4,li=5,ci=6,ui=1,_i=2,Mi=3,di=4;function fi(t,s,i,a){var e;return t<n?(a.value=ui,e=0):(e=Math.atan2(s,i),Math.abs(e)<=c?a.value=ui:e>c&&e<=r+c?(a.value=_i,e-=r):e>r+c||e<=-(r+c)?(a.value=Mi,e=e>=0?e-_:e+_):(a.value=di,e+=r)),e}function gi(t,s){var i=t+s;return i<-_?i+=u:i>+_&&(i-=u),i}const pi={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>=r-c/2?this.face=li:this.lat0<=-(r-c/2)?this.face=ci:Math.abs(this.long0)<=c?this.face=hi:Math.abs(this.long0)<=r+c?this.face=this.long0>0?ri:oi:this.face=ni,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,a,e,h,n,o={x:0,y:0},l={value:0};if(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===li)e=r-s,i>=c&&i<=r+c?(l.value=ui,a=i-r):i>r+c||i<=-(r+c)?(l.value=_i,a=i>0?i-_:i+_):i>-(r+c)&&i<=-c?(l.value=Mi,a=i+r):(l.value=di,a=i);else if(this.face===ci)e=r+s,i>=c&&i<=r+c?(l.value=ui,a=-i+r):i<c&&i>=-c?(l.value=_i,a=-i):i<-c&&i>=-(r+c)?(l.value=Mi,a=-i-r):(l.value=di,a=i>0?-i+_:-i-_);else{var u,M,d,f,g,p;this.face===ri?i=gi(i,+r):this.face===ni?i=gi(i,+_):this.face===oi&&(i=gi(i,-r)),f=Math.sin(s),g=Math.cos(s),p=Math.sin(i),u=g*Math.cos(i),M=g*p,d=f,this.face===hi?a=fi(e=Math.acos(u),d,M,l):this.face===ri?a=fi(e=Math.acos(M),d,-u,l):this.face===ni?a=fi(e=Math.acos(-u),d,-M,l):this.face===oi?a=fi(e=Math.acos(-M),d,u,l):(e=a=0,l.value=ui)}return n=Math.atan(12/_*(a+Math.acos(Math.sin(a)*Math.cos(c))-r)),h=Math.sqrt((1-Math.cos(e))/(Math.cos(n)*Math.cos(n))/(1-Math.cos(Math.atan(1/Math.cos(a))))),l.value===_i?n+=r:l.value===Mi?n+=_:l.value===di&&(n+=1.5*_),o.x=h*Math.cos(n),o.y=h*Math.sin(n),o.x=o.x*this.a+this.x0,o.y=o.y*this.a+this.y0,t.x=o.x,t.y=o.y,t},inverse:function(t){var s,i,a,e,h,n,o,l,c,u,M,d,f={lam:0,phi:0},g={value:0};if(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)?g.value=ui:t.y>=0&&t.y>=Math.abs(t.x)?(g.value=_i,s-=r):t.x<0&&-t.x>=Math.abs(t.y)?(g.value=Mi,s=s<0?s+_:s-_):(g.value=di,s+=r),c=_/12*Math.tan(s),h=Math.sin(c)/(Math.cos(c)-1/Math.sqrt(2)),n=Math.atan(h),(o=1-(a=Math.cos(s))*a*(e=Math.tan(i))*e*(1-Math.cos(Math.atan(1/Math.cos(n)))))<-1?o=-1:o>1&&(o=1),this.face===li)l=Math.acos(o),f.phi=r-l,g.value===ui?f.lam=n+r:g.value===_i?f.lam=n<0?n+_:n-_:g.value===Mi?f.lam=n-r:f.lam=n;else if(this.face===ci)l=Math.acos(o),f.phi=l-r,g.value===ui?f.lam=-n+r:g.value===_i?f.lam=-n:g.value===Mi?f.lam=-n-r:f.lam=n<0?-n-_:-n+_;else{var p,m,y;c=(p=o)*p,m=(c+=(y=c>=1?0:Math.sqrt(1-c)*Math.sin(n))*y)>=1?0:Math.sqrt(1-c),g.value===_i?(c=m,m=-y,y=c):g.value===Mi?(m=-m,y=-y):g.value===di&&(c=m,m=y,y=-c),this.face===ri?(c=p,p=-m,m=c):this.face===ni?(p=-p,m=-m):this.face===oi&&(c=p,p=m,m=-c),f.phi=Math.acos(-y)-r,f.lam=Math.atan2(m,p),this.face===ri?f.lam=gi(f.lam,-r):this.face===ni?f.lam=gi(f.lam,-_):this.face===oi&&(f.lam=gi(f.lam,+r))}return 0!==this.es&&(u=f.phi<0?1:0,M=Math.tan(f.phi),d=this.b/Math.sqrt(M*M+this.one_minus_f_squared),f.phi=Math.atan(Math.sqrt(this.a*this.a-d*d)/(this.one_minus_f*d)),u&&(f.phi=-f.phi)),f.lam+=this.long0,t.x=f.lam,t.y=f.phi,t},names:["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"]};var mi=[[1,22199e-21,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-9.86701e-7],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,1.8736e-8],[.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,9.34959e-7],[.7986,-.00755338,-500009e-10,9.35324e-7],[.7597,-.00798324,-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]],yi=[[-520417e-23,.0124,121431e-23,-845284e-16],[.062,.0124,-1.26793e-9,4.22642e-10],[.124,.0124,5.07171e-9,-1.60604e-9],[.186,.0123999,-1.90189e-8,6.00152e-9],[.248,.0124002,7.10039e-8,-2.24e-8],[.31,.0123992,-2.64997e-7,8.35986e-8],[.372,.0124029,9.88983e-7,-3.11994e-7],[.434,.0123893,-369093e-11,-4.35621e-7],[.4958,.0123198,-102252e-10,-3.45523e-7],[.5571,.0121916,-154081e-10,-5.82288e-7],[.6176,.0119938,-241424e-10,-5.25327e-7],[.6769,.011713,-320223e-10,-5.16405e-7],[.7346,.0113541,-397684e-10,-6.09052e-7],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-1.40374e-9],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],wi=.8487,vi=1.3523,Ei=l/5,Si=18,xi=function(t,s){return t[0]+s*(t[1]+s*(t[2]+s*t[3]))};const Pi={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=V(t.x-this.long0,this.over),i=Math.abs(t.y),a=Math.floor(i*Ei);a<0?a=0:a>=Si&&(a=17);var e={x:xi(mi[a],i=l*(i-.08726646259971647*a))*s,y:xi(yi[a],i)};return t.y<0&&(e.y=-e.y),e.x=e.x*this.a*wi+this.x0,e.y=e.y*this.a*vi+this.y0,e},inverse:function(t){var s={x:(t.x-this.x0)/(this.a*wi),y:Math.abs(t.y-this.y0)/(this.a*vi)};if(s.y>=1)s.x/=mi[18][0],s.y=t.y<0?-r:r;else{var i=Math.floor(s.y*Si);for(i<0?i=0:i>=Si&&(i=17);;)if(yi[i][0]>s.y)--i;else{if(!(yi[i+1][0]<=s.y))break;++i}var a=yi[i],e=5*(s.y-a[0])/(yi[i+1][0]-a[0]);e=function(t,s,i,a){for(var e=s;a;--a){var h=t(e);if(e-=h,Math.abs(h)<i)break}return e}((function(t){return(xi(a,t)-s.y)/function(t,s){return t[1]+s*(2*t[2]+3*s*t[3])}(a,t)}),e,n,100),s.x/=xi(mi[i],e),s.y=(5*i+e)*o,t.y<0&&(s.y=-s.y)}return s.x=V(s.x+this.long0,this.over),s},names:["Robinson","robin"]};const Gi={init:function(){this.name="geocent"},forward:function(t){return xt(t,this.es,this.a)},inverse:function(t){return Pt(t,this.es,this.a,this.b)},names:["Geocentric","geocentric","geocent","Geocent"]};var bi=0,Ni=1,Ai=2,Ii=3,Ci={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}};const ji={init:function(){if(Object.keys(Ci).forEach(function(t){if(void 0===this[t])this[t]=Ci[t].def;else{if(Ci[t].num&&isNaN(this[t]))throw new Error("Invalid parameter value, must be numeric "+t+" = "+this[t]);Ci[t].num&&(this[t]=parseFloat(this[t]))}Ci[t].degrees&&(this[t]=this[t]*o)}.bind(this)),Math.abs(Math.abs(this.lat0)-r)<n?this.mode=this.lat0<0?Ni:bi:Math.abs(this.lat0)<n?this.mode=Ai:(this.mode=Ii,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 new 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 Ii:i=this.sinph0*h+this.cosph0*r*n;break;case Ai:i=r*n;break;case Ni:i=-h;break;case bi:i=h}switch(s=(i=this.pn1/(this.p-i))*r*Math.sin(t.x),this.mode){case Ii:i*=this.cosph0*h-this.sinph0*r*n;break;case Ai:i*=h;break;case bi:i*=-r*n;break;case Ni: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={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 h=_s(t.x,t.y);if(Math.abs(h)<n)e.x=0,e.y=t.y;else{var r,o;switch(o=1-h*h*this.pfact,o=(this.p-Math.sqrt(o))/(this.pn1/h+h/this.pn1),r=Math.sqrt(1-o*o),this.mode){case Ii:e.y=Math.asin(r*this.sinph0+t.y*o*this.cosph0/h),t.y=(r-this.sinph0*Math.sin(e.y))*h,t.x*=o*this.cosph0;break;case Ai:e.y=Math.asin(t.y*o/h),t.y=r*h,t.x*=o;break;case bi:e.y=Math.asin(r),t.y=-t.y;break;case Ni:e.y=-Math.asin(r)}e.x=Math.atan2(t.x,t.y)}return t.x=e.x+this.long0,t.y=e.y,t},names:["Tilted_Perspective","tpers"]};const Oi={init:function(){if(this.flip_axis="x"===this.sweep?1:0,this.h=Number(this.h),this.radius_g_1=this.h/this.a,this.radius_g_1<=0||this.radius_g_1>1e10)throw new 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,s=1/t;this.radius_p=Math.sqrt(t),this.radius_p2=t,this.radius_p_inv2=s,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/_s(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=Number.NaN,t.y=Number.NaN,t;s=this.radius_g-i,this.flip_axis?(t.x=this.radius_g_1*Math.atan(a/_s(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/_s(a,s)))}else"sphere"===this.shape&&(s=Math.cos(r),i=Math.cos(h)*s,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/_s(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/_s(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)*_s(1,n)):(r=Math.tan(t.x/this.radius_g_1),n=Math.tan(t.y/this.radius_g_1)*_s(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=Number.NaN,t.y=Number.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=Number.NaN,t.y=Number.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 ki=1.340264,Ri=-.081106,qi=893e-6,Li=.003796,Ti=Math.sqrt(3)/2;const Fi={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=V(t.x-this.long0,this.over),i=t.y,a=Math.asin(Ti*Math.sin(i)),e=a*a,h=e*e*e;return t.x=s*Math.cos(a)/(Ti*(ki+3*Ri*e+h*(7*qi+9*Li*e))),t.y=a*(ki+Ri*e+h*(qi+Li*e)),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=t.y;for(e=0;e<12&&(h-=a=(h*(ki+Ri*(s=h*h)+(i=s*s*s)*(qi+Li*s))-t.y)/(ki+3*Ri*s+i*(7*qi+9*Li*s)),!(Math.abs(a)<1e-9));++e);return i=(s=h*h)*s*s,t.x=Ti*t.x*(ki+3*Ri*s+i*(7*qi+9*Li*s))/Math.cos(h),t.y=Math.asin(Math.sin(h)/Ti),t.x=V(t.x+this.long0,this.over),t},names:["eqearth","Equal Earth","Equal_Earth"]};var zi=1e-10;function Bi(t){var s,i,a,e=V(t.x-(this.long0||0),this.over),h=t.y;return s=this.am1+this.m1-os(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 Di(t){var s,i,a,e;if(t.x=(t.x-(this.x0||0))/this.a,t.y=(t.y-(this.y0||0))/this.a,i=_s(t.x,t.y=this.am1-t.y),e=ls(this.am1+this.m1-i,this.es,this.en),(s=Math.abs(e))<r)s=Math.sin(e),a=i*Math.atan2(t.x,t.y)*Math.sqrt(1-this.es*s*s)/Math.cos(e);else{if(!(Math.abs(s-r)<=zi))throw new Error;a=0}return t.x=V(a+(this.long0||0),this.over),t.y=ks(e),t}function Ui(t){var s,i,a=V(t.x-(this.long0||0),this.over),e=t.y;return i=this.cphi1+this.phi1-e,Math.abs(i)>zi?(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 Wi(t){var s,i;t.x=(t.x-(this.x0||0))/this.a,t.y=(t.y-(this.y0||0))/this.a;var a=_s(t.x,t.y=this.cphi1-t.y);if(i=this.cphi1+this.phi1-a,Math.abs(i)>r)throw new Error;return s=Math.abs(Math.abs(i)-r)<=zi?0:a*Math.atan2(t.x,t.y)/Math.cos(i),t.x=V(s+(this.long0||0),this.over),t.y=ks(i),t}const Hi={init:function(){var t;if(this.phi1=this.lat1,Math.abs(this.phi1)<zi)throw new Error;this.es?(this.en=ns(this.es),this.m1=os(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=Di,this.forward=Bi):(Math.abs(this.phi1)+zi>=r?this.cphi1=0:this.cphi1=1/Math.tan(this.phi1),this.inverse=Wi,this.forward=Ui)},names:["bonne","Bonne (Werner lat_1=90)"]},Qi={OBLIQUE:{forward:function(t,s){let{x:i,y:a}=s;i+=t.long0;const e=Math.cos(i),h=Math.sin(a),r=Math.cos(a);s.x=V(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);const n=t.obliqueProjection.forward(s);t.isIdentity&&(n.x*=l,n.y*=l);return n},inverse:function(t,s){t.isIdentity&&(s.x*=o,s.y*=o);const i=t.obliqueProjection.inverse(s);let{x:a,y:e}=i;if(a<Number.MAX_VALUE){a-=t.lamp;const i=Math.cos(a),h=Math.sin(e),r=Math.cos(e);s.x=Math.atan2(r*Math.sin(a),t.sphip*r*i-t.cphip*h),s.y=Math.asin(t.sphip*h+t.cphip*r*i)}return s.x=V(s.x+t.long0),s}},TRANSVERSE:{forward:function(t,s){let{x:i,y:a}=s;i+=t.long0;const e=Math.cos(a),h=Math.cos(i);s.x=V(Math.atan2(e*Math.sin(i),Math.sin(a))+t.lamp),s.y=Math.asin(-1*e*h);const r=t.obliqueProjection.forward(s);t.isIdentity&&(r.x*=l,r.y*=l);return r},inverse:function(t,s){t.isIdentity&&(s.x*=o,s.y*=o);const i=t.obliqueProjection.inverse(s);let{x:a,y:e}=i;if(a<Number.MAX_VALUE){const i=Math.cos(e);a-=t.lamp,s.x=Math.atan2(i*Math.sin(a),-1*Math.sin(e)),s.y=Math.asin(i*Math.cos(a))}return s.x=V(s.x+t.long0),s}}},Xi={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"}};const Ji={init:function(){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=$.includes(this.o_proj),!this.o_proj)throw new Error("Missing parameter: o_proj");if("ob_tran"===this.o_proj)throw new Error("Invalid value for o_proj: "+this.o_proj);const t=this.projStr.replace("+proj=ob_tran","").replace("+o_proj=","+proj=").trim(),s=St(t);if(!s)throw new Error("Invalid parameter: o_proj. Unknown projection "+this.o_proj);let i;s.long0=0,this.obliqueProjection=s;const a=Object.keys(Xi),e=t=>{if(void 0===this[t])return;const s=parseFloat(this[t])*o;if(isNaN(s))throw new Error("Invalid value for "+t+": "+this[t]);return s};for(let t=0;t<a.length;t++){const s=a[t],h=Xi[s],r=Object.entries(h);if(r.some((([t])=>void 0!==this[t]))){i=h;for(let t=0;t<r.length;t++){const[s,i]=r[t],a=e(s);if(void 0===a)throw new Error("Missing parameter: "+s+".");this[i]=a}break}}if(!i)throw new Error("No valid parameters provided for ob_tran projection.");const{lamp:h,phip:l}=function(t,s){let i,a;if(s===Xi.ROTATE){let s=t.oLongC,e=t.oLatC,h=t.oAlpha;if(Math.abs(Math.abs(e)-r)<=n)throw new Error("Invalid value for o_lat_c: "+t.o_lat_c+" should be < 90°");a=s+Math.atan2(-1*Math.cos(h),-1*Math.sin(h)*Math.sin(e)),i=Math.asin(Math.cos(e)*Math.sin(h))}else if(s===Xi.NEW_POLE)a=t.oLongP,i=t.oLatP;else{let s=t.oLong1,e=t.oLat1,h=t.oLong2,o=t.oLat2,l=Math.abs(e);if(Math.abs(e)>r-n)throw new Error("Invalid value for o_lat_1: "+t.o_lat_1+" should be < 90°");if(Math.abs(o)>r-n)throw new Error("Invalid value for o_lat_2: "+t.o_lat_2+" should be < 90°");if(Math.abs(e-o)<n)throw new Error("Invalid value for o_lat_1 and o_lat_2: o_lat_1 should be different from o_lat_2");if(l<n)throw new Error("Invalid value for o_lat_1: o_lat_1 should be different from zero");a=Math.atan2(Math.cos(e)*Math.sin(o)*Math.cos(s)-Math.sin(e)*Math.cos(o)*Math.cos(h),Math.sin(e)*Math.cos(o)*Math.sin(h)-Math.cos(e)*Math.sin(o)*Math.sin(s)),i=Math.atan(-1*Math.cos(a-s)/Math.tan(e))}return{lamp:a,phip:i}}(this,i);this.lamp=h,Math.abs(l)>n?(this.cphip=Math.cos(l),this.sphip=Math.sin(l),this.projectionType=Qi.OBLIQUE):this.projectionType=Qi.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"]};const Vi=Object.assign(Tt,{defaultDatum:"WGS84",Proj:St,WGS84:new St("WGS84"),Point:as,toPoint:jt,defs:U,nadgrid:function(t,s,i){return s instanceof ArrayBuffer?function(t,s,i){var a=!0;void 0!==i&&!1===i.includeErrorFields&&(a=!1);var e=new DataView(s),h=function(t){var s=t.getInt32(8,!1);if(11===s)return!1;11!==(s=t.getInt32(8,!0))&&console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian");return!0}(e),r=function(t,s){return{nFields:t.getInt32(8,s),nSubgridFields:t.getInt32(24,s),nSubgrids:t.getInt32(40,s),shiftType:mt(t,56,64).trim(),fromSemiMajorAxis:t.getFloat64(120,s),fromSemiMinorAxis:t.getFloat64(136,s),toSemiMajorAxis:t.getFloat64(152,s),toSemiMinorAxis:t.getFloat64(168,s)}}(e,h),n=function(t,s,i,a){for(var e=176,h=[],r=0;r<s.nSubgrids;r++){var n=wt(t,e,i),o=vt(t,e,n,i,a),l=Math.round(1+(n.upperLongitude-n.lowerLongitude)/n.longitudeInterval),c=Math.round(1+(n.upperLatitude-n.lowerLatitude)/n.latitudeInterval);h.push({ll:[pt(n.lowerLongitude),pt(n.lowerLatitude)],del:[pt(n.longitudeInterval),pt(n.latitudeInterval)],lim:[l,c],count:n.gridNodeCount,cvs:yt(o)});var u=16;!1===a&&(u=8),e+=176+n.gridNodeCount*u}return h}(e,r,h,a),o={header:r,subgrids:n};return Mt[t]=o,o}
vendor: 4,664 bytes, line 1
1(t,s,i):{ready:dt(t,s)}},transform:kt,mgrs:Qt,version:"__VERSION__"});!function(t){t.Proj.projections.add(cs),t.Proj.projections.add(gs),t.Proj.projections.add(ps),t.Proj.projections.add(ws),t.Proj.projections.add(Es),t.Proj.projections.add(Ss),t.Proj.projections.add(Ps),t.Proj.projections.add(Gs),t.Proj.projections.add(bs),t.Proj.projections.add(qs),t.Proj.projections.add(Ws),t.Proj.projections.add(Qs),t.Proj.projections.add(Xs),t.Proj.projections.add(Js),t.Proj.projections.add(Vs),t.Proj.projections.add(Ks),t.Proj.projections.add(Zs),t.Proj.projections.add(Ys),t.Proj.projections.add($s),t.Proj.projections.add(ti),t.Proj.projections.add(si),t.Proj.projections.add(ii),t.Proj.projections.add(ai),t.Proj.projections.add(ei),t.Proj.projections.add(pi),t.Proj.projections.add(Pi),t.Proj.projections.add(Gi),t.Proj.projections.add(ji),t.Proj.projections.add(Oi),t.Proj.projections.add(Fi),t.Proj.projections.add(Hi),t.Proj.projections.add(Ji)}(Vi);const Ki=Vi},41751:(t,s,i)=>{var a,e,h;e=[i(45243),i(62980)],a=function(t,s){return s.__esModule&&s.default&&(s=s.default),t.Proj={},t.Proj._isProj4Obj=function(t){return void 0!==t.inverse&&void 0!==t.forward},t.Proj.Projection=t.Class.extend({initialize:function(s,i,a){var e=t.Proj._isProj4Obj(s);this._proj=e?s:this._projFromCodeDef(s,i),this.bounds=e?i:a},project:function(s){var i=this._proj.forward([s.lng,s.lat]);return new t.Point(i[0],i[1])},unproject:function(s,i){var a=this._proj.inverse([s.x,s.y]);return new t.LatLng(a[1],a[0],i)},_projFromCodeDef:function(t,i){if(i)s.defs(t,i);else if(void 0===s.defs[t]){var a=t.split(":");if(a.length>3&&(t=a[a.length-3]+":"+a[a.length-1]),void 0===s.defs[t])throw"No projection definition for code "+t}return s(t)}}),t.Proj.CRS=t.Class.extend({includes:t.CRS,options:{transformation:new t.Transformation(1,0,-1,0)},initialize:function(s,i,a){var e,h,r,n;if(t.Proj._isProj4Obj(s)?(e=(h=s).srsCode,n=i||{},this.projection=new t.Proj.Projection(h,n.bounds)):(e=s,r=i,n=a||{},this.projection=new t.Proj.Projection(e,r,n.bounds)),t.Util.setOptions(this,n),this.code=e,this.transformation=this.options.transformation,this.options.origin&&(this.transformation=new t.Transformation(1,-this.options.origin[0],-1,this.options.origin[1])),this.options.scales)this._scales=this.options.scales;else if(this.options.resolutions){this._scales=[];for(var o=this.options.resolutions.length-1;o>=0;o--)this.options.resolutions[o]&&(this._scales[o]=1/this.options.resolutions[o])}this.infinite=!this.options.bounds},scale:function(t){var s,i=Math.floor(t);return t===i?this._scales[t]:(s=this._scales[i])+(this._scales[i+1]-s)*(t-i)},zoom:function(t){var s,i,a=this._closestElement(this._scales,t),e=this._scales.indexOf(a);return t===a?e:void 0===a?-1/0:(i=e+1,void 0===(s=this._scales[i])?1/0:(t-a)/(s-a)+e)},distance:t.CRS.Earth.distance,R:t.CRS.Earth.R,_closestElement:function(t,s){for(var i,a=t.length;a--;)t[a]<=s&&(void 0===i||i<t[a])&&(i=t[a]);return i}}),t.Proj.GeoJSON=t.GeoJSON.extend({initialize:function(s,i){this._callLevel=0,t.GeoJSON.prototype.initialize.call(this,s,i)},addData:function(s){var i;s&&(s.crs&&"name"===s.crs.type?i=new t.Proj.CRS(s.crs.properties.name):s.crs&&s.crs.type&&(i=new t.Proj.CRS(s.crs.type+":"+s.crs.properties.code)),void 0!==i&&(this.options.coordsToLatLng=function(s){var a=t.point(s[0],s[1]);return i.projection.unproject(a)})),this._callLevel++;try{t.GeoJSON.prototype.addData.call(this,s)}finally{this._callLevel--,0===this._callLevel&&delete this.options.coordsToLatLng}}}),t.Proj.geoJson=function(s,i){return new t.Proj.GeoJSON(s,i)},t.Proj.ImageOverlay=t.ImageOverlay.extend({initialize:function(s,i,a){t.ImageOverlay.prototype.initialize.call(this,s,null,a),this._projectedBounds=i},_animateZoom:function(s){var i=this._map.getZoomScale(s.zoom),a=t.point(this._projectedBounds.min.x,this._projectedBounds.max.y),e=this._projectedToNewLayerPoint(a,s.zoom,s.center);t.DomUtil.setTransform(this._image,e,i)},_reset:function(){var s=this._map.getZoom(),i=this._map.getPixelOrigin(),a=t.bounds(this._transform(this._projectedBounds.min,s)._subtract(i),this._transform(this._projectedBounds.max,s)._subtract(i)),e=a.getSize();t.DomUtil.setPosition(this._image,a.min),this._image.style.width=e.x+"px",this._image.style.height=e.y+"px"},_projectedToNewLayerPoint:function(t,s,i){var a=this._map.getSize()._divideBy(2),e=this._map.project(i,s)._subtract(a)._round().add(this._map._getMapPanePos());return this._transform(t,s)._subtract(e)},_transform:function(t,s){var i=this._map.options.crs,a=i.transformation,e=i.scale(s);return a.transform(t,e)}}),t.Proj.imageOverlay=function(s,i,a){return new t.Proj.ImageOverlay(s,i,a)},t.Proj}
1,void 0===(h="function"==typeof a?a.apply(s,e):a)||(t.exports=h)}}]);

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.