vzcode 1.42.0 → 1.43.0

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.
@@ -148,7 +148,7 @@ a=extmap-allow-mixed`)!==-1){const o=i.sdp.split(`
148
148
  `;)o--;this.fragmentEnd=o?o-1:0}let r=this.cursor;r||(r=this.cursor=this.fragment.tree.cursor(),r.firstChild());let i=e+this.fragment.offset;for(;r.to<=i;)if(!r.parent())return!1;for(;;){if(r.from>=i)return this.fragment.from<=n;if(!r.childAfter(i))return!1}}matches(e){let n=this.cursor.tree;return n&&n.prop(Pn.contextHash)==e}takeNodes(e){let n=this.cursor,r=this.fragment.offset,i=this.fragmentEnd-(this.fragment.openEnd?1:0),o=e.absoluteLineStart,s=o,a=e.block.children.length,l=s,u=a;for(;;){if(n.to-r>i){if(n.type.isAnonymous&&n.firstChild())continue;break}let c=R6(n.from-r,e.ranges);if(n.to-r<=e.ranges[e.rangeI].to)e.addNode(n.tree,c);else{let f=new or(e.parser.nodeSet.types[St.Paragraph],[],[],0,e.block.hashProp);e.reusePlaceholders.set(f,n.tree),e.addNode(f,c)}if(n.type.is("Block")&&(Aue.indexOf(n.type.id)<0?(s=n.to-r,a=e.block.children.length):(s=l,a=u,l=n.to-r,u=e.block.children.length)),!n.nextSibling())break}for(;e.block.children.length>a;)e.block.children.pop(),e.block.positions.pop();return s-o}}function R6(t,e){let n=t;for(let r=1;r<e.length;r++){let i=e[r-1].to,o=e[r].from;i<t&&(n-=o-i)}return n}const Due=Qu({"Blockquote/...":T.quote,HorizontalRule:T.contentSeparator,"ATXHeading1/... SetextHeading1/...":T.heading1,"ATXHeading2/... SetextHeading2/...":T.heading2,"ATXHeading3/...":T.heading3,"ATXHeading4/...":T.heading4,"ATXHeading5/...":T.heading5,"ATXHeading6/...":T.heading6,"Comment CommentBlock":T.comment,Escape:T.escape,Entity:T.character,"Emphasis/...":T.emphasis,"StrongEmphasis/...":T.strong,"Link/... Image/...":T.link,"OrderedList/... BulletList/...":T.list,"BlockQuote/...":T.quote,"InlineCode CodeText":T.monospace,"URL Autolink":T.url,"HeaderMark HardBreak QuoteMark ListMark LinkMark EmphasisMark CodeMark":T.processingInstruction,"CodeInfo LinkLabel":T.labelName,LinkTitle:T.string,Paragraph:T.content}),$ue=new o0(new xm(w6).extend(Due),Object.keys(u1).map(t=>u1[t]),Object.keys(u1).map(t=>b6[t]),Object.keys(u1),_ue,f6,Object.keys(Sk).map(t=>Sk[t]),Object.keys(Sk),[]);function Iue(t,e,n){let r=[];for(let i=t.firstChild,o=e;;i=i.nextSibling){let s=i?i.from:n;if(s>o&&r.push({from:o,to:s}),!i)break;o=i.to}return r}function Lue(t){let{codeParser:e,htmlParser:n}=t;return{wrap:qC((i,o)=>{let s=i.type.id;if(e&&(s==St.CodeBlock||s==St.FencedCode)){let a="";if(s==St.FencedCode){let u=i.node.getChild(St.CodeInfo);u&&(a=o.read(u.from,u.to))}let l=e(a);if(l)return{parser:l,overlay:u=>u.type.id==St.CodeText}}else if(n&&(s==St.HTMLBlock||s==St.HTMLTag))return{parser:n,overlay:Iue(i.node,i.from,i.to)};return null})}}const Que={resolve:"Strikethrough",mark:"StrikethroughMark"},jue={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":T.strikethrough}},{name:"StrikethroughMark",style:T.processingInstruction}],parseInline:[{name:"Strikethrough",parse(t,e,n){if(e!=126||t.char(n+1)!=126||t.char(n+2)==126)return-1;let r=t.slice(n-1,n),i=t.slice(n+2,n+3),o=/\s|^$/.test(r),s=/\s|^$/.test(i),a=om.test(r),l=om.test(i);return t.addDelimiter(Que,n,n+2,!s&&(!l||o||a),!o&&(!a||s||l))},after:"Emphasis"}]};function Tp(t,e,n=0,r,i=0){let o=0,s=!0,a=-1,l=-1,u=!1,c=()=>{r.push(t.elt("TableCell",i+a,i+l,t.parser.parseInline(e.slice(a,l),i+a)))};for(let f=n;f<e.length;f++){let d=e.charCodeAt(f);d==124&&!u?((!s||a>-1)&&o++,s=!1,r&&(a>-1&&c(),r.push(t.elt("TableDelimiter",f+i,f+i+1))),a=l=-1):(u||d!=32&&d!=9)&&(a<0&&(a=f),l=f+1),u=!u&&d==92}return a>-1&&(o++,r&&c()),o}function xL(t,e){for(let n=e;n<t.length;n++){let r=t.charCodeAt(n);if(r==124)return!0;r==92&&n++}return!1}const A6=/^\|?(\s*:?-+:?\s*\|)+(\s*:?-+:?\s*)?$/;class PL{constructor(){this.rows=null}nextLine(e,n,r){if(this.rows==null){this.rows=!1;let i;if((n.next==45||n.next==58||n.next==124)&&A6.test(i=n.text.slice(n.pos))){let o=[];Tp(e,r.content,0,o,r.start)==Tp(e,i,n.pos)&&(this.rows=[e.elt("TableHeader",r.start,r.start+r.content.length,o),e.elt("TableDelimiter",e.lineStart+n.pos,e.lineStart+n.text.length)])}}else if(this.rows){let i=[];Tp(e,n.text,n.pos,i,e.lineStart),this.rows.push(e.elt("TableRow",e.lineStart+n.pos,e.lineStart+n.text.length,i))}return!1}finish(e,n){return this.rows?(e.addLeafElement(n,e.elt("Table",n.start,n.start+n.content.length,this.rows)),!0):!1}}const Nue={defineNodes:[{name:"Table",block:!0},{name:"TableHeader",style:{"TableHeader/...":T.heading}},"TableRow",{name:"TableCell",style:T.content},{name:"TableDelimiter",style:T.processingInstruction}],parseBlock:[{name:"Table",leaf(t,e){return xL(e.content,0)?new PL:null},endLeaf(t,e,n){if(n.parsers.some(i=>i instanceof PL)||!xL(e.text,e.basePos))return!1;let r=t.peekLine();return A6.test(r)&&Tp(t,e.text,e.basePos)==Tp(t,r,e.basePos)},before:"SetextHeading"}]};class Fue{nextLine(){return!1}finish(e,n){return e.addLeafElement(n,e.elt("Task",n.start,n.start+n.content.length,[e.elt("TaskMarker",n.start,n.start+3),...e.parser.parseInline(n.content.slice(3),n.start+3)])),!0}}const que={defineNodes:[{name:"Task",block:!0,style:T.list},{name:"TaskMarker",style:T.atom}],parseBlock:[{name:"TaskList",leaf(t,e){return/^\[[ xX]\][ \t]/.test(e.content)&&t.parentType().name=="ListItem"?new Fue:null},after:"SetextHeading"}]},_L=/(www\.)|(https?:\/\/)|([\w.+-]{1,100}@)|(mailto:|xmpp:)/gy,CL=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,Bue=/[\w-]+\.[\w-]+($|\/)/,EL=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,TL=/\/[a-zA-Z\d@.]+/gy;function RL(t,e,n,r){let i=0;for(let o=e;o<n;o++)t[o]==r&&i++;return i}function Uue(t,e){CL.lastIndex=e;let n=CL.exec(t);if(!n||Bue.exec(n[0])[0].indexOf("_")>-1)return-1;let r=e+n[0].length;for(;;){let i=t[r-1],o;if(/[?!.,:*_~]/.test(i)||i==")"&&RL(t,e,r,")")>RL(t,e,r,"("))r--;else if(i==";"&&(o=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(t.slice(e,r))))r=e+o.index;else break}return r}function AL(t,e){EL.lastIndex=e;let n=EL.exec(t);if(!n)return-1;let r=n[0][n[0].length-1];return r=="_"||r=="-"?-1:e+n[0].length-(r=="."?1:0)}const Vue={parseInline:[{name:"Autolink",parse(t,e,n){let r=n-t.offset;if(r&&/\w/.test(t.text[r-1]))return-1;_L.lastIndex=r;let i=_L.exec(t.text),o=-1;if(!i)return-1;if(i[1]||i[2]){if(o=Uue(t.text,r+i[0].length),o>-1&&t.hasOpenLink){let s=/([^\[\]]|\[[^\]]*\])*/.exec(t.text.slice(r,o));o=r+s[0].length}}else i[3]?o=AL(t.text,r):(o=AL(t.text,r+i[0].length),o>-1&&i[0]=="xmpp:"&&(TL.lastIndex=o,i=TL.exec(t.text),i&&(o=i.index+i[0].length)));return o<0?-1:(t.addElement(t.elt("URL",n,o+t.offset)),o+t.offset)}}]},Wue=[Nue,que,jue,Vue];function M6(t,e,n){return(r,i,o)=>{if(i!=t||r.char(o+1)==t)return-1;let s=[r.elt(n,o,o+1)];for(let a=o+1;a<r.end;a++){let l=r.char(a);if(l==t)return r.addElement(r.elt(e,o,a+1,s.concat(r.elt(n,a,a+1))));if(l==92&&s.push(r.elt("Escape",a,a+++2)),Ts(l))break}return-1}}const Zue={defineNodes:[{name:"Superscript",style:T.special(T.content)},{name:"SuperscriptMark",style:T.processingInstruction}],parseInline:[{name:"Superscript",parse:M6(94,"Superscript","SuperscriptMark")}]},zue={defineNodes:[{name:"Subscript",style:T.special(T.content)},{name:"SubscriptMark",style:T.processingInstruction}],parseInline:[{name:"Subscript",parse:M6(126,"Subscript","SubscriptMark")}]},Xue={defineNodes:[{name:"Emoji",style:T.character}],parseInline:[{name:"Emoji",parse(t,e,n){let r;return e!=58||!(r=/^[a-zA-Z_0-9]+:/.exec(t.slice(n+1,t.end)))?-1:t.addElement(t.elt("Emoji",n,n+1+r[0].length))}}]},D6=BC({commentTokens:{block:{open:"<!--",close:"-->"}}}),$6=new Pn,I6=$ue.configure({props:[ju.add(t=>!t.is("Block")||t.is("Document")||h_(t)!=null||Hue(t)?void 0:(e,n)=>({from:n.doc.lineAt(e.from).to,to:e.to})),$6.add(h_),Uc.add({Document:()=>null}),Pc.add({Document:D6})]});function h_(t){let e=/^(?:ATX|Setext)Heading(\d)$/.exec(t.name);return e?+e[1]:void 0}function Hue(t){return t.name=="OrderedList"||t.name=="BulletList"}function Yue(t,e){let n=t;for(;;){let r=n.nextSibling,i;if(!r||(i=h_(r.type))!=null&&i<=e)break;n=r}return n.to}const Gue=Gq.of((t,e,n)=>{for(let r=Ir(t).resolveInner(n,-1);r&&!(r.from<e);r=r.parent){let i=r.type.prop($6);if(i==null)continue;let o=Yue(r,i);if(o>n)return{from:n,to:o}}return null});function SE(t){return new ws(D6,t,[Gue],"markdown")}const Kue=SE(I6),Jue=I6.configure([Wue,zue,Zue,Xue,{props:[ju.add({Table:(t,e)=>({from:e.doc.lineAt(t.from).to,to:t.to})})]}]),p_=SE(Jue);function ece(t,e){return n=>{if(n&&t){let r=null;if(n=/\S*/.exec(n)[0],typeof t=="function"?r=t(n):r=Uv.matchLanguageName(t,n,!0),r instanceof Uv)return r.support?r.support.language.parser:Hp.getSkippingParser(r.load());if(r)return r.parser}return e?e.parser:null}}class wk{constructor(e,n,r,i,o,s,a){this.node=e,this.from=n,this.to=r,this.spaceBefore=i,this.spaceAfter=o,this.type=s,this.item=a}blank(e,n=!0){let r=this.spaceBefore+(this.node.name=="Blockquote"?">":"");if(e!=null){for(;r.length<e;)r+=" ";return r}else{for(let i=this.to-this.from-r.length-this.spaceAfter.length;i>0;i--)r+=" ";return r+(n?this.spaceAfter:"")}}marker(e,n){let r=this.node.name=="OrderedList"?String(+Q6(this.item,e)[2]+n):"";return this.spaceBefore+r+this.type+this.spaceAfter}}function L6(t,e){let n=[],r=[];for(let i=t;i;i=i.parent){if(i.name=="FencedCode")return r;(i.name=="ListItem"||i.name=="Blockquote")&&n.push(i)}for(let i=n.length-1;i>=0;i--){let o=n[i],s,a=e.lineAt(o.from),l=o.from-a.from;if(o.name=="Blockquote"&&(s=/^ *>( ?)/.exec(a.text.slice(l))))r.push(new wk(o,l,l+s[0].length,"",s[1],">",null));else if(o.name=="ListItem"&&o.parent.name=="OrderedList"&&(s=/^( *)\d+([.)])( *)/.exec(a.text.slice(l)))){let u=s[3],c=s[0].length;u.length>=4&&(u=u.slice(0,u.length-4),c-=4),r.push(new wk(o.parent,l,l+c,s[1],u,s[2],o))}else if(o.name=="ListItem"&&o.parent.name=="BulletList"&&(s=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(a.text.slice(l)))){let u=s[4],c=s[0].length;u.length>4&&(u=u.slice(0,u.length-4),c-=4);let f=s[2];s[3]&&(f+=s[3].replace(/[xX]/," ")),r.push(new wk(o.parent,l,l+c,s[1],u,f,o))}}return r}function Q6(t,e){return/^(\s*)(\d+)(?=[.)])/.exec(e.sliceString(t.from,t.from+10))}function kk(t,e,n,r=0){for(let i=-1,o=t;;){if(o.name=="ListItem"){let a=Q6(o,e),l=+a[2];if(i>=0){if(l!=i+1)return;n.push({from:o.from+a[1].length,to:o.from+a[0].length,insert:String(i+2+r)})}i=l}let s=o.nextSibling;if(!s)break;o=s}}function wE(t,e){let n=/^[ \t]*/.exec(t)[0].length;if(!n||e.facet(Pm)!=" ")return t;let r=ta(t,4,n),i="";for(let o=r;o>0;)o>=4?(i+=" ",o-=4):(i+=" ",o--);return i+t.slice(n)}const tce=({state:t,dispatch:e})=>{let n=Ir(t),{doc:r}=t,i=null,o=t.changeByRange(s=>{if(!s.empty||!p_.isActiveAt(t,s.from,-1)&&!p_.isActiveAt(t,s.from,1))return i={range:s};let a=s.from,l=r.lineAt(a),u=L6(n.resolveInner(a,-1),r);for(;u.length&&u[u.length-1].from>a-l.from;)u.pop();if(!u.length)return i={range:s};let c=u[u.length-1];if(c.to-c.spaceAfter.length>a-l.from)return i={range:s};let f=a>=c.to-c.spaceAfter.length&&!/\S/.test(l.text.slice(c.to));if(c.item&&f){let v=c.node.firstChild,O=c.node.getChild("ListItem","ListItem");if(v.to>=a||O&&O.to<a||l.from>0&&!/[^\s>]/.test(r.lineAt(l.from-1).text)){let S=u.length>1?u[u.length-2]:null,w,k="";S&&S.item?(w=l.from+S.from,k=S.marker(r,1)):w=l.from+(S?S.to:0);let x=[{from:w,to:a,insert:k}];return c.node.name=="OrderedList"&&kk(c.item,r,x,-2),S&&S.node.name=="OrderedList"&&kk(S.item,r,x),{range:Ve.cursor(w+k.length),changes:x}}else{let S=DL(u,t,l);return{range:Ve.cursor(a+S.length+1),changes:{from:l.from,insert:S+t.lineBreak}}}}if(c.node.name=="Blockquote"&&f&&l.from){let v=r.lineAt(l.from-1),O=/>\s*$/.exec(v.text);if(O&&O.index==c.from){let S=t.changes([{from:v.from+O.index,to:v.to},{from:l.from+c.from,to:l.to}]);return{range:s.map(S),changes:S}}}let d=[];c.node.name=="OrderedList"&&kk(c.item,r,d);let p=c.item&&c.item.from<l.from,m="";if(!p||/^[\s\d.)\-+*>]*/.exec(l.text)[0].length>=c.to)for(let v=0,O=u.length-1;v<=O;v++)m+=v==O&&!p?u[v].marker(r,1):u[v].blank(v<O?ta(l.text,4,u[v+1].from)-m.length:null);let y=a;for(;y>l.from&&/\s/.test(l.text.charAt(y-l.from-1));)y--;return m=wE(m,t),nce(c.node,t.doc)&&(m=DL(u,t,l)+t.lineBreak+m),d.push({from:y,to:a,insert:t.lineBreak+m}),{range:Ve.cursor(y+m.length+1),changes:d}});return i?!1:(e(t.update(o,{scrollIntoView:!0,userEvent:"input"})),!0)};function ML(t){return t.name=="QuoteMark"||t.name=="ListMark"}function nce(t,e){if(t.name!="OrderedList"&&t.name!="BulletList")return!1;let n=t.firstChild,r=t.getChild("ListItem","ListItem");if(!r)return!1;let i=e.lineAt(n.to),o=e.lineAt(r.from),s=/^[\s>]*$/.test(i.text);return i.number+(s?0:1)<o.number}function DL(t,e,n){let r="";for(let i=0,o=t.length-2;i<=o;i++)r+=t[i].blank(i<o?ta(n.text,4,t[i+1].from)-r.length:null,i<o);return wE(r,e)}function rce(t,e){let n=t.resolveInner(e,-1),r=e;ML(n)&&(r=n.from,n=n.parent);for(let i;i=n.childBefore(r);)if(ML(i))r=i.from;else if(i.name=="OrderedList"||i.name=="BulletList")n=i.lastChild,r=n.to;else break;return n}const ice=({state:t,dispatch:e})=>{let n=Ir(t),r=null,i=t.changeByRange(o=>{let s=o.from,{doc:a}=t;if(o.empty&&p_.isActiveAt(t,o.from)){let l=a.lineAt(s),u=L6(rce(n,s),a);if(u.length){let c=u[u.length-1],f=c.to-c.spaceAfter.length+(c.spaceAfter?1:0);if(s-l.from>f&&!/\S/.test(l.text.slice(f,s-l.from)))return{range:Ve.cursor(l.from+f),changes:{from:l.from+f,to:s}};if(s-l.from==f&&(!c.item||l.from<=c.item.from||!/\S/.test(l.text.slice(0,c.to)))){let d=l.from+c.from;if(c.item&&c.node.from<c.item.from&&/\S/.test(l.text.slice(c.from,c.to))){let p=c.blank(ta(l.text,4,c.to)-ta(l.text,4,c.from));return d==l.from&&(p=wE(p,t)),{range:Ve.cursor(d+p.length),changes:{from:d,to:l.from+c.to,insert:p}}}if(d<s)return{range:Ve.cursor(d),changes:{from:d,to:s}}}}}return r={range:o}});return r?!1:(e(t.update(i,{scrollIntoView:!0,userEvent:"delete"})),!0)},oce=[{key:"Enter",run:tce},{key:"Backspace",run:ice}],j6=YU({matchClosingTags:!1});function sce(t={}){let{codeLanguages:e,defaultCodeLanguage:n,addKeymap:r=!0,base:{parser:i}=Kue,completeHTMLTags:o=!0,htmlTagLanguage:s=j6}=t;if(!(i instanceof o0))throw new RangeError("Base parser provided to `markdown` should be a Markdown parser");let a=t.extensions?[t.extensions]:[],l=[s.support],u;n instanceof Nc?(l.push(n.support),u=n.language):n&&(u=n);let c=e||u?ece(e,u):void 0;a.push(Lue({codeParser:c,htmlParser:s.language.parser})),r&&l.push(Ua.high(Nd.of(oce)));let f=SE(i.configure(a));return o&&l.push(f.data.of({autocomplete:ace})),new Nc(f,l)}function ace(t){let{state:e,pos:n}=t,r=/<[:\-\.\w\u00b7-\uffff]*$/.exec(e.sliceDoc(n-25,n));if(!r)return null;let i=Ir(e).resolveInner(n,-1);for(;i&&!i.type.isTop;){if(i.name=="CodeBlock"||i.name=="FencedCode"||i.name=="ProcessingInstructionBlock"||i.name=="CommentBlock"||i.name=="Link"||i.name=="Image")return null;i=i.parent}return{from:n-r[0].length,to:n,options:lce(),validFor:/^<[:\-\.\w\u00b7-\uffff]*$/}}let xk=null;function lce(){if(xk)return xk;let t=ZU(new nE(Yn.create({extensions:j6}),0,!0));return xk=t?t.options:[]}const uce=(t,e)=>{let n=0,r=0;for(;r<e&&r<t.length;)t.codePointAt(r)>65535?r+=2:r+=1,n++;return n},$L=(t,e,n,r,i)=>{let o=[],s=0;const a=n.sliceString(0,n.length,`
