PageSourceSearch

https://www.visualcrossing.com/wp-content/plugins/visualcrossing-dashboards/dist/apiConfig-Cfbu2H63.js

js visualcrossing.com collected 2026-10-02 03:34:49 UTC 1,859 bytes, 48 lines download raw bytes

1import { V as e } from "./vclocationsstorage-a6zFKvZC.js";
2const s = "https://weather.visualcrossing.com";
3function _(n = null) {
4  return n ? n.replace(/\/$/, "") : e && e.API_SERVER_ROOT ? e.API_SERVER_ROOT.replace(/\/$/, "") : e && e.SERVER_ROOT ? e.SERVER_ROOT.replace(/\/$/, "") : s;
5}
6function $() {
7  return e && e.WEBAPI_SERVER_ROOT ? e.WEBAPI_SERVER_ROOT.replace(/\/$/, "") : e && e.SERVER_ROOT ? e.SERVER_ROOT.replace(/\/$/, "") : s;
8}
9function g() {
10  return e && e.PREVIEW_SERVER_ROOT ? e.PREVIEW_SERVER_ROOT.replace(/\/$/, "") : e && e.SERVER_ROOT ? e.SERVER_ROOT.replace(/\/$/, "") : s;
11}
12function V() {
13  return e && e.DOCS_SERVER_ROOT ? e.DOCS_SERVER_ROOT.replace(/\/$/, "") : s;
14}
15function v(n, c = {}, a = null) {
16  const i = `${_(a)}/VisualCrossingWebServices/rest/api/v1/geo/${n}`, o = new URLSearchParams();
17  for (const [l, r] of Object.entries(c))
18    r != null && o.set(l, String(r));
19  return `${i}?${o.toString()}`;
20}
21function b({
22  location: n,
23  startDate: c,
24  endDate: a,
25  params: O = {},
26  sessionState: i = null
27} = {}) {
28  const o = V(), l = encodeURIComponent(n || ""), r = [c, a].filter(Boolean).join("/"), S = `${o}/VisualCrossingWebServices/rest/services/timeline/${l}${r ? "/" + r : ""}`, R = new URLSearchParams();
29  for (const [u, t] of Object.entries(O))
30    if (!(t == null || t === "") && u !== "key") {
31      if (u === "options" && typeof t == "string") {
32        const f = t.split(",").map((E) => E.trim()).filter(Boolean).filter((E) => E !== "preview").join(",");
33        f && R.set("options", f);
34        continue;
35      }
36      R.set(u, String(t));
37    }
38  const p = i && i.apiKey || typeof window < "u" && window.vcApiKey || null;
39  return R.set("key", p || "YOUR_API_KEY"), `${S}?${R.toString()}`;
40}
41export {
42  g as a,
43  _ as b,
44  b as c,
45  v as d,
46  $ as g
47};
48//# sourceMappingURL=apiConfig-Cfbu2H63.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.