var Bt=Object.defineProperty;var bt=(e,u,t)=>u in e?Bt(e,u,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[u]=t;var fe=(e,u,t)=>(bt(e,typeof u!="symbol"?u+"":u,t),t);var At=Object.create,Ve=Object.defineProperty,wt=Object.getOwnPropertyDescriptor,kt=Object.getOwnPropertyNames,St=Object.getPrototypeOf,xt=Object.prototype.hasOwnProperty,Tu=e=>{throw TypeError(e)},Nt=(e,u)=>()=>(u||e((u={exports:{}}).exports,u),u.exports),ze=(e,u)=>{for(var t in u)Ve(e,t,{get:u[t],enumerable:!0})},Ot=(e,u,t,r)=>{if(u&&typeof u=="object"||typeof u=="function")for(let n of kt(u))!xt.call(e,n)&&n!==t&&Ve(e,n,{get:()=>u[n],enumerable:!(r=wt(u,n))||r.enumerable});return e},_t=(e,u,t)=>(t=e!=null?At(St(e)):{},Ot(u||!e||!e.__esModule?Ve(t,"default",{value:e,enumerable:!0}):t,e)),jt=(e,u,t)=>u.has(e)||Tu("Cannot "+t),Tt=(e,u,t)=>u.has(e)?Tu("Cannot add the same private member more than once"):u instanceof WeakSet?u.add(e):u.set(e,t),De=(e,u,t)=>(jt(e,u,"access private method"),t),It=Nt(e=>{Object.defineProperty(e,"__esModule",{value:!0});function u(){return new Proxy({},{get:()=>D=>D})}var t=/\r\n|[\n\r\u2028\u2029]/;function r(D,i,o){let a=Object.assign({column:0,line:-1},D.start),s=Object.assign({},a,D.end),{linesAbove:c=2,linesBelow:F=3}=o||{},l=a.line,d=a.column,f=s.line,h=s.column,p=Math.max(l-(c+1),0),C=Math.min(i.length,f+F);l===-1&&(p=0),f===-1&&(C=i.length);let E=f-l,m={};if(E)for(let y=0;y<=E;y++){let g=y+l;if(!d)m[g]=!0;else if(y===0){let B=i[g-1].length;m[g]=[d,B-d+1]}else if(y===E)m[g]=[0,h];else{let B=i[g-y].length;m[g]=[0,B]}}else d===h?d?m[l]=[d,0]:m[l]=!0:m[l]=[d,h-d];return{start:p,end:C,markerLines:m}}function n(D,i,o={}){let a=u(),s=D.split(t),{start:c,end:F,markerLines:l}=r(i,s,o),d=i.start&&typeof i.start.column=="number",f=String(F).length,h=D.split(t,F).slice(c,F).map((p,C)=>{let E=c+1+C,m=` ${` ${E}`.slice(-f)} |`,y=l[E],g=!l[E+1];if(y){let B="";if(Array.isArray(y)){let W=p.slice(0,Math.max(y[0]-1,0)).replace(/[^\t]/g," "),ce=y[1]||1;B=[`
 `,a.gutter(m.replace(/\d/g," "))," ",W,a.marker("^").repeat(ce)].join(""),g&&o.message&&(B+=" "+a.message(o.message))}return[a.marker(">"),a.gutter(m),p.length>0?` ${p}`:"",B].join("")}else return` ${a.gutter(m)}${p.length>0?` ${p}`:""}`}).join(`
`);return o.message&&!d&&(h=`${" ".repeat(f+1)}${o.message}
${h}`),h}e.codeFrameColumns=n}),Iu={};ze(Iu,{__debug:()=>KD,check:()=>GD,doc:()=>mt,format:()=>yt,formatWithCursor:()=>gt,getSupportInfo:()=>HD,util:()=>Et,version:()=>yD});var Pt=(e,u,t,r)=>{if(!(e&&u==null))return u.replaceAll?u.replaceAll(t,r):t.global?u.replace(t,r):u.split(t).join(r)},Ee=Pt,$t=class{diff(e,u,t={}){let r;typeof t=="function"?(r=t,t={}):"callback"in t&&(r=t.callback);let n=this.castInput(e,t),D=this.castInput(u,t),i=this.removeEmpty(this.tokenize(n,t)),o=this.removeEmpty(this.tokenize(D,t));return this.diffWithOptionsObj(i,o,t,r)}diffWithOptionsObj(e,u,t,r){var n;let D=C=>{if(C=this.postProcess(C,t),r){setTimeout(function(){r(C)},0);return}else return C},i=u.length,o=e.length,a=1,s=i+o;t.maxEditLength!=null&&(s=Math.min(s,t.maxEditLength));let c=(n=t.timeout)!==null&&n!==void 0?n:1/0,F=Date.now()+c,l=[{oldPos:-1,lastComponent:void 0}],d=this.extractCommon(l[0],u,e,0,t);if(l[0].oldPos+1>=o&&d+1>=i)return D(this.buildValues(l[0].lastComponent,u,e));let f=-1/0,h=1/0,p=()=>{for(let C=Math.max(f,-a);C<=Math.min(h,a);C+=2){let E,m=l[C-1],y=l[C+1];m&&(l[C-1]=void 0);let g=!1;if(y){let W=y.oldPos-C;g=y&&0<=W&&W<i}let B=m&&m.oldPos+1<o;if(!g&&!B){l[C]=void 0;continue}if(!B||g&&m.oldPos<y.oldPos?E=this.addToPath(y,!0,!1,0,t):E=this.addToPath(m,!1,!0,1,t),d=this.extractCommon(E,u,e,C,t),E.oldPos+1>=o&&d+1>=i)return D(this.buildValues(E.lastComponent,u,e))||!0;l[C]=E,E.oldPos+1>=o&&(h=Math.min(h,C-1)),d+1>=i&&(f=Math.max(f,C+1))}a++};if(r)(function C(){setTimeout(function(){if(a>s||Date.now()>F)return r(void 0);p()||C()},0)})();else for(;a<=s&&Date.now()<=F;){let C=p();if(C)return C}}addToPath(e,u,t,r,n){let D=e.lastComponent;return D&&!n.oneChangePerToken&&D.added===u&&D.removed===t?{oldPos:e.oldPos+r,lastComponent:{count:D.count+1,added:u,removed:t,previousComponent:D.previousComponent}}:{oldPos:e.oldPos+r,lastComponent:{count:1,added:u,removed:t,previousComponent:D}}}extractCommon(e,u,t,r,n){let D=u.length,i=t.length,o=e.oldPos,a=o-r,s=0;for(;a+1<D&&o+1<i&&this.equals(t[o+1],u[a+1],n);)a++,o++,s++,n.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return s&&!n.oneChangePerToken&&(e.lastComponent={count:s,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=o,a}equals(e,u,t){return t.comparator?t.comparator(e,u):e===u||!!t.ignoreCase&&e.toLowerCase()===u.toLowerCase()}removeEmpty(e){let u=[];for(let t=0;t<e.length;t++)e[t]&&u.push(e[t]);return u}castInput(e,u){return e}tokenize(e,u){return Array.from(e)}join(e){return e.join("")}postProcess(e,u){return e}get useLongestToken(){return!1}buildValues(e,u,t){let r=[],n;for(;e;)r.push(e),n=e.previousComponent,delete e.previousComponent,e=n;r.reverse();let D=r.length,i=0,o=0,a=0;for(;i<D;i++){let s=r[i];if(s.removed)s.value=this.join(t.slice(a,a+s.count)),a+=s.count;else{if(!s.added&&this.useLongestToken){let c=u.slice(o,o+s.count);c=c.map(function(F,l){let d=t[a+l];return d.length>F.length?d:F}),s.value=this.join(c)}else s.value=this.join(u.slice(o,o+s.count));o+=s.count,s.added||(a+=s.count)}}return r}},Lt=class extends $t{tokenize(e){return e.slice()}join(e){return e}removeEmpty(e){return e}},Rt=new Lt;function Mt(e,u,t){return Rt.diff(e,u,t)}function Wt(e){let u=e.indexOf("\r");return u!==-1?e.charAt(u+1)===`
`?"crlf":"cr":"lf"}function qe(e){switch(e){case"cr":return"\r";case"crlf":return`\r
`;default:return`
`}}function Pu(e,u){let t;switch(u){case`
`:t=/\n/gu;break;case"\r":t=/\r/gu;break;case`\r
`:t=/\r\n/gu;break;default:throw new Error(`Unexpected "eol" ${JSON.stringify(u)}.`)}let r=e.match(t);return r?r.length:0}function Vt(e){return Ee(!1,e,/\r\n?/gu,`
`)}var Q="string",T="array",q="cursor",I="indent",P="align",$="trim",w="group",O="fill",k="if-break",L="indent-if-break",R="line-suffix",M="line-suffix-boundary",b="line",_="label",S="break-parent",$u=new Set([q,I,P,$,w,O,k,L,R,M,b,_,S]),zt=(e,u,t)=>{if(!(e&&u==null))return Array.isArray(u)||typeof u=="string"?u[t<0?u.length+t:t]:u.at(t)},v=zt;function qt(e){let u=e.length;for(;u>0&&(e[u-1]==="\r"||e[u-1]===`
`);)u--;return u<e.length?e.slice(0,u):e}function Ut(e){if(typeof e=="string")return Q;if(Array.isArray(e))return T;if(!e)return;let{type:u}=e;if($u.has(u))return u}var X=Ut,Jt=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function Gt(e){let u=e===null?"null":typeof e;if(u!=="string"&&u!=="object")return`Unexpected doc '${u}', 
Expected it to be 'string' or 'object'.`;if(X(e))throw new Error("doc is valid.");let t=Object.prototype.toString.call(e);if(t!=="[object Object]")return`Unexpected doc '${t}'.`;let r=Jt([...$u].map(n=>`'${n}'`));return`Unexpected doc.type '${e.type}'.
Expected it to be ${r}.`}var Ht=class extends Error{constructor(u){super(Gt(u));fe(this,"name","InvalidDocError");this.doc=u}},te=Ht,nu={};function Kt(e,u,t,r){let n=[e];for(;n.length>0;){let D=n.pop();if(D===nu){t(n.pop());continue}t&&n.push(D,nu);let i=X(D);if(!i)throw new te(D);if((u==null?void 0:u(D))!==!1)switch(i){case T:case O:{let o=i===T?D:D.parts;for(let a=o.length,s=a-1;s>=0;--s)n.push(o[s]);break}case k:n.push(D.flatContents,D.breakContents);break;case w:if(r&&D.expandedStates)for(let o=D.expandedStates.length,a=o-1;a>=0;--a)n.push(D.expandedStates[a]);else n.push(D.contents);break;case P:case I:case L:case _:case R:n.push(D.contents);break;case Q:case q:case $:case M:case b:case S:break;default:throw new te(D)}}}var Ue=Kt;function ge(e,u){if(typeof e=="string")return u(e);let t=new Map;return r(e);function r(D){if(t.has(D))return t.get(D);let i=n(D);return t.set(D,i),i}function n(D){switch(X(D)){case T:return u(D.map(r));case O:return u({...D,parts:D.parts.map(r)});case k:return u({...D,breakContents:r(D.breakContents),flatContents:r(D.flatContents)});case w:{let{expandedStates:i,contents:o}=D;return i?(i=i.map(r),o=i[0]):o=r(o),u({...D,contents:o,expandedStates:i})}case P:case I:case L:case _:case R:return u({...D,contents:r(D.contents)});case Q:case q:case $:case M:case b:case S:return u(D);default:throw new te(D)}}}function Je(e,u,t){let r=t,n=!1;function D(i){if(n)return!1;let o=u(i);o!==void 0&&(n=!0,r=o)}return Ue(e,D),r}function Yt(e){if(e.type===w&&e.break||e.type===b&&e.hard||e.type===S)return!0}function Zt(e){return Je(e,Yt,!1)}function Du(e){if(e.length>0){let u=v(!1,e,-1);!u.expandedStates&&!u.break&&(u.break="propagated")}return null}function Qt(e){let u=new Set,t=[];function r(D){if(D.type===S&&Du(t),D.type===w){if(t.push(D),u.has(D))return!1;u.add(D)}}function n(D){D.type===w&&t.pop().break&&Du(t)}Ue(e,r,n,!0)}function Xt(e){return e.type===b&&!e.hard?e.soft?"":" ":e.type===k?e.flatContents:e}function er(e){return ge(e,Xt)}function iu(e){for(e=[...e];e.length>=2&&v(!1,e,-2).type===b&&v(!1,e,-1).type===S;)e.length-=2;if(e.length>0){let u=ie(v(!1,e,-1));e[e.length-1]=u}return e}function ie(e){switch(X(e)){case I:case L:case w:case R:case _:{let u=ie(e.contents);return{...e,contents:u}}case k:return{...e,breakContents:ie(e.breakContents),flatContents:ie(e.flatContents)};case O:return{...e,parts:iu(e.parts)};case T:return iu(e);case Q:return qt(e);case P:case q:case $:case M:case b:case S:break;default:throw new te(e)}return e}function Lu(e){return ie(tr(e))}function ur(e){switch(X(e)){case O:if(e.parts.every(u=>u===""))return"";break;case w:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===w&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case P:case I:case L:case R:if(!e.contents)return"";break;case k:if(!e.flatContents&&!e.breakContents)return"";break;case T:{let u=[];for(let t of e){if(!t)continue;let[r,...n]=Array.isArray(t)?t:[t];typeof r=="string"&&typeof v(!1,u,-1)=="string"?u[u.length-1]+=r:u.push(r),u.push(...n)}return u.length===0?"":u.length===1?u[0]:u}case Q:case q:case $:case M:case b:case _:case S:break;default:throw new te(e)}return e}function tr(e){return ge(e,u=>ur(u))}function rr(e,u=Vu){return ge(e,t=>typeof t=="string"?zu(u,t.split(`
`)):t)}function nr(e){if(e.type===b)return!0}function Dr(e){return Je(e,nr,!1)}function pe(e,u){return e.type===_?{...e,contents:u(e.contents)}:u(e)}var ir=()=>{},or=ir;function me(e){return{type:I,contents:e}}function re(e,u){return{type:P,contents:u,n:e}}function Ru(e,u={}){return or(u.expandedStates),{type:w,id:u.id,contents:e,break:!!u.shouldBreak,expandedStates:u.expandedStates}}function ar(e){return re(Number.NEGATIVE_INFINITY,e)}function sr(e){return re({type:"root"},e)}function lr(e){return re(-1,e)}function cr(e,u){return Ru(e[0],{...u,expandedStates:e})}function fr(e){return{type:O,parts:e}}function dr(e,u="",t={}){return{type:k,breakContents:e,flatContents:u,groupId:t.groupId}}function Fr(e,u){return{type:L,contents:e,groupId:u.groupId,negate:u.negate}}function Te(e){return{type:R,contents:e}}var pr={type:M},ye={type:S},hr={type:$},Ge={type:b,hard:!0},Mu={type:b,hard:!0,literal:!0},Wu={type:b},Cr={type:b,soft:!0},Y=[Ge,ye],Vu=[Mu,ye],K={type:q};function zu(e,u){let t=[];for(let r=0;r<u.length;r++)r!==0&&t.push(e),t.push(u[r]);return t}function qu(e,u,t){let r=e;if(u>0){for(let n=0;n<Math.floor(u/t);++n)r=me(r);r=re(u%t,r),r=re(Number.NEGATIVE_INFINITY,r)}return r}function mr(e,u){return e?{type:_,label:e,contents:u}:u}function j(e){var u;if(!e)return"";if(Array.isArray(e)){let t=[];for(let r of e)if(Array.isArray(r))t.push(...j(r));else{let n=j(r);n!==""&&t.push(n)}return t}return e.type===k?{...e,breakContents:j(e.breakContents),flatContents:j(e.flatContents)}:e.type===w?{...e,contents:j(e.contents),expandedStates:(u=e.expandedStates)==null?void 0:u.map(j)}:e.type===O?{type:"fill",parts:e.parts.map(j)}:e.contents?{...e,contents:j(e.contents)}:e}function Er(e){let u=Object.create(null),t=new Set;return r(j(e));function r(D,i,o){var a,s;if(typeof D=="string")return JSON.stringify(D);if(Array.isArray(D)){let c=D.map(r).filter(Boolean);return c.length===1?c[0]:`[${c.join(", ")}]`}if(D.type===b){let c=((a=o==null?void 0:o[i+1])==null?void 0:a.type)===S;return D.literal?c?"literalline":"literallineWithoutBreakParent":D.hard?c?"hardline":"hardlineWithoutBreakParent":D.soft?"softline":"line"}if(D.type===S)return((s=o==null?void 0:o[i-1])==null?void 0:s.type)===b&&o[i-1].hard?void 0:"breakParent";if(D.type===$)return"trim";if(D.type===I)return"indent("+r(D.contents)+")";if(D.type===P)return D.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+r(D.contents)+")":D.n<0?"dedent("+r(D.contents)+")":D.n.type==="root"?"markAsRoot("+r(D.contents)+")":"align("+JSON.stringify(D.n)+", "+r(D.contents)+")";if(D.type===k)return"ifBreak("+r(D.breakContents)+(D.flatContents?", "+r(D.flatContents):"")+(D.groupId?(D.flatContents?"":', ""')+`, { groupId: ${n(D.groupId)} }`:"")+")";if(D.type===L){let c=[];D.negate&&c.push("negate: true"),D.groupId&&c.push(`groupId: ${n(D.groupId)}`);let F=c.length>0?`, { ${c.join(", ")} }`:"";return`indentIfBreak(${r(D.contents)}${F})`}if(D.type===w){let c=[];D.break&&D.break!=="propagated"&&c.push("shouldBreak: true"),D.id&&c.push(`id: ${n(D.id)}`);let F=c.length>0?`, { ${c.join(", ")} }`:"";return D.expandedStates?`conditionalGroup([${D.expandedStates.map(l=>r(l)).join(",")}]${F})`:`group(${r(D.contents)}${F})`}if(D.type===O)return`fill([${D.parts.map(c=>r(c)).join(", ")}])`;if(D.type===R)return"lineSuffix("+r(D.contents)+")";if(D.type===M)return"lineSuffixBoundary";if(D.type===_)return`label(${JSON.stringify(D.label)}, ${r(D.contents)})`;if(D.type===q)return"cursor";throw new Error("Unknown doc type "+D.type)}function n(D){if(typeof D!="symbol")return JSON.stringify(String(D));if(D in u)return u[D];let i=D.description||"symbol";for(let o=0;;o++){let a=i+(o>0?` #${o}`:"");if(!t.has(a))return t.add(a),u[D]=`Symbol.for(${JSON.stringify(a)})`}}}var gr=()=>/[#*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 yr(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function vr(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 Br=e=>!(yr(e)||vr(e)),br=/[^\x20-\x7F]/u;function Ar(e){if(!e)return 0;if(!br.test(e))return e.length;e=e.replace(gr(),"  ");let u=0;for(let t of e){let r=t.codePointAt(0);r<=31||r>=127&&r<=159||r>=768&&r<=879||(u+=Br(r)?1:2)}return u}var He=Ar,A=Symbol("MODE_BREAK"),x=Symbol("MODE_FLAT"),ee=Symbol("cursor"),Ie=Symbol("DOC_FILL_PRINTED_LENGTH");function Uu(){return{value:"",length:0,queue:[]}}function wr(e,u){return Pe(e,{type:"indent"},u)}function kr(e,u,t){return u===Number.NEGATIVE_INFINITY?e.root||Uu():u<0?Pe(e,{type:"dedent"},t):u?u.type==="root"?{...e,root:e}:Pe(e,{type:typeof u=="string"?"stringAlign":"numberAlign",n:u},t):e}function Pe(e,u,t){let r=u.type==="dedent"?e.queue.slice(0,-1):[...e.queue,u],n="",D=0,i=0,o=0;for(let f of r)switch(f.type){case"indent":c(),t.useTabs?a(1):s(t.tabWidth);break;case"stringAlign":c(),n+=f.n,D+=f.n.length;break;case"numberAlign":i+=1,o+=f.n;break;default:throw new Error(`Unexpected type '${f.type}'`)}return l(),{...e,value:n,length:D,queue:r};function a(f){n+="	".repeat(f),D+=t.tabWidth*f}function s(f){n+=" ".repeat(f),D+=f}function c(){t.useTabs?F():l()}function F(){i>0&&a(i),d()}function l(){o>0&&s(o),d()}function d(){i=0,o=0}}function $e(e){let u=0,t=0,r=e.length;e:for(;r--;){let n=e[r];if(n===ee){t++;continue}for(let D=n.length-1;D>=0;D--){let i=n[D];if(i===" "||i==="	")u++;else{e[r]=n.slice(0,D+1);break e}}}if(u>0||t>0)for(e.length=r+1;t-- >0;)e.push(ee);return u}function de(e,u,t,r,n,D){if(t===Number.POSITIVE_INFINITY)return!0;let i=u.length,o=[e],a=[];for(;t>=0;){if(o.length===0){if(i===0)return!0;o.push(u[--i]);continue}let{mode:s,doc:c}=o.pop(),F=X(c);switch(F){case Q:a.push(c),t-=He(c);break;case T:case O:{let l=F===T?c:c.parts,d=c[Ie]??0;for(let f=l.length-1;f>=d;f--)o.push({mode:s,doc:l[f]});break}case I:case P:case L:case _:o.push({mode:s,doc:c.contents});break;case $:t+=$e(a);break;case w:{if(D&&c.break)return!1;let l=c.break?A:s,d=c.expandedStates&&l===A?v(!1,c.expandedStates,-1):c.contents;o.push({mode:l,doc:d});break}case k:{let l=(c.groupId?n[c.groupId]||x:s)===A?c.breakContents:c.flatContents;l&&o.push({mode:s,doc:l});break}case b:if(s===A||c.hard)return!0;c.soft||(a.push(" "),t--);break;case R:r=!0;break;case M:if(r)return!1;break}}return!1}function ve(e,u){let t={},r=u.printWidth,n=qe(u.endOfLine),D=0,i=[{ind:Uu(),mode:A,doc:e}],o=[],a=!1,s=[],c=0;for(Qt(e);i.length>0;){let{ind:l,mode:d,doc:f}=i.pop();switch(X(f)){case Q:{let h=n!==`
`?Ee(!1,f,`
`,n):f;o.push(h),i.length>0&&(D+=He(h));break}case T:for(let h=f.length-1;h>=0;h--)i.push({ind:l,mode:d,doc:f[h]});break;case q:if(c>=2)throw new Error("There are too many 'cursor' in doc.");o.push(ee),c++;break;case I:i.push({ind:wr(l,u),mode:d,doc:f.contents});break;case P:i.push({ind:kr(l,f.n,u),mode:d,doc:f.contents});break;case $:D-=$e(o);break;case w:switch(d){case x:if(!a){i.push({ind:l,mode:f.break?A:x,doc:f.contents});break}case A:{a=!1;let h={ind:l,mode:x,doc:f.contents},p=r-D,C=s.length>0;if(!f.break&&de(h,i,p,C,t))i.push(h);else if(f.expandedStates){let E=v(!1,f.expandedStates,-1);if(f.break){i.push({ind:l,mode:A,doc:E});break}else for(let m=1;m<f.expandedStates.length+1;m++)if(m>=f.expandedStates.length){i.push({ind:l,mode:A,doc:E});break}else{let y=f.expandedStates[m],g={ind:l,mode:x,doc:y};if(de(g,i,p,C,t)){i.push(g);break}}}else i.push({ind:l,mode:A,doc:f.contents});break}}f.id&&(t[f.id]=v(!1,i,-1).mode);break;case O:{let h=r-D,p=f[Ie]??0,{parts:C}=f,E=C.length-p;if(E===0)break;let m=C[p+0],y=C[p+1],g={ind:l,mode:x,doc:m},B={ind:l,mode:A,doc:m},W=de(g,[],h,s.length>0,t,!0);if(E===1){W?i.push(g):i.push(B);break}let ce={ind:l,mode:x,doc:y},we={ind:l,mode:A,doc:y};if(E===2){W?i.push(ce,g):i.push(we,B);break}let vt=C[p+2],ke={ind:l,mode:d,doc:{...f,[Ie]:p+2}};de({ind:l,mode:x,doc:[m,y,vt]},[],h,s.length>0,t,!0)?i.push(ke,ce,g):W?i.push(ke,we,g):i.push(ke,we,B);break}case k:case L:{let h=f.groupId?t[f.groupId]:d;if(h===A){let p=f.type===k?f.breakContents:f.negate?f.contents:me(f.contents);p&&i.push({ind:l,mode:d,doc:p})}if(h===x){let p=f.type===k?f.flatContents:f.negate?me(f.contents):f.contents;p&&i.push({ind:l,mode:d,doc:p})}break}case R:s.push({ind:l,mode:d,doc:f.contents});break;case M:s.length>0&&i.push({ind:l,mode:d,doc:Ge});break;case b:switch(d){case x:if(f.hard)a=!0;else{f.soft||(o.push(" "),D+=1);break}case A:if(s.length>0){i.push({ind:l,mode:d,doc:f},...s.reverse()),s.length=0;break}f.literal?l.root?(o.push(n,l.root.value),D=l.root.length):(o.push(n),D=0):(D-=$e(o),o.push(n+l.value),D=l.length);break}break;case _:i.push({ind:l,mode:d,doc:f.contents});break;case S:break;default:throw new te(f)}i.length===0&&s.length>0&&(i.push(...s.reverse()),s.length=0)}let F=o.indexOf(ee);if(F!==-1){let l=o.indexOf(ee,F+1);if(l===-1)return{formatted:o.filter(p=>p!==ee).join("")};let d=o.slice(0,F).join(""),f=o.slice(F+1,l).join(""),h=o.slice(l+1).join("");return{formatted:d+f+h,cursorNodeStart:d.length,cursorNodeText:f}}return{formatted:o.join("")}}function Sr(e,u,t=0){let r=0;for(let n=t;n<e.length;++n)e[n]==="	"?r=r+u-r%u:r++;return r}var Ke=Sr,J,Le,he,xr=class{constructor(e){Tt(this,J),this.stack=[e]}get key(){let{stack:e,siblings:u}=this;return v(!1,e,u===null?-2:-4)??null}get index(){return this.siblings===null?null:v(!1,this.stack,-2)}get node(){return v(!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:e}=this,u=v(!1,e,-3);return Array.isArray(u)?u:null}get next(){let{siblings:e}=this;return e===null?null:e[this.index+1]}get previous(){let{siblings:e}=this;return e===null?null:e[this.index-1]}get isFirst(){return this.index===0}get isLast(){let{siblings:e,index:u}=this;return e!==null&&u===e.length-1}get isRoot(){return this.stack.length===1}get root(){return this.stack[0]}get ancestors(){return[...De(this,J,he).call(this)]}getName(){let{stack:e}=this,{length:u}=e;return u>1?v(!1,e,-2):null}getValue(){return v(!1,this.stack,-1)}getNode(e=0){let u=De(this,J,Le).call(this,e);return u===-1?null:this.stack[u]}getParentNode(e=0){return this.getNode(e+1)}call(e,...u){let{stack:t}=this,{length:r}=t,n=v(!1,t,-1);for(let D of u)n=n[D],t.push(D,n);try{return e(this)}finally{t.length=r}}callParent(e,u=0){let t=De(this,J,Le).call(this,u+1),r=this.stack.splice(t+1);try{return e(this)}finally{this.stack.push(...r)}}each(e,...u){let{stack:t}=this,{length:r}=t,n=v(!1,t,-1);for(let D of u)n=n[D],t.push(D,n);try{for(let D=0;D<n.length;++D)t.push(D,n[D]),e(this,D,n),t.length-=2}finally{t.length=r}}map(e,...u){let t=[];return this.each((r,n,D)=>{t[n]=e(r,n,D)},...u),t}match(...e){let u=this.stack.length-1,t=null,r=this.stack[u--];for(let n of e){if(r===void 0)return!1;let D=null;if(typeof t=="number"&&(D=t,t=this.stack[u--],r=this.stack[u--]),n&&!n(r,t,D))return!1;t=this.stack[u--],r=this.stack[u--]}return!0}findAncestor(e){for(let u of De(this,J,he).call(this))if(e(u))return u}hasAncestor(e){for(let u of De(this,J,he).call(this))if(e(u))return!0;return!1}};J=new WeakSet,Le=function(e){let{stack:u}=this;for(let t=u.length-1;t>=0;t-=2)if(!Array.isArray(u[t])&&--e<0)return t;return-1},he=function*(){let{stack:e}=this;for(let u=e.length-3;u>=0;u-=2){let t=e[u];Array.isArray(t)||(yield t)}};var Nr=xr,Ju=new Proxy(()=>{},{get:()=>Ju}),Re=Ju;function Or(e){return e!==null&&typeof e=="object"}var _r=Or;function*Be(e,u){let{getVisitorKeys:t,filter:r=()=>!0}=u,n=D=>_r(D)&&r(D);for(let D of t(e)){let i=e[D];if(Array.isArray(i))for(let o of i)n(o)&&(yield o);else n(i)&&(yield i)}}function*jr(e,u){let t=[e];for(let r=0;r<t.length;r++){let n=t[r];for(let D of Be(n,u))yield D,t.push(D)}}function Tr(e,u){return Be(e,u).next().done}function se(e){return(u,t,r)=>{let n=!!(r!=null&&r.backwards);if(t===!1)return!1;let{length:D}=u,i=t;for(;i>=0&&i<D;){let o=u.charAt(i);if(e instanceof RegExp){if(!e.test(o))return i}else if(!e.includes(o))return i;n?i--:i++}return i===-1||i===D?i:!1}}var Ir=se(/\s/u),z=se(" 	"),Gu=se(",; 	"),Hu=se(/[^\n\r]/u);function Pr(e,u,t){let r=!!(t!=null&&t.backwards);if(u===!1)return!1;let n=e.charAt(u);if(r){if(e.charAt(u-1)==="\r"&&n===`
`)return u-2;if(n===`
`||n==="\r"||n==="\u2028"||n==="\u2029")return u-1}else{if(n==="\r"&&e.charAt(u+1)===`
`)return u+2;if(n===`
`||n==="\r"||n==="\u2028"||n==="\u2029")return u+1}return u}var Z=Pr;function $r(e,u,t={}){let r=z(e,t.backwards?u-1:u,t),n=Z(e,r,t);return r!==n}var V=$r;function Lr(e){return Array.isArray(e)&&e.length>0}var Rr=Lr,Ku=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),Mr=e=>Object.keys(e).filter(u=>!Ku.has(u));function Wr(e){return e?u=>e(u,Ku):Mr}var be=Wr;function Vr(e){let u=e.type||e.kind||"(unknown type)",t=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 t.length>20&&(t=t.slice(0,19)+"…"),u+(t?" "+t:"")}function Ye(e,u){(e.comments??(e.comments=[])).push(u),u.printed=!1,u.nodeDescription=Vr(e)}function oe(e,u){u.leading=!0,u.trailing=!1,Ye(e,u)}function G(e,u,t){u.leading=!1,u.trailing=!1,t&&(u.marker=t),Ye(e,u)}function ae(e,u){u.leading=!1,u.trailing=!0,Ye(e,u)}var Se=new WeakMap;function Ze(e,u){if(Se.has(e))return Se.get(e);let{printer:{getCommentChildNodes:t,canAttachComment:r,getVisitorKeys:n},locStart:D,locEnd:i}=u;if(!r)return[];let o=((t==null?void 0:t(e,u))??[...Be(e,{getVisitorKeys:be(n)})]).flatMap(a=>r(a)?[a]:Ze(a,u));return o.sort((a,s)=>D(a)-D(s)||i(a)-i(s)),Se.set(e,o),o}function Yu(e,u,t,r){let{locStart:n,locEnd:D}=t,i=n(u),o=D(u),a=Ze(e,t),s,c,F=0,l=a.length;for(;F<l;){let d=F+l>>1,f=a[d],h=n(f),p=D(f);if(h<=i&&o<=p)return Yu(f,u,t,f);if(p<=i){s=f,F=d+1;continue}if(o<=h){c=f,l=d;continue}throw new Error("Comment location overlaps with node location")}if((r==null?void 0:r.type)==="TemplateLiteral"){let{quasis:d}=r,f=Ne(d,u,t);s&&Ne(d,s,t)!==f&&(s=null),c&&Ne(d,c,t)!==f&&(c=null)}return{enclosingNode:r,precedingNode:s,followingNode:c}}var xe=()=>!1;function zr(e,u){let{comments:t}=e;if(delete e.comments,!Rr(t)||!u.printer.canAttachComment)return;let r=[],{printer:{experimentalFeatures:{avoidAstMutation:n=!1}={},handleComments:D={}},originalText:i}=u,{ownLine:o=xe,endOfLine:a=xe,remaining:s=xe}=D,c=t.map((F,l)=>({...Yu(e,F,u),comment:F,text:i,options:u,ast:e,isLastComment:t.length-1===l}));for(let[F,l]of c.entries()){let{comment:d,precedingNode:f,enclosingNode:h,followingNode:p,text:C,options:E,ast:m,isLastComment:y}=l,g;if(n?g=[l]:(d.enclosingNode=h,d.precedingNode=f,d.followingNode=p,g=[d,C,E,m,y]),qr(C,E,c,F))d.placement="ownLine",o(...g)||(p?oe(p,d):f?ae(f,d):G(h||m,d));else if(Ur(C,E,c,F))d.placement="endOfLine",a(...g)||(f?ae(f,d):p?oe(p,d):G(h||m,d));else if(d.placement="remaining",!s(...g))if(f&&p){let B=r.length;B>0&&r[B-1].followingNode!==p&&ou(r,E),r.push(l)}else f?ae(f,d):p?oe(p,d):G(h||m,d)}if(ou(r,u),!n)for(let F of t)delete F.precedingNode,delete F.enclosingNode,delete F.followingNode}var Zu=e=>!/[\S\n\u2028\u2029]/u.test(e);function qr(e,u,t,r){let{comment:n,precedingNode:D}=t[r],{locStart:i,locEnd:o}=u,a=i(n);if(D)for(let s=r-1;s>=0;s--){let{comment:c,precedingNode:F}=t[s];if(F!==D||!Zu(e.slice(o(c),a)))break;a=i(c)}return V(e,a,{backwards:!0})}function Ur(e,u,t,r){let{comment:n,followingNode:D}=t[r],{locStart:i,locEnd:o}=u,a=o(n);if(D)for(let s=r+1;s<t.length;s++){let{comment:c,followingNode:F}=t[s];if(F!==D||!Zu(e.slice(a,i(c))))break;a=o(c)}return V(e,a)}function ou(e,u){var t,r;let n=e.length;if(n===0)return;let{precedingNode:D,followingNode:i}=e[0],o=u.locStart(i),a;for(a=n;a>0;--a){let{comment:s,precedingNode:c,followingNode:F}=e[a-1];Re.strictEqual(c,D),Re.strictEqual(F,i);let l=u.originalText.slice(u.locEnd(s),o);if(((r=(t=u.printer).isGap)==null?void 0:r.call(t,l,u))??/^[\s(]*$/u.test(l))o=u.locStart(s);else break}for(let[s,{comment:c}]of e.entries())s<a?ae(D,c):oe(i,c);for(let s of[D,i])s.comments&&s.comments.length>1&&s.comments.sort((c,F)=>u.locStart(c)-u.locStart(F));e.length=0}function Ne(e,u,t){let r=t.locStart(u)-1;for(let n=1;n<e.length;++n)if(r<t.locStart(e[n]))return n-1;return 0}function Jr(e,u){let t=u-1;t=z(e,t,{backwards:!0}),t=Z(e,t,{backwards:!0}),t=z(e,t,{backwards:!0});let r=Z(e,t,{backwards:!0});return t!==r}var Qe=Jr;function Qu(e,u){let t=e.node;return t.printed=!0,u.printer.printComment(e,u)}function Gr(e,u){var t;let r=e.node,n=[Qu(e,u)],{printer:D,originalText:i,locStart:o,locEnd:a}=u;if((t=D.isBlockComment)!=null&&t.call(D,r)){let c=V(i,a(r))?V(i,o(r),{backwards:!0})?Y:Wu:" ";n.push(c)}else n.push(Y);let s=Z(i,z(i,a(r)));return s!==!1&&V(i,s)&&n.push(Y),n}function Hr(e,u,t){var r;let n=e.node,D=Qu(e,u),{printer:i,originalText:o,locStart:a}=u,s=(r=i.isBlockComment)==null?void 0:r.call(i,n);if(t!=null&&t.hasLineSuffix&&!(t!=null&&t.isBlock)||V(o,a(n),{backwards:!0})){let c=Qe(o,a(n));return{doc:Te([Y,c?Y:"",D]),isBlock:s,hasLineSuffix:!0}}return!s||t!=null&&t.hasLineSuffix?{doc:[Te([" ",D]),ye],isBlock:s,hasLineSuffix:!0}:{doc:[" ",D],isBlock:s,hasLineSuffix:!1}}function Kr(e,u){let t=e.node;if(!t)return{};let r=u[Symbol.for("printedComments")];if((t.comments||[]).filter(o=>!r.has(o)).length===0)return{leading:"",trailing:""};let n=[],D=[],i;return e.each(()=>{let o=e.node;if(r!=null&&r.has(o))return;let{leading:a,trailing:s}=o;a?n.push(Gr(e,u)):s&&(i=Hr(e,u,i),D.push(i.doc))},"comments"),{leading:n,trailing:D}}function Yr(e,u,t){let{leading:r,trailing:n}=Kr(e,t);return!r&&!n?u:pe(u,D=>[r,D,n])}function Zr(e){let{[Symbol.for("comments")]:u,[Symbol.for("printedComments")]:t}=e;for(let r of u){if(!r.printed&&!t.has(r))throw new Error('Comment "'+r.value.trim()+'" was not printed. Please report this error!');delete r.printed}}var Xu=class extends Error{constructor(){super(...arguments);fe(this,"name","ConfigError")}},au=class extends Error{constructor(){super(...arguments);fe(this,"name","UndefinedParserError")}},Qr={checkIgnorePragma:{category:"Special",type:"boolean",default:!1,description:"Check whether the file's first docblock comment contains '@noprettier' or '@noformat' to determine if it should be formatted.",cliCategory:"Other"},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-filepath",cliCategory:"Other",cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{category:"Special",type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:"Other"},parser:{category:"Global",type:"choice",default:void 0,description:"Which parser to use.",exception:e=>typeof e=="string"||typeof e=="function",choices:[{value:"flow",description:"Flow"},{value:"babel",description:"JavaScript"},{value:"babel-flow",description:"Flow"},{value:"babel-ts",description:"TypeScript"},{value:"typescript",description:"TypeScript"},{value:"acorn",description:"JavaScript"},{value:"espree",description:"JavaScript"},{value:"meriyah",description:"JavaScript"},{value:"css",description:"CSS"},{value:"less",description:"Less"},{value:"scss",description:"SCSS"},{value:"json",description:"JSON"},{value:"json5",description:"JSON5"},{value:"jsonc",description:"JSON with Comments"},{value:"json-stringify",description:"JSON.stringify"},{value:"graphql",description:"GraphQL"},{value:"markdown",description:"Markdown"},{value:"mdx",description:"MDX"},{value:"vue",description:"Vue"},{value:"yaml",description:"YAML"},{value:"glimmer",description:"Ember / Handlebars"},{value:"html",description:"HTML"},{value:"angular",description:"Angular"},{value:"lwc",description:"Lightning Web Components"},{value:"mjml",description:"MJML"}]},plugins:{type:"path",array:!0,default:[{value:[]}],category:"Global",description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>typeof e=="string"||typeof e=="object",cliName:"plugin",cliCategory:"Config"},printWidth:{category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{category:"Special",type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:`Format code ending at a given character offset (exclusive).
The range will extend forwards to the end of the selected statement.`,cliCategory:"Editor"},rangeStart:{category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description:`Format code starting at a given character offset.
The range will extend backwards to the start of the first line containing the selected statement.`,cliCategory:"Editor"},requirePragma:{category:"Special",type:"boolean",default:!1,description:"Require either '@prettier' or '@format' to be present in the file's first docblock comment in order for it to be formatted.",cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};function et({plugins:e=[],showDeprecated:u=!1}={}){let t=e.flatMap(n=>n.languages??[]),r=[];for(let n of en(Object.assign({},...e.map(({options:D})=>D),Qr)))!u&&n.deprecated||(Array.isArray(n.choices)&&(u||(n.choices=n.choices.filter(D=>!D.deprecated)),n.name==="parser"&&(n.choices=[...n.choices,...Xr(n.choices,t,e)])),n.pluginDefaults=Object.fromEntries(e.filter(D=>{var i;return((i=D.defaultOptions)==null?void 0:i[n.name])!==void 0}).map(D=>[D.name,D.defaultOptions[n.name]])),r.push(n));return{languages:t,options:r}}function*Xr(e,u,t){let r=new Set(e.map(n=>n.value));for(let n of u)if(n.parsers){for(let D of n.parsers)if(!r.has(D)){r.add(D);let i=t.find(a=>a.parsers&&Object.prototype.hasOwnProperty.call(a.parsers,D)),o=n.name;i!=null&&i.name&&(o+=` (plugin: ${i.name})`),yield{value:D,description:o}}}}function en(e){let u=[];for(let[t,r]of Object.entries(e)){let n={name:t,...r};Array.isArray(n.default)&&(n.default=v(!1,n.default,-1).value),u.push(n)}return u}var un=(e,u)=>{if(!(e&&u==null))return u.toReversed||!Array.isArray(u)?u.toReversed():[...u].reverse()},tn=un,su,lu,cu,fu,du,rn=((su=globalThis.Deno)==null?void 0:su.build.os)==="windows"||((cu=(lu=globalThis.navigator)==null?void 0:lu.platform)==null?void 0:cu.startsWith("Win"))||((du=(fu=globalThis.process)==null?void 0:fu.platform)==null?void 0:du.startsWith("win"))||!1;function ut(e){if(e=e instanceof URL?e:new URL(e),e.protocol!=="file:")throw new TypeError(`URL must be a file URL: received "${e.protocol}"`);return e}function nn(e){return e=ut(e),decodeURIComponent(e.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function Dn(e){e=ut(e);let u=decodeURIComponent(e.pathname.replace(/\//g,"\\").replace(/%(?![0-9A-Fa-f]{2})/g,"%25")).replace(/^\\*([A-Za-z]:)(\\|$)/,"$1\\");return e.hostname!==""&&(u=`\\\\${e.hostname}${u}`),u}function on(e){return rn?Dn(e):nn(e)}var an=on,sn=e=>String(e).split(/[/\\]/u).pop();function Fu(e,u){if(!u)return;let t=sn(u).toLowerCase();return e.find(({filenames:r})=>r==null?void 0:r.some(n=>n.toLowerCase()===t))??e.find(({extensions:r})=>r==null?void 0:r.some(n=>t.endsWith(n)))}function ln(e,u){if(u)return e.find(({name:t})=>t.toLowerCase()===u)??e.find(({aliases:t})=>t==null?void 0:t.includes(u))??e.find(({extensions:t})=>t==null?void 0:t.includes(`.${u}`))}function pu(e,u){if(u){if(String(u).startsWith("file:"))try{u=an(u)}catch{return}if(typeof u=="string")return e.find(({isSupported:t})=>t==null?void 0:t({filepath:u}))}}function cn(e,u){let t=tn(!1,e.plugins).flatMap(n=>n.languages??[]),r=ln(t,u.language)??Fu(t,u.physicalFile)??Fu(t,u.file)??pu(t,u.physicalFile)??pu(t,u.file)??(u.physicalFile,void 0);return r==null?void 0:r.parsers[0]}var fn=cn,ue={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(e){if(e===null||typeof e!="object")return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(t=>ue.value(t)).join(", ")}]`;let u=Object.keys(e);return u.length===0?"{}":`{ ${u.map(t=>`${ue.key(t)}: ${ue.value(e[t])}`).join(", ")} }`},pair:({key:e,value:u})=>ue.value({[e]:u})},tt=new Proxy(String,{get:()=>tt}),N=tt,dn=(e,u,{descriptor:t})=>{let r=[`${N.yellow(typeof e=="string"?t.key(e):t.pair(e))} is deprecated`];return u&&r.push(`we now treat it as ${N.blue(typeof u=="string"?t.key(u):t.pair(u))}`),r.join("; ")+"."},rt=Symbol.for("vnopts.VALUE_NOT_EXIST"),Ce=Symbol.for("vnopts.VALUE_UNCHANGED"),hu=" ".repeat(2),Fn=(e,u,t)=>{let{text:r,list:n}=t.normalizeExpectedResult(t.schemas[e].expected(t)),D=[];return r&&D.push(Cu(e,u,r,t.descriptor)),n&&D.push([Cu(e,u,n.title,t.descriptor)].concat(n.values.map(i=>nt(i,t.loggerPrintWidth))).join(`
`)),Dt(D,t.loggerPrintWidth)};function Cu(e,u,t,r){return[`Invalid ${N.red(r.key(e))} value.`,`Expected ${N.blue(t)},`,`but received ${u===rt?N.gray("nothing"):N.red(r.value(u))}.`].join(" ")}function nt({text:e,list:u},t){let r=[];return e&&r.push(`- ${N.blue(e)}`),u&&r.push([`- ${N.blue(u.title)}:`].concat(u.values.map(n=>nt(n,t-hu.length).replace(/^|\n/g,`$&${hu}`))).join(`
`)),Dt(r,t)}function Dt(e,u){if(e.length===1)return e[0];let[t,r]=e,[n,D]=e.map(i=>i.split(`
`,1)[0].length);return n>u&&n>D?r:t}var Oe=[],mu=[];function pn(e,u){if(e===u)return 0;let t=e;e.length>u.length&&(e=u,u=t);let r=e.length,n=u.length;for(;r>0&&e.charCodeAt(~-r)===u.charCodeAt(~-n);)r--,n--;let D=0;for(;D<r&&e.charCodeAt(D)===u.charCodeAt(D);)D++;if(r-=D,n-=D,r===0)return n;let i,o,a,s,c=0,F=0;for(;c<r;)mu[c]=e.charCodeAt(D+c),Oe[c]=++c;for(;F<n;)for(i=u.charCodeAt(D+F),a=F++,o=F,c=0;c<r;c++)s=i===mu[c]?a:a+1,a=Oe[c],o=Oe[c]=a>o?s>o?o+1:s:s>a?a+1:s;return o}var it=(e,u,{descriptor:t,logger:r,schemas:n})=>{let D=[`Ignored unknown option ${N.yellow(t.pair({key:e,value:u}))}.`],i=Object.keys(n).sort().find(o=>pn(e,o)<3);i&&D.push(`Did you mean ${N.blue(t.key(i))}?`),r.warn(D.join(" "))},hn=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function Cn(e,u){let t=new e(u),r=Object.create(t);for(let n of hn)n in u&&(r[n]=mn(u[n],t,U.prototype[n].length));return r}var U=class{static create(e){return Cn(this,e)}constructor(e){this.name=e.name}default(e){}expected(e){return"nothing"}validate(e,u){return!1}deprecated(e,u){return!1}forward(e,u){}redirect(e,u){}overlap(e,u,t){return e}preprocess(e,u){return e}postprocess(e,u){return Ce}};function mn(e,u,t){return typeof e=="function"?(...r)=>e(...r.slice(0,t-1),u,...r.slice(t-1)):()=>e}var En=class extends U{constructor(e){super(e),this._sourceName=e.sourceName}expected(e){return e.schemas[this._sourceName].expected(e)}validate(e,u){return u.schemas[this._sourceName].validate(e,u)}redirect(e,u){return this._sourceName}},gn=class extends U{expected(){return"anything"}validate(){return!0}},yn=class extends U{constructor({valueSchema:e,name:u=e.name,...t}){super({...t,name:u}),this._valueSchema=e}expected(e){let{text:u,list:t}=e.normalizeExpectedResult(this._valueSchema.expected(e));return{text:u&&`an array of ${u}`,list:t&&{title:"an array of the following values",values:[{list:t}]}}}validate(e,u){if(!Array.isArray(e))return!1;let t=[];for(let r of e){let n=u.normalizeValidateResult(this._valueSchema.validate(r,u),r);n!==!0&&t.push(n.value)}return t.length===0?!0:{value:t}}deprecated(e,u){let t=[];for(let r of e){let n=u.normalizeDeprecatedResult(this._valueSchema.deprecated(r,u),r);n!==!1&&t.push(...n.map(({value:D})=>({value:[D]})))}return t}forward(e,u){let t=[];for(let r of e){let n=u.normalizeForwardResult(this._valueSchema.forward(r,u),r);t.push(...n.map(Eu))}return t}redirect(e,u){let t=[],r=[];for(let n of e){let D=u.normalizeRedirectResult(this._valueSchema.redirect(n,u),n);"remain"in D&&t.push(D.remain),r.push(...D.redirect.map(Eu))}return t.length===0?{redirect:r}:{redirect:r,remain:t}}overlap(e,u){return e.concat(u)}};function Eu({from:e,to:u}){return{from:[e],to:u}}var vn=class extends U{expected(){return"true or false"}validate(e){return typeof e=="boolean"}};function Bn(e,u){let t=Object.create(null);for(let r of e){let n=r[u];if(t[n])throw new Error(`Duplicate ${u} ${JSON.stringify(n)}`);t[n]=r}return t}function bn(e,u){let t=new Map;for(let r of e){let n=r[u];if(t.has(n))throw new Error(`Duplicate ${u} ${JSON.stringify(n)}`);t.set(n,r)}return t}function An(){let e=Object.create(null);return u=>{let t=JSON.stringify(u);return e[t]?!0:(e[t]=!0,!1)}}function wn(e,u){let t=[],r=[];for(let n of e)u(n)?t.push(n):r.push(n);return[t,r]}function kn(e){return e===Math.floor(e)}function Sn(e,u){if(e===u)return 0;let t=typeof e,r=typeof u,n=["undefined","object","boolean","number","string"];return t!==r?n.indexOf(t)-n.indexOf(r):t!=="string"?Number(e)-Number(u):e.localeCompare(u)}function xn(e){return(...u)=>{let t=e(...u);return typeof t=="string"?new Error(t):t}}function gu(e){return e===void 0?{}:e}function ot(e){if(typeof e=="string")return{text:e};let{text:u,list:t}=e;return Nn((u||t)!==void 0,"Unexpected `expected` result, there should be at least one field."),t?{text:u,list:{title:t.title,values:t.values.map(ot)}}:{text:u}}function yu(e,u){return e===!0?!0:e===!1?{value:u}:e}function vu(e,u,t=!1){return e===!1?!1:e===!0?t?!0:[{value:u}]:"value"in e?[e]:e.length===0?!1:e}function Bu(e,u){return typeof e=="string"||"key"in e?{from:u,to:e}:"from"in e?{from:e.from,to:e.to}:{from:u,to:e.to}}function Me(e,u){return e===void 0?[]:Array.isArray(e)?e.map(t=>Bu(t,u)):[Bu(e,u)]}function bu(e,u){let t=Me(typeof e=="object"&&"redirect"in e?e.redirect:e,u);return t.length===0?{remain:u,redirect:t}:typeof e=="object"&&"remain"in e?{remain:e.remain,redirect:t}:{redirect:t}}function Nn(e,u){if(!e)throw new Error(u)}var On=class extends U{constructor(e){super(e),this._choices=bn(e.choices.map(u=>u&&typeof u=="object"?u:{value:u}),"value")}expected({descriptor:e}){let u=Array.from(this._choices.keys()).map(n=>this._choices.get(n)).filter(({hidden:n})=>!n).map(n=>n.value).sort(Sn).map(e.value),t=u.slice(0,-2),r=u.slice(-2);return{text:t.concat(r.join(" or ")).join(", "),list:{title:"one of the following values",values:u}}}validate(e){return this._choices.has(e)}deprecated(e){let u=this._choices.get(e);return u&&u.deprecated?{value:e}:!1}forward(e){let u=this._choices.get(e);return u?u.forward:void 0}redirect(e){let u=this._choices.get(e);return u?u.redirect:void 0}},_n=class extends U{expected(){return"a number"}validate(e,u){return typeof e=="number"}},jn=class extends _n{expected(){return"an integer"}validate(e,u){return u.normalizeValidateResult(super.validate(e,u),e)===!0&&kn(e)}},Au=class extends U{expected(){return"a string"}validate(e){return typeof e=="string"}},Tn=ue,In=it,Pn=Fn,$n=dn,Ln=class{constructor(e,u){let{logger:t=console,loggerPrintWidth:r=80,descriptor:n=Tn,unknown:D=In,invalid:i=Pn,deprecated:o=$n,missing:a=()=>!1,required:s=()=>!1,preprocess:c=l=>l,postprocess:F=()=>Ce}=u||{};this._utils={descriptor:n,logger:t||{warn:()=>{}},loggerPrintWidth:r,schemas:Bn(e,"name"),normalizeDefaultResult:gu,normalizeExpectedResult:ot,normalizeDeprecatedResult:vu,normalizeForwardResult:Me,normalizeRedirectResult:bu,normalizeValidateResult:yu},this._unknownHandler=D,this._invalidHandler=xn(i),this._deprecatedHandler=o,this._identifyMissing=(l,d)=>!(l in d)||a(l,d),this._identifyRequired=s,this._preprocess=c,this._postprocess=F,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=An()}normalize(e){let u={},t=[this._preprocess(e,this._utils)],r=()=>{for(;t.length!==0;){let n=t.shift(),D=this._applyNormalization(n,u);t.push(...D)}};r();for(let n of Object.keys(this._utils.schemas)){let D=this._utils.schemas[n];if(!(n in u)){let i=gu(D.default(this._utils));"value"in i&&t.push({[n]:i.value})}}r();for(let n of Object.keys(this._utils.schemas)){if(!(n in u))continue;let D=this._utils.schemas[n],i=u[n],o=D.postprocess(i,this._utils);o!==Ce&&(this._applyValidation(o,n,D),u[n]=o)}return this._applyPostprocess(u),this._applyRequiredCheck(u),u}_applyNormalization(e,u){let t=[],{knownKeys:r,unknownKeys:n}=this._partitionOptionKeys(e);for(let D of r){let i=this._utils.schemas[D],o=i.preprocess(e[D],this._utils);this._applyValidation(o,D,i);let a=({from:F,to:l})=>{t.push(typeof l=="string"?{[l]:F}:{[l.key]:l.value})},s=({value:F,redirectTo:l})=>{let d=vu(i.deprecated(F,this._utils),o,!0);if(d!==!1)if(d===!0)this._hasDeprecationWarned(D)||this._utils.logger.warn(this._deprecatedHandler(D,l,this._utils));else for(let{value:f}of d){let h={key:D,value:f};if(!this._hasDeprecationWarned(h)){let p=typeof l=="string"?{key:l,value:f}:l;this._utils.logger.warn(this._deprecatedHandler(h,p,this._utils))}}};Me(i.forward(o,this._utils),o).forEach(a);let c=bu(i.redirect(o,this._utils),o);if(c.redirect.forEach(a),"remain"in c){let F=c.remain;u[D]=D in u?i.overlap(u[D],F,this._utils):F,s({value:F})}for(let{from:F,to:l}of c.redirect)s({value:F,redirectTo:l})}for(let D of n){let i=e[D];this._applyUnknownHandler(D,i,u,(o,a)=>{t.push({[o]:a})})}return t}_applyRequiredCheck(e){for(let u of Object.keys(this._utils.schemas))if(this._identifyMissing(u,e)&&this._identifyRequired(u))throw this._invalidHandler(u,rt,this._utils)}_partitionOptionKeys(e){let[u,t]=wn(Object.keys(e).filter(r=>!this._identifyMissing(r,e)),r=>r in this._utils.schemas);return{knownKeys:u,unknownKeys:t}}_applyValidation(e,u,t){let r=yu(t.validate(e,this._utils),e);if(r!==!0)throw this._invalidHandler(u,r.value,this._utils)}_applyUnknownHandler(e,u,t,r){let n=this._unknownHandler(e,u,this._utils);if(n)for(let D of Object.keys(n)){if(this._identifyMissing(D,n))continue;let i=n[D];D in this._utils.schemas?r(D,i):t[D]=i}}_applyPostprocess(e){let u=this._postprocess(e,this._utils);if(u!==Ce){if(u.delete)for(let t of u.delete)delete e[t];if(u.override){let{knownKeys:t,unknownKeys:r}=this._partitionOptionKeys(u.override);for(let n of t){let D=u.override[n];this._applyValidation(D,n,this._utils.schemas[n]),e[n]=D}for(let n of r){let D=u.override[n];this._applyUnknownHandler(n,D,e,(i,o)=>{let a=this._utils.schemas[i];this._applyValidation(o,i,a),e[i]=o})}}}}},_e;function Rn(e,u,{logger:t=!1,isCLI:r=!1,passThrough:n=!1,FlagSchema:D,descriptor:i}={}){if(r){if(!D)throw new Error("'FlagSchema' option is required.");if(!i)throw new Error("'descriptor' option is required.")}else i=ue;let o=n?Array.isArray(n)?(l,d)=>n.includes(l)?{[l]:d}:void 0:(l,d)=>({[l]:d}):(l,d,f)=>{let{_:h,...p}=f.schemas;return it(l,d,{...f,schemas:p})},a=Mn(u,{isCLI:r,FlagSchema:D}),s=new Ln(a,{logger:t,unknown:o,descriptor:i}),c=t!==!1;c&&_e&&(s._hasDeprecationWarned=_e);let F=s.normalize(e);return c&&(_e=s._hasDeprecationWarned),F}function Mn(e,{isCLI:u,FlagSchema:t}){let r=[];u&&r.push(gn.create({name:"_"}));for(let n of e)r.push(Wn(n,{isCLI:u,optionInfos:e,FlagSchema:t})),n.alias&&u&&r.push(En.create({name:n.alias,sourceName:n.name}));return r}function Wn(e,{isCLI:u,optionInfos:t,FlagSchema:r}){let{name:n}=e,D={name:n},i,o={};switch(e.type){case"int":i=jn,u&&(D.preprocess=Number);break;case"string":i=Au;break;case"choice":i=On,D.choices=e.choices.map(a=>a!=null&&a.redirect?{...a,redirect:{to:{key:e.name,value:a.redirect}}}:a);break;case"boolean":i=vn;break;case"flag":i=r,D.flags=t.flatMap(a=>[a.alias,a.description&&a.name,a.oppositeDescription&&`no-${a.name}`].filter(Boolean));break;case"path":i=Au;break;default:throw new Error(`Unexpected type ${e.type}`)}if(e.exception?D.validate=(a,s,c)=>e.exception(a)||s.validate(a,c):D.validate=(a,s,c)=>a===void 0||s.validate(a,c),e.redirect&&(o.redirect=a=>a?{to:typeof e.redirect=="string"?e.redirect:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(o.deprecated=!0),u&&!e.array){let a=D.preprocess||(s=>s);D.preprocess=(s,c,F)=>c.preprocess(a(Array.isArray(s)?v(!1,s,-1):s),F)}return e.array?yn.create({...u?{preprocess:a=>Array.isArray(a)?a:[a]}:{},...o,valueSchema:i.create(D)}):i.create({...D,...o})}var Vn=Rn,zn=(e,u,t)=>{if(!(e&&u==null)){if(u.findLast)return u.findLast(t);for(let r=u.length-1;r>=0;r--){let n=u[r];if(t(n,r,u))return n}}},at=zn;function st(e,u){if(!u)throw new Error("parserName is required.");let t=at(!1,e,n=>n.parsers&&Object.prototype.hasOwnProperty.call(n.parsers,u));if(t)return t;let r=`Couldn't resolve parser "${u}".`;throw r+=" Plugins must be explicitly added to the standalone bundle.",new Xu(r)}function qn(e,u){if(!u)throw new Error("astFormat is required.");let t=at(!1,e,n=>n.printers&&Object.prototype.hasOwnProperty.call(n.printers,u));if(t)return t;let r=`Couldn't find plugin for AST format "${u}".`;throw r+=" Plugins must be explicitly added to the standalone bundle.",new Xu(r)}function Xe({plugins:e,parser:u}){let t=st(e,u);return lt(t,u)}function lt(e,u){let t=e.parsers[u];return typeof t=="function"?t():t}function Un(e,u){let t=e.printers[u];return typeof t=="function"?t():t}var wu={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};async function Jn(e,u={}){var t;let r={...e};if(!r.parser)if(r.filepath){if(r.parser=fn(r,{physicalFile:r.filepath}),!r.parser)throw new au(`No parser could be inferred for file "${r.filepath}".`)}else throw new au("No parser and no file path given, couldn't infer a parser.");let n=et({plugins:e.plugins,showDeprecated:!0}).options,D={...wu,...Object.fromEntries(n.filter(l=>l.default!==void 0).map(l=>[l.name,l.default]))},i=st(r.plugins,r.parser),o=await lt(i,r.parser);r.astFormat=o.astFormat,r.locEnd=o.locEnd,r.locStart=o.locStart;let a=(t=i.printers)!=null&&t[o.astFormat]?i:qn(r.plugins,o.astFormat),s=await Un(a,o.astFormat);r.printer=s;let c=a.defaultOptions?Object.fromEntries(Object.entries(a.defaultOptions).filter(([,l])=>l!==void 0)):{},F={...D,...c};for(let[l,d]of Object.entries(F))(r[l]===null||r[l]===void 0)&&(r[l]=d);return r.parser==="json"&&(r.trailingComma="none"),Vn(r,n,{passThrough:Object.keys(wu),...u})}var ne=Jn,Gn=_t(It(),1);async function Hn(e,u){let t=await Xe(u),r=t.preprocess?t.preprocess(e,u):e;u.originalText=r;let n;try{n=await t.parse(r,u,u)}catch(D){Kn(D,e)}return{text:r,ast:n}}function Kn(e,u){let{loc:t}=e;if(t){let r=(0,Gn.codeFrameColumns)(u,t,{highlightCode:!0});throw e.message+=`
`+r,e.codeFrame=r,e}throw e}var le=Hn;async function Yn(e,u,t,r,n){let{embeddedLanguageFormatting:D,printer:{embed:i,hasPrettierIgnore:o=()=>!1,getVisitorKeys:a}}=t;if(!i||D!=="auto")return;if(i.length>2)throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/plugins#optional-embed");let s=be(i.getVisitorKeys??a),c=[];d();let F=e.stack;for(let{print:f,node:h,pathStack:p}of c)try{e.stack=p;let C=await f(l,u,e,t);C&&n.set(h,C)}catch(C){if(globalThis.PRETTIER_DEBUG)throw C}e.stack=F;function l(f,h){return Zn(f,h,t,r)}function d(){let{node:f}=e;if(f===null||typeof f!="object"||o(e))return;for(let p of s(f))Array.isArray(f[p])?e.each(d,p):e.call(d,p);let h=i(e,t);if(h){if(typeof h=="function"){c.push({print:h,node:f,pathStack:[...e.stack]});return}n.set(f,h)}}}async function Zn(e,u,t,r){let n=await ne({...t,...u,parentParser:t.parser,originalText:e,cursorOffset:void 0,rangeStart:void 0,rangeEnd:void 0},{passThrough:!0}),{ast:D}=await le(e,n),i=await r(D,n);return Lu(i)}function Qn(e,u){let{originalText:t,[Symbol.for("comments")]:r,locStart:n,locEnd:D,[Symbol.for("printedComments")]:i}=u,{node:o}=e,a=n(o),s=D(o);for(let c of r)n(c)>=a&&D(c)<=s&&i.add(c);return t.slice(a,s)}var Xn=Qn;async function Ae(e,u){({ast:e}=await ct(e,u));let t=new Map,r=new Nr(e),n=new Map;await Yn(r,i,u,Ae,n);let D=await ku(r,u,i,void 0,n);if(Zr(u),u.cursorOffset>=0){if(u.nodeAfterCursor&&!u.nodeBeforeCursor)return[K,D];if(u.nodeBeforeCursor&&!u.nodeAfterCursor)return[D,K]}return D;function i(a,s){return a===void 0||a===r?o(s):Array.isArray(a)?r.call(()=>o(s),...a):r.call(()=>o(s),a)}function o(a){let s=r.node;if(s==null)return"";let c=s&&typeof s=="object"&&a===void 0;if(c&&t.has(s))return t.get(s);let F=ku(r,u,i,a,n);return c&&t.set(s,F),F}}function ku(e,u,t,r,n){var D;let{node:i}=e,{printer:o}=u,a;switch((D=o.hasPrettierIgnore)!=null&&D.call(o,e)?a=Xn(e,u):n.has(i)?a=n.get(i):a=o.print(e,u,t,r),i){case u.cursorNode:a=pe(a,s=>[K,s,K]);break;case u.nodeBeforeCursor:a=pe(a,s=>[s,K]);break;case u.nodeAfterCursor:a=pe(a,s=>[K,s]);break}return o.printComment&&(!o.willPrintOwnComments||!o.willPrintOwnComments(e,u))&&(a=Yr(e,a,u)),a}async function ct(e,u){let t=e.comments??[];u[Symbol.for("comments")]=t,u[Symbol.for("printedComments")]=new Set,zr(e,u);let{printer:{preprocess:r}}=u;return e=r?await r(e,u):e,{ast:e,comments:t}}function eD(e,u){let{cursorOffset:t,locStart:r,locEnd:n}=u,D=be(u.printer.getVisitorKeys),i=d=>r(d)<=t&&n(d)>=t,o=e,a=[e];for(let d of jr(e,{getVisitorKeys:D,filter:i}))a.push(d),o=d;if(Tr(o,{getVisitorKeys:D}))return{cursorNode:o};let s,c,F=-1,l=Number.POSITIVE_INFINITY;for(;a.length>0&&(s===void 0||c===void 0);){o=a.pop();let d=s!==void 0,f=c!==void 0;for(let h of Be(o,{getVisitorKeys:D})){if(!d){let p=n(h);p<=t&&p>F&&(s=h,F=p)}if(!f){let p=r(h);p>=t&&p<l&&(c=h,l=p)}}}return{nodeBeforeCursor:s,nodeAfterCursor:c}}var ft=eD;function uD(e,u){let{printer:{massageAstNode:t,getVisitorKeys:r}}=u;if(!t)return e;let n=be(r),D=t.ignoredProperties??new Set;return i(e);function i(o,a){if(!(o!==null&&typeof o=="object"))return o;if(Array.isArray(o))return o.map(l=>i(l,a)).filter(Boolean);let s={},c=new Set(n(o));for(let l in o)!Object.prototype.hasOwnProperty.call(o,l)||D.has(l)||(c.has(l)?s[l]=i(o[l],o):s[l]=o[l]);let F=t(o,s,a);if(F!==null)return F??s}}var tD=uD,rD=(e,u,t)=>{if(!(e&&u==null)){if(u.findLastIndex)return u.findLastIndex(t);for(let r=u.length-1;r>=0;r--){let n=u[r];if(t(n,r,u))return r}return-1}},nD=rD,DD=({parser:e})=>e==="json"||e==="json5"||e==="jsonc"||e==="json-stringify";function iD(e,u){let t=[e.node,...e.parentNodes],r=new Set([u.node,...u.parentNodes]);return t.find(n=>dt.has(n.type)&&r.has(n))}function Su(e){let u=nD(!1,e,t=>t.type!=="Program"&&t.type!=="File");return u===-1?e:e.slice(0,u+1)}function oD(e,u,{locStart:t,locEnd:r}){let n=e.node,D=u.node;if(n===D)return{startNode:n,endNode:D};let i=t(e.node);for(let a of Su(u.parentNodes))if(t(a)>=i)D=a;else break;let o=r(u.node);for(let a of Su(e.parentNodes)){if(r(a)<=o)n=a;else break;if(n===D)break}return{startNode:n,endNode:D}}function We(e,u,t,r,n=[],D){let{locStart:i,locEnd:o}=t,a=i(e),s=o(e);if(!(u>s||u<a||D==="rangeEnd"&&u===a||D==="rangeStart"&&u===s)){for(let c of Ze(e,t)){let F=We(c,u,t,r,[e,...n],D);if(F)return F}if(!r||r(e,n[0]))return{node:e,parentNodes:n}}}function aD(e,u){return u!=="DeclareExportDeclaration"&&e!=="TypeParameterDeclaration"&&(e==="Directive"||e==="TypeAlias"||e==="TSExportAssignment"||e.startsWith("Declare")||e.startsWith("TSDeclare")||e.endsWith("Statement")||e.endsWith("Declaration"))}var dt=new Set(["JsonRoot","ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","UnaryExpression","TemplateLiteral"]),sD=new Set(["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"]);function xu(e,u,t){if(!u)return!1;switch(e.parser){case"flow":case"hermes":case"babel":case"babel-flow":case"babel-ts":case"typescript":case"acorn":case"espree":case"meriyah":case"oxc":case"oxc-ts":case"__babel_estree":return aD(u.type,t==null?void 0:t.type);case"json":case"json5":case"jsonc":case"json-stringify":return dt.has(u.type);case"graphql":return sD.has(u.kind);case"vue":return u.tag!=="root"}return!1}function lD(e,u,t){let{rangeStart:r,rangeEnd:n,locStart:D,locEnd:i}=u;Re.ok(n>r);let o=e.slice(r,n).search(/\S/u),a=o===-1;if(!a)for(r+=o;n>r&&!/\S/u.test(e[n-1]);--n);let s=We(t,r,u,(d,f)=>xu(u,d,f),[],"rangeStart"),c=a?s:We(t,n,u,d=>xu(u,d),[],"rangeEnd");if(!s||!c)return{rangeStart:0,rangeEnd:0};let F,l;if(DD(u)){let d=iD(s,c);F=d,l=d}else({startNode:F,endNode:l}=oD(s,c,u));return{rangeStart:Math.min(D(F),D(l)),rangeEnd:Math.max(i(F),i(l))}}var Ft="\uFEFF",Nu=Symbol("cursor");async function pt(e,u,t=0){if(!e||e.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:r,text:n}=await le(e,u);u.cursorOffset>=0&&(u={...u,...ft(r,u)});let D=await Ae(r,u);t>0&&(D=qu([Y,D],t,u.tabWidth));let i=ve(D,u);if(t>0){let a=i.formatted.trim();i.cursorNodeStart!==void 0&&(i.cursorNodeStart-=i.formatted.indexOf(a),i.cursorNodeStart<0&&(i.cursorNodeStart=0,i.cursorNodeText=i.cursorNodeText.trimStart()),i.cursorNodeStart+i.cursorNodeText.length>a.length&&(i.cursorNodeText=i.cursorNodeText.trimEnd())),i.formatted=a+qe(u.endOfLine)}let o=u[Symbol.for("comments")];if(u.cursorOffset>=0){let a,s,c,F;if((u.cursorNode||u.nodeBeforeCursor||u.nodeAfterCursor)&&i.cursorNodeText)if(c=i.cursorNodeStart,F=i.cursorNodeText,u.cursorNode)a=u.locStart(u.cursorNode),s=n.slice(a,u.locEnd(u.cursorNode));else{if(!u.nodeBeforeCursor&&!u.nodeAfterCursor)throw new Error("Cursor location must contain at least one of cursorNode, nodeBeforeCursor, nodeAfterCursor");a=u.nodeBeforeCursor?u.locEnd(u.nodeBeforeCursor):0;let C=u.nodeAfterCursor?u.locStart(u.nodeAfterCursor):n.length;s=n.slice(a,C)}else a=0,s=n,c=0,F=i.formatted;let l=u.cursorOffset-a;if(s===F)return{formatted:i.formatted,cursorOffset:c+l,comments:o};let d=s.split("");d.splice(l,0,Nu);let f=F.split(""),h=Mt(d,f),p=c;for(let C of h)if(C.removed){if(C.value.includes(Nu))break}else p+=C.count;return{formatted:i.formatted,cursorOffset:p,comments:o}}return{formatted:i.formatted,cursorOffset:-1,comments:o}}async function cD(e,u){let{ast:t,text:r}=await le(e,u),{rangeStart:n,rangeEnd:D}=lD(r,u,t),i=r.slice(n,D),o=Math.min(n,r.lastIndexOf(`
`,n)+1),a=r.slice(o,n).match(/^\s*/u)[0],s=Ke(a,u.tabWidth),c=await pt(i,{...u,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:u.cursorOffset>n&&u.cursorOffset<=D?u.cursorOffset-n:-1,endOfLine:"lf"},s),F=c.formatted.trimEnd(),{cursorOffset:l}=u;l>D?l+=F.length-i.length:c.cursorOffset>=0&&(l=c.cursorOffset+n);let d=r.slice(0,n)+F+r.slice(D);if(u.endOfLine!=="lf"){let f=qe(u.endOfLine);l>=0&&f===`\r
`&&(l+=Pu(d.slice(0,l),`
`)),d=Ee(!1,d,`
`,f)}return{formatted:d,cursorOffset:l,comments:c.comments}}function je(e,u,t){return typeof u!="number"||Number.isNaN(u)||u<0||u>e.length?t:u}function Ou(e,u){let{cursorOffset:t,rangeStart:r,rangeEnd:n}=u;return t=je(e,t,-1),r=je(e,r,0),n=je(e,n,e.length),{...u,cursorOffset:t,rangeStart:r,rangeEnd:n}}function ht(e,u){let{cursorOffset:t,rangeStart:r,rangeEnd:n,endOfLine:D}=Ou(e,u),i=e.charAt(0)===Ft;if(i&&(e=e.slice(1),t--,r--,n--),D==="auto"&&(D=Wt(e)),e.includes("\r")){let o=a=>Pu(e.slice(0,Math.max(a,0)),`\r
`);t-=o(t),r-=o(r),n-=o(n),e=Vt(e)}return{hasBOM:i,text:e,options:Ou(e,{...u,cursorOffset:t,rangeStart:r,rangeEnd:n,endOfLine:D})}}async function _u(e,u){let t=await Xe(u);return!t.hasPragma||t.hasPragma(e)}async function fD(e,u){var t;let r=await Xe(u);return(t=r.hasIgnorePragma)==null?void 0:t.call(r,e)}async function Ct(e,u){let{hasBOM:t,text:r,options:n}=ht(e,await ne(u));if(n.rangeStart>=n.rangeEnd&&r!==""||n.requirePragma&&!await _u(r,n)||n.checkIgnorePragma&&await fD(r,n))return{formatted:e,cursorOffset:u.cursorOffset,comments:[]};let D;return n.rangeStart>0||n.rangeEnd<r.length?D=await cD(r,n):(!n.requirePragma&&n.insertPragma&&n.printer.insertPragma&&!await _u(r,n)&&(r=n.printer.insertPragma(r)),D=await pt(r,n)),t&&(D.formatted=Ft+D.formatted,D.cursorOffset>=0&&D.cursorOffset++),D}async function dD(e,u,t){let{text:r,options:n}=ht(e,await ne(u)),D=await le(r,n);return t&&(t.preprocessForPrint&&(D.ast=await ct(D.ast,n)),t.massage&&(D.ast=tD(D.ast,n))),D}async function FD(e,u){u=await ne(u);let t=await Ae(e,u);return ve(t,u)}async function pD(e,u){let t=Er(e),{formatted:r}=await Ct(t,{...u,parser:"__js_expression"});return r}async function hD(e,u){u=await ne(u);let{ast:t}=await le(e,u);return u.cursorOffset>=0&&(u={...u,...ft(t,u)}),Ae(t,u)}async function CD(e,u){return ve(e,await ne(u))}var mt={};ze(mt,{builders:()=>mD,printer:()=>ED,utils:()=>gD});var mD={join:zu,line:Wu,softline:Cr,hardline:Y,literalline:Vu,group:Ru,conditionalGroup:cr,fill:fr,lineSuffix:Te,lineSuffixBoundary:pr,cursor:K,breakParent:ye,ifBreak:dr,trim:hr,indent:me,indentIfBreak:Fr,align:re,addAlignmentToDoc:qu,markAsRoot:sr,dedentToRoot:ar,dedent:lr,hardlineWithoutBreakParent:Ge,literallineWithoutBreakParent:Mu,label:mr,concat:e=>e},ED={printDocToString:ve},gD={willBreak:Zt,traverseDoc:Ue,findInDoc:Je,mapDoc:ge,removeLines:er,stripTrailingHardline:Lu,replaceEndOfLine:rr,canBreak:Dr},yD="3.6.2",Et={};ze(Et,{addDanglingComment:()=>G,addLeadingComment:()=>oe,addTrailingComment:()=>ae,getAlignmentSize:()=>Ke,getIndentSize:()=>kD,getMaxContinuousCount:()=>ND,getNextNonSpaceNonCommentCharacter:()=>_D,getNextNonSpaceNonCommentCharacterIndex:()=>VD,getPreferredQuote:()=>TD,getStringWidth:()=>He,hasNewline:()=>V,hasNewlineInRange:()=>PD,hasSpaces:()=>LD,isNextLineEmpty:()=>JD,isNextLineEmptyAfterIndex:()=>ru,isPreviousLineEmpty:()=>qD,makeString:()=>MD,skip:()=>se,skipEverythingButNewLine:()=>Hu,skipInlineComment:()=>eu,skipNewline:()=>Z,skipSpaces:()=>z,skipToLineEnd:()=>Gu,skipTrailingComment:()=>uu,skipWhitespace:()=>Ir});function vD(e,u){if(u===!1)return!1;if(e.charAt(u)==="/"&&e.charAt(u+1)==="*"){for(let t=u+2;t<e.length;++t)if(e.charAt(t)==="*"&&e.charAt(t+1)==="/")return t+2}return u}var eu=vD;function BD(e,u){return u===!1?!1:e.charAt(u)==="/"&&e.charAt(u+1)==="/"?Hu(e,u):u}var uu=BD;function bD(e,u){let t=null,r=u;for(;r!==t;)t=r,r=z(e,r),r=eu(e,r),r=uu(e,r),r=Z(e,r);return r}var tu=bD;function AD(e,u){let t=null,r=u;for(;r!==t;)t=r,r=Gu(e,r),r=eu(e,r),r=z(e,r);return r=uu(e,r),r=Z(e,r),r!==!1&&V(e,r)}var ru=AD;function wD(e,u){let t=e.lastIndexOf(`
`);return t===-1?0:Ke(e.slice(t+1).match(/^[\t ]*/u)[0],u)}var kD=wD;function SD(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function xD(e,u){let t=e.match(new RegExp(`(${SD(u)})+`,"gu"));return t===null?0:t.reduce((r,n)=>Math.max(r,n.length/u.length),0)}var ND=xD;function OD(e,u){let t=tu(e,u);return t===!1?"":e.charAt(t)}var _D=OD,Fe="'",ju='"';function jD(e,u){let t=u===!0||u===Fe?Fe:ju,r=t===Fe?ju:Fe,n=0,D=0;for(let i of e)i===t?n++:i===r&&D++;return n>D?r:t}var TD=jD;function ID(e,u,t){for(let r=u;r<t;++r)if(e.charAt(r)===`
`)return!0;return!1}var PD=ID;function $D(e,u,t={}){return z(e,t.backwards?u-1:u,t)!==u}var LD=$D;function RD(e,u,t){let r=u==='"'?"'":'"',n=Ee(!1,e,/\\(.)|(["'])/gsu,(D,i,o)=>i===r?i:o===u?"\\"+o:o||(t&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(i)?i:"\\"+i));return u+n+u}var MD=RD;function WD(e,u,t){return tu(e,t(u))}function VD(e,u){return arguments.length===2||typeof u=="number"?tu(e,u):WD(...arguments)}function zD(e,u,t){return Qe(e,t(u))}function qD(e,u){return arguments.length===2||typeof u=="number"?Qe(e,u):zD(...arguments)}function UD(e,u,t){return ru(e,t(u))}function JD(e,u){return arguments.length===2||typeof u=="number"?ru(e,u):UD(...arguments)}function H(e,u=1){return async(...t)=>{let r=t[u]??{},n=r.plugins??[];return t[u]={...r,plugins:Array.isArray(n)?n:Object.values(n)},e(...t)}}var gt=H(Ct);async function yt(e,u){let{formatted:t}=await gt(e,{...u,cursorOffset:-1});return t}async function GD(e,u){return await yt(e,u)===e}var HD=H(et,0),KD={parse:H(dD),formatAST:H(FD),formatDoc:H(pD),printToDoc:H(hD),printDocToString:H(CD)},ZD=Iu;export{KD as __debug,GD as check,ZD as default,mt as doc,yt as format,gt as formatWithCursor,HD as getSupportInfo,Et as util,yD as version};
