import{h as t}from"./p-5ab6b26f.js";function n(t){return document.querySelector(t?`gl-map#${t}`:"gl-map")}function e(n){if(n.image)return t("ion-thumbnail",{slot:"start"},t("img",{src:n.image}))}function a(t,n=","){return t?Array.isArray(t)?t:t.split(n):[]}const o=function(){let t;return function(n){return t||(t=document.createElement("a")),t.href=n,t.href}}();async function r(t,n,e){let a=await fetch(t+n,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),o=await a.blob();window.navigator.msSaveOrOpenBlob?window.navigator.msSaveOrOpenBlob(o,`${n}.pdf`):window.open(window.URL.createObjectURL(o))}export{o as a,e as b,r as f,n as g,a as t};