@konemono/nostr-share-component 0.0.18 → 0.1.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.
- package/README.md +8 -5
- package/dist/nostr-share-component.es.js +818 -733
- package/dist/nostr-share-component.js +16 -13
- package/dist/nostr-share-component.umd.js +16 -13
- package/package.json +2 -1
- package/dist/icons.d.ts +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var NostrShare=function(b){"use strict";var An=Object.defineProperty;var ur=b=>{throw TypeError(b)};var zn=(b,y,E)=>y in b?An(b,y,{enumerable:!0,configurable:!0,writable:!0,value:E}):b[y]=E;var L=(b,y,E)=>zn(b,typeof y!="symbol"?y+"":y,E),ar=(b,y,E)=>y.has(b)||ur("Cannot "+E);var A=(b,y,E)=>(ar(b,y,"read from private field"),E?E.call(b):y.get(b)),he=(b,y,E)=>y.has(b)?ur("Cannot add the same private member more than once"):y instanceof WeakSet?y.add(b):y.set(b,E),de=(b,y,E,yt)=>(ar(b,y,"write to private field"),yt?yt.call(b,E):y.set(b,E),E);var K,R;const y="5";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(y);const E=1,yt=2,cr=16,fr=8,vr=1,hr=2,_e="[",jt="[!",Gt="]",ht={},dr=Symbol(),_r=["touchstart","touchmove"];function pr(t){return _r.includes(t)}const pe=!1;var ge=Array.isArray,Kt=Array.from,kt=Object.keys,Et=Object.defineProperty,Tt=Object.getOwnPropertyDescriptor,gr=Object.getOwnPropertyDescriptors,br=Object.getPrototypeOf;function $r(t){for(var e=0;e<t.length;e++)t[e]()}const D=2,be=4,St=8,Wt=16,F=32,nt=64,Jt=128,lt=256,Ct=512,z=1024,W=2048,dt=4096,P=8192,st=16384,mr=32768,Xt=65536,xr=1<<19,$e=1<<20,wr=Symbol("$state"),me=Symbol("legacy props"),yr=Symbol("");function xe(t){return t===this.v}function kr(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Er(t){return!kr(t,this.v)}function Tr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Sr(){throw new Error("https://svelte.dev/e/hydration_failed")}function Cr(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function Nr(){throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function Ar(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let we=!1;function Nt(t,e){var r={f:0,v:t,reactions:null,equals:xe,version:0};return r}function zr(t){return qr(Nt(t))}function Zt(t,e=!1){const r=Nt(t);return e||(r.equals=Er),r}function qr(t){return w!==null&&w.f&D&&(V===null?Ur([t]):V.push(t)),t}function At(t,e){return w!==null&&jr()&&w.f&(D|Wt)&&(V===null||!V.includes(t))&&Ar(),ye(t,e)}function ye(t,e){return t.equals(e)||(t.v=e,t.version=Ue(),ke(t,W),g!==null&&g.f&z&&!(g.f&F)&&(T!==null&&T.includes(t)?(G(g,W),Ht(g)):Z===null?Yr([t]):Z.push(t))),e}function ke(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&W||(G(s,e),o&(z|lt)&&(o&D?ke(s,dt):Ht(s)))}}function Qt(t){console.warn("https://svelte.dev/e/hydration_mismatch")}let $=!1;function Y(t){$=t}let x;function H(t){if(t===null)throw Qt(),ht;return x=t}function _t(){return H(J(x))}function pt(t){if($){if(J(x)!==null)throw Qt(),ht;x=t}}function te(){for(var t=0,e=x;;){if(e.nodeType===8){var r=e.data;if(r===Gt){if(t===0)return e;t-=1}else(r===_e||r===jt)&&(t+=1)}var n=J(e);e.remove(),e=n}}var Ee,Te,Se;function ee(){if(Ee===void 0){Ee=window;var t=Element.prototype,e=Node.prototype;Te=Tt(e,"firstChild").get,Se=Tt(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 zt(t=""){return document.createTextNode(t)}function tt(t){return Te.call(t)}function J(t){return Se.call(t)}function qt(t,e){if(!$)return tt(t);var r=tt(x);return r===null&&(r=x.appendChild(zt())),H(r),r}function Ce(t,e){if(!$){var r=tt(t);return r instanceof Comment&&r.data===""?J(r):r}return x}function Ot(t,e=1,r=!1){let n=$?x:t;for(var l;e--;)l=n,n=J(n);if(!$)return n;var s=n==null?void 0:n.nodeType;if(r&&s!==3){var o=zt();return n===null?l==null||l.after(o):n.before(o),H(o),o}return H(n),n}function Ne(t){t.textContent=""}function Or(t){var e=D|W;g===null?e|=lt:g.f|=$e;var r=w!==null&&w.f&D?w:null;const n={children:null,ctx:I,deps:null,equals:xe,f:e,fn:t,reactions:null,v:null,version:0,parent:r??g};return r!==null&&(r.children??(r.children=[])).push(n),n}function Ae(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&D?re(n):j(n)}}}function Rr(t){for(var e=t.parent;e!==null;){if(!(e.f&D))return e;e=e.parent}return null}function ze(t){var e,r=g;X(Rr(t));try{Ae(t),e=Ye(t)}finally{X(r)}return e}function qe(t){var e=ze(t),r=(rt||t.f<)&&t.deps!==null?dt:z;G(t,r),t.equals(e)||(t.v=e,t.version=Ue())}function re(t){Ae(t),xt(t,0),G(t,st),t.v=t.children=t.deps=t.ctx=t.reactions=null}function Dr(t,e){var r=e.last;r===null?e.last=e.first=t:(r.next=t,t.prev=r,e.last=t)}function ot(t,e,r,n=!0){var l=(t&nt)!==0,s=g,o={ctx:I,deps:null,deriveds:null,nodes_start:null,nodes_end:null,f:t|W,first:null,fn:e,last:null,next:null,parent:l?null:s,prev:null,teardown:null,transitions:null,version:0};if(r){var u=it;try{Ve(!0),Pt(o),o.f|=mr}catch(h){throw j(o),h}finally{Ve(u)}}else e!==null&&Ht(o);var a=r&&o.deps===null&&o.first===null&&o.nodes_start===null&&o.teardown===null&&(o.f&$e)===0;if(!a&&!l&&n&&(s!==null&&Dr(o,s),w!==null&&w.f&D)){var f=w;(f.children??(f.children=[])).push(o)}return o}function Ir(t){const e=ot(nt,t,!0);return()=>{j(e)}}function Mr(t){const e=ot(nt,t,!0);return(r={})=>new Promise(n=>{r.outro?Rt(e,()=>{j(e),n(void 0)}):(j(e),n(void 0))})}function Lr(t){return ot(be,t,!1)}function Fr(t){return ot(St,t,!0)}function Oe(t){return ne(t)}function ne(t,e=0){return ot(St|Wt|e,t,!0)}function gt(t,e=!0){return ot(St|F,t,!0,e)}function Re(t){var e=t.teardown;if(e!==null){const r=w;at(null);try{e.call(null)}finally{at(r)}}}function De(t){var e=t.deriveds;if(e!==null){t.deriveds=null;for(var r=0;r<e.length;r+=1)re(e[r])}}function Ie(t,e=!1){var r=t.first;for(t.first=t.last=null;r!==null;){var n=r.next;j(r,e),r=n}}function Pr(t){for(var e=t.first;e!==null;){var r=e.next;e.f&F||j(e),e=r}}function j(t,e=!0){var r=!1;if((e||t.f&xr)&&t.nodes_start!==null){for(var n=t.nodes_start,l=t.nodes_end;n!==null;){var s=n===l?null:J(n);n.remove(),n=s}r=!0}Ie(t,e&&!r),De(t),xt(t,0),G(t,st);var o=t.transitions;if(o!==null)for(const a of o)a.stop();Re(t);var u=t.parent;u!==null&&u.first!==null&&Me(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Me(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 Rt(t,e){var r=[];le(t,r,!0),Le(r,()=>{j(t),e&&e()})}function Le(t,e){var r=t.length;if(r>0){var n=()=>--r||e();for(var l of t)l.out(n)}else e()}function le(t,e,r){if(!(t.f&P)){if(t.f^=P,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&Xt)!==0||(n.f&F)!==0;le(n,e,s?r:!1),n=l}}}function Dt(t){Fe(t,!0)}function Fe(t,e){if(t.f&P){mt(t)&&Pt(t),t.f^=P;for(var r=t.first;r!==null;){var n=r.next,l=(r.f&Xt)!==0||(r.f&F)!==0;Fe(r,l?e:!1),r=n}if(t.transitions!==null)for(const s of t.transitions)(s.is_global||e)&&s.in()}}let It=!1,se=[];function Pe(){It=!1;const t=se.slice();se=[],$r(t)}function Hr(t){It||(It=!0,queueMicrotask(Pe)),se.push(t)}function Vr(){It&&Pe()}const He=0,Br=1;let Mt=!1,Lt=He,bt=!1,$t=null,it=!1;function Ve(t){it=t}let et=[],ut=0,qn=[],w=null;function at(t){w=t}let g=null;function X(t){g=t}let V=null;function Ur(t){V=t}let T=null,q=0,Z=null;function Yr(t){Z=t}let Be=1,rt=!1,I=null;function Ue(){return++Be}function jr(){return!we}function mt(t){var o,u;var e=t.f;if(e&W)return!0;if(e&dt){var r=t.deps,n=(e<)!==0;if(r!==null){var l;if(e&Ct){for(l=0;l<r.length;l++)((o=r[l]).reactions??(o.reactions=[])).push(t);t.f^=Ct}for(l=0;l<r.length;l++){var s=r[l];if(mt(s)&&qe(s),n&&g!==null&&!rt&&!((u=s==null?void 0:s.reactions)!=null&&u.includes(t))&&(s.reactions??(s.reactions=[])).push(t),s.version>t.version)return!0}}(!n||g!==null&&!rt)&&G(t,z)}return!1}function Gr(t,e){for(var r=e;r!==null;){if(r.f&Jt)try{r.fn(t);return}catch{r.f^=Jt}r=r.parent}throw Mt=!1,t}function Kr(t){return(t.f&st)===0&&(t.parent===null||(t.parent.f&Jt)===0)}function Ft(t,e,r,n){if(Mt){if(r===null&&(Mt=!1),Kr(e))throw t;return}r!==null&&(Mt=!0);{Gr(t,e);return}}function Ye(t){var c;var e=T,r=q,n=Z,l=w,s=rt,o=V,u=I,a=t.f;T=null,q=0,Z=null,w=a&(F|nt)?null:t,rt=!it&&(a<)!==0,V=null,I=t.ctx;try{var f=(0,t.fn)(),h=t.deps;if(T!==null){var i;if(xt(t,q),h!==null&&q>0)for(h.length=q+T.length,i=0;i<T.length;i++)h[q+i]=T[i];else t.deps=h=T;if(!rt)for(i=q;i<h.length;i++)((c=h[i]).reactions??(c.reactions=[])).push(t)}else h!==null&&q<h.length&&(xt(t,q),h.length=q);return f}finally{T=e,q=r,Z=n,w=l,rt=s,V=o,I=u}}function Wr(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&D&&(T===null||!T.includes(e))&&(G(e,dt),e.f&(lt|Ct)||(e.f^=Ct),xt(e,0))}function xt(t,e){var r=t.deps;if(r!==null)for(var n=e;n<r.length;n++)Wr(t,r[n])}function Pt(t){var e=t.f;if(!(e&st)){G(t,z);var r=g,n=I;g=t;try{e&Wt?Pr(t):Ie(t),De(t),Re(t);var l=Ye(t);t.teardown=typeof l=="function"?l:null,t.version=Be}catch(s){Ft(s,t,r,n||t.ctx)}finally{g=r}}}function je(){if(ut>1e3){ut=0;try{Tr()}catch(t){if($t!==null)Ft(t,$t,null);else throw t}}ut++}function Ge(t){var e=t.length;if(e!==0){je();var r=it;it=!0;try{for(var n=0;n<e;n++){var l=t[n];l.f&z||(l.f^=z);var s=[];Ke(l,s),Jr(s)}}finally{it=r}}}function Jr(t){var e=t.length;if(e!==0)for(var r=0;r<e;r++){var n=t[r];if(!(n.f&(st|P)))try{mt(n)&&(Pt(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null?Me(n):n.fn=null))}catch(l){Ft(l,n,null,n.ctx)}}}function Xr(){if(bt=!1,ut>1001)return;const t=et;et=[],Ge(t),bt||(ut=0,$t=null)}function Ht(t){Lt===He&&(bt||(bt=!0,queueMicrotask(Xr))),$t=t;for(var e=t;e.parent!==null;){e=e.parent;var r=e.f;if(r&(nt|F)){if(!(r&z))return;e.f^=z}}et.push(e)}function Ke(t,e){var r=t.first,n=[];t:for(;r!==null;){var l=r.f,s=(l&F)!==0,o=s&&(l&z)!==0,u=r.next;if(!o&&!(l&P))if(l&St){if(s)r.f^=z;else try{mt(r)&&Pt(r)}catch(i){Ft(i,r,null,r.ctx)}var a=r.first;if(a!==null){r=a;continue}}else l&be&&n.push(r);if(u===null){let i=r.parent;for(;i!==null;){if(t===i)break t;var f=i.next;if(f!==null){r=f;continue t}i=i.parent}}r=u}for(var h=0;h<n.length;h++)a=n[h],e.push(a),Ke(a,e)}function O(t){var e=Lt,r=et;try{je();const l=[];Lt=Br,et=l,bt=!1,Ge(r);var n=t==null?void 0:t();return Vr(),(et.length>0||l.length>0)&&O(),ut=0,$t=null,n}finally{Lt=e,et=r}}function M(t){var h;var e=t.f,r=(e&D)!==0;if(r&&e&st){var n=ze(t);return re(t),n}if(w!==null){V!==null&&V.includes(t)&&Nr();var l=w.deps;T===null&&l!==null&&l[q]===t?q++:T===null?T=[t]:T.push(t),Z!==null&&g!==null&&g.f&z&&!(g.f&F)&&Z.includes(t)&&(G(g,W),Ht(g))}else if(r&&t.deps===null)for(var s=t,o=s.parent,u=s;o!==null;)if(o.f&D){var a=o;u=a,o=a.parent}else{var f=o;(h=f.deriveds)!=null&&h.includes(u)||(f.deriveds??(f.deriveds=[])).push(u);break}return r&&(s=t,mt(s)&&qe(s)),t.v}function Zr(t){const e=w;try{return w=null,t()}finally{w=e}}const Qr=~(W|dt|z);function G(t,e){t.f=t.f&Qr|e}function oe(t,e=!1,r){I={p:I,c:null,e:null,m:!1,s:t,x:null,l:null}}function ie(t){const e=I;if(e!==null){t!==void 0&&(e.x=t);const o=e.e;if(o!==null){var r=g,n=w;e.e=null;try{for(var l=0;l<o.length;l++){var s=o[l];X(s.effect),at(s.reaction),Lr(s.fn)}}finally{X(r),at(n)}}I=e.p,e.m=!0}return t||{}}const We=new Set,ue=new Set;function Je(t){for(var e=0;e<t.length;e++)We.add(t[e]);for(var r of ue)r(t)}function Vt(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,u=t.__root;if(u){var a=l.indexOf(u);if(a!==-1&&(e===document||e===window)){t.__root=e;return}var f=l.indexOf(e);if(f===-1)return;a<=f&&(o=a)}if(s=l[o]||t.target,s!==e){Et(t,"currentTarget",{configurable:!0,get(){return s||r}});var h=w,i=g;at(null),X(null);try{for(var c,v=[];s!==null;){var d=s.assignedSlot||s.parentNode||s.host||null;try{var _=s["__"+n];if(_!==void 0&&!s.disabled)if(ge(_)){var[S,...C]=_;S.apply(s,[t,...C])}else _.call(s,t)}catch(m){c?v.push(m):c=m}if(t.cancelBubble||d===e||d===null)break;s=d}if(c){for(let m of v)queueMicrotask(()=>{throw m});throw c}}finally{t.__root=e,delete t.currentTarget,at(h),X(i)}}}function tn(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function Bt(t,e){var r=g;r.nodes_start===null&&(r.nodes_start=t,r.nodes_end=e)}function wt(t,e){var r=(e&vr)!==0,n=(e&hr)!==0,l,s=!t.startsWith("<!>");return()=>{if($)return Bt(x,null),x;l===void 0&&(l=tn(s?t:"<!>"+t),r||(l=tt(l)));var o=n?document.importNode(l,!0):l.cloneNode(!0);if(r){var u=tt(o),a=o.lastChild;Bt(u,a)}else Bt(o,o);return o}}function ct(t,e){if($){g.nodes_end=x,_t();return}t!==null&&t.before(e)}function en(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 Xe(t,e){return Ze(t,e)}function rn(t,e){ee(),e.intro=e.intro??!1;const r=e.target,n=$,l=x;try{for(var s=tt(r);s&&(s.nodeType!==8||s.data!==_e);)s=J(s);if(!s)throw ht;Y(!0),H(s),_t();const o=Ze(t,{...e,anchor:s});if(x===null||x.nodeType!==8||x.data!==Gt)throw Qt(),ht;return Y(!1),o}catch(o){if(o===ht)return e.recover===!1&&Sr(),ee(),Ne(r),Y(!1),Xe(t,e);throw o}finally{Y(n),H(l)}}const ft=new Map;function Ze(t,{target:e,anchor:r,props:n={},events:l,context:s,intro:o=!0}){ee();var u=new Set,a=i=>{for(var c=0;c<i.length;c++){var v=i[c];if(!u.has(v)){u.add(v);var d=pr(v);e.addEventListener(v,Vt,{passive:d});var _=ft.get(v);_===void 0?(document.addEventListener(v,Vt,{passive:d}),ft.set(v,1)):ft.set(v,_+1)}}};a(Kt(We)),ue.add(a);var f=void 0,h=Mr(()=>{var i=r??e.appendChild(zt());return gt(()=>{if(s){oe({});var c=I;c.c=s}l&&(n.$$events=l),$&&Bt(i,null),f=t(i,n)||{},$&&(g.nodes_end=x),s&&ie()}),()=>{var d;for(var c of u){e.removeEventListener(c,Vt);var v=ft.get(c);--v===0?(document.removeEventListener(c,Vt),ft.delete(c)):ft.set(c,v)}ue.delete(a),i!==r&&((d=i.parentNode)==null||d.removeChild(i))}});return ae.set(f,h),f}let ae=new WeakMap;function nn(t,e){const r=ae.get(t);return r?(ae.delete(t),r(e)):Promise.resolve()}function Qe(t,e,r=!1){$&&_t();var n=t,l=null,s=null,o=dr,u=r?Xt:0,a=!1;const f=(i,c=!0)=>{a=!0,h(c,i)},h=(i,c)=>{if(o===(o=i))return;let v=!1;if($){const d=n.data===jt;!!o===d&&(n=te(),H(n),Y(!1),v=!0)}o?(l?Dt(l):c&&(l=gt(()=>c(n))),s&&Rt(s,()=>{s=null})):(s?Dt(s):c&&(s=gt(()=>c(n))),l&&Rt(l,()=>{l=null})),v&&Y(!0)};ne(()=>{a=!1,e(f),a||h(null,null)},u),$&&(n=x)}function ln(t,e){return e}function sn(t,e,r,n){for(var l=[],s=e.length,o=0;o<s;o++)le(e[o].e,l,!0);var u=s>0&&l.length===0&&r!==null;if(u){var a=r.parentNode;Ne(a),a.append(r),n.clear(),Q(t,e[0].prev,e[s-1].next)}Le(l,()=>{for(var f=0;f<s;f++){var h=e[f];u||(n.delete(h.k),Q(t,h.prev,h.next)),j(h.e,!u)}})}function on(t,e,r,n,l,s=null){var o=t,u={flags:e,items:new Map,first:null};{var a=t;o=$?H(tt(a)):a.appendChild(zt())}$&&_t();var f=null,h=!1;ne(()=>{var i=r(),c=ge(i)?i:i==null?[]:Kt(i),v=c.length;if(h&&v===0)return;h=v===0;let d=!1;if($){var _=o.data===jt;_!==(v===0)&&(o=te(),H(o),Y(!1),d=!0)}if($){for(var S=null,C,p=0;p<v;p++){if(x.nodeType===8&&x.data===Gt){o=x,d=!0,Y(!1);break}var m=c[p],U=n(m,p);C=tr(x,u,S,null,m,U,p,l,e),u.items.set(U,C),S=C}v>0&&H(te())}if(!$){var k=w;un(c,u,o,l,e,(k.f&P)!==0,n)}s!==null&&(v===0?f?Dt(f):f=gt(()=>s(o)):f!==null&&Rt(f,()=>{f=null})),d&&Y(!0)}),$&&(o=x)}function un(t,e,r,n,l,s,o,u){var a=t.length,f=e.items,h=e.first,i=h,c,v=null,d=[],_=[],S,C,p,m;for(m=0;m<a;m+=1){if(S=t[m],C=o(S,m),p=f.get(C),p===void 0){var U=i?i.e.nodes_start:r;v=tr(U,e,v,v===null?e.first:v.next,S,C,m,n,l),f.set(C,v),d=[],_=[],i=v.next;continue}if(an(p,S,m),p.e.f&P&&Dt(p.e),p!==i){if(c!==void 0&&c.has(p)){if(d.length<_.length){var k=_[0],N;v=k.prev;var vt=d[0],fe=d[d.length-1];for(N=0;N<d.length;N+=1)er(d[N],k,r);for(N=0;N<_.length;N+=1)c.delete(_[N]);Q(e,vt.prev,fe.next),Q(e,v,vt),Q(e,fe,k),i=k,v=fe,m-=1,d=[],_=[]}else c.delete(p),er(p,i,r),Q(e,p.prev,p.next),Q(e,p,v===null?e.first:v.next),Q(e,v,p),v=p;continue}for(d=[],_=[];i!==null&&i.k!==C;)(s||!(i.e.f&P))&&(c??(c=new Set)).add(i),_.push(i),i=i.next;if(i===null)continue;p=i}d.push(p),v=p,i=p.next}if(i!==null||c!==void 0){for(var ve=c===void 0?[]:Kt(c);i!==null;)(s||!(i.e.f&P))&&ve.push(i),i=i.next;var Cn=ve.length;if(Cn>0){var Nn=a===0?r:null;sn(e,ve,Nn,f)}}g.first=e.first&&e.first.e,g.last=v&&v.e}function an(t,e,r,n){ye(t.v,e),t.i=r}function tr(t,e,r,n,l,s,o,u,a,f){var h=(a&E)!==0,i=(a&cr)===0,c=h?i?Zt(l):Nt(l):l,v=a&yt?Nt(o):o,d={i:v,v:c,k:s,a:null,e:null,prev:r,next:n};try{return d.e=gt(()=>u(t,c,v),$),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 er(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=J(s);l.before(s),s=o}}function Q(t,e,r){e===null?t.first=r:(e.next=r,e.e.next=r&&r.e),r!==null&&(r.prev=e,r.e.prev=e&&e.e)}function cn(t,e,r,n,l){var u;$&&_t();var s=(u=e.$$slots)==null?void 0:u[r],o=!1;s===!0&&(s=e.children,o=!0),s===void 0?l!==null&&l(t):s(t,o?()=>n:n)}function rr(t,e){Hr(()=>{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 Ut(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[yr]=r),r==null?t.removeAttribute(e):typeof r!="string"&&fn(t).includes(e)?t[e]=r:t.setAttribute(e,r))}var nr=new Map;function fn(t){var e=nr.get(t.nodeName);if(e)return e;nr.set(t.nodeName,e=[]);for(var r,n=t,l=Element.prototype;l!==n;){r=gr(n);for(var s in r)r[s].set&&e.push(s);n=br(n)}return e}function lr(t,e){var r=t.__className,n=vn(e);$&&t.className===n?t.__className=n:(r!==n||$&&t.className!==n)&&(e==null?t.removeAttribute("class"):t.className=n,t.__className=n)}function vn(t){return t??""}function hn(t){for(var e=g,r=g;e!==null&&!(e.f&(F|nt));)e=e.parent;try{return X(e),t()}finally{X(r)}}function B(t,e,r,n){var U;var l=!we,s=(r&fr)!==0,o=!1,u;u=t[e];var a=wr in t||me in t,f=((U=Tt(t,e))==null?void 0:U.set)??(a&&s&&e in t?k=>t[e]=k:void 0),h=n,i=!0,c=!1,v=()=>(c=!0,i&&(i=!1,h=n),h);u===void 0&&n!==void 0&&(f&&l&&Cr(),u=v(),f&&f(u));var d;if(d=()=>{var k=t[e];return k===void 0?v():(i=!0,c=!1,k)},f){var _=t.$$legacy;return function(k,N){return arguments.length>0?((!N||_||o)&&f(N?d():k),k):d()}}var S=!1,C=!1,p=Zt(u),m=hn(()=>Or(()=>{var k=d(),N=M(p);return S?(S=!1,C=!0,N):(C=!1,p.v=k)}));return function(k,N){if(arguments.length>0){const vt=N?M(m):k;return m.equals(vt)||(S=!0,At(p,vt),c&&h!==void 0&&(h=vt),Zr(()=>M(m))),k}return M(m)}}function dn(t){return new _n(t)}class _n{constructor(e){he(this,K);he(this,R);var s;var r=new Map,n=(o,u)=>{var a=Zt(u);return r.set(o,a),a};const l=new Proxy({...e.props||{},$$events:{}},{get(o,u){return M(r.get(u)??n(u,Reflect.get(o,u)))},has(o,u){return u===me?!0:(M(r.get(u)??n(u,Reflect.get(o,u))),Reflect.has(o,u))},set(o,u,a){return At(r.get(u)??n(u,a),a),Reflect.set(o,u,a)}});de(this,R,(e.hydrate?rn:Xe)(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)&&O(),de(this,K,l.$$events);for(const o of Object.keys(A(this,R)))o==="$set"||o==="$destroy"||o==="$on"||Et(this,o,{get(){return A(this,R)[o]},set(u){A(this,R)[o]=u},enumerable:!0});A(this,R).$set=o=>{Object.assign(l,o)},A(this,R).$destroy=()=>{nn(A(this,R))}}$set(e){A(this,R).$set(e)}$on(e,r){A(this,K)[e]=A(this,K)[e]||[];const n=(...l)=>r.call(this,...l);return A(this,K)[e].push(n),()=>{A(this,K)[e]=A(this,K)[e].filter(l=>l!==n)}}$destroy(){A(this,R).$destroy()}}K=new WeakMap,R=new WeakMap;let sr;typeof HTMLElement=="function"&&(sr=class extends HTMLElement{constructor(e,r,n){super();L(this,"$$ctor");L(this,"$$s");L(this,"$$c");L(this,"$$cn",!1);L(this,"$$d",{});L(this,"$$r",!1);L(this,"$$p_d",{});L(this,"$$l",{});L(this,"$$l_u",new Map);L(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),ct(s,o)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=pn(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]=Yt(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=dn({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=Ir(()=>{Fr(()=>{var l;this.$$r=!0;for(const s of kt(this.$$c)){if(!((l=this.$$p_d[s])!=null&&l.reflect))continue;this.$$d[s]=this.$$c[s];const o=Yt(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]=Yt(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 kt(this.$$p_d).find(r=>this.$$p_d[r].attribute===e||!this.$$p_d[r].attribute&&r.toLowerCase()===e)||e}});function Yt(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 pn(t){const e={};return t.childNodes.forEach(r=>{e[r.slot||"default"]=!0}),e}function or(t,e,r,n,l,s){let o=class extends sr{constructor(){super(t,r,l),this.$$p_d=e}static get observedAttributes(){return kt(e).map(u=>(e[u].attribute||u).toLowerCase())}};return kt(e).forEach(u=>{Et(o.prototype,u,{get(){return this.$$c&&u in this.$$c?this.$$c[u]:this.$$d[u]},set(a){var i;a=Yt(u,a,e),this.$$d[u]=a;var f=this.$$c;if(f){var h=(i=Tt(f,u))==null?void 0:i.get;h?f[u]=a:f.$set({[u]:a})}}})}),n.forEach(u=>{Et(o.prototype,u,{get(){var a;return(a=this.$$c)==null?void 0:a[u]}})}),t.element=o,o}const gn=[{name:"nostter",url:"https://nostter.app/post?content={text}&url={url}&title={title}",icon:"https://nostter.app/favicon.ico"},{name:"lumilumi",url:"https://lumilumi.vercel.app/post?url={url}&text={text}&title={title}",icon:"https://lumilumi.vercel.app/favicon.ico"}];var bn=t=>t.stopPropagation(),$n=(t,e,r)=>e(M(r).url),mn=wt('<button class="item svelte-13vsz3z"><img> </button>'),xn=wt('<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 wn={hash:"svelte-13vsz3z",code:`
|
|
1
|
+
var NostrShare=function(b){"use strict";var Dn=Object.defineProperty;var cr=b=>{throw TypeError(b)};var In=(b,E,S)=>E in b?Dn(b,E,{enumerable:!0,configurable:!0,writable:!0,value:S}):b[E]=S;var F=(b,E,S)=>In(b,typeof E!="symbol"?E+"":E,S),fr=(b,E,S)=>E.has(b)||cr("Cannot "+S);var z=(b,E,S)=>(fr(b,E,"read from private field"),S?S.call(b):E.get(b)),be=(b,E,S)=>E.has(b)?cr("Cannot add the same private member more than once"):E instanceof WeakSet?E.add(b):E.set(b,S),$e=(b,E,S,kt)=>(fr(b,E,"write to private field"),kt?kt.call(b,S):E.set(b,S),S);var K,D;const E="5";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(E);const S=1,kt=2,vr=16,dr=8,hr=1,_r=2,me="[",Wt="[!",Jt="]",ht={},pr=Symbol(),gr=["touchstart","touchmove"];function br(t){return gr.includes(t)}const xe=!1;var we=Array.isArray,Xt=Array.from,St=Object.keys,Tt=Object.defineProperty,Ct=Object.getOwnPropertyDescriptor,$r=Object.getOwnPropertyDescriptors,mr=Object.getPrototypeOf;function xr(t){for(var e=0;e<t.length;e++)t[e]()}const I=2,ye=4,Nt=8,Zt=16,P=32,st=64,Qt=128,ot=256,zt=512,A=1024,X=2048,_t=4096,q=8192,it=16384,wr=32768,te=65536,yr=1<<19,Ee=1<<20,Er=Symbol("$state"),ke=Symbol("legacy props"),kr=Symbol("");function Se(t){return t===this.v}function Sr(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Tr(t){return!Sr(t,this.v)}function Cr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Nr(){throw new Error("https://svelte.dev/e/hydration_failed")}function zr(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function Ar(){throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function Or(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let Te=!1;function At(t,e){var r={f:0,v:t,reactions:null,equals:Se,version:0};return r}function Rr(t){return Dr(At(t))}function ee(t,e=!1){const r=At(t);return e||(r.equals=Tr),r}function Dr(t){return w!==null&&w.f&I&&(V===null?Yr([t]):V.push(t)),t}function Ot(t,e){return w!==null&&Kr()&&w.f&(I|Zt)&&(V===null||!V.includes(t))&&Or(),Ce(t,e)}function Ce(t,e){return t.equals(e)||(t.v=e,t.version=Ke(),Ne(t,X),g!==null&&g.f&A&&!(g.f&P)&&(C!==null&&C.includes(t)?(G(g,X),Bt(g)):tt===null?Gr([t]):tt.push(t))),e}function Ne(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||(G(s,e),o&(A|ot)&&(o&I?Ne(s,_t):Bt(s)))}}function re(t){console.warn("https://svelte.dev/e/hydration_mismatch")}let $=!1;function B(t){$=t}let x;function H(t){if(t===null)throw re(),ht;return x=t}function pt(){return H(Z(x))}function gt(t){if($){if(Z(x)!==null)throw re(),ht;x=t}}function ne(){for(var t=0,e=x;;){if(e.nodeType===8){var r=e.data;if(r===Jt){if(t===0)return e;t-=1}else(r===me||r===Wt)&&(t+=1)}var n=Z(e);e.remove(),e=n}}var ze,Ae,Oe;function le(){if(ze===void 0){ze=window;var t=Element.prototype,e=Node.prototype;Ae=Ct(e,"firstChild").get,Oe=Ct(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 Rt(t=""){return document.createTextNode(t)}function U(t){return Ae.call(t)}function Z(t){return Oe.call(t)}function Dt(t,e){if(!$)return U(t);var r=U(x);return r===null&&(r=x.appendChild(Rt())),H(r),r}function Re(t,e){if(!$){var r=U(t);return r instanceof Comment&&r.data===""?Z(r):r}return x}function It(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=Rt();return n===null?l==null||l.after(o):n.before(o),H(o),o}return H(n),n}function De(t){t.textContent=""}function Ir(t){var e=I|X;g===null?e|=ot:g.f|=Ee;var r=w!==null&&w.f&I?w:null;const n={children:null,ctx:M,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 Ie(t){var e=t.children;if(e!==null){t.children=null;for(var r=0;r<e.length;r+=1){var n=e[r];n.f&I?se(n):Y(n)}}}function Mr(t){for(var e=t.parent;e!==null;){if(!(e.f&I))return e;e=e.parent}return null}function Me(t){var e,r=g;Q(Mr(t));try{Ie(t),e=We(t)}finally{Q(r)}return e}function Le(t){var e=Me(t),r=(nt||t.f&ot)&&t.deps!==null?_t:A;G(t,r),t.equals(e)||(t.v=e,t.version=Ke())}function se(t){Ie(t),wt(t,0),G(t,it),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 at(t,e,r,n=!0){var l=(t&st)!==0,s=g,o={ctx:M,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=ut;try{Ye(!0),Vt(o),o.f|=wr}catch(d){throw Y(o),d}finally{Ye(i)}}else e!==null&&Bt(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&I)){var f=w;(f.children??(f.children=[])).push(o)}return o}function jr(t){const e=at(st,t,!0);return()=>{Y(e)}}function Fr(t){const e=at(st,t,!0);return(r={})=>new Promise(n=>{r.outro?Lt(e,()=>{Y(e),n(void 0)}):(Y(e),n(void 0))})}function Pr(t){return at(ye,t,!1)}function qr(t){return at(Nt,t,!0)}function Mt(t){return oe(t)}function oe(t,e=0){return at(Nt|Zt|e,t,!0)}function bt(t,e=!0){return at(Nt|P,t,!0,e)}function je(t){var e=t.teardown;if(e!==null){const r=w;ft(null);try{e.call(null)}finally{ft(r)}}}function Fe(t){var e=t.deriveds;if(e!==null){t.deriveds=null;for(var r=0;r<e.length;r+=1)se(e[r])}}function Pe(t,e=!1){var r=t.first;for(t.first=t.last=null;r!==null;){var n=r.next;Y(r,e),r=n}}function Hr(t){for(var e=t.first;e!==null;){var r=e.next;e.f&P||Y(e),e=r}}function Y(t,e=!0){var r=!1;if((e||t.f&yr)&&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}Pe(t,e&&!r),Fe(t),wt(t,0),G(t,it);var o=t.transitions;if(o!==null)for(const u of o)u.stop();je(t);var i=t.parent;i!==null&&i.first!==null&&qe(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function qe(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 Lt(t,e){var r=[];ie(t,r,!0),He(r,()=>{Y(t),e&&e()})}function He(t,e){var r=t.length;if(r>0){var n=()=>--r||e();for(var l of t)l.out(n)}else e()}function ie(t,e,r){if(!(t.f&q)){if(t.f^=q,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&te)!==0||(n.f&P)!==0;ie(n,e,s?r:!1),n=l}}}function jt(t){Ve(t,!0)}function Ve(t,e){if(t.f&q){xt(t)&&Vt(t),t.f^=q;for(var r=t.first;r!==null;){var n=r.next,l=(r.f&te)!==0||(r.f&P)!==0;Ve(r,l?e:!1),r=n}if(t.transitions!==null)for(const s of t.transitions)(s.is_global||e)&&s.in()}}let Ft=!1,ae=[];function Be(){Ft=!1;const t=ae.slice();ae=[],xr(t)}function Vr(t){Ft||(Ft=!0,queueMicrotask(Be)),ae.push(t)}function Br(){Ft&&Be()}const Ue=0,Ur=1;let Pt=!1,qt=Ue,$t=!1,mt=null,ut=!1;function Ye(t){ut=t}let rt=[],ct=0,Mn=[],w=null;function ft(t){w=t}let g=null;function Q(t){g=t}let V=null;function Yr(t){V=t}let C=null,O=0,tt=null;function Gr(t){tt=t}let Ge=1,nt=!1,M=null;function Ke(){return++Ge}function Kr(){return!Te}function xt(t){var o,i;var e=t.f;if(e&X)return!0;if(e&_t){var r=t.deps,n=(e&ot)!==0;if(r!==null){var l;if(e&zt){for(l=0;l<r.length;l++)((o=r[l]).reactions??(o.reactions=[])).push(t);t.f^=zt}for(l=0;l<r.length;l++){var s=r[l];if(xt(s)&&Le(s),n&&g!==null&&!nt&&!((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&&!nt)&&G(t,A)}return!1}function Wr(t,e){for(var r=e;r!==null;){if(r.f&Qt)try{r.fn(t);return}catch{r.f^=Qt}r=r.parent}throw Pt=!1,t}function Jr(t){return(t.f&it)===0&&(t.parent===null||(t.parent.f&Qt)===0)}function Ht(t,e,r,n){if(Pt){if(r===null&&(Pt=!1),Jr(e))throw t;return}r!==null&&(Pt=!0);{Wr(t,e);return}}function We(t){var c;var e=C,r=O,n=tt,l=w,s=nt,o=V,i=M,u=t.f;C=null,O=0,tt=null,w=u&(P|st)?null:t,nt=!ut&&(u&ot)!==0,V=null,M=t.ctx;try{var f=(0,t.fn)(),d=t.deps;if(C!==null){var a;if(wt(t,O),d!==null&&O>0)for(d.length=O+C.length,a=0;a<C.length;a++)d[O+a]=C[a];else t.deps=d=C;if(!nt)for(a=O;a<d.length;a++)((c=d[a]).reactions??(c.reactions=[])).push(t)}else d!==null&&O<d.length&&(wt(t,O),d.length=O);return f}finally{C=e,O=r,tt=n,w=l,nt=s,V=o,M=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&I&&(C===null||!C.includes(e))&&(G(e,_t),e.f&(ot|zt)||(e.f^=zt),wt(e,0))}function wt(t,e){var r=t.deps;if(r!==null)for(var n=e;n<r.length;n++)Xr(t,r[n])}function Vt(t){var e=t.f;if(!(e&it)){G(t,A);var r=g,n=M;g=t;try{e&Zt?Hr(t):Pe(t),Fe(t),je(t);var l=We(t);t.teardown=typeof l=="function"?l:null,t.version=Ge}catch(s){Ht(s,t,r,n||t.ctx)}finally{g=r}}}function Je(){if(ct>1e3){ct=0;try{Cr()}catch(t){if(mt!==null)Ht(t,mt,null);else throw t}}ct++}function Xe(t){var e=t.length;if(e!==0){Je();var r=ut;ut=!0;try{for(var n=0;n<e;n++){var l=t[n];l.f&A||(l.f^=A);var s=[];Ze(l,s),Zr(s)}}finally{ut=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&(it|q)))try{xt(n)&&(Vt(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null?qe(n):n.fn=null))}catch(l){Ht(l,n,null,n.ctx)}}}function Qr(){if($t=!1,ct>1001)return;const t=rt;rt=[],Xe(t),$t||(ct=0,mt=null)}function Bt(t){qt===Ue&&($t||($t=!0,queueMicrotask(Qr))),mt=t;for(var e=t;e.parent!==null;){e=e.parent;var r=e.f;if(r&(st|P)){if(!(r&A))return;e.f^=A}}rt.push(e)}function Ze(t,e){var r=t.first,n=[];t:for(;r!==null;){var l=r.f,s=(l&P)!==0,o=s&&(l&A)!==0,i=r.next;if(!o&&!(l&q))if(l&Nt){if(s)r.f^=A;else try{xt(r)&&Vt(r)}catch(a){Ht(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 f=a.next;if(f!==null){r=f;continue t}a=a.parent}}r=i}for(var d=0;d<n.length;d++)u=n[d],e.push(u),Ze(u,e)}function R(t){var e=qt,r=rt;try{Je();const l=[];qt=Ur,rt=l,$t=!1,Xe(r);var n=t==null?void 0:t();return Br(),(rt.length>0||l.length>0)&&R(),ct=0,mt=null,n}finally{qt=e,rt=r}}function L(t){var d;var e=t.f,r=(e&I)!==0;if(r&&e&it){var n=Me(t);return se(t),n}if(w!==null){V!==null&&V.includes(t)&&Ar();var l=w.deps;C===null&&l!==null&&l[O]===t?O++:C===null?C=[t]:C.push(t),tt!==null&&g!==null&&g.f&A&&!(g.f&P)&&tt.includes(t)&&(G(g,X),Bt(g))}else if(r&&t.deps===null)for(var s=t,o=s.parent,i=s;o!==null;)if(o.f&I){var u=o;i=u,o=u.parent}else{var f=o;(d=f.deriveds)!=null&&d.includes(i)||(f.deriveds??(f.deriveds=[])).push(i);break}return r&&(s=t,xt(s)&&Le(s)),t.v}function tn(t){const e=w;try{return w=null,t()}finally{w=e}}const en=~(X|_t|A);function G(t,e){t.f=t.f&en|e}function Ut(t,e=!1,r){M={p:M,c:null,e:null,m:!1,s:t,x:null,l:null}}function Yt(t){const e=M;if(e!==null){t!==void 0&&(e.x=t);const o=e.e;if(o!==null){var r=g,n=w;e.e=null;try{for(var l=0;l<o.length;l++){var s=o[l];Q(s.effect),ft(s.reaction),Pr(s.fn)}}finally{Q(r),ft(n)}}M=e.p,e.m=!0}return t||{}}const Qe=new Set,ue=new Set;function tr(t){for(var e=0;e<t.length;e++)Qe.add(t[e]);for(var r of ue)r(t)}function Gt(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 f=l.indexOf(e);if(f===-1)return;u<=f&&(o=u)}if(s=l[o]||t.target,s!==e){Tt(t,"currentTarget",{configurable:!0,get(){return s||r}});var d=w,a=g;ft(null),Q(null);try{for(var c,v=[];s!==null;){var h=s.assignedSlot||s.parentNode||s.host||null;try{var _=s["__"+n];if(_!==void 0&&!s.disabled)if(we(_)){var[N,...T]=_;N.apply(s,[t,...T])}else _.call(s,t)}catch(y){c?v.push(y):c=y}if(t.cancelBubble||h===e||h===null)break;s=h}if(c){for(let y of v)queueMicrotask(()=>{throw y});throw c}}finally{t.__root=e,delete t.currentTarget,ft(d),Q(a)}}}function er(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function vt(t,e){var r=g;r.nodes_start===null&&(r.nodes_start=t,r.nodes_end=e)}function yt(t,e){var r=(e&hr)!==0,n=(e&_r)!==0,l,s=!t.startsWith("<!>");return()=>{if($)return vt(x,null),x;l===void 0&&(l=er(s?t:"<!>"+t),r||(l=U(l)));var o=n?document.importNode(l,!0):l.cloneNode(!0);if(r){var i=U(o),u=o.lastChild;vt(i,u)}else vt(o,o);return o}}function rn(t,e,r="svg"){var n=!t.startsWith("<!>"),l=`<${r}>${n?t:"<!>"+t}</${r}>`,s;return()=>{if($)return vt(x,null),x;if(!s){var o=er(l),i=U(o);s=U(i)}var u=s.cloneNode(!0);return vt(u,u),u}}function lt(t,e){if($){g.nodes_end=x,pt();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 rr(t,e){return nr(t,e)}function ln(t,e){le(),e.intro=e.intro??!1;const r=e.target,n=$,l=x;try{for(var s=U(r);s&&(s.nodeType!==8||s.data!==me);)s=Z(s);if(!s)throw ht;B(!0),H(s),pt();const o=nr(t,{...e,anchor:s});if(x===null||x.nodeType!==8||x.data!==Jt)throw re(),ht;return B(!1),o}catch(o){if(o===ht)return e.recover===!1&&Nr(),le(),De(r),B(!1),rr(t,e);throw o}finally{B(n),H(l)}}const dt=new Map;function nr(t,{target:e,anchor:r,props:n={},events:l,context:s,intro:o=!0}){le();var i=new Set,u=a=>{for(var c=0;c<a.length;c++){var v=a[c];if(!i.has(v)){i.add(v);var h=br(v);e.addEventListener(v,Gt,{passive:h});var _=dt.get(v);_===void 0?(document.addEventListener(v,Gt,{passive:h}),dt.set(v,1)):dt.set(v,_+1)}}};u(Xt(Qe)),ue.add(u);var f=void 0,d=Fr(()=>{var a=r??e.appendChild(Rt());return bt(()=>{if(s){Ut({});var c=M;c.c=s}l&&(n.$$events=l),$&&vt(a,null),f=t(a,n)||{},$&&(g.nodes_end=x),s&&Yt()}),()=>{var h;for(var c of i){e.removeEventListener(c,Gt);var v=dt.get(c);--v===0?(document.removeEventListener(c,Gt),dt.delete(c)):dt.set(c,v)}ue.delete(u),a!==r&&((h=a.parentNode)==null||h.removeChild(a))}});return ce.set(f,d),f}let ce=new WeakMap;function sn(t,e){const r=ce.get(t);return r?(ce.delete(t),r(e)):Promise.resolve()}function fe(t,e,r=!1){$&&pt();var n=t,l=null,s=null,o=pr,i=r?te:0,u=!1;const f=(a,c=!0)=>{u=!0,d(c,a)},d=(a,c)=>{if(o===(o=a))return;let v=!1;if($){const h=n.data===Wt;!!o===h&&(n=ne(),H(n),B(!1),v=!0)}o?(l?jt(l):c&&(l=bt(()=>c(n))),s&&Lt(s,()=>{s=null})):(s?jt(s):c&&(s=bt(()=>c(n))),l&&Lt(l,()=>{l=null})),v&&B(!0)};oe(()=>{u=!1,e(f),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++)ie(e[o].e,l,!0);var i=s>0&&l.length===0&&r!==null;if(i){var u=r.parentNode;De(u),u.append(r),n.clear(),et(t,e[0].prev,e[s-1].next)}He(l,()=>{for(var f=0;f<s;f++){var d=e[f];i||(n.delete(d.k),et(t,d.prev,d.next)),Y(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=$?H(U(u)):u.appendChild(Rt())}$&&pt();var f=null,d=!1;oe(()=>{var a=r(),c=we(a)?a:a==null?[]:Xt(a),v=c.length;if(d&&v===0)return;d=v===0;let h=!1;if($){var _=o.data===Wt;_!==(v===0)&&(o=ne(),H(o),B(!1),h=!0)}if($){for(var N=null,T,p=0;p<v;p++){if(x.nodeType===8&&x.data===Jt){o=x,h=!0,B(!1);break}var y=c[p],W=n(y,p);T=lr(x,i,N,null,y,W,p,l,e),i.items.set(W,T),N=T}v>0&&H(ne())}if(!$){var k=w;cn(c,i,o,l,e,(k.f&q)!==0,n)}s!==null&&(v===0?f?jt(f):f=bt(()=>s(o)):f!==null&&Lt(f,()=>{f=null})),h&&B(!0)}),$&&(o=x)}function cn(t,e,r,n,l,s,o,i){var u=t.length,f=e.items,d=e.first,a=d,c,v=null,h=[],_=[],N,T,p,y;for(y=0;y<u;y+=1){if(N=t[y],T=o(N,y),p=f.get(T),p===void 0){var W=a?a.e.nodes_start:r;v=lr(W,e,v,v===null?e.first:v.next,N,T,y,n,l),f.set(T,v),h=[],_=[],a=v.next;continue}if(fn(p,N,y),p.e.f&q&&jt(p.e),p!==a){if(c!==void 0&&c.has(p)){if(h.length<_.length){var k=_[0],m;v=k.prev;var J=h[0],pe=h[h.length-1];for(m=0;m<h.length;m+=1)sr(h[m],k,r);for(m=0;m<_.length;m+=1)c.delete(_[m]);et(e,J.prev,pe.next),et(e,v,J),et(e,pe,k),a=k,v=pe,y-=1,h=[],_=[]}else c.delete(p),sr(p,a,r),et(e,p.prev,p.next),et(e,p,v===null?e.first:v.next),et(e,v,p),v=p;continue}for(h=[],_=[];a!==null&&a.k!==T;)(s||!(a.e.f&q))&&(c??(c=new Set)).add(a),_.push(a),a=a.next;if(a===null)continue;p=a}h.push(p),v=p,a=p.next}if(a!==null||c!==void 0){for(var ge=c===void 0?[]:Xt(c);a!==null;)(s||!(a.e.f&q))&&ge.push(a),a=a.next;var On=ge.length;if(On>0){var Rn=u===0?r:null;an(e,ge,Rn,f)}}g.first=e.first&&e.first.e,g.last=v&&v.e}function fn(t,e,r,n){Ce(t.v,e),t.i=r}function lr(t,e,r,n,l,s,o,i,u,f){var d=(u&S)!==0,a=(u&vr)===0,c=d?a?ee(l):At(l):l,v=u&kt?At(o):o,h={i:v,v:c,k:s,a:null,e:null,prev:r,next:n};try{return h.e=bt(()=>i(t,c,v),$),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 sr(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;$&&pt();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 ve(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 Et(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[kr]=r),r==null?t.removeAttribute(e):typeof r!="string"&&dn(t).includes(e)?t[e]=r:t.setAttribute(e,r))}var or=new Map;function dn(t){var e=or.get(t.nodeName);if(e)return e;or.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=mr(n)}return e}function ir(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&(P|st));)e=e.parent;try{return Q(e),t()}finally{Q(r)}}function j(t,e,r,n){var W;var l=!Te,s=(r&dr)!==0,o=!1,i;i=t[e];var u=Er in t||ke in t,f=((W=Ct(t,e))==null?void 0:W.set)??(u&&s&&e in t?k=>t[e]=k:void 0),d=n,a=!0,c=!1,v=()=>(c=!0,a&&(a=!1,d=n),d);i===void 0&&n!==void 0&&(f&&l&&zr(),i=v(),f&&f(i));var h;if(h=()=>{var k=t[e];return k===void 0?v():(a=!0,c=!1,k)},f){var _=t.$$legacy;return function(k,m){return arguments.length>0?((!m||_||o)&&f(m?h():k),k):h()}}var N=!1,T=!1,p=ee(i),y=_n(()=>Ir(()=>{var k=h(),m=L(p);return N?(N=!1,T=!0,m):(T=!1,p.v=k)}));return function(k,m){if(arguments.length>0){const J=m?L(y):k;return y.equals(J)||(N=!0,Ot(p,J),c&&d!==void 0&&(d=J),tn(()=>L(y))),k}return L(y)}}function pn(t){return new gn(t)}class gn{constructor(e){be(this,K);be(this,D);var s;var r=new Map,n=(o,i)=>{var u=ee(i);return r.set(o,u),u};const l=new Proxy({...e.props||{},$$events:{}},{get(o,i){return L(r.get(i)??n(i,Reflect.get(o,i)))},has(o,i){return i===ke?!0:(L(r.get(i)??n(i,Reflect.get(o,i))),Reflect.has(o,i))},set(o,i,u){return Ot(r.get(i)??n(i,u),u),Reflect.set(o,i,u)}});$e(this,D,(e.hydrate?ln:rr)(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)&&R(),$e(this,K,l.$$events);for(const o of Object.keys(z(this,D)))o==="$set"||o==="$destroy"||o==="$on"||Tt(this,o,{get(){return z(this,D)[o]},set(i){z(this,D)[o]=i},enumerable:!0});z(this,D).$set=o=>{Object.assign(l,o)},z(this,D).$destroy=()=>{sn(z(this,D))}}$set(e){z(this,D).$set(e)}$on(e,r){z(this,K)[e]=z(this,K)[e]||[];const n=(...l)=>r.call(this,...l);return z(this,K)[e].push(n),()=>{z(this,K)[e]=z(this,K)[e].filter(l=>l!==n)}}$destroy(){z(this,D).$destroy()}}K=new WeakMap,D=new WeakMap;let ar;typeof HTMLElement=="function"&&(ar=class extends HTMLElement{constructor(e,r,n){super();F(this,"$$ctor");F(this,"$$s");F(this,"$$c");F(this,"$$cn",!1);F(this,"$$d",{});F(this,"$$r",!1);F(this,"$$p_d",{});F(this,"$$l",{});F(this,"$$l_u",new Map);F(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),lt(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]=Kt(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 St(this.$$c)){if(!((l=this.$$p_d[s])!=null&&l.reflect))continue;this.$$d[s]=this.$$c[s];const o=Kt(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]=Kt(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 St(this.$$p_d).find(r=>this.$$p_d[r].attribute===e||!this.$$p_d[r].attribute&&r.toLowerCase()===e)||e}});function Kt(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 de(t,e,r,n,l,s){let o=class extends ar{constructor(){super(t,r,l),this.$$p_d=e}static get observedAttributes(){return St(e).map(i=>(e[i].attribute||i).toLowerCase())}};return St(e).forEach(i=>{Tt(o.prototype,i,{get(){return this.$$c&&i in this.$$c?this.$$c[i]:this.$$d[i]},set(u){var a;u=Kt(i,u,e),this.$$d[i]=u;var f=this.$$c;if(f){var d=(a=Ct(f,i))==null?void 0:a.get;d?f[i]=u:f.$set({[i]:u})}}})}),n.forEach(i=>{Tt(o.prototype,i,{get(){var u;return(u=this.$$c)==null?void 0:u[i]}})}),t.element=o,o}const $n=[{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 mn=t=>t.stopPropagation(),xn=(t,e,r)=>e(L(r).url),wn=yt('<button class="item svelte-13vsz3z"><img> </button>'),yn=yt('<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(b){"use strict";var An=Object.defineProperty;var ur=b=>{
|
|
|
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
|
|
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 he(t,e){Ut(e,!0),ve(t,En);let r=j(e,"url",7,""),n=j(e,"text",7,""),l=j(e,"shareTitle",7,""),s=j(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=[mn];var f=Dt(u);f.__click=function(...a){var c;(c=s())==null||c.apply(this,a)};var d=It(f,4);return un(d,21,()=>$n,on,(a,c)=>{var v=wn();v.__click=[xn,o,c];var h=Dt(v);Et(h,"width",24);var _=It(h);gt(v),Mt(()=>{Et(h,"src",L(c).icon),Et(h,"alt",L(c).name),nn(_,` ${L(c).name??""}`)}),lt(a,v)}),gt(d),gt(u),gt(i),lt(t,i),Yt({get url(){return r()},set url(a=""){r(a),R()},get text(){return n()},set text(a=""){n(a),R()},get shareTitle(){return l()},set shareTitle(a=""){l(a),R()},get handleClose(){return s()},set handleClose(a){s(a),R()}})}tr(["click"]),customElements.define("nostr-share-dialog",de(he,{url:{},text:{},shareTitle:{},handleClose:{}},[],[],!0));var kn=rn(`<svg class="nostr-icon svelte-k84is3" 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-k84is3" 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-
|
|
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-k84is3" cx="137.9" cy="99" r="12.1"></circle><path class="st1 svelte-k84is3" 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-
|
|
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-k84is3" 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,20 @@ var NostrShare=function(b){"use strict";var An=Object.defineProperty;var ur=b=>{
|
|
|
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
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
s-5.4,12.1-12.1,12.1S125.7,105.8,125.7,99z"></path></g></svg>`);const Sn={hash:"svelte-k84is3",code:`
|
|
30
|
+
/* アイコン内部のSVG */.nostr-icon.svelte-k84is3 {display:flex;align-items:center;justify-content:center;}.st0.svelte-k84is3 {fill:none;}.st1.svelte-k84is3 {fill:var(--button1-bg-color);}.st2.svelte-k84is3 {fill:var(--nostr-color);}`};function _e(t,e){Ut(e,!0),ve(t,Sn);let r=j(e,"size",7,28);var n=kn();return Mt(()=>Et(n,"style",`enable-background:new 0 0 256 256; width: ${r()??""}px; height: ${r()??""}px;`)),lt(t,n),Yt({get size(){return r()},set size(l=28){r(l),R()}})}de(_e,{size:{}},[],[],!0);const Tn=(t,e)=>{Ot(e,!0)};var Cn=yt("<span>Nostr</span>"),Nn=yt("<!> <!>",1),zn=yt("<button><!></button> <!>",1);const An={hash:"svelte-1j2fuuf",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;}
|
|
32
33
|
}
|
|
33
|
-
/* ボタン全体の基本スタイル */.nostrShare-button.svelte-
|
|
34
|
-
.nostrShare-icon.svelte-
|
|
34
|
+
/* ボタン全体の基本スタイル */.nostrShare-button.svelte-1j2fuuf,
|
|
35
|
+
.nostrShare-icon.svelte-1j2fuuf,
|
|
36
|
+
.nostrShare-mini.svelte-1j2fuuf {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;}
|
|
35
37
|
|
|
36
|
-
/* ボタンスタイル */.nostrShare-button.svelte-
|
|
38
|
+
/* ボタンスタイル */.nostrShare-button.svelte-1j2fuuf {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-1j2fuuf:hover {background-color:var(--button1-hover-color); /* 少し明るいグレー */box-shadow:0 0 4px rgba(0, 0, 0, 0.1);}.nostrShare-button.svelte-1j2fuuf:active {background-color:#d1d5db; /* ダークグレー */transform:scale(0.98);}
|
|
37
39
|
|
|
38
|
-
/* テキスト用スタイル */.nostrShare-text.svelte-
|
|
40
|
+
/* テキスト用スタイル */.nostrShare-text.svelte-1j2fuuf {margin-left:8px;font-size:medium;color:var(--button2-text-color);}
|
|
39
41
|
|
|
40
|
-
/* アイコンスタイル */.nostrShare-icon.svelte-
|
|
42
|
+
/* アイコンスタイル */.nostrShare-icon.svelte-1j2fuuf {width:36px;height:36px;margin:4px;border-radius:50%;background-color:var(--button1-bg-color); /* グレー */}.nostrShare-icon.svelte-1j2fuuf:hover {background-color:var(--button1-hover-color); /* グレー */box-shadow:0 0 6px rgba(0, 0, 0, 0.1);}.nostrShare-icon.svelte-1j2fuuf:active {background-color:#d1d5db;transform:scale(0.95);}
|
|
41
43
|
|
|
42
|
-
/*
|
|
44
|
+
/* miniスタイル */.nostrShare-mini.svelte-1j2fuuf {padding:2px 6px;margin:2px;border-radius:8px;background-color:var(--button1-bg-color); /* グレー */color:var(--button2-text-color); /* ダークグレー */}.nostrShare-mini.svelte-1j2fuuf:hover {background-color:var(--button1-hover-color); /* 少し明るいグレー */box-shadow:0 0 4px rgba(0, 0, 0, 0.1);}.nostrShare-mini.svelte-1j2fuuf:active {background-color:#d1d5db; /* ダークグレー */transform:scale(0.98);}
|
|
45
|
+
/* テキスト用スタイル */.nostrShare-text-mini.svelte-1j2fuuf {margin-left:4px;font-size:small;font-weight:bold;color:var(--button2-text-color);}`};function ur(t,e){Ut(e,!0),ve(t,An);let r=j(e,"data-url",7),n=j(e,"data-text",7),l=j(e,"data-title",7),s=j(e,"data-type",7,"default"),o=j(e,"class",7),i=j(e,"style",7),u=Rr(!1);const f=()=>{Ot(u,!1)};var d=zn(),a=Re(d);a.__click=[Tn,u];var c=Dt(a);vn(c,e,"default",{},_=>{var N=Nn(),T=Re(N);{var p=m=>{_e(m,{size:24})},y=m=>{_e(m,{})};fe(T,m=>{s()==="mini"?m(p):m(y,!1)})}var W=It(T,2);{var k=m=>{var J=Cn();Mt(()=>ir(J,`${(s()==="mini"?"nostrShare-text-mini":"nostrShare-text")??""} svelte-1j2fuuf`)),lt(m,J)};fe(W,m=>{s()!=="icon"&&m(k)})}lt(_,N)}),gt(a);var v=It(a,2);{var h=_=>{he(_,{handleClose:f,get url(){return r()},get text(){return n()},get shareTitle(){return l()}})};fe(v,_=>{L(u)&&_(h)})}return Mt(()=>{ir(a,`${`${o()||(s()==="icon"?"nostrShare-icon":s()==="mini"?"nostrShare-mini":"nostrShare-button")}`??""} svelte-1j2fuuf`),Et(a,"style",i()||"")}),lt(t,d),Yt({get"data-url"(){return r()},set"data-url"(_){r(_),R()},get"data-text"(){return n()},set"data-text"(_){n(_),R()},get"data-title"(){return l()},set"data-title"(_){l(_),R()},get"data-type"(){return s()},set"data-type"(_="default"){s(_),R()},get class(){return o()},set class(_){o(_),R()},get style(){return i()},set style(_){i(_),R()}})}return tr(["click"]),customElements.define("nostr-share",de(ur,{"data-url":{},"data-text":{},"data-title":{},"data-type":{},class:{},style:{}},["default"],[],!0)),b.Dialog=he,b.NostrShare=ur,Object.defineProperty(b,Symbol.toStringTag,{value:"Module"}),b}({});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(b,$){typeof exports=="object"&&typeof module<"u"?$(exports):typeof define=="function"&&define.amd?define(["exports"],$):(b=typeof globalThis<"u"?globalThis:b||self,$(b.NostrShare={}))})(this,function(b){"use strict";var An=Object.defineProperty;var ur=b=>{throw TypeError(b)};var zn=(b,$,E)=>$ in b?An(b,$,{enumerable:!0,configurable:!0,writable:!0,value:E}):b[$]=E;var L=(b,$,E)=>zn(b,typeof $!="symbol"?$+"":$,E),ar=(b,$,E)=>$.has(b)||ur("Cannot "+E);var A=(b,$,E)=>(ar(b,$,"read from private field"),E?E.call(b):$.get(b)),he=(b,$,E)=>$.has(b)?ur("Cannot add the same private member more than once"):$ instanceof WeakSet?$.add(b):$.set(b,E),de=(b,$,E,wt)=>(ar(b,$,"write to private field"),wt?wt.call(b,E):$.set(b,E),E);var K,R;const $="5";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add($);const E=1,wt=2,cr=16,fr=8,vr=1,hr=2,_e="[",Yt="[!",Gt="]",ht={},dr=Symbol(),_r=["touchstart","touchmove"];function pr(t){return _r.includes(t)}const pe=!1;var ge=Array.isArray,Kt=Array.from,kt=Object.keys,Et=Object.defineProperty,Tt=Object.getOwnPropertyDescriptor,gr=Object.getOwnPropertyDescriptors,br=Object.getPrototypeOf;function $r(t){for(var e=0;e<t.length;e++)t[e]()}const D=2,be=4,St=8,Wt=16,F=32,nt=64,Jt=128,lt=256,Ct=512,z=1024,W=2048,dt=4096,P=8192,st=16384,mr=32768,Xt=65536,xr=1<<19,$e=1<<20,yr=Symbol("$state"),me=Symbol("legacy props"),wr=Symbol("");function xe(t){return t===this.v}function kr(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Er(t){return!kr(t,this.v)}function Tr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Sr(){throw new Error("https://svelte.dev/e/hydration_failed")}function Cr(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function Nr(){throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function Ar(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let ye=!1;function Nt(t,e){var r={f:0,v:t,reactions:null,equals:xe,version:0};return r}function zr(t){return qr(Nt(t))}function Zt(t,e=!1){const r=Nt(t);return e||(r.equals=Er),r}function qr(t){return w!==null&&w.f&D&&(V===null?Ur([t]):V.push(t)),t}function At(t,e){return w!==null&&Yr()&&w.f&(D|Wt)&&(V===null||!V.includes(t))&&Ar(),we(t,e)}function we(t,e){return t.equals(e)||(t.v=e,t.version=Ue(),ke(t,W),g!==null&&g.f&z&&!(g.f&F)&&(T!==null&&T.includes(t)?(G(g,W),Ht(g)):Z===null?jr([t]):Z.push(t))),e}function ke(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&W||(G(s,e),o&(z|lt)&&(o&D?ke(s,dt):Ht(s)))}}function Qt(t){console.warn("https://svelte.dev/e/hydration_mismatch")}let m=!1;function j(t){m=t}let y;function H(t){if(t===null)throw Qt(),ht;return y=t}function _t(){return H(J(y))}function pt(t){if(m){if(J(y)!==null)throw Qt(),ht;y=t}}function te(){for(var t=0,e=y;;){if(e.nodeType===8){var r=e.data;if(r===Gt){if(t===0)return e;t-=1}else(r===_e||r===Yt)&&(t+=1)}var n=J(e);e.remove(),e=n}}var Ee,Te,Se;function ee(){if(Ee===void 0){Ee=window;var t=Element.prototype,e=Node.prototype;Te=Tt(e,"firstChild").get,Se=Tt(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 zt(t=""){return document.createTextNode(t)}function tt(t){return Te.call(t)}function J(t){return Se.call(t)}function qt(t,e){if(!m)return tt(t);var r=tt(y);return r===null&&(r=y.appendChild(zt())),H(r),r}function Ce(t,e){if(!m){var r=tt(t);return r instanceof Comment&&r.data===""?J(r):r}return y}function Ot(t,e=1,r=!1){let n=m?y:t;for(var l;e--;)l=n,n=J(n);if(!m)return n;var s=n==null?void 0:n.nodeType;if(r&&s!==3){var o=zt();return n===null?l==null||l.after(o):n.before(o),H(o),o}return H(n),n}function Ne(t){t.textContent=""}function Or(t){var e=D|W;g===null?e|=lt:g.f|=$e;var r=w!==null&&w.f&D?w:null;const n={children:null,ctx:I,deps:null,equals:xe,f:e,fn:t,reactions:null,v:null,version:0,parent:r??g};return r!==null&&(r.children??(r.children=[])).push(n),n}function Ae(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&D?re(n):Y(n)}}}function Rr(t){for(var e=t.parent;e!==null;){if(!(e.f&D))return e;e=e.parent}return null}function ze(t){var e,r=g;X(Rr(t));try{Ae(t),e=je(t)}finally{X(r)}return e}function qe(t){var e=ze(t),r=(rt||t.f<)&&t.deps!==null?dt:z;G(t,r),t.equals(e)||(t.v=e,t.version=Ue())}function re(t){Ae(t),xt(t,0),G(t,st),t.v=t.children=t.deps=t.ctx=t.reactions=null}function Dr(t,e){var r=e.last;r===null?e.last=e.first=t:(r.next=t,t.prev=r,e.last=t)}function ot(t,e,r,n=!0){var l=(t&nt)!==0,s=g,o={ctx:I,deps:null,deriveds:null,nodes_start:null,nodes_end:null,f:t|W,first:null,fn:e,last:null,next:null,parent:l?null:s,prev:null,teardown:null,transitions:null,version:0};if(r){var u=it;try{Ve(!0),Pt(o),o.f|=mr}catch(h){throw Y(o),h}finally{Ve(u)}}else e!==null&&Ht(o);var a=r&&o.deps===null&&o.first===null&&o.nodes_start===null&&o.teardown===null&&(o.f&$e)===0;if(!a&&!l&&n&&(s!==null&&Dr(o,s),w!==null&&w.f&D)){var f=w;(f.children??(f.children=[])).push(o)}return o}function Ir(t){const e=ot(nt,t,!0);return()=>{Y(e)}}function Mr(t){const e=ot(nt,t,!0);return(r={})=>new Promise(n=>{r.outro?Rt(e,()=>{Y(e),n(void 0)}):(Y(e),n(void 0))})}function Lr(t){return ot(be,t,!1)}function Fr(t){return ot(St,t,!0)}function Oe(t){return ne(t)}function ne(t,e=0){return ot(St|Wt|e,t,!0)}function gt(t,e=!0){return ot(St|F,t,!0,e)}function Re(t){var e=t.teardown;if(e!==null){const r=w;at(null);try{e.call(null)}finally{at(r)}}}function De(t){var e=t.deriveds;if(e!==null){t.deriveds=null;for(var r=0;r<e.length;r+=1)re(e[r])}}function Ie(t,e=!1){var r=t.first;for(t.first=t.last=null;r!==null;){var n=r.next;Y(r,e),r=n}}function Pr(t){for(var e=t.first;e!==null;){var r=e.next;e.f&F||Y(e),e=r}}function Y(t,e=!0){var r=!1;if((e||t.f&xr)&&t.nodes_start!==null){for(var n=t.nodes_start,l=t.nodes_end;n!==null;){var s=n===l?null:J(n);n.remove(),n=s}r=!0}Ie(t,e&&!r),De(t),xt(t,0),G(t,st);var o=t.transitions;if(o!==null)for(const a of o)a.stop();Re(t);var u=t.parent;u!==null&&u.first!==null&&Me(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Me(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 Rt(t,e){var r=[];le(t,r,!0),Le(r,()=>{Y(t),e&&e()})}function Le(t,e){var r=t.length;if(r>0){var n=()=>--r||e();for(var l of t)l.out(n)}else e()}function le(t,e,r){if(!(t.f&P)){if(t.f^=P,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&Xt)!==0||(n.f&F)!==0;le(n,e,s?r:!1),n=l}}}function Dt(t){Fe(t,!0)}function Fe(t,e){if(t.f&P){mt(t)&&Pt(t),t.f^=P;for(var r=t.first;r!==null;){var n=r.next,l=(r.f&Xt)!==0||(r.f&F)!==0;Fe(r,l?e:!1),r=n}if(t.transitions!==null)for(const s of t.transitions)(s.is_global||e)&&s.in()}}let It=!1,se=[];function Pe(){It=!1;const t=se.slice();se=[],$r(t)}function Hr(t){It||(It=!0,queueMicrotask(Pe)),se.push(t)}function Vr(){It&&Pe()}const He=0,Br=1;let Mt=!1,Lt=He,bt=!1,$t=null,it=!1;function Ve(t){it=t}let et=[],ut=0,qn=[],w=null;function at(t){w=t}let g=null;function X(t){g=t}let V=null;function Ur(t){V=t}let T=null,q=0,Z=null;function jr(t){Z=t}let Be=1,rt=!1,I=null;function Ue(){return++Be}function Yr(){return!ye}function mt(t){var o,u;var e=t.f;if(e&W)return!0;if(e&dt){var r=t.deps,n=(e<)!==0;if(r!==null){var l;if(e&Ct){for(l=0;l<r.length;l++)((o=r[l]).reactions??(o.reactions=[])).push(t);t.f^=Ct}for(l=0;l<r.length;l++){var s=r[l];if(mt(s)&&qe(s),n&&g!==null&&!rt&&!((u=s==null?void 0:s.reactions)!=null&&u.includes(t))&&(s.reactions??(s.reactions=[])).push(t),s.version>t.version)return!0}}(!n||g!==null&&!rt)&&G(t,z)}return!1}function Gr(t,e){for(var r=e;r!==null;){if(r.f&Jt)try{r.fn(t);return}catch{r.f^=Jt}r=r.parent}throw Mt=!1,t}function Kr(t){return(t.f&st)===0&&(t.parent===null||(t.parent.f&Jt)===0)}function Ft(t,e,r,n){if(Mt){if(r===null&&(Mt=!1),Kr(e))throw t;return}r!==null&&(Mt=!0);{Gr(t,e);return}}function je(t){var c;var e=T,r=q,n=Z,l=w,s=rt,o=V,u=I,a=t.f;T=null,q=0,Z=null,w=a&(F|nt)?null:t,rt=!it&&(a<)!==0,V=null,I=t.ctx;try{var f=(0,t.fn)(),h=t.deps;if(T!==null){var i;if(xt(t,q),h!==null&&q>0)for(h.length=q+T.length,i=0;i<T.length;i++)h[q+i]=T[i];else t.deps=h=T;if(!rt)for(i=q;i<h.length;i++)((c=h[i]).reactions??(c.reactions=[])).push(t)}else h!==null&&q<h.length&&(xt(t,q),h.length=q);return f}finally{T=e,q=r,Z=n,w=l,rt=s,V=o,I=u}}function Wr(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&D&&(T===null||!T.includes(e))&&(G(e,dt),e.f&(lt|Ct)||(e.f^=Ct),xt(e,0))}function xt(t,e){var r=t.deps;if(r!==null)for(var n=e;n<r.length;n++)Wr(t,r[n])}function Pt(t){var e=t.f;if(!(e&st)){G(t,z);var r=g,n=I;g=t;try{e&Wt?Pr(t):Ie(t),De(t),Re(t);var l=je(t);t.teardown=typeof l=="function"?l:null,t.version=Be}catch(s){Ft(s,t,r,n||t.ctx)}finally{g=r}}}function Ye(){if(ut>1e3){ut=0;try{Tr()}catch(t){if($t!==null)Ft(t,$t,null);else throw t}}ut++}function Ge(t){var e=t.length;if(e!==0){Ye();var r=it;it=!0;try{for(var n=0;n<e;n++){var l=t[n];l.f&z||(l.f^=z);var s=[];Ke(l,s),Jr(s)}}finally{it=r}}}function Jr(t){var e=t.length;if(e!==0)for(var r=0;r<e;r++){var n=t[r];if(!(n.f&(st|P)))try{mt(n)&&(Pt(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null?Me(n):n.fn=null))}catch(l){Ft(l,n,null,n.ctx)}}}function Xr(){if(bt=!1,ut>1001)return;const t=et;et=[],Ge(t),bt||(ut=0,$t=null)}function Ht(t){Lt===He&&(bt||(bt=!0,queueMicrotask(Xr))),$t=t;for(var e=t;e.parent!==null;){e=e.parent;var r=e.f;if(r&(nt|F)){if(!(r&z))return;e.f^=z}}et.push(e)}function Ke(t,e){var r=t.first,n=[];t:for(;r!==null;){var l=r.f,s=(l&F)!==0,o=s&&(l&z)!==0,u=r.next;if(!o&&!(l&P))if(l&St){if(s)r.f^=z;else try{mt(r)&&Pt(r)}catch(i){Ft(i,r,null,r.ctx)}var a=r.first;if(a!==null){r=a;continue}}else l&be&&n.push(r);if(u===null){let i=r.parent;for(;i!==null;){if(t===i)break t;var f=i.next;if(f!==null){r=f;continue t}i=i.parent}}r=u}for(var h=0;h<n.length;h++)a=n[h],e.push(a),Ke(a,e)}function O(t){var e=Lt,r=et;try{Ye();const l=[];Lt=Br,et=l,bt=!1,Ge(r);var n=t==null?void 0:t();return Vr(),(et.length>0||l.length>0)&&O(),ut=0,$t=null,n}finally{Lt=e,et=r}}function M(t){var h;var e=t.f,r=(e&D)!==0;if(r&&e&st){var n=ze(t);return re(t),n}if(w!==null){V!==null&&V.includes(t)&&Nr();var l=w.deps;T===null&&l!==null&&l[q]===t?q++:T===null?T=[t]:T.push(t),Z!==null&&g!==null&&g.f&z&&!(g.f&F)&&Z.includes(t)&&(G(g,W),Ht(g))}else if(r&&t.deps===null)for(var s=t,o=s.parent,u=s;o!==null;)if(o.f&D){var a=o;u=a,o=a.parent}else{var f=o;(h=f.deriveds)!=null&&h.includes(u)||(f.deriveds??(f.deriveds=[])).push(u);break}return r&&(s=t,mt(s)&&qe(s)),t.v}function Zr(t){const e=w;try{return w=null,t()}finally{w=e}}const Qr=~(W|dt|z);function G(t,e){t.f=t.f&Qr|e}function oe(t,e=!1,r){I={p:I,c:null,e:null,m:!1,s:t,x:null,l:null}}function ie(t){const e=I;if(e!==null){t!==void 0&&(e.x=t);const o=e.e;if(o!==null){var r=g,n=w;e.e=null;try{for(var l=0;l<o.length;l++){var s=o[l];X(s.effect),at(s.reaction),Lr(s.fn)}}finally{X(r),at(n)}}I=e.p,e.m=!0}return t||{}}const We=new Set,ue=new Set;function Je(t){for(var e=0;e<t.length;e++)We.add(t[e]);for(var r of ue)r(t)}function Vt(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,u=t.__root;if(u){var a=l.indexOf(u);if(a!==-1&&(e===document||e===window)){t.__root=e;return}var f=l.indexOf(e);if(f===-1)return;a<=f&&(o=a)}if(s=l[o]||t.target,s!==e){Et(t,"currentTarget",{configurable:!0,get(){return s||r}});var h=w,i=g;at(null),X(null);try{for(var c,v=[];s!==null;){var d=s.assignedSlot||s.parentNode||s.host||null;try{var _=s["__"+n];if(_!==void 0&&!s.disabled)if(ge(_)){var[S,...C]=_;S.apply(s,[t,...C])}else _.call(s,t)}catch(x){c?v.push(x):c=x}if(t.cancelBubble||d===e||d===null)break;s=d}if(c){for(let x of v)queueMicrotask(()=>{throw x});throw c}}finally{t.__root=e,delete t.currentTarget,at(h),X(i)}}}function tn(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function Bt(t,e){var r=g;r.nodes_start===null&&(r.nodes_start=t,r.nodes_end=e)}function yt(t,e){var r=(e&vr)!==0,n=(e&hr)!==0,l,s=!t.startsWith("<!>");return()=>{if(m)return Bt(y,null),y;l===void 0&&(l=tn(s?t:"<!>"+t),r||(l=tt(l)));var o=n?document.importNode(l,!0):l.cloneNode(!0);if(r){var u=tt(o),a=o.lastChild;Bt(u,a)}else Bt(o,o);return o}}function ct(t,e){if(m){g.nodes_end=y,_t();return}t!==null&&t.before(e)}function en(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 Xe(t,e){return Ze(t,e)}function rn(t,e){ee(),e.intro=e.intro??!1;const r=e.target,n=m,l=y;try{for(var s=tt(r);s&&(s.nodeType!==8||s.data!==_e);)s=J(s);if(!s)throw ht;j(!0),H(s),_t();const o=Ze(t,{...e,anchor:s});if(y===null||y.nodeType!==8||y.data!==Gt)throw Qt(),ht;return j(!1),o}catch(o){if(o===ht)return e.recover===!1&&Sr(),ee(),Ne(r),j(!1),Xe(t,e);throw o}finally{j(n),H(l)}}const ft=new Map;function Ze(t,{target:e,anchor:r,props:n={},events:l,context:s,intro:o=!0}){ee();var u=new Set,a=i=>{for(var c=0;c<i.length;c++){var v=i[c];if(!u.has(v)){u.add(v);var d=pr(v);e.addEventListener(v,Vt,{passive:d});var _=ft.get(v);_===void 0?(document.addEventListener(v,Vt,{passive:d}),ft.set(v,1)):ft.set(v,_+1)}}};a(Kt(We)),ue.add(a);var f=void 0,h=Mr(()=>{var i=r??e.appendChild(zt());return gt(()=>{if(s){oe({});var c=I;c.c=s}l&&(n.$$events=l),m&&Bt(i,null),f=t(i,n)||{},m&&(g.nodes_end=y),s&&ie()}),()=>{var d;for(var c of u){e.removeEventListener(c,Vt);var v=ft.get(c);--v===0?(document.removeEventListener(c,Vt),ft.delete(c)):ft.set(c,v)}ue.delete(a),i!==r&&((d=i.parentNode)==null||d.removeChild(i))}});return ae.set(f,h),f}let ae=new WeakMap;function nn(t,e){const r=ae.get(t);return r?(ae.delete(t),r(e)):Promise.resolve()}function Qe(t,e,r=!1){m&&_t();var n=t,l=null,s=null,o=dr,u=r?Xt:0,a=!1;const f=(i,c=!0)=>{a=!0,h(c,i)},h=(i,c)=>{if(o===(o=i))return;let v=!1;if(m){const d=n.data===Yt;!!o===d&&(n=te(),H(n),j(!1),v=!0)}o?(l?Dt(l):c&&(l=gt(()=>c(n))),s&&Rt(s,()=>{s=null})):(s?Dt(s):c&&(s=gt(()=>c(n))),l&&Rt(l,()=>{l=null})),v&&j(!0)};ne(()=>{a=!1,e(f),a||h(null,null)},u),m&&(n=y)}function ln(t,e){return e}function sn(t,e,r,n){for(var l=[],s=e.length,o=0;o<s;o++)le(e[o].e,l,!0);var u=s>0&&l.length===0&&r!==null;if(u){var a=r.parentNode;Ne(a),a.append(r),n.clear(),Q(t,e[0].prev,e[s-1].next)}Le(l,()=>{for(var f=0;f<s;f++){var h=e[f];u||(n.delete(h.k),Q(t,h.prev,h.next)),Y(h.e,!u)}})}function on(t,e,r,n,l,s=null){var o=t,u={flags:e,items:new Map,first:null};{var a=t;o=m?H(tt(a)):a.appendChild(zt())}m&&_t();var f=null,h=!1;ne(()=>{var i=r(),c=ge(i)?i:i==null?[]:Kt(i),v=c.length;if(h&&v===0)return;h=v===0;let d=!1;if(m){var _=o.data===Yt;_!==(v===0)&&(o=te(),H(o),j(!1),d=!0)}if(m){for(var S=null,C,p=0;p<v;p++){if(y.nodeType===8&&y.data===Gt){o=y,d=!0,j(!1);break}var x=c[p],U=n(x,p);C=tr(y,u,S,null,x,U,p,l,e),u.items.set(U,C),S=C}v>0&&H(te())}if(!m){var k=w;un(c,u,o,l,e,(k.f&P)!==0,n)}s!==null&&(v===0?f?Dt(f):f=gt(()=>s(o)):f!==null&&Rt(f,()=>{f=null})),d&&j(!0)}),m&&(o=y)}function un(t,e,r,n,l,s,o,u){var a=t.length,f=e.items,h=e.first,i=h,c,v=null,d=[],_=[],S,C,p,x;for(x=0;x<a;x+=1){if(S=t[x],C=o(S,x),p=f.get(C),p===void 0){var U=i?i.e.nodes_start:r;v=tr(U,e,v,v===null?e.first:v.next,S,C,x,n,l),f.set(C,v),d=[],_=[],i=v.next;continue}if(an(p,S,x),p.e.f&P&&Dt(p.e),p!==i){if(c!==void 0&&c.has(p)){if(d.length<_.length){var k=_[0],N;v=k.prev;var vt=d[0],fe=d[d.length-1];for(N=0;N<d.length;N+=1)er(d[N],k,r);for(N=0;N<_.length;N+=1)c.delete(_[N]);Q(e,vt.prev,fe.next),Q(e,v,vt),Q(e,fe,k),i=k,v=fe,x-=1,d=[],_=[]}else c.delete(p),er(p,i,r),Q(e,p.prev,p.next),Q(e,p,v===null?e.first:v.next),Q(e,v,p),v=p;continue}for(d=[],_=[];i!==null&&i.k!==C;)(s||!(i.e.f&P))&&(c??(c=new Set)).add(i),_.push(i),i=i.next;if(i===null)continue;p=i}d.push(p),v=p,i=p.next}if(i!==null||c!==void 0){for(var ve=c===void 0?[]:Kt(c);i!==null;)(s||!(i.e.f&P))&&ve.push(i),i=i.next;var Cn=ve.length;if(Cn>0){var Nn=a===0?r:null;sn(e,ve,Nn,f)}}g.first=e.first&&e.first.e,g.last=v&&v.e}function an(t,e,r,n){we(t.v,e),t.i=r}function tr(t,e,r,n,l,s,o,u,a,f){var h=(a&E)!==0,i=(a&cr)===0,c=h?i?Zt(l):Nt(l):l,v=a&wt?Nt(o):o,d={i:v,v:c,k:s,a:null,e:null,prev:r,next:n};try{return d.e=gt(()=>u(t,c,v),m),d.e.prev=r&&r.e,d.e.next=n&&n.e,r===null?e.first=d:(r.next=d,r.e.next=d.e),n!==null&&(n.prev=d,n.e.prev=d.e),d}finally{}}function er(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=J(s);l.before(s),s=o}}function Q(t,e,r){e===null?t.first=r:(e.next=r,e.e.next=r&&r.e),r!==null&&(r.prev=e,r.e.prev=e&&e.e)}function cn(t,e,r,n,l){var u;m&&_t();var s=(u=e.$$slots)==null?void 0:u[r],o=!1;s===!0&&(s=e.children,o=!0),s===void 0?l!==null&&l(t):s(t,o?()=>n:n)}function rr(t,e){Hr(()=>{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 Ut(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[wr]=r),r==null?t.removeAttribute(e):typeof r!="string"&&fn(t).includes(e)?t[e]=r:t.setAttribute(e,r))}var nr=new Map;function fn(t){var e=nr.get(t.nodeName);if(e)return e;nr.set(t.nodeName,e=[]);for(var r,n=t,l=Element.prototype;l!==n;){r=gr(n);for(var s in r)r[s].set&&e.push(s);n=br(n)}return e}function lr(t,e){var r=t.__className,n=vn(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 vn(t){return t??""}function hn(t){for(var e=g,r=g;e!==null&&!(e.f&(F|nt));)e=e.parent;try{return X(e),t()}finally{X(r)}}function B(t,e,r,n){var U;var l=!ye,s=(r&fr)!==0,o=!1,u;u=t[e];var a=yr in t||me in t,f=((U=Tt(t,e))==null?void 0:U.set)??(a&&s&&e in t?k=>t[e]=k:void 0),h=n,i=!0,c=!1,v=()=>(c=!0,i&&(i=!1,h=n),h);u===void 0&&n!==void 0&&(f&&l&&Cr(),u=v(),f&&f(u));var d;if(d=()=>{var k=t[e];return k===void 0?v():(i=!0,c=!1,k)},f){var _=t.$$legacy;return function(k,N){return arguments.length>0?((!N||_||o)&&f(N?d():k),k):d()}}var S=!1,C=!1,p=Zt(u),x=hn(()=>Or(()=>{var k=d(),N=M(p);return S?(S=!1,C=!0,N):(C=!1,p.v=k)}));return function(k,N){if(arguments.length>0){const vt=N?M(x):k;return x.equals(vt)||(S=!0,At(p,vt),c&&h!==void 0&&(h=vt),Zr(()=>M(x))),k}return M(x)}}function dn(t){return new _n(t)}class _n{constructor(e){he(this,K);he(this,R);var s;var r=new Map,n=(o,u)=>{var a=Zt(u);return r.set(o,a),a};const l=new Proxy({...e.props||{},$$events:{}},{get(o,u){return M(r.get(u)??n(u,Reflect.get(o,u)))},has(o,u){return u===me?!0:(M(r.get(u)??n(u,Reflect.get(o,u))),Reflect.has(o,u))},set(o,u,a){return At(r.get(u)??n(u,a),a),Reflect.set(o,u,a)}});de(this,R,(e.hydrate?rn:Xe)(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)&&O(),de(this,K,l.$$events);for(const o of Object.keys(A(this,R)))o==="$set"||o==="$destroy"||o==="$on"||Et(this,o,{get(){return A(this,R)[o]},set(u){A(this,R)[o]=u},enumerable:!0});A(this,R).$set=o=>{Object.assign(l,o)},A(this,R).$destroy=()=>{nn(A(this,R))}}$set(e){A(this,R).$set(e)}$on(e,r){A(this,K)[e]=A(this,K)[e]||[];const n=(...l)=>r.call(this,...l);return A(this,K)[e].push(n),()=>{A(this,K)[e]=A(this,K)[e].filter(l=>l!==n)}}$destroy(){A(this,R).$destroy()}}K=new WeakMap,R=new WeakMap;let sr;typeof HTMLElement=="function"&&(sr=class extends HTMLElement{constructor(e,r,n){super();L(this,"$$ctor");L(this,"$$s");L(this,"$$c");L(this,"$$cn",!1);L(this,"$$d",{});L(this,"$$r",!1);L(this,"$$p_d",{});L(this,"$$l",{});L(this,"$$l_u",new Map);L(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),ct(s,o)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=pn(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=dn({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=Ir(()=>{Fr(()=>{var l;this.$$r=!0;for(const s of kt(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 kt(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 pn(t){const e={};return t.childNodes.forEach(r=>{e[r.slot||"default"]=!0}),e}function or(t,e,r,n,l,s){let o=class extends sr{constructor(){super(t,r,l),this.$$p_d=e}static get observedAttributes(){return kt(e).map(u=>(e[u].attribute||u).toLowerCase())}};return kt(e).forEach(u=>{Et(o.prototype,u,{get(){return this.$$c&&u in this.$$c?this.$$c[u]:this.$$d[u]},set(a){var i;a=jt(u,a,e),this.$$d[u]=a;var f=this.$$c;if(f){var h=(i=Tt(f,u))==null?void 0:i.get;h?f[u]=a:f.$set({[u]:a})}}})}),n.forEach(u=>{Et(o.prototype,u,{get(){var a;return(a=this.$$c)==null?void 0:a[u]}})}),t.element=o,o}const gn=[{name:"nostter",url:"https://nostter.app/post?content={text}&url={url}&title={title}",icon:"https://nostter.app/favicon.ico"},{name:"lumilumi",url:"https://lumilumi.vercel.app/post?url={url}&text={text}&title={title}",icon:"https://lumilumi.vercel.app/favicon.ico"}];var bn=t=>t.stopPropagation(),$n=(t,e,r)=>e(M(r).url),mn=yt('<button class="item svelte-13vsz3z"><img> </button>'),xn=yt('<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 yn={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 Dn=Object.defineProperty;var cr=b=>{throw TypeError(b)};var In=(b,m,S)=>m in b?Dn(b,m,{enumerable:!0,configurable:!0,writable:!0,value:S}):b[m]=S;var F=(b,m,S)=>In(b,typeof m!="symbol"?m+"":m,S),fr=(b,m,S)=>m.has(b)||cr("Cannot "+S);var z=(b,m,S)=>(fr(b,m,"read from private field"),S?S.call(b):m.get(b)),be=(b,m,S)=>m.has(b)?cr("Cannot add the same private member more than once"):m instanceof WeakSet?m.add(b):m.set(b,S),me=(b,m,S,kt)=>(fr(b,m,"write to private field"),kt?kt.call(b,S):m.set(b,S),S);var K,D;const m="5";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(m);const S=1,kt=2,vr=16,dr=8,hr=1,_r=2,$e="[",Wt="[!",Jt="]",ht={},pr=Symbol(),gr=["touchstart","touchmove"];function br(t){return gr.includes(t)}const xe=!1;var ye=Array.isArray,Xt=Array.from,St=Object.keys,Tt=Object.defineProperty,Ct=Object.getOwnPropertyDescriptor,mr=Object.getOwnPropertyDescriptors,$r=Object.getPrototypeOf;function xr(t){for(var e=0;e<t.length;e++)t[e]()}const I=2,we=4,Nt=8,Zt=16,P=32,st=64,Qt=128,ot=256,zt=512,A=1024,X=2048,_t=4096,q=8192,it=16384,yr=32768,te=65536,wr=1<<19,Ee=1<<20,Er=Symbol("$state"),ke=Symbol("legacy props"),kr=Symbol("");function Se(t){return t===this.v}function Sr(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Tr(t){return!Sr(t,this.v)}function Cr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Nr(){throw new Error("https://svelte.dev/e/hydration_failed")}function zr(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function Ar(){throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function Or(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let Te=!1;function At(t,e){var r={f:0,v:t,reactions:null,equals:Se,version:0};return r}function Rr(t){return Dr(At(t))}function ee(t,e=!1){const r=At(t);return e||(r.equals=Tr),r}function Dr(t){return w!==null&&w.f&I&&(V===null?Yr([t]):V.push(t)),t}function Ot(t,e){return w!==null&&Kr()&&w.f&(I|Zt)&&(V===null||!V.includes(t))&&Or(),Ce(t,e)}function Ce(t,e){return t.equals(e)||(t.v=e,t.version=Ke(),Ne(t,X),g!==null&&g.f&A&&!(g.f&P)&&(C!==null&&C.includes(t)?(G(g,X),Bt(g)):tt===null?Gr([t]):tt.push(t))),e}function Ne(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||(G(s,e),o&(A|ot)&&(o&I?Ne(s,_t):Bt(s)))}}function re(t){console.warn("https://svelte.dev/e/hydration_mismatch")}let $=!1;function B(t){$=t}let y;function H(t){if(t===null)throw re(),ht;return y=t}function pt(){return H(Z(y))}function gt(t){if($){if(Z(y)!==null)throw re(),ht;y=t}}function ne(){for(var t=0,e=y;;){if(e.nodeType===8){var r=e.data;if(r===Jt){if(t===0)return e;t-=1}else(r===$e||r===Wt)&&(t+=1)}var n=Z(e);e.remove(),e=n}}var ze,Ae,Oe;function le(){if(ze===void 0){ze=window;var t=Element.prototype,e=Node.prototype;Ae=Ct(e,"firstChild").get,Oe=Ct(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 Rt(t=""){return document.createTextNode(t)}function U(t){return Ae.call(t)}function Z(t){return Oe.call(t)}function Dt(t,e){if(!$)return U(t);var r=U(y);return r===null&&(r=y.appendChild(Rt())),H(r),r}function Re(t,e){if(!$){var r=U(t);return r instanceof Comment&&r.data===""?Z(r):r}return y}function It(t,e=1,r=!1){let n=$?y: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=Rt();return n===null?l==null||l.after(o):n.before(o),H(o),o}return H(n),n}function De(t){t.textContent=""}function Ir(t){var e=I|X;g===null?e|=ot:g.f|=Ee;var r=w!==null&&w.f&I?w:null;const n={children:null,ctx:M,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 Ie(t){var e=t.children;if(e!==null){t.children=null;for(var r=0;r<e.length;r+=1){var n=e[r];n.f&I?se(n):Y(n)}}}function Mr(t){for(var e=t.parent;e!==null;){if(!(e.f&I))return e;e=e.parent}return null}function Me(t){var e,r=g;Q(Mr(t));try{Ie(t),e=We(t)}finally{Q(r)}return e}function je(t){var e=Me(t),r=(nt||t.f&ot)&&t.deps!==null?_t:A;G(t,r),t.equals(e)||(t.v=e,t.version=Ke())}function se(t){Ie(t),yt(t,0),G(t,it),t.v=t.children=t.deps=t.ctx=t.reactions=null}function jr(t,e){var r=e.last;r===null?e.last=e.first=t:(r.next=t,t.prev=r,e.last=t)}function ut(t,e,r,n=!0){var l=(t&st)!==0,s=g,o={ctx:M,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=at;try{Ye(!0),Vt(o),o.f|=yr}catch(d){throw Y(o),d}finally{Ye(i)}}else e!==null&&Bt(o);var a=r&&o.deps===null&&o.first===null&&o.nodes_start===null&&o.teardown===null&&(o.f&Ee)===0;if(!a&&!l&&n&&(s!==null&&jr(o,s),w!==null&&w.f&I)){var f=w;(f.children??(f.children=[])).push(o)}return o}function Lr(t){const e=ut(st,t,!0);return()=>{Y(e)}}function Fr(t){const e=ut(st,t,!0);return(r={})=>new Promise(n=>{r.outro?jt(e,()=>{Y(e),n(void 0)}):(Y(e),n(void 0))})}function Pr(t){return ut(we,t,!1)}function qr(t){return ut(Nt,t,!0)}function Mt(t){return oe(t)}function oe(t,e=0){return ut(Nt|Zt|e,t,!0)}function bt(t,e=!0){return ut(Nt|P,t,!0,e)}function Le(t){var e=t.teardown;if(e!==null){const r=w;ft(null);try{e.call(null)}finally{ft(r)}}}function Fe(t){var e=t.deriveds;if(e!==null){t.deriveds=null;for(var r=0;r<e.length;r+=1)se(e[r])}}function Pe(t,e=!1){var r=t.first;for(t.first=t.last=null;r!==null;){var n=r.next;Y(r,e),r=n}}function Hr(t){for(var e=t.first;e!==null;){var r=e.next;e.f&P||Y(e),e=r}}function Y(t,e=!0){var r=!1;if((e||t.f&wr)&&t.nodes_start!==null){for(var n=t.nodes_start,l=t.nodes_end;n!==null;){var s=n===l?null:Z(n);n.remove(),n=s}r=!0}Pe(t,e&&!r),Fe(t),yt(t,0),G(t,it);var o=t.transitions;if(o!==null)for(const a of o)a.stop();Le(t);var i=t.parent;i!==null&&i.first!==null&&qe(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function qe(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 jt(t,e){var r=[];ie(t,r,!0),He(r,()=>{Y(t),e&&e()})}function He(t,e){var r=t.length;if(r>0){var n=()=>--r||e();for(var l of t)l.out(n)}else e()}function ie(t,e,r){if(!(t.f&q)){if(t.f^=q,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&te)!==0||(n.f&P)!==0;ie(n,e,s?r:!1),n=l}}}function Lt(t){Ve(t,!0)}function Ve(t,e){if(t.f&q){xt(t)&&Vt(t),t.f^=q;for(var r=t.first;r!==null;){var n=r.next,l=(r.f&te)!==0||(r.f&P)!==0;Ve(r,l?e:!1),r=n}if(t.transitions!==null)for(const s of t.transitions)(s.is_global||e)&&s.in()}}let Ft=!1,ue=[];function Be(){Ft=!1;const t=ue.slice();ue=[],xr(t)}function Vr(t){Ft||(Ft=!0,queueMicrotask(Be)),ue.push(t)}function Br(){Ft&&Be()}const Ue=0,Ur=1;let Pt=!1,qt=Ue,mt=!1,$t=null,at=!1;function Ye(t){at=t}let rt=[],ct=0,Mn=[],w=null;function ft(t){w=t}let g=null;function Q(t){g=t}let V=null;function Yr(t){V=t}let C=null,O=0,tt=null;function Gr(t){tt=t}let Ge=1,nt=!1,M=null;function Ke(){return++Ge}function Kr(){return!Te}function xt(t){var o,i;var e=t.f;if(e&X)return!0;if(e&_t){var r=t.deps,n=(e&ot)!==0;if(r!==null){var l;if(e&zt){for(l=0;l<r.length;l++)((o=r[l]).reactions??(o.reactions=[])).push(t);t.f^=zt}for(l=0;l<r.length;l++){var s=r[l];if(xt(s)&&je(s),n&&g!==null&&!nt&&!((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&&!nt)&&G(t,A)}return!1}function Wr(t,e){for(var r=e;r!==null;){if(r.f&Qt)try{r.fn(t);return}catch{r.f^=Qt}r=r.parent}throw Pt=!1,t}function Jr(t){return(t.f&it)===0&&(t.parent===null||(t.parent.f&Qt)===0)}function Ht(t,e,r,n){if(Pt){if(r===null&&(Pt=!1),Jr(e))throw t;return}r!==null&&(Pt=!0);{Wr(t,e);return}}function We(t){var c;var e=C,r=O,n=tt,l=w,s=nt,o=V,i=M,a=t.f;C=null,O=0,tt=null,w=a&(P|st)?null:t,nt=!at&&(a&ot)!==0,V=null,M=t.ctx;try{var f=(0,t.fn)(),d=t.deps;if(C!==null){var u;if(yt(t,O),d!==null&&O>0)for(d.length=O+C.length,u=0;u<C.length;u++)d[O+u]=C[u];else t.deps=d=C;if(!nt)for(u=O;u<d.length;u++)((c=d[u]).reactions??(c.reactions=[])).push(t)}else d!==null&&O<d.length&&(yt(t,O),d.length=O);return f}finally{C=e,O=r,tt=n,w=l,nt=s,V=o,M=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&I&&(C===null||!C.includes(e))&&(G(e,_t),e.f&(ot|zt)||(e.f^=zt),yt(e,0))}function yt(t,e){var r=t.deps;if(r!==null)for(var n=e;n<r.length;n++)Xr(t,r[n])}function Vt(t){var e=t.f;if(!(e&it)){G(t,A);var r=g,n=M;g=t;try{e&Zt?Hr(t):Pe(t),Fe(t),Le(t);var l=We(t);t.teardown=typeof l=="function"?l:null,t.version=Ge}catch(s){Ht(s,t,r,n||t.ctx)}finally{g=r}}}function Je(){if(ct>1e3){ct=0;try{Cr()}catch(t){if($t!==null)Ht(t,$t,null);else throw t}}ct++}function Xe(t){var e=t.length;if(e!==0){Je();var r=at;at=!0;try{for(var n=0;n<e;n++){var l=t[n];l.f&A||(l.f^=A);var s=[];Ze(l,s),Zr(s)}}finally{at=r}}}function Zr(t){var e=t.length;if(e!==0)for(var r=0;r<e;r++){var n=t[r];if(!(n.f&(it|q)))try{xt(n)&&(Vt(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null?qe(n):n.fn=null))}catch(l){Ht(l,n,null,n.ctx)}}}function Qr(){if(mt=!1,ct>1001)return;const t=rt;rt=[],Xe(t),mt||(ct=0,$t=null)}function Bt(t){qt===Ue&&(mt||(mt=!0,queueMicrotask(Qr))),$t=t;for(var e=t;e.parent!==null;){e=e.parent;var r=e.f;if(r&(st|P)){if(!(r&A))return;e.f^=A}}rt.push(e)}function Ze(t,e){var r=t.first,n=[];t:for(;r!==null;){var l=r.f,s=(l&P)!==0,o=s&&(l&A)!==0,i=r.next;if(!o&&!(l&q))if(l&Nt){if(s)r.f^=A;else try{xt(r)&&Vt(r)}catch(u){Ht(u,r,null,r.ctx)}var a=r.first;if(a!==null){r=a;continue}}else l&we&&n.push(r);if(i===null){let u=r.parent;for(;u!==null;){if(t===u)break t;var f=u.next;if(f!==null){r=f;continue t}u=u.parent}}r=i}for(var d=0;d<n.length;d++)a=n[d],e.push(a),Ze(a,e)}function R(t){var e=qt,r=rt;try{Je();const l=[];qt=Ur,rt=l,mt=!1,Xe(r);var n=t==null?void 0:t();return Br(),(rt.length>0||l.length>0)&&R(),ct=0,$t=null,n}finally{qt=e,rt=r}}function j(t){var d;var e=t.f,r=(e&I)!==0;if(r&&e&it){var n=Me(t);return se(t),n}if(w!==null){V!==null&&V.includes(t)&&Ar();var l=w.deps;C===null&&l!==null&&l[O]===t?O++:C===null?C=[t]:C.push(t),tt!==null&&g!==null&&g.f&A&&!(g.f&P)&&tt.includes(t)&&(G(g,X),Bt(g))}else if(r&&t.deps===null)for(var s=t,o=s.parent,i=s;o!==null;)if(o.f&I){var a=o;i=a,o=a.parent}else{var f=o;(d=f.deriveds)!=null&&d.includes(i)||(f.deriveds??(f.deriveds=[])).push(i);break}return r&&(s=t,xt(s)&&je(s)),t.v}function tn(t){const e=w;try{return w=null,t()}finally{w=e}}const en=~(X|_t|A);function G(t,e){t.f=t.f&en|e}function Ut(t,e=!1,r){M={p:M,c:null,e:null,m:!1,s:t,x:null,l:null}}function Yt(t){const e=M;if(e!==null){t!==void 0&&(e.x=t);const o=e.e;if(o!==null){var r=g,n=w;e.e=null;try{for(var l=0;l<o.length;l++){var s=o[l];Q(s.effect),ft(s.reaction),Pr(s.fn)}}finally{Q(r),ft(n)}}M=e.p,e.m=!0}return t||{}}const Qe=new Set,ae=new Set;function tr(t){for(var e=0;e<t.length;e++)Qe.add(t[e]);for(var r of ae)r(t)}function Gt(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 a=l.indexOf(i);if(a!==-1&&(e===document||e===window)){t.__root=e;return}var f=l.indexOf(e);if(f===-1)return;a<=f&&(o=a)}if(s=l[o]||t.target,s!==e){Tt(t,"currentTarget",{configurable:!0,get(){return s||r}});var d=w,u=g;ft(null),Q(null);try{for(var c,v=[];s!==null;){var h=s.assignedSlot||s.parentNode||s.host||null;try{var _=s["__"+n];if(_!==void 0&&!s.disabled)if(ye(_)){var[N,...T]=_;N.apply(s,[t,...T])}else _.call(s,t)}catch(E){c?v.push(E):c=E}if(t.cancelBubble||h===e||h===null)break;s=h}if(c){for(let E of v)queueMicrotask(()=>{throw E});throw c}}finally{t.__root=e,delete t.currentTarget,ft(d),Q(u)}}}function er(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function vt(t,e){var r=g;r.nodes_start===null&&(r.nodes_start=t,r.nodes_end=e)}function wt(t,e){var r=(e&hr)!==0,n=(e&_r)!==0,l,s=!t.startsWith("<!>");return()=>{if($)return vt(y,null),y;l===void 0&&(l=er(s?t:"<!>"+t),r||(l=U(l)));var o=n?document.importNode(l,!0):l.cloneNode(!0);if(r){var i=U(o),a=o.lastChild;vt(i,a)}else vt(o,o);return o}}function rn(t,e,r="svg"){var n=!t.startsWith("<!>"),l=`<${r}>${n?t:"<!>"+t}</${r}>`,s;return()=>{if($)return vt(y,null),y;if(!s){var o=er(l),i=U(o);s=U(i)}var a=s.cloneNode(!0);return vt(a,a),a}}function lt(t,e){if($){g.nodes_end=y,pt();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 rr(t,e){return nr(t,e)}function ln(t,e){le(),e.intro=e.intro??!1;const r=e.target,n=$,l=y;try{for(var s=U(r);s&&(s.nodeType!==8||s.data!==$e);)s=Z(s);if(!s)throw ht;B(!0),H(s),pt();const o=nr(t,{...e,anchor:s});if(y===null||y.nodeType!==8||y.data!==Jt)throw re(),ht;return B(!1),o}catch(o){if(o===ht)return e.recover===!1&&Nr(),le(),De(r),B(!1),rr(t,e);throw o}finally{B(n),H(l)}}const dt=new Map;function nr(t,{target:e,anchor:r,props:n={},events:l,context:s,intro:o=!0}){le();var i=new Set,a=u=>{for(var c=0;c<u.length;c++){var v=u[c];if(!i.has(v)){i.add(v);var h=br(v);e.addEventListener(v,Gt,{passive:h});var _=dt.get(v);_===void 0?(document.addEventListener(v,Gt,{passive:h}),dt.set(v,1)):dt.set(v,_+1)}}};a(Xt(Qe)),ae.add(a);var f=void 0,d=Fr(()=>{var u=r??e.appendChild(Rt());return bt(()=>{if(s){Ut({});var c=M;c.c=s}l&&(n.$$events=l),$&&vt(u,null),f=t(u,n)||{},$&&(g.nodes_end=y),s&&Yt()}),()=>{var h;for(var c of i){e.removeEventListener(c,Gt);var v=dt.get(c);--v===0?(document.removeEventListener(c,Gt),dt.delete(c)):dt.set(c,v)}ae.delete(a),u!==r&&((h=u.parentNode)==null||h.removeChild(u))}});return ce.set(f,d),f}let ce=new WeakMap;function sn(t,e){const r=ce.get(t);return r?(ce.delete(t),r(e)):Promise.resolve()}function fe(t,e,r=!1){$&&pt();var n=t,l=null,s=null,o=pr,i=r?te:0,a=!1;const f=(u,c=!0)=>{a=!0,d(c,u)},d=(u,c)=>{if(o===(o=u))return;let v=!1;if($){const h=n.data===Wt;!!o===h&&(n=ne(),H(n),B(!1),v=!0)}o?(l?Lt(l):c&&(l=bt(()=>c(n))),s&&jt(s,()=>{s=null})):(s?Lt(s):c&&(s=bt(()=>c(n))),l&&jt(l,()=>{l=null})),v&&B(!0)};oe(()=>{a=!1,e(f),a||d(null,null)},i),$&&(n=y)}function on(t,e){return e}function un(t,e,r,n){for(var l=[],s=e.length,o=0;o<s;o++)ie(e[o].e,l,!0);var i=s>0&&l.length===0&&r!==null;if(i){var a=r.parentNode;De(a),a.append(r),n.clear(),et(t,e[0].prev,e[s-1].next)}He(l,()=>{for(var f=0;f<s;f++){var d=e[f];i||(n.delete(d.k),et(t,d.prev,d.next)),Y(d.e,!i)}})}function an(t,e,r,n,l,s=null){var o=t,i={flags:e,items:new Map,first:null};{var a=t;o=$?H(U(a)):a.appendChild(Rt())}$&&pt();var f=null,d=!1;oe(()=>{var u=r(),c=ye(u)?u:u==null?[]:Xt(u),v=c.length;if(d&&v===0)return;d=v===0;let h=!1;if($){var _=o.data===Wt;_!==(v===0)&&(o=ne(),H(o),B(!1),h=!0)}if($){for(var N=null,T,p=0;p<v;p++){if(y.nodeType===8&&y.data===Jt){o=y,h=!0,B(!1);break}var E=c[p],W=n(E,p);T=lr(y,i,N,null,E,W,p,l,e),i.items.set(W,T),N=T}v>0&&H(ne())}if(!$){var k=w;cn(c,i,o,l,e,(k.f&q)!==0,n)}s!==null&&(v===0?f?Lt(f):f=bt(()=>s(o)):f!==null&&jt(f,()=>{f=null})),h&&B(!0)}),$&&(o=y)}function cn(t,e,r,n,l,s,o,i){var a=t.length,f=e.items,d=e.first,u=d,c,v=null,h=[],_=[],N,T,p,E;for(E=0;E<a;E+=1){if(N=t[E],T=o(N,E),p=f.get(T),p===void 0){var W=u?u.e.nodes_start:r;v=lr(W,e,v,v===null?e.first:v.next,N,T,E,n,l),f.set(T,v),h=[],_=[],u=v.next;continue}if(fn(p,N,E),p.e.f&q&&Lt(p.e),p!==u){if(c!==void 0&&c.has(p)){if(h.length<_.length){var k=_[0],x;v=k.prev;var J=h[0],pe=h[h.length-1];for(x=0;x<h.length;x+=1)sr(h[x],k,r);for(x=0;x<_.length;x+=1)c.delete(_[x]);et(e,J.prev,pe.next),et(e,v,J),et(e,pe,k),u=k,v=pe,E-=1,h=[],_=[]}else c.delete(p),sr(p,u,r),et(e,p.prev,p.next),et(e,p,v===null?e.first:v.next),et(e,v,p),v=p;continue}for(h=[],_=[];u!==null&&u.k!==T;)(s||!(u.e.f&q))&&(c??(c=new Set)).add(u),_.push(u),u=u.next;if(u===null)continue;p=u}h.push(p),v=p,u=p.next}if(u!==null||c!==void 0){for(var ge=c===void 0?[]:Xt(c);u!==null;)(s||!(u.e.f&q))&&ge.push(u),u=u.next;var On=ge.length;if(On>0){var Rn=a===0?r:null;un(e,ge,Rn,f)}}g.first=e.first&&e.first.e,g.last=v&&v.e}function fn(t,e,r,n){Ce(t.v,e),t.i=r}function lr(t,e,r,n,l,s,o,i,a,f){var d=(a&S)!==0,u=(a&vr)===0,c=d?u?ee(l):At(l):l,v=a&kt?At(o):o,h={i:v,v:c,k:s,a:null,e:null,prev:r,next:n};try{return h.e=bt(()=>i(t,c,v),$),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 sr(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;$&&pt();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 ve(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 Et(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[kr]=r),r==null?t.removeAttribute(e):typeof r!="string"&&dn(t).includes(e)?t[e]=r:t.setAttribute(e,r))}var or=new Map;function dn(t){var e=or.get(t.nodeName);if(e)return e;or.set(t.nodeName,e=[]);for(var r,n=t,l=Element.prototype;l!==n;){r=mr(n);for(var s in r)r[s].set&&e.push(s);n=$r(n)}return e}function ir(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&(P|st));)e=e.parent;try{return Q(e),t()}finally{Q(r)}}function L(t,e,r,n){var W;var l=!Te,s=(r&dr)!==0,o=!1,i;i=t[e];var a=Er in t||ke in t,f=((W=Ct(t,e))==null?void 0:W.set)??(a&&s&&e in t?k=>t[e]=k:void 0),d=n,u=!0,c=!1,v=()=>(c=!0,u&&(u=!1,d=n),d);i===void 0&&n!==void 0&&(f&&l&&zr(),i=v(),f&&f(i));var h;if(h=()=>{var k=t[e];return k===void 0?v():(u=!0,c=!1,k)},f){var _=t.$$legacy;return function(k,x){return arguments.length>0?((!x||_||o)&&f(x?h():k),k):h()}}var N=!1,T=!1,p=ee(i),E=_n(()=>Ir(()=>{var k=h(),x=j(p);return N?(N=!1,T=!0,x):(T=!1,p.v=k)}));return function(k,x){if(arguments.length>0){const J=x?j(E):k;return E.equals(J)||(N=!0,Ot(p,J),c&&d!==void 0&&(d=J),tn(()=>j(E))),k}return j(E)}}function pn(t){return new gn(t)}class gn{constructor(e){be(this,K);be(this,D);var s;var r=new Map,n=(o,i)=>{var a=ee(i);return r.set(o,a),a};const l=new Proxy({...e.props||{},$$events:{}},{get(o,i){return j(r.get(i)??n(i,Reflect.get(o,i)))},has(o,i){return i===ke?!0:(j(r.get(i)??n(i,Reflect.get(o,i))),Reflect.has(o,i))},set(o,i,a){return Ot(r.get(i)??n(i,a),a),Reflect.set(o,i,a)}});me(this,D,(e.hydrate?ln:rr)(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)&&R(),me(this,K,l.$$events);for(const o of Object.keys(z(this,D)))o==="$set"||o==="$destroy"||o==="$on"||Tt(this,o,{get(){return z(this,D)[o]},set(i){z(this,D)[o]=i},enumerable:!0});z(this,D).$set=o=>{Object.assign(l,o)},z(this,D).$destroy=()=>{sn(z(this,D))}}$set(e){z(this,D).$set(e)}$on(e,r){z(this,K)[e]=z(this,K)[e]||[];const n=(...l)=>r.call(this,...l);return z(this,K)[e].push(n),()=>{z(this,K)[e]=z(this,K)[e].filter(l=>l!==n)}}$destroy(){z(this,D).$destroy()}}K=new WeakMap,D=new WeakMap;let ur;typeof HTMLElement=="function"&&(ur=class extends HTMLElement{constructor(e,r,n){super();F(this,"$$ctor");F(this,"$$s");F(this,"$$c");F(this,"$$cn",!1);F(this,"$$d",{});F(this,"$$r",!1);F(this,"$$p_d",{});F(this,"$$l",{});F(this,"$$l_u",new Map);F(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),lt(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]=Kt(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(()=>{qr(()=>{var l;this.$$r=!0;for(const s of St(this.$$c)){if(!((l=this.$$p_d[s])!=null&&l.reflect))continue;this.$$d[s]=this.$$c[s];const o=Kt(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]=Kt(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 St(this.$$p_d).find(r=>this.$$p_d[r].attribute===e||!this.$$p_d[r].attribute&&r.toLowerCase()===e)||e}});function Kt(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 de(t,e,r,n,l,s){let o=class extends ur{constructor(){super(t,r,l),this.$$p_d=e}static get observedAttributes(){return St(e).map(i=>(e[i].attribute||i).toLowerCase())}};return St(e).forEach(i=>{Tt(o.prototype,i,{get(){return this.$$c&&i in this.$$c?this.$$c[i]:this.$$d[i]},set(a){var u;a=Kt(i,a,e),this.$$d[i]=a;var f=this.$$c;if(f){var d=(u=Ct(f,i))==null?void 0:u.get;d?f[i]=a:f.$set({[i]:a})}}})}),n.forEach(i=>{Tt(o.prototype,i,{get(){var a;return(a=this.$$c)==null?void 0:a[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(j(r).url),yn=wt('<button class="item svelte-13vsz3z"><img> </button>'),wn=wt('<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
|
|
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 he(t,e){Ut(e,!0),ve(t,En);let r=L(e,"url",7,""),n=L(e,"text",7,""),l=L(e,"shareTitle",7,""),s=L(e,"handleClose",7);const o=u=>{r()===""&&n()===""&&l()===""&&(r(window.location.href),l(document.title));const c=u.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(...u){var c;(c=s())==null||c.apply(this,u)};var a=Dt(i);a.__click=[$n];var f=Dt(a);f.__click=function(...u){var c;(c=s())==null||c.apply(this,u)};var d=It(f,4);return an(d,21,()=>mn,on,(u,c)=>{var v=yn();v.__click=[xn,o,c];var h=Dt(v);Et(h,"width",24);var _=It(h);gt(v),Mt(()=>{Et(h,"src",j(c).icon),Et(h,"alt",j(c).name),nn(_,` ${j(c).name??""}`)}),lt(u,v)}),gt(d),gt(a),gt(i),lt(t,i),Yt({get url(){return r()},set url(u=""){r(u),R()},get text(){return n()},set text(u=""){n(u),R()},get shareTitle(){return l()},set shareTitle(u=""){l(u),R()},get handleClose(){return s()},set handleClose(u){s(u),R()}})}tr(["click"]),customElements.define("nostr-share-dialog",de(he,{url:{},text:{},shareTitle:{},handleClose:{}},[],[],!0));var kn=rn(`<svg class="nostr-icon svelte-k84is3" 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-k84is3" 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-
|
|
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-k84is3" cx="137.9" cy="99" r="12.1"></circle><path class="st1 svelte-k84is3" 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-
|
|
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-k84is3" 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,20 @@
|
|
|
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
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
s-5.4,12.1-12.1,12.1S125.7,105.8,125.7,99z"></path></g></svg>`);const Sn={hash:"svelte-k84is3",code:`
|
|
30
|
+
/* アイコン内部のSVG */.nostr-icon.svelte-k84is3 {display:flex;align-items:center;justify-content:center;}.st0.svelte-k84is3 {fill:none;}.st1.svelte-k84is3 {fill:var(--button1-bg-color);}.st2.svelte-k84is3 {fill:var(--nostr-color);}`};function _e(t,e){Ut(e,!0),ve(t,Sn);let r=L(e,"size",7,28);var n=kn();return Mt(()=>Et(n,"style",`enable-background:new 0 0 256 256; width: ${r()??""}px; height: ${r()??""}px;`)),lt(t,n),Yt({get size(){return r()},set size(l=28){r(l),R()}})}de(_e,{size:{}},[],[],!0);const Tn=(t,e)=>{Ot(e,!0)};var Cn=wt("<span>Nostr</span>"),Nn=wt("<!> <!>",1),zn=wt("<button><!></button> <!>",1);const An={hash:"svelte-1j2fuuf",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;}
|
|
32
33
|
}
|
|
33
|
-
/* ボタン全体の基本スタイル */.nostrShare-button.svelte-
|
|
34
|
-
.nostrShare-icon.svelte-
|
|
34
|
+
/* ボタン全体の基本スタイル */.nostrShare-button.svelte-1j2fuuf,
|
|
35
|
+
.nostrShare-icon.svelte-1j2fuuf,
|
|
36
|
+
.nostrShare-mini.svelte-1j2fuuf {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;}
|
|
35
37
|
|
|
36
|
-
/* ボタンスタイル */.nostrShare-button.svelte-
|
|
38
|
+
/* ボタンスタイル */.nostrShare-button.svelte-1j2fuuf {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-1j2fuuf:hover {background-color:var(--button1-hover-color); /* 少し明るいグレー */box-shadow:0 0 4px rgba(0, 0, 0, 0.1);}.nostrShare-button.svelte-1j2fuuf:active {background-color:#d1d5db; /* ダークグレー */transform:scale(0.98);}
|
|
37
39
|
|
|
38
|
-
/* テキスト用スタイル */.nostrShare-text.svelte-
|
|
40
|
+
/* テキスト用スタイル */.nostrShare-text.svelte-1j2fuuf {margin-left:8px;font-size:medium;color:var(--button2-text-color);}
|
|
39
41
|
|
|
40
|
-
/* アイコンスタイル */.nostrShare-icon.svelte-
|
|
42
|
+
/* アイコンスタイル */.nostrShare-icon.svelte-1j2fuuf {width:36px;height:36px;margin:4px;border-radius:50%;background-color:var(--button1-bg-color); /* グレー */}.nostrShare-icon.svelte-1j2fuuf:hover {background-color:var(--button1-hover-color); /* グレー */box-shadow:0 0 6px rgba(0, 0, 0, 0.1);}.nostrShare-icon.svelte-1j2fuuf:active {background-color:#d1d5db;transform:scale(0.95);}
|
|
41
43
|
|
|
42
|
-
/*
|
|
44
|
+
/* miniスタイル */.nostrShare-mini.svelte-1j2fuuf {padding:2px 6px;margin:2px;border-radius:8px;background-color:var(--button1-bg-color); /* グレー */color:var(--button2-text-color); /* ダークグレー */}.nostrShare-mini.svelte-1j2fuuf:hover {background-color:var(--button1-hover-color); /* 少し明るいグレー */box-shadow:0 0 4px rgba(0, 0, 0, 0.1);}.nostrShare-mini.svelte-1j2fuuf:active {background-color:#d1d5db; /* ダークグレー */transform:scale(0.98);}
|
|
45
|
+
/* テキスト用スタイル */.nostrShare-text-mini.svelte-1j2fuuf {margin-left:4px;font-size:small;font-weight:bold;color:var(--button2-text-color);}`};function ar(t,e){Ut(e,!0),ve(t,An);let r=L(e,"data-url",7),n=L(e,"data-text",7),l=L(e,"data-title",7),s=L(e,"data-type",7,"default"),o=L(e,"class",7),i=L(e,"style",7),a=Rr(!1);const f=()=>{Ot(a,!1)};var d=zn(),u=Re(d);u.__click=[Tn,a];var c=Dt(u);vn(c,e,"default",{},_=>{var N=Nn(),T=Re(N);{var p=x=>{_e(x,{size:24})},E=x=>{_e(x,{})};fe(T,x=>{s()==="mini"?x(p):x(E,!1)})}var W=It(T,2);{var k=x=>{var J=Cn();Mt(()=>ir(J,`${(s()==="mini"?"nostrShare-text-mini":"nostrShare-text")??""} svelte-1j2fuuf`)),lt(x,J)};fe(W,x=>{s()!=="icon"&&x(k)})}lt(_,N)}),gt(u);var v=It(u,2);{var h=_=>{he(_,{handleClose:f,get url(){return r()},get text(){return n()},get shareTitle(){return l()}})};fe(v,_=>{j(a)&&_(h)})}return Mt(()=>{ir(u,`${`${o()||(s()==="icon"?"nostrShare-icon":s()==="mini"?"nostrShare-mini":"nostrShare-button")}`??""} svelte-1j2fuuf`),Et(u,"style",i()||"")}),lt(t,d),Yt({get"data-url"(){return r()},set"data-url"(_){r(_),R()},get"data-text"(){return n()},set"data-text"(_){n(_),R()},get"data-title"(){return l()},set"data-title"(_){l(_),R()},get"data-type"(){return s()},set"data-type"(_="default"){s(_),R()},get class(){return o()},set class(_){o(_),R()},get style(){return i()},set style(_){i(_),R()}})}tr(["click"]),customElements.define("nostr-share",de(ar,{"data-url":{},"data-text":{},"data-title":{},"data-type":{},class:{},style:{}},["default"],[],!0)),b.Dialog=he,b.NostrShare=ar,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.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/nostr-share-component.umd.js",
|
|
6
6
|
"module": "dist/nostr-share-component.es.js",
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
"dev": "vite",
|
|
28
28
|
"build:types": "tsc --project tsconfig.json",
|
|
29
29
|
"build": "vite build && npm run build:types",
|
|
30
|
+
"build:pages": "tsc && vite build --mode pages",
|
|
30
31
|
"preview": "vite preview",
|
|
31
32
|
"check": "svelte-check --tsconfig ./tsconfig.json && tsc -p tsconfig.node.json"
|
|
32
33
|
},
|
package/dist/icons.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare const nostrIcon = "<svg class=\"nostr-icon\" \nversion=\"1.1\"\nid=\"_8\"\nxmlns=\"http://www.w3.org/2000/svg\"\nxmlns:xlink=\"http://www.w3.org/1999/xlink\"\nx=\"0px\"\ny=\"0px\"\nviewBox=\"0 0 256 256\"\nstyle=\"enable-background:new 0 0 256 256;\"\nxml:space=\"preserve\"\n>\n<style type=\"text/css\">\n .st0 {\n fill: none;\n }\n .st1 {\n fill: #ffffff;\n }\n .st2 {\n fill: #662482;\n }\n</style>\n<g>\n <path\n class=\"st0\"\n 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\nc-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\nc0-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\nc12.2,4.4,21.8,14,26.2,26.2c3.5,11.1,3.5,21.5,3.5,42.2V159.2z\"\n />\n <circle class=\"st1\" cx=\"137.9\" cy=\"99\" r=\"12.1\" />\n <path\n class=\"st1\"\n 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\nc0-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\nc0-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\nc0,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\nc0,3.1,2.5,5.7,5.7,5.7h68c3.1,0,5.7-2.5,5.7-5.7l0,0V115.9z\"\n />\n <path\n class=\"st2\"\n 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\nc-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\nc11.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\nC231.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\nc2.5-5,6.7-7.7,11.5-9.1c9-2.7,24.9-0.9,31.7-1.2c0,0,20.4,0.8,20.4-10.7c0-9.3-9.1-8.5-9.1-8.5c-10,0.3-17.7-0.4-22.6-2.4\nc-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\nc-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\nc36.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\ns-5.4,12.1-12.1,12.1S125.7,105.8,125.7,99z\"\n />\n</g>\n</svg>";
|
|
2
|
-
export declare const githubIcon = "\n <svg viewBox=\"0 0 98 96\" xmlns=\"http://www.w3.org/2000/svg\"><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z\"/></svg>";
|
|
3
|
-
export declare const lightningIcon = "<svg xmlns=\"http://www.w3.org/2000/svg\" enable-background=\"new 0 0 24 24\" height=\"24px\" viewBox=\"0 0 24 24\" width=\"24px\" ><g><rect fill=\"none\" height=\"24\" width=\"24\"/></g><g><path d=\"M11,21h-1l1-7H7.5c-0.88,0-0.33-0.75-0.31-0.78C8.48,10.94,10.42,7.54,13.01,3h1l-1,7h3.51c0.4,0,0.62,0.19,0.4,0.66 C12.97,17.55,11,21,11,21z\"/></g></svg>";
|
|
4
|
-
export declare const lightningIcon2 = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 256 256\"><path d=\"m213.85 125.46l-112 120a8 8 0 0 1-13.69-7l14.66-73.33l-57.63-21.64a8 8 0 0 1-3-13l112-120a8 8 0 0 1 13.69 7l-14.7 73.41l57.63 21.61a8 8 0 0 1 3 12.95Z\"/></svg>";
|