Buckets:
| import{s as re,n as j,r as $e,h as Ve,t as be,d as _e}from"./scheduler.53228c21.js";import{S as ae,i as ne,y as z,z as A,f,d as u,k as r,m as W,l as i,q as G,r as K,w as me,e as I,c as J,s as R,a as M,g as Q,b as q,n as X,u as F,x as ge,t as B,C as Ee,o as S,B as Ne,p as Y,j as ze,E as Ae}from"./index.100fac89.js";import{g as De}from"./globals.7f7f1b26.js";import{e as Ce}from"./each.e59479a4.js";import{I as Ie,c as Le}from"./IconCopy.38cf8f56.js";import{aL as Ue}from"./MermaidChart.svelte_svelte_type_style_lang.d2d363d9.js";function Be(s){let e,a;return{c(){e=z("svg"),a=z("path"),this.h()},l(t){e=A(t,"svg",{class:!0,width:!0,height:!0,viewBox:!0,fill:!0,xmlns:!0});var n=f(e);a=A(n,"path",{d:!0,stroke:!0}),f(a).forEach(u),n.forEach(u),this.h()},h(){r(a,"d","M1 1L6 6L11 1"),r(a,"stroke","currentColor"),r(e,"class",s[0]),r(e,"width","1em"),r(e,"height","1em"),r(e,"viewBox","0 0 12 7"),r(e,"fill","none"),r(e,"xmlns","http://www.w3.org/2000/svg")},m(t,n){W(t,e,n),i(e,a)},p(t,[n]){n&1&&r(e,"class",t[0])},i:j,o:j,d(t){t&&u(e)}}}function Te(s,e,a){let{classNames:t=""}=e;return s.$$set=n=>{"classNames"in n&&a(0,t=n.classNames)},[t]}class Pe extends ae{constructor(e){super(),ne(this,e,Te,Be,re,{classNames:0})}}function Se(s){let e,a,t;return{c(){e=z("svg"),a=z("path"),t=z("path"),this.h()},l(n){e=A(n,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0});var o=f(e);a=A(o,"path",{d:!0}),f(a).forEach(u),t=A(o,"path",{d:!0}),f(t).forEach(u),o.forEach(u),this.h()},h(){r(a,"d","M7 7h10v10"),r(t,"d","M7 17 17 7"),r(e,"class",s[0]),r(e,"xmlns","http://www.w3.org/2000/svg"),r(e,"width","24"),r(e,"height","24"),r(e,"viewBox","0 0 24 24"),r(e,"fill","none"),r(e,"stroke","currentColor"),r(e,"stroke-width","1.75"),r(e,"stroke-linecap","round"),r(e,"stroke-linejoin","round")},m(n,o){W(n,e,o),i(e,a),i(e,t)},p(n,[o]){o&1&&r(e,"class",n[0])},i:j,o:j,d(n){n&&u(e)}}}function Oe(s,e,a){let{classNames:t=""}=e;return s.$$set=n=>{"classNames"in n&&a(0,t=n.classNames)},[t]}class Me extends ae{constructor(e){super(),ne(this,e,Oe,Se,re,{classNames:0})}}function Re(s){let e,a,t,n;return{c(){e=z("svg"),a=z("title"),t=G("OpenAI"),n=z("path"),this.h()},l(o){e=A(o,"svg",{class:!0,fill:!0,"fill-rule":!0,height:!0,viewBox:!0,width:!0,xmlns:!0});var c=f(e);a=A(c,"title",{});var d=f(a);t=K(d,"OpenAI"),d.forEach(u),n=A(c,"path",{d:!0}),f(n).forEach(u),c.forEach(u),this.h()},h(){r(n,"d","M21.55 10.004a5.416 5.416 0 00-.478-4.501c-1.217-2.09-3.662-3.166-6.05-2.66A5.59 5.59 0 0010.831 1C8.39.995 6.224 2.546 5.473 4.838A5.553 5.553 0 001.76 7.496a5.487 5.487 0 00.691 6.5 5.416 5.416 0 00.477 4.502c1.217 2.09 3.662 3.165 6.05 2.66A5.586 5.586 0 0013.168 23c2.443.006 4.61-1.546 5.361-3.84a5.553 5.553 0 003.715-2.66 5.488 5.488 0 00-.693-6.497v.001zm-8.381 11.558a4.199 4.199 0 01-2.675-.954c.034-.018.093-.05.132-.074l4.44-2.53a.71.71 0 00.364-.623v-6.176l1.877 1.069c.02.01.033.029.036.05v5.115c-.003 2.274-1.87 4.118-4.174 4.123zM4.192 17.78a4.059 4.059 0 01-.498-2.763c.032.02.09.055.131.078l4.44 2.53c.225.13.504.13.73 0l5.42-3.088v2.138a.068.068 0 01-.027.057L9.9 19.288c-1.999 1.136-4.552.46-5.707-1.51h-.001zM3.023 8.216A4.15 4.15 0 015.198 6.41l-.002.151v5.06a.711.711 0 00.364.624l5.42 3.087-1.876 1.07a.067.067 0 01-.063.005l-4.489-2.559c-1.995-1.14-2.679-3.658-1.53-5.63h.001zm15.417 3.54l-5.42-3.088L14.896 7.6a.067.067 0 01.063-.006l4.489 2.557c1.998 1.14 2.683 3.662 1.529 5.633a4.163 4.163 0 01-2.174 1.807V12.38a.71.71 0 00-.363-.623zm1.867-2.773a6.04 6.04 0 00-.132-.078l-4.44-2.53a.731.731 0 00-.729 0l-5.42 3.088V7.325a.068.068 0 01.027-.057L14.1 4.713c2-1.137 4.555-.46 5.707 1.513.487.833.664 1.809.499 2.757h.001zm-11.741 3.81l-1.877-1.068a.065.065 0 01-.036-.051V6.559c.001-2.277 1.873-4.122 4.181-4.12.976 0 1.92.338 2.671.954-.034.018-.092.05-.131.073l-4.44 2.53a.71.71 0 00-.365.623l-.003 6.173v.002zm1.02-2.168L12 9.25l2.414 1.375v2.75L12 14.75l-2.415-1.375v-2.75z"),r(e,"class",s[0]),r(e,"fill","currentColor"),r(e,"fill-rule","evenodd"),r(e,"height","1em"),r(e,"viewBox","0 0 24 24"),r(e,"width","1em"),r(e,"xmlns","http://www.w3.org/2000/svg")},m(o,c){W(o,e,c),i(e,a),i(a,t),i(e,n)},p(o,[c]){c&1&&r(e,"class",o[0])},i:j,o:j,d(o){o&&u(e)}}}function qe(s,e,a){let{classNames:t=""}=e;return s.$$set=n=>{"classNames"in n&&a(0,t=n.classNames)},[t]}class je extends ae{constructor(e){super(),ne(this,e,qe,Re,re,{classNames:0})}}function He(s){let e,a,t,n;return{c(){e=z("svg"),a=z("title"),t=G("Anthropic"),n=z("path"),this.h()},l(o){e=A(o,"svg",{class:!0,fill:!0,height:!0,viewBox:!0,width:!0,xmlns:!0});var c=f(e);a=A(c,"title",{});var d=f(a);t=K(d,"Anthropic"),d.forEach(u),n=A(c,"path",{d:!0}),f(n).forEach(u),c.forEach(u),this.h()},h(){r(n,"d","M13.827 3.52h3.603L24 20h-3.603l-6.57-16.48zm-7.258 0h3.767L16.906 20h-3.674l-1.343-3.461H5.017l-1.344 3.46H0L6.57 3.522zm4.132 9.959L8.453 7.687 6.205 13.48H10.7z"),r(e,"class",s[0]),r(e,"fill","currentColor"),r(e,"height","1em"),r(e,"viewBox","0 0 24 24"),r(e,"width","1em"),r(e,"xmlns","http://www.w3.org/2000/svg")},m(o,c){W(o,e,c),i(e,a),i(a,t),i(e,n)},p(o,[c]){c&1&&r(e,"class",o[0])},i:j,o:j,d(o){o&&u(e)}}}function We(s,e,a){let{classNames:t=""}=e;return s.$$set=n=>{"classNames"in n&&a(0,t=n.classNames)},[t]}class Ze extends ae{constructor(e){super(),ne(this,e,We,He,re,{classNames:0})}}function Fe(s){let e,a,t,n,o;return{c(){e=z("svg"),a=z("title"),t=G("ModelContextProtocol"),n=z("path"),o=z("path"),this.h()},l(c){e=A(c,"svg",{xmlns:!0,fill:!0,"fill-rule":!0,height:!0,style:!0,viewBox:!0,width:!0,class:!0});var d=f(e);a=A(d,"title",{});var v=f(a);t=K(v,"ModelContextProtocol"),v.forEach(u),n=A(d,"path",{d:!0}),f(n).forEach(u),o=A(d,"path",{d:!0}),f(o).forEach(u),d.forEach(u),this.h()},h(){r(n,"d","M15.688 2.343a2.588 2.588 0 00-3.61 0l-9.626 9.44a.863.863 0 01-1.203 0 .823.823 0 010-1.18l9.626-9.44a4.313 4.313 0 016.016 0 4.116 4.116 0 011.204 3.54 4.3 4.3 0 013.609 1.18l.05.05a4.115 4.115 0 010 5.9l-8.706 8.537a.274.274 0 000 .393l1.788 1.754a.823.823 0 010 1.18.863.863 0 01-1.203 0l-1.788-1.753a1.92 1.92 0 010-2.754l8.706-8.538a2.47 2.47 0 000-3.54l-.05-.049a2.588 2.588 0 00-3.607-.003l-7.172 7.034-.002.002-.098.097a.863.863 0 01-1.204 0 .823.823 0 010-1.18l7.273-7.133a2.47 2.47 0 00-.003-3.537z"),r(o,"d","M14.485 4.703a.823.823 0 000-1.18.863.863 0 00-1.204 0l-7.119 6.982a4.115 4.115 0 000 5.9 4.314 4.314 0 006.016 0l7.12-6.982a.823.823 0 000-1.18.863.863 0 00-1.204 0l-7.119 6.982a2.588 2.588 0 01-3.61 0 2.47 2.47 0 010-3.54l7.12-6.982z"),r(e,"xmlns","http://www.w3.org/2000/svg"),r(e,"fill","currentColor"),r(e,"fill-rule","evenodd"),r(e,"height","1em"),me(e,"flex","none"),me(e,"line-height","1"),r(e,"viewBox","0 0 24 24"),r(e,"width","1em"),r(e,"class",s[0])},m(c,d){W(c,e,d),i(e,a),i(a,t),i(e,n),i(e,o)},p(c,[d]){d&1&&r(e,"class",c[0])},i:j,o:j,d(c){c&&u(e)}}}function Ge(s,e,a){let{classNames:t=""}=e;return s.$$set=n=>{"classNames"in n&&a(0,t=n.classNames)},[t]}class Ke extends ae{constructor(e){super(),ne(this,e,Ge,Fe,re,{classNames:0})}}function Je(s){let e,a,t,n,o,c,d;return{c(){e=z("svg"),a=z("title"),t=G("HuggingChat"),n=z("path"),o=z("path"),c=z("path"),d=z("path"),this.h()},l(v){e=A(v,"svg",{class:!0,width:!0,height:!0,viewBox:!0,fill:!0,xmlns:!0});var w=f(e);a=A(w,"title",{});var N=f(a);t=K(N,"HuggingChat"),N.forEach(u),n=A(w,"path",{d:!0,fill:!0,class:!0}),f(n).forEach(u),o=A(w,"path",{d:!0,fill:!0,class:!0}),f(o).forEach(u),c=A(w,"path",{d:!0,fill:!0,class:!0}),f(c).forEach(u),d=A(w,"path",{d:!0,fill:!0,class:!0}),f(d).forEach(u),w.forEach(u),this.h()},h(){r(n,"d","M16.0006 25.9992C13.8266 25.999 11.7118 25.2901 9.97686 23.9799C8.2419 22.6698 6.98127 20.8298 6.38599 18.7388C5.79071 16.6478 5.89323 14.4198 6.678 12.3923C7.46278 10.3648 8.88705 8.64837 10.735 7.50308C12.5829 6.35779 14.7538 5.84606 16.9187 6.04544C19.0837 6.24481 21.1246 7.14442 22.7323 8.60795C24.34 10.0715 25.4268 12.0192 25.8281 14.1559C26.2293 16.2926 25.9232 18.5019 24.9561 20.449C24.7703 20.8042 24.7223 21.2155 24.8211 21.604L25.4211 23.8316C25.4803 24.0518 25.4805 24.2837 25.4216 24.5039C25.3627 24.7242 25.2468 24.925 25.0856 25.0862C24.9244 25.2474 24.7235 25.3633 24.5033 25.4222C24.283 25.4811 24.0512 25.4809 23.831 25.4217L21.6034 24.8217C21.2172 24.7248 20.809 24.7729 20.4558 24.9567C19.0683 25.6467 17.5457 26.0068 16.0006 26.0068V25.9992Z"),r(n,"fill","black"),r(n,"class","block dark:hidden"),r(o,"d","M9.62598 16.0013C9.62598 15.3799 10.1294 14.8765 10.7508 14.8765C11.3721 14.8765 11.8756 15.3799 11.8756 16.0013C11.8756 17.0953 12.3102 18.1448 13.0838 18.9184C13.8574 19.692 14.9069 20.1266 16.001 20.1267C17.095 20.1267 18.1445 19.692 18.9181 18.9184C19.6918 18.1448 20.1264 17.0953 20.1264 16.0013C20.1264 15.3799 20.6299 14.8765 21.2512 14.8765C21.8725 14.8765 22.3759 15.3799 22.3759 16.0013C22.3759 17.6921 21.7046 19.3137 20.509 20.5093C19.3134 21.7049 17.6918 22.3762 16.001 22.3762C14.3102 22.3762 12.6885 21.7049 11.4929 20.5093C10.2974 19.3137 9.62598 17.6921 9.62598 16.0013Z"),r(o,"fill","white"),r(o,"class","block dark:hidden"),r(c,"d","M16.0006 25.9992C13.8266 25.999 11.7118 25.2901 9.97686 23.9799C8.2419 22.6698 6.98127 20.8298 6.38599 18.7388C5.79071 16.6478 5.89323 14.4198 6.678 12.3923C7.46278 10.3648 8.88705 8.64837 10.735 7.50308C12.5829 6.35779 14.7538 5.84606 16.9187 6.04544C19.0837 6.24481 21.1246 7.14442 22.7323 8.60795C24.34 10.0715 25.4268 12.0192 25.8281 14.1559C26.2293 16.2926 25.9232 18.5019 24.9561 20.449C24.7703 20.8042 24.7223 21.2155 24.8211 21.604L25.4211 23.8316C25.4803 24.0518 25.4805 24.2837 25.4216 24.5039C25.3627 24.7242 25.2468 24.925 25.0856 25.0862C24.9244 25.2474 24.7235 25.3633 24.5033 25.4222C24.283 25.4811 24.0512 25.4809 23.831 25.4217L21.6034 24.8217C21.2172 24.7248 20.809 24.7729 20.4558 24.9567C19.0683 25.6467 17.5457 26.0068 16.0006 26.0068V25.9992Z"),r(c,"fill","white"),r(c,"class","hidden dark:block"),r(d,"d","M9.62598 16.0013C9.62598 15.3799 10.1294 14.8765 10.7508 14.8765C11.3721 14.8765 11.8756 15.3799 11.8756 16.0013C11.8756 17.0953 12.3102 18.1448 13.0838 18.9184C13.8574 19.692 14.9069 20.1266 16.001 20.1267C17.095 20.1267 18.1445 19.692 18.9181 18.9184C19.6918 18.1448 20.1264 17.0953 20.1264 16.0013C20.1264 15.3799 20.6299 14.8765 21.2512 14.8765C21.8725 14.8765 22.3759 15.3799 22.3759 16.0013C22.3759 17.6921 21.7046 19.3137 20.509 20.5093C19.3134 21.7049 17.6918 22.3762 16.001 22.3762C14.3102 22.3762 12.6885 21.7049 11.4929 20.5093C10.2974 19.3137 9.62598 17.6921 9.62598 16.0013Z"),r(d,"fill","black"),r(d,"class","hidden dark:block"),r(e,"class",s[0]),r(e,"width","1em"),r(e,"height","1em"),r(e,"viewBox","5 5 22 22"),r(e,"fill","none"),r(e,"xmlns","http://www.w3.org/2000/svg")},m(v,w){W(v,e,w),i(e,a),i(a,t),i(e,n),i(e,o),i(e,c),i(e,d)},p(v,[w]){w&1&&r(e,"class",v[0])},i:j,o:j,d(v){v&&u(e)}}}function Qe(s,e,a){let{classNames:t=""}=e;return s.$$set=n=>{"classNames"in n&&a(0,t=n.classNames)},[t]}class Xe extends ae{constructor(e){super(),ne(this,e,Qe,Je,re,{classNames:0})}}const{window:ue}=De;function ke(s,e,a){const t=s.slice();return t[32]=e[a],t}function xe(s){let e,a,t,n,o,c,d,v,w,N,_,x,V,P,p,b,L,T,m,g,y,D,$,E,Z="View this page as plain text",U,H,te,le;c=new Ie({props:{classNames:"w-4 h-4 shrink-0"}}),L=new Ue({props:{classNames:"w-4 h-4 shrink-0"}}),D=new Me({props:{classNames:"w-4 h-4 text-gray-500 dark:text-gray-300 shrink-0"}});let ee=Ce(s[10]),C=[];for(let h=0;h<ee.length;h+=1)C[h]=ye(ke(s,ee,h));const de=h=>S(C[h],1,1,()=>{C[h]=null});return{c(){e=I("div"),a=R(),t=I("div"),n=I("button"),o=I("div"),J(c.$$.fragment),d=R(),v=I("div"),w=I("div"),N=G(s[0]),_=R(),x=I("div"),V=G(s[1]),P=R(),p=I("a"),b=I("div"),J(L.$$.fragment),T=R(),m=I("div"),g=I("div"),y=G(`View as Markdown | |
| `),J(D.$$.fragment),$=R(),E=I("div"),E.textContent=Z,U=R();for(let h=0;h<C.length;h+=1)C[h].c();this.h()},l(h){e=M(h,"DIV",{class:!0,"aria-hidden":!0,style:!0}),f(e).forEach(u),a=q(h),t=M(h,"DIV",{role:!0,class:!0,style:!0,"aria-label":!0});var k=f(t);n=M(k,"BUTTON",{role:!0,class:!0});var l=f(n);o=M(l,"DIV",{class:!0});var O=f(o);Q(c.$$.fragment,O),O.forEach(u),d=q(l),v=M(l,"DIV",{class:!0});var se=f(v);w=M(se,"DIV",{class:!0});var oe=f(w);N=K(oe,s[0]),oe.forEach(u),_=q(se),x=M(se,"DIV",{class:!0});var ve=f(x);V=K(ve,s[1]),ve.forEach(u),se.forEach(u),l.forEach(u),P=q(k),p=M(k,"A",{role:!0,href:!0,target:!0,rel:!0,class:!0});var ie=f(p);b=M(ie,"DIV",{class:!0});var we=f(b);Q(L.$$.fragment,we),we.forEach(u),T=q(ie),m=M(ie,"DIV",{class:!0});var ce=f(m);g=M(ce,"DIV",{class:!0});var fe=f(g);y=K(fe,`View as Markdown | |
| `),Q(D.$$.fragment,fe),fe.forEach(u),$=q(ce),E=M(ce,"DIV",{class:!0,"data-svelte-h":!0}),ze(E)!=="svelte-8wg9lb"&&(E.textContent=Z),ce.forEach(u),ie.forEach(u),U=q(k);for(let he=0;he<C.length;he+=1)C[he].l(k);k.forEach(u),this.h()},h(){r(e,"class","fixed inset-0 z-40"),r(e,"aria-hidden","true"),me(e,"background","transparent"),r(o,"class","border border-gray-200 dark:border-gray-850 rounded-lg p-1.5"),r(w,"class","text-sm font-medium text-gray-800 dark:text-gray-300 flex items-center gap-1"),r(x,"class","text-xs text-gray-600 dark:text-gray-400"),r(v,"class","flex flex-col px-1"),r(n,"role","menuitem"),r(n,"class",pe),r(b,"class","border border-gray-200 dark:border-gray-850 rounded-lg p-1.5"),r(g,"class","text-sm font-medium text-gray-800 dark:text-gray-300 flex items-center gap-1"),r(E,"class","text-xs text-gray-600 dark:text-gray-400"),r(m,"class","flex flex-col px-1"),r(p,"role","menuitem"),r(p,"href",s[9]),r(p,"target","_blank"),r(p,"rel","noopener noreferrer"),r(p,"class",pe+" no-underline!"),r(t,"role","menu"),r(t,"class","fixed z-50 backdrop-blur-xl rounded-xl max-h-[420px] overflow-y-auto p-1 border flex flex-col border-gray-200 bg-white dark:border-gray-850 dark:bg-gray-950 dark:text-gray-200"),r(t,"style",s[8]),r(t,"aria-label","Copy menu")},m(h,k){W(h,e,k),W(h,a,k),W(h,t,k),i(t,n),i(n,o),X(c,o,null),i(n,d),i(n,v),i(v,w),i(w,N),i(v,_),i(v,x),i(x,V),i(t,P),i(t,p),i(p,b),X(L,b,null),i(p,T),i(p,m),i(m,g),i(g,y),X(D,g,null),i(m,$),i(m,E),i(t,U);for(let l=0;l<C.length;l+=1)C[l]&&C[l].m(t,null);s[20](t),H=!0,te||(le=[F(e,"click",s[12]),F(n,"click",s[19]),F(p,"click",s[12])],te=!0)},p(h,k){if((!H||k[0]&1)&&ge(N,h[0]),(!H||k[0]&2)&&ge(V,h[1]),k[0]&5120){ee=Ce(h[10]);let l;for(l=0;l<ee.length;l+=1){const O=ke(h,ee,l);C[l]?(C[l].p(O,k),B(C[l],1)):(C[l]=ye(O),C[l].c(),B(C[l],1),C[l].m(t,null))}for(Ee(),l=ee.length;l<C.length;l+=1)de(l);Ne()}(!H||k[0]&256)&&r(t,"style",h[8])},i(h){if(!H){B(c.$$.fragment,h),B(L.$$.fragment,h),B(D.$$.fragment,h);for(let k=0;k<ee.length;k+=1)B(C[k]);H=!0}},o(h){S(c.$$.fragment,h),S(L.$$.fragment,h),S(D.$$.fragment,h),C=C.filter(Boolean);for(let k=0;k<C.length;k+=1)S(C[k]);H=!1},d(h){h&&(u(e),u(a),u(t)),Y(c),Y(L),Y(D),Ae(C,h),s[20](null),te=!1,$e(le)}}}function Ye(s){let e,a;return e=new Ke({props:{classNames:"w-4 h-4 shrink-0"}}),{c(){J(e.$$.fragment)},l(t){Q(e.$$.fragment,t)},m(t,n){X(e,t,n),a=!0},i(t){a||(B(e.$$.fragment,t),a=!0)},o(t){S(e.$$.fragment,t),a=!1},d(t){Y(e,t)}}}function et(s){let e,a;return e=new Ze({props:{classNames:"w-4 h-4 shrink-0"}}),{c(){J(e.$$.fragment)},l(t){Q(e.$$.fragment,t)},m(t,n){X(e,t,n),a=!0},i(t){a||(B(e.$$.fragment,t),a=!0)},o(t){S(e.$$.fragment,t),a=!1},d(t){Y(e,t)}}}function tt(s){let e,a;return e=new je({props:{classNames:"w-4 h-4 shrink-0"}}),{c(){J(e.$$.fragment)},l(t){Q(e.$$.fragment,t)},m(t,n){X(e,t,n),a=!0},i(t){a||(B(e.$$.fragment,t),a=!0)},o(t){S(e.$$.fragment,t),a=!1},d(t){Y(e,t)}}}function rt(s){let e,a;return e=new Xe({props:{classNames:"w-4 h-4 shrink-0"}}),{c(){J(e.$$.fragment)},l(t){Q(e.$$.fragment,t)},m(t,n){X(e,t,n),a=!0},i(t){a||(B(e.$$.fragment,t),a=!0)},o(t){S(e.$$.fragment,t),a=!1},d(t){Y(e,t)}}}function ye(s){let e,a,t,n,o,c,d,v=s[32].label+"",w,N,_,x=s[32].description+"",V,P,p,b,L,T,m;const g=[rt,tt,et,Ye],y=[];function D($,E){return $[32].icon==="huggingchat"?0:$[32].icon==="chatgpt"?1:$[32].icon==="claude"?2:$[32].icon==="mcp"?3:-1}return~(t=D(s))&&(n=y[t]=g[t](s)),p=new Me({props:{classNames:"w-4 h-4 text-gray-500 dark:text-gray-300"}}),{c(){e=I("a"),a=I("div"),n&&n.c(),o=R(),c=I("div"),d=I("div"),w=G(v),N=R(),_=I("div"),V=G(x),P=R(),J(p.$$.fragment),b=R(),this.h()},l($){e=M($,"A",{role:!0,href:!0,target:!0,rel:!0,class:!0});var E=f(e);a=M(E,"DIV",{class:!0});var Z=f(a);n&&n.l(Z),Z.forEach(u),o=q(E),c=M(E,"DIV",{class:!0});var U=f(c);d=M(U,"DIV",{class:!0});var H=f(d);w=K(H,v),H.forEach(u),N=q(U),_=M(U,"DIV",{class:!0});var te=f(_);V=K(te,x),te.forEach(u),U.forEach(u),P=q(E),Q(p.$$.fragment,E),b=q(E),E.forEach(u),this.h()},h(){r(a,"class","border border-gray-200 dark:border-gray-850 rounded-lg p-1.5"),r(d,"class","text-sm font-medium text-gray-800 dark:text-gray-200 flex items-center gap-1"),r(_,"class","text-xs text-gray-600 dark:text-gray-400"),r(c,"class","flex flex-col px-1"),r(e,"role","menuitem"),r(e,"href",s[32].buildUrl()),r(e,"target","_blank"),r(e,"rel","noopener noreferrer"),r(e,"class",pe+" no-underline!")},m($,E){W($,e,E),i(e,a),~t&&y[t].m(a,null),i(e,o),i(e,c),i(c,d),i(d,w),i(c,N),i(c,_),i(_,V),i(e,P),X(p,e,null),i(e,b),L=!0,T||(m=F(e,"click",s[12]),T=!0)},p:j,i($){L||(B(n),B(p.$$.fragment,$),L=!0)},o($){S(n),S(p.$$.fragment,$),L=!1},d($){$&&u(e),~t&&y[t].d(),Y(p),T=!1,m()}}}function at(s){let e,a,t,n,o,c,d,v=(s[5]?"Copied":s[0])+"",w,N,_,x,V,P,p,b,L,T;o=new Ie({props:{classNames:"sm:size-3.5 size-3"}}),x=new Pe({props:{classNames:`transition-transform text-gray-400 overflow-visible sm:size-3.5 size-3 ${s[4]?"rotate-180":"rotate-0"}`}});let m=s[4]&&xe(s);return{c(){e=I("div"),a=I("div"),t=I("button"),n=I("span"),J(o.$$.fragment),c=R(),d=I("span"),w=G(v),N=R(),_=I("button"),J(x.$$.fragment),P=R(),m&&m.c(),this.h()},l(g){e=M(g,"DIV",{class:!0,style:!0});var y=f(e);a=M(y,"DIV",{class:!0});var D=f(a);t=M(D,"BUTTON",{class:!0,"aria-live":!0});var $=f(t);n=M($,"SPAN",{class:!0});var E=f(n);Q(o.$$.fragment,E),E.forEach(u),c=q($),d=M($,"SPAN",{});var Z=f(d);w=K(Z,v),Z.forEach(u),$.forEach(u),N=q(D),_=M(D,"BUTTON",{class:!0,"aria-haspopup":!0,"aria-expanded":!0,"aria-label":!0});var U=f(_);Q(x.$$.fragment,U),U.forEach(u),D.forEach(u),P=q(y),m&&m.l(y),y.forEach(u),this.h()},h(){r(n,"class","inline-flex items-center justify-center rounded-md p-0.5 max-sm:p-0 hover:text-gray-800 dark:hover:text-gray-200"),r(t,"class","inline-flex items-center gap-1 h-7 max-sm:h-7 px-2 max-sm:px-1.5 text-sm font-medium text-gray-800 border border-r-0 rounded-l-md max-sm:rounded-l-sm border-gray-200 bg-white hover:shadow-inner dark:border-gray-850 dark:bg-gray-950 dark:text-gray-200 dark:hover:bg-gray-800"),r(t,"aria-live","polite"),r(_,"class","inline-flex items-center justify-center w-6 max-sm:w-5 h-7 max-sm:h-7 disabled:pointer-events-none text-sm text-gray-500 hover:text-gray-700 dark:hover:text-white rounded-r-md max-sm:rounded-r-sm border border-l transition border-gray-200 bg-white hover:shadow-inner dark:border-gray-850 dark:bg-gray-950 dark:text-gray-200 dark:hover:bg-gray-800"),r(_,"aria-haspopup","menu"),r(_,"aria-expanded",s[4]),r(_,"aria-label",V=s[4]?"Close copy menu":"Open copy menu"),r(a,"class","inline-flex rounded-md max-sm:rounded-sm"),r(e,"class",p=`items-center shrink-0 min-w-[100px] max-sm:min-w-[50px] justify-end ml-auto flex${s[2]?` ${s[2]}`:""}`),r(e,"style",s[3])},m(g,y){W(g,e,y),i(e,a),i(a,t),i(t,n),X(o,n,null),i(t,c),i(t,d),i(d,w),i(a,N),i(a,_),X(x,_,null),s[18](a),i(e,P),m&&m.m(e,null),b=!0,L||(T=[F(ue,"mousedown",s[14]),F(ue,"keydown",s[15]),F(ue,"resize",s[16]),F(ue,"scroll",s[17]),F(t,"click",s[11]),F(_,"click",s[13])],L=!0)},p(g,y){(!b||y[0]&33)&&v!==(v=(g[5]?"Copied":g[0])+"")&&ge(w,v);const D={};y[0]&16&&(D.classNames=`transition-transform text-gray-400 overflow-visible sm:size-3.5 size-3 ${g[4]?"rotate-180":"rotate-0"}`),x.$set(D),(!b||y[0]&16)&&r(_,"aria-expanded",g[4]),(!b||y[0]&16&&V!==(V=g[4]?"Close copy menu":"Open copy menu"))&&r(_,"aria-label",V),g[4]?m?(m.p(g,y),y[0]&16&&B(m,1)):(m=xe(g),m.c(),B(m,1),m.m(e,null)):m&&(Ee(),S(m,1,1,()=>{m=null}),Ne()),(!b||y[0]&4&&p!==(p=`items-center shrink-0 min-w-[100px] max-sm:min-w-[50px] justify-end ml-auto flex${g[2]?` ${g[2]}`:""}`))&&r(e,"class",p),(!b||y[0]&8)&&r(e,"style",g[3])},i(g){b||(B(o.$$.fragment,g),B(x.$$.fragment,g),B(m),b=!0)},o(g){S(o.$$.fragment,g),S(x.$$.fragment,g),S(m),b=!1},d(g){g&&u(e),Y(o),Y(x),s[18](null),m&&m.d(),L=!1,$e(T)}}}const pe="cursor-pointer text-sm group relative w-full select-none outline-none flex items-center gap-1 px-1.5 py-1.5 rounded-xl text-left transition border-gray-200 bg-white hover:shadow-inner dark:border-gray-850 dark:bg-gray-950 dark:text-gray-200 dark:hover:bg-gray-800";function nt(s,e,a){let{label:t="Copy page"}=e,{markdownDescription:n="Copy page as Markdown for LLMs"}=e,{containerClass:o=""}=e,{containerStyle:c=""}=e;const d=typeof window<"u",v=typeof document<"u";function w(){return!d||!window.location?void 0:window.location.href.replace(/#.*$/,"")}const N=w()??"",_=N.endsWith(".md")?N:N+".md";let x=null,V=!1,P=!1,p=null,b=null,L="",T=null,m=null,g=null;const y=[{label:"Open in HuggingChat",description:"Ask questions about this page",icon:"huggingchat",buildUrl:()=>{const l=encodeURIComponent(_),O=encodeURIComponent(`Read from ${N} so I can ask questions about it.`);return`https://huggingface.co/chat/?attachments=${l}&prompt=${O}`}},{label:"Open in ChatGPT",description:"Ask questions about this page",icon:"chatgpt",buildUrl:()=>x?`https://chatgpt.com/?hints=search&q=${x}`:"https://chatgpt.com"},{label:"Open in Claude",description:"Ask questions about this page",icon:"claude",buildUrl:()=>x?`https://claude.ai/new?q=${x}`:"https://claude.ai/new"},{label:"Connect to MCP Client",description:"Install MCP server on Cursor, VS Code, etc.",icon:"mcp",buildUrl:()=>"https://huggingface.co/mcp"}];function D(){x||!d||(x=encodeURIComponent(`Read from ${N} so I can ask questions about it.`))}async function $(){return!d||typeof fetch!="function"||!N?"":(D(),m||(g||(g=fetch(N,{headers:{Accept:"text/plain"}}).then(l=>{if(!l.ok)throw new Error(`Failed to fetch source content: ${l.status}`);return l.text()}).then(l=>(m=l,l)).catch(l=>(console.error("Unable to fetch remote markdown",l),m="",""))),g))}async function E(){if(!d){console.warn("Clipboard API unavailable");return}try{const l=await $();if(!l){console.warn("Nothing to copy");return}if(typeof navigator<"u"&&!!navigator.clipboard&&typeof navigator.clipboard.writeText=="function")await navigator.clipboard.writeText(l);else if(v)Le(l);else{console.warn("Clipboard API unavailable");return}a(5,P=!0),await be(),T&&clearTimeout(T),T=setTimeout(()=>{a(5,P=!1)},2e3)}catch(l){console.error("Failed to write to clipboard",l)}}function Z(){a(4,V=!0),D(),d&&p&&be().then(()=>{if(!p)return;const l=p.getBoundingClientRect(),O=10,se=Math.max(l.width+80,220),oe=Math.max(window.innerWidth-l.right,O);a(8,L=`top:${l.bottom+O}px;right:${oe}px;min-width:${se}px;`)})}function U(){a(4,V=!1)}function H(){V?U():Z()}function te(l){if(!V||!d)return;const O=l.target;b!=null&&b.contains(O)||p!=null&&p.contains(O)||U()}function le(l){l.key==="Escape"&&V&&U()}function ee(){V&&U()}function C(){V&&U()}Ve(()=>{T&&clearTimeout(T)});function de(l){_e[l?"unshift":"push"](()=>{p=l,a(6,p)})}const h=()=>{E(),U()};function k(l){_e[l?"unshift":"push"](()=>{b=l,a(7,b)})}return s.$$set=l=>{"label"in l&&a(0,t=l.label),"markdownDescription"in l&&a(1,n=l.markdownDescription),"containerClass"in l&&a(2,o=l.containerClass),"containerStyle"in l&&a(3,c=l.containerStyle)},[t,n,o,c,V,P,p,b,L,_,y,E,U,H,te,le,ee,C,de,h,k]}class dt extends ae{constructor(e){super(),ne(this,e,nt,at,re,{label:0,markdownDescription:1,containerClass:2,containerStyle:3},null,[-1,-1])}}export{dt as C}; | |
Xet Storage Details
- Size:
- 23.6 kB
- Xet hash:
- de51c6e20afdb55efa04ce29945908c05f663143006b9cefbe2b0007f86e18f8
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.