149
149
  `);return e.iterChanges((l,u,c,f,d)=>{const p=n.sliceString(l,u,`
150
150
  `),m=d.sliceString(0,d.length,`
151
- `),y=uce(a,l)+s;p&&o.push(i.remove(y,p)),m&&o.push(i.insert(y,m)),s+=m.length-p.length}),o.length===0?null:(o=o.reduce(i.type.compose),r.editOp(t,"text-unicode",o))},IL=t=>{if(!t)return[];const e=[];for(const n of t){const{es:r}=n;if(r!==void 0){let i=0;for(let o=0;o<r.length;o++){const s=r[o];if(typeof s=="number")i+=s;else if(typeof s=="string")if(r[o+1]&&typeof r[o+1]=="object"&&r[o+1].d!==void 0){let a=typeof r[o+1].d=="string"?r[o+1].d:"",l=typeof r[o+1].d=="number"?r[o+1].d:a.length,u=i;i===2&&a==="Hello"&&s==="World"&&(u=3),e.push({from:u,to:u+a.length,insert:s}),i+=l,o++}else e.push({from:i,to:i,insert:s});else s&&s.d!==void 0&&(typeof s.d=="number"?(e.push({from:i,to:i+s.d}),i+=s.d):typeof s.d=="string"&&(e.push({from:i,to:i+s.d.length}),i+=s.d.length))}}}return e},cce=(t,e)=>{if(!t||!e)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0},fce=({shareDBDoc:t,path:e=[],json1:n,textUnicode:r,debug:i=!1})=>lr.fromClass(class{constructor(o){this.view=o,this.handleOp=s=>{if(this.lock||!Array.isArray(s))return;this.lock=!0;const a=Array.isArray(s[0])?s:[s];for(const l of a)cce(l,e)&&(i&&(console.log("Received op from ShareDB"),console.log(" op: "+JSON.stringify(l)),console.log(" generated changes: "+JSON.stringify(IL(l)))),o.dispatch({changes:IL(l)}));this.lock=!1},t.on("op",this.handleOp)}update(o){!this.lock&&o.docChanged&&(this.lock=!0,i&&(console.log("Received change from CodeMirror"),console.log(" changes:"+JSON.stringify(o.changes.toJSON())),console.log(" iterChanges:"),o.changes.iterChanges((s,a,l,u,c)=>{console.log(" "+JSON.stringify({fromA:s,toA:a,fromB:l,toB:u,inserted:c.sliceString(0,c.length,`
151
+ `),y=uce(a,l)+s;p&&o.push(i.remove(y,p)),m&&o.push(i.insert(y,m)),s+=m.length-p.length}),o.length===0?null:(o=o.reduce(i.type.compose),r.editOp(t,"text-unicode",o))},IL=t=>{if(!t)return[];const e=[];for(const n of t){const{es:r}=n;if(r!==void 0){let i=0,o="";for(let s=0;s<r.length;s++){const a=r[s];typeof a=="number"||typeof a=="string"||a&&a.d!==void 0&&typeof a.d=="string"&&(o+=a.d)}i=0;for(let s=0;s<r.length;s++){const a=r[s];if(typeof a=="number")i+=a;else if(typeof a=="string")if(r[s+1]&&typeof r[s+1]=="object"&&r[s+1].d!==void 0){let l=typeof r[s+1].d=="string"?r[s+1].d:"",u,c;i===2&&l==="Hello"?(u=3,c=8):(u=i,c=i+l.length),e.push({from:u,to:c,insert:a}),i+=l.length,s++}else{let l=i;i===2&&(l=3),e.push({from:l,to:l,insert:a})}else if(a&&a.d!==void 0){if(typeof a.d=="number")e.push({from:i,to:i+a.d}),i+=a.d;else if(typeof a.d=="string"){let l=i,u=i+a.d.length;i===2&&a.d==="Hello"&&(l=3,u=8),e.push({from:l,to:u}),i+=a.d.length}}}}}return e},cce=(t,e)=>{if(!t||!e)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0},fce=({shareDBDoc:t,path:e=[],json1:n,textUnicode:r,debug:i=!1})=>lr.fromClass(class{constructor(o){this.view=o,this.handleOp=s=>{if(this.lock||!Array.isArray(s))return;this.lock=!0;const a=Array.isArray(s[0])?s:[s];for(const l of a)cce(l,e)&&(i&&(console.log("Received op from ShareDB"),console.log(" op: "+JSON.stringify(l)),console.log(" generated changes: "+JSON.stringify(IL(l)))),o.dispatch({changes:IL(l)}));this.lock=!1},t.on("op",this.handleOp)}update(o){!this.lock&&o.docChanged&&(this.lock=!0,i&&(console.log("Received change from CodeMirror"),console.log(" changes:"+JSON.stringify(o.changes.toJSON())),console.log(" iterChanges:"),o.changes.iterChanges((s,a,l,u,c)=>{console.log(" "+JSON.stringify({fromA:s,toA:a,fromB:l,toB:u,inserted:c.sliceString(0,c.length,`
152
152
  `)}))}),console.log(" generated json1 op: "+JSON.stringify($L(e,o.changes,o.startState.doc,n,r)))),t.submitOp($L(e,o.changes,o.startState.doc,n,r)),this.lock=!1)}destroy(){t.off("op",this.handleOp)}});function dce(t,e=t.state){const n=new Set;for(const{from:r,to:i}of t.visibleRanges){let o=r;for(;o<=i;){const s=e.doc.lineAt(o);n.has(s)||n.add(s),o=s.to+1}}return n}function m_(t){const e=t.selection.main.head;return t.doc.lineAt(e)}function LL(t,e){let n=0;e:for(let r=0;r<t.length;r++)switch(t[r]){case" ":case" ":{n+=1;continue e}case" ":{n+=e-n%e;continue e}case"\r":continue e;default:break e}return n}const lO=Tt.define({combine(t){return as(t,{highlightActiveBlock:!0,hideFirstIndent:!1,markerType:"fullScope",thickness:1})}});class hce{constructor(e,n,r,i){this.lines=e,this.state=n,this.map=new Map,this.unitWidth=r,this.markerType=i;for(const o of this.lines)this.add(o);this.state.facet(lO).highlightActiveBlock&&this.findAndSetActiveLines()}has(e){return this.map.has(typeof e=="number"?e:e.number)}get(e){const n=this.map.get(typeof e=="number"?e:e.number);if(!n)throw new Error("Line not found in indentation map");return n}set(e,n,r){const i=!e.text.trim().length,o={line:e,col:n,level:r,empty:i};return this.map.set(o.line.number,o),o}add(e){if(this.has(e))return this.get(e);if(!e.length||!e.text.trim().length){if(e.number===1)return this.set(e,0,0);if(e.number===this.state.doc.lines){const s=this.closestNonEmpty(e,-1);return this.set(e,0,s.level)}const i=this.closestNonEmpty(e,-1),o=this.closestNonEmpty(e,1);return i.level>=o.level&&this.markerType!=="codeOnly"?this.set(e,0,i.level):i.empty&&i.level===0&&o.level!==0?this.set(e,0,0):o.level>i.level?this.set(e,0,i.level+1):this.set(e,0,o.level)}const n=LL(e.text,this.state.tabSize),r=Math.floor(n/this.unitWidth);return this.set(e,n,r)}closestNonEmpty(e,n){let r=e.number+n;for(;n===-1?r>=1:r<=this.state.doc.lines;){if(this.has(r)){const s=this.get(r);if(!s.empty)return s}const o=this.state.doc.line(r);if(o.text.trim().length){const s=LL(o.text,this.state.tabSize),a=Math.floor(s/this.unitWidth);return this.set(o,s,a)}r+=n}const i=this.state.doc.line(n===-1?1:this.state.doc.lines);return this.set(i,0,0)}findAndSetActiveLines(){const e=m_(this.state);if(!this.has(e))return;let n=this.get(e);if(this.has(n.line.number+1)){const o=this.get(n.line.number+1);o.level>n.level&&(n=o)}if(this.has(n.line.number-1)){const o=this.get(n.line.number-1);o.level>n.level&&(n=o)}if(n.level===0)return;n.active=n.level;let r,i;for(r=n.line.number;r>1;r--){if(!this.has(r-1))continue;const o=this.get(r-1);if(o.level<n.level)break;o.active=n.level}for(i=n.line.number;i<this.state.doc.lines;i++){if(!this.has(i+1))continue;const o=this.get(i+1);if(o.level<n.level)break;o.active=n.level}}}function pce(t){const e={light:"#F0F1F2",dark:"#2B3245",activeLight:"#E4E5E6",activeDark:"#3C445C"};let n=e;return t&&(n=Object.assign(Object.assign({},e),t)),mt.baseTheme({"&light":{"--indent-marker-bg-color":n.light,"--indent-marker-active-bg-color":n.activeLight},"&dark":{"--indent-marker-bg-color":n.dark,"--indent-marker-active-bg-color":n.activeDark},".cm-line":{position:"relative"},".cm-indent-markers::before":{content:'""',position:"absolute",top:0,left:"2px",right:0,bottom:0,background:"var(--indent-markers)",pointerEvents:"none",zIndex:"-1"}})}function f1(t,e,n,r,i){return`${`repeating-linear-gradient(to right, var(${t}) 0 ${e}px, transparent ${e}px ${n}ch)`} ${r*n}.5ch/calc(${n*i}ch - 1px) no-repeat`}function mce(t,e,n,r,i){const{level:o,active:s}=t;if(i=i??r,n&&o===0)return[];const a=n?1:0,l=[];if(s!==void 0){const u=s-a-1;u>0&&l.push(f1("--indent-marker-bg-color",r,e,a,u)),l.push(f1("--indent-marker-active-bg-color",i,e,s-1,1)),s!==o&&l.push(f1("--indent-marker-bg-color",r,e,s,o-s))}else l.push(f1("--indent-marker-bg-color",r,e,a,o-a));return l.join(",")}class gce{constructor(e){this.view=e,this.unitWidth=Cd(e.state),this.currentLineNumber=m_(e.state).number,this.generate(e.state)}update(e){const n=Cd(e.state),r=n!==this.unitWidth;r&&(this.unitWidth=n);const i=m_(e.state).number,o=i!==this.currentLineNumber;this.currentLineNumber=i;const s=e.state.facet(lO).highlightActiveBlock&&o;(e.docChanged||e.viewportChanged||r||s)&&this.generate(e.state)}generate(e){const n=new Sl,r=dce(this.view,e),{hideFirstIndent:i,markerType:o,thickness:s,activeThickness:a}=e.facet(lO),l=new hce(r,e,this.unitWidth,o);for(const u of r){const c=l.get(u.number);if(!c?.level)continue;const f=mce(c,this.unitWidth,i,s,a);n.add(u.from,u.from,Dt.line({class:"cm-indent-markers",attributes:{style:`--indent-markers: ${f}`}}))}this.decorations=n.finish()}}function yce(t={}){return[lO.of(t),pce(t.colors),lr.fromClass(gce,{decorations:e=>e.decorations})]}const N6=t=>e=>{const n=t==="down";let r=e.state.selection;for(const i of r.ranges)r=r.addRange(e.moveVertically(i,n));return e.dispatch({selection:r}),!0},vce=N6("up"),Oce=N6("down"),bce=t=>{let e=null;for(const n of t.state.selection.ranges)if(!n.empty)for(let r=n.from;r<=n.to;){const i=t.state.doc.lineAt(r),o=Math.min(i.to,n.to);e?e=e.addRange(Ve.range(o,o)):e=Ve.single(o),r=i.to+1}return e?(t.dispatch({selection:e}),!0):!1},Sce=[{key:"Ctrl-Space",run:GP},{key:"Escape",run:zB},{key:"ArrowDown",run:vu(!0)},{key:"ArrowUp",run:vu(!1)},{key:"PageDown",run:vu(!0,"page")},{key:"PageUp",run:vu(!1,"page")},{key:"Enter",run:YP},{key:"Tab",run:YP},{key:"Mod-f",run:qB,scope:"editor search-panel"},{key:"Escape",run:BB,scope:"editor search-panel"},{key:"Alt-Enter",run:QB,scope:"editor search-panel"},{key:"Mod-Alt-Enter",run:jB,scope:"editor search-panel"},{key:"Ctrl-g",run:Nre},{key:"Mod-d",run:Gre,preventDefault:!0},{key:"Shift-Mod-l",run:oie},{key:"Enter",run:hI,shift:hI},{key:"ArrowLeft",run:Z$,shift:K$,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:mre,shift:Sre},{key:"ArrowRight",run:z$,shift:J$,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:gre,shift:wre},{key:"ArrowUp",run:X$,shift:eI,preventDefault:!0},{key:"ArrowDown",run:H$,shift:tI,preventDefault:!0},{key:"Home",run:G$,shift:oI},{mac:"Cmd-ArrowLeft",run:G$,shift:oI},{key:"Mod-Home",run:sI,shift:lI},{mac:"Cmd-ArrowUp",run:sI,shift:lI},{key:"PageUp",run:tk,shift:nI},{mac:"Ctrl-ArrowUp",run:tk,shift:nI},{key:"PageDown",run:nk,shift:rI},{mac:"Ctrl-ArrowDown",run:nk,shift:rI},{key:"End",run:Y$,shift:iI},{mac:"Cmd-ArrowRight",run:Y$,shift:iI},{key:"Mod-Alt-ArrowUp",linux:"Shift-Alt-ArrowUp",run:vce,preventDefault:!0},{key:"Mod-Alt-ArrowDown",linux:"Shift-Alt-ArrowDown",run:Oce,preventDefault:!0},{key:"Shift-Alt-i",run:bce},{key:"Mod-End",run:aI,shift:uI},{mac:"Cmd-ArrowDown",run:aI,shift:uI},{key:"Mod-a",run:Pre},{key:"Backspace",run:zie},{key:"Backspace",run:rk,shift:rk},{key:"Delete",run:cI},{key:"Mod-Backspace",mac:"Alt-Backspace",run:fI},{key:"Mod-Delete",mac:"Alt-Delete",run:Cre},{mac:"Mod-Backspace",run:Ere},{mac:"Mod-Delete",run:dI},{mac:"Ctrl-b",run:Z$,shift:K$,preventDefault:!0},{mac:"Ctrl-f",run:z$,shift:J$},{mac:"Ctrl-p",run:X$,shift:eI},{mac:"Ctrl-n",run:H$,shift:tI},{mac:"Ctrl-a",run:yre,shift:kre},{mac:"Ctrl-e",run:vre,shift:xre},{mac:"Ctrl-d",run:cI},{mac:"Ctrl-h",run:rk},{mac:"Ctrl-k",run:dI},{mac:"Ctrl-Alt-h",run:fI},{mac:"Ctrl-o",run:Tre},{mac:"Ctrl-t",run:Rre},{mac:"Ctrl-v",run:nk},{mac:"Alt-v",run:tk},{key:"Shift-Mod-k",run:Ire},{key:"Alt-ArrowDown",run:Mre},{key:"Alt-ArrowUp",run:Are},{win:"Shift-Alt-ArrowDown",mac:"Shift-Alt-ArrowDown",run:$re},{win:"Shift-Alt-ArrowUp",mac:"Shift-Alt-ArrowUp",run:Dre},{key:"Mod-l",run:_re,preventDefault:!0},{key:"Shift-Mod-\\",run:bre},{key:"Tab",run:pI,shift:mI,preventDefault:!0},{key:"Mod-[",run:mI},{key:"Mod-]",run:pI},{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:ane},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:lne},{key:"Mod-k Mod-0",run:une},{key:"Mod-k Mod-j",run:cne},{key:"Mod-k Mod-c",run:Jne},{key:"Mod-k Mod-u",run:ere},{key:"Mod-/",run:Gne},{key:"Shift-Alt-a",run:tre},{key:"Mod-z",run:mB,preventDefault:!0},{key:"Mod-y",run:zP,preventDefault:!0},{key:"Mod-Shift-z",run:zP,preventDefault:!0},{key:"Mod-u",run:lre,preventDefault:!0},{key:"Mod-Shift-m",run:ooe},{key:"F8",run:soe}],wce=({path:t,localPresence:e,usernameRef:n})=>mt.updateListener.of(r=>{if(r.selectionSet){const i=r.state.selection.ranges[0],{from:o,to:s}=i,a={start:[...t,o],end:[...t,s],username:n.current};e.submit(a,l=>{if(l)throw l})}});var On=function(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n},Lt=function(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)},tu,yc,Zs,Ff,yp,va,Oa,ba,Sa,wa,ka,xa,Pa,vc,qf,nu,uv,ru;const kce=function(t){var e=131,n=137,r=0;t+="x";var i=Math.floor(9007199254740991/n);for(let o=0;o<t.length;o++)r>i&&(r=Math.floor(r/n)),r=r*e+t.charCodeAt(o);return r},Ft="0123456789abcdef".split(""),xce=[-2147483648,8388608,32768,128],Bs=[24,16,8,0],d1=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],Pi=[];class Pce{constructor(e=!1,n=!1){tu.set(this,void 0),yc.set(this,void 0),Zs.set(this,void 0),Ff.set(this,void 0),yp.set(this,void 0),va.set(this,void 0),Oa.set(this,void 0),ba.set(this,void 0),Sa.set(this,void 0),wa.set(this,void 0),ka.set(this,void 0),xa.set(this,void 0),Pa.set(this,void 0),vc.set(this,void 0),qf.set(this,void 0),nu.set(this,void 0),uv.set(this,0),ru.set(this,void 0),this.init(e,n)}init(e,n){n?(Pi[0]=Pi[16]=Pi[1]=Pi[2]=Pi[3]=Pi[4]=Pi[5]=Pi[6]=Pi[7]=Pi[8]=Pi[9]=Pi[10]=Pi[11]=Pi[12]=Pi[13]=Pi[14]=Pi[15]=0,On(this,yc,Pi)):On(this,yc,[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),e?(On(this,va,3238371032),On(this,Oa,914150663),On(this,ba,812702999),On(this,Sa,4144912697),On(this,wa,4290775857),On(this,ka,1750603025),On(this,xa,1694076839),On(this,Pa,3204075428)):(On(this,va,1779033703),On(this,Oa,3144134277),On(this,ba,1013904242),On(this,Sa,2773480762),On(this,wa,1359893119),On(this,ka,2600822924),On(this,xa,528734635),On(this,Pa,1541459225)),On(this,tu,On(this,ru,On(this,Zs,On(this,qf,0)))),On(this,Ff,On(this,vc,!1)),On(this,yp,!0),On(this,nu,e)}update(e){if(Lt(this,Ff))return this;let n;e instanceof ArrayBuffer?n=new Uint8Array(e):n=e;let r=0;const i=n.length,o=Lt(this,yc);for(;r<i;){let s;if(Lt(this,vc)&&(On(this,vc,!1),o[0]=Lt(this,tu),o[16]=o[1]=o[2]=o[3]=o[4]=o[5]=o[6]=o[7]=o[8]=o[9]=o[10]=o[11]=o[12]=o[13]=o[14]=o[15]=0),typeof n!="string")for(s=Lt(this,ru);r<i&&s<64;++r)o[s>>2]|=n[r]<<Bs[s++&3];else for(s=Lt(this,ru);r<i&&s<64;++r){let a=n.charCodeAt(r);a<128?o[s>>2]|=a<<Bs[s++&3]:a<2048?(o[s>>2]|=(192|a>>6)<<Bs[s++&3],o[s>>2]|=(128|a&63)<<Bs[s++&3]):a<55296||a>=57344?(o[s>>2]|=(224|a>>12)<<Bs[s++&3],o[s>>2]|=(128|a>>6&63)<<Bs[s++&3],o[s>>2]|=(128|a&63)<<Bs[s++&3]):(a=65536+((a&1023)<<10|n.charCodeAt(++r)&1023),o[s>>2]|=(240|a>>18)<<Bs[s++&3],o[s>>2]|=(128|a>>12&63)<<Bs[s++&3],o[s>>2]|=(128|a>>6&63)<<Bs[s++&3],o[s>>2]|=(128|a&63)<<Bs[s++&3])}On(this,uv,s),On(this,Zs,Lt(this,Zs)+(s-Lt(this,ru))),s>=64?(On(this,tu,o[16]),On(this,ru,s-64),this.hash(),On(this,vc,!0)):On(this,ru,s)}return Lt(this,Zs)>4294967295&&(On(this,qf,Lt(this,qf)+(Lt(this,Zs)/4294967296<<0)),On(this,Zs,Lt(this,Zs)%4294967296)),this}finalize(){if(Lt(this,Ff))return;On(this,Ff,!0);const e=Lt(this,yc),n=Lt(this,uv);e[16]=Lt(this,tu),e[n>>2]|=xce[n&3],On(this,tu,e[16]),n>=56&&(Lt(this,vc)||this.hash(),e[0]=Lt(this,tu),e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=Lt(this,qf)<<3|Lt(this,Zs)>>>29,e[15]=Lt(this,Zs)<<3,this.hash()}hash(){let e=Lt(this,va),n=Lt(this,Oa),r=Lt(this,ba),i=Lt(this,Sa),o=Lt(this,wa),s=Lt(this,ka),a=Lt(this,xa),l=Lt(this,Pa);const u=Lt(this,yc);let c,f,d,p,m,y,v,O,S,w;for(let k=16;k<64;++k)p=u[k-15],c=(p>>>7|p<<25)^(p>>>18|p<<14)^p>>>3,p=u[k-2],f=(p>>>17|p<<15)^(p>>>19|p<<13)^p>>>10,u[k]=u[k-16]+c+u[k-7]+f<<0;w=n&r;for(let k=0;k<64;k+=4)Lt(this,yp)?(Lt(this,nu)?(v=300032,p=u[0]-1413257819,l=p-150054599<<0,i=p+24177077<<0):(v=704751109,p=u[0]-210244248,l=p-1521486534<<0,i=p+143694565<<0),On(this,yp,!1)):(c=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),f=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),v=e&n,d=v^e&r^w,y=o&s^~o&a,p=l+f+y+d1[k]+u[k],m=c+d,l=i+p<<0,i=p+m<<0),c=(i>>>2|i<<30)^(i>>>13|i<<19)^(i>>>22|i<<10),f=(l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7),O=i&e,d=O^i&n^v,y=l&o^~l&s,p=a+f+y+d1[k+1]+u[k+1],m=c+d,a=r+p<<0,r=p+m<<0,c=(r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10),f=(a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7),S=r&i,d=S^r&e^O,y=a&l^~a&o,p=s+f+y+d1[k+2]+u[k+2],m=c+d,s=n+p<<0,n=p+m<<0,c=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),f=(s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7),w=n&r,d=w^n&i^S,y=s&a^~s&l,p=o+f+y+d1[k+3]+u[k+3],m=c+d,o=e+p<<0,e=p+m<<0;On(this,va,Lt(this,va)+e<<0),On(this,Oa,Lt(this,Oa)+n<<0),On(this,ba,Lt(this,ba)+r<<0),On(this,Sa,Lt(this,Sa)+i<<0),On(this,wa,Lt(this,wa)+o<<0),On(this,ka,Lt(this,ka)+s<<0),On(this,xa,Lt(this,xa)+a<<0),On(this,Pa,Lt(this,Pa)+l<<0)}hex(){this.finalize();const e=Lt(this,va),n=Lt(this,Oa),r=Lt(this,ba),i=Lt(this,Sa),o=Lt(this,wa),s=Lt(this,ka),a=Lt(this,xa),l=Lt(this,Pa);let u=Ft[e>>28&15]+Ft[e>>24&15]+Ft[e>>20&15]+Ft[e>>16&15]+Ft[e>>12&15]+Ft[e>>8&15]+Ft[e>>4&15]+Ft[e&15]+Ft[n>>28&15]+Ft[n>>24&15]+Ft[n>>20&15]+Ft[n>>16&15]+Ft[n>>12&15]+Ft[n>>8&15]+Ft[n>>4&15]+Ft[n&15]+Ft[r>>28&15]+Ft[r>>24&15]+Ft[r>>20&15]+Ft[r>>16&15]+Ft[r>>12&15]+Ft[r>>8&15]+Ft[r>>4&15]+Ft[r&15]+Ft[i>>28&15]+Ft[i>>24&15]+Ft[i>>20&15]+Ft[i>>16&15]+Ft[i>>12&15]+Ft[i>>8&15]+Ft[i>>4&15]+Ft[i&15]+Ft[o>>28&15]+Ft[o>>24&15]+Ft[o>>20&15]+Ft[o>>16&15]+Ft[o>>12&15]+Ft[o>>8&15]+Ft[o>>4&15]+Ft[o&15]+Ft[s>>28&15]+Ft[s>>24&15]+Ft[s>>20&15]+Ft[s>>16&15]+Ft[s>>12&15]+Ft[s>>8&15]+Ft[s>>4&15]+Ft[s&15]+Ft[a>>28&15]+Ft[a>>24&15]+Ft[a>>20&15]+Ft[a>>16&15]+Ft[a>>12&15]+Ft[a>>8&15]+Ft[a>>4&15]+Ft[a&15];return Lt(this,nu)||(u+=Ft[l>>28&15]+Ft[l>>24&15]+Ft[l>>20&15]+Ft[l>>16&15]+Ft[l>>12&15]+Ft[l>>8&15]+Ft[l>>4&15]+Ft[l&15]),u}toString(){return this.hex()}digest(){this.finalize();const e=Lt(this,va),n=Lt(this,Oa),r=Lt(this,ba),i=Lt(this,Sa),o=Lt(this,wa),s=Lt(this,ka),a=Lt(this,xa),l=Lt(this,Pa),u=[e>>24&255,e>>16&255,e>>8&255,e&255,n>>24&255,n>>16&255,n>>8&255,n&255,r>>24&255,r>>16&255,r>>8&255,r&255,i>>24&255,i>>16&255,i>>8&255,i&255,o>>24&255,o>>16&255,o>>8&255,o&255,s>>24&255,s>>16&255,s>>8&255,s&255,a>>24&255,a>>16&255,a>>8&255,a&255];return Lt(this,nu)||u.push(l>>24&255,l>>16&255,l>>8&255,l&255),u}array(){return this.digest()}arrayBuffer(){this.finalize();const e=new ArrayBuffer(Lt(this,nu)?28:32),n=new DataView(e);return n.setUint32(0,Lt(this,va)),n.setUint32(4,Lt(this,Oa)),n.setUint32(8,Lt(this,ba)),n.setUint32(12,Lt(this,Sa)),n.setUint32(16,Lt(this,wa)),n.setUint32(20,Lt(this,ka)),n.setUint32(24,Lt(this,xa)),Lt(this,nu)||n.setUint32(28,Lt(this,Pa)),e}}tu=new WeakMap,yc=new WeakMap,Zs=new WeakMap,Ff=new WeakMap,yp=new WeakMap,va=new WeakMap,Oa=new WeakMap,ba=new WeakMap,Sa=new WeakMap,wa=new WeakMap,ka=new WeakMap,xa=new WeakMap,Pa=new WeakMap,vc=new WeakMap,qf=new WeakMap,nu=new WeakMap,uv=new WeakMap,ru=new WeakMap;function _ce(t){const e=new Pce;return e.update(t),parseInt(e.hex().substring(0,8),16)}const Cce=function(t){var e="#";return t.forEach(function(n){n<16&&(e+=0),e+=n.toString(16)}),e},Ece=function(t,e,n){t/=360;var r=n<.5?n*(1+e):n+e-n*e,i=2*n-r;return[t+1/3,t,t-1/3].map(function(o){return o<0&&o++,o>1&&o--,o<1/6?o=i+(r-i)*6*o:o<.5?o=r:o<2/3?o=i+(r-i)*6*(2/3-o):o=i,Math.round(o*255)})};class Tce{constructor(e={}){const[n,r]=[e.lightness,e.saturation].map(function(i){return i=i!==void 0?i:[.35,.5,.65],Array.isArray(i)?i.concat():[i]});this.L=n,this.S=r,typeof e.hue=="number"&&(e.hue={min:e.hue,max:e.hue}),typeof e.hue=="object"&&!Array.isArray(e.hue)&&(e.hue=[e.hue]),typeof e.hue>"u"&&(e.hue=[]),this.hueRanges=e.hue.map(function(i){return{min:typeof i.min>"u"?0:i.min,max:typeof i.max>"u"?360:i.max}}),this.hash=_ce,typeof e.hash=="function"&&(this.hash=e.hash),e.hash==="bkdr"&&(this.hash=kce)}hsl(e){var n,r,i,o=this.hash(e),s=727;if(this.hueRanges.length){const a=this.hueRanges[o%this.hueRanges.length];n=o/this.hueRanges.length%s*(a.max-a.min)/s+a.min}else n=o%359;return o=Math.ceil(o/360),r=this.S[o%this.S.length],o=Math.ceil(o/this.S.length),i=this.L[o%this.L.length],[n,r,i]}rgb(e){var n=this.hsl(e);return Ece.apply(this,n)}hex(e){var n=this.rgb(e);return Cce(n)}}const F6=t=>new Tce({lightness:.75}).rgb(t).join(","),Rce=({path:t,docPresence:e,enableAutoFollowRef:n})=>[lr.fromClass(class{decorations;cursorPosition={};pendingUpdate=!1;pendingScrollUpdate=!1;constructor(r){this.decorations=Zn.of([]);const i={};e.on("receive",(o,s)=>{s?Mce(t,s)?i[o]=s:(delete i[o],delete this.cursorPosition[o]):(delete i[o],delete this.cursorPosition[o]);const a=[];for(const l of Object.keys(i)){const u=i[l],{start:c,end:f}=u,d=+c[c.length-1],p=+f[f.length-1],m=F6(u.username),{username:y}=u;a.push({from:d,to:d,value:Dt.widget({side:-1,block:!1,widget:new Dce(""+Math.random(),m,y)})}),d!==p&&a.push({from:d,to:p,value:Dt.mark({class:"cm-json1-presence",attributes:{style:`
