export const __webpack_ids__=["7293"];export const __webpack_modules__={87169:function(e,t,u){let r,n,D;u.r(t),u.d(t,{__debug:()=>uT,check:()=>uj,default:()=>uL,doc:()=>ul,format:()=>u_,formatWithCursor:()=>uN,getSupportInfo:()=>uP,util:()=>up,version:()=>uF});var o,i=Object.create,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,c=Object.getPrototypeOf,f=Object.prototype.hasOwnProperty,d=e=>{throw TypeError(e)},F=(e,t)=>{for(var u in t)a(e,u,{get:t[u],enumerable:!0})},p=(e,t,u)=>(t.has(e)||d("Cannot access private method"),u),h=(r=e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=/\r\n|[\n\r\u2028\u2029]/;e.codeFrameColumns=function(e,u,r={}){let n=new Proxy({},{get:()=>e=>e}),{start:D,end:o,markerLines:i}=function(e,t,u){let r=Object.assign({column:0,line:-1},e.start),n=Object.assign({},r,e.end),{linesAbove:D=2,linesBelow:o=3}=u||{},i=r.line,a=r.column,s=n.line,l=n.column,c=Math.max(i-(D+1),0),f=Math.min(t.length,s+o);-1===i&&(c=0),-1===s&&(f=t.length);let d=s-i,F={};if(d)for(let e=0;e<=d;e++){let u=e+i;if(a)if(0===e){let e=t[u-1].length;F[u]=[a,e-a+1]}else if(e===d)F[u]=[0,l];else{let r=t[u-e].length;F[u]=[0,r]}else F[u]=!0}else a===l?a?F[i]=[a,0]:F[i]=!0:F[i]=[a,l-a];return{start:c,end:f,markerLines:F}}(u,e.split(t),r),a=u.start&&"number"==typeof u.start.column,s=String(o).length,l=e.split(t,o).slice(D,o).map((e,t)=>{let u=D+1+t,o=` ${` ${u}`.slice(-s)} |`,a=i[u],l=!i[u+1];if(!a)return` ${n.gutter(o)}${e.length>0?` ${e}`:""}`;{let t="";if(Array.isArray(a)){let u=e.slice(0,Math.max(a[0]-1,0)).replace(/[^\t]/g," "),D=a[1]||1;t=`
 `+n.gutter(o.replace(/\d/g," "))+" "+u+n.marker("^").repeat(D),l&&r.message&&(t+=" "+n.message(r.message))}return[n.marker(">"),n.gutter(o),e.length>0?` ${e}`:"",t].join("")}}).join(`
`);return r.message&&!a&&(l=`${" ".repeat(s+1)}${r.message}
${l}`),l}},()=>(n||r((n={exports:{}}).exports,n),n.exports)),C={};F(C,{__debug:()=>uT,check:()=>uj,doc:()=>ul,format:()=>u_,formatWithCursor:()=>uN,getSupportInfo:()=>uP,util:()=>up,version:()=>uF});var m=(e,t,u,r)=>{if(!(e&&null==t))return t.replaceAll?t.replaceAll(u,r):u.global?t.replace(u,r):t.split(u).join(r)},E=class{diff(e,t,u={}){let r;"function"==typeof u?(r=u,u={}):"callback"in u&&(r=u.callback);let n=this.castInput(e,u),D=this.castInput(t,u),o=this.removeEmpty(this.tokenize(n,u)),i=this.removeEmpty(this.tokenize(D,u));return this.diffWithOptionsObj(o,i,u,r)}diffWithOptionsObj(e,t,u,r){var n;let D=e=>(e=this.postProcess(e,u),r)?void setTimeout(function(){r(e)},0):e,o=t.length,i=e.length,a=1,s=o+i;null!=u.maxEditLength&&(s=Math.min(s,u.maxEditLength));let l=null!=(n=u.timeout)?n:1/0,c=Date.now()+l,f=[{oldPos:-1,lastComponent:void 0}],d=this.extractCommon(f[0],t,e,0,u);if(f[0].oldPos+1>=i&&d+1>=o)return D(this.buildValues(f[0].lastComponent,t,e));let F=-1/0,p=1/0,h=()=>{for(let r=Math.max(F,-a);r<=Math.min(p,a);r+=2){let n,a=f[r-1],s=f[r+1];a&&(f[r-1]=void 0);let l=!1;if(s){let e=s.oldPos-r;l=s&&0<=e&&e<o}let c=a&&a.oldPos+1<i;if(!l&&!c){f[r]=void 0;continue}if(n=!c||l&&a.oldPos<s.oldPos?this.addToPath(s,!0,!1,0,u):this.addToPath(a,!1,!0,1,u),d=this.extractCommon(n,t,e,r,u),n.oldPos+1>=i&&d+1>=o)return D(this.buildValues(n.lastComponent,t,e))||!0;f[r]=n,n.oldPos+1>=i&&(p=Math.min(p,r-1)),d+1>=o&&(F=Math.max(F,r+1))}a++};if(r)!function e(){setTimeout(function(){if(a>s||Date.now()>c)return r(void 0);h()||e()},0)}();else for(;a<=s&&Date.now()<=c;){let e=h();if(e)return e}}addToPath(e,t,u,r,n){let D=e.lastComponent;return D&&!n.oneChangePerToken&&D.added===t&&D.removed===u?{oldPos:e.oldPos+r,lastComponent:{count:D.count+1,added:t,removed:u,previousComponent:D.previousComponent}}:{oldPos:e.oldPos+r,lastComponent:{count:1,added:t,removed:u,previousComponent:D}}}extractCommon(e,t,u,r,n){let D=t.length,o=u.length,i=e.oldPos,a=i-r,s=0;for(;a+1<D&&i+1<o&&this.equals(u[i+1],t[a+1],n);)a++,i++,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=i,a}equals(e,t,u){return u.comparator?u.comparator(e,t):e===t||!!u.ignoreCase&&e.toLowerCase()===t.toLowerCase()}removeEmpty(e){let t=[];for(let u=0;u<e.length;u++)e[u]&&t.push(e[u]);return t}castInput(e,t){return e}tokenize(e,t){return Array.from(e)}join(e){return e.join("")}postProcess(e,t){return e}get useLongestToken(){return!1}buildValues(e,t,u){let r=[],n;for(;e;)r.push(e),n=e.previousComponent,delete e.previousComponent,e=n;r.reverse();let D=r.length,o=0,i=0,a=0;for(;o<D;o++){let e=r[o];if(e.removed)e.value=this.join(u.slice(a,a+e.count)),a+=e.count;else{if(!e.added&&this.useLongestToken){let r=t.slice(i,i+e.count);r=r.map(function(e,t){let r=u[a+t];return r.length>e.length?r:e}),e.value=this.join(r)}else e.value=this.join(t.slice(i,i+e.count));i+=e.count,e.added||(a+=e.count)}}return r}},g=new class extends E{tokenize(e){return e.slice()}join(e){return e}removeEmpty(e){return e}};function y(e){switch(e){case"cr":return"\r";case"crlf":return`\r
`;default:return`
`}}function B(e,t){let u;switch(t){case`
`:u=/\n/gu;break;case"\r":u=/\r/gu;break;case`\r
`:u=/\r\n/gu;break;default:throw Error(`Unexpected "eol" ${JSON.stringify(t)}.`)}let r=e.match(u);return r?r.length:0}var b="string",v="array",A="cursor",k="indent",w="align",S="trim",x="group",O="fill",N="if-break",_="indent-if-break",j="line-suffix",P="line-suffix-boundary",T="line",L="label",$="break-parent",I=new Set([A,k,w,S,x,O,N,_,j,P,T,L,$]),M=(e,t,u)=>{if(!(e&&null==t))return Array.isArray(t)||"string"==typeof t?t[u<0?t.length+u:u]:t.at(u)},R=function(e){if("string"==typeof e)return b;if(Array.isArray(e))return v;if(!e)return;let{type:t}=e;if(I.has(t))return t},W=class extends Error{name="InvalidDocError";constructor(e){super(function(e){let t,u=null===e?"null":typeof e;if("string"!==u&&"object"!==u)return`Unexpected doc '${u}', 
Expected it to be 'string' or 'object'.`;if(R(e))throw Error("doc is valid.");let r=Object.prototype.toString.call(e);if("[object Object]"!==r)return`Unexpected doc '${r}'.`;let n=(t=[...I].map(e=>`'${e}'`),new Intl.ListFormat("en-US",{type:"disjunction"}).format(t));return`Unexpected doc.type '${e.type}'.
Expected it to be ${n}.`}(e)),this.doc=e}},V={},z=function(e,t,u,r){let n=[e];for(;n.length>0;){let e=n.pop();if(e===V){u(n.pop());continue}u&&n.push(e,V);let D=R(e);if(!D)throw new W(e);if((null==t?void 0:t(e))!==!1)switch(D){case v:case O:{let t=D===v?e:e.parts;for(let e=t.length,u=e-1;u>=0;--u)n.push(t[u]);break}case N:n.push(e.flatContents,e.breakContents);break;case x:if(r&&e.expandedStates)for(let t=e.expandedStates.length,u=t-1;u>=0;--u)n.push(e.expandedStates[u]);else n.push(e.contents);break;case w:case k:case _:case L:case j:n.push(e.contents);break;case b:case A:case S:case P:case T:case $:break;default:throw new W(e)}}};function q(e,t){if("string"==typeof e)return t(e);let u=new Map;return function e(r){if(u.has(r))return u.get(r);let n=function(u){switch(R(u)){case v:return t(u.map(e));case O:return t({...u,parts:u.parts.map(e)});case N:return t({...u,breakContents:e(u.breakContents),flatContents:e(u.flatContents)});case x:{let{expandedStates:r,contents:n}=u;return n=r?(r=r.map(e))[0]:e(n),t({...u,contents:n,expandedStates:r})}case w:case k:case _:case L:case j:return t({...u,contents:e(u.contents)});case b:case A:case S:case P:case T:case $:return t(u);default:throw new W(u)}}(r);return u.set(r,n),n}(e)}function U(e,t,u){let r=u,n=!1;return z(e,function(e){if(n)return!1;let u=t(e);void 0!==u&&(n=!0,r=u)}),r}function J(e){if(e.type===x&&e.break||e.type===T&&e.hard||e.type===$)return!0}function K(e){if(e.length>0){let t=M(!1,e,-1);t.expandedStates||t.break||(t.break="propagated")}return null}function H(e){return e.type!==T||e.hard?e.type===N?e.flatContents:e:e.soft?"":" "}function G(e){for(e=[...e];e.length>=2&&M(!1,e,-2).type===T&&M(!1,e,-1).type===$;)e.length-=2;if(e.length>0){let t=Z(M(!1,e,-1));e[e.length-1]=t}return e}function Z(e){switch(R(e)){case k:case _:case x:case j:case L:{let t=Z(e.contents);return{...e,contents:t}}case N:return{...e,breakContents:Z(e.breakContents),flatContents:Z(e.flatContents)};case O:return{...e,parts:G(e.parts)};case v:return G(e);case b:let t=e.length;for(;t>0&&("\r"===e[t-1]||e[t-1]===`
`);)t--;return t<e.length?e.slice(0,t):e;case w:case A:case S:case P:case T:case $:break;default:throw new W(e)}return e}function Q(e){return Z(q(e,e=>(function(e){switch(R(e)){case O:if(e.parts.every(e=>""===e))return"";break;case x:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===x&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case w:case k:case _:case j:if(!e.contents)return"";break;case N:if(!e.flatContents&&!e.breakContents)return"";break;case v:{let t=[];for(let u of e){if(!u)continue;let[e,...r]=Array.isArray(u)?u:[u];"string"==typeof e&&"string"==typeof M(!1,t,-1)?t[t.length-1]+=e:t.push(e),t.push(...r)}return 0===t.length?"":1===t.length?t[0]:t}case b:case A:case S:case P:case T:case L:case $:break;default:throw new W(e)}return e})(e)))}function X(e){if(e.type===T)return!0}function Y(e,t){return e.type===L?{...e,contents:t(e.contents)}:t(e)}var ee=()=>{};function et(e){return ee(e),{type:k,contents:e}}function eu(e,t){return ee(t),{type:w,contents:t,n:e}}function er(e,t={}){return ee(e),ee(t.expandedStates,!0),{type:x,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function en(e){return ee(e),{type:j,contents:e}}var eD={type:$},eo={type:T,hard:!0},ei={type:T,hard:!0,literal:!0},ea={type:T},es=[eo,eD],el=[ei,eD],ec={type:A};function ef(e,t){ee(e),ee(t);let u=[];for(let r=0;r<t.length;r++)0!==r&&u.push(e),u.push(t[r]);return u}function ed(e,t,u){ee(e);let r=e;if(t>0){for(let e=0;e<Math.floor(t/u);++e)r=et(r);r=eu(t%u,r),r=eu(-1/0,r)}return r}var eF=e=>{var t;return!(12288===e||e>=65281&&e<=65376||e>=65504&&e<=65510||(t=e)>=4352&&t<=4447||8986===t||8987===t||9001===t||9002===t||t>=9193&&t<=9196||9200===t||9203===t||9725===t||9726===t||9748===t||9749===t||t>=9776&&t<=9783||t>=9800&&t<=9811||9855===t||t>=9866&&t<=9871||9875===t||9889===t||9898===t||9899===t||9917===t||9918===t||9924===t||9925===t||9934===t||9940===t||9962===t||9970===t||9971===t||9973===t||9978===t||9981===t||9989===t||9994===t||9995===t||10024===t||10060===t||10062===t||t>=10067&&t<=10069||10071===t||t>=10133&&t<=10135||10160===t||10175===t||11035===t||11036===t||11088===t||11093===t||t>=11904&&t<=11929||t>=11931&&t<=12019||t>=12032&&t<=12245||t>=12272&&t<=12287||t>=12289&&t<=12350||t>=12353&&t<=12438||t>=12441&&t<=12543||t>=12549&&t<=12591||t>=12593&&t<=12686||t>=12688&&t<=12773||t>=12783&&t<=12830||t>=12832&&t<=12871||t>=12880&&t<=42124||t>=42128&&t<=42182||t>=43360&&t<=43388||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65106||t>=65108&&t<=65126||t>=65128&&t<=65131||t>=94176&&t<=94180||94192===t||94193===t||t>=94208&&t<=100343||t>=100352&&t<=101589||t>=101631&&t<=101640||t>=110576&&t<=110579||t>=110581&&t<=110587||110589===t||110590===t||t>=110592&&t<=110882||110898===t||t>=110928&&t<=110930||110933===t||t>=110948&&t<=110951||t>=110960&&t<=111355||t>=119552&&t<=119638||t>=119648&&t<=119670||126980===t||127183===t||127374===t||t>=127377&&t<=127386||t>=127488&&t<=127490||t>=127504&&t<=127547||t>=127552&&t<=127560||127568===t||127569===t||t>=127584&&t<=127589||t>=127744&&t<=127776||t>=127789&&t<=127797||t>=127799&&t<=127868||t>=127870&&t<=127891||t>=127904&&t<=127946||t>=127951&&t<=127955||t>=127968&&t<=127984||127988===t||t>=127992&&t<=128062||128064===t||t>=128066&&t<=128252||t>=128255&&t<=128317||t>=128331&&t<=128334||t>=128336&&t<=128359||128378===t||128405===t||128406===t||128420===t||t>=128507&&t<=128591||t>=128640&&t<=128709||128716===t||t>=128720&&t<=128722||t>=128725&&t<=128727||t>=128732&&t<=128735||128747===t||128748===t||t>=128756&&t<=128764||t>=128992&&t<=129003||129008===t||t>=129292&&t<=129338||t>=129340&&t<=129349||t>=129351&&t<=129535||t>=129648&&t<=129660||t>=129664&&t<=129673||t>=129679&&t<=129734||t>=129742&&t<=129756||t>=129759&&t<=129769||t>=129776&&t<=129784||t>=131072&&t<=196605||t>=196608&&t<=262141)},ep=/[^\x20-\x7F]/u,eh=function(e){if(!e)return 0;if(!ep.test(e))return e.length;e=e.replace(/[#*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,"  ");let t=0;for(let u of e){let e=u.codePointAt(0);e<=31||e>=127&&e<=159||e>=768&&e<=879||(t+=eF(e)?1:2)}return t},eC=Symbol("MODE_BREAK"),em=Symbol("MODE_FLAT"),eE=Symbol("cursor"),eg=Symbol("DOC_FILL_PRINTED_LENGTH");function ey(){return{value:"",length:0,queue:[]}}function eB(e,t,u){let r="dedent"===t.type?e.queue.slice(0,-1):[...e.queue,t],n="",D=0,o=0,i=0;for(let e of r)switch(e.type){case"indent":l(),u.useTabs?a(1):s(u.tabWidth);break;case"stringAlign":l(),n+=e.n,D+=e.n.length;break;case"numberAlign":o+=1,i+=e.n;break;default:throw Error(`Unexpected type '${e.type}'`)}return c(),{...e,value:n,length:D,queue:r};function a(e){n+="	".repeat(e),D+=u.tabWidth*e}function s(e){n+=" ".repeat(e),D+=e}function l(){u.useTabs?(o>0&&a(o),o=0,i=0):c()}function c(){i>0&&s(i),o=0,i=0}}function eb(e){let t=0,u=0,r=e.length;e:for(;r--;){let n=e[r];if(n===eE){u++;continue}for(let u=n.length-1;u>=0;u--){let D=n[u];if(" "===D||"	"===D)t++;else{e[r]=n.slice(0,u+1);break e}}}if(t>0||u>0)for(e.length=r+1;u-- >0;)e.push(eE);return t}function ev(e,t,u,r,n,D){if(u===1/0)return!0;let o=t.length,i=[e],a=[];for(;u>=0;){if(0===i.length){if(0===o)return!0;i.push(t[--o]);continue}let{mode:e,doc:s}=i.pop(),l=R(s);switch(l){case b:a.push(s),u-=eh(s);break;case v:case O:{let t=l===v?s:s.parts,u=s[eg]??0;for(let r=t.length-1;r>=u;r--)i.push({mode:e,doc:t[r]});break}case k:case w:case _:case L:i.push({mode:e,doc:s.contents});break;case S:u+=eb(a);break;case x:{if(D&&s.break)return!1;let t=s.break?eC:e,u=s.expandedStates&&t===eC?M(!1,s.expandedStates,-1):s.contents;i.push({mode:t,doc:u});break}case N:{let t=(s.groupId?n[s.groupId]||em:e)===eC?s.breakContents:s.flatContents;t&&i.push({mode:e,doc:t});break}case T:if(e===eC||s.hard)return!0;s.soft||(a.push(" "),u--);break;case j:r=!0;break;case P:if(r)return!1}}return!1}function eA(e,t){var u;let r,n,D={},o=t.printWidth,i=y(t.endOfLine),a=0,s=[{ind:ey(),mode:eC,doc:e}],l=[],c=!1,f=[],d=0;for(r=new Set,n=[],z(e,function(e){if(e.type===$&&K(n),e.type===x){if(n.push(e),r.has(e))return!1;r.add(e)}},function(e){e.type===x&&n.pop().break&&K(n)},!0);s.length>0;){let{ind:e,mode:r,doc:n}=s.pop();switch(R(n)){case b:{let e=i!==`
`?m(!1,n,`
`,i):n;l.push(e),s.length>0&&(a+=eh(e));break}case v:for(let t=n.length-1;t>=0;t--)s.push({ind:e,mode:r,doc:n[t]});break;case A:if(d>=2)throw Error("There are too many 'cursor' in doc.");l.push(eE),d++;break;case k:s.push({ind:eB(e,{type:"indent"},t),mode:r,doc:n.contents});break;case w:s.push({ind:(u=n.n,u===-1/0?e.root||ey():u<0?eB(e,{type:"dedent"},t):u?"root"===u.type?{...e,root:e}:eB(e,{type:"string"==typeof u?"stringAlign":"numberAlign",n:u},t):e),mode:r,doc:n.contents});break;case S:a-=eb(l);break;case x:switch(r){case em:if(!c){s.push({ind:e,mode:n.break?eC:em,doc:n.contents});break}case eC:{c=!1;let t={ind:e,mode:em,doc:n.contents},u=o-a,r=f.length>0;if(!n.break&&ev(t,s,u,r,D))s.push(t);else if(n.expandedStates){let t=M(!1,n.expandedStates,-1);if(n.break)s.push({ind:e,mode:eC,doc:t});else for(let o=1;o<n.expandedStates.length+1;o++)if(o>=n.expandedStates.length){s.push({ind:e,mode:eC,doc:t});break}else{let t={ind:e,mode:em,doc:n.expandedStates[o]};if(ev(t,s,u,r,D)){s.push(t);break}}}else s.push({ind:e,mode:eC,doc:n.contents})}}n.id&&(D[n.id]=M(!1,s,-1).mode);break;case O:{let t=o-a,u=n[eg]??0,{parts:i}=n,l=i.length-u;if(0===l)break;let c=i[u+0],d=i[u+1],F={ind:e,mode:em,doc:c},p={ind:e,mode:eC,doc:c},h=ev(F,[],t,f.length>0,D,!0);if(1===l){h?s.push(F):s.push(p);break}let C={ind:e,mode:em,doc:d},m={ind:e,mode:eC,doc:d};if(2===l){h?s.push(C,F):s.push(m,p);break}let E=i[u+2],g={ind:e,mode:r,doc:{...n,[eg]:u+2}};ev({ind:e,mode:em,doc:[c,d,E]},[],t,f.length>0,D,!0)?s.push(g,C,F):h?s.push(g,m,F):s.push(g,m,p);break}case N:case _:{let t=n.groupId?D[n.groupId]:r;if(t===eC){let t=n.type===N?n.breakContents:n.negate?n.contents:et(n.contents);t&&s.push({ind:e,mode:r,doc:t})}if(t===em){let t=n.type===N?n.flatContents:n.negate?et(n.contents):n.contents;t&&s.push({ind:e,mode:r,doc:t})}break}case j:f.push({ind:e,mode:r,doc:n.contents});break;case P:f.length>0&&s.push({ind:e,mode:r,doc:eo});break;case T:switch(r){case em:if(n.hard)c=!0;else{n.soft||(l.push(" "),a+=1);break}case eC:if(f.length>0){s.push({ind:e,mode:r,doc:n},...f.reverse()),f.length=0;break}n.literal?e.root?(l.push(i,e.root.value),a=e.root.length):(l.push(i),a=0):(a-=eb(l),l.push(i+e.value),a=e.length)}break;case L:s.push({ind:e,mode:r,doc:n.contents});break;case $:break;default:throw new W(n)}0===s.length&&f.length>0&&(s.push(...f.reverse()),f.length=0)}let F=l.indexOf(eE);if(-1!==F){let e=l.indexOf(eE,F+1);if(-1===e)return{formatted:l.filter(e=>e!==eE).join("")};let t=l.slice(0,F).join(""),u=l.slice(F+1,e).join("");return{formatted:t+u+l.slice(e+1).join(""),cursorNodeStart:t.length,cursorNodeText:u}}return{formatted:l.join("")}}var ek,ew,eS,ex=function(e,t,u=0){let r=0;for(let n=u;n<e.length;++n)"	"===e[n]?r=r+t-r%t:r++;return r},eO=class{constructor(e){let t,u;(t=ek).has(this)?d("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(this):t.set(this,u),this.stack=[e]}get key(){let{stack:e,siblings:t}=this;return M(!1,e,null===t?-2:-4)??null}get index(){return null===this.siblings?null:M(!1,this.stack,-2)}get node(){return M(!1,this.stack,-1)}get parent(){return this.getNode(1)}get grandparent(){return this.getNode(2)}get isInArray(){return null!==this.siblings}get siblings(){let{stack:e}=this,t=M(!1,e,-3);return Array.isArray(t)?t:null}get next(){let{siblings:e}=this;return null===e?null:e[this.index+1]}get previous(){let{siblings:e}=this;return null===e?null:e[this.index-1]}get isFirst(){return 0===this.index}get isLast(){let{siblings:e,index:t}=this;return null!==e&&t===e.length-1}get isRoot(){return 1===this.stack.length}get root(){return this.stack[0]}get ancestors(){return[...p(this,ek,eS).call(this)]}getName(){let{stack:e}=this,{length:t}=e;return t>1?M(!1,e,-2):null}getValue(){return M(!1,this.stack,-1)}getNode(e=0){let t=p(this,ek,ew).call(this,e);return -1===t?null:this.stack[t]}getParentNode(e=0){return this.getNode(e+1)}call(e,...t){let{stack:u}=this,{length:r}=u,n=M(!1,u,-1);for(let e of t)n=n[e],u.push(e,n);try{return e(this)}finally{u.length=r}}callParent(e,t=0){let u=p(this,ek,ew).call(this,t+1),r=this.stack.splice(u+1);try{return e(this)}finally{this.stack.push(...r)}}each(e,...t){let{stack:u}=this,{length:r}=u,n=M(!1,u,-1);for(let e of t)n=n[e],u.push(e,n);try{for(let t=0;t<n.length;++t)u.push(t,n[t]),e(this,t,n),u.length-=2}finally{u.length=r}}map(e,...t){let u=[];return this.each((t,r,n)=>{u[r]=e(t,r,n)},...t),u}match(...e){let t=this.stack.length-1,u=null,r=this.stack[t--];for(let n of e){if(void 0===r)return!1;let e=null;if("number"==typeof u&&(e=u,u=this.stack[t--],r=this.stack[t--]),n&&!n(r,u,e))return!1;u=this.stack[t--],r=this.stack[t--]}return!0}findAncestor(e){for(let t of p(this,ek,eS).call(this))if(e(t))return t}hasAncestor(e){for(let t of p(this,ek,eS).call(this))if(e(t))return!0;return!1}};ek=new WeakSet,ew=function(e){let{stack:t}=this;for(let u=t.length-1;u>=0;u-=2)if(!Array.isArray(t[u])&&--e<0)return u;return -1},eS=function*(){let{stack:e}=this;for(let t=e.length-3;t>=0;t-=2){let u=e[t];Array.isArray(u)||(yield u)}};var eN=new Proxy(()=>{},{get:()=>eN});function*e_(e,t){let{getVisitorKeys:u,filter:r=()=>!0}=t,n=e=>null!==e&&"object"==typeof e&&r(e);for(let t of u(e)){let u=e[t];if(Array.isArray(u))for(let e of u)n(e)&&(yield e);else n(u)&&(yield u)}}function ej(e){return(t,u,r)=>{let n=!!(null!=r&&r.backwards);if(!1===u)return!1;let{length:D}=t,o=u;for(;o>=0&&o<D;){let u=t.charAt(o);if(e instanceof RegExp){if(!e.test(u))return o}else if(!e.includes(u))return o;n?o--:o++}return(-1===o||o===D)&&o}}var eP=ej(/\s/u),eT=ej(" 	"),eL=ej(",; 	"),e$=ej(/[^\n\r]/u),eI=function(e,t,u){let r=!!(null!=u&&u.backwards);if(!1===t)return!1;let n=e.charAt(t);if(r){if("\r"===e.charAt(t-1)&&n===`
`)return t-2;if(n===`
`||"\r"===n||"\u2028"===n||"\u2029"===n)return t-1}else{if("\r"===n&&e.charAt(t+1)===`
`)return t+2;if(n===`
`||"\r"===n||"\u2028"===n||"\u2029"===n)return t+1}return t},eM=function(e,t,u={}){let r=eT(e,u.backwards?t-1:t,u),n=eI(e,r,u);return r!==n},eR=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),eW=e=>Object.keys(e).filter(e=>!eR.has(e)),eV=function(e){return e?t=>e(t,eR):eW};function ez(e,t){let u,r;(e.comments??(e.comments=[])).push(t),t.printed=!1,u=e.type||e.kind||"(unknown type)",(r=String(e.name||e.id&&("object"==typeof e.id?e.id.name:e.id)||e.key&&("object"==typeof e.key?e.key.name:e.key)||e.value&&("object"==typeof e.value?"":String(e.value))||e.operator||"")).length>20&&(r=r.slice(0,19)+"…"),t.nodeDescription=u+(r?" "+r:"")}function eq(e,t){t.leading=!0,t.trailing=!1,ez(e,t)}function eU(e,t,u){t.leading=!1,t.trailing=!1,u&&(t.marker=u),ez(e,t)}function eJ(e,t){t.leading=!1,t.trailing=!0,ez(e,t)}var eK=new WeakMap;function eH(e,t){if(eK.has(e))return eK.get(e);let{printer:{getCommentChildNodes:u,canAttachComment:r,getVisitorKeys:n},locStart:D,locEnd:o}=t;if(!r)return[];let i=((null==u?void 0:u(e,t))??[...e_(e,{getVisitorKeys:eV(n)})]).flatMap(e=>r(e)?[e]:eH(e,t));return i.sort((e,t)=>D(e)-D(t)||o(e)-o(t)),eK.set(e,i),i}var eG=()=>!1,eZ=e=>!/[\S\n\u2028\u2029]/u.test(e);function eQ(e,t){var u,r;let n=e.length;if(0===n)return;let{precedingNode:D,followingNode:o}=e[0],i=t.locStart(o),a;for(a=n;a>0;--a){let{comment:n,precedingNode:s,followingNode:l}=e[a-1];eN.strictEqual(s,D),eN.strictEqual(l,o);let c=t.originalText.slice(t.locEnd(n),i);if((null==(r=(u=t.printer).isGap)?void 0:r.call(u,c,t))??/^[\s(]*$/u.test(c))i=t.locStart(n);else break}for(let[t,{comment:u}]of e.entries())t<a?eJ(D,u):eq(o,u);for(let e of[D,o])e.comments&&e.comments.length>1&&e.comments.sort((e,u)=>t.locStart(e)-t.locStart(u));e.length=0}function eX(e,t,u){let r=u.locStart(t)-1;for(let t=1;t<e.length;++t)if(r<u.locStart(e[t]))return t-1;return 0}var eY=function(e,t){let u=t-1;u=eT(e,u,{backwards:!0}),u=eI(e,u,{backwards:!0}),u=eT(e,u,{backwards:!0});let r=eI(e,u,{backwards:!0});return u!==r};function e0(e,t){return e.node.printed=!0,t.printer.printComment(e,t)}var e2=class extends Error{name="ConfigError"},e1=class extends Error{name="UndefinedParserError"},e8={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=>"string"==typeof e||"function"==typeof e,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=>"string"==typeof e||"object"==typeof e,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 e3({plugins:e=[],showDeprecated:t=!1}={}){let u=e.flatMap(e=>e.languages??[]),r=[];for(let n of function(e){let t=[];for(let[u,r]of Object.entries(e)){let e={name:u,...r};Array.isArray(e.default)&&(e.default=M(!1,e.default,-1).value),t.push(e)}return t}(Object.assign({},...e.map(({options:e})=>e),e8)))!t&&n.deprecated||(Array.isArray(n.choices)&&(t||(n.choices=n.choices.filter(e=>!e.deprecated)),"parser"===n.name&&(n.choices=[...n.choices,...function*(e,t,u){let r=new Set(e.map(e=>e.value));for(let e of t)if(e.parsers){for(let t of e.parsers)if(!r.has(t)){r.add(t);let n=u.find(e=>e.parsers&&Object.prototype.hasOwnProperty.call(e.parsers,t)),D=e.name;null!=n&&n.name&&(D+=` (plugin: ${n.name})`),yield{value:t,description:D}}}}(n.choices,u,e)])),n.pluginDefaults=Object.fromEntries(e.filter(e=>{var t;return(null==(t=e.defaultOptions)?void 0:t[n.name])!==void 0}).map(e=>[e.name,e.defaultOptions[n.name]])),r.push(n));return{languages:u,options:r}}var e6,e7,e9,e4,e5,te=(null==(e6=globalThis.Deno)?void 0:e6.build.os)==="windows"||(null==(e9=null==(e7=globalThis.navigator)?void 0:e7.platform)?void 0:e9.startsWith("Win"))||(null==(e5=null==(e4=globalThis.process)?void 0:e4.platform)?void 0:e5.startsWith("win"))||!1;function tt(e){if("file:"!==(e=e instanceof URL?e:new URL(e)).protocol)throw TypeError(`URL must be a file URL: received "${e.protocol}"`);return e}var tu=function(e){var t;let u;return te?(u=decodeURIComponent((t=tt(t=e)).pathname.replace(/\//g,"\\").replace(/%(?![0-9A-Fa-f]{2})/g,"%25")).replace(/^\\*([A-Za-z]:)(\\|$)/,"$1\\"),""!==t.hostname&&(u=`\\\\${t.hostname}${u}`),u):decodeURIComponent(tt(e).pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))};function tr(e,t){if(!t)return;let u=String(t).split(/[/\\]/u).pop().toLowerCase();return e.find(({filenames:e})=>null==e?void 0:e.some(e=>e.toLowerCase()===u))??e.find(({extensions:e})=>null==e?void 0:e.some(e=>u.endsWith(e)))}function tn(e,t){if(t){if(String(t).startsWith("file:"))try{t=tu(t)}catch{return}if("string"==typeof t)return e.find(({isSupported:e})=>null==e?void 0:e({filepath:t}))}}var tD=function(e,t){let u=((e,t)=>{if(!(e&&null==t))return t.toReversed||!Array.isArray(t)?t.toReversed():[...t].reverse()})(!1,e.plugins).flatMap(e=>e.languages??[]),r=function(e,t){if(t)return e.find(({name:e})=>e.toLowerCase()===t)??e.find(({aliases:e})=>null==e?void 0:e.includes(t))??e.find(({extensions:e})=>null==e?void 0:e.includes(`.${t}`))}(u,t.language)??tr(u,t.physicalFile)??tr(u,t.file)??tn(u,t.physicalFile)??tn(u,t.file)??void t.physicalFile;return null==r?void 0:r.parsers[0]},to={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(e){if(null===e||"object"!=typeof e)return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(e=>to.value(e)).join(", ")}]`;let t=Object.keys(e);return 0===t.length?"{}":`{ ${t.map(t=>`${to.key(t)}: ${to.value(e[t])}`).join(", ")} }`},pair:({key:e,value:t})=>to.value({[e]:t})},ti=new Proxy(String,{get:()=>ti}),ta=Symbol.for("vnopts.VALUE_NOT_EXIST"),ts=Symbol.for("vnopts.VALUE_UNCHANGED"),tl=" ".repeat(2);function tc(e,t,u,r){return`Invalid ${ti.red(r.key(e))} value. Expected ${ti.blue(u)}, but received ${t===ta?ti.gray("nothing"):ti.red(r.value(t))}.`}function tf(e,t){if(1===e.length)return e[0];let[u,r]=e,[n,D]=e.map(e=>e.split(`
`,1)[0].length);return n>t&&n>D?r:u}var td=[],tF=[],tp=(e,t,{descriptor:u,logger:r,schemas:n})=>{let D=[`Ignored unknown option ${ti.yellow(u.pair({key:e,value:t}))}.`],o=Object.keys(n).sort().find(t=>3>function(e,t){if(e===t)return 0;let u=e;e.length>t.length&&(e=t,t=u);let r=e.length,n=t.length;for(;r>0&&e.charCodeAt(~-r)===t.charCodeAt(~-n);)r--,n--;let D=0;for(;D<r&&e.charCodeAt(D)===t.charCodeAt(D);)D++;if(r-=D,n-=D,0===r)return n;let o,i,a,s,l=0,c=0;for(;l<r;)tF[l]=e.charCodeAt(D+l),td[l]=++l;for(;c<n;)for(o=t.charCodeAt(D+c),a=c++,i=c,l=0;l<r;l++)s=o===tF[l]?a:a+1,a=td[l],i=td[l]=a>i?s>i?i+1:s:s>a?a+1:s;return i}(e,t));o&&D.push(`Did you mean ${ti.blue(u.key(o))}?`),r.warn(D.join(" "))},th=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"],tC=class{static create(e){let t=new this(e),u=Object.create(t);for(let r of th)r in e&&(u[r]=function(e,t,u){return"function"==typeof e?(...r)=>e(...r.slice(0,u-1),t,...r.slice(u-1)):()=>e}(e[r],t,tC.prototype[r].length));return u}constructor(e){this.name=e.name}default(e){}expected(e){return"nothing"}validate(e,t){return!1}deprecated(e,t){return!1}forward(e,t){}redirect(e,t){}overlap(e,t,u){return e}preprocess(e,t){return e}postprocess(e,t){return ts}},tm=class extends tC{constructor(e){super(e),this._sourceName=e.sourceName}expected(e){return e.schemas[this._sourceName].expected(e)}validate(e,t){return t.schemas[this._sourceName].validate(e,t)}redirect(e,t){return this._sourceName}},tE=class extends tC{expected(){return"anything"}validate(){return!0}},tg=class extends tC{constructor({valueSchema:e,name:t=e.name,...u}){super({...u,name:t}),this._valueSchema=e}expected(e){let{text:t,list:u}=e.normalizeExpectedResult(this._valueSchema.expected(e));return{text:t&&`an array of ${t}`,list:u&&{title:"an array of the following values",values:[{list:u}]}}}validate(e,t){if(!Array.isArray(e))return!1;let u=[];for(let r of e){let e=t.normalizeValidateResult(this._valueSchema.validate(r,t),r);!0!==e&&u.push(e.value)}return 0===u.length||{value:u}}deprecated(e,t){let u=[];for(let r of e){let e=t.normalizeDeprecatedResult(this._valueSchema.deprecated(r,t),r);!1!==e&&u.push(...e.map(({value:e})=>({value:[e]})))}return u}forward(e,t){let u=[];for(let r of e){let e=t.normalizeForwardResult(this._valueSchema.forward(r,t),r);u.push(...e.map(ty))}return u}redirect(e,t){let u=[],r=[];for(let n of e){let e=t.normalizeRedirectResult(this._valueSchema.redirect(n,t),n);"remain"in e&&u.push(e.remain),r.push(...e.redirect.map(ty))}return 0===u.length?{redirect:r}:{redirect:r,remain:u}}overlap(e,t){return e.concat(t)}};function ty({from:e,to:t}){return{from:[e],to:t}}var tB=class extends tC{expected(){return"true or false"}validate(e){return"boolean"==typeof e}};function tb(e,t){if(e===t)return 0;let u=typeof e,r=typeof t,n=["undefined","object","boolean","number","string"];return u!==r?n.indexOf(u)-n.indexOf(r):"string"!==u?Number(e)-Number(t):e.localeCompare(t)}function tv(e){return void 0===e?{}:e}function tA(e){if("string"==typeof e)return{text:e};let{text:t,list:u}=e;return function(e,t){if(!e)throw Error(t)}((t||u)!==void 0,"Unexpected `expected` result, there should be at least one field."),u?{text:t,list:{title:u.title,values:u.values.map(tA)}}:{text:t}}function tk(e,t){return!0===e||(!1===e?{value:t}:e)}function tw(e,t,u=!1){return!1!==e&&(!0===e?!!u||[{value:t}]:"value"in e?[e]:0!==e.length&&e)}function tS(e,t){return"string"==typeof e||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function tx(e,t){return void 0===e?[]:Array.isArray(e)?e.map(e=>tS(e,t)):[tS(e,t)]}function tO(e,t){let u=tx("object"==typeof e&&"redirect"in e?e.redirect:e,t);return 0===u.length?{remain:t,redirect:u}:"object"==typeof e&&"remain"in e?{remain:e.remain,redirect:u}:{redirect:u}}var tN=class extends tC{constructor(e){super(e),this._choices=function(e,t){let u=new Map;for(let r of e){let e=r[t];if(u.has(e))throw Error(`Duplicate ${t} ${JSON.stringify(e)}`);u.set(e,r)}return u}(e.choices.map(e=>e&&"object"==typeof e?e:{value:e}),"value")}expected({descriptor:e}){let t=Array.from(this._choices.keys()).map(e=>this._choices.get(e)).filter(({hidden:e})=>!e).map(e=>e.value).sort(tb).map(e.value),u=t.slice(0,-2),r=t.slice(-2);return{text:u.concat(r.join(" or ")).join(", "),list:{title:"one of the following values",values:t}}}validate(e){return this._choices.has(e)}deprecated(e){let t=this._choices.get(e);return!!t&&!!t.deprecated&&{value:e}}forward(e){let t=this._choices.get(e);return t?t.forward:void 0}redirect(e){let t=this._choices.get(e);return t?t.redirect:void 0}},t_=class extends tC{expected(){return"a number"}validate(e,t){return"number"==typeof e}},tj=class extends t_{expected(){return"an integer"}validate(e,t){return!0===t.normalizeValidateResult(super.validate(e,t),e)&&e===Math.floor(e)}},tP=class extends tC{expected(){return"a string"}validate(e){return"string"==typeof e}},tT=(e,t,u)=>{let{text:r,list:n}=u.normalizeExpectedResult(u.schemas[e].expected(u)),D=[];return r&&D.push(tc(e,t,r,u.descriptor)),n&&D.push([tc(e,t,n.title,u.descriptor)].concat(n.values.map(e=>(function e({text:t,list:u},r){let n=[];return t&&n.push(`- ${ti.blue(t)}`),u&&n.push([`- ${ti.blue(u.title)}:`].concat(u.values.map(t=>e(t,r-tl.length).replace(/^|\n/g,`$&${tl}`))).join(`
`)),tf(n,r)})(e,u.loggerPrintWidth))).join(`
`)),tf(D,u.loggerPrintWidth)},tL=(e,t,{descriptor:u})=>{let r=[`${ti.yellow("string"==typeof e?u.key(e):u.pair(e))} is deprecated`];return t&&r.push(`we now treat it as ${ti.blue("string"==typeof t?u.key(t):u.pair(t))}`),r.join("; ")+"."},t$=class{constructor(e,t){let{logger:u=console,loggerPrintWidth:r=80,descriptor:n=to,unknown:D=tp,invalid:o=tT,deprecated:i=tL,missing:a=()=>!1,required:s=()=>!1,preprocess:l=e=>e,postprocess:c=()=>ts}=t||{};this._utils={descriptor:n,logger:u||{warn:()=>{}},loggerPrintWidth:r,schemas:function(e,t){let u=Object.create(null);for(let r of e){let e=r[t];if(u[e])throw Error(`Duplicate ${t} ${JSON.stringify(e)}`);u[e]=r}return u}(e,"name"),normalizeDefaultResult:tv,normalizeExpectedResult:tA,normalizeDeprecatedResult:tw,normalizeForwardResult:tx,normalizeRedirectResult:tO,normalizeValidateResult:tk},this._unknownHandler=D,this._invalidHandler=(...e)=>{let t=o(...e);return"string"==typeof t?Error(t):t},this._deprecatedHandler=i,this._identifyMissing=(e,t)=>!(e in t)||a(e,t),this._identifyRequired=s,this._preprocess=l,this._postprocess=c,this.cleanHistory()}cleanHistory(){let e;this._hasDeprecationWarned=(e=Object.create(null),t=>{let u=JSON.stringify(t);return!!e[u]||(e[u]=!0,!1)})}normalize(e){let t={},u=[this._preprocess(e,this._utils)],r=()=>{for(;0!==u.length;){let e=u.shift(),r=this._applyNormalization(e,t);u.push(...r)}};for(let e of(r(),Object.keys(this._utils.schemas))){let r=this._utils.schemas[e];if(!(e in t)){let t=tv(r.default(this._utils));"value"in t&&u.push({[e]:t.value})}}for(let e of(r(),Object.keys(this._utils.schemas))){if(!(e in t))continue;let u=this._utils.schemas[e],r=t[e],n=u.postprocess(r,this._utils);n!==ts&&(this._applyValidation(n,e,u),t[e]=n)}return this._applyPostprocess(t),this._applyRequiredCheck(t),t}_applyNormalization(e,t){let u=[],{knownKeys:r,unknownKeys:n}=this._partitionOptionKeys(e);for(let n of r){let r=this._utils.schemas[n],D=r.preprocess(e[n],this._utils);this._applyValidation(D,n,r);let o=({from:e,to:t})=>{u.push("string"==typeof t?{[t]:e}:{[t.key]:t.value})},i=({value:e,redirectTo:t})=>{let u=tw(r.deprecated(e,this._utils),D,!0);if(!1!==u)if(!0===u)this._hasDeprecationWarned(n)||this._utils.logger.warn(this._deprecatedHandler(n,t,this._utils));else for(let{value:e}of u){let u={key:n,value:e};if(!this._hasDeprecationWarned(u)){let r="string"==typeof t?{key:t,value:e}:t;this._utils.logger.warn(this._deprecatedHandler(u,r,this._utils))}}};tx(r.forward(D,this._utils),D).forEach(o);let a=tO(r.redirect(D,this._utils),D);if(a.redirect.forEach(o),"remain"in a){let e=a.remain;t[n]=n in t?r.overlap(t[n],e,this._utils):e,i({value:e})}for(let{from:e,to:t}of a.redirect)i({value:e,redirectTo:t})}for(let r of n){let n=e[r];this._applyUnknownHandler(r,n,t,(e,t)=>{u.push({[e]:t})})}return u}_applyRequiredCheck(e){for(let t of Object.keys(this._utils.schemas))if(this._identifyMissing(t,e)&&this._identifyRequired(t))throw this._invalidHandler(t,ta,this._utils)}_partitionOptionKeys(e){let[t,u]=function(e,t){let u=[],r=[];for(let n of e)t(n)?u.push(n):r.push(n);return[u,r]}(Object.keys(e).filter(t=>!this._identifyMissing(t,e)),e=>e in this._utils.schemas);return{knownKeys:t,unknownKeys:u}}_applyValidation(e,t,u){let r=tk(u.validate(e,this._utils),e);if(!0!==r)throw this._invalidHandler(t,r.value,this._utils)}_applyUnknownHandler(e,t,u,r){let n=this._unknownHandler(e,t,this._utils);if(n)for(let e of Object.keys(n)){if(this._identifyMissing(e,n))continue;let t=n[e];e in this._utils.schemas?r(e,t):u[e]=t}}_applyPostprocess(e){let t=this._postprocess(e,this._utils);if(t!==ts){if(t.delete)for(let u of t.delete)delete e[u];if(t.override){let{knownKeys:u,unknownKeys:r}=this._partitionOptionKeys(t.override);for(let r of u){let u=t.override[r];this._applyValidation(u,r,this._utils.schemas[r]),e[r]=u}for(let u of r){let r=t.override[u];this._applyUnknownHandler(u,r,e,(t,u)=>{let r=this._utils.schemas[t];this._applyValidation(u,t,r),e[t]=u})}}}}},tI=function(e,t,{logger:u=!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=to;let a=n?Array.isArray(n)?(e,t)=>n.includes(e)?{[e]:t}:void 0:(e,t)=>({[e]:t}):(e,t,u)=>{let{_:r,...n}=u.schemas;return tp(e,t,{...u,schemas:n})},s=new t$(function(e,{isCLI:t,FlagSchema:u}){let r=[];for(let n of(t&&r.push(tE.create({name:"_"})),e))r.push(function(e,{isCLI:t,optionInfos:u,FlagSchema:r}){let{name:n}=e,D={name:n},o,i={};switch(e.type){case"int":o=tj,t&&(D.preprocess=Number);break;case"string":case"path":o=tP;break;case"choice":o=tN,D.choices=e.choices.map(t=>null!=t&&t.redirect?{...t,redirect:{to:{key:e.name,value:t.redirect}}}:t);break;case"boolean":o=tB;break;case"flag":o=r,D.flags=u.flatMap(e=>[e.alias,e.description&&e.name,e.oppositeDescription&&`no-${e.name}`].filter(Boolean));break;default:throw Error(`Unexpected type ${e.type}`)}if(e.exception?D.validate=(t,u,r)=>e.exception(t)||u.validate(t,r):D.validate=(e,t,u)=>void 0===e||t.validate(e,u),e.redirect&&(i.redirect=t=>t?{to:"string"==typeof e.redirect?e.redirect:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(i.deprecated=!0),t&&!e.array){let e=D.preprocess||(e=>e);D.preprocess=(t,u,r)=>u.preprocess(e(Array.isArray(t)?M(!1,t,-1):t),r)}return e.array?tg.create({...t?{preprocess:e=>Array.isArray(e)?e:[e]}:{},...i,valueSchema:o.create(D)}):o.create({...D,...i})}(n,{isCLI:t,optionInfos:e,FlagSchema:u})),n.alias&&t&&r.push(tm.create({name:n.alias,sourceName:n.name}));return r}(t,{isCLI:r,FlagSchema:D}),{logger:u,unknown:a,descriptor:i}),l=!1!==u;l&&o&&(s._hasDeprecationWarned=o);let c=s.normalize(e);return l&&(o=s._hasDeprecationWarned),c},tM=(e,t,u)=>{if(!(e&&null==t)){if(t.findLast)return t.findLast(u);for(let e=t.length-1;e>=0;e--){let r=t[e];if(u(r,e,t))return r}}};function tR(e,t){if(!t)throw Error("parserName is required.");let u=tM(!1,e,e=>e.parsers&&Object.prototype.hasOwnProperty.call(e.parsers,t));if(u)return u;let r=`Couldn't resolve parser "${t}".`;throw new e2(r+=" Plugins must be explicitly added to the standalone bundle.")}function tW({plugins:e,parser:t}){return tV(tR(e,t),t)}function tV(e,t){let u=e.parsers[t];return"function"==typeof u?u():u}var tz={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};async function tq(e,t={}){var u,r;let n,D={...e};if(!D.parser)if(D.filepath){if(D.parser=tD(D,{physicalFile:D.filepath}),!D.parser)throw new e1(`No parser could be inferred for file "${D.filepath}".`)}else throw new e1("No parser and no file path given, couldn't infer a parser.");let o=e3({plugins:e.plugins,showDeprecated:!0}).options,i={...tz,...Object.fromEntries(o.filter(e=>void 0!==e.default).map(e=>[e.name,e.default]))},a=tR(D.plugins,D.parser),s=await tV(a,D.parser);D.astFormat=s.astFormat,D.locEnd=s.locEnd,D.locStart=s.locStart;let l=null!=(u=a.printers)&&u[s.astFormat]?a:function(e,t){if(!t)throw Error("astFormat is required.");let u=tM(!1,e,e=>e.printers&&Object.prototype.hasOwnProperty.call(e.printers,t));if(u)return u;let r=`Couldn't find plugin for AST format "${t}".`;throw new e2(r+=" Plugins must be explicitly added to the standalone bundle.")}(D.plugins,s.astFormat);D.printer=await (r=s.astFormat,"function"==typeof(n=l.printers[r])?n():n);let c=l.defaultOptions?Object.fromEntries(Object.entries(l.defaultOptions).filter(([,e])=>void 0!==e)):{};for(let[e,t]of Object.entries({...i,...c}))(null===D[e]||void 0===D[e])&&(D[e]=t);return"json"===D.parser&&(D.trailingComma="none"),tI(D,o,{passThrough:Object.keys(tz),...t})}var tU=((e,t,u,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of l(t))f.call(e,n)||n===u||a(e,n,{get:()=>t[n],enumerable:!(r=s(t,n))||r.enumerable});return e})(a(null!=(D=h())?i(c(D)):{},"default",{value:D,enumerable:!0}),D);async function tJ(e,t){let u,r=await tW(t),n=r.preprocess?r.preprocess(e,t):e;t.originalText=n;try{u=await r.parse(n,t,t)}catch(t){!function(e,t){let{loc:u}=e;if(u){let r=(0,tU.codeFrameColumns)(t,u,{highlightCode:!0});throw e.message+=`
`+r,e.codeFrame=r,e}throw e}(t,e)}return{text:n,ast:u}}async function tK(e,t,u,r,n){let{embeddedLanguageFormatting:D,printer:{embed:o,hasPrettierIgnore:i=()=>!1,getVisitorKeys:a}}=u;if(!o||"auto"!==D)return;if(o.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=eV(o.getVisitorKeys??a),l=[];!function t(){let{node:r}=e;if(null===r||"object"!=typeof r||i(e))return;for(let u of s(r))Array.isArray(r[u])?e.each(t,u):e.call(t,u);let D=o(e,u);if(D){if("function"==typeof D)return void l.push({print:D,node:r,pathStack:[...e.stack]});n.set(r,D)}}();let c=e.stack;for(let{print:r,node:D,pathStack:o}of l)try{e.stack=o;let i=await r(f,t,e,u);i&&n.set(D,i)}catch(e){if(globalThis.PRETTIER_DEBUG)throw e}function f(e,t){return tH(e,t,u,r)}e.stack=c}async function tH(e,t,u,r){let n=await tq({...u,...t,parentParser:u.parser,originalText:e,cursorOffset:void 0,rangeStart:void 0,rangeEnd:void 0},{passThrough:!0}),{ast:D}=await tJ(e,n);return Q(await r(D,n))}var tG=function(e,t){let{originalText:u,[Symbol.for("comments")]:r,locStart:n,locEnd:D,[Symbol.for("printedComments")]:o}=t,{node:i}=e,a=n(i),s=D(i);for(let e of r)n(e)>=a&&D(e)<=s&&o.add(e);return u.slice(a,s)};async function tZ(e,t){({ast:e}=await tX(e,t));let u=new Map,r=new eO(e),n=()=>{},D=new Map;await tK(r,i,t,tZ,D);let o=await tQ(r,t,i,void 0,D);if(function(e){let{[Symbol.for("comments")]:t,[Symbol.for("printedComments")]:u}=e;for(let e of t){if(!e.printed&&!u.has(e))throw Error('Comment "'+e.value.trim()+'" was not printed. Please report this error!');delete e.printed}}(t),t.cursorOffset>=0){if(t.nodeAfterCursor&&!t.nodeBeforeCursor)return[ec,o];if(t.nodeBeforeCursor&&!t.nodeAfterCursor)return[o,ec]}return o;function i(e,t){return void 0===e||e===r?a(t):Array.isArray(e)?r.call(()=>a(t),...e):r.call(()=>a(t),e)}function a(e){n(r);let o=r.node;if(null==o)return"";let a=o&&"object"==typeof o&&void 0===e;if(a&&u.has(o))return u.get(o);let s=tQ(r,t,i,e,D);return a&&u.set(o,s),s}}function tQ(e,t,u,r,n){var D;let{node:o}=e,{printer:i}=t,a;switch(a=null!=(D=i.hasPrettierIgnore)&&D.call(i,e)?tG(e,t):n.has(o)?n.get(o):i.print(e,t,u,r),o){case t.cursorNode:a=Y(a,e=>[ec,e,ec]);break;case t.nodeBeforeCursor:a=Y(a,e=>[e,ec]);break;case t.nodeAfterCursor:a=Y(a,e=>[ec,e])}return!i.printComment||i.willPrintOwnComments&&i.willPrintOwnComments(e,t)||(a=function(e,t,u){let{leading:r,trailing:n}=function(e,t){let u=e.node;if(!u)return{};let r=t[Symbol.for("printedComments")];if(0===(u.comments||[]).filter(e=>!r.has(e)).length)return{leading:"",trailing:""};let n=[],D=[],o;return e.each(()=>{let u=e.node;if(null!=r&&r.has(u))return;let{leading:i,trailing:a}=u;i?n.push(function(e,t){var u;let r=e.node,n=[e0(e,t)],{printer:D,originalText:o,locStart:i,locEnd:a}=t;if(null==(u=D.isBlockComment)?void 0:u.call(D,r)){let e=eM(o,a(r))?eM(o,i(r),{backwards:!0})?es:ea:" ";n.push(e)}else n.push(es);let s=eI(o,eT(o,a(r)));return!1!==s&&eM(o,s)&&n.push(es),n}(e,t)):a&&(o=function(e,t,u){var r;let n=e.node,D=e0(e,t),{printer:o,originalText:i,locStart:a}=t,s=null==(r=o.isBlockComment)?void 0:r.call(o,n);return null!=u&&u.hasLineSuffix&&!(null!=u&&u.isBlock)||eM(i,a(n),{backwards:!0})?{doc:en([es,eY(i,a(n))?es:"",D]),isBlock:s,hasLineSuffix:!0}:!s||null!=u&&u.hasLineSuffix?{doc:[en([" ",D]),eD],isBlock:s,hasLineSuffix:!0}:{doc:[" ",D],isBlock:s,hasLineSuffix:!1}}(e,t,o),D.push(o.doc))},"comments"),{leading:n,trailing:D}}(e,u);return r||n?Y(t,e=>[r,e,n]):t}(e,a,t)),a}async function tX(e,t){let u=e.comments??[];t[Symbol.for("comments")]=u,t[Symbol.for("printedComments")]=new Set,function(e,t){let{comments:u}=e;if(delete e.comments,!(Array.isArray(u)&&u.length>0)||!t.printer.canAttachComment)return;let r=[],{printer:{experimentalFeatures:{avoidAstMutation:n=!1}={},handleComments:D={}},originalText:o}=t,{ownLine:i=eG,endOfLine:a=eG,remaining:s=eG}=D,l=u.map((r,n)=>({...function e(t,u,r,n){let{locStart:D,locEnd:o}=r,i=D(u),a=o(u),s=eH(t,r),l,c,f=0,d=s.length;for(;f<d;){let t=f+d>>1,n=s[t],F=D(n),p=o(n);if(F<=i&&a<=p)return e(n,u,r,n);if(p<=i){l=n,f=t+1;continue}if(a<=F){c=n,d=t;continue}throw Error("Comment location overlaps with node location")}if((null==n?void 0:n.type)==="TemplateLiteral"){let{quasis:e}=n,t=eX(e,u,r);l&&eX(e,l,r)!==t&&(l=null),c&&eX(e,c,r)!==t&&(c=null)}return{enclosingNode:n,precedingNode:l,followingNode:c}}(e,r,t),comment:r,text:o,options:t,ast:e,isLastComment:u.length-1===n}));for(let[e,t]of l.entries()){let{comment:u,precedingNode:D,enclosingNode:o,followingNode:c,text:f,options:d,ast:F,isLastComment:p}=t,h;if(n?h=[t]:(u.enclosingNode=o,u.precedingNode=D,u.followingNode=c,h=[u,f,d,F,p]),function(e,t,u,r){let{comment:n,precedingNode:D}=u[r],{locStart:o,locEnd:i}=t,a=o(n);if(D)for(let t=r-1;t>=0;t--){let{comment:r,precedingNode:n}=u[t];if(n!==D||!eZ(e.slice(i(r),a)))break;a=o(r)}return eM(e,a,{backwards:!0})}(f,d,l,e))u.placement="ownLine",i(...h)||(c?eq(c,u):D?eJ(D,u):o?eU(o,u):eU(F,u));else if(function(e,t,u,r){let{comment:n,followingNode:D}=u[r],{locStart:o,locEnd:i}=t,a=i(n);if(D)for(let t=r+1;t<u.length;t++){let{comment:r,followingNode:n}=u[t];if(n!==D||!eZ(e.slice(a,o(r))))break;a=i(r)}return eM(e,a)}(f,d,l,e))u.placement="endOfLine",a(...h)||(D?eJ(D,u):c?eq(c,u):o?eU(o,u):eU(F,u));else if(u.placement="remaining",!s(...h))if(D&&c){let e=r.length;e>0&&r[e-1].followingNode!==c&&eQ(r,d),r.push(t)}else D?eJ(D,u):c?eq(c,u):o?eU(o,u):eU(F,u)}if(eQ(r,t),!n)for(let e of u)delete e.precedingNode,delete e.enclosingNode,delete e.followingNode}(e,t);let{printer:{preprocess:r}}=t;return{ast:e=r?await r(e,t):e,comments:u}}var tY=function(e,t){let{cursorOffset:u,locStart:r,locEnd:n}=t,D=eV(t.printer.getVisitorKeys),o=e,i=[e];for(let t of function*(e,t){let u=[e];for(let e=0;e<u.length;e++)for(let r of e_(u[e],t))yield r,u.push(r)}(e,{getVisitorKeys:D,filter:e=>r(e)<=u&&n(e)>=u}))i.push(t),o=t;if(e_(o,{getVisitorKeys:D}).next().done)return{cursorNode:o};let a,s,l=-1,c=1/0;for(;i.length>0&&(void 0===a||void 0===s);){o=i.pop();let e=void 0!==a,t=void 0!==s;for(let i of e_(o,{getVisitorKeys:D})){if(!e){let e=n(i);e<=u&&e>l&&(a=i,l=e)}if(!t){let e=r(i);e>=u&&e<c&&(s=i,c=e)}}}return{nodeBeforeCursor:a,nodeAfterCursor:s}},t0=function(e,t){let{printer:{massageAstNode:u,getVisitorKeys:r}}=t;if(!u)return e;let n=eV(r),D=u.ignoredProperties??new Set;return function e(t,r){if(null===t||"object"!=typeof t)return t;if(Array.isArray(t))return t.map(t=>e(t,r)).filter(Boolean);let o={},i=new Set(n(t));for(let u in t)!Object.prototype.hasOwnProperty.call(t,u)||D.has(u)||(i.has(u)?o[u]=e(t[u],t):o[u]=t[u]);let a=u(t,o,r);if(null!==a)return a??o}(e)};function t2(e){let t=((e,t,u)=>{if(!(e&&null==t)){if(t.findLastIndex)return t.findLastIndex(u);for(let e=t.length-1;e>=0;e--)if(u(t[e],e,t))return e;return -1}})(!1,e,e=>"Program"!==e.type&&"File"!==e.type);return -1===t?e:e.slice(0,t+1)}function t1(e,t,u,r,n=[],D){let{locStart:o,locEnd:i}=u,a=o(e),s=i(e);if(!(t>s||t<a||"rangeEnd"===D&&t===a||"rangeStart"===D&&t===s)){for(let o of eH(e,u)){let i=t1(o,t,u,r,[e,...n],D);if(i)return i}if(!r||r(e,n[0]))return{node:e,parentNodes:n}}}var t8=new Set(["JsonRoot","ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","UnaryExpression","TemplateLiteral"]),t3=new Set(["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"]);function t6(e,t,u){if(!t)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":var r;return r=t.type,"DeclareExportDeclaration"!==(null==u?void 0:u.type)&&"TypeParameterDeclaration"!==r&&("Directive"===r||"TypeAlias"===r||"TSExportAssignment"===r||r.startsWith("Declare")||r.startsWith("TSDeclare")||r.endsWith("Statement")||r.endsWith("Declaration"));case"json":case"json5":case"jsonc":case"json-stringify":return t8.has(t.type);case"graphql":return t3.has(t.kind);case"vue":return"root"!==t.tag}return!1}var t7=Symbol("cursor");async function t9(e,t,u=0){if(!e||0===e.trim().length)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:r,text:n}=await tJ(e,t);t.cursorOffset>=0&&(t={...t,...tY(r,t)});let D=await tZ(r,t,u);u>0&&(D=ed([es,D],u,t.tabWidth));let o=eA(D,t);if(u>0){let e=o.formatted.trim();void 0!==o.cursorNodeStart&&(o.cursorNodeStart-=o.formatted.indexOf(e),o.cursorNodeStart<0&&(o.cursorNodeStart=0,o.cursorNodeText=o.cursorNodeText.trimStart()),o.cursorNodeStart+o.cursorNodeText.length>e.length&&(o.cursorNodeText=o.cursorNodeText.trimEnd())),o.formatted=e+y(t.endOfLine)}let i=t[Symbol.for("comments")];if(t.cursorOffset>=0){let e,u,r,D;if((t.cursorNode||t.nodeBeforeCursor||t.nodeAfterCursor)&&o.cursorNodeText)if(r=o.cursorNodeStart,D=o.cursorNodeText,t.cursorNode)e=t.locStart(t.cursorNode),u=n.slice(e,t.locEnd(t.cursorNode));else{if(!t.nodeBeforeCursor&&!t.nodeAfterCursor)throw Error("Cursor location must contain at least one of cursorNode, nodeBeforeCursor, nodeAfterCursor");e=t.nodeBeforeCursor?t.locEnd(t.nodeBeforeCursor):0;let r=t.nodeAfterCursor?t.locStart(t.nodeAfterCursor):n.length;u=n.slice(e,r)}else e=0,u=n,r=0,D=o.formatted;let a=t.cursorOffset-e;if(u===D)return{formatted:o.formatted,cursorOffset:r+a,comments:i};let s=u.split("");s.splice(a,0,t7);let l=D.split(""),c=g.diff(s,l,void 0),f=r;for(let e of c)if(e.removed){if(e.value.includes(t7))break}else f+=e.count;return{formatted:o.formatted,cursorOffset:f,comments:i}}return{formatted:o.formatted,cursorOffset:-1,comments:i}}async function t4(e,t){let{ast:u,text:r}=await tJ(e,t),{rangeStart:n,rangeEnd:D}=function(e,t,u){let r,n,{rangeStart:D,rangeEnd:o,locStart:i,locEnd:a}=t;eN.ok(o>D);let s=e.slice(D,o).search(/\S/u),l=-1===s;if(!l)for(D+=s;o>D&&!/\S/u.test(e[o-1]);--o);let c=t1(u,D,t,(e,u)=>t6(t,e,u),[],"rangeStart"),f=l?c:t1(u,o,t,e=>t6(t,e),[],"rangeEnd");if(!c||!f)return{rangeStart:0,rangeEnd:0};if((({parser:e})=>"json"===e||"json5"===e||"jsonc"===e||"json-stringify"===e)(t)){let e,t,u=(e=[c.node,...c.parentNodes],t=new Set([f.node,...f.parentNodes]),e.find(e=>t8.has(e.type)&&t.has(e)));r=u,n=u}else({startNode:r,endNode:n}=function(e,t,{locStart:u,locEnd:r}){let n=e.node,D=t.node;if(n===D)return{startNode:n,endNode:D};let o=u(e.node);for(let e of t2(t.parentNodes))if(u(e)>=o)D=e;else break;let i=r(t.node);for(let t of t2(e.parentNodes)){if(r(t)<=i)n=t;else break;if(n===D)break}return{startNode:n,endNode:D}}(c,f,t));return{rangeStart:Math.min(i(r),i(n)),rangeEnd:Math.max(a(r),a(n))}}(r,t,u),o=r.slice(n,D),i=Math.min(n,r.lastIndexOf(`
`,n)+1),a=ex(r.slice(i,n).match(/^\s*/u)[0],t.tabWidth),s=await t9(o,{...t,rangeStart:0,rangeEnd:1/0,cursorOffset:t.cursorOffset>n&&t.cursorOffset<=D?t.cursorOffset-n:-1,endOfLine:"lf"},a),l=s.formatted.trimEnd(),{cursorOffset:c}=t;c>D?c+=l.length-o.length:s.cursorOffset>=0&&(c=s.cursorOffset+n);let f=r.slice(0,n)+l+r.slice(D);if("lf"!==t.endOfLine){let e=y(t.endOfLine);c>=0&&e===`\r
`&&(c+=B(f.slice(0,c),`
`)),f=m(!1,f,`
`,e)}return{formatted:f,cursorOffset:c,comments:s.comments}}function t5(e,t,u){return"number"!=typeof t||Number.isNaN(t)||t<0||t>e.length?u:t}function ue(e,t){let{cursorOffset:u,rangeStart:r,rangeEnd:n}=t;return u=t5(e,u,-1),r=t5(e,r,0),n=t5(e,n,e.length),{...t,cursorOffset:u,rangeStart:r,rangeEnd:n}}function ut(e,t){var u;let r,{cursorOffset:n,rangeStart:D,rangeEnd:o,endOfLine:i}=ue(e,t),a="\uFEFF"===e.charAt(0);if(a&&(e=e.slice(1),n--,D--,o--),"auto"===i&&(i=-1!==(r=(u=e).indexOf("\r"))?u.charAt(r+1)===`
`?"crlf":"cr":"lf"),e.includes("\r")){let t=t=>B(e.slice(0,Math.max(t,0)),`\r
`);n-=t(n),D-=t(D),o-=t(o),e=m(!1,e,/\r\n?/gu,`
`)}return{hasBOM:a,text:e,options:ue(e,{...t,cursorOffset:n,rangeStart:D,rangeEnd:o,endOfLine:i})}}async function uu(e,t){let u=await tW(t);return!u.hasPragma||u.hasPragma(e)}async function ur(e,t){var u;let r=await tW(t);return null==(u=r.hasIgnorePragma)?void 0:u.call(r,e)}async function un(e,t){let u,{hasBOM:r,text:n,options:D}=ut(e,await tq(t));return D.rangeStart>=D.rangeEnd&&""!==n||D.requirePragma&&!await uu(n,D)||D.checkIgnorePragma&&await ur(n,D)?{formatted:e,cursorOffset:t.cursorOffset,comments:[]}:(D.rangeStart>0||D.rangeEnd<n.length?u=await t4(n,D):(!D.requirePragma&&D.insertPragma&&D.printer.insertPragma&&!await uu(n,D)&&(n=D.printer.insertPragma(n)),u=await t9(n,D)),r&&(u.formatted="\uFEFF"+u.formatted,u.cursorOffset>=0&&u.cursorOffset++),u)}async function uD(e,t,u){let{text:r,options:n}=ut(e,await tq(t)),D=await tJ(r,n);return u&&(u.preprocessForPrint&&(D.ast=await tX(D.ast,n)),u.massage&&(D.ast=t0(D.ast,n))),D}async function uo(e,t){return t=await tq(t),eA(await tZ(e,t),t)}async function ui(e,t){let u=function(e){let t=Object.create(null),u=new Set;return function e(t,u,n){var D,o;if("string"==typeof t)return JSON.stringify(t);if(Array.isArray(t)){let u=t.map(e).filter(Boolean);return 1===u.length?u[0]:`[${u.join(", ")}]`}if(t.type===T){let e=(null==(D=null==n?void 0:n[u+1])?void 0:D.type)===$;return t.literal?e?"literalline":"literallineWithoutBreakParent":t.hard?e?"hardline":"hardlineWithoutBreakParent":t.soft?"softline":"line"}if(t.type===$)return(null==(o=null==n?void 0:n[u-1])?void 0:o.type)===T&&n[u-1].hard?void 0:"breakParent";if(t.type===S)return"trim";if(t.type===k)return"indent("+e(t.contents)+")";if(t.type===w)return t.n===-1/0?"dedentToRoot("+e(t.contents)+")":t.n<0?"dedent("+e(t.contents)+")":"root"===t.n.type?"markAsRoot("+e(t.contents)+")":"align("+JSON.stringify(t.n)+", "+e(t.contents)+")";if(t.type===N)return"ifBreak("+e(t.breakContents)+(t.flatContents?", "+e(t.flatContents):"")+(t.groupId?(t.flatContents?"":', ""')+`, { groupId: ${r(t.groupId)} }`:"")+")";if(t.type===_){let u=[];t.negate&&u.push("negate: true"),t.groupId&&u.push(`groupId: ${r(t.groupId)}`);let n=u.length>0?`, { ${u.join(", ")} }`:"";return`indentIfBreak(${e(t.contents)}${n})`}if(t.type===x){let u=[];t.break&&"propagated"!==t.break&&u.push("shouldBreak: true"),t.id&&u.push(`id: ${r(t.id)}`);let n=u.length>0?`, { ${u.join(", ")} }`:"";return t.expandedStates?`conditionalGroup([${t.expandedStates.map(t=>e(t)).join(",")}]${n})`:`group(${e(t.contents)}${n})`}if(t.type===O)return`fill([${t.parts.map(t=>e(t)).join(", ")}])`;if(t.type===j)return"lineSuffix("+e(t.contents)+")";if(t.type===P)return"lineSuffixBoundary";if(t.type===L)return`label(${JSON.stringify(t.label)}, ${e(t.contents)})`;if(t.type===A)return"cursor";throw Error("Unknown doc type "+t.type)}(function e(t){var u;if(!t)return"";if(Array.isArray(t)){let u=[];for(let r of t)if(Array.isArray(r))u.push(...e(r));else{let t=e(r);""!==t&&u.push(t)}return u}return t.type===N?{...t,breakContents:e(t.breakContents),flatContents:e(t.flatContents)}:t.type===x?{...t,contents:e(t.contents),expandedStates:null==(u=t.expandedStates)?void 0:u.map(e)}:t.type===O?{type:"fill",parts:t.parts.map(e)}:t.contents?{...t,contents:e(t.contents)}:t}(e));function r(e){if("symbol"!=typeof e)return JSON.stringify(String(e));if(e in t)return t[e];let r=e.description||"symbol";for(let n=0;;n++){let D=r+(n>0?` #${n}`:"");if(!u.has(D))return u.add(D),t[e]=`Symbol.for(${JSON.stringify(D)})`}}}(e),{formatted:r}=await un(u,{...t,parser:"__js_expression"});return r}async function ua(e,t){t=await tq(t);let{ast:u}=await tJ(e,t);return t.cursorOffset>=0&&(t={...t,...tY(u,t)}),tZ(u,t)}async function us(e,t){return eA(e,await tq(t))}var ul={};F(ul,{builders:()=>uc,printer:()=>uf,utils:()=>ud});var uc={join:ef,line:ea,softline:{type:T,soft:!0},hardline:es,literalline:el,group:er,conditionalGroup:function(e,t){return er(e[0],{...t,expandedStates:e})},fill:function(e){return ee(e),{type:O,parts:e}},lineSuffix:en,lineSuffixBoundary:{type:P},cursor:ec,breakParent:eD,ifBreak:function(e,t="",u={}){return ee(e),""!==t&&ee(t),{type:N,breakContents:e,flatContents:t,groupId:u.groupId}},trim:{type:S},indent:et,indentIfBreak:function(e,t){return ee(e),{type:_,contents:e,groupId:t.groupId,negate:t.negate}},align:eu,addAlignmentToDoc:ed,markAsRoot:function(e){return eu({type:"root"},e)},dedentToRoot:function(e){return eu(-1/0,e)},dedent:function(e){return eu(-1,e)},hardlineWithoutBreakParent:eo,literallineWithoutBreakParent:ei,label:function(e,t){return ee(t),e?{type:L,label:e,contents:t}:t},concat:e=>e},uf={printDocToString:eA},ud={willBreak:function(e){return U(e,J,!1)},traverseDoc:z,findInDoc:U,mapDoc:q,removeLines:function(e){return q(e,H)},stripTrailingHardline:Q,replaceEndOfLine:function(e,t=el){return q(e,e=>"string"==typeof e?ef(t,e.split(`
`)):e)},canBreak:function(e){return U(e,X,!1)}},uF="3.6.2",up={};F(up,{addDanglingComment:()=>eU,addLeadingComment:()=>eq,addTrailingComment:()=>eJ,getAlignmentSize:()=>ex,getIndentSize:()=>ug,getMaxContinuousCount:()=>uy,getNextNonSpaceNonCommentCharacter:()=>uB,getNextNonSpaceNonCommentCharacterIndex:()=>uw,getPreferredQuote:()=>ub,getStringWidth:()=>eh,hasNewline:()=>eM,hasNewlineInRange:()=>uv,hasSpaces:()=>uA,isNextLineEmpty:()=>ux,isNextLineEmptyAfterIndex:()=>uE,isPreviousLineEmpty:()=>uS,makeString:()=>uk,skip:()=>ej,skipEverythingButNewLine:()=>e$,skipInlineComment:()=>uh,skipNewline:()=>eI,skipSpaces:()=>eT,skipToLineEnd:()=>eL,skipTrailingComment:()=>uC,skipWhitespace:()=>eP});var uh=function(e,t){if(!1===t)return!1;if("/"===e.charAt(t)&&"*"===e.charAt(t+1)){for(let u=t+2;u<e.length;++u)if("*"===e.charAt(u)&&"/"===e.charAt(u+1))return u+2}return t},uC=function(e,t){return!1!==t&&("/"===e.charAt(t)&&"/"===e.charAt(t+1)?e$(e,t):t)},um=function(e,t){let u=null,r=t;for(;r!==u;)u=r,r=eT(e,r),r=uh(e,r),r=uC(e,r),r=eI(e,r);return r},uE=function(e,t){let u=null,r=t;for(;r!==u;)u=r,r=eL(e,r),r=uh(e,r),r=eT(e,r);return r=uC(e,r),!1!==(r=eI(e,r))&&eM(e,r)},ug=function(e,t){let u=e.lastIndexOf(`
`);return -1===u?0:ex(e.slice(u+1).match(/^[\t ]*/u)[0],t)},uy=function(e,t){let u=e.match(RegExp(`(${function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(t)})+`,"gu"));return null===u?0:u.reduce((e,u)=>Math.max(e,u.length/t.length),0)},uB=function(e,t){let u=um(e,t);return!1===u?"":e.charAt(u)},ub=function(e,t){let u=!0===t||"'"===t?"'":'"',r="'"===u?'"':"'",n=0,D=0;for(let t of e)t===u?n++:t===r&&D++;return n>D?r:u},uv=function(e,t,u){for(let r=t;r<u;++r)if(e.charAt(r)===`
`)return!0;return!1},uA=function(e,t,u={}){return eT(e,u.backwards?t-1:t,u)!==t},uk=function(e,t,u){let r='"'===t?"'":'"',n=m(!1,e,/\\(.)|(["'])/gsu,(e,n,D)=>n===r?n:D===t?"\\"+D:D||(u&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(n)?n:"\\"+n));return t+n+t};function uw(e,t){return 2==arguments.length||"number"==typeof t?um(e,t):function(e,t,u){return um(e,u(t))}(...arguments)}function uS(e,t){return 2==arguments.length||"number"==typeof t?eY(e,t):function(e,t,u){return eY(e,u(t))}(...arguments)}function ux(e,t){return 2==arguments.length||"number"==typeof t?uE(e,t):function(e,t,u){return uE(e,u(t))}(...arguments)}function uO(e,t=1){return async(...u)=>{let r=u[t]??{},n=r.plugins??[];return u[t]={...r,plugins:Array.isArray(n)?n:Object.values(n)},e(...u)}}var uN=uO(un);async function u_(e,t){let{formatted:u}=await uN(e,{...t,cursorOffset:-1});return u}async function uj(e,t){return await u_(e,t)===e}var uP=uO(e3,0),uT={parse:uO(uD),formatAST:uO(uo),formatDoc:uO(ui),printToDoc:uO(ua),printDocToString:uO(us)},uL=C}};
//# sourceMappingURL=7293.js.map