@konemono/nostr-share-component 0.4.3 → 0.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,12 +7,12 @@ var O = (t, e, r) => cr(t, typeof e != "symbol" ? e + "" : e, r), de = (t, e, r)
7
7
  var C = (t, e, r) => (de(t, e, "read from private field"), r ? r.call(t) : e.get(t)), Ut = (t, e, r) => e.has(t) ? he("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), Gt = (t, e, r, n) => (de(t, e, "write to private field"), n ? n.call(t, r) : e.set(t, r), r);
8
8
  const fr = "5";
9
9
  typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(fr);
10
- const vr = 1, hr = 2, dr = 16, _r = 8, pr = 1, gr = 2, xe = "[", te = "[!", ee = "]", ht = {}, br = Symbol(), $r = ["touchstart", "touchmove"];
10
+ const vr = 1, hr = 2, dr = 16, _r = 8, pr = 1, gr = 2, ye = "[", te = "[!", ee = "]", ht = {}, br = Symbol(), $r = ["touchstart", "touchmove"];
11
11
  function mr(t) {
12
12
  return $r.includes(t);
13
13
  }
14
- const ye = !1;
15
- var we = Array.isArray, re = Array.from, St = Object.keys, Nt = Object.defineProperty, zt = Object.getOwnPropertyDescriptor, xr = Object.getOwnPropertyDescriptors, yr = Object.getPrototypeOf;
14
+ const xe = !1;
15
+ var we = Array.isArray, re = Array.from, St = Object.keys, Nt = Object.defineProperty, zt = Object.getOwnPropertyDescriptor, yr = Object.getOwnPropertyDescriptors, xr = Object.getPrototypeOf;
16
16
  function wr(t) {
17
17
  for (var e = 0; e < t.length; e++)
18
18
  t[e]();
@@ -64,15 +64,15 @@ function le(t, e = !1) {
64
64
  }
65
65
  // @__NO_SIDE_EFFECTS__
66
66
  function Mr(t) {
67
- return x !== null && x.f & D && (L === null ? Kr([t]) : L.push(t)), t;
67
+ return y !== null && y.f & D && (L === null ? Kr([t]) : L.push(t)), t;
68
68
  }
69
69
  function Ft(t, e) {
70
- return x !== null && Jr() && x.f & (D | ne) && // If the source was created locally within the current derived, then
70
+ return y !== null && Jr() && y.f & (D | ne) && // If the source was created locally within the current derived, then
71
71
  // we allow the mutation.
72
72
  (L === null || !L.includes(t)) && Ir(), Ne(t, e);
73
73
  }
74
74
  function Ne(t, e) {
75
- return t.equals(e) || (t.v = e, t.version = Ge(), ze(t, W), p !== null && p.f & N && !(p.f & F) && (E !== null && E.includes(t) ? (Y(p, W), Ht(p)) : G === null ? Wr([t]) : G.push(t))), e;
75
+ return t.equals(e) || (t.v = e, t.version = Ge(), ze(t, W), p !== null && p.f & N && !(p.f & F) && (E !== null && E.includes(t) ? (Y(p, W), Pt(p)) : G === null ? Wr([t]) : G.push(t))), e;
76
76
  }
77
77
  function ze(t, e) {
78
78
  var r = t.reactions;
@@ -83,7 +83,7 @@ function ze(t, e) {
83
83
  /** @type {Derived} */
84
84
  l,
85
85
  mt
86
- ) : Ht(
86
+ ) : Pt(
87
87
  /** @type {Effect} */
88
88
  l
89
89
  )));
@@ -93,7 +93,7 @@ function se(t) {
93
93
  console.warn("https://svelte.dev/e/hydration_mismatch");
94
94
  }
95
95
  let $ = !1;
96
- function H(t) {
96
+ function P(t) {
97
97
  $ = t;
98
98
  }
99
99
  let g;
@@ -102,7 +102,7 @@ function R(t) {
102
102
  throw se(), ht;
103
103
  return g = t;
104
104
  }
105
- function xt() {
105
+ function yt() {
106
106
  return R(
107
107
  /** @type {TemplateNode} */
108
108
  /* @__PURE__ */ B(g)
@@ -133,7 +133,7 @@ function Wt() {
133
133
  if (r === ee) {
134
134
  if (t === 0) return e;
135
135
  t -= 1;
136
- } else (r === xe || r === te) && (t += 1);
136
+ } else (r === ye || r === te) && (t += 1);
137
137
  }
138
138
  var n = (
139
139
  /** @type {TemplateNode} */
@@ -211,9 +211,9 @@ function Re(t) {
211
211
  function Ie(t) {
212
212
  var e = D | W;
213
213
  p === null ? e |= ut : p.f |= ke;
214
- var r = x !== null && x.f & D ? (
214
+ var r = y !== null && y.f & D ? (
215
215
  /** @type {Derived} */
216
- x
216
+ y
217
217
  ) : null;
218
218
  const n = {
219
219
  children: null,
@@ -301,30 +301,30 @@ function ft(t, e, r, n = !0) {
301
301
  if (r) {
302
302
  var i = nt;
303
303
  try {
304
- ge(!0), Pt(s), s.f |= Er;
304
+ ge(!0), Ht(s), s.f |= Er;
305
305
  } catch (v) {
306
306
  throw V(s), v;
307
307
  } finally {
308
308
  ge(i);
309
309
  }
310
- } else e !== null && Ht(s);
310
+ } else e !== null && Pt(s);
311
311
  var u = r && s.deps === null && s.first === null && s.nodes_start === null && s.teardown === null && (s.f & ke) === 0;
312
- if (!u && !o && n && (l !== null && jr(s, l), x !== null && x.f & D)) {
312
+ if (!u && !o && n && (l !== null && jr(s, l), y !== null && y.f & D)) {
313
313
  var c = (
314
314
  /** @type {Derived} */
315
- x
315
+ y
316
316
  );
317
317
  (c.children ?? (c.children = [])).push(s);
318
318
  }
319
319
  return s;
320
320
  }
321
- function Pr(t) {
321
+ function Hr(t) {
322
322
  const e = ft(at, t, !0);
323
323
  return () => {
324
324
  V(e);
325
325
  };
326
326
  }
327
- function Hr(t) {
327
+ function Pr(t) {
328
328
  const e = ft(at, t, !0);
329
329
  return (r = {}) => new Promise((n) => {
330
330
  r.outro ? It(e, () => {
@@ -350,7 +350,7 @@ function pt(t, e = !0) {
350
350
  function Fe(t) {
351
351
  var e = t.teardown;
352
352
  if (e !== null) {
353
- const r = x;
353
+ const r = y;
354
354
  it(null);
355
355
  try {
356
356
  e.call(null);
@@ -367,7 +367,7 @@ function je(t) {
367
367
  ie(e[r]);
368
368
  }
369
369
  }
370
- function Pe(t, e = !1) {
370
+ function He(t, e = !1) {
371
371
  var r = t.first;
372
372
  for (t.first = t.last = null; r !== null; ) {
373
373
  var n = r.next;
@@ -392,16 +392,16 @@ function V(t, e = !0) {
392
392
  }
393
393
  r = !0;
394
394
  }
395
- Pe(t, e && !r), je(t), $t(t, 0), Y(t, ct);
395
+ He(t, e && !r), je(t), $t(t, 0), Y(t, ct);
396
396
  var s = t.transitions;
397
397
  if (s !== null)
398
398
  for (const u of s)
399
399
  u.stop();
400
400
  Fe(t);
401
401
  var i = t.parent;
402
- i !== null && i.first !== null && He(t), t.next = t.prev = t.teardown = t.ctx = t.deps = t.fn = t.nodes_start = t.nodes_end = null;
402
+ i !== null && i.first !== null && Pe(t), t.next = t.prev = t.teardown = t.ctx = t.deps = t.fn = t.nodes_start = t.nodes_end = null;
403
403
  }
404
- function He(t) {
404
+ function Pe(t) {
405
405
  var e = t.parent, r = t.prev, n = t.next;
406
406
  r !== null && (r.next = n), n !== null && (n.prev = r), e !== null && (e.first === t && (e.first = n), e.last === t && (e.last = r));
407
407
  }
@@ -436,7 +436,7 @@ function Dt(t) {
436
436
  }
437
437
  function Ve(t, e) {
438
438
  if (t.f & M) {
439
- yt(t) && Pt(t), t.f ^= M;
439
+ xt(t) && Ht(t), t.f ^= M;
440
440
  for (var r = t.first; r !== null; ) {
441
441
  var n = r.next, o = (r.f & oe) !== 0 || (r.f & F) !== 0;
442
442
  Ve(r, o ? e : !1), r = n;
@@ -464,9 +464,9 @@ function ge(t) {
464
464
  nt = t;
465
465
  }
466
466
  let X = [], ot = 0;
467
- let x = null;
467
+ let y = null;
468
468
  function it(t) {
469
- x = t;
469
+ y = t;
470
470
  }
471
471
  let p = null;
472
472
  function J(t) {
@@ -487,7 +487,7 @@ function Ge() {
487
487
  function Jr() {
488
488
  return !Se;
489
489
  }
490
- function yt(t) {
490
+ function xt(t) {
491
491
  var s, i;
492
492
  var e = t.f;
493
493
  if (e & W)
@@ -503,7 +503,7 @@ function yt(t) {
503
503
  }
504
504
  for (o = 0; o < r.length; o++) {
505
505
  var l = r[o];
506
- if (yt(
506
+ if (xt(
507
507
  /** @type {Derived} */
508
508
  l
509
509
  ) && Le(
@@ -547,9 +547,9 @@ function jt(t, e, r, n) {
547
547
  }
548
548
  function Ke(t) {
549
549
  var h;
550
- var e = E, r = S, n = G, o = x, l = Z, s = L, i = I, u = t.f;
550
+ var e = E, r = S, n = G, o = y, l = Z, s = L, i = I, u = t.f;
551
551
  E = /** @type {null | Value[]} */
552
- null, S = 0, G = null, x = u & (F | at) ? null : t, Z = !nt && (u & ut) !== 0, L = null, I = t.ctx;
552
+ null, S = 0, G = null, y = u & (F | at) ? null : t, Z = !nt && (u & ut) !== 0, L = null, I = t.ctx;
553
553
  try {
554
554
  var c = (
555
555
  /** @type {Function} */
@@ -568,7 +568,7 @@ function Ke(t) {
568
568
  } else v !== null && S < v.length && ($t(t, S), v.length = S);
569
569
  return c;
570
570
  } finally {
571
- E = e, S = r, G = n, x = o, Z = l, L = s, I = i;
571
+ E = e, S = r, G = n, y = o, Z = l, L = s, I = i;
572
572
  }
573
573
  }
574
574
  function Qr(t, e) {
@@ -595,14 +595,14 @@ function $t(t, e) {
595
595
  for (var n = e; n < r.length; n++)
596
596
  Qr(t, r[n]);
597
597
  }
598
- function Pt(t) {
598
+ function Ht(t) {
599
599
  var e = t.f;
600
600
  if (!(e & ct)) {
601
601
  Y(t, N);
602
602
  var r = p, n = I;
603
603
  p = t;
604
604
  try {
605
- e & ne ? Br(t) : Pe(t), je(t), Fe(t);
605
+ e & ne ? Br(t) : He(t), je(t), Fe(t);
606
606
  var o = Ke(t);
607
607
  t.teardown = typeof o == "function" ? o : null, t.version = Ue;
608
608
  } catch (l) {
@@ -651,7 +651,7 @@ function tn(t) {
651
651
  var n = t[r];
652
652
  if (!(n.f & (ct | M)))
653
653
  try {
654
- yt(n) && (Pt(n), n.deps === null && n.first === null && n.nodes_start === null && (n.teardown === null ? He(n) : n.fn = null));
654
+ xt(n) && (Ht(n), n.deps === null && n.first === null && n.nodes_start === null && (n.teardown === null ? Pe(n) : n.fn = null));
655
655
  } catch (o) {
656
656
  jt(o, n, null, n.ctx);
657
657
  }
@@ -663,7 +663,7 @@ function en() {
663
663
  const t = X;
664
664
  X = [], Je(t), gt || (ot = 0, bt = null);
665
665
  }
666
- function Ht(t) {
666
+ function Pt(t) {
667
667
  Tt === Ye && (gt || (gt = !0, queueMicrotask(en))), bt = t;
668
668
  for (var e = t; e.parent !== null; ) {
669
669
  e = e.parent;
@@ -685,7 +685,7 @@ function Xe(t, e) {
685
685
  r.f ^= N;
686
686
  else
687
687
  try {
688
- yt(r) && Pt(r);
688
+ xt(r) && Ht(r);
689
689
  } catch (a) {
690
690
  jt(a, r, null, r.ctx);
691
691
  }
@@ -738,10 +738,10 @@ function A(t) {
738
738
  t
739
739
  ), n;
740
740
  }
741
- if (x !== null) {
741
+ if (y !== null) {
742
742
  L !== null && L.includes(t) && Rr();
743
- var o = x.deps;
744
- E === null && o !== null && o[S] === t ? S++ : E === null ? E = [t] : E.push(t), G !== null && p !== null && p.f & N && !(p.f & F) && G.includes(t) && (Y(p, W), Ht(p));
743
+ var o = y.deps;
744
+ E === null && o !== null && o[S] === t ? S++ : E === null ? E = [t] : E.push(t), G !== null && p !== null && p.f & N && !(p.f & F) && G.includes(t) && (Y(p, W), Pt(p));
745
745
  } else if (r && /** @type {Derived} */
746
746
  t.deps === null)
747
747
  for (var l = (
@@ -763,14 +763,14 @@ function A(t) {
763
763
  break;
764
764
  }
765
765
  return r && (l = /** @type {Derived} */
766
- t, yt(l) && Le(l)), t.v;
766
+ t, xt(l) && Le(l)), t.v;
767
767
  }
768
768
  function rn(t) {
769
- const e = x;
769
+ const e = y;
770
770
  try {
771
- return x = null, t();
771
+ return y = null, t();
772
772
  } finally {
773
- x = e;
773
+ y = e;
774
774
  }
775
775
  }
776
776
  const nn = ~(W | mt | N);
@@ -794,7 +794,7 @@ function Vt(t) {
794
794
  t !== void 0 && (e.x = t);
795
795
  const s = e.e;
796
796
  if (s !== null) {
797
- var r = p, n = x;
797
+ var r = p, n = y;
798
798
  e.e = null;
799
799
  try {
800
800
  for (var o = 0; o < s.length; o++) {
@@ -846,7 +846,7 @@ function Et(t) {
846
846
  return l || r;
847
847
  }
848
848
  });
849
- var v = x, a = p;
849
+ var v = y, a = p;
850
850
  it(null), J(null);
851
851
  try {
852
852
  for (var h, f = []; l !== null; ) {
@@ -943,7 +943,7 @@ function on(t, e, r = "svg") {
943
943
  }
944
944
  function Q(t, e) {
945
945
  if ($) {
946
- p.nodes_end = g, xt();
946
+ p.nodes_end = g, yt();
947
947
  return;
948
948
  }
949
949
  t !== null && t.before(
@@ -966,27 +966,27 @@ function sn(t, e) {
966
966
  /** @type {TemplateNode} */
967
967
  /* @__PURE__ */ q(r)
968
968
  ); l && (l.nodeType !== 8 || /** @type {Comment} */
969
- l.data !== xe); )
969
+ l.data !== ye); )
970
970
  l = /** @type {TemplateNode} */
971
971
  /* @__PURE__ */ B(l);
972
972
  if (!l)
973
973
  throw ht;
974
- H(!0), R(
974
+ P(!0), R(
975
975
  /** @type {Comment} */
976
976
  l
977
- ), xt();
977
+ ), yt();
978
978
  const s = rr(t, { ...e, anchor: l });
979
979
  if (g === null || g.nodeType !== 8 || /** @type {Comment} */
980
980
  g.data !== ee)
981
981
  throw se(), ht;
982
- return H(!1), /** @type {Exports} */
982
+ return P(!1), /** @type {Exports} */
983
983
  s;
984
984
  } catch (s) {
985
985
  if (s === ht)
986
- return e.recover === !1 && Ar(), Jt(), Re(r), H(!1), er(t, e);
986
+ return e.recover === !1 && Ar(), Jt(), Re(r), P(!1), er(t, e);
987
987
  throw s;
988
988
  } finally {
989
- H(n), R(o);
989
+ P(n), R(o);
990
990
  }
991
991
  }
992
992
  const et = /* @__PURE__ */ new Map();
@@ -1005,7 +1005,7 @@ function rr(t, { target: e, anchor: r, props: n = {}, events: o, context: l, int
1005
1005
  }
1006
1006
  };
1007
1007
  u(re(Ze)), Zt.add(u);
1008
- var c = void 0, v = Hr(() => {
1008
+ var c = void 0, v = Pr(() => {
1009
1009
  var a = r ?? e.appendChild(_t());
1010
1010
  return pt(() => {
1011
1011
  if (l) {
@@ -1042,7 +1042,7 @@ function an(t, e) {
1042
1042
  return r ? (Qt.delete(t), r(e)) : Promise.resolve();
1043
1043
  }
1044
1044
  function be(t, e, r = !1) {
1045
- $ && xt();
1045
+ $ && yt();
1046
1046
  var n = t, o = null, l = null, s = br, i = r ? oe : 0, u = !1;
1047
1047
  const c = (a, h = !0) => {
1048
1048
  u = !0, v(h, a);
@@ -1054,13 +1054,13 @@ function be(t, e, r = !1) {
1054
1054
  /** @type {Comment} */
1055
1055
  n.data === te
1056
1056
  );
1057
- !!s === d && (n = Wt(), R(n), H(!1), f = !0);
1057
+ !!s === d && (n = Wt(), R(n), P(!1), f = !0);
1058
1058
  }
1059
1059
  s ? (o ? Dt(o) : h && (o = pt(() => h(n))), l && It(l, () => {
1060
1060
  l = null;
1061
1061
  })) : (l ? Dt(l) : h && (l = pt(() => h(n))), o && It(o, () => {
1062
1062
  o = null;
1063
- })), f && H(!0);
1063
+ })), f && P(!0);
1064
1064
  };
1065
1065
  ue(() => {
1066
1066
  u = !1, e(c), u || v(null, null);
@@ -1103,7 +1103,7 @@ function fn(t, e, r, n, o, l = null) {
1103
1103
  /* @__PURE__ */ q(u)
1104
1104
  ) : u.appendChild(_t());
1105
1105
  }
1106
- $ && xt();
1106
+ $ && yt();
1107
1107
  var c = null, v = !1;
1108
1108
  ue(() => {
1109
1109
  var a = r(), h = we(a) ? a : a == null ? [] : re(a), f = h.length;
@@ -1116,14 +1116,14 @@ function fn(t, e, r, n, o, l = null) {
1116
1116
  /** @type {Comment} */
1117
1117
  s.data === te
1118
1118
  );
1119
- m !== (f === 0) && (s = Wt(), R(s), H(!1), d = !0);
1119
+ m !== (f === 0) && (s = Wt(), R(s), P(!1), d = !0);
1120
1120
  }
1121
1121
  if ($) {
1122
1122
  for (var k = null, w, _ = 0; _ < f; _++) {
1123
1123
  if (g.nodeType === 8 && /** @type {Comment} */
1124
1124
  g.data === ee) {
1125
1125
  s = /** @type {Comment} */
1126
- g, d = !0, H(!1);
1126
+ g, d = !0, P(!1);
1127
1127
  break;
1128
1128
  }
1129
1129
  var b = h[_], j = n(b, _);
@@ -1142,9 +1142,9 @@ function fn(t, e, r, n, o, l = null) {
1142
1142
  f > 0 && R(Wt());
1143
1143
  }
1144
1144
  if (!$) {
1145
- var y = (
1145
+ var x = (
1146
1146
  /** @type {Effect} */
1147
- x
1147
+ y
1148
1148
  );
1149
1149
  vn(
1150
1150
  h,
@@ -1152,13 +1152,13 @@ function fn(t, e, r, n, o, l = null) {
1152
1152
  s,
1153
1153
  o,
1154
1154
  e,
1155
- (y.f & M) !== 0,
1155
+ (x.f & M) !== 0,
1156
1156
  n
1157
1157
  );
1158
1158
  }
1159
1159
  l !== null && (f === 0 ? c ? Dt(c) : c = pt(() => l(s)) : c !== null && It(c, () => {
1160
1160
  c = null;
1161
- })), d && H(!0);
1161
+ })), d && P(!0);
1162
1162
  }), $ && (s = g);
1163
1163
  }
1164
1164
  function vn(t, e, r, n, o, l, s, i) {
@@ -1185,14 +1185,14 @@ function vn(t, e, r, n, o, l, s, i) {
1185
1185
  if (hn(_, k, b), _.e.f & M && Dt(_.e), _ !== a) {
1186
1186
  if (h !== void 0 && h.has(_)) {
1187
1187
  if (d.length < m.length) {
1188
- var y = m[0], T;
1189
- f = y.prev;
1188
+ var x = m[0], T;
1189
+ f = x.prev;
1190
1190
  var tt = d[0], Bt = d[d.length - 1];
1191
1191
  for (T = 0; T < d.length; T += 1)
1192
- $e(d[T], y, r);
1192
+ $e(d[T], x, r);
1193
1193
  for (T = 0; T < m.length; T += 1)
1194
1194
  h.delete(m[T]);
1195
- U(e, tt.prev, Bt.next), U(e, f, tt), U(e, Bt, y), a = y, f = Bt, b -= 1, d = [], m = [];
1195
+ U(e, tt.prev, Bt.next), U(e, f, tt), U(e, Bt, x), a = x, f = Bt, b -= 1, d = [], m = [];
1196
1196
  } else
1197
1197
  h.delete(_), $e(_, a, r), U(e, _.prev, _.next), U(e, _, f === null ? e.first : f.next), U(e, f, _), f = _;
1198
1198
  continue;
@@ -1258,7 +1258,7 @@ function U(t, e, r) {
1258
1258
  }
1259
1259
  function dn(t, e, r, n, o) {
1260
1260
  var i;
1261
- $ && xt();
1261
+ $ && yt();
1262
1262
  var l = (i = e.$$slots) == null ? void 0 : i[r], s = !1;
1263
1263
  l === !0 && (l = e.children, s = !0), l === void 0 ? o !== null && o(t) : l(t, s ? () => n : n);
1264
1264
  }
@@ -1291,10 +1291,10 @@ function _n(t) {
1291
1291
  if (e) return e;
1292
1292
  me.set(t.nodeName, e = []);
1293
1293
  for (var r, n = t, o = Element.prototype; o !== n; ) {
1294
- r = xr(n);
1294
+ r = yr(n);
1295
1295
  for (var l in r)
1296
1296
  r[l].set && e.push(l);
1297
- n = yr(n);
1297
+ n = xr(n);
1298
1298
  }
1299
1299
  return e;
1300
1300
  }
@@ -1312,7 +1312,7 @@ function st(t, e, r, n) {
1312
1312
  var o = !Se, l = (r & _r) !== 0, s = !1, i;
1313
1313
  i = /** @type {V} */
1314
1314
  t[e];
1315
- var u = Tr in t || Te in t, c = ((j = zt(t, e)) == null ? void 0 : j.set) ?? (u && l && e in t ? (y) => t[e] = y : void 0), v = (
1315
+ var u = Tr in t || Te in t, c = ((j = zt(t, e)) == null ? void 0 : j.set) ?? (u && l && e in t ? (x) => t[e] = x : void 0), v = (
1316
1316
  /** @type {V} */
1317
1317
  n
1318
1318
  ), a = !0, h = !1, f = () => (h = !0, a && (a = !1, v = /** @type {V} */
@@ -1320,27 +1320,27 @@ function st(t, e, r, n) {
1320
1320
  i === void 0 && n !== void 0 && (c && o && Or(), i = f(), c && c(i));
1321
1321
  var d;
1322
1322
  if (d = () => {
1323
- var y = (
1323
+ var x = (
1324
1324
  /** @type {V} */
1325
1325
  t[e]
1326
1326
  );
1327
- return y === void 0 ? f() : (a = !0, h = !1, y);
1327
+ return x === void 0 ? f() : (a = !0, h = !1, x);
1328
1328
  }, c) {
1329
1329
  var m = t.$$legacy;
1330
- return function(y, T) {
1331
- return arguments.length > 0 ? ((!T || m || s) && c(T ? d() : y), y) : d();
1330
+ return function(x, T) {
1331
+ return arguments.length > 0 ? ((!T || m || s) && c(T ? d() : x), x) : d();
1332
1332
  };
1333
1333
  }
1334
1334
  var k = !1, w = !1, _ = /* @__PURE__ */ le(i), b = pn(
1335
1335
  () => /* @__PURE__ */ Ie(() => {
1336
- var y = d(), T = A(_);
1337
- return k ? (k = !1, w = !0, T) : (w = !1, _.v = y);
1336
+ var x = d(), T = A(_);
1337
+ return k ? (k = !1, w = !0, T) : (w = !1, _.v = x);
1338
1338
  })
1339
1339
  );
1340
- return function(y, T) {
1340
+ return function(x, T) {
1341
1341
  if (arguments.length > 0) {
1342
- const tt = T ? A(b) : y;
1343
- return b.equals(tt) || (k = !0, Ft(_, tt), h && v !== void 0 && (v = tt), rn(() => A(b))), y;
1342
+ const tt = T ? A(b) : x;
1343
+ return b.equals(tt) || (k = !0, Ft(_, tt), h && v !== void 0 && (v = tt), rn(() => A(b))), x;
1344
1344
  }
1345
1345
  return A(b);
1346
1346
  };
@@ -1348,7 +1348,7 @@ function st(t, e, r, n) {
1348
1348
  function gn(t) {
1349
1349
  return new bn(t);
1350
1350
  }
1351
- var P, z;
1351
+ var H, z;
1352
1352
  class bn {
1353
1353
  /**
1354
1354
  * @param {ComponentConstructorOptions & {
@@ -1357,7 +1357,7 @@ class bn {
1357
1357
  */
1358
1358
  constructor(e) {
1359
1359
  /** @type {any} */
1360
- Ut(this, P);
1360
+ Ut(this, H);
1361
1361
  /** @type {Record<string, any>} */
1362
1362
  Ut(this, z);
1363
1363
  var l;
@@ -1386,7 +1386,7 @@ class bn {
1386
1386
  context: e.context,
1387
1387
  intro: e.intro ?? !1,
1388
1388
  recover: e.recover
1389
- })), (!((l = e == null ? void 0 : e.props) != null && l.$$host) || e.sync === !1) && K(), Gt(this, P, o.$$events);
1389
+ })), (!((l = e == null ? void 0 : e.props) != null && l.$$host) || e.sync === !1) && K(), Gt(this, H, o.$$events);
1390
1390
  for (const s of Object.keys(C(this, z)))
1391
1391
  s === "$set" || s === "$destroy" || s === "$on" || Nt(this, s, {
1392
1392
  get() {
@@ -1415,10 +1415,10 @@ class bn {
1415
1415
  * @returns {any}
1416
1416
  */
1417
1417
  $on(e, r) {
1418
- C(this, P)[e] = C(this, P)[e] || [];
1418
+ C(this, H)[e] = C(this, H)[e] || [];
1419
1419
  const n = (...o) => r.call(this, ...o);
1420
- return C(this, P)[e].push(n), () => {
1421
- C(this, P)[e] = C(this, P)[e].filter(
1420
+ return C(this, H)[e].push(n), () => {
1421
+ C(this, H)[e] = C(this, H)[e].filter(
1422
1422
  /** @param {any} fn */
1423
1423
  (o) => o !== n
1424
1424
  );
@@ -1428,7 +1428,7 @@ class bn {
1428
1428
  C(this, z).$destroy();
1429
1429
  }
1430
1430
  }
1431
- P = new WeakMap(), z = new WeakMap();
1431
+ H = new WeakMap(), z = new WeakMap();
1432
1432
  let or;
1433
1433
  typeof HTMLElement == "function" && (or = class extends HTMLElement {
1434
1434
  /**
@@ -1510,7 +1510,7 @@ typeof HTMLElement == "function" && (or = class extends HTMLElement {
1510
1510
  $$slots: r,
1511
1511
  $$host: this
1512
1512
  }
1513
- }), this.$$me = Pr(() => {
1513
+ }), this.$$me = Hr(() => {
1514
1514
  Vr(() => {
1515
1515
  var o;
1516
1516
  this.$$r = !0;
@@ -1638,6 +1638,11 @@ function ve(t, e, r, n, o, l) {
1638
1638
  s, s;
1639
1639
  }
1640
1640
  const mn = [
1641
+ {
1642
+ name: "eHagaki",
1643
+ url: "https://lokuyow.github.io/ehagaki/?content={text}",
1644
+ icon: "https://lokuyow.github.io/ehagaki/favicon.ico"
1645
+ },
1641
1646
  {
1642
1647
  name: "nokakoi",
1643
1648
  url: "https://nokakoi.com/app/?text={text}",
@@ -1659,7 +1664,7 @@ const mn = [
1659
1664
  icon: "https://lumilumi.app/favicon.ico"
1660
1665
  }
1661
1666
  ];
1662
- var xn = (t) => t.stopPropagation(), yn = (t, e, r) => e(A(r).url), wn = /* @__PURE__ */ wt('<button class="item svelte-1sy5hzc"><img> <span class="item-name"> </span></button>'), En = /* @__PURE__ */ wt('<div class="overlay svelte-1sy5hzc"><div class="inner svelte-1sy5hzc"><button class="close-button svelte-1sy5hzc" aria-label="Close">✖</button> <h2 class="title svelte-1sy5hzc">Select Share Client</h2> <div class="list svelte-1sy5hzc"></div> <div class="footer svelte-1sy5hzc"><a target="_blank" referrerpolicy="no-referrer" href="https://tsukemonogit.github.io/nostr-share-component/" class="svelte-1sy5hzc">nostr-share-component</a></div></div></div>');
1667
+ var yn = (t) => t.stopPropagation(), xn = (t, e, r) => e(A(r).url), wn = /* @__PURE__ */ wt('<button class="item svelte-1sy5hzc"><img> <span class="item-name"> </span></button>'), En = /* @__PURE__ */ wt('<div class="overlay svelte-1sy5hzc"><div class="inner svelte-1sy5hzc"><button class="close-button svelte-1sy5hzc" aria-label="Close">✖</button> <h2 class="title svelte-1sy5hzc">Select Share Client</h2> <div class="list svelte-1sy5hzc"></div> <div class="footer svelte-1sy5hzc"><a target="_blank" referrerpolicy="no-referrer" href="https://tsukemonogit.github.io/nostr-share-component/" class="svelte-1sy5hzc">nostr-share-component</a></div></div></div>');
1663
1668
  const kn = {
1664
1669
  hash: "svelte-1sy5hzc",
1665
1670
  code: `
@@ -1692,7 +1697,7 @@ ${window.location.href}`);
1692
1697
  (v = n()) == null || v.apply(this, c);
1693
1698
  };
1694
1699
  var s = vt(l);
1695
- s.__click = [xn];
1700
+ s.__click = [yn];
1696
1701
  var i = vt(s);
1697
1702
  i.__click = function(...c) {
1698
1703
  var v;
@@ -1701,7 +1706,7 @@ ${window.location.href}`);
1701
1706
  var u = Rt(i, 4);
1702
1707
  return fn(u, 21, () => mn, un, (c, v) => {
1703
1708
  var a = wn();
1704
- a.__click = [yn, o, v];
1709
+ a.__click = [xn, o, v];
1705
1710
  var h = vt(a);
1706
1711
  dt(h, "width", 24);
1707
1712
  var f = Rt(h, 2), d = vt(f, !0);
@@ -1,4 +1,4 @@
1
- var NostrShare=function(b){"use strict";var Rn=Object.defineProperty;var cr=b=>{throw TypeError(b)};var Dn=(b,w,k)=>w in b?Rn(b,w,{enumerable:!0,configurable:!0,writable:!0,value:k}):b[w]=k;var j=(b,w,k)=>Dn(b,typeof w!="symbol"?w+"":w,k),fr=(b,w,k)=>w.has(b)||cr("Cannot "+k);var z=(b,w,k)=>(fr(b,w,"read from private field"),k?k.call(b):w.get(b)),pe=(b,w,k)=>w.has(b)?cr("Cannot add the same private member more than once"):w instanceof WeakSet?w.add(b):w.set(b,k),ge=(b,w,k,St)=>(fr(b,w,"write to private field"),St?St.call(b,k):w.set(b,k),k);var G,D;const w="5";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(w);const k=1,St=2,vr=16,hr=8,dr=1,_r=2,be="[",Kt="[!",Wt="]",_t={},pr=Symbol(),gr=["touchstart","touchmove"];function br(t){return gr.includes(t)}const $e=!1;var me=Array.isArray,Jt=Array.from,Ct=Object.keys,Nt=Object.defineProperty,zt=Object.getOwnPropertyDescriptor,$r=Object.getOwnPropertyDescriptors,mr=Object.getPrototypeOf;function yr(t){for(var e=0;e<t.length;e++)t[e]()}const I=2,ye=4,At=8,Xt=16,F=32,nt=64,Zt=128,ot=256,Ot=512,A=1024,W=2048,pt=4096,P=8192,lt=16384,xr=32768,Qt=65536,wr=1<<19,xe=1<<20,Er=Symbol("$state"),we=Symbol("legacy props"),kr=Symbol("");function Ee(t){return t===this.v}function Tr(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Sr(t){return!Tr(t,this.v)}function Cr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Nr(){throw new Error("https://svelte.dev/e/hydration_failed")}function zr(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function Ar(){throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function Or(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let ke=!1;function Rt(t,e){var r={f:0,v:t,reactions:null,equals:Ee,version:0};return r}function Rr(t){return Dr(Rt(t))}function te(t,e=!1){const r=Rt(t);return e||(r.equals=Sr),r}function Dr(t){return y!==null&&y.f&I&&(H===null?Ur([t]):H.push(t)),t}function Dt(t,e){return y!==null&&Kr()&&y.f&(I|Xt)&&(H===null||!H.includes(t))&&Or(),Te(t,e)}function Te(t,e){return t.equals(e)||(t.v=e,t.version=Ge(),Se(t,W),p!==null&&p.f&A&&!(p.f&F)&&(T!==null&&T.includes(t)?(U(p,W),Vt(p)):X===null?Gr([t]):X.push(t))),e}function Se(t,e){var r=t.reactions;if(r!==null)for(var n=r.length,o=0;o<n;o++){var l=r[o],s=l.f;s&W||(U(l,e),s&(A|ot)&&(s&I?Se(l,pt):Vt(l)))}}function ee(t){console.warn("https://svelte.dev/e/hydration_mismatch")}let $=!1;function q(t){$=t}let g;function M(t){if(t===null)throw ee(),_t;return g=t}function gt(){return M(B(g))}function st(t){if($){if(B(g)!==null)throw ee(),_t;g=t}}function Ir(t=1){if($){for(var e=t,r=g;e--;)r=B(r);g=r}}function re(){for(var t=0,e=g;;){if(e.nodeType===8){var r=e.data;if(r===Wt){if(t===0)return e;t-=1}else(r===be||r===Kt)&&(t+=1)}var n=B(e);e.remove(),e=n}}var Ce,Ne,ze;function ne(){if(Ce===void 0){Ce=window;var t=Element.prototype,e=Node.prototype;Ne=zt(e,"firstChild").get,ze=zt(e,"nextSibling").get,t.__click=void 0,t.__className="",t.__attributes=null,t.__styles=null,t.__e=void 0,Text.prototype.__t=void 0}}function bt(t=""){return document.createTextNode(t)}function V(t){return Ne.call(t)}function B(t){return ze.call(t)}function $t(t,e){if(!$)return V(t);var r=V(g);if(r===null)r=g.appendChild(bt());else if(e&&r.nodeType!==3){var n=bt();return r==null||r.before(n),M(n),n}return M(r),r}function Ae(t,e){if(!$){var r=V(t);return r instanceof Comment&&r.data===""?B(r):r}return g}function It(t,e=1,r=!1){let n=$?g:t;for(var o;e--;)o=n,n=B(n);if(!$)return n;var l=n==null?void 0:n.nodeType;if(r&&l!==3){var s=bt();return n===null?o==null||o.after(s):n.before(s),M(s),s}return M(n),n}function Oe(t){t.textContent=""}function Re(t){var e=I|W;p===null?e|=ot:p.f|=xe;var r=y!==null&&y.f&I?y:null;const n={children:null,ctx:L,deps:null,equals:Ee,f:e,fn:t,reactions:null,v:null,version:0,parent:r??p};return r!==null&&(r.children??(r.children=[])).push(n),n}function De(t){var e=t.children;if(e!==null){t.children=null;for(var r=0;r<e.length;r+=1){var n=e[r];n.f&I?oe(n):Y(n)}}}function Mr(t){for(var e=t.parent;e!==null;){if(!(e.f&I))return e;e=e.parent}return null}function Ie(t){var e,r=p;J(Mr(t));try{De(t),e=Ke(t)}finally{J(r)}return e}function Me(t){var e=Ie(t),r=(et||t.f&ot)&&t.deps!==null?pt:A;U(t,r),t.equals(e)||(t.v=e,t.version=Ge())}function oe(t){De(t),Et(t,0),U(t,lt),t.v=t.children=t.deps=t.ctx=t.reactions=null}function Lr(t,e){var r=e.last;r===null?e.last=e.first=t:(r.next=t,t.prev=r,e.last=t)}function it(t,e,r,n=!0){var o=(t&nt)!==0,l=p,s={ctx:L,deps:null,deriveds:null,nodes_start:null,nodes_end:null,f:t|W,first:null,fn:e,last:null,next:null,parent:o?null:l,prev:null,teardown:null,transitions:null,version:0};if(r){var i=at;try{Ye(!0),qt(s),s.f|=xr}catch(v){throw Y(s),v}finally{Ye(i)}}else e!==null&&Vt(s);var u=r&&s.deps===null&&s.first===null&&s.nodes_start===null&&s.teardown===null&&(s.f&xe)===0;if(!u&&!o&&n&&(l!==null&&Lr(s,l),y!==null&&y.f&I)){var c=y;(c.children??(c.children=[])).push(s)}return s}function jr(t){const e=it(nt,t,!0);return()=>{Y(e)}}function Fr(t){const e=it(nt,t,!0);return(r={})=>new Promise(n=>{r.outro?Mt(e,()=>{Y(e),n(void 0)}):(Y(e),n(void 0))})}function Pr(t){return it(ye,t,!1)}function Hr(t){return it(At,t,!0)}function le(t){return se(t)}function se(t,e=0){return it(At|Xt|e,t,!0)}function mt(t,e=!0){return it(At|F,t,!0,e)}function Le(t){var e=t.teardown;if(e!==null){const r=y;ct(null);try{e.call(null)}finally{ct(r)}}}function je(t){var e=t.deriveds;if(e!==null){t.deriveds=null;for(var r=0;r<e.length;r+=1)oe(e[r])}}function Fe(t,e=!1){var r=t.first;for(t.first=t.last=null;r!==null;){var n=r.next;Y(r,e),r=n}}function qr(t){for(var e=t.first;e!==null;){var r=e.next;e.f&F||Y(e),e=r}}function Y(t,e=!0){var r=!1;if((e||t.f&wr)&&t.nodes_start!==null){for(var n=t.nodes_start,o=t.nodes_end;n!==null;){var l=n===o?null:B(n);n.remove(),n=l}r=!0}Fe(t,e&&!r),je(t),Et(t,0),U(t,lt);var s=t.transitions;if(s!==null)for(const u of s)u.stop();Le(t);var i=t.parent;i!==null&&i.first!==null&&Pe(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Pe(t){var e=t.parent,r=t.prev,n=t.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),e!==null&&(e.first===t&&(e.first=n),e.last===t&&(e.last=r))}function Mt(t,e){var r=[];ie(t,r,!0),He(r,()=>{Y(t),e&&e()})}function He(t,e){var r=t.length;if(r>0){var n=()=>--r||e();for(var o of t)o.out(n)}else e()}function ie(t,e,r){if(!(t.f&P)){if(t.f^=P,t.transitions!==null)for(const s of t.transitions)(s.is_global||r)&&e.push(s);for(var n=t.first;n!==null;){var o=n.next,l=(n.f&Qt)!==0||(n.f&F)!==0;ie(n,e,l?r:!1),n=o}}}function Lt(t){qe(t,!0)}function qe(t,e){if(t.f&P){wt(t)&&qt(t),t.f^=P;for(var r=t.first;r!==null;){var n=r.next,o=(r.f&Qt)!==0||(r.f&F)!==0;qe(r,o?e:!1),r=n}if(t.transitions!==null)for(const l of t.transitions)(l.is_global||e)&&l.in()}}let jt=!1,ae=[];function Ve(){jt=!1;const t=ae.slice();ae=[],yr(t)}function Vr(t){jt||(jt=!0,queueMicrotask(Ve)),ae.push(t)}function Br(){jt&&Ve()}const Be=0,Yr=1;let Ft=!1,Pt=Be,yt=!1,xt=null,at=!1;function Ye(t){at=t}let tt=[],ut=0,In=[],y=null;function ct(t){y=t}let p=null;function J(t){p=t}let H=null;function Ur(t){H=t}let T=null,O=0,X=null;function Gr(t){X=t}let Ue=1,et=!1,L=null;function Ge(){return++Ue}function Kr(){return!ke}function wt(t){var s,i;var e=t.f;if(e&W)return!0;if(e&pt){var r=t.deps,n=(e&ot)!==0;if(r!==null){var o;if(e&Ot){for(o=0;o<r.length;o++)((s=r[o]).reactions??(s.reactions=[])).push(t);t.f^=Ot}for(o=0;o<r.length;o++){var l=r[o];if(wt(l)&&Me(l),n&&p!==null&&!et&&!((i=l==null?void 0:l.reactions)!=null&&i.includes(t))&&(l.reactions??(l.reactions=[])).push(t),l.version>t.version)return!0}}(!n||p!==null&&!et)&&U(t,A)}return!1}function Wr(t,e){for(var r=e;r!==null;){if(r.f&Zt)try{r.fn(t);return}catch{r.f^=Zt}r=r.parent}throw Ft=!1,t}function Jr(t){return(t.f&lt)===0&&(t.parent===null||(t.parent.f&Zt)===0)}function Ht(t,e,r,n){if(Ft){if(r===null&&(Ft=!1),Jr(e))throw t;return}r!==null&&(Ft=!0);{Wr(t,e);return}}function Ke(t){var h;var e=T,r=O,n=X,o=y,l=et,s=H,i=L,u=t.f;T=null,O=0,X=null,y=u&(F|nt)?null:t,et=!at&&(u&ot)!==0,H=null,L=t.ctx;try{var c=(0,t.fn)(),v=t.deps;if(T!==null){var a;if(Et(t,O),v!==null&&O>0)for(v.length=O+T.length,a=0;a<T.length;a++)v[O+a]=T[a];else t.deps=v=T;if(!et)for(a=O;a<v.length;a++)((h=v[a]).reactions??(h.reactions=[])).push(t)}else v!==null&&O<v.length&&(Et(t,O),v.length=O);return c}finally{T=e,O=r,X=n,y=o,et=l,H=s,L=i}}function Xr(t,e){let r=e.reactions;if(r!==null){var n=r.indexOf(t);if(n!==-1){var o=r.length-1;o===0?r=e.reactions=null:(r[n]=r[o],r.pop())}}r===null&&e.f&I&&(T===null||!T.includes(e))&&(U(e,pt),e.f&(ot|Ot)||(e.f^=Ot),Et(e,0))}function Et(t,e){var r=t.deps;if(r!==null)for(var n=e;n<r.length;n++)Xr(t,r[n])}function qt(t){var e=t.f;if(!(e&lt)){U(t,A);var r=p,n=L;p=t;try{e&Xt?qr(t):Fe(t),je(t),Le(t);var o=Ke(t);t.teardown=typeof o=="function"?o:null,t.version=Ue}catch(l){Ht(l,t,r,n||t.ctx)}finally{p=r}}}function We(){if(ut>1e3){ut=0;try{Cr()}catch(t){if(xt!==null)Ht(t,xt,null);else throw t}}ut++}function Je(t){var e=t.length;if(e!==0){We();var r=at;at=!0;try{for(var n=0;n<e;n++){var o=t[n];o.f&A||(o.f^=A);var l=[];Xe(o,l),Zr(l)}}finally{at=r}}}function Zr(t){var e=t.length;if(e!==0)for(var r=0;r<e;r++){var n=t[r];if(!(n.f&(lt|P)))try{wt(n)&&(qt(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null?Pe(n):n.fn=null))}catch(o){Ht(o,n,null,n.ctx)}}}function Qr(){if(yt=!1,ut>1001)return;const t=tt;tt=[],Je(t),yt||(ut=0,xt=null)}function Vt(t){Pt===Be&&(yt||(yt=!0,queueMicrotask(Qr))),xt=t;for(var e=t;e.parent!==null;){e=e.parent;var r=e.f;if(r&(nt|F)){if(!(r&A))return;e.f^=A}}tt.push(e)}function Xe(t,e){var r=t.first,n=[];t:for(;r!==null;){var o=r.f,l=(o&F)!==0,s=l&&(o&A)!==0,i=r.next;if(!s&&!(o&P))if(o&At){if(l)r.f^=A;else try{wt(r)&&qt(r)}catch(a){Ht(a,r,null,r.ctx)}var u=r.first;if(u!==null){r=u;continue}}else o&ye&&n.push(r);if(i===null){let a=r.parent;for(;a!==null;){if(t===a)break t;var c=a.next;if(c!==null){r=c;continue t}a=a.parent}}r=i}for(var v=0;v<n.length;v++)u=n[v],e.push(u),Xe(u,e)}function Z(t){var e=Pt,r=tt;try{We();const o=[];Pt=Yr,tt=o,yt=!1,Je(r);var n=t==null?void 0:t();return Br(),(tt.length>0||o.length>0)&&Z(),ut=0,xt=null,n}finally{Pt=e,tt=r}}function R(t){var v;var e=t.f,r=(e&I)!==0;if(r&&e&lt){var n=Ie(t);return oe(t),n}if(y!==null){H!==null&&H.includes(t)&&Ar();var o=y.deps;T===null&&o!==null&&o[O]===t?O++:T===null?T=[t]:T.push(t),X!==null&&p!==null&&p.f&A&&!(p.f&F)&&X.includes(t)&&(U(p,W),Vt(p))}else if(r&&t.deps===null)for(var l=t,s=l.parent,i=l;s!==null;)if(s.f&I){var u=s;i=u,s=u.parent}else{var c=s;(v=c.deriveds)!=null&&v.includes(i)||(c.deriveds??(c.deriveds=[])).push(i);break}return r&&(l=t,wt(l)&&Me(l)),t.v}function tn(t){const e=y;try{return y=null,t()}finally{y=e}}const en=~(W|pt|A);function U(t,e){t.f=t.f&en|e}function Bt(t,e=!1,r){L={p:L,c:null,e:null,m:!1,s:t,x:null,l:null}}function Yt(t){const e=L;if(e!==null){t!==void 0&&(e.x=t);const s=e.e;if(s!==null){var r=p,n=y;e.e=null;try{for(var o=0;o<s.length;o++){var l=s[o];J(l.effect),ct(l.reaction),Pr(l.fn)}}finally{J(r),ct(n)}}L=e.p,e.m=!0}return t||{}}const Ze=new Set,ue=new Set;function Qe(t){for(var e=0;e<t.length;e++)Ze.add(t[e]);for(var r of ue)r(t)}function Ut(t){var _;var e=this,r=e.ownerDocument,n=t.type,o=((_=t.composedPath)==null?void 0:_.call(t))||[],l=o[0]||t.target,s=0,i=t.__root;if(i){var u=o.indexOf(i);if(u!==-1&&(e===document||e===window)){t.__root=e;return}var c=o.indexOf(e);if(c===-1)return;u<=c&&(s=u)}if(l=o[s]||t.target,l!==e){Nt(t,"currentTarget",{configurable:!0,get(){return l||r}});var v=y,a=p;ct(null),J(null);try{for(var h,f=[];l!==null;){var d=l.assignedSlot||l.parentNode||l.host||null;try{var x=l["__"+n];if(x!==void 0&&!l.disabled)if(me(x)){var[C,...S]=x;C.apply(l,[t,...S])}else x.call(l,t)}catch(m){h?f.push(m):h=m}if(t.cancelBubble||d===e||d===null)break;l=d}if(h){for(let m of f)queueMicrotask(()=>{throw m});throw h}}finally{t.__root=e,delete t.currentTarget,ct(v),J(a)}}}function tr(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function ft(t,e){var r=p;r.nodes_start===null&&(r.nodes_start=t,r.nodes_end=e)}function kt(t,e){var r=(e&dr)!==0,n=(e&_r)!==0,o,l=!t.startsWith("<!>");return()=>{if($)return ft(g,null),g;o===void 0&&(o=tr(l?t:"<!>"+t),r||(o=V(o)));var s=n?document.importNode(o,!0):o.cloneNode(!0);if(r){var i=V(s),u=s.lastChild;ft(i,u)}else ft(s,s);return s}}function rn(t,e,r="svg"){var n=!t.startsWith("<!>"),o=`<${r}>${n?t:"<!>"+t}</${r}>`,l;return()=>{if($)return ft(g,null),g;if(!l){var s=tr(o),i=V(s);l=V(i)}var u=l.cloneNode(!0);return ft(u,u),u}}function rt(t,e){if($){p.nodes_end=g,gt();return}t!==null&&t.before(e)}function nn(t,e){var r=e==null?"":typeof e=="object"?e+"":e;r!==(t.__t??(t.__t=t.nodeValue))&&(t.__t=r,t.nodeValue=r==null?"":r+"")}function er(t,e){return rr(t,e)}function on(t,e){ne(),e.intro=e.intro??!1;const r=e.target,n=$,o=g;try{for(var l=V(r);l&&(l.nodeType!==8||l.data!==be);)l=B(l);if(!l)throw _t;q(!0),M(l),gt();const s=rr(t,{...e,anchor:l});if(g===null||g.nodeType!==8||g.data!==Wt)throw ee(),_t;return q(!1),s}catch(s){if(s===_t)return e.recover===!1&&Nr(),ne(),Oe(r),q(!1),er(t,e);throw s}finally{q(n),M(o)}}const vt=new Map;function rr(t,{target:e,anchor:r,props:n={},events:o,context:l,intro:s=!0}){ne();var i=new Set,u=a=>{for(var h=0;h<a.length;h++){var f=a[h];if(!i.has(f)){i.add(f);var d=br(f);e.addEventListener(f,Ut,{passive:d});var x=vt.get(f);x===void 0?(document.addEventListener(f,Ut,{passive:d}),vt.set(f,1)):vt.set(f,x+1)}}};u(Jt(Ze)),ue.add(u);var c=void 0,v=Fr(()=>{var a=r??e.appendChild(bt());return mt(()=>{if(l){Bt({});var h=L;h.c=l}o&&(n.$$events=o),$&&ft(a,null),c=t(a,n)||{},$&&(p.nodes_end=g),l&&Yt()}),()=>{var d;for(var h of i){e.removeEventListener(h,Ut);var f=vt.get(h);--f===0?(document.removeEventListener(h,Ut),vt.delete(h)):vt.set(h,f)}ue.delete(u),a!==r&&((d=a.parentNode)==null||d.removeChild(a))}});return ce.set(c,v),c}let ce=new WeakMap;function ln(t,e){const r=ce.get(t);return r?(ce.delete(t),r(e)):Promise.resolve()}function nr(t,e,r=!1){$&&gt();var n=t,o=null,l=null,s=pr,i=r?Qt:0,u=!1;const c=(a,h=!0)=>{u=!0,v(h,a)},v=(a,h)=>{if(s===(s=a))return;let f=!1;if($){const d=n.data===Kt;!!s===d&&(n=re(),M(n),q(!1),f=!0)}s?(o?Lt(o):h&&(o=mt(()=>h(n))),l&&Mt(l,()=>{l=null})):(l?Lt(l):h&&(l=mt(()=>h(n))),o&&Mt(o,()=>{o=null})),f&&q(!0)};se(()=>{u=!1,e(c),u||v(null,null)},i),$&&(n=g)}function sn(t,e){return e}function an(t,e,r,n){for(var o=[],l=e.length,s=0;s<l;s++)ie(e[s].e,o,!0);var i=l>0&&o.length===0&&r!==null;if(i){var u=r.parentNode;Oe(u),u.append(r),n.clear(),Q(t,e[0].prev,e[l-1].next)}He(o,()=>{for(var c=0;c<l;c++){var v=e[c];i||(n.delete(v.k),Q(t,v.prev,v.next)),Y(v.e,!i)}})}function un(t,e,r,n,o,l=null){var s=t,i={flags:e,items:new Map,first:null};{var u=t;s=$?M(V(u)):u.appendChild(bt())}$&&gt();var c=null,v=!1;se(()=>{var a=r(),h=me(a)?a:a==null?[]:Jt(a),f=h.length;if(v&&f===0)return;v=f===0;let d=!1;if($){var x=s.data===Kt;x!==(f===0)&&(s=re(),M(s),q(!1),d=!0)}if($){for(var C=null,S,_=0;_<f;_++){if(g.nodeType===8&&g.data===Wt){s=g,d=!0,q(!1);break}var m=h[_],K=n(m,_);S=or(g,i,C,null,m,K,_,o,e),i.items.set(K,S),C=S}f>0&&M(re())}if(!$){var E=y;cn(h,i,s,o,e,(E.f&P)!==0,n)}l!==null&&(f===0?c?Lt(c):c=mt(()=>l(s)):c!==null&&Mt(c,()=>{c=null})),d&&q(!0)}),$&&(s=g)}function cn(t,e,r,n,o,l,s,i){var u=t.length,c=e.items,v=e.first,a=v,h,f=null,d=[],x=[],C,S,_,m;for(m=0;m<u;m+=1){if(C=t[m],S=s(C,m),_=c.get(S),_===void 0){var K=a?a.e.nodes_start:r;f=or(K,e,f,f===null?e.first:f.next,C,S,m,n,o),c.set(S,f),d=[],x=[],a=f.next;continue}if(fn(_,C,m),_.e.f&P&&Lt(_.e),_!==a){if(h!==void 0&&h.has(_)){if(d.length<x.length){var E=x[0],N;f=E.prev;var dt=d[0],de=d[d.length-1];for(N=0;N<d.length;N+=1)lr(d[N],E,r);for(N=0;N<x.length;N+=1)h.delete(x[N]);Q(e,dt.prev,de.next),Q(e,f,dt),Q(e,de,E),a=E,f=de,m-=1,d=[],x=[]}else h.delete(_),lr(_,a,r),Q(e,_.prev,_.next),Q(e,_,f===null?e.first:f.next),Q(e,f,_),f=_;continue}for(d=[],x=[];a!==null&&a.k!==S;)(l||!(a.e.f&P))&&(h??(h=new Set)).add(a),x.push(a),a=a.next;if(a===null)continue;_=a}d.push(_),f=_,a=_.next}if(a!==null||h!==void 0){for(var _e=h===void 0?[]:Jt(h);a!==null;)(l||!(a.e.f&P))&&_e.push(a),a=a.next;var An=_e.length;if(An>0){var On=u===0?r:null;an(e,_e,On,c)}}p.first=e.first&&e.first.e,p.last=f&&f.e}function fn(t,e,r,n){Te(t.v,e),t.i=r}function or(t,e,r,n,o,l,s,i,u,c){var v=(u&k)!==0,a=(u&vr)===0,h=v?a?te(o):Rt(o):o,f=u&St?Rt(s):s,d={i:f,v:h,k:l,a:null,e:null,prev:r,next:n};try{return d.e=mt(()=>i(t,h,f),$),d.e.prev=r&&r.e,d.e.next=n&&n.e,r===null?e.first=d:(r.next=d,r.e.next=d.e),n!==null&&(n.prev=d,n.e.prev=d.e),d}finally{}}function lr(t,e,r){for(var n=t.next?t.next.e.nodes_start:r,o=e?e.e.nodes_start:r,l=t.e.nodes_start;l!==n;){var s=B(l);o.before(l),l=s}}function Q(t,e,r){e===null?t.first=r:(e.next=r,e.e.next=r&&r.e),r!==null&&(r.prev=e,r.e.prev=e&&e.e)}function vn(t,e,r,n,o){var i;$&&gt();var l=(i=e.$$slots)==null?void 0:i[r],s=!1;l===!0&&(l=e.children,s=!0),l===void 0?o!==null&&o(t):l(t,s?()=>n:n)}function fe(t,e){Vr(()=>{var r=t.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+e.hash)){const o=document.createElement("style");o.id=e.hash,o.textContent=e.code,n.appendChild(o)}})}function Tt(t,e,r,n){var o=t.__attributes??(t.__attributes={});$&&(o[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")||o[e]!==(o[e]=r)&&(e==="style"&&"__styles"in t&&(t.__styles={}),e==="loading"&&(t[kr]=r),r==null?t.removeAttribute(e):typeof r!="string"&&hn(t).includes(e)?t[e]=r:t.setAttribute(e,r))}var sr=new Map;function hn(t){var e=sr.get(t.nodeName);if(e)return e;sr.set(t.nodeName,e=[]);for(var r,n=t,o=Element.prototype;o!==n;){r=$r(n);for(var l in r)r[l].set&&e.push(l);n=mr(n)}return e}function dn(t){for(var e=p,r=p;e!==null&&!(e.f&(F|nt));)e=e.parent;try{return J(e),t()}finally{J(r)}}function ht(t,e,r,n){var K;var o=!ke,l=(r&hr)!==0,s=!1,i;i=t[e];var u=Er in t||we in t,c=((K=zt(t,e))==null?void 0:K.set)??(u&&l&&e in t?E=>t[e]=E:void 0),v=n,a=!0,h=!1,f=()=>(h=!0,a&&(a=!1,v=n),v);i===void 0&&n!==void 0&&(c&&o&&zr(),i=f(),c&&c(i));var d;if(d=()=>{var E=t[e];return E===void 0?f():(a=!0,h=!1,E)},c){var x=t.$$legacy;return function(E,N){return arguments.length>0?((!N||x||s)&&c(N?d():E),E):d()}}var C=!1,S=!1,_=te(i),m=dn(()=>Re(()=>{var E=d(),N=R(_);return C?(C=!1,S=!0,N):(S=!1,_.v=E)}));return function(E,N){if(arguments.length>0){const dt=N?R(m):E;return m.equals(dt)||(C=!0,Dt(_,dt),h&&v!==void 0&&(v=dt),tn(()=>R(m))),E}return R(m)}}function _n(t){return new pn(t)}class pn{constructor(e){pe(this,G);pe(this,D);var l;var r=new Map,n=(s,i)=>{var u=te(i);return r.set(s,u),u};const o=new Proxy({...e.props||{},$$events:{}},{get(s,i){return R(r.get(i)??n(i,Reflect.get(s,i)))},has(s,i){return i===we?!0:(R(r.get(i)??n(i,Reflect.get(s,i))),Reflect.has(s,i))},set(s,i,u){return Dt(r.get(i)??n(i,u),u),Reflect.set(s,i,u)}});ge(this,D,(e.hydrate?on:er)(e.component,{target:e.target,anchor:e.anchor,props:o,context:e.context,intro:e.intro??!1,recover:e.recover})),(!((l=e==null?void 0:e.props)!=null&&l.$$host)||e.sync===!1)&&Z(),ge(this,G,o.$$events);for(const s of Object.keys(z(this,D)))s==="$set"||s==="$destroy"||s==="$on"||Nt(this,s,{get(){return z(this,D)[s]},set(i){z(this,D)[s]=i},enumerable:!0});z(this,D).$set=s=>{Object.assign(o,s)},z(this,D).$destroy=()=>{ln(z(this,D))}}$set(e){z(this,D).$set(e)}$on(e,r){z(this,G)[e]=z(this,G)[e]||[];const n=(...o)=>r.call(this,...o);return z(this,G)[e].push(n),()=>{z(this,G)[e]=z(this,G)[e].filter(o=>o!==n)}}$destroy(){z(this,D).$destroy()}}G=new WeakMap,D=new WeakMap;let ir;typeof HTMLElement=="function"&&(ir=class extends HTMLElement{constructor(e,r,n){super();j(this,"$$ctor");j(this,"$$s");j(this,"$$c");j(this,"$$cn",!1);j(this,"$$d",{});j(this,"$$r",!1);j(this,"$$p_d",{});j(this,"$$l",{});j(this,"$$l_u",new Map);j(this,"$$me");this.$$ctor=e,this.$$s=r,n&&this.attachShadow({mode:"open"})}addEventListener(e,r,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(r),this.$$c){const o=this.$$c.$on(e,r);this.$$l_u.set(r,o)}super.addEventListener(e,r,n)}removeEventListener(e,r,n){if(super.removeEventListener(e,r,n),this.$$c){const o=this.$$l_u.get(r);o&&(o(),this.$$l_u.delete(r))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(o){return l=>{const s=document.createElement("slot");o!=="default"&&(s.name=o),rt(l,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=gn(this);for(const o of this.$$s)o in n&&(o==="default"&&!this.$$d.children?(this.$$d.children=e(o),r.default=!0):r[o]=e(o));for(const o of this.attributes){const l=this.$$g_p(o.name);l in this.$$d||(this.$$d[l]=Gt(l,o.value,this.$$p_d,"toProp"))}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=_n({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=jr(()=>{Hr(()=>{var o;this.$$r=!0;for(const l of Ct(this.$$c)){if(!((o=this.$$p_d[l])!=null&&o.reflect))continue;this.$$d[l]=this.$$c[l];const s=Gt(l,this.$$d[l],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,s)}this.$$r=!1})});for(const o in this.$$l)for(const l of this.$$l[o]){const s=this.$$c.$on(o,l);this.$$l_u.set(l,s)}this.$$l={}}}attributeChangedCallback(e,r,n){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Gt(e,n,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Ct(this.$$p_d).find(r=>this.$$p_d[r].attribute===e||!this.$$p_d[r].attribute&&r.toLowerCase()===e)||e}});function Gt(t,e,r,n){var l;const o=(l=r[t])==null?void 0:l.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!r[t])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function gn(t){const e={};return t.childNodes.forEach(r=>{e[r.slot||"default"]=!0}),e}function ve(t,e,r,n,o,l){let s=class extends ir{constructor(){super(t,r,o),this.$$p_d=e}static get observedAttributes(){return Ct(e).map(i=>(e[i].attribute||i).toLowerCase())}};return Ct(e).forEach(i=>{Nt(s.prototype,i,{get(){return this.$$c&&i in this.$$c?this.$$c[i]:this.$$d[i]},set(u){var a;u=Gt(i,u,e),this.$$d[i]=u;var c=this.$$c;if(c){var v=(a=zt(c,i))==null?void 0:a.get;v?c[i]=u:c.$set({[i]:u})}}})}),n.forEach(i=>{Nt(s.prototype,i,{get(){var u;return(u=this.$$c)==null?void 0:u[i]}})}),t.element=s,s}const bn=[{name:"nokakoi",url:"https://nokakoi.com/app/?text={text}",icon:"https://nokakoi.com/favicon.ico"},{name:"Nos Haiku",url:"https://nos-haiku.vercel.app/antenna?content={text}",icon:"https://nos-haiku.vercel.app/favicon.png"},{name:"nostter",url:"https://nostter.app/post?content={text}",icon:"https://nostter.app/favicon.ico"},{name:"Lumilumi",url:"https://lumilumi.app/post?text={text}",icon:"https://lumilumi.app/favicon.ico"}];var $n=t=>t.stopPropagation(),mn=(t,e,r)=>e(R(r).url),yn=kt('<button class="item svelte-1sy5hzc"><img> <span class="item-name"> </span></button>'),xn=kt('<div class="overlay svelte-1sy5hzc"><div class="inner svelte-1sy5hzc"><button class="close-button svelte-1sy5hzc" aria-label="Close">✖</button> <h2 class="title svelte-1sy5hzc">Select Share Client</h2> <div class="list svelte-1sy5hzc"></div> <div class="footer svelte-1sy5hzc"><a target="_blank" referrerpolicy="no-referrer" href="https://tsukemonogit.github.io/nostr-share-component/" class="svelte-1sy5hzc">nostr-share-component</a></div></div></div>');const wn={hash:"svelte-1sy5hzc",code:`
1
+ var NostrShare=function(b){"use strict";var Rn=Object.defineProperty;var cr=b=>{throw TypeError(b)};var Dn=(b,w,k)=>w in b?Rn(b,w,{enumerable:!0,configurable:!0,writable:!0,value:k}):b[w]=k;var j=(b,w,k)=>Dn(b,typeof w!="symbol"?w+"":w,k),fr=(b,w,k)=>w.has(b)||cr("Cannot "+k);var z=(b,w,k)=>(fr(b,w,"read from private field"),k?k.call(b):w.get(b)),pe=(b,w,k)=>w.has(b)?cr("Cannot add the same private member more than once"):w instanceof WeakSet?w.add(b):w.set(b,k),ge=(b,w,k,St)=>(fr(b,w,"write to private field"),St?St.call(b,k):w.set(b,k),k);var G,D;const w="5";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(w);const k=1,St=2,vr=16,hr=8,dr=1,_r=2,be="[",Kt="[!",Wt="]",_t={},pr=Symbol(),gr=["touchstart","touchmove"];function br(t){return gr.includes(t)}const $e=!1;var me=Array.isArray,Jt=Array.from,Ct=Object.keys,Nt=Object.defineProperty,zt=Object.getOwnPropertyDescriptor,$r=Object.getOwnPropertyDescriptors,mr=Object.getPrototypeOf;function yr(t){for(var e=0;e<t.length;e++)t[e]()}const I=2,ye=4,At=8,Xt=16,F=32,nt=64,Zt=128,ot=256,Ot=512,A=1024,W=2048,pt=4096,P=8192,lt=16384,xr=32768,Qt=65536,wr=1<<19,xe=1<<20,Er=Symbol("$state"),we=Symbol("legacy props"),kr=Symbol("");function Ee(t){return t===this.v}function Tr(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Sr(t){return!Tr(t,this.v)}function Cr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Nr(){throw new Error("https://svelte.dev/e/hydration_failed")}function zr(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function Ar(){throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function Or(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let ke=!1;function Rt(t,e){var r={f:0,v:t,reactions:null,equals:Ee,version:0};return r}function Rr(t){return Dr(Rt(t))}function te(t,e=!1){const r=Rt(t);return e||(r.equals=Sr),r}function Dr(t){return y!==null&&y.f&I&&(H===null?Ur([t]):H.push(t)),t}function Dt(t,e){return y!==null&&Kr()&&y.f&(I|Xt)&&(H===null||!H.includes(t))&&Or(),Te(t,e)}function Te(t,e){return t.equals(e)||(t.v=e,t.version=Ge(),Se(t,W),p!==null&&p.f&A&&!(p.f&F)&&(T!==null&&T.includes(t)?(U(p,W),Vt(p)):X===null?Gr([t]):X.push(t))),e}function Se(t,e){var r=t.reactions;if(r!==null)for(var n=r.length,o=0;o<n;o++){var l=r[o],s=l.f;s&W||(U(l,e),s&(A|ot)&&(s&I?Se(l,pt):Vt(l)))}}function ee(t){console.warn("https://svelte.dev/e/hydration_mismatch")}let $=!1;function q(t){$=t}let g;function M(t){if(t===null)throw ee(),_t;return g=t}function gt(){return M(B(g))}function st(t){if($){if(B(g)!==null)throw ee(),_t;g=t}}function Ir(t=1){if($){for(var e=t,r=g;e--;)r=B(r);g=r}}function re(){for(var t=0,e=g;;){if(e.nodeType===8){var r=e.data;if(r===Wt){if(t===0)return e;t-=1}else(r===be||r===Kt)&&(t+=1)}var n=B(e);e.remove(),e=n}}var Ce,Ne,ze;function ne(){if(Ce===void 0){Ce=window;var t=Element.prototype,e=Node.prototype;Ne=zt(e,"firstChild").get,ze=zt(e,"nextSibling").get,t.__click=void 0,t.__className="",t.__attributes=null,t.__styles=null,t.__e=void 0,Text.prototype.__t=void 0}}function bt(t=""){return document.createTextNode(t)}function V(t){return Ne.call(t)}function B(t){return ze.call(t)}function $t(t,e){if(!$)return V(t);var r=V(g);if(r===null)r=g.appendChild(bt());else if(e&&r.nodeType!==3){var n=bt();return r==null||r.before(n),M(n),n}return M(r),r}function Ae(t,e){if(!$){var r=V(t);return r instanceof Comment&&r.data===""?B(r):r}return g}function It(t,e=1,r=!1){let n=$?g:t;for(var o;e--;)o=n,n=B(n);if(!$)return n;var l=n==null?void 0:n.nodeType;if(r&&l!==3){var s=bt();return n===null?o==null||o.after(s):n.before(s),M(s),s}return M(n),n}function Oe(t){t.textContent=""}function Re(t){var e=I|W;p===null?e|=ot:p.f|=xe;var r=y!==null&&y.f&I?y:null;const n={children:null,ctx:L,deps:null,equals:Ee,f:e,fn:t,reactions:null,v:null,version:0,parent:r??p};return r!==null&&(r.children??(r.children=[])).push(n),n}function De(t){var e=t.children;if(e!==null){t.children=null;for(var r=0;r<e.length;r+=1){var n=e[r];n.f&I?oe(n):Y(n)}}}function Mr(t){for(var e=t.parent;e!==null;){if(!(e.f&I))return e;e=e.parent}return null}function Ie(t){var e,r=p;J(Mr(t));try{De(t),e=Ke(t)}finally{J(r)}return e}function Me(t){var e=Ie(t),r=(et||t.f&ot)&&t.deps!==null?pt:A;U(t,r),t.equals(e)||(t.v=e,t.version=Ge())}function oe(t){De(t),Et(t,0),U(t,lt),t.v=t.children=t.deps=t.ctx=t.reactions=null}function Lr(t,e){var r=e.last;r===null?e.last=e.first=t:(r.next=t,t.prev=r,e.last=t)}function it(t,e,r,n=!0){var o=(t&nt)!==0,l=p,s={ctx:L,deps:null,deriveds:null,nodes_start:null,nodes_end:null,f:t|W,first:null,fn:e,last:null,next:null,parent:o?null:l,prev:null,teardown:null,transitions:null,version:0};if(r){var i=at;try{Ye(!0),qt(s),s.f|=xr}catch(v){throw Y(s),v}finally{Ye(i)}}else e!==null&&Vt(s);var u=r&&s.deps===null&&s.first===null&&s.nodes_start===null&&s.teardown===null&&(s.f&xe)===0;if(!u&&!o&&n&&(l!==null&&Lr(s,l),y!==null&&y.f&I)){var c=y;(c.children??(c.children=[])).push(s)}return s}function jr(t){const e=it(nt,t,!0);return()=>{Y(e)}}function Fr(t){const e=it(nt,t,!0);return(r={})=>new Promise(n=>{r.outro?Mt(e,()=>{Y(e),n(void 0)}):(Y(e),n(void 0))})}function Pr(t){return it(ye,t,!1)}function Hr(t){return it(At,t,!0)}function le(t){return se(t)}function se(t,e=0){return it(At|Xt|e,t,!0)}function mt(t,e=!0){return it(At|F,t,!0,e)}function Le(t){var e=t.teardown;if(e!==null){const r=y;ct(null);try{e.call(null)}finally{ct(r)}}}function je(t){var e=t.deriveds;if(e!==null){t.deriveds=null;for(var r=0;r<e.length;r+=1)oe(e[r])}}function Fe(t,e=!1){var r=t.first;for(t.first=t.last=null;r!==null;){var n=r.next;Y(r,e),r=n}}function qr(t){for(var e=t.first;e!==null;){var r=e.next;e.f&F||Y(e),e=r}}function Y(t,e=!0){var r=!1;if((e||t.f&wr)&&t.nodes_start!==null){for(var n=t.nodes_start,o=t.nodes_end;n!==null;){var l=n===o?null:B(n);n.remove(),n=l}r=!0}Fe(t,e&&!r),je(t),Et(t,0),U(t,lt);var s=t.transitions;if(s!==null)for(const u of s)u.stop();Le(t);var i=t.parent;i!==null&&i.first!==null&&Pe(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Pe(t){var e=t.parent,r=t.prev,n=t.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),e!==null&&(e.first===t&&(e.first=n),e.last===t&&(e.last=r))}function Mt(t,e){var r=[];ie(t,r,!0),He(r,()=>{Y(t),e&&e()})}function He(t,e){var r=t.length;if(r>0){var n=()=>--r||e();for(var o of t)o.out(n)}else e()}function ie(t,e,r){if(!(t.f&P)){if(t.f^=P,t.transitions!==null)for(const s of t.transitions)(s.is_global||r)&&e.push(s);for(var n=t.first;n!==null;){var o=n.next,l=(n.f&Qt)!==0||(n.f&F)!==0;ie(n,e,l?r:!1),n=o}}}function Lt(t){qe(t,!0)}function qe(t,e){if(t.f&P){wt(t)&&qt(t),t.f^=P;for(var r=t.first;r!==null;){var n=r.next,o=(r.f&Qt)!==0||(r.f&F)!==0;qe(r,o?e:!1),r=n}if(t.transitions!==null)for(const l of t.transitions)(l.is_global||e)&&l.in()}}let jt=!1,ae=[];function Ve(){jt=!1;const t=ae.slice();ae=[],yr(t)}function Vr(t){jt||(jt=!0,queueMicrotask(Ve)),ae.push(t)}function Br(){jt&&Ve()}const Be=0,Yr=1;let Ft=!1,Pt=Be,yt=!1,xt=null,at=!1;function Ye(t){at=t}let tt=[],ut=0,In=[],y=null;function ct(t){y=t}let p=null;function J(t){p=t}let H=null;function Ur(t){H=t}let T=null,O=0,X=null;function Gr(t){X=t}let Ue=1,et=!1,L=null;function Ge(){return++Ue}function Kr(){return!ke}function wt(t){var s,i;var e=t.f;if(e&W)return!0;if(e&pt){var r=t.deps,n=(e&ot)!==0;if(r!==null){var o;if(e&Ot){for(o=0;o<r.length;o++)((s=r[o]).reactions??(s.reactions=[])).push(t);t.f^=Ot}for(o=0;o<r.length;o++){var l=r[o];if(wt(l)&&Me(l),n&&p!==null&&!et&&!((i=l==null?void 0:l.reactions)!=null&&i.includes(t))&&(l.reactions??(l.reactions=[])).push(t),l.version>t.version)return!0}}(!n||p!==null&&!et)&&U(t,A)}return!1}function Wr(t,e){for(var r=e;r!==null;){if(r.f&Zt)try{r.fn(t);return}catch{r.f^=Zt}r=r.parent}throw Ft=!1,t}function Jr(t){return(t.f&lt)===0&&(t.parent===null||(t.parent.f&Zt)===0)}function Ht(t,e,r,n){if(Ft){if(r===null&&(Ft=!1),Jr(e))throw t;return}r!==null&&(Ft=!0);{Wr(t,e);return}}function Ke(t){var h;var e=T,r=O,n=X,o=y,l=et,s=H,i=L,u=t.f;T=null,O=0,X=null,y=u&(F|nt)?null:t,et=!at&&(u&ot)!==0,H=null,L=t.ctx;try{var c=(0,t.fn)(),v=t.deps;if(T!==null){var a;if(Et(t,O),v!==null&&O>0)for(v.length=O+T.length,a=0;a<T.length;a++)v[O+a]=T[a];else t.deps=v=T;if(!et)for(a=O;a<v.length;a++)((h=v[a]).reactions??(h.reactions=[])).push(t)}else v!==null&&O<v.length&&(Et(t,O),v.length=O);return c}finally{T=e,O=r,X=n,y=o,et=l,H=s,L=i}}function Xr(t,e){let r=e.reactions;if(r!==null){var n=r.indexOf(t);if(n!==-1){var o=r.length-1;o===0?r=e.reactions=null:(r[n]=r[o],r.pop())}}r===null&&e.f&I&&(T===null||!T.includes(e))&&(U(e,pt),e.f&(ot|Ot)||(e.f^=Ot),Et(e,0))}function Et(t,e){var r=t.deps;if(r!==null)for(var n=e;n<r.length;n++)Xr(t,r[n])}function qt(t){var e=t.f;if(!(e&lt)){U(t,A);var r=p,n=L;p=t;try{e&Xt?qr(t):Fe(t),je(t),Le(t);var o=Ke(t);t.teardown=typeof o=="function"?o:null,t.version=Ue}catch(l){Ht(l,t,r,n||t.ctx)}finally{p=r}}}function We(){if(ut>1e3){ut=0;try{Cr()}catch(t){if(xt!==null)Ht(t,xt,null);else throw t}}ut++}function Je(t){var e=t.length;if(e!==0){We();var r=at;at=!0;try{for(var n=0;n<e;n++){var o=t[n];o.f&A||(o.f^=A);var l=[];Xe(o,l),Zr(l)}}finally{at=r}}}function Zr(t){var e=t.length;if(e!==0)for(var r=0;r<e;r++){var n=t[r];if(!(n.f&(lt|P)))try{wt(n)&&(qt(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null?Pe(n):n.fn=null))}catch(o){Ht(o,n,null,n.ctx)}}}function Qr(){if(yt=!1,ut>1001)return;const t=tt;tt=[],Je(t),yt||(ut=0,xt=null)}function Vt(t){Pt===Be&&(yt||(yt=!0,queueMicrotask(Qr))),xt=t;for(var e=t;e.parent!==null;){e=e.parent;var r=e.f;if(r&(nt|F)){if(!(r&A))return;e.f^=A}}tt.push(e)}function Xe(t,e){var r=t.first,n=[];t:for(;r!==null;){var o=r.f,l=(o&F)!==0,s=l&&(o&A)!==0,i=r.next;if(!s&&!(o&P))if(o&At){if(l)r.f^=A;else try{wt(r)&&qt(r)}catch(a){Ht(a,r,null,r.ctx)}var u=r.first;if(u!==null){r=u;continue}}else o&ye&&n.push(r);if(i===null){let a=r.parent;for(;a!==null;){if(t===a)break t;var c=a.next;if(c!==null){r=c;continue t}a=a.parent}}r=i}for(var v=0;v<n.length;v++)u=n[v],e.push(u),Xe(u,e)}function Z(t){var e=Pt,r=tt;try{We();const o=[];Pt=Yr,tt=o,yt=!1,Je(r);var n=t==null?void 0:t();return Br(),(tt.length>0||o.length>0)&&Z(),ut=0,xt=null,n}finally{Pt=e,tt=r}}function R(t){var v;var e=t.f,r=(e&I)!==0;if(r&&e&lt){var n=Ie(t);return oe(t),n}if(y!==null){H!==null&&H.includes(t)&&Ar();var o=y.deps;T===null&&o!==null&&o[O]===t?O++:T===null?T=[t]:T.push(t),X!==null&&p!==null&&p.f&A&&!(p.f&F)&&X.includes(t)&&(U(p,W),Vt(p))}else if(r&&t.deps===null)for(var l=t,s=l.parent,i=l;s!==null;)if(s.f&I){var u=s;i=u,s=u.parent}else{var c=s;(v=c.deriveds)!=null&&v.includes(i)||(c.deriveds??(c.deriveds=[])).push(i);break}return r&&(l=t,wt(l)&&Me(l)),t.v}function tn(t){const e=y;try{return y=null,t()}finally{y=e}}const en=~(W|pt|A);function U(t,e){t.f=t.f&en|e}function Bt(t,e=!1,r){L={p:L,c:null,e:null,m:!1,s:t,x:null,l:null}}function Yt(t){const e=L;if(e!==null){t!==void 0&&(e.x=t);const s=e.e;if(s!==null){var r=p,n=y;e.e=null;try{for(var o=0;o<s.length;o++){var l=s[o];J(l.effect),ct(l.reaction),Pr(l.fn)}}finally{J(r),ct(n)}}L=e.p,e.m=!0}return t||{}}const Ze=new Set,ue=new Set;function Qe(t){for(var e=0;e<t.length;e++)Ze.add(t[e]);for(var r of ue)r(t)}function Ut(t){var _;var e=this,r=e.ownerDocument,n=t.type,o=((_=t.composedPath)==null?void 0:_.call(t))||[],l=o[0]||t.target,s=0,i=t.__root;if(i){var u=o.indexOf(i);if(u!==-1&&(e===document||e===window)){t.__root=e;return}var c=o.indexOf(e);if(c===-1)return;u<=c&&(s=u)}if(l=o[s]||t.target,l!==e){Nt(t,"currentTarget",{configurable:!0,get(){return l||r}});var v=y,a=p;ct(null),J(null);try{for(var h,f=[];l!==null;){var d=l.assignedSlot||l.parentNode||l.host||null;try{var x=l["__"+n];if(x!==void 0&&!l.disabled)if(me(x)){var[C,...S]=x;C.apply(l,[t,...S])}else x.call(l,t)}catch(m){h?f.push(m):h=m}if(t.cancelBubble||d===e||d===null)break;l=d}if(h){for(let m of f)queueMicrotask(()=>{throw m});throw h}}finally{t.__root=e,delete t.currentTarget,ct(v),J(a)}}}function tr(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function ft(t,e){var r=p;r.nodes_start===null&&(r.nodes_start=t,r.nodes_end=e)}function kt(t,e){var r=(e&dr)!==0,n=(e&_r)!==0,o,l=!t.startsWith("<!>");return()=>{if($)return ft(g,null),g;o===void 0&&(o=tr(l?t:"<!>"+t),r||(o=V(o)));var s=n?document.importNode(o,!0):o.cloneNode(!0);if(r){var i=V(s),u=s.lastChild;ft(i,u)}else ft(s,s);return s}}function rn(t,e,r="svg"){var n=!t.startsWith("<!>"),o=`<${r}>${n?t:"<!>"+t}</${r}>`,l;return()=>{if($)return ft(g,null),g;if(!l){var s=tr(o),i=V(s);l=V(i)}var u=l.cloneNode(!0);return ft(u,u),u}}function rt(t,e){if($){p.nodes_end=g,gt();return}t!==null&&t.before(e)}function nn(t,e){var r=e==null?"":typeof e=="object"?e+"":e;r!==(t.__t??(t.__t=t.nodeValue))&&(t.__t=r,t.nodeValue=r==null?"":r+"")}function er(t,e){return rr(t,e)}function on(t,e){ne(),e.intro=e.intro??!1;const r=e.target,n=$,o=g;try{for(var l=V(r);l&&(l.nodeType!==8||l.data!==be);)l=B(l);if(!l)throw _t;q(!0),M(l),gt();const s=rr(t,{...e,anchor:l});if(g===null||g.nodeType!==8||g.data!==Wt)throw ee(),_t;return q(!1),s}catch(s){if(s===_t)return e.recover===!1&&Nr(),ne(),Oe(r),q(!1),er(t,e);throw s}finally{q(n),M(o)}}const vt=new Map;function rr(t,{target:e,anchor:r,props:n={},events:o,context:l,intro:s=!0}){ne();var i=new Set,u=a=>{for(var h=0;h<a.length;h++){var f=a[h];if(!i.has(f)){i.add(f);var d=br(f);e.addEventListener(f,Ut,{passive:d});var x=vt.get(f);x===void 0?(document.addEventListener(f,Ut,{passive:d}),vt.set(f,1)):vt.set(f,x+1)}}};u(Jt(Ze)),ue.add(u);var c=void 0,v=Fr(()=>{var a=r??e.appendChild(bt());return mt(()=>{if(l){Bt({});var h=L;h.c=l}o&&(n.$$events=o),$&&ft(a,null),c=t(a,n)||{},$&&(p.nodes_end=g),l&&Yt()}),()=>{var d;for(var h of i){e.removeEventListener(h,Ut);var f=vt.get(h);--f===0?(document.removeEventListener(h,Ut),vt.delete(h)):vt.set(h,f)}ue.delete(u),a!==r&&((d=a.parentNode)==null||d.removeChild(a))}});return ce.set(c,v),c}let ce=new WeakMap;function ln(t,e){const r=ce.get(t);return r?(ce.delete(t),r(e)):Promise.resolve()}function nr(t,e,r=!1){$&&gt();var n=t,o=null,l=null,s=pr,i=r?Qt:0,u=!1;const c=(a,h=!0)=>{u=!0,v(h,a)},v=(a,h)=>{if(s===(s=a))return;let f=!1;if($){const d=n.data===Kt;!!s===d&&(n=re(),M(n),q(!1),f=!0)}s?(o?Lt(o):h&&(o=mt(()=>h(n))),l&&Mt(l,()=>{l=null})):(l?Lt(l):h&&(l=mt(()=>h(n))),o&&Mt(o,()=>{o=null})),f&&q(!0)};se(()=>{u=!1,e(c),u||v(null,null)},i),$&&(n=g)}function sn(t,e){return e}function an(t,e,r,n){for(var o=[],l=e.length,s=0;s<l;s++)ie(e[s].e,o,!0);var i=l>0&&o.length===0&&r!==null;if(i){var u=r.parentNode;Oe(u),u.append(r),n.clear(),Q(t,e[0].prev,e[l-1].next)}He(o,()=>{for(var c=0;c<l;c++){var v=e[c];i||(n.delete(v.k),Q(t,v.prev,v.next)),Y(v.e,!i)}})}function un(t,e,r,n,o,l=null){var s=t,i={flags:e,items:new Map,first:null};{var u=t;s=$?M(V(u)):u.appendChild(bt())}$&&gt();var c=null,v=!1;se(()=>{var a=r(),h=me(a)?a:a==null?[]:Jt(a),f=h.length;if(v&&f===0)return;v=f===0;let d=!1;if($){var x=s.data===Kt;x!==(f===0)&&(s=re(),M(s),q(!1),d=!0)}if($){for(var C=null,S,_=0;_<f;_++){if(g.nodeType===8&&g.data===Wt){s=g,d=!0,q(!1);break}var m=h[_],K=n(m,_);S=or(g,i,C,null,m,K,_,o,e),i.items.set(K,S),C=S}f>0&&M(re())}if(!$){var E=y;cn(h,i,s,o,e,(E.f&P)!==0,n)}l!==null&&(f===0?c?Lt(c):c=mt(()=>l(s)):c!==null&&Mt(c,()=>{c=null})),d&&q(!0)}),$&&(s=g)}function cn(t,e,r,n,o,l,s,i){var u=t.length,c=e.items,v=e.first,a=v,h,f=null,d=[],x=[],C,S,_,m;for(m=0;m<u;m+=1){if(C=t[m],S=s(C,m),_=c.get(S),_===void 0){var K=a?a.e.nodes_start:r;f=or(K,e,f,f===null?e.first:f.next,C,S,m,n,o),c.set(S,f),d=[],x=[],a=f.next;continue}if(fn(_,C,m),_.e.f&P&&Lt(_.e),_!==a){if(h!==void 0&&h.has(_)){if(d.length<x.length){var E=x[0],N;f=E.prev;var dt=d[0],de=d[d.length-1];for(N=0;N<d.length;N+=1)lr(d[N],E,r);for(N=0;N<x.length;N+=1)h.delete(x[N]);Q(e,dt.prev,de.next),Q(e,f,dt),Q(e,de,E),a=E,f=de,m-=1,d=[],x=[]}else h.delete(_),lr(_,a,r),Q(e,_.prev,_.next),Q(e,_,f===null?e.first:f.next),Q(e,f,_),f=_;continue}for(d=[],x=[];a!==null&&a.k!==S;)(l||!(a.e.f&P))&&(h??(h=new Set)).add(a),x.push(a),a=a.next;if(a===null)continue;_=a}d.push(_),f=_,a=_.next}if(a!==null||h!==void 0){for(var _e=h===void 0?[]:Jt(h);a!==null;)(l||!(a.e.f&P))&&_e.push(a),a=a.next;var An=_e.length;if(An>0){var On=u===0?r:null;an(e,_e,On,c)}}p.first=e.first&&e.first.e,p.last=f&&f.e}function fn(t,e,r,n){Te(t.v,e),t.i=r}function or(t,e,r,n,o,l,s,i,u,c){var v=(u&k)!==0,a=(u&vr)===0,h=v?a?te(o):Rt(o):o,f=u&St?Rt(s):s,d={i:f,v:h,k:l,a:null,e:null,prev:r,next:n};try{return d.e=mt(()=>i(t,h,f),$),d.e.prev=r&&r.e,d.e.next=n&&n.e,r===null?e.first=d:(r.next=d,r.e.next=d.e),n!==null&&(n.prev=d,n.e.prev=d.e),d}finally{}}function lr(t,e,r){for(var n=t.next?t.next.e.nodes_start:r,o=e?e.e.nodes_start:r,l=t.e.nodes_start;l!==n;){var s=B(l);o.before(l),l=s}}function Q(t,e,r){e===null?t.first=r:(e.next=r,e.e.next=r&&r.e),r!==null&&(r.prev=e,r.e.prev=e&&e.e)}function vn(t,e,r,n,o){var i;$&&gt();var l=(i=e.$$slots)==null?void 0:i[r],s=!1;l===!0&&(l=e.children,s=!0),l===void 0?o!==null&&o(t):l(t,s?()=>n:n)}function fe(t,e){Vr(()=>{var r=t.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+e.hash)){const o=document.createElement("style");o.id=e.hash,o.textContent=e.code,n.appendChild(o)}})}function Tt(t,e,r,n){var o=t.__attributes??(t.__attributes={});$&&(o[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")||o[e]!==(o[e]=r)&&(e==="style"&&"__styles"in t&&(t.__styles={}),e==="loading"&&(t[kr]=r),r==null?t.removeAttribute(e):typeof r!="string"&&hn(t).includes(e)?t[e]=r:t.setAttribute(e,r))}var sr=new Map;function hn(t){var e=sr.get(t.nodeName);if(e)return e;sr.set(t.nodeName,e=[]);for(var r,n=t,o=Element.prototype;o!==n;){r=$r(n);for(var l in r)r[l].set&&e.push(l);n=mr(n)}return e}function dn(t){for(var e=p,r=p;e!==null&&!(e.f&(F|nt));)e=e.parent;try{return J(e),t()}finally{J(r)}}function ht(t,e,r,n){var K;var o=!ke,l=(r&hr)!==0,s=!1,i;i=t[e];var u=Er in t||we in t,c=((K=zt(t,e))==null?void 0:K.set)??(u&&l&&e in t?E=>t[e]=E:void 0),v=n,a=!0,h=!1,f=()=>(h=!0,a&&(a=!1,v=n),v);i===void 0&&n!==void 0&&(c&&o&&zr(),i=f(),c&&c(i));var d;if(d=()=>{var E=t[e];return E===void 0?f():(a=!0,h=!1,E)},c){var x=t.$$legacy;return function(E,N){return arguments.length>0?((!N||x||s)&&c(N?d():E),E):d()}}var C=!1,S=!1,_=te(i),m=dn(()=>Re(()=>{var E=d(),N=R(_);return C?(C=!1,S=!0,N):(S=!1,_.v=E)}));return function(E,N){if(arguments.length>0){const dt=N?R(m):E;return m.equals(dt)||(C=!0,Dt(_,dt),h&&v!==void 0&&(v=dt),tn(()=>R(m))),E}return R(m)}}function _n(t){return new pn(t)}class pn{constructor(e){pe(this,G);pe(this,D);var l;var r=new Map,n=(s,i)=>{var u=te(i);return r.set(s,u),u};const o=new Proxy({...e.props||{},$$events:{}},{get(s,i){return R(r.get(i)??n(i,Reflect.get(s,i)))},has(s,i){return i===we?!0:(R(r.get(i)??n(i,Reflect.get(s,i))),Reflect.has(s,i))},set(s,i,u){return Dt(r.get(i)??n(i,u),u),Reflect.set(s,i,u)}});ge(this,D,(e.hydrate?on:er)(e.component,{target:e.target,anchor:e.anchor,props:o,context:e.context,intro:e.intro??!1,recover:e.recover})),(!((l=e==null?void 0:e.props)!=null&&l.$$host)||e.sync===!1)&&Z(),ge(this,G,o.$$events);for(const s of Object.keys(z(this,D)))s==="$set"||s==="$destroy"||s==="$on"||Nt(this,s,{get(){return z(this,D)[s]},set(i){z(this,D)[s]=i},enumerable:!0});z(this,D).$set=s=>{Object.assign(o,s)},z(this,D).$destroy=()=>{ln(z(this,D))}}$set(e){z(this,D).$set(e)}$on(e,r){z(this,G)[e]=z(this,G)[e]||[];const n=(...o)=>r.call(this,...o);return z(this,G)[e].push(n),()=>{z(this,G)[e]=z(this,G)[e].filter(o=>o!==n)}}$destroy(){z(this,D).$destroy()}}G=new WeakMap,D=new WeakMap;let ir;typeof HTMLElement=="function"&&(ir=class extends HTMLElement{constructor(e,r,n){super();j(this,"$$ctor");j(this,"$$s");j(this,"$$c");j(this,"$$cn",!1);j(this,"$$d",{});j(this,"$$r",!1);j(this,"$$p_d",{});j(this,"$$l",{});j(this,"$$l_u",new Map);j(this,"$$me");this.$$ctor=e,this.$$s=r,n&&this.attachShadow({mode:"open"})}addEventListener(e,r,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(r),this.$$c){const o=this.$$c.$on(e,r);this.$$l_u.set(r,o)}super.addEventListener(e,r,n)}removeEventListener(e,r,n){if(super.removeEventListener(e,r,n),this.$$c){const o=this.$$l_u.get(r);o&&(o(),this.$$l_u.delete(r))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(o){return l=>{const s=document.createElement("slot");o!=="default"&&(s.name=o),rt(l,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=gn(this);for(const o of this.$$s)o in n&&(o==="default"&&!this.$$d.children?(this.$$d.children=e(o),r.default=!0):r[o]=e(o));for(const o of this.attributes){const l=this.$$g_p(o.name);l in this.$$d||(this.$$d[l]=Gt(l,o.value,this.$$p_d,"toProp"))}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=_n({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=jr(()=>{Hr(()=>{var o;this.$$r=!0;for(const l of Ct(this.$$c)){if(!((o=this.$$p_d[l])!=null&&o.reflect))continue;this.$$d[l]=this.$$c[l];const s=Gt(l,this.$$d[l],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,s)}this.$$r=!1})});for(const o in this.$$l)for(const l of this.$$l[o]){const s=this.$$c.$on(o,l);this.$$l_u.set(l,s)}this.$$l={}}}attributeChangedCallback(e,r,n){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Gt(e,n,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Ct(this.$$p_d).find(r=>this.$$p_d[r].attribute===e||!this.$$p_d[r].attribute&&r.toLowerCase()===e)||e}});function Gt(t,e,r,n){var l;const o=(l=r[t])==null?void 0:l.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!r[t])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function gn(t){const e={};return t.childNodes.forEach(r=>{e[r.slot||"default"]=!0}),e}function ve(t,e,r,n,o,l){let s=class extends ir{constructor(){super(t,r,o),this.$$p_d=e}static get observedAttributes(){return Ct(e).map(i=>(e[i].attribute||i).toLowerCase())}};return Ct(e).forEach(i=>{Nt(s.prototype,i,{get(){return this.$$c&&i in this.$$c?this.$$c[i]:this.$$d[i]},set(u){var a;u=Gt(i,u,e),this.$$d[i]=u;var c=this.$$c;if(c){var v=(a=zt(c,i))==null?void 0:a.get;v?c[i]=u:c.$set({[i]:u})}}})}),n.forEach(i=>{Nt(s.prototype,i,{get(){var u;return(u=this.$$c)==null?void 0:u[i]}})}),t.element=s,s}const bn=[{name:"eHagaki",url:"https://lokuyow.github.io/ehagaki/?content={text}",icon:"https://lokuyow.github.io/ehagaki/favicon.ico"},{name:"nokakoi",url:"https://nokakoi.com/app/?text={text}",icon:"https://nokakoi.com/favicon.ico"},{name:"Nos Haiku",url:"https://nos-haiku.vercel.app/antenna?content={text}",icon:"https://nos-haiku.vercel.app/favicon.png"},{name:"nostter",url:"https://nostter.app/post?content={text}",icon:"https://nostter.app/favicon.ico"},{name:"Lumilumi",url:"https://lumilumi.app/post?text={text}",icon:"https://lumilumi.app/favicon.ico"}];var $n=t=>t.stopPropagation(),mn=(t,e,r)=>e(R(r).url),yn=kt('<button class="item svelte-1sy5hzc"><img> <span class="item-name"> </span></button>'),xn=kt('<div class="overlay svelte-1sy5hzc"><div class="inner svelte-1sy5hzc"><button class="close-button svelte-1sy5hzc" aria-label="Close">✖</button> <h2 class="title svelte-1sy5hzc">Select Share Client</h2> <div class="list svelte-1sy5hzc"></div> <div class="footer svelte-1sy5hzc"><a target="_blank" referrerpolicy="no-referrer" href="https://tsukemonogit.github.io/nostr-share-component/" class="svelte-1sy5hzc">nostr-share-component</a></div></div></div>');const wn={hash:"svelte-1sy5hzc",code:`
2
2
  /* オーバーレイ背景 */.overlay.svelte-1sy5hzc {position:fixed;top:0;left:0;width:100vw;height:100vh;background-color:rgba(0, 0, 0, 0.3); /* 少し濃い背景 */display:flex;justify-content:center;align-items:center;z-index:50;}
3
3
 
4
4
  /* ダイアログ本体 */.inner.svelte-1sy5hzc {display:flex;flex-direction:column;position:relative;background-color:var(--bg-color);padding:1rem;border-radius:12px; /* 柔らかい角丸 */box-shadow:0 8px 16px rgba(0, 0, 0, 0.2);width:90%;max-width:400px;gap:1rem; /* スペーシング */}
@@ -1,4 +1,4 @@
1
- (function(g,$){typeof exports=="object"&&typeof module<"u"?$(exports):typeof define=="function"&&define.amd?define(["exports"],$):(g=typeof globalThis<"u"?globalThis:g||self,$(g.NostrShare={}))})(this,function(g){"use strict";var Rn=Object.defineProperty;var cr=g=>{throw TypeError(g)};var Dn=(g,$,k)=>$ in g?Rn(g,$,{enumerable:!0,configurable:!0,writable:!0,value:k}):g[$]=k;var j=(g,$,k)=>Dn(g,typeof $!="symbol"?$+"":$,k),fr=(g,$,k)=>$.has(g)||cr("Cannot "+k);var z=(g,$,k)=>(fr(g,$,"read from private field"),k?k.call(g):$.get(g)),pe=(g,$,k)=>$.has(g)?cr("Cannot add the same private member more than once"):$ instanceof WeakSet?$.add(g):$.set(g,k),ge=(g,$,k,St)=>(fr(g,$,"write to private field"),St?St.call(g,k):$.set(g,k),k);var G,D;const $="5";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add($);const k=1,St=2,vr=16,hr=8,dr=1,_r=2,be="[",Kt="[!",Wt="]",_t={},pr=Symbol(),gr=["touchstart","touchmove"];function br(t){return gr.includes(t)}const $e=!1;var me=Array.isArray,Jt=Array.from,Ct=Object.keys,Nt=Object.defineProperty,zt=Object.getOwnPropertyDescriptor,$r=Object.getOwnPropertyDescriptors,mr=Object.getPrototypeOf;function yr(t){for(var e=0;e<t.length;e++)t[e]()}const I=2,ye=4,At=8,Xt=16,F=32,nt=64,Zt=128,ot=256,Ot=512,A=1024,W=2048,pt=4096,P=8192,lt=16384,xr=32768,Qt=65536,wr=1<<19,xe=1<<20,Er=Symbol("$state"),we=Symbol("legacy props"),kr=Symbol("");function Ee(t){return t===this.v}function Tr(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Sr(t){return!Tr(t,this.v)}function Cr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Nr(){throw new Error("https://svelte.dev/e/hydration_failed")}function zr(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function Ar(){throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function Or(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let ke=!1;function Rt(t,e){var r={f:0,v:t,reactions:null,equals:Ee,version:0};return r}function Rr(t){return Dr(Rt(t))}function te(t,e=!1){const r=Rt(t);return e||(r.equals=Sr),r}function Dr(t){return x!==null&&x.f&I&&(H===null?Ur([t]):H.push(t)),t}function Dt(t,e){return x!==null&&Kr()&&x.f&(I|Xt)&&(H===null||!H.includes(t))&&Or(),Te(t,e)}function Te(t,e){return t.equals(e)||(t.v=e,t.version=Ge(),Se(t,W),p!==null&&p.f&A&&!(p.f&F)&&(T!==null&&T.includes(t)?(U(p,W),Vt(p)):X===null?Gr([t]):X.push(t))),e}function Se(t,e){var r=t.reactions;if(r!==null)for(var n=r.length,o=0;o<n;o++){var l=r[o],s=l.f;s&W||(U(l,e),s&(A|ot)&&(s&I?Se(l,pt):Vt(l)))}}function ee(t){console.warn("https://svelte.dev/e/hydration_mismatch")}let m=!1;function q(t){m=t}let b;function M(t){if(t===null)throw ee(),_t;return b=t}function gt(){return M(B(b))}function st(t){if(m){if(B(b)!==null)throw ee(),_t;b=t}}function Ir(t=1){if(m){for(var e=t,r=b;e--;)r=B(r);b=r}}function re(){for(var t=0,e=b;;){if(e.nodeType===8){var r=e.data;if(r===Wt){if(t===0)return e;t-=1}else(r===be||r===Kt)&&(t+=1)}var n=B(e);e.remove(),e=n}}var Ce,Ne,ze;function ne(){if(Ce===void 0){Ce=window;var t=Element.prototype,e=Node.prototype;Ne=zt(e,"firstChild").get,ze=zt(e,"nextSibling").get,t.__click=void 0,t.__className="",t.__attributes=null,t.__styles=null,t.__e=void 0,Text.prototype.__t=void 0}}function bt(t=""){return document.createTextNode(t)}function V(t){return Ne.call(t)}function B(t){return ze.call(t)}function $t(t,e){if(!m)return V(t);var r=V(b);if(r===null)r=b.appendChild(bt());else if(e&&r.nodeType!==3){var n=bt();return r==null||r.before(n),M(n),n}return M(r),r}function Ae(t,e){if(!m){var r=V(t);return r instanceof Comment&&r.data===""?B(r):r}return b}function It(t,e=1,r=!1){let n=m?b:t;for(var o;e--;)o=n,n=B(n);if(!m)return n;var l=n==null?void 0:n.nodeType;if(r&&l!==3){var s=bt();return n===null?o==null||o.after(s):n.before(s),M(s),s}return M(n),n}function Oe(t){t.textContent=""}function Re(t){var e=I|W;p===null?e|=ot:p.f|=xe;var r=x!==null&&x.f&I?x:null;const n={children:null,ctx:L,deps:null,equals:Ee,f:e,fn:t,reactions:null,v:null,version:0,parent:r??p};return r!==null&&(r.children??(r.children=[])).push(n),n}function De(t){var e=t.children;if(e!==null){t.children=null;for(var r=0;r<e.length;r+=1){var n=e[r];n.f&I?oe(n):Y(n)}}}function Mr(t){for(var e=t.parent;e!==null;){if(!(e.f&I))return e;e=e.parent}return null}function Ie(t){var e,r=p;J(Mr(t));try{De(t),e=Ke(t)}finally{J(r)}return e}function Me(t){var e=Ie(t),r=(et||t.f&ot)&&t.deps!==null?pt:A;U(t,r),t.equals(e)||(t.v=e,t.version=Ge())}function oe(t){De(t),Et(t,0),U(t,lt),t.v=t.children=t.deps=t.ctx=t.reactions=null}function Lr(t,e){var r=e.last;r===null?e.last=e.first=t:(r.next=t,t.prev=r,e.last=t)}function it(t,e,r,n=!0){var o=(t&nt)!==0,l=p,s={ctx:L,deps:null,deriveds:null,nodes_start:null,nodes_end:null,f:t|W,first:null,fn:e,last:null,next:null,parent:o?null:l,prev:null,teardown:null,transitions:null,version:0};if(r){var i=at;try{Ye(!0),qt(s),s.f|=xr}catch(v){throw Y(s),v}finally{Ye(i)}}else e!==null&&Vt(s);var u=r&&s.deps===null&&s.first===null&&s.nodes_start===null&&s.teardown===null&&(s.f&xe)===0;if(!u&&!o&&n&&(l!==null&&Lr(s,l),x!==null&&x.f&I)){var c=x;(c.children??(c.children=[])).push(s)}return s}function jr(t){const e=it(nt,t,!0);return()=>{Y(e)}}function Fr(t){const e=it(nt,t,!0);return(r={})=>new Promise(n=>{r.outro?Mt(e,()=>{Y(e),n(void 0)}):(Y(e),n(void 0))})}function Pr(t){return it(ye,t,!1)}function Hr(t){return it(At,t,!0)}function le(t){return se(t)}function se(t,e=0){return it(At|Xt|e,t,!0)}function mt(t,e=!0){return it(At|F,t,!0,e)}function Le(t){var e=t.teardown;if(e!==null){const r=x;ct(null);try{e.call(null)}finally{ct(r)}}}function je(t){var e=t.deriveds;if(e!==null){t.deriveds=null;for(var r=0;r<e.length;r+=1)oe(e[r])}}function Fe(t,e=!1){var r=t.first;for(t.first=t.last=null;r!==null;){var n=r.next;Y(r,e),r=n}}function qr(t){for(var e=t.first;e!==null;){var r=e.next;e.f&F||Y(e),e=r}}function Y(t,e=!0){var r=!1;if((e||t.f&wr)&&t.nodes_start!==null){for(var n=t.nodes_start,o=t.nodes_end;n!==null;){var l=n===o?null:B(n);n.remove(),n=l}r=!0}Fe(t,e&&!r),je(t),Et(t,0),U(t,lt);var s=t.transitions;if(s!==null)for(const u of s)u.stop();Le(t);var i=t.parent;i!==null&&i.first!==null&&Pe(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Pe(t){var e=t.parent,r=t.prev,n=t.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),e!==null&&(e.first===t&&(e.first=n),e.last===t&&(e.last=r))}function Mt(t,e){var r=[];ie(t,r,!0),He(r,()=>{Y(t),e&&e()})}function He(t,e){var r=t.length;if(r>0){var n=()=>--r||e();for(var o of t)o.out(n)}else e()}function ie(t,e,r){if(!(t.f&P)){if(t.f^=P,t.transitions!==null)for(const s of t.transitions)(s.is_global||r)&&e.push(s);for(var n=t.first;n!==null;){var o=n.next,l=(n.f&Qt)!==0||(n.f&F)!==0;ie(n,e,l?r:!1),n=o}}}function Lt(t){qe(t,!0)}function qe(t,e){if(t.f&P){wt(t)&&qt(t),t.f^=P;for(var r=t.first;r!==null;){var n=r.next,o=(r.f&Qt)!==0||(r.f&F)!==0;qe(r,o?e:!1),r=n}if(t.transitions!==null)for(const l of t.transitions)(l.is_global||e)&&l.in()}}let jt=!1,ae=[];function Ve(){jt=!1;const t=ae.slice();ae=[],yr(t)}function Vr(t){jt||(jt=!0,queueMicrotask(Ve)),ae.push(t)}function Br(){jt&&Ve()}const Be=0,Yr=1;let Ft=!1,Pt=Be,yt=!1,xt=null,at=!1;function Ye(t){at=t}let tt=[],ut=0,In=[],x=null;function ct(t){x=t}let p=null;function J(t){p=t}let H=null;function Ur(t){H=t}let T=null,O=0,X=null;function Gr(t){X=t}let Ue=1,et=!1,L=null;function Ge(){return++Ue}function Kr(){return!ke}function wt(t){var s,i;var e=t.f;if(e&W)return!0;if(e&pt){var r=t.deps,n=(e&ot)!==0;if(r!==null){var o;if(e&Ot){for(o=0;o<r.length;o++)((s=r[o]).reactions??(s.reactions=[])).push(t);t.f^=Ot}for(o=0;o<r.length;o++){var l=r[o];if(wt(l)&&Me(l),n&&p!==null&&!et&&!((i=l==null?void 0:l.reactions)!=null&&i.includes(t))&&(l.reactions??(l.reactions=[])).push(t),l.version>t.version)return!0}}(!n||p!==null&&!et)&&U(t,A)}return!1}function Wr(t,e){for(var r=e;r!==null;){if(r.f&Zt)try{r.fn(t);return}catch{r.f^=Zt}r=r.parent}throw Ft=!1,t}function Jr(t){return(t.f&lt)===0&&(t.parent===null||(t.parent.f&Zt)===0)}function Ht(t,e,r,n){if(Ft){if(r===null&&(Ft=!1),Jr(e))throw t;return}r!==null&&(Ft=!0);{Wr(t,e);return}}function Ke(t){var h;var e=T,r=O,n=X,o=x,l=et,s=H,i=L,u=t.f;T=null,O=0,X=null,x=u&(F|nt)?null:t,et=!at&&(u&ot)!==0,H=null,L=t.ctx;try{var c=(0,t.fn)(),v=t.deps;if(T!==null){var a;if(Et(t,O),v!==null&&O>0)for(v.length=O+T.length,a=0;a<T.length;a++)v[O+a]=T[a];else t.deps=v=T;if(!et)for(a=O;a<v.length;a++)((h=v[a]).reactions??(h.reactions=[])).push(t)}else v!==null&&O<v.length&&(Et(t,O),v.length=O);return c}finally{T=e,O=r,X=n,x=o,et=l,H=s,L=i}}function Xr(t,e){let r=e.reactions;if(r!==null){var n=r.indexOf(t);if(n!==-1){var o=r.length-1;o===0?r=e.reactions=null:(r[n]=r[o],r.pop())}}r===null&&e.f&I&&(T===null||!T.includes(e))&&(U(e,pt),e.f&(ot|Ot)||(e.f^=Ot),Et(e,0))}function Et(t,e){var r=t.deps;if(r!==null)for(var n=e;n<r.length;n++)Xr(t,r[n])}function qt(t){var e=t.f;if(!(e&lt)){U(t,A);var r=p,n=L;p=t;try{e&Xt?qr(t):Fe(t),je(t),Le(t);var o=Ke(t);t.teardown=typeof o=="function"?o:null,t.version=Ue}catch(l){Ht(l,t,r,n||t.ctx)}finally{p=r}}}function We(){if(ut>1e3){ut=0;try{Cr()}catch(t){if(xt!==null)Ht(t,xt,null);else throw t}}ut++}function Je(t){var e=t.length;if(e!==0){We();var r=at;at=!0;try{for(var n=0;n<e;n++){var o=t[n];o.f&A||(o.f^=A);var l=[];Xe(o,l),Zr(l)}}finally{at=r}}}function Zr(t){var e=t.length;if(e!==0)for(var r=0;r<e;r++){var n=t[r];if(!(n.f&(lt|P)))try{wt(n)&&(qt(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null?Pe(n):n.fn=null))}catch(o){Ht(o,n,null,n.ctx)}}}function Qr(){if(yt=!1,ut>1001)return;const t=tt;tt=[],Je(t),yt||(ut=0,xt=null)}function Vt(t){Pt===Be&&(yt||(yt=!0,queueMicrotask(Qr))),xt=t;for(var e=t;e.parent!==null;){e=e.parent;var r=e.f;if(r&(nt|F)){if(!(r&A))return;e.f^=A}}tt.push(e)}function Xe(t,e){var r=t.first,n=[];t:for(;r!==null;){var o=r.f,l=(o&F)!==0,s=l&&(o&A)!==0,i=r.next;if(!s&&!(o&P))if(o&At){if(l)r.f^=A;else try{wt(r)&&qt(r)}catch(a){Ht(a,r,null,r.ctx)}var u=r.first;if(u!==null){r=u;continue}}else o&ye&&n.push(r);if(i===null){let a=r.parent;for(;a!==null;){if(t===a)break t;var c=a.next;if(c!==null){r=c;continue t}a=a.parent}}r=i}for(var v=0;v<n.length;v++)u=n[v],e.push(u),Xe(u,e)}function Z(t){var e=Pt,r=tt;try{We();const o=[];Pt=Yr,tt=o,yt=!1,Je(r);var n=t==null?void 0:t();return Br(),(tt.length>0||o.length>0)&&Z(),ut=0,xt=null,n}finally{Pt=e,tt=r}}function R(t){var v;var e=t.f,r=(e&I)!==0;if(r&&e&lt){var n=Ie(t);return oe(t),n}if(x!==null){H!==null&&H.includes(t)&&Ar();var o=x.deps;T===null&&o!==null&&o[O]===t?O++:T===null?T=[t]:T.push(t),X!==null&&p!==null&&p.f&A&&!(p.f&F)&&X.includes(t)&&(U(p,W),Vt(p))}else if(r&&t.deps===null)for(var l=t,s=l.parent,i=l;s!==null;)if(s.f&I){var u=s;i=u,s=u.parent}else{var c=s;(v=c.deriveds)!=null&&v.includes(i)||(c.deriveds??(c.deriveds=[])).push(i);break}return r&&(l=t,wt(l)&&Me(l)),t.v}function tn(t){const e=x;try{return x=null,t()}finally{x=e}}const en=~(W|pt|A);function U(t,e){t.f=t.f&en|e}function Bt(t,e=!1,r){L={p:L,c:null,e:null,m:!1,s:t,x:null,l:null}}function Yt(t){const e=L;if(e!==null){t!==void 0&&(e.x=t);const s=e.e;if(s!==null){var r=p,n=x;e.e=null;try{for(var o=0;o<s.length;o++){var l=s[o];J(l.effect),ct(l.reaction),Pr(l.fn)}}finally{J(r),ct(n)}}L=e.p,e.m=!0}return t||{}}const Ze=new Set,ue=new Set;function Qe(t){for(var e=0;e<t.length;e++)Ze.add(t[e]);for(var r of ue)r(t)}function Ut(t){var _;var e=this,r=e.ownerDocument,n=t.type,o=((_=t.composedPath)==null?void 0:_.call(t))||[],l=o[0]||t.target,s=0,i=t.__root;if(i){var u=o.indexOf(i);if(u!==-1&&(e===document||e===window)){t.__root=e;return}var c=o.indexOf(e);if(c===-1)return;u<=c&&(s=u)}if(l=o[s]||t.target,l!==e){Nt(t,"currentTarget",{configurable:!0,get(){return l||r}});var v=x,a=p;ct(null),J(null);try{for(var h,f=[];l!==null;){var d=l.assignedSlot||l.parentNode||l.host||null;try{var w=l["__"+n];if(w!==void 0&&!l.disabled)if(me(w)){var[C,...S]=w;C.apply(l,[t,...S])}else w.call(l,t)}catch(y){h?f.push(y):h=y}if(t.cancelBubble||d===e||d===null)break;l=d}if(h){for(let y of f)queueMicrotask(()=>{throw y});throw h}}finally{t.__root=e,delete t.currentTarget,ct(v),J(a)}}}function tr(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function ft(t,e){var r=p;r.nodes_start===null&&(r.nodes_start=t,r.nodes_end=e)}function kt(t,e){var r=(e&dr)!==0,n=(e&_r)!==0,o,l=!t.startsWith("<!>");return()=>{if(m)return ft(b,null),b;o===void 0&&(o=tr(l?t:"<!>"+t),r||(o=V(o)));var s=n?document.importNode(o,!0):o.cloneNode(!0);if(r){var i=V(s),u=s.lastChild;ft(i,u)}else ft(s,s);return s}}function rn(t,e,r="svg"){var n=!t.startsWith("<!>"),o=`<${r}>${n?t:"<!>"+t}</${r}>`,l;return()=>{if(m)return ft(b,null),b;if(!l){var s=tr(o),i=V(s);l=V(i)}var u=l.cloneNode(!0);return ft(u,u),u}}function rt(t,e){if(m){p.nodes_end=b,gt();return}t!==null&&t.before(e)}function nn(t,e){var r=e==null?"":typeof e=="object"?e+"":e;r!==(t.__t??(t.__t=t.nodeValue))&&(t.__t=r,t.nodeValue=r==null?"":r+"")}function er(t,e){return rr(t,e)}function on(t,e){ne(),e.intro=e.intro??!1;const r=e.target,n=m,o=b;try{for(var l=V(r);l&&(l.nodeType!==8||l.data!==be);)l=B(l);if(!l)throw _t;q(!0),M(l),gt();const s=rr(t,{...e,anchor:l});if(b===null||b.nodeType!==8||b.data!==Wt)throw ee(),_t;return q(!1),s}catch(s){if(s===_t)return e.recover===!1&&Nr(),ne(),Oe(r),q(!1),er(t,e);throw s}finally{q(n),M(o)}}const vt=new Map;function rr(t,{target:e,anchor:r,props:n={},events:o,context:l,intro:s=!0}){ne();var i=new Set,u=a=>{for(var h=0;h<a.length;h++){var f=a[h];if(!i.has(f)){i.add(f);var d=br(f);e.addEventListener(f,Ut,{passive:d});var w=vt.get(f);w===void 0?(document.addEventListener(f,Ut,{passive:d}),vt.set(f,1)):vt.set(f,w+1)}}};u(Jt(Ze)),ue.add(u);var c=void 0,v=Fr(()=>{var a=r??e.appendChild(bt());return mt(()=>{if(l){Bt({});var h=L;h.c=l}o&&(n.$$events=o),m&&ft(a,null),c=t(a,n)||{},m&&(p.nodes_end=b),l&&Yt()}),()=>{var d;for(var h of i){e.removeEventListener(h,Ut);var f=vt.get(h);--f===0?(document.removeEventListener(h,Ut),vt.delete(h)):vt.set(h,f)}ue.delete(u),a!==r&&((d=a.parentNode)==null||d.removeChild(a))}});return ce.set(c,v),c}let ce=new WeakMap;function ln(t,e){const r=ce.get(t);return r?(ce.delete(t),r(e)):Promise.resolve()}function nr(t,e,r=!1){m&&gt();var n=t,o=null,l=null,s=pr,i=r?Qt:0,u=!1;const c=(a,h=!0)=>{u=!0,v(h,a)},v=(a,h)=>{if(s===(s=a))return;let f=!1;if(m){const d=n.data===Kt;!!s===d&&(n=re(),M(n),q(!1),f=!0)}s?(o?Lt(o):h&&(o=mt(()=>h(n))),l&&Mt(l,()=>{l=null})):(l?Lt(l):h&&(l=mt(()=>h(n))),o&&Mt(o,()=>{o=null})),f&&q(!0)};se(()=>{u=!1,e(c),u||v(null,null)},i),m&&(n=b)}function sn(t,e){return e}function an(t,e,r,n){for(var o=[],l=e.length,s=0;s<l;s++)ie(e[s].e,o,!0);var i=l>0&&o.length===0&&r!==null;if(i){var u=r.parentNode;Oe(u),u.append(r),n.clear(),Q(t,e[0].prev,e[l-1].next)}He(o,()=>{for(var c=0;c<l;c++){var v=e[c];i||(n.delete(v.k),Q(t,v.prev,v.next)),Y(v.e,!i)}})}function un(t,e,r,n,o,l=null){var s=t,i={flags:e,items:new Map,first:null};{var u=t;s=m?M(V(u)):u.appendChild(bt())}m&&gt();var c=null,v=!1;se(()=>{var a=r(),h=me(a)?a:a==null?[]:Jt(a),f=h.length;if(v&&f===0)return;v=f===0;let d=!1;if(m){var w=s.data===Kt;w!==(f===0)&&(s=re(),M(s),q(!1),d=!0)}if(m){for(var C=null,S,_=0;_<f;_++){if(b.nodeType===8&&b.data===Wt){s=b,d=!0,q(!1);break}var y=h[_],K=n(y,_);S=or(b,i,C,null,y,K,_,o,e),i.items.set(K,S),C=S}f>0&&M(re())}if(!m){var E=x;cn(h,i,s,o,e,(E.f&P)!==0,n)}l!==null&&(f===0?c?Lt(c):c=mt(()=>l(s)):c!==null&&Mt(c,()=>{c=null})),d&&q(!0)}),m&&(s=b)}function cn(t,e,r,n,o,l,s,i){var u=t.length,c=e.items,v=e.first,a=v,h,f=null,d=[],w=[],C,S,_,y;for(y=0;y<u;y+=1){if(C=t[y],S=s(C,y),_=c.get(S),_===void 0){var K=a?a.e.nodes_start:r;f=or(K,e,f,f===null?e.first:f.next,C,S,y,n,o),c.set(S,f),d=[],w=[],a=f.next;continue}if(fn(_,C,y),_.e.f&P&&Lt(_.e),_!==a){if(h!==void 0&&h.has(_)){if(d.length<w.length){var E=w[0],N;f=E.prev;var dt=d[0],de=d[d.length-1];for(N=0;N<d.length;N+=1)lr(d[N],E,r);for(N=0;N<w.length;N+=1)h.delete(w[N]);Q(e,dt.prev,de.next),Q(e,f,dt),Q(e,de,E),a=E,f=de,y-=1,d=[],w=[]}else h.delete(_),lr(_,a,r),Q(e,_.prev,_.next),Q(e,_,f===null?e.first:f.next),Q(e,f,_),f=_;continue}for(d=[],w=[];a!==null&&a.k!==S;)(l||!(a.e.f&P))&&(h??(h=new Set)).add(a),w.push(a),a=a.next;if(a===null)continue;_=a}d.push(_),f=_,a=_.next}if(a!==null||h!==void 0){for(var _e=h===void 0?[]:Jt(h);a!==null;)(l||!(a.e.f&P))&&_e.push(a),a=a.next;var An=_e.length;if(An>0){var On=u===0?r:null;an(e,_e,On,c)}}p.first=e.first&&e.first.e,p.last=f&&f.e}function fn(t,e,r,n){Te(t.v,e),t.i=r}function or(t,e,r,n,o,l,s,i,u,c){var v=(u&k)!==0,a=(u&vr)===0,h=v?a?te(o):Rt(o):o,f=u&St?Rt(s):s,d={i:f,v:h,k:l,a:null,e:null,prev:r,next:n};try{return d.e=mt(()=>i(t,h,f),m),d.e.prev=r&&r.e,d.e.next=n&&n.e,r===null?e.first=d:(r.next=d,r.e.next=d.e),n!==null&&(n.prev=d,n.e.prev=d.e),d}finally{}}function lr(t,e,r){for(var n=t.next?t.next.e.nodes_start:r,o=e?e.e.nodes_start:r,l=t.e.nodes_start;l!==n;){var s=B(l);o.before(l),l=s}}function Q(t,e,r){e===null?t.first=r:(e.next=r,e.e.next=r&&r.e),r!==null&&(r.prev=e,r.e.prev=e&&e.e)}function vn(t,e,r,n,o){var i;m&&gt();var l=(i=e.$$slots)==null?void 0:i[r],s=!1;l===!0&&(l=e.children,s=!0),l===void 0?o!==null&&o(t):l(t,s?()=>n:n)}function fe(t,e){Vr(()=>{var r=t.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+e.hash)){const o=document.createElement("style");o.id=e.hash,o.textContent=e.code,n.appendChild(o)}})}function Tt(t,e,r,n){var o=t.__attributes??(t.__attributes={});m&&(o[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")||o[e]!==(o[e]=r)&&(e==="style"&&"__styles"in t&&(t.__styles={}),e==="loading"&&(t[kr]=r),r==null?t.removeAttribute(e):typeof r!="string"&&hn(t).includes(e)?t[e]=r:t.setAttribute(e,r))}var sr=new Map;function hn(t){var e=sr.get(t.nodeName);if(e)return e;sr.set(t.nodeName,e=[]);for(var r,n=t,o=Element.prototype;o!==n;){r=$r(n);for(var l in r)r[l].set&&e.push(l);n=mr(n)}return e}function dn(t){for(var e=p,r=p;e!==null&&!(e.f&(F|nt));)e=e.parent;try{return J(e),t()}finally{J(r)}}function ht(t,e,r,n){var K;var o=!ke,l=(r&hr)!==0,s=!1,i;i=t[e];var u=Er in t||we in t,c=((K=zt(t,e))==null?void 0:K.set)??(u&&l&&e in t?E=>t[e]=E:void 0),v=n,a=!0,h=!1,f=()=>(h=!0,a&&(a=!1,v=n),v);i===void 0&&n!==void 0&&(c&&o&&zr(),i=f(),c&&c(i));var d;if(d=()=>{var E=t[e];return E===void 0?f():(a=!0,h=!1,E)},c){var w=t.$$legacy;return function(E,N){return arguments.length>0?((!N||w||s)&&c(N?d():E),E):d()}}var C=!1,S=!1,_=te(i),y=dn(()=>Re(()=>{var E=d(),N=R(_);return C?(C=!1,S=!0,N):(S=!1,_.v=E)}));return function(E,N){if(arguments.length>0){const dt=N?R(y):E;return y.equals(dt)||(C=!0,Dt(_,dt),h&&v!==void 0&&(v=dt),tn(()=>R(y))),E}return R(y)}}function _n(t){return new pn(t)}class pn{constructor(e){pe(this,G);pe(this,D);var l;var r=new Map,n=(s,i)=>{var u=te(i);return r.set(s,u),u};const o=new Proxy({...e.props||{},$$events:{}},{get(s,i){return R(r.get(i)??n(i,Reflect.get(s,i)))},has(s,i){return i===we?!0:(R(r.get(i)??n(i,Reflect.get(s,i))),Reflect.has(s,i))},set(s,i,u){return Dt(r.get(i)??n(i,u),u),Reflect.set(s,i,u)}});ge(this,D,(e.hydrate?on:er)(e.component,{target:e.target,anchor:e.anchor,props:o,context:e.context,intro:e.intro??!1,recover:e.recover})),(!((l=e==null?void 0:e.props)!=null&&l.$$host)||e.sync===!1)&&Z(),ge(this,G,o.$$events);for(const s of Object.keys(z(this,D)))s==="$set"||s==="$destroy"||s==="$on"||Nt(this,s,{get(){return z(this,D)[s]},set(i){z(this,D)[s]=i},enumerable:!0});z(this,D).$set=s=>{Object.assign(o,s)},z(this,D).$destroy=()=>{ln(z(this,D))}}$set(e){z(this,D).$set(e)}$on(e,r){z(this,G)[e]=z(this,G)[e]||[];const n=(...o)=>r.call(this,...o);return z(this,G)[e].push(n),()=>{z(this,G)[e]=z(this,G)[e].filter(o=>o!==n)}}$destroy(){z(this,D).$destroy()}}G=new WeakMap,D=new WeakMap;let ir;typeof HTMLElement=="function"&&(ir=class extends HTMLElement{constructor(e,r,n){super();j(this,"$$ctor");j(this,"$$s");j(this,"$$c");j(this,"$$cn",!1);j(this,"$$d",{});j(this,"$$r",!1);j(this,"$$p_d",{});j(this,"$$l",{});j(this,"$$l_u",new Map);j(this,"$$me");this.$$ctor=e,this.$$s=r,n&&this.attachShadow({mode:"open"})}addEventListener(e,r,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(r),this.$$c){const o=this.$$c.$on(e,r);this.$$l_u.set(r,o)}super.addEventListener(e,r,n)}removeEventListener(e,r,n){if(super.removeEventListener(e,r,n),this.$$c){const o=this.$$l_u.get(r);o&&(o(),this.$$l_u.delete(r))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(o){return l=>{const s=document.createElement("slot");o!=="default"&&(s.name=o),rt(l,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=gn(this);for(const o of this.$$s)o in n&&(o==="default"&&!this.$$d.children?(this.$$d.children=e(o),r.default=!0):r[o]=e(o));for(const o of this.attributes){const l=this.$$g_p(o.name);l in this.$$d||(this.$$d[l]=Gt(l,o.value,this.$$p_d,"toProp"))}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=_n({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=jr(()=>{Hr(()=>{var o;this.$$r=!0;for(const l of Ct(this.$$c)){if(!((o=this.$$p_d[l])!=null&&o.reflect))continue;this.$$d[l]=this.$$c[l];const s=Gt(l,this.$$d[l],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,s)}this.$$r=!1})});for(const o in this.$$l)for(const l of this.$$l[o]){const s=this.$$c.$on(o,l);this.$$l_u.set(l,s)}this.$$l={}}}attributeChangedCallback(e,r,n){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Gt(e,n,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Ct(this.$$p_d).find(r=>this.$$p_d[r].attribute===e||!this.$$p_d[r].attribute&&r.toLowerCase()===e)||e}});function Gt(t,e,r,n){var l;const o=(l=r[t])==null?void 0:l.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!r[t])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function gn(t){const e={};return t.childNodes.forEach(r=>{e[r.slot||"default"]=!0}),e}function ve(t,e,r,n,o,l){let s=class extends ir{constructor(){super(t,r,o),this.$$p_d=e}static get observedAttributes(){return Ct(e).map(i=>(e[i].attribute||i).toLowerCase())}};return Ct(e).forEach(i=>{Nt(s.prototype,i,{get(){return this.$$c&&i in this.$$c?this.$$c[i]:this.$$d[i]},set(u){var a;u=Gt(i,u,e),this.$$d[i]=u;var c=this.$$c;if(c){var v=(a=zt(c,i))==null?void 0:a.get;v?c[i]=u:c.$set({[i]:u})}}})}),n.forEach(i=>{Nt(s.prototype,i,{get(){var u;return(u=this.$$c)==null?void 0:u[i]}})}),t.element=s,s}const bn=[{name:"nokakoi",url:"https://nokakoi.com/app/?text={text}",icon:"https://nokakoi.com/favicon.ico"},{name:"Nos Haiku",url:"https://nos-haiku.vercel.app/antenna?content={text}",icon:"https://nos-haiku.vercel.app/favicon.png"},{name:"nostter",url:"https://nostter.app/post?content={text}",icon:"https://nostter.app/favicon.ico"},{name:"Lumilumi",url:"https://lumilumi.app/post?text={text}",icon:"https://lumilumi.app/favicon.ico"}];var $n=t=>t.stopPropagation(),mn=(t,e,r)=>e(R(r).url),yn=kt('<button class="item svelte-1sy5hzc"><img> <span class="item-name"> </span></button>'),xn=kt('<div class="overlay svelte-1sy5hzc"><div class="inner svelte-1sy5hzc"><button class="close-button svelte-1sy5hzc" aria-label="Close">✖</button> <h2 class="title svelte-1sy5hzc">Select Share Client</h2> <div class="list svelte-1sy5hzc"></div> <div class="footer svelte-1sy5hzc"><a target="_blank" referrerpolicy="no-referrer" href="https://tsukemonogit.github.io/nostr-share-component/" class="svelte-1sy5hzc">nostr-share-component</a></div></div></div>');const wn={hash:"svelte-1sy5hzc",code:`
1
+ (function(g,$){typeof exports=="object"&&typeof module<"u"?$(exports):typeof define=="function"&&define.amd?define(["exports"],$):(g=typeof globalThis<"u"?globalThis:g||self,$(g.NostrShare={}))})(this,function(g){"use strict";var Rn=Object.defineProperty;var cr=g=>{throw TypeError(g)};var Dn=(g,$,k)=>$ in g?Rn(g,$,{enumerable:!0,configurable:!0,writable:!0,value:k}):g[$]=k;var j=(g,$,k)=>Dn(g,typeof $!="symbol"?$+"":$,k),fr=(g,$,k)=>$.has(g)||cr("Cannot "+k);var z=(g,$,k)=>(fr(g,$,"read from private field"),k?k.call(g):$.get(g)),pe=(g,$,k)=>$.has(g)?cr("Cannot add the same private member more than once"):$ instanceof WeakSet?$.add(g):$.set(g,k),ge=(g,$,k,St)=>(fr(g,$,"write to private field"),St?St.call(g,k):$.set(g,k),k);var G,D;const $="5";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add($);const k=1,St=2,vr=16,hr=8,dr=1,_r=2,be="[",Kt="[!",Wt="]",_t={},pr=Symbol(),gr=["touchstart","touchmove"];function br(t){return gr.includes(t)}const $e=!1;var me=Array.isArray,Jt=Array.from,Ct=Object.keys,Nt=Object.defineProperty,zt=Object.getOwnPropertyDescriptor,$r=Object.getOwnPropertyDescriptors,mr=Object.getPrototypeOf;function yr(t){for(var e=0;e<t.length;e++)t[e]()}const I=2,ye=4,At=8,Xt=16,F=32,nt=64,Zt=128,ot=256,Ot=512,A=1024,W=2048,pt=4096,P=8192,lt=16384,xr=32768,Qt=65536,wr=1<<19,xe=1<<20,Er=Symbol("$state"),we=Symbol("legacy props"),kr=Symbol("");function Ee(t){return t===this.v}function Tr(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Sr(t){return!Tr(t,this.v)}function Cr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Nr(){throw new Error("https://svelte.dev/e/hydration_failed")}function zr(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function Ar(){throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function Or(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let ke=!1;function Rt(t,e){var r={f:0,v:t,reactions:null,equals:Ee,version:0};return r}function Rr(t){return Dr(Rt(t))}function te(t,e=!1){const r=Rt(t);return e||(r.equals=Sr),r}function Dr(t){return x!==null&&x.f&I&&(H===null?Ur([t]):H.push(t)),t}function Dt(t,e){return x!==null&&Kr()&&x.f&(I|Xt)&&(H===null||!H.includes(t))&&Or(),Te(t,e)}function Te(t,e){return t.equals(e)||(t.v=e,t.version=Ge(),Se(t,W),p!==null&&p.f&A&&!(p.f&F)&&(T!==null&&T.includes(t)?(U(p,W),Vt(p)):X===null?Gr([t]):X.push(t))),e}function Se(t,e){var r=t.reactions;if(r!==null)for(var n=r.length,o=0;o<n;o++){var l=r[o],s=l.f;s&W||(U(l,e),s&(A|ot)&&(s&I?Se(l,pt):Vt(l)))}}function ee(t){console.warn("https://svelte.dev/e/hydration_mismatch")}let m=!1;function q(t){m=t}let b;function M(t){if(t===null)throw ee(),_t;return b=t}function gt(){return M(B(b))}function st(t){if(m){if(B(b)!==null)throw ee(),_t;b=t}}function Ir(t=1){if(m){for(var e=t,r=b;e--;)r=B(r);b=r}}function re(){for(var t=0,e=b;;){if(e.nodeType===8){var r=e.data;if(r===Wt){if(t===0)return e;t-=1}else(r===be||r===Kt)&&(t+=1)}var n=B(e);e.remove(),e=n}}var Ce,Ne,ze;function ne(){if(Ce===void 0){Ce=window;var t=Element.prototype,e=Node.prototype;Ne=zt(e,"firstChild").get,ze=zt(e,"nextSibling").get,t.__click=void 0,t.__className="",t.__attributes=null,t.__styles=null,t.__e=void 0,Text.prototype.__t=void 0}}function bt(t=""){return document.createTextNode(t)}function V(t){return Ne.call(t)}function B(t){return ze.call(t)}function $t(t,e){if(!m)return V(t);var r=V(b);if(r===null)r=b.appendChild(bt());else if(e&&r.nodeType!==3){var n=bt();return r==null||r.before(n),M(n),n}return M(r),r}function Ae(t,e){if(!m){var r=V(t);return r instanceof Comment&&r.data===""?B(r):r}return b}function It(t,e=1,r=!1){let n=m?b:t;for(var o;e--;)o=n,n=B(n);if(!m)return n;var l=n==null?void 0:n.nodeType;if(r&&l!==3){var s=bt();return n===null?o==null||o.after(s):n.before(s),M(s),s}return M(n),n}function Oe(t){t.textContent=""}function Re(t){var e=I|W;p===null?e|=ot:p.f|=xe;var r=x!==null&&x.f&I?x:null;const n={children:null,ctx:L,deps:null,equals:Ee,f:e,fn:t,reactions:null,v:null,version:0,parent:r??p};return r!==null&&(r.children??(r.children=[])).push(n),n}function De(t){var e=t.children;if(e!==null){t.children=null;for(var r=0;r<e.length;r+=1){var n=e[r];n.f&I?oe(n):Y(n)}}}function Mr(t){for(var e=t.parent;e!==null;){if(!(e.f&I))return e;e=e.parent}return null}function Ie(t){var e,r=p;J(Mr(t));try{De(t),e=Ke(t)}finally{J(r)}return e}function Me(t){var e=Ie(t),r=(et||t.f&ot)&&t.deps!==null?pt:A;U(t,r),t.equals(e)||(t.v=e,t.version=Ge())}function oe(t){De(t),Et(t,0),U(t,lt),t.v=t.children=t.deps=t.ctx=t.reactions=null}function Lr(t,e){var r=e.last;r===null?e.last=e.first=t:(r.next=t,t.prev=r,e.last=t)}function it(t,e,r,n=!0){var o=(t&nt)!==0,l=p,s={ctx:L,deps:null,deriveds:null,nodes_start:null,nodes_end:null,f:t|W,first:null,fn:e,last:null,next:null,parent:o?null:l,prev:null,teardown:null,transitions:null,version:0};if(r){var i=at;try{Ye(!0),qt(s),s.f|=xr}catch(v){throw Y(s),v}finally{Ye(i)}}else e!==null&&Vt(s);var u=r&&s.deps===null&&s.first===null&&s.nodes_start===null&&s.teardown===null&&(s.f&xe)===0;if(!u&&!o&&n&&(l!==null&&Lr(s,l),x!==null&&x.f&I)){var c=x;(c.children??(c.children=[])).push(s)}return s}function jr(t){const e=it(nt,t,!0);return()=>{Y(e)}}function Fr(t){const e=it(nt,t,!0);return(r={})=>new Promise(n=>{r.outro?Mt(e,()=>{Y(e),n(void 0)}):(Y(e),n(void 0))})}function Pr(t){return it(ye,t,!1)}function Hr(t){return it(At,t,!0)}function le(t){return se(t)}function se(t,e=0){return it(At|Xt|e,t,!0)}function mt(t,e=!0){return it(At|F,t,!0,e)}function Le(t){var e=t.teardown;if(e!==null){const r=x;ct(null);try{e.call(null)}finally{ct(r)}}}function je(t){var e=t.deriveds;if(e!==null){t.deriveds=null;for(var r=0;r<e.length;r+=1)oe(e[r])}}function Fe(t,e=!1){var r=t.first;for(t.first=t.last=null;r!==null;){var n=r.next;Y(r,e),r=n}}function qr(t){for(var e=t.first;e!==null;){var r=e.next;e.f&F||Y(e),e=r}}function Y(t,e=!0){var r=!1;if((e||t.f&wr)&&t.nodes_start!==null){for(var n=t.nodes_start,o=t.nodes_end;n!==null;){var l=n===o?null:B(n);n.remove(),n=l}r=!0}Fe(t,e&&!r),je(t),Et(t,0),U(t,lt);var s=t.transitions;if(s!==null)for(const u of s)u.stop();Le(t);var i=t.parent;i!==null&&i.first!==null&&Pe(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Pe(t){var e=t.parent,r=t.prev,n=t.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),e!==null&&(e.first===t&&(e.first=n),e.last===t&&(e.last=r))}function Mt(t,e){var r=[];ie(t,r,!0),He(r,()=>{Y(t),e&&e()})}function He(t,e){var r=t.length;if(r>0){var n=()=>--r||e();for(var o of t)o.out(n)}else e()}function ie(t,e,r){if(!(t.f&P)){if(t.f^=P,t.transitions!==null)for(const s of t.transitions)(s.is_global||r)&&e.push(s);for(var n=t.first;n!==null;){var o=n.next,l=(n.f&Qt)!==0||(n.f&F)!==0;ie(n,e,l?r:!1),n=o}}}function Lt(t){qe(t,!0)}function qe(t,e){if(t.f&P){wt(t)&&qt(t),t.f^=P;for(var r=t.first;r!==null;){var n=r.next,o=(r.f&Qt)!==0||(r.f&F)!==0;qe(r,o?e:!1),r=n}if(t.transitions!==null)for(const l of t.transitions)(l.is_global||e)&&l.in()}}let jt=!1,ae=[];function Ve(){jt=!1;const t=ae.slice();ae=[],yr(t)}function Vr(t){jt||(jt=!0,queueMicrotask(Ve)),ae.push(t)}function Br(){jt&&Ve()}const Be=0,Yr=1;let Ft=!1,Pt=Be,yt=!1,xt=null,at=!1;function Ye(t){at=t}let tt=[],ut=0,In=[],x=null;function ct(t){x=t}let p=null;function J(t){p=t}let H=null;function Ur(t){H=t}let T=null,O=0,X=null;function Gr(t){X=t}let Ue=1,et=!1,L=null;function Ge(){return++Ue}function Kr(){return!ke}function wt(t){var s,i;var e=t.f;if(e&W)return!0;if(e&pt){var r=t.deps,n=(e&ot)!==0;if(r!==null){var o;if(e&Ot){for(o=0;o<r.length;o++)((s=r[o]).reactions??(s.reactions=[])).push(t);t.f^=Ot}for(o=0;o<r.length;o++){var l=r[o];if(wt(l)&&Me(l),n&&p!==null&&!et&&!((i=l==null?void 0:l.reactions)!=null&&i.includes(t))&&(l.reactions??(l.reactions=[])).push(t),l.version>t.version)return!0}}(!n||p!==null&&!et)&&U(t,A)}return!1}function Wr(t,e){for(var r=e;r!==null;){if(r.f&Zt)try{r.fn(t);return}catch{r.f^=Zt}r=r.parent}throw Ft=!1,t}function Jr(t){return(t.f&lt)===0&&(t.parent===null||(t.parent.f&Zt)===0)}function Ht(t,e,r,n){if(Ft){if(r===null&&(Ft=!1),Jr(e))throw t;return}r!==null&&(Ft=!0);{Wr(t,e);return}}function Ke(t){var h;var e=T,r=O,n=X,o=x,l=et,s=H,i=L,u=t.f;T=null,O=0,X=null,x=u&(F|nt)?null:t,et=!at&&(u&ot)!==0,H=null,L=t.ctx;try{var c=(0,t.fn)(),v=t.deps;if(T!==null){var a;if(Et(t,O),v!==null&&O>0)for(v.length=O+T.length,a=0;a<T.length;a++)v[O+a]=T[a];else t.deps=v=T;if(!et)for(a=O;a<v.length;a++)((h=v[a]).reactions??(h.reactions=[])).push(t)}else v!==null&&O<v.length&&(Et(t,O),v.length=O);return c}finally{T=e,O=r,X=n,x=o,et=l,H=s,L=i}}function Xr(t,e){let r=e.reactions;if(r!==null){var n=r.indexOf(t);if(n!==-1){var o=r.length-1;o===0?r=e.reactions=null:(r[n]=r[o],r.pop())}}r===null&&e.f&I&&(T===null||!T.includes(e))&&(U(e,pt),e.f&(ot|Ot)||(e.f^=Ot),Et(e,0))}function Et(t,e){var r=t.deps;if(r!==null)for(var n=e;n<r.length;n++)Xr(t,r[n])}function qt(t){var e=t.f;if(!(e&lt)){U(t,A);var r=p,n=L;p=t;try{e&Xt?qr(t):Fe(t),je(t),Le(t);var o=Ke(t);t.teardown=typeof o=="function"?o:null,t.version=Ue}catch(l){Ht(l,t,r,n||t.ctx)}finally{p=r}}}function We(){if(ut>1e3){ut=0;try{Cr()}catch(t){if(xt!==null)Ht(t,xt,null);else throw t}}ut++}function Je(t){var e=t.length;if(e!==0){We();var r=at;at=!0;try{for(var n=0;n<e;n++){var o=t[n];o.f&A||(o.f^=A);var l=[];Xe(o,l),Zr(l)}}finally{at=r}}}function Zr(t){var e=t.length;if(e!==0)for(var r=0;r<e;r++){var n=t[r];if(!(n.f&(lt|P)))try{wt(n)&&(qt(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null?Pe(n):n.fn=null))}catch(o){Ht(o,n,null,n.ctx)}}}function Qr(){if(yt=!1,ut>1001)return;const t=tt;tt=[],Je(t),yt||(ut=0,xt=null)}function Vt(t){Pt===Be&&(yt||(yt=!0,queueMicrotask(Qr))),xt=t;for(var e=t;e.parent!==null;){e=e.parent;var r=e.f;if(r&(nt|F)){if(!(r&A))return;e.f^=A}}tt.push(e)}function Xe(t,e){var r=t.first,n=[];t:for(;r!==null;){var o=r.f,l=(o&F)!==0,s=l&&(o&A)!==0,i=r.next;if(!s&&!(o&P))if(o&At){if(l)r.f^=A;else try{wt(r)&&qt(r)}catch(a){Ht(a,r,null,r.ctx)}var u=r.first;if(u!==null){r=u;continue}}else o&ye&&n.push(r);if(i===null){let a=r.parent;for(;a!==null;){if(t===a)break t;var c=a.next;if(c!==null){r=c;continue t}a=a.parent}}r=i}for(var v=0;v<n.length;v++)u=n[v],e.push(u),Xe(u,e)}function Z(t){var e=Pt,r=tt;try{We();const o=[];Pt=Yr,tt=o,yt=!1,Je(r);var n=t==null?void 0:t();return Br(),(tt.length>0||o.length>0)&&Z(),ut=0,xt=null,n}finally{Pt=e,tt=r}}function R(t){var v;var e=t.f,r=(e&I)!==0;if(r&&e&lt){var n=Ie(t);return oe(t),n}if(x!==null){H!==null&&H.includes(t)&&Ar();var o=x.deps;T===null&&o!==null&&o[O]===t?O++:T===null?T=[t]:T.push(t),X!==null&&p!==null&&p.f&A&&!(p.f&F)&&X.includes(t)&&(U(p,W),Vt(p))}else if(r&&t.deps===null)for(var l=t,s=l.parent,i=l;s!==null;)if(s.f&I){var u=s;i=u,s=u.parent}else{var c=s;(v=c.deriveds)!=null&&v.includes(i)||(c.deriveds??(c.deriveds=[])).push(i);break}return r&&(l=t,wt(l)&&Me(l)),t.v}function tn(t){const e=x;try{return x=null,t()}finally{x=e}}const en=~(W|pt|A);function U(t,e){t.f=t.f&en|e}function Bt(t,e=!1,r){L={p:L,c:null,e:null,m:!1,s:t,x:null,l:null}}function Yt(t){const e=L;if(e!==null){t!==void 0&&(e.x=t);const s=e.e;if(s!==null){var r=p,n=x;e.e=null;try{for(var o=0;o<s.length;o++){var l=s[o];J(l.effect),ct(l.reaction),Pr(l.fn)}}finally{J(r),ct(n)}}L=e.p,e.m=!0}return t||{}}const Ze=new Set,ue=new Set;function Qe(t){for(var e=0;e<t.length;e++)Ze.add(t[e]);for(var r of ue)r(t)}function Ut(t){var _;var e=this,r=e.ownerDocument,n=t.type,o=((_=t.composedPath)==null?void 0:_.call(t))||[],l=o[0]||t.target,s=0,i=t.__root;if(i){var u=o.indexOf(i);if(u!==-1&&(e===document||e===window)){t.__root=e;return}var c=o.indexOf(e);if(c===-1)return;u<=c&&(s=u)}if(l=o[s]||t.target,l!==e){Nt(t,"currentTarget",{configurable:!0,get(){return l||r}});var v=x,a=p;ct(null),J(null);try{for(var h,f=[];l!==null;){var d=l.assignedSlot||l.parentNode||l.host||null;try{var w=l["__"+n];if(w!==void 0&&!l.disabled)if(me(w)){var[C,...S]=w;C.apply(l,[t,...S])}else w.call(l,t)}catch(y){h?f.push(y):h=y}if(t.cancelBubble||d===e||d===null)break;l=d}if(h){for(let y of f)queueMicrotask(()=>{throw y});throw h}}finally{t.__root=e,delete t.currentTarget,ct(v),J(a)}}}function tr(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function ft(t,e){var r=p;r.nodes_start===null&&(r.nodes_start=t,r.nodes_end=e)}function kt(t,e){var r=(e&dr)!==0,n=(e&_r)!==0,o,l=!t.startsWith("<!>");return()=>{if(m)return ft(b,null),b;o===void 0&&(o=tr(l?t:"<!>"+t),r||(o=V(o)));var s=n?document.importNode(o,!0):o.cloneNode(!0);if(r){var i=V(s),u=s.lastChild;ft(i,u)}else ft(s,s);return s}}function rn(t,e,r="svg"){var n=!t.startsWith("<!>"),o=`<${r}>${n?t:"<!>"+t}</${r}>`,l;return()=>{if(m)return ft(b,null),b;if(!l){var s=tr(o),i=V(s);l=V(i)}var u=l.cloneNode(!0);return ft(u,u),u}}function rt(t,e){if(m){p.nodes_end=b,gt();return}t!==null&&t.before(e)}function nn(t,e){var r=e==null?"":typeof e=="object"?e+"":e;r!==(t.__t??(t.__t=t.nodeValue))&&(t.__t=r,t.nodeValue=r==null?"":r+"")}function er(t,e){return rr(t,e)}function on(t,e){ne(),e.intro=e.intro??!1;const r=e.target,n=m,o=b;try{for(var l=V(r);l&&(l.nodeType!==8||l.data!==be);)l=B(l);if(!l)throw _t;q(!0),M(l),gt();const s=rr(t,{...e,anchor:l});if(b===null||b.nodeType!==8||b.data!==Wt)throw ee(),_t;return q(!1),s}catch(s){if(s===_t)return e.recover===!1&&Nr(),ne(),Oe(r),q(!1),er(t,e);throw s}finally{q(n),M(o)}}const vt=new Map;function rr(t,{target:e,anchor:r,props:n={},events:o,context:l,intro:s=!0}){ne();var i=new Set,u=a=>{for(var h=0;h<a.length;h++){var f=a[h];if(!i.has(f)){i.add(f);var d=br(f);e.addEventListener(f,Ut,{passive:d});var w=vt.get(f);w===void 0?(document.addEventListener(f,Ut,{passive:d}),vt.set(f,1)):vt.set(f,w+1)}}};u(Jt(Ze)),ue.add(u);var c=void 0,v=Fr(()=>{var a=r??e.appendChild(bt());return mt(()=>{if(l){Bt({});var h=L;h.c=l}o&&(n.$$events=o),m&&ft(a,null),c=t(a,n)||{},m&&(p.nodes_end=b),l&&Yt()}),()=>{var d;for(var h of i){e.removeEventListener(h,Ut);var f=vt.get(h);--f===0?(document.removeEventListener(h,Ut),vt.delete(h)):vt.set(h,f)}ue.delete(u),a!==r&&((d=a.parentNode)==null||d.removeChild(a))}});return ce.set(c,v),c}let ce=new WeakMap;function ln(t,e){const r=ce.get(t);return r?(ce.delete(t),r(e)):Promise.resolve()}function nr(t,e,r=!1){m&&gt();var n=t,o=null,l=null,s=pr,i=r?Qt:0,u=!1;const c=(a,h=!0)=>{u=!0,v(h,a)},v=(a,h)=>{if(s===(s=a))return;let f=!1;if(m){const d=n.data===Kt;!!s===d&&(n=re(),M(n),q(!1),f=!0)}s?(o?Lt(o):h&&(o=mt(()=>h(n))),l&&Mt(l,()=>{l=null})):(l?Lt(l):h&&(l=mt(()=>h(n))),o&&Mt(o,()=>{o=null})),f&&q(!0)};se(()=>{u=!1,e(c),u||v(null,null)},i),m&&(n=b)}function sn(t,e){return e}function an(t,e,r,n){for(var o=[],l=e.length,s=0;s<l;s++)ie(e[s].e,o,!0);var i=l>0&&o.length===0&&r!==null;if(i){var u=r.parentNode;Oe(u),u.append(r),n.clear(),Q(t,e[0].prev,e[l-1].next)}He(o,()=>{for(var c=0;c<l;c++){var v=e[c];i||(n.delete(v.k),Q(t,v.prev,v.next)),Y(v.e,!i)}})}function un(t,e,r,n,o,l=null){var s=t,i={flags:e,items:new Map,first:null};{var u=t;s=m?M(V(u)):u.appendChild(bt())}m&&gt();var c=null,v=!1;se(()=>{var a=r(),h=me(a)?a:a==null?[]:Jt(a),f=h.length;if(v&&f===0)return;v=f===0;let d=!1;if(m){var w=s.data===Kt;w!==(f===0)&&(s=re(),M(s),q(!1),d=!0)}if(m){for(var C=null,S,_=0;_<f;_++){if(b.nodeType===8&&b.data===Wt){s=b,d=!0,q(!1);break}var y=h[_],K=n(y,_);S=or(b,i,C,null,y,K,_,o,e),i.items.set(K,S),C=S}f>0&&M(re())}if(!m){var E=x;cn(h,i,s,o,e,(E.f&P)!==0,n)}l!==null&&(f===0?c?Lt(c):c=mt(()=>l(s)):c!==null&&Mt(c,()=>{c=null})),d&&q(!0)}),m&&(s=b)}function cn(t,e,r,n,o,l,s,i){var u=t.length,c=e.items,v=e.first,a=v,h,f=null,d=[],w=[],C,S,_,y;for(y=0;y<u;y+=1){if(C=t[y],S=s(C,y),_=c.get(S),_===void 0){var K=a?a.e.nodes_start:r;f=or(K,e,f,f===null?e.first:f.next,C,S,y,n,o),c.set(S,f),d=[],w=[],a=f.next;continue}if(fn(_,C,y),_.e.f&P&&Lt(_.e),_!==a){if(h!==void 0&&h.has(_)){if(d.length<w.length){var E=w[0],N;f=E.prev;var dt=d[0],de=d[d.length-1];for(N=0;N<d.length;N+=1)lr(d[N],E,r);for(N=0;N<w.length;N+=1)h.delete(w[N]);Q(e,dt.prev,de.next),Q(e,f,dt),Q(e,de,E),a=E,f=de,y-=1,d=[],w=[]}else h.delete(_),lr(_,a,r),Q(e,_.prev,_.next),Q(e,_,f===null?e.first:f.next),Q(e,f,_),f=_;continue}for(d=[],w=[];a!==null&&a.k!==S;)(l||!(a.e.f&P))&&(h??(h=new Set)).add(a),w.push(a),a=a.next;if(a===null)continue;_=a}d.push(_),f=_,a=_.next}if(a!==null||h!==void 0){for(var _e=h===void 0?[]:Jt(h);a!==null;)(l||!(a.e.f&P))&&_e.push(a),a=a.next;var An=_e.length;if(An>0){var On=u===0?r:null;an(e,_e,On,c)}}p.first=e.first&&e.first.e,p.last=f&&f.e}function fn(t,e,r,n){Te(t.v,e),t.i=r}function or(t,e,r,n,o,l,s,i,u,c){var v=(u&k)!==0,a=(u&vr)===0,h=v?a?te(o):Rt(o):o,f=u&St?Rt(s):s,d={i:f,v:h,k:l,a:null,e:null,prev:r,next:n};try{return d.e=mt(()=>i(t,h,f),m),d.e.prev=r&&r.e,d.e.next=n&&n.e,r===null?e.first=d:(r.next=d,r.e.next=d.e),n!==null&&(n.prev=d,n.e.prev=d.e),d}finally{}}function lr(t,e,r){for(var n=t.next?t.next.e.nodes_start:r,o=e?e.e.nodes_start:r,l=t.e.nodes_start;l!==n;){var s=B(l);o.before(l),l=s}}function Q(t,e,r){e===null?t.first=r:(e.next=r,e.e.next=r&&r.e),r!==null&&(r.prev=e,r.e.prev=e&&e.e)}function vn(t,e,r,n,o){var i;m&&gt();var l=(i=e.$$slots)==null?void 0:i[r],s=!1;l===!0&&(l=e.children,s=!0),l===void 0?o!==null&&o(t):l(t,s?()=>n:n)}function fe(t,e){Vr(()=>{var r=t.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+e.hash)){const o=document.createElement("style");o.id=e.hash,o.textContent=e.code,n.appendChild(o)}})}function Tt(t,e,r,n){var o=t.__attributes??(t.__attributes={});m&&(o[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")||o[e]!==(o[e]=r)&&(e==="style"&&"__styles"in t&&(t.__styles={}),e==="loading"&&(t[kr]=r),r==null?t.removeAttribute(e):typeof r!="string"&&hn(t).includes(e)?t[e]=r:t.setAttribute(e,r))}var sr=new Map;function hn(t){var e=sr.get(t.nodeName);if(e)return e;sr.set(t.nodeName,e=[]);for(var r,n=t,o=Element.prototype;o!==n;){r=$r(n);for(var l in r)r[l].set&&e.push(l);n=mr(n)}return e}function dn(t){for(var e=p,r=p;e!==null&&!(e.f&(F|nt));)e=e.parent;try{return J(e),t()}finally{J(r)}}function ht(t,e,r,n){var K;var o=!ke,l=(r&hr)!==0,s=!1,i;i=t[e];var u=Er in t||we in t,c=((K=zt(t,e))==null?void 0:K.set)??(u&&l&&e in t?E=>t[e]=E:void 0),v=n,a=!0,h=!1,f=()=>(h=!0,a&&(a=!1,v=n),v);i===void 0&&n!==void 0&&(c&&o&&zr(),i=f(),c&&c(i));var d;if(d=()=>{var E=t[e];return E===void 0?f():(a=!0,h=!1,E)},c){var w=t.$$legacy;return function(E,N){return arguments.length>0?((!N||w||s)&&c(N?d():E),E):d()}}var C=!1,S=!1,_=te(i),y=dn(()=>Re(()=>{var E=d(),N=R(_);return C?(C=!1,S=!0,N):(S=!1,_.v=E)}));return function(E,N){if(arguments.length>0){const dt=N?R(y):E;return y.equals(dt)||(C=!0,Dt(_,dt),h&&v!==void 0&&(v=dt),tn(()=>R(y))),E}return R(y)}}function _n(t){return new pn(t)}class pn{constructor(e){pe(this,G);pe(this,D);var l;var r=new Map,n=(s,i)=>{var u=te(i);return r.set(s,u),u};const o=new Proxy({...e.props||{},$$events:{}},{get(s,i){return R(r.get(i)??n(i,Reflect.get(s,i)))},has(s,i){return i===we?!0:(R(r.get(i)??n(i,Reflect.get(s,i))),Reflect.has(s,i))},set(s,i,u){return Dt(r.get(i)??n(i,u),u),Reflect.set(s,i,u)}});ge(this,D,(e.hydrate?on:er)(e.component,{target:e.target,anchor:e.anchor,props:o,context:e.context,intro:e.intro??!1,recover:e.recover})),(!((l=e==null?void 0:e.props)!=null&&l.$$host)||e.sync===!1)&&Z(),ge(this,G,o.$$events);for(const s of Object.keys(z(this,D)))s==="$set"||s==="$destroy"||s==="$on"||Nt(this,s,{get(){return z(this,D)[s]},set(i){z(this,D)[s]=i},enumerable:!0});z(this,D).$set=s=>{Object.assign(o,s)},z(this,D).$destroy=()=>{ln(z(this,D))}}$set(e){z(this,D).$set(e)}$on(e,r){z(this,G)[e]=z(this,G)[e]||[];const n=(...o)=>r.call(this,...o);return z(this,G)[e].push(n),()=>{z(this,G)[e]=z(this,G)[e].filter(o=>o!==n)}}$destroy(){z(this,D).$destroy()}}G=new WeakMap,D=new WeakMap;let ir;typeof HTMLElement=="function"&&(ir=class extends HTMLElement{constructor(e,r,n){super();j(this,"$$ctor");j(this,"$$s");j(this,"$$c");j(this,"$$cn",!1);j(this,"$$d",{});j(this,"$$r",!1);j(this,"$$p_d",{});j(this,"$$l",{});j(this,"$$l_u",new Map);j(this,"$$me");this.$$ctor=e,this.$$s=r,n&&this.attachShadow({mode:"open"})}addEventListener(e,r,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(r),this.$$c){const o=this.$$c.$on(e,r);this.$$l_u.set(r,o)}super.addEventListener(e,r,n)}removeEventListener(e,r,n){if(super.removeEventListener(e,r,n),this.$$c){const o=this.$$l_u.get(r);o&&(o(),this.$$l_u.delete(r))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(o){return l=>{const s=document.createElement("slot");o!=="default"&&(s.name=o),rt(l,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=gn(this);for(const o of this.$$s)o in n&&(o==="default"&&!this.$$d.children?(this.$$d.children=e(o),r.default=!0):r[o]=e(o));for(const o of this.attributes){const l=this.$$g_p(o.name);l in this.$$d||(this.$$d[l]=Gt(l,o.value,this.$$p_d,"toProp"))}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=_n({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=jr(()=>{Hr(()=>{var o;this.$$r=!0;for(const l of Ct(this.$$c)){if(!((o=this.$$p_d[l])!=null&&o.reflect))continue;this.$$d[l]=this.$$c[l];const s=Gt(l,this.$$d[l],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,s)}this.$$r=!1})});for(const o in this.$$l)for(const l of this.$$l[o]){const s=this.$$c.$on(o,l);this.$$l_u.set(l,s)}this.$$l={}}}attributeChangedCallback(e,r,n){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Gt(e,n,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Ct(this.$$p_d).find(r=>this.$$p_d[r].attribute===e||!this.$$p_d[r].attribute&&r.toLowerCase()===e)||e}});function Gt(t,e,r,n){var l;const o=(l=r[t])==null?void 0:l.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!r[t])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function gn(t){const e={};return t.childNodes.forEach(r=>{e[r.slot||"default"]=!0}),e}function ve(t,e,r,n,o,l){let s=class extends ir{constructor(){super(t,r,o),this.$$p_d=e}static get observedAttributes(){return Ct(e).map(i=>(e[i].attribute||i).toLowerCase())}};return Ct(e).forEach(i=>{Nt(s.prototype,i,{get(){return this.$$c&&i in this.$$c?this.$$c[i]:this.$$d[i]},set(u){var a;u=Gt(i,u,e),this.$$d[i]=u;var c=this.$$c;if(c){var v=(a=zt(c,i))==null?void 0:a.get;v?c[i]=u:c.$set({[i]:u})}}})}),n.forEach(i=>{Nt(s.prototype,i,{get(){var u;return(u=this.$$c)==null?void 0:u[i]}})}),t.element=s,s}const bn=[{name:"eHagaki",url:"https://lokuyow.github.io/ehagaki/?content={text}",icon:"https://lokuyow.github.io/ehagaki/favicon.ico"},{name:"nokakoi",url:"https://nokakoi.com/app/?text={text}",icon:"https://nokakoi.com/favicon.ico"},{name:"Nos Haiku",url:"https://nos-haiku.vercel.app/antenna?content={text}",icon:"https://nos-haiku.vercel.app/favicon.png"},{name:"nostter",url:"https://nostter.app/post?content={text}",icon:"https://nostter.app/favicon.ico"},{name:"Lumilumi",url:"https://lumilumi.app/post?text={text}",icon:"https://lumilumi.app/favicon.ico"}];var $n=t=>t.stopPropagation(),mn=(t,e,r)=>e(R(r).url),yn=kt('<button class="item svelte-1sy5hzc"><img> <span class="item-name"> </span></button>'),xn=kt('<div class="overlay svelte-1sy5hzc"><div class="inner svelte-1sy5hzc"><button class="close-button svelte-1sy5hzc" aria-label="Close">✖</button> <h2 class="title svelte-1sy5hzc">Select Share Client</h2> <div class="list svelte-1sy5hzc"></div> <div class="footer svelte-1sy5hzc"><a target="_blank" referrerpolicy="no-referrer" href="https://tsukemonogit.github.io/nostr-share-component/" class="svelte-1sy5hzc">nostr-share-component</a></div></div></div>');const wn={hash:"svelte-1sy5hzc",code:`
2
2
  /* オーバーレイ背景 */.overlay.svelte-1sy5hzc {position:fixed;top:0;left:0;width:100vw;height:100vh;background-color:rgba(0, 0, 0, 0.3); /* 少し濃い背景 */display:flex;justify-content:center;align-items:center;z-index:50;}
3
3
 
4
4
  /* ダイアログ本体 */.inner.svelte-1sy5hzc {display:flex;flex-direction:column;position:relative;background-color:var(--bg-color);padding:1rem;border-radius:12px; /* 柔らかい角丸 */box-shadow:0 8px 16px rgba(0, 0, 0, 0.2);width:90%;max-width:400px;gap:1rem; /* スペーシング */}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konemono/nostr-share-component",
3
- "version": "0.4.3",
3
+ "version": "0.4.4",
4
4
  "type": "module",
5
5
  "main": "dist/nostr-share-component.umd.js",
6
6
  "module": "dist/nostr-share-component.es.js",