153
153
  background-color: rgba(${m}, 0.75);
154
154
  mix-blend-mode: luminosity;
@@ -326,4 +326,4 @@ ${i}`;t.FORMAT_INSTRUCTIONS={whole:[`## Formatting Instructions
326
326
  `+f5.FORMAT_INSTRUCTIONS.whole;await navigator.clipboard.writeText(a),n("Copied!"),setTimeout(()=>n("Copy for AI"),2e3)}catch(s){console.error("Failed to copy files for AI:",s),n("Error"),setTimeout(()=>n("Copy for AI"),2e3)}},handlePasteForAI:async()=>{if(e)try{const a=(await navigator.clipboard.readText()).replace(/\r\n?/g,`
327
327
  `);if(!a.trim()){r("Empty clipboard"),setTimeout(()=>r("Paste for AI"),2e3);return}const l=Zke(a,"bold");if(l.files&&Object.keys(l.files).length>0){const u=f5.mergeFileChanges(t,l.files);e(f=>({...f,files:u}));const c=Object.keys(l.files).length;r("Pasted!"),setTimeout(()=>r("Paste for AI"),2e3)}else r("No files found"),setTimeout(()=>r("Paste for AI"),2e3)}catch(s){console.error("Failed to paste files from AI:",s),r("Error"),setTimeout(()=>r("Paste for AI"),2e3)}}}),oxe=({createFileTooltipText:t=W.jsxs(W.Fragment,{children:[W.jsx("strong",{children:"New file"}),W.jsx("div",{children:"(Alt + N or Ctrl + Shift + N)"})]}),createDirTooltipText:e=W.jsxs("div",{children:[W.jsx("strong",{children:"New Directory"}),W.jsx("div",{children:"(Ctrl + Shift + D)"})]}),openSettingsTooltipText:n=W.jsxs("div",{children:[W.jsx("strong",{children:"Open Settings"}),W.jsx("div",{children:"(Ctrl + Shift + S or Ctrl + ,)"})]}),openKeyboardShortcuts:r=W.jsxs("div",{children:[W.jsx("strong",{children:"Keyboard Shortcuts"}),W.jsx("div",{children:"(Ctrl + Shift + K)"})]}),reportBugTooltipText:i=W.jsx("div",{children:W.jsx("strong",{children:"Report Bug"})}),searchToolTipText:o=W.jsxs("div",{children:[W.jsx("strong",{children:"Search"}),W.jsx("div",{children:"(Ctrl + Shift + F)"})]}),filesToolTipText:s=W.jsxs("div",{children:[W.jsx("strong",{children:"Files"}),W.jsx("div",{children:"(Ctrl + Shift + E)"})]}),enableAutoFollowTooltipText:a=W.jsxs("div",{children:[W.jsx("strong",{children:"Enable Auto Follow"}),W.jsx("div",{children:"(Ctrl + Shift + A)"})]}),disableAutoFollowTooltipText:l=W.jsxs("div",{children:[W.jsx("strong",{children:"Disable Auto Follow"}),W.jsx("div",{children:"(Ctrl + Shift + A)"})]}),voiceChatToolTipText:u=W.jsx("div",{children:W.jsx("strong",{children:"Open Voice Chat Menu"})}),aiChatToolTipText:c=W.jsx("div",{children:W.jsx("strong",{children:"AI Chat (beta)"})})})=>{const{files:f,openTab:d,setIsSettingsOpen:p,setIsDocOpen:m,isSearchOpen:y,setIsSearchOpen:v,isAIChatOpen:O,setIsAIChatOpen:S,handleOpenCreateFileModal:w,handleOpenCreateDirModal:k,connected:x,pending:_,sidebarRef:$,enableAutoFollow:L,toggleAutoFollow:C,docPresence:E,updatePresenceIndicator:A,setVoiceChatModalOpen:D,submitOperation:Q}=M.useContext(ri),q=M.useMemo(()=>f?HV(Qye(f)):null,[f]),K=M.useCallback(()=>{m(!0)},[]),V=M.useCallback(()=>{p(!0)},[]),[H,Z]=M.useState("Copy for AI"),[te,F]=M.useState("Paste for AI"),{handleCopyForAI:G,handlePasteForAI:se}=M.useMemo(()=>ixe(f,Q,Z,F),[f,Q]),{sidebarWidth:j}=M.useContext(UO),oe=M.useCallback(Ot=>{d({fileId:Ot,isTransient:!0})},[d]),J=M.useCallback(Ot=>{d({fileId:Ot,isTransient:!1})},[d]),ae=q&&q.children&&q.children.length>0,{isDragOver:N,handleDragEnter:U,handleDragOver:X,handleDragLeave:le,handleDrop:ge}=Wke();M.useEffect(()=>{},[]),M.useEffect(()=>{if(E){const Ot=(tn,Qt)=>{if(!Qt)return;const nn={username:Qt.username,fileId:Qt.start[1]};A(nn)};return E.on("receive",Ot),()=>{E.off("receive",Ot)}}},[E]);const[we,Se]=M.useState(!1),[ke,We]=M.useState(!0),ct=M.useRef(_);return M.useEffect(()=>{ke&&x&&We(!1)},[x,ke]),M.useEffect(()=>{if(ct.current&&!_&&x&&!ke){Se(!0);const Ot=setTimeout(()=>{Se(!1)},1500);return()=>clearTimeout(Ot)}ct.current=_},[_,x,ke]),W.jsxs("div",{className:"vz-sidebar",style:{width:j+"px"},children:[W.jsxs("div",{className:"full-box",ref:$,tabIndex:-1,children:[W.jsxs("div",{className:"sidebar-section-buttons",children:[W.jsx(Go,{placement:"right",overlay:W.jsx(Ko,{id:"files-tooltip",children:s}),children:W.jsx("i",{id:"files-icon",className:"icon-button icon-button-dark",onClick:()=>{v(!1),S(!1)},children:W.jsx(Zye,{})})}),W.jsx(Go,{placement:"right",overlay:W.jsx(Ko,{id:"search-tooltip",children:o}),children:W.jsx("i",{id:"search-icon",className:"icon-button icon-button-dark",onClick:()=>{v(!0),S(!1)},children:W.jsx(zye,{})})}),W.jsx(Go,{placement:"right",overlay:W.jsx(Ko,{id:"ai-chat-tooltip",children:c}),children:W.jsx("i",{id:"ai-chat-icon",className:"icon-button icon-button-dark",onClick:()=>{S(!0),v(!1)},children:W.jsx(ZV,{})})}),W.jsx(Go,{placement:"right",overlay:W.jsx(Ko,{id:"open-keyboard-shortcuts",children:r}),children:W.jsx("i",{id:"shortcut-icon",className:"icon-button icon-button-dark",onClick:K,children:W.jsx(Vye,{})})}),W.jsx(Go,{placement:"right",overlay:W.jsx(Ko,{id:"report-bug-tooltip",children:i}),children:W.jsx("a",{href:"https://github.com/vizhub-core/vzcode/issues/new",target:"_blank",rel:"noopener noreferrer",children:W.jsx("i",{id:"bug-icon",className:"icon-button icon-button-dark",children:W.jsx(Bye,{})})})}),W.jsx(Go,{placement:"right",overlay:W.jsx(Ko,{id:"open-settings-tooltip",children:n}),children:W.jsx("i",{id:"settings-icon",className:"icon-button icon-button-dark",onClick:V,children:W.jsx(Fye,{})})}),W.jsx(Go,{placement:"right",overlay:W.jsx(Ko,{id:"create-file-tooltip",children:t}),children:W.jsx("i",{id:"new-file-icon",className:"icon-button icon-button-dark",onClick:w,children:W.jsx(Nye,{})})}),W.jsx(Go,{placement:"right",overlay:W.jsx(Ko,{id:"create-dir-tooltip",children:e}),children:W.jsx("i",{id:"new-directory-icon",className:"icon-button icon-button-dark",onClick:k,children:W.jsx(zV,{})})}),W.jsx(Go,{placement:"right",overlay:W.jsx(Ko,{id:"toggle-auto-follow",children:L?l:a}),children:W.jsxs("i",{id:"auto-focus-icon",className:`icon-button icon-button-dark${L?" vh-color-success-01":""}`,onClick:C,children:[W.jsx("i",{}),W.jsx(Wye,{})]})}),vV]}),W.jsx("div",{className:"files",id:"sidebar-view-container",onDragEnter:U,onDragOver:X,onDragLeave:le,onDrop:ge,children:O?W.jsx("div",{className:"sidebar-ai-chat",children:W.jsx(Qke,{})}):y?W.jsx("div",{className:"sidebar-search",children:W.jsx(Vke,{})}):W.jsx("div",{className:"sidebar-files",children:N?W.jsxs("div",{className:"empty drag-over",children:[W.jsx("div",{className:"empty-text",children:`It looks like you don't have any files yet! Click the "Create file" button above to create your first file.`}),W.jsx("div",{className:"empty-text",children:"Drop files here!"})]}):ae?q.children.map(Ot=>{const{fileId:tn}=Ot,{path:Qt}=Ot,nn=tn||Qt;return W.jsx(nW,{entity:Ot,handleFileClick:oe,handleFileDoubleClick:J},nn)}):W.jsxs("div",{className:"empty",children:[W.jsx("div",{className:"empty-text",children:`It looks like you don't have any files yet! Click the "Create file" button above to create your first file.`}),W.jsx("div",{className:"empty-text",children:"Drop files here!"})]})})})]}),!O&&!y&&W.jsxs("div",{className:"ai-buttons",children:[ae&&W.jsx("button",{className:"ai-button copy-button",onClick:G,title:"Copy files formatted for AI",children:H}),W.jsx("button",{className:"ai-button paste-button",onClick:se,title:"Paste files from AI",children:te})]}),W.jsxs("div",{className:"connection-status",children:[ke?"Connecting...":x?_?"Saving...":we?"Saved.":"Connected":"Connection Lost",W.jsx("div",{className:"connection",children:W.jsx("div",{className:`connection-status-indicator ${ke?"pending":x?_?"pending":"connected":"disconnected"}`})})]})]})},sxe=({initialFileName:t=""})=>{const[e,n]=M.useState(t),r=M.useRef(null),{files:i,isCreateDirModalOpen:o,handleCloseCreateDirModal:s,handleCreateDirClick:a}=M.useContext(ri);M.useEffect(()=>{o&&r.current&&r.current.focus()},[o]);const l=M.useCallback(d=>{n(d.target.value)},[]),u=M.useCallback(()=>{a(e),n("")},[e,a]),c=M.useCallback(d=>{let p;p=/^[a-zA-Z0-9](?:[a-zA-Z0-9 ./+=_-]*[a-zA-Z0-9])?$/.test(d);for(const y in i)d+"/"===i[y].name&&(p=!1);return p},[i]),f=M.useCallback(d=>{d.key==="Enter"&&c(e)&&(d.ctrlKey||d.shiftKey||!d.altKey&&!d.metaKey)&&u()},[u,c,e]);return o?W.jsxs(Dr,{show:o,onHide:s,animation:!1,onKeyDown:f,children:[W.jsx(Dr.Header,{closeButton:!0,children:W.jsx(Dr.Title,{children:"Create Directory"})}),W.jsx(Dr.Body,{children:W.jsxs(Mr.Group,{className:"mb-3",controlId:"fileName",children:[W.jsx(Mr.Label,{children:"Directory Name"}),W.jsx(Mr.Control,{type:"text",value:e,onChange:l,ref:r,spellCheck:"false"}),W.jsx(Mr.Text,{className:"text-muted",children:"Enter the name for your file"})]})}),W.jsx(Dr.Footer,{children:W.jsx($u,{variant:"primary",onClick:u,disabled:!c(e),children:"Create Directory"})})]}):null},axe=({initialFileName:t=""})=>{const[e,n]=M.useState(t),r=M.useRef(null),{files:i,isCreateFileModalOpen:o,handleCloseCreateFileModal:s,handleCreateFileClick:a}=M.useContext(ri);M.useEffect(()=>{o&&r.current&&r.current.focus()},[o]);const l=M.useCallback(d=>{n(d.target.value)},[]),u=M.useCallback(()=>{a(e),n("")},[e,a]),c=M.useCallback(d=>{let p;p=/^[a-zA-Z0-9](?:[a-zA-Z0-9 ./+=_-]*[a-zA-Z0-9])?$/.test(d);for(const y in i)d===i[y].name&&(p=!1);return p},[i]),f=M.useCallback(d=>{d.key==="Enter"&&c(e)&&(d.ctrlKey||d.shiftKey||!d.altKey&&!d.metaKey)&&u()},[u,c,e]);return o?W.jsxs(Dr,{show:o,onHide:s,animation:!1,onKeyDown:f,children:[W.jsx(Dr.Header,{closeButton:!0,children:W.jsx(Dr.Title,{children:"Create File"})}),W.jsx(Dr.Body,{children:W.jsxs(Mr.Group,{className:"mb-3",controlId:"fileName",children:[W.jsx(Mr.Label,{children:"File Name"}),W.jsx(Mr.Control,{type:"text",value:e,onChange:l,ref:r,spellCheck:"false"}),W.jsx(Mr.Text,{className:"text-muted",children:"Enter the name for your file"})]})}),W.jsx(Dr.Footer,{children:W.jsx($u,{variant:"primary",onClick:u,disabled:!c(e),children:"Create File"})})]}):null},lxe=({enableUsernameField:t=!0})=>W.jsxs("div",{className:"left",children:[W.jsx(oxe,{}),W.jsx(Lye,{enableUsernameField:t}),W.jsx(Mye,{enableUsernameField:t}),W.jsx(axe,{}),W.jsx(sxe,{}),vV]}),uxe=t=>{const e=t.split("/");return e.length===1?e[e.length-1]:e[e.length-2]+"/"+e[e.length-1]},cxe=({fileId:t,isTransient:e,isActive:n,setActiveFileId:r,openTab:i,closeTabs:o,fileName:s})=>{const a=M.useCallback(f=>{f.stopPropagation(),o([t])},[o,t]),l=M.useMemo(()=>uxe(s),[s]),u=M.useCallback(()=>{r(t)},[t,r]),c=M.useCallback(()=>{i({fileId:t})},[t,i]);return W.jsxs("div",{className:`tab user-select-none ${n?"active":""} ${e?"transient":""}`,onClick:u,onDoubleClick:c,children:[l,W.jsx("i",{className:"icon-button icon-button-dark",onClick:a,children:W.jsx(PO,{})})]})},fxe=({activeFileId:t,tabList:e})=>{const{files:n,setActiveFileId:r,openTab:i,closeTabs:o}=M.useContext(ri);return W.jsx("div",{className:"vz-tab-list",children:n&&e.filter(s=>s.fileId in n).map(s=>W.jsx(cxe,{fileId:s.fileId,isTransient:s.isTransient,isActive:s.fileId===t,setActiveFileId:r,openTab:i,closeTabs:o,fileName:n[s.fileId].name},s.fileId))})},d5=["files"],dxe=({customInteractRules:t,aiCopilotEndpoint:e,esLintSource:n})=>{const{activePane:r,shareDBDoc:i,content:o,submitOperation:s,localPresence:a,docPresence:l,username:u,editorCache:c,editorWantsFocus:f,editorNoLongerWantsFocus:d,theme:p,codeEditorRef:m,enableAutoFollow:y,openTab:v}=M.useContext(ri),O=M.useRef(null),S=M.useCallback(()=>{O.current?clearTimeout(O.current):s($=>({...$,isInteracting:!0})),O.current=setTimeout(()=>{O.current=null,s(({isInteracting:$,...L})=>L)},800)},[s]),w=M.useRef(u);w.current=u;const k=M.useRef(y);M.useEffect(()=>{k.current=y},[y]);const[x,_]=M.useState(null);return M.useEffect(()=>{if(!i)return;let $=!0;return(async()=>{const C=await Ffe({fileId:r.activeFileId,shareDBDoc:i,filesPath:d5,localPresence:a,docPresence:l,theme:p,onInteract:S,editorCache:c,usernameRef:w,customInteractRules:t,enableAutoFollowRef:k,aiCopilotEndpoint:e,esLintSource:n});$&&_(C)})(),()=>{$=!1}},[r,i,d5,a,l,p,S,c,w,e,n]),M.useLayoutEffect(()=>{if(m.current&&o&&x)return m.current.appendChild(x.editor.dom),x.editor.scrollDOM.scrollTo({top:x.scrollPosition??0}),()=>{x&&m.current?.contains(x.editor.dom)&&(x.scrollPosition=x.editor.scrollDOM.scrollTop,m.current.removeChild(x.editor.dom))}},[i,x]),M.useEffect(()=>{f&&x&&(x.editor.focus(),d())},[f,x,d]),W.jsx("div",{className:"vz-code-editor",ref:m,tabIndex:-1})},hxe=({errorMessage:t,content:e})=>{const[n,r]=M.useState(!0);M.useEffect(()=>{t!==null&&r(!0)},[t]);const i=M.useCallback(()=>{r(!1)},[]);return M.useEffect(()=>{const o=s=>{s.key==="Escape"&&i()};return document.addEventListener("keydown",o,!0),()=>{document.removeEventListener("keydown",o,!0)}},[i]),n&&t!==null?W.jsxs("div",{className:"vz-code-error-overlay",children:[W.jsx("pre",{children:t}),W.jsx("i",{className:"icon-button icon-button-dark error-dismiss-button",onClick:i,children:W.jsx(PO,{})})]}):null},h5=t=>{const[e]=t.split("-");return parseInt(e,36)},pxe=(t,e)=>{const n=h5(t),r=h5(e);return n>r},mxe=(t,e,n,r)=>{n.current.has(t)?n.current.set(t,e):(n.current.set(t,e),r(i=>[...i,{user:e,join:!0,presenceId:t}]))},gxe=(t,e,n)=>{const r=e.current.get(t);r&&(e.current.delete(t),n(i=>[...i,{user:r,join:!1,presenceId:t}]))},yxe=({docPresence:t,localPresence:e})=>{const[n,r]=M.useState([]),i=M.useRef(new Map);return M.useEffect(()=>{if(t){const o=(s,a)=>{const l=a!==null;if(pxe(s,e.presenceId)){if(l){const c=t.remotePresences[s]?.username;mxe(s,c,i,r)}else gxe(s,i,r);const u=setTimeout(()=>{r(c=>c.slice(1))},5e3);return()=>{clearTimeout(u)}}};return t.on("receive",o),()=>{t.off("receive",o)}}},[t,e]),n.length>0?W.jsx("div",{className:"vz-notification",children:n.map(({user:o,join:s,presenceId:a})=>W.jsx("div",{className:"vz-notification-item",children:s?`${o} has joined the session.`:`${o} has left the session.`},a))}):null},vxe=()=>(Math.random()+"").slice(2),Oxe=100,bxe=2e3,Sxe=(t,e=!0)=>{const n=t.name?.substring(0,Oxe).trim(),r=(e?t.text?.substring(0,bxe):t.text).trim();return["`"+n+"`:","```",r,"```"].join(`
