diff --git a/assets/index-b2a370c4.js b/assets/index-c0e9653e.js similarity index 72% rename from assets/index-b2a370c4.js rename to assets/index-c0e9653e.js index 2da1389..00b03c4 100644 --- a/assets/index-b2a370c4.js +++ b/assets/index-c0e9653e.js @@ -1,36 +1,36 @@ -var sf=Object.defineProperty;var rf=(t,e,i)=>e in t?sf(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var Vl=(t,e,i)=>(rf(t,typeof e!="symbol"?e+"":e,i),i);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const r of s)if(r.type==="childList")for(const a of r.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function i(s){const r={};return s.integrity&&(r.integrity=s.integrity),s.referrerPolicy&&(r.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?r.credentials="include":s.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function n(s){if(s.ep)return;s.ep=!0;const r=i(s);fetch(s.href,r)}})();function sh(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let Ji=sh();function af(t){Ji=t}const rh=/[&<>"']/,of=new RegExp(rh.source,"g"),ah=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,lf=new RegExp(ah.source,"g"),cf={"&":"&","<":"<",">":">",'"':""","'":"'"},Ul=t=>cf[t];function ct(t,e){if(e){if(rh.test(t))return t.replace(of,Ul)}else if(ah.test(t))return t.replace(lf,Ul);return t}const uf=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function oh(t){return t.replace(uf,(e,i)=>(i=i.toLowerCase(),i==="colon"?":":i.charAt(0)==="#"?i.charAt(1)==="x"?String.fromCharCode(parseInt(i.substring(2),16)):String.fromCharCode(+i.substring(1)):""))}const hf=/(^|[^\[])\^/g;function Fe(t,e){t=typeof t=="string"?t:t.source,e=e||"";const i={replace:(n,s)=>(s=s.source||s,s=s.replace(hf,"$1"),t=t.replace(n,s),i),getRegex:()=>new RegExp(t,e)};return i}const df=/[^\w:]/g,mf=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Bl(t,e,i){if(t){let n;try{n=decodeURIComponent(oh(i)).replace(df,"").toLowerCase()}catch{return null}if(n.indexOf("javascript:")===0||n.indexOf("vbscript:")===0||n.indexOf("data:")===0)return null}e&&!mf.test(i)&&(i=yf(e,i));try{i=encodeURI(i).replace(/%25/g,"%")}catch{return null}return i}const qs={},ff=/^[^:]+:\/*[^/]*$/,pf=/^([^:]+:)[\s\S]*$/,gf=/^([^:]+:\/*[^/]*)[\s\S]*$/;function yf(t,e){qs[" "+t]||(ff.test(t)?qs[" "+t]=t+"/":qs[" "+t]=fr(t,"/",!0)),t=qs[" "+t];const i=t.indexOf(":")===-1;return e.substring(0,2)==="//"?i?e:t.replace(pf,"$1")+e:e.charAt(0)==="/"?i?e:t.replace(gf,"$1")+e:t+e}const Er={exec:function(){}};function Hl(t,e){const i=t.replace(/\|/g,(r,a,o)=>{let l=!1,c=a;for(;--c>=0&&o[c]==="\\";)l=!l;return l?"|":" |"}),n=i.split(/ \|/);let s=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),n.length>e)n.splice(e);else for(;n.length{const r=s.match(/^\s+/);if(r===null)return s;const[a]=r;return a.length>=n.length?s.slice(n.length):s}).join(` -`)}class Oo{constructor(e){this.options=e||Ji}space(e){const i=this.rules.block.newline.exec(e);if(i&&i[0].length>0)return{type:"space",raw:i[0]}}code(e){const i=this.rules.block.code.exec(e);if(i){const n=i[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:i[0],codeBlockStyle:"indented",text:this.options.pedantic?n:fr(n,` -`)}}}fences(e){const i=this.rules.block.fences.exec(e);if(i){const n=i[0],s=vf(n,i[3]||"");return{type:"code",raw:n,lang:i[2]?i[2].trim().replace(this.rules.inline._escapes,"$1"):i[2],text:s}}}heading(e){const i=this.rules.block.heading.exec(e);if(i){let n=i[2].trim();if(/#$/.test(n)){const s=fr(n,"#");(this.options.pedantic||!s||/ $/.test(s))&&(n=s.trim())}return{type:"heading",raw:i[0],depth:i[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){const i=this.rules.block.hr.exec(e);if(i)return{type:"hr",raw:i[0]}}blockquote(e){const i=this.rules.block.blockquote.exec(e);if(i){const n=i[0].replace(/^ *>[ \t]?/gm,""),s=this.lexer.state.top;this.lexer.state.top=!0;const r=this.lexer.blockTokens(n);return this.lexer.state.top=s,{type:"blockquote",raw:i[0],tokens:r,text:n}}}list(e){let i=this.rules.block.list.exec(e);if(i){let n,s,r,a,o,l,c,u,h,d,m,f,p=i[1].trim();const y=p.length>1,_={type:"list",raw:"",ordered:y,start:y?+p.slice(0,-1):"",loose:!1,items:[]};p=y?`\\d{1,9}\\${p.slice(-1)}`:`\\${p}`,this.options.pedantic&&(p=y?p:"[*+-]");const v=new RegExp(`^( {0,3}${p})((?:[ ][^\\n]*)?(?:\\n|$))`);for(;e&&(f=!1,!(!(i=v.exec(e))||this.rules.block.hr.test(e)));){if(n=i[0],e=e.substring(n.length),u=i[2].split(` +var sf=Object.defineProperty;var af=(t,e,i)=>e in t?sf(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var Vl=(t,e,i)=>(af(t,typeof e!="symbol"?e+"":e,i),i);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const a of s)if(a.type==="childList")for(const r of a.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&n(r)}).observe(document,{childList:!0,subtree:!0});function i(s){const a={};return s.integrity&&(a.integrity=s.integrity),s.referrerPolicy&&(a.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?a.credentials="include":s.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(s){if(s.ep)return;s.ep=!0;const a=i(s);fetch(s.href,a)}})();function sh(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let Ji=sh();function rf(t){Ji=t}const ah=/[&<>"']/,of=new RegExp(ah.source,"g"),rh=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,lf=new RegExp(rh.source,"g"),cf={"&":"&","<":"<",">":">",'"':""","'":"'"},Ul=t=>cf[t];function ct(t,e){if(e){if(ah.test(t))return t.replace(of,Ul)}else if(rh.test(t))return t.replace(lf,Ul);return t}const uf=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function oh(t){return t.replace(uf,(e,i)=>(i=i.toLowerCase(),i==="colon"?":":i.charAt(0)==="#"?i.charAt(1)==="x"?String.fromCharCode(parseInt(i.substring(2),16)):String.fromCharCode(+i.substring(1)):""))}const hf=/(^|[^\[])\^/g;function Fe(t,e){t=typeof t=="string"?t:t.source,e=e||"";const i={replace:(n,s)=>(s=s.source||s,s=s.replace(hf,"$1"),t=t.replace(n,s),i),getRegex:()=>new RegExp(t,e)};return i}const df=/[^\w:]/g,mf=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Bl(t,e,i){if(t){let n;try{n=decodeURIComponent(oh(i)).replace(df,"").toLowerCase()}catch{return null}if(n.indexOf("javascript:")===0||n.indexOf("vbscript:")===0||n.indexOf("data:")===0)return null}e&&!mf.test(i)&&(i=yf(e,i));try{i=encodeURI(i).replace(/%25/g,"%")}catch{return null}return i}const qs={},ff=/^[^:]+:\/*[^/]*$/,pf=/^([^:]+:)[\s\S]*$/,gf=/^([^:]+:\/*[^/]*)[\s\S]*$/;function yf(t,e){qs[" "+t]||(ff.test(t)?qs[" "+t]=t+"/":qs[" "+t]=fa(t,"/",!0)),t=qs[" "+t];const i=t.indexOf(":")===-1;return e.substring(0,2)==="//"?i?e:t.replace(pf,"$1")+e:e.charAt(0)==="/"?i?e:t.replace(gf,"$1")+e:t+e}const Ea={exec:function(){}};function Hl(t,e){const i=t.replace(/\|/g,(a,r,o)=>{let l=!1,c=r;for(;--c>=0&&o[c]==="\\";)l=!l;return l?"|":" |"}),n=i.split(/ \|/);let s=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),n.length>e)n.splice(e);else for(;n.length{const a=s.match(/^\s+/);if(a===null)return s;const[r]=a;return r.length>=n.length?s.slice(n.length):s}).join(` +`)}class Oo{constructor(e){this.options=e||Ji}space(e){const i=this.rules.block.newline.exec(e);if(i&&i[0].length>0)return{type:"space",raw:i[0]}}code(e){const i=this.rules.block.code.exec(e);if(i){const n=i[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:i[0],codeBlockStyle:"indented",text:this.options.pedantic?n:fa(n,` +`)}}}fences(e){const i=this.rules.block.fences.exec(e);if(i){const n=i[0],s=vf(n,i[3]||"");return{type:"code",raw:n,lang:i[2]?i[2].trim().replace(this.rules.inline._escapes,"$1"):i[2],text:s}}}heading(e){const i=this.rules.block.heading.exec(e);if(i){let n=i[2].trim();if(/#$/.test(n)){const s=fa(n,"#");(this.options.pedantic||!s||/ $/.test(s))&&(n=s.trim())}return{type:"heading",raw:i[0],depth:i[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){const i=this.rules.block.hr.exec(e);if(i)return{type:"hr",raw:i[0]}}blockquote(e){const i=this.rules.block.blockquote.exec(e);if(i){const n=i[0].replace(/^ *>[ \t]?/gm,""),s=this.lexer.state.top;this.lexer.state.top=!0;const a=this.lexer.blockTokens(n);return this.lexer.state.top=s,{type:"blockquote",raw:i[0],tokens:a,text:n}}}list(e){let i=this.rules.block.list.exec(e);if(i){let n,s,a,r,o,l,c,u,h,d,m,f,p=i[1].trim();const y=p.length>1,_={type:"list",raw:"",ordered:y,start:y?+p.slice(0,-1):"",loose:!1,items:[]};p=y?`\\d{1,9}\\${p.slice(-1)}`:`\\${p}`,this.options.pedantic&&(p=y?p:"[*+-]");const v=new RegExp(`^( {0,3}${p})((?:[ ][^\\n]*)?(?:\\n|$))`);for(;e&&(f=!1,!(!(i=v.exec(e))||this.rules.block.hr.test(e)));){if(n=i[0],e=e.substring(n.length),u=i[2].split(` `,1)[0].replace(/^\t+/,w=>" ".repeat(3*w.length)),h=e.split(` -`,1)[0],this.options.pedantic?(a=2,m=u.trimLeft()):(a=i[2].search(/[^ ]/),a=a>4?1:a,m=u.slice(a),a+=i[1].length),l=!1,!u&&/^ *$/.test(h)&&(n+=h+` -`,e=e.substring(h.length+1),f=!0),!f){const w=new RegExp(`^ {0,${Math.min(3,a-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),E=new RegExp(`^ {0,${Math.min(3,a-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),L=new RegExp(`^ {0,${Math.min(3,a-1)}}(?:\`\`\`|~~~)`),Y=new RegExp(`^ {0,${Math.min(3,a-1)}}#`);for(;e&&(d=e.split(` -`,1)[0],h=d,this.options.pedantic&&(h=h.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(L.test(h)||Y.test(h)||w.test(h)||E.test(e)));){if(h.search(/[^ ]/)>=a||!h.trim())m+=` -`+h.slice(a);else{if(l||u.search(/[^ ]/)>=4||L.test(u)||Y.test(u)||E.test(u))break;m+=` +`,1)[0],this.options.pedantic?(r=2,m=u.trimLeft()):(r=i[2].search(/[^ ]/),r=r>4?1:r,m=u.slice(r),r+=i[1].length),l=!1,!u&&/^ *$/.test(h)&&(n+=h+` +`,e=e.substring(h.length+1),f=!0),!f){const w=new RegExp(`^ {0,${Math.min(3,r-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),E=new RegExp(`^ {0,${Math.min(3,r-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),L=new RegExp(`^ {0,${Math.min(3,r-1)}}(?:\`\`\`|~~~)`),Y=new RegExp(`^ {0,${Math.min(3,r-1)}}#`);for(;e&&(d=e.split(` +`,1)[0],h=d,this.options.pedantic&&(h=h.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(L.test(h)||Y.test(h)||w.test(h)||E.test(e)));){if(h.search(/[^ ]/)>=r||!h.trim())m+=` +`+h.slice(r);else{if(l||u.search(/[^ ]/)>=4||L.test(u)||Y.test(u)||E.test(u))break;m+=` `+h}!l&&!h.trim()&&(l=!0),n+=d+` -`,e=e.substring(d.length+1),u=h.slice(a)}}_.loose||(c?_.loose=!0:/\n *\n *$/.test(n)&&(c=!0)),this.options.gfm&&(s=/^\[[ xX]\] /.exec(m),s&&(r=s[0]!=="[ ] ",m=m.replace(/^\[[ xX]\] +/,""))),_.items.push({type:"list_item",raw:n,task:!!s,checked:r,loose:!1,text:m}),_.raw+=n}_.items[_.items.length-1].raw=n.trimRight(),_.items[_.items.length-1].text=m.trimRight(),_.raw=_.raw.trimRight();const N=_.items.length;for(o=0;oL.type==="space"),E=w.length>0&&w.some(L=>/\n.*\n/.test(L.raw));_.loose=E}if(_.loose)for(o=0;o$/,"$1").replace(this.rules.inline._escapes,"$1"):"",r=i[3]?i[3].substring(1,i[3].length-1).replace(this.rules.inline._escapes,"$1"):i[3];return{type:"def",tag:n,raw:i[0],href:s,title:r}}}table(e){const i=this.rules.block.table.exec(e);if(i){const n={type:"table",header:Hl(i[1]).map(s=>({text:s})),align:i[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:i[3]&&i[3].trim()?i[3].replace(/\n[ \t]*$/,"").split(` -`):[]};if(n.header.length===n.align.length){n.raw=i[0];let s=n.align.length,r,a,o,l;for(r=0;r({text:c}));for(s=n.header.length,a=0;a/i.test(i[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(i[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(i[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:i[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):ct(i[0]):i[0]}}link(e){const i=this.rules.inline.link.exec(e);if(i){const n=i[2].trim();if(!this.options.pedantic&&/^$/.test(n))return;const a=fr(n.slice(0,-1),"\\");if((n.length-a.length)%2===0)return}else{const a=bf(i[2],"()");if(a>-1){const l=(i[0].indexOf("!")===0?5:4)+i[1].length+a;i[2]=i[2].substring(0,a),i[0]=i[0].substring(0,l).trim(),i[3]=""}}let s=i[2],r="";if(this.options.pedantic){const a=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(s);a&&(s=a[1],r=a[3])}else r=i[3]?i[3].slice(1,-1):"";return s=s.trim(),/^$/.test(n)?s=s.slice(1):s=s.slice(1,-1)),zl(i,{href:s&&s.replace(this.rules.inline._escapes,"$1"),title:r&&r.replace(this.rules.inline._escapes,"$1")},i[0],this.lexer)}}reflink(e,i){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let s=(n[2]||n[1]).replace(/\s+/g," ");if(s=i[s.toLowerCase()],!s){const r=n[0].charAt(0);return{type:"text",raw:r,text:r}}return zl(n,s,n[0],this.lexer)}}emStrong(e,i,n=""){let s=this.rules.inline.emStrong.lDelim.exec(e);if(!s||s[3]&&n.match(/[\p{L}\p{N}]/u))return;const r=s[1]||s[2]||"";if(!r||r&&(n===""||this.rules.inline.punctuation.exec(n))){const a=s[0].length-1;let o,l,c=a,u=0;const h=s[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(h.lastIndex=0,i=i.slice(-1*e.length+a);(s=h.exec(i))!=null;){if(o=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!o)continue;if(l=o.length,s[3]||s[4]){c+=l;continue}else if((s[5]||s[6])&&a%3&&!((a+l)%3)){u+=l;continue}if(c-=l,c>0)continue;l=Math.min(l,l+c+u);const d=e.slice(0,a+s.index+l+1);if(Math.min(a,l)%2){const f=d.slice(1,-1);return{type:"em",raw:d,text:f,tokens:this.lexer.inlineTokens(f)}}const m=d.slice(2,-2);return{type:"strong",raw:d,text:m,tokens:this.lexer.inlineTokens(m)}}}}codespan(e){const i=this.rules.inline.code.exec(e);if(i){let n=i[2].replace(/\n/g," ");const s=/[^ ]/.test(n),r=/^ /.test(n)&&/ $/.test(n);return s&&r&&(n=n.substring(1,n.length-1)),n=ct(n,!0),{type:"codespan",raw:i[0],text:n}}}br(e){const i=this.rules.inline.br.exec(e);if(i)return{type:"br",raw:i[0]}}del(e){const i=this.rules.inline.del.exec(e);if(i)return{type:"del",raw:i[0],text:i[2],tokens:this.lexer.inlineTokens(i[2])}}autolink(e,i){const n=this.rules.inline.autolink.exec(e);if(n){let s,r;return n[2]==="@"?(s=ct(this.options.mangle?i(n[1]):n[1]),r="mailto:"+s):(s=ct(n[1]),r=s),{type:"link",raw:n[0],text:s,href:r,tokens:[{type:"text",raw:s,text:s}]}}}url(e,i){let n;if(n=this.rules.inline.url.exec(e)){let s,r;if(n[2]==="@")s=ct(this.options.mangle?i(n[0]):n[0]),r="mailto:"+s;else{let a;do a=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0];while(a!==n[0]);s=ct(n[0]),n[1]==="www."?r="http://"+n[0]:r=n[0]}return{type:"link",raw:n[0],text:s,href:r,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(e,i){const n=this.rules.inline.text.exec(e);if(n){let s;return this.lexer.state.inRawBlock?s=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):ct(n[0]):n[0]:s=ct(this.options.smartypants?i(n[0]):n[0]),{type:"text",raw:n[0],text:s}}}}const j={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:Er,lheading:/^((?:(?!^bull ).|\n(?!\n|bull ))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};j._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/;j._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;j.def=Fe(j.def).replace("label",j._label).replace("title",j._title).getRegex();j.bullet=/(?:[*+-]|\d{1,9}[.)])/;j.listItemStart=Fe(/^( *)(bull) */).replace("bull",j.bullet).getRegex();j.list=Fe(j.list).replace(/bull/g,j.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+j.def.source+")").getRegex();j._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";j._comment=/|$)/;j.html=Fe(j.html,"i").replace("comment",j._comment).replace("tag",j._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();j.lheading=Fe(j.lheading).replace(/bull/g,j.bullet).getRegex();j.paragraph=Fe(j._paragraph).replace("hr",j.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",j._tag).getRegex();j.blockquote=Fe(j.blockquote).replace("paragraph",j.paragraph).getRegex();j.normal={...j};j.gfm={...j.normal,table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"};j.gfm.table=Fe(j.gfm.table).replace("hr",j.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",j._tag).getRegex();j.gfm.paragraph=Fe(j._paragraph).replace("hr",j.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",j.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",j._tag).getRegex();j.pedantic={...j.normal,html:Fe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",j._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Er,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Fe(j.normal._paragraph).replace("hr",j.hr).replace("heading",` *#{1,6} *[^ -]`).replace("lheading",j.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const X={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Er,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[^*]+(?=[^*])|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Er,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~\\\\"+X._uc_punctuation;X.punctuation=Fe(X.punctuation).replace(/punctuation/g,X._punctuation).getRegex();X.blockSkip=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g;X.escapedPunct=/\\[punct_*]/g;X._comment=Fe(j._comment).replace("(?:-->|$)","-->").getRegex();X.emStrong.lDelim=Fe(X.emStrong.lDelim).replace(/punct/g,X._punctuation).getRegex();X.emStrong.rDelimAst=Fe(X.emStrong.rDelimAst,"g").replace(/punct/g,X._punctuation).getRegex();X.emStrong.rDelimUnd=Fe(X.emStrong.rDelimUnd,"g").replace(/punct/g,X._punctuation).getRegex();X.escapedPunct=Fe(X.escapedPunct,"g").replace(/punct/g,X._punctuation).getRegex();X._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g;X._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;X._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/;X.autolink=Fe(X.autolink).replace("scheme",X._scheme).replace("email",X._email).getRegex();X._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;X.tag=Fe(X.tag).replace("comment",X._comment).replace("attribute",X._attribute).getRegex();X._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;X._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;X._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;X.link=Fe(X.link).replace("label",X._label).replace("href",X._href).replace("title",X._title).getRegex();X.reflink=Fe(X.reflink).replace("label",X._label).replace("ref",j._label).getRegex();X.nolink=Fe(X.nolink).replace("ref",j._label).getRegex();X.reflinkSearch=Fe(X.reflinkSearch,"g").replace("reflink",X.reflink).replace("nolink",X.nolink).getRegex();X.normal={...X};X.pedantic={...X.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:Fe(/^!?\[(label)\]\((.*?)\)/).replace("label",X._label).getRegex(),reflink:Fe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",X._label).getRegex()};X.gfm={...X.normal,escape:Fe(X.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\.5&&(n="x"+n.toString(16)),e+="&#"+n+";";return e}class Ni{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Ji,this.options.tokenizer=this.options.tokenizer||new Oo,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const i={block:j.normal,inline:X.normal};this.options.pedantic?(i.block=j.pedantic,i.inline=X.pedantic):this.options.gfm&&(i.block=j.gfm,this.options.breaks?i.inline=X.breaks:i.inline=X.gfm),this.tokenizer.rules=i}static get rules(){return{block:j,inline:X}}static lex(e,i){return new Ni(i).lex(e)}static lexInline(e,i){return new Ni(i).inlineTokens(e)}lex(e){e=e.replace(/\r\n|\r/g,` -`),this.blockTokens(e,this.tokens);let i;for(;i=this.inlineQueue.shift();)this.inlineTokens(i.src,i.tokens);return this.tokens}blockTokens(e,i=[]){this.options.pedantic?e=e.replace(/\t/g," ").replace(/^ +$/gm,""):e=e.replace(/^( *)(\t+)/gm,(o,l,c)=>l+" ".repeat(c.length));let n,s,r,a;for(;e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(o=>(n=o.call({lexer:this},e,i))?(e=e.substring(n.raw.length),i.push(n),!0):!1))){if(n=this.tokenizer.space(e)){e=e.substring(n.raw.length),n.raw.length===1&&i.length>0?i[i.length-1].raw+=` +`,e=e.substring(d.length+1),u=h.slice(r)}}_.loose||(c?_.loose=!0:/\n *\n *$/.test(n)&&(c=!0)),this.options.gfm&&(s=/^\[[ xX]\] /.exec(m),s&&(a=s[0]!=="[ ] ",m=m.replace(/^\[[ xX]\] +/,""))),_.items.push({type:"list_item",raw:n,task:!!s,checked:a,loose:!1,text:m}),_.raw+=n}_.items[_.items.length-1].raw=n.trimRight(),_.items[_.items.length-1].text=m.trimRight(),_.raw=_.raw.trimRight();const N=_.items.length;for(o=0;oL.type==="space"),E=w.length>0&&w.some(L=>/\n.*\n/.test(L.raw));_.loose=E}if(_.loose)for(o=0;o$/,"$1").replace(this.rules.inline._escapes,"$1"):"",a=i[3]?i[3].substring(1,i[3].length-1).replace(this.rules.inline._escapes,"$1"):i[3];return{type:"def",tag:n,raw:i[0],href:s,title:a}}}table(e){const i=this.rules.block.table.exec(e);if(i){const n={type:"table",header:Hl(i[1]).map(s=>({text:s})),align:i[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:i[3]&&i[3].trim()?i[3].replace(/\n[ \t]*$/,"").split(` +`):[]};if(n.header.length===n.align.length){n.raw=i[0];let s=n.align.length,a,r,o,l;for(a=0;a({text:c}));for(s=n.header.length,r=0;r/i.test(i[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(i[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(i[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:i[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):ct(i[0]):i[0]}}link(e){const i=this.rules.inline.link.exec(e);if(i){const n=i[2].trim();if(!this.options.pedantic&&/^$/.test(n))return;const r=fa(n.slice(0,-1),"\\");if((n.length-r.length)%2===0)return}else{const r=bf(i[2],"()");if(r>-1){const l=(i[0].indexOf("!")===0?5:4)+i[1].length+r;i[2]=i[2].substring(0,r),i[0]=i[0].substring(0,l).trim(),i[3]=""}}let s=i[2],a="";if(this.options.pedantic){const r=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(s);r&&(s=r[1],a=r[3])}else a=i[3]?i[3].slice(1,-1):"";return s=s.trim(),/^$/.test(n)?s=s.slice(1):s=s.slice(1,-1)),zl(i,{href:s&&s.replace(this.rules.inline._escapes,"$1"),title:a&&a.replace(this.rules.inline._escapes,"$1")},i[0],this.lexer)}}reflink(e,i){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let s=(n[2]||n[1]).replace(/\s+/g," ");if(s=i[s.toLowerCase()],!s){const a=n[0].charAt(0);return{type:"text",raw:a,text:a}}return zl(n,s,n[0],this.lexer)}}emStrong(e,i,n=""){let s=this.rules.inline.emStrong.lDelim.exec(e);if(!s||s[3]&&n.match(/[\p{L}\p{N}]/u))return;const a=s[1]||s[2]||"";if(!a||a&&(n===""||this.rules.inline.punctuation.exec(n))){const r=s[0].length-1;let o,l,c=r,u=0;const h=s[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(h.lastIndex=0,i=i.slice(-1*e.length+r);(s=h.exec(i))!=null;){if(o=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!o)continue;if(l=o.length,s[3]||s[4]){c+=l;continue}else if((s[5]||s[6])&&r%3&&!((r+l)%3)){u+=l;continue}if(c-=l,c>0)continue;l=Math.min(l,l+c+u);const d=e.slice(0,r+s.index+l+1);if(Math.min(r,l)%2){const f=d.slice(1,-1);return{type:"em",raw:d,text:f,tokens:this.lexer.inlineTokens(f)}}const m=d.slice(2,-2);return{type:"strong",raw:d,text:m,tokens:this.lexer.inlineTokens(m)}}}}codespan(e){const i=this.rules.inline.code.exec(e);if(i){let n=i[2].replace(/\n/g," ");const s=/[^ ]/.test(n),a=/^ /.test(n)&&/ $/.test(n);return s&&a&&(n=n.substring(1,n.length-1)),n=ct(n,!0),{type:"codespan",raw:i[0],text:n}}}br(e){const i=this.rules.inline.br.exec(e);if(i)return{type:"br",raw:i[0]}}del(e){const i=this.rules.inline.del.exec(e);if(i)return{type:"del",raw:i[0],text:i[2],tokens:this.lexer.inlineTokens(i[2])}}autolink(e,i){const n=this.rules.inline.autolink.exec(e);if(n){let s,a;return n[2]==="@"?(s=ct(this.options.mangle?i(n[1]):n[1]),a="mailto:"+s):(s=ct(n[1]),a=s),{type:"link",raw:n[0],text:s,href:a,tokens:[{type:"text",raw:s,text:s}]}}}url(e,i){let n;if(n=this.rules.inline.url.exec(e)){let s,a;if(n[2]==="@")s=ct(this.options.mangle?i(n[0]):n[0]),a="mailto:"+s;else{let r;do r=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0];while(r!==n[0]);s=ct(n[0]),n[1]==="www."?a="http://"+n[0]:a=n[0]}return{type:"link",raw:n[0],text:s,href:a,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(e,i){const n=this.rules.inline.text.exec(e);if(n){let s;return this.lexer.state.inRawBlock?s=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):ct(n[0]):n[0]:s=ct(this.options.smartypants?i(n[0]):n[0]),{type:"text",raw:n[0],text:s}}}}const j={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:Ea,lheading:/^((?:(?!^bull ).|\n(?!\n|bull ))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};j._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/;j._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;j.def=Fe(j.def).replace("label",j._label).replace("title",j._title).getRegex();j.bullet=/(?:[*+-]|\d{1,9}[.)])/;j.listItemStart=Fe(/^( *)(bull) */).replace("bull",j.bullet).getRegex();j.list=Fe(j.list).replace(/bull/g,j.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+j.def.source+")").getRegex();j._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";j._comment=/|$)/;j.html=Fe(j.html,"i").replace("comment",j._comment).replace("tag",j._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();j.lheading=Fe(j.lheading).replace(/bull/g,j.bullet).getRegex();j.paragraph=Fe(j._paragraph).replace("hr",j.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",j._tag).getRegex();j.blockquote=Fe(j.blockquote).replace("paragraph",j.paragraph).getRegex();j.normal={...j};j.gfm={...j.normal,table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"};j.gfm.table=Fe(j.gfm.table).replace("hr",j.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",j._tag).getRegex();j.gfm.paragraph=Fe(j._paragraph).replace("hr",j.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",j.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",j._tag).getRegex();j.pedantic={...j.normal,html:Fe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",j._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ea,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Fe(j.normal._paragraph).replace("hr",j.hr).replace("heading",` *#{1,6} *[^ +]`).replace("lheading",j.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const X={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Ea,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[^*]+(?=[^*])|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Ea,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~\\\\"+X._uc_punctuation;X.punctuation=Fe(X.punctuation).replace(/punctuation/g,X._punctuation).getRegex();X.blockSkip=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g;X.escapedPunct=/\\[punct_*]/g;X._comment=Fe(j._comment).replace("(?:-->|$)","-->").getRegex();X.emStrong.lDelim=Fe(X.emStrong.lDelim).replace(/punct/g,X._punctuation).getRegex();X.emStrong.rDelimAst=Fe(X.emStrong.rDelimAst,"g").replace(/punct/g,X._punctuation).getRegex();X.emStrong.rDelimUnd=Fe(X.emStrong.rDelimUnd,"g").replace(/punct/g,X._punctuation).getRegex();X.escapedPunct=Fe(X.escapedPunct,"g").replace(/punct/g,X._punctuation).getRegex();X._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g;X._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;X._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/;X.autolink=Fe(X.autolink).replace("scheme",X._scheme).replace("email",X._email).getRegex();X._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;X.tag=Fe(X.tag).replace("comment",X._comment).replace("attribute",X._attribute).getRegex();X._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;X._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;X._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;X.link=Fe(X.link).replace("label",X._label).replace("href",X._href).replace("title",X._title).getRegex();X.reflink=Fe(X.reflink).replace("label",X._label).replace("ref",j._label).getRegex();X.nolink=Fe(X.nolink).replace("ref",j._label).getRegex();X.reflinkSearch=Fe(X.reflinkSearch,"g").replace("reflink",X.reflink).replace("nolink",X.nolink).getRegex();X.normal={...X};X.pedantic={...X.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:Fe(/^!?\[(label)\]\((.*?)\)/).replace("label",X._label).getRegex(),reflink:Fe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",X._label).getRegex()};X.gfm={...X.normal,escape:Fe(X.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\.5&&(n="x"+n.toString(16)),e+="&#"+n+";";return e}class Ni{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Ji,this.options.tokenizer=this.options.tokenizer||new Oo,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const i={block:j.normal,inline:X.normal};this.options.pedantic?(i.block=j.pedantic,i.inline=X.pedantic):this.options.gfm&&(i.block=j.gfm,this.options.breaks?i.inline=X.breaks:i.inline=X.gfm),this.tokenizer.rules=i}static get rules(){return{block:j,inline:X}}static lex(e,i){return new Ni(i).lex(e)}static lexInline(e,i){return new Ni(i).inlineTokens(e)}lex(e){e=e.replace(/\r\n|\r/g,` +`),this.blockTokens(e,this.tokens);let i;for(;i=this.inlineQueue.shift();)this.inlineTokens(i.src,i.tokens);return this.tokens}blockTokens(e,i=[]){this.options.pedantic?e=e.replace(/\t/g," ").replace(/^ +$/gm,""):e=e.replace(/^( *)(\t+)/gm,(o,l,c)=>l+" ".repeat(c.length));let n,s,a,r;for(;e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(o=>(n=o.call({lexer:this},e,i))?(e=e.substring(n.raw.length),i.push(n),!0):!1))){if(n=this.tokenizer.space(e)){e=e.substring(n.raw.length),n.raw.length===1&&i.length>0?i[i.length-1].raw+=` `:i.push(n);continue}if(n=this.tokenizer.code(e)){e=e.substring(n.raw.length),s=i[i.length-1],s&&(s.type==="paragraph"||s.type==="text")?(s.raw+=` `+n.raw,s.text+=` `+n.text,this.inlineQueue[this.inlineQueue.length-1].src=s.text):i.push(n);continue}if(n=this.tokenizer.fences(e)){e=e.substring(n.raw.length),i.push(n);continue}if(n=this.tokenizer.heading(e)){e=e.substring(n.raw.length),i.push(n);continue}if(n=this.tokenizer.hr(e)){e=e.substring(n.raw.length),i.push(n);continue}if(n=this.tokenizer.blockquote(e)){e=e.substring(n.raw.length),i.push(n);continue}if(n=this.tokenizer.list(e)){e=e.substring(n.raw.length),i.push(n);continue}if(n=this.tokenizer.html(e)){e=e.substring(n.raw.length),i.push(n);continue}if(n=this.tokenizer.def(e)){e=e.substring(n.raw.length),s=i[i.length-1],s&&(s.type==="paragraph"||s.type==="text")?(s.raw+=` `+n.raw,s.text+=` -`+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=s.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title});continue}if(n=this.tokenizer.table(e)){e=e.substring(n.raw.length),i.push(n);continue}if(n=this.tokenizer.lheading(e)){e=e.substring(n.raw.length),i.push(n);continue}if(r=e,this.options.extensions&&this.options.extensions.startBlock){let o=1/0;const l=e.slice(1);let c;this.options.extensions.startBlock.forEach(function(u){c=u.call({lexer:this},l),typeof c=="number"&&c>=0&&(o=Math.min(o,c))}),o<1/0&&o>=0&&(r=e.substring(0,o+1))}if(this.state.top&&(n=this.tokenizer.paragraph(r))){s=i[i.length-1],a&&s.type==="paragraph"?(s.raw+=` +`+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=s.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title});continue}if(n=this.tokenizer.table(e)){e=e.substring(n.raw.length),i.push(n);continue}if(n=this.tokenizer.lheading(e)){e=e.substring(n.raw.length),i.push(n);continue}if(a=e,this.options.extensions&&this.options.extensions.startBlock){let o=1/0;const l=e.slice(1);let c;this.options.extensions.startBlock.forEach(function(u){c=u.call({lexer:this},l),typeof c=="number"&&c>=0&&(o=Math.min(o,c))}),o<1/0&&o>=0&&(a=e.substring(0,o+1))}if(this.state.top&&(n=this.tokenizer.paragraph(a))){s=i[i.length-1],r&&s.type==="paragraph"?(s.raw+=` `+n.raw,s.text+=` -`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=s.text):i.push(n),a=r.length!==e.length,e=e.substring(n.raw.length);continue}if(n=this.tokenizer.text(e)){e=e.substring(n.raw.length),s=i[i.length-1],s&&s.type==="text"?(s.raw+=` +`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=s.text):i.push(n),r=a.length!==e.length,e=e.substring(n.raw.length);continue}if(n=this.tokenizer.text(e)){e=e.substring(n.raw.length),s=i[i.length-1],s&&s.type==="text"?(s.raw+=` `+n.raw,s.text+=` -`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=s.text):i.push(n);continue}if(e){const o="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(o);break}else throw new Error(o)}}return this.state.top=!0,i}inline(e,i=[]){return this.inlineQueue.push({src:e,tokens:i}),i}inlineTokens(e,i=[]){let n,s,r,a=e,o,l,c;if(this.tokens.links){const u=Object.keys(this.tokens.links);if(u.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(a))!=null;)u.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.blockSkip.exec(a))!=null;)a=a.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(o=this.tokenizer.rules.inline.escapedPunct.exec(a))!=null;)a=a.slice(0,o.index)+"++"+a.slice(this.tokenizer.rules.inline.escapedPunct.lastIndex);for(;e;)if(l||(c=""),l=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(u=>(n=u.call({lexer:this},e,i))?(e=e.substring(n.raw.length),i.push(n),!0):!1))){if(n=this.tokenizer.escape(e)){e=e.substring(n.raw.length),i.push(n);continue}if(n=this.tokenizer.tag(e)){e=e.substring(n.raw.length),s=i[i.length-1],s&&n.type==="text"&&s.type==="text"?(s.raw+=n.raw,s.text+=n.text):i.push(n);continue}if(n=this.tokenizer.link(e)){e=e.substring(n.raw.length),i.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length),s=i[i.length-1],s&&n.type==="text"&&s.type==="text"?(s.raw+=n.raw,s.text+=n.text):i.push(n);continue}if(n=this.tokenizer.emStrong(e,a,c)){e=e.substring(n.raw.length),i.push(n);continue}if(n=this.tokenizer.codespan(e)){e=e.substring(n.raw.length),i.push(n);continue}if(n=this.tokenizer.br(e)){e=e.substring(n.raw.length),i.push(n);continue}if(n=this.tokenizer.del(e)){e=e.substring(n.raw.length),i.push(n);continue}if(n=this.tokenizer.autolink(e,ql)){e=e.substring(n.raw.length),i.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(e,ql))){e=e.substring(n.raw.length),i.push(n);continue}if(r=e,this.options.extensions&&this.options.extensions.startInline){let u=1/0;const h=e.slice(1);let d;this.options.extensions.startInline.forEach(function(m){d=m.call({lexer:this},h),typeof d=="number"&&d>=0&&(u=Math.min(u,d))}),u<1/0&&u>=0&&(r=e.substring(0,u+1))}if(n=this.tokenizer.inlineText(r,xf)){e=e.substring(n.raw.length),n.raw.slice(-1)!=="_"&&(c=n.raw.slice(-1)),l=!0,s=i[i.length-1],s&&s.type==="text"?(s.raw+=n.raw,s.text+=n.text):i.push(n);continue}if(e){const u="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(u);break}else throw new Error(u)}}return i}}class Go{constructor(e){this.options=e||Ji}code(e,i,n){const s=(i||"").match(/\S*/)[0];if(this.options.highlight){const r=this.options.highlight(e,s);r!=null&&r!==e&&(n=!0,e=r)}return e=e.replace(/\n$/,"")+` +`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=s.text):i.push(n);continue}if(e){const o="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(o);break}else throw new Error(o)}}return this.state.top=!0,i}inline(e,i=[]){return this.inlineQueue.push({src:e,tokens:i}),i}inlineTokens(e,i=[]){let n,s,a,r=e,o,l,c;if(this.tokens.links){const u=Object.keys(this.tokens.links);if(u.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)u.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)r=r.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(o=this.tokenizer.rules.inline.escapedPunct.exec(r))!=null;)r=r.slice(0,o.index)+"++"+r.slice(this.tokenizer.rules.inline.escapedPunct.lastIndex);for(;e;)if(l||(c=""),l=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(u=>(n=u.call({lexer:this},e,i))?(e=e.substring(n.raw.length),i.push(n),!0):!1))){if(n=this.tokenizer.escape(e)){e=e.substring(n.raw.length),i.push(n);continue}if(n=this.tokenizer.tag(e)){e=e.substring(n.raw.length),s=i[i.length-1],s&&n.type==="text"&&s.type==="text"?(s.raw+=n.raw,s.text+=n.text):i.push(n);continue}if(n=this.tokenizer.link(e)){e=e.substring(n.raw.length),i.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length),s=i[i.length-1],s&&n.type==="text"&&s.type==="text"?(s.raw+=n.raw,s.text+=n.text):i.push(n);continue}if(n=this.tokenizer.emStrong(e,r,c)){e=e.substring(n.raw.length),i.push(n);continue}if(n=this.tokenizer.codespan(e)){e=e.substring(n.raw.length),i.push(n);continue}if(n=this.tokenizer.br(e)){e=e.substring(n.raw.length),i.push(n);continue}if(n=this.tokenizer.del(e)){e=e.substring(n.raw.length),i.push(n);continue}if(n=this.tokenizer.autolink(e,ql)){e=e.substring(n.raw.length),i.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(e,ql))){e=e.substring(n.raw.length),i.push(n);continue}if(a=e,this.options.extensions&&this.options.extensions.startInline){let u=1/0;const h=e.slice(1);let d;this.options.extensions.startInline.forEach(function(m){d=m.call({lexer:this},h),typeof d=="number"&&d>=0&&(u=Math.min(u,d))}),u<1/0&&u>=0&&(a=e.substring(0,u+1))}if(n=this.tokenizer.inlineText(a,xf)){e=e.substring(n.raw.length),n.raw.slice(-1)!=="_"&&(c=n.raw.slice(-1)),l=!0,s=i[i.length-1],s&&s.type==="text"?(s.raw+=n.raw,s.text+=n.text):i.push(n);continue}if(e){const u="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(u);break}else throw new Error(u)}}return i}}class Go{constructor(e){this.options=e||Ji}code(e,i,n){const s=(i||"").match(/\S*/)[0];if(this.options.highlight){const a=this.options.highlight(e,s);a!=null&&a!==e&&(n=!0,e=a)}return e=e.replace(/\n$/,"")+` `,s?'
'+(n?e:ct(e,!0))+`
`:"
"+(n?e:ct(e,!0))+`
`}blockquote(e){return`
${e}
-`}html(e,i){return e}heading(e,i,n,s){if(this.options.headerIds){const r=this.options.headerPrefix+s.slug(n);return`${e} +`}html(e,i){return e}heading(e,i,n,s){if(this.options.headerIds){const a=this.options.headerPrefix+s.slug(n);return`${e} `}return`${e} `}hr(){return this.options.xhtml?`
`:`
-`}list(e,i,n){const s=i?"ol":"ul",r=i&&n!==1?' start="'+n+'"':"";return"<"+s+r+`> +`}list(e,i,n){const s=i?"ol":"ul",a=i&&n!==1?' start="'+n+'"':"";return"<"+s+a+`> `+e+" `}listitem(e){return`
  • ${e}
  • `}checkbox(e){return" "}paragraph(e){return`

    ${e}

    @@ -41,16 +41,16 @@ ${e} `}tablerow(e){return` ${e} `}tablecell(e,i){const n=i.header?"th":"td";return(i.align?`<${n} align="${i.align}">`:`<${n}>`)+e+` -`}strong(e){return`${e}`}em(e){return`${e}`}codespan(e){return`${e}`}br(){return this.options.xhtml?"
    ":"
    "}del(e){return`${e}`}link(e,i,n){if(e=Bl(this.options.sanitize,this.options.baseUrl,e),e===null)return n;let s='",s}image(e,i,n){if(e=Bl(this.options.sanitize,this.options.baseUrl,e),e===null)return n;let s=`${n}":">",s}text(e){return e}}class lh{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,i,n){return""+n}image(e,i,n){return""+n}br(){return""}}class ch{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,i){let n=e,s=0;if(this.seen.hasOwnProperty(n)){s=this.seen[e];do s++,n=e+"-"+s;while(this.seen.hasOwnProperty(n))}return i||(this.seen[e]=s,this.seen[n]=0),n}slug(e,i={}){const n=this.serialize(e);return this.getNextSafeSlug(n,i.dryrun)}}let Ps=class io{constructor(e){this.options=e||Ji,this.options.renderer=this.options.renderer||new Go,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new lh,this.slugger=new ch}static parse(e,i){return new io(i).parse(e)}static parseInline(e,i){return new io(i).parseInline(e)}parse(e,i=!0){let n="",s,r,a,o,l,c,u,h,d,m,f,p,y,_,v,N,w,E,L;const Y=e.length;for(s=0;s0&&v.tokens[0].type==="paragraph"?(v.tokens[0].text=E+" "+v.tokens[0].text,v.tokens[0].tokens&&v.tokens[0].tokens.length>0&&v.tokens[0].tokens[0].type==="text"&&(v.tokens[0].tokens[0].text=E+" "+v.tokens[0].tokens[0].text)):v.tokens.unshift({type:"text",text:E}):_+=E),_+=this.parse(v.tokens,y),d+=this.renderer.listitem(_,w,N);n+=this.renderer.list(d,f,p);continue}case"html":{n+=this.renderer.html(m.text,m.block);continue}case"paragraph":{n+=this.renderer.paragraph(this.parseInline(m.tokens));continue}case"text":{for(d=m.tokens?this.parseInline(m.tokens):m.text;s+1{if(n.message+=` -Please report this to https://github.com/markedjs/marked.`,t){const s="

    An error occurred:

    "+ct(n.message+"",!0)+"
    ";if(e)return Promise.resolve(s);if(i){i(null,s);return}return s}if(e)return Promise.reject(n);if(i){i(n);return}throw n}}function uh(t,e){return(i,n,s)=>{typeof n=="function"&&(s=n,n=null);const r={...n};n={...J.defaults,...r};const a=wf(n.silent,n.async,s);if(typeof i>"u"||i===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof i!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(i)+", string expected"));if(_f(n,s),n.hooks&&(n.hooks.options=n),s){const o=n.highlight;let l;try{n.hooks&&(i=n.hooks.preprocess(i)),l=t(i,n)}catch(h){return a(h)}const c=function(h){let d;if(!h)try{n.walkTokens&&J.walkTokens(l,n.walkTokens),d=e(l,n),n.hooks&&(d=n.hooks.postprocess(d))}catch(m){h=m}return n.highlight=o,h?a(h):s(null,d)};if(!o||o.length<3||(delete n.highlight,!l.length))return c();let u=0;J.walkTokens(l,function(h){h.type==="code"&&(u++,setTimeout(()=>{o(h.text,h.lang,function(d,m){if(d)return c(d);m!=null&&m!==h.text&&(h.text=m,h.escaped=!0),u--,u===0&&c()})},0))}),u===0&&c();return}if(n.async)return Promise.resolve(n.hooks?n.hooks.preprocess(i):i).then(o=>t(o,n)).then(o=>n.walkTokens?Promise.all(J.walkTokens(o,n.walkTokens)).then(()=>o):o).then(o=>e(o,n)).then(o=>n.hooks?n.hooks.postprocess(o):o).catch(a);try{n.hooks&&(i=n.hooks.preprocess(i));const o=t(i,n);n.walkTokens&&J.walkTokens(o,n.walkTokens);let l=e(o,n);return n.hooks&&(l=n.hooks.postprocess(l)),l}catch(o){return a(o)}}}function J(t,e,i){return uh(Ni.lex,Ps.parse)(t,e,i)}J.options=J.setOptions=function(t){return J.defaults={...J.defaults,...t},af(J.defaults),J};J.getDefaults=sh;J.defaults=Ji;J.use=function(...t){const e=J.defaults.extensions||{renderers:{},childTokens:{}};t.forEach(i=>{const n={...i};if(n.async=J.defaults.async||n.async||!1,i.extensions&&(i.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if(s.renderer){const r=e.renderers[s.name];r?e.renderers[s.name]=function(...a){let o=s.renderer.apply(this,a);return o===!1&&(o=r.apply(this,a)),o}:e.renderers[s.name]=s.renderer}if(s.tokenizer){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");e[s.level]?e[s.level].unshift(s.tokenizer):e[s.level]=[s.tokenizer],s.start&&(s.level==="block"?e.startBlock?e.startBlock.push(s.start):e.startBlock=[s.start]:s.level==="inline"&&(e.startInline?e.startInline.push(s.start):e.startInline=[s.start]))}s.childTokens&&(e.childTokens[s.name]=s.childTokens)}),n.extensions=e),i.renderer){const s=J.defaults.renderer||new Go;for(const r in i.renderer){const a=s[r];s[r]=(...o)=>{let l=i.renderer[r].apply(s,o);return l===!1&&(l=a.apply(s,o)),l}}n.renderer=s}if(i.tokenizer){const s=J.defaults.tokenizer||new Oo;for(const r in i.tokenizer){const a=s[r];s[r]=(...o)=>{let l=i.tokenizer[r].apply(s,o);return l===!1&&(l=a.apply(s,o)),l}}n.tokenizer=s}if(i.hooks){const s=J.defaults.hooks||new Mr;for(const r in i.hooks){const a=s[r];Mr.passThroughHooks.has(r)?s[r]=o=>{if(J.defaults.async)return Promise.resolve(i.hooks[r].call(s,o)).then(c=>a.call(s,c));const l=i.hooks[r].call(s,o);return a.call(s,l)}:s[r]=(...o)=>{let l=i.hooks[r].apply(s,o);return l===!1&&(l=a.apply(s,o)),l}}n.hooks=s}if(i.walkTokens){const s=J.defaults.walkTokens;n.walkTokens=function(r){let a=[];return a.push(i.walkTokens.call(this,r)),s&&(a=a.concat(s.call(this,r))),a}}J.setOptions(n)})};J.walkTokens=function(t,e){let i=[];for(const n of t)switch(i=i.concat(e.call(J,n)),n.type){case"table":{for(const s of n.header)i=i.concat(J.walkTokens(s.tokens,e));for(const s of n.rows)for(const r of s)i=i.concat(J.walkTokens(r.tokens,e));break}case"list":{i=i.concat(J.walkTokens(n.items,e));break}default:J.defaults.extensions&&J.defaults.extensions.childTokens&&J.defaults.extensions.childTokens[n.type]?J.defaults.extensions.childTokens[n.type].forEach(function(s){i=i.concat(J.walkTokens(n[s],e))}):n.tokens&&(i=i.concat(J.walkTokens(n.tokens,e)))}return i};J.parseInline=uh(Ni.lexInline,Ps.parseInline);J.Parser=Ps;J.parser=Ps.parse;J.Renderer=Go;J.TextRenderer=lh;J.Lexer=Ni;J.lexer=Ni.lex;J.Tokenizer=Oo;J.Slugger=ch;J.Hooks=Mr;J.parse=J;J.options;J.setOptions;J.use;J.walkTokens;const si=J.parseInline,Cf=J;Ps.parse;Ni.lex;function Nf(){return{mangle:!1,walkTokens(t){if(t.type!=="link"||!t.href.startsWith("mailto:"))return;const e=t.href.substring(7),i=Ff(e);t.href=`mailto:${i}`,!(t.tokens.length!==1||t.tokens[0].type!=="text"||t.tokens[0].text!==e)&&(t.text=i,t.tokens[0].text=i)}}}function Ff(t){let e="",i,n;const s=t.length;for(i=0;i.5&&(n="x"+n.toString(16)),e+="&#"+n+";";return e}function Zo(t,e){const i=Object.create(null),n=t.split(",");for(let s=0;s!!i[s.toLowerCase()]:s=>!!i[s]}const Ie={},Nn=[],Xt=()=>{},Ef=()=>!1,Mf=/^on[^a-z]/,Jr=t=>Mf.test(t),Xo=t=>t.startsWith("onUpdate:"),at=Object.assign,Wo=(t,e)=>{const i=t.indexOf(e);i>-1&&t.splice(i,1)},Tf=Object.prototype.hasOwnProperty,ue=(t,e)=>Tf.call(t,e),ee=Array.isArray,Fn=t=>As(t)==="[object Map]",Qr=t=>As(t)==="[object Set]",jl=t=>As(t)==="[object Date]",ne=t=>typeof t=="function",Qe=t=>typeof t=="string",An=t=>typeof t=="symbol",Te=t=>t!==null&&typeof t=="object",hh=t=>(Te(t)||ne(t))&&ne(t.then)&&ne(t.catch),dh=Object.prototype.toString,As=t=>dh.call(t),Rf=t=>As(t).slice(8,-1),mh=t=>As(t)==="[object Object]",Ko=t=>Qe(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,pr=Zo(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ea=t=>{const e=Object.create(null);return i=>e[i]||(e[i]=t(i))},If=/-(\w)/g,Qt=ea(t=>t.replace(If,(e,i)=>i?i.toUpperCase():"")),kf=/\B([A-Z])/g,Hn=ea(t=>t.replace(kf,"-$1").toLowerCase()),ta=ea(t=>t.charAt(0).toUpperCase()+t.slice(1)),Sa=ea(t=>t?`on${ta(t)}`:""),ji=(t,e)=>!Object.is(t,e),gr=(t,e)=>{for(let i=0;i{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:i})},Rr=t=>{const e=parseFloat(t);return isNaN(e)?t:e};let Yl;const no=()=>Yl||(Yl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Vo(t){if(ee(t)){const e={};for(let i=0;i{if(i){const n=i.split(Sf);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function Ui(t){let e="";if(Qe(t))e=t;else if(ee(t))for(let i=0;iia(i,e))}const Ge=t=>Qe(t)?t:t==null?"":ee(t)||Te(t)&&(t.toString===dh||!ne(t.toString))?JSON.stringify(t,ph,2):String(t),ph=(t,e)=>e&&e.__v_isRef?ph(t,e.value):Fn(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((i,[n,s])=>(i[`${n} =>`]=s,i),{})}:Qr(e)?{[`Set(${e.size})`]:[...e.values()]}:Te(e)&&!ee(e)&&!mh(e)?String(e):e;let At;class Xf{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=At,!e&&At&&(this.index=(At.scopes||(At.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const i=At;try{return At=this,e()}finally{At=i}}}on(){At=this}off(){At=this.parent}stop(e){if(this._active){let i,n;for(i=0,n=this.effects.length;i{const e=new Set(t);return e.w=0,e.n=0,e},gh=t=>(t.w&Fi)>0,yh=t=>(t.n&Fi)>0,Vf=({deps:t})=>{if(t.length)for(let e=0;e{const{deps:e}=t;if(e.length){let i=0;for(let n=0;n{(u==="length"||!An(u)&&u>=l)&&o.push(c)})}else switch(i!==void 0&&o.push(a.get(i)),e){case"add":ee(t)?Ko(i)&&o.push(a.get("length")):(o.push(a.get(Bi)),Fn(t)&&o.push(a.get(ao)));break;case"delete":ee(t)||(o.push(a.get(Bi)),Fn(t)&&o.push(a.get(ao)));break;case"set":Fn(t)&&o.push(a.get(Bi));break}if(o.length===1)o[0]&&oo(o[0]);else{const l=[];for(const c of o)c&&l.push(...c);oo(Uo(l))}}function oo(t,e){const i=ee(t)?t:[...t];for(const n of i)n.computed&&Jl(n);for(const n of i)n.computed||Jl(n)}function Jl(t,e){(t!==Gt||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const Bf=Zo("__proto__,__v_isRef,__isVue"),vh=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(An)),Ql=Hf();function Hf(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...i){const n=fe(this);for(let r=0,a=this.length;r{t[e]=function(...i){zn();const n=fe(this)[e].apply(this,i);return qn(),n}}),t}function zf(t){const e=fe(this);return Ct(e,"has",t),e.hasOwnProperty(t)}class xh{constructor(e=!1,i=!1){this._isReadonly=e,this._shallow=i}get(e,i,n){const s=this._isReadonly,r=this._shallow;if(i==="__v_isReactive")return!s;if(i==="__v_isReadonly")return s;if(i==="__v_isShallow")return r;if(i==="__v_raw"&&n===(s?r?ap:Fh:r?Nh:Ch).get(e))return e;const a=ee(e);if(!s){if(a&&ue(Ql,i))return Reflect.get(Ql,i,n);if(i==="hasOwnProperty")return zf}const o=Reflect.get(e,i,n);return(An(i)?vh.has(i):Bf(i))||(s||Ct(e,"get",i),r)?o:dt(o)?a&&Ko(i)?o:o.value:Te(o)?s?Mh(o):sa(o):o}}class wh extends xh{constructor(e=!1){super(!1,e)}set(e,i,n,s){let r=e[i];if(On(r)&&dt(r)&&!dt(n))return!1;if(!this._shallow&&(!Ir(n)&&!On(n)&&(r=fe(r),n=fe(n)),!ee(e)&&dt(r)&&!dt(n)))return r.value=n,!0;const a=ee(e)&&Ko(i)?Number(i)t,na=t=>Reflect.getPrototypeOf(t);function js(t,e,i=!1,n=!1){t=t.__v_raw;const s=fe(t),r=fe(e);i||(ji(e,r)&&Ct(s,"get",e),Ct(s,"get",r));const{has:a}=na(s),o=n?Ho:i?jo:bs;if(a.call(s,e))return o(t.get(e));if(a.call(s,r))return o(t.get(r));t!==s&&t.get(e)}function Ys(t,e=!1){const i=this.__v_raw,n=fe(i),s=fe(t);return e||(ji(t,s)&&Ct(n,"has",t),Ct(n,"has",s)),t===s?i.has(t):i.has(t)||i.has(s)}function $s(t,e=!1){return t=t.__v_raw,!e&&Ct(fe(t),"iterate",Bi),Reflect.get(t,"size",t)}function ec(t){t=fe(t);const e=fe(this);return na(e).has.call(e,t)||(e.add(t),ai(e,"add",t,t)),this}function tc(t,e){e=fe(e);const i=fe(this),{has:n,get:s}=na(i);let r=n.call(i,t);r||(t=fe(t),r=n.call(i,t));const a=s.call(i,t);return i.set(t,e),r?ji(e,a)&&ai(i,"set",t,e):ai(i,"add",t,e),this}function ic(t){const e=fe(this),{has:i,get:n}=na(e);let s=i.call(e,t);s||(t=fe(t),s=i.call(e,t)),n&&n.call(e,t);const r=e.delete(t);return s&&ai(e,"delete",t,void 0),r}function nc(){const t=fe(this),e=t.size!==0,i=t.clear();return e&&ai(t,"clear",void 0,void 0),i}function Js(t,e){return function(n,s){const r=this,a=r.__v_raw,o=fe(a),l=e?Ho:t?jo:bs;return!t&&Ct(o,"iterate",Bi),a.forEach((c,u)=>n.call(s,l(c),l(u),r))}}function Qs(t,e,i){return function(...n){const s=this.__v_raw,r=fe(s),a=Fn(r),o=t==="entries"||t===Symbol.iterator&&a,l=t==="keys"&&a,c=s[t](...n),u=i?Ho:e?jo:bs;return!e&&Ct(r,"iterate",l?ao:Bi),{next(){const{value:h,done:d}=c.next();return d?{value:h,done:d}:{value:o?[u(h[0]),u(h[1])]:u(h),done:d}},[Symbol.iterator](){return this}}}}function hi(t){return function(...e){return t==="delete"?!1:this}}function Jf(){const t={get(r){return js(this,r)},get size(){return $s(this)},has:Ys,add:ec,set:tc,delete:ic,clear:nc,forEach:Js(!1,!1)},e={get(r){return js(this,r,!1,!0)},get size(){return $s(this)},has:Ys,add:ec,set:tc,delete:ic,clear:nc,forEach:Js(!1,!0)},i={get(r){return js(this,r,!0)},get size(){return $s(this,!0)},has(r){return Ys.call(this,r,!0)},add:hi("add"),set:hi("set"),delete:hi("delete"),clear:hi("clear"),forEach:Js(!0,!1)},n={get(r){return js(this,r,!0,!0)},get size(){return $s(this,!0)},has(r){return Ys.call(this,r,!0)},add:hi("add"),set:hi("set"),delete:hi("delete"),clear:hi("clear"),forEach:Js(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{t[r]=Qs(r,!1,!1),i[r]=Qs(r,!0,!1),e[r]=Qs(r,!1,!0),n[r]=Qs(r,!0,!0)}),[t,i,e,n]}const[Qf,ep,tp,ip]=Jf();function zo(t,e){const i=e?t?ip:tp:t?ep:Qf;return(n,s,r)=>s==="__v_isReactive"?!t:s==="__v_isReadonly"?t:s==="__v_raw"?n:Reflect.get(ue(i,s)&&s in n?i:n,s,r)}const np={get:zo(!1,!1)},sp={get:zo(!1,!0)},rp={get:zo(!0,!1)},Ch=new WeakMap,Nh=new WeakMap,Fh=new WeakMap,ap=new WeakMap;function op(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function lp(t){return t.__v_skip||!Object.isExtensible(t)?0:op(Rf(t))}function sa(t){return On(t)?t:qo(t,!1,jf,np,Ch)}function Eh(t){return qo(t,!1,$f,sp,Nh)}function Mh(t){return qo(t,!0,Yf,rp,Fh)}function qo(t,e,i,n,s){if(!Te(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const r=s.get(t);if(r)return r;const a=lp(t);if(a===0)return t;const o=new Proxy(t,a===2?n:i);return s.set(t,o),o}function En(t){return On(t)?En(t.__v_raw):!!(t&&t.__v_isReactive)}function On(t){return!!(t&&t.__v_isReadonly)}function Ir(t){return!!(t&&t.__v_isShallow)}function Th(t){return En(t)||On(t)}function fe(t){const e=t&&t.__v_raw;return e?fe(e):t}function Rh(t){return Tr(t,"__v_skip",!0),t}const bs=t=>Te(t)?sa(t):t,jo=t=>Te(t)?Mh(t):t;function Ih(t){vi&&Gt&&(t=fe(t),_h(t.dep||(t.dep=Uo())))}function kh(t,e){t=fe(t);const i=t.dep;i&&oo(i)}function dt(t){return!!(t&&t.__v_isRef===!0)}function cp(t){return Lh(t,!1)}function up(t){return Lh(t,!0)}function Lh(t,e){return dt(t)?t:new hp(t,e)}class hp{constructor(e,i){this.__v_isShallow=i,this.dep=void 0,this.__v_isRef=!0,this._rawValue=i?e:fe(e),this._value=i?e:bs(e)}get value(){return Ih(this),this._value}set value(e){const i=this.__v_isShallow||Ir(e)||On(e);e=i?e:fe(e),ji(e,this._rawValue)&&(this._rawValue=e,this._value=i?e:bs(e),kh(this))}}function be(t){return dt(t)?t.value:t}const dp={get:(t,e,i)=>be(Reflect.get(t,e,i)),set:(t,e,i,n)=>{const s=t[e];return dt(s)&&!dt(i)?(s.value=i,!0):Reflect.set(t,e,i,n)}};function Sh(t){return En(t)?t:new Proxy(t,dp)}class mp{constructor(e,i,n,s){this._setter=i,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new Bo(e,()=>{this._dirty||(this._dirty=!0,kh(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=n}get value(){const e=fe(this);return Ih(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function fp(t,e,i=!1){let n,s;const r=ne(t);return r?(n=t,s=Xt):(n=t.get,s=t.set),new mp(n,s,r||!s,i)}function xi(t,e,i,n){let s;try{s=n?t(...n):t()}catch(r){ra(r,e,i)}return s}function Wt(t,e,i,n){if(ne(t)){const r=xi(t,e,i,n);return r&&hh(r)&&r.catch(a=>{ra(a,e,i)}),r}const s=[];for(let r=0;r>>1,s=ht[n],r=vs(s);rjt&&ht.splice(e,1)}function bp(t){ee(t)?Mn.push(...t):(!ni||!ni.includes(t,t.allowRecurse?Gi+1:Gi))&&Mn.push(t),Ah()}function sc(t,e=_s?jt+1:0){for(;evs(i)-vs(n)),Gi=0;Git.id==null?1/0:t.id,_p=(t,e)=>{const i=vs(t)-vs(e);if(i===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return i};function Gh(t){lo=!1,_s=!0,ht.sort(_p);const e=Xt;try{for(jt=0;jtQe(m)?m.trim():m)),h&&(s=i.map(Rr))}let o,l=n[o=Sa(e)]||n[o=Sa(Qt(e))];!l&&r&&(l=n[o=Sa(Hn(e))]),l&&Wt(l,t,6,s);const c=n[o+"Once"];if(c){if(!t.emitted)t.emitted={};else if(t.emitted[o])return;t.emitted[o]=!0,Wt(c,t,6,s)}}function Zh(t,e,i=!1){const n=e.emitsCache,s=n.get(t);if(s!==void 0)return s;const r=t.emits;let a={},o=!1;if(!ne(t)){const l=c=>{const u=Zh(c,e,!0);u&&(o=!0,at(a,u))};!i&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!r&&!o?(Te(t)&&n.set(t,null),null):(ee(r)?r.forEach(l=>a[l]=null):at(a,r),Te(t)&&n.set(t,a),a)}function aa(t,e){return!t||!Jr(e)?!1:(e=e.slice(2).replace(/Once$/,""),ue(t,e[0].toLowerCase()+e.slice(1))||ue(t,Hn(e))||ue(t,e))}let mt=null,oa=null;function kr(t){const e=mt;return mt=t,oa=t&&t.type.__scopeId||null,e}function Qi(t){oa=t}function en(){oa=null}function Je(t,e=mt,i){if(!e||t._n)return t;const n=(...s)=>{n._d&&pc(-1);const r=kr(e);let a;try{a=t(...s)}finally{kr(r),n._d&&pc(1)}return a};return n._n=!0,n._c=!0,n._d=!0,n}function Da(t){const{type:e,vnode:i,proxy:n,withProxy:s,props:r,propsOptions:[a],slots:o,attrs:l,emit:c,render:u,renderCache:h,data:d,setupState:m,ctx:f,inheritAttrs:p}=t;let y,_;const v=kr(t);try{if(i.shapeFlag&4){const w=s||n;y=qt(u.call(w,w,h,r,m,d,f)),_=l}else{const w=e;y=qt(w.length>1?w(r,{attrs:l,slots:o,emit:c}):w(r,null)),_=e.props?l:xp(l)}}catch(w){us.length=0,ra(w,t,1),y=B(Mi)}let N=y;if(_&&p!==!1){const w=Object.keys(_),{shapeFlag:E}=N;w.length&&E&7&&(a&&w.some(Xo)&&(_=wp(_,a)),N=Gn(N,_))}return i.dirs&&(N=Gn(N),N.dirs=N.dirs?N.dirs.concat(i.dirs):i.dirs),i.transition&&(N.transition=i.transition),y=N,kr(v),y}const xp=t=>{let e;for(const i in t)(i==="class"||i==="style"||Jr(i))&&((e||(e={}))[i]=t[i]);return e},wp=(t,e)=>{const i={};for(const n in t)(!Xo(n)||!(n.slice(9)in e))&&(i[n]=t[n]);return i};function Cp(t,e,i){const{props:n,children:s,component:r}=t,{props:a,children:o,patchFlag:l}=e,c=r.emitsOptions;if(e.dirs||e.transition)return!0;if(i&&l>=0){if(l&1024)return!0;if(l&16)return n?rc(n,a,c):!!a;if(l&8){const u=e.dynamicProps;for(let h=0;ht.__isSuspense;function Tp(t,e){e&&e.pendingBranch?ee(t)?e.effects.push(...t):e.effects.push(t):bp(t)}const er={};function yr(t,e,i){return Wh(t,e,i)}function Wh(t,e,{immediate:i,deep:n,flush:s,onTrack:r,onTrigger:a}=Ie){var o;const l=Kf()===((o=rt)==null?void 0:o.scope)?rt:null;let c,u=!1,h=!1;if(dt(t)?(c=()=>t.value,u=Ir(t)):En(t)?(c=()=>t,n=!0):ee(t)?(h=!0,u=t.some(w=>En(w)||Ir(w)),c=()=>t.map(w=>{if(dt(w))return w.value;if(En(w))return Wi(w);if(ne(w))return xi(w,l,2)})):ne(t)?e?c=()=>xi(t,l,2):c=()=>{if(!(l&&l.isUnmounted))return d&&d(),Wt(t,l,3,[m])}:c=Xt,e&&n){const w=c;c=()=>Wi(w())}let d,m=w=>{d=v.onStop=()=>{xi(w,l,4)}},f;if(ws)if(m=Xt,e?i&&Wt(e,l,3,[c(),h?[]:void 0,m]):c(),s==="sync"){const w=vg();f=w.__watcherHandles||(w.__watcherHandles=[])}else return Xt;let p=h?new Array(t.length).fill(er):er;const y=()=>{if(v.active)if(e){const w=v.run();(n||u||(h?w.some((E,L)=>ji(E,p[L])):ji(w,p)))&&(d&&d(),Wt(e,l,3,[w,p===er?void 0:h&&p[0]===er?[]:p,m]),p=w)}else v.run()};y.allowRecurse=!!e;let _;s==="sync"?_=y:s==="post"?_=()=>vt(y,l&&l.suspense):(y.pre=!0,l&&(y.id=l.uid),_=()=>$o(y));const v=new Bo(c,_);e?i?y():p=v.run():s==="post"?vt(v.run.bind(v),l&&l.suspense):v.run();const N=()=>{v.stop(),l&&l.scope&&Wo(l.scope.effects,v)};return f&&f.push(N),N}function Rp(t,e,i){const n=this.proxy,s=Qe(t)?t.includes(".")?Kh(n,t):()=>n[t]:t.bind(n,n);let r;ne(e)?r=e:(r=e.handler,i=e);const a=rt;Zn(this);const o=Wh(s,r.bind(n),i);return a?Zn(a):zi(),o}function Kh(t,e){const i=e.split(".");return()=>{let n=t;for(let s=0;s{Wi(i,e)});else if(mh(t))for(const i in t)Wi(t[i],e);return t}function Ei(t,e){const i=mt;if(i===null)return t;const n=ha(i)||i.proxy,s=t.dirs||(t.dirs=[]);for(let r=0;rat({name:t.name},e,{setup:t}))():t}const ls=t=>!!t.type.__asyncLoader,Uh=t=>t.type.__isKeepAlive;function Ip(t,e){Bh(t,"a",e)}function kp(t,e){Bh(t,"da",e)}function Bh(t,e,i=rt){const n=t.__wdc||(t.__wdc=()=>{let s=i;for(;s;){if(s.isDeactivated)return;s=s.parent}return t()});if(la(e,n,i),i){let s=i.parent;for(;s&&s.parent;)Uh(s.parent.vnode)&&Lp(n,e,i,s),s=s.parent}}function Lp(t,e,i,n){const s=la(e,t,n,!0);zh(()=>{Wo(n[e],s)},i)}function la(t,e,i=rt,n=!1){if(i){const s=i[t]||(i[t]=[]),r=e.__weh||(e.__weh=(...a)=>{if(i.isUnmounted)return;zn(),Zn(i);const o=Wt(e,i,t,a);return zi(),qn(),o});return n?s.unshift(r):s.push(r),r}}const li=t=>(e,i=rt)=>(!ws||t==="sp")&&la(t,(...n)=>e(...n),i),Sp=li("bm"),Hh=li("m"),Dp=li("bu"),Pp=li("u"),Ap=li("bum"),zh=li("um"),Op=li("sp"),Gp=li("rtg"),Zp=li("rtc");function Xp(t,e=rt){la("ec",t,e)}function Tt(t,e,i,n){let s;const r=i&&i[n];if(ee(t)||Qe(t)){s=new Array(t.length);for(let a=0,o=t.length;ae(a,o,void 0,r&&r[o]));else{const a=Object.keys(t);s=new Array(a.length);for(let o=0,l=a.length;oDr(e)?!(e.type===Mi||e.type===ke&&!qh(e.children)):!0)?t:null}const co=t=>t?rd(t)?ha(t)||t.proxy:co(t.parent):null,cs=at(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>co(t.parent),$root:t=>co(t.root),$emit:t=>t.emit,$options:t=>Jo(t),$forceUpdate:t=>t.f||(t.f=()=>$o(t.update)),$nextTick:t=>t.n||(t.n=Ph.bind(t.proxy)),$watch:t=>Rp.bind(t)}),Pa=(t,e)=>t!==Ie&&!t.__isScriptSetup&&ue(t,e),Wp={get({_:t},e){const{ctx:i,setupState:n,data:s,props:r,accessCache:a,type:o,appContext:l}=t;let c;if(e[0]!=="$"){const m=a[e];if(m!==void 0)switch(m){case 1:return n[e];case 2:return s[e];case 4:return i[e];case 3:return r[e]}else{if(Pa(n,e))return a[e]=1,n[e];if(s!==Ie&&ue(s,e))return a[e]=2,s[e];if((c=t.propsOptions[0])&&ue(c,e))return a[e]=3,r[e];if(i!==Ie&&ue(i,e))return a[e]=4,i[e];uo&&(a[e]=0)}}const u=cs[e];let h,d;if(u)return e==="$attrs"&&Ct(t,"get",e),u(t);if((h=o.__cssModules)&&(h=h[e]))return h;if(i!==Ie&&ue(i,e))return a[e]=4,i[e];if(d=l.config.globalProperties,ue(d,e))return d[e]},set({_:t},e,i){const{data:n,setupState:s,ctx:r}=t;return Pa(s,e)?(s[e]=i,!0):n!==Ie&&ue(n,e)?(n[e]=i,!0):ue(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(r[e]=i,!0)},has({_:{data:t,setupState:e,accessCache:i,ctx:n,appContext:s,propsOptions:r}},a){let o;return!!i[a]||t!==Ie&&ue(t,a)||Pa(e,a)||(o=r[0])&&ue(o,a)||ue(n,a)||ue(cs,a)||ue(s.config.globalProperties,a)},defineProperty(t,e,i){return i.get!=null?t._.accessCache[e]=0:ue(i,"value")&&this.set(t,e,i.value,null),Reflect.defineProperty(t,e,i)}};function oc(t){return ee(t)?t.reduce((e,i)=>(e[i]=null,e),{}):t}let uo=!0;function Kp(t){const e=Jo(t),i=t.proxy,n=t.ctx;uo=!1,e.beforeCreate&&lc(e.beforeCreate,t,"bc");const{data:s,computed:r,methods:a,watch:o,provide:l,inject:c,created:u,beforeMount:h,mounted:d,beforeUpdate:m,updated:f,activated:p,deactivated:y,beforeDestroy:_,beforeUnmount:v,destroyed:N,unmounted:w,render:E,renderTracked:L,renderTriggered:Y,errorCaptured:q,serverPrefetch:ae,expose:oe,inheritAttrs:_e,components:qe,directives:Ke,filters:Ft}=e;if(c&&Vp(c,n,null),a)for(const $ in a){const se=a[$];ne(se)&&(n[$]=se.bind(i))}if(s){const $=s.call(i,i);Te($)&&(t.data=sa($))}if(uo=!0,r)for(const $ in r){const se=r[$],je=ne(se)?se.bind(i,i):ne(se.get)?se.get.bind(i,i):Xt,Ye=!ne(se)&&ne(se.set)?se.set.bind(i):Xt,ot=Oe({get:je,set:Ye});Object.defineProperty(n,$,{enumerable:!0,configurable:!0,get:()=>ot.value,set:me=>ot.value=me})}if(o)for(const $ in o)jh(o[$],n,i,$);if(l){const $=ne(l)?l.call(i):l;Reflect.ownKeys($).forEach(se=>{br(se,$[se])})}u&&lc(u,t,"c");function ve($,se){ee(se)?se.forEach(je=>$(je.bind(i))):se&&$(se.bind(i))}if(ve(Sp,h),ve(Hh,d),ve(Dp,m),ve(Pp,f),ve(Ip,p),ve(kp,y),ve(Xp,q),ve(Zp,L),ve(Gp,Y),ve(Ap,v),ve(zh,w),ve(Op,ae),ee(oe))if(oe.length){const $=t.exposed||(t.exposed={});oe.forEach(se=>{Object.defineProperty($,se,{get:()=>i[se],set:je=>i[se]=je})})}else t.exposed||(t.exposed={});E&&t.render===Xt&&(t.render=E),_e!=null&&(t.inheritAttrs=_e),qe&&(t.components=qe),Ke&&(t.directives=Ke)}function Vp(t,e,i=Xt){ee(t)&&(t=ho(t));for(const n in t){const s=t[n];let r;Te(s)?"default"in s?r=oi(s.from||n,s.default,!0):r=oi(s.from||n):r=oi(s),dt(r)?Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:a=>r.value=a}):e[n]=r}}function lc(t,e,i){Wt(ee(t)?t.map(n=>n.bind(e.proxy)):t.bind(e.proxy),e,i)}function jh(t,e,i,n){const s=n.includes(".")?Kh(i,n):()=>i[n];if(Qe(t)){const r=e[t];ne(r)&&yr(s,r)}else if(ne(t))yr(s,t.bind(i));else if(Te(t))if(ee(t))t.forEach(r=>jh(r,e,i,n));else{const r=ne(t.handler)?t.handler.bind(i):e[t.handler];ne(r)&&yr(s,r,t)}}function Jo(t){const e=t.type,{mixins:i,extends:n}=e,{mixins:s,optionsCache:r,config:{optionMergeStrategies:a}}=t.appContext,o=r.get(e);let l;return o?l=o:!s.length&&!i&&!n?l=e:(l={},s.length&&s.forEach(c=>Lr(l,c,a,!0)),Lr(l,e,a)),Te(e)&&r.set(e,l),l}function Lr(t,e,i,n=!1){const{mixins:s,extends:r}=e;r&&Lr(t,r,i,!0),s&&s.forEach(a=>Lr(t,a,i,!0));for(const a in e)if(!(n&&a==="expose")){const o=Up[a]||i&&i[a];t[a]=o?o(t[a],e[a]):e[a]}return t}const Up={data:cc,props:uc,emits:uc,methods:ss,computed:ss,beforeCreate:pt,created:pt,beforeMount:pt,mounted:pt,beforeUpdate:pt,updated:pt,beforeDestroy:pt,beforeUnmount:pt,destroyed:pt,unmounted:pt,activated:pt,deactivated:pt,errorCaptured:pt,serverPrefetch:pt,components:ss,directives:ss,watch:Hp,provide:cc,inject:Bp};function cc(t,e){return e?t?function(){return at(ne(t)?t.call(this,this):t,ne(e)?e.call(this,this):e)}:e:t}function Bp(t,e){return ss(ho(t),ho(e))}function ho(t){if(ee(t)){const e={};for(let i=0;i1)return i&&ne(e)?e.call(n&&n.proxy):e}}function jp(t,e,i,n=!1){const s={},r={};Tr(r,ua,1),t.propsDefaults=Object.create(null),$h(t,e,s,r);for(const a in t.propsOptions[0])a in s||(s[a]=void 0);i?t.props=n?s:Eh(s):t.type.props?t.props=s:t.props=r,t.attrs=r}function Yp(t,e,i,n){const{props:s,attrs:r,vnode:{patchFlag:a}}=t,o=fe(s),[l]=t.propsOptions;let c=!1;if((n||a>0)&&!(a&16)){if(a&8){const u=t.vnode.dynamicProps;for(let h=0;h{l=!0;const[d,m]=Jh(h,e,!0);at(a,d),m&&o.push(...m)};!i&&e.mixins.length&&e.mixins.forEach(u),t.extends&&u(t.extends),t.mixins&&t.mixins.forEach(u)}if(!r&&!l)return Te(t)&&n.set(t,Nn),Nn;if(ee(r))for(let u=0;u-1,m[1]=p<0||f-1||ue(m,"default"))&&o.push(h)}}}const c=[a,o];return Te(t)&&n.set(t,c),c}function hc(t){return t[0]!=="$"}function dc(t){const e=t&&t.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:t===null?"null":""}function mc(t,e){return dc(t)===dc(e)}function fc(t,e){return ee(e)?e.findIndex(i=>mc(i,t)):ne(e)&&mc(e,t)?0:-1}const Qh=t=>t[0]==="_"||t==="$stable",Qo=t=>ee(t)?t.map(qt):[qt(t)],$p=(t,e,i)=>{if(e._n)return e;const n=Je((...s)=>Qo(e(...s)),i);return n._c=!1,n},ed=(t,e,i)=>{const n=t._ctx;for(const s in t){if(Qh(s))continue;const r=t[s];if(ne(r))e[s]=$p(s,r,n);else if(r!=null){const a=Qo(r);e[s]=()=>a}}},td=(t,e)=>{const i=Qo(e);t.slots.default=()=>i},Jp=(t,e)=>{if(t.vnode.shapeFlag&32){const i=e._;i?(t.slots=fe(e),Tr(e,"_",i)):ed(e,t.slots={})}else t.slots={},e&&td(t,e);Tr(t.slots,ua,1)},Qp=(t,e,i)=>{const{vnode:n,slots:s}=t;let r=!0,a=Ie;if(n.shapeFlag&32){const o=e._;o?i&&o===1?r=!1:(at(s,e),!i&&o===1&&delete s._):(r=!e.$stable,ed(e,s)),a=e}else e&&(td(t,e),a={default:1});if(r)for(const o in s)!Qh(o)&&a[o]==null&&delete s[o]};function fo(t,e,i,n,s=!1){if(ee(t)){t.forEach((d,m)=>fo(d,e&&(ee(e)?e[m]:e),i,n,s));return}if(ls(n)&&!s)return;const r=n.shapeFlag&4?ha(n.component)||n.component.proxy:n.el,a=s?null:r,{i:o,r:l}=t,c=e&&e.r,u=o.refs===Ie?o.refs={}:o.refs,h=o.setupState;if(c!=null&&c!==l&&(Qe(c)?(u[c]=null,ue(h,c)&&(h[c]=null)):dt(c)&&(c.value=null)),ne(l))xi(l,o,12,[a,u]);else{const d=Qe(l),m=dt(l);if(d||m){const f=()=>{if(t.f){const p=d?ue(h,l)?h[l]:u[l]:l.value;s?ee(p)&&Wo(p,r):ee(p)?p.includes(r)||p.push(r):d?(u[l]=[r],ue(h,l)&&(h[l]=u[l])):(l.value=[r],t.k&&(u[t.k]=l.value))}else d?(u[l]=a,ue(h,l)&&(h[l]=a)):m&&(l.value=a,t.k&&(u[t.k]=a))};a?(f.id=-1,vt(f,i)):f()}}}const vt=Tp;function eg(t){return tg(t)}function tg(t,e){const i=no();i.__VUE__=!0;const{insert:n,remove:s,patchProp:r,createElement:a,createText:o,createComment:l,setText:c,setElementText:u,parentNode:h,nextSibling:d,setScopeId:m=Xt,insertStaticContent:f}=t,p=(g,b,x,M=null,T=null,R=null,G=!1,S=null,A=!!b.dynamicChildren)=>{if(g===b)return;g&&!Jn(g,b)&&(M=F(g),me(g,T,R,!0),g=null),b.patchFlag===-2&&(A=!1,b.dynamicChildren=null);const{type:I,ref:U,shapeFlag:W}=b;switch(I){case ca:y(g,b,x,M);break;case Mi:_(g,b,x,M);break;case _r:g==null&&v(b,x,M,G);break;case ke:qe(g,b,x,M,T,R,G,S,A);break;default:W&1?E(g,b,x,M,T,R,G,S,A):W&6?Ke(g,b,x,M,T,R,G,S,A):(W&64||W&128)&&I.process(g,b,x,M,T,R,G,S,A,P)}U!=null&&T&&fo(U,g&&g.ref,R,b||g,!b)},y=(g,b,x,M)=>{if(g==null)n(b.el=o(b.children),x,M);else{const T=b.el=g.el;b.children!==g.children&&c(T,b.children)}},_=(g,b,x,M)=>{g==null?n(b.el=l(b.children||""),x,M):b.el=g.el},v=(g,b,x,M)=>{[g.el,g.anchor]=f(g.children,b,x,M,g.el,g.anchor)},N=({el:g,anchor:b},x,M)=>{let T;for(;g&&g!==b;)T=d(g),n(g,x,M),g=T;n(b,x,M)},w=({el:g,anchor:b})=>{let x;for(;g&&g!==b;)x=d(g),s(g),g=x;s(b)},E=(g,b,x,M,T,R,G,S,A)=>{G=G||b.type==="svg",g==null?L(b,x,M,T,R,G,S,A):ae(g,b,T,R,G,S,A)},L=(g,b,x,M,T,R,G,S)=>{let A,I;const{type:U,props:W,shapeFlag:z,transition:te,dirs:re}=g;if(A=g.el=a(g.type,R,W&&W.is,W),z&8?u(A,g.children):z&16&&q(g.children,A,null,M,T,R&&U!=="foreignObject",G,S),re&&Li(g,null,M,"created"),Y(A,g,g.scopeId,G,M),W){for(const he in W)he!=="value"&&!pr(he)&&r(A,he,null,W[he],R,g.children,M,T,Pe);"value"in W&&r(A,"value",null,W.value),(I=W.onVnodeBeforeMount)&&Ht(I,M,g)}re&&Li(g,null,M,"beforeMount");const xe=ig(T,te);xe&&te.beforeEnter(A),n(A,b,x),((I=W&&W.onVnodeMounted)||xe||re)&&vt(()=>{I&&Ht(I,M,g),xe&&te.enter(A),re&&Li(g,null,M,"mounted")},T)},Y=(g,b,x,M,T)=>{if(x&&m(g,x),M)for(let R=0;R{for(let I=A;I{const S=b.el=g.el;let{patchFlag:A,dynamicChildren:I,dirs:U}=b;A|=g.patchFlag&16;const W=g.props||Ie,z=b.props||Ie;let te;x&&Si(x,!1),(te=z.onVnodeBeforeUpdate)&&Ht(te,x,b,g),U&&Li(b,g,x,"beforeUpdate"),x&&Si(x,!0);const re=T&&b.type!=="foreignObject";if(I?oe(g.dynamicChildren,I,S,x,M,re,R):G||se(g,b,S,null,x,M,re,R,!1),A>0){if(A&16)_e(S,b,W,z,x,M,T);else if(A&2&&W.class!==z.class&&r(S,"class",null,z.class,T),A&4&&r(S,"style",W.style,z.style,T),A&8){const xe=b.dynamicProps;for(let he=0;he{te&&Ht(te,x,b,g),U&&Li(b,g,x,"updated")},M)},oe=(g,b,x,M,T,R,G)=>{for(let S=0;S{if(x!==M){if(x!==Ie)for(const S in x)!pr(S)&&!(S in M)&&r(g,S,x[S],null,G,b.children,T,R,Pe);for(const S in M){if(pr(S))continue;const A=M[S],I=x[S];A!==I&&S!=="value"&&r(g,S,I,A,G,b.children,T,R,Pe)}"value"in M&&r(g,"value",x.value,M.value)}},qe=(g,b,x,M,T,R,G,S,A)=>{const I=b.el=g?g.el:o(""),U=b.anchor=g?g.anchor:o("");let{patchFlag:W,dynamicChildren:z,slotScopeIds:te}=b;te&&(S=S?S.concat(te):te),g==null?(n(I,x,M),n(U,x,M),q(b.children,x,U,T,R,G,S,A)):W>0&&W&64&&z&&g.dynamicChildren?(oe(g.dynamicChildren,z,x,T,R,G,S),(b.key!=null||T&&b===T.subTree)&&id(g,b,!0)):se(g,b,x,U,T,R,G,S,A)},Ke=(g,b,x,M,T,R,G,S,A)=>{b.slotScopeIds=S,g==null?b.shapeFlag&512?T.ctx.activate(b,x,M,G,A):Ft(b,x,M,T,R,G,A):tt(g,b,A)},Ft=(g,b,x,M,T,R,G)=>{const S=g.component=dg(g,M,T);if(Uh(g)&&(S.ctx.renderer=P),mg(S),S.asyncDep){if(T&&T.registerDep(S,ve),!g.el){const A=S.subTree=B(Mi);_(null,A,b,x)}return}ve(S,g,b,x,T,R,G)},tt=(g,b,x)=>{const M=b.component=g.component;if(Cp(g,b,x))if(M.asyncDep&&!M.asyncResolved){$(M,b,x);return}else M.next=b,yp(M.update),M.update();else b.el=g.el,M.vnode=b},ve=(g,b,x,M,T,R,G)=>{const S=()=>{if(g.isMounted){let{next:U,bu:W,u:z,parent:te,vnode:re}=g,xe=U,he;Si(g,!1),U?(U.el=re.el,$(g,U,G)):U=re,W&&gr(W),(he=U.props&&U.props.onVnodeBeforeUpdate)&&Ht(he,te,U,re),Si(g,!0);const Re=Da(g),Et=g.subTree;g.subTree=Re,p(Et,Re,h(Et.el),F(Et),g,T,R),U.el=Re.el,xe===null&&Np(g,Re.el),z&&vt(z,T),(he=U.props&&U.props.onVnodeUpdated)&&vt(()=>Ht(he,te,U,re),T)}else{let U;const{el:W,props:z}=b,{bm:te,m:re,parent:xe}=g,he=ls(b);if(Si(g,!1),te&&gr(te),!he&&(U=z&&z.onVnodeBeforeMount)&&Ht(U,xe,b),Si(g,!0),W&&ce){const Re=()=>{g.subTree=Da(g),ce(W,g.subTree,g,T,null)};he?b.type.__asyncLoader().then(()=>!g.isUnmounted&&Re()):Re()}else{const Re=g.subTree=Da(g);p(null,Re,x,M,g,T,R),b.el=Re.el}if(re&&vt(re,T),!he&&(U=z&&z.onVnodeMounted)){const Re=b;vt(()=>Ht(U,xe,Re),T)}(b.shapeFlag&256||xe&&ls(xe.vnode)&&xe.vnode.shapeFlag&256)&&g.a&&vt(g.a,T),g.isMounted=!0,b=x=M=null}},A=g.effect=new Bo(S,()=>$o(I),g.scope),I=g.update=()=>A.run();I.id=g.uid,Si(g,!0),I()},$=(g,b,x)=>{b.component=g;const M=g.vnode.props;g.vnode=b,g.next=null,Yp(g,b.props,M,x),Qp(g,b.children,x),zn(),sc(),qn()},se=(g,b,x,M,T,R,G,S,A=!1)=>{const I=g&&g.children,U=g?g.shapeFlag:0,W=b.children,{patchFlag:z,shapeFlag:te}=b;if(z>0){if(z&128){Ye(I,W,x,M,T,R,G,S,A);return}else if(z&256){je(I,W,x,M,T,R,G,S,A);return}}te&8?(U&16&&Pe(I,T,R),W!==I&&u(x,W)):U&16?te&16?Ye(I,W,x,M,T,R,G,S,A):Pe(I,T,R,!0):(U&8&&u(x,""),te&16&&q(W,x,M,T,R,G,S,A))},je=(g,b,x,M,T,R,G,S,A)=>{g=g||Nn,b=b||Nn;const I=g.length,U=b.length,W=Math.min(I,U);let z;for(z=0;zU?Pe(g,T,R,!0,!1,W):q(b,x,M,T,R,G,S,A,W)},Ye=(g,b,x,M,T,R,G,S,A)=>{let I=0;const U=b.length;let W=g.length-1,z=U-1;for(;I<=W&&I<=z;){const te=g[I],re=b[I]=A?gi(b[I]):qt(b[I]);if(Jn(te,re))p(te,re,x,null,T,R,G,S,A);else break;I++}for(;I<=W&&I<=z;){const te=g[W],re=b[z]=A?gi(b[z]):qt(b[z]);if(Jn(te,re))p(te,re,x,null,T,R,G,S,A);else break;W--,z--}if(I>W){if(I<=z){const te=z+1,re=tez)for(;I<=W;)me(g[I],T,R,!0),I++;else{const te=I,re=I,xe=new Map;for(I=re;I<=z;I++){const Mt=b[I]=A?gi(b[I]):qt(b[I]);Mt.key!=null&&xe.set(Mt.key,I)}let he,Re=0;const Et=z-re+1;let $e=!1,Xl=0;const $n=new Array(Et);for(I=0;I=Et){me(Mt,T,R,!0);continue}let Bt;if(Mt.key!=null)Bt=xe.get(Mt.key);else for(he=re;he<=z;he++)if($n[he-re]===0&&Jn(Mt,b[he])){Bt=he;break}Bt===void 0?me(Mt,T,R,!0):($n[Bt-re]=I+1,Bt>=Xl?Xl=Bt:$e=!0,p(Mt,b[Bt],x,null,T,R,G,S,A),Re++)}const Wl=$e?ng($n):Nn;for(he=Wl.length-1,I=Et-1;I>=0;I--){const Mt=re+I,Bt=b[Mt],Kl=Mt+1{const{el:R,type:G,transition:S,children:A,shapeFlag:I}=g;if(I&6){ot(g.component.subTree,b,x,M);return}if(I&128){g.suspense.move(b,x,M);return}if(I&64){G.move(g,b,x,P);return}if(G===ke){n(R,b,x);for(let W=0;WS.enter(R),T);else{const{leave:W,delayLeave:z,afterLeave:te}=S,re=()=>n(R,b,x),xe=()=>{W(R,()=>{re(),te&&te()})};z?z(R,re,xe):xe()}else n(R,b,x)},me=(g,b,x,M=!1,T=!1)=>{const{type:R,props:G,ref:S,children:A,dynamicChildren:I,shapeFlag:U,patchFlag:W,dirs:z}=g;if(S!=null&&fo(S,null,x,g,!0),U&256){b.ctx.deactivate(g);return}const te=U&1&&z,re=!ls(g);let xe;if(re&&(xe=G&&G.onVnodeBeforeUnmount)&&Ht(xe,b,g),U&6)Se(g.component,x,M);else{if(U&128){g.suspense.unmount(x,M);return}te&&Li(g,null,b,"beforeUnmount"),U&64?g.type.remove(g,b,x,T,P,M):I&&(R!==ke||W>0&&W&64)?Pe(I,b,x,!1,!0):(R===ke&&W&384||!T&&U&16)&&Pe(A,b,x),M&&Ve(g)}(re&&(xe=G&&G.onVnodeUnmounted)||te)&&vt(()=>{xe&&Ht(xe,b,g),te&&Li(g,null,b,"unmounted")},x)},Ve=g=>{const{type:b,el:x,anchor:M,transition:T}=g;if(b===ke){pe(x,M);return}if(b===_r){w(g);return}const R=()=>{s(x),T&&!T.persisted&&T.afterLeave&&T.afterLeave()};if(g.shapeFlag&1&&T&&!T.persisted){const{leave:G,delayLeave:S}=T,A=()=>G(x,R);S?S(g.el,R,A):A()}else R()},pe=(g,b)=>{let x;for(;g!==b;)x=d(g),s(g),g=x;s(b)},Se=(g,b,x)=>{const{bum:M,scope:T,update:R,subTree:G,um:S}=g;M&&gr(M),T.stop(),R&&(R.active=!1,me(G,g,b,x)),S&&vt(S,b),vt(()=>{g.isUnmounted=!0},b),b&&b.pendingBranch&&!b.isUnmounted&&g.asyncDep&&!g.asyncResolved&&g.suspenseId===b.pendingId&&(b.deps--,b.deps===0&&b.resolve())},Pe=(g,b,x,M=!1,T=!1,R=0)=>{for(let G=R;Gg.shapeFlag&6?F(g.component.subTree):g.shapeFlag&128?g.suspense.next():d(g.anchor||g.el),Z=(g,b,x)=>{g==null?b._vnode&&me(b._vnode,null,null,!0):p(b._vnode||null,g,b,null,null,null,x),sc(),Oh(),b._vnode=g},P={p,um:me,m:ot,r:Ve,mt:Ft,mc:q,pc:se,pbc:oe,n:F,o:t};let H,ce;return e&&([H,ce]=e(P)),{render:Z,hydrate:H,createApp:qp(Z,H)}}function Si({effect:t,update:e},i){t.allowRecurse=e.allowRecurse=i}function ig(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function id(t,e,i=!1){const n=t.children,s=e.children;if(ee(n)&&ee(s))for(let r=0;r>1,t[i[o]]0&&(e[n]=i[r-1]),i[r]=n)}}for(r=i.length,a=i[r-1];r-- >0;)i[r]=a,a=e[a];return i}const sg=t=>t.__isTeleport,ke=Symbol.for("v-fgt"),ca=Symbol.for("v-txt"),Mi=Symbol.for("v-cmt"),_r=Symbol.for("v-stc"),us=[];let Zt=null;function D(t=!1){us.push(Zt=t?null:[])}function rg(){us.pop(),Zt=us[us.length-1]||null}let xs=1;function pc(t){xs+=t}function nd(t){return t.dynamicChildren=xs>0?Zt||Nn:null,rg(),xs>0&&Zt&&Zt.push(t),t}function K(t,e,i,n,s,r){return nd(C(t,e,i,n,s,r,!0))}function wt(t,e,i,n,s){return nd(B(t,e,i,n,s,!0))}function Dr(t){return t?t.__v_isVNode===!0:!1}function Jn(t,e){return t.type===e.type&&t.key===e.key}const ua="__vInternal",sd=({key:t})=>t??null,vr=({ref:t,ref_key:e,ref_for:i})=>(typeof t=="number"&&(t=""+t),t!=null?Qe(t)||dt(t)||ne(t)?{i:mt,r:t,k:e,f:!!i}:t:null);function C(t,e=null,i=null,n=0,s=null,r=t===ke?0:1,a=!1,o=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&sd(e),ref:e&&vr(e),scopeId:oa,slotScopeIds:null,children:i,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:n,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:mt};return o?(el(l,i),r&128&&t.normalize(l)):i&&(l.shapeFlag|=Qe(i)?8:16),xs>0&&!a&&Zt&&(l.patchFlag>0||r&6)&&l.patchFlag!==32&&Zt.push(l),l}const B=ag;function ag(t,e=null,i=null,n=0,s=null,r=!1){if((!t||t===Fp)&&(t=Mi),Dr(t)){const o=Gn(t,e,!0);return i&&el(o,i),xs>0&&!r&&Zt&&(o.shapeFlag&6?Zt[Zt.indexOf(t)]=o:Zt.push(o)),o.patchFlag|=-2,o}if(bg(t)&&(t=t.__vccOpts),e){e=og(e);let{class:o,style:l}=e;o&&!Qe(o)&&(e.class=Ui(o)),Te(l)&&(Th(l)&&!ee(l)&&(l=at({},l)),e.style=Vo(l))}const a=Qe(t)?1:Mp(t)?128:sg(t)?64:Te(t)?4:ne(t)?2:0;return C(t,e,i,n,s,a,r,!0)}function og(t){return t?Th(t)||ua in t?at({},t):t:null}function Gn(t,e,i=!1){const{props:n,ref:s,patchFlag:r,children:a}=t,o=e?cg(n||{},e):n;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:o,key:o&&sd(o),ref:e&&e.ref?i&&s?ee(s)?s.concat(vr(e)):[s,vr(e)]:vr(e):s,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:a,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==ke?r===-1?16:r|16:r,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Gn(t.ssContent),ssFallback:t.ssFallback&&Gn(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function Ee(t=" ",e=0){return B(ca,null,t,e)}function lg(t,e){const i=B(_r,null,t);return i.staticCount=e,i}function De(t="",e=!1){return e?(D(),wt(Mi,null,t)):B(Mi,null,t)}function qt(t){return t==null||typeof t=="boolean"?B(Mi):ee(t)?B(ke,null,t.slice()):typeof t=="object"?gi(t):B(ca,null,String(t))}function gi(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Gn(t)}function el(t,e){let i=0;const{shapeFlag:n}=t;if(e==null)e=null;else if(ee(e))i=16;else if(typeof e=="object")if(n&65){const s=e.default;s&&(s._c&&(s._d=!1),el(t,s()),s._c&&(s._d=!0));return}else{i=32;const s=e._;!s&&!(ua in e)?e._ctx=mt:s===3&&mt&&(mt.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else ne(e)?(e={default:e,_ctx:mt},i=32):(e=String(e),n&64?(i=16,e=[Ee(e)]):i=8);t.children=e,t.shapeFlag|=i}function cg(...t){const e={};for(let i=0;irt=t),tl=t=>{an.length>1?an.forEach(e=>e(t)):an[0](t)};const Zn=t=>{tl(t),t.scope.on()},zi=()=>{rt&&rt.scope.off(),tl(null)};function rd(t){return t.vnode.shapeFlag&4}let ws=!1;function mg(t,e=!1){ws=e;const{props:i,children:n}=t.vnode,s=rd(t);jp(t,i,s,e),Jp(t,n);const r=s?fg(t,e):void 0;return ws=!1,r}function fg(t,e){const i=t.type;t.accessCache=Object.create(null),t.proxy=Rh(new Proxy(t.ctx,Wp));const{setup:n}=i;if(n){const s=t.setupContext=n.length>1?gg(t):null;Zn(t),zn();const r=xi(n,t,0,[t.props,s]);if(qn(),zi(),hh(r)){if(r.then(zi,zi),e)return r.then(a=>{yc(t,a,e)}).catch(a=>{ra(a,t,0)});t.asyncDep=r}else yc(t,r,e)}else ad(t,e)}function yc(t,e,i){ne(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Te(e)&&(t.setupState=Sh(e)),ad(t,i)}let bc;function ad(t,e,i){const n=t.type;if(!t.render){if(!e&&bc&&!n.render){const s=n.template||Jo(t).template;if(s){const{isCustomElement:r,compilerOptions:a}=t.appContext.config,{delimiters:o,compilerOptions:l}=n,c=at(at({isCustomElement:r,delimiters:o},a),l);n.render=bc(s,c)}}t.render=n.render||Xt}{Zn(t),zn();try{Kp(t)}finally{qn(),zi()}}}function pg(t){return t.attrsProxy||(t.attrsProxy=new Proxy(t.attrs,{get(e,i){return Ct(t,"get","$attrs"),e[i]}}))}function gg(t){const e=i=>{t.exposed=i||{}};return{get attrs(){return pg(t)},slots:t.slots,emit:t.emit,expose:e}}function ha(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(Sh(Rh(t.exposed)),{get(e,i){if(i in e)return e[i];if(i in cs)return cs[i](t)},has(e,i){return i in e||i in cs}}))}function yg(t,e=!0){return ne(t)?t.displayName||t.name:t.name||e&&t.__name}function bg(t){return ne(t)&&"__vccOpts"in t}const Oe=(t,e)=>fp(t,e,ws);function od(t,e,i){const n=arguments.length;return n===2?Te(e)&&!ee(e)?Dr(e)?B(t,null,[e]):B(t,e):B(t,null,e):(n>3?i=Array.prototype.slice.call(arguments,2):n===3&&Dr(i)&&(i=[i]),B(t,e,i))}const _g=Symbol.for("v-scx"),vg=()=>oi(_g),xg="3.3.8",wg="http://www.w3.org/2000/svg",Zi=typeof document<"u"?document:null,_c=Zi&&Zi.createElement("template"),Cg={insert:(t,e,i)=>{e.insertBefore(t,i||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,i,n)=>{const s=e?Zi.createElementNS(wg,t):Zi.createElement(t,i?{is:i}:void 0);return t==="select"&&n&&n.multiple!=null&&s.setAttribute("multiple",n.multiple),s},createText:t=>Zi.createTextNode(t),createComment:t=>Zi.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Zi.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,i,n,s,r){const a=i?i.previousSibling:e.lastChild;if(s&&(s===r||s.nextSibling))for(;e.insertBefore(s.cloneNode(!0),i),!(s===r||!(s=s.nextSibling)););else{_c.innerHTML=n?`${t}`:t;const o=_c.content;if(n){const l=o.firstChild;for(;l.firstChild;)o.appendChild(l.firstChild);o.removeChild(l)}e.insertBefore(o,i)}return[a?a.nextSibling:e.firstChild,i?i.previousSibling:e.lastChild]}},Ng=Symbol("_vtc");function Fg(t,e,i){const n=t[Ng];n&&(e=(e?[e,...n]:[...n]).join(" ")),e==null?t.removeAttribute("class"):i?t.setAttribute("class",e):t.className=e}const Eg=Symbol("_vod");function Mg(t,e,i){const n=t.style,s=Qe(i);if(i&&!s){if(e&&!Qe(e))for(const r in e)i[r]==null&&po(n,r,"");for(const r in i)po(n,r,i[r])}else{const r=n.display;s?e!==i&&(n.cssText=i):e&&t.removeAttribute("style"),Eg in t&&(n.display=r)}}const vc=/\s*!important$/;function po(t,e,i){if(ee(i))i.forEach(n=>po(t,e,n));else if(i==null&&(i=""),e.startsWith("--"))t.setProperty(e,i);else{const n=Tg(t,e);vc.test(i)?t.setProperty(Hn(n),i.replace(vc,""),"important"):t[n]=i}}const xc=["Webkit","Moz","ms"],Aa={};function Tg(t,e){const i=Aa[e];if(i)return i;let n=Qt(e);if(n!=="filter"&&n in t)return Aa[e]=n;n=ta(n);for(let s=0;sOa||(Dg.then(()=>Oa=0),Oa=Date.now());function Ag(t,e){const i=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=i.attached)return;Wt(Og(n,i.value),e,5,[n])};return i.value=t,i.attached=Pg(),i}function Og(t,e){if(ee(e)){const i=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{i.call(t),t._stopped=!0},e.map(n=>s=>!s._stopped&&n&&n(s))}else return e}const Fc=/^on[a-z]/,Gg=(t,e,i,n,s=!1,r,a,o,l)=>{e==="class"?Fg(t,n,s):e==="style"?Mg(t,i,n):Jr(e)?Xo(e)||Lg(t,e,i,n,a):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):Zg(t,e,n,s))?Ig(t,e,n,r,a,o,l):(e==="true-value"?t._trueValue=n:e==="false-value"&&(t._falseValue=n),Rg(t,e,n,s))};function Zg(t,e,i,n){return n?!!(e==="innerHTML"||e==="textContent"||e in t&&Fc.test(e)&&ne(i)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA"||Fc.test(e)&&Qe(i)?!1:e in t}const Pr=t=>{const e=t.props["onUpdate:modelValue"]||!1;return ee(e)?i=>gr(e,i):e};function Xg(t){t.target.composing=!0}function Ec(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const Tn=Symbol("_assign"),da={created(t,{modifiers:{lazy:e,trim:i,number:n}},s){t[Tn]=Pr(s);const r=n||s.props&&s.props.type==="number";Xi(t,e?"change":"input",a=>{if(a.target.composing)return;let o=t.value;i&&(o=o.trim()),r&&(o=Rr(o)),t[Tn](o)}),i&&Xi(t,"change",()=>{t.value=t.value.trim()}),e||(Xi(t,"compositionstart",Xg),Xi(t,"compositionend",Ec),Xi(t,"change",Ec))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,modifiers:{lazy:i,trim:n,number:s}},r){if(t[Tn]=Pr(r),t.composing||document.activeElement===t&&t.type!=="range"&&(i||n&&t.value.trim()===e||(s||t.type==="number")&&Rr(t.value)===e))return;const a=e??"";t.value!==a&&(t.value=a)}},Ar={deep:!0,created(t,{value:e,modifiers:{number:i}},n){const s=Qr(e);Xi(t,"change",()=>{const r=Array.prototype.filter.call(t.options,a=>a.selected).map(a=>i?Rr(Or(a)):Or(a));t[Tn](t.multiple?s?new Set(r):r:r[0])}),t[Tn]=Pr(n)},mounted(t,{value:e}){Mc(t,e)},beforeUpdate(t,e,i){t[Tn]=Pr(i)},updated(t,{value:e}){Mc(t,e)}};function Mc(t,e){const i=t.multiple;if(!(i&&!ee(e)&&!Qr(e))){for(let n=0,s=t.options.length;n-1:r.selected=e.has(a);else if(ia(Or(r),e)){t.selectedIndex!==n&&(t.selectedIndex=n);return}}!i&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function Or(t){return"_value"in t?t._value:t.value}const Wg=at({patchProp:Gg},Cg);let Tc;function Kg(){return Tc||(Tc=eg(Wg))}const Vg=(...t)=>{const e=Kg().createApp(...t),{mount:i}=e;return e.mount=n=>{const s=Ug(n);if(!s)return;const r=e._component;!ne(r)&&!r.render&&!r.template&&(r.template=s.innerHTML),s.innerHTML="";const a=i(s,!1,s instanceof SVGElement);return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),a},e};function Ug(t){return Qe(t)?document.querySelector(t):t}const We=(t,e)=>{const i=t.__vccOpts||t;for(const[n,s]of e)i[n]=s;return i},Bg={name:"CodeBlock",props:["lang"]};function Hg(t,e,i,n,s,r){return D(),K("pre",null,[C("code",{class:Ui(i.lang+" border-0 rounded-2 p-3")},[Hi(t.$slots,"default")],2)])}const il=We(Bg,[["render",Hg]]);const zg={name:"LibName"},qg=t=>(Qi("data-v-7ef10a1b"),t=t(),en(),t),jg=qg(()=>C("span",null,"ogc-client",-1)),Yg=[jg];function $g(t,e,i,n,s,r){return D(),K("div",null,Yg)}const Jg=We(zg,[["render",$g],["__scopeId","data-v-7ef10a1b"]]),Qg={name:"Docs",components:{CodeBlock:il,LibName:Jg},async mounted(){hljs.highlightAll()}},e0=C("h2",{class:"mb-4"},"Presentation",-1),t0=C("a",{href:"https://www.ogc.org/docs/is"},"OGC standards.",-1),i0=lg('

    Its purpose is to helps you interact with them in a user-friendly and consistent way.

    Its main features include:

    Usage

    ',4),n0=C("p",null,"Then, use it like so:",-1),s0=C("pre",null,`import { WfsEndpoint } from '@camptocamp/ogc-client'; +`}strong(e){return`${e}`}em(e){return`${e}`}codespan(e){return`${e}`}br(){return this.options.xhtml?"
    ":"
    "}del(e){return`${e}`}link(e,i,n){if(e=Bl(this.options.sanitize,this.options.baseUrl,e),e===null)return n;let s='",s}image(e,i,n){if(e=Bl(this.options.sanitize,this.options.baseUrl,e),e===null)return n;let s=`${n}":">",s}text(e){return e}}class lh{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,i,n){return""+n}image(e,i,n){return""+n}br(){return""}}class ch{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,i){let n=e,s=0;if(this.seen.hasOwnProperty(n)){s=this.seen[e];do s++,n=e+"-"+s;while(this.seen.hasOwnProperty(n))}return i||(this.seen[e]=s,this.seen[n]=0),n}slug(e,i={}){const n=this.serialize(e);return this.getNextSafeSlug(n,i.dryrun)}}let Ps=class io{constructor(e){this.options=e||Ji,this.options.renderer=this.options.renderer||new Go,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new lh,this.slugger=new ch}static parse(e,i){return new io(i).parse(e)}static parseInline(e,i){return new io(i).parseInline(e)}parse(e,i=!0){let n="",s,a,r,o,l,c,u,h,d,m,f,p,y,_,v,N,w,E,L;const Y=e.length;for(s=0;s0&&v.tokens[0].type==="paragraph"?(v.tokens[0].text=E+" "+v.tokens[0].text,v.tokens[0].tokens&&v.tokens[0].tokens.length>0&&v.tokens[0].tokens[0].type==="text"&&(v.tokens[0].tokens[0].text=E+" "+v.tokens[0].tokens[0].text)):v.tokens.unshift({type:"text",text:E}):_+=E),_+=this.parse(v.tokens,y),d+=this.renderer.listitem(_,w,N);n+=this.renderer.list(d,f,p);continue}case"html":{n+=this.renderer.html(m.text,m.block);continue}case"paragraph":{n+=this.renderer.paragraph(this.parseInline(m.tokens));continue}case"text":{for(d=m.tokens?this.parseInline(m.tokens):m.text;s+1{if(n.message+=` +Please report this to https://github.com/markedjs/marked.`,t){const s="

    An error occurred:

    "+ct(n.message+"",!0)+"
    ";if(e)return Promise.resolve(s);if(i){i(null,s);return}return s}if(e)return Promise.reject(n);if(i){i(n);return}throw n}}function uh(t,e){return(i,n,s)=>{typeof n=="function"&&(s=n,n=null);const a={...n};n={...J.defaults,...a};const r=wf(n.silent,n.async,s);if(typeof i>"u"||i===null)return r(new Error("marked(): input parameter is undefined or null"));if(typeof i!="string")return r(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(i)+", string expected"));if(_f(n,s),n.hooks&&(n.hooks.options=n),s){const o=n.highlight;let l;try{n.hooks&&(i=n.hooks.preprocess(i)),l=t(i,n)}catch(h){return r(h)}const c=function(h){let d;if(!h)try{n.walkTokens&&J.walkTokens(l,n.walkTokens),d=e(l,n),n.hooks&&(d=n.hooks.postprocess(d))}catch(m){h=m}return n.highlight=o,h?r(h):s(null,d)};if(!o||o.length<3||(delete n.highlight,!l.length))return c();let u=0;J.walkTokens(l,function(h){h.type==="code"&&(u++,setTimeout(()=>{o(h.text,h.lang,function(d,m){if(d)return c(d);m!=null&&m!==h.text&&(h.text=m,h.escaped=!0),u--,u===0&&c()})},0))}),u===0&&c();return}if(n.async)return Promise.resolve(n.hooks?n.hooks.preprocess(i):i).then(o=>t(o,n)).then(o=>n.walkTokens?Promise.all(J.walkTokens(o,n.walkTokens)).then(()=>o):o).then(o=>e(o,n)).then(o=>n.hooks?n.hooks.postprocess(o):o).catch(r);try{n.hooks&&(i=n.hooks.preprocess(i));const o=t(i,n);n.walkTokens&&J.walkTokens(o,n.walkTokens);let l=e(o,n);return n.hooks&&(l=n.hooks.postprocess(l)),l}catch(o){return r(o)}}}function J(t,e,i){return uh(Ni.lex,Ps.parse)(t,e,i)}J.options=J.setOptions=function(t){return J.defaults={...J.defaults,...t},rf(J.defaults),J};J.getDefaults=sh;J.defaults=Ji;J.use=function(...t){const e=J.defaults.extensions||{renderers:{},childTokens:{}};t.forEach(i=>{const n={...i};if(n.async=J.defaults.async||n.async||!1,i.extensions&&(i.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if(s.renderer){const a=e.renderers[s.name];a?e.renderers[s.name]=function(...r){let o=s.renderer.apply(this,r);return o===!1&&(o=a.apply(this,r)),o}:e.renderers[s.name]=s.renderer}if(s.tokenizer){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");e[s.level]?e[s.level].unshift(s.tokenizer):e[s.level]=[s.tokenizer],s.start&&(s.level==="block"?e.startBlock?e.startBlock.push(s.start):e.startBlock=[s.start]:s.level==="inline"&&(e.startInline?e.startInline.push(s.start):e.startInline=[s.start]))}s.childTokens&&(e.childTokens[s.name]=s.childTokens)}),n.extensions=e),i.renderer){const s=J.defaults.renderer||new Go;for(const a in i.renderer){const r=s[a];s[a]=(...o)=>{let l=i.renderer[a].apply(s,o);return l===!1&&(l=r.apply(s,o)),l}}n.renderer=s}if(i.tokenizer){const s=J.defaults.tokenizer||new Oo;for(const a in i.tokenizer){const r=s[a];s[a]=(...o)=>{let l=i.tokenizer[a].apply(s,o);return l===!1&&(l=r.apply(s,o)),l}}n.tokenizer=s}if(i.hooks){const s=J.defaults.hooks||new Ma;for(const a in i.hooks){const r=s[a];Ma.passThroughHooks.has(a)?s[a]=o=>{if(J.defaults.async)return Promise.resolve(i.hooks[a].call(s,o)).then(c=>r.call(s,c));const l=i.hooks[a].call(s,o);return r.call(s,l)}:s[a]=(...o)=>{let l=i.hooks[a].apply(s,o);return l===!1&&(l=r.apply(s,o)),l}}n.hooks=s}if(i.walkTokens){const s=J.defaults.walkTokens;n.walkTokens=function(a){let r=[];return r.push(i.walkTokens.call(this,a)),s&&(r=r.concat(s.call(this,a))),r}}J.setOptions(n)})};J.walkTokens=function(t,e){let i=[];for(const n of t)switch(i=i.concat(e.call(J,n)),n.type){case"table":{for(const s of n.header)i=i.concat(J.walkTokens(s.tokens,e));for(const s of n.rows)for(const a of s)i=i.concat(J.walkTokens(a.tokens,e));break}case"list":{i=i.concat(J.walkTokens(n.items,e));break}default:J.defaults.extensions&&J.defaults.extensions.childTokens&&J.defaults.extensions.childTokens[n.type]?J.defaults.extensions.childTokens[n.type].forEach(function(s){i=i.concat(J.walkTokens(n[s],e))}):n.tokens&&(i=i.concat(J.walkTokens(n.tokens,e)))}return i};J.parseInline=uh(Ni.lexInline,Ps.parseInline);J.Parser=Ps;J.parser=Ps.parse;J.Renderer=Go;J.TextRenderer=lh;J.Lexer=Ni;J.lexer=Ni.lex;J.Tokenizer=Oo;J.Slugger=ch;J.Hooks=Ma;J.parse=J;J.options;J.setOptions;J.use;J.walkTokens;const si=J.parseInline,Cf=J;Ps.parse;Ni.lex;function Nf(){return{mangle:!1,walkTokens(t){if(t.type!=="link"||!t.href.startsWith("mailto:"))return;const e=t.href.substring(7),i=Ff(e);t.href=`mailto:${i}`,!(t.tokens.length!==1||t.tokens[0].type!=="text"||t.tokens[0].text!==e)&&(t.text=i,t.tokens[0].text=i)}}}function Ff(t){let e="",i,n;const s=t.length;for(i=0;i.5&&(n="x"+n.toString(16)),e+="&#"+n+";";return e}function Zo(t,e){const i=Object.create(null),n=t.split(",");for(let s=0;s!!i[s.toLowerCase()]:s=>!!i[s]}const Ie={},Nn=[],Xt=()=>{},Ef=()=>!1,Mf=/^on[^a-z]/,Ja=t=>Mf.test(t),Xo=t=>t.startsWith("onUpdate:"),rt=Object.assign,Wo=(t,e)=>{const i=t.indexOf(e);i>-1&&t.splice(i,1)},Tf=Object.prototype.hasOwnProperty,ue=(t,e)=>Tf.call(t,e),ee=Array.isArray,Fn=t=>As(t)==="[object Map]",Qa=t=>As(t)==="[object Set]",jl=t=>As(t)==="[object Date]",ne=t=>typeof t=="function",Qe=t=>typeof t=="string",An=t=>typeof t=="symbol",Te=t=>t!==null&&typeof t=="object",hh=t=>(Te(t)||ne(t))&&ne(t.then)&&ne(t.catch),dh=Object.prototype.toString,As=t=>dh.call(t),Rf=t=>As(t).slice(8,-1),mh=t=>As(t)==="[object Object]",Ko=t=>Qe(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,pa=Zo(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),er=t=>{const e=Object.create(null);return i=>e[i]||(e[i]=t(i))},If=/-(\w)/g,Qt=er(t=>t.replace(If,(e,i)=>i?i.toUpperCase():"")),kf=/\B([A-Z])/g,Hn=er(t=>t.replace(kf,"-$1").toLowerCase()),tr=er(t=>t.charAt(0).toUpperCase()+t.slice(1)),Sr=er(t=>t?`on${tr(t)}`:""),ji=(t,e)=>!Object.is(t,e),ga=(t,e)=>{for(let i=0;i{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:i})},Ra=t=>{const e=parseFloat(t);return isNaN(e)?t:e};let Yl;const no=()=>Yl||(Yl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Vo(t){if(ee(t)){const e={};for(let i=0;i{if(i){const n=i.split(Sf);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function Ui(t){let e="";if(Qe(t))e=t;else if(ee(t))for(let i=0;iir(i,e))}const Ge=t=>Qe(t)?t:t==null?"":ee(t)||Te(t)&&(t.toString===dh||!ne(t.toString))?JSON.stringify(t,ph,2):String(t),ph=(t,e)=>e&&e.__v_isRef?ph(t,e.value):Fn(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((i,[n,s])=>(i[`${n} =>`]=s,i),{})}:Qa(e)?{[`Set(${e.size})`]:[...e.values()]}:Te(e)&&!ee(e)&&!mh(e)?String(e):e;let At;class Xf{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=At,!e&&At&&(this.index=(At.scopes||(At.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const i=At;try{return At=this,e()}finally{At=i}}}on(){At=this}off(){At=this.parent}stop(e){if(this._active){let i,n;for(i=0,n=this.effects.length;i{const e=new Set(t);return e.w=0,e.n=0,e},gh=t=>(t.w&Fi)>0,yh=t=>(t.n&Fi)>0,Vf=({deps:t})=>{if(t.length)for(let e=0;e{const{deps:e}=t;if(e.length){let i=0;for(let n=0;n{(u==="length"||!An(u)&&u>=l)&&o.push(c)})}else switch(i!==void 0&&o.push(r.get(i)),e){case"add":ee(t)?Ko(i)&&o.push(r.get("length")):(o.push(r.get(Bi)),Fn(t)&&o.push(r.get(ro)));break;case"delete":ee(t)||(o.push(r.get(Bi)),Fn(t)&&o.push(r.get(ro)));break;case"set":Fn(t)&&o.push(r.get(Bi));break}if(o.length===1)o[0]&&oo(o[0]);else{const l=[];for(const c of o)c&&l.push(...c);oo(Uo(l))}}function oo(t,e){const i=ee(t)?t:[...t];for(const n of i)n.computed&&Jl(n);for(const n of i)n.computed||Jl(n)}function Jl(t,e){(t!==Gt||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const Bf=Zo("__proto__,__v_isRef,__isVue"),vh=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(An)),Ql=Hf();function Hf(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...i){const n=fe(this);for(let a=0,r=this.length;a{t[e]=function(...i){zn();const n=fe(this)[e].apply(this,i);return qn(),n}}),t}function zf(t){const e=fe(this);return Ct(e,"has",t),e.hasOwnProperty(t)}class xh{constructor(e=!1,i=!1){this._isReadonly=e,this._shallow=i}get(e,i,n){const s=this._isReadonly,a=this._shallow;if(i==="__v_isReactive")return!s;if(i==="__v_isReadonly")return s;if(i==="__v_isShallow")return a;if(i==="__v_raw"&&n===(s?a?rp:Fh:a?Nh:Ch).get(e))return e;const r=ee(e);if(!s){if(r&&ue(Ql,i))return Reflect.get(Ql,i,n);if(i==="hasOwnProperty")return zf}const o=Reflect.get(e,i,n);return(An(i)?vh.has(i):Bf(i))||(s||Ct(e,"get",i),a)?o:dt(o)?r&&Ko(i)?o:o.value:Te(o)?s?Mh(o):sr(o):o}}class wh extends xh{constructor(e=!1){super(!1,e)}set(e,i,n,s){let a=e[i];if(On(a)&&dt(a)&&!dt(n))return!1;if(!this._shallow&&(!Ia(n)&&!On(n)&&(a=fe(a),n=fe(n)),!ee(e)&&dt(a)&&!dt(n)))return a.value=n,!0;const r=ee(e)&&Ko(i)?Number(i)t,nr=t=>Reflect.getPrototypeOf(t);function js(t,e,i=!1,n=!1){t=t.__v_raw;const s=fe(t),a=fe(e);i||(ji(e,a)&&Ct(s,"get",e),Ct(s,"get",a));const{has:r}=nr(s),o=n?Ho:i?jo:bs;if(r.call(s,e))return o(t.get(e));if(r.call(s,a))return o(t.get(a));t!==s&&t.get(e)}function Ys(t,e=!1){const i=this.__v_raw,n=fe(i),s=fe(t);return e||(ji(t,s)&&Ct(n,"has",t),Ct(n,"has",s)),t===s?i.has(t):i.has(t)||i.has(s)}function $s(t,e=!1){return t=t.__v_raw,!e&&Ct(fe(t),"iterate",Bi),Reflect.get(t,"size",t)}function ec(t){t=fe(t);const e=fe(this);return nr(e).has.call(e,t)||(e.add(t),ri(e,"add",t,t)),this}function tc(t,e){e=fe(e);const i=fe(this),{has:n,get:s}=nr(i);let a=n.call(i,t);a||(t=fe(t),a=n.call(i,t));const r=s.call(i,t);return i.set(t,e),a?ji(e,r)&&ri(i,"set",t,e):ri(i,"add",t,e),this}function ic(t){const e=fe(this),{has:i,get:n}=nr(e);let s=i.call(e,t);s||(t=fe(t),s=i.call(e,t)),n&&n.call(e,t);const a=e.delete(t);return s&&ri(e,"delete",t,void 0),a}function nc(){const t=fe(this),e=t.size!==0,i=t.clear();return e&&ri(t,"clear",void 0,void 0),i}function Js(t,e){return function(n,s){const a=this,r=a.__v_raw,o=fe(r),l=e?Ho:t?jo:bs;return!t&&Ct(o,"iterate",Bi),r.forEach((c,u)=>n.call(s,l(c),l(u),a))}}function Qs(t,e,i){return function(...n){const s=this.__v_raw,a=fe(s),r=Fn(a),o=t==="entries"||t===Symbol.iterator&&r,l=t==="keys"&&r,c=s[t](...n),u=i?Ho:e?jo:bs;return!e&&Ct(a,"iterate",l?ro:Bi),{next(){const{value:h,done:d}=c.next();return d?{value:h,done:d}:{value:o?[u(h[0]),u(h[1])]:u(h),done:d}},[Symbol.iterator](){return this}}}}function hi(t){return function(...e){return t==="delete"?!1:this}}function Jf(){const t={get(a){return js(this,a)},get size(){return $s(this)},has:Ys,add:ec,set:tc,delete:ic,clear:nc,forEach:Js(!1,!1)},e={get(a){return js(this,a,!1,!0)},get size(){return $s(this)},has:Ys,add:ec,set:tc,delete:ic,clear:nc,forEach:Js(!1,!0)},i={get(a){return js(this,a,!0)},get size(){return $s(this,!0)},has(a){return Ys.call(this,a,!0)},add:hi("add"),set:hi("set"),delete:hi("delete"),clear:hi("clear"),forEach:Js(!0,!1)},n={get(a){return js(this,a,!0,!0)},get size(){return $s(this,!0)},has(a){return Ys.call(this,a,!0)},add:hi("add"),set:hi("set"),delete:hi("delete"),clear:hi("clear"),forEach:Js(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(a=>{t[a]=Qs(a,!1,!1),i[a]=Qs(a,!0,!1),e[a]=Qs(a,!1,!0),n[a]=Qs(a,!0,!0)}),[t,i,e,n]}const[Qf,ep,tp,ip]=Jf();function zo(t,e){const i=e?t?ip:tp:t?ep:Qf;return(n,s,a)=>s==="__v_isReactive"?!t:s==="__v_isReadonly"?t:s==="__v_raw"?n:Reflect.get(ue(i,s)&&s in n?i:n,s,a)}const np={get:zo(!1,!1)},sp={get:zo(!1,!0)},ap={get:zo(!0,!1)},Ch=new WeakMap,Nh=new WeakMap,Fh=new WeakMap,rp=new WeakMap;function op(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function lp(t){return t.__v_skip||!Object.isExtensible(t)?0:op(Rf(t))}function sr(t){return On(t)?t:qo(t,!1,jf,np,Ch)}function Eh(t){return qo(t,!1,$f,sp,Nh)}function Mh(t){return qo(t,!0,Yf,ap,Fh)}function qo(t,e,i,n,s){if(!Te(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const a=s.get(t);if(a)return a;const r=lp(t);if(r===0)return t;const o=new Proxy(t,r===2?n:i);return s.set(t,o),o}function En(t){return On(t)?En(t.__v_raw):!!(t&&t.__v_isReactive)}function On(t){return!!(t&&t.__v_isReadonly)}function Ia(t){return!!(t&&t.__v_isShallow)}function Th(t){return En(t)||On(t)}function fe(t){const e=t&&t.__v_raw;return e?fe(e):t}function Rh(t){return Ta(t,"__v_skip",!0),t}const bs=t=>Te(t)?sr(t):t,jo=t=>Te(t)?Mh(t):t;function Ih(t){vi&&Gt&&(t=fe(t),_h(t.dep||(t.dep=Uo())))}function kh(t,e){t=fe(t);const i=t.dep;i&&oo(i)}function dt(t){return!!(t&&t.__v_isRef===!0)}function cp(t){return Lh(t,!1)}function up(t){return Lh(t,!0)}function Lh(t,e){return dt(t)?t:new hp(t,e)}class hp{constructor(e,i){this.__v_isShallow=i,this.dep=void 0,this.__v_isRef=!0,this._rawValue=i?e:fe(e),this._value=i?e:bs(e)}get value(){return Ih(this),this._value}set value(e){const i=this.__v_isShallow||Ia(e)||On(e);e=i?e:fe(e),ji(e,this._rawValue)&&(this._rawValue=e,this._value=i?e:bs(e),kh(this))}}function be(t){return dt(t)?t.value:t}const dp={get:(t,e,i)=>be(Reflect.get(t,e,i)),set:(t,e,i,n)=>{const s=t[e];return dt(s)&&!dt(i)?(s.value=i,!0):Reflect.set(t,e,i,n)}};function Sh(t){return En(t)?t:new Proxy(t,dp)}class mp{constructor(e,i,n,s){this._setter=i,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new Bo(e,()=>{this._dirty||(this._dirty=!0,kh(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=n}get value(){const e=fe(this);return Ih(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function fp(t,e,i=!1){let n,s;const a=ne(t);return a?(n=t,s=Xt):(n=t.get,s=t.set),new mp(n,s,a||!s,i)}function xi(t,e,i,n){let s;try{s=n?t(...n):t()}catch(a){ar(a,e,i)}return s}function Wt(t,e,i,n){if(ne(t)){const a=xi(t,e,i,n);return a&&hh(a)&&a.catch(r=>{ar(r,e,i)}),a}const s=[];for(let a=0;a>>1,s=ht[n],a=vs(s);ajt&&ht.splice(e,1)}function bp(t){ee(t)?Mn.push(...t):(!ni||!ni.includes(t,t.allowRecurse?Gi+1:Gi))&&Mn.push(t),Ah()}function sc(t,e=_s?jt+1:0){for(;evs(i)-vs(n)),Gi=0;Git.id==null?1/0:t.id,_p=(t,e)=>{const i=vs(t)-vs(e);if(i===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return i};function Gh(t){lo=!1,_s=!0,ht.sort(_p);const e=Xt;try{for(jt=0;jtQe(m)?m.trim():m)),h&&(s=i.map(Ra))}let o,l=n[o=Sr(e)]||n[o=Sr(Qt(e))];!l&&a&&(l=n[o=Sr(Hn(e))]),l&&Wt(l,t,6,s);const c=n[o+"Once"];if(c){if(!t.emitted)t.emitted={};else if(t.emitted[o])return;t.emitted[o]=!0,Wt(c,t,6,s)}}function Zh(t,e,i=!1){const n=e.emitsCache,s=n.get(t);if(s!==void 0)return s;const a=t.emits;let r={},o=!1;if(!ne(t)){const l=c=>{const u=Zh(c,e,!0);u&&(o=!0,rt(r,u))};!i&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!a&&!o?(Te(t)&&n.set(t,null),null):(ee(a)?a.forEach(l=>r[l]=null):rt(r,a),Te(t)&&n.set(t,r),r)}function rr(t,e){return!t||!Ja(e)?!1:(e=e.slice(2).replace(/Once$/,""),ue(t,e[0].toLowerCase()+e.slice(1))||ue(t,Hn(e))||ue(t,e))}let mt=null,or=null;function ka(t){const e=mt;return mt=t,or=t&&t.type.__scopeId||null,e}function Qi(t){or=t}function en(){or=null}function Je(t,e=mt,i){if(!e||t._n)return t;const n=(...s)=>{n._d&&pc(-1);const a=ka(e);let r;try{r=t(...s)}finally{ka(a),n._d&&pc(1)}return r};return n._n=!0,n._c=!0,n._d=!0,n}function Dr(t){const{type:e,vnode:i,proxy:n,withProxy:s,props:a,propsOptions:[r],slots:o,attrs:l,emit:c,render:u,renderCache:h,data:d,setupState:m,ctx:f,inheritAttrs:p}=t;let y,_;const v=ka(t);try{if(i.shapeFlag&4){const w=s||n;y=qt(u.call(w,w,h,a,m,d,f)),_=l}else{const w=e;y=qt(w.length>1?w(a,{attrs:l,slots:o,emit:c}):w(a,null)),_=e.props?l:xp(l)}}catch(w){us.length=0,ar(w,t,1),y=B(Mi)}let N=y;if(_&&p!==!1){const w=Object.keys(_),{shapeFlag:E}=N;w.length&&E&7&&(r&&w.some(Xo)&&(_=wp(_,r)),N=Gn(N,_))}return i.dirs&&(N=Gn(N),N.dirs=N.dirs?N.dirs.concat(i.dirs):i.dirs),i.transition&&(N.transition=i.transition),y=N,ka(v),y}const xp=t=>{let e;for(const i in t)(i==="class"||i==="style"||Ja(i))&&((e||(e={}))[i]=t[i]);return e},wp=(t,e)=>{const i={};for(const n in t)(!Xo(n)||!(n.slice(9)in e))&&(i[n]=t[n]);return i};function Cp(t,e,i){const{props:n,children:s,component:a}=t,{props:r,children:o,patchFlag:l}=e,c=a.emitsOptions;if(e.dirs||e.transition)return!0;if(i&&l>=0){if(l&1024)return!0;if(l&16)return n?ac(n,r,c):!!r;if(l&8){const u=e.dynamicProps;for(let h=0;ht.__isSuspense;function Tp(t,e){e&&e.pendingBranch?ee(t)?e.effects.push(...t):e.effects.push(t):bp(t)}const ea={};function ya(t,e,i){return Wh(t,e,i)}function Wh(t,e,{immediate:i,deep:n,flush:s,onTrack:a,onTrigger:r}=Ie){var o;const l=Kf()===((o=at)==null?void 0:o.scope)?at:null;let c,u=!1,h=!1;if(dt(t)?(c=()=>t.value,u=Ia(t)):En(t)?(c=()=>t,n=!0):ee(t)?(h=!0,u=t.some(w=>En(w)||Ia(w)),c=()=>t.map(w=>{if(dt(w))return w.value;if(En(w))return Wi(w);if(ne(w))return xi(w,l,2)})):ne(t)?e?c=()=>xi(t,l,2):c=()=>{if(!(l&&l.isUnmounted))return d&&d(),Wt(t,l,3,[m])}:c=Xt,e&&n){const w=c;c=()=>Wi(w())}let d,m=w=>{d=v.onStop=()=>{xi(w,l,4)}},f;if(ws)if(m=Xt,e?i&&Wt(e,l,3,[c(),h?[]:void 0,m]):c(),s==="sync"){const w=vg();f=w.__watcherHandles||(w.__watcherHandles=[])}else return Xt;let p=h?new Array(t.length).fill(ea):ea;const y=()=>{if(v.active)if(e){const w=v.run();(n||u||(h?w.some((E,L)=>ji(E,p[L])):ji(w,p)))&&(d&&d(),Wt(e,l,3,[w,p===ea?void 0:h&&p[0]===ea?[]:p,m]),p=w)}else v.run()};y.allowRecurse=!!e;let _;s==="sync"?_=y:s==="post"?_=()=>vt(y,l&&l.suspense):(y.pre=!0,l&&(y.id=l.uid),_=()=>$o(y));const v=new Bo(c,_);e?i?y():p=v.run():s==="post"?vt(v.run.bind(v),l&&l.suspense):v.run();const N=()=>{v.stop(),l&&l.scope&&Wo(l.scope.effects,v)};return f&&f.push(N),N}function Rp(t,e,i){const n=this.proxy,s=Qe(t)?t.includes(".")?Kh(n,t):()=>n[t]:t.bind(n,n);let a;ne(e)?a=e:(a=e.handler,i=e);const r=at;Zn(this);const o=Wh(s,a.bind(n),i);return r?Zn(r):zi(),o}function Kh(t,e){const i=e.split(".");return()=>{let n=t;for(let s=0;s{Wi(i,e)});else if(mh(t))for(const i in t)Wi(t[i],e);return t}function Ei(t,e){const i=mt;if(i===null)return t;const n=hr(i)||i.proxy,s=t.dirs||(t.dirs=[]);for(let a=0;art({name:t.name},e,{setup:t}))():t}const ls=t=>!!t.type.__asyncLoader,Uh=t=>t.type.__isKeepAlive;function Ip(t,e){Bh(t,"a",e)}function kp(t,e){Bh(t,"da",e)}function Bh(t,e,i=at){const n=t.__wdc||(t.__wdc=()=>{let s=i;for(;s;){if(s.isDeactivated)return;s=s.parent}return t()});if(lr(e,n,i),i){let s=i.parent;for(;s&&s.parent;)Uh(s.parent.vnode)&&Lp(n,e,i,s),s=s.parent}}function Lp(t,e,i,n){const s=lr(e,t,n,!0);zh(()=>{Wo(n[e],s)},i)}function lr(t,e,i=at,n=!1){if(i){const s=i[t]||(i[t]=[]),a=e.__weh||(e.__weh=(...r)=>{if(i.isUnmounted)return;zn(),Zn(i);const o=Wt(e,i,t,r);return zi(),qn(),o});return n?s.unshift(a):s.push(a),a}}const li=t=>(e,i=at)=>(!ws||t==="sp")&&lr(t,(...n)=>e(...n),i),Sp=li("bm"),Hh=li("m"),Dp=li("bu"),Pp=li("u"),Ap=li("bum"),zh=li("um"),Op=li("sp"),Gp=li("rtg"),Zp=li("rtc");function Xp(t,e=at){lr("ec",t,e)}function Tt(t,e,i,n){let s;const a=i&&i[n];if(ee(t)||Qe(t)){s=new Array(t.length);for(let r=0,o=t.length;re(r,o,void 0,a&&a[o]));else{const r=Object.keys(t);s=new Array(r.length);for(let o=0,l=r.length;oDa(e)?!(e.type===Mi||e.type===ke&&!qh(e.children)):!0)?t:null}const co=t=>t?ad(t)?hr(t)||t.proxy:co(t.parent):null,cs=rt(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>co(t.parent),$root:t=>co(t.root),$emit:t=>t.emit,$options:t=>Jo(t),$forceUpdate:t=>t.f||(t.f=()=>$o(t.update)),$nextTick:t=>t.n||(t.n=Ph.bind(t.proxy)),$watch:t=>Rp.bind(t)}),Pr=(t,e)=>t!==Ie&&!t.__isScriptSetup&&ue(t,e),Wp={get({_:t},e){const{ctx:i,setupState:n,data:s,props:a,accessCache:r,type:o,appContext:l}=t;let c;if(e[0]!=="$"){const m=r[e];if(m!==void 0)switch(m){case 1:return n[e];case 2:return s[e];case 4:return i[e];case 3:return a[e]}else{if(Pr(n,e))return r[e]=1,n[e];if(s!==Ie&&ue(s,e))return r[e]=2,s[e];if((c=t.propsOptions[0])&&ue(c,e))return r[e]=3,a[e];if(i!==Ie&&ue(i,e))return r[e]=4,i[e];uo&&(r[e]=0)}}const u=cs[e];let h,d;if(u)return e==="$attrs"&&Ct(t,"get",e),u(t);if((h=o.__cssModules)&&(h=h[e]))return h;if(i!==Ie&&ue(i,e))return r[e]=4,i[e];if(d=l.config.globalProperties,ue(d,e))return d[e]},set({_:t},e,i){const{data:n,setupState:s,ctx:a}=t;return Pr(s,e)?(s[e]=i,!0):n!==Ie&&ue(n,e)?(n[e]=i,!0):ue(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(a[e]=i,!0)},has({_:{data:t,setupState:e,accessCache:i,ctx:n,appContext:s,propsOptions:a}},r){let o;return!!i[r]||t!==Ie&&ue(t,r)||Pr(e,r)||(o=a[0])&&ue(o,r)||ue(n,r)||ue(cs,r)||ue(s.config.globalProperties,r)},defineProperty(t,e,i){return i.get!=null?t._.accessCache[e]=0:ue(i,"value")&&this.set(t,e,i.value,null),Reflect.defineProperty(t,e,i)}};function oc(t){return ee(t)?t.reduce((e,i)=>(e[i]=null,e),{}):t}let uo=!0;function Kp(t){const e=Jo(t),i=t.proxy,n=t.ctx;uo=!1,e.beforeCreate&&lc(e.beforeCreate,t,"bc");const{data:s,computed:a,methods:r,watch:o,provide:l,inject:c,created:u,beforeMount:h,mounted:d,beforeUpdate:m,updated:f,activated:p,deactivated:y,beforeDestroy:_,beforeUnmount:v,destroyed:N,unmounted:w,render:E,renderTracked:L,renderTriggered:Y,errorCaptured:q,serverPrefetch:re,expose:oe,inheritAttrs:_e,components:qe,directives:Ke,filters:Ft}=e;if(c&&Vp(c,n,null),r)for(const $ in r){const se=r[$];ne(se)&&(n[$]=se.bind(i))}if(s){const $=s.call(i,i);Te($)&&(t.data=sr($))}if(uo=!0,a)for(const $ in a){const se=a[$],je=ne(se)?se.bind(i,i):ne(se.get)?se.get.bind(i,i):Xt,Ye=!ne(se)&&ne(se.set)?se.set.bind(i):Xt,ot=Oe({get:je,set:Ye});Object.defineProperty(n,$,{enumerable:!0,configurable:!0,get:()=>ot.value,set:me=>ot.value=me})}if(o)for(const $ in o)jh(o[$],n,i,$);if(l){const $=ne(l)?l.call(i):l;Reflect.ownKeys($).forEach(se=>{ba(se,$[se])})}u&&lc(u,t,"c");function ve($,se){ee(se)?se.forEach(je=>$(je.bind(i))):se&&$(se.bind(i))}if(ve(Sp,h),ve(Hh,d),ve(Dp,m),ve(Pp,f),ve(Ip,p),ve(kp,y),ve(Xp,q),ve(Zp,L),ve(Gp,Y),ve(Ap,v),ve(zh,w),ve(Op,re),ee(oe))if(oe.length){const $=t.exposed||(t.exposed={});oe.forEach(se=>{Object.defineProperty($,se,{get:()=>i[se],set:je=>i[se]=je})})}else t.exposed||(t.exposed={});E&&t.render===Xt&&(t.render=E),_e!=null&&(t.inheritAttrs=_e),qe&&(t.components=qe),Ke&&(t.directives=Ke)}function Vp(t,e,i=Xt){ee(t)&&(t=ho(t));for(const n in t){const s=t[n];let a;Te(s)?"default"in s?a=oi(s.from||n,s.default,!0):a=oi(s.from||n):a=oi(s),dt(a)?Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:()=>a.value,set:r=>a.value=r}):e[n]=a}}function lc(t,e,i){Wt(ee(t)?t.map(n=>n.bind(e.proxy)):t.bind(e.proxy),e,i)}function jh(t,e,i,n){const s=n.includes(".")?Kh(i,n):()=>i[n];if(Qe(t)){const a=e[t];ne(a)&&ya(s,a)}else if(ne(t))ya(s,t.bind(i));else if(Te(t))if(ee(t))t.forEach(a=>jh(a,e,i,n));else{const a=ne(t.handler)?t.handler.bind(i):e[t.handler];ne(a)&&ya(s,a,t)}}function Jo(t){const e=t.type,{mixins:i,extends:n}=e,{mixins:s,optionsCache:a,config:{optionMergeStrategies:r}}=t.appContext,o=a.get(e);let l;return o?l=o:!s.length&&!i&&!n?l=e:(l={},s.length&&s.forEach(c=>La(l,c,r,!0)),La(l,e,r)),Te(e)&&a.set(e,l),l}function La(t,e,i,n=!1){const{mixins:s,extends:a}=e;a&&La(t,a,i,!0),s&&s.forEach(r=>La(t,r,i,!0));for(const r in e)if(!(n&&r==="expose")){const o=Up[r]||i&&i[r];t[r]=o?o(t[r],e[r]):e[r]}return t}const Up={data:cc,props:uc,emits:uc,methods:ss,computed:ss,beforeCreate:pt,created:pt,beforeMount:pt,mounted:pt,beforeUpdate:pt,updated:pt,beforeDestroy:pt,beforeUnmount:pt,destroyed:pt,unmounted:pt,activated:pt,deactivated:pt,errorCaptured:pt,serverPrefetch:pt,components:ss,directives:ss,watch:Hp,provide:cc,inject:Bp};function cc(t,e){return e?t?function(){return rt(ne(t)?t.call(this,this):t,ne(e)?e.call(this,this):e)}:e:t}function Bp(t,e){return ss(ho(t),ho(e))}function ho(t){if(ee(t)){const e={};for(let i=0;i1)return i&&ne(e)?e.call(n&&n.proxy):e}}function jp(t,e,i,n=!1){const s={},a={};Ta(a,ur,1),t.propsDefaults=Object.create(null),$h(t,e,s,a);for(const r in t.propsOptions[0])r in s||(s[r]=void 0);i?t.props=n?s:Eh(s):t.type.props?t.props=s:t.props=a,t.attrs=a}function Yp(t,e,i,n){const{props:s,attrs:a,vnode:{patchFlag:r}}=t,o=fe(s),[l]=t.propsOptions;let c=!1;if((n||r>0)&&!(r&16)){if(r&8){const u=t.vnode.dynamicProps;for(let h=0;h{l=!0;const[d,m]=Jh(h,e,!0);rt(r,d),m&&o.push(...m)};!i&&e.mixins.length&&e.mixins.forEach(u),t.extends&&u(t.extends),t.mixins&&t.mixins.forEach(u)}if(!a&&!l)return Te(t)&&n.set(t,Nn),Nn;if(ee(a))for(let u=0;u-1,m[1]=p<0||f-1||ue(m,"default"))&&o.push(h)}}}const c=[r,o];return Te(t)&&n.set(t,c),c}function hc(t){return t[0]!=="$"}function dc(t){const e=t&&t.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:t===null?"null":""}function mc(t,e){return dc(t)===dc(e)}function fc(t,e){return ee(e)?e.findIndex(i=>mc(i,t)):ne(e)&&mc(e,t)?0:-1}const Qh=t=>t[0]==="_"||t==="$stable",Qo=t=>ee(t)?t.map(qt):[qt(t)],$p=(t,e,i)=>{if(e._n)return e;const n=Je((...s)=>Qo(e(...s)),i);return n._c=!1,n},ed=(t,e,i)=>{const n=t._ctx;for(const s in t){if(Qh(s))continue;const a=t[s];if(ne(a))e[s]=$p(s,a,n);else if(a!=null){const r=Qo(a);e[s]=()=>r}}},td=(t,e)=>{const i=Qo(e);t.slots.default=()=>i},Jp=(t,e)=>{if(t.vnode.shapeFlag&32){const i=e._;i?(t.slots=fe(e),Ta(e,"_",i)):ed(e,t.slots={})}else t.slots={},e&&td(t,e);Ta(t.slots,ur,1)},Qp=(t,e,i)=>{const{vnode:n,slots:s}=t;let a=!0,r=Ie;if(n.shapeFlag&32){const o=e._;o?i&&o===1?a=!1:(rt(s,e),!i&&o===1&&delete s._):(a=!e.$stable,ed(e,s)),r=e}else e&&(td(t,e),r={default:1});if(a)for(const o in s)!Qh(o)&&r[o]==null&&delete s[o]};function fo(t,e,i,n,s=!1){if(ee(t)){t.forEach((d,m)=>fo(d,e&&(ee(e)?e[m]:e),i,n,s));return}if(ls(n)&&!s)return;const a=n.shapeFlag&4?hr(n.component)||n.component.proxy:n.el,r=s?null:a,{i:o,r:l}=t,c=e&&e.r,u=o.refs===Ie?o.refs={}:o.refs,h=o.setupState;if(c!=null&&c!==l&&(Qe(c)?(u[c]=null,ue(h,c)&&(h[c]=null)):dt(c)&&(c.value=null)),ne(l))xi(l,o,12,[r,u]);else{const d=Qe(l),m=dt(l);if(d||m){const f=()=>{if(t.f){const p=d?ue(h,l)?h[l]:u[l]:l.value;s?ee(p)&&Wo(p,a):ee(p)?p.includes(a)||p.push(a):d?(u[l]=[a],ue(h,l)&&(h[l]=u[l])):(l.value=[a],t.k&&(u[t.k]=l.value))}else d?(u[l]=r,ue(h,l)&&(h[l]=r)):m&&(l.value=r,t.k&&(u[t.k]=r))};r?(f.id=-1,vt(f,i)):f()}}}const vt=Tp;function eg(t){return tg(t)}function tg(t,e){const i=no();i.__VUE__=!0;const{insert:n,remove:s,patchProp:a,createElement:r,createText:o,createComment:l,setText:c,setElementText:u,parentNode:h,nextSibling:d,setScopeId:m=Xt,insertStaticContent:f}=t,p=(g,b,x,M=null,T=null,R=null,G=!1,S=null,A=!!b.dynamicChildren)=>{if(g===b)return;g&&!Jn(g,b)&&(M=F(g),me(g,T,R,!0),g=null),b.patchFlag===-2&&(A=!1,b.dynamicChildren=null);const{type:I,ref:U,shapeFlag:W}=b;switch(I){case cr:y(g,b,x,M);break;case Mi:_(g,b,x,M);break;case _a:g==null&&v(b,x,M,G);break;case ke:qe(g,b,x,M,T,R,G,S,A);break;default:W&1?E(g,b,x,M,T,R,G,S,A):W&6?Ke(g,b,x,M,T,R,G,S,A):(W&64||W&128)&&I.process(g,b,x,M,T,R,G,S,A,P)}U!=null&&T&&fo(U,g&&g.ref,R,b||g,!b)},y=(g,b,x,M)=>{if(g==null)n(b.el=o(b.children),x,M);else{const T=b.el=g.el;b.children!==g.children&&c(T,b.children)}},_=(g,b,x,M)=>{g==null?n(b.el=l(b.children||""),x,M):b.el=g.el},v=(g,b,x,M)=>{[g.el,g.anchor]=f(g.children,b,x,M,g.el,g.anchor)},N=({el:g,anchor:b},x,M)=>{let T;for(;g&&g!==b;)T=d(g),n(g,x,M),g=T;n(b,x,M)},w=({el:g,anchor:b})=>{let x;for(;g&&g!==b;)x=d(g),s(g),g=x;s(b)},E=(g,b,x,M,T,R,G,S,A)=>{G=G||b.type==="svg",g==null?L(b,x,M,T,R,G,S,A):re(g,b,T,R,G,S,A)},L=(g,b,x,M,T,R,G,S)=>{let A,I;const{type:U,props:W,shapeFlag:z,transition:te,dirs:ae}=g;if(A=g.el=r(g.type,R,W&&W.is,W),z&8?u(A,g.children):z&16&&q(g.children,A,null,M,T,R&&U!=="foreignObject",G,S),ae&&Li(g,null,M,"created"),Y(A,g,g.scopeId,G,M),W){for(const he in W)he!=="value"&&!pa(he)&&a(A,he,null,W[he],R,g.children,M,T,Pe);"value"in W&&a(A,"value",null,W.value),(I=W.onVnodeBeforeMount)&&Ht(I,M,g)}ae&&Li(g,null,M,"beforeMount");const xe=ig(T,te);xe&&te.beforeEnter(A),n(A,b,x),((I=W&&W.onVnodeMounted)||xe||ae)&&vt(()=>{I&&Ht(I,M,g),xe&&te.enter(A),ae&&Li(g,null,M,"mounted")},T)},Y=(g,b,x,M,T)=>{if(x&&m(g,x),M)for(let R=0;R{for(let I=A;I{const S=b.el=g.el;let{patchFlag:A,dynamicChildren:I,dirs:U}=b;A|=g.patchFlag&16;const W=g.props||Ie,z=b.props||Ie;let te;x&&Si(x,!1),(te=z.onVnodeBeforeUpdate)&&Ht(te,x,b,g),U&&Li(b,g,x,"beforeUpdate"),x&&Si(x,!0);const ae=T&&b.type!=="foreignObject";if(I?oe(g.dynamicChildren,I,S,x,M,ae,R):G||se(g,b,S,null,x,M,ae,R,!1),A>0){if(A&16)_e(S,b,W,z,x,M,T);else if(A&2&&W.class!==z.class&&a(S,"class",null,z.class,T),A&4&&a(S,"style",W.style,z.style,T),A&8){const xe=b.dynamicProps;for(let he=0;he{te&&Ht(te,x,b,g),U&&Li(b,g,x,"updated")},M)},oe=(g,b,x,M,T,R,G)=>{for(let S=0;S{if(x!==M){if(x!==Ie)for(const S in x)!pa(S)&&!(S in M)&&a(g,S,x[S],null,G,b.children,T,R,Pe);for(const S in M){if(pa(S))continue;const A=M[S],I=x[S];A!==I&&S!=="value"&&a(g,S,I,A,G,b.children,T,R,Pe)}"value"in M&&a(g,"value",x.value,M.value)}},qe=(g,b,x,M,T,R,G,S,A)=>{const I=b.el=g?g.el:o(""),U=b.anchor=g?g.anchor:o("");let{patchFlag:W,dynamicChildren:z,slotScopeIds:te}=b;te&&(S=S?S.concat(te):te),g==null?(n(I,x,M),n(U,x,M),q(b.children,x,U,T,R,G,S,A)):W>0&&W&64&&z&&g.dynamicChildren?(oe(g.dynamicChildren,z,x,T,R,G,S),(b.key!=null||T&&b===T.subTree)&&id(g,b,!0)):se(g,b,x,U,T,R,G,S,A)},Ke=(g,b,x,M,T,R,G,S,A)=>{b.slotScopeIds=S,g==null?b.shapeFlag&512?T.ctx.activate(b,x,M,G,A):Ft(b,x,M,T,R,G,A):tt(g,b,A)},Ft=(g,b,x,M,T,R,G)=>{const S=g.component=dg(g,M,T);if(Uh(g)&&(S.ctx.renderer=P),mg(S),S.asyncDep){if(T&&T.registerDep(S,ve),!g.el){const A=S.subTree=B(Mi);_(null,A,b,x)}return}ve(S,g,b,x,T,R,G)},tt=(g,b,x)=>{const M=b.component=g.component;if(Cp(g,b,x))if(M.asyncDep&&!M.asyncResolved){$(M,b,x);return}else M.next=b,yp(M.update),M.update();else b.el=g.el,M.vnode=b},ve=(g,b,x,M,T,R,G)=>{const S=()=>{if(g.isMounted){let{next:U,bu:W,u:z,parent:te,vnode:ae}=g,xe=U,he;Si(g,!1),U?(U.el=ae.el,$(g,U,G)):U=ae,W&&ga(W),(he=U.props&&U.props.onVnodeBeforeUpdate)&&Ht(he,te,U,ae),Si(g,!0);const Re=Dr(g),Et=g.subTree;g.subTree=Re,p(Et,Re,h(Et.el),F(Et),g,T,R),U.el=Re.el,xe===null&&Np(g,Re.el),z&&vt(z,T),(he=U.props&&U.props.onVnodeUpdated)&&vt(()=>Ht(he,te,U,ae),T)}else{let U;const{el:W,props:z}=b,{bm:te,m:ae,parent:xe}=g,he=ls(b);if(Si(g,!1),te&&ga(te),!he&&(U=z&&z.onVnodeBeforeMount)&&Ht(U,xe,b),Si(g,!0),W&&ce){const Re=()=>{g.subTree=Dr(g),ce(W,g.subTree,g,T,null)};he?b.type.__asyncLoader().then(()=>!g.isUnmounted&&Re()):Re()}else{const Re=g.subTree=Dr(g);p(null,Re,x,M,g,T,R),b.el=Re.el}if(ae&&vt(ae,T),!he&&(U=z&&z.onVnodeMounted)){const Re=b;vt(()=>Ht(U,xe,Re),T)}(b.shapeFlag&256||xe&&ls(xe.vnode)&&xe.vnode.shapeFlag&256)&&g.a&&vt(g.a,T),g.isMounted=!0,b=x=M=null}},A=g.effect=new Bo(S,()=>$o(I),g.scope),I=g.update=()=>A.run();I.id=g.uid,Si(g,!0),I()},$=(g,b,x)=>{b.component=g;const M=g.vnode.props;g.vnode=b,g.next=null,Yp(g,b.props,M,x),Qp(g,b.children,x),zn(),sc(),qn()},se=(g,b,x,M,T,R,G,S,A=!1)=>{const I=g&&g.children,U=g?g.shapeFlag:0,W=b.children,{patchFlag:z,shapeFlag:te}=b;if(z>0){if(z&128){Ye(I,W,x,M,T,R,G,S,A);return}else if(z&256){je(I,W,x,M,T,R,G,S,A);return}}te&8?(U&16&&Pe(I,T,R),W!==I&&u(x,W)):U&16?te&16?Ye(I,W,x,M,T,R,G,S,A):Pe(I,T,R,!0):(U&8&&u(x,""),te&16&&q(W,x,M,T,R,G,S,A))},je=(g,b,x,M,T,R,G,S,A)=>{g=g||Nn,b=b||Nn;const I=g.length,U=b.length,W=Math.min(I,U);let z;for(z=0;zU?Pe(g,T,R,!0,!1,W):q(b,x,M,T,R,G,S,A,W)},Ye=(g,b,x,M,T,R,G,S,A)=>{let I=0;const U=b.length;let W=g.length-1,z=U-1;for(;I<=W&&I<=z;){const te=g[I],ae=b[I]=A?gi(b[I]):qt(b[I]);if(Jn(te,ae))p(te,ae,x,null,T,R,G,S,A);else break;I++}for(;I<=W&&I<=z;){const te=g[W],ae=b[z]=A?gi(b[z]):qt(b[z]);if(Jn(te,ae))p(te,ae,x,null,T,R,G,S,A);else break;W--,z--}if(I>W){if(I<=z){const te=z+1,ae=tez)for(;I<=W;)me(g[I],T,R,!0),I++;else{const te=I,ae=I,xe=new Map;for(I=ae;I<=z;I++){const Mt=b[I]=A?gi(b[I]):qt(b[I]);Mt.key!=null&&xe.set(Mt.key,I)}let he,Re=0;const Et=z-ae+1;let $e=!1,Xl=0;const $n=new Array(Et);for(I=0;I=Et){me(Mt,T,R,!0);continue}let Bt;if(Mt.key!=null)Bt=xe.get(Mt.key);else for(he=ae;he<=z;he++)if($n[he-ae]===0&&Jn(Mt,b[he])){Bt=he;break}Bt===void 0?me(Mt,T,R,!0):($n[Bt-ae]=I+1,Bt>=Xl?Xl=Bt:$e=!0,p(Mt,b[Bt],x,null,T,R,G,S,A),Re++)}const Wl=$e?ng($n):Nn;for(he=Wl.length-1,I=Et-1;I>=0;I--){const Mt=ae+I,Bt=b[Mt],Kl=Mt+1{const{el:R,type:G,transition:S,children:A,shapeFlag:I}=g;if(I&6){ot(g.component.subTree,b,x,M);return}if(I&128){g.suspense.move(b,x,M);return}if(I&64){G.move(g,b,x,P);return}if(G===ke){n(R,b,x);for(let W=0;WS.enter(R),T);else{const{leave:W,delayLeave:z,afterLeave:te}=S,ae=()=>n(R,b,x),xe=()=>{W(R,()=>{ae(),te&&te()})};z?z(R,ae,xe):xe()}else n(R,b,x)},me=(g,b,x,M=!1,T=!1)=>{const{type:R,props:G,ref:S,children:A,dynamicChildren:I,shapeFlag:U,patchFlag:W,dirs:z}=g;if(S!=null&&fo(S,null,x,g,!0),U&256){b.ctx.deactivate(g);return}const te=U&1&&z,ae=!ls(g);let xe;if(ae&&(xe=G&&G.onVnodeBeforeUnmount)&&Ht(xe,b,g),U&6)Se(g.component,x,M);else{if(U&128){g.suspense.unmount(x,M);return}te&&Li(g,null,b,"beforeUnmount"),U&64?g.type.remove(g,b,x,T,P,M):I&&(R!==ke||W>0&&W&64)?Pe(I,b,x,!1,!0):(R===ke&&W&384||!T&&U&16)&&Pe(A,b,x),M&&Ve(g)}(ae&&(xe=G&&G.onVnodeUnmounted)||te)&&vt(()=>{xe&&Ht(xe,b,g),te&&Li(g,null,b,"unmounted")},x)},Ve=g=>{const{type:b,el:x,anchor:M,transition:T}=g;if(b===ke){pe(x,M);return}if(b===_a){w(g);return}const R=()=>{s(x),T&&!T.persisted&&T.afterLeave&&T.afterLeave()};if(g.shapeFlag&1&&T&&!T.persisted){const{leave:G,delayLeave:S}=T,A=()=>G(x,R);S?S(g.el,R,A):A()}else R()},pe=(g,b)=>{let x;for(;g!==b;)x=d(g),s(g),g=x;s(b)},Se=(g,b,x)=>{const{bum:M,scope:T,update:R,subTree:G,um:S}=g;M&&ga(M),T.stop(),R&&(R.active=!1,me(G,g,b,x)),S&&vt(S,b),vt(()=>{g.isUnmounted=!0},b),b&&b.pendingBranch&&!b.isUnmounted&&g.asyncDep&&!g.asyncResolved&&g.suspenseId===b.pendingId&&(b.deps--,b.deps===0&&b.resolve())},Pe=(g,b,x,M=!1,T=!1,R=0)=>{for(let G=R;Gg.shapeFlag&6?F(g.component.subTree):g.shapeFlag&128?g.suspense.next():d(g.anchor||g.el),Z=(g,b,x)=>{g==null?b._vnode&&me(b._vnode,null,null,!0):p(b._vnode||null,g,b,null,null,null,x),sc(),Oh(),b._vnode=g},P={p,um:me,m:ot,r:Ve,mt:Ft,mc:q,pc:se,pbc:oe,n:F,o:t};let H,ce;return e&&([H,ce]=e(P)),{render:Z,hydrate:H,createApp:qp(Z,H)}}function Si({effect:t,update:e},i){t.allowRecurse=e.allowRecurse=i}function ig(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function id(t,e,i=!1){const n=t.children,s=e.children;if(ee(n)&&ee(s))for(let a=0;a>1,t[i[o]]0&&(e[n]=i[a-1]),i[a]=n)}}for(a=i.length,r=i[a-1];a-- >0;)i[a]=r,r=e[r];return i}const sg=t=>t.__isTeleport,ke=Symbol.for("v-fgt"),cr=Symbol.for("v-txt"),Mi=Symbol.for("v-cmt"),_a=Symbol.for("v-stc"),us=[];let Zt=null;function D(t=!1){us.push(Zt=t?null:[])}function ag(){us.pop(),Zt=us[us.length-1]||null}let xs=1;function pc(t){xs+=t}function nd(t){return t.dynamicChildren=xs>0?Zt||Nn:null,ag(),xs>0&&Zt&&Zt.push(t),t}function K(t,e,i,n,s,a){return nd(C(t,e,i,n,s,a,!0))}function wt(t,e,i,n,s){return nd(B(t,e,i,n,s,!0))}function Da(t){return t?t.__v_isVNode===!0:!1}function Jn(t,e){return t.type===e.type&&t.key===e.key}const ur="__vInternal",sd=({key:t})=>t??null,va=({ref:t,ref_key:e,ref_for:i})=>(typeof t=="number"&&(t=""+t),t!=null?Qe(t)||dt(t)||ne(t)?{i:mt,r:t,k:e,f:!!i}:t:null);function C(t,e=null,i=null,n=0,s=null,a=t===ke?0:1,r=!1,o=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&sd(e),ref:e&&va(e),scopeId:or,slotScopeIds:null,children:i,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:n,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:mt};return o?(el(l,i),a&128&&t.normalize(l)):i&&(l.shapeFlag|=Qe(i)?8:16),xs>0&&!r&&Zt&&(l.patchFlag>0||a&6)&&l.patchFlag!==32&&Zt.push(l),l}const B=rg;function rg(t,e=null,i=null,n=0,s=null,a=!1){if((!t||t===Fp)&&(t=Mi),Da(t)){const o=Gn(t,e,!0);return i&&el(o,i),xs>0&&!a&&Zt&&(o.shapeFlag&6?Zt[Zt.indexOf(t)]=o:Zt.push(o)),o.patchFlag|=-2,o}if(bg(t)&&(t=t.__vccOpts),e){e=og(e);let{class:o,style:l}=e;o&&!Qe(o)&&(e.class=Ui(o)),Te(l)&&(Th(l)&&!ee(l)&&(l=rt({},l)),e.style=Vo(l))}const r=Qe(t)?1:Mp(t)?128:sg(t)?64:Te(t)?4:ne(t)?2:0;return C(t,e,i,n,s,r,a,!0)}function og(t){return t?Th(t)||ur in t?rt({},t):t:null}function Gn(t,e,i=!1){const{props:n,ref:s,patchFlag:a,children:r}=t,o=e?cg(n||{},e):n;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:o,key:o&&sd(o),ref:e&&e.ref?i&&s?ee(s)?s.concat(va(e)):[s,va(e)]:va(e):s,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:r,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==ke?a===-1?16:a|16:a,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Gn(t.ssContent),ssFallback:t.ssFallback&&Gn(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function Ee(t=" ",e=0){return B(cr,null,t,e)}function lg(t,e){const i=B(_a,null,t);return i.staticCount=e,i}function De(t="",e=!1){return e?(D(),wt(Mi,null,t)):B(Mi,null,t)}function qt(t){return t==null||typeof t=="boolean"?B(Mi):ee(t)?B(ke,null,t.slice()):typeof t=="object"?gi(t):B(cr,null,String(t))}function gi(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Gn(t)}function el(t,e){let i=0;const{shapeFlag:n}=t;if(e==null)e=null;else if(ee(e))i=16;else if(typeof e=="object")if(n&65){const s=e.default;s&&(s._c&&(s._d=!1),el(t,s()),s._c&&(s._d=!0));return}else{i=32;const s=e._;!s&&!(ur in e)?e._ctx=mt:s===3&&mt&&(mt.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else ne(e)?(e={default:e,_ctx:mt},i=32):(e=String(e),n&64?(i=16,e=[Ee(e)]):i=8);t.children=e,t.shapeFlag|=i}function cg(...t){const e={};for(let i=0;iat=t),tl=t=>{rn.length>1?rn.forEach(e=>e(t)):rn[0](t)};const Zn=t=>{tl(t),t.scope.on()},zi=()=>{at&&at.scope.off(),tl(null)};function ad(t){return t.vnode.shapeFlag&4}let ws=!1;function mg(t,e=!1){ws=e;const{props:i,children:n}=t.vnode,s=ad(t);jp(t,i,s,e),Jp(t,n);const a=s?fg(t,e):void 0;return ws=!1,a}function fg(t,e){const i=t.type;t.accessCache=Object.create(null),t.proxy=Rh(new Proxy(t.ctx,Wp));const{setup:n}=i;if(n){const s=t.setupContext=n.length>1?gg(t):null;Zn(t),zn();const a=xi(n,t,0,[t.props,s]);if(qn(),zi(),hh(a)){if(a.then(zi,zi),e)return a.then(r=>{yc(t,r,e)}).catch(r=>{ar(r,t,0)});t.asyncDep=a}else yc(t,a,e)}else rd(t,e)}function yc(t,e,i){ne(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Te(e)&&(t.setupState=Sh(e)),rd(t,i)}let bc;function rd(t,e,i){const n=t.type;if(!t.render){if(!e&&bc&&!n.render){const s=n.template||Jo(t).template;if(s){const{isCustomElement:a,compilerOptions:r}=t.appContext.config,{delimiters:o,compilerOptions:l}=n,c=rt(rt({isCustomElement:a,delimiters:o},r),l);n.render=bc(s,c)}}t.render=n.render||Xt}{Zn(t),zn();try{Kp(t)}finally{qn(),zi()}}}function pg(t){return t.attrsProxy||(t.attrsProxy=new Proxy(t.attrs,{get(e,i){return Ct(t,"get","$attrs"),e[i]}}))}function gg(t){const e=i=>{t.exposed=i||{}};return{get attrs(){return pg(t)},slots:t.slots,emit:t.emit,expose:e}}function hr(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(Sh(Rh(t.exposed)),{get(e,i){if(i in e)return e[i];if(i in cs)return cs[i](t)},has(e,i){return i in e||i in cs}}))}function yg(t,e=!0){return ne(t)?t.displayName||t.name:t.name||e&&t.__name}function bg(t){return ne(t)&&"__vccOpts"in t}const Oe=(t,e)=>fp(t,e,ws);function od(t,e,i){const n=arguments.length;return n===2?Te(e)&&!ee(e)?Da(e)?B(t,null,[e]):B(t,e):B(t,null,e):(n>3?i=Array.prototype.slice.call(arguments,2):n===3&&Da(i)&&(i=[i]),B(t,e,i))}const _g=Symbol.for("v-scx"),vg=()=>oi(_g),xg="3.3.8",wg="http://www.w3.org/2000/svg",Zi=typeof document<"u"?document:null,_c=Zi&&Zi.createElement("template"),Cg={insert:(t,e,i)=>{e.insertBefore(t,i||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,i,n)=>{const s=e?Zi.createElementNS(wg,t):Zi.createElement(t,i?{is:i}:void 0);return t==="select"&&n&&n.multiple!=null&&s.setAttribute("multiple",n.multiple),s},createText:t=>Zi.createTextNode(t),createComment:t=>Zi.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Zi.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,i,n,s,a){const r=i?i.previousSibling:e.lastChild;if(s&&(s===a||s.nextSibling))for(;e.insertBefore(s.cloneNode(!0),i),!(s===a||!(s=s.nextSibling)););else{_c.innerHTML=n?`${t}`:t;const o=_c.content;if(n){const l=o.firstChild;for(;l.firstChild;)o.appendChild(l.firstChild);o.removeChild(l)}e.insertBefore(o,i)}return[r?r.nextSibling:e.firstChild,i?i.previousSibling:e.lastChild]}},Ng=Symbol("_vtc");function Fg(t,e,i){const n=t[Ng];n&&(e=(e?[e,...n]:[...n]).join(" ")),e==null?t.removeAttribute("class"):i?t.setAttribute("class",e):t.className=e}const Eg=Symbol("_vod");function Mg(t,e,i){const n=t.style,s=Qe(i);if(i&&!s){if(e&&!Qe(e))for(const a in e)i[a]==null&&po(n,a,"");for(const a in i)po(n,a,i[a])}else{const a=n.display;s?e!==i&&(n.cssText=i):e&&t.removeAttribute("style"),Eg in t&&(n.display=a)}}const vc=/\s*!important$/;function po(t,e,i){if(ee(i))i.forEach(n=>po(t,e,n));else if(i==null&&(i=""),e.startsWith("--"))t.setProperty(e,i);else{const n=Tg(t,e);vc.test(i)?t.setProperty(Hn(n),i.replace(vc,""),"important"):t[n]=i}}const xc=["Webkit","Moz","ms"],Ar={};function Tg(t,e){const i=Ar[e];if(i)return i;let n=Qt(e);if(n!=="filter"&&n in t)return Ar[e]=n;n=tr(n);for(let s=0;sOr||(Dg.then(()=>Or=0),Or=Date.now());function Ag(t,e){const i=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=i.attached)return;Wt(Og(n,i.value),e,5,[n])};return i.value=t,i.attached=Pg(),i}function Og(t,e){if(ee(e)){const i=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{i.call(t),t._stopped=!0},e.map(n=>s=>!s._stopped&&n&&n(s))}else return e}const Fc=/^on[a-z]/,Gg=(t,e,i,n,s=!1,a,r,o,l)=>{e==="class"?Fg(t,n,s):e==="style"?Mg(t,i,n):Ja(e)?Xo(e)||Lg(t,e,i,n,r):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):Zg(t,e,n,s))?Ig(t,e,n,a,r,o,l):(e==="true-value"?t._trueValue=n:e==="false-value"&&(t._falseValue=n),Rg(t,e,n,s))};function Zg(t,e,i,n){return n?!!(e==="innerHTML"||e==="textContent"||e in t&&Fc.test(e)&&ne(i)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA"||Fc.test(e)&&Qe(i)?!1:e in t}const Pa=t=>{const e=t.props["onUpdate:modelValue"]||!1;return ee(e)?i=>ga(e,i):e};function Xg(t){t.target.composing=!0}function Ec(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const Tn=Symbol("_assign"),dr={created(t,{modifiers:{lazy:e,trim:i,number:n}},s){t[Tn]=Pa(s);const a=n||s.props&&s.props.type==="number";Xi(t,e?"change":"input",r=>{if(r.target.composing)return;let o=t.value;i&&(o=o.trim()),a&&(o=Ra(o)),t[Tn](o)}),i&&Xi(t,"change",()=>{t.value=t.value.trim()}),e||(Xi(t,"compositionstart",Xg),Xi(t,"compositionend",Ec),Xi(t,"change",Ec))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,modifiers:{lazy:i,trim:n,number:s}},a){if(t[Tn]=Pa(a),t.composing||document.activeElement===t&&t.type!=="range"&&(i||n&&t.value.trim()===e||(s||t.type==="number")&&Ra(t.value)===e))return;const r=e??"";t.value!==r&&(t.value=r)}},Aa={deep:!0,created(t,{value:e,modifiers:{number:i}},n){const s=Qa(e);Xi(t,"change",()=>{const a=Array.prototype.filter.call(t.options,r=>r.selected).map(r=>i?Ra(Oa(r)):Oa(r));t[Tn](t.multiple?s?new Set(a):a:a[0])}),t[Tn]=Pa(n)},mounted(t,{value:e}){Mc(t,e)},beforeUpdate(t,e,i){t[Tn]=Pa(i)},updated(t,{value:e}){Mc(t,e)}};function Mc(t,e){const i=t.multiple;if(!(i&&!ee(e)&&!Qa(e))){for(let n=0,s=t.options.length;n-1:a.selected=e.has(r);else if(ir(Oa(a),e)){t.selectedIndex!==n&&(t.selectedIndex=n);return}}!i&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function Oa(t){return"_value"in t?t._value:t.value}const Wg=rt({patchProp:Gg},Cg);let Tc;function Kg(){return Tc||(Tc=eg(Wg))}const Vg=(...t)=>{const e=Kg().createApp(...t),{mount:i}=e;return e.mount=n=>{const s=Ug(n);if(!s)return;const a=e._component;!ne(a)&&!a.render&&!a.template&&(a.template=s.innerHTML),s.innerHTML="";const r=i(s,!1,s instanceof SVGElement);return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),r},e};function Ug(t){return Qe(t)?document.querySelector(t):t}const We=(t,e)=>{const i=t.__vccOpts||t;for(const[n,s]of e)i[n]=s;return i},Bg={name:"CodeBlock",props:["lang"]};function Hg(t,e,i,n,s,a){return D(),K("pre",null,[C("code",{class:Ui(i.lang+" border-0 rounded-2 p-3")},[Hi(t.$slots,"default")],2)])}const il=We(Bg,[["render",Hg]]);const zg={name:"LibName"},qg=t=>(Qi("data-v-7ef10a1b"),t=t(),en(),t),jg=qg(()=>C("span",null,"ogc-client",-1)),Yg=[jg];function $g(t,e,i,n,s,a){return D(),K("div",null,Yg)}const Jg=We(zg,[["render",$g],["__scopeId","data-v-7ef10a1b"]]),Qg={name:"Docs",components:{CodeBlock:il,LibName:Jg},async mounted(){hljs.highlightAll()}},e0=C("h2",{class:"mb-4"},"Presentation",-1),t0=C("a",{href:"https://www.ogc.org/docs/is"},"OGC standards.",-1),i0=lg('

    Its purpose is to helps you interact with them in a user-friendly and consistent way.

    Its main features include:

    Usage

    ',4),n0=C("p",null,"Then, use it like so:",-1),s0=C("pre",null,`import { WfsEndpoint } from '@camptocamp/ogc-client'; new WfsEndpoint("https://my.server.org/ows") .isReady() .then( (endpoint) => console.log(endpoint.getFeatureTypes()) ) - `,-1),r0=C("p",null," Please refer to the API section for more details on how to use each functionality. ",-1),a0={class:"card text-bg-light mb-3"},o0=C("div",{class:"card-header"},"A note on text encoding",-1),l0={class:"card-body"},c0=C("p",{class:"card-text"},[Ee(" Even though "),C("strong",null,"UTF-8"),Ee(" is the most common text encoding in the web, some services might respond with other encodings such as "),C("strong",null,"UTF-16"),Ee(", "),C("strong",null,[C("a",{href:"https://en.wikipedia.org/wiki/ISO/IEC_8859-1"},"ISO-8859-1")]),Ee(", etc. ")],-1),u0={class:"card-text"},h0=C("a",{href:"https://github.com/camptocamp/ogc-client/issues/new"},"open an issue",-1),d0=C("h2",{class:"mt-5 mb-4"},"Why use it?",-1),m0=C("p",null," Many libraries are able to leverage OGC protocols for various specialized tasks, for instance downloading data or rendering maps. Often times though, the application code has the responsibility to specify the version to use, the coordinate system, the bounding box to query, etc. ",-1),f0=C("a",{href:"https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS"},"CORS",-1),p0=C("a",{href:"https://developer.mozilla.org/en-US/docs/Web/API/Cache"},"Cache API",-1),g0=C("ul",null,[C("li",null,[Ee(" No GML geometry parsing: the "),C("a",{href:"https://openlayers.org/en/latest/apidoc/module-ol_format_GML32-GML32.html"},"OpenLayers GML parser"),Ee(" offers extensive support of the GML format ")])],-1),y0=C("h2",{class:"mt-5 mb-4"},"Examples",-1),b0=C("h5",null,"Read a WMS layer extent",-1),_0=C("pre",null,`import { WmsEndpoint } from '@camptocamp/ogc-client'; + `,-1),a0=C("p",null," Please refer to the API section for more details on how to use each functionality. ",-1),r0={class:"card text-bg-light mb-3"},o0=C("div",{class:"card-header"},"A note on text encoding",-1),l0={class:"card-body"},c0=C("p",{class:"card-text"},[Ee(" Even though "),C("strong",null,"UTF-8"),Ee(" is the most common text encoding in the web, some services might respond with other encodings such as "),C("strong",null,"UTF-16"),Ee(", "),C("strong",null,[C("a",{href:"https://en.wikipedia.org/wiki/ISO/IEC_8859-1"},"ISO-8859-1")]),Ee(", etc. ")],-1),u0={class:"card-text"},h0=C("a",{href:"https://github.com/camptocamp/ogc-client/issues/new"},"open an issue",-1),d0=C("h2",{class:"mt-5 mb-4"},"Why use it?",-1),m0=C("p",null," Many libraries are able to leverage OGC protocols for various specialized tasks, for instance downloading data or rendering maps. Often times though, the application code has the responsibility to specify the version to use, the coordinate system, the bounding box to query, etc. ",-1),f0=C("a",{href:"https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS"},"CORS",-1),p0=C("a",{href:"https://developer.mozilla.org/en-US/docs/Web/API/Cache"},"Cache API",-1),g0=C("ul",null,[C("li",null,[Ee(" No GML geometry parsing: the "),C("a",{href:"https://openlayers.org/en/latest/apidoc/module-ol_format_GML32-GML32.html"},"OpenLayers GML parser"),Ee(" offers extensive support of the GML format ")])],-1),y0=C("h2",{class:"mt-5 mb-4"},"Examples",-1),b0=C("h5",null,"Read a WMS layer extent",-1),_0=C("pre",null,`import { WmsEndpoint } from '@camptocamp/ogc-client'; async function readExtent() { const endpoint = await new WmsEndpoint('https://my.server.org/ows').isReady(); @@ -101,51 +101,51 @@ async function addWmtsLayer() { }), }); openLayersMap.addLayer(layer); -}`,-1),E0=C("h2",{class:"mt-5 mb-4"},"API",-1);function M0(t,e,i,n,s,r){const a=Me("LibName"),o=Me("CodeBlock");return D(),K("div",null,[e0,C("p",null,[B(a),Ee(" is a pure Javascript library made for interacting with geospatial web services relying on standard protocols, namely "),t0]),i0,C("p",null,[Ee("First, install "),B(a),Ee(" in your project:")]),C("p",null,[B(o,{lang:"sh"},{default:Je(()=>[Ee("$ npm install --save @camptocamp/ogc-client")]),_:1})]),n0,C("p",null,[B(o,{lang:"js"},{default:Je(()=>[s0]),_:1})]),r0,C("div",a0,[o0,C("div",l0,[c0,C("p",u0,[B(a),Ee(" will attempt to decode the responses using the information at its disposal, and in most case decoding should succeed. It may happen though that some unrecognized characters will remain; please "),h0,Ee(" if that is the case! ")])])]),d0,m0,C("p",null,[B(a),Ee(" intends to assist applications in discovering OGC services and what they offer, without having to manually write code for parsing GetCapabilities documents for example. ")]),C("p",null,[Ee(" When an network error is encountered, "),B(a),Ee(" will do an additional check to determine whether this is due to "),f0,Ee(" limitations. This will help the application code in giving an appropriate feedback to the user, i.e. that the targeted resource is indeed reachable but does not allow cross-origin usage. ")]),C("p",null,[B(a),Ee(" also keeps a cache of all operations using the "),p0,Ee(", thus offering almost limitless storage while also purging expired cache entries regularly. By default, all cache entries are kept for one hour. ")]),C("p",null,[Ee("What "),B(a),Ee(" currently does not do:")]),g0,y0,b0,C("p",null,[B(o,{lang:"js"},{default:Je(()=>[_0]),_:1})]),v0,C("p",null,[B(o,{lang:"js"},{default:Je(()=>[x0]),_:1})]),w0,C("p",null,[B(o,{lang:"js"},{default:Je(()=>[C0]),_:1})]),N0,C("p",null,[B(o,{lang:"js"},{default:Je(()=>[F0]),_:1})]),E0])}const ld=We(Qg,[["render",M0]]);const T0={name:"LibLogo"},R0=t=>(Qi("data-v-1cf83fa1"),t=t(),en(),t),I0=R0(()=>C("span",null,"ogc-client",-1)),k0=[I0];function L0(t,e,i,n,s,r){return D(),K("div",null,k0)}const S0=We(T0,[["render",L0],["__scopeId","data-v-1cf83fa1"]]);const D0={name:"InfoList",props:{info:Object},computed:{propList(){return Object.keys(this.info).map(t=>({title:`${t.substring(0,1).toUpperCase()}${t.substring(1)}`,description:this.info[t]instanceof Object?this.info[t]:`${this.info[t]}`}))}}},P0=t=>(Qi("data-v-b2217494"),t=t(),en(),t),A0={class:"small"},O0={class:"d-flex flex-row",style:{gap:"0.5rem"}},G0=P0(()=>C("div",{class:"flex-grow-1",style:{"border-top":"2px solid #e0e0e0","margin-top":"0.7em","min-width":"6px"}},null,-1)),Z0={key:0};function X0(t,e,i,n,s,r){const a=Me("InfoList",!0);return D(),K("dl",A0,[(D(!0),K(ke,null,Tt(r.propList,o=>(D(),K(ke,null,[C("dt",O0,[C("span",null,Ge(o.title),1),G0]),C("dd",null,[typeof o.description=="string"?(D(),K("span",Z0,Ge(o.description),1)):(D(),wt(a,{key:1,info:o.description},null,8,["info"]))])],64))),256))])}const tn=We(D0,[["render",X0],["__scopeId","data-v-b2217494"]]),W0={name:"TreeItem",props:["item"],computed:{hasChildren(){return this.item instanceof Object&&"children"in this.item},children(){return this.item.children}}},K0={key:0,style:{"margin-left":"1rem"}},V0=C("div",{class:"spacer-s"},null,-1);function U0(t,e,i,n,s,r){const a=Me("TreeItem",!0);return D(),K("div",null,[Hi(t.$slots,"default",{item:i.item},()=>[Ee(" tree item ")]),r.hasChildren?(D(),K("div",K0,[(D(!0),K(ke,null,Tt(r.children,o=>(D(),K("div",null,[V0,B(a,{item:o},{default:Je(({item:l})=>[Hi(t.$slots,"default",{item:l})]),_:2},1032,["item"])]))),256))])):De("",!0)])}const B0=We(W0,[["render",U0]]),H0={name:"ItemsTree",components:{TreeItem:B0},props:{items:Array},mounted(){}},z0={class:"bg-dark small text-white p-2 rounded-1"};function q0(t,e,i,n,s,r){const a=Me("TreeItem");return D(),K("div",z0,[(D(!0),K(ke,null,Tt(i.items,o=>(D(),K("div",null,[B(a,{item:o},{default:Je(({item:l})=>[Hi(t.$slots,"default",{item:l})]),_:2},1032,["item"])]))),256))])}const ma=We(H0,[["render",q0]]),j0={name:"WmsLayerInfo",components:{InfoList:tn},props:{layer:Object,endpointUrl:String},data:()=>({selectedStyle:"",selectedCrs:""}),watch:{layer:{immediate:!0,handler(t){this.selectedStyle=t.styles.length>0?t.styles[0].name:"",this.selectedCrs=t.availableCrs[0]}}},computed:{layerInfo(){return{name:this.layer.name,...this.layer.abstract&&{abstract:this.layer.abstract},...this.layer.attribution&&this.layer.attribution.title&&{attribution:this.layer.attribution.title}}},fullMapSrc(){if(!(this.selectedCrs in this.layer.boundingBoxes))return"";const t=this.layer.boundingBoxes[this.selectedCrs],e=(t[2]-t[0])/(t[3]-t[1]),i=500,n=Math.round(e>1?i:i*e),s=Math.round(n/e),r=new URL(this.endpointUrl);return r.searchParams.set("SERVICE","WMS"),r.searchParams.set("REQUEST","GetMap"),r.searchParams.set("LAYERS",this.layer.name),r.searchParams.set("STYLES",this.selectedStyle),r.searchParams.set("WIDTH",n.toString()),r.searchParams.set("HEIGHT",s.toString()),r.searchParams.set("FORMAT","image/png"),r.searchParams.set("CRS",this.selectedCrs),r.searchParams.set("BBOX",t.join(",")),r.toString()}}},Y0={class:"d-flex flex-row justify-content-between"},$0=["value"],J0=["src"];function Q0(t,e,i,n,s,r){const a=Me("InfoList");return D(),K("div",null,[C("p",null,Ge(i.layer.title),1),B(a,{info:r.layerInfo},null,8,["info"]),C("div",Y0,[C("label",null,[Ee(" Selected style:  "),Ei(C("select",{"onUpdate:modelValue":e[0]||(e[0]=o=>t.selectedStyle=o),class:"form-select d-inline-block w-auto"},[(D(!0),K(ke,null,Tt(i.layer.styles,o=>(D(),K("option",{value:o.name},Ge(o.title||o.name),9,$0))),256))],512),[[Ar,t.selectedStyle]])]),C("label",null,[Ee(" Selected CRS:  "),Ei(C("select",{"onUpdate:modelValue":e[1]||(e[1]=o=>t.selectedCrs=o),class:"form-select d-inline-block w-auto"},[(D(!0),K(ke,null,Tt(i.layer.availableCrs,o=>(D(),K("option",null,Ge(o),1))),256))],512),[[Ar,t.selectedCrs]])])]),C("img",{src:r.fullMapSrc,alt:"layer preview"},null,8,J0)])}const ey=We(j0,[["render",Q0]]);let ty=0;function iy(){return ty++}function fa(t,e,i){return new Promise((n,s)=>{const r=iy(),a={requestId:r,taskName:t,params:i};e===null?globalThis.dispatchEvent(new CustomEvent("ogc-client.request",{detail:a})):e.postMessage(a);const o=u=>{u.requestId===r&&(e===null?globalThis.removeEventListener("message",l):e.removeEventListener("message",c),"error"in u?s(u.error):n(u.response))},l=u=>o(u.detail),c=u=>o(u.data);e===null?globalThis.addEventListener("ogc-client.response",l):e.addEventListener("message",c)})}function ny(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}/*! @rgrove/parse-xml v4.1.0 | ISC License | Copyright Ryan Grove */var nl=Object.defineProperty,sy=Object.getOwnPropertyDescriptor,ry=Object.getOwnPropertyNames,ay=Object.prototype.hasOwnProperty,oy=(t,e)=>{for(var i in e)nl(t,i,{get:e[i],enumerable:!0})},ly=(t,e,i,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of ry(e))!ay.call(t,s)&&s!==i&&nl(t,s,{get:()=>e[s],enumerable:!(n=sy(e,s))||n.enumerable});return t},cy=t=>ly(nl({},"__esModule",{value:!0}),t),cd={};oy(cd,{XmlCdata:()=>md,XmlComment:()=>fd,XmlDeclaration:()=>pd,XmlDocument:()=>gd,XmlDocumentType:()=>yd,XmlElement:()=>pa,XmlError:()=>bd,XmlNode:()=>de,XmlProcessingInstruction:()=>go,XmlText:()=>rl,parseXml:()=>xy});var uy=cy(cd),Di="",hy=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,dy=class{constructor(t){if(this.k=this.q(t,!0),this.d=0,this.length=t.length,this.n=this.k!==this.length,this.m=t,this.n){let e=[];for(let i=0,n=0;n65535?2:1;this.y=e}}get z(){return this.d>=this.k}q(t,e=this.n){return e?t.replace(hy,"_").length:t.length}g(t=1){this.d=Math.min(this.k,this.d+t)}i(t=this.d){var e;return this.n?(e=this.y[t])!=null?e:1/0:t}F(t=1){let e=this.h(t);return this.g(t),e}G(t){if(!t.sticky)throw new Error('`regex` must have a sticky flag ("y")');t.lastIndex=this.i();let e=t.exec(this.m);if(e===null||e.length===0)return Di;let i=e[0];return this.g(this.q(i)),i}v(t){let e,i=Di;for(;(e=this.h())&&t(e);)i+=e,this.g();return i}Q(t){if(this.b(t))return t;if(this.n){let{length:e}=t,i=this.q(t);if(i!==e&&t===this.h(i))return this.g(i),t}return Di}b(t){let{length:e}=t;return this.h(e)===t?(this.g(e),t):Di}A(t){let e=this.m.slice(this.i()),i=e.search(t);if(i<=0)return Di;let n=e.slice(0,i);return this.g(this.q(n)),n}t(t){let{m:e}=this,i=this.i(),n=e.indexOf(t,i);if(n<=0)return Di;let s=e.slice(i,n);return this.g(this.q(s)),s}h(t=1){let{d:e,n:i,m:n}=this;return i?e>=this.k?Di:n.slice(this.i(e),this.i(e+t)):n.slice(e,e+t)}o(t=0){this.d=t>=0?Math.min(this.k,t):Math.max(0,this.d+t)}},my=/[^"&<]+/y,fy=/[^'&<]+/y,py=/\r\n|[\n\r\t]/g,gy=/<|&|]]>/,yy=Object.freeze(Object.assign(Object.create(null),{amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}));function ud(t){let e=sl(t);return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57||e===45||e===46||e===183||e>=768&&e<=879||e>=8255&&e<=8256||hd(t,e)}function hd(t,e=sl(t)){return e>=97&&e<=122||e>=65&&e<=90||e===58||e===95||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function by(t){return t==="#"||ud(t)}function _y(t){let e=sl(t);return e===32||e===9||e===10||e===13}function Rc(t){return t===9||t===10||t===13||t>=32&&t<=55295||t>=57344&&t<=65533||t>=65536&&t<=1114111}function sl(t){return t.codePointAt(0)||-1}var dd=class{constructor(){this.parent=null,this.start=-1,this.end=-1}get document(){var t,e;return(e=(t=this.parent)==null?void 0:t.document)!=null?e:null}get isRootNode(){return this.parent!==null&&this.parent===this.document&&this.type===dd.TYPE_ELEMENT}get preserveWhitespace(){var t;return!!((t=this.parent)!=null&&t.preserveWhitespace)}get type(){return""}toJSON(){let t={type:this.type};return this.isRootNode&&(t.isRootNode=!0),this.preserveWhitespace&&(t.preserveWhitespace=!0),this.start!==-1&&(t.start=this.start,t.end=this.end),t}},de=dd;de.TYPE_CDATA="cdata";de.TYPE_COMMENT="comment";de.TYPE_DOCUMENT="document";de.TYPE_DOCUMENT_TYPE="doctype";de.TYPE_ELEMENT="element";de.TYPE_PROCESSING_INSTRUCTION="pi";de.TYPE_TEXT="text";de.TYPE_XML_DECLARATION="xmldecl";var rl=class extends de{constructor(t=""){super(),this.text=t}get type(){return de.TYPE_TEXT}toJSON(){return Object.assign(de.prototype.toJSON.call(this),{text:this.text})}},md=class extends rl{get type(){return de.TYPE_CDATA}},fd=class extends de{constructor(t=""){super(),this.content=t}get type(){return de.TYPE_COMMENT}toJSON(){return Object.assign(de.prototype.toJSON.call(this),{content:this.content})}},pd=class extends de{constructor(t,e,i){super(),this.version=t,this.encoding=e??null,this.standalone=i??null}get type(){return de.TYPE_XML_DECLARATION}toJSON(){let t=de.prototype.toJSON.call(this);t.version=this.version;for(let e of["encoding","standalone"])this[e]!==null&&(t[e]=this[e]);return t}},pa=class extends de{constructor(t,e=Object.create(null),i=[]){super(),this.name=t,this.attributes=e,this.children=i}get isEmpty(){return this.children.length===0}get preserveWhitespace(){let t=this;for(;t instanceof pa;){if("xml:space"in t.attributes)return t.attributes["xml:space"]==="preserve";t=t.parent}return!1}get text(){return this.children.map(t=>"text"in t?t.text:"").join("")}get type(){return de.TYPE_ELEMENT}toJSON(){return Object.assign(de.prototype.toJSON.call(this),{name:this.name,attributes:this.attributes,children:this.children.map(t=>t.toJSON())})}},gd=class extends de{constructor(t=[]){super(),this.children=t}get document(){return this}get root(){for(let t of this.children)if(t instanceof pa)return t;return null}get text(){return this.children.map(t=>"text"in t?t.text:"").join("")}get type(){return de.TYPE_DOCUMENT}toJSON(){return Object.assign(de.prototype.toJSON.call(this),{children:this.children.map(t=>t.toJSON())})}},yd=class extends de{constructor(t,e,i,n){super(),this.name=t,this.publicId=e??null,this.systemId=i??null,this.internalSubset=n??null}get type(){return de.TYPE_DOCUMENT_TYPE}toJSON(){let t=de.prototype.toJSON.call(this);t.name=this.name;for(let e of["publicId","systemId","internalSubset"])this[e]!==null&&(t[e]=this[e]);return t}},bd=class extends Error{constructor(t,e,i){let n=1,s="",r=1;for(let l=0;l50&&(n<40?s=s.slice(0,50):(o=n-20,s=s.slice(o,n+30))),super(`${t} (line ${r}, column ${n}) +}`,-1),E0=C("h2",{class:"mt-5 mb-4"},"API",-1);function M0(t,e,i,n,s,a){const r=Me("LibName"),o=Me("CodeBlock");return D(),K("div",null,[e0,C("p",null,[B(r),Ee(" is a pure Javascript library made for interacting with geospatial web services relying on standard protocols, namely "),t0]),i0,C("p",null,[Ee("First, install "),B(r),Ee(" in your project:")]),C("p",null,[B(o,{lang:"sh"},{default:Je(()=>[Ee("$ npm install --save @camptocamp/ogc-client")]),_:1})]),n0,C("p",null,[B(o,{lang:"js"},{default:Je(()=>[s0]),_:1})]),a0,C("div",r0,[o0,C("div",l0,[c0,C("p",u0,[B(r),Ee(" will attempt to decode the responses using the information at its disposal, and in most case decoding should succeed. It may happen though that some unrecognized characters will remain; please "),h0,Ee(" if that is the case! ")])])]),d0,m0,C("p",null,[B(r),Ee(" intends to assist applications in discovering OGC services and what they offer, without having to manually write code for parsing GetCapabilities documents for example. ")]),C("p",null,[Ee(" When an network error is encountered, "),B(r),Ee(" will do an additional check to determine whether this is due to "),f0,Ee(" limitations. This will help the application code in giving an appropriate feedback to the user, i.e. that the targeted resource is indeed reachable but does not allow cross-origin usage. ")]),C("p",null,[B(r),Ee(" also keeps a cache of all operations using the "),p0,Ee(", thus offering almost limitless storage while also purging expired cache entries regularly. By default, all cache entries are kept for one hour. ")]),C("p",null,[Ee("What "),B(r),Ee(" currently does not do:")]),g0,y0,b0,C("p",null,[B(o,{lang:"js"},{default:Je(()=>[_0]),_:1})]),v0,C("p",null,[B(o,{lang:"js"},{default:Je(()=>[x0]),_:1})]),w0,C("p",null,[B(o,{lang:"js"},{default:Je(()=>[C0]),_:1})]),N0,C("p",null,[B(o,{lang:"js"},{default:Je(()=>[F0]),_:1})]),E0])}const ld=We(Qg,[["render",M0]]);const T0={name:"LibLogo"},R0=t=>(Qi("data-v-1cf83fa1"),t=t(),en(),t),I0=R0(()=>C("span",null,"ogc-client",-1)),k0=[I0];function L0(t,e,i,n,s,a){return D(),K("div",null,k0)}const S0=We(T0,[["render",L0],["__scopeId","data-v-1cf83fa1"]]);const D0={name:"InfoList",props:{info:Object},computed:{propList(){return Object.keys(this.info).map(t=>({title:`${t.substring(0,1).toUpperCase()}${t.substring(1)}`,description:this.info[t]instanceof Object?this.info[t]:`${this.info[t]}`}))}}},P0=t=>(Qi("data-v-b2217494"),t=t(),en(),t),A0={class:"small"},O0={class:"d-flex flex-row",style:{gap:"0.5rem"}},G0=P0(()=>C("div",{class:"flex-grow-1",style:{"border-top":"2px solid #e0e0e0","margin-top":"0.7em","min-width":"6px"}},null,-1)),Z0={key:0};function X0(t,e,i,n,s,a){const r=Me("InfoList",!0);return D(),K("dl",A0,[(D(!0),K(ke,null,Tt(a.propList,o=>(D(),K(ke,null,[C("dt",O0,[C("span",null,Ge(o.title),1),G0]),C("dd",null,[typeof o.description=="string"?(D(),K("span",Z0,Ge(o.description),1)):(D(),wt(r,{key:1,info:o.description},null,8,["info"]))])],64))),256))])}const tn=We(D0,[["render",X0],["__scopeId","data-v-b2217494"]]),W0={name:"TreeItem",props:["item"],computed:{hasChildren(){return this.item instanceof Object&&"children"in this.item},children(){return this.item.children}}},K0={key:0,style:{"margin-left":"1rem"}},V0=C("div",{class:"spacer-s"},null,-1);function U0(t,e,i,n,s,a){const r=Me("TreeItem",!0);return D(),K("div",null,[Hi(t.$slots,"default",{item:i.item},()=>[Ee(" tree item ")]),a.hasChildren?(D(),K("div",K0,[(D(!0),K(ke,null,Tt(a.children,o=>(D(),K("div",null,[V0,B(r,{item:o},{default:Je(({item:l})=>[Hi(t.$slots,"default",{item:l})]),_:2},1032,["item"])]))),256))])):De("",!0)])}const B0=We(W0,[["render",U0]]),H0={name:"ItemsTree",components:{TreeItem:B0},props:{items:Array},mounted(){}},z0={class:"bg-dark small text-white p-2 rounded-1"};function q0(t,e,i,n,s,a){const r=Me("TreeItem");return D(),K("div",z0,[(D(!0),K(ke,null,Tt(i.items,o=>(D(),K("div",null,[B(r,{item:o},{default:Je(({item:l})=>[Hi(t.$slots,"default",{item:l})]),_:2},1032,["item"])]))),256))])}const mr=We(H0,[["render",q0]]),j0={name:"WmsLayerInfo",components:{InfoList:tn},props:{layer:Object,endpointUrl:String},data:()=>({selectedStyle:"",selectedCrs:""}),watch:{layer:{immediate:!0,handler(t){this.selectedStyle=t.styles.length>0?t.styles[0].name:"",this.selectedCrs=t.availableCrs[0]}}},computed:{layerInfo(){return{name:this.layer.name,...this.layer.abstract&&{abstract:this.layer.abstract},...this.layer.attribution&&this.layer.attribution.title&&{attribution:this.layer.attribution.title}}},fullMapSrc(){if(!(this.selectedCrs in this.layer.boundingBoxes))return"";const t=this.layer.boundingBoxes[this.selectedCrs],e=(t[2]-t[0])/(t[3]-t[1]),i=500,n=Math.round(e>1?i:i*e),s=Math.round(n/e),a=new URL(this.endpointUrl);return a.searchParams.set("SERVICE","WMS"),a.searchParams.set("REQUEST","GetMap"),a.searchParams.set("LAYERS",this.layer.name),a.searchParams.set("STYLES",this.selectedStyle),a.searchParams.set("WIDTH",n.toString()),a.searchParams.set("HEIGHT",s.toString()),a.searchParams.set("FORMAT","image/png"),a.searchParams.set("CRS",this.selectedCrs),a.searchParams.set("BBOX",t.join(",")),a.toString()}}},Y0={class:"d-flex flex-row justify-content-between"},$0=["value"],J0=["src"];function Q0(t,e,i,n,s,a){const r=Me("InfoList");return D(),K("div",null,[C("p",null,Ge(i.layer.title),1),B(r,{info:a.layerInfo},null,8,["info"]),C("div",Y0,[C("label",null,[Ee(" Selected style:  "),Ei(C("select",{"onUpdate:modelValue":e[0]||(e[0]=o=>t.selectedStyle=o),class:"form-select d-inline-block w-auto"},[(D(!0),K(ke,null,Tt(i.layer.styles,o=>(D(),K("option",{value:o.name},Ge(o.title||o.name),9,$0))),256))],512),[[Aa,t.selectedStyle]])]),C("label",null,[Ee(" Selected CRS:  "),Ei(C("select",{"onUpdate:modelValue":e[1]||(e[1]=o=>t.selectedCrs=o),class:"form-select d-inline-block w-auto"},[(D(!0),K(ke,null,Tt(i.layer.availableCrs,o=>(D(),K("option",null,Ge(o),1))),256))],512),[[Aa,t.selectedCrs]])])]),C("img",{src:a.fullMapSrc,alt:"layer preview"},null,8,J0)])}const ey=We(j0,[["render",Q0]]);let ty=0;function iy(){return ty++}function fr(t,e,i){return new Promise((n,s)=>{const a=iy(),r={requestId:a,taskName:t,params:i};e===null?globalThis.dispatchEvent(new CustomEvent("ogc-client.request",{detail:r})):e.postMessage(r);const o=u=>{u.requestId===a&&(e===null?globalThis.removeEventListener("message",l):e.removeEventListener("message",c),"error"in u?s(u.error):n(u.response))},l=u=>o(u.detail),c=u=>o(u.data);e===null?globalThis.addEventListener("ogc-client.response",l):e.addEventListener("message",c)})}function ny(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}/*! @rgrove/parse-xml v4.1.0 | ISC License | Copyright Ryan Grove */var nl=Object.defineProperty,sy=Object.getOwnPropertyDescriptor,ay=Object.getOwnPropertyNames,ry=Object.prototype.hasOwnProperty,oy=(t,e)=>{for(var i in e)nl(t,i,{get:e[i],enumerable:!0})},ly=(t,e,i,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of ay(e))!ry.call(t,s)&&s!==i&&nl(t,s,{get:()=>e[s],enumerable:!(n=sy(e,s))||n.enumerable});return t},cy=t=>ly(nl({},"__esModule",{value:!0}),t),cd={};oy(cd,{XmlCdata:()=>md,XmlComment:()=>fd,XmlDeclaration:()=>pd,XmlDocument:()=>gd,XmlDocumentType:()=>yd,XmlElement:()=>pr,XmlError:()=>bd,XmlNode:()=>de,XmlProcessingInstruction:()=>go,XmlText:()=>al,parseXml:()=>xy});var uy=cy(cd),Di="",hy=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,dy=class{constructor(t){if(this.k=this.q(t,!0),this.d=0,this.length=t.length,this.n=this.k!==this.length,this.m=t,this.n){let e=[];for(let i=0,n=0;n65535?2:1;this.y=e}}get z(){return this.d>=this.k}q(t,e=this.n){return e?t.replace(hy,"_").length:t.length}g(t=1){this.d=Math.min(this.k,this.d+t)}i(t=this.d){var e;return this.n?(e=this.y[t])!=null?e:1/0:t}F(t=1){let e=this.h(t);return this.g(t),e}G(t){if(!t.sticky)throw new Error('`regex` must have a sticky flag ("y")');t.lastIndex=this.i();let e=t.exec(this.m);if(e===null||e.length===0)return Di;let i=e[0];return this.g(this.q(i)),i}v(t){let e,i=Di;for(;(e=this.h())&&t(e);)i+=e,this.g();return i}Q(t){if(this.b(t))return t;if(this.n){let{length:e}=t,i=this.q(t);if(i!==e&&t===this.h(i))return this.g(i),t}return Di}b(t){let{length:e}=t;return this.h(e)===t?(this.g(e),t):Di}A(t){let e=this.m.slice(this.i()),i=e.search(t);if(i<=0)return Di;let n=e.slice(0,i);return this.g(this.q(n)),n}t(t){let{m:e}=this,i=this.i(),n=e.indexOf(t,i);if(n<=0)return Di;let s=e.slice(i,n);return this.g(this.q(s)),s}h(t=1){let{d:e,n:i,m:n}=this;return i?e>=this.k?Di:n.slice(this.i(e),this.i(e+t)):n.slice(e,e+t)}o(t=0){this.d=t>=0?Math.min(this.k,t):Math.max(0,this.d+t)}},my=/[^"&<]+/y,fy=/[^'&<]+/y,py=/\r\n|[\n\r\t]/g,gy=/<|&|]]>/,yy=Object.freeze(Object.assign(Object.create(null),{amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}));function ud(t){let e=sl(t);return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57||e===45||e===46||e===183||e>=768&&e<=879||e>=8255&&e<=8256||hd(t,e)}function hd(t,e=sl(t)){return e>=97&&e<=122||e>=65&&e<=90||e===58||e===95||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function by(t){return t==="#"||ud(t)}function _y(t){let e=sl(t);return e===32||e===9||e===10||e===13}function Rc(t){return t===9||t===10||t===13||t>=32&&t<=55295||t>=57344&&t<=65533||t>=65536&&t<=1114111}function sl(t){return t.codePointAt(0)||-1}var dd=class{constructor(){this.parent=null,this.start=-1,this.end=-1}get document(){var t,e;return(e=(t=this.parent)==null?void 0:t.document)!=null?e:null}get isRootNode(){return this.parent!==null&&this.parent===this.document&&this.type===dd.TYPE_ELEMENT}get preserveWhitespace(){var t;return!!((t=this.parent)!=null&&t.preserveWhitespace)}get type(){return""}toJSON(){let t={type:this.type};return this.isRootNode&&(t.isRootNode=!0),this.preserveWhitespace&&(t.preserveWhitespace=!0),this.start!==-1&&(t.start=this.start,t.end=this.end),t}},de=dd;de.TYPE_CDATA="cdata";de.TYPE_COMMENT="comment";de.TYPE_DOCUMENT="document";de.TYPE_DOCUMENT_TYPE="doctype";de.TYPE_ELEMENT="element";de.TYPE_PROCESSING_INSTRUCTION="pi";de.TYPE_TEXT="text";de.TYPE_XML_DECLARATION="xmldecl";var al=class extends de{constructor(t=""){super(),this.text=t}get type(){return de.TYPE_TEXT}toJSON(){return Object.assign(de.prototype.toJSON.call(this),{text:this.text})}},md=class extends al{get type(){return de.TYPE_CDATA}},fd=class extends de{constructor(t=""){super(),this.content=t}get type(){return de.TYPE_COMMENT}toJSON(){return Object.assign(de.prototype.toJSON.call(this),{content:this.content})}},pd=class extends de{constructor(t,e,i){super(),this.version=t,this.encoding=e??null,this.standalone=i??null}get type(){return de.TYPE_XML_DECLARATION}toJSON(){let t=de.prototype.toJSON.call(this);t.version=this.version;for(let e of["encoding","standalone"])this[e]!==null&&(t[e]=this[e]);return t}},pr=class extends de{constructor(t,e=Object.create(null),i=[]){super(),this.name=t,this.attributes=e,this.children=i}get isEmpty(){return this.children.length===0}get preserveWhitespace(){let t=this;for(;t instanceof pr;){if("xml:space"in t.attributes)return t.attributes["xml:space"]==="preserve";t=t.parent}return!1}get text(){return this.children.map(t=>"text"in t?t.text:"").join("")}get type(){return de.TYPE_ELEMENT}toJSON(){return Object.assign(de.prototype.toJSON.call(this),{name:this.name,attributes:this.attributes,children:this.children.map(t=>t.toJSON())})}},gd=class extends de{constructor(t=[]){super(),this.children=t}get document(){return this}get root(){for(let t of this.children)if(t instanceof pr)return t;return null}get text(){return this.children.map(t=>"text"in t?t.text:"").join("")}get type(){return de.TYPE_DOCUMENT}toJSON(){return Object.assign(de.prototype.toJSON.call(this),{children:this.children.map(t=>t.toJSON())})}},yd=class extends de{constructor(t,e,i,n){super(),this.name=t,this.publicId=e??null,this.systemId=i??null,this.internalSubset=n??null}get type(){return de.TYPE_DOCUMENT_TYPE}toJSON(){let t=de.prototype.toJSON.call(this);t.name=this.name;for(let e of["publicId","systemId","internalSubset"])this[e]!==null&&(t[e]=this[e]);return t}},bd=class extends Error{constructor(t,e,i){let n=1,s="",a=1;for(let l=0;l50&&(n<40?s=s.slice(0,50):(o=n-20,s=s.slice(o,n+30))),super(`${t} (line ${a}, column ${n}) ${s} `+" ".repeat(n-o+1)+`^ -`),this.column=n,this.excerpt=s,this.line=r,this.name="XmlError",this.pos=e}},go=class extends de{constructor(t,e=""){super(),this.name=t,this.content=e}get type(){return de.TYPE_PROCESSING_INSTRUCTION}toJSON(){return Object.assign(de.prototype.toJSON.call(this),{name:this.name,content:this.content})}},Ga="",vy=class{constructor(e,i={}){let n=this.document=new gd,s=this.c=new dy(e);if(this.l=n,this.f=i,this.f.includeOffsets&&(n.start=0,n.end=e.length),s.b("\uFEFF"),this.H(),!this.B())throw this.a("Root element is missing or invalid");for(;this.w(););if(!s.z)throw this.a("Extra content at the end of the document")}j(e,i){return e.parent=this.l,this.f.includeOffsets&&(e.start=this.c.i(i),e.end=this.c.i()),this.l.children.push(e),!0}x(e,i){let{children:n}=this.l,{length:s}=n;if(e=tr(e),s>0){let r=n[s-1];if((r==null?void 0:r.type)===de.TYPE_TEXT){let a=r;return a.text+=e,this.f.includeOffsets&&(a.end=this.c.i()),!0}}return this.j(new rl(e),i)}I(){let e=Object.create(null);for(;this.e();){let i=this.r();if(!i)break;let n=this.u()&&this.J();if(n===!1)throw this.a("Attribute value expected");if(i in e)throw this.a(`Duplicate attribute: ${i}`);if(i==="xml:space"&&n!=="default"&&n!=="preserve")throw this.a('Value of the `xml:space` attribute must be "default" or "preserve"');e[i]=n}if(this.f.sortAttributes){let i=Object.keys(e).sort(),n=Object.create(null);for(let s=0;s");if(this.p(n),!e.b("]]>"))throw this.a("Unclosed CDATA section");return this.f.preserveCdata?this.j(new md(tr(n)),i):this.x(n,i)}L(){let{c:e}=this,i=e.d,n=e.A(gy);if(!n)return!1;if(this.p(n),e.h(3)==="]]>")throw this.a("Element content may not contain the CDATA section close delimiter `]]>`");return this.x(n,i)}D(){let{c:e}=this,i=e.d;if(!e.b(""))throw e.h(2)==="--"?this.a("The string `--` isn't allowed inside a comment"):this.a("Unclosed comment");return this.f.preserveComments?this.j(new fd(tr(n)),i):!0}M(){let e=this.c.d,i=this.C();return i?this.x(i,e):!1}N(){let{c:e}=this,i=e.d;if(!e.b("/),!e.b("]"))throw this.a("Unclosed internal subset");this.e()}if(!e.b(">"))throw this.a("Unclosed doctype declaration");return this.f.preserveDocumentType?this.j(new yd(n,s,r,a),i):!0}B(){let{c:e}=this,i=e.d;if(!e.b("<"))return!1;let n=this.r();if(!n)return e.o(i),!1;let s=this.I(),r=!!e.b("/>"),a=new pa(n,s);if(a.parent=this.l,!r){if(!e.b(">"))throw this.a(`Unclosed start tag for element \`${n}\``);this.l=a;do this.L();while(this.B()||this.M()||this.K()||this.E()||this.D());let o=e.d,l;if(!e.b(""))throw this.a(`Unclosed end tag for element ${n}`);this.l=a.parent}return this.j(a,i)}u(){return this.e(),this.c.b("=")?(this.e(),!0):!1}w(){return this.D()||this.E()||this.e()}r(){return hd(this.c.h())?this.c.v(ud):Ga}E(){let{c:e}=this,i=e.d;if(!e.b(""))return this.j(new go(n),i);throw this.a("Whitespace is required after a processing instruction name")}let s=e.t("?>");if(this.p(s),!e.b("?>"))throw this.a("Unterminated processing instruction");return this.j(new go(n,tr(s)),i)}H(){let{c:e}=this,i=e.d;for(this.P();this.w(););if(this.N())for(;this.w(););return i"))throw this.a("Invalid or unclosed XML declaration");return this.f.preserveXmlDeclaration?this.j(new pd(n,s||void 0,r||void 0),i):!0}a(e){let{c:i}=this;return new bd(e,i.d,i.m)}p(e){let{length:i}=e;for(let n=0;n65535&&(n+=1)}}};function tr(t){let e=0;for(;(e=t.indexOf("\r",e))!==-1;)t=t[e+1]===` +`),this.column=n,this.excerpt=s,this.line=a,this.name="XmlError",this.pos=e}},go=class extends de{constructor(t,e=""){super(),this.name=t,this.content=e}get type(){return de.TYPE_PROCESSING_INSTRUCTION}toJSON(){return Object.assign(de.prototype.toJSON.call(this),{name:this.name,content:this.content})}},Gr="",vy=class{constructor(e,i={}){let n=this.document=new gd,s=this.c=new dy(e);if(this.l=n,this.f=i,this.f.includeOffsets&&(n.start=0,n.end=e.length),s.b("\uFEFF"),this.H(),!this.B())throw this.a("Root element is missing or invalid");for(;this.w(););if(!s.z)throw this.a("Extra content at the end of the document")}j(e,i){return e.parent=this.l,this.f.includeOffsets&&(e.start=this.c.i(i),e.end=this.c.i()),this.l.children.push(e),!0}x(e,i){let{children:n}=this.l,{length:s}=n;if(e=ta(e),s>0){let a=n[s-1];if((a==null?void 0:a.type)===de.TYPE_TEXT){let r=a;return r.text+=e,this.f.includeOffsets&&(r.end=this.c.i()),!0}}return this.j(new al(e),i)}I(){let e=Object.create(null);for(;this.e();){let i=this.r();if(!i)break;let n=this.u()&&this.J();if(n===!1)throw this.a("Attribute value expected");if(i in e)throw this.a(`Duplicate attribute: ${i}`);if(i==="xml:space"&&n!=="default"&&n!=="preserve")throw this.a('Value of the `xml:space` attribute must be "default" or "preserve"');e[i]=n}if(this.f.sortAttributes){let i=Object.keys(e).sort(),n=Object.create(null);for(let s=0;s");if(this.p(n),!e.b("]]>"))throw this.a("Unclosed CDATA section");return this.f.preserveCdata?this.j(new md(ta(n)),i):this.x(n,i)}L(){let{c:e}=this,i=e.d,n=e.A(gy);if(!n)return!1;if(this.p(n),e.h(3)==="]]>")throw this.a("Element content may not contain the CDATA section close delimiter `]]>`");return this.x(n,i)}D(){let{c:e}=this,i=e.d;if(!e.b(""))throw e.h(2)==="--"?this.a("The string `--` isn't allowed inside a comment"):this.a("Unclosed comment");return this.f.preserveComments?this.j(new fd(ta(n)),i):!0}M(){let e=this.c.d,i=this.C();return i?this.x(i,e):!1}N(){let{c:e}=this,i=e.d;if(!e.b("/),!e.b("]"))throw this.a("Unclosed internal subset");this.e()}if(!e.b(">"))throw this.a("Unclosed doctype declaration");return this.f.preserveDocumentType?this.j(new yd(n,s,a,r),i):!0}B(){let{c:e}=this,i=e.d;if(!e.b("<"))return!1;let n=this.r();if(!n)return e.o(i),!1;let s=this.I(),a=!!e.b("/>"),r=new pr(n,s);if(r.parent=this.l,!a){if(!e.b(">"))throw this.a(`Unclosed start tag for element \`${n}\``);this.l=r;do this.L();while(this.B()||this.M()||this.K()||this.E()||this.D());let o=e.d,l;if(!e.b(""))throw this.a(`Unclosed end tag for element ${n}`);this.l=r.parent}return this.j(r,i)}u(){return this.e(),this.c.b("=")?(this.e(),!0):!1}w(){return this.D()||this.E()||this.e()}r(){return hd(this.c.h())?this.c.v(ud):Gr}E(){let{c:e}=this,i=e.d;if(!e.b(""))return this.j(new go(n),i);throw this.a("Whitespace is required after a processing instruction name")}let s=e.t("?>");if(this.p(s),!e.b("?>"))throw this.a("Unterminated processing instruction");return this.j(new go(n,ta(s)),i)}H(){let{c:e}=this,i=e.d;for(this.P();this.w(););if(this.N())for(;this.w(););return i"))throw this.a("Invalid or unclosed XML declaration");return this.f.preserveXmlDeclaration?this.j(new pd(n,s||void 0,a||void 0),i):!0}a(e){let{c:i}=this;return new bd(e,i.d,i.m)}p(e){let{length:i}=e;for(let n=0;n65535&&(n+=1)}}};function ta(t){let e=0;for(;(e=t.indexOf("\r",e))!==-1;)t=t[e+1]===` `?t.slice(0,e)+t.slice(e+1):t.slice(0,e)+` -`+t.slice(e+1);return t}function xy(t,e){return new vy(t,e).document}class wy extends Error{constructor(e){super(e)}}function Cy(t){let e=null;try{e=uy.parseXml(t)}catch(i){throw new wy(i.message)}return e}function Gr(t){const e=t.indexOf(":");return e>-1?t.substr(e+1):t}function Ic(t){return t.children[0]}function Ny(t){return t.name||""}function kc(t,e,i=!1){const n=Gr(e);function s(r,a){return Gr(Ny(a))===n&&r.push(a),i&&Array.isArray(a.children)?[...r,...a.children.reduce(s,[])]:r}return t&&Array.isArray(t.children)?t.children.reduce(s,[]):[]}function Pi(t,e){return t&&t.attributes[e]||""}class qi extends Error{constructor(e,i,n){super(e),this.message=e,this.httpStatus=i,this.isCrossOriginRelated=n}}const Lc=["utf-8","utf-16","iso-8859-1"],Sc="utf-8";function Fy(t){const e=/charset=([^;]+)/.exec(t);return e?e[1]:null}function Ey(t,e){const i=e?Fy(e):null,n=i?[i,...Lc]:Lc;for(const s of n)try{return new TextDecoder(s,{fatal:!0}).decode(t)}catch{}return console.warn(`[ogc-client] XML document encoding could not be determined, falling back to ${Sc}.`),new TextDecoder(Sc).decode(t)}const ir=new Map;let My={};function al(){return My}function Ty(t,e="GET"){const i=`${e}#${t}`;if(ir.has(i))return ir.get(i);const n=fetch(t,{...al(),method:e}).catch(s=>s).then(s=>(ir.delete(i),s));return ir.set(i,n),n.then(s=>{if(s instanceof Error)throw s;return s})}function Dc(t){return Ty(t).catch(()=>fetch(t,{...al(),method:"HEAD",mode:"no-cors"}).catch(e=>{throw new qi(`Fetching the document failed either due to network errors or unreachable host, error is: ${e.message}`,0,!1)}).then(()=>{throw new qi("The document could not be fetched due to CORS limitations",0,!0)})).then(async e=>{if(!e.ok){const s=await e.text();throw new qi(`Received an error with code ${e.status}: ${s}`,e.status,!1)}const i=await e.arrayBuffer(),n=e.headers.get("Content-Type");return Ey(i,n)}).then(e=>Cy(e))}function nn(t,e){const i=t.match(/(https?%3A%2F%2F[^/]+)$/);if(i){const o=i[1],l=nn(decodeURIComponent(o),e);return t.replace(o,encodeURIComponent(l))}const n=new URL(t),s=Object.keys(e),r=s.map(o=>o.toLowerCase()),a=[];for(const o of n.searchParams.keys())r.indexOf(o.toLowerCase())>-1&&a.push(o);return a.map(o=>n.searchParams.delete(o)),s.forEach(o=>n.searchParams.set(o,e[o]===!0?"":e[o])),n.toString()}const _d="KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2Z1bmN0aW9uIEModCxlLHIpe2NvbnN0IG49dHlwZW9mIFdvcmtlckdsb2JhbFNjb3BlPCJ1IixpPWFzeW5jIGE9PntpZihhLnRhc2tOYW1lPT09dCl7bGV0IGwsdTt0cnl7bD1hd2FpdCByKGEucGFyYW1zKX1jYXRjaChjKXt1PWN9Y29uc3QgcD17dGFza05hbWU6dCxyZXF1ZXN0SWQ6YS5yZXF1ZXN0SWQsLi4ubCYme3Jlc3BvbnNlOmx9LC4uLnUmJntl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ZXJzaW9uOlIoZSl9KSkpLEMoInF1ZXJ5V2ZzRmVhdHVyZVR5cGVEZXRhaWxzIixnbG9iYWxUaGlzLCh7dXJsOnQsc2VydmljZVZlcnNpb246ZSxmZWF0dXJlVHlwZUZ1bGw6cn0pPT57Y29uc3Qgbj1LdCh0LGUsci5uYW1lLHZvaWQgMCx2b2lkIDAsT2JqZWN0LmtleXMoci5wcm9wZXJ0aWVzKSk7cmV0dXJuIEIobikudGhlbihpPT4oe3Byb3BzOlZ0KHF0KGkscixlKSl9KSl9KSxDKCJ1cGRhdGVGZXRjaE9wdGlvbnMiLGdsb2JhbFRoaXMsKHtvcHRpb25zOnR9KT0+KEZ0KHQpLFByb21pc2UucmVzb2x2ZSh7fSkpKSxDKCJwYXJzZVdtdHNDYXBhYmlsaXRpZXMiLGdsb2JhbFRoaXMsKHt1cmw6dH0pPT5CKHQpLnRoZW4oZT0+KHtpbmZvOiR0KGUpLGxheWVyczpKdChlKSxtYXRyaXhTZXRzOll0KGUpfSkpKX0pKCk7Cg==",Pc=typeof window<"u"&&window.Blob&&new Blob([atob(_d)],{type:"text/javascript;charset=utf-8"});function Ry(){let t;try{if(t=Pc&&(window.URL||window.webkitURL).createObjectURL(Pc),!t)throw"";return new Worker(t)}catch{return new Worker("data:application/javascript;base64,"+_d)}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}let Za;function ga(){return Za||(Za=new Ry),Za}function Iy(t){return fa("parseWmsCapabilities",ga(),{url:t})}function ky(t){return fa("parseWfsCapabilities",ga(),{url:t})}function Ly(t,e,i){return fa("queryWfsFeatureTypeDetails",ga(),{url:t,serviceVersion:e,featureTypeFull:i})}function Sy(t){return fa("parseWmtsCapabilities",ga(),{url:t})}let Dy=1e3*60*60;function Py(){return Dy}let on;function ya(){return on!==void 0?on:"caches"in globalThis?(on=caches.open("ogc-client").catch(t=>(console.info("[ogc-client] Cache could not be accessed for the following reason:",t),null)),on):(on=Promise.resolve(null),on)}async function Ay(t,...e){const i=await ya();if(!i)return;const n="https://cache/"+e.join("/");await i.put(n,new Response(JSON.stringify(t),{headers:{"x-expiry":(Date.now()+Py()).toString(10)}}))}async function Oy(...t){const e=await ya();if(!e)return;const i="https://cache/"+t.join("/");return e.match(i).then(n=>!!n&&parseInt(n.headers.get("x-expiry"))>Date.now())}async function Gy(...t){const e=await ya();if(!e)return;const i="https://cache/"+t.join("/"),n=await e.match(i);return n?n.clone().json():null}const nr=new Map;async function hs(t,...e){if(await Zy(),await Oy(...e))return Gy(...e);const i=e.join("#");if(nr.has(i))return nr.get(i);const n=t();n instanceof Promise&&(n.then(()=>nr.delete(i)),nr.set(i,n));const s=await n;return await Ay(s,...e),s}async function Zy(){const t=await ya();if(!t)return;const e=await t.keys();for(const i of e){const n=await t.match(i);parseInt(n.headers.get("x-expiry"))<=Date.now()&&await t.delete(i)}}let Xy=class{constructor(e){const i=nn(e,{SERVICE:"WMS",REQUEST:"GetCapabilities"});this._capabilitiesPromise=hs(()=>Iy(i),"WMS","CAPABILITIES",i).then(({info:n,layers:s,version:r})=>{this._info=n,this._layers=s,this._version=r})}isReady(){return this._capabilitiesPromise.then(()=>this)}getServiceInfo(){return this._info}getLayers(){function e(i){return{title:i.title,name:i.name,abstract:i.abstract,..."children"in i&&{children:i.children.map(e)}}}return this._layers.map(e)}getLayerByName(e){let i=null;function n(s){if(i===null){if(s.name===e){i=s;return}"children"in s&&s.children.map(n)}}return this._layers.map(n),i}getSingleLayerName(){if(!this._layers)return null;const e=[];function i(n){n.name&&e.push(n),"children"in n&&n.children.map(i)}return this._layers.map(i),e.length===1?e[0].name:null}getVersion(){return this._version}};const Wy={name:"WmsEndpoint",components:{WmsLayerInfo:ey,ItemsTree:ma,InfoList:tn},data:()=>({loading:!1,error:null,endpoint:null,url:"https://ahocevar.com/geoserver/wms",selectedLayer:null}),computed:{loaded(){return this.endpoint&&this.loading===!1&&this.error===null}},methods:{async createEndpoint(){this.error=null,this.loading=!0,this.endpoint=new Xy(this.url);try{await this.endpoint.isReady()}catch(t){this.error=t.message}this.loading=!1},handleLayerClick(t,e){this.selectedLayer=this.endpoint.getLayerByName(t.name),e.preventDefault()}}},Ky={class:"d-flex flex-row my-4"},Vy={key:0},Uy={key:1},By=["title"],Hy=["onClick"],zy={key:1},qy={key:2};function jy(t,e,i,n,s,r){const a=Me("InfoList"),o=Me("ItemsTree"),l=Me("WmsLayerInfo");return D(),K("div",null,[C("div",Ky,[Ei(C("input",{class:"form-control me-3",placeholder:"Enter a WMS service URL here","onUpdate:modelValue":e[0]||(e[0]=c=>t.url=c)},null,512),[[da,t.url]]),C("button",{type:"button",class:"btn btn-primary",onClick:e[1]||(e[1]=c=>r.createEndpoint())}," Analyze ")]),t.loading?(D(),K("div",Vy,"Loading...")):De("",!0),r.loaded?(D(),K("div",Uy,[B(a,{info:t.endpoint.getServiceInfo()},null,8,["info"]),B(o,{items:t.endpoint.getLayers(),style:{"min-height":"200px"}},{default:Je(({item:c})=>[C("div",{title:c.abstract},[c.name?(D(),K("a",{key:0,href:"",onClick:u=>r.handleLayerClick(c,u),class:"link-light"},Ge(c.title),9,Hy)):(D(),K("span",zy,Ge(c.title),1))],8,By)]),_:1},8,["items"]),t.selectedLayer?(D(),wt(l,{key:0,layer:t.selectedLayer,"endpoint-url":t.url},null,8,["layer","endpoint-url"])):De("",!0)])):De("",!0),t.error?(D(),K("div",qy,"Error: "+Ge(t.error),1)):De("",!0)])}const Yy=We(Wy,[["render",jy]]),$y={name:"WfsFeatureTypeInfo",components:{InfoList:tn},props:{featureType:Object,endpoint:Object},data:()=>({loadingValues:!1,featurePropsDetails:null}),computed:{featureTypeInfo(){return{..."title"in this.featureType&&{title:this.featureType.title},..."abstract"in this.featureType&&{abstract:this.featureType.abstract},CRS:[this.featureType.defaultCrs,...this.featureType.otherCrs].join(", "),..."objectCount"in this.featureType&&{"object count":this.featureType.objectCount},..."geometryName"in this.featureType&&{"geometry name":this.featureType.geometryName},..."geometryType"in this.featureType&&{"geometry type":this.featureType.geometryType}}},featureProperties(){return{...this.featureType.properties}},uniqueValues(){return this.featurePropsDetails===null?{}:Object.keys(this.featurePropsDetails).reduce((t,e)=>({...t,[e]:this.featurePropsDetails[e].uniqueValues.sort((i,n)=>n.count-i.count).filter((i,n)=>n<=8).map((i,n)=>n<8?`${i.value} (${i.count})`:"...").join(", ")}),{})}},methods:{async loadValues(){this.loadingValues=!0,this.featurePropsDetails=await this.endpoint.getFeatureTypePropDetails(this.featureType.name),this.loadingValues=!1}},watch:{featureType(){this.loadingValues=!1,this.featurePropsDetails=null}}},Jy=C("p",null,"Properties",-1),Qy={key:0},e1={key:1},t1={key:2},i1=C("p",null,"Unique values",-1);function n1(t,e,i,n,s,r){const a=Me("InfoList");return D(),K("div",null,[C("p",null,Ge(i.featureType.name),1),B(a,{info:r.featureTypeInfo},null,8,["info"]),Jy,B(a,{info:r.featureProperties},null,8,["info"]),t.featurePropsDetails===null&&!t.loadingValues?(D(),K("div",Qy,[C("button",{type:"button",class:"btn btn-primary",onClick:e[0]||(e[0]=o=>r.loadValues())}," Load unique values ")])):De("",!0),t.loadingValues?(D(),K("div",e1,"Loading unique values...")):De("",!0),t.featurePropsDetails!==null?(D(),K("div",t1,[i1,B(a,{info:r.uniqueValues},null,8,["info"])])):De("",!0)])}const s1=We($y,[["render",n1]]);function r1(t,e,i,n){const{name:s,title:r,abstract:a,defaultCrs:o,otherCrs:l,outputFormats:c,latLonBoundingBox:u}=t,h=n.startsWith("2.0")?"numberMatched":"numberOfFeatures",d=parseInt(Pi(Ic(i),h)),m=kc(Ic(e),"complexType",!0)[0],f=kc(m,"element",!0),p=f.filter(N=>Pi(N,"type").startsWith("xsd:")).reduce((N,w)=>({...N,[Pi(w,"name")]:a1(Pi(w,"type"))}),{}),y=f.filter(N=>Pi(N,"type").startsWith("gml:"))[0],_=y?Pi(y,"name"):void 0,v=y?o1(Pi(y,"type")):void 0;return{name:s,...r&&{title:r},...a&&{abstract:a},...u&&{boundingBox:u},...o&&{defaultCrs:o},...l&&{otherCrs:l},...c&&{outputFormats:c},properties:p,..._&&{geometryName:_},...v&&{geometryType:v},...!Number.isNaN(d)&&{objectCount:d}}}function a1(t){switch(t.indexOf(":")>-1?t.substr(t.indexOf(":")+1):t){case"string":return"string";case"boolean":return"boolean";case"float":case"double":case"decimal":return"float";case"long":case"byte":case"integer":case"int":case"positiveInteger":case"negativeInteger":case"nonPositiveInteger":case"nonNegativeInteger":case"short":case"unsignedLong":case"unsignedInt":case"unsignedShort":case"unsignedByte":return"integer";default:return"string"}}function o1(t){switch(t.indexOf(":")>-1?t.substr(t.indexOf(":")+1):t){case"PointPropertyType":return"point";case"MultiPointPropertyType":return"multipoint";case"CurvePropertyType":case"LineStringPropertyType":return"linestring";case"MultiCurvePropertyType":case"MultiLineStringPropertyType":return"linestring";case"PolygonPropertyType":case"SurfacePropertyType":return"polygon";case"MultiPolygonPropertyType":case"MultiSurfacePropertyType":return"multipolygon";default:return"unknown"}}function Ac(t,e,i,n,s,r,a,o,l,c){const u=e==="2.0.0"?"TYPENAMES":"TYPENAME",h=e==="2.0.0"?"COUNT":"MAXFEATURES",d={SERVICE:"WFS",REQUEST:"GetFeature",VERSION:e,[u]:i};if(n!==void 0&&(d.OUTPUTFORMAT=n),r!==void 0&&(d.PROPERTYNAME=r.join(",")),a?(d.RESULTTYPE="hits",d[h]="1"):s!==void 0&&(d[h]=s.toString(10)),o&&(d.SRSNAME=o),l){const m=l.join(",");d.BBOX=c?`${m},${c}`:m}return nn(t,d)}function l1(t,e,i){return nn(t,{SERVICE:"WFS",REQUEST:"DescribeFeatureType",VERSION:e,[e==="2.0.0"?"TYPENAMES":"TYPENAME"]:i})}let c1=class{constructor(e){this._capabilitiesUrl=nn(e,{SERVICE:"WFS",REQUEST:"GetCapabilities"}),this._capabilitiesPromise=hs(()=>ky(this._capabilitiesUrl),"WFS","CAPABILITIES",this._capabilitiesUrl).then(({info:i,featureTypes:n,version:s})=>{this._info=i,this._featureTypes=n,this._version=s})}isReady(){return this._capabilitiesPromise.then(()=>this)}getServiceInfo(){return this._info}getFeatureTypes(){return this._featureTypes.map(e=>({name:e.name,..."title"in e&&{title:e.title},..."abstract"in e&&{abstract:e.abstract},..."latLonBoundingBox"in e&&{boundingBox:e.latLonBoundingBox}}))}_getFeatureTypeByName(e){if(!this._featureTypes)return null;const i=Gr(e)!==e;return this._featureTypes.find(n=>i?n.name===e:Gr(n.name)===e)||null}getFeatureTypeSummary(e){const i=this._getFeatureTypeByName(e);return i?{name:i.name,..."title"in i&&{title:i.title},..."abstract"in i&&{abstract:i.abstract},..."latLonBoundingBox"in i&&{boundingBox:i.latLonBoundingBox},defaultCrs:i.defaultCrs,otherCrs:i.otherCrs,outputFormats:i.outputFormats}:null}getFeatureTypeFull(e){const i=this._getFeatureTypeByName(e);return i?hs(()=>{const n=l1(this._capabilitiesUrl,this._version,e),s=Ac(this._capabilitiesUrl,this._version,e,void 0,void 0,void 0,!0);return Promise.all([Dc(n),Dc(s)]).then(([r,a])=>r1(i,r,a,this._version))},"WFS","FEATURETYPEINFO",this._capabilitiesUrl,e):null}getSingleFeatureTypeName(){return this._featureTypes&&this._featureTypes.length===1?this._featureTypes[0].name:null}async getFeatureTypePropDetails(e){const i=await this.getFeatureTypeFull(e);return i===null?null:hs(()=>Ly(this._capabilitiesUrl,this._version,i).then(n=>n.props),"WFS","FEATURETYPEPROPDETAILS",this._capabilitiesUrl,e)}getVersion(){return this._version}_getJsonCompatibleOutputFormat(e){const i=this._getFeatureTypeByName(e);if(!i)throw new Error(`The following feature type was not found in the service: ${e}`);const n=i.outputFormats.filter(s=>s.toLowerCase().indexOf("json")>-1);return n.length?n[0]:null}supportsJson(e){return this._featureTypes?!!this._getJsonCompatibleOutputFormat(e):null}getFeatureUrl(e,i){if(!this._featureTypes)return null;const{maxFeatures:n,asJson:s,outputFormat:r,outputCrs:a,extent:o,extentCrs:l}=i||{},c=this._getFeatureTypeByName(e);if(!c)throw new Error(`The following feature type was not found in the service: ${e}`);let u=r;if(s){if(u=this._getJsonCompatibleOutputFormat(e)||void 0,!u)throw new Error(`The endpoint does not appear to support GeoJSON for the feature type ${c.name}`)}else r&&c.outputFormats.indexOf(r)===-1&&console.warn(`[ogc-client] The following output format type was not found in the feature type ${c.name}: ${r}`);return Ac(this._capabilitiesUrl,this._version,c.name,u,n,void 0,void 0,a,o,l)}};const u1={name:"WfsEndpoint",components:{WfsFeatureTypeInfo:s1,ItemsTree:ma,InfoList:tn},data:()=>({loading:!1,error:null,endpoint:null,url:"https://ahocevar.com/geoserver/wfs",selectedFeatureType:null}),computed:{loaded(){return this.endpoint&&this.loading===!1&&this.error===null}},methods:{async createEndpoint(){this.error=null,this.loading=!0,this.endpoint=new c1(this.url);try{await this.endpoint.isReady()}catch(t){this.error=t.message}this.loading=!1},async handleItemClick(t,e){e.preventDefault(),this.selectedFeatureType=await this.endpoint.getFeatureTypeFull(t.name)}}},h1={class:"d-flex flex-row my-4"},d1=C("div",{class:"spacer-s"},null,-1),m1={key:0},f1={key:1},p1=["title"],g1=["onClick"],y1={key:1},b1={key:2};function _1(t,e,i,n,s,r){const a=Me("InfoList"),o=Me("ItemsTree"),l=Me("WfsFeatureTypeInfo");return D(),K("div",null,[C("div",h1,[Ei(C("input",{class:"form-control me-3",placeholder:"Enter a WFS service URL here","onUpdate:modelValue":e[0]||(e[0]=c=>t.url=c)},null,512),[[da,t.url]]),d1,C("button",{type:"button",class:"btn btn-primary",onClick:e[1]||(e[1]=c=>r.createEndpoint())}," Analyze ")]),t.loading?(D(),K("div",m1,"Loading...")):De("",!0),r.loaded?(D(),K("div",f1,[B(a,{info:t.endpoint.getServiceInfo()},null,8,["info"]),B(o,{items:t.endpoint.getFeatureTypes(),style:{"min-height":"200px"}},{default:Je(({item:c})=>[C("div",{title:c.abstract},[c.name?(D(),K("a",{key:0,href:"",onClick:u=>r.handleItemClick(c,u),class:"link-light"},Ge(c.title),9,g1)):(D(),K("span",y1,Ge(c.title),1))],8,p1)]),_:1},8,["items"]),t.selectedFeatureType?(D(),wt(l,{key:0,"feature-type":t.selectedFeatureType,endpoint:t.endpoint},null,8,["feature-type","endpoint"])):De("",!0)])):De("",!0),t.error?(D(),K("div",b1,"Error: "+Ge(t.error),1)):De("",!0)])}const v1=We(u1,[["render",_1]]);const x1={name:"Async",props:{promise:Promise},data:()=>({pending:!0,resolved:null,rejected:null}),watch:{promise:{immediate:!0,handler(t){t instanceof Promise?(this.pending=!0,t.then(e=>{this.resolved=e,this.rejected=null,this.pending=!1},e=>{this.rejected=e,this.resolved=null,this.pending=!1})):(this.resolved=t,this.rejected=null,this.pending=!1)}}}},w1=t=>(Qi("data-v-b4911245"),t=t(),en(),t),C1={key:0},N1=w1(()=>C("span",null,"Loading...",-1)),F1={key:1},E1={class:"error"},M1={key:2};function T1(t,e,i,n,s,r){return t.pending?(D(),K("div",C1,[Hi(t.$slots,"pending",{},()=>[N1],!0)])):t.rejected?(D(),K("div",F1,[Hi(t.$slots,"catch",{error:t.rejected},()=>[C("span",E1,"Error: "+Ge(t.rejected),1)],!0)])):(D(),K("div",M1,[Hi(t.$slots,"then",{result:t.resolved},()=>[C("span",null,"Loaded: "+Ge(t.resolved),1)],!0)]))}const R1=We(x1,[["render",T1],["__scopeId","data-v-b4911245"]]),I1=["string","number","integer","date","point","linestring","polygon","geometry"];function Cs(t){const e=new URL(t,window.location.toString());e.searchParams.set("f","json");const i=al(),n="headers"in i?i.headers:{};return fetch(e.toString(),{...i,headers:{...n,Accept:"application/json"}}).then(s=>{if(!s.ok)throw new Error(`The document at ${e} could not be fetched.`);return s.json().catch(()=>{throw new Error(`The document at ${e} does not appear to be valid JSON.`)})})}function vd(t){return Cs(t).then(e=>{if(!Ns(e,["data","http://www.opengis.net/def/rel/ogc/1.0/data"])||!Ns(e,["conformance","http://www.opengis.net/def/rel/ogc/1.0/conformance"])){let i=wd(t);if(!i)throw new Error("Could not find a root JSON document containing both a link with rel='data' and a link with rel='conformance'.");return"collections"in e&&(i=`${i}/`),vd(i)}return e})}function xd(t){return Cs(t).then(e=>{if(Ns(e,["data","http://www.opengis.net/def/rel/ogc/1.0/data"]))return null;let i=wd(t);return Ns(e,["items"])?e:("collections"in e&&(i=`${i}/`),xd(i))})}function ds(t,e,i){var s;const n=(s=t.links)==null?void 0:s.filter(r=>Array.isArray(e)?e.indexOf(r.rel)>-1:r.rel===e);return n!=null&&n.length?new URL(n[0].href,i||window.location.toString()).toString():null}function Qn(t,e,i){const n=ds(t,e,i);return n?Cs(n):Promise.reject(new qi(`Could not find link with type: ${e}`))}function Ns(t,e){return!!ds(t,e)}function Oc(t,e){if(!Ns(t,e))throw new qi(`Could not find link with type: ${e}`)}function wd(t){const e=new URL(t,window.location.toString()),i=e.pathname.replace(/\/$/,"").split("/");return i.length<=2?null:(e.pathname=i.slice(0,-1).join("/"),e.toString())}function k1(t){try{Oc(t,["data","http://www.opengis.net/def/rel/ogc/1.0/data"]),Oc(t,["conformance","http://www.opengis.net/def/rel/ogc/1.0/conformance"])}catch(e){throw new qi(`The endpoint appears non-conforming, the following error was encountered: -${e.message}`)}return{title:t.title,description:t.description,attribution:t.attribution}}function L1(t){return t.conformsTo}function Xa(t=null){return e=>e.collections.filter(i=>t===null||i.itemType===t).map(i=>i.id)}function S1(t){return t.indexOf("http://www.opengis.net/spec/ogcapi-tiles-1/1.0/conf/core")>-1}function D1(t){return t.indexOf("http://www.opengis.net/spec/ogcapi-styles-1/0.0/conf/core")>-1}function P1([t,e]){return(["http://www.opengis.net/spec/ogcapi-records-1/1.0/conf/record-core","http://www.opengis.net/spec/ogcapi-records-1/1.0/conf/record-collection","http://www.opengis.net/spec/ogcapi-records-1/1.0/conf/record-api"].every(n=>e.indexOf(n)>-1)||e.indexOf("http://www.opengis.net/spec/ogcapi-records-1/1.0/conf/core")>-1)&&t.some(n=>n.itemType==="record")}function A1([t,e]){return e.indexOf("http://www.opengis.net/spec/ogcapi-features-1/1.0/conf/core")>-1&&t.some(i=>i.itemType==="feature")}function O1(t){const{links:e,...i}=t;return{formats:e.filter(s=>s.rel==="items").map(s=>s.type),...i}}function Gc(t){return"properties"in t&&typeof t.properties=="object"?Object.keys(t.properties).map(e=>{const i=t.properties[e];let n="string";if(typeof i.$ref=="string"){const s=i.$ref.toLowerCase();s.indexOf("point")>-1?n="point":s.indexOf("linestring")>-1?n="linestring":s.indexOf("polygon")>-1?n="polygon":s.indexOf("geometry")>-1&&(n="geometry")}else typeof i.type=="string"&&I1.indexOf(i.type.toLowerCase())>-1&&(n=i.type.toLowerCase());return{name:e,type:n,...typeof i.title=="string"&&{title:i.title}}}):Array.isArray(t)?t.map(e=>({name:e,type:"string"})):[]}let G1=class{constructor(e){this.baseUrl=e,this.root=vd(this.baseUrl).catch(i=>{throw new Error(`The endpoint appears non-conforming, the following error was encountered: -${i.message}`)}),this.conformance=this.root.then(i=>Qn(i,["conformance","http://www.opengis.net/def/rel/ogc/1.0/conformance"],this.baseUrl)).catch(()=>null),this.data=this.root.then(i=>Qn(i,["data","http://www.opengis.net/def/rel/ogc/1.0/data"],this.baseUrl)).then(async i=>{const n=await xd(this.baseUrl);return n!==null&&Array.isArray(i.collections)&&(i.collections=i.collections.filter(s=>s.id===n.id)),i}).catch(()=>null)}get info(){return this.root.then(k1)}get conformanceClasses(){return this.conformance.then(L1)}get allCollections(){return this.data.then(Xa())}get recordCollections(){return Promise.all([this.data,this.hasRecords]).then(([e,i])=>i?e:{collections:[]}).then(Xa("record"))}get featureCollections(){return Promise.all([this.data,this.hasFeatures]).then(([e,i])=>i?e:{collections:[]}).then(Xa("feature"))}get hasTiles(){return this.conformanceClasses.then(S1)}get hasStyles(){return this.conformanceClasses.then(D1)}get hasFeatures(){return Promise.all([this.data.then(e=>e.collections),this.conformanceClasses]).then(A1)}get hasRecords(){return Promise.all([this.data.then(e=>e.collections),this.conformanceClasses]).then(P1)}getCollectionDocument(e){return Promise.all([this.allCollections,this.data]).then(([i,n])=>{if(i.indexOf(e)===-1)throw new qi(`Collection not found: ${e}`);return n.collections.find(s=>s.id===e)}).then(i=>Qn(i,"self",this.baseUrl))}async getCollectionInfo(e){const i=await this.getCollectionDocument(e),n=O1(i),[s,r]=await Promise.all([Qn(i,["queryables","http://www.opengis.net/def/rel/ogc/1.0/queryables"],this.baseUrl).then(Gc).catch(()=>[]),Qn(i,["sortables","http://www.opengis.net/def/rel/ogc/1.0/sortables"],this.baseUrl).then(Gc).catch(()=>[])]);return{...n,queryables:s,sortables:r}}getCollectionItems(e,i=10,n=0,s=null,r=null,a=null,o=null){return this.getCollectionDocument(e).then(l=>{const c=new URL(ds(l,"items",this.baseUrl),window.location.toString());return c.searchParams.set("limit",i.toString()),c.searchParams.set("offset",n.toString()),s!==null&&c.searchParams.set("skipGeometry",s.toString()),r!==null&&c.searchParams.set("sortby",r.join(",").toString()),a!==null&&c.searchParams.set("bbox",a.join(",").toString()),o!==null&&c.searchParams.set("properties",o.join(",").toString()),c.toString()}).then(Cs).then(l=>l.features)}getCollectionItem(e,i){return this.getCollectionDocument(e).then(n=>{const s=new URL(ds(n,"items",this.baseUrl),window.location.toString());return s.pathname+=`/${i}`,s.toString()}).then(Cs)}getCollectionItemsUrl(e,i={}){return this.getCollectionDocument(e).then(n=>{const s=this.baseUrl||"",r=ds(n,"items",s),a=new URL(r),o=i.outputFormat||"json";return a.searchParams.set("f",o),i.query!==void 0&&(a.search+=(a.search?"&":"")+i.query),i.limit!==void 0&&a.searchParams.set("limit",i.limit.toString()),i.offset!==void 0&&a.searchParams.set("offset",i.offset.toString()),i.outputCrs!==void 0&&a.searchParams.set("crs",i.outputCrs),i.extent!==void 0&&i.extent.length===4&&a.searchParams.set("bbox",i.extent.join(",")),i.extentCrs!==void 0&&a.searchParams.set("bbox-crs",i.extentCrs),a.toString()}).catch(n=>{throw console.error("Error fetching collection items URL:",n),n})}};const Z1={name:"OgcApiEndpoint",components:{Async:R1,ItemsTree:ma,InfoList:tn},data:()=>({endpoint:null,endpointSummary:null,endpointCollections:null,url:"https://demo.ldproxy.net/zoomstack"}),computed:{loaded(){return this.endpoint&&this.loading===!1&&this.error===null}},methods:{createEndpoint(){this.endpoint=new G1(this.url),this.endpointSummary=Promise.all([this.endpoint.info,this.endpoint.hasTiles,this.endpoint.hasStyles,this.endpoint.hasRecords,this.endpoint.hasFeatures,this.endpoint.allCollections]).then(([t,e,i,n,s,r])=>({info:{...t,hasTiles:e,hasStyles:i,hasRecords:n,hasFeatures:s},collections:r}))}}},X1={class:"d-flex flex-row my-4"},W1=C("div",{class:"spacer-s"},null,-1);function K1(t,e,i,n,s,r){const a=Me("InfoList"),o=Me("ItemsTree"),l=Me("Async");return D(),K("div",null,[C("div",X1,[Ei(C("input",{class:"form-control me-3",placeholder:"Enter an OGC API endpoint URL here","onUpdate:modelValue":e[0]||(e[0]=c=>t.url=c)},null,512),[[da,t.url]]),W1,C("button",{type:"button",class:"btn btn-primary",onClick:e[1]||(e[1]=c=>r.createEndpoint())}," Analyze ")]),t.endpointSummary?(D(),wt(l,{key:0,promise:t.endpointSummary},{then:Je(({result:c})=>[B(a,{info:c.info},null,8,["info"]),B(o,{items:c.collections,style:{"min-height":"200px"}},{default:Je(({item:u})=>[C("span",null,Ge(u),1)]),_:2},1032,["items"])]),_:1},8,["promise"])):De("",!0)])}const V1=We(Z1,[["render",K1]]),U1="modulepreload",B1=function(t,e){return new URL(t,e).href},Zc={},H1=function(e,i,n){if(!i||i.length===0)return e();const s=document.getElementsByTagName("link");return Promise.all(i.map(r=>{if(r=B1(r,n),r in Zc)return;Zc[r]=!0;const a=r.endsWith(".css"),o=a?'[rel="stylesheet"]':"";if(!!n)for(let u=s.length-1;u>=0;u--){const h=s[u];if(h.href===r&&(!a||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${r}"]${o}`))return;const c=document.createElement("link");if(c.rel=a?"stylesheet":U1,a||(c.as="script",c.crossOrigin=""),c.href=r,document.head.appendChild(c),a)return new Promise((u,h)=>{c.addEventListener("load",u),c.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${r}`)))})})).then(()=>e()).catch(r=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=r,window.dispatchEvent(a),!a.defaultPrevented)throw r})};function z1(t,e,i,n,s,r,a,o,l){const c={layer:i,style:n,tilematrixset:s,Service:"WMTS",Request:"GetTile",Format:l,TileMatrix:r,TileCol:o.toString(),TileRow:a.toString()};if(e==="REST"){let u=t;for(const h in c)u=u.replace(new RegExp(`{${h}}`,"ig"),c[h]);return u}else return nn(t,c)}let q1=class{constructor(e){this._info=null,this._layers=null,this._matrixSets=null;const i=nn(e,{SERVICE:"WMTS",REQUEST:"GetCapabilities"});this._capabilitiesPromise=hs(()=>Sy(i),"WMTS","CAPABILITIES",i).then(({info:n,layers:s,matrixSets:r})=>{this._info=n,this._layers=s,this._matrixSets=r})}isReady(){return this._capabilitiesPromise.then(()=>this)}getServiceInfo(){return this._info}getLayers(){return this._layers}getMatrixSets(){return this._matrixSets}getMatrixSetByIdentifier(e){return this._matrixSets?this._matrixSets.find(i=>i.identifier===e)??null:null}getLayerByName(e){return this._layers?this._layers.find(i=>i.name===e)??null:null}getSingleLayerName(){return this._layers&&this._layers.length===1?this._layers[0].name:null}getLayerResourceLink(e,i){if(!this._layers)return null;const n=this.getLayerByName(e);let s=0;i&&(s=n.resourceLinks.findIndex(a=>a.format===i)||0);const r=n.resourceLinks[s];return i&&r.format!==i&&console.warn(`[ogc-client] Requested '${i}' format for the WMTS layer but it is not available in REST encoding, falling back to '${r.format}'`),r}getTileUrl(e,i,n,s,r,a,o){if(!this._layers)return null;const l=this.getLayerResourceLink(e,o);return z1(l.url,l.encoding,e,i,n,s,r,a,l.format)}getDefaultDimensions(e){if(!this._layers)return null;const i=this.getLayerByName(e);return i.dimensions?i.dimensions.reduce((n,s)=>({...n,[s.identifier]:s.defaultValue}),{}):{}}getOpenLayersTileGrid(e,i){if(!this._layers)return null;this.tileGridModule||(this.tileGridModule=H1(()=>import("./ol-tilegrid-9859603a.js"),[],import.meta.url).catch(a=>(console.warn(`[ogc-client] Cannot use getOpenLayersTileGrid, the 'ol' package is probably not available. -`,a),null)));const n=this.getLayerByName(e),s=n.matrixSets.find(a=>a.identifier===i)??n.matrixSets[0],r=this.getMatrixSetByIdentifier(s.identifier);return this.tileGridModule.then(({buildOpenLayersTileGrid:a})=>a(r,s.limits))}};class j1{constructor(e){this.propagationStopped,this.defaultPrevented,this.type=e,this.target=null}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.propagationStopped=!0}}const ki=j1,Fs={PROPERTYCHANGE:"propertychange"};class Y1{constructor(){this.disposed=!1}dispose(){this.disposed||(this.disposed=!0,this.disposeInternal())}disposeInternal(){}}const ol=Y1;function ll(t,e){return t>e?1:t0?s-1:s}return n-1}if(i>0){for(let s=1;s0||i&&a===0)})}function Zr(){return!0}function _a(){return!1}function Xr(){}function Q1(t){let e=!1,i,n,s;return function(){const r=Array.prototype.slice.call(arguments);return(!e||this!==s||!ba(r,n))&&(e=!0,s=this,n=r,i=t.apply(this,arguments)),i}}function va(t){for(const e in t)delete t[e]}function eb(t){let e;for(e in t)return!1;return!e}class tb extends ol{constructor(e){super(),this.eventTarget_=e,this.pendingRemovals_=null,this.dispatching_=null,this.listeners_=null}addEventListener(e,i){if(!e||!i)return;const n=this.listeners_||(this.listeners_={}),s=n[e]||(n[e]=[]);s.includes(i)||s.push(i)}dispatchEvent(e){const i=typeof e=="string",n=i?e:e.type,s=this.listeners_&&this.listeners_[n];if(!s)return;const r=i?new ki(e):e;r.target||(r.target=this.eventTarget_||this);const a=this.dispatching_||(this.dispatching_={}),o=this.pendingRemovals_||(this.pendingRemovals_={});n in a||(a[n]=0,o[n]=0),++a[n];let l;for(let c=0,u=s.length;c0:!1}removeEventListener(e,i){if(!this.listeners_)return;const n=this.listeners_[e];if(!n)return;const s=n.indexOf(i);s!==-1&&(this.pendingRemovals_&&e in this.pendingRemovals_?(n[s]=Xr,++this.pendingRemovals_[e]):(n.splice(s,1),n.length===0&&delete this.listeners_[e]))}}const ul=tb,le={CHANGE:"change",ERROR:"error",BLUR:"blur",CLEAR:"clear",CONTEXTMENU:"contextmenu",CLICK:"click",DBLCLICK:"dblclick",DRAGENTER:"dragenter",DRAGOVER:"dragover",DROP:"drop",FOCUS:"focus",KEYDOWN:"keydown",KEYPRESS:"keypress",LOAD:"load",RESIZE:"resize",TOUCHMOVE:"touchmove",WHEEL:"wheel"};function Ne(t,e,i,n,s){if(n&&n!==t&&(i=i.bind(n)),s){const a=i;i=function(){t.removeEventListener(e,i),a.apply(this,arguments)}}const r={target:t,type:e,listener:i};return t.addEventListener(e,i),r}function Wr(t,e,i,n){return Ne(t,e,i,n,!0)}function He(t){t&&t.target&&(t.target.removeEventListener(t.type,t.listener),va(t))}class xa extends ul{constructor(){super(),this.on=this.onInternal,this.once=this.onceInternal,this.un=this.unInternal,this.revision_=0}changed(){++this.revision_,this.dispatchEvent(le.CHANGE)}getRevision(){return this.revision_}onInternal(e,i){if(Array.isArray(e)){const n=e.length,s=new Array(n);for(let r=0;r0;)this.pop()}extend(e){for(let i=0,n=e.length;ithis.getLength())throw new Error("Index out of bounds: "+e);this.unique_&&this.assertUnique_(i),this.array_.splice(e,0,i),this.updateLength_(),this.dispatchEvent(new sr(St.ADD,i,e))}pop(){return this.removeAt(this.getLength()-1)}push(e){this.unique_&&this.assertUnique_(e);const i=this.getLength();return this.insertAt(i,e),this.getLength()}remove(e){const i=this.array_;for(let n=0,s=i.length;n=this.getLength())return;const i=this.array_[e];return this.array_.splice(e,1),this.updateLength_(),this.dispatchEvent(new sr(St.REMOVE,i,e)),i}setAt(e,i){const n=this.getLength();if(e>=n){this.insertAt(e,i);return}if(e<0)throw new Error("Index out of bounds: "+e);this.unique_&&this.assertUnique_(i,e);const s=this.array_[e];this.array_[e]=i,this.dispatchEvent(new sr(St.REMOVE,s,e)),this.dispatchEvent(new sr(St.ADD,i,e))}updateLength_(){this.set(Wc.LENGTH,this.array_.length)}assertUnique_(e,i){for(let n=0,s=this.array_.length;ns&&(l=l|nt.RIGHT),or&&(l=l|nt.ABOVE),l===nt.UNKNOWN&&(l=nt.INTERSECTING),l}function sn(){return[1/0,1/0,-1/0,-1/0]}function Os(t,e,i,n,s){return s?(s[0]=t,s[1]=e,s[2]=i,s[3]=n,s):[t,e,i,n]}function wa(t){return Os(1/0,1/0,-1/0,-1/0,t)}function fb(t,e){const i=t[0],n=t[1];return Os(i,n,i,n,e)}function pb(t,e,i,n,s){const r=wa(s);return kd(r,t,e,i,n)}function yo(t,e){return t[0]==e[0]&&t[2]==e[2]&&t[1]==e[1]&&t[3]==e[3]}function gb(t,e){return e[0]t[2]&&(t[2]=e[2]),e[1]t[3]&&(t[3]=e[3]),t}function xr(t,e){e[0]t[2]&&(t[2]=e[0]),e[1]t[3]&&(t[3]=e[1])}function kd(t,e,i,n,s){for(;ie[0]?n[0]=t[0]:n[0]=e[0],t[1]>e[1]?n[1]=t[1]:n[1]=e[1],t[2]=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function Ea(t){return t[2]=a&&p<=l),!n&&r&nt.RIGHT&&!(s&nt.RIGHT)&&(y=m-(d-l)*f,n=y>=o&&y<=c),!n&&r&nt.BELOW&&!(s&nt.BELOW)&&(p=d-(m-o)/f,n=p>=a&&p<=l),!n&&r&nt.LEFT&&!(s&nt.LEFT)&&(y=m-(d-a)*f,n=y>=o&&y<=c)}return n}const Kr={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]};var yt={name:"xyz",min:[0,0,0],channel:["X","Y","Z"],alias:["XYZ","ciexyz","cie1931"]};yt.whitepoint={2:{A:[109.85,100,35.585],C:[98.074,100,118.232],D50:[96.422,100,82.521],D55:[95.682,100,92.149],D65:[95.045592705167,100,108.9057750759878],D75:[94.972,100,122.638],F2:[99.187,100,67.395],F7:[95.044,100,108.755],F11:[100.966,100,64.37],E:[100,100,100]},10:{A:[111.144,100,35.2],C:[97.285,100,116.145],D50:[96.72,100,81.427],D55:[95.799,100,90.926],D65:[94.811,100,107.304],D75:[94.416,100,120.641],F2:[103.28,100,69.026],F7:[95.792,100,107.687],F11:[103.866,100,65.627],E:[100,100,100]}};yt.max=yt.whitepoint[2].D65;yt.rgb=function(t,e){e=e||yt.whitepoint[2].E;var i=t[0]/e[0],n=t[1]/e[1],s=t[2]/e[2],r,a,o;return r=i*3.240969941904521+n*-1.537383177570093+s*-.498610760293,a=i*-.96924363628087+n*1.87596750150772+s*.041555057407175,o=i*.055630079696993+n*-.20397695888897+s*1.056971514242878,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:r=r*12.92,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:a=a*12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o=o*12.92,r=Math.min(Math.max(0,r),1),a=Math.min(Math.max(0,a),1),o=Math.min(Math.max(0,o),1),[r*255,a*255,o*255]};Kr.xyz=function(t,e){var i=t[0]/255,n=t[1]/255,s=t[2]/255;i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,s=s>.04045?Math.pow((s+.055)/1.055,2.4):s/12.92;var r=i*.41239079926595+n*.35758433938387+s*.18048078840183,a=i*.21263900587151+n*.71516867876775+s*.072192315360733,o=i*.019330818715591+n*.11919477979462+s*.95053215224966;return e=e||yt.whitepoint[2].E,[r*e[0],a*e[1],o*e[2]]};const Sd={name:"luv",min:[0,-134,-140],max:[100,224,122],channel:["lightness","u","v"],alias:["LUV","cieluv","cie1976"],xyz:function(t,e,i){var n,s,r,a,o,l,c,u,h,d,m,f,p;if(r=t[0],a=t[1],o=t[2],r===0)return[0,0,0];var y=.0011070564598794539;return e=e||"D65",i=i||2,h=yt.whitepoint[i][e][0],d=yt.whitepoint[i][e][1],m=yt.whitepoint[i][e][2],f=4*h/(h+15*d+3*m),p=9*d/(h+15*d+3*m),n=a/(13*r)+f||0,s=o/(13*r)+p||0,c=r>8?d*Math.pow((r+16)/116,3):d*r*y,l=c*9*n/(4*s)||0,u=c*(12-3*n-20*s)/(4*s)||0,[l,c,u]}};yt.luv=function(t,e,i){var n,s,r,a,o,l,c,u,h,d,m,f,p,y=.008856451679035631,_=903.2962962962961;e=e||"D65",i=i||2,h=yt.whitepoint[i][e][0],d=yt.whitepoint[i][e][1],m=yt.whitepoint[i][e][2],f=4*h/(h+15*d+3*m),p=9*d/(h+15*d+3*m),l=t[0],c=t[1],u=t[2],n=4*l/(l+15*c+3*u)||0,s=9*c/(l+15*c+3*u)||0;var v=c/d;return r=v<=y?_*v:116*Math.pow(v,1/3)-16,a=13*r*(n-f),o=13*r*(s-p),[r,a,o]};Sd.lchuv=function(t){var e=t[0],i=t[1],n=t[2],s=Math.sqrt(i*i+n*n),r=Math.atan2(n,i),a=r*360/2/Math.PI;return a<0&&(a+=360),[e,s,a]};yt.lchuv=function(t){return Sd.lchuv(yt.luv(t))};var xb={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const Bc=ny(xb);var Hc={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function wb(t){var u,h;var e,i=[],n=1,s;if(typeof t=="number")return{space:"rgb",values:[t>>>16,(t&65280)>>>8,t&255],alpha:1};if(typeof t=="number")return{space:"rgb",values:[t>>>16,(t&65280)>>>8,t&255],alpha:1};if(t=String(t).toLowerCase(),Bc[t])i=Bc[t].slice(),s="rgb";else if(t==="transparent")n=0,s="rgb",i=[0,0,0];else if(t[0]==="#"){var r=t.slice(1),a=r.length,o=a<=4;n=1,o?(i=[parseInt(r[0]+r[0],16),parseInt(r[1]+r[1],16),parseInt(r[2]+r[2],16)],a===4&&(n=parseInt(r[3]+r[3],16)/255)):(i=[parseInt(r[0]+r[1],16),parseInt(r[2]+r[3],16),parseInt(r[4]+r[5],16)],a===8&&(n=parseInt(r[6]+r[7],16)/255)),i[0]||(i[0]=0),i[1]||(i[1]=0),i[2]||(i[2]=0),s="rgb"}else if(e=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(t)){var l=e[1];s=l.replace(/a$/,"");var c=s==="cmyk"?4:s==="gray"?1:3;i=e[2].trim().split(/\s*[,\/]\s*|\s+/),s==="color"&&(s=i.shift()),i=i.map(function(d,m){if(d[d.length-1]==="%")return d=parseFloat(d)/100,m===3?d:s==="rgb"?d*255:s[0]==="h"||s[0]==="l"&&!m?d*100:s==="lab"?d*125:s==="lch"?m<2?d*150:d*360:s[0]==="o"&&!m?d:s==="oklab"?d*.4:s==="oklch"?m<2?d*.4:d*360:d;if(s[m]==="h"||m===2&&s[s.length-1]==="h"){if(Hc[d]!==void 0)return Hc[d];if(d.endsWith("deg"))return parseFloat(d);if(d.endsWith("turn"))return parseFloat(d)*360;if(d.endsWith("grad"))return parseFloat(d)*360/400;if(d.endsWith("rad"))return parseFloat(d)*180/Math.PI}return d==="none"?0:parseFloat(d)}),n=i.length>c?i.pop():1}else/[0-9](?:\s|\/|,)/.test(t)&&(i=t.match(/([0-9]+)/g).map(function(d){return parseFloat(d)}),s=((h=(u=t.match(/([a-z])/ig))==null?void 0:u.join(""))==null?void 0:h.toLowerCase())||"rgb");return{space:s,values:i,alpha:n}}const Wa={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(t){var e=t[0]/360,i=t[1]/100,n=t[2]/100,s,r,a,o,l,c=0;if(i===0)return l=n*255,[l,l,l];for(r=n<.5?n*(1+i):n+i-n*i,s=2*n-r,o=[0,0,0];c<3;)a=e+1/3*-(c-1),a<0?a++:a>1&&a--,l=6*a<1?s+(r-s)*6*a:2*a<1?r:3*a<2?s+(r-s)*(2/3-a)*6:s,o[c++]=l*255;return o}};Kr.hsl=function(t){var e=t[0]/255,i=t[1]/255,n=t[2]/255,s=Math.min(e,i,n),r=Math.max(e,i,n),a=r-s,o,l,c;return r===s?o=0:e===r?o=(i-n)/a:i===r?o=2+(n-e)/a:n===r&&(o=4+(e-i)/a),o=Math.min(o*60,360),o<0&&(o+=360),c=(s+r)/2,r===s?l=0:c<=.5?l=a/(r+s):l=a/(2-r-s),[o,l*100,c*100]};function Cb(t){Array.isArray(t)&&t.raw&&(t=String.raw(...arguments)),t instanceof Number&&(t=+t);var e,i=wb(t);if(!i.space)return[];const n=i.space[0]==="h"?Wa.min:Kr.min,s=i.space[0]==="h"?Wa.max:Kr.max;return e=Array(3),e[0]=Math.min(Math.max(i.values[0],n[0]),s[0]),e[1]=Math.min(Math.max(i.values[1],n[1]),s[1]),e[2]=Math.min(Math.max(i.values[2],n[2]),s[2]),i.space[0]==="h"&&(e=Wa.rgb(e)),e.push(Math.min(Math.max(i.alpha,0),1)),e}function ze(t,e,i){return Math.min(Math.max(t,e),i)}function Nb(t,e,i,n,s,r){const a=s-i,o=r-n;if(a!==0||o!==0){const l=((t-i)*a+(e-n)*o)/(a*a+o*o);l>1?(i=s,n=r):l>0&&(i+=a*l,n+=o*l)}return In(t,e,i,n)}function In(t,e,i,n){const s=i-t,r=n-e;return s*s+r*r}function Fb(t){const e=t.length;for(let n=0;nr&&(r=l,s=o)}if(r===0)return null;const a=t[s];t[s]=t[n],t[n]=a;for(let o=n+1;o=0;n--){i[n]=t[n][e]/t[n][n];for(let s=n-1;s>=0;s--)t[s][e]-=t[s][n]*i[n]}return i}function wr(t){return t*Math.PI/180}function kn(t,e){const i=t%e;return i*e<0?i+e:i}function Eb(t,e,i){return t+i*(e-t)}function Dd(t,e){const i=Math.pow(10,e);return Math.round(t*i)/i}function rr(t,e){return Math.floor(Dd(t,e))}function ar(t,e){return Math.ceil(Dd(t,e))}function Mb(t){return typeof t=="string"?t:kb(t)}const Tb=1024,es={};let Ka=0;function Rb(t){if(es.hasOwnProperty(t))return es[t];if(Ka>=Tb){let i=0;for(const n in es)i++&3||(delete es[n],--Ka)}const e=Cb(t);if(e.length!==4)throw new Error('Failed to parse "'+t+'" as color');for(const i of e)if(isNaN(i))throw new Error('Failed to parse "'+t+'" as color');return Ib(e),es[t]=e,++Ka,e}function zc(t){return Array.isArray(t)?t:Rb(t)}function Ib(t){return t[0]=ze(t[0]+.5|0,0,255),t[1]=ze(t[1]+.5|0,0,255),t[2]=ze(t[2]+.5|0,0,255),t[3]=ze(t[3],0,1),t}function kb(t){let e=t[0];e!=(e|0)&&(e=e+.5|0);let i=t[1];i!=(i|0)&&(i=i+.5|0);let n=t[2];n!=(n|0)&&(n=n+.5|0);const s=t[3]===void 0?1:Math.round(t[3]*100)/100;return"rgba("+e+","+i+","+n+","+s+")"}class Lb{constructor(){this.cache_={},this.cacheSize_=0,this.maxCacheSize_=32}clear(){this.cache_={},this.cacheSize_=0}canExpireCache(){return this.cacheSize_>this.maxCacheSize_}expire(){if(this.canExpireCache()){let e=0;for(const i in this.cache_){const n=this.cache_[i];!(e++&3)&&!n.hasListener()&&(delete this.cache_[i],--this.cacheSize_)}}}get(e,i,n){const s=qc(e,i,n);return s in this.cache_?this.cache_[s]:null}set(e,i,n,s){const r=qc(e,i,n);this.cache_[r]=s,++this.cacheSize_}setSize(e){this.maxCacheSize_=e,this.expire()}}function qc(t,e,i){const n=i?Mb(i):"null";return e+":"+t+":"+n}const Pd=new Lb,we={OPACITY:"opacity",VISIBLE:"visible",EXTENT:"extent",Z_INDEX:"zIndex",MAX_RESOLUTION:"maxResolution",MIN_RESOLUTION:"minResolution",MAX_ZOOM:"maxZoom",MIN_ZOOM:"minZoom",SOURCE:"source",MAP:"map"};class Sb extends ci{constructor(e){super(),this.on,this.once,this.un,this.background_=e.background;const i=Object.assign({},e);typeof e.properties=="object"&&(delete i.properties,Object.assign(i,e.properties)),i[we.OPACITY]=e.opacity!==void 0?e.opacity:1,Le(typeof i[we.OPACITY]=="number","Layer opacity must be a number"),i[we.VISIBLE]=e.visible!==void 0?e.visible:!0,i[we.Z_INDEX]=e.zIndex,i[we.MAX_RESOLUTION]=e.maxResolution!==void 0?e.maxResolution:1/0,i[we.MIN_RESOLUTION]=e.minResolution!==void 0?e.minResolution:0,i[we.MIN_ZOOM]=e.minZoom!==void 0?e.minZoom:-1/0,i[we.MAX_ZOOM]=e.maxZoom!==void 0?e.maxZoom:1/0,this.className_=i.className!==void 0?i.className:"ol-layer",delete i.className,this.setProperties(i),this.state_=null}getBackground(){return this.background_}getClassName(){return this.className_}getLayerState(e){const i=this.state_||{layer:this,managed:e===void 0?!0:e},n=this.getZIndex();return i.opacity=ze(Math.round(this.getOpacity()*100)/100,0,1),i.visible=this.getVisible(),i.extent=this.getExtent(),i.zIndex=n===void 0&&!i.managed?1/0:n,i.maxResolution=this.getMaxResolution(),i.minResolution=Math.max(this.getMinResolution(),0),i.minZoom=this.getMinZoom(),i.maxZoom=this.getMaxZoom(),this.state_=i,i}getLayersArray(e){return Xe()}getLayerStatesArray(e){return Xe()}getExtent(){return this.get(we.EXTENT)}getMaxResolution(){return this.get(we.MAX_RESOLUTION)}getMinResolution(){return this.get(we.MIN_RESOLUTION)}getMinZoom(){return this.get(we.MIN_ZOOM)}getMaxZoom(){return this.get(we.MAX_ZOOM)}getOpacity(){return this.get(we.OPACITY)}getSourceState(){return Xe()}getVisible(){return this.get(we.VISIBLE)}getZIndex(){return this.get(we.Z_INDEX)}setBackground(e){this.background_=e,this.changed()}setExtent(e){this.set(we.EXTENT,e)}setMaxResolution(e){this.set(we.MAX_RESOLUTION,e)}setMinResolution(e){this.set(we.MIN_RESOLUTION,e)}setMaxZoom(e){this.set(we.MAX_ZOOM,e)}setMinZoom(e){this.set(we.MIN_ZOOM,e)}setOpacity(e){Le(typeof e=="number","Layer opacity must be a number"),this.set(we.OPACITY,e)}setVisible(e){this.set(we.VISIBLE,e)}setZIndex(e){this.set(we.Z_INDEX,e)}disposeInternal(){this.state_&&(this.state_.layer=null,this.state_=null),super.disposeInternal()}}const Ad=Sb,wi={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"},Lt={ANIMATING:0,INTERACTING:1},Pt={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"},Db=42,dl=256,Ts={radians:6370997/(2*Math.PI),degrees:2*Math.PI*6370997/360,ft:.3048,m:1,"us-ft":1200/3937};let Pb=class{constructor(e){this.code_=e.code,this.units_=e.units,this.extent_=e.extent!==void 0?e.extent:null,this.worldExtent_=e.worldExtent!==void 0?e.worldExtent:null,this.axisOrientation_=e.axisOrientation!==void 0?e.axisOrientation:"enu",this.global_=e.global!==void 0?e.global:!1,this.canWrapX_=!!(this.global_&&this.extent_),this.getPointResolutionFunc_=e.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=e.metersPerUnit}canWrapX(){return this.canWrapX_}getCode(){return this.code_}getExtent(){return this.extent_}getUnits(){return this.units_}getMetersPerUnit(){return this.metersPerUnit_||Ts[this.units_]}getWorldExtent(){return this.worldExtent_}getAxisOrientation(){return this.axisOrientation_}isGlobal(){return this.global_}setGlobal(e){this.global_=e,this.canWrapX_=!!(e&&this.extent_)}getDefaultTileGrid(){return this.defaultTileGrid_}setDefaultTileGrid(e){this.defaultTileGrid_=e}setExtent(e){this.extent_=e,this.canWrapX_=!!(this.global_&&e)}setWorldExtent(e){this.worldExtent_=e}setGetPointResolution(e){this.getPointResolutionFunc_=e}getPointResolutionFunc(){return this.getPointResolutionFunc_}};const ml=Pb,Zs=6378137,bn=Math.PI*Zs,Ab=[-bn,-bn,bn,bn],Ob=[-180,-85,180,85],or=Zs*Math.log(Math.tan(Math.PI/2));class ln extends ml{constructor(e){super({code:e,units:"m",extent:Ab,global:!0,worldExtent:Ob,getPointResolution:function(i,n){return i/Math.cosh(n[1]/Zs)}})}}const jc=[new ln("EPSG:3857"),new ln("EPSG:102100"),new ln("EPSG:102113"),new ln("EPSG:900913"),new ln("http://www.opengis.net/def/crs/EPSG/0/3857"),new ln("http://www.opengis.net/gml/srs/epsg.xml#3857")];function Gb(t,e,i){const n=t.length;i=i>1?i:2,e===void 0&&(i>2?e=t.slice():e=new Array(n));for(let s=0;sor?r=or:r<-or&&(r=-or),e[s+1]=r}return e}function Zb(t,e,i){const n=t.length;i=i>1?i:2,e===void 0&&(i>2?e=t.slice():e=new Array(n));for(let s=0;s=0;--n)if(t[n]!=e[n]){i=!1;break}return i}function fl(t,e){const i=Math.cos(e),n=Math.sin(e),s=t[0]*i-t[1]*n,r=t[1]*i+t[0]*n;return t[0]=s,t[1]=r,t}function Bb(t,e){return t[0]*=e,t[1]*=e,t}function Hb(t,e){if(e.canWrapX()){const i=Be(e.getExtent()),n=Gd(t,e,i);n&&(t[0]-=n*i)}return t}function Gd(t,e,i){const n=e.getExtent();let s=0;return e.canWrapX()&&(t[0]n[2])&&(i=i||Be(n),s=Math.floor((t[0]-n[0])/i)),s}const zb=63710088e-1;function Jc(t,e,i){i=i||zb;const n=wr(t[1]),s=wr(e[1]),r=(s-n)/2,a=wr(e[0]-t[0])/2,o=Math.sin(r)*Math.sin(r)+Math.sin(a)*Math.sin(a)*Math.cos(n)*Math.cos(s);return 2*i*Math.atan2(Math.sqrt(o),Math.sqrt(1-o))}const Zd={info:1,warn:2,error:3,none:4};let qb=Zd.info;function Xd(...t){qb>Zd.warn||console.warn(...t)}let wo=!0;function jb(t){wo=!(t===void 0?!0:t)}function pl(t,e){if(e!==void 0){for(let i=0,n=t.length;i=o?e[r+l]:a[l]}return i}}function Jb(t,e,i,n){const s=ft(t),r=ft(e);Xn(s,r,eu(i)),Xn(r,s,eu(n))}function mn(t,e){if(t===e)return!0;const i=t.getUnits()===e.getUnits();return(t.getCode()===e.getCode()||yl(t,e)===pl)&&i}function yl(t,e){const i=t.getCode(),n=e.getCode();let s=Od(i,n);return s||(s=Wd),s}function Ur(t,e){const i=ft(t),n=ft(e);return yl(i,n)}function Qb(t,e,i){return Ur(e,i)(t,void 0,t.length)}function No(t,e){return t}function ii(t,e){return wo&&!Vr(t,[0,0])&&t[0]>=-180&&t[0]<=180&&t[1]>=-90&&t[1]<=90&&(wo=!1,Xd("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),t}function e2(t,e){return t}function _n(t,e){return t}function tu(t,e,i){return function(n){let s,r;if(t.canWrapX()){const a=t.getExtent(),o=Be(a);n=n.slice(0),r=Gd(n,t,o),r&&(n[0]=n[0]-r*o),n[0]=ze(n[0],a[0],a[2]),n[1]=ze(n[1],a[1],a[3]),s=i(n)}else s=i(n);return r&&e.canWrapX()&&(s[0]+=r*Be(e.getExtent())),s}}function t2(){Co(jc),Co($c),$b($c,jc,Gb,Zb)}t2();function iu(t,e,i){return function(n,s,r,a,o){if(!n)return;if(!s&&!e)return n;const l=e?0:r[0]*s,c=e?0:r[1]*s,u=o?o[0]:0,h=o?o[1]:0;let d=t[0]+l/2+u,m=t[2]-l/2+u,f=t[1]+c/2+h,p=t[3]-c/2+h;d>m&&(d=(m+d)/2,m=d),f>p&&(f=(p+f)/2,p=f);let y=ze(n[0],d,m),_=ze(n[1],f,p);if(a&&i&&s){const v=30*s;y+=-v*Math.log(1+Math.max(0,d-n[0])/v)+v*Math.log(1+Math.max(0,n[0]-m)/v),_+=-v*Math.log(1+Math.max(0,f-n[1])/v)+v*Math.log(1+Math.max(0,n[1]-p)/v)}return[y,_]}}function i2(t){return t}function bl(t,e,i,n){const s=Be(e)/i[0],r=Kt(e)/i[1];return n?Math.min(t,Math.max(s,r)):Math.min(t,Math.min(s,r))}function _l(t,e,i){let n=Math.min(t,e);const s=50;return n*=Math.log(1+s*Math.max(0,t/e-1))/s+1,i&&(n=Math.max(n,i),n/=Math.log(1+s*Math.max(0,i/t-1))/s+1),ze(n,i/2,e*2)}function n2(t,e,i,n){return e=e!==void 0?e:!0,function(s,r,a,o){if(s!==void 0){const l=t[0],c=t[t.length-1],u=i?bl(l,i,a,n):l;if(o)return e?_l(s,u,c):ze(s,c,u);const h=Math.min(u,s),d=Math.floor(cl(t,h,r));return t[d]>u&&d{if(!n)return this.getSimplifiedGeometry(i);const s=this.clone();return s.applyTransform(n),s.getSimplifiedGeometry(i)})}simplifyTransformed(e,i){return this.simplifyTransformedInternal(this.getRevision(),e,i)}clone(){return Xe()}closestPointXY(e,i,n,s){return Xe()}containsXY(e,i){const n=this.getClosestPoint([e,i]);return n[0]===e&&n[1]===i}getClosestPoint(e,i){return i=i||[NaN,NaN],this.closestPointXY(e[0],e[1],i,1/0),i}intersectsCoordinate(e){return this.containsXY(e[0],e[1])}computeExtent(e){return Xe()}getExtent(e){if(this.extentRevision_!=this.getRevision()){const i=this.computeExtent(this.extent_);(isNaN(i[0])||isNaN(i[1]))&&wa(i),this.extentRevision_=this.getRevision()}return _b(this.extent_,e)}rotate(e,i){Xe()}scale(e,i,n){Xe()}simplify(e){return this.getSimplifiedGeometry(e*e)}getSimplifiedGeometry(e){return Xe()}getType(){return Xe()}applyTransform(e){Xe()}intersectsExtent(e){return Xe()}translate(e,i){Xe()}transform(e,i){const n=ft(e),s=n.getUnits()=="tile-pixels"?function(r,a,o){const l=n.getExtent(),c=n.getWorldExtent(),u=Kt(c)/Kt(l);return Es(ru,c[0],c[3],u,-u,0,0,0),c2(r,0,r.length,o,ru,a),Ur(n,i)(r,a,o)}:Ur(n,i);return this.applyTransform(s),this}}const f2=m2;class p2 extends f2{constructor(){super(),this.layout="XY",this.stride=2,this.flatCoordinates}computeExtent(e){return pb(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e)}getCoordinates(){return Xe()}getFirstCoordinate(){return this.flatCoordinates.slice(0,this.stride)}getFlatCoordinates(){return this.flatCoordinates}getLastCoordinate(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)}getLayout(){return this.layout}getSimplifiedGeometry(e){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),e<0||this.simplifiedGeometryMaxMinSquaredTolerance!==0&&e<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;const i=this.getSimplifiedGeometryInternal(e);return i.getFlatCoordinates().length1)h=i;else if(d>0){for(let m=0;ms&&(s=c),r=o,a=l}return s}function y2(t,e,i,n,s){for(let r=0,a=i.length;r0;){const h=c.pop(),d=c.pop();let m=0;const f=t[d],p=t[d+1],y=t[h],_=t[h+1];for(let v=d+n;vm&&(u=v,m=E)}m>s&&(l[(u-e)/n]=1,d+n0&&p>m)&&(f<0&&y0&&y>f)){c=h,u=d;continue}r[a++]=c,r[a++]=u,o=c,l=u,c=h,u=d}return r[a++]=c,r[a++]=u,a}function C2(t,e,i,n,s,r,a,o){for(let l=0,c=i.length;lr&&(c-o)*(r-l)-(s-o)*(u-l)>0&&a++:u<=r&&(c-o)*(r-l)-(s-o)*(u-l)<0&&a--,o=c,l=u}return a!==0}function Yd(t,e,i,n,s,r){if(i.length===0||!Ki(t,e,i[0],n,s,r))return!1;for(let a=1,o=i.length;a_&&(c=(u+h)/2,Yd(t,e,i,n,c,f)&&(y=c,_=v)),u=h}return isNaN(y)&&(y=s[r]),a?(a.push(y,f,_),a):[y,f,_]}function I2(t,e,i,n,s){let r;for(e+=n;e=s[0]&&r[2]<=s[2]||r[1]>=s[1]&&r[3]<=s[3]?!0:I2(t,e,i,n,function(a,o){return vb(s,a,o)}):!1}function Jd(t,e,i,n,s){return!!($d(t,e,i,n,s)||Ki(t,e,i,n,s[0],s[1])||Ki(t,e,i,n,s[0],s[3])||Ki(t,e,i,n,s[2],s[1])||Ki(t,e,i,n,s[2],s[3]))}function k2(t,e,i,n,s){if(!Jd(t,e,i[0],n,s))return!1;if(i.length===1)return!0;for(let r=1,a=i.length;r0}function S2(t,e,i,n,s){s=s!==void 0?s:!1;for(let r=0,a=i.length;r1&&typeof arguments[i-1]=="function"&&(n=arguments[i-1],--i);let s=0;for(;s0}getInteracting(){return this.hints_[Lt.INTERACTING]>0}cancelAnimations(){this.setHint(Lt.ANIMATING,-this.hints_[Lt.ANIMATING]);let e;for(let i=0,n=this.animations_.length;i=0;--n){const s=this.animations_[n];let r=!0;for(let a=0,o=s.length;a0?c/l.duration:1;u>=1?(l.complete=!0,u=1):r=!1;const h=l.easing(u);if(l.sourceCenter){const d=l.sourceCenter[0],m=l.sourceCenter[1],f=l.targetCenter[0],p=l.targetCenter[1];this.nextCenter_=l.targetCenter;const y=d+h*(f-d),_=m+h*(p-m);this.targetCenter_=[y,_]}if(l.sourceResolution&&l.targetResolution){const d=h===1?l.targetResolution:l.sourceResolution+h*(l.targetResolution-l.sourceResolution);if(l.anchor){const m=this.getViewportSize_(this.getRotation()),f=this.constraints_.resolution(d,0,m,!0);this.targetCenter_=this.calculateCenterZoom(f,l.anchor)}this.nextResolution_=l.targetResolution,this.targetResolution_=d,this.applyTargetState_(!0)}if(l.sourceRotation!==void 0&&l.targetRotation!==void 0){const d=h===1?kn(l.targetRotation+Math.PI,2*Math.PI)-Math.PI:l.sourceRotation+h*(l.targetRotation-l.sourceRotation);if(l.anchor){const m=this.constraints_.rotation(d,!0);this.targetCenter_=this.calculateCenterRotate(m,l.anchor)}this.nextRotation_=l.targetRotation,this.targetRotation_=d}if(this.applyTargetState_(!0),i=!0,!l.complete)break}if(r){this.animations_[n]=null,this.setHint(Lt.ANIMATING,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;const a=s[0].callback;a&&lr(a,!0)}}this.animations_=this.animations_.filter(Boolean),i&&this.updateAnimationKey_===void 0&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}calculateCenterRotate(e,i){let n;const s=this.getCenterInternal();return s!==void 0&&(n=[s[0]-i[0],s[1]-i[1]],fl(n,e-this.getRotation()),Ub(n,i)),n}calculateCenterZoom(e,i){let n;const s=this.getCenterInternal(),r=this.getResolution();if(s!==void 0&&r!==void 0){const a=i[0]-e*(i[0]-s[0])/r,o=i[1]-e*(i[1]-s[1])/r;n=[a,o]}return n}getViewportSize_(e){const i=this.viewportSize_;if(e){const n=i[0],s=i[1];return[Math.abs(n*Math.cos(e))+Math.abs(s*Math.sin(e)),Math.abs(n*Math.sin(e))+Math.abs(s*Math.cos(e))]}return i}setViewportSize(e){this.viewportSize_=Array.isArray(e)?e.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)}getCenter(){const e=this.getCenterInternal();return e&&No(e,this.getProjection())}getCenterInternal(){return this.get(Pt.CENTER)}getConstraints(){return this.constraints_}getConstrainResolution(){return this.get("constrainResolution")}getHints(e){return e!==void 0?(e[0]=this.hints_[0],e[1]=this.hints_[1],e):this.hints_.slice()}calculateExtent(e){const i=this.calculateExtentInternal(e);return e2(i,this.getProjection())}calculateExtentInternal(e){e=e||this.getViewportSizeMinusPadding_();const i=this.getCenterInternal();Le(i,"The view center is not defined");const n=this.getResolution();Le(n!==void 0,"The view resolution is not defined");const s=this.getRotation();return Le(s!==void 0,"The view rotation is not defined"),_o(i,n,s,e)}getMaxResolution(){return this.maxResolution_}getMinResolution(){return this.minResolution_}getMaxZoom(){return this.getZoomForResolution(this.minResolution_)}setMaxZoom(e){this.applyOptions_(this.getUpdatedOptions_({maxZoom:e}))}getMinZoom(){return this.getZoomForResolution(this.maxResolution_)}setMinZoom(e){this.applyOptions_(this.getUpdatedOptions_({minZoom:e}))}setConstrainResolution(e){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:e}))}getProjection(){return this.projection_}getResolution(){return this.get(Pt.RESOLUTION)}getResolutions(){return this.resolutions_}getResolutionForExtent(e,i){return this.getResolutionForExtentInternal(_n(e,this.getProjection()),i)}getResolutionForExtentInternal(e,i){i=i||this.getViewportSizeMinusPadding_();const n=Be(e)/i[0],s=Kt(e)/i[1];return Math.max(n,s)}getResolutionForValueFunction(e){e=e||2;const i=this.getConstrainedResolution(this.maxResolution_),n=this.minResolution_,s=Math.log(i/n)/Math.log(e);return function(r){return i/Math.pow(e,r*s)}}getRotation(){return this.get(Pt.ROTATION)}getValueForResolutionFunction(e){const i=Math.log(e||2),n=this.getConstrainedResolution(this.maxResolution_),s=this.minResolution_,r=Math.log(n/s)/i;return function(a){return Math.log(n/a)/i/r}}getViewportSizeMinusPadding_(e){let i=this.getViewportSize_(e);const n=this.padding_;return n&&(i=[i[0]-n[1]-n[3],i[1]-n[0]-n[2]]),i}getState(){const e=this.getProjection(),i=this.getResolution(),n=this.getRotation();let s=this.getCenterInternal();const r=this.padding_;if(r){const a=this.getViewportSizeMinusPadding_();s=Ua(s,this.getViewportSize_(),[a[0]/2+r[3],a[1]/2+r[0]],i,n)}return{center:s.slice(0),projection:e!==void 0?e:null,resolution:i,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:n,zoom:this.getZoom()}}getViewStateAndExtent(){return{viewState:this.getState(),extent:this.calculateExtent()}}getZoom(){let e;const i=this.getResolution();return i!==void 0&&(e=this.getZoomForResolution(i)),e}getZoomForResolution(e){let i=this.minZoom_||0,n,s;if(this.resolutions_){const r=cl(this.resolutions_,e,1);i=r,n=this.resolutions_[r],r==this.resolutions_.length-1?s=2:s=n/this.resolutions_[r+1]}else n=this.maxResolution_,s=this.zoomFactor_;return i+Math.log(n/e)/Math.log(s)}getResolutionForZoom(e){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;const i=ze(Math.floor(e),0,this.resolutions_.length-2),n=this.resolutions_[i]/this.resolutions_[i+1];return this.resolutions_[i]/Math.pow(n,ze(e-i,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,e-this.minZoom_)}fit(e,i){let n;if(Le(Array.isArray(e)||typeof e.getSimplifiedGeometry=="function","Invalid extent or geometry provided as `geometry`"),Array.isArray(e)){Le(!Ea(e),"Cannot fit empty extent provided as `geometry`");const s=_n(e,this.getProjection());n=uu(s)}else if(e.getType()==="Circle"){const s=_n(e.getExtent(),this.getProjection());n=uu(s),n.rotate(this.getRotation(),Ms(s))}else n=e;this.fitInternal(n,i)}rotatedExtentForGeometry(e){const i=this.getRotation(),n=Math.cos(i),s=Math.sin(-i),r=e.getFlatCoordinates(),a=e.getStride();let o=1/0,l=1/0,c=-1/0,u=-1/0;for(let h=0,d=r.length;h{this.dispatchEvent("sourceready")},0))),this.changed()}getFeatures(e){return this.renderer_?this.renderer_.getFeatures(e):Promise.resolve([])}getData(e){return!this.renderer_||!this.rendered?null:this.renderer_.getData(e)}isVisible(e){let i;const n=this.getMapInternal();!e&&n&&(e=n.getView()),e instanceof Yt?i={viewState:e.getState(),extent:e.calculateExtent()}:i=e,!i.layerStatesArray&&n&&(i.layerStatesArray=n.getLayerGroup().getLayerStatesArray());let s;i.layerStatesArray?s=i.layerStatesArray.find(a=>a.layer===this):s=this.getLayerState();const r=this.getExtent();return wl(s,i.viewState)&&(!r||Gs(r,i.extent))}getAttributions(e){if(!this.isVisible(e))return[];let i;const n=this.getSource();if(n&&(i=n.getAttributions()),!i)return[];const s=e instanceof Yt?e.getViewStateAndExtent():e;let r=i(s);return Array.isArray(r)||(r=[r]),r}render(e,i){const n=this.getRenderer();return n.prepareFrame(e)?(this.rendered=!0,n.renderFrame(e,i)):null}unrender(){this.rendered=!1}setMapInternal(e){e||this.unrender(),this.set(we.MAP,e)}getMapInternal(){return this.get(we.MAP)}setMap(e){this.mapPrecomposeKey_&&(He(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),e||this.changed(),this.mapRenderKey_&&(He(this.mapRenderKey_),this.mapRenderKey_=null),e&&(this.mapPrecomposeKey_=Ne(e,wi.PRECOMPOSE,function(i){const s=i.frameState.layerStatesArray,r=this.getLayerState(!1);Le(!s.some(function(a){return a.layer===r.layer}),"A layer can only be added to the map once. Use either `layer.setMap()` or `map.addLayer()`, not both."),s.push(r)},this),this.mapRenderKey_=Ne(this,le.CHANGE,e.render,e),this.changed())}setSource(e){this.set(we.SOURCE,e)}getRenderer(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_}hasRenderer(){return!!this.renderer_}createRenderer(){return null}disposeInternal(){this.renderer_&&(this.renderer_.dispose(),delete this.renderer_),this.setSource(null),super.disposeInternal()}}function wl(t,e){if(!t.visible)return!1;const i=e.resolution;if(i=t.maxResolution)return!1;const n=e.zoom;return n>t.minZoom&&n<=t.maxZoom}const Cl=Z2;class X2 extends ol{constructor(e){super(),this.map_=e}dispatchRenderEvent(e,i){Xe()}calculateMatrices2D(e){const i=e.viewState,n=e.coordinateToPixelTransform,s=e.pixelToCoordinateTransform;Es(n,e.size[0]/2,e.size[1]/2,1/i.resolution,-1/i.resolution,-i.rotation,-i.center[0],-i.center[1]),Td(s,n)}forEachFeatureAtCoordinate(e,i,n,s,r,a,o,l){let c;const u=i.viewState;function h(w,E,L,Y){return r.call(a,E,w?L:null,Y)}const d=u.projection,m=Hb(e.slice(),d),f=[[0,0]];if(d.canWrapX()&&s){const w=d.getExtent(),E=Be(w);f.push([-E,0],[E,0])}const p=i.layerStatesArray,y=p.length,_=[],v=[];for(let w=0;w=0;--E){const L=p[E],Y=L.layer;if(Y.hasRenderer()&&wl(L,u)&&o.call(l,Y)){const q=Y.getRenderer(),ae=Y.getSource();if(q&&ae){const oe=ae.getWrapX()?m:e,_e=h.bind(null,L.managed);v[0]=oe[0]+f[w][0],v[1]=oe[1]+f[w][1],c=q.forEachFeatureAtCoordinate(v,i,n,_e,_)}if(c)return c}}if(_.length===0)return;const N=1/_.length;return _.forEach((w,E)=>w.distanceSq+=E*N),_.sort((w,E)=>w.distanceSq-E.distanceSq),_.some(w=>c=w.callback(w.feature,w.layer,w.geometry)),c}hasFeatureAtCoordinate(e,i,n,s,r,a){return this.forEachFeatureAtCoordinate(e,i,n,s,Zr,this,r,a)!==void 0}getMap(){return this.map_}renderFrame(e){Xe()}flushDeclutterItems(e){}scheduleExpireIconCache(e){Pd.canExpireCache()&&e.postRenderFunctions.push(W2)}}function W2(t,e){Pd.expire()}const K2=X2;class V2 extends ki{constructor(e,i,n,s){super(e),this.inversePixelTransform=i,this.frameState=n,this.context=s}}const em=V2,cr="ol-hidden",Ma="ol-unselectable",Nl="ol-control",hu="ol-collapsed";function Wn(t,e,i,n){let s;return i&&i.length?s=i.shift():Ed?s=new OffscreenCanvas(t||300,e||300):s=document.createElement("canvas"),t&&(s.width=t),e&&(s.height=e),s.getContext("2d",n)}function Fl(t){const e=t.canvas;e.width=1,e.height=1,t.clearRect(0,0,1,1)}function du(t,e){const i=e.parentNode;i&&i.replaceChild(t,e)}function Fo(t){return t&&t.parentNode?t.parentNode.removeChild(t):null}function U2(t){for(;t.lastChild;)t.removeChild(t.lastChild)}function B2(t,e){const i=t.childNodes;for(let n=0;;++n){const s=i[n],r=e[n];if(!s&&!r)break;if(s!==r){if(!s){t.appendChild(r);continue}if(!r){t.removeChild(s),--n;continue}t.insertBefore(r,s)}}}const H2=new ci;class z2 extends K2{constructor(e){super(e),this.fontChangeListenerKey_=Ne(H2,Fs.PROPERTYCHANGE,e.redrawText.bind(e)),this.element_=document.createElement("div");const i=this.element_.style;i.position="absolute",i.width="100%",i.height="100%",i.zIndex="0",this.element_.className=Ma+" ol-layers";const n=e.getViewport();n.insertBefore(this.element_,n.firstChild||null),this.children_=[],this.renderedVisible_=!0,this.declutterLayers_=[]}dispatchRenderEvent(e,i){const n=this.getMap();if(n.hasListener(e)){const s=new em(e,void 0,i);n.dispatchEvent(s)}}disposeInternal(){He(this.fontChangeListenerKey_),this.element_.parentNode.removeChild(this.element_),super.disposeInternal()}renderFrame(e){if(!e){this.renderedVisible_&&(this.element_.style.display="none",this.renderedVisible_=!1);return}this.calculateMatrices2D(e),this.dispatchRenderEvent(wi.PRECOMPOSE,e);const i=e.layerStatesArray.sort(function(a,o){return a.zIndex-o.zIndex}),n=e.viewState;this.children_.length=0;const s=this.declutterLayers_;s.length=0;let r=null;for(let a=0,o=i.length;a=0;--n)i[n].renderDeclutter(e);i.length=0}}const q2=z2;class yi extends ki{constructor(e,i){super(e),this.layer=i}}const Ba={LAYERS:"layers"};class El extends Ad{constructor(e){e=e||{};const i=Object.assign({},e);delete i.layers;let n=e.layers;super(i),this.on,this.once,this.un,this.layersListenerKeys_=[],this.listenerKeys_={},this.addChangeListener(Ba.LAYERS,this.handleLayersChanged_),n?Array.isArray(n)?n=new ri(n.slice(),{unique:!0}):Le(typeof n.getArray=="function","Expected `layers` to be an array or a `Collection`"):n=new ri(void 0,{unique:!0}),this.setLayers(n)}handleLayerChange_(){this.changed()}handleLayersChanged_(){this.layersListenerKeys_.forEach(He),this.layersListenerKeys_.length=0;const e=this.getLayers();this.layersListenerKeys_.push(Ne(e,St.ADD,this.handleLayersAdd_,this),Ne(e,St.REMOVE,this.handleLayersRemove_,this));for(const n in this.listenerKeys_)this.listenerKeys_[n].forEach(He);va(this.listenerKeys_);const i=e.getArray();for(let n=0,s=i.length;n{this.clickTimeoutId_=void 0;const n=new fi(Ze.SINGLECLICK,this.map_,e);this.dispatchEvent(n)},250)}updateActivePointers_(e){const i=e,n=i.pointerId;if(i.type==Ze.POINTERUP||i.type==Ze.POINTERCANCEL){delete this.trackedTouches_[n];for(const s in this.trackedTouches_)if(this.trackedTouches_[s].target!==i.target){delete this.trackedTouches_[s];break}}else(i.type==Ze.POINTERDOWN||i.type==Ze.POINTERMOVE)&&(this.trackedTouches_[n]=i);this.activePointers_=Object.values(this.trackedTouches_)}handlePointerUp_(e){this.updateActivePointers_(e);const i=new fi(Ze.POINTERUP,this.map_,e,void 0,void 0,this.activePointers_);this.dispatchEvent(i),this.emulateClicks_&&!i.defaultPrevented&&!this.dragging_&&this.isMouseActionButton_(e)&&this.emulateClick_(this.down_),this.activePointers_.length===0&&(this.dragListenerKeys_.forEach(He),this.dragListenerKeys_.length=0,this.dragging_=!1,this.down_=null)}isMouseActionButton_(e){return e.button===0}handlePointerDown_(e){this.emulateClicks_=this.activePointers_.length===0,this.updateActivePointers_(e);const i=new fi(Ze.POINTERDOWN,this.map_,e,void 0,void 0,this.activePointers_);if(this.dispatchEvent(i),this.down_=new PointerEvent(e.type,e),Object.defineProperty(this.down_,"target",{writable:!1,value:e.target}),this.dragListenerKeys_.length===0){const n=this.map_.getOwnerDocument();this.dragListenerKeys_.push(Ne(n,Ze.POINTERMOVE,this.handlePointerMove_,this),Ne(n,Ze.POINTERUP,this.handlePointerUp_,this),Ne(this.element_,Ze.POINTERCANCEL,this.handlePointerUp_,this)),this.element_.getRootNode&&this.element_.getRootNode()!==n&&this.dragListenerKeys_.push(Ne(this.element_.getRootNode(),Ze.POINTERUP,this.handlePointerUp_,this))}}handlePointerMove_(e){if(this.isMoving_(e)){this.updateActivePointers_(e),this.dragging_=!0;const i=new fi(Ze.POINTERDRAG,this.map_,e,this.dragging_,void 0,this.activePointers_);this.dispatchEvent(i)}}relayMoveEvent_(e){this.originalPointerMoveEvent_=e;const i=!!(this.down_&&this.isMoving_(e));this.dispatchEvent(new fi(Ze.POINTERMOVE,this.map_,e,i))}handleTouchMove_(e){const i=this.originalPointerMoveEvent_;(!i||i.defaultPrevented)&&(typeof e.cancelable!="boolean"||e.cancelable===!0)&&e.preventDefault()}isMoving_(e){return this.dragging_||Math.abs(e.clientX-this.down_.clientX)>this.moveTolerance_||Math.abs(e.clientY-this.down_.clientY)>this.moveTolerance_}disposeInternal(){this.relayedListenerKey_&&(He(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(le.TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&(He(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(He),this.dragListenerKeys_.length=0,this.element_=null,super.disposeInternal()}}const J2=$2,pi={POSTRENDER:"postrender",MOVESTART:"movestart",MOVEEND:"moveend",LOADSTART:"loadstart",LOADEND:"loadend"},lt={LAYERGROUP:"layergroup",SIZE:"size",TARGET:"target",VIEW:"view"},Hr=1/0;class Q2{constructor(e,i){this.priorityFunction_=e,this.keyFunction_=i,this.elements_=[],this.priorities_=[],this.queuedElements_={}}clear(){this.elements_.length=0,this.priorities_.length=0,va(this.queuedElements_)}dequeue(){const e=this.elements_,i=this.priorities_,n=e[0];e.length==1?(e.length=0,i.length=0):(e[0]=e.pop(),i[0]=i.pop(),this.siftUp_(0));const s=this.keyFunction_(n);return delete this.queuedElements_[s],n}enqueue(e){Le(!(this.keyFunction_(e)in this.queuedElements_),"Tried to enqueue an `element` that was already added to the queue");const i=this.priorityFunction_(e);return i!=Hr?(this.elements_.push(e),this.priorities_.push(i),this.queuedElements_[this.keyFunction_(e)]=!0,this.siftDown_(0,this.elements_.length-1),!0):!1}getCount(){return this.elements_.length}getLeftChildIndex_(e){return e*2+1}getRightChildIndex_(e){return e*2+2}getParentIndex_(e){return e-1>>1}heapify_(){let e;for(e=(this.elements_.length>>1)-1;e>=0;e--)this.siftUp_(e)}isEmpty(){return this.elements_.length===0}isKeyQueued(e){return e in this.queuedElements_}isQueued(e){return this.isKeyQueued(this.keyFunction_(e))}siftUp_(e){const i=this.elements_,n=this.priorities_,s=i.length,r=i[e],a=n[e],o=e;for(;e>1;){const l=this.getLeftChildIndex_(e),c=this.getRightChildIndex_(e),u=ce;){const o=this.getParentIndex_(i);if(s[o]>a)n[i]=n[o],s[i]=s[o],i=o;else break}n[i]=r,s[i]=a}reprioritize(){const e=this.priorityFunction_,i=this.elements_,n=this.priorities_;let s=0;const r=i.length;let a,o,l;for(o=0;o0;)r=this.dequeue()[0],a=r.getKey(),s=r.getState(),s===Q.IDLE&&!(a in this.tilesLoadingKeys_)&&(this.tilesLoadingKeys_[a]=!0,++this.tilesLoading_,++n,r.load())}}const i_=t_;function n_(t,e,i,n,s){if(!t||!(i in t.wantedTiles)||!t.wantedTiles[i][e.getKey()])return Hr;const r=t.viewState.center,a=n[0]-r[0],o=n[1]-r[1];return 65536*Math.log(s)+Math.sqrt(a*a+o*o)/s}class s_ extends ci{constructor(e){super();const i=e.element;i&&!e.target&&!i.style.pointerEvents&&(i.style.pointerEvents="auto"),this.element=i||null,this.target_=null,this.map_=null,this.listenerKeys=[],e.render&&(this.render=e.render),e.target&&this.setTarget(e.target)}disposeInternal(){Fo(this.element),super.disposeInternal()}getMap(){return this.map_}setMap(e){this.map_&&Fo(this.element);for(let i=0,n=this.listenerKeys.length;is.getAttributions(e)))),n=!this.getMap().getAllLayers().some(s=>s.getSource()&&s.getSource().getAttributionsCollapsible()===!1);return this.overrideCollapsible_||this.setCollapsible(n),i}updateElement_(e){if(!e){this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1);return}const i=this.collectSourceAttributions_(e),n=i.length>0;if(this.renderedVisible_!=n&&(this.element.style.display=n?"":"none",this.renderedVisible_=n),!ba(i,this.renderedAttributions_)){U2(this.ulElement_);for(let s=0,r=i.length;s0&&n%(2*Math.PI)!==0?i.animate({rotation:0,duration:this.duration_,easing:jn}):i.setRotation(0))}render(e){const i=e.frameState;if(!i)return;const n=i.viewState.rotation;if(n!=this.rotation_){const s="rotate("+n+"rad)";if(this.autoHide_){const r=this.element.classList.contains(cr);!r&&n===0?this.element.classList.add(cr):r&&n!==0&&this.element.classList.remove(cr)}this.label_.style.transform=s}this.rotation_=n}}const l_=o_;class c_ extends Ml{constructor(e){e=e||{},super({element:document.createElement("div"),target:e.target});const i=e.className!==void 0?e.className:"ol-zoom",n=e.delta!==void 0?e.delta:1,s=e.zoomInClassName!==void 0?e.zoomInClassName:i+"-in",r=e.zoomOutClassName!==void 0?e.zoomOutClassName:i+"-out",a=e.zoomInLabel!==void 0?e.zoomInLabel:"+",o=e.zoomOutLabel!==void 0?e.zoomOutLabel:"–",l=e.zoomInTipLabel!==void 0?e.zoomInTipLabel:"Zoom in",c=e.zoomOutTipLabel!==void 0?e.zoomOutTipLabel:"Zoom out",u=document.createElement("button");u.className=s,u.setAttribute("type","button"),u.title=l,u.appendChild(typeof a=="string"?document.createTextNode(a):a),u.addEventListener(le.CLICK,this.handleClick_.bind(this,n),!1);const h=document.createElement("button");h.className=r,h.setAttribute("type","button"),h.title=c,h.appendChild(typeof o=="string"?document.createTextNode(o):o),h.addEventListener(le.CLICK,this.handleClick_.bind(this,-n),!1);const d=i+" "+Ma+" "+Nl,m=this.element;m.className=d,m.appendChild(u),m.appendChild(h),this.duration_=e.duration!==void 0?e.duration:250}handleClick_(e,i){i.preventDefault(),this.zoomByDelta_(e)}zoomByDelta_(e){const n=this.getMap().getView();if(!n)return;const s=n.getZoom();if(s!==void 0){const r=n.getConstrainedZoom(s+e);this.duration_>0?(n.getAnimating()&&n.cancelAnimations(),n.animate({zoom:r,duration:this.duration_,easing:jn})):n.setZoom(r)}}}const u_=c_;function h_(t){t=t||{};const e=new ri;return(t.zoom!==void 0?t.zoom:!0)&&e.push(new u_(t.zoomOptions)),(t.rotate!==void 0?t.rotate:!0)&&e.push(new l_(t.rotateOptions)),(t.attribution!==void 0?t.attribution:!0)&&e.push(new a_(t.attributionOptions)),e}const mu={ACTIVE:"active"};class d_ extends ci{constructor(e){super(),this.on,this.once,this.un,e&&e.handleEvent&&(this.handleEvent=e.handleEvent),this.map_=null,this.setActive(!0)}getActive(){return this.get(mu.ACTIVE)}getMap(){return this.map_}handleEvent(e){return!0}setActive(e){this.set(mu.ACTIVE,e)}setMap(e){this.map_=e}}function m_(t,e,i){const n=t.getCenterInternal();if(n){const s=[n[0]+e[0],n[1]+e[1]];t.animateInternal({duration:i!==void 0?i:250,easing:l2,center:t.getConstrainedCenter(s)})}}function Tl(t,e,i,n){const s=t.getZoom();if(s===void 0)return;const r=t.getConstrainedZoom(s+e),a=t.getResolutionForZoom(r);t.getAnimating()&&t.cancelAnimations(),t.animate({resolution:a,anchor:i,duration:n!==void 0?n:250,easing:jn})}const Xs=d_;class f_ extends Xs{constructor(e){super(),e=e||{},this.delta_=e.delta?e.delta:1,this.duration_=e.duration!==void 0?e.duration:250}handleEvent(e){let i=!1;if(e.type==Ze.DBLCLICK){const n=e.originalEvent,s=e.map,r=e.coordinate,a=n.shiftKey?-this.delta_:this.delta_,o=s.getView();Tl(o,a,r,this.duration_),n.preventDefault(),i=!0}return!i}}const p_=f_;class g_ extends Xs{constructor(e){e=e||{},super(e),e.handleDownEvent&&(this.handleDownEvent=e.handleDownEvent),e.handleDragEvent&&(this.handleDragEvent=e.handleDragEvent),e.handleMoveEvent&&(this.handleMoveEvent=e.handleMoveEvent),e.handleUpEvent&&(this.handleUpEvent=e.handleUpEvent),e.stopDown&&(this.stopDown=e.stopDown),this.handlingDownUpSequence=!1,this.targetPointers=[]}getPointerCount(){return this.targetPointers.length}handleDownEvent(e){return!1}handleDragEvent(e){}handleEvent(e){if(!e.originalEvent)return!0;let i=!1;if(this.updateTrackedPointers_(e),this.handlingDownUpSequence){if(e.type==Ze.POINTERDRAG)this.handleDragEvent(e),e.originalEvent.preventDefault();else if(e.type==Ze.POINTERUP){const n=this.handleUpEvent(e);this.handlingDownUpSequence=n&&this.targetPointers.length>0}}else if(e.type==Ze.POINTERDOWN){const n=this.handleDownEvent(e);this.handlingDownUpSequence=n,i=this.stopDown(n)}else e.type==Ze.POINTERMOVE&&this.handleMoveEvent(e);return!i}handleMoveEvent(e){}handleUpEvent(e){return!1}stopDown(e){return e}updateTrackedPointers_(e){e.activePointers&&(this.targetPointers=e.activePointers)}}function Rl(t){const e=t.length;let i=0,n=0;for(let s=0;s0&&this.condition_(e)){const n=e.map.getView();return this.lastCentroid=null,n.getAnimating()&&n.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1}}const N_=C_;class F_ extends Ws{constructor(e){e=e||{},super({stopDown:_a}),this.condition_=e.condition?e.condition:y_,this.lastAngle_=void 0,this.duration_=e.duration!==void 0?e.duration:250}handleDragEvent(e){if(!Ha(e))return;const i=e.map,n=i.getView();if(n.getConstraints().rotation===vl)return;const s=i.getSize(),r=e.pixel,a=Math.atan2(s[1]/2-r[1],r[0]-s[0]/2);if(this.lastAngle_!==void 0){const o=a-this.lastAngle_;n.adjustRotationInternal(-o)}this.lastAngle_=a}handleUpEvent(e){return Ha(e)?(e.map.getView().endInteraction(this.duration_),!1):!0}handleDownEvent(e){return Ha(e)&&im(e)&&this.condition_(e)?(e.map.getView().beginInteraction(),this.lastAngle_=void 0,!0):!1}}const E_=F_;class M_ extends ol{constructor(e){super(),this.geometry_=null,this.element_=document.createElement("div"),this.element_.style.position="absolute",this.element_.style.pointerEvents="auto",this.element_.className="ol-box "+e,this.map_=null,this.startPixel_=null,this.endPixel_=null}disposeInternal(){this.setMap(null)}render_(){const e=this.startPixel_,i=this.endPixel_,n="px",s=this.element_.style;s.left=Math.min(e[0],i[0])+n,s.top=Math.min(e[1],i[1])+n,s.width=Math.abs(i[0]-e[0])+n,s.height=Math.abs(i[1]-e[1])+n}setMap(e){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);const i=this.element_.style;i.left="inherit",i.top="inherit",i.width="inherit",i.height="inherit"}this.map_=e,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)}setPixels(e,i){this.startPixel_=e,this.endPixel_=i,this.createOrUpdateGeometry(),this.render_()}createOrUpdateGeometry(){const e=this.startPixel_,i=this.endPixel_,s=[e,[e[0],i[1]],i,[i[0],e[1]]].map(this.map_.getCoordinateFromPixelInternal,this.map_);s[4]=s[0].slice(),this.geometry_?this.geometry_.setCoordinates([s]):this.geometry_=new Rs([s])}getGeometry(){return this.geometry_}}const T_=M_,ur={BOXSTART:"boxstart",BOXDRAG:"boxdrag",BOXEND:"boxend",BOXCANCEL:"boxcancel"};class za extends ki{constructor(e,i,n){super(e),this.coordinate=i,this.mapBrowserEvent=n}}class R_ extends Ws{constructor(e){super(),this.on,this.once,this.un,e=e||{},this.box_=new T_(e.className||"ol-dragbox"),this.minArea_=e.minArea!==void 0?e.minArea:64,e.onBoxEnd&&(this.onBoxEnd=e.onBoxEnd),this.startPixel_=null,this.condition_=e.condition?e.condition:im,this.boxEndCondition_=e.boxEndCondition?e.boxEndCondition:this.defaultBoxEndCondition}defaultBoxEndCondition(e,i,n){const s=n[0]-i[0],r=n[1]-i[1];return s*s+r*r>=this.minArea_}getGeometry(){return this.box_.getGeometry()}handleDragEvent(e){this.box_.setPixels(this.startPixel_,e.pixel),this.dispatchEvent(new za(ur.BOXDRAG,e.coordinate,e))}handleUpEvent(e){this.box_.setMap(null);const i=this.boxEndCondition_(e,this.startPixel_,e.pixel);return i&&this.onBoxEnd(e),this.dispatchEvent(new za(i?ur.BOXEND:ur.BOXCANCEL,e.coordinate,e)),!1}handleDownEvent(e){return this.condition_(e)?(this.startPixel_=e.pixel,this.box_.setMap(e.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new za(ur.BOXSTART,e.coordinate,e)),!0):!1}onBoxEnd(e){}}const I_=R_;class k_ extends I_{constructor(e){e=e||{};const i=e.condition?e.condition:x_;super({condition:i,className:e.className||"ol-dragzoom",minArea:e.minArea}),this.duration_=e.duration!==void 0?e.duration:200,this.out_=e.out!==void 0?e.out:!1}onBoxEnd(e){const n=this.getMap().getView();let s=this.getGeometry();if(this.out_){const r=n.rotatedExtentForGeometry(s),a=n.getResolutionForExtentInternal(r),o=n.getResolution()/a;s=s.clone(),s.scale(o*o)}n.fitInternal(s,{duration:this.duration_,easing:jn})}}const L_=k_,Oi={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",DOWN:"ArrowDown"};class S_ extends Xs{constructor(e){super(),e=e||{},this.defaultCondition_=function(i){return nm(i)&&sm(i)},this.condition_=e.condition!==void 0?e.condition:this.defaultCondition_,this.duration_=e.duration!==void 0?e.duration:100,this.pixelDelta_=e.pixelDelta!==void 0?e.pixelDelta:128}handleEvent(e){let i=!1;if(e.type==le.KEYDOWN){const n=e.originalEvent,s=n.key;if(this.condition_(e)&&(s==Oi.DOWN||s==Oi.LEFT||s==Oi.RIGHT||s==Oi.UP)){const a=e.map.getView(),o=a.getResolution()*this.pixelDelta_;let l=0,c=0;s==Oi.DOWN?c=-o:s==Oi.LEFT?l=-o:s==Oi.RIGHT?l=o:c=o;const u=[l,c];fl(u,a.getRotation()),m_(a,u,this.duration_),n.preventDefault(),i=!0}}return!i}}const D_=S_;class P_ extends Xs{constructor(e){super(),e=e||{},this.condition_=e.condition?e.condition:function(i){return!v_(i)&&sm(i)},this.delta_=e.delta?e.delta:1,this.duration_=e.duration!==void 0?e.duration:100}handleEvent(e){let i=!1;if(e.type==le.KEYDOWN||e.type==le.KEYPRESS){const n=e.originalEvent,s=n.key;if(this.condition_(e)&&(s==="+"||s==="-")){const r=e.map,a=s==="+"?this.delta_:-this.delta_,o=r.getView();Tl(o,a,void 0,this.duration_),n.preventDefault(),i=!0}}return!i}}const A_=P_;class O_{constructor(e,i,n){this.decay_=e,this.minVelocity_=i,this.delay_=n,this.points_=[],this.angle_=0,this.initialVelocity_=0}begin(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0}update(e,i){this.points_.push(e,i,Date.now())}end(){if(this.points_.length<6)return!1;const e=Date.now()-this.delay_,i=this.points_.length-3;if(this.points_[i+2]0&&this.points_[n+2]>e;)n-=3;const s=this.points_[i+2]-this.points_[n+2];if(s<1e3/60)return!1;const r=this.points_[i]-this.points_[n],a=this.points_[i+1]-this.points_[n+1];return this.angle_=Math.atan2(a,r),this.initialVelocity_=Math.sqrt(r*r+a*a)/s,this.initialVelocity_>this.minVelocity_}getDistance(){return(this.minVelocity_-this.initialVelocity_)/this.decay_}getAngle(){return this.angle_}}const G_=O_;class Z_ extends Xs{constructor(e){e=e||{},super(e),this.totalDelta_=0,this.lastDelta_=0,this.maxDelta_=e.maxDelta!==void 0?e.maxDelta:1,this.duration_=e.duration!==void 0?e.duration:250,this.timeout_=e.timeout!==void 0?e.timeout:80,this.useAnchor_=e.useAnchor!==void 0?e.useAnchor:!0,this.constrainResolution_=e.constrainResolution!==void 0?e.constrainResolution:!1;const i=e.condition?e.condition:__;this.condition_=e.onFocusOnly?Mo(tm,i):i,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_,this.mode_=void 0,this.trackpadEventGap_=400,this.trackpadTimeoutId_,this.deltaPerZoom_=300}endInteraction_(){this.trackpadTimeoutId_=void 0;const e=this.getMap();if(!e)return;e.getView().endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_)}handleEvent(e){if(!this.condition_(e)||e.type!==le.WHEEL)return!0;const n=e.map,s=e.originalEvent;s.preventDefault(),this.useAnchor_&&(this.lastAnchor_=e.coordinate);let r;if(e.type==le.WHEEL&&(r=s.deltaY,ab&&s.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(r/=Fd),s.deltaMode===WheelEvent.DOM_DELTA_LINE&&(r*=40)),r===0)return!1;this.lastDelta_=r;const a=Date.now();this.startTime_===void 0&&(this.startTime_=a),(!this.mode_||a-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(r)<4?"trackpad":"wheel");const o=n.getView();if(this.mode_==="trackpad"&&!(o.getConstrainResolution()||this.constrainResolution_))return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(o.getAnimating()&&o.cancelAnimations(),o.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),o.adjustZoom(-r/this.deltaPerZoom_,this.lastAnchor_),this.startTime_=a,!1;this.totalDelta_+=r;const l=Math.max(this.timeout_-(a-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,n),l),!1}handleWheelZoom_(e){const i=e.getView();i.getAnimating()&&i.cancelAnimations();let n=-ze(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(i.getConstrainResolution()||this.constrainResolution_)&&(n=n?n>0?1:-1:0),Tl(i,n,this.lastAnchor_,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0}setMouseAnchor(e){this.useAnchor_=e,e||(this.lastAnchor_=null)}}const X_=Z_;class W_ extends Ws{constructor(e){e=e||{};const i=e;i.stopDown||(i.stopDown=_a),super(i),this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.threshold_=e.threshold!==void 0?e.threshold:.3,this.duration_=e.duration!==void 0?e.duration:250}handleDragEvent(e){let i=0;const n=this.targetPointers[0],s=this.targetPointers[1],r=Math.atan2(s.clientY-n.clientY,s.clientX-n.clientX);if(this.lastAngle_!==void 0){const l=r-this.lastAngle_;this.rotationDelta_+=l,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),i=l}this.lastAngle_=r;const a=e.map,o=a.getView();o.getConstraints().rotation!==vl&&(this.anchor_=a.getCoordinateFromPixelInternal(a.getEventPixel(Rl(this.targetPointers))),this.rotating_&&(a.render(),o.adjustRotationInternal(i,this.anchor_)))}handleUpEvent(e){return this.targetPointers.length<2?(e.map.getView().endInteraction(this.duration_),!1):!0}handleDownEvent(e){if(this.targetPointers.length>=2){const i=e.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||i.getView().beginInteraction(),!0}return!1}}const K_=W_;class V_ extends Ws{constructor(e){e=e||{};const i=e;i.stopDown||(i.stopDown=_a),super(i),this.anchor_=null,this.duration_=e.duration!==void 0?e.duration:400,this.lastDistance_=void 0,this.lastScaleDelta_=1}handleDragEvent(e){let i=1;const n=this.targetPointers[0],s=this.targetPointers[1],r=n.clientX-s.clientX,a=n.clientY-s.clientY,o=Math.sqrt(r*r+a*a);this.lastDistance_!==void 0&&(i=this.lastDistance_/o),this.lastDistance_=o;const l=e.map,c=l.getView();i!=1&&(this.lastScaleDelta_=i),this.anchor_=l.getCoordinateFromPixelInternal(l.getEventPixel(Rl(this.targetPointers))),l.render(),c.adjustResolutionInternal(i,this.anchor_)}handleUpEvent(e){if(this.targetPointers.length<2){const n=e.map.getView(),s=this.lastScaleDelta_>1?1:-1;return n.endInteraction(this.duration_,s),!1}return!0}handleDownEvent(e){if(this.targetPointers.length>=2){const i=e.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||i.getView().beginInteraction(),!0}return!1}}const U_=V_;function B_(t){t=t||{};const e=new ri,i=new G_(-.005,.05,100);return(t.altShiftDragRotate!==void 0?t.altShiftDragRotate:!0)&&e.push(new E_),(t.doubleClickZoom!==void 0?t.doubleClickZoom:!0)&&e.push(new p_({delta:t.zoomDelta,duration:t.zoomDuration})),(t.dragPan!==void 0?t.dragPan:!0)&&e.push(new N_({onFocusOnly:t.onFocusOnly,kinetic:i})),(t.pinchRotate!==void 0?t.pinchRotate:!0)&&e.push(new K_),(t.pinchZoom!==void 0?t.pinchZoom:!0)&&e.push(new U_({duration:t.zoomDuration})),(t.keyboard!==void 0?t.keyboard:!0)&&(e.push(new D_),e.push(new A_({delta:t.zoomDelta,duration:t.zoomDuration}))),(t.mouseWheelZoom!==void 0?t.mouseWheelZoom:!0)&&e.push(new X_({onFocusOnly:t.onFocusOnly,duration:t.zoomDuration})),(t.shiftDragZoom!==void 0?t.shiftDragZoom:!0)&&e.push(new L_({duration:t.zoomDuration})),e}function fu(t){return t[0]>0&&t[1]>0}function H_(t,e,i){return i===void 0&&(i=[0,0]),i[0]=t[0]*e+.5|0,i[1]=t[1]*e+.5|0,i}function _i(t,e){return Array.isArray(t)?t:(e===void 0?e=[t,t]:(e[0]=t,e[1]=t),e)}function rm(t){if(t instanceof Cl){t.setMapInternal(null);return}t instanceof Ta&&t.getLayers().forEach(rm)}function am(t,e){if(t instanceof Cl){t.setMapInternal(e);return}if(t instanceof Ta){const i=t.getLayers().getArray();for(let n=0,s=i.length;nthis.updateSize()),this.controls=i.controls||h_(),this.interactions=i.interactions||B_({onFocusOnly:!0}),this.overlays_=i.overlays,this.overlayIdIndex_={},this.renderer_=null,this.postRenderFunctions_=[],this.tileQueue_=new i_(this.getTilePriority.bind(this),this.handleTileChange_.bind(this)),this.addChangeListener(lt.LAYERGROUP,this.handleLayerGroupChanged_),this.addChangeListener(lt.VIEW,this.handleViewChanged_),this.addChangeListener(lt.SIZE,this.handleSizeChanged_),this.addChangeListener(lt.TARGET,this.handleTargetChanged_),this.setProperties(i.values);const n=this;e.view&&!(e.view instanceof Yt)&&e.view.then(function(s){n.setView(new Yt(s))}),this.controls.addEventListener(St.ADD,s=>{s.element.setMap(this)}),this.controls.addEventListener(St.REMOVE,s=>{s.element.setMap(null)}),this.interactions.addEventListener(St.ADD,s=>{s.element.setMap(this)}),this.interactions.addEventListener(St.REMOVE,s=>{s.element.setMap(null)}),this.overlays_.addEventListener(St.ADD,s=>{this.addOverlayInternal_(s.element)}),this.overlays_.addEventListener(St.REMOVE,s=>{const r=s.element.getId();r!==void 0&&delete this.overlayIdIndex_[r.toString()],s.element.setMap(null)}),this.controls.forEach(s=>{s.setMap(this)}),this.interactions.forEach(s=>{s.setMap(this)}),this.overlays_.forEach(this.addOverlayInternal_.bind(this))}addControl(e){this.getControls().push(e)}addInteraction(e){this.getInteractions().push(e)}addLayer(e){this.getLayerGroup().getLayers().push(e)}handleLayerAdd_(e){am(e.layer,this)}addOverlay(e){this.getOverlays().push(e)}addOverlayInternal_(e){const i=e.getId();i!==void 0&&(this.overlayIdIndex_[i.toString()]=e),e.setMap(this)}disposeInternal(){this.controls.clear(),this.interactions.clear(),this.overlays_.clear(),this.resizeObserver_.disconnect(),this.setTarget(null),super.disposeInternal()}forEachFeatureAtPixel(e,i,n){if(!this.frameState_||!this.renderer_)return;const s=this.getCoordinateFromPixelInternal(e);n=n!==void 0?n:{};const r=n.hitTolerance!==void 0?n.hitTolerance:0,a=n.layerFilter!==void 0?n.layerFilter:Zr,o=n.checkWrapped!==!1;return this.renderer_.forEachFeatureAtCoordinate(s,this.frameState_,r,o,i,null,a,null)}getFeaturesAtPixel(e,i){const n=[];return this.forEachFeatureAtPixel(e,function(s){n.push(s)},i),n}getAllLayers(){const e=[];function i(n){n.forEach(function(s){s instanceof Ta?i(s.getLayers()):e.push(s)})}return i(this.getLayers()),e}hasFeatureAtPixel(e,i){if(!this.frameState_||!this.renderer_)return!1;const n=this.getCoordinateFromPixelInternal(e);i=i!==void 0?i:{};const s=i.layerFilter!==void 0?i.layerFilter:Zr,r=i.hitTolerance!==void 0?i.hitTolerance:0,a=i.checkWrapped!==!1;return this.renderer_.hasFeatureAtCoordinate(n,this.frameState_,r,a,s,null)}getEventCoordinate(e){return this.getCoordinateFromPixel(this.getEventPixel(e))}getEventCoordinateInternal(e){return this.getCoordinateFromPixelInternal(this.getEventPixel(e))}getEventPixel(e){const n=this.viewport_.getBoundingClientRect(),s=this.getSize(),r=n.width/s[0],a=n.height/s[1],o="changedTouches"in e?e.changedTouches[0]:e;return[(o.clientX-n.left)/r,(o.clientY-n.top)/a]}getTarget(){return this.get(lt.TARGET)}getTargetElement(){return this.targetElement_}getCoordinateFromPixel(e){return No(this.getCoordinateFromPixelInternal(e),this.getView().getProjection())}getCoordinateFromPixelInternal(e){const i=this.frameState_;return i?kt(i.pixelToCoordinateTransform,e.slice()):null}getControls(){return this.controls}getOverlays(){return this.overlays_}getOverlayById(e){const i=this.overlayIdIndex_[e.toString()];return i!==void 0?i:null}getInteractions(){return this.interactions}getLayerGroup(){return this.get(lt.LAYERGROUP)}setLayers(e){const i=this.getLayerGroup();if(e instanceof ri){i.setLayers(e);return}const n=i.getLayers();n.clear(),n.extend(e)}getLayers(){return this.getLayerGroup().getLayers()}getLoadingOrNotReady(){const e=this.getLayerGroup().getLayerStatesArray();for(let i=0,n=e.length;i=0;r--){const a=s[r];if(a.getMap()!==this||!a.getActive()||!this.getTargetElement())continue;if(!a.handleEvent(e)||e.propagationStopped)break}}}handlePostRender(){const e=this.frameState_,i=this.tileQueue_;if(!i.isEmpty()){let s=this.maxTilesLoading_,r=s;if(e){const a=e.viewHints;if(a[Lt.ANIMATING]||a[Lt.INTERACTING]){const o=Date.now()-e.time>8;s=o?0:8,r=o?0:2}}i.getTilesLoading(){this.postRenderTimeoutHandle_=void 0,this.handlePostRender()},0))}setLayerGroup(e){const i=this.getLayerGroup();i&&this.handleLayerRemove_(new yi("removelayer",i)),this.set(lt.LAYERGROUP,e)}setSize(e){this.set(lt.SIZE,e)}setTarget(e){this.set(lt.TARGET,e)}setView(e){if(!e||e instanceof Yt){this.set(lt.VIEW,e);return}this.set(lt.VIEW,new Yt);const i=this;e.then(function(n){i.setView(new Yt(n))})}updateSize(){const e=this.getTargetElement();let i;if(e){const s=getComputedStyle(e),r=e.offsetWidth-parseFloat(s.borderLeftWidth)-parseFloat(s.paddingLeft)-parseFloat(s.paddingRight)-parseFloat(s.borderRightWidth),a=e.offsetHeight-parseFloat(s.borderTopWidth)-parseFloat(s.paddingTop)-parseFloat(s.paddingBottom)-parseFloat(s.borderBottomWidth);!isNaN(r)&&!isNaN(a)&&(i=[r,a],!fu(i)&&(e.offsetWidth||e.offsetHeight||e.getClientRects().length)&&Xd("No map visible because the map container's width or height are 0."))}const n=this.getSize();i&&(!n||!ba(i,n))&&(this.setSize(i),this.updateViewportSize_(i))}updateViewportSize_(e){const i=this.getView();i&&i.setViewportSize(e)}};function q_(t){let e=null;t.keyboardEventTarget!==void 0&&(e=typeof t.keyboardEventTarget=="string"?document.getElementById(t.keyboardEventTarget):t.keyboardEventTarget);const i={},n=t.layers&&typeof t.layers.getLayers=="function"?t.layers:new Ta({layers:t.layers});i[lt.LAYERGROUP]=n,i[lt.TARGET]=t.target,i[lt.VIEW]=t.view instanceof Yt?t.view:new Yt;let s;t.controls!==void 0&&(Array.isArray(t.controls)?s=new ri(t.controls.slice()):(Le(typeof t.controls.getArray=="function","Expected `controls` to be an array or an `ol/Collection.js`"),s=t.controls));let r;t.interactions!==void 0&&(Array.isArray(t.interactions)?r=new ri(t.interactions.slice()):(Le(typeof t.interactions.getArray=="function","Expected `interactions` to be an array or an `ol/Collection.js`"),r=t.interactions));let a;return t.overlays!==void 0?Array.isArray(t.overlays)?a=new ri(t.overlays.slice()):(Le(typeof t.overlays.getArray=="function","Expected `overlays` to be an array or an `ol/Collection.js`"),a=t.overlays):a=new ri,{controls:s,interactions:r,keyboardEventTarget:e,overlays:a,values:i}}const j_=z_;class Y_ extends ul{constructor(e,i,n){super(),n=n||{},this.tileCoord=e,this.state=i,this.interimTile=null,this.key="",this.transition_=n.transition===void 0?250:n.transition,this.transitionStarts_={},this.interpolate=!!n.interpolate}changed(){this.dispatchEvent(le.CHANGE)}release(){this.state===Q.ERROR&&this.setState(Q.EMPTY)}getKey(){return this.key+"/"+this.tileCoord}getInterimTile(){let e=this.interimTile;if(!e)return this;do{if(e.getState()==Q.LOADED)return this.transition_=0,e;e=e.interimTile}while(e);return this}refreshInterimChain(){let e=this.interimTile;if(!e)return;let i=this;do{if(e.getState()==Q.LOADED){e.interimTile=null;break}e.getState()==Q.LOADING?i=e:e.getState()==Q.IDLE?i.interimTile=e.interimTile:i=e,e=i.interimTile}while(e)}getTileCoord(){return this.tileCoord}getState(){return this.state}setState(e){if(this.state!==Q.ERROR&&this.state>e)throw new Error("Tile load sequence violation");this.state=e,this.changed()}load(){Xe()}getAlpha(e,i){if(!this.transition_)return 1;let n=this.transitionStarts_[e];if(!n)n=i,this.transitionStarts_[e]=n;else if(n===-1)return 1;const s=i-n+1e3/60;return s>=this.transition_?1:Vd(s/this.transition_)}inTransition(e){return this.transition_?this.transitionStarts_[e]!==-1:!1}endTransition(e){this.transition_&&(this.transitionStarts_[e]=-1)}}const om=Y_,un={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4};function $_(t,e,i){const n=t;let s=!0,r=!1,a=!1;const o=[Wr(n,le.LOAD,function(){a=!0,r||e()})];return n.src&&cb?(r=!0,n.decode().then(function(){s&&e()}).catch(function(l){s&&(a?e():i())})):o.push(Wr(n,le.ERROR,i)),function(){s=!1,o.forEach(He)}}class J_ extends om{constructor(e,i,n,s,r,a){super(e,i,a),this.crossOrigin_=s,this.src_=n,this.key=n,this.image_=new Image,s!==null&&(this.image_.crossOrigin=s),this.unlisten_=null,this.tileLoadFunction_=r}getImage(){return this.image_}setImage(e){this.image_=e,this.state=Q.LOADED,this.unlistenImage_(),this.changed()}handleImageError_(){this.state=Q.ERROR,this.unlistenImage_(),this.image_=Q_(),this.changed()}handleImageLoad_(){const e=this.image_;e.naturalWidth&&e.naturalHeight?this.state=Q.LOADED:this.state=Q.EMPTY,this.unlistenImage_(),this.changed()}load(){this.state==Q.ERROR&&(this.state=Q.IDLE,this.image_=new Image,this.crossOrigin_!==null&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==Q.IDLE&&(this.state=Q.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=$_(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))}unlistenImage_(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}}function Q_(){const t=Wn(1,1);return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),t.canvas}const lm=J_,ev=.5,tv=10,pu=.25;class iv{constructor(e,i,n,s,r,a){this.sourceProj_=e,this.targetProj_=i;let o={};const l=Ur(this.targetProj_,this.sourceProj_);this.transformInv_=function(v){const N=v[0]+"/"+v[1];return o[N]||(o[N]=l(v)),o[N]},this.maxSourceExtent_=s,this.errorThresholdSquared_=r*r,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!s&&!!this.sourceProj_.getExtent()&&Be(s)>=Be(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?Be(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?Be(this.targetProj_.getExtent()):null;const c=rn(n),u=Fa(n),h=Na(n),d=Ca(n),m=this.transformInv_(c),f=this.transformInv_(u),p=this.transformInv_(h),y=this.transformInv_(d),_=tv+(a?Math.max(0,Math.ceil(Math.log2(bo(n)/(a*a*256*256)))):0);if(this.addQuad_(c,u,h,d,m,f,p,y,_),this.wrapsXInSource_){let v=1/0;this.triangles_.forEach(function(N,w,E){v=Math.min(v,N.source[0][0],N.source[1][0],N.source[2][0])}),this.triangles_.forEach(N=>{if(Math.max(N.source[0][0],N.source[1][0],N.source[2][0])-v>this.sourceWorldWidth_/2){const w=[[N.source[0][0],N.source[0][1]],[N.source[1][0],N.source[1][1]],[N.source[2][0],N.source[2][1]]];w[0][0]-v>this.sourceWorldWidth_/2&&(w[0][0]-=this.sourceWorldWidth_),w[1][0]-v>this.sourceWorldWidth_/2&&(w[1][0]-=this.sourceWorldWidth_),w[2][0]-v>this.sourceWorldWidth_/2&&(w[2][0]-=this.sourceWorldWidth_);const E=Math.min(w[0][0],w[1][0],w[2][0]);Math.max(w[0][0],w[1][0],w[2][0])-E.5&&h<1;let f=!1;if(c>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){const y=Vc([e,i,n,s]);f=Be(y)/this.targetWorldWidth_>pu||f}!m&&this.sourceProj_.isGlobal()&&h&&(f=h>pu||f)}if(!f&&this.maxSourceExtent_&&isFinite(u[0])&&isFinite(u[1])&&isFinite(u[2])&&isFinite(u[3])&&!Gs(u,this.maxSourceExtent_))return;let p=0;if(!f&&(!isFinite(r[0])||!isFinite(r[1])||!isFinite(a[0])||!isFinite(a[1])||!isFinite(o[0])||!isFinite(o[1])||!isFinite(l[0])||!isFinite(l[1]))){if(c>0)f=!0;else if(p=(!isFinite(r[0])||!isFinite(r[1])?8:0)+(!isFinite(a[0])||!isFinite(a[1])?4:0)+(!isFinite(o[0])||!isFinite(o[1])?2:0)+(!isFinite(l[0])||!isFinite(l[1])?1:0),p!=1&&p!=2&&p!=4&&p!=8)return}if(c>0){if(!f){const y=[(e[0]+n[0])/2,(e[1]+n[1])/2],_=this.transformInv_(y);let v;m?v=(kn(r[0],d)+kn(o[0],d))/2-kn(_[0],d):v=(r[0]+o[0])/2-_[0];const N=(r[1]+o[1])/2-_[1];f=v*v+N*N>this.errorThresholdSquared_}if(f){if(Math.abs(e[0]-n[0])<=Math.abs(e[1]-n[1])){const y=[(i[0]+n[0])/2,(i[1]+n[1])/2],_=this.transformInv_(y),v=[(s[0]+e[0])/2,(s[1]+e[1])/2],N=this.transformInv_(v);this.addQuad_(e,i,y,v,r,a,_,N,c-1),this.addQuad_(v,y,n,s,N,_,o,l,c-1)}else{const y=[(e[0]+i[0])/2,(e[1]+i[1])/2],_=this.transformInv_(y),v=[(n[0]+s[0])/2,(n[1]+s[1])/2],N=this.transformInv_(v);this.addQuad_(e,y,v,s,r,_,N,l,c-1),this.addQuad_(y,i,n,v,_,a,o,N,c-1)}return}}if(m){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}p&11||this.addTriangle_(e,n,s,r,o,l),p&14||this.addTriangle_(e,n,i,r,o,a),p&&(p&13||this.addTriangle_(i,s,e,a,l,r),p&7||this.addTriangle_(i,s,n,a,l,o))}calculateSourceExtent(){const e=sn();return this.triangles_.forEach(function(i,n,s){const r=i.source;xr(e,r[0]),xr(e,r[1]),xr(e,r[2])}),e}getTriangles(){return this.triangles_}}const nv=iv;let qa;const Sn=[];function gu(t,e,i,n,s){t.beginPath(),t.moveTo(0,0),t.lineTo(e,i),t.lineTo(n,s),t.closePath(),t.save(),t.clip(),t.fillRect(0,0,Math.max(e,n)+1,Math.max(i,s)),t.restore()}function ja(t,e){return Math.abs(t[e*4]-210)>2||Math.abs(t[e*4+3]-.75*255)>2}function sv(){if(qa===void 0){const t=Wn(6,6,Sn);t.globalCompositeOperation="lighter",t.fillStyle="rgba(210, 0, 0, 0.75)",gu(t,4,5,4,0),gu(t,4,5,0,5);const e=t.getImageData(0,0,3,3).data;qa=ja(e,0)||ja(e,4)||ja(e,8),Fl(t),Sn.push(t.canvas)}return qa}function yu(t,e,i,n){const s=Qb(i,e,t);let r=Qc(e,n,i);const a=e.getMetersPerUnit();a!==void 0&&(r*=a);const o=t.getMetersPerUnit();o!==void 0&&(r/=o);const l=t.getExtent();if(!l||hl(l,s)){const c=Qc(t,r,s)/r;isFinite(c)&&c>0&&(r/=c)}return r}function rv(t,e,i,n){const s=Ms(i);let r=yu(t,e,s,n);return(!isFinite(r)||r<=0)&&Ld(i,function(a){return r=yu(t,e,a,n),isFinite(r)&&r>0}),r}function av(t,e,i,n,s,r,a,o,l,c,u,h,d){const m=Wn(Math.round(i*t),Math.round(i*e),Sn);if(h||(m.imageSmoothingEnabled=!1),l.length===0)return m.canvas;m.scale(i,i);function f(v){return Math.round(v*i)/i}m.globalCompositeOperation="lighter";const p=sn();l.forEach(function(v,N,w){gb(p,v.extent)});let y;if(!d||l.length!==1||c!==0){const v=Be(p),N=Kt(p);y=Wn(Math.round(i*v/n),Math.round(i*N/n),Sn),h||(y.imageSmoothingEnabled=!1);const w=i/n;l.forEach(function(E,L,Y){const q=E.extent[0]-p[0],ae=-(E.extent[3]-p[3]),oe=Be(E.extent),_e=Kt(E.extent);E.image.width>0&&E.image.height>0&&y.drawImage(E.image,c,c,E.image.width-2*c,E.image.height-2*c,q*w,ae*w,oe*w,_e*w)})}const _=rn(a);return o.getTriangles().forEach(function(v,N,w){const E=v.source,L=v.target;let Y=E[0][0],q=E[0][1],ae=E[1][0],oe=E[1][1],_e=E[2][0],qe=E[2][1];const Ke=f((L[0][0]-_[0])/r),Ft=f(-(L[0][1]-_[1])/r),tt=f((L[1][0]-_[0])/r),ve=f(-(L[1][1]-_[1])/r),$=f((L[2][0]-_[0])/r),se=f(-(L[2][1]-_[1])/r),je=Y,Ye=q;Y=0,q=0,ae-=je,oe-=Ye,_e-=je,qe-=Ye;const ot=[[ae,oe,0,0,tt-Ke],[_e,qe,0,0,$-Ke],[0,0,ae,oe,ve-Ft],[0,0,_e,qe,se-Ft]],me=Fb(ot);if(!me)return;if(m.save(),m.beginPath(),sv()||!h){m.moveTo(tt,ve);const pe=4,Se=Ke-tt,Pe=Ft-ve;for(let F=0;F{i&&i.getState()==Q.LOADED&&e.push({extent:this.sourceTileGrid_.getTileCoordExtent(i.tileCoord),image:i.getImage()})}),this.sourceTiles_.length=0,e.length===0)this.state=Q.ERROR;else{const i=this.wrappedTileCoord_[0],n=this.targetTileGrid_.getTileSize(i),s=typeof n=="number"?n:n[0],r=typeof n=="number"?n:n[1],a=this.targetTileGrid_.getResolution(i),o=this.sourceTileGrid_.getResolution(this.sourceZ_),l=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=av(s,r,this.pixelRatio_,o,this.sourceTileGrid_.getExtent(),a,l,this.triangulation_,e,this.gutter_,this.renderEdges_,this.interpolate),this.state=Q.LOADED}this.changed()}load(){if(this.state==Q.IDLE){this.state=Q.LOADING,this.changed();let e=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(i=>{const n=i.getState();if(n==Q.IDLE||n==Q.LOADING){e++;const s=Ne(i,le.CHANGE,function(r){const a=i.getState();(a==Q.LOADED||a==Q.ERROR||a==Q.EMPTY)&&(He(s),e--,e===0&&(this.unlistenSources_(),this.reproject_()))},this);this.sourcesListenerKeys_.push(s)}}),e===0?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach(function(i,n,s){i.getState()==Q.IDLE&&i.load()})}}unlistenSources_(){this.sourcesListenerKeys_.forEach(He),this.sourcesListenerKeys_=null}release(){this.canvas_&&(Fl(this.canvas_.getContext("2d")),Sn.push(this.canvas_),this.canvas_=null),super.release()}}const To=ov;class lv{constructor(e){this.highWaterMark=e!==void 0?e:2048,this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}canExpireCache(){return this.highWaterMark>0&&this.getCount()>this.highWaterMark}expireCache(e){for(;this.canExpireCache();)this.pop()}clear(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}containsKey(e){return this.entries_.hasOwnProperty(e)}forEach(e){let i=this.oldest_;for(;i;)e(i.value_,i.key_,this),i=i.newer}get(e,i){const n=this.entries_[e];return Le(n!==void 0,"Tried to get a value for a key that does not exist in the cache"),n===this.newest_||(n===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(n.newer.older=n.older,n.older.newer=n.newer),n.newer=null,n.older=this.newest_,this.newest_.newer=n,this.newest_=n),n.value_}remove(e){const i=this.entries_[e];return Le(i!==void 0,"Tried to get a value for a key that does not exist in the cache"),i===this.newest_?(this.newest_=i.older,this.newest_&&(this.newest_.newer=null)):i===this.oldest_?(this.oldest_=i.newer,this.oldest_&&(this.oldest_.older=null)):(i.newer.older=i.older,i.older.newer=i.newer),delete this.entries_[e],--this.count_,i.value_}getCount(){return this.count_}getKeys(){const e=new Array(this.count_);let i=0,n;for(n=this.newest_;n;n=n.older)e[i++]=n.key_;return e}getValues(){const e=new Array(this.count_);let i=0,n;for(n=this.newest_;n;n=n.older)e[i++]=n.value_;return e}peekLast(){return this.oldest_.value_}peekLastKey(){return this.oldest_.key_}peekFirstKey(){return this.newest_.key_}peek(e){var i;return(i=this.entries_[e])==null?void 0:i.value_}pop(){const e=this.oldest_;return delete this.entries_[e.key_],e.newer&&(e.newer.older=null),this.oldest_=e.newer,this.oldest_||(this.newest_=null),--this.count_,e.value_}replace(e,i){this.get(e),this.entries_[e].value_=i}set(e,i){Le(!(e in this.entries_),"Tried to set a value for a key that is used already");const n={key_:e,newer:null,older:this.newest_,value_:i};this.newest_?this.newest_.newer=n:this.oldest_=n,this.newest_=n,this.entries_[e]=n,++this.count_}setSize(e){this.highWaterMark=e}}const cv=lv;function bu(t,e,i,n){return n!==void 0?(n[0]=t,n[1]=e,n[2]=i,n):[t,e,i]}function Ra(t,e,i){return t+"/"+e+"/"+i}function cm(t){return Ra(t[0],t[1],t[2])}function uv(t){return t.split("/").map(Number)}function hv(t){return(t[1]<i||i>e.getMaxZoom())return!1;const r=e.getFullTileRange(i);return r?r.containsXY(n,s):!0}class mv extends cv{clear(){for(;this.getCount()>0;)this.pop().release();super.clear()}expireCache(e){for(;this.canExpireCache()&&!(this.peekLast().getKey()in e);)this.pop().release()}pruneExceptNewestZ(){if(this.getCount()===0)return;const e=this.peekFirstKey(),n=uv(e)[0];this.forEach(s=>{s.tileCoord[0]!==n&&(this.remove(cm(s.tileCoord)),s.release())})}}const um=mv,Ya={TILELOADSTART:"tileloadstart",TILELOADEND:"tileloadend",TILELOADERROR:"tileloaderror"};class fv extends ci{constructor(e){super(),this.projection=ft(e.projection),this.attributions_=_u(e.attributions),this.attributionsCollapsible_=e.attributionsCollapsible!==void 0?e.attributionsCollapsible:!0,this.loading=!1,this.state_=e.state!==void 0?e.state:"ready",this.wrapX_=e.wrapX!==void 0?e.wrapX:!1,this.interpolate_=!!e.interpolate,this.viewResolver=null,this.viewRejector=null;const i=this;this.viewPromise_=new Promise(function(n,s){i.viewResolver=n,i.viewRejector=s})}getAttributions(){return this.attributions_}getAttributionsCollapsible(){return this.attributionsCollapsible_}getProjection(){return this.projection}getResolutions(e){return null}getView(){return this.viewPromise_}getState(){return this.state_}getWrapX(){return this.wrapX_}getInterpolate(){return this.interpolate_}refresh(){this.changed()}setAttributions(e){this.attributions_=_u(e),this.changed()}setState(e){this.state_=e,this.changed()}}function _u(t){return t?Array.isArray(t)?function(e){return t}:typeof t=="function"?t:function(e){return[t]}:null}const pv=fv;class hm{constructor(e,i,n,s){this.minX=e,this.maxX=i,this.minY=n,this.maxY=s}contains(e){return this.containsXY(e[1],e[2])}containsTileRange(e){return this.minX<=e.minX&&e.maxX<=this.maxX&&this.minY<=e.minY&&e.maxY<=this.maxY}containsXY(e,i){return this.minX<=e&&e<=this.maxX&&this.minY<=i&&i<=this.maxY}equals(e){return this.minX==e.minX&&this.minY==e.minY&&this.maxX==e.maxX&&this.maxY==e.maxY}extend(e){e.minXthis.maxX&&(this.maxX=e.maxX),e.minYthis.maxY&&(this.maxY=e.maxY)}getHeight(){return this.maxY-this.minY+1}getSize(){return[this.getWidth(),this.getHeight()]}getWidth(){return this.maxX-this.minX+1}intersects(e){return this.minX<=e.maxX&&this.maxX>=e.minX&&this.minY<=e.maxY&&this.maxY>=e.minY}}function hn(t,e,i,n,s){return s!==void 0?(s.minX=t,s.maxX=e,s.minY=i,s.maxY=n,s):new hm(t,e,i,n)}const dm=hm,dn=[0,0,0],di=5;class gv{constructor(e){this.minZoom=e.minZoom!==void 0?e.minZoom:0,this.resolutions_=e.resolutions,Le(J1(this.resolutions_,(s,r)=>r-s,!0),"`resolutions` must be sorted in descending order");let i;if(!e.origins){for(let s=0,r=this.resolutions_.length-1;s{const a=new dm(Math.min(0,s[0]),Math.max(s[0]-1,-1),Math.min(0,s[1]),Math.max(s[1]-1,-1));if(n){const o=this.getTileRangeForExtentAndZ(n,r);a.minX=Math.max(o.minX,a.minX),a.maxX=Math.min(o.maxX,a.maxX),a.minY=Math.max(o.minY,a.minY),a.maxY=Math.min(o.maxY,a.maxY)}return a}):n&&this.calculateTileRanges_(n)}forEachTileCoord(e,i,n){const s=this.getTileRangeForExtentAndZ(e,i);for(let r=s.minX,a=s.maxX;r<=a;++r)for(let o=s.minY,l=s.maxY;o<=l;++o)n([i,r,o])}forEachTileCoordParentTileRange(e,i,n,s){let r,a,o,l=null,c=e[0]-1;for(this.zoomFactor_===2?(a=e[1],o=e[2]):l=this.getTileCoordExtent(e,s);c>=this.minZoom;){if(a!==void 0&&o!==void 0?(a=Math.floor(a/2),o=Math.floor(o/2),r=hn(a,a,o,o,n)):r=this.getTileRangeForExtentAndZ(l,c,n),i(c,r))return!0;--c}return!1}getExtent(){return this.extent_}getMaxZoom(){return this.maxZoom}getMinZoom(){return this.minZoom}getOrigin(e){return this.origin_?this.origin_:this.origins_[e]}getResolution(e){return this.resolutions_[e]}getResolutions(){return this.resolutions_}getTileCoordChildTileRange(e,i,n){if(e[0]this.maxZoom||i0?n:Math.max(r/i[0],s/i[1]);const a=e+1,o=new Array(a);for(let l=0;ln.highWaterMark&&(n.highWaterMark=e)}useTile(e,i,n,s){}}class wv extends ki{constructor(e,i){super(e),this.tile=i}}const Cv=xv;function Nv(t,e){const i=/\{z\}/g,n=/\{x\}/g,s=/\{y\}/g,r=/\{-y\}/g;return function(a,o,l){if(a)return t.replace(i,a[0].toString()).replace(n,a[1].toString()).replace(s,a[2].toString()).replace(r,function(){const c=a[0],u=e.getFullTileRange(c);if(!u)throw new Error("The {-y} placeholder requires a tile grid with extent");return(u.getHeight()-a[2]-1).toString()})}}function Fv(t,e){const i=t.length,n=new Array(i);for(let s=0;sthis.getTileInternal(y,_,v,N,a),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.tileOptions);return p.key=h,c?(p.interimTile=c,p.refreshInterimChain(),o.replace(u,p)):o.set(u,p),p}getTileInternal(e,i,n,s,r){let a=null;const o=Ra(e,i,n),l=this.getKey();if(!this.tileCache.containsKey(o))a=this.createTile_(e,i,n,s,r,l),this.tileCache.set(o,a);else if(a=this.tileCache.get(o),a.key!=l){const c=a;a=this.createTile_(e,i,n,s,r,l),c.getState()==Q.IDLE?a.interimTile=c.interimTile:a.interimTile=c,a.refreshInterimChain(),this.tileCache.replace(o,a)}return a}setRenderReprojectionEdges(e){if(this.renderReprojectionEdges_!=e){this.renderReprojectionEdges_=e;for(const i in this.tileCacheForProjection)this.tileCacheForProjection[i].clear();this.changed()}}setTileGridForProjection(e,i){const n=ft(e);if(n){const s=xt(n);s in this.tileGridForProjection||(this.tileGridForProjection[s]=i)}}clear(){super.clear();for(const e in this.tileCacheForProjection)this.tileCacheForProjection[e].clear()}}function Tv(t,e){t.getImage().src=e}const ym=Mv;class Rv extends ym{constructor(e){e=e||{};const i=e.projection!==void 0?e.projection:"EPSG:3857",n=e.tileGrid!==void 0?e.tileGrid:_v({extent:Il(i),maxResolution:e.maxResolution,maxZoom:e.maxZoom,minZoom:e.minZoom,tileSize:e.tileSize});super({attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,interpolate:e.interpolate,opaque:e.opaque,projection:i,reprojectionErrorThreshold:e.reprojectionErrorThreshold,tileGrid:n,tileLoadFunction:e.tileLoadFunction,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX!==void 0?e.wrapX:!0,transition:e.transition,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection}),this.gutter_=e.gutter!==void 0?e.gutter:0}getGutter(){return this.gutter_}}const Iv=Rv,kv='© OpenStreetMap contributors.';class Lv extends Iv{constructor(e){e=e||{};let i;e.attributions!==void 0?i=e.attributions:i=[kv];const n=e.crossOrigin!==void 0?e.crossOrigin:"anonymous",s=e.url!==void 0?e.url:"https://tile.openstreetmap.org/{z}/{x}/{y}.png";super({attributions:i,attributionsCollapsible:!1,cacheSize:e.cacheSize,crossOrigin:n,interpolate:e.interpolate,maxZoom:e.maxZoom!==void 0?e.maxZoom:19,opaque:e.opaque!==void 0?e.opaque:!0,reprojectionErrorThreshold:e.reprojectionErrorThreshold,tileLoadFunction:e.tileLoadFunction,transition:e.transition,url:s,wrapX:e.wrapX,zDirection:e.zDirection})}}const Sv=Lv,hr={PRELOAD:"preload",USE_INTERIM_TILES_ON_ERROR:"useInterimTilesOnError"};class Dv extends Cl{constructor(e){e=e||{};const i=Object.assign({},e);delete i.preload,delete i.useInterimTilesOnError,super(i),this.on,this.once,this.un,this.setPreload(e.preload!==void 0?e.preload:0),this.setUseInterimTilesOnError(e.useInterimTilesOnError!==void 0?e.useInterimTilesOnError:!0)}getPreload(){return this.get(hr.PRELOAD)}setPreload(e){this.set(hr.PRELOAD,e)}getUseInterimTilesOnError(){return this.get(hr.USE_INTERIM_TILES_ON_ERROR)}setUseInterimTilesOnError(e){this.set(hr.USE_INTERIM_TILES_ON_ERROR,e)}getData(e){return super.getData(e)}}const Pv=Dv;class Av extends Cd{constructor(e){super(),this.ready=!0,this.boundHandleImageChange_=this.handleImageChange_.bind(this),this.layer_=e,this.declutterExecutorGroup=null}getFeatures(e){return Xe()}getData(e){return null}prepareFrame(e){return Xe()}renderFrame(e,i){return Xe()}loadedTileCallback(e,i,n){e[i]||(e[i]={}),e[i][n.tileCoord.toString()]=n}createLoadedTileFinder(e,i,n){return(s,r)=>{const a=this.loadedTileCallback.bind(this,n,s);return e.forEachLoadedTile(i,s,r,a)}}forEachFeatureAtCoordinate(e,i,n,s,r){}getLayer(){return this.layer_}handleFontsChanged(){}handleImageChange_(e){const i=e.target;(i.getState()===un.LOADED||i.getState()===un.ERROR)&&this.renderIfReadyAndVisible()}loadImage(e){let i=e.getState();return i!=un.LOADED&&i!=un.ERROR&&e.addEventListener(le.CHANGE,this.boundHandleImageChange_),i==un.IDLE&&(e.load(),i=e.getState()),i==un.LOADED}renderIfReadyAndVisible(){const e=this.getLayer();e&&e.getVisible()&&e.getSourceState()==="ready"&&e.changed()}disposeInternal(){delete this.layer_,super.disposeInternal()}}const Ov=Av;let pn=null;function Gv(){pn=Wn(1,1,void 0,{willReadFrequently:!0})}class Zv extends Ov{constructor(e){super(e),this.container=null,this.renderedResolution,this.tempTransform=Rn(),this.pixelTransform=Rn(),this.inversePixelTransform=Rn(),this.context=null,this.containerReused=!1,this.pixelContext_=null,this.frameState=null}getImageData(e,i,n){pn||Gv(),pn.clearRect(0,0,1,1);let s;try{pn.drawImage(e,i,n,1,1,0,0,1,1),s=pn.getImageData(0,0,1,1).data}catch{return pn=null,null}return s}getBackground(e){let n=this.getLayer().getBackground();return typeof n=="function"&&(n=n(e.viewState.resolution)),n||void 0}useContainer(e,i,n){const s=this.getLayer().getClassName();let r,a;if(e&&e.className===s&&(!n||e&&e.style.backgroundColor&&ba(zc(e.style.backgroundColor),zc(n)))){const o=e.firstElementChild;o instanceof HTMLCanvasElement&&(a=o.getContext("2d"))}if(a&&a.canvas.style.transform===i?(this.container=e,this.context=a,this.containerReused=!0):this.containerReused?(this.container=null,this.context=null,this.containerReused=!1):this.container&&(this.container.style.backgroundColor=null),!this.container){r=document.createElement("div"),r.className=s;let o=r.style;o.position="absolute",o.width="100%",o.height="100%",a=Wn();const l=a.canvas;r.appendChild(l),o=l.style,o.position="absolute",o.left="0",o.transformOrigin="top left",this.container=r,this.context=a}!this.containerReused&&n&&!this.container.style.backgroundColor&&(this.container.style.backgroundColor=n)}clipUnrotated(e,i,n){const s=rn(n),r=Fa(n),a=Na(n),o=Ca(n);kt(i.coordinateToPixelTransform,s),kt(i.coordinateToPixelTransform,r),kt(i.coordinateToPixelTransform,a),kt(i.coordinateToPixelTransform,o);const l=this.inversePixelTransform;kt(l,s),kt(l,r),kt(l,a),kt(l,o),e.save(),e.beginPath(),e.moveTo(Math.round(s[0]),Math.round(s[1])),e.lineTo(Math.round(r[0]),Math.round(r[1])),e.lineTo(Math.round(a[0]),Math.round(a[1])),e.lineTo(Math.round(o[0]),Math.round(o[1])),e.clip()}dispatchRenderEvent_(e,i,n){const s=this.getLayer();if(s.hasListener(e)){const r=new em(e,this.inversePixelTransform,n,i);s.dispatchEvent(r)}}preRender(e,i){this.frameState=i,this.dispatchRenderEvent_(wi.PRERENDER,e,i)}postRender(e,i){this.dispatchRenderEvent_(wi.POSTRENDER,e,i)}getRenderTransform(e,i,n,s,r,a,o){const l=r/2,c=a/2,u=s/i,h=-u,d=-e[0]+o,m=-e[1];return Es(this.tempTransform,l,c,u,h,-n,d,m)}disposeInternal(){delete this.frameState,super.disposeInternal()}}const Xv=Zv;class Wv extends Xv{constructor(e){super(e),this.extentChanged=!0,this.renderedExtent_=null,this.renderedPixelRatio,this.renderedProjection=null,this.renderedRevision,this.renderedTiles=[],this.newTiles_=!1,this.tmpExtent=sn(),this.tmpTileRange_=new dm(0,0,0,0)}isDrawableTile(e){const i=this.getLayer(),n=e.getState(),s=i.getUseInterimTilesOnError();return n==Q.LOADED||n==Q.EMPTY||n==Q.ERROR&&!s}getTile(e,i,n,s){const r=s.pixelRatio,a=s.viewState.projection,o=this.getLayer();let c=o.getSource().getTile(e,i,n,r,a);return c.getState()==Q.ERROR&&o.getUseInterimTilesOnError()&&o.getPreload()>0&&(this.newTiles_=!0),this.isDrawableTile(c)||(c=c.getInterimTile()),c}getData(e){const i=this.frameState;if(!i)return null;const n=this.getLayer(),s=kt(i.pixelToCoordinateTransform,e.slice()),r=n.getExtent();if(r&&!hl(r,s))return null;const a=i.pixelRatio,o=i.viewState.projection,l=i.viewState,c=n.getRenderSource(),u=c.getTileGridForProjection(l.projection),h=c.getTilePixelRatio(i.pixelRatio);for(let d=u.getZForResolution(l.resolution);d>=u.getMinZoom();--d){const m=u.getTileCoordForCoordAndZ(s,d),f=c.getTile(d,m[1],m[2],a,o);if(!(f instanceof lm||f instanceof To)||f instanceof To&&f.getState()===Q.EMPTY)return null;if(f.getState()!==Q.LOADED)continue;const p=u.getOrigin(d),y=_i(u.getTileSize(d)),_=u.getResolution(d),v=Math.floor(h*((s[0]-p[0])/_-m[1]*y[0])),N=Math.floor(h*((p[1]-s[1])/_-m[2]*y[1])),w=Math.round(h*c.getGutterForProjection(l.projection));return this.getImageData(f.getImage(),v+w,N+w)}return null}loadedTileCallback(e,i,n){return this.isDrawableTile(n)?super.loadedTileCallback(e,i,n):!1}prepareFrame(e){return!!this.getLayer().getSource()}renderFrame(e,i){const n=e.layerStatesArray[e.layerIndex],s=e.viewState,r=s.projection,a=s.resolution,o=s.center,l=s.rotation,c=e.pixelRatio,u=this.getLayer(),h=u.getSource(),d=h.getRevision(),m=h.getTileGridForProjection(r),f=m.getZForResolution(a,h.zDirection),p=m.getResolution(f);let y=e.extent;const _=e.viewState.resolution,v=h.getTilePixelRatio(c),N=Math.round(Be(y)/_*c),w=Math.round(Kt(y)/_*c),E=n.extent&&_n(n.extent);E&&(y=ms(y,_n(n.extent)));const L=p*N/2/v,Y=p*w/2/v,q=[o[0]-L,o[1]-Y,o[0]+L,o[1]+Y],ae=m.getTileRangeForExtentAndZ(y,f),oe={};oe[f]={};const _e=this.createLoadedTileFinder(h,r,oe),qe=this.tmpExtent,Ke=this.tmpTileRange_;this.newTiles_=!1;const Ft=l?vo(s.center,_,l,e.size):void 0;for(let Ve=ae.minX;Ve<=ae.maxX;++Ve)for(let pe=ae.minY;pe<=ae.maxY;++pe){if(l&&!m.tileCoordIntersectsViewport([f,Ve,pe],Ft))continue;const Se=this.getTile(f,Ve,pe,e);if(this.isDrawableTile(Se)){const Z=xt(this);if(Se.getState()==Q.LOADED){oe[f][Se.tileCoord.toString()]=Se;let P=Se.inTransition(Z);P&&n.opacity!==1&&(Se.endTransition(Z),P=!1),!this.newTiles_&&(P||!this.renderedTiles.includes(Se))&&(this.newTiles_=!0)}if(Se.getAlpha(Z,e.time)===1)continue}const Pe=m.getTileCoordChildTileRange(Se.tileCoord,Ke,qe);let F=!1;Pe&&(F=_e(f+1,Pe)),F||m.forEachTileCoordParentTileRange(Se.tileCoord,_e,Ke,qe)}const tt=p/a*c/v;Es(this.pixelTransform,e.size[0]/2,e.size[1]/2,1/c,1/c,l,-N/2,-w/2);const ve=hb(this.pixelTransform);this.useContainer(i,ve,this.getBackground(e));const $=this.context,se=$.canvas;Td(this.inversePixelTransform,this.pixelTransform),Es(this.tempTransform,N/2,w/2,tt,tt,0,-N/2,-w/2),se.width!=N||se.height!=w?(se.width=N,se.height=w):this.containerReused||$.clearRect(0,0,N,w),E&&this.clipUnrotated($,e,E),h.getInterpolate()||($.imageSmoothingEnabled=!1),this.preRender($,e),this.renderedTiles.length=0;let je=Object.keys(oe).map(Number);je.sort(ll);let Ye,ot,me;n.opacity===1&&(!this.containerReused||h.getOpaque(e.viewState.projection))?je=je.reverse():(Ye=[],ot=[]);for(let Ve=je.length-1;Ve>=0;--Ve){const pe=je[Ve],Se=h.getTilePixelSize(pe,c,r),F=m.getResolution(pe)/p,Z=Se[0]*F*tt,P=Se[1]*F*tt,H=m.getTileCoordForCoordAndZ(rn(q),pe),ce=m.getTileCoordExtent(H),g=kt(this.tempTransform,[v*(ce[0]-q[0])/p,v*(q[3]-ce[3])/p]),b=v*h.getGutterForProjection(r),x=oe[pe];for(const M in x){const T=x[M],R=T.tileCoord,G=H[1]-R[1],S=Math.round(g[0]-(G-1)*Z),A=H[2]-R[2],I=Math.round(g[1]-(A-1)*P),U=Math.round(g[0]-G*Z),W=Math.round(g[1]-A*P),z=S-U,te=I-W,re=f===pe,xe=re&&T.getAlpha(xt(this),e.time)!==1;let he=!1;if(!xe)if(Ye){me=[U,W,U+z,W,U+z,W+te,U,W+te];for(let Re=0,Et=Ye.length;Re0&&(this.tileUrlFunction=Ro(s.map(this.createFromWMTSTemplate.bind(this))))}setUrls(e){this.urls=e;const i=e.join(` -`);this.setTileUrlFunction(Ro(e.map(this.createFromWMTSTemplate.bind(this))),i)}getDimensions(){return this.dimensions_}getFormat(){return this.format_}getLayer(){return this.layer_}getMatrixSet(){return this.matrixSet_}getRequestEncoding(){return this.requestEncoding_}getStyle(){return this.style_}getVersion(){return this.version_}getKeyForDimensions_(){const e=this.urls?this.urls.slice(0):[];for(const i in this.dimensions_)e.push(i+"-"+this.dimensions_[i]);return e.join("/")}updateDimensions(e){Object.assign(this.dimensions_,e),this.setKey(this.getKeyForDimensions_())}createFromWMTSTemplate(e){const i=this.requestEncoding_,n={layer:this.layer_,style:this.style_,tilematrixset:this.matrixSet_};i=="KVP"&&Object.assign(n,{Service:"WMTS",Request:"GetTile",Version:this.version_,Format:this.format_}),e=i=="KVP"?xu(e,n):e.replace(/\{(\w+?)\}/g,function(a,o){return o.toLowerCase()in n?n[o.toLowerCase()]:a});const s=this.tileGrid,r=this.dimensions_;return function(a,o,l){if(!a)return;const c={TileMatrix:s.getMatrixId(a[0]),TileCol:a[1],TileRow:a[2]};Object.assign(c,r);let u=e;return i=="KVP"?u=xu(u,c):u=u.replace(/\{(\w+?)\}/g,function(h,d){return c[d]}),u}}}const Bv=Uv;function Hv(t){t("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),t("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),t("EPSG:3857","+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs"),t.WGS84=t["EPSG:4326"],t["EPSG:3785"]=t["EPSG:3857"],t.GOOGLE=t["EPSG:3857"],t["EPSG:900913"]=t["EPSG:3857"],t["EPSG:102113"]=t["EPSG:3857"]}var Yi=1,$i=2,Dn=3,zv=4,Io=5,wu=6378137,qv=6356752314e-3,Cu=.0066943799901413165,fs=484813681109536e-20,k=Math.PI/2,jv=.16666666666666666,Yv=.04722222222222222,$v=.022156084656084655,O=1e-10,it=.017453292519943295,$t=57.29577951308232,ge=Math.PI/4,Is=Math.PI*2,Ue=3.14159265359,Nt={};Nt.greenwich=0;Nt.lisbon=-9.131906111111;Nt.paris=2.337229166667;Nt.bogota=-74.080916666667;Nt.madrid=-3.687938888889;Nt.rome=12.452333333333;Nt.bern=7.439583333333;Nt.jakarta=106.807719444444;Nt.ferro=-17.666666666667;Nt.brussels=4.367975;Nt.stockholm=18.058277777778;Nt.athens=23.7163375;Nt.oslo=10.722916666667;const Jv={ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937}};var Nu=/[\s_\-\/\(\)]/g;function Ri(t,e){if(t[e])return t[e];for(var i=Object.keys(t),n=e.toLowerCase().replace(Nu,""),s=-1,r,a;++s=this.text.length)return;t=this.text[this.place++]}switch(this.state){case ks:return this.neutral(t);case bm:return this.keyword(t);case zr:return this.quoted(t);case vm:return this.afterquote(t);case _m:return this.number(t);case Ll:return}};ui.prototype.afterquote=function(t){if(t==='"'){this.word+='"',this.state=zr;return}if(Ia.test(t)){this.word=this.word.trim(),this.afterItem(t);return}throw new Error(`havn't handled "`+t+'" in afterquote yet, index '+this.place)};ui.prototype.afterItem=function(t){if(t===","){this.word!==null&&this.currentObject.push(this.word),this.word=null,this.state=ks;return}if(t==="]"){this.level--,this.word!==null&&(this.currentObject.push(this.word),this.word=null),this.state=ks,this.currentObject=this.stack.pop(),this.currentObject||(this.state=Ll);return}};ui.prototype.number=function(t){if(xm.test(t)){this.word+=t;return}if(Ia.test(t)){this.word=parseFloat(this.word),this.afterItem(t);return}throw new Error(`havn't handled "`+t+'" in number yet, index '+this.place)};ui.prototype.quoted=function(t){if(t==='"'){this.state=vm;return}this.word+=t};ui.prototype.keyword=function(t){if(tx.test(t)){this.word+=t;return}if(t==="["){var e=[];e.push(this.word),this.level++,this.root===null?this.root=e:this.currentObject.push(e),this.stack.push(this.currentObject),this.currentObject=e,this.state=ks;return}if(Ia.test(t)){this.afterItem(t);return}throw new Error(`havn't handled "`+t+'" in keyword yet, index '+this.place)};ui.prototype.neutral=function(t){if(ex.test(t)){this.word=t,this.state=bm;return}if(t==='"'){this.word="",this.state=zr;return}if(xm.test(t)){this.word=t,this.state=_m;return}if(Ia.test(t)){this.afterItem(t);return}throw new Error(`havn't handled "`+t+'" in neutral yet, index '+this.place)};ui.prototype.output=function(){for(;this.place0?90:-90),t.lat_ts=t.lat1):!t.lat_ts&&t.lat0&&t.projName==="Polar_Stereographic"&&(t.lat_ts=t.lat0,t.lat0=zt(t.lat0>0?90:-90))}function wm(t){var e=ix(t),i=e.shift(),n=e.shift();e.unshift(["name",n]),e.unshift(["type",i]);var s={};return vn(e,s),rx(s),s}function gt(t){var e=this;if(arguments.length===2){var i=arguments[1];typeof i=="string"?i.charAt(0)==="+"?gt[t]=ko(arguments[1]):gt[t]=wm(arguments[1]):gt[t]=i}else if(arguments.length===1){if(Array.isArray(t))return t.map(function(n){Array.isArray(n)?gt.apply(e,n):gt(n)});if(typeof t=="string"){if(t in gt)return gt[t]}else"EPSG"in t?gt["EPSG:"+t.EPSG]=t:"ESRI"in t?gt["ESRI:"+t.ESRI]=t:"IAU2000"in t?gt["IAU2000:"+t.IAU2000]=t:console.log(t);return}}Hv(gt);function ax(t){return typeof t=="string"}function ox(t){return t in gt}var lx=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];function cx(t){return lx.some(function(e){return t.indexOf(e)>-1})}var ux=["3857","900913","3785","102113"];function hx(t){var e=Ri(t,"authority");if(e){var i=Ri(e,"epsg");return i&&ux.indexOf(i)>-1}}function dx(t){var e=Ri(t,"extension");if(e)return Ri(e,"proj4")}function mx(t){return t[0]==="+"}function fx(t){if(ax(t)){if(ox(t))return gt[t];if(cx(t)){var e=wm(t);if(hx(e))return gt["EPSG:3857"];var i=dx(e);return i?ko(i):e}if(mx(t))return ko(t)}else return t}function Eu(t,e){t=t||{};var i,n;if(!e)return t;for(n in e)i=e[n],i!==void 0&&(t[n]=i);return t}function ei(t,e,i){var n=t*e;return i/Math.sqrt(1-n*n)}function Ks(t){return t<0?-1:1}function V(t){return Math.abs(t)<=Ue?t:t-Ks(t)*Is}function Vt(t,e,i){var n=t*i,s=.5*t;return n=Math.pow((1-n)/(1+n),s),Math.tan(.5*(k-e))/n}function Ls(t,e){for(var i=.5*t,n,s,r=k-2*Math.atan(e),a=0;a<=15;a++)if(n=t*Math.sin(r),s=k-2*Math.atan(e*Math.pow((1-n)/(1+n),i))-r,r+=s,Math.abs(s)<=1e-10)return r;return-9999}function px(){var t=this.b/this.a;this.es=1-t*t,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=ei(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)}function gx(t){var e=t.x,i=t.y;if(i*$t>90&&i*$t<-90&&e*$t>180&&e*$t<-180)return null;var n,s;if(Math.abs(Math.abs(i)-k)<=O)return null;if(this.sphere)n=this.x0+this.a*this.k0*V(e-this.long0),s=this.y0+this.a*this.k0*Math.log(Math.tan(ge+.5*i));else{var r=Math.sin(i),a=Vt(this.e,i,r);n=this.x0+this.a*this.k0*V(e-this.long0),s=this.y0-this.a*this.k0*Math.log(a)}return t.x=n,t.y=s,t}function yx(t){var e=t.x-this.x0,i=t.y-this.y0,n,s;if(this.sphere)s=k-2*Math.atan(Math.exp(-i/(this.a*this.k0)));else{var r=Math.exp(-i/(this.a*this.k0));if(s=Ls(this.e,r),s===-9999)return null}return n=V(this.long0+e/(this.a*this.k0)),t.x=n,t.y=s,t}var bx=["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"];const _x={init:px,forward:gx,inverse:yx,names:bx};function vx(){}function Mu(t){return t}var xx=["longlat","identity"];const wx={init:vx,forward:Mu,inverse:Mu,names:xx};var Cx=[_x,wx],Cr={},qr=[];function Cm(t,e){var i=qr.length;return t.names?(qr[i]=t,t.names.forEach(function(n){Cr[n.toLowerCase()]=i}),this):(console.log(e),!0)}function Nx(t){if(!t)return!1;var e=t.toLowerCase();if(typeof Cr[e]<"u"&&qr[Cr[e]])return qr[Cr[e]]}function Fx(){Cx.forEach(Cm)}const Ex={start:Fx,add:Cm,get:Nx};var ie={};ie.MERIT={a:6378137,rf:298.257,ellipseName:"MERIT 1983"};ie.SGS85={a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"};ie.GRS80={a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"};ie.IAU76={a:6378140,rf:298.257,ellipseName:"IAU 1976"};ie.airy={a:6377563396e-3,b:635625691e-2,ellipseName:"Airy 1830"};ie.APL4={a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"};ie.NWL9D={a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"};ie.mod_airy={a:6377340189e-3,b:6356034446e-3,ellipseName:"Modified Airy"};ie.andrae={a:637710443e-2,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"};ie.aust_SA={a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"};ie.GRS67={a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"};ie.bessel={a:6377397155e-3,rf:299.1528128,ellipseName:"Bessel 1841"};ie.bess_nam={a:6377483865e-3,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"};ie.clrk66={a:63782064e-1,b:63565838e-1,ellipseName:"Clarke 1866"};ie.clrk80={a:6378249145e-3,rf:293.4663,ellipseName:"Clarke 1880 mod."};ie.clrk80ign={a:63782492e-1,b:6356515,rf:293.4660213,ellipseName:"Clarke 1880 (IGN)"};ie.clrk58={a:6378293645208759e-9,rf:294.2606763692654,ellipseName:"Clarke 1858"};ie.CPM={a:63757387e-1,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"};ie.delmbr={a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"};ie.engelis={a:637813605e-2,rf:298.2566,ellipseName:"Engelis 1985"};ie.evrst30={a:6377276345e-3,rf:300.8017,ellipseName:"Everest 1830"};ie.evrst48={a:6377304063e-3,rf:300.8017,ellipseName:"Everest 1948"};ie.evrst56={a:6377301243e-3,rf:300.8017,ellipseName:"Everest 1956"};ie.evrst69={a:6377295664e-3,rf:300.8017,ellipseName:"Everest 1969"};ie.evrstSS={a:6377298556e-3,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"};ie.fschr60={a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"};ie.fschr60m={a:6378155,rf:298.3,ellipseName:"Fischer 1960"};ie.fschr68={a:6378150,rf:298.3,ellipseName:"Fischer 1968"};ie.helmert={a:6378200,rf:298.3,ellipseName:"Helmert 1906"};ie.hough={a:6378270,rf:297,ellipseName:"Hough"};ie.intl={a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"};ie.kaula={a:6378163,rf:298.24,ellipseName:"Kaula 1961"};ie.lerch={a:6378139,rf:298.257,ellipseName:"Lerch 1979"};ie.mprts={a:6397300,rf:191,ellipseName:"Maupertius 1738"};ie.new_intl={a:63781575e-1,b:63567722e-1,ellipseName:"New International 1967"};ie.plessis={a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"};ie.krass={a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"};ie.SEasia={a:6378155,b:63567733205e-4,ellipseName:"Southeast Asia"};ie.walbeck={a:6376896,b:63558348467e-4,ellipseName:"Walbeck"};ie.WGS60={a:6378165,rf:298.3,ellipseName:"WGS 60"};ie.WGS66={a:6378145,rf:298.25,ellipseName:"WGS 66"};ie.WGS7={a:6378135,rf:298.26,ellipseName:"WGS 72"};var Mx=ie.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"};ie.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"};function Tx(t,e,i,n){var s=t*t,r=e*e,a=(s-r)/s,o=0;n?(t*=1-a*(jv+a*(Yv+a*$v)),s=t*t,a=0):o=Math.sqrt(a);var l=(s-r)/r;return{es:a,e:o,ep2:l}}function Rx(t,e,i,n,s){if(!t){var r=Ri(ie,n);r||(r=Mx),t=r.a,e=r.b,i=r.rf}return i&&!e&&(e=(1-1/i)*t),(i===0||Math.abs(t-e)3&&(o.datum_params[3]!==0||o.datum_params[4]!==0||o.datum_params[5]!==0||o.datum_params[6]!==0)&&(o.datum_type=$i,o.datum_params[3]*=fs,o.datum_params[4]*=fs,o.datum_params[5]*=fs,o.datum_params[6]=o.datum_params[6]/1e6+1)),a&&(o.datum_type=Dn,o.grids=a),o.a=i,o.b=n,o.es=s,o.ep2=r,o}var Nm={};function kx(t,e){var i=new DataView(e),n=Dx(i),s=Px(i,n),r=Ax(i,s,n),a={header:s,subgrids:r};return Nm[t]=a,a}function Lx(t){if(t===void 0)return null;var e=t.split(",");return e.map(Sx)}function Sx(t){if(t.length===0)return null;var e=t[0]==="@";return e&&(t=t.slice(1)),t==="null"?{name:"null",mandatory:!e,grid:null,isNull:!0}:{name:t,mandatory:!e,grid:Nm[t]||null,isNull:!1}}function xn(t){return t/3600*Math.PI/180}function Dx(t){var e=t.getInt32(8,!1);return e===11?!1:(e=t.getInt32(8,!0),e!==11&&console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian"),!0)}function Px(t,e){return{nFields:t.getInt32(8,e),nSubgridFields:t.getInt32(24,e),nSubgrids:t.getInt32(40,e),shiftType:Lo(t,56,56+8).trim(),fromSemiMajorAxis:t.getFloat64(120,e),fromSemiMinorAxis:t.getFloat64(136,e),toSemiMajorAxis:t.getFloat64(152,e),toSemiMinorAxis:t.getFloat64(168,e)}}function Lo(t,e,i){return String.fromCharCode.apply(null,new Uint8Array(t.buffer.slice(e,i)))}function Ax(t,e,i){for(var n=176,s=[],r=0;r5e-11?!1:t.datum_type===Yi?t.datum_params[0]===e.datum_params[0]&&t.datum_params[1]===e.datum_params[1]&&t.datum_params[2]===e.datum_params[2]:t.datum_type===$i?t.datum_params[0]===e.datum_params[0]&&t.datum_params[1]===e.datum_params[1]&&t.datum_params[2]===e.datum_params[2]&&t.datum_params[3]===e.datum_params[3]&&t.datum_params[4]===e.datum_params[4]&&t.datum_params[5]===e.datum_params[5]&&t.datum_params[6]===e.datum_params[6]:!0}function Fm(t,e,i){var n=t.x,s=t.y,r=t.z?t.z:0,a,o,l,c;if(s<-k&&s>-1.001*k)s=-k;else if(s>k&&s<1.001*k)s=k;else{if(s<-k)return{x:-1/0,y:-1/0,z:t.z};if(s>k)return{x:1/0,y:1/0,z:t.z}}return n>Math.PI&&(n-=2*Math.PI),o=Math.sin(s),c=Math.cos(s),l=o*o,a=i/Math.sqrt(1-e*l),{x:(a+r)*c*Math.cos(n),y:(a+r)*c*Math.sin(n),z:(a*(1-e)+r)*o}}function Em(t,e,i,n){var s=1e-12,r=s*s,a=30,o,l,c,u,h,d,m,f,p,y,_,v,N,w=t.x,E=t.y,L=t.z?t.z:0,Y,q,ae;if(o=Math.sqrt(w*w+E*E),l=Math.sqrt(w*w+E*E+L*L),o/ir&&Nn.y||m>n.x||yo&&Math.abs(l.y)>o);if(a<0)return console.log("Inverse grid shift iterator failed to converge."),n;n.x=V(r.x+i.ll[0]),n.y=r.y+i.ll[1]}else isNaN(r.x)||(n.x=t.x+r.x,n.y=t.y+r.y);return n}function Ru(t,e){var i={x:t.x/e.del[0],y:t.y/e.del[1]},n={x:Math.floor(i.x),y:Math.floor(i.y)},s={x:i.x-1*n.x,y:i.y-1*n.y},r={x:Number.NaN,y:Number.NaN},a;if(n.x<0||n.x>=e.lim[0]||n.y<0||n.y>=e.lim[1])return r;a=n.y*e.lim[0]+n.x;var o={x:e.cvs[a][0],y:e.cvs[a][1]};a++;var l={x:e.cvs[a][0],y:e.cvs[a][1]};a+=e.lim[0];var c={x:e.cvs[a][0],y:e.cvs[a][1]};a--;var u={x:e.cvs[a][0],y:e.cvs[a][1]},h=s.x*s.y,d=s.x*(1-s.y),m=(1-s.x)*(1-s.y),f=(1-s.x)*s.y;return r.x=m*o.x+d*l.x+f*u.x+h*c.x,r.y=m*o.y+d*l.y+f*u.y+h*c.y,r}function Iu(t,e,i){var n=i.x,s=i.y,r=i.z||0,a,o,l,c={};for(l=0;l<3;l++)if(!(e&&l===2&&i.z===void 0))switch(l===0?(a=n,"ew".indexOf(t.axis[l])!==-1?o="x":o="y"):l===1?(a=s,"ns".indexOf(t.axis[l])!==-1?o="y":o="x"):(a=r,o="z"),t.axis[l]){case"e":c[o]=a;break;case"w":c[o]=-a;break;case"n":c[o]=a;break;case"s":c[o]=-a;break;case"u":i[o]!==void 0&&(c.z=a);break;case"d":i[o]!==void 0&&(c.z=-a);break;default:return null}return c}function Mm(t){var e={x:t[0],y:t[1]};return t.length>2&&(e.z=t[2]),t.length>3&&(e.m=t[3]),e}function Bx(t){ku(t.x),ku(t.y)}function ku(t){if(typeof Number.isFinite=="function"){if(Number.isFinite(t))return;throw new TypeError("coordinates must be finite numbers")}if(typeof t!="number"||t!==t||!isFinite(t))throw new TypeError("coordinates must be finite numbers")}function Hx(t,e){return(t.datum.datum_type===Yi||t.datum.datum_type===$i||t.datum.datum_type===Dn)&&e.datumCode!=="WGS84"||(e.datum.datum_type===Yi||e.datum.datum_type===$i||e.datum.datum_type===Dn)&&t.datumCode!=="WGS84"}function jr(t,e,i,n){var s;Array.isArray(i)?i=Mm(i):i={x:i.x,y:i.y,z:i.z,m:i.m};var r=i.z!==void 0;if(Bx(i),t.datum&&e.datum&&Hx(t,e)&&(s=new Jt("WGS84"),i=jr(t,s,i,n),t=s),n&&t.axis!=="enu"&&(i=Iu(t,!1,i)),t.projName==="longlat")i={x:i.x*it,y:i.y*it,z:i.z||0};else if(t.to_meter&&(i={x:i.x*t.to_meter,y:i.y*t.to_meter,z:i.z||0}),i=t.inverse(i),!i)return;if(t.from_greenwich&&(i.x+=t.from_greenwich),i=Vx(t.datum,e.datum,i),!!i)return e.from_greenwich&&(i={x:i.x-e.from_greenwich,y:i.y,z:i.z||0}),e.projName==="longlat"?i={x:i.x*$t,y:i.y*$t,z:i.z||0}:(i=e.forward(i),e.to_meter&&(i={x:i.x/e.to_meter,y:i.y/e.to_meter,z:i.z||0})),n&&e.axis!=="enu"?Iu(e,!0,i):(i&&!r&&delete i.z,i)}var Lu=Jt("WGS84");function $a(t,e,i,n){var s,r,a;return Array.isArray(i)?(s=jr(t,e,i,n)||{x:NaN,y:NaN},i.length>2?typeof t.name<"u"&&t.name==="geocent"||typeof e.name<"u"&&e.name==="geocent"?typeof s.z=="number"?[s.x,s.y,s.z].concat(i.splice(3)):[s.x,s.y,i[2]].concat(i.splice(3)):[s.x,s.y].concat(i.splice(2)):[s.x,s.y]):(r=jr(t,e,i,n),a=Object.keys(i),a.length===2||a.forEach(function(o){if(typeof t.name<"u"&&t.name==="geocent"||typeof e.name<"u"&&e.name==="geocent"){if(o==="x"||o==="y"||o==="z")return}else if(o==="x"||o==="y")return;r[o]=i[o]}),r)}function Su(t){return t instanceof Jt?t:t.oProj?t.oProj:Jt(t)}function Rt(t,e,i){t=Su(t);var n=!1,s;return typeof e>"u"?(e=t,t=Lu,n=!0):(typeof e.x<"u"||Array.isArray(e))&&(i=e,e=t,t=Lu,n=!0),e=Su(e),i?$a(t,e,i):(s={forward:function(r,a){return $a(t,e,r,a)},inverse:function(r,a){return $a(e,t,r,a)}},n&&(s.oProj=e),s)}var Du=6,Tm="AJSAJS",Rm="AFAFAF",wn=65,_t=73,It=79,rs=86,as=90;const zx={forward:Im,inverse:qx,toPoint:km};function Im(t,e){return e=e||5,$x(jx({lat:t[1],lon:t[0]}),e)}function qx(t){var e=Sl(Sm(t.toUpperCase()));return e.lat&&e.lon?[e.lon,e.lat,e.lon,e.lat]:[e.left,e.bottom,e.right,e.top]}function km(t){var e=Sl(Sm(t.toUpperCase()));return e.lat&&e.lon?[e.lon,e.lat]:[(e.left+e.right)/2,(e.top+e.bottom)/2]}function Ja(t){return t*(Math.PI/180)}function Pu(t){return 180*(t/Math.PI)}function jx(t){var e=t.lat,i=t.lon,n=6378137,s=.00669438,r=.9996,a,o,l,c,u,h,d,m=Ja(e),f=Ja(i),p,y;y=Math.floor((i+180)/6)+1,i===180&&(y=60),e>=56&&e<64&&i>=3&&i<12&&(y=32),e>=72&&e<84&&(i>=0&&i<9?y=31:i>=9&&i<21?y=33:i>=21&&i<33?y=35:i>=33&&i<42&&(y=37)),a=(y-1)*6-180+3,p=Ja(a),o=s/(1-s),l=n/Math.sqrt(1-s*Math.sin(m)*Math.sin(m)),c=Math.tan(m)*Math.tan(m),u=o*Math.cos(m)*Math.cos(m),h=Math.cos(m)*(f-p),d=n*((1-s/4-3*s*s/64-5*s*s*s/256)*m-(3*s/8+3*s*s/32+45*s*s*s/1024)*Math.sin(2*m)+(15*s*s/256+45*s*s*s/1024)*Math.sin(4*m)-35*s*s*s/3072*Math.sin(6*m));var _=r*l*(h+(1-c+u)*h*h*h/6+(5-18*c+c*c+72*u-58*o)*h*h*h*h*h/120)+5e5,v=r*(d+l*Math.tan(m)*(h*h/2+(5-c+9*u+4*u*u)*h*h*h*h/24+(61-58*c+c*c+600*u-330*o)*h*h*h*h*h*h/720));return e<0&&(v+=1e7),{northing:Math.round(v),easting:Math.round(_),zoneNumber:y,zoneLetter:Yx(e)}}function Sl(t){var e=t.northing,i=t.easting,n=t.zoneLetter,s=t.zoneNumber;if(s<0||s>60)return null;var r=.9996,a=6378137,o=.00669438,l,c=(1-Math.sqrt(1-o))/(1+Math.sqrt(1-o)),u,h,d,m,f,p,y,_,v,N=i-5e5,w=e;n<"N"&&(w-=1e7),y=(s-1)*6-180+3,l=o/(1-o),p=w/r,_=p/(a*(1-o/4-3*o*o/64-5*o*o*o/256)),v=_+(3*c/2-27*c*c*c/32)*Math.sin(2*_)+(21*c*c/16-55*c*c*c*c/32)*Math.sin(4*_)+151*c*c*c/96*Math.sin(6*_),u=a/Math.sqrt(1-o*Math.sin(v)*Math.sin(v)),h=Math.tan(v)*Math.tan(v),d=l*Math.cos(v)*Math.cos(v),m=a*(1-o)/Math.pow(1-o*Math.sin(v)*Math.sin(v),1.5),f=N/(u*r);var E=v-u*Math.tan(v)/m*(f*f/2-(5+3*h+10*d-4*d*d-9*l)*f*f*f*f/24+(61+90*h+298*d+45*h*h-252*l-3*d*d)*f*f*f*f*f*f/720);E=Pu(E);var L=(f-(1+2*h+d)*f*f*f/6+(5-2*d+28*h-3*d*d+8*l+24*h*h)*f*f*f*f*f/120)/Math.cos(v);L=y+Pu(L);var Y;if(t.accuracy){var q=Sl({northing:t.northing+t.accuracy,easting:t.easting+t.accuracy,zoneLetter:t.zoneLetter,zoneNumber:t.zoneNumber});Y={top:q.lat,right:q.lon,bottom:E,left:L}}else Y={lat:E,lon:L};return Y}function Yx(t){var e="Z";return 84>=t&&t>=72?e="X":72>t&&t>=64?e="W":64>t&&t>=56?e="V":56>t&&t>=48?e="U":48>t&&t>=40?e="T":40>t&&t>=32?e="S":32>t&&t>=24?e="R":24>t&&t>=16?e="Q":16>t&&t>=8?e="P":8>t&&t>=0?e="N":0>t&&t>=-8?e="M":-8>t&&t>=-16?e="L":-16>t&&t>=-24?e="K":-24>t&&t>=-32?e="J":-32>t&&t>=-40?e="H":-40>t&&t>=-48?e="G":-48>t&&t>=-56?e="F":-56>t&&t>=-64?e="E":-64>t&&t>=-72?e="D":-72>t&&t>=-80&&(e="C"),e}function $x(t,e){var i="00000"+t.easting,n="00000"+t.northing;return t.zoneNumber+t.zoneLetter+Jx(t.easting,t.northing,t.zoneNumber)+i.substr(i.length-5,e)+n.substr(n.length-5,e)}function Jx(t,e,i){var n=Lm(i),s=Math.floor(t/1e5),r=Math.floor(e/1e5)%20;return Qx(s,r,n)}function Lm(t){var e=t%Du;return e===0&&(e=Du),e}function Qx(t,e,i){var n=i-1,s=Tm.charCodeAt(n),r=Rm.charCodeAt(n),a=s+t-1,o=r+e,l=!1;a>as&&(a=a-as+wn-1,l=!0),(a===_t||s<_t&&a>_t||(a>_t||s<_t)&&l)&&a++,(a===It||sIt||(a>It||sas&&(a=a-as+wn-1),o>rs?(o=o-rs+wn-1,l=!0):l=!1,(o===_t||r<_t&&o>_t||(o>_t||r<_t)&&l)&&o++,(o===It||rIt||(o>It||rrs&&(o=o-rs+wn-1);var c=String.fromCharCode(a)+String.fromCharCode(o);return c}function Sm(t){if(t&&t.length===0)throw"MGRSPoint coverting from nothing";for(var e=t.length,i=null,n="",s,r=0;!/[A-Z]/.test(s=t.charAt(r));){if(r>=2)throw"MGRSPoint bad conversion from: "+t;n+=s,r++}var a=parseInt(n,10);if(r===0||r+3>e)throw"MGRSPoint bad conversion from: "+t;var o=t.charAt(r++);if(o<="A"||o==="B"||o==="Y"||o>="Z"||o==="I"||o==="O")throw"MGRSPoint zone letter "+o+" not handled: "+t;i=t.substring(r,r+=2);for(var l=Lm(a),c=ew(i.charAt(0),l),u=tw(i.charAt(1),l);u-1?t.substr(e+1):t}function Ic(t){return t.children[0]}function Ny(t){return t.name||""}function kc(t,e,i=!1){const n=Ga(e);function s(a,r){return Ga(Ny(r))===n&&a.push(r),i&&Array.isArray(r.children)?[...a,...r.children.reduce(s,[])]:a}return t&&Array.isArray(t.children)?t.children.reduce(s,[]):[]}function Pi(t,e){return t&&t.attributes[e]||""}class qi extends Error{constructor(e,i,n){super(e),this.message=e,this.httpStatus=i,this.isCrossOriginRelated=n}}const Lc=["utf-8","utf-16","iso-8859-1"],Sc="utf-8";function Fy(t){const e=/charset=([^;]+)/.exec(t);return e?e[1]:null}function Ey(t,e){const i=e?Fy(e):null,n=i?[i,...Lc]:Lc;for(const s of n)try{return new TextDecoder(s,{fatal:!0}).decode(t)}catch{}return console.warn(`[ogc-client] XML document encoding could not be determined, falling back to ${Sc}.`),new TextDecoder(Sc).decode(t)}const ia=new Map;let My={};function rl(){return My}function Ty(t,e="GET"){const i=`${e}#${t}`;if(ia.has(i))return ia.get(i);const n=fetch(t,{...rl(),method:e}).catch(s=>s).then(s=>(ia.delete(i),s));return ia.set(i,n),n.then(s=>{if(s instanceof Error)throw s;return s})}function Dc(t){return Ty(t).catch(()=>fetch(t,{...rl(),method:"HEAD",mode:"no-cors"}).catch(e=>{throw new qi(`Fetching the document failed either due to network errors or unreachable host, error is: ${e.message}`,0,!1)}).then(()=>{throw new qi("The document could not be fetched due to CORS limitations",0,!0)})).then(async e=>{if(!e.ok){const s=await e.text();throw new qi(`Received an error with code ${e.status}: ${s}`,e.status,!1)}const i=await e.arrayBuffer(),n=e.headers.get("Content-Type");return Ey(i,n)}).then(e=>Cy(e))}function nn(t,e){const i=t.match(/(https?%3A%2F%2F[^/]+)$/);if(i){const o=i[1],l=nn(decodeURIComponent(o),e);return t.replace(o,encodeURIComponent(l))}const n=new URL(t),s=Object.keys(e),a=s.map(o=>o.toLowerCase()),r=[];for(const o of n.searchParams.keys())a.indexOf(o.toLowerCase())>-1&&r.push(o);return r.map(o=>n.searchParams.delete(o)),s.forEach(o=>n.searchParams.set(o,e[o]===!0?"":e[o])),n.toString()}const _d="KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2Z1bmN0aW9uIEModCxlLHIpe2NvbnN0IG49dHlwZW9mIFdvcmtlckdsb2JhbFNjb3BlPCJ1IixpPWFzeW5jIGE9PntpZihhLnRhc2tOYW1lPT09dCl7bGV0IGwsdTt0cnl7bD1hd2FpdCByKGEucGFyYW1zKX1jYXRjaChjKXt1PWN9Y29uc3QgcD17dGFza05hbWU6dCxyZXF1ZXN0SWQ6YS5yZXF1ZXN0SWQsLi4ubCYme3Jlc3BvbnNlOmx9LC4uLnUmJntlcnJvcjp1fX07bj9lLnBvc3RNZXNzYWdlKHApOmUuZGlzcGF0Y2hFdmVudChuZXcgQ3VzdG9tRXZlbnQoIm9nYy1jbGllbnQucmVzcG9uc2UiLHtkZXRhaWw6cH0pKX19O24/ZS5hZGRFdmVudExpc3RlbmVyKCJtZXNzYWdlIixhPT5pKGEuZGF0YSkpOmUuYWRkRXZlbnRMaXN0ZW5lcigib2djLWNsaWVudC5yZXF1ZXN0IixhPT5pKGEuZGV0YWlsKSl9LyohIEByZ3JvdmUvcGFyc2UteG1sIHY0LjEuMCB8IElTQyBMaWNlbnNlIHwgQ29weXJpZ2h0IFJ5YW4gR3JvdmUgKi92YXIgVT1PYmplY3QuZGVmaW5lUHJvcGVydHksZHQ9T2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcixmdD1PYmplY3QuZ2V0T3duUHJvcGVydHlOYW1lcyxwdD1PYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LG10PSh0LGUpPT57Zm9yKHZhciByIGluIGUpVSh0LHIse2dldDplW3JdLGVudW1lcmFibGU6ITB9KX0sZ3Q9KHQsZSxyLG4pPT57aWY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(){let t;try{if(t=Pc&&(window.URL||window.webkitURL).createObjectURL(Pc),!t)throw"";return new Worker(t)}catch{return new Worker("data:application/javascript;base64,"+_d)}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}let Zr;function gr(){return Zr||(Zr=new Ry),Zr}function Iy(t){return fr("parseWmsCapabilities",gr(),{url:t})}function ky(t){return fr("parseWfsCapabilities",gr(),{url:t})}function Ly(t,e,i){return fr("queryWfsFeatureTypeDetails",gr(),{url:t,serviceVersion:e,featureTypeFull:i})}function Sy(t){return fr("parseWmtsCapabilities",gr(),{url:t})}let Dy=1e3*60*60;function Py(){return Dy}let on;function yr(){return on!==void 0?on:"caches"in globalThis?(on=caches.open("ogc-client").catch(t=>(console.info("[ogc-client] Cache could not be accessed for the following reason:",t),null)),on):(on=Promise.resolve(null),on)}async function Ay(t,...e){const i=await yr();if(!i)return;const n="https://cache/"+e.join("/");await i.put(n,new Response(JSON.stringify(t),{headers:{"x-expiry":(Date.now()+Py()).toString(10)}}))}async function Oy(...t){const e=await yr();if(!e)return;const i="https://cache/"+t.join("/");return e.match(i).then(n=>!!n&&parseInt(n.headers.get("x-expiry"))>Date.now())}async function Gy(...t){const e=await yr();if(!e)return;const i="https://cache/"+t.join("/"),n=await e.match(i);return n?n.clone().json():null}const na=new Map;async function hs(t,...e){if(await Zy(),await Oy(...e))return Gy(...e);const i=e.join("#");if(na.has(i))return na.get(i);const n=t();n instanceof Promise&&(n.then(()=>na.delete(i)),na.set(i,n));const s=await n;return await Ay(s,...e),s}async function Zy(){const t=await yr();if(!t)return;const e=await t.keys();for(const i of e){const n=await t.match(i);parseInt(n.headers.get("x-expiry"))<=Date.now()&&await t.delete(i)}}let Xy=class{constructor(e){const i=nn(e,{SERVICE:"WMS",REQUEST:"GetCapabilities"});this._capabilitiesPromise=hs(()=>Iy(i),"WMS","CAPABILITIES",i).then(({info:n,layers:s,version:a})=>{this._info=n,this._layers=s,this._version=a})}isReady(){return this._capabilitiesPromise.then(()=>this)}getServiceInfo(){return this._info}getLayers(){function e(i){return{title:i.title,name:i.name,abstract:i.abstract,..."children"in i&&{children:i.children.map(e)}}}return this._layers.map(e)}getLayerByName(e){let i=null;function n(s){if(i===null){if(s.name===e){i=s;return}"children"in s&&s.children.map(n)}}return this._layers.map(n),i}getSingleLayerName(){if(!this._layers)return null;const e=[];function i(n){n.name&&e.push(n),"children"in n&&n.children.map(i)}return this._layers.map(i),e.length===1?e[0].name:null}getVersion(){return this._version}};const Wy={name:"WmsEndpoint",components:{WmsLayerInfo:ey,ItemsTree:mr,InfoList:tn},data:()=>({loading:!1,error:null,endpoint:null,url:"https://ahocevar.com/geoserver/wms",selectedLayer:null}),computed:{loaded(){return this.endpoint&&this.loading===!1&&this.error===null}},methods:{async createEndpoint(){this.error=null,this.loading=!0,this.endpoint=new Xy(this.url);try{await this.endpoint.isReady()}catch(t){this.error=t.message}this.loading=!1},handleLayerClick(t,e){this.selectedLayer=this.endpoint.getLayerByName(t.name),e.preventDefault()}}},Ky={class:"d-flex flex-row my-4"},Vy={key:0},Uy={key:1},By=["title"],Hy=["onClick"],zy={key:1},qy={key:2};function jy(t,e,i,n,s,a){const r=Me("InfoList"),o=Me("ItemsTree"),l=Me("WmsLayerInfo");return D(),K("div",null,[C("div",Ky,[Ei(C("input",{class:"form-control me-3",placeholder:"Enter a WMS service URL here","onUpdate:modelValue":e[0]||(e[0]=c=>t.url=c)},null,512),[[dr,t.url]]),C("button",{type:"button",class:"btn btn-primary",onClick:e[1]||(e[1]=c=>a.createEndpoint())}," Analyze ")]),t.loading?(D(),K("div",Vy,"Loading...")):De("",!0),a.loaded?(D(),K("div",Uy,[B(r,{info:t.endpoint.getServiceInfo()},null,8,["info"]),B(o,{items:t.endpoint.getLayers(),style:{"min-height":"200px"}},{default:Je(({item:c})=>[C("div",{title:c.abstract},[c.name?(D(),K("a",{key:0,href:"",onClick:u=>a.handleLayerClick(c,u),class:"link-light"},Ge(c.title),9,Hy)):(D(),K("span",zy,Ge(c.title),1))],8,By)]),_:1},8,["items"]),t.selectedLayer?(D(),wt(l,{key:0,layer:t.selectedLayer,"endpoint-url":t.url},null,8,["layer","endpoint-url"])):De("",!0)])):De("",!0),t.error?(D(),K("div",qy,"Error: "+Ge(t.error),1)):De("",!0)])}const Yy=We(Wy,[["render",jy]]),$y={name:"WfsFeatureTypeInfo",components:{InfoList:tn},props:{featureType:Object,endpoint:Object},data:()=>({loadingValues:!1,featurePropsDetails:null}),computed:{featureTypeInfo(){return{..."title"in this.featureType&&{title:this.featureType.title},..."abstract"in this.featureType&&{abstract:this.featureType.abstract},CRS:[this.featureType.defaultCrs,...this.featureType.otherCrs].join(", "),..."objectCount"in this.featureType&&{"object count":this.featureType.objectCount},..."geometryName"in this.featureType&&{"geometry name":this.featureType.geometryName},..."geometryType"in this.featureType&&{"geometry type":this.featureType.geometryType}}},featureProperties(){return{...this.featureType.properties}},uniqueValues(){return this.featurePropsDetails===null?{}:Object.keys(this.featurePropsDetails).reduce((t,e)=>({...t,[e]:this.featurePropsDetails[e].uniqueValues.sort((i,n)=>n.count-i.count).filter((i,n)=>n<=8).map((i,n)=>n<8?`${i.value} (${i.count})`:"...").join(", ")}),{})}},methods:{async loadValues(){this.loadingValues=!0,this.featurePropsDetails=await this.endpoint.getFeatureTypePropDetails(this.featureType.name),this.loadingValues=!1}},watch:{featureType(){this.loadingValues=!1,this.featurePropsDetails=null}}},Jy=C("p",null,"Properties",-1),Qy={key:0},e1={key:1},t1={key:2},i1=C("p",null,"Unique values",-1);function n1(t,e,i,n,s,a){const r=Me("InfoList");return D(),K("div",null,[C("p",null,Ge(i.featureType.name),1),B(r,{info:a.featureTypeInfo},null,8,["info"]),Jy,B(r,{info:a.featureProperties},null,8,["info"]),t.featurePropsDetails===null&&!t.loadingValues?(D(),K("div",Qy,[C("button",{type:"button",class:"btn btn-primary",onClick:e[0]||(e[0]=o=>a.loadValues())}," Load unique values ")])):De("",!0),t.loadingValues?(D(),K("div",e1,"Loading unique values...")):De("",!0),t.featurePropsDetails!==null?(D(),K("div",t1,[i1,B(r,{info:a.uniqueValues},null,8,["info"])])):De("",!0)])}const s1=We($y,[["render",n1]]);function a1(t,e,i,n){const{name:s,title:a,abstract:r,defaultCrs:o,otherCrs:l,outputFormats:c,latLonBoundingBox:u}=t,h=n.startsWith("2.0")?"numberMatched":"numberOfFeatures",d=parseInt(Pi(Ic(i),h)),m=kc(Ic(e),"complexType",!0)[0],f=kc(m,"element",!0),p=f.filter(N=>Pi(N,"type").startsWith("xsd:")).reduce((N,w)=>({...N,[Pi(w,"name")]:r1(Pi(w,"type"))}),{}),y=f.filter(N=>Pi(N,"type").startsWith("gml:"))[0],_=y?Pi(y,"name"):void 0,v=y?o1(Pi(y,"type")):void 0;return{name:s,...a&&{title:a},...r&&{abstract:r},...u&&{boundingBox:u},...o&&{defaultCrs:o},...l&&{otherCrs:l},...c&&{outputFormats:c},properties:p,..._&&{geometryName:_},...v&&{geometryType:v},...!Number.isNaN(d)&&{objectCount:d}}}function r1(t){switch(t.indexOf(":")>-1?t.substr(t.indexOf(":")+1):t){case"string":return"string";case"boolean":return"boolean";case"float":case"double":case"decimal":return"float";case"long":case"byte":case"integer":case"int":case"positiveInteger":case"negativeInteger":case"nonPositiveInteger":case"nonNegativeInteger":case"short":case"unsignedLong":case"unsignedInt":case"unsignedShort":case"unsignedByte":return"integer";default:return"string"}}function o1(t){switch(t.indexOf(":")>-1?t.substr(t.indexOf(":")+1):t){case"PointPropertyType":return"point";case"MultiPointPropertyType":return"multipoint";case"CurvePropertyType":case"LineStringPropertyType":return"linestring";case"MultiCurvePropertyType":case"MultiLineStringPropertyType":return"linestring";case"PolygonPropertyType":case"SurfacePropertyType":return"polygon";case"MultiPolygonPropertyType":case"MultiSurfacePropertyType":return"multipolygon";default:return"unknown"}}function Ac(t,e,i,n,s,a,r,o,l,c){const u=e==="2.0.0"?"TYPENAMES":"TYPENAME",h=e==="2.0.0"?"COUNT":"MAXFEATURES",d={SERVICE:"WFS",REQUEST:"GetFeature",VERSION:e,[u]:i};if(n!==void 0&&(d.OUTPUTFORMAT=n),a!==void 0&&(d.PROPERTYNAME=a.join(",")),r?(d.RESULTTYPE="hits",d[h]="1"):s!==void 0&&(d[h]=s.toString(10)),o&&(d.SRSNAME=o),l){const m=l.join(",");d.BBOX=c?`${m},${c}`:m}return nn(t,d)}function l1(t,e,i){return nn(t,{SERVICE:"WFS",REQUEST:"DescribeFeatureType",VERSION:e,[e==="2.0.0"?"TYPENAMES":"TYPENAME"]:i})}let c1=class{constructor(e){this._capabilitiesUrl=nn(e,{SERVICE:"WFS",REQUEST:"GetCapabilities"}),this._capabilitiesPromise=hs(()=>ky(this._capabilitiesUrl),"WFS","CAPABILITIES",this._capabilitiesUrl).then(({info:i,featureTypes:n,version:s})=>{this._info=i,this._featureTypes=n,this._version=s})}isReady(){return this._capabilitiesPromise.then(()=>this)}getServiceInfo(){return this._info}getFeatureTypes(){return this._featureTypes.map(e=>({name:e.name,..."title"in e&&{title:e.title},..."abstract"in e&&{abstract:e.abstract},..."latLonBoundingBox"in e&&{boundingBox:e.latLonBoundingBox}}))}_getFeatureTypeByName(e){if(!this._featureTypes)return null;const i=Ga(e)!==e;return this._featureTypes.find(n=>i?n.name===e:Ga(n.name)===e)||null}getFeatureTypeSummary(e){const i=this._getFeatureTypeByName(e);return i?{name:i.name,..."title"in i&&{title:i.title},..."abstract"in i&&{abstract:i.abstract},..."latLonBoundingBox"in i&&{boundingBox:i.latLonBoundingBox},defaultCrs:i.defaultCrs,otherCrs:i.otherCrs,outputFormats:i.outputFormats}:null}getFeatureTypeFull(e){const i=this._getFeatureTypeByName(e);return i?hs(()=>{const n=l1(this._capabilitiesUrl,this._version,e),s=Ac(this._capabilitiesUrl,this._version,e,void 0,void 0,void 0,!0);return Promise.all([Dc(n),Dc(s)]).then(([a,r])=>a1(i,a,r,this._version))},"WFS","FEATURETYPEINFO",this._capabilitiesUrl,e):null}getSingleFeatureTypeName(){return this._featureTypes&&this._featureTypes.length===1?this._featureTypes[0].name:null}async getFeatureTypePropDetails(e){const i=await this.getFeatureTypeFull(e);return i===null?null:hs(()=>Ly(this._capabilitiesUrl,this._version,i).then(n=>n.props),"WFS","FEATURETYPEPROPDETAILS",this._capabilitiesUrl,e)}getVersion(){return this._version}_getJsonCompatibleOutputFormat(e){const i=this._getFeatureTypeByName(e);if(!i)throw new Error(`The following feature type was not found in the service: ${e}`);const n=i.outputFormats.filter(s=>s.toLowerCase().indexOf("json")>-1);return n.length?n[0]:null}supportsJson(e){return this._featureTypes?!!this._getJsonCompatibleOutputFormat(e):null}getFeatureUrl(e,i){if(!this._featureTypes)return null;const{maxFeatures:n,asJson:s,outputFormat:a,outputCrs:r,extent:o,extentCrs:l}=i||{},c=this._getFeatureTypeByName(e);if(!c)throw new Error(`The following feature type was not found in the service: ${e}`);let u=a;if(s){if(u=this._getJsonCompatibleOutputFormat(e)||void 0,!u)throw new Error(`The endpoint does not appear to support GeoJSON for the feature type ${c.name}`)}else a&&c.outputFormats.indexOf(a)===-1&&console.warn(`[ogc-client] The following output format type was not found in the feature type ${c.name}: ${a}`);return Ac(this._capabilitiesUrl,this._version,c.name,u,n,void 0,void 0,r,o,l)}};const u1={name:"WfsEndpoint",components:{WfsFeatureTypeInfo:s1,ItemsTree:mr,InfoList:tn},data:()=>({loading:!1,error:null,endpoint:null,url:"https://ahocevar.com/geoserver/wfs",selectedFeatureType:null}),computed:{loaded(){return this.endpoint&&this.loading===!1&&this.error===null}},methods:{async createEndpoint(){this.error=null,this.loading=!0,this.endpoint=new c1(this.url);try{await this.endpoint.isReady()}catch(t){this.error=t.message}this.loading=!1},async handleItemClick(t,e){e.preventDefault(),this.selectedFeatureType=await this.endpoint.getFeatureTypeFull(t.name)}}},h1={class:"d-flex flex-row my-4"},d1=C("div",{class:"spacer-s"},null,-1),m1={key:0},f1={key:1},p1=["title"],g1=["onClick"],y1={key:1},b1={key:2};function _1(t,e,i,n,s,a){const r=Me("InfoList"),o=Me("ItemsTree"),l=Me("WfsFeatureTypeInfo");return D(),K("div",null,[C("div",h1,[Ei(C("input",{class:"form-control me-3",placeholder:"Enter a WFS service URL here","onUpdate:modelValue":e[0]||(e[0]=c=>t.url=c)},null,512),[[dr,t.url]]),d1,C("button",{type:"button",class:"btn btn-primary",onClick:e[1]||(e[1]=c=>a.createEndpoint())}," Analyze ")]),t.loading?(D(),K("div",m1,"Loading...")):De("",!0),a.loaded?(D(),K("div",f1,[B(r,{info:t.endpoint.getServiceInfo()},null,8,["info"]),B(o,{items:t.endpoint.getFeatureTypes(),style:{"min-height":"200px"}},{default:Je(({item:c})=>[C("div",{title:c.abstract},[c.name?(D(),K("a",{key:0,href:"",onClick:u=>a.handleItemClick(c,u),class:"link-light"},Ge(c.title),9,g1)):(D(),K("span",y1,Ge(c.title),1))],8,p1)]),_:1},8,["items"]),t.selectedFeatureType?(D(),wt(l,{key:0,"feature-type":t.selectedFeatureType,endpoint:t.endpoint},null,8,["feature-type","endpoint"])):De("",!0)])):De("",!0),t.error?(D(),K("div",b1,"Error: "+Ge(t.error),1)):De("",!0)])}const v1=We(u1,[["render",_1]]);const x1={name:"Async",props:{promise:Promise},data:()=>({pending:!0,resolved:null,rejected:null}),watch:{promise:{immediate:!0,handler(t){t instanceof Promise?(this.pending=!0,t.then(e=>{this.resolved=e,this.rejected=null,this.pending=!1},e=>{this.rejected=e,this.resolved=null,this.pending=!1})):(this.resolved=t,this.rejected=null,this.pending=!1)}}}},w1=t=>(Qi("data-v-b4911245"),t=t(),en(),t),C1={key:0},N1=w1(()=>C("span",null,"Loading...",-1)),F1={key:1},E1={class:"error"},M1={key:2};function T1(t,e,i,n,s,a){return t.pending?(D(),K("div",C1,[Hi(t.$slots,"pending",{},()=>[N1],!0)])):t.rejected?(D(),K("div",F1,[Hi(t.$slots,"catch",{error:t.rejected},()=>[C("span",E1,"Error: "+Ge(t.rejected),1)],!0)])):(D(),K("div",M1,[Hi(t.$slots,"then",{result:t.resolved},()=>[C("span",null,"Loaded: "+Ge(t.resolved),1)],!0)]))}const R1=We(x1,[["render",T1],["__scopeId","data-v-b4911245"]]),I1=["string","number","integer","date","point","linestring","polygon","geometry"];function Cs(t){const e=new URL(t,window.location.toString());e.searchParams.set("f","json");const i=rl(),n="headers"in i?i.headers:{};return fetch(e.toString(),{...i,headers:{...n,Accept:"application/json"}}).then(s=>{if(!s.ok)throw new Error(`The document at ${e} could not be fetched.`);return s.json().catch(()=>{throw new Error(`The document at ${e} does not appear to be valid JSON.`)})})}function vd(t){return Cs(t).then(e=>{if(!Ns(e,["data","http://www.opengis.net/def/rel/ogc/1.0/data"])||!Ns(e,["conformance","http://www.opengis.net/def/rel/ogc/1.0/conformance"])){let i=wd(t);if(!i)throw new Error("Could not find a root JSON document containing both a link with rel='data' and a link with rel='conformance'.");return"collections"in e&&(i=`${i}/`),vd(i)}return e})}function xd(t){return Cs(t).then(e=>{if(Ns(e,["data","http://www.opengis.net/def/rel/ogc/1.0/data"]))return null;let i=wd(t);return Ns(e,["items"])?e:("collections"in e&&(i=`${i}/`),xd(i))})}function ds(t,e,i){var s;const n=(s=t.links)==null?void 0:s.filter(a=>Array.isArray(e)?e.indexOf(a.rel)>-1:a.rel===e);return n!=null&&n.length?new URL(n[0].href,i||window.location.toString()).toString():null}function Qn(t,e,i){const n=ds(t,e,i);return n?Cs(n):Promise.reject(new qi(`Could not find link with type: ${e}`))}function Ns(t,e){return!!ds(t,e)}function Oc(t,e){if(!Ns(t,e))throw new qi(`Could not find link with type: ${e}`)}function wd(t){const e=new URL(t,window.location.toString()),i=e.pathname.replace(/\/$/,"").split("/");return i.length<=2?null:(e.pathname=i.slice(0,-1).join("/"),e.toString())}function k1(t){try{Oc(t,["data","http://www.opengis.net/def/rel/ogc/1.0/data"]),Oc(t,["conformance","http://www.opengis.net/def/rel/ogc/1.0/conformance"])}catch(e){throw new qi(`The endpoint appears non-conforming, the following error was encountered: +${e.message}`)}return{title:t.title,description:t.description,attribution:t.attribution}}function L1(t){return t.conformsTo}function Xr(t=null){return e=>e.collections.filter(i=>t===null||i.itemType===t).map(i=>i.id)}function S1(t){return t.indexOf("http://www.opengis.net/spec/ogcapi-tiles-1/1.0/conf/core")>-1}function D1(t){return t.indexOf("http://www.opengis.net/spec/ogcapi-styles-1/0.0/conf/core")>-1}function P1([t,e]){return(["http://www.opengis.net/spec/ogcapi-records-1/1.0/conf/record-core","http://www.opengis.net/spec/ogcapi-records-1/1.0/conf/record-collection","http://www.opengis.net/spec/ogcapi-records-1/1.0/conf/record-api"].every(n=>e.indexOf(n)>-1)||e.indexOf("http://www.opengis.net/spec/ogcapi-records-1/1.0/conf/core")>-1)&&t.some(n=>n.itemType==="record")}function A1([t,e]){return e.indexOf("http://www.opengis.net/spec/ogcapi-features-1/1.0/conf/core")>-1&&t.some(i=>i.itemType==="feature")}function O1(t){const{links:e,...i}=t;return{formats:e.filter(s=>s.rel==="items").map(s=>s.type),...i}}function Gc(t){return"properties"in t&&typeof t.properties=="object"?Object.keys(t.properties).map(e=>{const i=t.properties[e];let n="string";if(typeof i.$ref=="string"){const s=i.$ref.toLowerCase();s.indexOf("point")>-1?n="point":s.indexOf("linestring")>-1?n="linestring":s.indexOf("polygon")>-1?n="polygon":s.indexOf("geometry")>-1&&(n="geometry")}else typeof i.type=="string"&&I1.indexOf(i.type.toLowerCase())>-1&&(n=i.type.toLowerCase());return{name:e,type:n,...typeof i.title=="string"&&{title:i.title}}}):Array.isArray(t)?t.map(e=>({name:e,type:"string"})):[]}let G1=class{constructor(e){this.baseUrl=e,this.root=vd(this.baseUrl).catch(i=>{throw new Error(`The endpoint appears non-conforming, the following error was encountered: +${i.message}`)}),this.conformance=this.root.then(i=>Qn(i,["conformance","http://www.opengis.net/def/rel/ogc/1.0/conformance"],this.baseUrl)).catch(()=>null),this.data=this.root.then(i=>Qn(i,["data","http://www.opengis.net/def/rel/ogc/1.0/data"],this.baseUrl)).then(async i=>{const n=await xd(this.baseUrl);return n!==null&&Array.isArray(i.collections)&&(i.collections=i.collections.filter(s=>s.id===n.id)),i}).catch(()=>null)}get info(){return this.root.then(k1)}get conformanceClasses(){return this.conformance.then(L1)}get allCollections(){return this.data.then(Xr())}get recordCollections(){return Promise.all([this.data,this.hasRecords]).then(([e,i])=>i?e:{collections:[]}).then(Xr("record"))}get featureCollections(){return Promise.all([this.data,this.hasFeatures]).then(([e,i])=>i?e:{collections:[]}).then(Xr("feature"))}get hasTiles(){return this.conformanceClasses.then(S1)}get hasStyles(){return this.conformanceClasses.then(D1)}get hasFeatures(){return Promise.all([this.data.then(e=>e.collections),this.conformanceClasses]).then(A1)}get hasRecords(){return Promise.all([this.data.then(e=>e.collections),this.conformanceClasses]).then(P1)}getCollectionDocument(e){return Promise.all([this.allCollections,this.data]).then(([i,n])=>{if(i.indexOf(e)===-1)throw new qi(`Collection not found: ${e}`);return n.collections.find(s=>s.id===e)}).then(i=>Qn(i,"self",this.baseUrl))}async getCollectionInfo(e){const i=await this.getCollectionDocument(e),n=O1(i),[s,a]=await Promise.all([Qn(i,["queryables","http://www.opengis.net/def/rel/ogc/1.0/queryables"],this.baseUrl).then(Gc).catch(()=>[]),Qn(i,["sortables","http://www.opengis.net/def/rel/ogc/1.0/sortables"],this.baseUrl).then(Gc).catch(()=>[])]);return{...n,queryables:s,sortables:a}}getCollectionItems(e,i=10,n=0,s=null,a=null,r=null,o=null){return this.getCollectionDocument(e).then(l=>{const c=new URL(ds(l,"items",this.baseUrl),window.location.toString());return c.searchParams.set("limit",i.toString()),c.searchParams.set("offset",n.toString()),s!==null&&c.searchParams.set("skipGeometry",s.toString()),a!==null&&c.searchParams.set("sortby",a.join(",").toString()),r!==null&&c.searchParams.set("bbox",r.join(",").toString()),o!==null&&c.searchParams.set("properties",o.join(",").toString()),c.toString()}).then(Cs).then(l=>l.features)}getCollectionItem(e,i){return this.getCollectionDocument(e).then(n=>{const s=new URL(ds(n,"items",this.baseUrl),window.location.toString());return s.pathname+=`/${i}`,s.toString()}).then(Cs)}getCollectionItemsUrl(e,i={}){return this.getCollectionDocument(e).then(n=>{const s=this.baseUrl||"",a=ds(n,"items",s),r=new URL(a),o=i.outputFormat||"json";return r.searchParams.set("f",o),i.query!==void 0&&(r.search+=(r.search?"&":"")+i.query),i.limit!==void 0&&r.searchParams.set("limit",i.limit.toString()),i.offset!==void 0&&r.searchParams.set("offset",i.offset.toString()),i.outputCrs!==void 0&&r.searchParams.set("crs",i.outputCrs),i.extent!==void 0&&i.extent.length===4&&r.searchParams.set("bbox",i.extent.join(",")),i.extentCrs!==void 0&&r.searchParams.set("bbox-crs",i.extentCrs),r.toString()}).catch(n=>{throw console.error("Error fetching collection items URL:",n),n})}};const Z1={name:"OgcApiEndpoint",components:{Async:R1,ItemsTree:mr,InfoList:tn},data:()=>({endpoint:null,endpointSummary:null,endpointCollections:null,url:"https://demo.ldproxy.net/zoomstack"}),computed:{loaded(){return this.endpoint&&this.loading===!1&&this.error===null}},methods:{createEndpoint(){this.endpoint=new G1(this.url),this.endpointSummary=Promise.all([this.endpoint.info,this.endpoint.hasTiles,this.endpoint.hasStyles,this.endpoint.hasRecords,this.endpoint.hasFeatures,this.endpoint.allCollections]).then(([t,e,i,n,s,a])=>({info:{...t,hasTiles:e,hasStyles:i,hasRecords:n,hasFeatures:s},collections:a}))}}},X1={class:"d-flex flex-row my-4"},W1=C("div",{class:"spacer-s"},null,-1);function K1(t,e,i,n,s,a){const r=Me("InfoList"),o=Me("ItemsTree"),l=Me("Async");return D(),K("div",null,[C("div",X1,[Ei(C("input",{class:"form-control me-3",placeholder:"Enter an OGC API endpoint URL here","onUpdate:modelValue":e[0]||(e[0]=c=>t.url=c)},null,512),[[dr,t.url]]),W1,C("button",{type:"button",class:"btn btn-primary",onClick:e[1]||(e[1]=c=>a.createEndpoint())}," Analyze ")]),t.endpointSummary?(D(),wt(l,{key:0,promise:t.endpointSummary},{then:Je(({result:c})=>[B(r,{info:c.info},null,8,["info"]),B(o,{items:c.collections,style:{"min-height":"200px"}},{default:Je(({item:u})=>[C("span",null,Ge(u),1)]),_:2},1032,["items"])]),_:1},8,["promise"])):De("",!0)])}const V1=We(Z1,[["render",K1]]),U1="modulepreload",B1=function(t,e){return new URL(t,e).href},Zc={},H1=function(e,i,n){if(!i||i.length===0)return e();const s=document.getElementsByTagName("link");return Promise.all(i.map(a=>{if(a=B1(a,n),a in Zc)return;Zc[a]=!0;const r=a.endsWith(".css"),o=r?'[rel="stylesheet"]':"";if(!!n)for(let u=s.length-1;u>=0;u--){const h=s[u];if(h.href===a&&(!r||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${a}"]${o}`))return;const c=document.createElement("link");if(c.rel=r?"stylesheet":U1,r||(c.as="script",c.crossOrigin=""),c.href=a,document.head.appendChild(c),r)return new Promise((u,h)=>{c.addEventListener("load",u),c.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${a}`)))})})).then(()=>e()).catch(a=>{const r=new Event("vite:preloadError",{cancelable:!0});if(r.payload=a,window.dispatchEvent(r),!r.defaultPrevented)throw a})};function z1(t,e,i,n,s,a,r,o,l){const c={layer:i,style:n,tilematrixset:s,Service:"WMTS",Request:"GetTile",Format:l,TileMatrix:a,TileCol:o.toString(),TileRow:r.toString()};if(e==="REST"){let u=t;for(const h in c)u=u.replace(new RegExp(`{${h}}`,"ig"),c[h]);return u}else return nn(t,c)}let q1=class{constructor(e){this._info=null,this._layers=null,this._matrixSets=null;const i=nn(e,{SERVICE:"WMTS",REQUEST:"GetCapabilities"});this._capabilitiesPromise=hs(()=>Sy(i),"WMTS","CAPABILITIES",i).then(({info:n,layers:s,matrixSets:a})=>{this._info=n,this._layers=s,this._matrixSets=a})}isReady(){return this._capabilitiesPromise.then(()=>this)}getServiceInfo(){return this._info}getLayers(){return this._layers}getMatrixSets(){return this._matrixSets}getMatrixSetByIdentifier(e){return this._matrixSets?this._matrixSets.find(i=>i.identifier===e)??null:null}getLayerByName(e){return this._layers?this._layers.find(i=>i.name===e)??null:null}getSingleLayerName(){return this._layers&&this._layers.length===1?this._layers[0].name:null}getLayerResourceLink(e,i){if(!this._layers)return null;const n=this.getLayerByName(e);let s=0;i&&(s=n.resourceLinks.findIndex(r=>r.format===i)||0);const a=n.resourceLinks[s];return i&&a.format!==i&&console.warn(`[ogc-client] Requested '${i}' format for the WMTS layer but it is not available in REST encoding, falling back to '${a.format}'`),a}getTileUrl(e,i,n,s,a,r,o){if(!this._layers)return null;const l=this.getLayerResourceLink(e,o);return z1(l.url,l.encoding,e,i,n,s,a,r,l.format)}getDefaultDimensions(e){if(!this._layers)return null;const i=this.getLayerByName(e);return i.dimensions?i.dimensions.reduce((n,s)=>({...n,[s.identifier]:s.defaultValue}),{}):{}}getOpenLayersTileGrid(e,i){if(!this._layers)return null;this.tileGridModule||(this.tileGridModule=H1(()=>import("./ol-tilegrid-9859603a.js"),[],import.meta.url).catch(r=>(console.warn(`[ogc-client] Cannot use getOpenLayersTileGrid, the 'ol' package is probably not available. +`,r),null)));const n=this.getLayerByName(e),s=n.matrixSets.find(r=>r.identifier===i)??n.matrixSets[0],a=this.getMatrixSetByIdentifier(s.identifier);return this.tileGridModule.then(({buildOpenLayersTileGrid:r})=>r(a,s.limits))}};class j1{constructor(e){this.propagationStopped,this.defaultPrevented,this.type=e,this.target=null}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.propagationStopped=!0}}const ki=j1,Fs={PROPERTYCHANGE:"propertychange"};class Y1{constructor(){this.disposed=!1}dispose(){this.disposed||(this.disposed=!0,this.disposeInternal())}disposeInternal(){}}const ol=Y1;function ll(t,e){return t>e?1:t0?s-1:s}return n-1}if(i>0){for(let s=1;s0||i&&r===0)})}function Za(){return!0}function _r(){return!1}function Xa(){}function Q1(t){let e=!1,i,n,s;return function(){const a=Array.prototype.slice.call(arguments);return(!e||this!==s||!br(a,n))&&(e=!0,s=this,n=a,i=t.apply(this,arguments)),i}}function vr(t){for(const e in t)delete t[e]}function e2(t){let e;for(e in t)return!1;return!e}class t2 extends ol{constructor(e){super(),this.eventTarget_=e,this.pendingRemovals_=null,this.dispatching_=null,this.listeners_=null}addEventListener(e,i){if(!e||!i)return;const n=this.listeners_||(this.listeners_={}),s=n[e]||(n[e]=[]);s.includes(i)||s.push(i)}dispatchEvent(e){const i=typeof e=="string",n=i?e:e.type,s=this.listeners_&&this.listeners_[n];if(!s)return;const a=i?new ki(e):e;a.target||(a.target=this.eventTarget_||this);const r=this.dispatching_||(this.dispatching_={}),o=this.pendingRemovals_||(this.pendingRemovals_={});n in r||(r[n]=0,o[n]=0),++r[n];let l;for(let c=0,u=s.length;c0:!1}removeEventListener(e,i){if(!this.listeners_)return;const n=this.listeners_[e];if(!n)return;const s=n.indexOf(i);s!==-1&&(this.pendingRemovals_&&e in this.pendingRemovals_?(n[s]=Xa,++this.pendingRemovals_[e]):(n.splice(s,1),n.length===0&&delete this.listeners_[e]))}}const ul=t2,le={CHANGE:"change",ERROR:"error",BLUR:"blur",CLEAR:"clear",CONTEXTMENU:"contextmenu",CLICK:"click",DBLCLICK:"dblclick",DRAGENTER:"dragenter",DRAGOVER:"dragover",DROP:"drop",FOCUS:"focus",KEYDOWN:"keydown",KEYPRESS:"keypress",LOAD:"load",RESIZE:"resize",TOUCHMOVE:"touchmove",WHEEL:"wheel"};function Ne(t,e,i,n,s){if(n&&n!==t&&(i=i.bind(n)),s){const r=i;i=function(){t.removeEventListener(e,i),r.apply(this,arguments)}}const a={target:t,type:e,listener:i};return t.addEventListener(e,i),a}function Wa(t,e,i,n){return Ne(t,e,i,n,!0)}function He(t){t&&t.target&&(t.target.removeEventListener(t.type,t.listener),vr(t))}class xr extends ul{constructor(){super(),this.on=this.onInternal,this.once=this.onceInternal,this.un=this.unInternal,this.revision_=0}changed(){++this.revision_,this.dispatchEvent(le.CHANGE)}getRevision(){return this.revision_}onInternal(e,i){if(Array.isArray(e)){const n=e.length,s=new Array(n);for(let a=0;a0;)this.pop()}extend(e){for(let i=0,n=e.length;ithis.getLength())throw new Error("Index out of bounds: "+e);this.unique_&&this.assertUnique_(i),this.array_.splice(e,0,i),this.updateLength_(),this.dispatchEvent(new sa(St.ADD,i,e))}pop(){return this.removeAt(this.getLength()-1)}push(e){this.unique_&&this.assertUnique_(e);const i=this.getLength();return this.insertAt(i,e),this.getLength()}remove(e){const i=this.array_;for(let n=0,s=i.length;n=this.getLength())return;const i=this.array_[e];return this.array_.splice(e,1),this.updateLength_(),this.dispatchEvent(new sa(St.REMOVE,i,e)),i}setAt(e,i){const n=this.getLength();if(e>=n){this.insertAt(e,i);return}if(e<0)throw new Error("Index out of bounds: "+e);this.unique_&&this.assertUnique_(i,e);const s=this.array_[e];this.array_[e]=i,this.dispatchEvent(new sa(St.REMOVE,s,e)),this.dispatchEvent(new sa(St.ADD,i,e))}updateLength_(){this.set(Wc.LENGTH,this.array_.length)}assertUnique_(e,i){for(let n=0,s=this.array_.length;ns&&(l=l|nt.RIGHT),oa&&(l=l|nt.ABOVE),l===nt.UNKNOWN&&(l=nt.INTERSECTING),l}function sn(){return[1/0,1/0,-1/0,-1/0]}function Os(t,e,i,n,s){return s?(s[0]=t,s[1]=e,s[2]=i,s[3]=n,s):[t,e,i,n]}function wr(t){return Os(1/0,1/0,-1/0,-1/0,t)}function f2(t,e){const i=t[0],n=t[1];return Os(i,n,i,n,e)}function p2(t,e,i,n,s){const a=wr(s);return kd(a,t,e,i,n)}function yo(t,e){return t[0]==e[0]&&t[2]==e[2]&&t[1]==e[1]&&t[3]==e[3]}function g2(t,e){return e[0]t[2]&&(t[2]=e[2]),e[1]t[3]&&(t[3]=e[3]),t}function xa(t,e){e[0]t[2]&&(t[2]=e[0]),e[1]t[3]&&(t[3]=e[1])}function kd(t,e,i,n,s){for(;ie[0]?n[0]=t[0]:n[0]=e[0],t[1]>e[1]?n[1]=t[1]:n[1]=e[1],t[2]=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function Er(t){return t[2]=r&&p<=l),!n&&a&nt.RIGHT&&!(s&nt.RIGHT)&&(y=m-(d-l)*f,n=y>=o&&y<=c),!n&&a&nt.BELOW&&!(s&nt.BELOW)&&(p=d-(m-o)/f,n=p>=r&&p<=l),!n&&a&nt.LEFT&&!(s&nt.LEFT)&&(y=m-(d-r)*f,n=y>=o&&y<=c)}return n}const Ka={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]};var yt={name:"xyz",min:[0,0,0],channel:["X","Y","Z"],alias:["XYZ","ciexyz","cie1931"]};yt.whitepoint={2:{A:[109.85,100,35.585],C:[98.074,100,118.232],D50:[96.422,100,82.521],D55:[95.682,100,92.149],D65:[95.045592705167,100,108.9057750759878],D75:[94.972,100,122.638],F2:[99.187,100,67.395],F7:[95.044,100,108.755],F11:[100.966,100,64.37],E:[100,100,100]},10:{A:[111.144,100,35.2],C:[97.285,100,116.145],D50:[96.72,100,81.427],D55:[95.799,100,90.926],D65:[94.811,100,107.304],D75:[94.416,100,120.641],F2:[103.28,100,69.026],F7:[95.792,100,107.687],F11:[103.866,100,65.627],E:[100,100,100]}};yt.max=yt.whitepoint[2].D65;yt.rgb=function(t,e){e=e||yt.whitepoint[2].E;var i=t[0]/e[0],n=t[1]/e[1],s=t[2]/e[2],a,r,o;return a=i*3.240969941904521+n*-1.537383177570093+s*-.498610760293,r=i*-.96924363628087+n*1.87596750150772+s*.041555057407175,o=i*.055630079696993+n*-.20397695888897+s*1.056971514242878,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:a=a*12.92,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:r=r*12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o=o*12.92,a=Math.min(Math.max(0,a),1),r=Math.min(Math.max(0,r),1),o=Math.min(Math.max(0,o),1),[a*255,r*255,o*255]};Ka.xyz=function(t,e){var i=t[0]/255,n=t[1]/255,s=t[2]/255;i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,s=s>.04045?Math.pow((s+.055)/1.055,2.4):s/12.92;var a=i*.41239079926595+n*.35758433938387+s*.18048078840183,r=i*.21263900587151+n*.71516867876775+s*.072192315360733,o=i*.019330818715591+n*.11919477979462+s*.95053215224966;return e=e||yt.whitepoint[2].E,[a*e[0],r*e[1],o*e[2]]};const Sd={name:"luv",min:[0,-134,-140],max:[100,224,122],channel:["lightness","u","v"],alias:["LUV","cieluv","cie1976"],xyz:function(t,e,i){var n,s,a,r,o,l,c,u,h,d,m,f,p;if(a=t[0],r=t[1],o=t[2],a===0)return[0,0,0];var y=.0011070564598794539;return e=e||"D65",i=i||2,h=yt.whitepoint[i][e][0],d=yt.whitepoint[i][e][1],m=yt.whitepoint[i][e][2],f=4*h/(h+15*d+3*m),p=9*d/(h+15*d+3*m),n=r/(13*a)+f||0,s=o/(13*a)+p||0,c=a>8?d*Math.pow((a+16)/116,3):d*a*y,l=c*9*n/(4*s)||0,u=c*(12-3*n-20*s)/(4*s)||0,[l,c,u]}};yt.luv=function(t,e,i){var n,s,a,r,o,l,c,u,h,d,m,f,p,y=.008856451679035631,_=903.2962962962961;e=e||"D65",i=i||2,h=yt.whitepoint[i][e][0],d=yt.whitepoint[i][e][1],m=yt.whitepoint[i][e][2],f=4*h/(h+15*d+3*m),p=9*d/(h+15*d+3*m),l=t[0],c=t[1],u=t[2],n=4*l/(l+15*c+3*u)||0,s=9*c/(l+15*c+3*u)||0;var v=c/d;return a=v<=y?_*v:116*Math.pow(v,1/3)-16,r=13*a*(n-f),o=13*a*(s-p),[a,r,o]};Sd.lchuv=function(t){var e=t[0],i=t[1],n=t[2],s=Math.sqrt(i*i+n*n),a=Math.atan2(n,i),r=a*360/2/Math.PI;return r<0&&(r+=360),[e,s,r]};yt.lchuv=function(t){return Sd.lchuv(yt.luv(t))};var x2={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const Bc=ny(x2);var Hc={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function w2(t){var u,h;var e,i=[],n=1,s;if(typeof t=="number")return{space:"rgb",values:[t>>>16,(t&65280)>>>8,t&255],alpha:1};if(typeof t=="number")return{space:"rgb",values:[t>>>16,(t&65280)>>>8,t&255],alpha:1};if(t=String(t).toLowerCase(),Bc[t])i=Bc[t].slice(),s="rgb";else if(t==="transparent")n=0,s="rgb",i=[0,0,0];else if(t[0]==="#"){var a=t.slice(1),r=a.length,o=r<=4;n=1,o?(i=[parseInt(a[0]+a[0],16),parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16)],r===4&&(n=parseInt(a[3]+a[3],16)/255)):(i=[parseInt(a[0]+a[1],16),parseInt(a[2]+a[3],16),parseInt(a[4]+a[5],16)],r===8&&(n=parseInt(a[6]+a[7],16)/255)),i[0]||(i[0]=0),i[1]||(i[1]=0),i[2]||(i[2]=0),s="rgb"}else if(e=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(t)){var l=e[1];s=l.replace(/a$/,"");var c=s==="cmyk"?4:s==="gray"?1:3;i=e[2].trim().split(/\s*[,\/]\s*|\s+/),s==="color"&&(s=i.shift()),i=i.map(function(d,m){if(d[d.length-1]==="%")return d=parseFloat(d)/100,m===3?d:s==="rgb"?d*255:s[0]==="h"||s[0]==="l"&&!m?d*100:s==="lab"?d*125:s==="lch"?m<2?d*150:d*360:s[0]==="o"&&!m?d:s==="oklab"?d*.4:s==="oklch"?m<2?d*.4:d*360:d;if(s[m]==="h"||m===2&&s[s.length-1]==="h"){if(Hc[d]!==void 0)return Hc[d];if(d.endsWith("deg"))return parseFloat(d);if(d.endsWith("turn"))return parseFloat(d)*360;if(d.endsWith("grad"))return parseFloat(d)*360/400;if(d.endsWith("rad"))return parseFloat(d)*180/Math.PI}return d==="none"?0:parseFloat(d)}),n=i.length>c?i.pop():1}else/[0-9](?:\s|\/|,)/.test(t)&&(i=t.match(/([0-9]+)/g).map(function(d){return parseFloat(d)}),s=((h=(u=t.match(/([a-z])/ig))==null?void 0:u.join(""))==null?void 0:h.toLowerCase())||"rgb");return{space:s,values:i,alpha:n}}const Wr={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(t){var e=t[0]/360,i=t[1]/100,n=t[2]/100,s,a,r,o,l,c=0;if(i===0)return l=n*255,[l,l,l];for(a=n<.5?n*(1+i):n+i-n*i,s=2*n-a,o=[0,0,0];c<3;)r=e+1/3*-(c-1),r<0?r++:r>1&&r--,l=6*r<1?s+(a-s)*6*r:2*r<1?a:3*r<2?s+(a-s)*(2/3-r)*6:s,o[c++]=l*255;return o}};Ka.hsl=function(t){var e=t[0]/255,i=t[1]/255,n=t[2]/255,s=Math.min(e,i,n),a=Math.max(e,i,n),r=a-s,o,l,c;return a===s?o=0:e===a?o=(i-n)/r:i===a?o=2+(n-e)/r:n===a&&(o=4+(e-i)/r),o=Math.min(o*60,360),o<0&&(o+=360),c=(s+a)/2,a===s?l=0:c<=.5?l=r/(a+s):l=r/(2-a-s),[o,l*100,c*100]};function C2(t){Array.isArray(t)&&t.raw&&(t=String.raw(...arguments)),t instanceof Number&&(t=+t);var e,i=w2(t);if(!i.space)return[];const n=i.space[0]==="h"?Wr.min:Ka.min,s=i.space[0]==="h"?Wr.max:Ka.max;return e=Array(3),e[0]=Math.min(Math.max(i.values[0],n[0]),s[0]),e[1]=Math.min(Math.max(i.values[1],n[1]),s[1]),e[2]=Math.min(Math.max(i.values[2],n[2]),s[2]),i.space[0]==="h"&&(e=Wr.rgb(e)),e.push(Math.min(Math.max(i.alpha,0),1)),e}function ze(t,e,i){return Math.min(Math.max(t,e),i)}function N2(t,e,i,n,s,a){const r=s-i,o=a-n;if(r!==0||o!==0){const l=((t-i)*r+(e-n)*o)/(r*r+o*o);l>1?(i=s,n=a):l>0&&(i+=r*l,n+=o*l)}return In(t,e,i,n)}function In(t,e,i,n){const s=i-t,a=n-e;return s*s+a*a}function F2(t){const e=t.length;for(let n=0;na&&(a=l,s=o)}if(a===0)return null;const r=t[s];t[s]=t[n],t[n]=r;for(let o=n+1;o=0;n--){i[n]=t[n][e]/t[n][n];for(let s=n-1;s>=0;s--)t[s][e]-=t[s][n]*i[n]}return i}function wa(t){return t*Math.PI/180}function kn(t,e){const i=t%e;return i*e<0?i+e:i}function E2(t,e,i){return t+i*(e-t)}function Dd(t,e){const i=Math.pow(10,e);return Math.round(t*i)/i}function aa(t,e){return Math.floor(Dd(t,e))}function ra(t,e){return Math.ceil(Dd(t,e))}function M2(t){return typeof t=="string"?t:k2(t)}const T2=1024,es={};let Kr=0;function R2(t){if(es.hasOwnProperty(t))return es[t];if(Kr>=T2){let i=0;for(const n in es)i++&3||(delete es[n],--Kr)}const e=C2(t);if(e.length!==4)throw new Error('Failed to parse "'+t+'" as color');for(const i of e)if(isNaN(i))throw new Error('Failed to parse "'+t+'" as color');return I2(e),es[t]=e,++Kr,e}function zc(t){return Array.isArray(t)?t:R2(t)}function I2(t){return t[0]=ze(t[0]+.5|0,0,255),t[1]=ze(t[1]+.5|0,0,255),t[2]=ze(t[2]+.5|0,0,255),t[3]=ze(t[3],0,1),t}function k2(t){let e=t[0];e!=(e|0)&&(e=e+.5|0);let i=t[1];i!=(i|0)&&(i=i+.5|0);let n=t[2];n!=(n|0)&&(n=n+.5|0);const s=t[3]===void 0?1:Math.round(t[3]*100)/100;return"rgba("+e+","+i+","+n+","+s+")"}class L2{constructor(){this.cache_={},this.cacheSize_=0,this.maxCacheSize_=32}clear(){this.cache_={},this.cacheSize_=0}canExpireCache(){return this.cacheSize_>this.maxCacheSize_}expire(){if(this.canExpireCache()){let e=0;for(const i in this.cache_){const n=this.cache_[i];!(e++&3)&&!n.hasListener()&&(delete this.cache_[i],--this.cacheSize_)}}}get(e,i,n){const s=qc(e,i,n);return s in this.cache_?this.cache_[s]:null}set(e,i,n,s){const a=qc(e,i,n);this.cache_[a]=s,++this.cacheSize_}setSize(e){this.maxCacheSize_=e,this.expire()}}function qc(t,e,i){const n=i?M2(i):"null";return e+":"+t+":"+n}const Pd=new L2,we={OPACITY:"opacity",VISIBLE:"visible",EXTENT:"extent",Z_INDEX:"zIndex",MAX_RESOLUTION:"maxResolution",MIN_RESOLUTION:"minResolution",MAX_ZOOM:"maxZoom",MIN_ZOOM:"minZoom",SOURCE:"source",MAP:"map"};class S2 extends ci{constructor(e){super(),this.on,this.once,this.un,this.background_=e.background;const i=Object.assign({},e);typeof e.properties=="object"&&(delete i.properties,Object.assign(i,e.properties)),i[we.OPACITY]=e.opacity!==void 0?e.opacity:1,Le(typeof i[we.OPACITY]=="number","Layer opacity must be a number"),i[we.VISIBLE]=e.visible!==void 0?e.visible:!0,i[we.Z_INDEX]=e.zIndex,i[we.MAX_RESOLUTION]=e.maxResolution!==void 0?e.maxResolution:1/0,i[we.MIN_RESOLUTION]=e.minResolution!==void 0?e.minResolution:0,i[we.MIN_ZOOM]=e.minZoom!==void 0?e.minZoom:-1/0,i[we.MAX_ZOOM]=e.maxZoom!==void 0?e.maxZoom:1/0,this.className_=i.className!==void 0?i.className:"ol-layer",delete i.className,this.setProperties(i),this.state_=null}getBackground(){return this.background_}getClassName(){return this.className_}getLayerState(e){const i=this.state_||{layer:this,managed:e===void 0?!0:e},n=this.getZIndex();return i.opacity=ze(Math.round(this.getOpacity()*100)/100,0,1),i.visible=this.getVisible(),i.extent=this.getExtent(),i.zIndex=n===void 0&&!i.managed?1/0:n,i.maxResolution=this.getMaxResolution(),i.minResolution=Math.max(this.getMinResolution(),0),i.minZoom=this.getMinZoom(),i.maxZoom=this.getMaxZoom(),this.state_=i,i}getLayersArray(e){return Xe()}getLayerStatesArray(e){return Xe()}getExtent(){return this.get(we.EXTENT)}getMaxResolution(){return this.get(we.MAX_RESOLUTION)}getMinResolution(){return this.get(we.MIN_RESOLUTION)}getMinZoom(){return this.get(we.MIN_ZOOM)}getMaxZoom(){return this.get(we.MAX_ZOOM)}getOpacity(){return this.get(we.OPACITY)}getSourceState(){return Xe()}getVisible(){return this.get(we.VISIBLE)}getZIndex(){return this.get(we.Z_INDEX)}setBackground(e){this.background_=e,this.changed()}setExtent(e){this.set(we.EXTENT,e)}setMaxResolution(e){this.set(we.MAX_RESOLUTION,e)}setMinResolution(e){this.set(we.MIN_RESOLUTION,e)}setMaxZoom(e){this.set(we.MAX_ZOOM,e)}setMinZoom(e){this.set(we.MIN_ZOOM,e)}setOpacity(e){Le(typeof e=="number","Layer opacity must be a number"),this.set(we.OPACITY,e)}setVisible(e){this.set(we.VISIBLE,e)}setZIndex(e){this.set(we.Z_INDEX,e)}disposeInternal(){this.state_&&(this.state_.layer=null,this.state_=null),super.disposeInternal()}}const Ad=S2,wi={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"},Lt={ANIMATING:0,INTERACTING:1},Pt={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"},D2=42,dl=256,Ts={radians:6370997/(2*Math.PI),degrees:2*Math.PI*6370997/360,ft:.3048,m:1,"us-ft":1200/3937};let P2=class{constructor(e){this.code_=e.code,this.units_=e.units,this.extent_=e.extent!==void 0?e.extent:null,this.worldExtent_=e.worldExtent!==void 0?e.worldExtent:null,this.axisOrientation_=e.axisOrientation!==void 0?e.axisOrientation:"enu",this.global_=e.global!==void 0?e.global:!1,this.canWrapX_=!!(this.global_&&this.extent_),this.getPointResolutionFunc_=e.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=e.metersPerUnit}canWrapX(){return this.canWrapX_}getCode(){return this.code_}getExtent(){return this.extent_}getUnits(){return this.units_}getMetersPerUnit(){return this.metersPerUnit_||Ts[this.units_]}getWorldExtent(){return this.worldExtent_}getAxisOrientation(){return this.axisOrientation_}isGlobal(){return this.global_}setGlobal(e){this.global_=e,this.canWrapX_=!!(e&&this.extent_)}getDefaultTileGrid(){return this.defaultTileGrid_}setDefaultTileGrid(e){this.defaultTileGrid_=e}setExtent(e){this.extent_=e,this.canWrapX_=!!(this.global_&&e)}setWorldExtent(e){this.worldExtent_=e}setGetPointResolution(e){this.getPointResolutionFunc_=e}getPointResolutionFunc(){return this.getPointResolutionFunc_}};const ml=P2,Zs=6378137,bn=Math.PI*Zs,A2=[-bn,-bn,bn,bn],O2=[-180,-85,180,85],oa=Zs*Math.log(Math.tan(Math.PI/2));class ln extends ml{constructor(e){super({code:e,units:"m",extent:A2,global:!0,worldExtent:O2,getPointResolution:function(i,n){return i/Math.cosh(n[1]/Zs)}})}}const jc=[new ln("EPSG:3857"),new ln("EPSG:102100"),new ln("EPSG:102113"),new ln("EPSG:900913"),new ln("http://www.opengis.net/def/crs/EPSG/0/3857"),new ln("http://www.opengis.net/gml/srs/epsg.xml#3857")];function G2(t,e,i){const n=t.length;i=i>1?i:2,e===void 0&&(i>2?e=t.slice():e=new Array(n));for(let s=0;soa?a=oa:a<-oa&&(a=-oa),e[s+1]=a}return e}function Z2(t,e,i){const n=t.length;i=i>1?i:2,e===void 0&&(i>2?e=t.slice():e=new Array(n));for(let s=0;s=0;--n)if(t[n]!=e[n]){i=!1;break}return i}function fl(t,e){const i=Math.cos(e),n=Math.sin(e),s=t[0]*i-t[1]*n,a=t[1]*i+t[0]*n;return t[0]=s,t[1]=a,t}function B2(t,e){return t[0]*=e,t[1]*=e,t}function H2(t,e){if(e.canWrapX()){const i=Be(e.getExtent()),n=Gd(t,e,i);n&&(t[0]-=n*i)}return t}function Gd(t,e,i){const n=e.getExtent();let s=0;return e.canWrapX()&&(t[0]n[2])&&(i=i||Be(n),s=Math.floor((t[0]-n[0])/i)),s}const z2=63710088e-1;function Jc(t,e,i){i=i||z2;const n=wa(t[1]),s=wa(e[1]),a=(s-n)/2,r=wa(e[0]-t[0])/2,o=Math.sin(a)*Math.sin(a)+Math.sin(r)*Math.sin(r)*Math.cos(n)*Math.cos(s);return 2*i*Math.atan2(Math.sqrt(o),Math.sqrt(1-o))}const Zd={info:1,warn:2,error:3,none:4};let q2=Zd.info;function Xd(...t){q2>Zd.warn||console.warn(...t)}let wo=!0;function j2(t){wo=!(t===void 0?!0:t)}function pl(t,e){if(e!==void 0){for(let i=0,n=t.length;i=o?e[a+l]:r[l]}return i}}function J2(t,e,i,n){const s=ft(t),a=ft(e);Xn(s,a,eu(i)),Xn(a,s,eu(n))}function mn(t,e){if(t===e)return!0;const i=t.getUnits()===e.getUnits();return(t.getCode()===e.getCode()||yl(t,e)===pl)&&i}function yl(t,e){const i=t.getCode(),n=e.getCode();let s=Od(i,n);return s||(s=Wd),s}function Ua(t,e){const i=ft(t),n=ft(e);return yl(i,n)}function Q2(t,e,i){return Ua(e,i)(t,void 0,t.length)}function No(t,e){return t}function ii(t,e){return wo&&!Va(t,[0,0])&&t[0]>=-180&&t[0]<=180&&t[1]>=-90&&t[1]<=90&&(wo=!1,Xd("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),t}function eb(t,e){return t}function _n(t,e){return t}function tu(t,e,i){return function(n){let s,a;if(t.canWrapX()){const r=t.getExtent(),o=Be(r);n=n.slice(0),a=Gd(n,t,o),a&&(n[0]=n[0]-a*o),n[0]=ze(n[0],r[0],r[2]),n[1]=ze(n[1],r[1],r[3]),s=i(n)}else s=i(n);return a&&e.canWrapX()&&(s[0]+=a*Be(e.getExtent())),s}}function tb(){Co(jc),Co($c),$2($c,jc,G2,Z2)}tb();function iu(t,e,i){return function(n,s,a,r,o){if(!n)return;if(!s&&!e)return n;const l=e?0:a[0]*s,c=e?0:a[1]*s,u=o?o[0]:0,h=o?o[1]:0;let d=t[0]+l/2+u,m=t[2]-l/2+u,f=t[1]+c/2+h,p=t[3]-c/2+h;d>m&&(d=(m+d)/2,m=d),f>p&&(f=(p+f)/2,p=f);let y=ze(n[0],d,m),_=ze(n[1],f,p);if(r&&i&&s){const v=30*s;y+=-v*Math.log(1+Math.max(0,d-n[0])/v)+v*Math.log(1+Math.max(0,n[0]-m)/v),_+=-v*Math.log(1+Math.max(0,f-n[1])/v)+v*Math.log(1+Math.max(0,n[1]-p)/v)}return[y,_]}}function ib(t){return t}function bl(t,e,i,n){const s=Be(e)/i[0],a=Kt(e)/i[1];return n?Math.min(t,Math.max(s,a)):Math.min(t,Math.min(s,a))}function _l(t,e,i){let n=Math.min(t,e);const s=50;return n*=Math.log(1+s*Math.max(0,t/e-1))/s+1,i&&(n=Math.max(n,i),n/=Math.log(1+s*Math.max(0,i/t-1))/s+1),ze(n,i/2,e*2)}function nb(t,e,i,n){return e=e!==void 0?e:!0,function(s,a,r,o){if(s!==void 0){const l=t[0],c=t[t.length-1],u=i?bl(l,i,r,n):l;if(o)return e?_l(s,u,c):ze(s,c,u);const h=Math.min(u,s),d=Math.floor(cl(t,h,a));return t[d]>u&&d{if(!n)return this.getSimplifiedGeometry(i);const s=this.clone();return s.applyTransform(n),s.getSimplifiedGeometry(i)})}simplifyTransformed(e,i){return this.simplifyTransformedInternal(this.getRevision(),e,i)}clone(){return Xe()}closestPointXY(e,i,n,s){return Xe()}containsXY(e,i){const n=this.getClosestPoint([e,i]);return n[0]===e&&n[1]===i}getClosestPoint(e,i){return i=i||[NaN,NaN],this.closestPointXY(e[0],e[1],i,1/0),i}intersectsCoordinate(e){return this.containsXY(e[0],e[1])}computeExtent(e){return Xe()}getExtent(e){if(this.extentRevision_!=this.getRevision()){const i=this.computeExtent(this.extent_);(isNaN(i[0])||isNaN(i[1]))&&wr(i),this.extentRevision_=this.getRevision()}return _2(this.extent_,e)}rotate(e,i){Xe()}scale(e,i,n){Xe()}simplify(e){return this.getSimplifiedGeometry(e*e)}getSimplifiedGeometry(e){return Xe()}getType(){return Xe()}applyTransform(e){Xe()}intersectsExtent(e){return Xe()}translate(e,i){Xe()}transform(e,i){const n=ft(e),s=n.getUnits()=="tile-pixels"?function(a,r,o){const l=n.getExtent(),c=n.getWorldExtent(),u=Kt(c)/Kt(l);return Es(au,c[0],c[3],u,-u,0,0,0),cb(a,0,a.length,o,au,r),Ua(n,i)(a,r,o)}:Ua(n,i);return this.applyTransform(s),this}}const fb=mb;class pb extends fb{constructor(){super(),this.layout="XY",this.stride=2,this.flatCoordinates}computeExtent(e){return p2(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e)}getCoordinates(){return Xe()}getFirstCoordinate(){return this.flatCoordinates.slice(0,this.stride)}getFlatCoordinates(){return this.flatCoordinates}getLastCoordinate(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)}getLayout(){return this.layout}getSimplifiedGeometry(e){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),e<0||this.simplifiedGeometryMaxMinSquaredTolerance!==0&&e<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;const i=this.getSimplifiedGeometryInternal(e);return i.getFlatCoordinates().length1)h=i;else if(d>0){for(let m=0;ms&&(s=c),a=o,r=l}return s}function yb(t,e,i,n,s){for(let a=0,r=i.length;a0;){const h=c.pop(),d=c.pop();let m=0;const f=t[d],p=t[d+1],y=t[h],_=t[h+1];for(let v=d+n;vm&&(u=v,m=E)}m>s&&(l[(u-e)/n]=1,d+n0&&p>m)&&(f<0&&y0&&y>f)){c=h,u=d;continue}a[r++]=c,a[r++]=u,o=c,l=u,c=h,u=d}return a[r++]=c,a[r++]=u,r}function Cb(t,e,i,n,s,a,r,o){for(let l=0,c=i.length;la&&(c-o)*(a-l)-(s-o)*(u-l)>0&&r++:u<=a&&(c-o)*(a-l)-(s-o)*(u-l)<0&&r--,o=c,l=u}return r!==0}function Yd(t,e,i,n,s,a){if(i.length===0||!Ki(t,e,i[0],n,s,a))return!1;for(let r=1,o=i.length;r_&&(c=(u+h)/2,Yd(t,e,i,n,c,f)&&(y=c,_=v)),u=h}return isNaN(y)&&(y=s[a]),r?(r.push(y,f,_),r):[y,f,_]}function Ib(t,e,i,n,s){let a;for(e+=n;e=s[0]&&a[2]<=s[2]||a[1]>=s[1]&&a[3]<=s[3]?!0:Ib(t,e,i,n,function(r,o){return v2(s,r,o)}):!1}function Jd(t,e,i,n,s){return!!($d(t,e,i,n,s)||Ki(t,e,i,n,s[0],s[1])||Ki(t,e,i,n,s[0],s[3])||Ki(t,e,i,n,s[2],s[1])||Ki(t,e,i,n,s[2],s[3]))}function kb(t,e,i,n,s){if(!Jd(t,e,i[0],n,s))return!1;if(i.length===1)return!0;for(let a=1,r=i.length;a0}function Sb(t,e,i,n,s){s=s!==void 0?s:!1;for(let a=0,r=i.length;a1&&typeof arguments[i-1]=="function"&&(n=arguments[i-1],--i);let s=0;for(;s0}getInteracting(){return this.hints_[Lt.INTERACTING]>0}cancelAnimations(){this.setHint(Lt.ANIMATING,-this.hints_[Lt.ANIMATING]);let e;for(let i=0,n=this.animations_.length;i=0;--n){const s=this.animations_[n];let a=!0;for(let r=0,o=s.length;r0?c/l.duration:1;u>=1?(l.complete=!0,u=1):a=!1;const h=l.easing(u);if(l.sourceCenter){const d=l.sourceCenter[0],m=l.sourceCenter[1],f=l.targetCenter[0],p=l.targetCenter[1];this.nextCenter_=l.targetCenter;const y=d+h*(f-d),_=m+h*(p-m);this.targetCenter_=[y,_]}if(l.sourceResolution&&l.targetResolution){const d=h===1?l.targetResolution:l.sourceResolution+h*(l.targetResolution-l.sourceResolution);if(l.anchor){const m=this.getViewportSize_(this.getRotation()),f=this.constraints_.resolution(d,0,m,!0);this.targetCenter_=this.calculateCenterZoom(f,l.anchor)}this.nextResolution_=l.targetResolution,this.targetResolution_=d,this.applyTargetState_(!0)}if(l.sourceRotation!==void 0&&l.targetRotation!==void 0){const d=h===1?kn(l.targetRotation+Math.PI,2*Math.PI)-Math.PI:l.sourceRotation+h*(l.targetRotation-l.sourceRotation);if(l.anchor){const m=this.constraints_.rotation(d,!0);this.targetCenter_=this.calculateCenterRotate(m,l.anchor)}this.nextRotation_=l.targetRotation,this.targetRotation_=d}if(this.applyTargetState_(!0),i=!0,!l.complete)break}if(a){this.animations_[n]=null,this.setHint(Lt.ANIMATING,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;const r=s[0].callback;r&&la(r,!0)}}this.animations_=this.animations_.filter(Boolean),i&&this.updateAnimationKey_===void 0&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}calculateCenterRotate(e,i){let n;const s=this.getCenterInternal();return s!==void 0&&(n=[s[0]-i[0],s[1]-i[1]],fl(n,e-this.getRotation()),U2(n,i)),n}calculateCenterZoom(e,i){let n;const s=this.getCenterInternal(),a=this.getResolution();if(s!==void 0&&a!==void 0){const r=i[0]-e*(i[0]-s[0])/a,o=i[1]-e*(i[1]-s[1])/a;n=[r,o]}return n}getViewportSize_(e){const i=this.viewportSize_;if(e){const n=i[0],s=i[1];return[Math.abs(n*Math.cos(e))+Math.abs(s*Math.sin(e)),Math.abs(n*Math.sin(e))+Math.abs(s*Math.cos(e))]}return i}setViewportSize(e){this.viewportSize_=Array.isArray(e)?e.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)}getCenter(){const e=this.getCenterInternal();return e&&No(e,this.getProjection())}getCenterInternal(){return this.get(Pt.CENTER)}getConstraints(){return this.constraints_}getConstrainResolution(){return this.get("constrainResolution")}getHints(e){return e!==void 0?(e[0]=this.hints_[0],e[1]=this.hints_[1],e):this.hints_.slice()}calculateExtent(e){const i=this.calculateExtentInternal(e);return eb(i,this.getProjection())}calculateExtentInternal(e){e=e||this.getViewportSizeMinusPadding_();const i=this.getCenterInternal();Le(i,"The view center is not defined");const n=this.getResolution();Le(n!==void 0,"The view resolution is not defined");const s=this.getRotation();return Le(s!==void 0,"The view rotation is not defined"),_o(i,n,s,e)}getMaxResolution(){return this.maxResolution_}getMinResolution(){return this.minResolution_}getMaxZoom(){return this.getZoomForResolution(this.minResolution_)}setMaxZoom(e){this.applyOptions_(this.getUpdatedOptions_({maxZoom:e}))}getMinZoom(){return this.getZoomForResolution(this.maxResolution_)}setMinZoom(e){this.applyOptions_(this.getUpdatedOptions_({minZoom:e}))}setConstrainResolution(e){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:e}))}getProjection(){return this.projection_}getResolution(){return this.get(Pt.RESOLUTION)}getResolutions(){return this.resolutions_}getResolutionForExtent(e,i){return this.getResolutionForExtentInternal(_n(e,this.getProjection()),i)}getResolutionForExtentInternal(e,i){i=i||this.getViewportSizeMinusPadding_();const n=Be(e)/i[0],s=Kt(e)/i[1];return Math.max(n,s)}getResolutionForValueFunction(e){e=e||2;const i=this.getConstrainedResolution(this.maxResolution_),n=this.minResolution_,s=Math.log(i/n)/Math.log(e);return function(a){return i/Math.pow(e,a*s)}}getRotation(){return this.get(Pt.ROTATION)}getValueForResolutionFunction(e){const i=Math.log(e||2),n=this.getConstrainedResolution(this.maxResolution_),s=this.minResolution_,a=Math.log(n/s)/i;return function(r){return Math.log(n/r)/i/a}}getViewportSizeMinusPadding_(e){let i=this.getViewportSize_(e);const n=this.padding_;return n&&(i=[i[0]-n[1]-n[3],i[1]-n[0]-n[2]]),i}getState(){const e=this.getProjection(),i=this.getResolution(),n=this.getRotation();let s=this.getCenterInternal();const a=this.padding_;if(a){const r=this.getViewportSizeMinusPadding_();s=Ur(s,this.getViewportSize_(),[r[0]/2+a[3],r[1]/2+a[0]],i,n)}return{center:s.slice(0),projection:e!==void 0?e:null,resolution:i,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:n,zoom:this.getZoom()}}getViewStateAndExtent(){return{viewState:this.getState(),extent:this.calculateExtent()}}getZoom(){let e;const i=this.getResolution();return i!==void 0&&(e=this.getZoomForResolution(i)),e}getZoomForResolution(e){let i=this.minZoom_||0,n,s;if(this.resolutions_){const a=cl(this.resolutions_,e,1);i=a,n=this.resolutions_[a],a==this.resolutions_.length-1?s=2:s=n/this.resolutions_[a+1]}else n=this.maxResolution_,s=this.zoomFactor_;return i+Math.log(n/e)/Math.log(s)}getResolutionForZoom(e){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;const i=ze(Math.floor(e),0,this.resolutions_.length-2),n=this.resolutions_[i]/this.resolutions_[i+1];return this.resolutions_[i]/Math.pow(n,ze(e-i,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,e-this.minZoom_)}fit(e,i){let n;if(Le(Array.isArray(e)||typeof e.getSimplifiedGeometry=="function","Invalid extent or geometry provided as `geometry`"),Array.isArray(e)){Le(!Er(e),"Cannot fit empty extent provided as `geometry`");const s=_n(e,this.getProjection());n=uu(s)}else if(e.getType()==="Circle"){const s=_n(e.getExtent(),this.getProjection());n=uu(s),n.rotate(this.getRotation(),Ms(s))}else n=e;this.fitInternal(n,i)}rotatedExtentForGeometry(e){const i=this.getRotation(),n=Math.cos(i),s=Math.sin(-i),a=e.getFlatCoordinates(),r=e.getStride();let o=1/0,l=1/0,c=-1/0,u=-1/0;for(let h=0,d=a.length;h{this.dispatchEvent("sourceready")},0))),this.changed()}getFeatures(e){return this.renderer_?this.renderer_.getFeatures(e):Promise.resolve([])}getData(e){return!this.renderer_||!this.rendered?null:this.renderer_.getData(e)}isVisible(e){let i;const n=this.getMapInternal();!e&&n&&(e=n.getView()),e instanceof Yt?i={viewState:e.getState(),extent:e.calculateExtent()}:i=e,!i.layerStatesArray&&n&&(i.layerStatesArray=n.getLayerGroup().getLayerStatesArray());let s;i.layerStatesArray?s=i.layerStatesArray.find(r=>r.layer===this):s=this.getLayerState();const a=this.getExtent();return wl(s,i.viewState)&&(!a||Gs(a,i.extent))}getAttributions(e){if(!this.isVisible(e))return[];let i;const n=this.getSource();if(n&&(i=n.getAttributions()),!i)return[];const s=e instanceof Yt?e.getViewStateAndExtent():e;let a=i(s);return Array.isArray(a)||(a=[a]),a}render(e,i){const n=this.getRenderer();return n.prepareFrame(e)?(this.rendered=!0,n.renderFrame(e,i)):null}unrender(){this.rendered=!1}setMapInternal(e){e||this.unrender(),this.set(we.MAP,e)}getMapInternal(){return this.get(we.MAP)}setMap(e){this.mapPrecomposeKey_&&(He(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),e||this.changed(),this.mapRenderKey_&&(He(this.mapRenderKey_),this.mapRenderKey_=null),e&&(this.mapPrecomposeKey_=Ne(e,wi.PRECOMPOSE,function(i){const s=i.frameState.layerStatesArray,a=this.getLayerState(!1);Le(!s.some(function(r){return r.layer===a.layer}),"A layer can only be added to the map once. Use either `layer.setMap()` or `map.addLayer()`, not both."),s.push(a)},this),this.mapRenderKey_=Ne(this,le.CHANGE,e.render,e),this.changed())}setSource(e){this.set(we.SOURCE,e)}getRenderer(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_}hasRenderer(){return!!this.renderer_}createRenderer(){return null}disposeInternal(){this.renderer_&&(this.renderer_.dispose(),delete this.renderer_),this.setSource(null),super.disposeInternal()}}function wl(t,e){if(!t.visible)return!1;const i=e.resolution;if(i=t.maxResolution)return!1;const n=e.zoom;return n>t.minZoom&&n<=t.maxZoom}const Cl=Zb;class Xb extends ol{constructor(e){super(),this.map_=e}dispatchRenderEvent(e,i){Xe()}calculateMatrices2D(e){const i=e.viewState,n=e.coordinateToPixelTransform,s=e.pixelToCoordinateTransform;Es(n,e.size[0]/2,e.size[1]/2,1/i.resolution,-1/i.resolution,-i.rotation,-i.center[0],-i.center[1]),Td(s,n)}forEachFeatureAtCoordinate(e,i,n,s,a,r,o,l){let c;const u=i.viewState;function h(w,E,L,Y){return a.call(r,E,w?L:null,Y)}const d=u.projection,m=H2(e.slice(),d),f=[[0,0]];if(d.canWrapX()&&s){const w=d.getExtent(),E=Be(w);f.push([-E,0],[E,0])}const p=i.layerStatesArray,y=p.length,_=[],v=[];for(let w=0;w=0;--E){const L=p[E],Y=L.layer;if(Y.hasRenderer()&&wl(L,u)&&o.call(l,Y)){const q=Y.getRenderer(),re=Y.getSource();if(q&&re){const oe=re.getWrapX()?m:e,_e=h.bind(null,L.managed);v[0]=oe[0]+f[w][0],v[1]=oe[1]+f[w][1],c=q.forEachFeatureAtCoordinate(v,i,n,_e,_)}if(c)return c}}if(_.length===0)return;const N=1/_.length;return _.forEach((w,E)=>w.distanceSq+=E*N),_.sort((w,E)=>w.distanceSq-E.distanceSq),_.some(w=>c=w.callback(w.feature,w.layer,w.geometry)),c}hasFeatureAtCoordinate(e,i,n,s,a,r){return this.forEachFeatureAtCoordinate(e,i,n,s,Za,this,a,r)!==void 0}getMap(){return this.map_}renderFrame(e){Xe()}flushDeclutterItems(e){}scheduleExpireIconCache(e){Pd.canExpireCache()&&e.postRenderFunctions.push(Wb)}}function Wb(t,e){Pd.expire()}const Kb=Xb;class Vb extends ki{constructor(e,i,n,s){super(e),this.inversePixelTransform=i,this.frameState=n,this.context=s}}const em=Vb,ca="ol-hidden",Mr="ol-unselectable",Nl="ol-control",hu="ol-collapsed";function Wn(t,e,i,n){let s;return i&&i.length?s=i.shift():Ed?s=new OffscreenCanvas(t||300,e||300):s=document.createElement("canvas"),t&&(s.width=t),e&&(s.height=e),s.getContext("2d",n)}function Fl(t){const e=t.canvas;e.width=1,e.height=1,t.clearRect(0,0,1,1)}function du(t,e){const i=e.parentNode;i&&i.replaceChild(t,e)}function Fo(t){return t&&t.parentNode?t.parentNode.removeChild(t):null}function Ub(t){for(;t.lastChild;)t.removeChild(t.lastChild)}function Bb(t,e){const i=t.childNodes;for(let n=0;;++n){const s=i[n],a=e[n];if(!s&&!a)break;if(s!==a){if(!s){t.appendChild(a);continue}if(!a){t.removeChild(s),--n;continue}t.insertBefore(a,s)}}}const Hb=new ci;class zb extends Kb{constructor(e){super(e),this.fontChangeListenerKey_=Ne(Hb,Fs.PROPERTYCHANGE,e.redrawText.bind(e)),this.element_=document.createElement("div");const i=this.element_.style;i.position="absolute",i.width="100%",i.height="100%",i.zIndex="0",this.element_.className=Mr+" ol-layers";const n=e.getViewport();n.insertBefore(this.element_,n.firstChild||null),this.children_=[],this.renderedVisible_=!0,this.declutterLayers_=[]}dispatchRenderEvent(e,i){const n=this.getMap();if(n.hasListener(e)){const s=new em(e,void 0,i);n.dispatchEvent(s)}}disposeInternal(){He(this.fontChangeListenerKey_),this.element_.parentNode.removeChild(this.element_),super.disposeInternal()}renderFrame(e){if(!e){this.renderedVisible_&&(this.element_.style.display="none",this.renderedVisible_=!1);return}this.calculateMatrices2D(e),this.dispatchRenderEvent(wi.PRECOMPOSE,e);const i=e.layerStatesArray.sort(function(r,o){return r.zIndex-o.zIndex}),n=e.viewState;this.children_.length=0;const s=this.declutterLayers_;s.length=0;let a=null;for(let r=0,o=i.length;r=0;--n)i[n].renderDeclutter(e);i.length=0}}const qb=zb;class yi extends ki{constructor(e,i){super(e),this.layer=i}}const Br={LAYERS:"layers"};class El extends Ad{constructor(e){e=e||{};const i=Object.assign({},e);delete i.layers;let n=e.layers;super(i),this.on,this.once,this.un,this.layersListenerKeys_=[],this.listenerKeys_={},this.addChangeListener(Br.LAYERS,this.handleLayersChanged_),n?Array.isArray(n)?n=new ai(n.slice(),{unique:!0}):Le(typeof n.getArray=="function","Expected `layers` to be an array or a `Collection`"):n=new ai(void 0,{unique:!0}),this.setLayers(n)}handleLayerChange_(){this.changed()}handleLayersChanged_(){this.layersListenerKeys_.forEach(He),this.layersListenerKeys_.length=0;const e=this.getLayers();this.layersListenerKeys_.push(Ne(e,St.ADD,this.handleLayersAdd_,this),Ne(e,St.REMOVE,this.handleLayersRemove_,this));for(const n in this.listenerKeys_)this.listenerKeys_[n].forEach(He);vr(this.listenerKeys_);const i=e.getArray();for(let n=0,s=i.length;n{this.clickTimeoutId_=void 0;const n=new fi(Ze.SINGLECLICK,this.map_,e);this.dispatchEvent(n)},250)}updateActivePointers_(e){const i=e,n=i.pointerId;if(i.type==Ze.POINTERUP||i.type==Ze.POINTERCANCEL){delete this.trackedTouches_[n];for(const s in this.trackedTouches_)if(this.trackedTouches_[s].target!==i.target){delete this.trackedTouches_[s];break}}else(i.type==Ze.POINTERDOWN||i.type==Ze.POINTERMOVE)&&(this.trackedTouches_[n]=i);this.activePointers_=Object.values(this.trackedTouches_)}handlePointerUp_(e){this.updateActivePointers_(e);const i=new fi(Ze.POINTERUP,this.map_,e,void 0,void 0,this.activePointers_);this.dispatchEvent(i),this.emulateClicks_&&!i.defaultPrevented&&!this.dragging_&&this.isMouseActionButton_(e)&&this.emulateClick_(this.down_),this.activePointers_.length===0&&(this.dragListenerKeys_.forEach(He),this.dragListenerKeys_.length=0,this.dragging_=!1,this.down_=null)}isMouseActionButton_(e){return e.button===0}handlePointerDown_(e){this.emulateClicks_=this.activePointers_.length===0,this.updateActivePointers_(e);const i=new fi(Ze.POINTERDOWN,this.map_,e,void 0,void 0,this.activePointers_);if(this.dispatchEvent(i),this.down_=new PointerEvent(e.type,e),Object.defineProperty(this.down_,"target",{writable:!1,value:e.target}),this.dragListenerKeys_.length===0){const n=this.map_.getOwnerDocument();this.dragListenerKeys_.push(Ne(n,Ze.POINTERMOVE,this.handlePointerMove_,this),Ne(n,Ze.POINTERUP,this.handlePointerUp_,this),Ne(this.element_,Ze.POINTERCANCEL,this.handlePointerUp_,this)),this.element_.getRootNode&&this.element_.getRootNode()!==n&&this.dragListenerKeys_.push(Ne(this.element_.getRootNode(),Ze.POINTERUP,this.handlePointerUp_,this))}}handlePointerMove_(e){if(this.isMoving_(e)){this.updateActivePointers_(e),this.dragging_=!0;const i=new fi(Ze.POINTERDRAG,this.map_,e,this.dragging_,void 0,this.activePointers_);this.dispatchEvent(i)}}relayMoveEvent_(e){this.originalPointerMoveEvent_=e;const i=!!(this.down_&&this.isMoving_(e));this.dispatchEvent(new fi(Ze.POINTERMOVE,this.map_,e,i))}handleTouchMove_(e){const i=this.originalPointerMoveEvent_;(!i||i.defaultPrevented)&&(typeof e.cancelable!="boolean"||e.cancelable===!0)&&e.preventDefault()}isMoving_(e){return this.dragging_||Math.abs(e.clientX-this.down_.clientX)>this.moveTolerance_||Math.abs(e.clientY-this.down_.clientY)>this.moveTolerance_}disposeInternal(){this.relayedListenerKey_&&(He(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(le.TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&(He(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(He),this.dragListenerKeys_.length=0,this.element_=null,super.disposeInternal()}}const Jb=$b,pi={POSTRENDER:"postrender",MOVESTART:"movestart",MOVEEND:"moveend",LOADSTART:"loadstart",LOADEND:"loadend"},lt={LAYERGROUP:"layergroup",SIZE:"size",TARGET:"target",VIEW:"view"},Ha=1/0;class Qb{constructor(e,i){this.priorityFunction_=e,this.keyFunction_=i,this.elements_=[],this.priorities_=[],this.queuedElements_={}}clear(){this.elements_.length=0,this.priorities_.length=0,vr(this.queuedElements_)}dequeue(){const e=this.elements_,i=this.priorities_,n=e[0];e.length==1?(e.length=0,i.length=0):(e[0]=e.pop(),i[0]=i.pop(),this.siftUp_(0));const s=this.keyFunction_(n);return delete this.queuedElements_[s],n}enqueue(e){Le(!(this.keyFunction_(e)in this.queuedElements_),"Tried to enqueue an `element` that was already added to the queue");const i=this.priorityFunction_(e);return i!=Ha?(this.elements_.push(e),this.priorities_.push(i),this.queuedElements_[this.keyFunction_(e)]=!0,this.siftDown_(0,this.elements_.length-1),!0):!1}getCount(){return this.elements_.length}getLeftChildIndex_(e){return e*2+1}getRightChildIndex_(e){return e*2+2}getParentIndex_(e){return e-1>>1}heapify_(){let e;for(e=(this.elements_.length>>1)-1;e>=0;e--)this.siftUp_(e)}isEmpty(){return this.elements_.length===0}isKeyQueued(e){return e in this.queuedElements_}isQueued(e){return this.isKeyQueued(this.keyFunction_(e))}siftUp_(e){const i=this.elements_,n=this.priorities_,s=i.length,a=i[e],r=n[e],o=e;for(;e>1;){const l=this.getLeftChildIndex_(e),c=this.getRightChildIndex_(e),u=ce;){const o=this.getParentIndex_(i);if(s[o]>r)n[i]=n[o],s[i]=s[o],i=o;else break}n[i]=a,s[i]=r}reprioritize(){const e=this.priorityFunction_,i=this.elements_,n=this.priorities_;let s=0;const a=i.length;let r,o,l;for(o=0;o0;)a=this.dequeue()[0],r=a.getKey(),s=a.getState(),s===Q.IDLE&&!(r in this.tilesLoadingKeys_)&&(this.tilesLoadingKeys_[r]=!0,++this.tilesLoading_,++n,a.load())}}const i_=t_;function n_(t,e,i,n,s){if(!t||!(i in t.wantedTiles)||!t.wantedTiles[i][e.getKey()])return Ha;const a=t.viewState.center,r=n[0]-a[0],o=n[1]-a[1];return 65536*Math.log(s)+Math.sqrt(r*r+o*o)/s}class s_ extends ci{constructor(e){super();const i=e.element;i&&!e.target&&!i.style.pointerEvents&&(i.style.pointerEvents="auto"),this.element=i||null,this.target_=null,this.map_=null,this.listenerKeys=[],e.render&&(this.render=e.render),e.target&&this.setTarget(e.target)}disposeInternal(){Fo(this.element),super.disposeInternal()}getMap(){return this.map_}setMap(e){this.map_&&Fo(this.element);for(let i=0,n=this.listenerKeys.length;is.getAttributions(e)))),n=!this.getMap().getAllLayers().some(s=>s.getSource()&&s.getSource().getAttributionsCollapsible()===!1);return this.overrideCollapsible_||this.setCollapsible(n),i}updateElement_(e){if(!e){this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1);return}const i=this.collectSourceAttributions_(e),n=i.length>0;if(this.renderedVisible_!=n&&(this.element.style.display=n?"":"none",this.renderedVisible_=n),!br(i,this.renderedAttributions_)){Ub(this.ulElement_);for(let s=0,a=i.length;s0&&n%(2*Math.PI)!==0?i.animate({rotation:0,duration:this.duration_,easing:jn}):i.setRotation(0))}render(e){const i=e.frameState;if(!i)return;const n=i.viewState.rotation;if(n!=this.rotation_){const s="rotate("+n+"rad)";if(this.autoHide_){const a=this.element.classList.contains(ca);!a&&n===0?this.element.classList.add(ca):a&&n!==0&&this.element.classList.remove(ca)}this.label_.style.transform=s}this.rotation_=n}}const l_=o_;class c_ extends Ml{constructor(e){e=e||{},super({element:document.createElement("div"),target:e.target});const i=e.className!==void 0?e.className:"ol-zoom",n=e.delta!==void 0?e.delta:1,s=e.zoomInClassName!==void 0?e.zoomInClassName:i+"-in",a=e.zoomOutClassName!==void 0?e.zoomOutClassName:i+"-out",r=e.zoomInLabel!==void 0?e.zoomInLabel:"+",o=e.zoomOutLabel!==void 0?e.zoomOutLabel:"–",l=e.zoomInTipLabel!==void 0?e.zoomInTipLabel:"Zoom in",c=e.zoomOutTipLabel!==void 0?e.zoomOutTipLabel:"Zoom out",u=document.createElement("button");u.className=s,u.setAttribute("type","button"),u.title=l,u.appendChild(typeof r=="string"?document.createTextNode(r):r),u.addEventListener(le.CLICK,this.handleClick_.bind(this,n),!1);const h=document.createElement("button");h.className=a,h.setAttribute("type","button"),h.title=c,h.appendChild(typeof o=="string"?document.createTextNode(o):o),h.addEventListener(le.CLICK,this.handleClick_.bind(this,-n),!1);const d=i+" "+Mr+" "+Nl,m=this.element;m.className=d,m.appendChild(u),m.appendChild(h),this.duration_=e.duration!==void 0?e.duration:250}handleClick_(e,i){i.preventDefault(),this.zoomByDelta_(e)}zoomByDelta_(e){const n=this.getMap().getView();if(!n)return;const s=n.getZoom();if(s!==void 0){const a=n.getConstrainedZoom(s+e);this.duration_>0?(n.getAnimating()&&n.cancelAnimations(),n.animate({zoom:a,duration:this.duration_,easing:jn})):n.setZoom(a)}}}const u_=c_;function h_(t){t=t||{};const e=new ai;return(t.zoom!==void 0?t.zoom:!0)&&e.push(new u_(t.zoomOptions)),(t.rotate!==void 0?t.rotate:!0)&&e.push(new l_(t.rotateOptions)),(t.attribution!==void 0?t.attribution:!0)&&e.push(new r_(t.attributionOptions)),e}const mu={ACTIVE:"active"};class d_ extends ci{constructor(e){super(),this.on,this.once,this.un,e&&e.handleEvent&&(this.handleEvent=e.handleEvent),this.map_=null,this.setActive(!0)}getActive(){return this.get(mu.ACTIVE)}getMap(){return this.map_}handleEvent(e){return!0}setActive(e){this.set(mu.ACTIVE,e)}setMap(e){this.map_=e}}function m_(t,e,i){const n=t.getCenterInternal();if(n){const s=[n[0]+e[0],n[1]+e[1]];t.animateInternal({duration:i!==void 0?i:250,easing:lb,center:t.getConstrainedCenter(s)})}}function Tl(t,e,i,n){const s=t.getZoom();if(s===void 0)return;const a=t.getConstrainedZoom(s+e),r=t.getResolutionForZoom(a);t.getAnimating()&&t.cancelAnimations(),t.animate({resolution:r,anchor:i,duration:n!==void 0?n:250,easing:jn})}const Xs=d_;class f_ extends Xs{constructor(e){super(),e=e||{},this.delta_=e.delta?e.delta:1,this.duration_=e.duration!==void 0?e.duration:250}handleEvent(e){let i=!1;if(e.type==Ze.DBLCLICK){const n=e.originalEvent,s=e.map,a=e.coordinate,r=n.shiftKey?-this.delta_:this.delta_,o=s.getView();Tl(o,r,a,this.duration_),n.preventDefault(),i=!0}return!i}}const p_=f_;class g_ extends Xs{constructor(e){e=e||{},super(e),e.handleDownEvent&&(this.handleDownEvent=e.handleDownEvent),e.handleDragEvent&&(this.handleDragEvent=e.handleDragEvent),e.handleMoveEvent&&(this.handleMoveEvent=e.handleMoveEvent),e.handleUpEvent&&(this.handleUpEvent=e.handleUpEvent),e.stopDown&&(this.stopDown=e.stopDown),this.handlingDownUpSequence=!1,this.targetPointers=[]}getPointerCount(){return this.targetPointers.length}handleDownEvent(e){return!1}handleDragEvent(e){}handleEvent(e){if(!e.originalEvent)return!0;let i=!1;if(this.updateTrackedPointers_(e),this.handlingDownUpSequence){if(e.type==Ze.POINTERDRAG)this.handleDragEvent(e),e.originalEvent.preventDefault();else if(e.type==Ze.POINTERUP){const n=this.handleUpEvent(e);this.handlingDownUpSequence=n&&this.targetPointers.length>0}}else if(e.type==Ze.POINTERDOWN){const n=this.handleDownEvent(e);this.handlingDownUpSequence=n,i=this.stopDown(n)}else e.type==Ze.POINTERMOVE&&this.handleMoveEvent(e);return!i}handleMoveEvent(e){}handleUpEvent(e){return!1}stopDown(e){return e}updateTrackedPointers_(e){e.activePointers&&(this.targetPointers=e.activePointers)}}function Rl(t){const e=t.length;let i=0,n=0;for(let s=0;s0&&this.condition_(e)){const n=e.map.getView();return this.lastCentroid=null,n.getAnimating()&&n.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1}}const N_=C_;class F_ extends Ws{constructor(e){e=e||{},super({stopDown:_r}),this.condition_=e.condition?e.condition:y_,this.lastAngle_=void 0,this.duration_=e.duration!==void 0?e.duration:250}handleDragEvent(e){if(!Hr(e))return;const i=e.map,n=i.getView();if(n.getConstraints().rotation===vl)return;const s=i.getSize(),a=e.pixel,r=Math.atan2(s[1]/2-a[1],a[0]-s[0]/2);if(this.lastAngle_!==void 0){const o=r-this.lastAngle_;n.adjustRotationInternal(-o)}this.lastAngle_=r}handleUpEvent(e){return Hr(e)?(e.map.getView().endInteraction(this.duration_),!1):!0}handleDownEvent(e){return Hr(e)&&im(e)&&this.condition_(e)?(e.map.getView().beginInteraction(),this.lastAngle_=void 0,!0):!1}}const E_=F_;class M_ extends ol{constructor(e){super(),this.geometry_=null,this.element_=document.createElement("div"),this.element_.style.position="absolute",this.element_.style.pointerEvents="auto",this.element_.className="ol-box "+e,this.map_=null,this.startPixel_=null,this.endPixel_=null}disposeInternal(){this.setMap(null)}render_(){const e=this.startPixel_,i=this.endPixel_,n="px",s=this.element_.style;s.left=Math.min(e[0],i[0])+n,s.top=Math.min(e[1],i[1])+n,s.width=Math.abs(i[0]-e[0])+n,s.height=Math.abs(i[1]-e[1])+n}setMap(e){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);const i=this.element_.style;i.left="inherit",i.top="inherit",i.width="inherit",i.height="inherit"}this.map_=e,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)}setPixels(e,i){this.startPixel_=e,this.endPixel_=i,this.createOrUpdateGeometry(),this.render_()}createOrUpdateGeometry(){const e=this.startPixel_,i=this.endPixel_,s=[e,[e[0],i[1]],i,[i[0],e[1]]].map(this.map_.getCoordinateFromPixelInternal,this.map_);s[4]=s[0].slice(),this.geometry_?this.geometry_.setCoordinates([s]):this.geometry_=new Rs([s])}getGeometry(){return this.geometry_}}const T_=M_,ua={BOXSTART:"boxstart",BOXDRAG:"boxdrag",BOXEND:"boxend",BOXCANCEL:"boxcancel"};class zr extends ki{constructor(e,i,n){super(e),this.coordinate=i,this.mapBrowserEvent=n}}class R_ extends Ws{constructor(e){super(),this.on,this.once,this.un,e=e||{},this.box_=new T_(e.className||"ol-dragbox"),this.minArea_=e.minArea!==void 0?e.minArea:64,e.onBoxEnd&&(this.onBoxEnd=e.onBoxEnd),this.startPixel_=null,this.condition_=e.condition?e.condition:im,this.boxEndCondition_=e.boxEndCondition?e.boxEndCondition:this.defaultBoxEndCondition}defaultBoxEndCondition(e,i,n){const s=n[0]-i[0],a=n[1]-i[1];return s*s+a*a>=this.minArea_}getGeometry(){return this.box_.getGeometry()}handleDragEvent(e){this.box_.setPixels(this.startPixel_,e.pixel),this.dispatchEvent(new zr(ua.BOXDRAG,e.coordinate,e))}handleUpEvent(e){this.box_.setMap(null);const i=this.boxEndCondition_(e,this.startPixel_,e.pixel);return i&&this.onBoxEnd(e),this.dispatchEvent(new zr(i?ua.BOXEND:ua.BOXCANCEL,e.coordinate,e)),!1}handleDownEvent(e){return this.condition_(e)?(this.startPixel_=e.pixel,this.box_.setMap(e.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new zr(ua.BOXSTART,e.coordinate,e)),!0):!1}onBoxEnd(e){}}const I_=R_;class k_ extends I_{constructor(e){e=e||{};const i=e.condition?e.condition:x_;super({condition:i,className:e.className||"ol-dragzoom",minArea:e.minArea}),this.duration_=e.duration!==void 0?e.duration:200,this.out_=e.out!==void 0?e.out:!1}onBoxEnd(e){const n=this.getMap().getView();let s=this.getGeometry();if(this.out_){const a=n.rotatedExtentForGeometry(s),r=n.getResolutionForExtentInternal(a),o=n.getResolution()/r;s=s.clone(),s.scale(o*o)}n.fitInternal(s,{duration:this.duration_,easing:jn})}}const L_=k_,Oi={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",DOWN:"ArrowDown"};class S_ extends Xs{constructor(e){super(),e=e||{},this.defaultCondition_=function(i){return nm(i)&&sm(i)},this.condition_=e.condition!==void 0?e.condition:this.defaultCondition_,this.duration_=e.duration!==void 0?e.duration:100,this.pixelDelta_=e.pixelDelta!==void 0?e.pixelDelta:128}handleEvent(e){let i=!1;if(e.type==le.KEYDOWN){const n=e.originalEvent,s=n.key;if(this.condition_(e)&&(s==Oi.DOWN||s==Oi.LEFT||s==Oi.RIGHT||s==Oi.UP)){const r=e.map.getView(),o=r.getResolution()*this.pixelDelta_;let l=0,c=0;s==Oi.DOWN?c=-o:s==Oi.LEFT?l=-o:s==Oi.RIGHT?l=o:c=o;const u=[l,c];fl(u,r.getRotation()),m_(r,u,this.duration_),n.preventDefault(),i=!0}}return!i}}const D_=S_;class P_ extends Xs{constructor(e){super(),e=e||{},this.condition_=e.condition?e.condition:function(i){return!v_(i)&&sm(i)},this.delta_=e.delta?e.delta:1,this.duration_=e.duration!==void 0?e.duration:100}handleEvent(e){let i=!1;if(e.type==le.KEYDOWN||e.type==le.KEYPRESS){const n=e.originalEvent,s=n.key;if(this.condition_(e)&&(s==="+"||s==="-")){const a=e.map,r=s==="+"?this.delta_:-this.delta_,o=a.getView();Tl(o,r,void 0,this.duration_),n.preventDefault(),i=!0}}return!i}}const A_=P_;class O_{constructor(e,i,n){this.decay_=e,this.minVelocity_=i,this.delay_=n,this.points_=[],this.angle_=0,this.initialVelocity_=0}begin(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0}update(e,i){this.points_.push(e,i,Date.now())}end(){if(this.points_.length<6)return!1;const e=Date.now()-this.delay_,i=this.points_.length-3;if(this.points_[i+2]0&&this.points_[n+2]>e;)n-=3;const s=this.points_[i+2]-this.points_[n+2];if(s<1e3/60)return!1;const a=this.points_[i]-this.points_[n],r=this.points_[i+1]-this.points_[n+1];return this.angle_=Math.atan2(r,a),this.initialVelocity_=Math.sqrt(a*a+r*r)/s,this.initialVelocity_>this.minVelocity_}getDistance(){return(this.minVelocity_-this.initialVelocity_)/this.decay_}getAngle(){return this.angle_}}const G_=O_;class Z_ extends Xs{constructor(e){e=e||{},super(e),this.totalDelta_=0,this.lastDelta_=0,this.maxDelta_=e.maxDelta!==void 0?e.maxDelta:1,this.duration_=e.duration!==void 0?e.duration:250,this.timeout_=e.timeout!==void 0?e.timeout:80,this.useAnchor_=e.useAnchor!==void 0?e.useAnchor:!0,this.constrainResolution_=e.constrainResolution!==void 0?e.constrainResolution:!1;const i=e.condition?e.condition:__;this.condition_=e.onFocusOnly?Mo(tm,i):i,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_,this.mode_=void 0,this.trackpadEventGap_=400,this.trackpadTimeoutId_,this.deltaPerZoom_=300}endInteraction_(){this.trackpadTimeoutId_=void 0;const e=this.getMap();if(!e)return;e.getView().endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_)}handleEvent(e){if(!this.condition_(e)||e.type!==le.WHEEL)return!0;const n=e.map,s=e.originalEvent;s.preventDefault(),this.useAnchor_&&(this.lastAnchor_=e.coordinate);let a;if(e.type==le.WHEEL&&(a=s.deltaY,r2&&s.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(a/=Fd),s.deltaMode===WheelEvent.DOM_DELTA_LINE&&(a*=40)),a===0)return!1;this.lastDelta_=a;const r=Date.now();this.startTime_===void 0&&(this.startTime_=r),(!this.mode_||r-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(a)<4?"trackpad":"wheel");const o=n.getView();if(this.mode_==="trackpad"&&!(o.getConstrainResolution()||this.constrainResolution_))return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(o.getAnimating()&&o.cancelAnimations(),o.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),o.adjustZoom(-a/this.deltaPerZoom_,this.lastAnchor_),this.startTime_=r,!1;this.totalDelta_+=a;const l=Math.max(this.timeout_-(r-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,n),l),!1}handleWheelZoom_(e){const i=e.getView();i.getAnimating()&&i.cancelAnimations();let n=-ze(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(i.getConstrainResolution()||this.constrainResolution_)&&(n=n?n>0?1:-1:0),Tl(i,n,this.lastAnchor_,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0}setMouseAnchor(e){this.useAnchor_=e,e||(this.lastAnchor_=null)}}const X_=Z_;class W_ extends Ws{constructor(e){e=e||{};const i=e;i.stopDown||(i.stopDown=_r),super(i),this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.threshold_=e.threshold!==void 0?e.threshold:.3,this.duration_=e.duration!==void 0?e.duration:250}handleDragEvent(e){let i=0;const n=this.targetPointers[0],s=this.targetPointers[1],a=Math.atan2(s.clientY-n.clientY,s.clientX-n.clientX);if(this.lastAngle_!==void 0){const l=a-this.lastAngle_;this.rotationDelta_+=l,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),i=l}this.lastAngle_=a;const r=e.map,o=r.getView();o.getConstraints().rotation!==vl&&(this.anchor_=r.getCoordinateFromPixelInternal(r.getEventPixel(Rl(this.targetPointers))),this.rotating_&&(r.render(),o.adjustRotationInternal(i,this.anchor_)))}handleUpEvent(e){return this.targetPointers.length<2?(e.map.getView().endInteraction(this.duration_),!1):!0}handleDownEvent(e){if(this.targetPointers.length>=2){const i=e.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||i.getView().beginInteraction(),!0}return!1}}const K_=W_;class V_ extends Ws{constructor(e){e=e||{};const i=e;i.stopDown||(i.stopDown=_r),super(i),this.anchor_=null,this.duration_=e.duration!==void 0?e.duration:400,this.lastDistance_=void 0,this.lastScaleDelta_=1}handleDragEvent(e){let i=1;const n=this.targetPointers[0],s=this.targetPointers[1],a=n.clientX-s.clientX,r=n.clientY-s.clientY,o=Math.sqrt(a*a+r*r);this.lastDistance_!==void 0&&(i=this.lastDistance_/o),this.lastDistance_=o;const l=e.map,c=l.getView();i!=1&&(this.lastScaleDelta_=i),this.anchor_=l.getCoordinateFromPixelInternal(l.getEventPixel(Rl(this.targetPointers))),l.render(),c.adjustResolutionInternal(i,this.anchor_)}handleUpEvent(e){if(this.targetPointers.length<2){const n=e.map.getView(),s=this.lastScaleDelta_>1?1:-1;return n.endInteraction(this.duration_,s),!1}return!0}handleDownEvent(e){if(this.targetPointers.length>=2){const i=e.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||i.getView().beginInteraction(),!0}return!1}}const U_=V_;function B_(t){t=t||{};const e=new ai,i=new G_(-.005,.05,100);return(t.altShiftDragRotate!==void 0?t.altShiftDragRotate:!0)&&e.push(new E_),(t.doubleClickZoom!==void 0?t.doubleClickZoom:!0)&&e.push(new p_({delta:t.zoomDelta,duration:t.zoomDuration})),(t.dragPan!==void 0?t.dragPan:!0)&&e.push(new N_({onFocusOnly:t.onFocusOnly,kinetic:i})),(t.pinchRotate!==void 0?t.pinchRotate:!0)&&e.push(new K_),(t.pinchZoom!==void 0?t.pinchZoom:!0)&&e.push(new U_({duration:t.zoomDuration})),(t.keyboard!==void 0?t.keyboard:!0)&&(e.push(new D_),e.push(new A_({delta:t.zoomDelta,duration:t.zoomDuration}))),(t.mouseWheelZoom!==void 0?t.mouseWheelZoom:!0)&&e.push(new X_({onFocusOnly:t.onFocusOnly,duration:t.zoomDuration})),(t.shiftDragZoom!==void 0?t.shiftDragZoom:!0)&&e.push(new L_({duration:t.zoomDuration})),e}function fu(t){return t[0]>0&&t[1]>0}function H_(t,e,i){return i===void 0&&(i=[0,0]),i[0]=t[0]*e+.5|0,i[1]=t[1]*e+.5|0,i}function _i(t,e){return Array.isArray(t)?t:(e===void 0?e=[t,t]:(e[0]=t,e[1]=t),e)}function am(t){if(t instanceof Cl){t.setMapInternal(null);return}t instanceof Tr&&t.getLayers().forEach(am)}function rm(t,e){if(t instanceof Cl){t.setMapInternal(e);return}if(t instanceof Tr){const i=t.getLayers().getArray();for(let n=0,s=i.length;nthis.updateSize()),this.controls=i.controls||h_(),this.interactions=i.interactions||B_({onFocusOnly:!0}),this.overlays_=i.overlays,this.overlayIdIndex_={},this.renderer_=null,this.postRenderFunctions_=[],this.tileQueue_=new i_(this.getTilePriority.bind(this),this.handleTileChange_.bind(this)),this.addChangeListener(lt.LAYERGROUP,this.handleLayerGroupChanged_),this.addChangeListener(lt.VIEW,this.handleViewChanged_),this.addChangeListener(lt.SIZE,this.handleSizeChanged_),this.addChangeListener(lt.TARGET,this.handleTargetChanged_),this.setProperties(i.values);const n=this;e.view&&!(e.view instanceof Yt)&&e.view.then(function(s){n.setView(new Yt(s))}),this.controls.addEventListener(St.ADD,s=>{s.element.setMap(this)}),this.controls.addEventListener(St.REMOVE,s=>{s.element.setMap(null)}),this.interactions.addEventListener(St.ADD,s=>{s.element.setMap(this)}),this.interactions.addEventListener(St.REMOVE,s=>{s.element.setMap(null)}),this.overlays_.addEventListener(St.ADD,s=>{this.addOverlayInternal_(s.element)}),this.overlays_.addEventListener(St.REMOVE,s=>{const a=s.element.getId();a!==void 0&&delete this.overlayIdIndex_[a.toString()],s.element.setMap(null)}),this.controls.forEach(s=>{s.setMap(this)}),this.interactions.forEach(s=>{s.setMap(this)}),this.overlays_.forEach(this.addOverlayInternal_.bind(this))}addControl(e){this.getControls().push(e)}addInteraction(e){this.getInteractions().push(e)}addLayer(e){this.getLayerGroup().getLayers().push(e)}handleLayerAdd_(e){rm(e.layer,this)}addOverlay(e){this.getOverlays().push(e)}addOverlayInternal_(e){const i=e.getId();i!==void 0&&(this.overlayIdIndex_[i.toString()]=e),e.setMap(this)}disposeInternal(){this.controls.clear(),this.interactions.clear(),this.overlays_.clear(),this.resizeObserver_.disconnect(),this.setTarget(null),super.disposeInternal()}forEachFeatureAtPixel(e,i,n){if(!this.frameState_||!this.renderer_)return;const s=this.getCoordinateFromPixelInternal(e);n=n!==void 0?n:{};const a=n.hitTolerance!==void 0?n.hitTolerance:0,r=n.layerFilter!==void 0?n.layerFilter:Za,o=n.checkWrapped!==!1;return this.renderer_.forEachFeatureAtCoordinate(s,this.frameState_,a,o,i,null,r,null)}getFeaturesAtPixel(e,i){const n=[];return this.forEachFeatureAtPixel(e,function(s){n.push(s)},i),n}getAllLayers(){const e=[];function i(n){n.forEach(function(s){s instanceof Tr?i(s.getLayers()):e.push(s)})}return i(this.getLayers()),e}hasFeatureAtPixel(e,i){if(!this.frameState_||!this.renderer_)return!1;const n=this.getCoordinateFromPixelInternal(e);i=i!==void 0?i:{};const s=i.layerFilter!==void 0?i.layerFilter:Za,a=i.hitTolerance!==void 0?i.hitTolerance:0,r=i.checkWrapped!==!1;return this.renderer_.hasFeatureAtCoordinate(n,this.frameState_,a,r,s,null)}getEventCoordinate(e){return this.getCoordinateFromPixel(this.getEventPixel(e))}getEventCoordinateInternal(e){return this.getCoordinateFromPixelInternal(this.getEventPixel(e))}getEventPixel(e){const n=this.viewport_.getBoundingClientRect(),s=this.getSize(),a=n.width/s[0],r=n.height/s[1],o="changedTouches"in e?e.changedTouches[0]:e;return[(o.clientX-n.left)/a,(o.clientY-n.top)/r]}getTarget(){return this.get(lt.TARGET)}getTargetElement(){return this.targetElement_}getCoordinateFromPixel(e){return No(this.getCoordinateFromPixelInternal(e),this.getView().getProjection())}getCoordinateFromPixelInternal(e){const i=this.frameState_;return i?kt(i.pixelToCoordinateTransform,e.slice()):null}getControls(){return this.controls}getOverlays(){return this.overlays_}getOverlayById(e){const i=this.overlayIdIndex_[e.toString()];return i!==void 0?i:null}getInteractions(){return this.interactions}getLayerGroup(){return this.get(lt.LAYERGROUP)}setLayers(e){const i=this.getLayerGroup();if(e instanceof ai){i.setLayers(e);return}const n=i.getLayers();n.clear(),n.extend(e)}getLayers(){return this.getLayerGroup().getLayers()}getLoadingOrNotReady(){const e=this.getLayerGroup().getLayerStatesArray();for(let i=0,n=e.length;i=0;a--){const r=s[a];if(r.getMap()!==this||!r.getActive()||!this.getTargetElement())continue;if(!r.handleEvent(e)||e.propagationStopped)break}}}handlePostRender(){const e=this.frameState_,i=this.tileQueue_;if(!i.isEmpty()){let s=this.maxTilesLoading_,a=s;if(e){const r=e.viewHints;if(r[Lt.ANIMATING]||r[Lt.INTERACTING]){const o=Date.now()-e.time>8;s=o?0:8,a=o?0:2}}i.getTilesLoading(){this.postRenderTimeoutHandle_=void 0,this.handlePostRender()},0))}setLayerGroup(e){const i=this.getLayerGroup();i&&this.handleLayerRemove_(new yi("removelayer",i)),this.set(lt.LAYERGROUP,e)}setSize(e){this.set(lt.SIZE,e)}setTarget(e){this.set(lt.TARGET,e)}setView(e){if(!e||e instanceof Yt){this.set(lt.VIEW,e);return}this.set(lt.VIEW,new Yt);const i=this;e.then(function(n){i.setView(new Yt(n))})}updateSize(){const e=this.getTargetElement();let i;if(e){const s=getComputedStyle(e),a=e.offsetWidth-parseFloat(s.borderLeftWidth)-parseFloat(s.paddingLeft)-parseFloat(s.paddingRight)-parseFloat(s.borderRightWidth),r=e.offsetHeight-parseFloat(s.borderTopWidth)-parseFloat(s.paddingTop)-parseFloat(s.paddingBottom)-parseFloat(s.borderBottomWidth);!isNaN(a)&&!isNaN(r)&&(i=[a,r],!fu(i)&&(e.offsetWidth||e.offsetHeight||e.getClientRects().length)&&Xd("No map visible because the map container's width or height are 0."))}const n=this.getSize();i&&(!n||!br(i,n))&&(this.setSize(i),this.updateViewportSize_(i))}updateViewportSize_(e){const i=this.getView();i&&i.setViewportSize(e)}};function q_(t){let e=null;t.keyboardEventTarget!==void 0&&(e=typeof t.keyboardEventTarget=="string"?document.getElementById(t.keyboardEventTarget):t.keyboardEventTarget);const i={},n=t.layers&&typeof t.layers.getLayers=="function"?t.layers:new Tr({layers:t.layers});i[lt.LAYERGROUP]=n,i[lt.TARGET]=t.target,i[lt.VIEW]=t.view instanceof Yt?t.view:new Yt;let s;t.controls!==void 0&&(Array.isArray(t.controls)?s=new ai(t.controls.slice()):(Le(typeof t.controls.getArray=="function","Expected `controls` to be an array or an `ol/Collection.js`"),s=t.controls));let a;t.interactions!==void 0&&(Array.isArray(t.interactions)?a=new ai(t.interactions.slice()):(Le(typeof t.interactions.getArray=="function","Expected `interactions` to be an array or an `ol/Collection.js`"),a=t.interactions));let r;return t.overlays!==void 0?Array.isArray(t.overlays)?r=new ai(t.overlays.slice()):(Le(typeof t.overlays.getArray=="function","Expected `overlays` to be an array or an `ol/Collection.js`"),r=t.overlays):r=new ai,{controls:s,interactions:a,keyboardEventTarget:e,overlays:r,values:i}}const j_=z_;class Y_ extends ul{constructor(e,i,n){super(),n=n||{},this.tileCoord=e,this.state=i,this.interimTile=null,this.key="",this.transition_=n.transition===void 0?250:n.transition,this.transitionStarts_={},this.interpolate=!!n.interpolate}changed(){this.dispatchEvent(le.CHANGE)}release(){this.state===Q.ERROR&&this.setState(Q.EMPTY)}getKey(){return this.key+"/"+this.tileCoord}getInterimTile(){let e=this.interimTile;if(!e)return this;do{if(e.getState()==Q.LOADED)return this.transition_=0,e;e=e.interimTile}while(e);return this}refreshInterimChain(){let e=this.interimTile;if(!e)return;let i=this;do{if(e.getState()==Q.LOADED){e.interimTile=null;break}e.getState()==Q.LOADING?i=e:e.getState()==Q.IDLE?i.interimTile=e.interimTile:i=e,e=i.interimTile}while(e)}getTileCoord(){return this.tileCoord}getState(){return this.state}setState(e){if(this.state!==Q.ERROR&&this.state>e)throw new Error("Tile load sequence violation");this.state=e,this.changed()}load(){Xe()}getAlpha(e,i){if(!this.transition_)return 1;let n=this.transitionStarts_[e];if(!n)n=i,this.transitionStarts_[e]=n;else if(n===-1)return 1;const s=i-n+1e3/60;return s>=this.transition_?1:Vd(s/this.transition_)}inTransition(e){return this.transition_?this.transitionStarts_[e]!==-1:!1}endTransition(e){this.transition_&&(this.transitionStarts_[e]=-1)}}const om=Y_,un={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4};function $_(t,e,i){const n=t;let s=!0,a=!1,r=!1;const o=[Wa(n,le.LOAD,function(){r=!0,a||e()})];return n.src&&c2?(a=!0,n.decode().then(function(){s&&e()}).catch(function(l){s&&(r?e():i())})):o.push(Wa(n,le.ERROR,i)),function(){s=!1,o.forEach(He)}}class J_ extends om{constructor(e,i,n,s,a,r){super(e,i,r),this.crossOrigin_=s,this.src_=n,this.key=n,this.image_=new Image,s!==null&&(this.image_.crossOrigin=s),this.unlisten_=null,this.tileLoadFunction_=a}getImage(){return this.image_}setImage(e){this.image_=e,this.state=Q.LOADED,this.unlistenImage_(),this.changed()}handleImageError_(){this.state=Q.ERROR,this.unlistenImage_(),this.image_=Q_(),this.changed()}handleImageLoad_(){const e=this.image_;e.naturalWidth&&e.naturalHeight?this.state=Q.LOADED:this.state=Q.EMPTY,this.unlistenImage_(),this.changed()}load(){this.state==Q.ERROR&&(this.state=Q.IDLE,this.image_=new Image,this.crossOrigin_!==null&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==Q.IDLE&&(this.state=Q.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=$_(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))}unlistenImage_(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}}function Q_(){const t=Wn(1,1);return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),t.canvas}const lm=J_,ev=.5,tv=10,pu=.25;class iv{constructor(e,i,n,s,a,r){this.sourceProj_=e,this.targetProj_=i;let o={};const l=Ua(this.targetProj_,this.sourceProj_);this.transformInv_=function(v){const N=v[0]+"/"+v[1];return o[N]||(o[N]=l(v)),o[N]},this.maxSourceExtent_=s,this.errorThresholdSquared_=a*a,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!s&&!!this.sourceProj_.getExtent()&&Be(s)>=Be(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?Be(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?Be(this.targetProj_.getExtent()):null;const c=an(n),u=Fr(n),h=Nr(n),d=Cr(n),m=this.transformInv_(c),f=this.transformInv_(u),p=this.transformInv_(h),y=this.transformInv_(d),_=tv+(r?Math.max(0,Math.ceil(Math.log2(bo(n)/(r*r*256*256)))):0);if(this.addQuad_(c,u,h,d,m,f,p,y,_),this.wrapsXInSource_){let v=1/0;this.triangles_.forEach(function(N,w,E){v=Math.min(v,N.source[0][0],N.source[1][0],N.source[2][0])}),this.triangles_.forEach(N=>{if(Math.max(N.source[0][0],N.source[1][0],N.source[2][0])-v>this.sourceWorldWidth_/2){const w=[[N.source[0][0],N.source[0][1]],[N.source[1][0],N.source[1][1]],[N.source[2][0],N.source[2][1]]];w[0][0]-v>this.sourceWorldWidth_/2&&(w[0][0]-=this.sourceWorldWidth_),w[1][0]-v>this.sourceWorldWidth_/2&&(w[1][0]-=this.sourceWorldWidth_),w[2][0]-v>this.sourceWorldWidth_/2&&(w[2][0]-=this.sourceWorldWidth_);const E=Math.min(w[0][0],w[1][0],w[2][0]);Math.max(w[0][0],w[1][0],w[2][0])-E.5&&h<1;let f=!1;if(c>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){const y=Vc([e,i,n,s]);f=Be(y)/this.targetWorldWidth_>pu||f}!m&&this.sourceProj_.isGlobal()&&h&&(f=h>pu||f)}if(!f&&this.maxSourceExtent_&&isFinite(u[0])&&isFinite(u[1])&&isFinite(u[2])&&isFinite(u[3])&&!Gs(u,this.maxSourceExtent_))return;let p=0;if(!f&&(!isFinite(a[0])||!isFinite(a[1])||!isFinite(r[0])||!isFinite(r[1])||!isFinite(o[0])||!isFinite(o[1])||!isFinite(l[0])||!isFinite(l[1]))){if(c>0)f=!0;else if(p=(!isFinite(a[0])||!isFinite(a[1])?8:0)+(!isFinite(r[0])||!isFinite(r[1])?4:0)+(!isFinite(o[0])||!isFinite(o[1])?2:0)+(!isFinite(l[0])||!isFinite(l[1])?1:0),p!=1&&p!=2&&p!=4&&p!=8)return}if(c>0){if(!f){const y=[(e[0]+n[0])/2,(e[1]+n[1])/2],_=this.transformInv_(y);let v;m?v=(kn(a[0],d)+kn(o[0],d))/2-kn(_[0],d):v=(a[0]+o[0])/2-_[0];const N=(a[1]+o[1])/2-_[1];f=v*v+N*N>this.errorThresholdSquared_}if(f){if(Math.abs(e[0]-n[0])<=Math.abs(e[1]-n[1])){const y=[(i[0]+n[0])/2,(i[1]+n[1])/2],_=this.transformInv_(y),v=[(s[0]+e[0])/2,(s[1]+e[1])/2],N=this.transformInv_(v);this.addQuad_(e,i,y,v,a,r,_,N,c-1),this.addQuad_(v,y,n,s,N,_,o,l,c-1)}else{const y=[(e[0]+i[0])/2,(e[1]+i[1])/2],_=this.transformInv_(y),v=[(n[0]+s[0])/2,(n[1]+s[1])/2],N=this.transformInv_(v);this.addQuad_(e,y,v,s,a,_,N,l,c-1),this.addQuad_(y,i,n,v,_,r,o,N,c-1)}return}}if(m){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}p&11||this.addTriangle_(e,n,s,a,o,l),p&14||this.addTriangle_(e,n,i,a,o,r),p&&(p&13||this.addTriangle_(i,s,e,r,l,a),p&7||this.addTriangle_(i,s,n,r,l,o))}calculateSourceExtent(){const e=sn();return this.triangles_.forEach(function(i,n,s){const a=i.source;xa(e,a[0]),xa(e,a[1]),xa(e,a[2])}),e}getTriangles(){return this.triangles_}}const nv=iv;let qr;const Sn=[];function gu(t,e,i,n,s){t.beginPath(),t.moveTo(0,0),t.lineTo(e,i),t.lineTo(n,s),t.closePath(),t.save(),t.clip(),t.fillRect(0,0,Math.max(e,n)+1,Math.max(i,s)),t.restore()}function jr(t,e){return Math.abs(t[e*4]-210)>2||Math.abs(t[e*4+3]-.75*255)>2}function sv(){if(qr===void 0){const t=Wn(6,6,Sn);t.globalCompositeOperation="lighter",t.fillStyle="rgba(210, 0, 0, 0.75)",gu(t,4,5,4,0),gu(t,4,5,0,5);const e=t.getImageData(0,0,3,3).data;qr=jr(e,0)||jr(e,4)||jr(e,8),Fl(t),Sn.push(t.canvas)}return qr}function yu(t,e,i,n){const s=Q2(i,e,t);let a=Qc(e,n,i);const r=e.getMetersPerUnit();r!==void 0&&(a*=r);const o=t.getMetersPerUnit();o!==void 0&&(a/=o);const l=t.getExtent();if(!l||hl(l,s)){const c=Qc(t,a,s)/a;isFinite(c)&&c>0&&(a/=c)}return a}function av(t,e,i,n){const s=Ms(i);let a=yu(t,e,s,n);return(!isFinite(a)||a<=0)&&Ld(i,function(r){return a=yu(t,e,r,n),isFinite(a)&&a>0}),a}function rv(t,e,i,n,s,a,r,o,l,c,u,h,d){const m=Wn(Math.round(i*t),Math.round(i*e),Sn);if(h||(m.imageSmoothingEnabled=!1),l.length===0)return m.canvas;m.scale(i,i);function f(v){return Math.round(v*i)/i}m.globalCompositeOperation="lighter";const p=sn();l.forEach(function(v,N,w){g2(p,v.extent)});let y;if(!d||l.length!==1||c!==0){const v=Be(p),N=Kt(p);y=Wn(Math.round(i*v/n),Math.round(i*N/n),Sn),h||(y.imageSmoothingEnabled=!1);const w=i/n;l.forEach(function(E,L,Y){const q=E.extent[0]-p[0],re=-(E.extent[3]-p[3]),oe=Be(E.extent),_e=Kt(E.extent);E.image.width>0&&E.image.height>0&&y.drawImage(E.image,c,c,E.image.width-2*c,E.image.height-2*c,q*w,re*w,oe*w,_e*w)})}const _=an(r);return o.getTriangles().forEach(function(v,N,w){const E=v.source,L=v.target;let Y=E[0][0],q=E[0][1],re=E[1][0],oe=E[1][1],_e=E[2][0],qe=E[2][1];const Ke=f((L[0][0]-_[0])/a),Ft=f(-(L[0][1]-_[1])/a),tt=f((L[1][0]-_[0])/a),ve=f(-(L[1][1]-_[1])/a),$=f((L[2][0]-_[0])/a),se=f(-(L[2][1]-_[1])/a),je=Y,Ye=q;Y=0,q=0,re-=je,oe-=Ye,_e-=je,qe-=Ye;const ot=[[re,oe,0,0,tt-Ke],[_e,qe,0,0,$-Ke],[0,0,re,oe,ve-Ft],[0,0,_e,qe,se-Ft]],me=F2(ot);if(!me)return;if(m.save(),m.beginPath(),sv()||!h){m.moveTo(tt,ve);const pe=4,Se=Ke-tt,Pe=Ft-ve;for(let F=0;F{i&&i.getState()==Q.LOADED&&e.push({extent:this.sourceTileGrid_.getTileCoordExtent(i.tileCoord),image:i.getImage()})}),this.sourceTiles_.length=0,e.length===0)this.state=Q.ERROR;else{const i=this.wrappedTileCoord_[0],n=this.targetTileGrid_.getTileSize(i),s=typeof n=="number"?n:n[0],a=typeof n=="number"?n:n[1],r=this.targetTileGrid_.getResolution(i),o=this.sourceTileGrid_.getResolution(this.sourceZ_),l=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=rv(s,a,this.pixelRatio_,o,this.sourceTileGrid_.getExtent(),r,l,this.triangulation_,e,this.gutter_,this.renderEdges_,this.interpolate),this.state=Q.LOADED}this.changed()}load(){if(this.state==Q.IDLE){this.state=Q.LOADING,this.changed();let e=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(i=>{const n=i.getState();if(n==Q.IDLE||n==Q.LOADING){e++;const s=Ne(i,le.CHANGE,function(a){const r=i.getState();(r==Q.LOADED||r==Q.ERROR||r==Q.EMPTY)&&(He(s),e--,e===0&&(this.unlistenSources_(),this.reproject_()))},this);this.sourcesListenerKeys_.push(s)}}),e===0?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach(function(i,n,s){i.getState()==Q.IDLE&&i.load()})}}unlistenSources_(){this.sourcesListenerKeys_.forEach(He),this.sourcesListenerKeys_=null}release(){this.canvas_&&(Fl(this.canvas_.getContext("2d")),Sn.push(this.canvas_),this.canvas_=null),super.release()}}const To=ov;class lv{constructor(e){this.highWaterMark=e!==void 0?e:2048,this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}canExpireCache(){return this.highWaterMark>0&&this.getCount()>this.highWaterMark}expireCache(e){for(;this.canExpireCache();)this.pop()}clear(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}containsKey(e){return this.entries_.hasOwnProperty(e)}forEach(e){let i=this.oldest_;for(;i;)e(i.value_,i.key_,this),i=i.newer}get(e,i){const n=this.entries_[e];return Le(n!==void 0,"Tried to get a value for a key that does not exist in the cache"),n===this.newest_||(n===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(n.newer.older=n.older,n.older.newer=n.newer),n.newer=null,n.older=this.newest_,this.newest_.newer=n,this.newest_=n),n.value_}remove(e){const i=this.entries_[e];return Le(i!==void 0,"Tried to get a value for a key that does not exist in the cache"),i===this.newest_?(this.newest_=i.older,this.newest_&&(this.newest_.newer=null)):i===this.oldest_?(this.oldest_=i.newer,this.oldest_&&(this.oldest_.older=null)):(i.newer.older=i.older,i.older.newer=i.newer),delete this.entries_[e],--this.count_,i.value_}getCount(){return this.count_}getKeys(){const e=new Array(this.count_);let i=0,n;for(n=this.newest_;n;n=n.older)e[i++]=n.key_;return e}getValues(){const e=new Array(this.count_);let i=0,n;for(n=this.newest_;n;n=n.older)e[i++]=n.value_;return e}peekLast(){return this.oldest_.value_}peekLastKey(){return this.oldest_.key_}peekFirstKey(){return this.newest_.key_}peek(e){var i;return(i=this.entries_[e])==null?void 0:i.value_}pop(){const e=this.oldest_;return delete this.entries_[e.key_],e.newer&&(e.newer.older=null),this.oldest_=e.newer,this.oldest_||(this.newest_=null),--this.count_,e.value_}replace(e,i){this.get(e),this.entries_[e].value_=i}set(e,i){Le(!(e in this.entries_),"Tried to set a value for a key that is used already");const n={key_:e,newer:null,older:this.newest_,value_:i};this.newest_?this.newest_.newer=n:this.oldest_=n,this.newest_=n,this.entries_[e]=n,++this.count_}setSize(e){this.highWaterMark=e}}const cv=lv;function bu(t,e,i,n){return n!==void 0?(n[0]=t,n[1]=e,n[2]=i,n):[t,e,i]}function Rr(t,e,i){return t+"/"+e+"/"+i}function cm(t){return Rr(t[0],t[1],t[2])}function uv(t){return t.split("/").map(Number)}function hv(t){return(t[1]<i||i>e.getMaxZoom())return!1;const a=e.getFullTileRange(i);return a?a.containsXY(n,s):!0}class mv extends cv{clear(){for(;this.getCount()>0;)this.pop().release();super.clear()}expireCache(e){for(;this.canExpireCache()&&!(this.peekLast().getKey()in e);)this.pop().release()}pruneExceptNewestZ(){if(this.getCount()===0)return;const e=this.peekFirstKey(),n=uv(e)[0];this.forEach(s=>{s.tileCoord[0]!==n&&(this.remove(cm(s.tileCoord)),s.release())})}}const um=mv,Yr={TILELOADSTART:"tileloadstart",TILELOADEND:"tileloadend",TILELOADERROR:"tileloaderror"};class fv extends ci{constructor(e){super(),this.projection=ft(e.projection),this.attributions_=_u(e.attributions),this.attributionsCollapsible_=e.attributionsCollapsible!==void 0?e.attributionsCollapsible:!0,this.loading=!1,this.state_=e.state!==void 0?e.state:"ready",this.wrapX_=e.wrapX!==void 0?e.wrapX:!1,this.interpolate_=!!e.interpolate,this.viewResolver=null,this.viewRejector=null;const i=this;this.viewPromise_=new Promise(function(n,s){i.viewResolver=n,i.viewRejector=s})}getAttributions(){return this.attributions_}getAttributionsCollapsible(){return this.attributionsCollapsible_}getProjection(){return this.projection}getResolutions(e){return null}getView(){return this.viewPromise_}getState(){return this.state_}getWrapX(){return this.wrapX_}getInterpolate(){return this.interpolate_}refresh(){this.changed()}setAttributions(e){this.attributions_=_u(e),this.changed()}setState(e){this.state_=e,this.changed()}}function _u(t){return t?Array.isArray(t)?function(e){return t}:typeof t=="function"?t:function(e){return[t]}:null}const pv=fv;class hm{constructor(e,i,n,s){this.minX=e,this.maxX=i,this.minY=n,this.maxY=s}contains(e){return this.containsXY(e[1],e[2])}containsTileRange(e){return this.minX<=e.minX&&e.maxX<=this.maxX&&this.minY<=e.minY&&e.maxY<=this.maxY}containsXY(e,i){return this.minX<=e&&e<=this.maxX&&this.minY<=i&&i<=this.maxY}equals(e){return this.minX==e.minX&&this.minY==e.minY&&this.maxX==e.maxX&&this.maxY==e.maxY}extend(e){e.minXthis.maxX&&(this.maxX=e.maxX),e.minYthis.maxY&&(this.maxY=e.maxY)}getHeight(){return this.maxY-this.minY+1}getSize(){return[this.getWidth(),this.getHeight()]}getWidth(){return this.maxX-this.minX+1}intersects(e){return this.minX<=e.maxX&&this.maxX>=e.minX&&this.minY<=e.maxY&&this.maxY>=e.minY}}function hn(t,e,i,n,s){return s!==void 0?(s.minX=t,s.maxX=e,s.minY=i,s.maxY=n,s):new hm(t,e,i,n)}const dm=hm,dn=[0,0,0],di=5;class gv{constructor(e){this.minZoom=e.minZoom!==void 0?e.minZoom:0,this.resolutions_=e.resolutions,Le(J1(this.resolutions_,(s,a)=>a-s,!0),"`resolutions` must be sorted in descending order");let i;if(!e.origins){for(let s=0,a=this.resolutions_.length-1;s{const r=new dm(Math.min(0,s[0]),Math.max(s[0]-1,-1),Math.min(0,s[1]),Math.max(s[1]-1,-1));if(n){const o=this.getTileRangeForExtentAndZ(n,a);r.minX=Math.max(o.minX,r.minX),r.maxX=Math.min(o.maxX,r.maxX),r.minY=Math.max(o.minY,r.minY),r.maxY=Math.min(o.maxY,r.maxY)}return r}):n&&this.calculateTileRanges_(n)}forEachTileCoord(e,i,n){const s=this.getTileRangeForExtentAndZ(e,i);for(let a=s.minX,r=s.maxX;a<=r;++a)for(let o=s.minY,l=s.maxY;o<=l;++o)n([i,a,o])}forEachTileCoordParentTileRange(e,i,n,s){let a,r,o,l=null,c=e[0]-1;for(this.zoomFactor_===2?(r=e[1],o=e[2]):l=this.getTileCoordExtent(e,s);c>=this.minZoom;){if(r!==void 0&&o!==void 0?(r=Math.floor(r/2),o=Math.floor(o/2),a=hn(r,r,o,o,n)):a=this.getTileRangeForExtentAndZ(l,c,n),i(c,a))return!0;--c}return!1}getExtent(){return this.extent_}getMaxZoom(){return this.maxZoom}getMinZoom(){return this.minZoom}getOrigin(e){return this.origin_?this.origin_:this.origins_[e]}getResolution(e){return this.resolutions_[e]}getResolutions(){return this.resolutions_}getTileCoordChildTileRange(e,i,n){if(e[0]this.maxZoom||i0?n:Math.max(a/i[0],s/i[1]);const r=e+1,o=new Array(r);for(let l=0;ln.highWaterMark&&(n.highWaterMark=e)}useTile(e,i,n,s){}}class wv extends ki{constructor(e,i){super(e),this.tile=i}}const Cv=xv;function Nv(t,e){const i=/\{z\}/g,n=/\{x\}/g,s=/\{y\}/g,a=/\{-y\}/g;return function(r,o,l){if(r)return t.replace(i,r[0].toString()).replace(n,r[1].toString()).replace(s,r[2].toString()).replace(a,function(){const c=r[0],u=e.getFullTileRange(c);if(!u)throw new Error("The {-y} placeholder requires a tile grid with extent");return(u.getHeight()-r[2]-1).toString()})}}function Fv(t,e){const i=t.length,n=new Array(i);for(let s=0;sthis.getTileInternal(y,_,v,N,r),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.tileOptions);return p.key=h,c?(p.interimTile=c,p.refreshInterimChain(),o.replace(u,p)):o.set(u,p),p}getTileInternal(e,i,n,s,a){let r=null;const o=Rr(e,i,n),l=this.getKey();if(!this.tileCache.containsKey(o))r=this.createTile_(e,i,n,s,a,l),this.tileCache.set(o,r);else if(r=this.tileCache.get(o),r.key!=l){const c=r;r=this.createTile_(e,i,n,s,a,l),c.getState()==Q.IDLE?r.interimTile=c.interimTile:r.interimTile=c,r.refreshInterimChain(),this.tileCache.replace(o,r)}return r}setRenderReprojectionEdges(e){if(this.renderReprojectionEdges_!=e){this.renderReprojectionEdges_=e;for(const i in this.tileCacheForProjection)this.tileCacheForProjection[i].clear();this.changed()}}setTileGridForProjection(e,i){const n=ft(e);if(n){const s=xt(n);s in this.tileGridForProjection||(this.tileGridForProjection[s]=i)}}clear(){super.clear();for(const e in this.tileCacheForProjection)this.tileCacheForProjection[e].clear()}}function Tv(t,e){t.getImage().src=e}const ym=Mv;class Rv extends ym{constructor(e){e=e||{};const i=e.projection!==void 0?e.projection:"EPSG:3857",n=e.tileGrid!==void 0?e.tileGrid:_v({extent:Il(i),maxResolution:e.maxResolution,maxZoom:e.maxZoom,minZoom:e.minZoom,tileSize:e.tileSize});super({attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,interpolate:e.interpolate,opaque:e.opaque,projection:i,reprojectionErrorThreshold:e.reprojectionErrorThreshold,tileGrid:n,tileLoadFunction:e.tileLoadFunction,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX!==void 0?e.wrapX:!0,transition:e.transition,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection}),this.gutter_=e.gutter!==void 0?e.gutter:0}getGutter(){return this.gutter_}}const Iv=Rv,kv='© OpenStreetMap contributors.';class Lv extends Iv{constructor(e){e=e||{};let i;e.attributions!==void 0?i=e.attributions:i=[kv];const n=e.crossOrigin!==void 0?e.crossOrigin:"anonymous",s=e.url!==void 0?e.url:"https://tile.openstreetmap.org/{z}/{x}/{y}.png";super({attributions:i,attributionsCollapsible:!1,cacheSize:e.cacheSize,crossOrigin:n,interpolate:e.interpolate,maxZoom:e.maxZoom!==void 0?e.maxZoom:19,opaque:e.opaque!==void 0?e.opaque:!0,reprojectionErrorThreshold:e.reprojectionErrorThreshold,tileLoadFunction:e.tileLoadFunction,transition:e.transition,url:s,wrapX:e.wrapX,zDirection:e.zDirection})}}const Sv=Lv,ha={PRELOAD:"preload",USE_INTERIM_TILES_ON_ERROR:"useInterimTilesOnError"};class Dv extends Cl{constructor(e){e=e||{};const i=Object.assign({},e);delete i.preload,delete i.useInterimTilesOnError,super(i),this.on,this.once,this.un,this.setPreload(e.preload!==void 0?e.preload:0),this.setUseInterimTilesOnError(e.useInterimTilesOnError!==void 0?e.useInterimTilesOnError:!0)}getPreload(){return this.get(ha.PRELOAD)}setPreload(e){this.set(ha.PRELOAD,e)}getUseInterimTilesOnError(){return this.get(ha.USE_INTERIM_TILES_ON_ERROR)}setUseInterimTilesOnError(e){this.set(ha.USE_INTERIM_TILES_ON_ERROR,e)}getData(e){return super.getData(e)}}const Pv=Dv;class Av extends Cd{constructor(e){super(),this.ready=!0,this.boundHandleImageChange_=this.handleImageChange_.bind(this),this.layer_=e,this.declutterExecutorGroup=null}getFeatures(e){return Xe()}getData(e){return null}prepareFrame(e){return Xe()}renderFrame(e,i){return Xe()}loadedTileCallback(e,i,n){e[i]||(e[i]={}),e[i][n.tileCoord.toString()]=n}createLoadedTileFinder(e,i,n){return(s,a)=>{const r=this.loadedTileCallback.bind(this,n,s);return e.forEachLoadedTile(i,s,a,r)}}forEachFeatureAtCoordinate(e,i,n,s,a){}getLayer(){return this.layer_}handleFontsChanged(){}handleImageChange_(e){const i=e.target;(i.getState()===un.LOADED||i.getState()===un.ERROR)&&this.renderIfReadyAndVisible()}loadImage(e){let i=e.getState();return i!=un.LOADED&&i!=un.ERROR&&e.addEventListener(le.CHANGE,this.boundHandleImageChange_),i==un.IDLE&&(e.load(),i=e.getState()),i==un.LOADED}renderIfReadyAndVisible(){const e=this.getLayer();e&&e.getVisible()&&e.getSourceState()==="ready"&&e.changed()}disposeInternal(){delete this.layer_,super.disposeInternal()}}const Ov=Av;let pn=null;function Gv(){pn=Wn(1,1,void 0,{willReadFrequently:!0})}class Zv extends Ov{constructor(e){super(e),this.container=null,this.renderedResolution,this.tempTransform=Rn(),this.pixelTransform=Rn(),this.inversePixelTransform=Rn(),this.context=null,this.containerReused=!1,this.pixelContext_=null,this.frameState=null}getImageData(e,i,n){pn||Gv(),pn.clearRect(0,0,1,1);let s;try{pn.drawImage(e,i,n,1,1,0,0,1,1),s=pn.getImageData(0,0,1,1).data}catch{return pn=null,null}return s}getBackground(e){let n=this.getLayer().getBackground();return typeof n=="function"&&(n=n(e.viewState.resolution)),n||void 0}useContainer(e,i,n){const s=this.getLayer().getClassName();let a,r;if(e&&e.className===s&&(!n||e&&e.style.backgroundColor&&br(zc(e.style.backgroundColor),zc(n)))){const o=e.firstElementChild;o instanceof HTMLCanvasElement&&(r=o.getContext("2d"))}if(r&&r.canvas.style.transform===i?(this.container=e,this.context=r,this.containerReused=!0):this.containerReused?(this.container=null,this.context=null,this.containerReused=!1):this.container&&(this.container.style.backgroundColor=null),!this.container){a=document.createElement("div"),a.className=s;let o=a.style;o.position="absolute",o.width="100%",o.height="100%",r=Wn();const l=r.canvas;a.appendChild(l),o=l.style,o.position="absolute",o.left="0",o.transformOrigin="top left",this.container=a,this.context=r}!this.containerReused&&n&&!this.container.style.backgroundColor&&(this.container.style.backgroundColor=n)}clipUnrotated(e,i,n){const s=an(n),a=Fr(n),r=Nr(n),o=Cr(n);kt(i.coordinateToPixelTransform,s),kt(i.coordinateToPixelTransform,a),kt(i.coordinateToPixelTransform,r),kt(i.coordinateToPixelTransform,o);const l=this.inversePixelTransform;kt(l,s),kt(l,a),kt(l,r),kt(l,o),e.save(),e.beginPath(),e.moveTo(Math.round(s[0]),Math.round(s[1])),e.lineTo(Math.round(a[0]),Math.round(a[1])),e.lineTo(Math.round(r[0]),Math.round(r[1])),e.lineTo(Math.round(o[0]),Math.round(o[1])),e.clip()}dispatchRenderEvent_(e,i,n){const s=this.getLayer();if(s.hasListener(e)){const a=new em(e,this.inversePixelTransform,n,i);s.dispatchEvent(a)}}preRender(e,i){this.frameState=i,this.dispatchRenderEvent_(wi.PRERENDER,e,i)}postRender(e,i){this.dispatchRenderEvent_(wi.POSTRENDER,e,i)}getRenderTransform(e,i,n,s,a,r,o){const l=a/2,c=r/2,u=s/i,h=-u,d=-e[0]+o,m=-e[1];return Es(this.tempTransform,l,c,u,h,-n,d,m)}disposeInternal(){delete this.frameState,super.disposeInternal()}}const Xv=Zv;class Wv extends Xv{constructor(e){super(e),this.extentChanged=!0,this.renderedExtent_=null,this.renderedPixelRatio,this.renderedProjection=null,this.renderedRevision,this.renderedTiles=[],this.newTiles_=!1,this.tmpExtent=sn(),this.tmpTileRange_=new dm(0,0,0,0)}isDrawableTile(e){const i=this.getLayer(),n=e.getState(),s=i.getUseInterimTilesOnError();return n==Q.LOADED||n==Q.EMPTY||n==Q.ERROR&&!s}getTile(e,i,n,s){const a=s.pixelRatio,r=s.viewState.projection,o=this.getLayer();let c=o.getSource().getTile(e,i,n,a,r);return c.getState()==Q.ERROR&&o.getUseInterimTilesOnError()&&o.getPreload()>0&&(this.newTiles_=!0),this.isDrawableTile(c)||(c=c.getInterimTile()),c}getData(e){const i=this.frameState;if(!i)return null;const n=this.getLayer(),s=kt(i.pixelToCoordinateTransform,e.slice()),a=n.getExtent();if(a&&!hl(a,s))return null;const r=i.pixelRatio,o=i.viewState.projection,l=i.viewState,c=n.getRenderSource(),u=c.getTileGridForProjection(l.projection),h=c.getTilePixelRatio(i.pixelRatio);for(let d=u.getZForResolution(l.resolution);d>=u.getMinZoom();--d){const m=u.getTileCoordForCoordAndZ(s,d),f=c.getTile(d,m[1],m[2],r,o);if(!(f instanceof lm||f instanceof To)||f instanceof To&&f.getState()===Q.EMPTY)return null;if(f.getState()!==Q.LOADED)continue;const p=u.getOrigin(d),y=_i(u.getTileSize(d)),_=u.getResolution(d),v=Math.floor(h*((s[0]-p[0])/_-m[1]*y[0])),N=Math.floor(h*((p[1]-s[1])/_-m[2]*y[1])),w=Math.round(h*c.getGutterForProjection(l.projection));return this.getImageData(f.getImage(),v+w,N+w)}return null}loadedTileCallback(e,i,n){return this.isDrawableTile(n)?super.loadedTileCallback(e,i,n):!1}prepareFrame(e){return!!this.getLayer().getSource()}renderFrame(e,i){const n=e.layerStatesArray[e.layerIndex],s=e.viewState,a=s.projection,r=s.resolution,o=s.center,l=s.rotation,c=e.pixelRatio,u=this.getLayer(),h=u.getSource(),d=h.getRevision(),m=h.getTileGridForProjection(a),f=m.getZForResolution(r,h.zDirection),p=m.getResolution(f);let y=e.extent;const _=e.viewState.resolution,v=h.getTilePixelRatio(c),N=Math.round(Be(y)/_*c),w=Math.round(Kt(y)/_*c),E=n.extent&&_n(n.extent);E&&(y=ms(y,_n(n.extent)));const L=p*N/2/v,Y=p*w/2/v,q=[o[0]-L,o[1]-Y,o[0]+L,o[1]+Y],re=m.getTileRangeForExtentAndZ(y,f),oe={};oe[f]={};const _e=this.createLoadedTileFinder(h,a,oe),qe=this.tmpExtent,Ke=this.tmpTileRange_;this.newTiles_=!1;const Ft=l?vo(s.center,_,l,e.size):void 0;for(let Ve=re.minX;Ve<=re.maxX;++Ve)for(let pe=re.minY;pe<=re.maxY;++pe){if(l&&!m.tileCoordIntersectsViewport([f,Ve,pe],Ft))continue;const Se=this.getTile(f,Ve,pe,e);if(this.isDrawableTile(Se)){const Z=xt(this);if(Se.getState()==Q.LOADED){oe[f][Se.tileCoord.toString()]=Se;let P=Se.inTransition(Z);P&&n.opacity!==1&&(Se.endTransition(Z),P=!1),!this.newTiles_&&(P||!this.renderedTiles.includes(Se))&&(this.newTiles_=!0)}if(Se.getAlpha(Z,e.time)===1)continue}const Pe=m.getTileCoordChildTileRange(Se.tileCoord,Ke,qe);let F=!1;Pe&&(F=_e(f+1,Pe)),F||m.forEachTileCoordParentTileRange(Se.tileCoord,_e,Ke,qe)}const tt=p/r*c/v;Es(this.pixelTransform,e.size[0]/2,e.size[1]/2,1/c,1/c,l,-N/2,-w/2);const ve=h2(this.pixelTransform);this.useContainer(i,ve,this.getBackground(e));const $=this.context,se=$.canvas;Td(this.inversePixelTransform,this.pixelTransform),Es(this.tempTransform,N/2,w/2,tt,tt,0,-N/2,-w/2),se.width!=N||se.height!=w?(se.width=N,se.height=w):this.containerReused||$.clearRect(0,0,N,w),E&&this.clipUnrotated($,e,E),h.getInterpolate()||($.imageSmoothingEnabled=!1),this.preRender($,e),this.renderedTiles.length=0;let je=Object.keys(oe).map(Number);je.sort(ll);let Ye,ot,me;n.opacity===1&&(!this.containerReused||h.getOpaque(e.viewState.projection))?je=je.reverse():(Ye=[],ot=[]);for(let Ve=je.length-1;Ve>=0;--Ve){const pe=je[Ve],Se=h.getTilePixelSize(pe,c,a),F=m.getResolution(pe)/p,Z=Se[0]*F*tt,P=Se[1]*F*tt,H=m.getTileCoordForCoordAndZ(an(q),pe),ce=m.getTileCoordExtent(H),g=kt(this.tempTransform,[v*(ce[0]-q[0])/p,v*(q[3]-ce[3])/p]),b=v*h.getGutterForProjection(a),x=oe[pe];for(const M in x){const T=x[M],R=T.tileCoord,G=H[1]-R[1],S=Math.round(g[0]-(G-1)*Z),A=H[2]-R[2],I=Math.round(g[1]-(A-1)*P),U=Math.round(g[0]-G*Z),W=Math.round(g[1]-A*P),z=S-U,te=I-W,ae=f===pe,xe=ae&&T.getAlpha(xt(this),e.time)!==1;let he=!1;if(!xe)if(Ye){me=[U,W,U+z,W,U+z,W+te,U,W+te];for(let Re=0,Et=Ye.length;Re0&&(this.tileUrlFunction=Ro(s.map(this.createFromWMTSTemplate.bind(this))))}setUrls(e){this.urls=e;const i=e.join(` +`);this.setTileUrlFunction(Ro(e.map(this.createFromWMTSTemplate.bind(this))),i)}getDimensions(){return this.dimensions_}getFormat(){return this.format_}getLayer(){return this.layer_}getMatrixSet(){return this.matrixSet_}getRequestEncoding(){return this.requestEncoding_}getStyle(){return this.style_}getVersion(){return this.version_}getKeyForDimensions_(){const e=this.urls?this.urls.slice(0):[];for(const i in this.dimensions_)e.push(i+"-"+this.dimensions_[i]);return e.join("/")}updateDimensions(e){Object.assign(this.dimensions_,e),this.setKey(this.getKeyForDimensions_())}createFromWMTSTemplate(e){const i=this.requestEncoding_,n={layer:this.layer_,style:this.style_,tilematrixset:this.matrixSet_};i=="KVP"&&Object.assign(n,{Service:"WMTS",Request:"GetTile",Version:this.version_,Format:this.format_}),e=i=="KVP"?xu(e,n):e.replace(/\{(\w+?)\}/g,function(r,o){return o.toLowerCase()in n?n[o.toLowerCase()]:r});const s=this.tileGrid,a=this.dimensions_;return function(r,o,l){if(!r)return;const c={TileMatrix:s.getMatrixId(r[0]),TileCol:r[1],TileRow:r[2]};Object.assign(c,a);let u=e;return i=="KVP"?u=xu(u,c):u=u.replace(/\{(\w+?)\}/g,function(h,d){return c[d]}),u}}}const Bv=Uv;function Hv(t){t("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),t("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),t("EPSG:3857","+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs"),t.WGS84=t["EPSG:4326"],t["EPSG:3785"]=t["EPSG:3857"],t.GOOGLE=t["EPSG:3857"],t["EPSG:900913"]=t["EPSG:3857"],t["EPSG:102113"]=t["EPSG:3857"]}var Yi=1,$i=2,Dn=3,zv=4,Io=5,wu=6378137,qv=6356752314e-3,Cu=.0066943799901413165,fs=484813681109536e-20,k=Math.PI/2,jv=.16666666666666666,Yv=.04722222222222222,$v=.022156084656084655,O=1e-10,it=.017453292519943295,$t=57.29577951308232,ge=Math.PI/4,Is=Math.PI*2,Ue=3.14159265359,Nt={};Nt.greenwich=0;Nt.lisbon=-9.131906111111;Nt.paris=2.337229166667;Nt.bogota=-74.080916666667;Nt.madrid=-3.687938888889;Nt.rome=12.452333333333;Nt.bern=7.439583333333;Nt.jakarta=106.807719444444;Nt.ferro=-17.666666666667;Nt.brussels=4.367975;Nt.stockholm=18.058277777778;Nt.athens=23.7163375;Nt.oslo=10.722916666667;const Jv={ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937}};var Nu=/[\s_\-\/\(\)]/g;function Ri(t,e){if(t[e])return t[e];for(var i=Object.keys(t),n=e.toLowerCase().replace(Nu,""),s=-1,a,r;++s=this.text.length)return;t=this.text[this.place++]}switch(this.state){case ks:return this.neutral(t);case bm:return this.keyword(t);case za:return this.quoted(t);case vm:return this.afterquote(t);case _m:return this.number(t);case Ll:return}};ui.prototype.afterquote=function(t){if(t==='"'){this.word+='"',this.state=za;return}if(Ir.test(t)){this.word=this.word.trim(),this.afterItem(t);return}throw new Error(`havn't handled "`+t+'" in afterquote yet, index '+this.place)};ui.prototype.afterItem=function(t){if(t===","){this.word!==null&&this.currentObject.push(this.word),this.word=null,this.state=ks;return}if(t==="]"){this.level--,this.word!==null&&(this.currentObject.push(this.word),this.word=null),this.state=ks,this.currentObject=this.stack.pop(),this.currentObject||(this.state=Ll);return}};ui.prototype.number=function(t){if(xm.test(t)){this.word+=t;return}if(Ir.test(t)){this.word=parseFloat(this.word),this.afterItem(t);return}throw new Error(`havn't handled "`+t+'" in number yet, index '+this.place)};ui.prototype.quoted=function(t){if(t==='"'){this.state=vm;return}this.word+=t};ui.prototype.keyword=function(t){if(t3.test(t)){this.word+=t;return}if(t==="["){var e=[];e.push(this.word),this.level++,this.root===null?this.root=e:this.currentObject.push(e),this.stack.push(this.currentObject),this.currentObject=e,this.state=ks;return}if(Ir.test(t)){this.afterItem(t);return}throw new Error(`havn't handled "`+t+'" in keyword yet, index '+this.place)};ui.prototype.neutral=function(t){if(e3.test(t)){this.word=t,this.state=bm;return}if(t==='"'){this.word="",this.state=za;return}if(xm.test(t)){this.word=t,this.state=_m;return}if(Ir.test(t)){this.afterItem(t);return}throw new Error(`havn't handled "`+t+'" in neutral yet, index '+this.place)};ui.prototype.output=function(){for(;this.place0?90:-90),t.lat_ts=t.lat1):!t.lat_ts&&t.lat0&&t.projName==="Polar_Stereographic"&&(t.lat_ts=t.lat0,t.lat0=zt(t.lat0>0?90:-90))}function wm(t){var e=i3(t),i=e.shift(),n=e.shift();e.unshift(["name",n]),e.unshift(["type",i]);var s={};return vn(e,s),a3(s),s}function gt(t){var e=this;if(arguments.length===2){var i=arguments[1];typeof i=="string"?i.charAt(0)==="+"?gt[t]=ko(arguments[1]):gt[t]=wm(arguments[1]):gt[t]=i}else if(arguments.length===1){if(Array.isArray(t))return t.map(function(n){Array.isArray(n)?gt.apply(e,n):gt(n)});if(typeof t=="string"){if(t in gt)return gt[t]}else"EPSG"in t?gt["EPSG:"+t.EPSG]=t:"ESRI"in t?gt["ESRI:"+t.ESRI]=t:"IAU2000"in t?gt["IAU2000:"+t.IAU2000]=t:console.log(t);return}}Hv(gt);function r3(t){return typeof t=="string"}function o3(t){return t in gt}var l3=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];function c3(t){return l3.some(function(e){return t.indexOf(e)>-1})}var u3=["3857","900913","3785","102113"];function h3(t){var e=Ri(t,"authority");if(e){var i=Ri(e,"epsg");return i&&u3.indexOf(i)>-1}}function d3(t){var e=Ri(t,"extension");if(e)return Ri(e,"proj4")}function m3(t){return t[0]==="+"}function f3(t){if(r3(t)){if(o3(t))return gt[t];if(c3(t)){var e=wm(t);if(h3(e))return gt["EPSG:3857"];var i=d3(e);return i?ko(i):e}if(m3(t))return ko(t)}else return t}function Eu(t,e){t=t||{};var i,n;if(!e)return t;for(n in e)i=e[n],i!==void 0&&(t[n]=i);return t}function ei(t,e,i){var n=t*e;return i/Math.sqrt(1-n*n)}function Ks(t){return t<0?-1:1}function V(t){return Math.abs(t)<=Ue?t:t-Ks(t)*Is}function Vt(t,e,i){var n=t*i,s=.5*t;return n=Math.pow((1-n)/(1+n),s),Math.tan(.5*(k-e))/n}function Ls(t,e){for(var i=.5*t,n,s,a=k-2*Math.atan(e),r=0;r<=15;r++)if(n=t*Math.sin(a),s=k-2*Math.atan(e*Math.pow((1-n)/(1+n),i))-a,a+=s,Math.abs(s)<=1e-10)return a;return-9999}function p3(){var t=this.b/this.a;this.es=1-t*t,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=ei(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)}function g3(t){var e=t.x,i=t.y;if(i*$t>90&&i*$t<-90&&e*$t>180&&e*$t<-180)return null;var n,s;if(Math.abs(Math.abs(i)-k)<=O)return null;if(this.sphere)n=this.x0+this.a*this.k0*V(e-this.long0),s=this.y0+this.a*this.k0*Math.log(Math.tan(ge+.5*i));else{var a=Math.sin(i),r=Vt(this.e,i,a);n=this.x0+this.a*this.k0*V(e-this.long0),s=this.y0-this.a*this.k0*Math.log(r)}return t.x=n,t.y=s,t}function y3(t){var e=t.x-this.x0,i=t.y-this.y0,n,s;if(this.sphere)s=k-2*Math.atan(Math.exp(-i/(this.a*this.k0)));else{var a=Math.exp(-i/(this.a*this.k0));if(s=Ls(this.e,a),s===-9999)return null}return n=V(this.long0+e/(this.a*this.k0)),t.x=n,t.y=s,t}var b3=["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"];const _3={init:p3,forward:g3,inverse:y3,names:b3};function v3(){}function Mu(t){return t}var x3=["longlat","identity"];const w3={init:v3,forward:Mu,inverse:Mu,names:x3};var C3=[_3,w3],Ca={},qa=[];function Cm(t,e){var i=qa.length;return t.names?(qa[i]=t,t.names.forEach(function(n){Ca[n.toLowerCase()]=i}),this):(console.log(e),!0)}function N3(t){if(!t)return!1;var e=t.toLowerCase();if(typeof Ca[e]<"u"&&qa[Ca[e]])return qa[Ca[e]]}function F3(){C3.forEach(Cm)}const E3={start:F3,add:Cm,get:N3};var ie={};ie.MERIT={a:6378137,rf:298.257,ellipseName:"MERIT 1983"};ie.SGS85={a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"};ie.GRS80={a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"};ie.IAU76={a:6378140,rf:298.257,ellipseName:"IAU 1976"};ie.airy={a:6377563396e-3,b:635625691e-2,ellipseName:"Airy 1830"};ie.APL4={a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"};ie.NWL9D={a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"};ie.mod_airy={a:6377340189e-3,b:6356034446e-3,ellipseName:"Modified Airy"};ie.andrae={a:637710443e-2,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"};ie.aust_SA={a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"};ie.GRS67={a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"};ie.bessel={a:6377397155e-3,rf:299.1528128,ellipseName:"Bessel 1841"};ie.bess_nam={a:6377483865e-3,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"};ie.clrk66={a:63782064e-1,b:63565838e-1,ellipseName:"Clarke 1866"};ie.clrk80={a:6378249145e-3,rf:293.4663,ellipseName:"Clarke 1880 mod."};ie.clrk80ign={a:63782492e-1,b:6356515,rf:293.4660213,ellipseName:"Clarke 1880 (IGN)"};ie.clrk58={a:6378293645208759e-9,rf:294.2606763692654,ellipseName:"Clarke 1858"};ie.CPM={a:63757387e-1,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"};ie.delmbr={a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"};ie.engelis={a:637813605e-2,rf:298.2566,ellipseName:"Engelis 1985"};ie.evrst30={a:6377276345e-3,rf:300.8017,ellipseName:"Everest 1830"};ie.evrst48={a:6377304063e-3,rf:300.8017,ellipseName:"Everest 1948"};ie.evrst56={a:6377301243e-3,rf:300.8017,ellipseName:"Everest 1956"};ie.evrst69={a:6377295664e-3,rf:300.8017,ellipseName:"Everest 1969"};ie.evrstSS={a:6377298556e-3,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"};ie.fschr60={a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"};ie.fschr60m={a:6378155,rf:298.3,ellipseName:"Fischer 1960"};ie.fschr68={a:6378150,rf:298.3,ellipseName:"Fischer 1968"};ie.helmert={a:6378200,rf:298.3,ellipseName:"Helmert 1906"};ie.hough={a:6378270,rf:297,ellipseName:"Hough"};ie.intl={a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"};ie.kaula={a:6378163,rf:298.24,ellipseName:"Kaula 1961"};ie.lerch={a:6378139,rf:298.257,ellipseName:"Lerch 1979"};ie.mprts={a:6397300,rf:191,ellipseName:"Maupertius 1738"};ie.new_intl={a:63781575e-1,b:63567722e-1,ellipseName:"New International 1967"};ie.plessis={a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"};ie.krass={a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"};ie.SEasia={a:6378155,b:63567733205e-4,ellipseName:"Southeast Asia"};ie.walbeck={a:6376896,b:63558348467e-4,ellipseName:"Walbeck"};ie.WGS60={a:6378165,rf:298.3,ellipseName:"WGS 60"};ie.WGS66={a:6378145,rf:298.25,ellipseName:"WGS 66"};ie.WGS7={a:6378135,rf:298.26,ellipseName:"WGS 72"};var M3=ie.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"};ie.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"};function T3(t,e,i,n){var s=t*t,a=e*e,r=(s-a)/s,o=0;n?(t*=1-r*(jv+r*(Yv+r*$v)),s=t*t,r=0):o=Math.sqrt(r);var l=(s-a)/a;return{es:r,e:o,ep2:l}}function R3(t,e,i,n,s){if(!t){var a=Ri(ie,n);a||(a=M3),t=a.a,e=a.b,i=a.rf}return i&&!e&&(e=(1-1/i)*t),(i===0||Math.abs(t-e)3&&(o.datum_params[3]!==0||o.datum_params[4]!==0||o.datum_params[5]!==0||o.datum_params[6]!==0)&&(o.datum_type=$i,o.datum_params[3]*=fs,o.datum_params[4]*=fs,o.datum_params[5]*=fs,o.datum_params[6]=o.datum_params[6]/1e6+1)),r&&(o.datum_type=Dn,o.grids=r),o.a=i,o.b=n,o.es=s,o.ep2=a,o}var Nm={};function k3(t,e){var i=new DataView(e),n=D3(i),s=P3(i,n),a=A3(i,s,n),r={header:s,subgrids:a};return Nm[t]=r,r}function L3(t){if(t===void 0)return null;var e=t.split(",");return e.map(S3)}function S3(t){if(t.length===0)return null;var e=t[0]==="@";return e&&(t=t.slice(1)),t==="null"?{name:"null",mandatory:!e,grid:null,isNull:!0}:{name:t,mandatory:!e,grid:Nm[t]||null,isNull:!1}}function xn(t){return t/3600*Math.PI/180}function D3(t){var e=t.getInt32(8,!1);return e===11?!1:(e=t.getInt32(8,!0),e!==11&&console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian"),!0)}function P3(t,e){return{nFields:t.getInt32(8,e),nSubgridFields:t.getInt32(24,e),nSubgrids:t.getInt32(40,e),shiftType:Lo(t,56,56+8).trim(),fromSemiMajorAxis:t.getFloat64(120,e),fromSemiMinorAxis:t.getFloat64(136,e),toSemiMajorAxis:t.getFloat64(152,e),toSemiMinorAxis:t.getFloat64(168,e)}}function Lo(t,e,i){return String.fromCharCode.apply(null,new Uint8Array(t.buffer.slice(e,i)))}function A3(t,e,i){for(var n=176,s=[],a=0;a5e-11?!1:t.datum_type===Yi?t.datum_params[0]===e.datum_params[0]&&t.datum_params[1]===e.datum_params[1]&&t.datum_params[2]===e.datum_params[2]:t.datum_type===$i?t.datum_params[0]===e.datum_params[0]&&t.datum_params[1]===e.datum_params[1]&&t.datum_params[2]===e.datum_params[2]&&t.datum_params[3]===e.datum_params[3]&&t.datum_params[4]===e.datum_params[4]&&t.datum_params[5]===e.datum_params[5]&&t.datum_params[6]===e.datum_params[6]:!0}function Fm(t,e,i){var n=t.x,s=t.y,a=t.z?t.z:0,r,o,l,c;if(s<-k&&s>-1.001*k)s=-k;else if(s>k&&s<1.001*k)s=k;else{if(s<-k)return{x:-1/0,y:-1/0,z:t.z};if(s>k)return{x:1/0,y:1/0,z:t.z}}return n>Math.PI&&(n-=2*Math.PI),o=Math.sin(s),c=Math.cos(s),l=o*o,r=i/Math.sqrt(1-e*l),{x:(r+a)*c*Math.cos(n),y:(r+a)*c*Math.sin(n),z:(r*(1-e)+a)*o}}function Em(t,e,i,n){var s=1e-12,a=s*s,r=30,o,l,c,u,h,d,m,f,p,y,_,v,N,w=t.x,E=t.y,L=t.z?t.z:0,Y,q,re;if(o=Math.sqrt(w*w+E*E),l=Math.sqrt(w*w+E*E+L*L),o/ia&&Nn.y||m>n.x||yo&&Math.abs(l.y)>o);if(r<0)return console.log("Inverse grid shift iterator failed to converge."),n;n.x=V(a.x+i.ll[0]),n.y=a.y+i.ll[1]}else isNaN(a.x)||(n.x=t.x+a.x,n.y=t.y+a.y);return n}function Ru(t,e){var i={x:t.x/e.del[0],y:t.y/e.del[1]},n={x:Math.floor(i.x),y:Math.floor(i.y)},s={x:i.x-1*n.x,y:i.y-1*n.y},a={x:Number.NaN,y:Number.NaN},r;if(n.x<0||n.x>=e.lim[0]||n.y<0||n.y>=e.lim[1])return a;r=n.y*e.lim[0]+n.x;var o={x:e.cvs[r][0],y:e.cvs[r][1]};r++;var l={x:e.cvs[r][0],y:e.cvs[r][1]};r+=e.lim[0];var c={x:e.cvs[r][0],y:e.cvs[r][1]};r--;var u={x:e.cvs[r][0],y:e.cvs[r][1]},h=s.x*s.y,d=s.x*(1-s.y),m=(1-s.x)*(1-s.y),f=(1-s.x)*s.y;return a.x=m*o.x+d*l.x+f*u.x+h*c.x,a.y=m*o.y+d*l.y+f*u.y+h*c.y,a}function Iu(t,e,i){var n=i.x,s=i.y,a=i.z||0,r,o,l,c={};for(l=0;l<3;l++)if(!(e&&l===2&&i.z===void 0))switch(l===0?(r=n,"ew".indexOf(t.axis[l])!==-1?o="x":o="y"):l===1?(r=s,"ns".indexOf(t.axis[l])!==-1?o="y":o="x"):(r=a,o="z"),t.axis[l]){case"e":c[o]=r;break;case"w":c[o]=-r;break;case"n":c[o]=r;break;case"s":c[o]=-r;break;case"u":i[o]!==void 0&&(c.z=r);break;case"d":i[o]!==void 0&&(c.z=-r);break;default:return null}return c}function Mm(t){var e={x:t[0],y:t[1]};return t.length>2&&(e.z=t[2]),t.length>3&&(e.m=t[3]),e}function B3(t){ku(t.x),ku(t.y)}function ku(t){if(typeof Number.isFinite=="function"){if(Number.isFinite(t))return;throw new TypeError("coordinates must be finite numbers")}if(typeof t!="number"||t!==t||!isFinite(t))throw new TypeError("coordinates must be finite numbers")}function H3(t,e){return(t.datum.datum_type===Yi||t.datum.datum_type===$i||t.datum.datum_type===Dn)&&e.datumCode!=="WGS84"||(e.datum.datum_type===Yi||e.datum.datum_type===$i||e.datum.datum_type===Dn)&&t.datumCode!=="WGS84"}function ja(t,e,i,n){var s;Array.isArray(i)?i=Mm(i):i={x:i.x,y:i.y,z:i.z,m:i.m};var a=i.z!==void 0;if(B3(i),t.datum&&e.datum&&H3(t,e)&&(s=new Jt("WGS84"),i=ja(t,s,i,n),t=s),n&&t.axis!=="enu"&&(i=Iu(t,!1,i)),t.projName==="longlat")i={x:i.x*it,y:i.y*it,z:i.z||0};else if(t.to_meter&&(i={x:i.x*t.to_meter,y:i.y*t.to_meter,z:i.z||0}),i=t.inverse(i),!i)return;if(t.from_greenwich&&(i.x+=t.from_greenwich),i=V3(t.datum,e.datum,i),!!i)return e.from_greenwich&&(i={x:i.x-e.from_greenwich,y:i.y,z:i.z||0}),e.projName==="longlat"?i={x:i.x*$t,y:i.y*$t,z:i.z||0}:(i=e.forward(i),e.to_meter&&(i={x:i.x/e.to_meter,y:i.y/e.to_meter,z:i.z||0})),n&&e.axis!=="enu"?Iu(e,!0,i):(i&&!a&&delete i.z,i)}var Lu=Jt("WGS84");function $r(t,e,i,n){var s,a,r;return Array.isArray(i)?(s=ja(t,e,i,n)||{x:NaN,y:NaN},i.length>2?typeof t.name<"u"&&t.name==="geocent"||typeof e.name<"u"&&e.name==="geocent"?typeof s.z=="number"?[s.x,s.y,s.z].concat(i.splice(3)):[s.x,s.y,i[2]].concat(i.splice(3)):[s.x,s.y].concat(i.splice(2)):[s.x,s.y]):(a=ja(t,e,i,n),r=Object.keys(i),r.length===2||r.forEach(function(o){if(typeof t.name<"u"&&t.name==="geocent"||typeof e.name<"u"&&e.name==="geocent"){if(o==="x"||o==="y"||o==="z")return}else if(o==="x"||o==="y")return;a[o]=i[o]}),a)}function Su(t){return t instanceof Jt?t:t.oProj?t.oProj:Jt(t)}function Rt(t,e,i){t=Su(t);var n=!1,s;return typeof e>"u"?(e=t,t=Lu,n=!0):(typeof e.x<"u"||Array.isArray(e))&&(i=e,e=t,t=Lu,n=!0),e=Su(e),i?$r(t,e,i):(s={forward:function(a,r){return $r(t,e,a,r)},inverse:function(a,r){return $r(e,t,a,r)}},n&&(s.oProj=e),s)}var Du=6,Tm="AJSAJS",Rm="AFAFAF",wn=65,_t=73,It=79,as=86,rs=90;const z3={forward:Im,inverse:q3,toPoint:km};function Im(t,e){return e=e||5,$3(j3({lat:t[1],lon:t[0]}),e)}function q3(t){var e=Sl(Sm(t.toUpperCase()));return e.lat&&e.lon?[e.lon,e.lat,e.lon,e.lat]:[e.left,e.bottom,e.right,e.top]}function km(t){var e=Sl(Sm(t.toUpperCase()));return e.lat&&e.lon?[e.lon,e.lat]:[(e.left+e.right)/2,(e.top+e.bottom)/2]}function Jr(t){return t*(Math.PI/180)}function Pu(t){return 180*(t/Math.PI)}function j3(t){var e=t.lat,i=t.lon,n=6378137,s=.00669438,a=.9996,r,o,l,c,u,h,d,m=Jr(e),f=Jr(i),p,y;y=Math.floor((i+180)/6)+1,i===180&&(y=60),e>=56&&e<64&&i>=3&&i<12&&(y=32),e>=72&&e<84&&(i>=0&&i<9?y=31:i>=9&&i<21?y=33:i>=21&&i<33?y=35:i>=33&&i<42&&(y=37)),r=(y-1)*6-180+3,p=Jr(r),o=s/(1-s),l=n/Math.sqrt(1-s*Math.sin(m)*Math.sin(m)),c=Math.tan(m)*Math.tan(m),u=o*Math.cos(m)*Math.cos(m),h=Math.cos(m)*(f-p),d=n*((1-s/4-3*s*s/64-5*s*s*s/256)*m-(3*s/8+3*s*s/32+45*s*s*s/1024)*Math.sin(2*m)+(15*s*s/256+45*s*s*s/1024)*Math.sin(4*m)-35*s*s*s/3072*Math.sin(6*m));var _=a*l*(h+(1-c+u)*h*h*h/6+(5-18*c+c*c+72*u-58*o)*h*h*h*h*h/120)+5e5,v=a*(d+l*Math.tan(m)*(h*h/2+(5-c+9*u+4*u*u)*h*h*h*h/24+(61-58*c+c*c+600*u-330*o)*h*h*h*h*h*h/720));return e<0&&(v+=1e7),{northing:Math.round(v),easting:Math.round(_),zoneNumber:y,zoneLetter:Y3(e)}}function Sl(t){var e=t.northing,i=t.easting,n=t.zoneLetter,s=t.zoneNumber;if(s<0||s>60)return null;var a=.9996,r=6378137,o=.00669438,l,c=(1-Math.sqrt(1-o))/(1+Math.sqrt(1-o)),u,h,d,m,f,p,y,_,v,N=i-5e5,w=e;n<"N"&&(w-=1e7),y=(s-1)*6-180+3,l=o/(1-o),p=w/a,_=p/(r*(1-o/4-3*o*o/64-5*o*o*o/256)),v=_+(3*c/2-27*c*c*c/32)*Math.sin(2*_)+(21*c*c/16-55*c*c*c*c/32)*Math.sin(4*_)+151*c*c*c/96*Math.sin(6*_),u=r/Math.sqrt(1-o*Math.sin(v)*Math.sin(v)),h=Math.tan(v)*Math.tan(v),d=l*Math.cos(v)*Math.cos(v),m=r*(1-o)/Math.pow(1-o*Math.sin(v)*Math.sin(v),1.5),f=N/(u*a);var E=v-u*Math.tan(v)/m*(f*f/2-(5+3*h+10*d-4*d*d-9*l)*f*f*f*f/24+(61+90*h+298*d+45*h*h-252*l-3*d*d)*f*f*f*f*f*f/720);E=Pu(E);var L=(f-(1+2*h+d)*f*f*f/6+(5-2*d+28*h-3*d*d+8*l+24*h*h)*f*f*f*f*f/120)/Math.cos(v);L=y+Pu(L);var Y;if(t.accuracy){var q=Sl({northing:t.northing+t.accuracy,easting:t.easting+t.accuracy,zoneLetter:t.zoneLetter,zoneNumber:t.zoneNumber});Y={top:q.lat,right:q.lon,bottom:E,left:L}}else Y={lat:E,lon:L};return Y}function Y3(t){var e="Z";return 84>=t&&t>=72?e="X":72>t&&t>=64?e="W":64>t&&t>=56?e="V":56>t&&t>=48?e="U":48>t&&t>=40?e="T":40>t&&t>=32?e="S":32>t&&t>=24?e="R":24>t&&t>=16?e="Q":16>t&&t>=8?e="P":8>t&&t>=0?e="N":0>t&&t>=-8?e="M":-8>t&&t>=-16?e="L":-16>t&&t>=-24?e="K":-24>t&&t>=-32?e="J":-32>t&&t>=-40?e="H":-40>t&&t>=-48?e="G":-48>t&&t>=-56?e="F":-56>t&&t>=-64?e="E":-64>t&&t>=-72?e="D":-72>t&&t>=-80&&(e="C"),e}function $3(t,e){var i="00000"+t.easting,n="00000"+t.northing;return t.zoneNumber+t.zoneLetter+J3(t.easting,t.northing,t.zoneNumber)+i.substr(i.length-5,e)+n.substr(n.length-5,e)}function J3(t,e,i){var n=Lm(i),s=Math.floor(t/1e5),a=Math.floor(e/1e5)%20;return Q3(s,a,n)}function Lm(t){var e=t%Du;return e===0&&(e=Du),e}function Q3(t,e,i){var n=i-1,s=Tm.charCodeAt(n),a=Rm.charCodeAt(n),r=s+t-1,o=a+e,l=!1;r>rs&&(r=r-rs+wn-1,l=!0),(r===_t||s<_t&&r>_t||(r>_t||s<_t)&&l)&&r++,(r===It||sIt||(r>It||srs&&(r=r-rs+wn-1),o>as?(o=o-as+wn-1,l=!0):l=!1,(o===_t||a<_t&&o>_t||(o>_t||a<_t)&&l)&&o++,(o===It||aIt||(o>It||aas&&(o=o-as+wn-1);var c=String.fromCharCode(r)+String.fromCharCode(o);return c}function Sm(t){if(t&&t.length===0)throw"MGRSPoint coverting from nothing";for(var e=t.length,i=null,n="",s,a=0;!/[A-Z]/.test(s=t.charAt(a));){if(a>=2)throw"MGRSPoint bad conversion from: "+t;n+=s,a++}var r=parseInt(n,10);if(a===0||a+3>e)throw"MGRSPoint bad conversion from: "+t;var o=t.charAt(a++);if(o<="A"||o==="B"||o==="Y"||o>="Z"||o==="I"||o==="O")throw"MGRSPoint zone letter "+o+" not handled: "+t;i=t.substring(a,a+=2);for(var l=Lm(r),c=ex(i.charAt(0),l),u=tx(i.charAt(1),l);u0&&(p=1e5/Math.pow(10,d),y=t.substring(r,r+d),m=parseFloat(y)*p,_=t.substring(r+d),f=parseFloat(_)*p),v=m+c,N=f+u,{easting:v,northing:N,zoneLetter:o,zoneNumber:a,accuracy:p}}function ew(t,e){for(var i=Tm.charCodeAt(e-1),n=1e5,s=!1;i!==t.charCodeAt(0);){if(i++,i===_t&&i++,i===It&&i++,i>as){if(s)throw"Bad character: "+t;i=wn,s=!0}n+=1e5}return n}function tw(t,e){if(t>"V")throw"MGRSPoint given invalid Northing "+t;for(var i=Rm.charCodeAt(e-1),n=0,s=!1;i!==t.charCodeAt(0);){if(i++,i===_t&&i++,i===It&&i++,i>rs){if(s)throw"Bad character: "+t;i=wn,s=!0}n+=1e5}return n}function iw(t){var e;switch(t){case"C":e=11e5;break;case"D":e=2e6;break;case"E":e=28e5;break;case"F":e=37e5;break;case"G":e=46e5;break;case"H":e=55e5;break;case"J":e=64e5;break;case"K":e=73e5;break;case"L":e=82e5;break;case"M":e=91e5;break;case"N":e=0;break;case"P":e=8e5;break;case"Q":e=17e5;break;case"R":e=26e5;break;case"S":e=35e5;break;case"T":e=44e5;break;case"U":e=53e5;break;case"V":e=62e5;break;case"W":e=7e6;break;case"X":e=79e5;break;default:e=-1}if(e>=0)return e;throw"Invalid zone letter: "+t}function Kn(t,e,i){if(!(this instanceof Kn))return new Kn(t,e,i);if(Array.isArray(t))this.x=t[0],this.y=t[1],this.z=t[2]||0;else if(typeof t=="object")this.x=t.x,this.y=t.y,this.z=t.z||0;else if(typeof t=="string"&&typeof e>"u"){var n=t.split(",");this.x=parseFloat(n[0],10),this.y=parseFloat(n[1],10),this.z=parseFloat(n[2],10)||0}else this.x=t,this.y=e,this.z=i||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}Kn.fromMGRS=function(t){return new Kn(km(t))};Kn.prototype.toMGRS=function(t){return Im([this.x,this.y],t)};var nw=1,sw=.25,Au=.046875,Ou=.01953125,Gu=.01068115234375,rw=.75,aw=.46875,ow=.013020833333333334,lw=.007120768229166667,cw=.3645833333333333,uw=.005696614583333333,hw=.3076171875;function Dm(t){var e=[];e[0]=nw-t*(sw+t*(Au+t*(Ou+t*Gu))),e[1]=t*(rw-t*(Au+t*(Ou+t*Gu)));var i=t*t;return e[2]=i*(aw-t*(ow+t*lw)),i*=t,e[3]=i*(cw-t*uw),e[4]=i*t*hw,e}function ka(t,e,i,n){return i*=e,e*=e,n[0]*t-i*(n[1]+e*(n[2]+e*(n[3]+e*n[4])))}var dw=20;function Pm(t,e,i){for(var n=1/(1-e),s=t,r=dw;r;--r){var a=Math.sin(s),o=1-e*a*a;if(o=(ka(s,a,Math.cos(s),i)-t)*(o*Math.sqrt(o))*n,s-=o,Math.abs(o)O?Math.tan(i):0,p=Math.pow(f,2),y=Math.pow(p,2);s=1-this.es*Math.pow(o,2),u=u/Math.sqrt(s);var _=ka(i,o,l,this.en);r=this.a*(this.k0*u*(1+h/6*(1-p+d+h/20*(5-18*p+y+14*d-58*p*d+h/42*(61+179*y-y*p-479*p)))))+this.x0,a=this.a*(this.k0*(_-this.ml0+o*n*u/2*(1+h/12*(5-p+9*d+4*m+h/30*(61+y-58*p+270*d-330*p*d+h/56*(1385+543*y-y*p-3111*p))))))+this.y0}else{var c=l*Math.sin(n);if(Math.abs(Math.abs(c)-1)=1){if(c-1>O)return 93;a=0}else a=Math.acos(a);i<0&&(a=-a),a=this.a*this.k0*(a-this.lat0)+this.y0}return t.x=r,t.y=a,t}function pw(t){var e,i,n,s,r=(t.x-this.x0)*(1/this.a),a=(t.y-this.y0)*(1/this.a);if(this.es)if(e=this.ml0+a/this.k0,i=Pm(e,this.es,this.en),Math.abs(i)O?Math.tan(i):0,f=this.ep2*Math.pow(d,2),p=Math.pow(f,2),y=Math.pow(m,2),_=Math.pow(y,2);e=1-this.es*Math.pow(h,2);var v=r*Math.sqrt(e)/this.k0,N=Math.pow(v,2);e=e*m,n=i-e*N/(1-this.es)*.5*(1-N/12*(5+3*y-9*f*y+f-4*p-N/30*(61+90*y-252*f*y+45*_+46*f-N/56*(1385+3633*y+4095*_+1574*_*y)))),s=V(this.long0+v*(1-N/6*(1+2*y+f-N/20*(5+28*y+24*_+8*f*y+6*f-N/42*(61+662*y+1320*_+720*_*y))))/d)}else n=k*Ks(a),s=0;else{var o=Math.exp(r/this.k0),l=.5*(o-1/o),c=this.lat0+a/this.k0,u=Math.cos(c);e=Math.sqrt((1-Math.pow(u,2))/(1+Math.pow(l,2))),n=Math.asin(e),a<0&&(n=-n),l===0&&u===0?s=0:s=V(Math.atan2(l,u)+this.long0)}return t.x=s,t.y=n,t}var gw=["Fast_Transverse_Mercator","Fast Transverse Mercator"];const Nr={init:mw,forward:fw,inverse:pw,names:gw};function Am(t){var e=Math.exp(t);return e=(e-1/e)/2,e}function Dt(t,e){t=Math.abs(t),e=Math.abs(e);var i=Math.max(t,e),n=Math.min(t,e)/(i||1);return i*Math.sqrt(1+Math.pow(n,2))}function yw(t){var e=1+t,i=e-1;return i===0?t:t*Math.log(e)/i}function bw(t){var e=Math.abs(t);return e=yw(e*(1+e/(Dt(1,e)+1))),t<0?-e:e}function Dl(t,e){for(var i=2*Math.cos(2*e),n=t.length-1,s=t[n],r=0,a;--n>=0;)a=-r+i*s+t[n],r=s,s=a;return e+a*Math.sin(2*e)}function _w(t,e){for(var i=2*Math.cos(e),n=t.length-1,s=t[n],r=0,a;--n>=0;)a=-r+i*s+t[n],r=s,s=a;return Math.sin(e)*a}function vw(t){var e=Math.exp(t);return e=(e+1/e)/2,e}function Om(t,e,i){for(var n=Math.sin(e),s=Math.cos(e),r=Am(i),a=vw(i),o=2*s*a,l=-2*n*r,c=t.length-1,u=t[c],h=0,d=0,m=0,f,p;--c>=0;)f=d,p=h,d=u,h=m,u=-f+o*d-l*h+t[c],m=-p+l*d+o*h;return o=n*a,l=s*r,[o*u-l*m,o*m+l*u]}function xw(){if(!this.approx&&(isNaN(this.es)||this.es<=0))throw new Error('Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.');this.approx&&(Nr.init.apply(this),this.forward=Nr.forward,this.inverse=Nr.inverse),this.x0=this.x0!==void 0?this.x0:0,this.y0=this.y0!==void 0?this.y0:0,this.long0=this.long0!==void 0?this.long0:0,this.lat0=this.lat0!==void 0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var t=this.es/(1+Math.sqrt(1-this.es)),e=t/(2-t),i=e;this.cgb[0]=e*(2+e*(-2/3+e*(-2+e*(116/45+e*(26/45+e*(-2854/675)))))),this.cbg[0]=e*(-2+e*(2/3+e*(4/3+e*(-82/45+e*(32/45+e*(4642/4725)))))),i=i*e,this.cgb[1]=i*(7/3+e*(-8/5+e*(-227/45+e*(2704/315+e*(2323/945))))),this.cbg[1]=i*(5/3+e*(-16/15+e*(-13/9+e*(904/315+e*(-1522/945))))),i=i*e,this.cgb[2]=i*(56/15+e*(-136/35+e*(-1262/105+e*(73814/2835)))),this.cbg[2]=i*(-26/15+e*(34/21+e*(8/5+e*(-12686/2835)))),i=i*e,this.cgb[3]=i*(4279/630+e*(-332/35+e*(-399572/14175))),this.cbg[3]=i*(1237/630+e*(-12/5+e*(-24832/14175))),i=i*e,this.cgb[4]=i*(4174/315+e*(-144838/6237)),this.cbg[4]=i*(-734/315+e*(109598/31185)),i=i*e,this.cgb[5]=i*(601676/22275),this.cbg[5]=i*(444337/155925),i=Math.pow(e,2),this.Qn=this.k0/(1+e)*(1+i*(1/4+i*(1/64+i/256))),this.utg[0]=e*(-.5+e*(2/3+e*(-37/96+e*(1/360+e*(81/512+e*(-96199/604800)))))),this.gtu[0]=e*(.5+e*(-2/3+e*(5/16+e*(41/180+e*(-127/288+e*(7891/37800)))))),this.utg[1]=i*(-1/48+e*(-1/15+e*(437/1440+e*(-46/105+e*(1118711/3870720))))),this.gtu[1]=i*(13/48+e*(-3/5+e*(557/1440+e*(281/630+e*(-1983433/1935360))))),i=i*e,this.utg[2]=i*(-17/480+e*(37/840+e*(209/4480+e*(-5569/90720)))),this.gtu[2]=i*(61/240+e*(-103/140+e*(15061/26880+e*(167603/181440)))),i=i*e,this.utg[3]=i*(-4397/161280+e*(11/504+e*(830251/7257600))),this.gtu[3]=i*(49561/161280+e*(-179/168+e*(6601661/7257600))),i=i*e,this.utg[4]=i*(-4583/161280+e*(108847/3991680)),this.gtu[4]=i*(34729/80640+e*(-3418889/1995840)),i=i*e,this.utg[5]=i*(-20648693/638668800),this.gtu[5]=i*(212378941/319334400);var n=Dl(this.cbg,this.lat0);this.Zb=-this.Qn*(n+_w(this.gtu,2*n))}function ww(t){var e=V(t.x-this.long0),i=t.y;i=Dl(this.cbg,i);var n=Math.sin(i),s=Math.cos(i),r=Math.sin(e),a=Math.cos(e);i=Math.atan2(n,a*s),e=Math.atan2(r*s,Dt(n,s*a)),e=bw(Math.tan(e));var o=Om(this.gtu,2*i,2*e);i=i+o[0],e=e+o[1];var l,c;return Math.abs(e)<=2.623395162778?(l=this.a*(this.Qn*e)+this.x0,c=this.a*(this.Qn*i+this.Zb)+this.y0):(l=1/0,c=1/0),t.x=l,t.y=c,t}function Cw(t){var e=(t.x-this.x0)*(1/this.a),i=(t.y-this.y0)*(1/this.a);i=(i-this.Zb)/this.Qn,e=e/this.Qn;var n,s;if(Math.abs(e)<=2.623395162778){var r=Om(this.utg,2*i,2*e);i=i+r[0],e=e+r[1],e=Math.atan(Am(e));var a=Math.sin(i),o=Math.cos(i),l=Math.sin(e),c=Math.cos(e);i=Math.atan2(a*c,Dt(l,c*o)),e=Math.atan2(l,c*o),n=V(e+this.long0),s=Dl(this.cgb,i)}else n=1/0,s=1/0;return t.x=n,t.y=s,t}var Nw=["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc","Transverse_Mercator","Transverse Mercator","Gauss Kruger","Gauss_Kruger","tmerc"];const Fr={init:xw,forward:ww,inverse:Cw,names:Nw};function Fw(t,e){if(t===void 0){if(t=Math.floor((V(e)+Math.PI)*30/Math.PI)+1,t<0)return 0;if(t>60)return 60}return t}var Ew="etmerc";function Mw(){var t=Fw(this.zone,this.long0);if(t===void 0)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(t)-183)*it,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,Fr.init.apply(this),this.forward=Fr.forward,this.inverse=Fr.inverse}var Tw=["Universal Transverse Mercator System","utm"];const Rw={init:Mw,names:Tw,dependsOn:Ew};function Pl(t,e){return Math.pow((1-t)/(1+t),e)}var Iw=20;function kw(){var t=Math.sin(this.lat0),e=Math.cos(this.lat0);e*=e,this.rc=Math.sqrt(1-this.es)/(1-this.es*t*t),this.C=Math.sqrt(1+this.es*e*e/(1-this.es)),this.phic0=Math.asin(t/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+ge)/(Math.pow(Math.tan(.5*this.lat0+ge),this.C)*Pl(this.e*t,this.ratexp))}function Lw(t){var e=t.x,i=t.y;return t.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*i+ge),this.C)*Pl(this.e*Math.sin(i),this.ratexp))-k,t.x=this.C*e,t}function Sw(t){for(var e=1e-14,i=t.x/this.C,n=t.y,s=Math.pow(Math.tan(.5*n+ge)/this.K,1/this.C),r=Iw;r>0&&(n=2*Math.atan(s*Pl(this.e*Math.sin(t.y),-.5*this.e))-k,!(Math.abs(n-t.y)0?this.con=1:this.con=-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),this.k0===1&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=O&&Math.abs(Math.cos(this.lat_ts))>O&&(this.k0=.5*this.cons*ei(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/Vt(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=ei(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-k,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))}function Kw(t){var e=t.x,i=t.y,n=Math.sin(i),s=Math.cos(i),r,a,o,l,c,u,h=V(e-this.long0);return Math.abs(Math.abs(e-this.long0)-Math.PI)<=O&&Math.abs(i+this.lat0)<=O?(t.x=NaN,t.y=NaN,t):this.sphere?(r=2*this.k0/(1+this.sinlat0*n+this.coslat0*s*Math.cos(h)),t.x=this.a*r*s*Math.sin(h)+this.x0,t.y=this.a*r*(this.coslat0*n-this.sinlat0*s*Math.cos(h))+this.y0,t):(a=2*Math.atan(this.ssfn_(i,n,this.e))-k,l=Math.cos(a),o=Math.sin(a),Math.abs(this.coslat0)<=O?(c=Vt(this.e,i*this.con,this.con*n),u=2*this.a*this.k0*c/this.cons,t.x=this.x0+u*Math.sin(e-this.long0),t.y=this.y0-this.con*u*Math.cos(e-this.long0),t):(Math.abs(this.sinlat0)0?e=V(this.long0+Math.atan2(t.x,-1*t.y)):e=V(this.long0+Math.atan2(t.x,t.y)):e=V(this.long0+Math.atan2(t.x*Math.sin(o),a*this.coslat0*Math.cos(o)-t.y*this.sinlat0*Math.sin(o))),t.x=e,t.y=i,t)}else if(Math.abs(this.coslat0)<=O){if(a<=O)return i=this.lat0,e=this.long0,t.x=e,t.y=i,t;t.x*=this.con,t.y*=this.con,n=a*this.cons/(2*this.a*this.k0),i=this.con*Ls(this.e,n),e=this.con*V(this.con*this.long0+Math.atan2(t.x,-1*t.y))}else s=2*Math.atan(a*this.cosX0/(2*this.a*this.k0*this.ms1)),e=this.long0,a<=O?r=this.X0:(r=Math.asin(Math.cos(s)*this.sinX0+t.y*Math.sin(s)*this.cosX0/a),e=V(this.long0+Math.atan2(t.x*Math.sin(s),a*this.cosX0*Math.cos(s)-t.y*this.sinX0*Math.sin(s)))),i=-1*Ls(this.e,Math.tan(.5*(k+r)));return t.x=e,t.y=i,t}var Uw=["stere","Stereographic_South_Pole","Polar Stereographic (variant B)","Polar_Stereographic"];const Bw={init:Ww,forward:Kw,inverse:Vw,names:Uw,ssfn_:Xw};function Hw(){var t=this.lat0;this.lambda0=this.long0;var e=Math.sin(t),i=this.a,n=this.rf,s=1/n,r=2*s-Math.pow(s,2),a=this.e=Math.sqrt(r);this.R=this.k0*i*Math.sqrt(1-r)/(1-r*Math.pow(e,2)),this.alpha=Math.sqrt(1+r/(1-r)*Math.pow(Math.cos(t),4)),this.b0=Math.asin(e/this.alpha);var o=Math.log(Math.tan(Math.PI/4+this.b0/2)),l=Math.log(Math.tan(Math.PI/4+t/2)),c=Math.log((1+a*e)/(1-a*e));this.K=o-this.alpha*l+this.alpha*a/2*c}function zw(t){var e=Math.log(Math.tan(Math.PI/4-t.y/2)),i=this.e/2*Math.log((1+this.e*Math.sin(t.y))/(1-this.e*Math.sin(t.y))),n=-this.alpha*(e+i)+this.K,s=2*(Math.atan(Math.exp(n))-Math.PI/4),r=this.alpha*(t.x-this.lambda0),a=Math.atan(Math.sin(r)/(Math.sin(this.b0)*Math.tan(s)+Math.cos(this.b0)*Math.cos(r))),o=Math.asin(Math.cos(this.b0)*Math.sin(s)-Math.sin(this.b0)*Math.cos(s)*Math.cos(r));return t.y=this.R/2*Math.log((1+Math.sin(o))/(1-Math.sin(o)))+this.y0,t.x=this.R*a+this.x0,t}function qw(t){for(var e=t.x-this.x0,i=t.y-this.y0,n=e/this.R,s=2*(Math.atan(Math.exp(i/this.R))-Math.PI/4),r=Math.asin(Math.cos(this.b0)*Math.sin(s)+Math.sin(this.b0)*Math.cos(s)*Math.cos(n)),a=Math.atan(Math.sin(n)/(Math.cos(this.b0)*Math.cos(n)-Math.sin(this.b0)*Math.tan(s))),o=this.lambda0+a/this.alpha,l=0,c=r,u=-1e3,h=0;Math.abs(c-u)>1e-7;){if(++h>20)return;l=1/this.alpha*(Math.log(Math.tan(Math.PI/4+r/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(c))/2)),u=c,c=2*Math.atan(Math.exp(l))-Math.PI/2}return t.x=o,t.y=c,t}var jw=["somerc"];const Yw={init:Hw,forward:zw,inverse:qw,names:jw};var gn=1e-7;function $w(t){var e=["Hotine_Oblique_Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin"],i=typeof t.PROJECTION=="object"?Object.keys(t.PROJECTION)[0]:t.PROJECTION;return"no_uoff"in t||"no_off"in t||e.indexOf(i)!==-1}function Jw(){var t,e,i,n,s,r,a,o,l,c,u=0,h,d=0,m=0,f=0,p=0,y=0,_=0;this.no_off=$w(this),this.no_rot="no_rot"in this;var v=!1;"alpha"in this&&(v=!0);var N=!1;if("rectified_grid_angle"in this&&(N=!0),v&&(_=this.alpha),N&&(u=this.rectified_grid_angle*it),v||N)d=this.longc;else if(m=this.long1,p=this.lat1,f=this.long2,y=this.lat2,Math.abs(p-y)<=gn||(t=Math.abs(p))<=gn||Math.abs(t-k)<=gn||Math.abs(Math.abs(this.lat0)-k)<=gn||Math.abs(Math.abs(y)-k)<=gn)throw new Error;var w=1-this.es;e=Math.sqrt(w),Math.abs(this.lat0)>O?(o=Math.sin(this.lat0),i=Math.cos(this.lat0),t=1-this.es*o*o,this.B=i*i,this.B=Math.sqrt(1+this.es*this.B*this.B/w),this.A=this.B*this.k0*e/t,n=this.B*e/(i*Math.sqrt(t)),s=n*n-1,s<=0?s=0:(s=Math.sqrt(s),this.lat0<0&&(s=-s)),this.E=s+=n,this.E*=Math.pow(Vt(this.e,this.lat0,o),this.B)):(this.B=1/e,this.A=this.k0,this.E=n=s=1),v||N?(v?(h=Math.asin(Math.sin(_)/n),N||(u=_)):(h=u,_=Math.asin(n*Math.sin(h))),this.lam0=d-Math.asin(.5*(s-1/s)*Math.tan(h))/this.B):(r=Math.pow(Vt(this.e,p,Math.sin(p)),this.B),a=Math.pow(Vt(this.e,y,Math.sin(y)),this.B),s=this.E/r,l=(a-r)/(a+r),c=this.E*this.E,c=(c-a*r)/(c+a*r),t=m-f,t<-Math.pi?f-=Is:t>Math.pi&&(f+=Is),this.lam0=V(.5*(m+f)-Math.atan(c*Math.tan(.5*this.B*(m-f))/l)/this.B),h=Math.atan(2*Math.sin(this.B*V(m-this.lam0))/(s-1/s)),u=_=Math.asin(n*Math.sin(h))),this.singam=Math.sin(h),this.cosgam=Math.cos(h),this.sinrot=Math.sin(u),this.cosrot=Math.cos(u),this.rB=1/this.B,this.ArB=this.A*this.rB,this.BrA=1/this.ArB,this.A*this.B,this.no_off?this.u_0=0:(this.u_0=Math.abs(this.ArB*Math.atan(Math.sqrt(n*n-1)/Math.cos(_))),this.lat0<0&&(this.u_0=-this.u_0)),s=.5*h,this.v_pole_n=this.ArB*Math.log(Math.tan(ge-s)),this.v_pole_s=this.ArB*Math.log(Math.tan(ge+s))}function Qw(t){var e={},i,n,s,r,a,o,l,c;if(t.x=t.x-this.lam0,Math.abs(Math.abs(t.y)-k)>O){if(a=this.E/Math.pow(Vt(this.e,t.y,Math.sin(t.y)),this.B),o=1/a,i=.5*(a-o),n=.5*(a+o),r=Math.sin(this.B*t.x),s=(i*this.singam-r*this.cosgam)/n,Math.abs(Math.abs(s)-1)0?this.v_pole_n:this.v_pole_s,l=this.ArB*t.y;return this.no_rot?(e.x=l,e.y=c):(l-=this.u_0,e.x=c*this.cosrot+l*this.sinrot,e.y=l*this.cosrot-c*this.sinrot),e.x=this.a*e.x+this.x0,e.y=this.a*e.y+this.y0,e}function eC(t){var e,i,n,s,r,a,o,l={};if(t.x=(t.x-this.x0)*(1/this.a),t.y=(t.y-this.y0)*(1/this.a),this.no_rot?(i=t.y,e=t.x):(i=t.x*this.cosrot-t.y*this.sinrot,e=t.y*this.cosrot+t.x*this.sinrot+this.u_0),n=Math.exp(-this.BrA*i),s=.5*(n-1/n),r=.5*(n+1/n),a=Math.sin(this.BrA*e),o=(a*this.cosgam+s*this.singam)/r,Math.abs(Math.abs(o)-1)O?this.ns=Math.log(n/o)/Math.log(s/l):this.ns=e,isNaN(this.ns)&&(this.ns=e),this.f0=n/(this.ns*Math.pow(s,this.ns)),this.rh=this.a*this.f0*Math.pow(c,this.ns),this.title||(this.title="Lambert Conformal Conic")}}function sC(t){var e=t.x,i=t.y;Math.abs(2*Math.abs(i)-Math.PI)<=O&&(i=Ks(i)*(k-2*O));var n=Math.abs(Math.abs(i)-k),s,r;if(n>O)s=Vt(this.e,i,Math.sin(i)),r=this.a*this.f0*Math.pow(s,this.ns);else{if(n=i*this.ns,n<=0)return null;r=0}var a=this.ns*V(e-this.long0);return t.x=this.k0*(r*Math.sin(a))+this.x0,t.y=this.k0*(this.rh-r*Math.cos(a))+this.y0,t}function rC(t){var e,i,n,s,r,a=(t.x-this.x0)/this.k0,o=this.rh-(t.y-this.y0)/this.k0;this.ns>0?(e=Math.sqrt(a*a+o*o),i=1):(e=-Math.sqrt(a*a+o*o),i=-1);var l=0;if(e!==0&&(l=Math.atan2(i*a,i*o)),e!==0||this.ns>0){if(i=1/this.ns,n=Math.pow(e/(this.a*this.f0),i),s=Ls(this.e,n),s===-9999)return null}else s=-k;return r=V(l/this.ns+this.long0),t.x=r,t.y=s,t}var aC=["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_1SP","Lambert_Conformal_Conic_2SP","lcc","Lambert Conic Conformal (1SP)","Lambert Conic Conformal (2SP)"];const oC={init:nC,forward:sC,inverse:rC,names:aC};function lC(){this.a=6377397155e-3,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.7417649320975901-.308341501185665),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq}function cC(t){var e,i,n,s,r,a,o,l=t.x,c=t.y,u=V(l-this.long0);return e=Math.pow((1+this.e*Math.sin(c))/(1-this.e*Math.sin(c)),this.alfa*this.e/2),i=2*(Math.atan(this.k*Math.pow(Math.tan(c/2+this.s45),this.alfa)/e)-this.s45),n=-u*this.alfa,s=Math.asin(Math.cos(this.ad)*Math.sin(i)+Math.sin(this.ad)*Math.cos(i)*Math.cos(n)),r=Math.asin(Math.cos(i)*Math.sin(n)/Math.cos(s)),a=this.n*r,o=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(s/2+this.s45),this.n),t.y=o*Math.cos(a)/1,t.x=o*Math.sin(a)/1,this.czech||(t.y*=-1,t.x*=-1),t}function uC(t){var e,i,n,s,r,a,o,l,c=t.x;t.x=t.y,t.y=c,this.czech||(t.y*=-1,t.x*=-1),a=Math.sqrt(t.x*t.x+t.y*t.y),r=Math.atan2(t.y,t.x),s=r/Math.sin(this.s0),n=2*(Math.atan(Math.pow(this.ro0/a,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),e=Math.asin(Math.cos(this.ad)*Math.sin(n)-Math.sin(this.ad)*Math.cos(n)*Math.cos(s)),i=Math.asin(Math.cos(n)*Math.sin(s)/Math.cos(e)),t.x=this.long0-i/this.alfa,o=e,l=0;var u=0;do t.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(e/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(o))/(1-this.e*Math.sin(o)),this.e/2))-this.s45),Math.abs(o-t.y)<1e-10&&(l=1),o=t.y,u+=1;while(l===0&&u<15);return u>=15?null:t}var hC=["Krovak","krovak"];const dC={init:lC,forward:cC,inverse:uC,names:hC};function bt(t,e,i,n,s){return t*s-e*Math.sin(2*s)+i*Math.sin(4*s)-n*Math.sin(6*s)}function Vs(t){return 1-.25*t*(1+t/16*(3+1.25*t))}function Us(t){return .375*t*(1+.25*t*(1+.46875*t))}function Bs(t){return .05859375*t*t*(1+.75*t)}function Hs(t){return t*t*t*(35/3072)}function Vn(t,e,i){var n=e*i;return t/Math.sqrt(1-n*n)}function Yn(t){return Math.abs(t)1e-7?(i=t*e,(1-t*t)*(e/(1-i*i)-.5/t*Math.log((1-i)/(1+i)))):2*e}var bC=1,_C=2,vC=3,xC=4;function wC(){var t=Math.abs(this.lat0);if(Math.abs(t-k)0){var e;switch(this.qp=Ci(this.e,1),this.mmf=.5/(1-this.es),this.apa=kC(this.es),this.mode){case this.N_POLE:this.dd=1;break;case this.S_POLE:this.dd=1;break;case this.EQUIT:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case this.OBLIQ:this.rq=Math.sqrt(.5*this.qp),e=Math.sin(this.lat0),this.sinb1=Ci(this.e,e)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*e*e)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd;break}}else this.mode===this.OBLIQ&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))}function CC(t){var e,i,n,s,r,a,o,l,c,u,h=t.x,d=t.y;if(h=V(h-this.long0),this.sphere){if(r=Math.sin(d),u=Math.cos(d),n=Math.cos(h),this.mode===this.OBLIQ||this.mode===this.EQUIT){if(i=this.mode===this.EQUIT?1+u*n:1+this.sinph0*r+this.cosph0*u*n,i<=O)return null;i=Math.sqrt(2/i),e=i*u*Math.sin(h),i*=this.mode===this.EQUIT?r:this.cosph0*r-this.sinph0*u*n}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(n=-n),Math.abs(d+this.lat0)=0?(e=(c=Math.sqrt(a))*s,i=n*(this.mode===this.S_POLE?c:-c)):e=i=0;break}}return t.x=this.a*e+this.x0,t.y=this.a*i+this.y0,t}function NC(t){t.x-=this.x0,t.y-=this.y0;var e=t.x/this.a,i=t.y/this.a,n,s,r,a,o,l,c;if(this.sphere){var u=0,h,d=0;if(h=Math.sqrt(e*e+i*i),s=h*.5,s>1)return null;switch(s=2*Math.asin(s),(this.mode===this.OBLIQ||this.mode===this.EQUIT)&&(d=Math.sin(s),u=Math.cos(s)),this.mode){case this.EQUIT:s=Math.abs(h)<=O?0:Math.asin(i*d/h),e*=d,i=u*h;break;case this.OBLIQ:s=Math.abs(h)<=O?this.lat0:Math.asin(u*this.sinph0+i*d*this.cosph0/h),e*=d*this.cosph0,i=(u-Math.sin(s)*this.sinph0)*h;break;case this.N_POLE:i=-i,s=k-s;break;case this.S_POLE:s-=k;break}n=i===0&&(this.mode===this.EQUIT||this.mode===this.OBLIQ)?0:Math.atan2(e,i)}else{if(c=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(e/=this.dd,i*=this.dd,l=Math.sqrt(e*e+i*i),l1&&(t=t>1?1:-1),Math.asin(t)}function PC(){Math.abs(this.lat1+this.lat2)O?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)}function AC(t){var e=t.x,i=t.y;this.sin_phi=Math.sin(i),this.cos_phi=Math.cos(i);var n=Ci(this.e3,this.sin_phi),s=this.a*Math.sqrt(this.c-this.ns0*n)/this.ns0,r=this.ns0*V(e-this.long0),a=s*Math.sin(r)+this.x0,o=this.rh-s*Math.cos(r)+this.y0;return t.x=a,t.y=o,t}function OC(t){var e,i,n,s,r,a;return t.x-=this.x0,t.y=this.rh-t.y+this.y0,this.ns0>=0?(e=Math.sqrt(t.x*t.x+t.y*t.y),n=1):(e=-Math.sqrt(t.x*t.x+t.y*t.y),n=-1),s=0,e!==0&&(s=Math.atan2(n*t.x,n*t.y)),n=e*this.ns0/this.a,this.sphere?a=Math.asin((this.c-n*n)/(2*this.ns0)):(i=(this.c-n*n)/this.ns0,a=this.phi1z(this.e3,i)),r=V(s/this.ns0+this.long0),t.x=r,t.y=a,t}function GC(t,e){var i,n,s,r,a,o=Ii(.5*e);if(t0||Math.abs(a)<=O?(o=this.x0+this.a*r*i*Math.sin(n)/a,l=this.y0+this.a*r*(this.cos_p14*e-this.sin_p14*i*s)/a):(o=this.x0+this.infinity_dist*i*Math.sin(n),l=this.y0+this.infinity_dist*(this.cos_p14*e-this.sin_p14*i*s)),t.x=o,t.y=l,t}function VC(t){var e,i,n,s,r,a;return t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,t.x/=this.k0,t.y/=this.k0,(e=Math.sqrt(t.x*t.x+t.y*t.y))?(s=Math.atan2(e,this.rc),i=Math.sin(s),n=Math.cos(s),a=Ii(n*this.sin_p14+t.y*i*this.cos_p14/e),r=Math.atan2(t.x*i,e*this.cos_p14*n-t.y*this.sin_p14*i),r=V(this.long0+r)):(a=this.phic0,r=0),t.x=r,t.y=a,t}var UC=["gnom"];const BC={init:WC,forward:KC,inverse:VC,names:UC};function HC(t,e){var i=1-(1-t*t)/(2*t)*Math.log((1-t)/(1+t));if(Math.abs(Math.abs(e)-i)<1e-6)return e<0?-1*k:k;for(var n=Math.asin(.5*e),s,r,a,o,l=0;l<30;l++)if(r=Math.sin(n),a=Math.cos(n),o=t*r,s=Math.pow(1-o*o,2)/(2*a)*(e/(1-t*t)-r/(1-o*o)+.5/t*Math.log((1-o)/(1+o))),n+=s,Math.abs(s)<=1e-10)return n;return NaN}function zC(){this.sphere||(this.k0=ei(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))}function qC(t){var e=t.x,i=t.y,n,s,r=V(e-this.long0);if(this.sphere)n=this.x0+this.a*r*Math.cos(this.lat_ts),s=this.y0+this.a*Math.sin(i)/Math.cos(this.lat_ts);else{var a=Ci(this.e,Math.sin(i));n=this.x0+this.a*this.k0*r,s=this.y0+this.a*a*.5/this.k0}return t.x=n,t.y=s,t}function jC(t){t.x-=this.x0,t.y-=this.y0;var e,i;return this.sphere?(e=V(this.long0+t.x/this.a/Math.cos(this.lat_ts)),i=Math.asin(t.y/this.a*Math.cos(this.lat_ts))):(i=HC(this.e,2*t.y*this.k0/this.a),e=V(this.long0+t.x/(this.a*this.k0))),t.x=e,t.y=i,t}var YC=["cea"];const $C={init:zC,forward:qC,inverse:jC,names:YC};function JC(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Equidistant Cylindrical (Plate Carre)",this.rc=Math.cos(this.lat_ts)}function QC(t){var e=t.x,i=t.y,n=V(e-this.long0),s=Yn(i-this.lat0);return t.x=this.x0+this.a*n*this.rc,t.y=this.y0+this.a*s,t}function eN(t){var e=t.x,i=t.y;return t.x=V(this.long0+(e-this.x0)/(this.a*this.rc)),t.y=Yn(this.lat0+(i-this.y0)/this.a),t}var tN=["Equirectangular","Equidistant_Cylindrical","eqc"];const iN={init:JC,forward:QC,inverse:eN,names:tN};var Zu=20;function nN(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=Vs(this.es),this.e1=Us(this.es),this.e2=Bs(this.es),this.e3=Hs(this.es),this.ml0=this.a*bt(this.e0,this.e1,this.e2,this.e3,this.lat0)}function sN(t){var e=t.x,i=t.y,n,s,r,a=V(e-this.long0);if(r=a*Math.sin(i),this.sphere)Math.abs(i)<=O?(n=this.a*a,s=-1*this.a*this.lat0):(n=this.a*Math.sin(r)/Math.tan(i),s=this.a*(Yn(i-this.lat0)+(1-Math.cos(r))/Math.tan(i)));else if(Math.abs(i)<=O)n=this.a*a,s=-1*this.ml0;else{var o=Vn(this.a,this.e,Math.sin(i))/Math.tan(i);n=o*Math.sin(r),s=this.a*bt(this.e0,this.e1,this.e2,this.e3,i)-this.ml0+o*(1-Math.cos(r))}return t.x=n+this.x0,t.y=s+this.y0,t}function rN(t){var e,i,n,s,r,a,o,l,c;if(n=t.x-this.x0,s=t.y-this.y0,this.sphere)if(Math.abs(s+this.a*this.lat0)<=O)e=V(n/this.a+this.long0),i=0;else{a=this.lat0+s/this.a,o=n*n/this.a/this.a+a*a,l=a;var u;for(r=Zu;r;--r)if(u=Math.tan(l),c=-1*(a*(l*u+1)-l-.5*(l*l+o)*u)/((l-a)/u-1),l+=c,Math.abs(c)<=O){i=l;break}e=V(this.long0+Math.asin(n*Math.tan(l)/this.a)/Math.sin(i))}else if(Math.abs(s+this.ml0)<=O)i=0,e=V(this.long0+n/this.a);else{a=(this.ml0+s)/this.a,o=n*n/this.a/this.a+a*a,l=a;var h,d,m,f,p;for(r=Zu;r;--r)if(p=this.e*Math.sin(l),h=Math.sqrt(1-p*p)*Math.tan(l),d=this.a*bt(this.e0,this.e1,this.e2,this.e3,l),m=this.e0-2*this.e1*Math.cos(2*l)+4*this.e2*Math.cos(4*l)-6*this.e3*Math.cos(6*l),f=d/this.a,c=(a*(h*f+1)-f-.5*h*(f*f+o))/(this.es*Math.sin(2*l)*(f*f+o-2*a*f)/(4*h)+(a-f)*(h*m-2/Math.sin(2*l))-m),l-=c,Math.abs(c)<=O){i=l;break}h=Math.sqrt(1-this.es*Math.pow(Math.sin(i),2))*Math.tan(i),e=V(this.long0+Math.asin(n*h/this.a)/Math.sin(i))}return t.x=e,t.y=i,t}var aN=["Polyconic","poly"];const oN={init:nN,forward:sN,inverse:rN,names:aN};function lN(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013}function cN(t){var e,i=t.x,n=t.y,s=n-this.lat0,r=i-this.long0,a=s/fs*1e-5,o=r,l=1,c=0;for(e=1;e<=10;e++)l=l*a,c=c+this.A[e]*l;var u=c,h=o,d=1,m=0,f,p,y=0,_=0;for(e=1;e<=6;e++)f=d*u-m*h,p=m*u+d*h,d=f,m=p,y=y+this.B_re[e]*d-this.B_im[e]*m,_=_+this.B_im[e]*d+this.B_re[e]*m;return t.x=_*this.a+this.x0,t.y=y*this.a+this.y0,t}function uN(t){var e,i=t.x,n=t.y,s=i-this.x0,r=n-this.y0,a=r/this.a,o=s/this.a,l=1,c=0,u,h,d=0,m=0;for(e=1;e<=6;e++)u=l*a-c*o,h=c*a+l*o,l=u,c=h,d=d+this.C_re[e]*l-this.C_im[e]*c,m=m+this.C_im[e]*l+this.C_re[e]*c;for(var f=0;f.999999999999&&(i=.999999999999),e=Math.asin(i);var n=V(this.long0+t.x/(.900316316158*this.a*Math.cos(e)));n<-Math.PI&&(n=-Math.PI),n>Math.PI&&(n=Math.PI),i=(2*e+Math.sin(2*e))/Math.PI,Math.abs(i)>1&&(i=1);var s=Math.asin(i);return t.x=n,t.y=s,t}var MN=["Mollweide","moll"];const TN={init:NN,forward:FN,inverse:EN,names:MN};function RN(){Math.abs(this.lat1+this.lat2)=0?(i=Math.sqrt(t.x*t.x+t.y*t.y),e=1):(i=-Math.sqrt(t.x*t.x+t.y*t.y),e=-1);var r=0;if(i!==0&&(r=Math.atan2(e*t.x,e*t.y)),this.sphere)return s=V(this.long0+r/this.ns),n=Yn(this.g-i/this.a),t.x=s,t.y=n,t;var a=this.g-i/this.a;return n=Yr(a,this.e0,this.e1,this.e2,this.e3),s=V(this.long0+r/this.ns),t.x=s,t.y=n,t}var LN=["Equidistant_Conic","eqdc"];const SN={init:RN,forward:IN,inverse:kN,names:LN};function DN(){this.R=this.a}function PN(t){var e=t.x,i=t.y,n=V(e-this.long0),s,r;Math.abs(i)<=O&&(s=this.x0+this.R*n,r=this.y0);var a=Ii(2*Math.abs(i/Math.PI));(Math.abs(n)<=O||Math.abs(Math.abs(i)-k)<=O)&&(s=this.x0,i>=0?r=this.y0+Math.PI*this.R*Math.tan(.5*a):r=this.y0+Math.PI*this.R*-Math.tan(.5*a));var o=.5*Math.abs(Math.PI/n-n/Math.PI),l=o*o,c=Math.sin(a),u=Math.cos(a),h=u/(c+u-1),d=h*h,m=h*(2/c-1),f=m*m,p=Math.PI*this.R*(o*(h-f)+Math.sqrt(l*(h-f)*(h-f)-(f+l)*(d-f)))/(f+l);n<0&&(p=-p),s=this.x0+p;var y=l+h;return p=Math.PI*this.R*(m*y-o*Math.sqrt((f+l)*(l+1)-y*y))/(f+l),i>=0?r=this.y0+p:r=this.y0-p,t.x=s,t.y=r,t}function AN(t){var e,i,n,s,r,a,o,l,c,u,h,d,m;return t.x-=this.x0,t.y-=this.y0,h=Math.PI*this.R,n=t.x/h,s=t.y/h,r=n*n+s*s,a=-Math.abs(s)*(1+r),o=a-2*s*s+n*n,l=-2*a+1+2*s*s+r*r,m=s*s/l+(2*o*o*o/l/l/l-9*a*o/l/l)/27,c=(a-o*o/3/l)/l,u=2*Math.sqrt(-c/3),h=3*m/c/u,Math.abs(h)>1&&(h>=0?h=1:h=-1),d=Math.acos(h)/3,t.y>=0?i=(-u*Math.cos(d+Math.PI/3)-o/3/l)*Math.PI:i=-(-u*Math.cos(d+Math.PI/3)-o/3/l)*Math.PI,Math.abs(n)2*k*this.a?void 0:(i=e/this.a,n=Math.sin(i),s=Math.cos(i),r=this.long0,Math.abs(e)<=O?a=this.lat0:(a=Ii(s*this.sin_p12+t.y*n*this.cos_p12/e),o=Math.abs(this.lat0)-k,Math.abs(o)<=O?this.lat0>=0?r=V(this.long0+Math.atan2(t.x,-t.y)):r=V(this.long0-Math.atan2(-t.x,t.y)):r=V(this.long0+Math.atan2(t.x*n,e*this.cos_p12*s-t.y*this.sin_p12*n))),t.x=r,t.y=a,t)):(l=Vs(this.es),c=Us(this.es),u=Bs(this.es),h=Hs(this.es),Math.abs(this.sin_p12-1)<=O?(d=this.a*bt(l,c,u,h,k),e=Math.sqrt(t.x*t.x+t.y*t.y),m=d-e,a=Yr(m/this.a,l,c,u,h),r=V(this.long0+Math.atan2(t.x,-1*t.y)),t.x=r,t.y=a,t):Math.abs(this.sin_p12+1)<=O?(d=this.a*bt(l,c,u,h,k),e=Math.sqrt(t.x*t.x+t.y*t.y),m=e-d,a=Yr(m/this.a,l,c,u,h),r=V(this.long0+Math.atan2(t.x,t.y)),t.x=r,t.y=a,t):(e=Math.sqrt(t.x*t.x+t.y*t.y),y=Math.atan2(t.x,t.y),f=Vn(this.a,this.e,this.sin_p12),_=Math.cos(y),v=this.e*this.cos_p12*_,N=-v*v/(1-this.es),w=3*this.es*(1-N)*this.sin_p12*this.cos_p12*_/(1-this.es),E=e/f,L=E-N*(1+N)*Math.pow(E,3)/6-w*(1+3*N)*Math.pow(E,4)/24,Y=1-N*L*L/2-E*L*L*L/6,p=Math.asin(this.sin_p12*Math.cos(L)+this.cos_p12*Math.sin(L)*_),r=V(this.long0+Math.asin(Math.sin(y)*Math.sin(L)/Math.cos(p))),q=Math.sin(p),a=Math.atan2((q-this.es*Y*this.sin_p12)*Math.tan(p),q*(1-this.es)),t.x=r,t.y=a,t))}var KN=["Azimuthal_Equidistant","aeqd"];const VN={init:ZN,forward:XN,inverse:WN,names:KN};function UN(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)}function BN(t){var e,i,n,s,r,a,o,l,c=t.x,u=t.y;return n=V(c-this.long0),e=Math.sin(u),i=Math.cos(u),s=Math.cos(n),a=this.sin_p14*e+this.cos_p14*i*s,r=1,(a>0||Math.abs(a)<=O)&&(o=this.a*r*i*Math.sin(n),l=this.y0+this.a*r*(this.cos_p14*e-this.sin_p14*i*s)),t.x=o,t.y=l,t}function HN(t){var e,i,n,s,r,a,o;return t.x-=this.x0,t.y-=this.y0,e=Math.sqrt(t.x*t.x+t.y*t.y),i=Ii(e/this.a),n=Math.sin(i),s=Math.cos(i),a=this.long0,Math.abs(e)<=O?(o=this.lat0,t.x=a,t.y=o,t):(o=Ii(s*this.sin_p14+t.y*n*this.cos_p14/e),r=Math.abs(this.lat0)-k,Math.abs(r)<=O?(this.lat0>=0?a=V(this.long0+Math.atan2(t.x,-t.y)):a=V(this.long0-Math.atan2(-t.x,t.y)),t.x=a,t.y=o,t):(a=V(this.long0+Math.atan2(t.x*n,e*this.cos_p14*s-t.y*this.sin_p14*n)),t.x=a,t.y=o,t))}var zN=["ortho"];const qN={init:UN,forward:BN,inverse:HN,names:zN};var Ae={FRONT:1,RIGHT:2,BACK:3,LEFT:4,TOP:5,BOTTOM:6},ye={AREA_0:1,AREA_1:2,AREA_2:3,AREA_3:4};function jN(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Quadrilateralized Spherical Cube",this.lat0>=k-ge/2?this.face=Ae.TOP:this.lat0<=-(k-ge/2)?this.face=Ae.BOTTOM:Math.abs(this.long0)<=ge?this.face=Ae.FRONT:Math.abs(this.long0)<=k+ge?this.face=this.long0>0?Ae.RIGHT:Ae.LEFT:this.face=Ae.BACK,this.es!==0&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)}function YN(t){var e={x:0,y:0},i,n,s,r,a,o,l={value:0};if(t.x-=this.long0,this.es!==0?i=Math.atan(this.one_minus_f_squared*Math.tan(t.y)):i=t.y,n=t.x,this.face===Ae.TOP)r=k-i,n>=ge&&n<=k+ge?(l.value=ye.AREA_0,s=n-k):n>k+ge||n<=-(k+ge)?(l.value=ye.AREA_1,s=n>0?n-Ue:n+Ue):n>-(k+ge)&&n<=-ge?(l.value=ye.AREA_2,s=n+k):(l.value=ye.AREA_3,s=n);else if(this.face===Ae.BOTTOM)r=k+i,n>=ge&&n<=k+ge?(l.value=ye.AREA_0,s=-n+k):n=-ge?(l.value=ye.AREA_1,s=-n):n<-ge&&n>=-(k+ge)?(l.value=ye.AREA_2,s=-n-k):(l.value=ye.AREA_3,s=n>0?-n+Ue:-n-Ue);else{var c,u,h,d,m,f,p;this.face===Ae.RIGHT?n=Pn(n,+k):this.face===Ae.BACK?n=Pn(n,+Ue):this.face===Ae.LEFT&&(n=Pn(n,-k)),d=Math.sin(i),m=Math.cos(i),f=Math.sin(n),p=Math.cos(n),c=m*p,u=m*f,h=d,this.face===Ae.FRONT?(r=Math.acos(c),s=mr(r,h,u,l)):this.face===Ae.RIGHT?(r=Math.acos(u),s=mr(r,h,-c,l)):this.face===Ae.BACK?(r=Math.acos(-c),s=mr(r,h,-u,l)):this.face===Ae.LEFT?(r=Math.acos(-u),s=mr(r,h,c,l)):(r=s=0,l.value=ye.AREA_0)}return o=Math.atan(12/Ue*(s+Math.acos(Math.sin(s)*Math.cos(ge))-k)),a=Math.sqrt((1-Math.cos(r))/(Math.cos(o)*Math.cos(o))/(1-Math.cos(Math.atan(1/Math.cos(s))))),l.value===ye.AREA_1?o+=k:l.value===ye.AREA_2?o+=Ue:l.value===ye.AREA_3&&(o+=1.5*Ue),e.x=a*Math.cos(o),e.y=a*Math.sin(o),e.x=e.x*this.a+this.x0,e.y=e.y*this.a+this.y0,t.x=e.x,t.y=e.y,t}function $N(t){var e={lam:0,phi:0},i,n,s,r,a,o,l,c,u,h={value:0};if(t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,n=Math.atan(Math.sqrt(t.x*t.x+t.y*t.y)),i=Math.atan2(t.y,t.x),t.x>=0&&t.x>=Math.abs(t.y)?h.value=ye.AREA_0:t.y>=0&&t.y>=Math.abs(t.x)?(h.value=ye.AREA_1,i-=k):t.x<0&&-t.x>=Math.abs(t.y)?(h.value=ye.AREA_2,i=i<0?i+Ue:i-Ue):(h.value=ye.AREA_3,i+=k),u=Ue/12*Math.tan(i),a=Math.sin(u)/(Math.cos(u)-1/Math.sqrt(2)),o=Math.atan(a),s=Math.cos(i),r=Math.tan(n),l=1-s*s*r*r*(1-Math.cos(Math.atan(1/Math.cos(o)))),l<-1?l=-1:l>1&&(l=1),this.face===Ae.TOP)c=Math.acos(l),e.phi=k-c,h.value===ye.AREA_0?e.lam=o+k:h.value===ye.AREA_1?e.lam=o<0?o+Ue:o-Ue:h.value===ye.AREA_2?e.lam=o-k:e.lam=o;else if(this.face===Ae.BOTTOM)c=Math.acos(l),e.phi=c-k,h.value===ye.AREA_0?e.lam=-o+k:h.value===ye.AREA_1?e.lam=-o:h.value===ye.AREA_2?e.lam=-o-k:e.lam=o<0?-o-Ue:-o+Ue;else{var d,m,f;d=l,u=d*d,u>=1?f=0:f=Math.sqrt(1-u)*Math.sin(o),u+=f*f,u>=1?m=0:m=Math.sqrt(1-u),h.value===ye.AREA_1?(u=m,m=-f,f=u):h.value===ye.AREA_2?(m=-m,f=-f):h.value===ye.AREA_3&&(u=m,m=f,f=-u),this.face===Ae.RIGHT?(u=d,d=-m,m=u):this.face===Ae.BACK?(d=-d,m=-m):this.face===Ae.LEFT&&(u=d,d=m,m=-u),e.phi=Math.acos(-f)-k,e.lam=Math.atan2(m,d),this.face===Ae.RIGHT?e.lam=Pn(e.lam,-k):this.face===Ae.BACK?e.lam=Pn(e.lam,-Ue):this.face===Ae.LEFT&&(e.lam=Pn(e.lam,+k))}if(this.es!==0){var p,y,_;p=e.phi<0?1:0,y=Math.tan(e.phi),_=this.b/Math.sqrt(y*y+this.one_minus_f_squared),e.phi=Math.atan(Math.sqrt(this.a*this.a-_*_)/(this.one_minus_f*_)),p&&(e.phi=-e.phi)}return e.lam+=this.long0,t.x=e.lam,t.y=e.phi,t}function mr(t,e,i,n){var s;return tge&&s<=k+ge?(n.value=ye.AREA_1,s-=k):s>k+ge||s<=-(k+ge)?(n.value=ye.AREA_2,s=s>=0?s-Ue:s+Ue):(n.value=ye.AREA_3,s+=k)),s}function Pn(t,e){var i=t+e;return i<-Ue?i+=Is:i>+Ue&&(i-=Is),i}var JN=["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"];const QN={init:jN,forward:YN,inverse:$N,names:JN};var So=[[1,22199e-21,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-986701e-12],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,18736e-12],[.96,-.00305085,-900761e-10,164917e-11],[.9427,-.00382792,-653386e-10,-26154e-10],[.9216,-.00467746,-10457e-8,481243e-11],[.8962,-.00536223,-323831e-10,-543432e-11],[.8679,-.00609363,-113898e-9,332484e-11],[.835,-.00698325,-640253e-10,934959e-12],[.7986,-.00755338,-500009e-10,935324e-12],[.7597,-.00798324,-35971e-9,-227626e-11],[.7186,-.00851367,-701149e-10,-86303e-10],[.6732,-.00986209,-199569e-9,191974e-10],[.6213,-.010418,883923e-10,624051e-11],[.5722,-.00906601,182e-6,624051e-11],[.5322,-.00677797,275608e-9,624051e-11]],os=[[-520417e-23,.0124,121431e-23,-845284e-16],[.062,.0124,-126793e-14,422642e-15],[.124,.0124,507171e-14,-160604e-14],[.186,.0123999,-190189e-13,600152e-14],[.248,.0124002,710039e-13,-224e-10],[.31,.0123992,-264997e-12,835986e-13],[.372,.0124029,988983e-12,-311994e-12],[.434,.0123893,-369093e-11,-435621e-12],[.4958,.0123198,-102252e-10,-345523e-12],[.5571,.0121916,-154081e-10,-582288e-12],[.6176,.0119938,-241424e-10,-525327e-12],[.6769,.011713,-320223e-10,-516405e-12],[.7346,.0113541,-397684e-10,-609052e-12],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-140374e-14],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],Gm=.8487,Zm=1.3523,Xm=$t/5,e3=1/Xm,Cn=18,$r=function(t,e){return t[0]+e*(t[1]+e*(t[2]+e*t[3]))},t3=function(t,e){return t[1]+e*(2*t[2]+e*3*t[3])};function i3(t,e,i,n){for(var s=e;n;--n){var r=t(s);if(s-=r,Math.abs(r)=Cn&&(n=Cn-1),i=$t*(i-e3*n);var s={x:$r(So[n],i)*e,y:$r(os[n],i)};return t.y<0&&(s.y=-s.y),s.x=s.x*this.a*Gm+this.x0,s.y=s.y*this.a*Zm+this.y0,s}function r3(t){var e={x:(t.x-this.x0)/(this.a*Gm),y:Math.abs(t.y-this.y0)/(this.a*Zm)};if(e.y>=1)e.x/=So[Cn][0],e.y=t.y<0?-k:k;else{var i=Math.floor(e.y*Cn);for(i<0?i=0:i>=Cn&&(i=Cn-1);;)if(os[i][0]>e.y)--i;else if(os[i+1][0]<=e.y)++i;else break;var n=os[i],s=5*(e.y-n[0])/(os[i+1][0]-n[0]);s=i3(function(r){return($r(n,r)-e.y)/t3(n,r)},s,O,100),e.x/=$r(So[i],s),e.y=(5*i+s)*it,t.y<0&&(e.y=-e.y)}return e.x=V(e.x+this.long0),e}var a3=["Robinson","robin"];const o3={init:n3,forward:s3,inverse:r3,names:a3};function l3(){this.name="geocent"}function c3(t){var e=Fm(t,this.es,this.a);return e}function u3(t){var e=Em(t,this.es,this.a,this.b);return e}var h3=["Geocentric","geocentric","geocent","Geocent"];const d3={init:l3,forward:c3,inverse:u3,names:h3};var ut={N_POLE:0,S_POLE:1,EQUIT:2,OBLIQ:3},ts={h:{def:1e5,num:!0},azi:{def:0,num:!0,degrees:!0},tilt:{def:0,num:!0,degrees:!0},long0:{def:0,num:!0},lat0:{def:0,num:!0}};function m3(){if(Object.keys(ts).forEach((function(i){if(typeof this[i]>"u")this[i]=ts[i].def;else{if(ts[i].num&&isNaN(this[i]))throw new Error("Invalid parameter value, must be numeric "+i+" = "+this[i]);ts[i].num&&(this[i]=parseFloat(this[i]))}ts[i].degrees&&(this[i]=this[i]*it)}).bind(this)),Math.abs(Math.abs(this.lat0)-k)1e10)throw new Error("Invalid height");this.p=1+this.pn1,this.rp=1/this.p,this.h1=1/this.pn1,this.pfact=(this.p+1)*this.h1,this.es=0;var t=this.tilt,e=this.azi;this.cg=Math.cos(e),this.sg=Math.sin(e),this.cw=Math.cos(t),this.sw=Math.sin(t)}function f3(t){t.x-=this.long0;var e=Math.sin(t.y),i=Math.cos(t.y),n=Math.cos(t.x),s,r;switch(this.mode){case ut.OBLIQ:r=this.sinph0*e+this.cosph0*i*n;break;case ut.EQUIT:r=i*n;break;case ut.S_POLE:r=-e;break;case ut.N_POLE:r=e;break}switch(r=this.pn1/(this.p-r),s=r*i*Math.sin(t.x),this.mode){case ut.OBLIQ:r*=this.cosph0*e-this.sinph0*i*n;break;case ut.EQUIT:r*=e;break;case ut.N_POLE:r*=-(i*n);break;case ut.S_POLE:r*=i*n;break}var a,o;return a=r*this.cg+s*this.sg,o=1/(a*this.sw*this.h1+this.cw),s=(s*this.cg-r*this.sg)*this.cw*o,r=a*o,t.x=s*this.a,t.y=r*this.a,t}function p3(t){t.x/=this.a,t.y/=this.a;var e={x:t.x,y:t.y},i,n,s;s=1/(this.pn1-t.y*this.sw),i=this.pn1*t.x*s,n=this.pn1*t.y*this.cw*s,t.x=i*this.cg+n*this.sg,t.y=n*this.cg-i*this.sg;var r=Dt(t.x,t.y);if(Math.abs(r)1e10)throw new Error;if(this.radius_g=1+this.radius_g_1,this.C=this.radius_g*this.radius_g-1,this.es!==0){var t=1-this.es,e=1/t;this.radius_p=Math.sqrt(t),this.radius_p2=t,this.radius_p_inv2=e,this.shape="ellipse"}else this.radius_p=1,this.radius_p2=1,this.radius_p_inv2=1,this.shape="sphere";this.title||(this.title="Geostationary Satellite View")}function _3(t){var e=t.x,i=t.y,n,s,r,a;if(e=e-this.long0,this.shape==="ellipse"){i=Math.atan(this.radius_p2*Math.tan(i));var o=this.radius_p/Dt(this.radius_p*Math.cos(i),Math.sin(i));if(s=o*Math.cos(e)*Math.cos(i),r=o*Math.sin(e)*Math.cos(i),a=o*Math.sin(i),(this.radius_g-s)*s-r*r-a*a*this.radius_p_inv2<0)return t.x=Number.NaN,t.y=Number.NaN,t;n=this.radius_g-s,this.flip_axis?(t.x=this.radius_g_1*Math.atan(r/Dt(a,n)),t.y=this.radius_g_1*Math.atan(a/n)):(t.x=this.radius_g_1*Math.atan(r/n),t.y=this.radius_g_1*Math.atan(a/Dt(r,n)))}else this.shape==="sphere"&&(n=Math.cos(i),s=Math.cos(e)*n,r=Math.sin(e)*n,a=Math.sin(i),n=this.radius_g-s,this.flip_axis?(t.x=this.radius_g_1*Math.atan(r/Dt(a,n)),t.y=this.radius_g_1*Math.atan(a/n)):(t.x=this.radius_g_1*Math.atan(r/n),t.y=this.radius_g_1*Math.atan(a/Dt(r,n))));return t.x=t.x*this.a,t.y=t.y*this.a,t}function v3(t){var e=-1,i=0,n=0,s,r,a,o;if(t.x=t.x/this.a,t.y=t.y/this.a,this.shape==="ellipse"){this.flip_axis?(n=Math.tan(t.y/this.radius_g_1),i=Math.tan(t.x/this.radius_g_1)*Dt(1,n)):(i=Math.tan(t.x/this.radius_g_1),n=Math.tan(t.y/this.radius_g_1)*Dt(1,i));var l=n/this.radius_p;if(s=i*i+l*l+e*e,r=2*this.radius_g*e,a=r*r-4*s*this.C,a<0)return t.x=Number.NaN,t.y=Number.NaN,t;o=(-r-Math.sqrt(a))/(2*s),e=this.radius_g+o*e,i*=o,n*=o,t.x=Math.atan2(i,e),t.y=Math.atan(n*Math.cos(t.x)/e),t.y=Math.atan(this.radius_p_inv2*Math.tan(t.y))}else if(this.shape==="sphere"){if(this.flip_axis?(n=Math.tan(t.y/this.radius_g_1),i=Math.tan(t.x/this.radius_g_1)*Math.sqrt(1+n*n)):(i=Math.tan(t.x/this.radius_g_1),n=Math.tan(t.y/this.radius_g_1)*Math.sqrt(1+i*i)),s=i*i+n*n+e*e,r=2*this.radius_g*e,a=r*r-4*s*this.C,a<0)return t.x=Number.NaN,t.y=Number.NaN,t;o=(-r-Math.sqrt(a))/(2*s),e=this.radius_g+o*e,i*=o,n*=o,t.x=Math.atan2(i,e),t.y=Math.atan(n*Math.cos(t.x)/e)}return t.x=t.x+this.long0,t}var x3=["Geostationary Satellite View","Geostationary_Satellite","geos"];const w3={init:b3,forward:_3,inverse:v3,names:x3};function C3(t){t.Proj.projections.add(Nr),t.Proj.projections.add(Fr),t.Proj.projections.add(Rw),t.Proj.projections.add(Zw),t.Proj.projections.add(Bw),t.Proj.projections.add(Yw),t.Proj.projections.add(iC),t.Proj.projections.add(oC),t.Proj.projections.add(dC),t.Proj.projections.add(yC),t.Proj.projections.add(DC),t.Proj.projections.add(XC),t.Proj.projections.add(BC),t.Proj.projections.add($C),t.Proj.projections.add(iN),t.Proj.projections.add(oN),t.Proj.projections.add(dN),t.Proj.projections.add(yN),t.Proj.projections.add(CN),t.Proj.projections.add(TN),t.Proj.projections.add(SN),t.Proj.projections.add(GN),t.Proj.projections.add(VN),t.Proj.projections.add(qN),t.Proj.projections.add(QN),t.Proj.projections.add(o3),t.Proj.projections.add(d3),t.Proj.projections.add(y3),t.Proj.projections.add(w3)}Rt.defaultDatum="WGS84";Rt.Proj=Jt;Rt.WGS84=new Rt.Proj("WGS84");Rt.Point=Kn;Rt.toPoint=Mm;Rt.defs=gt;Rt.nadgrid=kx;Rt.transform=jr;Rt.mgrs=zx;Rt.version="__VERSION__";C3(Rt);let N3=null;function F3(t){N3=t;const e=Object.keys(t.defs),i=e.length;let n,s;for(n=0;n({selectedStyle:"",selectedMatrixSet:0,olMap:null}),watch:{layer:{immediate:!0,async handler(t){var a;this.selectedStyle=t.defaultStyle||((a=t.styles[0])==null?void 0:a.name),this.selectedMatrixSet=0;const e=t.matrixSets[this.selectedMatrixSet],i=await this.endpoint.getOpenLayersTileGrid(this.layer.name,e.identifier);this.olMap?this.olMap.getLayers().pop():this.olMap=new j_({target:this.$refs["map-root"],layers:[new vu({source:new Sv})],view:new Yt({zoom:2,center:[0,0]})});const n=this.layer.resourceLinks[0],s=this.endpoint.getDefaultDimensions(this.layer.name),r=new vu({source:new Bv({layer:this.layer.name,style:this.selectedStyle,matrixSet:e.identifier,format:n.format,url:n.url,requestEncoding:n.encoding,tileGrid:i,projection:e.crs,dimensions:s})});this.olMap.addLayer(r)}}}},M3={class:"d-flex flex-row justify-content-between"},T3=["value"],R3=["value"],I3={ref:"map-root",style:{width:"100%",height:"300px","margin-top":"10px"}};function k3(t,e,i,n,s,r){const a=Me("InfoList");return D(),K("div",null,[C("p",null,Ge(i.layer.title),1),B(a,{info:i.layer},null,8,["info"]),C("div",M3,[C("label",null,[Ee(" Selected style:  "),Ei(C("select",{"onUpdate:modelValue":e[0]||(e[0]=o=>t.selectedStyle=o),class:"form-select d-inline-block w-auto"},[(D(!0),K(ke,null,Tt(i.layer.styles,o=>(D(),K("option",{value:o.name},Ge(o.title||o.name),9,T3))),256))],512),[[Ar,t.selectedStyle]])]),C("label",null,[Ee(" Selected matrix set:  "),Ei(C("select",{"onUpdate:modelValue":e[1]||(e[1]=o=>t.selectedMatrixSet=o),class:"form-select d-inline-block w-auto"},[(D(!0),K(ke,null,Tt(i.layer.matrixSets,(o,l)=>(D(),K("option",{value:l},Ge(o.identifier),9,R3))),256))],512),[[Ar,t.selectedMatrixSet]])])]),C("div",I3,null,512)])}const L3=We(E3,[["render",k3]]),S3={name:"WmtsEndpoint",components:{WmtsLayerInfo:L3,ItemsTree:ma,InfoList:tn},data:()=>({loading:!1,error:null,endpoint:null,url:"https://basemap.at/wmts/1.0.0/WMTSCapabilities.xml",selectedLayer:null}),computed:{loaded(){return this.endpoint&&this.loading===!1&&this.error===null}},methods:{async createEndpoint(){this.error=null,this.loading=!0,this.endpoint=new q1(this.url);try{await this.endpoint.isReady()}catch(t){this.error=t.message}this.loading=!1},handleLayerClick(t,e){this.selectedLayer=this.endpoint.getLayerByName(t.name),e.preventDefault()}}},D3={class:"d-flex flex-row my-4"},P3={key:0},A3={key:1},O3=["title"],G3=["onClick"],Z3={key:1},X3={key:2};function W3(t,e,i,n,s,r){const a=Me("InfoList"),o=Me("ItemsTree"),l=Me("WmtsLayerInfo");return D(),K("div",null,[C("div",D3,[Ei(C("input",{class:"form-control me-3",placeholder:"Enter a WMS service URL here","onUpdate:modelValue":e[0]||(e[0]=c=>t.url=c)},null,512),[[da,t.url]]),C("button",{type:"button",class:"btn btn-primary",onClick:e[1]||(e[1]=c=>r.createEndpoint())}," Analyze ")]),t.loading?(D(),K("div",P3,"Loading...")):De("",!0),r.loaded?(D(),K("div",A3,[B(a,{info:t.endpoint.getServiceInfo()},null,8,["info"]),B(o,{items:t.endpoint.getLayers(),style:{"min-height":"200px"}},{default:Je(({item:c})=>[C("div",{title:c.abstract},[c.name?(D(),K("a",{key:0,href:"",onClick:u=>r.handleLayerClick(c,u),class:"link-light"},Ge(c.title),9,G3)):(D(),K("span",Z3,Ge(c.title),1))],8,O3)]),_:1},8,["items"]),t.selectedLayer?(D(),wt(l,{key:0,layer:t.selectedLayer,endpoint:t.endpoint},null,8,["layer","endpoint"])):De("",!0)])):De("",!0),t.error?(D(),K("div",X3,"Error: "+Ge(t.error),1)):De("",!0)])}const K3=We(S3,[["render",W3]]),V3={name:"App",components:{WmtsEndpoint:K3,OgcApiEndpoint:V1,WfsEndpoint:v1,WmsEndpoint:Yy}},U3={class:"pb-5"},B3=C("h2",{class:"my-4"},"WMS",-1),H3=C("p",null," Enter a WMS service URL below to get some information and a list of layers from it. ",-1),z3=C("h2",{class:"my-4"},"WFS",-1),q3=C("p",null," Enter a WFS service URL below to get some information and a list of feature types from it. ",-1),j3=C("h2",{class:"my-4"},"OGC API",-1),Y3=C("p",null," Enter an OGC API endpoint URL below to get some information and a list of collections from it. ",-1),$3=C("h2",{class:"my-4"},"WMTS",-1),J3=C("p",null," Enter a WMTS endpoint URL below to get some information and a list of layers from it. ",-1);function Q3(t,e,i,n,s,r){const a=Me("WmsEndpoint"),o=Me("WfsEndpoint"),l=Me("OgcApiEndpoint"),c=Me("WmtsEndpoint");return D(),K("div",U3,[B3,H3,B(a),z3,q3,B(o),j3,Y3,B(l),$3,J3,B(c)])}const Wm=We(V3,[["render",Q3]]),eF={name:"MarkdownBlock",props:{text:String},computed:{parsed(){return this.text?Cf(this.text):""}}},tF=["innerHTML"];function iF(t,e,i,n,s,r){return D(),K("div",{innerHTML:r.parsed},null,8,tF)}const Vi=We(eF,[["render",iF]]),nF=0,sF="@camptocamp/ogc-client",rF="project",aF=1,oF={},lF=[{id:232,name:"OgcApiEndpoint",variant:"declaration",kind:128,flags:{},comment:{summary:[{kind:"text",text:"Represents an OGC API endpoint advertising various collections and services."}]},children:[{id:233,name:"constructor",variant:"declaration",kind:512,flags:{},sources:[{fileName:"ogc-api/endpoint.ts",line:42,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/endpoint.ts#L42"}],signatures:[{id:234,name:"new OgcApiEndpoint",variant:"signature",kind:16384,flags:{},comment:{summary:[{kind:"text",text:"Creates a new OGC API endpoint."}]},sources:[{fileName:"ogc-api/endpoint.ts",line:42,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/endpoint.ts#L42"}],parameters:[{id:235,name:"baseUrl",variant:"param",kind:32768,flags:{},comment:{summary:[{kind:"text",text:`Base URL used to query the endpoint. Note that this can point to nested -documents inside the endpoint, such as `},{kind:"code",text:"`/collections`"},{kind:"text",text:", "},{kind:"code",text:"`/collections/items`"},{kind:"text",text:" etc."}]},type:{type:"intrinsic",name:"string"}}],type:{type:"reference",target:232,name:"default",package:"@camptocamp/ogc-client"}}]},{id:244,name:"allCollections",variant:"declaration",kind:262144,flags:{},sources:[{fileName:"ogc-api/endpoint.ts",line:93,character:6,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/endpoint.ts#L93"}],getSignature:{id:245,name:"allCollections",variant:"signature",kind:524288,flags:{},comment:{summary:[{kind:"text",text:"A Promise which resolves to an array of all collection identifiers as strings."}]},sources:[{fileName:"ogc-api/endpoint.ts",line:93,character:6,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/endpoint.ts#L93"}],type:{type:"reference",target:{sourceFileName:"node_modules/typescript/lib/lib.es5.d.ts",qualifiedName:"Promise"},typeArguments:[{type:"array",elementType:{type:"intrinsic",name:"string"}}],name:"Promise",package:"typescript"}}},{id:242,name:"conformanceClasses",variant:"declaration",kind:262144,flags:{},sources:[{fileName:"ogc-api/endpoint.ts",line:87,character:6,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/endpoint.ts#L87"}],getSignature:{id:243,name:"conformanceClasses",variant:"signature",kind:524288,flags:{},comment:{summary:[{kind:"text",text:"A Promise which resolves to an array of conformance classes."}]},sources:[{fileName:"ogc-api/endpoint.ts",line:87,character:6,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/endpoint.ts#L87"}],type:{type:"reference",target:{sourceFileName:"node_modules/typescript/lib/lib.es5.d.ts",qualifiedName:"Promise"},typeArguments:[{type:"array",elementType:{type:"intrinsic",name:"string"}}],name:"Promise",package:"typescript"}}},{id:248,name:"featureCollections",variant:"declaration",kind:262144,flags:{},sources:[{fileName:"ogc-api/endpoint.ts",line:109,character:6,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/endpoint.ts#L109"}],getSignature:{id:249,name:"featureCollections",variant:"signature",kind:524288,flags:{},comment:{summary:[{kind:"text",text:"A Promise which resolves to an array of feature collection identifiers as strings."}]},sources:[{fileName:"ogc-api/endpoint.ts",line:109,character:6,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/endpoint.ts#L109"}],type:{type:"reference",target:{sourceFileName:"node_modules/typescript/lib/lib.es5.d.ts",qualifiedName:"Promise"},typeArguments:[{type:"array",elementType:{type:"intrinsic",name:"string"}}],name:"Promise",package:"typescript"}}},{id:254,name:"hasFeatures",variant:"declaration",kind:262144,flags:{},sources:[{fileName:"ogc-api/endpoint.ts",line:132,character:6,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/endpoint.ts#L132"}],getSignature:{id:255,name:"hasFeatures",variant:"signature",kind:524288,flags:{},comment:{summary:[{kind:"text",text:"A Promise which resolves to a boolean indicating whether the endpoint offer feature collections."}]},sources:[{fileName:"ogc-api/endpoint.ts",line:132,character:6,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/endpoint.ts#L132"}],type:{type:"reference",target:{sourceFileName:"node_modules/typescript/lib/lib.es5.d.ts",qualifiedName:"Promise"},typeArguments:[{type:"intrinsic",name:"boolean"}],name:"Promise",package:"typescript"}}},{id:256,name:"hasRecords",variant:"declaration",kind:262144,flags:{},sources:[{fileName:"ogc-api/endpoint.ts",line:142,character:6,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/endpoint.ts#L142"}],getSignature:{id:257,name:"hasRecords",variant:"signature",kind:524288,flags:{},comment:{summary:[{kind:"text",text:"A Promise which resolves to a boolean indicating whether the endpoint offer record collections."}]},sources:[{fileName:"ogc-api/endpoint.ts",line:142,character:6,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/endpoint.ts#L142"}],type:{type:"reference",target:{sourceFileName:"node_modules/typescript/lib/lib.es5.d.ts",qualifiedName:"Promise"},typeArguments:[{type:"intrinsic",name:"boolean"}],name:"Promise",package:"typescript"}}},{id:252,name:"hasStyles",variant:"declaration",kind:262144,flags:{},sources:[{fileName:"ogc-api/endpoint.ts",line:125,character:6,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/endpoint.ts#L125"}],getSignature:{id:253,name:"hasStyles",variant:"signature",kind:524288,flags:{},comment:{summary:[{kind:"text",text:"A Promise which resolves to a boolean indicating whether the endpoint offer styles."}]},sources:[{fileName:"ogc-api/endpoint.ts",line:125,character:6,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/endpoint.ts#L125"}],type:{type:"reference",target:{sourceFileName:"node_modules/typescript/lib/lib.es5.d.ts",qualifiedName:"Promise"},typeArguments:[{type:"intrinsic",name:"boolean"}],name:"Promise",package:"typescript"}}},{id:250,name:"hasTiles",variant:"declaration",kind:262144,flags:{},sources:[{fileName:"ogc-api/endpoint.ts",line:118,character:6,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/endpoint.ts#L118"}],getSignature:{id:251,name:"hasTiles",variant:"signature",kind:524288,flags:{},comment:{summary:[{kind:"text",text:"A Promise which resolves to a boolean indicating whether the endpoint offer tiles."}]},sources:[{fileName:"ogc-api/endpoint.ts",line:118,character:6,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/endpoint.ts#L118"}],type:{type:"reference",target:{sourceFileName:"node_modules/typescript/lib/lib.es5.d.ts",qualifiedName:"Promise"},typeArguments:[{type:"intrinsic",name:"boolean"}],name:"Promise",package:"typescript"}}},{id:240,name:"info",variant:"declaration",kind:262144,flags:{},sources:[{fileName:"ogc-api/endpoint.ts",line:80,character:6,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/endpoint.ts#L80"}],getSignature:{id:241,name:"info",variant:"signature",kind:524288,flags:{},comment:{summary:[{kind:"text",text:"A Promise which resolves to the endpoint information."}]},sources:[{fileName:"ogc-api/endpoint.ts",line:80,character:6,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/endpoint.ts#L80"}],type:{type:"reference",target:{sourceFileName:"node_modules/typescript/lib/lib.es5.d.ts",qualifiedName:"Promise"},typeArguments:[{type:"reference",target:308,name:"OgcApiEndpointInfo",package:"@camptocamp/ogc-client"}],name:"Promise",package:"typescript"}}},{id:246,name:"recordCollections",variant:"declaration",kind:262144,flags:{},sources:[{fileName:"ogc-api/endpoint.ts",line:100,character:6,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/endpoint.ts#L100"}],getSignature:{id:247,name:"recordCollections",variant:"signature",kind:524288,flags:{},comment:{summary:[{kind:"text",text:"A Promise which resolves to an array of records collection identifiers as strings."}]},sources:[{fileName:"ogc-api/endpoint.ts",line:100,character:6,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/endpoint.ts#L100"}],type:{type:"reference",target:{sourceFileName:"node_modules/typescript/lib/lib.es5.d.ts",qualifiedName:"Promise"},typeArguments:[{type:"array",elementType:{type:"intrinsic",name:"string"}}],name:"Promise",package:"typescript"}}},{id:261,name:"getCollectionInfo",variant:"declaration",kind:2048,flags:{},sources:[{fileName:"ogc-api/endpoint.ts",line:165,character:8,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/endpoint.ts#L165"}],signatures:[{id:262,name:"getCollectionInfo",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:"Returns a promise resolving to a document describing the specified collection."}]},sources:[{fileName:"ogc-api/endpoint.ts",line:165,character:8,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/endpoint.ts#L165"}],parameters:[{id:263,name:"collectionId",variant:"param",kind:32768,flags:{},type:{type:"intrinsic",name:"string"}}],type:{type:"reference",target:{sourceFileName:"node_modules/typescript/lib/lib.es5.d.ts",qualifiedName:"Promise"},typeArguments:[{type:"reference",target:318,name:"OgcApiCollectionInfo",package:"@camptocamp/ogc-client"}],name:"Promise",package:"typescript"}}]},{id:273,name:"getCollectionItem",variant:"declaration",kind:2048,flags:{},sources:[{fileName:"ogc-api/endpoint.ts",line:237,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/endpoint.ts#L237"}],signatures:[{id:274,name:"getCollectionItem",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:"Returns a promise resolving to a specific item from a collection."}]},sources:[{fileName:"ogc-api/endpoint.ts",line:237,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/endpoint.ts#L237"}],parameters:[{id:275,name:"collectionId",variant:"param",kind:32768,flags:{},type:{type:"intrinsic",name:"string"}},{id:276,name:"itemId",variant:"param",kind:32768,flags:{},type:{type:"intrinsic",name:"string"}}],type:{type:"reference",target:{sourceFileName:"node_modules/typescript/lib/lib.es5.d.ts",qualifiedName:"Promise"},typeArguments:[{type:"reference",target:377,name:"OgcApiRecord",package:"@camptocamp/ogc-client"}],name:"Promise",package:"typescript"}}]},{id:264,name:"getCollectionItems",variant:"declaration",kind:2048,flags:{},sources:[{fileName:"ogc-api/endpoint.ts",line:201,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/endpoint.ts#L201"}],signatures:[{id:265,name:"getCollectionItems",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:"Returns a promise resolving to an array of items from a collection with the given query parameters."}]},sources:[{fileName:"ogc-api/endpoint.ts",line:201,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/endpoint.ts#L201"}],parameters:[{id:266,name:"collectionId",variant:"param",kind:32768,flags:{},type:{type:"intrinsic",name:"string"}},{id:267,name:"limit",variant:"param",kind:32768,flags:{},type:{type:"intrinsic",name:"number"},defaultValue:"10"},{id:268,name:"offset",variant:"param",kind:32768,flags:{},type:{type:"intrinsic",name:"number"},defaultValue:"0"},{id:269,name:"skipGeometry",variant:"param",kind:32768,flags:{},type:{type:"intrinsic",name:"boolean"},defaultValue:"null"},{id:270,name:"sortby",variant:"param",kind:32768,flags:{},type:{type:"array",elementType:{type:"intrinsic",name:"string"}},defaultValue:"null"},{id:271,name:"bbox",variant:"param",kind:32768,flags:{},type:{type:"tuple",elements:[{type:"intrinsic",name:"number"},{type:"intrinsic",name:"number"},{type:"intrinsic",name:"number"},{type:"intrinsic",name:"number"}]},defaultValue:"null"},{id:272,name:"properties",variant:"param",kind:32768,flags:{},type:{type:"array",elementType:{type:"intrinsic",name:"string"}},defaultValue:"null"}],type:{type:"reference",target:{sourceFileName:"node_modules/typescript/lib/lib.es5.d.ts",qualifiedName:"Promise"},typeArguments:[{type:"array",elementType:{type:"reference",target:377,name:"OgcApiRecord",package:"@camptocamp/ogc-client"}}],name:"Promise",package:"typescript"}}]},{id:277,name:"getCollectionItemsUrl",variant:"declaration",kind:2048,flags:{},sources:[{fileName:"ogc-api/endpoint.ts",line:266,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/endpoint.ts#L266"}],signatures:[{id:278,name:"getCollectionItemsUrl",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:"Asynchronously retrieves a URL for the items of a specified collection, with optional query parameters."}],blockTags:[{tag:"@returns",content:[{kind:"text",text:"A promise that resolves to the URL as a string or rejects if an error occurs."}]}]},sources:[{fileName:"ogc-api/endpoint.ts",line:266,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/endpoint.ts#L266"}],parameters:[{id:279,name:"collectionId",variant:"param",kind:32768,flags:{},comment:{summary:[{kind:"text",text:"The unique identifier for the collection."}]},type:{type:"intrinsic",name:"string"}},{id:280,name:"options",variant:"param",kind:32768,flags:{},comment:{summary:[{kind:"text",text:`An object containing optional parameters: +northing meters`+t;var d=h/2,m=0,f=0,p,y,_,v,N;return d>0&&(p=1e5/Math.pow(10,d),y=t.substring(a,a+d),m=parseFloat(y)*p,_=t.substring(a+d),f=parseFloat(_)*p),v=m+c,N=f+u,{easting:v,northing:N,zoneLetter:o,zoneNumber:r,accuracy:p}}function ex(t,e){for(var i=Tm.charCodeAt(e-1),n=1e5,s=!1;i!==t.charCodeAt(0);){if(i++,i===_t&&i++,i===It&&i++,i>rs){if(s)throw"Bad character: "+t;i=wn,s=!0}n+=1e5}return n}function tx(t,e){if(t>"V")throw"MGRSPoint given invalid Northing "+t;for(var i=Rm.charCodeAt(e-1),n=0,s=!1;i!==t.charCodeAt(0);){if(i++,i===_t&&i++,i===It&&i++,i>as){if(s)throw"Bad character: "+t;i=wn,s=!0}n+=1e5}return n}function ix(t){var e;switch(t){case"C":e=11e5;break;case"D":e=2e6;break;case"E":e=28e5;break;case"F":e=37e5;break;case"G":e=46e5;break;case"H":e=55e5;break;case"J":e=64e5;break;case"K":e=73e5;break;case"L":e=82e5;break;case"M":e=91e5;break;case"N":e=0;break;case"P":e=8e5;break;case"Q":e=17e5;break;case"R":e=26e5;break;case"S":e=35e5;break;case"T":e=44e5;break;case"U":e=53e5;break;case"V":e=62e5;break;case"W":e=7e6;break;case"X":e=79e5;break;default:e=-1}if(e>=0)return e;throw"Invalid zone letter: "+t}function Kn(t,e,i){if(!(this instanceof Kn))return new Kn(t,e,i);if(Array.isArray(t))this.x=t[0],this.y=t[1],this.z=t[2]||0;else if(typeof t=="object")this.x=t.x,this.y=t.y,this.z=t.z||0;else if(typeof t=="string"&&typeof e>"u"){var n=t.split(",");this.x=parseFloat(n[0],10),this.y=parseFloat(n[1],10),this.z=parseFloat(n[2],10)||0}else this.x=t,this.y=e,this.z=i||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}Kn.fromMGRS=function(t){return new Kn(km(t))};Kn.prototype.toMGRS=function(t){return Im([this.x,this.y],t)};var nx=1,sx=.25,Au=.046875,Ou=.01953125,Gu=.01068115234375,ax=.75,rx=.46875,ox=.013020833333333334,lx=.007120768229166667,cx=.3645833333333333,ux=.005696614583333333,hx=.3076171875;function Dm(t){var e=[];e[0]=nx-t*(sx+t*(Au+t*(Ou+t*Gu))),e[1]=t*(ax-t*(Au+t*(Ou+t*Gu)));var i=t*t;return e[2]=i*(rx-t*(ox+t*lx)),i*=t,e[3]=i*(cx-t*ux),e[4]=i*t*hx,e}function kr(t,e,i,n){return i*=e,e*=e,n[0]*t-i*(n[1]+e*(n[2]+e*(n[3]+e*n[4])))}var dx=20;function Pm(t,e,i){for(var n=1/(1-e),s=t,a=dx;a;--a){var r=Math.sin(s),o=1-e*r*r;if(o=(kr(s,r,Math.cos(s),i)-t)*(o*Math.sqrt(o))*n,s-=o,Math.abs(o)O?Math.tan(i):0,p=Math.pow(f,2),y=Math.pow(p,2);s=1-this.es*Math.pow(o,2),u=u/Math.sqrt(s);var _=kr(i,o,l,this.en);a=this.a*(this.k0*u*(1+h/6*(1-p+d+h/20*(5-18*p+y+14*d-58*p*d+h/42*(61+179*y-y*p-479*p)))))+this.x0,r=this.a*(this.k0*(_-this.ml0+o*n*u/2*(1+h/12*(5-p+9*d+4*m+h/30*(61+y-58*p+270*d-330*p*d+h/56*(1385+543*y-y*p-3111*p))))))+this.y0}else{var c=l*Math.sin(n);if(Math.abs(Math.abs(c)-1)=1){if(c-1>O)return 93;r=0}else r=Math.acos(r);i<0&&(r=-r),r=this.a*this.k0*(r-this.lat0)+this.y0}return t.x=a,t.y=r,t}function px(t){var e,i,n,s,a=(t.x-this.x0)*(1/this.a),r=(t.y-this.y0)*(1/this.a);if(this.es)if(e=this.ml0+r/this.k0,i=Pm(e,this.es,this.en),Math.abs(i)O?Math.tan(i):0,f=this.ep2*Math.pow(d,2),p=Math.pow(f,2),y=Math.pow(m,2),_=Math.pow(y,2);e=1-this.es*Math.pow(h,2);var v=a*Math.sqrt(e)/this.k0,N=Math.pow(v,2);e=e*m,n=i-e*N/(1-this.es)*.5*(1-N/12*(5+3*y-9*f*y+f-4*p-N/30*(61+90*y-252*f*y+45*_+46*f-N/56*(1385+3633*y+4095*_+1574*_*y)))),s=V(this.long0+v*(1-N/6*(1+2*y+f-N/20*(5+28*y+24*_+8*f*y+6*f-N/42*(61+662*y+1320*_+720*_*y))))/d)}else n=k*Ks(r),s=0;else{var o=Math.exp(a/this.k0),l=.5*(o-1/o),c=this.lat0+r/this.k0,u=Math.cos(c);e=Math.sqrt((1-Math.pow(u,2))/(1+Math.pow(l,2))),n=Math.asin(e),r<0&&(n=-n),l===0&&u===0?s=0:s=V(Math.atan2(l,u)+this.long0)}return t.x=s,t.y=n,t}var gx=["Fast_Transverse_Mercator","Fast Transverse Mercator"];const Na={init:mx,forward:fx,inverse:px,names:gx};function Am(t){var e=Math.exp(t);return e=(e-1/e)/2,e}function Dt(t,e){t=Math.abs(t),e=Math.abs(e);var i=Math.max(t,e),n=Math.min(t,e)/(i||1);return i*Math.sqrt(1+Math.pow(n,2))}function yx(t){var e=1+t,i=e-1;return i===0?t:t*Math.log(e)/i}function bx(t){var e=Math.abs(t);return e=yx(e*(1+e/(Dt(1,e)+1))),t<0?-e:e}function Dl(t,e){for(var i=2*Math.cos(2*e),n=t.length-1,s=t[n],a=0,r;--n>=0;)r=-a+i*s+t[n],a=s,s=r;return e+r*Math.sin(2*e)}function _x(t,e){for(var i=2*Math.cos(e),n=t.length-1,s=t[n],a=0,r;--n>=0;)r=-a+i*s+t[n],a=s,s=r;return Math.sin(e)*r}function vx(t){var e=Math.exp(t);return e=(e+1/e)/2,e}function Om(t,e,i){for(var n=Math.sin(e),s=Math.cos(e),a=Am(i),r=vx(i),o=2*s*r,l=-2*n*a,c=t.length-1,u=t[c],h=0,d=0,m=0,f,p;--c>=0;)f=d,p=h,d=u,h=m,u=-f+o*d-l*h+t[c],m=-p+l*d+o*h;return o=n*r,l=s*a,[o*u-l*m,o*m+l*u]}function xx(){if(!this.approx&&(isNaN(this.es)||this.es<=0))throw new Error('Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.');this.approx&&(Na.init.apply(this),this.forward=Na.forward,this.inverse=Na.inverse),this.x0=this.x0!==void 0?this.x0:0,this.y0=this.y0!==void 0?this.y0:0,this.long0=this.long0!==void 0?this.long0:0,this.lat0=this.lat0!==void 0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var t=this.es/(1+Math.sqrt(1-this.es)),e=t/(2-t),i=e;this.cgb[0]=e*(2+e*(-2/3+e*(-2+e*(116/45+e*(26/45+e*(-2854/675)))))),this.cbg[0]=e*(-2+e*(2/3+e*(4/3+e*(-82/45+e*(32/45+e*(4642/4725)))))),i=i*e,this.cgb[1]=i*(7/3+e*(-8/5+e*(-227/45+e*(2704/315+e*(2323/945))))),this.cbg[1]=i*(5/3+e*(-16/15+e*(-13/9+e*(904/315+e*(-1522/945))))),i=i*e,this.cgb[2]=i*(56/15+e*(-136/35+e*(-1262/105+e*(73814/2835)))),this.cbg[2]=i*(-26/15+e*(34/21+e*(8/5+e*(-12686/2835)))),i=i*e,this.cgb[3]=i*(4279/630+e*(-332/35+e*(-399572/14175))),this.cbg[3]=i*(1237/630+e*(-12/5+e*(-24832/14175))),i=i*e,this.cgb[4]=i*(4174/315+e*(-144838/6237)),this.cbg[4]=i*(-734/315+e*(109598/31185)),i=i*e,this.cgb[5]=i*(601676/22275),this.cbg[5]=i*(444337/155925),i=Math.pow(e,2),this.Qn=this.k0/(1+e)*(1+i*(1/4+i*(1/64+i/256))),this.utg[0]=e*(-.5+e*(2/3+e*(-37/96+e*(1/360+e*(81/512+e*(-96199/604800)))))),this.gtu[0]=e*(.5+e*(-2/3+e*(5/16+e*(41/180+e*(-127/288+e*(7891/37800)))))),this.utg[1]=i*(-1/48+e*(-1/15+e*(437/1440+e*(-46/105+e*(1118711/3870720))))),this.gtu[1]=i*(13/48+e*(-3/5+e*(557/1440+e*(281/630+e*(-1983433/1935360))))),i=i*e,this.utg[2]=i*(-17/480+e*(37/840+e*(209/4480+e*(-5569/90720)))),this.gtu[2]=i*(61/240+e*(-103/140+e*(15061/26880+e*(167603/181440)))),i=i*e,this.utg[3]=i*(-4397/161280+e*(11/504+e*(830251/7257600))),this.gtu[3]=i*(49561/161280+e*(-179/168+e*(6601661/7257600))),i=i*e,this.utg[4]=i*(-4583/161280+e*(108847/3991680)),this.gtu[4]=i*(34729/80640+e*(-3418889/1995840)),i=i*e,this.utg[5]=i*(-20648693/638668800),this.gtu[5]=i*(212378941/319334400);var n=Dl(this.cbg,this.lat0);this.Zb=-this.Qn*(n+_x(this.gtu,2*n))}function wx(t){var e=V(t.x-this.long0),i=t.y;i=Dl(this.cbg,i);var n=Math.sin(i),s=Math.cos(i),a=Math.sin(e),r=Math.cos(e);i=Math.atan2(n,r*s),e=Math.atan2(a*s,Dt(n,s*r)),e=bx(Math.tan(e));var o=Om(this.gtu,2*i,2*e);i=i+o[0],e=e+o[1];var l,c;return Math.abs(e)<=2.623395162778?(l=this.a*(this.Qn*e)+this.x0,c=this.a*(this.Qn*i+this.Zb)+this.y0):(l=1/0,c=1/0),t.x=l,t.y=c,t}function Cx(t){var e=(t.x-this.x0)*(1/this.a),i=(t.y-this.y0)*(1/this.a);i=(i-this.Zb)/this.Qn,e=e/this.Qn;var n,s;if(Math.abs(e)<=2.623395162778){var a=Om(this.utg,2*i,2*e);i=i+a[0],e=e+a[1],e=Math.atan(Am(e));var r=Math.sin(i),o=Math.cos(i),l=Math.sin(e),c=Math.cos(e);i=Math.atan2(r*c,Dt(l,c*o)),e=Math.atan2(l,c*o),n=V(e+this.long0),s=Dl(this.cgb,i)}else n=1/0,s=1/0;return t.x=n,t.y=s,t}var Nx=["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc","Transverse_Mercator","Transverse Mercator","Gauss Kruger","Gauss_Kruger","tmerc"];const Fa={init:xx,forward:wx,inverse:Cx,names:Nx};function Fx(t,e){if(t===void 0){if(t=Math.floor((V(e)+Math.PI)*30/Math.PI)+1,t<0)return 0;if(t>60)return 60}return t}var Ex="etmerc";function Mx(){var t=Fx(this.zone,this.long0);if(t===void 0)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(t)-183)*it,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,Fa.init.apply(this),this.forward=Fa.forward,this.inverse=Fa.inverse}var Tx=["Universal Transverse Mercator System","utm"];const Rx={init:Mx,names:Tx,dependsOn:Ex};function Pl(t,e){return Math.pow((1-t)/(1+t),e)}var Ix=20;function kx(){var t=Math.sin(this.lat0),e=Math.cos(this.lat0);e*=e,this.rc=Math.sqrt(1-this.es)/(1-this.es*t*t),this.C=Math.sqrt(1+this.es*e*e/(1-this.es)),this.phic0=Math.asin(t/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+ge)/(Math.pow(Math.tan(.5*this.lat0+ge),this.C)*Pl(this.e*t,this.ratexp))}function Lx(t){var e=t.x,i=t.y;return t.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*i+ge),this.C)*Pl(this.e*Math.sin(i),this.ratexp))-k,t.x=this.C*e,t}function Sx(t){for(var e=1e-14,i=t.x/this.C,n=t.y,s=Math.pow(Math.tan(.5*n+ge)/this.K,1/this.C),a=Ix;a>0&&(n=2*Math.atan(s*Pl(this.e*Math.sin(t.y),-.5*this.e))-k,!(Math.abs(n-t.y)0?this.con=1:this.con=-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),this.k0===1&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=O&&Math.abs(Math.cos(this.lat_ts))>O&&(this.k0=.5*this.cons*ei(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/Vt(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=ei(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-k,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))}function Kx(t){var e=t.x,i=t.y,n=Math.sin(i),s=Math.cos(i),a,r,o,l,c,u,h=V(e-this.long0);return Math.abs(Math.abs(e-this.long0)-Math.PI)<=O&&Math.abs(i+this.lat0)<=O?(t.x=NaN,t.y=NaN,t):this.sphere?(a=2*this.k0/(1+this.sinlat0*n+this.coslat0*s*Math.cos(h)),t.x=this.a*a*s*Math.sin(h)+this.x0,t.y=this.a*a*(this.coslat0*n-this.sinlat0*s*Math.cos(h))+this.y0,t):(r=2*Math.atan(this.ssfn_(i,n,this.e))-k,l=Math.cos(r),o=Math.sin(r),Math.abs(this.coslat0)<=O?(c=Vt(this.e,i*this.con,this.con*n),u=2*this.a*this.k0*c/this.cons,t.x=this.x0+u*Math.sin(e-this.long0),t.y=this.y0-this.con*u*Math.cos(e-this.long0),t):(Math.abs(this.sinlat0)0?e=V(this.long0+Math.atan2(t.x,-1*t.y)):e=V(this.long0+Math.atan2(t.x,t.y)):e=V(this.long0+Math.atan2(t.x*Math.sin(o),r*this.coslat0*Math.cos(o)-t.y*this.sinlat0*Math.sin(o))),t.x=e,t.y=i,t)}else if(Math.abs(this.coslat0)<=O){if(r<=O)return i=this.lat0,e=this.long0,t.x=e,t.y=i,t;t.x*=this.con,t.y*=this.con,n=r*this.cons/(2*this.a*this.k0),i=this.con*Ls(this.e,n),e=this.con*V(this.con*this.long0+Math.atan2(t.x,-1*t.y))}else s=2*Math.atan(r*this.cosX0/(2*this.a*this.k0*this.ms1)),e=this.long0,r<=O?a=this.X0:(a=Math.asin(Math.cos(s)*this.sinX0+t.y*Math.sin(s)*this.cosX0/r),e=V(this.long0+Math.atan2(t.x*Math.sin(s),r*this.cosX0*Math.cos(s)-t.y*this.sinX0*Math.sin(s)))),i=-1*Ls(this.e,Math.tan(.5*(k+a)));return t.x=e,t.y=i,t}var Ux=["stere","Stereographic_South_Pole","Polar Stereographic (variant B)","Polar_Stereographic"];const Bx={init:Wx,forward:Kx,inverse:Vx,names:Ux,ssfn_:Xx};function Hx(){var t=this.lat0;this.lambda0=this.long0;var e=Math.sin(t),i=this.a,n=this.rf,s=1/n,a=2*s-Math.pow(s,2),r=this.e=Math.sqrt(a);this.R=this.k0*i*Math.sqrt(1-a)/(1-a*Math.pow(e,2)),this.alpha=Math.sqrt(1+a/(1-a)*Math.pow(Math.cos(t),4)),this.b0=Math.asin(e/this.alpha);var o=Math.log(Math.tan(Math.PI/4+this.b0/2)),l=Math.log(Math.tan(Math.PI/4+t/2)),c=Math.log((1+r*e)/(1-r*e));this.K=o-this.alpha*l+this.alpha*r/2*c}function zx(t){var e=Math.log(Math.tan(Math.PI/4-t.y/2)),i=this.e/2*Math.log((1+this.e*Math.sin(t.y))/(1-this.e*Math.sin(t.y))),n=-this.alpha*(e+i)+this.K,s=2*(Math.atan(Math.exp(n))-Math.PI/4),a=this.alpha*(t.x-this.lambda0),r=Math.atan(Math.sin(a)/(Math.sin(this.b0)*Math.tan(s)+Math.cos(this.b0)*Math.cos(a))),o=Math.asin(Math.cos(this.b0)*Math.sin(s)-Math.sin(this.b0)*Math.cos(s)*Math.cos(a));return t.y=this.R/2*Math.log((1+Math.sin(o))/(1-Math.sin(o)))+this.y0,t.x=this.R*r+this.x0,t}function qx(t){for(var e=t.x-this.x0,i=t.y-this.y0,n=e/this.R,s=2*(Math.atan(Math.exp(i/this.R))-Math.PI/4),a=Math.asin(Math.cos(this.b0)*Math.sin(s)+Math.sin(this.b0)*Math.cos(s)*Math.cos(n)),r=Math.atan(Math.sin(n)/(Math.cos(this.b0)*Math.cos(n)-Math.sin(this.b0)*Math.tan(s))),o=this.lambda0+r/this.alpha,l=0,c=a,u=-1e3,h=0;Math.abs(c-u)>1e-7;){if(++h>20)return;l=1/this.alpha*(Math.log(Math.tan(Math.PI/4+a/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(c))/2)),u=c,c=2*Math.atan(Math.exp(l))-Math.PI/2}return t.x=o,t.y=c,t}var jx=["somerc"];const Yx={init:Hx,forward:zx,inverse:qx,names:jx};var gn=1e-7;function $x(t){var e=["Hotine_Oblique_Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin"],i=typeof t.PROJECTION=="object"?Object.keys(t.PROJECTION)[0]:t.PROJECTION;return"no_uoff"in t||"no_off"in t||e.indexOf(i)!==-1}function Jx(){var t,e,i,n,s,a,r,o,l,c,u=0,h,d=0,m=0,f=0,p=0,y=0,_=0;this.no_off=$x(this),this.no_rot="no_rot"in this;var v=!1;"alpha"in this&&(v=!0);var N=!1;if("rectified_grid_angle"in this&&(N=!0),v&&(_=this.alpha),N&&(u=this.rectified_grid_angle*it),v||N)d=this.longc;else if(m=this.long1,p=this.lat1,f=this.long2,y=this.lat2,Math.abs(p-y)<=gn||(t=Math.abs(p))<=gn||Math.abs(t-k)<=gn||Math.abs(Math.abs(this.lat0)-k)<=gn||Math.abs(Math.abs(y)-k)<=gn)throw new Error;var w=1-this.es;e=Math.sqrt(w),Math.abs(this.lat0)>O?(o=Math.sin(this.lat0),i=Math.cos(this.lat0),t=1-this.es*o*o,this.B=i*i,this.B=Math.sqrt(1+this.es*this.B*this.B/w),this.A=this.B*this.k0*e/t,n=this.B*e/(i*Math.sqrt(t)),s=n*n-1,s<=0?s=0:(s=Math.sqrt(s),this.lat0<0&&(s=-s)),this.E=s+=n,this.E*=Math.pow(Vt(this.e,this.lat0,o),this.B)):(this.B=1/e,this.A=this.k0,this.E=n=s=1),v||N?(v?(h=Math.asin(Math.sin(_)/n),N||(u=_)):(h=u,_=Math.asin(n*Math.sin(h))),this.lam0=d-Math.asin(.5*(s-1/s)*Math.tan(h))/this.B):(a=Math.pow(Vt(this.e,p,Math.sin(p)),this.B),r=Math.pow(Vt(this.e,y,Math.sin(y)),this.B),s=this.E/a,l=(r-a)/(r+a),c=this.E*this.E,c=(c-r*a)/(c+r*a),t=m-f,t<-Math.pi?f-=Is:t>Math.pi&&(f+=Is),this.lam0=V(.5*(m+f)-Math.atan(c*Math.tan(.5*this.B*(m-f))/l)/this.B),h=Math.atan(2*Math.sin(this.B*V(m-this.lam0))/(s-1/s)),u=_=Math.asin(n*Math.sin(h))),this.singam=Math.sin(h),this.cosgam=Math.cos(h),this.sinrot=Math.sin(u),this.cosrot=Math.cos(u),this.rB=1/this.B,this.ArB=this.A*this.rB,this.BrA=1/this.ArB,this.A*this.B,this.no_off?this.u_0=0:(this.u_0=Math.abs(this.ArB*Math.atan(Math.sqrt(n*n-1)/Math.cos(_))),this.lat0<0&&(this.u_0=-this.u_0)),s=.5*h,this.v_pole_n=this.ArB*Math.log(Math.tan(ge-s)),this.v_pole_s=this.ArB*Math.log(Math.tan(ge+s))}function Qx(t){var e={},i,n,s,a,r,o,l,c;if(t.x=t.x-this.lam0,Math.abs(Math.abs(t.y)-k)>O){if(r=this.E/Math.pow(Vt(this.e,t.y,Math.sin(t.y)),this.B),o=1/r,i=.5*(r-o),n=.5*(r+o),a=Math.sin(this.B*t.x),s=(i*this.singam-a*this.cosgam)/n,Math.abs(Math.abs(s)-1)0?this.v_pole_n:this.v_pole_s,l=this.ArB*t.y;return this.no_rot?(e.x=l,e.y=c):(l-=this.u_0,e.x=c*this.cosrot+l*this.sinrot,e.y=l*this.cosrot-c*this.sinrot),e.x=this.a*e.x+this.x0,e.y=this.a*e.y+this.y0,e}function ew(t){var e,i,n,s,a,r,o,l={};if(t.x=(t.x-this.x0)*(1/this.a),t.y=(t.y-this.y0)*(1/this.a),this.no_rot?(i=t.y,e=t.x):(i=t.x*this.cosrot-t.y*this.sinrot,e=t.y*this.cosrot+t.x*this.sinrot+this.u_0),n=Math.exp(-this.BrA*i),s=.5*(n-1/n),a=.5*(n+1/n),r=Math.sin(this.BrA*e),o=(r*this.cosgam+s*this.singam)/a,Math.abs(Math.abs(o)-1)O?this.ns=Math.log(n/o)/Math.log(s/l):this.ns=e,isNaN(this.ns)&&(this.ns=e),this.f0=n/(this.ns*Math.pow(s,this.ns)),this.rh=this.a*this.f0*Math.pow(c,this.ns),this.title||(this.title="Lambert Conformal Conic")}}function sw(t){var e=t.x,i=t.y;Math.abs(2*Math.abs(i)-Math.PI)<=O&&(i=Ks(i)*(k-2*O));var n=Math.abs(Math.abs(i)-k),s,a;if(n>O)s=Vt(this.e,i,Math.sin(i)),a=this.a*this.f0*Math.pow(s,this.ns);else{if(n=i*this.ns,n<=0)return null;a=0}var r=this.ns*V(e-this.long0);return t.x=this.k0*(a*Math.sin(r))+this.x0,t.y=this.k0*(this.rh-a*Math.cos(r))+this.y0,t}function aw(t){var e,i,n,s,a,r=(t.x-this.x0)/this.k0,o=this.rh-(t.y-this.y0)/this.k0;this.ns>0?(e=Math.sqrt(r*r+o*o),i=1):(e=-Math.sqrt(r*r+o*o),i=-1);var l=0;if(e!==0&&(l=Math.atan2(i*r,i*o)),e!==0||this.ns>0){if(i=1/this.ns,n=Math.pow(e/(this.a*this.f0),i),s=Ls(this.e,n),s===-9999)return null}else s=-k;return a=V(l/this.ns+this.long0),t.x=a,t.y=s,t}var rw=["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_1SP","Lambert_Conformal_Conic_2SP","lcc","Lambert Conic Conformal (1SP)","Lambert Conic Conformal (2SP)"];const ow={init:nw,forward:sw,inverse:aw,names:rw};function lw(){this.a=6377397155e-3,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.7417649320975901-.308341501185665),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq}function cw(t){var e,i,n,s,a,r,o,l=t.x,c=t.y,u=V(l-this.long0);return e=Math.pow((1+this.e*Math.sin(c))/(1-this.e*Math.sin(c)),this.alfa*this.e/2),i=2*(Math.atan(this.k*Math.pow(Math.tan(c/2+this.s45),this.alfa)/e)-this.s45),n=-u*this.alfa,s=Math.asin(Math.cos(this.ad)*Math.sin(i)+Math.sin(this.ad)*Math.cos(i)*Math.cos(n)),a=Math.asin(Math.cos(i)*Math.sin(n)/Math.cos(s)),r=this.n*a,o=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(s/2+this.s45),this.n),t.y=o*Math.cos(r)/1,t.x=o*Math.sin(r)/1,this.czech||(t.y*=-1,t.x*=-1),t}function uw(t){var e,i,n,s,a,r,o,l,c=t.x;t.x=t.y,t.y=c,this.czech||(t.y*=-1,t.x*=-1),r=Math.sqrt(t.x*t.x+t.y*t.y),a=Math.atan2(t.y,t.x),s=a/Math.sin(this.s0),n=2*(Math.atan(Math.pow(this.ro0/r,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),e=Math.asin(Math.cos(this.ad)*Math.sin(n)-Math.sin(this.ad)*Math.cos(n)*Math.cos(s)),i=Math.asin(Math.cos(n)*Math.sin(s)/Math.cos(e)),t.x=this.long0-i/this.alfa,o=e,l=0;var u=0;do t.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(e/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(o))/(1-this.e*Math.sin(o)),this.e/2))-this.s45),Math.abs(o-t.y)<1e-10&&(l=1),o=t.y,u+=1;while(l===0&&u<15);return u>=15?null:t}var hw=["Krovak","krovak"];const dw={init:lw,forward:cw,inverse:uw,names:hw};function bt(t,e,i,n,s){return t*s-e*Math.sin(2*s)+i*Math.sin(4*s)-n*Math.sin(6*s)}function Vs(t){return 1-.25*t*(1+t/16*(3+1.25*t))}function Us(t){return .375*t*(1+.25*t*(1+.46875*t))}function Bs(t){return .05859375*t*t*(1+.75*t)}function Hs(t){return t*t*t*(35/3072)}function Vn(t,e,i){var n=e*i;return t/Math.sqrt(1-n*n)}function Yn(t){return Math.abs(t)1e-7?(i=t*e,(1-t*t)*(e/(1-i*i)-.5/t*Math.log((1-i)/(1+i)))):2*e}var bw=1,_w=2,vw=3,xw=4;function ww(){var t=Math.abs(this.lat0);if(Math.abs(t-k)0){var e;switch(this.qp=Ci(this.e,1),this.mmf=.5/(1-this.es),this.apa=kw(this.es),this.mode){case this.N_POLE:this.dd=1;break;case this.S_POLE:this.dd=1;break;case this.EQUIT:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case this.OBLIQ:this.rq=Math.sqrt(.5*this.qp),e=Math.sin(this.lat0),this.sinb1=Ci(this.e,e)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*e*e)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd;break}}else this.mode===this.OBLIQ&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))}function Cw(t){var e,i,n,s,a,r,o,l,c,u,h=t.x,d=t.y;if(h=V(h-this.long0),this.sphere){if(a=Math.sin(d),u=Math.cos(d),n=Math.cos(h),this.mode===this.OBLIQ||this.mode===this.EQUIT){if(i=this.mode===this.EQUIT?1+u*n:1+this.sinph0*a+this.cosph0*u*n,i<=O)return null;i=Math.sqrt(2/i),e=i*u*Math.sin(h),i*=this.mode===this.EQUIT?a:this.cosph0*a-this.sinph0*u*n}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(n=-n),Math.abs(d+this.lat0)=0?(e=(c=Math.sqrt(r))*s,i=n*(this.mode===this.S_POLE?c:-c)):e=i=0;break}}return t.x=this.a*e+this.x0,t.y=this.a*i+this.y0,t}function Nw(t){t.x-=this.x0,t.y-=this.y0;var e=t.x/this.a,i=t.y/this.a,n,s,a,r,o,l,c;if(this.sphere){var u=0,h,d=0;if(h=Math.sqrt(e*e+i*i),s=h*.5,s>1)return null;switch(s=2*Math.asin(s),(this.mode===this.OBLIQ||this.mode===this.EQUIT)&&(d=Math.sin(s),u=Math.cos(s)),this.mode){case this.EQUIT:s=Math.abs(h)<=O?0:Math.asin(i*d/h),e*=d,i=u*h;break;case this.OBLIQ:s=Math.abs(h)<=O?this.lat0:Math.asin(u*this.sinph0+i*d*this.cosph0/h),e*=d*this.cosph0,i=(u-Math.sin(s)*this.sinph0)*h;break;case this.N_POLE:i=-i,s=k-s;break;case this.S_POLE:s-=k;break}n=i===0&&(this.mode===this.EQUIT||this.mode===this.OBLIQ)?0:Math.atan2(e,i)}else{if(c=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(e/=this.dd,i*=this.dd,l=Math.sqrt(e*e+i*i),l1&&(t=t>1?1:-1),Math.asin(t)}function Pw(){Math.abs(this.lat1+this.lat2)O?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)}function Aw(t){var e=t.x,i=t.y;this.sin_phi=Math.sin(i),this.cos_phi=Math.cos(i);var n=Ci(this.e3,this.sin_phi),s=this.a*Math.sqrt(this.c-this.ns0*n)/this.ns0,a=this.ns0*V(e-this.long0),r=s*Math.sin(a)+this.x0,o=this.rh-s*Math.cos(a)+this.y0;return t.x=r,t.y=o,t}function Ow(t){var e,i,n,s,a,r;return t.x-=this.x0,t.y=this.rh-t.y+this.y0,this.ns0>=0?(e=Math.sqrt(t.x*t.x+t.y*t.y),n=1):(e=-Math.sqrt(t.x*t.x+t.y*t.y),n=-1),s=0,e!==0&&(s=Math.atan2(n*t.x,n*t.y)),n=e*this.ns0/this.a,this.sphere?r=Math.asin((this.c-n*n)/(2*this.ns0)):(i=(this.c-n*n)/this.ns0,r=this.phi1z(this.e3,i)),a=V(s/this.ns0+this.long0),t.x=a,t.y=r,t}function Gw(t,e){var i,n,s,a,r,o=Ii(.5*e);if(t0||Math.abs(r)<=O?(o=this.x0+this.a*a*i*Math.sin(n)/r,l=this.y0+this.a*a*(this.cos_p14*e-this.sin_p14*i*s)/r):(o=this.x0+this.infinity_dist*i*Math.sin(n),l=this.y0+this.infinity_dist*(this.cos_p14*e-this.sin_p14*i*s)),t.x=o,t.y=l,t}function Vw(t){var e,i,n,s,a,r;return t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,t.x/=this.k0,t.y/=this.k0,(e=Math.sqrt(t.x*t.x+t.y*t.y))?(s=Math.atan2(e,this.rc),i=Math.sin(s),n=Math.cos(s),r=Ii(n*this.sin_p14+t.y*i*this.cos_p14/e),a=Math.atan2(t.x*i,e*this.cos_p14*n-t.y*this.sin_p14*i),a=V(this.long0+a)):(r=this.phic0,a=0),t.x=a,t.y=r,t}var Uw=["gnom"];const Bw={init:Ww,forward:Kw,inverse:Vw,names:Uw};function Hw(t,e){var i=1-(1-t*t)/(2*t)*Math.log((1-t)/(1+t));if(Math.abs(Math.abs(e)-i)<1e-6)return e<0?-1*k:k;for(var n=Math.asin(.5*e),s,a,r,o,l=0;l<30;l++)if(a=Math.sin(n),r=Math.cos(n),o=t*a,s=Math.pow(1-o*o,2)/(2*r)*(e/(1-t*t)-a/(1-o*o)+.5/t*Math.log((1-o)/(1+o))),n+=s,Math.abs(s)<=1e-10)return n;return NaN}function zw(){this.sphere||(this.k0=ei(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))}function qw(t){var e=t.x,i=t.y,n,s,a=V(e-this.long0);if(this.sphere)n=this.x0+this.a*a*Math.cos(this.lat_ts),s=this.y0+this.a*Math.sin(i)/Math.cos(this.lat_ts);else{var r=Ci(this.e,Math.sin(i));n=this.x0+this.a*this.k0*a,s=this.y0+this.a*r*.5/this.k0}return t.x=n,t.y=s,t}function jw(t){t.x-=this.x0,t.y-=this.y0;var e,i;return this.sphere?(e=V(this.long0+t.x/this.a/Math.cos(this.lat_ts)),i=Math.asin(t.y/this.a*Math.cos(this.lat_ts))):(i=Hw(this.e,2*t.y*this.k0/this.a),e=V(this.long0+t.x/(this.a*this.k0))),t.x=e,t.y=i,t}var Yw=["cea"];const $w={init:zw,forward:qw,inverse:jw,names:Yw};function Jw(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Equidistant Cylindrical (Plate Carre)",this.rc=Math.cos(this.lat_ts)}function Qw(t){var e=t.x,i=t.y,n=V(e-this.long0),s=Yn(i-this.lat0);return t.x=this.x0+this.a*n*this.rc,t.y=this.y0+this.a*s,t}function eC(t){var e=t.x,i=t.y;return t.x=V(this.long0+(e-this.x0)/(this.a*this.rc)),t.y=Yn(this.lat0+(i-this.y0)/this.a),t}var tC=["Equirectangular","Equidistant_Cylindrical","eqc"];const iC={init:Jw,forward:Qw,inverse:eC,names:tC};var Zu=20;function nC(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=Vs(this.es),this.e1=Us(this.es),this.e2=Bs(this.es),this.e3=Hs(this.es),this.ml0=this.a*bt(this.e0,this.e1,this.e2,this.e3,this.lat0)}function sC(t){var e=t.x,i=t.y,n,s,a,r=V(e-this.long0);if(a=r*Math.sin(i),this.sphere)Math.abs(i)<=O?(n=this.a*r,s=-1*this.a*this.lat0):(n=this.a*Math.sin(a)/Math.tan(i),s=this.a*(Yn(i-this.lat0)+(1-Math.cos(a))/Math.tan(i)));else if(Math.abs(i)<=O)n=this.a*r,s=-1*this.ml0;else{var o=Vn(this.a,this.e,Math.sin(i))/Math.tan(i);n=o*Math.sin(a),s=this.a*bt(this.e0,this.e1,this.e2,this.e3,i)-this.ml0+o*(1-Math.cos(a))}return t.x=n+this.x0,t.y=s+this.y0,t}function aC(t){var e,i,n,s,a,r,o,l,c;if(n=t.x-this.x0,s=t.y-this.y0,this.sphere)if(Math.abs(s+this.a*this.lat0)<=O)e=V(n/this.a+this.long0),i=0;else{r=this.lat0+s/this.a,o=n*n/this.a/this.a+r*r,l=r;var u;for(a=Zu;a;--a)if(u=Math.tan(l),c=-1*(r*(l*u+1)-l-.5*(l*l+o)*u)/((l-r)/u-1),l+=c,Math.abs(c)<=O){i=l;break}e=V(this.long0+Math.asin(n*Math.tan(l)/this.a)/Math.sin(i))}else if(Math.abs(s+this.ml0)<=O)i=0,e=V(this.long0+n/this.a);else{r=(this.ml0+s)/this.a,o=n*n/this.a/this.a+r*r,l=r;var h,d,m,f,p;for(a=Zu;a;--a)if(p=this.e*Math.sin(l),h=Math.sqrt(1-p*p)*Math.tan(l),d=this.a*bt(this.e0,this.e1,this.e2,this.e3,l),m=this.e0-2*this.e1*Math.cos(2*l)+4*this.e2*Math.cos(4*l)-6*this.e3*Math.cos(6*l),f=d/this.a,c=(r*(h*f+1)-f-.5*h*(f*f+o))/(this.es*Math.sin(2*l)*(f*f+o-2*r*f)/(4*h)+(r-f)*(h*m-2/Math.sin(2*l))-m),l-=c,Math.abs(c)<=O){i=l;break}h=Math.sqrt(1-this.es*Math.pow(Math.sin(i),2))*Math.tan(i),e=V(this.long0+Math.asin(n*h/this.a)/Math.sin(i))}return t.x=e,t.y=i,t}var rC=["Polyconic","poly"];const oC={init:nC,forward:sC,inverse:aC,names:rC};function lC(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013}function cC(t){var e,i=t.x,n=t.y,s=n-this.lat0,a=i-this.long0,r=s/fs*1e-5,o=a,l=1,c=0;for(e=1;e<=10;e++)l=l*r,c=c+this.A[e]*l;var u=c,h=o,d=1,m=0,f,p,y=0,_=0;for(e=1;e<=6;e++)f=d*u-m*h,p=m*u+d*h,d=f,m=p,y=y+this.B_re[e]*d-this.B_im[e]*m,_=_+this.B_im[e]*d+this.B_re[e]*m;return t.x=_*this.a+this.x0,t.y=y*this.a+this.y0,t}function uC(t){var e,i=t.x,n=t.y,s=i-this.x0,a=n-this.y0,r=a/this.a,o=s/this.a,l=1,c=0,u,h,d=0,m=0;for(e=1;e<=6;e++)u=l*r-c*o,h=c*r+l*o,l=u,c=h,d=d+this.C_re[e]*l-this.C_im[e]*c,m=m+this.C_im[e]*l+this.C_re[e]*c;for(var f=0;f.999999999999&&(i=.999999999999),e=Math.asin(i);var n=V(this.long0+t.x/(.900316316158*this.a*Math.cos(e)));n<-Math.PI&&(n=-Math.PI),n>Math.PI&&(n=Math.PI),i=(2*e+Math.sin(2*e))/Math.PI,Math.abs(i)>1&&(i=1);var s=Math.asin(i);return t.x=n,t.y=s,t}var MC=["Mollweide","moll"];const TC={init:NC,forward:FC,inverse:EC,names:MC};function RC(){Math.abs(this.lat1+this.lat2)=0?(i=Math.sqrt(t.x*t.x+t.y*t.y),e=1):(i=-Math.sqrt(t.x*t.x+t.y*t.y),e=-1);var a=0;if(i!==0&&(a=Math.atan2(e*t.x,e*t.y)),this.sphere)return s=V(this.long0+a/this.ns),n=Yn(this.g-i/this.a),t.x=s,t.y=n,t;var r=this.g-i/this.a;return n=Ya(r,this.e0,this.e1,this.e2,this.e3),s=V(this.long0+a/this.ns),t.x=s,t.y=n,t}var LC=["Equidistant_Conic","eqdc"];const SC={init:RC,forward:IC,inverse:kC,names:LC};function DC(){this.R=this.a}function PC(t){var e=t.x,i=t.y,n=V(e-this.long0),s,a;Math.abs(i)<=O&&(s=this.x0+this.R*n,a=this.y0);var r=Ii(2*Math.abs(i/Math.PI));(Math.abs(n)<=O||Math.abs(Math.abs(i)-k)<=O)&&(s=this.x0,i>=0?a=this.y0+Math.PI*this.R*Math.tan(.5*r):a=this.y0+Math.PI*this.R*-Math.tan(.5*r));var o=.5*Math.abs(Math.PI/n-n/Math.PI),l=o*o,c=Math.sin(r),u=Math.cos(r),h=u/(c+u-1),d=h*h,m=h*(2/c-1),f=m*m,p=Math.PI*this.R*(o*(h-f)+Math.sqrt(l*(h-f)*(h-f)-(f+l)*(d-f)))/(f+l);n<0&&(p=-p),s=this.x0+p;var y=l+h;return p=Math.PI*this.R*(m*y-o*Math.sqrt((f+l)*(l+1)-y*y))/(f+l),i>=0?a=this.y0+p:a=this.y0-p,t.x=s,t.y=a,t}function AC(t){var e,i,n,s,a,r,o,l,c,u,h,d,m;return t.x-=this.x0,t.y-=this.y0,h=Math.PI*this.R,n=t.x/h,s=t.y/h,a=n*n+s*s,r=-Math.abs(s)*(1+a),o=r-2*s*s+n*n,l=-2*r+1+2*s*s+a*a,m=s*s/l+(2*o*o*o/l/l/l-9*r*o/l/l)/27,c=(r-o*o/3/l)/l,u=2*Math.sqrt(-c/3),h=3*m/c/u,Math.abs(h)>1&&(h>=0?h=1:h=-1),d=Math.acos(h)/3,t.y>=0?i=(-u*Math.cos(d+Math.PI/3)-o/3/l)*Math.PI:i=-(-u*Math.cos(d+Math.PI/3)-o/3/l)*Math.PI,Math.abs(n)2*k*this.a?void 0:(i=e/this.a,n=Math.sin(i),s=Math.cos(i),a=this.long0,Math.abs(e)<=O?r=this.lat0:(r=Ii(s*this.sin_p12+t.y*n*this.cos_p12/e),o=Math.abs(this.lat0)-k,Math.abs(o)<=O?this.lat0>=0?a=V(this.long0+Math.atan2(t.x,-t.y)):a=V(this.long0-Math.atan2(-t.x,t.y)):a=V(this.long0+Math.atan2(t.x*n,e*this.cos_p12*s-t.y*this.sin_p12*n))),t.x=a,t.y=r,t)):(l=Vs(this.es),c=Us(this.es),u=Bs(this.es),h=Hs(this.es),Math.abs(this.sin_p12-1)<=O?(d=this.a*bt(l,c,u,h,k),e=Math.sqrt(t.x*t.x+t.y*t.y),m=d-e,r=Ya(m/this.a,l,c,u,h),a=V(this.long0+Math.atan2(t.x,-1*t.y)),t.x=a,t.y=r,t):Math.abs(this.sin_p12+1)<=O?(d=this.a*bt(l,c,u,h,k),e=Math.sqrt(t.x*t.x+t.y*t.y),m=e-d,r=Ya(m/this.a,l,c,u,h),a=V(this.long0+Math.atan2(t.x,t.y)),t.x=a,t.y=r,t):(e=Math.sqrt(t.x*t.x+t.y*t.y),y=Math.atan2(t.x,t.y),f=Vn(this.a,this.e,this.sin_p12),_=Math.cos(y),v=this.e*this.cos_p12*_,N=-v*v/(1-this.es),w=3*this.es*(1-N)*this.sin_p12*this.cos_p12*_/(1-this.es),E=e/f,L=E-N*(1+N)*Math.pow(E,3)/6-w*(1+3*N)*Math.pow(E,4)/24,Y=1-N*L*L/2-E*L*L*L/6,p=Math.asin(this.sin_p12*Math.cos(L)+this.cos_p12*Math.sin(L)*_),a=V(this.long0+Math.asin(Math.sin(y)*Math.sin(L)/Math.cos(p))),q=Math.sin(p),r=Math.atan2((q-this.es*Y*this.sin_p12)*Math.tan(p),q*(1-this.es)),t.x=a,t.y=r,t))}var KC=["Azimuthal_Equidistant","aeqd"];const VC={init:ZC,forward:XC,inverse:WC,names:KC};function UC(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)}function BC(t){var e,i,n,s,a,r,o,l,c=t.x,u=t.y;return n=V(c-this.long0),e=Math.sin(u),i=Math.cos(u),s=Math.cos(n),r=this.sin_p14*e+this.cos_p14*i*s,a=1,(r>0||Math.abs(r)<=O)&&(o=this.a*a*i*Math.sin(n),l=this.y0+this.a*a*(this.cos_p14*e-this.sin_p14*i*s)),t.x=o,t.y=l,t}function HC(t){var e,i,n,s,a,r,o;return t.x-=this.x0,t.y-=this.y0,e=Math.sqrt(t.x*t.x+t.y*t.y),i=Ii(e/this.a),n=Math.sin(i),s=Math.cos(i),r=this.long0,Math.abs(e)<=O?(o=this.lat0,t.x=r,t.y=o,t):(o=Ii(s*this.sin_p14+t.y*n*this.cos_p14/e),a=Math.abs(this.lat0)-k,Math.abs(a)<=O?(this.lat0>=0?r=V(this.long0+Math.atan2(t.x,-t.y)):r=V(this.long0-Math.atan2(-t.x,t.y)),t.x=r,t.y=o,t):(r=V(this.long0+Math.atan2(t.x*n,e*this.cos_p14*s-t.y*this.sin_p14*n)),t.x=r,t.y=o,t))}var zC=["ortho"];const qC={init:UC,forward:BC,inverse:HC,names:zC};var Ae={FRONT:1,RIGHT:2,BACK:3,LEFT:4,TOP:5,BOTTOM:6},ye={AREA_0:1,AREA_1:2,AREA_2:3,AREA_3:4};function jC(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Quadrilateralized Spherical Cube",this.lat0>=k-ge/2?this.face=Ae.TOP:this.lat0<=-(k-ge/2)?this.face=Ae.BOTTOM:Math.abs(this.long0)<=ge?this.face=Ae.FRONT:Math.abs(this.long0)<=k+ge?this.face=this.long0>0?Ae.RIGHT:Ae.LEFT:this.face=Ae.BACK,this.es!==0&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)}function YC(t){var e={x:0,y:0},i,n,s,a,r,o,l={value:0};if(t.x-=this.long0,this.es!==0?i=Math.atan(this.one_minus_f_squared*Math.tan(t.y)):i=t.y,n=t.x,this.face===Ae.TOP)a=k-i,n>=ge&&n<=k+ge?(l.value=ye.AREA_0,s=n-k):n>k+ge||n<=-(k+ge)?(l.value=ye.AREA_1,s=n>0?n-Ue:n+Ue):n>-(k+ge)&&n<=-ge?(l.value=ye.AREA_2,s=n+k):(l.value=ye.AREA_3,s=n);else if(this.face===Ae.BOTTOM)a=k+i,n>=ge&&n<=k+ge?(l.value=ye.AREA_0,s=-n+k):n=-ge?(l.value=ye.AREA_1,s=-n):n<-ge&&n>=-(k+ge)?(l.value=ye.AREA_2,s=-n-k):(l.value=ye.AREA_3,s=n>0?-n+Ue:-n-Ue);else{var c,u,h,d,m,f,p;this.face===Ae.RIGHT?n=Pn(n,+k):this.face===Ae.BACK?n=Pn(n,+Ue):this.face===Ae.LEFT&&(n=Pn(n,-k)),d=Math.sin(i),m=Math.cos(i),f=Math.sin(n),p=Math.cos(n),c=m*p,u=m*f,h=d,this.face===Ae.FRONT?(a=Math.acos(c),s=ma(a,h,u,l)):this.face===Ae.RIGHT?(a=Math.acos(u),s=ma(a,h,-c,l)):this.face===Ae.BACK?(a=Math.acos(-c),s=ma(a,h,-u,l)):this.face===Ae.LEFT?(a=Math.acos(-u),s=ma(a,h,c,l)):(a=s=0,l.value=ye.AREA_0)}return o=Math.atan(12/Ue*(s+Math.acos(Math.sin(s)*Math.cos(ge))-k)),r=Math.sqrt((1-Math.cos(a))/(Math.cos(o)*Math.cos(o))/(1-Math.cos(Math.atan(1/Math.cos(s))))),l.value===ye.AREA_1?o+=k:l.value===ye.AREA_2?o+=Ue:l.value===ye.AREA_3&&(o+=1.5*Ue),e.x=r*Math.cos(o),e.y=r*Math.sin(o),e.x=e.x*this.a+this.x0,e.y=e.y*this.a+this.y0,t.x=e.x,t.y=e.y,t}function $C(t){var e={lam:0,phi:0},i,n,s,a,r,o,l,c,u,h={value:0};if(t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,n=Math.atan(Math.sqrt(t.x*t.x+t.y*t.y)),i=Math.atan2(t.y,t.x),t.x>=0&&t.x>=Math.abs(t.y)?h.value=ye.AREA_0:t.y>=0&&t.y>=Math.abs(t.x)?(h.value=ye.AREA_1,i-=k):t.x<0&&-t.x>=Math.abs(t.y)?(h.value=ye.AREA_2,i=i<0?i+Ue:i-Ue):(h.value=ye.AREA_3,i+=k),u=Ue/12*Math.tan(i),r=Math.sin(u)/(Math.cos(u)-1/Math.sqrt(2)),o=Math.atan(r),s=Math.cos(i),a=Math.tan(n),l=1-s*s*a*a*(1-Math.cos(Math.atan(1/Math.cos(o)))),l<-1?l=-1:l>1&&(l=1),this.face===Ae.TOP)c=Math.acos(l),e.phi=k-c,h.value===ye.AREA_0?e.lam=o+k:h.value===ye.AREA_1?e.lam=o<0?o+Ue:o-Ue:h.value===ye.AREA_2?e.lam=o-k:e.lam=o;else if(this.face===Ae.BOTTOM)c=Math.acos(l),e.phi=c-k,h.value===ye.AREA_0?e.lam=-o+k:h.value===ye.AREA_1?e.lam=-o:h.value===ye.AREA_2?e.lam=-o-k:e.lam=o<0?-o-Ue:-o+Ue;else{var d,m,f;d=l,u=d*d,u>=1?f=0:f=Math.sqrt(1-u)*Math.sin(o),u+=f*f,u>=1?m=0:m=Math.sqrt(1-u),h.value===ye.AREA_1?(u=m,m=-f,f=u):h.value===ye.AREA_2?(m=-m,f=-f):h.value===ye.AREA_3&&(u=m,m=f,f=-u),this.face===Ae.RIGHT?(u=d,d=-m,m=u):this.face===Ae.BACK?(d=-d,m=-m):this.face===Ae.LEFT&&(u=d,d=m,m=-u),e.phi=Math.acos(-f)-k,e.lam=Math.atan2(m,d),this.face===Ae.RIGHT?e.lam=Pn(e.lam,-k):this.face===Ae.BACK?e.lam=Pn(e.lam,-Ue):this.face===Ae.LEFT&&(e.lam=Pn(e.lam,+k))}if(this.es!==0){var p,y,_;p=e.phi<0?1:0,y=Math.tan(e.phi),_=this.b/Math.sqrt(y*y+this.one_minus_f_squared),e.phi=Math.atan(Math.sqrt(this.a*this.a-_*_)/(this.one_minus_f*_)),p&&(e.phi=-e.phi)}return e.lam+=this.long0,t.x=e.lam,t.y=e.phi,t}function ma(t,e,i,n){var s;return tge&&s<=k+ge?(n.value=ye.AREA_1,s-=k):s>k+ge||s<=-(k+ge)?(n.value=ye.AREA_2,s=s>=0?s-Ue:s+Ue):(n.value=ye.AREA_3,s+=k)),s}function Pn(t,e){var i=t+e;return i<-Ue?i+=Is:i>+Ue&&(i-=Is),i}var JC=["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"];const QC={init:jC,forward:YC,inverse:$C,names:JC};var So=[[1,22199e-21,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-986701e-12],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,18736e-12],[.96,-.00305085,-900761e-10,164917e-11],[.9427,-.00382792,-653386e-10,-26154e-10],[.9216,-.00467746,-10457e-8,481243e-11],[.8962,-.00536223,-323831e-10,-543432e-11],[.8679,-.00609363,-113898e-9,332484e-11],[.835,-.00698325,-640253e-10,934959e-12],[.7986,-.00755338,-500009e-10,935324e-12],[.7597,-.00798324,-35971e-9,-227626e-11],[.7186,-.00851367,-701149e-10,-86303e-10],[.6732,-.00986209,-199569e-9,191974e-10],[.6213,-.010418,883923e-10,624051e-11],[.5722,-.00906601,182e-6,624051e-11],[.5322,-.00677797,275608e-9,624051e-11]],os=[[-520417e-23,.0124,121431e-23,-845284e-16],[.062,.0124,-126793e-14,422642e-15],[.124,.0124,507171e-14,-160604e-14],[.186,.0123999,-190189e-13,600152e-14],[.248,.0124002,710039e-13,-224e-10],[.31,.0123992,-264997e-12,835986e-13],[.372,.0124029,988983e-12,-311994e-12],[.434,.0123893,-369093e-11,-435621e-12],[.4958,.0123198,-102252e-10,-345523e-12],[.5571,.0121916,-154081e-10,-582288e-12],[.6176,.0119938,-241424e-10,-525327e-12],[.6769,.011713,-320223e-10,-516405e-12],[.7346,.0113541,-397684e-10,-609052e-12],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-140374e-14],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],Gm=.8487,Zm=1.3523,Xm=$t/5,eN=1/Xm,Cn=18,$a=function(t,e){return t[0]+e*(t[1]+e*(t[2]+e*t[3]))},tN=function(t,e){return t[1]+e*(2*t[2]+e*3*t[3])};function iN(t,e,i,n){for(var s=e;n;--n){var a=t(s);if(s-=a,Math.abs(a)=Cn&&(n=Cn-1),i=$t*(i-eN*n);var s={x:$a(So[n],i)*e,y:$a(os[n],i)};return t.y<0&&(s.y=-s.y),s.x=s.x*this.a*Gm+this.x0,s.y=s.y*this.a*Zm+this.y0,s}function aN(t){var e={x:(t.x-this.x0)/(this.a*Gm),y:Math.abs(t.y-this.y0)/(this.a*Zm)};if(e.y>=1)e.x/=So[Cn][0],e.y=t.y<0?-k:k;else{var i=Math.floor(e.y*Cn);for(i<0?i=0:i>=Cn&&(i=Cn-1);;)if(os[i][0]>e.y)--i;else if(os[i+1][0]<=e.y)++i;else break;var n=os[i],s=5*(e.y-n[0])/(os[i+1][0]-n[0]);s=iN(function(a){return($a(n,a)-e.y)/tN(n,a)},s,O,100),e.x/=$a(So[i],s),e.y=(5*i+s)*it,t.y<0&&(e.y=-e.y)}return e.x=V(e.x+this.long0),e}var rN=["Robinson","robin"];const oN={init:nN,forward:sN,inverse:aN,names:rN};function lN(){this.name="geocent"}function cN(t){var e=Fm(t,this.es,this.a);return e}function uN(t){var e=Em(t,this.es,this.a,this.b);return e}var hN=["Geocentric","geocentric","geocent","Geocent"];const dN={init:lN,forward:cN,inverse:uN,names:hN};var ut={N_POLE:0,S_POLE:1,EQUIT:2,OBLIQ:3},ts={h:{def:1e5,num:!0},azi:{def:0,num:!0,degrees:!0},tilt:{def:0,num:!0,degrees:!0},long0:{def:0,num:!0},lat0:{def:0,num:!0}};function mN(){if(Object.keys(ts).forEach((function(i){if(typeof this[i]>"u")this[i]=ts[i].def;else{if(ts[i].num&&isNaN(this[i]))throw new Error("Invalid parameter value, must be numeric "+i+" = "+this[i]);ts[i].num&&(this[i]=parseFloat(this[i]))}ts[i].degrees&&(this[i]=this[i]*it)}).bind(this)),Math.abs(Math.abs(this.lat0)-k)1e10)throw new Error("Invalid height");this.p=1+this.pn1,this.rp=1/this.p,this.h1=1/this.pn1,this.pfact=(this.p+1)*this.h1,this.es=0;var t=this.tilt,e=this.azi;this.cg=Math.cos(e),this.sg=Math.sin(e),this.cw=Math.cos(t),this.sw=Math.sin(t)}function fN(t){t.x-=this.long0;var e=Math.sin(t.y),i=Math.cos(t.y),n=Math.cos(t.x),s,a;switch(this.mode){case ut.OBLIQ:a=this.sinph0*e+this.cosph0*i*n;break;case ut.EQUIT:a=i*n;break;case ut.S_POLE:a=-e;break;case ut.N_POLE:a=e;break}switch(a=this.pn1/(this.p-a),s=a*i*Math.sin(t.x),this.mode){case ut.OBLIQ:a*=this.cosph0*e-this.sinph0*i*n;break;case ut.EQUIT:a*=e;break;case ut.N_POLE:a*=-(i*n);break;case ut.S_POLE:a*=i*n;break}var r,o;return r=a*this.cg+s*this.sg,o=1/(r*this.sw*this.h1+this.cw),s=(s*this.cg-a*this.sg)*this.cw*o,a=r*o,t.x=s*this.a,t.y=a*this.a,t}function pN(t){t.x/=this.a,t.y/=this.a;var e={x:t.x,y:t.y},i,n,s;s=1/(this.pn1-t.y*this.sw),i=this.pn1*t.x*s,n=this.pn1*t.y*this.cw*s,t.x=i*this.cg+n*this.sg,t.y=n*this.cg-i*this.sg;var a=Dt(t.x,t.y);if(Math.abs(a)1e10)throw new Error;if(this.radius_g=1+this.radius_g_1,this.C=this.radius_g*this.radius_g-1,this.es!==0){var t=1-this.es,e=1/t;this.radius_p=Math.sqrt(t),this.radius_p2=t,this.radius_p_inv2=e,this.shape="ellipse"}else this.radius_p=1,this.radius_p2=1,this.radius_p_inv2=1,this.shape="sphere";this.title||(this.title="Geostationary Satellite View")}function _N(t){var e=t.x,i=t.y,n,s,a,r;if(e=e-this.long0,this.shape==="ellipse"){i=Math.atan(this.radius_p2*Math.tan(i));var o=this.radius_p/Dt(this.radius_p*Math.cos(i),Math.sin(i));if(s=o*Math.cos(e)*Math.cos(i),a=o*Math.sin(e)*Math.cos(i),r=o*Math.sin(i),(this.radius_g-s)*s-a*a-r*r*this.radius_p_inv2<0)return t.x=Number.NaN,t.y=Number.NaN,t;n=this.radius_g-s,this.flip_axis?(t.x=this.radius_g_1*Math.atan(a/Dt(r,n)),t.y=this.radius_g_1*Math.atan(r/n)):(t.x=this.radius_g_1*Math.atan(a/n),t.y=this.radius_g_1*Math.atan(r/Dt(a,n)))}else this.shape==="sphere"&&(n=Math.cos(i),s=Math.cos(e)*n,a=Math.sin(e)*n,r=Math.sin(i),n=this.radius_g-s,this.flip_axis?(t.x=this.radius_g_1*Math.atan(a/Dt(r,n)),t.y=this.radius_g_1*Math.atan(r/n)):(t.x=this.radius_g_1*Math.atan(a/n),t.y=this.radius_g_1*Math.atan(r/Dt(a,n))));return t.x=t.x*this.a,t.y=t.y*this.a,t}function vN(t){var e=-1,i=0,n=0,s,a,r,o;if(t.x=t.x/this.a,t.y=t.y/this.a,this.shape==="ellipse"){this.flip_axis?(n=Math.tan(t.y/this.radius_g_1),i=Math.tan(t.x/this.radius_g_1)*Dt(1,n)):(i=Math.tan(t.x/this.radius_g_1),n=Math.tan(t.y/this.radius_g_1)*Dt(1,i));var l=n/this.radius_p;if(s=i*i+l*l+e*e,a=2*this.radius_g*e,r=a*a-4*s*this.C,r<0)return t.x=Number.NaN,t.y=Number.NaN,t;o=(-a-Math.sqrt(r))/(2*s),e=this.radius_g+o*e,i*=o,n*=o,t.x=Math.atan2(i,e),t.y=Math.atan(n*Math.cos(t.x)/e),t.y=Math.atan(this.radius_p_inv2*Math.tan(t.y))}else if(this.shape==="sphere"){if(this.flip_axis?(n=Math.tan(t.y/this.radius_g_1),i=Math.tan(t.x/this.radius_g_1)*Math.sqrt(1+n*n)):(i=Math.tan(t.x/this.radius_g_1),n=Math.tan(t.y/this.radius_g_1)*Math.sqrt(1+i*i)),s=i*i+n*n+e*e,a=2*this.radius_g*e,r=a*a-4*s*this.C,r<0)return t.x=Number.NaN,t.y=Number.NaN,t;o=(-a-Math.sqrt(r))/(2*s),e=this.radius_g+o*e,i*=o,n*=o,t.x=Math.atan2(i,e),t.y=Math.atan(n*Math.cos(t.x)/e)}return t.x=t.x+this.long0,t}var xN=["Geostationary Satellite View","Geostationary_Satellite","geos"];const wN={init:bN,forward:_N,inverse:vN,names:xN};function CN(t){t.Proj.projections.add(Na),t.Proj.projections.add(Fa),t.Proj.projections.add(Rx),t.Proj.projections.add(Zx),t.Proj.projections.add(Bx),t.Proj.projections.add(Yx),t.Proj.projections.add(iw),t.Proj.projections.add(ow),t.Proj.projections.add(dw),t.Proj.projections.add(yw),t.Proj.projections.add(Dw),t.Proj.projections.add(Xw),t.Proj.projections.add(Bw),t.Proj.projections.add($w),t.Proj.projections.add(iC),t.Proj.projections.add(oC),t.Proj.projections.add(dC),t.Proj.projections.add(yC),t.Proj.projections.add(CC),t.Proj.projections.add(TC),t.Proj.projections.add(SC),t.Proj.projections.add(GC),t.Proj.projections.add(VC),t.Proj.projections.add(qC),t.Proj.projections.add(QC),t.Proj.projections.add(oN),t.Proj.projections.add(dN),t.Proj.projections.add(yN),t.Proj.projections.add(wN)}Rt.defaultDatum="WGS84";Rt.Proj=Jt;Rt.WGS84=new Rt.Proj("WGS84");Rt.Point=Kn;Rt.toPoint=Mm;Rt.defs=gt;Rt.nadgrid=k3;Rt.transform=ja;Rt.mgrs=z3;Rt.version="__VERSION__";CN(Rt);let NN=null;function FN(t){NN=t;const e=Object.keys(t.defs),i=e.length;let n,s;for(n=0;n({selectedStyle:"",selectedMatrixSet:0,olMap:null}),watch:{layer:{immediate:!0,async handler(t){var r;this.selectedStyle=t.defaultStyle||((r=t.styles[0])==null?void 0:r.name),this.selectedMatrixSet=0;const e=t.matrixSets[this.selectedMatrixSet],i=await this.endpoint.getOpenLayersTileGrid(this.layer.name,e.identifier);this.olMap?this.olMap.getLayers().pop():this.olMap=new j_({target:this.$refs["map-root"],layers:[new vu({source:new Sv})],view:new Yt({zoom:2,center:[0,0]})});const n=this.layer.resourceLinks[0],s=this.endpoint.getDefaultDimensions(this.layer.name),a=new vu({source:new Bv({layer:this.layer.name,style:this.selectedStyle,matrixSet:e.identifier,format:n.format,url:n.url,requestEncoding:n.encoding,tileGrid:i,projection:e.crs,dimensions:s})});this.olMap.addLayer(a)}}}},MN={class:"d-flex flex-row justify-content-between"},TN=["value"],RN=["value"],IN={ref:"map-root",style:{width:"100%",height:"300px","margin-top":"10px"}};function kN(t,e,i,n,s,a){const r=Me("InfoList");return D(),K("div",null,[C("p",null,Ge(i.layer.title),1),B(r,{info:i.layer},null,8,["info"]),C("div",MN,[C("label",null,[Ee(" Selected style:  "),Ei(C("select",{"onUpdate:modelValue":e[0]||(e[0]=o=>t.selectedStyle=o),class:"form-select d-inline-block w-auto"},[(D(!0),K(ke,null,Tt(i.layer.styles,o=>(D(),K("option",{value:o.name},Ge(o.title||o.name),9,TN))),256))],512),[[Aa,t.selectedStyle]])]),C("label",null,[Ee(" Selected matrix set:  "),Ei(C("select",{"onUpdate:modelValue":e[1]||(e[1]=o=>t.selectedMatrixSet=o),class:"form-select d-inline-block w-auto"},[(D(!0),K(ke,null,Tt(i.layer.matrixSets,(o,l)=>(D(),K("option",{value:l},Ge(o.identifier),9,RN))),256))],512),[[Aa,t.selectedMatrixSet]])])]),C("div",IN,null,512)])}const LN=We(EN,[["render",kN]]),SN={name:"WmtsEndpoint",components:{WmtsLayerInfo:LN,ItemsTree:mr,InfoList:tn},data:()=>({loading:!1,error:null,endpoint:null,url:"https://basemap.at/wmts/1.0.0/WMTSCapabilities.xml",selectedLayer:null}),computed:{loaded(){return this.endpoint&&this.loading===!1&&this.error===null}},methods:{async createEndpoint(){this.error=null,this.loading=!0,this.endpoint=new q1(this.url);try{await this.endpoint.isReady()}catch(t){this.error=t.message}this.loading=!1},handleLayerClick(t,e){this.selectedLayer=this.endpoint.getLayerByName(t.name),e.preventDefault()}}},DN={class:"d-flex flex-row my-4"},PN={key:0},AN={key:1},ON=["title"],GN=["onClick"],ZN={key:1},XN={key:2};function WN(t,e,i,n,s,a){const r=Me("InfoList"),o=Me("ItemsTree"),l=Me("WmtsLayerInfo");return D(),K("div",null,[C("div",DN,[Ei(C("input",{class:"form-control me-3",placeholder:"Enter a WMS service URL here","onUpdate:modelValue":e[0]||(e[0]=c=>t.url=c)},null,512),[[dr,t.url]]),C("button",{type:"button",class:"btn btn-primary",onClick:e[1]||(e[1]=c=>a.createEndpoint())}," Analyze ")]),t.loading?(D(),K("div",PN,"Loading...")):De("",!0),a.loaded?(D(),K("div",AN,[B(r,{info:t.endpoint.getServiceInfo()},null,8,["info"]),B(o,{items:t.endpoint.getLayers(),style:{"min-height":"200px"}},{default:Je(({item:c})=>[C("div",{title:c.abstract},[c.name?(D(),K("a",{key:0,href:"",onClick:u=>a.handleLayerClick(c,u),class:"link-light"},Ge(c.title),9,GN)):(D(),K("span",ZN,Ge(c.title),1))],8,ON)]),_:1},8,["items"]),t.selectedLayer?(D(),wt(l,{key:0,layer:t.selectedLayer,endpoint:t.endpoint},null,8,["layer","endpoint"])):De("",!0)])):De("",!0),t.error?(D(),K("div",XN,"Error: "+Ge(t.error),1)):De("",!0)])}const KN=We(SN,[["render",WN]]),VN={name:"App",components:{WmtsEndpoint:KN,OgcApiEndpoint:V1,WfsEndpoint:v1,WmsEndpoint:Yy}},UN={class:"pb-5"},BN=C("h2",{class:"my-4"},"WMS",-1),HN=C("p",null," Enter a WMS service URL below to get some information and a list of layers from it. ",-1),zN=C("h2",{class:"my-4"},"WFS",-1),qN=C("p",null," Enter a WFS service URL below to get some information and a list of feature types from it. ",-1),jN=C("h2",{class:"my-4"},"OGC API",-1),YN=C("p",null," Enter an OGC API endpoint URL below to get some information and a list of collections from it. ",-1),$N=C("h2",{class:"my-4"},"WMTS",-1),JN=C("p",null," Enter a WMTS endpoint URL below to get some information and a list of layers from it. ",-1);function QN(t,e,i,n,s,a){const r=Me("WmsEndpoint"),o=Me("WfsEndpoint"),l=Me("OgcApiEndpoint"),c=Me("WmtsEndpoint");return D(),K("div",UN,[BN,HN,B(r),zN,qN,B(o),jN,YN,B(l),$N,JN,B(c)])}const Wm=We(VN,[["render",QN]]),eF={name:"MarkdownBlock",props:{text:String},computed:{parsed(){return this.text?Cf(this.text):""}}},tF=["innerHTML"];function iF(t,e,i,n,s,a){return D(),K("div",{innerHTML:a.parsed},null,8,tF)}const Vi=We(eF,[["render",iF]]),nF=0,sF="@camptocamp/ogc-client",aF="project",rF=1,oF={},lF=[{id:232,name:"OgcApiEndpoint",variant:"declaration",kind:128,flags:{},comment:{summary:[{kind:"text",text:"Represents an OGC API endpoint advertising various collections and services."}]},children:[{id:233,name:"constructor",variant:"declaration",kind:512,flags:{},sources:[{fileName:"ogc-api/endpoint.ts",line:42,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/endpoint.ts#L42"}],signatures:[{id:234,name:"new OgcApiEndpoint",variant:"signature",kind:16384,flags:{},comment:{summary:[{kind:"text",text:"Creates a new OGC API endpoint."}]},sources:[{fileName:"ogc-api/endpoint.ts",line:42,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/endpoint.ts#L42"}],parameters:[{id:235,name:"baseUrl",variant:"param",kind:32768,flags:{},comment:{summary:[{kind:"text",text:`Base URL used to query the endpoint. Note that this can point to nested +documents inside the endpoint, such as `},{kind:"code",text:"`/collections`"},{kind:"text",text:", "},{kind:"code",text:"`/collections/items`"},{kind:"text",text:" etc."}]},type:{type:"intrinsic",name:"string"}}],type:{type:"reference",target:232,name:"default",package:"@camptocamp/ogc-client"}}]},{id:244,name:"allCollections",variant:"declaration",kind:262144,flags:{},sources:[{fileName:"ogc-api/endpoint.ts",line:93,character:6,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/endpoint.ts#L93"}],getSignature:{id:245,name:"allCollections",variant:"signature",kind:524288,flags:{},comment:{summary:[{kind:"text",text:"A Promise which resolves to an array of all collection identifiers as strings."}]},sources:[{fileName:"ogc-api/endpoint.ts",line:93,character:6,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/endpoint.ts#L93"}],type:{type:"reference",target:{sourceFileName:"node_modules/typescript/lib/lib.es5.d.ts",qualifiedName:"Promise"},typeArguments:[{type:"array",elementType:{type:"intrinsic",name:"string"}}],name:"Promise",package:"typescript"}}},{id:242,name:"conformanceClasses",variant:"declaration",kind:262144,flags:{},sources:[{fileName:"ogc-api/endpoint.ts",line:87,character:6,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/endpoint.ts#L87"}],getSignature:{id:243,name:"conformanceClasses",variant:"signature",kind:524288,flags:{},comment:{summary:[{kind:"text",text:"A Promise which resolves to an array of conformance classes."}]},sources:[{fileName:"ogc-api/endpoint.ts",line:87,character:6,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/endpoint.ts#L87"}],type:{type:"reference",target:{sourceFileName:"node_modules/typescript/lib/lib.es5.d.ts",qualifiedName:"Promise"},typeArguments:[{type:"array",elementType:{type:"intrinsic",name:"string"}}],name:"Promise",package:"typescript"}}},{id:248,name:"featureCollections",variant:"declaration",kind:262144,flags:{},sources:[{fileName:"ogc-api/endpoint.ts",line:109,character:6,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/endpoint.ts#L109"}],getSignature:{id:249,name:"featureCollections",variant:"signature",kind:524288,flags:{},comment:{summary:[{kind:"text",text:"A Promise which resolves to an array of feature collection identifiers as strings."}]},sources:[{fileName:"ogc-api/endpoint.ts",line:109,character:6,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/endpoint.ts#L109"}],type:{type:"reference",target:{sourceFileName:"node_modules/typescript/lib/lib.es5.d.ts",qualifiedName:"Promise"},typeArguments:[{type:"array",elementType:{type:"intrinsic",name:"string"}}],name:"Promise",package:"typescript"}}},{id:254,name:"hasFeatures",variant:"declaration",kind:262144,flags:{},sources:[{fileName:"ogc-api/endpoint.ts",line:132,character:6,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/endpoint.ts#L132"}],getSignature:{id:255,name:"hasFeatures",variant:"signature",kind:524288,flags:{},comment:{summary:[{kind:"text",text:"A Promise which resolves to a boolean indicating whether the endpoint offer feature collections."}]},sources:[{fileName:"ogc-api/endpoint.ts",line:132,character:6,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/endpoint.ts#L132"}],type:{type:"reference",target:{sourceFileName:"node_modules/typescript/lib/lib.es5.d.ts",qualifiedName:"Promise"},typeArguments:[{type:"intrinsic",name:"boolean"}],name:"Promise",package:"typescript"}}},{id:256,name:"hasRecords",variant:"declaration",kind:262144,flags:{},sources:[{fileName:"ogc-api/endpoint.ts",line:142,character:6,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/endpoint.ts#L142"}],getSignature:{id:257,name:"hasRecords",variant:"signature",kind:524288,flags:{},comment:{summary:[{kind:"text",text:"A Promise which resolves to a boolean indicating whether the endpoint offer record collections."}]},sources:[{fileName:"ogc-api/endpoint.ts",line:142,character:6,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/endpoint.ts#L142"}],type:{type:"reference",target:{sourceFileName:"node_modules/typescript/lib/lib.es5.d.ts",qualifiedName:"Promise"},typeArguments:[{type:"intrinsic",name:"boolean"}],name:"Promise",package:"typescript"}}},{id:252,name:"hasStyles",variant:"declaration",kind:262144,flags:{},sources:[{fileName:"ogc-api/endpoint.ts",line:125,character:6,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/endpoint.ts#L125"}],getSignature:{id:253,name:"hasStyles",variant:"signature",kind:524288,flags:{},comment:{summary:[{kind:"text",text:"A Promise which resolves to a boolean indicating whether the endpoint offer styles."}]},sources:[{fileName:"ogc-api/endpoint.ts",line:125,character:6,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/endpoint.ts#L125"}],type:{type:"reference",target:{sourceFileName:"node_modules/typescript/lib/lib.es5.d.ts",qualifiedName:"Promise"},typeArguments:[{type:"intrinsic",name:"boolean"}],name:"Promise",package:"typescript"}}},{id:250,name:"hasTiles",variant:"declaration",kind:262144,flags:{},sources:[{fileName:"ogc-api/endpoint.ts",line:118,character:6,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/endpoint.ts#L118"}],getSignature:{id:251,name:"hasTiles",variant:"signature",kind:524288,flags:{},comment:{summary:[{kind:"text",text:"A Promise which resolves to a boolean indicating whether the endpoint offer tiles."}]},sources:[{fileName:"ogc-api/endpoint.ts",line:118,character:6,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/endpoint.ts#L118"}],type:{type:"reference",target:{sourceFileName:"node_modules/typescript/lib/lib.es5.d.ts",qualifiedName:"Promise"},typeArguments:[{type:"intrinsic",name:"boolean"}],name:"Promise",package:"typescript"}}},{id:240,name:"info",variant:"declaration",kind:262144,flags:{},sources:[{fileName:"ogc-api/endpoint.ts",line:80,character:6,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/endpoint.ts#L80"}],getSignature:{id:241,name:"info",variant:"signature",kind:524288,flags:{},comment:{summary:[{kind:"text",text:"A Promise which resolves to the endpoint information."}]},sources:[{fileName:"ogc-api/endpoint.ts",line:80,character:6,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/endpoint.ts#L80"}],type:{type:"reference",target:{sourceFileName:"node_modules/typescript/lib/lib.es5.d.ts",qualifiedName:"Promise"},typeArguments:[{type:"reference",target:308,name:"OgcApiEndpointInfo",package:"@camptocamp/ogc-client"}],name:"Promise",package:"typescript"}}},{id:246,name:"recordCollections",variant:"declaration",kind:262144,flags:{},sources:[{fileName:"ogc-api/endpoint.ts",line:100,character:6,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/endpoint.ts#L100"}],getSignature:{id:247,name:"recordCollections",variant:"signature",kind:524288,flags:{},comment:{summary:[{kind:"text",text:"A Promise which resolves to an array of records collection identifiers as strings."}]},sources:[{fileName:"ogc-api/endpoint.ts",line:100,character:6,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/endpoint.ts#L100"}],type:{type:"reference",target:{sourceFileName:"node_modules/typescript/lib/lib.es5.d.ts",qualifiedName:"Promise"},typeArguments:[{type:"array",elementType:{type:"intrinsic",name:"string"}}],name:"Promise",package:"typescript"}}},{id:261,name:"getCollectionInfo",variant:"declaration",kind:2048,flags:{},sources:[{fileName:"ogc-api/endpoint.ts",line:165,character:8,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/endpoint.ts#L165"}],signatures:[{id:262,name:"getCollectionInfo",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:"Returns a promise resolving to a document describing the specified collection."}]},sources:[{fileName:"ogc-api/endpoint.ts",line:165,character:8,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/endpoint.ts#L165"}],parameters:[{id:263,name:"collectionId",variant:"param",kind:32768,flags:{},type:{type:"intrinsic",name:"string"}}],type:{type:"reference",target:{sourceFileName:"node_modules/typescript/lib/lib.es5.d.ts",qualifiedName:"Promise"},typeArguments:[{type:"reference",target:318,name:"OgcApiCollectionInfo",package:"@camptocamp/ogc-client"}],name:"Promise",package:"typescript"}}]},{id:273,name:"getCollectionItem",variant:"declaration",kind:2048,flags:{},sources:[{fileName:"ogc-api/endpoint.ts",line:237,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/endpoint.ts#L237"}],signatures:[{id:274,name:"getCollectionItem",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:"Returns a promise resolving to a specific item from a collection."}]},sources:[{fileName:"ogc-api/endpoint.ts",line:237,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/endpoint.ts#L237"}],parameters:[{id:275,name:"collectionId",variant:"param",kind:32768,flags:{},type:{type:"intrinsic",name:"string"}},{id:276,name:"itemId",variant:"param",kind:32768,flags:{},type:{type:"intrinsic",name:"string"}}],type:{type:"reference",target:{sourceFileName:"node_modules/typescript/lib/lib.es5.d.ts",qualifiedName:"Promise"},typeArguments:[{type:"reference",target:377,name:"OgcApiRecord",package:"@camptocamp/ogc-client"}],name:"Promise",package:"typescript"}}]},{id:264,name:"getCollectionItems",variant:"declaration",kind:2048,flags:{},sources:[{fileName:"ogc-api/endpoint.ts",line:201,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/endpoint.ts#L201"}],signatures:[{id:265,name:"getCollectionItems",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:"Returns a promise resolving to an array of items from a collection with the given query parameters."}]},sources:[{fileName:"ogc-api/endpoint.ts",line:201,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/endpoint.ts#L201"}],parameters:[{id:266,name:"collectionId",variant:"param",kind:32768,flags:{},type:{type:"intrinsic",name:"string"}},{id:267,name:"limit",variant:"param",kind:32768,flags:{},type:{type:"intrinsic",name:"number"},defaultValue:"10"},{id:268,name:"offset",variant:"param",kind:32768,flags:{},type:{type:"intrinsic",name:"number"},defaultValue:"0"},{id:269,name:"skipGeometry",variant:"param",kind:32768,flags:{},type:{type:"intrinsic",name:"boolean"},defaultValue:"null"},{id:270,name:"sortby",variant:"param",kind:32768,flags:{},type:{type:"array",elementType:{type:"intrinsic",name:"string"}},defaultValue:"null"},{id:271,name:"bbox",variant:"param",kind:32768,flags:{},type:{type:"tuple",elements:[{type:"intrinsic",name:"number"},{type:"intrinsic",name:"number"},{type:"intrinsic",name:"number"},{type:"intrinsic",name:"number"}]},defaultValue:"null"},{id:272,name:"properties",variant:"param",kind:32768,flags:{},type:{type:"array",elementType:{type:"intrinsic",name:"string"}},defaultValue:"null"}],type:{type:"reference",target:{sourceFileName:"node_modules/typescript/lib/lib.es5.d.ts",qualifiedName:"Promise"},typeArguments:[{type:"array",elementType:{type:"reference",target:377,name:"OgcApiRecord",package:"@camptocamp/ogc-client"}}],name:"Promise",package:"typescript"}}]},{id:277,name:"getCollectionItemsUrl",variant:"declaration",kind:2048,flags:{},sources:[{fileName:"ogc-api/endpoint.ts",line:266,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/endpoint.ts#L266"}],signatures:[{id:278,name:"getCollectionItemsUrl",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:"Asynchronously retrieves a URL for the items of a specified collection, with optional query parameters."}],blockTags:[{tag:"@returns",content:[{kind:"text",text:"A promise that resolves to the URL as a string or rejects if an error occurs."}]}]},sources:[{fileName:"ogc-api/endpoint.ts",line:266,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/endpoint.ts#L266"}],parameters:[{id:279,name:"collectionId",variant:"param",kind:32768,flags:{},comment:{summary:[{kind:"text",text:"The unique identifier for the collection."}]},type:{type:"intrinsic",name:"string"}},{id:280,name:"options",variant:"param",kind:32768,flags:{},comment:{summary:[{kind:"text",text:`An object containing optional parameters: - query: Additional query parameters to be included in the URL. - outputFormat: The MIME type for the output format. Default is 'json'. - limit: The maximum number of features to include. - extent: Bounding box to limit the features. - offset: Pagination offset for the returned results. - outputCrs: Coordinate Reference System code for the output. - - extentCrs: Coordinate Reference System code for the bounding box.`}]},type:{type:"reflection",declaration:{id:281,name:"__type",variant:"declaration",kind:65536,flags:{},children:[{id:287,name:"extent",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"ogc-api/endpoint.ts",line:274,character:6,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/endpoint.ts#L274"}],type:{type:"reference",target:215,name:"BoundingBox",package:"@camptocamp/ogc-client"}},{id:288,name:"extentCrs",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"ogc-api/endpoint.ts",line:275,character:6,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/endpoint.ts#L275"}],type:{type:"intrinsic",name:"string"}},{id:284,name:"limit",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"ogc-api/endpoint.ts",line:271,character:6,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/endpoint.ts#L271"}],type:{type:"intrinsic",name:"number"}},{id:285,name:"offset",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"ogc-api/endpoint.ts",line:272,character:6,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/endpoint.ts#L272"}],type:{type:"intrinsic",name:"number"}},{id:286,name:"outputCrs",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"ogc-api/endpoint.ts",line:273,character:6,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/endpoint.ts#L273"}],type:{type:"intrinsic",name:"string"}},{id:283,name:"outputFormat",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"ogc-api/endpoint.ts",line:270,character:6,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/endpoint.ts#L270"}],type:{type:"intrinsic",name:"string"}},{id:282,name:"query",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"ogc-api/endpoint.ts",line:269,character:6,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/endpoint.ts#L269"}],type:{type:"intrinsic",name:"string"}}],groups:[{title:"Properties",children:[287,288,284,285,286,283,282]}],sources:[{fileName:"ogc-api/endpoint.ts",line:268,character:13,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/endpoint.ts#L268"}]}},defaultValue:"{}"}],type:{type:"reference",target:{sourceFileName:"node_modules/typescript/lib/lib.es5.d.ts",qualifiedName:"Promise"},typeArguments:[{type:"intrinsic",name:"string"}],name:"Promise",package:"typescript"}}]}],groups:[{title:"Constructors",children:[233]},{title:"Accessors",children:[244,242,248,254,256,252,250,240,246]},{title:"Methods",children:[261,273,264,277]}],sources:[{fileName:"ogc-api/endpoint.ts",line:32,character:21,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/endpoint.ts#L32"}]},{id:1,name:"WfsEndpoint",variant:"declaration",kind:128,flags:{},comment:{summary:[{kind:"text",text:"Represents a WFS endpoint advertising several feature types"}]},children:[{id:2,name:"constructor",variant:"declaration",kind:512,flags:{},sources:[{fileName:"wfs/endpoint.ts",line:41,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/endpoint.ts#L41"}],signatures:[{id:3,name:"new WfsEndpoint",variant:"signature",kind:16384,flags:{},comment:{summary:[{kind:"text",text:"Creates a new WFS endpoint; wait for the "},{kind:"code",text:"`isReady()`"},{kind:"text",text:" promise before using the endpoint methods."}]},sources:[{fileName:"wfs/endpoint.ts",line:41,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/endpoint.ts#L41"}],parameters:[{id:4,name:"url",variant:"param",kind:32768,flags:{},comment:{summary:[{kind:"text",text:`WFS endpoint url; can contain any query parameters, these will be used to - initialize the endpoint`}]},type:{type:"intrinsic",name:"string"}}],type:{type:"reference",target:1,name:"default",package:"@camptocamp/ogc-client"}}]},{id:22,name:"getFeatureTypeFull",variant:"declaration",kind:2048,flags:{},sources:[{fileName:"wfs/endpoint.ts",line:135,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/endpoint.ts#L135"}],signatures:[{id:23,name:"getFeatureTypeFull",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:`Returns the complete feature type. If a namespace is specified in the name, -this will be used for matching; otherwise, matching will be done without taking namespaces into account.`}],blockTags:[{tag:"@returns",content:[{kind:"text",text:"return null if layer was not found or endpoint is not ready"}]}]},sources:[{fileName:"wfs/endpoint.ts",line:135,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/endpoint.ts#L135"}],parameters:[{id:24,name:"name",variant:"param",kind:32768,flags:{},comment:{summary:[{kind:"text",text:"Feature type name property (unique in the WFS service)"}]},type:{type:"intrinsic",name:"string"}}],type:{type:"reference",target:{sourceFileName:"node_modules/typescript/lib/lib.es5.d.ts",qualifiedName:"Promise"},typeArguments:[{type:"reference",target:71,name:"WfsFeatureTypeFull",package:"@camptocamp/ogc-client"}],name:"Promise",package:"typescript"}}]},{id:27,name:"getFeatureTypePropDetails",variant:"declaration",kind:2048,flags:{},sources:[{fileName:"wfs/endpoint.ts",line:190,character:8,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/endpoint.ts#L190"}],signatures:[{id:28,name:"getFeatureTypePropDetails",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:`Returns a promise that will resolve with details on each of the feature type properties; -for now, this consists of a list of unique values in the whole dataset.`}],blockTags:[{tag:"@returns",content:[{kind:"text",text:"return null if layer was not found or endpoint is not ready"}]}]},sources:[{fileName:"wfs/endpoint.ts",line:190,character:8,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/endpoint.ts#L190"}],parameters:[{id:29,name:"name",variant:"param",kind:32768,flags:{},comment:{summary:[{kind:"text",text:"Feature type name property (unique in the WFS service)"}]},type:{type:"intrinsic",name:"string"}}],type:{type:"reference",target:{sourceFileName:"node_modules/typescript/lib/lib.es5.d.ts",qualifiedName:"Promise"},typeArguments:[{type:"reference",target:87,name:"WfsFeatureTypePropsDetails",package:"@camptocamp/ogc-client"}],name:"Promise",package:"typescript"}}]},{id:19,name:"getFeatureTypeSummary",variant:"declaration",kind:2048,flags:{},sources:[{fileName:"wfs/endpoint.ts",line:112,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/endpoint.ts#L112"}],signatures:[{id:20,name:"getFeatureTypeSummary",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:`Returns the feature type in summary format. If a namespace is specified in the name, -this will be used for matching; otherwise, matching will be done without taking namespaces into account.`}],blockTags:[{tag:"@returns",content:[{kind:"text",text:"return null if layer was not found or endpoint is not ready"}]}]},sources:[{fileName:"wfs/endpoint.ts",line:112,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/endpoint.ts#L112"}],parameters:[{id:21,name:"name",variant:"param",kind:32768,flags:{},comment:{summary:[{kind:"text",text:"Feature type name property (unique in the WFS service)"}]},type:{type:"intrinsic",name:"string"}}],type:{type:"reference",target:54,name:"WfsFeatureTypeSummary",package:"@camptocamp/ogc-client"}}]},{id:14,name:"getFeatureTypes",variant:"declaration",kind:2048,flags:{},sources:[{fileName:"wfs/endpoint.ts",line:80,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/endpoint.ts#L80"}],signatures:[{id:15,name:"getFeatureTypes",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:"Returns an array of feature types"}]},sources:[{fileName:"wfs/endpoint.ts",line:80,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/endpoint.ts#L80"}],type:{type:"array",elementType:{type:"reference",target:63,name:"WfsFeatureTypeBrief",package:"@camptocamp/ogc-client"}}}]},{id:38,name:"getFeatureUrl",variant:"declaration",kind:2048,flags:{},sources:[{fileName:"wfs/endpoint.ts",line:251,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/endpoint.ts#L251"}],signatures:[{id:39,name:"getFeatureUrl",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:"Returns a URL that can be used to query features from this feature type."}],blockTags:[{tag:"@returns",content:[{kind:"text",text:"Returns null if endpoint is not ready"}]}]},sources:[{fileName:"wfs/endpoint.ts",line:251,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/endpoint.ts#L251"}],parameters:[{id:40,name:"featureType",variant:"param",kind:32768,flags:{},type:{type:"intrinsic",name:"string"}},{id:41,name:"options",variant:"param",kind:32768,flags:{isOptional:!0},type:{type:"reflection",declaration:{id:42,name:"__type",variant:"declaration",kind:65536,flags:{},children:[{id:44,name:"asJson",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"wfs/endpoint.ts",line:255,character:6,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/endpoint.ts#L255"}],type:{type:"intrinsic",name:"boolean"}},{id:47,name:"extent",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"wfs/endpoint.ts",line:258,character:6,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/endpoint.ts#L258"}],type:{type:"reference",target:215,name:"BoundingBox",package:"@camptocamp/ogc-client"}},{id:48,name:"extentCrs",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"wfs/endpoint.ts",line:259,character:6,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/endpoint.ts#L259"}],type:{type:"intrinsic",name:"string"}},{id:43,name:"maxFeatures",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"wfs/endpoint.ts",line:254,character:6,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/endpoint.ts#L254"}],type:{type:"intrinsic",name:"number"}},{id:46,name:"outputCrs",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"wfs/endpoint.ts",line:257,character:6,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/endpoint.ts#L257"}],type:{type:"intrinsic",name:"string"}},{id:45,name:"outputFormat",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"wfs/endpoint.ts",line:256,character:6,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/endpoint.ts#L256"}],type:{type:"intrinsic",name:"string"}}],groups:[{title:"Properties",children:[44,47,48,43,46,45]}],sources:[{fileName:"wfs/endpoint.ts",line:253,character:13,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/endpoint.ts#L253"}]}}}],type:{type:"intrinsic",name:"string"}}]},{id:12,name:"getServiceInfo",variant:"declaration",kind:2048,flags:{},sources:[{fileName:"wfs/endpoint.ts",line:73,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/endpoint.ts#L73"}],signatures:[{id:13,name:"getServiceInfo",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:"A Promise which resolves to the endpoint information."}]},sources:[{fileName:"wfs/endpoint.ts",line:73,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/endpoint.ts#L73"}],type:{type:"reference",target:223,name:"GenericEndpointInfo",package:"@camptocamp/ogc-client"}}]},{id:25,name:"getSingleFeatureTypeName",variant:"declaration",kind:2048,flags:{},sources:[{fileName:"wfs/endpoint.ts",line:178,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/endpoint.ts#L178"}],signatures:[{id:26,name:"getSingleFeatureTypeName",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:"If only one single feature type is available, return its name; otherwise, returns null;"}]},sources:[{fileName:"wfs/endpoint.ts",line:178,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/endpoint.ts#L178"}],type:{type:"intrinsic",name:"string"}}]},{id:30,name:"getVersion",variant:"declaration",kind:2048,flags:{},sources:[{fileName:"wfs/endpoint.ts",line:213,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/endpoint.ts#L213"}],signatures:[{id:31,name:"getVersion",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:`Returns the highest protocol version that this WFS endpoint supports. + - extentCrs: Coordinate Reference System code for the bounding box.`}]},type:{type:"reflection",declaration:{id:281,name:"__type",variant:"declaration",kind:65536,flags:{},children:[{id:287,name:"extent",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"ogc-api/endpoint.ts",line:274,character:6,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/endpoint.ts#L274"}],type:{type:"reference",target:215,name:"BoundingBox",package:"@camptocamp/ogc-client"}},{id:288,name:"extentCrs",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"ogc-api/endpoint.ts",line:275,character:6,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/endpoint.ts#L275"}],type:{type:"intrinsic",name:"string"}},{id:284,name:"limit",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"ogc-api/endpoint.ts",line:271,character:6,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/endpoint.ts#L271"}],type:{type:"intrinsic",name:"number"}},{id:285,name:"offset",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"ogc-api/endpoint.ts",line:272,character:6,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/endpoint.ts#L272"}],type:{type:"intrinsic",name:"number"}},{id:286,name:"outputCrs",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"ogc-api/endpoint.ts",line:273,character:6,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/endpoint.ts#L273"}],type:{type:"intrinsic",name:"string"}},{id:283,name:"outputFormat",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"ogc-api/endpoint.ts",line:270,character:6,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/endpoint.ts#L270"}],type:{type:"intrinsic",name:"string"}},{id:282,name:"query",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"ogc-api/endpoint.ts",line:269,character:6,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/endpoint.ts#L269"}],type:{type:"intrinsic",name:"string"}}],groups:[{title:"Properties",children:[287,288,284,285,286,283,282]}],sources:[{fileName:"ogc-api/endpoint.ts",line:268,character:13,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/endpoint.ts#L268"}]}},defaultValue:"{}"}],type:{type:"reference",target:{sourceFileName:"node_modules/typescript/lib/lib.es5.d.ts",qualifiedName:"Promise"},typeArguments:[{type:"intrinsic",name:"string"}],name:"Promise",package:"typescript"}}]}],groups:[{title:"Constructors",children:[233]},{title:"Accessors",children:[244,242,248,254,256,252,250,240,246]},{title:"Methods",children:[261,273,264,277]}],sources:[{fileName:"ogc-api/endpoint.ts",line:32,character:21,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/endpoint.ts#L32"}]},{id:1,name:"WfsEndpoint",variant:"declaration",kind:128,flags:{},comment:{summary:[{kind:"text",text:"Represents a WFS endpoint advertising several feature types"}]},children:[{id:2,name:"constructor",variant:"declaration",kind:512,flags:{},sources:[{fileName:"wfs/endpoint.ts",line:41,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/endpoint.ts#L41"}],signatures:[{id:3,name:"new WfsEndpoint",variant:"signature",kind:16384,flags:{},comment:{summary:[{kind:"text",text:"Creates a new WFS endpoint; wait for the "},{kind:"code",text:"`isReady()`"},{kind:"text",text:" promise before using the endpoint methods."}]},sources:[{fileName:"wfs/endpoint.ts",line:41,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/endpoint.ts#L41"}],parameters:[{id:4,name:"url",variant:"param",kind:32768,flags:{},comment:{summary:[{kind:"text",text:`WFS endpoint url; can contain any query parameters, these will be used to + initialize the endpoint`}]},type:{type:"intrinsic",name:"string"}}],type:{type:"reference",target:1,name:"default",package:"@camptocamp/ogc-client"}}]},{id:22,name:"getFeatureTypeFull",variant:"declaration",kind:2048,flags:{},sources:[{fileName:"wfs/endpoint.ts",line:135,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/endpoint.ts#L135"}],signatures:[{id:23,name:"getFeatureTypeFull",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:`Returns the complete feature type. If a namespace is specified in the name, +this will be used for matching; otherwise, matching will be done without taking namespaces into account.`}],blockTags:[{tag:"@returns",content:[{kind:"text",text:"return null if layer was not found or endpoint is not ready"}]}]},sources:[{fileName:"wfs/endpoint.ts",line:135,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/endpoint.ts#L135"}],parameters:[{id:24,name:"name",variant:"param",kind:32768,flags:{},comment:{summary:[{kind:"text",text:"Feature type name property (unique in the WFS service)"}]},type:{type:"intrinsic",name:"string"}}],type:{type:"reference",target:{sourceFileName:"node_modules/typescript/lib/lib.es5.d.ts",qualifiedName:"Promise"},typeArguments:[{type:"reference",target:71,name:"WfsFeatureTypeFull",package:"@camptocamp/ogc-client"}],name:"Promise",package:"typescript"}}]},{id:27,name:"getFeatureTypePropDetails",variant:"declaration",kind:2048,flags:{},sources:[{fileName:"wfs/endpoint.ts",line:190,character:8,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/endpoint.ts#L190"}],signatures:[{id:28,name:"getFeatureTypePropDetails",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:`Returns a promise that will resolve with details on each of the feature type properties; +for now, this consists of a list of unique values in the whole dataset.`}],blockTags:[{tag:"@returns",content:[{kind:"text",text:"return null if layer was not found or endpoint is not ready"}]}]},sources:[{fileName:"wfs/endpoint.ts",line:190,character:8,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/endpoint.ts#L190"}],parameters:[{id:29,name:"name",variant:"param",kind:32768,flags:{},comment:{summary:[{kind:"text",text:"Feature type name property (unique in the WFS service)"}]},type:{type:"intrinsic",name:"string"}}],type:{type:"reference",target:{sourceFileName:"node_modules/typescript/lib/lib.es5.d.ts",qualifiedName:"Promise"},typeArguments:[{type:"reference",target:87,name:"WfsFeatureTypePropsDetails",package:"@camptocamp/ogc-client"}],name:"Promise",package:"typescript"}}]},{id:19,name:"getFeatureTypeSummary",variant:"declaration",kind:2048,flags:{},sources:[{fileName:"wfs/endpoint.ts",line:112,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/endpoint.ts#L112"}],signatures:[{id:20,name:"getFeatureTypeSummary",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:`Returns the feature type in summary format. If a namespace is specified in the name, +this will be used for matching; otherwise, matching will be done without taking namespaces into account.`}],blockTags:[{tag:"@returns",content:[{kind:"text",text:"return null if layer was not found or endpoint is not ready"}]}]},sources:[{fileName:"wfs/endpoint.ts",line:112,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/endpoint.ts#L112"}],parameters:[{id:21,name:"name",variant:"param",kind:32768,flags:{},comment:{summary:[{kind:"text",text:"Feature type name property (unique in the WFS service)"}]},type:{type:"intrinsic",name:"string"}}],type:{type:"reference",target:54,name:"WfsFeatureTypeSummary",package:"@camptocamp/ogc-client"}}]},{id:14,name:"getFeatureTypes",variant:"declaration",kind:2048,flags:{},sources:[{fileName:"wfs/endpoint.ts",line:80,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/endpoint.ts#L80"}],signatures:[{id:15,name:"getFeatureTypes",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:"Returns an array of feature types"}]},sources:[{fileName:"wfs/endpoint.ts",line:80,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/endpoint.ts#L80"}],type:{type:"array",elementType:{type:"reference",target:63,name:"WfsFeatureTypeBrief",package:"@camptocamp/ogc-client"}}}]},{id:38,name:"getFeatureUrl",variant:"declaration",kind:2048,flags:{},sources:[{fileName:"wfs/endpoint.ts",line:251,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/endpoint.ts#L251"}],signatures:[{id:39,name:"getFeatureUrl",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:"Returns a URL that can be used to query features from this feature type."}],blockTags:[{tag:"@returns",content:[{kind:"text",text:"Returns null if endpoint is not ready"}]}]},sources:[{fileName:"wfs/endpoint.ts",line:251,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/endpoint.ts#L251"}],parameters:[{id:40,name:"featureType",variant:"param",kind:32768,flags:{},type:{type:"intrinsic",name:"string"}},{id:41,name:"options",variant:"param",kind:32768,flags:{isOptional:!0},type:{type:"reflection",declaration:{id:42,name:"__type",variant:"declaration",kind:65536,flags:{},children:[{id:44,name:"asJson",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"wfs/endpoint.ts",line:255,character:6,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/endpoint.ts#L255"}],type:{type:"intrinsic",name:"boolean"}},{id:47,name:"extent",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"wfs/endpoint.ts",line:258,character:6,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/endpoint.ts#L258"}],type:{type:"reference",target:215,name:"BoundingBox",package:"@camptocamp/ogc-client"}},{id:48,name:"extentCrs",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"wfs/endpoint.ts",line:259,character:6,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/endpoint.ts#L259"}],type:{type:"intrinsic",name:"string"}},{id:43,name:"maxFeatures",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"wfs/endpoint.ts",line:254,character:6,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/endpoint.ts#L254"}],type:{type:"intrinsic",name:"number"}},{id:46,name:"outputCrs",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"wfs/endpoint.ts",line:257,character:6,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/endpoint.ts#L257"}],type:{type:"intrinsic",name:"string"}},{id:45,name:"outputFormat",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"wfs/endpoint.ts",line:256,character:6,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/endpoint.ts#L256"}],type:{type:"intrinsic",name:"string"}}],groups:[{title:"Properties",children:[44,47,48,43,46,45]}],sources:[{fileName:"wfs/endpoint.ts",line:253,character:13,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/endpoint.ts#L253"}]}}}],type:{type:"intrinsic",name:"string"}}]},{id:12,name:"getServiceInfo",variant:"declaration",kind:2048,flags:{},sources:[{fileName:"wfs/endpoint.ts",line:73,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/endpoint.ts#L73"}],signatures:[{id:13,name:"getServiceInfo",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:"A Promise which resolves to the endpoint information."}]},sources:[{fileName:"wfs/endpoint.ts",line:73,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/endpoint.ts#L73"}],type:{type:"reference",target:223,name:"GenericEndpointInfo",package:"@camptocamp/ogc-client"}}]},{id:25,name:"getSingleFeatureTypeName",variant:"declaration",kind:2048,flags:{},sources:[{fileName:"wfs/endpoint.ts",line:178,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/endpoint.ts#L178"}],signatures:[{id:26,name:"getSingleFeatureTypeName",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:"If only one single feature type is available, return its name; otherwise, returns null;"}]},sources:[{fileName:"wfs/endpoint.ts",line:178,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/endpoint.ts#L178"}],type:{type:"intrinsic",name:"string"}}]},{id:30,name:"getVersion",variant:"declaration",kind:2048,flags:{},sources:[{fileName:"wfs/endpoint.ts",line:213,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/endpoint.ts#L213"}],signatures:[{id:31,name:"getVersion",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:`Returns the highest protocol version that this WFS endpoint supports. Note that if the url used for initialization does specify a version (e.g. 1.0.0), -this version will most likely be used instead of the highest supported one.`}]},sources:[{fileName:"wfs/endpoint.ts",line:213,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/endpoint.ts#L213"}],type:{type:"reference",target:49,name:"WfsVersion",package:"@camptocamp/ogc-client"}}]},{id:10,name:"isReady",variant:"declaration",kind:2048,flags:{},sources:[{fileName:"wfs/endpoint.ts",line:66,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/endpoint.ts#L66"}],signatures:[{id:11,name:"isReady",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:"Resolves when the endpoint is ready to use. Returns the same endpoint object for convenience."}],blockTags:[{tag:"@throws",content:[]}]},sources:[{fileName:"wfs/endpoint.ts",line:66,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/endpoint.ts#L66"}],type:{type:"reference",target:{sourceFileName:"node_modules/typescript/lib/lib.es5.d.ts",qualifiedName:"Promise"},typeArguments:[{type:"reference",target:1,name:"default",package:"@camptocamp/ogc-client"}],name:"Promise",package:"typescript"}}]},{id:35,name:"supportsJson",variant:"declaration",kind:2048,flags:{},sources:[{fileName:"wfs/endpoint.ts",line:234,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/endpoint.ts#L234"}],signatures:[{id:36,name:"supportsJson",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:"Returns true if the given feature type can be downloaded as GeoJSON"}]},sources:[{fileName:"wfs/endpoint.ts",line:234,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/endpoint.ts#L234"}],parameters:[{id:37,name:"featureType",variant:"param",kind:32768,flags:{},type:{type:"intrinsic",name:"string"}}],type:{type:"intrinsic",name:"boolean"}}]}],groups:[{title:"Constructors",children:[2]},{title:"Methods",children:[22,27,19,14,38,12,25,30,10,35]}],sources:[{fileName:"wfs/endpoint.ts",line:29,character:21,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/endpoint.ts#L29"}]},{id:92,name:"WmsEndpoint",variant:"declaration",kind:128,flags:{},comment:{summary:[{kind:"text",text:"Represents a WMS endpoint advertising several layers arranged in a tree structure."}]},children:[{id:93,name:"constructor",variant:"declaration",kind:512,flags:{},sources:[{fileName:"wms/endpoint.ts",line:20,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wms/endpoint.ts#L20"}],signatures:[{id:94,name:"new WmsEndpoint",variant:"signature",kind:16384,flags:{},sources:[{fileName:"wms/endpoint.ts",line:20,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wms/endpoint.ts#L20"}],parameters:[{id:95,name:"url",variant:"param",kind:32768,flags:{},comment:{summary:[{kind:"text",text:`WMS endpoint url; can contain any query parameters, these will be used to - initialize the endpoint`}]},type:{type:"intrinsic",name:"string"}}],type:{type:"reference",target:92,name:"default",package:"@camptocamp/ogc-client"}}]},{id:106,name:"getLayerByName",variant:"declaration",kind:2048,flags:{},sources:[{fileName:"wms/endpoint.ts",line:80,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wms/endpoint.ts#L80"}],signatures:[{id:107,name:"getLayerByName",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:`Returns the full layer information, including supported coordinate systems, available layers, bounding boxes etc. -Layer name is case-sensitive.`}],blockTags:[{tag:"@returns",content:[{kind:"text",text:"return null if layer was not found"}]}]},sources:[{fileName:"wms/endpoint.ts",line:80,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wms/endpoint.ts#L80"}],parameters:[{id:108,name:"name",variant:"param",kind:32768,flags:{},comment:{summary:[{kind:"text",text:"Layer name property (unique in the WMS service)"}]},type:{type:"intrinsic",name:"string"}}],type:{type:"reference",target:113,name:"WmsLayerFull",package:"@camptocamp/ogc-client"}}]},{id:104,name:"getLayers",variant:"declaration",kind:2048,flags:{},sources:[{fileName:"wms/endpoint.ts",line:60,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wms/endpoint.ts#L60"}],signatures:[{id:105,name:"getLayers",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:`Returns an array of layers in summary format; layers are organized in a tree -structure with each having an optional `},{kind:"code",text:"`children`"},{kind:"text",text:" property"}]},sources:[{fileName:"wms/endpoint.ts",line:60,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wms/endpoint.ts#L60"}],type:{type:"array",elementType:{type:"reference",target:124,name:"WmsLayerSummary",package:"@camptocamp/ogc-client"}}}]},{id:102,name:"getServiceInfo",variant:"declaration",kind:2048,flags:{},sources:[{fileName:"wms/endpoint.ts",line:52,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wms/endpoint.ts#L52"}],signatures:[{id:103,name:"getServiceInfo",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:"Returns the service information."}]},sources:[{fileName:"wms/endpoint.ts",line:52,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wms/endpoint.ts#L52"}],type:{type:"reference",target:223,name:"GenericEndpointInfo",package:"@camptocamp/ogc-client"}}]},{id:109,name:"getSingleLayerName",variant:"declaration",kind:2048,flags:{},sources:[{fileName:"wms/endpoint.ts",line:99,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wms/endpoint.ts#L99"}],signatures:[{id:110,name:"getSingleLayerName",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:"If only one single renderable layer is available, return its name; otherwise, returns null;"}]},sources:[{fileName:"wms/endpoint.ts",line:99,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wms/endpoint.ts#L99"}],type:{type:"intrinsic",name:"string"}}]},{id:111,name:"getVersion",variant:"declaration",kind:2048,flags:{},sources:[{fileName:"wms/endpoint.ts",line:120,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wms/endpoint.ts#L120"}],signatures:[{id:112,name:"getVersion",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:`Returns the highest protocol version that this WMS endpoint supports. +this version will most likely be used instead of the highest supported one.`}]},sources:[{fileName:"wfs/endpoint.ts",line:213,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/endpoint.ts#L213"}],type:{type:"reference",target:49,name:"WfsVersion",package:"@camptocamp/ogc-client"}}]},{id:10,name:"isReady",variant:"declaration",kind:2048,flags:{},sources:[{fileName:"wfs/endpoint.ts",line:66,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/endpoint.ts#L66"}],signatures:[{id:11,name:"isReady",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:"Resolves when the endpoint is ready to use. Returns the same endpoint object for convenience."}],blockTags:[{tag:"@throws",content:[]}]},sources:[{fileName:"wfs/endpoint.ts",line:66,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/endpoint.ts#L66"}],type:{type:"reference",target:{sourceFileName:"node_modules/typescript/lib/lib.es5.d.ts",qualifiedName:"Promise"},typeArguments:[{type:"reference",target:1,name:"default",package:"@camptocamp/ogc-client"}],name:"Promise",package:"typescript"}}]},{id:35,name:"supportsJson",variant:"declaration",kind:2048,flags:{},sources:[{fileName:"wfs/endpoint.ts",line:234,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/endpoint.ts#L234"}],signatures:[{id:36,name:"supportsJson",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:"Returns true if the given feature type can be downloaded as GeoJSON"}]},sources:[{fileName:"wfs/endpoint.ts",line:234,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/endpoint.ts#L234"}],parameters:[{id:37,name:"featureType",variant:"param",kind:32768,flags:{},type:{type:"intrinsic",name:"string"}}],type:{type:"intrinsic",name:"boolean"}}]}],groups:[{title:"Constructors",children:[2]},{title:"Methods",children:[22,27,19,14,38,12,25,30,10,35]}],sources:[{fileName:"wfs/endpoint.ts",line:29,character:21,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/endpoint.ts#L29"}]},{id:92,name:"WmsEndpoint",variant:"declaration",kind:128,flags:{},comment:{summary:[{kind:"text",text:"Represents a WMS endpoint advertising several layers arranged in a tree structure."}]},children:[{id:93,name:"constructor",variant:"declaration",kind:512,flags:{},sources:[{fileName:"wms/endpoint.ts",line:20,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wms/endpoint.ts#L20"}],signatures:[{id:94,name:"new WmsEndpoint",variant:"signature",kind:16384,flags:{},sources:[{fileName:"wms/endpoint.ts",line:20,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wms/endpoint.ts#L20"}],parameters:[{id:95,name:"url",variant:"param",kind:32768,flags:{},comment:{summary:[{kind:"text",text:`WMS endpoint url; can contain any query parameters, these will be used to + initialize the endpoint`}]},type:{type:"intrinsic",name:"string"}}],type:{type:"reference",target:92,name:"default",package:"@camptocamp/ogc-client"}}]},{id:106,name:"getLayerByName",variant:"declaration",kind:2048,flags:{},sources:[{fileName:"wms/endpoint.ts",line:80,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wms/endpoint.ts#L80"}],signatures:[{id:107,name:"getLayerByName",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:`Returns the full layer information, including supported coordinate systems, available layers, bounding boxes etc. +Layer name is case-sensitive.`}],blockTags:[{tag:"@returns",content:[{kind:"text",text:"return null if layer was not found"}]}]},sources:[{fileName:"wms/endpoint.ts",line:80,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wms/endpoint.ts#L80"}],parameters:[{id:108,name:"name",variant:"param",kind:32768,flags:{},comment:{summary:[{kind:"text",text:"Layer name property (unique in the WMS service)"}]},type:{type:"intrinsic",name:"string"}}],type:{type:"reference",target:113,name:"WmsLayerFull",package:"@camptocamp/ogc-client"}}]},{id:104,name:"getLayers",variant:"declaration",kind:2048,flags:{},sources:[{fileName:"wms/endpoint.ts",line:60,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wms/endpoint.ts#L60"}],signatures:[{id:105,name:"getLayers",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:`Returns an array of layers in summary format; layers are organized in a tree +structure with each having an optional `},{kind:"code",text:"`children`"},{kind:"text",text:" property"}]},sources:[{fileName:"wms/endpoint.ts",line:60,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wms/endpoint.ts#L60"}],type:{type:"array",elementType:{type:"reference",target:124,name:"WmsLayerSummary",package:"@camptocamp/ogc-client"}}}]},{id:102,name:"getServiceInfo",variant:"declaration",kind:2048,flags:{},sources:[{fileName:"wms/endpoint.ts",line:52,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wms/endpoint.ts#L52"}],signatures:[{id:103,name:"getServiceInfo",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:"Returns the service information."}]},sources:[{fileName:"wms/endpoint.ts",line:52,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wms/endpoint.ts#L52"}],type:{type:"reference",target:223,name:"GenericEndpointInfo",package:"@camptocamp/ogc-client"}}]},{id:109,name:"getSingleLayerName",variant:"declaration",kind:2048,flags:{},sources:[{fileName:"wms/endpoint.ts",line:99,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wms/endpoint.ts#L99"}],signatures:[{id:110,name:"getSingleLayerName",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:"If only one single renderable layer is available, return its name; otherwise, returns null;"}]},sources:[{fileName:"wms/endpoint.ts",line:99,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wms/endpoint.ts#L99"}],type:{type:"intrinsic",name:"string"}}]},{id:111,name:"getVersion",variant:"declaration",kind:2048,flags:{},sources:[{fileName:"wms/endpoint.ts",line:120,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wms/endpoint.ts#L120"}],signatures:[{id:112,name:"getVersion",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:`Returns the highest protocol version that this WMS endpoint supports. Note that if the url used for initialization does specify a version (e.g. 1.1.0), -this version will most likely be used instead of the highest supported one.`}]},sources:[{fileName:"wms/endpoint.ts",line:120,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wms/endpoint.ts#L120"}],type:{type:"reference",target:123,name:"WmsVersion",package:"@camptocamp/ogc-client"}}]},{id:100,name:"isReady",variant:"declaration",kind:2048,flags:{},sources:[{fileName:"wms/endpoint.ts",line:45,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wms/endpoint.ts#L45"}],signatures:[{id:101,name:"isReady",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:"Resolves when the endpoint is ready to use. Returns the same endpoint object for convenience."}],blockTags:[{tag:"@throws",content:[]}]},sources:[{fileName:"wms/endpoint.ts",line:45,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wms/endpoint.ts#L45"}],type:{type:"reference",target:{sourceFileName:"node_modules/typescript/lib/lib.es5.d.ts",qualifiedName:"Promise"},typeArguments:[{type:"reference",target:92,name:"default",package:"@camptocamp/ogc-client"}],name:"Promise",package:"typescript"}}]}],groups:[{title:"Constructors",children:[93]},{title:"Methods",children:[106,104,102,109,111,100]}],sources:[{fileName:"wms/endpoint.ts",line:10,character:21,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wms/endpoint.ts#L10"}]},{id:135,name:"WmtsEndpoint",variant:"declaration",kind:128,flags:{},comment:{summary:[{kind:"text",text:"Represents a WMTS endpoint advertising several layers."}]},children:[{id:136,name:"constructor",variant:"declaration",kind:512,flags:{},sources:[{fileName:"wmts/endpoint.ts",line:29,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wmts/endpoint.ts#L29"}],signatures:[{id:137,name:"new WmtsEndpoint",variant:"signature",kind:16384,flags:{},comment:{summary:[{kind:"text",text:"Creates a new WMTS endpoint; wait for the "},{kind:"code",text:"`isReady()`"},{kind:"text",text:" promise before using the endpoint methods."}]},sources:[{fileName:"wmts/endpoint.ts",line:29,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wmts/endpoint.ts#L29"}],parameters:[{id:138,name:"url",variant:"param",kind:32768,flags:{},comment:{summary:[{kind:"text",text:`WMTS endpoint url; can contain any query parameters, these will be used to - initialize the endpoint`}]},type:{type:"intrinsic",name:"string"}}],type:{type:"reference",target:135,name:"default",package:"@camptocamp/ogc-client"}}]},{id:172,name:"getDefaultDimensions",variant:"declaration",kind:2048,flags:{},sources:[{fileName:"wmts/endpoint.ts",line:172,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wmts/endpoint.ts#L172"}],signatures:[{id:173,name:"getDefaultDimensions",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:"Return an object with all defined dimensions for the layer, as well as their default values."}]},sources:[{fileName:"wmts/endpoint.ts",line:172,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wmts/endpoint.ts#L172"}],parameters:[{id:174,name:"layerName",variant:"param",kind:32768,flags:{},type:{type:"intrinsic",name:"string"}}],type:{type:"reference",target:{sourceFileName:"node_modules/typescript/lib/lib.es5.d.ts",qualifiedName:"Record"},typeArguments:[{type:"intrinsic",name:"string"},{type:"intrinsic",name:"string"}],name:"Record",package:"typescript"}}]},{id:154,name:"getLayerByName",variant:"declaration",kind:2048,flags:{},sources:[{fileName:"wmts/endpoint.ts",line:99,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wmts/endpoint.ts#L99"}],signatures:[{id:155,name:"getLayerByName",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:`Returns a complete layer based on its name -Note: the first matching layer will be returned`}],blockTags:[{tag:"@returns",content:[{kind:"text",text:"return null if layer was not found"}]}]},sources:[{fileName:"wmts/endpoint.ts",line:99,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wmts/endpoint.ts#L99"}],parameters:[{id:156,name:"name",variant:"param",kind:32768,flags:{},comment:{summary:[{kind:"text",text:"Layer name property"}]},type:{type:"intrinsic",name:"string"}}],type:{type:"reference",target:197,name:"WmtsLayer",package:"@camptocamp/ogc-client"}}]},{id:159,name:"getLayerResourceLink",variant:"declaration",kind:2048,flags:{},sources:[{fileName:"wmts/endpoint.ts",line:119,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wmts/endpoint.ts#L119"}],signatures:[{id:160,name:"getLayerResourceLink",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:`Returns a layer resource link. If no type hint is specified, the first resource will be returned. -A resource link contains a URL as well as an image format and a request encoding (KVP or REST).`}]},sources:[{fileName:"wmts/endpoint.ts",line:119,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wmts/endpoint.ts#L119"}],parameters:[{id:161,name:"layerName",variant:"param",kind:32768,flags:{},type:{type:"intrinsic",name:"string"}},{id:162,name:"formatHint",variant:"param",kind:32768,flags:{isOptional:!0},type:{type:"intrinsic",name:"string"}}],type:{type:"reference",target:181,name:"WmtsLayerResourceLink",package:"@camptocamp/ogc-client"}}]},{id:147,name:"getLayers",variant:"declaration",kind:2048,flags:{},sources:[{fileName:"wmts/endpoint.ts",line:68,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wmts/endpoint.ts#L68"}],signatures:[{id:148,name:"getLayers",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:"Returns the layers advertised in the endpoint."}]},sources:[{fileName:"wmts/endpoint.ts",line:68,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wmts/endpoint.ts#L68"}],type:{type:"array",elementType:{type:"reference",target:197,name:"WmtsLayer",package:"@camptocamp/ogc-client"}}}]},{id:151,name:"getMatrixSetByIdentifier",variant:"declaration",kind:2048,flags:{},sources:[{fileName:"wmts/endpoint.ts",line:84,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wmts/endpoint.ts#L84"}],signatures:[{id:152,name:"getMatrixSetByIdentifier",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:"Returns a matrix set by identifier"}],blockTags:[{tag:"@returns",content:[{kind:"text",text:"return null if matrix set was not found"}]}]},sources:[{fileName:"wmts/endpoint.ts",line:84,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wmts/endpoint.ts#L84"}],parameters:[{id:153,name:"identifier",variant:"param",kind:32768,flags:{},comment:{summary:[{kind:"text",text:"Matrix set identifier"}]},type:{type:"intrinsic",name:"string"}}],type:{type:"reference",target:205,name:"WmtsMatrixSet",package:"@camptocamp/ogc-client"}}]},{id:149,name:"getMatrixSets",variant:"declaration",kind:2048,flags:{},sources:[{fileName:"wmts/endpoint.ts",line:75,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wmts/endpoint.ts#L75"}],signatures:[{id:150,name:"getMatrixSets",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:"Returns the matrix sets available for that endpoint. Each matrix set contains a list of tile matrices as well as a supported CRS."}]},sources:[{fileName:"wmts/endpoint.ts",line:75,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wmts/endpoint.ts#L75"}],type:{type:"array",elementType:{type:"reference",target:205,name:"WmtsMatrixSet",package:"@camptocamp/ogc-client"}}}]},{id:176,name:"getOpenLayersTileGrid",variant:"declaration",kind:2048,flags:{},sources:[{fileName:"wmts/endpoint.ts",line:192,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wmts/endpoint.ts#L192"}],signatures:[{id:177,name:"getOpenLayersTileGrid",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:`Creates a WMTSTileGrid instance from the 'ol' package, for a given layer. Optionally, a matrix set -can be provided;`}]},sources:[{fileName:"wmts/endpoint.ts",line:192,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wmts/endpoint.ts#L192"}],parameters:[{id:178,name:"layerName",variant:"param",kind:32768,flags:{},type:{type:"intrinsic",name:"string"}},{id:179,name:"matrixSetIdentifier",variant:"param",kind:32768,flags:{isOptional:!0},type:{type:"intrinsic",name:"string"}}],type:{type:"reference",target:{sourceFileName:"node_modules/typescript/lib/lib.es5.d.ts",qualifiedName:"Promise"},typeArguments:[{type:"reference",target:{sourceFileName:"node_modules/ol/tilegrid/WMTS.js",qualifiedName:"WMTSTileGrid"},name:"WMTSTileGrid",package:"ol"}],name:"Promise",package:"typescript"}}]},{id:145,name:"getServiceInfo",variant:"declaration",kind:2048,flags:{},sources:[{fileName:"wmts/endpoint.ts",line:61,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wmts/endpoint.ts#L61"}],signatures:[{id:146,name:"getServiceInfo",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:"A Promise which resolves to the endpoint information."}]},sources:[{fileName:"wmts/endpoint.ts",line:61,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wmts/endpoint.ts#L61"}],type:{type:"reference",target:185,name:"WmtsEndpointInfo",package:"@camptocamp/ogc-client"}}]},{id:157,name:"getSingleLayerName",variant:"declaration",kind:2048,flags:{},sources:[{fileName:"wmts/endpoint.ts",line:107,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wmts/endpoint.ts#L107"}],signatures:[{id:158,name:"getSingleLayerName",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:"If only one single layer is available, return its name; otherwise, returns null;"}]},sources:[{fileName:"wmts/endpoint.ts",line:107,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wmts/endpoint.ts#L107"}],type:{type:"intrinsic",name:"string"}}]},{id:163,name:"getTileUrl",variant:"declaration",kind:2048,flags:{},sources:[{fileName:"wmts/endpoint.ts",line:144,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wmts/endpoint.ts#L144"}],signatures:[{id:164,name:"getTileUrl",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:"Generates a URL for a specific tile of a specific layer"}]},sources:[{fileName:"wmts/endpoint.ts",line:144,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wmts/endpoint.ts#L144"}],parameters:[{id:165,name:"layerName",variant:"param",kind:32768,flags:{},type:{type:"intrinsic",name:"string"}},{id:166,name:"styleName",variant:"param",kind:32768,flags:{},type:{type:"intrinsic",name:"string"}},{id:167,name:"matrixSetName",variant:"param",kind:32768,flags:{},type:{type:"intrinsic",name:"string"}},{id:168,name:"tileMatrix",variant:"param",kind:32768,flags:{},type:{type:"intrinsic",name:"string"}},{id:169,name:"tileRow",variant:"param",kind:32768,flags:{},type:{type:"intrinsic",name:"number"}},{id:170,name:"tileCol",variant:"param",kind:32768,flags:{},type:{type:"intrinsic",name:"number"}},{id:171,name:"outputFormat",variant:"param",kind:32768,flags:{isOptional:!0},type:{type:"intrinsic",name:"string"}}],type:{type:"intrinsic",name:"string"}}]},{id:143,name:"isReady",variant:"declaration",kind:2048,flags:{},sources:[{fileName:"wmts/endpoint.ts",line:54,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wmts/endpoint.ts#L54"}],signatures:[{id:144,name:"isReady",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:"Resolves when the endpoint is ready to use. Returns the same endpoint object for convenience."}],blockTags:[{tag:"@throws",content:[]}]},sources:[{fileName:"wmts/endpoint.ts",line:54,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wmts/endpoint.ts#L54"}],type:{type:"reference",target:{sourceFileName:"node_modules/typescript/lib/lib.es5.d.ts",qualifiedName:"Promise"},typeArguments:[{type:"reference",target:135,name:"default",package:"@camptocamp/ogc-client"}],name:"Promise",package:"typescript"}}]}],groups:[{title:"Constructors",children:[136]},{title:"Methods",children:[172,154,159,147,151,149,176,145,157,163,143]}],sources:[{fileName:"wmts/endpoint.ts",line:18,character:21,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wmts/endpoint.ts#L18"}]},{id:314,name:"CollectionParameter",variant:"declaration",kind:256,flags:{},children:[{id:315,name:"name",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:24,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L24"}],type:{type:"intrinsic",name:"string"}},{id:316,name:"title",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"ogc-api/model.ts",line:25,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L25"}],type:{type:"intrinsic",name:"string"}},{id:317,name:"type",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:26,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L26"}],type:{type:"union",types:[{type:"literal",value:"string"},{type:"literal",value:"number"},{type:"literal",value:"linestring"},{type:"literal",value:"polygon"},{type:"literal",value:"point"},{type:"literal",value:"integer"},{type:"literal",value:"date"},{type:"literal",value:"geometry"}]}}],groups:[{title:"Properties",children:[315,316,317]}],sources:[{fileName:"ogc-api/model.ts",line:23,character:17,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L23"}]},{id:216,name:"FetchOptions",variant:"declaration",kind:256,flags:{},children:[{id:219,name:"credentials",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"shared/models.ts",line:23,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/shared/models.ts#L23"}],type:{type:"union",types:[{type:"literal",value:"same-origin"},{type:"literal",value:"include"},{type:"literal",value:"omit"}]}},{id:217,name:"headers",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"shared/models.ts",line:21,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/shared/models.ts#L21"}],type:{type:"reference",target:{sourceFileName:"node_modules/typescript/lib/lib.es5.d.ts",qualifiedName:"Record"},typeArguments:[{type:"intrinsic",name:"string"},{type:"intrinsic",name:"string"}],name:"Record",package:"typescript"}},{id:222,name:"integrity",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"shared/models.ts",line:26,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/shared/models.ts#L26"}],type:{type:"intrinsic",name:"string"}},{id:218,name:"mode",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"shared/models.ts",line:22,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/shared/models.ts#L22"}],type:{type:"union",types:[{type:"literal",value:"same-origin"},{type:"literal",value:"cors"},{type:"literal",value:"no-cors"}]}},{id:220,name:"redirect",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"shared/models.ts",line:24,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/shared/models.ts#L24"}],type:{type:"union",types:[{type:"literal",value:"error"},{type:"literal",value:"follow"}]}},{id:221,name:"referrer",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"shared/models.ts",line:25,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/shared/models.ts#L25"}],type:{type:"intrinsic",name:"string"}}],groups:[{title:"Properties",children:[219,217,222,218,220,221]}],sources:[{fileName:"shared/models.ts",line:20,character:17,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/shared/models.ts#L20"}]},{id:211,name:"LayerStyle",variant:"declaration",kind:256,flags:{},children:[{id:214,name:"legendUrl",variant:"declaration",kind:1024,flags:{isOptional:!0},comment:{summary:[{kind:"text",text:"May not be defined; a GetLegendGraphic operation should work in any case"}]},sources:[{fileName:"shared/models.ts",line:35,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/shared/models.ts#L35"}],type:{type:"intrinsic",name:"string"}},{id:212,name:"name",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"shared/models.ts",line:30,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/shared/models.ts#L30"}],type:{type:"intrinsic",name:"string"}},{id:213,name:"title",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"shared/models.ts",line:31,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/shared/models.ts#L31"}],type:{type:"intrinsic",name:"string"}}],groups:[{title:"Properties",children:[214,212,213]}],sources:[{fileName:"shared/models.ts",line:29,character:17,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/shared/models.ts#L29"}]},{id:318,name:"OgcApiCollectionInfo",variant:"declaration",kind:256,flags:{},children:[{id:324,name:"crs",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:35,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L35"}],type:{type:"array",elementType:{type:"intrinsic",name:"string"}}},{id:320,name:"description",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:31,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L31"}],type:{type:"intrinsic",name:"string"}},{id:330,name:"extent",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"ogc-api/model.ts",line:41,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L41"}],type:{type:"reference",target:215,name:"BoundingBox",package:"@camptocamp/ogc-client"}},{id:323,name:"formats",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:34,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L34"}],type:{type:"array",elementType:{type:"intrinsic",name:"string"}}},{id:321,name:"id",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:32,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L32"}],type:{type:"intrinsic",name:"string"}},{id:326,name:"itemCount",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:37,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L37"}],type:{type:"intrinsic",name:"number"}},{id:322,name:"itemType",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:33,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L33"}],type:{type:"union",types:[{type:"literal",value:"feature"},{type:"literal",value:"record"}]}},{id:327,name:"keywords",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"ogc-api/model.ts",line:38,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L38"}],type:{type:"array",elementType:{type:"intrinsic",name:"string"}}},{id:328,name:"language",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"ogc-api/model.ts",line:39,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L39"}],type:{type:"intrinsic",name:"string"}},{id:342,name:"license",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"ogc-api/model.ts",line:53,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L53"}],type:{type:"intrinsic",name:"string"}},{id:331,name:"publisher",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"ogc-api/model.ts",line:42,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L42"}],type:{type:"reflection",declaration:{id:332,name:"__type",variant:"declaration",kind:65536,flags:{},children:[{id:336,name:"contactInfo",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:46,character:4,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L46"}],type:{type:"reflection",declaration:{id:337,name:"__type",variant:"declaration",kind:65536,flags:{},children:[{id:339,name:"email",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:48,character:6,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L48"}],type:{type:"reflection",declaration:{id:340,name:"__type",variant:"declaration",kind:65536,flags:{},children:[{id:341,name:"work",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:49,character:8,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L49"}],type:{type:"intrinsic",name:"string"}}],groups:[{title:"Properties",children:[341]}],sources:[{fileName:"ogc-api/model.ts",line:48,character:13,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L48"}]}}},{id:338,name:"phone",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:47,character:6,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L47"}],type:{type:"intrinsic",name:"string"}}],groups:[{title:"Properties",children:[339,338]}],sources:[{fileName:"ogc-api/model.ts",line:46,character:17,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L46"}]}}},{id:333,name:"individualName",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:43,character:4,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L43"}],type:{type:"intrinsic",name:"string"}},{id:334,name:"organizationName",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:44,character:4,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L44"}],type:{type:"intrinsic",name:"string"}},{id:335,name:"positionName",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:45,character:4,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L45"}],type:{type:"intrinsic",name:"string"}}],groups:[{title:"Properties",children:[336,333,334,335]}],sources:[{fileName:"ogc-api/model.ts",line:42,character:14,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L42"}]}}},{id:343,name:"queryables",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:54,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L54"}],type:{type:"array",elementType:{type:"reference",target:314,name:"CollectionParameter",package:"@camptocamp/ogc-client"}}},{id:344,name:"sortables",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:55,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L55"}],type:{type:"array",elementType:{type:"reference",target:314,name:"CollectionParameter",package:"@camptocamp/ogc-client"}}},{id:325,name:"storageCrs",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"ogc-api/model.ts",line:36,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L36"}],type:{type:"intrinsic",name:"string"}},{id:319,name:"title",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:30,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L30"}],type:{type:"intrinsic",name:"string"}},{id:329,name:"updated",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"ogc-api/model.ts",line:40,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L40"}],type:{type:"reference",target:{sourceFileName:"node_modules/typescript/lib/lib.es5.d.ts",qualifiedName:"Date"},name:"Date",package:"typescript"}}],groups:[{title:"Properties",children:[324,320,330,323,321,326,322,327,328,342,331,343,344,325,319,329]}],sources:[{fileName:"ogc-api/model.ts",line:29,character:17,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L29"}]},{id:345,name:"OgcApiDocumentLinks",variant:"declaration",kind:256,flags:{},children:[{id:349,name:"href",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:62,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L62"}],type:{type:"intrinsic",name:"string"}},{id:346,name:"rel",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:59,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L59"}],type:{type:"intrinsic",name:"string"}},{id:348,name:"title",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:61,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L61"}],type:{type:"intrinsic",name:"string"}},{id:347,name:"type",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:60,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L60"}],type:{type:"intrinsic",name:"string"}}],groups:[{title:"Properties",children:[349,346,348,347]}],sources:[{fileName:"ogc-api/model.ts",line:58,character:17,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L58"}]},{id:308,name:"OgcApiEndpointInfo",variant:"declaration",kind:256,flags:{},children:[{id:311,name:"attribution",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"ogc-api/model.ts",line:9,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L9"}],type:{type:"intrinsic",name:"string"}},{id:310,name:"description",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"ogc-api/model.ts",line:8,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L8"}],type:{type:"intrinsic",name:"string"}},{id:309,name:"title",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:7,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L7"}],type:{type:"intrinsic",name:"string"}}],groups:[{title:"Properties",children:[311,310,309]}],sources:[{fileName:"ogc-api/model.ts",line:6,character:17,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L6"}]},{id:358,name:"OgcApiRecordContact",variant:"declaration",kind:256,flags:{},children:[{id:361,name:"contactInstructions",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:95,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L95"}],type:{type:"intrinsic",name:"string"}},{id:360,name:"links",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:94,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L94"}],type:{type:"array",elementType:{type:"reference",target:345,name:"OgcApiDocumentLinks",package:"@camptocamp/ogc-client"}}},{id:359,name:"name",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:93,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L93"}],type:{type:"intrinsic",name:"string"}},{id:362,name:"roles",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:96,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L96"}],type:{type:"array",elementType:{type:"intrinsic",name:"string"}}}],groups:[{title:"Properties",children:[361,360,359,362]}],sources:[{fileName:"ogc-api/model.ts",line:92,character:17,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L92"}]},{id:363,name:"OgcApiRecordProperties",variant:"declaration",kind:256,flags:{},children:[{id:374,name:"contacts",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"ogc-api/model.ts",line:109,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L109"}],type:{type:"array",elementType:{type:"reference",target:358,name:"OgcApiRecordContact",package:"@camptocamp/ogc-client"}}},{id:369,name:"description",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"ogc-api/model.ts",line:104,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L104"}],type:{type:"intrinsic",name:"string"}},{id:370,name:"externalId",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"ogc-api/model.ts",line:105,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L105"}],type:{type:"array",elementType:{type:"reference",target:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiItemExternalId"},name:"OgcApiItemExternalId",package:"@camptocamp/ogc-client"}}},{id:375,name:"formats",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"ogc-api/model.ts",line:110,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L110"}],type:{type:"array",elementType:{type:"intrinsic",name:"string"}}},{id:372,name:"keywords",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"ogc-api/model.ts",line:107,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L107"}],type:{type:"array",elementType:{type:"intrinsic",name:"string"}}},{id:373,name:"language",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"ogc-api/model.ts",line:108,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L108"}],type:{type:"intrinsic",name:"string"}},{id:376,name:"license",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"ogc-api/model.ts",line:111,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L111"}],type:{type:"intrinsic",name:"string"}},{id:368,name:"providers",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"ogc-api/model.ts",line:103,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L103"}],type:{type:"array",elementType:{type:"intrinsic",name:"string"}}},{id:366,name:"recordCreated",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"ogc-api/model.ts",line:101,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L101"}],type:{type:"reference",target:{sourceFileName:"node_modules/typescript/lib/lib.es5.d.ts",qualifiedName:"Date"},name:"Date",package:"typescript"}},{id:367,name:"recordUpdated",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"ogc-api/model.ts",line:102,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L102"}],type:{type:"reference",target:{sourceFileName:"node_modules/typescript/lib/lib.es5.d.ts",qualifiedName:"Date"},name:"Date",package:"typescript"}},{id:371,name:"themes",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"ogc-api/model.ts",line:106,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L106"}],type:{type:"array",elementType:{type:"reference",target:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiRecordTheme"},name:"OgcApiRecordTheme",package:"@camptocamp/ogc-client"}}},{id:365,name:"title",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:100,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L100"}],type:{type:"intrinsic",name:"string"}},{id:364,name:"type",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:99,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L99"}],type:{type:"intrinsic",name:"string"}}],groups:[{title:"Properties",children:[374,369,370,375,372,373,376,368,366,367,371,365,364]}],sources:[{fileName:"ogc-api/model.ts",line:98,character:17,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L98"}]},{id:185,name:"WmtsEndpointInfo",variant:"declaration",kind:256,flags:{},children:[{id:192,name:"abstract",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"shared/models.ts",line:11,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/shared/models.ts#L11"}],type:{type:"intrinsic",name:"string"},inheritedFrom:{type:"reference",target:-1,name:"GenericEndpointInfo.abstract"}},{id:194,name:"constraints",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"shared/models.ts",line:13,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/shared/models.ts#L13"}],type:{type:"intrinsic",name:"string"},inheritedFrom:{type:"reference",target:-1,name:"GenericEndpointInfo.constraints"}},{id:193,name:"fees",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"shared/models.ts",line:12,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/shared/models.ts#L12"}],type:{type:"intrinsic",name:"string"},inheritedFrom:{type:"reference",target:-1,name:"GenericEndpointInfo.fees"}},{id:186,name:"getTileUrls",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"wmts/model.ts",line:10,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wmts/model.ts#L10"}],type:{type:"reflection",declaration:{id:187,name:"__type",variant:"declaration",kind:65536,flags:{},children:[{id:188,name:"kvp",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"wmts/model.ts",line:11,character:4,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wmts/model.ts#L11"}],type:{type:"intrinsic",name:"string"}},{id:189,name:"rest",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"wmts/model.ts",line:12,character:4,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wmts/model.ts#L12"}],type:{type:"intrinsic",name:"string"}}],groups:[{title:"Properties",children:[188,189]}],sources:[{fileName:"wmts/model.ts",line:10,character:15,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wmts/model.ts#L10"}]}}},{id:195,name:"keywords",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"shared/models.ts",line:14,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/shared/models.ts#L14"}],type:{type:"array",elementType:{type:"intrinsic",name:"string"}},inheritedFrom:{type:"reference",target:-1,name:"GenericEndpointInfo.keywords"}},{id:190,name:"name",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"shared/models.ts",line:9,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/shared/models.ts#L9"}],type:{type:"intrinsic",name:"string"},inheritedFrom:{type:"reference",target:-1,name:"GenericEndpointInfo.name"}},{id:196,name:"outputFormats",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"shared/models.ts",line:15,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/shared/models.ts#L15"}],type:{type:"array",elementType:{type:"intrinsic",name:"string"}},inheritedFrom:{type:"reference",target:-1,name:"GenericEndpointInfo.outputFormats"}},{id:191,name:"title",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"shared/models.ts",line:10,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/shared/models.ts#L10"}],type:{type:"intrinsic",name:"string"},inheritedFrom:{type:"reference",target:-1,name:"GenericEndpointInfo.title"}}],groups:[{title:"Properties",children:[192,194,193,186,195,190,196,191]}],sources:[{fileName:"wmts/model.ts",line:9,character:17,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wmts/model.ts#L9"}],extendedTypes:[{type:"reference",target:223,name:"GenericEndpointInfo",package:"@camptocamp/ogc-client"}]},{id:197,name:"WmtsLayer",variant:"declaration",kind:256,flags:{},children:[{id:201,name:"defaultStyle",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"wmts/model.ts",line:82,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wmts/model.ts#L82"}],type:{type:"intrinsic",name:"string"}},{id:204,name:"dimensions",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"wmts/model.ts",line:85,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wmts/model.ts#L85"}],type:{type:"array",elementType:{type:"reference",target:{sourceFileName:"src/wmts/model.ts",qualifiedName:"LayerDimension"},name:"LayerDimension",package:"@camptocamp/ogc-client"}}},{id:203,name:"latLonBoundingBox",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"wmts/model.ts",line:84,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wmts/model.ts#L84"}],type:{type:"reference",target:215,name:"BoundingBox",package:"@camptocamp/ogc-client"}},{id:202,name:"matrixSets",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"wmts/model.ts",line:83,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wmts/model.ts#L83"}],type:{type:"array",elementType:{type:"reference",target:{sourceFileName:"src/wmts/model.ts",qualifiedName:"MatrixSetLink"},name:"MatrixSetLink",package:"@camptocamp/ogc-client"}}},{id:198,name:"name",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"wmts/model.ts",line:79,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wmts/model.ts#L79"}],type:{type:"intrinsic",name:"string"}},{id:199,name:"resourceLinks",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"wmts/model.ts",line:80,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wmts/model.ts#L80"}],type:{type:"array",elementType:{type:"reference",target:181,name:"WmtsLayerResourceLink",package:"@camptocamp/ogc-client"}}},{id:200,name:"styles",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"wmts/model.ts",line:81,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wmts/model.ts#L81"}],type:{type:"array",elementType:{type:"reference",target:211,name:"LayerStyle",package:"@camptocamp/ogc-client"}}}],groups:[{title:"Properties",children:[201,204,203,202,198,199,200]}],sources:[{fileName:"wmts/model.ts",line:78,character:17,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wmts/model.ts#L78"}]},{id:181,name:"WmtsLayerResourceLink",variant:"declaration",kind:256,flags:{},children:[{id:183,name:"encoding",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"wmts/model.ts",line:66,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wmts/model.ts#L66"}],type:{type:"reference",target:{sourceFileName:"src/wmts/model.ts",qualifiedName:"WmtsRequestEncoding"},name:"WmtsRequestEncoding",package:"@camptocamp/ogc-client"}},{id:184,name:"format",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"wmts/model.ts",line:67,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wmts/model.ts#L67"}],type:{type:"intrinsic",name:"string"}},{id:182,name:"url",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"wmts/model.ts",line:65,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wmts/model.ts#L65"}],type:{type:"intrinsic",name:"string"}}],groups:[{title:"Properties",children:[183,184,182]}],sources:[{fileName:"wmts/model.ts",line:64,character:17,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wmts/model.ts#L64"}]},{id:205,name:"WmtsMatrixSet",variant:"declaration",kind:256,flags:{},children:[{id:209,name:"boundingBox",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"wmts/model.ts",line:46,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wmts/model.ts#L46"}],type:{type:"reference",target:215,name:"BoundingBox",package:"@camptocamp/ogc-client"}},{id:208,name:"crs",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"wmts/model.ts",line:45,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wmts/model.ts#L45"}],type:{type:"intrinsic",name:"string"}},{id:206,name:"identifier",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"wmts/model.ts",line:43,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wmts/model.ts#L43"}],type:{type:"intrinsic",name:"string"}},{id:210,name:"tileMatrices",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"wmts/model.ts",line:47,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wmts/model.ts#L47"}],type:{type:"array",elementType:{type:"reference",target:{sourceFileName:"src/wmts/model.ts",qualifiedName:"TileMatrix"},name:"TileMatrix",package:"@camptocamp/ogc-client"}}},{id:207,name:"wellKnownScaleSet",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"wmts/model.ts",line:44,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wmts/model.ts#L44"}],type:{type:"intrinsic",name:"string"}}],groups:[{title:"Properties",children:[209,208,206,210,207]}],sources:[{fileName:"wmts/model.ts",line:42,character:17,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wmts/model.ts#L42"}]},{id:215,name:"BoundingBox",variant:"declaration",kind:2097152,flags:{},comment:{summary:[{kind:"text",text:"Expressed as minx, miny, maxx, maxy"}]},sources:[{fileName:"shared/models.ts",line:4,character:12,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/shared/models.ts#L4"}],type:{type:"tuple",elements:[{type:"intrinsic",name:"number"},{type:"intrinsic",name:"number"},{type:"intrinsic",name:"number"},{type:"intrinsic",name:"number"}]}},{id:313,name:"CollectionParameterType",variant:"declaration",kind:2097152,flags:{},sources:[{fileName:"ogc-api/model.ts",line:22,character:12,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L22"}],type:{type:"indexedAccess",indexType:{type:"intrinsic",name:"number"},objectType:{type:"query",queryType:{type:"reference",target:312,name:"CollectionParameterTypes",package:"@camptocamp/ogc-client"}}}},{id:307,name:"ConformanceClass",variant:"declaration",kind:2097152,flags:{},sources:[{fileName:"ogc-api/model.ts",line:4,character:12,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L4"}],type:{type:"intrinsic",name:"string"}},{id:69,name:"FeatureGeometryType",variant:"declaration",kind:2097152,flags:{},sources:[{fileName:"wfs/model.ts",line:17,character:12,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/model.ts#L17"}],type:{type:"union",types:[{type:"literal",value:"linestring"},{type:"literal",value:"polygon"},{type:"literal",value:"point"},{type:"literal",value:"multilinestring"},{type:"literal",value:"multipolygon"},{type:"literal",value:"multipoint"},{type:"literal",value:"unknown"}]}},{id:70,name:"FeaturePropertyType",variant:"declaration",kind:2097152,flags:{},sources:[{fileName:"wfs/model.ts",line:15,character:12,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/model.ts#L15"}],type:{type:"union",types:[{type:"intrinsic",name:"string"},{type:"intrinsic",name:"number"},{type:"intrinsic",name:"boolean"}]}},{id:223,name:"GenericEndpointInfo",variant:"declaration",kind:2097152,flags:{},sources:[{fileName:"shared/models.ts",line:8,character:12,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/shared/models.ts#L8"}],type:{type:"reflection",declaration:{id:224,name:"__type",variant:"declaration",kind:65536,flags:{},children:[{id:227,name:"abstract",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"shared/models.ts",line:11,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/shared/models.ts#L11"}],type:{type:"intrinsic",name:"string"}},{id:229,name:"constraints",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"shared/models.ts",line:13,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/shared/models.ts#L13"}],type:{type:"intrinsic",name:"string"}},{id:228,name:"fees",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"shared/models.ts",line:12,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/shared/models.ts#L12"}],type:{type:"intrinsic",name:"string"}},{id:230,name:"keywords",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"shared/models.ts",line:14,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/shared/models.ts#L14"}],type:{type:"array",elementType:{type:"intrinsic",name:"string"}}},{id:225,name:"name",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"shared/models.ts",line:9,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/shared/models.ts#L9"}],type:{type:"intrinsic",name:"string"}},{id:231,name:"outputFormats",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"shared/models.ts",line:15,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/shared/models.ts#L15"}],type:{type:"array",elementType:{type:"reference",target:{sourceFileName:"src/shared/models.ts",qualifiedName:"MimeType"},name:"MimeType",package:"@camptocamp/ogc-client"}}},{id:226,name:"title",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"shared/models.ts",line:10,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/shared/models.ts#L10"}],type:{type:"intrinsic",name:"string"}}],groups:[{title:"Properties",children:[227,229,228,230,225,231,226]}],sources:[{fileName:"shared/models.ts",line:8,character:34,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/shared/models.ts#L8"}]}},extendedBy:[{type:"reference",target:185,name:"WmtsEndpointInfo"}]},{id:386,name:"OgcApiCollectionItem",variant:"declaration",kind:2097152,flags:{},sources:[{fileName:"ogc-api/model.ts",line:124,character:12,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L124"}],type:{type:"reference",target:377,name:"OgcApiRecord",package:"@camptocamp/ogc-client"}},{id:350,name:"OgcApiDocument",variant:"declaration",kind:2097152,flags:{},sources:[{fileName:"ogc-api/model.ts",line:65,character:12,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L65"}],type:{type:"intersection",types:[{type:"reflection",declaration:{id:351,name:"__type",variant:"declaration",kind:65536,flags:{},children:[{id:352,name:"links",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:66,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L66"}],type:{type:"array",elementType:{type:"reflection",declaration:{id:353,name:"__type",variant:"declaration",kind:65536,flags:{},children:[{id:357,name:"href",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:70,character:4,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L70"}],type:{type:"intrinsic",name:"string"}},{id:354,name:"rel",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:67,character:4,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L67"}],type:{type:"intrinsic",name:"string"}},{id:356,name:"title",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:69,character:4,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L69"}],type:{type:"intrinsic",name:"string"}},{id:355,name:"type",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:68,character:4,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L68"}],type:{type:"intrinsic",name:"string"}}],groups:[{title:"Properties",children:[357,354,356,355]}],sources:[{fileName:"ogc-api/model.ts",line:66,character:9,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L66"}]}}}}],groups:[{title:"Properties",children:[352]}],sources:[{fileName:"ogc-api/model.ts",line:65,character:29,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L65"}]}},{type:"reference",target:{sourceFileName:"node_modules/typescript/lib/lib.es5.d.ts",qualifiedName:"Record"},typeArguments:[{type:"intrinsic",name:"string"},{type:"intrinsic",name:"unknown"}],name:"Record",package:"typescript"}]}},{id:377,name:"OgcApiRecord",variant:"declaration",kind:2097152,flags:{},sources:[{fileName:"ogc-api/model.ts",line:114,character:12,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L114"}],type:{type:"reflection",declaration:{id:378,name:"__type",variant:"declaration",kind:65536,flags:{},children:[{id:385,name:"conformsTo",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"ogc-api/model.ts",line:121,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L121"}],type:{type:"array",elementType:{type:"intrinsic",name:"string"}}},{id:382,name:"geometry",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:118,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L118"}],type:{type:"reference",target:{sourceFileName:"node_modules/@types/geojson/index.d.ts",qualifiedName:"Geometry"},name:"Geometry",package:"@types/geojson"}},{id:379,name:"id",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:115,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L115"}],type:{type:"intrinsic",name:"string"}},{id:384,name:"links",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:120,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L120"}],type:{type:"array",elementType:{type:"reference",target:345,name:"OgcApiDocumentLinks",package:"@camptocamp/ogc-client"}}},{id:383,name:"properties",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:119,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L119"}],type:{type:"reference",target:363,name:"OgcApiRecordProperties",package:"@camptocamp/ogc-client"}},{id:381,name:"time",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:117,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L117"}],type:{type:"reference",target:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiTime"},name:"OgcApiTime",package:"@camptocamp/ogc-client"}},{id:380,name:"type",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:116,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L116"}],type:{type:"intrinsic",name:"string"}}],groups:[{title:"Properties",children:[385,382,379,384,383,381,380]}],sources:[{fileName:"ogc-api/model.ts",line:114,character:27,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L114"}]}}},{id:63,name:"WfsFeatureTypeBrief",variant:"declaration",kind:2097152,flags:{},sources:[{fileName:"wfs/model.ts",line:26,character:12,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/model.ts#L26"}],type:{type:"reflection",declaration:{id:64,name:"__type",variant:"declaration",kind:65536,flags:{},children:[{id:67,name:"abstract",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"wfs/model.ts",line:29,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/model.ts#L29"}],type:{type:"intrinsic",name:"string"}},{id:68,name:"boundingBox",variant:"declaration",kind:1024,flags:{isOptional:!0},comment:{summary:[{kind:"text",text:"Expressed in latitudes and longitudes"}]},sources:[{fileName:"wfs/model.ts",line:33,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/model.ts#L33"}],type:{type:"reference",target:215,name:"BoundingBox",package:"@camptocamp/ogc-client"}},{id:65,name:"name",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"wfs/model.ts",line:27,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/model.ts#L27"}],type:{type:"intrinsic",name:"string"}},{id:66,name:"title",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"wfs/model.ts",line:28,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/model.ts#L28"}],type:{type:"intrinsic",name:"string"}}],groups:[{title:"Properties",children:[67,68,65,66]}],sources:[{fileName:"wfs/model.ts",line:26,character:34,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/model.ts#L26"}]}}},{id:71,name:"WfsFeatureTypeFull",variant:"declaration",kind:2097152,flags:{},sources:[{fileName:"wfs/model.ts",line:49,character:12,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/model.ts#L49"}],type:{type:"reflection",declaration:{id:72,name:"__type",variant:"declaration",kind:65536,flags:{},children:[{id:75,name:"abstract",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"wfs/model.ts",line:52,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/model.ts#L52"}],type:{type:"intrinsic",name:"string"}},{id:76,name:"boundingBox",variant:"declaration",kind:1024,flags:{isOptional:!0},comment:{summary:[{kind:"text",text:"Expressed in latitudes and longitudes"}]},sources:[{fileName:"wfs/model.ts",line:56,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/model.ts#L56"}],type:{type:"reference",target:215,name:"BoundingBox",package:"@camptocamp/ogc-client"}},{id:77,name:"defaultCrs",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"wfs/model.ts",line:57,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/model.ts#L57"}],type:{type:"reference",target:{sourceFileName:"src/shared/models.ts",qualifiedName:"CrsCode"},name:"CrsCode",package:"@camptocamp/ogc-client"}},{id:81,name:"geometryName",variant:"declaration",kind:1024,flags:{isOptional:!0},comment:{summary:[{kind:"text",text:"Not defined if no geometry present"}]},sources:[{fileName:"wfs/model.ts",line:67,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/model.ts#L67"}],type:{type:"intrinsic",name:"string"}},{id:82,name:"geometryType",variant:"declaration",kind:1024,flags:{isOptional:!0},comment:{summary:[{kind:"text",text:"Not defined if no geometry present"}]},sources:[{fileName:"wfs/model.ts",line:71,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/model.ts#L71"}],type:{type:"reference",target:69,name:"FeatureGeometryType",package:"@camptocamp/ogc-client"}},{id:73,name:"name",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"wfs/model.ts",line:50,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/model.ts#L50"}],type:{type:"intrinsic",name:"string"}},{id:83,name:"objectCount",variant:"declaration",kind:1024,flags:{isOptional:!0},comment:{summary:[{kind:"text",text:"Not defined if object count could not be determined"}]},sources:[{fileName:"wfs/model.ts",line:75,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/model.ts#L75"}],type:{type:"intrinsic",name:"number"}},{id:78,name:"otherCrs",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"wfs/model.ts",line:58,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/model.ts#L58"}],type:{type:"array",elementType:{type:"reference",target:{sourceFileName:"src/shared/models.ts",qualifiedName:"CrsCode"},name:"CrsCode",package:"@camptocamp/ogc-client"}}},{id:79,name:"outputFormats",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"wfs/model.ts",line:59,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/model.ts#L59"}],type:{type:"array",elementType:{type:"reference",target:{sourceFileName:"src/shared/models.ts",qualifiedName:"MimeType"},name:"MimeType",package:"@camptocamp/ogc-client"}}},{id:80,name:"properties",variant:"declaration",kind:1024,flags:{},comment:{summary:[{kind:"text",text:"These properties will *not* include the feature geometry"}]},sources:[{fileName:"wfs/model.ts",line:63,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/model.ts#L63"}],type:{type:"reference",target:{sourceFileName:"node_modules/typescript/lib/lib.es5.d.ts",qualifiedName:"Record"},typeArguments:[{type:"intrinsic",name:"string"},{type:"reference",target:70,name:"FeaturePropertyType",package:"@camptocamp/ogc-client"}],name:"Record",package:"typescript"}},{id:74,name:"title",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"wfs/model.ts",line:51,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/model.ts#L51"}],type:{type:"intrinsic",name:"string"}}],groups:[{title:"Properties",children:[75,76,77,81,82,73,83,78,79,80,74]}],sources:[{fileName:"wfs/model.ts",line:49,character:33,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/model.ts#L49"}]}}},{id:84,name:"WfsFeatureTypePropDetails",variant:"declaration",kind:2097152,flags:{},sources:[{fileName:"wfs/model.ts",line:94,character:12,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/model.ts#L94"}],type:{type:"reflection",declaration:{id:85,name:"__type",variant:"declaration",kind:65536,flags:{},children:[{id:86,name:"uniqueValues",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"wfs/model.ts",line:95,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/model.ts#L95"}],type:{type:"array",elementType:{type:"reference",target:88,name:"WfsFeatureTypeUniqueValue",package:"@camptocamp/ogc-client"}}}],groups:[{title:"Properties",children:[86]}],sources:[{fileName:"wfs/model.ts",line:94,character:40,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/model.ts#L94"}]}}},{id:87,name:"WfsFeatureTypePropsDetails",variant:"declaration",kind:2097152,flags:{},sources:[{fileName:"wfs/model.ts",line:98,character:12,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/model.ts#L98"}],type:{type:"reference",target:{sourceFileName:"node_modules/typescript/lib/lib.es5.d.ts",qualifiedName:"Record"},typeArguments:[{type:"intrinsic",name:"string"},{type:"reference",target:84,name:"WfsFeatureTypePropDetails",package:"@camptocamp/ogc-client"}],name:"Record",package:"typescript"}},{id:54,name:"WfsFeatureTypeSummary",variant:"declaration",kind:2097152,flags:{},sources:[{fileName:"wfs/model.ts",line:36,character:12,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/model.ts#L36"}],type:{type:"reflection",declaration:{id:55,name:"__type",variant:"declaration",kind:65536,flags:{},children:[{id:58,name:"abstract",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"wfs/model.ts",line:39,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/model.ts#L39"}],type:{type:"intrinsic",name:"string"}},{id:59,name:"boundingBox",variant:"declaration",kind:1024,flags:{isOptional:!0},comment:{summary:[{kind:"text",text:"Expressed in latitudes and longitudes"}]},sources:[{fileName:"wfs/model.ts",line:43,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/model.ts#L43"}],type:{type:"reference",target:215,name:"BoundingBox",package:"@camptocamp/ogc-client"}},{id:60,name:"defaultCrs",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"wfs/model.ts",line:44,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/model.ts#L44"}],type:{type:"reference",target:{sourceFileName:"src/shared/models.ts",qualifiedName:"CrsCode"},name:"CrsCode",package:"@camptocamp/ogc-client"}},{id:56,name:"name",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"wfs/model.ts",line:37,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/model.ts#L37"}],type:{type:"intrinsic",name:"string"}},{id:61,name:"otherCrs",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"wfs/model.ts",line:45,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/model.ts#L45"}],type:{type:"array",elementType:{type:"reference",target:{sourceFileName:"src/shared/models.ts",qualifiedName:"CrsCode"},name:"CrsCode",package:"@camptocamp/ogc-client"}}},{id:62,name:"outputFormats",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"wfs/model.ts",line:46,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/model.ts#L46"}],type:{type:"array",elementType:{type:"reference",target:{sourceFileName:"src/shared/models.ts",qualifiedName:"MimeType"},name:"MimeType",package:"@camptocamp/ogc-client"}}},{id:57,name:"title",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"wfs/model.ts",line:38,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/model.ts#L38"}],type:{type:"intrinsic",name:"string"}}],groups:[{title:"Properties",children:[58,59,60,56,61,62,57]}],sources:[{fileName:"wfs/model.ts",line:36,character:36,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/model.ts#L36"}]}}},{id:88,name:"WfsFeatureTypeUniqueValue",variant:"declaration",kind:2097152,flags:{},sources:[{fileName:"wfs/model.ts",line:89,character:12,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/model.ts#L89"}],type:{type:"reflection",declaration:{id:89,name:"__type",variant:"declaration",kind:65536,flags:{},children:[{id:91,name:"count",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"wfs/model.ts",line:91,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/model.ts#L91"}],type:{type:"intrinsic",name:"number"}},{id:90,name:"value",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"wfs/model.ts",line:90,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/model.ts#L90"}],type:{type:"union",types:[{type:"intrinsic",name:"number"},{type:"intrinsic",name:"boolean"},{type:"intrinsic",name:"string"}]}}],groups:[{title:"Properties",children:[91,90]}],sources:[{fileName:"wfs/model.ts",line:89,character:40,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/model.ts#L89"}]}}},{id:50,name:"WfsFeatureWithProps",variant:"declaration",kind:2097152,flags:{},sources:[{fileName:"wfs/model.ts",line:78,character:12,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/model.ts#L78"}],type:{type:"reflection",declaration:{id:51,name:"__type",variant:"declaration",kind:65536,flags:{},children:[{id:52,name:"id",variant:"declaration",kind:1024,flags:{},comment:{summary:[{kind:"text",text:"Feature id"}]},sources:[{fileName:"wfs/model.ts",line:82,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/model.ts#L82"}],type:{type:"intrinsic",name:"string"}},{id:53,name:"properties",variant:"declaration",kind:1024,flags:{},comment:{summary:[{kind:"text",text:"Feature properties"}]},sources:[{fileName:"wfs/model.ts",line:86,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/model.ts#L86"}],type:{type:"reference",target:{sourceFileName:"node_modules/typescript/lib/lib.es5.d.ts",qualifiedName:"Record"},typeArguments:[{type:"intrinsic",name:"string"},{type:"reference",target:70,name:"FeaturePropertyType",package:"@camptocamp/ogc-client"}],name:"Record",package:"typescript"}}],groups:[{title:"Properties",children:[52,53]}],sources:[{fileName:"wfs/model.ts",line:78,character:34,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/model.ts#L78"}]}}},{id:49,name:"WfsVersion",variant:"declaration",kind:2097152,flags:{},sources:[{fileName:"wfs/model.ts",line:3,character:12,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wfs/model.ts#L3"}],type:{type:"union",types:[{type:"literal",value:"1.0.0"},{type:"literal",value:"1.1.0"},{type:"literal",value:"2.0.0"}]}},{id:113,name:"WmsLayerFull",variant:"declaration",kind:2097152,flags:{},sources:[{fileName:"wms/model.ts",line:22,character:12,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wms/model.ts#L22"}],type:{type:"reflection",declaration:{id:114,name:"__type",variant:"declaration",kind:65536,flags:{},children:[{id:117,name:"abstract",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"wms/model.ts",line:28,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wms/model.ts#L28"}],type:{type:"intrinsic",name:"string"}},{id:121,name:"attribution",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"wms/model.ts",line:35,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wms/model.ts#L35"}],type:{type:"reference",target:130,name:"WmtsLayerAttribution",package:"@camptocamp/ogc-client"}},{id:118,name:"availableCrs",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"wms/model.ts",line:29,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wms/model.ts#L29"}],type:{type:"array",elementType:{type:"reference",target:{sourceFileName:"src/shared/models.ts",qualifiedName:"CrsCode"},name:"CrsCode",package:"@camptocamp/ogc-client"}}},{id:120,name:"boundingBoxes",variant:"declaration",kind:1024,flags:{},comment:{summary:[{kind:"text",text:"Dict of bounding boxes where keys are CRS codes"}]},sources:[{fileName:"wms/model.ts",line:34,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wms/model.ts#L34"}],type:{type:"reference",target:{sourceFileName:"node_modules/typescript/lib/lib.es5.d.ts",qualifiedName:"Record"},typeArguments:[{type:"reference",target:{sourceFileName:"src/shared/models.ts",qualifiedName:"CrsCode"},name:"CrsCode",package:"@camptocamp/ogc-client"},{type:"reference",target:215,name:"BoundingBox",package:"@camptocamp/ogc-client"}],name:"Record",package:"typescript"}},{id:122,name:"children",variant:"declaration",kind:1024,flags:{isOptional:!0},comment:{summary:[{kind:"text",text:"Not defined if the layer is a leaf in the tree"}]},sources:[{fileName:"wms/model.ts",line:39,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wms/model.ts#L39"}],type:{type:"array",elementType:{type:"reference",target:113,name:"WmsLayerFull",package:"@camptocamp/ogc-client"}}},{id:115,name:"name",variant:"declaration",kind:1024,flags:{isOptional:!0},comment:{summary:[{kind:"text",text:"The layer is renderable if defined"}]},sources:[{fileName:"wms/model.ts",line:26,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wms/model.ts#L26"}],type:{type:"intrinsic",name:"string"}},{id:119,name:"styles",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"wms/model.ts",line:30,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wms/model.ts#L30"}],type:{type:"array",elementType:{type:"reference",target:211,name:"LayerStyle",package:"@camptocamp/ogc-client"}}},{id:116,name:"title",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"wms/model.ts",line:27,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wms/model.ts#L27"}],type:{type:"intrinsic",name:"string"}}],groups:[{title:"Properties",children:[117,121,118,120,122,115,119,116]}],sources:[{fileName:"wms/model.ts",line:22,character:27,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wms/model.ts#L22"}]}}},{id:124,name:"WmsLayerSummary",variant:"declaration",kind:2097152,flags:{},sources:[{fileName:"wms/model.ts",line:9,character:12,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wms/model.ts#L9"}],type:{type:"reflection",declaration:{id:125,name:"__type",variant:"declaration",kind:65536,flags:{},children:[{id:128,name:"abstract",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"wms/model.ts",line:15,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wms/model.ts#L15"}],type:{type:"intrinsic",name:"string"}},{id:129,name:"children",variant:"declaration",kind:1024,flags:{isOptional:!0},comment:{summary:[{kind:"text",text:"Not defined if the layer is a leaf in the tree"}]},sources:[{fileName:"wms/model.ts",line:19,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wms/model.ts#L19"}],type:{type:"array",elementType:{type:"reference",target:124,name:"WmsLayerSummary",package:"@camptocamp/ogc-client"}}},{id:126,name:"name",variant:"declaration",kind:1024,flags:{isOptional:!0},comment:{summary:[{kind:"text",text:"The layer is renderable if defined"}]},sources:[{fileName:"wms/model.ts",line:13,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wms/model.ts#L13"}],type:{type:"intrinsic",name:"string"}},{id:127,name:"title",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"wms/model.ts",line:14,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wms/model.ts#L14"}],type:{type:"intrinsic",name:"string"}}],groups:[{title:"Properties",children:[128,129,126,127]}],sources:[{fileName:"wms/model.ts",line:9,character:30,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wms/model.ts#L9"}]}}},{id:123,name:"WmsVersion",variant:"declaration",kind:2097152,flags:{},sources:[{fileName:"wms/model.ts",line:42,character:12,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wms/model.ts#L42"}],type:{type:"union",types:[{type:"literal",value:"1.1.0"},{type:"literal",value:"1.1.1"},{type:"literal",value:"1.3.0"}]}},{id:130,name:"WmtsLayerAttribution",variant:"declaration",kind:2097152,flags:{},sources:[{fileName:"wms/model.ts",line:3,character:12,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wms/model.ts#L3"}],type:{type:"reflection",declaration:{id:131,name:"__type",variant:"declaration",kind:65536,flags:{},children:[{id:134,name:"logoUrl",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"wms/model.ts",line:6,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wms/model.ts#L6"}],type:{type:"intrinsic",name:"string"}},{id:132,name:"title",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"wms/model.ts",line:4,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wms/model.ts#L4"}],type:{type:"intrinsic",name:"string"}},{id:133,name:"url",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"wms/model.ts",line:5,character:2,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wms/model.ts#L5"}],type:{type:"intrinsic",name:"string"}}],groups:[{title:"Properties",children:[134,132,133]}],sources:[{fileName:"wms/model.ts",line:3,character:35,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wms/model.ts#L3"}]}}},{id:180,name:"WmtsLayerDimensionValue",variant:"declaration",kind:2097152,flags:{},sources:[{fileName:"wmts/model.ts",line:70,character:12,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/wmts/model.ts#L70"}],type:{type:"intrinsic",name:"string"}},{id:312,name:"CollectionParameterTypes",variant:"declaration",kind:32,flags:{isConst:!0},sources:[{fileName:"ogc-api/model.ts",line:12,character:13,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/ogc-api/model.ts#L12"}],type:{type:"typeOperator",operator:"readonly",target:{type:"tuple",elements:[{type:"literal",value:"string"},{type:"literal",value:"number"},{type:"literal",value:"integer"},{type:"literal",value:"date"},{type:"literal",value:"point"},{type:"literal",value:"linestring"},{type:"literal",value:"polygon"},{type:"literal",value:"geometry"}]}},defaultValue:"..."},{id:305,name:"enableFallbackWithoutWorker",variant:"declaration",kind:64,flags:{},sources:[{fileName:"worker/index.ts",line:21,character:16,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/worker/index.ts#L21"}],signatures:[{id:306,name:"enableFallbackWithoutWorker",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:"Call once to disable Worker usage completely"}]},sources:[{fileName:"worker/index.ts",line:21,character:16,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/worker/index.ts#L21"}],type:{type:"intrinsic",name:"void"}}]},{id:303,name:"resetFetchOptions",variant:"declaration",kind:64,flags:{},sources:[{fileName:"shared/http-utils.ts",line:30,character:16,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/shared/http-utils.ts#L30"}],signatures:[{id:304,name:"resetFetchOptions",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:"Resets advanced fetch() options to their defaults"}]},sources:[{fileName:"shared/http-utils.ts",line:30,character:16,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/shared/http-utils.ts#L30"}],type:{type:"intrinsic",name:"void"}}]},{id:300,name:"setFetchOptions",variant:"declaration",kind:64,flags:{},sources:[{fileName:"shared/http-utils.ts",line:15,character:16,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/shared/http-utils.ts#L15"}],signatures:[{id:301,name:"setFetchOptions",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:"Set advanced options to be used by all fetch() calls"}]},sources:[{fileName:"shared/http-utils.ts",line:15,character:16,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/shared/http-utils.ts#L15"}],parameters:[{id:302,name:"options",variant:"param",kind:32768,flags:{},type:{type:"reference",target:216,name:"FetchOptions",package:"@camptocamp/ogc-client"}}],type:{type:"intrinsic",name:"void"}}]},{id:296,name:"sharedFetch",variant:"declaration",kind:64,flags:{},sources:[{fileName:"shared/http-utils.ts",line:46,character:16,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/shared/http-utils.ts#L46"}],signatures:[{id:297,name:"sharedFetch",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:"Returns a promise equivalent to "},{kind:"code",text:"`fetch(url)`"},{kind:"text",text:` but guarded against +this version will most likely be used instead of the highest supported one.`}]},sources:[{fileName:"wms/endpoint.ts",line:120,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wms/endpoint.ts#L120"}],type:{type:"reference",target:123,name:"WmsVersion",package:"@camptocamp/ogc-client"}}]},{id:100,name:"isReady",variant:"declaration",kind:2048,flags:{},sources:[{fileName:"wms/endpoint.ts",line:45,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wms/endpoint.ts#L45"}],signatures:[{id:101,name:"isReady",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:"Resolves when the endpoint is ready to use. Returns the same endpoint object for convenience."}],blockTags:[{tag:"@throws",content:[]}]},sources:[{fileName:"wms/endpoint.ts",line:45,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wms/endpoint.ts#L45"}],type:{type:"reference",target:{sourceFileName:"node_modules/typescript/lib/lib.es5.d.ts",qualifiedName:"Promise"},typeArguments:[{type:"reference",target:92,name:"default",package:"@camptocamp/ogc-client"}],name:"Promise",package:"typescript"}}]}],groups:[{title:"Constructors",children:[93]},{title:"Methods",children:[106,104,102,109,111,100]}],sources:[{fileName:"wms/endpoint.ts",line:10,character:21,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wms/endpoint.ts#L10"}]},{id:135,name:"WmtsEndpoint",variant:"declaration",kind:128,flags:{},comment:{summary:[{kind:"text",text:"Represents a WMTS endpoint advertising several layers."}]},children:[{id:136,name:"constructor",variant:"declaration",kind:512,flags:{},sources:[{fileName:"wmts/endpoint.ts",line:29,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wmts/endpoint.ts#L29"}],signatures:[{id:137,name:"new WmtsEndpoint",variant:"signature",kind:16384,flags:{},comment:{summary:[{kind:"text",text:"Creates a new WMTS endpoint; wait for the "},{kind:"code",text:"`isReady()`"},{kind:"text",text:" promise before using the endpoint methods."}]},sources:[{fileName:"wmts/endpoint.ts",line:29,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wmts/endpoint.ts#L29"}],parameters:[{id:138,name:"url",variant:"param",kind:32768,flags:{},comment:{summary:[{kind:"text",text:`WMTS endpoint url; can contain any query parameters, these will be used to + initialize the endpoint`}]},type:{type:"intrinsic",name:"string"}}],type:{type:"reference",target:135,name:"default",package:"@camptocamp/ogc-client"}}]},{id:172,name:"getDefaultDimensions",variant:"declaration",kind:2048,flags:{},sources:[{fileName:"wmts/endpoint.ts",line:172,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wmts/endpoint.ts#L172"}],signatures:[{id:173,name:"getDefaultDimensions",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:"Return an object with all defined dimensions for the layer, as well as their default values."}]},sources:[{fileName:"wmts/endpoint.ts",line:172,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wmts/endpoint.ts#L172"}],parameters:[{id:174,name:"layerName",variant:"param",kind:32768,flags:{},type:{type:"intrinsic",name:"string"}}],type:{type:"reference",target:{sourceFileName:"node_modules/typescript/lib/lib.es5.d.ts",qualifiedName:"Record"},typeArguments:[{type:"intrinsic",name:"string"},{type:"intrinsic",name:"string"}],name:"Record",package:"typescript"}}]},{id:154,name:"getLayerByName",variant:"declaration",kind:2048,flags:{},sources:[{fileName:"wmts/endpoint.ts",line:99,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wmts/endpoint.ts#L99"}],signatures:[{id:155,name:"getLayerByName",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:`Returns a complete layer based on its name +Note: the first matching layer will be returned`}],blockTags:[{tag:"@returns",content:[{kind:"text",text:"return null if layer was not found"}]}]},sources:[{fileName:"wmts/endpoint.ts",line:99,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wmts/endpoint.ts#L99"}],parameters:[{id:156,name:"name",variant:"param",kind:32768,flags:{},comment:{summary:[{kind:"text",text:"Layer name property"}]},type:{type:"intrinsic",name:"string"}}],type:{type:"reference",target:197,name:"WmtsLayer",package:"@camptocamp/ogc-client"}}]},{id:159,name:"getLayerResourceLink",variant:"declaration",kind:2048,flags:{},sources:[{fileName:"wmts/endpoint.ts",line:119,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wmts/endpoint.ts#L119"}],signatures:[{id:160,name:"getLayerResourceLink",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:`Returns a layer resource link. If no type hint is specified, the first resource will be returned. +A resource link contains a URL as well as an image format and a request encoding (KVP or REST).`}]},sources:[{fileName:"wmts/endpoint.ts",line:119,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wmts/endpoint.ts#L119"}],parameters:[{id:161,name:"layerName",variant:"param",kind:32768,flags:{},type:{type:"intrinsic",name:"string"}},{id:162,name:"formatHint",variant:"param",kind:32768,flags:{isOptional:!0},type:{type:"intrinsic",name:"string"}}],type:{type:"reference",target:181,name:"WmtsLayerResourceLink",package:"@camptocamp/ogc-client"}}]},{id:147,name:"getLayers",variant:"declaration",kind:2048,flags:{},sources:[{fileName:"wmts/endpoint.ts",line:68,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wmts/endpoint.ts#L68"}],signatures:[{id:148,name:"getLayers",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:"Returns the layers advertised in the endpoint."}]},sources:[{fileName:"wmts/endpoint.ts",line:68,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wmts/endpoint.ts#L68"}],type:{type:"array",elementType:{type:"reference",target:197,name:"WmtsLayer",package:"@camptocamp/ogc-client"}}}]},{id:151,name:"getMatrixSetByIdentifier",variant:"declaration",kind:2048,flags:{},sources:[{fileName:"wmts/endpoint.ts",line:84,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wmts/endpoint.ts#L84"}],signatures:[{id:152,name:"getMatrixSetByIdentifier",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:"Returns a matrix set by identifier"}],blockTags:[{tag:"@returns",content:[{kind:"text",text:"return null if matrix set was not found"}]}]},sources:[{fileName:"wmts/endpoint.ts",line:84,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wmts/endpoint.ts#L84"}],parameters:[{id:153,name:"identifier",variant:"param",kind:32768,flags:{},comment:{summary:[{kind:"text",text:"Matrix set identifier"}]},type:{type:"intrinsic",name:"string"}}],type:{type:"reference",target:205,name:"WmtsMatrixSet",package:"@camptocamp/ogc-client"}}]},{id:149,name:"getMatrixSets",variant:"declaration",kind:2048,flags:{},sources:[{fileName:"wmts/endpoint.ts",line:75,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wmts/endpoint.ts#L75"}],signatures:[{id:150,name:"getMatrixSets",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:"Returns the matrix sets available for that endpoint. Each matrix set contains a list of tile matrices as well as a supported CRS."}]},sources:[{fileName:"wmts/endpoint.ts",line:75,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wmts/endpoint.ts#L75"}],type:{type:"array",elementType:{type:"reference",target:205,name:"WmtsMatrixSet",package:"@camptocamp/ogc-client"}}}]},{id:176,name:"getOpenLayersTileGrid",variant:"declaration",kind:2048,flags:{},sources:[{fileName:"wmts/endpoint.ts",line:192,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wmts/endpoint.ts#L192"}],signatures:[{id:177,name:"getOpenLayersTileGrid",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:`Creates a WMTSTileGrid instance from the 'ol' package, for a given layer. Optionally, a matrix set +can be provided;`}]},sources:[{fileName:"wmts/endpoint.ts",line:192,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wmts/endpoint.ts#L192"}],parameters:[{id:178,name:"layerName",variant:"param",kind:32768,flags:{},type:{type:"intrinsic",name:"string"}},{id:179,name:"matrixSetIdentifier",variant:"param",kind:32768,flags:{isOptional:!0},type:{type:"intrinsic",name:"string"}}],type:{type:"reference",target:{sourceFileName:"node_modules/typescript/lib/lib.es5.d.ts",qualifiedName:"Promise"},typeArguments:[{type:"reference",target:{sourceFileName:"node_modules/ol/tilegrid/WMTS.js",qualifiedName:"WMTSTileGrid"},name:"WMTSTileGrid",package:"ol"}],name:"Promise",package:"typescript"}}]},{id:145,name:"getServiceInfo",variant:"declaration",kind:2048,flags:{},sources:[{fileName:"wmts/endpoint.ts",line:61,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wmts/endpoint.ts#L61"}],signatures:[{id:146,name:"getServiceInfo",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:"A Promise which resolves to the endpoint information."}]},sources:[{fileName:"wmts/endpoint.ts",line:61,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wmts/endpoint.ts#L61"}],type:{type:"reference",target:185,name:"WmtsEndpointInfo",package:"@camptocamp/ogc-client"}}]},{id:157,name:"getSingleLayerName",variant:"declaration",kind:2048,flags:{},sources:[{fileName:"wmts/endpoint.ts",line:107,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wmts/endpoint.ts#L107"}],signatures:[{id:158,name:"getSingleLayerName",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:"If only one single layer is available, return its name; otherwise, returns null;"}]},sources:[{fileName:"wmts/endpoint.ts",line:107,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wmts/endpoint.ts#L107"}],type:{type:"intrinsic",name:"string"}}]},{id:163,name:"getTileUrl",variant:"declaration",kind:2048,flags:{},sources:[{fileName:"wmts/endpoint.ts",line:144,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wmts/endpoint.ts#L144"}],signatures:[{id:164,name:"getTileUrl",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:"Generates a URL for a specific tile of a specific layer"}]},sources:[{fileName:"wmts/endpoint.ts",line:144,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wmts/endpoint.ts#L144"}],parameters:[{id:165,name:"layerName",variant:"param",kind:32768,flags:{},type:{type:"intrinsic",name:"string"}},{id:166,name:"styleName",variant:"param",kind:32768,flags:{},type:{type:"intrinsic",name:"string"}},{id:167,name:"matrixSetName",variant:"param",kind:32768,flags:{},type:{type:"intrinsic",name:"string"}},{id:168,name:"tileMatrix",variant:"param",kind:32768,flags:{},type:{type:"intrinsic",name:"string"}},{id:169,name:"tileRow",variant:"param",kind:32768,flags:{},type:{type:"intrinsic",name:"number"}},{id:170,name:"tileCol",variant:"param",kind:32768,flags:{},type:{type:"intrinsic",name:"number"}},{id:171,name:"outputFormat",variant:"param",kind:32768,flags:{isOptional:!0},type:{type:"intrinsic",name:"string"}}],type:{type:"intrinsic",name:"string"}}]},{id:143,name:"isReady",variant:"declaration",kind:2048,flags:{},sources:[{fileName:"wmts/endpoint.ts",line:54,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wmts/endpoint.ts#L54"}],signatures:[{id:144,name:"isReady",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:"Resolves when the endpoint is ready to use. Returns the same endpoint object for convenience."}],blockTags:[{tag:"@throws",content:[]}]},sources:[{fileName:"wmts/endpoint.ts",line:54,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wmts/endpoint.ts#L54"}],type:{type:"reference",target:{sourceFileName:"node_modules/typescript/lib/lib.es5.d.ts",qualifiedName:"Promise"},typeArguments:[{type:"reference",target:135,name:"default",package:"@camptocamp/ogc-client"}],name:"Promise",package:"typescript"}}]}],groups:[{title:"Constructors",children:[136]},{title:"Methods",children:[172,154,159,147,151,149,176,145,157,163,143]}],sources:[{fileName:"wmts/endpoint.ts",line:18,character:21,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wmts/endpoint.ts#L18"}]},{id:314,name:"CollectionParameter",variant:"declaration",kind:256,flags:{},children:[{id:315,name:"name",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:24,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L24"}],type:{type:"intrinsic",name:"string"}},{id:316,name:"title",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"ogc-api/model.ts",line:25,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L25"}],type:{type:"intrinsic",name:"string"}},{id:317,name:"type",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:26,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L26"}],type:{type:"union",types:[{type:"literal",value:"string"},{type:"literal",value:"number"},{type:"literal",value:"linestring"},{type:"literal",value:"polygon"},{type:"literal",value:"point"},{type:"literal",value:"integer"},{type:"literal",value:"date"},{type:"literal",value:"geometry"}]}}],groups:[{title:"Properties",children:[315,316,317]}],sources:[{fileName:"ogc-api/model.ts",line:23,character:17,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L23"}]},{id:216,name:"FetchOptions",variant:"declaration",kind:256,flags:{},children:[{id:219,name:"credentials",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"shared/models.ts",line:23,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/shared/models.ts#L23"}],type:{type:"union",types:[{type:"literal",value:"same-origin"},{type:"literal",value:"include"},{type:"literal",value:"omit"}]}},{id:217,name:"headers",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"shared/models.ts",line:21,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/shared/models.ts#L21"}],type:{type:"reference",target:{sourceFileName:"node_modules/typescript/lib/lib.es5.d.ts",qualifiedName:"Record"},typeArguments:[{type:"intrinsic",name:"string"},{type:"intrinsic",name:"string"}],name:"Record",package:"typescript"}},{id:222,name:"integrity",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"shared/models.ts",line:26,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/shared/models.ts#L26"}],type:{type:"intrinsic",name:"string"}},{id:218,name:"mode",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"shared/models.ts",line:22,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/shared/models.ts#L22"}],type:{type:"union",types:[{type:"literal",value:"same-origin"},{type:"literal",value:"cors"},{type:"literal",value:"no-cors"}]}},{id:220,name:"redirect",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"shared/models.ts",line:24,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/shared/models.ts#L24"}],type:{type:"union",types:[{type:"literal",value:"error"},{type:"literal",value:"follow"}]}},{id:221,name:"referrer",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"shared/models.ts",line:25,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/shared/models.ts#L25"}],type:{type:"intrinsic",name:"string"}}],groups:[{title:"Properties",children:[219,217,222,218,220,221]}],sources:[{fileName:"shared/models.ts",line:20,character:17,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/shared/models.ts#L20"}]},{id:211,name:"LayerStyle",variant:"declaration",kind:256,flags:{},children:[{id:214,name:"legendUrl",variant:"declaration",kind:1024,flags:{isOptional:!0},comment:{summary:[{kind:"text",text:"May not be defined; a GetLegendGraphic operation should work in any case"}]},sources:[{fileName:"shared/models.ts",line:35,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/shared/models.ts#L35"}],type:{type:"intrinsic",name:"string"}},{id:212,name:"name",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"shared/models.ts",line:30,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/shared/models.ts#L30"}],type:{type:"intrinsic",name:"string"}},{id:213,name:"title",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"shared/models.ts",line:31,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/shared/models.ts#L31"}],type:{type:"intrinsic",name:"string"}}],groups:[{title:"Properties",children:[214,212,213]}],sources:[{fileName:"shared/models.ts",line:29,character:17,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/shared/models.ts#L29"}]},{id:318,name:"OgcApiCollectionInfo",variant:"declaration",kind:256,flags:{},children:[{id:324,name:"crs",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:35,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L35"}],type:{type:"array",elementType:{type:"intrinsic",name:"string"}}},{id:320,name:"description",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:31,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L31"}],type:{type:"intrinsic",name:"string"}},{id:330,name:"extent",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"ogc-api/model.ts",line:41,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L41"}],type:{type:"reference",target:215,name:"BoundingBox",package:"@camptocamp/ogc-client"}},{id:323,name:"formats",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:34,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L34"}],type:{type:"array",elementType:{type:"intrinsic",name:"string"}}},{id:321,name:"id",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:32,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L32"}],type:{type:"intrinsic",name:"string"}},{id:326,name:"itemCount",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:37,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L37"}],type:{type:"intrinsic",name:"number"}},{id:322,name:"itemType",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:33,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L33"}],type:{type:"union",types:[{type:"literal",value:"feature"},{type:"literal",value:"record"}]}},{id:327,name:"keywords",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"ogc-api/model.ts",line:38,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L38"}],type:{type:"array",elementType:{type:"intrinsic",name:"string"}}},{id:328,name:"language",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"ogc-api/model.ts",line:39,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L39"}],type:{type:"intrinsic",name:"string"}},{id:342,name:"license",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"ogc-api/model.ts",line:53,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L53"}],type:{type:"intrinsic",name:"string"}},{id:331,name:"publisher",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"ogc-api/model.ts",line:42,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L42"}],type:{type:"reflection",declaration:{id:332,name:"__type",variant:"declaration",kind:65536,flags:{},children:[{id:336,name:"contactInfo",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:46,character:4,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L46"}],type:{type:"reflection",declaration:{id:337,name:"__type",variant:"declaration",kind:65536,flags:{},children:[{id:339,name:"email",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:48,character:6,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L48"}],type:{type:"reflection",declaration:{id:340,name:"__type",variant:"declaration",kind:65536,flags:{},children:[{id:341,name:"work",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:49,character:8,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L49"}],type:{type:"intrinsic",name:"string"}}],groups:[{title:"Properties",children:[341]}],sources:[{fileName:"ogc-api/model.ts",line:48,character:13,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L48"}]}}},{id:338,name:"phone",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:47,character:6,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L47"}],type:{type:"intrinsic",name:"string"}}],groups:[{title:"Properties",children:[339,338]}],sources:[{fileName:"ogc-api/model.ts",line:46,character:17,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L46"}]}}},{id:333,name:"individualName",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:43,character:4,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L43"}],type:{type:"intrinsic",name:"string"}},{id:334,name:"organizationName",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:44,character:4,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L44"}],type:{type:"intrinsic",name:"string"}},{id:335,name:"positionName",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:45,character:4,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L45"}],type:{type:"intrinsic",name:"string"}}],groups:[{title:"Properties",children:[336,333,334,335]}],sources:[{fileName:"ogc-api/model.ts",line:42,character:14,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L42"}]}}},{id:343,name:"queryables",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:54,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L54"}],type:{type:"array",elementType:{type:"reference",target:314,name:"CollectionParameter",package:"@camptocamp/ogc-client"}}},{id:344,name:"sortables",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:55,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L55"}],type:{type:"array",elementType:{type:"reference",target:314,name:"CollectionParameter",package:"@camptocamp/ogc-client"}}},{id:325,name:"storageCrs",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"ogc-api/model.ts",line:36,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L36"}],type:{type:"intrinsic",name:"string"}},{id:319,name:"title",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:30,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L30"}],type:{type:"intrinsic",name:"string"}},{id:329,name:"updated",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"ogc-api/model.ts",line:40,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L40"}],type:{type:"reference",target:{sourceFileName:"node_modules/typescript/lib/lib.es5.d.ts",qualifiedName:"Date"},name:"Date",package:"typescript"}}],groups:[{title:"Properties",children:[324,320,330,323,321,326,322,327,328,342,331,343,344,325,319,329]}],sources:[{fileName:"ogc-api/model.ts",line:29,character:17,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L29"}]},{id:345,name:"OgcApiDocumentLinks",variant:"declaration",kind:256,flags:{},children:[{id:349,name:"href",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:62,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L62"}],type:{type:"intrinsic",name:"string"}},{id:346,name:"rel",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:59,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L59"}],type:{type:"intrinsic",name:"string"}},{id:348,name:"title",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:61,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L61"}],type:{type:"intrinsic",name:"string"}},{id:347,name:"type",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:60,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L60"}],type:{type:"intrinsic",name:"string"}}],groups:[{title:"Properties",children:[349,346,348,347]}],sources:[{fileName:"ogc-api/model.ts",line:58,character:17,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L58"}]},{id:308,name:"OgcApiEndpointInfo",variant:"declaration",kind:256,flags:{},children:[{id:311,name:"attribution",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"ogc-api/model.ts",line:9,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L9"}],type:{type:"intrinsic",name:"string"}},{id:310,name:"description",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"ogc-api/model.ts",line:8,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L8"}],type:{type:"intrinsic",name:"string"}},{id:309,name:"title",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:7,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L7"}],type:{type:"intrinsic",name:"string"}}],groups:[{title:"Properties",children:[311,310,309]}],sources:[{fileName:"ogc-api/model.ts",line:6,character:17,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L6"}]},{id:358,name:"OgcApiRecordContact",variant:"declaration",kind:256,flags:{},children:[{id:361,name:"contactInstructions",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:95,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L95"}],type:{type:"intrinsic",name:"string"}},{id:360,name:"links",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:94,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L94"}],type:{type:"array",elementType:{type:"reference",target:345,name:"OgcApiDocumentLinks",package:"@camptocamp/ogc-client"}}},{id:359,name:"name",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:93,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L93"}],type:{type:"intrinsic",name:"string"}},{id:362,name:"roles",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:96,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L96"}],type:{type:"array",elementType:{type:"intrinsic",name:"string"}}}],groups:[{title:"Properties",children:[361,360,359,362]}],sources:[{fileName:"ogc-api/model.ts",line:92,character:17,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L92"}]},{id:363,name:"OgcApiRecordProperties",variant:"declaration",kind:256,flags:{},children:[{id:374,name:"contacts",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"ogc-api/model.ts",line:109,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L109"}],type:{type:"array",elementType:{type:"reference",target:358,name:"OgcApiRecordContact",package:"@camptocamp/ogc-client"}}},{id:369,name:"description",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"ogc-api/model.ts",line:104,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L104"}],type:{type:"intrinsic",name:"string"}},{id:370,name:"externalId",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"ogc-api/model.ts",line:105,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L105"}],type:{type:"array",elementType:{type:"reference",target:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiItemExternalId"},name:"OgcApiItemExternalId",package:"@camptocamp/ogc-client"}}},{id:375,name:"formats",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"ogc-api/model.ts",line:110,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L110"}],type:{type:"array",elementType:{type:"intrinsic",name:"string"}}},{id:372,name:"keywords",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"ogc-api/model.ts",line:107,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L107"}],type:{type:"array",elementType:{type:"intrinsic",name:"string"}}},{id:373,name:"language",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"ogc-api/model.ts",line:108,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L108"}],type:{type:"intrinsic",name:"string"}},{id:376,name:"license",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"ogc-api/model.ts",line:111,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L111"}],type:{type:"intrinsic",name:"string"}},{id:368,name:"providers",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"ogc-api/model.ts",line:103,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L103"}],type:{type:"array",elementType:{type:"intrinsic",name:"string"}}},{id:366,name:"recordCreated",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"ogc-api/model.ts",line:101,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L101"}],type:{type:"reference",target:{sourceFileName:"node_modules/typescript/lib/lib.es5.d.ts",qualifiedName:"Date"},name:"Date",package:"typescript"}},{id:367,name:"recordUpdated",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"ogc-api/model.ts",line:102,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L102"}],type:{type:"reference",target:{sourceFileName:"node_modules/typescript/lib/lib.es5.d.ts",qualifiedName:"Date"},name:"Date",package:"typescript"}},{id:371,name:"themes",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"ogc-api/model.ts",line:106,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L106"}],type:{type:"array",elementType:{type:"reference",target:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiRecordTheme"},name:"OgcApiRecordTheme",package:"@camptocamp/ogc-client"}}},{id:365,name:"title",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:100,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L100"}],type:{type:"intrinsic",name:"string"}},{id:364,name:"type",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:99,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L99"}],type:{type:"intrinsic",name:"string"}}],groups:[{title:"Properties",children:[374,369,370,375,372,373,376,368,366,367,371,365,364]}],sources:[{fileName:"ogc-api/model.ts",line:98,character:17,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L98"}]},{id:185,name:"WmtsEndpointInfo",variant:"declaration",kind:256,flags:{},children:[{id:192,name:"abstract",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"shared/models.ts",line:11,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/shared/models.ts#L11"}],type:{type:"intrinsic",name:"string"},inheritedFrom:{type:"reference",target:-1,name:"GenericEndpointInfo.abstract"}},{id:194,name:"constraints",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"shared/models.ts",line:13,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/shared/models.ts#L13"}],type:{type:"intrinsic",name:"string"},inheritedFrom:{type:"reference",target:-1,name:"GenericEndpointInfo.constraints"}},{id:193,name:"fees",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"shared/models.ts",line:12,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/shared/models.ts#L12"}],type:{type:"intrinsic",name:"string"},inheritedFrom:{type:"reference",target:-1,name:"GenericEndpointInfo.fees"}},{id:186,name:"getTileUrls",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"wmts/model.ts",line:10,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wmts/model.ts#L10"}],type:{type:"reflection",declaration:{id:187,name:"__type",variant:"declaration",kind:65536,flags:{},children:[{id:188,name:"kvp",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"wmts/model.ts",line:11,character:4,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wmts/model.ts#L11"}],type:{type:"intrinsic",name:"string"}},{id:189,name:"rest",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"wmts/model.ts",line:12,character:4,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wmts/model.ts#L12"}],type:{type:"intrinsic",name:"string"}}],groups:[{title:"Properties",children:[188,189]}],sources:[{fileName:"wmts/model.ts",line:10,character:15,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wmts/model.ts#L10"}]}}},{id:195,name:"keywords",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"shared/models.ts",line:14,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/shared/models.ts#L14"}],type:{type:"array",elementType:{type:"intrinsic",name:"string"}},inheritedFrom:{type:"reference",target:-1,name:"GenericEndpointInfo.keywords"}},{id:190,name:"name",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"shared/models.ts",line:9,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/shared/models.ts#L9"}],type:{type:"intrinsic",name:"string"},inheritedFrom:{type:"reference",target:-1,name:"GenericEndpointInfo.name"}},{id:196,name:"outputFormats",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"shared/models.ts",line:15,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/shared/models.ts#L15"}],type:{type:"array",elementType:{type:"intrinsic",name:"string"}},inheritedFrom:{type:"reference",target:-1,name:"GenericEndpointInfo.outputFormats"}},{id:191,name:"title",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"shared/models.ts",line:10,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/shared/models.ts#L10"}],type:{type:"intrinsic",name:"string"},inheritedFrom:{type:"reference",target:-1,name:"GenericEndpointInfo.title"}}],groups:[{title:"Properties",children:[192,194,193,186,195,190,196,191]}],sources:[{fileName:"wmts/model.ts",line:9,character:17,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wmts/model.ts#L9"}],extendedTypes:[{type:"reference",target:223,name:"GenericEndpointInfo",package:"@camptocamp/ogc-client"}]},{id:197,name:"WmtsLayer",variant:"declaration",kind:256,flags:{},children:[{id:201,name:"defaultStyle",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"wmts/model.ts",line:82,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wmts/model.ts#L82"}],type:{type:"intrinsic",name:"string"}},{id:204,name:"dimensions",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"wmts/model.ts",line:85,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wmts/model.ts#L85"}],type:{type:"array",elementType:{type:"reference",target:{sourceFileName:"src/wmts/model.ts",qualifiedName:"LayerDimension"},name:"LayerDimension",package:"@camptocamp/ogc-client"}}},{id:203,name:"latLonBoundingBox",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"wmts/model.ts",line:84,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wmts/model.ts#L84"}],type:{type:"reference",target:215,name:"BoundingBox",package:"@camptocamp/ogc-client"}},{id:202,name:"matrixSets",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"wmts/model.ts",line:83,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wmts/model.ts#L83"}],type:{type:"array",elementType:{type:"reference",target:{sourceFileName:"src/wmts/model.ts",qualifiedName:"MatrixSetLink"},name:"MatrixSetLink",package:"@camptocamp/ogc-client"}}},{id:198,name:"name",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"wmts/model.ts",line:79,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wmts/model.ts#L79"}],type:{type:"intrinsic",name:"string"}},{id:199,name:"resourceLinks",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"wmts/model.ts",line:80,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wmts/model.ts#L80"}],type:{type:"array",elementType:{type:"reference",target:181,name:"WmtsLayerResourceLink",package:"@camptocamp/ogc-client"}}},{id:200,name:"styles",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"wmts/model.ts",line:81,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wmts/model.ts#L81"}],type:{type:"array",elementType:{type:"reference",target:211,name:"LayerStyle",package:"@camptocamp/ogc-client"}}}],groups:[{title:"Properties",children:[201,204,203,202,198,199,200]}],sources:[{fileName:"wmts/model.ts",line:78,character:17,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wmts/model.ts#L78"}]},{id:181,name:"WmtsLayerResourceLink",variant:"declaration",kind:256,flags:{},children:[{id:183,name:"encoding",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"wmts/model.ts",line:66,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wmts/model.ts#L66"}],type:{type:"reference",target:{sourceFileName:"src/wmts/model.ts",qualifiedName:"WmtsRequestEncoding"},name:"WmtsRequestEncoding",package:"@camptocamp/ogc-client"}},{id:184,name:"format",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"wmts/model.ts",line:67,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wmts/model.ts#L67"}],type:{type:"intrinsic",name:"string"}},{id:182,name:"url",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"wmts/model.ts",line:65,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wmts/model.ts#L65"}],type:{type:"intrinsic",name:"string"}}],groups:[{title:"Properties",children:[183,184,182]}],sources:[{fileName:"wmts/model.ts",line:64,character:17,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wmts/model.ts#L64"}]},{id:205,name:"WmtsMatrixSet",variant:"declaration",kind:256,flags:{},children:[{id:209,name:"boundingBox",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"wmts/model.ts",line:46,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wmts/model.ts#L46"}],type:{type:"reference",target:215,name:"BoundingBox",package:"@camptocamp/ogc-client"}},{id:208,name:"crs",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"wmts/model.ts",line:45,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wmts/model.ts#L45"}],type:{type:"intrinsic",name:"string"}},{id:206,name:"identifier",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"wmts/model.ts",line:43,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wmts/model.ts#L43"}],type:{type:"intrinsic",name:"string"}},{id:210,name:"tileMatrices",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"wmts/model.ts",line:47,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wmts/model.ts#L47"}],type:{type:"array",elementType:{type:"reference",target:{sourceFileName:"src/wmts/model.ts",qualifiedName:"TileMatrix"},name:"TileMatrix",package:"@camptocamp/ogc-client"}}},{id:207,name:"wellKnownScaleSet",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"wmts/model.ts",line:44,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wmts/model.ts#L44"}],type:{type:"intrinsic",name:"string"}}],groups:[{title:"Properties",children:[209,208,206,210,207]}],sources:[{fileName:"wmts/model.ts",line:42,character:17,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wmts/model.ts#L42"}]},{id:215,name:"BoundingBox",variant:"declaration",kind:2097152,flags:{},comment:{summary:[{kind:"text",text:"Expressed as minx, miny, maxx, maxy"}]},sources:[{fileName:"shared/models.ts",line:4,character:12,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/shared/models.ts#L4"}],type:{type:"tuple",elements:[{type:"intrinsic",name:"number"},{type:"intrinsic",name:"number"},{type:"intrinsic",name:"number"},{type:"intrinsic",name:"number"}]}},{id:313,name:"CollectionParameterType",variant:"declaration",kind:2097152,flags:{},sources:[{fileName:"ogc-api/model.ts",line:22,character:12,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L22"}],type:{type:"indexedAccess",indexType:{type:"intrinsic",name:"number"},objectType:{type:"query",queryType:{type:"reference",target:312,name:"CollectionParameterTypes",package:"@camptocamp/ogc-client"}}}},{id:307,name:"ConformanceClass",variant:"declaration",kind:2097152,flags:{},sources:[{fileName:"ogc-api/model.ts",line:4,character:12,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L4"}],type:{type:"intrinsic",name:"string"}},{id:69,name:"FeatureGeometryType",variant:"declaration",kind:2097152,flags:{},sources:[{fileName:"wfs/model.ts",line:17,character:12,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/model.ts#L17"}],type:{type:"union",types:[{type:"literal",value:"linestring"},{type:"literal",value:"polygon"},{type:"literal",value:"point"},{type:"literal",value:"multilinestring"},{type:"literal",value:"multipolygon"},{type:"literal",value:"multipoint"},{type:"literal",value:"unknown"}]}},{id:70,name:"FeaturePropertyType",variant:"declaration",kind:2097152,flags:{},sources:[{fileName:"wfs/model.ts",line:15,character:12,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/model.ts#L15"}],type:{type:"union",types:[{type:"intrinsic",name:"string"},{type:"intrinsic",name:"number"},{type:"intrinsic",name:"boolean"}]}},{id:223,name:"GenericEndpointInfo",variant:"declaration",kind:2097152,flags:{},sources:[{fileName:"shared/models.ts",line:8,character:12,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/shared/models.ts#L8"}],type:{type:"reflection",declaration:{id:224,name:"__type",variant:"declaration",kind:65536,flags:{},children:[{id:227,name:"abstract",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"shared/models.ts",line:11,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/shared/models.ts#L11"}],type:{type:"intrinsic",name:"string"}},{id:229,name:"constraints",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"shared/models.ts",line:13,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/shared/models.ts#L13"}],type:{type:"intrinsic",name:"string"}},{id:228,name:"fees",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"shared/models.ts",line:12,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/shared/models.ts#L12"}],type:{type:"intrinsic",name:"string"}},{id:230,name:"keywords",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"shared/models.ts",line:14,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/shared/models.ts#L14"}],type:{type:"array",elementType:{type:"intrinsic",name:"string"}}},{id:225,name:"name",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"shared/models.ts",line:9,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/shared/models.ts#L9"}],type:{type:"intrinsic",name:"string"}},{id:231,name:"outputFormats",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"shared/models.ts",line:15,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/shared/models.ts#L15"}],type:{type:"array",elementType:{type:"reference",target:{sourceFileName:"src/shared/models.ts",qualifiedName:"MimeType"},name:"MimeType",package:"@camptocamp/ogc-client"}}},{id:226,name:"title",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"shared/models.ts",line:10,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/shared/models.ts#L10"}],type:{type:"intrinsic",name:"string"}}],groups:[{title:"Properties",children:[227,229,228,230,225,231,226]}],sources:[{fileName:"shared/models.ts",line:8,character:34,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/shared/models.ts#L8"}]}},extendedBy:[{type:"reference",target:185,name:"WmtsEndpointInfo"}]},{id:386,name:"OgcApiCollectionItem",variant:"declaration",kind:2097152,flags:{},sources:[{fileName:"ogc-api/model.ts",line:124,character:12,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L124"}],type:{type:"reference",target:377,name:"OgcApiRecord",package:"@camptocamp/ogc-client"}},{id:350,name:"OgcApiDocument",variant:"declaration",kind:2097152,flags:{},sources:[{fileName:"ogc-api/model.ts",line:65,character:12,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L65"}],type:{type:"intersection",types:[{type:"reflection",declaration:{id:351,name:"__type",variant:"declaration",kind:65536,flags:{},children:[{id:352,name:"links",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:66,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L66"}],type:{type:"array",elementType:{type:"reflection",declaration:{id:353,name:"__type",variant:"declaration",kind:65536,flags:{},children:[{id:357,name:"href",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:70,character:4,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L70"}],type:{type:"intrinsic",name:"string"}},{id:354,name:"rel",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:67,character:4,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L67"}],type:{type:"intrinsic",name:"string"}},{id:356,name:"title",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:69,character:4,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L69"}],type:{type:"intrinsic",name:"string"}},{id:355,name:"type",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:68,character:4,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L68"}],type:{type:"intrinsic",name:"string"}}],groups:[{title:"Properties",children:[357,354,356,355]}],sources:[{fileName:"ogc-api/model.ts",line:66,character:9,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L66"}]}}}}],groups:[{title:"Properties",children:[352]}],sources:[{fileName:"ogc-api/model.ts",line:65,character:29,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L65"}]}},{type:"reference",target:{sourceFileName:"node_modules/typescript/lib/lib.es5.d.ts",qualifiedName:"Record"},typeArguments:[{type:"intrinsic",name:"string"},{type:"intrinsic",name:"unknown"}],name:"Record",package:"typescript"}]}},{id:377,name:"OgcApiRecord",variant:"declaration",kind:2097152,flags:{},sources:[{fileName:"ogc-api/model.ts",line:114,character:12,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L114"}],type:{type:"reflection",declaration:{id:378,name:"__type",variant:"declaration",kind:65536,flags:{},children:[{id:385,name:"conformsTo",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"ogc-api/model.ts",line:121,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L121"}],type:{type:"array",elementType:{type:"intrinsic",name:"string"}}},{id:382,name:"geometry",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:118,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L118"}],type:{type:"reference",target:{sourceFileName:"node_modules/@types/geojson/index.d.ts",qualifiedName:"Geometry"},name:"Geometry",package:"@types/geojson"}},{id:379,name:"id",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:115,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L115"}],type:{type:"intrinsic",name:"string"}},{id:384,name:"links",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:120,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L120"}],type:{type:"array",elementType:{type:"reference",target:345,name:"OgcApiDocumentLinks",package:"@camptocamp/ogc-client"}}},{id:383,name:"properties",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:119,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L119"}],type:{type:"reference",target:363,name:"OgcApiRecordProperties",package:"@camptocamp/ogc-client"}},{id:381,name:"time",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:117,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L117"}],type:{type:"reference",target:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiTime"},name:"OgcApiTime",package:"@camptocamp/ogc-client"}},{id:380,name:"type",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"ogc-api/model.ts",line:116,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L116"}],type:{type:"intrinsic",name:"string"}}],groups:[{title:"Properties",children:[385,382,379,384,383,381,380]}],sources:[{fileName:"ogc-api/model.ts",line:114,character:27,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L114"}]}}},{id:63,name:"WfsFeatureTypeBrief",variant:"declaration",kind:2097152,flags:{},sources:[{fileName:"wfs/model.ts",line:26,character:12,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/model.ts#L26"}],type:{type:"reflection",declaration:{id:64,name:"__type",variant:"declaration",kind:65536,flags:{},children:[{id:67,name:"abstract",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"wfs/model.ts",line:29,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/model.ts#L29"}],type:{type:"intrinsic",name:"string"}},{id:68,name:"boundingBox",variant:"declaration",kind:1024,flags:{isOptional:!0},comment:{summary:[{kind:"text",text:"Expressed in latitudes and longitudes"}]},sources:[{fileName:"wfs/model.ts",line:33,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/model.ts#L33"}],type:{type:"reference",target:215,name:"BoundingBox",package:"@camptocamp/ogc-client"}},{id:65,name:"name",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"wfs/model.ts",line:27,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/model.ts#L27"}],type:{type:"intrinsic",name:"string"}},{id:66,name:"title",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"wfs/model.ts",line:28,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/model.ts#L28"}],type:{type:"intrinsic",name:"string"}}],groups:[{title:"Properties",children:[67,68,65,66]}],sources:[{fileName:"wfs/model.ts",line:26,character:34,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/model.ts#L26"}]}}},{id:71,name:"WfsFeatureTypeFull",variant:"declaration",kind:2097152,flags:{},sources:[{fileName:"wfs/model.ts",line:49,character:12,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/model.ts#L49"}],type:{type:"reflection",declaration:{id:72,name:"__type",variant:"declaration",kind:65536,flags:{},children:[{id:75,name:"abstract",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"wfs/model.ts",line:52,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/model.ts#L52"}],type:{type:"intrinsic",name:"string"}},{id:76,name:"boundingBox",variant:"declaration",kind:1024,flags:{isOptional:!0},comment:{summary:[{kind:"text",text:"Expressed in latitudes and longitudes"}]},sources:[{fileName:"wfs/model.ts",line:56,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/model.ts#L56"}],type:{type:"reference",target:215,name:"BoundingBox",package:"@camptocamp/ogc-client"}},{id:77,name:"defaultCrs",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"wfs/model.ts",line:57,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/model.ts#L57"}],type:{type:"reference",target:{sourceFileName:"src/shared/models.ts",qualifiedName:"CrsCode"},name:"CrsCode",package:"@camptocamp/ogc-client"}},{id:81,name:"geometryName",variant:"declaration",kind:1024,flags:{isOptional:!0},comment:{summary:[{kind:"text",text:"Not defined if no geometry present"}]},sources:[{fileName:"wfs/model.ts",line:67,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/model.ts#L67"}],type:{type:"intrinsic",name:"string"}},{id:82,name:"geometryType",variant:"declaration",kind:1024,flags:{isOptional:!0},comment:{summary:[{kind:"text",text:"Not defined if no geometry present"}]},sources:[{fileName:"wfs/model.ts",line:71,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/model.ts#L71"}],type:{type:"reference",target:69,name:"FeatureGeometryType",package:"@camptocamp/ogc-client"}},{id:73,name:"name",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"wfs/model.ts",line:50,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/model.ts#L50"}],type:{type:"intrinsic",name:"string"}},{id:83,name:"objectCount",variant:"declaration",kind:1024,flags:{isOptional:!0},comment:{summary:[{kind:"text",text:"Not defined if object count could not be determined"}]},sources:[{fileName:"wfs/model.ts",line:75,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/model.ts#L75"}],type:{type:"intrinsic",name:"number"}},{id:78,name:"otherCrs",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"wfs/model.ts",line:58,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/model.ts#L58"}],type:{type:"array",elementType:{type:"reference",target:{sourceFileName:"src/shared/models.ts",qualifiedName:"CrsCode"},name:"CrsCode",package:"@camptocamp/ogc-client"}}},{id:79,name:"outputFormats",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"wfs/model.ts",line:59,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/model.ts#L59"}],type:{type:"array",elementType:{type:"reference",target:{sourceFileName:"src/shared/models.ts",qualifiedName:"MimeType"},name:"MimeType",package:"@camptocamp/ogc-client"}}},{id:80,name:"properties",variant:"declaration",kind:1024,flags:{},comment:{summary:[{kind:"text",text:"These properties will *not* include the feature geometry"}]},sources:[{fileName:"wfs/model.ts",line:63,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/model.ts#L63"}],type:{type:"reference",target:{sourceFileName:"node_modules/typescript/lib/lib.es5.d.ts",qualifiedName:"Record"},typeArguments:[{type:"intrinsic",name:"string"},{type:"reference",target:70,name:"FeaturePropertyType",package:"@camptocamp/ogc-client"}],name:"Record",package:"typescript"}},{id:74,name:"title",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"wfs/model.ts",line:51,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/model.ts#L51"}],type:{type:"intrinsic",name:"string"}}],groups:[{title:"Properties",children:[75,76,77,81,82,73,83,78,79,80,74]}],sources:[{fileName:"wfs/model.ts",line:49,character:33,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/model.ts#L49"}]}}},{id:84,name:"WfsFeatureTypePropDetails",variant:"declaration",kind:2097152,flags:{},sources:[{fileName:"wfs/model.ts",line:94,character:12,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/model.ts#L94"}],type:{type:"reflection",declaration:{id:85,name:"__type",variant:"declaration",kind:65536,flags:{},children:[{id:86,name:"uniqueValues",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"wfs/model.ts",line:95,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/model.ts#L95"}],type:{type:"array",elementType:{type:"reference",target:88,name:"WfsFeatureTypeUniqueValue",package:"@camptocamp/ogc-client"}}}],groups:[{title:"Properties",children:[86]}],sources:[{fileName:"wfs/model.ts",line:94,character:40,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/model.ts#L94"}]}}},{id:87,name:"WfsFeatureTypePropsDetails",variant:"declaration",kind:2097152,flags:{},sources:[{fileName:"wfs/model.ts",line:98,character:12,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/model.ts#L98"}],type:{type:"reference",target:{sourceFileName:"node_modules/typescript/lib/lib.es5.d.ts",qualifiedName:"Record"},typeArguments:[{type:"intrinsic",name:"string"},{type:"reference",target:84,name:"WfsFeatureTypePropDetails",package:"@camptocamp/ogc-client"}],name:"Record",package:"typescript"}},{id:54,name:"WfsFeatureTypeSummary",variant:"declaration",kind:2097152,flags:{},sources:[{fileName:"wfs/model.ts",line:36,character:12,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/model.ts#L36"}],type:{type:"reflection",declaration:{id:55,name:"__type",variant:"declaration",kind:65536,flags:{},children:[{id:58,name:"abstract",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"wfs/model.ts",line:39,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/model.ts#L39"}],type:{type:"intrinsic",name:"string"}},{id:59,name:"boundingBox",variant:"declaration",kind:1024,flags:{isOptional:!0},comment:{summary:[{kind:"text",text:"Expressed in latitudes and longitudes"}]},sources:[{fileName:"wfs/model.ts",line:43,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/model.ts#L43"}],type:{type:"reference",target:215,name:"BoundingBox",package:"@camptocamp/ogc-client"}},{id:60,name:"defaultCrs",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"wfs/model.ts",line:44,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/model.ts#L44"}],type:{type:"reference",target:{sourceFileName:"src/shared/models.ts",qualifiedName:"CrsCode"},name:"CrsCode",package:"@camptocamp/ogc-client"}},{id:56,name:"name",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"wfs/model.ts",line:37,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/model.ts#L37"}],type:{type:"intrinsic",name:"string"}},{id:61,name:"otherCrs",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"wfs/model.ts",line:45,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/model.ts#L45"}],type:{type:"array",elementType:{type:"reference",target:{sourceFileName:"src/shared/models.ts",qualifiedName:"CrsCode"},name:"CrsCode",package:"@camptocamp/ogc-client"}}},{id:62,name:"outputFormats",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"wfs/model.ts",line:46,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/model.ts#L46"}],type:{type:"array",elementType:{type:"reference",target:{sourceFileName:"src/shared/models.ts",qualifiedName:"MimeType"},name:"MimeType",package:"@camptocamp/ogc-client"}}},{id:57,name:"title",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"wfs/model.ts",line:38,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/model.ts#L38"}],type:{type:"intrinsic",name:"string"}}],groups:[{title:"Properties",children:[58,59,60,56,61,62,57]}],sources:[{fileName:"wfs/model.ts",line:36,character:36,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/model.ts#L36"}]}}},{id:88,name:"WfsFeatureTypeUniqueValue",variant:"declaration",kind:2097152,flags:{},sources:[{fileName:"wfs/model.ts",line:89,character:12,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/model.ts#L89"}],type:{type:"reflection",declaration:{id:89,name:"__type",variant:"declaration",kind:65536,flags:{},children:[{id:91,name:"count",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"wfs/model.ts",line:91,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/model.ts#L91"}],type:{type:"intrinsic",name:"number"}},{id:90,name:"value",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"wfs/model.ts",line:90,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/model.ts#L90"}],type:{type:"union",types:[{type:"intrinsic",name:"number"},{type:"intrinsic",name:"boolean"},{type:"intrinsic",name:"string"}]}}],groups:[{title:"Properties",children:[91,90]}],sources:[{fileName:"wfs/model.ts",line:89,character:40,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/model.ts#L89"}]}}},{id:50,name:"WfsFeatureWithProps",variant:"declaration",kind:2097152,flags:{},sources:[{fileName:"wfs/model.ts",line:78,character:12,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/model.ts#L78"}],type:{type:"reflection",declaration:{id:51,name:"__type",variant:"declaration",kind:65536,flags:{},children:[{id:52,name:"id",variant:"declaration",kind:1024,flags:{},comment:{summary:[{kind:"text",text:"Feature id"}]},sources:[{fileName:"wfs/model.ts",line:82,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/model.ts#L82"}],type:{type:"intrinsic",name:"string"}},{id:53,name:"properties",variant:"declaration",kind:1024,flags:{},comment:{summary:[{kind:"text",text:"Feature properties"}]},sources:[{fileName:"wfs/model.ts",line:86,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/model.ts#L86"}],type:{type:"reference",target:{sourceFileName:"node_modules/typescript/lib/lib.es5.d.ts",qualifiedName:"Record"},typeArguments:[{type:"intrinsic",name:"string"},{type:"reference",target:70,name:"FeaturePropertyType",package:"@camptocamp/ogc-client"}],name:"Record",package:"typescript"}}],groups:[{title:"Properties",children:[52,53]}],sources:[{fileName:"wfs/model.ts",line:78,character:34,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/model.ts#L78"}]}}},{id:49,name:"WfsVersion",variant:"declaration",kind:2097152,flags:{},sources:[{fileName:"wfs/model.ts",line:3,character:12,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wfs/model.ts#L3"}],type:{type:"union",types:[{type:"literal",value:"1.0.0"},{type:"literal",value:"1.1.0"},{type:"literal",value:"2.0.0"}]}},{id:113,name:"WmsLayerFull",variant:"declaration",kind:2097152,flags:{},sources:[{fileName:"wms/model.ts",line:22,character:12,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wms/model.ts#L22"}],type:{type:"reflection",declaration:{id:114,name:"__type",variant:"declaration",kind:65536,flags:{},children:[{id:117,name:"abstract",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"wms/model.ts",line:28,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wms/model.ts#L28"}],type:{type:"intrinsic",name:"string"}},{id:121,name:"attribution",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"wms/model.ts",line:35,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wms/model.ts#L35"}],type:{type:"reference",target:130,name:"WmtsLayerAttribution",package:"@camptocamp/ogc-client"}},{id:118,name:"availableCrs",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"wms/model.ts",line:29,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wms/model.ts#L29"}],type:{type:"array",elementType:{type:"reference",target:{sourceFileName:"src/shared/models.ts",qualifiedName:"CrsCode"},name:"CrsCode",package:"@camptocamp/ogc-client"}}},{id:120,name:"boundingBoxes",variant:"declaration",kind:1024,flags:{},comment:{summary:[{kind:"text",text:"Dict of bounding boxes where keys are CRS codes"}]},sources:[{fileName:"wms/model.ts",line:34,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wms/model.ts#L34"}],type:{type:"reference",target:{sourceFileName:"node_modules/typescript/lib/lib.es5.d.ts",qualifiedName:"Record"},typeArguments:[{type:"reference",target:{sourceFileName:"src/shared/models.ts",qualifiedName:"CrsCode"},name:"CrsCode",package:"@camptocamp/ogc-client"},{type:"reference",target:215,name:"BoundingBox",package:"@camptocamp/ogc-client"}],name:"Record",package:"typescript"}},{id:122,name:"children",variant:"declaration",kind:1024,flags:{isOptional:!0},comment:{summary:[{kind:"text",text:"Not defined if the layer is a leaf in the tree"}]},sources:[{fileName:"wms/model.ts",line:39,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wms/model.ts#L39"}],type:{type:"array",elementType:{type:"reference",target:113,name:"WmsLayerFull",package:"@camptocamp/ogc-client"}}},{id:115,name:"name",variant:"declaration",kind:1024,flags:{isOptional:!0},comment:{summary:[{kind:"text",text:"The layer is renderable if defined"}]},sources:[{fileName:"wms/model.ts",line:26,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wms/model.ts#L26"}],type:{type:"intrinsic",name:"string"}},{id:119,name:"styles",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"wms/model.ts",line:30,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wms/model.ts#L30"}],type:{type:"array",elementType:{type:"reference",target:211,name:"LayerStyle",package:"@camptocamp/ogc-client"}}},{id:116,name:"title",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"wms/model.ts",line:27,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wms/model.ts#L27"}],type:{type:"intrinsic",name:"string"}}],groups:[{title:"Properties",children:[117,121,118,120,122,115,119,116]}],sources:[{fileName:"wms/model.ts",line:22,character:27,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wms/model.ts#L22"}]}}},{id:124,name:"WmsLayerSummary",variant:"declaration",kind:2097152,flags:{},sources:[{fileName:"wms/model.ts",line:9,character:12,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wms/model.ts#L9"}],type:{type:"reflection",declaration:{id:125,name:"__type",variant:"declaration",kind:65536,flags:{},children:[{id:128,name:"abstract",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"wms/model.ts",line:15,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wms/model.ts#L15"}],type:{type:"intrinsic",name:"string"}},{id:129,name:"children",variant:"declaration",kind:1024,flags:{isOptional:!0},comment:{summary:[{kind:"text",text:"Not defined if the layer is a leaf in the tree"}]},sources:[{fileName:"wms/model.ts",line:19,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wms/model.ts#L19"}],type:{type:"array",elementType:{type:"reference",target:124,name:"WmsLayerSummary",package:"@camptocamp/ogc-client"}}},{id:126,name:"name",variant:"declaration",kind:1024,flags:{isOptional:!0},comment:{summary:[{kind:"text",text:"The layer is renderable if defined"}]},sources:[{fileName:"wms/model.ts",line:13,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wms/model.ts#L13"}],type:{type:"intrinsic",name:"string"}},{id:127,name:"title",variant:"declaration",kind:1024,flags:{},sources:[{fileName:"wms/model.ts",line:14,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wms/model.ts#L14"}],type:{type:"intrinsic",name:"string"}}],groups:[{title:"Properties",children:[128,129,126,127]}],sources:[{fileName:"wms/model.ts",line:9,character:30,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wms/model.ts#L9"}]}}},{id:123,name:"WmsVersion",variant:"declaration",kind:2097152,flags:{},sources:[{fileName:"wms/model.ts",line:42,character:12,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wms/model.ts#L42"}],type:{type:"union",types:[{type:"literal",value:"1.1.0"},{type:"literal",value:"1.1.1"},{type:"literal",value:"1.3.0"}]}},{id:130,name:"WmtsLayerAttribution",variant:"declaration",kind:2097152,flags:{},sources:[{fileName:"wms/model.ts",line:3,character:12,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wms/model.ts#L3"}],type:{type:"reflection",declaration:{id:131,name:"__type",variant:"declaration",kind:65536,flags:{},children:[{id:134,name:"logoUrl",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"wms/model.ts",line:6,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wms/model.ts#L6"}],type:{type:"intrinsic",name:"string"}},{id:132,name:"title",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"wms/model.ts",line:4,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wms/model.ts#L4"}],type:{type:"intrinsic",name:"string"}},{id:133,name:"url",variant:"declaration",kind:1024,flags:{isOptional:!0},sources:[{fileName:"wms/model.ts",line:5,character:2,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wms/model.ts#L5"}],type:{type:"intrinsic",name:"string"}}],groups:[{title:"Properties",children:[134,132,133]}],sources:[{fileName:"wms/model.ts",line:3,character:35,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wms/model.ts#L3"}]}}},{id:180,name:"WmtsLayerDimensionValue",variant:"declaration",kind:2097152,flags:{},sources:[{fileName:"wmts/model.ts",line:70,character:12,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/wmts/model.ts#L70"}],type:{type:"intrinsic",name:"string"}},{id:312,name:"CollectionParameterTypes",variant:"declaration",kind:32,flags:{isConst:!0},sources:[{fileName:"ogc-api/model.ts",line:12,character:13,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/ogc-api/model.ts#L12"}],type:{type:"typeOperator",operator:"readonly",target:{type:"tuple",elements:[{type:"literal",value:"string"},{type:"literal",value:"number"},{type:"literal",value:"integer"},{type:"literal",value:"date"},{type:"literal",value:"point"},{type:"literal",value:"linestring"},{type:"literal",value:"polygon"},{type:"literal",value:"geometry"}]}},defaultValue:"..."},{id:305,name:"enableFallbackWithoutWorker",variant:"declaration",kind:64,flags:{},sources:[{fileName:"worker/index.ts",line:21,character:16,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/worker/index.ts#L21"}],signatures:[{id:306,name:"enableFallbackWithoutWorker",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:"Call once to disable Worker usage completely"}]},sources:[{fileName:"worker/index.ts",line:21,character:16,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/worker/index.ts#L21"}],type:{type:"intrinsic",name:"void"}}]},{id:303,name:"resetFetchOptions",variant:"declaration",kind:64,flags:{},sources:[{fileName:"shared/http-utils.ts",line:30,character:16,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/shared/http-utils.ts#L30"}],signatures:[{id:304,name:"resetFetchOptions",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:"Resets advanced fetch() options to their defaults"}]},sources:[{fileName:"shared/http-utils.ts",line:30,character:16,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/shared/http-utils.ts#L30"}],type:{type:"intrinsic",name:"void"}}]},{id:300,name:"setFetchOptions",variant:"declaration",kind:64,flags:{},sources:[{fileName:"shared/http-utils.ts",line:15,character:16,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/shared/http-utils.ts#L15"}],signatures:[{id:301,name:"setFetchOptions",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:"Set advanced options to be used by all fetch() calls"}]},sources:[{fileName:"shared/http-utils.ts",line:15,character:16,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/shared/http-utils.ts#L15"}],parameters:[{id:302,name:"options",variant:"param",kind:32768,flags:{},type:{type:"reference",target:216,name:"FetchOptions",package:"@camptocamp/ogc-client"}}],type:{type:"intrinsic",name:"void"}}]},{id:296,name:"sharedFetch",variant:"declaration",kind:64,flags:{},sources:[{fileName:"shared/http-utils.ts",line:46,character:16,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/shared/http-utils.ts#L46"}],signatures:[{id:297,name:"sharedFetch",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:"Returns a promise equivalent to "},{kind:"code",text:"`fetch(url)`"},{kind:"text",text:` but guarded against identical concurrent requests -Note: this should only be used for GET requests!`}]},sources:[{fileName:"shared/http-utils.ts",line:46,character:16,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/shared/http-utils.ts#L46"}],parameters:[{id:298,name:"url",variant:"param",kind:32768,flags:{},type:{type:"intrinsic",name:"string"}},{id:299,name:"method",variant:"param",kind:32768,flags:{},type:{type:"union",types:[{type:"literal",value:"GET"},{type:"literal",value:"HEAD"}]},defaultValue:"'GET'"}],type:{type:"reference",target:{sourceFileName:"node_modules/typescript/lib/lib.es5.d.ts",qualifiedName:"Promise"},typeArguments:[{type:"intrinsic",name:"any"}],name:"Promise",package:"typescript"}}]},{id:289,name:"useCache",variant:"declaration",kind:64,flags:{},sources:[{fileName:"shared/cache.ts",line:88,character:22,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/shared/cache.ts#L88"}],signatures:[{id:290,name:"useCache",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:`This will skip a long/expensive task and use a cached value if available, +Note: this should only be used for GET requests!`}]},sources:[{fileName:"shared/http-utils.ts",line:46,character:16,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/shared/http-utils.ts#L46"}],parameters:[{id:298,name:"url",variant:"param",kind:32768,flags:{},type:{type:"intrinsic",name:"string"}},{id:299,name:"method",variant:"param",kind:32768,flags:{},type:{type:"union",types:[{type:"literal",value:"GET"},{type:"literal",value:"HEAD"}]},defaultValue:"'GET'"}],type:{type:"reference",target:{sourceFileName:"node_modules/typescript/lib/lib.es5.d.ts",qualifiedName:"Promise"},typeArguments:[{type:"intrinsic",name:"any"}],name:"Promise",package:"typescript"}}]},{id:289,name:"useCache",variant:"declaration",kind:64,flags:{},sources:[{fileName:"shared/cache.ts",line:88,character:22,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/shared/cache.ts#L88"}],signatures:[{id:290,name:"useCache",variant:"signature",kind:4096,flags:{},comment:{summary:[{kind:"text",text:`This will skip a long/expensive task and use a cached value if available, otherwise the task will be run normally -Note: outside of a browser's main thread, caching will never happen!`}],blockTags:[{tag:"@returns",content:[{kind:"text",text:"Resolves to either a cached object or a fresh one"}]}]},sources:[{fileName:"shared/cache.ts",line:88,character:22,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/shared/cache.ts#L88"}],typeParameter:[{id:291,name:"T",variant:"typeParam",kind:131072,flags:{}}],parameters:[{id:292,name:"factory",variant:"param",kind:32768,flags:{},comment:{summary:[{kind:"text",text:`A function encapsulating +Note: outside of a browser's main thread, caching will never happen!`}],blockTags:[{tag:"@returns",content:[{kind:"text",text:"Resolves to either a cached object or a fresh one"}]}]},sources:[{fileName:"shared/cache.ts",line:88,character:22,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/shared/cache.ts#L88"}],typeParameter:[{id:291,name:"T",variant:"typeParam",kind:131072,flags:{}}],parameters:[{id:292,name:"factory",variant:"param",kind:32768,flags:{},comment:{summary:[{kind:"text",text:`A function encapsulating the long/expensive task; non-serializable properties of the returned object -will be set to null`}]},type:{type:"reflection",declaration:{id:293,name:"__type",variant:"declaration",kind:65536,flags:{},sources:[{fileName:"shared/cache.ts",line:89,character:11,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/shared/cache.ts#L89"}],signatures:[{id:294,name:"__type",variant:"signature",kind:4096,flags:{},sources:[{fileName:"shared/cache.ts",line:89,character:11,url:"https://github.com/camptocamp/ogc-client/blob/69b7c0b/src/shared/cache.ts#L89"}],type:{type:"union",types:[{type:"reference",target:291,name:"T",package:"@camptocamp/ogc-client",refersToTypeParameter:!0},{type:"reference",target:{sourceFileName:"node_modules/typescript/lib/lib.es5.d.ts",qualifiedName:"Promise"},typeArguments:[{type:"reference",target:291,name:"T",package:"@camptocamp/ogc-client",refersToTypeParameter:!0}],name:"Promise",package:"typescript"}]}}]}}},{id:295,name:"keys",variant:"param",kind:32768,flags:{isRest:!0},comment:{summary:[{kind:"text",text:"Keys will be concatenated for storage"}]},type:{type:"array",elementType:{type:"intrinsic",name:"string"}}}],type:{type:"reference",target:{sourceFileName:"node_modules/typescript/lib/lib.es5.d.ts",qualifiedName:"Promise"},typeArguments:[{type:"reference",target:291,name:"T",package:"@camptocamp/ogc-client",refersToTypeParameter:!0}],name:"Promise",package:"typescript"}}]}],cF=[{title:"Classes",children:[232,1,92,135]},{title:"Interfaces",children:[314,216,211,318,345,308,358,363,185,197,181,205]},{title:"Type Aliases",children:[215,313,307,69,70,223,386,350,377,63,71,84,87,54,88,50,49,113,124,123,130,180]},{title:"Variables",children:[312]},{title:"Functions",children:[305,303,300,296,289]}],uF="@camptocamp/ogc-client",hF=[{kind:"text",text:`# ogc-client +will be set to null`}]},type:{type:"reflection",declaration:{id:293,name:"__type",variant:"declaration",kind:65536,flags:{},sources:[{fileName:"shared/cache.ts",line:89,character:11,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/shared/cache.ts#L89"}],signatures:[{id:294,name:"__type",variant:"signature",kind:4096,flags:{},sources:[{fileName:"shared/cache.ts",line:89,character:11,url:"https://github.com/camptocamp/ogc-client/blob/daff63a/src/shared/cache.ts#L89"}],type:{type:"union",types:[{type:"reference",target:291,name:"T",package:"@camptocamp/ogc-client",refersToTypeParameter:!0},{type:"reference",target:{sourceFileName:"node_modules/typescript/lib/lib.es5.d.ts",qualifiedName:"Promise"},typeArguments:[{type:"reference",target:291,name:"T",package:"@camptocamp/ogc-client",refersToTypeParameter:!0}],name:"Promise",package:"typescript"}]}}]}}},{id:295,name:"keys",variant:"param",kind:32768,flags:{isRest:!0},comment:{summary:[{kind:"text",text:"Keys will be concatenated for storage"}]},type:{type:"array",elementType:{type:"intrinsic",name:"string"}}}],type:{type:"reference",target:{sourceFileName:"node_modules/typescript/lib/lib.es5.d.ts",qualifiedName:"Promise"},typeArguments:[{type:"reference",target:291,name:"T",package:"@camptocamp/ogc-client",refersToTypeParameter:!0}],name:"Promise",package:"typescript"}}]}],cF=[{title:"Classes",children:[232,1,92,135]},{title:"Interfaces",children:[314,216,211,318,345,308,358,363,185,197,181,205]},{title:"Type Aliases",children:[215,313,307,69,70,223,386,350,377,63,71,84,87,54,88,50,49,113,124,123,130,180]},{title:"Variables",children:[312]},{title:"Functions",children:[305,303,300,296,289]}],uF="@camptocamp/ogc-client",hF=[{kind:"text",text:`# ogc-client > A Typescript library for interacting with [OGC-compliant services](https://www.ogc.org/docs/is) @@ -195,9 +195,9 @@ To start it locally, clone the repository and run the following commands: `},{kind:"code",text:"```bash\n$ cd app\n$ npm install\n$ npm start\n```"},{kind:"text",text:` The app is based on [Vue.js](https://vuejs.org/) and will showcase most features implemented in the library. -You will need to supply it with valid OGC service urls.`}],dF={0:{sourceFileName:"src/index.ts",qualifiedName:""},1:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"default"},2:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"default.__constructor"},3:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"default"},4:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"url"},10:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"default.isReady"},11:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"default.isReady"},12:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"default.getServiceInfo"},13:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"default.getServiceInfo"},14:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"default.getFeatureTypes"},15:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"default.getFeatureTypes"},19:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"default.getFeatureTypeSummary"},20:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"default.getFeatureTypeSummary"},21:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"name"},22:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"default.getFeatureTypeFull"},23:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"default.getFeatureTypeFull"},24:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"name"},25:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"default.getSingleFeatureTypeName"},26:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"default.getSingleFeatureTypeName"},27:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"default.getFeatureTypePropDetails"},28:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"default.getFeatureTypePropDetails"},29:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"name"},30:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"default.getVersion"},31:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"default.getVersion"},35:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"default.supportsJson"},36:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"default.supportsJson"},37:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"featureType"},38:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"default.getFeatureUrl"},39:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"default.getFeatureUrl"},40:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"featureType"},41:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"options"},42:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"__type"},43:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"__type.maxFeatures"},44:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"__type.asJson"},45:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"__type.outputFormat"},46:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"__type.outputCrs"},47:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"__type.extent"},48:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"__type.extentCrs"},49:{sourceFileName:"src/wfs/model.ts",qualifiedName:"WfsVersion"},50:{sourceFileName:"src/wfs/model.ts",qualifiedName:"WfsFeatureWithProps"},51:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type"},52:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type.id"},53:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type.properties"},54:{sourceFileName:"src/wfs/model.ts",qualifiedName:"WfsFeatureTypeSummary"},55:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type"},56:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type.name"},57:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type.title"},58:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type.abstract"},59:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type.boundingBox"},60:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type.defaultCrs"},61:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type.otherCrs"},62:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type.outputFormats"},63:{sourceFileName:"src/wfs/model.ts",qualifiedName:"WfsFeatureTypeBrief"},64:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type"},65:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type.name"},66:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type.title"},67:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type.abstract"},68:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type.boundingBox"},69:{sourceFileName:"src/wfs/model.ts",qualifiedName:"FeatureGeometryType"},70:{sourceFileName:"src/wfs/model.ts",qualifiedName:"FeaturePropertyType"},71:{sourceFileName:"src/wfs/model.ts",qualifiedName:"WfsFeatureTypeFull"},72:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type"},73:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type.name"},74:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type.title"},75:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type.abstract"},76:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type.boundingBox"},77:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type.defaultCrs"},78:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type.otherCrs"},79:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type.outputFormats"},80:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type.properties"},81:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type.geometryName"},82:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type.geometryType"},83:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type.objectCount"},84:{sourceFileName:"src/wfs/model.ts",qualifiedName:"WfsFeatureTypePropDetails"},85:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type"},86:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type.uniqueValues"},87:{sourceFileName:"src/wfs/model.ts",qualifiedName:"WfsFeatureTypePropsDetails"},88:{sourceFileName:"src/wfs/model.ts",qualifiedName:"WfsFeatureTypeUniqueValue"},89:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type"},90:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type.value"},91:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type.count"},92:{sourceFileName:"src/wms/endpoint.ts",qualifiedName:"default"},93:{sourceFileName:"src/wms/endpoint.ts",qualifiedName:"default.__constructor"},94:{sourceFileName:"src/wms/endpoint.ts",qualifiedName:"default"},95:{sourceFileName:"src/wms/endpoint.ts",qualifiedName:"url"},100:{sourceFileName:"src/wms/endpoint.ts",qualifiedName:"default.isReady"},101:{sourceFileName:"src/wms/endpoint.ts",qualifiedName:"default.isReady"},102:{sourceFileName:"src/wms/endpoint.ts",qualifiedName:"default.getServiceInfo"},103:{sourceFileName:"src/wms/endpoint.ts",qualifiedName:"default.getServiceInfo"},104:{sourceFileName:"src/wms/endpoint.ts",qualifiedName:"default.getLayers"},105:{sourceFileName:"src/wms/endpoint.ts",qualifiedName:"default.getLayers"},106:{sourceFileName:"src/wms/endpoint.ts",qualifiedName:"default.getLayerByName"},107:{sourceFileName:"src/wms/endpoint.ts",qualifiedName:"default.getLayerByName"},108:{sourceFileName:"src/wms/endpoint.ts",qualifiedName:"name"},109:{sourceFileName:"src/wms/endpoint.ts",qualifiedName:"default.getSingleLayerName"},110:{sourceFileName:"src/wms/endpoint.ts",qualifiedName:"default.getSingleLayerName"},111:{sourceFileName:"src/wms/endpoint.ts",qualifiedName:"default.getVersion"},112:{sourceFileName:"src/wms/endpoint.ts",qualifiedName:"default.getVersion"},113:{sourceFileName:"src/wms/model.ts",qualifiedName:"WmsLayerFull"},114:{sourceFileName:"src/wms/model.ts",qualifiedName:"__type"},115:{sourceFileName:"src/wms/model.ts",qualifiedName:"__type.name"},116:{sourceFileName:"src/wms/model.ts",qualifiedName:"__type.title"},117:{sourceFileName:"src/wms/model.ts",qualifiedName:"__type.abstract"},118:{sourceFileName:"src/wms/model.ts",qualifiedName:"__type.availableCrs"},119:{sourceFileName:"src/wms/model.ts",qualifiedName:"__type.styles"},120:{sourceFileName:"src/wms/model.ts",qualifiedName:"__type.boundingBoxes"},121:{sourceFileName:"src/wms/model.ts",qualifiedName:"__type.attribution"},122:{sourceFileName:"src/wms/model.ts",qualifiedName:"__type.children"},123:{sourceFileName:"src/wms/model.ts",qualifiedName:"WmsVersion"},124:{sourceFileName:"src/wms/model.ts",qualifiedName:"WmsLayerSummary"},125:{sourceFileName:"src/wms/model.ts",qualifiedName:"__type"},126:{sourceFileName:"src/wms/model.ts",qualifiedName:"__type.name"},127:{sourceFileName:"src/wms/model.ts",qualifiedName:"__type.title"},128:{sourceFileName:"src/wms/model.ts",qualifiedName:"__type.abstract"},129:{sourceFileName:"src/wms/model.ts",qualifiedName:"__type.children"},130:{sourceFileName:"src/wms/model.ts",qualifiedName:"WmtsLayerAttribution"},131:{sourceFileName:"src/wms/model.ts",qualifiedName:"__type"},132:{sourceFileName:"src/wms/model.ts",qualifiedName:"__type.title"},133:{sourceFileName:"src/wms/model.ts",qualifiedName:"__type.url"},134:{sourceFileName:"src/wms/model.ts",qualifiedName:"__type.logoUrl"},135:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"default"},136:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"default.__constructor"},137:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"default"},138:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"url"},143:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"default.isReady"},144:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"default.isReady"},145:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"default.getServiceInfo"},146:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"default.getServiceInfo"},147:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"default.getLayers"},148:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"default.getLayers"},149:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"default.getMatrixSets"},150:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"default.getMatrixSets"},151:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"default.getMatrixSetByIdentifier"},152:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"default.getMatrixSetByIdentifier"},153:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"identifier"},154:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"default.getLayerByName"},155:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"default.getLayerByName"},156:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"name"},157:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"default.getSingleLayerName"},158:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"default.getSingleLayerName"},159:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"default.getLayerResourceLink"},160:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"default.getLayerResourceLink"},161:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"layerName"},162:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"formatHint"},163:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"default.getTileUrl"},164:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"default.getTileUrl"},165:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"layerName"},166:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"styleName"},167:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"matrixSetName"},168:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"tileMatrix"},169:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"tileRow"},170:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"tileCol"},171:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"outputFormat"},172:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"default.getDefaultDimensions"},173:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"default.getDefaultDimensions"},174:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"layerName"},176:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"default.getOpenLayersTileGrid"},177:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"default.getOpenLayersTileGrid"},178:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"layerName"},179:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"matrixSetIdentifier"},180:{sourceFileName:"src/wmts/model.ts",qualifiedName:"WmtsLayerDimensionValue"},181:{sourceFileName:"src/wmts/model.ts",qualifiedName:"WmtsLayerResourceLink"},182:{sourceFileName:"src/wmts/model.ts",qualifiedName:"WmtsLayerResourceLink.url"},183:{sourceFileName:"src/wmts/model.ts",qualifiedName:"WmtsLayerResourceLink.encoding"},184:{sourceFileName:"src/wmts/model.ts",qualifiedName:"WmtsLayerResourceLink.format"},185:{sourceFileName:"src/wmts/model.ts",qualifiedName:"WmtsEndpointInfo"},186:{sourceFileName:"src/wmts/model.ts",qualifiedName:"WmtsEndpointInfo.getTileUrls"},187:{sourceFileName:"src/wmts/model.ts",qualifiedName:"__type"},188:{sourceFileName:"src/wmts/model.ts",qualifiedName:"__type.kvp"},189:{sourceFileName:"src/wmts/model.ts",qualifiedName:"__type.rest"},190:{sourceFileName:"src/shared/models.ts",qualifiedName:"__type.name"},191:{sourceFileName:"src/shared/models.ts",qualifiedName:"__type.title"},192:{sourceFileName:"src/shared/models.ts",qualifiedName:"__type.abstract"},193:{sourceFileName:"src/shared/models.ts",qualifiedName:"__type.fees"},194:{sourceFileName:"src/shared/models.ts",qualifiedName:"__type.constraints"},195:{sourceFileName:"src/shared/models.ts",qualifiedName:"__type.keywords"},196:{sourceFileName:"src/shared/models.ts",qualifiedName:"__type.outputFormats"},197:{sourceFileName:"src/wmts/model.ts",qualifiedName:"WmtsLayer"},198:{sourceFileName:"src/wmts/model.ts",qualifiedName:"WmtsLayer.name"},199:{sourceFileName:"src/wmts/model.ts",qualifiedName:"WmtsLayer.resourceLinks"},200:{sourceFileName:"src/wmts/model.ts",qualifiedName:"WmtsLayer.styles"},201:{sourceFileName:"src/wmts/model.ts",qualifiedName:"WmtsLayer.defaultStyle"},202:{sourceFileName:"src/wmts/model.ts",qualifiedName:"WmtsLayer.matrixSets"},203:{sourceFileName:"src/wmts/model.ts",qualifiedName:"WmtsLayer.latLonBoundingBox"},204:{sourceFileName:"src/wmts/model.ts",qualifiedName:"WmtsLayer.dimensions"},205:{sourceFileName:"src/wmts/model.ts",qualifiedName:"WmtsMatrixSet"},206:{sourceFileName:"src/wmts/model.ts",qualifiedName:"WmtsMatrixSet.identifier"},207:{sourceFileName:"src/wmts/model.ts",qualifiedName:"WmtsMatrixSet.wellKnownScaleSet"},208:{sourceFileName:"src/wmts/model.ts",qualifiedName:"WmtsMatrixSet.crs"},209:{sourceFileName:"src/wmts/model.ts",qualifiedName:"WmtsMatrixSet.boundingBox"},210:{sourceFileName:"src/wmts/model.ts",qualifiedName:"WmtsMatrixSet.tileMatrices"},211:{sourceFileName:"src/shared/models.ts",qualifiedName:"LayerStyle"},212:{sourceFileName:"src/shared/models.ts",qualifiedName:"LayerStyle.name"},213:{sourceFileName:"src/shared/models.ts",qualifiedName:"LayerStyle.title"},214:{sourceFileName:"src/shared/models.ts",qualifiedName:"LayerStyle.legendUrl"},215:{sourceFileName:"src/shared/models.ts",qualifiedName:"BoundingBox"},216:{sourceFileName:"src/shared/models.ts",qualifiedName:"FetchOptions"},217:{sourceFileName:"src/shared/models.ts",qualifiedName:"FetchOptions.headers"},218:{sourceFileName:"src/shared/models.ts",qualifiedName:"FetchOptions.mode"},219:{sourceFileName:"src/shared/models.ts",qualifiedName:"FetchOptions.credentials"},220:{sourceFileName:"src/shared/models.ts",qualifiedName:"FetchOptions.redirect"},221:{sourceFileName:"src/shared/models.ts",qualifiedName:"FetchOptions.referrer"},222:{sourceFileName:"src/shared/models.ts",qualifiedName:"FetchOptions.integrity"},223:{sourceFileName:"src/shared/models.ts",qualifiedName:"GenericEndpointInfo"},224:{sourceFileName:"src/shared/models.ts",qualifiedName:"__type"},225:{sourceFileName:"src/shared/models.ts",qualifiedName:"__type.name"},226:{sourceFileName:"src/shared/models.ts",qualifiedName:"__type.title"},227:{sourceFileName:"src/shared/models.ts",qualifiedName:"__type.abstract"},228:{sourceFileName:"src/shared/models.ts",qualifiedName:"__type.fees"},229:{sourceFileName:"src/shared/models.ts",qualifiedName:"__type.constraints"},230:{sourceFileName:"src/shared/models.ts",qualifiedName:"__type.keywords"},231:{sourceFileName:"src/shared/models.ts",qualifiedName:"__type.outputFormats"},232:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"default"},233:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"default.__constructor"},234:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"default"},235:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"baseUrl"},240:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"default.info"},241:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"default.info"},242:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"default.conformanceClasses"},243:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"default.conformanceClasses"},244:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"default.allCollections"},245:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"default.allCollections"},246:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"default.recordCollections"},247:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"default.recordCollections"},248:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"default.featureCollections"},249:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"default.featureCollections"},250:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"default.hasTiles"},251:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"default.hasTiles"},252:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"default.hasStyles"},253:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"default.hasStyles"},254:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"default.hasFeatures"},255:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"default.hasFeatures"},256:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"default.hasRecords"},257:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"default.hasRecords"},261:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"default.getCollectionInfo"},262:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"default.getCollectionInfo"},263:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"collectionId"},264:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"default.getCollectionItems"},265:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"default.getCollectionItems"},266:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"collectionId"},267:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"limit"},268:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"offset"},269:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"skipGeometry"},270:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"sortby"},271:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"bbox"},272:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"properties"},273:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"default.getCollectionItem"},274:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"default.getCollectionItem"},275:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"collectionId"},276:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"itemId"},277:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"default.getCollectionItemsUrl"},278:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"default.getCollectionItemsUrl"},279:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"collectionId"},280:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"options"},281:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"__type"},282:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"__type.query"},283:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"__type.outputFormat"},284:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"__type.limit"},285:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"__type.offset"},286:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"__type.outputCrs"},287:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"__type.extent"},288:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"__type.extentCrs"},289:{sourceFileName:"src/shared/cache.ts",qualifiedName:"useCache"},290:{sourceFileName:"src/shared/cache.ts",qualifiedName:"useCache"},291:{sourceFileName:"src/shared/cache.ts",qualifiedName:"T"},292:{sourceFileName:"src/shared/cache.ts",qualifiedName:"factory"},293:{sourceFileName:"src/shared/cache.ts",qualifiedName:"__type"},294:{sourceFileName:"src/shared/cache.ts",qualifiedName:"__type"},295:{sourceFileName:"src/shared/cache.ts",qualifiedName:"keys"},296:{sourceFileName:"src/shared/http-utils.ts",qualifiedName:"sharedFetch"},297:{sourceFileName:"src/shared/http-utils.ts",qualifiedName:"sharedFetch"},298:{sourceFileName:"src/shared/http-utils.ts",qualifiedName:"url"},299:{sourceFileName:"src/shared/http-utils.ts",qualifiedName:"method"},300:{sourceFileName:"src/shared/http-utils.ts",qualifiedName:"setFetchOptions"},301:{sourceFileName:"src/shared/http-utils.ts",qualifiedName:"setFetchOptions"},302:{sourceFileName:"src/shared/http-utils.ts",qualifiedName:"options"},303:{sourceFileName:"src/shared/http-utils.ts",qualifiedName:"resetFetchOptions"},304:{sourceFileName:"src/shared/http-utils.ts",qualifiedName:"resetFetchOptions"},305:{sourceFileName:"src/worker/index.ts",qualifiedName:"enableFallbackWithoutWorker"},306:{sourceFileName:"src/worker/index.ts",qualifiedName:"enableFallbackWithoutWorker"},307:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"ConformanceClass"},308:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiEndpointInfo"},309:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiEndpointInfo.title"},310:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiEndpointInfo.description"},311:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiEndpointInfo.attribution"},312:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"CollectionParameterTypes"},313:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"CollectionParameterType"},314:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"CollectionParameter"},315:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"CollectionParameter.name"},316:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"CollectionParameter.title"},317:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"CollectionParameter.type"},318:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiCollectionInfo"},319:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiCollectionInfo.title"},320:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiCollectionInfo.description"},321:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiCollectionInfo.id"},322:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiCollectionInfo.itemType"},323:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiCollectionInfo.formats"},324:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiCollectionInfo.crs"},325:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiCollectionInfo.storageCrs"},326:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiCollectionInfo.itemCount"},327:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiCollectionInfo.keywords"},328:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiCollectionInfo.language"},329:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiCollectionInfo.updated"},330:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiCollectionInfo.extent"},331:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiCollectionInfo.publisher"},332:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"__type"},333:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"__type.individualName"},334:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"__type.organizationName"},335:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"__type.positionName"},336:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"__type.contactInfo"},337:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"__type"},338:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"__type.phone"},339:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"__type.email"},340:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"__type"},341:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"__type.work"},342:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiCollectionInfo.license"},343:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiCollectionInfo.queryables"},344:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiCollectionInfo.sortables"},345:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiDocumentLinks"},346:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiDocumentLinks.rel"},347:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiDocumentLinks.type"},348:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiDocumentLinks.title"},349:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiDocumentLinks.href"},350:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiDocument"},351:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"__type"},352:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"__type.links"},353:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"__type"},354:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"__type.rel"},355:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"__type.type"},356:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"__type.title"},357:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"__type.href"},358:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiRecordContact"},359:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiRecordContact.name"},360:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiRecordContact.links"},361:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiRecordContact.contactInstructions"},362:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiRecordContact.roles"},363:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiRecordProperties"},364:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiRecordProperties.type"},365:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiRecordProperties.title"},366:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiRecordProperties.recordCreated"},367:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiRecordProperties.recordUpdated"},368:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiRecordProperties.providers"},369:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiRecordProperties.description"},370:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiRecordProperties.externalId"},371:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiRecordProperties.themes"},372:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiRecordProperties.keywords"},373:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiRecordProperties.language"},374:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiRecordProperties.contacts"},375:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiRecordProperties.formats"},376:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiRecordProperties.license"},377:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiRecord"},378:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"__type"},379:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"__type.id"},380:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"__type.type"},381:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"__type.time"},382:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"__type.geometry"},383:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"__type.properties"},384:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"__type.links"},385:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"__type.conformsTo"},386:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiCollectionItem"}},ps={id:nF,name:sF,variant:rF,kind:aF,flags:oF,children:lF,groups:cF,packageName:uF,readme:hF,symbolIdMap:dF};function mF(t){return t.name}function Km(t){var n,s,r,a,o;const e=(((s=(n=t==null?void 0:t.signatures)==null?void 0:n[0])==null?void 0:s.parameters)||[]).map(l=>{var c,u;return`${(c=l.flags)!=null&&c.isRest?"...":""}${l.name}${(u=l.flags)!=null&&u.optional?"?":""}: ${st(l.type)}`}).join(", ");let i="";return(o=(a=(r=t==null?void 0:t.signatures)==null?void 0:r[0])==null?void 0:a.typeParameter)!=null&&o.length&&(i=`<${t.signatures[0].typeParameter.map(l=>l.name).join(", ")}>`),`${t.name}${i}(${e})`}function fF(t,e){var n,s;const i=(((s=(n=e==null?void 0:e.signatures)==null?void 0:n[0])==null?void 0:s.parameters)||[]).map(r=>{var a;return`${(a=r.flags)!=null&&a.isRest?"...":""}${r.name}: ${st(r.type)}`}).join(", ");return`new ${t.name}(${i})`}function st(t){var e,i,n,s,r;if(!t)return"void";if(t.type==="array")return`${st(t.elementType)}[]`;if(t.type==="union")return t.types.map(st).join(" | ");if(t.type==="intersection")return t.types.map(st).join(" & ");if(t.type==="literal")return`'${t.value}'`;if(t.type==="reflection"&&((i=(e=t.declaration)==null?void 0:e.signatures)!=null&&i.length)){const a=(r=(s=(n=t.declaration)==null?void 0:n.signatures)==null?void 0:s[0])==null?void 0:r.type;return`() => ${st(a)}`}if(t.type==="reference"){switch(t.name){case"Record":return`Record\\<${st(t.typeArguments[0])}, ${st(t.typeArguments[1])}\\>`;case"Response":return"[Response](https://developer.mozilla.org/en-US/docs/Web/API/Response)";case"Promise":return`Promise<${st(t.typeArguments[0])}>`}const a=ps.children.find(o=>o.id===t.target);return a?`[${a.name}](#/api/${a.name})`:t.name}if(t.type==="query"){const a=ps.children.find(o=>o.id===t.queryType.target);return a||t.queryType.name}return t.type==="indexedAccess"?`${st(t.objectType)}[${st(t.indexType)}]`:t.type==="tuple"?`[${t.elements.map(st).join(", ")}]`:t.name}function Ot(t){var e,i,n,s,r,a,o;return(o=((i=(e=t==null?void 0:t.getSignature)==null?void 0:e.comment)==null?void 0:i.summary)||((r=(s=(n=t==null?void 0:t.signatures)==null?void 0:n[0])==null?void 0:s.comment)==null?void 0:r.summary)||((a=t==null?void 0:t.comment)==null?void 0:a.summary))==null?void 0:o.map(l=>l.text).join("")}const pF=["id","href"],gF={__name:"AnchorLink",props:["href"],setup(t){const{href:e}=t,i=Oe(()=>`#/api/${e}`),n=Oe(()=>`/api/${e}`);return(s,r)=>(D(),K("div",null,[C("a",{id:n.value,href:i.value},"#",8,pF)]))}},Ol=We(gF,[["__scopeId","data-v-d2cde500"]]);const zs=t=>(Qi("data-v-537bb5f2"),t=t(),en(),t),yF={class:"card mb-4"},bF=zs(()=>C("div",{class:"card-header text-uppercase small border-bottom-0 py-1 px-3"}," class ",-1)),_F={class:"card-body pb-0"},vF={class:"mb-3"},xF=["innerHTML"],wF={class:"row"},CF=zs(()=>C("div",{class:"col-3 text-uppercase text-secondary fw-bold pt-1",style:{"font-size":"0.8em"}}," 📦 constructor ",-1)),NF={class:"col"},FF=["innerHTML"],EF={class:"row"},MF=zs(()=>C("div",{class:"col-3 text-uppercase text-secondary fw-bold pt-1",style:{"font-size":"0.8em"}}," 💡 property ",-1)),TF={class:"col"},RF=["innerHTML"],IF={class:"row"},kF=zs(()=>C("div",{class:"col-3 text-uppercase text-secondary fw-bold pt-1",style:{"font-size":"0.8em"}}," ⚡ method ",-1)),LF={class:"col"},SF=["innerHTML"],DF={class:"row pb-2"},PF=zs(()=>C("div",{class:"col-3 text-uppercase text-secondary fw-bold pt-1",style:{"font-size":"0.8em"}}," 🌱️ returns ",-1)),AF={class:"col"},OF=["innerHTML"],GF={__name:"ClassCard",props:["apiElement"],setup(t){const i=t.apiElement,n=Oe(()=>i.children.find(h=>h.name==="constructor")),s=Oe(()=>i.children.filter(h=>h.kind&262144)),r=Oe(()=>i.children.filter(h=>h.kind&2048));function a(h){return si(Km(h))}function o(h){var d,m;return si(st((m=(d=h==null?void 0:h.signatures)==null?void 0:d[0])==null?void 0:m.type))}function l(h){return si(`${h.name}: ${st(h.getSignature.type)}`)}const c=Oe(()=>si(mF(i))),u=Oe(()=>si(fF(i,n.value)));return(h,d)=>(D(),K("div",yF,[B(Ol,{href:be(i).name},null,8,["href"]),bF,C("div",_F,[C("h5",vF,[C("code",{innerHTML:c.value},null,8,xF)]),B(il,{lang:"js",class:"mb-3"},{default:Je(()=>[C("pre",null,"import { "+Ge(be(i).name)+" } from '@camptocamp/ogc-client';",1)]),_:1}),C("div",wF,[CF,C("div",NF,[C("code",{class:"mb-2",innerHTML:u.value},null,8,FF),be(Ot)(n.value)?(D(),wt(Vi,{key:0,class:"mb-2 small",text:be(Ot)(n.value)},null,8,["text"])):De("",!0)])]),(D(!0),K(ke,null,Tt(s.value,m=>(D(),K("div",EF,[MF,C("div",TF,[C("code",{class:"mb-2",innerHTML:l(m)},null,8,RF),be(Ot)(m)?(D(),wt(Vi,{key:0,class:"mb-2 small",text:be(Ot)(m)},null,8,["text"])):De("",!0)])]))),256)),(D(!0),K(ke,null,Tt(r.value,m=>(D(),K("div",IF,[kF,C("div",LF,[C("code",{class:"mb-2",innerHTML:a(m)},null,8,SF),C("div",DF,[PF,C("div",AF,[C("code",{innerHTML:o(m)},null,8,OF)])]),be(Ot)(m)?(D(),wt(Vi,{key:0,class:"mb-2 small",text:be(Ot)(m)},null,8,["text"])):De("",!0)])]))),256)),B(Vi,{class:"mb-3 mt-2 small",text:be(Ot)(be(i))},null,8,["text"])])]))}},ZF=We(GF,[["__scopeId","data-v-537bb5f2"]]);const Vm=t=>(Qi("data-v-a94003c8"),t=t(),en(),t),XF={class:"card mb-4"},WF=Vm(()=>C("div",{class:"card-header text-uppercase small border-bottom-0 py-1 px-3"}," function ",-1)),KF={class:"card-body pb-0"},VF={class:"mb-3"},UF=["innerHTML"],BF={key:0,class:"row pb-2"},HF=Vm(()=>C("div",{class:"col-3 text-uppercase text-secondary fw-bold pt-1",style:{"font-size":"0.8em"}}," 🌱 returns ",-1)),zF={class:"col"},qF=["innerHTML"],jF={__name:"FunctionCard",props:["apiElement"],setup(t){const i=t.apiElement,n=Oe(()=>si(Km(i))),s=Oe(()=>{var r,a;return si(st((a=(r=i==null?void 0:i.signatures)==null?void 0:r[0])==null?void 0:a.type))});return(r,a)=>(D(),K("div",XF,[B(Ol,{href:be(i).name},null,8,["href"]),WF,C("div",KF,[C("h5",VF,[C("code",{innerHTML:n.value},null,8,UF)]),B(il,{lang:"js",class:"mb-3"},{default:Je(()=>[C("pre",null,"import { "+Ge(be(i).name)+" } from '@camptocamp/ogc-client';",1)]),_:1}),s.value&&s.value!=="void"?(D(),K("div",BF,[HF,C("div",zF,[C("code",{innerHTML:s.value},null,8,qF)])])):De("",!0),B(Vi,{class:"small mt-2",text:be(Ot)(be(i))},null,8,["text"])])]))}},YF=We(jF,[["__scopeId","data-v-a94003c8"]]);const Um=t=>(Qi("data-v-0281e21d"),t=t(),en(),t),$F={class:"card mb-4"},JF=Um(()=>C("div",{class:"card-header text-uppercase small border-bottom-0 py-1 px-3"}," type ",-1)),QF={class:"card-body pb-0"},eE={class:"mb-3"},tE=["innerHTML"],iE={key:0,class:"row"},nE={class:"col"},sE=["innerHTML"],rE={class:"row"},aE=Um(()=>C("div",{class:"col-3 text-uppercase text-secondary fw-bold pt-1",style:{"font-size":"0.8em"}}," 💡 property ",-1)),oE={class:"col"},lE=["innerHTML"],cE={__name:"TypeCard",props:["apiElement"],setup(t){const i=t.apiElement,n=Oe(()=>i.kind&256||i.kind&65536||i.kind&2097152&&i.type.type==="reflection"&&i.type.declaration),s=Oe(()=>i.kind&2097152&&!n.value),r=Oe(()=>((i.kind&2097152)>0?i.type.declaration.children:i.children).filter(c=>c.kind&1024));function a(l){return si(`${l.name}: ${st(l.type)}`)}function o(l){return si(st(l))}return(l,c)=>(D(),K("div",$F,[B(Ol,{href:be(i).name},null,8,["href"]),JF,C("div",QF,[C("h5",eE,[C("code",{innerHTML:be(i).name},null,8,tE)]),s.value?(D(),K("div",iE,[C("div",nE,[C("code",{class:"mb-2",innerHTML:o(be(i).type)},null,8,sE)])])):De("",!0),n.value?(D(!0),K(ke,{key:1},Tt(r.value,u=>(D(),K("div",rE,[aE,C("div",oE,[C("code",{class:"mb-2",innerHTML:a(u)},null,8,lE),be(Ot)(u)?(D(),wt(Vi,{key:0,class:"mb-2 small",text:be(Ot)(u)},null,8,["text"])):De("",!0)])]))),256)):De("",!0),B(Vi,{class:"small mt-2",text:be(Ot)(be(i))},null,8,["text"])])]))}},uE=We(cE,[["__scopeId","data-v-0281e21d"]]),Bm={__name:"Api",setup(t){Hh(()=>{hljs.highlightAll()});const e=ps.children.filter(s=>s.kind&128),i=ps.children.filter(s=>s.kind&64),n=ps.children.filter(s=>s.kind&256||s.kind&2097152);return(s,r)=>(D(),K("div",null,[(D(!0),K(ke,null,Tt(be(e),a=>(D(),wt(ZF,{"api-element":a},null,8,["api-element"]))),256)),(D(!0),K(ke,null,Tt(be(i),a=>(D(),wt(YF,{"api-element":a},null,8,["api-element"]))),256)),(D(!0),K(ke,null,Tt(be(n),a=>(D(),wt(uE,{"api-element":a},null,8,["api-element"]))),256))]))}};const hE={name:"App",components:{Docs:ld,LibLogo:S0,Demo:Wm,Api:Bm}},dE={class:"container"},mE={class:"col-8 offset-2"},fE={class:"title text-center",style:{"font-size":"5em",margin:"130px 0 70px"}},pE={class:"d-flex flex-row justify-content-center",style:{"margin-bottom":"70px"}};function gE(t,e,i,n,s,r){const a=Me("LibLogo"),o=Me("router-link"),l=Me("router-view");return D(),K("div",dE,[C("div",mE,[C("h1",fE,[B(a)]),C("div",pE,[B(o,{to:"/"},{default:Je(({isActive:c})=>[C("button",{type:"button",class:Ui(["btn btn-primary tab-toggle m-3",{"tab-toggle-enabled":c}]),onClick:e[0]||(e[0]=u=>t.tab="docs")}," DOCS ",2)]),_:1}),B(o,{to:"/api"},{default:Je(({isActive:c})=>[C("button",{type:"button",class:Ui(["btn btn-primary tab-toggle m-3",{"tab-toggle-enabled":c}]),onClick:e[1]||(e[1]=u=>t.tab="api")}," API ",2)]),_:1}),B(o,{to:"/demo"},{default:Je(({isActive:c})=>[C("button",{type:"button",class:Ui(["btn btn-primary tab-toggle m-3",{"tab-toggle-enabled":c}]),onClick:e[2]||(e[2]=u=>t.tab="demo")}," TRY IT! ",2)]),_:1})]),B(l)])])}const yE=We(hE,[["render",gE],["__scopeId","data-v-f6302033"]]),bE=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uD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DE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,_E=Object.hasOwnProperty;class vE{constructor(){this.occurrences,this.reset()}slug(e,i){const n=this;let s=xE(e,i===!0);const r=s;for(;_E.call(n.occurrences,s);)n.occurrences[r]++,s=r+"-"+n.occurrences[r];return n.occurrences[s]=0,s}reset(){this.occurrences=Object.create(null)}}function xE(t,e){return typeof t!="string"?"":(e||(t=t.toLowerCase()),t.replace(bE,"").replace(/ /g,"-"))}let Xu,Wu=[];function wE({prefix:t=""}={}){return{headerIds:!1,hooks:{preprocess(e){return Wu=[],Xu=new vE,e}},renderer:{heading(e,i,n){n=n.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"");const s=`${t}${Xu.slug(n)}`,r={level:i,text:e,id:s};return Wu.push(r),`${e} +You will need to supply it with valid OGC service urls.`}],dF={0:{sourceFileName:"src/index.ts",qualifiedName:""},1:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"default"},2:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"default.__constructor"},3:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"default"},4:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"url"},10:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"default.isReady"},11:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"default.isReady"},12:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"default.getServiceInfo"},13:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"default.getServiceInfo"},14:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"default.getFeatureTypes"},15:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"default.getFeatureTypes"},19:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"default.getFeatureTypeSummary"},20:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"default.getFeatureTypeSummary"},21:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"name"},22:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"default.getFeatureTypeFull"},23:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"default.getFeatureTypeFull"},24:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"name"},25:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"default.getSingleFeatureTypeName"},26:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"default.getSingleFeatureTypeName"},27:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"default.getFeatureTypePropDetails"},28:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"default.getFeatureTypePropDetails"},29:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"name"},30:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"default.getVersion"},31:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"default.getVersion"},35:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"default.supportsJson"},36:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"default.supportsJson"},37:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"featureType"},38:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"default.getFeatureUrl"},39:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"default.getFeatureUrl"},40:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"featureType"},41:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"options"},42:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"__type"},43:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"__type.maxFeatures"},44:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"__type.asJson"},45:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"__type.outputFormat"},46:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"__type.outputCrs"},47:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"__type.extent"},48:{sourceFileName:"src/wfs/endpoint.ts",qualifiedName:"__type.extentCrs"},49:{sourceFileName:"src/wfs/model.ts",qualifiedName:"WfsVersion"},50:{sourceFileName:"src/wfs/model.ts",qualifiedName:"WfsFeatureWithProps"},51:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type"},52:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type.id"},53:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type.properties"},54:{sourceFileName:"src/wfs/model.ts",qualifiedName:"WfsFeatureTypeSummary"},55:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type"},56:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type.name"},57:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type.title"},58:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type.abstract"},59:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type.boundingBox"},60:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type.defaultCrs"},61:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type.otherCrs"},62:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type.outputFormats"},63:{sourceFileName:"src/wfs/model.ts",qualifiedName:"WfsFeatureTypeBrief"},64:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type"},65:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type.name"},66:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type.title"},67:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type.abstract"},68:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type.boundingBox"},69:{sourceFileName:"src/wfs/model.ts",qualifiedName:"FeatureGeometryType"},70:{sourceFileName:"src/wfs/model.ts",qualifiedName:"FeaturePropertyType"},71:{sourceFileName:"src/wfs/model.ts",qualifiedName:"WfsFeatureTypeFull"},72:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type"},73:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type.name"},74:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type.title"},75:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type.abstract"},76:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type.boundingBox"},77:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type.defaultCrs"},78:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type.otherCrs"},79:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type.outputFormats"},80:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type.properties"},81:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type.geometryName"},82:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type.geometryType"},83:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type.objectCount"},84:{sourceFileName:"src/wfs/model.ts",qualifiedName:"WfsFeatureTypePropDetails"},85:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type"},86:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type.uniqueValues"},87:{sourceFileName:"src/wfs/model.ts",qualifiedName:"WfsFeatureTypePropsDetails"},88:{sourceFileName:"src/wfs/model.ts",qualifiedName:"WfsFeatureTypeUniqueValue"},89:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type"},90:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type.value"},91:{sourceFileName:"src/wfs/model.ts",qualifiedName:"__type.count"},92:{sourceFileName:"src/wms/endpoint.ts",qualifiedName:"default"},93:{sourceFileName:"src/wms/endpoint.ts",qualifiedName:"default.__constructor"},94:{sourceFileName:"src/wms/endpoint.ts",qualifiedName:"default"},95:{sourceFileName:"src/wms/endpoint.ts",qualifiedName:"url"},100:{sourceFileName:"src/wms/endpoint.ts",qualifiedName:"default.isReady"},101:{sourceFileName:"src/wms/endpoint.ts",qualifiedName:"default.isReady"},102:{sourceFileName:"src/wms/endpoint.ts",qualifiedName:"default.getServiceInfo"},103:{sourceFileName:"src/wms/endpoint.ts",qualifiedName:"default.getServiceInfo"},104:{sourceFileName:"src/wms/endpoint.ts",qualifiedName:"default.getLayers"},105:{sourceFileName:"src/wms/endpoint.ts",qualifiedName:"default.getLayers"},106:{sourceFileName:"src/wms/endpoint.ts",qualifiedName:"default.getLayerByName"},107:{sourceFileName:"src/wms/endpoint.ts",qualifiedName:"default.getLayerByName"},108:{sourceFileName:"src/wms/endpoint.ts",qualifiedName:"name"},109:{sourceFileName:"src/wms/endpoint.ts",qualifiedName:"default.getSingleLayerName"},110:{sourceFileName:"src/wms/endpoint.ts",qualifiedName:"default.getSingleLayerName"},111:{sourceFileName:"src/wms/endpoint.ts",qualifiedName:"default.getVersion"},112:{sourceFileName:"src/wms/endpoint.ts",qualifiedName:"default.getVersion"},113:{sourceFileName:"src/wms/model.ts",qualifiedName:"WmsLayerFull"},114:{sourceFileName:"src/wms/model.ts",qualifiedName:"__type"},115:{sourceFileName:"src/wms/model.ts",qualifiedName:"__type.name"},116:{sourceFileName:"src/wms/model.ts",qualifiedName:"__type.title"},117:{sourceFileName:"src/wms/model.ts",qualifiedName:"__type.abstract"},118:{sourceFileName:"src/wms/model.ts",qualifiedName:"__type.availableCrs"},119:{sourceFileName:"src/wms/model.ts",qualifiedName:"__type.styles"},120:{sourceFileName:"src/wms/model.ts",qualifiedName:"__type.boundingBoxes"},121:{sourceFileName:"src/wms/model.ts",qualifiedName:"__type.attribution"},122:{sourceFileName:"src/wms/model.ts",qualifiedName:"__type.children"},123:{sourceFileName:"src/wms/model.ts",qualifiedName:"WmsVersion"},124:{sourceFileName:"src/wms/model.ts",qualifiedName:"WmsLayerSummary"},125:{sourceFileName:"src/wms/model.ts",qualifiedName:"__type"},126:{sourceFileName:"src/wms/model.ts",qualifiedName:"__type.name"},127:{sourceFileName:"src/wms/model.ts",qualifiedName:"__type.title"},128:{sourceFileName:"src/wms/model.ts",qualifiedName:"__type.abstract"},129:{sourceFileName:"src/wms/model.ts",qualifiedName:"__type.children"},130:{sourceFileName:"src/wms/model.ts",qualifiedName:"WmtsLayerAttribution"},131:{sourceFileName:"src/wms/model.ts",qualifiedName:"__type"},132:{sourceFileName:"src/wms/model.ts",qualifiedName:"__type.title"},133:{sourceFileName:"src/wms/model.ts",qualifiedName:"__type.url"},134:{sourceFileName:"src/wms/model.ts",qualifiedName:"__type.logoUrl"},135:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"default"},136:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"default.__constructor"},137:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"default"},138:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"url"},143:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"default.isReady"},144:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"default.isReady"},145:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"default.getServiceInfo"},146:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"default.getServiceInfo"},147:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"default.getLayers"},148:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"default.getLayers"},149:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"default.getMatrixSets"},150:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"default.getMatrixSets"},151:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"default.getMatrixSetByIdentifier"},152:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"default.getMatrixSetByIdentifier"},153:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"identifier"},154:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"default.getLayerByName"},155:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"default.getLayerByName"},156:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"name"},157:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"default.getSingleLayerName"},158:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"default.getSingleLayerName"},159:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"default.getLayerResourceLink"},160:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"default.getLayerResourceLink"},161:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"layerName"},162:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"formatHint"},163:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"default.getTileUrl"},164:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"default.getTileUrl"},165:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"layerName"},166:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"styleName"},167:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"matrixSetName"},168:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"tileMatrix"},169:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"tileRow"},170:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"tileCol"},171:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"outputFormat"},172:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"default.getDefaultDimensions"},173:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"default.getDefaultDimensions"},174:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"layerName"},176:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"default.getOpenLayersTileGrid"},177:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"default.getOpenLayersTileGrid"},178:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"layerName"},179:{sourceFileName:"src/wmts/endpoint.ts",qualifiedName:"matrixSetIdentifier"},180:{sourceFileName:"src/wmts/model.ts",qualifiedName:"WmtsLayerDimensionValue"},181:{sourceFileName:"src/wmts/model.ts",qualifiedName:"WmtsLayerResourceLink"},182:{sourceFileName:"src/wmts/model.ts",qualifiedName:"WmtsLayerResourceLink.url"},183:{sourceFileName:"src/wmts/model.ts",qualifiedName:"WmtsLayerResourceLink.encoding"},184:{sourceFileName:"src/wmts/model.ts",qualifiedName:"WmtsLayerResourceLink.format"},185:{sourceFileName:"src/wmts/model.ts",qualifiedName:"WmtsEndpointInfo"},186:{sourceFileName:"src/wmts/model.ts",qualifiedName:"WmtsEndpointInfo.getTileUrls"},187:{sourceFileName:"src/wmts/model.ts",qualifiedName:"__type"},188:{sourceFileName:"src/wmts/model.ts",qualifiedName:"__type.kvp"},189:{sourceFileName:"src/wmts/model.ts",qualifiedName:"__type.rest"},190:{sourceFileName:"src/shared/models.ts",qualifiedName:"__type.name"},191:{sourceFileName:"src/shared/models.ts",qualifiedName:"__type.title"},192:{sourceFileName:"src/shared/models.ts",qualifiedName:"__type.abstract"},193:{sourceFileName:"src/shared/models.ts",qualifiedName:"__type.fees"},194:{sourceFileName:"src/shared/models.ts",qualifiedName:"__type.constraints"},195:{sourceFileName:"src/shared/models.ts",qualifiedName:"__type.keywords"},196:{sourceFileName:"src/shared/models.ts",qualifiedName:"__type.outputFormats"},197:{sourceFileName:"src/wmts/model.ts",qualifiedName:"WmtsLayer"},198:{sourceFileName:"src/wmts/model.ts",qualifiedName:"WmtsLayer.name"},199:{sourceFileName:"src/wmts/model.ts",qualifiedName:"WmtsLayer.resourceLinks"},200:{sourceFileName:"src/wmts/model.ts",qualifiedName:"WmtsLayer.styles"},201:{sourceFileName:"src/wmts/model.ts",qualifiedName:"WmtsLayer.defaultStyle"},202:{sourceFileName:"src/wmts/model.ts",qualifiedName:"WmtsLayer.matrixSets"},203:{sourceFileName:"src/wmts/model.ts",qualifiedName:"WmtsLayer.latLonBoundingBox"},204:{sourceFileName:"src/wmts/model.ts",qualifiedName:"WmtsLayer.dimensions"},205:{sourceFileName:"src/wmts/model.ts",qualifiedName:"WmtsMatrixSet"},206:{sourceFileName:"src/wmts/model.ts",qualifiedName:"WmtsMatrixSet.identifier"},207:{sourceFileName:"src/wmts/model.ts",qualifiedName:"WmtsMatrixSet.wellKnownScaleSet"},208:{sourceFileName:"src/wmts/model.ts",qualifiedName:"WmtsMatrixSet.crs"},209:{sourceFileName:"src/wmts/model.ts",qualifiedName:"WmtsMatrixSet.boundingBox"},210:{sourceFileName:"src/wmts/model.ts",qualifiedName:"WmtsMatrixSet.tileMatrices"},211:{sourceFileName:"src/shared/models.ts",qualifiedName:"LayerStyle"},212:{sourceFileName:"src/shared/models.ts",qualifiedName:"LayerStyle.name"},213:{sourceFileName:"src/shared/models.ts",qualifiedName:"LayerStyle.title"},214:{sourceFileName:"src/shared/models.ts",qualifiedName:"LayerStyle.legendUrl"},215:{sourceFileName:"src/shared/models.ts",qualifiedName:"BoundingBox"},216:{sourceFileName:"src/shared/models.ts",qualifiedName:"FetchOptions"},217:{sourceFileName:"src/shared/models.ts",qualifiedName:"FetchOptions.headers"},218:{sourceFileName:"src/shared/models.ts",qualifiedName:"FetchOptions.mode"},219:{sourceFileName:"src/shared/models.ts",qualifiedName:"FetchOptions.credentials"},220:{sourceFileName:"src/shared/models.ts",qualifiedName:"FetchOptions.redirect"},221:{sourceFileName:"src/shared/models.ts",qualifiedName:"FetchOptions.referrer"},222:{sourceFileName:"src/shared/models.ts",qualifiedName:"FetchOptions.integrity"},223:{sourceFileName:"src/shared/models.ts",qualifiedName:"GenericEndpointInfo"},224:{sourceFileName:"src/shared/models.ts",qualifiedName:"__type"},225:{sourceFileName:"src/shared/models.ts",qualifiedName:"__type.name"},226:{sourceFileName:"src/shared/models.ts",qualifiedName:"__type.title"},227:{sourceFileName:"src/shared/models.ts",qualifiedName:"__type.abstract"},228:{sourceFileName:"src/shared/models.ts",qualifiedName:"__type.fees"},229:{sourceFileName:"src/shared/models.ts",qualifiedName:"__type.constraints"},230:{sourceFileName:"src/shared/models.ts",qualifiedName:"__type.keywords"},231:{sourceFileName:"src/shared/models.ts",qualifiedName:"__type.outputFormats"},232:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"default"},233:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"default.__constructor"},234:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"default"},235:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"baseUrl"},240:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"default.info"},241:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"default.info"},242:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"default.conformanceClasses"},243:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"default.conformanceClasses"},244:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"default.allCollections"},245:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"default.allCollections"},246:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"default.recordCollections"},247:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"default.recordCollections"},248:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"default.featureCollections"},249:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"default.featureCollections"},250:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"default.hasTiles"},251:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"default.hasTiles"},252:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"default.hasStyles"},253:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"default.hasStyles"},254:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"default.hasFeatures"},255:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"default.hasFeatures"},256:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"default.hasRecords"},257:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"default.hasRecords"},261:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"default.getCollectionInfo"},262:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"default.getCollectionInfo"},263:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"collectionId"},264:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"default.getCollectionItems"},265:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"default.getCollectionItems"},266:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"collectionId"},267:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"limit"},268:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"offset"},269:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"skipGeometry"},270:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"sortby"},271:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"bbox"},272:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"properties"},273:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"default.getCollectionItem"},274:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"default.getCollectionItem"},275:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"collectionId"},276:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"itemId"},277:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"default.getCollectionItemsUrl"},278:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"default.getCollectionItemsUrl"},279:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"collectionId"},280:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"options"},281:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"__type"},282:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"__type.query"},283:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"__type.outputFormat"},284:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"__type.limit"},285:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"__type.offset"},286:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"__type.outputCrs"},287:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"__type.extent"},288:{sourceFileName:"src/ogc-api/endpoint.ts",qualifiedName:"__type.extentCrs"},289:{sourceFileName:"src/shared/cache.ts",qualifiedName:"useCache"},290:{sourceFileName:"src/shared/cache.ts",qualifiedName:"useCache"},291:{sourceFileName:"src/shared/cache.ts",qualifiedName:"T"},292:{sourceFileName:"src/shared/cache.ts",qualifiedName:"factory"},293:{sourceFileName:"src/shared/cache.ts",qualifiedName:"__type"},294:{sourceFileName:"src/shared/cache.ts",qualifiedName:"__type"},295:{sourceFileName:"src/shared/cache.ts",qualifiedName:"keys"},296:{sourceFileName:"src/shared/http-utils.ts",qualifiedName:"sharedFetch"},297:{sourceFileName:"src/shared/http-utils.ts",qualifiedName:"sharedFetch"},298:{sourceFileName:"src/shared/http-utils.ts",qualifiedName:"url"},299:{sourceFileName:"src/shared/http-utils.ts",qualifiedName:"method"},300:{sourceFileName:"src/shared/http-utils.ts",qualifiedName:"setFetchOptions"},301:{sourceFileName:"src/shared/http-utils.ts",qualifiedName:"setFetchOptions"},302:{sourceFileName:"src/shared/http-utils.ts",qualifiedName:"options"},303:{sourceFileName:"src/shared/http-utils.ts",qualifiedName:"resetFetchOptions"},304:{sourceFileName:"src/shared/http-utils.ts",qualifiedName:"resetFetchOptions"},305:{sourceFileName:"src/worker/index.ts",qualifiedName:"enableFallbackWithoutWorker"},306:{sourceFileName:"src/worker/index.ts",qualifiedName:"enableFallbackWithoutWorker"},307:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"ConformanceClass"},308:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiEndpointInfo"},309:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiEndpointInfo.title"},310:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiEndpointInfo.description"},311:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiEndpointInfo.attribution"},312:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"CollectionParameterTypes"},313:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"CollectionParameterType"},314:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"CollectionParameter"},315:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"CollectionParameter.name"},316:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"CollectionParameter.title"},317:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"CollectionParameter.type"},318:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiCollectionInfo"},319:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiCollectionInfo.title"},320:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiCollectionInfo.description"},321:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiCollectionInfo.id"},322:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiCollectionInfo.itemType"},323:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiCollectionInfo.formats"},324:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiCollectionInfo.crs"},325:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiCollectionInfo.storageCrs"},326:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiCollectionInfo.itemCount"},327:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiCollectionInfo.keywords"},328:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiCollectionInfo.language"},329:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiCollectionInfo.updated"},330:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiCollectionInfo.extent"},331:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiCollectionInfo.publisher"},332:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"__type"},333:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"__type.individualName"},334:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"__type.organizationName"},335:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"__type.positionName"},336:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"__type.contactInfo"},337:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"__type"},338:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"__type.phone"},339:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"__type.email"},340:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"__type"},341:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"__type.work"},342:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiCollectionInfo.license"},343:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiCollectionInfo.queryables"},344:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiCollectionInfo.sortables"},345:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiDocumentLinks"},346:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiDocumentLinks.rel"},347:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiDocumentLinks.type"},348:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiDocumentLinks.title"},349:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiDocumentLinks.href"},350:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiDocument"},351:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"__type"},352:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"__type.links"},353:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"__type"},354:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"__type.rel"},355:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"__type.type"},356:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"__type.title"},357:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"__type.href"},358:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiRecordContact"},359:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiRecordContact.name"},360:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiRecordContact.links"},361:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiRecordContact.contactInstructions"},362:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiRecordContact.roles"},363:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiRecordProperties"},364:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiRecordProperties.type"},365:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiRecordProperties.title"},366:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiRecordProperties.recordCreated"},367:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiRecordProperties.recordUpdated"},368:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiRecordProperties.providers"},369:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiRecordProperties.description"},370:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiRecordProperties.externalId"},371:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiRecordProperties.themes"},372:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiRecordProperties.keywords"},373:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiRecordProperties.language"},374:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiRecordProperties.contacts"},375:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiRecordProperties.formats"},376:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiRecordProperties.license"},377:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiRecord"},378:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"__type"},379:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"__type.id"},380:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"__type.type"},381:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"__type.time"},382:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"__type.geometry"},383:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"__type.properties"},384:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"__type.links"},385:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"__type.conformsTo"},386:{sourceFileName:"src/ogc-api/model.ts",qualifiedName:"OgcApiCollectionItem"}},ps={id:nF,name:sF,variant:aF,kind:rF,flags:oF,children:lF,groups:cF,packageName:uF,readme:hF,symbolIdMap:dF};function mF(t){return t.name}function Km(t){var n,s,a,r,o;const e=(((s=(n=t==null?void 0:t.signatures)==null?void 0:n[0])==null?void 0:s.parameters)||[]).map(l=>{var c,u;return`${(c=l.flags)!=null&&c.isRest?"...":""}${l.name}${(u=l.flags)!=null&&u.optional?"?":""}: ${st(l.type)}`}).join(", ");let i="";return(o=(r=(a=t==null?void 0:t.signatures)==null?void 0:a[0])==null?void 0:r.typeParameter)!=null&&o.length&&(i=`<${t.signatures[0].typeParameter.map(l=>l.name).join(", ")}>`),`${t.name}${i}(${e})`}function fF(t,e){var n,s;const i=(((s=(n=e==null?void 0:e.signatures)==null?void 0:n[0])==null?void 0:s.parameters)||[]).map(a=>{var r;return`${(r=a.flags)!=null&&r.isRest?"...":""}${a.name}: ${st(a.type)}`}).join(", ");return`new ${t.name}(${i})`}function st(t){var e,i,n,s,a;if(!t)return"void";if(t.type==="array")return`${st(t.elementType)}[]`;if(t.type==="union")return t.types.map(st).join(" | ");if(t.type==="intersection")return t.types.map(st).join(" & ");if(t.type==="literal")return`'${t.value}'`;if(t.type==="reflection"&&((i=(e=t.declaration)==null?void 0:e.signatures)!=null&&i.length)){const r=(a=(s=(n=t.declaration)==null?void 0:n.signatures)==null?void 0:s[0])==null?void 0:a.type;return`() => ${st(r)}`}if(t.type==="reference"){switch(t.name){case"Record":return`Record\\<${st(t.typeArguments[0])}, ${st(t.typeArguments[1])}\\>`;case"Response":return"[Response](https://developer.mozilla.org/en-US/docs/Web/API/Response)";case"Promise":return`Promise<${st(t.typeArguments[0])}>`}const r=ps.children.find(o=>o.id===t.target);return r?`[${r.name}](#/api/${r.name})`:t.name}if(t.type==="query"){const r=ps.children.find(o=>o.id===t.queryType.target);return r||t.queryType.name}return t.type==="indexedAccess"?`${st(t.objectType)}[${st(t.indexType)}]`:t.type==="tuple"?`[${t.elements.map(st).join(", ")}]`:t.name}function Ot(t){var e,i,n,s,a,r,o;return(o=((i=(e=t==null?void 0:t.getSignature)==null?void 0:e.comment)==null?void 0:i.summary)||((a=(s=(n=t==null?void 0:t.signatures)==null?void 0:n[0])==null?void 0:s.comment)==null?void 0:a.summary)||((r=t==null?void 0:t.comment)==null?void 0:r.summary))==null?void 0:o.map(l=>l.text).join("")}const pF=["id","href"],gF={__name:"AnchorLink",props:["href"],setup(t){const{href:e}=t,i=Oe(()=>`#/api/${e}`),n=Oe(()=>`/api/${e}`);return(s,a)=>(D(),K("div",null,[C("a",{id:n.value,href:i.value},"#",8,pF)]))}},Ol=We(gF,[["__scopeId","data-v-d2cde500"]]);const zs=t=>(Qi("data-v-537bb5f2"),t=t(),en(),t),yF={class:"card mb-4"},bF=zs(()=>C("div",{class:"card-header text-uppercase small border-bottom-0 py-1 px-3"}," class ",-1)),_F={class:"card-body pb-0"},vF={class:"mb-3"},xF=["innerHTML"],wF={class:"row"},CF=zs(()=>C("div",{class:"col-3 text-uppercase text-secondary fw-bold pt-1",style:{"font-size":"0.8em"}}," 📦 constructor ",-1)),NF={class:"col"},FF=["innerHTML"],EF={class:"row"},MF=zs(()=>C("div",{class:"col-3 text-uppercase text-secondary fw-bold pt-1",style:{"font-size":"0.8em"}}," 💡 property ",-1)),TF={class:"col"},RF=["innerHTML"],IF={class:"row"},kF=zs(()=>C("div",{class:"col-3 text-uppercase text-secondary fw-bold pt-1",style:{"font-size":"0.8em"}}," ⚡ method ",-1)),LF={class:"col"},SF=["innerHTML"],DF={class:"row pb-2"},PF=zs(()=>C("div",{class:"col-3 text-uppercase text-secondary fw-bold pt-1",style:{"font-size":"0.8em"}}," 🌱️ returns ",-1)),AF={class:"col"},OF=["innerHTML"],GF={__name:"ClassCard",props:["apiElement"],setup(t){const i=t.apiElement,n=Oe(()=>i.children.find(h=>h.name==="constructor")),s=Oe(()=>i.children.filter(h=>h.kind&262144)),a=Oe(()=>i.children.filter(h=>h.kind&2048));function r(h){return si(Km(h))}function o(h){var d,m;return si(st((m=(d=h==null?void 0:h.signatures)==null?void 0:d[0])==null?void 0:m.type))}function l(h){return si(`${h.name}: ${st(h.getSignature.type)}`)}const c=Oe(()=>si(mF(i))),u=Oe(()=>si(fF(i,n.value)));return(h,d)=>(D(),K("div",yF,[B(Ol,{href:be(i).name},null,8,["href"]),bF,C("div",_F,[C("h5",vF,[C("code",{innerHTML:c.value},null,8,xF)]),B(il,{lang:"js",class:"mb-3"},{default:Je(()=>[C("pre",null,"import { "+Ge(be(i).name)+" } from '@camptocamp/ogc-client';",1)]),_:1}),C("div",wF,[CF,C("div",NF,[C("code",{class:"mb-2",innerHTML:u.value},null,8,FF),be(Ot)(n.value)?(D(),wt(Vi,{key:0,class:"mb-2 small",text:be(Ot)(n.value)},null,8,["text"])):De("",!0)])]),(D(!0),K(ke,null,Tt(s.value,m=>(D(),K("div",EF,[MF,C("div",TF,[C("code",{class:"mb-2",innerHTML:l(m)},null,8,RF),be(Ot)(m)?(D(),wt(Vi,{key:0,class:"mb-2 small",text:be(Ot)(m)},null,8,["text"])):De("",!0)])]))),256)),(D(!0),K(ke,null,Tt(a.value,m=>(D(),K("div",IF,[kF,C("div",LF,[C("code",{class:"mb-2",innerHTML:r(m)},null,8,SF),C("div",DF,[PF,C("div",AF,[C("code",{innerHTML:o(m)},null,8,OF)])]),be(Ot)(m)?(D(),wt(Vi,{key:0,class:"mb-2 small",text:be(Ot)(m)},null,8,["text"])):De("",!0)])]))),256)),B(Vi,{class:"mb-3 mt-2 small",text:be(Ot)(be(i))},null,8,["text"])])]))}},ZF=We(GF,[["__scopeId","data-v-537bb5f2"]]);const Vm=t=>(Qi("data-v-a94003c8"),t=t(),en(),t),XF={class:"card mb-4"},WF=Vm(()=>C("div",{class:"card-header text-uppercase small border-bottom-0 py-1 px-3"}," function ",-1)),KF={class:"card-body pb-0"},VF={class:"mb-3"},UF=["innerHTML"],BF={key:0,class:"row pb-2"},HF=Vm(()=>C("div",{class:"col-3 text-uppercase text-secondary fw-bold pt-1",style:{"font-size":"0.8em"}}," 🌱 returns ",-1)),zF={class:"col"},qF=["innerHTML"],jF={__name:"FunctionCard",props:["apiElement"],setup(t){const i=t.apiElement,n=Oe(()=>si(Km(i))),s=Oe(()=>{var a,r;return si(st((r=(a=i==null?void 0:i.signatures)==null?void 0:a[0])==null?void 0:r.type))});return(a,r)=>(D(),K("div",XF,[B(Ol,{href:be(i).name},null,8,["href"]),WF,C("div",KF,[C("h5",VF,[C("code",{innerHTML:n.value},null,8,UF)]),B(il,{lang:"js",class:"mb-3"},{default:Je(()=>[C("pre",null,"import { "+Ge(be(i).name)+" } from '@camptocamp/ogc-client';",1)]),_:1}),s.value&&s.value!=="void"?(D(),K("div",BF,[HF,C("div",zF,[C("code",{innerHTML:s.value},null,8,qF)])])):De("",!0),B(Vi,{class:"small mt-2",text:be(Ot)(be(i))},null,8,["text"])])]))}},YF=We(jF,[["__scopeId","data-v-a94003c8"]]);const Um=t=>(Qi("data-v-0281e21d"),t=t(),en(),t),$F={class:"card mb-4"},JF=Um(()=>C("div",{class:"card-header text-uppercase small border-bottom-0 py-1 px-3"}," type ",-1)),QF={class:"card-body pb-0"},eE={class:"mb-3"},tE=["innerHTML"],iE={key:0,class:"row"},nE={class:"col"},sE=["innerHTML"],aE={class:"row"},rE=Um(()=>C("div",{class:"col-3 text-uppercase text-secondary fw-bold pt-1",style:{"font-size":"0.8em"}}," 💡 property ",-1)),oE={class:"col"},lE=["innerHTML"],cE={__name:"TypeCard",props:["apiElement"],setup(t){const i=t.apiElement,n=Oe(()=>i.kind&256||i.kind&65536||i.kind&2097152&&i.type.type==="reflection"&&i.type.declaration),s=Oe(()=>i.kind&2097152&&!n.value),a=Oe(()=>((i.kind&2097152)>0?i.type.declaration.children:i.children).filter(c=>c.kind&1024));function r(l){return si(`${l.name}: ${st(l.type)}`)}function o(l){return si(st(l))}return(l,c)=>(D(),K("div",$F,[B(Ol,{href:be(i).name},null,8,["href"]),JF,C("div",QF,[C("h5",eE,[C("code",{innerHTML:be(i).name},null,8,tE)]),s.value?(D(),K("div",iE,[C("div",nE,[C("code",{class:"mb-2",innerHTML:o(be(i).type)},null,8,sE)])])):De("",!0),n.value?(D(!0),K(ke,{key:1},Tt(a.value,u=>(D(),K("div",aE,[rE,C("div",oE,[C("code",{class:"mb-2",innerHTML:r(u)},null,8,lE),be(Ot)(u)?(D(),wt(Vi,{key:0,class:"mb-2 small",text:be(Ot)(u)},null,8,["text"])):De("",!0)])]))),256)):De("",!0),B(Vi,{class:"small mt-2",text:be(Ot)(be(i))},null,8,["text"])])]))}},uE=We(cE,[["__scopeId","data-v-0281e21d"]]),Bm={__name:"Api",setup(t){Hh(()=>{hljs.highlightAll()});const e=ps.children.filter(s=>s.kind&128),i=ps.children.filter(s=>s.kind&64),n=ps.children.filter(s=>s.kind&256||s.kind&2097152);return(s,a)=>(D(),K("div",null,[(D(!0),K(ke,null,Tt(be(e),r=>(D(),wt(ZF,{"api-element":r},null,8,["api-element"]))),256)),(D(!0),K(ke,null,Tt(be(i),r=>(D(),wt(YF,{"api-element":r},null,8,["api-element"]))),256)),(D(!0),K(ke,null,Tt(be(n),r=>(D(),wt(uE,{"api-element":r},null,8,["api-element"]))),256))]))}};const hE={name:"App",components:{Docs:ld,LibLogo:S0,Demo:Wm,Api:Bm}},dE={class:"container"},mE={class:"col-8 offset-2"},fE={class:"title text-center",style:{"font-size":"5em",margin:"130px 0 70px"}},pE={class:"d-flex flex-row justify-content-center",style:{"margin-bottom":"70px"}};function gE(t,e,i,n,s,a){const r=Me("LibLogo"),o=Me("router-link"),l=Me("router-view");return D(),K("div",dE,[C("div",mE,[C("h1",fE,[B(r)]),C("div",pE,[B(o,{to:"/"},{default:Je(({isActive:c})=>[C("button",{type:"button",class:Ui(["btn btn-primary tab-toggle m-3",{"tab-toggle-enabled":c}]),onClick:e[0]||(e[0]=u=>t.tab="docs")}," DOCS ",2)]),_:1}),B(o,{to:"/api"},{default:Je(({isActive:c})=>[C("button",{type:"button",class:Ui(["btn btn-primary tab-toggle m-3",{"tab-toggle-enabled":c}]),onClick:e[1]||(e[1]=u=>t.tab="api")}," API ",2)]),_:1}),B(o,{to:"/demo"},{default:Je(({isActive:c})=>[C("button",{type:"button",class:Ui(["btn btn-primary tab-toggle m-3",{"tab-toggle-enabled":c}]),onClick:e[2]||(e[2]=u=>t.tab="demo")}," TRY IT! ",2)]),_:1})]),B(l)])])}const yE=We(hE,[["render",gE],["__scopeId","data-v-f6302033"]]),bE=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u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u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12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D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,_E=Object.hasOwnProperty;class vE{constructor(){this.occurrences,this.reset()}slug(e,i){const n=this;let s=xE(e,i===!0);const a=s;for(;_E.call(n.occurrences,s);)n.occurrences[a]++,s=a+"-"+n.occurrences[a];return n.occurrences[s]=0,s}reset(){this.occurrences=Object.create(null)}}function xE(t,e){return typeof t!="string"?"":(e||(t=t.toLowerCase()),t.replace(bE,"").replace(/ /g,"-"))}let Xu,Wu=[];function wE({prefix:t=""}={}){return{headerIds:!1,hooks:{preprocess(e){return Wu=[],Xu=new vE,e}},renderer:{heading(e,i,n){n=n.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"");const s=`${t}${Xu.slug(n)}`,a={level:i,text:e,id:s};return Wu.push(a),`${e} `}}}}/*! * vue-router v4.3.0 * (c) 2024 Eduardo San Martin Morote * @license MIT - */const yn=typeof document<"u";function CE(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const Ce=Object.assign;function Qa(t,e){const i={};for(const n in e){const s=e[n];i[n]=Ut(s)?s.map(t):t(s)}return i}const gs=()=>{},Ut=Array.isArray,Hm=/#/g,NE=/&/g,FE=/\//g,EE=/=/g,ME=/\?/g,zm=/\+/g,TE=/%5B/g,RE=/%5D/g,qm=/%5E/g,IE=/%60/g,jm=/%7B/g,kE=/%7C/g,Ym=/%7D/g,LE=/%20/g;function Gl(t){return encodeURI(""+t).replace(kE,"|").replace(TE,"[").replace(RE,"]")}function SE(t){return Gl(t).replace(jm,"{").replace(Ym,"}").replace(qm,"^")}function Do(t){return Gl(t).replace(zm,"%2B").replace(LE,"+").replace(Hm,"%23").replace(NE,"%26").replace(IE,"`").replace(jm,"{").replace(Ym,"}").replace(qm,"^")}function DE(t){return Do(t).replace(EE,"%3D")}function PE(t){return Gl(t).replace(Hm,"%23").replace(ME,"%3F")}function AE(t){return t==null?"":PE(t).replace(FE,"%2F")}function Ss(t){try{return decodeURIComponent(""+t)}catch{}return""+t}const OE=/\/$/,GE=t=>t.replace(OE,"");function eo(t,e,i="/"){let n,s={},r="",a="";const o=e.indexOf("#");let l=e.indexOf("?");return o=0&&(l=-1),l>-1&&(n=e.slice(0,l),r=e.slice(l+1,o>-1?o:e.length),s=t(r)),o>-1&&(n=n||e.slice(0,o),a=e.slice(o,e.length)),n=KE(n??e,i),{fullPath:n+(r&&"?")+r+a,path:n,query:s,hash:Ss(a)}}function ZE(t,e){const i=e.query?t(e.query):"";return e.path+(i&&"?")+i+(e.hash||"")}function Ku(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function XE(t,e,i){const n=e.matched.length-1,s=i.matched.length-1;return n>-1&&n===s&&Un(e.matched[n],i.matched[s])&&$m(e.params,i.params)&&t(e.query)===t(i.query)&&e.hash===i.hash}function Un(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function $m(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const i in t)if(!WE(t[i],e[i]))return!1;return!0}function WE(t,e){return Ut(t)?Vu(t,e):Ut(e)?Vu(e,t):t===e}function Vu(t,e){return Ut(e)?t.length===e.length&&t.every((i,n)=>i===e[n]):t.length===1&&t[0]===e}function KE(t,e){if(t.startsWith("/"))return t;if(!t)return e;const i=e.split("/"),n=t.split("/"),s=n[n.length-1];(s===".."||s===".")&&n.push("");let r=i.length-1,a,o;for(a=0;a1&&r--;else break;return i.slice(0,r).join("/")+"/"+n.slice(a).join("/")}var Ds;(function(t){t.pop="pop",t.push="push"})(Ds||(Ds={}));var ys;(function(t){t.back="back",t.forward="forward",t.unknown=""})(ys||(ys={}));function VE(t){if(!t)if(yn){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),GE(t)}const UE=/^[^#]+#/;function BE(t,e){return t.replace(UE,"#")+e}function HE(t,e){const i=document.documentElement.getBoundingClientRect(),n=t.getBoundingClientRect();return{behavior:e.behavior,left:n.left-i.left-(e.left||0),top:n.top-i.top-(e.top||0)}}const La=()=>({left:window.scrollX,top:window.scrollY});function zE(t){let e;if("el"in t){const i=t.el,n=typeof i=="string"&&i.startsWith("#"),s=typeof i=="string"?n?document.getElementById(i.slice(1)):document.querySelector(i):i;if(!s)return;e=HE(s,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.scrollX,e.top!=null?e.top:window.scrollY)}function Uu(t,e){return(history.state?history.state.position-e:-1)+t}const Po=new Map;function qE(t,e){Po.set(t,e)}function jE(t){const e=Po.get(t);return Po.delete(t),e}let YE=()=>location.protocol+"//"+location.host;function Jm(t,e){const{pathname:i,search:n,hash:s}=e,r=t.indexOf("#");if(r>-1){let o=s.includes(t.slice(r))?t.slice(r).length:1,l=s.slice(o);return l[0]!=="/"&&(l="/"+l),Ku(l,"")}return Ku(i,t)+n+s}function $E(t,e,i,n){let s=[],r=[],a=null;const o=({state:d})=>{const m=Jm(t,location),f=i.value,p=e.value;let y=0;if(d){if(i.value=m,e.value=d,a&&a===f){a=null;return}y=p?d.position-p.position:0}else n(m);s.forEach(_=>{_(i.value,f,{delta:y,type:Ds.pop,direction:y?y>0?ys.forward:ys.back:ys.unknown})})};function l(){a=i.value}function c(d){s.push(d);const m=()=>{const f=s.indexOf(d);f>-1&&s.splice(f,1)};return r.push(m),m}function u(){const{history:d}=window;d.state&&d.replaceState(Ce({},d.state,{scroll:La()}),"")}function h(){for(const d of r)d();r=[],window.removeEventListener("popstate",o),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",o),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:c,destroy:h}}function Bu(t,e,i,n=!1,s=!1){return{back:t,current:e,forward:i,replaced:n,position:window.history.length,scroll:s?La():null}}function JE(t){const{history:e,location:i}=window,n={value:Jm(t,i)},s={value:e.state};s.value||r(n.value,{back:null,current:n.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function r(l,c,u){const h=t.indexOf("#"),d=h>-1?(i.host&&document.querySelector("base")?t:t.slice(h))+l:YE()+t+l;try{e[u?"replaceState":"pushState"](c,"",d),s.value=c}catch(m){console.error(m),i[u?"replace":"assign"](d)}}function a(l,c){const u=Ce({},e.state,Bu(s.value.back,l,s.value.forward,!0),c,{position:s.value.position});r(l,u,!0),n.value=l}function o(l,c){const u=Ce({},s.value,e.state,{forward:l,scroll:La()});r(u.current,u,!0);const h=Ce({},Bu(n.value,l,null),{position:u.position+1},c);r(l,h,!1),n.value=l}return{location:n,state:s,push:o,replace:a}}function QE(t){t=VE(t);const e=JE(t),i=$E(t,e.state,e.location,e.replace);function n(r,a=!0){a||i.pauseListeners(),history.go(r)}const s=Ce({location:"",base:t,go:n,createHref:BE.bind(null,t)},e,i);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>e.state.value}),s}function eM(t){return t=location.host?t||location.pathname+location.search:"",t.includes("#")||(t+="#"),QE(t)}function tM(t){return typeof t=="string"||t&&typeof t=="object"}function Qm(t){return typeof t=="string"||typeof t=="symbol"}const mi={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},ef=Symbol("");var Hu;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(Hu||(Hu={}));function Bn(t,e){return Ce(new Error,{type:t,[ef]:!0},e)}function ti(t,e){return t instanceof Error&&ef in t&&(e==null||!!(t.type&e))}const zu="[^/]+?",iM={sensitive:!1,strict:!1,start:!0,end:!0},nM=/[.+*?^${}()[\]/\\]/g;function sM(t,e){const i=Ce({},iM,e),n=[];let s=i.start?"^":"";const r=[];for(const c of t){const u=c.length?[]:[90];i.strict&&!c.length&&(s+="/");for(let h=0;he.length?e.length===1&&e[0]===40+40?1:-1:0}function aM(t,e){let i=0;const n=t.score,s=e.score;for(;i0&&e[e.length-1]<0}const oM={type:0,value:""},lM=/[a-zA-Z0-9_]/;function cM(t){if(!t)return[[]];if(t==="/")return[[oM]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(m){throw new Error(`ERR (${i})/"${c}": ${m}`)}let i=0,n=i;const s=[];let r;function a(){r&&s.push(r),r=[]}let o=0,l,c="",u="";function h(){c&&(i===0?r.push({type:0,value:c}):i===1||i===2||i===3?(r.length>1&&(l==="*"||l==="+")&&e(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),r.push({type:1,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):e("Invalid state to consume buffer"),c="")}function d(){c+=l}for(;o{a(v)}:gs}function a(u){if(Qm(u)){const h=n.get(u);h&&(n.delete(u),i.splice(i.indexOf(h),1),h.children.forEach(a),h.alias.forEach(a))}else{const h=i.indexOf(u);h>-1&&(i.splice(h,1),u.record.name&&n.delete(u.record.name),u.children.forEach(a),u.alias.forEach(a))}}function o(){return i}function l(u){let h=0;for(;h=0&&(u.record.path!==i[h].record.path||!tf(u,i[h]));)h++;i.splice(h,0,u),u.record.name&&!Yu(u)&&n.set(u.record.name,u)}function c(u,h){let d,m={},f,p;if("name"in u&&u.name){if(d=n.get(u.name),!d)throw Bn(1,{location:u});p=d.record.name,m=Ce(ju(h.params,d.keys.filter(v=>!v.optional).concat(d.parent?d.parent.keys.filter(v=>v.optional):[]).map(v=>v.name)),u.params&&ju(u.params,d.keys.map(v=>v.name))),f=d.stringify(m)}else if(u.path!=null)f=u.path,d=i.find(v=>v.re.test(f)),d&&(m=d.parse(f),p=d.record.name);else{if(d=h.name?n.get(h.name):i.find(v=>v.re.test(h.path)),!d)throw Bn(1,{location:u,currentLocation:h});p=d.record.name,m=Ce({},h.params,u.params),f=d.stringify(m)}const y=[];let _=d;for(;_;)y.unshift(_.record),_=_.parent;return{name:p,path:f,params:m,matched:y,meta:fM(y)}}return t.forEach(u=>r(u)),{addRoute:r,resolve:c,removeRoute:a,getRoutes:o,getRecordMatcher:s}}function ju(t,e){const i={};for(const n of e)n in t&&(i[n]=t[n]);return i}function dM(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:mM(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}}}function mM(t){const e={},i=t.props||!1;if("component"in t)e.default=i;else for(const n in t.components)e[n]=typeof i=="object"?i[n]:i;return e}function Yu(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function fM(t){return t.reduce((e,i)=>Ce(e,i.meta),{})}function $u(t,e){const i={};for(const n in t)i[n]=n in e?e[n]:t[n];return i}function tf(t,e){return e.children.some(i=>i===t||tf(t,i))}function pM(t){const e={};if(t===""||t==="?")return e;const n=(t[0]==="?"?t.slice(1):t).split("&");for(let s=0;sr&&Do(r)):[n&&Do(n)]).forEach(r=>{r!==void 0&&(e+=(e.length?"&":"")+i,r!=null&&(e+="="+r))})}return e}function gM(t){const e={};for(const i in t){const n=t[i];n!==void 0&&(e[i]=Ut(n)?n.map(s=>s==null?null:""+s):n==null?n:""+n)}return e}const yM=Symbol(""),Qu=Symbol(""),Zl=Symbol(""),nf=Symbol(""),Ao=Symbol("");function is(){let t=[];function e(n){return t.push(n),()=>{const s=t.indexOf(n);s>-1&&t.splice(s,1)}}function i(){t=[]}return{add:e,list:()=>t.slice(),reset:i}}function bi(t,e,i,n,s,r=a=>a()){const a=n&&(n.enterCallbacks[s]=n.enterCallbacks[s]||[]);return()=>new Promise((o,l)=>{const c=d=>{d===!1?l(Bn(4,{from:i,to:e})):d instanceof Error?l(d):tM(d)?l(Bn(2,{from:e,to:d})):(a&&n.enterCallbacks[s]===a&&typeof d=="function"&&a.push(d),o())},u=r(()=>t.call(n&&n.instances[s],e,i,c));let h=Promise.resolve(u);t.length<3&&(h=h.then(c)),h.catch(d=>l(d))})}function to(t,e,i,n,s=r=>r()){const r=[];for(const a of t)for(const o in a.components){let l=a.components[o];if(!(e!=="beforeRouteEnter"&&!a.instances[o]))if(bM(l)){const u=(l.__vccOpts||l)[e];u&&r.push(bi(u,i,n,a,o,s))}else{let c=l();r.push(()=>c.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${a.path}"`));const h=CE(u)?u.default:u;a.components[o]=h;const m=(h.__vccOpts||h)[e];return m&&bi(m,i,n,a,o,s)()}))}}return r}function bM(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function eh(t){const e=oi(Zl),i=oi(nf),n=Oe(()=>e.resolve(be(t.to))),s=Oe(()=>{const{matched:l}=n.value,{length:c}=l,u=l[c-1],h=i.matched;if(!u||!h.length)return-1;const d=h.findIndex(Un.bind(null,u));if(d>-1)return d;const m=th(l[c-2]);return c>1&&th(u)===m&&h[h.length-1].path!==m?h.findIndex(Un.bind(null,l[c-2])):d}),r=Oe(()=>s.value>-1&&wM(i.params,n.value.params)),a=Oe(()=>s.value>-1&&s.value===i.matched.length-1&&$m(i.params,n.value.params));function o(l={}){return xM(l)?e[be(t.replace)?"replace":"push"](be(t.to)).catch(gs):Promise.resolve()}return{route:n,href:Oe(()=>n.value.href),isActive:r,isExactActive:a,navigate:o}}const _M=Vh({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:eh,setup(t,{slots:e}){const i=sa(eh(t)),{options:n}=oi(Zl),s=Oe(()=>({[ih(t.activeClass,n.linkActiveClass,"router-link-active")]:i.isActive,[ih(t.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:i.isExactActive}));return()=>{const r=e.default&&e.default(i);return t.custom?r:od("a",{"aria-current":i.isExactActive?t.ariaCurrentValue:null,href:i.href,onClick:i.navigate,class:s.value},r)}}}),vM=_M;function xM(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function wM(t,e){for(const i in e){const n=e[i],s=t[i];if(typeof n=="string"){if(n!==s)return!1}else if(!Ut(s)||s.length!==n.length||n.some((r,a)=>r!==s[a]))return!1}return!0}function th(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const ih=(t,e,i)=>t??e??i,CM=Vh({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:i}){const n=oi(Ao),s=Oe(()=>t.route||n.value),r=oi(Qu,0),a=Oe(()=>{let c=be(r);const{matched:u}=s.value;let h;for(;(h=u[c])&&!h.components;)c++;return c}),o=Oe(()=>s.value.matched[a.value]);br(Qu,Oe(()=>a.value+1)),br(yM,o),br(Ao,s);const l=cp();return yr(()=>[l.value,o.value,t.name],([c,u,h],[d,m,f])=>{u&&(u.instances[h]=c,m&&m!==u&&c&&c===d&&(u.leaveGuards.size||(u.leaveGuards=m.leaveGuards),u.updateGuards.size||(u.updateGuards=m.updateGuards))),c&&u&&(!m||!Un(u,m)||!d)&&(u.enterCallbacks[h]||[]).forEach(p=>p(c))},{flush:"post"}),()=>{const c=s.value,u=t.name,h=o.value,d=h&&h.components[u];if(!d)return nh(i.default,{Component:d,route:c});const m=h.props[u],f=m?m===!0?c.params:typeof m=="function"?m(c):m:null,y=od(d,Ce({},f,e,{onVnodeUnmounted:_=>{_.component.isUnmounted&&(h.instances[u]=null)},ref:l}));return nh(i.default,{Component:y,route:c})||y}}});function nh(t,e){if(!t)return null;const i=t(e);return i.length===1?i[0]:i}const NM=CM;function FM(t){const e=hM(t.routes,t),i=t.parseQuery||pM,n=t.stringifyQuery||Ju,s=t.history,r=is(),a=is(),o=is(),l=up(mi);let c=mi;yn&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Qa.bind(null,F=>""+F),h=Qa.bind(null,AE),d=Qa.bind(null,Ss);function m(F,Z){let P,H;return Qm(F)?(P=e.getRecordMatcher(F),H=Z):H=F,e.addRoute(H,P)}function f(F){const Z=e.getRecordMatcher(F);Z&&e.removeRoute(Z)}function p(){return e.getRoutes().map(F=>F.record)}function y(F){return!!e.getRecordMatcher(F)}function _(F,Z){if(Z=Ce({},Z||l.value),typeof F=="string"){const x=eo(i,F,Z.path),M=e.resolve({path:x.path},Z),T=s.createHref(x.fullPath);return Ce(x,M,{params:d(M.params),hash:Ss(x.hash),redirectedFrom:void 0,href:T})}let P;if(F.path!=null)P=Ce({},F,{path:eo(i,F.path,Z.path).path});else{const x=Ce({},F.params);for(const M in x)x[M]==null&&delete x[M];P=Ce({},F,{params:h(x)}),Z.params=h(Z.params)}const H=e.resolve(P,Z),ce=F.hash||"";H.params=u(d(H.params));const g=ZE(n,Ce({},F,{hash:SE(ce),path:H.path})),b=s.createHref(g);return Ce({fullPath:g,hash:ce,query:n===Ju?gM(F.query):F.query||{}},H,{redirectedFrom:void 0,href:b})}function v(F){return typeof F=="string"?eo(i,F,l.value.path):Ce({},F)}function N(F,Z){if(c!==F)return Bn(8,{from:Z,to:F})}function w(F){return Y(F)}function E(F){return w(Ce(v(F),{replace:!0}))}function L(F){const Z=F.matched[F.matched.length-1];if(Z&&Z.redirect){const{redirect:P}=Z;let H=typeof P=="function"?P(F):P;return typeof H=="string"&&(H=H.includes("?")||H.includes("#")?H=v(H):{path:H},H.params={}),Ce({query:F.query,hash:F.hash,params:H.path!=null?{}:F.params},H)}}function Y(F,Z){const P=c=_(F),H=l.value,ce=F.state,g=F.force,b=F.replace===!0,x=L(P);if(x)return Y(Ce(v(x),{state:typeof x=="object"?Ce({},ce,x.state):ce,force:g,replace:b}),Z||P);const M=P;M.redirectedFrom=Z;let T;return!g&&XE(n,H,P)&&(T=Bn(16,{to:M,from:H}),ot(H,H,!0,!1)),(T?Promise.resolve(T):oe(M,H)).catch(R=>ti(R)?ti(R,2)?R:Ye(R):se(R,M,H)).then(R=>{if(R){if(ti(R,2))return Y(Ce({replace:b},v(R.to),{state:typeof R.to=="object"?Ce({},ce,R.to.state):ce,force:g}),Z||M)}else R=qe(M,H,!0,b,ce);return _e(M,H,R),R})}function q(F,Z){const P=N(F,Z);return P?Promise.reject(P):Promise.resolve()}function ae(F){const Z=pe.values().next().value;return Z&&typeof Z.runWithContext=="function"?Z.runWithContext(F):F()}function oe(F,Z){let P;const[H,ce,g]=EM(F,Z);P=to(H.reverse(),"beforeRouteLeave",F,Z);for(const x of H)x.leaveGuards.forEach(M=>{P.push(bi(M,F,Z))});const b=q.bind(null,F,Z);return P.push(b),Pe(P).then(()=>{P=[];for(const x of r.list())P.push(bi(x,F,Z));return P.push(b),Pe(P)}).then(()=>{P=to(ce,"beforeRouteUpdate",F,Z);for(const x of ce)x.updateGuards.forEach(M=>{P.push(bi(M,F,Z))});return P.push(b),Pe(P)}).then(()=>{P=[];for(const x of g)if(x.beforeEnter)if(Ut(x.beforeEnter))for(const M of x.beforeEnter)P.push(bi(M,F,Z));else P.push(bi(x.beforeEnter,F,Z));return P.push(b),Pe(P)}).then(()=>(F.matched.forEach(x=>x.enterCallbacks={}),P=to(g,"beforeRouteEnter",F,Z,ae),P.push(b),Pe(P))).then(()=>{P=[];for(const x of a.list())P.push(bi(x,F,Z));return P.push(b),Pe(P)}).catch(x=>ti(x,8)?x:Promise.reject(x))}function _e(F,Z,P){o.list().forEach(H=>ae(()=>H(F,Z,P)))}function qe(F,Z,P,H,ce){const g=N(F,Z);if(g)return g;const b=Z===mi,x=yn?history.state:{};P&&(H||b?s.replace(F.fullPath,Ce({scroll:b&&x&&x.scroll},ce)):s.push(F.fullPath,ce)),l.value=F,ot(F,Z,P,b),Ye()}let Ke;function Ft(){Ke||(Ke=s.listen((F,Z,P)=>{if(!Se.listening)return;const H=_(F),ce=L(H);if(ce){Y(Ce(ce,{replace:!0}),H).catch(gs);return}c=H;const g=l.value;yn&&qE(Uu(g.fullPath,P.delta),La()),oe(H,g).catch(b=>ti(b,12)?b:ti(b,2)?(Y(b.to,H).then(x=>{ti(x,20)&&!P.delta&&P.type===Ds.pop&&s.go(-1,!1)}).catch(gs),Promise.reject()):(P.delta&&s.go(-P.delta,!1),se(b,H,g))).then(b=>{b=b||qe(H,g,!1),b&&(P.delta&&!ti(b,8)?s.go(-P.delta,!1):P.type===Ds.pop&&ti(b,20)&&s.go(-1,!1)),_e(H,g,b)}).catch(gs)}))}let tt=is(),ve=is(),$;function se(F,Z,P){Ye(F);const H=ve.list();return H.length?H.forEach(ce=>ce(F,Z,P)):console.error(F),Promise.reject(F)}function je(){return $&&l.value!==mi?Promise.resolve():new Promise((F,Z)=>{tt.add([F,Z])})}function Ye(F){return $||($=!F,Ft(),tt.list().forEach(([Z,P])=>F?P(F):Z()),tt.reset()),F}function ot(F,Z,P,H){const{scrollBehavior:ce}=t;if(!yn||!ce)return Promise.resolve();const g=!P&&jE(Uu(F.fullPath,0))||(H||!P)&&history.state&&history.state.scroll||null;return Ph().then(()=>ce(F,Z,g)).then(b=>b&&zE(b)).catch(b=>se(b,F,Z))}const me=F=>s.go(F);let Ve;const pe=new Set,Se={currentRoute:l,listening:!0,addRoute:m,removeRoute:f,hasRoute:y,getRoutes:p,resolve:_,options:t,push:w,replace:E,go:me,back:()=>me(-1),forward:()=>me(1),beforeEach:r.add,beforeResolve:a.add,afterEach:o.add,onError:ve.add,isReady:je,install(F){const Z=this;F.component("RouterLink",vM),F.component("RouterView",NM),F.config.globalProperties.$router=Z,Object.defineProperty(F.config.globalProperties,"$route",{enumerable:!0,get:()=>be(l)}),yn&&!Ve&&l.value===mi&&(Ve=!0,w(s.location).catch(ce=>{}));const P={};for(const ce in mi)Object.defineProperty(P,ce,{get:()=>l.value[ce],enumerable:!0});F.provide(Zl,Z),F.provide(nf,Eh(P)),F.provide(Ao,l);const H=F.unmount;pe.add(F),F.unmount=function(){pe.delete(F),pe.size<1&&(c=mi,Ke&&Ke(),Ke=null,l.value=mi,Ve=!1,$=!1),H()}}};function Pe(F){return F.reduce((Z,P)=>Z.then(()=>ae(P)),Promise.resolve())}return Se}function EM(t,e){const i=[],n=[],s=[],r=Math.max(e.matched.length,t.matched.length);for(let a=0;aUn(c,o))?n.push(o):i.push(o));const l=t.matched[a];l&&(e.matched.find(c=>Un(c,l))||s.push(l))}return[i,n,s]}J.use(Nf());J.use(wE());const MM=[{path:"/",component:ld},{path:"/api/:symbol?",component:Bm},{path:"/demo",component:Wm}],TM=FM({history:eM(),routes:MM});Vg(yE).use(TM).mount("#app"); + */const yn=typeof document<"u";function CE(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const Ce=Object.assign;function Qr(t,e){const i={};for(const n in e){const s=e[n];i[n]=Ut(s)?s.map(t):t(s)}return i}const gs=()=>{},Ut=Array.isArray,Hm=/#/g,NE=/&/g,FE=/\//g,EE=/=/g,ME=/\?/g,zm=/\+/g,TE=/%5B/g,RE=/%5D/g,qm=/%5E/g,IE=/%60/g,jm=/%7B/g,kE=/%7C/g,Ym=/%7D/g,LE=/%20/g;function Gl(t){return encodeURI(""+t).replace(kE,"|").replace(TE,"[").replace(RE,"]")}function SE(t){return Gl(t).replace(jm,"{").replace(Ym,"}").replace(qm,"^")}function Do(t){return Gl(t).replace(zm,"%2B").replace(LE,"+").replace(Hm,"%23").replace(NE,"%26").replace(IE,"`").replace(jm,"{").replace(Ym,"}").replace(qm,"^")}function DE(t){return Do(t).replace(EE,"%3D")}function PE(t){return Gl(t).replace(Hm,"%23").replace(ME,"%3F")}function AE(t){return t==null?"":PE(t).replace(FE,"%2F")}function Ss(t){try{return decodeURIComponent(""+t)}catch{}return""+t}const OE=/\/$/,GE=t=>t.replace(OE,"");function eo(t,e,i="/"){let n,s={},a="",r="";const o=e.indexOf("#");let l=e.indexOf("?");return o=0&&(l=-1),l>-1&&(n=e.slice(0,l),a=e.slice(l+1,o>-1?o:e.length),s=t(a)),o>-1&&(n=n||e.slice(0,o),r=e.slice(o,e.length)),n=KE(n??e,i),{fullPath:n+(a&&"?")+a+r,path:n,query:s,hash:Ss(r)}}function ZE(t,e){const i=e.query?t(e.query):"";return e.path+(i&&"?")+i+(e.hash||"")}function Ku(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function XE(t,e,i){const n=e.matched.length-1,s=i.matched.length-1;return n>-1&&n===s&&Un(e.matched[n],i.matched[s])&&$m(e.params,i.params)&&t(e.query)===t(i.query)&&e.hash===i.hash}function Un(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function $m(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const i in t)if(!WE(t[i],e[i]))return!1;return!0}function WE(t,e){return Ut(t)?Vu(t,e):Ut(e)?Vu(e,t):t===e}function Vu(t,e){return Ut(e)?t.length===e.length&&t.every((i,n)=>i===e[n]):t.length===1&&t[0]===e}function KE(t,e){if(t.startsWith("/"))return t;if(!t)return e;const i=e.split("/"),n=t.split("/"),s=n[n.length-1];(s===".."||s===".")&&n.push("");let a=i.length-1,r,o;for(r=0;r1&&a--;else break;return i.slice(0,a).join("/")+"/"+n.slice(r).join("/")}var Ds;(function(t){t.pop="pop",t.push="push"})(Ds||(Ds={}));var ys;(function(t){t.back="back",t.forward="forward",t.unknown=""})(ys||(ys={}));function VE(t){if(!t)if(yn){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),GE(t)}const UE=/^[^#]+#/;function BE(t,e){return t.replace(UE,"#")+e}function HE(t,e){const i=document.documentElement.getBoundingClientRect(),n=t.getBoundingClientRect();return{behavior:e.behavior,left:n.left-i.left-(e.left||0),top:n.top-i.top-(e.top||0)}}const Lr=()=>({left:window.scrollX,top:window.scrollY});function zE(t){let e;if("el"in t){const i=t.el,n=typeof i=="string"&&i.startsWith("#"),s=typeof i=="string"?n?document.getElementById(i.slice(1)):document.querySelector(i):i;if(!s)return;e=HE(s,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.scrollX,e.top!=null?e.top:window.scrollY)}function Uu(t,e){return(history.state?history.state.position-e:-1)+t}const Po=new Map;function qE(t,e){Po.set(t,e)}function jE(t){const e=Po.get(t);return Po.delete(t),e}let YE=()=>location.protocol+"//"+location.host;function Jm(t,e){const{pathname:i,search:n,hash:s}=e,a=t.indexOf("#");if(a>-1){let o=s.includes(t.slice(a))?t.slice(a).length:1,l=s.slice(o);return l[0]!=="/"&&(l="/"+l),Ku(l,"")}return Ku(i,t)+n+s}function $E(t,e,i,n){let s=[],a=[],r=null;const o=({state:d})=>{const m=Jm(t,location),f=i.value,p=e.value;let y=0;if(d){if(i.value=m,e.value=d,r&&r===f){r=null;return}y=p?d.position-p.position:0}else n(m);s.forEach(_=>{_(i.value,f,{delta:y,type:Ds.pop,direction:y?y>0?ys.forward:ys.back:ys.unknown})})};function l(){r=i.value}function c(d){s.push(d);const m=()=>{const f=s.indexOf(d);f>-1&&s.splice(f,1)};return a.push(m),m}function u(){const{history:d}=window;d.state&&d.replaceState(Ce({},d.state,{scroll:Lr()}),"")}function h(){for(const d of a)d();a=[],window.removeEventListener("popstate",o),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",o),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:c,destroy:h}}function Bu(t,e,i,n=!1,s=!1){return{back:t,current:e,forward:i,replaced:n,position:window.history.length,scroll:s?Lr():null}}function JE(t){const{history:e,location:i}=window,n={value:Jm(t,i)},s={value:e.state};s.value||a(n.value,{back:null,current:n.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function a(l,c,u){const h=t.indexOf("#"),d=h>-1?(i.host&&document.querySelector("base")?t:t.slice(h))+l:YE()+t+l;try{e[u?"replaceState":"pushState"](c,"",d),s.value=c}catch(m){console.error(m),i[u?"replace":"assign"](d)}}function r(l,c){const u=Ce({},e.state,Bu(s.value.back,l,s.value.forward,!0),c,{position:s.value.position});a(l,u,!0),n.value=l}function o(l,c){const u=Ce({},s.value,e.state,{forward:l,scroll:Lr()});a(u.current,u,!0);const h=Ce({},Bu(n.value,l,null),{position:u.position+1},c);a(l,h,!1),n.value=l}return{location:n,state:s,push:o,replace:r}}function QE(t){t=VE(t);const e=JE(t),i=$E(t,e.state,e.location,e.replace);function n(a,r=!0){r||i.pauseListeners(),history.go(a)}const s=Ce({location:"",base:t,go:n,createHref:BE.bind(null,t)},e,i);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>e.state.value}),s}function eM(t){return t=location.host?t||location.pathname+location.search:"",t.includes("#")||(t+="#"),QE(t)}function tM(t){return typeof t=="string"||t&&typeof t=="object"}function Qm(t){return typeof t=="string"||typeof t=="symbol"}const mi={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},ef=Symbol("");var Hu;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(Hu||(Hu={}));function Bn(t,e){return Ce(new Error,{type:t,[ef]:!0},e)}function ti(t,e){return t instanceof Error&&ef in t&&(e==null||!!(t.type&e))}const zu="[^/]+?",iM={sensitive:!1,strict:!1,start:!0,end:!0},nM=/[.+*?^${}()[\]/\\]/g;function sM(t,e){const i=Ce({},iM,e),n=[];let s=i.start?"^":"";const a=[];for(const c of t){const u=c.length?[]:[90];i.strict&&!c.length&&(s+="/");for(let h=0;he.length?e.length===1&&e[0]===40+40?1:-1:0}function rM(t,e){let i=0;const n=t.score,s=e.score;for(;i0&&e[e.length-1]<0}const oM={type:0,value:""},lM=/[a-zA-Z0-9_]/;function cM(t){if(!t)return[[]];if(t==="/")return[[oM]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(m){throw new Error(`ERR (${i})/"${c}": ${m}`)}let i=0,n=i;const s=[];let a;function r(){a&&s.push(a),a=[]}let o=0,l,c="",u="";function h(){c&&(i===0?a.push({type:0,value:c}):i===1||i===2||i===3?(a.length>1&&(l==="*"||l==="+")&&e(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):e("Invalid state to consume buffer"),c="")}function d(){c+=l}for(;o{r(v)}:gs}function r(u){if(Qm(u)){const h=n.get(u);h&&(n.delete(u),i.splice(i.indexOf(h),1),h.children.forEach(r),h.alias.forEach(r))}else{const h=i.indexOf(u);h>-1&&(i.splice(h,1),u.record.name&&n.delete(u.record.name),u.children.forEach(r),u.alias.forEach(r))}}function o(){return i}function l(u){let h=0;for(;h=0&&(u.record.path!==i[h].record.path||!tf(u,i[h]));)h++;i.splice(h,0,u),u.record.name&&!Yu(u)&&n.set(u.record.name,u)}function c(u,h){let d,m={},f,p;if("name"in u&&u.name){if(d=n.get(u.name),!d)throw Bn(1,{location:u});p=d.record.name,m=Ce(ju(h.params,d.keys.filter(v=>!v.optional).concat(d.parent?d.parent.keys.filter(v=>v.optional):[]).map(v=>v.name)),u.params&&ju(u.params,d.keys.map(v=>v.name))),f=d.stringify(m)}else if(u.path!=null)f=u.path,d=i.find(v=>v.re.test(f)),d&&(m=d.parse(f),p=d.record.name);else{if(d=h.name?n.get(h.name):i.find(v=>v.re.test(h.path)),!d)throw Bn(1,{location:u,currentLocation:h});p=d.record.name,m=Ce({},h.params,u.params),f=d.stringify(m)}const y=[];let _=d;for(;_;)y.unshift(_.record),_=_.parent;return{name:p,path:f,params:m,matched:y,meta:fM(y)}}return t.forEach(u=>a(u)),{addRoute:a,resolve:c,removeRoute:r,getRoutes:o,getRecordMatcher:s}}function ju(t,e){const i={};for(const n of e)n in t&&(i[n]=t[n]);return i}function dM(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:mM(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}}}function mM(t){const e={},i=t.props||!1;if("component"in t)e.default=i;else for(const n in t.components)e[n]=typeof i=="object"?i[n]:i;return e}function Yu(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function fM(t){return t.reduce((e,i)=>Ce(e,i.meta),{})}function $u(t,e){const i={};for(const n in t)i[n]=n in e?e[n]:t[n];return i}function tf(t,e){return e.children.some(i=>i===t||tf(t,i))}function pM(t){const e={};if(t===""||t==="?")return e;const n=(t[0]==="?"?t.slice(1):t).split("&");for(let s=0;sa&&Do(a)):[n&&Do(n)]).forEach(a=>{a!==void 0&&(e+=(e.length?"&":"")+i,a!=null&&(e+="="+a))})}return e}function gM(t){const e={};for(const i in t){const n=t[i];n!==void 0&&(e[i]=Ut(n)?n.map(s=>s==null?null:""+s):n==null?n:""+n)}return e}const yM=Symbol(""),Qu=Symbol(""),Zl=Symbol(""),nf=Symbol(""),Ao=Symbol("");function is(){let t=[];function e(n){return t.push(n),()=>{const s=t.indexOf(n);s>-1&&t.splice(s,1)}}function i(){t=[]}return{add:e,list:()=>t.slice(),reset:i}}function bi(t,e,i,n,s,a=r=>r()){const r=n&&(n.enterCallbacks[s]=n.enterCallbacks[s]||[]);return()=>new Promise((o,l)=>{const c=d=>{d===!1?l(Bn(4,{from:i,to:e})):d instanceof Error?l(d):tM(d)?l(Bn(2,{from:e,to:d})):(r&&n.enterCallbacks[s]===r&&typeof d=="function"&&r.push(d),o())},u=a(()=>t.call(n&&n.instances[s],e,i,c));let h=Promise.resolve(u);t.length<3&&(h=h.then(c)),h.catch(d=>l(d))})}function to(t,e,i,n,s=a=>a()){const a=[];for(const r of t)for(const o in r.components){let l=r.components[o];if(!(e!=="beforeRouteEnter"&&!r.instances[o]))if(bM(l)){const u=(l.__vccOpts||l)[e];u&&a.push(bi(u,i,n,r,o,s))}else{let c=l();a.push(()=>c.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${r.path}"`));const h=CE(u)?u.default:u;r.components[o]=h;const m=(h.__vccOpts||h)[e];return m&&bi(m,i,n,r,o,s)()}))}}return a}function bM(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function eh(t){const e=oi(Zl),i=oi(nf),n=Oe(()=>e.resolve(be(t.to))),s=Oe(()=>{const{matched:l}=n.value,{length:c}=l,u=l[c-1],h=i.matched;if(!u||!h.length)return-1;const d=h.findIndex(Un.bind(null,u));if(d>-1)return d;const m=th(l[c-2]);return c>1&&th(u)===m&&h[h.length-1].path!==m?h.findIndex(Un.bind(null,l[c-2])):d}),a=Oe(()=>s.value>-1&&wM(i.params,n.value.params)),r=Oe(()=>s.value>-1&&s.value===i.matched.length-1&&$m(i.params,n.value.params));function o(l={}){return xM(l)?e[be(t.replace)?"replace":"push"](be(t.to)).catch(gs):Promise.resolve()}return{route:n,href:Oe(()=>n.value.href),isActive:a,isExactActive:r,navigate:o}}const _M=Vh({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:eh,setup(t,{slots:e}){const i=sr(eh(t)),{options:n}=oi(Zl),s=Oe(()=>({[ih(t.activeClass,n.linkActiveClass,"router-link-active")]:i.isActive,[ih(t.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:i.isExactActive}));return()=>{const a=e.default&&e.default(i);return t.custom?a:od("a",{"aria-current":i.isExactActive?t.ariaCurrentValue:null,href:i.href,onClick:i.navigate,class:s.value},a)}}}),vM=_M;function xM(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function wM(t,e){for(const i in e){const n=e[i],s=t[i];if(typeof n=="string"){if(n!==s)return!1}else if(!Ut(s)||s.length!==n.length||n.some((a,r)=>a!==s[r]))return!1}return!0}function th(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const ih=(t,e,i)=>t??e??i,CM=Vh({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:i}){const n=oi(Ao),s=Oe(()=>t.route||n.value),a=oi(Qu,0),r=Oe(()=>{let c=be(a);const{matched:u}=s.value;let h;for(;(h=u[c])&&!h.components;)c++;return c}),o=Oe(()=>s.value.matched[r.value]);ba(Qu,Oe(()=>r.value+1)),ba(yM,o),ba(Ao,s);const l=cp();return ya(()=>[l.value,o.value,t.name],([c,u,h],[d,m,f])=>{u&&(u.instances[h]=c,m&&m!==u&&c&&c===d&&(u.leaveGuards.size||(u.leaveGuards=m.leaveGuards),u.updateGuards.size||(u.updateGuards=m.updateGuards))),c&&u&&(!m||!Un(u,m)||!d)&&(u.enterCallbacks[h]||[]).forEach(p=>p(c))},{flush:"post"}),()=>{const c=s.value,u=t.name,h=o.value,d=h&&h.components[u];if(!d)return nh(i.default,{Component:d,route:c});const m=h.props[u],f=m?m===!0?c.params:typeof m=="function"?m(c):m:null,y=od(d,Ce({},f,e,{onVnodeUnmounted:_=>{_.component.isUnmounted&&(h.instances[u]=null)},ref:l}));return nh(i.default,{Component:y,route:c})||y}}});function nh(t,e){if(!t)return null;const i=t(e);return i.length===1?i[0]:i}const NM=CM;function FM(t){const e=hM(t.routes,t),i=t.parseQuery||pM,n=t.stringifyQuery||Ju,s=t.history,a=is(),r=is(),o=is(),l=up(mi);let c=mi;yn&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Qr.bind(null,F=>""+F),h=Qr.bind(null,AE),d=Qr.bind(null,Ss);function m(F,Z){let P,H;return Qm(F)?(P=e.getRecordMatcher(F),H=Z):H=F,e.addRoute(H,P)}function f(F){const Z=e.getRecordMatcher(F);Z&&e.removeRoute(Z)}function p(){return e.getRoutes().map(F=>F.record)}function y(F){return!!e.getRecordMatcher(F)}function _(F,Z){if(Z=Ce({},Z||l.value),typeof F=="string"){const x=eo(i,F,Z.path),M=e.resolve({path:x.path},Z),T=s.createHref(x.fullPath);return Ce(x,M,{params:d(M.params),hash:Ss(x.hash),redirectedFrom:void 0,href:T})}let P;if(F.path!=null)P=Ce({},F,{path:eo(i,F.path,Z.path).path});else{const x=Ce({},F.params);for(const M in x)x[M]==null&&delete x[M];P=Ce({},F,{params:h(x)}),Z.params=h(Z.params)}const H=e.resolve(P,Z),ce=F.hash||"";H.params=u(d(H.params));const g=ZE(n,Ce({},F,{hash:SE(ce),path:H.path})),b=s.createHref(g);return Ce({fullPath:g,hash:ce,query:n===Ju?gM(F.query):F.query||{}},H,{redirectedFrom:void 0,href:b})}function v(F){return typeof F=="string"?eo(i,F,l.value.path):Ce({},F)}function N(F,Z){if(c!==F)return Bn(8,{from:Z,to:F})}function w(F){return Y(F)}function E(F){return w(Ce(v(F),{replace:!0}))}function L(F){const Z=F.matched[F.matched.length-1];if(Z&&Z.redirect){const{redirect:P}=Z;let H=typeof P=="function"?P(F):P;return typeof H=="string"&&(H=H.includes("?")||H.includes("#")?H=v(H):{path:H},H.params={}),Ce({query:F.query,hash:F.hash,params:H.path!=null?{}:F.params},H)}}function Y(F,Z){const P=c=_(F),H=l.value,ce=F.state,g=F.force,b=F.replace===!0,x=L(P);if(x)return Y(Ce(v(x),{state:typeof x=="object"?Ce({},ce,x.state):ce,force:g,replace:b}),Z||P);const M=P;M.redirectedFrom=Z;let T;return!g&&XE(n,H,P)&&(T=Bn(16,{to:M,from:H}),ot(H,H,!0,!1)),(T?Promise.resolve(T):oe(M,H)).catch(R=>ti(R)?ti(R,2)?R:Ye(R):se(R,M,H)).then(R=>{if(R){if(ti(R,2))return Y(Ce({replace:b},v(R.to),{state:typeof R.to=="object"?Ce({},ce,R.to.state):ce,force:g}),Z||M)}else R=qe(M,H,!0,b,ce);return _e(M,H,R),R})}function q(F,Z){const P=N(F,Z);return P?Promise.reject(P):Promise.resolve()}function re(F){const Z=pe.values().next().value;return Z&&typeof Z.runWithContext=="function"?Z.runWithContext(F):F()}function oe(F,Z){let P;const[H,ce,g]=EM(F,Z);P=to(H.reverse(),"beforeRouteLeave",F,Z);for(const x of H)x.leaveGuards.forEach(M=>{P.push(bi(M,F,Z))});const b=q.bind(null,F,Z);return P.push(b),Pe(P).then(()=>{P=[];for(const x of a.list())P.push(bi(x,F,Z));return P.push(b),Pe(P)}).then(()=>{P=to(ce,"beforeRouteUpdate",F,Z);for(const x of ce)x.updateGuards.forEach(M=>{P.push(bi(M,F,Z))});return P.push(b),Pe(P)}).then(()=>{P=[];for(const x of g)if(x.beforeEnter)if(Ut(x.beforeEnter))for(const M of x.beforeEnter)P.push(bi(M,F,Z));else P.push(bi(x.beforeEnter,F,Z));return P.push(b),Pe(P)}).then(()=>(F.matched.forEach(x=>x.enterCallbacks={}),P=to(g,"beforeRouteEnter",F,Z,re),P.push(b),Pe(P))).then(()=>{P=[];for(const x of r.list())P.push(bi(x,F,Z));return P.push(b),Pe(P)}).catch(x=>ti(x,8)?x:Promise.reject(x))}function _e(F,Z,P){o.list().forEach(H=>re(()=>H(F,Z,P)))}function qe(F,Z,P,H,ce){const g=N(F,Z);if(g)return g;const b=Z===mi,x=yn?history.state:{};P&&(H||b?s.replace(F.fullPath,Ce({scroll:b&&x&&x.scroll},ce)):s.push(F.fullPath,ce)),l.value=F,ot(F,Z,P,b),Ye()}let Ke;function Ft(){Ke||(Ke=s.listen((F,Z,P)=>{if(!Se.listening)return;const H=_(F),ce=L(H);if(ce){Y(Ce(ce,{replace:!0}),H).catch(gs);return}c=H;const g=l.value;yn&&qE(Uu(g.fullPath,P.delta),Lr()),oe(H,g).catch(b=>ti(b,12)?b:ti(b,2)?(Y(b.to,H).then(x=>{ti(x,20)&&!P.delta&&P.type===Ds.pop&&s.go(-1,!1)}).catch(gs),Promise.reject()):(P.delta&&s.go(-P.delta,!1),se(b,H,g))).then(b=>{b=b||qe(H,g,!1),b&&(P.delta&&!ti(b,8)?s.go(-P.delta,!1):P.type===Ds.pop&&ti(b,20)&&s.go(-1,!1)),_e(H,g,b)}).catch(gs)}))}let tt=is(),ve=is(),$;function se(F,Z,P){Ye(F);const H=ve.list();return H.length?H.forEach(ce=>ce(F,Z,P)):console.error(F),Promise.reject(F)}function je(){return $&&l.value!==mi?Promise.resolve():new Promise((F,Z)=>{tt.add([F,Z])})}function Ye(F){return $||($=!F,Ft(),tt.list().forEach(([Z,P])=>F?P(F):Z()),tt.reset()),F}function ot(F,Z,P,H){const{scrollBehavior:ce}=t;if(!yn||!ce)return Promise.resolve();const g=!P&&jE(Uu(F.fullPath,0))||(H||!P)&&history.state&&history.state.scroll||null;return Ph().then(()=>ce(F,Z,g)).then(b=>b&&zE(b)).catch(b=>se(b,F,Z))}const me=F=>s.go(F);let Ve;const pe=new Set,Se={currentRoute:l,listening:!0,addRoute:m,removeRoute:f,hasRoute:y,getRoutes:p,resolve:_,options:t,push:w,replace:E,go:me,back:()=>me(-1),forward:()=>me(1),beforeEach:a.add,beforeResolve:r.add,afterEach:o.add,onError:ve.add,isReady:je,install(F){const Z=this;F.component("RouterLink",vM),F.component("RouterView",NM),F.config.globalProperties.$router=Z,Object.defineProperty(F.config.globalProperties,"$route",{enumerable:!0,get:()=>be(l)}),yn&&!Ve&&l.value===mi&&(Ve=!0,w(s.location).catch(ce=>{}));const P={};for(const ce in mi)Object.defineProperty(P,ce,{get:()=>l.value[ce],enumerable:!0});F.provide(Zl,Z),F.provide(nf,Eh(P)),F.provide(Ao,l);const H=F.unmount;pe.add(F),F.unmount=function(){pe.delete(F),pe.size<1&&(c=mi,Ke&&Ke(),Ke=null,l.value=mi,Ve=!1,$=!1),H()}}};function Pe(F){return F.reduce((Z,P)=>Z.then(()=>re(P)),Promise.resolve())}return Se}function EM(t,e){const i=[],n=[],s=[],a=Math.max(e.matched.length,t.matched.length);for(let r=0;rUn(c,o))?n.push(o):i.push(o));const l=t.matched[r];l&&(e.matched.find(c=>Un(c,l))||s.push(l))}return[i,n,s]}J.use(Nf());J.use(wE());const MM=[{path:"/",component:ld},{path:"/api/:symbol?",component:Bm},{path:"/demo",component:Wm}],TM=FM({history:eM(),routes:MM});Vg(yE).use(TM).mount("#app"); diff --git a/index.html b/index.html index 59deaeb..c93cb75 100644 --- a/index.html +++ b/index.html @@ -27,7 +27,7 @@ href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.3.1/styles/base16/railscasts.min.css" /> - +