@bagelink/vue 1.20.76 → 1.20.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/StructuredEditor-HFOfODf9.cjs +2 -0
- package/dist/StructuredEditor-w0UY60b7.js +2431 -0
- package/dist/StructuredEditor.css +1 -0
- package/dist/babel-BVvTH0ev.js +10053 -0
- package/dist/babel-BzIDwrmk.cjs +16 -0
- package/dist/components/form/inputs/CodeEditor/Index.vue.d.ts +45 -28
- package/dist/components/form/inputs/CodeEditor/Index.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/CodeEditor/SearchPanel.vue.d.ts +10 -0
- package/dist/components/form/inputs/CodeEditor/SearchPanel.vue.d.ts.map +1 -0
- package/dist/components/form/inputs/CodeEditor/StructuredEditor.vue.d.ts +27 -0
- package/dist/components/form/inputs/CodeEditor/StructuredEditor.vue.d.ts.map +1 -0
- package/dist/components/form/inputs/CodeEditor/formatCode.d.ts +4 -0
- package/dist/components/form/inputs/CodeEditor/formatCode.d.ts.map +1 -0
- package/dist/components/form/inputs/DatePicker.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/RichText/index.vue.d.ts.map +1 -1
- package/dist/core.css +3 -1
- package/dist/dist-B-MCiFKR.cjs +10 -0
- package/dist/dist-B0uc2InW.js +6 -0
- package/dist/dist-BIAEQGHn.cjs +1 -0
- package/dist/dist-BLxHnfU6.js +1071 -0
- package/dist/dist-BRA2DQF2.cjs +1 -0
- package/dist/dist-BnLdfA7w.js +69 -0
- package/dist/dist-CL50Ff42.cjs +1 -0
- package/dist/dist-CwUttjIh.js +1100 -0
- package/dist/dist-CzY35u4H.cjs +1 -0
- package/dist/dist-D8OWrPLr.js +1336 -0
- package/dist/dist-DSCI9g6w.cjs +13 -0
- package/dist/dist-DsBgijLf.cjs +1 -0
- package/dist/dist-GbVY_Jpv.cjs +1 -0
- package/dist/dist-IV7z-zur.js +11909 -0
- package/dist/dist-Mr0UMyoK.js +1063 -0
- package/dist/dist-jq7acmcZ.js +6 -0
- package/dist/estree-CKgw47OZ.js +8211 -0
- package/dist/estree-HqeJuE3g.cjs +44 -0
- package/dist/html-B-hsQYII.js +7289 -0
- package/dist/html-BrqW5pT-.cjs +25 -0
- package/dist/index.cjs +1 -764
- package/dist/index.mjs +308 -65621
- package/dist/postcss-Bk65KKdh.js +6703 -0
- package/dist/postcss-BxY0xtVZ.cjs +61 -0
- package/dist/src-BACj3hjY.cjs +764 -0
- package/dist/src-SwfYbKT-.js +65571 -0
- package/dist/src.css +1 -0
- package/dist/standalone-CAcRm_h6.cjs +29 -0
- package/dist/standalone-D-HcbQmf.js +3549 -0
- package/dist/style.css +3 -1
- package/dist/utils/calendarDate.d.ts +6 -0
- package/dist/utils/calendarDate.d.ts.map +1 -0
- package/dist/utils/date.d.ts.map +1 -1
- package/package.json +13 -2
- package/src/components/form/inputs/CodeEditor/Index.vue +70 -310
- package/src/components/form/inputs/CodeEditor/SearchPanel.vue +124 -0
- package/src/components/form/inputs/CodeEditor/StructuredEditor.vue +266 -0
- package/src/components/form/inputs/CodeEditor/formatCode.ts +34 -0
- package/src/components/form/inputs/DatePicker.vue +4 -1
- package/src/components/form/inputs/RichText/index.vue +2 -1
- package/src/utils/calendarDate.ts +16 -0
- package/src/utils/date.ts +2 -1
- package/vite.config.ts +5 -3
- package/dist/components/form/inputs/CodeEditor/useHighlight.d.ts +0 -33
- package/dist/components/form/inputs/CodeEditor/useHighlight.d.ts.map +0 -1
- package/dist/index.css +0 -1
- package/src/components/form/inputs/CodeEditor/useHighlight.ts +0 -123
- /package/dist/{page-flip.browser-BXnk8BM6.js → page-flip.browser-0kqlwcC8.js} +0 -0
- /package/dist/{page-flip.browser-ByKQXhqK.cjs → page-flip.browser-Dfy5mAgM.cjs} +0 -0
- /package/dist/{pdf-CV7M2d0x.cjs → pdf-BBd7GH-5.cjs} +0 -0
- /package/dist/{pdf-DuN3_wNN.js → pdf-scP2ZqGZ.js} +0 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
var Lt=Object.defineProperty,$e=(e,u)=>{for(var t in u)Lt(e,t,{get:u[t],enumerable:!0})},$t={};$e($t,{__debug:()=>Ii,check:()=>Oi,doc:()=>xt,format:()=>tu,formatWithCursor:()=>It,getSupportInfo:()=>_i,util:()=>Nt,version:()=>Di});var le=(e,u)=>(t,r,...n)=>t|1&&r==null?void 0:(u.call(r)??r[e]).apply(r,n),Rt=String.prototype.replaceAll??function(e,u){return e.global?this.replace(e,u):this.split(e).join(u)},Ce=le("replaceAll",function(){if(typeof this=="string")return Rt}),Mt=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)),a=this.removeEmpty(this.tokenize(D,t));return this.diffWithOptionsObj(i,a,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,a=e.length,o=1,s=i+a;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>=a&&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,-o);C<=Math.min(h,o);C+=2){let E,m=c[C-1],g=c[C+1];m&&(c[C-1]=void 0);let v=!1;if(g){let b=g.oldPos-C;v=g&&0<=b&&b<i}let A=m&&m.oldPos+1<a;if(!v&&!A){c[C]=void 0;continue}if(!A||v&&m.oldPos<g.oldPos?E=this.addToPath(g,!0,!1,0,t):E=this.addToPath(m,!1,!0,1,t),d=this.extractCommon(E,u,e,C,t),E.oldPos+1>=a&&d+1>=i)return D(this.buildValues(E.lastComponent,u,e))||!0;c[C]=E,E.oldPos+1>=a&&(h=Math.min(h,C-1)),d+1>=i&&(f=Math.max(f,C+1))}o++};if(r)(function C(){setTimeout(function(){if(o>s||Date.now()>F)return r(void 0);p()||C()},0)})();else for(;o<=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,a=e.oldPos,o=a-r,s=0;for(;o+1<D&&a+1<i&&this.equals(t[a+1],u[o+1],n);)o++,a++,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=a,o}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,a=0,o=0;for(;i<D;i++){let s=r[i];if(s.removed)s.value=this.join(t.slice(o,o+s.count)),o+=s.count;else{if(!s.added&&this.useLongestToken){let l=u.slice(a,a+s.count);l=l.map(function(F,c){let d=t[o+c];return d.length>F.length?d:F}),s.value=this.join(l)}else s.value=this.join(u.slice(a,a+s.count));a+=s.count,s.added||(o+=s.count)}}return r}},Vt=class extends Mt{tokenize(e){return e.slice()}join(e){return e}removeEmpty(e){return e}},Wt=new Vt;function Kt(e,u,t){return Wt.diff(e,u,t)}var zt=()=>{},U=zt,Ou="cr",_u="crlf",Ut="lf",Re="\r",Iu=`\r
|
|
2
|
+
`,Ee=`
|
|
3
|
+
`,Jt=Ee;function qt(e){let u=e.indexOf(Re);return u!==-1?e.charAt(u+1)===Ee?_u:Ou:Ut}function Me(e){return e===Ou?Re:e===_u?Iu:Jt}var Gt=new Map([[Ee,/\n/g],[Re,/\r/g],[Iu,/\r\n/g]]);function Tu(e,u){let t=Gt.get(u);return e.match(t)?.length??0}var Ht=/\r\n?/g;function Yt(e){return Ce(0,e,Ht,Ee)}var me=Symbol.for("comments");function Zt(e){return this[e<0?this.length+e:e]}var y=le("at",function(){if(Array.isArray(this)||typeof this=="string")return Zt}),X="string",L="array",q="cursor",$="indent",R="align",M="trim",w="group",I="fill",k="if-break",V="indent-if-break",W="line-suffix",K="line-suffix-boundary",B="line",T="label",x="break-parent",Pu=new Set([q,$,R,M,w,I,k,V,W,K,B,T,x]);function Qt(e){let u=e.length;for(;u>0&&(e[u-1]==="\r"||e[u-1]===`
|
|
4
|
+
`);)u--;return u<e.length?e.slice(0,u):e}function Ve(e,u,t){if(!e.has(u)){let r=t(u);e.set(u,r)}return e.get(u)}function Xt(e){if(typeof e=="string")return X;if(Array.isArray(e))return L;if(!e)return;let{type:u}=e;if(Pu.has(u))return u}var ee=Xt,er=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function ur(e){let u=e===null?"null":typeof e;if(u!=="string"&&u!=="object")return`Unexpected doc '${u}',
|
|
5
|
+
Expected it to be 'string' or 'object'.`;if(ee(e))throw new Error("doc is valid.");let t=Object.prototype.toString.call(e);if(t!=="[object Object]")return`Unexpected doc '${t}'.`;let r=er([...Pu].map(n=>`'${n}'`));return`Unexpected doc.type '${e.type}'.
|
|
6
|
+
Expected it to be ${r}.`}var tr=class extends Error{name="InvalidDocError";constructor(e){super(ur(e)),this.doc=e}},ne=tr,nu={};function rr(e,u,t,r){let n=[e];for(;n.length>0;){let D=n.pop();if(D===nu){t(n.pop());continue}t&&n.push(D,nu);let i=ee(D);if(!i)throw new ne(D);if(u?.(D)!==!1)switch(i){case L:case I:{let a=i===L?D:D.parts;for(let o=a.length-1;o>=0;--o)n.push(a[o]);break}case k:n.push(D.flatContents,D.breakContents);break;case w:if(r&&D.expandedStates)for(let a=D.expandedStates.length,o=a-1;o>=0;--o)n.push(D.expandedStates[o]);else n.push(D.contents);break;case R:case $:case V:case T:case W:n.push(D.contents);break;case X:case q:case M:case K:case B:case x:break;default:throw new ne(D)}}}var We=rr;function ge(e,u){if(typeof e=="string")return u(e);let t=new Map;return r(e);function r(D){return Ve(t,D,n)}function n(D){switch(ee(D)){case L:return u(D.map(r));case I: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:a}=D;return i?(i=i.map(r),a=i[0]):a=r(a),u({...D,contents:a,expandedStates:i})}case R:case $:case V:case T:case W:return u({...D,contents:r(D.contents)});case X:case q:case M:case K:case B:case x:return u(D);default:throw new ne(D)}}}function Ke(e,u,t){let r=t,n=!1;function D(i){if(n)return!1;let a=u(i);a!==void 0&&(n=!0,r=a)}return We(e,D),r}function nr(e){if(e.type===w&&e.break||e.type===B&&e.hard||e.type===x)return!0}function Dr(e){return Ke(e,nr,!1)}function Du(e){if(e.length>0){let u=y(0,e,-1);!u.expandedStates&&!u.break&&(u.break="propagated")}return null}function ir(e){let u=new Set,t=[];function r(D){if(D.type===x&&Du(t),D.type===w){if(t.push(D),u.has(D))return!1;u.add(D)}}function n(D){D.type===w&&t.pop().break&&Du(t)}We(e,r,n,!0)}function or(e){return e.type===B&&!e.hard?e.soft?"":" ":e.type===k?e.flatContents:e}function ar(e){return ge(e,or)}function iu(e){for(e=[...e];e.length>=2&&y(0,e,-2).type===B&&y(0,e,-1).type===x;)e.length-=2;if(e.length>0){let u=oe(y(0,e,-1));e[e.length-1]=u}return e}function oe(e){switch(ee(e)){case $:case V:case w:case W:case T:{let u=oe(e.contents);return{...e,contents:u}}case k:return{...e,breakContents:oe(e.breakContents),flatContents:oe(e.flatContents)};case I:return{...e,parts:iu(e.parts)};case L:return iu(e);case X:return Qt(e);case R:case q:case M:case K:case B:case x:break;default:throw new ne(e)}return e}function ju(e){return oe(lr(e))}function sr(e){switch(ee(e)){case I:{let{parts:u}=e;if(u.every(t=>t===""))return"";if(u.length===1)return u[0];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 R:case $:case V:case W:if(!e.contents)return"";break;case k:if(!e.flatContents&&!e.breakContents)return"";break;case L:{let u=[];for(let t of e){if(!t)continue;let[r,...n]=Array.isArray(t)?t:[t];typeof r=="string"&&typeof y(0,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 q:case M:case K:case B:case T:case x:break;default:throw new ne(e)}return e}function lr(e){return ge(e,u=>sr(u))}function cr(e,u=zu){return ge(e,t=>typeof t=="string"?Vu(u,t.split(`
|
|
7
|
+
`)):t)}function Fr(e){if(e.type===B)return!0}function fr(e){return Ke(e,Fr,!1)}function de(e,u){return e.type===T?{...e,contents:u(e.contents)}:u(e)}var _=U,Lu=U,dr=U,pr=U;function he(e){return _(e),{type:$,contents:e}}function De(e,u){return pr(e),_(u),{type:R,contents:u,n:e}}function hr(e){return De(Number.NEGATIVE_INFINITY,e)}function $u(e){return De({type:"root"},e)}function Cr(e){return De(-1,e)}function Ru(e,u,t){_(e);let r=e;if(u>0){for(let n=0;n<Math.floor(u/t);++n)r=he(r);r=De(u%t,r),r=De(Number.NEGATIVE_INFINITY,r)}return r}var ye={type:x},Z={type:q};function Er(e){return dr(e),{type:I,parts:e}}function Mu(e,u={}){return _(e),Lu(u.expandedStates,!0),{type:w,id:u.id,contents:e,break:!!u.shouldBreak,expandedStates:u.expandedStates}}function mr(e,u){return Mu(e[0],{...u,expandedStates:e})}function gr(e,u="",t={}){return _(e),u!==""&&_(u),{type:k,breakContents:e,flatContents:u,groupId:t.groupId}}function yr(e,u){return _(e),{type:V,contents:e,groupId:u.groupId,negate:u.negate}}function Vu(e,u){_(e),Lu(u);let t=[];for(let r=0;r<u.length;r++)r!==0&&t.push(e),t.push(u[r]);return t}function Br(e,u){return _(u),e?{type:T,label:e,contents:u}:u}var Wu={type:B},vr={type:B,soft:!0},ze={type:B,hard:!0},j=[ze,ye],Ku={type:B,hard:!0,literal:!0},zu=[Ku,ye];function Te(e){return _(e),{type:W,contents:e}}var Ar={type:K},br={type:M};function P(e){if(!e)return"";if(Array.isArray(e)){let u=[];for(let t of e)if(Array.isArray(t))u.push(...P(t));else{let r=P(t);r!==""&&u.push(r)}return u}return e.type===k?{...e,breakContents:P(e.breakContents),flatContents:P(e.flatContents)}:e.type===w?{...e,contents:P(e.contents),expandedStates:e.expandedStates?.map(P)}:e.type===I?{type:"fill",parts:e.parts.map(P)}:e.contents?{...e,contents:P(e.contents)}:e}function wr(e){let u=Object.create(null),t=new Set;return r(P(e));function r(D,i,a){if(typeof D=="string")return JSON.stringify(D);if(Array.isArray(D)){let o=D.map(r).filter(Boolean);return o.length===1?o[0]:`[${o.join(", ")}]`}if(D.type===B){let o=a?.[i+1]?.type===x;return D.literal?o?"literalline":"literallineWithoutBreakParent":D.hard?o?"hardline":"hardlineWithoutBreakParent":D.soft?"softline":"line"}if(D.type===x)return a?.[i-1]?.type===B&&a[i-1].hard?void 0:"breakParent";if(D.type===M)return"trim";if(D.type===$)return"indent("+r(D.contents)+")";if(D.type===R)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===V){let o=[];D.negate&&o.push("negate: true"),D.groupId&&o.push(`groupId: ${n(D.groupId)}`);let s=o.length>0?`, { ${o.join(", ")} }`:"";return`indentIfBreak(${r(D.contents)}${s})`}if(D.type===w){let o=[];D.break&&D.break!=="propagated"&&o.push("shouldBreak: true"),D.id&&o.push(`id: ${n(D.id)}`);let s=o.length>0?`, { ${o.join(", ")} }`:"";return D.expandedStates?`conditionalGroup([${D.expandedStates.map(l=>r(l)).join(",")}]${s})`:`group(${r(D.contents)}${s})`}if(D.type===I)return`fill([${D.parts.map(o=>r(o)).join(", ")}])`;if(D.type===W)return"lineSuffix("+r(D.contents)+")";if(D.type===K)return"lineSuffixBoundary";if(D.type===T)return`label(${JSON.stringify(D.label)}, ${r(D.contents)})`;if(D.type===q)return"cursor";throw new Error("Unknown doc type "+D.type)}function n(D){if(typeof D!="symbol")return JSON.stringify(String(D));if(D in u)return u[D];let i=D.description||"symbol";for(let a=0;;a++){let o=i+(a>0?` #${a}`:"");if(!t.has(o))return t.add(o),u[D]=`Symbol.for(${JSON.stringify(o)})`}}}var kr=()=>/[#*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-\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-\uDED8\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]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\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]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\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]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\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]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\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]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\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]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\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]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\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]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\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]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\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]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\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\uDD3C-\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-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\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\uDE70]|\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]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\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]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\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]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\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]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\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]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\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,Sr=12288,xr=65510,Nr=[12288,12288,65281,65376,65504,65510],Or=4352,_r=262141,Uu=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141],Ju=(e,u)=>{let t=0,r=Math.floor(e.length/2)-1;for(;t<=r;){let n=Math.floor((t+r)/2),D=n*2;if(u<e[D])r=n-1;else if(u>e[D+1])t=n+1;else return!0}return!1},ou=19968,[Ir,Tr]=Pr(Uu);function Pr(e){let u=e[0],t=e[1];for(let r=0;r<e.length;r+=2){let n=e[r],D=e[r+1];if(ou>=n&&ou<=D)return[n,D];D-n>t-u&&(u=n,t=D)}return[u,t]}var jr=e=>e<Sr||e>xr?!1:Ju(Nr,e),Lr=e=>e>=Ir&&e<=Tr?!0:e<Or||e>_r?!1:Ju(Uu,e),$r=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u2764\u27A1\u2934\u2935\u2B05-\u2B07]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF3\uDFF5\uDFF7]|\uD83D[\uDC3F\uDC41\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])$/,Rr=e=>$r.test(e),Mr=/[^\x20-\x7F]/;function Vr(e){if(!e)return 0;if(!Mr.test(e))return e.length;let u=0;e=e.replace(kr(),t=>(u+=Rr(t)?1:2,""));for(let t of e){let r=t.codePointAt(0);r<=31||r>=127&&r<=159||r>=768&&r<=879||r>=65024&&r<=65039||(u+=jr(r)||Lr(r)?2:1)}return u}var Ue=Vr,Wr={type:0},Kr={type:1},qu={value:"",length:0,queue:[],get root(){return qu}};function Gu(e,u,t){let r=u.type===1?e.queue.slice(0,-1):[...e.queue,u],n="",D=0,i=0,a=0;for(let f of r)switch(f.type){case 0:l(),t.useTabs?o(1):s(t.tabWidth);break;case 3:{let{string:h}=f;l(),n+=h,D+=h.length;break}case 2:{let{width:h}=f;i+=1,a+=h;break}default:throw new Error(`Unexpected indent comment '${f.type}'.`)}return c(),{...e,value:n,length:D,queue:r};function o(f){n+=" ".repeat(f),D+=t.tabWidth*f}function s(f){n+=" ".repeat(f),D+=f}function l(){t.useTabs?F():c()}function F(){i>0&&o(i),d()}function c(){a>0&&s(a),d()}function d(){i=0,a=0}}function zr(e,u,t){if(!u)return e;if(u.type==="root")return{...e,root:e};if(u===Number.NEGATIVE_INFINITY)return e.root;let r;return typeof u=="number"?u<0?r=Kr:r={type:2,width:u}:r={type:3,string:u},Gu(e,r,t)}function Ur(e,u){return Gu(e,Wr,u)}function Jr(e){let u=0;for(let t=e.length-1;t>=0;t--){let r=e[t];if(r===" "||r===" ")u++;else break}return u}function Hu(e){let u=Jr(e);return{text:u===0?e:e.slice(0,e.length-u),count:u}}var qr=class{#u=[];#e="";#r=0;#n=[];#t=[];#D(){let e=this.#e;e!==""&&(this.#u.push(e),this.#r+=e.length,this.#e="");for(let u of this.#t)this.#n.push(Math.min(u,this.#r));this.#t.length=0}markPosition(){if(this.#n.length+this.#t.length>=2)throw new Error("There are too many 'cursor' in doc.");this.#t.push(this.#r+this.#e.length)}write(e){this.#e+=e}trim(){let{text:e,count:u}=Hu(this.#e);return this.#e=e,this.#D(),u}finish(){return this.#D(),{text:this.#u.join(""),positions:this.#n}}},Gr=qr,S=Symbol("MODE_BREAK"),N=Symbol("MODE_FLAT"),Pe=Symbol("DOC_FILL_PRINTED_LENGTH");function fe(e,u,t,r,n,D){if(t===Number.POSITIVE_INFINITY)return!0;let i=u.length,a=!1,o=[e],s="";for(;t>=0;){if(o.length===0){if(i===0)return!0;o.push(u[--i]);continue}let{mode:l,doc:F}=o.pop(),c=ee(F);switch(c){case X:F&&(a&&(s+=" ",t-=1,a=!1),s+=F,t-=Ue(F));break;case L:case I:{let d=c===L?F:F.parts,f=F[Pe]??0;for(let h=d.length-1;h>=f;h--)o.push({mode:l,doc:d[h]});break}case $:case R:case V:case T:o.push({mode:l,doc:F.contents});break;case M:{let{text:d,count:f}=Hu(s);s=d,t+=f;break}case w:{if(D&&F.break)return!1;let d=F.break?S:l,f=F.expandedStates&&d===S?y(0,F.expandedStates,-1):F.contents;o.push({mode:d,doc:f});break}case k:{let d=(F.groupId?n[F.groupId]||N:l)===S?F.breakContents:F.flatContents;d&&o.push({mode:l,doc:d});break}case B:if(l===S||F.hard)return!0;F.soft||(a=!0);break;case W:r=!0;break;case K:if(r)return!1;break}}return!1}function Be(e,u){let t=Object.create(null),r=u.printWidth,n=Me(u.endOfLine),D=0,i=[{indent:qu,mode:S,doc:e}],a=!1,o=[],s=new Gr;for(ir(e);i.length>0;){let{indent:f,mode:h,doc:p}=i.pop();switch(ee(p)){case X:{let C=n!==`
|
|
8
|
+
`?Ce(0,p,`
|
|
9
|
+
`,n):p;C&&(s.write(C),i.length>0&&(D+=Ue(C)));break}case L:for(let C=p.length-1;C>=0;C--)i.push({indent:f,mode:h,doc:p[C]});break;case q:s.markPosition();break;case $:i.push({indent:Ur(f,u),mode:h,doc:p.contents});break;case R:i.push({indent:zr(f,p.n,u),mode:h,doc:p.contents});break;case M:D-=s.trim();break;case w:{let C=(function(){if(h===N&&!a)return{indent:f,mode:p.break?S:N,doc:p.contents};a=!1;let E=r-D,m=o.length>0,g={indent:f,mode:N,doc:p.contents};if(!p.break&&fe(g,i,E,m,t))return g;if(!p.expandedStates)return{indent:f,mode:S,doc:p.contents};if(!p.break)for(let v=1;v<p.expandedStates.length-1;v++){let A={indent:f,mode:N,doc:p.expandedStates[v]};if(fe(A,i,E,m,t))return A}return{indent:f,mode:S,doc:y(0,p.expandedStates,-1)}})();i.push(C),p.id&&(t[p.id]=C.mode);break}case I:{let C=r-D,E=p[Pe]??0,{parts:m}=p,g=m.length-E;if(g===0)break;let v=m[E+0],A=m[E+1],b={indent:f,mode:N,doc:v},ue={indent:f,mode:S,doc:v},we=fe(b,[],C,o.length>0,t,!0);if(g===1){we?i.push(b):i.push(ue);break}let ru={indent:f,mode:N,doc:A},ke={indent:f,mode:S,doc:A};if(g===2){we?i.push(ru,b):i.push(ke,ue);break}let Tt=m[E+2],Pt={indent:f,mode:h,doc:{...p,[Pe]:E+2}},jt=fe({indent:f,mode:N,doc:[v,A,Tt]},[],C,o.length>0,t,!0);i.push(Pt),jt?i.push(ru,b):we?i.push(ke,b):i.push(ke,ue);break}case k:case V:{let C=p.groupId?t[p.groupId]:h;if(C===S){let E=p.type===k?p.breakContents:p.negate?p.contents:he(p.contents);E&&i.push({indent:f,mode:h,doc:E})}if(C===N){let E=p.type===k?p.flatContents:p.negate?he(p.contents):p.contents;E&&i.push({indent:f,mode:h,doc:E})}break}case W:o.push({indent:f,mode:h,doc:p.contents});break;case K:o.length>0&&i.push({indent:f,mode:h,doc:ze});break;case B:switch(h){case N:if(!p.hard){p.soft||(s.write(" "),D+=1);break}a=!0;case S:if(o.length>0){i.push({indent:f,mode:h,doc:p},...o.reverse()),o.length=0;break}p.literal?(s.write(n),D=0,f.root&&(f.root.value&&s.write(f.root.value),D=f.root.length)):(s.trim(),s.write(n+f.value),D=f.length);break}break;case T:i.push({indent:f,mode:h,doc:p.contents});break;case x:break;default:throw new ne(p)}i.length===0&&o.length>0&&(i.push(...o.reverse()),o.length=0)}let{text:l,positions:F}=s.finish();if(F.length!==2)return{formatted:l};let[c,d]=F;return{formatted:l,cursorNodeStart:c,cursorNodeText:l.slice(c,d)}}function Hr(e,u,t=0){let r=0;for(let n=t;n<e.length;++n)e[n]===" "?r=r+u-r%u:r++;return r}var Je=Hr,Yr=class{constructor(e){this.stack=[e]}get key(){let{stack:e,siblings:u}=this;return y(0,e,u===null?-2:-4)??null}get index(){return this.siblings===null?null:y(0,this.stack,-2)}get node(){return y(0,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=y(0,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[...this.#e()]}getName(){let{stack:e}=this,{length:u}=e;return u>1?y(0,e,-2):null}getValue(){return y(0,this.stack,-1)}getNode(e=0){let u=this.#u(e);return u===-1?null:this.stack[u]}getParentNode(e=0){return this.getNode(e+1)}#u(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}call(e,...u){let{stack:t}=this,{length:r}=t,n=y(0,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=this.#u(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=y(0,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 this.#e())if(e(u))return u}hasAncestor(e){for(let u of this.#e())if(e(u))return!0;return!1}*#e(){let{stack:e}=this;for(let u=e.length-3;u>=0;u-=2){let t=e[u];Array.isArray(t)||(yield t)}}},Zr=Yr;function Qr(e){return Array.isArray(e)&&e.length>0}var Yu=Qr;function Xr(e){return e!==null&&typeof e=="object"}var qe=Xr;function ce(e){return(u,t,r)=>{if(t===!1)return!1;let n=!!r?.backwards,{length:D}=u,i=t;for(;i>=0&&i<D;){let a=u.charAt(i);if(e instanceof RegExp){if(!e.test(a))return i}else if(!e.includes(a))return i;n?i--:i++}return i===-1||i===D?i:!1}}var en=ce(/\s/),J=ce(" "),Zu=ce(",; "),Qu=ce(/[^\n\r]/),au=e=>e===`
|
|
10
|
+
`||e==="\r"||e==="\u2028"||e==="\u2029";function un(e,u,t){if(u===!1)return!1;let r=!!t?.backwards,n=e.charAt(u);if(r){if(e.charAt(u-1)==="\r"&&n===`
|
|
11
|
+
`)return u-2;if(au(n))return u-1}else{if(n==="\r"&&e.charAt(u+1)===`
|
|
12
|
+
`)return u+2;if(au(n))return u+1}return u}var Q=un;function tn(e,u,t={}){let r=J(e,t.backwards?u-1:u,t);return r!==Q(e,r,t)}var z=tn;function*ve(e,u){let{getVisitorKeys:t,filter:r=()=>!0}=u,n=D=>qe(D)&&r(D);for(let D of t(e)){let i=e[D];if(Array.isArray(i))for(let a of i)n(a)&&(yield a);else n(i)&&(yield i)}}function*rn(e,u){let t=[e];for(let r=0;r<t.length;r++){let n=t[r];for(let D of ve(n,u))yield D,t.push(D)}}function nn(e,u){return ve(e,u).next().done}function Dn(e,u,t){let{filter:r}=t;if(!r)return[];let n,D=(t.getChildren?.(e,t)??[...ve(e,{getVisitorKeys:t.getVisitorKeys})]).flatMap(o=>(n??(n=[e,...u]),r(o,n)?[o]:Xu(o,n,t))),{locStart:i,locEnd:a}=t;return D.sort((o,s)=>i(o)-i(s)||a(o)-a(s)),D}function Xu(e,u,t){return Ve(t.cache,e,r=>Dn(r,u,t))}var et=Xu;function on(e){let u=e.type||e.kind||"(unknown type)",t=String(e.name||e.id&&(typeof e.id=="object"?e.id.name:e.id)||e.key&&(typeof e.key=="object"?e.key.name:e.key)||e.value&&(typeof e.value=="object"?"":String(e.value))||e.operator||"");return t.length>20&&(t=t.slice(0,19)+"…"),u+(t?" "+t:"")}function Ge(e,u){(e.comments??(e.comments=[])).push(u),u.printed=!1,u.nodeDescription=on(e)}function ae(e,u){u.leading=!0,u.trailing=!1,Ge(e,u)}function H(e,u,t){u.leading=!1,u.trailing=!1,t&&(u.marker=t),Ge(e,u)}function se(e,u){u.leading=!1,u.trailing=!0,Ge(e,u)}var ut=new WeakMap;function tt(e,u,t,r,n=[]){let{locStart:D,locEnd:i}=t,a=D(u),o=i(u),s=et(e,n,{cache:ut,locStart:D,locEnd:i,getVisitorKeys:t.getVisitorKeys,filter:t.printer.canAttachComment,getChildren:t.printer.getCommentChildNodes}),l,F,c=0,d=s.length;for(;c<d;){let f=c+d>>1,h=s[f],p=D(h),C=i(h);if(p<=a&&o<=C)return tt(h,u,t,h,[h,...n]);if(C<=a){l=h,c=f+1;continue}if(o<=p){F=h,d=f;continue}throw new Error("Comment location overlaps with node location")}if(r?.type==="TemplateLiteral"){let{quasis:f}=r,h=xe(f,u,t);l&&xe(f,l,t)!==h&&(l=null),F&&xe(f,F,t)!==h&&(F=null)}return{enclosingNode:r,precedingNode:l,followingNode:F}}var Se=()=>!1;function an(e,u){let{comments:t}=e;if(delete e.comments,!Yu(t)||!u.printer.canAttachComment)return;let r=[],{printer:{features:{experimental_avoidAstMutation:n},handleComments:D={}},originalText:i}=u,{ownLine:a=Se,endOfLine:o=Se,remaining:s=Se}=D,l=t.map((c,d)=>({...tt(e,c,u),comment:c,text:i,options:u,ast:e,isLastComment:t.length-1===d,placement:void 0})),F=!n;for(let[c,d]of l.entries()){let{comment:f,precedingNode:h,enclosingNode:p,followingNode:C,text:E,options:m,ast:g,isLastComment:v}=d,A=sn(E,m,l,c)?"ownLine":ln(E,m,l,c)?"endOfLine":"remaining",b;if(n?(d.placement=A,b=[d]):b=[f,E,m,g,v],F&&(f.enclosingNode=p,f.precedingNode=h,f.followingNode=C),f.placement=A,A==="ownLine")a(...b)||(C?ae(C,f):h?se(h,f):H(p||g,f));else if(A==="endOfLine")o(...b)||(h?se(h,f):C?ae(C,f):H(p||g,f));else if(!s(...b))if(h&&C){let ue=r.length;ue>0&&r[ue-1].followingNode!==C&&su(r,m),r.push(d)}else h?se(h,f):C?ae(C,f):H(p||g,f)}if(su(r,u),F)for(let c of t)delete c.precedingNode,delete c.enclosingNode,delete c.followingNode}var rt=e=>!/[\S\n\u2028\u2029]/.test(e);function sn(e,u,t,r){let{comment:n,precedingNode:D}=t[r],{locStart:i,locEnd:a}=u,o=i(n);if(D)for(let s=r-1;s>=0;s--){let{comment:l,precedingNode:F}=t[s];if(F!==D||!rt(e.slice(a(l),o)))break;o=i(l)}return z(e,o,{backwards:!0})}function ln(e,u,t,r){let{comment:n,followingNode:D}=t[r],{locStart:i,locEnd:a}=u,o=a(n);if(D)for(let s=r+1;s<t.length;s++){let{comment:l,followingNode:F}=t[s];if(F!==D||!rt(e.slice(o,i(l))))break;o=a(l)}return z(e,o)}function su(e,u){let t=e.length;if(t===0)return;let{precedingNode:r,followingNode:n}=e[0],D=u.locStart(n),i;for(i=t;i>0;--i){let{comment:a,precedingNode:o,followingNode:s}=e[i-1];U(o,r),U(s,n);let l=u.originalText.slice(u.locEnd(a),D);if(u.printer.isGap?.(l,u)??/^[\s(]*$/.test(l))D=u.locStart(a);else break}for(let[a,{comment:o}]of e.entries())a<i?se(r,o):ae(n,o);for(let a of[r,n])a.comments&&a.comments.length>1&&a.comments.sort((o,s)=>u.locStart(o)-u.locStart(s));e.length=0}function xe(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 cn(e,u){let t=u-1;t=J(e,t,{backwards:!0}),t=Q(e,t,{backwards:!0}),t=J(e,t,{backwards:!0});let r=Q(e,t,{backwards:!0});return t!==r}var He=cn,nt=()=>!0;function Dt(e,u){let t=e.node;return t.printed=!0,u.printer.printComment(e,u)}function Fn(e,u){let t=e.node,r=[Dt(e,u)],{printer:n,originalText:D,locStart:i,locEnd:a}=u;if(n.isBlockComment?.(t)){let s=" ";z(D,a(t))&&(z(D,i(t),{backwards:!0})?s=j:s=Wu),r.push(s)}else r.push(j);let o=Q(D,J(D,a(t)));return o!==!1&&z(D,o)&&r.push(j),r}function fn(e,u,t){let r=e.node,n=Dt(e,u),{printer:D,originalText:i,locStart:a}=u,o=D.isBlockComment?.(r);return t?.hasLineSuffix&&!t?.isBlock||z(i,a(r),{backwards:!0})?{doc:Te([j,He(i,a(r))?j:"",n]),isBlock:o,hasLineSuffix:!0}:!o||t?.hasLineSuffix?{doc:[Te([" ",n]),ye],isBlock:o,hasLineSuffix:!0}:{doc:[" ",n],isBlock:o,hasLineSuffix:!1}}function dn(e,u,t){let r=u[Symbol.for("printedComments")],n=t?.filter??nt,D=new Set(e.node?.comments?.filter(i=>!r?.has(i)&&i.leading&&n(i)));return D.size===0?"":e.map(({node:i})=>D.has(i)?Fn(e,u):"","comments").filter(Boolean)}function pn(e,u,t){let r=e.node?.comments,n=new Set(r?.filter(l=>l.trailing)),D=u[Symbol.for("printedComments")],i=t?.filter??nt,a=new Set(r?.filter(l=>n.has(l)&&!D?.has(l)&&i(l)));if(a.size===0)return"";let o=[],s;return e.each(({node:l})=>{n.has(l)&&(s=fn(e,u,s),a.has(l)&&o.push(s.doc))},"comments"),o}function hn(e,u,t,r){let n=dn(e,t,r),D=pn(e,t,r);return n||D?de(u,i=>[n,i,D]):u}function Cn(e){let{[me]:u,[Symbol.for("printedComments")]:t}=e;for(let r of u){if(!r.printed&&!t.has(r))throw new Error('Comment "'+r.value.trim()+'" was not printed. Please report this error!');delete r.printed}}var En=()=>U,it=class extends Error{name="ConfigError"},lu=class extends Error{name="UndefinedParserError"},Ae=Object.hasOwn??Function.prototype.call.bind(Object.prototype.hasOwnProperty),mn={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
|
|
13
|
+
(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).
|
|
14
|
+
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.
|
|
15
|
+
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 ot({plugins:e=[],showDeprecated:u=!1}={}){let t=e.flatMap(n=>n.languages??[]),r=[];for(let n of yn(Object.assign({},...e.map(({options:D})=>D),mn)))!u&&n.deprecated||(Array.isArray(n.choices)&&(u||(n.choices=n.choices.filter(D=>!D.deprecated)),n.name==="parser"&&(n.choices=[...n.choices,...gn(n.choices,t,e)])),n.pluginDefaults=Object.fromEntries(e.filter(D=>D.defaultOptions?.[n.name]!==void 0).map(D=>[D.name,D.defaultOptions[n.name]])),r.push(n));return{languages:t,options:r}}function*gn(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(o=>o.parsers&&Ae(o.parsers,D)),a=n.name;i?.name&&(a+=` (plugin: ${i.name})`),yield{value:D,description:a}}}}function yn(e){let u=[];for(let[t,r]of Object.entries(e)){let n={name:t,...r};Array.isArray(n.default)&&(n.default=y(0,n.default,-1).value),u.push(n)}return u}var Bn=Array.prototype.toReversed??function(){return[...this].reverse()},vn=le("toReversed",function(){if(Array.isArray(this))return Bn});function An(){let e=globalThis,u=e.process?.platform;if(typeof u=="string")return u.startsWith("win");let t=e.Deno?.build?.os;return typeof t=="string"?t==="windows":e.navigator?.platform?.startsWith("Win")??!1}var bn=An();function at(e){if(e=e instanceof URL?e:new URL(e),e.protocol!=="file:")throw new TypeError(`URL must be a file URL: received "${e.protocol}"`);return e}function wn(e){return e=at(e),decodeURIComponent(e.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function kn(e){e=at(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 Sn(e){return bn?kn(e):wn(e)}var xn=e=>String(e).split(/[/\\]/).pop(),Nn=e=>String(e).startsWith("file:");function cu(e,u){if(!u)return;let t=xn(u).toLowerCase();return e.find(({filenames:r})=>r?.some(n=>n.toLowerCase()===t))??e.find(({extensions:r})=>r?.some(n=>t.endsWith(n)))}function On(e,u){if(u)return e.find(({name:t})=>t.toLowerCase()===u)??e.find(({aliases:t})=>t?.includes(u))??e.find(({extensions:t})=>t?.includes(`.${u}`))}var _n=void 0;function Fu(e,u){if(u){if(Nn(u))try{u=Sn(u)}catch{return}if(typeof u=="string")return e.find(({isSupported:t})=>t?.({filepath:u}))}}function In(e,u){let t=vn(0,e.plugins).flatMap(r=>r.languages??[]);return(On(t,u.language)??cu(t,u.physicalFile)??cu(t,u.file)??Fu(t,u.physicalFile)??Fu(t,u.file)??_n?.(t,u.physicalFile))?.parsers[0]}var st=In,re={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=>re.value(t)).join(", ")}]`;let u=Object.keys(e);return u.length===0?"{}":`{ ${u.map(t=>`${re.key(t)}: ${re.value(e[t])}`).join(", ")} }`},pair:({key:e,value:u})=>re.value({[e]:u})},lt=new Proxy(String,{get:()=>lt}),O=lt,Tn=(e,u,{descriptor:t})=>{let r=[`${O.yellow(typeof e=="string"?t.key(e):t.pair(e))} is deprecated`];return u&&r.push(`we now treat it as ${O.blue(typeof u=="string"?t.key(u):t.pair(u))}`),r.join("; ")+"."},ct=Symbol.for("vnopts.VALUE_NOT_EXIST"),pe=Symbol.for("vnopts.VALUE_UNCHANGED"),fu=" ".repeat(2),Pn=(e,u,t)=>{let{text:r,list:n}=t.normalizeExpectedResult(t.schemas[e].expected(t)),D=[];return r&&D.push(du(e,u,r,t.descriptor)),n&&D.push([du(e,u,n.title,t.descriptor)].concat(n.values.map(i=>Ft(i,t.loggerPrintWidth))).join(`
|
|
16
|
+
`)),ft(D,t.loggerPrintWidth)};function du(e,u,t,r){return[`Invalid ${O.red(r.key(e))} value.`,`Expected ${O.blue(t)},`,`but received ${u===ct?O.gray("nothing"):O.red(r.value(u))}.`].join(" ")}function Ft({text:e,list:u},t){let r=[];return e&&r.push(`- ${O.blue(e)}`),u&&r.push([`- ${O.blue(u.title)}:`].concat(u.values.map(n=>Ft(n,t-fu.length).replace(/^|\n/g,`$&${fu}`))).join(`
|
|
17
|
+
`)),ft(r,t)}function ft(e,u){if(e.length===1)return e[0];let[t,r]=e,[n,D]=e.map(i=>i.split(`
|
|
18
|
+
`,1)[0].length);return n>u&&n>D?r:t}var te=[],Ne=[];function Oe(e,u,t){if(e===u)return 0;let r=t?.maxDistance,n=e;e.length>u.length&&(e=u,u=n);let D=e.length,i=u.length;for(;D>0&&e.charCodeAt(~-D)===u.charCodeAt(~-i);)D--,i--;let a=0;for(;a<D&&e.charCodeAt(a)===u.charCodeAt(a);)a++;if(D-=a,i-=a,r!==void 0&&i-D>r)return r;if(D===0)return r!==void 0&&i>r?r:i;let o,s,l,F,c=0,d=0;for(;c<D;)Ne[c]=e.charCodeAt(a+c),te[c]=++c;for(;d<i;){for(o=u.charCodeAt(a+d),l=d++,s=d,c=0;c<D;c++)F=o===Ne[c]?l:l+1,l=te[c],s=te[c]=l>s?F>s?s+1:F:F>l?l+1:F;if(r!==void 0){let f=s;for(c=0;c<D;c++)te[c]<f&&(f=te[c]);if(f>r)return r}}return te.length=D,Ne.length=D,r!==void 0&&s>r?r:s}function jn(e,u,t){if(!Array.isArray(u)||u.length===0)return;let r=t?.maxDistance,n=e.length;for(let o of u)if(o===e)return o;if(r===0)return;let D,i=Number.POSITIVE_INFINITY,a=new Set;for(let o of u){if(a.has(o))continue;a.add(o);let s=Math.abs(o.length-n);if(s>=i||r!==void 0&&s>r)continue;let l=Number.isFinite(i)?r===void 0?i:Math.min(i,r):r,F=l===void 0?Oe(e,o):Oe(e,o,{maxDistance:l});if(r!==void 0&&F>r)continue;let c=F;if(l!==void 0&&F===l&&l===r&&(c=Oe(e,o)),c<i&&(i=c,D=o,i===0))break}if(!(r!==void 0&&i>r))return D}var dt=(e,u,{descriptor:t,logger:r,schemas:n})=>{let D=[`Ignored unknown option ${O.yellow(t.pair({key:e,value:u}))}.`],i=jn(e,Object.keys(n),{maxDistance:3});i&&D.push(`Did you mean ${O.blue(t.key(i))}?`),r.warn(D.join(" "))},Ln=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function $n(e,u){let t=new e(u),r=Object.create(t);for(let n of Ln)n in u&&(r[n]=Rn(u[n],t,G.prototype[n].length));return r}var G=class{static create(e){return $n(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 pe}};function Rn(e,u,t){return typeof e=="function"?(...r)=>e(...r.slice(0,t-1),u,...r.slice(t-1)):()=>e}var Mn=class extends G{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}},Vn=class extends G{expected(){return"anything"}validate(){return!0}},Wn=class extends G{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(pu))}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(pu))}return t.length===0?{redirect:r}:{redirect:r,remain:t}}overlap(e,u){return e.concat(u)}};function pu({from:e,to:u}){return{from:[e],to:u}}var Kn=class extends G{expected(){return"true or false"}validate(e){return typeof e=="boolean"}};function zn(e,u){let t=Object.create(null);for(let r of e){let n=r[u];if(t[n])throw new Error(`Duplicate ${u} ${JSON.stringify(n)}`);t[n]=r}return t}function Un(e,u){let t=new Map;for(let r of e){let n=r[u];if(t.has(n))throw new Error(`Duplicate ${u} ${JSON.stringify(n)}`);t.set(n,r)}return t}function Jn(){let e=Object.create(null);return u=>{let t=JSON.stringify(u);return e[t]?!0:(e[t]=!0,!1)}}function qn(e,u){let t=[],r=[];for(let n of e)u(n)?t.push(n):r.push(n);return[t,r]}function Gn(e){return e===Math.floor(e)}function Hn(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 Yn(e){return(...u)=>{let t=e(...u);return typeof t=="string"?new Error(t):t}}function hu(e){return e===void 0?{}:e}function pt(e){if(typeof e=="string")return{text:e};let{text:u,list:t}=e;return Zn((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(pt)}}:{text:u}}function Cu(e,u){return e===!0?!0:e===!1?{value:u}:e}function Eu(e,u,t=!1){return e===!1?!1:e===!0?t?!0:[{value:u}]:"value"in e?[e]:e.length===0?!1:e}function mu(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 je(e,u){return e===void 0?[]:Array.isArray(e)?e.map(t=>mu(t,u)):[mu(e,u)]}function gu(e,u){let t=je(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 Zn(e,u){if(!e)throw new Error(u)}var Qn=class extends G{constructor(e){super(e),this._choices=Un(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(Hn).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}},Xn=class extends G{expected(){return"a number"}validate(e,u){return typeof e=="number"}},eD=class extends Xn{expected(){return"an integer"}validate(e,u){return u.normalizeValidateResult(super.validate(e,u),e)===!0&&Gn(e)}},yu=class extends G{expected(){return"a string"}validate(e){return typeof e=="string"}},uD=re,tD=dt,rD=Pn,nD=Tn,DD=class{constructor(e,u){let{logger:t=console,loggerPrintWidth:r=80,descriptor:n=uD,unknown:D=tD,invalid:i=rD,deprecated:a=nD,missing:o=()=>!1,required:s=()=>!1,preprocess:l=c=>c,postprocess:F=()=>pe}=u||{};this._utils={descriptor:n,logger:t||{warn:()=>{}},loggerPrintWidth:r,schemas:zn(e,"name"),normalizeDefaultResult:hu,normalizeExpectedResult:pt,normalizeDeprecatedResult:Eu,normalizeForwardResult:je,normalizeRedirectResult:gu,normalizeValidateResult:Cu},this._unknownHandler=D,this._invalidHandler=Yn(i),this._deprecatedHandler=a,this._identifyMissing=(c,d)=>!(c in d)||o(c,d),this._identifyRequired=s,this._preprocess=l,this._postprocess=F,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=Jn()}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=hu(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],a=D.postprocess(i,this._utils);a!==pe&&(this._applyValidation(a,n,D),u[n]=a)}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],a=i.preprocess(e[D],this._utils);this._applyValidation(a,D,i);let o=({from:F,to:c})=>{t.push(typeof c=="string"?{[c]:F}:{[c.key]:c.value})},s=({value:F,redirectTo:c})=>{let d=Eu(i.deprecated(F,this._utils),a,!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))}}};je(i.forward(a,this._utils),a).forEach(o);let l=gu(i.redirect(a,this._utils),a);if(l.redirect.forEach(o),"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,(a,o)=>{t.push({[a]:o})})}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,ct,this._utils)}_partitionOptionKeys(e){let[u,t]=qn(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=Cu(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!==pe){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,a)=>{let o=this._utils.schemas[i];this._applyValidation(a,i,o),e[i]=a})}}}}},_e;function iD(e,u,{logger:t=!1,isCLI:r=!1,passThrough:n=!1,FlagSchema:D,descriptor:i}={}){if(r){if(!D)throw new Error("'FlagSchema' option is required.");if(!i)throw new Error("'descriptor' option is required.")}else i=re;let a=n?Array.isArray(n)?(F,c)=>n.includes(F)?{[F]:c}:void 0:(F,c)=>({[F]:c}):(F,c,d)=>{let{_:f,...h}=d.schemas;return dt(F,c,{...d,schemas:h})},o=new DD(oD(u,{isCLI:r,FlagSchema:D}),{logger:t,unknown:a,descriptor:i}),s=t!==!1;s&&_e&&(o._hasDeprecationWarned=_e);let l=o.normalize(e);return s&&(_e=o._hasDeprecationWarned),l}function oD(e,{isCLI:u,FlagSchema:t}){let r=[];u&&r.push(Vn.create({name:"_"}));for(let n of e)r.push(aD(n,{isCLI:u,optionInfos:e,FlagSchema:t})),n.alias&&u&&r.push(Mn.create({name:n.alias,sourceName:n.name}));return r}function aD(e,{isCLI:u,optionInfos:t,FlagSchema:r}){let{name:n}=e,D={name:n},i,a={};switch(e.type){case"int":i=eD,u&&(D.preprocess=Number);break;case"string":i=yu;break;case"choice":i=Qn,D.choices=e.choices.map(o=>o?.redirect?{...o,redirect:{to:{key:e.name,value:o.redirect}}}:o);break;case"boolean":i=Kn;break;case"flag":i=r,D.flags=t.flatMap(o=>[o.alias,o.description&&o.name,o.oppositeDescription&&`no-${o.name}`].filter(Boolean));break;case"path":i=yu;break;default:throw new Error(`Unexpected type ${e.type}`)}if(e.exception?D.validate=(o,s,l)=>e.exception(o)||s.validate(o,l):D.validate=(o,s,l)=>o===void 0||s.validate(o,l),e.redirect&&(a.redirect=o=>o?{to:typeof e.redirect=="string"?e.redirect:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(a.deprecated=!0),u&&!e.array){let o=D.preprocess||(s=>s);D.preprocess=(s,l,F)=>l.preprocess(o(Array.isArray(s)?y(0,s,-1):s),F)}return e.array?Wn.create({...u?{preprocess:o=>Array.isArray(o)?o:[o]}:{},...a,valueSchema:i.create(D)}):i.create({...D,...a})}var sD=iD,lD=Array.prototype.findLast??function(e){for(let u=this.length-1;u>=0;u--){let t=this[u];if(e(t,u,this))return t}},ht=le("findLast",function(){if(Array.isArray(this))return lD}),cD=Symbol.for("PRETTIER_IS_FRONT_MATTER"),FD=[];function fD(e){return!!e?.[cD]}var Ye=fD,Ct=new Set(["yaml","toml"]),Et=({node:e})=>Ye(e)&&Ct.has(e.language);async function dD(e,u,t,r){let{node:n}=t,{language:D}=n;if(!Ct.has(D))return;let i=n.value.trim(),a;if(i){let o=D==="yaml"?D:st(r,{language:D});if(!o)return;a=i?await e(i,{parser:o}):""}else a=i;return $u([n.startDelimiter,n.explicitLanguage??"",j,a,a?j:"",n.endDelimiter])}function pD(e,u){return Et({node:e})&&(delete u.end,delete u.raw,delete u.value),u}var hD=pD;function CD({node:e}){return e.raw}var ED=CD,mt=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),mD=e=>Object.keys(e).filter(u=>!mt.has(u));function gD(e,u){let t=e?r=>e(r,mt):mD;return u?new Proxy(t,{apply:(r,n,D)=>Ye(D[0])?FD:Reflect.apply(r,n,D)}):t}var Bu=gD;function gt(e,u){if(!u)throw new Error("parserName is required.");let t=ht(0,e,n=>n.parsers&&Ae(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 it(r)}function yD(e,u){if(!u)throw new Error("astFormat is required.");let t=ht(0,e,n=>n.printers&&Ae(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 it(r)}function Ze({plugins:e,parser:u}){return yt(gt(e,u),u)}function yt(e,u){let t=e.parsers[u];return typeof t=="function"?t():t}async function BD(e,u){let t=e.printers[u];return bD(typeof t=="function"?await t():t)}function vD(e){let{features:u,getVisitorKeys:t,embed:r,massageAstNode:n,print:D,...i}=e;u=SD(u);let a=u.experimental_frontMatterSupport;t=Bu(t,a.massageAstNode||a.embed||a.print);let o=n;n&&a.massageAstNode&&(o=new Proxy(n,{apply(F,c,d){return hD(...d),Reflect.apply(F,c,d)}}));let s=r;if(r){let F;s=new Proxy(r,{get(c,d,f){return d==="getVisitorKeys"?(F??(F=r.getVisitorKeys?Bu(r.getVisitorKeys,a.massageAstNode||a.embed):t),F):Reflect.get(c,d,f)},apply:(c,d,f)=>a.embed&&Et(...f)?dD:Reflect.apply(c,d,f)})}let l=D;return a.print&&(l=new Proxy(D,{apply(F,c,d){let[f]=d;return Ye(f.node)?ED(f):Reflect.apply(F,c,d)}})),{features:u,getVisitorKeys:t,embed:s,massageAstNode:o,print:l,...i}}var AD=new WeakMap;function bD(e){return Ve(AD,e,vD)}var wD=Object.fromEntries(["clean","embed","print"].map(e=>[e,!1]));function kD(e){return{...wD,...e}}function SD(e){return{experimental_avoidAstMutation:!1,...e,experimental_frontMatterSupport:kD(e?.experimental_frontMatterSupport)}}var vu={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null,getVisitorKeys:null};async function xD(e,u={}){let t={...e};if(!t.parser){if(!t.filepath)throw new lu("No parser and no file path given, couldn't infer a parser.");if(t.parser=st(t,{physicalFile:t.filepath}),!t.parser)throw new lu(`No parser could be inferred for file "${t.filepath}".`)}let r=ot({plugins:e.plugins,showDeprecated:!0}).options,n={...vu,...Object.fromEntries(r.filter(F=>F.default!==void 0).map(F=>[F.name,F.default]))},D=gt(t.plugins,t.parser),i=await yt(D,t.parser);t.astFormat=i.astFormat,t.locEnd=i.locEnd,t.locStart=i.locStart;let a=D.printers?.[i.astFormat]?D:yD(t.plugins,i.astFormat),o=await BD(a,i.astFormat);t.printer=o,t.getVisitorKeys=o.getVisitorKeys;let s=a.defaultOptions?Object.fromEntries(Object.entries(a.defaultOptions).filter(([,F])=>F!==void 0)):{},l={...n,...s};for(let[F,c]of Object.entries(l))t[F]??(t[F]=c);return t.parser==="json"&&(t.trailingComma="none"),sD(t,r,{passThrough:Object.keys(vu),...u})}var ie=xD,Au=/\r\n|[\n\r\u2028\u2029]/;function ND(e,u,t,r){let n={column:null,line:-1,...e.start},D={...n,...e.end},{linesAbove:i=2,linesBelow:a=3}=t||{},o=n.line-r,s=n.column,l=D.line-r,F=D.column,c=Math.max(o-(i+1),0),d=Math.min(u.length,l+a);o===-1&&(c=0),l===-1&&(d=u.length);let f=l-o,h={};if(f)for(let p=0;p<=f;p++){let C=p+o;s==null?h[C]=!0:p===0?h[C]=[s,u[C-1].length-s]:p===f?h[C]=[0,F]:h[C]=[0,u[C-1].length]}else if(s===F)s!=null?h[o]=[s,0]:h[o]=!0;else{let p=s??0;h[o]=[p,(F??p)-p]}return{start:c,end:d,markerLines:h}}function OD(e,u,t={},r){let{defs:n,highlight:D}=r||{defs:{gutter:String,marker:String,message:String,reset:String},highlight:String},i=(t.startLine||1)-1,{start:a,end:o,markerLines:s}=ND(u,e.split(Au),t,i),l=u.start&&typeof u.start.column=="number",F=String(o+i).length,c=D(e).split(Au,o).slice(a,o).map((d,f)=>{let h=a+1+f,p=` ${` ${h+i}`.slice(-F)} |`,C=s[h],E=!s[h+1];if(C){let m="";if(Array.isArray(C)){let g=d.slice(0,C[0]).replace(/[^\t]/g," "),v=C[1]||1;m=[`
|
|
19
|
+
`,n.gutter(p.replace(/\d/g," "))," ",g,n.marker("^").repeat(v)].join(""),E&&t.message&&(m+=" "+n.message(t.message))}return[n.marker(">"),n.gutter(p),d.length>0?` ${d}`:"",m].join("")}else return` ${n.gutter(p)}${d.length>0?` ${d}`:""}`}).join(`
|
|
20
|
+
`);return t.message&&!l&&(c=`${" ".repeat(F+1)}${t.message}
|
|
21
|
+
${c}`),n.reset(c)}function _D(e,u,t={}){return OD(e,u,t)}async function ID(e,u){let t=await Ze(u),r=t.preprocess?await t.preprocess(e,u):e;u.originalText=r;let n;try{n=await t.parse(r,u,u)}catch(D){TD(D,e)}return{text:r,ast:n}}function TD(e,u){let{loc:t}=e;if(t){let{start:r,end:n}=t;r&&(r={line:r.line,column:r.column-1}),n&&(n={line:n.line,column:n.column-1});let D=_D(u,{start:r,end:n},{highlightCode:!0});e.message+=`
|
|
22
|
+
`+D,e.codeFrame=D}throw e}var Fe=ID;async function PD(e,u,t,r,n){if(t.embeddedLanguageFormatting!=="auto")return;let{printer:D}=t,{embed:i}=D;if(!i)return;if(i.length>2)throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/plugins#optional-embed");let{hasPrettierIgnore:a}=D,{getVisitorKeys:o}=i,s=[];c();let l=e.stack;for(let{print:d,node:f,pathStack:h}of s)try{e.stack=h;let p=await d(F,u,e,t);p&&n.set(f,p)}catch(p){if(globalThis.PRETTIER_DEBUG)throw p}e.stack=l;function F(d,f){return jD(d,f,t,r)}function c(){let{node:d}=e;if(d===null||typeof d!="object"||a?.(e))return;for(let h of o(d))Array.isArray(d[h])?e.each(c,h):e.call(c,h);let f=i(e,t);if(f){if(typeof f=="function"){s.push({print:f,node:d,pathStack:[...e.stack]});return}n.set(d,f)}}}async function jD(e,u,t,r){let n=await ie({...t,...u,parentParser:t.parser,originalText:e,cursorOffset:void 0,rangeStart:void 0,rangeEnd:void 0},{passThrough:!0}),{ast:D}=await Fe(e,n);return ju(await r(D,n))}function LD(e,u,t,r){let{originalText:n,[me]:D,locStart:i,locEnd:a,[Symbol.for("printedComments")]:o}=u,{node:s}=e,l=i(s),F=a(s);for(let d of D)i(d)>=l&&a(d)<=F&&o.add(d);let{printPrettierIgnored:c}=u.printer;return c?c(e,u,t,r):n.slice(l,F)}var $D=LD;async function be(e,u){({ast:e}=await Bt(e,u));let t=new Map,r=new Zr(e),n=En(u),D=new Map;await PD(r,a,u,be,D);let i=await bu(r,u,a,void 0,D);if(Cn(u),u.cursorOffset>=0){if(u.nodeAfterCursor&&!u.nodeBeforeCursor)return[Z,i];if(u.nodeBeforeCursor&&!u.nodeAfterCursor)return[i,Z]}return i;function a(s,l){return s===void 0||s===r?o(l):Array.isArray(s)?r.call(()=>o(l),...s):r.call(()=>o(l),s)}function o(s){n(r);let l=r.node;if(l==null)return"";let F=qe(l)&&s===void 0;if(F&&t.has(l))return t.get(l);let c=bu(r,u,a,s,D);return F&&t.set(l,c),c}}function bu(e,u,t,r,n){let{node:D}=e,{printer:i}=u,a;switch(i.hasPrettierIgnore?.(e)?a=$D(e,u,t,r):n.has(D)?a=n.get(D):a=i.print(e,u,t,r),D){case u.cursorNode:a=de(a,o=>[Z,o,Z]);break;case u.nodeBeforeCursor:a=de(a,o=>[o,Z]);break;case u.nodeAfterCursor:a=de(a,o=>[Z,o]);break}return i.printComment&&Yu(D.comments)&&!i.willPrintOwnComments?.(e,u)&&(a=hn(e,a,u)),a}async function Bt(e,u){let t=e.comments??[];u[me]=t,u[Symbol.for("printedComments")]=new Set,an(e,u);let{printer:{preprocess:r}}=u;return e=r?await r(e,u):e,{ast:e,comments:t}}function RD(e,u){let{cursorOffset:t,locStart:r,locEnd:n,getVisitorKeys:D}=u,i=d=>r(d)<=t&&n(d)>=t,a=e,o=[e];for(let d of rn(e,{getVisitorKeys:D,filter:i}))o.push(d),a=d;if(nn(a,{getVisitorKeys:D}))return{cursorNode:a};let s,l,F=-1,c=Number.POSITIVE_INFINITY;for(;o.length>0&&(s===void 0||l===void 0);){a=o.pop();let d=s!==void 0,f=l!==void 0;for(let h of ve(a,{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 vt=RD;function MD(e,u){let{printer:t}=u,r=t.massageAstNode;if(!r)return e;let{getVisitorKeys:n}=t,{ignoredProperties:D}=r;return i(e);function i(a,o){if(!qe(a))return a;if(Array.isArray(a))return a.map(c=>i(c,o)).filter(Boolean);let s={},l=new Set(n(a));for(let c in a)!Ae(a,c)||D?.has(c)||(l.has(c)?s[c]=i(a[c],a):s[c]=a[c]);let F=r(a,s,o);if(F!==null)return F??s}}var VD=MD,WD=Array.prototype.findLastIndex??function(e){for(let u=this.length-1;u>=0;u--){let t=this[u];if(e(t,u,this))return u}return-1},KD=le("findLastIndex",function(){if(Array.isArray(this))return WD});function zD(e,u){return u=new Set(u),e.find(t=>At.has(t.type)&&u.has(t))}function wu(e){let u=KD(0,e,t=>t.type!=="Program"&&t.type!=="File");return u===-1?e:e.slice(0,u+1)}function UD(e,u,{locStart:t,locEnd:r}){let[n,...D]=e,[i,...a]=u;if(n===i)return[n,i];let o=t(n);for(let l of wu(a))if(t(l)>=o)i=l;else break;let s=r(i);for(let l of wu(D)){if(r(l)<=s)n=l;else break;if(n===i)break}return[n,i]}function Le(e,u,t,r,n=[],D,i){let{locStart:a,locEnd:o}=i,s=a(e),l=o(e);if(u>l||u<s||D==="rangeEnd"&&u===s||D==="rangeStart"&&u===l)return;let F=[e,...n],c=et(e,F,{cache:ut,locStart:a,locEnd:o,getVisitorKeys:t.getVisitorKeys,filter:t.printer.canAttachComment,getChildren:t.printer.getCommentChildNodes});for(let d of c){let f=Le(d,u,t,r,F,D,i);if(f)return f}if(r(e,n[0]))return F}function JD(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 At=new Set(["JsonRoot","ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","UnaryExpression","TemplateLiteral"]),qD=new Set(["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"]);function ku(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"yuku":case"yuku-ts":case"__babel_estree":return JD(u.type,t?.type);case"json":case"json5":case"jsonc":case"json-stringify":return At.has(u.type);case"graphql":return qD.has(u.kind);case"vue":return u.tag!=="root"}return!1}function GD(e,u,t){let{rangeStart:r,rangeEnd:n}=u;U(n>r);let D=e.slice(r,n).search(/\S/),i=D===-1;if(!i)for(r+=D;n>r&&!/\S/.test(e[n-1]);--n);let a=u.printer.features?.experimental_locForRangeFormat??u,o=Le(t,r,u,(f,h)=>ku(u,f,h),[],"rangeStart",a);if(!o)return;let s=i?o:Le(t,n,u,f=>ku(u,f),[],"rangeEnd",a);if(!s)return;let l,F;if(t.type==="JsonRoot"){let f=zD(o,s);l=f,F=f}else[l,F]=UD(o,s,u);let{locStart:c,locEnd:d}=a;return[Math.min(c(l),c(F)),Math.max(d(l),d(F))]}var bt="\uFEFF",Su=Symbol("cursor");async function wt(e,u,t=0){if(!e||e.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:r,text:n}=await Fe(e,u);u.cursorOffset>=0&&(u={...u,...vt(r,u)});let D=await be(r,u,t);t>0&&(D=Ru([j,D],t,u.tabWidth));let i=Be(D,u);if(t>0){let o=i.formatted.trim();i.cursorNodeStart!==void 0&&(i.cursorNodeStart-=i.formatted.indexOf(o),i.cursorNodeStart<0&&(i.cursorNodeStart=0,i.cursorNodeText=i.cursorNodeText.trimStart()),i.cursorNodeStart+i.cursorNodeText.length>o.length&&(i.cursorNodeText=i.cursorNodeText.trimEnd())),i.formatted=o+Me(u.endOfLine)}let a=u[me];if(u.cursorOffset>=0){let o,s,l,F;if((u.cursorNode||u.nodeBeforeCursor||u.nodeAfterCursor)&&i.cursorNodeText)if(l=i.cursorNodeStart,F=i.cursorNodeText,u.cursorNode)o=u.locStart(u.cursorNode),s=n.slice(o,u.locEnd(u.cursorNode));else{if(!u.nodeBeforeCursor&&!u.nodeAfterCursor)throw new Error("Cursor location must contain at least one of cursorNode, nodeBeforeCursor, nodeAfterCursor");o=u.nodeBeforeCursor?u.locEnd(u.nodeBeforeCursor):0;let p=u.nodeAfterCursor?u.locStart(u.nodeAfterCursor):n.length;s=n.slice(o,p)}else o=0,s=n,l=0,F=i.formatted;let c=u.cursorOffset-o;if(s===F)return{formatted:i.formatted,cursorOffset:l+c,comments:a};let d=s.split("");d.splice(c,0,Su);let f=Kt(d,F.split("")),h=l;for(let p of f)if(p.removed){if(p.value.includes(Su))break}else h+=p.count;return{formatted:i.formatted,cursorOffset:h,comments:a}}return{formatted:i.formatted,cursorOffset:-1,comments:a}}async function HD(e,u){let{ast:t,text:r}=await Fe(e,u),[n,D]=GD(r,u,t)??[0,0],i=r.slice(n,D),a=Math.min(n,r.lastIndexOf(`
|
|
23
|
+
`,n)+1),o=r.slice(a,n).match(/^\s*/)[0],s=Je(o,u.tabWidth),l=await wt(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=Me(u.endOfLine);c>=0&&f===`\r
|
|
24
|
+
`&&(c+=Tu(d.slice(0,c),`
|
|
25
|
+
`)),d=Ce(0,d,`
|
|
26
|
+
`,f)}return{formatted:d,cursorOffset:c,comments:l.comments}}function Ie(e,u,t){return typeof u!="number"||Number.isNaN(u)||u<0||u>e.length?t:u}function xu(e,u){let{cursorOffset:t,rangeStart:r,rangeEnd:n}=u;return t=Ie(e,t,-1),r=Ie(e,r,0),n=Ie(e,n,e.length),{...u,cursorOffset:t,rangeStart:r,rangeEnd:n}}function kt(e,u){let{cursorOffset:t,rangeStart:r,rangeEnd:n,endOfLine:D}=xu(e,u),i=e.charAt(0)===bt;if(i&&(e=e.slice(1),t--,r--,n--),D==="auto"&&(D=qt(e)),e.includes("\r")){let a=o=>Tu(e.slice(0,Math.max(o,0)),`\r
|
|
27
|
+
`);t-=a(t),r-=a(r),n-=a(n),e=Yt(e)}return{hasBOM:i,text:e,options:xu(e,{...u,cursorOffset:t,rangeStart:r,rangeEnd:n,endOfLine:D})}}async function Nu(e,u){let t=await Ze(u);return!t.hasPragma||t.hasPragma(e)}async function YD(e,u){return(await Ze(u)).hasIgnorePragma?.(e)}async function St(e,u){let{hasBOM:t,text:r,options:n}=kt(e,await ie(u));if(n.rangeStart>=n.rangeEnd&&r!==""||n.requirePragma&&!await Nu(r,n)||n.checkIgnorePragma&&await YD(r,n))return{formatted:e,cursorOffset:u.cursorOffset,comments:[]};let D;return n.rangeStart>0||n.rangeEnd<r.length?D=await HD(r,n):(!n.requirePragma&&n.insertPragma&&n.printer.insertPragma&&!await Nu(r,n)&&(r=n.printer.insertPragma(r)),D=await wt(r,n)),t&&(D.formatted=bt+D.formatted,D.cursorOffset>=0&&D.cursorOffset++),D}async function ZD(e,u,t){let{text:r,options:n}=kt(e,await ie(u)),D=await Fe(r,n);return t&&(t.preprocessForPrint&&(D.ast=await Bt(D.ast,n)),t.massage&&(D.ast=VD(D.ast,n))),D}async function QD(e,u){return u=await ie(u),Be(await be(e,u),u)}async function XD(e,u){let{formatted:t}=await St(wr(e),{...u,parser:"__js_expression"});return t}async function ei(e,u){u=await ie(u);let{ast:t}=await Fe(e,u);return u.cursorOffset>=0&&(u={...u,...vt(t,u)}),be(t,u)}async function ui(e,u){return Be(e,await ie(u))}var xt={};$e(xt,{builders:()=>ti,printer:()=>ri,utils:()=>ni});var ti={join:Vu,line:Wu,softline:vr,hardline:j,literalline:zu,group:Mu,conditionalGroup:mr,fill:Er,lineSuffix:Te,lineSuffixBoundary:Ar,cursor:Z,breakParent:ye,ifBreak:gr,trim:br,indent:he,indentIfBreak:yr,align:De,addAlignmentToDoc:Ru,markAsRoot:$u,dedentToRoot:hr,dedent:Cr,hardlineWithoutBreakParent:ze,literallineWithoutBreakParent:Ku,label:Br,concat:e=>e},ri={printDocToString:Be},ni={willBreak:Dr,traverseDoc:We,findInDoc:Ke,mapDoc:ge,removeLines:ar,stripTrailingHardline:ju,replaceEndOfLine:cr,canBreak:fr},Di="3.9.9",Nt={};$e(Nt,{addDanglingComment:()=>H,addLeadingComment:()=>ae,addTrailingComment:()=>se,getAlignmentSize:()=>Je,getIndentSize:()=>ci,getMaxContinuousCount:()=>di,getNextNonSpaceNonCommentCharacter:()=>hi,getNextNonSpaceNonCommentCharacterIndex:()=>bi,getPreferredQuote:()=>mi,getStringWidth:()=>Ue,hasNewline:()=>z,hasNewlineInRange:()=>yi,hasSpaces:()=>vi,isNextLineEmpty:()=>Ni,isNextLineEmptyAfterIndex:()=>uu,isPreviousLineEmpty:()=>ki,makeString:()=>xi,skip:()=>ce,skipEverythingButNewLine:()=>Qu,skipInlineComment:()=>Qe,skipNewline:()=>Q,skipSpaces:()=>J,skipToLineEnd:()=>Zu,skipTrailingComment:()=>Xe,skipWhitespace:()=>en});function ii(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 Qe=ii;function oi(e,u){return u===!1?!1:e.charAt(u)==="/"&&e.charAt(u+1)==="/"?Qu(e,u):u}var Xe=oi;function ai(e,u){let t=null,r=u;for(;r!==t;)t=r,r=J(e,r),r=Qe(e,r),r=Xe(e,r),r=Q(e,r);return r}var eu=ai;function si(e,u){let t=null,r=u;for(;r!==t;)t=r,r=Zu(e,r),r=Qe(e,r),r=J(e,r);return r=Xe(e,r),r=Q(e,r),r!==!1&&z(e,r)}var uu=si;function li(e,u){let t=e.lastIndexOf(`
|
|
28
|
+
`);return t===-1?0:Je(e.slice(t+1).match(/^[\t ]*/)[0],u)}var ci=li;function Fi(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function fi(e,u){let t=e.matchAll(new RegExp(`(?:${Fi(u)})+`,"g"));return t.reduce||(t=[...t]),t.reduce((r,[n])=>Math.max(r,n.length),0)/u.length}var di=fi;function pi(e,u){let t=eu(e,u);return t===!1?"":e.charAt(t)}var hi=pi,Ot=Object.freeze({character:"'",codePoint:39}),_t=Object.freeze({character:'"',codePoint:34}),Ci=Object.freeze({preferred:Ot,alternate:_t}),Ei=Object.freeze({preferred:_t,alternate:Ot});function mi(e,u){let{preferred:t,alternate:r}=u===!0||u==="'"?Ci:Ei,{length:n}=e,D=0,i=0;for(let a=0;a<n;a++){let o=e.charCodeAt(a);o===t.codePoint?D++:o===r.codePoint&&i++}return(D>i?r:t).character}function gi(e,u,t){for(let r=u;r<t;++r)if(e.charAt(r)===`
|
|
29
|
+
`)return!0;return!1}var yi=gi;function Bi(e,u,t={}){return J(e,t.backwards?u-1:u,t)!==u}var vi=Bi;function Ai(e,u,t){return eu(e,t(u))}function bi(e,u){return arguments.length===2||typeof u=="number"?eu(e,u):Ai(...arguments)}function wi(e,u,t){return He(e,t(u))}function ki(e,u){return arguments.length===2||typeof u=="number"?He(e,u):wi(...arguments)}function Si(e,u,t){return uu(e,t(u))}function xi(e,u,t){let r=u==='"'?"'":'"';return u+Ce(0,e,/\\(.)|(["'])/gs,(n,D,i)=>D===r?D:i===u?"\\"+i:i||(t&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(D)?D:"\\"+D))+u}function Ni(e,u){return arguments.length===2||typeof u=="number"?uu(e,u):Si(...arguments)}function Y(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)},await e(...t)}}var It=Y(St);async function tu(e,u){let{formatted:t}=await It(e,{...u,cursorOffset:-1});return t}async function Oi(e,u){return await tu(e,u)===e}var _i=Y(ot,0),Ii={parse:Y(ZD),formatAST:Y(QD),formatDoc:Y(XD),printToDoc:Y(ei),printDocToString:Y(ui)};exports.format=tu;
|