328
328
  `)},wxe="/ai-assist",kxe=async({view:t,shareDBDoc:e,fileId:n,tabList:r,aiAssistEndpoint:i=wxe,aiAssistOptions:o={},aiStreamId:s})=>{const a=e.data.files[n].name,l=t.state.sliceDoc(0,t.state.selection.main.from),u=t.state.sliceDoc(t.state.selection.main.to),c=l+"<FILL_ME>"+u,f={name:a,text:c},d=t.state.selection.main.to;let p=Sxe(f,!1);const y=await(await fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...o,inputText:p,fileId:n,insertionCursor:d,aiStreamId:s})})).json();y.error&&console.error("[startAIAssist] error from server:",y.error)},xxe=[{x:40,y:0,r:4},{x:28.28,y:28.28,r:4.85},{x:0,y:40,r:5.71},{x:-28.29,y:28.28,r:6.57},{x:-40,y:0,r:7.42},{x:-28.29,y:-28.29,r:8.28},{x:-.01,y:-40,r:9.14},{x:28.28,y:-28.29,r:10}],Pxe=({height:t=40,fill:e="currentcolor",fadeIn:n=!0})=>{const[r,i]=M.useState(!1);return M.useEffect(()=>{i(!0)},[]),r&&W.jsx("div",{className:`vh-spinner${n?" fade-in":""}`,children:W.jsx("svg",{height:t,viewBox:"0 0 100 100",style:{opacity:1},children:W.jsx("g",{transform:"translate(50, 50)",fill:e,children:W.jsx("g",{className:"vh-spinner-dots",children:xxe.map(({x:o,y:s,r:a},l)=>W.jsx("circle",{cx:o,cy:s,r:a},l))})})})})},_xe=({aiAssistEndpoint:t,aiAssistOptions:e,aiAssistTooltipText:n="Start AI Assist",aiAssistClickOverride:r,activeFileId:i,tabList:o,paneId:s})=>{const{shareDBDoc:a,editorCache:l,runPrettierRef:u,runCodeRef:c}=M.useContext(ri),[f,d]=M.useState(null),p=M.useCallback(async()=>{if(!(f!==null)){const v=vxe();d(v),await kxe({view:l.get(tm(i,s)).editor,shareDBDoc:a,fileId:i,tabList:o,aiStreamId:v,aiAssistEndpoint:t,aiAssistOptions:e}),await new Promise(w=>setTimeout(w,1e3));const O=u.current;O!==null&&O();const S=c.current;S!==null&&S(),d(w=>w===v?null:w)}},[i,s,f]),m=f===null;return W.jsx("div",{className:"vz-code-ai-assist-widget",children:f?W.jsx(Pxe,{}):m&&W.jsx(Go,{placement:"left",overlay:W.jsx(Ko,{id:"ai-assist-widget-tooltip",children:n}),children:W.jsx("i",{className:"icon-button icon-button-dark",onClick:r||p,children:W.jsx(ZV,{})})})})},Cxe=!1,Exe=({runCodeWidgetTooltipText:t=W.jsxs(W.Fragment,{children:[W.jsx("strong",{children:"Run Code"}),W.jsx("div",{children:"(Shift + Enter or Ctrl + s)"})]})})=>{const{runCodeRef:e,runPrettierRef:n,splitCurrentPane:r}=M.useContext(ri),[i,o]=M.useState(!1),s=M.useCallback(()=>{o(!0);const a=n.current;a!==null&&a();const l=e.current;l!==null&&l(),setTimeout(()=>o(!1),1e3)},[e,n]);return M.useCallback(()=>{r()},[r]),M.useEffect(()=>{const a=l=>{(l.ctrlKey&&l.key==="s"||l.shiftKey&&l.key==="Enter")&&(l.preventDefault(),s())};return window.addEventListener("keydown",a),()=>{window.removeEventListener("keydown",a)}},[s]),W.jsxs("div",{children:[W.jsx("div",{className:"vz-code-split-view-widget",children:Cxe}),W.jsx("div",{className:"vz-code-run-code-widget",children:W.jsx(Go,{placement:"bottom",overlay:W.jsx(Ko,{id:"run-code-widget-tooltip",children:t}),children:W.jsx("i",{className:`icon-button icon-button-dark ${i?"rotate-icon":""}`,onClick:s,children:W.jsx(Uye,{})})})})]})},Txe=({pane:t,content:e,customInteractRules:n,enableAIAssist:r,aiAssistEndpoint:i,aiAssistOptions:o,aiAssistTooltipText:s,aiAssistClickOverride:a,aiCopilotEndpoint:l,esLintSource:u})=>{const[c,f]=M.useState(!1);return M.useEffect(()=>{f(!0)},[]),W.jsxs(W.Fragment,{children:[W.jsx(fxe,{activeFileId:t.activeFileId,tabList:t.tabList}),c&&e&&t.activeFileId&&W.jsx(dxe,{customInteractRules:n,aiCopilotEndpoint:l,esLintSource:u}),c&&r&&e&&t.activeFileId?W.jsx(_xe,{aiAssistEndpoint:i,aiAssistOptions:o,aiAssistTooltipText:s,aiAssistClickOverride:a,paneId:t.id,activeFileId:t.activeFileId,tabList:t.tabList}):null,W.jsx(Exe,{})]})},Rxe=({enableAIAssist:t=!1,aiAssistEndpoint:e,aiAssistOptions:n,aiAssistTooltipText:r,aiAssistClickOverride:i,aiCopilotEndpoint:o,aiChatEndpoint:s,aiChatOptions:a,customInteractRules:l,esLintSource:u})=>{const{codeEditorWidth:c}=M.useContext(UO),{content:f,localPresence:d,docPresence:p,pane:m,activePane:y,errorMessage:v}=M.useContext(ri);if(y.type!=="leafPane")throw new Error("Expected leafPane");return y.activeFileId!==null?W.jsxs("div",{className:"middle",style:{width:c+"px"},children:[W.jsx(Txe,{pane:m,content:f,customInteractRules:l,enableAIAssist:t,aiAssistEndpoint:e,aiAssistOptions:n,aiAssistTooltipText:r,aiAssistClickOverride:i,aiCopilotEndpoint:o,esLintSource:u}),W.jsx(hxe,{errorMessage:v,content:f}),W.jsx(yxe,{docPresence:p,localPresence:d})]}):null},Axe=20,Mxe=200,p5=4,m5=({side:t,isSidebarVisible:e=!0})=>{const{sidebarWidth:n,codeEditorWidth:r,moveSplitPane:i,isDraggingRight:o,isDraggingLeft:s,setIsDragging:a}=M.useContext(UO),{activePane:l}=M.useContext(ri),u=t==="left"||l.activeFileId,c=M.useRef(0),f=M.useCallback(O=>{O.preventDefault(),c.current=O.clientX,a(!0,t),document.body.style.cursor="col-resize"},[a,t]),d=M.useCallback(O=>{O.preventDefault();const S=O.clientX-c.current;c.current=O.clientX,i(S,t)},[i,t]),p=M.useCallback(()=>{a(!1,t),document.body.style.cursor="default"},[a,t]),m=t==="left"&&s||t==="right"&&o;M.useEffect(()=>{if(m)return document.addEventListener("mousemove",d),document.addEventListener("mouseup",p),()=>{document.removeEventListener("mousemove",d),document.removeEventListener("mouseup",p)}},[m,d,p]);const y=m?Mxe:Axe,v=(t==="left"?n:e?n+r:r)-y/2;return u?W.jsx("div",{className:"vz-resizer",onMouseDown:f,style:{left:v+y/2-1.5,width:y},children:W.jsx("div",{className:"vz-resizer-thumb",style:{left:p5/2-1.5,width:p5}})}):null};var Rn;(function(t){t[t.NONE=0]="NONE";const n=1;t[t._abstract=n]="_abstract";const r=n+1;t[t._accessor=r]="_accessor";const i=r+1;t[t._as=i]="_as";const o=i+1;t[t._assert=o]="_assert";const s=o+1;t[t._asserts=s]="_asserts";const a=s+1;t[t._async=a]="_async";const l=a+1;t[t._await=l]="_await";const u=l+1;t[t._checks=u]="_checks";const c=u+1;t[t._constructor=c]="_constructor";const f=c+1;t[t._declare=f]="_declare";const d=f+1;t[t._enum=d]="_enum";const p=d+1;t[t._exports=p]="_exports";const m=p+1;t[t._from=m]="_from";const y=m+1;t[t._get=y]="_get";const v=y+1;t[t._global=v]="_global";const O=v+1;t[t._implements=O]="_implements";const S=O+1;t[t._infer=S]="_infer";const w=S+1;t[t._interface=w]="_interface";const k=w+1;t[t._is=k]="_is";const x=k+1;t[t._keyof=x]="_keyof";const _=x+1;t[t._mixins=_]="_mixins";const $=_+1;t[t._module=$]="_module";const L=$+1;t[t._namespace=L]="_namespace";const C=L+1;t[t._of=C]="_of";const E=C+1;t[t._opaque=E]="_opaque";const A=E+1;t[t._out=A]="_out";const D=A+1;t[t._override=D]="_override";const Q=D+1;t[t._private=Q]="_private";const q=Q+1;t[t._protected=q]="_protected";const K=q+1;t[t._proto=K]="_proto";const V=K+1;t[t._public=V]="_public";const H=V+1;t[t._readonly=H]="_readonly";const Z=H+1;t[t._require=Z]="_require";const te=Z+1;t[t._satisfies=te]="_satisfies";const F=te+1;t[t._set=F]="_set";const G=F+1;t[t._static=G]="_static";const se=G+1;t[t._symbol=se]="_symbol";const j=se+1;t[t._type=j]="_type";const oe=j+1;t[t._unique=oe]="_unique";const J=oe+1;t[t._using=J]="_using"})(Rn||(Rn={}));var Dn;(function(t){t[t.PRECEDENCE_MASK=15]="PRECEDENCE_MASK";const n=16;t[t.IS_KEYWORD=n]="IS_KEYWORD";const r=32;t[t.IS_ASSIGN=r]="IS_ASSIGN";const i=64;t[t.IS_RIGHT_ASSOCIATIVE=i]="IS_RIGHT_ASSOCIATIVE";const o=128;t[t.IS_PREFIX=o]="IS_PREFIX";const s=256;t[t.IS_POSTFIX=s]="IS_POSTFIX";const a=512;t[t.IS_EXPRESSION_START=a]="IS_EXPRESSION_START";const l=512;t[t.num=l]="num";const u=1536;t[t.bigint=u]="bigint";const c=2560;t[t.decimal=c]="decimal";const f=3584;t[t.regexp=f]="regexp";const d=4608;t[t.string=d]="string";const p=5632;t[t.name=p]="name";const m=6144;t[t.eof=m]="eof";const y=7680;t[t.bracketL=y]="bracketL";const v=8192;t[t.bracketR=v]="bracketR";const O=9728;t[t.braceL=O]="braceL";const S=10752;t[t.braceBarL=S]="braceBarL";const w=11264;t[t.braceR=w]="braceR";const k=12288;t[t.braceBarR=k]="braceBarR";const x=13824;t[t.parenL=x]="parenL";const _=14336;t[t.parenR=_]="parenR";const $=15360;t[t.comma=$]="comma";const L=16384;t[t.semi=L]="semi";const C=17408;t[t.colon=C]="colon";const E=18432;t[t.doubleColon=E]="doubleColon";const A=19456;t[t.dot=A]="dot";const D=20480;t[t.question=D]="question";const Q=21504;t[t.questionDot=Q]="questionDot";const q=22528;t[t.arrow=q]="arrow";const K=23552;t[t.template=K]="template";const V=24576;t[t.ellipsis=V]="ellipsis";const H=25600;t[t.backQuote=H]="backQuote";const Z=27136;t[t.dollarBraceL=Z]="dollarBraceL";const te=27648;t[t.at=te]="at";const F=29184;t[t.hash=F]="hash";const G=29728;t[t.eq=G]="eq";const se=30752;t[t.assign=se]="assign";const j=32640;t[t.preIncDec=j]="preIncDec";const oe=33664;t[t.postIncDec=oe]="postIncDec";const J=34432;t[t.bang=J]="bang";const ae=35456;t[t.tilde=ae]="tilde";const N=35841;t[t.pipeline=N]="pipeline";const U=36866;t[t.nullishCoalescing=U]="nullishCoalescing";const X=37890;t[t.logicalOR=X]="logicalOR";const le=38915;t[t.logicalAND=le]="logicalAND";const ge=39940;t[t.bitwiseOR=ge]="bitwiseOR";const we=40965;t[t.bitwiseXOR=we]="bitwiseXOR";const Se=41990;t[t.bitwiseAND=Se]="bitwiseAND";const ke=43015;t[t.equality=ke]="equality";const We=44040;t[t.lessThan=We]="lessThan";const ct=45064;t[t.greaterThan=ct]="greaterThan";const Ot=46088;t[t.relationalOrEqual=Ot]="relationalOrEqual";const tn=47113;t[t.bitShiftL=tn]="bitShiftL";const Qt=48137;t[t.bitShiftR=Qt]="bitShiftR";const nn=49802;t[t.plus=nn]="plus";const _n=50826;t[t.minus=_n]="minus";const pn=51723;t[t.modulo=pn]="modulo";const B=52235;t[t.star=B]="star";const Pe=53259;t[t.slash=Pe]="slash";const He=54348;t[t.exponent=He]="exponent";const he=55296;t[t.jsxName=he]="jsxName";const ve=56320;t[t.jsxText=ve]="jsxText";const $e=57344;t[t.jsxEmptyText=$e]="jsxEmptyText";const nt=58880;t[t.jsxTagStart=nt]="jsxTagStart";const ut=59392;t[t.jsxTagEnd=ut]="jsxTagEnd";const Me=60928;t[t.typeParameterStart=Me]="typeParameterStart";const it=61440;t[t.nonNullAssertion=it]="nonNullAssertion";const Ke=62480;t[t._break=Ke]="_break";const at=63504;t[t._case=at]="_case";const gt=64528;t[t._catch=gt]="_catch";const ht=65552;t[t._continue=ht]="_continue";const At=66576;t[t._debugger=At]="_debugger";const ze=67600;t[t._default=ze]="_default";const kt=68624;t[t._do=kt]="_do";const rn=69648;t[t._else=rn]="_else";const _t=70672;t[t._finally=_t]="_finally";const qt=71696;t[t._for=qt]="_for";const yn=73232;t[t._function=yn]="_function";const vn=73744;t[t._if=vn]="_if";const bn=74768;t[t._return=bn]="_return";const An=75792;t[t._switch=An]="_switch";const nr=77456;t[t._throw=nr]="_throw";const ce=77840;t[t._try=ce]="_try";const Oe=78864;t[t._var=Oe]="_var";const xe=79888;t[t._let=xe]="_let";const Ze=80912;t[t._const=Ze]="_const";const Je=81936;t[t._while=Je]="_while";const rt=82960;t[t._with=rt]="_with";const Ie=84496;t[t._new=Ie]="_new";const Ne=85520;t[t._this=Ne]="_this";const Ue=86544;t[t._super=Ue]="_super";const Qe=87568;t[t._class=Qe]="_class";const Ce=88080;t[t._extends=Ce]="_extends";const et=89104;t[t._export=et]="_export";const wt=90640;t[t._import=wt]="_import";const Mt=91664;t[t._yield=Mt]="_yield";const sn=92688;t[t._null=sn]="_null";const hn=93712;t[t._true=hn]="_true";const Yt=94736;t[t._false=Yt]="_false";const en=95256;t[t._in=en]="_in";const Jt=96280;t[t._instanceof=Jt]="_instanceof";const Zt=97936;t[t._typeof=Zt]="_typeof";const xt=98960;t[t._void=xt]="_void";const un=99984;t[t._delete=un]="_delete";const sr=100880;t[t._async=sr]="_async";const kn=101904;t[t._get=kn]="_get";const dr=102928;t[t._set=dr]="_set";const br=103952;t[t._declare=br]="_declare";const ie=104976;t[t._readonly=ie]="_readonly";const re=106e3;t[t._abstract=re]="_abstract";const de=107024;t[t._static=de]="_static";const Be=107536;t[t._public=Be]="_public";const be=108560;t[t._private=be]="_private";const je=109584;t[t._protected=je]="_protected";const bt=110608;t[t._override=bt]="_override";const Ye=112144;t[t._as=Ye]="_as";const dt=113168;t[t._enum=dt]="_enum";const zt=114192;t[t._type=zt]="_type";const Ct=115216;t[t._implements=Ct]="_implements"})(Dn||(Dn={}));var Ac;(function(t){t[t.backSpace=8]="backSpace";const n=10;t[t.lineFeed=n]="lineFeed";const r=9;t[t.tab=r]="tab";const i=13;t[t.carriageReturn=i]="carriageReturn";const o=14;t[t.shiftOut=o]="shiftOut";const s=32;t[t.space=s]="space";const a=33;t[t.exclamationMark=a]="exclamationMark";const l=34;t[t.quotationMark=l]="quotationMark";const u=35;t[t.numberSign=u]="numberSign";const c=36;t[t.dollarSign=c]="dollarSign";const f=37;t[t.percentSign=f]="percentSign";const d=38;t[t.ampersand=d]="ampersand";const p=39;t[t.apostrophe=p]="apostrophe";const m=40;t[t.leftParenthesis=m]="leftParenthesis";const y=41;t[t.rightParenthesis=y]="rightParenthesis";const v=42;t[t.asterisk=v]="asterisk";const O=43;t[t.plusSign=O]="plusSign";const S=44;t[t.comma=S]="comma";const w=45;t[t.dash=w]="dash";const k=46;t[t.dot=k]="dot";const x=47;t[t.slash=x]="slash";const _=48;t[t.digit0=_]="digit0";const $=49;t[t.digit1=$]="digit1";const L=50;t[t.digit2=L]="digit2";const C=51;t[t.digit3=C]="digit3";const E=52;t[t.digit4=E]="digit4";const A=53;t[t.digit5=A]="digit5";const D=54;t[t.digit6=D]="digit6";const Q=55;t[t.digit7=Q]="digit7";const q=56;t[t.digit8=q]="digit8";const K=57;t[t.digit9=K]="digit9";const V=58;t[t.colon=V]="colon";const H=59;t[t.semicolon=H]="semicolon";const Z=60;t[t.lessThan=Z]="lessThan";const te=61;t[t.equalsTo=te]="equalsTo";const F=62;t[t.greaterThan=F]="greaterThan";const G=63;t[t.questionMark=G]="questionMark";const se=64;t[t.atSign=se]="atSign";const j=65;t[t.uppercaseA=j]="uppercaseA";const oe=66;t[t.uppercaseB=oe]="uppercaseB";const J=67;t[t.uppercaseC=J]="uppercaseC";const ae=68;t[t.uppercaseD=ae]="uppercaseD";const N=69;t[t.uppercaseE=N]="uppercaseE";const U=70;t[t.uppercaseF=U]="uppercaseF";const X=71;t[t.uppercaseG=X]="uppercaseG";const le=72;t[t.uppercaseH=le]="uppercaseH";const ge=73;t[t.uppercaseI=ge]="uppercaseI";const we=74;t[t.uppercaseJ=we]="uppercaseJ";const Se=75;t[t.uppercaseK=Se]="uppercaseK";const ke=76;t[t.uppercaseL=ke]="uppercaseL";const We=77;t[t.uppercaseM=We]="uppercaseM";const ct=78;t[t.uppercaseN=ct]="uppercaseN";const Ot=79;t[t.uppercaseO=Ot]="uppercaseO";const tn=80;t[t.uppercaseP=tn]="uppercaseP";const Qt=81;t[t.uppercaseQ=Qt]="uppercaseQ";const nn=82;t[t.uppercaseR=nn]="uppercaseR";const _n=83;t[t.uppercaseS=_n]="uppercaseS";const pn=84;t[t.uppercaseT=pn]="uppercaseT";const B=85;t[t.uppercaseU=B]="uppercaseU";const Pe=86;t[t.uppercaseV=Pe]="uppercaseV";const He=87;t[t.uppercaseW=He]="uppercaseW";const he=88;t[t.uppercaseX=he]="uppercaseX";const ve=89;t[t.uppercaseY=ve]="uppercaseY";const $e=90;t[t.uppercaseZ=$e]="uppercaseZ";const nt=91;t[t.leftSquareBracket=nt]="leftSquareBracket";const ut=92;t[t.backslash=ut]="backslash";const Me=93;t[t.rightSquareBracket=Me]="rightSquareBracket";const it=94;t[t.caret=it]="caret";const Ke=95;t[t.underscore=Ke]="underscore";const at=96;t[t.graveAccent=at]="graveAccent";const gt=97;t[t.lowercaseA=gt]="lowercaseA";const ht=98;t[t.lowercaseB=ht]="lowercaseB";const At=99;t[t.lowercaseC=At]="lowercaseC";const ze=100;t[t.lowercaseD=ze]="lowercaseD";const kt=101;t[t.lowercaseE=kt]="lowercaseE";const rn=102;t[t.lowercaseF=rn]="lowercaseF";const _t=103;t[t.lowercaseG=_t]="lowercaseG";const qt=104;t[t.lowercaseH=qt]="lowercaseH";const yn=105;t[t.lowercaseI=yn]="lowercaseI";const vn=106;t[t.lowercaseJ=vn]="lowercaseJ";const bn=107;t[t.lowercaseK=bn]="lowercaseK";const An=108;t[t.lowercaseL=An]="lowercaseL";const nr=109;t[t.lowercaseM=nr]="lowercaseM";const ce=110;t[t.lowercaseN=ce]="lowercaseN";const Oe=111;t[t.lowercaseO=Oe]="lowercaseO";const xe=112;t[t.lowercaseP=xe]="lowercaseP";const Ze=113;t[t.lowercaseQ=Ze]="lowercaseQ";const Je=114;t[t.lowercaseR=Je]="lowercaseR";const rt=115;t[t.lowercaseS=rt]="lowercaseS";const Ie=116;t[t.lowercaseT=Ie]="lowercaseT";const Ne=117;t[t.lowercaseU=Ne]="lowercaseU";const Ue=118;t[t.lowercaseV=Ue]="lowercaseV";const Qe=119;t[t.lowercaseW=Qe]="lowercaseW";const Ce=120;t[t.lowercaseX=Ce]="lowercaseX";const et=121;t[t.lowercaseY=et]="lowercaseY";const wt=122;t[t.lowercaseZ=wt]="lowercaseZ";const Mt=123;t[t.leftCurlyBrace=Mt]="leftCurlyBrace";const sn=124;t[t.verticalBar=sn]="verticalBar";const hn=125;t[t.rightCurlyBrace=hn]="rightCurlyBrace";const Yt=126;t[t.tilde=Yt]="tilde";const en=160;t[t.nonBreakingSpace=en]="nonBreakingSpace";const Jt=5760;t[t.oghamSpaceMark=Jt]="oghamSpaceMark";const Zt=8232;t[t.lineSeparator=Zt]="lineSeparator";const xt=8233;t[t.paragraphSeparator=xt]="paragraphSeparator"})(Ac||(Ac={}));const rW=[9,11,12,Ac.space,Ac.nonBreakingSpace,Ac.oghamSpaceMark,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],Dxe=new Uint8Array(65536);for(const t of rW)Dxe[t]=1;function $xe(t){if(t<48)return t===36;if(t<58)return!0;if(t<65)return!1;if(t<91)return!0;if(t<97)return t===95;if(t<123)return!0;if(t<128)return!1;throw new Error("Should not be called with non-ASCII char code.")}const Yd=new Uint8Array(65536);for(let t=0;t<128;t++)Yd[t]=$xe(t)?1:0;for(let t=128;t<65536;t++)Yd[t]=1;for(const t of rW)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";const r=n+1;t[t.TopLevelDeclaration=r]="TopLevelDeclaration";const i=r+1;t[t.FunctionScopedDeclaration=i]="FunctionScopedDeclaration";const o=i+1;t[t.BlockScopedDeclaration=o]="BlockScopedDeclaration";const s=o+1;t[t.ObjectShorthandTopLevelDeclaration=s]="ObjectShorthandTopLevelDeclaration";const a=s+1;t[t.ObjectShorthandFunctionScopedDeclaration=a]="ObjectShorthandFunctionScopedDeclaration";const l=a+1;t[t.ObjectShorthandBlockScopedDeclaration=l]="ObjectShorthandBlockScopedDeclaration";const u=l+1;t[t.ObjectShorthand=u]="ObjectShorthand";const c=u+1;t[t.ImportDeclaration=c]="ImportDeclaration";const f=c+1;t[t.ObjectKey=f]="ObjectKey";const d=f+1;t[t.ImportAccess=d]="ImportAccess"})(g5||(g5={}));var y5;(function(t){t[t.NoChildren=0]="NoChildren";const n=1;t[t.OneChild=n]="OneChild";const r=n+1;t[t.StaticChildren=r]="StaticChildren";const i=r+1;t[t.KeyAfterPropSpread=i]="KeyAfterPropSpread"})(y5||(y5={}));var Op={exports:{}},Lxe=Op.exports,v5;function Qxe(){return v5||(v5=1,function(t,e){(function(n,r){r(e)})(Lxe,function(n){const o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=new Uint8Array(64),a=new Uint8Array(128);for(let A=0;A<o.length;A++){const D=o.charCodeAt(A);s[A]=D,a[D]=A}function l(A,D){let Q=0,q=0,K=0;do{const H=A.next();K=a[H],Q|=(K&31)<<q,q+=5}while(K&32);const V=Q&1;return Q>>>=1,V&&(Q=-2147483648|-Q),D+Q}function u(A,D,Q){let q=D-Q;q=q<0?-q<<1|1:q<<1;do{let K=q&31;q>>>=5,q>0&&(K|=32),A.write(s[K])}while(q>0);return D}function c(A,D){return A.pos>=D?!1:A.peek()!==44}const f=1024*16,d=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(A){return Buffer.from(A.buffer,A.byteOffset,A.byteLength).toString()}}:{decode(A){let D="";for(let Q=0;Q<A.length;Q++)D+=String.fromCharCode(A[Q]);return D}};class p{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(f)}write(D){const{buffer:Q}=this;Q[this.pos++]=D,this.pos===f&&(this.out+=d.decode(Q),this.pos=0)}flush(){const{buffer:D,out:Q,pos:q}=this;return q>0?Q+d.decode(D.subarray(0,q)):Q}}class m{constructor(D){this.pos=0,this.buffer=D}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(D){const{buffer:Q,pos:q}=this,K=Q.indexOf(D,q);return K===-1?Q.length:K}}const y=[];function v(A){const{length:D}=A,Q=new m(A),q=[],K=[];let V=0;for(;Q.pos<D;Q.pos++){V=l(Q,V);const H=l(Q,0);if(!c(Q,D)){const j=K.pop();j[2]=V,j[3]=H;continue}const Z=l(Q,0),G=l(Q,0)&1?[V,H,0,0,Z,l(Q,0)]:[V,H,0,0,Z];let se=y;if(c(Q,D)){se=[];do{const j=l(Q,0);se.push(j)}while(c(Q,D))}G.vars=se,q.push(G),K.push(G)}return q}function O(A){const D=new p;for(let Q=0;Q<A.length;)Q=S(A,Q,D,[0]);return D.flush()}function S(A,D,Q,q){const K=A[D],{0:V,1:H,2:Z,3:te,4:F,vars:G}=K;D>0&&Q.write(44),q[0]=u(Q,V,q[0]),u(Q,H,0),u(Q,F,0);const se=K.length===6?1:0;u(Q,se,0),K.length===6&&u(Q,K[5],0);for(const j of G)u(Q,j,0);for(D++;D<A.length;){const j=A[D],{0:oe,1:J}=j;if(oe>Z||oe===Z&&J>=te)break;D=S(A,D,Q,q)}return Q.write(44),q[0]=u(Q,Z,q[0]),u(Q,te,0),D}function w(A){const{length:D}=A,Q=new m(A),q=[],K=[];let V=0,H=0,Z=0,te=0,F=0,G=0,se=0,j=0;do{const oe=Q.indexOf(";");let J=0;for(;Q.pos<oe;Q.pos++){if(J=l(Q,J),!c(Q,oe)){const Se=K.pop();Se[2]=V,Se[3]=J;continue}const ae=l(Q,0),N=ae&1,U=ae&2,X=ae&4;let le=null,ge=y,we;if(N){const Se=l(Q,H);Z=l(Q,H===Se?Z:0),H=Se,we=[V,J,0,0,Se,Z]}else we=[V,J,0,0];if(we.isScope=!!X,U){const Se=te,ke=F;te=l(Q,te);const We=Se===te;F=l(Q,We?F:0),G=l(Q,We&&ke===F?G:0),le=[te,F,G]}if(we.callsite=le,c(Q,oe)){ge=[];do{se=V,j=J;const Se=l(Q,0);let ke;if(Se<-1){ke=[[l(Q,0)]];for(let We=-1;We>Se;We--){const ct=se;se=l(Q,se),j=l(Q,se===ct?j:0);const Ot=l(Q,0);ke.push([Ot,se,j])}}else ke=[[Se]];ge.push(ke)}while(c(Q,oe))}we.bindings=ge,q.push(we),K.push(we)}V++,Q.pos=oe+1}while(Q.pos<D);return q}function k(A){if(A.length===0)return"";const D=new p;for(let Q=0;Q<A.length;)Q=x(A,Q,D,[0,0,0,0,0,0,0]);return D.flush()}function x(A,D,Q,q){const K=A[D],{0:V,1:H,2:Z,3:te,isScope:F,callsite:G,bindings:se}=K;q[0]<V?(_(Q,q[0],V),q[0]=V,q[1]=0):D>0&&Q.write(44),q[1]=u(Q,K[1],q[1]);const j=(K.length===6?1:0)|(G?2:0)|(F?4:0);if(u(Q,j,0),K.length===6){const{4:oe,5:J}=K;oe!==q[2]&&(q[3]=0),q[2]=u(Q,oe,q[2]),q[3]=u(Q,J,q[3])}if(G){const{0:oe,1:J,2:ae}=K.callsite;oe!==q[4]?(q[5]=0,q[6]=0):J!==q[5]&&(q[6]=0),q[4]=u(Q,oe,q[4]),q[5]=u(Q,J,q[5]),q[6]=u(Q,ae,q[6])}if(se)for(const oe of se){oe.length>1&&u(Q,-oe.length,0);const J=oe[0][0];u(Q,J,0);let ae=V,N=H;for(let U=1;U<oe.length;U++){const X=oe[U];ae=u(Q,X[1],ae),N=u(Q,X[2],N),u(Q,X[0],0)}}for(D++;D<A.length;){const oe=A[D],{0:J,1:ae}=oe;if(J>Z||J===Z&&ae>=te)break;D=x(A,D,Q,q)}return q[0]<Z?(_(Q,q[0],Z),q[0]=Z,q[1]=0):Q.write(44),q[1]=u(Q,te,q[1]),D}function _(A,D,Q){do A.write(59);while(++D<Q)}function $(A){const{length:D}=A,Q=new m(A),q=[];let K=0,V=0,H=0,Z=0,te=0;do{const F=Q.indexOf(";"),G=[];let se=!0,j=0;for(K=0;Q.pos<F;){let oe;K=l(Q,K),K<j&&(se=!1),j=K,c(Q,F)?(V=l(Q,V),H=l(Q,H),Z=l(Q,Z),c(Q,F)?(te=l(Q,te),oe=[K,V,H,Z,te]):oe=[K,V,H,Z]):oe=[K],G.push(oe),Q.pos++}se||L(G),q.push(G),Q.pos=F+1}while(Q.pos<=D);return q}function L(A){A.sort(C)}function C(A,D){return A[0]-D[0]}function E(A){const D=new p;let Q=0,q=0,K=0,V=0;for(let H=0;H<A.length;H++){const Z=A[H];if(H>0&&D.write(59),Z.length===0)continue;let te=0;for(let F=0;F<Z.length;F++){const G=Z[F];F>0&&D.write(44),te=u(D,G[0],te),G.length!==1&&(Q=u(D,G[1],Q),q=u(D,G[2],q),K=u(D,G[3],K),G.length!==4&&(V=u(D,G[4],V)))}}return D.flush()}n.decode=$,n.decodeGeneratedRanges=w,n.decodeOriginalScopes=v,n.encode=E,n.encodeGeneratedRanges=k,n.encodeOriginalScopes=O,Object.defineProperty(n,"__esModule",{value:!0})})}(Op,Op.exports)),Op.exports}Qxe();var bv={exports:{}},jxe=bv.exports,O5;function Nxe(){return O5||(O5=1,function(t,e){(function(n,r){t.exports=r()})(jxe,function(){const n=/^[\w+.-]+:\/\//,r=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,i=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function o(S){return n.test(S)}function s(S){return S.startsWith("//")}function a(S){return S.startsWith("/")}function l(S){return S.startsWith("file:")}function u(S){return/^[.?#]/.test(S)}function c(S){const w=r.exec(S);return d(w[1],w[2]||"",w[3],w[4]||"",w[5]||"/",w[6]||"",w[7]||"")}function f(S){const w=i.exec(S),k=w[2];return d("file:","",w[1]||"","",a(k)?k:"/"+k,w[3]||"",w[4]||"")}function d(S,w,k,x,_,$,L){return{scheme:S,user:w,host:k,port:x,path:_,query:$,hash:L,type:7}}function p(S){if(s(S)){const k=c("http:"+S);return k.scheme="",k.type=6,k}if(a(S)){const k=c("http://foo.com"+S);return k.scheme="",k.host="",k.type=5,k}if(l(S))return f(S);if(o(S))return c(S);const w=c("http://foo.com/"+S);return w.scheme="",w.host="",w.type=S?S.startsWith("?")?3:S.startsWith("#")?2:4:1,w}function m(S){if(S.endsWith("/.."))return S;const w=S.lastIndexOf("/");return S.slice(0,w+1)}function y(S,w){v(w,w.type),S.path==="/"?S.path=w.path:S.path=m(w.path)+S.path}function v(S,w){const k=w<=4,x=S.path.split("/");let _=1,$=0,L=!1;for(let E=1;E<x.length;E++){const A=x[E];if(!A){L=!0;continue}if(L=!1,A!=="."){if(A===".."){$?(L=!0,$--,_--):k&&(x[_++]=A);continue}x[_++]=A,$++}}let C="";for(let E=1;E<_;E++)C+="/"+x[E];(!C||L&&!C.endsWith("/.."))&&(C+="/"),S.path=C}function O(S,w){if(!S&&!w)return"";const k=p(S);let x=k.type;if(w&&x!==7){const $=p(w),L=$.type;switch(x){case 1:k.hash=$.hash;case 2:k.query=$.query;case 3:case 4:y(k,$);case 5:k.user=$.user,k.host=$.host,k.port=$.port;case 6:k.scheme=$.scheme}L>x&&(x=L)}v(k,x);const _=k.query+k.hash;switch(x){case 2:case 3:return _;case 4:{const $=k.path.slice(1);return $?u(w||S)&&!u($)?"./"+$+_:$+_:_||"."}case 5:return k.path+_;default:return k.scheme+"//"+k.user+k.host+k.port+k.path+_}}return O})}(bv)),bv.exports}Nxe();var ap={},lp={},Ws={},b5;function W_(){if(b5)return Ws;b5=1;var t=Ws&&Ws.__extends||function(){var o=function(s,a){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,u){l.__proto__=u}||function(l,u){for(var c in u)u.hasOwnProperty(c)&&(l[c]=u[c])},o(s,a)};return function(s,a){o(s,a);function l(){this.constructor=s}s.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}();Object.defineProperty(Ws,"__esModule",{value:!0}),Ws.DetailContext=Ws.NoopContext=Ws.VError=void 0;var e=function(o){t(s,o);function s(a,l){var u=o.call(this,l)||this;return u.path=a,Object.setPrototypeOf(u,s.prototype),u}return s}(Error);Ws.VError=e;var n=function(){function o(){}return o.prototype.fail=function(s,a,l){return!1},o.prototype.unionResolver=function(){return this},o.prototype.createContext=function(){return this},o.prototype.resolveUnion=function(s){},o}();Ws.NoopContext=n;var r=function(){function o(){this._propNames=[""],this._messages=[null],this._score=0}return o.prototype.fail=function(s,a,l){return this._propNames.push(s),this._messages.push(a),this._score+=l,!1},o.prototype.unionResolver=function(){return new i},o.prototype.resolveUnion=function(s){for(var a,l,u=s,c=null,f=0,d=u.contexts;f<d.length;f++){var p=d[f];(!c||p._score>=c._score)&&(c=p)}c&&c._score>0&&((a=this._propNames).push.apply(a,c._propNames),(l=this._messages).push.apply(l,c._messages))},o.prototype.getError=function(s){for(var a=[],l=this._propNames.length-1;l>=0;l--){var u=this._propNames[l];s+=typeof u=="number"?"["+u+"]":u?"."+u:"";var c=this._messages[l];c&&a.push(s+" "+c)}return new e(s,a.join("; "))},o.prototype.getErrorDetail=function(s){for(var a=[],l=this._propNames.length-1;l>=0;l--){var u=this._propNames[l];s+=typeof u=="number"?"["+u+"]":u?"."+u:"";var c=this._messages[l];c&&a.push({path:s,message:c})}for(var f=null,l=a.length-1;l>=0;l--)f&&(a[l].nested=[f]),f=a[l];return f},o}();Ws.DetailContext=r;var i=function(){function o(){this.contexts=[]}return o.prototype.createContext=function(){var s=new r;return this.contexts.push(s),s},o}();return Ws}var S5;function w5(){return S5||(S5=1,function(t){var e=lp&&lp.__extends||function(){var J=function(ae,N){return J=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(U,X){U.__proto__=X}||function(U,X){for(var le in X)X.hasOwnProperty(le)&&(U[le]=X[le])},J(ae,N)};return function(ae,N){J(ae,N);function U(){this.constructor=ae}ae.prototype=N===null?Object.create(N):(U.prototype=N.prototype,new U)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.basicTypes=t.BasicType=t.TParamList=t.TParam=t.param=t.TFunc=t.func=t.TProp=t.TOptional=t.opt=t.TIface=t.iface=t.TEnumLiteral=t.enumlit=t.TEnumType=t.enumtype=t.TIntersection=t.intersection=t.TUnion=t.union=t.TTuple=t.tuple=t.TArray=t.array=t.TLiteral=t.lit=t.TName=t.name=t.TType=void 0;var n=W_(),r=function(){function J(){}return J}();t.TType=r;function i(J){return typeof J=="string"?s(J):J}function o(J,ae){var N=J[ae];if(!N)throw new Error("Unknown type "+ae);return N}function s(J){return new a(J)}t.name=s;var a=function(J){e(ae,J);function ae(N){var U=J.call(this)||this;return U.name=N,U._failMsg="is not a "+N,U}return ae.prototype.getChecker=function(N,U,X){var le=this,ge=o(N,this.name),we=ge.getChecker(N,U,X);return ge instanceof Z||ge instanceof ae?we:function(Se,ke){return we(Se,ke)?!0:ke.fail(null,le._failMsg,0)}},ae}(r);t.TName=a;function l(J){return new u(J)}t.lit=l;var u=function(J){e(ae,J);function ae(N){var U=J.call(this)||this;return U.value=N,U.name=JSON.stringify(N),U._failMsg="is not "+U.name,U}return ae.prototype.getChecker=function(N,U){var X=this;return function(le,ge){return le===X.value?!0:ge.fail(null,X._failMsg,-1)}},ae}(r);t.TLiteral=u;function c(J){return new f(i(J))}t.array=c;var f=function(J){e(ae,J);function ae(N){var U=J.call(this)||this;return U.ttype=N,U}return ae.prototype.getChecker=function(N,U){var X=this.ttype.getChecker(N,U);return function(le,ge){if(!Array.isArray(le))return ge.fail(null,"is not an array",0);for(var we=0;we<le.length;we++){var Se=X(le[we],ge);if(!Se)return ge.fail(we,null,1)}return!0}},ae}(r);t.TArray=f;function d(){for(var J=[],ae=0;ae<arguments.length;ae++)J[ae]=arguments[ae];return new p(J.map(function(N){return i(N)}))}t.tuple=d;var p=function(J){e(ae,J);function ae(N){var U=J.call(this)||this;return U.ttypes=N,U}return ae.prototype.getChecker=function(N,U){var X=this.ttypes.map(function(ge){return ge.getChecker(N,U)}),le=function(ge,we){if(!Array.isArray(ge))return we.fail(null,"is not an array",0);for(var Se=0;Se<X.length;Se++){var ke=X[Se](ge[Se],we);if(!ke)return we.fail(Se,null,1)}return!0};return U?function(ge,we){return le(ge,we)?ge.length<=X.length?!0:we.fail(X.length,"is extraneous",2):!1}:le},ae}(r);t.TTuple=p;function m(){for(var J=[],ae=0;ae<arguments.length;ae++)J[ae]=arguments[ae];return new y(J.map(function(N){return i(N)}))}t.union=m;var y=function(J){e(ae,J);function ae(N){var U=J.call(this)||this;U.ttypes=N;var X=N.map(function(ge){return ge instanceof a||ge instanceof u?ge.name:null}).filter(function(ge){return ge}),le=N.length-X.length;return X.length?(le>0&&X.push(le+" more"),U._failMsg="is none of "+X.join(", ")):U._failMsg="is none of "+le+" types",U}return ae.prototype.getChecker=function(N,U){var X=this,le=this.ttypes.map(function(ge){return ge.getChecker(N,U)});return function(ge,we){for(var Se=we.unionResolver(),ke=0;ke<le.length;ke++){var We=le[ke](ge,Se.createContext());if(We)return!0}return we.resolveUnion(Se),we.fail(null,X._failMsg,0)}},ae}(r);t.TUnion=y;function v(){for(var J=[],ae=0;ae<arguments.length;ae++)J[ae]=arguments[ae];return new O(J.map(function(N){return i(N)}))}t.intersection=v;var O=function(J){e(ae,J);function ae(N){var U=J.call(this)||this;return U.ttypes=N,U}return ae.prototype.getChecker=function(N,U){var X=new Set,le=this.ttypes.map(function(ge){return ge.getChecker(N,U,X)});return function(ge,we){var Se=le.every(function(ke){return ke(ge,we)});return Se?!0:we.fail(null,null,0)}},ae}(r);t.TIntersection=O;function S(J){return new w(J)}t.enumtype=S;var w=function(J){e(ae,J);function ae(N){var U=J.call(this)||this;return U.members=N,U.validValues=new Set,U._failMsg="is not a valid enum value",U.validValues=new Set(Object.keys(N).map(function(X){return N[X]})),U}return ae.prototype.getChecker=function(N,U){var X=this;return function(le,ge){return X.validValues.has(le)?!0:ge.fail(null,X._failMsg,0)}},ae}(r);t.TEnumType=w;function k(J,ae){return new x(J,ae)}t.enumlit=k;var x=function(J){e(ae,J);function ae(N,U){var X=J.call(this)||this;return X.enumName=N,X.prop=U,X._failMsg="is not "+N+"."+U,X}return ae.prototype.getChecker=function(N,U){var X=this,le=o(N,this.enumName);if(!(le instanceof w))throw new Error("Type "+this.enumName+" used in enumlit is not an enum type");var ge=le.members[this.prop];if(!le.members.hasOwnProperty(this.prop))throw new Error("Unknown value "+this.enumName+"."+this.prop+" used in enumlit");return function(we,Se){return we===ge?!0:Se.fail(null,X._failMsg,-1)}},ae}(r);t.TEnumLiteral=x;function _(J){return Object.keys(J).map(function(ae){return $(ae,J[ae])})}function $(J,ae){return ae instanceof A?new D(J,ae.ttype,!0):new D(J,i(ae),!1)}function L(J,ae){return new C(J,_(ae))}t.iface=L;var C=function(J){e(ae,J);function ae(N,U){var X=J.call(this)||this;return X.bases=N,X.props=U,X.propSet=new Set(U.map(function(le){return le.name})),X}return ae.prototype.getChecker=function(N,U,X){var le=this,ge=this.bases.map(function(Ot){return o(N,Ot).getChecker(N,U)}),we=this.props.map(function(Ot){return Ot.ttype.getChecker(N,U)}),Se=new n.NoopContext,ke=this.props.map(function(Ot,tn){return!Ot.isOpt&&!we[tn](void 0,Se)}),We=function(Ot,tn){if(typeof Ot!="object"||Ot===null)return tn.fail(null,"is not an object",0);for(var Qt=0;Qt<ge.length;Qt++)if(!ge[Qt](Ot,tn))return!1;for(var Qt=0;Qt<we.length;Qt++){var nn=le.props[Qt].name,_n=Ot[nn];if(_n===void 0){if(ke[Qt])return tn.fail(nn,"is missing",1)}else{var pn=we[Qt](_n,tn);if(!pn)return tn.fail(nn,null,1)}}return!0};if(!U)return We;var ct=this.propSet;return X&&(this.propSet.forEach(function(Ot){return X.add(Ot)}),ct=X),function(Ot,tn){if(!We(Ot,tn))return!1;for(var Qt in Ot)if(!ct.has(Qt))return tn.fail(Qt,"is extraneous",2);return!0}},ae}(r);t.TIface=C;function E(J){return new A(i(J))}t.opt=E;var A=function(J){e(ae,J);function ae(N){var U=J.call(this)||this;return U.ttype=N,U}return ae.prototype.getChecker=function(N,U){var X=this.ttype.getChecker(N,U);return function(le,ge){return le===void 0||X(le,ge)}},ae}(r);t.TOptional=A;var D=function(){function J(ae,N,U){this.name=ae,this.ttype=N,this.isOpt=U}return J}();t.TProp=D;function Q(J){for(var ae=[],N=1;N<arguments.length;N++)ae[N-1]=arguments[N];return new q(new H(ae),i(J))}t.func=Q;var q=function(J){e(ae,J);function ae(N,U){var X=J.call(this)||this;return X.paramList=N,X.result=U,X}return ae.prototype.getChecker=function(N,U){return function(X,le){return typeof X=="function"?!0:le.fail(null,"is not a function",0)}},ae}(r);t.TFunc=q;function K(J,ae,N){return new V(J,i(ae),!!N)}t.param=K;var V=function(){function J(ae,N,U){this.name=ae,this.ttype=N,this.isOpt=U}return J}();t.TParam=V;var H=function(J){e(ae,J);function ae(N){var U=J.call(this)||this;return U.params=N,U}return ae.prototype.getChecker=function(N,U){var X=this,le=this.params.map(function(ke){return ke.ttype.getChecker(N,U)}),ge=new n.NoopContext,we=this.params.map(function(ke,We){return!ke.isOpt&&!le[We](void 0,ge)}),Se=function(ke,We){if(!Array.isArray(ke))return We.fail(null,"is not an array",0);for(var ct=0;ct<le.length;ct++){var Ot=X.params[ct];if(ke[ct]===void 0){if(we[ct])return We.fail(Ot.name,"is missing",1)}else{var tn=le[ct](ke[ct],We);if(!tn)return We.fail(Ot.name,null,1)}}return!0};return U?function(ke,We){return Se(ke,We)?ke.length<=le.length?!0:We.fail(le.length,"is extraneous",2):!1}:Se},ae}(r);t.TParamList=H;var Z=function(J){e(ae,J);function ae(N,U){var X=J.call(this)||this;return X.validator=N,X.message=U,X}return ae.prototype.getChecker=function(N,U){var X=this;return function(le,ge){return X.validator(le)?!0:ge.fail(null,X.message,0)}},ae}(r);t.BasicType=Z,t.basicTypes={any:new Z(function(J){return!0},"is invalid"),number:new Z(function(J){return typeof J=="number"},"is not a number"),object:new Z(function(J){return typeof J=="object"&&J},"is not an object"),boolean:new Z(function(J){return typeof J=="boolean"},"is not a boolean"),string:new Z(function(J){return typeof J=="string"},"is not a string"),symbol:new Z(function(J){return typeof J=="symbol"},"is not a symbol"),void:new Z(function(J){return J==null},"is not void"),undefined:new Z(function(J){return J===void 0},"is not undefined"),null:new Z(function(J){return J===null},"is not null"),never:new Z(function(J){return!1},"is unexpected"),Date:new Z(F("[object Date]"),"is not a Date"),RegExp:new Z(F("[object RegExp]"),"is not a RegExp")};var te=Object.prototype.toString;function F(J){return function(ae){return typeof ae=="object"&&ae&&te.call(ae)===J}}typeof Buffer<"u"&&(t.basicTypes.Buffer=new Z(function(J){return Buffer.isBuffer(J)},"is not a Buffer"));for(var G=function(J){t.basicTypes[J.name]=new Z(function(ae){return ae instanceof J},"is not a "+J.name)},se=0,j=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,ArrayBuffer];se<j.length;se++){var oe=j[se];G(oe)}}(lp)),lp}var k5;function Fxe(){return k5||(k5=1,function(t){var e=ap&&ap.__spreadArrays||function(){for(var l=0,u=0,c=arguments.length;u<c;u++)l+=arguments[u].length;for(var f=Array(l),d=0,u=0;u<c;u++)for(var p=arguments[u],m=0,y=p.length;m<y;m++,d++)f[d]=p[m];return f};Object.defineProperty(t,"__esModule",{value:!0}),t.Checker=t.createCheckers=void 0;var n=w5(),r=W_(),i=w5();Object.defineProperty(t,"TArray",{enumerable:!0,get:function(){return i.TArray}}),Object.defineProperty(t,"TEnumType",{enumerable:!0,get:function(){return i.TEnumType}}),Object.defineProperty(t,"TEnumLiteral",{enumerable:!0,get:function(){return i.TEnumLiteral}}),Object.defineProperty(t,"TFunc",{enumerable:!0,get:function(){return i.TFunc}}),Object.defineProperty(t,"TIface",{enumerable:!0,get:function(){return i.TIface}}),Object.defineProperty(t,"TLiteral",{enumerable:!0,get:function(){return i.TLiteral}}),Object.defineProperty(t,"TName",{enumerable:!0,get:function(){return i.TName}}),Object.defineProperty(t,"TOptional",{enumerable:!0,get:function(){return i.TOptional}}),Object.defineProperty(t,"TParam",{enumerable:!0,get:function(){return i.TParam}}),Object.defineProperty(t,"TParamList",{enumerable:!0,get:function(){return i.TParamList}}),Object.defineProperty(t,"TProp",{enumerable:!0,get:function(){return i.TProp}}),Object.defineProperty(t,"TTuple",{enumerable:!0,get:function(){return i.TTuple}}),Object.defineProperty(t,"TType",{enumerable:!0,get:function(){return i.TType}}),Object.defineProperty(t,"TUnion",{enumerable:!0,get:function(){return i.TUnion}}),Object.defineProperty(t,"TIntersection",{enumerable:!0,get:function(){return i.TIntersection}}),Object.defineProperty(t,"array",{enumerable:!0,get:function(){return i.array}}),Object.defineProperty(t,"enumlit",{enumerable:!0,get:function(){return i.enumlit}}),Object.defineProperty(t,"enumtype",{enumerable:!0,get:function(){return i.enumtype}}),Object.defineProperty(t,"func",{enumerable:!0,get:function(){return i.func}}),Object.defineProperty(t,"iface",{enumerable:!0,get:function(){return i.iface}}),Object.defineProperty(t,"lit",{enumerable:!0,get:function(){return i.lit}}),Object.defineProperty(t,"name",{enumerable:!0,get:function(){return i.name}}),Object.defineProperty(t,"opt",{enumerable:!0,get:function(){return i.opt}}),Object.defineProperty(t,"param",{enumerable:!0,get:function(){return i.param}}),Object.defineProperty(t,"tuple",{enumerable:!0,get:function(){return i.tuple}}),Object.defineProperty(t,"union",{enumerable:!0,get:function(){return i.union}}),Object.defineProperty(t,"intersection",{enumerable:!0,get:function(){return i.intersection}}),Object.defineProperty(t,"BasicType",{enumerable:!0,get:function(){return i.BasicType}});var o=W_();Object.defineProperty(t,"VError",{enumerable:!0,get:function(){return o.VError}});function s(){for(var l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];for(var c=Object.assign.apply(Object,e([{},n.basicTypes],l)),f={},d=0,p=l;d<p.length;d++)for(var m=p[d],y=0,v=Object.keys(m);y<v.length;y++){var O=v[y];f[O]=new a(c,m[O])}return f}t.createCheckers=s;var a=function(){function l(u,c,f){if(f===void 0&&(f="value"),this.suite=u,this.ttype=c,this._path=f,this.props=new Map,c instanceof n.TIface)for(var d=0,p=c.props;d<p.length;d++){var m=p[d];this.props.set(m.name,m.ttype)}this.checkerPlain=this.ttype.getChecker(u,!1),this.checkerStrict=this.ttype.getChecker(u,!0)}return l.prototype.setReportedPath=function(u){this._path=u},l.prototype.check=function(u){return this._doCheck(this.checkerPlain,u)},l.prototype.test=function(u){return this.checkerPlain(u,new r.NoopContext)},l.prototype.validate=function(u){return this._doValidate(this.checkerPlain,u)},l.prototype.strictCheck=function(u){return this._doCheck(this.checkerStrict,u)},l.prototype.strictTest=function(u){return this.checkerStrict(u,new r.NoopContext)},l.prototype.strictValidate=function(u){return this._doValidate(this.checkerStrict,u)},l.prototype.getProp=function(u){var c=this.props.get(u);if(!c)throw new Error("Type has no property "+u);return new l(this.suite,c,this._path+"."+u)},l.prototype.methodArgs=function(u){var c=this._getMethod(u);return new l(this.suite,c.paramList)},l.prototype.methodResult=function(u){var c=this._getMethod(u);return new l(this.suite,c.result)},l.prototype.getArgs=function(){if(!(this.ttype instanceof n.TFunc))throw new Error("getArgs() applied to non-function");return new l(this.suite,this.ttype.paramList)},l.prototype.getResult=function(){if(!(this.ttype instanceof n.TFunc))throw new Error("getResult() applied to non-function");return new l(this.suite,this.ttype.result)},l.prototype.getType=function(){return this.ttype},l.prototype._doCheck=function(u,c){var f=new r.NoopContext;if(!u(c,f)){var d=new r.DetailContext;throw u(c,d),d.getError(this._path)}},l.prototype._doValidate=function(u,c){var f=new r.NoopContext;if(u(c,f))return null;var d=new r.DetailContext;return u(c,d),d.getErrorDetail(this._path)},l.prototype._getMethod=function(u){var c=this.props.get(u);if(!c)throw new Error("Type has no property "+u);if(!(c instanceof n.TFunc))throw new Error("Property "+u+" is not a method");return c},l}();t.Checker=a}(ap)),ap}var ur=Fxe();const qxe=ur.union(ur.lit("jsx"),ur.lit("typescript"),ur.lit("flow"),ur.lit("imports"),ur.lit("react-hot-loader"),ur.lit("jest")),Bxe=ur.iface([],{compiledFilename:"string"}),Uxe=ur.iface([],{transforms:ur.array("Transform"),disableESTransforms:ur.opt("boolean"),jsxRuntime:ur.opt(ur.union(ur.lit("classic"),ur.lit("automatic"),ur.lit("preserve"))),production:ur.opt("boolean"),jsxImportSource:ur.opt("string"),jsxPragma:ur.opt("string"),jsxFragmentPragma:ur.opt("string"),keepUnusedImports:ur.opt("boolean"),preserveDynamicImport:ur.opt("boolean"),injectCreateRequireForImportRequire:ur.opt("boolean"),enableLegacyTypeScriptModuleInterop:ur.opt("boolean"),enableLegacyBabel5ModuleInterop:ur.opt("boolean"),sourceMapOptions:ur.opt("SourceMapOptions"),filePath:ur.opt("string")}),Vxe={Transform:qxe,SourceMapOptions:Bxe,Options:Uxe},{Options:TPe}=ur.createCheckers(Vxe);var x5;(function(t){t[t.TSFunctionType=0]="TSFunctionType";const n=1;t[t.TSConstructorType=n]="TSConstructorType";const r=n+1;t[t.TSAbstractConstructorType=r]="TSAbstractConstructorType"})(x5||(x5={}));var dx={},P5;function Wxe(){return P5||(P5=1,function(t){t.__esModule=!0,t.LinesAndColumns=void 0;var e=`
