UNPKG

vzcode

Version:
25 lines 2.02 MB
var PAe=Object.defineProperty;var jj=bn=>{throw TypeError(bn)};var NAe=(bn,hn,zn)=>hn in bn?PAe(bn,hn,{enumerable:!0,configurable:!0,writable:!0,value:zn}):bn[hn]=zn;var rn=(bn,hn,zn)=>NAe(bn,typeof hn!="symbol"?hn+"":hn,zn),Uj=(bn,hn,zn)=>hn.has(bn)||jj("Cannot "+zn);var IC=(bn,hn,zn)=>(Uj(bn,hn,"read from private field"),zn?zn.call(bn):hn.get(bn)),Vj=(bn,hn,zn)=>hn.has(bn)?jj("Cannot add the same private member more than once"):hn instanceof WeakSet?hn.add(bn):hn.set(bn,zn),Hj=(bn,hn,zn,Ig)=>(Uj(bn,hn,"write to private field"),Ig?Ig.call(bn,zn):hn.set(bn,zn),zn);(function(){"use strict";var ql,Rj;var bn=Object.create,hn=Object.defineProperty,zn=Object.getOwnPropertyDescriptor,Ig=Object.getOwnPropertyNames,Zj=Object.getPrototypeOf,eU=Object.prototype.hasOwnProperty,TS=e=>{throw TypeError(e)},SS=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),RC=(e,t)=>{for(var r in t)hn(e,r,{get:t[r],enumerable:!0})},tU=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Ig(t))!eU.call(e,i)&&i!==r&&hn(e,i,{get:()=>t[i],enumerable:!(n=zn(t,i))||n.enumerable});return e},Rg=(e,t,r)=>(r=e!=null?bn(Zj(e)):{},tU(hn(r,"default",{value:e,enumerable:!0}),e)),rU=(e,t,r)=>t.has(e)||TS("Cannot "+r),nU=(e,t,r)=>t.has(e)?TS("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),vd=(e,t,r)=>(rU(e,t,"access private method"),r),LC=SS((e,t)=>{var r=new Proxy(String,{get:()=>r});t.exports=r}),iU=SS(e=>{Object.defineProperty(e,"__esModule",{value:!0});function t(){return new Proxy({},{get:()=>s=>s})}var r=/\r\n|[\n\r\u2028\u2029]/;function n(s,o,p){let l=Object.assign({column:0,line:-1},s.start),f=Object.assign({},l,s.end),{linesAbove:u=2,linesBelow:d=3}=p||{},y=l.line,g=l.column,x=f.line,C=f.column,_=Math.max(y-(u+1),0),b=Math.min(o.length,x+d);y===-1&&(_=0),x===-1&&(b=o.length);let T=x-y,S={};if(T)for(let B=0;B<=T;B++){let F=B+y;if(!g)S[F]=!0;else if(B===0){let P=o[F-1].length;S[F]=[g,P-g+1]}else if(B===T)S[F]=[0,C];else{let P=o[F-B].length;S[F]=[0,P]}}else g===C?g?S[y]=[g,0]:S[y]=!0:S[y]=[g,C-g];return{start:_,end:b,markerLines:S}}function i(s,o,p={}){let l=t(),f=s.split(r),{start:u,end:d,markerLines:y}=n(o,f,p),g=o.start&&typeof o.start.column=="number",x=String(d).length,C=s.split(r,d).slice(u,d).map((_,b)=>{let T=u+1+b,S=` ${` ${T}`.slice(-x)} |`,B=y[T],F=!y[T+1];if(B){let P="";if(Array.isArray(B)){let R=_.slice(0,Math.max(B[0]-1,0)).replace(/[^\t]/g," "),L=B[1]||1;P=[` `,l.gutter(S.replace(/\d/g," "))," ",R,l.marker("^").repeat(L)].join(""),F&&p.message&&(P+=" "+l.message(p.message))}return[l.marker(">"),l.gutter(S),_.length>0?` ${_}`:"",P].join("")}else return` ${l.gutter(S)}${_.length>0?` ${_}`:""}`}).join(` `);return p.message&&!g&&(C=`${" ".repeat(x+1)}${p.message} ${C}`),C}e.codeFrameColumns=i}),sU={};RC(sU,{__debug:()=>dJ,check:()=>cJ,doc:()=>Ku,format:()=>m3,formatWithCursor:()=>q6,getSupportInfo:()=>pJ,util:()=>M6,version:()=>MH});var aU=(e,t,r,n)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)},Lg=aU;function ua(){}ua.prototype={diff:function(e,t){var r,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=n.callback;typeof n=="function"&&(i=n,n={});var s=this;function o(S){return S=s.postProcess(S,n),i?(setTimeout(function(){i(S)},0),!0):S}e=this.castInput(e,n),t=this.castInput(t,n),e=this.removeEmpty(this.tokenize(e,n)),t=this.removeEmpty(this.tokenize(t,n));var p=t.length,l=e.length,f=1,u=p+l;n.maxEditLength!=null&&(u=Math.min(u,n.maxEditLength));var d=(r=n.timeout)!==null&&r!==void 0?r:1/0,y=Date.now()+d,g=[{oldPos:-1,lastComponent:void 0}],x=this.extractCommon(g[0],t,e,0,n);if(g[0].oldPos+1>=l&&x+1>=p)return o(wS(s,g[0].lastComponent,t,e,s.useLongestToken));var C=-1/0,_=1/0;function b(){for(var S=Math.max(C,-f);S<=Math.min(_,f);S+=2){var B=void 0,F=g[S-1],P=g[S+1];F&&(g[S-1]=void 0);var R=!1;if(P){var L=P.oldPos-S;R=P&&0<=L&&L<p}var z=F&&F.oldPos+1<l;if(!R&&!z){g[S]=void 0;continue}if(!z||R&&F.oldPos<P.oldPos?B=s.addToPath(P,!0,!1,0,n):B=s.addToPath(F,!1,!0,1,n),x=s.extractCommon(B,t,e,S,n),B.oldPos+1>=l&&x+1>=p)return o(wS(s,B.lastComponent,t,e,s.useLongestToken));g[S]=B,B.oldPos+1>=l&&(_=Math.min(_,S-1)),x+1>=p&&(C=Math.max(C,S+1))}f++}if(i)(function S(){setTimeout(function(){if(f>u||Date.now()>y)return i();b()||S()},0)})();else for(;f<=u&&Date.now()<=y;){var T=b();if(T)return T}},addToPath:function(e,t,r,n,i){var s=e.lastComponent;return s&&!i.oneChangePerToken&&s.added===t&&s.removed===r?{oldPos:e.oldPos+n,lastComponent:{count:s.count+1,added:t,removed:r,previousComponent:s.previousComponent}}:{oldPos:e.oldPos+n,lastComponent:{count:1,added:t,removed:r,previousComponent:s}}},extractCommon:function(e,t,r,n,i){for(var s=t.length,o=r.length,p=e.oldPos,l=p-n,f=0;l+1<s&&p+1<o&&this.equals(r[p+1],t[l+1],i);)l++,p++,f++,i.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return f&&!i.oneChangePerToken&&(e.lastComponent={count:f,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=p,l},equals:function(e,t,r){return r.comparator?r.comparator(e,t):e===t||r.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],r=0;r<e.length;r++)e[r]&&t.push(e[r]);return t},castInput:function(e){return e},tokenize:function(e){return Array.from(e)},join:function(e){return e.join("")},postProcess:function(e){return e}};function wS(e,t,r,n,i){for(var s=[],o;t;)s.push(t),o=t.previousComponent,delete t.previousComponent,t=o;s.reverse();for(var p=0,l=s.length,f=0,u=0;p<l;p++){var d=s[p];if(d.removed)d.value=e.join(n.slice(u,u+d.count)),u+=d.count;else{if(!d.added&&i){var y=r.slice(f,f+d.count);y=y.map(function(g,x){var C=n[u+x];return C.length>g.length?C:g}),d.value=e.join(y)}else d.value=e.join(r.slice(f,f+d.count));f+=d.count,d.added||(u+=d.count)}}return s}function kS(e,t){var r;for(r=0;r<e.length&&r<t.length;r++)if(e[r]!=t[r])return e.slice(0,r);return e.slice(0,r)}function FS(e,t){var r;if(!e||!t||e[e.length-1]!=t[t.length-1])return"";for(r=0;r<e.length&&r<t.length;r++)if(e[e.length-(r+1)]!=t[t.length-(r+1)])return e.slice(-r);return e.slice(-r)}function OC(e,t,r){if(e.slice(0,t.length)!=t)throw Error("string ".concat(JSON.stringify(e)," doesn't start with prefix ").concat(JSON.stringify(t),"; this is a bug"));return r+e.slice(t.length)}function MC(e,t,r){if(!t)return e+r;if(e.slice(-t.length)!=t)throw Error("string ".concat(JSON.stringify(e)," doesn't end with suffix ").concat(JSON.stringify(t),"; this is a bug"));return e.slice(0,-t.length)+r}function xd(e,t){return OC(e,t,"")}function Og(e,t){return MC(e,t,"")}function PS(e,t){return t.slice(0,oU(e,t))}function oU(e,t){var r=0;e.length>t.length&&(r=e.length-t.length);var n=t.length;e.length<t.length&&(n=e.length);var i=Array(n),s=0;i[0]=0;for(var o=1;o<n;o++){for(t[o]==t[s]?i[o]=i[s]:i[o]=s;s>0&&t[o]!=t[s];)s=i[s];t[o]==t[s]&&s++}s=0;for(var p=r;p<e.length;p++){for(;s>0&&e[p]!=t[s];)s=i[s];e[p]==t[s]&&s++}return s}var Mg="a-zA-Z0-9_\\u{C0}-\\u{FF}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}",uU=new RegExp("[".concat(Mg,"]+|\\s+|[^").concat(Mg,"]"),"ug"),$g=new ua;$g.equals=function(e,t,r){return r.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e.trim()===t.trim()},$g.tokenize=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r;if(t.intlSegmenter){if(t.intlSegmenter.resolvedOptions().granularity!="word")throw new Error('The segmenter passed must have a granularity of "word"');r=Array.from(t.intlSegmenter.segment(e),function(s){return s.segment})}else r=e.match(uU)||[];var n=[],i=null;return r.forEach(function(s){/\s/.test(s)?i==null?n.push(s):n.push(n.pop()+s):/\s/.test(i)?n[n.length-1]==i?n.push(n.pop()+s):n.push(i+s):n.push(s),i=s}),n},$g.join=function(e){return e.map(function(t,r){return r==0?t:t.replace(/^\s+/,"")}).join("")},$g.postProcess=function(e,t){if(!e||t.oneChangePerToken)return e;var r=null,n=null,i=null;return e.forEach(function(s){s.added?n=s:s.removed?i=s:((n||i)&&NS(r,i,n,s),r=s,n=null,i=null)}),(n||i)&&NS(r,i,n,null),e};function NS(e,t,r,n){if(t&&r){var i=t.value.match(/^\s*/)[0],s=t.value.match(/\s*$/)[0],o=r.value.match(/^\s*/)[0],p=r.value.match(/\s*$/)[0];if(e){var l=kS(i,o);e.value=MC(e.value,o,l),t.value=xd(t.value,l),r.value=xd(r.value,l)}if(n){var f=FS(s,p);n.value=OC(n.value,p,f),t.value=Og(t.value,f),r.value=Og(r.value,f)}}else if(r)e&&(r.value=r.value.replace(/^\s*/,"")),n&&(n.value=n.value.replace(/^\s*/,""));else if(e&&n){var u=n.value.match(/^\s*/)[0],d=t.value.match(/^\s*/)[0],y=t.value.match(/\s*$/)[0],g=kS(u,d);t.value=xd(t.value,g);var x=FS(xd(u,g),y);t.value=Og(t.value,x),n.value=OC(n.value,u,x),e.value=MC(e.value,u,u.slice(0,u.length-x.length))}else if(n){var C=n.value.match(/^\s*/)[0],_=t.value.match(/\s*$/)[0],b=PS(_,C);t.value=Og(t.value,b)}else if(e){var T=e.value.match(/\s*$/)[0],S=t.value.match(/^\s*/)[0],B=PS(T,S);t.value=xd(t.value,B)}}var lU=new ua;lU.tokenize=function(e){var t=new RegExp("(\\r?\\n)|[".concat(Mg,"]+|[^\\S\\n\\r]+|[^").concat(Mg,"]"),"ug");return e.match(t)||[]};var $C=new ua;$C.tokenize=function(e,t){t.stripTrailingCr&&(e=e.replace(/\r\n/g,` `));var r=[],n=e.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(var i=0;i<n.length;i++){var s=n[i];i%2&&!t.newlineIsToken?r[r.length-1]+=s:r.push(s)}return r},$C.equals=function(e,t,r){return r.ignoreWhitespace?((!r.newlineIsToken||!e.includes(` `))&&(e=e.trim()),(!r.newlineIsToken||!t.includes(` `))&&(t=t.trim())):r.ignoreNewlineAtEof&&!r.newlineIsToken&&(e.endsWith(` `)&&(e=e.slice(0,-1)),t.endsWith(` `)&&(t=t.slice(0,-1))),ua.prototype.equals.call(this,e,t,r)};var cU=new ua;cU.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)};var pU=new ua;pU.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};function qC(e){"@babel/helpers - typeof";return qC=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qC(e)}var Dd=new ua;Dd.useLongestToken=!0,Dd.tokenize=$C.tokenize,Dd.castInput=function(e,t){var r=t.undefinedReplacement,n=t.stringifyReplacer,i=n===void 0?function(s,o){return typeof o>"u"?r:o}:n;return typeof e=="string"?e:JSON.stringify(jC(e,null,null,i),i," ")},Dd.equals=function(e,t,r){return ua.prototype.equals.call(Dd,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"),r)};function jC(e,t,r,n,i){t=t||[],r=r||[],n&&(e=n(i,e));var s;for(s=0;s<t.length;s+=1)if(t[s]===e)return r[s];var o;if(Object.prototype.toString.call(e)==="[object Array]"){for(t.push(e),o=new Array(e.length),r.push(o),s=0;s<e.length;s+=1)o[s]=jC(e[s],t,r,n,i);return t.pop(),r.pop(),o}if(e&&e.toJSON&&(e=e.toJSON()),qC(e)==="object"&&e!==null){t.push(e),o={},r.push(o);var p=[],l;for(l in e)Object.prototype.hasOwnProperty.call(e,l)&&p.push(l);for(p.sort(),s=0;s<p.length;s+=1)l=p[s],o[l]=jC(e[l],t,r,n,l);t.pop(),r.pop()}else o=e;return o}var qg=new ua;qg.tokenize=function(e){return e.slice()},qg.join=qg.removeEmpty=function(e){return e};function dU(e,t,r){return qg.diff(e,t,r)}function hU(e){let t=e.indexOf("\r");return t!==-1?e.charAt(t+1)===` `?"crlf":"cr":"lf"}function UC(e){switch(e){case"cr":return"\r";case"crlf":return`\r `;default:return` `}}function BS(e,t){let r;switch(t){case` `:r=/\n/gu;break;case"\r":r=/\r/gu;break;case`\r `:r=/\r\n/gu;break;default:throw new Error(`Unexpected "eol" ${JSON.stringify(t)}.`)}let n=e.match(r);return n?n.length:0}function fU(e){return Lg(!1,e,/\r\n?/gu,` `)}var qu="string",Ja="array",ju="cursor",za="indent",Wa="align",Ka="trim",Bi="group",la="fill",Zi="if-break",Ga="indent-if-break",Xa="line-suffix",Qa="line-suffix-boundary",Wn="line",ca="label",bs="break-parent",IS=new Set([ju,za,Wa,Ka,Bi,la,Zi,Ga,Xa,Qa,Wn,ca,bs]),mU=(e,t,r)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[r<0?t.length+r:r]:t.at(r)},jn=mU;function yU(e){if(typeof e=="string")return qu;if(Array.isArray(e))return Ja;if(!e)return;let{type:t}=e;if(IS.has(t))return t}var Uu=yU,gU=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function vU(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}', Expected it to be 'string' or 'object'.`;if(Uu(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=gU([...IS].map(i=>`'${i}'`));return`Unexpected doc.type '${e.type}'. Expected it to be ${n}.`}var xU=class extends Error{constructor(r){super(vU(r));rn(this,"name","InvalidDocError");this.doc=r}},uc=xU,RS={};function DU(e,t,r,n){let i=[e];for(;i.length>0;){let s=i.pop();if(s===RS){r(i.pop());continue}r&&i.push(s,RS);let o=Uu(s);if(!o)throw new uc(s);if((t==null?void 0:t(s))!==!1)switch(o){case Ja:case la:{let p=o===Ja?s:s.parts;for(let l=p.length,f=l-1;f>=0;--f)i.push(p[f]);break}case Zi:i.push(s.flatContents,s.breakContents);break;case Bi:if(n&&s.expandedStates)for(let p=s.expandedStates.length,l=p-1;l>=0;--l)i.push(s.expandedStates[l]);else i.push(s.contents);break;case Wa:case za:case Ga:case ca:case Xa:i.push(s.contents);break;case qu:case ju:case Ka:case Qa:case Wn:case bs:break;default:throw new uc(s)}}}var VC=DU;function jg(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(s){if(r.has(s))return r.get(s);let o=i(s);return r.set(s,o),o}function i(s){switch(Uu(s)){case Ja:return t(s.map(n));case la:return t({...s,parts:s.parts.map(n)});case Zi:return t({...s,breakContents:n(s.breakContents),flatContents:n(s.flatContents)});case Bi:{let{expandedStates:o,contents:p}=s;return o?(o=o.map(n),p=o[0]):p=n(p),t({...s,contents:p,expandedStates:o})}case Wa:case za:case Ga:case ca:case Xa:return t({...s,contents:n(s.contents)});case qu:case ju:case Ka:case Qa:case Wn:case bs:return t(s);default:throw new uc(s)}}}function HC(e,t,r){let n=r,i=!1;function s(o){if(i)return!1;let p=t(o);p!==void 0&&(i=!0,n=p)}return VC(e,s),n}function bU(e){if(e.type===Bi&&e.break||e.type===Wn&&e.hard||e.type===bs)return!0}function CU(e){return HC(e,bU,!1)}function LS(e){if(e.length>0){let t=jn(!1,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function _U(e){let t=new Set,r=[];function n(s){if(s.type===bs&&LS(r),s.type===Bi){if(r.push(s),t.has(s))return!1;t.add(s)}}function i(s){s.type===Bi&&r.pop().break&&LS(r)}VC(e,n,i,!0)}function AU(e){return e.type===Wn&&!e.hard?e.soft?"":" ":e.type===Zi?e.flatContents:e}function EU(e){return jg(e,AU)}function OS(e){for(e=[...e];e.length>=2&&jn(!1,e,-2).type===Wn&&jn(!1,e,-1).type===bs;)e.length-=2;if(e.length>0){let t=bd(jn(!1,e,-1));e[e.length-1]=t}return e}function bd(e){switch(Uu(e)){case za:case Ga:case Bi:case Xa:case ca:{let t=bd(e.contents);return{...e,contents:t}}case Zi:return{...e,breakContents:bd(e.breakContents),flatContents:bd(e.flatContents)};case la:return{...e,parts:OS(e.parts)};case Ja:return OS(e);case qu:return e.replace(/[\n\r]*$/u,"");case Wa:case ju:case Ka:case Qa:case Wn:case bs:break;default:throw new uc(e)}return e}function MS(e){return bd(SU(e))}function TU(e){switch(Uu(e)){case la:if(e.parts.every(t=>t===""))return"";break;case Bi:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===Bi&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case Wa:case za:case Ga:case Xa:if(!e.contents)return"";break;case Zi:if(!e.flatContents&&!e.breakContents)return"";break;case Ja:{let t=[];for(let r of e){if(!r)continue;let[n,...i]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof jn(!1,t,-1)=="string"?t[t.length-1]+=n:t.push(n),t.push(...i)}return t.length===0?"":t.length===1?t[0]:t}case qu:case ju:case Ka:case Qa:case Wn:case ca:case bs:break;default:throw new uc(e)}return e}function SU(e){return jg(e,t=>TU(t))}function wU(e,t=US){return jg(e,r=>typeof r=="string"?VS(t,r.split(` `)):r)}function kU(e){if(e.type===Wn)return!0}function FU(e){return HC(e,kU,!1)}function Ug(e,t){return e.type===ca?{...e,contents:t(e.contents)}:t(e)}var PU=()=>{},NU=PU;function Vg(e){return{type:za,contents:e}}function lc(e,t){return{type:Wa,contents:t,n:e}}function $S(e,t={}){return NU(t.expandedStates),{type:Bi,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function BU(e){return lc(Number.NEGATIVE_INFINITY,e)}function IU(e){return lc({type:"root"},e)}function RU(e){return lc(-1,e)}function LU(e,t){return $S(e[0],{...t,expandedStates:e})}function OU(e){return{type:la,parts:e}}function MU(e,t="",r={}){return{type:Zi,breakContents:e,flatContents:t,groupId:r.groupId}}function $U(e,t){return{type:Ga,contents:e,groupId:t.groupId,negate:t.negate}}function JC(e){return{type:Xa,contents:e}}var qU={type:Qa},Hg={type:bs},jU={type:Ka},zC={type:Wn,hard:!0},qS={type:Wn,hard:!0,literal:!0},jS={type:Wn},UU={type:Wn,soft:!0},Vu=[zC,Hg],US=[qS,Hg],Hu={type:ju};function VS(e,t){let r=[];for(let n=0;n<t.length;n++)n!==0&&r.push(e),r.push(t[n]);return r}function HS(e,t,r){let n=e;if(t>0){for(let i=0;i<Math.floor(t/r);++i)n=Vg(n);n=lc(t%r,n),n=lc(Number.NEGATIVE_INFINITY,n)}return n}function VU(e,t){return e?{type:ca,label:e,contents:t}:t}function Ya(e){var t;if(!e)return"";if(Array.isArray(e)){let r=[];for(let n of e)if(Array.isArray(n))r.push(...Ya(n));else{let i=Ya(n);i!==""&&r.push(i)}return r}return e.type===Zi?{...e,breakContents:Ya(e.breakContents),flatContents:Ya(e.flatContents)}:e.type===Bi?{...e,contents:Ya(e.contents),expandedStates:(t=e.expandedStates)==null?void 0:t.map(Ya)}:e.type===la?{type:"fill",parts:e.parts.map(Ya)}:e.contents?{...e,contents:Ya(e.contents)}:e}function HU(e){let t=Object.create(null),r=new Set;return n(Ya(e));function n(s,o,p){var l,f;if(typeof s=="string")return JSON.stringify(s);if(Array.isArray(s)){let u=s.map(n).filter(Boolean);return u.length===1?u[0]:`[${u.join(", ")}]`}if(s.type===Wn){let u=((l=p==null?void 0:p[o+1])==null?void 0:l.type)===bs;return s.literal?u?"literalline":"literallineWithoutBreakParent":s.hard?u?"hardline":"hardlineWithoutBreakParent":s.soft?"softline":"line"}if(s.type===bs)return((f=p==null?void 0:p[o-1])==null?void 0:f.type)===Wn&&p[o-1].hard?void 0:"breakParent";if(s.type===Ka)return"trim";if(s.type===za)return"indent("+n(s.contents)+")";if(s.type===Wa)return s.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+n(s.contents)+")":s.n<0?"dedent("+n(s.contents)+")":s.n.type==="root"?"markAsRoot("+n(s.contents)+")":"align("+JSON.stringify(s.n)+", "+n(s.contents)+")";if(s.type===Zi)return"ifBreak("+n(s.breakContents)+(s.flatContents?", "+n(s.flatContents):"")+(s.groupId?(s.flatContents?"":', ""')+`, { groupId: ${i(s.groupId)} }`:"")+")";if(s.type===Ga){let u=[];s.negate&&u.push("negate: true"),s.groupId&&u.push(`groupId: ${i(s.groupId)}`);let d=u.length>0?`, { ${u.join(", ")} }`:"";return`indentIfBreak(${n(s.contents)}${d})`}if(s.type===Bi){let u=[];s.break&&s.break!=="propagated"&&u.push("shouldBreak: true"),s.id&&u.push(`id: ${i(s.id)}`);let d=u.length>0?`, { ${u.join(", ")} }`:"";return s.expandedStates?`conditionalGroup([${s.expandedStates.map(y=>n(y)).join(",")}]${d})`:`group(${n(s.contents)}${d})`}if(s.type===la)return`fill([${s.parts.map(u=>n(u)).join(", ")}])`;if(s.type===Xa)return"lineSuffix("+n(s.contents)+")";if(s.type===Qa)return"lineSuffixBoundary";if(s.type===ca)return`label(${JSON.stringify(s.label)}, ${n(s.contents)})`;throw new Error("Unknown doc type "+s.type)}function i(s){if(typeof s!="symbol")return JSON.stringify(String(s));if(s in t)return t[s];let o=s.description||"symbol";for(let p=0;;p++){let l=o+(p>0?` #${p}`:"");if(!r.has(l))return r.add(l),t[s]=`Symbol.for(${JSON.stringify(l)})`}}}var JU=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function zU(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function WU(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e===94192||e===94193||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101631&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129673||e>=129679&&e<=129734||e>=129742&&e<=129756||e>=129759&&e<=129769||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var KU=e=>!(zU(e)||WU(e)),GU=/[^\x20-\x7F]/u;function XU(e){if(!e)return 0;if(!GU.test(e))return e.length;e=e.replace(JU()," ");let t=0;for(let r of e){let n=r.codePointAt(0);n<=31||n>=127&&n<=159||n>=768&&n<=879||(t+=KU(n)?1:2)}return t}var WC=XU,Ii=Symbol("MODE_BREAK"),pa=Symbol("MODE_FLAT"),cc=Symbol("cursor"),KC=Symbol("DOC_FILL_PRINTED_LENGTH");function JS(){return{value:"",length:0,queue:[]}}function QU(e,t){return GC(e,{type:"indent"},t)}function YU(e,t,r){return t===Number.NEGATIVE_INFINITY?e.root||JS():t<0?GC(e,{type:"dedent"},r):t?t.type==="root"?{...e,root:e}:GC(e,{type:typeof t=="string"?"stringAlign":"numberAlign",n:t},r):e}function GC(e,t,r){let n=t.type==="dedent"?e.queue.slice(0,-1):[...e.queue,t],i="",s=0,o=0,p=0;for(let x of n)switch(x.type){case"indent":u(),r.useTabs?l(1):f(r.tabWidth);break;case"stringAlign":u(),i+=x.n,s+=x.n.length;break;case"numberAlign":o+=1,p+=x.n;break;default:throw new Error(`Unexpected type '${x.type}'`)}return y(),{...e,value:i,length:s,queue:n};function l(x){i+=" ".repeat(x),s+=r.tabWidth*x}function f(x){i+=" ".repeat(x),s+=x}function u(){r.useTabs?d():y()}function d(){o>0&&l(o),g()}function y(){p>0&&f(p),g()}function g(){o=0,p=0}}function XC(e){let t=0,r=0,n=e.length;e:for(;n--;){let i=e[n];if(i===cc){r++;continue}for(let s=i.length-1;s>=0;s--){let o=i[s];if(o===" "||o===" ")t++;else{e[n]=i.slice(0,s+1);break e}}}if(t>0||r>0)for(e.length=n+1;r-- >0;)e.push(cc);return t}function Jg(e,t,r,n,i,s){if(r===Number.POSITIVE_INFINITY)return!0;let o=t.length,p=[e],l=[];for(;r>=0;){if(p.length===0){if(o===0)return!0;p.push(t[--o]);continue}let{mode:f,doc:u}=p.pop(),d=Uu(u);switch(d){case qu:l.push(u),r-=WC(u);break;case Ja:case la:{let y=d===Ja?u:u.parts,g=u[KC]??0;for(let x=y.length-1;x>=g;x--)p.push({mode:f,doc:y[x]});break}case za:case Wa:case Ga:case ca:p.push({mode:f,doc:u.contents});break;case Ka:r+=XC(l);break;case Bi:{if(s&&u.break)return!1;let y=u.break?Ii:f,g=u.expandedStates&&y===Ii?jn(!1,u.expandedStates,-1):u.contents;p.push({mode:y,doc:g});break}case Zi:{let y=(u.groupId?i[u.groupId]||pa:f)===Ii?u.breakContents:u.flatContents;y&&p.push({mode:f,doc:y});break}case Wn:if(f===Ii||u.hard)return!0;u.soft||(l.push(" "),r--);break;case Xa:n=!0;break;case Qa:if(n)return!1;break}}return!1}function zg(e,t){let r={},n=t.printWidth,i=UC(t.endOfLine),s=0,o=[{ind:JS(),mode:Ii,doc:e}],p=[],l=!1,f=[],u=0;for(_U(e);o.length>0;){let{ind:y,mode:g,doc:x}=o.pop();switch(Uu(x)){case qu:{let C=i!==` `?Lg(!1,x,` `,i):x;p.push(C),o.length>0&&(s+=WC(C));break}case Ja:for(let C=x.length-1;C>=0;C--)o.push({ind:y,mode:g,doc:x[C]});break;case ju:if(u>=2)throw new Error("There are too many 'cursor' in doc.");p.push(cc),u++;break;case za:o.push({ind:QU(y,t),mode:g,doc:x.contents});break;case Wa:o.push({ind:YU(y,x.n,t),mode:g,doc:x.contents});break;case Ka:s-=XC(p);break;case Bi:switch(g){case pa:if(!l){o.push({ind:y,mode:x.break?Ii:pa,doc:x.contents});break}case Ii:{l=!1;let C={ind:y,mode:pa,doc:x.contents},_=n-s,b=f.length>0;if(!x.break&&Jg(C,o,_,b,r))o.push(C);else if(x.expandedStates){let T=jn(!1,x.expandedStates,-1);if(x.break){o.push({ind:y,mode:Ii,doc:T});break}else for(let S=1;S<x.expandedStates.length+1;S++)if(S>=x.expandedStates.length){o.push({ind:y,mode:Ii,doc:T});break}else{let B=x.expandedStates[S],F={ind:y,mode:pa,doc:B};if(Jg(F,o,_,b,r)){o.push(F);break}}}else o.push({ind:y,mode:Ii,doc:x.contents});break}}x.id&&(r[x.id]=jn(!1,o,-1).mode);break;case la:{let C=n-s,_=x[KC]??0,{parts:b}=x,T=b.length-_;if(T===0)break;let S=b[_+0],B=b[_+1],F={ind:y,mode:pa,doc:S},P={ind:y,mode:Ii,doc:S},R=Jg(F,[],C,f.length>0,r,!0);if(T===1){R?o.push(F):o.push(P);break}let L={ind:y,mode:pa,doc:B},z={ind:y,mode:Ii,doc:B};if(T===2){R?o.push(L,F):o.push(z,P);break}let ne=b[_+2],U={ind:y,mode:g,doc:{...x,[KC]:_+2}};Jg({ind:y,mode:pa,doc:[S,B,ne]},[],C,f.length>0,r,!0)?o.push(U,L,F):R?o.push(U,z,F):o.push(U,z,P);break}case Zi:case Ga:{let C=x.groupId?r[x.groupId]:g;if(C===Ii){let _=x.type===Zi?x.breakContents:x.negate?x.contents:Vg(x.contents);_&&o.push({ind:y,mode:g,doc:_})}if(C===pa){let _=x.type===Zi?x.flatContents:x.negate?Vg(x.contents):x.contents;_&&o.push({ind:y,mode:g,doc:_})}break}case Xa:f.push({ind:y,mode:g,doc:x.contents});break;case Qa:f.length>0&&o.push({ind:y,mode:g,doc:zC});break;case Wn:switch(g){case pa:if(x.hard)l=!0;else{x.soft||(p.push(" "),s+=1);break}case Ii:if(f.length>0){o.push({ind:y,mode:g,doc:x},...f.reverse()),f.length=0;break}x.literal?y.root?(p.push(i,y.root.value),s=y.root.length):(p.push(i),s=0):(s-=XC(p),p.push(i+y.value),s=y.length);break}break;case ca:o.push({ind:y,mode:g,doc:x.contents});break;case bs:break;default:throw new uc(x)}o.length===0&&f.length>0&&(o.push(...f.reverse()),f.length=0)}let d=p.indexOf(cc);if(d!==-1){let y=p.indexOf(cc,d+1);if(y===-1)return{formatted:p.filter(_=>_!==cc).join("")};let g=p.slice(0,d).join(""),x=p.slice(d+1,y).join(""),C=p.slice(y+1).join("");return{formatted:g+x+C,cursorNodeStart:g.length,cursorNodeText:x}}return{formatted:p.join("")}}function ZU(e,t,r=0){let n=0;for(let i=r;i<e.length;++i)e[i]===" "?n=n+t-n%t:n++;return n}var QC=ZU,Ju,YC,Wg,eV=class{constructor(t){nU(this,Ju),this.stack=[t]}get key(){let{stack:t,siblings:r}=this;return jn(!1,t,r===null?-2:-4)??null}get index(){return this.siblings===null?null:jn(!1,this.stack,-2)}get node(){return jn(!1,this.stack,-1)}get parent(){return this.getNode(1)}get grandparent(){return this.getNode(2)}get isInArray(){return this.siblings!==null}get siblings(){let{stack:t}=this,r=jn(!1,t,-3);return Array.isArray(r)?r:null}get next(){let{siblings:t}=this;return t===null?null:t[this.index+1]}get previous(){let{siblings:t}=this;return t===null?null:t[this.index-1]}get isFirst(){return this.index===0}get isLast(){let{siblings:t,index:r}=this;return t!==null&&r===t.length-1}get isRoot(){return this.stack.length===1}get root(){return this.stack[0]}get ancestors(){return[...vd(this,Ju,Wg).call(this)]}getName(){let{stack:t}=this,{length:r}=t;return r>1?jn(!1,t,-2):null}getValue(){return jn(!1,this.stack,-1)}getNode(t=0){let r=vd(this,Ju,YC).call(this,t);return r===-1?null:this.stack[r]}getParentNode(t=0){return this.getNode(t+1)}call(t,...r){let{stack:n}=this,{length:i}=n,s=jn(!1,n,-1);for(let o of r)s=s[o],n.push(o,s);try{return t(this)}finally{n.length=i}}callParent(t,r=0){let n=vd(this,Ju,YC).call(this,r+1),i=this.stack.splice(n+1);try{return t(this)}finally{this.stack.push(...i)}}each(t,...r){let{stack:n}=this,{length:i}=n,s=jn(!1,n,-1);for(let o of r)s=s[o],n.push(o,s);try{for(let o=0;o<s.length;++o)n.push(o,s[o]),t(this,o,s),n.length-=2}finally{n.length=i}}map(t,...r){let n=[];return this.each((i,s,o)=>{n[s]=t(i,s,o)},...r),n}match(...t){let r=this.stack.length-1,n=null,i=this.stack[r--];for(let s of t){if(i===void 0)return!1;let o=null;if(typeof n=="number"&&(o=n,n=this.stack[r--],i=this.stack[r--]),s&&!s(i,n,o))return!1;n=this.stack[r--],i=this.stack[r--]}return!0}findAncestor(t){for(let r of vd(this,Ju,Wg).call(this))if(t(r))return r}hasAncestor(t){for(let r of vd(this,Ju,Wg).call(this))if(t(r))return!0;return!1}};Ju=new WeakSet,YC=function(e){let{stack:t}=this;for(let r=t.length-1;r>=0;r-=2)if(!Array.isArray(t[r])&&--e<0)return r;return-1},Wg=function*(){let{stack:e}=this;for(let t=e.length-3;t>=0;t-=2){let r=e[t];Array.isArray(r)||(yield r)}};var tV=eV,zS=new Proxy(()=>{},{get:()=>zS}),ZC=zS;function rV(e){return e!==null&&typeof e=="object"}var nV=rV;function*Kg(e,t){let{getVisitorKeys:r,filter:n=()=>!0}=t,i=s=>nV(s)&&n(s);for(let s of r(e)){let o=e[s];if(Array.isArray(o))for(let p of o)i(p)&&(yield p);else i(o)&&(yield o)}}function*iV(e,t){let r=[e];for(let n=0;n<r.length;n++){let i=r[n];for(let s of Kg(i,t))yield s,r.push(s)}}function sV(e,t){return Kg(e,t).next().done}function Cd(e){return(t,r,n)=>{let i=!!(n!=null&&n.backwards);if(r===!1)return!1;let{length:s}=t,o=r;for(;o>=0&&o<s;){let p=t.charAt(o);if(e instanceof RegExp){if(!e.test(p))return o}else if(!e.includes(p))return o;i?o--:o++}return o===-1||o===s?o:!1}}var aV=Cd(/\s/u),jo=Cd(" "),WS=Cd(",; "),KS=Cd(/[^\n\r]/u);function oV(e,t,r){let n=!!(r!=null&&r.backwards);if(t===!1)return!1;let i=e.charAt(t);if(n){if(e.charAt(t-1)==="\r"&&i===` `)return t-2;if(i===` `||i==="\r"||i==="\u2028"||i==="\u2029")return t-1}else{if(i==="\r"&&e.charAt(t+1)===` `)return t+2;if(i===` `||i==="\r"||i==="\u2028"||i==="\u2029")return t+1}return t}var zu=oV;function uV(e,t,r={}){let n=jo(e,r.backwards?t-1:t,r),i=zu(e,n,r);return n!==i}var Uo=uV;function lV(e){return Array.isArray(e)&&e.length>0}var cV=lV,GS=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),pV=e=>Object.keys(e).filter(t=>!GS.has(t));function dV(e){return e?t=>e(t,GS):pV}var Gg=dV;function hV(e){let t=e.type||e.kind||"(unknown type)",r=String(e.name||e.id&&(typeof e.id=="object"?e.id.name:e.id)||e.key&&(typeof e.key=="object"?e.key.name:e.key)||e.value&&(typeof e.value=="object"?"":String(e.value))||e.operator||"");return r.length>20&&(r=r.slice(0,19)+"…"),t+(r?" "+r:"")}function e3(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=hV(e)}function pc(e,t){t.leading=!0,t.trailing=!1,e3(e,t)}function Wu(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),e3(e,t)}function dc(e,t){t.leading=!1,t.trailing=!0,e3(e,t)}var t3=new WeakMap;function r3(e,t){if(t3.has(e))return t3.get(e);let{printer:{getCommentChildNodes:r,canAttachComment:n,getVisitorKeys:i},locStart:s,locEnd:o}=t;if(!n)return[];let p=((r==null?void 0:r(e,t))??[...Kg(e,{getVisitorKeys:Gg(i)})]).flatMap(l=>n(l)?[l]:r3(l,t));return p.sort((l,f)=>s(l)-s(f)||o(l)-o(f)),t3.set(e,p),p}function XS(e,t,r,n){let{locStart:i,locEnd:s}=r,o=i(t),p=s(t),l=r3(e,r),f,u,d=0,y=l.length;for(;d<y;){let g=d+y>>1,x=l[g],C=i(x),_=s(x);if(C<=o&&p<=_)return XS(x,t,r,x);if(_<=o){f=x,d=g+1;continue}if(p<=C){u=x,y=g;continue}throw new Error("Comment location overlaps with node location")}if((n==null?void 0:n.type)==="TemplateLiteral"){let{quasis:g}=n,x=i3(g,t,r);f&&i3(g,f,r)!==x&&(f=null),u&&i3(g,u,r)!==x&&(u=null)}return{enclosingNode:n,precedingNode:f,followingNode:u}}var n3=()=>!1;function fV(e,t){let{comments:r}=e;if(delete e.comments,!cV(r)||!t.printer.canAttachComment)return;let n=[],{locStart:i,locEnd:s,printer:{experimentalFeatures:{avoidAstMutation:o=!1}={},handleComments:p={}},originalText:l}=t,{ownLine:f=n3,endOfLine:u=n3,remaining:d=n3}=p,y=r.map((g,x)=>({...XS(e,g,t),comment:g,text:l,options:t,ast:e,isLastComment:r.length-1===x}));for(let[g,x]of y.entries()){let{comment:C,precedingNode:_,enclosingNode:b,followingNode:T,text:S,options:B,ast:F,isLastComment:P}=x;if(B.parser==="json"||B.parser==="json5"||B.parser==="jsonc"||B.parser==="__js_expression"||B.parser==="__ts_expression"||B.parser==="__vue_expression"||B.parser==="__vue_ts_expression"){if(i(C)-i(F)<=0){pc(F,C);continue}if(s(C)-s(F)>=0){dc(F,C);continue}}let R;if(o?R=[x]:(C.enclosingNode=b,C.precedingNode=_,C.followingNode=T,R=[C,S,B,F,P]),mV(S,B,y,g))C.placement="ownLine",f(...R)||(T?pc(T,C):_?dc(_,C):Wu(b||F,C));else if(yV(S,B,y,g))C.placement="endOfLine",u(...R)||(_?dc(_,C):T?pc(T,C):Wu(b||F,C));else if(C.placement="remaining",!d(...R))if(_&&T){let L=n.length;L>0&&n[L-1].followingNode!==T&&YS(n,B),n.push(x)}else _?dc(_,C):T?pc(T,C):Wu(b||F,C)}if(YS(n,t),!o)for(let g of r)delete g.precedingNode,delete g.enclosingNode,delete g.followingNode}var QS=e=>!/[\S\n\u2028\u2029]/u.test(e);function mV(e,t,r,n){let{comment:i,precedingNode:s}=r[n],{locStart:o,locEnd:p}=t,l=o(i);if(s)for(let f=n-1;f>=0;f--){let{comment:u,precedingNode:d}=r[f];if(d!==s||!QS(e.slice(p(u),l)))break;l=o(u)}return Uo(e,l,{backwards:!0})}function yV(e,t,r,n){let{comment:i,followingNode:s}=r[n],{locStart:o,locEnd:p}=t,l=p(i);if(s)for(let f=n+1;f<r.length;f++){let{comment:u,followingNode:d}=r[f];if(d!==s||!QS(e.slice(l,o(u))))break;l=p(u)}return Uo(e,l)}function YS(e,t){var r,n;let i=e.length;if(i===0)return;let{precedingNode:s,followingNode:o}=e[0],p=t.locStart(o),l;for(l=i;l>0;--l){let{comment:f,precedingNode:u,followingNode:d}=e[l-1];ZC.strictEqual(u,s),ZC.strictEqual(d,o);let y=t.originalText.slice(t.locEnd(f),p);if(((n=(r=t.printer).isGap)==null?void 0:n.call(r,y,t))??/^[\s(]*$/u.test(y))p=t.locStart(f);else break}for(let[f,{comment:u}]of e.entries())f<l?dc(s,u):pc(o,u);for(let f of[s,o])f.comments&&f.comments.length>1&&f.comments.sort((u,d)=>t.locStart(u)-t.locStart(d));e.length=0}function i3(e,t,r){let n=r.locStart(t)-1;for(let i=1;i<e.length;++i)if(n<r.locStart(e[i]))return i-1;return 0}function gV(e,t){let r=t-1;r=jo(e,r,{backwards:!0}),r=zu(e,r,{backwards:!0}),r=jo(e,r,{backwards:!0});let n=zu(e,r,{backwards:!0});return r!==n}var s3=gV;function ZS(e,t){let r=e.node;return r.printed=!0,t.printer.printComment(e,t)}function vV(e,t){var r;let n=e.node,i=[ZS(e,t)],{printer:s,originalText:o,locStart:p,locEnd:l}=t;if((r=s.isBlockComment)!=null&&r.call(s,n)){let u=Uo(o,l(n))?Uo(o,p(n),{backwards:!0})?Vu:jS:" ";i.push(u)}else i.push(Vu);let f=zu(o,jo(o,l(n)));return f!==!1&&Uo(o,f)&&i.push(Vu),i}function xV(e,t,r){var n;let i=e.node,s=ZS(e,t),{printer:o,originalText:p,locStart:l}=t,f=(n=o.isBlockComment)==null?void 0:n.call(o,i);if(r!=null&&r.hasLineSuffix&&!(r!=null&&r.isBlock)||Uo(p,l(i),{backwards:!0})){let u=s3(p,l(i));return{doc:JC([Vu,u?Vu:"",s]),isBlock:f,hasLineSuffix:!0}}return!f||r!=null&&r.hasLineSuffix?{doc:[JC([" ",s]),Hg],isBlock:f,hasLineSuffix:!0}:{doc:[" ",s],isBlock:f,hasLineSuffix:!1}}function DV(e,t){let r=e.node;if(!r)return{};let n=t[Symbol.for("printedComments")];if((r.comments||[]).filter(p=>!n.has(p)).length===0)return{leading:"",trailing:""};let i=[],s=[],o;return e.each(()=>{let p=e.node;if(n!=null&&n.has(p))return;let{leading:l,trailing:f}=p;l?i.push(vV(e,t)):f&&(o=xV(e,t,o),s.push(o.doc))},"comments"),{leading:i,trailing:s}}function bV(e,t,r){let{leading:n,trailing:i}=DV(e,r);return!n&&!i?t:Ug(t,s=>[n,s,i])}function CV(e){let{[Symbol.for("comments")]:t,[Symbol.for("printedComments")]:r}=e;for(let n of t){if(!n.printed&&!r.has(n))throw new Error('Comment "'+n.value.trim()+'" was not printed. Please report this error!');delete n.printed}}var e6=class extends Error{constructor(){super(...arguments);rn(this,"name","ConfigError")}},t6=class extends Error{constructor(){super(...arguments);rn(this,"name","UndefinedParserError")}},_V={cursorOffset:{category:"Special",type:"int",default:-1,range:{start:-1,end:1/0,step:1},description:"Print (to stderr) where a cursor at the given position would move to after formatting.",cliCategory:"Editor"},endOfLine:{category:"Global",type:"choice",default:"lf",description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:`Maintain existing (mixed values within one file are normalised by looking at what's used after the first line)`}]},filepath:{category:"Special",type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepat