import{S as N,i as x,s as C,N as b,O as p,a as d,d as h,b as r,g as E,F as g,L as y,e as v,k as A,t as L,c as _,m as R,h as O,f as D,j as z,w as M,x as V,y as B,P as w,q as H,o as T,B as I,Q as S,R as q}from"./vendor-a50a4eac.js";function P(l){let e,t;return{c(){e=b("svg"),t=b("path"),this.h()},l(s){e=p(s,"svg",{class:!0,xmlns:!0,"xmlns:xlink":!0,"aria-hidden":!0,role:!0,width:!0,height:!0,preserveAspectRatio:!0,viewBox:!0});var a=d(e);t=p(a,"path",{d:!0,fill:!0}),d(t).forEach(h),a.forEach(h),this.h()},h(){r(t,"d","M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z"),r(t,"fill","currentColor"),r(e,"class",l[0]),r(e,"xmlns","http://www.w3.org/2000/svg"),r(e,"xmlns:xlink","http://www.w3.org/1999/xlink"),r(e,"aria-hidden","true"),r(e,"role","img"),r(e,"width","1em"),r(e,"height","1em"),r(e,"preserveAspectRatio","xMidYMid meet"),r(e,"viewBox","0 0 256 256")},m(s,a){E(s,e,a),g(e,t)},p(s,[a]){a&1&&r(e,"class",s[0])},i:y,o:y,d(s){s&&h(e)}}}function Y(l,e,t){let{classNames:s=""}=e;return l.$$set=a=>{"classNames"in a&&t(0,s=a.classNames)},[s]}class se extends N{constructor(e){super();x(this,e,Y,P,C,{classNames:0})}}function Z(l){const e=document.createElement("textarea");document.body.appendChild(e),e.value=l,e.select(),document.execCommand("copy"),document.body.removeChild(e)}function j(l){let e,t,s,a;return{c(){e=b("svg"),t=b("path"),s=b("path"),a=b("rect"),this.h()},l(i){e=p(i,"svg",{class:!0,xmlns:!0,"aria-hidden":!0,fill:!0,focusable:!0,role:!0,width:!0,height:!0,preserveAspectRatio:!0,viewBox:!0});var n=d(e);t=p(n,"path",{d:!0,transform:!0}),d(t).forEach(h),s=p(n,"path",{d:!0,transform:!0}),d(s).forEach(h),a=p(n,"rect",{fill:!0,width:!0,height:!0}),d(a).forEach(h),n.forEach(h),this.h()},h(){r(t,"d","M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z"),r(t,"transform","translate(0)"),r(s,"d","M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z"),r(s,"transform","translate(0)"),r(a,"fill","none"),r(a,"width","32"),r(a,"height","32"),r(e,"class",l[0]),r(e,"xmlns","http://www.w3.org/2000/svg"),r(e,"aria-hidden","true"),r(e,"fill","currentColor"),r(e,"focusable","false"),r(e,"role","img"),r(e,"width","1em"),r(e,"height","1em"),r(e,"preserveAspectRatio","xMidYMid meet"),r(e,"viewBox","0 0 32 32")},m(i,n){E(i,e,n),g(e,t),g(e,s),g(e,a)},p(i,[n]){n&1&&r(e,"class",i[0])},i:y,o:y,d(i){i&&h(e)}}}function F(l,e,t){let{classNames:s=""}=e;return l.$$set=a=>{"classNames"in a&&t(0,s=a.classNames)},[s]}class Q extends N{constructor(e){super();x(this,e,F,j,C,{classNames:0})}}function U(l){let e,t,s,a,i;return{c(){e=v("div"),t=v("div"),s=A(),a=L(l[1]),this.h()},l(n){e=_(n,"DIV",{class:!0});var c=d(e);t=_(c,"DIV",{class:!0,style:!0}),d(t).forEach(h),s=R(c),a=O(c,l[1]),c.forEach(h),this.h()},h(){r(t,"class","absolute bottom-full left-1/2 transform -translate-x-1/2 w-0 h-0 border-black border-4 border-t-0"),D(t,"border-left-color","transparent"),D(t,"border-right-color","transparent"),r(e,"class",i="absolute pointer-events-none transition-opacity bg-black text-white py-1 px-2 leading-tight rounded font-normal shadow "+l[2]+" "+l[0])},m(n,c){E(n,e,c),g(e,t),g(e,s),g(e,a)},p(n,[c]){c&2&&z(a,n[1]),c&5&&i!==(i="absolute pointer-events-none transition-opacity bg-black text-white py-1 px-2 leading-tight rounded font-normal shadow "+n[2]+" "+n[0])&&r(e,"class",i)},i:y,o:y,d(n){n&&h(e)}}}function G(l,e,t){let{classNames:s=""}=e,{label:a="Copied"}=e,{position:i="left-1/2 top-full transform -translate-x-1/2 translate-y-2"}=e;return l.$$set=n=>{"classNames"in n&&t(0,s=n.classNames),"label"in n&&t(1,a=n.label),"position"in n&&t(2,i=n.position)},[s,a,i]}class J extends N{constructor(e){super();x(this,e,G,U,C,{classNames:0,label:1,position:2})}}function K(l){let e,t,s,a,i,n,c,m,f;return t=new Q({}),a=new J({props:{classNames:l[4]?"opacity-100":"opacity-0"}}),{c(){e=v("button"),M(t.$$.fragment),s=A(),M(a.$$.fragment),this.h()},l(o){e=_(o,"BUTTON",{class:!0,title:!0,type:!0});var u=d(e);V(t.$$.fragment,u),s=R(u),V(a.$$.fragment,u),u.forEach(h),this.h()},h(){r(e,"class",i="inline-flex items-center relative text-sm focus:text-green-500 cursor-pointer focus:outline-none "+l[0]+" "+(l[2]==="text"?"mx-0.5":"")+" "+(l[2]==="button"?"btn":"")+" "+(l[2]==="button-clear"?"py-1 px-2 border rounded-lg shadow-sm":"")+" "+(!l[4]&&["button-clear","text"].includes(l[2])?"text-gray-600":"")+" "+(l[4]?"text-green-500":"")),r(e,"title",n=l[3]||l[1]||"Copy to clipboard"),r(e,"type","button")},m(o,u){E(o,e,u),B(t,e,null),g(e,s),B(a,e,null),c=!0,m||(f=w(e,"click",l[5]),m=!0)},p(o,[u]){const k={};u&16&&(k.classNames=o[4]?"opacity-100":"opacity-0"),a.$set(k),(!c||u&21&&i!==(i="inline-flex items-center relative text-sm focus:text-green-500 cursor-pointer focus:outline-none "+o[0]+" "+(o[2]==="text"?"mx-0.5":"")+" "+(o[2]==="button"?"btn":"")+" "+(o[2]==="button-clear"?"py-1 px-2 border rounded-lg shadow-sm":"")+" "+(!o[4]&&["button-clear","text"].includes(o[2])?"text-gray-600":"")+" "+(o[4]?"text-green-500":"")))&&r(e,"class",i),(!c||u&10&&n!==(n=o[3]||o[1]||"Copy to clipboard"))&&r(e,"title",n)},i(o){c||(H(t.$$.fragment,o),H(a.$$.fragment,o),c=!0)},o(o){T(t.$$.fragment,o),T(a.$$.fragment,o),c=!1},d(o){o&&h(e),I(t),I(a),m=!1,f()}}}function W(l,e,t){let{classNames:s=""}=e,{label:a=""}=e,{style:i="text"}=e,{title:n=""}=e,{value:c}=e,m=!1,f;S(()=>{f&&clearTimeout(f)});function o(){Z(c),t(4,m=!0),f&&clearTimeout(f),f=setTimeout(()=>{t(4,m=!1)},1e3)}return l.$$set=u=>{"classNames"in u&&t(0,s=u.classNames),"label"in u&&t(1,a=u.label),"style"in u&&t(2,i=u.style),"title"in u&&t(3,n=u.title),"value"in u&&t(6,c=u.value)},[s,a,i,n,m,o,c]}class X extends N{constructor(e){super();x(this,e,W,K,C,{classNames:0,label:1,style:2,title:3,value:6})}}function $(l){let e,t,s,a,i,n,c,m;return s=new X({props:{classNames:"transition duration-200 ease-in-out "+(l[2]&&"opacity-0"),label:"code excerpt",value:l[0]}}),{c(){e=v("div"),t=v("div"),M(s.$$.fragment),a=A(),i=v("pre"),this.h()},l(f){e=_(f,"DIV",{class:!0});var o=d(e);t=_(o,"DIV",{class:!0});var u=d(t);V(s.$$.fragment,u),u.forEach(h),a=R(o),i=_(o,"PRE",{});var k=d(i);k.forEach(h),o.forEach(h),this.h()},h(){r(t,"class","absolute top-2.5 right-4"),r(e,"class","code-block relative")},m(f,o){E(f,e,o),g(e,t),B(s,t,null),g(e,a),g(e,i),i.innerHTML=l[1],n=!0,c||(m=[w(e,"mouseover",l[3]),w(e,"focus",l[3]),w(e,"mouseout",l[4]),w(e,"blur",l[4])],c=!0)},p(f,[o]){const u={};o&4&&(u.classNames="transition duration-200 ease-in-out "+(f[2]&&"opacity-0")),o&1&&(u.value=f[0]),s.$set(u),(!n||o&2)&&(i.innerHTML=f[1])},i(f){n||(H(s.$$.fragment,f),n=!0)},o(f){T(s.$$.fragment,f),n=!1},d(f){f&&h(e),I(s),c=!1,q(m)}}}function ee(l,e,t){let s=!0,{code:a=""}=e,{highlighted:i=""}=e;function n(){t(2,s=!1)}function c(){t(2,s=!0)}return l.$$set=m=>{"code"in m&&t(0,a=m.code),"highlighted"in m&&t(1,i=m.highlighted)},[a,i,s,n,c]}class ae extends N{constructor(e){super();x(this,e,ee,$,C,{code:0,highlighted:1})}}export{ae as C,se as I};