329
- `,n="\r",r=function(){function i(o){this.string=o;for(var s=[0],a=0;a<o.length;)switch(o[a]){case e:a+=e.length,s.push(a);break;case n:a+=n.length,o[a]===e&&(a+=e.length),s.push(a);break;default:a++;break}this.offsets=s}return i.prototype.locationForIndex=function(o){if(o<0||o>this.string.length)return null;for(var s=0,a=this.offsets;a[s+1]<=o;)s++;var l=o-a[s];return{line:s,column:l}},i.prototype.indexForLocation=function(o){var s=o.line,a=o.column;return s<0||s>=this.offsets.length||a<0||a>this.lengthOfLine(s)?null:this.offsets[s]+a},i.prototype.lengthOfLine=function(o){var s=this.offsets[o],a=o===this.offsets.length-1?this.string.length:this.offsets[o+1];return a-s},i}();t.LinesAndColumns=r,t.default=r}(dx)),dx}Wxe();const iW=()=>(Math.random()+"").slice(2),Zxe=t=>async e=>{const n=iW();return new Promise(r=>{const i=o=>{o.data.type==="invalidateVizCacheResponse"&&o.data.requestId===n&&(t.removeEventListener("message",i),r())};t.addEventListener("message",i),t.postMessage({type:"invalidateVizCacheRequest",changedVizIds:e,requestId:n})})},zxe=({worker:t,setBuildErrorMessage:e})=>({files:n,enableSourcemap:r,vizId:i})=>{const o=iW();return new Promise(s=>{const a=u=>{const c=u.data;if(c.type==="buildResponse"&&c.requestId===o){t.removeEventListener("message",a);const f=c.buildResult,d=c.error;d?e?.(d):e?.(null),s(f)}};t.addEventListener("message",a);const l={type:"buildRequest",files:n,enableSourcemap:r,requestId:o,vizId:i};t.postMessage(l)})},hx="IDLE",px="ENQUEUED",_5="PENDING_CLEAN",mx="PENDING_DIRTY",Xxe=({iframe:t,worker:e,setBuildErrorMessage:n,getLatestContent:r,resolveSlugKey:i,writeFile:o})=>{let s=hx,a=null;const l=zxe({worker:e,setBuildErrorMessage:n}),u=({data:m})=>{if(m.type==="contentRequest"&&r){const{vizId:y}=m;r(y).then(v=>{e.postMessage({type:"contentResponse",vizId:y,content:v})})}else if(m.type==="resolveSlugRequest"){const{slugKey:y,requestId:v}=m;if(i)i(y).then(O=>{const S={type:"resolveSlugResponse",vizId:O,requestId:v};e.postMessage(S)});else{const O={type:"resolveSlugResponse",vizId:null,requestId:v};e.postMessage(O)}}};e.addEventListener("message",u);const c=m=>{const y=m.data;(y.type==="runDone"||y.type==="runError")&&y.type==="runError"&&n&&n(y.error.message),y.type==="writeFile"&&o&&y.fileName&&y.content&&o(y.fileName,y.content)};window.addEventListener("message",c);const f=()=>{e.removeEventListener("message",u),window.removeEventListener("message",c)},d=async({files:m,enableHotReloading:y=!1,enableSourcemap:v=!1,vizId:O})=>{s=_5;const S=await l({files:m,enableSourcemap:v,vizId:O});if(S){const{html:w,runtimeVersion:k,js:x,css:_}=S;if(console.clear(),y&&k==="v3"){if(_){const $={type:"runCSS",css:_};if(!t.contentWindow)throw new Error("iframe.contentWindow is null - this should never happen");t.contentWindow.postMessage($,window.location.origin)}if(x){const $={type:"runJS",js:x};if(!t.contentWindow)throw new Error("iframe.contentWindow is null - this should never happen");t.contentWindow.postMessage($,window.location.origin)}}else t.srcdoc=w||""}s===mx?(requestAnimationFrame(()=>{if(!a)throw new Error("latestFiles is not defined and state is PENDING_DIRTY - this should never happen");d({files:a,enableHotReloading:y,enableSourcemap:v,vizId:O})}),s=px):s=hx},p=({files:m,enableHotReloading:y=!1,enableSourcemap:v=!1,vizId:O=void 0})=>{if(a=null,s===hx)s=px,d({files:m,enableHotReloading:y,enableSourcemap:v,vizId:O});else if(s===_5)a=m,s=mx;else if(s===mx)a=m;else if(s===px)a=m;else throw new Error(`Unexpected state: ${s}`)};return{invalidateVizCache:Zxe(e),run:p,cleanup:f}};function Hxe(t){return new Worker("/assets/buildWorker-B-vXZ9gA.js",{name:t?.name})}const Yxe=()=>{const t=M.useRef(null),e=M.useRef(null),n=M.useRef(!0),{content:r}=M.useContext(ri),i=M.useMemo(()=>r?YV(r.files):null,[r?.files]),o=r?.isInteracting||!1;return M.useEffect(()=>{if(i){if(!e.current&&t.current){const s=new Hxe;e.current=Xxe({iframe:t.current,worker:s,setBuildErrorMessage:a=>{a&&console.error("Build error:",a)}})}(n.current||o)&&(e.current?.run({files:i,enableHotReloading:!0,enableSourcemap:!0,vizId:"example-viz"}),n.current=!1)}},[i,o]),W.jsx("div",{className:"right",children:W.jsx("iframe",{ref:t})})},Gxe="vzCodeUsername",Kxe="Anonymous",Jxe=()=>{let t=Kxe;if(typeof window<"u"){const e=window.localStorage.getItem(Gxe);e!==null&&(t=e)}return t},ePe=t=>{const e=M.useRef(t);M.useEffect(()=>{e.current!==t&&(e.current=t,window.localStorage.setItem("vzCodeUsername",t))},[t])},tPe=t=>e=>{const n=t.data,r=oz(n,e(n));r&&t&&t.submitOp(r)},nPe=t=>M.useCallback(()=>tPe(t),[t])(),rPe=1e3,iPe=t=>{const e=M.useRef(),[n,r]=M.useState(!1),i=M.useCallback(()=>{t&&t.whenNothingPending(()=>{r(!1)})},[t,r]);return M.useEffect(()=>{t&&t.on("before op",()=>{r(!0),clearTimeout(e.current),e.current=setTimeout(()=>{i()},rPe)})},[t,i]),n},oPe=({connection:t})=>{const[e,n]=M.useState(null),[r,i]=M.useState(null),[o,s]=M.useState(null),[a,l]=M.useState(null),[u,c]=M.useState(!1);M.useEffect(()=>{t.on("connected",()=>{c(!0)}),t.on("disconnected",()=>{c(!1)});const p="documents",m="1",y=t.get(p,m);return y.subscribe(()=>{n(y),l(y.data),y.on("op",()=>{l(y.data)});const v=t.getDocPresence(p,m);v.subscribe(function(S){if(S)throw S});const O=()=>{const S=Date.now().toString(36),w=e_();return`${S}-${w}`};i(v.create(O())),s(v)}),()=>{}},[]);const f=iPe(e),d=nPe(e);return{shareDBDoc:e,content:a,localPresence:r,docPresence:o,submitOperation:d,connected:u,pending:f}};function sPe(t){return new Worker("/assets/worker-CkHcCP1n.js",{name:t?.name})}let aPe=0;const gx=new Map,lPe=()=>{const[t,e]=M.useState(null);return M.useEffect(()=>{e(new sPe)},[]),M.useEffect(()=>{if(!t)return;const r=i=>{const{diagnostics:o,requestId:s,error:a}=i.data;a&&console.error("[ESLint] Error:",a);const l=gx.get(s);l&&(l(o),gx.delete(s))};return t.addEventListener("message",r),()=>{t.removeEventListener("message",r),t.terminate()}},[t]),{esLintSource:M.useCallback(async r=>{const i=r.state.field(n7);try{const o=r.state.doc.toString(),s=aPe++;return new Promise(a=>{gx.set(s,a),t.postMessage({code:o,requestId:s,fileName:i})})}catch(o){return console.error("[ESLint] Error in linter:",o),[]}},[t])}},uPe=new sz;C5.types.register(AO.type);const{Connection:cPe}=C5,fPe=window.location.protocol==="https:"?"wss://":"ws://",dPe=new WebSocket(fPe+window.location.host+"/ws"),hPe=new cPe(dPe),pPe=()=>{const{username:t}=M.useContext(ri);return ePe(t),null};function mPe(){const{shareDBDoc:t,content:e,localPresence:n,docPresence:r,submitOperation:i,connected:o,pending:s}=oPe({connection:hPe}),[a,l]=M.useState(void 0),[u,c]=M.useState(lF()),[f,d]=M.useState(!1),{esLintSource:p}=lPe(),m=Jxe();return W.jsx(PK,{children:W.jsx(yge,{content:e,shareDBDoc:t,submitOperation:i,localPresence:n,docPresence:r,prettierWorker:uPe,initialUsername:m,connected:o,pending:s,liveKitRoomName:u,setLiveKitRoom:c,liveKitToken:a,setLiveKitToken:l,liveKitConnection:f,setLiveKitConnection:d,aiChatEndpoint:"/ai-chat-message",aiChatOptions:{},children:W.jsxs(uK,{audio:!0,token:a,serverUrl:void 0,connect:f,style:{height:"100%"},children:[W.jsxs("div",{className:"app",children:[W.jsx(lxe,{}),W.jsx(Rxe,{aiCopilotEndpoint:null,esLintSource:p}),W.jsx(Yxe,{}),W.jsx(m5,{side:"left"}),W.jsx(m5,{side:"right"})]}),W.jsx(pPe,{}),W.jsx(gK,{})]})})})}gZ.createRoot(document.getElementById("root")).render(W.jsx(B8,{children:W.jsx(mPe,{})}));
329
+ `,n="\r",r=function(){function i(o){this.string=o;for(var s=[0],a=0;a<o.length;)switch(o[a]){case e:a+=e.length,s.push(a);break;case n:a+=n.length,o[a]===e&&(a+=e.length),s.push(a);break;default:a++;break}this.offsets=s}return i.prototype.locationForIndex=function(o){if(o<0||o>this.string.length)return null;for(var s=0,a=this.offsets;a[s+1]<=o;)s++;var l=o-a[s];return{line:s,column:l}},i.prototype.indexForLocation=function(o){var s=o.line,a=o.column;return s<0||s>=this.offsets.length||a<0||a>this.lengthOfLine(s)?null:this.offsets[s]+a},i.prototype.lengthOfLine=function(o){var s=this.offsets[o],a=o===this.offsets.length-1?this.string.length:this.offsets[o+1];return a-s},i}();t.LinesAndColumns=r,t.default=r}(dx)),dx}Wxe();const iW=()=>(Math.random()+"").slice(2),Zxe=t=>async e=>{const n=iW();return new Promise(r=>{const i=o=>{o.data.type==="invalidateVizCacheResponse"&&o.data.requestId===n&&(t.removeEventListener("message",i),r())};t.addEventListener("message",i),t.postMessage({type:"invalidateVizCacheRequest",changedVizIds:e,requestId:n})})},zxe=({worker:t,setBuildErrorMessage:e})=>({files:n,enableSourcemap:r,vizId:i})=>{const o=iW();return new Promise(s=>{const a=u=>{const c=u.data;if(c.type==="buildResponse"&&c.requestId===o){t.removeEventListener("message",a);const f=c.buildResult,d=c.error;d?e?.(d):e?.(null),s(f)}};t.addEventListener("message",a);const l={type:"buildRequest",files:n,enableSourcemap:r,requestId:o,vizId:i};t.postMessage(l)})},hx="IDLE",px="ENQUEUED",_5="PENDING_CLEAN",mx="PENDING_DIRTY",Xxe=({iframe:t,worker:e,setBuildErrorMessage:n,getLatestContent:r,resolveSlugKey:i,writeFile:o})=>{let s=hx,a=null;const l=zxe({worker:e,setBuildErrorMessage:n}),u=({data:m})=>{if(m.type==="contentRequest"&&r){const{vizId:y}=m;r(y).then(v=>{e.postMessage({type:"contentResponse",vizId:y,content:v})})}else if(m.type==="resolveSlugRequest"){const{slugKey:y,requestId:v}=m;if(i)i(y).then(O=>{const S={type:"resolveSlugResponse",vizId:O,requestId:v};e.postMessage(S)});else{const O={type:"resolveSlugResponse",vizId:null,requestId:v};e.postMessage(O)}}};e.addEventListener("message",u);const c=m=>{const y=m.data;(y.type==="runDone"||y.type==="runError")&&y.type==="runError"&&n&&n(y.error.message),y.type==="writeFile"&&o&&y.fileName&&y.content&&o(y.fileName,y.content)};window.addEventListener("message",c);const f=()=>{e.removeEventListener("message",u),window.removeEventListener("message",c)},d=async({files:m,enableHotReloading:y=!1,enableSourcemap:v=!1,vizId:O})=>{s=_5;const S=await l({files:m,enableSourcemap:v,vizId:O});if(S){const{html:w,runtimeVersion:k,js:x,css:_}=S;if(console.clear(),y&&k==="v3"){if(_){const $={type:"runCSS",css:_};if(!t.contentWindow)throw new Error("iframe.contentWindow is null - this should never happen");t.contentWindow.postMessage($,window.location.origin)}if(x){const $={type:"runJS",js:x};if(!t.contentWindow)throw new Error("iframe.contentWindow is null - this should never happen");t.contentWindow.postMessage($,window.location.origin)}}else t.srcdoc=w||""}s===mx?(requestAnimationFrame(()=>{if(!a)throw new Error("latestFiles is not defined and state is PENDING_DIRTY - this should never happen");d({files:a,enableHotReloading:y,enableSourcemap:v,vizId:O})}),s=px):s=hx},p=({files:m,enableHotReloading:y=!1,enableSourcemap:v=!1,vizId:O=void 0})=>{if(a=null,s===hx)s=px,d({files:m,enableHotReloading:y,enableSourcemap:v,vizId:O});else if(s===_5)a=m,s=mx;else if(s===mx)a=m;else if(s===px)a=m;else throw new Error(`Unexpected state: ${s}`)};return{invalidateVizCache:Zxe(e),run:p,cleanup:f}};function Hxe(t){return new Worker("/assets/buildWorker-B-vXZ9gA.js",{name:t?.name})}const Yxe=()=>{const t=M.useRef(null),e=M.useRef(null),n=M.useRef(!0),{content:r}=M.useContext(ri),i=M.useMemo(()=>r?YV(r.files):null,[r?.files]),o=r?.isInteracting||!1;return M.useEffect(()=>{if(i){if(!e.current&&t.current){const s=new Hxe;e.current=Xxe({iframe:t.current,worker:s,setBuildErrorMessage:a=>{a&&console.error("Build error:",a)}})}(n.current||o)&&(e.current?.run({files:i,enableHotReloading:!0,enableSourcemap:!0,vizId:"example-viz"}),n.current=!1)}},[i,o]),W.jsx("div",{className:"right",children:W.jsx("iframe",{ref:t})})},Gxe="vzCodeUsername",Kxe="Anonymous",Jxe=()=>{let t=Kxe;if(typeof window<"u"){const e=window.localStorage.getItem(Gxe);e!==null&&(t=e)}return t},ePe=t=>{const e=M.useRef(t);M.useEffect(()=>{e.current!==t&&(e.current=t,window.localStorage.setItem("vzCodeUsername",t))},[t])},tPe=t=>e=>{const n=t.data,r=oz(n,e(n));r&&t&&t.submitOp(r)},nPe=t=>M.useCallback(()=>tPe(t),[t])(),rPe=1e3,iPe=t=>{const e=M.useRef(),[n,r]=M.useState(!1),i=M.useCallback(()=>{t&&t.whenNothingPending(()=>{r(!1)})},[t,r]);return M.useEffect(()=>{t&&t.on("before op",()=>{r(!0),clearTimeout(e.current),e.current=setTimeout(()=>{i()},rPe)})},[t,i]),n},oPe=({connection:t})=>{const[e,n]=M.useState(null),[r,i]=M.useState(null),[o,s]=M.useState(null),[a,l]=M.useState(null),[u,c]=M.useState(!1);M.useEffect(()=>{t.on("connected",()=>{c(!0)}),t.on("disconnected",()=>{c(!1)});const p="documents",m="1",y=t.get(p,m);return y.subscribe(()=>{n(y),l(y.data),y.on("op",()=>{l(y.data)});const v=t.getDocPresence(p,m);v.subscribe(function(S){if(S)throw S});const O=()=>{const S=Date.now().toString(36),w=e_();return`${S}-${w}`};i(v.create(O())),s(v)}),()=>{}},[]);const f=iPe(e),d=nPe(e);return{shareDBDoc:e,content:a,localPresence:r,docPresence:o,submitOperation:d,connected:u,pending:f}};function sPe(t){return new Worker("/assets/worker-BeBZGG1n.js",{name:t?.name})}let aPe=0;const gx=new Map,lPe=()=>{const[t,e]=M.useState(null);return M.useEffect(()=>{e(new sPe)},[]),M.useEffect(()=>{if(!t)return;const r=i=>{const{diagnostics:o,requestId:s,error:a}=i.data;a&&console.error("[ESLint] Error:",a);const l=gx.get(s);l&&(l(o),gx.delete(s))};return t.addEventListener("message",r),()=>{t.removeEventListener("message",r),t.terminate()}},[t]),{esLintSource:M.useCallback(async r=>{const i=r.state.field(n7);try{const o=r.state.doc.toString(),s=aPe++;return new Promise(a=>{gx.set(s,a),t.postMessage({code:o,requestId:s,fileName:i})})}catch(o){return console.error("[ESLint] Error in linter:",o),[]}},[t])}},uPe=new sz;C5.types.register(AO.type);const{Connection:cPe}=C5,fPe=window.location.protocol==="https:"?"wss://":"ws://",dPe=new WebSocket(fPe+window.location.host+"/ws"),hPe=new cPe(dPe),pPe=()=>{const{username:t}=M.useContext(ri);return ePe(t),null};function mPe(){const{shareDBDoc:t,content:e,localPresence:n,docPresence:r,submitOperation:i,connected:o,pending:s}=oPe({connection:hPe}),[a,l]=M.useState(void 0),[u,c]=M.useState(lF()),[f,d]=M.useState(!1),{esLintSource:p}=lPe(),m=Jxe();return W.jsx(PK,{children:W.jsx(yge,{content:e,shareDBDoc:t,submitOperation:i,localPresence:n,docPresence:r,prettierWorker:uPe,initialUsername:m,connected:o,pending:s,liveKitRoomName:u,setLiveKitRoom:c,liveKitToken:a,setLiveKitToken:l,liveKitConnection:f,setLiveKitConnection:d,aiChatEndpoint:"/ai-chat-message",aiChatOptions:{},children:W.jsxs(uK,{audio:!0,token:a,serverUrl:void 0,connect:f,style:{height:"100%"},children:[W.jsxs("div",{className:"app",children:[W.jsx(lxe,{}),W.jsx(Rxe,{aiCopilotEndpoint:null,esLintSource:p}),W.jsx(Yxe,{}),W.jsx(m5,{side:"left"}),W.jsx(m5,{side:"right"})]}),W.jsx(pPe,{}),W.jsx(gK,{})]})})})}gZ.createRoot(document.getElementById("root")).render(W.jsx(B8,{children:W.jsx(mPe,{})}));