| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438 | import {  r as r2,  s,  s3 as s2} from "./chunk-EMJ4ZSM2.js";import {  q,  r,  t} from "./chunk-GZT4BVFP.js";// node_modules/@arcgis/core/core/urlUtils.jsvar s3 = s.getLogger("esri.core.urlUtils");var u = r2.request;var c = "esri/config: esriConfig.request.proxyUrl is not set.";var l = /^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i;var f = /^\s*http:/i;var a = /^\s*https:/i;var h = /^\s*file:/i;var p = /:\d+$/;var d = /^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i;var g = new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$");var m = new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$");var y = class {  constructor(t2 = "") {    this.uri = t2, this.scheme = null, this.authority = null, this.path = null, this.query = null, this.fragment = null, this.user = null, this.password = null, this.host = null, this.port = null;    let n = q(this.uri.match(g));    this.scheme = n[2] || (n[1] ? "" : null), this.authority = n[4] || (n[3] ? "" : null), this.path = n[5], this.query = n[7] || (n[6] ? "" : null), this.fragment = n[9] || (n[8] ? "" : null), this.authority != null && (n = q(this.authority.match(m)), this.user = n[3] || null, this.password = n[4] || null, this.host = n[6] || n[7], this.port = n[9] || null);  }  toString() {    return this.uri;  }};var $ = {};var x = new y(r2.applicationUrl);var w = x;var O = q2();var U = O;var b = () => w;var C = () => U;function q2() {  const t2 = q(w.path), n = t2.substring(0, t2.lastIndexOf(t2.split("/")[t2.split("/").length - 1]));  return `${`${w.scheme}://${w.host}${w.port != null ? `:${w.port}` : ""}`}${n}`;}function j(t2) {  const n = { path: null, query: null }, e = new y(t2), r3 = t2.indexOf("?");  return e.query === null ? n.path = t2 : (n.path = t2.substring(0, r3), n.query = v(e.query)), e.fragment && (n.hash = e.fragment, e.query === null && (n.path = n.path.substring(0, n.path.length - (e.fragment.length + 1)))), n;}function v(t2) {  const n = t2.split("&"), e = {};  for (const r3 of n) {    if (!r3)      continue;    const t3 = r3.indexOf("=");    let n2, o;    t3 < 0 ? (n2 = decodeURIComponent(r3), o = "") : (n2 = decodeURIComponent(r3.slice(0, t3)), o = decodeURIComponent(r3.slice(t3 + 1)));    let i = e[n2];    typeof i == "string" && (i = e[n2] = [i]), Array.isArray(i) ? i.push(o) : e[n2] = o;  }  return e;}function L(t2) {  return t2 && typeof t2 == "object" && "toJSON" in t2 && typeof t2.toJSON == "function";}function I(t2, n) {  return t2 ? n && typeof n == "function" ? Object.keys(t2).map((e) => encodeURIComponent(e) + "=" + encodeURIComponent(n(e, t2[e]))).join("&") : Object.keys(t2).map((e) => {    const r3 = t2[e];    if (r3 == null)      return "";    const o = encodeURIComponent(e) + "=", i = n && n[e];    return i ? o + encodeURIComponent(i(r3)) : Array.isArray(r3) ? r3.map((t3) => L(t3) ? o + encodeURIComponent(JSON.stringify(t3)) : o + encodeURIComponent(t3)).join("&") : L(r3) ? o + encodeURIComponent(JSON.stringify(r3)) : o + encodeURIComponent(r3);  }).filter((t3) => t3).join("&") : "";}function A(t2 = false) {  let e, r3 = u.proxyUrl;  if (typeof t2 == "string") {    e = ht(t2);    const n = J(t2);    n && (r3 = n.proxyUrl);  } else    e = !!t2;  if (!r3)    throw s3.warn(c), new s2("urlutils:proxy-not-set", c);  e && $t() && (r3 = mt(r3));  return j(r3);}function S(t2) {  const n = J(t2);  let e, r3;  if (n) {    const t3 = P(n.proxyUrl);    e = t3.path, r3 = t3.query ? v(t3.query) : null;  }  if (e) {    const n2 = j(t2);    t2 = e + "?" + n2.path;    const o = I({ ...r3, ...n2.query });    o && (t2 = `${t2}?${o}`);  }  return t2;}var B = { path: "", query: "" };function P(t2) {  const n = t2.indexOf("?");  return n !== -1 ? (B.path = t2.slice(0, n), B.query = t2.slice(n + 1)) : (B.path = t2, B.query = null), B;}function k(t2) {  return t2 = (t2 = xt(t2 = bt(t2 = P(t2).path), true)).toLowerCase();}function E(t2) {  const n = { proxyUrl: t2.proxyUrl, urlPrefix: k(t2.urlPrefix) }, e = u.proxyRules, r3 = n.urlPrefix;  let o = e.length;  for (let i = 0; i < e.length; i++) {    const t3 = e[i].urlPrefix;    if (r3.indexOf(t3) === 0) {      if (r3.length === t3.length)        return -1;      o = i;      break;    }    t3.indexOf(r3) === 0 && (o = i + 1);  }  return e.splice(o, 0, n), o;}function J(t2) {  const n = u.proxyRules, e = k(t2);  for (let r3 = 0; r3 < n.length; r3++)    if (e.indexOf(n[r3].urlPrefix) === 0)      return n[r3];}function N(t2, n) {  return t2 = T(t2), n = T(n), xt(t2) === xt(n);}function T(t2) {  const n = (t2 = F(t2)).indexOf("/sharing");  return n > 0 ? t2.substring(0, n) : t2.replace(/\/+$/, "");}function W(t2) {  const n = (n2) => n2 == null || n2 instanceof RegExp && n2.test(t2) || typeof n2 == "string" && t2.startsWith(n2), e = u.interceptors;  if (e) {    for (const r3 of e)      if (Array.isArray(r3.urls)) {        if (r3.urls.some(n))          return r3;      } else if (n(r3.urls))        return r3;  }  return null;}function z(t2, n, e = false) {  const r3 = Lt(t2), o = Lt(n);  return !(!e && r3.scheme !== o.scheme) && (r3.host != null && o.host != null && (r3.host.toLowerCase() === o.host.toLowerCase() && r3.port === o.port));}function D(t2) {  if (typeof t2 == "string") {    if (!K(t2))      return true;    t2 = Lt(t2);  }  if (z(t2, w))    return true;  const n = u.trustedServers || [];  for (let e = 0; e < n.length; e++) {    const r3 = M(n[e]);    for (let n2 = 0; n2 < r3.length; n2++)      if (z(t2, r3[n2]))        return true;  }  return false;}function M(t2) {  return $[t2] || (at(t2) || ft(t2) ? $[t2] = [new y(Q(t2))] : $[t2] = [new y(`http://${t2}`), new y(`https://${t2}`)]), $[t2];}function Q(t2, n = U, e) {  return ft(t2) ? e && e.preserveProtocolRelative ? t2 : w.scheme === "http" && w.authority === H(t2).slice(2) ? `http:${t2}` : `https:${t2}` : at(t2) ? t2 : q(G(t2[0] === "/" ? wt(n) : n, t2));}function _(t2, n = U, e) {  if (!K(t2))    return t2;  const r3 = F(t2), o = r3.toLowerCase(), i = F(n).toLowerCase().replace(/\/+$/, ""), s4 = e ? F(e).toLowerCase().replace(/\/+$/, "") : null;  if (s4 && i.indexOf(s4) !== 0)    return t2;  const u2 = (t3, n2, e2) => (e2 = t3.indexOf(n2, e2)) === -1 ? t3.length : e2;  let c2 = u2(o, "/", o.indexOf("//") + 2), l2 = -1;  for (; o.slice(0, c2 + 1) === i.slice(0, c2) + "/" && (l2 = c2 + 1, c2 !== o.length); )    c2 = u2(o, "/", c2 + 1);  if (l2 === -1)    return t2;  if (s4 && l2 < s4.length)    return t2;  t2 = r3.slice(l2);  const f2 = i.slice(l2 - 1).replace(/[^/]+/g, "").length;  if (f2 > 0)    for (let a2 = 0; a2 < f2; a2++)      t2 = `../${t2}`;  else    t2 = `./${t2}`;  return t2;}function F(t2) {  return t2 = jt(t2 = Rt(t2 = qt(t2 = Q(t2 = t2.trim()))));}function G(...t2) {  const n = t2.filter(r);  if (!n || !n.length)    return;  const e = [];  if (K(n[0])) {    const t3 = n[0], r4 = t3.indexOf("//");    r4 !== -1 && (e.push(t3.slice(0, r4 + 1)), dt(n[0]) && (e[0] += "/"), n[0] = t3.slice(r4 + 2));  } else    n[0][0] === "/" && e.push("");  const r3 = n.reduce((t3, n2) => n2 ? t3.concat(n2.split("/")) : t3, []);  for (let o = 0; o < r3.length; o++) {    const t3 = r3[o];    t3 === ".." && e.length > 0 && e[e.length - 1] !== ".." ? e.pop() : (!t3 && o === r3.length - 1 || t3 && (t3 !== "." || e.length === 0)) && e.push(t3);  }  return e.join("/");}function H(t2, n = false) {  if (V(t2) || X(t2))    return null;  let e = t2.indexOf("://");  if (e === -1 && ft(t2))    e = 2;  else {    if (e === -1)      return null;    e += 3;  }  const r3 = t2.indexOf("/", e);  return r3 !== -1 && (t2 = t2.slice(0, r3)), n && (t2 = xt(t2, true)), t2;}function K(t2) {  return ft(t2) || at(t2);}function V(t2) {  return t2 != null && t2.slice(0, 5) === "blob:";}function X(t2) {  return t2.slice(0, 5) === "data:";}function Y(t2) {  const n = nt(t2);  if (!n || !n.isBase64)    return null;  const e = atob(n.data), r3 = new Uint8Array(e.length);  for (let o = 0; o < e.length; o++)    r3[o] = e.charCodeAt(o);  return r3.buffer;}function Z(t2) {  return btoa(String.fromCharCode.apply(null, t2)).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");}var tt = /^data:(.*?)(;base64)?,(.*)$/;function nt(t2) {  const n = t2.match(tt);  if (!n)    return null;  const [, e, r3, o] = n;  return { mediaType: e, isBase64: !!r3, data: o };}function et(t2) {  return t2.isBase64 ? `data:${t2.mediaType};base64,${t2.data}` : `data:${t2.mediaType},${t2.data}`;}function it(t2, n) {  ut(t2, n) || lt(t2, n);}function ut(t2, n) {  if (!t2)    return false;  const e = document.createElement("a");  if (!("download" in e))    return false;  const r3 = URL.createObjectURL(t2);  return e.download = n, e.href = r3, e.style.display = "none", document.body.appendChild(e), e.click(), document.body.removeChild(e), URL.revokeObjectURL(r3), true;}function lt(t2, n) {  return !!window.navigator.msSaveOrOpenBlob && window.navigator.msSaveOrOpenBlob(t2, n);}function ft(t2) {  return t2 != null && t2 !== void 0 && t2[0] === "/" && t2[1] === "/";}function at(t2) {  return l.test(t2);}function ht(t2) {  return a.test(t2) || w.scheme === "https" && ft(t2);}function pt(t2) {  return f.test(t2) || w.scheme === "http" && ft(t2);}function dt(t2) {  return h.test(t2);}function mt(t2) {  return ft(t2) ? `https:${t2}` : t2.replace(f, "https:");}function yt() {  return w.scheme === "http";}function $t() {  return w.scheme === "https";}function xt(t2, n = false) {  return ft(t2) ? t2.slice(2) : (t2 = t2.replace(l, ""), n && t2.length > 1 && t2[0] === "/" && t2[1] === "/" && (t2 = t2.slice(2)), t2);}function wt(t2) {  const n = t2.indexOf("//"), e = t2.indexOf("/", n + 2);  return e === -1 ? t2 : t2.slice(0, e);}function Ot(t2) {  let n = 0;  if (K(t2)) {    const e2 = t2.indexOf("//");    e2 !== -1 && (n = e2 + 2);  }  const e = t2.lastIndexOf("/");  return e < n ? t2 : t2.slice(0, e + 1);}function Ut(t2, n) {  if (!t2)    return "";  const e = j(t2).path.replace(/\/+$/, ""), r3 = e.substring(e.lastIndexOf("/") + 1);  if (!n?.length)    return r3;  const o = new RegExp(`.(${n.join("|")})$`, "ig");  return r3.replace(o, "");}function bt(t2) {  return t2 && t2[t2.length - 1] === "/" ? t2 : `${t2}/`;}function Ct(t2) {  return t2.replace(/\/+$/, "");}function qt(t2) {  if (/^https?:\/\//i.test(t2)) {    const n = P(t2);    t2 = (t2 = n.path.replace(/\/{2,}/g, "/")).replace("/", "//"), n.query && (t2 += `?${n.query}`);  }  return t2;}function Rt(t2) {  return t2.replace(/^(https?:\/\/)(arcgis\.com)/i, "$1www.$2");}function jt(t2) {  const n = u.httpsDomains;  if (!pt(t2))    return t2;  const e = t2.indexOf("/", 7);  let r3;  if (r3 = e === -1 ? t2 : t2.slice(0, e), r3 = r3.toLowerCase().slice(7), p.test(r3)) {    if (!r3.endsWith(":80"))      return t2;    r3 = r3.slice(0, -3), t2 = t2.replace(":80", "");  }  return yt() && r3 === w.authority && !d.test(t2) || ($t() && r3 === w.authority || n && n.some((t3) => r3 === t3 || r3.endsWith(`.${t3}`)) || $t() && !J(t2)) && (t2 = mt(t2)), t2;}function vt(t2, n, e) {  if (!(n && e && t2 && K(t2)))    return t2;  const r3 = t2.indexOf("//"), o = t2.indexOf("/", r3 + 2), i = t2.indexOf(":", r3 + 2), s4 = Math.min(o < 0 ? t2.length : o, i < 0 ? t2.length : i);  if (t2.slice(r3 + 2, s4).toLowerCase() !== n.toLowerCase())    return t2;  return `${t2.slice(0, r3 + 2)}${e}${t2.slice(s4)}`;}function Lt(t2) {  return typeof t2 == "string" ? new y(Q(t2)) : (t2.scheme || (t2.scheme = w.scheme), t2);}function It(t2) {  return Jt.test(t2);}function At(t2, n) {  const e = j(t2), r3 = Object.keys(e.query || {});  return r3.length > 0 && n && n.warn("removeQueryParameters()", `Url query parameters are not supported, the following parameters have been removed: ${r3.join(", ")}.`), e.path;}function St(t2, n, e) {  const r3 = j(t2), o = r3.query || {};  return o[n] = String(e), `${r3.path}?${I(o)}`;}function Bt(t2, n) {  const e = j(t2), r3 = e.query || {};  for (const i in n)    r3[i] = n[i];  const o = I(r3);  return o ? `${e.path}?${o}` : e.path;}function kt(t2) {  if (t(t2))    return null;  const n = t2.match(Et);  return n ? n[1] : null;}var Et = /.*?\.([^\/]*)$/;var Jt = /(^data:image\/svg|\.svg$)/i;export {  y,  b,  C,  j,  v,  I,  A,  S,  E,  J,  N,  W,  z,  D,  Q,  _,  F,  G,  H,  K,  V,  X,  Y,  Z,  nt,  et,  it,  ft,  ht,  mt,  Ot,  Ut,  Ct,  vt,  It,  At,  St,  Bt,  kt};//# sourceMappingURL=chunk-VBRY5KJM.js.map
 |