1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/app-Dzo12qUh.js","assets/app-CeCKpMQ8.css"])))=>i.map(i=>d[i]); 2import{U as rt,V as Mt,x as k,W as nt,E as et,X as H,Y as ot,G as K,Z as Yt,$ as V,a0 as Js,D as ne,a1 as Si,a2 as Fe,a3 as Xs,N as Ks,a4 as Ys}from"./app-Dzo12qUh.js";const Te=(t,e)=>{for(const i of Object.keys(e))t.on(i,e[i])},$e=t=>{for(const e of Object.keys(t)){const i=t[e];i&&ht(i.cancel)&&i.cancel()}},Vi=t=>!t||typeof t.charAt!="function"?t:t.charAt(0).toUpperCase()+t.slice(1),ht=t=>typeof t=="function",it=(t,e,i)=>{for(const a in i){const o="set"+Vi(a);t[o]?Si(()=>i[a],(s,n)=>{t[o](s,n)}):e[o]&&Si(()=>i[a],s=>{e[o](s)})}},N=(t,e,i={})=>{const a={...i};for(const o in t){const s=e[o],n=t[o];s&&(s&&s.custom===!0||n!==void 0&&(a[o]=n))}return a},dt=t=>{const e={},i={};for(const a in t)if(a.startsWith("on")&&!a.startsWith("onUpdate")&&a!=="onReady"){const o=a.slice(2).toLocaleLowerCase();e[o]=t[a]}else i[a]=t[a];return{listeners:e,attrs:i}},Qi=async t=>{const e=await Promise.all([H(()=>import("./app-Dzo12qUh.js").then(i=>i.a9),__vite__mapDeps([0,1])),H(()=>import("./app-Dzo12qUh.js").then(i=>i.aa),__vite__mapDeps([0,1])),H(()=>import("./app-Dzo12qUh.js").then(i=>i.ab),__vite__mapDeps([0,1]))]);delete t.Default.prototype._getIconUrl,t.Default.mergeOptions({iconRetinaUrl:e[0].default,iconUrl:e[1].default,shadowUrl:e[2].default})},zt=t=>{const e=k((...a)=>console.warn(`Method ${t} has been invoked without being replaced`)),i=(...a)=>e.value(...a);return i.wrapped=e,V(t,i),i},Ut=(t,e)=>t.wrapped.value=e,Q=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||globalThis,z=t=>{const e=nt(t);if(e===void 0)throw new Error(`Attempt to inject ${t.description} before it was provided.`);return e},Ji=Object.freeze(Object.defineProperty({__proto__:null,WINDOW_OR_GLOBAL:Q,assertInject:z,bindEventHandlers:Te,cancelDebounces:$e,capitalizeFirstLetter:Vi,isFunction:ht,propsBinder:it,propsToLeafletOptions:N,provideLeafletWrapper:zt,remapEvents:dt,resetWebpackIcon:Qi,updateLeafletWrapper:Ut},Symbol.toStringTag,{value:"Module"})),st=Symbol("useGlobalLeaflet"),vt=Symbol("addLayer"),te=Symbol("removeLayer"),Pe=Symbol("registerControl"),Ze=Symbol("registerLayerControl"),He=Symbol("canSetParentHtml"),We=Symbol("setParentHtml"),Ve=Symbol("setIcon"),Qe=Symbol("bindPopup"),Xi=Symbol("bindTooltip"),Je=Symbol("unbindPopup"),Xe=Symbol("unbindTooltip"),Ki=Object.freeze(Object.defineProperty({__proto__:null,AddLayerInjection:vt,BindPopupInjection:Qe,BindTooltipInjection:Xi,CanSetParentHtmlInjection:He,RegisterControlInjection:Pe,RegisterLayerControlInjection:Ze,RemoveLayerInjection:te,SetIconInjection:Ve,SetParentHtmlInjection:We,UnbindPopupInjection:Je,UnbindTooltipInjection:Xe,UseGlobalLeafletInjection:st},Symbol.toStringTag,{value:"Module"})),It={options:{type:Object,default:()=>({}),custom:!0}},Tt=t=>({options:t.options,methods:{}}),ta=Object.freeze(Object.defineProperty({__proto__:null,componentProps:It,setupComponent:Tt},Symbol.toStringTag,{value:"Module"})),St={...It,pane:{type:String},attribution:{type:String},name:{type:String,custom:!0},layerType:{type:String,custom:!0},visible:{type:Boolean,custom:!0,default:!0}},Rt=(t,e,i)=>{const a=z(vt),o=z(te),{options:s,methods:n}=Tt(t),r=N(t,St,s),h=()=>a({leafletObject:e.value}),l=()=>o({leafletObject:e.value}),f={...n,setAttribution(u){l(),e.value.options.attribution=u,t.visible&&h()},setName(){l(),t.visible&&h()},setLayerType(){l(),t.visible&&h()},setVisible(u){e.value&&(u?h():l())},bindPopup(u){if(!e.value||!ht(e.value.bindPopup)){console.warn("Attempt to bind popup before bindPopup method available on layer.");return}e.value.bindPopup(u)},bindTooltip(u){if(!e.value||!ht(e.value.bindTooltip)){console.warn("Attempt to bind tooltip before bindTooltip method available on layer.");return}e.value.bindTooltip(u)},unbindTooltip(){e.value&&(ht(e.value.closeTooltip)&&e.value.closeTooltip(),ht(e.value.unbindTooltip)&&e.value.unbindTooltip())},unbindPopup(){e.value&&(ht(e.value.closePopup)&&e.value.closePopup(),ht(e.value.unbindPopup)&&e.value.unbindPopup())},updateVisibleProp(u){i.emit("update:visible",u)}};
2return V(Qe,f.bindPopup),V(Xi,f.bindTooltip),V(Je,f.unbindPopup),V(Xe,f.unbindTooltip),Fe(()=>{f.unbindPopup(),f.unbindTooltip(),l()}),{options:r,methods:f}},Yi=(t,e)=>{if(t&&e.default)return Mt("div",{style:{display:"none"}},e.default())},ea=Object.freeze(Object.defineProperty({__proto__:null,layerProps:St,render:Yi,setupLayer:Rt},Symbol.toStringTag,{value:"Module"})),Ke={...St,interactive:{type:Boolean,default:void 0},bubblingMouseEvents:{type:Boolean,default:void 0}},ts=(t,e,i)=>{const{options:a,methods:o}=Rt(t,e,i);return{options:N(t,Ke,a),methods:o}},ia=Object.freeze(Object.defineProperty({__proto__:null,interactiveLayerProps:Ke,setupInteractiveLayer:ts},Symbol.toStringTag,{value:"Module"})),we={...Ke,stroke:{type:Boolean,default:void 0},color:{type:String},weight:{type:Number},opacity:{type:Number},lineCap:{type:String},lineJoin:{type:String},dashArray:{type:String},dashOffset:{type:String},fill:{type:Boolean,default:void 0},fillColor:{type:String},fillOpacity:{type:Number},fillRule:{type:String},className:{type:String}},Ye=(t,e,i)=>{const{options:a,methods:o}=ts(t,e,i),s=N(t,we,a),n=z(te),r={...o,setStroke(h){e.value.setStyle({stroke:h})},setColor(h){e.value.setStyle({color:h})},setWeight(h){e.value.setStyle({weight:h})},setOpacity(h){e.value.setStyle({opacity:h})},setLineCap(h){e.value.setStyle({lineCap:h})},setLineJoin(h){e.value.setStyle({lineJoin:h})},setDashArray(h){e.value.setStyle({dashArray:h})},setDashOffset(h){e.value.setStyle({dashOffset:h})},setFill(h){e.value.setStyle({fill:h})},setFillColor(h){e.value.setStyle({fillColor:h})},setFillOpacity(h){e.value.setStyle({fillOpacity:h})},setFillRule(h){e.value.setStyle({fillRule:h})},setClassName(h){e.value.setStyle({className:h})}};return Yt(()=>{n({leafletObject:e.value})}),{options:s,methods:r}},sa=Object.freeze(Object.defineProperty({__proto__:null,pathProps:we,setupPath:Ye},Symbol.toStringTag,{value:"Module"})),ti={...we,radius:{type:Number},latLng:{type:[Object,Array],required:!0,custom:!0}},es=(t,e,i)=>{const{options:a,methods:o}=Ye(t,e,i),s=N(t,ti,a),n={...o,setRadius(r){e.value.setRadius(r)},setLatLng(r){e.value.setLatLng(r)}};return{options:s,methods:n}},aa=Object.freeze(Object.defineProperty({__proto__:null,circleMarkerProps:ti,setupCircleMarker:es},Symbol.toStringTag,{value:"Module"})),is={...ti,radius:{type:Number}},ra=(t,e,i)=>{const{options:a,methods:o}=es(t,e,i),s=N(t,is,a),n={...o};return{options:s,methods:n}},na=Object.freeze(Object.defineProperty({__proto__:null,circleProps:is,setupCircle:ra},Symbol.toStringTag,{value:"Module"})),bt={...It,position:{type:String}},jt=(t,e)=>{const{options:i,methods:a}=Tt(t),o=N(t,bt,i),s={...a,setPosition(n){e.value&&e.value.setPosition(n)}};return Fe(()=>{e.value&&e.value.remove()}),{options:o,methods:s}},ss=t=>t.default?Mt("div",{ref:"root"},t.default()):null,oa=Object.freeze(Object.defineProperty({__proto__:null,controlProps:bt,renderLControl:ss,setupControl:jt},Symbol.toStringTag,{value:"Module"})),h0=rt({name:"LControl",props:{...bt,disableClickPropagation:{type:Boolean,custom:!0,default:!0},disableScrollPropagation:{type:Boolean,custom:!0,default:!1}},setup(t,e){const i=k(),a=k(),o=nt(st),s=z(Pe),{options:n,methods:r}=jt(t,i);return et(async()=>{const{Control:h,DomEvent:l}=o?Q.L:await H(()=>import("./leaflet-src.esm-C210bVOb.js"),[]),f=h.extend({onAdd(){return a.value}});i.value=ot(new f(n)),it(r,i.value,t),s({leafletObject:i.value}),t.disableClickPropagation&&a.value&&l.disableClickPropagation(a.value),t.disableScrollPropagation&&a.value&&l.disableScrollPropagation(a.value),K(()=>e.emit("ready",i.value))}),{root:a,leafletObject:i}},render(){return ss(this.$slots)}}),as={...bt,prefix:{type:String}},ha=(t,e)=>{const{options:i,methods:a}=jt(t,e),o=N(t,as,i),s={...a,setPrefix(n){e.value.setPrefix(n)}};return{options:o,methods:s}},la=Object.freeze(Object.defineProperty({__proto__:null,controlAttributionProps:as,setupControlAttribution:ha},Symbol.toStringTag,{value:"Module"})),ei={...bt,collapsed:{type:Boolean,default:void 0},autoZIndex:{type:Boolean,default:void 0},hideSingleBase:{type:Boolean,default:void 0}
2,sortLayers:{type:Boolean,default:void 0},sortFunction:{type:Function}},rs=(t,e)=>{const{options:i}=jt(t,e);return{options:N(t,ei,i),methods:{addLayer(a){a.layerType==="base"?e.value.addBaseLayer(a.leafletObject,a.name):a.layerType==="overlay"&&e.value.addOverlay(a.leafletObject,a.name)},removeLayer(a){e.value.removeLayer(a.leafletObject)}}}},ua=Object.freeze(Object.defineProperty({__proto__:null,controlLayersProps:ei,setupControlLayers:rs},Symbol.toStringTag,{value:"Module"})),l0=rt({name:"LControlLayers",props:ei,setup(t,e){const i=k(),a=nt(st),o=z(Ze),{options:s,methods:n}=rs(t,i);return et(async()=>{const{control:r}=a?Q.L:await H(()=>import("./leaflet-src.esm-C210bVOb.js"),[]);i.value=ot(r.layers(void 0,void 0,s)),it(n,i.value,t),o({...t,...n,leafletObject:i.value}),K(()=>e.emit("ready",i.value))}),{leafletObject:i}},render(){return null}}),ns={...bt,maxWidth:{type:Number},metric:{type:Boolean,default:void 0},imperial:{type:Boolean,default:void 0},updateWhenIdle:{type:Boolean,default:void 0}},ca=(t,e)=>{const{options:i,methods:a}=jt(t,e);return{options:N(t,ns,i),methods:a}},fa=Object.freeze(Object.defineProperty({__proto__:null,controlScaleProps:ns,setupControlScale:ca},Symbol.toStringTag,{value:"Module"})),ii={...bt,zoomInText:{type:String},zoomInTitle:{type:String},zoomOutText:{type:String},zoomOutTitle:{type:String}},os=(t,e)=>{const{options:i,methods:a}=jt(t,e);return{options:N(t,ii,i),methods:a}},_a=Object.freeze(Object.defineProperty({__proto__:null,controlZoomProps:ii,setupControlZoom:os},Symbol.toStringTag,{value:"Module"})),u0=rt({name:"LControlZoom",props:ii,setup(t,e){const i=k(),a=nt(st),o=z(Pe),{options:s,methods:n}=os(t,i);return et(async()=>{const{control:r}=a?Q.L:await H(()=>import("./leaflet-src.esm-C210bVOb.js"),[]);i.value=ot(r.zoom(s)),it(n,i.value,t),o({leafletObject:i.value}),K(()=>e.emit("ready",i.value))}),{leafletObject:i}},render(){return null}}),Ee={...St},si=(t,e,i)=>{const{options:a,methods:o}=Rt(t,e,i),s=N(t,Ee,a),n={...o,addLayer(r){e.value.addLayer(r.leafletObject)},removeLayer(r){e.value.removeLayer(r.leafletObject)}};return V(vt,n.addLayer),V(te,n.removeLayer),{options:s,methods:n}},da=Object.freeze(Object.defineProperty({__proto__:null,layerGroupProps:Ee,setupLayerGroup:si},Symbol.toStringTag,{value:"Module"})),hs={...Ee},va=(t,e,i)=>{const{options:a,methods:o}=si(t,e,i),s=N(t,hs,a),n={...o};return{options:s,methods:n}},ga=Object.freeze(Object.defineProperty({__proto__:null,featureGroupProps:hs,setupFeatureGroup:va},Symbol.toStringTag,{value:"Module"})),ls={...Ee,geojson:{type:[Object,Array],custom:!0},optionsStyle:{type:Function,custom:!0}},ma=(t,e,i)=>{const{options:a,methods:o}=si(t,e,i),s=N(t,ls,a);Object.prototype.hasOwnProperty.call(t,"optionsStyle")&&(s.style=t.optionsStyle);const n={...o,setGeojson(r){e.value.clearLayers(),e.value.addData(r)},setOptionsStyle(r){e.value.setStyle(r)},getGeoJSONData(){return e.value.toGeoJSON()},getBounds(){return e.value.getBounds()}};return{options:s,methods:n}},ya=Object.freeze(Object.defineProperty({__proto__:null,geoJSONProps:ls,setupGeoJSON:ma},Symbol.toStringTag,{value:"Module"})),xe={...St,opacity:{type:Number},zIndex:{type:Number},tileSize:{type:[Number,Array,Object]},noWrap:{type:Boolean,default:void 0},minZoom:{type:Number},maxZoom:{type:Number},className:{type:String}},ai=(t,e,i)=>{const{options:a,methods:o}=Rt(t,e,i),s=N(t,xe,a),n={...o,setTileComponent(){var r;(r=e.value)==null||r.redraw()}};return Fe(()=>{e.value.off()}),{options:s,methods:n}},us=(t,e,i,a)=>t.extend({initialize(o){this.tileComponents={},this.on("tileunload",this._unloadTile),i.setOptions(this,o)},createTile(o){const s=this._tileCoordsToKey(o);this.tileComponents[s]=e.create("div");const n=Mt({setup:a,props:["coords"]},{coords:o});return Xs(n,this.tileComponents[s]),this.tileComponents[s]},_unloadTile(o){const s=this._tileCoordsToKey(o.coords);this.tileComponents[s]&&(this.tileComponents[s].innerHTML="",this.tileComponents[s]=void 0)}}),pa=Object.freeze(Object.defineProperty({__proto__:null,CreateVueGridLayer:us,gridLayerProps:xe,setupGridLayer:ai},Symbol.toStringTag,{value:"Module"}));rt({props:{...xe,childRender:{type:Function,required:!0}},setup(t,e){const i=k(),a=k(null),o=k(!1),s=nt(st),n=z(vt),{options:r,methods:h}=ai(t,i,e);return et(async()=>{const{GridLayer:l,DomUtil:f,Util:u}=s?Q.L:await H(()=>import("./leaflet-src.esm-C210bVOb.js"),[]),c=us(l,f,u,t.childRender);i.value=ot(new c(r));const{listeners:_}=dt(e.attrs);i.value.on(_),it(h,i.value,t),n({...t,...h,leafletObject:i.value}),o.value=!0,K(()=>e.emit("ready",i.value))}),{root:a,ready:o,leafletObject:i}},render(){return this.ready?Mt("div",{style:{display:"none"},ref:"root"}):null}});const Re={iconUrl:{type:String},iconRetinaUrl:{type:String},iconSize:{type:[Object,Array]},iconAnchor:{type:[Object,Array]},popupAnchor:{type:[Object,Array]},tooltipAnchor:{type:[Object,Array]},shadowUrl:{type:String},shadowRetinaUrl:{type:String},shadowSize:{type:[Object,Array]},shadowAnchor:{type:[Object,Array]},bgPos:{type:[Object,Array]},className:{type:String}},Ma=Object.freeze(Object.defineProperty({__proto__:null,iconProps:Re},Symbol.toStringTag,{value:"Module"})),c0=rt({name:"LIcon",props:{...Re,...It},setup(t,e){const i=k(),a=nt(st),o=z(He),s=z(We),n=z(Ve);let r,h,l,f,u;
2const c=(g,m,p)=>{const b=g&&g.innerHTML;if(!m){p&&u&&o()&&s(b);return}const{listeners:E}=dt(e.attrs);u&&h(u,E);const{options:w}=Tt(t),x=N(t,Re,w);b&&(x.html=b),u=x.html?l(x):f(x),r(u,E),n(u)},_=()=>{K(()=>c(i.value,!0,!1))},d=()=>{K(()=>c(i.value,!1,!0))},v={setIconUrl:_,setIconRetinaUrl:_,setIconSize:_,setIconAnchor:_,setPopupAnchor:_,setTooltipAnchor:_,setShadowUrl:_,setShadowRetinaUrl:_,setShadowAnchor:_,setBgPos:_,setClassName:_,setHtml:_};return et(async()=>{const{DomEvent:g,divIcon:m,icon:p}=a?Q.L:await H(()=>import("./leaflet-src.esm-C210bVOb.js"),[]);r=g.on,h=g.off,l=m,f=p,it(v,{},t),new MutationObserver(d).observe(i.value,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),_()}),{root:i}},render(){const t=this.$slots.default?this.$slots.default():void 0;return Mt("div",{ref:"root"},t)}}),cs={...St,opacity:{type:Number},alt:{type:String},interactive:{type:Boolean,default:void 0},crossOrigin:{type:Boolean,default:void 0},errorOverlayUrl:{type:String},zIndex:{type:Number},className:{type:String},url:{type:String,required:!0,custom:!0},bounds:{type:[Array,Object],required:!0,custom:!0}},Sa=(t,e,i)=>{const{options:a,methods:o}=Rt(t,e,i),s=N(t,cs,a),n={...o,setOpacity(r){return e.value.setOpacity(r)},setUrl(r){return e.value.setUrl(r)},setBounds(r){return e.value.setBounds(r)}
2,getBounds(){return e.value.getBounds()},getElement(){return e.value.getElement()},bringToFront(){return e.value.bringToFront()},bringToBack(){return e.value.bringToBack()},setZIndex(r){return e.value.setZIndex(r)}};return{options:s,methods:n}},ba=Object.freeze(Object.defineProperty({__proto__:null,imageOverlayProps:cs,setupImageOverlay:Sa},Symbol.toStringTag,{value:"Module"}));function fs(t,e,i){var a,o,s;e===void 0&&(e=50),i===void 0&&(i={});var n=(a=i.isImmediate)!=null&&a,r=(o=i.callback)!=null&&o,h=i.maxWait,l=Date.now(),f=[];function u(){if(h!==void 0){var _=Date.now()-l;if(_+e>=h)return h-_}return e}var c=function(){var _=[].slice.call(arguments),d=this;return new Promise(function(v,g){var m=n&&s===void 0;if(s!==void 0&&clearTimeout(s),s=setTimeout(function(){if(s=void 0,l=Date.now(),!n){var b=t.apply(d,_);r&&r(b),f.forEach(function(E){return(0,E.resolve)(b)}),f=[]}},u()),m){var p=t.apply(d,_);return r&&r(p),v(p)}f.push({resolve:v,reject:g})})};return c.cancel=function(_){s!==void 0&&clearTimeout(s),f.forEach(function(d){return(0,d.reject)(_)}),f=[]},c}const bi={...It,center:{type:[Object,Array]},bounds:{type:[Array,Object]},maxBounds:{type:[Array,Object]},zoom:{type:Number},minZoom:{type:Number},maxZoom:{type:Number},paddingBottomRight:{type:[Object,Array]},paddingTopLeft:{type:Object},padding:{type:Object},worldCopyJump:{type:Boolean,default:void 0},crs:{type:[String,Object]},maxBoundsViscosity:{type:Number},inertia:{type:Boolean,default:void 0},inertiaDeceleration:{type:Number},inertiaMaxSpeed:{type:Number},easeLinearity:{type:Number},zoomAnimation:{type:Boolean,default:void 0},zoomAnimationThreshold:{type:Number},fadeAnimation:{type:Boolean,default:void 0},markerZoomAnimation:{type:Boolean,default:void 0},noBlockingAnimations:{type:Boolean,default:void 0},useGlobalLeaflet:{type:Boolean,default:!0,custom:!0}},f0=rt({inheritAttrs:!1,emits:["ready","update:zoom","update:center","update:bounds"],props:bi,setup(t,e){const i=k(),a=Js({ready:!1,layersToAdd:[],layersInControl:[]}),{options:o}=Tt(t),s=N(t,bi,o),{listeners:n,attrs:r}=dt(e.attrs),h=zt(vt),l=zt(te),f=zt(Pe),u=zt(Ze);V(st,t.useGlobalLeaflet);const c=ne(()=>{const m={};return t.noBlockingAnimations&&(m.animate=!1),m}),_=ne(()=>{const m=c.value;return t.padding&&(m.padding=t.padding),t.paddingTopLeft&&(m.paddingTopLeft=t.paddingTopLeft),t.paddingBottomRight&&(m.paddingBottomRight=t.paddingBottomRight),m}),d={moveend:fs(m=>{a.leafletRef&&(e.emit("update:zoom",a.leafletRef.getZoom()),e.emit("update:center",a.leafletRef.getCenter()),e.emit("update:bounds",a.leafletRef.getBounds()))}),overlayadd(m){const p=a.layersInControl.find(b=>b.name===m.name);p&&p.updateVisibleProp(!0)},overlayremove(m){const p=a.layersInControl.find(b=>b.name===m.name);p&&p.updateVisibleProp(!1)}};et(async()=>{t.useGlobalLeaflet&&(Q.L=Q.L||await H(()=>import("./app-Dzo12qUh.js").then(P=>P.l),__vite__mapDeps([0,1])));const{map:m,CRS:p,Icon:b,latLngBounds:E,latLng:w,stamp:x}=t.useGlobalLeaflet?Q.L:await H(()=>import("./leaflet-src.esm-C210bVOb.js"),[]);try{s.beforeMapMount&&await s.beforeMapMount()}catch(P){console.error(`The following error occurred running the provided beforeMapMount hook ${P.message}`)}await Qi(b);const O=typeof s.crs=="string"?p[s.crs]:s.crs;s.crs=O||p.EPSG3857;const T={addLayer(P){P.layerType!==void 0&&(a.layerControl===void 0?a.layersToAdd.push(P):a.layersInControl.find(G=>x(G.leafletObject)===x(P.leafletObject))||(a.layerControl.addLayer(P),a.layersInControl.push(P))),P.visible!==!1&&a.leafletRef.addLayer(P.leafletObject)},removeLayer(P){P.layerType!==void 0&&(a.layerControl===void 0?a.layersToAdd=a.layersToAdd.filter(G=>G.name!==P.name):(a.layerControl.removeLayer(P.leafletObject),a.layersInControl=a.layersInControl.filter(G=>x(G.leafletObject)!==x(P.leafletObject)))),a.leafletRef.removeLayer(P.leafletObject)},registerLayerControl(P){a.layerControl=P,a.layersToAdd.forEach(G=>{a.layerControl.addLayer(G)}),a.layersToAdd=[],f(P)},registerControl(P){a.leafletRef.addControl(P.leafletObject)},setZoom(P){const G=a.leafletRef.getZoom();P!==G&&a.leafletRef.setZoom(P,c.value)},setCrs(P){const G=a.leafletRef.getBounds();a.leafletRef.options.crs=P,a.leafletRef.fitBounds(G,{animate:!1,padding:[0,0]})},fitBounds(P){a.leafletRef.fitBounds(P,_.value)},setBounds(P){if(!P)return;const G=E(P);G.isValid()&&!(a.lastSetBounds||a.leafletRef.getBounds()).equals(G,0)&&(a.lastSetBounds=G,a.leafletRef.fitBounds(G))},setCenter(P){if(P==null)return;const G=w(P),q=a.lastSetCenter||a.leafletRef.getCenter();(q.lat!==G.lat||q.lng!==G.lng)&&(a.lastSetCenter=G,a.leafletRef.panTo(G,c.value))}};Ut(h,T.addLayer),Ut(l,T.removeLayer),Ut(f,T.registerControl),Ut(u,T.registerLayerControl),a.leafletRef=ot(m(i.value,s)),it(T,a.leafletRef,t),Te(a.leafletRef,d),Te(a.leafletRef,n),a.ready=!0,K(()=>e.emit("ready",a.leafletRef))}),Yt(()=>{$e(d),a.leafletRef&&(a.leafletRef.off(),a.leafletRef.remove())});const v=ne(()=>a.leafletRef),g=ne(()=>a.ready);return{root:i,ready:g,leafletObject:v,attrs:r}},render({attrs:t}){return t.style||(t.style={}),t.style.width||(t.style.width="100%"),t.style.height||(t.style.height="100%"),Mt("div",{...t,ref:"root"},this.ready&&this.$slots.default?this.$slots.default():{})}}),Pa=["Symbol(Comment)","Symbol(Text)"],wa=["LTooltip","LPopup"],ri={...St,draggable:{type:Boolean,default:void 0},icon:{type:[Object]},zIndexOffset:{type:Number},latLng:{type:[Object,Array],custom:!0,required:!0}},_s=(t,e,i)=>{const{options:a,methods:o}=Rt(t,e,i),s=N(t,ri,a),n={...o,setDraggable(r){e.value.dragging&&(r?e.value.dragging.enable():e.value.dragging.disable())},latLngSync(r){i.emit("update:latLng",r.latlng),i.emit("update:lat-lng",r.latlng)}
2,setLatLng(r){if(r!=null&&e.value){const h=e.value.getLatLng();(!h||!h.equals(r))&&e.value.setLatLng(r)}}};return{options:s,methods:n}},ds=(t,e)=>{const i=e.slots.default&&e.slots.default();return i&&i.length&&i.some(Ea)};function Ea(t){return!(Pa.includes(t.type.toString())||wa.includes(t.type.name))}const xa=Object.freeze(Object.defineProperty({__proto__:null,markerProps:ri,setupMarker:_s,shouldBlankIcon:ds},Symbol.toStringTag,{value:"Module"})),_0=rt({name:"LMarker",props:ri,setup(t,e){const i=k(),a=k(!1),o=nt(st),s=z(vt);V(He,()=>{var l;return!!((l=i.value)!=null&&l.getElement())}),V(We,l=>{var f,u;const c=ht((f=i.value)==null?void 0:f.getElement)&&((u=i.value)==null?void 0:u.getElement());c&&(c.innerHTML=l)}),V(Ve,l=>{var f;return((f=i.value)==null?void 0:f.setIcon)&&i.value.setIcon(l)});const{options:n,methods:r}=_s(t,i,e),h={moveHandler:fs(r.latLngSync)};return et(async()=>{const{marker:l,divIcon:f}=o?Q.L:await H(()=>import("./leaflet-src.esm-C210bVOb.js"),[]);ds(n,e)&&(n.icon=f({className:""})),i.value=ot(l(t.latLng,n));const{listeners:u}=dt(e.attrs);i.value.on(u),i.value.on("move",h.moveHandler),it(r,i.value,t),s({...t,...r,leafletObject:i.value}),a.value=!0,K(()=>e.emit("ready",i.value))}),Yt(()=>$e(h)),{ready:a,leafletObject:i}},render(){return Yi(this.ready,this.$slots)}}),ni={...we,smoothFactor:{type:Number},noClip:{type:Boolean,default:void 0},latLngs:{type:Array,required:!0,custom:!0}},vs=(t,e,i)=>{const{options:a,methods:o}=Ye(t,e,i),s=N(t,ni,a),n={...o,setSmoothFactor(r){e.value.setStyle({smoothFactor:r})},setNoClip(r){e.value.setStyle({noClip:r})},addLatLng(r){e.value.addLatLng(r)}};return{options:s,methods:n}},La=Object.freeze(Object.defineProperty({__proto__:null,polylineProps:ni,setupPolyline:vs},Symbol.toStringTag,{value:"Module"})),de={...ni},gs=(t,e,i)=>{const{options:a,methods:o}=vs(t,e,i),s=N(t,de,a),n={...o,toGeoJSON(r){return e.value.toGeoJSON(r)}};return{options:s,methods:n}},Ga=Object.freeze(Object.defineProperty({__proto__:null,polygonProps:de,setupPolygon:gs},Symbol.toStringTag,{value:"Module"})),oi={...It,content:{type:String,default:null}},hi=(t,e)=>{const{options:i,methods:a}=Tt(t),o={...a,setContent(s){e.value&&s!==null&&s!==void 0&&e.value.setContent(s)}};return{options:i,methods:o}},ms=t=>t.default?Mt("div",{ref:"root"},t.default()):null,Ca=Object.freeze(Object.defineProperty({__proto__:null,popperProps:oi,render:ms,setupPopper:hi},Symbol.toStringTag,{value:"Module"})),ys={...oi,latLng:{type:[Object,Array],default:()=>[]}},ps=(t,e)=>{const{options:i,methods:a}=hi(t,e);return{options:i,methods:a}},Aa=Object.freeze(Object.defineProperty({__proto__:null,popupProps:ys,setupPopup:ps},Symbol.toStringTag,{value:"Module"})),d0=rt({name:"LPopup",props:ys,setup(t,e){const i=k(),a=k(null),o=nt(st),s=z(Qe),n=z(Je),{options:r,methods:h}=ps(t,i);return et(async()=>{const{popup:l}=o?Q.L:await H(()=>import("./leaflet-src.esm-C210bVOb.js"),[]);i.value=ot(l(r)),t.latLng!==void 0&&i.value.setLatLng(t.latLng),it(h,i.value,t);const{listeners:f}=dt(e.attrs);i.value.on(f),i.value.setContent(t.content||a.value||""),s(i.value),K(()=>e.emit("ready",i.value))}),Yt(()=>{n()}),{root:a,leafletObject:i}},render(){return ms(this.$slots)}}),Ms={...de,latLngs:{...de.latLngs,required:!1},bounds:{type:Object,custom:!0}},Oa=(t,e,i)=>{const{options:a,methods:o}=gs(t,e,i),s=N(t,Ms,a),n={...o,setBounds(r){e.value.setBounds(r)}
2,setLatLngs(r){e.value.setBounds(r)}};return{options:s,methods:n}},Na=Object.freeze(Object.defineProperty({__proto__:null,rectangleProps:Ms,setupRectangle:Oa},Symbol.toStringTag,{value:"Module"})),Le={...xe,tms:{type:Boolean,default:void 0},subdomains:{type:[String,Array],validator:t=>typeof t=="string"?!0:Array.isArray(t)?t.every(e=>typeof e=="string"):!1},detectRetina:{type:Boolean,default:void 0},url:{type:String,required:!0,custom:!0}},li=(t,e,i)=>{const{options:a,methods:o}=ai(t,e,i),s=N(t,Le,a),n={...o};return{options:s,methods:n}},Ia=Object.freeze(Object.defineProperty({__proto__:null,setupTileLayer:li,tileLayerProps:Le},Symbol.toStringTag,{value:"Module"})),v0=rt({props:Le,setup(t,e){const i=k(),a=nt(st),o=z(vt),{options:s,methods:n}=li(t,i,e);return et(async()=>{const{tileLayer:r}=a?Q.L:await H(()=>import("./leaflet-src.esm-C210bVOb.js"),[]);i.value=ot(r(t.url,s));const{listeners:h}=dt(e.attrs);i.value.on(h),it(n,i.value,t),o({...t,...n,leafletObject:i.value}),K(()=>e.emit("ready",i.value))}),{leafletObject:i}},render(){return null}}),Ta={...oi},Ra=(t,e)=>{const{options:i,methods:a}=hi(t,e),o=z(Xe);return Yt(()=>{o()}),{options:i,methods:a}},ja=Object.freeze(Object.defineProperty({__proto__:null,setupTooltip:Ra,tooltipProps:Ta},Symbol.toStringTag,{value:"Module"})),ui={...Le,layers:{type:String,required:!0},styles:{type:String},format:{type:String},transparent:{type:Boolean,default:void 0},version:{type:String},crs:{type:Object},uppercase:{type:Boolean,default:void 0}},Ss=(t,e,i)=>{const{options:a,methods:o}=li(t,e,i);return{options:N(t,ui,a),methods:{...o}}},ka=Object.freeze(Object.defineProperty({__proto__:null,setupWMSTileLayer:Ss,wmsTileLayerProps:ui},Symbol.toStringTag,{value:"Module"})),g0=rt({props:ui,setup(t,e){const i=k(),a=nt(st),o=z(vt),{options:s,methods:n}=Ss(t,i,e);return et(async()=>{const{tileLayer:r}=a?Q.L:await H(()=>import("./leaflet-src.esm-C210bVOb.js"),[]);i.value=ot(r.wms(t.url,s));const{listeners:h}=dt(e.attrs);i.value.on(h),it(n,i.value,t),o({...t,...n,leafletObject:i.value}),K(()=>e.emit("ready",i.value))}),{leafletObject:i}},render(){return null}}),bs=Object.freeze(Object.defineProperty({__proto__:null,Circle:na,CircleMarker:aa,Component:ta,Control:oa,ControlAttribution:la,ControlLayers:ua,ControlScale:fa,ControlZoom:_a,FeatureGroup:ga,GeoJSON:ya,GridLayer:pa,Icon:Ma,ImageOverlay:ba,InteractiveLayer:ia,Layer:ea,LayerGroup:da,Marker:xa,Path:sa,Polygon:Ga,Polyline:La,Popper:Ca,Popup:Aa,Rectangle:Na,TileLayer:Ia,Tooltip:ja,WmsTileLayer:ka},Symbol.toStringTag,{value:"Module"}));var Ce={exports:{}};function Ba(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 e=1;e<=60;++e)t("EPSG:"+(32600+e),"+proj=utm +zone="+e+" +datum=WGS84 +units=m"),t("EPSG:"+(32700+e),"+proj=utm +zone="+e+" +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"]}var yt=1,pt=2,At=3,za=4,je=5,Pi=6378137,Ua=6356752314e-3,wi=.0066943799901413165,$t=484813681109536e-20,y=Math.PI/2,qa=.16666666666666666,Da=.04722222222222222,Fa=.022156084656084655,M=1e-10,R=.017453292519943295,Z=57.29577951308232,C=Math.PI/4,Qt=Math.PI*2,j=3.14159265359,W={};W.greenwich=0;W.lisbon=-9.131906111111;W.paris=2.337229166667;W.bogota=-74.080916666667;W.madrid=-3.687938888889;W.rome=12.452333333333;W.bern=7.439583333333;W.jakarta=106.807719444444;W.ferro=-17.666666666667;W.brussels=4.367975;W.stockholm=18.058277777778;W.athens=23.7163375;W.oslo=10.722916666667;const $a={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 Ei=/[\s_\-\/\(\)]/g;function ft(t,e){if(t[e])return t[e];for(var i=Object.keys(t),a=e.toLowerCase().replace(Ei,""),o=-1,s,n;++o<i.length;)if(s=i[o],n=s.toLowerCase().replace(Ei,""),n===a)return t[s]}function ke(t){var e={},i=t.split("+").map(function(r){return r.trim()}).filter(function(r){return r}).reduce(function(r,h){var l=h.split("=");return l.push(!0),r[l[0].toLowerCase()]=l[1],r},{}),a,o,s,n={proj:"projName",datum:"datumCode",rf:function(r){e.rf=parseFloat(r)},lat_0:function(r){e.lat0=r*R},lat_1:function(r){e.lat1=r*R},lat_2:function(r){e.lat2=r*R},lat_ts:function(r){e.lat_ts=r*R},lon_0:function(r){e.long0=r*R},lon_1:function(r){e.long1=r*R},lon_2:function(r){e.long2=r*R},alpha:function(r){e.alpha=parseFloat(r)*R},gamma:function(r){e.rectified_grid_angle=parseFloat(r)*R},lonc:function(r){e.longc=r*R},x_0:function(r){e.x0=parseFloat(r)},y_0:function(r){e.y0=parseFloat(r)},k_0:function(r){e.k0=parseFloat(r)},k:function(r){e.k0=parseFloat(r)},a:function(r){e.a=parseFloat(r)},b:function(r){e.b=parseFloat(r)},r:function(r){e.a=e.b=parseFloat(r)},r_a:function(){e.R_A=!0},zone:function(r){e.zone=parseInt(r,10)},south:function(){e.utmSouth=!0},towgs84:function(r){e.datum_params=r.split(",").map(function(h){return parseFloat(h)})},to_meter:function(r){e.to_meter=parseFloat(r)},units:function(r){e.units=r;var h=ft($a,r);h&&(e.to_meter=h.to_meter)},from_greenwich:function(r){e.from_greenwich=r*R},pm:function(r){var h=ft(W,r);e.from_greenwich=(h||parseFloat(r))*R}
vendor: 25,724 bytes, line 2
2,nadgrids:function(r){r==="@null"?e.datumCode="none":e.nadgrids=r},axis:function(r){var h="ewnsud";r.length===3&&h.indexOf(r.substr(0,1))!==-1&&h.indexOf(r.substr(1,1))!==-1&&h.indexOf(r.substr(2,1))!==-1&&(e.axis=r)},approx:function(){e.approx=!0},over:function(){e.over=!0}};for(a in i)o=i[a],a in n?(s=n[a],typeof s=="function"?s(o):e[s]=o):e[a]=o;return typeof e.datumCode=="string"&&e.datumCode!=="WGS84"&&(e.datumCode=e.datumCode.toLowerCase()),e.projStr=t,e}class Ps{static getId(e){const i=e.find(a=>Array.isArray(a)&&a[0]==="ID");return i&&i.length>=3?{authority:i[1],code:parseInt(i[2],10)}:null}static convertUnit(e,i="unit"){if(!e||e.length<3)return{type:i,name:"unknown",conversion_factor:null};const a=e[1],o=parseFloat(e[2])||null,s=e.find(r=>Array.isArray(r)&&r[0]==="ID"),n=s?{authority:s[1],code:parseInt(s[2],10)}:null;return{type:i,name:a,conversion_factor:o,id:n}}static convertAxis(e){const i=e[1]||"Unknown";let a;const o=i.match(/^\((.)\)$/);if(o){const l=o[1].toUpperCase();if(l==="E")a="east";else if(l==="N")a="north";else if(l==="U")a="up";else throw new Error(`Unknown axis abbreviation: ${l}`)}else a=e[2]?e[2].toLowerCase():"unknown";const s=e.find(l=>Array.isArray(l)&&l[0]==="ORDER"),n=s?parseInt(s[1],10):null,r=e.find(l=>Array.isArray(l)&&(l[0]==="LENGTHUNIT"||l[0]==="ANGLEUNIT"||l[0]==="SCALEUNIT")),h=this.convertUnit(r);return{name:i,direction:a,unit:h,order:n}}static extractAxes(e){return e.filter(i=>Array.isArray(i)&&i[0]==="AXIS").map(i=>this.convertAxis(i)).sort((i,a)=>(i.order||0)-(a.order||0))}static convert(e,i={}){switch(e[0]){case"PROJCRS":i.type="ProjectedCRS",i.name=e[1],i.base_crs=e.find(c=>Array.isArray(c)&&c[0]==="BASEGEOGCRS")?this.convert(e.find(c=>Array.isArray(c)&&c[0]==="BASEGEOGCRS")):null,i.conversion=e.find(c=>Array.isArray(c)&&c[0]==="CONVERSION")?this.convert(e.find(c=>Array.isArray(c)&&c[0]==="CONVERSION")):null;const a=e.find(c=>Array.isArray(c)&&c[0]==="CS");a&&(i.coordinate_system={type:a[1],axis:this.extractAxes(e)});const o=e.find(c=>Array.isArray(c)&&c[0]==="LENGTHUNIT");if(o){const c=this.convertUnit(o);i.coordinate_system.unit=c}i.id=this.getId(e);break;case"BASEGEOGCRS":case"GEOGCRS":i.type="GeographicCRS",i.name=e[1];const s=e.find(c=>Array.isArray(c)&&(c[0]==="DATUM"||c[0]==="ENSEMBLE"));if(s){const c=this.convert(s);s[0]==="ENSEMBLE"?i.datum_ensemble=c:i.datum=c;const _=e.find(d=>Array.isArray(d)&&d[0]==="PRIMEM");_&&_[1]!=="Greenwich"&&(c.prime_meridian={name:_[1],longitude:parseFloat(_[2])})}i.coordinate_system={type:"ellipsoidal",axis:this.extractAxes(e)},i.id=this.getId(e);break;case"DATUM":i.type="GeodeticReferenceFrame",i.name=e[1],i.ellipsoid=e.find(c=>Array.isArray(c)&&c[0]==="ELLIPSOID")?this.convert(e.find(c=>Array.isArray(c)&&c[0]==="ELLIPSOID")):null;break;case"ENSEMBLE":i.type="DatumEnsemble",i.name=e[1],i.members=e.filter(c=>Array.isArray(c)&&c[0]==="MEMBER").map(c=>({type:"DatumEnsembleMember",name:c[1],id:this.getId(c)}));const n=e.find(c=>Array.isArray(c)&&c[0]==="ENSEMBLEACCURACY");n&&(i.accuracy=parseFloat(n[1]));const r=e.find(c=>Array.isArray(c)&&c[0]==="ELLIPSOID");r&&(i.ellipsoid=this.convert(r)),i.id=this.getId(e);break;case"ELLIPSOID":i.type="Ellipsoid",i.name=e[1],i.semi_major_axis=parseFloat(e[2]),i.inverse_flattening=parseFloat(e[3]),e.find(c=>Array.isArray(c)&&c[0]==="LENGTHUNIT")&&this.convert(e.find(c=>Array.isArray(c)&&c[0]==="LENGTHUNIT"),i);break;case"CONVERSION":i.type="Conversion",i.name=e[1],i.method=e.find(c=>Array.isArray(c)&&c[0]==="METHOD")?this.convert(e.find(c=>Array.isArray(c)&&c[0]==="METHOD")):null,i.parameters=e.filter(c=>Array.isArray(c)&&c[0]==="PARAMETER").map(c=>this.convert(c));break;case"METHOD":i.type="Method",i.name=e[1],i.id=this.getId(e);break;case"PARAMETER":i.type="Parameter",i.name=e[1],i.value=parseFloat(e[2]),i.unit=this.convertUnit(e.find(c=>Array.isArray(c)&&(c[0]==="LENGTHUNIT"||c[0]==="ANGLEUNIT"||c[0]==="SCALEUNIT"))),i.id=this.getId(e);break;case"BOUNDCRS":i.type="BoundCRS";const h=e.find(c=>Array.isArray(c)&&c[0]==="SOURCECRS");if(h){const c=h.find(_=>Array.isArray(_));i.source_crs=c?this.convert(c):null}const l=e.find(c=>Array.isArray(c)&&c[0]==="TARGETCRS");if(l){const c=l.find(_=>Array.isArray(_));i.target_crs=c?this.convert(c):null}const f=e.find(c=>Array.isArray(c)&&c[0]==="ABRIDGEDTRANSFORMATION");f?i.transformation=this.convert(f):i.transformation=null;break;case"ABRIDGEDTRANSFORMATION":if(i.type="Transformation",i.name=e[1],i.method=e.find(c=>Array.isArray(c)&&c[0]==="METHOD")?this.convert(e.find(c=>Array.isArray(c)&&c[0]==="METHOD")):null,i.parameters=e.filter(c=>Array.isArray(c)&&(c[0]==="PARAMETER"||c[0]==="PARAMETERFILE")).map(c=>{if(c[0]==="PARAMETER")return this.convert(c);if(c[0]==="PARAMETERFILE")return{name:c[1],value:c[2],id:{authority:"EPSG",code:8656}}}),i.parameters.length===7){const c=i.parameters[6];c.name==="Scale difference"&&(c.value=Math.round((c.value-1)*1e12)/1e6)}i.id=this.getId(e);break;case"AXIS":i.coordinate_system||(i.coordinate_system={type:"unspecified",axis:[]}),i.coordinate_system.axis.push(this.convertAxis(e));break;case"LENGTHUNIT":const u=this.convertUnit(e,"LinearUnit");i.coordinate_system&&i.coordinate_system.axis&&i.coordinate_system.axis.forEach(c=>{c.unit||(c.unit=u)}),u.conversion_factor&&u.conversion_factor!==1&&i.semi_major_axis&&(i.semi_major_axis={value:i.semi_major_axis,unit:u});break;default:i.keyword=e[0];break}return i}}class Za extends Ps{static convert(e,i={}){return super.convert(e,i),i.coordinate_system&&i.coordinate_system.subtype==="Cartesian"&&delete i.coordinate_system,i.usage&&delete i.usage,i}}class Ha extends Ps{static convert(e,i={}){super.convert(e,i);const a=e.find(s=>Array.isArray(s)&&s[0]==="CS");a&&(i.coordinate_system={subtype:a[1],axis:this.extractAxes(e)});const o=e.find(s=>Array.isArray(s)&&s[0]==="USAGE");if(o){const s=o.find(h=>Array.isArray(h)&&h[0]==="SCOPE"),n=o.find(h=>Array.isArray(h)&&h[0]==="AREA"),r=o.find(h=>Array.isArray(h)&&h[0]==="BBOX");i.usage={},s&&(i.usage.scope=s[1]),n&&(i.usage.area=n[1]),r&&(i.usage.bbox=r.slice(1))}return i}}function Wa(t){return t.find(e=>Array.isArray(e)&&e[0]==="USAGE")?"2019":(t.find(e=>Array.isArray(e)&&e[0]==="CS")||t[0]==="BOUNDCRS"||t[0]==="PROJCRS"||t[0]==="GEOGCRS","2015")}function Va(t){return(Wa(t)==="2019"?Ha:Za).convert(t)}function Qa(t){const e=t.toUpperCase();return e.includes("PROJCRS")||e.includes("GEOGCRS")||e.includes("BOUNDCRS")||e.includes("VERTCRS")||e.includes("LENGTHUNIT")||e.includes("ANGLEUNIT")||e.includes("SCALEUNIT")?"WKT2":(e.includes("PROJCS")||e.includes("GEOGCS")||e.includes("LOCAL_CS")||e.includes("VERT_CS")||e.includes("UNIT"),"WKT1")}var Jt=1,ws=2,Es=3,ve=4,xs=5,ci=-1,Ja=/\s/,Xa=/[A-Za-z]/,Ka=/[A-Za-z84_]/,Ge=/[,\]]/,Ls=/[\d\.E\-\+]/;function lt(t){if(typeof t!="string")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=Jt}lt.prototype.readCharicter=function(){var t=this.text[this.place++];if(this.state!==ve)for(;Ja.test(t);){if(this.place>=this.text.length)return;t=this.text[this.place++]}switch(this.state){case Jt:return this.neutral(t);case ws:return this.keyword(t);case ve:return this.quoted(t);case xs:return this.afterquote(t);case Es:return this.number(t);case ci:return}};lt.prototype.afterquote=function(t){if(t==='"'){this.word+='"',this.state=ve;return}if(Ge.test(t)){this.word=this.word.trim(),this.afterItem(t);return}throw new Error(`havn't handled "`+t+'" in afterquote yet, index '+this.place)};lt.prototype.afterItem=function(t){if(t===","){this.word!==null&&this.currentObject.push(this.word),this.word=null,this.state=Jt;return}if(t==="]"){this.level--,this.word!==null&&(this.currentObject.push(this.word),this.word=null),this.state=Jt,this.currentObject=this.stack.pop(),this.currentObject||(this.state=ci);return}};lt.prototype.number=function(t){if(Ls.test(t)){this.word+=t;return}if(Ge.test(t)){this.word=parseFloat(this.word),this.afterItem(t);return}throw new Error(`havn't handled "`+t+'" in number yet, index '+this.place)};lt.prototype.quoted=function(t){if(t==='"'){this.state=xs;return}this.word+=t};lt.prototype.keyword=function(t){if(Ka.test(t)){this.word+=t;return}if(t==="["){var e=[];e.push(this.word),this.level++,this.root===null?this.root=e:this.currentObject.push(e),this.stack.push(this.currentObject),this.currentObject=e,this.state=Jt;return}if(Ge.test(t)){this.afterItem(t);return}throw new Error(`havn't handled "`+t+'" in keyword yet, index '+this.place)};lt.prototype.neutral=function(t){if(Xa.test(t)){this.word=t,this.state=ws;return}if(t==='"'){this.word="",this.state=ve;return}if(Ls.test(t)){this.word=t,this.state=Es;return}if(Ge.test(t)){this.afterItem(t);return}throw new Error(`havn't handled "`+t+'" in neutral yet, index '+this.place)};lt.prototype.output=function(){for(;this.place<this.text.length;)this.readCharicter();if(this.state===ci)return this.root;throw new Error('unable to parse string "'+this.text+'". State is '+this.state)};function Ya(t){var e=new lt(t);return e.output()}function Ae(t,e,i){Array.isArray(e)&&(i.unshift(e),e=null);var a=e?{}:t,o=i.reduce(function(s,n){return xt(n,s),s},a);e&&(t[e]=o)}function xt(t,e){if(!Array.isArray(t)){e[t]=!0;return}var i=t.shift();if(i==="PARAMETER"&&(i=t.shift()),t.length===1){if(Array.isArray(t[0])){e[i]={},xt(t[0],e[i]);return}e[i]=t[0];return}if(!t.length){e[i]=!0;return}if(i==="TOWGS84"){e[i]=t;return}if(i==="AXIS"){i in e||(e[i]=[]),e[i].push(t);return}Array.isArray(i)||(e[i]={});var a;switch(i){case"UNIT":case"PRIMEM":case"VERT_DATUM":e[i]={name:t[0].toLowerCase(),convert:t[1]},t.length===3&&xt(t[2],e[i]);return;case"SPHEROID":case"ELLIPSOID":e[i]={name:t[0],a:t[1],rf:t[2]},t.length===4&&xt(t[3],e[i]);return;case"EDATUM":case"ENGINEERINGDATUM":case"LOCAL_DATUM":case"DATUM":case"VERT_CS":case"VERTCRS":case"VERTICALCRS":t[0]=["name",t[0]],Ae(e,i,t);return;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":t[0]=["name",t[0]],Ae(e,i,t),e[i].type=i;return;default:for(a=-1;++a<t.length;)if(!Array.isArray(t[a]))return xt(t,e[i]);return Ae(e,i,t)}}var tr=.017453292519943295;function Y(t){return t*tr}function Gs(t){const e=(t.projName||"").toLowerCase().replace(/_/g," ");!t.long0&&t.longc&&(e==="albers conic equal area"||e==="lambert azimuthal equal area")&&(t.long0=t.longc),!t.lat_ts&&t.lat1&&(e==="stereographic south pole"||e==="polar stereographic (variant b)")?(t.lat0=Y(t.lat1>0?90:-90),t.lat_ts=t.lat1,delete t.lat1):!t.lat_ts&&t.lat0&&(e==="polar stereographic"||e==="polar stereographic (variant a)")&&(t.lat_ts=t.lat0,t.lat0=Y(t.lat0>0?90:-90),delete t.lat1)}function xi(t){let e={units:null,to_meter:void 0};return typeof t=="string"?(e.units=t.toLowerCase(),e.units==="metre"&&(e.units="meter"),e.units==="meter"&&(e.to_meter=1)):t&&t.name&&(e.units=t.name.toLowerCase(),e.units==="metre"&&(e.units="meter"),e.to_meter=t.conversion_factor),e}function Li(t){return typeof t=="object"?t.value*t.unit.conversion_factor:t}function Gi(t,e){t.ellipsoid.radius?(e.a=t.ellipsoid.radius,e.rf=0):(e.a=Li(t.ellipsoid.semi_major_axis),t.ellipsoid.inverse_flattening!==void 0?e.rf=t.ellipsoid.inverse_flattening:t.ellipsoid.semi_major_axis!==void 0&&t.ellipsoid.semi_minor_axis!==void 0&&(e.rf=e.a/(e.a-Li(t.ellipsoid.semi_minor_axis))))}function ge(t,e={}){return!t||typeof t!="object"?t:t.type==="BoundCRS"?(ge(t.source_crs,e),t.transformation&&(t.transformation.method&&t.transformation.method.name==="NTv2"?e.nadgrids=t.transformation.parameters[0].value:e.datum_params=t.transformation.parameters.map(i=>i.value)),e):(Object.keys(t).forEach(i=>{const a=t[i];if(a!==null)switch(i){case"name":if(e.srsCode)break;e.name=a,e.srsCode=a;break;case"type":a==="GeographicCRS"?e.projName="longlat":a==="ProjectedCRS"&&t.conversion&&t.conversion.method&&(e.projName=t.conversion.method.name);break;case"datum":case"datum_ensemble":a.ellipsoid&&(e.ellps=a.ellipsoid.name,Gi(a,e)),a.prime_meridian&&(e.from_greenwich=a.prime_meridian.longitude*Math.PI/180);break;case"ellipsoid":e.ellps=a.name,Gi(a,e);break;case"prime_meridian":e.long0=(a.longitude||0)*Math.PI/180;break;case"coordinate_system":if(a.axis){if(e.axis=a.axis.map(o=>{const s=o.direction;if(s==="east")return"e";if(s==="north")return"n";if(s==="west")return"w";if(s==="south")return"s";throw new Error(`Unknown axis direction: ${s}`)}).join("")+"u",a.unit){const{units:o,to_meter:s}=xi(a.unit);e.units=o,e.to_meter=s}else if(a.axis[0]&&a.axis[0].unit){const{units:o,to_meter:s}=xi(a.axis[0].unit);e.units=o,e.to_meter=s}}break;case"id":a.authority&&a.code&&(e.title=a.authority+":"+a.code);break;case"conversion":a.method&&a.method.name&&(e.projName=a.method.name),a.parameters&&a.parameters.forEach(o=>{const s=o.name.toLowerCase().replace(/\s+/g,"_"),n=o.value;o.unit&&o.unit.conversion_factor?e[s]=n*o.unit.conversion_factor:o.unit==="degree"?e[s]=n*Math.PI/180:e[s]=n});break;case"unit":a.name&&(e.units=a.name.toLowerCase(),e.units==="metre"&&(e.units="meter")),a.conversion_factor&&(e.to_meter=a.conversion_factor);break;case"base_crs":ge(a,e),e.datumCode=a.id?a.id.authority+"_"+a.id.code:a.name;break}}),e.latitude_of_false_origin!==void 0&&(e.lat0=e.latitude_of_false_origin),e.longitude_of_false_origin!==void 0&&(e.long0=e.longitude_of_false_origin),e.latitude_of_standard_parallel!==void 0&&(e.lat0=e.latitude_of_standard_parallel,e.lat1=e.latitude_of_standard_parallel),e.latitude_of_1st_standard_parallel!==void 0&&(e.lat1=e.latitude_of_1st_standard_parallel),e.latitude_of_2nd_standard_parallel!==void 0&&(e.lat2=e.latitude_of_2nd_standard_parallel),e.latitude_of_projection_centre!==void 0&&(e.lat0=e.latitude_of_projection_centre),e.longitude_of_projection_centre!==void 0&&(e.longc=e.longitude_of_projection_centre),e.easting_at_false_origin!==void 0&&(e.x0=e.easting_at_false_origin),e.northing_at_false_origin!==void 0&&(e.y0=e.northing_at_false_origin),e.latitude_of_natural_origin!==void 0&&(e.lat0=e.latitude_of_natural_origin),e.longitude_of_natural_origin!==void 0&&(e.long0=e.longitude_of_natural_origin),e.longitude_of_origin!==void 0&&(e.long0=e.longitude_of_origin),e.false_easting!==void 0&&(e.x0=e.false_easting),e.easting_at_projection_centre&&(e.x0=e.easting_at_projection_centre),e.false_northing!==void 0&&(e.y0=e.false_northing),e.northing_at_projection_centre&&(e.y0=e.northing_at_projection_centre),e.standard_parallel_1!==void 0&&(e.lat1=e.standard_parallel_1),e.standard_parallel_2!==void 0&&(e.lat2=e.standard_parallel_2),e.scale_factor_at_natural_origin!==void 0&&(e.k0=e.scale_factor_at_natural_origin),e.scale_factor_at_projection_centre!==void 0&&(e.k0=e.scale_factor_at_projection_centre),e.scale_factor_on_pseudo_standard_parallel!==void 0&&(e.k0=e.scale_factor_on_pseudo_standard_parallel),e.azimuth!==void 0&&(e.alpha=e.azimuth),e.azimuth_at_projection_centre!==void 0&&(e.alpha=e.azimuth_at_projection_centre),e.angle_from_rectified_to_skew_grid&&(e.rectified_grid_angle=e.angle_from_rectified_to_skew_grid),Gs(e),e)}var er=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];function ir(t,e){var i=e[0],a=e[1];!(i in t)&&a in t&&(t[i]=t[a],e.length===3&&(t[i]=e[2](t[i])))}function Cs(t){for(var e=Object.keys(t),i=0,a=e.length;i<a;++i){var o=e[i];er.indexOf(o)!==-1&&sr(t[o]),typeof t[o]=="object"&&Cs(t[o])}}function sr(t){if(t.AUTHORITY){var e=Object.keys(t.AUTHORITY)[0];e&&e in t.AUTHORITY&&(t.title=e+":"+t.AUTHORITY[e])}if(t.type==="GEOGCS"?t.projName="longlat":t.type==="LOCAL_CS"?(t.projName="identity",t.local=!0):typeof t.PROJECTION=="object"?t.projName=Object.keys(t.PROJECTION)[0]:t.projName=t.PROJECTION,t.AXIS){for(var i="",a=0,o=t.AXIS.length;a<o;++a){var s=[t.AXIS[a][0].toLowerCase(),t.AXIS[a][1].toLowerCase()];s[0].indexOf("north")!==-1||(s[0]==="y"||s[0]==="lat")&&s[1]==="north"?i+="n":s[0].indexOf("south")!==-1||(s[0]==="y"||s[0]==="lat")&&s[1]==="south"?i+="s":s[0].indexOf("east")!==-1||(s[0]==="x"||s[0]==="lon")&&s[1]==="east"?i+="e":(s[0].indexOf("west")!==-1||(s[0]==="x"||s[0]==="lon")&&s[1]==="west")&&(i+="w")}i.length===2&&(i+="u"),i.length===3&&(t.axis=i)}t.UNIT&&(t.units=t.UNIT.name.toLowerCase(),t.units==="metre"&&(t.units="meter"),t.UNIT.convert&&(t.type==="GEOGCS"?t.DATUM&&t.DATUM.SPHEROID&&(t.to_meter=t.UNIT.convert*t.DATUM.SPHEROID.a):t.to_meter=t.UNIT.convert));var n=t.GEOGCS;t.type==="GEOGCS"&&(n=t),n&&(n.DATUM?t.datumCode=n.DATUM.name.toLowerCase():t.datumCode=n.name.toLowerCase(),t.datumCode.slice(0,2)==="d_"&&(t.datumCode=t.datumCode.slice(2)),t.datumCode==="new_zealand_1949"&&(t.datumCode="nzgd49"),(t.datumCode==="wgs_1984"||t.datumCode==="world_geodetic_system_1984")&&(t.PROJECTION==="Mercator_Auxiliary_Sphere"&&(t.sphere=!0),t.datumCode="wgs84"),t.datumCode==="belge_1972"&&(t.datumCode="rnb72"),n.DATUM&&n.DATUM.SPHEROID&&(t.ellps=n.DATUM.SPHEROID.name.replace("_19","").replace(/[Cc]larke\_18/,"clrk"),t.ellps.toLowerCase().slice(0,13)==="international"&&(t.ellps="intl"),t.a=n.DATUM.SPHEROID.a,t.rf=parseFloat(n.DATUM.SPHEROID.rf,10)),n.DATUM&&n.DATUM.TOWGS84&&(t.datum_params=n.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"),t.datumCode==="ch1903+"&&(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=Y(t.rectified_grid_angle));function r(f){var u=t.to_meter||1;return f*u}var h=function(f){return ir(t,f)},l=[["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",Y],["longitude_of_center","Longitude_Of_Center"],["longitude_of_center","Longitude_of_center"],["longc","longitude_of_center",Y],["x0","false_easting",r],["y0","false_northing",r],["long0","central_meridian",Y],["lat0","latitude_of_origin",Y],["lat0","standard_parallel_1",Y],["lat1","standard_parallel_1",Y],["lat2","standard_parallel_2",Y],["azimuth","Azimuth"],["alpha","azimuth",Y],["srsCode","name"]];l.forEach(h),Gs(t)}function me(t){if(typeof t=="object")return ge(t);const e=Qa(t);var i=Ya(t);if(e==="WKT2"){const s=Va(i);return ge(s)}var a=i[0],o={};return xt(i,o),Cs(o),o[a]}function B(t){var e=this;if(arguments.length===2){var i=arguments[1];typeof i=="string"?i.charAt(0)==="+"?B[t]=ke(arguments[1]):B[t]=me(arguments[1]):i&&typeof i=="object"&&!("projName"in i)?B[t]=me(arguments[1]):(B[t]=i,i||delete B[t])}else if(arguments.length===1){if(Array.isArray(t))return t.map(function(a){return Array.isArray(a)?B.apply(e,a):B(a)});if(typeof t=="string"){if(t in B)return B[t]}else"EPSG"in t?B["EPSG:"+t.EPSG]=t:"ESRI"in t?B["ESRI:"+t.ESRI]=t:"IAU2000"in t?B["IAU2000:"+t.IAU2000]=t:console.log(t);return}}Ba(B);function ar(t){return typeof t=="string"}function rr(t){return t in B}function nr(t){return t.indexOf("+")!==0&&t.indexOf("[")!==-1||typeof t=="object"&&!("srsCode"in t)}var or=["3857","900913","3785","102113"];function hr(t){var e=ft(t,"authority");if(e){var i=ft(e,"epsg");return i&&or.indexOf(i)>-1}}function lr(t){var e=ft(t,"extension");if(e)return ft(e,"proj4")}function ur(t){return t[0]==="+"}function cr(t){if(ar(t)){if(rr(t))return B[t];if(nr(t)){var e=me(t);if(hr(e))return B["EPSG:3857"];var i=lr(e);return i?ke(i):e}if(ur(t))return ke(t)}else return"projName"in t?t:me(t)}function Ci(t,e){t=t||{};var i,a;if(!e)return t;for(a in e)i=e[a],i!==void 0&&(t[a]=i);return t}function at(t,e,i){var a=t*e;return i/Math.sqrt(1-a*a)}function ee(t){return t<0?-1:1}function S(t,e){return e||Math.abs(t)<=j?t:t-ee(t)*Qt}function tt(t,e,i){var a=t*i,o=.5*t;return a=Math.pow((1-a)/(1+a),o),Math.tan(.5*(y-e))/a}function Xt(t,e){for(var i=.5*t,a,o,s=y-2*Math.atan(e),n=0;n<=15;n++)if(a=t*Math.sin(s),o=y-2*Math.atan(e*Math.pow((1-a)/(1+a),i))-s,s+=o,Math.abs(o)<=1e-10)return s;return-9999}function fr(){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=at(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)}function _r(t){var e=t.x,i=t.y;if(i*Z>90&&i*Z<-90&&e*Z>180&&e*Z<-180)return null;var a,o;if(Math.abs(Math.abs(i)-y)<=M)return null;if(this.sphere)a=this.x0+this.a*this.k0*S(e-this.long0,this.over),o=this.y0+this.a*this.k0*Math.log(Math.tan(C+.5*i));else{var s=Math.sin(i),n=tt(this.e,i,s);a=this.x0+this.a*this.k0*S(e-this.long0,this.over),o=this.y0-this.a*this.k0*Math.log(n)}return t.x=a,t.y=o,t}function dr(t){var e=t.x-this.x0,i=t.y-this.y0,a,o;if(this.sphere)o=y-2*Math.atan(Math.exp(-i/(this.a*this.k0)));else{var s=Math.exp(-i/(this.a*this.k0));if(o=Xt(this.e,s),o===-9999)return null}return a=S(this.long0+e/(this.a*this.k0),this.over),t.x=a,t.y=o,t}var vr=["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","Mercator_Variant_A","merc"];const gr={init:fr,forward:_r,inverse:dr,names:vr};function mr(){}function Ai(t){return t}var As=["longlat","identity"];const yr={init:mr,forward:Ai,inverse:Ai,names:As};var pr=[gr,yr],mt={},Lt=[];function Os(t,e){var i=Lt.length;return t.names?(Lt[i]=t,t.names.forEach(function(a){mt[a.toLowerCase()]=i}),this):(console.log(e),!0)}function Ns(t){return t.replace(/[-\(\)\s]+/g," ").trim().replace(/ /g,"_")}function Mr(t){if(!t)return!1;var e=t.toLowerCase();if(typeof mt[e]<"u"&&Lt[mt[e]]||(e=Ns(e),e in mt&&Lt[mt[e]]))return Lt[mt[e]]}function Sr(){pr.forEach(Os)}const br={start:Sr,add:Os,get:Mr};var Is={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:6377563396e-3,b:635625691e-2,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:6377340189e-3,b:6356034446e-3,ellipseName:"Modified Airy"},andrae:{a:637710443e-2,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:6377397155e-3,rf:299.1528128,ellipseName:"Bessel 1841"},bess_nam:{a:6377483865e-3,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"},clrk66:{a:63782064e-1,b:63565838e-1,ellipseName:"Clarke 1866"},clrk80:{a:6378249145e-3,rf:293.4663,ellipseName:"Clarke 1880 mod."},clrk80ign:{a:63782492e-1,b:6356515,rf:293.4660213,ellipseName:"Clarke 1880 (IGN)"},clrk58:{a:6378293645208759e-9,rf:294.2606763692654,ellipseName:"Clarke 1858"},CPM:{a:63757387e-1,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"},delmbr:{a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"},engelis:{a:637813605e-2,rf:298.2566,ellipseName:"Engelis 1985"},evrst30:{a:6377276345e-3,rf:300.8017,ellipseName:"Everest 1830"},evrst48:{a:6377304063e-3,rf:300.8017,ellipseName:"Everest 1948"},evrst56:{a:6377301243e-3,rf:300.8017,ellipseName:"Everest 1956"},evrst69:{a:6377295664e-3,rf:300.8017,ellipseName:"Everest 1969"},evrstSS:{a:6377298556e-3,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:63781575e-1,b:63567722e-1,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:63567733205e-4,ellipseName:"Southeast Asia"},walbeck:{a:6376896,b:63558348467e-4,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)"}};const Pr=Is.WGS84;function wr(t,e,i,a){var o=t*t,s=e*e,n=(o-s)/o,r=0;a?(t*=1-n*(qa+n*(Da+n*Fa)),o=t*t,n=0):r=Math.sqrt(n);var h=(o-s)/s;return{es:n,e:r,ep2:h}}function Er(t,e,i,a,o){if(!t){var s=ft(Is,a);s||(s=Pr),t=s.a,e=s.b,i=s.rf}return i&&!e&&(e=(1-1/i)*t),(i===0||Math.abs(t-e)<M)&&(o=!0,e=t),{a:t,b:e,rf:i,sphere:o}}var ue
vendor: 19,518 bytes, line 2
2={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",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.0276,-0.2167,0.2147,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,-1.91514,1.60363,-9.09546,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.243649,-1.158827,-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,32.39344,-153.25684,-96.2266,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,-8.393,0.749,-10.276,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,1.25033e-7,4.6785e-8,5.6529e-8,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:"61.55,-10.87,-40.19,39.4924,32.7221,32.8979,-9.994"},EPSG_4317:{towgs84:"2.3287,-147.0425,-92.0802,-0.3092483,0.32482185,0.49729934,5.68906266"},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:"374,150,588"},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"}};for(var
vendor: 6,746 bytes, line 2
2xr in ue){var Oe=ue[xr];Oe.datumName&&(ue[Oe.datumName]=Oe)}function Lr(t,e,i,a,o,s,n){var r={};return t===void 0||t==="none"?r.datum_type=je:r.datum_type=za,e&&(r.datum_params=e.map(parseFloat),(r.datum_params[0]!==0||r.datum_params[1]!==0||r.datum_params[2]!==0)&&(r.datum_type=yt),r.datum_params.length>3&&(r.datum_params[3]!==0||r.datum_params[4]!==0||r.datum_params[5]!==0||r.datum_params[6]!==0)&&(r.datum_type=pt,r.datum_params[3]*=$t,r.datum_params[4]*=$t,r.datum_params[5]*=$t,r.datum_params[6]=r.datum_params[6]/1e6+1)),n&&(r.datum_type=At,r.grids=n),r.a=i,r.b=a,r.es=o,r.ep2=s,r}var fi={};function Gr(t,e,i){return e instanceof ArrayBuffer?Cr(t,e,i):{ready:Ar(t,e)}}function Cr(t,e,i){var a=!0;i!==void 0&&i.includeErrorFields===!1&&(a=!1);var o=new DataView(e),s=Ir(o),n=Tr(o,s),r=Rr(o,n,s,a),h={header:n,subgrids:r};return fi[t]=h,h}async function Ar(t,e){for(var i=[],a=await e.getImageCount(),o=a-1;o>=0;o--){var s=await e.getImage(o),n=await s.readRasters(),r=n,h=[s.getWidth(),s.getHeight()],l=s.getBoundingBox().map(Oi),f=[s.fileDirectory.ModelPixelScale[0],s.fileDirectory.ModelPixelScale[1]].map(Oi),u=l[0]+(h[0]-1)*f[0],c=l[3]-(h[1]-1)*f[1],_=r[0],d=r[1],v=[];for(let p=h[1]-1;p>=0;p--)for(let b=h[0]-1;b>=0;b--){var g=p*h[0]+b;v.push([-ut(d[g]),ut(_[g])])}i.push({del:f,lim:h,ll:[-u,c],cvs:v})}var m={header:{nSubgrids:a},subgrids:i};return fi[t]=m,m}function Or(t){if(t===void 0)return null;var e=t.split(",");return e.map(Nr)}function Nr(t){if(t.length===0)return null;var e=t[0]==="@";return e&&(t=t.slice(1)),t==="null"?{name:"null",mandatory:!e,grid:null,isNull:!0}:{name:t,mandatory:!e,grid:fi[t]||null,isNull:!1}}function Oi(t){return t*Math.PI/180}function ut(t){return t/3600*Math.PI/180}function Ir(t){var e=t.getInt32(8,!1);return e===11?!1:(e=t.getInt32(8,!0),e!==11&&console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian"),!0)}function Tr(t,e){return{nFields:t.getInt32(8,e),nSubgridFields:t.getInt32(24,e),nSubgrids:t.getInt32(40,e),shiftType:Be(t,56,64).trim(),fromSemiMajorAxis:t.getFloat64(120,e),fromSemiMinorAxis:t.getFloat64(136,e),toSemiMajorAxis:t.getFloat64(152,e),toSemiMinorAxis:t.getFloat64(168,e)}}function Be(t,e,i){return String.fromCharCode.apply(null,new Uint8Array(t.buffer.slice(e,i)))}function Rr(t,e,i,a){for(var o=176,s=[],n=0;n<e.nSubgrids;n++){var r=kr(t,o,i),h=Br(t,o,r,i,a),l=Math.round(1+(r.upperLongitude-r.lowerLongitude)/r.longitudeInterval),f=Math.round(1+(r.upperLatitude-r.lowerLatitude)/r.latitudeInterval);s.push({ll:[ut(r.lowerLongitude),ut(r.lowerLatitude)],del:[ut(r.longitudeInterval),ut(r.latitudeInterval)],lim:[l,f],count:r.gridNodeCount,cvs:jr(h)});var u=16;a===!1&&(u=8),o+=176+r.gridNodeCount*u}return s}function jr(t){return t.map(function(e){return[ut(e.longitudeShift),ut(e.latitudeShift)]})}function kr(t,e,i){return{name:Be(t,e+8,e+16).trim(),parent:Be(t,e+24,e+24+8).trim(),lowerLatitude:t.getFloat64(e+72,i),upperLatitude:t.getFloat64(e+88,i),lowerLongitude:t.getFloat64(e+104,i),upperLongitude:t.getFloat64(e+120,i),latitudeInterval:t.getFloat64(e+136,i),longitudeInterval:t.getFloat64(e+152,i),gridNodeCount:t.getInt32(e+168,i)}}function Br(t,e,i,a,o){var s=e+176,n=16;o===!1&&(n=8);for(var r=[],h=0;h<i.gridNodeCount;h++){var l={latitudeShift:t.getFloat32(s+h*n,a),longitudeShift:t.getFloat32(s+h*n+4,a)};o!==!1&&(l.latitudeAccuracy=t.getFloat32(s+h*n+8,a),l.longitudeAccuracy=t.getFloat32(s+h*n+12,a)),r.push(l)}return r}function X(t,e){if(!(this instanceof X))return new X(t);this.forward=null,this.inverse=null,this.init=null,this.name,this.names=null,this.title,e=e||function(l){if(l)throw l};var i=cr(t);if(typeof i!="object"){e("Could not parse to valid json: "+t);return}var a=X.projections.get(i.projName);if(!a){e("Could not get projection name from: "+t);return}if(i.datumCode&&i.datumCode!=="none"){var o=ft(ue,i.datumCode);o&&(i.datum_params=i.datum_params||(o.towgs84?o.towgs84.split(","):null),i.ellps=o.ellipse,i.datumName=o.datumName?o.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 s=Er(i.a,i.b,i.rf,i.ellps,i.sphere),n=wr(s.a,s.b,s.rf,i.R_A),r=Or(i.nadgrids),h=i.datum||Lr(i.datumCode,i.datum_params,s.a,s.b,n.es,n.ep2,r);Ci(this,i),Ci(this,a),this.a=s.a,this.b=s.b,this.rf=s.rf,this.sphere=s.sphere,this.es=n.es,this.e=n.e,this.ep2=n.ep2,this.datum=h,"init"in this&&typeof this.init=="function"&&this.init(),e(null,this)}X.projections=br;X.projections.start();function zr(t,e){return t.datum_type!==e.datum_type||t.a!==e.a||Math.abs(t.es-e.es)>5e-11?!1:t.datum_type===yt?t.datum_params[0]===e.datum_params[0]&&t.datum_params[1]===e.datum_params[1]&&t.datum_params[2]===e.datum_params[2]:t.datum_type===pt?t.datum_params[0]===e.datum_params[0]&&t.datum_params[1]===e.datum_params[1]&&t.datum_params[2]===e.datum_params[2]&&t.datum_params[3]===e.datum_params[3]&&t.datum_params[4]===e.datum_params[4]&&t.datum_params[5]===e.datum_params[5]&&t.datum_params[6]===e.datum_params[6]:!0}function Ts(t,e,i){var a=t.x,o=t.y,s=t.z?t.z:0,n,r,h,l;if(o<-y&&o>-1.001*y)o=-y;else if(o>y&&o<1.001*y)o=y;else{if(o<-y)return{x:-1/0,y:-1/0,z:t.z};if(o>y)return{x:1/0,y:1/0,z:t.z}}return a>Math.PI&&(a-=2*Math.PI),r=Math.sin(o),l=Math.cos(o),h=r*r,n=i/Math.sqrt(1-e*h),{x:(n+s)*l*Math.cos(a),y:(n+s)*l*Math.sin(a),z:(n*(1-e)+s)*r}}function Rs(t,e,i,a){var o=1e-12,s=o*o,n=30,r,h,l,f,u,c,_,d,v,g,m,p,b,E=t.x,w=t.y,x=t.z?t.z:0,O,T,P;if(r=Math.sqrt(E*E+w*w),h=Math.sqrt(E*E+w*w+x*x),r/i<o){if(O=0,h/i<o)return T=y,P=-a,{x:t.x,y:t.y,z:t.z}}else O=Math.atan2(w,E);l=x/h,f=r/h,u=1/Math.sqrt(1-e*(2-e)*f*f),d=f*(1-e)*u,v=l*u,b=0;do b++,_=i/Math.sqrt(1-e*v*v),P=r*d+x*v-_*(1-e*v*v),c=e*_/(_+P),u=1/Math.sqrt(1-c*(2-c)*f*f),g=f*(1-c)*u,m=l*u,p=m*d-g*v,d=g,v=m;while(p*p>s&&b<n);return T=Math.atan(m/Math.abs(g)),{x:O,y:T,z:P}}function Ur(t,e,i){if(e===yt)return{x:t.x+i[0],y:t.y+i[1],z:t.z+i[2]};if(e===pt){var a=i[0],o=i[1],s=i[2],n=i[3],r=i[4],h=i[5],l=i[6];return{x:l*(t.x-h*t.y+r*t.z)+a,y:l*(h*t.x+t.y-n*t.z)+o,z:l*(-r*t.x+n*t.y+t.z)+s}}}function qr(t,e,i){if(e===yt)return{x:t.x-i[0],y:t.y-i[1],z:t.z-i[2]};if(e===pt){var a=i[0],o=i[1],s=i[2],n=i[3],r=i[4],h=i[5],l=i[6],f=(t.x-a)/l,u=(t.y-o)/l,c=(t.z-s)/l;return{x:f+h*u-r*c,y:-h*f+u+n*c,z:r*f-n*u+c}}}function oe(t){return t===yt||t===pt}function Dr(t,e,i){if(zr(t,e)||t.datum_type===je||e.datum_type===je)return i;var a=t.a,o=t.es;if(t.datum_type===At){var s=Ni(t,!1,i);if(s!==0)return;a=Pi,o=wi}var n=e.a,r=e.b,h=e.es;if(e.datum_type===At&&(n=Pi,r=Ua,h=wi),o===h&&a===n&&!oe(t.datum_type)&&!oe(e.datum_type))return i;if(i=Ts(i,o,a),oe(t.datum_type)&&(i=Ur(i,t.datum_type,t.datum_params)),oe(e.datum_type)&&(i=qr(i,e.datum_type,e.datum_params)),i=Rs(i,h,n,r),e.datum_type===At){var l=Ni(e,!0,i);if(l!==0)return}return i}
vendor: 5,431 bytes, line 2
2function Ni(t,e,i){if(t.grids===null||t.grids.length===0)return console.log("Grid shift grids not found"),-1;var a={x:-i.x,y:i.y},o={x:Number.NaN,y:Number.NaN},s=[];t:for(var n=0;n<t.grids.length;n++){var r=t.grids[n];if(s.push(r.name),r.isNull){o=a;break}if(r.grid===null){if(r.mandatory)return console.log("Unable to find mandatory grid '"+r.name+"'"),-1;continue}for(var h=r.grid.subgrids,l=0,f=h.length;l<f;l++){var u=h[l],c=(Math.abs(u.del[1])+Math.abs(u.del[0]))/1e4,_=u.ll[0]-c,d=u.ll[1]-c,v=u.ll[0]+(u.lim[0]-1)*u.del[0]+c,g=u.ll[1]+(u.lim[1]-1)*u.del[1]+c;if(!(d>a.y||_>a.x||g<a.y||v<a.x)&&(o=Fr(a,e,u),!isNaN(o.x)))break t}}return isNaN(o.x)?(console.log("Failed to find a grid shift table for location '"+-a.x*Z+" "+a.y*Z+" tried: '"+s+"'"),-1):(i.x=-o.x,i.y=o.y,0)}function Fr(t,e,i){var a={x:Number.NaN,y:Number.NaN};if(isNaN(t.x))return a;var o={x:t.x,y:t.y};o.x-=i.ll[0],o.y-=i.ll[1],o.x=S(o.x-Math.PI)+Math.PI;var s=Ii(o,i);if(e){if(isNaN(s.x))return a;s.x=o.x-s.x,s.y=o.y-s.y;var n=9,r=1e-12,h,l;do{if(l=Ii(s,i),isNaN(l.x)){console.log("Inverse grid shift iteration failed, presumably at grid edge. Using first approximation.");break}h={x:o.x-(l.x+s.x),y:o.y-(l.y+s.y)},s.x+=h.x,s.y+=h.y}while(n--&&Math.abs(h.x)>r&&Math.abs(h.y)>r);if(n<0)return console.log("Inverse grid shift iterator failed to converge."),a;a.x=S(s.x+i.ll[0]),a.y=s.y+i.ll[1]}else isNaN(s.x)||(a.x=t.x+s.x,a.y=t.y+s.y);return a}function Ii(t,e){var i={x:t.x/e.del[0],y:t.y/e.del[1]},a={x:Math.floor(i.x),y:Math.floor(i.y)},o={x:i.x-1*a.x,y:i.y-1*a.y},s={x:Number.NaN,y:Number.NaN},n;if(a.x<0||a.x>=e.lim[0]||a.y<0||a.y>=e.lim[1])return s;n=a.y*e.lim[0]+a.x;var r={x:e.cvs[n][0],y:e.cvs[n][1]};n++;var h={x:e.cvs[n][0],y:e.cvs[n][1]};n+=e.lim[0];var l={x:e.cvs[n][0],y:e.cvs[n][1]};n--;var f={x:e.cvs[n][0],y:e.cvs[n][1]},u=o.x*o.y,c=o.x*(1-o.y),_=(1-o.x)*(1-o.y),d=(1-o.x)*o.y;return s.x=_*r.x+c*h.x+d*f.x+u*l.x,s.y=_*r.y+c*h.y+d*f.y+u*l.y,s}function Ti(t,e,i){var a=i.x,o=i.y,s=i.z||0,n,r,h,l={};for(h=0;h<3;h++)if(!(e&&h===2&&i.z===void 0))switch(h===0?(n=a,"ew".indexOf(t.axis[h])!==-1?r="x":r="y"):h===1?(n=o,"ns".indexOf(t.axis[h])!==-1?r="y":r="x"):(n=s,r="z"),t.axis[h]){case"e":l[r]=n;break;case"w":l[r]=-n;break;case"n":l[r]=n;break;case"s":l[r]=-n;break;case"u":i[r]!==void 0&&(l.z=n);break;case"d":i[r]!==void 0&&(l.z=-n);break;default:return null}return l}function js(t){var e={x:t[0],y:t[1]};return t.length>2&&(e.z=t[2]),t.length>3&&(e.m=t[3]),e}function $r(t){Ri(t.x),Ri(t.y)}function Ri(t){if(typeof Number.isFinite=="function"){if(Number.isFinite(t))return;throw new TypeError("coordinates must be finite numbers")}if(typeof t!="number"||t!==t||!isFinite(t))throw new TypeError("coordinates must be finite numbers")}function Zr(t,e){return(t.datum.datum_type===yt||t.datum.datum_type===pt||t.datum.datum_type===At)&&e.datumCode!=="WGS84"||(e.datum.datum_type===yt||e.datum.datum_type===pt||e.datum.datum_type===At)&&t.datumCode!=="WGS84"}function ye(t,e,i,a){var o;Array.isArray(i)?i=js(i):i={x:i.x,y:i.y,z:i.z,m:i.m};var s=i.z!==void 0;if($r(i),t.datum&&e.datum&&Zr(t,e)&&(o=new X("WGS84"),i=ye(t,o,i,a),t=o),a&&t.axis!=="enu"&&(i=Ti(t,!1,i)),t.projName==="longlat")i={x:i.x*R,y:i.y*R,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),!i)return;if(t.from_greenwich&&(i.x+=t.from_greenwich),i=Dr(t.datum,e.datum,i),!!i)return i=i,e.from_greenwich&&(i={x:i.x-e.from_greenwich,y:i.y,z:i.z||0}),e.projName==="longlat"?i={x:i.x*Z,y:i.y*Z,z:i.z||0}:(i=e.forward(i),e.to_meter&&(i={x:i.x/e.to_meter,y:i.y/e.to_meter,z:i.z||0})),a&&e.axis!=="enu"?Ti(e,!0,i):(i&&!s&&delete i.z,i)}var ji=X("WGS84");function Ne(t,e,i,a){var o,s,n;return Array.isArray(i)?(o=ye(t,e,i,a)||{x:NaN,y:NaN},i.length>2?typeof t.name<"u"&&t.name==="geocent"||typeof e.name<"u"&&e.name==="geocent"?typeof o.z=="number"?[o.x,o.y,o.z].concat(i.slice(3)):[o.x,o.y,i[2]].concat(i.slice(3)):[o.x,o.y].concat(i.slice(2)):[o.x,o.y]):(s=ye(t,e,i,a),n=Object.keys(i),n.length===2||n.forEach(function(r){if(typeof t.name<"u"&&t.name==="geocent"||typeof e.name<"u"&&e.name==="geocent"){if(r==="x"||r==="y"||r==="z")return}else if(r==="x"||r==="y")return;s[r]=i[r]}),s)}function he(t){return t instanceof X?t:typeof t=="object"&&"oProj"in t?t.oProj:X(t)}function Hr(t,e,i){var a,o,s=!1,n;return typeof e>"u"?(o=he(t),a=ji,s=!0):(typeof e.x<"u"||Array.isArray(e))&&(i=e,o=he(t),a=ji,s=!0),a||(a=he(t)),o||(o=he(e)),i?Ne(a,o,i):(n={forward:function(r,h){return Ne(a,o,r,h)},inverse:function(r,h){return Ne(o,a,r,h)}},s&&(n.oProj=o),n)}var ki=6,ks="AJSAJS",Bs="AFAFAF",Gt=65,F=73,J=79,qt=86,Dt=90;const Wr={forward:zs,inverse:Vr,toPoint:Us};function zs(t,e){return e=e||5,Xr(Qr({lat:t[1],lon:t[0]}),e)}function Vr(t){var e=_i(Ds(t.toUpperCase()));return e.lat&&e.lon?[e.lon,e.lat,e.lon,e.lat]:[e.left,e.bottom,e.right,e.top]}function Us(t){var e=_i(Ds(t.toUpperCase()));return e.lat&&e.lon?[e.lon,e.lat]:[(e.left+e.right)/2,(e.top+e.bottom)/2]}function Ie(t){return t*(Math.PI/180)}function Bi(t){return 180*(t/Math.PI)}function Qr(t){var e=t.lat,i=t.lon,a=6378137,o=.00669438,s=.9996,n,r,h,l,f,u,c,_=Ie(e),d=Ie(i),v,g;g=Math.floor((i+180)/6)+1,i===180&&(g=60),e>=56&&e<64&&i>=3&&i<12&&(g=32),e>=72&&e<84&&(i>=0&&i<9?g=31:i>=9&&i<21?g=33:i>=21&&i<33?g=35:i>=33&&i<42&&(g=37)),n=(g-1)*6-180+3,v=Ie(n),r=o/(1-o),h=a/Math.sqrt(1-o*Math.sin(_)*Math.sin(_)),l=Math.tan(_)*Math.tan(_),f=r*Math.cos(_)*Math.cos(_),u=Math.cos(_)*(d-v),c=a
vendor: 65,791 bytes, lines 2-5
2*((1-o/4-3*o*o/64-5*o*o*o/256)*_-(3*o/8+3*o*o/32+45*o*o*o/1024)*Math.sin(2*_)+(15*o*o/256+45*o*o*o/1024)*Math.sin(4*_)-35*o*o*o/3072*Math.sin(6*_));var m=s*h*(u+(1-l+f)*u*u*u/6+(5-18*l+l*l+72*f-58*r)*u*u*u*u*u/120)+5e5,p=s*(c+h*Math.tan(_)*(u*u/2+(5-l+9*f+4*f*f)*u*u*u*u/24+(61-58*l+l*l+600*f-330*r)*u*u*u*u*u*u/720));return e<0&&(p+=1e7),{northing:Math.round(p),easting:Math.round(m),zoneNumber:g,zoneLetter:Jr(e)}}function _i(t){var e=t.northing,i=t.easting,a=t.zoneLetter,o=t.zoneNumber;if(o<0||o>60)return null;var s=.9996,n=6378137,r=.00669438,h,l=(1-Math.sqrt(1-r))/(1+Math.sqrt(1-r)),f,u,c,_,d,v,g,m,p,b=i-5e5,E=e;a<"N"&&(E-=1e7),g=(o-1)*6-180+3,h=r/(1-r),v=E/s,m=v/(n*(1-r/4-3*r*r/64-5*r*r*r/256)),p=m+(3*l/2-27*l*l*l/32)*Math.sin(2*m)+(21*l*l/16-55*l*l*l*l/32)*Math.sin(4*m)+151*l*l*l/96*Math.sin(6*m),f=n/Math.sqrt(1-r*Math.sin(p)*Math.sin(p)),u=Math.tan(p)*Math.tan(p),c=h*Math.cos(p)*Math.cos(p),_=n*(1-r)/Math.pow(1-r*Math.sin(p)*Math.sin(p),1.5),d=b/(f*s);var w=p-f*Math.tan(p)/_*(d*d/2-(5+3*u+10*c-4*c*c-9*h)*d*d*d*d/24+(61+90*u+298*c+45*u*u-252*h-3*c*c)*d*d*d*d*d*d/720);w=Bi(w);var x=(d-(1+2*u+c)*d*d*d/6+(5-2*c+28*u-3*c*c+8*h+24*u*u)*d*d*d*d*d/120)/Math.cos(p);x=g+Bi(x);var O;if(t.accuracy){var T=_i({northing:t.northing+t.accuracy,easting:t.easting+t.accuracy,zoneLetter:t.zoneLetter,zoneNumber:t.zoneNumber});O={top:T.lat,right:T.lon,bottom:w,left:x}}else O={lat:w,lon:x};return O}function Jr(t){var e="Z";return 84>=t&&t>=72?e="X":72>t&&t>=64?e="W":64>t&&t>=56?e="V":56>t&&t>=48?e="U":48>t&&t>=40?e="T":40>t&&t>=32?e="S":32>t&&t>=24?e="R":24>t&&t>=16?e="Q":16>t&&t>=8?e="P":8>t&&t>=0?e="N":0>t&&t>=-8?e="M":-8>t&&t>=-16?e="L":-16>t&&t>=-24?e="K":-24>t&&t>=-32?e="J":-32>t&&t>=-40?e="H":-40>t&&t>=-48?e="G":-48>t&&t>=-56?e="F":-56>t&&t>=-64?e="E":-64>t&&t>=-72?e="D":-72>t&&t>=-80&&(e="C"),e}function Xr(t,e){var i="00000"+t.easting,a="00000"+t.northing;return t.zoneNumber+t.zoneLetter+Kr(t.easting,t.northing,t.zoneNumber)+i.substr(i.length-5,e)+a.substr(a.length-5,e)}function Kr(t,e,i){var a=qs(i),o=Math.floor(t/1e5),s=Math.floor(e/1e5)%20;return Yr(o,s,a)}function qs(t){var e=t%ki;return e===0&&(e=ki),e}function Yr(t,e,i){var a=i-1,o=ks.charCodeAt(a),s=Bs.charCodeAt(a),n=o+t-1,r=s+e,h=!1;n>Dt&&(n=n-Dt+Gt-1,h=!0),(n===F||o<F&&n>F||(n>F||o<F)&&h)&&n++,(n===J||o<J&&n>J||(n>J||o<J)&&h)&&(n++,n===F&&n++),n>Dt&&(n=n-Dt+Gt-1),r>qt?(r=r-qt+Gt-1,h=!0):h=!1,(r===F||s<F&&r>F||(r>F||s<F)&&h)&&r++,(r===J||s<J&&r>J||(r>J||s<J)&&h)&&(r++,r===F&&r++),r>qt&&(r=r-qt+Gt-1);var l=String.fromCharCode(n)+String.fromCharCode(r);return l}function Ds(t){if(t&&t.length===0)throw"MGRSPoint coverting from nothing";for(var e=t.length,i=null,a="",o,s=0;!/[A-Z]/.test(o=t.charAt(s));){if(s>=2)throw"MGRSPoint bad conversion from: "+t;a+=o,s++}var n=parseInt(a,10);if(s===0||s+3>e)throw"MGRSPoint bad conversion from: "+t;var r=t.charAt(s++);if(r<="A"||r==="B"||r==="Y"||r>="Z"||r==="I"||r==="O")throw"MGRSPoint zone letter "+r+" not handled: "+t;i=t.substring(s,s+=2);for(var h=qs(n),l=tn(i.charAt(0),h),f=en(i.charAt(1),h);f<sn(r);)f+=2e6;var u=e-s;if(u%2!==0)throw`MGRSPoint has to have an even number 3of digits after the zone letter and two 100km letters - front 4half for easting meters, second half for 5northing meters`+t;var c=u/2,_=0,d=0,v,g,m,p,b;return c>0&&(v=1e5/Math.pow(10,c),g=t.substring(s,s+c),_=parseFloat(g)*v,m=t.substring(s+c),d=parseFloat(m)*v),p=_+l,b=d+f,{easting:p,northing:b,zoneLetter:r,zoneNumber:n,accuracy:v}}function tn(t,e){for(var i=ks.charCodeAt(e-1),a=1e5,o=!1;i!==t.charCodeAt(0);){if(i++,i===F&&i++,i===J&&i++,i>Dt){if(o)throw"Bad character: "+t;i=Gt,o=!0}a+=1e5}return a}function en(t,e){if(t>"V")throw"MGRSPoint given invalid Northing "+t;for(var i=Bs.charCodeAt(e-1),a=0,o=!1;i!==t.charCodeAt(0);){if(i++,i===F&&i++,i===J&&i++,i>qt){if(o)throw"Bad character: "+t;i=Gt,o=!0}a+=1e5}return a}function sn(t){var e;switch(t){case"C":e=11e5;break;case"D":e=2e6;break;case"E":e=28e5;break;case"F":e=37e5;break;case"G":e=46e5;break;case"H":e=55e5;break;case"J":e=64e5;break;case"K":e=73e5;break;case"L":e=82e5;break;case"M":e=91e5;break;case"N":e=0;break;case"P":e=8e5;break;case"Q":e=17e5;break;case"R":e=26e5;break;case"S":e=35e5;break;case"T":e=44e5;break;case"U":e=53e5;break;case"V":e=62e5;break;case"W":e=7e6;break;case"X":e=79e5;break;default:e=-1}if(e>=0)return e;throw"Invalid zone letter: "+t}function Nt(t,e,i){if(!(this instanceof Nt))return new Nt(t,e,i);if(Array.isArray(t))this.x=t[0],this.y=t[1],this.z=t[2]||0;else if(typeof t=="object")this.x=t.x,this.y=t.y,this.z=t.z||0;else if(typeof t=="string"&&typeof e>"u"){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=e,this.z=i||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}Nt.fromMGRS=function(t){return new Nt(Us(t))};Nt.prototype.toMGRS=function(t){return zs([this.x,this.y],t)};var an=1,rn=.25,zi=.046875,Ui=.01953125,qi=.01068115234375,nn=.75,on=.46875,hn=.013020833333333334,ln=.007120768229166667,un=.3645833333333333,cn=.005696614583333333,fn=.3076171875;function di(t){var e=[];e[0]=an-t*(rn+t*(zi+t*(Ui+t*qi))),e[1]=t*(nn-t*(zi+t*(Ui+t*qi)));var i=t*t;return e[2]=i*(on-t*(hn+t*ln)),i*=t,e[3]=i*(un-t*cn),e[4]=i*t*fn,e}function kt(t,e,i,a){return i*=e,e*=e,a[0]*t-i*(a[1]+e*(a[2]+e*(a[3]+e*a[4])))}var _n=20;function vi(t,e,i){for(var a=1/(1-e),o=t,s=_n;s;--s){var n=Math.sin(o),r=1-e*n*n;if(r=(kt(o,n,Math.cos(o),i)-t)*(r*Math.sqrt(r))*a,o-=r,Math.abs(r)<M)return o}return o}function dn(){this.x0=this.x0!==void 0?this.x0:0,this.y0=this.y0!==void 0?this.y0:0,this.long0=this.long0!==void 0?this.long0:0,this.lat0=this.lat0!==void 0?this.lat0:0,this.es&&(this.en=di(this.es),this.ml0=kt(this.lat0,Math.sin(this.lat0),Math.cos(this.lat0),this.en))}function vn(t){var e=t.x,i=t.y,a=S(e-this.long0,this.over),o,s,n,r=Math.sin(i),h=Math.cos(i);if(this.es){var f=h*a,u=Math.pow(f,2),c=this.ep2*Math.pow(h,2),_=Math.pow(c,2),d=Math.abs(h)>M?Math.tan(i):0,v=Math.pow(d,2),g=Math.pow(v,2);o=1-this.es*Math.pow(r,2),f=f/Math.sqrt(o);var m=kt(i,r,h,this.en);s=this.a*(this.k0*f*(1+u/6*(1-v+c+u/20*(5-18*v+g+14*c-58*v*c+u/42*(61+179*g-g*v-479*v)))))+this.x0,n=this.a*(this.k0*(m-this.ml0+r*a*f/2*(1+u/12*(5-v+9*c+4*_+u/30*(61+g-58*v+270*c-330*v*c+u/56*(1385+543*g-g*v-3111*v))))))+this.y0}else{var l=h*Math.sin(a);if(Math.abs(Math.abs(l)-1)<M)return 93;if(s=.5*this.a*this.k0*Math.log((1+l)/(1-l))+this.x0,n=h*Math.cos(a)/Math.sqrt(1-Math.pow(l,2)),l=Math.abs(n),l>=1){if(l-1>M)return 93;n=0}else n=Math.acos(n);i<0&&(n=-n),n=this.a*this.k0*(n-this.lat0)+this.y0}return t.x=s,t.y=n,t}function gn(t){var e,i,a,o,s=(t.x-this.x0)*(1/this.a),n=(t.y-this.y0)*(1/this.a);if(this.es)if(e=this.ml0+n/this.k0,i=vi(e,this.es,this.en),Math.abs(i)<y){var u=Math.sin(i),c=Math.cos(i),_=Math.abs(c)>M?Math.tan(i):0,d=this.ep2*Math.pow(c,2),v=Math.pow(d,2),g=Math.pow(_,2),m=Math.pow(g,2);e=1-this.es*Math.pow(u,2);var p=s*Math.sqrt(e)/this.k0,b=Math.pow(p,2);e=e*_,a=i-e*b/(1-this.es)*.5*(1-b/12*(5+3*g-9*d*g+d-4*v-b/30*(61+90*g-252*d*g+45*m+46*d-b/56*(1385+3633*g+4095*m+1574*m*g)))),o=S(this.long0+p*(1-b/6*(1+2*g+d-b/20*(5+28*g+24*m+8*d*g+6*d-b/42*(61+662*g+1320*m+720*m*g))))/c,this.over)}else a=y*ee(n),o=0;else{var r=Math.exp(s/this.k0),h=.5*(r-1/r),l=this.lat0+n/this.k0,f=Math.cos(l);e=Math.sqrt((1-Math.pow(f,2))/(1+Math.pow(h,2))),a=Math.asin(e),n<0&&(a=-a),h===0&&f===0?o=0:o=S(Math.atan2(h,f)+this.long0,this.over)}return t.x=o,t.y=a,t}var mn=["Fast_Transverse_Mercator","Fast Transverse Mercator"];const ce={init:dn,forward:vn,inverse:gn,names:mn};function Fs(t){var e=Math.exp(t);return e=(e-1/e)/2,e}function $(t,e){t=Math.abs(t),e=Math.abs(e);var i=Math.max(t,e),a=Math.min(t,e)/(i||1);return i*Math.sqrt(1+Math.pow(a,2))}function yn(t){var e=1+t,i=e-1;return i===0?t:t*Math.log(e)/i}function pn(t){var e=Math.abs(t);return e=yn(e*(1+e/($(1,e)+1))),t<0?-e:e}function gi(t,e){for(var i=2*Math.cos(2*e),a=t.length-1,o=t[a],s=0,n;--a>=0;)n=-s+i*o+t[a],s=o,o=n;return e+n*Math.sin(2*e)}function Mn(t,e){for(var i=2*Math.cos(e),a=t.length-1,o=t[a],s=0,n;--a>=0;)n=-s+i*o+t[a],s=o,o=n;return Math.sin(e)*n}function Sn(t){var e=Math.exp(t);return e=(e+1/e)/2,e}function $s(t,e,i){for(var a=Math.sin(e),o=Math.cos(e),s=Fs(i),n=Sn(i),r=2*o*n,h=-2*a*s,l=t.length-1,f=t[l],u=0,c=0,_=0,d,v;--l>=0;)d=c,v=u,c=f,u=_,f=-d+r*c-h*u+t[l],_=-v+h*c+r*u;return r=a*n,h=o*s,[r*f-h*_,r*_+h*f]}function bn(){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&&(ce.init.apply(this),this.forward=ce.forward,this.inverse=ce.inverse),this.x0=this.x0!==void 0?this.x0:0,this.y0=this.y0!==void 0?this.y0:0,this.long0=this.long0!==void 0?this.long0:0,this.lat0=this.lat0!==void 0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var t=this.es/(1+Math.sqrt(1-this.es)),e=t/(2-t),i=e;this.cgb[0]=e*(2+e*(-2/3+e*(-2+e*(116/45+e*(26/45+e*(-2854/675)))))),this.cbg[0]=e*(-2+e*(2/3+e*(4/3+e*(-82/45+e*(32/45+e*(4642/4725)))))),i=i*e,this.cgb[1]=i*(7/3+e*(-8/5+e*(-227/45+e*(2704/315+e*(2323/945))))),this.cbg[1]=i*(5/3+e*(-16/15+e*(-13/9+e*(904/315+e*(-1522/945))))),i=i*e,this.cgb[2]=i*(56/15+e*(-136/35+e*(-1262/105+e*(73814/2835)))),this.cbg[2]=i*(-26/15+e*(34/21+e*(8/5+e*(-12686/2835)))),i=i*e,this.cgb[3]=i*(4279/630+e*(-332/35+e*(-399572/14175))),this.cbg[3]=i*(1237/630+e*(-12/5+e*(-24832/14175))),i=i*e,this.cgb[4]=i*(4174/315+e*(-144838/6237)),this.cbg[4]=i*(-734/315+e*(109598/31185)),i=i*e,this.cgb[5]=i*(601676/22275),this.cbg[5]=i*(444337/155925),i=Math.pow(e,2),this.Qn=this.k0/(1+e)*(1+i*(1/4+i*(1/64+i/256))),this.utg[0]=e*(-.5+e*(2/3+e*(-37/96+e*(1/360+e*(81/512+e*(-96199/604800)))))),this.gtu[0]=e*(.5+e*(-2/3+e*(5/16+e*(41/180+e*(-127/288+e*(7891/37800)))))),this.utg[1]=i*(-1/48+e*(-1/15+e*(437/1440+e*(-46/105+e*(1118711/3870720))))),this.gtu[1]=i*(13/48+e*(-3/5+e*(557/1440+e*(281/630+e*(-1983433/1935360))))),i=i*e,this.utg[2]=i*(-17/480+e*(37/840+e*(209/4480+e*(-5569/90720)))),this.gtu[2]=i*(61/240+e*(-103/140+e*(15061/26880+e*(167603/181440)))),i=i*e,this.utg[3]=i*(-4397/161280+e*(11/504+e*(830251/7257600))),this.gtu[3]=i*(49561/161280+e*(-179/168+e*(6601661/7257600))),i=i*e,this.utg[4]=i*(-4583/161280+e*(108847/3991680)),this.gtu[4]=i*(34729/80640+e*(-3418889/1995840)),i=i*e,this.utg[5]=i*(-20648693/638668800),this.gtu[5]=i*(212378941/319334400);var a=gi(this.cbg,this.lat0);this.Zb=-this.Qn*(a+Mn(this.gtu,2*a))}function Pn(t){var e=S(t.x-this.long0,this.over),i=t.y;i=gi(this.cbg,i);var a=Math.sin(i),o=Math.cos(i),s=Math.sin(e),n=Math.cos(e);i=Math.atan2(a,n*o),e=Math.atan2(s*o,$(a,o*n)),e=pn(Math.tan(e));var r=$s(this.gtu,2*i,2*e);i=i+r[0],e=e+r[1];var h,l;return Math.abs(e)<=2.623395162778?(h=this.a*(this.Qn*e)+this.x0,l=this.a*(this.Qn*i+this.Zb)+this.y0):(h=1/0,l=1/0),t.x=h,t.y=l,t}function wn(t){var e=(t.x-this.x0)*(1/this.a),i=(t.y-this.y0)*(1/this.a);i=(i-this.Zb)/this.Qn,e=e/this.Qn;var a,o;if(Math.abs(e)<=2.623395162778){var s=$s(this.utg,2*i,2*e);i=i+s[0],e=e+s[1],e=Math.atan(Fs(e));var n=Math.sin(i),r=Math.cos(i),h=Math.sin(e),l=Math.cos(e);i=Math.atan2(n*l,$(h,l*r)),e=Math.atan2(h,l*r),a=S(e+this.long0,this.over),o=gi(this.cgb,i)}else a=1/0,o=1/0;return t.x=a,t.y=o,t}var En=["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc","Transverse_Mercator","Transverse Mercator","Gauss Kruger","Gauss_Kruger","tmerc"];const fe={init:bn,forward:Pn,inverse:wn,names:En};function xn(t,e){if(t===void 0){if(t=Math.floor((S(e)+Math.PI)*30/Math.PI)+1,t<0)return 0;if(t>60)return 60}return t}var Ln="etmerc";function Gn(){var t=xn(this.zone,this.long0);if(t===void 0)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(t)-183)*R,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,fe.init.apply(this),this.forward=fe.forward,this.inverse=fe.inverse}var Cn=["Universal Transverse Mercator System","utm"];const An={init:Gn,names:Cn,dependsOn:Ln};function mi(t,e){return Math.pow((1-t)/(1+t),e)}var On=20;function Nn(){var t=Math.sin(this.lat0),e=Math.cos(this.lat0);e*=e,this.rc=Math.sqrt(1-this.es)/(1-this.es*t*t),this.C=Math.sqrt(1+this.es*e*e/(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)*mi(this.e*t,this.ratexp))}function In(t){var e=t.x,i=t.y;return t.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*i+C),this.C)*mi(this.e*Math.sin(i),this.ratexp))-y,t.x=this.C*e,t}function Tn(t){for(var e=1e-14,i=t.x/this.C,a=t.y,o=Math.pow(Math.tan(.5*a+C)/this.K,1/this.C),s=On;s>0&&(a=2*Math.atan(o*mi(this.e*Math.sin(t.y),-.5*this.e))-y,!(Math.abs(a-t.y)<e));--s)t.y=a;return s?(t.x=i,t.y=a,t):null}const yi={init:Nn,forward:In,inverse:Tn};function Rn(){yi.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"))}function jn(t){var e,i,a,o;return t.x=S(t.x-this.long0,this.over),yi.forward.apply(this,[t]),e=Math.sin(t.y),i=Math.cos(t.y),a=Math.cos(t.x),o=this.k0*this.R2/(1+this.sinc0*e+this.cosc0*i*a),t.x=o*i*Math.sin(t.x),t.y=o*(this.cosc0*e-this.sinc0*i*a),t.x=this.a*t.x+this.x0,t.y=this.a*t.y+this.y0,t}function kn(t){var e,i,a,o,s;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,s=$(t.x,t.y)){var n=2*Math.atan2(s,this.R2);e=Math.sin(n),i=Math.cos(n),o=Math.asin(i*this.sinc0+t.y*e*this.cosc0/s),a=Math.atan2(t.x*e,s*this.cosc0*i-t.y*this.sinc0*e)}else o=this.phic0,a=0;return t.x=a,t.y=o,yi.inverse.apply(this,[t]),t.x=S(t.x+this.long0,this.over),t}var Bn=["Stereographic_North_Pole","Oblique_Stereographic","sterea","Oblique Stereographic Alternative","Double_Stereographic"];const zn={init:Rn,forward:jn,inverse:kn,names:Bn};function pi(t,e,i){return e*=i,Math.tan(.5*(y+t))*Math.pow((1-e)/(1+e),.5*i)}function Un(){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?this.k0===1&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=M&&(this.k0=.5*(1+ee(this.lat0)*Math.sin(this.lat_ts))):(Math.abs(this.coslat0)<=M&&(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)),this.k0===1&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=M&&Math.abs(Math.cos(this.lat_ts))>M&&(this.k0=.5*this.cons*at(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/tt(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=at(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(pi(this.lat0,this.sinlat0,this.e))-y,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))}function qn(t){var e=t.x,i=t.y,a=Math.sin(i),o=Math.cos(i),s,n,r,h,l,f,u=S(e-this.long0,this.over);return Math.abs(Math.abs(e-this.long0)-Math.PI)<=M&&Math.abs(i+this.lat0)<=M?(t.x=NaN,t.y=NaN,t):this.sphere?(s=2*this.k0/(1+this.sinlat0*a+this.coslat0*o*Math.cos(u)),t.x=this.a*s*o*Math.sin(u)+this.x0,t.y=this.a*s*(this.coslat0*a-this.sinlat0*o*Math.cos(u))+this.y0,t):(n=2*Math.atan(pi(i,a,this.e))-y,h=Math.cos(n),r=Math.sin(n),Math.abs(this.coslat0)<=M?(l=tt(this.e,i*this.con,this.con*a),f=2*this.a*this.k0*l/this.cons,t.x=this.x0+f*Math.sin(e-this.long0),t.y=this.y0-this.con*f*Math.cos(e-this.long0),t):(Math.abs(this.sinlat0)<M?(s=2*this.a*this.k0/(1+h*Math.cos(u)),t.y=s*r):(s=2*this.a*this.k0*this.ms1/(this.cosX0*(1+this.sinX0*r+this.cosX0*h*Math.cos(u))),t.y=s*(this.cosX0*r-this.sinX0*h*Math.cos(u))+this.y0),t.x=s*h*Math.sin(u)+this.x0,t))}function Dn(t){t.x-=this.x0,t.y-=this.y0;var e,i,a,o,s,n=Math.sqrt(t.x*t.x+t.y*t.y);if(this.sphere){var r=2*Math.atan(n/(2*this.a*this.k0));return e=this.long0,i=this.lat0,n<=M?(t.x=e,t.y=i,t):(i=Math.asin(Math.cos(r)*this.sinlat0+t.y*Math.sin(r)*this.coslat0/n),Math.abs(this.coslat0)<M?this.lat0>0?e=S(this.long0+Math.atan2(t.x,-1*t.y),this.over):e=S(this.long0+Math.atan2(t.x,t.y),this.over):e=S(this.long0+Math.atan2(t.x*Math.sin(r),n*this.coslat0*Math.cos(r)-t.y*this.sinlat0*Math.sin(r)),this.over),t.x=e,t.y=i,t)}else if(Math.abs(this.coslat0)<=M){if(n<=M)return i=this.lat0,e=this.long0,t.x=e,t.y=i,t;t.x*=this.con,t.y*=this.con,a=n*this.cons/(2*this.a*this.k0),i=this.con*Xt(this.e,a),e=this.con*S(this.con*this.long0+Math.atan2(t.x,-1*t.y),this.over)}else o=2*Math.atan(n*this.cosX0/(2*this.a*this.k0*this.ms1)),e=this.long0,n<=M?s=this.X0:(s=Math.asin(Math.cos(o)*this.sinX0+t.y*Math.sin(o)*this.cosX0/n),e=S(this.long0+Math.atan2(t.x*Math.sin(o),n*this.cosX0*Math.cos(o)-t.y*this.sinX0*Math.sin(o)),this.over)),i=-1*Xt(this.e,Math.tan(.5*(y+s)));return t.x=e,t.y=i,t}var Fn=["stere","Stereographic_South_Pole","Polar_Stereographic_variant_A","Polar_Stereographic_variant_B","Polar_Stereographic"];const $n={init:Un,forward:qn,inverse:Dn,names:Fn,ssfn_:pi};function Zn(){var t=this.lat0;this.lambda0=this.long0;var e=Math.sin(t),i=this.a,a=this.rf,o=1/a,s=2*o-Math.pow(o,2),n=this.e=Math.sqrt(s);this.R=this.k0*i*Math.sqrt(1-s)/(1-s*Math.pow(e,2)),this.alpha=Math.sqrt(1+s/(1-s)*Math.pow(Math.cos(t),4)),this.b0=Math.asin(e/this.alpha);var r=Math.log(Math.tan(Math.PI/4+this.b0/2)),h=Math.log(Math.tan(Math.PI/4+t/2)),l=Math.log((1+n*e)/(1-n*e));this.K=r-this.alpha*h+this.alpha*n/2*l}function Hn(t){var e=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*(e+i)+this.K,o=2*(Math.atan(Math.exp(a))-Math.PI/4),s=this.alpha*(t.x-this.lambda0),n=Math.atan(Math.sin(s)/(Math.sin(this.b0)*Math.tan(o)+Math.cos(this.b0)*Math.cos(s))),r=Math.asin(Math.cos(this.b0)*Math.sin(o)-Math.sin(this.b0)*Math.cos(o)*Math.cos(s));return t.y=this.R/2*Math.log((1+Math.sin(r))/(1-Math.sin(r)))+this.y0,t.x=this.R*n+this.x0,t}function Wn(t){for(var e=t.x-this.x0,i=t.y-this.y0,a=e/this.R,o=2*(Math.atan(Math.exp(i/this.R))-Math.PI/4),s=Math.asin(Math.cos(this.b0)*Math.sin(o)+Math.sin(this.b0)*Math.cos(o)*Math.cos(a)),n=Math.atan(Math.sin(a)/(Math.cos(this.b0)*Math.cos(a)-Math.sin(this.b0)*Math.tan(o))),r=this.lambda0+n/this.alpha,h=0,l=s,f=-1e3,u=0;Math.abs(l-f)>1e-7;){if(++u>20)return;h=1/this.alpha*(Math.log(Math.tan(Math.PI/4+s/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(l))/2)),f=l,l=2*Math.atan(Math.exp(h))-Math.PI/2}return t.x=r,t.y=l,t}var Vn=["somerc"];const Qn={init:Zn,forward:Hn,inverse:Wn,names:Vn};var Et=1e-7;function Jn(t){var e=["Hotine_Oblique_Mercator","Hotine_Oblique_Mercator_variant_A","Hotine_Oblique_Mercator_Azimuth_Natural_Origin"],i=typeof t.projName=="object"?Object.keys(t.projName)[0]:t.projName;return"no_uoff"in t||"no_off"in t||e.indexOf(i)!==-1||e.indexOf(Ns(i))!==-1}function Xn(){var t,e,i,a,o,s,n,r,h,l,f=0,u,c=0,_=0,d=0,v=0,g=0,m=0;this.no_off=Jn(this),this.no_rot="no_rot"in this;var p=!1;"alpha"in this&&(p=!0);var b=!1;if("rectified_grid_angle"in this&&(b=!0),p&&(m=this.alpha),b&&(f=this.rectified_grid_angle),p||b)c=this.longc;else if(_=this.long1,v=this.lat1,d=this.long2,g=this.lat2,Math.abs(v-g)<=Et||(t=Math.abs(v))<=Et||Math.abs(t-y)<=Et||Math.abs(Math.abs(this.lat0)-y)<=Et||Math.abs(Math.abs(g)-y)<=Et)throw new Error;var E=1-this.es;e=Math.sqrt(E),Math.abs(this.lat0)>M?(r=Math.sin(this.lat0),i=Math.cos(this.lat0),t=1-this.es*r*r,this.B=i*i,this.B=Math.sqrt(1+this.es*this.B*this.B/E),this.A=this.B*this.k0*e/t,a=this.B*e/(i*Math.sqrt(t)),o=a*a-1,o<=0?o=0:(o=Math.sqrt(o),this.lat0<0&&(o=-o)),this.E=o+=a,this.E*=Math.pow(tt(this.e,this.lat0,r),this.B)):(this.B=1/e,this.A=this.k0,this.E=a=o=1),p||b?(p?(u=Math.asin(Math.sin(m)/a),b||(f=m)):(u=f,m=Math.asin(a*Math.sin(u))),this.lam0=c-Math.asin(.5*(o-1/o)*Math.tan(u))/this.B):(s=Math.pow(tt(this.e,v,Math.sin(v)),this.B),n=Math.pow(tt(this.e,g,Math.sin(g)),this.B),o=this.E/s,h=(n-s)/(n+s),l=this.E*this.E,l=(l-n*s)/(l+n*s),t=_-d,t<-Math.PI?d-=Qt:t>Math.PI&&(d+=Qt),this.lam0=S(.5*(_+d)-Math.atan(l*Math.tan(.5*this.B*(_-d))/h)/this.B,this.over),u=Math.atan(2*Math.sin(this.B*S(_-this.lam0,this.over))/(o-1/o)),f=m=Math.asin(a*Math.sin(u))),this.singam=Math.sin(u),this.cosgam=Math.cos(u),this.sinrot=Math.sin(f),this.cosrot=Math.cos(f),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(m))),this.lat0<0&&(this.u_0=-this.u_0)),o=.5*u,this.v_pole_n=this.ArB*Math.log(Math.tan(C-o)),this.v_pole_s=this.ArB*Math.log(Math.tan(C+o))}function Kn(t){var e={},i,a,o,s,n,r,h,l;if(t.x=t.x-this.lam0,Math.abs(Math.abs(t.y)-y)>M){if(n=this.E/Math.pow(tt(this.e,t.y,Math.sin(t.y)),this.B),r=1/n,i=.5*(n-r),a=.5*(n+r),s=Math.sin(this.B*t.x),o=(i*this.singam-s*this.cosgam)/a,Math.abs(Math.abs(o)-1)<M)throw new Error;l=.5*this.ArB*Math.log((1-o)/(1+o)),r=Math.cos(this.B*t.x),Math.abs(r)<Et?h=this.A*t.x:h=this.ArB*Math.atan2(i*this.cosgam+s*this.singam,r)}else l=t.y>0?this.v_pole_n:this.v_pole_s,h=this.ArB*t.y;return this.no_rot?(e.x=h,e.y=l):(h-=this.u_0,e.x=l*this.cosrot+h*this.sinrot,e.y=h*this.cosrot-l*this.sinrot),e.x=this.a*e.x+this.x0,e.y=this.a*e.y+this.y0,e}function Yn(t){var e,i,a,o,s,n,r,h={};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,e=t.x):(i=t.x*this.cosrot-t.y*this.sinrot,e=t.y*this.cosrot+t.x*this.sinrot+this.u_0),a=Math.exp(-this.BrA*i),o=.5*(a-1/a),s=.5*(a+1/a),n=Math.sin(this.BrA*e),r=(n*this.cosgam+o*this.singam)/s,Math.abs(Math.abs(r)-1)<M)h.x=0,h.y=r<0?-y:y;else{if(h.y=this.E/Math.sqrt((1+r)/(1-r)),h.y=Xt(this.e,Math.pow(h.y,1/this.B)),h.y===1/0)throw new Error;h.x=-this.rB*Math.atan2(o*this.cosgam-n*this.singam,Math.cos(this.BrA*e))}return h.x+=this.lam0,h}var to=["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 eo={init:Xn,forward:Kn,inverse:Yn,names:to};function io(){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)<M)){var t=this.b/this.a;this.e=Math.sqrt(1-t*t);var e=Math.sin(this.lat1),i=Math.cos(this.lat1),a=at(this.e,e,i),o=tt(this.e,this.lat1,e),s=Math.sin(this.lat2),n=Math.cos(this.lat2),r=at(this.e,s,n),h=tt(this.e,this.lat2,s),l=Math.abs(Math.abs(this.lat0)-y)<M?0:tt(this.e,this.lat0,Math.sin(this.lat0));Math.abs(this.lat1-this.lat2)>M?this.ns=Math.log(a/r)/Math.log(o/h):this.ns=e,isNaN(this.ns)&&(this.ns=e),this.f0=a/(this.ns*Math.pow(o,this.ns)),this.rh=this.a*this.f0*Math.pow(l,this.ns),this.title||(this.title="Lambert Conformal Conic")}}function so(t){var e=t.x,i=t.y;Math.abs(2*Math.abs(i)-Math.PI)<=M&&(i=ee(i)*(y-2*M));var a=Math.abs(Math.abs(i)-y),o,s;if(a>M)o=tt(this.e,i,Math.sin(i)),s=this.a*this.f0*Math.pow(o,this.ns);else{if(a=i*this.ns,a<=0)return null;s=0}var n=this.ns*S(e-this.long0,this.over);return t.x=this.k0*(s*Math.sin(n))+this.x0,t.y=this.k0*(this.rh-s*Math.cos(n))+this.y0,t}function ao(t){var e,i,a,o,s,n=(t.x-this.x0)/this.k0,r=this.rh-(t.y-this.y0)/this.k0;this.ns>0?(e=Math.sqrt(n*n+r*r),i=1):(e=-Math.sqrt(n*n+r*r),i=-1);var h=0;if(e!==0&&(h=Math.atan2(i*n,i*r)),e!==0||this.ns>0){if(i=1/this.ns,a=Math.pow(e/(this.a*this.f0),i),o=Xt(this.e,a),o===-9999)return null}else o=-y;return s=S(h/this.ns+this.long0,this.over),t.x=s,t.y=o,t}var ro=["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 no={init:io,forward:so,inverse:ao,names:ro};function oo(){this.a=6377397155e-3,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.7417649320975901-.308341501185665),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}function ho(t){var e,i,a,o,s,n,r,h=t.x,l=t.y,f=S(h-this.long0,this.over);return e=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)/e)-this.s45),a=-f*this.alfa,o=Math.asin(Math.cos(this.ad)*Math.sin(i)+Math.sin(this.ad)*Math.cos(i)*Math.cos(a)),s=Math.asin(Math.cos(i)*Math.sin(a)/Math.cos(o)),n=this.n*s,r=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(o/2+this.s45),this.n),t.y=r*Math.cos(n)/1,t.x=r*Math.sin(n)/1,this.czech||(t.y*=-1,t.x*=-1),t}function lo(t){var e,i,a,o,s,n,r,h,l=t.x;t.x=t.y,t.y=l,this.czech||(t.y*=-1,t.x*=-1),n=Math.sqrt(t.x*t.x+t.y*t.y),s=Math.atan2(t.y,t.x),o=s/Math.sin(this.s0),a=2*(Math.atan(Math.pow(this.ro0/n,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),e=Math.asin(Math.cos(this.ad)*Math.sin(a)-Math.sin(this.ad)*Math.cos(a)*Math.cos(o)),i=Math.asin(Math.cos(a)*Math.sin(o)/Math.cos(e)),t.x=this.long0-i/this.alfa,r=e,h=0;var f=0;do t.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(e/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&&(h=1),r=t.y,f+=1;while(h===0&&f<15);return f>=15?null:t}var uo=["Krovak","krovak"];const co={init:oo,forward:ho,inverse:lo,names:uo};function D(t,e,i,a,o){return t*o-e*Math.sin(2*o)+i*Math.sin(4*o)-a*Math.sin(6*o)}function ie(t){return 1-.25*t*(1+t/16*(3+1.25*t))}function se(t){return .375*t*(1+.25*t*(1+.46875*t))}function ae(t){return .05859375*t*t*(1+.75*t)}function re(t){return t*t*t*(35/3072)}function Mi(t,e,i){var a=e*i;return t/Math.sqrt(1-a*a)}function gt(t){return Math.abs(t)<y?t:t-ee(t)*Math.PI}function pe(t,e,i,a,o){var s,n;s=t/e;for(var r=0;r<15;r++)if(n=(t-(e*s-i*Math.sin(2*s)+a*Math.sin(4*s)-o*Math.sin(6*s)))/(e-2*i*Math.cos(2*s)+4*a*Math.cos(4*s)-6*o*Math.cos(6*s)),s+=n,Math.abs(n)<=1e-10)return s;return NaN}function fo(){this.sphere||(this.e0=ie(this.es),this.e1=se(this.es),this.e2=ae(this.es),this.e3=re(this.es),this.ml0=this.a*D(this.e0,this.e1,this.e2,this.e3,this.lat0))}function _o(t){var e,i,a=t.x,o=t.y;if(a=S(a-this.long0,this.over),this.sphere)e=this.a*Math.asin(Math.cos(o)*Math.sin(a)),i=this.a*(Math.atan2(Math.tan(o),Math.cos(a))-this.lat0);else{var s=Math.sin(o),n=Math.cos(o),r=Mi(this.a,this.e,s),h=Math.tan(o)*Math.tan(o),l=a*Math.cos(o),f=l*l,u=this.es*n*n/(1-this.es),c=this.a*D(this.e0,this.e1,this.e2,this.e3,o);e=r*l*(1-f*h*(1/6-(8-h+8*u)*f/120)),i=c-this.ml0+r*s/n*f*(.5+(5-h+6*u)*f/24)}return t.x=e+this.x0,t.y=i+this.y0,t}function vo(t){t.x-=this.x0,t.y-=this.y0;var e=t.x/this.a,i=t.y/this.a,a,o;if(this.sphere){var s=i+this.lat0;a=Math.asin(Math.sin(s)*Math.cos(e)),o=Math.atan2(Math.tan(e),Math.cos(s))}else{var n=this.ml0/this.a+i,r=pe(n,this.e0,this.e1,this.e2,this.e3);if(Math.abs(Math.abs(r)-y)<=M)return t.x=this.long0,t.y=y,i<0&&(t.y*=-1),t;var h=Mi(this.a,this.e,Math.sin(r)),l=h*h*h/this.a/this.a*(1-this.es),f=Math.pow(Math.tan(r),2),u=e*this.a/h,c=u*u;a=r-h*Math.tan(r)/l*u*u*(.5-(1+3*f)*u*u/24),o=u*(1-c*(f/3+(1+3*f)*f*c/15))/Math.cos(r)}return t.x=S(o+this.long0,this.over),t.y=gt(a),t}var go=["Cassini","Cassini_Soldner","cass"];const mo={init:fo,forward:_o,inverse:vo,names:go};function ct(t,e){var i;return t>1e-7?(i=t*e,(1-t*t)*(e/(1-i*i)-.5/t*Math.log((1-i)/(1+i)))):2*e}var ze=1,Ue=2,qe=3,_e=4;function yo(){var t=Math.abs(this.lat0);if(Math.abs(t-y)<M?this.mode=this.lat0<0?ze:Ue:Math.abs(t)<M?this.mode=qe:this.mode=_e,this.es>0){var e;switch(this.qp=ct(this.e,1),this.mmf=.5/(1-this.es),this.apa=Lo(this.es),this.mode){case Ue:this.dd=1;break;case ze:this.dd=1;break;case qe:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case _e:this.rq=Math.sqrt(.5*this.qp),e=Math.sin(this.lat0),this.sinb1=ct(this.e,e)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*e*e)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd;break}}else this.mode===_e&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))}function po(t){var e,i,a,o,s,n,r,h,l,f,u=t.x,c=t.y;if(u=S(u-this.long0,this.over),this.sphere){if(s=Math.sin(c),f=Math.cos(c),a=Math.cos(u),this.mode===this.OBLIQ||this.mode===this.EQUIT){if(i=this.mode===this.EQUIT?1+f*a:1+this.sinph0*s+this.cosph0*f*a,i<=M)return null;i=Math.sqrt(2/i),e=i*f*Math.sin(u),i*=this.mode===this.EQUIT?s:this.cosph0*s-this.sinph0*f*a}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(a=-a),Math.abs(c+this.lat0)<M)return null;i=C-c*.5,i=2*(this.mode===this.S_POLE?Math.cos(i):Math.sin(i)),e=i*Math.sin(u),i*=a}}else{switch(r=0,h=0,l=0,a=Math.cos(u),o=Math.sin(u),s=Math.sin(c),n=ct(this.e,s),(this.mode===this.OBLIQ||this.mode===this.EQUIT)&&(r=n/this.qp,h=Math.sqrt(1-r*r)),this.mode){case this.OBLIQ:l=1+this.sinb1*r+this.cosb1*h*a;break;case this.EQUIT:l=1+h*a;break;case this.N_POLE:l=y+c,n=this.qp-n;break;case this.S_POLE:l=c-y,n=this.qp+n;break}if(Math.abs(l)<M)return null;switch(this.mode){case this.OBLIQ:case this.EQUIT:l=Math.sqrt(2/l),this.mode===this.OBLIQ?i=this.ymf*l*(this.cosb1*r-this.sinb1*h*a):i=(l=Math.sqrt(2/(1+h*a)))*r*this.ymf,e=this.xmf*l*h*o;break;case this.N_POLE:case this.S_POLE:n>=0?(e=(l=Math.sqrt(n))*o,i=a*(this.mode===this.S_POLE?l:-l)):e=i=0;break}}return t.x=this.a*e+this.x0,t.y=this.a*i+this.y0,t}function Mo(t){t.x-=this.x0,t.y-=this.y0;var e=t.x/this.a,i=t.y/this.a,a,o,s,n,r,h,l;if(this.sphere){var f=0,u,c=0;if(u=Math.sqrt(e*e+i*i),o=u*.5,o>1)return null;switch(o=2*Math.asin(o),(this.mode===this.OBLIQ||this.mode===this.EQUIT)&&(c=Math.sin(o),f=Math.cos(o)),this.mode){case this.EQUIT:o=Math.abs(u)<=M?0:Math.asin(i*c/u),e*=c,i=f*u;break;case this.OBLIQ:o=Math.abs(u)<=M?this.lat0:Math.asin(f*this.sinph0+i*c*this.cosph0/u),e*=c*this.cosph0,i=(f-Math.sin(o)*this.sinph0)*u;break;case this.N_POLE:i=-i,o=y-o;break;case this.S_POLE:o-=y;break}a=i===0&&(this.mode===this.EQUIT||this.mode===this.OBLIQ)?0:Math.atan2(e,i)}else{if(l=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(e/=this.dd,i*=this.dd,h=Math.sqrt(e*e+i*i),h<M)return t.x=this.long0,t.y=this.lat0,t;n=2*Math.asin(.5*h/this.rq),s=Math.cos(n),e*=n=Math.sin(n),this.mode===this.OBLIQ?(l=s*this.sinb1+i*n*this.cosb1/h,r=this.qp*l,i=h*this.cosb1*s-i*this.sinb1*n):(l=i*n/h,r=this.qp*l,i=h*s)}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(i=-i),r=e*e+i*i,!r)return t.x=this.long0,t.y=this.lat0,t;l=1-r/this.qp,this.mode===this.S_POLE&&(l=-l)}a=Math.atan2(e,i),o=Go(Math.asin(l),this.apa)}return t.x=S(this.long0+a,this.over),t.y=o,t}var So=.3333333333333333,bo=.17222222222222222,Po=.10257936507936508,wo=.06388888888888888,Eo=.0664021164021164,xo=.016415012942191543;function Lo(t){var e,i=[];return i[0]=t*So,e=t*t,i[0]+=e*bo,i[1]=e*wo,e*=t,i[0]+=e*Po,i[1]+=e*Eo,i[2]=e*xo,i}function Go(t,e){var i=t+t;return t+e[0]*Math.sin(i)+e[1]*Math.sin(i+i)+e[2]*Math.sin(i+i+i)}var Co=["Lambert Azimuthal Equal Area","Lambert_Azimuthal_Equal_Area","laea"];const Ao={init:yo,forward:po,inverse:Mo,names:Co,S_POLE:ze,N_POLE:Ue,EQUIT:qe,OBLIQ:_e};function _t(t){return Math.abs(t)>1&&(t=t>1?1:-1),Math.asin(t)}function Oo(){Math.abs(this.lat1+this.lat2)<M||(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=at(this.e3,this.sin_po,this.cos_po),this.qs1=ct(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=at(this.e3,this.sin_po,this.cos_po),this.qs2=ct(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=ct(this.e3,this.sin_po),Math.abs(this.lat1-this.lat2)>M?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)}function No(t){var e=t.x,i=t.y;this.sin_phi=Math.sin(i),this.cos_phi=Math.cos(i);var a=ct(this.e3,this.sin_phi),o=this.a*Math.sqrt(this.c-this.ns0*a)/this.ns0,s=this.ns0*S(e-this.long0,this.over),n=o*Math.sin(s)+this.x0,r=this.rh-o*Math.cos(s)+this.y0;return t.x=n,t.y=r,t}function Io(t){var e,i,a,o,s,n;return t.x-=this.x0,t.y=this.rh-t.y+this.y0,this.ns0>=0?(e=Math.sqrt(t.x*t.x+t.y*t.y),a=1):(e=-Math.sqrt(t.x*t.x+t.y*t.y),a=-1),o=0,e!==0&&(o=Math.atan2(a*t.x,a*t.y)),a=e*this.ns0/this.a,this.sphere?n=Math.asin((this.c-a*a)/(2*this.ns0)):(i=(this.c-a*a)/this.ns0,n=this.phi1z(this.e3,i)),s=S(o/this.ns0+this.long0,this.over),t.x=s,t.y=n,t}function To(t,e){var i,a,o,s,n,r=_t(.5*e);if(t<M)return r;for(var h=t*t,l=1;l<=25;l++)if(i=Math.sin(r),a=Math.cos(r),o=t*i,s=1-o*o,n=.5*s*s/a*(e/(1-h)-i/s+.5/t*Math.log((1-o)/(1+o))),r=r+n,Math.abs(n)<=1e-7)return r;return null}var Ro=["Albers_Conic_Equal_Area","Albers_Equal_Area","Albers","aea"];const jo={init:Oo,forward:No,inverse:Io,names:Ro,phi1z:To};function ko(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0),this.infinity_dist=1e3*this.a,this.rc=1}function Bo(t){var e,i,a,o,s,n,r,h,l=t.x,f=t.y;return a=S(l-this.long0,this.over),e=Math.sin(f),i=Math.cos(f),o=Math.cos(a),n=this.sin_p14*e+this.cos_p14*i*o,s=1,n>0||Math.abs(n)<=M?(r=this.x0+this.a*s*i*Math.sin(a)/n,h=this.y0+this.a*s*(this.cos_p14*e-this.sin_p14*i*o)/n):(r=this.x0+this.infinity_dist*i*Math.sin(a),h=this.y0+this.infinity_dist*(this.cos_p14*e-this.sin_p14*i*o)),t.x=r,t.y=h,t}function zo(t){var e,i,a,o,s,n;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,(e=Math.sqrt(t.x*t.x+t.y*t.y))?(o=Math.atan2(e,this.rc),i=Math.sin(o),a=Math.cos(o),n=_t(a*this.sin_p14+t.y*i*this.cos_p14/e),s=Math.atan2(t.x*i,e*this.cos_p14*a-t.y*this.sin_p14*i),s=S(this.long0+s,this.over)):(n=this.phic0,s=0),t.x=s,t.y=n,t}var Uo=["gnom"];const qo={init:ko,forward:Bo,inverse:zo,names:Uo};function Do(t,e){var i=1-(1-t*t)/(2*t)*Math.log((1-t)/(1+t));if(Math.abs(Math.abs(e)-i)<1e-6)return e<0?-1*y:y;for(var a=Math.asin(.5*e),o,s,n,r,h=0;h<30;h++)if(s=Math.sin(a),n=Math.cos(a),r=t*s,o=Math.pow(1-r*r,2)/(2*n)*(e/(1-t*t)-s/(1-r*r)+.5/t*Math.log((1-r)/(1+r))),a+=o,Math.abs(o)<=1e-10)return a;return NaN}function Fo(){this.sphere||(this.k0=at(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))}function $o(t){var e=t.x,i=t.y,a,o,s=S(e-this.long0,this.over);if(this.sphere)a=this.x0+this.a*s*Math.cos(this.lat_ts),o=this.y0+this.a*Math.sin(i)/Math.cos(this.lat_ts);else{var n=ct(this.e,Math.sin(i));a=this.x0+this.a*this.k0*s,o=this.y0+this.a*n*.5/this.k0}return t.x=a,t.y=o,t}function Zo(t){t.x-=this.x0,t.y-=this.y0;var e,i;return this.sphere?(e=S(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=Do(this.e,2*t.y*this.k0/this.a),e=S(this.long0+t.x/(this.a*this.k0),this.over)),t.x=e,t.y=i,t}var Ho=["cea"];const Wo={init:Fo,forward:$o,inverse:Zo,names:Ho};function Vo(){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)}function Qo(t){var e=t.x,i=t.y,a=S(e-this.long0,this.over),o=gt(i-this.lat0);return t.x=this.x0+this.a*a*this.rc,t.y=this.y0+this.a*o,t}function Jo(t){var e=t.x,i=t.y;return t.x=S(this.long0+(e-this.x0)/(this.a*this.rc),this.over),t.y=gt(this.lat0+(i-this.y0)/this.a),t}var Xo=["Equirectangular","Equidistant_Cylindrical","Equidistant_Cylindrical_Spherical","eqc"];const Ko={init:Vo,forward:Qo,inverse:Jo,names:Xo};var Di=20;function Yo(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=ie(this.es),this.e1=se(this.es),this.e2=ae(this.es),this.e3=re(this.es),this.ml0=this.a*D(this.e0,this.e1,this.e2,this.e3,this.lat0)}function th(t){var e=t.x,i=t.y,a,o,s,n=S(e-this.long0,this.over);if(s=n*Math.sin(i),this.sphere)Math.abs(i)<=M?(a=this.a*n,o=-1*this.a*this.lat0):(a=this.a*Math.sin(s)/Math.tan(i),o=this.a*(gt(i-this.lat0)+(1-Math.cos(s))/Math.tan(i)));else if(Math.abs(i)<=M)a=this.a*n,o=-1*this.ml0;else{var r=Mi(this.a,this.e,Math.sin(i))/Math.tan(i);a=r*Math.sin(s),o=this.a*D(this.e0,this.e1,this.e2,this.e3,i)-this.ml0+r*(1-Math.cos(s))}return t.x=a+this.x0,t.y=o+this.y0,t}function eh(t){var e,i,a,o,s,n,r,h,l;if(a=t.x-this.x0,o=t.y-this.y0,this.sphere)if(Math.abs(o+this.a*this.lat0)<=M)e=S(a/this.a+this.long0,this.over),i=0;else{n=this.lat0+o/this.a,r=a*a/this.a/this.a+n*n,h=n;var f;for(s=Di;s;--s)if(f=Math.tan(h),l=-1*(n*(h*f+1)-h-.5*(h*h+r)*f)/((h-n)/f-1),h+=l,Math.abs(l)<=M){i=h;break}e=S(this.long0+Math.asin(a*Math.tan(h)/this.a)/Math.sin(i),this.over)}else if(Math.abs(o+this.ml0)<=M)i=0,e=S(this.long0+a/this.a,this.over);else{n=(this.ml0+o)/this.a,r=a*a/this.a/this.a+n*n,h=n;var u,c,_,d,v;for(s=Di;s;--s)if(v=this.e*Math.sin(h),u=Math.sqrt(1-v*v)*Math.tan(h),c=this.a*D(this.e0,this.e1,this.e2,this.e3,h),_=this.e0-2*this.e1*Math.cos(2*h)+4*this.e2*Math.cos(4*h)-6*this.e3*Math.cos(6*h),d=c/this.a,l=(n*(u*d+1)-d-.5*u*(d*d+r))/(this.es*Math.sin(2*h)*(d*d+r-2*n*d)/(4*u)+(n-d)*(u*_-2/Math.sin(2*h))-_),h-=l,Math.abs(l)<=M){i=h;break}u=Math.sqrt(1-this.es*Math.pow(Math.sin(i),2))*Math.tan(i),e=S(this.long0+Math.asin(a*u/this.a)/Math.sin(i),this.over)}return t.x=e,t.y=i,t}var ih=["Polyconic","American_Polyconic","poly"];const sh={init:Yo,forward:th,inverse:eh,names:ih};function ah(){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}function rh(t){var e,i=t.x,a=t.y,o=a-this.lat0,s=i-this.long0,n=o/$t*1e-5,r=s,h=1,l=0;for(e=1;e<=10;e++)h=h*n,l=l+this.A[e]*h;var f=l,u=r,c=1,_=0,d,v,g=0,m=0;for(e=1;e<=6;e++)d=c*f-_*u,v=_*f+c*u,c=d,_=v,g=g+this.B_re[e]*c-this.B_im[e]*_,m=m+this.B_im[e]*c+this.B_re[e]*_;return t.x=m*this.a+this.x0,t.y=g*this.a+this.y0,t}function nh(t){var e,i=t.x,a=t.y,o=i-this.x0,s=a-this.y0,n=s/this.a,r=o/this.a,h=1,l=0,f,u,c=0,_=0;for(e=1;e<=6;e++)f=h*n-l*r,u=l*n+h*r,h=f,l=u,c=c+this.C_re[e]*h-this.C_im[e]*l,_=_+this.C_im[e]*h+this.C_re[e]*l;for(var d=0;d<this.iterations;d++){var v=c,g=_,m,p,b=n,E=r;for(e=2;e<=6;e++)m=v*c-g*_,p=g*c+v*_,v=m,g=p,b=b+(e-1)*(this.B_re[e]*v-this.B_im[e]*g),E=E+(e-1)*(this.B_im[e]*v+this.B_re[e]*g);v=1,g=0;var w=this.B_re[1],x=this.B_im[1];for(e=2;e<=6;e++)m=v*c-g*_,p=g*c+v*_,v=m,g=p,w=w+e*(this.B_re[e]*v-this.B_im[e]*g),x=x+e*(this.B_im[e]*v+this.B_re[e]*g);var O=w*w+x*x;c=(b*w+E*x)/O,_=(E*w-b*x)/O}var T=c,P=_,G=1,q=0;for(e=1;e<=9;e++)G=G*T,q=q+this.D[e]*G;var Pt=this.lat0+q*$t*1e5,wt=this.long0+P;return t.x=wt,t.y=Pt,t}var oh=["New_Zealand_Map_Grid","nzmg"];const hh={init:ah,forward:rh,inverse:nh,names:oh};function lh(){}function uh(t){var e=t.x,i=t.y,a=S(e-this.long0,this.over),o=this.x0+this.a*a,s=this.y0+this.a*Math.log(Math.tan(Math.PI/4+i/2.5))*1.25;return t.x=o,t.y=s,t}function ch(t){t.x-=this.x0,t.y-=this.y0;var e=S(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=e,t.y=i,t}var fh=["Miller_Cylindrical","mill"];const _h={init:lh,forward:uh,inverse:ch,names:fh};var dh=20;function vh(){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=di(this.es)}function gh(t){var e,i,a=t.x,o=t.y;if(a=S(a-this.long0,this.over),this.sphere){if(!this.m)o=this.n!==1?Math.asin(this.n*Math.sin(o)):o;else for(var s=this.n*Math.sin(o),n=dh;n;--n){var r=(this.m*o+Math.sin(o)-s)/(this.m+Math.cos(o));if(o-=r,Math.abs(r)<M)break}e=this.a*this.C_x*a*(this.m+Math.cos(o)),i=this.a*this.C_y*o}else{var h=Math.sin(o),l=Math.cos(o);i=this.a*kt(o,h,l,this.en),e=this.a*a*l/Math.sqrt(1-this.es*h*h)}return t.x=e,t.y=i,t}function mh(t){var e,i,a,o;return t.x-=this.x0,a=t.x/this.a,t.y-=this.y0,e=t.y/this.a,this.sphere?(e/=this.C_y,a=a/(this.C_x*(this.m+Math.cos(e))),this.m?e=_t((this.m*e+Math.sin(e))/this.n):this.n!==1&&(e=_t(Math.sin(e)/this.n)),a=S(a+this.long0,this.over),e=gt(e)):(e=vi(t.y/this.a,this.es,this.en),o=Math.abs(e),o<y?(o=Math.sin(e),i=this.long0+t.x*Math.sqrt(1-this.es*o*o)/(this.a*Math.cos(e)),a=S(i,this.over)):o-M<y&&(a=this.long0)),t.x=a,t.y=e,t}var yh=["Sinusoidal","sinu"];const ph={init:vh,forward:gh,inverse:mh,names:yh};function Mh(){this.x0=this.x0!==void 0?this.x0:0,this.y0=this.y0!==void 0?this.y0:0,this.long0=this.long0!==void 0?this.long0:0}function Sh(t){for(var e=t.x,i=t.y,a=S(e-this.long0,this.over),o=i,s=Math.PI*Math.sin(i);;){var n=-(o+Math.sin(o)-s)/(1+Math.cos(o));if(o+=n,Math.abs(n)<M)break}o/=2,Math.PI/2-Math.abs(i)<M&&(a=0);var r=.900316316158*this.a*a*Math.cos(o)+this.x0,h=1.4142135623731*this.a*Math.sin(o)+this.y0;return t.x=r,t.y=h,t}function bh(t){var e,i;t.x-=this.x0,t.y-=this.y0,i=t.y/(1.4142135623731*this.a),Math.abs(i)>.999999999999&&(i=.999999999999),e=Math.asin(i);var a=S(this.long0+t.x/(.900316316158*this.a*Math.cos(e)),this.over);a<-Math.PI&&(a=-Math.PI),a>Math.PI&&(a=Math.PI),i=(2*e+Math.sin(2*e))/Math.PI,Math.abs(i)>1&&(i=1);var o=Math.asin(i);return t.x=a,t.y=o,t}var Ph=["Mollweide","moll"];const wh={init:Mh,forward:Sh,inverse:bh,names:Ph};function Eh(){Math.abs(this.lat1+this.lat2)<M||(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=ie(this.es),this.e1=se(this.es),this.e2=ae(this.es),this.e3=re(this.es),this.sin_phi=Math.sin(this.lat1),this.cos_phi=Math.cos(this.lat1),this.ms1=at(this.e,this.sin_phi,this.cos_phi),this.ml1=D(this.e0,this.e1,this.e2,this.e3,this.lat1),Math.abs(this.lat1-this.lat2)<M?this.ns=this.sin_phi:(this.sin_phi=Math.sin(this.lat2),this.cos_phi=Math.cos(this.lat2),this.ms2=at(this.e,this.sin_phi,this.cos_phi),this.ml2=D(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=D(this.e0,this.e1,this.e2,this.e3,this.lat0),this.rh=this.a*(this.g-this.ml0))}function xh(t){var e=t.x,i=t.y,a;if(this.sphere)a=this.a*(this.g-i);else{var o=D(this.e0,this.e1,this.e2,this.e3,i);a=this.a*(this.g-o)}var s=this.ns*S(e-this.long0,this.over),n=this.x0+a*Math.sin(s),r=this.y0+this.rh-a*Math.cos(s);return t.x=n,t.y=r,t}function Lh(t){t.x-=this.x0,t.y=this.rh-t.y+this.y0;var e,i,a,o;this.ns>=0?(i=Math.sqrt(t.x*t.x+t.y*t.y),e=1):(i=-Math.sqrt(t.x*t.x+t.y*t.y),e=-1);var s=0;if(i!==0&&(s=Math.atan2(e*t.x,e*t.y)),this.sphere)return o=S(this.long0+s/this.ns,this.over),a=gt(this.g-i/this.a),t.x=o,t.y=a,t;var n=this.g-i/this.a;return a=pe(n,this.e0,this.e1,this.e2,this.e3),o=S(this.long0+s/this.ns,this.over),t.x=o,t.y=a,t}var Gh=["Equidistant_Conic","eqdc"];const Ch={init:Eh,forward:xh,inverse:Lh,names:Gh};function Ah(){this.R=this.a}function Oh(t){var e=t.x,i=t.y,a=S(e-this.long0,this.over),o,s;Math.abs(i)<=M&&(o=this.x0+this.R*a,s=this.y0);var n=_t(2*Math.abs(i/Math.PI));(Math.abs(a)<=M||Math.abs(Math.abs(i)-y)<=M)&&(o=this.x0,i>=0?s=this.y0+Math.PI*this.R*Math.tan(.5*n):s=this.y0+Math.PI*this.R*-Math.tan(.5*n));var r=.5*Math.abs(Math.PI/a-a/Math.PI),h=r*r,l=Math.sin(n),f=Math.cos(n),u=f/(l+f-1),c=u*u,_=u*(2/l-1),d=_*_,v=Math.PI*this.R*(r*(u-d)+Math.sqrt(h*(u-d)*(u-d)-(d+h)*(c-d)))/(d+h);a<0&&(v=-v),o=this.x0+v;var g=h+u;return v=Math.PI*this.R*(_*g-r*Math.sqrt((d+h)*(h+1)-g*g))/(d+h),i>=0?s=this.y0+v:s=this.y0-v,t.x=o,t.y=s,t}function Nh(t){var e,i,a,o,s,n,r,h,l,f,u,c,_;return t.x-=this.x0,t.y-=this.y0,u=Math.PI*this.R,a=t.x/u,o=t.y/u,s=a*a+o*o,n=-Math.abs(o)*(1+s),r=n-2*o*o+a*a,h=-2*n+1+2*o*o+s*s,_=o*o/h+(2*r*r*r/h/h/h-9*n*r/h/h)/27,l=(n-r*r/3/h)/h,f=2*Math.sqrt(-l/3),u=3*_/l/f,Math.abs(u)>1&&(u>=0?u=1:u=-1),c=Math.acos(u)/3,t.y>=0?i=(-f*Math.cos(c+Math.PI/3)-r/3/h)*Math.PI:i=-(-f*Math.cos(c+Math.PI/3)-r/3/h)*Math.PI,Math.abs(a)<M?e=this.long0:e=S(this.long0+Math.PI*(s-1+Math.sqrt(1+2*(a*a-o*o)+s*s))/2/a,this.over),t.x=e,t.y=i,t}var Ih=["Van_der_Grinten_I","VanDerGrinten","Van_der_Grinten","vandg"];const Th={init:Ah,forward:Oh,inverse:Nh,names:Ih};function Rh(t,e,i,a,o,s){const n=a-e,r=Math.atan((1-s)*Math.tan(t)),h=Math.atan((1-s)*Math.tan(i)),l=Math.sin(r),f=Math.cos(r),u=Math.sin(h),c=Math.cos(h);let _=n,d,v=100,g,m,p,b,E,w,x,O,T,P,G,q,Pt,wt;do{if(g=Math.sin(_),m=Math.cos(_),p=Math.sqrt(c*g*(c*g)+(f*u-l*c*m)*(f*u-l*c*m)),p===0)return{azi1:0,s12:0};b=l*u+f*c*m,E=Math.atan2(p,b),w=f*c*g/p,x=1-w*w,O=x!==0?b-2*l*u/x:0,T=s/16*x*(4+s*(4-3*x)),d=_,_=n+(1-T)*s*w*(E+T*p*(O+T*b*(-1+2*O*O)))}while(Math.abs(_-d)>1e-12&&--v>0);return v===0?{azi1:NaN,s12:NaN}:(P=x*(o*o-o*(1-s)*(o*(1-s)))/(o*(1-s)*(o*(1-s))),G=1+P/16384*(4096+P*(-768+P*(320-175*P))),q=P/1024*(256+P*(-128+P*(74-47*P))),Pt=q*p*(O+q/4*(b*(-1+2*O*O)-q/6*O*(-3+4*p*p)*(-3+4*O*O))),wt=o*(1-s)*G*(E-Pt),{azi1:Math.atan2(c*g,f*u-l*c*m),s12:wt})}function jh(t,e,i,a,o,s){const n=Math.atan((1-s)*Math.tan(t)),r=Math.sin(n),h=Math.cos(n),l=Math.sin(i),f=Math.cos(i),u=Math.atan2(r,h*f),c=h*l,_=1-c*c,d=_*(o*o-o*(1-s)*(o*(1-s)))/(o*(1-s)*(o*(1-s))),v=1+d/16384*(4096+d*(-768+d*(320-175*d))),g=d/1024*(256+d*(-128+d*(74-47*d)));let m=a/(o*(1-s)*v),p,b=100,E,w,x,O;do E=Math.cos(2*u+m),w=Math.sin(m),x=Math.cos(m),O=g*w*(E+g/4*(x*(-1+2*E*E)-g/6*E*(-3+4*w*w)*(-3+4*E*E))),p=m,m=a/(o*(1-s)*v)+O;while(Math.abs(m-p)>1e-12&&--b>0);if(b===0)return{lat2:NaN,lon2:NaN};const T=r*w-h*x*f,P=Math.atan2(r*x+h*w*f,(1-s)*Math.sqrt(c*c+T*T)),G=Math.atan2(w*l,h*x-r*w*f),q=s/16*_*(4+s*(4-3*_)),Pt=G-(1-q)*s*c*(m+q*w*(E+q*x*(-1+2*E*E))),wt=e+Pt;return{lat2:P,lon2:wt}}function kh(){this.sin_p12=Math.sin(this.lat0),this.cos_p12=Math.cos(this.lat0),this.f=this.es/(1+Math.sqrt(1-this.es))}function Bh(t){var e=t.x,i=t.y,a=Math.sin(t.y),o=Math.cos(t.y),s=S(e-this.long0,this.over),n,r,h,l,f,u,c,_,d,v,g;return this.sphere?Math.abs(this.sin_p12-1)<=M?(t.x=this.x0+this.a*(y-i)*Math.sin(s),t.y=this.y0-this.a*(y-i)*Math.cos(s),t):Math.abs(this.sin_p12+1)<=M?(t.x=this.x0+this.a*(y+i)*Math.sin(s),t.y=this.y0+this.a*(y+i)*Math.cos(s),t):(d=this.sin_p12*a+this.cos_p12*o*Math.cos(s),c=Math.acos(d),_=c?c/Math.sin(c):1,t.x=this.x0+this.a*_*o*Math.sin(s),t.y=this.y0+this.a*_*(this.cos_p12*a-this.sin_p12*o*Math.cos(s)),t):(n=ie(this.es),r=se(this.es),h=ae(this.es),l=re(this.es),Math.abs(this.sin_p12-1)<=M?(f=this.a*D(n,r,h,l,y),u=this.a*D(n,r,h,l,i),t.x=this.x0+(f-u)*Math.sin(s),t.y=this.y0-(f-u)*Math.cos(s),t):Math.abs(this.sin_p12+1)<=M?(f=this.a*D(n,r,h,l,y),u=this.a*D(n,r,h,l,i),t.x=this.x0+(f+u)*Math.sin(s),t.y=this.y0+(f+u)*Math.cos(s),t):Math.abs(e)<M&&Math.abs(i-this.lat0)<M?(t.x=t.y=0,t):(v=Rh(this.lat0,this.long0,i,e,this.a,this.f),g=v.azi1,t.x=v.s12*Math.sin(g),t.y=v.s12*Math.cos(g),t))}function zh(t){t.x-=this.x0,t.y-=this.y0;var e,i,a,o,s,n,r,h,l,f,u,c,_,d,v,g;return this.sphere?(e=Math.sqrt(t.x*t.x+t.y*t.y),e>2*y*this.a?void 0:(i=e/this.a,a=Math.sin(i),o=Math.cos(i),s=this.long0,Math.abs(e)<=M?n=this.lat0:(n=_t(o*this.sin_p12+t.y*a*this.cos_p12/e),r=Math.abs(this.lat0)-y,Math.abs(r)<=M?this.lat0>=0?s=S(this.long0+Math.atan2(t.x,-t.y),this.over):s=S(this.long0-Math.atan2(-t.x,t.y),this.over):s=S(this.long0+Math.atan2(t.x*a,e*this.cos_p12*o-t.y*this.sin_p12*a),this.over)),t.x=s,t.y=n,t)):(h=ie(this.es),l=se(this.es),f=ae(this.es),u=re(this.es),Math.abs(this.sin_p12-1)<=M?(c=this.a*D(h,l,f,u,y),e=Math.sqrt(t.x*t.x+t.y*t.y),_=c-e,n=pe(_/this.a,h,l,f,u),s=S(this.long0+Math.atan2(t.x,-1*t.y),this.over),t.x=s,t.y=n,t):Math.abs(this.sin_p12+1)<=M?(c=this.a*D(h,l,f,u,y),e=Math.sqrt(t.x*t.x+t.y*t.y),_=e-c,n=pe(_/this.a,h,l,f,u),s=S(this.long0+Math.atan2(t.x,t.y),this.over),t.x=s,t.y=n,t):(d=Math.atan2(t.x,t.y),v=Math.sqrt(t.x*t.x+t.y*t.y),g=jh(this.lat0,this.long0,d,v,this.a,this.f),t.x=g.lon2,t.y=g.lat2,t))}var Uh=["Azimuthal_Equidistant","aeqd"];const qh={init:kh,forward:Bh,inverse:zh,names:Uh};function Dh(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)}function Fh(t){var e,i,a,o,s,n,r,h,l=t.x,f=t.y;return a=S(l-this.long0,this.over),e=Math.sin(f),i=Math.cos(f),o=Math.cos(a),n=this.sin_p14*e+this.cos_p14*i*o,s=1,(n>0||Math.abs(n)<=M)&&(r=this.a*s*i*Math.sin(a),h=this.y0+this.a*s*(this.cos_p14*e-this.sin_p14*i*o)),t.x=r,t.y=h,t}function $h(t){var e,i,a,o,s,n,r;return t.x-=this.x0,t.y-=this.y0,e=Math.sqrt(t.x*t.x+t.y*t.y),i=_t(e/this.a),a=Math.sin(i),o=Math.cos(i),n=this.long0,Math.abs(e)<=M?(r=this.lat0,t.x=n,t.y=r,t):(r=_t(o*this.sin_p14+t.y*a*this.cos_p14/e),s=Math.abs(this.lat0)-y,Math.abs(s)<=M?(this.lat0>=0?n=S(this.long0+Math.atan2(t.x,-t.y),this.over):n=S(this.long0-Math.atan2(-t.x,t.y),this.over),t.x=n,t.y=r,t):(n=S(this.long0+Math.atan2(t.x*a,e*this.cos_p14*o-t.y*this.sin_p14*a),this.over),t.x=n,t.y=r,t))}var Zh=["ortho"];const Hh={init:Dh,forward:Fh,inverse:$h,names:Zh};var I={FRONT:1,RIGHT:2,BACK:3,LEFT:4,TOP:5,BOTTOM:6},A={AREA_0:1,AREA_1:2,AREA_2:3,AREA_3:4};function Wh(){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>=y-C/2?this.face=I.TOP:this.lat0<=-(y-C/2)?this.face=I.BOTTOM:Math.abs(this.long0)<=C?this.face=I.FRONT:Math.abs(this.long0)<=y+C?this.face=this.long0>0?I.RIGHT:I.LEFT:this.face=I.BACK,this.es!==0&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)}function Vh(t){var e={x:0,y:0},i,a,o,s,n,r,h={value:0};if(t.x-=this.long0,this.es!==0?i=Math.atan(this.one_minus_f_squared*Math.tan(t.y)):i=t.y,a=t.x,this.face===I.TOP)s=y-i,a>=C&&a<=y+C?(h.value=A.AREA_0,o=a-y):a>y+C||a<=-(y+C)?(h.value=A.AREA_1,o=a>0?a-j:a+j):a>-(y+C)&&a<=-C?(h.value=A.AREA_2,o=a+y):(h.value=A.AREA_3,o=a);else if(this.face===I.BOTTOM)s=y+i,a>=C&&a<=y+C?(h.value=A.AREA_0,o=-a+y):a<C&&a>=-C?(h.value=A.AREA_1,o=-a):a<-C&&a>=-(y+C)?(h.value=A.AREA_2,o=-a-y):(h.value=A.AREA_3,o=a>0?-a+j:-a-j);else{var l,f,u,c,_,d,v;this.face===I.RIGHT?a=Ot(a,+y):this.face===I.BACK?a=Ot(a,+j):this.face===I.LEFT&&(a=Ot(a,-y)),c=Math.sin(i),_=Math.cos(i),d=Math.sin(a),v=Math.cos(a),l=_*v,f=_*d,u=c,this.face===I.FRONT?(s=Math.acos(l),o=le(s,u,f,h)):this.face===I.RIGHT?(s=Math.acos(f),o=le(s,u,-l,h)):this.face===I.BACK?(s=Math.acos(-l),o=le(s,u,-f,h)):this.face===I.LEFT?(s=Math.acos(-f),o=le(s,u,l,h)):(s=o=0,h.value=A.AREA_0)}return r=Math.atan(12/j*(o+Math.acos(Math.sin(o)*Math.cos(C))-y)),n=Math.sqrt((1-Math.cos(s))/(Math.cos(r)*Math.cos(r))/(1-Math.cos(Math.atan(1/Math.cos(o))))),h.value===A.AREA_1?r+=y:h.value===A.AREA_2?r+=j:h.value===A.AREA_3&&(r+=1.5*j),e.x=n*Math.cos(r),e.y=n*Math.sin(r),e.x=e.x*this.a+this.x0,e.y=e.y*this.a+this.y0,t.x=e.x,t.y=e.y,t}function Qh(t){var e={lam:0,phi:0},i,a,o,s,n,r,h,l,f,u={value:0};if(t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,a=Math.atan(Math.sqrt(t.x*t.x+t.y*t.y)),i=Math.atan2(t.y,t.x),t.x>=0&&t.x>=Math.abs(t.y)?u.value=A.AREA_0:t.y>=0&&t.y>=Math.abs(t.x)?(u.value=A.AREA_1,i-=y):t.x<0&&-t.x>=Math.abs(t.y)?(u.value=A.AREA_2,i=i<0?i+j:i-j):(u.value=A.AREA_3,i+=y),f=j/12*Math.tan(i),n=Math.sin(f)/(Math.cos(f)-1/Math.sqrt(2)),r=Math.atan(n),o=Math.cos(i),s=Math.tan(a),h=1-o*o*s*s*(1-Math.cos(Math.atan(1/Math.cos(r)))),h<-1?h=-1:h>1&&(h=1),this.face===I.TOP)l=Math.acos(h),e.phi=y-l,u.value===A.AREA_0?e.lam=r+y:u.value===A.AREA_1?e.lam=r<0?r+j:r-j:u.value===A.AREA_2?e.lam=r-y:e.lam=r;else if(this.face===I.BOTTOM)l=Math.acos(h),e.phi=l-y,u.value===A.AREA_0?e.lam=-r+y:u.value===A.AREA_1?e.lam=-r:u.value===A.AREA_2?e.lam=-r-y:e.lam=r<0?-r-j:-r+j;else{var c,_,d;c=h,f=c*c,f>=1?d=0:d=Math.sqrt(1-f)*Math.sin(r),f+=d*d,f>=1?_=0:_=Math.sqrt(1-f),u.value===A.AREA_1?(f=_,_=-d,d=f):u.value===A.AREA_2?(_=-_,d=-d):u.value===A.AREA_3&&(f=_,_=d,d=-f),this.face===I.RIGHT?(f=c,c=-_,_=f):this.face===I.BACK?(c=-c,_=-_):this.face===I.LEFT&&(f=c,c=_,_=-f),e.phi=Math.acos(-d)-y,e.lam=Math.atan2(_,c),this.face===I.RIGHT?e.lam=Ot(e.lam,-y):this.face===I.BACK?e.lam=Ot(e.lam,-j):this.face===I.LEFT&&(e.lam=Ot(e.lam,+y))}if(this.es!==0){var v,g,m;v=e.phi<0?1:0,g=Math.tan(e.phi),m=this.b/Math.sqrt(g*g+this.one_minus_f_squared),e.phi=Math.atan(Math.sqrt(this.a*this.a-m*m)/(this.one_minus_f*m)),v&&(e.phi=-e.phi)}return e.lam+=this.long0,t.x=e.lam,t.y=e.phi,t}function le(t,e,i,a){var o;return t<M?(a.value=A.AREA_0,o=0):(o=Math.atan2(e,i),Math.abs(o)<=C?a.value=A.AREA_0:o>C&&o<=y+C?(a.value=A.AREA_1,o-=y):o>y+C||o<=-(y+C)?(a.value=A.AREA_2,o=o>=0?o-j:o+j):(a.value=A.AREA_3,o+=y)),o}function Ot(t,e){var i=t+e;return i<-j?i+=Qt:i>+j&&(i-=Qt),i}var Jh=["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"];const Xh={init:Wh,forward:Vh,inverse:Qh,names:Jh};var De=[[1,22199e-21,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-986701e-12],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,18736e-12],[.96,-.00305085,-900761e-10,164917e-11],[.9427,-.00382792,-653386e-10,-26154e-10],[.9216,-.00467746,-10457e-8,481243e-11],[.8962,-.00536223,-323831e-10,-543432e-11],[.8679,-.00609363,-113898e-9,332484e-11],[.835,-.00698325,-640253e-10,934959e-12],[.7986,-.00755338,-500009e-10,935324e-12],[.7597,-.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]],Ft=[[-520417e-23,.0124,121431e-23,-845284e-16],[.062,.0124,-126793e-14,422642e-15],[.124,.0124,507171e-14,-160604e-14],[.186,.0123999,-190189e-13,600152e-14],[.248,.0124002,710039e-13,-224e-10],[.31,.0123992,-264997e-12,835986e-13],[.372,.0124029,988983e-12,-311994e-12],[.434,.0123893,-369093e-11,-435621e-12],[.4958,.0123198,-102252e-10,-345523e-12],[.5571,.0121916,-154081e-10,-582288e-12],[.6176,.0119938,-241424e-10,-525327e-12],[.6769,.011713,-320223e-10,-516405e-12],[.7346,.0113541,-397684e-10,-609052e-12],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-140374e-14],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],Zs=.8487,Hs=1.3523,Ws=Z/5,Kh=1/Ws,Ct=18,Me=function(t,e){return t[0]+e*(t[1]+e*(t[2]+e*t[3]))},Yh=function(t,e){return t[1]+e*(2*t[2]+e*3*t[3])};function tl(t,e,i,a){for(var o=e;a;--a){var s=t(o);if(o-=s,Math.abs(s)<i)break}return o}function el(){this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.es=0,this.title=this.title||"Robinson"}function il(t){var e=S(t.x-this.long0,this.over),i=Math.abs(t.y),a=Math.floor(i*Ws);a<0?a=0:a>=Ct&&(a=Ct-1),i=Z*(i-Kh*a);var o={x:Me(De[a],i)*e,y:Me(Ft[a],i)};return t.y<0&&(o.y=-o.y),o.x=o.x*this.a*Zs+this.x0,o.y=o.y*this.a*Hs+this.y0,o}function sl(t){var e={x:(t.x-this.x0)/(this.a*Zs),y:Math.abs(t.y-this.y0)/(this.a*Hs)};if(e.y>=1)e.x/=De[Ct][0],e.y=t.y<0?-y:y;else{var i=Math.floor(e.y*Ct);for(i<0?i=0:i>=Ct&&(i=Ct-1);;)if(Ft[i][0]>e.y)--i;else if(Ft[i+1][0]<=e.y)++i;else break;var a=Ft[i],o=5*(e.y-a[0])/(Ft[i+1][0]-a[0]);o=tl(function(s){return(Me(a,s)-e.y)/Yh(a,s)},o,M,100),e.x/=Me(De[i],o),e.y=(5*i+o)*R,t.y<0&&(e.y=-e.y)}return e.x=S(e.x+this.long0,this.over),e}var al=["Robinson","robin"];const rl={init:el,forward:il,inverse:sl,names:al};function nl(){this.name="geocent"}function ol(t){var e=Ts(t,this.es,this.a);return e}function hl(t){var e=Rs(t,this.es,this.a,this.b);return e}var ll=["Geocentric","geocentric","geocent","Geocent"];const ul={init:nl,forward:ol,inverse:hl,names:ll};var U={N_POLE:0,S_POLE:1,EQUIT:2,OBLIQ:3},Bt={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}};function cl(){if(Object.keys(Bt).forEach((function(i){if(typeof this[i]>"u")this[i]=Bt[i].def;else{if(Bt[i].num&&isNaN(this[i]))throw new Error("Invalid parameter value, must be numeric "+i+" = "+this[i]);Bt[i].num&&(this[i]=parseFloat(this[i]))}Bt[i].degrees&&(this[i]=this[i]*R)}).bind(this)),Math.abs(Math.abs(this.lat0)-y)<M?this.mode=this.lat0<0?U.S_POLE:U.N_POLE:Math.abs(this.lat0)<M?this.mode=U.EQUIT:(this.mode=U.OBLIQ,this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0)),this.pn1=this.h/this.a,this.pn1<=0||this.pn1>1e10)throw 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,e=this.azi;this.cg=Math.cos(e),this.sg=Math.sin(e),this.cw=Math.cos(t),this.sw=Math.sin(t)}function fl(t){t.x-=this.long0;var e=Math.sin(t.y),i=Math.cos(t.y),a=Math.cos(t.x),o,s;switch(this.mode){case U.OBLIQ:s=this.sinph0*e+this.cosph0*i*a;break;case U.EQUIT:s=i*a;break;case U.S_POLE:s=-e;break;case U.N_POLE:s=e;break}switch(s=this.pn1/(this.p-s),o=s*i*Math.sin(t.x),this.mode){case U.OBLIQ:s*=this.cosph0*e-this.sinph0*i*a;break;case U.EQUIT:s*=e;break;case U.N_POLE:s*=-(i*a);break;case U.S_POLE:s*=i*a;break}var n,r;return n=s*this.cg+o*this.sg,r=1/(n*this.sw*this.h1+this.cw),o=(o*this.cg-s*this.sg)*this.cw*r,s=n*r,t.x=o*this.a,t.y=s*this.a,t}function _l(t){t.x/=this.a,t.y/=this.a;var e={x:t.x,y:t.y},i,a,o;o=1/(this.pn1-t.y*this.sw),i=this.pn1*t.x*o,a=this.pn1*t.y*this.cw*o,t.x=i*this.cg+a*this.sg,t.y=a*this.cg-i*this.sg;var s=$(t.x,t.y);if(Math.abs(s)<M)e.x=0,e.y=t.y;else{var n,r;switch(r=1-s*s*this.pfact,r=(this.p-Math.sqrt(r))/(this.pn1/s+s/this.pn1),n=Math.sqrt(1-r*r),this.mode){case U.OBLIQ:e.y=Math.asin(n*this.sinph0+t.y*r*this.cosph0/s),t.y=(n-this.sinph0*Math.sin(e.y))*s,t.x*=r*this.cosph0;break;case U.EQUIT:e.y=Math.asin(t.y*r/s),t.y=n*s,t.x*=r;break;case U.N_POLE:e.y=Math.asin(n),t.y=-t.y;break;case U.S_POLE:e.y=-Math.asin(n);break}e.x=Math.atan2(t.x,t.y)}return t.x=e.x+this.long0,t.y=e.y,t}var dl=["Tilted_Perspective","tpers"];const vl={init:cl,forward:fl,inverse:_l,names:dl};function gl(){if(this.flip_axis=this.sweep==="x"?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,this.es!==0){var t=1-this.es,e=1/t;this.radius_p=Math.sqrt(t),this.radius_p2=t,this.radius_p_inv2=e,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")}function ml(t){var e=t.x,i=t.y,a,o,s,n;if(e=e-this.long0,this.shape==="ellipse"){i=Math.atan(this.radius_p2*Math.tan(i));var r=this.radius_p/$(this.radius_p*Math.cos(i),Math.sin(i));if(o=r*Math.cos(e)*Math.cos(i),s=r*Math.sin(e)*Math.cos(i),n=r*Math.sin(i),(this.radius_g-o)*o-s*s-n*n*this.radius_p_inv2<0)return t.x=Number.NaN,t.y=Number.NaN,t;a=this.radius_g-o,this.flip_axis?(t.x=this.radius_g_1*Math.atan(s/$(n,a)),t.y=this.radius_g_1*Math.atan(n/a)):(t.x=this.radius_g_1*Math.atan(s/a),t.y=this.radius_g_1*Math.atan(n/$(s,a)))}else this.shape==="sphere"&&(a=Math.cos(i),o=Math.cos(e)*a,s=Math.sin(e)*a,n=Math.sin(i),a=this.radius_g-o,this.flip_axis?(t.x=this.radius_g_1*Math.atan(s/$(n,a)),t.y=this.radius_g_1*Math.atan(n/a)):(t.x=this.radius_g_1*Math.atan(s/a),t.y=this.radius_g_1*Math.atan(n/$(s,a))));return t.x=t.x*this.a,t.y=t.y*this.a,t}function yl(t){var e=-1,i=0,a=0,o,s,n,r;if(t.x=t.x/this.a,t.y=t.y/this.a,this.shape==="ellipse"){this.flip_axis?(a=Math.tan(t.y/this.radius_g_1),i=Math.tan(t.x/this.radius_g_1)*$(1,a)):(i=Math.tan(t.x/this.radius_g_1),a=Math.tan(t.y/this.radius_g_1)*$(1,i));var h=a/this.radius_p;if(o=i*i+h*h+e*e,s=2*this.radius_g*e,n=s*s-4*o*this.C,n<0)return t.x=Number.NaN,t.y=Number.NaN,t;r=(-s-Math.sqrt(n))/(2*o),e=this.radius_g+r*e,i*=r,a*=r,t.x=Math.atan2(i,e),t.y=Math.atan(a*Math.cos(t.x)/e),t.y=Math.atan(this.radius_p_inv2*Math.tan(t.y))}else if(this.shape==="sphere"){if(this.flip_axis?(a=Math.tan(t.y/this.radius_g_1),i=Math.tan(t.x/this.radius_g_1)*Math.sqrt(1+a*a)):(i=Math.tan(t.x/this.radius_g_1),a=Math.tan(t.y/this.radius_g_1)*Math.sqrt(1+i*i)),o=i*i+a*a+e*e,s=2*this.radius_g*e,n=s*s-4*o*this.C,n<0)return t.x=Number.NaN,t.y=Number.NaN,t;r=(-s-Math.sqrt(n))/(2*o),e=this.radius_g+r*e,i*=r,a*=r,t.x=Math.atan2(i,e),t.y=Math.atan(a*Math.cos(t.x)/e)}return t.x=t.x+this.long0,t}var pl=["Geostationary Satellite View","Geostationary_Satellite","geos"];const Ml={init:gl,forward:ml,inverse:yl,names:pl};var Zt=1.340264,Ht=-.081106,Wt=893e-6,Vt=.003796,Se=Math.sqrt(3)/2;function Sl(){this.es=0,this.long0=this.long0!==void 0?this.long0:0,this.x0=this.x0!==void 0?this.x0:0,this.y0=this.y0!==void 0?this.y0:0}function bl(t){var e=S(t.x-this.long0,this.over),i=t.y,a=Math.asin(Se*Math.sin(i)),o=a*a,s=o*o*o;return t.x=e*Math.cos(a)/(Se*(Zt+3*Ht*o+s*(7*Wt+9*Vt*o))),t.y=a*(Zt+Ht*o+s*(Wt+Vt*o)),t.x=this.a*t.x+this.x0,t.y=this.a*t.y+this.y0,t}function Pl(t){t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a;var e=1e-9,i=12,a=t.y,o,s,n,r,h,l;for(l=0;l<i&&(o=a*a,s=o*o*o,n=a*(Zt+Ht*o+s*(Wt+Vt*o))-t.y,r=Zt+3*Ht*o+s*(7*Wt+9*Vt*o),a-=h=n/r,!(Math.abs(h)<e));++l);return o=a*a,s=o*o*o,t.x=Se*t.x*(Zt+3*Ht*o+s*(7*Wt+9*Vt*o))/Math.cos(a),t.y=Math.asin(Math.sin(a)/Se),t.x=S(t.x+this.long0,this.over),t}var wl=["eqearth","Equal Earth","Equal_Earth"];const El={init:Sl,forward:bl,inverse:Pl,names:wl};var Kt=1e-10;function xl(){var t;if(this.phi1=this.lat1,Math.abs(this.phi1)<Kt)throw new Error;this.es?(this.en=di(this.es),this.m1=kt(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=Gl,this.forward=Ll):(Math.abs(this.phi1)+Kt>=y?this.cphi1=0:this.cphi1=1/Math.tan(this.phi1),this.inverse=Al,this.forward=Cl)}function Ll(t){var e=S(t.x-(this.long0||0),this.over),i=t.y,a,o,s;return a=this.am1+this.m1-kt(i,o=Math.sin(i),s=Math.cos(i),this.en),o=s*e/(a*Math.sqrt(1-this.es*o*o)),t.x=a*Math.sin(o),t.y=this.am1-a*Math.cos(o),t.x=this.a*t.x+(this.x0||0),t.y=this.a*t.y+(this.y0||0),t}function Gl(t){t.x=(t.x-(this.x0||0))/this.a,t.y=(t.y-(this.y0||0))/this.a;var e,i,a,o;if(i=$(t.x,t.y=this.am1-t.y),o=vi(this.am1+this.m1-i,this.es,this.en),(e=Math.abs(o))<y)e=Math.sin(o),a=i*Math.atan2(t.x,t.y)*Math.sqrt(1-this.es*e*e)/Math.cos(o);else if(Math.abs(e-y)<=Kt)a=0;else throw new Error;return t.x=S(a+(this.long0||0),this.over),t.y=gt(o),t}function Cl(t){var e=S(t.x-(this.long0||0),this.over),i=t.y,a,o;return o=this.cphi1+this.phi1-i,Math.abs(o)>Kt?(t.x=o*Math.sin(a=e*Math.cos(i)/o),t.y=this.cphi1-o*Math.cos(a)):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 Al(t){t.x=(t.x-(this.x0||0))/this.a,t.y=(t.y-(this.y0||0))/this.a;var e,i,a=$(t.x,t.y=this.cphi1-t.y);if(i=this.cphi1+this.phi1-a,Math.abs(i)>y)throw new Error;return Math.abs(Math.abs(i)-y)<=Kt?e=0:e=a*Math.atan2(t.x,t.y)/Math.cos(i),t.x=S(e+(this.long0||0),this.over),t.y=gt(i),t}var Ol=["bonne","Bonne (Werner lat_1=90)"];const Nl={init:xl,names:Ol},Fi={OBLIQUE:{forward:kl,inverse:zl},TRANSVERSE:{forward:Bl,inverse:Ul}},be={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"}};function Il(){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=As.includes(this.o_proj),!this.o_proj)throw new Error("Missing parameter: o_proj");if(this.o_proj==="ob_tran")throw new Error("Invalid value for o_proj: "+this.o_proj);const t=this.projStr.replace("+proj=ob_tran","").replace("+o_proj=","+proj=").trim(),e=X(t);if(!e)throw new Error("Invalid parameter: o_proj. Unknown projection "+this.o_proj);e.long0=0,this.obliqueProjection=e;let i;const a=Object.keys(be),o=r=>{if(typeof this[r]>"u")return;const h=parseFloat(this[r])*R;if(isNaN(h))throw new Error("Invalid value for "+r+": "+this[r]);return h};for(let r=0;r<a.length;r++){const h=a[r],l=be[h],f=Object.entries(l);if(f.some(([c])=>typeof this[c]<"u")){i=l;for(let c=0;c<f.length;c++){const[_,d]=f[c],v=o(_);if(typeof v>"u")throw new Error("Missing parameter: "+_+".");this[d]=v}break}}if(!i)throw new Error("No valid parameters provided for ob_tran projection.");const{lamp:s,phip:n}=jl(this,i);this.lamp=s,Math.abs(n)>M?(this.cphip=Math.cos(n),this.sphip=Math.sin(n),this.projectionType=Fi.OBLIQUE):this.projectionType=Fi.TRANSVERSE}function Tl(t){return this.projectionType.forward(this,t)}function Rl(t){return this.projectionType.inverse(this,t)}function jl(t,e){let i,a;if(e===be.ROTATE){let o=t.oLongC,s=t.oLatC,n=t.oAlpha;if(Math.abs(Math.abs(s)-y)<=M)throw new Error("Invalid value for o_lat_c: "+t.o_lat_c+" should be < 90°");a=o+Math.atan2(-1*Math.cos(n),-1*Math.sin(n)*Math.sin(s)),i=Math.asin(Math.cos(s)*Math.sin(n))}else if(e===be.NEW_POLE)a=t.oLongP,i=t.oLatP;else{let o=t.oLong1,s=t.oLat1,n=t.oLong2,r=t.oLat2,h=Math.abs(s);
5if(Math.abs(s)>y-M)throw new Error("Invalid value for o_lat_1: "+t.o_lat_1+" should be < 90°");if(Math.abs(r)>y-M)throw new Error("Invalid value for o_lat_2: "+t.o_lat_2+" should be < 90°");if(Math.abs(s-r)<M)throw new Error("Invalid value for o_lat_1 and o_lat_2: o_lat_1 should be different from o_lat_2");if(h<M)throw new Error("Invalid value for o_lat_1: o_lat_1 should be different from zero");a=Math.atan2(Math.cos(s)*Math.sin(r)*Math.cos(o)-Math.sin(s)*Math.cos(r)*Math.cos(n),Math.sin(s)*Math.cos(r)*Math.sin(n)-Math.cos(s)*Math.sin(r)*Math.sin(o)),i=Math.atan(-1*Math.cos(a-o)/Math.tan(s))}return{lamp:a,phip:i}}function kl(t,e){let{x:i,y:a}=e;i+=t.long0;const o=Math.cos(i),s=Math.sin(a),n=Math.cos(a);e.x=S(Math.atan2(n*Math.sin(i),t.sphip*n*o+t.cphip*s)+t.lamp),e.y=Math.asin(t.sphip*s-t.cphip*n*o);const r=t.obliqueProjection.forward(e);return t.isIdentity&&(r.x*=Z,r.y*=Z),r}function Bl(t,e){let{x:i,y:a}=e;i+=t.long0;const o=Math.cos(a),s=Math.cos(i);e.x=S(Math.atan2(o*Math.sin(i),Math.sin(a))+t.lamp),e.y=Math.asin(-1*o*s);const n=t.obliqueProjection.forward(e);return t.isIdentity&&(n.x*=Z,n.y*=Z),n}function zl(t,e){t.isIdentity&&(e.x*=R,e.y*=R);const i=t.obliqueProjection.inverse(e);let{x:a,y:o}=i;if(a<Number.MAX_VALUE){a-=t.lamp;const s=Math.cos(a),n=Math.sin(o),r=Math.cos(o);e.x=Math.atan2(r*Math.sin(a),t.sphip*r*s-t.cphip*n),e.y=Math.asin(t.sphip*n+t.cphip*r*s)}return e.x=S(e.x+t.long0),e}function Ul(t,e){t.isIdentity&&(e.x*=R,e.y*=R);const i=t.obliqueProjection.inverse(e);let{x:a,y:o}=i;if(a<Number.MAX_VALUE){const s=Math.cos(o);a-=t.lamp,e.x=Math.atan2(s*Math.sin(a),-1*Math.sin(o)),e.y=Math.asin(s*Math.cos(a))}return e.x=S(e.x+t.long0),e}var ql=["General Oblique Transformation","General_Oblique_Transformation","ob_tran"];const Dl={init:Il,forward:Tl,inverse:Rl,names:ql};function Fl(t){t.Proj.projections.add(ce),t.Proj.projections.add(fe),t.Proj.projections.add(An),t.Proj.projections.add(zn),t.Proj.projections.add($n),t.Proj.projections.add(Qn),t.Proj.projections.add(eo),t.Proj.projections.add(no),t.Proj.projections.add(co),t.Proj.projections.add(mo),t.Proj.projections.add(Ao),t.Proj.projections.add(jo),t.Proj.projections.add(qo),t.Proj.projections.add(Wo),t.Proj.projections.add(Ko),t.Proj.projections.add(sh),t.Proj.projections.add(hh),t.Proj.projections.add(_h),t.Proj.projections.add(ph),t.Proj.projections.add(wh),t.Proj.projections.add(Ch),t.Proj.projections.add(Th),t.Proj.projections.add(qh),t.Proj.projections.add(Hh),t.Proj.projections.add(Xh),t.Proj.projections.add(rl),t.Proj.projections.add(ul),t.Proj.projections.add(vl),t.Proj.projections.add(Ml),t.Proj.projections.add(El),t.Proj.projections.add(Nl),t.Proj.projections.add(Dl)}const Vs=Object.assign(Hr,{defaultDatum:"WGS84",Proj:X,WGS84:new X("WGS84"),Point:Nt,toPoint:js,defs:B,nadgrid:Gr,transform:ye,mgrs:Wr,version:"__VERSION__"});Fl(Vs);const $l=Object.freeze(Object.defineProperty({__proto__:null,default:Vs},Symbol.toStringTag,{value:"Module"})),Zl=Ks($l);var $i;function Hl(){return $i||($i=1,(function(t){(function(e){var i,a;i=Ys(),a=Zl,t.exports=e(i,a)})(function(e,i){return i.__esModule&&i.default&&(i=i.default),e.Proj={},e.Proj._isProj4Obj=function(a){return typeof a.inverse<"u"&&typeof a.forward<"u"},e.Proj.Projection=e.Class.extend({initialize:function(a,o,s){var n=e.Proj._isProj4Obj(a);this._proj=n?a:this._projFromCodeDef(a,o),this.bounds=n?o:s},project:function(a){var o=this._proj.forward([a.lng,a.lat]);return new e.Point(o[0],o[1])},unproject:function(a,o){var s=this._proj.inverse([a.x,a.y]);return new e.LatLng(s[1],s[0],o)},_projFromCodeDef:function(a,o){if(o)i.defs(a,o);else if(i.defs[a]===void 0){var s=a.split(":");if(s.length>3&&(a=s[s.length-3]+":"+s[s.length-1]),i.defs[a]===void 0)throw"No projection definition for code "+a}return i(a)}}),e.Proj.CRS=e.Class.extend({includes:e.CRS,options:{transformation:new e.Transformation(1,0,-1,0)},initialize:function(a,o,s){var n,r,h,l;if(e.Proj._isProj4Obj(a)?(r=a,n=r.srsCode,l=o||{},this.projection=new e.Proj.Projection(r,l.bounds)):(n=a,h=o,l=s||{},this.projection=new e.Proj.Projection(n,h,l.bounds)),e.Util.setOptions(this,l),this.code=n,this.transformation=this.options.transformation,this.options.origin&&(this.transformation=new e.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 f=this.options.resolutions.length-1;f>=0;f--)this.options.resolutions[f]&&(this._scales[f]=1/this.options.resolutions[f])}this.infinite=!this.options.bounds},scale:function(a){var o=Math.floor(a),s,n,r,h;return a===o?this._scales[a]:(s=this._scales[o],n=this._scales[o+1],r=n-s,h=a-o,s+r*h)},zoom:function(a){var o=this._closestElement(this._scales,a),s=this._scales.indexOf(o),n,r,h;return a===o?s:o===void 0?-1/0:(r=s+1,n=this._scales[r],n===void 0?1/0:(h=n-o,(a-o)/h+s))},distance:e.CRS.Earth.distance,R:e.CRS.Earth.R,_closestElement:function(a,o){for(var s,n=a.length;n--;)a[n]<=o&&(s===void 0||s<a[n])&&(s=a[n]);return s}}),e.Proj.GeoJSON=e.GeoJSON.extend({initialize:function(a,o){this._callLevel=0,e.GeoJSON.prototype.initialize.call(this,a,o)},addData:function(a){var o;a&&(a.crs&&a.crs.type==="name"?o=new e.Proj.CRS(a.crs.properties.name):a.crs&&a.crs.type&&(o=new e.Proj.CRS(a.crs.type+":"+a.crs.properties.code)),o!==void 0&&(this.options.coordsToLatLng=function(s){var n=e.point(s[0],s[1]);return o.projection.unproject(n)})),this._callLevel++;try{e.GeoJSON.prototype.addData.call(this,a)}finally{this._callLevel--,this._callLevel===0&&delete this.options.coordsToLatLng}}}),e.Proj.geoJson=function(a,o){return new e.Proj.GeoJSON(a,o)},e.Proj.ImageOverlay=e.ImageOverlay.extend({initialize:function(a,o,s){e.ImageOverlay.prototype.initialize.call(this,a,null,s),this._projectedBounds=o},_animateZoom:function(a){var o=this._map.getZoomScale(a.zoom),s=e.point(this._projectedBounds.min.x,this._projectedBounds.max.y),n=this._projectedToNewLayerPoint(s,a.zoom,a.center);e.DomUtil.setTransform(this._image,n,o)},_reset:function(){var a=this._map.getZoom(),o=this._map.getPixelOrigin(),s=e.bounds(this._transform(this._projectedBounds.min,a)._subtract(o),this._transform(this._projectedBounds.max,a)._subtract(o)),n=s.getSize();e.DomUtil.setPosition(this._image,s.min),this._image.style.width=n.x+"px",this._image.style.height=n.y+"px"},_projectedToNewLayerPoint:function(a,o,s){var n=this._map.getSize()._divideBy(2),r=this._map.project(s,o)._subtract(n)._round(),h=r.add(this._map._getMapPanePos());return this._transform(a,o)._subtract(h)},_transform:function(a,o){var s=this._map.options.crs,n=s.transformation,r=s.scale(o);return n.transform(a,r)}}),e.Proj.imageOverlay=function(a,o,s){return new e.Proj.ImageOverlay(a,o,s)},e.Proj})})(Ce)),Ce.exports}Hl();var Wl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Zi={exports:{}};(function(t,e){(function(i,a){a(e)})(Wl,function(i){var a=L.MarkerClusterGroup=L.FeatureGroup.extend({options:{maxClusterRadius:80,iconCreateFunction:null,clusterPane:L.Marker.prototype.options.pane,spiderfyOnEveryZoom:!1,spiderfyOnMaxZoom:!0,showCoverageOnHover:!0,zoomToBoundsOnClick:!0,singleMarkerMode:!1,disableClusteringAtZoom:null,removeOutsideVisibleBounds:!0,animate:!0,animateAddingMarkers:!1,spiderfyShapePositions:null,spiderfyDistanceMultiplier:1,spiderLegPolylineOptions:{weight:1.5,color:"#222",opacity:.5},chunkedLoading:!1,chunkInterval:200,chunkDelay:50,chunkProgress:null,polygonOptions:{}},initialize:function(s){L.Util.setOptions(this,s),this.options.iconCreateFunction||(this.options.iconCreateFunction=this._defaultIconCreateFunction),this._featureGroup=L.featureGroup(),this._featureGroup.addEventParent(this),this._nonPointGroup=L.featureGroup(),this._nonPointGroup.addEventParent(this),this._inZoomAnimation=0,this._needsClustering=[],this._needsRemoving=[],this._currentShownBounds=null,this._queue=[],this._childMarkerEventHandlers={dragstart:this._childMarkerDragStart,move:this._childMarkerMoved,dragend:this._childMarkerDragEnd};var n=L.DomUtil.TRANSITION&&this.options.animate;L.extend(this,n?this._withAnimation:this._noAnimation),this._markerCluster
5=n?L.MarkerCluster:L.MarkerClusterNonAnimated},addLayer:function(s){if(s instanceof L.LayerGroup)return this.addLayers([s]);if(!s.getLatLng)return this._nonPointGroup.addLayer(s),this.fire("layeradd",{layer:s}),this;if(!this._map)return this._needsClustering.push(s),this.fire("layeradd",{layer:s}),this;if(this.hasLayer(s))return this;this._unspiderfy&&this._unspiderfy(),this._addLayer(s,this._maxZoom),this.fire("layeradd",{layer:s}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons();var n=s,r=this._zoom;if(s.__parent)for(;n.__parent._zoom>=r;)n=n.__parent;return this._currentShownBounds.contains(n.getLatLng())&&(this.options.animateAddingMarkers?this._animationAddLayer(s,n):this._animationAddLayerNonAnimated(s,n)),this},removeLayer:function(s){return s instanceof L.LayerGroup?this.removeLayers([s]):s.getLatLng?this._map?s.__parent?(this._unspiderfy&&(this._unspiderfy(),this._unspiderfyLayer(s)),this._removeLayer(s,!0),this.fire("layerremove",{layer:s}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),s.off(this._childMarkerEventHandlers,this),this._featureGroup.hasLayer(s)&&(this._featureGroup.removeLayer(s),s.clusterShow&&s.clusterShow()),this):this:(!this._arraySplice(this._needsClustering,s)&&this.hasLayer(s)&&this._needsRemoving.push({layer:s,latlng:s._latlng}),this.fire("layerremove",{layer:s}),this):(this._nonPointGroup.removeLayer(s),this.fire("layerremove",{layer:s}),this)},addLayers:function(s,n){if(!L.Util.isArray(s))return this.addLayer(s);var r=this._featureGroup,h=this._nonPointGroup,l=this.options.chunkedLoading,f=this.options.chunkInterval,u=this.options.chunkProgress,c=s.length,_=0,d=!0,v;if(this._map){var g=new Date().getTime(),m=L.bind(function(){var b=new Date().getTime();for(this._map&&this._unspiderfy&&this._unspiderfy();_<c;_++){if(l&&_%200===0){var E=new Date().getTime()-b;if(E>f)break}if(v=s[_],v instanceof L.LayerGroup){d&&(s=s.slice(),d=!1),this._extractNonGroupLayers(v,s),c=s.length;continue}if(!v.getLatLng){h.addLayer(v),n||this.fire("layeradd",{layer:v});continue}if(!this.hasLayer(v)&&(this._addLayer(v,this._maxZoom),n||this.fire("layeradd",{layer:v}),v.__parent&&v.__parent.getChildCount()===2)){var w=v.__parent.getAllChildMarkers(),x=w[0]===v?w[1]:w[0];r.removeLayer(x)}}u&&u(_,c,new Date().getTime()-g),_===c?(this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds)):setTimeout(m,this.options.chunkDelay)},this);m()}else for(var p=this._needsClustering;_<c;_++){if(v=s[_],v instanceof L.LayerGroup){d&&(s=s.slice(),d=!1),this._extractNonGroupLayers(v,s),c=s.length;continue}if(!v.getLatLng){h.addLayer(v);continue}this.hasLayer(v)||p.push(v)}return this},removeLayers:function(s){var n,r,h=s.length,l=this._featureGroup,f=this._nonPointGroup,u=!0;if(!this._map){for(n=0;n<h;n++){if(r=s[n],r instanceof L.LayerGroup){u&&(s=s.slice(),u=!1),this._extractNonGroupLayers(r,s),h=s.length;continue}this._arraySplice(this._needsClustering,r),f.removeLayer(r),this.hasLayer(r)&&this._needsRemoving.push({layer:r,latlng:r._latlng}),this.fire("layerremove",{layer:r})}return this}if(this._unspiderfy){this._unspiderfy();var c=s.slice(),_=h;for(n=0;n<_;n++){if(r=c[n],r instanceof L.LayerGroup){this._extractNonGroupLayers(r,c),_=c.length;continue}this._unspiderfyLayer(r)}}for(n=0;n<h;n++){if(r=s[n],r instanceof L.LayerGroup){u&&(s=s.slice(),u=!1),this._extractNonGroupLayers(r,s),h=s.length;continue}if(!r.__parent){f.removeLayer(r),this.fire("layerremove",{layer:r});continue}this._removeLayer(r,!0,!0),this.fire("layerremove",{layer:r}),l.hasLayer(r)&&(l.removeLayer(r),r.clusterShow&&r.clusterShow())}return this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds),this},clearLayers:function(){return this._map||(this._needsClustering=[],this._needsRemoving=[],delete this._gridClusters,delete this._gridUnclustered),this._noanimationUnspiderfy&&this._noanimationUnspiderfy(),this._featureGroup.clearLayers(),this._nonPointGroup.clearLayers(),this.eachLayer(function(s){s.off(this._childMarkerEventHandlers,this),delete s.__parent},this),this._map&&this._generateInitialClusters(),this},getBounds:function(){var s=new L.LatLngBounds;this._topClusterLevel&&s.extend(this._topClusterLevel._bounds);for(var n=this._needsClustering.length-1;n>=0;n--)s.extend(this._needsClustering[n].getLatLng());return s.extend(this._nonPointGroup.getBounds()),s},eachLayer:function(s,n){var r=this._needsClustering.slice(),h=this._needsRemoving,l,f,u;for(this._topClusterLevel&&this._topClusterLevel.getAllChildMarkers(r),f=r.length-1;f>=0;f--){for(l=!0,u=h.length-1;u>=0;u--)if(h[u].layer===r[f]){l=!1;break}l&&s.call(n,r[f])}this._nonPointGroup.eachLayer(s,n)},getLayers:function(){var s=[];return this.eachLayer(function(n){s.push(n)}),s},getLayer:function(s){var n=null;return s=parseInt(s,10),this.eachLayer(function(r){L.stamp(r)===s&&(n=r)}),n},hasLayer:function(s){if(!s)return!1;var n,r=this._needsClustering;for(n=r.length-1;n>=0;n--)if(r[n]===s)return!0;for(r=this._needsRemoving,n=r.length-1;n>=0;n--)if(r[n].layer===s)return!1;return!!(s.__parent&&s.__parent._group===this)||this._nonPointGroup.hasLayer(s)},zoomToShowLayer:function(s,n){var r=this._map;typeof n!="function"&&(n=function(){});var h=function(){(r.hasLayer(s)||r.hasLayer(s.__parent))&&!this._inZoomAnimation&&(this._map.off("moveend",h,this),this.off("animationend",h,this),r.hasLayer(s)?n():s.__parent._icon&&(this.once("spiderfied",n,this),s.__parent.spiderfy()))};s._icon&&this._map.getBounds().contains(s.getLatLng())?n():s.__parent._zoom<Math.round(this._map._zoom)?(this._map.on("moveend",h,this),this._map.panTo(s.getLatLng())):(this._map.on("moveend",h,this),this.on("animationend",h,this),s.__parent.zoomToBounds())},onAdd:function(s){this._map=s;var n,r,h;if(!isFinite(this._map.getMaxZoom()))throw"Map has no maxZoom specified";
vendor: 5,074 bytes, line 5
5for(this._featureGroup.addTo(s),this._nonPointGroup.addTo(s),this._gridClusters||this._generateInitialClusters(),this._maxLat=s.options.crs.projection.MAX_LATITUDE,n=0,r=this._needsRemoving.length;n<r;n++)h=this._needsRemoving[n],h.newlatlng=h.layer._latlng,h.layer._latlng=h.latlng;for(n=0,r=this._needsRemoving.length;n<r;n++)h=this._needsRemoving[n],this._removeLayer(h.layer,!0),h.layer._latlng=h.newlatlng;this._needsRemoving=[],this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds(),this._map.on("zoomend",this._zoomEnd,this),this._map.on("moveend",this._moveEnd,this),this._spiderfierOnAdd&&this._spiderfierOnAdd(),this._bindEvents(),r=this._needsClustering,this._needsClustering=[],this.addLayers(r,!0)},onRemove:function(s){s.off("zoomend",this._zoomEnd,this),s.off("moveend",this._moveEnd,this),this._unbindEvents(),this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim",""),this._spiderfierOnRemove&&this._spiderfierOnRemove(),delete this._maxLat,this._hideCoverage(),this._featureGroup.remove(),this._nonPointGroup.remove(),this._featureGroup.clearLayers(),this._map=null},getVisibleParent:function(s){for(var n=s;n&&!n._icon;)n=n.__parent;return n||null},_arraySplice:function(s,n){for(var r=s.length-1;r>=0;r--)if(s[r]===n)return s.splice(r,1),!0},_removeFromGridUnclustered:function(s,n){for(var r=this._map,h=this._gridUnclustered,l=Math.floor(this._map.getMinZoom());n>=l&&h[n].removeObject(s,r.project(s.getLatLng(),n));n--);},_childMarkerDragStart:function(s){s.target.__dragStart=s.target._latlng},_childMarkerMoved:function(s){if(!this._ignoreMove&&!s.target.__dragStart){var n=s.target._popup&&s.target._popup.isOpen();this._moveChild(s.target,s.oldLatLng,s.latlng),n&&s.target.openPopup()}},_moveChild:function(s,n,r){s._latlng=n,this.removeLayer(s),s._latlng=r,this.addLayer(s)},_childMarkerDragEnd:function(s){var n=s.target.__dragStart;delete s.target.__dragStart,n&&this._moveChild(s.target,n,s.target._latlng)},_removeLayer:function(s,n,r){var h=this._gridClusters,l=this._gridUnclustered,f=this._featureGroup,u=this._map,c=Math.floor(this._map.getMinZoom());n&&this._removeFromGridUnclustered(s,this._maxZoom);var _=s.__parent,d=_._markers,v;for(this._arraySplice(d,s);_&&(_._childCount--,_._boundsNeedUpdate=!0,!(_._zoom<c));)n&&_._childCount<=1?(v=_._markers[0]===s?_._markers[1]:_._markers[0],h[_._zoom].removeObject(_,u.project(_._cLatLng,_._zoom)),l[_._zoom].addObject(v,u.project(v.getLatLng(),_._zoom)),this._arraySplice(_.__parent._childClusters,_),_.__parent._markers.push(v),v.__parent=_.__parent,_._icon&&(f.removeLayer(_),r||f.addLayer(v))):_._iconNeedsUpdate=!0,_=_.__parent;delete s.__parent},_isOrIsParent:function(s,n){for(;n;){if(s===n)return!0;n=n.parentNode}return!1},fire:function(s,n,r){if(n&&n.layer instanceof L.MarkerCluster){if(n.originalEvent&&this._isOrIsParent(n.layer._icon,n.originalEvent.relatedTarget))return;s="cluster"+s}L.FeatureGroup.prototype.fire.call(this,s,n,r)},listens:function(s,n){return L.FeatureGroup.prototype.listens.call(this,s,n)||L.FeatureGroup.prototype.listens.call(this,"cluster"+s,n)},_defaultIconCreateFunction:function(s){var n=s.getChildCount(),r=" marker-cluster-";return n<10?r+="small":n<100?r+="medium":r+="large",new L.DivIcon({html:"<div><span>"+n+"</span></div>",className:"marker-cluster"+r,iconSize:new L.Point(40,40)})},_bindEvents:function(){var s=this._map,n=this.options.spiderfyOnMaxZoom,r=this.options.showCoverageOnHover,h=this.options.zoomToBoundsOnClick,l=this.options.spiderfyOnEveryZoom;(n||h||l)&&this.on("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),r&&(this.on("clustermouseover",this._showCoverage,this),this.on("clustermouseout",this._hideCoverage,this),s.on("zoomend",this._hideCoverage,this))},_zoomOrSpiderfy:function(s){var n=s.layer,r=n;if(!(s.type==="clusterkeypress"&&s.originalEvent&&s.originalEvent.keyCode!==13)){for(;r._childClusters.length===1;)r=r._childClusters[0];r._zoom===this._maxZoom&&r._childCount===n._childCount&&this.options.spiderfyOnMaxZoom?n.spiderfy():this.options.zoomToBoundsOnClick&&n.zoomToBounds(),this.options.spiderfyOnEveryZoom&&n.spiderfy(),s.originalEvent&&s.originalEvent.keyCode===13&&this._map._container.focus()}},_showCoverage:function(s){var n=this._map;this._inZoomAnimation||(this._shownPolygon&&n.removeLayer(this._shownPolygon),s.layer.getChildCount()>2&&s.layer!==this._spiderfied&&(this._shownPolygon=new L.Polygon(s.layer.getConvexHull(),this.options.polygonOptions),n.addLayer(this._shownPolygon)))},_hideCoverage:function(){this._shownPolygon&&(this._map.removeLayer(this._shownPolygon),this._shownPolygon=null)},_unbindEvents:function(){var s=this.options.spiderfyOnMaxZoom,n=this.options.showCoverageOnHover,r=this.options.zoomToBoundsOnClick,h=this.options.spiderfyOnEveryZoom,l=this._map;(s||r||h)&&this.off("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),n&&(this.off("clustermouseover",this._showCoverage,this),this.off("clustermouseout",this._hideCoverage,this),l.off("zoomend",this._hideCoverage,this))}
5,_zoomEnd:function(){this._map&&(this._mergeSplitClusters(),this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds())},_moveEnd:function(){if(!this._inZoomAnimation){var s=this._getExpandedVisibleBounds();this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,s),this._topClusterLevel._recursivelyAddChildrenToMap(null,Math.round(this._map._zoom),s),this._currentShownBounds=s}},_generateInitialClusters:function(){var s=Math.ceil(this._map.getMaxZoom()),n=Math.floor(this._map.getMinZoom()),r=this.options.maxClusterRadius,h=r;typeof r!="function"&&(h=function(){return r}),this.options.disableClusteringAtZoom!==null&&(s=this.options.disableClusteringAtZoom-1),this._maxZoom=s,this._gridClusters={},this._gridUnclustered={};for(var l=s;l>=n;l--)this._gridClusters[l]=new L.DistanceGrid(h(l)),this._gridUnclustered[l]=new L.DistanceGrid(h(l));this._topClusterLevel=new this._markerCluster(this,n-1)},_addLayer:function(s,n){var r=this._gridClusters,h=this._gridUnclustered,l=Math.floor(this._map.getMinZoom()),f,u;for(this.options.singleMarkerMode&&this._overrideMarkerIcon(s),s.on(this._childMarkerEventHandlers,this);n>=l;n--){f=this._map.project(s.getLatLng(),n);var c=r[n].getNearObject(f);if(c){c._addChild(s),s.__parent=c;return}if(c=h[n].getNearObject(f),c){var _=c.__parent;_&&this._removeLayer(c,!1);var d=new this._markerCluster(this,n,c,s);r[n].addObject(d,this._map.project(d._cLatLng,n)),c.__parent=d,s.__parent=d;var v=d;for(u=n-1;u>_._zoom;u--)v=new this._markerCluster(this,u,v),r[u].addObject(v,this._map.project(c.getLatLng(),u));_._addChild(v),this._removeFromGridUnclustered(c,n);return}h[n].addObject(s,f)}this._topClusterLevel._addChild(s),s.__parent=this._topClusterLevel},_refreshClustersIcons:function(){this._featureGroup.eachLayer(function(s){s instanceof L.MarkerCluster&&s._iconNeedsUpdate&&s._updateIcon()})},_enqueue:function(s){this._queue.push(s),this._queueTimeout||(this._queueTimeout=setTimeout(L.bind(this._processQueue,this),300))},_processQueue:function(){for(var s=0;s<this._queue.length;s++)this._queue[s].call(this);this._queue.length=0,clearTimeout(this._queueTimeout),this._queueTimeout=null},_mergeSplitClusters:function(){var s=Math.round(this._map._zoom);this._processQueue(),this._zoom<s&&this._currentShownBounds.intersects(this._getExpandedVisibleBounds())?(this._animationStart(),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,this._getExpandedVisibleBounds()),this._animationZoomIn(this._zoom,s)):this._zoom>s?(this._animationStart(),this._animationZoomOut(this._zoom,s)):this._moveEnd()},_getExpandedVisibleBounds:function(){if(this.options.removeOutsideVisibleBounds){if(L.Browser.mobile)return this._checkBoundsMaxLat(this._map.getBounds())}else return this._mapBoundsInfinite;return this._checkBoundsMaxLat(this._map.getBounds().pad(1))},_checkBoundsMaxLat:function(s){var n=this._maxLat;return n!==void 0&&(s.getNorth()>=n&&(s._northEast.lat=1/0),s.getSouth()<=-n&&(s._southWest.lat=-1/0)),s},_animationAddLayerNonAnimated:function(s,n){if(n===s)this._featureGroup.addLayer(s);else if(n._childCount===2){n._addToMap();var r=n.getAllChildMarkers();this._featureGroup.removeLayer(r[0]),this._featureGroup.removeLayer(r[1])}else n._updateIcon()},_extractNonGroupLayers:function(s,n){var r=s.getLayers(),h=0,l;for(n=n||[];h<r.length;h++){if(l=r[h],l instanceof L.LayerGroup){this._extractNonGroupLayers(l,n);continue}n.push(l)}return n},_overrideMarkerIcon:function(s){var n=s.options.icon=this.options.iconCreateFunction({getChildCount:function(){return 1},getAllChildMarkers:function(){return[s]}});return n}});L.MarkerClusterGroup.include({_mapBoundsInfinite:new L.LatLngBounds(new L.LatLng(-1/0,-1/0),new L.LatLng(1/0,1/0))}),L.MarkerClusterGroup.include({_noAnimation:{_animationStart:function(){},_animationZoomIn:function(s,n){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),s),this._topClusterLevel._recursivelyAddChildrenToMap(null,n,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationZoomOut:function(s,n){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),s),this._topClusterLevel._recursivelyAddChildrenToMap(null,n,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationAddLayer:function(s,n){this._animationAddLayerNonAnimated(s,n)}},_withAnimation:{_animationStart:function(){this._map._mapPane.className+=" leaflet-cluster-anim",this._inZoomAnimation++},_animationZoomIn:function(s,n){var r=this._getExpandedVisibleBounds(),h=this._featureGroup,l=Math.floor(this._map.getMinZoom()),f;this._ignoreMove=!0,this._topClusterLevel._recursively(r,s,l,function(u){var c=u._latlng,_=u._markers,d;for(r.contains(c)||(c=null),u._isSingleParent()&&s+1===n?(h.removeLayer(u),u._recursivelyAddChildrenToMap(null,n,r)):(u.clusterHide(),u._recursivelyAddChildrenToMap(c,n,r)),f=_.length-1;f>=0;
vendor: 7,792 bytes, line 5
5f--)d=_[f],r.contains(d._latlng)||h.removeLayer(d)}),this._forceLayout(),this._topClusterLevel._recursivelyBecomeVisible(r,n),h.eachLayer(function(u){!(u instanceof L.MarkerCluster)&&u._icon&&u.clusterShow()}),this._topClusterLevel._recursively(r,s,n,function(u){u._recursivelyRestoreChildPositions(n)}),this._ignoreMove=!1,this._enqueue(function(){this._topClusterLevel._recursively(r,s,l,function(u){h.removeLayer(u),u.clusterShow()}),this._animationEnd()})},_animationZoomOut:function(s,n){this._animationZoomOutSingle(this._topClusterLevel,s-1,n),this._topClusterLevel._recursivelyAddChildrenToMap(null,n,this._getExpandedVisibleBounds()),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),s,this._getExpandedVisibleBounds())},_animationAddLayer:function(s,n){var r=this,h=this._featureGroup;h.addLayer(s),n!==s&&(n._childCount>2?(n._updateIcon(),this._forceLayout(),this._animationStart(),s._setPos(this._map.latLngToLayerPoint(n.getLatLng())),s.clusterHide(),this._enqueue(function(){h.removeLayer(s),s.clusterShow(),r._animationEnd()})):(this._forceLayout(),r._animationStart(),r._animationZoomOutSingle(n,this._map.getMaxZoom(),this._zoom)))}},_animationZoomOutSingle:function(s,n,r){var h=this._getExpandedVisibleBounds(),l=Math.floor(this._map.getMinZoom());s._recursivelyAnimateChildrenInAndAddSelfToMap(h,l,n+1,r);var f=this;this._forceLayout(),s._recursivelyBecomeVisible(h,r),this._enqueue(function(){if(s._childCount===1){var u=s._markers[0];this._ignoreMove=!0,u.setLatLng(u.getLatLng()),this._ignoreMove=!1,u.clusterShow&&u.clusterShow()}else s._recursively(h,r,l,function(c){c._recursivelyRemoveChildrenFromMap(h,l,n+1)});f._animationEnd()})},_animationEnd:function(){this._map&&(this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim","")),this._inZoomAnimation--,this.fire("animationend")},_forceLayout:function(){L.Util.falseFn(document.body.offsetWidth)}}),L.markerClusterGroup=function(s){return new L.MarkerClusterGroup(s)};var o=L.MarkerCluster=L.Marker.extend({options:L.Icon.prototype.options,initialize:function(s,n,r,h){L.Marker.prototype.initialize.call(this,r?r._cLatLng||r.getLatLng():new L.LatLng(0,0),{icon:this,pane:s.options.clusterPane}),this._group=s,this._zoom=n,this._markers=[],this._childClusters=[],this._childCount=0,this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._bounds=new L.LatLngBounds,r&&this._addChild(r),h&&this._addChild(h)},getAllChildMarkers:function(s,n){s=s||[];for(var r=this._childClusters.length-1;r>=0;r--)this._childClusters[r].getAllChildMarkers(s,n);for(var h=this._markers.length-1;h>=0;h--)n&&this._markers[h].__dragStart||s.push(this._markers[h]);return s},getChildCount:function(){return this._childCount},zoomToBounds:function(s){for(var n=this._childClusters.slice(),r=this._group._map,h=r.getBoundsZoom(this._bounds),l=this._zoom+1,f=r.getZoom(),u;n.length>0&&h>l;){l++;var c=[];for(u=0;u<n.length;u++)c=c.concat(n[u]._childClusters);n=c}h>l?this._group._map.setView(this._latlng,l):h<=f?this._group._map.setView(this._latlng,f+1):this._group._map.fitBounds(this._bounds,s)},getBounds:function(){var s=new L.LatLngBounds;return s.extend(this._bounds),s},_updateIcon:function(){this._iconNeedsUpdate=!0,this._icon&&this.setIcon(this)},createIcon:function(){return this._iconNeedsUpdate&&(this._iconObj=this._group.options.iconCreateFunction(this),this._iconNeedsUpdate=!1),this._iconObj.createIcon()},createShadow:function(){return this._iconObj.createShadow()},_addChild:function(s,n){this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._setClusterCenter(s),s instanceof L.MarkerCluster?(n||(this._childClusters.push(s),s.__parent=this),this._childCount+=s._childCount):(n||this._markers.push(s),this._childCount++),this.__parent&&this.__parent._addChild(s,!0)},_setClusterCenter:function(s){this._cLatLng||(this._cLatLng=s._cLatLng||s._latlng)},_resetBounds:function(){var s=this._bounds;s._southWest&&(s._southWest.lat=1/0,s._southWest.lng=1/0),s._northEast&&(s._northEast.lat=-1/0,s._northEast.lng=-1/0)},_recalculateBounds:function(){var s=this._markers,n=this._childClusters,r=0,h=0,l=this._childCount,f,u,c,_;if(l!==0){for(this._resetBounds(),f=0;f<s.length;f++)c=s[f]._latlng,this._bounds.extend(c),r+=c.lat,h+=c.lng;for(f=0;f<n.length;f++)u=n[f],u._boundsNeedUpdate&&u._recalculateBounds(),this._bounds.extend(u._bounds),c=u._wLatLng,_=u._childCount,r+=c.lat*_,h+=c.lng*_;this._latlng=this._wLatLng=new L.LatLng(r/l,h/l),this._boundsNeedUpdate=!1}},_addToMap:function(s){s&&(this._backupLatlng=this._latlng,this.setLatLng(s)),this._group._featureGroup.addLayer(this)},_recursivelyAnimateChildrenIn:function(s,n,r){this._recursively(s,this._group._map.getMinZoom(),r-1,function(h){var l=h._markers,f,u;for(f=l.length-1;f>=0;f--)u=l[f],u._icon&&(u._setPos(n),u.clusterHide())},function(h){var l=h._childClusters,f,u;for(f=l.length-1;f>=0;f--)u=l[f],u._icon&&(u._setPos(n),u.clusterHide())})},_recursivelyAnimateChildrenInAndAddSelfToMap:function(s,n,r,h){this._recursively(s,h,n,function(l){l._recursivelyAnimateChildrenIn(s,l._group._map.latLngToLayerPoint(l.getLatLng()).round(),r),l._isSingleParent()&&r-1===h?(l.clusterShow(),l._recursivelyRemoveChildrenFromMap(s,n,r)):l.clusterHide(),l._addToMap()})},_recursivelyBecomeVisible:function(s,n){this._recursively(s,this._group._map.getMinZoom(),n,null,function(r){r.clusterShow()})},_recursivelyAddChildrenToMap:function(s,n,r){this._recursively(r,this._group._map.getMinZoom()-1,n,function(h){if(n!==h._zoom)for(var l=h._markers.length-1;l>=0;l--){var f=h._markers[l];r.contains(f._latlng)&&(s&&(f._backupLatlng=f.getLatLng(),f.setLatLng(s),f.clusterHide&&f.clusterHide()),h._group._featureGroup.addLayer(f))}},function(h){h._addToMap(s)})},_recursivelyRestoreChildPositions:function(s){for(var n=this._markers.length-1;n>=0;n--){var r=this._markers[n];r._backupLatlng&&(r.setLatLng(r._backupLatlng),delete r._backupLatlng)}if(s-1===this._zoom)for(var h=this._childClusters.length-1;h>=0;h--)this._childClusters[h]._restorePosition();else for(var l=this._childClusters.length-1;l>=0;l--)this._childClusters[l]._recursivelyRestoreChildPositions(s)},_restorePosition:function(){this._backupLatlng&&(this.setLatLng(this._backupLatlng),delete this._backupLatlng)},_recursivelyRemoveChildrenFromMap:function(s,n,r,h){var l,f;this._recursively(s,n-1,r-1,function(u){for(f=u._markers.length-1;f>=0;f--)l=u._markers[f],(!h||!h.contains(l._latlng))&&(u._group._featureGroup.removeLayer(l),l.clusterShow&&l.clusterShow())},function(u){for(f=u._childClusters.length-1;f>=0;f--)l=u._childClusters[f],(!h||!h.contains(l._latlng))&&(u._group._featureGroup.removeLayer(l),l.clusterShow&&l.clusterShow())})},_recursively:function(s,n,r,h,l){var f=this._childClusters,u=this._zoom,c,_;if(n<=u&&(h&&h(this),l&&u===r&&l(this)),u<n||u<r)for(c=f.length-1;c>=0;c--)_=f[c],_._boundsNeedUpdate&&_._recalculateBounds(),s.intersects(_._bounds)&&_._recursively(s,n,r,h,l)},_isSingleParent:function(){return this._childClusters.length>0&&this._childClusters[0]._childCount===this._childCount}});L.Marker.include({clusterHide:function(){var s=this.options.opacity;return this.setOpacity(0),this.options.opacity=s,this},clusterShow:function(){return this.setOpacity(this.options.opacity)}}),L.DistanceGrid=function(s){this._cellSize=s,this._sqCellSize=s*s,this._grid={},this._objectPoint={}},L.DistanceGrid.prototype={addObject:function(s,n){var r=this._getCoord(n.x),h=this._getCoord(n.y),l=this._grid,f=l[h]=l[h]||{},u=f[r]=f[r]||[],c=L.Util.stamp(s);this._objectPoint[c]=n,u.push(s)},updateObject:function(s,n){this.removeObject(s),this.addObject(s,n)},removeObject:function(s,n){var r=this._getCoord(n.x),h=this._getCoord(n.y),l=this._grid,f=l[h]=l[h]||{},u=f[r]=f[r]||[],c,_;
vendor: 6,061 bytes, line 5
5for(delete this._objectPoint[L.Util.stamp(s)],c=0,_=u.length;c<_;c++)if(u[c]===s)return u.splice(c,1),_===1&&delete f[r],!0},eachObject:function(s,n){var r,h,l,f,u,c,_,d=this._grid;for(r in d){u=d[r];for(h in u)for(c=u[h],l=0,f=c.length;l<f;l++)_=s.call(n,c[l]),_&&(l--,f--)}},getNearObject:function(s){var n=this._getCoord(s.x),r=this._getCoord(s.y),h,l,f,u,c,_,d,v,g=this._objectPoint,m=this._sqCellSize,p=null;for(h=r-1;h<=r+1;h++)if(u=this._grid[h],u){for(l=n-1;l<=n+1;l++)if(c=u[l],c)for(f=0,_=c.length;f<_;f++)d=c[f],v=this._sqDist(g[L.Util.stamp(d)],s),(v<m||v<=m&&p===null)&&(m=v,p=d)}return p},_getCoord:function(s){var n=Math.floor(s/this._cellSize);return isFinite(n)?n:s},_sqDist:function(s,n){var r=n.x-s.x,h=n.y-s.y;return r*r+h*h}},(function(){L.QuickHull={getDistant:function(s,n){var r=n[1].lat-n[0].lat,h=n[0].lng-n[1].lng;return h*(s.lat-n[0].lat)+r*(s.lng-n[0].lng)},findMostDistantPointFromBaseLine:function(s,n){var r=0,h=null,l=[],f,u,c;for(f=n.length-1;f>=0;f--){if(u=n[f],c=this.getDistant(u,s),c>0)l.push(u);else continue;c>r&&(r=c,h=u)}return{maxPoint:h,newPoints:l}},buildConvexHull:function(s,n){var r=[],h=this.findMostDistantPointFromBaseLine(s,n);return h.maxPoint?(r=r.concat(this.buildConvexHull([s[0],h.maxPoint],h.newPoints)),r=r.concat(this.buildConvexHull([h.maxPoint,s[1]],h.newPoints)),r):[s[0]]},getConvexHull:function(s){var n=!1,r=!1,h=!1,l=!1,f=null,u=null,c=null,_=null,d=null,v=null,g;for(g=s.length-1;g>=0;g--){var m=s[g];(n===!1||m.lat>n)&&(f=m,n=m.lat),(r===!1||m.lat<r)&&(u=m,r=m.lat),(h===!1||m.lng>h)&&(c=m,h=m.lng),(l===!1||m.lng<l)&&(_=m,l=m.lng)}r!==n?(v=u,d=f):(v=_,d=c);var p=[].concat(this.buildConvexHull([v,d],s),this.buildConvexHull([d,v],s));return p}}})(),L.MarkerCluster.include({getConvexHull:function(){var s=this.getAllChildMarkers(),n=[],r,h;for(h=s.length-1;h>=0;h--)r=s[h].getLatLng(),n.push(r);return L.QuickHull.getConvexHull(n)}}),L.MarkerCluster.include({_2PI:Math.PI*2,_circleFootSeparation:25,_circleStartAngle:0,_spiralFootSeparation:28,_spiralLengthStart:11,_spiralLengthFactor:5,_circleSpiralSwitchover:9,spiderfy:function(){if(!(this._group._spiderfied===this||this._group._inZoomAnimation)){var s=this.getAllChildMarkers(null,!0),n=this._group,r=n._map,h=r.latLngToLayerPoint(this._latlng),l;this._group._unspiderfy(),this._group._spiderfied=this,this._group.options.spiderfyShapePositions?l=this._group.options.spiderfyShapePositions(s.length,h):s.length>=this._circleSpiralSwitchover?l=this._generatePointsSpiral(s.length,h):(h.y+=10,l=this._generatePointsCircle(s.length,h)),this._animationSpiderfy(s,l)}},unspiderfy:function(s){this._group._inZoomAnimation||(this._animationUnspiderfy(s),this._group._spiderfied=null)},_generatePointsCircle:function(s,n){var r=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+s),h=r/this._2PI,l=this._2PI/s,f=[],u,c;for(h=Math.max(h,35),f.length=s,u=0;u<s;u++)c=this._circleStartAngle+u*l,f[u]=new L.Point(n.x+h*Math.cos(c),n.y+h*Math.sin(c))._round();return f},_generatePointsSpiral:function(s,n){var r=this._group.options.spiderfyDistanceMultiplier,h=r*this._spiralLengthStart,l=r*this._spiralFootSeparation,f=r*this._spiralLengthFactor*this._2PI,u=0,c=[],_;for(c.length=s,_=s;_>=0;_--)_<s&&(c[_]=new L.Point(n.x+h*Math.cos(u),n.y+h*Math.sin(u))._round()),u+=l/h+_*5e-4,h+=f/u;return c},_noanimationUnspiderfy:function(){var s=this._group,n=s._map,r=s._featureGroup,h=this.getAllChildMarkers(null,!0),l,f;for(s._ignoreMove=!0,this.setOpacity(1),f=h.length-1;f>=0;f--)l=h[f],r.removeLayer(l),l._preSpiderfyLatlng&&(l.setLatLng(l._preSpiderfyLatlng),delete l._preSpiderfyLatlng),l.setZIndexOffset&&l.setZIndexOffset(0),l._spiderLeg&&(n.removeLayer(l._spiderLeg),delete l._spiderLeg);s.fire("unspiderfied",{cluster:this,markers:h}),s._ignoreMove=!1,s._spiderfied=null}}),L.MarkerClusterNonAnimated=L.MarkerCluster.extend({_animationSpiderfy:function(s,n){var r=this._group,h=r._map,l=r._featureGroup,f=this._group.options.spiderLegPolylineOptions,u,c,_,d;for(r._ignoreMove=!0,u=0;u<s.length;u++)d=h.layerPointToLatLng(n[u]),c=s[u],_=new L.Polyline([this._latlng,d],f),h.addLayer(_),c._spiderLeg=_,c._preSpiderfyLatlng=c._latlng,c.setLatLng(d),c.setZIndexOffset&&c.setZIndexOffset(1e6),l.addLayer(c);this.setOpacity(.3),r._ignoreMove=!1,r.fire("spiderfied",{cluster:this,markers:s})},_animationUnspiderfy:function(){this._noanimationUnspiderfy()}}),L.MarkerCluster.include({_animationSpiderfy:function(s,n){var r=this,h=this._group,l=h._map,f=h._featureGroup,u=this._latlng,c=l.latLngToLayerPoint(u),_=L.Path.SVG,d=L.extend({},this._group.options.spiderLegPolylineOptions),v=d.opacity,g,m,p,b,E,w;for(v===void 0&&(v=L.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity),_?(d.opacity=0,d.className=(d.className||"")+" leaflet-cluster-spider-leg"):d.opacity=v,h._ignoreMove=!0,g=0;g<s.length;g++)m=s[g],w=l.layerPointToLatLng(n[g]),p=new L.Polyline([u,w],d),l.addLayer(p),m._spiderLeg=p,_&&(b=p._path,E=b.getTotalLength()+.1,b.style.strokeDasharray=E,b.style.strokeDashoffset=E),m.setZIndexOffset&&m.setZIndexOffset(1e6),m.clusterHide&&m.clusterHide(),f.addLayer(m),m._setPos&&m._setPos(c);for(h._forceLayout(),h._animationStart(),g=s.length-1;g>=0;g--)w=l.layerPointToLatLng(n[g]),m=s[g],m._preSpiderfyLatlng=m._latlng,m.setLatLng(w),m.clusterShow&&m.clusterShow(),_&&(p=m._spiderLeg,b=p._path,b.style.strokeDashoffset=0,p.setStyle({opacity:v}));this.setOpacity(.3),h._ignoreMove=!1,setTimeout(function(){h._animationEnd(),h.fire("spiderfied",{cluster:r,markers:s})},200)},_animationUnspiderfy:function(s){var n=this,r=this._group,h=r._map,l=r._featureGroup,f=s?h._latLngToNewLayerPoint(this._latlng,s.zoom,s.center):h.latLngToLayerPoint(this._latlng),u=this.getAllChildMarkers(null,!0),c=L.Path.SVG,_,d,v,g,m,p;for(r._ignoreMove=!0,r._animationStart(),this.setOpacity(1),d=u.length-1;d>=0;d--)_=u[d],_._preSpiderfyLatlng&&(_.closePopup(),_.setLatLng(_._preSpiderfyLatlng),delete _._preSpiderfyLatlng,p=!0,_._setPos&&(_._setPos(f),p=!1),_.clusterHide&&(_.clusterHide(),p=!1),p&&l.removeLayer(_),c&&
5(v=_._spiderLeg,g=v._path,m=g.getTotalLength()+.1,g.style.strokeDashoffset=m,v.setStyle({opacity:0})));r._ignoreMove=!1,setTimeout(function(){var b=0;for(d=u.length-1;d>=0;d--)_=u[d],_._spiderLeg&&b++;for(d=u.length-1;d>=0;d--)_=u[d],_._spiderLeg&&(_.clusterShow&&_.clusterShow(),_.setZIndexOffset&&_.setZIndexOffset(0),b>1&&l.removeLayer(_),h.removeLayer(_._spiderLeg),delete _._spiderLeg);r._animationEnd(),r.fire("unspiderfied",{cluster:n,markers:u})},200)}}),L.MarkerClusterGroup.include({_spiderfied:null,unspiderfy:function(){this._unspiderfy.apply(this,arguments)},_spiderfierOnAdd:function(){this._map.on("click",this._unspiderfyWrapper,this),this._map.options.zoomAnimation&&this._map.on("zoomstart",this._unspiderfyZoomStart,this),this._map.on("zoomend",this._noanimationUnspiderfy,this),L.Browser.touch||this._map.getRenderer(this)},_spiderfierOnRemove:function(){this._map.off("click",this._unspiderfyWrapper,this),this._map.off("zoomstart",this._unspiderfyZoomStart,this),this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._map.off("zoomend",this._noanimationUnspiderfy,this),this._noanimationUnspiderfy()},_unspiderfyZoomStart:function(){this._map&&this._map.on("zoomanim",this._unspiderfyZoomAnim,this)},_unspiderfyZoomAnim:function(s){L.DomUtil.hasClass(this._map._mapPane,"leaflet-touching")||(this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._unspiderfy(s))},_unspiderfyWrapper:function(){this._unspiderfy()},_unspiderfy:function(s){this._spiderfied&&this._spiderfied.unspiderfy(s)},_noanimationUnspiderfy:function(){this._spiderfied&&this._spiderfied._noanimationUnspiderfy()},_unspiderfyLayer:function(s){s._spiderLeg&&(this._featureGroup.removeLayer(s),s.clusterShow&&s.clusterShow(),s.setZIndexOffset&&s.setZIndexOffset(0),this._map.removeLayer(s._spiderLeg),delete s._spiderLeg)}}),L.MarkerClusterGroup.include({refreshClusters:function(s){return s?s instanceof L.MarkerClusterGroup?s=s._topClusterLevel.getAllChildMarkers():s instanceof L.LayerGroup?s=s._layers:s instanceof L.MarkerCluster?s=s.getAllChildMarkers():s instanceof L.Marker&&(s=[s]):s=this._topClusterLevel.getAllChildMarkers(),this._flagParentsIconsNeedUpdate(s),this._refreshClustersIcons(),this.options.singleMarkerMode&&this._refreshSingleMarkerModeMarkers(s),this},_flagParentsIconsNeedUpdate:function(s){var n,r;for(n in s)for(r=s[n].__parent;r;)r._iconNeedsUpdate=!0,r=r.__parent},_refreshSingleMarkerModeMarkers:function(s){var n,r;for(n in s)r=s[n],this.hasLayer(r)&&r.setIcon(this._overrideMarkerIcon(r))}}),L.Marker.include({refreshIconOptions:function(s,n){var r=this.options.icon;return L.setOptions(r,s),this.setIcon(r),n&&this.__parent&&this.__parent._group.refreshClusters(this),this}}),i.MarkerClusterGroup=a,i.MarkerCluster=o,Object.defineProperty(i,"__esModule",{value:!0})})})(Zi,Zi.exports);const Hi=(t,e)=>{let i;return(...a)=>{const o=()=>(i=void 0,t.apply(void 0,a));clearTimeout(i),i=setTimeout(o,e)}},{featureGroupProps:Vl,setupFeatureGroup:Ql}=bs.FeatureGroup,{AddLayerInjection:Jl,RemoveLayerInjection:Xl}=Ki,{propsToLeafletOptions:Kl}=Ji,Yl=["layeradd","layerremove","click","dblclick","mousedown","mouseup","mouseover","mouseout","contextmenu"],Wi=[...Yl,"clusterclick","clustermouseover","clustermouseout","animationend","spiderfied","unspiderfied"],Qs={...Vl,maxClusterRadius:{type:[Number,Function],default:80},clusterPane:{type:String,default:"markerPane"},spiderfyOnEveryZoom:{type:Boolean,default:!1},spiderfyOnMaxZoom:{type:Boolean,default:!0},showCoverageOnHover:{type:Boolean,default:!0},zoomToBoundsOnClick:{type:Boolean,default:!0},singleMarkerMode:{type:Boolean,default:!1},disableClusteringAtZoom:{type:Number,default:null},removeOutsideVisibleBounds:{type:Boolean,default:!0},animate:{type:Boolean,default:!0},animateAddingMarkers:{type:Boolean,default:!1},spiderfyShapePositions:{type:Function,default:null},spiderfyDistanceMultiplier:{type:Number,default:1},spiderLegPolylineOptions:{type:Object,default:()=>({weight:1.5,color:"#222",opacity:.5})},chunkedLoading:{type:Boolean,default:!1},chunkInterval:{type:Number,default:200},chunkDelay:{type:Number,default:50},chunkProgress:{type:Function,default:null},polygonOptions:{type:Object,default:()=>({})},iconCreateFunction:{type:Function,default:null}},t0=(t,e,i)=>{const{options:a,methods:o}=Ql(t,e,i),s=Kl(t,Qs,a);let n=[];const r=Hi(()=>{var u,c;n.length===1?(u=e.value)==null||u.addLayer(n[0]):(c=e.value)==null||c.addLayers(n),n=[]},0);let h=[];const l=Hi(()=>{var u,c;h.length===1?(u=e.value)==null||u.removeLayer(h[0]):(c=e.value)==null||c.removeLayers(h),h=[]},0),f={...o,addLayer(u){var c;if(t.animateAddingMarkers)return(c=e.value)==null?void 0:c.addLayer(u.leafletObject);n.push(u.leafletObject),r()},removeLayer(u){var c;if(t.animateAddingMarkers)return(c=e.value)==null?void 0:c.removeLayer(u.leafletObject);h.push(u.leafletObject),l()}
5,setMaxClusterRadius(){throw new Error("Max cluster radius can't be set dynamically")},setClusterPane(){throw new Error("Cluster pane can't be set dynamically")},setSpiderfyOnEveryZoom(u){e.value&&(e.value._unbindEvents(),e.value.options.spiderfyOnEveryZoom=u,e.value._bindEvents())},setSpiderfyOnMaxZoom(u){e.value&&(e.value._unbindEvents(),e.value.options.spiderfyOnMaxZoom=u,e.value._bindEvents())},setShowCoverageOnHover(u){e.value&&(e.value._unbindEvents(),e.value.options.showCoverageOnHover=u,e.value._bindEvents())},setZoomToBoundsOnClick(u){e.value&&(e.value._unbindEvents(),e.value.options.zoomToBoundsOnClick=u,e.value._bindEvents())},setSingleMarkerMode(){throw new Error("Single marker mode can't be set dynamically")},setDisableClusteringAtZoom(){throw new Error("Disable Clustering at zoom can't be set dynamically")},setRemoveOutsideVisibleBounds(u){e.value&&(e.value.options.removeOutsideVisibleBounds=u)},setAnimate(){throw new Error("Animate can't be set dynamically")},setAnimateAddingMarkers(u){e.value&&(e.value.options.animateAddingMarkers=u)},setSpiderfyShapePositions(u){e.value&&(e.value.options.spiderfyShapePositions=u)},setSpiderfyDistanceMultiplier(u){e.value&&(e.value.options.spiderfyDistanceMultiplier=u)},setSpiderLegPolylineOptions(u){e.value&&(e.value.options.spiderLegPolylineOptions=u)},setChunkedLoading(u){e.value&&(e.value.options.chunkedLoading=u)},setChunkInterval(u){e.value&&(e.value.options.chunkInterval=u)},setChunkDelay(u){e.value&&(e.value.options.chunkDelay=u)},setChunkProgress(u){e.value&&(e.value.options.chunkProgress=u)},setPolygonOptions(u){e.value&&(e.value.options.polygonOptions=u)},setIconCreateFunction(u){e.value&&(e.value._unbindEvents(),e.value.options.iconCreateFunction=u,e.value._bindEvents())}};return V(Jl,f.addLayer),V(Xl,f.removeLayer),{options:s,methods:f}},{propsBinder:e0,assertInject:i0,WINDOW_OR_GLOBAL:s0}=Ji,{AddLayerInjection:a0}=Ki,{render:r0}=bs.Layer,m0={props:Qs,emits:["ready",...Wi],setup(t,e){const i=k(),a=k(!1),o=i0(a0),{methods:s,options:n}=t0(t,i,e);return et(async()=>{var r;const{markerClusterGroup:h}=s0.L;i.value=ot(h(n));const l=u=>c=>e.emit(u,c),f=()=>{const u={};for(const c of Wi)u[c]=l(c);return u};(r=i.value)==null||r.on(f()),e0(s,i.value,t),o({...t,...s,leafletObject:i.value}),a.value=!0,K(()=>e.emit("ready",i.value))}),{ready:a,leafletObject:i}},render(){return r0(this.ready,this.$slots)}};export{l0 as R,h0 as V,m0 as Y,g0 as f,f0 as i,c0 as s,u0 as t,_0 as u,v0 as v,d0 as y};
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.