@signalk/freeboard-sk
Version:
Openlayers chart plotter implementation for Signal K
1 lines • 3.2 MB
JavaScript
(self.webpackChunkfreeboard_sk=self.webpackChunkfreeboard_sk||[]).push([[792],{51:_e=>{"use strict";const j="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...k)=>console.error("SEMVER",...k):()=>{};_e.exports=j},170:function(_e,j,k){(function(){var B,v={}.hasOwnProperty;B=k(9213),_e.exports=function(W){function Y(E){Y.__super__.constructor.call(this,E),this.value=""}return function(W,Y){for(var E in Y)v.call(Y,E)&&(W[E]=Y[E]);function O(){this.constructor=W}O.prototype=Y.prototype,W.prototype=new O,W.__super__=Y.prototype}(Y,W),Object.defineProperty(Y.prototype,"data",{get:function(){return this.value},set:function(E){return this.value=E||""}}),Object.defineProperty(Y.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(Y.prototype,"textContent",{get:function(){return this.value},set:function(E){return this.value=E||""}}),Y.prototype.clone=function(){return Object.create(this)},Y.prototype.substringData=function(E,O){throw new Error("This DOM method is not implemented."+this.debugInfo())},Y.prototype.appendData=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},Y.prototype.insertData=function(E,O){throw new Error("This DOM method is not implemented."+this.debugInfo())},Y.prototype.deleteData=function(E,O){throw new Error("This DOM method is not implemented."+this.debugInfo())},Y.prototype.replaceData=function(E,O,I){throw new Error("This DOM method is not implemented."+this.debugInfo())},Y.prototype.isEqualNode=function(E){return!(!Y.__super__.isEqualNode.apply(this,arguments).isEqualNode(E)||E.data!==this.data)},Y}(B)}).call(this)},178:(_e,j,k)=>{"use strict";const N=/\s+/g;class B{constructor(ze,je){if(je=W(je),ze instanceof B)return ze.loose===!!je.loose&&ze.includePrerelease===!!je.includePrerelease?ze:new B(ze.raw,je);if(ze instanceof Y)return this.raw=ze.value,this.set=[[ze]],this.formatted=void 0,this;if(this.options=je,this.loose=!!je.loose,this.includePrerelease=!!je.includePrerelease,this.raw=ze.trim().replace(N," "),this.set=this.raw.split("||").map(Je=>this.parseRange(Je.trim())).filter(Je=>Je.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const Je=this.set[0];if(this.set=this.set.filter(ot=>!me(ot[0])),0===this.set.length)this.set=[Je];else if(this.set.length>1)for(const ot of this.set)if(1===ot.length&&Ne(ot[0])){this.set=[ot];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let ze=0;ze<this.set.length;ze++){ze>0&&(this.formatted+="||");const je=this.set[ze];for(let Je=0;Je<je.length;Je++)Je>0&&(this.formatted+=" "),this.formatted+=je[Je].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(ze){const Je=((this.options.includePrerelease&&U)|(this.options.loose&&de))+":"+ze,ot=v.get(Je);if(ot)return ot;const wt=this.options.loose;ze=ze.replace(wt?I[z.HYPHENRANGELOOSE]:I[z.HYPHENRANGE],He(this.options.includePrerelease)),E("hyphen replace",ze),ze=ze.replace(I[z.COMPARATORTRIM],X),E("comparator trim",ze),ze=ze.replace(I[z.TILDETRIM],ee),E("tilde trim",ze),ze=ze.replace(I[z.CARETTRIM],q),E("caret trim",ze);let an=ze.split(" ").map($t=>ce($t,this.options)).join(" ").split(/\s+/).map($t=>De($t,this.options));wt&&(an=an.filter($t=>(E("loose invalid filter",$t,this.options),!!$t.match(I[z.COMPARATORLOOSE])))),E("range list",an);const Kt=new Map,yn=an.map($t=>new Y($t,this.options));for(const $t of yn){if(me($t))return[$t];Kt.set($t.value,$t)}Kt.size>1&&Kt.has("")&&Kt.delete("");const ri=[...Kt.values()];return v.set(Je,ri),ri}intersects(ze,je){if(!(ze instanceof B))throw new TypeError("a Range is required");return this.set.some(Je=>be(Je,je)&&ze.set.some(ot=>be(ot,je)&&Je.every(wt=>ot.every(Vt=>wt.intersects(Vt,je)))))}test(ze){if(!ze)return!1;if("string"==typeof ze)try{ze=new O(ze,this.options)}catch{return!1}for(let je=0;je<this.set.length;je++)if(et(this.set[je],ze,this.options))return!0;return!1}}_e.exports=B;const v=new(k(5363)),W=k(8016),Y=k(4119),E=k(51),O=k(319),{safeRe:I,t:z,comparatorTrimReplace:X,tildeTrimReplace:ee,caretTrimReplace:q}=k(8267),{FLAG_INCLUDE_PRERELEASE:U,FLAG_LOOSE:de}=k(9473),me=Te=>"<0.0.0-0"===Te.value,Ne=Te=>""===Te.value,be=(Te,ze)=>{let je=!0;const Je=Te.slice();let ot=Je.pop();for(;je&&Je.length;)je=Je.every(wt=>ot.intersects(wt,ze)),ot=Je.pop();return je},ce=(Te,ze)=>(E("comp",Te,ze),Te=Q(Te,ze),E("caret",Te),Te=G(Te,ze),E("tildes",Te),Te=$(Te,ze),E("xrange",Te),Te=fe(Te,ze),E("stars",Te),Te),Z=Te=>!Te||"x"===Te.toLowerCase()||"*"===Te,G=(Te,ze)=>Te.trim().split(/\s+/).map(je=>H(je,ze)).join(" "),H=(Te,ze)=>Te.replace(ze.loose?I[z.TILDELOOSE]:I[z.TILDE],(Je,ot,wt,Vt,an)=>{let Kt;return E("tilde",Te,Je,ot,wt,Vt,an),Z(ot)?Kt="":Z(wt)?Kt=`>=${ot}.0.0 <${+ot+1}.0.0-0`:Z(Vt)?Kt=`>=${ot}.${wt}.0 <${ot}.${+wt+1}.0-0`:an?(E("replaceTilde pr",an),Kt=`>=${ot}.${wt}.${Vt}-${an} <${ot}.${+wt+1}.0-0`):Kt=`>=${ot}.${wt}.${Vt} <${ot}.${+wt+1}.0-0`,E("tilde return",Kt),Kt}),Q=(Te,ze)=>Te.trim().split(/\s+/).map(je=>ye(je,ze)).join(" "),ye=(Te,ze)=>{E("caret",Te,ze);const Je=ze.includePrerelease?"-0":"";return Te.replace(ze.loose?I[z.CARETLOOSE]:I[z.CARET],(ot,wt,Vt,an,Kt)=>{let yn;return E("caret",Te,ot,wt,Vt,an,Kt),Z(wt)?yn="":Z(Vt)?yn=`>=${wt}.0.0${Je} <${+wt+1}.0.0-0`:Z(an)?yn="0"===wt?`>=${wt}.${Vt}.0${Je} <${wt}.${+Vt+1}.0-0`:`>=${wt}.${Vt}.0${Je} <${+wt+1}.0.0-0`:Kt?(E("replaceCaret pr",Kt),yn="0"===wt?"0"===Vt?`>=${wt}.${Vt}.${an}-${Kt} <${wt}.${Vt}.${+an+1}-0`:`>=${wt}.${Vt}.${an}-${Kt} <${wt}.${+Vt+1}.0-0`:`>=${wt}.${Vt}.${an}-${Kt} <${+wt+1}.0.0-0`):(E("no pr"),yn="0"===wt?"0"===Vt?`>=${wt}.${Vt}.${an}${Je} <${wt}.${Vt}.${+an+1}-0`:`>=${wt}.${Vt}.${an}${Je} <${wt}.${+Vt+1}.0-0`:`>=${wt}.${Vt}.${an} <${+wt+1}.0.0-0`),E("caret return",yn),yn})},$=(Te,ze)=>(E("replaceXRanges",Te,ze),Te.split(/\s+/).map(je=>we(je,ze)).join(" ")),we=(Te,ze)=>(Te=Te.trim()).replace(ze.loose?I[z.XRANGELOOSE]:I[z.XRANGE],(Je,ot,wt,Vt,an,Kt)=>{E("xRange",Te,Je,ot,wt,Vt,an,Kt);const yn=Z(wt),ri=yn||Z(Vt),$t=ri||Z(an);return"="===ot&&$t&&(ot=""),Kt=ze.includePrerelease?"-0":"",yn?Je=">"===ot||"<"===ot?"<0.0.0-0":"*":ot&&$t?(ri&&(Vt=0),an=0,">"===ot?(ot=">=",ri?(wt=+wt+1,Vt=0,an=0):(Vt=+Vt+1,an=0)):"<="===ot&&(ot="<",ri?wt=+wt+1:Vt=+Vt+1),"<"===ot&&(Kt="-0"),Je=`${ot+wt}.${Vt}.${an}${Kt}`):ri?Je=`>=${wt}.0.0${Kt} <${+wt+1}.0.0-0`:$t&&(Je=`>=${wt}.${Vt}.0${Kt} <${wt}.${+Vt+1}.0-0`),E("xRange return",Je),Je}),fe=(Te,ze)=>(E("replaceStars",Te,ze),Te.trim().replace(I[z.STAR],"")),De=(Te,ze)=>(E("replaceGTE0",Te,ze),Te.trim().replace(I[ze.includePrerelease?z.GTE0PRE:z.GTE0],"")),He=Te=>(ze,je,Je,ot,wt,Vt,an,Kt,yn,ri,$t,ae)=>`${je=Z(Je)?"":Z(ot)?`>=${Je}.0.0${Te?"-0":""}`:Z(wt)?`>=${Je}.${ot}.0${Te?"-0":""}`:Vt?`>=${je}`:`>=${je}${Te?"-0":""}`} ${Kt=Z(yn)?"":Z(ri)?`<${+yn+1}.0.0-0`:Z($t)?`<${yn}.${+ri+1}.0-0`:ae?`<=${yn}.${ri}.${$t}-${ae}`:Te?`<${yn}.${ri}.${+$t+1}-0`:`<=${Kt}`}`.trim(),et=(Te,ze,je)=>{for(let Je=0;Je<Te.length;Je++)if(!Te[Je].test(ze))return!1;if(ze.prerelease.length&&!je.includePrerelease){for(let Je=0;Je<Te.length;Je++)if(E(Te[Je].semver),Te[Je].semver!==Y.ANY&&Te[Je].semver.prerelease.length>0){const ot=Te[Je].semver;if(ot.major===ze.major&&ot.minor===ze.minor&&ot.patch===ze.patch)return!0}return!1}return!0}},179:(_e,j,k)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0}),j.default=void 0;var N=k(7636);j.default=function(W){var E=N.areaConversion[arguments.length>1&&void 0!==arguments[1]?arguments[1]:"m"];if(E)return W*E;throw new Error("Invalid unit used for area conversion.")}},190:(_e,j,k)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0}),j.default=void 0;var N=Y(k(7029)),B=Y(k(3100)),V=Y(k(5705)),v=Y(k(942)),W=k(7636);function Y(I){return I&&I.__esModule?I:{default:I}}j.default=function(z,X){var Q,ye,ee=(0,N.default)(z),q=(0,B.default)(z),U=(0,V.default)(ee),de=(0,V.default)(q),me=X/W.earthRadius,Ne=U-me,be=U+me,ce=(0,V.default)(W.MAXLAT),Z=(0,V.default)(W.MINLAT),G=(0,V.default)(W.MAXLON),H=(0,V.default)(W.MINLON);if(Ne>Z&&be<ce){var $=Math.asin(Math.sin(me)/Math.cos(U));(Q=de-$)<H&&(Q+=2*Math.PI),(ye=de+$)>G&&(ye-=2*Math.PI)}else Ne=Math.max(Ne,Z),be=Math.min(be,ce),Q=H,ye=G;return[{latitude:(0,v.default)(Ne),longitude:(0,v.default)(Q)},{latitude:(0,v.default)(be),longitude:(0,v.default)(ye)}]}},202:(_e,j,k)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0}),j.default=void 0;var N=function B(W){return W&&W.__esModule?W:{default:W}}(k(8674));j.default=function(Y,E,O){return(0,N.default)(Y,E,.01)<O}},266:(_e,j,k)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0}),j.default=void 0;var N=W(k(3026)),B=W(k(4902)),V=W(k(1532)),v=k(7636);function W(O){return O&&O.__esModule?O:{default:O}}j.default=function O(I){return(0,N.default)(I)?!(parseFloat(I)>v.MAXLON||I<v.MINLON):!!(0,B.default)(I)&&O((0,V.default)(I))}},282:function(_e,j,k){(function(){var N,B,v,Y={}.hasOwnProperty;N=k(8886),v=k(7059),B=k(1892),_e.exports=function(E){function O(I,z){this.stream=I,O.__super__.constructor.call(this,z)}return function(E,O){for(var I in O)Y.call(O,I)&&(E[I]=O[I]);function z(){this.constructor=E}z.prototype=O.prototype,E.prototype=new z,E.__super__=O.prototype}(O,E),O.prototype.endline=function(I,z,X){return I.isLastRootNode&&z.state===B.CloseTag?"":O.__super__.endline.call(this,I,z,X)},O.prototype.document=function(I,z){var ee,q,U,de,me,Ne,be,ce;for(ee=q=0,de=(Ne=I.children).length;q<de;ee=++q)Ne[ee].isLastRootNode=ee===I.children.length-1;for(z=this.filterOptions(z),ce=[],U=0,me=(be=I.children).length;U<me;U++)ce.push(this.writeChildNode(be[U],z,0));return ce},O.prototype.attribute=function(I,z,X){return this.stream.write(O.__super__.attribute.call(this,I,z,X))},O.prototype.cdata=function(I,z,X){return this.stream.write(O.__super__.cdata.call(this,I,z,X))},O.prototype.comment=function(I,z,X){return this.stream.write(O.__super__.comment.call(this,I,z,X))},O.prototype.declaration=function(I,z,X){return this.stream.write(O.__super__.declaration.call(this,I,z,X))},O.prototype.docType=function(I,z,X){var q,U,de;if(X||(X=0),this.openNode(I,z,X),z.state=B.OpenTag,this.stream.write(this.indent(I,z,X)),this.stream.write("<!DOCTYPE "+I.root().name),I.pubID&&I.sysID?this.stream.write(' PUBLIC "'+I.pubID+'" "'+I.sysID+'"'):I.sysID&&this.stream.write(' SYSTEM "'+I.sysID+'"'),I.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(I,z,X)),z.state=B.InsideTag,q=0,U=(de=I.children).length;q<U;q++)this.writeChildNode(de[q],z,X+1);z.state=B.CloseTag,this.stream.write("]")}return z.state=B.CloseTag,this.stream.write(z.spaceBeforeSlash+">"),this.stream.write(this.endline(I,z,X)),z.state=B.None,this.closeNode(I,z,X)},O.prototype.element=function(I,z,X){var U,de,me,Ne,be,Z,G;for(be in X||(X=0),this.openNode(I,z,X),z.state=B.OpenTag,this.stream.write(this.indent(I,z,X)+"<"+I.name),Z=I.attribs)Y.call(Z,be)&&this.attribute(Z[be],z,X);if(de=0===(U=I.children.length)?null:I.children[0],0===U||I.children.every(function(H){return(H.type===N.Text||H.type===N.Raw)&&""===H.value}))z.allowEmpty?(this.stream.write(">"),z.state=B.CloseTag,this.stream.write("</"+I.name+">")):(z.state=B.CloseTag,this.stream.write(z.spaceBeforeSlash+"/>"));else if(!z.pretty||1!==U||de.type!==N.Text&&de.type!==N.Raw||null==de.value){for(this.stream.write(">"+this.endline(I,z,X)),z.state=B.InsideTag,me=0,Ne=(G=I.children).length;me<Ne;me++)this.writeChildNode(G[me],z,X+1);z.state=B.CloseTag,this.stream.write(this.indent(I,z,X)+"</"+I.name+">")}else this.stream.write(">"),z.state=B.InsideTag,z.suppressPrettyCount++,this.writeChildNode(de,z,X+1),z.suppressPrettyCount--,z.state=B.CloseTag,this.stream.write("</"+I.name+">");return this.stream.write(this.endline(I,z,X)),z.state=B.None,this.closeNode(I,z,X)},O.prototype.processingInstruction=function(I,z,X){return this.stream.write(O.__super__.processingInstruction.call(this,I,z,X))},O.prototype.raw=function(I,z,X){return this.stream.write(O.__super__.raw.call(this,I,z,X))},O.prototype.text=function(I,z,X){return this.stream.write(O.__super__.text.call(this,I,z,X))},O.prototype.dtdAttList=function(I,z,X){return this.stream.write(O.__super__.dtdAttList.call(this,I,z,X))},O.prototype.dtdElement=function(I,z,X){return this.stream.write(O.__super__.dtdElement.call(this,I,z,X))},O.prototype.dtdEntity=function(I,z,X){return this.stream.write(O.__super__.dtdEntity.call(this,I,z,X))},O.prototype.dtdNotation=function(I,z,X){return this.stream.write(O.__super__.dtdNotation.call(this,I,z,X))},O}(v)}).call(this)},313:function(_e,j,k){(function(){var N,B,V,v,W,Y,E,O,I,z,X,ee,U,de,me,Ne,be,ce,Z,G,H,Q,ye,$={}.hasOwnProperty;ye=k(9700),H=ye.isObject,G=ye.isFunction,Q=ye.isPlainObject,Z=ye.getValue,N=k(8886),ee=k(1152),U=k(9377),v=k(3476),W=k(2224),me=k(9447),ce=k(5814),de=k(1124),z=k(1801),X=k(4431),Y=k(4554),O=k(4542),E=k(8305),I=k(7519),V=k(6813),be=k(8139),Ne=k(7471),B=k(1892),_e.exports=function(){function we(fe,De,He){var et;this.name="?xml",this.type=N.Document,fe||(fe={}),et={},fe.writer?Q(fe.writer)&&(et=fe.writer,fe.writer=new Ne):fe.writer=new Ne,this.options=fe,this.writer=fe.writer,this.writerOptions=this.writer.filterOptions(et),this.stringify=new be(fe),this.onDataCallback=De||function(){},this.onEndCallback=He||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return we.prototype.createChildNode=function(fe){var He,et,Te,ze,je,Je,ot;switch(fe.type){case N.CData:this.cdata(fe.value);break;case N.Comment:this.comment(fe.value);break;case N.Element:for(He in et={},Je=fe.attribs)$.call(Je,He)&&(et[He]=Je[He].value);this.node(fe.name,et);break;case N.Dummy:this.dummy();break;case N.Raw:this.raw(fe.value);break;case N.Text:this.text(fe.value);break;case N.ProcessingInstruction:this.instruction(fe.target,fe.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+fe.constructor.name)}for(ze=0,je=(ot=fe.children).length;ze<je;ze++)this.createChildNode(Te=ot[ze]),Te.type===N.Element&&this.up();return this},we.prototype.dummy=function(){return this},we.prototype.node=function(fe,De,He){var et;if(null==fe)throw new Error("Missing node name.");if(this.root&&-1===this.currentLevel)throw new Error("Document can only have one root node. "+this.debugInfo(fe));return this.openCurrent(),fe=Z(fe),null==De&&(De={}),De=Z(De),H(De)||(He=(et=[De,He])[0],De=et[1]),this.currentNode=new U(this,fe,De),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,null!=He&&this.text(He),this},we.prototype.element=function(fe,De,He){var et,Te,ze,je,Je,ot;if(this.currentNode&&this.currentNode.type===N.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(fe)||H(fe)||G(fe))for(je=this.options.noValidation,this.options.noValidation=!0,(ot=new ee(this.options).element("TEMP_ROOT")).element(fe),this.options.noValidation=je,Te=0,ze=(Je=ot.children).length;Te<ze;Te++)this.createChildNode(et=Je[Te]),et.type===N.Element&&this.up();else this.node(fe,De,He);return this},we.prototype.attribute=function(fe,De){var He;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(fe));if(null!=fe&&(fe=Z(fe)),H(fe))for(He in fe)$.call(fe,He)&&this.attribute(He,fe[He]);else G(De)&&(De=De.apply()),this.options.keepNullAttributes&&null==De?this.currentNode.attribs[fe]=new V(this,fe,""):null!=De&&(this.currentNode.attribs[fe]=new V(this,fe,De));return this},we.prototype.text=function(fe){var De;return this.openCurrent(),De=new ce(this,fe),this.onData(this.writer.text(De,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},we.prototype.cdata=function(fe){var De;return this.openCurrent(),De=new v(this,fe),this.onData(this.writer.cdata(De,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},we.prototype.comment=function(fe){var De;return this.openCurrent(),De=new W(this,fe),this.onData(this.writer.comment(De,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},we.prototype.raw=function(fe){var De;return this.openCurrent(),De=new me(this,fe),this.onData(this.writer.raw(De,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},we.prototype.instruction=function(fe,De){var He,et,ze,je;if(this.openCurrent(),null!=fe&&(fe=Z(fe)),null!=De&&(De=Z(De)),Array.isArray(fe))for(He=0,ze=fe.length;He<ze;He++)this.instruction(et=fe[He]);else if(H(fe))for(et in fe)$.call(fe,et)&&this.instruction(et,fe[et]);else G(De)&&(De=De.apply()),je=new de(this,fe,De),this.onData(this.writer.processingInstruction(je,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},we.prototype.declaration=function(fe,De,He){var et;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return et=new z(this,fe,De,He),this.onData(this.writer.declaration(et,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},we.prototype.doctype=function(fe,De,He){if(this.openCurrent(),null==fe)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new X(this,De,He),this.currentNode.rootNodeName=fe,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},we.prototype.dtdElement=function(fe,De){var He;return this.openCurrent(),He=new E(this,fe,De),this.onData(this.writer.dtdElement(He,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},we.prototype.attList=function(fe,De,He,et,Te){var ze;return this.openCurrent(),ze=new Y(this,fe,De,He,et,Te),this.onData(this.writer.dtdAttList(ze,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},we.prototype.entity=function(fe,De){var He;return this.openCurrent(),He=new O(this,!1,fe,De),this.onData(this.writer.dtdEntity(He,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},we.prototype.pEntity=function(fe,De){var He;return this.openCurrent(),He=new O(this,!0,fe,De),this.onData(this.writer.dtdEntity(He,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},we.prototype.notation=function(fe,De){var He;return this.openCurrent(),He=new I(this,fe,De),this.onData(this.writer.dtdNotation(He,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},we.prototype.up=function(){if(this.currentLevel<0)throw new Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},we.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},we.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},we.prototype.openNode=function(fe){var He,et,Te;if(!fe.isOpen){if(!this.root&&0===this.currentLevel&&fe.type===N.Element&&(this.root=fe),He="",fe.type===N.Element){for(et in this.writerOptions.state=B.OpenTag,He=this.writer.indent(fe,this.writerOptions,this.currentLevel)+"<"+fe.name,Te=fe.attribs)$.call(Te,et)&&(He+=this.writer.attribute(Te[et],this.writerOptions,this.currentLevel));He+=(fe.children?">":"/>")+this.writer.endline(fe,this.writerOptions,this.currentLevel),this.writerOptions.state=B.InsideTag}else this.writerOptions.state=B.OpenTag,He=this.writer.indent(fe,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+fe.rootNodeName,fe.pubID&&fe.sysID?He+=' PUBLIC "'+fe.pubID+'" "'+fe.sysID+'"':fe.sysID&&(He+=' SYSTEM "'+fe.sysID+'"'),fe.children?(He+=" [",this.writerOptions.state=B.InsideTag):(this.writerOptions.state=B.CloseTag,He+=">"),He+=this.writer.endline(fe,this.writerOptions,this.currentLevel);return this.onData(He,this.currentLevel),fe.isOpen=!0}},we.prototype.closeNode=function(fe){var De;if(!fe.isClosed)return"",this.writerOptions.state=B.CloseTag,De=fe.type===N.Element?this.writer.indent(fe,this.writerOptions,this.currentLevel)+"</"+fe.name+">"+this.writer.endline(fe,this.writerOptions,this.currentLevel):this.writer.indent(fe,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(fe,this.writerOptions,this.currentLevel),this.writerOptions.state=B.None,this.onData(De,this.currentLevel),fe.isClosed=!0},we.prototype.onData=function(fe,De){return this.documentStarted=!0,this.onDataCallback(fe,De+1)},we.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},we.prototype.debugInfo=function(fe){return null==fe?"":"node: <"+fe+">"},we.prototype.ele=function(){return this.element.apply(this,arguments)},we.prototype.nod=function(fe,De,He){return this.node(fe,De,He)},we.prototype.txt=function(fe){return this.text(fe)},we.prototype.dat=function(fe){return this.cdata(fe)},we.prototype.com=function(fe){return this.comment(fe)},we.prototype.ins=function(fe,De){return this.instruction(fe,De)},we.prototype.dec=function(fe,De,He){return this.declaration(fe,De,He)},we.prototype.dtd=function(fe,De,He){return this.doctype(fe,De,He)},we.prototype.e=function(fe,De,He){return this.element(fe,De,He)},we.prototype.n=function(fe,De,He){return this.node(fe,De,He)},we.prototype.t=function(fe){return this.text(fe)},we.prototype.d=function(fe){return this.cdata(fe)},we.prototype.c=function(fe){return this.comment(fe)},we.prototype.r=function(fe){return this.raw(fe)},we.prototype.i=function(fe,De){return this.instruction(fe,De)},we.prototype.att=function(){return this.currentNode&&this.currentNode.type===N.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},we.prototype.a=function(){return this.currentNode&&this.currentNode.type===N.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},we.prototype.ent=function(fe,De){return this.entity(fe,De)},we.prototype.pent=function(fe,De){return this.pEntity(fe,De)},we.prototype.not=function(fe,De){return this.notation(fe,De)},we}()}).call(this)},319:(_e,j,k)=>{"use strict";const N=k(51),{MAX_LENGTH:B,MAX_SAFE_INTEGER:V}=k(9473),{safeRe:v,t:W}=k(8267),Y=k(8016),{compareIdentifiers:E}=k(384);class O{constructor(z,X){if(X=Y(X),z instanceof O){if(z.loose===!!X.loose&&z.includePrerelease===!!X.includePrerelease)return z;z=z.version}else if("string"!=typeof z)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof z}".`);if(z.length>B)throw new TypeError(`version is longer than ${B} characters`);N("SemVer",z,X),this.options=X,this.loose=!!X.loose,this.includePrerelease=!!X.includePrerelease;const ee=z.trim().match(X.loose?v[W.LOOSE]:v[W.FULL]);if(!ee)throw new TypeError(`Invalid Version: ${z}`);if(this.raw=z,this.major=+ee[1],this.minor=+ee[2],this.patch=+ee[3],this.major>V||this.major<0)throw new TypeError("Invalid major version");if(this.minor>V||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>V||this.patch<0)throw new TypeError("Invalid patch version");this.prerelease=ee[4]?ee[4].split(".").map(q=>{if(/^[0-9]+$/.test(q)){const U=+q;if(U>=0&&U<V)return U}return q}):[],this.build=ee[5]?ee[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(z){if(N("SemVer.compare",this.version,this.options,z),!(z instanceof O)){if("string"==typeof z&&z===this.version)return 0;z=new O(z,this.options)}return z.version===this.version?0:this.compareMain(z)||this.comparePre(z)}compareMain(z){return z instanceof O||(z=new O(z,this.options)),E(this.major,z.major)||E(this.minor,z.minor)||E(this.patch,z.patch)}comparePre(z){if(z instanceof O||(z=new O(z,this.options)),this.prerelease.length&&!z.prerelease.length)return-1;if(!this.prerelease.length&&z.prerelease.length)return 1;if(!this.prerelease.length&&!z.prerelease.length)return 0;let X=0;do{const ee=this.prerelease[X],q=z.prerelease[X];if(N("prerelease compare",X,ee,q),void 0===ee&&void 0===q)return 0;if(void 0===q)return 1;if(void 0===ee)return-1;if(ee!==q)return E(ee,q)}while(++X)}compareBuild(z){z instanceof O||(z=new O(z,this.options));let X=0;do{const ee=this.build[X],q=z.build[X];if(N("build compare",X,ee,q),void 0===ee&&void 0===q)return 0;if(void 0===q)return 1;if(void 0===ee)return-1;if(ee!==q)return E(ee,q)}while(++X)}inc(z,X,ee){if(z.startsWith("pre")){if(!X&&!1===ee)throw new Error("invalid increment argument: identifier is empty");if(X){const q=`-${X}`.match(this.options.loose?v[W.PRERELEASELOOSE]:v[W.PRERELEASE]);if(!q||q[1]!==X)throw new Error(`invalid identifier: ${X}`)}}switch(z){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",X,ee);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",X,ee);break;case"prepatch":this.prerelease.length=0,this.inc("patch",X,ee),this.inc("pre",X,ee);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",X,ee),this.inc("pre",X,ee);break;case"release":if(0===this.prerelease.length)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(0!==this.minor||0!==this.patch||0===this.prerelease.length)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(0!==this.patch||0===this.prerelease.length)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const q=Number(ee)?1:0;if(0===this.prerelease.length)this.prerelease=[q];else{let U=this.prerelease.length;for(;--U>=0;)"number"==typeof this.prerelease[U]&&(this.prerelease[U]++,U=-2);if(-1===U){if(X===this.prerelease.join(".")&&!1===ee)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(q)}}if(X){let U=[X,q];!1===ee&&(U=[X]),0===E(this.prerelease[0],X)?isNaN(this.prerelease[1])&&(this.prerelease=U):this.prerelease=U}break}default:throw new Error(`invalid increment argument: ${z}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}_e.exports=O},354:(_e,j)=>{"use strict";function V(O,I){(null==I||I>O.length)&&(I=O.length);for(var z=0,X=new Array(I);z<I;z++)X[z]=O[z];return X}Object.defineProperty(j,"__esModule",{value:!0}),j.default=void 0,j.default=function(I){if(!I.startsWith("POLYGON"))throw new Error("Invalid wkt.");return I.slice(I.indexOf("(")+2,I.indexOf(")")).split(", ").map(function(ee){var U=function k(O,I){return function W(O){if(Array.isArray(O))return O}(O)||function v(O,I){if(!(typeof Symbol>"u")&&Symbol.iterator in Object(O)){var z=[],X=!0,ee=!1,q=void 0;try{for(var de,U=O[Symbol.iterator]();!(X=(de=U.next()).done)&&(z.push(de.value),!I||z.length!==I);X=!0);}catch(me){ee=!0,q=me}finally{try{!X&&null!=U.return&&U.return()}finally{if(ee)throw q}}return z}}(O,I)||function B(O,I){if(O){if("string"==typeof O)return V(O,I);var z=Object.prototype.toString.call(O).slice(8,-1);if("Object"===z&&O.constructor&&(z=O.constructor.name),"Map"===z||"Set"===z)return Array.from(O);if("Arguments"===z||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(z))return V(O,I)}}(O,I)||function N(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(ee.split(" "),2),me=U[1];return{longitude:parseFloat(U[0]),latitude:parseFloat(me)}})}},361:(_e,j,k)=>{"use strict";const N=k(3964);_e.exports=(V,v,W)=>N(V,v,"<",W)},384:_e=>{"use strict";const j=/^[0-9]+$/,k=(B,V)=>{const v=j.test(B),W=j.test(V);return v&&W&&(B=+B,V=+V),B===V?0:v&&!W?-1:W&&!v?1:B<V?-1:1};_e.exports={compareIdentifiers:k,rcompareIdentifiers:(B,V)=>k(V,B)}},502:(_e,j,k)=>{"use strict";const N=k(319);_e.exports=(V,v,W,Y,E)=>{"string"==typeof W&&(E=Y,Y=W,W=void 0);try{return new N(V instanceof N?V.version:V,W).inc(v,Y,E).version}catch{return null}}},554:(_e,j,k)=>{"use strict";const N=k(2118),B=k(7546),V=k(9163),v=k(3304),W=k(3524),Y=k(1585);_e.exports=(O,I,z,X)=>{switch(I){case"===":return"object"==typeof O&&(O=O.version),"object"==typeof z&&(z=z.version),O===z;case"!==":return"object"==typeof O&&(O=O.version),"object"==typeof z&&(z=z.version),O!==z;case"":case"=":case"==":return N(O,z,X);case"!=":return B(O,z,X);case">":return V(O,z,X);case">=":return v(O,z,X);case"<":return W(O,z,X);case"<=":return Y(O,z,X);default:throw new TypeError(`Invalid operator: ${I}`)}}},763:(_e,j,k)=>{"use strict";const N=k(2229);_e.exports=(V,v)=>{const W=N(V.trim().replace(/^[=v]+/,""),v);return W?W.version:null}},874:function(_e,j,k){"use strict";var N=this&&this.__importDefault||function(v){return v&&v.__esModule?v:{default:v}};Object.defineProperty(j,"__esModule",{value:!0}),j.PropertyValues=void 0;const B=N(k(9170));j.PropertyValues=(()=>{class v{streams={};count=0;static MAX_VALUES_COUNT=1e3;onPropertyValues(Y,E){return this.getStreamTuple(Y).stream.onValue(E)}emitPropertyValue(Y){if(this.count>=v.MAX_VALUES_COUNT)throw new Error(`Max PropertyValues count ${v.MAX_VALUES_COUNT} exceeded trying to emit ${JSON.stringify(Y)}`);this.getStreamTuple(Y.name).bus.push(Y)}getStreamTuple(Y){let E=this.streams[Y];if(!E){const O=new B.default.Bus,I=O.scan([],(z,X)=>(z.push(X),this.count++,z));E={bus:O,stream:I},E.stream.subscribe(()=>({})),E.bus.push(void 0),this.streams[Y]=E}return E}}return v})()},880:(_e,j)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0})},884:(_e,j,k)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0}),j.default=void 0;var N=W(k(7029)),B=W(k(3100)),V=W(k(5705)),v=W(k(942));function W(O){return O&&O.__esModule?O:{default:O}}j.default=function(I,z){var X=(0,N.default)(z),ee=(0,B.default)(z),q=(0,N.default)(I),U=(0,B.default)(I);return((0,v.default)(Math.atan2(Math.sin((0,V.default)(ee)-(0,V.default)(U))*Math.cos((0,V.default)(X)),Math.cos((0,V.default)(q))*Math.sin((0,V.default)(X))-Math.sin((0,V.default)(q))*Math.cos((0,V.default)(X))*Math.cos((0,V.default)(ee)-(0,V.default)(U))))+360)%360}},917:(_e,j,k)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0}),j.default=void 0;var N=k(7636);j.default=function(W){var E=N.distanceConversion[arguments.length>1&&void 0!==arguments[1]?arguments[1]:"m"];if(E)return W*E;throw new Error("Invalid unit used for distance conversion.")}},939:(_e,j,k)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0}),j.default=void 0;var N=W(k(7029)),B=W(k(3100)),V=W(k(5705)),v=W(k(942));function W(O){return O&&O.__esModule?O:{default:O}}j.default=function(I,z){var X=(0,V.default)((0,B.default)(z))-(0,V.default)((0,B.default)(I)),ee=Math.log(Math.tan((0,V.default)((0,N.default)(z))/2+Math.PI/4)/Math.tan((0,V.default)((0,N.default)(I))/2+Math.PI/4));return Math.abs(X)>Math.PI&&(X=X>0?-1*(2*Math.PI-X):2*Math.PI+X),((0,v.default)(Math.atan2(X,ee))+360)%360}},942:(_e,j)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0}),j.default=void 0,j.default=function(V){return 180*V/Math.PI}},992:(_e,j,k)=>{"use strict";const N=k(3964);_e.exports=(V,v,W)=>N(V,v,">",W)},1118:(_e,j,k)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0}),j.default=void 0;var N=function B(W){return W&&W.__esModule?W:{default:W}}(k(2447));j.default=function(Y,E){return(0,N.default)(Y,E)[0]}},1124:function(_e,j,k){(function(){var N,B,W={}.hasOwnProperty;N=k(8886),B=k(170),_e.exports=function(Y){function E(O,I,z){if(E.__super__.constructor.call(this,O),null==I)throw new Error("Missing instruction target. "+this.debugInfo());this.type=N.ProcessingInstruction,this.target=this.stringify.insTarget(I),this.name=this.target,z&&(this.value=this.stringify.insValue(z))}return function(Y,E){for(var O in E)W.call(E,O)&&(Y[O]=E[O]);function I(){this.constructor=Y}I.prototype=E.prototype,Y.prototype=new I,Y.__super__=E.prototype}(E,Y),E.prototype.clone=function(){return Object.create(this)},E.prototype.toString=function(O){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(O))},E.prototype.isEqualNode=function(O){return!(!E.__super__.isEqualNode.apply(this,arguments).isEqualNode(O)||O.target!==this.target)},E}(B)}).call(this)},1152:function(_e,j,k){(function(){var N,B,V,W,Y,E,O,z={}.hasOwnProperty;O=k(9700).isPlainObject,V=k(7391),B=k(1599),W=k(9213),N=k(8886),E=k(8139),Y=k(7471),_e.exports=function(X){function ee(q){ee.__super__.constructor.call(this,null),this.name="#document",this.type=N.Document,this.documentURI=null,this.domConfig=new B,q||(q={}),q.writer||(q.writer=new Y),this.options=q,this.stringify=new E(q)}return function(X,ee){for(var q in ee)z.call(ee,q)&&(X[q]=ee[q]);function U(){this.constructor=X}U.prototype=ee.prototype,X.prototype=new U,X.__super__=ee.prototype}(ee,X),Object.defineProperty(ee.prototype,"implementation",{value:new V}),Object.defineProperty(ee.prototype,"doctype",{get:function(){var q,U,de,me;for(U=0,de=(me=this.children).length;U<de;U++)if((q=me[U]).type===N.DocType)return q;return null}}),Object.defineProperty(ee.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(ee.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(ee.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(ee.prototype,"xmlEncoding",{get:function(){return 0!==this.children.length&&this.children[0].type===N.Declaration?this.children[0].encoding:null}}),Object.defineProperty(ee.prototype,"xmlStandalone",{get:function(){return 0!==this.children.length&&this.children[0].type===N.Declaration&&"yes"===this.children[0].standalone}}),Object.defineProperty(ee.prototype,"xmlVersion",{get:function(){return 0!==this.children.length&&this.children[0].type===N.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(ee.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(ee.prototype,"origin",{get:function(){return null}}),Object.defineProperty(ee.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(ee.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(ee.prototype,"contentType",{get:function(){return null}}),ee.prototype.end=function(q){var U;return U={},q?O(q)&&(U=q,q=this.options.writer):q=this.options.writer,q.document(this,q.filterOptions(U))},ee.prototype.toString=function(q){return this.options.writer.document(this,this.options.writer.filterOptions(q))},ee.prototype.createElement=function(q){throw new Error("This DOM method is not implemented."+this.debugInfo())},ee.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},ee.prototype.createTextNode=function(q){throw new Error("This DOM method is not implemented."+this.debugInfo())},ee.prototype.createComment=function(q){throw new Error("This DOM method is not implemented."+this.debugInfo())},ee.prototype.createCDATASection=function(q){throw new Error("This DOM method is not implemented."+this.debugInfo())},ee.prototype.createProcessingInstruction=function(q,U){throw new Error("This DOM method is not implemented."+this.debugInfo())},ee.prototype.createAttribute=function(q){throw new Error("This DOM method is not implemented."+this.debugInfo())},ee.prototype.createEntityReference=function(q){throw new Error("This DOM method is not implemented."+this.debugInfo())},ee.prototype.getElementsByTagName=function(q){throw new Error("This DOM method is not implemented."+this.debugInfo())},ee.prototype.importNode=function(q,U){throw new Error("This DOM method is not implemented."+this.debugInfo())},ee.prototype.createElementNS=function(q,U){throw new Error("This DOM method is not implemented."+this.debugInfo())},ee.prototype.createAttributeNS=function(q,U){throw new Error("This DOM method is not implemented."+this.debugInfo())},ee.prototype.getElementsByTagNameNS=function(q,U){throw new Error("This DOM method is not implemented."+this.debugInfo())},ee.prototype.getElementById=function(q){throw new Error("This DOM method is not implemented."+this.debugInfo())},ee.prototype.adoptNode=function(q){throw new Error("This DOM method is not implemented."+this.debugInfo())},ee.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},ee.prototype.renameNode=function(q,U,de){throw new Error("This DOM method is not implemented."+this.debugInfo())},ee.prototype.getElementsByClassName=function(q){throw new Error("This DOM method is not implemented."+this.debugInfo())},ee.prototype.createEvent=function(q){throw new Error("This DOM method is not implemented."+this.debugInfo())},ee.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},ee.prototype.createNodeIterator=function(q,U,de){throw new Error("This DOM method is not implemented."+this.debugInfo())},ee.prototype.createTreeWalker=function(q,U,de){throw new Error("This DOM method is not implemented."+this.debugInfo())},ee}(W)}).call(this)},1161:function(_e,j,k){(function(){"use strict";var N,B,V,v,W,Y={}.hasOwnProperty;N=k(6640),B=k(2426).defaults,v=function(E){return"string"==typeof E&&(E.indexOf("&")>=0||E.indexOf(">")>=0||E.indexOf("<")>=0)},W=function(E){return"<![CDATA["+V(E)+"]]>"},V=function(E){return E.replace("]]>","]]]]><![CDATA[>")},j.Builder=function(){function E(O){var I,z;for(I in this.options={},z=B[.2])Y.call(z,I)&&(this.options[I]=z[I]);for(I in O)Y.call(O,I)&&(this.options[I]=O[I])}return E.prototype.buildObject=function(O){var I,z,X,ee,q;return I=this.options.attrkey,z=this.options.charkey,1===Object.keys(O).length&&this.options.rootName===B[.2].rootName?O=O[q=Object.keys(O)[0]]:q=this.options.rootName,X=function(U){return function(de,me){var Ne,be,ce,Z,G;if("object"!=typeof me)U.options.cdata&&v(me)?de.raw(W(me)):de.txt(me);else if(Array.isArray(me)){for(Z in me)if(Y.call(me,Z))for(G in be=me[Z])ce=be[G],de=X(de.ele(G),ce).up()}else for(G in me)if(Y.call(me,G))if(be=me[G],G===I){if("object"==typeof be)for(Ne in be)de=de.att(Ne,be[Ne])}else if(G===z)de=U.options.cdata&&v(be)?de.raw(W(be)):de.txt(be);else if(Array.isArray(be))for(Z in be)Y.call(be,Z)&&(de="string"==typeof(ce=be[Z])?U.options.cdata&&v(ce)?de.ele(G).raw(W(ce)).up():de.ele(G,ce).up():X(de.ele(G),ce).up());else"object"==typeof be?de=X(de.ele(G),be).up():"string"==typeof be&&U.options.cdata&&v(be)?de=de.ele(G).raw(W(be)).up():(null==be&&(be=""),de=de.ele(G,be.toString()).up());return de}}(this),ee=N.create(q,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),X(ee,O).end(this.options.renderOpts)},E}()}).call(this)},1167:(_e,j,k)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0}),j.default=void 0;var N=k(7636);j.default=function(W){switch(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"kmh"){case"kmh":return W*N.timeConversion.h*N.distanceConversion.km;case"mph":return W*N.timeConversion.h*N.distanceConversion.mi;default:return W}}},1532:(_e,j,k)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0}),j.default=void 0;var N=k(7636);j.default=function(W){var Y=new RegExp(N.sexagesimalPattern).exec(W.toString().trim());if(typeof Y>"u"||null===Y)throw new Error("Given value is not in sexagesimal format");var E=Number(Y[2])/60||0,O=Number(Y[4])/3600||0,I=parseFloat(Y[1])+E+O;return["S","W"].includes(Y[7])?-I:I}},1560:function(_e){(function(){_e.exports=function(){function k(N){this.arr=N||[]}return Object.defineProperty(k.prototype,"length",{get:function(){return this.arr.length}}),k.prototype.item=function(N){return this.arr[N]||null},k.prototype.contains=function(N){return-1!==this.arr.indexOf(N)},k}()}).call(this)},1585:(_e,j,k)=>{"use strict";const N=k(9225);_e.exports=(V,v,W)=>N(V,v,W)<=0},1599:function(_e,j,k){(function(){var B,V;B=k(5775),V=k(1560),_e.exports=function(){function v(){this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new B,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=Object.create(this.defaultParams)}return Object.defineProperty(v.prototype,"parameterNames",{get:function(){return new V(Object.keys(this.defaultParams))}}),v.prototype.getParameter=function(W){return this.params.hasOwnProperty(W)?this.params[W]:null},v.prototype.canSetParameter=function(W,Y){return!0},v.prototype.setParameter=function(W,Y){return null!=Y?this.params[W]=Y:delete this.params[W]},v}()}).call(this)},1679:(_e,j,k)=>{"use strict";const N=k(319);_e.exports=(V,v)=>new N(V,v).minor},1691:(_e,j,k)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0}),j.default=void 0;var N=W(k(5705)),B=W(k(7029)),V=W(k(3100)),v=k(7636);function W(O){return O&&O.__esModule?O:{default:O}}j.default=function(I){var z=0;if(I.length>2){for(var X,ee,q,U=0;U<I.length;U++){U===I.length-2?(X=I.length-2,ee=I.length-1,q=0):U===I.length-1?(X=I.length-1,ee=0,q=1):(X=U,ee=U+1,q=U+2);var de=(0,V.default)(I[X]),me=(0,B.default)(I[ee]),Ne=(0,V.default)(I[q]);z+=((0,N.default)(Ne)-(0,N.default)(de))*Math.sin((0,N.default)(me))}z=z*v.earthRadius*v.earthRadius/2}return Math.abs(z)}},1762:function(_e,j,k){(function(){"use strict";var N,B,V,v,Y={}.hasOwnProperty;B=k(2426),N=k(1161),V=k(4743),v=k(2649),j.defaults=B.defaults,j.processors=v,j.ValidationError=function(){function O(I){this.message=I}return function(E,O){for(var I in O)Y.call(O,I)&&(E[I]=O[I]);function z(){this.constructor=E}z.prototype=O.prototype,E.prototype=new z,E.__super__=O.prototype}(O,Error),O}(),j.Builder=N.Builder,j.Parser=V.Parser,j.parseString=V.parseString,j.parseStringPromise=V.parseStringPromise}).call(this)},1801:function(_e,j,k){(function(){var N,V,v,Y={}.hasOwnProperty;v=k(9700).isObject,V=k(9213),N=k(8886),_e.exports=function(E){function O(I,z,X,ee){var q;O.__super__.constructor.call(this,I),v(z)&&(z=(q=z).version,X=q.encoding,ee=q.standalone),z||(z="1.0"),this.type=N.Declaration,this.version=this.stringify.xmlVersion(z),null!=X&&(this.encoding=this.stringify.xmlEncoding(X)),null!=ee&&(this.standalone=this.stringify.xmlStandalone(ee))}return function(E,O){for(var I in O)Y.call(O,I)&&(E[I]=O[I]);function z(){this.constructor=E}z.prototype=O.prototype,E.prototype=new z,E.__super__=O.prototype}(O,E),O.prototype.toString=function(I){return this.options.writer.declaration(this,this.options.writer.filterOptions(I))},O}(V)}).call(this)},1892:function(_e){(function(){_e.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},1924:(_e,j,k)=>{"use strict";const N=k(8420);_e.exports=(V,v)=>V.sort((W,Y)=>N(Y,W,v))},2118:(_e,j,k)=>{"use strict";const N=k(9225);_e.exports=(V,v,W)=>0===N(V,v,W)},2222:(_e,j,k)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0}),j.default=void 0;var N=Y(k(7029)),B=Y(k(3100)),V=Y(k(5705)),v=Y(k(942)),W=k(7636);function Y(I){return I&&I.__esModule?I:{default:I}}j.default=function(z,X,ee){var q=arguments.length>3&&void 0!==arguments[3]?arguments[3]:6371e3,U=(0,N.default)(z),de=(0,B.default)(z),me=X/q,Ne=(0,V.default)(ee),be=(0,V.default)(U),ce=(0,V.default)(de),Z=Math.asin(Math.sin(be)*Math.cos(me)+Math.cos(be)*Math.sin(me)*Math.cos(Ne)),G=ce+Math.atan2(Math.sin(Ne)*Math.sin(me)*Math.cos(be),Math.cos(me)-Math.sin(be)*Math.sin(Z)),H=(0,v.default)(G);return(H<W.MINLON||H>W.MAXLON)&&(G=(G+3*Math.PI)%(2*Math.PI)-Math.PI,H=(0,v.default)(G)),{latitude:(0,v.default)(Z),longitude:H}}},2224:function(_e,j,k){(function(){var N,B,W={}.hasOwnProperty;N=k(8886),B=k(170),_e.exports=function(Y){function E(O,I){if(E.__super__.constructor.call(this,O),null==I)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=N.Comment,this.value=this.stringify.comment(I)}return function(Y,E){for(var O in E)W.call(E,O)&&(Y[O]=E[O]);function I(){this.constructor=Y}I.prototype=E.prototype,Y.prototype=new I,Y.__super__=E.prototype}(E,Y),E.prototype.clone=function(){return Object.create(this)},E.prototype.toString=function(O){return this.options.writer.comment(this,this.options.writer.filterOptions(O))},E}(B)}).call(this)},2229:(_e,j,k)=>{"use strict";const N=k(319);_e.exports=(V,v,W=!1)=>{if(V instanceof N)return V;try{return new N(V,v)}catch(Y){if(!W)return null;throw Y}}},2426:function(_e,j){(function(){j.defaults={.1:{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},.2:{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:"\n"},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(this)},2447:(_e,j,k)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0}),j.default=void 0;var N=function B(W){return W&&W.__esModule?W:{default:W}}(k(8674));j.default=function(Y,E){var O=arguments.length>2&&void 0!==arguments[2]?arguments[2]:N.default;return O="function"==typeof O?O:N.default,E.slice().sort(function(I,z){return O(Y,I)-O(Y,z)})}},2541:(_e,j,k)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0});var N={computeDestinationPoint:!0,convertArea:!0,convertDistance:!0,convertSpeed:!0,decimalToSexagesimal:!0,findNearest:!0,getAreaOfPolygon:!0,getBounds:!0,getBoundsOfDistance:!0,getCenter:!0,getCenterOfBounds:!0,getCompassDirection:!0,getCoordinateKey:!0,getCoordinateKeys:!0,getDistance:!0,getDistanceFromLine:!0,getGreatCircleBearing:!0,getLatitude:!0,getLongitude:!0,getPathLength:!0,getPreciseDistance:!0,getRhumbLineBearing:!0,getRoughCompassDirection:!0,getSpeed:!0,isDecimal:!0,isPointInLine:!0,isPointInPolygon:!0,isPointNearLine:!0,isPointWithinRadius:!0,isSexagesimal:!0,isValidCoordinate:!0,isValidLatitude:!0,isValidLongitude:!0,orderByDistance:!0,sexagesimalToDecimal:!0,toDecimal:!0,toRad:!0,toDeg:!0,wktToPolygon:!0};Object.defineProperty(j,"computeDestinationPoint",{enumerable:!0,get:function(){return B.default}}),Object.defineProperty(j,"convertArea",{enumerable:!0,get:function(){return V.default}}),Object.defineProperty(j,"convertDistance",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(j,"convertSpeed",{enumerable:!0,get:function(){return W.default}}),Object.defineProperty(j,"decimalToSexagesimal",{enumerable:!0,get:function(){return Y.default}}),Object.defineProperty(j,"findNearest",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(j,"getAreaOfPolygon",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(j,"getBounds",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(j,"getBoundsOfDistance",{enumerable:!0,get:function(){return z.default}}),Object.defineProperty(j,"getCenter",{enumerable:!0,get:function(){return X.default}}),Object.defineProperty(j,"getCenterOfBounds",{enumerable:!0,get:function(){return ee.default}}),Object.defineProperty(j,"getCompassDirection",{enumerable:!0,get:function(){return q.default}}),Object.defineProperty(j,"getCoordinateKey",{enumerable:!0,get:function(){return U.default}}),Object.defineProperty(j,"getCoordinateKeys",{enumerable:!0,get:function(){return de.default}}),Object.defineProperty(j,"getDistance",{enumerable:!0,get:function(){return me.default}}),Object.defineProperty(j,"getDistanceFromLine",{enumerable:!0,get:function(){return Ne.default}}),Object.defineProperty(j,"getGreatCircleBearing",{enumerable:!0,get:function(){return be.default}}),Object.defineProperty(j,"getLatitude",{enumerable:!0,get:function(){return ce.default}}),Object.defineProperty(j,"getLongitude",{enumerable:!0,get:function(){return Z.default}}),Object.defineProperty(j,"getPathLength",{enumerable:!0,get:function(){return G.default}}),Object.defineProperty(j,"getPreciseDistance",{enumerable:!0,get:function(){return H.default}}),Object.defineProperty(j,"getRhumbLineBearing",{enumerable:!0,get:function(){return Q.default}}),Object.defineProperty(j,"getRoughCompassDirection",{enumerable:!0,get:function(){return ye.default}}),Object.defineProperty(j,"getSpeed",{enumerable:!0,get:function(){return $.default}}),Object.defineProperty(j,"isDecimal",{enumerable:!0,get:function(){return we.default}}),Object.defineProperty(j,"isPointInLine",{enumerable:!0,get:function(){return fe.default}}),Object.defineProperty(j,"isPointInPolygon",{enumerable:!0,get:function(){return De.default}}),Object.defineProperty(j,"isPointNearLine",{enumerable:!0,get:function(){return He.default}}),Object.defineProperty(j,"isPointWithinRadius",{enumerable:!0,get:function(){return et.default}}),Object.defineProperty(j,"isSexagesimal",{enumerable:!0,get:function(){return Te.default}}),Object.defineProperty(j,"isValidCoordinate",{enumerable:!0,get:function(){return ze.default}}),Object.defineProperty(j,"isValidLatitude",{enumerable:!0,get:function(){return je.default}}),Object.defineProperty(j,"isValidLongitude",{enumerable:!0,get:function(){return Je.default}}),Object.defineProperty(j,"orderByDistance",{enumerable:!0,get:function(){return ot.default}}),Object.defineProperty(j,"sexagesimalToDecimal",{enumerable:!0,get:function(){return wt.default}}),Object.defineProperty(j,"toDecimal",{enumerable:!0,get:function(){return Vt.defa