freddyaboulton HF staff commited on
Commit
ce6c379
1 Parent(s): 28cf669

Upload folder using huggingface_hub

Browse files
Dockerfile CHANGED
@@ -5,6 +5,10 @@ WORKDIR /code
5
 
6
  COPY --link --chown=1000 . .
7
 
 
 
 
 
8
  RUN pip install --no-cache-dir -r requirements.txt
9
 
10
  ENV PYTHONUNBUFFERED=1 GRADIO_ALLOW_FLAGGING=never GRADIO_NUM_PORTS=1 GRADIO_SERVER_NAME=0.0.0.0 GRADIO_SERVER_PORT=7860 SYSTEM=spaces
 
5
 
6
  COPY --link --chown=1000 . .
7
 
8
+ RUN mkdir -p /tmp/cache/
9
+ RUN chmod a+rwx -R /tmp/cache/
10
+ ENV TRANSFORMERS_CACHE=/tmp/cache/
11
+
12
  RUN pip install --no-cache-dir -r requirements.txt
13
 
14
  ENV PYTHONUNBUFFERED=1 GRADIO_ALLOW_FLAGGING=never GRADIO_NUM_PORTS=1 GRADIO_SERVER_NAME=0.0.0.0 GRADIO_SERVER_PORT=7860 SYSTEM=spaces
README.md CHANGED
@@ -1,10 +1,17 @@
1
 
2
  ---
3
- tags: [gradio-custom-component]
4
- title: gradio_folium V0.0.3
5
- colorFrom: yellow
6
- colorTo: purple
7
  sdk: docker
8
  pinned: false
9
  license: apache-2.0
10
  ---
 
 
 
 
 
 
 
 
1
 
2
  ---
3
+ tags: [gradio-custom-component,maps,geospatial,folium]
4
+ title: gradio_folium V0.0.4
5
+ colorFrom: indigo
6
+ colorTo: gray
7
  sdk: docker
8
  pinned: false
9
  license: apache-2.0
10
  ---
11
+
12
+
13
+ # Name: gradio_folium
14
+
15
+ Description: Display Interactive Maps Created with Folium
16
+
17
+ Install with: pip install gradio_folium
requirements.txt CHANGED
@@ -1,3 +1 @@
1
- gradio_folium-0.0.3-py3-none-any.whl
2
- https://gradio-builds.s3.amazonaws.com/4.0/attempt-06/gradio-4.0.0-py3-none-any.whl
3
- https://gradio-builds.s3.amazonaws.com/4.0/attempt-06/gradio_client-0.7.0b0-py3-none-any.whl
 
1
+ gradio_folium-0.0.4-py3-none-any.whl
 
 
src/backend/gradio_folium/templates/component/index.js CHANGED
@@ -220,8 +220,8 @@ function ur(e) {
220
  }
