// @bun
import"./chunk-xyhgvt88.js";var{create:At,defineProperty:Ve,getOwnPropertyDescriptor:wt,getOwnPropertyNames:kt,getPrototypeOf:St}=Object,xt=Object.prototype.hasOwnProperty,Iu=(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)||Iu("Cannot "+t),Tt=(e,u,t)=>u.has(e)?Iu("Cannot add the same private member more than once"):u instanceof WeakSet?u.add(e):u.set(e,t),ie=(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:l=2,linesBelow:F=3}=o||{},c=a.line,d=a.column,f=s.line,h=s.column,p=Math.max(c-(l+1),0),C=Math.min(i.length,f+F);c===-1&&(p=0),f===-1&&(C=i.length);let E=f-c,m={};if(E)for(let y=0;y<=E;y++){let g=y+c;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[c]=[d,0]:m[c]=!0:m[c]=[d,h-d];return{start:p,end:C,markerLines:m}}function n(D,i,o={}){let a=u(!1),s=D.split(t),{start:l,end:F,markerLines:c}=r(i,s,o),d=i.start&&typeof i.start.column=="number",f=String(F).length,h=D.split(t,F).slice(l,F).map((p,C)=>{let E=l+1+C,m=` ${` ${E}`.slice(-f)} |`,y=c[E],g=!c[E+1];if(y){let B="";if(Array.isArray(y)){let V=p.slice(0,Math.max(y[0]-1,0)).replace(/[^\t]/g," "),fe=y[1]||1;B=[`
 `,a.gutter(m.replace(/\d/g," "))," ",V,a.marker("^").repeat(fe)].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}),Pu={};ze(Pu,{__debug:()=>YD,check:()=>GD,doc:()=>gt,format:()=>Bt,formatWithCursor:()=>vt,getSupportInfo:()=>HD,util:()=>yt,version:()=>vD});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 l=(n=t.timeout)!==null&&n!==void 0?n:1/0,F=Date.now()+l,c=[{oldPos:-1,lastComponent:void 0}],d=this.extractCommon(c[0],u,e,0,t);if(c[0].oldPos+1>=o&&d+1>=i)return D(this.buildValues(c[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=c[C-1],y=c[C+1];m&&(c[C-1]=void 0);let g=!1;if(y){let V=y.oldPos-C;g=y&&0<=V&&V<i}let B=m&&m.oldPos+1<o;if(!g&&!B){c[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;c[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 l=u.slice(o,o+s.count);l=l.map(function(F,c){let d=t[a+c];return d.length>F.length?d:F}),s.value=this.join(l)}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 $u(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 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 X="string",I="array",U="cursor",P="indent",$="align",L="trim",w="group",_="fill",k="if-break",R="indent-if-break",M="line-suffix",W="line-suffix-boundary",b="line",j="label",S="break-parent",Lu=new Set([U,P,$,L,w,_,k,R,M,W,b,j,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 X;if(Array.isArray(e))return I;if(!e)return;let{type:u}=e;if(Lu.has(u))return u}var ee=Ut,Jt=(e)=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function Kt(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(ee(e))throw Error("doc is valid.");let t=Object.prototype.toString.call(e);if(t!=="[object Object]")return`Unexpected doc '${t}'.`;let r=Jt([...Lu].map((n)=>`'${n}'`));return`Unexpected doc.type '${e.type}'.
Expected it to be ${r}.`}var Gt=class extends Error{name="InvalidDocError";constructor(e){super(Kt(e)),this.doc=e}},re=Gt,Du={};function Ht(e,u,t,r){let n=[e];for(;n.length>0;){let D=n.pop();if(D===Du){t(n.pop());continue}t&&n.push(D,Du);let i=ee(D);if(!i)throw new re(D);if((u==null?void 0:u(D))!==!1)switch(i){case I:case _:{let o=i===I?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 $:case P:case R:case j:case M:n.push(D.contents);break;case X:case U:case L:case W:case b:case S:break;default:throw new re(D)}}}var Ue=Ht;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(ee(D)){case I:return u(D.map(r));case _: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 $:case P:case R:case j:case M:return u({...D,contents:r(D.contents)});case X:case U:case L:case W:case b:case S:return u(D);default:throw new re(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 iu(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&&iu(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&&iu(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 ou(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=oe(v(!1,e,-1));e[e.length-1]=u}return e}function oe(e){switch(ee(e)){case P:case R:case w:case M:case j:{let u=oe(e.contents);return{...e,contents:u}}case k:return{...e,breakContents:oe(e.breakContents),flatContents:oe(e.flatContents)};case _:return{...e,parts:ou(e.parts)};case I:return ou(e);case X:return qt(e);case $:case U:case L:case W:case b:case S:break;default:throw new re(e)}return e}function Ru(e){return oe(tr(e))}function ur(e){switch(ee(e)){case _: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 $:case P:case R:case M:if(!e.contents)return"";break;case k:if(!e.flatContents&&!e.breakContents)return"";break;case I:{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 X:case U:case L:case W:case b:case j:case S:break;default:throw new re(e)}return e}function tr(e){return ge(e,(u)=>ur(u))}function rr(e,u=qu){return ge(e,(t)=>typeof t=="string"?Uu(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===j?{...e,contents:u(e.contents)}:u(e)}var Ke=()=>{},O=Ke,Mu=Ke,ir=Ke;function me(e){return O(e),{type:P,contents:e}}function ne(e,u){return O(u),{type:$,contents:u,n:e}}function Wu(e,u={}){return O(e),Mu(u.expandedStates,!0),{type:w,id:u.id,contents:e,break:!!u.shouldBreak,expandedStates:u.expandedStates}}function or(e){return ne(Number.NEGATIVE_INFINITY,e)}function ar(e){return ne({type:"root"},e)}function sr(e){return ne(-1,e)}function lr(e,u){return Wu(e[0],{...u,expandedStates:e})}function cr(e){return ir(e),{type:_,parts:e}}function fr(e,u="",t={}){return O(e),u!==""&&O(u),{type:k,breakContents:e,flatContents:u,groupId:t.groupId}}function dr(e,u){return O(e),{type:R,contents:e,groupId:u.groupId,negate:u.negate}}function Te(e){return O(e),{type:M,contents:e}}var Fr={type:W},ye={type:S},pr={type:L},Ge={type:b,hard:!0},Vu={type:b,hard:!0,literal:!0},zu={type:b},hr={type:b,soft:!0},Z=[Ge,ye],qu=[Vu,ye],Y={type:U};function Uu(e,u){O(e),Mu(u);let t=[];for(let r=0;r<u.length;r++)r!==0&&t.push(e),t.push(u[r]);return t}function Ju(e,u,t){O(e);let r=e;if(u>0){for(let n=0;n<Math.floor(u/t);++n)r=me(r);r=ne(u%t,r),r=ne(Number.NEGATIVE_INFINITY,r)}return r}function Cr(e,u){return O(u),e?{type:j,label:e,contents:u}:u}function T(e){var u;if(!e)return"";if(Array.isArray(e)){let t=[];for(let r of e)if(Array.isArray(r))t.push(...T(r));else{let n=T(r);n!==""&&t.push(n)}return t}return e.type===k?{...e,breakContents:T(e.breakContents),flatContents:T(e.flatContents)}:e.type===w?{...e,contents:T(e.contents),expandedStates:(u=e.expandedStates)==null?void 0:u.map(T)}:e.type===_?{type:"fill",parts:e.parts.map(T)}:e.contents?{...e,contents:T(e.contents)}:e}function mr(e){let u=Object.create(null),t=new Set;return r(T(e));function r(D,i,o){var a,s;if(typeof D=="string")return JSON.stringify(D);if(Array.isArray(D)){let l=D.map(r).filter(Boolean);return l.length===1?l[0]:`[${l.join(", ")}]`}if(D.type===b){let l=((a=o==null?void 0:o[i+1])==null?void 0:a.type)===S;return D.literal?l?"literalline":"literallineWithoutBreakParent":D.hard?l?"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===L)return"trim";if(D.type===P)return"indent("+r(D.contents)+")";if(D.type===$)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===R){let l=[];D.negate&&l.push("negate: true"),D.groupId&&l.push(`groupId: ${n(D.groupId)}`);let F=l.length>0?`, { ${l.join(", ")} }`:"";return`indentIfBreak(${r(D.contents)}${F})`}if(D.type===w){let l=[];D.break&&D.break!=="propagated"&&l.push("shouldBreak: true"),D.id&&l.push(`id: ${n(D.id)}`);let F=l.length>0?`, { ${l.join(", ")} }`:"";return D.expandedStates?`conditionalGroup([${D.expandedStates.map((c)=>r(c)).join(",")}]${F})`:`group(${r(D.contents)}${F})`}if(D.type===_)return`fill([${D.parts.map((l)=>r(l)).join(", ")}])`;if(D.type===M)return"lineSuffix("+r(D.contents)+")";if(D.type===W)return"lineSuffixBoundary";if(D.type===j)return`label(${JSON.stringify(D.label)}, ${r(D.contents)})`;if(D.type===U)return"cursor";throw 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 Er=()=>/[#*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 gr(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function yr(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 vr=(e)=>!(gr(e)||yr(e)),Br=/[^\x20-\x7F]/u;function br(e){if(!e)return 0;if(!Br.test(e))return e.length;e=e.replace(Er(),"  ");let u=0;for(let t of e){let r=t.codePointAt(0);r<=31||r>=127&&r<=159||r>=768&&r<=879||(u+=vr(r)?1:2)}return u}var He=br,A=Symbol("MODE_BREAK"),x=Symbol("MODE_FLAT"),ue=Symbol("cursor"),Ie=Symbol("DOC_FILL_PRINTED_LENGTH");function Ku(){return{value:"",length:0,queue:[]}}function Ar(e,u){return Pe(e,{type:"indent"},u)}function wr(e,u,t){return u===Number.NEGATIVE_INFINITY?e.root||Ku():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":l(),t.useTabs?a(1):s(t.tabWidth);break;case"stringAlign":l(),n+=f.n,D+=f.n.length;break;case"numberAlign":i+=1,o+=f.n;break;default:throw Error(`Unexpected type '${f.type}'`)}return c(),{...e,value:n,length:D,queue:r};function a(f){n+="\t".repeat(f),D+=t.tabWidth*f}function s(f){n+=" ".repeat(f),D+=f}function l(){t.useTabs?F():c()}function F(){i>0&&a(i),d()}function c(){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===ue){t++;continue}for(let D=n.length-1;D>=0;D--){let i=n[D];if(i===" "||i==="\t")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(ue);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:l}=o.pop(),F=ee(l);switch(F){case X:a.push(l),t-=He(l);break;case I:case _:{let c=F===I?l:l.parts,d=l[Ie]??0;for(let f=c.length-1;f>=d;f--)o.push({mode:s,doc:c[f]});break}case P:case $:case R:case j:o.push({mode:s,doc:l.contents});break;case L:t+=$e(a);break;case w:{if(D&&l.break)return!1;let c=l.break?A:s,d=l.expandedStates&&c===A?v(!1,l.expandedStates,-1):l.contents;o.push({mode:c,doc:d});break}case k:{let c=(l.groupId?n[l.groupId]||x:s)===A?l.breakContents:l.flatContents;c&&o.push({mode:s,doc:c});break}case b:if(s===A||l.hard)return!0;l.soft||(a.push(" "),t--);break;case M:r=!0;break;case W:if(r)return!1;break}}return!1}function ve(e,u){let t={},r=u.printWidth,n=qe(u.endOfLine),D=0,i=[{ind:Ku(),mode:A,doc:e}],o=[],a=!1,s=[],l=0;for(Qt(e);i.length>0;){let{ind:c,mode:d,doc:f}=i.pop();switch(ee(f)){case X:{let h=n!==`
`?Ee(!1,f,`
`,n):f;o.push(h),i.length>0&&(D+=He(h));break}case I:for(let h=f.length-1;h>=0;h--)i.push({ind:c,mode:d,doc:f[h]});break;case U:if(l>=2)throw Error("There are too many 'cursor' in doc.");o.push(ue),l++;break;case P:i.push({ind:Ar(c,u),mode:d,doc:f.contents});break;case $:i.push({ind:wr(c,f.n,u),mode:d,doc:f.contents});break;case L:D-=$e(o);break;case w:switch(d){case x:if(!a){i.push({ind:c,mode:f.break?A:x,doc:f.contents});break}case A:{a=!1;let h={ind:c,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:c,mode:A,doc:E});break}else for(let m=1;m<f.expandedStates.length+1;m++)if(m>=f.expandedStates.length){i.push({ind:c,mode:A,doc:E});break}else{let y=f.expandedStates[m],g={ind:c,mode:x,doc:y};if(de(g,i,p,C,t)){i.push(g);break}}}else i.push({ind:c,mode:A,doc:f.contents});break}}f.id&&(t[f.id]=v(!1,i,-1).mode);break;case _:{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:c,mode:x,doc:m},B={ind:c,mode:A,doc:m},V=de(g,[],h,s.length>0,t,!0);if(E===1){V?i.push(g):i.push(B);break}let fe={ind:c,mode:x,doc:y},we={ind:c,mode:A,doc:y};if(E===2){V?i.push(fe,g):i.push(we,B);break}let bt=C[p+2],ke={ind:c,mode:d,doc:{...f,[Ie]:p+2}};de({ind:c,mode:x,doc:[m,y,bt]},[],h,s.length>0,t,!0)?i.push(ke,fe,g):V?i.push(ke,we,g):i.push(ke,we,B);break}case k:case R:{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:c,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:c,mode:d,doc:p})}break}case M:s.push({ind:c,mode:d,doc:f.contents});break;case W:s.length>0&&i.push({ind:c,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:c,mode:d,doc:f},...s.reverse()),s.length=0;break}f.literal?c.root?(o.push(n,c.root.value),D=c.root.length):(o.push(n),D=0):(D-=$e(o),o.push(n+c.value),D=c.length);break}break;case j:i.push({ind:c,mode:d,doc:f.contents});break;case S:break;default:throw new re(f)}i.length===0&&s.length>0&&(i.push(...s.reverse()),s.length=0)}let F=o.indexOf(ue);if(F!==-1){let c=o.indexOf(ue,F+1);if(c===-1)return{formatted:o.filter((p)=>p!==ue).join("")};let d=o.slice(0,F).join(""),f=o.slice(F+1,c).join(""),h=o.slice(c+1).join("");return{formatted:d+f+h,cursorNodeStart:d.length,cursorNodeText:f}}return{formatted:o.join("")}}function kr(e,u,t=0){let r=0;for(let n=t;n<e.length;++n)e[n]==="\t"?r=r+u-r%u:r++;return r}var Ye=kr,K,Le,he,Sr=class{constructor(e){Tt(this,K),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[...ie(this,K,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=ie(this,K,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=ie(this,K,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 ie(this,K,he).call(this))if(e(u))return u}hasAncestor(e){for(let u of ie(this,K,he).call(this))if(e(u))return!0;return!1}};K=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 xr=Sr,Gu=new Proxy(()=>{},{get:()=>Gu}),Re=Gu;function Nr(e){return e!==null&&typeof e=="object"}var Or=Nr;function*Be(e,u){let{getVisitorKeys:t,filter:r=()=>!0}=u,n=(D)=>Or(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*_r(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 jr(e,u){return Be(e,u).next().done}function le(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 Tr=le(/\s/u),q=le(" \t"),Hu=le(",; \t"),Yu=le(/[^\n\r]/u);function Ir(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 Q=Ir;function Pr(e,u,t={}){let r=q(e,t.backwards?u-1:u,t),n=Q(e,r,t);return r!==n}var z=Pr;function $r(e){return Array.isArray(e)&&e.length>0}var Lr=$r,Zu=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),Rr=(e)=>Object.keys(e).filter((u)=>!Zu.has(u));function Mr(e){return e?(u)=>e(u,Zu):Rr}var be=Mr;function Wr(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)+"\u2026"),u+(t?" "+t:"")}function Ze(e,u){(e.comments??(e.comments=[])).push(u),u.printed=!1,u.nodeDescription=Wr(e)}function ae(e,u){u.leading=!0,u.trailing=!1,Ze(e,u)}function G(e,u,t){u.leading=!1,u.trailing=!1,t&&(u.marker=t),Ze(e,u)}function se(e,u){u.leading=!1,u.trailing=!0,Ze(e,u)}var Se=new WeakMap;function Qe(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]:Qe(a,u));return o.sort((a,s)=>D(a)-D(s)||i(a)-i(s)),Se.set(e,o),o}function Qu(e,u,t,r){let{locStart:n,locEnd:D}=t,i=n(u),o=D(u),a=Qe(e,t),s,l,F=0,c=a.length;for(;F<c;){let d=F+c>>1,f=a[d],h=n(f),p=D(f);if(h<=i&&o<=p)return Qu(f,u,t,f);if(p<=i){s=f,F=d+1;continue}if(o<=h){l=f,c=d;continue}throw 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),l&&Ne(d,l,t)!==f&&(l=null)}return{enclosingNode:r,precedingNode:s,followingNode:l}}var xe=()=>!1;function Vr(e,u){let{comments:t}=e;if(delete e.comments,!Lr(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,l=t.map((F,c)=>({...Qu(e,F,u),comment:F,text:i,options:u,ast:e,isLastComment:t.length-1===c}));for(let[F,c]of l.entries()){let{comment:d,precedingNode:f,enclosingNode:h,followingNode:p,text:C,options:E,ast:m,isLastComment:y}=c,g;if(n?g=[c]:(d.enclosingNode=h,d.precedingNode=f,d.followingNode=p,g=[d,C,E,m,y]),zr(C,E,l,F))d.placement="ownLine",o(...g)||(p?ae(p,d):f?se(f,d):h?G(h,d):G(m,d));else if(qr(C,E,l,F))d.placement="endOfLine",a(...g)||(f?se(f,d):p?ae(p,d):h?G(h,d):G(m,d));else if(d.placement="remaining",!s(...g))if(f&&p){let B=r.length;B>0&&r[B-1].followingNode!==p&&au(r,E),r.push(c)}else f?se(f,d):p?ae(p,d):h?G(h,d):G(m,d)}if(au(r,u),!n)for(let F of t)delete F.precedingNode,delete F.enclosingNode,delete F.followingNode}var Xu=(e)=>!/[\S\n\u2028\u2029]/u.test(e);function zr(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:l,precedingNode:F}=t[s];if(F!==D||!Xu(e.slice(o(l),a)))break;a=i(l)}return z(e,a,{backwards:!0})}function qr(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:l,followingNode:F}=t[s];if(F!==D||!Xu(e.slice(a,i(l))))break;a=o(l)}return z(e,a)}function au(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:l,followingNode:F}=e[a-1];Re.strictEqual(l,D),Re.strictEqual(F,i);let c=u.originalText.slice(u.locEnd(s),o);if(((r=(t=u.printer).isGap)==null?void 0:r.call(t,c,u))??/^[\s(]*$/u.test(c))o=u.locStart(s);else break}for(let[s,{comment:l}]of e.entries())s<a?se(D,l):ae(i,l);for(let s of[D,i])s.comments&&s.comments.length>1&&s.comments.sort((l,F)=>u.locStart(l)-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 Ur(e,u){let t=u-1;t=q(e,t,{backwards:!0}),t=Q(e,t,{backwards:!0}),t=q(e,t,{backwards:!0});let r=Q(e,t,{backwards:!0});return t!==r}var Xe=Ur;function et(e,u){let t=e.node;return t.printed=!0,u.printer.printComment(e,u)}function Jr(e,u){var t;let r=e.node,n=[et(e,u)],{printer:D,originalText:i,locStart:o,locEnd:a}=u;if((t=D.isBlockComment)==null?void 0:t.call(D,r)){let l=z(i,a(r))?z(i,o(r),{backwards:!0})?Z:zu:" ";n.push(l)}else n.push(Z);let s=Q(i,q(i,a(r)));return s!==!1&&z(i,s)&&n.push(Z),n}function Kr(e,u,t){var r;let n=e.node,D=et(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)||z(o,a(n),{backwards:!0})){let l=Xe(o,a(n));return{doc:Te([Z,l?Z:"",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 Gr(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(Jr(e,u)):s&&(i=Kr(e,u,i),D.push(i.doc))},"comments"),{leading:n,trailing:D}}function Hr(e,u,t){let{leading:r,trailing:n}=Gr(e,t);return!r&&!n?u:pe(u,(D)=>[r,D,n])}function Yr(e){let{[Symbol.for("comments")]:u,[Symbol.for("printedComments")]:t}=e;for(let r of u){if(!r.printed&&!t.has(r))throw Error('Comment "'+r.value.trim()+'" was not printed. Please report this error!');delete r.printed}}function Zr(e){return()=>{}}var Qr=Zr,ut=class extends Error{name="ConfigError"},su=class extends Error{name="UndefinedParserError"},Xr={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 tt({plugins:e=[],showDeprecated:u=!1}={}){let t=e.flatMap((n)=>n.languages??[]),r=[];for(let n of un(Object.assign({},...e.map(({options:D})=>D),Xr)))!u&&n.deprecated||(Array.isArray(n.choices)&&(u||(n.choices=n.choices.filter((D)=>!D.deprecated)),n.name==="parser"&&(n.choices=[...n.choices,...en(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*en(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 un(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 tn=(e,u)=>{if(!(e&&u==null))return u.toReversed||!Array.isArray(u)?u.toReversed():[...u].reverse()},rn=tn,lu,cu,fu,du,Fu,nn=((lu=globalThis.Deno)==null?void 0:lu.build.os)==="windows"||((fu=(cu=globalThis.navigator)==null?void 0:cu.platform)==null?void 0:fu.startsWith("Win"))||((Fu=(du=globalThis.process)==null?void 0:du.platform)==null?void 0:Fu.startsWith("win"))||!1;function rt(e){if(e=e instanceof URL?e:new URL(e),e.protocol!=="file:")throw TypeError(`URL must be a file URL: received "${e.protocol}"`);return e}function Dn(e){return e=rt(e),decodeURIComponent(e.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function on(e){e=rt(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 an(e){return nn?on(e):Dn(e)}var sn=an,ln=(e)=>String(e).split(/[/\\]/u).pop();function pu(e,u){if(!u)return;let t=ln(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 cn(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 hu(e,u){if(u){if(String(u).startsWith("file:"))try{u=sn(u)}catch{return}if(typeof u=="string")return e.find(({isSupported:t})=>t==null?void 0:t({filepath:u}))}}function fn(e,u){let t=rn(!1,e.plugins).flatMap((n)=>n.languages??[]),r=cn(t,u.language)??pu(t,u.physicalFile)??pu(t,u.file)??hu(t,u.physicalFile)??hu(t,u.file)??(u.physicalFile,void 0);return r==null?void 0:r.parsers[0]}var dn=fn,te={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)=>te.value(t)).join(", ")}]`;let u=Object.keys(e);return u.length===0?"{}":`{ ${u.map((t)=>`${te.key(t)}: ${te.value(e[t])}`).join(", ")} }`},pair:({key:e,value:u})=>te.value({[e]:u})},nt=new Proxy(String,{get:()=>nt}),N=nt,Fn=(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("; ")+"."},Dt=Symbol.for("vnopts.VALUE_NOT_EXIST"),Ce=Symbol.for("vnopts.VALUE_UNCHANGED"),Cu=" ".repeat(2),pn=(e,u,t)=>{let{text:r,list:n}=t.normalizeExpectedResult(t.schemas[e].expected(t)),D=[];return r&&D.push(mu(e,u,r,t.descriptor)),n&&D.push([mu(e,u,n.title,t.descriptor)].concat(n.values.map((i)=>it(i,t.loggerPrintWidth))).join(`
`)),ot(D,t.loggerPrintWidth)};function mu(e,u,t,r){return[`Invalid ${N.red(r.key(e))} value.`,`Expected ${N.blue(t)},`,`but received ${u===Dt?N.gray("nothing"):N.red(r.value(u))}.`].join(" ")}function it({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)=>it(n,t-Cu.length).replace(/^|\n/g,`$&${Cu}`))).join(`
`)),ot(r,t)}function ot(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=[],Eu=[];function hn(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,l=0,F=0;for(;l<r;)Eu[l]=e.charCodeAt(D+l),Oe[l]=++l;for(;F<n;)for(i=u.charCodeAt(D+F),a=F++,o=F,l=0;l<r;l++)s=i===Eu[l]?a:a+1,a=Oe[l],o=Oe[l]=a>o?s>o?o+1:s:s>a?a+1:s;return o}var at=(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)=>hn(e,o)<3);i&&D.push(`Did you mean ${N.blue(t.key(i))}?`),r.warn(D.join(" "))},Cn=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function mn(e,u){let t=new e(u),r=Object.create(t);for(let n of Cn)n in u&&(r[n]=En(u[n],t,J.prototype[n].length));return r}var J=class{static create(e){return mn(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 En(e,u,t){return typeof e=="function"?(...r)=>e(...r.slice(0,t-1),u,...r.slice(t-1)):()=>e}var gn=class extends J{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}},yn=class extends J{expected(){return"anything"}validate(){return!0}},vn=class extends J{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(gu))}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(gu))}return t.length===0?{redirect:r}:{redirect:r,remain:t}}overlap(e,u){return e.concat(u)}};function gu({from:e,to:u}){return{from:[e],to:u}}var Bn=class extends J{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 Error(`Duplicate ${u} ${JSON.stringify(n)}`);t[n]=r}return t}function An(e,u){let t=new Map;for(let r of e){let n=r[u];if(t.has(n))throw Error(`Duplicate ${u} ${JSON.stringify(n)}`);t.set(n,r)}return t}function wn(){let e=Object.create(null);return(u)=>{let t=JSON.stringify(u);return e[t]?!0:(e[t]=!0,!1)}}function kn(e,u){let t=[],r=[];for(let n of e)u(n)?t.push(n):r.push(n);return[t,r]}function Sn(e){return e===Math.floor(e)}function xn(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 Nn(e){return(...u)=>{let t=e(...u);return typeof t=="string"?Error(t):t}}function yu(e){return e===void 0?{}:e}function st(e){if(typeof e=="string")return{text:e};let{text:u,list:t}=e;return On((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(st)}}:{text:u}}function vu(e,u){return e===!0?!0:e===!1?{value:u}:e}function Bu(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 Au(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 On(e,u){if(!e)throw Error(u)}var _n=class extends J{constructor(e){super(e),this._choices=An(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(xn).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}},jn=class extends J{expected(){return"a number"}validate(e,u){return typeof e=="number"}},Tn=class extends jn{expected(){return"an integer"}validate(e,u){return u.normalizeValidateResult(super.validate(e,u),e)===!0&&Sn(e)}},wu=class extends J{expected(){return"a string"}validate(e){return typeof e=="string"}},In=te,Pn=at,$n=pn,Ln=Fn,Rn=class{constructor(e,u){let{logger:t=console,loggerPrintWidth:r=80,descriptor:n=In,unknown:D=Pn,invalid:i=$n,deprecated:o=Ln,missing:a=()=>!1,required:s=()=>!1,preprocess:l=(c)=>c,postprocess:F=()=>Ce}=u||{};this._utils={descriptor:n,logger:t||{warn:()=>{}},loggerPrintWidth:r,schemas:bn(e,"name"),normalizeDefaultResult:yu,normalizeExpectedResult:st,normalizeDeprecatedResult:Bu,normalizeForwardResult:Me,normalizeRedirectResult:Au,normalizeValidateResult:vu},this._unknownHandler=D,this._invalidHandler=Nn(i),this._deprecatedHandler=o,this._identifyMissing=(c,d)=>!(c in d)||a(c,d),this._identifyRequired=s,this._preprocess=l,this._postprocess=F,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=wn()}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=yu(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:c})=>{t.push(typeof c=="string"?{[c]:F}:{[c.key]:c.value})},s=({value:F,redirectTo:c})=>{let d=Bu(i.deprecated(F,this._utils),o,!0);if(d!==!1)if(d===!0)this._hasDeprecationWarned(D)||this._utils.logger.warn(this._deprecatedHandler(D,c,this._utils));else for(let{value:f}of d){let h={key:D,value:f};if(!this._hasDeprecationWarned(h)){let p=typeof c=="string"?{key:c,value:f}:c;this._utils.logger.warn(this._deprecatedHandler(h,p,this._utils))}}};Me(i.forward(o,this._utils),o).forEach(a);let l=Au(i.redirect(o,this._utils),o);if(l.redirect.forEach(a),"remain"in l){let F=l.remain;u[D]=D in u?i.overlap(u[D],F,this._utils):F,s({value:F})}for(let{from:F,to:c}of l.redirect)s({value:F,redirectTo:c})}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,Dt,this._utils)}_partitionOptionKeys(e){let[u,t]=kn(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=vu(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 Mn(e,u,{logger:t=!1,isCLI:r=!1,passThrough:n=!1,FlagSchema:D,descriptor:i}={}){if(r){if(!D)throw Error("'FlagSchema' option is required.");if(!i)throw Error("'descriptor' option is required.")}else i=te;let o=n?Array.isArray(n)?(c,d)=>n.includes(c)?{[c]:d}:void 0:(c,d)=>({[c]:d}):(c,d,f)=>{let{_:h,...p}=f.schemas;return at(c,d,{...f,schemas:p})},a=Wn(u,{isCLI:r,FlagSchema:D}),s=new Rn(a,{logger:t,unknown:o,descriptor:i}),l=t!==!1;l&&_e&&(s._hasDeprecationWarned=_e);let F=s.normalize(e);return l&&(_e=s._hasDeprecationWarned),F}function Wn(e,{isCLI:u,FlagSchema:t}){let r=[];u&&r.push(yn.create({name:"_"}));for(let n of e)r.push(Vn(n,{isCLI:u,optionInfos:e,FlagSchema:t})),n.alias&&u&&r.push(gn.create({name:n.alias,sourceName:n.name}));return r}function Vn(e,{isCLI:u,optionInfos:t,FlagSchema:r}){let{name:n}=e,D={name:n},i,o={};switch(e.type){case"int":i=Tn,u&&(D.preprocess=Number);break;case"string":i=wu;break;case"choice":i=_n,D.choices=e.choices.map((a)=>a!=null&&a.redirect?{...a,redirect:{to:{key:e.name,value:a.redirect}}}:a);break;case"boolean":i=Bn;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=wu;break;default:throw Error(`Unexpected type ${e.type}`)}if(e.exception?D.validate=(a,s,l)=>e.exception(a)||s.validate(a,l):D.validate=(a,s,l)=>a===void 0||s.validate(a,l),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,l,F)=>l.preprocess(a(Array.isArray(s)?v(!1,s,-1):s),F)}return e.array?vn.create({...u?{preprocess:(a)=>Array.isArray(a)?a:[a]}:{},...o,valueSchema:i.create(D)}):i.create({...D,...o})}var zn=Mn,qn=(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}}},lt=qn;function ct(e,u){if(!u)throw Error("parserName is required.");let t=lt(!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 ut(r)}function Un(e,u){if(!u)throw Error("astFormat is required.");let t=lt(!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 ut(r)}function eu({plugins:e,parser:u}){let t=ct(e,u);return ft(t,u)}function ft(e,u){let t=e.parsers[u];return typeof t=="function"?t():t}function Jn(e,u){let t=e.printers[u];return typeof t=="function"?t():t}var ku={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};async function Kn(e,u={}){var t;let r={...e};if(!r.parser)if(r.filepath){if(r.parser=dn(r,{physicalFile:r.filepath}),!r.parser)throw new su(`No parser could be inferred for file "${r.filepath}".`)}else throw new su("No parser and no file path given, couldn't infer a parser.");let n=tt({plugins:e.plugins,showDeprecated:!0}).options,D={...ku,...Object.fromEntries(n.filter((c)=>c.default!==void 0).map((c)=>[c.name,c.default]))},i=ct(r.plugins,r.parser),o=await ft(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:Un(r.plugins,o.astFormat),s=await Jn(a,o.astFormat);r.printer=s;let l=a.defaultOptions?Object.fromEntries(Object.entries(a.defaultOptions).filter(([,c])=>c!==void 0)):{},F={...D,...l};for(let[c,d]of Object.entries(F))(r[c]===null||r[c]===void 0)&&(r[c]=d);return r.parser==="json"&&(r.trailingComma="none"),zn(r,n,{passThrough:Object.keys(ku),...u})}var De=Kn,Gn=_t(It(),1);async function Hn(e,u){let t=await eu(u),r=t.preprocess?t.preprocess(e,u):e;u.originalText=r;let n;try{n=await t.parse(r,u,u)}catch(D){Yn(D,e)}return{text:r,ast:n}}function Yn(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 ce=Hn;async function Zn(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 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),l=[];d();let F=e.stack;for(let{print:f,node:h,pathStack:p}of l)try{e.stack=p;let C=await f(c,u,e,t);C&&n.set(h,C)}catch(C){if(globalThis.PRETTIER_DEBUG)throw C}e.stack=F;function c(f,h){return Qn(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"){l.push({print:h,node:f,pathStack:[...e.stack]});return}n.set(f,h)}}}async function Qn(e,u,t,r){let n=await De({...t,...u,parentParser:t.parser,originalText:e,cursorOffset:void 0,rangeStart:void 0,rangeEnd:void 0},{passThrough:!0}),{ast:D}=await ce(e,n),i=await r(D,n);return Ru(i)}function Xn(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 l of r)n(l)>=a&&D(l)<=s&&i.add(l);return t.slice(a,s)}var eD=Xn;async function Ae(e,u){({ast:e}=await dt(e,u));let t=new Map,r=new xr(e),n=Qr(u),D=new Map;await Zn(r,o,u,Ae,D);let i=await Su(r,u,o,void 0,D);if(Yr(u),u.cursorOffset>=0){if(u.nodeAfterCursor&&!u.nodeBeforeCursor)return[Y,i];if(u.nodeBeforeCursor&&!u.nodeAfterCursor)return[i,Y]}return i;function o(s,l){return s===void 0||s===r?a(l):Array.isArray(s)?r.call(()=>a(l),...s):r.call(()=>a(l),s)}function a(s){n(r);let l=r.node;if(l==null)return"";let F=l&&typeof l=="object"&&s===void 0;if(F&&t.has(l))return t.get(l);let c=Su(r,u,o,s,D);return F&&t.set(l,c),c}}function Su(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=eD(e,u):n.has(i)?a=n.get(i):a=o.print(e,u,t,r),i){case u.cursorNode:a=pe(a,(s)=>[Y,s,Y]);break;case u.nodeBeforeCursor:a=pe(a,(s)=>[s,Y]);break;case u.nodeAfterCursor:a=pe(a,(s)=>[Y,s]);break}return o.printComment&&(!o.willPrintOwnComments||!o.willPrintOwnComments(e,u))&&(a=Hr(e,a,u)),a}async function dt(e,u){let t=e.comments??[];u[Symbol.for("comments")]=t,u[Symbol.for("printedComments")]=new Set,Vr(e,u);let{printer:{preprocess:r}}=u;return e=r?await r(e,u):e,{ast:e,comments:t}}function uD(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 _r(e,{getVisitorKeys:D,filter:i}))a.push(d),o=d;if(jr(o,{getVisitorKeys:D}))return{cursorNode:o};let s,l,F=-1,c=Number.POSITIVE_INFINITY;for(;a.length>0&&(s===void 0||l===void 0);){o=a.pop();let d=s!==void 0,f=l!==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<c&&(l=h,c=p)}}}return{nodeBeforeCursor:s,nodeAfterCursor:l}}var Ft=uD;function tD(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((c)=>i(c,a)).filter(Boolean);let s={},l=new Set(n(o));for(let c in o)!Object.prototype.hasOwnProperty.call(o,c)||D.has(c)||(l.has(c)?s[c]=i(o[c],o):s[c]=o[c]);let F=t(o,s,a);if(F!==null)return F??s}}var rD=tD,nD=(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}},DD=nD,iD=({parser:e})=>e==="json"||e==="json5"||e==="jsonc"||e==="json-stringify";function oD(e,u){let t=[e.node,...e.parentNodes],r=new Set([u.node,...u.parentNodes]);return t.find((n)=>pt.has(n.type)&&r.has(n))}function xu(e){let u=DD(!1,e,(t)=>t.type!=="Program"&&t.type!=="File");return u===-1?e:e.slice(0,u+1)}function aD(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 xu(u.parentNodes))if(t(a)>=i)D=a;else break;let o=r(u.node);for(let a of xu(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 l of Qe(e,t)){let F=We(l,u,t,r,[e,...n],D);if(F)return F}if(!r||r(e,n[0]))return{node:e,parentNodes:n}}}function sD(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 pt=new Set(["JsonRoot","ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","UnaryExpression","TemplateLiteral"]),lD=new Set(["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"]);function Nu(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 sD(u.type,t==null?void 0:t.type);case"json":case"json5":case"jsonc":case"json-stringify":return pt.has(u.type);case"graphql":return lD.has(u.kind);case"vue":return u.tag!=="root"}return!1}function cD(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)=>Nu(u,d,f),[],"rangeStart"),l=a?s:We(t,n,u,(d)=>Nu(u,d),[],"rangeEnd");if(!s||!l)return{rangeStart:0,rangeEnd:0};let F,c;if(iD(u)){let d=oD(s,l);F=d,c=d}else({startNode:F,endNode:c}=aD(s,l,u));return{rangeStart:Math.min(D(F),D(c)),rangeEnd:Math.max(i(F),i(c))}}var ht="\uFEFF",Ou=Symbol("cursor");async function Ct(e,u,t=0){if(!e||e.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:r,text:n}=await ce(e,u);u.cursorOffset>=0&&(u={...u,...Ft(r,u)});let D=await Ae(r,u,t);t>0&&(D=Ju([Z,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,l,F;if((u.cursorNode||u.nodeBeforeCursor||u.nodeAfterCursor)&&i.cursorNodeText)if(l=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 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,l=0,F=i.formatted;let c=u.cursorOffset-a;if(s===F)return{formatted:i.formatted,cursorOffset:l+c,comments:o};let d=s.split("");d.splice(c,0,Ou);let f=F.split(""),h=Mt(d,f),p=l;for(let C of h)if(C.removed){if(C.value.includes(Ou))break}else p+=C.count;return{formatted:i.formatted,cursorOffset:p,comments:o}}return{formatted:i.formatted,cursorOffset:-1,comments:o}}async function fD(e,u){let{ast:t,text:r}=await ce(e,u),{rangeStart:n,rangeEnd:D}=cD(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=Ye(a,u.tabWidth),l=await Ct(i,{...u,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:u.cursorOffset>n&&u.cursorOffset<=D?u.cursorOffset-n:-1,endOfLine:"lf"},s),F=l.formatted.trimEnd(),{cursorOffset:c}=u;c>D?c+=F.length-i.length:l.cursorOffset>=0&&(c=l.cursorOffset+n);let d=r.slice(0,n)+F+r.slice(D);if(u.endOfLine!=="lf"){let f=qe(u.endOfLine);c>=0&&f===`\r
`&&(c+=$u(d.slice(0,c),`
`)),d=Ee(!1,d,`
`,f)}return{formatted:d,cursorOffset:c,comments:l.comments}}function je(e,u,t){return typeof u!="number"||Number.isNaN(u)||u<0||u>e.length?t:u}function _u(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 mt(e,u){let{cursorOffset:t,rangeStart:r,rangeEnd:n,endOfLine:D}=_u(e,u),i=e.charAt(0)===ht;if(i&&(e=e.slice(1),t--,r--,n--),D==="auto"&&(D=Wt(e)),e.includes("\r")){let o=(a)=>$u(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:_u(e,{...u,cursorOffset:t,rangeStart:r,rangeEnd:n,endOfLine:D})}}async function ju(e,u){let t=await eu(u);return!t.hasPragma||t.hasPragma(e)}async function dD(e,u){var t;let r=await eu(u);return(t=r.hasIgnorePragma)==null?void 0:t.call(r,e)}async function Et(e,u){let{hasBOM:t,text:r,options:n}=mt(e,await De(u));if(n.rangeStart>=n.rangeEnd&&r!==""||n.requirePragma&&!await ju(r,n)||n.checkIgnorePragma&&await dD(r,n))return{formatted:e,cursorOffset:u.cursorOffset,comments:[]};let D;return n.rangeStart>0||n.rangeEnd<r.length?D=await fD(r,n):(!n.requirePragma&&n.insertPragma&&n.printer.insertPragma&&!await ju(r,n)&&(r=n.printer.insertPragma(r)),D=await Ct(r,n)),t&&(D.formatted=ht+D.formatted,D.cursorOffset>=0&&D.cursorOffset++),D}async function FD(e,u,t){let{text:r,options:n}=mt(e,await De(u)),D=await ce(r,n);return t&&(t.preprocessForPrint&&(D.ast=await dt(D.ast,n)),t.massage&&(D.ast=rD(D.ast,n))),D}async function pD(e,u){u=await De(u);let t=await Ae(e,u);return ve(t,u)}async function hD(e,u){let t=mr(e),{formatted:r}=await Et(t,{...u,parser:"__js_expression"});return r}async function CD(e,u){u=await De(u);let{ast:t}=await ce(e,u);return u.cursorOffset>=0&&(u={...u,...Ft(t,u)}),Ae(t,u)}async function mD(e,u){return ve(e,await De(u))}var gt={};ze(gt,{builders:()=>ED,printer:()=>gD,utils:()=>yD});var ED={join:Uu,line:zu,softline:hr,hardline:Z,literalline:qu,group:Wu,conditionalGroup:lr,fill:cr,lineSuffix:Te,lineSuffixBoundary:Fr,cursor:Y,breakParent:ye,ifBreak:fr,trim:pr,indent:me,indentIfBreak:dr,align:ne,addAlignmentToDoc:Ju,markAsRoot:ar,dedentToRoot:or,dedent:sr,hardlineWithoutBreakParent:Ge,literallineWithoutBreakParent:Vu,label:Cr,concat:(e)=>e},gD={printDocToString:ve},yD={willBreak:Zt,traverseDoc:Ue,findInDoc:Je,mapDoc:ge,removeLines:er,stripTrailingHardline:Ru,replaceEndOfLine:rr,canBreak:Dr},vD="3.6.2",yt={};ze(yt,{addDanglingComment:()=>G,addLeadingComment:()=>ae,addTrailingComment:()=>se,getAlignmentSize:()=>Ye,getIndentSize:()=>SD,getMaxContinuousCount:()=>OD,getNextNonSpaceNonCommentCharacter:()=>jD,getNextNonSpaceNonCommentCharacterIndex:()=>zD,getPreferredQuote:()=>ID,getStringWidth:()=>He,hasNewline:()=>z,hasNewlineInRange:()=>$D,hasSpaces:()=>RD,isNextLineEmpty:()=>KD,isNextLineEmptyAfterIndex:()=>nu,isPreviousLineEmpty:()=>UD,makeString:()=>WD,skip:()=>le,skipEverythingButNewLine:()=>Yu,skipInlineComment:()=>uu,skipNewline:()=>Q,skipSpaces:()=>q,skipToLineEnd:()=>Hu,skipTrailingComment:()=>tu,skipWhitespace:()=>Tr});function BD(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 uu=BD;function bD(e,u){return u===!1?!1:e.charAt(u)==="/"&&e.charAt(u+1)==="/"?Yu(e,u):u}var tu=bD;function AD(e,u){let t=null,r=u;for(;r!==t;)t=r,r=q(e,r),r=uu(e,r),r=tu(e,r),r=Q(e,r);return r}var ru=AD;function wD(e,u){let t=null,r=u;for(;r!==t;)t=r,r=Hu(e,r),r=uu(e,r),r=q(e,r);return r=tu(e,r),r=Q(e,r),r!==!1&&z(e,r)}var nu=wD;function kD(e,u){let t=e.lastIndexOf(`
`);return t===-1?0:Ye(e.slice(t+1).match(/^[\t ]*/u)[0],u)}var SD=kD;function xD(e){if(typeof e!="string")throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function ND(e,u){let t=e.match(new RegExp(`(${xD(u)})+`,"gu"));return t===null?0:t.reduce((r,n)=>Math.max(r,n.length/u.length),0)}var OD=ND;function _D(e,u){let t=ru(e,u);return t===!1?"":e.charAt(t)}var jD=_D,Fe="'",Tu='"';function TD(e,u){let t=u===!0||u===Fe?Fe:Tu,r=t===Fe?Tu:Fe,n=0,D=0;for(let i of e)i===t?n++:i===r&&D++;return n>D?r:t}var ID=TD;function PD(e,u,t){for(let r=u;r<t;++r)if(e.charAt(r)===`
`)return!0;return!1}var $D=PD;function LD(e,u,t={}){return q(e,t.backwards?u-1:u,t)!==u}var RD=LD;function MD(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 WD=MD;function VD(e,u,t){return ru(e,t(u))}function zD(e,u){return arguments.length===2||typeof u=="number"?ru(e,u):VD(...arguments)}function qD(e,u,t){return Xe(e,t(u))}function UD(e,u){return arguments.length===2||typeof u=="number"?Xe(e,u):qD(...arguments)}function JD(e,u,t){return nu(e,t(u))}function KD(e,u){return arguments.length===2||typeof u=="number"?nu(e,u):JD(...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 vt=H(Et);async function Bt(e,u){let{formatted:t}=await vt(e,{...u,cursorOffset:-1});return t}async function GD(e,u){return await Bt(e,u)===e}var HD=H(tt,0),YD={parse:H(FD),formatAST:H(pD),formatDoc:H(hD),printToDoc:H(CD),printDocToString:H(mD)},ZD=Pu;export{vD as version,yt as util,HD as getSupportInfo,vt as formatWithCursor,Bt as format,gt as doc,ZD as default,GD as check,YD as __debug};
