@konemono/nostr-share-component 0.2.0 → 0.2.1

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.
@@ -1,4 +1,4 @@
1
- var NostrShare=function(m){"use strict";var Rn=Object.defineProperty;var fr=m=>{throw TypeError(m)};var In=(m,E,S)=>E in m?Rn(m,E,{enumerable:!0,configurable:!0,writable:!0,value:S}):m[E]=S;var P=(m,E,S)=>In(m,typeof E!="symbol"?E+"":E,S),vr=(m,E,S)=>E.has(m)||fr("Cannot "+S);var A=(m,E,S)=>(vr(m,E,"read from private field"),S?S.call(m):E.get(m)),me=(m,E,S)=>E.has(m)?fr("Cannot add the same private member more than once"):E instanceof WeakSet?E.add(m):E.set(m,S),be=(m,E,S,Tt)=>(vr(m,E,"write to private field"),Tt?Tt.call(m,S):E.set(m,S),S);var W,M;const E="5";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(E);const S=1,Tt=2,hr=16,dr=8,_r=1,pr=2,$e="[",Xt="[!",Zt="]",pt={},gr=Symbol(),mr=["touchstart","touchmove"];function br(t){return mr.includes(t)}const we=!1;var xe=Array.isArray,Qt=Array.from,zt=Object.keys,Ct=Object.defineProperty,Nt=Object.getOwnPropertyDescriptor,$r=Object.getOwnPropertyDescriptors,wr=Object.getPrototypeOf;function xr(t){for(var e=0;e<t.length;e++)t[e]()}const L=2,ye=4,qt=8,te=16,H=32,it=64,ee=128,at=256,At=512,O=1024,X=2048,gt=4096,V=8192,ut=16384,yr=32768,re=65536,Er=1<<19,Ee=1<<20,kr=Symbol("$state"),ke=Symbol("legacy props"),Sr=Symbol("");function Se(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 zr(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 qr(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 Te=!1;function Ot(t,e){var r={f:0,v:t,reactions:null,equals:Se,version:0};return r}function Rr(t){return Ir(Ot(t))}function ne(t,e=!1){const r=Ot(t);return e||(r.equals=zr),r}function Ir(t){return y!==null&&y.f&L&&(U===null?Yr([t]):U.push(t)),t}function Rt(t,e){return y!==null&&Kr()&&y.f&(L|te)&&(U===null||!U.includes(t))&&Or(),ze(t,e)}function ze(t,e){return t.equals(e)||(t.v=e,t.version=We(),Ce(t,X),g!==null&&g.f&O&&!(g.f&H)&&(z!==null&&z.includes(t)?(K(g,X),Yt(g)):tt===null?Gr([t]):tt.push(t))),e}function Ce(t,e){var r=t.reactions;if(r!==null)for(var n=r.length,l=0;l<n;l++){var s=r[l],o=s.f;o&X||(K(s,e),o&(O|at)&&(o&L?Ce(s,gt):Yt(s)))}}function le(t){console.warn("https://svelte.dev/e/hydration_mismatch")}let b=!1;function j(t){b=t}let $;function B(t){if(t===null)throw le(),pt;return $=t}function mt(){return B(Z($))}function bt(t){if(b){if(Z($)!==null)throw le(),pt;$=t}}function se(){for(var t=0,e=$;;){if(e.nodeType===8){var r=e.data;if(r===Zt){if(t===0)return e;t-=1}else(r===$e||r===Xt)&&(t+=1)}var n=Z(e);e.remove(),e=n}}var Ne,qe,Ae;function oe(){if(Ne===void 0){Ne=window;var t=Element.prototype,e=Node.prototype;qe=Nt(e,"firstChild").get,Ae=Nt(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 It(t=""){return document.createTextNode(t)}function Y(t){return qe.call(t)}function Z(t){return Ae.call(t)}function Dt(t,e){if(!b)return Y(t);var r=Y($);return r===null&&(r=$.appendChild(It())),B(r),r}function Oe(t,e){if(!b){var r=Y(t);return r instanceof Comment&&r.data===""?Z(r):r}return $}function Mt(t,e=1,r=!1){let n=b?$:t;for(var l;e--;)l=n,n=Z(n);if(!b)return n;var s=n==null?void 0:n.nodeType;if(r&&s!==3){var o=It();return n===null?l==null||l.after(o):n.before(o),B(o),o}return B(n),n}function Re(t){t.textContent=""}function Ie(t){var e=L|X;g===null?e|=at:g.f|=Ee;var r=y!==null&&y.f&L?y:null;const n={children:null,ctx:F,deps:null,equals:Se,f:e,fn:t,reactions:null,v:null,version:0,parent:r??g};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&L?ie(n):G(n)}}}function Dr(t){for(var e=t.parent;e!==null;){if(!(e.f&L))return e;e=e.parent}return null}function Me(t){var e,r=g;Q(Dr(t));try{De(t),e=Je(t)}finally{Q(r)}return e}function Le(t){var e=Me(t),r=(st||t.f&at)&&t.deps!==null?gt:O;K(t,r),t.equals(e)||(t.v=e,t.version=We())}function ie(t){De(t),Et(t,0),K(t,ut),t.v=t.children=t.deps=t.ctx=t.reactions=null}function Mr(t,e){var r=e.last;r===null?e.last=e.first=t:(r.next=t,t.prev=r,e.last=t)}function ct(t,e,r,n=!0){var l=(t&it)!==0,s=g,o={ctx:F,deps:null,deriveds:null,nodes_start:null,nodes_end:null,f:t|X,first:null,fn:e,last:null,next:null,parent:l?null:s,prev:null,teardown:null,transitions:null,version:0};if(r){var i=ft;try{Ge(!0),jt(o),o.f|=yr}catch(h){throw G(o),h}finally{Ge(i)}}else e!==null&&Yt(o);var u=r&&o.deps===null&&o.first===null&&o.nodes_start===null&&o.teardown===null&&(o.f&Ee)===0;if(!u&&!l&&n&&(s!==null&&Mr(o,s),y!==null&&y.f&L)){var v=y;(v.children??(v.children=[])).push(o)}return o}function Lr(t){const e=ct(it,t,!0);return()=>{G(e)}}function Fr(t){const e=ct(it,t,!0);return(r={})=>new Promise(n=>{r.outro?Ft(e,()=>{G(e),n(void 0)}):(G(e),n(void 0))})}function Pr(t){return ct(ye,t,!1)}function Hr(t){return ct(qt,t,!0)}function Lt(t){return ae(t)}function ae(t,e=0){return ct(qt|te|e,t,!0)}function $t(t,e=!0){return ct(qt|H,t,!0,e)}function Fe(t){var e=t.teardown;if(e!==null){const r=y;ht(null);try{e.call(null)}finally{ht(r)}}}function Pe(t){var e=t.deriveds;if(e!==null){t.deriveds=null;for(var r=0;r<e.length;r+=1)ie(e[r])}}function He(t,e=!1){var r=t.first;for(t.first=t.last=null;r!==null;){var n=r.next;G(r,e),r=n}}function Vr(t){for(var e=t.first;e!==null;){var r=e.next;e.f&H||G(e),e=r}}function G(t,e=!0){var r=!1;if((e||t.f&Er)&&t.nodes_start!==null){for(var n=t.nodes_start,l=t.nodes_end;n!==null;){var s=n===l?null:Z(n);n.remove(),n=s}r=!0}He(t,e&&!r),Pe(t),Et(t,0),K(t,ut);var o=t.transitions;if(o!==null)for(const u of o)u.stop();Fe(t);var i=t.parent;i!==null&&i.first!==null&&Ve(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Ve(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 Ft(t,e){var r=[];ue(t,r,!0),Be(r,()=>{G(t),e&&e()})}function Be(t,e){var r=t.length;if(r>0){var n=()=>--r||e();for(var l of t)l.out(n)}else e()}function ue(t,e,r){if(!(t.f&V)){if(t.f^=V,t.transitions!==null)for(const o of t.transitions)(o.is_global||r)&&e.push(o);for(var n=t.first;n!==null;){var l=n.next,s=(n.f&re)!==0||(n.f&H)!==0;ue(n,e,s?r:!1),n=l}}}function Pt(t){Ue(t,!0)}function Ue(t,e){if(t.f&V){yt(t)&&jt(t),t.f^=V;for(var r=t.first;r!==null;){var n=r.next,l=(r.f&re)!==0||(r.f&H)!==0;Ue(r,l?e:!1),r=n}if(t.transitions!==null)for(const s of t.transitions)(s.is_global||e)&&s.in()}}let Ht=!1,ce=[];function je(){Ht=!1;const t=ce.slice();ce=[],xr(t)}function Br(t){Ht||(Ht=!0,queueMicrotask(je)),ce.push(t)}function Ur(){Ht&&je()}const Ye=0,jr=1;let Vt=!1,Bt=Ye,wt=!1,xt=null,ft=!1;function Ge(t){ft=t}let lt=[],vt=0,Dn=[],y=null;function ht(t){y=t}let g=null;function Q(t){g=t}let U=null;function Yr(t){U=t}let z=null,R=0,tt=null;function Gr(t){tt=t}let Ke=1,st=!1,F=null;function We(){return++Ke}function Kr(){return!Te}function yt(t){var o,i;var e=t.f;if(e&X)return!0;if(e&gt){var r=t.deps,n=(e&at)!==0;if(r!==null){var l;if(e&At){for(l=0;l<r.length;l++)((o=r[l]).reactions??(o.reactions=[])).push(t);t.f^=At}for(l=0;l<r.length;l++){var s=r[l];if(yt(s)&&Le(s),n&&g!==null&&!st&&!((i=s==null?void 0:s.reactions)!=null&&i.includes(t))&&(s.reactions??(s.reactions=[])).push(t),s.version>t.version)return!0}}(!n||g!==null&&!st)&&K(t,O)}return!1}function Wr(t,e){for(var r=e;r!==null;){if(r.f&ee)try{r.fn(t);return}catch{r.f^=ee}r=r.parent}throw Vt=!1,t}function Jr(t){return(t.f&ut)===0&&(t.parent===null||(t.parent.f&ee)===0)}function Ut(t,e,r,n){if(Vt){if(r===null&&(Vt=!1),Jr(e))throw t;return}r!==null&&(Vt=!0);{Wr(t,e);return}}function Je(t){var c;var e=z,r=R,n=tt,l=y,s=st,o=U,i=F,u=t.f;z=null,R=0,tt=null,y=u&(H|it)?null:t,st=!ft&&(u&at)!==0,U=null,F=t.ctx;try{var v=(0,t.fn)(),h=t.deps;if(z!==null){var a;if(Et(t,R),h!==null&&R>0)for(h.length=R+z.length,a=0;a<z.length;a++)h[R+a]=z[a];else t.deps=h=z;if(!st)for(a=R;a<h.length;a++)((c=h[a]).reactions??(c.reactions=[])).push(t)}else h!==null&&R<h.length&&(Et(t,R),h.length=R);return v}finally{z=e,R=r,tt=n,y=l,st=s,U=o,F=i}}function Xr(t,e){let r=e.reactions;if(r!==null){var n=r.indexOf(t);if(n!==-1){var l=r.length-1;l===0?r=e.reactions=null:(r[n]=r[l],r.pop())}}r===null&&e.f&L&&(z===null||!z.includes(e))&&(K(e,gt),e.f&(at|At)||(e.f^=At),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 jt(t){var e=t.f;if(!(e&ut)){K(t,O);var r=g,n=F;g=t;try{e&te?Vr(t):He(t),Pe(t),Fe(t);var l=Je(t);t.teardown=typeof l=="function"?l:null,t.version=Ke}catch(s){Ut(s,t,r,n||t.ctx)}finally{g=r}}}function Xe(){if(vt>1e3){vt=0;try{Cr()}catch(t){if(xt!==null)Ut(t,xt,null);else throw t}}vt++}function Ze(t){var e=t.length;if(e!==0){Xe();var r=ft;ft=!0;try{for(var n=0;n<e;n++){var l=t[n];l.f&O||(l.f^=O);var s=[];Qe(l,s),Zr(s)}}finally{ft=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&(ut|V)))try{yt(n)&&(jt(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null?Ve(n):n.fn=null))}catch(l){Ut(l,n,null,n.ctx)}}}function Qr(){if(wt=!1,vt>1001)return;const t=lt;lt=[],Ze(t),wt||(vt=0,xt=null)}function Yt(t){Bt===Ye&&(wt||(wt=!0,queueMicrotask(Qr))),xt=t;for(var e=t;e.parent!==null;){e=e.parent;var r=e.f;if(r&(it|H)){if(!(r&O))return;e.f^=O}}lt.push(e)}function Qe(t,e){var r=t.first,n=[];t:for(;r!==null;){var l=r.f,s=(l&H)!==0,o=s&&(l&O)!==0,i=r.next;if(!o&&!(l&V))if(l&qt){if(s)r.f^=O;else try{yt(r)&&jt(r)}catch(a){Ut(a,r,null,r.ctx)}var u=r.first;if(u!==null){r=u;continue}}else l&ye&&n.push(r);if(i===null){let a=r.parent;for(;a!==null;){if(t===a)break t;var v=a.next;if(v!==null){r=v;continue t}a=a.parent}}r=i}for(var h=0;h<n.length;h++)u=n[h],e.push(u),Qe(u,e)}function N(t){var e=Bt,r=lt;try{Xe();const l=[];Bt=jr,lt=l,wt=!1,Ze(r);var n=t==null?void 0:t();return Ur(),(lt.length>0||l.length>0)&&N(),vt=0,xt=null,n}finally{Bt=e,lt=r}}function I(t){var h;var e=t.f,r=(e&L)!==0;if(r&&e&ut){var n=Me(t);return ie(t),n}if(y!==null){U!==null&&U.includes(t)&&Ar();var l=y.deps;z===null&&l!==null&&l[R]===t?R++:z===null?z=[t]:z.push(t),tt!==null&&g!==null&&g.f&O&&!(g.f&H)&&tt.includes(t)&&(K(g,X),Yt(g))}else if(r&&t.deps===null)for(var s=t,o=s.parent,i=s;o!==null;)if(o.f&L){var u=o;i=u,o=u.parent}else{var v=o;(h=v.deriveds)!=null&&h.includes(i)||(v.deriveds??(v.deriveds=[])).push(i);break}return r&&(s=t,yt(s)&&Le(s)),t.v}function tn(t){const e=y;try{return y=null,t()}finally{y=e}}const en=~(X|gt|O);function K(t,e){t.f=t.f&en|e}function Gt(t,e=!1,r){F={p:F,c:null,e:null,m:!1,s:t,x:null,l:null}}function Kt(t){const e=F;if(e!==null){t!==void 0&&(e.x=t);const o=e.e;if(o!==null){var r=g,n=y;e.e=null;try{for(var l=0;l<o.length;l++){var s=o[l];Q(s.effect),ht(s.reaction),Pr(s.fn)}}finally{Q(r),ht(n)}}F=e.p,e.m=!0}return t||{}}const tr=new Set,fe=new Set;function er(t){for(var e=0;e<t.length;e++)tr.add(t[e]);for(var r of fe)r(t)}function Wt(t){var p;var e=this,r=e.ownerDocument,n=t.type,l=((p=t.composedPath)==null?void 0:p.call(t))||[],s=l[0]||t.target,o=0,i=t.__root;if(i){var u=l.indexOf(i);if(u!==-1&&(e===document||e===window)){t.__root=e;return}var v=l.indexOf(e);if(v===-1)return;u<=v&&(o=u)}if(s=l[o]||t.target,s!==e){Ct(t,"currentTarget",{configurable:!0,get(){return s||r}});var h=y,a=g;ht(null),Q(null);try{for(var c,f=[];s!==null;){var d=s.assignedSlot||s.parentNode||s.host||null;try{var w=s["__"+n];if(w!==void 0&&!s.disabled)if(xe(w)){var[C,..._]=w;C.apply(s,[t,..._])}else w.call(s,t)}catch(x){c?f.push(x):c=x}if(t.cancelBubble||d===e||d===null)break;s=d}if(c){for(let x of f)queueMicrotask(()=>{throw x});throw c}}finally{t.__root=e,delete t.currentTarget,ht(h),Q(a)}}}function rr(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function dt(t,e){var r=g;r.nodes_start===null&&(r.nodes_start=t,r.nodes_end=e)}function kt(t,e){var r=(e&_r)!==0,n=(e&pr)!==0,l,s=!t.startsWith("<!>");return()=>{if(b)return dt($,null),$;l===void 0&&(l=rr(s?t:"<!>"+t),r||(l=Y(l)));var o=n?document.importNode(l,!0):l.cloneNode(!0);if(r){var i=Y(o),u=o.lastChild;dt(i,u)}else dt(o,o);return o}}function rn(t,e,r="svg"){var n=!t.startsWith("<!>"),l=`<${r}>${n?t:"<!>"+t}</${r}>`,s;return()=>{if(b)return dt($,null),$;if(!s){var o=rr(l),i=Y(o);s=Y(i)}var u=s.cloneNode(!0);return dt(u,u),u}}function ot(t,e){if(b){g.nodes_end=$,mt();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 nr(t,e){return lr(t,e)}function ln(t,e){oe(),e.intro=e.intro??!1;const r=e.target,n=b,l=$;try{for(var s=Y(r);s&&(s.nodeType!==8||s.data!==$e);)s=Z(s);if(!s)throw pt;j(!0),B(s),mt();const o=lr(t,{...e,anchor:s});if($===null||$.nodeType!==8||$.data!==Zt)throw le(),pt;return j(!1),o}catch(o){if(o===pt)return e.recover===!1&&Nr(),oe(),Re(r),j(!1),nr(t,e);throw o}finally{j(n),B(l)}}const _t=new Map;function lr(t,{target:e,anchor:r,props:n={},events:l,context:s,intro:o=!0}){oe();var i=new Set,u=a=>{for(var c=0;c<a.length;c++){var f=a[c];if(!i.has(f)){i.add(f);var d=br(f);e.addEventListener(f,Wt,{passive:d});var w=_t.get(f);w===void 0?(document.addEventListener(f,Wt,{passive:d}),_t.set(f,1)):_t.set(f,w+1)}}};u(Qt(tr)),fe.add(u);var v=void 0,h=Fr(()=>{var a=r??e.appendChild(It());return $t(()=>{if(s){Gt({});var c=F;c.c=s}l&&(n.$$events=l),b&&dt(a,null),v=t(a,n)||{},b&&(g.nodes_end=$),s&&Kt()}),()=>{var d;for(var c of i){e.removeEventListener(c,Wt);var f=_t.get(c);--f===0?(document.removeEventListener(c,Wt),_t.delete(c)):_t.set(c,f)}fe.delete(u),a!==r&&((d=a.parentNode)==null||d.removeChild(a))}});return ve.set(v,h),v}let ve=new WeakMap;function sn(t,e){const r=ve.get(t);return r?(ve.delete(t),r(e)):Promise.resolve()}function he(t,e,r=!1){b&&mt();var n=t,l=null,s=null,o=gr,i=r?re:0,u=!1;const v=(a,c=!0)=>{u=!0,h(c,a)},h=(a,c)=>{if(o===(o=a))return;let f=!1;if(b){const d=n.data===Xt;!!o===d&&(n=se(),B(n),j(!1),f=!0)}o?(l?Pt(l):c&&(l=$t(()=>c(n))),s&&Ft(s,()=>{s=null})):(s?Pt(s):c&&(s=$t(()=>c(n))),l&&Ft(l,()=>{l=null})),f&&j(!0)};ae(()=>{u=!1,e(v),u||h(null,null)},i),b&&(n=$)}function on(t,e){return e}function an(t,e,r,n){for(var l=[],s=e.length,o=0;o<s;o++)ue(e[o].e,l,!0);var i=s>0&&l.length===0&&r!==null;if(i){var u=r.parentNode;Re(u),u.append(r),n.clear(),et(t,e[0].prev,e[s-1].next)}Be(l,()=>{for(var v=0;v<s;v++){var h=e[v];i||(n.delete(h.k),et(t,h.prev,h.next)),G(h.e,!i)}})}function un(t,e,r,n,l,s=null){var o=t,i={flags:e,items:new Map,first:null};{var u=t;o=b?B(Y(u)):u.appendChild(It())}b&&mt();var v=null,h=!1;ae(()=>{var a=r(),c=xe(a)?a:a==null?[]:Qt(a),f=c.length;if(h&&f===0)return;h=f===0;let d=!1;if(b){var w=o.data===Xt;w!==(f===0)&&(o=se(),B(o),j(!1),d=!0)}if(b){for(var C=null,_,p=0;p<f;p++){if($.nodeType===8&&$.data===Zt){o=$,d=!0,j(!1);break}var x=c[p],J=n(x,p);_=sr($,i,C,null,x,J,p,l,e),i.items.set(J,_),C=_}f>0&&B(se())}if(!b){var k=y;cn(c,i,o,l,e,(k.f&V)!==0,n)}s!==null&&(f===0?v?Pt(v):v=$t(()=>s(o)):v!==null&&Ft(v,()=>{v=null})),d&&j(!0)}),b&&(o=$)}function cn(t,e,r,n,l,s,o,i){var u=t.length,v=e.items,h=e.first,a=h,c,f=null,d=[],w=[],C,_,p,x;for(x=0;x<u;x+=1){if(C=t[x],_=o(C,x),p=v.get(_),p===void 0){var J=a?a.e.nodes_start:r;f=sr(J,e,f,f===null?e.first:f.next,C,_,x,n,l),v.set(_,f),d=[],w=[],a=f.next;continue}if(fn(p,C,x),p.e.f&V&&Pt(p.e),p!==a){if(c!==void 0&&c.has(p)){if(d.length<w.length){var k=w[0],T;f=k.prev;var rt=d[0],q=d[d.length-1];for(T=0;T<d.length;T+=1)or(d[T],k,r);for(T=0;T<w.length;T+=1)c.delete(w[T]);et(e,rt.prev,q.next),et(e,f,rt),et(e,q,k),a=k,f=q,x-=1,d=[],w=[]}else c.delete(p),or(p,a,r),et(e,p.prev,p.next),et(e,p,f===null?e.first:f.next),et(e,f,p),f=p;continue}for(d=[],w=[];a!==null&&a.k!==_;)(s||!(a.e.f&V))&&(c??(c=new Set)).add(a),w.push(a),a=a.next;if(a===null)continue;p=a}d.push(p),f=p,a=p.next}if(a!==null||c!==void 0){for(var nt=c===void 0?[]:Qt(c);a!==null;)(s||!(a.e.f&V))&&nt.push(a),a=a.next;var An=nt.length;if(An>0){var On=u===0?r:null;an(e,nt,On,v)}}g.first=e.first&&e.first.e,g.last=f&&f.e}function fn(t,e,r,n){ze(t.v,e),t.i=r}function sr(t,e,r,n,l,s,o,i,u,v){var h=(u&S)!==0,a=(u&hr)===0,c=h?a?ne(l):Ot(l):l,f=u&Tt?Ot(o):o,d={i:f,v:c,k:s,a:null,e:null,prev:r,next:n};try{return d.e=$t(()=>i(t,c,f),b),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 or(t,e,r){for(var n=t.next?t.next.e.nodes_start:r,l=e?e.e.nodes_start:r,s=t.e.nodes_start;s!==n;){var o=Z(s);l.before(s),s=o}}function et(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,l){var i;b&&mt();var s=(i=e.$$slots)==null?void 0:i[r],o=!1;s===!0&&(s=e.children,o=!0),s===void 0?l!==null&&l(t):s(t,o?()=>n:n)}function de(t,e){Br(()=>{var r=t.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+e.hash)){const l=document.createElement("style");l.id=e.hash,l.textContent=e.code,n.appendChild(l)}})}function St(t,e,r,n){var l=t.__attributes??(t.__attributes={});b&&(l[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")||l[e]!==(l[e]=r)&&(e==="style"&&"__styles"in t&&(t.__styles={}),e==="loading"&&(t[Sr]=r),r==null?t.removeAttribute(e):typeof r!="string"&&hn(t).includes(e)?t[e]=r:t.setAttribute(e,r))}var ir=new Map;function hn(t){var e=ir.get(t.nodeName);if(e)return e;ir.set(t.nodeName,e=[]);for(var r,n=t,l=Element.prototype;l!==n;){r=$r(n);for(var s in r)r[s].set&&e.push(s);n=wr(n)}return e}function ar(t,e){var r=t.__className,n=dn(e);b&&t.className===n?t.__className=n:(r!==n||b&&t.className!==n)&&(e==null?t.removeAttribute("class"):t.className=n,t.__className=n)}function dn(t){return t??""}function _n(t){for(var e=g,r=g;e!==null&&!(e.f&(H|it));)e=e.parent;try{return Q(e),t()}finally{Q(r)}}function D(t,e,r,n){var J;var l=!Te,s=(r&dr)!==0,o=!1,i;i=t[e];var u=kr in t||ke in t,v=((J=Nt(t,e))==null?void 0:J.set)??(u&&s&&e in t?k=>t[e]=k:void 0),h=n,a=!0,c=!1,f=()=>(c=!0,a&&(a=!1,h=n),h);i===void 0&&n!==void 0&&(v&&l&&qr(),i=f(),v&&v(i));var d;if(d=()=>{var k=t[e];return k===void 0?f():(a=!0,c=!1,k)},v){var w=t.$$legacy;return function(k,T){return arguments.length>0?((!T||w||o)&&v(T?d():k),k):d()}}var C=!1,_=!1,p=ne(i),x=_n(()=>Ie(()=>{var k=d(),T=I(p);return C?(C=!1,_=!0,T):(_=!1,p.v=k)}));return function(k,T){if(arguments.length>0){const rt=T?I(x):k;return x.equals(rt)||(C=!0,Rt(p,rt),c&&h!==void 0&&(h=rt),tn(()=>I(x))),k}return I(x)}}function pn(t){return new gn(t)}class gn{constructor(e){me(this,W);me(this,M);var s;var r=new Map,n=(o,i)=>{var u=ne(i);return r.set(o,u),u};const l=new Proxy({...e.props||{},$$events:{}},{get(o,i){return I(r.get(i)??n(i,Reflect.get(o,i)))},has(o,i){return i===ke?!0:(I(r.get(i)??n(i,Reflect.get(o,i))),Reflect.has(o,i))},set(o,i,u){return Rt(r.get(i)??n(i,u),u),Reflect.set(o,i,u)}});be(this,M,(e.hydrate?ln:nr)(e.component,{target:e.target,anchor:e.anchor,props:l,context:e.context,intro:e.intro??!1,recover:e.recover})),(!((s=e==null?void 0:e.props)!=null&&s.$$host)||e.sync===!1)&&N(),be(this,W,l.$$events);for(const o of Object.keys(A(this,M)))o==="$set"||o==="$destroy"||o==="$on"||Ct(this,o,{get(){return A(this,M)[o]},set(i){A(this,M)[o]=i},enumerable:!0});A(this,M).$set=o=>{Object.assign(l,o)},A(this,M).$destroy=()=>{sn(A(this,M))}}$set(e){A(this,M).$set(e)}$on(e,r){A(this,W)[e]=A(this,W)[e]||[];const n=(...l)=>r.call(this,...l);return A(this,W)[e].push(n),()=>{A(this,W)[e]=A(this,W)[e].filter(l=>l!==n)}}$destroy(){A(this,M).$destroy()}}W=new WeakMap,M=new WeakMap;let ur;typeof HTMLElement=="function"&&(ur=class extends HTMLElement{constructor(e,r,n){super();P(this,"$$ctor");P(this,"$$s");P(this,"$$c");P(this,"$$cn",!1);P(this,"$$d",{});P(this,"$$r",!1);P(this,"$$p_d",{});P(this,"$$l",{});P(this,"$$l_u",new Map);P(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 l=this.$$c.$on(e,r);this.$$l_u.set(r,l)}super.addEventListener(e,r,n)}removeEventListener(e,r,n){if(super.removeEventListener(e,r,n),this.$$c){const l=this.$$l_u.get(r);l&&(l(),this.$$l_u.delete(r))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(l){return s=>{const o=document.createElement("slot");l!=="default"&&(o.name=l),ot(s,o)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=mn(this);for(const l of this.$$s)l in n&&(l==="default"&&!this.$$d.children?(this.$$d.children=e(l),r.default=!0):r[l]=e(l));for(const l of this.attributes){const s=this.$$g_p(l.name);s in this.$$d||(this.$$d[s]=Jt(s,l.value,this.$$p_d,"toProp"))}for(const l in this.$$p_d)!(l in this.$$d)&&this[l]!==void 0&&(this.$$d[l]=this[l],delete this[l]);this.$$c=pn({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=Lr(()=>{Hr(()=>{var l;this.$$r=!0;for(const s of zt(this.$$c)){if(!((l=this.$$p_d[s])!=null&&l.reflect))continue;this.$$d[s]=this.$$c[s];const o=Jt(s,this.$$d[s],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,o)}this.$$r=!1})});for(const l in this.$$l)for(const s of this.$$l[l]){const o=this.$$c.$on(l,s);this.$$l_u.set(s,o)}this.$$l={}}}attributeChangedCallback(e,r,n){var l;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Jt(e,n,this.$$p_d,"toProp"),(l=this.$$c)==null||l.$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 zt(this.$$p_d).find(r=>this.$$p_d[r].attribute===e||!this.$$p_d[r].attribute&&r.toLowerCase()===e)||e}});function Jt(t,e,r,n){var s;const l=(s=r[t])==null?void 0:s.type;if(e=l==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!r[t])return e;if(n==="toAttribute")switch(l){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(l){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function mn(t){const e={};return t.childNodes.forEach(r=>{e[r.slot||"default"]=!0}),e}function _e(t,e,r,n,l,s){let o=class extends ur{constructor(){super(t,r,l),this.$$p_d=e}static get observedAttributes(){return zt(e).map(i=>(e[i].attribute||i).toLowerCase())}};return zt(e).forEach(i=>{Ct(o.prototype,i,{get(){return this.$$c&&i in this.$$c?this.$$c[i]:this.$$d[i]},set(u){var a;u=Jt(i,u,e),this.$$d[i]=u;var v=this.$$c;if(v){var h=(a=Nt(v,i))==null?void 0:a.get;h?v[i]=u:v.$set({[i]:u})}}})}),n.forEach(i=>{Ct(o.prototype,i,{get(){var u;return(u=this.$$c)==null?void 0:u[i]}})}),t.element=o,o}const bn=[{name:"nostter",url:"https://nostter.app/post?text={text}&url={url}&title={title}",icon:"https://nostter.app/favicon.ico"},{name:"lumilumi",url:"https://lumilumi.app/post?url={url}&text={text}&title={title}",icon:"https://lumilumi.app/favicon.ico"}];var $n=t=>t.stopPropagation(),wn=(t,e,r)=>e(I(r).url),xn=kt('<button class="item svelte-13vsz3z"><img> </button>'),yn=kt('<div class="overlay svelte-13vsz3z"><div class="inner svelte-13vsz3z"><button class="close-button svelte-13vsz3z" aria-label="Close">✖</button> <h2 class="title svelte-13vsz3z">Share</h2> <div class="list svelte-13vsz3z"></div></div></div>');const En={hash:"svelte-13vsz3z",code:`
1
+ var NostrShare=function(b){"use strict";var In=Object.defineProperty;var fr=b=>{throw TypeError(b)};var Dn=(b,E,S)=>E in b?In(b,E,{enumerable:!0,configurable:!0,writable:!0,value:S}):b[E]=S;var P=(b,E,S)=>Dn(b,typeof E!="symbol"?E+"":E,S),vr=(b,E,S)=>E.has(b)||fr("Cannot "+S);var O=(b,E,S)=>(vr(b,E,"read from private field"),S?S.call(b):E.get(b)),be=(b,E,S)=>E.has(b)?fr("Cannot add the same private member more than once"):E instanceof WeakSet?E.add(b):E.set(b,S),me=(b,E,S,Tt)=>(vr(b,E,"write to private field"),Tt?Tt.call(b,S):E.set(b,S),S);var W,L;const E="5";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(E);const S=1,Tt=2,dr=16,hr=8,_r=1,gr=2,$e="[",Xt="[!",Zt="]",gt={},pr=Symbol(),br=["touchstart","touchmove"];function mr(t){return br.includes(t)}const xe=!1;var ye=Array.isArray,Qt=Array.from,zt=Object.keys,Ct=Object.defineProperty,Nt=Object.getOwnPropertyDescriptor,$r=Object.getOwnPropertyDescriptors,xr=Object.getPrototypeOf;function yr(t){for(var e=0;e<t.length;e++)t[e]()}const j=2,we=4,At=8,te=16,q=32,it=64,ee=128,at=256,Ot=512,R=1024,X=2048,pt=4096,H=8192,ut=16384,wr=32768,re=65536,Er=1<<19,Ee=1<<20,kr=Symbol("$state"),ke=Symbol("legacy props"),Sr=Symbol("");function Se(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 zr(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 Ar(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function Or(){throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function Rr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let Te=!1;function Rt(t,e){var r={f:0,v:t,reactions:null,equals:Se,version:0};return r}function Ir(t){return Dr(Rt(t))}function ne(t,e=!1){const r=Rt(t);return e||(r.equals=zr),r}function Dr(t){return w!==null&&w.f&j&&(B===null?Yr([t]):B.push(t)),t}function It(t,e){return w!==null&&Kr()&&w.f&(j|te)&&(B===null||!B.includes(t))&&Rr(),ze(t,e)}function ze(t,e){return t.equals(e)||(t.v=e,t.version=We(),Ce(t,X),p!==null&&p.f&R&&!(p.f&q)&&(z!==null&&z.includes(t)?(K(p,X),Yt(p)):tt===null?Gr([t]):tt.push(t))),e}function Ce(t,e){var r=t.reactions;if(r!==null)for(var n=r.length,l=0;l<n;l++){var s=r[l],o=s.f;o&X||(K(s,e),o&(R|at)&&(o&j?Ce(s,pt):Yt(s)))}}function le(t){console.warn("https://svelte.dev/e/hydration_mismatch")}let m=!1;function U(t){m=t}let $;function V(t){if(t===null)throw le(),gt;return $=t}function bt(){return V(Z($))}function mt(t){if(m){if(Z($)!==null)throw le(),gt;$=t}}function se(){for(var t=0,e=$;;){if(e.nodeType===8){var r=e.data;if(r===Zt){if(t===0)return e;t-=1}else(r===$e||r===Xt)&&(t+=1)}var n=Z(e);e.remove(),e=n}}var Ne,Ae,Oe;function oe(){if(Ne===void 0){Ne=window;var t=Element.prototype,e=Node.prototype;Ae=Nt(e,"firstChild").get,Oe=Nt(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 Dt(t=""){return document.createTextNode(t)}function Y(t){return Ae.call(t)}function Z(t){return Oe.call(t)}function Mt(t,e){if(!m)return Y(t);var r=Y($);return r===null&&(r=$.appendChild(Dt())),V(r),r}function Re(t,e){if(!m){var r=Y(t);return r instanceof Comment&&r.data===""?Z(r):r}return $}function Lt(t,e=1,r=!1){let n=m?$:t;for(var l;e--;)l=n,n=Z(n);if(!m)return n;var s=n==null?void 0:n.nodeType;if(r&&s!==3){var o=Dt();return n===null?l==null||l.after(o):n.before(o),V(o),o}return V(n),n}function Ie(t){t.textContent=""}function De(t){var e=j|X;p===null?e|=at:p.f|=Ee;var r=w!==null&&w.f&j?w:null;const n={children:null,ctx:F,deps:null,equals:Se,f:e,fn:t,reactions:null,v:null,version:0,parent:r??p};return r!==null&&(r.children??(r.children=[])).push(n),n}function Me(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&j?ie(n):G(n)}}}function Mr(t){for(var e=t.parent;e!==null;){if(!(e.f&j))return e;e=e.parent}return null}function Le(t){var e,r=p;Q(Mr(t));try{Me(t),e=Je(t)}finally{Q(r)}return e}function je(t){var e=Le(t),r=(st||t.f&at)&&t.deps!==null?pt:R;K(t,r),t.equals(e)||(t.v=e,t.version=We())}function ie(t){Me(t),Et(t,0),K(t,ut),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 ct(t,e,r,n=!0){var l=(t&it)!==0,s=p,o={ctx:F,deps:null,deriveds:null,nodes_start:null,nodes_end:null,f:t|X,first:null,fn:e,last:null,next:null,parent:l?null:s,prev:null,teardown:null,transitions:null,version:0};if(r){var i=ft;try{Ge(!0),Ut(o),o.f|=wr}catch(d){throw G(o),d}finally{Ge(i)}}else e!==null&&Yt(o);var u=r&&o.deps===null&&o.first===null&&o.nodes_start===null&&o.teardown===null&&(o.f&Ee)===0;if(!u&&!l&&n&&(s!==null&&Lr(o,s),w!==null&&w.f&j)){var v=w;(v.children??(v.children=[])).push(o)}return o}function jr(t){const e=ct(it,t,!0);return()=>{G(e)}}function Fr(t){const e=ct(it,t,!0);return(r={})=>new Promise(n=>{r.outro?Ft(e,()=>{G(e),n(void 0)}):(G(e),n(void 0))})}function Pr(t){return ct(we,t,!1)}function qr(t){return ct(At,t,!0)}function jt(t){return ae(t)}function ae(t,e=0){return ct(At|te|e,t,!0)}function $t(t,e=!0){return ct(At|q,t,!0,e)}function Fe(t){var e=t.teardown;if(e!==null){const r=w;dt(null);try{e.call(null)}finally{dt(r)}}}function Pe(t){var e=t.deriveds;if(e!==null){t.deriveds=null;for(var r=0;r<e.length;r+=1)ie(e[r])}}function qe(t,e=!1){var r=t.first;for(t.first=t.last=null;r!==null;){var n=r.next;G(r,e),r=n}}function Hr(t){for(var e=t.first;e!==null;){var r=e.next;e.f&q||G(e),e=r}}function G(t,e=!0){var r=!1;if((e||t.f&Er)&&t.nodes_start!==null){for(var n=t.nodes_start,l=t.nodes_end;n!==null;){var s=n===l?null:Z(n);n.remove(),n=s}r=!0}qe(t,e&&!r),Pe(t),Et(t,0),K(t,ut);var o=t.transitions;if(o!==null)for(const u of o)u.stop();Fe(t);var i=t.parent;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}function He(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 Ft(t,e){var r=[];ue(t,r,!0),Ve(r,()=>{G(t),e&&e()})}function Ve(t,e){var r=t.length;if(r>0){var n=()=>--r||e();for(var l of t)l.out(n)}else e()}function ue(t,e,r){if(!(t.f&H)){if(t.f^=H,t.transitions!==null)for(const o of t.transitions)(o.is_global||r)&&e.push(o);for(var n=t.first;n!==null;){var l=n.next,s=(n.f&re)!==0||(n.f&q)!==0;ue(n,e,s?r:!1),n=l}}}function Pt(t){Be(t,!0)}function Be(t,e){if(t.f&H){wt(t)&&Ut(t),t.f^=H;for(var r=t.first;r!==null;){var n=r.next,l=(r.f&re)!==0||(r.f&q)!==0;Be(r,l?e:!1),r=n}if(t.transitions!==null)for(const s of t.transitions)(s.is_global||e)&&s.in()}}let qt=!1,ce=[];function Ue(){qt=!1;const t=ce.slice();ce=[],yr(t)}function Vr(t){qt||(qt=!0,queueMicrotask(Ue)),ce.push(t)}function Br(){qt&&Ue()}const Ye=0,Ur=1;let Ht=!1,Vt=Ye,xt=!1,yt=null,ft=!1;function Ge(t){ft=t}let lt=[],vt=0,Mn=[],w=null;function dt(t){w=t}let p=null;function Q(t){p=t}let B=null;function Yr(t){B=t}let z=null,I=0,tt=null;function Gr(t){tt=t}let Ke=1,st=!1,F=null;function We(){return++Ke}function Kr(){return!Te}function wt(t){var o,i;var e=t.f;if(e&X)return!0;if(e&pt){var r=t.deps,n=(e&at)!==0;if(r!==null){var l;if(e&Ot){for(l=0;l<r.length;l++)((o=r[l]).reactions??(o.reactions=[])).push(t);t.f^=Ot}for(l=0;l<r.length;l++){var s=r[l];if(wt(s)&&je(s),n&&p!==null&&!st&&!((i=s==null?void 0:s.reactions)!=null&&i.includes(t))&&(s.reactions??(s.reactions=[])).push(t),s.version>t.version)return!0}}(!n||p!==null&&!st)&&K(t,R)}return!1}function Wr(t,e){for(var r=e;r!==null;){if(r.f&ee)try{r.fn(t);return}catch{r.f^=ee}r=r.parent}throw Ht=!1,t}function Jr(t){return(t.f&ut)===0&&(t.parent===null||(t.parent.f&ee)===0)}function Bt(t,e,r,n){if(Ht){if(r===null&&(Ht=!1),Jr(e))throw t;return}r!==null&&(Ht=!0);{Wr(t,e);return}}function Je(t){var c;var e=z,r=I,n=tt,l=w,s=st,o=B,i=F,u=t.f;z=null,I=0,tt=null,w=u&(q|it)?null:t,st=!ft&&(u&at)!==0,B=null,F=t.ctx;try{var v=(0,t.fn)(),d=t.deps;if(z!==null){var a;if(Et(t,I),d!==null&&I>0)for(d.length=I+z.length,a=0;a<z.length;a++)d[I+a]=z[a];else t.deps=d=z;if(!st)for(a=I;a<d.length;a++)((c=d[a]).reactions??(c.reactions=[])).push(t)}else d!==null&&I<d.length&&(Et(t,I),d.length=I);return v}finally{z=e,I=r,tt=n,w=l,st=s,B=o,F=i}}function Xr(t,e){let r=e.reactions;if(r!==null){var n=r.indexOf(t);if(n!==-1){var l=r.length-1;l===0?r=e.reactions=null:(r[n]=r[l],r.pop())}}r===null&&e.f&j&&(z===null||!z.includes(e))&&(K(e,pt),e.f&(at|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 Ut(t){var e=t.f;if(!(e&ut)){K(t,R);var r=p,n=F;p=t;try{e&te?Hr(t):qe(t),Pe(t),Fe(t);var l=Je(t);t.teardown=typeof l=="function"?l:null,t.version=Ke}catch(s){Bt(s,t,r,n||t.ctx)}finally{p=r}}}function Xe(){if(vt>1e3){vt=0;try{Cr()}catch(t){if(yt!==null)Bt(t,yt,null);else throw t}}vt++}function Ze(t){var e=t.length;if(e!==0){Xe();var r=ft;ft=!0;try{for(var n=0;n<e;n++){var l=t[n];l.f&R||(l.f^=R);var s=[];Qe(l,s),Zr(s)}}finally{ft=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&(ut|H)))try{wt(n)&&(Ut(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null?He(n):n.fn=null))}catch(l){Bt(l,n,null,n.ctx)}}}function Qr(){if(xt=!1,vt>1001)return;const t=lt;lt=[],Ze(t),xt||(vt=0,yt=null)}function Yt(t){Vt===Ye&&(xt||(xt=!0,queueMicrotask(Qr))),yt=t;for(var e=t;e.parent!==null;){e=e.parent;var r=e.f;if(r&(it|q)){if(!(r&R))return;e.f^=R}}lt.push(e)}function Qe(t,e){var r=t.first,n=[];t:for(;r!==null;){var l=r.f,s=(l&q)!==0,o=s&&(l&R)!==0,i=r.next;if(!o&&!(l&H))if(l&At){if(s)r.f^=R;else try{wt(r)&&Ut(r)}catch(a){Bt(a,r,null,r.ctx)}var u=r.first;if(u!==null){r=u;continue}}else l&we&&n.push(r);if(i===null){let a=r.parent;for(;a!==null;){if(t===a)break t;var v=a.next;if(v!==null){r=v;continue t}a=a.parent}}r=i}for(var d=0;d<n.length;d++)u=n[d],e.push(u),Qe(u,e)}function N(t){var e=Vt,r=lt;try{Xe();const l=[];Vt=Ur,lt=l,xt=!1,Ze(r);var n=t==null?void 0:t();return Br(),(lt.length>0||l.length>0)&&N(),vt=0,yt=null,n}finally{Vt=e,lt=r}}function D(t){var d;var e=t.f,r=(e&j)!==0;if(r&&e&ut){var n=Le(t);return ie(t),n}if(w!==null){B!==null&&B.includes(t)&&Or();var l=w.deps;z===null&&l!==null&&l[I]===t?I++:z===null?z=[t]:z.push(t),tt!==null&&p!==null&&p.f&R&&!(p.f&q)&&tt.includes(t)&&(K(p,X),Yt(p))}else if(r&&t.deps===null)for(var s=t,o=s.parent,i=s;o!==null;)if(o.f&j){var u=o;i=u,o=u.parent}else{var v=o;(d=v.deriveds)!=null&&d.includes(i)||(v.deriveds??(v.deriveds=[])).push(i);break}return r&&(s=t,wt(s)&&je(s)),t.v}function tn(t){const e=w;try{return w=null,t()}finally{w=e}}const en=~(X|pt|R);function K(t,e){t.f=t.f&en|e}function Gt(t,e=!1,r){F={p:F,c:null,e:null,m:!1,s:t,x:null,l:null}}function Kt(t){const e=F;if(e!==null){t!==void 0&&(e.x=t);const o=e.e;if(o!==null){var r=p,n=w;e.e=null;try{for(var l=0;l<o.length;l++){var s=o[l];Q(s.effect),dt(s.reaction),Pr(s.fn)}}finally{Q(r),dt(n)}}F=e.p,e.m=!0}return t||{}}const tr=new Set,fe=new Set;function er(t){for(var e=0;e<t.length;e++)tr.add(t[e]);for(var r of fe)r(t)}function Wt(t){var g;var e=this,r=e.ownerDocument,n=t.type,l=((g=t.composedPath)==null?void 0:g.call(t))||[],s=l[0]||t.target,o=0,i=t.__root;if(i){var u=l.indexOf(i);if(u!==-1&&(e===document||e===window)){t.__root=e;return}var v=l.indexOf(e);if(v===-1)return;u<=v&&(o=u)}if(s=l[o]||t.target,s!==e){Ct(t,"currentTarget",{configurable:!0,get(){return s||r}});var d=w,a=p;dt(null),Q(null);try{for(var c,f=[];s!==null;){var h=s.assignedSlot||s.parentNode||s.host||null;try{var x=s["__"+n];if(x!==void 0&&!s.disabled)if(ye(x)){var[C,..._]=x;C.apply(s,[t,..._])}else x.call(s,t)}catch(y){c?f.push(y):c=y}if(t.cancelBubble||h===e||h===null)break;s=h}if(c){for(let y of f)queueMicrotask(()=>{throw y});throw c}}finally{t.__root=e,delete t.currentTarget,dt(d),Q(a)}}}function rr(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function ht(t,e){var r=p;r.nodes_start===null&&(r.nodes_start=t,r.nodes_end=e)}function kt(t,e){var r=(e&_r)!==0,n=(e&gr)!==0,l,s=!t.startsWith("<!>");return()=>{if(m)return ht($,null),$;l===void 0&&(l=rr(s?t:"<!>"+t),r||(l=Y(l)));var o=n?document.importNode(l,!0):l.cloneNode(!0);if(r){var i=Y(o),u=o.lastChild;ht(i,u)}else ht(o,o);return o}}function rn(t,e,r="svg"){var n=!t.startsWith("<!>"),l=`<${r}>${n?t:"<!>"+t}</${r}>`,s;return()=>{if(m)return ht($,null),$;if(!s){var o=rr(l),i=Y(o);s=Y(i)}var u=s.cloneNode(!0);return ht(u,u),u}}function ot(t,e){if(m){p.nodes_end=$,bt();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 nr(t,e){return lr(t,e)}function ln(t,e){oe(),e.intro=e.intro??!1;const r=e.target,n=m,l=$;try{for(var s=Y(r);s&&(s.nodeType!==8||s.data!==$e);)s=Z(s);if(!s)throw gt;U(!0),V(s),bt();const o=lr(t,{...e,anchor:s});if($===null||$.nodeType!==8||$.data!==Zt)throw le(),gt;return U(!1),o}catch(o){if(o===gt)return e.recover===!1&&Nr(),oe(),Ie(r),U(!1),nr(t,e);throw o}finally{U(n),V(l)}}const _t=new Map;function lr(t,{target:e,anchor:r,props:n={},events:l,context:s,intro:o=!0}){oe();var i=new Set,u=a=>{for(var c=0;c<a.length;c++){var f=a[c];if(!i.has(f)){i.add(f);var h=mr(f);e.addEventListener(f,Wt,{passive:h});var x=_t.get(f);x===void 0?(document.addEventListener(f,Wt,{passive:h}),_t.set(f,1)):_t.set(f,x+1)}}};u(Qt(tr)),fe.add(u);var v=void 0,d=Fr(()=>{var a=r??e.appendChild(Dt());return $t(()=>{if(s){Gt({});var c=F;c.c=s}l&&(n.$$events=l),m&&ht(a,null),v=t(a,n)||{},m&&(p.nodes_end=$),s&&Kt()}),()=>{var h;for(var c of i){e.removeEventListener(c,Wt);var f=_t.get(c);--f===0?(document.removeEventListener(c,Wt),_t.delete(c)):_t.set(c,f)}fe.delete(u),a!==r&&((h=a.parentNode)==null||h.removeChild(a))}});return ve.set(v,d),v}let ve=new WeakMap;function sn(t,e){const r=ve.get(t);return r?(ve.delete(t),r(e)):Promise.resolve()}function de(t,e,r=!1){m&&bt();var n=t,l=null,s=null,o=pr,i=r?re:0,u=!1;const v=(a,c=!0)=>{u=!0,d(c,a)},d=(a,c)=>{if(o===(o=a))return;let f=!1;if(m){const h=n.data===Xt;!!o===h&&(n=se(),V(n),U(!1),f=!0)}o?(l?Pt(l):c&&(l=$t(()=>c(n))),s&&Ft(s,()=>{s=null})):(s?Pt(s):c&&(s=$t(()=>c(n))),l&&Ft(l,()=>{l=null})),f&&U(!0)};ae(()=>{u=!1,e(v),u||d(null,null)},i),m&&(n=$)}function on(t,e){return e}function an(t,e,r,n){for(var l=[],s=e.length,o=0;o<s;o++)ue(e[o].e,l,!0);var i=s>0&&l.length===0&&r!==null;if(i){var u=r.parentNode;Ie(u),u.append(r),n.clear(),et(t,e[0].prev,e[s-1].next)}Ve(l,()=>{for(var v=0;v<s;v++){var d=e[v];i||(n.delete(d.k),et(t,d.prev,d.next)),G(d.e,!i)}})}function un(t,e,r,n,l,s=null){var o=t,i={flags:e,items:new Map,first:null};{var u=t;o=m?V(Y(u)):u.appendChild(Dt())}m&&bt();var v=null,d=!1;ae(()=>{var a=r(),c=ye(a)?a:a==null?[]:Qt(a),f=c.length;if(d&&f===0)return;d=f===0;let h=!1;if(m){var x=o.data===Xt;x!==(f===0)&&(o=se(),V(o),U(!1),h=!0)}if(m){for(var C=null,_,g=0;g<f;g++){if($.nodeType===8&&$.data===Zt){o=$,h=!0,U(!1);break}var y=c[g],J=n(y,g);_=sr($,i,C,null,y,J,g,l,e),i.items.set(J,_),C=_}f>0&&V(se())}if(!m){var k=w;cn(c,i,o,l,e,(k.f&H)!==0,n)}s!==null&&(f===0?v?Pt(v):v=$t(()=>s(o)):v!==null&&Ft(v,()=>{v=null})),h&&U(!0)}),m&&(o=$)}function cn(t,e,r,n,l,s,o,i){var u=t.length,v=e.items,d=e.first,a=d,c,f=null,h=[],x=[],C,_,g,y;for(y=0;y<u;y+=1){if(C=t[y],_=o(C,y),g=v.get(_),g===void 0){var J=a?a.e.nodes_start:r;f=sr(J,e,f,f===null?e.first:f.next,C,_,y,n,l),v.set(_,f),h=[],x=[],a=f.next;continue}if(fn(g,C,y),g.e.f&H&&Pt(g.e),g!==a){if(c!==void 0&&c.has(g)){if(h.length<x.length){var k=x[0],T;f=k.prev;var rt=h[0],A=h[h.length-1];for(T=0;T<h.length;T+=1)or(h[T],k,r);for(T=0;T<x.length;T+=1)c.delete(x[T]);et(e,rt.prev,A.next),et(e,f,rt),et(e,A,k),a=k,f=A,y-=1,h=[],x=[]}else c.delete(g),or(g,a,r),et(e,g.prev,g.next),et(e,g,f===null?e.first:f.next),et(e,f,g),f=g;continue}for(h=[],x=[];a!==null&&a.k!==_;)(s||!(a.e.f&H))&&(c??(c=new Set)).add(a),x.push(a),a=a.next;if(a===null)continue;g=a}h.push(g),f=g,a=g.next}if(a!==null||c!==void 0){for(var nt=c===void 0?[]:Qt(c);a!==null;)(s||!(a.e.f&H))&&nt.push(a),a=a.next;var On=nt.length;if(On>0){var Rn=u===0?r:null;an(e,nt,Rn,v)}}p.first=e.first&&e.first.e,p.last=f&&f.e}function fn(t,e,r,n){ze(t.v,e),t.i=r}function sr(t,e,r,n,l,s,o,i,u,v){var d=(u&S)!==0,a=(u&dr)===0,c=d?a?ne(l):Rt(l):l,f=u&Tt?Rt(o):o,h={i:f,v:c,k:s,a:null,e:null,prev:r,next:n};try{return h.e=$t(()=>i(t,c,f),m),h.e.prev=r&&r.e,h.e.next=n&&n.e,r===null?e.first=h:(r.next=h,r.e.next=h.e),n!==null&&(n.prev=h,n.e.prev=h.e),h}finally{}}function or(t,e,r){for(var n=t.next?t.next.e.nodes_start:r,l=e?e.e.nodes_start:r,s=t.e.nodes_start;s!==n;){var o=Z(s);l.before(s),s=o}}function et(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,l){var i;m&&bt();var s=(i=e.$$slots)==null?void 0:i[r],o=!1;s===!0&&(s=e.children,o=!0),s===void 0?l!==null&&l(t):s(t,o?()=>n:n)}function he(t,e){Vr(()=>{var r=t.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+e.hash)){const l=document.createElement("style");l.id=e.hash,l.textContent=e.code,n.appendChild(l)}})}function St(t,e,r,n){var l=t.__attributes??(t.__attributes={});m&&(l[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")||l[e]!==(l[e]=r)&&(e==="style"&&"__styles"in t&&(t.__styles={}),e==="loading"&&(t[Sr]=r),r==null?t.removeAttribute(e):typeof r!="string"&&dn(t).includes(e)?t[e]=r:t.setAttribute(e,r))}var ir=new Map;function dn(t){var e=ir.get(t.nodeName);if(e)return e;ir.set(t.nodeName,e=[]);for(var r,n=t,l=Element.prototype;l!==n;){r=$r(n);for(var s in r)r[s].set&&e.push(s);n=xr(n)}return e}function ar(t,e){var r=t.__className,n=hn(e);m&&t.className===n?t.__className=n:(r!==n||m&&t.className!==n)&&(e==null?t.removeAttribute("class"):t.className=n,t.__className=n)}function hn(t){return t??""}function _n(t){for(var e=p,r=p;e!==null&&!(e.f&(q|it));)e=e.parent;try{return Q(e),t()}finally{Q(r)}}function M(t,e,r,n){var J;var l=!Te,s=(r&hr)!==0,o=!1,i;i=t[e];var u=kr in t||ke in t,v=((J=Nt(t,e))==null?void 0:J.set)??(u&&s&&e in t?k=>t[e]=k:void 0),d=n,a=!0,c=!1,f=()=>(c=!0,a&&(a=!1,d=n),d);i===void 0&&n!==void 0&&(v&&l&&Ar(),i=f(),v&&v(i));var h;if(h=()=>{var k=t[e];return k===void 0?f():(a=!0,c=!1,k)},v){var x=t.$$legacy;return function(k,T){return arguments.length>0?((!T||x||o)&&v(T?h():k),k):h()}}var C=!1,_=!1,g=ne(i),y=_n(()=>De(()=>{var k=h(),T=D(g);return C?(C=!1,_=!0,T):(_=!1,g.v=k)}));return function(k,T){if(arguments.length>0){const rt=T?D(y):k;return y.equals(rt)||(C=!0,It(g,rt),c&&d!==void 0&&(d=rt),tn(()=>D(y))),k}return D(y)}}function gn(t){return new pn(t)}class pn{constructor(e){be(this,W);be(this,L);var s;var r=new Map,n=(o,i)=>{var u=ne(i);return r.set(o,u),u};const l=new Proxy({...e.props||{},$$events:{}},{get(o,i){return D(r.get(i)??n(i,Reflect.get(o,i)))},has(o,i){return i===ke?!0:(D(r.get(i)??n(i,Reflect.get(o,i))),Reflect.has(o,i))},set(o,i,u){return It(r.get(i)??n(i,u),u),Reflect.set(o,i,u)}});me(this,L,(e.hydrate?ln:nr)(e.component,{target:e.target,anchor:e.anchor,props:l,context:e.context,intro:e.intro??!1,recover:e.recover})),(!((s=e==null?void 0:e.props)!=null&&s.$$host)||e.sync===!1)&&N(),me(this,W,l.$$events);for(const o of Object.keys(O(this,L)))o==="$set"||o==="$destroy"||o==="$on"||Ct(this,o,{get(){return O(this,L)[o]},set(i){O(this,L)[o]=i},enumerable:!0});O(this,L).$set=o=>{Object.assign(l,o)},O(this,L).$destroy=()=>{sn(O(this,L))}}$set(e){O(this,L).$set(e)}$on(e,r){O(this,W)[e]=O(this,W)[e]||[];const n=(...l)=>r.call(this,...l);return O(this,W)[e].push(n),()=>{O(this,W)[e]=O(this,W)[e].filter(l=>l!==n)}}$destroy(){O(this,L).$destroy()}}W=new WeakMap,L=new WeakMap;let ur;typeof HTMLElement=="function"&&(ur=class extends HTMLElement{constructor(e,r,n){super();P(this,"$$ctor");P(this,"$$s");P(this,"$$c");P(this,"$$cn",!1);P(this,"$$d",{});P(this,"$$r",!1);P(this,"$$p_d",{});P(this,"$$l",{});P(this,"$$l_u",new Map);P(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 l=this.$$c.$on(e,r);this.$$l_u.set(r,l)}super.addEventListener(e,r,n)}removeEventListener(e,r,n){if(super.removeEventListener(e,r,n),this.$$c){const l=this.$$l_u.get(r);l&&(l(),this.$$l_u.delete(r))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(l){return s=>{const o=document.createElement("slot");l!=="default"&&(o.name=l),ot(s,o)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=bn(this);for(const l of this.$$s)l in n&&(l==="default"&&!this.$$d.children?(this.$$d.children=e(l),r.default=!0):r[l]=e(l));for(const l of this.attributes){const s=this.$$g_p(l.name);s in this.$$d||(this.$$d[s]=Jt(s,l.value,this.$$p_d,"toProp"))}for(const l in this.$$p_d)!(l in this.$$d)&&this[l]!==void 0&&(this.$$d[l]=this[l],delete this[l]);this.$$c=gn({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=jr(()=>{qr(()=>{var l;this.$$r=!0;for(const s of zt(this.$$c)){if(!((l=this.$$p_d[s])!=null&&l.reflect))continue;this.$$d[s]=this.$$c[s];const o=Jt(s,this.$$d[s],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,o)}this.$$r=!1})});for(const l in this.$$l)for(const s of this.$$l[l]){const o=this.$$c.$on(l,s);this.$$l_u.set(s,o)}this.$$l={}}}attributeChangedCallback(e,r,n){var l;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Jt(e,n,this.$$p_d,"toProp"),(l=this.$$c)==null||l.$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 zt(this.$$p_d).find(r=>this.$$p_d[r].attribute===e||!this.$$p_d[r].attribute&&r.toLowerCase()===e)||e}});function Jt(t,e,r,n){var s;const l=(s=r[t])==null?void 0:s.type;if(e=l==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!r[t])return e;if(n==="toAttribute")switch(l){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(l){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function bn(t){const e={};return t.childNodes.forEach(r=>{e[r.slot||"default"]=!0}),e}function _e(t,e,r,n,l,s){let o=class extends ur{constructor(){super(t,r,l),this.$$p_d=e}static get observedAttributes(){return zt(e).map(i=>(e[i].attribute||i).toLowerCase())}};return zt(e).forEach(i=>{Ct(o.prototype,i,{get(){return this.$$c&&i in this.$$c?this.$$c[i]:this.$$d[i]},set(u){var a;u=Jt(i,u,e),this.$$d[i]=u;var v=this.$$c;if(v){var d=(a=Nt(v,i))==null?void 0:a.get;d?v[i]=u:v.$set({[i]:u})}}})}),n.forEach(i=>{Ct(o.prototype,i,{get(){var u;return(u=this.$$c)==null?void 0:u[i]}})}),t.element=o,o}const mn=[{name:"nostter",url:"https://nostter.app/post?text={text}&url={url}&title={title}",icon:"https://nostter.app/favicon.ico"},{name:"lumilumi",url:"https://lumilumi.app/post?url={url}&text={text}&title={title}",icon:"https://lumilumi.app/favicon.ico"}];var $n=t=>t.stopPropagation(),xn=(t,e,r)=>e(D(r).url),yn=kt('<button class="item svelte-13vsz3z"><img> </button>'),wn=kt('<div class="overlay svelte-13vsz3z"><div class="inner svelte-13vsz3z"><button class="close-button svelte-13vsz3z" aria-label="Close">✖</button> <h2 class="title svelte-13vsz3z">Share</h2> <div class="list svelte-13vsz3z"></div></div></div>');const En={hash:"svelte-13vsz3z",code:`
2
2
  /* オーバーレイ背景 */.overlay.svelte-13vsz3z {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;}
3
3
 
4
4
  /* ダイアログ本体 */.inner.svelte-13vsz3z {display:flex;flex-direction:column;position:relative;background-color:var(--bg-color);padding:1.5rem;border-radius:12px; /* 柔らかい角丸 */box-shadow:0 8px 16px rgba(0, 0, 0, 0.2);width:90%;max-width:400px;gap:1rem; /* スペーシング */}
@@ -11,14 +11,14 @@ var NostrShare=function(m){"use strict";var Rn=Object.defineProperty;var fr=m=>{
11
11
  box-shadow 0.2s ease;}.item.svelte-13vsz3z:hover {background-color:var(--button2-hover-color); /* グレー200 */box-shadow:0 2px 6px rgba(0, 0, 0, 0.1);}.item.svelte-13vsz3z:active {background-color:var(--button2-active-color); /* グレー300 */}
12
12
 
13
13
  /* バツボタン */.close-button.svelte-13vsz3z {position:absolute;right:12px;top:12px;width:36px;height:36px;display:flex;justify-content:center;align-items:center;background-color:var(--button2-bg-color); /* グレー200 */border:none;border-radius:50%;font-size:1.25rem;color:var(--button2-text-color); /* グレー700 */cursor:pointer;transition:background-color 0.2s ease,
14
- transform 0.1s ease;}.close-button.svelte-13vsz3z:hover {background-color:var(--button2-hover-color); /* グレー300 */}.close-button.svelte-13vsz3z:active {background-color:var(--button2-active-color); /* グレー400 */transform:scale(0.95); /* 押した感覚を演出 */}`};function pe(t,e){Gt(e,!0),de(t,En);let r=D(e,"url",7,""),n=D(e,"text",7,""),l=D(e,"shareTitle",7,""),s=D(e,"handleClose",7);const o=a=>{r()===""&&n()===""&&l()===""&&(r(window.location.href),l(document.title));const c=a.replace("{url}",encodeURIComponent(r())).replace("{title}",encodeURIComponent(l())).replace("{text}",encodeURIComponent(n()));console.log(c),window.open(c,"_blank","noreferrer"),s()()};var i=yn();i.__click=function(...a){var c;(c=s())==null||c.apply(this,a)};var u=Dt(i);u.__click=[$n];var v=Dt(u);v.__click=function(...a){var c;(c=s())==null||c.apply(this,a)};var h=Mt(v,4);return un(h,21,()=>bn,on,(a,c)=>{var f=xn();f.__click=[wn,o,c];var d=Dt(f);St(d,"width",24);var w=Mt(d);bt(f),Lt(()=>{St(d,"src",I(c).icon),St(d,"alt",I(c).name),nn(w,` ${I(c).name??""}`)}),ot(a,f)}),bt(h),bt(u),bt(i),ot(t,i),Kt({get url(){return r()},set url(a=""){r(a),N()},get text(){return n()},set text(a=""){n(a),N()},get shareTitle(){return l()},set shareTitle(a=""){l(a),N()},get handleClose(){return s()},set handleClose(a){s(a),N()}})}er(["click"]),customElements.define("nostr-share-dialog",_e(pe,{url:{},text:{},shareTitle:{},handleClose:{}},[],[],!0));var kn=rn(`<svg class="nostr-icon svelte-qqfqw1" version="1.1" id="_8" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 256 256" xml:space="preserve"><g><path class="st0 svelte-qqfqw1" d="M0,0v256h256V0H0z M231.2,159.2c0,20.7,0,31.1-3.5,42.2c-4.4,12.2-14,21.8-26.2,26.2
14
+ transform 0.1s ease;}.close-button.svelte-13vsz3z:hover {background-color:var(--button2-hover-color); /* グレー300 */}.close-button.svelte-13vsz3z:active {background-color:var(--button2-active-color); /* グレー400 */transform:scale(0.95); /* 押した感覚を演出 */}`};function ge(t,e){Gt(e,!0),he(t,En);let r=M(e,"url",7,""),n=M(e,"text",7,""),l=M(e,"shareTitle",7,""),s=M(e,"handleClose",7);const o=a=>{r()===""&&n()===""&&l()===""&&(r(window.location.href),l(document.title));const c=a.replace("{url}",encodeURIComponent(r())).replace("{title}",encodeURIComponent(l())).replace("{text}",encodeURIComponent(n()));console.log(c),window.open(c,"_blank","noreferrer"),s()()};var i=wn();i.__click=function(...a){var c;(c=s())==null||c.apply(this,a)};var u=Mt(i);u.__click=[$n];var v=Mt(u);v.__click=function(...a){var c;(c=s())==null||c.apply(this,a)};var d=Lt(v,4);return un(d,21,()=>mn,on,(a,c)=>{var f=yn();f.__click=[xn,o,c];var h=Mt(f);St(h,"width",24);var x=Lt(h);mt(f),jt(()=>{St(h,"src",D(c).icon),St(h,"alt",D(c).name),nn(x,` ${D(c).name??""}`)}),ot(a,f)}),mt(d),mt(u),mt(i),ot(t,i),Kt({get url(){return r()},set url(a=""){r(a),N()},get text(){return n()},set text(a=""){n(a),N()},get shareTitle(){return l()},set shareTitle(a=""){l(a),N()},get handleClose(){return s()},set handleClose(a){s(a),N()}})}er(["click"]),customElements.define("nostr-share-dialog",_e(ge,{url:{},text:{},shareTitle:{},handleClose:{}},[],[],!0));var kn=rn(`<svg class="nostr-icon svelte-givlj7" version="1.1" id="_8" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 256 256" xml:space="preserve"><g><path class="st0 svelte-givlj7" d="M0,0v256h256V0H0z M231.2,159.2c0,20.7,0,31.1-3.5,42.2c-4.4,12.2-14,21.8-26.2,26.2
15
15
  c-11.1,3.5-21.5,3.5-42.2,3.5H96.8c-20.7,0-31.1,0-42.2-3.5c-12.2-4.4-21.8-14-26.2-26.2c-3.5-11.1-3.5-21.5-3.5-42.2V96.8
16
16
  c0-20.7,0-31.1,3.5-42.2c4.4-12.2,14-21.8,26.2-26.2c11.2-3.5,21.5-3.5,42.2-3.5h62.5c20.7,0,31.1,0,42.2,3.5
17
- c12.2,4.4,21.8,14,26.2,26.2c3.5,11.1,3.5,21.5,3.5,42.2V159.2z"></path><circle class="st1 svelte-qqfqw1" cx="137.9" cy="99" r="12.1"></circle><path class="st1 svelte-qqfqw1" d="M210.8,115.9c0-47.3-27.7-68.7-64.4-68.7c-16.4,0-31,4.4-42.4,12.5c-3.8,2.7-9,0.1-9-4.5
17
+ c12.2,4.4,21.8,14,26.2,26.2c3.5,11.1,3.5,21.5,3.5,42.2V159.2z"></path><circle class="st1 svelte-givlj7" cx="137.9" cy="99" r="12.1"></circle><path class="st1 svelte-givlj7" d="M210.8,115.9c0-47.3-27.7-68.7-64.4-68.7c-16.4,0-31,4.4-42.4,12.5c-3.8,2.7-9,0.1-9-4.5
18
18
  c0-3.1-2.5-5.7-5.7-5.7H57.7c-3.1,0-5.7,2.5-5.7,5.7v144c0,3.1,2.5,5.7,5.7,5.7h33.7c3.1,0,5.6-2.5,5.6-5.6v-8.4
19
19
  c0-62.8-33.2-109.8-0.4-116c30-5.7,64.1-3,64.5,20.1c0,2,0.3,8,8.6,11.2c5,2,12.6,2.6,22.6,2.4c0,0,9.1-0.7,9.1,8.5
20
20
  c0,11.5-20.4,10.7-20.4,10.7c-6.7,0.3-22.6-1.5-31.7,1.2c-4.8,1.5-9,4.2-11.5,9.1c-4.2,8.3-6.2,26.5-6.5,45.5v15.5
21
- c0,3.1,2.5,5.7,5.7,5.7h68c3.1,0,5.7-2.5,5.7-5.7l0,0V115.9z"></path><path class="st2 svelte-qqfqw1" d="M227.6,54.6c-4.4-12.2-14-21.8-26.2-26.2c-11.1-3.5-21.5-3.5-42.2-3.5H96.8c-20.7,0-31.1,0-42.2,3.5
21
+ c0,3.1,2.5,5.7,5.7,5.7h68c3.1,0,5.7-2.5,5.7-5.7l0,0V115.9z"></path><path class="st2 svelte-givlj7" d="M227.6,54.6c-4.4-12.2-14-21.8-26.2-26.2c-11.1-3.5-21.5-3.5-42.2-3.5H96.8c-20.7,0-31.1,0-42.2,3.5
22
22
  c-12.2,4.4-21.8,14-26.2,26.2c-3.5,11.2-3.5,21.5-3.5,42.2v62.5c0,20.7,0,31.1,3.5,42.2c4.4,12.2,14,21.8,26.2,26.2
23
23
  c11.2,3.5,21.5,3.5,42.2,3.5h62.5c20.7,0,31.1,0,42.2-3.5c12.2-4.4,21.8-14,26.2-26.2c3.5-11.1,3.5-21.5,3.5-42.2V96.8
24
24
  C231.2,76.1,231.2,65.7,227.6,54.6z M205.1,204.8h-68c-3.1,0-5.7-2.5-5.7-5.7v-15.5c0.3-19,2.3-37.2,6.5-45.5
@@ -26,17 +26,17 @@ var NostrShare=function(m){"use strict";var Rn=Object.defineProperty;var fr=m=>{
26
26
  c-8.3-3.3-8.6-9.2-8.6-11.2c-0.4-23.1-34.5-25.9-64.5-20.1c-32.8,6.2,0.4,53.3,0.4,116v8.4c-0.1,3.1-2.5,5.6-5.6,5.6H57.7
27
27
  c-3.1,0-5.7-2.5-5.7-5.7v-144c0-3.1,2.5-5.7,5.7-5.7h31.7c3.1,0,5.7,2.5,5.7,5.7c0,4.7,5.2,7.2,9,4.5c11.4-8.2,26-12.5,42.4-12.5
28
28
  c36.7,0,64.4,21.4,64.4,68.7v83.2l0,0C210.8,202.3,208.3,204.8,205.1,204.8z M125.7,99c0-6.7,5.4-12.1,12.1-12.1S150,92.3,150,99
29
- s-5.4,12.1-12.1,12.1S125.7,105.8,125.7,99z"></path></g></svg>`);const Sn={hash:"svelte-qqfqw1",code:`
30
- /* アイコン内部のSVG */.nostr-icon.svelte-qqfqw1 {display:flex;align-items:center;justify-content:center;}.st0.svelte-qqfqw1 {fill:none;}.st1.svelte-qqfqw1 {fill:var(--bg-color);}.st2.svelte-qqfqw1 {fill:var(--nostr-color);}`};function ge(t,e){Gt(e,!0),de(t,Sn);let r=D(e,"size",7,28);var n=kn();return Lt(()=>St(n,"style",`enable-background:new 0 0 256 256; width: ${r()??""}px; height: ${r()??""}px;`)),ot(t,n),Kt({get size(){return r()},set size(l=28){r(l),N()}})}_e(ge,{size:{}},[],[],!0);const Tn=(t,e)=>{Rt(e,!0)};var zn=kt("<span>Nostr</span>"),Cn=kt("<!> <!>",1),Nn=kt("<button><!></button> <!>",1);const qn={hash:"svelte-hmm120",code:`:host {font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
31
- Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;--text-color-main: #2e2e2e;--button1-text-color: #662482;--button1-bg-color: #ececec;--button1-hover-color: #b1b1b1;--button1-border-color: #b9b9b9;--button2-text-color: rgb(73, 73, 73);--button2-bg-color: #f3f4f6;--button2-hover-color: #e5e7eb;--nostr-color: #662482;--bg-color: #ffffff;--border-color: #d1d5db;}
32
- @media (prefers-color-scheme: dark) {:host {--text-color-main: #ffffff;--button1-text-color: #eec5ff;--button1-bg-color: #363636;--button1-hover-color: #555555;--button1-border-color: #555555;--button2-text-color: #f1f1f1;--button2-bg-color: #1f1f1f;--button2-hover-color: #3b3b3b;--nostr-color: #eec5ff;--bg-color: #000000;--border-color: #333333;}
29
+ s-5.4,12.1-12.1,12.1S125.7,105.8,125.7,99z"></path></g></svg>`);const Sn={hash:"svelte-givlj7",code:`
30
+ /* アイコン内部のSVG */.nostr-icon.svelte-givlj7 {margin:auto;display:flex;align-items:center;justify-content:center;}.st0.svelte-givlj7 {fill:none;}.st1.svelte-givlj7 {fill:var(--bg-color);}.st2.svelte-givlj7 {fill:var(--nostr-color);}`};function pe(t,e){Gt(e,!0),he(t,Sn);let r=M(e,"size",7,28);var n=kn();return jt(()=>St(n,"style",`enable-background:new 0 0 256 256; width: ${r()??""}px; height: ${r()??""}px;`)),ot(t,n),Kt({get size(){return r()},set size(l=28){r(l),N()}})}_e(pe,{size:{}},[],[],!0);const Tn=(t,e)=>{It(e,!0)};var zn=kt("<span>Nostr</span>"),Cn=kt("<!> <!>",1),Nn=kt("<button><!></button> <!>",1);const An={hash:"svelte-smr0xx",code:`:host {font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
31
+ Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;display:flex;justify-content:center;align-items:center;--text-color-main: #2e2e2e;--button1-text-color: #662482;--button1-bg-color: #ececec;--button1-hover-color: #b1b1b1;--button1-border-color: #b9b9b9;--button2-text-color: rgb(73, 73, 73);--button2-bg-color: #f3f4f6;--button2-hover-color: #e5e7eb;--nostr-color: #662482;--bg-color: #ffffff;--border-color: #d1d5db;}
32
+ @media (prefers-color-scheme: dark) {:host {display:flex;justify-content:center;align-items:center;--text-color-main: #ffffff;--button1-text-color: #eec5ff;--button1-bg-color: #363636;--button1-hover-color: #555555;--button1-border-color: #555555;--button2-text-color: #f1f1f1;--button2-bg-color: #1f1f1f;--button2-hover-color: #3b3b3b;--nostr-color: #eec5ff;--bg-color: #000000;--border-color: #333333;}
33
33
  }
34
- /* ボタン全体の基本スタイル */.nostrShare-button.svelte-hmm120,
35
- .nostrShare-mini.svelte-hmm120 {color:var(--button1-text-color);display:flex;align-items:center;justify-content:center;border:1px solid var(--button1-border-color);cursor:pointer;transition:all 0.2s ease-in-out;}.nostrShare-icon.svelte-hmm120 {color:var(--button1-text-color);display:inline-flex; /* インラインアイコン */align-items:center;justify-content:center;cursor:pointer;width:var(--icon-size);height:var(--icon-size);margin:0;padding:4px;border-radius:50%;border:none; /* ボーダーを削除 */background-color:transparent; /* 背景を透明に */}
34
+ /* ボタン全体の基本スタイル */.nostrShare-button.svelte-smr0xx,
35
+ .nostrShare-mini.svelte-smr0xx {color:var(--button1-text-color);display:flex;align-items:center;justify-content:center;border:1px solid var(--button1-border-color);cursor:pointer;transition:all 0.2s ease-in-out;}.nostrShare-icon.svelte-smr0xx {color:var(--button1-text-color);display:flex;align-items:center;justify-content:center;cursor:pointer;width:var(--icon-size);height:var(--icon-size);margin:auto;padding:4px;border-radius:50%;border:none;background-color:transparent;}
36
36
 
37
- /* ボタンスタイル */.nostrShare-button.svelte-hmm120 {padding:6px 16px;margin:4px;font-weight:bold;border-radius:8px;background-color:var(--button1-bg-color); /* グレー */color:var(--button2-text-color); /* ダークグレー */}.nostrShare-button.svelte-hmm120:hover {background-color:var(--button1-hover-color); /* 少し明るいグレー */box-shadow:0 0 4px rgba(0, 0, 0, 0.1);}.nostrShare-button.svelte-hmm120:active {background-color:#d1d5db; /* ダークグレー */transform:scale(0.98);}
37
+ /* ボタンスタイル */.nostrShare-button.svelte-smr0xx {padding:6px 16px;margin:4px;font-weight:bold;border-radius:8px;background-color:var(--button1-bg-color); /* グレー */color:var(--button2-text-color); /* ダークグレー */}.nostrShare-button.svelte-smr0xx:hover {background-color:var(--button1-hover-color); /* 少し明るいグレー */box-shadow:0 0 4px rgba(0, 0, 0, 0.1);}.nostrShare-button.svelte-smr0xx:active {background-color:#d1d5db; /* ダークグレー */transform:scale(0.98);}
38
38
 
39
- /* テキスト用スタイル */.nostrShare-text.svelte-hmm120 {margin-left:8px;font-size:medium;color:var(--button2-text-color);}.nostrShare-icon.svelte-hmm120:hover {background-color:var(--button1-hover-color); /* グレー */box-shadow:0 0 6px rgba(0, 0, 0, 0.1);transition:all 0.2s ease-in-out;}.nostrShare-icon.svelte-hmm120:active {background-color:#d1d5db;transform:scale(0.95);transition:all 0.2s ease-in-out;}
39
+ /* テキスト用スタイル */.nostrShare-text.svelte-smr0xx {margin-left:8px;font-size:medium;color:var(--button2-text-color);}.nostrShare-icon.svelte-smr0xx:hover {background-color:var(--button1-hover-color); /* グレー */box-shadow:0 0 6px rgba(0, 0, 0, 0.1);transition:all 0.2s ease-in-out;}.nostrShare-icon.svelte-smr0xx:active {background-color:#d1d5db;transform:scale(0.95);transition:all 0.2s ease-in-out;}
40
40
 
41
- /* miniスタイル */.nostrShare-mini.svelte-hmm120 {padding:2px 6px;margin:2px;border-radius:8px;background-color:var(--button1-bg-color); /* グレー */color:var(--button2-text-color); /* ダークグレー */}.nostrShare-mini.svelte-hmm120:hover {background-color:var(--button1-hover-color); /* 少し明るいグレー */box-shadow:0 0 4px rgba(0, 0, 0, 0.1);}.nostrShare-mini.svelte-hmm120:active {background-color:#d1d5db; /* ダークグレー */transform:scale(0.98);}
42
- /* テキスト用スタイル */.nostrShare-text-mini.svelte-hmm120 {margin-left:4px;font-size:small;font-weight:bold;color:var(--button2-text-color);}`};function cr(t,e){Gt(e,!0),de(t,qn);let r=D(e,"data-url",7),n=D(e,"data-text",7),l=D(e,"data-title",7),s=D(e,"data-type",7,"default"),o=D(e,"icon-size",7,28),i=D(e,"class",7),u=D(e,"style",7),v=Rr(!1);const h=()=>{Rt(v,!1)},a=typeof o()=="string"?parseInt(o(),10):o();var c=Nn(),f=Oe(c);f.__click=[Tn,v];var d=Dt(f);vn(d,e,"default",{},_=>{var p=Cn(),x=Oe(p);{var J=q=>{ge(q,{size:24})},k=q=>{var nt=Ie(()=>s()==="icon"?a:28);ge(q,{get size(){return I(nt)}})};he(x,q=>{s()==="mini"?q(J):q(k,!1)})}var T=Mt(x,2);{var rt=q=>{var nt=zn();Lt(()=>ar(nt,`${(s()==="mini"?"nostrShare-text-mini":"nostrShare-text")??""} svelte-hmm120`)),ot(q,nt)};he(T,q=>{s()!=="icon"&&q(rt)})}ot(_,p)}),bt(f);var w=Mt(f,2);{var C=_=>{pe(_,{handleClose:h,get url(){return r()},get text(){return n()},get shareTitle(){return l()}})};he(w,_=>{I(v)&&_(C)})}return Lt(()=>{ar(f,`${`${i()||(s()==="icon"?"nostrShare-icon":s()==="mini"?"nostrShare-mini":"nostrShare-button")}`??""} svelte-hmm120`),St(f,"style",u()||"")}),ot(t,c),Kt({get"data-url"(){return r()},set"data-url"(_){r(_),N()},get"data-text"(){return n()},set"data-text"(_){n(_),N()},get"data-title"(){return l()},set"data-title"(_){l(_),N()},get"data-type"(){return s()},set"data-type"(_="default"){s(_),N()},get"icon-size"(){return o()},set"icon-size"(_=28){o(_),N()},get class(){return i()},set class(_){i(_),N()},get style(){return u()},set style(_){u(_),N()}})}return er(["click"]),customElements.define("nostr-share",_e(cr,{"data-url":{},"data-text":{},"data-title":{},"data-type":{},"icon-size":{},class:{},style:{}},["default"],[],!0)),m.Dialog=pe,m.NostrShare=cr,Object.defineProperty(m,Symbol.toStringTag,{value:"Module"}),m}({});
41
+ /* miniスタイル */.nostrShare-mini.svelte-smr0xx {padding:2px 6px;margin:2px;border-radius:8px;background-color:var(--button1-bg-color); /* グレー */color:var(--button2-text-color); /* ダークグレー */}.nostrShare-mini.svelte-smr0xx:hover {background-color:var(--button1-hover-color); /* 少し明るいグレー */box-shadow:0 0 4px rgba(0, 0, 0, 0.1);}.nostrShare-mini.svelte-smr0xx:active {background-color:#d1d5db; /* ダークグレー */transform:scale(0.98);}
42
+ /* テキスト用スタイル */.nostrShare-text-mini.svelte-smr0xx {margin-left:4px;font-size:small;font-weight:bold;color:var(--button2-text-color);}`};function cr(t,e){Gt(e,!0),he(t,An);let r=M(e,"data-url",7),n=M(e,"data-text",7),l=M(e,"data-title",7),s=M(e,"data-type",7,"default"),o=M(e,"icon-size",7,28),i=M(e,"class",7),u=M(e,"data-style",7),v=Ir(!1);const d=()=>{It(v,!1)},a=typeof o()=="string"?parseInt(o(),10):o();var c=Nn(),f=Re(c);f.__click=[Tn,v];var h=Mt(f);vn(h,e,"default",{},_=>{var g=Cn(),y=Re(g);{var J=A=>{pe(A,{size:24})},k=A=>{var nt=De(()=>s()==="icon"?a:28);pe(A,{get size(){return D(nt)}})};de(y,A=>{s()==="mini"?A(J):A(k,!1)})}var T=Lt(y,2);{var rt=A=>{var nt=zn();jt(()=>ar(nt,`${(s()==="mini"?"nostrShare-text-mini":"nostrShare-text")??""} svelte-smr0xx`)),ot(A,nt)};de(T,A=>{s()!=="icon"&&A(rt)})}ot(_,g)}),mt(f);var x=Lt(f,2);{var C=_=>{ge(_,{handleClose:d,get url(){return r()},get text(){return n()},get shareTitle(){return l()}})};de(x,_=>{D(v)&&_(C)})}return jt(()=>{ar(f,`${`${i()||(s()==="icon"?"nostrShare-icon":s()==="mini"?"nostrShare-mini":"nostrShare-button")}`??""} svelte-smr0xx`),St(f,"style",u()||"")}),ot(t,c),Kt({get"data-url"(){return r()},set"data-url"(_){r(_),N()},get"data-text"(){return n()},set"data-text"(_){n(_),N()},get"data-title"(){return l()},set"data-title"(_){l(_),N()},get"data-type"(){return s()},set"data-type"(_="default"){s(_),N()},get"icon-size"(){return o()},set"icon-size"(_=28){o(_),N()},get class(){return i()},set class(_){i(_),N()},get"data-style"(){return u()},set"data-style"(_){u(_),N()}})}return er(["click"]),customElements.define("nostr-share",_e(cr,{"data-url":{},"data-text":{},"data-title":{},"data-type":{},"icon-size":{},class:{},"data-style":{}},["default"],[],!0)),b.Dialog=ge,b.NostrShare=cr,Object.defineProperty(b,Symbol.toStringTag,{value:"Module"}),b}({});
@@ -1,4 +1,4 @@
1
- (function(m,b){typeof exports=="object"&&typeof module<"u"?b(exports):typeof define=="function"&&define.amd?define(["exports"],b):(m=typeof globalThis<"u"?globalThis:m||self,b(m.NostrShare={}))})(this,function(m){"use strict";var Rn=Object.defineProperty;var fr=m=>{throw TypeError(m)};var In=(m,b,S)=>b in m?Rn(m,b,{enumerable:!0,configurable:!0,writable:!0,value:S}):m[b]=S;var P=(m,b,S)=>In(m,typeof b!="symbol"?b+"":b,S),vr=(m,b,S)=>b.has(m)||fr("Cannot "+S);var A=(m,b,S)=>(vr(m,b,"read from private field"),S?S.call(m):b.get(m)),me=(m,b,S)=>b.has(m)?fr("Cannot add the same private member more than once"):b instanceof WeakSet?b.add(m):b.set(m,S),be=(m,b,S,Tt)=>(vr(m,b,"write to private field"),Tt?Tt.call(m,S):b.set(m,S),S);var W,M;const b="5";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(b);const S=1,Tt=2,dr=16,hr=8,_r=1,pr=2,$e="[",Xt="[!",Zt="]",pt={},gr=Symbol(),mr=["touchstart","touchmove"];function br(t){return mr.includes(t)}const xe=!1;var we=Array.isArray,Qt=Array.from,zt=Object.keys,Ct=Object.defineProperty,Nt=Object.getOwnPropertyDescriptor,$r=Object.getOwnPropertyDescriptors,xr=Object.getPrototypeOf;function wr(t){for(var e=0;e<t.length;e++)t[e]()}const L=2,ye=4,qt=8,te=16,H=32,it=64,ee=128,at=256,At=512,O=1024,X=2048,gt=4096,V=8192,ut=16384,yr=32768,re=65536,Er=1<<19,Ee=1<<20,kr=Symbol("$state"),ke=Symbol("legacy props"),Sr=Symbol("");function Se(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 zr(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 qr(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 Te=!1;function Ot(t,e){var r={f:0,v:t,reactions:null,equals:Se,version:0};return r}function Rr(t){return Ir(Ot(t))}function ne(t,e=!1){const r=Ot(t);return e||(r.equals=zr),r}function Ir(t){return E!==null&&E.f&L&&(j===null?Yr([t]):j.push(t)),t}function Rt(t,e){return E!==null&&Kr()&&E.f&(L|te)&&(j===null||!j.includes(t))&&Or(),ze(t,e)}function ze(t,e){return t.equals(e)||(t.v=e,t.version=We(),Ce(t,X),g!==null&&g.f&O&&!(g.f&H)&&(z!==null&&z.includes(t)?(K(g,X),Yt(g)):tt===null?Gr([t]):tt.push(t))),e}function Ce(t,e){var r=t.reactions;if(r!==null)for(var n=r.length,l=0;l<n;l++){var s=r[l],o=s.f;o&X||(K(s,e),o&(O|at)&&(o&L?Ce(s,gt):Yt(s)))}}function le(t){console.warn("https://svelte.dev/e/hydration_mismatch")}let $=!1;function U(t){$=t}let x;function B(t){if(t===null)throw le(),pt;return x=t}function mt(){return B(Z(x))}function bt(t){if($){if(Z(x)!==null)throw le(),pt;x=t}}function se(){for(var t=0,e=x;;){if(e.nodeType===8){var r=e.data;if(r===Zt){if(t===0)return e;t-=1}else(r===$e||r===Xt)&&(t+=1)}var n=Z(e);e.remove(),e=n}}var Ne,qe,Ae;function oe(){if(Ne===void 0){Ne=window;var t=Element.prototype,e=Node.prototype;qe=Nt(e,"firstChild").get,Ae=Nt(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 It(t=""){return document.createTextNode(t)}function Y(t){return qe.call(t)}function Z(t){return Ae.call(t)}function Dt(t,e){if(!$)return Y(t);var r=Y(x);return r===null&&(r=x.appendChild(It())),B(r),r}function Oe(t,e){if(!$){var r=Y(t);return r instanceof Comment&&r.data===""?Z(r):r}return x}function Mt(t,e=1,r=!1){let n=$?x:t;for(var l;e--;)l=n,n=Z(n);if(!$)return n;var s=n==null?void 0:n.nodeType;if(r&&s!==3){var o=It();return n===null?l==null||l.after(o):n.before(o),B(o),o}return B(n),n}function Re(t){t.textContent=""}function Ie(t){var e=L|X;g===null?e|=at:g.f|=Ee;var r=E!==null&&E.f&L?E:null;const n={children:null,ctx:F,deps:null,equals:Se,f:e,fn:t,reactions:null,v:null,version:0,parent:r??g};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&L?ie(n):G(n)}}}function Dr(t){for(var e=t.parent;e!==null;){if(!(e.f&L))return e;e=e.parent}return null}function Me(t){var e,r=g;Q(Dr(t));try{De(t),e=Je(t)}finally{Q(r)}return e}function Le(t){var e=Me(t),r=(st||t.f&at)&&t.deps!==null?gt:O;K(t,r),t.equals(e)||(t.v=e,t.version=We())}function ie(t){De(t),Et(t,0),K(t,ut),t.v=t.children=t.deps=t.ctx=t.reactions=null}function Mr(t,e){var r=e.last;r===null?e.last=e.first=t:(r.next=t,t.prev=r,e.last=t)}function ct(t,e,r,n=!0){var l=(t&it)!==0,s=g,o={ctx:F,deps:null,deriveds:null,nodes_start:null,nodes_end:null,f:t|X,first:null,fn:e,last:null,next:null,parent:l?null:s,prev:null,teardown:null,transitions:null,version:0};if(r){var i=ft;try{Ge(!0),Ut(o),o.f|=yr}catch(d){throw G(o),d}finally{Ge(i)}}else e!==null&&Yt(o);var u=r&&o.deps===null&&o.first===null&&o.nodes_start===null&&o.teardown===null&&(o.f&Ee)===0;if(!u&&!l&&n&&(s!==null&&Mr(o,s),E!==null&&E.f&L)){var v=E;(v.children??(v.children=[])).push(o)}return o}function Lr(t){const e=ct(it,t,!0);return()=>{G(e)}}function Fr(t){const e=ct(it,t,!0);return(r={})=>new Promise(n=>{r.outro?Ft(e,()=>{G(e),n(void 0)}):(G(e),n(void 0))})}function Pr(t){return ct(ye,t,!1)}function Hr(t){return ct(qt,t,!0)}function Lt(t){return ae(t)}function ae(t,e=0){return ct(qt|te|e,t,!0)}function $t(t,e=!0){return ct(qt|H,t,!0,e)}function Fe(t){var e=t.teardown;if(e!==null){const r=E;dt(null);try{e.call(null)}finally{dt(r)}}}function Pe(t){var e=t.deriveds;if(e!==null){t.deriveds=null;for(var r=0;r<e.length;r+=1)ie(e[r])}}function He(t,e=!1){var r=t.first;for(t.first=t.last=null;r!==null;){var n=r.next;G(r,e),r=n}}function Vr(t){for(var e=t.first;e!==null;){var r=e.next;e.f&H||G(e),e=r}}function G(t,e=!0){var r=!1;if((e||t.f&Er)&&t.nodes_start!==null){for(var n=t.nodes_start,l=t.nodes_end;n!==null;){var s=n===l?null:Z(n);n.remove(),n=s}r=!0}He(t,e&&!r),Pe(t),Et(t,0),K(t,ut);var o=t.transitions;if(o!==null)for(const u of o)u.stop();Fe(t);var i=t.parent;i!==null&&i.first!==null&&Ve(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Ve(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 Ft(t,e){var r=[];ue(t,r,!0),Be(r,()=>{G(t),e&&e()})}function Be(t,e){var r=t.length;if(r>0){var n=()=>--r||e();for(var l of t)l.out(n)}else e()}function ue(t,e,r){if(!(t.f&V)){if(t.f^=V,t.transitions!==null)for(const o of t.transitions)(o.is_global||r)&&e.push(o);for(var n=t.first;n!==null;){var l=n.next,s=(n.f&re)!==0||(n.f&H)!==0;ue(n,e,s?r:!1),n=l}}}function Pt(t){je(t,!0)}function je(t,e){if(t.f&V){yt(t)&&Ut(t),t.f^=V;for(var r=t.first;r!==null;){var n=r.next,l=(r.f&re)!==0||(r.f&H)!==0;je(r,l?e:!1),r=n}if(t.transitions!==null)for(const s of t.transitions)(s.is_global||e)&&s.in()}}let Ht=!1,ce=[];function Ue(){Ht=!1;const t=ce.slice();ce=[],wr(t)}function Br(t){Ht||(Ht=!0,queueMicrotask(Ue)),ce.push(t)}function jr(){Ht&&Ue()}const Ye=0,Ur=1;let Vt=!1,Bt=Ye,xt=!1,wt=null,ft=!1;function Ge(t){ft=t}let lt=[],vt=0,Dn=[],E=null;function dt(t){E=t}let g=null;function Q(t){g=t}let j=null;function Yr(t){j=t}let z=null,R=0,tt=null;function Gr(t){tt=t}let Ke=1,st=!1,F=null;function We(){return++Ke}function Kr(){return!Te}function yt(t){var o,i;var e=t.f;if(e&X)return!0;if(e&gt){var r=t.deps,n=(e&at)!==0;if(r!==null){var l;if(e&At){for(l=0;l<r.length;l++)((o=r[l]).reactions??(o.reactions=[])).push(t);t.f^=At}for(l=0;l<r.length;l++){var s=r[l];if(yt(s)&&Le(s),n&&g!==null&&!st&&!((i=s==null?void 0:s.reactions)!=null&&i.includes(t))&&(s.reactions??(s.reactions=[])).push(t),s.version>t.version)return!0}}(!n||g!==null&&!st)&&K(t,O)}return!1}function Wr(t,e){for(var r=e;r!==null;){if(r.f&ee)try{r.fn(t);return}catch{r.f^=ee}r=r.parent}throw Vt=!1,t}function Jr(t){return(t.f&ut)===0&&(t.parent===null||(t.parent.f&ee)===0)}function jt(t,e,r,n){if(Vt){if(r===null&&(Vt=!1),Jr(e))throw t;return}r!==null&&(Vt=!0);{Wr(t,e);return}}function Je(t){var c;var e=z,r=R,n=tt,l=E,s=st,o=j,i=F,u=t.f;z=null,R=0,tt=null,E=u&(H|it)?null:t,st=!ft&&(u&at)!==0,j=null,F=t.ctx;try{var v=(0,t.fn)(),d=t.deps;if(z!==null){var a;if(Et(t,R),d!==null&&R>0)for(d.length=R+z.length,a=0;a<z.length;a++)d[R+a]=z[a];else t.deps=d=z;if(!st)for(a=R;a<d.length;a++)((c=d[a]).reactions??(c.reactions=[])).push(t)}else d!==null&&R<d.length&&(Et(t,R),d.length=R);return v}finally{z=e,R=r,tt=n,E=l,st=s,j=o,F=i}}function Xr(t,e){let r=e.reactions;if(r!==null){var n=r.indexOf(t);if(n!==-1){var l=r.length-1;l===0?r=e.reactions=null:(r[n]=r[l],r.pop())}}r===null&&e.f&L&&(z===null||!z.includes(e))&&(K(e,gt),e.f&(at|At)||(e.f^=At),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 Ut(t){var e=t.f;if(!(e&ut)){K(t,O);var r=g,n=F;g=t;try{e&te?Vr(t):He(t),Pe(t),Fe(t);var l=Je(t);t.teardown=typeof l=="function"?l:null,t.version=Ke}catch(s){jt(s,t,r,n||t.ctx)}finally{g=r}}}function Xe(){if(vt>1e3){vt=0;try{Cr()}catch(t){if(wt!==null)jt(t,wt,null);else throw t}}vt++}function Ze(t){var e=t.length;if(e!==0){Xe();var r=ft;ft=!0;try{for(var n=0;n<e;n++){var l=t[n];l.f&O||(l.f^=O);var s=[];Qe(l,s),Zr(s)}}finally{ft=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&(ut|V)))try{yt(n)&&(Ut(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null?Ve(n):n.fn=null))}catch(l){jt(l,n,null,n.ctx)}}}function Qr(){if(xt=!1,vt>1001)return;const t=lt;lt=[],Ze(t),xt||(vt=0,wt=null)}function Yt(t){Bt===Ye&&(xt||(xt=!0,queueMicrotask(Qr))),wt=t;for(var e=t;e.parent!==null;){e=e.parent;var r=e.f;if(r&(it|H)){if(!(r&O))return;e.f^=O}}lt.push(e)}function Qe(t,e){var r=t.first,n=[];t:for(;r!==null;){var l=r.f,s=(l&H)!==0,o=s&&(l&O)!==0,i=r.next;if(!o&&!(l&V))if(l&qt){if(s)r.f^=O;else try{yt(r)&&Ut(r)}catch(a){jt(a,r,null,r.ctx)}var u=r.first;if(u!==null){r=u;continue}}else l&ye&&n.push(r);if(i===null){let a=r.parent;for(;a!==null;){if(t===a)break t;var v=a.next;if(v!==null){r=v;continue t}a=a.parent}}r=i}for(var d=0;d<n.length;d++)u=n[d],e.push(u),Qe(u,e)}function N(t){var e=Bt,r=lt;try{Xe();const l=[];Bt=Ur,lt=l,xt=!1,Ze(r);var n=t==null?void 0:t();return jr(),(lt.length>0||l.length>0)&&N(),vt=0,wt=null,n}finally{Bt=e,lt=r}}function I(t){var d;var e=t.f,r=(e&L)!==0;if(r&&e&ut){var n=Me(t);return ie(t),n}if(E!==null){j!==null&&j.includes(t)&&Ar();var l=E.deps;z===null&&l!==null&&l[R]===t?R++:z===null?z=[t]:z.push(t),tt!==null&&g!==null&&g.f&O&&!(g.f&H)&&tt.includes(t)&&(K(g,X),Yt(g))}else if(r&&t.deps===null)for(var s=t,o=s.parent,i=s;o!==null;)if(o.f&L){var u=o;i=u,o=u.parent}else{var v=o;(d=v.deriveds)!=null&&d.includes(i)||(v.deriveds??(v.deriveds=[])).push(i);break}return r&&(s=t,yt(s)&&Le(s)),t.v}function tn(t){const e=E;try{return E=null,t()}finally{E=e}}const en=~(X|gt|O);function K(t,e){t.f=t.f&en|e}function Gt(t,e=!1,r){F={p:F,c:null,e:null,m:!1,s:t,x:null,l:null}}function Kt(t){const e=F;if(e!==null){t!==void 0&&(e.x=t);const o=e.e;if(o!==null){var r=g,n=E;e.e=null;try{for(var l=0;l<o.length;l++){var s=o[l];Q(s.effect),dt(s.reaction),Pr(s.fn)}}finally{Q(r),dt(n)}}F=e.p,e.m=!0}return t||{}}const tr=new Set,fe=new Set;function er(t){for(var e=0;e<t.length;e++)tr.add(t[e]);for(var r of fe)r(t)}function Wt(t){var p;var e=this,r=e.ownerDocument,n=t.type,l=((p=t.composedPath)==null?void 0:p.call(t))||[],s=l[0]||t.target,o=0,i=t.__root;if(i){var u=l.indexOf(i);if(u!==-1&&(e===document||e===window)){t.__root=e;return}var v=l.indexOf(e);if(v===-1)return;u<=v&&(o=u)}if(s=l[o]||t.target,s!==e){Ct(t,"currentTarget",{configurable:!0,get(){return s||r}});var d=E,a=g;dt(null),Q(null);try{for(var c,f=[];s!==null;){var h=s.assignedSlot||s.parentNode||s.host||null;try{var w=s["__"+n];if(w!==void 0&&!s.disabled)if(we(w)){var[C,..._]=w;C.apply(s,[t,..._])}else w.call(s,t)}catch(y){c?f.push(y):c=y}if(t.cancelBubble||h===e||h===null)break;s=h}if(c){for(let y of f)queueMicrotask(()=>{throw y});throw c}}finally{t.__root=e,delete t.currentTarget,dt(d),Q(a)}}}function rr(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function ht(t,e){var r=g;r.nodes_start===null&&(r.nodes_start=t,r.nodes_end=e)}function kt(t,e){var r=(e&_r)!==0,n=(e&pr)!==0,l,s=!t.startsWith("<!>");return()=>{if($)return ht(x,null),x;l===void 0&&(l=rr(s?t:"<!>"+t),r||(l=Y(l)));var o=n?document.importNode(l,!0):l.cloneNode(!0);if(r){var i=Y(o),u=o.lastChild;ht(i,u)}else ht(o,o);return o}}function rn(t,e,r="svg"){var n=!t.startsWith("<!>"),l=`<${r}>${n?t:"<!>"+t}</${r}>`,s;return()=>{if($)return ht(x,null),x;if(!s){var o=rr(l),i=Y(o);s=Y(i)}var u=s.cloneNode(!0);return ht(u,u),u}}function ot(t,e){if($){g.nodes_end=x,mt();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 nr(t,e){return lr(t,e)}function ln(t,e){oe(),e.intro=e.intro??!1;const r=e.target,n=$,l=x;try{for(var s=Y(r);s&&(s.nodeType!==8||s.data!==$e);)s=Z(s);if(!s)throw pt;U(!0),B(s),mt();const o=lr(t,{...e,anchor:s});if(x===null||x.nodeType!==8||x.data!==Zt)throw le(),pt;return U(!1),o}catch(o){if(o===pt)return e.recover===!1&&Nr(),oe(),Re(r),U(!1),nr(t,e);throw o}finally{U(n),B(l)}}const _t=new Map;function lr(t,{target:e,anchor:r,props:n={},events:l,context:s,intro:o=!0}){oe();var i=new Set,u=a=>{for(var c=0;c<a.length;c++){var f=a[c];if(!i.has(f)){i.add(f);var h=br(f);e.addEventListener(f,Wt,{passive:h});var w=_t.get(f);w===void 0?(document.addEventListener(f,Wt,{passive:h}),_t.set(f,1)):_t.set(f,w+1)}}};u(Qt(tr)),fe.add(u);var v=void 0,d=Fr(()=>{var a=r??e.appendChild(It());return $t(()=>{if(s){Gt({});var c=F;c.c=s}l&&(n.$$events=l),$&&ht(a,null),v=t(a,n)||{},$&&(g.nodes_end=x),s&&Kt()}),()=>{var h;for(var c of i){e.removeEventListener(c,Wt);var f=_t.get(c);--f===0?(document.removeEventListener(c,Wt),_t.delete(c)):_t.set(c,f)}fe.delete(u),a!==r&&((h=a.parentNode)==null||h.removeChild(a))}});return ve.set(v,d),v}let ve=new WeakMap;function sn(t,e){const r=ve.get(t);return r?(ve.delete(t),r(e)):Promise.resolve()}function de(t,e,r=!1){$&&mt();var n=t,l=null,s=null,o=gr,i=r?re:0,u=!1;const v=(a,c=!0)=>{u=!0,d(c,a)},d=(a,c)=>{if(o===(o=a))return;let f=!1;if($){const h=n.data===Xt;!!o===h&&(n=se(),B(n),U(!1),f=!0)}o?(l?Pt(l):c&&(l=$t(()=>c(n))),s&&Ft(s,()=>{s=null})):(s?Pt(s):c&&(s=$t(()=>c(n))),l&&Ft(l,()=>{l=null})),f&&U(!0)};ae(()=>{u=!1,e(v),u||d(null,null)},i),$&&(n=x)}function on(t,e){return e}function an(t,e,r,n){for(var l=[],s=e.length,o=0;o<s;o++)ue(e[o].e,l,!0);var i=s>0&&l.length===0&&r!==null;if(i){var u=r.parentNode;Re(u),u.append(r),n.clear(),et(t,e[0].prev,e[s-1].next)}Be(l,()=>{for(var v=0;v<s;v++){var d=e[v];i||(n.delete(d.k),et(t,d.prev,d.next)),G(d.e,!i)}})}function un(t,e,r,n,l,s=null){var o=t,i={flags:e,items:new Map,first:null};{var u=t;o=$?B(Y(u)):u.appendChild(It())}$&&mt();var v=null,d=!1;ae(()=>{var a=r(),c=we(a)?a:a==null?[]:Qt(a),f=c.length;if(d&&f===0)return;d=f===0;let h=!1;if($){var w=o.data===Xt;w!==(f===0)&&(o=se(),B(o),U(!1),h=!0)}if($){for(var C=null,_,p=0;p<f;p++){if(x.nodeType===8&&x.data===Zt){o=x,h=!0,U(!1);break}var y=c[p],J=n(y,p);_=sr(x,i,C,null,y,J,p,l,e),i.items.set(J,_),C=_}f>0&&B(se())}if(!$){var k=E;cn(c,i,o,l,e,(k.f&V)!==0,n)}s!==null&&(f===0?v?Pt(v):v=$t(()=>s(o)):v!==null&&Ft(v,()=>{v=null})),h&&U(!0)}),$&&(o=x)}function cn(t,e,r,n,l,s,o,i){var u=t.length,v=e.items,d=e.first,a=d,c,f=null,h=[],w=[],C,_,p,y;for(y=0;y<u;y+=1){if(C=t[y],_=o(C,y),p=v.get(_),p===void 0){var J=a?a.e.nodes_start:r;f=sr(J,e,f,f===null?e.first:f.next,C,_,y,n,l),v.set(_,f),h=[],w=[],a=f.next;continue}if(fn(p,C,y),p.e.f&V&&Pt(p.e),p!==a){if(c!==void 0&&c.has(p)){if(h.length<w.length){var k=w[0],T;f=k.prev;var rt=h[0],q=h[h.length-1];for(T=0;T<h.length;T+=1)or(h[T],k,r);for(T=0;T<w.length;T+=1)c.delete(w[T]);et(e,rt.prev,q.next),et(e,f,rt),et(e,q,k),a=k,f=q,y-=1,h=[],w=[]}else c.delete(p),or(p,a,r),et(e,p.prev,p.next),et(e,p,f===null?e.first:f.next),et(e,f,p),f=p;continue}for(h=[],w=[];a!==null&&a.k!==_;)(s||!(a.e.f&V))&&(c??(c=new Set)).add(a),w.push(a),a=a.next;if(a===null)continue;p=a}h.push(p),f=p,a=p.next}if(a!==null||c!==void 0){for(var nt=c===void 0?[]:Qt(c);a!==null;)(s||!(a.e.f&V))&&nt.push(a),a=a.next;var An=nt.length;if(An>0){var On=u===0?r:null;an(e,nt,On,v)}}g.first=e.first&&e.first.e,g.last=f&&f.e}function fn(t,e,r,n){ze(t.v,e),t.i=r}function sr(t,e,r,n,l,s,o,i,u,v){var d=(u&S)!==0,a=(u&dr)===0,c=d?a?ne(l):Ot(l):l,f=u&Tt?Ot(o):o,h={i:f,v:c,k:s,a:null,e:null,prev:r,next:n};try{return h.e=$t(()=>i(t,c,f),$),h.e.prev=r&&r.e,h.e.next=n&&n.e,r===null?e.first=h:(r.next=h,r.e.next=h.e),n!==null&&(n.prev=h,n.e.prev=h.e),h}finally{}}function or(t,e,r){for(var n=t.next?t.next.e.nodes_start:r,l=e?e.e.nodes_start:r,s=t.e.nodes_start;s!==n;){var o=Z(s);l.before(s),s=o}}function et(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,l){var i;$&&mt();var s=(i=e.$$slots)==null?void 0:i[r],o=!1;s===!0&&(s=e.children,o=!0),s===void 0?l!==null&&l(t):s(t,o?()=>n:n)}function he(t,e){Br(()=>{var r=t.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+e.hash)){const l=document.createElement("style");l.id=e.hash,l.textContent=e.code,n.appendChild(l)}})}function St(t,e,r,n){var l=t.__attributes??(t.__attributes={});$&&(l[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")||l[e]!==(l[e]=r)&&(e==="style"&&"__styles"in t&&(t.__styles={}),e==="loading"&&(t[Sr]=r),r==null?t.removeAttribute(e):typeof r!="string"&&dn(t).includes(e)?t[e]=r:t.setAttribute(e,r))}var ir=new Map;function dn(t){var e=ir.get(t.nodeName);if(e)return e;ir.set(t.nodeName,e=[]);for(var r,n=t,l=Element.prototype;l!==n;){r=$r(n);for(var s in r)r[s].set&&e.push(s);n=xr(n)}return e}function ar(t,e){var r=t.__className,n=hn(e);$&&t.className===n?t.__className=n:(r!==n||$&&t.className!==n)&&(e==null?t.removeAttribute("class"):t.className=n,t.__className=n)}function hn(t){return t??""}function _n(t){for(var e=g,r=g;e!==null&&!(e.f&(H|it));)e=e.parent;try{return Q(e),t()}finally{Q(r)}}function D(t,e,r,n){var J;var l=!Te,s=(r&hr)!==0,o=!1,i;i=t[e];var u=kr in t||ke in t,v=((J=Nt(t,e))==null?void 0:J.set)??(u&&s&&e in t?k=>t[e]=k:void 0),d=n,a=!0,c=!1,f=()=>(c=!0,a&&(a=!1,d=n),d);i===void 0&&n!==void 0&&(v&&l&&qr(),i=f(),v&&v(i));var h;if(h=()=>{var k=t[e];return k===void 0?f():(a=!0,c=!1,k)},v){var w=t.$$legacy;return function(k,T){return arguments.length>0?((!T||w||o)&&v(T?h():k),k):h()}}var C=!1,_=!1,p=ne(i),y=_n(()=>Ie(()=>{var k=h(),T=I(p);return C?(C=!1,_=!0,T):(_=!1,p.v=k)}));return function(k,T){if(arguments.length>0){const rt=T?I(y):k;return y.equals(rt)||(C=!0,Rt(p,rt),c&&d!==void 0&&(d=rt),tn(()=>I(y))),k}return I(y)}}function pn(t){return new gn(t)}class gn{constructor(e){me(this,W);me(this,M);var s;var r=new Map,n=(o,i)=>{var u=ne(i);return r.set(o,u),u};const l=new Proxy({...e.props||{},$$events:{}},{get(o,i){return I(r.get(i)??n(i,Reflect.get(o,i)))},has(o,i){return i===ke?!0:(I(r.get(i)??n(i,Reflect.get(o,i))),Reflect.has(o,i))},set(o,i,u){return Rt(r.get(i)??n(i,u),u),Reflect.set(o,i,u)}});be(this,M,(e.hydrate?ln:nr)(e.component,{target:e.target,anchor:e.anchor,props:l,context:e.context,intro:e.intro??!1,recover:e.recover})),(!((s=e==null?void 0:e.props)!=null&&s.$$host)||e.sync===!1)&&N(),be(this,W,l.$$events);for(const o of Object.keys(A(this,M)))o==="$set"||o==="$destroy"||o==="$on"||Ct(this,o,{get(){return A(this,M)[o]},set(i){A(this,M)[o]=i},enumerable:!0});A(this,M).$set=o=>{Object.assign(l,o)},A(this,M).$destroy=()=>{sn(A(this,M))}}$set(e){A(this,M).$set(e)}$on(e,r){A(this,W)[e]=A(this,W)[e]||[];const n=(...l)=>r.call(this,...l);return A(this,W)[e].push(n),()=>{A(this,W)[e]=A(this,W)[e].filter(l=>l!==n)}}$destroy(){A(this,M).$destroy()}}W=new WeakMap,M=new WeakMap;let ur;typeof HTMLElement=="function"&&(ur=class extends HTMLElement{constructor(e,r,n){super();P(this,"$$ctor");P(this,"$$s");P(this,"$$c");P(this,"$$cn",!1);P(this,"$$d",{});P(this,"$$r",!1);P(this,"$$p_d",{});P(this,"$$l",{});P(this,"$$l_u",new Map);P(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 l=this.$$c.$on(e,r);this.$$l_u.set(r,l)}super.addEventListener(e,r,n)}removeEventListener(e,r,n){if(super.removeEventListener(e,r,n),this.$$c){const l=this.$$l_u.get(r);l&&(l(),this.$$l_u.delete(r))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(l){return s=>{const o=document.createElement("slot");l!=="default"&&(o.name=l),ot(s,o)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=mn(this);for(const l of this.$$s)l in n&&(l==="default"&&!this.$$d.children?(this.$$d.children=e(l),r.default=!0):r[l]=e(l));for(const l of this.attributes){const s=this.$$g_p(l.name);s in this.$$d||(this.$$d[s]=Jt(s,l.value,this.$$p_d,"toProp"))}for(const l in this.$$p_d)!(l in this.$$d)&&this[l]!==void 0&&(this.$$d[l]=this[l],delete this[l]);this.$$c=pn({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=Lr(()=>{Hr(()=>{var l;this.$$r=!0;for(const s of zt(this.$$c)){if(!((l=this.$$p_d[s])!=null&&l.reflect))continue;this.$$d[s]=this.$$c[s];const o=Jt(s,this.$$d[s],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,o)}this.$$r=!1})});for(const l in this.$$l)for(const s of this.$$l[l]){const o=this.$$c.$on(l,s);this.$$l_u.set(s,o)}this.$$l={}}}attributeChangedCallback(e,r,n){var l;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Jt(e,n,this.$$p_d,"toProp"),(l=this.$$c)==null||l.$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 zt(this.$$p_d).find(r=>this.$$p_d[r].attribute===e||!this.$$p_d[r].attribute&&r.toLowerCase()===e)||e}});function Jt(t,e,r,n){var s;const l=(s=r[t])==null?void 0:s.type;if(e=l==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!r[t])return e;if(n==="toAttribute")switch(l){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(l){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function mn(t){const e={};return t.childNodes.forEach(r=>{e[r.slot||"default"]=!0}),e}function _e(t,e,r,n,l,s){let o=class extends ur{constructor(){super(t,r,l),this.$$p_d=e}static get observedAttributes(){return zt(e).map(i=>(e[i].attribute||i).toLowerCase())}};return zt(e).forEach(i=>{Ct(o.prototype,i,{get(){return this.$$c&&i in this.$$c?this.$$c[i]:this.$$d[i]},set(u){var a;u=Jt(i,u,e),this.$$d[i]=u;var v=this.$$c;if(v){var d=(a=Nt(v,i))==null?void 0:a.get;d?v[i]=u:v.$set({[i]:u})}}})}),n.forEach(i=>{Ct(o.prototype,i,{get(){var u;return(u=this.$$c)==null?void 0:u[i]}})}),t.element=o,o}const bn=[{name:"nostter",url:"https://nostter.app/post?text={text}&url={url}&title={title}",icon:"https://nostter.app/favicon.ico"},{name:"lumilumi",url:"https://lumilumi.app/post?url={url}&text={text}&title={title}",icon:"https://lumilumi.app/favicon.ico"}];var $n=t=>t.stopPropagation(),xn=(t,e,r)=>e(I(r).url),wn=kt('<button class="item svelte-13vsz3z"><img> </button>'),yn=kt('<div class="overlay svelte-13vsz3z"><div class="inner svelte-13vsz3z"><button class="close-button svelte-13vsz3z" aria-label="Close">✖</button> <h2 class="title svelte-13vsz3z">Share</h2> <div class="list svelte-13vsz3z"></div></div></div>');const En={hash:"svelte-13vsz3z",code:`
1
+ (function(b,m){typeof exports=="object"&&typeof module<"u"?m(exports):typeof define=="function"&&define.amd?define(["exports"],m):(b=typeof globalThis<"u"?globalThis:b||self,m(b.NostrShare={}))})(this,function(b){"use strict";var In=Object.defineProperty;var fr=b=>{throw TypeError(b)};var Dn=(b,m,S)=>m in b?In(b,m,{enumerable:!0,configurable:!0,writable:!0,value:S}):b[m]=S;var P=(b,m,S)=>Dn(b,typeof m!="symbol"?m+"":m,S),vr=(b,m,S)=>m.has(b)||fr("Cannot "+S);var O=(b,m,S)=>(vr(b,m,"read from private field"),S?S.call(b):m.get(b)),be=(b,m,S)=>m.has(b)?fr("Cannot add the same private member more than once"):m instanceof WeakSet?m.add(b):m.set(b,S),me=(b,m,S,Tt)=>(vr(b,m,"write to private field"),Tt?Tt.call(b,S):m.set(b,S),S);var W,L;const m="5";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(m);const S=1,Tt=2,dr=16,hr=8,_r=1,pr=2,xe="[",Xt="[!",Zt="]",pt={},gr=Symbol(),br=["touchstart","touchmove"];function mr(t){return br.includes(t)}const $e=!1;var ye=Array.isArray,Qt=Array.from,zt=Object.keys,Ct=Object.defineProperty,Nt=Object.getOwnPropertyDescriptor,xr=Object.getOwnPropertyDescriptors,$r=Object.getPrototypeOf;function yr(t){for(var e=0;e<t.length;e++)t[e]()}const j=2,we=4,At=8,te=16,q=32,it=64,ee=128,at=256,Ot=512,R=1024,X=2048,gt=4096,H=8192,ut=16384,wr=32768,re=65536,Er=1<<19,Ee=1<<20,kr=Symbol("$state"),ke=Symbol("legacy props"),Sr=Symbol("");function Se(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 zr(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 Ar(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function Or(){throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function Rr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let Te=!1;function Rt(t,e){var r={f:0,v:t,reactions:null,equals:Se,version:0};return r}function Ir(t){return Dr(Rt(t))}function ne(t,e=!1){const r=Rt(t);return e||(r.equals=zr),r}function Dr(t){return E!==null&&E.f&j&&(B===null?Yr([t]):B.push(t)),t}function It(t,e){return E!==null&&Kr()&&E.f&(j|te)&&(B===null||!B.includes(t))&&Rr(),ze(t,e)}function ze(t,e){return t.equals(e)||(t.v=e,t.version=We(),Ce(t,X),g!==null&&g.f&R&&!(g.f&q)&&(z!==null&&z.includes(t)?(K(g,X),Yt(g)):tt===null?Gr([t]):tt.push(t))),e}function Ce(t,e){var r=t.reactions;if(r!==null)for(var n=r.length,l=0;l<n;l++){var s=r[l],o=s.f;o&X||(K(s,e),o&(R|at)&&(o&j?Ce(s,gt):Yt(s)))}}function le(t){console.warn("https://svelte.dev/e/hydration_mismatch")}let x=!1;function U(t){x=t}let $;function V(t){if(t===null)throw le(),pt;return $=t}function bt(){return V(Z($))}function mt(t){if(x){if(Z($)!==null)throw le(),pt;$=t}}function se(){for(var t=0,e=$;;){if(e.nodeType===8){var r=e.data;if(r===Zt){if(t===0)return e;t-=1}else(r===xe||r===Xt)&&(t+=1)}var n=Z(e);e.remove(),e=n}}var Ne,Ae,Oe;function oe(){if(Ne===void 0){Ne=window;var t=Element.prototype,e=Node.prototype;Ae=Nt(e,"firstChild").get,Oe=Nt(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 Dt(t=""){return document.createTextNode(t)}function Y(t){return Ae.call(t)}function Z(t){return Oe.call(t)}function Mt(t,e){if(!x)return Y(t);var r=Y($);return r===null&&(r=$.appendChild(Dt())),V(r),r}function Re(t,e){if(!x){var r=Y(t);return r instanceof Comment&&r.data===""?Z(r):r}return $}function Lt(t,e=1,r=!1){let n=x?$:t;for(var l;e--;)l=n,n=Z(n);if(!x)return n;var s=n==null?void 0:n.nodeType;if(r&&s!==3){var o=Dt();return n===null?l==null||l.after(o):n.before(o),V(o),o}return V(n),n}function Ie(t){t.textContent=""}function De(t){var e=j|X;g===null?e|=at:g.f|=Ee;var r=E!==null&&E.f&j?E:null;const n={children:null,ctx:F,deps:null,equals:Se,f:e,fn:t,reactions:null,v:null,version:0,parent:r??g};return r!==null&&(r.children??(r.children=[])).push(n),n}function Me(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&j?ie(n):G(n)}}}function Mr(t){for(var e=t.parent;e!==null;){if(!(e.f&j))return e;e=e.parent}return null}function Le(t){var e,r=g;Q(Mr(t));try{Me(t),e=Je(t)}finally{Q(r)}return e}function je(t){var e=Le(t),r=(st||t.f&at)&&t.deps!==null?gt:R;K(t,r),t.equals(e)||(t.v=e,t.version=We())}function ie(t){Me(t),Et(t,0),K(t,ut),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 ct(t,e,r,n=!0){var l=(t&it)!==0,s=g,o={ctx:F,deps:null,deriveds:null,nodes_start:null,nodes_end:null,f:t|X,first:null,fn:e,last:null,next:null,parent:l?null:s,prev:null,teardown:null,transitions:null,version:0};if(r){var i=ft;try{Ge(!0),Ut(o),o.f|=wr}catch(d){throw G(o),d}finally{Ge(i)}}else e!==null&&Yt(o);var u=r&&o.deps===null&&o.first===null&&o.nodes_start===null&&o.teardown===null&&(o.f&Ee)===0;if(!u&&!l&&n&&(s!==null&&Lr(o,s),E!==null&&E.f&j)){var v=E;(v.children??(v.children=[])).push(o)}return o}function jr(t){const e=ct(it,t,!0);return()=>{G(e)}}function Fr(t){const e=ct(it,t,!0);return(r={})=>new Promise(n=>{r.outro?Ft(e,()=>{G(e),n(void 0)}):(G(e),n(void 0))})}function Pr(t){return ct(we,t,!1)}function qr(t){return ct(At,t,!0)}function jt(t){return ae(t)}function ae(t,e=0){return ct(At|te|e,t,!0)}function xt(t,e=!0){return ct(At|q,t,!0,e)}function Fe(t){var e=t.teardown;if(e!==null){const r=E;dt(null);try{e.call(null)}finally{dt(r)}}}function Pe(t){var e=t.deriveds;if(e!==null){t.deriveds=null;for(var r=0;r<e.length;r+=1)ie(e[r])}}function qe(t,e=!1){var r=t.first;for(t.first=t.last=null;r!==null;){var n=r.next;G(r,e),r=n}}function Hr(t){for(var e=t.first;e!==null;){var r=e.next;e.f&q||G(e),e=r}}function G(t,e=!0){var r=!1;if((e||t.f&Er)&&t.nodes_start!==null){for(var n=t.nodes_start,l=t.nodes_end;n!==null;){var s=n===l?null:Z(n);n.remove(),n=s}r=!0}qe(t,e&&!r),Pe(t),Et(t,0),K(t,ut);var o=t.transitions;if(o!==null)for(const u of o)u.stop();Fe(t);var i=t.parent;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}function He(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 Ft(t,e){var r=[];ue(t,r,!0),Ve(r,()=>{G(t),e&&e()})}function Ve(t,e){var r=t.length;if(r>0){var n=()=>--r||e();for(var l of t)l.out(n)}else e()}function ue(t,e,r){if(!(t.f&H)){if(t.f^=H,t.transitions!==null)for(const o of t.transitions)(o.is_global||r)&&e.push(o);for(var n=t.first;n!==null;){var l=n.next,s=(n.f&re)!==0||(n.f&q)!==0;ue(n,e,s?r:!1),n=l}}}function Pt(t){Be(t,!0)}function Be(t,e){if(t.f&H){wt(t)&&Ut(t),t.f^=H;for(var r=t.first;r!==null;){var n=r.next,l=(r.f&re)!==0||(r.f&q)!==0;Be(r,l?e:!1),r=n}if(t.transitions!==null)for(const s of t.transitions)(s.is_global||e)&&s.in()}}let qt=!1,ce=[];function Ue(){qt=!1;const t=ce.slice();ce=[],yr(t)}function Vr(t){qt||(qt=!0,queueMicrotask(Ue)),ce.push(t)}function Br(){qt&&Ue()}const Ye=0,Ur=1;let Ht=!1,Vt=Ye,$t=!1,yt=null,ft=!1;function Ge(t){ft=t}let lt=[],vt=0,Mn=[],E=null;function dt(t){E=t}let g=null;function Q(t){g=t}let B=null;function Yr(t){B=t}let z=null,I=0,tt=null;function Gr(t){tt=t}let Ke=1,st=!1,F=null;function We(){return++Ke}function Kr(){return!Te}function wt(t){var o,i;var e=t.f;if(e&X)return!0;if(e&gt){var r=t.deps,n=(e&at)!==0;if(r!==null){var l;if(e&Ot){for(l=0;l<r.length;l++)((o=r[l]).reactions??(o.reactions=[])).push(t);t.f^=Ot}for(l=0;l<r.length;l++){var s=r[l];if(wt(s)&&je(s),n&&g!==null&&!st&&!((i=s==null?void 0:s.reactions)!=null&&i.includes(t))&&(s.reactions??(s.reactions=[])).push(t),s.version>t.version)return!0}}(!n||g!==null&&!st)&&K(t,R)}return!1}function Wr(t,e){for(var r=e;r!==null;){if(r.f&ee)try{r.fn(t);return}catch{r.f^=ee}r=r.parent}throw Ht=!1,t}function Jr(t){return(t.f&ut)===0&&(t.parent===null||(t.parent.f&ee)===0)}function Bt(t,e,r,n){if(Ht){if(r===null&&(Ht=!1),Jr(e))throw t;return}r!==null&&(Ht=!0);{Wr(t,e);return}}function Je(t){var c;var e=z,r=I,n=tt,l=E,s=st,o=B,i=F,u=t.f;z=null,I=0,tt=null,E=u&(q|it)?null:t,st=!ft&&(u&at)!==0,B=null,F=t.ctx;try{var v=(0,t.fn)(),d=t.deps;if(z!==null){var a;if(Et(t,I),d!==null&&I>0)for(d.length=I+z.length,a=0;a<z.length;a++)d[I+a]=z[a];else t.deps=d=z;if(!st)for(a=I;a<d.length;a++)((c=d[a]).reactions??(c.reactions=[])).push(t)}else d!==null&&I<d.length&&(Et(t,I),d.length=I);return v}finally{z=e,I=r,tt=n,E=l,st=s,B=o,F=i}}function Xr(t,e){let r=e.reactions;if(r!==null){var n=r.indexOf(t);if(n!==-1){var l=r.length-1;l===0?r=e.reactions=null:(r[n]=r[l],r.pop())}}r===null&&e.f&j&&(z===null||!z.includes(e))&&(K(e,gt),e.f&(at|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 Ut(t){var e=t.f;if(!(e&ut)){K(t,R);var r=g,n=F;g=t;try{e&te?Hr(t):qe(t),Pe(t),Fe(t);var l=Je(t);t.teardown=typeof l=="function"?l:null,t.version=Ke}catch(s){Bt(s,t,r,n||t.ctx)}finally{g=r}}}function Xe(){if(vt>1e3){vt=0;try{Cr()}catch(t){if(yt!==null)Bt(t,yt,null);else throw t}}vt++}function Ze(t){var e=t.length;if(e!==0){Xe();var r=ft;ft=!0;try{for(var n=0;n<e;n++){var l=t[n];l.f&R||(l.f^=R);var s=[];Qe(l,s),Zr(s)}}finally{ft=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&(ut|H)))try{wt(n)&&(Ut(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null?He(n):n.fn=null))}catch(l){Bt(l,n,null,n.ctx)}}}function Qr(){if($t=!1,vt>1001)return;const t=lt;lt=[],Ze(t),$t||(vt=0,yt=null)}function Yt(t){Vt===Ye&&($t||($t=!0,queueMicrotask(Qr))),yt=t;for(var e=t;e.parent!==null;){e=e.parent;var r=e.f;if(r&(it|q)){if(!(r&R))return;e.f^=R}}lt.push(e)}function Qe(t,e){var r=t.first,n=[];t:for(;r!==null;){var l=r.f,s=(l&q)!==0,o=s&&(l&R)!==0,i=r.next;if(!o&&!(l&H))if(l&At){if(s)r.f^=R;else try{wt(r)&&Ut(r)}catch(a){Bt(a,r,null,r.ctx)}var u=r.first;if(u!==null){r=u;continue}}else l&we&&n.push(r);if(i===null){let a=r.parent;for(;a!==null;){if(t===a)break t;var v=a.next;if(v!==null){r=v;continue t}a=a.parent}}r=i}for(var d=0;d<n.length;d++)u=n[d],e.push(u),Qe(u,e)}function N(t){var e=Vt,r=lt;try{Xe();const l=[];Vt=Ur,lt=l,$t=!1,Ze(r);var n=t==null?void 0:t();return Br(),(lt.length>0||l.length>0)&&N(),vt=0,yt=null,n}finally{Vt=e,lt=r}}function D(t){var d;var e=t.f,r=(e&j)!==0;if(r&&e&ut){var n=Le(t);return ie(t),n}if(E!==null){B!==null&&B.includes(t)&&Or();var l=E.deps;z===null&&l!==null&&l[I]===t?I++:z===null?z=[t]:z.push(t),tt!==null&&g!==null&&g.f&R&&!(g.f&q)&&tt.includes(t)&&(K(g,X),Yt(g))}else if(r&&t.deps===null)for(var s=t,o=s.parent,i=s;o!==null;)if(o.f&j){var u=o;i=u,o=u.parent}else{var v=o;(d=v.deriveds)!=null&&d.includes(i)||(v.deriveds??(v.deriveds=[])).push(i);break}return r&&(s=t,wt(s)&&je(s)),t.v}function tn(t){const e=E;try{return E=null,t()}finally{E=e}}const en=~(X|gt|R);function K(t,e){t.f=t.f&en|e}function Gt(t,e=!1,r){F={p:F,c:null,e:null,m:!1,s:t,x:null,l:null}}function Kt(t){const e=F;if(e!==null){t!==void 0&&(e.x=t);const o=e.e;if(o!==null){var r=g,n=E;e.e=null;try{for(var l=0;l<o.length;l++){var s=o[l];Q(s.effect),dt(s.reaction),Pr(s.fn)}}finally{Q(r),dt(n)}}F=e.p,e.m=!0}return t||{}}const tr=new Set,fe=new Set;function er(t){for(var e=0;e<t.length;e++)tr.add(t[e]);for(var r of fe)r(t)}function Wt(t){var p;var e=this,r=e.ownerDocument,n=t.type,l=((p=t.composedPath)==null?void 0:p.call(t))||[],s=l[0]||t.target,o=0,i=t.__root;if(i){var u=l.indexOf(i);if(u!==-1&&(e===document||e===window)){t.__root=e;return}var v=l.indexOf(e);if(v===-1)return;u<=v&&(o=u)}if(s=l[o]||t.target,s!==e){Ct(t,"currentTarget",{configurable:!0,get(){return s||r}});var d=E,a=g;dt(null),Q(null);try{for(var c,f=[];s!==null;){var h=s.assignedSlot||s.parentNode||s.host||null;try{var y=s["__"+n];if(y!==void 0&&!s.disabled)if(ye(y)){var[C,..._]=y;C.apply(s,[t,..._])}else y.call(s,t)}catch(w){c?f.push(w):c=w}if(t.cancelBubble||h===e||h===null)break;s=h}if(c){for(let w of f)queueMicrotask(()=>{throw w});throw c}}finally{t.__root=e,delete t.currentTarget,dt(d),Q(a)}}}function rr(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function ht(t,e){var r=g;r.nodes_start===null&&(r.nodes_start=t,r.nodes_end=e)}function kt(t,e){var r=(e&_r)!==0,n=(e&pr)!==0,l,s=!t.startsWith("<!>");return()=>{if(x)return ht($,null),$;l===void 0&&(l=rr(s?t:"<!>"+t),r||(l=Y(l)));var o=n?document.importNode(l,!0):l.cloneNode(!0);if(r){var i=Y(o),u=o.lastChild;ht(i,u)}else ht(o,o);return o}}function rn(t,e,r="svg"){var n=!t.startsWith("<!>"),l=`<${r}>${n?t:"<!>"+t}</${r}>`,s;return()=>{if(x)return ht($,null),$;if(!s){var o=rr(l),i=Y(o);s=Y(i)}var u=s.cloneNode(!0);return ht(u,u),u}}function ot(t,e){if(x){g.nodes_end=$,bt();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 nr(t,e){return lr(t,e)}function ln(t,e){oe(),e.intro=e.intro??!1;const r=e.target,n=x,l=$;try{for(var s=Y(r);s&&(s.nodeType!==8||s.data!==xe);)s=Z(s);if(!s)throw pt;U(!0),V(s),bt();const o=lr(t,{...e,anchor:s});if($===null||$.nodeType!==8||$.data!==Zt)throw le(),pt;return U(!1),o}catch(o){if(o===pt)return e.recover===!1&&Nr(),oe(),Ie(r),U(!1),nr(t,e);throw o}finally{U(n),V(l)}}const _t=new Map;function lr(t,{target:e,anchor:r,props:n={},events:l,context:s,intro:o=!0}){oe();var i=new Set,u=a=>{for(var c=0;c<a.length;c++){var f=a[c];if(!i.has(f)){i.add(f);var h=mr(f);e.addEventListener(f,Wt,{passive:h});var y=_t.get(f);y===void 0?(document.addEventListener(f,Wt,{passive:h}),_t.set(f,1)):_t.set(f,y+1)}}};u(Qt(tr)),fe.add(u);var v=void 0,d=Fr(()=>{var a=r??e.appendChild(Dt());return xt(()=>{if(s){Gt({});var c=F;c.c=s}l&&(n.$$events=l),x&&ht(a,null),v=t(a,n)||{},x&&(g.nodes_end=$),s&&Kt()}),()=>{var h;for(var c of i){e.removeEventListener(c,Wt);var f=_t.get(c);--f===0?(document.removeEventListener(c,Wt),_t.delete(c)):_t.set(c,f)}fe.delete(u),a!==r&&((h=a.parentNode)==null||h.removeChild(a))}});return ve.set(v,d),v}let ve=new WeakMap;function sn(t,e){const r=ve.get(t);return r?(ve.delete(t),r(e)):Promise.resolve()}function de(t,e,r=!1){x&&bt();var n=t,l=null,s=null,o=gr,i=r?re:0,u=!1;const v=(a,c=!0)=>{u=!0,d(c,a)},d=(a,c)=>{if(o===(o=a))return;let f=!1;if(x){const h=n.data===Xt;!!o===h&&(n=se(),V(n),U(!1),f=!0)}o?(l?Pt(l):c&&(l=xt(()=>c(n))),s&&Ft(s,()=>{s=null})):(s?Pt(s):c&&(s=xt(()=>c(n))),l&&Ft(l,()=>{l=null})),f&&U(!0)};ae(()=>{u=!1,e(v),u||d(null,null)},i),x&&(n=$)}function on(t,e){return e}function an(t,e,r,n){for(var l=[],s=e.length,o=0;o<s;o++)ue(e[o].e,l,!0);var i=s>0&&l.length===0&&r!==null;if(i){var u=r.parentNode;Ie(u),u.append(r),n.clear(),et(t,e[0].prev,e[s-1].next)}Ve(l,()=>{for(var v=0;v<s;v++){var d=e[v];i||(n.delete(d.k),et(t,d.prev,d.next)),G(d.e,!i)}})}function un(t,e,r,n,l,s=null){var o=t,i={flags:e,items:new Map,first:null};{var u=t;o=x?V(Y(u)):u.appendChild(Dt())}x&&bt();var v=null,d=!1;ae(()=>{var a=r(),c=ye(a)?a:a==null?[]:Qt(a),f=c.length;if(d&&f===0)return;d=f===0;let h=!1;if(x){var y=o.data===Xt;y!==(f===0)&&(o=se(),V(o),U(!1),h=!0)}if(x){for(var C=null,_,p=0;p<f;p++){if($.nodeType===8&&$.data===Zt){o=$,h=!0,U(!1);break}var w=c[p],J=n(w,p);_=sr($,i,C,null,w,J,p,l,e),i.items.set(J,_),C=_}f>0&&V(se())}if(!x){var k=E;cn(c,i,o,l,e,(k.f&H)!==0,n)}s!==null&&(f===0?v?Pt(v):v=xt(()=>s(o)):v!==null&&Ft(v,()=>{v=null})),h&&U(!0)}),x&&(o=$)}function cn(t,e,r,n,l,s,o,i){var u=t.length,v=e.items,d=e.first,a=d,c,f=null,h=[],y=[],C,_,p,w;for(w=0;w<u;w+=1){if(C=t[w],_=o(C,w),p=v.get(_),p===void 0){var J=a?a.e.nodes_start:r;f=sr(J,e,f,f===null?e.first:f.next,C,_,w,n,l),v.set(_,f),h=[],y=[],a=f.next;continue}if(fn(p,C,w),p.e.f&H&&Pt(p.e),p!==a){if(c!==void 0&&c.has(p)){if(h.length<y.length){var k=y[0],T;f=k.prev;var rt=h[0],A=h[h.length-1];for(T=0;T<h.length;T+=1)or(h[T],k,r);for(T=0;T<y.length;T+=1)c.delete(y[T]);et(e,rt.prev,A.next),et(e,f,rt),et(e,A,k),a=k,f=A,w-=1,h=[],y=[]}else c.delete(p),or(p,a,r),et(e,p.prev,p.next),et(e,p,f===null?e.first:f.next),et(e,f,p),f=p;continue}for(h=[],y=[];a!==null&&a.k!==_;)(s||!(a.e.f&H))&&(c??(c=new Set)).add(a),y.push(a),a=a.next;if(a===null)continue;p=a}h.push(p),f=p,a=p.next}if(a!==null||c!==void 0){for(var nt=c===void 0?[]:Qt(c);a!==null;)(s||!(a.e.f&H))&&nt.push(a),a=a.next;var On=nt.length;if(On>0){var Rn=u===0?r:null;an(e,nt,Rn,v)}}g.first=e.first&&e.first.e,g.last=f&&f.e}function fn(t,e,r,n){ze(t.v,e),t.i=r}function sr(t,e,r,n,l,s,o,i,u,v){var d=(u&S)!==0,a=(u&dr)===0,c=d?a?ne(l):Rt(l):l,f=u&Tt?Rt(o):o,h={i:f,v:c,k:s,a:null,e:null,prev:r,next:n};try{return h.e=xt(()=>i(t,c,f),x),h.e.prev=r&&r.e,h.e.next=n&&n.e,r===null?e.first=h:(r.next=h,r.e.next=h.e),n!==null&&(n.prev=h,n.e.prev=h.e),h}finally{}}function or(t,e,r){for(var n=t.next?t.next.e.nodes_start:r,l=e?e.e.nodes_start:r,s=t.e.nodes_start;s!==n;){var o=Z(s);l.before(s),s=o}}function et(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,l){var i;x&&bt();var s=(i=e.$$slots)==null?void 0:i[r],o=!1;s===!0&&(s=e.children,o=!0),s===void 0?l!==null&&l(t):s(t,o?()=>n:n)}function he(t,e){Vr(()=>{var r=t.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+e.hash)){const l=document.createElement("style");l.id=e.hash,l.textContent=e.code,n.appendChild(l)}})}function St(t,e,r,n){var l=t.__attributes??(t.__attributes={});x&&(l[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")||l[e]!==(l[e]=r)&&(e==="style"&&"__styles"in t&&(t.__styles={}),e==="loading"&&(t[Sr]=r),r==null?t.removeAttribute(e):typeof r!="string"&&dn(t).includes(e)?t[e]=r:t.setAttribute(e,r))}var ir=new Map;function dn(t){var e=ir.get(t.nodeName);if(e)return e;ir.set(t.nodeName,e=[]);for(var r,n=t,l=Element.prototype;l!==n;){r=xr(n);for(var s in r)r[s].set&&e.push(s);n=$r(n)}return e}function ar(t,e){var r=t.__className,n=hn(e);x&&t.className===n?t.__className=n:(r!==n||x&&t.className!==n)&&(e==null?t.removeAttribute("class"):t.className=n,t.__className=n)}function hn(t){return t??""}function _n(t){for(var e=g,r=g;e!==null&&!(e.f&(q|it));)e=e.parent;try{return Q(e),t()}finally{Q(r)}}function M(t,e,r,n){var J;var l=!Te,s=(r&hr)!==0,o=!1,i;i=t[e];var u=kr in t||ke in t,v=((J=Nt(t,e))==null?void 0:J.set)??(u&&s&&e in t?k=>t[e]=k:void 0),d=n,a=!0,c=!1,f=()=>(c=!0,a&&(a=!1,d=n),d);i===void 0&&n!==void 0&&(v&&l&&Ar(),i=f(),v&&v(i));var h;if(h=()=>{var k=t[e];return k===void 0?f():(a=!0,c=!1,k)},v){var y=t.$$legacy;return function(k,T){return arguments.length>0?((!T||y||o)&&v(T?h():k),k):h()}}var C=!1,_=!1,p=ne(i),w=_n(()=>De(()=>{var k=h(),T=D(p);return C?(C=!1,_=!0,T):(_=!1,p.v=k)}));return function(k,T){if(arguments.length>0){const rt=T?D(w):k;return w.equals(rt)||(C=!0,It(p,rt),c&&d!==void 0&&(d=rt),tn(()=>D(w))),k}return D(w)}}function pn(t){return new gn(t)}class gn{constructor(e){be(this,W);be(this,L);var s;var r=new Map,n=(o,i)=>{var u=ne(i);return r.set(o,u),u};const l=new Proxy({...e.props||{},$$events:{}},{get(o,i){return D(r.get(i)??n(i,Reflect.get(o,i)))},has(o,i){return i===ke?!0:(D(r.get(i)??n(i,Reflect.get(o,i))),Reflect.has(o,i))},set(o,i,u){return It(r.get(i)??n(i,u),u),Reflect.set(o,i,u)}});me(this,L,(e.hydrate?ln:nr)(e.component,{target:e.target,anchor:e.anchor,props:l,context:e.context,intro:e.intro??!1,recover:e.recover})),(!((s=e==null?void 0:e.props)!=null&&s.$$host)||e.sync===!1)&&N(),me(this,W,l.$$events);for(const o of Object.keys(O(this,L)))o==="$set"||o==="$destroy"||o==="$on"||Ct(this,o,{get(){return O(this,L)[o]},set(i){O(this,L)[o]=i},enumerable:!0});O(this,L).$set=o=>{Object.assign(l,o)},O(this,L).$destroy=()=>{sn(O(this,L))}}$set(e){O(this,L).$set(e)}$on(e,r){O(this,W)[e]=O(this,W)[e]||[];const n=(...l)=>r.call(this,...l);return O(this,W)[e].push(n),()=>{O(this,W)[e]=O(this,W)[e].filter(l=>l!==n)}}$destroy(){O(this,L).$destroy()}}W=new WeakMap,L=new WeakMap;let ur;typeof HTMLElement=="function"&&(ur=class extends HTMLElement{constructor(e,r,n){super();P(this,"$$ctor");P(this,"$$s");P(this,"$$c");P(this,"$$cn",!1);P(this,"$$d",{});P(this,"$$r",!1);P(this,"$$p_d",{});P(this,"$$l",{});P(this,"$$l_u",new Map);P(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 l=this.$$c.$on(e,r);this.$$l_u.set(r,l)}super.addEventListener(e,r,n)}removeEventListener(e,r,n){if(super.removeEventListener(e,r,n),this.$$c){const l=this.$$l_u.get(r);l&&(l(),this.$$l_u.delete(r))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(l){return s=>{const o=document.createElement("slot");l!=="default"&&(o.name=l),ot(s,o)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=bn(this);for(const l of this.$$s)l in n&&(l==="default"&&!this.$$d.children?(this.$$d.children=e(l),r.default=!0):r[l]=e(l));for(const l of this.attributes){const s=this.$$g_p(l.name);s in this.$$d||(this.$$d[s]=Jt(s,l.value,this.$$p_d,"toProp"))}for(const l in this.$$p_d)!(l in this.$$d)&&this[l]!==void 0&&(this.$$d[l]=this[l],delete this[l]);this.$$c=pn({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=jr(()=>{qr(()=>{var l;this.$$r=!0;for(const s of zt(this.$$c)){if(!((l=this.$$p_d[s])!=null&&l.reflect))continue;this.$$d[s]=this.$$c[s];const o=Jt(s,this.$$d[s],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,o)}this.$$r=!1})});for(const l in this.$$l)for(const s of this.$$l[l]){const o=this.$$c.$on(l,s);this.$$l_u.set(s,o)}this.$$l={}}}attributeChangedCallback(e,r,n){var l;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Jt(e,n,this.$$p_d,"toProp"),(l=this.$$c)==null||l.$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 zt(this.$$p_d).find(r=>this.$$p_d[r].attribute===e||!this.$$p_d[r].attribute&&r.toLowerCase()===e)||e}});function Jt(t,e,r,n){var s;const l=(s=r[t])==null?void 0:s.type;if(e=l==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!r[t])return e;if(n==="toAttribute")switch(l){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(l){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function bn(t){const e={};return t.childNodes.forEach(r=>{e[r.slot||"default"]=!0}),e}function _e(t,e,r,n,l,s){let o=class extends ur{constructor(){super(t,r,l),this.$$p_d=e}static get observedAttributes(){return zt(e).map(i=>(e[i].attribute||i).toLowerCase())}};return zt(e).forEach(i=>{Ct(o.prototype,i,{get(){return this.$$c&&i in this.$$c?this.$$c[i]:this.$$d[i]},set(u){var a;u=Jt(i,u,e),this.$$d[i]=u;var v=this.$$c;if(v){var d=(a=Nt(v,i))==null?void 0:a.get;d?v[i]=u:v.$set({[i]:u})}}})}),n.forEach(i=>{Ct(o.prototype,i,{get(){var u;return(u=this.$$c)==null?void 0:u[i]}})}),t.element=o,o}const mn=[{name:"nostter",url:"https://nostter.app/post?text={text}&url={url}&title={title}",icon:"https://nostter.app/favicon.ico"},{name:"lumilumi",url:"https://lumilumi.app/post?url={url}&text={text}&title={title}",icon:"https://lumilumi.app/favicon.ico"}];var xn=t=>t.stopPropagation(),$n=(t,e,r)=>e(D(r).url),yn=kt('<button class="item svelte-13vsz3z"><img> </button>'),wn=kt('<div class="overlay svelte-13vsz3z"><div class="inner svelte-13vsz3z"><button class="close-button svelte-13vsz3z" aria-label="Close">✖</button> <h2 class="title svelte-13vsz3z">Share</h2> <div class="list svelte-13vsz3z"></div></div></div>');const En={hash:"svelte-13vsz3z",code:`
2
2
  /* オーバーレイ背景 */.overlay.svelte-13vsz3z {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;}
3
3
 
4
4
  /* ダイアログ本体 */.inner.svelte-13vsz3z {display:flex;flex-direction:column;position:relative;background-color:var(--bg-color);padding:1.5rem;border-radius:12px; /* 柔らかい角丸 */box-shadow:0 8px 16px rgba(0, 0, 0, 0.2);width:90%;max-width:400px;gap:1rem; /* スペーシング */}
@@ -11,14 +11,14 @@
11
11
  box-shadow 0.2s ease;}.item.svelte-13vsz3z:hover {background-color:var(--button2-hover-color); /* グレー200 */box-shadow:0 2px 6px rgba(0, 0, 0, 0.1);}.item.svelte-13vsz3z:active {background-color:var(--button2-active-color); /* グレー300 */}
12
12
 
13
13
  /* バツボタン */.close-button.svelte-13vsz3z {position:absolute;right:12px;top:12px;width:36px;height:36px;display:flex;justify-content:center;align-items:center;background-color:var(--button2-bg-color); /* グレー200 */border:none;border-radius:50%;font-size:1.25rem;color:var(--button2-text-color); /* グレー700 */cursor:pointer;transition:background-color 0.2s ease,
14
- transform 0.1s ease;}.close-button.svelte-13vsz3z:hover {background-color:var(--button2-hover-color); /* グレー300 */}.close-button.svelte-13vsz3z:active {background-color:var(--button2-active-color); /* グレー400 */transform:scale(0.95); /* 押した感覚を演出 */}`};function pe(t,e){Gt(e,!0),he(t,En);let r=D(e,"url",7,""),n=D(e,"text",7,""),l=D(e,"shareTitle",7,""),s=D(e,"handleClose",7);const o=a=>{r()===""&&n()===""&&l()===""&&(r(window.location.href),l(document.title));const c=a.replace("{url}",encodeURIComponent(r())).replace("{title}",encodeURIComponent(l())).replace("{text}",encodeURIComponent(n()));console.log(c),window.open(c,"_blank","noreferrer"),s()()};var i=yn();i.__click=function(...a){var c;(c=s())==null||c.apply(this,a)};var u=Dt(i);u.__click=[$n];var v=Dt(u);v.__click=function(...a){var c;(c=s())==null||c.apply(this,a)};var d=Mt(v,4);return un(d,21,()=>bn,on,(a,c)=>{var f=wn();f.__click=[xn,o,c];var h=Dt(f);St(h,"width",24);var w=Mt(h);bt(f),Lt(()=>{St(h,"src",I(c).icon),St(h,"alt",I(c).name),nn(w,` ${I(c).name??""}`)}),ot(a,f)}),bt(d),bt(u),bt(i),ot(t,i),Kt({get url(){return r()},set url(a=""){r(a),N()},get text(){return n()},set text(a=""){n(a),N()},get shareTitle(){return l()},set shareTitle(a=""){l(a),N()},get handleClose(){return s()},set handleClose(a){s(a),N()}})}er(["click"]),customElements.define("nostr-share-dialog",_e(pe,{url:{},text:{},shareTitle:{},handleClose:{}},[],[],!0));var kn=rn(`<svg class="nostr-icon svelte-qqfqw1" version="1.1" id="_8" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 256 256" xml:space="preserve"><g><path class="st0 svelte-qqfqw1" d="M0,0v256h256V0H0z M231.2,159.2c0,20.7,0,31.1-3.5,42.2c-4.4,12.2-14,21.8-26.2,26.2
14
+ transform 0.1s ease;}.close-button.svelte-13vsz3z:hover {background-color:var(--button2-hover-color); /* グレー300 */}.close-button.svelte-13vsz3z:active {background-color:var(--button2-active-color); /* グレー400 */transform:scale(0.95); /* 押した感覚を演出 */}`};function pe(t,e){Gt(e,!0),he(t,En);let r=M(e,"url",7,""),n=M(e,"text",7,""),l=M(e,"shareTitle",7,""),s=M(e,"handleClose",7);const o=a=>{r()===""&&n()===""&&l()===""&&(r(window.location.href),l(document.title));const c=a.replace("{url}",encodeURIComponent(r())).replace("{title}",encodeURIComponent(l())).replace("{text}",encodeURIComponent(n()));console.log(c),window.open(c,"_blank","noreferrer"),s()()};var i=wn();i.__click=function(...a){var c;(c=s())==null||c.apply(this,a)};var u=Mt(i);u.__click=[xn];var v=Mt(u);v.__click=function(...a){var c;(c=s())==null||c.apply(this,a)};var d=Lt(v,4);return un(d,21,()=>mn,on,(a,c)=>{var f=yn();f.__click=[$n,o,c];var h=Mt(f);St(h,"width",24);var y=Lt(h);mt(f),jt(()=>{St(h,"src",D(c).icon),St(h,"alt",D(c).name),nn(y,` ${D(c).name??""}`)}),ot(a,f)}),mt(d),mt(u),mt(i),ot(t,i),Kt({get url(){return r()},set url(a=""){r(a),N()},get text(){return n()},set text(a=""){n(a),N()},get shareTitle(){return l()},set shareTitle(a=""){l(a),N()},get handleClose(){return s()},set handleClose(a){s(a),N()}})}er(["click"]),customElements.define("nostr-share-dialog",_e(pe,{url:{},text:{},shareTitle:{},handleClose:{}},[],[],!0));var kn=rn(`<svg class="nostr-icon svelte-givlj7" version="1.1" id="_8" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 256 256" xml:space="preserve"><g><path class="st0 svelte-givlj7" d="M0,0v256h256V0H0z M231.2,159.2c0,20.7,0,31.1-3.5,42.2c-4.4,12.2-14,21.8-26.2,26.2
15
15
  c-11.1,3.5-21.5,3.5-42.2,3.5H96.8c-20.7,0-31.1,0-42.2-3.5c-12.2-4.4-21.8-14-26.2-26.2c-3.5-11.1-3.5-21.5-3.5-42.2V96.8
16
16
  c0-20.7,0-31.1,3.5-42.2c4.4-12.2,14-21.8,26.2-26.2c11.2-3.5,21.5-3.5,42.2-3.5h62.5c20.7,0,31.1,0,42.2,3.5
17
- c12.2,4.4,21.8,14,26.2,26.2c3.5,11.1,3.5,21.5,3.5,42.2V159.2z"></path><circle class="st1 svelte-qqfqw1" cx="137.9" cy="99" r="12.1"></circle><path class="st1 svelte-qqfqw1" d="M210.8,115.9c0-47.3-27.7-68.7-64.4-68.7c-16.4,0-31,4.4-42.4,12.5c-3.8,2.7-9,0.1-9-4.5
17
+ c12.2,4.4,21.8,14,26.2,26.2c3.5,11.1,3.5,21.5,3.5,42.2V159.2z"></path><circle class="st1 svelte-givlj7" cx="137.9" cy="99" r="12.1"></circle><path class="st1 svelte-givlj7" d="M210.8,115.9c0-47.3-27.7-68.7-64.4-68.7c-16.4,0-31,4.4-42.4,12.5c-3.8,2.7-9,0.1-9-4.5
18
18
  c0-3.1-2.5-5.7-5.7-5.7H57.7c-3.1,0-5.7,2.5-5.7,5.7v144c0,3.1,2.5,5.7,5.7,5.7h33.7c3.1,0,5.6-2.5,5.6-5.6v-8.4
19
19
  c0-62.8-33.2-109.8-0.4-116c30-5.7,64.1-3,64.5,20.1c0,2,0.3,8,8.6,11.2c5,2,12.6,2.6,22.6,2.4c0,0,9.1-0.7,9.1,8.5
20
20
  c0,11.5-20.4,10.7-20.4,10.7c-6.7,0.3-22.6-1.5-31.7,1.2c-4.8,1.5-9,4.2-11.5,9.1c-4.2,8.3-6.2,26.5-6.5,45.5v15.5
21
- c0,3.1,2.5,5.7,5.7,5.7h68c3.1,0,5.7-2.5,5.7-5.7l0,0V115.9z"></path><path class="st2 svelte-qqfqw1" d="M227.6,54.6c-4.4-12.2-14-21.8-26.2-26.2c-11.1-3.5-21.5-3.5-42.2-3.5H96.8c-20.7,0-31.1,0-42.2,3.5
21
+ c0,3.1,2.5,5.7,5.7,5.7h68c3.1,0,5.7-2.5,5.7-5.7l0,0V115.9z"></path><path class="st2 svelte-givlj7" d="M227.6,54.6c-4.4-12.2-14-21.8-26.2-26.2c-11.1-3.5-21.5-3.5-42.2-3.5H96.8c-20.7,0-31.1,0-42.2,3.5
22
22
  c-12.2,4.4-21.8,14-26.2,26.2c-3.5,11.2-3.5,21.5-3.5,42.2v62.5c0,20.7,0,31.1,3.5,42.2c4.4,12.2,14,21.8,26.2,26.2
23
23
  c11.2,3.5,21.5,3.5,42.2,3.5h62.5c20.7,0,31.1,0,42.2-3.5c12.2-4.4,21.8-14,26.2-26.2c3.5-11.1,3.5-21.5,3.5-42.2V96.8
24
24
  C231.2,76.1,231.2,65.7,227.6,54.6z M205.1,204.8h-68c-3.1,0-5.7-2.5-5.7-5.7v-15.5c0.3-19,2.3-37.2,6.5-45.5
@@ -26,17 +26,17 @@
26
26
  c-8.3-3.3-8.6-9.2-8.6-11.2c-0.4-23.1-34.5-25.9-64.5-20.1c-32.8,6.2,0.4,53.3,0.4,116v8.4c-0.1,3.1-2.5,5.6-5.6,5.6H57.7
27
27
  c-3.1,0-5.7-2.5-5.7-5.7v-144c0-3.1,2.5-5.7,5.7-5.7h31.7c3.1,0,5.7,2.5,5.7,5.7c0,4.7,5.2,7.2,9,4.5c11.4-8.2,26-12.5,42.4-12.5
28
28
  c36.7,0,64.4,21.4,64.4,68.7v83.2l0,0C210.8,202.3,208.3,204.8,205.1,204.8z M125.7,99c0-6.7,5.4-12.1,12.1-12.1S150,92.3,150,99
29
- s-5.4,12.1-12.1,12.1S125.7,105.8,125.7,99z"></path></g></svg>`);const Sn={hash:"svelte-qqfqw1",code:`
30
- /* アイコン内部のSVG */.nostr-icon.svelte-qqfqw1 {display:flex;align-items:center;justify-content:center;}.st0.svelte-qqfqw1 {fill:none;}.st1.svelte-qqfqw1 {fill:var(--bg-color);}.st2.svelte-qqfqw1 {fill:var(--nostr-color);}`};function ge(t,e){Gt(e,!0),he(t,Sn);let r=D(e,"size",7,28);var n=kn();return Lt(()=>St(n,"style",`enable-background:new 0 0 256 256; width: ${r()??""}px; height: ${r()??""}px;`)),ot(t,n),Kt({get size(){return r()},set size(l=28){r(l),N()}})}_e(ge,{size:{}},[],[],!0);const Tn=(t,e)=>{Rt(e,!0)};var zn=kt("<span>Nostr</span>"),Cn=kt("<!> <!>",1),Nn=kt("<button><!></button> <!>",1);const qn={hash:"svelte-hmm120",code:`:host {font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
31
- Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;--text-color-main: #2e2e2e;--button1-text-color: #662482;--button1-bg-color: #ececec;--button1-hover-color: #b1b1b1;--button1-border-color: #b9b9b9;--button2-text-color: rgb(73, 73, 73);--button2-bg-color: #f3f4f6;--button2-hover-color: #e5e7eb;--nostr-color: #662482;--bg-color: #ffffff;--border-color: #d1d5db;}
32
- @media (prefers-color-scheme: dark) {:host {--text-color-main: #ffffff;--button1-text-color: #eec5ff;--button1-bg-color: #363636;--button1-hover-color: #555555;--button1-border-color: #555555;--button2-text-color: #f1f1f1;--button2-bg-color: #1f1f1f;--button2-hover-color: #3b3b3b;--nostr-color: #eec5ff;--bg-color: #000000;--border-color: #333333;}
29
+ s-5.4,12.1-12.1,12.1S125.7,105.8,125.7,99z"></path></g></svg>`);const Sn={hash:"svelte-givlj7",code:`
30
+ /* アイコン内部のSVG */.nostr-icon.svelte-givlj7 {margin:auto;display:flex;align-items:center;justify-content:center;}.st0.svelte-givlj7 {fill:none;}.st1.svelte-givlj7 {fill:var(--bg-color);}.st2.svelte-givlj7 {fill:var(--nostr-color);}`};function ge(t,e){Gt(e,!0),he(t,Sn);let r=M(e,"size",7,28);var n=kn();return jt(()=>St(n,"style",`enable-background:new 0 0 256 256; width: ${r()??""}px; height: ${r()??""}px;`)),ot(t,n),Kt({get size(){return r()},set size(l=28){r(l),N()}})}_e(ge,{size:{}},[],[],!0);const Tn=(t,e)=>{It(e,!0)};var zn=kt("<span>Nostr</span>"),Cn=kt("<!> <!>",1),Nn=kt("<button><!></button> <!>",1);const An={hash:"svelte-smr0xx",code:`:host {font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
31
+ Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;display:flex;justify-content:center;align-items:center;--text-color-main: #2e2e2e;--button1-text-color: #662482;--button1-bg-color: #ececec;--button1-hover-color: #b1b1b1;--button1-border-color: #b9b9b9;--button2-text-color: rgb(73, 73, 73);--button2-bg-color: #f3f4f6;--button2-hover-color: #e5e7eb;--nostr-color: #662482;--bg-color: #ffffff;--border-color: #d1d5db;}
32
+ @media (prefers-color-scheme: dark) {:host {display:flex;justify-content:center;align-items:center;--text-color-main: #ffffff;--button1-text-color: #eec5ff;--button1-bg-color: #363636;--button1-hover-color: #555555;--button1-border-color: #555555;--button2-text-color: #f1f1f1;--button2-bg-color: #1f1f1f;--button2-hover-color: #3b3b3b;--nostr-color: #eec5ff;--bg-color: #000000;--border-color: #333333;}
33
33
  }
34
- /* ボタン全体の基本スタイル */.nostrShare-button.svelte-hmm120,
35
- .nostrShare-mini.svelte-hmm120 {color:var(--button1-text-color);display:flex;align-items:center;justify-content:center;border:1px solid var(--button1-border-color);cursor:pointer;transition:all 0.2s ease-in-out;}.nostrShare-icon.svelte-hmm120 {color:var(--button1-text-color);display:inline-flex; /* インラインアイコン */align-items:center;justify-content:center;cursor:pointer;width:var(--icon-size);height:var(--icon-size);margin:0;padding:4px;border-radius:50%;border:none; /* ボーダーを削除 */background-color:transparent; /* 背景を透明に */}
34
+ /* ボタン全体の基本スタイル */.nostrShare-button.svelte-smr0xx,
35
+ .nostrShare-mini.svelte-smr0xx {color:var(--button1-text-color);display:flex;align-items:center;justify-content:center;border:1px solid var(--button1-border-color);cursor:pointer;transition:all 0.2s ease-in-out;}.nostrShare-icon.svelte-smr0xx {color:var(--button1-text-color);display:flex;align-items:center;justify-content:center;cursor:pointer;width:var(--icon-size);height:var(--icon-size);margin:auto;padding:4px;border-radius:50%;border:none;background-color:transparent;}
36
36
 
37
- /* ボタンスタイル */.nostrShare-button.svelte-hmm120 {padding:6px 16px;margin:4px;font-weight:bold;border-radius:8px;background-color:var(--button1-bg-color); /* グレー */color:var(--button2-text-color); /* ダークグレー */}.nostrShare-button.svelte-hmm120:hover {background-color:var(--button1-hover-color); /* 少し明るいグレー */box-shadow:0 0 4px rgba(0, 0, 0, 0.1);}.nostrShare-button.svelte-hmm120:active {background-color:#d1d5db; /* ダークグレー */transform:scale(0.98);}
37
+ /* ボタンスタイル */.nostrShare-button.svelte-smr0xx {padding:6px 16px;margin:4px;font-weight:bold;border-radius:8px;background-color:var(--button1-bg-color); /* グレー */color:var(--button2-text-color); /* ダークグレー */}.nostrShare-button.svelte-smr0xx:hover {background-color:var(--button1-hover-color); /* 少し明るいグレー */box-shadow:0 0 4px rgba(0, 0, 0, 0.1);}.nostrShare-button.svelte-smr0xx:active {background-color:#d1d5db; /* ダークグレー */transform:scale(0.98);}
38
38
 
39
- /* テキスト用スタイル */.nostrShare-text.svelte-hmm120 {margin-left:8px;font-size:medium;color:var(--button2-text-color);}.nostrShare-icon.svelte-hmm120:hover {background-color:var(--button1-hover-color); /* グレー */box-shadow:0 0 6px rgba(0, 0, 0, 0.1);transition:all 0.2s ease-in-out;}.nostrShare-icon.svelte-hmm120:active {background-color:#d1d5db;transform:scale(0.95);transition:all 0.2s ease-in-out;}
39
+ /* テキスト用スタイル */.nostrShare-text.svelte-smr0xx {margin-left:8px;font-size:medium;color:var(--button2-text-color);}.nostrShare-icon.svelte-smr0xx:hover {background-color:var(--button1-hover-color); /* グレー */box-shadow:0 0 6px rgba(0, 0, 0, 0.1);transition:all 0.2s ease-in-out;}.nostrShare-icon.svelte-smr0xx:active {background-color:#d1d5db;transform:scale(0.95);transition:all 0.2s ease-in-out;}
40
40
 
41
- /* miniスタイル */.nostrShare-mini.svelte-hmm120 {padding:2px 6px;margin:2px;border-radius:8px;background-color:var(--button1-bg-color); /* グレー */color:var(--button2-text-color); /* ダークグレー */}.nostrShare-mini.svelte-hmm120:hover {background-color:var(--button1-hover-color); /* 少し明るいグレー */box-shadow:0 0 4px rgba(0, 0, 0, 0.1);}.nostrShare-mini.svelte-hmm120:active {background-color:#d1d5db; /* ダークグレー */transform:scale(0.98);}
42
- /* テキスト用スタイル */.nostrShare-text-mini.svelte-hmm120 {margin-left:4px;font-size:small;font-weight:bold;color:var(--button2-text-color);}`};function cr(t,e){Gt(e,!0),he(t,qn);let r=D(e,"data-url",7),n=D(e,"data-text",7),l=D(e,"data-title",7),s=D(e,"data-type",7,"default"),o=D(e,"icon-size",7,28),i=D(e,"class",7),u=D(e,"style",7),v=Rr(!1);const d=()=>{Rt(v,!1)},a=typeof o()=="string"?parseInt(o(),10):o();var c=Nn(),f=Oe(c);f.__click=[Tn,v];var h=Dt(f);vn(h,e,"default",{},_=>{var p=Cn(),y=Oe(p);{var J=q=>{ge(q,{size:24})},k=q=>{var nt=Ie(()=>s()==="icon"?a:28);ge(q,{get size(){return I(nt)}})};de(y,q=>{s()==="mini"?q(J):q(k,!1)})}var T=Mt(y,2);{var rt=q=>{var nt=zn();Lt(()=>ar(nt,`${(s()==="mini"?"nostrShare-text-mini":"nostrShare-text")??""} svelte-hmm120`)),ot(q,nt)};de(T,q=>{s()!=="icon"&&q(rt)})}ot(_,p)}),bt(f);var w=Mt(f,2);{var C=_=>{pe(_,{handleClose:d,get url(){return r()},get text(){return n()},get shareTitle(){return l()}})};de(w,_=>{I(v)&&_(C)})}return Lt(()=>{ar(f,`${`${i()||(s()==="icon"?"nostrShare-icon":s()==="mini"?"nostrShare-mini":"nostrShare-button")}`??""} svelte-hmm120`),St(f,"style",u()||"")}),ot(t,c),Kt({get"data-url"(){return r()},set"data-url"(_){r(_),N()},get"data-text"(){return n()},set"data-text"(_){n(_),N()},get"data-title"(){return l()},set"data-title"(_){l(_),N()},get"data-type"(){return s()},set"data-type"(_="default"){s(_),N()},get"icon-size"(){return o()},set"icon-size"(_=28){o(_),N()},get class(){return i()},set class(_){i(_),N()},get style(){return u()},set style(_){u(_),N()}})}er(["click"]),customElements.define("nostr-share",_e(cr,{"data-url":{},"data-text":{},"data-title":{},"data-type":{},"icon-size":{},class:{},style:{}},["default"],[],!0)),m.Dialog=pe,m.NostrShare=cr,Object.defineProperty(m,Symbol.toStringTag,{value:"Module"})});
41
+ /* miniスタイル */.nostrShare-mini.svelte-smr0xx {padding:2px 6px;margin:2px;border-radius:8px;background-color:var(--button1-bg-color); /* グレー */color:var(--button2-text-color); /* ダークグレー */}.nostrShare-mini.svelte-smr0xx:hover {background-color:var(--button1-hover-color); /* 少し明るいグレー */box-shadow:0 0 4px rgba(0, 0, 0, 0.1);}.nostrShare-mini.svelte-smr0xx:active {background-color:#d1d5db; /* ダークグレー */transform:scale(0.98);}
42
+ /* テキスト用スタイル */.nostrShare-text-mini.svelte-smr0xx {margin-left:4px;font-size:small;font-weight:bold;color:var(--button2-text-color);}`};function cr(t,e){Gt(e,!0),he(t,An);let r=M(e,"data-url",7),n=M(e,"data-text",7),l=M(e,"data-title",7),s=M(e,"data-type",7,"default"),o=M(e,"icon-size",7,28),i=M(e,"class",7),u=M(e,"data-style",7),v=Ir(!1);const d=()=>{It(v,!1)},a=typeof o()=="string"?parseInt(o(),10):o();var c=Nn(),f=Re(c);f.__click=[Tn,v];var h=Mt(f);vn(h,e,"default",{},_=>{var p=Cn(),w=Re(p);{var J=A=>{ge(A,{size:24})},k=A=>{var nt=De(()=>s()==="icon"?a:28);ge(A,{get size(){return D(nt)}})};de(w,A=>{s()==="mini"?A(J):A(k,!1)})}var T=Lt(w,2);{var rt=A=>{var nt=zn();jt(()=>ar(nt,`${(s()==="mini"?"nostrShare-text-mini":"nostrShare-text")??""} svelte-smr0xx`)),ot(A,nt)};de(T,A=>{s()!=="icon"&&A(rt)})}ot(_,p)}),mt(f);var y=Lt(f,2);{var C=_=>{pe(_,{handleClose:d,get url(){return r()},get text(){return n()},get shareTitle(){return l()}})};de(y,_=>{D(v)&&_(C)})}return jt(()=>{ar(f,`${`${i()||(s()==="icon"?"nostrShare-icon":s()==="mini"?"nostrShare-mini":"nostrShare-button")}`??""} svelte-smr0xx`),St(f,"style",u()||"")}),ot(t,c),Kt({get"data-url"(){return r()},set"data-url"(_){r(_),N()},get"data-text"(){return n()},set"data-text"(_){n(_),N()},get"data-title"(){return l()},set"data-title"(_){l(_),N()},get"data-type"(){return s()},set"data-type"(_="default"){s(_),N()},get"icon-size"(){return o()},set"icon-size"(_=28){o(_),N()},get class(){return i()},set class(_){i(_),N()},get"data-style"(){return u()},set"data-style"(_){u(_),N()}})}er(["click"]),customElements.define("nostr-share",_e(cr,{"data-url":{},"data-text":{},"data-title":{},"data-type":{},"icon-size":{},class:{},"data-style":{}},["default"],[],!0)),b.Dialog=pe,b.NostrShare=cr,Object.defineProperty(b,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konemono/nostr-share-component",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "type": "module",
5
5
  "main": "dist/nostr-share-component.umd.js",
6
6
  "module": "dist/nostr-share-component.es.js",