dock-rush 1.0.0 → 1.0.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.
@@ -0,0 +1,4 @@
1
+ var _r=Object.create;var Je=Object.defineProperty;var Or=Object.getOwnPropertyDescriptor;var Ar=Object.getOwnPropertyNames;var Fr=Object.getPrototypeOf,zr=Object.prototype.hasOwnProperty;var ce=(e,t)=>()=>(e&&(t=e(e=0)),t);var mo=(e,t)=>{for(var o in t)Je(e,o,{get:t[o],enumerable:!0})},po=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Ar(t))!zr.call(e,a)&&a!==o&&Je(e,a,{get:()=>t[a],enumerable:!(r=Or(t,a))||r.enumerable});return e};var O=(e,t,o)=>(o=e!=null?_r(Fr(e)):{},po(t||!e||!e.__esModule?Je(o,"default",{value:e,enumerable:!0}):o,e)),Br=e=>po(Je({},"__esModule",{value:!0}),e);function uo(e){var t,o,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(o=uo(e[t]))&&(r&&(r+=" "),r+=o)}else for(o in e)e[o]&&(r&&(r+=" "),r+=o);return r}function et(){for(var e,t,o=0,r="",a=arguments.length;o<a;o++)(e=arguments[o])&&(t=uo(e))&&(r&&(r+=" "),r+=t);return r}var kt=ce(()=>{});var Vr,Gr,yo,fo,$r,Hr,vo,Wr,Ur,jr,It,Kr,Yr,Xr,qr,xo,Zr,Qr,Jr,go,en,tn,on,rn,nn,an,Co,sn,ln,H,wo,Ro,dn,cn,mn,pn,un,fn,Le,E,he,Tt,me,gn,bn,So,hn,yn,vn,xn,g,Ee,Dt,bo,Cn,tt,b,$e,wn,ho,Rn,Sn,ot,_e,Oe,No,Po,Eo,ko,Nn,Pn,To,En,Do,Io=ce(()=>{Vr=(e,t)=>{let o=new Array(e.length+t.length);for(let r=0;r<e.length;r++)o[r]=e[r];for(let r=0;r<t.length;r++)o[e.length+r]=t[r];return o},Gr=(e,t)=>({classGroupId:e,validator:t}),yo=(e=new Map,t=null,o)=>({nextPart:e,validators:t,classGroupId:o}),fo=[],$r="arbitrary..",Hr=e=>{let t=Ur(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return Wr(l);let m=l.split("-"),s=m[0]===""&&m.length>1?1:0;return vo(m,s,t)},getConflictingClassGroupIds:(l,m)=>{if(m){let s=r[l],p=o[l];return s?p?Vr(p,s):s:p||fo}return o[l]||fo}}},vo=(e,t,o)=>{if(e.length-t===0)return o.classGroupId;let a=e[t],d=o.nextPart.get(a);if(d){let p=vo(e,t+1,d);if(p)return p}let l=o.validators;if(l===null)return;let m=t===0?e.join("-"):e.slice(t).join("-"),s=l.length;for(let p=0;p<s;p++){let v=l[p];if(v.validator(m))return v.classGroupId}},Wr=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let t=e.slice(1,-1),o=t.indexOf(":"),r=t.slice(0,o);return r?$r+r:void 0})(),Ur=e=>{let{theme:t,classGroups:o}=e;return jr(o,t)},jr=(e,t)=>{let o=yo();for(let r in e){let a=e[r];It(a,o,r,t)}return o},It=(e,t,o,r)=>{let a=e.length;for(let d=0;d<a;d++){let l=e[d];Kr(l,t,o,r)}},Kr=(e,t,o,r)=>{if(typeof e=="string"){Yr(e,t,o);return}if(typeof e=="function"){Xr(e,t,o,r);return}qr(e,t,o,r)},Yr=(e,t,o)=>{let r=e===""?t:xo(t,e);r.classGroupId=o},Xr=(e,t,o,r)=>{if(Zr(e)){It(e(r),t,o,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Gr(o,e))},qr=(e,t,o,r)=>{let a=Object.entries(e),d=a.length;for(let l=0;l<d;l++){let[m,s]=a[l];It(s,xo(t,m),o,r)}},xo=(e,t)=>{let o=e,r=t.split("-"),a=r.length;for(let d=0;d<a;d++){let l=r[d],m=o.nextPart.get(l);m||(m=yo(),o.nextPart.set(l,m)),o=m}return o},Zr=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Qr=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=Object.create(null),r=Object.create(null),a=(d,l)=>{o[d]=l,t++,t>e&&(t=0,r=o,o=Object.create(null))};return{get(d){let l=o[d];if(l!==void 0)return l;if((l=r[d])!==void 0)return a(d,l),l},set(d,l){d in o?o[d]=l:a(d,l)}}},Jr=[],go=(e,t,o,r,a)=>({modifiers:e,hasImportantModifier:t,baseClassName:o,maybePostfixModifierPosition:r,isExternal:a}),en=e=>{let{prefix:t,experimentalParseClassName:o}=e,r=a=>{let d=[],l=0,m=0,s=0,p,v=a.length;for(let n=0;n<v;n++){let c=a[n];if(l===0&&m===0){if(c===":"){d.push(a.slice(s,n)),s=n+1;continue}if(c==="/"){p=n;continue}}c==="["?l++:c==="]"?l--:c==="("?m++:c===")"&&m--}let C=d.length===0?a:a.slice(s),P=C,L=!1;C.endsWith("!")?(P=C.slice(0,-1),L=!0):C.startsWith("!")&&(P=C.slice(1),L=!0);let i=p&&p>s?p-s:void 0;return go(d,L,P,i)};if(t){let a=t+":",d=r;r=l=>l.startsWith(a)?d(l.slice(a.length)):go(Jr,!1,l,void 0,!0)}if(o){let a=r;r=d=>o({className:d,parseClassName:a})}return r},tn=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((o,r)=>{t.set(o,1e6+r)}),o=>{let r=[],a=[];for(let d=0;d<o.length;d++){let l=o[d],m=l[0]==="[",s=t.has(l);m||s?(a.length>0&&(a.sort(),r.push(...a),a=[]),r.push(l)):a.push(l)}return a.length>0&&(a.sort(),r.push(...a)),r}},on=e=>({cache:Qr(e.cacheSize),parseClassName:en(e),sortModifiers:tn(e),...Hr(e)}),rn=/\s+/,nn=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:a,sortModifiers:d}=t,l=[],m=e.trim().split(rn),s="";for(let p=m.length-1;p>=0;p-=1){let v=m[p],{isExternal:C,modifiers:P,hasImportantModifier:L,baseClassName:i,maybePostfixModifierPosition:n}=o(v);if(C){s=v+(s.length>0?" "+s:s);continue}let c=!!n,x=r(c?i.substring(0,n):i);if(!x){if(!c){s=v+(s.length>0?" "+s:s);continue}if(x=r(i),!x){s=v+(s.length>0?" "+s:s);continue}c=!1}let R=P.length===0?"":P.length===1?P[0]:d(P).join(":"),y=L?R+"!":R,T=y+x;if(l.indexOf(T)>-1)continue;l.push(T);let _=a(x,c);for(let $=0;$<_.length;++$){let M=_[$];l.push(y+M)}s=v+(s.length>0?" "+s:s)}return s},an=(...e)=>{let t=0,o,r,a="";for(;t<e.length;)(o=e[t++])&&(r=Co(o))&&(a&&(a+=" "),a+=r);return a},Co=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=Co(e[r]))&&(o&&(o+=" "),o+=t);return o},sn=(e,...t)=>{let o,r,a,d,l=s=>{let p=t.reduce((v,C)=>C(v),e());return o=on(p),r=o.cache.get,a=o.cache.set,d=m,m(s)},m=s=>{let p=r(s);if(p)return p;let v=nn(s,o);return a(s,v),v};return d=l,(...s)=>d(an(...s))},ln=[],H=e=>{let t=o=>o[e]||ln;return t.isThemeGetter=!0,t},wo=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ro=/^\((?:(\w[\w-]*):)?(.+)\)$/i,dn=/^\d+\/\d+$/,cn=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,mn=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,pn=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,un=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,fn=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Le=e=>dn.test(e),E=e=>!!e&&!Number.isNaN(Number(e)),he=e=>!!e&&Number.isInteger(Number(e)),Tt=e=>e.endsWith("%")&&E(e.slice(0,-1)),me=e=>cn.test(e),gn=()=>!0,bn=e=>mn.test(e)&&!pn.test(e),So=()=>!1,hn=e=>un.test(e),yn=e=>fn.test(e),vn=e=>!g(e)&&!b(e),xn=e=>_e(e,Eo,So),g=e=>wo.test(e),Ee=e=>_e(e,ko,bn),Dt=e=>_e(e,Nn,E),bo=e=>_e(e,No,So),Cn=e=>_e(e,Po,yn),tt=e=>_e(e,To,hn),b=e=>Ro.test(e),$e=e=>Oe(e,ko),wn=e=>Oe(e,Pn),ho=e=>Oe(e,No),Rn=e=>Oe(e,Eo),Sn=e=>Oe(e,Po),ot=e=>Oe(e,To,!0),_e=(e,t,o)=>{let r=wo.exec(e);return r?r[1]?t(r[1]):o(r[2]):!1},Oe=(e,t,o=!1)=>{let r=Ro.exec(e);return r?r[1]?t(r[1]):o:!1},No=e=>e==="position"||e==="percentage",Po=e=>e==="image"||e==="url",Eo=e=>e==="length"||e==="size"||e==="bg-size",ko=e=>e==="length",Nn=e=>e==="number",Pn=e=>e==="family-name",To=e=>e==="shadow",En=()=>{let e=H("color"),t=H("font"),o=H("text"),r=H("font-weight"),a=H("tracking"),d=H("leading"),l=H("breakpoint"),m=H("container"),s=H("spacing"),p=H("radius"),v=H("shadow"),C=H("inset-shadow"),P=H("text-shadow"),L=H("drop-shadow"),i=H("blur"),n=H("perspective"),c=H("aspect"),x=H("ease"),R=H("animate"),y=()=>["auto","avoid","all","avoid-page","page","left","right","column"],T=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],_=()=>[...T(),b,g],$=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto","contain","none"],h=()=>[b,g,s],A=()=>[Le,"full","auto",...h()],ee=()=>[he,"none","subgrid",b,g],be=()=>["auto",{span:["full",he,b,g]},he,b,g],de=()=>[he,"auto",b,g],Ne=()=>["auto","min","max","fr",b,g],Me=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ne=()=>["start","end","center","stretch","center-safe","end-safe"],q=()=>["auto",...h()],Pe=()=>[Le,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...h()],w=()=>[e,b,g],ao=()=>[...T(),ho,bo,{position:[b,g]}],io=()=>["no-repeat",{repeat:["","x","y","space","round"]}],so=()=>["auto","cover","contain",Rn,xn,{size:[b,g]}],Pt=()=>[Tt,$e,Ee],Z=()=>["","none","full",p,b,g],te=()=>["",E,$e,Ee],Xe=()=>["solid","dashed","dotted","double"],lo=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],j=()=>[E,Tt,ho,bo],co=()=>["","none",i,b,g],qe=()=>["none",E,b,g],Ze=()=>["none",E,b,g],Et=()=>[E,b,g],Qe=()=>[Le,"full",...h()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[me],breakpoint:[me],color:[gn],container:[me],"drop-shadow":[me],ease:["in","out","in-out"],font:[vn],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[me],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[me],shadow:[me],spacing:["px",E],text:[me],"text-shadow":[me],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Le,g,b,c]}],container:["container"],columns:[{columns:[E,g,b,m]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:_()}],overflow:[{overflow:$()}],"overflow-x":[{"overflow-x":$()}],"overflow-y":[{"overflow-y":$()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:A()}],"inset-x":[{"inset-x":A()}],"inset-y":[{"inset-y":A()}],start:[{start:A()}],end:[{end:A()}],top:[{top:A()}],right:[{right:A()}],bottom:[{bottom:A()}],left:[{left:A()}],visibility:["visible","invisible","collapse"],z:[{z:[he,"auto",b,g]}],basis:[{basis:[Le,"full","auto",m,...h()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[E,Le,"auto","initial","none",g]}],grow:[{grow:["",E,b,g]}],shrink:[{shrink:["",E,b,g]}],order:[{order:[he,"first","last","none",b,g]}],"grid-cols":[{"grid-cols":ee()}],"col-start-end":[{col:be()}],"col-start":[{"col-start":de()}],"col-end":[{"col-end":de()}],"grid-rows":[{"grid-rows":ee()}],"row-start-end":[{row:be()}],"row-start":[{"row-start":de()}],"row-end":[{"row-end":de()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Ne()}],"auto-rows":[{"auto-rows":Ne()}],gap:[{gap:h()}],"gap-x":[{"gap-x":h()}],"gap-y":[{"gap-y":h()}],"justify-content":[{justify:[...Me(),"normal"]}],"justify-items":[{"justify-items":[...ne(),"normal"]}],"justify-self":[{"justify-self":["auto",...ne()]}],"align-content":[{content:["normal",...Me()]}],"align-items":[{items:[...ne(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ne(),{baseline:["","last"]}]}],"place-content":[{"place-content":Me()}],"place-items":[{"place-items":[...ne(),"baseline"]}],"place-self":[{"place-self":["auto",...ne()]}],p:[{p:h()}],px:[{px:h()}],py:[{py:h()}],ps:[{ps:h()}],pe:[{pe:h()}],pt:[{pt:h()}],pr:[{pr:h()}],pb:[{pb:h()}],pl:[{pl:h()}],m:[{m:q()}],mx:[{mx:q()}],my:[{my:q()}],ms:[{ms:q()}],me:[{me:q()}],mt:[{mt:q()}],mr:[{mr:q()}],mb:[{mb:q()}],ml:[{ml:q()}],"space-x":[{"space-x":h()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":h()}],"space-y-reverse":["space-y-reverse"],size:[{size:Pe()}],w:[{w:[m,"screen",...Pe()]}],"min-w":[{"min-w":[m,"screen","none",...Pe()]}],"max-w":[{"max-w":[m,"screen","none","prose",{screen:[l]},...Pe()]}],h:[{h:["screen","lh",...Pe()]}],"min-h":[{"min-h":["screen","lh","none",...Pe()]}],"max-h":[{"max-h":["screen","lh",...Pe()]}],"font-size":[{text:["base",o,$e,Ee]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,b,Dt]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Tt,g]}],"font-family":[{font:[wn,g,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,b,g]}],"line-clamp":[{"line-clamp":[E,"none",b,Dt]}],leading:[{leading:[d,...h()]}],"list-image":[{"list-image":["none",b,g]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",b,g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:w()}],"text-color":[{text:w()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Xe(),"wavy"]}],"text-decoration-thickness":[{decoration:[E,"from-font","auto",b,Ee]}],"text-decoration-color":[{decoration:w()}],"underline-offset":[{"underline-offset":[E,"auto",b,g]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:h()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",b,g]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",b,g]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ao()}],"bg-repeat":[{bg:io()}],"bg-size":[{bg:so()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},he,b,g],radial:["",b,g],conic:[he,b,g]},Sn,Cn]}],"bg-color":[{bg:w()}],"gradient-from-pos":[{from:Pt()}],"gradient-via-pos":[{via:Pt()}],"gradient-to-pos":[{to:Pt()}],"gradient-from":[{from:w()}],"gradient-via":[{via:w()}],"gradient-to":[{to:w()}],rounded:[{rounded:Z()}],"rounded-s":[{"rounded-s":Z()}],"rounded-e":[{"rounded-e":Z()}],"rounded-t":[{"rounded-t":Z()}],"rounded-r":[{"rounded-r":Z()}],"rounded-b":[{"rounded-b":Z()}],"rounded-l":[{"rounded-l":Z()}],"rounded-ss":[{"rounded-ss":Z()}],"rounded-se":[{"rounded-se":Z()}],"rounded-ee":[{"rounded-ee":Z()}],"rounded-es":[{"rounded-es":Z()}],"rounded-tl":[{"rounded-tl":Z()}],"rounded-tr":[{"rounded-tr":Z()}],"rounded-br":[{"rounded-br":Z()}],"rounded-bl":[{"rounded-bl":Z()}],"border-w":[{border:te()}],"border-w-x":[{"border-x":te()}],"border-w-y":[{"border-y":te()}],"border-w-s":[{"border-s":te()}],"border-w-e":[{"border-e":te()}],"border-w-t":[{"border-t":te()}],"border-w-r":[{"border-r":te()}],"border-w-b":[{"border-b":te()}],"border-w-l":[{"border-l":te()}],"divide-x":[{"divide-x":te()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":te()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Xe(),"hidden","none"]}],"divide-style":[{divide:[...Xe(),"hidden","none"]}],"border-color":[{border:w()}],"border-color-x":[{"border-x":w()}],"border-color-y":[{"border-y":w()}],"border-color-s":[{"border-s":w()}],"border-color-e":[{"border-e":w()}],"border-color-t":[{"border-t":w()}],"border-color-r":[{"border-r":w()}],"border-color-b":[{"border-b":w()}],"border-color-l":[{"border-l":w()}],"divide-color":[{divide:w()}],"outline-style":[{outline:[...Xe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[E,b,g]}],"outline-w":[{outline:["",E,$e,Ee]}],"outline-color":[{outline:w()}],shadow:[{shadow:["","none",v,ot,tt]}],"shadow-color":[{shadow:w()}],"inset-shadow":[{"inset-shadow":["none",C,ot,tt]}],"inset-shadow-color":[{"inset-shadow":w()}],"ring-w":[{ring:te()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:w()}],"ring-offset-w":[{"ring-offset":[E,Ee]}],"ring-offset-color":[{"ring-offset":w()}],"inset-ring-w":[{"inset-ring":te()}],"inset-ring-color":[{"inset-ring":w()}],"text-shadow":[{"text-shadow":["none",P,ot,tt]}],"text-shadow-color":[{"text-shadow":w()}],opacity:[{opacity:[E,b,g]}],"mix-blend":[{"mix-blend":[...lo(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":lo()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[E]}],"mask-image-linear-from-pos":[{"mask-linear-from":j()}],"mask-image-linear-to-pos":[{"mask-linear-to":j()}],"mask-image-linear-from-color":[{"mask-linear-from":w()}],"mask-image-linear-to-color":[{"mask-linear-to":w()}],"mask-image-t-from-pos":[{"mask-t-from":j()}],"mask-image-t-to-pos":[{"mask-t-to":j()}],"mask-image-t-from-color":[{"mask-t-from":w()}],"mask-image-t-to-color":[{"mask-t-to":w()}],"mask-image-r-from-pos":[{"mask-r-from":j()}],"mask-image-r-to-pos":[{"mask-r-to":j()}],"mask-image-r-from-color":[{"mask-r-from":w()}],"mask-image-r-to-color":[{"mask-r-to":w()}],"mask-image-b-from-pos":[{"mask-b-from":j()}],"mask-image-b-to-pos":[{"mask-b-to":j()}],"mask-image-b-from-color":[{"mask-b-from":w()}],"mask-image-b-to-color":[{"mask-b-to":w()}],"mask-image-l-from-pos":[{"mask-l-from":j()}],"mask-image-l-to-pos":[{"mask-l-to":j()}],"mask-image-l-from-color":[{"mask-l-from":w()}],"mask-image-l-to-color":[{"mask-l-to":w()}],"mask-image-x-from-pos":[{"mask-x-from":j()}],"mask-image-x-to-pos":[{"mask-x-to":j()}],"mask-image-x-from-color":[{"mask-x-from":w()}],"mask-image-x-to-color":[{"mask-x-to":w()}],"mask-image-y-from-pos":[{"mask-y-from":j()}],"mask-image-y-to-pos":[{"mask-y-to":j()}],"mask-image-y-from-color":[{"mask-y-from":w()}],"mask-image-y-to-color":[{"mask-y-to":w()}],"mask-image-radial":[{"mask-radial":[b,g]}],"mask-image-radial-from-pos":[{"mask-radial-from":j()}],"mask-image-radial-to-pos":[{"mask-radial-to":j()}],"mask-image-radial-from-color":[{"mask-radial-from":w()}],"mask-image-radial-to-color":[{"mask-radial-to":w()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":T()}],"mask-image-conic-pos":[{"mask-conic":[E]}],"mask-image-conic-from-pos":[{"mask-conic-from":j()}],"mask-image-conic-to-pos":[{"mask-conic-to":j()}],"mask-image-conic-from-color":[{"mask-conic-from":w()}],"mask-image-conic-to-color":[{"mask-conic-to":w()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ao()}],"mask-repeat":[{mask:io()}],"mask-size":[{mask:so()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",b,g]}],filter:[{filter:["","none",b,g]}],blur:[{blur:co()}],brightness:[{brightness:[E,b,g]}],contrast:[{contrast:[E,b,g]}],"drop-shadow":[{"drop-shadow":["","none",L,ot,tt]}],"drop-shadow-color":[{"drop-shadow":w()}],grayscale:[{grayscale:["",E,b,g]}],"hue-rotate":[{"hue-rotate":[E,b,g]}],invert:[{invert:["",E,b,g]}],saturate:[{saturate:[E,b,g]}],sepia:[{sepia:["",E,b,g]}],"backdrop-filter":[{"backdrop-filter":["","none",b,g]}],"backdrop-blur":[{"backdrop-blur":co()}],"backdrop-brightness":[{"backdrop-brightness":[E,b,g]}],"backdrop-contrast":[{"backdrop-contrast":[E,b,g]}],"backdrop-grayscale":[{"backdrop-grayscale":["",E,b,g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[E,b,g]}],"backdrop-invert":[{"backdrop-invert":["",E,b,g]}],"backdrop-opacity":[{"backdrop-opacity":[E,b,g]}],"backdrop-saturate":[{"backdrop-saturate":[E,b,g]}],"backdrop-sepia":[{"backdrop-sepia":["",E,b,g]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":h()}],"border-spacing-x":[{"border-spacing-x":h()}],"border-spacing-y":[{"border-spacing-y":h()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",b,g]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[E,"initial",b,g]}],ease:[{ease:["linear","initial",x,b,g]}],delay:[{delay:[E,b,g]}],animate:[{animate:["none",R,b,g]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[n,b,g]}],"perspective-origin":[{"perspective-origin":_()}],rotate:[{rotate:qe()}],"rotate-x":[{"rotate-x":qe()}],"rotate-y":[{"rotate-y":qe()}],"rotate-z":[{"rotate-z":qe()}],scale:[{scale:Ze()}],"scale-x":[{"scale-x":Ze()}],"scale-y":[{"scale-y":Ze()}],"scale-z":[{"scale-z":Ze()}],"scale-3d":["scale-3d"],skew:[{skew:Et()}],"skew-x":[{"skew-x":Et()}],"skew-y":[{"skew-y":Et()}],transform:[{transform:[b,g,"","none","gpu","cpu"]}],"transform-origin":[{origin:_()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Qe()}],"translate-x":[{"translate-x":Qe()}],"translate-y":[{"translate-y":Qe()}],"translate-z":[{"translate-z":Qe()}],"translate-none":["translate-none"],accent:[{accent:w()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:w()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",b,g]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":h()}],"scroll-mx":[{"scroll-mx":h()}],"scroll-my":[{"scroll-my":h()}],"scroll-ms":[{"scroll-ms":h()}],"scroll-me":[{"scroll-me":h()}],"scroll-mt":[{"scroll-mt":h()}],"scroll-mr":[{"scroll-mr":h()}],"scroll-mb":[{"scroll-mb":h()}],"scroll-ml":[{"scroll-ml":h()}],"scroll-p":[{"scroll-p":h()}],"scroll-px":[{"scroll-px":h()}],"scroll-py":[{"scroll-py":h()}],"scroll-ps":[{"scroll-ps":h()}],"scroll-pe":[{"scroll-pe":h()}],"scroll-pt":[{"scroll-pt":h()}],"scroll-pr":[{"scroll-pr":h()}],"scroll-pb":[{"scroll-pb":h()}],"scroll-pl":[{"scroll-pl":h()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",b,g]}],fill:[{fill:["none",...w()]}],"stroke-w":[{stroke:[E,$e,Ee,Dt]}],stroke:[{stroke:["none",...w()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Do=sn(En)});function f(...e){return Do(et(e))}var ae=ce(()=>{kt();Io()});function K({className:e,...t}){return(0,Mo.jsx)("div",{className:f("animate-pulse rounded-md bg-primary/10",e),...t})}var Mo,rt=ce(()=>{ae();Mo=require("react/jsx-runtime")});function Lo(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function _o(...e){return t=>{let o=!1,r=e.map(a=>{let d=Lo(a,t);return!o&&typeof d=="function"&&(o=!0),d});if(o)return()=>{for(let a=0;a<r.length;a++){let d=r[a];typeof d=="function"?d():Lo(e[a],null)}}}}var kn,Oo=ce(()=>{kn=O(require("react"),1)});function Dn(e){return typeof e=="object"&&e!==null&&"then"in e}function Ao(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Tn&&"_payload"in e&&Dn(e._payload)}function In(e){let t=Mn(e),o=G.forwardRef((r,a)=>{let{children:d,...l}=r;Ao(d)&&typeof at=="function"&&(d=at(d._payload));let m=G.Children.toArray(d),s=m.find(_n);if(s){let p=s.props.children,v=m.map(C=>C===s?G.Children.count(p)>1?G.Children.only(null):G.isValidElement(p)?p.props.children:null:C);return(0,nt.jsx)(t,{...l,ref:a,children:G.isValidElement(p)?G.cloneElement(p,void 0,v):null})}return(0,nt.jsx)(t,{...l,ref:a,children:d})});return o.displayName=`${e}.Slot`,o}function Mn(e){let t=G.forwardRef((o,r)=>{let{children:a,...d}=o;if(Ao(a)&&typeof at=="function"&&(a=at(a._payload)),G.isValidElement(a)){let l=An(a),m=On(d,a.props);return a.type!==G.Fragment&&(m.ref=r?_o(r,l):l),G.cloneElement(a,m)}return G.Children.count(a)>1?G.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}function _n(e){return G.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ln}function On(e,t){let o={...t};for(let r in t){let a=e[r],d=t[r];/^on[A-Z]/.test(r)?a&&d?o[r]=(...m)=>{let s=d(...m);return a(...m),s}:a&&(o[r]=a):r==="style"?o[r]={...a,...d}:r==="className"&&(o[r]=[a,d].filter(Boolean).join(" "))}return{...e,...o}}function An(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var G,nt,Tn,at,ye,Ln,Mt=ce(()=>{G=O(require("react"),1);Oo();nt=require("react/jsx-runtime"),Tn=Symbol.for("react.lazy"),at=G[" use ".trim().toString()];ye=In("Slot");Ln=Symbol("radix.slottable")});var Fo,zo,Ae,it=ce(()=>{kt();Fo=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,zo=et,Ae=(e,t)=>o=>{var r;if(t?.variants==null)return zo(e,o?.class,o?.className);let{variants:a,defaultVariants:d}=t,l=Object.keys(a).map(p=>{let v=o?.[p],C=d?.[p];if(v===null)return null;let P=Fo(v)||Fo(C);return a[p][P]}),m=o&&Object.entries(o).reduce((p,v)=>{let[C,P]=v;return P===void 0||(p[C]=P),p},{}),s=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((p,v)=>{let{class:C,className:P,...L}=v;return Object.entries(L).every(i=>{let[n,c]=i;return Array.isArray(c)?c.includes({...d,...m}[n]):{...d,...m}[n]===c})?[...p,C,P]:p},[]);return zo(e,l,s,o?.class,o?.className)}});var Bo,Vo,Fn,ie,Fe=ce(()=>{Bo=O(require("react"));Mt();it();ae();Vo=require("react/jsx-runtime"),Fn=Ae("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),ie=Bo.forwardRef(({className:e,variant:t,size:o,asChild:r=!1,...a},d)=>(0,Vo.jsx)(r?ye:"button",{className:f(Fn({variant:t,size:o,className:e})),ref:d,...a}));ie.displayName="Button"});var jo={};mo(jo,{MarkdownViewer:()=>Vn});function ke(e){let t=/[^\w\s-]/g,o=/\s+/g,r=/-+/g;return typeof e=="string"?e.toLowerCase().replace(t,"").replace(o,"-").replace(r,"-").trim():Array.isArray(e)?e.map(a=>{if(typeof a=="string")return a;if(X.isValidElement(a)){let d=a.props;if(d.children)return ke(d.children)}return""}).join("").toLowerCase().replace(t,"").replace(o,"-").replace(r,"-").trim():""}function zn({codeString:e,language:t,copiedCode:o,setCopiedCode:r,codeTheme:a}){let d=X.useId();return(0,u.jsxs)("div",{className:"my-6 overflow-hidden rounded-lg border border-border bg-card",children:[(0,u.jsxs)("div",{className:"flex h-12 items-center justify-between border-b border-border bg-muted/50 px-4",children:[(0,u.jsx)("span",{className:"text-sm font-medium text-foreground",children:t}),(0,u.jsxs)(ie,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:()=>{navigator.clipboard.writeText(e),r(d),setTimeout(()=>r(null),2e3)},children:[o===d?(0,u.jsx)(st.Check,{className:"h-4 w-4"}):(0,u.jsx)(st.Copy,{className:"h-4 w-4"}),(0,u.jsx)("span",{className:"sr-only",children:"Copy code"})]})]}),(0,u.jsx)($o.Prism,{style:a,language:t,PreTag:"div",showLineNumbers:!1,customStyle:{margin:0,padding:"1rem",fontSize:"14px",lineHeight:"1.5",background:"transparent"},children:e})]})}function Bn(e,t,o){if(!e||e.startsWith("http://")||e.startsWith("https://")||e.startsWith("data:"))return e;if(e.startsWith("/")){let p=o.replace(/^\/+/,"").replace(/\/+$/,"");return e.startsWith(`/${p}/`)?e:p?`/${p}${e}`:e}if(!t){let p=o.replace(/^\/+/,"").replace(/\/+$/,""),v=e.replace(/\\/g,"/").replace(/^\.\//,"");return p?`/${p}/${v}`:`/${v}`}let r=t.replace(/[/\\][^/\\]*\.md$/,"").replace(/\\/g,"/"),d=e.replace(/\\/g,"/").replace(/^\.\//,"").split("/").filter(Boolean),l=r?r.split("/").filter(Boolean):[];for(let p of d)p===".."?l.length>0&&l.pop():p!=="."&&l.push(p);let m=l.length>0?l.join("/"):"",s=o.replace(/^\/+/,"").replace(/\/+$/,"");return s?m?`/${s}/${m}`:`/${s}`:m?`/${m}`:"/"}function Vn({filePath:e,folderPath:t,onPageSelect:o}){let[r,a]=X.useState(""),[d,l]=X.useState(!0),[m,s]=X.useState(null),[p,v]=X.useState(!1),[C,P]=X.useState(null);X.useEffect(()=>{let i=()=>{v(document.documentElement.classList.contains("dark"))};i();let n=new MutationObserver(i);return n.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),()=>n.disconnect()},[]);let L=p?lt.oneDark:lt.oneLight;return X.useEffect(()=>{e&&(async()=>{l(!0),s(null),a("");let n=200;try{let c=Date.now(),x=new URLSearchParams;x.set("filePath",e),x.set("folderPath",t);let R=await fetch(`/api/dock-rush-markdown?${x.toString()}`,{headers:{Accept:"application/json"}});if(!R.ok)throw new Error(`HTTP ${R.status}: ${R.statusText}`);let y=await R.json(),T=Date.now()-c,_=Math.max(0,n-T);if(await new Promise($=>setTimeout($,_)),y.success)a(y.content),setTimeout(()=>{l(!1)},100);else throw new Error(y.error||"Failed to load markdown")}catch(c){s(c instanceof Error?c.message:"Unknown error"),l(!1)}})()},[e,t]),m?(0,u.jsx)("div",{className:"flex flex-col items-center justify-center p-12 animate-in fade-in-0 duration-300",children:(0,u.jsxs)("p",{className:"text-destructive",children:["\u041E\u0448\u0438\u0431\u043A\u0430 \u0437\u0430\u0433\u0440\u0443\u0437\u043A\u0438 \u0444\u0430\u0439\u043B\u0430: ",m]})}):(0,u.jsxs)("div",{className:"relative mx-auto max-w-4xl px-6 py-8 h-full",children:[d&&(0,u.jsxs)("div",{className:"flex flex-col gap-4 p-6 animate-in fade-in-0 duration-200",children:[(0,u.jsx)(K,{className:"h-8 w-3/4"}),(0,u.jsx)(K,{className:"h-4 w-full"}),(0,u.jsx)(K,{className:"h-4 w-full"}),(0,u.jsx)(K,{className:"h-4 w-2/3"}),(0,u.jsx)(K,{className:"h-4 w-full"}),(0,u.jsx)(K,{className:"h-4 w-5/6"}),(0,u.jsx)(K,{className:"h-4 w-full"}),(0,u.jsx)(K,{className:"h-4 w-4/5"})]}),!d&&r&&(0,u.jsx)("div",{className:"animate-in fade-in-0 duration-300",children:(0,u.jsx)(Go.default,{remarkPlugins:[Uo.default],rehypePlugins:[Ho.default,Wo.default],components:{h1:({node:i,...n})=>{let c=ke(n.children);return(0,u.jsx)("h1",{id:c,className:"mb-6 mt-8 scroll-mt-20 text-4xl font-bold tracking-tight",...n})},h2:({node:i,...n})=>{let c=ke(n.children);return(0,u.jsx)("h2",{id:c,className:"mb-4 mt-8 scroll-mt-20 text-3xl font-semibold tracking-tight",...n})},h3:({node:i,...n})=>{let c=ke(n.children);return(0,u.jsx)("h3",{id:c,className:"mb-3 mt-6 scroll-mt-20 text-2xl font-semibold tracking-tight",...n})},h4:({node:i,...n})=>{let c=ke(n.children);return(0,u.jsx)("h4",{id:c,className:"mb-2 mt-4 scroll-mt-20 text-xl font-semibold tracking-tight",...n})},h5:({node:i,...n})=>{let c=ke(n.children);return(0,u.jsx)("h5",{id:c,className:"mb-2 mt-4 scroll-mt-20 text-lg font-semibold",...n})},h6:({node:i,...n})=>{let c=ke(n.children);return(0,u.jsx)("h6",{id:c,className:"mb-2 mt-4 scroll-mt-20 text-base font-semibold",...n})},p:({node:i,children:n,...c})=>{if(X.Children.toArray(n).some(y=>{if(X.isValidElement(y)){if(y.type==="figure"||y.type==="img")return!0;let T=y.props;if(T?.node){let _=T.node;if(_.type==="element"&&(_.tagName==="img"||_.tagName==="figure"))return!0}}return!1})){let{ref:y,...T}=c;return(0,u.jsx)("div",{className:"mb-6 leading-7 text-muted-foreground",...T,children:n})}return(0,u.jsx)("p",{className:"mb-6 leading-7 text-muted-foreground",...c,children:n})},ul:({node:i,...n})=>(0,u.jsx)("ul",{className:"my-6 ml-6 list-disc space-y-2 text-muted-foreground",...n}),ol:({node:i,...n})=>(0,u.jsx)("ol",{className:"my-6 ml-6 list-decimal space-y-2 text-muted-foreground",...n}),li:({node:i,...n})=>(0,u.jsx)("li",{className:"leading-7 pl-2",...n}),input:({node:i,...n})=>n.type==="checkbox"?(0,u.jsx)("input",{type:"checkbox",className:"mr-2 h-4 w-4 rounded border-border accent-primary",disabled:!0,...n}):(0,u.jsx)("input",{...n}),blockquote:({node:i,...n})=>(0,u.jsx)("blockquote",{className:"my-6 border-l-2 border-border bg-muted/50 pl-6 italic text-muted-foreground",...n}),code:({node:i,inline:n,className:c,children:x,...R})=>{let y=/language-(\w+)/.exec(c||""),T=String(x).replace(/\n$/,"");return!n&&y?(0,u.jsx)(zn,{codeString:T,language:y[1],copiedCode:C,setCopiedCode:P,codeTheme:L}):(0,u.jsx)("code",{className:"relative rounded bg-muted px-[0.3rem] py-[0.2rem] font-mono text-sm font-semibold",...R,children:x})},pre:({node:i,...n})=>{let{ref:c,...x}=n;return(0,u.jsx)("div",{...x})},img:({src:i,alt:n,title:c})=>{let x=Bn(i||"",e||"",t||"docs");return(0,u.jsxs)("figure",{className:"my-8",children:[(0,u.jsx)("img",{src:x,alt:n,title:c,loading:"lazy",className:"rounded-lg border border-border bg-muted max-w-full h-auto",onError:R=>{let y=R.target;y.style.display="none";let T=y.closest("figure");if(T&&!T.querySelector(".image-error")){let _=document.createElement("div");_.className="image-error p-4 text-center text-sm text-muted-foreground border border-dashed border-border rounded-lg",_.textContent=`\u0418\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E: ${i} (\u043F\u0443\u0442\u044C: ${x})`,T.appendChild(_)}}}),n&&(0,u.jsx)("figcaption",{className:"mt-3 text-center text-sm text-muted-foreground",children:n})]})},a:({href:i,children:n,...c})=>!i||i.startsWith("http")||i.startsWith("#")||i.startsWith("mailto:")||i.startsWith("tel:")?(0,u.jsx)("a",{href:i,className:"font-medium text-primary underline underline-offset-4 transition-colors hover:text-primary/80",target:"_blank",rel:"noopener noreferrer",...c,children:n}):i.toLowerCase().endsWith(".md")?(0,u.jsx)("a",{href:i,onClick:R=>{R.preventDefault();let T=e.replace(/[/\\][^/\\]*\.md$/,"").replace(/\\/g,"/"),$=i.replace(/\\/g,"/").split("/").filter(Boolean),M=T.split("/").filter(Boolean);for(let A of $)A===".."?M.pop():A!=="."&&M.push(A);let h=M.join("/");o(h)},className:"font-medium text-primary underline underline-offset-4 transition-colors hover:text-primary/80 cursor-pointer",...c,children:n}):(0,u.jsx)("a",{href:i,className:"font-medium text-primary underline underline-offset-4 transition-colors hover:text-primary/80",...c}),table:({children:i})=>(0,u.jsx)("div",{className:"my-6 w-full overflow-y-auto",children:(0,u.jsx)("table",{className:"w-full border-collapse",children:i})}),thead:({node:i,...n})=>(0,u.jsx)("thead",{className:"[&_tr]:border-b",...n}),th:({node:i,...n})=>(0,u.jsx)("th",{className:"h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",...n}),td:({node:i,...n})=>(0,u.jsx)("td",{className:"p-4 align-middle [&:has([role=checkbox])]:pr-0",...n}),tbody:({node:i,...n})=>(0,u.jsx)("tbody",{className:"[&_tr:last-child]:border-0",...n}),tr:({node:i,...n})=>(0,u.jsx)("tr",{className:"border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",...n}),hr:({node:i,...n})=>(0,u.jsx)("hr",{className:"my-8 border-t border-border",...n}),strong:({node:i,...n})=>(0,u.jsx)("strong",{className:"font-semibold text-foreground",...n}),em:({node:i,...n})=>(0,u.jsx)("em",{className:"italic text-foreground",...n}),del:({node:i,...n})=>(0,u.jsx)("del",{className:"line-through text-muted-foreground",...n}),mark:({node:i,...n})=>(0,u.jsx)("mark",{className:"bg-yellow-200 dark:bg-yellow-900/50 px-1 rounded",...n}),kbd:({node:i,...n})=>(0,u.jsx)("kbd",{className:"px-2 py-1 text-xs font-semibold text-foreground bg-muted border border-border rounded shadow-sm",...n}),abbr:({node:i,title:n,...c})=>(0,u.jsx)("abbr",{title:n,className:"underline decoration-dotted cursor-help",...c}),sub:({node:i,...n})=>(0,u.jsx)("sub",{className:"text-xs align-sub",...n}),sup:({node:i,...n})=>(0,u.jsx)("sup",{className:"text-xs align-super",...n}),details:({node:i,...n})=>(0,u.jsx)("details",{className:"my-4 px-4 rounded-lg border border-border bg-muted/30",...n}),summary:({node:i,...n})=>(0,u.jsx)("summary",{className:"cursor-pointer px-4 py-2 font-semibold hover:bg-muted/50",...n}),dl:({node:i,...n})=>(0,u.jsx)("dl",{className:"my-4 space-y-2",...n}),dt:({node:i,...n})=>(0,u.jsx)("dt",{className:"font-semibold text-foreground",...n}),dd:({node:i,...n})=>(0,u.jsx)("dd",{className:"ml-6 text-muted-foreground",...n}),video:({node:i,src:n,...c})=>(0,u.jsx)("video",{src:n,controls:!0,className:"my-4 w-full rounded-lg border border-border",...c}),iframe:({node:i,src:n,title:c,...x})=>(0,u.jsx)("iframe",{src:n,title:c,className:"my-4 w-full rounded-lg border border-border",allowFullScreen:!0,...x}),audio:({node:i,src:n,...c})=>(0,u.jsx)("audio",{src:n,controls:!0,className:"my-4 w-full",...c}),br:({node:i,...n})=>(0,u.jsx)("br",{...n}),div:({node:i,className:n,...c})=>{let x=n?`${n} my-2`:"my-2";return(0,u.jsx)("div",{className:x,...c})},span:({node:i,...n})=>(0,u.jsx)("span",{...n}),section:({node:i,...n})=>(0,u.jsx)("section",{className:"my-6",...n}),article:({node:i,...n})=>(0,u.jsx)("article",{className:"my-6",...n}),aside:({node:i,...n})=>(0,u.jsx)("aside",{className:"my-4 border-l-4 border-primary pl-4 italic text-muted-foreground",...n}),address:({node:i,...n})=>(0,u.jsx)("address",{className:"my-4 not-italic",...n}),time:({node:i,datetime:n,...c})=>(0,u.jsx)("time",{dateTime:n,className:"text-muted-foreground",...c}),small:({node:i,...n})=>(0,u.jsx)("small",{className:"text-sm text-muted-foreground",...n}),ins:({node:i,...n})=>(0,u.jsx)("ins",{className:"no-underline bg-green-100 dark:bg-green-900/30 px-1 rounded",...n}),samp:({node:i,...n})=>(0,u.jsx)("samp",{className:"font-mono bg-muted px-1 py-0.5 rounded text-sm",...n}),var:({node:i,...n})=>(0,u.jsx)("var",{className:"italic font-mono text-primary",...n}),cite:({node:i,...n})=>(0,u.jsx)("cite",{className:"italic text-muted-foreground",...n}),q:({node:i,...n})=>(0,u.jsx)("q",{className:"italic text-muted-foreground",...n}),dfn:({node:i,...n})=>(0,u.jsx)("dfn",{className:"italic font-semibold",...n}),bdi:({node:i,...n})=>(0,u.jsx)("bdi",{...n}),bdo:({node:i,dir:n,...c})=>(0,u.jsx)("bdo",{dir:n,...c}),wbr:({node:i,...n})=>(0,u.jsx)("wbr",{...n}),ruby:({node:i,...n})=>(0,u.jsx)("ruby",{className:"text-base",...n}),rt:({node:i,...n})=>(0,u.jsx)("rt",{className:"text-xs text-muted-foreground",...n}),rp:({node:i,...n})=>(0,u.jsx)("rp",{className:"text-xs text-muted-foreground",...n}),meter:({node:i,value:n,min:c,max:x,...R})=>(0,u.jsx)("meter",{value:n,min:c,max:x,className:"w-full h-2 rounded",...R}),progress:({node:i,value:n,max:c,...x})=>(0,u.jsx)("progress",{value:n,max:c,className:"w-full h-2 rounded",...x})},children:r})})]})}var st,X,Go,$o,lt,Ho,Wo,Uo,u,Ko=ce(()=>{Fe();rt();st=require("lucide-react"),X=O(require("react")),Go=O(require("react-markdown")),$o=require("react-syntax-highlighter"),lt=require("react-syntax-highlighter/dist/esm/styles/prism"),Ho=O(require("rehype-raw")),Wo=O(require("rehype-sanitize")),Uo=O(require("remark-gfm")),u=require("react/jsx-runtime")});var Da={};mo(Da,{Documentation:()=>no});module.exports=Br(Da);rt();var dt=O(require("react")),pe=require("react/jsx-runtime"),Gn=dt.lazy(()=>Promise.resolve().then(()=>(Ko(),jo)).then(e=>({default:e.MarkdownViewer})));function Yo(e){return(0,pe.jsx)(dt.Suspense,{fallback:(0,pe.jsxs)("div",{className:"p-6",children:[(0,pe.jsx)(K,{className:"h-8 w-3/4 mb-4"}),(0,pe.jsx)(K,{className:"h-4 w-full mb-2"}),(0,pe.jsx)(K,{className:"h-4 w-full mb-2"}),(0,pe.jsx)(K,{className:"h-4 w-2/3"})]}),children:(0,pe.jsx)(Gn,{...e})})}Fe();ae();var Y=require("lucide-react"),Xo=O(require("react")),S=require("react/jsx-runtime");function $n(e){switch(e){case"ROOT_FILE_ERROR":case"ORPHAN_FILE_ERROR":return Y.FileX;case"VERSION_FORMAT_ERROR":return Y.FolderX;case"FILE_IN_WRONG_FOLDER":return Y.FileWarning;case"NESTED_VERSION_ERROR":case"NESTED_DIRECTORY_ERROR":return Y.FolderTree;case"DUPLICATE_FILE_ERROR":return Y.Copy;default:return Y.AlertCircle}}function Hn(e){switch(e){case"ROOT_FILE_ERROR":return"\u0424\u0430\u0439\u043B \u0432 \u043A\u043E\u0440\u043D\u0435";case"VERSION_FORMAT_ERROR":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0444\u043E\u0440\u043C\u0430\u0442 \u0432\u0435\u0440\u0441\u0438\u0438";case"ORPHAN_FILE_ERROR":return"\u0424\u0430\u0439\u043B \u0431\u0435\u0437 \u0432\u0435\u0440\u0441\u0438\u0438";case"FILE_IN_WRONG_FOLDER":return"\u0424\u0430\u0439\u043B \u0432 \u043D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u043E\u0439 \u043F\u0430\u043F\u043A\u0435";case"NESTED_VERSION_ERROR":return"\u0412\u043B\u043E\u0436\u0435\u043D\u043D\u0430\u044F \u0432\u0435\u0440\u0441\u0438\u044F";case"NESTED_DIRECTORY_ERROR":return"\u0412\u043B\u043E\u0436\u0435\u043D\u043D\u0430\u044F \u0434\u0438\u0440\u0435\u043A\u0442\u043E\u0440\u0438\u044F";case"DUPLICATE_FILE_ERROR":return"\u0414\u0443\u0431\u043B\u0438\u043A\u0430\u0442 \u0444\u0430\u0439\u043B\u0430";case"INVALID_ROOT_MD_FILE":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 .md \u0444\u0430\u0439\u043B \u0432 \u043A\u043E\u0440\u043D\u0435 \u0432\u0435\u0440\u0441\u0438\u0438";case"NESTED_DIRECTORY_IN_GROUP":return"\u0412\u043B\u043E\u0436\u0435\u043D\u043D\u0430\u044F \u043F\u0430\u043F\u043A\u0430 \u0432 \u0433\u0440\u0443\u043F\u043F\u0435";case"NESTED_DIRECTORY_IN_DROPDOWN":return"\u0412\u043B\u043E\u0436\u0435\u043D\u043D\u0430\u044F \u043F\u0430\u043F\u043A\u0430 \u0432 dropdown";case"BUTTON_FILE_IN_WRONG_PLACE":return"\u041A\u043D\u043E\u043F\u043A\u0430 \u0432 \u043D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u043E\u043C \u043C\u0435\u0441\u0442\u0435";default:return"\u041E\u0448\u0438\u0431\u043A\u0430"}}function Wn({error:e,index:t}){let o=$n(e.type),[r,a]=Xo.useState(!1),d=()=>{let l=e.path||e.paths?.join(", ")||"";navigator.clipboard.writeText(l),a(!0),setTimeout(()=>a(!1),2e3)};return(0,S.jsxs)("div",{className:f("group relative rounded-lg border border-destructive/20 bg-destructive/5 p-4 transition-all hover:border-destructive/40 hover:bg-destructive/10","flex flex-col gap-3"),children:[(0,S.jsxs)("div",{className:"flex items-start gap-3",children:[(0,S.jsx)("div",{className:"mt-0.5 flex h-8 w-8 shrink-0 items-center justify-center rounded-md bg-destructive/10 text-destructive",children:(0,S.jsx)(o,{className:"h-4 w-4"})}),(0,S.jsxs)("div",{className:"flex-1 space-y-1",children:[(0,S.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,S.jsxs)("div",{className:"flex items-center gap-2",children:[(0,S.jsxs)("span",{className:"text-xs font-semibold text-muted-foreground",children:["#",t+1]}),(0,S.jsx)("span",{className:"text-sm font-semibold text-destructive",children:Hn(e.type)})]}),(0,S.jsx)(ie,{variant:"ghost",size:"sm",className:"h-7 w-7 p-0",onClick:d,title:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043F\u0443\u0442\u044C",children:r?(0,S.jsx)(Y.CheckCircle2,{className:"h-3.5 w-3.5 text-green-600"}):(0,S.jsx)(Y.Copy,{className:"h-3.5 w-3.5"})})]}),(0,S.jsxs)("div",{className:"space-y-2",children:[(e.file||e.folder||e.files)&&(0,S.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,S.jsxs)("span",{className:"text-xs text-muted-foreground",children:[e.file&&"\u0424\u0430\u0439\u043B:",e.folder&&"\u041F\u0430\u043F\u043A\u0430:",e.files&&"\u0424\u0430\u0439\u043B\u044B:"]}),e.file&&(0,S.jsx)("code",{className:"rounded bg-muted px-1.5 py-0.5 text-xs font-mono text-foreground",children:e.file}),e.folder&&(0,S.jsx)("code",{className:"rounded bg-muted px-1.5 py-0.5 text-xs font-mono text-foreground",children:e.folder}),e.files&&(0,S.jsx)("div",{className:"flex flex-wrap gap-1",children:e.files.map(l=>(0,S.jsx)("code",{className:"rounded bg-muted px-1.5 py-0.5 text-xs font-mono text-foreground",children:l},l))})]}),(0,S.jsxs)("div",{className:"flex items-start gap-2",children:[(0,S.jsx)("span",{className:"text-xs text-muted-foreground",children:"\u041F\u0443\u0442\u044C:"}),(0,S.jsx)("code",{className:"break-all rounded bg-muted px-1.5 py-0.5 text-xs font-mono text-foreground",children:e.path||e.paths?.join(", ")})]})]})]})]}),(0,S.jsxs)("div",{className:"ml-11 space-y-2 border-t border-destructive/10 pt-3",children:[(0,S.jsxs)("div",{children:[(0,S.jsx)("span",{className:"text-xs font-medium text-muted-foreground",children:"\u041F\u0440\u0438\u0447\u0438\u043D\u0430:"}),(0,S.jsx)("p",{className:"mt-1 text-sm text-foreground",children:e.reason})]}),(0,S.jsxs)("div",{children:[(0,S.jsx)("span",{className:"text-xs font-medium text-green-700 dark:text-green-400",children:"\u0420\u0435\u0448\u0435\u043D\u0438\u0435:"}),(0,S.jsx)("p",{className:"mt-1 text-sm text-green-800 dark:text-green-300",children:e.fix})]})]})]})}function qo({errors:e}){return!e||e.length===0?(0,S.jsxs)("div",{className:"flex flex-col items-center justify-center rounded-lg border border-green-200 bg-green-50/50 p-12 dark:border-green-900 dark:bg-green-950/20",children:[(0,S.jsx)(Y.CheckCircle2,{className:"mb-4 h-12 w-12 text-green-600 dark:text-green-400"}),(0,S.jsx)("h3",{className:"mb-2 text-lg font-semibold text-green-900 dark:text-green-100",children:"\u041E\u0448\u0438\u0431\u043E\u043A \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E"}),(0,S.jsx)("p",{className:"text-center text-sm text-green-700 dark:text-green-300",children:"\u0421\u0442\u0440\u0443\u043A\u0442\u0443\u0440\u0430 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430\u0446\u0438\u0438 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0432\u0441\u0435\u043C \u0442\u0440\u0435\u0431\u043E\u0432\u0430\u043D\u0438\u044F\u043C"})]}):(0,S.jsxs)("div",{className:"space-y-4",children:[(0,S.jsxs)("div",{className:"flex items-center justify-between",children:[(0,S.jsxs)("div",{children:[(0,S.jsx)("h2",{className:"text-2xl font-bold tracking-tight",children:"\u041E\u0448\u0438\u0431\u043A\u0438 \u0441\u0442\u0440\u0443\u043A\u0442\u0443\u0440\u044B \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430\u0446\u0438\u0438"}),(0,S.jsxs)("p",{className:"mt-1 text-sm text-muted-foreground",children:["\u041D\u0430\u0439\u0434\u0435\u043D\u043E ",e.length," ",e.length===1?"\u043E\u0448\u0438\u0431\u043A\u0430":"\u043E\u0448\u0438\u0431\u043E\u043A"," ","\u0432 \u0441\u0442\u0440\u0443\u043A\u0442\u0443\u0440\u0435 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430\u0446\u0438\u0438"]})]}),(0,S.jsx)("div",{className:"flex h-10 w-10 items-center justify-center rounded-full bg-destructive/10 text-destructive",children:(0,S.jsx)(Y.AlertCircle,{className:"h-5 w-5"})})]}),(0,S.jsx)("div",{className:"space-y-3",children:e.map((t,o)=>(0,S.jsx)(Wn,{error:t,index:o},`${t.type}-${t.path}-${o}`))})]})}var Jo=require("lucide-react");var ve=O(require("react")),I=O(require("@radix-ui/react-select")),Te=require("lucide-react");ae();var V=require("react/jsx-runtime"),ct=I.Root;var mt=I.Value,He=ve.forwardRef(({className:e,children:t,...o},r)=>(0,V.jsxs)(I.Trigger,{ref:r,className:f("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...o,children:[t,(0,V.jsx)(I.Icon,{asChild:!0,children:(0,V.jsx)(Te.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));He.displayName=I.Trigger.displayName;var Zo=ve.forwardRef(({className:e,...t},o)=>(0,V.jsx)(I.ScrollUpButton,{ref:o,className:f("flex cursor-default items-center justify-center py-1",e),...t,children:(0,V.jsx)(Te.ChevronUp,{className:"h-4 w-4"})}));Zo.displayName=I.ScrollUpButton.displayName;var Qo=ve.forwardRef(({className:e,...t},o)=>(0,V.jsx)(I.ScrollDownButton,{ref:o,className:f("flex cursor-default items-center justify-center py-1",e),...t,children:(0,V.jsx)(Te.ChevronDown,{className:"h-4 w-4"})}));Qo.displayName=I.ScrollDownButton.displayName;var We=ve.forwardRef(({className:e,children:t,position:o="popper",...r},a)=>(0,V.jsx)(I.Portal,{children:(0,V.jsxs)(I.Content,{ref:a,className:f("relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-select-content-transform-origin]",o==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:o,...r,children:[(0,V.jsx)(Zo,{}),(0,V.jsx)(I.Viewport,{className:f("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),(0,V.jsx)(Qo,{})]})}));We.displayName=I.Content.displayName;var Un=ve.forwardRef(({className:e,...t},o)=>(0,V.jsx)(I.Label,{ref:o,className:f("px-2 py-1.5 text-sm font-semibold",e),...t}));Un.displayName=I.Label.displayName;var Ue=ve.forwardRef(({className:e,children:t,...o},r)=>(0,V.jsxs)(I.Item,{ref:r,className:f("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...o,children:[(0,V.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,V.jsx)(I.ItemIndicator,{children:(0,V.jsx)(Te.Check,{className:"h-4 w-4"})})}),(0,V.jsx)(I.ItemText,{children:t})]}));Ue.displayName=I.Item.displayName;var jn=ve.forwardRef(({className:e,...t},o)=>(0,V.jsx)(I.Separator,{ref:o,className:f("-mx-1 my-1 h-px bg-muted",e),...t}));jn.displayName=I.Separator.displayName;var xe=require("react/jsx-runtime");function er({languages:e,selectedLanguage:t,onLanguageChange:o}){return e.length===0?null:(0,xe.jsxs)(ct,{value:t||"",onValueChange:r=>{o(r||null)},children:[(0,xe.jsxs)(He,{className:"h-9 w-[120px]",children:[(0,xe.jsx)(Jo.Languages,{className:"mr-2 h-4 w-4"}),(0,xe.jsx)(mt,{placeholder:"Language"})]}),(0,xe.jsx)(We,{children:e.map(r=>(0,xe.jsx)(Ue,{value:r,children:r.toUpperCase()},r))})]})}var ze=require("react/jsx-runtime");function Lt({className:e}){return(0,ze.jsxs)("svg",{width:"653",height:"566",viewBox:"0 0 653 566",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:[(0,ze.jsx)("path",{d:"M272.258 0.0970342C274.805 0.091891 277.352 0.0846067 279.9 0.0753515C286.078 0.0587971 292.255 0.065435 298.434 0.0834397C303.457 0.09751 308.48 0.101349 313.504 0.0979975C314.58 0.0972813 314.58 0.0972813 315.677 0.0965507C317.134 0.0955243 318.591 0.0944689 320.048 0.0933849C332.908 0.0848336 345.768 0.101443 358.627 0.131214C371.088 0.16006 383.548 0.167127 396.008 0.151722C409.601 0.134939 423.193 0.130945 436.786 0.148432C438.237 0.150276 439.688 0.152111 441.139 0.153936C442.209 0.155304 442.209 0.155304 443.301 0.1567C448.316 0.162292 453.331 0.159011 458.346 0.152391C465.101 0.143827 471.856 0.156886 478.612 0.18424C481.087 0.191114 483.563 0.191232 486.039 0.184025C489.425 0.175306 492.81 0.191328 496.195 0.213474C497.169 0.205233 498.144 0.196993 499.148 0.188502C507.901 0.293827 515.66 2.53276 522.07 8.7462C522.898 9.53763 523.727 10.3291 524.581 11.1445C525.441 11.9971 526.301 12.8497 527.188 13.7281C528.096 14.6106 529.005 15.493 529.942 16.4021C533.01 19.3908 536.043 22.4141 539.075 25.4391C540.231 26.5885 541.387 27.7378 542.543 28.8869C546.299 32.6221 550.05 36.3625 553.801 40.1031C555.1 41.3985 556.4 42.6938 557.699 43.9891C563.799 50.0696 569.896 56.1526 575.99 62.2384C583.001 69.2395 590.02 76.2321 597.046 83.2178C602.497 88.6387 607.94 94.0672 613.378 99.5015C616.618 102.739 619.86 105.973 623.111 109.199C626.166 112.23 629.211 115.271 632.25 118.319C633.361 119.432 634.477 120.541 635.596 121.646C643.722 129.678 651.502 137.997 652.44 149.949C652.443 151.704 652.443 151.704 652.445 153.495C652.448 154.154 652.452 154.813 652.455 155.491C652.465 157.696 652.46 159.901 652.455 162.106C652.459 163.703 652.463 165.301 652.469 166.899C652.481 171.288 652.481 175.677 652.478 180.066C652.478 184.8 652.489 189.535 652.498 194.269C652.515 203.544 652.52 212.819 652.522 222.095C652.523 229.635 652.527 237.175 652.533 244.716C652.551 266.095 652.56 287.475 652.558 308.855C652.558 310.584 652.558 310.584 652.558 312.348C652.558 313.502 652.558 314.656 652.558 315.845C652.557 334.545 652.576 353.245 652.604 371.945C652.633 391.147 652.647 410.35 652.645 429.552C652.645 440.332 652.65 451.112 652.672 461.892C652.69 471.072 652.694 480.251 652.681 489.431C652.674 494.112 652.674 498.794 652.691 503.476C652.707 507.766 652.704 512.056 652.687 516.347C652.684 517.894 652.687 519.442 652.698 520.99C652.791 534.716 650.361 545.439 640.527 555.412C629.894 565.125 618.211 566.028 604.347 565.982C602.832 565.984 601.317 565.988 599.802 565.992C595.651 566 591.5 565.996 587.349 565.99C582.868 565.985 578.386 565.992 573.905 565.998C565.131 566.006 556.357 566.005 547.583 565.999C540.452 565.994 533.32 565.994 526.189 565.996C525.174 565.996 524.159 565.996 523.113 565.997C521.051 565.997 518.988 565.998 516.926 565.999C497.59 566.004 478.254 565.998 458.918 565.987C442.329 565.978 425.74 565.98 409.151 565.989C389.884 566 370.617 566.004 351.35 565.998C349.295 565.997 347.241 565.996 345.186 565.996C343.669 565.995 343.669 565.995 342.122 565.995C335 565.993 327.878 565.996 320.756 566.001C312.076 566.006 303.395 566.005 294.715 565.994C290.287 565.989 285.859 565.987 281.43 565.993C277.375 565.999 273.32 565.996 269.265 565.986C267.8 565.983 266.334 565.984 264.869 565.989C251.256 566.031 239.211 564.046 228.785 554.533C220.018 544.629 218.021 534.074 218.09 521.298C218.092 519.813 218.092 519.813 218.094 518.297C218.1 515.149 218.112 512.001 218.125 508.853C218.13 506.713 218.135 504.572 218.139 502.431C218.15 497.197 218.166 491.963 218.188 486.728C217.579 486.731 216.97 486.734 216.343 486.737C201.529 486.803 186.714 486.852 171.9 486.884C164.735 486.899 157.571 486.92 150.407 486.954C144.162 486.984 137.918 487.004 131.673 487.01C128.367 487.014 125.061 487.025 121.754 487.045C118.063 487.067 114.371 487.07 110.679 487.069C109.584 487.08 108.489 487.09 107.361 487.101C98.0972 487.064 98.0972 487.064 94.1875 483.728C91.9221 481.165 90.3109 479.227 90.0234 475.736C90.3972 471.02 91.729 468.088 95.1875 464.728C98.2778 462.835 100.586 462.48 104.186 462.488C105.696 462.484 105.696 462.484 107.237 462.479C108.335 462.486 109.434 462.494 110.565 462.501C111.727 462.501 112.888 462.501 114.084 462.5C117.926 462.502 121.768 462.517 125.609 462.533C128.272 462.537 130.934 462.54 133.596 462.541C139.89 462.548 146.183 462.564 152.476 462.584C159.642 462.606 166.807 462.617 173.973 462.628C188.711 462.648 203.449 462.685 218.188 462.728C218.188 446.558 218.188 430.388 218.188 413.728C213.221 413.749 208.254 413.77 203.136 413.792C186.744 413.858 170.351 413.902 153.958 413.935C144.017 413.956 134.077 413.984 124.136 414.03C115.471 414.07 106.807 414.096 98.1425 414.104C93.5546 414.11 88.967 414.122 84.3792 414.151C80.0602 414.178 75.7415 414.187 71.4224 414.181C69.8381 414.182 68.2539 414.19 66.6697 414.205C64.5037 414.225 62.3391 414.22 60.1731 414.209C58.9618 414.213 57.7506 414.217 56.5027 414.22C52.4811 413.623 50.3377 412.256 47.1875 409.728C44.3587 405.485 44.5348 401.711 45.1875 396.728C47.3067 393.095 49.308 391.242 53.1875 389.728C56.2566 389.482 56.2566 389.482 59.9326 389.488C60.9484 389.485 60.9484 389.485 61.9847 389.482C64.2526 389.479 66.5202 389.49 68.7881 389.501C70.4143 389.502 72.0405 389.501 73.6666 389.5C78.0816 389.5 82.4964 389.511 86.9114 389.525C91.5252 389.538 96.1389 389.539 100.753 389.541C109.49 389.548 118.227 389.564 126.964 389.584C136.91 389.606 146.857 389.617 156.804 389.628C177.265 389.648 197.726 389.685 218.188 389.728C218.188 373.558 218.188 357.388 218.188 340.728C214.008 340.749 209.829 340.77 205.523 340.792C191.725 340.858 177.927 340.902 164.128 340.935C155.761 340.956 147.394 340.984 139.027 341.03C131.734 341.07 124.441 341.096 117.148 341.104C113.286 341.11 109.425 341.122 105.564 341.151C101.928 341.178 98.2922 341.187 94.6559 341.181C92.689 341.182 90.722 341.204 88.7551 341.226C77.8936 341.175 77.8936 341.175 73.1875 336.728C70.3587 332.485 70.5348 328.711 71.1875 323.728C73.3119 320.086 75.3184 318.28 79.1875 316.728C81.8505 316.482 81.8505 316.482 84.9455 316.488C86.1206 316.485 87.2956 316.482 88.5063 316.479C89.7917 316.486 91.077 316.494 92.4014 316.501C93.7714 316.502 95.1414 316.501 96.5115 316.5C100.228 316.5 103.945 316.511 107.661 316.525C111.546 316.538 115.431 316.539 119.316 316.541C126.672 316.548 134.028 316.564 141.384 316.584C149.759 316.606 158.133 316.617 166.508 316.628C183.735 316.648 200.961 316.685 218.188 316.728C218.188 300.888 218.188 285.048 218.188 268.728C213.009 268.749 207.83 268.77 202.494 268.792C185.403 268.858 168.312 268.902 151.22 268.935C140.856 268.956 130.491 268.984 120.126 269.03C111.093 269.07 102.059 269.096 93.0257 269.104C88.2422 269.11 83.459 269.122 78.6756 269.151C74.1727 269.178 69.6702 269.187 65.1672 269.181C63.5152 269.182 61.8632 269.19 60.2113 269.205C57.9534 269.225 55.6968 269.22 53.4388 269.209C51.5445 269.215 51.5445 269.215 49.612 269.22C44.614 268.502 41.4647 266.303 38.3125 262.416C36.8553 258.935 36.7863 256.473 37.1875 252.728C39.0115 248.504 41.0912 246.723 45.1875 244.728C48.5202 244.359 48.5202 244.359 52.3945 244.367C53.4667 244.364 53.4667 244.364 54.5606 244.36C56.9499 244.355 59.3385 244.371 61.7278 244.388C63.4428 244.388 65.1578 244.388 66.8728 244.386C71.5253 244.385 76.1776 244.403 80.8301 244.424C85.6935 244.443 90.5568 244.444 95.4202 244.448C104.628 244.457 113.836 244.482 123.044 244.512C133.528 244.546 144.011 244.562 154.495 244.577C176.059 244.609 197.623 244.664 219.188 244.728C219.188 228.228 219.188 211.728 219.188 194.728C209.594 194.76 209.594 194.76 199.806 194.792C178.711 194.858 157.617 194.902 136.522 194.935C123.729 194.956 110.935 194.984 98.1409 195.03C86.9916 195.07 75.8423 195.096 64.6929 195.104C58.7878 195.11 52.8828 195.122 46.9777 195.151C41.4218 195.178 35.8661 195.187 30.3102 195.181C28.2691 195.182 26.2281 195.19 24.1871 195.205C21.4034 195.225 18.6208 195.22 15.8371 195.209C15.0268 195.221 14.2165 195.232 13.3816 195.244C9.60827 195.204 7.43328 194.887 4.22894 192.821C1.62187 190.148 0.321584 188.29 0 184.545C0.495746 178.585 0.495746 178.585 2.52734 176.068C7.53889 171.865 11.1076 171.585 17.4004 171.608C18.2597 171.607 19.1189 171.606 20.0042 171.605C22.9001 171.604 25.796 171.609 28.6919 171.615C30.7611 171.615 32.8304 171.615 34.8996 171.614C40.5315 171.614 46.1635 171.62 51.7954 171.627C57.6758 171.633 63.5561 171.634 69.4365 171.635C80.5783 171.638 91.7201 171.646 102.862 171.656C115.544 171.667 128.225 171.673 140.907 171.678C167.001 171.688 193.094 171.707 219.188 171.728C219.188 155.228 219.188 138.728 219.188 121.728C214.887 121.754 210.587 121.781 206.156 121.807C191.958 121.89 177.761 121.946 163.564 121.987C154.954 122.013 146.345 122.048 137.736 122.105C130.232 122.155 122.728 122.187 115.224 122.199C111.251 122.205 107.278 122.22 103.305 122.257C99.5636 122.291 95.823 122.301 92.0816 122.294C90.0573 122.296 88.0331 122.323 86.009 122.35C76.0882 122.294 76.0882 122.294 72.387 119.318C69.3308 115.72 68.8417 113.591 68.9023 108.83C69.369 105.39 70.9688 103.317 73.1875 100.728C76.4767 98.6001 79.1487 98.4807 83.0214 98.4876C84.2133 98.4849 85.4052 98.4821 86.6332 98.4793C88.5893 98.4901 88.5893 98.4901 90.585 98.5011C91.9747 98.5016 93.3644 98.5013 94.7542 98.5002C98.5245 98.4996 102.295 98.5114 106.065 98.5253C110.006 98.5378 113.947 98.539 117.888 98.5414C125.351 98.5476 132.813 98.564 140.275 98.5841C148.77 98.6065 157.266 98.6174 165.762 98.6275C183.237 98.6484 200.712 98.6836 218.188 98.7281C218.179 97.9154 218.17 97.1027 218.161 96.2653C218.08 88.5578 218.019 80.8505 217.98 73.1427C217.959 69.1813 217.931 65.2202 217.886 61.2589C217.842 57.4269 217.818 53.5951 217.808 49.7629C217.801 48.3102 217.786 46.8575 217.765 45.405C217.581 32.6699 219.25 21.3579 228.188 11.7281C228.689 11.1854 229.19 10.6427 229.707 10.0836C241.674 -1.41723 256.834 0.0179299 272.258 0.0970342Z",fill:"#686868"}),(0,ze.jsx)("path",{d:"M494.188 170.728C499.905 173.209 503.988 177.113 508.535 181.318C511.084 183.634 513.696 185.816 516.375 187.978C521.515 192.139 526.511 196.446 531.497 200.788C535.556 204.32 539.637 207.822 543.75 211.291C544.529 211.95 544.529 211.95 545.324 212.623C548.194 215.052 551.076 217.467 553.969 219.869C555.23 220.926 556.49 221.983 557.75 223.041C558.334 223.52 558.918 224 559.52 224.494C563.879 228.17 567.786 231.918 568.625 237.791C567.78 243.466 564.657 246.45 560.25 249.853C556.069 253.17 552.084 256.589 548.188 260.228C544.48 263.681 540.703 266.993 536.75 270.166C532.565 273.532 528.605 277.06 524.688 280.728C519.846 285.261 514.872 289.542 509.692 293.689C507.328 295.614 505.069 297.616 502.813 299.666C498.891 303.103 496.004 304.459 490.813 305.228C485.947 304.557 483.45 302.285 480.188 298.728C478.551 295.455 478.945 291.822 478.871 288.22C478.851 287.38 478.83 286.539 478.808 285.673C478.743 282.983 478.684 280.293 478.625 277.603C478.582 275.782 478.538 273.96 478.494 272.138C478.387 267.668 478.286 263.198 478.188 258.728C465.696 258.635 453.204 258.564 440.712 258.521C434.911 258.5 429.111 258.472 423.31 258.426C417.707 258.383 412.106 258.359 406.503 258.349C404.37 258.341 402.237 258.327 400.103 258.305C397.107 258.276 394.111 258.272 391.114 258.274C390.239 258.26 389.364 258.245 388.463 258.231C379.967 258.287 372.974 261.285 366.692 267.013C362.236 272.094 360.075 278.298 360.027 284.975C360.017 286.047 360.007 287.119 359.998 288.223C359.993 289.382 359.989 290.542 359.985 291.736C359.976 293.529 359.976 293.529 359.967 295.358C359.958 297.891 359.951 300.425 359.948 302.959C359.938 306.817 359.907 310.675 359.875 314.533C359.869 316.996 359.863 319.46 359.86 321.923C359.847 323.071 359.835 324.218 359.822 325.4C359.849 335.302 361.396 342.69 368.285 350.002C373.269 354.524 378.606 356.842 385.333 356.866C386.56 356.874 386.56 356.874 387.813 356.883C389.147 356.884 389.147 356.884 390.508 356.886C391.923 356.894 391.923 356.894 393.367 356.901C395.417 356.912 397.467 356.921 399.517 356.927C402.773 356.939 406.028 356.959 409.283 356.981C418.54 357.042 427.797 357.096 437.054 357.13C442.719 357.151 448.384 357.186 454.049 357.23C456.198 357.244 458.347 357.253 460.495 357.256C481.316 357.291 499.213 359.545 516.188 372.728C516.813 373.188 517.438 373.649 518.082 374.123C530.153 383.578 537.338 398.951 540.188 413.728C540.716 419.168 540.754 424.564 540.719 430.021C540.722 431.544 540.726 433.067 540.731 434.59C540.736 437.756 540.728 440.922 540.709 444.087C540.686 448.115 540.7 452.142 540.724 456.169C540.738 459.305 540.733 462.441 540.723 465.577C540.72 467.061 540.724 468.545 540.733 470.029C540.78 479.457 540.813 489.532 534.204 496.957C527.872 502.901 522.148 504.321 513.551 504.166C507.299 503.352 502.515 500.534 498.496 495.689C495.008 490.382 494.067 486.066 494.046 479.725C494.035 477.908 494.035 477.908 494.025 476.053C494.02 474.746 494.016 473.438 494.012 472.091C494.002 470.729 493.99 469.366 493.978 468.003C493.925 462.228 493.877 456.452 493.862 450.677C493.852 447.138 493.822 443.6 493.781 440.062C493.762 438.074 493.765 436.086 493.768 434.098C493.631 423.891 491.608 415.98 484.188 408.728C478.511 404.964 473.514 404.152 466.813 404.23C465.911 404.224 465.009 404.219 464.079 404.213C462.132 404.204 460.185 404.204 458.237 404.212C455.14 404.224 452.044 404.213 448.947 404.196C443.476 404.169 438.004 404.163 432.533 404.165C423.806 404.167 415.079 404.153 406.352 404.109C403.327 404.1 400.304 404.108 397.28 404.118C370.94 404.089 350.237 397.743 331.25 378.795C320.19 366.919 313.165 350.037 313.011 333.739C312.998 332.553 312.985 331.367 312.972 330.145C312.964 328.868 312.957 327.591 312.949 326.275C312.945 325.617 312.941 324.959 312.937 324.28C312.916 320.785 312.902 317.291 312.893 313.796C312.884 310.939 312.863 308.082 312.831 305.225C312.532 277.898 314.71 253.66 334.73 233.142C353.674 214.769 375.375 211.129 400.528 211.119C402.748 211.104 404.969 211.087 407.189 211.069C412.984 211.025 418.779 211.005 424.574 210.99C430.507 210.97 436.44 210.928 442.373 210.888C453.978 210.813 465.583 210.763 477.188 210.728C477.202 209.42 477.202 209.42 477.216 208.085C477.26 204.821 477.322 201.559 477.395 198.295C477.423 196.888 477.445 195.481 477.459 194.074C477.614 179.521 477.614 179.521 482.188 173.728C486.068 170.477 489.21 170.127 494.188 170.728Z",fill:"#F9F9F9"}),(0,ze.jsx)("path",{d:"M507.188 1.72815C518.614 2.3141 526.874 12.9781 534.421 20.5575C535.626 21.7562 536.831 22.9543 538.036 24.1518C541.289 27.3866 544.532 30.6308 547.773 33.8774C550.486 36.5939 553.204 39.3058 555.922 42.0177C562.336 48.4175 568.742 54.8251 575.143 61.2377C581.734 67.8398 588.337 74.429 594.947 81.012C600.636 86.6789 606.317 92.3535 611.992 98.0343C615.376 101.421 618.762 104.805 622.155 108.181C625.346 111.356 628.526 114.54 631.699 117.733C632.861 118.898 634.027 120.06 635.196 121.219C649.032 134.94 649.032 134.941 651.188 144.728C650.528 144.728 649.868 144.728 649.188 144.728C649.188 143.738 649.188 142.748 649.188 141.728C647.876 141.737 646.564 141.746 645.213 141.755C632.811 141.836 620.41 141.896 608.008 141.935C601.633 141.956 595.259 141.984 588.884 142.03C582.724 142.074 576.565 142.097 570.405 142.108C568.062 142.115 565.72 142.129 563.378 142.151C546.158 142.304 531.519 142.101 518.188 129.728C509.005 119.284 507.023 108.101 507.074 94.5919C507.074 93.5864 507.074 92.5809 507.074 91.545C507.074 88.2336 507.082 84.9223 507.09 81.611C507.092 79.3103 507.093 77.0095 507.094 74.7088C507.098 68.6623 507.108 62.6158 507.119 56.5693C507.129 50.3957 507.134 44.2221 507.139 38.0485C507.15 25.9417 507.167 13.8349 507.188 1.72815Z",fill:"#4F4F4F"})]})}Fe();var se=O(require("react"));var je=O(require("react")),W=O(require("@radix-ui/react-dialog")),tr=require("lucide-react");ae();var oe=require("react/jsx-runtime"),or=W.Root;var Kn=W.Portal;var rr=je.forwardRef(({className:e,...t},o)=>(0,oe.jsx)(W.Overlay,{ref:o,className:f("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));rr.displayName=W.Overlay.displayName;var _t=je.forwardRef(({className:e,children:t,...o},r)=>(0,oe.jsxs)(Kn,{children:[(0,oe.jsx)(rr,{}),(0,oe.jsxs)(W.Content,{ref:r,className:f("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...o,children:[t,(0,oe.jsxs)(W.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,oe.jsx)(tr.X,{className:"h-4 w-4"}),(0,oe.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));_t.displayName=W.Content.displayName;var Yn=({className:e,...t})=>(0,oe.jsx)("div",{className:f("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Yn.displayName="DialogHeader";var Xn=({className:e,...t})=>(0,oe.jsx)("div",{className:f("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Xn.displayName="DialogFooter";var qn=je.forwardRef(({className:e,...t},o)=>(0,oe.jsx)(W.Title,{ref:o,className:f("text-lg font-semibold leading-none tracking-tight",e),...t}));qn.displayName=W.Title.displayName;var Zn=je.forwardRef(({className:e,...t},o)=>(0,oe.jsx)(W.Description,{ref:o,className:f("text-sm text-muted-foreground",e),...t}));Zn.displayName=W.Description.displayName;ae();var nr=require("lucide-react"),Q=require("react/jsx-runtime"),ar=se.forwardRef(({className:e,...t},o)=>(0,Q.jsx)("div",{ref:o,className:f("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));ar.displayName="Command";var Ot=se.forwardRef(({className:e,onValueChange:t,...o},r)=>{let[a,d]=se.useState(o.value||"");return se.useEffect(()=>{o.value!==void 0&&d(String(o.value))},[o.value]),(0,Q.jsxs)("div",{className:"flex items-center border-b px-3",children:[(0,Q.jsx)(nr.Search,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),(0,Q.jsx)("input",{ref:r,...o,value:a,onChange:m=>{let s=m.target.value;d(s),t?.(s),o.onChange&&o.onChange(m)},className:f("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e)})]})});Ot.displayName="CommandInput";var At=se.forwardRef(({className:e,...t},o)=>(0,Q.jsx)("div",{ref:o,className:f("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));At.displayName="CommandList";var pt=se.forwardRef(({className:e,...t},o)=>(0,Q.jsx)("div",{ref:o,className:f("py-6 text-center text-sm",e),...t}));pt.displayName="CommandEmpty";var Ft=se.forwardRef(({className:e,heading:t,...o},r)=>(0,Q.jsxs)("div",{ref:r,className:f("overflow-hidden p-1 text-foreground",e),...o,children:[t&&(0,Q.jsx)("div",{className:"px-2 py-1.5 text-xs font-semibold text-muted-foreground",children:t}),(0,Q.jsx)("div",{children:o.children})]}));Ft.displayName="CommandGroup";var zt=se.forwardRef(({className:e,onSelect:t,...o},r)=>{let a=()=>{t?.()};return(0,Q.jsx)("div",{ref:r,className:f("relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),onClick:a,...o})});zt.displayName="CommandItem";var ir=({open:e,onOpenChange:t,children:o})=>(0,Q.jsx)(or,{open:e,onOpenChange:t,children:(0,Q.jsx)(_t,{className:"overflow-hidden p-0",children:(0,Q.jsx)(ar,{children:o})})});var Qn=/^[a-z]{2}$/;function ut(e,t){let r=t.filter(a=>a.relativePath.split(/[\\/]/)[0]===e).filter(a=>a.depth===1&&a.type==="directory"&&Qn.test(a.name));return r.length===0?[]:r.map(a=>a.name).sort()}var Jn=/^\(group-.*\)$/,ea=/\.button\.md$/;function ft(e,t){if(e.type==="file")return ea.test(e.name)?"button":e.extension==="md"?"page":null;if(e.type==="directory"){if(Jn.test(e.name))return"group";if(t.some(r=>r.relativePath.startsWith(e.relativePath+"/")||r.relativePath.startsWith(e.relativePath+"\\")&&r.type==="file"))return"dropdown"}return null}var sr=e=>e.type==="page",Ce=e=>e.type==="button",we=e=>e.type==="dropdown",Re=e=>e.type==="group";function Be(e){return sr(e)?e.frontmatter?.hidden??!1:Ce(e)?e.settings.hidden??!1:we(e)||Re(e)?e.settings?.hidden??!1:!1}function Bt(e){return e.sort((t,o)=>{let r=Ce(t)||Re(t)||we(t)?t.settings.order:t.frontmatter?.order??100,a=Ce(o)||Re(o)||we(o)?o.settings.order:o.frontmatter?.order??100;if(r!==a)return r-a;let d=Ce(t)||Re(t)||we(t)?t.settings.title:t.frontmatter?.title??"",l=Ce(o)||Re(o)||we(o)?o.settings.title:o.frontmatter?.title??"";return d.localeCompare(l)})}function Vt(e){return e.type==="page"?e.frontmatter?.title||e.file.name.replaceAll(".md",""):e.type==="button"?e.settings.title:e.type==="dropdown"?e.settings?.title||e.folder.name:e.type==="group"?e.settings?.title||e.folder.name.replace(/^\(group-/,"").replace(/\)$/,""):""}var Ve=/^[a-z]{2}$/,gt=/\.button\.md$/;var lr=require("lucide-react"),ue=O(require("react")),B=require("react/jsx-runtime");function dr({documentationStructure:e,selectedVersion:t,selectedLanguage:o,onPageSelect:r,scannedFiles:a}){let[d,l]=ue.useState(!1),[m,s]=ue.useState(""),p=ue.useMemo(()=>{let i=new Map;if(a?.files)for(let n of a.files){let c=n.originalRelativePath||n.relativePath;n.content&&i.set(c,n.content)}return i},[a]),v=ue.useMemo(()=>{let i=[];for(let n of e){if(t&&n.version!==t)continue;let c=(x,R)=>{for(let y of x)if(y.type==="page"){if(y.frontmatter?.searchable===!1)continue;let T=y.file.originalRelativePath||y.file.relativePath,_=Vt(y),$=p.get(T);i.push({entity:y,version:R,path:T,title:_,content:$})}else(y.type==="dropdown"||y.type==="group")&&c(y.pages,R)};c(n.entities,n.version)}return i},[e,t,p]),C=(i,n,c=150)=>{let x=i.toLowerCase(),R=n.toLowerCase(),y=x.indexOf(R);if(y===-1)return"";let T=Math.max(0,y-c/2),_=i.substring(T,y),$=_.lastIndexOf(". "),M=_.lastIndexOf(`
2
+ `),h=_.lastIndexOf(" "),A=Math.max($+2,M+1,h+1,T),ee=Math.min(i.length,y+n.length+c/2),be=i.substring(y+n.length,ee),de=be.indexOf(". "),Ne=be.indexOf(`
3
+ `),Me=be.indexOf(" "),ne=ee;de!==-1?ne=y+n.length+de+1:Ne!==-1?ne=y+n.length+Ne:Me!==-1&&(ne=y+n.length+Me);let q=i.substring(A,ne).trim();return A>0&&(q="..."+q),ne<i.length&&(q=q+"..."),q},P=ue.useMemo(()=>{if(!m.trim())return[];let i=m.toLowerCase().trim();return v.filter(n=>{let c=n.title.toLowerCase().includes(i),x=n.path.toLowerCase().includes(i),R=n.content?.includes(i)??!1;return c||x||R}).map(n=>{let c;return n.content?.includes(i)?c=C(n.content,m):n.title.toLowerCase().includes(i)&&(c=n.title),{...n,snippet:c}})},[m,v]),L=i=>{r(i),l(!1),s("")};return ue.useEffect(()=>{let i=n=>{n.key==="k"&&(n.metaKey||n.ctrlKey)&&(n.preventDefault(),l(c=>!c))};return document.addEventListener("keydown",i),()=>document.removeEventListener("keydown",i)},[]),(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)(ie,{variant:"outline",className:"relative h-9 w-full justify-start text-sm text-muted-foreground sm:pr-12 md:w-64 lg:w-80",onClick:()=>l(!0),children:[(0,B.jsx)(lr.Search,{className:"mr-2 h-4 w-4"}),(0,B.jsx)("span",{className:"hidden lg:inline-flex",children:"\u041F\u043E\u0438\u0441\u043A \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430\u0446\u0438\u0438..."}),(0,B.jsx)("span",{className:"inline-flex lg:hidden",children:"\u041F\u043E\u0438\u0441\u043A..."}),(0,B.jsxs)("kbd",{className:"pointer-events-none absolute right-1.5 top-1.5 hidden h-5 select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[10px] font-medium opacity-100 sm:flex",children:[(0,B.jsx)("span",{className:"text-xs",children:"\u2318"}),"K"]})]}),(0,B.jsxs)(ir,{open:d,onOpenChange:l,children:[(0,B.jsx)(Ot,{placeholder:"\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430\u0446\u0438\u0438...",value:m,onValueChange:s}),(0,B.jsxs)(At,{children:[P.length===0&&m.trim()&&(0,B.jsx)(pt,{children:"\u041D\u0438\u0447\u0435\u0433\u043E \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E."}),P.length>0&&(0,B.jsx)(Ft,{heading:"\u0421\u0442\u0440\u0430\u043D\u0438\u0446\u044B",children:P.map((i,n)=>{let c=(x,R)=>{if(!x||!R)return x;let y=new RegExp(`(${R.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")})`,"gi");return x.split(y).map((_,$)=>_.toLowerCase()===R.toLowerCase()?(0,B.jsx)("mark",{className:"bg-primary/20 text-primary font-medium px-0.5 rounded",children:_},$):_)};return(0,B.jsx)(zt,{value:`${i.title} ${i.path}`,onSelect:()=>L(i.path),className:"cursor-pointer",children:(0,B.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,B.jsx)("span",{className:"font-medium",children:i.title}),i.snippet&&(0,B.jsx)("span",{className:"text-xs text-muted-foreground line-clamp-2",children:c(i.snippet,m)}),(0,B.jsxs)("span",{className:"text-xs text-muted-foreground/70",children:[i.version," \u2022 ",i.path]})]})},`${i.version}-${i.path}-${n}`)})}),!m.trim()&&(0,B.jsx)(pt,{children:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u0430\u043F\u0440\u043E\u0441 \u0434\u043B\u044F \u043F\u043E\u0438\u0441\u043A\u0430..."})]})]})]})}var Pr=require("lucide-react"),Se=O(require("react"));Mt();it();var wr=require("lucide-react"),k=O(require("react"));Fe();var cr=O(require("react"));ae();var mr=require("react/jsx-runtime"),Gt=cr.forwardRef(({className:e,type:t,...o},r)=>(0,mr.jsx)("input",{type:t,className:f("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...o}));Gt.displayName="Input";var pr=O(require("react")),$t=O(require("@radix-ui/react-separator"));ae();var ur=require("react/jsx-runtime"),Ke=pr.forwardRef(({className:e,orientation:t="horizontal",decorative:o=!0,...r},a)=>(0,ur.jsx)($t.Root,{ref:a,decorative:o,orientation:t,className:f("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r}));Ke.displayName=$t.Root.displayName;var Ye=O(require("react")),U=O(require("@radix-ui/react-dialog"));it();var fr=require("lucide-react");ae();var re=require("react/jsx-runtime"),gr=U.Root;var ta=U.Portal,br=Ye.forwardRef(({className:e,...t},o)=>(0,re.jsx)(U.Overlay,{className:f("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:o}));br.displayName=U.Overlay.displayName;var oa=Ae("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Ht=Ye.forwardRef(({side:e="right",className:t,children:o,...r},a)=>(0,re.jsxs)(ta,{children:[(0,re.jsx)(br,{}),(0,re.jsxs)(U.Content,{ref:a,className:f(oa({side:e}),t),...r,children:[(0,re.jsxs)(U.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,re.jsx)(fr.X,{className:"h-4 w-4"}),(0,re.jsx)("span",{className:"sr-only",children:"Close"})]}),o]})]}));Ht.displayName=U.Content.displayName;var Wt=({className:e,...t})=>(0,re.jsx)("div",{className:f("flex flex-col space-y-2 text-center sm:text-left",e),...t});Wt.displayName="SheetHeader";var ra=({className:e,...t})=>(0,re.jsx)("div",{className:f("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});ra.displayName="SheetFooter";var Ut=Ye.forwardRef(({className:e,...t},o)=>(0,re.jsx)(U.Title,{ref:o,className:f("text-lg font-semibold text-foreground",e),...t}));Ut.displayName=U.Title.displayName;var jt=Ye.forwardRef(({className:e,...t},o)=>(0,re.jsx)(U.Description,{ref:o,className:f("text-sm text-muted-foreground",e),...t}));jt.displayName=U.Description.displayName;rt();var hr=O(require("react")),le=O(require("@radix-ui/react-tooltip"));ae();var Kt=require("react/jsx-runtime"),yr=le.Provider,vr=le.Root,xr=le.Trigger,Yt=hr.forwardRef(({className:e,sideOffset:t=4,...o},r)=>(0,Kt.jsx)(le.Portal,{children:(0,Kt.jsx)(le.Content,{ref:r,sideOffset:t,className:f("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-tooltip-content-transform-origin]",e),...o})}));Yt.displayName=le.Content.displayName;var bt=O(require("react")),Xt=768;function Cr(){let[e,t]=bt.useState(void 0);return bt.useEffect(()=>{let o=window.matchMedia(`(max-width: ${Xt-1}px)`),r=()=>{t(window.innerWidth<Xt)};return o.addEventListener("change",r),t(window.innerWidth<Xt),()=>o.removeEventListener("change",r)},[]),!!e}ae();var N=require("react/jsx-runtime"),na="sidebar_state",aa=3600*24*7,ia="20rem",sa="18rem",la="3rem",da="b",Rr=k.createContext(null);function ht(){let e=k.useContext(Rr);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}var qt=k.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:o,className:r,style:a,children:d,...l},m)=>{let s=Cr(),[p,v]=k.useState(!1),[C,P]=k.useState(e),L=t??C,i=k.useCallback(R=>{let y=typeof R=="function"?R(L):R;o?o(y):P(y),document.cookie=`${na}=${y}; path=/; max-age=${aa}`},[o,L]),n=k.useCallback(()=>s?v(R=>!R):i(R=>!R),[s,i,v]);k.useEffect(()=>{let R=y=>{y.key===da&&(y.metaKey||y.ctrlKey)&&(y.preventDefault(),n())};return window.addEventListener("keydown",R),()=>window.removeEventListener("keydown",R)},[n]);let c=L?"expanded":"collapsed",x=k.useMemo(()=>({state:c,open:L,setOpen:i,isMobile:s,openMobile:p,setOpenMobile:v,toggleSidebar:n}),[c,L,i,s,p,v,n]);return(0,N.jsx)(Rr.Provider,{value:x,children:(0,N.jsx)(yr,{delayDuration:0,children:(0,N.jsx)("div",{style:{"--sidebar-width":ia,"--sidebar-width-icon":la,...a},className:f("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",r),ref:m,...l,children:d})})})});qt.displayName="SidebarProvider";var Zt=k.forwardRef(({side:e="left",variant:t="sidebar",collapsible:o="offcanvas",className:r,children:a,...d},l)=>{let{isMobile:m,state:s,openMobile:p,setOpenMobile:v}=ht();return o==="none"?(0,N.jsx)("div",{className:f("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",r),ref:l,...d,children:a}):m?(0,N.jsx)(gr,{open:p,onOpenChange:v,...d,children:(0,N.jsxs)(Ht,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":sa},side:e,children:[(0,N.jsxs)(Wt,{className:"sr-only",children:[(0,N.jsx)(Ut,{children:"Sidebar"}),(0,N.jsx)(jt,{children:"Displays the mobile sidebar."})]}),(0,N.jsx)("div",{className:"flex h-full w-full flex-col",children:a})]})}):(0,N.jsx)("div",{ref:l,className:"group peer hidden text-sidebar-foreground md:block","data-state":s,"data-collapsible":s==="collapsed"?o:"","data-variant":t,"data-side":e,children:(0,N.jsx)("div",{className:f("relative hidden h-svh w-[--sidebar-width] transition-[width] duration-200 ease-linear md:flex","group-data-[collapsible=offcanvas]:w-0",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...d,children:(0,N.jsx)("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:a})})})});Zt.displayName="Sidebar";var Qt=k.forwardRef(({className:e,onClick:t,...o},r)=>{let{toggleSidebar:a}=ht();return(0,N.jsxs)(ie,{ref:r,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:f("h-7 w-7",e),onClick:d=>{t?.(d),a()},...o,children:[(0,N.jsx)(wr.PanelLeft,{}),(0,N.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})});Qt.displayName="SidebarTrigger";var ca=k.forwardRef(({className:e,...t},o)=>{let{toggleSidebar:r}=ht();return(0,N.jsx)("button",{ref:o,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:f("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})});ca.displayName="SidebarRail";var Jt=k.forwardRef(({className:e,...t},o)=>(0,N.jsx)("main",{ref:o,className:f("relative flex flex-1 flex-col bg-background transition-all duration-200 ease-linear","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),...t}));Jt.displayName="SidebarInset";var ma=k.forwardRef(({className:e,...t},o)=>(0,N.jsx)(Gt,{ref:o,"data-sidebar":"input",className:f("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));ma.displayName="SidebarInput";var eo=k.forwardRef(({className:e,...t},o)=>(0,N.jsx)("div",{ref:o,"data-sidebar":"header",className:f("flex flex-col gap-2 p-2",e),...t}));eo.displayName="SidebarHeader";var pa=k.forwardRef(({className:e,...t},o)=>(0,N.jsx)("div",{ref:o,"data-sidebar":"footer",className:f("flex flex-col gap-2 p-2",e),...t}));pa.displayName="SidebarFooter";var ua=k.forwardRef(({className:e,...t},o)=>(0,N.jsx)(Ke,{ref:o,"data-sidebar":"separator",className:f("mx-2 w-auto bg-sidebar-border",e),...t}));ua.displayName="SidebarSeparator";var to=k.forwardRef(({className:e,...t},o)=>(0,N.jsx)("div",{ref:o,"data-sidebar":"content",className:f("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));to.displayName="SidebarContent";var yt=k.forwardRef(({className:e,...t},o)=>(0,N.jsx)("div",{ref:o,"data-sidebar":"group",className:f("relative flex w-full min-w-0 flex-col p-2",e),...t}));yt.displayName="SidebarGroup";var oo=k.forwardRef(({className:e,asChild:t=!1,...o},r)=>(0,N.jsx)(t?ye:"div",{ref:r,"data-sidebar":"group-label",className:f("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...o}));oo.displayName="SidebarGroupLabel";var fa=k.forwardRef(({className:e,asChild:t=!1,...o},r)=>(0,N.jsx)(t?ye:"button",{ref:r,"data-sidebar":"group-action",className:f("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...o}));fa.displayName="SidebarGroupAction";var ga=k.forwardRef(({className:e,...t},o)=>(0,N.jsx)("div",{ref:o,"data-sidebar":"group-content",className:f("w-full text-sm",e),...t}));ga.displayName="SidebarGroupContent";var vt=k.forwardRef(({className:e,...t},o)=>(0,N.jsx)("ul",{ref:o,"data-sidebar":"menu",className:f("flex w-full min-w-0 flex-col gap-1",e),...t}));vt.displayName="SidebarMenu";var fe=k.forwardRef(({className:e,...t},o)=>(0,N.jsx)("li",{ref:o,"data-sidebar":"menu-item",className:f("group/menu-item relative",e),...t}));fe.displayName="SidebarMenuItem";var ba=Ae("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),ge=k.forwardRef(({asChild:e=!1,isActive:t=!1,variant:o="default",size:r="default",tooltip:a,className:d,...l},m)=>{let s=e?ye:"button",{isMobile:p,state:v}=ht(),C=(0,N.jsx)(s,{ref:m,"data-sidebar":"menu-button","data-size":r,"data-active":t,className:f(ba({variant:o,size:r}),d),...l});return a?(typeof a=="string"&&(a={children:a}),(0,N.jsxs)(vr,{children:[(0,N.jsx)(xr,{asChild:!0,children:C}),(0,N.jsx)(Yt,{side:"right",align:"center",hidden:v!=="collapsed"||p,...a})]})):C});ge.displayName="SidebarMenuButton";var ha=k.forwardRef(({className:e,asChild:t=!1,showOnHover:o=!1,...r},a)=>(0,N.jsx)(t?ye:"button",{ref:a,"data-sidebar":"menu-action",className:f("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",o&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...r}));ha.displayName="SidebarMenuAction";var ya=k.forwardRef(({className:e,...t},o)=>(0,N.jsx)("div",{ref:o,"data-sidebar":"menu-badge",className:f("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t}));ya.displayName="SidebarMenuBadge";var va=k.forwardRef(({className:e,showIcon:t=!1,...o},r)=>{let a=k.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return(0,N.jsxs)("div",{ref:r,"data-sidebar":"menu-skeleton",className:f("flex h-8 items-center gap-2 rounded-md px-2",e),...o,children:[t&&(0,N.jsx)(K,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),(0,N.jsx)(K,{className:"h-4 max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":a}})]})});va.displayName="SidebarMenuSkeleton";var xt=k.forwardRef(({className:e,...t},o)=>(0,N.jsx)("ul",{ref:o,"data-sidebar":"menu-sub",className:f("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));xt.displayName="SidebarMenuSub";var Ct=k.forwardRef(({...e},t)=>(0,N.jsx)("li",{ref:t,...e}));Ct.displayName="SidebarMenuSubItem";var wt=k.forwardRef(({asChild:e=!1,size:t="md",isActive:o,className:r,...a},d)=>(0,N.jsx)(e?ye:"a",{ref:d,"data-sidebar":"menu-sub-button","data-size":t,"data-active":o,className:f("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",r),...a}));wt.displayName="SidebarMenuSubButton";var xa=O(require("lucide-react"));function De(e){if(!e)return null;let t=e.split(/[-_\s]/).map(r=>r.charAt(0).toUpperCase()+r.slice(1).toLowerCase()).join("");return xa[t]||null}var Sr=require("lucide-react"),D=require("react/jsx-runtime");function Ca(e){return e.type==="page"||e.type==="button"?e.file.originalRelativePath||e.file.relativePath:e.folder.originalRelativePath||e.folder.relativePath}function Rt(e){return e.type==="page"?e.frontmatter?.title||e.file.name.replaceAll(".md",""):e.type==="button"?e.settings.title:e.type==="dropdown"?e.settings?.title||e.folder.name:e.type==="group"?e.settings?.title||e.folder.name.replace(/^\(group-/,"").replace(/\)$/,""):""}function wa(e){return e.type==="page"?De(e.frontmatter?.icon)||null:e.type==="button"?De(e.settings.icon):e.type==="dropdown"?De(e.settings?.icon)||null:e.type==="group"&&De(e.settings?.icon)||null}function Nr({entity:e,openDropdowns:t,onToggleDropdown:o,onPageSelect:r}){let a=Ca(e),d=t.has(a),l=wa(e);if(e.type==="page"){let m=Rt(e),s=e.file.originalRelativePath||e.file.relativePath;return(0,D.jsx)(fe,{children:(0,D.jsx)(ge,{onClick:()=>r?.(s),asChild:!0,children:(0,D.jsxs)("button",{type:"button",children:[l&&(0,D.jsx)(l,{className:"size-4"}),(0,D.jsx)("span",{children:m})]})})})}if(e.type==="button"){let m=Rt(e),s=e.settings.url;if(s){let C=e.settings.target||"_self";return(0,D.jsx)(fe,{children:(0,D.jsx)(ge,{asChild:!0,children:(0,D.jsxs)("a",{href:s,target:C,rel:C==="_blank"?"noopener noreferrer":void 0,onClick:L=>{L.stopPropagation(),C==="_blank"&&(L.preventDefault(),window.open(s,"_blank","noopener,noreferrer"))},className:"w-full",children:[l&&(0,D.jsx)(l,{className:"size-4"}),(0,D.jsx)("span",{children:m})]})})})}let p=e.file.originalRelativePath||e.file.relativePath;return(0,D.jsx)(fe,{children:(0,D.jsx)(ge,{onClick:()=>{r?.(p)},asChild:!0,children:(0,D.jsxs)("button",{type:"button",children:[l&&(0,D.jsx)(l,{className:"size-4"}),(0,D.jsx)("span",{children:m})]})})})}if(e.type==="dropdown"){let m=Rt(e),s=e.settings?.dropdown||"collapsed",p=s==="open"||s==="always-open"||s==="collapsed"&&d,v=s==="always-open";return(0,D.jsxs)(fe,{children:[(0,D.jsxs)(ge,{onClick:()=>{v||o(a)},"data-state":p?"open":"closed",children:[p?(0,D.jsx)(Sr.FolderOpen,{className:"size-4"}):l&&(0,D.jsx)(l,{className:"size-4"}),(0,D.jsx)("span",{children:m})]}),p&&e.pages.length>0&&(0,D.jsx)(xt,{children:e.pages.filter(C=>C.type==="page"&&!C.file.name.endsWith("dropdown-settings.md")).map((C,P)=>{if(C.type!=="page")return null;let L=C.frontmatter?.title||C.file.name.replaceAll(".md",""),i=C.file.originalRelativePath||C.file.relativePath,n=De(C.frontmatter?.icon),c=C.file.originalRelativePath||C.file.relativePath;return(0,D.jsx)(Ct,{children:(0,D.jsx)(wt,{onClick:()=>r?.(i),asChild:!0,children:(0,D.jsxs)("button",{type:"button",children:[n&&(0,D.jsx)(n,{className:"size-4"}),(0,D.jsx)("span",{children:L})]})})},`${c}-${P}`)})})]})}if(e.type==="group"){let m=Rt(e);return(0,D.jsxs)(fe,{children:[(0,D.jsxs)(ge,{disabled:!0,children:[l&&(0,D.jsx)(l,{className:"size-4"}),(0,D.jsx)("span",{children:m})]}),e.pages.length>0&&(0,D.jsx)(xt,{children:e.pages.filter(s=>s.type==="page"&&!s.file.name.endsWith("group-settings.md")).map((s,p)=>{if(s.type!=="page")return null;let v=s.frontmatter?.title||s.file.name.replaceAll(".md",""),C=s.file.originalRelativePath||s.file.relativePath,P=De(s.frontmatter?.icon),L=s.file.originalRelativePath||s.file.relativePath;return(0,D.jsx)(Ct,{children:(0,D.jsx)(wt,{onClick:()=>r?.(C),asChild:!0,children:(0,D.jsxs)("button",{type:"button",children:[P&&(0,D.jsx)(P,{className:"size-4"}),(0,D.jsx)("span",{children:v})]})})},`${L}-${p}`)})})]})}return null}var F=require("react/jsx-runtime");function Er({title:e,logo:t,versionSelect:o,versions:r=[],documentationStructure:a=[],onPageSelect:d,versionStorageKey:l,...m}){let[s,p]=Se.useState(()=>{if(l&&typeof window<"u"){let i=localStorage.getItem(l);if(i&&r.includes(i))return i}return r[0]}),[v,C]=Se.useState(new Set);Se.useEffect(()=>{if(r.length>0){if(l&&typeof window<"u"){let i=localStorage.getItem(l);if(i&&r.includes(i)){p(i);return}}(!s||!r.includes(s))&&p(r[0])}},[r,l]),Se.useEffect(()=>{l&&s&&typeof window<"u"&&localStorage.setItem(l,s)},[s,l]);let P=Se.useMemo(()=>s?a.find(i=>i.version===s):null,[s,a]),L=i=>{C(n=>{let c=new Set(n);return c.has(i)?c.delete(i):c.add(i),c})};return(0,F.jsxs)(Zt,{...m,children:[(0,F.jsx)(eo,{children:(0,F.jsxs)("div",{className:"flex items-center justify-between gap-2 px-2 py-2",children:[(0,F.jsxs)("a",{href:"/",className:"flex items-center gap-3 rounded-md px-2 py-1.5 hover:bg-sidebar-accent hover:text-sidebar-accent-foreground transition-colors",children:[(0,F.jsx)("div",{className:"flex aspect-square size-8 items-center justify-center text-primary-foreground",children:t}),(0,F.jsx)("span",{className:"font-semibold",children:e})]}),o?(0,F.jsxs)(ct,{value:s||"",onValueChange:i=>{p(i),d&&d(null)},children:[(0,F.jsx)(He,{className:"h-6 w-auto min-w-16 border border-sidebar-border bg-sidebar-accent/50 hover:bg-sidebar-accent shadow-none focus:ring-0 focus:ring-offset-0 p-0 px-2 text-xs",children:(0,F.jsx)(mt,{})}),(0,F.jsx)(We,{children:r.map(i=>(0,F.jsx)(Ue,{value:i,children:i},i))})]}):(0,F.jsx)("div",{className:"h-6 w-auto min-w-16 border border-sidebar-border bg-sidebar-accent/50 shadow-none focus:ring-0 text-center items-center justify-center flex rounded-md focus:ring-offset-0 p-0 px-2 text-xs text-white",children:(0,F.jsx)("span",{className:"text-sm text-foreground",children:r[0]||"N/A"})})]})}),(0,F.jsx)(to,{children:P&&P.entities.length>0?(0,F.jsx)(yt,{children:(0,F.jsx)(vt,{children:P.entities.map((i,n)=>{let c=i.type==="page"||i.type==="button"?i.file.originalRelativePath||i.file.relativePath:i.folder.originalRelativePath||i.folder.relativePath;return(0,F.jsx)(Nr,{entity:i,openDropdowns:v,onToggleDropdown:L,onPageSelect:d},`${i.type}-${n}-${c}`)})})}):(0,F.jsxs)(yt,{children:[(0,F.jsx)(oo,{children:"\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430\u0446\u0438\u044F"}),(0,F.jsx)(vt,{children:(0,F.jsx)(fe,{children:(0,F.jsxs)(ge,{disabled:!0,children:[(0,F.jsx)(Pr.FileText,{}),(0,F.jsx)("span",{children:"\u041D\u0435\u0442 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430\u0446\u0438\u0438"})]})})})]})})]})}var St=require("lucide-react"),Nt=O(require("react"));Fe();var Ge=require("react/jsx-runtime");function kr(){let[e,t]=Nt.useState(()=>{if(globalThis.window===void 0)return"dark";let r=globalThis.localStorage.getItem("theme");return r==="light"||r==="dark"?r:"dark"});return Nt.useEffect(()=>{let r=document.documentElement;e==="dark"?r.classList.add("dark"):r.classList.remove("dark"),globalThis.window!==void 0&&globalThis.localStorage.setItem("theme",e)},[e]),(0,Ge.jsxs)(ie,{variant:"ghost",size:"icon",onClick:()=>{t(r=>r==="dark"?"light":"dark")},className:"h-9 w-9","aria-label":"Toggle theme",children:[(0,Ge.jsx)(St.Sun,{className:"h-4 w-4 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),(0,Ge.jsx)(St.Moon,{className:"absolute h-4 w-4 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),(0,Ge.jsx)("span",{className:"sr-only",children:"Toggle theme"})]})}var Ie=require("react");function Tr(e){let t=(0,Ie.useCallback)(()=>{if(typeof window>"u")return null;let d=window.location.hash;if(!d||d.length<=1)return null;let l=d.slice(1);if(!l)return null;try{return decodeURIComponent(l)}catch{return l}},[]),[o,r]=(0,Ie.useState)(t),a=(0,Ie.useCallback)(d=>{if(r(d),typeof window>"u")return;let l=d?d.replace(/\\/g,"/"):"";if(l){let m=encodeURI(l);window.location.hash=m}else window.history.pushState("",document.title,window.location.pathname+window.location.search)},[]);return(0,Ie.useEffect)(()=>{if(typeof window>"u")return;let d=()=>{let l=t();r(l)};return window.addEventListener("hashchange",d),window.addEventListener("popstate",d),()=>{window.removeEventListener("hashchange",d),window.removeEventListener("popstate",d)}},[t]),[o,a]}var Ra=O(require("gray-matter"));function ro(e,t){let o=[];t&&o.push(t);let r=/^\d+\.\d+\.\d+/,a=/^\(group-.*\)$/,d=/^[a-z]{2}$/;return e.filter(s=>s.depth===0).forEach(s=>{s.type!=="directory"&&o.push({type:"ROOT_FILE_ERROR",file:s.name,path:s.relativePath,reason:"\u0412 \u043A\u043E\u0440\u043D\u0435\u0432\u043E\u0439 \u0434\u0438\u0440\u0435\u043A\u0442\u043E\u0440\u0438\u0438 docs/ \u043D\u0435 \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u0444\u0430\u0439\u043B\u043E\u0432",fix:`\u041F\u0435\u0440\u0435\u043C\u0435\u0441\u0442\u0438\u0442\u0435 \u0444\u0430\u0439\u043B "${s.name}" \u0432 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044E\u0449\u0443\u044E \u0432\u0435\u0440\u0441\u0438\u043E\u043D\u043D\u0443\u044E \u043F\u0430\u043F\u043A\u0443 (\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, "1.0.0/")`}),s.type==="directory"&&(r.test(s.name)||o.push({type:"VERSION_FORMAT_ERROR",folder:s.name,path:s.relativePath,reason:`\u041F\u0430\u043F\u043A\u0430 "${s.name}" \u043D\u0435 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0444\u043E\u0440\u043C\u0430\u0442\u0443 \u0432\u0435\u0440\u0441\u0438\u0438 (\u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C "x.x.x")`,fix:'\u041F\u0435\u0440\u0435\u0438\u043C\u0435\u043D\u0443\u0439\u0442\u0435 \u043F\u0430\u043F\u043A\u0443 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442 \u0432\u0435\u0440\u0441\u0438\u0438, \u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440: "1.0.0"'}))}),e.forEach(s=>{if(s.type==="file"){let p=s.relativePath.split(/[\\/]/);if(p.length<2)o.push({type:"ORPHAN_FILE_ERROR",file:s.name,path:s.relativePath,reason:`\u0424\u0430\u0439\u043B "${s.name}" \u043D\u0430\u0445\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u043A\u043E\u0440\u043D\u0435, \u0430 \u043D\u0435 \u0432\u043D\u0443\u0442\u0440\u0438 \u0432\u0435\u0440\u0441\u0438\u043E\u043D\u043D\u043E\u0439 \u043F\u0430\u043F\u043A\u0438`,fix:`\u041F\u0435\u0440\u0435\u043C\u0435\u0441\u0442\u0438\u0442\u0435 \u0444\u0430\u0439\u043B \u0432 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044E\u0449\u0443\u044E \u0432\u0435\u0440\u0441\u0438\u043E\u043D\u043D\u0443\u044E \u043F\u0430\u043F\u043A\u0443 (\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, "1.0.0/${s.name}")`});else{let v=p[0];r.test(v)||o.push({type:"FILE_IN_WRONG_FOLDER",file:s.name,path:s.relativePath,reason:`\u0424\u0430\u0439\u043B "${s.name}" \u043D\u0430\u0445\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u043F\u0430\u043F\u043A\u0435 "${v}", \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u043D\u0435 \u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u0432\u0435\u0440\u0441\u0438\u043E\u043D\u043D\u043E\u0439 \u043F\u0430\u043F\u043A\u043E\u0439`,fix:'\u041F\u0435\u0440\u0435\u043C\u0435\u0441\u0442\u0438\u0442\u0435 \u0444\u0430\u0439\u043B \u0432 \u043F\u0430\u043F\u043A\u0443 \u0441 \u0432\u0435\u0440\u0441\u0438\u0435\u0439 (\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, "1.0.0/")'})}}}),e.filter(s=>s.depth===0&&s.type==="directory"&&r.test(s.name)).forEach(s=>{let p=e.filter(i=>i.relativePath.split(/[\\/]/)[0]===s.name);p.filter(i=>i.depth===1&&i.type==="file"&&i.extension==="md").forEach(i=>{i.name.endsWith(".button.md")||o.push({type:"INVALID_ROOT_MD_FILE",file:i.name,path:i.relativePath,reason:`\u0412 \u043A\u043E\u0440\u043D\u0435 \u0432\u0435\u0440\u0441\u0438\u043E\u043D\u043D\u043E\u0439 \u043F\u0430\u043F\u043A\u0438 "${s.name}" \u043E\u0431\u044B\u0447\u043D\u044B\u0435 .md \u0444\u0430\u0439\u043B\u044B \u043D\u0435 \u0434\u043E\u043F\u0443\u0441\u043A\u0430\u044E\u0442\u0441\u044F. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 .button.md \u0434\u043B\u044F \u043A\u043D\u043E\u043F\u043E\u043A \u0438\u043B\u0438 \u043F\u0435\u0440\u0435\u043C\u0435\u0441\u0442\u0438\u0442\u0435 \u0444\u0430\u0439\u043B \u0432 \u043F\u043E\u0434\u043F\u0430\u043F\u043A\u0443`,fix:`\u041F\u0435\u0440\u0435\u0438\u043C\u0435\u043D\u0443\u0439\u0442\u0435 \u0444\u0430\u0439\u043B \u0432 "${i.name.endsWith(".md")?i.name.slice(0,-3)+".button.md":i.name+".button.md"}" \u0438\u043B\u0438 \u043F\u0435\u0440\u0435\u043C\u0435\u0441\u0442\u0438\u0442\u0435 \u0432 \u043F\u043E\u0434\u043F\u0430\u043F\u043A\u0443`})}),p.filter(i=>i.depth===1&&i.type==="directory"&&a.test(i.name)).forEach(i=>{let n=p.filter(c=>c.relativePath.startsWith(i.relativePath)&&c.type==="directory"&&c.depth>i.depth);n.length>0&&o.push({type:"NESTED_DIRECTORY_IN_GROUP",folder:n[0].name,path:n[0].relativePath,reason:`\u0412\u043D\u0443\u0442\u0440\u0438 \u0433\u0440\u0443\u043F\u043F\u044B "${i.name}" \u043D\u0435 \u0434\u043E\u043F\u0443\u0441\u043A\u0430\u044E\u0442\u0441\u044F \u0432\u043B\u043E\u0436\u0435\u043D\u043D\u044B\u0435 \u043F\u0430\u043F\u043A\u0438`,fix:`\u041F\u0435\u0440\u0435\u043C\u0435\u0441\u0442\u0438\u0442\u0435 \u0441\u043E\u0434\u0435\u0440\u0436\u0438\u043C\u043E\u0435 \u043F\u0430\u043F\u043A\u0438 "${n[0].name}" \u043D\u0430 \u0443\u0440\u043E\u0432\u0435\u043D\u044C \u0433\u0440\u0443\u043F\u043F\u044B \u0438\u043B\u0438 \u0443\u0434\u0430\u043B\u0438\u0442\u0435 \u0432\u043B\u043E\u0436\u0435\u043D\u043D\u0443\u044E \u0441\u0442\u0440\u0443\u043A\u0442\u0443\u0440\u0443`})}),p.filter(i=>i.depth===1&&i.type==="directory"&&!a.test(i.name)&&!r.test(i.name)).forEach(i=>{if(d.test(i.name))return;let c=p.filter(x=>x.relativePath.startsWith(i.relativePath)&&x.type==="directory"&&x.depth>i.depth);c.length>0&&o.push({type:"NESTED_DIRECTORY_IN_DROPDOWN",folder:c[0].name,path:c[0].relativePath,reason:`\u0412\u043D\u0443\u0442\u0440\u0438 dropdown \u043F\u0430\u043F\u043A\u0438 "${i.name}" \u043D\u0435 \u0434\u043E\u043F\u0443\u0441\u043A\u0430\u044E\u0442\u0441\u044F \u0432\u043B\u043E\u0436\u0435\u043D\u043D\u044B\u0435 \u043F\u0430\u043F\u043A\u0438`,fix:`\u041F\u0435\u0440\u0435\u043C\u0435\u0441\u0442\u0438\u0442\u0435 \u0441\u043E\u0434\u0435\u0440\u0436\u0438\u043C\u043E\u0435 \u043F\u0430\u043F\u043A\u0438 "${c[0].name}" \u043D\u0430 \u0443\u0440\u043E\u0432\u0435\u043D\u044C dropdown \u0438\u043B\u0438 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043F\u043B\u043E\u0441\u043A\u0443\u044E \u0441\u0442\u0440\u0443\u043A\u0442\u0443\u0440\u0443`})}),p.filter(i=>i.type==="file"&&i.name.endsWith(".button.md")).forEach(i=>{let n=i.relativePath.split(/[\\/]/),c=i.depth===1,x=i.depth===2&&n.length>1&&d.test(n[1]);!c&&!x&&o.push({type:"BUTTON_FILE_IN_WRONG_PLACE",file:i.name,path:i.relativePath,reason:`\u0424\u0430\u0439\u043B .button.md "${i.name}" \u0434\u043E\u043B\u0436\u0435\u043D \u043D\u0430\u0445\u043E\u0434\u0438\u0442\u044C\u0441\u044F \u0442\u043E\u043B\u044C\u043A\u043E \u0432 \u043A\u043E\u0440\u043D\u0435 \u0432\u0435\u0440\u0441\u0438\u043E\u043D\u043D\u043E\u0439 \u043F\u0430\u043F\u043A\u0438 \u0438\u043B\u0438 \u0432 \u043F\u0430\u043F\u043A\u0435 \u044F\u0437\u044B\u043A\u0430`,fix:`\u041F\u0435\u0440\u0435\u043C\u0435\u0441\u0442\u0438\u0442\u0435 \u0444\u0430\u0439\u043B "${i.name}" \u0432 \u043A\u043E\u0440\u0435\u043D\u044C \u0432\u0435\u0440\u0441\u0438\u043E\u043D\u043D\u043E\u0439 \u043F\u0430\u043F\u043A\u0438 "${s.name}/" \u0438\u043B\u0438 \u0432 \u043F\u0430\u043F\u043A\u0443 \u044F\u0437\u044B\u043A\u0430 (\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, "${s.name}/ru/")`})})}),o}function Dr(e){return{order:e.order??100,hidden:e.hidden??!1,searchable:e.searchable??!0,...e}}function Ir(e,t){if(!t)return Dr(e);let o={icon:e.icon??t.icon,hidden:e.hidden??!1,searchable:e.searchable!==void 0?e.searchable:t.searchable??!0};return Dr({...t,...o,...e})}function Mr(e,t,o,r){let a=Sa(t,e,o),d=Na(a,r||{});return Bt(d)}function Sa(e,t,o){let r=e.filter(l=>l.relativePath.split(/[/\\]/)[0]===t);if(!r.some(l=>l.depth===1&&l.type==="directory"&&Ve.test(l.name)))return r.map(l=>({...l,originalRelativePath:l.relativePath}));let d=o||null;return r=r.filter(l=>{let m=l.relativePath.split(/[/\\]/);if(m.length<2)return!0;let s=m[1];return Ve.test(s)?d?s===d:!1:!0}),r.map(l=>{let m=l.relativePath.split(/[/\\]/);return m.length>=2&&Ve.test(m[1])?{...l,depth:l.depth-1,relativePath:m.slice(2).join("/"),originalRelativePath:l.relativePath}:{...l,originalRelativePath:l.relativePath}})}function Na(e,t){let o=[];e.filter(a=>a.depth===1&&a.type==="file").forEach(a=>{let d=ft(a,e),l=t[a.relativePath]||t[a.originalRelativePath];if(d==="page"){let m=Pa(a,l);Be(m)||o.push(m)}else if(d==="button"){let m=Ea(a,l);Be(m)||o.push(m)}});let r=new Set;return e.filter(a=>a.depth===1&&a.type==="directory"&&!Ve.test(a.name)).forEach(a=>{if(r.has(a.relativePath))return;r.add(a.relativePath);let d=ft(a,e),l=a.relativePath.replace(/\\/g,"/"),m=a.originalRelativePath?.replace(/\\/g,"/")||l,s=t[m];if(d==="group"){let p=ka(a,e,s,t);Be(p)||o.push(p)}else if(d==="dropdown"){let p=Ta(a,e,s,t);Be(p)||o.push(p)}}),o}function Pa(e,t){let o={order:100,hidden:!1,searchable:!0,...t,title:t?.title||e.name.replace(/\.md$/i,"")};return{type:"page",file:e,frontmatter:o}}function Ea(e,t){let o={type:"button",variant:t?.variant||"page",order:t?.order??100,hidden:t?.hidden??!1,searchable:t?.searchable??!1,position:t?.position||"sidebar",title:t?.title||e.name.replace(gt,""),url:t?.url,target:t?.target,style:t?.style,icon:t?.icon};return{type:"button",file:e,settings:o}}function ka(e,t,o,r={}){let a={order:100,hidden:!1,searchable:!0,...o,title:o?.title||e.name.replace(/^\(group-/,"").replace(/\)$/,"")},d=Lr(e,t,a,r);return{type:"group",folder:e,pages:d,settings:a}}function Ta(e,t,o,r={}){let a={order:100,hidden:!1,searchable:!0,dropdown:"collapsed",...o,title:o?.title||e.name},d=Lr(e,t,a,r);return{type:"dropdown",folder:e,pages:d,settings:a}}function Lr(e,t,o,r){return t.filter(a=>a.type==="file"&&a.extension==="md"&&!gt.test(a.name)&&(a.relativePath.startsWith(e.relativePath+"/")||a.relativePath.startsWith(e.relativePath+"\\"))).map(a=>{let d=a.originalRelativePath||a.relativePath,l=r[d],s={...Ir(l||{},{order:o.order,hidden:o.hidden,searchable:o.searchable}),title:l?.title||a.name.replace(/\.md$/i,"")};return{type:"page",file:a,frontmatter:s}}).filter(a=>!Be(a))}var J=require("react"),z=require("react/jsx-runtime");function no({title:e="Documentation",useToggleTheme:t=!1,useToggleLanguage:o=!1,useSearch:r=!1,logo:a=(0,z.jsx)(Lt,{className:"h-10 w-10"}),folderPath:d="docs",logTreeFiles:l={},versionSelect:m=!1}){let[s,p]=(0,J.useState)(),[v,C]=(0,J.useState)([]),[P,L]=(0,J.useState)([]),[i,n]=(0,J.useState)(),c=`dock-rush-version-${d}`,x=`dock-rush-language-${d}`,[R,y]=Tr(d),[T,_]=(0,J.useState)(()=>typeof window<"u"&&localStorage.getItem(x)||null);(0,J.useEffect)(()=>{if(s?.versions&&s.versions.length>0){if(c&&typeof window<"u"){let M=localStorage.getItem(c);if(M&&s.versions.includes(M)){n(M);return}}n(s.versions[0])}},[s?.versions,c]),(0,J.useEffect)(()=>{typeof window<"u"&&(T?localStorage.setItem(x,T):localStorage.removeItem(x))},[T,x]);let $=(0,J.useMemo)(()=>l.ignore||[],[JSON.stringify(l.ignore||[])]);return(0,J.useEffect)(()=>{if(!d)return;let M=new URLSearchParams;M.set("folderPath",d),M.set("console",String(l.console??!1)),l.consoleFormat&&M.set("consoleFormat",l.consoleFormat),l.ignore?.forEach(A=>{M.append("ignore",A)}),(async()=>{try{let ee=await(await fetch(`/api/dock-rush-scan?${M.toString()}`)).json();p(ee)}catch{}})()},[d,l.console,l.consoleFormat,$]),(0,J.useEffect)(()=>{if(s?.files&&s?.versions){let M=new Set;if(s.versions.forEach(h=>{ut(h,s.files).forEach(ee=>M.add(ee))}),M.size>0&&!T){let h=M.has("ru")?"ru":Array.from(M)[0];_(h),typeof window<"u"&&localStorage.setItem(x,h)}}},[s,T,x]),(0,J.useEffect)(()=>{if(s?.files&&s?.versions){C(ro(s.files));let M=s.versions.map(h=>{let A=ut(h,s.files);return{version:h,entities:Mr(h,s.files,T,s.metadata),languages:A.length>0?A:void 0}});if(L(M),R){let h=R.replace(/\\/g,"/");s.files.filter(ee=>{let be=ee.relativePath?.replace(/\\/g,"/"),de=ee.originalRelativePath?.replace(/\\/g,"/"),Ne=ee.path?.replace(/\\/g,"/");return be===h||de===h||Ne===h}).length===0&&y(null)}}},[s,R,T,y]),v.length>0?(0,z.jsx)("div",{className:"flex flex-1 flex-col gap-4 p-6",children:(0,z.jsx)(qo,{errors:v})}):(0,z.jsxs)(qt,{className:"h-screen overflow-hidden",children:[(0,z.jsx)(Er,{title:e,logo:a,versionSelect:m,versions:s?.versions||[],documentationStructure:P,onPageSelect:y,versionStorageKey:c}),(0,z.jsxs)(Jt,{children:[(0,z.jsxs)("header",{className:"flex h-16 shrink-0 items-center justify-between gap-2 border-b px-3",children:[(0,z.jsxs)("div",{className:"flex items-center gap-2",children:[(0,z.jsx)(Qt,{}),(0,z.jsx)(Ke,{orientation:"vertical",className:"mr-2 h-4"})]}),(0,z.jsxs)("div",{className:"flex items-center gap-2",children:[r&&P.length>0&&(0,z.jsx)(dr,{documentationStructure:P,selectedVersion:i,selectedLanguage:T,onPageSelect:y,scannedFiles:s}),o&&P.length>0&&(0,z.jsx)(er,{languages:P.flatMap(M=>M.languages||[]).filter((M,h,A)=>A.indexOf(M)===h),selectedLanguage:T,onLanguageChange:M=>{_(M),y(null)}}),t&&(0,z.jsx)(kr,{})]})]}),(0,z.jsx)("main",{className:"overflow-auto",children:R?(0,z.jsx)("div",{className:"animate-in fade-in-0 duration-300",children:(0,z.jsx)(Yo,{filePath:R,folderPath:d,onPageSelect:y})}):(0,z.jsx)("div",{className:"flex flex-1 items-center justify-center p-12 animate-in fade-in-0 duration-300",children:(0,z.jsxs)("div",{className:"text-center",children:[(0,z.jsx)(Lt,{className:"mx-auto mb-4 h-12 w-12 text-muted-foreground"}),(0,z.jsx)("h2",{className:"mb-2 text-2xl font-semibold",children:"\u0414\u043E\u0431\u0440\u043E \u043F\u043E\u0436\u0430\u043B\u043E\u0432\u0430\u0442\u044C"}),(0,z.jsx)("p",{className:"text-muted-foreground",children:"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0443 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430\u0446\u0438\u0438 \u0438\u0437 \u0431\u043E\u043A\u043E\u0432\u043E\u0433\u043E \u043C\u0435\u043D\u044E"})]})})})]})]})}0&&(module.exports={Documentation});
4
+ //# sourceMappingURL=client.cjs.map