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