221
  function fr(e, t, n) {
222
  let { $$slots: r = {}, $$scope: i } = t, { height: s = void 0 } = t, { width: l = void 0 } = t, { elem_id: o = "" } = t, { elem_classes: a = [] } = t, { variant: u = "solid" } = t, { border_mode: f = "base" } = t, { padding: c = !0 } = t, { type: h = "normal" } = t, { test_id: _ = void 0 } = t, { explicit_call: d = !1 } = t, { container: E = !0 } = t, { visible: w = !0 } = t, { allow_overflow: N = !0 } = t, { scale: b = null } = t, { min_width: m = 0 } = t, T = h === "fieldset" ? "fieldset" : "div";
223
- return e.$$set = (g) => {
224
- "height" in g && n(0, s = g.height), "width" in g && n(1, l = g.width), "elem_id" in g && n(2, o = g.elem_id), "elem_classes" in g && n(3, a = g.elem_classes), "variant" in g && n(4, u = g.variant), "border_mode" in g && n(5, f = g.border_mode), "padding" in g && n(6, c = g.padding), "type" in g && n(15, h = g.type), "test_id" in g && n(7, _ = g.test_id), "explicit_call" in g && n(8, d = g.explicit_call), "container" in g && n(9, E = g.container), "visible" in g && n(10, w = g.visible), "allow_overflow" in g && n(11, N = g.allow_overflow), "scale" in g && n(12, b = g.scale), "min_width" in g && n(13, m = g.min_width), "$$scope" in g && n(16, i = g.$$scope);
225
  }, [
226
  s,
227
  l,
@@ -273,8 +273,8 @@ const {
273
  detach: dr,
274
  element: wt,
275
  init: br,
276
- insert: gr,
277
- mount_component: pr,
278
  safe_not_equal: vr,
279
  set_data: yr,
280
  space: Er,
@@ -306,7 +306,7 @@ function Hr(e) {
306
  );
307
  },
308
  m(o, a) {
309
- gr(o, t, a), qe(t, n), pr(r, n, null), qe(t, i), qe(t, s), l = !0;
310
  },
311
  p(o, [a]) {
312
  (!l || a & /*label*/
@@ -375,10 +375,10 @@ const {
375
  safe_not_equal: Ur,
376
  toggle_class: W,
377
  transition_in: Dr,
378
- transition_out: kr,
379
- update_slot_base: Gr
380
  } = window.__gradio__svelte__internal;
381
- function Fr(e) {
382
  let t, n, r;
383
  const i = (
384
  /*#slots*/
@@ -419,7 +419,7 @@ function Fr(e) {
419
  },
420
  p(l, [o]) {
421
  s && s.p && (!r || o & /*$$scope*/
422
- 16) && Gr(
423
  s,
424
  i,
425
  l,
@@ -466,7 +466,7 @@ function Fr(e) {
466
  r || (Dr(s, l), r = !0);
467
  },
468
  o(l) {
469
- kr(s, l), r = !1;
470
  },
471
  d(l) {
472
  l && Cr(t), s && s.d(l), e[6](null);
@@ -513,7 +513,7 @@ function jr(e, t, n) {
513
  }
514
  class Xr extends Ar {
515
  constructor(t) {
516
- super(), Mr(this, t, jr, Fr, Ur, { size: 0, unpadded_box: 1 });
517
  }
518
  }
519
  const {
@@ -890,17 +890,17 @@ function ni(e) {
890
  let t;
891
  return bn(e, (n) => t = n)(), t;
892
  }
893
- const gn = typeof window < "u";
894
- let Ht = gn ? () => window.performance.now() : () => Date.now(), pn = gn ? (e) => requestAnimationFrame(e) : ne;
895
  const oe = /* @__PURE__ */ new Set();
896
  function vn(e) {
897
  oe.forEach((t) => {
898
  t.c(e) || (oe.delete(t), t.f());
899
- }), oe.size !== 0 && pn(vn);
900
  }
901
  function ri(e) {
902
  let t;
903
- return oe.size === 0 && pn(vn), {
904
  promise: new Promise((n) => {
905
  oe.add(t = { c: e, f: n });
906
  }),
@@ -1008,8 +1008,8 @@ function St(e, t = {}) {
1008
  opts: E,
1009
  settled: !0,
1010
  dt: (m - l) * 60 / 1e3
1011
- }, g = tt(T, u, e, f);
1012
- return l = m, u = e, n.set(e = g), T.settled && (o = null), !T.settled;
1013
  })), new Promise((m) => {
1014
  o.promise.then(() => {
1015
  b === a && m();
@@ -1078,7 +1078,7 @@ function yn(e, t) {
1078
  function bi(e, t) {
1079
  return yn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1080
  }
1081
- function gi(e, t, n) {
1082
  var r = {};
1083
  return n.isMergeableObject(e) && At(e).forEach(function(i) {
1084
  r[i] = ye(e[i], n);
@@ -1089,7 +1089,7 @@ function gi(e, t, n) {
1089
  function ae(e, t, n) {
1090
  n = n || {}, n.arrayMerge = n.arrayMerge || _i, n.isMergeableObject = n.isMergeableObject || li, n.cloneUnlessOtherwiseSpecified = ye;
1091
  var r = Array.isArray(t), i = Array.isArray(e), s = r === i;
1092
- return s ? r ? n.arrayMerge(e, t, n) : gi(e, t, n) : ye(t, n);
1093
  }
1094
  ae.all = function(t, n) {
1095
  if (!Array.isArray(t))
@@ -1098,7 +1098,7 @@ ae.all = function(t, n) {
1098
  return ae(r, i, n);
1099
  }, {});
1100
  };
1101
- var pi = ae, vi = pi;
1102
  const yi = /* @__PURE__ */ si(vi);
1103
  var nt = function(e, t) {
1104
  return nt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
@@ -1108,7 +1108,7 @@ var nt = function(e, t) {
1108
  Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
1109
  }, nt(e, t);
1110
  };
1111
- function Ge(e, t) {
1112
  if (typeof t != "function" && t !== null)
1113
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
1114
  nt(e, t);
@@ -2839,7 +2839,7 @@ var Qe, Li = new RegExp("^".concat(An.source, "*")), Oi = new RegExp("".concat(A
2839
  function H(e, t) {
2840
  return { start: e, end: t };
2841
  }
2842
- var Mi = !!String.prototype.startsWith, Ri = !!String.fromCodePoint, Ui = !!Object.fromEntries, Di = !!String.prototype.codePointAt, ki = !!String.prototype.trimStart, Gi = !!String.prototype.trimEnd, Fi = !!Number.isSafeInteger, Vi = Fi ? Number.isSafeInteger : function(e) {
2843
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2844
  }, it = !0;
2845
  try {
@@ -2896,7 +2896,7 @@ var Lt = Mi ? (
2896
  return i < 55296 || i > 56319 || n + 1 === r || (s = t.charCodeAt(n + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
2897
  }
2898
  }
2899
- ), Xi = ki ? (
2900
  // Native
2901
  function(t) {
2902
  return t.trimStart();
@@ -2906,7 +2906,7 @@ var Lt = Mi ? (
2906
  function(t) {
2907
  return t.replace(Li, "");
2908
  }
2909
- ), qi = Gi ? (
2910
  // Native
2911
  function(t) {
2912
  return t.trimEnd();
@@ -3189,7 +3189,7 @@ var zi = (
3189
  if (this.bumpSpace(), !this.bumpIf(","))
3190
  return this.error(x.EXPECT_SELECT_ARGUMENT_OPTIONS, H(m, A({}, m)));
3191
  this.bumpSpace();
3192
- var T = this.parseIdentifierIfPossible(), g = 0;
3193
  if (o !== "select" && T.value === "offset") {
3194
  if (!this.bumpIf(":"))
3195
  return this.error(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, H(this.clonePosition(), this.clonePosition()));
@@ -3197,7 +3197,7 @@ var zi = (
3197
  var c = this.tryParseDecimalInteger(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, x.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3198
  if (c.err)
3199
  return c;
3200
- this.bumpSpace(), T = this.parseIdentifierIfPossible(), g = c.val;
3201
  }
3202
  var j = this.tryParsePluralOrSelectOptions(t, o, n, T);
3203
  if (j.err)
@@ -3219,7 +3219,7 @@ var zi = (
3219
  type: P.plural,
3220
  value: r,
3221
  options: Ot(j.val),
3222
- offset: g,
3223
  pluralType: o === "plural" ? "cardinal" : "ordinal",
3224
  location: X
3225
  },
@@ -3479,10 +3479,10 @@ var ns = {
3479
  (function(e) {
3480
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3481
  })(fe || (fe = {}));
3482
- var Fe = (
3483
  /** @class */
3484
  function(e) {
3485
- Ge(t, e);
3486
  function t(n, r, i) {
3487
  var s = e.call(this, n) || this;
3488
  return s.code = r, s.originalMessage = i, s;
@@ -3494,30 +3494,30 @@ var Fe = (
3494
  ), Rt = (
3495
  /** @class */
3496
  function(e) {
3497
- Ge(t, e);
3498
  function t(n, r, i, s) {
3499
  return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), fe.INVALID_VALUE, s) || this;
3500
  }
3501
  return t;
3502
- }(Fe)
3503
  ), rs = (
3504
  /** @class */
3505
  function(e) {
3506
- Ge(t, e);
3507
  function t(n, r, i) {
3508
  return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), fe.INVALID_VALUE, i) || this;
3509
  }
3510
  return t;
3511
- }(Fe)
3512
  ), is = (
3513
  /** @class */
3514
  function(e) {
3515
- Ge(t, e);
3516
  function t(n, r) {
3517
  return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), fe.MISSING_VALUE, r) || this;
3518
  }
3519
  return t;
3520
- }(Fe)
3521
  ), C;
3522
  (function(e) {
3523
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
@@ -3594,13 +3594,13 @@ function Le(e, t, n, r, i, s, l) {
3594
  var d = f.children, E = f.value, w = i[E];
3595
  if (!ls(w))
3596
  throw new rs(E, "function", l);
3597
- var N = Le(d, t, n, r, i, s), b = w(N.map(function(g) {
3598
- return g.value;
3599
  }));
3600
- Array.isArray(b) || (b = [b]), o.push.apply(o, b.map(function(g) {
3601
  return {
3602
- type: typeof g == "string" ? C.literal : C.object,
3603
- value: g
3604
  };
3605
  }));
3606
  }
@@ -3615,7 +3615,7 @@ function Le(e, t, n, r, i, s, l) {
3615
  var m = f.options["=".concat(h)];
3616
  if (!m) {
3617
  if (!Intl.PluralRules)
3618
- throw new Fe(`Intl.PluralRules is not available in this environment.
3619
  Try polyfilling it using "@formatjs/intl-pluralrules"
3620
  `, fe.MISSING_INTL_API, l);
3621
  var T = n.getPluralRules(t, { type: f.pluralType }).select(h - (f.offset || 0));
@@ -3859,15 +3859,15 @@ me(
3859
  );
3860
  xe.subscribe((e) => mt = e);
3861
  const Oe = {};
3862
- function gs(e, t) {
3863
  Oe[e].delete(t), Oe[e].size === 0 && delete Oe[e];
3864
  }
3865
- function kn(e) {
3866
  return Oe[e];
3867
  }
3868
- function ps(e) {
3869
  return Ve(e).map((t) => {
3870
- const n = kn(t);
3871
  return [t, n ? [...n] : []];
3872
  }).filter(([, t]) => t.length > 0);
3873
  }
@@ -3875,27 +3875,27 @@ function ut(e) {
3875
  return e == null ? !1 : Ve(e).some(
3876
  (t) => {
3877
  var n;
3878
- return (n = kn(t)) == null ? void 0 : n.size;
3879
  }
3880
  );
3881
  }
3882
  function vs(e, t) {
3883
  return Promise.all(
3884
- t.map((r) => (gs(e, r), r().then((i) => i.default || i)))
3885
  ).then((r) => bs(e, ...r));
3886
  }
3887
  const ve = {};
3888
- function Gn(e) {
3889
  if (!ut(e))
3890
  return e in ve ? ve[e] : Promise.resolve();
3891
- const t = ps(e);
3892
  return ve[e] = Promise.all(
3893
  t.map(
3894
  ([n, r]) => vs(n, r)
3895
  )
3896
  ).then(() => {
3897
  if (ut(e))
3898
- return Gn(e);
3899
  delete ve[e];
3900
  }), ve[e];
3901
  }
@@ -3950,12 +3950,12 @@ var xs = Object.defineProperty, Ts = Object.defineProperties, Hs = Object.getOwn
3950
  }, Ps = (e, t) => Ts(e, Hs(t));
3951
  let ft;
3952
  const Ue = we(null);
3953
- function kt(e) {
3954
  return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
3955
  }
3956
  function Ve(e, t = he().fallbackLocale) {
3957
- const n = kt(e);
3958
- return t ? [.../* @__PURE__ */ new Set([...n, ...kt(t)])] : n;
3959
  }
3960
  function re() {
3961
  return ft ?? void 0;
@@ -3970,7 +3970,7 @@ const Ns = (e) => {
3970
  return typeof window < "u" && re() != null && t ? n = window.setTimeout(
3971
  () => $e.set(!0),
3972
  t
3973
- ) : $e.set(!0), Gn(e).then(() => {
3974
  Ue.set(e);
3975
  }).finally(() => {
3976
  clearTimeout(n), $e.set(!1);
@@ -3986,17 +3986,17 @@ const Ns = (e) => {
3986
  return i in t ? t[i] : t[i] = e(r);
3987
  };
3988
  };
3989
- var Is = Object.defineProperty, De = Object.getOwnPropertySymbols, Fn = Object.prototype.hasOwnProperty, Vn = Object.prototype.propertyIsEnumerable, Gt = (e, t, n) => t in e ? Is(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, dt = (e, t) => {
3990
  for (var n in t || (t = {}))
3991
- Fn.call(t, n) && Gt(e, n, t[n]);
3992
  if (De)
3993
  for (var n of De(t))
3994
- Vn.call(t, n) && Gt(e, n, t[n]);
3995
  return e;
3996
  }, de = (e, t) => {
3997
  var n = {};
3998
  for (var r in e)
3999
- Fn.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
4000
  if (e != null && De)
4001
  for (var r of De(e))
4002
  t.indexOf(r) < 0 && Vn.call(e, r) && (n[r] = e[r]);
@@ -4056,7 +4056,7 @@ const Ee = (e, t) => {
4056
  (e, t = re()) => new fs(e, t, he().formats, {
4057
  ignoreTag: he().ignoreTag
4058
  })
4059
- ), ks = (e, t = {}) => {
4060
  var n, r, i, s;
4061
  let l = t;
4062
  typeof e == "object" && (l = e, e = l.id);
@@ -4088,9 +4088,9 @@ const Ee = (e, t) => {
4088
  );
4089
  }
4090
  return c;
4091
- }, Gs = (e, t) => Us(t).format(e), Fs = (e, t) => Rs(t).format(e), Vs = (e, t) => Ms(t).format(e), js = (e, t = re()) => Un(e, t), Xs = me([Te, xe], () => ks);
 
4092
  me([Te], () => Gs);
4093
- me([Te], () => Fs);
4094
  me([Te], () => Vs);
4095
  me([Te, xe], () => js);
4096
  ni(Xs);
@@ -4105,7 +4105,7 @@ const {
4105
  SvelteComponent: qs,
4106
  append: R,
4107
  attr: B,
4108
- component_subscribe: Ft,
4109
  detach: zs,
4110
  element: Zs,
4111
  init: Ws,
@@ -4159,9 +4159,9 @@ function Ks(e) {
4159
  function $s(e, t, n) {
4160
  let r, i, { margin: s = !0 } = t;
4161
  const l = St([0, 0]);
4162
- Ft(e, l, (h) => n(1, r = h));
4163
  const o = St([0, 0]);
4164
- Ft(e, o, (h) => n(2, i = h));
4165
  let a;
4166
  async function u() {
4167
  await Promise.all([l.set([125, 140]), o.set([-125, -140])]), await Promise.all([l.set([-125, 140]), o.set([125, -140])]), await Promise.all([l.set([-125, 0]), o.set([125, -0])]), await Promise.all([l.set([125, 0]), o.set([-125, 0])]);
@@ -4184,7 +4184,7 @@ class el extends qs {
4184
  const {
4185
  SvelteComponent: tl,
4186
  append: te,
4187
- attr: k,
4188
  binding_callbacks: Xt,
4189
  check_outros: jn,
4190
  create_component: nl,
@@ -4194,7 +4194,7 @@ const {
4194
  detach: v,
4195
  element: V,
4196
  empty: be,
4197
- ensure_array_like: ke,
4198
  get_all_dirty_from_scope: sl,
4199
  get_slot_changes: ll,
4200
  group_outros: qn,
@@ -4205,7 +4205,7 @@ const {
4205
  safe_not_equal: ul,
4206
  set_data: M,
4207
  set_style: J,
4208
- space: G,
4209
  text: I,
4210
  toggle_class: O,
4211
  transition_in: ce,
@@ -4237,7 +4237,7 @@ function ml(e) {
4237
  );
4238
  return {
4239
  c() {
4240
- t = V("span"), r = I(n), i = G(), o && o.c(), k(t, "class", "error svelte-14miwb5");
4241
  },
4242
  m(a, u) {
4243
  y(a, t, u), te(t, r), y(a, i, u), o && o.m(a, u), s = !0;
@@ -4288,14 +4288,14 @@ function dl(e) {
4288
  /*progress*/
4289
  m[7]
4290
  )
4291
- return pl;
4292
  if (
4293
  /*queue_position*/
4294
  m[2] !== null && /*queue_size*/
4295
  m[3] !== void 0 && /*queue_position*/
4296
  m[2] >= 0
4297
  )
4298
- return gl;
4299
  if (
4300
  /*queue_position*/
4301
  m[2] === 0
@@ -4321,7 +4321,7 @@ function dl(e) {
4321
  e[5] && sn(e);
4322
  return {
4323
  c() {
4324
- f && f.c(), t = G(), n = V("div"), _ && _.c(), r = G(), d && d.c(), i = G(), l && l.c(), o = G(), b && b.c(), a = be(), k(n, "class", "progress-text svelte-14miwb5"), O(
4325
  n,
4326
  "meta-text-center",
4327
  /*variant*/
@@ -4354,9 +4354,9 @@ function dl(e) {
4354
  /*variant*/
4355
  m[8] === "default"
4356
  );
4357
- let g = s;
4358
- s = N(m), s === g ? ~s && w[s].p(m, T) : (l && (qn(), _e(w[g], 1, 1, () => {
4359
- w[g] = null;
4360
  }), jn()), ~s ? (l = w[s], l ? l.p(m, T) : (l = w[s] = E[s](m), l.c()), ce(l, 1), l.m(o.parentNode, o)) : l = null), /*timer*/
4361
  m[5] ? b && (b.d(1), b = null) : b ? b.p(m, T) : (b = sn(m), b.c(), b.m(a.parentNode, a));
4362
  },
@@ -4376,7 +4376,7 @@ function Wt(e) {
4376
  (e[17] || 0) * 100 - 100}%)`;
4377
  return {
4378
  c() {
4379
- t = V("div"), k(t, "class", "eta-bar svelte-14miwb5"), J(t, "transform", n);
4380
  },
4381
  m(r, i) {
4382
  y(r, t, i);
@@ -4406,7 +4406,7 @@ function bl(e) {
4406
  }
4407
  };
4408
  }
4409
- function gl(e) {
4410
  let t, n = (
4411
  /*queue_position*/
4412
  e[2] + 1 + ""
@@ -4436,8 +4436,8 @@ function gl(e) {
4436
  }
4437
  };
4438
  }
4439
- function pl(e) {
4440
- let t, n = ke(
4441
  /*progress*/
4442
  e[7]
4443
  ), r = [];
@@ -4457,7 +4457,7 @@ function pl(e) {
4457
  p(i, s) {
4458
  if (s[0] & /*progress*/
4459
  128) {
4460
- n = ke(
4461
  /*progress*/
4462
  i[7]
4463
  );
@@ -4490,7 +4490,7 @@ function Qt(e) {
4490
  let a = o(e), u = a(e);
4491
  return {
4492
  c() {
4493
- u.c(), t = G(), r = I(n), i = I(" | "), l = I(s);
4494
  },
4495
  m(f, c) {
4496
  u.m(f, c), y(f, t, c), y(f, r, c), y(f, i, c), y(f, l, c);
@@ -4652,7 +4652,7 @@ function wl(e) {
4652
  );
4653
  return {
4654
  c() {
4655
- t = V("div"), n = V("div"), o && o.c(), r = G(), i = V("div"), s = V("div"), k(n, "class", "progress-level-inner svelte-14miwb5"), k(s, "class", "progress-bar svelte-14miwb5"), J(s, "width", l), k(i, "class", "progress-bar-wrap svelte-14miwb5"), k(t, "class", "progress-level svelte-14miwb5");
4656
  },
4657
  m(a, u) {
4658
  y(a, t, u), te(t, n), o && o.m(n, null), te(t, r), te(t, i), te(i, s), e[30](s);
@@ -4671,7 +4671,7 @@ function wl(e) {
4671
  };
4672
  }
4673
  function Kt(e) {
4674
- let t, n = ke(
4675
  /*progress*/
4676
  e[7]
4677
  ), r = [];
@@ -4691,7 +4691,7 @@ function Kt(e) {
4691
  p(i, s) {
4692
  if (s[0] & /*progress_level, progress*/
4693
  16512) {
4694
- n = ke(
4695
  /*progress*/
4696
  i[7]
4697
  );
@@ -4731,7 +4731,7 @@ function $t(e) {
4731
  );
4732
  return {
4733
  c() {
4734
- s && s.c(), t = G(), l && l.c(), n = G(), o && o.c(), r = G(), a && a.c(), i = be();
4735
  },
4736
  m(u, f) {
4737
  s && s.m(u, f), y(u, t, f), l && l.m(u, f), y(u, n, f), o && o.m(u, f), y(u, r, f), a && a.m(u, f), y(u, i, f);
@@ -4866,7 +4866,7 @@ function sn(e) {
4866
  t = V("p"), n = I(
4867
  /*loading_text*/
4868
  e[9]
4869
- ), k(t, "class", "loading svelte-14miwb5");
4870
  },
4871
  m(r, i) {
4872
  y(r, t, i), te(t, n);
@@ -4898,7 +4898,7 @@ function Tl(e) {
4898
  }
4899
  return ~(n = a(e)) && (r = o[n] = l[n](e)), {
4900
  c() {
4901
- t = V("div"), r && r.c(), k(t, "class", i = "wrap " + /*variant*/
4902
  e[8] + " " + /*show_progress*/
4903
  e[6] + " svelte-14miwb5"), O(t, "hide", !/*status*/
4904
  e[4] || /*status*/
@@ -4944,7 +4944,7 @@ function Tl(e) {
4944
  }), jn()), ~n ? (r = o[n], r ? r.p(u, f) : (r = o[n] = l[n](u), r.c()), ce(r, 1), r.m(t, null)) : r = null), (!s || f[0] & /*variant, show_progress*/
4945
  320 && i !== (i = "wrap " + /*variant*/
4946
  u[8] + " " + /*show_progress*/
4947
- u[6] + " svelte-14miwb5")) && k(t, "class", i), (!s || f[0] & /*variant, show_progress, status, show_progress*/
4948
  336) && O(t, "hide", !/*status*/
4949
  u[4] || /*status*/
4950
  u[4] === "complete" || /*show_progress*/
@@ -5013,45 +5013,45 @@ async function Hl(e, t = !0) {
5013
  }
5014
  }
5015
  function Bl(e, t, n) {
5016
- let r, { $$slots: i = {}, $$scope: s } = t, { i18n: l } = t, { eta: o = null } = t, { queue: a = !1 } = t, { queue_position: u } = t, { queue_size: f } = t, { status: c } = t, { scroll_to_output: h = !1 } = t, { timer: _ = !0 } = t, { show_progress: d = "full" } = t, { message: E = null } = t, { progress: w = null } = t, { variant: N = "default" } = t, { loading_text: b = "Loading..." } = t, { absolute: m = !0 } = t, { translucent: T = !1 } = t, { border: g = !1 } = t, { autoscroll: j } = t, X, ge = !1, Ae = 0, Y = 0, Xe = null, bt = 0, K = null, pe, q = null, gt = !0;
5017
  const Zn = () => {
5018
- n(25, Ae = performance.now()), n(26, Y = 0), ge = !0, pt();
5019
  };
5020
- function pt() {
5021
  requestAnimationFrame(() => {
5022
- n(26, Y = (performance.now() - Ae) / 1e3), ge && pt();
5023
  });
5024
  }
5025
  function vt() {
5026
- n(26, Y = 0), ge && (ge = !1);
5027
  }
5028
  cl(() => {
5029
- ge && vt();
5030
  });
5031
  let yt = null;
5032
- function Wn(p) {
5033
- Xt[p ? "unshift" : "push"](() => {
5034
- q = p, n(16, q), n(7, w), n(14, K), n(15, pe);
5035
  });
5036
  }
5037
- function Qn(p) {
5038
- Xt[p ? "unshift" : "push"](() => {
5039
- X = p, n(13, X);
5040
  });
5041
  }
5042
- return e.$$set = (p) => {
5043
- "i18n" in p && n(1, l = p.i18n), "eta" in p && n(0, o = p.eta), "queue" in p && n(21, a = p.queue), "queue_position" in p && n(2, u = p.queue_position), "queue_size" in p && n(3, f = p.queue_size), "status" in p && n(4, c = p.status), "scroll_to_output" in p && n(22, h = p.scroll_to_output), "timer" in p && n(5, _ = p.timer), "show_progress" in p && n(6, d = p.show_progress), "message" in p && n(23, E = p.message), "progress" in p && n(7, w = p.progress), "variant" in p && n(8, N = p.variant), "loading_text" in p && n(9, b = p.loading_text), "absolute" in p && n(10, m = p.absolute), "translucent" in p && n(11, T = p.translucent), "border" in p && n(12, g = p.border), "autoscroll" in p && n(24, j = p.autoscroll), "$$scope" in p && n(28, s = p.$$scope);
5044
  }, e.$$.update = () => {
5045
  e.$$.dirty[0] & /*eta, old_eta, queue, timer_start*/
5046
  169869313 && (o === null ? n(0, o = Xe) : a && n(0, o = (performance.now() - Ae) / 1e3 + o), o != null && (n(19, yt = o.toFixed(1)), n(27, Xe = o))), e.$$.dirty[0] & /*eta, timer_diff*/
5047
  67108865 && n(17, bt = o === null || o <= 0 || !Y ? null : Math.min(Y / o, 1)), e.$$.dirty[0] & /*progress*/
5048
- 128 && w != null && n(18, gt = !1), e.$$.dirty[0] & /*progress, progress_level, progress_bar, last_progress_level*/
5049
- 114816 && (w != null ? n(14, K = w.map((p) => {
5050
- if (p.index != null && p.length != null)
5051
- return p.index / p.length;
5052
- if (p.progress != null)
5053
- return p.progress;
5054
- })) : n(14, K = null), K ? (n(15, pe = K[K.length - 1]), q && (pe === 0 ? n(16, q.style.transition = "0", q) : n(16, q.style.transition = "150ms", q))) : n(15, pe = void 0)), e.$$.dirty[0] & /*status*/
5055
  16 && (c === "pending" ? Zn() : vt()), e.$$.dirty[0] & /*el, scroll_to_output, status, autoscroll*/
5056
  20979728 && X && h && (c === "pending" || c === "complete") && Hl(X, j), e.$$.dirty[0] & /*status, message*/
5057
  8388624, e.$$.dirty[0] & /*timer_diff*/
@@ -5069,13 +5069,13 @@ function Bl(e, t, n) {
5069
  b,
5070
  m,
5071
  T,
5072
- g,
5073
  X,
5074
  K,
5075
- pe,
5076
  q,
5077
  bt,
5078
- gt,
5079
  yt,
5080
  r,
5081
  a,
@@ -5173,23 +5173,21 @@ const {
5173
  space: un,
5174
  src_url_equal: fn,
5175
  transition_in: D,
5176
- transition_out: F
5177
  } = window.__gradio__svelte__internal;
5178
  function hn(e) {
5179
  let t, n;
5180
  const r = [
5181
- {
5182
- autoscroll: (
5183
- /*gradio*/
5184
- e[10].autoscroll
5185
- )
5186
- },
5187
  { i18n: (
5188
  /*gradio*/
5189
- e[10].i18n
5190
  ) },
5191
  /*loading_status*/
5192
- e[9]
5193
  ];
5194
  let i = {};
5195
  for (let s = 0; s < r.length; s += 1)
@@ -5203,23 +5201,21 @@ function hn(e) {
5203
  },
5204
  p(s, l) {
5205
  const o = l & /*gradio, loading_status*/
5206
- 1536 ? Ml(r, [
5207
  l & /*gradio*/
5208
- 1024 && {
5209
- autoscroll: (
5210
- /*gradio*/
5211
- s[10].autoscroll
5212
- )
5213
- },
5214
  l & /*gradio*/
5215
- 1024 && { i18n: (
5216
  /*gradio*/
5217
- s[10].i18n
5218
  ) },
5219
  l & /*loading_status*/
5220
- 512 && Ol(
5221
  /*loading_status*/
5222
- s[9]
5223
  )
5224
  ]) : {};
5225
  t.$set(o);
@@ -5228,7 +5224,7 @@ function hn(e) {
5228
  n || (D(t.$$.fragment, s), n = !0);
5229
  },
5230
  o(s) {
5231
- F(t.$$.fragment, s), n = !1;
5232
  },
5233
  d(s) {
5234
  Be(t, s);
@@ -5241,7 +5237,7 @@ function Dl(e) {
5241
  props: {
5242
  unpadded_box: !0,
5243
  size: "large",
5244
- $$slots: { default: [Gl] },
5245
  $$scope: { ctx: e }
5246
  }
5247
  }), {
@@ -5260,50 +5256,42 @@ function Dl(e) {
5260
  n || (D(t.$$.fragment, r), n = !0);
5261
  },
5262
  o(r) {
5263
- F(t.$$.fragment, r), n = !1;
5264
  },
5265
  d(r) {
5266
  Be(t, r);
5267
  }
5268
  };
5269
  }
5270
- function kl(e) {
5271
- let t, n, r;
5272
  return {
5273
  c() {
5274
  t = Cl("iframe"), fn(t.src, n = /*new_value*/
5275
- e[11].data) || ee(t, "src", n), ee(
5276
- t,
5277
- "title",
5278
- /*label*/
5279
- e[0]
5280
- ), ee(t, "height", r = /*height*/
5281
- e[1] + "px"), ee(t, "class", "svelte-1orump4");
5282
  },
5283
- m(i, s) {
5284
- Re(i, t, s);
5285
  },
5286
- p(i, s) {
5287
- s & /*new_value*/
5288
- 2048 && !fn(t.src, n = /*new_value*/
5289
- i[11].data) && ee(t, "src", n), s & /*label*/
5290
- 1 && ee(
5291
- t,
5292
- "title",
5293
- /*label*/
5294
- i[0]
5295
- ), s & /*height*/
5296
- 2 && r !== (r = /*height*/
5297
- i[1] + "px") && ee(t, "height", r);
5298
  },
5299
  i: an,
5300
  o: an,
5301
- d(i) {
5302
- i && Me(t);
5303
  }
5304
  };
5305
  }
5306
- function Gl(e) {
5307
  let t, n;
5308
  return t = new dn({}), {
5309
  c() {
@@ -5316,17 +5304,17 @@ function Gl(e) {
5316
  n || (D(t.$$.fragment, r), n = !0);
5317
  },
5318
  o(r) {
5319
- F(t.$$.fragment, r), n = !1;
5320
  },
5321
  d(r) {
5322
  Be(t, r);
5323
  }
5324
  };
5325
  }
5326
- function Fl(e) {
5327
  let t, n, r, i, s, l, o, a = (
5328
  /*loading_status*/
5329
- e[9] && hn(e)
5330
  );
5331
  n = new Sr({
5332
  props: {
@@ -5334,15 +5322,15 @@ function Fl(e) {
5334
  Icon: dn,
5335
  label: (
5336
  /*label*/
5337
- e[0] || "Folium Map"
5338
  )
5339
  }
5340
  });
5341
- const u = [kl, Dl], f = [];
5342
  function c(h, _) {
5343
  return (
5344
  /*value*/
5345
- h[5] ? 0 : 1
5346
  );
5347
  }
5348
  return i = c(e), s = f[i] = u[i](e), {
@@ -5354,16 +5342,16 @@ function Fl(e) {
5354
  },
5355
  p(h, _) {
5356
  /*loading_status*/
5357
- h[9] ? a ? (a.p(h, _), _ & /*loading_status*/
5358
- 512 && D(a, 1)) : (a = hn(h), a.c(), D(a, 1), a.m(t.parentNode, t)) : a && (on(), F(a, 1, 1, () => {
5359
  a = null;
5360
  }), ln());
5361
  const d = {};
5362
  _ & /*label*/
5363
- 1 && (d.label = /*label*/
5364
- h[0] || "Folium Map"), n.$set(d);
5365
  let E = i;
5366
- i = c(h), i === E ? f[i].p(h, _) : (on(), F(f[E], 1, 1, () => {
5367
  f[E] = null;
5368
  }), ln(), s = f[i], s ? s.p(h, _) : (s = f[i] = u[i](h), s.c()), D(s, 1), s.m(l.parentNode, l));
5369
  },
@@ -5371,7 +5359,7 @@ function Fl(e) {
5371
  o || (D(a), D(n.$$.fragment, h), D(s), o = !0);
5372
  },
5373
  o(h) {
5374
- F(a), F(n.$$.fragment, h), F(s), o = !1;
5375
  },
5376
  d(h) {
5377
  h && (Me(t), Me(r), Me(l)), a && a.d(h), Be(n, h), f[i].d(h);
@@ -5384,29 +5372,29 @@ function Vl(e) {
5384
  props: {
5385
  visible: (
5386
  /*visible*/
5387
- e[4]
5388
  ),
5389
  elem_id: (
5390
  /*elem_id*/
5391
- e[2]
5392
  ),
5393
  elem_classes: (
5394
  /*elem_classes*/
5395
- e[3]
5396
  ),
5397
  container: (
5398
  /*container*/
5399
- e[6]
5400
  ),
5401
  scale: (
5402
  /*scale*/
5403
- e[7]
5404
  ),
5405
  min_width: (
5406
  /*min_width*/
5407
- e[8]
5408
  ),
5409
- $$slots: { default: [Fl] },
5410
  $$scope: { ctx: e }
5411
  }
5412
  }), {
@@ -5419,25 +5407,25 @@ function Vl(e) {
5419
  p(r, [i]) {
5420
  const s = {};
5421
  i & /*visible*/
5422
- 16 && (s.visible = /*visible*/
5423
- r[4]), i & /*elem_id*/
5424
- 4 && (s.elem_id = /*elem_id*/
5425
- r[2]), i & /*elem_classes*/
5426
- 8 && (s.elem_classes = /*elem_classes*/
5427
- r[3]), i & /*container*/
5428
- 64 && (s.container = /*container*/
5429
- r[6]), i & /*scale*/
5430
- 128 && (s.scale = /*scale*/
5431
- r[7]), i & /*min_width*/
5432
- 256 && (s.min_width = /*min_width*/
5433
- r[8]), i & /*$$scope, new_value, label, height, value, gradio, loading_status*/
5434
- 36387 && (s.$$scope = { dirty: i, ctx: r }), t.$set(s);
5435
  },
5436
  i(r) {
5437
  n || (D(t.$$.fragment, r), n = !0);
5438
  },
5439
  o(r) {
5440
- F(t.$$.fragment, r), n = !1;
5441
  },
5442
  d(r) {
5443
  Be(t, r);
@@ -5448,31 +5436,31 @@ function cn(e, t) {
5448
  return e ?? t();
5449
  }
5450
  function jl(e, t, n) {
5451
- let { elem_id: r = "" } = t, { elem_classes: i = [] } = t, { visible: s = !0 } = t, { value: l } = t, { label: o } = t, { container: a = !0 } = t, { scale: u = null } = t, { min_width: f = void 0 } = t, { loading_status: c } = t, { root: h } = t, { root_url: _ } = t, { height: d = null } = t, { gradio: E } = t, w;
5452
  async function N() {
5453
  E.dispatch("change");
5454
  }
5455
  return e.$$set = (b) => {
5456
- "elem_id" in b && n(2, r = b.elem_id), "elem_classes" in b && n(3, i = b.elem_classes), "visible" in b && n(4, s = b.visible), "value" in b && n(5, l = b.value), "label" in b && n(0, o = b.label), "container" in b && n(6, a = b.container), "scale" in b && n(7, u = b.scale), "min_width" in b && n(8, f = b.min_width), "loading_status" in b && n(9, c = b.loading_status), "root" in b && n(12, h = b.root), "root_url" in b && n(13, _ = b.root_url), "height" in b && n(1, d = b.height), "gradio" in b && n(10, E = b.gradio);
5457
  }, e.$$.update = () => {
5458
  e.$$.dirty & /*label*/
5459
- 1 && n(0, o = cn(o, () => "Folium Map")), e.$$.dirty & /*height*/
5460
- 2 && n(1, d = cn(d, () => 500)), e.$$.dirty & /*value, root, root_url*/
5461
- 12320 && n(11, w = { ...zn(l, h, _) }), e.$$.dirty & /*new_value*/
5462
- 2048 && N();
5463
  }, [
5464
- o,
5465
  d,
5466
- r,
5467
  i,
5468
  s,
5469
  l,
 
5470
  a,
5471
  u,
5472
  f,
5473
  c,
5474
  E,
5475
  w,
 
5476
  h,
5477
  _
5478
  ];
@@ -5480,19 +5468,18 @@ function jl(e, t, n) {
5480
  class Xl extends Nl {
5481
  constructor(t) {
5482
  super(), Rl(this, t, jl, Vl, Ul, {
5483
- elem_id: 2,
5484
- elem_classes: 3,
5485
- visible: 4,
5486
- value: 5,
5487
- label: 0,
5488
- container: 6,
5489
- scale: 7,
5490
- min_width: 8,
5491
- loading_status: 9,
5492
  root: 12,
5493
  root_url: 13,
5494
- height: 1,
5495
- gradio: 10
5496
  });
5497
  }
5498
  }
 
220
  }
221
  function fr(e, t, n) {
222
  let { $$slots: r = {}, $$scope: i } = t, { height: s = void 0 } = t, { width: l = void 0 } = t, { elem_id: o = "" } = t, { elem_classes: a = [] } = t, { variant: u = "solid" } = t, { border_mode: f = "base" } = t, { padding: c = !0 } = t, { type: h = "normal" } = t, { test_id: _ = void 0 } = t, { explicit_call: d = !1 } = t, { container: E = !0 } = t, { visible: w = !0 } = t, { allow_overflow: N = !0 } = t, { scale: b = null } = t, { min_width: m = 0 } = t, T = h === "fieldset" ? "fieldset" : "div";
223
+ return e.$$set = (p) => {
224
+ "height" in p && n(0, s = p.height), "width" in p && n(1, l = p.width), "elem_id" in p && n(2, o = p.elem_id), "elem_classes" in p && n(3, a = p.elem_classes), "variant" in p && n(4, u = p.variant), "border_mode" in p && n(5, f = p.border_mode), "padding" in p && n(6, c = p.padding), "type" in p && n(15, h = p.type), "test_id" in p && n(7, _ = p.test_id), "explicit_call" in p && n(8, d = p.explicit_call), "container" in p && n(9, E = p.container), "visible" in p && n(10, w = p.visible), "allow_overflow" in p && n(11, N = p.allow_overflow), "scale" in p && n(12, b = p.scale), "min_width" in p && n(13, m = p.min_width), "$$scope" in p && n(16, i = p.$$scope);
225
  }, [
226
  s,
227
  l,
 
273
  detach: dr,
274
  element: wt,
275
  init: br,
276
+ insert: pr,
277
+ mount_component: gr,
278
  safe_not_equal: vr,
279
  set_data: yr,
280
  space: Er,
 
306
  );
307
  },
308
  m(o, a) {
309
+ pr(o, t, a), qe(t, n), gr(r, n, null), qe(t, i), qe(t, s), l = !0;
310
  },
311
  p(o, [a]) {
312
  (!l || a & /*label*/
 
375
  safe_not_equal: Ur,
376
  toggle_class: W,
377
  transition_in: Dr,
378
+ transition_out: Fr,
379
+ update_slot_base: kr
380
  } = window.__gradio__svelte__internal;
381
+ function Gr(e) {
382
  let t, n, r;
383
  const i = (
384
  /*#slots*/
 
419
  },
420
  p(l, [o]) {
421
  s && s.p && (!r || o & /*$$scope*/
422
+ 16) && kr(
423
  s,
424
  i,
425
  l,
 
466
  r || (Dr(s, l), r = !0);
467
  },
468
  o(l) {
469
+ Fr(s, l), r = !1;
470
  },
471
  d(l) {
472
  l && Cr(t), s && s.d(l), e[6](null);
 
513
  }
514
  class Xr extends Ar {
515
  constructor(t) {
516
+ super(), Mr(this, t, jr, Gr, Ur, { size: 0, unpadded_box: 1 });
517
  }
518
  }
519
  const {
 
890
  let t;
891
  return bn(e, (n) => t = n)(), t;
892
  }
893
+ const pn = typeof window < "u";
894
+ let Ht = pn ? () => window.performance.now() : () => Date.now(), gn = pn ? (e) => requestAnimationFrame(e) : ne;
895
  const oe = /* @__PURE__ */ new Set();
896
  function vn(e) {
897
  oe.forEach((t) => {
898
  t.c(e) || (oe.delete(t), t.f());
899
+ }), oe.size !== 0 && gn(vn);
900
  }
901
  function ri(e) {
902
  let t;
903
+ return oe.size === 0 && gn(vn), {
904
  promise: new Promise((n) => {
905
  oe.add(t = { c: e, f: n });
906
  }),
 
1008
  opts: E,
1009
  settled: !0,
1010
  dt: (m - l) * 60 / 1e3
1011
+ }, p = tt(T, u, e, f);
1012
+ return l = m, u = e, n.set(e = p), T.settled && (o = null), !T.settled;
1013
  })), new Promise((m) => {
1014
  o.promise.then(() => {
1015
  b === a && m();
 
1078
  function bi(e, t) {
1079
  return yn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1080
  }
1081
+ function pi(e, t, n) {
1082
  var r = {};
1083
  return n.isMergeableObject(e) && At(e).forEach(function(i) {
1084
  r[i] = ye(e[i], n);
 
1089
  function ae(e, t, n) {
1090
  n = n || {}, n.arrayMerge = n.arrayMerge || _i, n.isMergeableObject = n.isMergeableObject || li, n.cloneUnlessOtherwiseSpecified = ye;
1091
  var r = Array.isArray(t), i = Array.isArray(e), s = r === i;
1092
+ return s ? r ? n.arrayMerge(e, t, n) : pi(e, t, n) : ye(t, n);
1093
  }
1094
  ae.all = function(t, n) {
1095
  if (!Array.isArray(t))
 
1098
  return ae(r, i, n);
1099
  }, {});
1100
  };
1101
+ var gi = ae, vi = gi;
1102
  const yi = /* @__PURE__ */ si(vi);
1103
  var nt = function(e, t) {
1104
  return nt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
 
1108
  Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
1109
  }, nt(e, t);
1110
  };
1111
+ function ke(e, t) {
1112
  if (typeof t != "function" && t !== null)
1113
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
1114
  nt(e, t);
 
2839
  function H(e, t) {
2840
  return { start: e, end: t };
2841
  }
2842
+ var Mi = !!String.prototype.startsWith, Ri = !!String.fromCodePoint, Ui = !!Object.fromEntries, Di = !!String.prototype.codePointAt, Fi = !!String.prototype.trimStart, ki = !!String.prototype.trimEnd, Gi = !!Number.isSafeInteger, Vi = Gi ? Number.isSafeInteger : function(e) {
2843
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2844
  }, it = !0;
2845
  try {
 
2896
  return i < 55296 || i > 56319 || n + 1 === r || (s = t.charCodeAt(n + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
2897
  }
2898
  }
2899
+ ), Xi = Fi ? (
2900
  // Native
2901
  function(t) {
2902
  return t.trimStart();
 
2906
  function(t) {
2907
  return t.replace(Li, "");
2908
  }
2909
+ ), qi = ki ? (
2910
  // Native
2911
  function(t) {
2912
  return t.trimEnd();
 
3189
  if (this.bumpSpace(), !this.bumpIf(","))
3190
  return this.error(x.EXPECT_SELECT_ARGUMENT_OPTIONS, H(m, A({}, m)));
3191
  this.bumpSpace();
3192
+ var T = this.parseIdentifierIfPossible(), p = 0;
3193
  if (o !== "select" && T.value === "offset") {
3194
  if (!this.bumpIf(":"))
3195
  return this.error(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, H(this.clonePosition(), this.clonePosition()));
 
3197
  var c = this.tryParseDecimalInteger(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, x.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3198
  if (c.err)
3199
  return c;
3200
+ this.bumpSpace(), T = this.parseIdentifierIfPossible(), p = c.val;
3201
  }
3202
  var j = this.tryParsePluralOrSelectOptions(t, o, n, T);
3203
  if (j.err)
 
3219
  type: P.plural,
3220
  value: r,
3221
  options: Ot(j.val),
3222
+ offset: p,
3223
  pluralType: o === "plural" ? "cardinal" : "ordinal",
3224
  location: X
3225
  },
 
3479
  (function(e) {
3480
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3481
  })(fe || (fe = {}));
3482
+ var Ge = (
3483
  /** @class */
3484
  function(e) {
3485
+ ke(t, e);
3486
  function t(n, r, i) {
3487
  var s = e.call(this, n) || this;
3488
  return s.code = r, s.originalMessage = i, s;
 
3494
  ), Rt = (
3495
  /** @class */
3496
  function(e) {
3497
+ ke(t, e);
3498
  function t(n, r, i, s) {
3499
  return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), fe.INVALID_VALUE, s) || this;
3500
  }
3501
  return t;
3502
+ }(Ge)
3503
  ), rs = (
3504
  /** @class */
3505
  function(e) {
3506
+ ke(t, e);
3507
  function t(n, r, i) {
3508
  return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), fe.INVALID_VALUE, i) || this;
3509
  }
3510
  return t;
3511
+ }(Ge)
3512
  ), is = (
3513
  /** @class */
3514
  function(e) {
3515
+ ke(t, e);
3516
  function t(n, r) {
3517
  return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), fe.MISSING_VALUE, r) || this;
3518
  }
3519
  return t;
3520
+ }(Ge)
3521
  ), C;
3522
  (function(e) {
3523
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
 
3594
  var d = f.children, E = f.value, w = i[E];
3595
  if (!ls(w))
3596
  throw new rs(E, "function", l);
3597
+ var N = Le(d, t, n, r, i, s), b = w(N.map(function(p) {
3598
+ return p.value;
3599
  }));
3600
+ Array.isArray(b) || (b = [b]), o.push.apply(o, b.map(function(p) {
3601
  return {
3602
+ type: typeof p == "string" ? C.literal : C.object,
3603
+ value: p
3604
  };
3605
  }));
3606
  }
 
3615
  var m = f.options["=".concat(h)];
3616
  if (!m) {
3617
  if (!Intl.PluralRules)
3618
+ throw new Ge(`Intl.PluralRules is not available in this environment.
3619
  Try polyfilling it using "@formatjs/intl-pluralrules"
3620
  `, fe.MISSING_INTL_API, l);
3621
  var T = n.getPluralRules(t, { type: f.pluralType }).select(h - (f.offset || 0));
 
3859
  );
3860
  xe.subscribe((e) => mt = e);
3861
  const Oe = {};
3862
+ function ps(e, t) {
3863
  Oe[e].delete(t), Oe[e].size === 0 && delete Oe[e];
3864
  }
3865
+ function Fn(e) {
3866
  return Oe[e];
3867
  }
3868
+ function gs(e) {
3869
  return Ve(e).map((t) => {
3870
+ const n = Fn(t);
3871
  return [t, n ? [...n] : []];
3872
  }).filter(([, t]) => t.length > 0);
3873
  }
 
3875
  return e == null ? !1 : Ve(e).some(
3876
  (t) => {
3877
  var n;
3878
+ return (n = Fn(t)) == null ? void 0 : n.size;
3879
  }
3880
  );
3881
  }
3882
  function vs(e, t) {
3883
  return Promise.all(
3884
+ t.map((r) => (ps(e, r), r().then((i) => i.default || i)))
3885
  ).then((r) => bs(e, ...r));
3886
  }
3887
  const ve = {};
3888
+ function kn(e) {
3889
  if (!ut(e))
3890
  return e in ve ? ve[e] : Promise.resolve();
3891
+ const t = gs(e);
3892
  return ve[e] = Promise.all(
3893
  t.map(
3894
  ([n, r]) => vs(n, r)
3895
  )
3896
  ).then(() => {
3897
  if (ut(e))
3898
+ return kn(e);
3899
  delete ve[e];
3900
  }), ve[e];
3901
  }
 
3950
  }, Ps = (e, t) => Ts(e, Hs(t));
3951
  let ft;
3952
  const Ue = we(null);
3953
+ function Ft(e) {
3954
  return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
3955
  }
3956
  function Ve(e, t = he().fallbackLocale) {
3957
+ const n = Ft(e);
3958
+ return t ? [.../* @__PURE__ */ new Set([...n, ...Ft(t)])] : n;
3959
  }
3960
  function re() {
3961
  return ft ?? void 0;
 
3970
  return typeof window < "u" && re() != null && t ? n = window.setTimeout(
3971
  () => $e.set(!0),
3972
  t
3973
+ ) : $e.set(!0), kn(e).then(() => {
3974
  Ue.set(e);
3975
  }).finally(() => {
3976
  clearTimeout(n), $e.set(!1);
 
3986
  return i in t ? t[i] : t[i] = e(r);
3987
  };
3988
  };
3989
+ var Is = Object.defineProperty, De = Object.getOwnPropertySymbols, Gn = Object.prototype.hasOwnProperty, Vn = Object.prototype.propertyIsEnumerable, kt = (e, t, n) => t in e ? Is(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, dt = (e, t) => {
3990
  for (var n in t || (t = {}))
3991
+ Gn.call(t, n) && kt(e, n, t[n]);
3992
  if (De)
3993
  for (var n of De(t))
3994
+ Vn.call(t, n) && kt(e, n, t[n]);
3995
  return e;
3996
  }, de = (e, t) => {
3997
  var n = {};
3998
  for (var r in e)
3999
+ Gn.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
4000
  if (e != null && De)
4001
  for (var r of De(e))
4002
  t.indexOf(r) < 0 && Vn.call(e, r) && (n[r] = e[r]);
 
4056
  (e, t = re()) => new fs(e, t, he().formats, {
4057
  ignoreTag: he().ignoreTag
4058
  })
4059
+ ), Fs = (e, t = {}) => {
4060
  var n, r, i, s;
4061
  let l = t;
4062
  typeof e == "object" && (l = e, e = l.id);
 
4088
  );
4089
  }
4090
  return c;
4091
+ }, ks = (e, t) => Us(t).format(e), Gs = (e, t) => Rs(t).format(e), Vs = (e, t) => Ms(t).format(e), js = (e, t = re()) => Un(e, t), Xs = me([Te, xe], () => Fs);
4092
+ me([Te], () => ks);
4093
  me([Te], () => Gs);
 
4094
  me([Te], () => Vs);
4095
  me([Te, xe], () => js);
4096
  ni(Xs);
 
4105
  SvelteComponent: qs,
4106
  append: R,
4107
  attr: B,
4108
+ component_subscribe: Gt,
4109
  detach: zs,
4110
  element: Zs,
4111
  init: Ws,
 
4159
  function $s(e, t, n) {
4160
  let r, i, { margin: s = !0 } = t;
4161
  const l = St([0, 0]);
4162
+ Gt(e, l, (h) => n(1, r = h));
4163
  const o = St([0, 0]);
4164
+ Gt(e, o, (h) => n(2, i = h));
4165
  let a;
4166
  async function u() {
4167
  await Promise.all([l.set([125, 140]), o.set([-125, -140])]), await Promise.all([l.set([-125, 140]), o.set([125, -140])]), await Promise.all([l.set([-125, 0]), o.set([125, -0])]), await Promise.all([l.set([125, 0]), o.set([-125, 0])]);
 
4184
  const {
4185
  SvelteComponent: tl,
4186
  append: te,
4187
+ attr: F,
4188
  binding_callbacks: Xt,
4189
  check_outros: jn,
4190
  create_component: nl,
 
4194
  detach: v,
4195
  element: V,
4196
  empty: be,
4197
+ ensure_array_like: Fe,
4198
  get_all_dirty_from_scope: sl,
4199
  get_slot_changes: ll,
4200
  group_outros: qn,
 
4205
  safe_not_equal: ul,
4206
  set_data: M,
4207
  set_style: J,
4208
+ space: k,
4209
  text: I,
4210
  toggle_class: O,
4211
  transition_in: ce,
 
4237
  );
4238
  return {
4239
  c() {
4240
+ t = V("span"), r = I(n), i = k(), o && o.c(), F(t, "class", "error svelte-14miwb5");
4241
  },
4242
  m(a, u) {
4243
  y(a, t, u), te(t, r), y(a, i, u), o && o.m(a, u), s = !0;
 
4288
  /*progress*/
4289
  m[7]
4290
  )
4291
+ return gl;
4292
  if (
4293
  /*queue_position*/
4294
  m[2] !== null && /*queue_size*/
4295
  m[3] !== void 0 && /*queue_position*/
4296
  m[2] >= 0
4297
  )
4298
+ return pl;
4299
  if (
4300
  /*queue_position*/
4301
  m[2] === 0
 
4321
  e[5] && sn(e);
4322
  return {
4323
  c() {
4324
+ f && f.c(), t = k(), n = V("div"), _ && _.c(), r = k(), d && d.c(), i = k(), l && l.c(), o = k(), b && b.c(), a = be(), F(n, "class", "progress-text svelte-14miwb5"), O(
4325
  n,
4326
  "meta-text-center",
4327
  /*variant*/
 
4354
  /*variant*/
4355
  m[8] === "default"
4356
  );
4357
+ let p = s;
4358
+ s = N(m), s === p ? ~s && w[s].p(m, T) : (l && (qn(), _e(w[p], 1, 1, () => {
4359
+ w[p] = null;
4360
  }), jn()), ~s ? (l = w[s], l ? l.p(m, T) : (l = w[s] = E[s](m), l.c()), ce(l, 1), l.m(o.parentNode, o)) : l = null), /*timer*/
4361
  m[5] ? b && (b.d(1), b = null) : b ? b.p(m, T) : (b = sn(m), b.c(), b.m(a.parentNode, a));
4362
  },
 
4376
  (e[17] || 0) * 100 - 100}%)`;
4377
  return {
4378
  c() {
4379
+ t = V("div"), F(t, "class", "eta-bar svelte-14miwb5"), J(t, "transform", n);
4380
  },
4381
  m(r, i) {
4382
  y(r, t, i);
 
4406
  }
4407
  };
4408
  }
4409
+ function pl(e) {
4410
  let t, n = (
4411
  /*queue_position*/
4412
  e[2] + 1 + ""
 
4436
  }
4437
  };
4438
  }
4439
+ function gl(e) {
4440
+ let t, n = Fe(
4441
  /*progress*/
4442
  e[7]
4443
  ), r = [];
 
4457
  p(i, s) {
4458
  if (s[0] & /*progress*/
4459
  128) {
4460
+ n = Fe(
4461
  /*progress*/
4462
  i[7]
4463
  );
 
4490
  let a = o(e), u = a(e);
4491
  return {
4492
  c() {
4493
+ u.c(), t = k(), r = I(n), i = I(" | "), l = I(s);
4494
  },
4495
  m(f, c) {
4496
  u.m(f, c), y(f, t, c), y(f, r, c), y(f, i, c), y(f, l, c);
 
4652
  );
4653
  return {
4654
  c() {
4655
+ t = V("div"), n = V("div"), o && o.c(), r = k(), i = V("div"), s = V("div"), F(n, "class", "progress-level-inner svelte-14miwb5"), F(s, "class", "progress-bar svelte-14miwb5"), J(s, "width", l), F(i, "class", "progress-bar-wrap svelte-14miwb5"), F(t, "class", "progress-level svelte-14miwb5");
4656
  },
4657
  m(a, u) {
4658
  y(a, t, u), te(t, n), o && o.m(n, null), te(t, r), te(t, i), te(i, s), e[30](s);
 
4671
  };
4672
  }
4673
  function Kt(e) {
4674
+ let t, n = Fe(
4675
  /*progress*/
4676
  e[7]
4677
  ), r = [];
 
4691
  p(i, s) {
4692
  if (s[0] & /*progress_level, progress*/
4693
  16512) {
4694
+ n = Fe(
4695
  /*progress*/
4696
  i[7]
4697
  );
 
4731
  );
4732
  return {
4733
  c() {
4734
+ s && s.c(), t = k(), l && l.c(), n = k(), o && o.c(), r = k(), a && a.c(), i = be();
4735
  },
4736
  m(u, f) {
4737
  s && s.m(u, f), y(u, t, f), l && l.m(u, f), y(u, n, f), o && o.m(u, f), y(u, r, f), a && a.m(u, f), y(u, i, f);
 
4866
  t = V("p"), n = I(
4867
  /*loading_text*/
4868
  e[9]
4869
+ ), F(t, "class", "loading svelte-14miwb5");
4870
  },
4871
  m(r, i) {
4872
  y(r, t, i), te(t, n);
 
4898
  }
4899
  return ~(n = a(e)) && (r = o[n] = l[n](e)), {
4900
  c() {
4901
+ t = V("div"), r && r.c(), F(t, "class", i = "wrap " + /*variant*/
4902
  e[8] + " " + /*show_progress*/
4903
  e[6] + " svelte-14miwb5"), O(t, "hide", !/*status*/
4904
  e[4] || /*status*/
 
4944
  }), jn()), ~n ? (r = o[n], r ? r.p(u, f) : (r = o[n] = l[n](u), r.c()), ce(r, 1), r.m(t, null)) : r = null), (!s || f[0] & /*variant, show_progress*/
4945
  320 && i !== (i = "wrap " + /*variant*/
4946
  u[8] + " " + /*show_progress*/
4947
+ u[6] + " svelte-14miwb5")) && F(t, "class", i), (!s || f[0] & /*variant, show_progress, status, show_progress*/
4948
  336) && O(t, "hide", !/*status*/
4949
  u[4] || /*status*/
4950
  u[4] === "complete" || /*show_progress*/
 
5013
  }
5014
  }
5015
  function Bl(e, t, n) {
5016
+ let r, { $$slots: i = {}, $$scope: s } = t, { i18n: l } = t, { eta: o = null } = t, { queue: a = !1 } = t, { queue_position: u } = t, { queue_size: f } = t, { status: c } = t, { scroll_to_output: h = !1 } = t, { timer: _ = !0 } = t, { show_progress: d = "full" } = t, { message: E = null } = t, { progress: w = null } = t, { variant: N = "default" } = t, { loading_text: b = "Loading..." } = t, { absolute: m = !0 } = t, { translucent: T = !1 } = t, { border: p = !1 } = t, { autoscroll: j } = t, X, pe = !1, Ae = 0, Y = 0, Xe = null, bt = 0, K = null, ge, q = null, pt = !0;
5017
  const Zn = () => {
5018
+ n(25, Ae = performance.now()), n(26, Y = 0), pe = !0, gt();
5019
  };
5020
+ function gt() {
5021
  requestAnimationFrame(() => {
5022
+ n(26, Y = (performance.now() - Ae) / 1e3), pe && gt();
5023
  });
5024
  }
5025
  function vt() {
5026
+ n(26, Y = 0), pe && (pe = !1);
5027
  }
5028
  cl(() => {
5029
+ pe && vt();
5030
  });
5031
  let yt = null;
5032
+ function Wn(g) {
5033
+ Xt[g ? "unshift" : "push"](() => {
5034
+ q = g, n(16, q), n(7, w), n(14, K), n(15, ge);
5035
  });
5036
  }
5037
+ function Qn(g) {
5038
+ Xt[g ? "unshift" : "push"](() => {
5039
+ X = g, n(13, X);
5040
  });
5041
  }
5042
+ return e.$$set = (g) => {
5043
+ "i18n" in g && n(1, l = g.i18n), "eta" in g && n(0, o = g.eta), "queue" in g && n(21, a = g.queue), "queue_position" in g && n(2, u = g.queue_position), "queue_size" in g && n(3, f = g.queue_size), "status" in g && n(4, c = g.status), "scroll_to_output" in g && n(22, h = g.scroll_to_output), "timer" in g && n(5, _ = g.timer), "show_progress" in g && n(6, d = g.show_progress), "message" in g && n(23, E = g.message), "progress" in g && n(7, w = g.progress), "variant" in g && n(8, N = g.variant), "loading_text" in g && n(9, b = g.loading_text), "absolute" in g && n(10, m = g.absolute), "translucent" in g && n(11, T = g.translucent), "border" in g && n(12, p = g.border), "autoscroll" in g && n(24, j = g.autoscroll), "$$scope" in g && n(28, s = g.$$scope);
5044
  }, e.$$.update = () => {
5045
  e.$$.dirty[0] & /*eta, old_eta, queue, timer_start*/
5046
  169869313 && (o === null ? n(0, o = Xe) : a && n(0, o = (performance.now() - Ae) / 1e3 + o), o != null && (n(19, yt = o.toFixed(1)), n(27, Xe = o))), e.$$.dirty[0] & /*eta, timer_diff*/
5047
  67108865 && n(17, bt = o === null || o <= 0 || !Y ? null : Math.min(Y / o, 1)), e.$$.dirty[0] & /*progress*/
5048
+ 128 && w != null && n(18, pt = !1), e.$$.dirty[0] & /*progress, progress_level, progress_bar, last_progress_level*/
5049
+ 114816 && (w != null ? n(14, K = w.map((g) => {
5050
+ if (g.index != null && g.length != null)
5051
+ return g.index / g.length;
5052
+ if (g.progress != null)
5053
+ return g.progress;
5054
+ })) : n(14, K = null), K ? (n(15, ge = K[K.length - 1]), q && (ge === 0 ? n(16, q.style.transition = "0", q) : n(16, q.style.transition = "150ms", q))) : n(15, ge = void 0)), e.$$.dirty[0] & /*status*/
5055
  16 && (c === "pending" ? Zn() : vt()), e.$$.dirty[0] & /*el, scroll_to_output, status, autoscroll*/
5056
  20979728 && X && h && (c === "pending" || c === "complete") && Hl(X, j), e.$$.dirty[0] & /*status, message*/
5057
  8388624, e.$$.dirty[0] & /*timer_diff*/
 
5069
  b,
5070
  m,
5071
  T,
5072
+ p,
5073
  X,
5074
  K,
5075
+ ge,
5076
  q,
5077
  bt,
5078
+ pt,
5079
  yt,
5080
  r,
5081
  a,
 
5173
  space: un,
5174
  src_url_equal: fn,
5175
  transition_in: D,
5176
+ transition_out: G
5177
  } = window.__gradio__svelte__internal;
5178
  function hn(e) {
5179
  let t, n;
5180
  const r = [
5181
+ { autoscroll: (
5182
+ /*gradio*/
5183
+ e[9].autoscroll
5184
+ ) },
 
 
5185
  { i18n: (
5186
  /*gradio*/
5187
+ e[9].i18n
5188
  ) },
5189
  /*loading_status*/
5190
+ e[8]
5191
  ];
5192
  let i = {};
5193
  for (let s = 0; s < r.length; s += 1)
 
5201
  },
5202
  p(s, l) {
5203
  const o = l & /*gradio, loading_status*/
5204
+ 768 ? Ml(r, [
5205
  l & /*gradio*/
5206
+ 512 && { autoscroll: (
5207
+ /*gradio*/
5208
+ s[9].autoscroll
5209
+ ) },
 
 
5210
  l & /*gradio*/
5211
+ 512 && { i18n: (
5212
  /*gradio*/
5213
+ s[9].i18n
5214
  ) },
5215
  l & /*loading_status*/
5216
+ 256 && Ol(
5217
  /*loading_status*/
5218
+ s[8]
5219
  )
5220
  ]) : {};
5221
  t.$set(o);
 
5224
  n || (D(t.$$.fragment, s), n = !0);
5225
  },
5226
  o(s) {
5227
+ G(t.$$.fragment, s), n = !1;
5228
  },
5229
  d(s) {
5230
  Be(t, s);
 
5237
  props: {
5238
  unpadded_box: !0,
5239
  size: "large",
5240
+ $$slots: { default: [kl] },
5241
  $$scope: { ctx: e }
5242
  }
5243
  }), {
 
5256
  n || (D(t.$$.fragment, r), n = !0);
5257
  },
5258
  o(r) {
5259
+ G(t.$$.fragment, r), n = !1;
5260
  },
5261
  d(r) {
5262
  Be(t, r);
5263
  }
5264
  };
5265
  }
5266
+ function Fl(e) {
5267
+ let t, n, r, i;
5268
  return {
5269
  c() {
5270
  t = Cl("iframe"), fn(t.src, n = /*new_value*/
5271
+ e[10].data) || ee(t, "src", n), ee(t, "title", r = /*label*/
5272
+ e[11] ?? "Folium Map"), ee(t, "height", i = /*height*/
5273
+ e[0] + "px"), ee(t, "class", "svelte-1orump4");
 
 
 
 
5274
  },
5275
+ m(s, l) {
5276
+ Re(s, t, l);
5277
  },
5278
+ p(s, l) {
5279
+ l & /*new_value*/
5280
+ 1024 && !fn(t.src, n = /*new_value*/
5281
+ s[10].data) && ee(t, "src", n), l & /*label*/
5282
+ 2048 && r !== (r = /*label*/
5283
+ s[11] ?? "Folium Map") && ee(t, "title", r), l & /*height*/
5284
+ 1 && i !== (i = /*height*/
5285
+ s[0] + "px") && ee(t, "height", i);
 
 
 
 
5286
  },
5287
  i: an,
5288
  o: an,
5289
+ d(s) {
5290
+ s && Me(t);
5291
  }
5292
  };
5293
  }
5294
+ function kl(e) {
5295
  let t, n;
5296
  return t = new dn({}), {
5297
  c() {
 
5304
  n || (D(t.$$.fragment, r), n = !0);
5305
  },
5306
  o(r) {
5307
+ G(t.$$.fragment, r), n = !1;
5308
  },
5309
  d(r) {
5310
  Be(t, r);
5311
  }
5312
  };
5313
  }
5314
+ function Gl(e) {
5315
  let t, n, r, i, s, l, o, a = (
5316
  /*loading_status*/
5317
+ e[8] && hn(e)
5318
  );
5319
  n = new Sr({
5320
  props: {
 
5322
  Icon: dn,
5323
  label: (
5324
  /*label*/
5325
+ e[11] || "Folium Map"
5326
  )
5327
  }
5328
  });
5329
+ const u = [Fl, Dl], f = [];
5330
  function c(h, _) {
5331
  return (
5332
  /*value*/
5333
+ h[4] ? 0 : 1
5334
  );
5335
  }
5336
  return i = c(e), s = f[i] = u[i](e), {
 
5342
  },
5343
  p(h, _) {
5344
  /*loading_status*/
5345
+ h[8] ? a ? (a.p(h, _), _ & /*loading_status*/
5346
+ 256 && D(a, 1)) : (a = hn(h), a.c(), D(a, 1), a.m(t.parentNode, t)) : a && (on(), G(a, 1, 1, () => {
5347
  a = null;
5348
  }), ln());
5349
  const d = {};
5350
  _ & /*label*/
5351
+ 2048 && (d.label = /*label*/
5352
+ h[11] || "Folium Map"), n.$set(d);
5353
  let E = i;
5354
+ i = c(h), i === E ? f[i].p(h, _) : (on(), G(f[E], 1, 1, () => {
5355
  f[E] = null;
5356
  }), ln(), s = f[i], s ? s.p(h, _) : (s = f[i] = u[i](h), s.c()), D(s, 1), s.m(l.parentNode, l));
5357
  },
 
5359
  o || (D(a), D(n.$$.fragment, h), D(s), o = !0);
5360
  },
5361
  o(h) {
5362
+ G(a), G(n.$$.fragment, h), G(s), o = !1;
5363
  },
5364
  d(h) {
5365
  h && (Me(t), Me(r), Me(l)), a && a.d(h), Be(n, h), f[i].d(h);
 
5372
  props: {
5373
  visible: (
5374
  /*visible*/
5375
+ e[3]
5376
  ),
5377
  elem_id: (
5378
  /*elem_id*/
5379
+ e[1]
5380
  ),
5381
  elem_classes: (
5382
  /*elem_classes*/
5383
+ e[2]
5384
  ),
5385
  container: (
5386
  /*container*/
5387
+ e[5]
5388
  ),
5389
  scale: (
5390
  /*scale*/
5391
+ e[6]
5392
  ),
5393
  min_width: (
5394
  /*min_width*/
5395
+ e[7]
5396
  ),
5397
+ $$slots: { default: [Gl] },
5398
  $$scope: { ctx: e }
5399
  }
5400
  }), {
 
5407
  p(r, [i]) {
5408
  const s = {};
5409
  i & /*visible*/
5410
+ 8 && (s.visible = /*visible*/
5411
+ r[3]), i & /*elem_id*/
5412
+ 2 && (s.elem_id = /*elem_id*/
5413
+ r[1]), i & /*elem_classes*/
5414
+ 4 && (s.elem_classes = /*elem_classes*/
5415
+ r[2]), i & /*container*/
5416
+ 32 && (s.container = /*container*/
5417
+ r[5]), i & /*scale*/
5418
+ 64 && (s.scale = /*scale*/
5419
+ r[6]), i & /*min_width*/
5420
+ 128 && (s.min_width = /*min_width*/
5421
+ r[7]), i & /*$$scope, new_value, label, height, value, gradio, loading_status*/
5422
+ 36625 && (s.$$scope = { dirty: i, ctx: r }), t.$set(s);
5423
  },
5424
  i(r) {
5425
  n || (D(t.$$.fragment, r), n = !0);
5426
  },
5427
  o(r) {
5428
+ G(t.$$.fragment, r), n = !1;
5429
  },
5430
  d(r) {
5431
  Be(t, r);
 
5436
  return e ?? t();
5437
  }
5438
  function jl(e, t, n) {
5439
+ let r, { elem_id: i = "" } = t, { elem_classes: s = [] } = t, { visible: l = !0 } = t, { value: o } = t, { container: a = !0 } = t, { scale: u = null } = t, { min_width: f = void 0 } = t, { loading_status: c } = t, { root: h } = t, { root_url: _ } = t, { height: d = 500 } = t, { gradio: E } = t, w;
5440
  async function N() {
5441
  E.dispatch("change");
5442
  }
5443
  return e.$$set = (b) => {
5444
+ "elem_id" in b && n(1, i = b.elem_id), "elem_classes" in b && n(2, s = b.elem_classes), "visible" in b && n(3, l = b.visible), "value" in b && n(4, o = b.value), "container" in b && n(5, a = b.container), "scale" in b && n(6, u = b.scale), "min_width" in b && n(7, f = b.min_width), "loading_status" in b && n(8, c = b.loading_status), "root" in b && n(12, h = b.root), "root_url" in b && n(13, _ = b.root_url), "height" in b && n(0, d = b.height), "gradio" in b && n(9, E = b.gradio);
5445
  }, e.$$.update = () => {
5446
  e.$$.dirty & /*label*/
5447
+ 2048 && n(11, r = cn(r, () => "Folium Map")), e.$$.dirty & /*height*/
5448
+ 1 && n(0, d = cn(d, () => 500)), e.$$.dirty & /*value, root, root_url*/
5449
+ 12304 && n(10, w = { ...zn(o, h, _) }), e.$$.dirty & /*new_value*/
5450
+ 1024 && N();
5451
  }, [
 
5452
  d,
 
5453
  i,
5454
  s,
5455
  l,
5456
+ o,
5457
  a,
5458
  u,
5459
  f,
5460
  c,
5461
  E,
5462
  w,
5463
+ r,
5464
  h,
5465
  _
5466
  ];
 
5468
  class Xl extends Nl {
5469
  constructor(t) {
5470
  super(), Rl(this, t, jl, Vl, Ul, {
5471
+ elem_id: 1,
5472
+ elem_classes: 2,
5473
+ visible: 3,
5474
+ value: 4,
5475
+ container: 5,
5476
+ scale: 6,
5477
+ min_width: 7,
5478
+ loading_status: 8,
 
5479
  root: 12,
5480
  root_url: 13,
5481
+ height: 0,
5482
+ gradio: 9
5483
  });
5484
  }
5485
  }
src/frontend/Index.svelte CHANGED
@@ -13,14 +13,13 @@
13
  export let elem_classes: string[] = [];
14
  export let visible = true;
15
  export let value: FileData;
16
- export let label: string;
17
  export let container = true;
18
  export let scale: number | null = null;
19
  export let min_width: number | undefined = undefined;
20
  export let loading_status: LoadingStatus;
21
  export let root: string;
22
  export let root_url: string;
23
- export let height: number | null = null;
24
  export let gradio: Gradio<{
25
  change: never;
26
  }>;
@@ -49,7 +48,7 @@
49
  {/if}
50
  <BlockLabel show_label={true} Icon={PlotIcon} label={label || "Folium Map"} />
51
  {#if value}
52
- <iframe src={new_value.data} title={label} height="{height}px"></iframe>
53
  {:else}
54
  <Empty unpadded_box={true} size="large"><PlotIcon /></Empty>
55
  {/if}
 
13
  export let elem_classes: string[] = [];
14
  export let visible = true;
15
  export let value: FileData;
 
16
  export let container = true;
17
  export let scale: number | null = null;
18
  export let min_width: number | undefined = undefined;
19
  export let loading_status: LoadingStatus;
20
  export let root: string;
21
  export let root_url: string;
22
+ export let height: number = 500;
23
  export let gradio: Gradio<{
24
  change: never;
25
  }>;
 
48
  {/if}
49
  <BlockLabel show_label={true} Icon={PlotIcon} label={label || "Folium Map"} />
50
  {#if value}
51
+ <iframe src={new_value.data} title={label ?? "Folium Map"} height="{height}px"></iframe>
52
  {:else}
53
  <Empty unpadded_box={true} size="large"><PlotIcon /></Empty>
54
  {/if}
src/pyproject.toml CHANGED
@@ -8,19 +8,13 @@ build-backend = "hatchling.build"
8
 
9
  [project]
10
  name = "gradio_folium"
11
- version = "0.0.3"
12
- description = "Python library for easily interacting with trained machine learning models"
13
  readme = "README.md"
14
  license = "Apache-2.0"
15
  requires-python = ">=3.8"
16
  authors = [{ name = "YOUR NAME", email = "YOUREMAIL@domain.com" }]
17
- keywords = [
18
- "machine learning",
19
- "reproducibility",
20
- "visualization",
21
- "gradio",
22
- "gradio custom component",
23
- ]
24
  # Add dependencies here
25
  dependencies = ["gradio", "folium"]
26
  classifiers = [
@@ -42,7 +36,7 @@ classifiers = [
42
  dev = ["build", "twine"]
43
 
44
  [tool.hatch.build]
45
- artifacts = ["/backend/gradio_folium/templates", "*.pyi", "backend/gradio_folium/templates", "backend/gradio_folium/templates", "backend/gradio_folium/templates", "backend/gradio_folium/templates", "backend/gradio_folium/templates", "backend/gradio_folium/templates", "backend/gradio_folium/templates", "backend/gradio_folium/templates"]
46
 
47
  [tool.hatch.build.targets.wheel]
48
  packages = ["/backend/gradio_folium"]
 
8
 
9
  [project]
10
  name = "gradio_folium"
11
+ version = "0.0.4"
12
+ description = "Display Interactive Maps Created with Folium"
13
  readme = "README.md"
14
  license = "Apache-2.0"
15
  requires-python = ">=3.8"
16
  authors = [{ name = "YOUR NAME", email = "YOUREMAIL@domain.com" }]
17
+ keywords = ["maps", "geospatial", "folium", "gradio-custom-component"]
 
 
 
 
 
 
18
  # Add dependencies here
19
  dependencies = ["gradio", "folium"]
20
  classifiers = [
 
36
  dev = ["build", "twine"]
37
 
38
  [tool.hatch.build]
39
+ artifacts = ["/backend/gradio_folium/templates", "*.pyi", "backend/gradio_folium/templates", "backend/gradio_folium/templates", "backend/gradio_folium/templates", "backend/gradio_folium/templates", "backend/gradio_folium/templates", "backend/gradio_folium/templates", "backend/gradio_folium/templates", "backend/gradio_folium/templates", "backend/gradio_folium/templates"]
40
 
41
  [tool.hatch.build.targets.wheel]
42
  packages = ["/backend/gradio_folium"]