1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5440],{12862:(e,t,n)=>{n.r(t),n.d(t,{default:()=>aQ,languages:()=>az,options:()=>aK,printers:()=>aH});var r=Object.defineProperty,u=e=>{throw TypeError(e)},a=(e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})},o=(e,t,n)=>t.has(e)||u("Cannot "+n),i=(e,t,n)=>(o(e,t,"read from private field"),n?n.call(e):t.get(e)),s=(e,t,n)=>t.has(e)?u("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),p=(e,t,n,r)=>(o(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),l={};a(l,{languages:()=>az,options:()=>aK,printers:()=>aH});var c={};a(c,{canAttachComment:()=>nj,embed:()=>ra,experimentalFeatures:()=>aq,getCommentChildNodes:()=>nL,getVisitorKeys:()=>J,handleComments:()=>tU,insertPragma:()=>rf,isBlockComment:()=>X,isGap:()=>nO,massageAstNode:()=>e2,print:()=>aJ,printComment:()=>tW,willPrintOwnComments:()=>nM});var D=(e,t,n,r)=>{if(!(e&&null==t))return t.replaceAll?t.replaceAll(n,r):n.global?t.replace(n,r):t.split(n).join(r)},y=(e,t,n)=>{if(!(e&&null==t))return Array.isArray(t)||"string"==typeof t?t[n<0?t.length+n:n]:t.at(n)},d=()=>/[#*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,m=e=>!(function(e){return 12288===e||e>=65281&&e<=65376||e>=65504&&e<=65510}(e)||function(e){return e>=4352&&e<=4447||8986===e||8987===e||9001===e||9002===e||e>=9193&&e<=9196||9200===e||9203===e||9725===e||9726===e||9748===e||9749===e||e>=9776&&e<=9783||e>=9800&&e<=9811||9855===e||e>=9866&&e<=9871||9875===e||9889===e||9898===e||9899===e||9917===e||9918===e||9924===e||9925===e||9934===e||9940===e||9962===e||9970===e||9971===e||9973===e||9978===e||9981===e||9989===e||9994===e||9995===e||10024===e||10060===e||10062===e||e>=10067&&e<=10069||10071===e||e>=10133&&e<=10135||10160===e||10175===e||11035===e||11036===e||11088===e||11093===e||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||94192===e||94193===e||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101631&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||110589===e||110590===e||e>=110592&&e<=110882||110898===e||e>=110928&&e<=110930||110933===e||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||126980===e||127183===e||127374===e||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>
1=127552&&e<=127560||127568===e||127569===e||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||127988===e||e>=127992&&e<=128062||128064===e||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||128378===e||128405===e||128406===e||128420===e||e>=128507&&e<=128591||e>=128640&&e<=128709||128716===e||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||128747===e||128748===e||e>=128756&&e<=128764||e>=128992&&e<=129003||129008===e||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129673||e>=129679&&e<=129734||e>=129742&&e<=129756||e>=129759&&e<=129769||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}(e)),E=/[^\x20-\x7F]/u,f=function(e){if(!e)return 0;if(!E.test(e))return e.length;e=e.replace(d()," ");let t=0;for(let n of e){let e=n.codePointAt(0);e<=31||e>=127&&e<=159||e>=768&&e<=879||(t+=m(e)?1:2)}return t};function F(e){return(t,n,r)=>{let u=!!(null!=r&&r.backwards);if(!1===n)return!1;let{length:a}=t,o=n;for(;o>=0&&o<a;){let n=t.charAt(o);if(e instanceof RegExp){if(!e.test(n))return o}else if(!e.includes(n))return o;u?o--:o++}return(-1===o||o===a)&&o}}F(/\s/u);var A=F(" "),g=F(",; "),x=F(/[^\n\r]/u),h=function(e,t,n){let r=!!(null!=n&&n.backwards);if(!1===t)return!1;let u=e.charAt(t);if(r){if("\r"===e.charAt(t-1)&&u===` 2`)return t-2;if(u===` 3`||"\r"===u||"\u2028"===u||"\u2029"===u)return t-1}else{if("\r"===u&&e.charAt(t+1)===` 4`)return t+2;if(u===` 5`||"\r"===u||"\u2028"===u||"\u2029"===u)return t+1}return t},T=function(e,t,n={}){let r=A(e,n.backwards?t-1:t,n),u=h(e,r,n);return r!==u},C=function(e,t){if(!1===t)return!1;if("/"===e.charAt(t)&&"*"===e.charAt(t+1)){for(let n=t+2;n<e.length;++n)if("*"===e.charAt(n)&&"/"===e.charAt(n+1))return n+2}return t},S=function(e,t){return!1!==t&&("/"===e.charAt(t)&&"/"===e.charAt(t+1)?x(e,t):t)},b=function(e,t){let n=null,r=t;for(;r!==n;)n=r,r=g(e,r),r=C(e,r),r=A(e,r);return r=S(e,r),!1!==(r=h(e,r))&&T(e,r)},B=function(e){return Array.isArray(e)&&e.length>0},v=new Proxy(()=>{},{get:()=>v}),k=function(e,t){let n=!0===t||"'"===t?"'":'"',r="'"===n?'"':"'",u=0,a=0;for(let t of e)t===n?u++:t===r&&a++;return u>a?r:n},P=function(e,t,n){let r='"'===t?"'":'"',u=D(!1,e,/\\(.)|(["'])/gsu,(e,u,a)=>u===r?u:a===t?"\\"+a:a||(n&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(u)?u:"\\"+u));return t+u+t},w=function(e,t){v(/^(?<quote>["']).*\k<quote>$/su.test(e));let n=e.slice(1,-1),r="json"!==t.parser&&"jsonc"!==t.parser&&("json5"!==t.parser||"preserve"!==t.quoteProps||t.singleQuote)?t.__isInHtmlAttribute?"'":k(n,t.singleQuote):'"';return e.charAt(0)===r?e:P(n,r,!1)};function N(e){var t,n,r;let u=(null==(t=e.range)?void 0:t[0])??e.start,a=null==(r=(null==(n=e.declaration)?void 0:n.decorators)??e.decorators)?void 0:r[0];return a?Math.min(N(a),u):u}function I(e){var t;return(null==(t=e.range)?void 0:t[1])??e.end}function j(e,t){let n=N(e);return Number.isInteger(n)&&n===N(t)}var L=null;function M(e){if(null!==L&&(L.property,1)){let e=L;return L=M.prototype=null,e}return L=M.prototype=e??Object.create(null),new M}for(let e=0;e<=10;e++)M();var O=function(e,t="type"){return M(e),function(n){let r=n[t],u=e[r];if(!Array.isArray(u))throw Object.assign(Error(`Missing visitor keys for '${r}'.`),{node:n});return u}},J=O({ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","typeParameters","params","predicate","returnType","body"],FunctionExpression:["id","typeParameters","params","returnType","body"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral
5:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],ClassBody:["body"],ClassExpression:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ClassDeclaration:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],ImportExpression:["source","options"],MetaProperty:["meta","property"],ClassMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","typeParameters","quasi","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["decorators","variance","key","typeAnnotation","value"],ClassAccessorProperty:["decorators","key","typeAnnotation","value"],ClassPrivateProperty:["decorators","variance","key","typeAnnotation","value"],ClassPrivateMethod:["decorators","key","typeParameters","params","returnType","body"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source","attributes"],DeclareExportAllDeclaration:["source","attributes"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["qualification","id"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument","typeArguments"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeParameters","typeArguments","attributes"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exp
5orted"],RecordExpression:["properties"],TupleExpression:["elements"],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters","typeArguments"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters","typeArguments"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","nameType","typeAnnotation"],TSTemplateLiteralType:["quasis","types"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters","typeArguments"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumBody:["members"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","options","qualifier","typeParameters","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],Literal
5:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeArguments","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeArguments","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],AsConstExpression:["expression"],AsExpression:["expression","typeAnnotation"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:["name","typeAnnotation"],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclareEnum:["id","body"],DeclareHook:["id"],DeclareNamespace:["id","body"],EnumBigIntBody:["members"],EnumBigIntMember:["id","init"],HookDeclaration:["id","params","body","typeParameters","returnType"],HookTypeAnnotation:["params","returnType","rest","typeParameters"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeOperator:["typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[],SatisfiesExpression:["expression","typeAnnotation"]}),q=function(e){let t=new Set(e);return e=>t.has(null==e?void 0:e.type)},X=q(["Block","CommentBlock","MultiLine"]),_=q(["AnyTypeAnnotation","ThisTypeAnnotation","NumberTypeAnnotation","VoidTypeAnnotation","BooleanTypeAnnotation","BigIntTypeAnnotation","SymbolTypeAnnotation","StringTypeAnnotation","NeverTypeAnnotation","UndefinedTypeAnnotation","UnknownTypeAnnotation","EmptyTypeAnnotation","MixedTypeAnnotation"]),R=function({type:e}){return e.startsWith("TS")&&e.endsWith("Keyword")};function $(e,t){return t(e)||function(e,{getVisitorKeys:t,predicate:n}){for(let r of function*(e,t){let n=[e];for(let e=0;e<n.length;e++)for(let r of function*(e,t){let{getVisitorKeys:n,filter:r=()=>!0}=t,u=e=>null!==e&&"object"==typeof e&&r(e);for(let t of n(e)){let n=e[t];if(Array.isArray(n))for(let e of n)u(e)&&(yield e);else u(n)&&(yield n)}}(n[e],t))yield r,n.push(r)}(e,{getVisitorKeys:t}))if(n(r))return!0;return!1}(e,{getVisitorKeys:J,predicate:t})}function W(e){return"AssignmentExpression"===e.type||"BinaryExpression"===e.type||"LogicalExpression"===e.type||"NGPipeExpression"===e.type||"ConditionalExpression"===e.type||em(e)||eE(e)||"SequenceExpression"===e.type||"TaggedTemplateExpression"===e.type||"BindExpression"===e.type||"UpdateExpression"===e.type&&!e.prefix||ez(e)||"TSNonNullExpression"===e.type||"ChainExpression"===e.type}function U(e){if(e.expressions)return["expressions",0];if(e.left)return["left"];if(e.test)return["test"];if(e.object)return["object"];if(e.callee)return["callee"];if(e.tag)return["tag"];if(e.argument)return["argument"];if(e.expression)return["expression"];throw Error("Unexpected node has no left side.")}var G=q(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),V=q(["ExportDefaultDeclaration","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration","DeclareExportAllDeclaration"]),K=q(["ArrayExpression","TupleExpression"]),H=q(["ObjectExpression","RecordExpression"]);function z(e){return"NumericLiteral"===e.type||"Literal"===e.type&&"number"==typeof e.value}function Q(e){return"UnaryExpression"===e.type&&("+"===e.operator||"-"===e.operator)&&z(e.argument)}function Y(e){return!!(e&&("StringLiteral"===e.type||"Literal"===e.type&&"string"==typeof e.value))}function Z(e){return"RegExpLiteral"===e.type||"Literal"===e.type&&!!e.regex}var ee=q(["Literal","BooleanLiteral","BigIntLiteral","DirectiveLiteral","NullLiteral","NumericLiteral","RegExpLiteral","StringLiteral"]),et=q(["Identifier","ThisExpression","Super","PrivateName","PrivateIdentifier"]),en=q(["ObjectTypeAnnotation","TSTypeLiteral","TSMappedType"]),er=q(["FunctionExpression","ArrowFunctionExpression"]);function eu(e){return em(e)&&"Identifier"===e.callee.type&&["async","inject","fakeAsync","waitForAsync"].includes(e.callee.name)}var ea=q(["JSXElement","JSXFragment"]);function eo(e){return e.method&&"init"===e.kind||"get"===e.kind||"set"===e.kind}function ei(e){return("ObjectTypeProperty"===e.type||"ObjectTypeInternalSlot"===e.type)&&!e.static&&!e.method&&"get"!==e.kind&&"set"!==e.kind&&"FunctionTypeAnnotation"===e.value.type}var es=q(["BinaryExpression","LogicalExpression","NGPipeExpression"]);function ep(e){return eE(e)||"BindExpression"===e.type&&!!e.object}var el=q(["TSThisType","NullLiteralTypeAnnotation","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType"]);function ec(e){return R(e)||_(e)||el(e)||("GenericTypeAnnotation"===e.type||"TSTypeReference"===e.type)&&!e.typeParameters&&!e.typeArguments}
5var eD=["it","it.only","it.skip","describe","describe.only","describe.skip","test","test.only","test.skip","test.step","test.describe","test.describe.only","test.describe.parallel","test.describe.parallel.only","test.describe.serial","test.describe.serial.only","skip","xit","xdescribe","xtest","fit","fdescribe","ftest"];function ey(e,t){var n,r,u;if((null==e?void 0:e.type)!=="CallExpression"||e.optional)return!1;let a=eJ(e);if(1===a.length){if(eu(e)&&ey(t))return er(a[0]);if("Identifier"===(n=e.callee).type&&("beforeEach"===n.name||"beforeAll"===n.name||"afterEach"===n.name||"afterAll"===n.name))return eu(a[0])}else if((2===a.length||3===a.length)&&("TemplateLiteral"===a[0].type||Y(a[0]))&&(r=e.callee,eD.some(e=>(function(e,t){let n=t.split(".");for(let t=n.length-1;t>=0;t--){let r=n[t];if(0===t)return"Identifier"===e.type&&e.name===r;if("MemberExpression"!==e.type||e.optional||e.computed||"Identifier"!==e.property.type||e.property.name!==r)return!1;e=e.object}})(r,e))))return(!a[2]||!!z(a[2]))&&((2===a.length?er(a[1]):("FunctionExpression"===(u=a[1]).type||"ArrowFunctionExpression"===u.type&&"BlockStatement"===u.body.type)&&eM(a[1]).length<=1)||eu(a[1]));return!1}var ed=e=>t=>((null==t?void 0:t.type)==="ChainExpression"&&(t=t.expression),e(t)),em=ed(q(["CallExpression","OptionalCallExpression"])),eE=ed(q(["MemberExpression","OptionalMemberExpression"]));function ef(e,t=5){return function e(t,n){let r=0;for(let u in t){let a=t[u];if(a&&"object"==typeof a&&"string"==typeof a.type&&(r++,r+=e(a,n-r)),r>n)break}return r}(e,t)<=t}function eF(e,t){let{printWidth:n}=t;if(eU(e))return!1;let r=.25*n;if("ThisExpression"===e.type||"Identifier"===e.type&&e.name.length<=r||Q(e)&&!eU(e.argument))return!0;let u="Literal"===e.type&&"regex"in e&&e.regex.pattern||"RegExpLiteral"===e.type&&e.pattern;return u?u.length<=r:Y(e)?w(eb(e),t).length<=r:"TemplateLiteral"===e.type?0===e.expressions.length&&e.quasis[0].value.raw.length<=r&&!e.quasis[0].value.raw.includes(` 6`):"UnaryExpression"===e.type?eF(e.argument,{printWidth:n}):"CallExpression"===e.type&&0===e.arguments.length&&"Identifier"===e.callee.type?e.callee.name.length<=r-2:ee(e)}function eA(e,t){return ea(t)?eR(t):eU(t,e$.Leading,t=>T(e,I(t)))}function eg(e){return e.quasis.some(e=>e.value.raw.includes(` 7`))}function ex(e,t){return("TemplateLiteral"===e.type&&eg(e)||"TaggedTemplateExpression"===e.type&&eg(e.quasi))&&!T(t,N(e),{backwards:!0})}function eh(e){if(!eU(e))return!1;let t=y(!1,eG(e,e$.Dangling),-1);return t&&!X(t)}function eT(e){let{node:t,parent:n,key:r}=e;return"callee"===r&&em(t)&&em(n)&&n.arguments.length>0&&t.arguments.length>n.arguments.length}var eC=new Set(["!","-","+","~"]);function eS(e,t=2){if(t<=0)return!1;if("ChainExpression"===e.type||"TSNonNullExpression"===e.type)return eS(e.expression,t);let n=e=>eS(e,t-1);if(Z(e))return 5>=f(e.pattern??e.regex.pattern);if(ee(e)||et(e)||"ArgumentPlaceholder"===e.type)return!0;if("TemplateLiteral"===e.type)return e.quasis.every(e=>!e.value.raw.includes(` 8`))&&e.expressions.every(n);if(H(e))return e.properties.every(e=>!e.computed&&(e.shorthand||e.value&&n(e.value)));if(K(e))return e.elements.every(e=>null===e||n(e));if(eK(e)){if("ImportExpression"===e.type||eS(e.callee,t)){let r=eJ(e);return r.length<=t&&r.every(n)}return!1}return eE(e)?eS(e.object,t)&&eS(e.property,t):(!!("UnaryExpression"===e.type&&eC.has(e.operator))||"UpdateExpression"===e.type)&&eS(e.argument,t)}function eb(e){var t;return(null==(t=e.extra)?void 0:t.raw)??e.raw}function eB(e,t="es5"){return"es5"===e.trailingComma&&"es5"===t||"all"===e.trailingComma&&("all"===t||"es5"===t)}function ev(e,t){switch(e.type){case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":case"NGPipeExpression":return ev(e.left,t);case"MemberExpression":case"OptionalMemberExpression":return ev(e.object,t);case"TaggedTemplateExpression":return"FunctionExpression"!==e.tag.type&&ev(e.tag,t);case"CallExpression":case"OptionalCallExpression":return"FunctionExpression"!==e.callee.type&&ev(e.callee,t);case"ConditionalExpression":return ev(e.test,t);case"UpdateExpression":return!e.prefix&&ev(e.argument,t);case"BindExpression":return e.object&&ev(e.object,t);case"SequenceExpression":return ev(e.expressions[0],t);case"ChainExpression":case"TSSatisfiesExpression":case"TSAsExpression":case"TSNonNullExpression":case"AsExpression":case"AsConstExpression":case"S
8atisfiesExpression":return ev(e.expression,t);default:return t(e)}}var ek={"==":!0,"!=":!0,"===":!0,"!==":!0},eP={"*":!0,"/":!0,"%":!0},ew={">>":!0,">>>":!0,"<<":!0};function eN(e,t){return!(ej(t)!==ej(e)||"**"===e||ek[e]&&ek[t]||"%"===t&&eP[e]||"%"===e&&eP[t]||t!==e&&eP[t]&&eP[e]||ew[e]&&ew[t])}var eI=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap((e,t)=>e.map(e=>[e,t])));function ej(e){return eI.get(e)}var eL=new WeakMap;function eM(e){if(eL.has(e))return eL.get(e);let t=[];return e.this&&t.push(e.this),Array.isArray(e.parameters)?t.push(...e.parameters):Array.isArray(e.params)&&t.push(...e.params),e.rest&&t.push(e.rest),eL.set(e,t),t}var eO=new WeakMap;function eJ(e){if(eO.has(e))return eO.get(e);if("ChainExpression"===e.type)return eJ(e.expression);let t=e.arguments;return"ImportExpression"===e.type&&(t=[e.source],e.options&&t.push(e.options)),eO.set(e,t),t}function eq(e,t){let{node:n}=e;if("ChainExpression"===n.type)return e.call(()=>eq(e,t),"expression");"ImportExpression"===n.type?(e.call(e=>t(e,0),"source"),n.options&&e.call(e=>t(e,1),"options")):e.each(t,"arguments")}function eX(e,t){let n=[];if("ChainExpression"===e.type&&(e=e.expression,n.push("expression")),"ImportExpression"===e.type){if(0===t||t===(e.options?-2:-1))return[...n,"source"];if(e.options&&(1===t||-1===t))return[...n,"options"];throw RangeError("Invalid argument index")}if(t<0&&(t=e.arguments.length+t),t<0||t>=e.arguments.length)throw RangeError("Invalid argument index");return[...n,"arguments",t]}function e_(e){return"prettier-ignore"===e.value.trim()&&!e.unignore}function eR(e){return(null==e?void 0:e.prettierIgnore)||eU(e,e$.PrettierIgnore)}var e$={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,PrettierIgnore:64,First:128,Last:256},eW=(e,t)=>{if("function"==typeof e&&(t=e,e=0),e||t)return(n,r,u)=>!(e&e$.Leading&&!n.leading||e&e$.Trailing&&!n.trailing||e&e$.Dangling&&(n.leading||n.trailing)||e&e$.Block&&!X(n)||e&e$.Line&&!G(n)||e&e$.First&&0!==r||e&e$.Last&&r!==u.length-1||e&e$.PrettierIgnore&&!e_(n)||t&&!t(n))};function eU(e,t,n){if(!B(null==e?void 0:e.comments))return!1;let r=eW(t,n);return!r||e.comments.some(r)}function eG(e,t,n){if(!Array.isArray(null==e?void 0:e.comments))return[];let r=eW(t,n);return r?e.comments.filter(r):e.comments}var eV=(e,{originalText:t})=>b(t,I(e));function eK(e){return em(e)||"NewExpression"===e.type||"ImportExpression"===e.type}function eH(e){return e&&("ObjectProperty"===e.type||"Property"===e.type&&!eo(e))}var ez=q(["TSAsExpression","TSSatisfiesExpression","AsExpression","AsConstExpression","SatisfiesExpression"]),eQ=q(["UnionTypeAnnotation","TSUnionType"]),eY=q(["IntersectionTypeAnnotation","TSIntersectionType"]),eZ=new Set(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","loc","flags","errors","tokens"]),e0=e=>{for(let t of e.quasis)delete t.value};function e1(e,t,n){var r,u;if("Program"===e.type&&delete t.sourceType,("BigIntLiteral"===e.type||"BigIntLiteralTypeAnnotation"===e.type)&&e.value&&(t.value=e.value.toLowerCase()),("BigIntLiteral"===e.type||"Literal"===e.type)&&e.bigint&&(t.bigint=e.bigint.toLowerCase()),"EmptyStatement"===e.type||"JSXText"===e.type||"JSXExpressionContainer"===e.type&&("Literal"===e.expression.type||"StringLiteral"===e.expression.type)&&" "===e.expression.value)return null;if(("Property"===e.type||"ObjectProperty"===e.type||"MethodDefinition"===e.type||"ClassProperty"===e.type||"ClassMethod"===e.type||"PropertyDefinition"===e.type||"TSDeclareMethod"===e.type||"TSPropertySignature"===e.type||"ObjectTypeProperty"===e.type||"ImportAttribute"===e.type)&&e.key&&!e.computed){let{key:n}=e;Y(n)||z(n)?t.key=String(n.value):"Identifier"===n.type&&(t.key=n.name)}if("JSXElement"===e.type&&"style"===e.openingElement.name.name&&e.openingElement.attributes.some(e=>"JSXAttribute"===e.type&&"jsx"===e.name.name))for(let{type:e,expression:n}of t.children)"JSXExpressionContainer"===e&&"TemplateLiteral"===n.type&&e0(n);"JSXAttribute"===e.type&&"css"===e.name.name&&"JSXExpressionContainer"===e.value.type&&"TemplateLiteral"===e.value.expression.type&&e0(t.value.expression),"JSXAttribute"===e.type&&(null==(r=e.value)?void 0:r.type)==="Literal"&&/["']|"|'/u.test(e.value.value)&&(t.value.value=D(!1,e.value.value,/["']|"|'/gu,'"'));let a=e.expression||e.callee;if("Decorator"===e.type&&"CallExpression"===a.type&&"Component"===a.callee.name&&1===a.arguments.length){let n=e.expression.arguments[0].properties;for(let[e,r]of t.expression.arguments[0].properties.entries())switch(n[e].key.name){case"styles":K(r.value)&&e0(r.value.elements[0]);break;case"template":"TemplateLiteral"===r.value.type&&e0(r.value)}}"TaggedTemplateExpression"===e.type&&("MemberExpression"===e.tag.type||"Identifier"===e.tag.type&&("gql"===e.tag.name||"graphql"===e.tag.name||"css"===e.tag.name||"md"===e.tag.name||"markdown"===e.tag.name||"html"===e.tag.name)||"CallExpression"===e.tag.type)&&e0(t.quasi),"TemplateLiteral"===e.type&&(null!=(u=e.leadingComments)&&u.some(e=>X(e)&&["GraphQL","HTML"].some(t=>e.value===` ${t} `))||"CallExpression"===n.type&&"graphql"===n.callee.name||!e.leadingComments)&&e0(t),"ChainExpression"===e.type&&"TSNonNullExpression"===e.expression.type&&(t.type="TSNonNullExpression",t.expression.type="ChainExpression"),"TSMappedType"===e.type&&(delete t.key,delete t.constraint),"TSEnumDeclaration"===e.type&&delete t.body}e1.ignoredProperties=eZ;var e2=e1,e8="string",e3="array",e6="cursor",e7="indent",e9="align",e4="trim",e5="group",te="fill",tt="if-break",tn="indent-if-break",tr="line-suffix",tu="line-suffix-boundary",ta="line",to="label",ti="break-parent",ts=new Set([e6,e7,e9,e4,e5,te,tt,tn,tr,tu,ta,to,ti]),tp=function(e){if("string"==typeof e)return e8;if(Array.isArray(e))return e3;if(!e)return;let{type:t}=e;if(ts.has(t))return t},tl=e=>new Intl.ListFormat("en-US",{type:"disjunction"}
8).format(e),tc=class extends Error{name="InvalidDocError";constructor(e){super(function(e){let t=null===e?"null":typeof e;if("string"!==t&&"object"!==t)return`Unexpected doc '${t}', 9Expected it to be 'string' or 'object'.`;if(tp(e))throw Error("doc is valid.");let n=Object.prototype.toString.call(e);if("[object Object]"!==n)return`Unexpected doc '${n}'.`;let r=tl([...ts].map(e=>`'${e}'`));return`Unexpected doc.type '${e.type}'. 10Expected it to be ${r}.`}(e)),this.doc=e}},tD={},ty=function(e,t,n,r){let u=[e];for(;u.length>0;){let e=u.pop();if(e===tD){n(u.pop());continue}n&&u.push(e,tD);let a=tp(e);if(!a)throw new tc(e);if((null==t?void 0:t(e))!==!1)switch(a){case e3:case te:{let t=a===e3?e:e.parts;for(let e=t.length,n=e-1;n>=0;--n)u.push(t[n]);break}case tt:u.push(e.flatContents,e.breakContents);break;case e5:if(r&&e.expandedStates)for(let t=e.expandedStates.length,n=t-1;n>=0;--n)u.push(e.expandedStates[n]);else u.push(e.contents);break;case e9:case e7:case tn:case to:case tr:u.push(e.contents);break;case e8:case e6:case e4:case tu:case ta:case ti:break;default:throw new tc(e)}}};function td(e,t){if("string"==typeof e)return t(e);let n=new Map;return function e(r){if(n.has(r))return n.get(r);let u=function(n){switch(tp(n)){case e3:return t(n.map(e));case te:return t({...n,parts:n.parts.map(e)});case tt:return t({...n,breakContents:e(n.breakContents),flatContents:e(n.flatContents)});case e5:{let{expandedStates:r,contents:u}=n;return u=r?(r=r.map(e))[0]:e(u),t({...n,contents:u,expandedStates:r})}case e9:case e7:case tn:case to:case tr:return t({...n,contents:e(n.contents)});case e8:case e6:case e4:case tu:case ta:case ti:return t(n);default:throw new tc(n)}}(r);return n.set(r,u),u}(e)}function tm(e,t,n){let r=n,u=!1;return ty(e,function(e){if(u)return!1;let n=t(e);void 0!==n&&(u=!0,r=n)}),r}function tE(e){if(e.type===e5&&e.break||e.type===ta&&e.hard||e.type===ti)return!0}function tf(e){return tm(e,tE,!1)}function tF(e){if(e.length>0){let t=y(!1,e,-1);t.expandedStates||t.break||(t.break="propagated")}return null}function tA(e){return e.type!==ta||e.hard?e.type===tt?e.flatContents:e:e.soft?"":" "}function tg(e){return td(e,e=>(function(e){switch(tp(e)){case te:if(e.parts.every(e=>""===e))return"";break;case e5:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===e5&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case e9:case e7:case tn:case tr:if(!e.contents)return"";break;case tt:if(!e.flatContents&&!e.breakContents)return"";break;case e3:{let t=[];for(let n of e){if(!n)continue;let[e,...r]=Array.isArray(n)?n:[n];"string"==typeof e&&"string"==typeof y(!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 e8:case e6:case e4:case tu:case ta:case to:case ti:break;default:throw new tc(e)}return e})(e))}function tx(e,t=tq){return td(e,e=>"string"==typeof e?t_(t,e.split(` 11`)):e)}function th(e){if(e.type===ta)return!0}function tT(e,t){return e.type===to?{...e,contents:t(e.contents)}:t(e)}var tC=()=>{};function tS(e){return tC(e),{type:e7,contents:e}}function tb(e,t){return tC(t),{type:e9,contents:t,n:e}}function tB(e,t={}){return tC(e),tC(t.expandedStates,!0),{type:e5,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function tv(e,t){return tB(e[0],{...t,expandedStates:e})}function tk(e){return tC(e),{type:te,parts:e}}function tP(e,t="",n={}){return tC(e),""!==t&&tC(t),{type:tt,breakContents:e,flatContents:t,groupId:n.groupId}}function tw(e,t){return tC(e),{type:tn,contents:e,groupId:t.groupId,negate:t.negate}}function tN(e){return tC(e),{type:tr,contents:e}}var tI={type:tu},tj={type:ti},tL={type:ta,hard:!0},tM={type:ta},tO={type:ta,soft:!0},tJ=[tL,tj],tq=[{type:ta,hard:!0,literal:!0},tj],tX={type:e6};function t_(e,t){tC(e),tC(t);let n=[];for(let r=0;r<t.length;r++)0!==r&&n.push(e),n.push(t[r]);return n}function tR(e,t){return tC(t),e?{type:to,label:e,contents:t}:t}var t$=function(e){let t=`*${e.value}*`.split(` 12`);return t.length>1&&t.every(e=>"*"===e.trimStart()[0])};function tW(e,t){let n=e.node;if(G(n))return t.originalText.slice(N(n),I(n)).trimEnd();if(X(n)){let e;return t$(n)?["/*",t_(tJ,(e=n.value.split(` 13`)).map((t,n)=>0===n?t.trimEnd():" "+(n<e.length-1?t.trim():t.trimStart()))),"*/"]:["/*",tx(n.value),"*/"]}throw Error("Not a comment: "+JSON.stringify(n))}var tU={};function tG(e,t){let n,r;(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=(n=e.type||e.kind||"(unknown type)",(r=String(e.name||e.
13id&&("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)+"…"),n+(r?" "+r:""))}function tV(e,t){t.leading=!0,t.trailing=!1,tG(e,t)}function tK(e,t,n){t.leading=!1,t.trailing=!1,n&&(t.marker=n),tG(e,t)}function tH(e,t){t.leading=!1,t.trailing=!0,tG(e,t)}a(tU,{endOfLine:()=>t1,ownLine:()=>t0,remaining:()=>t2});var tz=function(e,t){let n=null,r=t;for(;r!==n;)n=r,r=A(e,r),r=C(e,r),r=S(e,r),r=h(e,r);return r},tQ=function(e,t){let n=tz(e,t);return!1===n?"":e.charAt(n)},tY=function(e,t,n){for(let r=t;r<n;++r)if(e.charAt(r)===` 14`)return!0;return!1},tZ=function(e){return X(e)&&"*"===e.value[0]&&/@(?:type|satisfies)\b/u.test(e.value)};function t0(e){return[nb,nt,nD,nc,t5,t7,t9,t4,nu,nA,nE,nF,ng,nx,no,ny,nd,ne,nP].some(t=>t(e))}function t1(e){return[t6,nD,nt,ng,t7,t9,t4,nu,ny,nm,nf,nF,nC,nd,nv,nk,nw].some(t=>t(e))}function t2(e){return[nb,t7,t9,nn,nl,no,nF,np,ns,nB,nd,nS].some(t=>t(e))}function t8(e,t){let n=(e.body||e.properties).find(({type:e})=>"EmptyStatement"!==e);n?tV(n,t):tK(e,t)}function t3(e,t){"BlockStatement"===e.type?t8(e,t):tV(e,t)}function t6({comment:e,followingNode:t}){return!!(t&&tZ(e))&&(tV(t,e),!0)}function t7({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:u}){if((null==n?void 0:n.type)!=="IfStatement"||!r)return!1;if(")"===tQ(u,I(e)))return tH(t,e),!0;if(t===n.consequent&&r===n.alternate){let r=tz(u,I(n.consequent));if(N(e)<r||"BlockStatement"===n.alternate.type){if("BlockStatement"===t.type)tH(t,e);else{let r=G(e)||e.loc.start.line===e.loc.end.line,u=e.loc.start.line===t.loc.start.line;r&&u?tH(t,e):tK(n,e)}return!0}}return"BlockStatement"===r.type?(t8(r,e),!0):"IfStatement"===r.type?(t3(r.consequent,e),!0):n.consequent===r&&(tV(r,e),!0)}function t9({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:u}){return(null==n?void 0:n.type)==="WhileStatement"&&!!r&&(")"===tQ(u,I(e))?(tH(t,e),!0):"BlockStatement"===r.type?(t8(r,e),!0):n.body===r&&(tV(r,e),!0))}function t4({comment:e,precedingNode:t,enclosingNode:n,followingNode:r}){return((null==n?void 0:n.type)==="TryStatement"||(null==n?void 0:n.type)==="CatchClause")&&!!r&&("CatchClause"===n.type&&t?(tH(t,e),!0):"BlockStatement"===r.type?(t8(r,e),!0):"TryStatement"===r.type?(t3(r.finalizer,e),!0):"CatchClause"===r.type&&(t3(r.body,e),!0))}function t5({comment:e,enclosingNode:t,followingNode:n}){return!!eE(t)&&(null==n?void 0:n.type)==="Identifier"&&(tV(t,e),!0)}function ne({comment:e,enclosingNode:t,followingNode:n,options:r}){return!!r.experimentalTernaries&&((null==t?void 0:t.type)==="ConditionalExpression"||(null==t?void 0:t.type)==="ConditionalTypeAnnotation"||(null==t?void 0:t.type)==="TSConditionalType")&&((null==n?void 0:n.type)==="ConditionalExpression"||(null==n?void 0:n.type)==="ConditionalTypeAnnotation"||(null==n?void 0:n.type)==="TSConditionalType")&&(tK(t,e),!0)}function nt({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:u,options:a}){let o=t&&!tY(u,I(t),N(e));return(!t||!o)&&((null==n?void 0:n.type)==="ConditionalExpression"||(null==n?void 0:n.type)==="ConditionalTypeAnnotation"||(null==n?void 0:n.type)==="TSConditionalType")&&!!r&&(a.experimentalTernaries&&n.alternate===r&&!(X(e)&&!tY(a.originalText,N(e),I(e)))?tK(n,e):tV(r,e),!0)}function nn({comment:e,precedingNode:t,enclosingNode:n}){return!!eH(n)&&!!n.shorthand&&n.key===t&&"AssignmentPattern"===n.value.type&&(tH(n.value.left,e),!0)}var nr=new Set(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function nu({comment:e,precedingNode:t,enclosingNode:n,followingNode:r}){if(nr.has(null==n?void 0:n.type)){if(B(n.decorators)&&(null==r?void 0:r.type)!=="Decorator")return tH(y(!1,n.decorators,-1),e),!0;if(n.body&&r===n.body)return t8(n.body,e),!0;if(r){if(n.superClass&&r===n.superClass&&t&&(t===n.id||t===n.typeParameters))return tH(t,e),!0;for(let u of["implements","extends","mixins"])if(n[u]&&r===n[u][0])return t&&(t===n.id||t===n.typeParameters||t===n.superClass)?tH(t,e):tK(n,e,u),!0}}return!1}var na=new Set(["ClassMethod","ClassProperty","PropertyDefinition","TSAbstractPropertyDefinition","TSAbstractMethodDefinition","TSDeclareMethod","MethodDefinition","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty","TSParameterProperty"]);function no({comment:e,precedingNode:t,enclosingNode:n,text:r}){return n&&t&&"("===tQ(r,I(e))&&("Property"===n.type||"TSDeclareMethod"===n.type||"TSAbstractMethodDefinition"===n.type)&&"Identifier"===t.type&&n.key===t&&":"!==tQ(r,I(t))?(tH(t,e),!0):!!((null==t?void 0:t.type)==="Decorator"&&na.has(null==n?void 0:n.type)&&(G(e)||"ownLine"===e.placement))&&(tH(t,e),!0)}var ni=new Set(["FunctionDeclaration","FunctionExpression","ClassMethod","MethodDefinition","ObjectMethod"]);function ns({comment:e,precedingNode:t,enclosingNode:n,text:r}){return"("===tQ(r,I(e))&&!!(t&&ni.has(null==n?void 0:n.type))&&(tH(t,e),!0)}function np({comment:e,enclosingNode:t,text:n}){if((null==t?void 0:t.type)!=="ArrowFunctionExpression")return!1;let r=tz(n,I(e));return!1!==r&&"=>"===n.slice(r,r+2)&&(tK(t,e),!0)}function nl({comment:e,enclosingNode:t,text:n}){return")"===tQ(n,I(e))&&(t&&(nN(t)&&0===eM(t).length||eK(t)&&0===eJ(t).length)?(tK(t,e),!0):((null==t?void 0:t.type)==="MethodDefinition"||(null==t?void 0:t.type)==="TSAbstractMethodDefinition")&&0===eM(t.value).length&&(tK(t.value,e),!0))}function nc({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:u}){return(null==t?void 0:t.type)==="ComponentTypeParameter"&&((null==n?void 0:n.type)==="DeclareComponent"||(null==n?void 0:n.type)==="ComponentTypeAnnotation")&&(null==r?void 0:r.type)!=="ComponentTypeParameter"?(tH(t,e),!0):((null==t?void 0:t.type)==="ComponentParameter"||(null==t?void 0:t.type)==="RestElement")&&(null==n?void 0:n.type)==="ComponentDeclaration"&&")"===tQ(u,I(e))&&(tH(t,e),!0)}function nD({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:u}){return(null==t?void 0:t.type)==="FunctionTypeParam"&&(null==n?void 0:n.type)==="FunctionTypeAnnotation"&&(null==r?void 0:r.type)!=="FunctionTypeParam"?
14(tH(t,e),!0):((null==t?void 0:t.type)==="Identifier"||(null==t?void 0:t.type)==="AssignmentPattern"||(null==t?void 0:t.type)==="ObjectPattern"||(null==t?void 0:t.type)==="ArrayPattern"||(null==t?void 0:t.type)==="RestElement"||(null==t?void 0:t.type)==="TSParameterProperty")&&nN(n)&&")"===tQ(u,I(e))?(tH(t,e),!0):!X(e)&&((null==n?void 0:n.type)==="FunctionDeclaration"||(null==n?void 0:n.type)==="FunctionExpression"||(null==n?void 0:n.type)==="ObjectMethod")&&(null==r?void 0:r.type)==="BlockStatement"&&n.body===r&&tz(u,I(e))===N(r)&&(t8(r,e),!0)}function ny({comment:e,enclosingNode:t}){return(null==t?void 0:t.type)==="LabeledStatement"&&(tV(t,e),!0)}function nd({comment:e,enclosingNode:t}){return((null==t?void 0:t.type)==="ContinueStatement"||(null==t?void 0:t.type)==="BreakStatement")&&!t.label&&(tH(t,e),!0)}function nm({comment:e,precedingNode:t,enclosingNode:n}){return!!em(n)&&!!t&&n.callee===t&&n.arguments.length>0&&(tV(n.arguments[0],e),!0)}function nE({comment:e,precedingNode:t,enclosingNode:n,followingNode:r}){return eQ(n)?(e_(e)&&(r.prettierIgnore=!0,e.unignore=!0),!!t&&(tH(t,e),!0)):(eQ(r)&&e_(e)&&(r.types[0].prettierIgnore=!0,e.unignore=!0),!1)}function nf({comment:e,enclosingNode:t}){return!!eH(t)&&(tV(t,e),!0)}function nF({comment:e,enclosingNode:t,ast:n,isLastComment:r}){var u;return(null==(u=null==n?void 0:n.body)?void 0:u.length)===0?(r?tK(n,e):tV(n,e),!0):!((null==t?void 0:t.type)!=="Program"||0!==t.body.length||B(t.directives))&&(r?tK(t,e):tV(t,e),!0)}function nA({comment:e,enclosingNode:t}){return((null==t?void 0:t.type)==="ForInStatement"||(null==t?void 0:t.type)==="ForOfStatement")&&(tV(t,e),!0)}function ng({comment:e,precedingNode:t,enclosingNode:n,text:r}){if((null==n?void 0:n.type)==="ImportSpecifier"||(null==n?void 0:n.type)==="ExportSpecifier")return tV(n,e),!0;let u=(null==t?void 0:t.type)==="ImportSpecifier"&&(null==n?void 0:n.type)==="ImportDeclaration",a=(null==t?void 0:t.type)==="ExportSpecifier"&&(null==n?void 0:n.type)==="ExportNamedDeclaration";return!!((u||a)&&T(r,I(e)))&&(tH(t,e),!0)}function nx({comment:e,enclosingNode:t}){return(null==t?void 0:t.type)==="AssignmentPattern"&&(tV(t,e),!0)}var nh=new Set(["VariableDeclarator","AssignmentExpression","TypeAlias","TSTypeAliasDeclaration"]),nT=new Set(["ObjectExpression","RecordExpression","ArrayExpression","TupleExpression","TemplateLiteral","TaggedTemplateExpression","ObjectTypeAnnotation","TSTypeLiteral"]);function nC({comment:e,enclosingNode:t,followingNode:n}){return!!(nh.has(null==t?void 0:t.type)&&n&&(nT.has(n.type)||X(e)))&&(tV(n,e),!0)}function nS({comment:e,enclosingNode:t,followingNode:n,text:r}){return!n&&((null==t?void 0:t.type)==="TSMethodSignature"||(null==t?void 0:t.type)==="TSDeclareFunction"||(null==t?void 0:t.type)==="TSAbstractMethodDefinition")&&";"===tQ(r,I(e))&&(tH(t,e),!0)}function nb({comment:e,enclosingNode:t,followingNode:n}){if(e_(e)&&(null==t?void 0:t.type)==="TSMappedType"&&(null==n?void 0:n.type)==="TSTypeParameter"&&n.constraint)return t.prettierIgnore=!0,e.unignore=!0,!0}function nB({comment:e,precedingNode:t,enclosingNode:n,followingNode:r}){return(null==n?void 0:n.type)==="TSMappedType"&&((null==r?void 0:r.type)==="TSTypeParameter"&&r.name?(tV(r.name,e),!0):(null==t?void 0:t.type)==="TSTypeParameter"&&!!t.constraint&&(tH(t.constraint,e),!0))}function nv({comment:e,enclosingNode:t,followingNode:n}){return!!t&&"SwitchCase"===t.type&&!t.test&&!!n&&n===t.consequent[0]&&("BlockStatement"===n.type&&G(e)?t8(n,e):tK(t,e),!0)}function nk({comment:e,precedingNode:t,enclosingNode:n,followingNode:r}){return!!(eQ(t)&&(("TSArrayType"===n.type||"ArrayTypeAnnotation"===n.type)&&!r||eY(n)))&&(tH(y(!1,t.types,-1),e),!0)}function nP({comment:e,enclosingNode:t,precedingNode:n,followingNode:r}){if(((null==t?void 0:t.type)==="ObjectPattern"||(null==t?void 0:t.type)==="ArrayPattern")&&(null==r?void 0:r.type)==="TSTypeAnnotation")return n?tH(n,e):tK(t,e),!0}function nw({comment:e,precedingNode:t,enclosingNode:n,followingNode:r}){var u;if(!r&&(null==n?void 0:n.type)==="UnaryExpression"&&((null==t?void 0:t.type)==="LogicalExpression"||(null==t?void 0:t.type)==="BinaryExpression")){let r=(null==(u=n.argument.loc)?void 0:u.start.line)!==t.right.loc.start.line,a=G(e)||e.loc.start.line===e.loc.end.line,o=e.loc.start.line===t.right.loc.start.line;if(r&&a&&o)return tH(t.right,e),!0}return!1}var nN=q(["ArrowFunctionExpression","FunctionExpression","FunctionDeclaration","ObjectMethod","ClassMethod","TSDeclareFunction","TSCallSignatureDeclaration","TSConstructSignatureDeclaration","TSMethodSignature","TSConstructorType","TSFunctionType","TSDeclareMethod"]),nI=new Set(["EmptyStatement","TemplateElement","TSEmptyBodyFunctionExpression","ChainExpression"]);function nj(e){return!nI.has(e.type)}function nL(e,t){var n;if(("typescript"===t.parser||"flow"===t.parser||"acorn"===t.parser||"espree"===t.parser||"meriyah"===t.parser||"__babel_estree"===t.parser)&&"MethodDefinition"===e.type&&(null==(n=e.value)?void 0:n.type)==="FunctionExpression"&&0===eM(e.value).length&&!e.value.returnType&&!B(e.value.typeParameters)&&e.value.body)return[...e.decorators||[],e.key,e.value.body]}function nM(e){let{node:t,parent:n}=e;return(ea(t)||n&&("JSXSpreadAttribute"===n.type||"JSXSpreadChild"===n.type||eQ(n)||("ClassDeclaration"===n.type||"ClassExpression"===n.type)&&n.superClass===t))&&(!eR(t)||eQ(n))}function nO(e,{parser:t}){if("flow"===t||"babel-flow"===t)return""===(e=D(!1,e,/[\s(]/gu,""))||"/*"===e||"/*::"===e}var nJ=Symbol("MODE_BREAK"),nq=Symbol("MODE_FLAT"),nX=Symbol("cursor"),n_=Symbol("DOC_FILL_PRINTED_LENGTH");function nR(){return{value:"",length:0,queue:[]}}function n$(e,t,n){let r="dedent"===t.type?e.queue.slice(0,-1):[...e.queue,t],u="",a=0,o=0,i=0;for(let e of r)switch(e.type){case"indent":l(),n.useTabs?s(1):p(n.tabWidth);break;case"stringAlign":l(),u+=e.n,a+=e.n.length;break;case"numberAlign":o+=1,i+=e.n;break;default:throw Error(`Unexpected type '${e.type}'`)}return c(),{...e,value:u,length:a,queue:r};function s(e){u+=" ".repeat(e),a+=n.tabWidth*e}function p(e){u+=" ".repeat(e),a+=e}function l(){n.useTabs?(o>0&&s(o),o=0,i=0):c()}function c(){i>0&&p(i),o=0,i=0}}function nW(e){let t=0,n=0,r=e.length;e:for(;r--;){let u=e[r];if(u===nX){n++;continue}for(let n=u.length-1;n>=0;n--){let a=u[n];if(" "===a||" "===a)t++;else{e[r]=u.slice(0,n+1);break e}}}if(t>0||n>0)for(e.length=r+1;n-- >0;)e.push(nX);return t}function nU(e,t,n,r,u,a){if(n===Number.POSITIVE_INFINITY)return!0;let o=t.length,i=[e],s=[];for(;n>=0;){if(0===i.length){if(0===o)return!0;
14i.push(t[--o]);continue}let{mode:e,doc:p}=i.pop(),l=tp(p);switch(l){case e8:s.push(p),n-=f(p);break;case e3:case te:{let t=l===e3?p:p.parts,n=p[n_]??0;for(let r=t.length-1;r>=n;r--)i.push({mode:e,doc:t[r]});break}case e7:case e9:case tn:case to:i.push({mode:e,doc:p.contents});break;case e4:n+=nW(s);break;case e5:{if(a&&p.break)return!1;let t=p.break?nJ:e,n=p.expandedStates&&t===nJ?y(!1,p.expandedStates,-1):p.contents;i.push({mode:t,doc:n});break}case tt:{let t=(p.groupId?u[p.groupId]||nq:e)===nJ?p.breakContents:p.flatContents;t&&i.push({mode:e,doc:t});break}case ta:if(e===nJ||p.hard)return!0;p.soft||(s.push(" "),n--);break;case tr:r=!0;break;case tu:if(r)return!1}}return!1}function nG(e,t){var n;let r,u,a={},o=t.printWidth,i=function(e){switch(e){case"cr":return"\r";case"crlf":return`\r 15`;default:return` 16`}}(t.endOfLine),s=0,p=[{ind:nR(),mode:nJ,doc:e}],l=[],c=!1,d=[],m=0;for(r=new Set,u=[],ty(e,function(e){if(e.type===ti&&tF(u),e.type===e5){if(u.push(e),r.has(e))return!1;r.add(e)}},function(e){e.type===e5&&u.pop().break&&tF(u)},!0);p.length>0;){let{ind:e,mode:r,doc:u}=p.pop();switch(tp(u)){case e8:{let e=i!==` 17`?D(!1,u,` 18`,i):u;l.push(e),p.length>0&&(s+=f(e));break}case e3:for(let t=u.length-1;t>=0;t--)p.push({ind:e,mode:r,doc:u[t]});break;case e6:if(m>=2)throw Error("There are too many 'cursor' in doc.");l.push(nX),m++;break;case e7:p.push({ind:n$(e,{type:"indent"},t),mode:r,doc:u.contents});break;case e9:p.push({ind:(n=u.n)===Number.NEGATIVE_INFINITY?e.root||nR():n<0?n$(e,{type:"dedent"},t):n?"root"===n.type?{...e,root:e}:n$(e,{type:"string"==typeof n?"stringAlign":"numberAlign",n:n},t):e,mode:r,doc:u.contents});break;case e4:s-=nW(l);break;case e5:switch(r){case nq:if(!c){p.push({ind:e,mode:u.break?nJ:nq,doc:u.contents});break}case nJ:{c=!1;let t={ind:e,mode:nq,doc:u.contents},n=o-s,r=d.length>0;if(!u.break&&nU(t,p,n,r,a))p.push(t);else if(u.expandedStates){let t=y(!1,u.expandedStates,-1);if(u.break)p.push({ind:e,mode:nJ,doc:t});else for(let o=1;o<u.expandedStates.length+1;o++)if(o>=u.expandedStates.length){p.push({ind:e,mode:nJ,doc:t});break}else{let t={ind:e,mode:nq,doc:u.expandedStates[o]};if(nU(t,p,n,r,a)){p.push(t);break}}}else p.push({ind:e,mode:nJ,doc:u.contents})}}u.id&&(a[u.id]=y(!1,p,-1).mode);break;case te:{let t=o-s,n=u[n_]??0,{parts:i}=u,l=i.length-n;if(0===l)break;let c=i[n+0],D=i[n+1],y={ind:e,mode:nq,doc:c},m={ind:e,mode:nJ,doc:c},E=nU(y,[],t,d.length>0,a,!0);if(1===l){E?p.push(y):p.push(m);break}let f={ind:e,mode:nq,doc:D},F={ind:e,mode:nJ,doc:D};if(2===l){E?p.push(f,y):p.push(F,m);break}let A=i[n+2],g={ind:e,mode:r,doc:{...u,[n_]:n+2}};nU({ind:e,mode:nq,doc:[c,D,A]},[],t,d.length>0,a,!0)?p.push(g,f,y):E?p.push(g,F,y):p.push(g,F,m);break}case tt:case tn:{let t=u.groupId?a[u.groupId]:r;if(t===nJ){let t=u.type===tt?u.breakContents:u.negate?u.contents:tS(u.contents);t&&p.push({ind:e,mode:r,doc:t})}if(t===nq){let t=u.type===tt?u.flatContents:u.negate?tS(u.contents):u.contents;t&&p.push({ind:e,mode:r,doc:t})}break}case tr:d.push({ind:e,mode:r,doc:u.contents});break;case tu:d.length>0&&p.push({ind:e,mode:r,doc:tL});break;case ta:switch(r){case nq:if(u.hard)c=!0;else{u.soft||(l.push(" "),s+=1);break}case nJ:if(d.length>0){p.push({ind:e,mode:r,doc:u},...d.reverse()),d.length=0;break}u.literal?e.root?(l.push(i,e.root.value),s=e.root.length):(l.push(i),s=0):(s-=nW(l),l.push(i+e.value),s=e.length)}break;case to:p.push({ind:e,mode:r,doc:u.contents});break;case ti:break;default:throw new tc(u)}0===p.length&&d.length>0&&(p.push(...d.reverse()),d.length=0)}let E=l.indexOf(nX);if(-1!==E){let e=l.indexOf(nX,E+1);if(-1===e)return{formatted:l.filter(e=>e!==nX).join("")};let t=l.slice(0,E).join(""),n=l.slice(E+1,e).join("");return{formatted:t+n+l.slice(e+1).join(""),cursorNodeStart:t.length,cursorNodeText:n}}return{formatted:l.join("")}}var nV=function(e,t,n=0){let r=0;for(let u=n;u<e.length;++u)" "===e[u]?r=r+t-r%t:r++;return r},nK=function(e,t){let n=e.lastIndexOf(` 19`);return -1===n?0:nV(e.slice(n+1).match(/^[\t ]*/u)[0],t)};function nH(e,t,n){let{node:r}=e;if("TemplateLiteral"===r.type&&function({node:e,parent:t}){let n=/^[fx]?(?:describe|it|test)$/u;
19return"TaggedTemplateExpression"===t.type&&t.quasi===e&&"MemberExpression"===t.tag.type&&"Identifier"===t.tag.property.type&&"each"===t.tag.property.name&&("Identifier"===t.tag.object.type&&n.test(t.tag.object.name)||"MemberExpression"===t.tag.object.type&&"Identifier"===t.tag.object.property.type&&("only"===t.tag.object.property.name||"skip"===t.tag.object.property.name)&&"Identifier"===t.tag.object.object.type&&n.test(t.tag.object.object.name))}(e)){let r=function(e,t,n){let{node:r}=e,u=r.quasis[0].value.raw.trim().split(/\s*\|\s*/u);if(u.length>1||u.some(e=>e.length>0)){t.__inJestEach=!0;let a=e.map(n,"expressions");t.__inJestEach=!1;let o=[],i=a.map(e=>"${"+nG(e,{...t,printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"}).formatted+"}"),s=[{hasLineBreak:!1,cells:[]}];for(let e=1;e<r.quasis.length;e++){let t=y(!1,s,-1),n=i[e-1];t.cells.push(n),n.includes(` 20`)&&(t.hasLineBreak=!0),r.quasis[e].value.raw.includes(` 21`)&&s.push({hasLineBreak:!1,cells:[]})}let p=Array.from({length:Math.max(u.length,...s.map(e=>e.cells.length))}).fill(0),l=[{cells:u},...s.filter(e=>e.cells.length>0)];for(let{cells:e}of l.filter(e=>!e.hasLineBreak))for(let[t,n]of e.entries())p[t]=Math.max(p[t],f(n));return o.push(tI,"`",tS([tJ,t_(tJ,l.map(e=>t_(" | ",e.cells.map((t,n)=>e.hasLineBreak?t:t+" ".repeat(p[n]-f(t))))))]),tJ,"`"),o}}(e,n,t);if(r)return r}let u="expressions";"TSTemplateLiteralType"===r.type&&(u="types");let a=[],o=e.map(t,u);a.push(tI,"`");let i=0;return e.each(({index:e,node:s})=>{if(a.push(t()),s.tail)return;let{tabWidth:p}=n,l=s.value.raw,c=l.includes(` 22`)?nK(l,p):i;i=c;let D=o[e],y=r[u][e],d=tY(n.originalText,I(s),N(r.quasis[e+1]));if(!d){let e=nG(D,{...n,printWidth:Number.POSITIVE_INFINITY}).formatted;e.includes(` 23`)?d=!0:D=e}d&&(eU(y)||"Identifier"===y.type||eE(y)||"ConditionalExpression"===y.type||"SequenceExpression"===y.type||ez(y)||es(y))&&(D=[tS([tO,D]),tO]);let m=0===c&&l.endsWith(` 24`)?tb(Number.NEGATIVE_INFINITY,D):function(e,t,n){tC(e);let r=e;if(t>0){for(let e=0;e<Math.floor(t/n);++e)r=tS(r);r=tb(t%n,r),r=tb(Number.NEGATIVE_INFINITY,r)}return r}(D,c,p);a.push(tB(["${",m,tI,"}"]))},"quasis"),a.push("`"),a}function nz(e,t){return e.map(e=>(function(e,t){let{node:n}=e,r=t();return eU(n)&&(r=tB([tS([tO,r]),tO])),["${",r,tI,"}"]})(e,t),"expressions")}function nQ(e,t){return td(e,e=>"string"==typeof e?t?D(!1,e,/(\\*)`/gu,"$1$1\\`"):nY(e):e)}function nY(e){return D(!1,e,/([\\`]|\$\{)/gu,String.raw`\$1`)}var nZ=[(e,t)=>"ObjectExpression"===e.type&&"properties"===t,(e,t)=>"CallExpression"===e.type&&"Identifier"===e.callee.type&&"Component"===e.callee.name&&"arguments"===t,(e,t)=>"Decorator"===e.type&&"expression"===t];function n0(e,t){return eU(e,e$.Block|e$.Leading,({value:e})=>e===` ${t} `)}function n1({node:e,parent:t},n){return n0(e,n)||("AsConstExpression"===t.type||"TSAsExpression"===t.type&&"TSTypeReference"===t.typeAnnotation.type&&"Identifier"===t.typeAnnotation.typeName.type&&"const"===t.typeAnnotation.typeName.name)&&n0(t,n)||"ExpressionStatement"===t.type&&n0(t,n)}async function n2(e,t,n){let{node:r}=n,u=r.quasis.map(e=>e.value.raw),a=0,o=u.reduce((e,t,n)=>0===n?t:e+"@prettier-placeholder-"+a+++"-id"+t,""),i=function(e,t){if(!B(t))return e;let n=0,r=td(tg(e),e=>"string"==typeof e&&e.includes("@prettier-placeholder")?e.split(/@prettier-placeholder-(\d+)-id/u).map((e,r)=>r%2==0?tx(e):(n++,t[e])):e);return t.length===n?r:null}(await e(o,{parser:"scss"}),nz(n,t));if(!i)throw Error("Couldn't insert all the expressions");return["`",tS([tJ,i]),tO,"`"]}function n8(e){return"Identifier"===e.type&&"styled"===e.name}function n3(e){return/^[A-Z]/u.test(e.object.name)&&"extend"===e.property.name}var n6=function(e){let t,n;if(function({node:e,parent:t,grandparent:n}){return n&&e.quasis&&"JSXExpressionContainer"===t.type&&"JSXElement"===n.type&&"style"===n.openingElement.name.name&&n.openingElement.attributes.some(e=>"JSXAttribute"===e.type&&"jsx"===e.name.name)||(null==t?void 0:t.type)==="TaggedTemplateExpression"&&"Identifier"===t.tag.type&&"css"===t.tag.name||(null==t?void 0:t.type)==="TaggedTemplateExpression"&&"MemberExpression"===t.tag.type&&"css"===t.tag.object.name&&("global"===t.tag.property.name||"resolve"===t.tag.property.name)}(e)||function({parent:e}){if(!e||"TaggedTemplateExpression"!==e.type)return!1;let t="ParenthesizedExpression"===e.tag.type?e.tag.expression:e.tag;switch(t.type){case"MemberExpression":return n8(t.object)||n3(t);
24case"CallExpression":return n8(t.callee)||"MemberExpression"===t.callee.type&&("MemberExpression"===t.callee.object.type&&(n8(t.callee.object.object)||n3(t.callee.object))||"CallExpression"===t.callee.object.type&&n8(t.callee.object.callee));case"Identifier":return"css"===t.name;default:return!1}}(e)||function({parent:e,grandparent:t}){return(null==t?void 0:t.type)==="JSXAttribute"&&"JSXExpressionContainer"===e.type&&"JSXIdentifier"===t.name.type&&"css"===t.name.name}(e)||(t=e=>"TemplateLiteral"===e.type,n=(e,t)=>eH(e)&&!e.computed&&"Identifier"===e.key.type&&"styles"===e.key.name&&"value"===t,e.match(t,(e,t)=>K(e)&&"elements"===t,n,...nZ)||e.match(t,n,...nZ)))return n2};async function n7(e,t,n){let{node:r}=n,u=r.quasis.length,a=nz(n,t),o=[];for(let t=0;t<u;t++){let n=r.quasis[t],i=0===t,s=t===u-1,p=n.value.cooked,l=p.split(` 25`),c=l.length,D=a[t],y=c>2&&""===l[0].trim()&&""===l[1].trim(),d=c>2&&""===l[c-1].trim()&&""===l[c-2].trim(),m=l.every(e=>/^\s*(?:#[^\n\r]*)?$/u.test(e));if(!s&&/#[^\n\r]*$/u.test(l[c-1]))return null;let E=null;(E=m?function(e){let t=[],n=!1,r=e.map(e=>e.trim());for(let[e,u]of r.entries())""!==u&&(""===r[e-1]&&n?t.push([tJ,u]):t.push(u),n=!0);return 0===t.length?null:t_(tJ,t)}(l):await e(p,{parser:"graphql"}))?(E=nQ(E,!1),!i&&y&&o.push(""),o.push(E),!s&&d&&o.push("")):i||s||!y||o.push(""),D&&o.push(D)}return["`",tS([tJ,t_(tJ,o)]),tJ,"`"]}var n9=function(e){if(function({node:e,parent:t}){return n1({node:e,parent:t},"GraphQL")||t&&("TaggedTemplateExpression"===t.type&&("MemberExpression"===t.tag.type&&"graphql"===t.tag.object.name&&"experimental"===t.tag.property.name||"Identifier"===t.tag.type&&("gql"===t.tag.name||"graphql"===t.tag.name))||"CallExpression"===t.type&&"Identifier"===t.callee.type&&"graphql"===t.callee.name)}(e))return n7},n4=0;async function n5(e,t,n,r,u){let{node:a}=r,o=n4;n4=n4+1>>>0;let i=e=>`PRETTIER_HTML_PLACEHOLDER_${e}_${o}_IN_JS`,s=a.quasis.map((e,t,n)=>t===n.length-1?e.value.cooked:e.value.cooked+i(t)).join(""),p=nz(r,n),l=RegExp(i(String.raw`(\d+)`),"gu"),c=0,y=td(await t(s,{parser:e,__onHtmlRoot(e){c=e.children.length}}),e=>{if("string"!=typeof e)return e;let t=[],n=e.split(l);for(let e=0;e<n.length;e++){let r=n[e];if(e%2==0){r&&(r=nY(r),u.__embeddedInHtml&&(r=D(!1,r,/<\/(?=script\b)/giu,String.raw`<\/`)),t.push(r));continue}let a=Number(r);t.push(p[a])}return t}),d=/^\s/u.test(s)?" ":"",m=/\s$/u.test(s)?" ":"",E="ignore"===u.htmlWhitespaceSensitivity?tJ:d&&m?tM:null;return E?tB(["`",tS([E,tB(y)]),E,"`"]):tR({hug:!1},tB(["`",d,c>1?tS(tB(y)):tB(y),m,"`"]))}var re=n5.bind(void 0,"html"),rt=n5.bind(void 0,"angular"),rn=function(e){return n1(e,"HTML")||e.match(e=>"TemplateLiteral"===e.type,(e,t)=>"TaggedTemplateExpression"===e.type&&"Identifier"===e.tag.type&&"html"===e.tag.name&&"quasi"===t)?re:e.match(e=>"TemplateLiteral"===e.type,(e,t)=>eH(e)&&!e.computed&&"Identifier"===e.key.type&&"template"===e.key.name&&"value"===t,...nZ)?rt:void 0};async function rr(e,t,n){let r;let{node:u}=n,a=D(!1,u.quasis[0].value.raw,/((?:\\\\)*)\\`/gu,(e,t)=>"\\".repeat(t.length/2)+"`"),o=null===(r=a.match(/^([^\S\n]*)\S/mu))?"":r[1],i=""!==o;i&&(a=D(!1,a,RegExp(`^${o}`,"gmu"),""));let s=nQ(await e(a,{parser:"markdown",__inJsTemplate:!0}),!0);return["`",i?tS([tO,s]):[tq,tb(Number.NEGATIVE_INFINITY,s)],tO,"`"]}var ru=function(e){if(function({node:e,parent:t}){return(null==t?void 0:t.type)==="TaggedTemplateExpression"&&1===e.quasis.length&&"Identifier"===t.tag.type&&("md"===t.tag.name||"markdown"===t.tag.name)}(e))return rr},ra=function(e){let t,{node:n}=e;if(!("TemplateLiteral"!==n.type||function({quasis:e}){return e.some(({value:{cooked:e}})=>null===e)}(n))){for(let r of[n6,n9,rn,ru])if(t=r(e))return 1===n.quasis.length&&""===n.quasis[0].value.raw.trim()?"``":async(...e)=>{let n=await t(...e);return n&&tR({embed:!0,...n.label},n)}}},ro=/\*\/$/,ri=/^\/\*\*?/,rs=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,rp=/(^|\s+)\/\/([^\n\r]*)/g,rl=/^(\r?\n)+/,rc=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,rD=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,ry=/(\r?\n|^) *\* ?/g,rd=[];function rm(e,t){return[...rd,...Array.isArray(t)?t:[t]].map(t=>`@${e} ${t}`.trim())}var rE=function(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(` 26`);return -1===t?e:e.slice(0,t)};function rf(e){let t,n;let{shebang:r,text:u,pragmas:a,comments:o}=function(e){let t,n=rE(e);n&&(e=e.slice(n.length+1));let{pragmas:r,comments:u}=function(e){let t=` 27`;e=D(!1,e.replace(ri,"").replace(ro,""),ry,"$1");let n="";for(;n!==e;)n=e,e=D(!1,e,rc,`${t}$1 $2${t}`);e=e.replace(rl,"").trimEnd();let r=Object.create(null),u=D(!1,e,rD,"").replace(rl,"").trimEnd(),a;for(;a=rD.exec(e);){let e=D(!1,a[2],rp,"");if("string"==typeof r[a[1]]||Array.isArray(r[a[1]])){let t=r[a[1]];r[a[1]]=[...rd,...Array.isArray(t)?t:[t],e]}else r[a[1]]=e}return{comments:u,pragmas:r}}((t=e.match(rs))?t[0].trimStart():"");return{shebang:n,text:e,pragmas:r,comments:u}}(e),i=null==(n=null==(t=u.match(rs))?void 0:t[0])?u:u.slice(n.length);return(r?`${r} 28`:"")+function({comments:e="",pragmas:t={}}){let n=` 29`,r=Object.keys(t),u=r.flatMap(e=>rm(e,t[e])).map(e=>` * ${e}${n}`).join("");if(!e){if(0===r.length)return"";if(1===r.length&&!Array.isArray(t[r[0]])){let e=t[r[0]];return`/** ${rm(r[0],e)[0]} */`}}let a=e.split(n).map(e=>` * ${e}`).join(n)+n;return"/**"+n+(e?a:"")+(e&&r.length>0?" *"+n:"")+u+" */"}({pragmas:{format:"",...a},comments:o.trimStart()})+(i.startsWith(` 30`)?` 31`:` 32 33`)+i}var rF=function(e,t){let{originalText:n,[Symbol.for("comments")]:r,locStart:u,locEnd:a,[Symbol.for("printedComments")]:o}=t,{node:i}=e,s=u(i),p=a(i);for(let e of r)u(e)>=s&&a(e)<=p&&o.add(e);return n.slice(s,p)};function rA(e,t){var n,r,u,a,o,i,s,p,l,c;if(e.isRoot)return!1;let{node:D,key:y,parent:d}=e;if(t.__isInHtmlInterpolation&&!t.bracketSpacing&&H(D)&&function e(t){let{parent:n,key:r}=t;switch(n.type){case"NGPipeExpression":if("arguments"===r&&t.isLast)return t.callParent(e);break;case"ObjectProperty":if("value"===r)return t.callParent(()=>"properties"===t.key&&t.isLast);break;case"BinaryExpression":case"LogicalExpression":if("right"===r)return t.callParent(e);break;case"ConditionalExpression":if("alternate"===r)return t.callParent(e);break;case"UnaryExpression":if(n.prefix)return t.callParent(e)}return!1}(e))return!0;
33if(rg(D))return!1;if("Identifier"===D.type){if(null!=(n=D.extra)&&n.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(D.name)||"left"===y&&("async"===D.name&&!d.await||"let"===D.name)&&"ForOfStatement"===d.type)return!0;if("let"===D.name){let t=null==(r=e.findAncestor(e=>"ForOfStatement"===e.type))?void 0:r.left;if(t&&ev(t,e=>e===D))return!0}if("object"===y&&"let"===D.name&&"MemberExpression"===d.type&&d.computed&&!d.optional){let t=e.findAncestor(e=>"ExpressionStatement"===e.type||"ForStatement"===e.type||"ForInStatement"===e.type),n=t?"ExpressionStatement"===t.type?t.expression:"ForStatement"===t.type?t.init:t.left:void 0;if(n&&ev(n,e=>e===D))return!0}if("expression"===y)switch(D.name){case"await":case"interface":case"module":case"using":case"yield":case"let":case"component":case"hook":case"type":{let t=e.findAncestor(e=>!ez(e));if(t!==d&&"ExpressionStatement"===t.type)return!0}}return!1}if("ObjectExpression"===D.type||"FunctionExpression"===D.type||"ClassExpression"===D.type||"DoExpression"===D.type){let t=null==(u=e.findAncestor(e=>"ExpressionStatement"===e.type))?void 0:u.expression;if(t&&ev(t,e=>e===D))return!0}if("ObjectExpression"===D.type){let t=null==(a=e.findAncestor(e=>"ArrowFunctionExpression"===e.type))?void 0:a.body;if(t&&"SequenceExpression"!==t.type&&"AssignmentExpression"!==t.type&&ev(t,e=>e===D))return!0}switch(d.type){case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":if("superClass"===y&&("ArrowFunctionExpression"===D.type||"AssignmentExpression"===D.type||"AwaitExpression"===D.type||"BinaryExpression"===D.type||"ConditionalExpression"===D.type||"LogicalExpression"===D.type||"NewExpression"===D.type||"ObjectExpression"===D.type||"SequenceExpression"===D.type||"TaggedTemplateExpression"===D.type||"UnaryExpression"===D.type||"UpdateExpression"===D.type||"YieldExpression"===D.type||"TSNonNullExpression"===D.type||"ClassExpression"===D.type&&B(D.decorators)))return!0;break;case"ExportDefaultDeclaration":return function e(t,n){let{node:r,parent:u}=t;return"FunctionExpression"===r.type||"ClassExpression"===r.type?"ExportDefaultDeclaration"===u.type||!rA(t,n):!(!W(r)||"ExportDefaultDeclaration"!==u.type&&rA(t,n))&&t.call(()=>e(t,n),...U(r))}(e,t)||"SequenceExpression"===D.type;case"Decorator":if("expression"===y&&("ChainExpression"===(c=D).type&&(c=c.expression),!(rx(c)||em(c)&&!c.optional&&rx(c.callee))))return!0;break;case"TypeAnnotation":if(e.match(void 0,void 0,(e,t)=>"returnType"===t&&"ArrowFunctionExpression"===e.type)&&$(D,e=>"ObjectTypeAnnotation"===e.type&&$(e,e=>"FunctionTypeAnnotation"===e.type)))return!0;break;case"BinaryExpression":if("left"===y&&("in"===d.operator||"instanceof"===d.operator)&&"UnaryExpression"===D.type)return!0;break;case"VariableDeclarator":if("init"===y&&e.match(void 0,void 0,(e,t)=>"declarations"===t&&"VariableDeclaration"===e.type,(e,t)=>"left"===t&&"ForInStatement"===e.type))return!0}switch(D.type){case"UpdateExpression":if("UnaryExpression"===d.type)return D.prefix&&("++"===D.operator&&"+"===d.operator||"--"===D.operator&&"-"===d.operator);case"UnaryExpression":switch(d.type){case"UnaryExpression":return D.operator===d.operator&&("+"===D.operator||"-"===D.operator);case"BindExpression":case"TaggedTemplateExpression":case"TSNonNullExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return"object"===y;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===y;case"BinaryExpression":return"left"===y&&"**"===d.operator;default:return!1}case"BinaryExpression":if("UpdateExpression"===d.type||"in"===D.operator&&function(e){let t=0,{node:n}=e;for(;n;){let r=e.getParentNode(t++);if((null==r?void 0:r.type)==="ForStatement"&&r.init===n)return!0;n=r}return!1}(e))return!0;if("|>"===D.operator&&null!=(o=D.extra)&&o.parenthesized){let t=e.grandparent;if("BinaryExpression"===t.type&&"|>"===t.operator)return!0}case"TSTypeAssertion":case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"LogicalExpression":switch(d.type){case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"S
33atisfiesExpression":return!ez(D);case"ConditionalExpression":return ez(D)||"LogicalExpression"===D.type&&"??"===D.operator;case"CallExpression":case"NewExpression":case"OptionalCallExpression":return"callee"===y;case"ClassExpression":case"ClassDeclaration":return"superClass"===y;case"TSTypeAssertion":case"TaggedTemplateExpression":case"UnaryExpression":case"JSXSpreadAttribute":case"SpreadElement":case"BindExpression":case"AwaitExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return"object"===y;case"AssignmentExpression":case"AssignmentPattern":return"left"===y&&("TSTypeAssertion"===D.type||ez(D));case"LogicalExpression":if("LogicalExpression"===D.type)return d.operator!==D.operator;case"BinaryExpression":{let{operator:e,type:t}=D;if(!e&&"TSTypeAssertion"!==t)return!0;let n=ej(e),r=d.operator,u=ej(r);return u>n||"right"===y&&u===n||u===n&&!eN(r,e)||(u<n&&"%"===e?"+"===r||"-"===r:!!(ew[r]||"|"===r||"^"===r||"&"===r))}default:return!1}case"SequenceExpression":switch(d.type){case"ReturnStatement":case"ForStatement":return!1;case"ExpressionStatement":return"expression"!==y;case"ArrowFunctionExpression":return"body"!==y;default:return!0}case"YieldExpression":if("AwaitExpression"===d.type||"TSTypeAssertion"===d.type)return!0;case"AwaitExpression":switch(d.type){case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"SpreadElement":case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return"object"===y;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===y;case"ConditionalExpression":return"test"===y;case"BinaryExpression":return!(!D.argument&&"|>"===d.operator);default:return!1}case"TSFunctionType":if(e.match(e=>"TSFunctionType"===e.type,(e,t)=>"typeAnnotation"===t&&"TSTypeAnnotation"===e.type,(e,t)=>"returnType"===t&&"ArrowFunctionExpression"===e.type))return!0;case"TSConditionalType":case"TSConstructorType":if("extendsType"===y&&"TSConditionalType"===d.type){if("TSConditionalType"===D.type)return!0;let{typeAnnotation:e}=D.returnType||D.typeAnnotation;if("TSTypePredicate"===e.type&&e.typeAnnotation&&(e=e.typeAnnotation.typeAnnotation),"TSInferType"===e.type&&e.typeParameter.constraint)return!0}if("checkType"===y&&"TSConditionalType"===d.type)return!0;case"TSUnionType":case"TSIntersectionType":if(("TSUnionType"===d.type||"TSIntersectionType"===d.type)&&d.types.length>1&&(!D.types||D.types.length>1))return!0;case"TSInferType":if("TSInferType"===D.type){if("TSRestType"===d.type)return!1;if("types"===y&&("TSUnionType"===d.type||"TSIntersectionType"===d.type)&&"TSTypeParameter"===D.typeParameter.type&&D.typeParameter.constraint)return!0}case"TSTypeOperator":return"TSArrayType"===d.type||"TSOptionalType"===d.type||"TSRestType"===d.type||"objectType"===y&&"TSIndexedAccessType"===d.type||"TSTypeOperator"===d.type||"TSTypeAnnotation"===d.type&&e.grandparent.type.startsWith("TSJSDoc");case"TSTypeQuery":return"objectType"===y&&"TSIndexedAccessType"===d.type||"elementType"===y&&"TSArrayType"===d.type;case"TypeOperator":return"ArrayTypeAnnotation"===d.type||"NullableTypeAnnotation"===d.type||"objectType"===y&&("IndexedAccessType"===d.type||"OptionalIndexedAccessType"===d.type)||"TypeOperator"===d.type;case"TypeofTypeAnnotation":return"objectType"===y&&("IndexedAccessType"===d.type||"OptionalIndexedAccessType"===d.type)||"elementType"===y&&"ArrayTypeAnnotation"===d.type;case"ArrayTypeAnnotation":return"NullableTypeAnnotation"===d.type;case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return"TypeOperator"===d.type||"ArrayTypeAnnotation"===d.type||"NullableTypeAnnotation"===d.type||"IntersectionTypeAnnotation"===d.type||"UnionTypeAnnotation"===d.type||"objectType"===y&&("IndexedAccessType"===d.type||"OptionalIndexedAccessType"===d.type);case"InferTypeAnnotation":case"NullableTypeAnnotation":return"ArrayTypeAnnotation"===d.type||"objectType"===y&&("IndexedAccessType"===d.type||"OptionalIndexedAccessType"===d.type);case"ComponentTypeAnnotation":case"FunctionTypeAnnotation":{if("ComponentTypeAnnotation"===D.type&&(null===D.rendersType||void 0===D.rendersType))return!1;if(e.match(void 0,(e,t)=>"typeAnnotation"===t&&"TypeAnnotation"===e.type,(e,t)=>"returnType"===t&&"ArrowFunctionExpression"===e.type)||e.match(void 0,(e,t)=>"typeAnnotation"===t&&"TypePredicate"===e.type,(e,t)=>"typeAnnotation"===t&&"TypeAnnotation"===e.type,(e,t)=>"returnType"===t&&"ArrowFunctionExpression"===e.type))return!0;let t="NullableTypeAnnotation"===d.type?e.grandparent:d;return"UnionTypeAnnotation"===t.type||"IntersectionTypeAnnotation"===t.type||"ArrayTypeAnnotation"===t.type||"objectType"===y&&("IndexedAccessType"===t.type||"OptionalIndexedAccessType"===t.type)||"checkType"===y&&"ConditionalTypeAnnotation"===d.type||"extendsType"===y&&"ConditionalTypeAnnotation"===d.type&&(null==(i=D.returnType)?void 0:i.type)==="InferTypeAnnotation"&&(null==(s=D.returnType)?void 0:s.typeParameter.bound)||"NullableTypeAnnotation"===t.type||"FunctionTypeParam"===d.type&&null===d.name&&eM(D).some(e=>{var t;return(null==(t=e.typeAnnotation)?void 0:t.type)==="NullableTypeAnnotation"})}case"ConditionalTypeAnnotation":if("extendsType"===y&&"ConditionalTypeAnnotation"===d.type&&"ConditionalTypeAnnotation"===D.type||"checkType"===y&&"ConditionalTypeAnnotation"===d.type)return!0;case"OptionalIndexedAccessType":return"objectType"===y&&"IndexedAccessType"===d.type;case"StringLiteral":case"NumericLiteral":case"Literal":if("string"==typeof D.value&&"ExpressionStatement"===d.type&&!d.directive){let t=e.grandparent;return"Program"===t.type||"BlockStatement"===t.type}
33return"object"===y&&"MemberExpression"===d.type&&"number"==typeof D.value;case"AssignmentExpression":{let t=e.grandparent;return"body"===y&&"ArrowFunctionExpression"===d.type||("key"!==y||"ClassProperty"!==d.type&&"PropertyDefinition"!==d.type||!d.computed)&&("init"!==y&&"update"!==y||"ForStatement"!==d.type)&&("ExpressionStatement"===d.type?"ObjectPattern"===D.left.type:!("key"===y&&"TSPropertySignature"===d.type||"AssignmentExpression"===d.type||"SequenceExpression"===d.type&&"ForStatement"===t.type&&(t.init===d||t.update===d)||"value"===y&&"Property"===d.type&&"ObjectPattern"===t.type&&t.properties.includes(d)||"NGChainedExpression"===d.type||"node"===y&&"JsExpressionRoot"===d.type))}case"ConditionalExpression":switch(d.type){case"TaggedTemplateExpression":case"UnaryExpression":case"SpreadElement":case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":case"ExportDefaultDeclaration":case"AwaitExpression":case"JSXSpreadAttribute":case"TSTypeAssertion":case"TypeCastExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"TSNonNullExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===y;case"ConditionalExpression":return!t.experimentalTernaries&&"test"===y;case"MemberExpression":case"OptionalMemberExpression":return"object"===y;default:return!1}case"FunctionExpression":switch(d.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===y;case"TaggedTemplateExpression":return!0;default:return!1}case"ArrowFunctionExpression":switch(d.type){case"BinaryExpression":return"|>"!==d.operator||(null==(p=D.extra)?void 0:p.parenthesized);case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===y;case"MemberExpression":case"OptionalMemberExpression":return"object"===y;case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"TSNonNullExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"AwaitExpression":case"TSTypeAssertion":return!0;case"ConditionalExpression":return"test"===y;default:return!1}case"ClassExpression":if("NewExpression"===d.type)return"callee"===y;break;case"OptionalMemberExpression":case"OptionalCallExpression":case"CallExpression":case"MemberExpression":if(e.match(void 0,(e,t)=>"expression"===t&&"ChainExpression"===e.type,(e,t)=>"tag"===t&&"TaggedTemplateExpression"===e.type)||e.match(e=>"OptionalCallExpression"===e.type||"OptionalMemberExpression"===e.type,(e,t)=>"tag"===t&&"TaggedTemplateExpression"===e.type)||e.match(e=>"OptionalCallExpression"===e.type||"OptionalMemberExpression"===e.type,(e,t)=>"expression"===t&&"TSNonNullExpression"===e.type,(e,t)=>"tag"===t&&"TaggedTemplateExpression"===e.type)||e.match(void 0,(e,t)=>"expression"===t&&"ChainExpression"===e.type,(e,t)=>"expression"===t&&"TSNonNullExpression"===e.type,(e,t)=>"tag"===t&&"TaggedTemplateExpression"===e.type)||e.match(void 0,(e,t)=>"expression"===t&&"TSNonNullExpression"===e.type,(e,t)=>"expression"===t&&"ChainExpression"===e.type,(e,t)=>"tag"===t&&"TaggedTemplateExpression"===e.type)||e.match(e=>"OptionalMemberExpression"===e.type||"OptionalCallExpression"===e.type,(e,t)=>"object"===t&&"MemberExpression"===e.type||"callee"===t&&("CallExpression"===e.type||"NewExpression"===e.type))||e.match(e=>"OptionalMemberExpression"===e.type||"OptionalCallExpression"===e.type,(e,t)=>"expression"===t&&"TSNonNullExpression"===e.type,(e,t)=>"object"===t&&"MemberExpression"===e.type||"callee"===t&&"CallExpression"===e.type)||e.match(e=>"CallExpression"===e.type||"MemberExpression"===e.type,(e,t)=>"expression"===t&&"ChainExpression"===e.type)&&(e.match(void 0,void 0,(e,t)=>"callee"===t&&("CallExpression"===e.type&&!e.optional||"NewExpression"===e.type)||"object"===t&&"MemberExpression"===e.type&&!e.optional)||e.match(void 0,void 0,(e,t)=>"expression"===t&&"TSNonNullExpression"===e.type,(e,t)=>"object"===t&&"MemberExpression"===e.type||"callee"===t&&"CallExpression"===e.type))||e.match(e=>
33"CallExpression"===e.type||"MemberExpression"===e.type,(e,t)=>"expression"===t&&"TSNonNullExpression"===e.type,(e,t)=>"expression"===t&&"ChainExpression"===e.type,(e,t)=>"object"===t&&"MemberExpression"===e.type||"callee"===t&&"CallExpression"===e.type))return!0;case"TaggedTemplateExpression":case"TSNonNullExpression":if("callee"===y&&("BindExpression"===d.type||"NewExpression"===d.type)){let e=D;for(;e;)switch(e.type){case"CallExpression":case"OptionalCallExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":case"BindExpression":e=e.object;break;case"TaggedTemplateExpression":e=e.tag;break;case"TSNonNullExpression":e=e.expression;break;default:return!1}}break;case"BindExpression":return"callee"===y&&("BindExpression"===d.type||"NewExpression"===d.type)||"object"===y&&eE(d);case"NGPipeExpression":return!("NGRoot"===d.type||"NGMicrosyntaxExpression"===d.type||"ObjectProperty"===d.type&&!(null!=(l=D.extra)&&l.parenthesized)||K(d)||"arguments"===y&&em(d)||"right"===y&&"NGPipeExpression"===d.type||"property"===y&&"MemberExpression"===d.type||"AssignmentExpression"===d.type);case"JSXFragment":case"JSXElement":return"callee"===y||"left"===y&&"BinaryExpression"===d.type&&"<"===d.operator||!K(d)&&"ArrowFunctionExpression"!==d.type&&"AssignmentExpression"!==d.type&&"AssignmentPattern"!==d.type&&"BinaryExpression"!==d.type&&"NewExpression"!==d.type&&"ConditionalExpression"!==d.type&&"ExpressionStatement"!==d.type&&"JsExpressionRoot"!==d.type&&"JSXAttribute"!==d.type&&"JSXElement"!==d.type&&"JSXExpressionContainer"!==d.type&&"JSXFragment"!==d.type&&"LogicalExpression"!==d.type&&!em(d)&&!eH(d)&&"ReturnStatement"!==d.type&&"ThrowStatement"!==d.type&&"TypeCastExpression"!==d.type&&"VariableDeclarator"!==d.type&&"YieldExpression"!==d.type;case"TSInstantiationExpression":return"object"===y&&eE(d)}return!1}var rg=q(["BlockStatement","BreakStatement","ComponentDeclaration","ClassBody","ClassDeclaration","ClassMethod","ClassProperty","PropertyDefinition","ClassPrivateProperty","ContinueStatement","DebuggerStatement","DeclareComponent","DeclareClass","DeclareExportAllDeclaration","DeclareExportDeclaration","DeclareFunction","DeclareHook","DeclareInterface","DeclareModule","DeclareModuleExports","DeclareNamespace","DeclareVariable","DeclareEnum","DoWhileStatement","EnumDeclaration","ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExpressionStatement","ForInStatement","ForOfStatement","ForStatement","FunctionDeclaration","HookDeclaration","IfStatement","ImportDeclaration","InterfaceDeclaration","LabeledStatement","MethodDefinition","ReturnStatement","SwitchStatement","ThrowStatement","TryStatement","TSDeclareFunction","TSEnumDeclaration","TSImportEqualsDeclaration","TSInterfaceDeclaration","TSModuleDeclaration","TSNamespaceExportDeclaration","TypeAlias","VariableDeclaration","WhileStatement","WithStatement"]);function rx(e){return"Identifier"===e.type||!!eE(e)&&!e.computed&&!e.optional&&"Identifier"===e.property.type&&rx(e.object)}var rh=function(e,t){let n=t-1;n=A(e,n,{backwards:!0}),n=h(e,n,{backwards:!0}),n=A(e,n,{backwards:!0});let r=h(e,n,{backwards:!0});return n!==r},rT=()=>!0;function rC(e,t){return e.node.printed=!0,t.printer.printComment(e,t)}function rS(e,t,n={}){let{node:r}=e;if(!B(null==r?void 0:r.comments))return"";let{indent:u=!1,marker:a,filter:o=rT}=n,i=[];if(e.each(({node:n})=>{n.leading||n.trailing||n.marker!==a||!o(n)||i.push(rC(e,t))},"comments"),0===i.length)return"";let s=t_(tJ,i);return u?tS([tJ,s]):s}function rb(e,t){let n=e.node;if(!n)return{};let r=t[Symbol.for("printedComments")];if(0===(n.comments||[]).filter(e=>!r.has(e)).length)return{leading:"",trailing:""};let u=[],a=[],o;return e.each(()=>{let n=e.node;if(null!=r&&r.has(n))return;let{leading:i,trailing:s}=n;i?u.push(function(e,t){var n;let r=e.node,u=[rC(e,t)],{printer:a,originalText:o,locStart:i,locEnd:s}=t;if(null==(n=a.isBlockComment)?void 0:n.call(a,r)){let e=T(o,s(r))?T(o,i(r),{backwards:!0})?tJ:tM:" ";u.push(e)}else u.push(tJ);let p=h(o,A(o,s(r)));return!1!==p&&T(o,p)&&u.push(tJ),u}(e,t)):s&&(o=function(e,t,n){var r;let u=e.node,a=rC(e,t),{printer:o,originalText:i,locStart:s}=t,p=null==(r=o.isBlockComment)?void 0:r.call(o,u);return null!=n&&n.hasLineSuffix&&!(null!=n&&n.isBlock)||T(i,s(u),{backwards:!0})?{doc:tN([tJ,rh(i,s(u))?tJ:"",a]),isBlock:p,hasLineSuffix:!0}:!p||null!=n&&n.hasLineSuffix?{doc:[tN([" ",a]),tj],isBlock:p,hasLineSuffix:!0}:{doc:[" ",a],isBlock:p,hasLineSuffix:!1}}(e,t,o),a.push(o.doc))},"comments"),{leading:u,trailing:a}}function rB(e,t,n){let{leading:r,trailing:u}=rb(e,n);return r||u?tT(t,e=>[r,e,u]):t}
33var rv,rk=class extends Error{name="UnexpectedNodeError";constructor(e,t,n="type"){super(`Unexpected ${t} node ${n}: ${JSON.stringify(e[n])}.`),this.node=e}},rP=class{constructor(e){s(this,rv),p(this,rv,new Set(e))}getLeadingWhitespaceCount(e){let t=i(this,rv),n=0;for(let r=0;r<e.length&&t.has(e.charAt(r));r++)n++;return n}getTrailingWhitespaceCount(e){let t=i(this,rv),n=0;for(let r=e.length-1;r>=0&&t.has(e.charAt(r));r--)n++;return n}getLeadingWhitespace(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(0,t)}getTrailingWhitespace(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(e.length-t)}hasLeadingWhitespace(e){return i(this,rv).has(e.charAt(0))}hasTrailingWhitespace(e){return i(this,rv).has(y(!1,e,-1))}trimStart(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(t)}trimEnd(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-t)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,t=!1){let n=`[${function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}([...i(this,rv)].join(""))}]+`,r=RegExp(t?`(${n})`:n,"u");return e.split(r)}hasWhitespaceCharacter(e){let t=i(this,rv);return Array.prototype.some.call(e,e=>t.has(e))}hasNonWhitespaceCharacter(e){let t=i(this,rv);return Array.prototype.some.call(e,e=>!t.has(e))}isWhitespaceOnly(e){let t=i(this,rv);return Array.prototype.every.call(e,e=>t.has(e))}};rv=new WeakMap;var rw=new rP(` 34\r `),rN=e=>""===e||e===tM||e===tJ||e===tO;function rI(e,t,n,r){return e?"":("JSXElement"!==n.type||n.closingElement)&&((null==r?void 0:r.type)!=="JSXElement"||r.closingElement)?tO:1===t.length?tO:tJ}function rj(e,t,n,r){return e?tJ:1===t.length&&("JSXElement"!==n.type||n.closingElement)&&((null==r?void 0:r.type)!=="JSXElement"||r.closingElement)?tO:tJ}var rL=new Set(["ArrayExpression","TupleExpression","JSXAttribute","JSXElement","JSXExpressionContainer","JSXFragment","ExpressionStatement","CallExpression","OptionalCallExpression","ConditionalExpression","JsExpressionRoot"]);function rM(e,t,n){let{node:r}=e;if(r.type.startsWith("JSX"))switch(r.type){case"JSXAttribute":return function(e,t,n){let{node:r}=e,u=[];if(u.push(n("name")),r.value){let a;if(Y(r.value)){let n=D(!1,D(!1,eb(r.value).slice(1,-1),"'","'"),""",'"'),u=k(n,t.jsxSingleQuote);n='"'===u?D(!1,n,'"',"""):D(!1,n,"'","'"),a=e.call(()=>rB(e,tx(u+n+u),t),"value")}else a=n("value");u.push("=",a)}return u}(e,t,n);case"JSXIdentifier":return r.name;case"JSXNamespacedName":return t_(":",[n("namespace"),n("name")]);case"JSXMemberExpression":return t_(".",[n("object"),n("property")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return function(e,t,n){let{node:r}=e;return["{",e.call(({node:r})=>{let u=["...",n()];return eU(r)&&nM(e)?[tS([tO,rB(e,u,t)]),tO]:u},"JSXSpreadAttribute"===r.type?"argument":"expression"),"}"]}(e,t,n);case"JSXExpressionContainer":return function(e,t,n){let{node:r}=e,u=(e,t)=>"JSXEmptyExpression"===e.type||!eU(e)&&(K(e)||H(e)||"ArrowFunctionExpression"===e.type||"AwaitExpression"===e.type&&(u(e.argument,e)||"JSXElement"===e.argument.type)||em(e)||"ChainExpression"===e.type&&em(e.expression)||"FunctionExpression"===e.type||"TemplateLiteral"===e.type||"TaggedTemplateExpression"===e.type||"DoExpression"===e.type||ea(t)&&("ConditionalExpression"===e.type||es(e)));return u(r.expression,e.parent)?tB(["{",n("expression"),tI,"}"]):tB(["{",tS([tO,n("expression")]),tO,tI,"}"])}(e,0,n);case"JSXFragment":case"JSXElement":let u;return u=rB(e,function(e,t,n){var r,u,a,o,i;let{node:s}=e;if("JSXElement"===s.type&&function(e){if(0===e.children.length)return!0;if(e.children.length>1)return!1;let t=e.children[0];return"JSXText"===t.type&&!rO(t)}(s))return[n("openingElement"),n("closingElement")];let p=n("JSXElement"===s.type?"openingElement":"openingFragment"),l=n("JSXElement"===s.type?"closingElement":"closingFragment");if(1===s.children.length&&"JSXExpressionContainer"===s.children[0].type&&("TemplateLiteral"===s.children[0].expression.type||"TaggedTemplateExpression"===s.children[0].expression.type))return[p,...e.map(n,"children"),l];s.children=s.children.map(e=>"JSXExpressionContainer"===e.type&&Y(e.expression)&&" "===e.expression.value&&!eU(e.expression)?{type:"JSXText",value:" ",raw:" "}:e);
34let c=s.children.some(ea),D=s.children.filter(e=>"JSXExpressionContainer"===e.type).length>1,d="JSXElement"===s.type&&s.openingElement.attributes.length>1,m=tf(p)||c||d||D,E="mdx"===e.parent.rootMarker,f=t.singleQuote?"{' '}":'{" "}',F=E?tM:tP([f,tO]," "),A=function(e,t,n,r,u){let a="",o=[a];function i(e){a=e,o.push([o.pop(),e])}function s(e){""!==e&&(a=e,o.push(e,""))}return e.each(({node:e,next:t})=>{if("JSXText"===e.type){let n=eb(e);if(rO(e)){let o,p=rw.split(n,!0);if(""===p[0]&&(p.shift(),/\n/u.test(p[0])?s(rj(u,p[1],e,t)):s(r),p.shift()),""===y(!1,p,-1)&&(p.pop(),o=p.pop()),0===p.length)return;for(let[e,t]of p.entries())e%2==1?s(tM):i(t);void 0!==o?/\n/u.test(o)?s(rj(u,a,e,t)):s(r):s(rI(u,a,e,t))}else/\n/u.test(n)?n.match(/\n/gu).length>1&&s(tJ):s(r)}else if(i(n()),t&&rO(t)){let n=rw.trim(eb(t)),[r]=rw.split(n);s(rI(u,r,e,t))}else s(tJ)},"children"),o}(e,0,n,F,(null==(u=null==(r=s.openingElement)?void 0:r.name)?void 0:u.name)==="fbt"),g=s.children.some(e=>rO(e));for(let e=A.length-2;e>=0;e--){let t=""===A[e]&&""===A[e+1],n=A[e]===tJ&&""===A[e+1]&&A[e+2]===tJ,r=(A[e]===tO||A[e]===tJ)&&""===A[e+1]&&A[e+2]===F,u=A[e]===F&&""===A[e+1]&&(A[e+2]===tO||A[e+2]===tJ),a=A[e]===F&&""===A[e+1]&&A[e+2]===F,o=A[e]===tO&&""===A[e+1]&&A[e+2]===tJ||A[e]===tJ&&""===A[e+1]&&A[e+2]===tO;n&&g||t||r||a||o?A.splice(e,2):u&&A.splice(e+1,2)}for(;A.length>0&&rN(y(!1,A,-1));)A.pop();for(;A.length>1&&rN(A[0])&&rN(A[1]);)A.shift(),A.shift();let x=[""];for(let[e,t]of A.entries()){if(t===F){if(1===e&&function(e){let t=!0;return ty(e,e=>{switch(tp(e)){case e8:if(""===e)break;case e4:case tu:case ta:case ti:return t=!1,!1}}),t}(A[e-1])){if(2===A.length){x.push([x.pop(),f]);continue}x.push([f,tJ],"");continue}if(e===A.length-1||""===A[e-1]&&A[e-2]===tJ){x.push([x.pop(),f]);continue}}e%2==0?x.push([x.pop(),t]):x.push(t,""),tf(t)&&(m=!0)}let h=g?tk(x):tB(x,{shouldBreak:!0});if((null==(a=t.cursorNode)?void 0:a.type)==="JSXText"&&s.children.includes(t.cursorNode)?h=[tX,h,tX]:(null==(o=t.nodeBeforeCursor)?void 0:o.type)==="JSXText"&&s.children.includes(t.nodeBeforeCursor)?h=[tX,h]:(null==(i=t.nodeAfterCursor)?void 0:i.type)==="JSXText"&&s.children.includes(t.nodeAfterCursor)&&(h=[h,tX]),E)return h;let T=tB([p,tS([tJ,h]),tJ,l]);return m?T:tv([tB([p,...A,l]),T])}(e,t,n),t),function(e,t,n){let{parent:r}=e;if(rL.has(r.type))return t;let u=e.match(void 0,e=>"ArrowFunctionExpression"===e.type,em,e=>"JSXExpressionContainer"===e.type),a=rA(e,n);return tB([a?"":tP("("),tS([tO,t]),tO,a?"":tP(")")],{shouldBreak:u})}(e,u,t);case"JSXOpeningElement":return function(e,t,n){var r,u;let a;let{node:o}=e,i=eU(o.name)||eU(o.typeParameters)||eU(o.typeArguments);if(o.selfClosing&&0===o.attributes.length&&!i)return["<",n("name"),o.typeArguments?n("typeArguments"):n("typeParameters")," />"];if((null==(r=o.attributes)?void 0:r.length)===1&&Y(o.attributes[0].value)&&!o.attributes[0].value.value.includes(` 35`)&&!i&&!eU(o.attributes[0]))return tB(["<",n("name"),o.typeArguments?n("typeArguments"):n("typeParameters")," ",...e.map(n,"attributes"),o.selfClosing?" />":">"]);let s=null==(u=o.attributes)?void 0:u.some(e=>Y(e.value)&&e.value.value.includes(` 36`)),p=t.singleAttributePerLine&&o.attributes.length>1?tJ:tM;return tB(["<",n("name"),o.typeArguments?n("typeArguments"):n("typeParameters"),tS(e.map(()=>[p,n()],"attributes")),...o.selfClosing?[tM,"/>"]:(a=o.attributes.length>0&&eU(y(!1,o.attributes,-1),e$.Trailing),0===o.attributes.length&&!i||(t.bracketSameLine||t.jsxBracketSameLine)&&(!i||o.attributes.length>0)&&!a)?[">"]:[tO,">"]],{shouldBreak:s})}(e,t,n);case"JSXClosingElement":return function(e,t,n){let{node:r}=e,u=[];u.push("</");let a=n("name");return eU(r.name,e$.Leading|e$.Line)?u.push(tS([tJ,a]),tJ):eU(r.name,e$.Leading|e$.Block)?u.push(" ",a):u.push(a),u.push(">"),u}(e,0,n);case"JSXOpeningFragment":case"JSXClosingFragment":return function(e,t){let{node:n}=e,r=eU(n),u=eU(n,e$.Line),a="JSXOpeningFragment"===n.type;return[a?"<":"</",tS([u?tJ:r&&!a?" ":"",rS(e,t)]),u?tJ:"",">"]}(e,t);case"JSXEmptyExpression":return function(e,t){let{node:n}=e,r=eU(n,e$.Line);return[rS(e,t,{indent:r}),r?tJ:""]}(e,t);case"JSXText":throw Error("JSXText should be handled by JSXElement");default:throw new rk(r,"JSX")}}function rO(e){return"JSXText"===e.type&&(rw.hasNonWhitespaceCharacter(eb(e))||!/\n/u.test(eb(e)))}var rJ=function(e){return eR(e.node)||function(e){let{node:t,parent:n}=e;if(!ea(t)||!ea(n))return!1;let{index:r,siblings:u}=e,a;for(let e=r;e>0;e--){let t=u[e-1];if(!("JSXText"===t.type&&!rO(t))){a=t;break}}return(null==a?void 0:a.type)==="JSXExpressionContainer"&&"JSXEmptyExpression"===a.expression.type&&eR(a.expression)}(e)},rq=0;
36function rX(e,t,n){var r;let{node:u,parent:a,grandparent:o,key:i}=e,s="body"!==i&&("IfStatement"===a.type||"WhileStatement"===a.type||"SwitchStatement"===a.type||"DoWhileStatement"===a.type),p="|>"===u.operator&&(null==(r=e.root.extra)?void 0:r.__isUsingHackPipeline),l=function e(t,n,r,u,a){var o;let{node:i}=t;if(!es(i))return[tB(n())];let s=[];eN(i.operator,i.left.operator)?s=t.call(t=>e(t,n,r,!0,a),"left"):s.push(tB(n("left")));let p=r_(i),l=("|>"===i.operator||"NGPipeExpression"===i.type||("__vue_expression"===r.parser||"__vue_ts_expression"===r.parser)&&rR(t.node)&&!t.hasAncestor(e=>!rR(e)&&"JsExpressionRoot"!==e.type))&&!eA(r.originalText,i.right),c=!eU(i.right,e$.Leading,tZ)&&eA(r.originalText,i.right),D="NGPipeExpression"===i.type?"|":i.operator,y="NGPipeExpression"===i.type&&i.arguments.length>0?tB(tS([tO,": ",t_([tM,": "],t.map(()=>tb(2,tB(n())),"arguments"))])):"",d;if(p)d=[D," ",n("right"),y];else{let u="|>"===D&&(null==(o=t.root.extra)?void 0:o.__isUsingHackPipeline)?t.call(t=>e(t,n,r,!0,a),"right"):n("right");if("start"===r.experimentalOperatorPosition){let e="";if(c)switch(tp(u)){case e3:e=u.splice(0,1)[0];break;case to:e=u.contents.splice(0,1)[0]}d=[tM,e,D," ",u,y]}else d=[l?tM:"",D,l?" ":tM,u,y]}let{parent:m}=t,E=eU(i.left,e$.Trailing|e$.Line);if((E||!(a&&"LogicalExpression"===i.type)&&m.type!==i.type&&i.left.type!==i.type&&i.right.type!==i.type)&&(d=tB(d,{shouldBreak:E})),"start"===r.experimentalOperatorPosition?s.push(p||c?" ":"",d):s.push(l?"":" ",d),u&&eU(i)){let e=tg(rB(t,s,r));return e.type===te?e.parts:Array.isArray(e)?e:[e]}return s}(e,n,t,!1,s);if(s)return l;if(p)return tB(l);if(em(a)&&a.callee===u||"UnaryExpression"===a.type||eE(a)&&!a.computed)return tB([tS([tO,...l]),tO]);let c="ReturnStatement"===a.type||"ThrowStatement"===a.type||"JSXExpressionContainer"===a.type&&"JSXAttribute"===o.type||"|"!==u.operator&&"JsExpressionRoot"===a.type||"NGPipeExpression"!==u.type&&("NGRoot"===a.type&&"__ng_binding"===t.parser||"NGMicrosyntaxExpression"===a.type&&"NGMicrosyntax"===o.type&&1===o.body.length)||u===a.body&&"ArrowFunctionExpression"===a.type||u!==a.body&&"ForStatement"===a.type||"ConditionalExpression"===a.type&&"ReturnStatement"!==o.type&&"ThrowStatement"!==o.type&&!em(o)||"TemplateLiteral"===a.type,D="AssignmentExpression"===a.type||"VariableDeclarator"===a.type||"ClassProperty"===a.type||"PropertyDefinition"===a.type||"TSAbstractPropertyDefinition"===a.type||"ClassPrivateProperty"===a.type||eH(a),d=es(u.left)&&eN(u.operator,u.left.operator);if(c||r_(u)&&!d||!r_(u)&&D)return tB(l);if(0===l.length)return"";let m=ea(u.right),E=l.findIndex(e=>"string"!=typeof e&&!Array.isArray(e)&&e.type===e5),f=l.slice(0,-1===E?1:E+1),F=l.slice(f.length,m?-1:void 0),A=Symbol("logicalChain-"+ ++rq),g=tB([...f,tS(F)],{id:A});return m?tB([g,tw(y(!1,l,-1),{groupId:A})]):g}function r_(e){return"LogicalExpression"===e.type&&!!(H(e.right)&&e.right.properties.length>0||K(e.right)&&e.right.elements.length>0||ea(e.right))}var rR=e=>"BinaryExpression"===e.type&&"|"===e.operator;function r$(e,t,n){let{node:r}=e;if(r.type.startsWith("NG"))switch(r.type){case"NGRoot":return[n("node"),eU(r.node)?" //"+eG(r.node)[0].value.trimEnd():""];case"NGPipeExpression":return rX(e,t,n);case"NGChainedExpression":return tB(t_([";",tM],e.map(()=>!function({node:e}){return $(e,rU)}(e)?["(",n(),")"]:n(),"expressions")));case"NGEmptyExpression":return"";case"NGMicrosyntax":return e.map(()=>[e.isFirst?"":rW(e)?" ":[";",tM],n()],"body");case"NGMicrosyntaxKey":return/^[$_a-z][\w$]*(?:-[$_a-z][\w$])*$/iu.test(r.name)?r.name:JSON.stringify(r.name);case"NGMicrosyntaxExpression":return[n("expression"),null===r.alias?"":[" as ",n("alias")]];case"NGMicrosyntaxKeyedExpression":{let{index:t,parent:u}=e,a=rW(e)||(1===t&&("then"===r.key.name||"else"===r.key.name||"as"===r.key.name)||(2===t||3===t)&&("else"===r.key.name&&"NGMicrosyntaxKeyedExpression"===u.body[t-1].type&&"then"===u.body[t-1].key.name||"track"===r.key.name))&&"NGMicrosyntaxExpression"===u.body[0].type;return[n("key"),a?" ":": ",n("expression")]}case"NGMicrosyntaxLet":return["let ",n("key"),null===r.value?"":[" = ",n("value")]];
36case"NGMicrosyntaxAs":return[n("key")," as ",n("alias")];default:throw new rk(r,"Angular")}}function rW({node:e,index:t}){return"NGMicrosyntaxKeyedExpression"===e.type&&"of"===e.key.name&&1===t}var rU=q(["CallExpression","OptionalCallExpression","AssignmentExpression"]);function rG(e,t,n){let{node:r}=e;return tB([t_(tM,e.map(n,"decorators")),rV(r,t)?tJ:tM])}function rV(e,t){return e.decorators.some(e=>T(t.originalText,I(e)))}function rK(e){var t;if("ExportDefaultDeclaration"!==e.type&&"ExportNamedDeclaration"!==e.type&&"DeclareExportDeclaration"!==e.type)return!1;let n=null==(t=e.declaration)?void 0:t.decorators;return B(n)&&j(e,n[0])}var rH=class extends Error{name="ArgExpansionBailout"};function rz(e,t=!1){var n;return H(e)&&(e.properties.length>0||eU(e))||K(e)&&(e.elements.length>0||eU(e))||"TSTypeAssertion"===e.type&&rz(e.expression)||ez(e)&&rz(e.expression)||"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type&&(!e.returnType||!e.returnType.typeAnnotation||"TSTypeReference"!==e.returnType.typeAnnotation.type||"BlockStatement"===(n=e.body).type&&(n.body.some(e=>"EmptyStatement"!==e.type)||eU(n,e$.Dangling)))&&("BlockStatement"===e.body.type||"ArrowFunctionExpression"===e.body.type&&rz(e.body,!0)||H(e.body)||K(e.body)||!t&&(em(e.body)||"ConditionalExpression"===e.body.type)||ea(e.body))||"DoExpression"===e.type||"ModuleExpression"===e.type}function rQ(e,t){let n=e[t],r=e[t+1];return"ArrowFunctionExpression"===n.type&&0===eM(n).length&&"BlockStatement"===n.body.type&&"ArrayExpression"===r.type&&!e.some(e=>eU(e))}var rY=function(e,t,n){let{node:r}=e,u=eJ(r);if(0===u.length)return["(",rS(e,t),")"];let a=u.length-1;if(2===u.length?rQ(u,0):3===u.length&&"Identifier"===u[0].type&&rQ(u,1)){let t=["("];return eq(e,(e,r)=>{t.push(n()),r!==a&&t.push(", ")}),t.push(")"),t}let o=!1,i=[];eq(e,({node:e},r)=>{let u=n();r===a||(eV(e,t)?(o=!0,u=[u,",",tJ,tJ]):u=[u,",",tM]),i.push(u)});let s=!t.parser.startsWith("__ng_")&&"ImportExpression"!==r.type&&eB(t,"all")?",":"";function p(){return tB(["(",tS([tM,...i]),s,tM,")"],{shouldBreak:!0})}if(o||"Decorator"!==e.parent.type&&function(e){if(e.length<=1)return!1;let t=0;for(let n of e)if(er(n)){if((t+=1)>1)return!0}else if(em(n)){for(let e of eJ(n))if(er(e))return!0}return!1}(u))return p();if(function(e){var t;if(2!==e.length)return!1;let[n,r]=e;return!!("ModuleExpression"===n.type&&"ObjectExpression"===(t=r).type&&1===t.properties.length&&eH(t.properties[0])&&"Identifier"===t.properties[0].key.type&&"type"===t.properties[0].key.name&&Y(t.properties[0].value)&&"module"===t.properties[0].value.value)||!eU(n)&&("FunctionExpression"===n.type||"ArrowFunctionExpression"===n.type&&"BlockStatement"===n.body.type)&&"FunctionExpression"!==r.type&&"ArrowFunctionExpression"!==r.type&&"ConditionalExpression"!==r.type&&function e(t){if("ParenthesizedExpression"===t.type)return e(t.expression);if(ez(t)||"TypeCastExpression"===t.type){let{typeAnnotation:e}=t;if("TypeAnnotation"===e.type&&(e=e.typeAnnotation),"TSArrayType"===e.type&&"TSArrayType"===(e=e.elementType).type&&(e=e.elementType),"GenericTypeAnnotation"===e.type||"TSTypeReference"===e.type){let t=e.typeArguments??e.typeParameters;(null==t?void 0:t.params.length)===1&&(e=t.params[0])}return ec(e)&&eS(t.expression,1)}return(!eK(t)||!(eJ(t).length>1))&&(es(t)?eS(t.left,1)&&eS(t.right,1):Z(t)||eS(t))}(r)&&!rz(r)}(u)){let e,t=i.slice(1);if(t.some(tf))return p();try{e=n(eX(r,0),{expandFirstArg:!0})}catch(e){if(e instanceof rH)return p();throw e}return tf(e)?[tj,tv([["(",tB(e,{shouldBreak:!0}),", ",...t,")"],p()])]:tv([["(",e,", ",...t,")"],["(",tB(e,{shouldBreak:!0}),", ",...t,")"],p()])}if(function(e,t,n){var r,u;let a=y(!1,e,-1);if(1===e.length){let e=y(!1,t,-1);if(null!=(r=e.label)&&r.embed&&(null==(u=e.label)?void 0:u.hug)!==!1)return!0}let o=y(!1,e,-2);return!eU(a,e$.Leading)&&!eU(a,e$.Trailing)&&rz(a)&&(!o||o.type!==a.type)&&(2!==e.length||"ArrowFunctionExpression"!==o.type||!K(a))&&!(e.length>1&&uL(a,n))}(u,i,t)){let e,t=i.slice(0,-1);if(t.some(tf))return p();try{e=n(eX(r,-1),{expandLastArg:!0})}catch(e){if(e instanceof rH)return p();throw e}return tf(e)?[tj,tv([["(",...t,tB(e,{shouldBreak:!0}),")"],p()])]:tv([["(",...t,e,")"],["(",...t,tB(e,{shouldBreak:!0}),")"],p()])}let l=["(",tS([tO,...i]),tP(s),tO,")"];return eT(e)?l:tB(l,{shouldBreak:i.some(tf)||o})},rZ=e=>(("ChainExpression"===e.type||"TSNonNullExpression"===e.type)&&(e=e.expression),em(e)&&eJ(e).length>0);
36function r0(e,t,n){let r=n("property"),{node:u}=e,a=uT(e);return u.computed?!u.property||z(u.property)?[a,"[",r,"]"]:tB([a,"[",tS([tO,r]),tO,"]"]):[a,".",r]}var r1=function e(t,n,r){var u;let a,o;if("ChainExpression"===t.node.type)return t.call(()=>e(t,n,r),"expression");let{parent:i}=t,s=!i||"ExpressionStatement"===i.type,p=[];function l(e){let{originalText:t}=n,r=tz(t,I(e));return")"===t.charAt(r)?!1!==r&&b(t,r+1):eV(e,n)}let{node:c}=t;p.unshift({node:c,printed:[uT(t),uk(t,n,r),rY(t,n,r)]}),c.callee&&t.call(function e(){let{node:u}=t;if("ChainExpression"===u.type)return t.call(e,"expression");if(em(u)&&(ep(u.callee)||em(u.callee))){let a=l(u);p.unshift({node:u,hasTrailingEmptyLine:a,printed:[rB(t,[uT(t),uk(t,n,r),rY(t,n,r)],n),a?tJ:""]}),t.call(e,"callee")}else ep(u)?(p.unshift({node:u,needsParens:rA(t,n),printed:rB(t,eE(u)?r0(t,n,r):uP(t,n,r),n)}),t.call(e,"object")):"TSNonNullExpression"===u.type?(p.unshift({node:u,printed:rB(t,"!",n)}),t.call(e,"expression")):p.unshift({node:u,printed:r()})},"callee");let D=[],d=[p[0]],m=1;for(;m<p.length&&("TSNonNullExpression"===p[m].node.type||em(p[m].node)||eE(p[m].node)&&p[m].node.computed&&z(p[m].node.property));++m)d.push(p[m]);if(!em(p[0].node))for(;m+1<p.length&&ep(p[m].node)&&ep(p[m+1].node);++m)d.push(p[m]);D.push(d),d=[];let E=!1;for(;m<p.length;++m){if(E&&ep(p[m].node)){if(p[m].node.computed&&z(p[m].node.property)){d.push(p[m]);continue}D.push(d),d=[],E=!1}(em(p[m].node)||"ImportExpression"===p[m].node.type)&&(E=!0),d.push(p[m]),eU(p[m].node,e$.Trailing)&&(D.push(d),d=[],E=!1)}function f(e){return/^[A-Z]|^[$_]+$/u.test(e)}d.length>0&&D.push(d);let F=D.length>=2&&!eU(D[1][0].node)&&function(e){var t;let r=null==(t=e[1][0])?void 0:t.node.computed;if(1===e[0].length){let t=e[0][0].node;return"ThisExpression"===t.type||"Identifier"===t.type&&(f(t.name)||s&&t.name.length<=n.tabWidth||r)}let u=y(!1,e[0],-1).node;return eE(u)&&"Identifier"===u.property.type&&(f(u.property.name)||r)}(D);function A(e){let t=e.map(e=>e.printed);return e.length>0&&y(!1,e,-1).needsParens?["(",...t,")"]:t}let g=D.map(A),x=F?3:2,h=D.flat(),T=h.slice(1,-1).some(e=>eU(e.node,e$.Leading))||h.slice(0,-1).some(e=>eU(e.node,e$.Trailing))||D[x]&&eU(D[x][0].node,e$.Leading);if(D.length<=x&&!T&&!D.some(e=>y(!1,e,-1).hasTrailingEmptyLine))return eT(t)?g:tB(g);let C=y(!1,D[F?1:0],-1).node,S=!em(C)&&l(C),B=[A(D[0]),F?D.slice(1,2).map(A):"",S?tJ:"",0===(u=D.slice(F?2:1)).length?"":tS([tJ,t_(tJ,u.map(A))])],v=p.map(({node:e})=>e).filter(em);return tR({memberChain:!0},T||v.length>2&&v.some(e=>!e.arguments.every(e=>eS(e)))||g.slice(0,-1).some(tf)||(a=y(!1,y(!1,D,-1),-1).node,o=y(!1,g,-1),em(a)&&tf(o)&&v.slice(0,-1).some(e=>e.arguments.some(er)))?tB(B):[tf(g)||S?tj:"",tv([g,B])])};function r2(e,t,n){var r;let{node:u}=e,a="NewExpression"===u.type,o="ImportExpression"===u.type,i=uT(e),s=eJ(u),p=1===s.length&&ex(s[0],t.originalText);if(p||function(e){let{node:t}=e;if("CallExpression"!==t.type||t.optional||"Identifier"!==t.callee.type)return!1;let n=eJ(t);return"require"===t.callee.name?1===n.length&&Y(n[0])||n.length>1:"define"===t.callee.name&&"ExpressionStatement"===e.parent.type&&(1===n.length||2===n.length&&"ArrayExpression"===n[0].type||3===n.length&&Y(n[0])&&"ArrayExpression"===n[1].type)}(e)||ey(u,e.parent)){let u=[];if(eq(e,()=>{u.push(n())}),!(p&&null!=(r=u[0].label)&&r.embed))return[a?"new ":"",r8(e,n),i,uk(e,t,n),"(",t_(", ",u),")"]}if(!o&&!a&&ep(u.callee)&&!e.call(e=>rA(e,t),"callee",..."ChainExpression"===u.callee.type?["expression"]:[]))return r1(e,t,n);let l=[a?"new ":"",r8(e,n),i,uk(e,t,n),rY(e,t,n)];return o||em(u.callee)?tB(l):l}function r8(e,t){let{node:n}=e;return"ImportExpression"===n.type?`import${n.phase?`.${n.phase}`:""}`:t("callee")}function r3(e,t,n,r,u,a){let o=function(e,t,n,r,u){var a;let{node:o}=e,i=o[u];if(!i)return"only-left";let s=!r6(i);if(e.match(r6,r7,e=>!s||"ExpressionStatement"!==e.type&&"VariableDeclaration"!==e.type))return s?"ArrowFunctionExpression"===i.type&&"ArrowFunctionExpression"===i.body.type?"chain-tail-arrow-chain":"chain-tail":"chain";if(!s&&r6(i.right)||eA(t.originalText,i))return"break-after-operator";
36if("ImportAttribute"===o.type||"CallExpression"===i.type&&"require"===i.callee.name||"json5"===t.parser||"jsonc"===t.parser||"json"===t.parser)return"never-break-after-operator";let p=tm(r,th,!1);if(function(e){if(r7(e)){let t=e.left||e.id;return"ObjectPattern"===t.type&&t.properties.length>2&&t.properties.some(e=>{var t;return eH(e)&&(!e.shorthand||(null==(t=e.value)?void 0:t.type)==="AssignmentPattern")})}return!1}(o)||function(e){if("VariableDeclarator"!==e.type)return!1;let{typeAnnotation:t}=e.id;if(!t||!t.typeAnnotation)return!1;let n=ue(t.typeAnnotation);return B(n)&&n.length>1&&n.some(e=>B(ue(e))||"TSConditionalType"===e.type)}(o)||r4(o)&&p)return"break-lhs";let l=(a=r,!!eH(o)&&"string"==typeof(a=tg(a))&&f(a)<t.tabWidth+3);return e.call(()=>(function(e,t,n,r){let u=e.node;if(es(u)&&!r_(u))return!0;switch(u.type){case"StringLiteralTypeAnnotation":case"SequenceExpression":return!0;case"TSConditionalType":case"ConditionalTypeAnnotation":if(!t.experimentalTernaries&&!function(e){function t(e){switch(e.type){case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"TSFunctionType":return!!e.typeParameters;case"TSTypeReference":return!!(e.typeArguments??e.typeParameters);default:return!1}}return t(e.checkType)||t(e.extendsType)}(u))break;return!0;case"ConditionalExpression":{if(!t.experimentalTernaries){let{test:e}=u;return es(e)&&!r_(e)}let{consequent:e,alternate:n}=u;return"ConditionalExpression"===e.type||"ConditionalExpression"===n.type}case"ClassExpression":return B(u.decorators)}if(r)return!1;let a=u,o=[];for(;;)if("UnaryExpression"===a.type||"AwaitExpression"===a.type||"YieldExpression"===a.type&&null!==a.argument)a=a.argument,o.push("argument");else if("TSNonNullExpression"===a.type)a=a.expression,o.push("expression");else break;return!!(Y(a)||e.call(()=>(function e(t,n,r,u=!1){var a;let{node:o}=t,i=()=>e(t,n,r,!0);if("ChainExpression"===o.type||"TSNonNullExpression"===o.type)return t.call(i,"expression");if(em(o)){if(null!=(a=r2(t,n,r).label)&&a.memberChain)return!1;let e=eJ(o);return!(!(0===e.length||1===e.length&&eF(e[0],n))||function(e,t){var n;let r=null==(n=e.typeParameters??e.typeArguments)?void 0:n.params;if(B(r)){if(r.length>1)return!0;if(1===r.length){let e=r[0];if(eQ(e)||eY(e)||"TSTypeLiteral"===e.type||"ObjectTypeAnnotation"===e.type)return!0}if(tf(t(e.typeParameters?"typeParameters":"typeArguments")))return!0}return!1}(o,r))&&t.call(i,"callee")}return eE(o)?t.call(i,"object"):u&&("Identifier"===o.type||"ThisExpression"===o.type)})(e,t,n),...o))})(e,t,n,l),u)?"break-after-operator":!function(e){let t=function(e){var t;if(r9(e))return null==(t=e.typeParameters)?void 0:t.params}(e);if(B(t)){let n="TSTypeAliasDeclaration"===e.type?"constraint":"bound";if(t.length>1&&t.some(e=>e[n]||e.default))return!0}return!1}(o)?!p&&(l||"TemplateLiteral"===i.type||"TaggedTemplateExpression"===i.type||"BooleanLiteral"===i.type||z(i)||"ClassExpression"===i.type)?"never-break-after-operator":"fluid":"break-lhs"}(e,t,n,r,a),i=a?n(a,{assignmentLayout:o}):"";switch(o){case"break-after-operator":return tB([tB(r),u,tB(tS([tM,i]))]);case"never-break-after-operator":return tB([tB(r),u," ",i]);case"fluid":{let e=Symbol("assignment");return tB([tB(r),u,tB(tS(tM),{id:e}),tI,tw(i,{groupId:e})])}case"break-lhs":return tB([r,u," ",tB(i)]);case"chain":return[tB(r),u,tM,i];case"chain-tail":return[tB(r),u,tS([tM,i])];case"chain-tail-arrow-chain":return[tB(r),u,i];case"only-left":return r}}function r6(e){return"AssignmentExpression"===e.type}function r7(e){return r6(e)||"VariableDeclarator"===e.type}var r9=q(["TSTypeAliasDeclaration","TypeAlias"]);function r4(e){var t;return"VariableDeclarator"===e.type&&(null==(t=e.init)?void 0:t.type)==="ArrowFunctionExpression"}var r5=q(["TSTypeReference","GenericTypeAnnotation"]);function ue(e){var t;if(r5(e))return null==(t=e.typeArguments??e.typeParameters)?void 0:t.params}function ut(e,t,n,r,u){var a;let o=e.node,i=eM(o),s=u?uk(e,n,t):"";if(0===i.length)return[s,"(",rS(e,n,{filter:e=>")"===tQ(n.originalText,I(e))}),")"];let{parent:p}=e,l=ey(p),c=un(o),D=[];if(function(e,t){let{node:n}=e,r=0,u=e=>t(e,r++);n.this&&e.call(u,"this"),Array.isArray(n.parameters)?e.each(u,"parameters"):Array.isArray(n.params)&&e.each(u,"params"),n.rest&&e.call(u,"rest")}(e,(e,r)=>{let u=r===i.length-1;u&&o.rest&&D.push("..."),D.push(t()),u||(D.push(","),l||c?D.push(" "):eV(i[r],n)?D.push(tJ,tJ):D.push(tM))}),r&&!e.match(e=>"ArrowFunctionExpression"===e.type&&"BlockStatement"===e.body.type,(e,t)=>{if("CallExpression"===e.type&&"arguments"===t&&1===e.arguments.length&&"CallExpression"===e.callee.type){let t=e.callee.callee;
36return"Identifier"===t.type||"MemberExpression"===t.type&&!t.computed&&"Identifier"===t.object.type&&"Identifier"===t.property.type}return!1},(e,t)=>"VariableDeclarator"===e.type&&"init"===t||"ExportDefaultDeclaration"===e.type&&"declaration"===t||"TSExportAssignment"===e.type&&"expression"===t||"AssignmentExpression"===e.type&&"right"===t&&"MemberExpression"===e.left.type&&"Identifier"===e.left.object.type&&"module"===e.left.object.name&&"Identifier"===e.left.property.type&&"exports"===e.left.property.name,e=>"VariableDeclaration"!==e.type||"const"===e.kind&&1===e.declarations.length)){if(tf(s)||tf(D))throw new rH;return tB([td(s,tA),"(",td(D,tA),")"])}let d=i.every(e=>!B(e.decorators));return c&&d?[s,"(",...D,")"]:l?[s,"(",...D,")"]:(ei(p)||("TypeAnnotation"===p.type||"TSTypeAnnotation"===p.type)&&"FunctionTypeAnnotation"===p.typeAnnotation.type&&!p.static&&!j(p,p.typeAnnotation)||"TypeAlias"===p.type||"UnionTypeAnnotation"===p.type||"IntersectionTypeAnnotation"===p.type||"FunctionTypeAnnotation"===p.type&&p.returnType===o)&&1===i.length&&null===i[0].name&&o.this!==i[0]&&i[0].typeAnnotation&&null===o.typeParameters&&ec(i[0].typeAnnotation)&&!o.rest?"always"===n.arrowParens||"HookTypeAnnotation"===o.type?["(",...D,")"]:D:[s,"(",tS([tO,...D]),tP(!(o.rest||(null==(a=y(!1,eM(o),-1))?void 0:a.type)==="RestElement")&&eB(n,"all")?",":""),tO,")"]}function un(e){if(!e)return!1;let t=eM(e);if(1!==t.length)return!1;let[n]=t;return!eU(n)&&("ObjectPattern"===n.type||"ArrayPattern"===n.type||"Identifier"===n.type&&n.typeAnnotation&&("TypeAnnotation"===n.typeAnnotation.type||"TSTypeAnnotation"===n.typeAnnotation.type)&&en(n.typeAnnotation.typeAnnotation)||"FunctionTypeParam"===n.type&&en(n.typeAnnotation)&&n!==e.rest||"AssignmentPattern"===n.type&&("ObjectPattern"===n.left.type||"ArrayPattern"===n.left.type)&&("Identifier"===n.right.type||H(n.right)&&0===n.right.properties.length||K(n.right)&&0===n.right.elements.length))}function ur(e,t){var n;let r;let u=(e.returnType?(r=e.returnType).typeAnnotation&&(r=r.typeAnnotation):e.typeAnnotation&&(r=e.typeAnnotation),r);if(!u)return!1;let a=null==(n=e.typeParameters)?void 0:n.params;if(a){if(a.length>1)return!1;if(1===a.length){let e=a[0];if(e.constraint||e.default)return!1}}return 1===eM(e).length&&(en(u)||tf(t))}var uu=q(["VoidTypeAnnotation","TSVoidKeyword","NullLiteralTypeAnnotation","TSNullKeyword"]),ua=q(["ObjectTypeAnnotation","TSTypeLiteral","GenericTypeAnnotation","TSTypeReference"]);function uo(e){return!!(ec(e)||en(e))||!!eQ(e)&&function(e){let{types:t}=e;if(t.some(e=>eU(e)))return!1;let n=t.find(e=>ua(e));return!!n&&t.every(e=>e===n||uu(e))}(e)}function ui(e,t,n){let r=t.semi?";":"",{node:u}=e,a=[ub(e)];return a.push("type ",n("id"),n("typeParameters")),[r3(e,t,n,a," =","TSTypeAliasDeclaration"===u.type?"typeAnnotation":"right"),r]}function us(e,t,n){let r=!1;return tB(e.map(({isFirst:e,previous:u,node:a,index:o})=>{let i=n();if(e)return i;let s=en(a),p=en(u);return p&&s?[" & ",r?tS(i):i]:p||s?(o>1&&(r=!0),[" & ",o>1?tS(i):i]):"start"===t.experimentalOperatorPosition?tS([tM,"& ",i]):tS([" &",tM,i])},"types"))}function up(e,t,n){let{node:r}=e,{parent:u}=e,a="TypeParameterInstantiation"!==u.type&&("TSConditionalType"!==u.type||!t.experimentalTernaries)&&("ConditionalTypeAnnotation"!==u.type||!t.experimentalTernaries)&&"TSTypeParameterInstantiation"!==u.type&&"GenericTypeAnnotation"!==u.type&&"TSTypeReference"!==u.type&&"TSTypeAssertion"!==u.type&&"TupleTypeAnnotation"!==u.type&&"TSTupleType"!==u.type&&!("FunctionTypeParam"===u.type&&!u.name&&e.grandparent.this!==u)&&!(("TypeAlias"===u.type||"VariableDeclarator"===u.type||"TSTypeAliasDeclaration"===u.type)&&eA(t.originalText,r)),o=uo(r),i=e.map(e=>{let r=n();return o||(r=tb(2,r)),rB(e,r,t)},"types");if(o)return t_(" | ",i);let s=[tP([a&&!eA(t.originalText,r)?tM:"","| "]),t_([tM,"| "],i)];return rA(e,t)?tB([tS(s),tO]):("TupleTypeAnnotation"===u.type||"TSTupleType"===u.type)&&u["TupleTypeAnnotation"===u.type&&u.types?"types":"elementTypes"].length>1?tB([tS([tP(["(",tO]),s]),tO,tP(")")]):tB(a?tS(s):s)}function ul(e,t,n){let{node:r}=e,u=[uv(e)];("TSConstructorType"===r.type||"TSConstructSignatureDeclaration"===r.type)&&u.push("new ");let a=ut(e,n,t,!1,!0),o=[];return"FunctionTypeAnnotation"===r.type?o.push(!function(e){var t;let{node:n,parent:r}=e;return"FunctionTypeAnnotation"===n.type&&(ei(r)||!(("ObjectTypeProperty"===r.type||"ObjectTypeInternalSlot"===r.type)&&!r.variance&&!r.optional&&j(r,n)||"ObjectTypeCallProperty"===r.type||(null==(t=e.getParentNode(2))?void 0:t.type)==="DeclareFunction"))}(e)?": ":" => ",n("returnType")):o.push(uf(e,n,r.returnType?"returnType":"typeAnnotation")),ur(r,o)&&(a=tB(a)),u.push(a,o),tB(u)}function uc(e,t,n){return[n("objectType"),uT(e),"[",n("indexType"),"]"]}function uD(e,t,n){return["infer ",n("typeParameter")]}
36function uy(e,t,n){let{node:r}=e;return[r.postfix?"":n,uf(e,t),r.postfix?n:""]}function ud(e,t,n){let{node:r}=e;return["...",..."TupleTypeSpreadElement"===r.type&&r.label?[n("label"),": "]:[],n("typeAnnotation")]}function um(e,t,n){let{node:r}=e;return[r.variance?n("variance"):"",n("label"),r.optional?"?":"",": ",n("elementType")]}var uE=new WeakSet;function uf(e,t,n="typeAnnotation"){let{node:{[n]:r}}=e;if(!r)return"";let u=!1;if("TSTypeAnnotation"===r.type||"TypeAnnotation"===r.type){let t=e.call(uF,n);("=>"===t||":"===t&&eU(r,e$.Leading))&&(u=!0),uE.add(r)}return u?[" ",t(n)]:t(n)}var uF=e=>e.match(e=>"TSTypeAnnotation"===e.type,(e,t)=>("returnType"===t||"typeAnnotation"===t)&&("TSFunctionType"===e.type||"TSConstructorType"===e.type))?"=>":e.match(e=>"TSTypeAnnotation"===e.type,(e,t)=>"typeAnnotation"===t&&("TSJSDocNullableType"===e.type||"TSJSDocNonNullableType"===e.type||"TSTypePredicate"===e.type))||e.match(e=>"TypeAnnotation"===e.type,(e,t)=>"typeAnnotation"===t&&"Identifier"===e.type,(e,t)=>"id"===t&&"DeclareFunction"===e.type)||e.match(e=>"TypeAnnotation"===e.type,(e,t)=>"typeAnnotation"===t&&"Identifier"===e.type,(e,t)=>"id"===t&&"DeclareHook"===e.type)||e.match(e=>"TypeAnnotation"===e.type,(e,t)=>"bound"===t&&"TypeParameter"===e.type&&e.usesExtendsBound)?"":":";function uA(e,t,n){let r=uF(e);return r?[r," ",n("typeAnnotation")]:n("typeAnnotation")}function ug(e){return[e("elementType"),"[]"]}function ux({node:e},t){let n="TSTypeQuery"===e.type?"exprName":"argument",r="TypeofTypeAnnotation"===e.type||e.typeArguments?"typeArguments":"typeParameters";return["typeof ",t(n),t(r)]}function uh(e,t){let{node:n}=e;return["TSTypePredicate"===n.type&&n.asserts?"asserts ":"TypePredicate"===n.type&&n.kind?`${n.kind} `:"",t("parameterName"),n.typeAnnotation?[" is ",uf(e,t)]:""]}function uT(e){let{node:t}=e;return t.optional&&("Identifier"!==t.type||t!==e.parent.key)?em(t)||eE(t)&&t.computed||"OptionalIndexedAccessType"===t.type?"?.":"?":""}function uC(e){return e.node.definite||e.match(void 0,(e,t)=>"id"===t&&"VariableDeclarator"===e.type&&e.definite)?"!":""}var uS=new Set(["DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","DeclareVariable","DeclareExportDeclaration","DeclareExportAllDeclaration","DeclareOpaqueType","DeclareTypeAlias","DeclareEnum","DeclareInterface"]);function ub(e){let{node:t}=e;return t.declare||uS.has(t.type)&&"DeclareExportDeclaration"!==e.parent.type?"declare ":""}var uB=new Set(["TSAbstractMethodDefinition","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]);function uv({node:e}){return e.abstract||uB.has(e.type)?"abstract ":""}function uk(e,t,n){let r=e.node;return r.typeArguments?n("typeArguments"):r.typeParameters?n("typeParameters"):""}function uP(e,t,n){return["::",n("callee")]}function uw(e,t,n){return"EmptyStatement"===e.type?";":"BlockStatement"===e.type||n?[" ",t]:tS([tM,t])}function uN(e,t){return["...",t("argument"),uf(e,t)]}function uI(e){return e.accessibility?e.accessibility+" ":""}function uj(e,t,n){let{node:r}=e,u=[],a="TupleExpression"===r.type?"#[":"[",o="TupleTypeAnnotation"===r.type&&r.types?"types":"TSTupleType"===r.type||"TupleTypeAnnotation"===r.type?"elementTypes":"elements",i=r[o];if(0===i.length)u.push(function(e,t,n,r){let{node:u}=e,a=u.inexact?"...":"";return eU(u,e$.Dangling)?tB([n,a,rS(e,t,{indent:!0}),tO,"]"]):[n,a,"]"]}(e,t,a,0));else{var s;let p,l,c=y(!1,i,-1),D=(null==c?void 0:c.type)!=="RestElement"&&!r.inexact,d=null===c,m=Symbol("array"),E=!t.__inJestEach&&i.length>1&&i.every((e,t,n)=>{let r=null==e?void 0:e.type;if(!K(e)&&!H(e))return!1;let u=n[t+1];if(u&&r!==u.type)return!1;let a=K(e)?"elements":"properties";return e[a]&&e[a].length>1}),f=uL(r,t),F=D?d?",":eB(t)?f?tP(",","",{groupId:m}):tP(","):"":"";u.push(tB([a,tS([tO,f?(p=[],e.each(({isLast:r,next:u})=>{p.push([n(),r?F:","]),r||p.push(uM(e,t)?[tJ,tJ]:eU(u,e$.Leading|e$.Line)?tJ:tM)},"elements"),tk(p)):[(s=r.inexact,l=[],e.each(({node:r,isLast:u})=>{l.push(r?tB(n()):""),(!u||s)&&l.push([",",tM,r&&uM(e,t)?tO:""])},o),s&&l.push("..."),l),F],rS(e,t)]),tO,"]"],{shouldBreak:E,id:m}))}return u.push(uT(e),uf(e,n)),u}function uL(e,t){return K(e)&&e.elements.length>1&&e.elements.every(e=>e&&(z(e)||Q(e)&&!eU(e.argument))&&!eU(e,e$.Trailing|e$.Line,e=>!T(t.originalText,N(e),{backwards:!0})))}function uM({node:e},{originalText:t}){let n=e=>C(t,S(t,e)),r=e=>","===t[e]?e:r(n(e+1));return b(t,r(I(e)))}var uO
vendor: 9,436 bytes, line 36
36=/^[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC][\$0-9A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]*$/,
36uJ=e=>uO.test(e),uq=function(e){return 1===e.length?e:e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/u,"$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/u,"$1").replace(/^([+-])?\./u,"$10.").replace(/(\.\d+?)0+(?=e|$)/u,"$1").replace(/\.(?=e|$)/u,"")},uX=new WeakMap;function u_(e){return/^(?:\d+|\d+\.\d+)$/u.test(e)}function uR(e,t){return!!("json"!==t.parser&&"jsonc"!==t.parser&&Y(e.key))&&w(eb(e.key),t).slice(1,-1)===e.key.value&&!!(uJ(e.key.value)&&!("babel-ts"===t.parser&&"ClassProperty"===e.type||"typescript"===t.parser&&"PropertyDefinition"===e.type)||u_(e.key.value)&&String(Number(e.key.value))===e.key.value&&"ImportAttribute"!==e.type&&("babel"===t.parser||"acorn"===t.parser||"espree"===t.parser||"meriyah"===t.parser||"__babel_estree"===t.parser))}function u$(e,t,n){let{node:r}=e;if(r.computed)return["[",n("key"),"]"];let{parent:u}=e,{key:a}=r;if("consistent"===t.quoteProps&&!uX.has(u)){let n=e.siblings.some(e=>!e.computed&&Y(e.key)&&!uR(e,t));uX.set(u,n)}if(function(e,t){let{key:n}=e.node;return("Identifier"===n.type||z(n)&&u_(uq(eb(n)))&&String(n.value)===uq(eb(n))&&!("typescript"===t.parser||"babel-ts"===t.parser))&&("json"===t.parser||"jsonc"===t.parser||"consistent"===t.quoteProps&&uX.get(e.parent))}(e,t)){let n=w(JSON.stringify("Identifier"===a.type?a.name:a.value.toString()),t);return e.call(e=>rB(e,n,t),"key")}return uR(r,t)&&("as-needed"===t.quoteProps||"consistent"===t.quoteProps&&!uX.get(u))?e.call(e=>rB(e,/^\d/u.test(a.value)?uq(a.value):a.value,t),"key"):n("key")}function uW(e,t,n){let{node:r}=e;return r.shorthand?n("value"):r3(e,t,n,u$(e,t,n),":","value")}var uU=({node:e,key:t,parent:n})=>"value"===t&&"FunctionExpression"===e.type&&("ObjectMethod"===n.type||"ClassMethod"===n.type||"ClassPrivateMethod"===n.type||"MethodDefinition"===n.type||"TSAbstractMethodDefinition"===n.type||"TSDeclareMethod"===n.type||"Property"===n.type&&eo(n));function uG(e,t,n,r){if(uU(e))return uK(e,n,t);let{node:u}=e,a=!1;if(("FunctionDeclaration"===u.type||"FunctionExpression"===u.type)&&null!=r&&r.expandLastArg){let{parent:t}=e;em(t)&&(eJ(t).length>1||eM(u).every(e=>"Identifier"===e.type&&!e.typeAnnotation))&&(a=!0)}let o=[ub(e),u.async?"async ":"",`function${u.generator?"*":""} `,u.id?t("id"):""],i=ut(e,t,n,a),s=uz(e,t),p=ur(u,s);return o.push(uk(e,n,t),tB([p?tB(i):i,s]),u.body?" ":"",t("body")),n.semi&&(u.declare||!u.body)&&o.push(";"),o}function uV(e,t,n){let{node:r}=e,{kind:u}=r,a=r.value||r,o=[];return u&&"init"!==u&&"method"!==u&&"constructor"!==u?(v.ok("get"===u||"set"===u),o.push(u," ")):a.async&&o.push("async "),a.generator&&o.push("*"),o.push(u$(e,t,n),r.optional||r.key.optional?"?":"",r===a?uK(e,t,n):n("value")),o}function uK(e,t,n){let r;let{node:u}=e,a=ut(e,n,t),o=uz(e,n),i=(r=eM(u)).length>1&&r.some(e=>"TSParameterProperty"===e.type),s=ur(u,o),p=[uk(e,t,n),tB([i?tB(a,{shouldBreak:!0}):s?tB(a):a,o])];return u.body?p.push(" ",n("body")):p.push(t.semi?";":""),p}function uH(e,t){if("always"===t.arrowParens)return!1;if("avoid"===t.arrowParens){let t,{node:n}=e;return 1===(t=eM(n)).length&&!n.typeParameters&&!eU(n,e$.Dangling)&&"Identifier"===t[0].type&&!t[0].typeAnnotation&&!eU(t[0])&&!t[0].optional&&!n.predicate&&!n.returnType}return!1}function uz(e,t){let{node:n}=e,r=[uf(e,t,"returnType")];return n.predicate&&r.push(t("predicate")),r}function uQ(e,t,n){let{node:r}=e,u=t.semi?";":"",a=[];if(r.argument){let e=n("argument");!function(e,t){if(eA(e.originalText,t)||eU(t,e$.Leading,t=>tY(e.originalText,N(t),I(t)))&&!ea(t))return!0;if(W(t)){var n;let r=t,u;for(;u=(n=r).expressions?n.expressions[0]:n.left??n.test??n.callee??n.object??n.tag??n.argument??n.expression;)if(r=u,eA(e.originalText,r))return!0}return!1}(t,r.argument)?(es(r.argument)||"SequenceExpression"===r.argument.type||t.experimentalTernaries&&"ConditionalExpression"===r.argument.type&&("ConditionalExpression"===r.argument.consequent.type||"ConditionalExpression"===r.argument.alternate.type))&&(e=tB([tP("("),tS([tO,e]),tO,tP(")")])):e=["(",tS([tJ,e]),tJ,")"],a.push(" ",e)}let o=eU(r,e$.Dangling),i=u&&o&&eU(r,e$.Last|e$.Line);return i&&a.push(u),o&&a.push(" ",rS(e,t)),i||a.push(u),a}var uY=new WeakMap;function uZ(e){return uY.has(e)||uY.set(e,"ConditionalExpression"===e.type&&!ev(e,e=>"ObjectExpression"===e.type)),uY.get(e)}var u0=e=>"SequenceExpression"===e.type,u1=(e,t,n)=>{if(!(e&&null==t)){if(t.findLast)return t.findLast(n);for(let e=t.length-1;e>=0;e--){let r=t[e];if(n(r,e,t))return r}}};function u2(e,t,n,r){let{node:u}=e,a=[],o=u1(!1,u[r],e=>"EmptyStatement"!==e.type);return e.each(({node:e})=>{"EmptyStatement"!==e.type&&(a.push(n()),e!==o&&(a.push(tJ),eV(e,t)&&a.push(tJ)))},r),a}function u8(e,t,n){let r=function(e,t,n){let{node:r}=e,u=B(r.directives),a=r.body.some(e=>"EmptyStatement"!==e.type),o=eU(r,e$.Dangling);if(!u&&!a&&!o)return"";let i=[];return u&&(i.push(u2(e,t,n,"directives")),(a||o)&&(i.push(tJ),eV(y(!1,r.directives,-1),t)&&i.push(tJ))),a&&i.push(u2(e,t,n,"body")),o&&i.push(rS(e,t)),i}
36(e,t,n),{node:u,parent:a}=e;if("Program"===u.type&&(null==a?void 0:a.type)!=="ModuleExpression")return r?[r,tJ]:"";let o=[];if("StaticBlock"===u.type&&o.push("static "),o.push("{"),r)o.push(tS([tJ,r]),tJ);else{let t=e.grandparent;"ArrowFunctionExpression"!==a.type&&"FunctionExpression"!==a.type&&"FunctionDeclaration"!==a.type&&"ComponentDeclaration"!==a.type&&"HookDeclaration"!==a.type&&"ObjectMethod"!==a.type&&"ClassMethod"!==a.type&&"ClassPrivateMethod"!==a.type&&"ForStatement"!==a.type&&"WhileStatement"!==a.type&&"DoWhileStatement"!==a.type&&"DoExpression"!==a.type&&"ModuleExpression"!==a.type&&("CatchClause"!==a.type||t.finalizer)&&"TSModuleDeclaration"!==a.type&&"StaticBlock"!==u.type&&o.push(tJ)}return o.push("}"),o}var u3=function(e){let t=new WeakMap;return function(n){return t.has(n)||t.set(n,Symbol(e)),t.get(n)}};function u6(e,t){return"+"===e||"-"===e?e+t:t}var u7=u3("typeParameters");function u9(e,t,n,r){let{node:u}=e;if(!u[r])return"";if(!Array.isArray(u[r]))return n(r);let a=ey(e.grandparent),o=e.match(e=>!(1===e[r].length&&en(e[r][0])),void 0,(e,t)=>"typeAnnotation"===t,e=>"Identifier"===e.type,r4);if(0===u[r].length||!o&&(a||1===u[r].length&&("NullableTypeAnnotation"===u[r][0].type||uo(u[r][0]))))return["<",t_(", ",e.map(n,r)),function(e,t){let{node:n}=e;if(!eU(n,e$.Dangling))return"";let r=!eU(n,e$.Line),u=rS(e,t,{indent:!r});return r?u:[u,tJ]}(e,t),">"];let i="TSTypeParameterInstantiation"===u.type?"":!function(e,t,n){let{node:r}=e;return 1===eM(r).length&&r.type.startsWith("TS")&&!r[n][0].constraint&&"ArrowFunctionExpression"===e.parent.type&&!(t.filepath&&/\.ts$/u.test(t.filepath))}(e,t,r)?eB(t)?tP(","):"":",";return tB(["<",tS([tO,t_([",",tM],e.map(n,r))]),i,tO,">"],{id:u7(u)})}function u4(e,t,n){let{node:r,parent:u}=e,a=[r.const?"const ":""],o="TSTypeParameter"===r.type?n("name"):r.name;if("TSMappedType"===u.type)return u.readonly&&a.push(u6(u.readonly,"readonly")," "),a.push("[",o),r.constraint&&a.push(" in ",n("constraint")),u.nameType&&a.push(" as ",e.callParent(()=>n("nameType"))),a.push("]"),a;if(r.variance&&a.push(n("variance")),r.in&&a.push("in "),r.out&&a.push("out "),a.push(o),r.bound&&(r.usesExtendsBound&&a.push(" extends "),a.push(uf(e,n,"bound"))),r.constraint){let e=Symbol("constraint");a.push(" extends",tB(tS(tM),{id:e}),tI,tw(n("constraint"),{groupId:e}))}return r.default&&a.push(" = ",n("default")),tB(a)}var u5=q(["ClassProperty","PropertyDefinition","ClassPrivateProperty","ClassAccessorProperty","AccessorProperty","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]);function ae(e,t,n){let r,{node:u}=e,a=[ub(e),uv(e),"class"],o=eU(u.id,e$.Trailing)||eU(u.typeParameters,e$.Trailing)||eU(u.superClass)||B(u.extends)||B(u.mixins)||B(u.implements),i=[],s=[];if(u.id&&i.push(" ",n("id")),i.push(n("typeParameters")),u.superClass){let r=[function(e,t,n){let r=n("superClass"),{parent:u}=e;return"AssignmentExpression"===u.type?tB(tP(["(",tS([tO,r]),tO,")"],r)):r}(e,0,n),n(u.superTypeArguments?"superTypeArguments":"superTypeParameters")],a=e.call(e=>["extends ",rB(e,r,t)],"superClass");o?s.push(tM,tB(a)):s.push(" ",a)}else s.push(ar(e,t,n,"extends"));if(s.push(ar(e,t,n,"mixins"),ar(e,t,n,"implements")),o){let e;e=an(u)?[...i,tS(s)]:tS([...i,s]),r=at(u),a.push(tB(e,{id:r}))}else a.push(...i,...s);let p=u.body;return o&&B(p.body)?a.push(tP(tJ," ",{groupId:r})):a.push(" "),a.push(n("body")),a}var at=u3("heritageGroup");function an(e){var t;return e.typeParameters&&!eU(e.typeParameters,e$.Trailing|e$.Line)&&!(["extends","mixins","implements"].reduce((e,n)=>e+(Array.isArray(t[n])?t[n].length:0),(t=e).superClass?1:0)>1)}function ar(e,t,n,r){let{node:u}=e;if(!B(u[r]))return"";let a=rS(e,t,{marker:r});return[an(u)?tP(" ",tM,{groupId:u7(u.typeParameters)}):tM,a,a&&tJ,r,tB(tS([tM,t_([",",tM],e.map(n,r))]))]}function au(e,t,n){let{node:r}=e,u=[];return B(r.decorators)&&u.push(rG(e,t,n)),u.push(uI(r)),r.static&&u.push("static "),u.push(uv(e)),r.override&&u.push("override "),u.push(uV(e,t,n)),u}function aa(e,t,n){let{node:r}=e,u=[],a=t.semi?";":"";return B(r.decorators)&&u.push(rG(e,t,n)),u.push(ub(e),uI(r)),r.static&&u.push("static "),u.push(uv(e)),r.override&&u.push("override "),r.readonly&&u.push("readonly "),r.variance&&u.push(n("variance")),("ClassAccessorProperty"===r.type||"AccessorProperty"===r.type||"TSAbstractAccessorProperty"===r.type)&&u.push("accessor "),u.push(u$(e,t,n),uT(e),uC(e),uf(e,n)),[r3(e,t,n,u," =","TSAbstractPropertyDefinition"===r.type||"TSAbstractAccessorProperty"===r.type?void 0:"value"),a]}var ao=q(["TSAsExpression","TSTypeAssertion","TSNonNullExpression","TSInstantiationExpression","TSSatisfiesExpression"]),ai=q(["FunctionExpression","ArrowFunctionExpression"]);function as({node:e,parent:t},n){return("markdown"===n.parentParser||"mdx"===n.parentParser)&&"ExpressionStatement"===e.type&&ea(e.expression)&&"Program"===t.type&&1===t.body.length}function ap({node:e,parent:t},n){return("__vue_event_binding"===n.parser||"__vue_ts_event_binding"===n.parser)&&"ExpressionStatement"===e.type&&"Program"===t.type&&1===t.body.length}function al(e){return e.toLowerCase()}function ac({pattern:e,flags:t}){return t=[...t].sort().join(""),`/${e}/${t}`}function aD(e,t){let n=e.slice(1,-1);if(n.includes('"')||n.includes("'"))return e;let r=t.singleQuote?"'":'"';return r+n+r}var ay=function(e,t,n){let r=e.originalText.slice(t,n);for(let u of e[Symbol.for("comments")]){let e=N(u);if(e>n)break;let a=I(u);if(a<t)continue;let o=a-e;r=r.slice(0,e-t)+" ".repeat(o)+r.slice(a-t)}return r},ad=e=>"ExportDefaultDeclaration"===e.type||"DeclareExportDeclaration"===e.type&&e.default;function am(e,t,n){let{node:r}=e,u=[rK(e.node)?[t_(tJ,e.map(n,"declaration","decorators")),tJ]:"",ub(e),"export",ad(r)?" default":""],{declaration:a,exported:o}=r;
36return eU(r,e$.Dangling)&&(u.push(" ",rS(e,t)),eh(r)&&u.push(tJ)),a?u.push(" ",n("declaration")):(u.push(af(r.exportKind)),"ExportAllDeclaration"===r.type||"DeclareExportAllDeclaration"===r.type?(u.push(" *"),o&&u.push(" as ",n("exported"))):u.push(ag(e,t,n)),u.push(aA(e,t,n),ah(e,t,n))),u.push(t.semi&&(!r.declaration||ad(r)&&!aE(r.declaration))?";":""),u}var aE=q(["ClassDeclaration","ComponentDeclaration","FunctionDeclaration","TSInterfaceDeclaration","DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","HookDeclaration","TSDeclareFunction","EnumDeclaration"]);function af(e,t=!0){return e&&"value"!==e?`${t?" ":""}${e}${t?"":" "}`:""}function aF(e,t){return af(e.importKind,t)}function aA(e,t,n){let{node:r}=e;if(!r.source)return"";let u=[];return ax(r,t)&&u.push(" from"),u.push(" ",n("source")),u}function ag(e,t,n){let{node:r}=e;if(!ax(r,t))return"";let u=[" "];if(B(r.specifiers)){let a=[],o=[];e.each(()=>{let t=e.node.type;if("ExportNamespaceSpecifier"===t||"ExportDefaultSpecifier"===t||"ImportNamespaceSpecifier"===t||"ImportDefaultSpecifier"===t)a.push(n());else if("ExportSpecifier"===t||"ImportSpecifier"===t)o.push(n());else throw new rk(r,"specifier")},"specifiers"),u.push(t_(", ",a)),o.length>0&&(a.length>0&&u.push(", "),o.length>1||a.length>0||r.specifiers.some(e=>eU(e))?u.push(tB(["{",tS([t.bracketSpacing?tM:tO,t_([",",tM],o)]),tP(eB(t)?",":""),t.bracketSpacing?tM:tO,"}"])):u.push(["{",t.bracketSpacing?" ":"",...o,t.bracketSpacing?" ":"","}"]))}else u.push("{}");return u}function ax(e,t){return!!("ImportDeclaration"!==e.type||B(e.specifiers))||"type"===e.importKind||ay(t,N(e),N(e.source)).trimEnd().endsWith("from")}function ah(e,t,n){let{node:r}=e;if(!r.source)return"";let u=function(e,t){var n,r;if(null!=(n=e.extra)&&n.deprecatedAssertSyntax)return"assert";let u=ay(t,I(e.source),null!=(r=e.attributes)&&r[0]?N(e.attributes[0]):I(e)).trimStart();return u.startsWith("assert")?"assert":u.startsWith("with")||B(e.attributes)?"with":void 0}(r,t);if(!u)return"";let a=[` ${u} {`];return B(r.attributes)&&(t.bracketSpacing&&a.push(" "),a.push(t_(", ",e.map(n,"attributes"))),t.bracketSpacing&&a.push(" ")),a.push("}"),a}function aT(e,t,n){var r;let u=t.semi?";":"",{node:a}=e,o="ObjectTypeAnnotation"===a.type,i="TSEnumDeclaration"===a.type||"EnumBooleanBody"===a.type||"EnumNumberBody"===a.type||"EnumBigIntBody"===a.type||"EnumStringBody"===a.type||"EnumSymbolBody"===a.type,s=["TSTypeLiteral"===a.type||i?"members":"TSInterfaceBody"===a.type?"body":"properties"];o&&s.push("indexers","callProperties","internalSlots");let p=s.flatMap(t=>e.map(({node:e})=>({node:e,printed:n(),loc:N(e)}),t));s.length>1&&p.sort((e,t)=>e.loc-t.loc);let{parent:l,key:c}=e,D=o&&"body"===c&&("InterfaceDeclaration"===l.type||"DeclareInterface"===l.type||"DeclareClass"===l.type),d="TSInterfaceBody"===a.type||i||D||"ObjectPattern"===a.type&&"FunctionDeclaration"!==l.type&&"FunctionExpression"!==l.type&&"ArrowFunctionExpression"!==l.type&&"ObjectMethod"!==l.type&&"ClassMethod"!==l.type&&"ClassPrivateMethod"!==l.type&&"AssignmentPattern"!==l.type&&"CatchClause"!==l.type&&a.properties.some(e=>e.value&&("ObjectPattern"===e.value.type||"ArrayPattern"===e.value.type))||"ObjectPattern"!==a.type&&"preserve"===t.objectWrap&&p.length>0&&tY(t.originalText,N(a),p[0].loc),m=D?";":"TSInterfaceBody"===a.type||"TSTypeLiteral"===a.type?tP(u,";"):",",E="RecordExpression"===a.type?"#{":a.exact?"{|":"{",f=a.exact?"|}":"}",F=[],A=p.map(e=>{let n=[...F,tB(e.printed)];return F=[m,tM],("TSPropertySignature"===e.node.type||"TSMethodSignature"===e.node.type||"TSConstructSignatureDeclaration"===e.node.type||"TSCallSignatureDeclaration"===e.node.type)&&eU(e.node,e$.PrettierIgnore)&&F.shift(),eV(e.node,t)&&F.push(tJ),n});if(a.inexact||a.hasUnknownMembers){let n;if(eU(a,e$.Dangling)){let r=eU(a,e$.Line);n=[rS(e,t),r||T(t.originalText,I(y(!1,eG(a),-1)))?tJ:tM,"..."]}else n=["..."];A.push([...F,...n])}let g=null==(r=y(!1,p,-1))?void 0:r.node,x=!(a.inexact||a.hasUnknownMembers||g&&("RestElement"===g.type||("TSPropertySignature"===g.type||"TSCallSignatureDeclaration"===g.type||"TSMethodSignature"===g.type||"TSConstructSignatureDeclaration"===g.type)&&eU(g,e$.PrettierIgnore))),h;if(0===A.length){if(!eU(a,e$.Dangling))return[E,f,uf(e,n)];h=tB([E,rS(e,t,{indent:!0}),tO,f,uT(e),uf(e,n)])}else h=[D&&B(a.properties)?tP(tJ,"",{groupId:at(l)}):"",E,tS([t.bracketSpacing?tM:tO,...A]),tP(x&&(","!==m||eB(t))?m:""),t.bracketSpacing?tM:tO,f,uT(e),uf(e,n)];return e.match(e=>"ObjectPattern"===e.type&&!B(e.decorators),aC)||en(a)&&(e.match(void 0,(e,t)=>"typeAnnotation"===t,(e,t)=>"typeAnnotation"===t,aC)||e.match(void 0,(e,t)=>"FunctionTypeParam"===e.type&&"typeAnnotation"===t,aC))||!d&&e.match(e=>"ObjectPattern"===e.type,e=>"AssignmentExpression"===e.type||"VariableDeclarator"===e.type)?h:tB(h,{shouldBreak:d})}function aC(e,t){return("params"===t||"parameters"===t||"this"===t||"rest"===t)&&un(e)}var aS=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"],["AwaitExpression","argument"]]),ab=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"],["AwaitExpression","argument"]]),aB=e=>[tP("("),tS([tO,e]),tO,tP(")")];function av(e,t,n,r){if(!t.experimentalTernaries)return function(e,t,n){let r,{node:u}=e,a="ConditionalExpression"===u.type,o=a?"consequent":"trueType",i=a?"alternate":"falseType",s=a?["test"]:["checkType","extendsType"],p=u[o],l=u[i],c=[],D=!1,{parent:y}=e,d=y.type===u.type&&s.some(e=>y[e]===u),m=y.type===u.type&&!d,E,f,F=0;do f=E||u,E=e.getParentNode(F),F++;while(E&&E.type===u.type&&s.every(e=>E[e]!==f));let A=E||y;if(a&&(ea(u[s[0]])||ea(p)||ea(l)||function(e){let t=[e];for(let e=0;e<t.length;e++){let n=t[e];for(let e of["test","consequent","alternate"]){let r=n[e];if(ea(r))return!0;"ConditionalExpression"===r.type&&t.push(r)}}return!1}(f))){let e;D=!0,m=!0;let t=e=>[tP("("),tS([tO,e]),tO,tP(")")];c.push(" ? ","NullLiteral"===p.type||"Literal"===p.type&&null===p.value||"Identifier"===p.type&&"undefined"===p.name?n(o):t(n(o))," : ",l.type===u.type||"NullLiteral"===(e=l).type||"Literal"===e.type&&null===e.value||"Identifier"===e.type&&"undefined"===e.name?n(i):t(n(i))
36)}else{let e=e=>t.useTabs?tS(n(e)):tb(2,n(e)),r=[tM,"? ",p.type===u.type?tP("","("):"",e(o),p.type===u.type?tP("",")"):"",tM,": ",e(i)];c.push(y.type!==u.type||y[i]===u||d?r:t.useTabs?tb(-1,tS(r)):tb(Math.max(0,t.tabWidth-2),r))}let g=[o,i,...s].some(e=>eU(u[e],e=>X(e)&&tY(t.originalText,N(e),I(e)))),x=!D&&(eE(y)||"NGPipeExpression"===y.type&&y.left===u)&&!y.computed,h=function(e){let{node:t}=e;if("ConditionalExpression"!==t.type)return!1;let n,r=t;for(let t=0;!n;t++){let u=e.getParentNode(t);if("ChainExpression"===u.type&&u.expression===r||em(u)&&u.callee===r||eE(u)&&u.object===r||"TSNonNullExpression"===u.type&&u.expression===r){r=u;continue}"NewExpression"===u.type&&u.callee===r||ez(u)&&u.expression===r?(n=e.getParentNode(t+1),r=u):n=u}return r!==t&&n[aS.get(n.type)]===r}(e),T=(r=[function(e,t,n){let{node:r}=e,u="ConditionalExpression"===r.type,{parent:a}=e,o=u?n("test"):[n("checkType")," ","extends"," ",n("extendsType")];return a.type===r.type&&a[u?"alternate":"falseType"]===r?tb(2,o):o}(e,0,n),m?c:tS(c),a&&x&&!h?tO:""],y===A?tB(r,{shouldBreak:g}):g?[r,tj]:r);return d||h?tB([tS([tO,T]),tO]):T}(e,t,n);let{node:u}=e,a="ConditionalExpression"===u.type,o="TSConditionalType"===u.type||"ConditionalTypeAnnotation"===u.type,i=a?"consequent":"trueType",s=a?"alternate":"falseType",p=a?["test"]:["checkType","extendsType"],l=u[i],c=u[s],D=p.map(e=>u[e]),{parent:y}=e,d=y.type===u.type,m=d&&p.some(e=>y[e]===u),E=d&&y[s]===u,f=l.type===u.type,F=c.type===u.type,A=F||E,g=t.tabWidth>2||t.useTabs,x,h,T=0;do h=x||u,x=e.getParentNode(T),T++;while(x&&x.type===u.type&&p.every(e=>x[e]!==h));let C=x||y,S=r&&r.assignmentLayout&&"break-after-operator"!==r.assignmentLayout&&("AssignmentExpression"===y.type||"VariableDeclarator"===y.type||"ClassProperty"===y.type||"PropertyDefinition"===y.type||"ClassPrivateProperty"===y.type||"ObjectProperty"===y.type||"Property"===y.type),b=("ReturnStatement"===y.type||"ThrowStatement"===y.type)&&!(f||F),B=a&&"JSXExpressionContainer"===C.type&&"JSXAttribute"!==e.grandparent.type,v=function(e){let{node:t}=e;if("ConditionalExpression"!==t.type)return!1;let n,r=t;for(let t=0;!n;t++){let u=e.getParentNode(t);if("ChainExpression"===u.type&&u.expression===r||em(u)&&u.callee===r||eE(u)&&u.object===r||"TSNonNullExpression"===u.type&&u.expression===r){r=u;continue}"NewExpression"===u.type&&u.callee===r||ez(u)&&u.expression===r?(n=e.getParentNode(t+1),r=u):n=u}return r!==t&&n[ab.get(n.type)]===r}(e),k=(eE(y)||"NGPipeExpression"===y.type&&y.left===u)&&!y.computed,P=o&&rA(e,t),w=g?t.useTabs?" ":" ".repeat(t.tabWidth-1):"",j=[...D.map(e=>eG(e)),eG(l),eG(c)].flat().some(e=>X(e)&&tY(t.originalText,N(e),I(e)))||f||F,L=!A&&!d&&!o&&(B?"NullLiteral"===l.type||"Literal"===l.type&&null===l.value:eF(l,t)&&ef(u.test,3)),M=A||E||o&&!d||d&&a&&ef(u.test,1)||L,O=[];!f&&eU(l,e$.Dangling)&&e.call(e=>{O.push(rS(e,t),tJ)},"consequent");let J=[];eU(u.test,e$.Dangling)&&e.call(e=>{J.push(rS(e,t))},"test"),!F&&eU(c,e$.Dangling)&&e.call(e=>{J.push(rS(e,t))},"alternate"),eU(u,e$.Dangling)&&J.push(rS(e,t));let q=Symbol("test"),_=Symbol("consequent"),R=Symbol("test-and-consequent"),$=a?[aB(n("test")),"ConditionalExpression"===u.test.type?tj:""]:[n("checkType")," ","extends"," ","TSConditionalType"===u.extendsType.type||"ConditionalTypeAnnotation"===u.extendsType.type||"TSMappedType"===u.extendsType.type?n("extendsType"):tB(aB(n("extendsType")))],W=tB([$," ?"],{id:q}),U=n(i),G=tS([f||B&&(ea(l)||d||A)?tJ:tM,O,U]),V=M?tB([W,A?G:tP(G,tB(G,{id:_}),{groupId:q})],{id:R}):[W,G],K=n(s),H=L?tP(K,tb(-1,aB(K)),{groupId:R}):K,z=[V,J.length>0?[tS([tJ,J]),tJ]:F?tJ:L?tP(tM," ",{groupId:R}):tM,":",F?" ":g?M?tP(w,tP(A||L?" ":w," "),{groupId:R}):tP(w," "):" ",F?H:tB([tS(H),B&&!L?tO:""]),k&&!v?tO:"",j?tj:""];return S&&!j?tB(tS([tO,tB(z)])):S||b?tB(tS(z)):v||o&&m?tB([tS([tO,z]),P?tO:""]):y===C?tB(z):z}function ak(e,t,n,r){let{node:u}=e;if(ee(u))return function(e,t){let{node:n}=e;switch(n.type){case"RegExpLiteral":return ac(n);case"BigIntLiteral":return al(n.extra.raw);case"NumericLiteral":return uq(n.extra.raw);case"StringLiteral":return tx(w(n.extra.raw,t));case"NullLiteral":return"null";case"BooleanLiteral":return String(n.value);case"DirectiveLiteral":return aD(n.extra.raw,t);case"Literal":{if(n.regex)return ac(n.regex);if(n.bigint)return al(n.raw);let{value:r}=n;return"number"==typeof r?uq(n.raw):"string"==typeof r?!function(e){if("expression"!==e.key)return;let{parent:t}=e;return"ExpressionStatement"===t.type&&t.directive}(e)?tx(w(n.raw,t)):aD(n.raw,t):String(r)}}}(e,t);let a=t.semi?";":"",o=[];
36switch(u.type){case"JsExpressionRoot":return n("node");case"JsonRoot":return[n("node"),tJ];case"File":return function(e,t,n){if(t.__isVueBindings||t.__isVueForBindingLeft){let r=e.map(n,"program","body",0,"params");if(1===r.length)return r[0];let u=t_([",",tM],r);return t.__isVueForBindingLeft?["(",tS([tO,tB(u)]),tO,")"]:u}if(t.__isEmbeddedTypescriptGenericParameters)return t_([",",tM],e.map(n,"program","body",0,"typeParameters","params"))}(e,t,n)??n("program");case"EmptyStatement":return"";case"ExpressionStatement":return function(e,t,n){let r=[n("expression")];if(ap(e,t)){var u;let t=function e(t){return ao(t)?e(t.expression):t}(e.node.expression);(ai(t)||"MemberExpression"===(u=t).type||"OptionalMemberExpression"===u.type||"Identifier"===u.type&&"undefined"!==u.name)&&r.push(";")}else as(e,t)||t.semi&&r.push(";");return r}(e,t,n);case"ChainExpression":return n("expression");case"ParenthesizedExpression":return!eU(u.expression)&&(H(u.expression)||K(u.expression))?["(",n("expression"),")"]:tB(["(",tS([tO,n("expression")]),tO,")"]);case"AssignmentExpression":return function(e,t,n){let{node:r}=e;return r3(e,t,n,n("left"),[" ",r.operator],"right")}(e,t,n);case"VariableDeclarator":return r3(e,t,n,n("id")," =","init");case"BinaryExpression":case"LogicalExpression":return rX(e,t,n);case"AssignmentPattern":return[n("left")," = ",n("right")];case"OptionalMemberExpression":case"MemberExpression":return function(e,t,n){var r;let u=n("object"),a=r0(e,t,n),{node:o}=e,i=e.findAncestor(e=>!(eE(e)||"TSNonNullExpression"===e.type)),s=e.findAncestor(e=>!("ChainExpression"===e.type||"TSNonNullExpression"===e.type)),p=i&&("NewExpression"===i.type||"BindExpression"===i.type||"AssignmentExpression"===i.type&&"Identifier"!==i.left.type)||o.computed||"Identifier"===o.object.type&&"Identifier"===o.property.type&&!eE(s)||("AssignmentExpression"===s.type||"VariableDeclarator"===s.type)&&(rZ(o.object)||(null==(r=u.label)?void 0:r.memberChain));return tR(u.label,[u,p?a:tB(tS([tO,a]))])}(e,t,n);case"MetaProperty":return[n("meta"),".",n("property")];case"BindExpression":return u.object&&o.push(n("object")),o.push(tB(tS([tO,uP(e,t,n)]))),o;case"Identifier":return[u.name,uT(e),uC(e),uf(e,n)];case"V8IntrinsicIdentifier":return["%",u.name];case"SpreadElement":case"SpreadElementPattern":case"SpreadPropertyPattern":case"RestElement":return uN(e,n);case"FunctionDeclaration":case"FunctionExpression":return uG(e,n,t,r);case"ArrowFunctionExpression":return function(e,t,n,r={}){var u,a,o,i;let s=[],p,l=[],c=!1,D=!r.expandLastArg&&"ArrowFunctionExpression"===e.node.body.type,y;!function u(){let{node:a}=e,o=function(e,t,n,r){let{node:u}=e,a=[];if(u.async&&a.push("async "),uH(e,t))a.push(n(["params",0]));else{let u=r.expandLastArg||r.expandFirstArg,o=uz(e,n);if(u){if(tf(o))throw new rH;o=tB(td(o,tA))}a.push(tB([ut(e,n,t,u,!0),o]))}let o=rS(e,t,{filter(e){let n=tz(t.originalText,I(e));return!1!==n&&"=>"===t.originalText.slice(n,n+2)}});return o&&a.push(" ",o),a}(e,t,n,r);if(0===s.length)s.push(o);else{let{leading:n,trailing:r}=rb(e,t);s.push([n,o]),l.unshift(r)}D&&(c||(c=a.returnType&&eM(a).length>0||a.typeParameters||eM(a).some(e=>"Identifier"!==e.type))),D&&"ArrowFunctionExpression"===a.body.type?e.call(u,"body"):(p=n("body",r),y=a.body)}();let d=!eA(t.originalText,y)&&(u0(y)||(u=y,a=p,K(u)||H(u)||"ArrowFunctionExpression"===u.type||"DoExpression"===u.type||"BlockStatement"===u.type||ea(u)||(null==(o=a.label)?void 0:o.hug)!==!1&&((null==(i=a.label)?void 0:i.embed)||ex(u,t.originalText)))||!c&&uZ(y)),m="callee"===e.key&&eK(e.parent),E=Symbol("arrow-chain"),f=function(e,t,{signatureDocs:n,shouldBreak:r}){if(1===n.length)return n[0];let{parent:u,key:a}=e;return"callee"!==a&&eK(u)||es(u)?tB([n[0]," =>",tS([tM,t_([" =>",tM],n.slice(1))])],{shouldBreak:r}):"callee"===a&&eK(u)||t.assignmentLayout?tB(t_([" =>",tM],n),{shouldBreak:r}):tB(tS(t_([" =>",tM],n)),{shouldBreak:r})}(e,r,{signatureDocs:s,shouldBreak:c}),F=!1,A=!1,g=!1;return D&&(m||r.assignmentLayout)&&(A=!0,g=!eU(e.node,e$.Leading&e$.Line),F="chain-tail-arrow-chain"===r.assignmentLayout||m&&!d),p=function(e,t,n,{bodyDoc:r,bodyComments:u,functionBody:a,shouldPutBodyOnSameLine:o}){let{node:i,parent:s}=e,p=n.expandLastArg&&eB(t,"all")?tP(","):"",l=(n.expandLastArg||"JSXExpressionContainer"===s.type)&&!eU(i)?tO:"";return o&&uZ(a)?[" ",tB([tP("","("),tS([tO,r]),tP("",")"),p,l]),u]:(u0(a)&&(r=tB(["(",tS([tO,r]),tO,")"])),o?[" ",r,u]:[tS([tM,r,u]),p,l])}(e,t,r,{bodyDoc:p,bodyComments:l,functionBody:y,shouldPutBodyOnSameLine:d}),tB([tB(A?tS([g?tO:"",f]):f,{shouldBreak:F,id:E})," =>",D?tw(p,{groupId:E}):tB(p),D&&m?tP(tO,"",{groupId:E}):""])}(e,t,n,r);case"YieldExpression":return o.push("yield"),u.delegate&&o.push("*"),u.argument&&o.push(" ",n("argument")),o;case"AwaitExpression":if(o.push("await"),u.argument){o.push(" ",n("argument"));let{parent:t}=e;if(em(t)&&t.callee===u||eE(t)&&t.object===u){o=[tS([tO,...o]),tO];
36let t=e.findAncestor(e=>"AwaitExpression"===e.type||"BlockStatement"===e.type);if((null==t?void 0:t.type)!=="AwaitExpression"||!ev(t.argument,e=>e===u))return tB(o)}}return o;case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportAllDeclaration":return am(e,t,n);case"ImportDeclaration":return function(e,t,n){let{node:r}=e;return["import",r.phase?` ${r.phase}`:"",aF(r),ag(e,t,n),aA(e,t,n),ah(e,t,n),t.semi?";":""]}(e,t,n);case"ImportSpecifier":case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ExportNamespaceSpecifier":case"ImportDefaultSpecifier":case"ExportDefaultSpecifier":return function(e,t,n){let{node:r}=e,{type:u}=r,a=u.startsWith("Import"),o=a?"imported":"local",i=a?"local":"exported",s=r[o],p=r[i],l="",c="";return"ExportNamespaceSpecifier"===u||"ImportNamespaceSpecifier"===u?l="*":s&&(l=n(o)),p&&!function(e){let t;if("ImportSpecifier"!==e.type&&"ExportSpecifier"!==e.type)return!1;let{local:n,["ImportSpecifier"===e.type?"imported":"exported"]:r}=e;return!!(n.type===r.type&&j(n,r)&&Number.isInteger(t=I(n))&&t===I(r))&&(Y(n)?n.value===r.value&&eb(n)===eb(r):"Identifier"===n.type&&n.name===r.name)}(r)&&(c=n(i)),[af("ImportSpecifier"===u?r.importKind:r.exportKind,!1),l,l&&c?" as ":"",c]}(e,0,n);case"ImportAttribute":case"ObjectProperty":return uW(e,t,n);case"Program":case"BlockStatement":case"StaticBlock":return u8(e,t,n);case"ClassBody":return function(e,t,n){let{node:r}=e,u=[];return e.each(({node:e,next:r,isLast:a})=>{u.push(n()),!t.semi&&u5(e)&&function(e,t){var n;let{type:r,name:u}=e.key;if(!e.computed&&"Identifier"===r&&("static"===u||"get"===u||"set"===u)&&!e.value&&!e.typeAnnotation)return!0;if(!t||t.static||t.accessibility||t.readonly)return!1;if(!t.computed){let e=null==(n=t.key)?void 0:n.name;if("in"===e||"instanceof"===e)return!0}if(u5(t)&&t.variance&&!t.static&&!t.declare)return!0;switch(t.type){case"ClassProperty":case"PropertyDefinition":case"TSAbstractPropertyDefinition":return t.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":{if((t.value?t.value.async:t.async)||"get"===t.kind||"set"===t.kind)return!1;let e=t.value?t.value.generator:t.generator;return!!(t.computed||e)}case"TSIndexSignature":return!0}return!1}(e,r)&&u.push(";"),a||(u.push(tJ),eV(e,t)&&u.push(tJ))},"body"),eU(r,e$.Dangling)&&u.push(rS(e,t)),["{",u.length>0?[tS([tJ,u]),tJ]:"","}"]}(e,t,n);case"ThrowStatement":return["throw",uQ(e,t,n)];case"ReturnStatement":return["return",uQ(e,t,n)];case"NewExpression":case"ImportExpression":case"OptionalCallExpression":case"CallExpression":return r2(e,t,n);case"ObjectExpression":case"ObjectPattern":case"RecordExpression":return aT(e,t,n);case"Property":return eo(u)?uV(e,t,n):uW(e,t,n);case"ObjectMethod":return uV(e,t,n);case"Decorator":return["@",n("expression")];case"ArrayExpression":case"ArrayPattern":case"TupleExpression":return uj(e,t,n
36);case"SequenceExpression":{let{parent:t}=e;if("ExpressionStatement"===t.type||"ForStatement"===t.type){let t=[];return e.each(({isFirst:e})=>{e?t.push(n()):t.push(",",tS([tM,n()]))},"expressions"),tB(t)}return tB(t_([",",tM],e.map(n,"expressions")))}case"ThisExpression":return"this";case"Super":return"super";case"Directive":return[n("value"),a];case"UnaryExpression":return o.push(u.operator),/[a-z]$/u.test(u.operator)&&o.push(" "),eU(u.argument)?o.push(tB(["(",tS([tO,n("argument")]),tO,")"])):o.push(n("argument")),o;case"UpdateExpression":return[u.prefix?u.operator:"",n("argument"),u.prefix?"":u.operator];case"ConditionalExpression":return av(e,t,n,r);case"VariableDeclaration":{let t=e.map(n,"declarations"),r=e.parent,i="ForStatement"===r.type||"ForInStatement"===r.type||"ForOfStatement"===r.type,s=u.declarations.some(e=>e.init),p;return 1!==t.length||eU(u.declarations[0])?t.length>0&&(p=tS(t[0])):p=t[0],o=[ub(e),u.kind,p?[" ",p]:"",tS(t.slice(1).map(e=>[",",s&&!i?tJ:tM,e]))],i&&r.body!==u||o.push(a),tB(o)}case"WithStatement":return tB(["with (",n("object"),")",uw(u.body,n("body"))]);case"IfStatement":{let r=uw(u.consequent,n("consequent")),a=tB(["if (",tB([tS([tO,n("test")]),tO]),")",r]);if(o.push(a),u.alternate){let r=eU(u.consequent,e$.Trailing|e$.Line)||eh(u),a="BlockStatement"===u.consequent.type&&!r;o.push(a?" ":tJ),eU(u,e$.Dangling)&&o.push(rS(e,t),r?tJ:" "),o.push("else",tB(uw(u.alternate,n("alternate"),"IfStatement"===u.alternate.type)))}return o}case"ForStatement":{let r=uw(u.body,n("body")),a=rS(e,t),o=a?[a,tO]:"";return u.init||u.test||u.update?[o,tB(["for (",tB([tS([tO,n("init"),";",tM,n("test"),";",tM,n("update")]),tO]),")",r])]:[o,tB(["for (;;)",r])]}case"WhileStatement":return tB(["while (",tB([tS([tO,n("test")]),tO]),")",uw(u.body,n("body"))]);case"ForInStatement":return tB(["for (",n("left")," in ",n("right"),")",uw(u.body,n("body"))]);case"ForOfStatement":return tB(["for",u.await?" await":""," (",n("left")," of ",n("right"),")",uw(u.body,n("body"))]);case"DoWhileStatement":return o=[tB(["do",uw(u.body,n("body"))])],"BlockStatement"===u.body.type?o.push(" "):o.push(tJ),o.push("while (",tB([tS([tO,n("test")]),tO]),")",a),o;case"DoExpression":return[u.async?"async ":"","do ",n("body")];case"BreakStatement":case"ContinueStatement":return o.push("BreakStatement"===u.type?"break":"continue"),u.label&&o.push(" ",n("label")),o.push(a),o;case"LabeledStatement":return"EmptyStatement"===u.body.type?[n("label"),":;"]:[n("label"),": ",n("body")];case"TryStatement":return["try ",n("block"),u.handler?[" ",n("handler")]:"",u.finalizer?[" finally ",n("finalizer")]:""];case"CatchClause":if(u.param){let e=eU(u.param,e=>!X(e)||e.leading&&T(t.originalText,I(e))||e.trailing&&T(t.originalText,N(e),{backwards:!0})),r=n("param");return["catch ",e?["(",tS([tO,r]),tO,") "]:["(",r,") "],n("body")]}return["catch ",n("body")];case"SwitchStatement":return[tB(["switch (",tS([tO,n("discriminant")]),tO,")"])," {",u.cases.length>0?tS([tJ,t_(tJ,e.map(({node:e,isLast:r})=>[n(),!r&&eV(e,t)?tJ:""],"cases"))]):"",tJ,"}"];case"SwitchCase":{u.test?o.push("case ",n("test"),":"):o.push("default:"),eU(u,e$.Dangling)&&o.push(" ",rS(e,t));let r=u.consequent.filter(e=>"EmptyStatement"!==e.type);if(r.length>0){let u=u2(e,t,n,"consequent");o.push(1===r.length&&"BlockStatement"===r[0].type?[" ",u]:tS([tJ,u]))}return o}case"DebuggerStatement":return["debugger",a];case"ClassDeclaration":case"ClassExpression":return ae(e,t,n);case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":return au(e,t,n);case"ClassProperty":case"PropertyDefinition":case"ClassPrivateProperty":case"ClassAccessorProperty":case"AccessorProperty":return aa(e,t,n);case"TemplateElement":return tx(u.value.raw);case"TemplateLiteral":return nH(e,n,t);case"TaggedTemplateExpression":let i;return tR((i=n("quasi")).label&&{tagged:!0,...i.label},[n("tag"),n(e.node.typeArguments?"typeArguments":"typeParameters"),tI,i]);case"PrivateIdentifier":return["#",u.name];case"PrivateName":return["#",n("id")];case"TopicReference":return"%";case"ArgumentPlaceholder":return"?";case"ModuleExpression":return["module ",n("body")];default:throw new rk(u,"ESTree")}}function aP(e,t,n){let{parent:r,node:u,key:a}=e,o=[n("expression")];switch(u.type){case"AsConstExpression":o.push(" as const");break;case"AsExpression":case"TSAsExpression":o.push(" as ",n("typeAnnotation"));break;case"SatisfiesExpression":case"TSSatisfiesExpression":o.push(" satisfies ",n("typeAnnotation"))}return"callee"===a&&em(r)||"object"===a&&eE(r)?tB([tS([tO,...o]),tO]):o}function aw(e,t){let{node:n}=e,r=t("id");n.computed&&(r=["[",r,"]"]);let u="";return n.initializer&&(u=t("initializer")),n.init&&(u=t("init")),u?[r," = ",u]:r}function aN(e,t,n){let{node:r}=e;return[ub(e),r.const?"const ":"","enum ",t("id")," ","TSEnumDeclaration"===r.type?aT(e,n,t):t("body")]}function aI(e){var t;let{node:n}=e;return"HookTypeAnnotation"===n.type&&(null==(t=e.getParentNode(2))?void 0:t.type)==="DeclareHook"}function aj(e,t,n){let{node:r}=e,u=[ub(e),"interface"],a=[],o=[];"InterfaceTypeAnnotation"!==r.type&&a.push(" ",n("id"),n("typeParameters"));let i=r.typeParameters&&!eU(r.typeParameters,e$.Trailing|e$.Line);return B(r.extends)&&o.push(i?tP(" ",tM,{groupId:u7(r.typeParameters)}):tM,"extends ",(1===r.extends.length?function(e){return e}:tS)(t_([",",tM],e.map(n,"extends")))),eU(r.id,e$.Trailing)||B(r.extends)?i?u.push(tB([...a,tS(o)])):u.push(tB(tS([...a,...o]))):u.push(...a,...o),u.push(" ",n("body")),tB(u)}function aL(e,t,n){let{node:r}=e;if(_(r))return r.type.slice(0,-14).toLowerCase();let u=t.semi?";":"";switch(r.type){case"ComponentDeclaration":case"DeclareComponent":case"ComponentTypeAnnotation":return function(e,t,n){let{node:r}=e,u=[ub(e),"component"];r.id&&u.push(" ",n("id")),u.push(n("typeParameters"));let a=function(e,t,n){var r,u;let{node:a}=e,o=a.params;if(a.rest&&(o=[...o,a.rest]),0===o.length)return["(",rS(e,n,{filter:e=>")"===tQ(n.originalText,I(e))}),")"];let i=[];return function(e,t){let{node:n}=e,r=0,u=e=>t(e,r++);e.each(u,"params"),n.rest&&e.call(u,"rest")}(e,(e,r)=>{let u=r===o.length-1;u&&a.rest&&i.push("..."),i.push(t()),u||(i.push(","),eV(o[r],n)?i.push(tJ,tJ):i.push(tM))}),["(",tS([tO,...i]),tP(eB(n,"all")&&(r=o,!a.rest&&(null==(u=y(!1,r,-1))?void 0:u.type)!=="RestElement")?",":""),tO,")"]}(e,n,t);return r.rendersType?u.push(tB([a," ",n("rendersType")])):u.push(tB([a]
36)),r.body&&u.push(" ",n("body")),t.semi&&"DeclareComponent"===r.type&&u.push(";"),u}(e,t,n);case"ComponentParameter":return function(e,t,n){let{node:r}=e;return r.shorthand?n("local"):[n("name")," as ",n("local")]}(e,0,n);case"ComponentTypeParameter":return function(e,t,n){let{node:r}=e,u=[];return r.name&&u.push(n("name"),r.optional?"?: ":": "),u.push(n("typeAnnotation")),u}(e,0,n);case"HookDeclaration":return function(e,t,n){let{node:r}=e,u=["hook"];r.id&&u.push(" ",n("id"));let a=ut(e,n,t,!1,!0),o=uz(e,n);return u.push(tB([ur(r,o)?tB(a):a,o]),r.body?" ":"",n("body")),u}(e,t,n);case"DeclareHook":return function(e,t,n){let{node:r}=e,u=[ub(e),"hook"];return r.id&&u.push(" ",n("id")),t.semi&&u.push(";"),u}(e,t,n);case"HookTypeAnnotation":return function(e,t,n){let{node:r}=e,u=[];u.push(aI(e)?"":"hook ");let a=ut(e,n,t,!1,!0),o=[];return o.push(aI(e)?": ":" => ",n("returnType")),ur(r,o)&&(a=tB(a)),u.push(a,o),tB(u)}(e,t,n);case"DeclareClass":return ae(e,t,n);case"DeclareFunction":return[ub(e),"function ",n("id"),n("predicate"),u];case"DeclareModule":return["declare module ",n("id")," ",n("body")];case"DeclareModuleExports":return["declare module.exports",uf(e,n),u];case"DeclareNamespace":return["declare namespace ",n("id")," ",n("body")];case"DeclareVariable":return[ub(e),r.kind??"var"," ",n("id"),u];case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":return am(e,t,n);case"DeclareOpaqueType":case"OpaqueType":return function(e,t,n){let r=t.semi?";":"",{node:u}=e,a=[ub(e),"opaque type ",n("id"),n("typeParameters")];return u.supertype&&a.push(": ",n("supertype")),u.impltype&&a.push(" = ",n("impltype")),a.push(r),a}(e,t,n);case"DeclareTypeAlias":case"TypeAlias":return ui(e,t,n);case"IntersectionTypeAnnotation":return us(e,t,n);case"UnionTypeAnnotation":return up(e,t,n);case"ConditionalTypeAnnotation":return av(e,t,n);case"InferTypeAnnotation":return uD(e,t,n);case"FunctionTypeAnnotation":return ul(e,t,n);
36case"TupleTypeAnnotation":return uj(e,t,n);case"TupleTypeLabeledElement":return um(e,t,n);case"TupleTypeSpreadElement":return ud(e,t,n);case"GenericTypeAnnotation":return[n("id"),u9(e,t,n,"typeParameters")];case"IndexedAccessType":case"OptionalIndexedAccessType":return uc(e,t,n);case"TypeAnnotation":return uA(e,t,n);case"TypeParameter":return u4(e,t,n);case"TypeofTypeAnnotation":return ux(e,n);case"ExistsTypeAnnotation":return"*";case"ArrayTypeAnnotation":return ug(n);case"DeclareEnum":case"EnumDeclaration":return aN(e,n,t);case"EnumBooleanBody":case"EnumNumberBody":case"EnumBigIntBody":case"EnumStringBody":case"EnumSymbolBody":return function(e,t,n){let{node:r}=e,u;if("EnumSymbolBody"===r.type||r.explicitType)switch(r.type){case"EnumBooleanBody":u="boolean";break;case"EnumNumberBody":u="number";break;case"EnumBigIntBody":u="bigint";break;case"EnumStringBody":u="string";break;case"EnumSymbolBody":u="symbol"}return[u?`of ${u} `:"",aT(e,n,t)]}(e,n,t);case"EnumBooleanMember":case"EnumNumberMember":case"EnumBigIntMember":case"EnumStringMember":case"EnumDefaultedMember":return aw(e,n);case"FunctionTypeParam":{let t=r.name?n("name"):e.parent.this===r?"this":"";return[t,uT(e),t?": ":"",n("typeAnnotation")]}case"DeclareInterface":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return aj(e,t,n);case"ClassImplements":case"InterfaceExtends":return[n("id"),n("typeParameters")];case"NullableTypeAnnotation":return["?",n("typeAnnotation")];case"Variance":{let{kind:e}=r;return v.ok("plus"===e||"minus"===e),"plus"===e?"+":"-"}case"KeyofTypeAnnotation":return["keyof ",n("argument")];case"ObjectTypeCallProperty":return[r.static?"static ":"",n("value")];case"ObjectTypeMappedTypeProperty":return function(e,t,n){let{node:r}=e;return tB([r.variance?n("variance"):"","[",tS([n("keyTparam")," in ",n("sourceType")]),"]",function(e){switch(e){case null:return"";case"PlusOptional":return"+?";case"MinusOptional":return"-?";case"Optional":return"?"}}(r.optional),": ",n("propType")])}(e,0,n);case"ObjectTypeIndexer":return[r.static?"static ":"",r.variance?n("variance"):"","[",n("id"),r.id?": ":"",n("key"),"]: ",n("value")];case"ObjectTypeProperty":{let u="";return r.proto?u="proto ":r.static&&(u="static "),[u,"init"!==r.kind?r.kind+" ":"",r.variance?n("variance"):"",u$(e,t,n),uT(e),eo(r)?"":": ",n("value")]}case"ObjectTypeAnnotation":return aT(e,t,n);case"ObjectTypeInternalSlot":return[r.static?"static ":"","[[",n("id"),"]]",uT(e),r.method?"":": ",n("value")];case"ObjectTypeSpreadProperty":return uN(e,n);case"QualifiedTypeofIdentifier":case"QualifiedTypeIdentifier":return[n("qualification"),".",n("id")];case"NullLiteralTypeAnnotation":return"null";case"BooleanLiteralTypeAnnotation":return String(r.value);case"StringLiteralTypeAnnotation":return tx(w(eb(r),t));case"NumberLiteralTypeAnnotation":return uq(r.raw??r.extra.raw);case"BigIntLiteralTypeAnnotation":return al(r.raw??r.extra.raw);case"TypeCastExpression":return["(",n("expression"),uf(e,n),")"];case"TypePredicate":return uh(e,n);case"TypeOperator":return[r.operator," ",n("typeAnnotation")];case"TypeParameterDeclaration":case"TypeParameterInstantiation":return u9(e,t,n,"params");case"InferredPredicate":case"DeclaredPredicate":return["predicate"!==e.key||"DeclareFunction"===e.parent.type||e.parent.returnType?" ":": ","%checks",..."DeclaredPredicate"===r.type?["(",n("value"),")"]:[]];case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return aP(e,t,n)}}function aM(e,t,n){var r;let{node:u}=e;if(!u.type.startsWith("TS"))return;if(R(u))return u.type.slice(2,-7).toLowerCase();let a=t.semi?";":"",o=[];switch(u.type){case"TSThisType":return"this";case"TSTypeAssertion":{let e=!(K(u.expression)||H(u.expression)),t=tB(["<",tS([tO,n("typeAnnotation")]),tO,">"]),r=[tP("("),tS([tO,n("expression")]),tO,tP(")")];return e?tv([[t,n("expression")],[t,tB(r,{shouldBreak:!0})],[t,n("expression")]]):tB([t,n("expression")])}case"TSDeclareFunction":return uG(e,n,t);case"TSExportAssignment":return["export = ",n("expression"),a];case"TSModuleBlock":return u8(e,t,n);case"TSInterfaceBody":case"TSTypeLiteral":return aT(e,t,n);
36case"TSTypeAliasDeclaration":return ui(e,t,n);case"TSQualifiedName":return[n("left"),".",n("right")];case"TSAbstractMethodDefinition":case"TSDeclareMethod":return au(e,t,n);case"TSAbstractAccessorProperty":case"TSAbstractPropertyDefinition":return aa(e,t,n);case"TSInterfaceHeritage":case"TSClassImplements":case"TSExpressionWithTypeArguments":case"TSInstantiationExpression":return[n("expression"),n(u.typeArguments?"typeArguments":"typeParameters")];case"TSTemplateLiteralType":return nH(e,n,t);case"TSNamedTupleMember":return um(e,t,n);case"TSRestType":return ud(e,t,n);case"TSOptionalType":return[n("typeAnnotation"),"?"];case"TSInterfaceDeclaration":return aj(e,t,n);case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return u9(e,t,n,"params");case"TSTypeParameter":return u4(e,t,n);case"TSAsExpression":case"TSSatisfiesExpression":return aP(e,t,n);case"TSArrayType":return ug(n);case"TSPropertySignature":return[u.readonly?"readonly ":"",u$(e,t,n),uT(e),uf(e,n)];case"TSParameterProperty":return[uI(u),u.static?"static ":"",u.override?"override ":"",u.readonly?"readonly ":"",n("parameter")];case"TSTypeQuery":return ux(e,n);case"TSIndexSignature":{let r=u.parameters.length>1?tP(eB(t)?",":""):"",o=tB([tS([tO,t_([", ",tO],e.map(n,"parameters"))]),r,tO]),i="ClassBody"===e.parent.type&&"body"===e.key;return[i&&u.static?"static ":"",u.readonly?"readonly ":"","[",u.parameters?o:"","]",uf(e,n),i?a:""]}case"TSTypePredicate":return uh(e,n);case"TSNonNullExpression":return[n("expression"),"!"];case"TSImportType":return["import(",n("argument"),")",u.qualifier?[".",n("qualifier")]:"",u9(e,t,n,u.typeArguments?"typeArguments":"typeParameters")];case"TSLiteralType":return n("literal");case"TSIndexedAccessType":return uc(e,t,n);case"TSTypeOperator":return[u.operator," ",n("typeAnnotation")];case"TSMappedType":return function(e,t,n){let{node:r}=e,u="preserve"===t.objectWrap&&tY(t.originalText,N(r),N(r.typeParameter));return tB(["{",tS([t.bracketSpacing?tM:tO,tB([n("typeParameter"),r.optional?u6(r.optional,"?"):"",r.typeAnnotation?": ":"",n("typeAnnotation")]),t.semi?tP(";"):""]),rS(e,t),t.bracketSpacing?tM:tO,"}"],{shouldBreak:u})}(e,t,n);case"TSMethodSignature":{let r=u.kind&&"method"!==u.kind?`${u.kind} `:"";o.push(uI(u),r,u.computed?"[":"",n("key"),u.computed?"]":"",uT(e));let a=ut(e,n,t,!1,!0),i=u.returnType?"returnType":"typeAnnotation",s=u[i],p=s?uf(e,n,i):"",l=ur(u,p);return o.push(l?tB(a):a),s&&o.push(tB(p)),tB(o)}case"TSNamespaceExportDeclaration":return["export as namespace ",n("id"),t.semi?";":""];case"TSEnumDeclaration":return aN(e,n,t);case"TSEnumMember":return aw(e,n);case"TSImportEqualsDeclaration":return[u.isExport?"export ":"","import ",aF(u,!1),n("id")," = ",n("moduleReference"),t.semi?";":""];case"TSExternalModuleReference":return["require(",n("expression"),")"];case"TSModuleDeclaration":{let{parent:t}=e,i="TSModuleDeclaration"===t.type,s=(null==(r=u.body)?void 0:r.type)==="TSModuleDeclaration";return i?o.push("."):(o.push(ub(e)),"global"!==u.kind&&o.push(u.kind," ")),o.push(n("id")),s?o.push(n("body")):u.body?o.push(" ",tB(n("body"))):o.push(a),o}case"TSConditionalType":return av(e,t,n);case"TSInferType":return uD(e,t,n);case"TSIntersectionType":return us(e,t,n);case"TSUnionType":return up(e,t,n);case"TSFunctionType":case"TSCallSignatureDeclaration":case"TSConstructorType":case"TSConstructSignatureDeclaration":return ul(e,t,n);
36case"TSTupleType":return uj(e,t,n);case"TSTypeReference":return[n("typeName"),u9(e,t,n,u.typeArguments?"typeArguments":"typeParameters")];case"TSTypeAnnotation":return uA(e,t,n);case"TSEmptyBodyFunctionExpression":return uK(e,t,n);case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return uy(e,n,"?");case"TSJSDocNonNullableType":return uy(e,n,"!");default:throw new rk(u,"TypeScript")}}var aO=q(["ClassMethod","ClassPrivateMethod","ClassProperty","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty","PropertyDefinition","TSAbstractPropertyDefinition","ClassPrivateProperty","MethodDefinition","TSAbstractMethodDefinition","TSDeclareMethod"]),aJ=function(e,t,n,r){var u;e.isRoot&&(null==(u=t.__onHtmlBindingRoot)||u.call(t,e.node,t));let a=function(e,t,n,r){if(rJ(e))return rF(e,t);for(let u of[r$,rM,aL,aM,ak]){let a=u(e,t,n,r);if(void 0!==a)return a}}(e,t,n,r);if(!a)return"";let{node:o}=e;if(aO(o))return a;let i=B(o.decorators),s=function(e,t,n){let{node:r,parent:u}=e,{decorators:a}=r;if(!B(a)||rK(u)||rJ(e))return"";let o="ClassExpression"===r.type||"ClassDeclaration"===r.type||rV(r,t);return["declaration"===e.key&&V(u)?tJ:o?tj:"",t_(tM,e.map(n,"decorators")),tM]}(e,t,n),p="ClassExpression"===o.type;if(i&&!p)return tT(a,e=>tB([s,e]));let l=rA(e,t),c=function(e,t){if(t.semi||as(e,t)||ap(e,t))return!1;let{node:n,key:r,parent:u}=e;return!!("ExpressionStatement"===n.type&&("body"===r&&("Program"===u.type||"BlockStatement"===u.type||"StaticBlock"===u.type||"TSModuleBlock"===u.type)||"consequent"===r&&"SwitchCase"===u.type)&&e.call(()=>(function e(t,n){let{node:r}=t;switch(r.type){case"ParenthesizedExpression":case"TypeCastExpression":case"ArrayExpression":case"ArrayPattern":case"TemplateLiteral":case"TemplateElement":case"RegExpLiteral":return!0;case"ArrowFunctionExpression":if(!uH(t,n))return!0;break;case"UnaryExpression":{let{prefix:e,operator:t}=r;if(e&&("+"===t||"-"===t))return!0;break}case"BindExpression":if(!r.object)return!0;break;case"Literal":if(r.regex)return!0;break;default:if(ea(r))return!0}return!!rA(t,n)||!!W(r)&&t.call(()=>e(t,n),...U(r))})(e,t),"expression"))}(e,t);return s||l||c?tT(a,e=>[c?";":"",l?"(":"",l&&p&&i?[tS([tM,s,e]),tM]:[s,e],l?")":""]):a},aq={avoidAstMutation:!0},aX={};a(aX,{getVisitorKeys:()=>a_,massageAstNode:()=>aU,print:()=>aR});var a_=O({JsonRoot:["node"],ArrayExpression:["elements"],ObjectExpression:["properties"],ObjectProperty:["key","value"],UnaryExpression:["argument"],NullLiteral:[],BooleanLiteral:[],StringLiteral:[],NumericLiteral:[],Identifier:[],TemplateLiteral:["quasis"],TemplateElement:[]});function aR(e,t,n){let{node:r}=e;switch(r.type){case"JsonRoot":return[n("node"),tJ];case"ArrayExpression":if(0===r.elements.length)return"[]";return["[",tS([tJ,t_([",",tJ],e.map(()=>null===e.node?"null":n(),"elements"))]),tJ,"]"];case"ObjectExpression":return 0===r.properties.length?"{}":["{",tS([tJ,t_([",",tJ],e.map(n,"properties"))]),tJ,"}"];case"ObjectProperty":return[n("key"),": ",n("value")];case"UnaryExpression":return["+"===r.operator?"":r.operator,n("argument")];case"NullLiteral":return"null";case"BooleanLiteral":return r.value?"true":"false";case"StringLiteral":return JSON.stringify(r.value);case"NumericLiteral":return a$(e)?JSON.stringify(String(r.value)):JSON.stringify(r.value);case"Identifier":return a$(e)?JSON.stringify(r.name):r.name;case"TemplateLiteral":return n(["quasis",0]);case"TemplateElement":return JSON.stringify(r.value.cooked);default:throw new rk(r,"JSON")}}function a$(e){return"key"===e.key&&"ObjectProperty"===e.parent.type}var aW=new Set(["start","end","extra","loc","comments","leadingComments","trailingComments","innerComments","errors","range","tokens"]);function aU(e,t){let{type:n}=e;if("ObjectProperty"===n){let{key:n}=e;"Identifier"===n.type?t.key={type:"StringLiteral",value:n.name}:"NumericLiteral"===n.type&&(t.key={type:"StringLiteral",value:String(n.value)});return}if("UnaryExpression"===n&&"+"===e.operator)return t.argument;if("ArrayExpression"===n){for(let[n,r]of e.elements.entries())null===r&&t.elements.splice(n,0,{type:"NullLiteral"});return}if("TemplateLiteral"===n)return{type:"StringLiteral",value:e.quasis[0].value.cooked}}aU.ignoredProperties=aW;var aG={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print space
36s between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},aV="JavaScript",aK={arrowParens:{category:aV,type:"choice",default:"always",description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSameLine:aG.bracketSameLine,objectWrap:aG.objectWrap,bracketSpacing:aG.bracketSpacing,jsxBracketSameLine:{category:aV,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{category:aV,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},experimentalOperatorPosition:{category:aV,type:"choice",default:"end",description:"Where to print operators when binary expressions wrap lines.",choices:[{value:"start",description:"Print operators at the start of new lines."},{value:"end",description:"Print operators at the end of previous lines."}]},experimentalTernaries:{category:aV,type:"boolean",default:!1,description:"Use curious ternaries, with the question mark after the condition.",oppositeDescription:"Default behavior of ternaries; keep question marks on the same line as the consequent."},singleQuote:aG.singleQuote,jsxSingleQuote:{category:aV,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{category:aV,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{category:aV,type:"choice",default:"all",description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"all",description:"Trailing commas wherever possible (including function arguments)."},{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."}]},singleAttributePerLine:aG.singleAttributePerLine},aH={estree:c,"estree-json":aX},az=[{linguistLanguageId:183,name:"JavaScript",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:["js","node"],extensions:[".js","._js",".bones",".cjs",".es",".es6",".frag",".gs",".jake",".javascript",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib",".wxs"],filenames:["Jakefile"],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell","zx"],parsers:["babel","acorn","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"]},{linguistLanguageId:183,name:"Flow",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:[],extensions:[".js.flow"],filenames:[],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"]},{linguistLanguageId:183,name:"JSX",type:"programming",tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",color:void 0,aliases:void 0,extensions:[".jsx"],filenames:void 0,interpreters:void 0,parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],group:"JavaScript"},{linguistLanguageId:378,name:"TypeScript",type:"programming",color:"#3178c6",aliases:["t
36s"],interpreters:["deno","ts-node"],extensions:[".ts",".cts",".mts"],tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"]},{linguistLanguageId:0x5a816a4,name:"TSX",type:"programming",color:"#3178c6",group:"TypeScript",extensions:[".tsx"],tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"]},{linguistLanguageId:174,name:"JSON.stringify",type:"data",color:"#292929",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",aliases:["geojson","jsonl","topojson"],extensions:[".importmap"],filenames:["package.json","package-lock.json","composer.json"],parsers:["json-stringify"],vscodeLanguageIds:["json"]},{linguistLanguageId:174,name:"JSON",type:"data",color:"#292929",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",aliases:["geojson","jsonl","topojson"],extensions:[".json",".4DForm",".4DProject",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".mcmeta",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".all-contributorsrc",".arcconfig",".auto-changelog",".c8rc",".htmlhintrc",".imgbotconfig",".nycrc",".tern-config",".tern-project",".watchmanconfig","Pipfile.lock","composer.lock","flake.lock","mcmod.info",".babelrc",".jscsrc",".jshintrc",".jslintrc",".swcrc"],parsers:["json"],vscodeLanguageIds:["json"]},{linguistLanguageId:423,name:"JSON with Comments",type:"data",color:"#292929",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:["jsonc"],extensions:[".jsonc",".code-snippets",".code-workspace",".sublime-build",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],filenames:[],parsers:["jsonc"],vscodeLanguageIds:["jsonc"]},{linguistLanguageId:175,name:"JSON5",type:"data",color:"#267CB9",extensions:[".json5"],tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json5"],vscodeLanguageIds:["json5"]}],aQ=l}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.