UNPKG

prettier

Version:

Prettier is an opinionated JavaScript formatter

1 lines 663 kB
var prettier=function(){function Se(){Wp=!0;var Pb='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';for(var Nb=0,Lb=Pb.length;Nb<Lb;++Nb)Mp[Nb]=Pb[Nb],Up[Pb.charCodeAt(Nb)]=Nb;Up['-'.charCodeAt(0)]=62,Up['_'.charCodeAt(0)]=63}function Te(Pb){Wp||Se();var Vb=Pb.length,Nb,Lb,Rb,Yb,Ob,Mb;if(0<Vb%4)throw new Error('Invalid string. Length must be a multiple of 4');Ob='='===Pb[Vb-2]?2:'='===Pb[Vb-1]?1:0,Mb=new Xp(3*Vb/4-Ob),Rb=0<Ob?Vb-4:Vb;var Ub=0;for(Nb=0,Lb=0;Nb<Rb;Nb+=4,Lb+=3)Yb=Up[Pb.charCodeAt(Nb)]<<18|Up[Pb.charCodeAt(Nb+1)]<<12|Up[Pb.charCodeAt(Nb+2)]<<6|Up[Pb.charCodeAt(Nb+3)],Mb[Ub++]=255&Yb>>16,Mb[Ub++]=255&Yb>>8,Mb[Ub++]=255&Yb;return 2===Ob?(Yb=Up[Pb.charCodeAt(Nb)]<<2|Up[Pb.charCodeAt(Nb+1)]>>4,Mb[Ub++]=255&Yb):1==Ob&&(Yb=Up[Pb.charCodeAt(Nb)]<<10|Up[Pb.charCodeAt(Nb+1)]<<4|Up[Pb.charCodeAt(Nb+2)]>>2,Mb[Ub++]=255&Yb>>8,Mb[Ub++]=255&Yb),Mb}function _e(Pb){return Mp[63&Pb>>18]+Mp[63&Pb>>12]+Mp[63&Pb>>6]+Mp[63&Pb]}function Pe(Pb,Nb,Lb){var Rb,Yb=[];for(var Ob=Nb;Ob<Lb;Ob+=3)Rb=(Pb[Ob]<<16)+(Pb[Ob+1]<<8)+Pb[Ob+2],Yb.push(_e(Rb));return Yb.join('')}function Ne(Pb){Wp||Se();var Lb=Pb.length,Rb=Lb%3,Yb='',Ob=[],Mb=16383,Nb;for(var Vb=0,Ub=Lb-Rb;Vb<Ub;Vb+=Mb)Ob.push(Pe(Pb,Vb,Vb+Mb>Ub?Ub:Vb+Mb));return 1==Rb?(Nb=Pb[Lb-1],Yb+=Mp[Nb>>2],Yb+=Mp[63&Nb<<4],Yb+='=='):2==Rb&&(Nb=(Pb[Lb-2]<<8)+Pb[Lb-1],Yb+=Mp[Nb>>10],Yb+=Mp[63&Nb>>4],Yb+=Mp[63&Nb<<2],Yb+='='),Ob.push(Yb),Ob.join('')}function Le(Pb,Nb,Lb,Rb,Yb){var Ob,Mb,Vb=8*Yb-Rb-1,Ub=(1<<Vb)-1,Xb=Ub>>1,Wb=-7,Jb=Lb?Yb-1:0,Zb=Lb?-1:1,Kb=Pb[Nb+Jb];for(Jb+=Zb,Ob=Kb&(1<<-Wb)-1,Kb>>=-Wb,Wb+=Vb;0<Wb;Ob=256*Ob+Pb[Nb+Jb],Jb+=Zb,Wb-=8);for(Mb=Ob&(1<<-Wb)-1,Ob>>=-Wb,Wb+=Rb;0<Wb;Mb=256*Mb+Pb[Nb+Jb],Jb+=Zb,Wb-=8);if(0===Ob)Ob=1-Xb;else{if(Ob===Ub)return Mb?NaN:(Kb?-1:1)*Infinity;Mb+=Math.pow(2,Rb),Ob-=Xb}return(Kb?-1:1)*Mb*Math.pow(2,Ob-Rb)}function Re(Pb,Nb,Lb,Rb,Yb,Ob){var Mb,Vb,Ub,Xb=8*Ob-Yb-1,Wb=(1<<Xb)-1,Jb=Wb>>1,Zb=23===Yb?Math.pow(2,-24)-Math.pow(2,-77):0,Kb=Rb?0:Ob-1,Qb=Rb?1:-1,$b=0>Nb||0===Nb&&0>1/Nb?1:0;for(Nb=Math.abs(Nb),isNaN(Nb)||Nb===Infinity?(Vb=isNaN(Nb)?1:0,Mb=Wb):(Mb=Math.floor(Math.log(Nb)/Math.LN2),1>Nb*(Ub=Math.pow(2,-Mb))&&(Mb--,Ub*=2),Nb+=1<=Mb+Jb?Zb/Ub:Zb*Math.pow(2,1-Jb),2<=Nb*Ub&&(Mb++,Ub/=2),Mb+Jb>=Wb?(Vb=0,Mb=Wb):1<=Mb+Jb?(Vb=(Nb*Ub-1)*Math.pow(2,Yb),Mb+=Jb):(Vb=Nb*Math.pow(2,Jb-1)*Math.pow(2,Yb),Mb=0));8<=Yb;Pb[Lb+Kb]=255&Vb,Kb+=Qb,Vb/=256,Yb-=8);for(Mb=Mb<<Yb|Vb,Xb+=Yb;0<Xb;Pb[Lb+Kb]=255&Mb,Kb+=Qb,Mb/=256,Xb-=8);Pb[Lb+Kb-Qb]|=128*$b}function Ye(){return Me.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Oe(Pb,Nb){if(Ye()<Nb)throw new RangeError('Invalid typed array length');return Me.TYPED_ARRAY_SUPPORT?(Pb=new Uint8Array(Nb),Pb.__proto__=Me.prototype):(null===Pb&&(Pb=new Me(Nb)),Pb.length=Nb),Pb}function Me(Pb,Nb,Lb){if(!Me.TYPED_ARRAY_SUPPORT&&!(this instanceof Me))return new Me(Pb,Nb,Lb);if('number'==typeof Pb){if('string'==typeof Nb)throw new Error('If encoding is specified then the first argument must be a string');return We(this,Pb)}return Ve(this,Pb,Nb,Lb)}function Ve(Pb,Nb,Lb,Rb){if('number'==typeof Nb)throw new TypeError('"value" argument must not be a number');return'undefined'!=typeof ArrayBuffer&&Nb instanceof ArrayBuffer?Ke(Pb,Nb,Lb,Rb):'string'==typeof Nb?Je(Pb,Nb,Lb):Qe(Pb,Nb)}function Ue(Pb){if('number'!=typeof Pb)throw new TypeError('"size" argument must be a number');else if(0>Pb)throw new RangeError('"size" argument must not be negative')}function Xe(Pb,Nb,Lb,Rb){return Ue(Nb),0>=Nb?Oe(Pb,Nb):void 0===Lb?Oe(Pb,Nb):'string'==typeof Rb?Oe(Pb,Nb).fill(Lb,Rb):Oe(Pb,Nb).fill(Lb)}function We(Pb,Nb){if(Ue(Nb),Pb=Oe(Pb,0>Nb?0:0|$e(Nb)),!Me.TYPED_ARRAY_SUPPORT)for(var Lb=0;Lb<Nb;++Lb)Pb[Lb]=0;return Pb}function Je(Pb,Nb,Lb){if(('string'!=typeof Lb||''===Lb)&&(Lb='utf8'),!Me.isEncoding(Lb))throw new TypeError('"encoding" must be a valid string encoding');var Rb=0|Tt(Nb,Lb);Pb=Oe(Pb,Rb);var Yb=Pb.write(Nb,Lb);return Yb!==Rb&&(Pb=Pb.slice(0,Yb)),Pb}function Ze(Pb,Nb){var Lb=0>Nb.length?0:0|$e(Nb.length);Pb=Oe(Pb,Lb);for(var Rb=0;Rb<Lb;Rb+=1)Pb[Rb]=255&Nb[Rb];return Pb}function Ke(Pb,Nb,Lb,Rb){if(Nb.byteLength,0>Lb||Nb.byteLength<Lb)throw new RangeError('\'offset\' is out of bounds');if(Nb.byteLength<Lb+(Rb||0))throw new RangeError('\'length\' is out of bounds');return Nb=void 0===Lb&&void 0===Rb?new Uint8Array(Nb):void 0===Rb?new Uint8Array(Nb,Lb):new Uint8Array(Nb,Lb,Rb),Me.TYPED_ARRAY_SUPPORT?(Pb=Nb,Pb.__proto__=Me.prototype):Pb=Ze(Pb,Nb),Pb}function Qe(Pb,Nb){if(St(Nb)){var Lb=0|$e(Nb.length);return(Pb=Oe(Pb,Lb),0===Pb.length)?Pb:(Nb.copy(Pb,0,0,Lb),Pb)}if(Nb){if('undefined'!=typeof ArrayBuffer&&Nb.buffer instanceof ArrayBuffer||'length'in Nb)return'number'!=typeof Nb.length||Ja(Nb.length)?Oe(Pb,0):Ze(Pb,Nb);if('Buffer'===Nb.type&&Zp(Nb.data))return Ze(Pb,Nb.data)}throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.')}function $e(Pb){if(Pb>=Ye())throw new RangeError('Attempt to allocate Buffer larger than maximum size: 0x'+Ye().toString(16)+' bytes');return 0|Pb}function St(Pb){return!!(null!=Pb&&Pb._isBuffer)}function Tt(Pb,Nb){if(St(Pb))return Pb.length;if('undefined'!=typeof ArrayBuffer&&'function'==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(Pb)||Pb instanceof ArrayBuffer))return Pb.byteLength;'string'!=typeof Pb&&(Pb=''+Pb);var Lb=Pb.length;if(0===Lb)return 0;for(var Rb=!1;;)switch(Nb){case'ascii':case'latin1':case'binary':return Lb;case'utf8':case'utf-8':case void 0:return Ma(Pb).length;case'ucs2':case'ucs-2':case'utf16le':case'utf-16le':return 2*Lb;case'hex':return Lb>>>1;case'base64':return Xa(Pb).length;default:if(Rb)return Ma(Pb).length;Nb=(''+Nb).toLowerCase(),Rb=!0;}}function _t(Pb,Nb,Lb){var Rb=!1;if((void 0===Nb||0>Nb)&&(Nb=0),Nb>this.length)return'';if((void 0===Lb||Lb>this.length)&&(Lb=this.length),0>=Lb)return'';if(Lb>>>=0,Nb>>>=0,Lb<=Nb)return'';for(Pb||(Pb='utf8');!0;)switch(Pb){case'hex':return Kt(this,Nb,Lb);case'utf8':case'utf-8':return Xt(this,Nb,Lb);case'ascii':return Jt(this,Nb,Lb);case'latin1':case'binary':return Zt(this,Nb,Lb);case'base64':return Ut(this,Nb,Lb);case'ucs2':case'ucs-2':case'utf16le':case'utf-16le':return Qt(this,Nb,Lb);default:if(Rb)throw new TypeError('Unknown encoding: '+Pb);Pb=(Pb+'').toLowerCase(),Rb=!0;}}function Pt(Pb,Nb,Lb){var Rb=Pb[Nb];Pb[Nb]=Pb[Lb],Pb[Lb]=Rb}function Nt(Pb,Nb,Lb,Rb,Yb){if(0===Pb.length)return-1;if('string'==typeof Lb?(Rb=Lb,Lb=0):2147483647<Lb?Lb=2147483647:-2147483648>Lb&&(Lb=-2147483648),Lb=+Lb,isNaN(Lb)&&(Lb=Yb?0:Pb.length-1),0>Lb&&(Lb=Pb.length+Lb),Lb>=Pb.length){if(Yb)return-1;Lb=Pb.length-1}else if(0>Lb)if(Yb)Lb=0;else return-1;if('string'==typeof Nb&&(Nb=Me.from(Nb,Rb)),St(Nb))return 0===Nb.length?-1:It(Pb,Nb,Lb,Rb,Yb);if('number'==typeof Nb)return Nb&=255,Me.TYPED_ARRAY_SUPPORT&&'function'==typeof Uint8Array.prototype.indexOf?Yb?Uint8Array.prototype.indexOf.call(Pb,Nb,Lb):Uint8Array.prototype.lastIndexOf.call(Pb,Nb,Lb):It(Pb,[Nb],Lb,Rb,Yb);throw new TypeError('val must be string, number or Buffer')}function It(Pb,Nb,Lb,Rb,Yb){function Ob(Kb,Qb){return 1===Mb?Kb[Qb]:Kb.readUInt16BE(Qb*Mb)}var Mb=1,Vb=Pb.length,Ub=Nb.length;if(void 0!==Rb&&(Rb=(Rb+'').toLowerCase(),'ucs2'===Rb||'ucs-2'===Rb||'utf16le'===Rb||'utf-16le'===Rb)){if(2>Pb.length||2>Nb.length)return-1;Mb=2,Vb/=2,Ub/=2,Lb/=2}var Xb;if(Yb){var Wb=-1;for(Xb=Lb;Xb<Vb;Xb++)if(Ob(Pb,Xb)!==Ob(Nb,-1==Wb?0:Xb-Wb))-1!=Wb&&(Xb-=Wb),Wb=-1;else if(-1==Wb&&(Wb=Xb),Xb-Wb+1===Ub)return Wb*Mb}else for(Lb+Ub>Vb&&(Lb=Vb-Ub),Xb=Lb;0<=Xb;Xb--){var Jb=!0;for(var Zb=0;Zb<Ub;Zb++)if(Ob(Pb,Xb+Zb)!==Ob(Nb,Zb)){Jb=!1;break}if(Jb)return Xb}return-1}function Lt(Pb,Nb,Lb,Rb){Lb=+Lb||0;var Yb=Pb.length-Lb;Rb?(Rb=+Rb,Rb>Yb&&(Rb=Yb)):Rb=Yb;var Ob=Nb.length;if(0!=Ob%2)throw new TypeError('Invalid hex string');Rb>Ob/2&&(Rb=Ob/2);for(var Mb=0;Mb<Rb;++Mb){var Vb=parseInt(Nb.substr(2*Mb,2),16);if(isNaN(Vb))return Mb;Pb[Lb+Mb]=Vb}return Mb}function Rt(Pb,Nb,Lb,Rb){return Wa(Ma(Nb,Pb.length-Lb),Pb,Lb,Rb)}function Yt(Pb,Nb,Lb,Rb){return Wa(Va(Nb),Pb,Lb,Rb)}function Ot(Pb,Nb,Lb,Rb){return Yt(Pb,Nb,Lb,Rb)}function Mt(Pb,Nb,Lb,Rb){return Wa(Xa(Nb),Pb,Lb,Rb)}function Vt(Pb,Nb,Lb,Rb){return Wa(Ua(Nb,Pb.length-Lb),Pb,Lb,Rb)}function Ut(Pb,Nb,Lb){return 0===Nb&&Lb===Pb.length?Ne(Pb):Ne(Pb.slice(Nb,Lb))}function Xt(Pb,Nb,Lb){Lb=Math.min(Pb.length,Lb);for(var Rb=[],Yb=Nb;Yb<Lb;){var Ob=Pb[Yb],Mb=null,Vb=239<Ob?4:223<Ob?3:191<Ob?2:1;if(Yb+Vb<=Lb){var Ub,Xb,Wb,Jb;1==Vb?128>Ob&&(Mb=Ob):2==Vb?(Ub=Pb[Yb+1],128==(192&Ub)&&(Jb=(31&Ob)<<6|63&Ub,127<Jb&&(Mb=Jb))):3==Vb?(Ub=Pb[Yb+1],Xb=Pb[Yb+2],128==(192&Ub)&&128==(192&Xb)&&(Jb=(15&Ob)<<12|(63&Ub)<<6|63&Xb,2047<Jb&&(55296>Jb||57343<Jb)&&(Mb=Jb))):4==Vb?(Ub=Pb[Yb+1],Xb=Pb[Yb+2],Wb=Pb[Yb+3],128==(192&Ub)&&128==(192&Xb)&&128==(192&Wb)&&(Jb=(15&Ob)<<18|(63&Ub)<<12|(63&Xb)<<6|63&Wb,65535<Jb&&1114112>Jb&&(Mb=Jb))):void 0}null===Mb?(Mb=65533,Vb=1):65535<Mb&&(Mb-=65536,Rb.push(55296|1023&Mb>>>10),Mb=56320|1023&Mb),Rb.push(Mb),Yb+=Vb}return Wt(Rb)}function Wt(Pb){var Nb=Pb.length;if(Nb<=Kp)return String.fromCharCode.apply(String,Pb);for(var Lb='',Rb=0;Rb<Nb;)Lb+=String.fromCharCode.apply(String,Pb.slice(Rb,Rb+=Kp));return Lb}function Jt(Pb,Nb,Lb){var Rb='';Lb=Math.min(Pb.length,Lb);for(var Yb=Nb;Yb<Lb;++Yb)Rb+=String.fromCharCode(127&Pb[Yb]);return Rb}function Zt(Pb,Nb,Lb){var Rb='';Lb=Math.min(Pb.length,Lb);for(var Yb=Nb;Yb<Lb;++Yb)Rb+=String.fromCharCode(Pb[Yb]);return Rb}function Kt(Pb,Nb,Lb){var Rb=Pb.length;(!Nb||0>Nb)&&(Nb=0),(!Lb||0>Lb||Lb>Rb)&&(Lb=Rb);var Yb='';for(var Ob=Nb;Ob<Lb;++Ob)Yb+=Oa(Pb[Ob]);return Yb}function Qt(Pb,Nb,Lb){var Rb=Pb.slice(Nb,Lb),Yb='';for(var Ob=0;Ob<Rb.length;Ob+=2)Yb+=String.fromCharCode(Rb[Ob]+256*Rb[Ob+1]);return Yb}function $t(Pb,Nb,Lb){if(0!=Pb%1||0>Pb)throw new RangeError('offset is not uint');if(Pb+Nb>Lb)throw new RangeError('Trying to access beyond buffer length')}function Sa(Pb,Nb,Lb,Rb,Yb,Ob){if(!St(Pb))throw new TypeError('"buffer" argument must be a Buffer instance');if(Nb>Yb||Nb<Ob)throw new RangeError('"value" argument is out of bounds');if(Lb+Rb>Pb.length)throw new RangeError('Index out of range')}function Ta(Pb,Nb,Lb,Rb){0>Nb&&(Nb=65535+Nb+1);for(var Yb=0,Ob=Math.min(Pb.length-Lb,2);Yb<Ob;++Yb)Pb[Lb+Yb]=(Nb&255<<8*(Rb?Yb:1-Yb))>>>8*(Rb?Yb:1-Yb)}function _a(Pb,Nb,Lb,Rb){0>Nb&&(Nb=4294967295+Nb+1);for(var Yb=0,Ob=Math.min(Pb.length-Lb,4);Yb<Ob;++Yb)Pb[Lb+Yb]=255&Nb>>>8*(Rb?Yb:3-Yb)}function Pa(Pb,Nb,Lb,Rb){if(Lb+Rb>Pb.length)throw new RangeError('Index out of range');if(0>Lb)throw new RangeError('Index out of range')}function Na(Pb,Nb,Lb,Rb,Yb){return Yb||Pa(Pb,Nb,Lb,4,3.4028234663852886e38,-3.4028234663852886e38),Re(Pb,Nb,Lb,Rb,23,4),Lb+4}function La(Pb,Nb,Lb,Rb,Yb){return Yb||Pa(Pb,Nb,Lb,8,1.7976931348623157e308,-1.7976931348623157e308),Re(Pb,Nb,Lb,Rb,52,8),Lb+8}function Ra(Pb){if(Pb=Ya(Pb).replace(Qp,''),2>Pb.length)return'';for(;0!=Pb.length%4;)Pb+='=';return Pb}function Ya(Pb){return Pb.trim?Pb.trim():Pb.replace(/^\s+|\s+$/g,'')}function Oa(Pb){return 16>Pb?'0'+Pb.toString(16):Pb.toString(16)}function Ma(Pb,Nb){Nb=Nb||Infinity;var Lb,Rb=Pb.length,Yb=null,Ob=[];for(var Mb=0;Mb<Rb;++Mb){if(Lb=Pb.charCodeAt(Mb),55295<Lb&&57344>Lb){if(!Yb){if(56319<Lb){-1<(Nb-=3)&&Ob.push(239,191,189);continue}else if(Mb+1===Rb){-1<(Nb-=3)&&Ob.push(239,191,189);continue}Yb=Lb;continue}if(56320>Lb){-1<(Nb-=3)&&Ob.push(239,191,189),Yb=Lb;continue}Lb=(Yb-55296<<10|Lb-56320)+65536}else Yb&&-1<(Nb-=3)&&Ob.push(239,191,189);if(Yb=null,128>Lb){if(0>(Nb-=1))break;Ob.push(Lb)}else if(2048>Lb){if(0>(Nb-=2))break;Ob.push(192|Lb>>6,128|63&Lb)}else if(65536>Lb){if(0>(Nb-=3))break;Ob.push(224|Lb>>12,128|63&Lb>>6,128|63&Lb)}else if(1114112>Lb){if(0>(Nb-=4))break;Ob.push(240|Lb>>18,128|63&Lb>>12,128|63&Lb>>6,128|63&Lb)}else throw new Error('Invalid code point')}return Ob}function Va(Pb){var Nb=[];for(var Lb=0;Lb<Pb.length;++Lb)Nb.push(255&Pb.charCodeAt(Lb));return Nb}function Ua(Pb,Nb){var Lb,Rb,Yb,Ob=[];for(var Mb=0;Mb<Pb.length&&!(0>(Nb-=2));++Mb)Lb=Pb.charCodeAt(Mb),Rb=Lb>>8,Yb=Lb%256,Ob.push(Yb),Ob.push(Rb);return Ob}function Xa(Pb){return Te(Ra(Pb))}function Wa(Pb,Nb,Lb,Rb){for(var Yb=0;Yb<Rb&&!(Yb+Lb>=Nb.length||Yb>=Pb.length);++Yb)Nb[Yb+Lb]=Pb[Yb];return Yb}function Ja(Pb){return Pb!==Pb}function Za(Pb){return null!=Pb&&(!!Pb._isBuffer||Ka(Pb)||Qa(Pb))}function Ka(Pb){return!!Pb.constructor&&'function'==typeof Pb.constructor.isBuffer&&Pb.constructor.isBuffer(Pb)}function Qa(Pb){return'function'==typeof Pb.readFloatLE&&'function'==typeof Pb.slice&&Ka(Pb.slice(0,0))}function $a(){throw new Error('setTimeout has not been defined')}function Sn(){throw new Error('clearTimeout has not been defined')}function Tn(Pb){if($p===setTimeout)return setTimeout(Pb,0);if(($p===$a||!$p)&&setTimeout)return $p=setTimeout,setTimeout(Pb,0);try{return $p(Pb,0)}catch(Nb){try{return $p.call(null,Pb,0)}catch(Lb){return $p.call(this,Pb,0)}}}function _n(Pb){if(Sc===clearTimeout)return clearTimeout(Pb);if((Sc===Sn||!Sc)&&clearTimeout)return Sc=clearTimeout,clearTimeout(Pb);try{return Sc(Pb)}catch(Nb){try{return Sc.call(null,Pb)}catch(Lb){return Sc.call(this,Pb)}}}function Pn(){_c&&Pc&&(_c=!1,Pc.length?Tc=Pc.concat(Tc):Nc=-1,Tc.length&&Nn())}function Nn(){if(!_c){var Pb=Tn(Pn);_c=!0;for(var Nb=Tc.length;Nb;){for(Pc=Tc,Tc=[];++Nc<Nb;)Pc&&Pc[Nc].run();Nc=-1,Nb=Tc.length}Pc=null,_c=!1,_n(Pb)}}function Ln(Pb,Nb){var Lb={seen:[],stylize:Yn};return 3<=arguments.length&&(Lb.depth=arguments[2]),4<=arguments.length&&(Lb.colors=arguments[3]),Kn(Nb)?Lb.showHidden=Nb:Nb&&Mr(Lb,Nb),Tr(Lb.showHidden)&&(Lb.showHidden=!1),Tr(Lb.depth)&&(Lb.depth=2),Tr(Lb.colors)&&(Lb.colors=!1),Tr(Lb.customInspect)&&(Lb.customInspect=!0),Lb.colors&&(Lb.stylize=Rn),Mn(Lb,Pb,Lb.depth)}function Rn(Pb,Nb){var Lb=Ln.styles[Nb];return Lb?'\x1B['+Ln.colors[Lb][0]+'m'+Pb+'\x1B['+Ln.colors[Lb][1]+'m':Pb}function Yn(Pb){return Pb}function On(Pb){var Nb={};return Pb.forEach(function(Lb){Nb[Lb]=!0}),Nb}function Mn(Pb,Nb,Lb){if(Pb.customInspect&&Nb&&Rr(Nb.inspect)&&Nb.inspect!==Ln&&!(Nb.constructor&&Nb.constructor.prototype===Nb)){var Rb=Nb.inspect(Lb,Pb);return Sr(Rb)||(Rb=Mn(Pb,Rb,Lb)),Rb}var Yb=Vn(Pb,Nb);if(Yb)return Yb;var Ob=Object.keys(Nb),Mb=On(Ob);if(Pb.showHidden&&(Ob=Object.getOwnPropertyNames(Nb)),Lr(Nb)&&(0<=Ob.indexOf('message')||0<=Ob.indexOf('description')))return Un(Nb);if(0===Ob.length){if(Rr(Nb)){var Vb=Nb.name?': '+Nb.name:'';return Pb.stylize('[Function'+Vb+']','special')}if(_r(Nb))return Pb.stylize(RegExp.prototype.toString.call(Nb),'regexp');if(Nr(Nb))return Pb.stylize(Date.prototype.toString.call(Nb),'date');if(Lr(Nb))return Un(Nb)}var Ub='',Xb=!1,Wb=['{','}'];if(Zn(Nb)&&(Xb=!0,Wb=['[',']']),Rr(Nb)){var Jb=Nb.name?': '+Nb.name:'';Ub=' [Function'+Jb+']'}if(_r(Nb)&&(Ub=' '+RegExp.prototype.toString.call(Nb)),Nr(Nb)&&(Ub=' '+Date.prototype.toUTCString.call(Nb)),Lr(Nb)&&(Ub=' '+Un(Nb)),0===Ob.length&&(!Xb||0==Nb.length))return Wb[0]+Ub+Wb[1];if(0>Lb)return _r(Nb)?Pb.stylize(RegExp.prototype.toString.call(Nb),'regexp'):Pb.stylize('[Object]','special');Pb.seen.push(Nb);var Zb;return Zb=Xb?Xn(Pb,Nb,Lb,Mb,Ob):Ob.map(function(Kb){return Wn(Pb,Nb,Lb,Mb,Kb,Xb)}),Pb.seen.pop(),Jn(Zb,Ub,Wb)}function Vn(Pb,Nb){if(Tr(Nb))return Pb.stylize('undefined','undefined');if(Sr(Nb)){var Lb='\''+JSON.stringify(Nb).replace(/^"|"$/g,'').replace(/'/g,'\\\'').replace(/\\"/g,'"')+'\'';return Pb.stylize(Lb,'string')}return $n(Nb)?Pb.stylize(''+Nb,'number'):Kn(Nb)?Pb.stylize(''+Nb,'boolean'):Qn(Nb)?Pb.stylize('null','null'):void 0}function Un(Pb){return'['+Error.prototype.toString.call(Pb)+']'}function Xn(Pb,Nb,Lb,Rb,Yb){var Ob=[];for(var Mb=0,Vb=Nb.length;Mb<Vb;++Mb)Vr(Nb,Mb+'')?Ob.push(Wn(Pb,Nb,Lb,Rb,Mb+'',!0)):Ob.push('');return Yb.forEach(function(Ub){Ub.match(/^\d+$/)||Ob.push(Wn(Pb,Nb,Lb,Rb,Ub,!0))}),Ob}function Wn(Pb,Nb,Lb,Rb,Yb,Ob){var Mb,Vb,Ub;if(Ub=Object.getOwnPropertyDescriptor(Nb,Yb)||{value:Nb[Yb]},Ub.get?Ub.set?Vb=Pb.stylize('[Getter/Setter]','special'):Vb=Pb.stylize('[Getter]','special'):Ub.set&&(Vb=Pb.stylize('[Setter]','special')),Vr(Rb,Yb)||(Mb='['+Yb+']'),Vb||(0>Pb.seen.indexOf(Ub.value)?(Vb=Qn(Lb)?Mn(Pb,Ub.value,null):Mn(Pb,Ub.value,Lb-1),-1<Vb.indexOf('\n')&&(Ob?Vb=Vb.split('\n').map(function(Xb){return' '+Xb}).join('\n').substr(2):Vb='\n'+Vb.split('\n').map(function(Xb){return' '+Xb}).join('\n'))):Vb=Pb.stylize('[Circular]','special')),Tr(Mb)){if(Ob&&Yb.match(/^\d+$/))return Vb;Mb=JSON.stringify(''+Yb),Mb.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Mb=Mb.substr(1,Mb.length-2),Mb=Pb.stylize(Mb,'name')):(Mb=Mb.replace(/'/g,'\\\'').replace(/\\"/g,'"').replace(/(^"|"$)/g,'\''),Mb=Pb.stylize(Mb,'string'))}return Mb+': '+Vb}function Jn(Pb,Nb,Lb){var Rb=0,Yb=Pb.reduce(function(Ob,Mb){return Rb++,0<=Mb.indexOf('\n')&&Rb++,Ob+Mb.replace(/\u001b\[\d\d?m/g,'').length+1},0);return 60<Yb?Lb[0]+(''===Nb?'':Nb+'\n ')+' '+Pb.join(',\n ')+' '+Lb[1]:Lb[0]+Nb+' '+Pb.join(', ')+' '+Lb[1]}function Zn(Pb){return Array.isArray(Pb)}function Kn(Pb){return'boolean'==typeof Pb}function Qn(Pb){return null===Pb}function $n(Pb){return'number'==typeof Pb}function Sr(Pb){return'string'==typeof Pb}function Tr(Pb){return void 0===Pb}function _r(Pb){return Pr(Pb)&&'[object RegExp]'===Or(Pb)}function Pr(Pb){return'object'==typeof Pb&&null!==Pb}function Nr(Pb){return Pr(Pb)&&'[object Date]'===Or(Pb)}function Lr(Pb){return Pr(Pb)&&('[object Error]'===Or(Pb)||Pb instanceof Error)}function Rr(Pb){return'function'==typeof Pb}function Yr(Pb){return null===Pb||'boolean'==typeof Pb||'number'==typeof Pb||'string'==typeof Pb||'symbol'==typeof Pb||'undefined'==typeof Pb}function Or(Pb){return Object.prototype.toString.call(Pb)}function Mr(Pb,Nb){if(!Nb||!Pr(Nb))return Pb;for(var Lb=Object.keys(Nb),Rb=Lb.length;Rb--;)Pb[Lb[Rb]]=Nb[Lb[Rb]];return Pb}function Vr(Pb,Nb){return Object.prototype.hasOwnProperty.call(Pb,Nb)}function Ur(Pb,Nb){if(Pb===Nb)return 0;var Lb=Pb.length,Rb=Nb.length;for(var Yb=0,Ob=Math.min(Lb,Rb);Yb<Ob;++Yb)if(Pb[Yb]!==Nb[Yb]){Lb=Pb[Yb],Rb=Nb[Yb];break}return Lb<Rb?-1:Rb<Lb?1:0}function Xr(){return'undefined'==typeof Uc?Uc=function(){return'foo'===function(){}.name}():Uc}function Wr(Pb){return Object.prototype.toString.call(Pb)}function Jr(Pb){return!Za(Pb)&&!('function'!=typeof global.ArrayBuffer)&&('function'==typeof ArrayBuffer.isView?ArrayBuffer.isView(Pb):!!Pb&&(!!(Pb instanceof DataView)||Pb.buffer&&Pb.buffer instanceof ArrayBuffer))}function Zr(Pb,Nb){Pb||_s(Pb,!0,Nb,'==',Ps)}function Kr(Pb){if(Rr(Pb)){if(Xr())return Pb.name;var Nb=Pb.toString(),Lb=Nb.match(Xc);return Lb&&Lb[1]}}function Qr(Pb){this.name='AssertionError',this.actual=Pb.actual,this.expected=Pb.expected,this.operator=Pb.operator,Pb.message?(this.message=Pb.message,this.generatedMessage=!1):(this.message=Ts(this),this.generatedMessage=!0);var Nb=Pb.stackStartFunction||_s;if(Error.captureStackTrace)Error.captureStackTrace(this,Nb);else{var Lb=new Error;if(Lb.stack){var Rb=Lb.stack,Yb=Kr(Nb),Ob=Rb.indexOf('\n'+Yb);if(0<=Ob){var Mb=Rb.indexOf('\n',Ob+1);Rb=Rb.substring(Mb+1)}this.stack=Rb}}}function $r(Pb,Nb){return'string'==typeof Pb?Pb.length<Nb?Pb:Pb.slice(0,Nb):Pb}function Ss(Pb){if(Xr()||!Rr(Pb))return Ln(Pb);var Nb=Kr(Pb),Lb=Nb?': '+Nb:'';return'[Function'+Lb+']'}function Ts(Pb){return $r(Ss(Pb.actual),128)+' '+Pb.operator+' '+$r(Ss(Pb.expected),128)}function _s(Pb,Nb,Lb,Rb,Yb){throw new Qr({message:Lb,actual:Pb,expected:Nb,operator:Rb,stackStartFunction:Yb})}function Ps(Pb,Nb){Pb||_s(Pb,!0,Nb,'==',Ps)}function Ns(Pb,Nb,Lb){Pb!=Nb&&_s(Pb,Nb,Lb,'==',Ns)}function Is(Pb,Nb,Lb){Pb==Nb&&_s(Pb,Nb,Lb,'!=',Is)}function Ls(Pb,Nb,Lb){Ys(Pb,Nb,!1)||_s(Pb,Nb,Lb,'deepEqual',Ls)}function Rs(Pb,Nb,Lb){Ys(Pb,Nb,!0)||_s(Pb,Nb,Lb,'deepStrictEqual',Rs)}function Ys(Pb,Nb,Lb,Rb){if(Pb===Nb)return!0;if(Za(Pb)&&Za(Nb))return 0===Ur(Pb,Nb);if(Nr(Pb)&&Nr(Nb))return Pb.getTime()===Nb.getTime();if(_r(Pb)&&_r(Nb))return Pb.source===Nb.source&&Pb.global===Nb.global&&Pb.multiline===Nb.multiline&&Pb.lastIndex===Nb.lastIndex&&Pb.ignoreCase===Nb.ignoreCase;if((null===Pb||'object'!=typeof Pb)&&(null===Nb||'object'!=typeof Nb))return Lb?Pb==Nb:Pb==Nb;if(Jr(Pb)&&Jr(Nb)&&Wr(Pb)===Wr(Nb)&&!(Pb instanceof Float32Array||Pb instanceof Float64Array))return 0===Ur(new Uint8Array(Pb.buffer),new Uint8Array(Nb.buffer));if(Za(Pb)!==Za(Nb))return!1;Rb=Rb||{actual:[],expected:[]};var Yb=Rb.actual.indexOf(Pb);return-1!==Yb&&Yb===Rb.expected.indexOf(Nb)||(Rb.actual.push(Pb),Rb.expected.push(Nb),Ms(Pb,Nb,Lb,Rb))}function Os(Pb){return'[object Arguments]'==Object.prototype.toString.call(Pb)}function Ms(Pb,Nb,Lb,Rb){if(null===Pb||Pb===void 0||null===Nb||Nb===void 0)return!1;if(Yr(Pb)||Yr(Nb))return Pb===Nb;if(Lb&&Object.getPrototypeOf(Pb)!==Object.getPrototypeOf(Nb))return!1;var Yb=Os(Pb),Ob=Os(Nb);if(Yb&&!Ob||!Yb&&Ob)return!1;if(Yb)return Pb=Vc.call(Pb),Nb=Vc.call(Nb),Ys(Pb,Nb,Lb);var Mb=Mc(Pb),Vb=Mc(Nb),Ub,Xb;if(Mb.length!==Vb.length)return!1;for(Mb.sort(),Vb.sort(),Xb=Mb.length-1;0<=Xb;Xb--)if(Mb[Xb]!==Vb[Xb])return!1;for(Xb=Mb.length-1;0<=Xb;Xb--)if(Ub=Mb[Xb],!Ys(Pb[Ub],Nb[Ub],Lb,Rb))return!1;return!0}function Vs(Pb,Nb,Lb){Ys(Pb,Nb,!1)&&_s(Pb,Nb,Lb,'notDeepEqual',Vs)}function Us(Pb,Nb,Lb){Ys(Pb,Nb,!0)&&_s(Pb,Nb,Lb,'notDeepStrictEqual',Us)}function Xs(Pb,Nb,Lb){Pb!==Nb&&_s(Pb,Nb,Lb,'===',Xs)}function Ws(Pb,Nb,Lb){Pb===Nb&&_s(Pb,Nb,Lb,'!==',Ws)}function Js(Pb,Nb){if(!Pb||!Nb)return!1;if('[object RegExp]'==Object.prototype.toString.call(Nb))return Nb.test(Pb);try{if(Pb instanceof Nb)return!0}catch(Lb){}return!Error.isPrototypeOf(Nb)&&!0===Nb.call({},Pb)}function Zs(Pb){var Nb;try{Pb()}catch(Lb){Nb=Lb}return Nb}function Ks(Pb,Nb,Lb,Rb){var Yb;if('function'!=typeof Nb)throw new TypeError('"block" argument must be a function');'string'==typeof Lb&&(Rb=Lb,Lb=null),Yb=Zs(Nb),Rb=(Lb&&Lb.name?' ('+Lb.name+').':'.')+(Rb?' '+Rb:'.'),Pb&&!Yb&&_s(Yb,Lb,'Missing expected exception'+Rb);var Ob='string'==typeof Rb,Mb=!Pb&&Lr(Yb),Vb=!Pb&&Yb&&!Lb;if((Mb&&Ob&&Js(Yb,Lb)||Vb)&&_s(Yb,Lb,'Got unwanted exception'+Rb),Pb&&Yb&&Lb&&!Js(Yb,Lb)||!Pb&&Yb)throw Yb}function Qs(Pb,Nb,Lb){Ks(!0,Pb,Nb,Lb)}function $s(Pb,Nb,Lb){Ks(!1,Pb,Nb,Lb)}function Si(Pb){if(Pb)throw Pb}function Ti(Pb,Nb){for(const Lb=[Pb];0!==Lb.length;){const Yb=Lb.pop();if(void 0,'string'==typeof Yb){const Ob=Nb('string',Yb);if(Ob)return Ob}else{const Ob=Nb(Yb.type,Yb);if(Ob)return Ob;if('concat'===Yb.type)for(var Rb=Yb.parts.length-1;0<=Rb;Rb--)Lb.push(Yb.parts[Rb]);else'if-break'===Yb.type?(Yb.breakContents&&Lb.push(Yb.breakContents),Yb.flatContents&&Lb.push(Yb.flatContents)):'line'!==Yb.type&&Lb.push(Yb.contents)}}}function Pi(Pb){Tu('string'==typeof Pb||null!=Pb&&'string'==typeof Pb.type,'Value is a valid document')}function Ni(Pb){return Pb.forEach(Pi),{type:'concat',parts:Pb}}function Li(Pb,Nb){return Nb=Nb||{},Pi(Pb),{type:'group',contents:Pb,break:!!Nb.shouldBreak,expandedStates:Nb.expandedStates}}function Ri(Pb,Nb){0>Ui(Nb)-Ui(Pb)&&Wi(Pb,Ui(Nb)),0>Xi(Pb)-Xi(Nb)&&Ji(Pb,Xi(Nb))}function Yi(Pb){if(Pb)switch(Pb.type){case'ExportDeclaration':case'ExportDefaultDeclaration':case'ExportDefaultSpecifier':case'DeclareExportDeclaration':case'ExportNamedDeclaration':case'ExportAllDeclaration':return!0;}return!1}function Oi(Pb,Nb){for(;Nb<Pb.length;){if('\n'===Pb.charAt(Nb))return Nb+1;if('\r'===Pb.charAt(Nb)&&'\n'===Pb.charAt(Nb+1))return Nb+2;Nb++}return Nb}function Mi(Pb,Nb,Lb){const Rb=Pb.length;for(let Yb=Lb?Nb-1:Oi(Pb,Nb);0<Yb&&Yb<Rb;){const Ob=Pb.charAt(Yb);if(' '!==Ob&&'\t'!==Ob)return'\n'===Ob||'\r'===Ob;Lb?Yb--:Yb++}return!1}function Vi(Pb,Nb,Lb){const Rb=Pb.length;for(let Yb=Lb?Nb-1:Nb;0<Yb&&Yb<Rb;){const Ob=Pb.charAt(Yb);if(!Ob.match(/\S/))return Yb;Lb?Yb--:Yb++}return!1}function Ui(Pb){return Pb.range?Pb.range[0]:Pb.start}function Xi(Pb){return Pb.range?Pb.range[1]:Pb.end}function Wi(Pb,Nb){Pb.range?Pb.range[0]=Nb:Pb.start=Nb}function Ji(Pb,Nb){Pb.range?Pb.range[1]=Nb:Pb.end=Nb}function Zi(Pb,Nb){return Nb={exports:{}},Pb(Nb,Nb.exports),Nb.exports}function Ki(Pb,Nb,Lb){if(Pb){if(Zu.fixFaultyLocations(Pb,Nb),Lb){if(Mu.Node.check(Pb)){for(var Rb=Lb.length-1;0<=Rb&&!(0>=$u(Lb[Rb])-Qu(Pb));--Rb);return void Lb.splice(Rb+1,0,Pb)}}else if(Pb[Ku])return Pb[Ku];var Yb;if(Vu.check(Pb))Yb=Object.keys(Pb);else if(Uu.check(Pb))Yb=Ou.getFieldNames(Pb);else return;Lb||Object.defineProperty(Pb,Ku,{value:Lb=[],enumerable:!1});for(var Rb=0,Ob=Yb.length;Rb<Ob;++Rb)Ki(Pb[Yb[Rb]],Nb,Lb);return Lb}}function Qi(Pb,Nb,Lb){for(var Rb=Ki(Pb,Lb),Yb=0,Ob=Rb.length;Yb<Ob;){var Mb=Yb+Ob>>1,Vb=Rb[Mb];if(0>=Qu(Vb)-Qu(Nb)&&0>=$u(Nb)-$u(Vb))return Nb.enclosingNode=Vb,void Qi(Vb,Nb,Lb);if(0>=$u(Vb)-Qu(Nb)){var Ub=Vb;Yb=Mb+1;continue}if(0>=$u(Nb)-Qu(Vb)){var Xb=Vb;Ob=Mb;continue}throw new Error('Comment location overlaps with node location')}Ub&&(Nb.precedingNode=Ub),Xb&&(Nb.followingNode=Xb)}function $i(Pb,Nb){var Lb=Pb.length;if(0!==Lb){var Rb=Pb[0].precedingNode,Yb=Pb[0].followingNode,Ob=Qu(Yb);for(var Mb=Lb;0<Mb;--Mb){var Vb=Pb[Mb-1];Yu.strictEqual(Vb.precedingNode,Rb),Yu.strictEqual(Vb.followingNode,Yb);var Ub=Nb.slice($u(Vb),Ob);if(/\S/.test(Ub))break;Ob=Qu(Vb)}Pb.forEach(function(Xb,Wb){Wb<Mb?Po(Rb,Xb):To(Yb,Xb)}),Pb.length=0}}function So(Pb,Nb){var Lb=Pb.comments||(Pb.comments=[]);Lb.push(Nb)}function To(Pb,Nb){Nb.leading=!0,Nb.trailing=!1,So(Pb,Nb)}function _o(Pb,Nb){Nb.leading=!1,Nb.trailing=!1,So(Pb,Nb)}function Po(Pb,Nb){Nb.leading=!1,Nb.trailing=!0,So(Pb,Nb)}function No(Pb,Nb){var Lb=Pb.getValue();return Mu.Comment.assert(Lb),Wu([Nb(Pb),Ju])}function Lo(Pb,Nb,Lb){const Rb=Pb.getValue(Pb);Mu.Comment.assert(Rb);const Yb=Lb.originalText;return Wu([Zu.newlineExistsBefore(Yb,Qu(Rb))?Ju:' ',Nb(Pb)])}function Ro(Pb){Zm.ok(this instanceof Ro),this.stack=[Pb]}function Yo(Pb,Nb){var Lb=Pb.stack;for(var Rb=Lb.length-1;0<=Rb;Rb-=2){var Yb=Lb[Rb];if($m.Node.check(Yb)&&0>--Nb)return Yb}return null}function Oo(Pb){return $m.BinaryExpression.check(Pb)||$m.LogicalExpression.check(Pb)}function Mo(Pb){return!!$m.CallExpression.check(Pb)||(Sf.check(Pb)?Pb.some(Mo):!!$m.Node.check(Pb)&&Km.someField(Pb,function(Nb,Lb){return Mo(Lb)}))}function Vo(Pb,Nb,Lb){Rh.ok(Pb instanceof Oh);var Rb=Pb.getValue(),Yb=[],Ob=!1,Mb=Uo(Pb,Nb,Lb);return!Rb||Ry(Mb)?Mb:(Rb.decorators&&0<Rb.decorators.length&&!Mh.getParentExportDeclaration(Pb)?Pb.each(function(Vb){Yb.push(Lb(Vb),Jh)},'decorators'):Mh.isExportDeclaration(Rb)&&Rb.declaration&&Rb.declaration.decorators?Pb.each(function(Vb){Yb.push(Lb(Vb),Jh)},'declaration','decorators'):Ob=Pb.needsParens(),Ob&&Yb.unshift('('),Yb.push(Mb),Ob&&Yb.push(')'),Xh(Yb))}function Uo(Pb,Nb,Lb){var Rb=Pb.getValue();if(!Rb)return'';if('string'==typeof Rb)return Rb;var Yb=[];switch(Rb.type){case'File':return Pb.call(Lb,'program');case'Program':return Rb.directives&&Pb.each(function($g){Yb.push(Lb($g),';',Zh)},'directives'),Yb.push(Pb.call(function($g){return Xo($g,Nb,Lb)},'body')),Yb.push(Zh),Xh(Yb);case'Noop':case'EmptyStatement':return'';case'ExpressionStatement':return Xh([Pb.call(Lb,'expression'),';']);case'ParenthesizedExpression':return Xh(['(',Pb.call(Lb,'expression'),')']);case'AssignmentExpression':return $h(Xh([Pb.call(Lb,'left'),' ',Rb.operator,' ',Pb.call(Lb,'right')]));case'BinaryExpression':case'LogicalExpression':{const $g=[];return Ul(Pb,$g,Lb,Nb),$h(Xh([0<$g.length?$g[0]:'',Ty(Nb.tabWidth,Xh($g.slice(1)))]))}case'AssignmentPattern':return Xh([Pb.call(Lb,'left'),' = ',Pb.call(Lb,'right')]);case'MemberExpression':return Xh([Pb.call(Lb,'object'),Nl(Pb,Lb)]);case'MetaProperty':return Xh([Pb.call(Lb,'meta'),'.',Pb.call(Lb,'property')]);case'BindExpression':return Rb.object&&Yb.push(Pb.call(Lb,'object')),Yb.push('::',Pb.call(Lb,'callee')),Xh(Yb);case'Path':return Wh('.',Rb.body);case'Identifier':return Xh([Rb.name,Rb.optional?'?':'',Pb.call(Lb,'typeAnnotation')]);case'SpreadElement':case'SpreadElementPattern':case'RestProperty':case'SpreadProperty':case'SpreadPropertyPattern':case'RestElement':return Xh(['...',Pb.call(Lb,'argument'),Pb.call(Lb,'typeAnnotation')]);case'FunctionDeclaration':case'FunctionExpression':return Rb.async&&Yb.push('async '),Yb.push('function'),Rb.generator&&Yb.push('*'),Rb.id&&Yb.push(' ',Pb.call(Lb,'id')),Yb.push(Pb.call(Lb,'typeParameters'),Sy(Xh([Ko(Pb,Lb,Nb),$o(Pb,Lb)])),' ',Pb.call(Lb,'body')),Xh(Yb);case'ArrowFunctionExpression':Rb.async&&Yb.push('async '),Rb.typeParameters&&Yb.push(Pb.call(Lb,'typeParameters')),1!==Rb.params.length||Rb.rest||'Identifier'!==Rb.params[0].type||Rb.params[0].typeAnnotation||Rb.predicate||Rb.returnType?Yb.push(Sy(Xh([Ko(Pb,Lb,Nb),$o(Pb,Lb)]))):Yb.push(Pb.call(Lb,'params',0)),Yb.push(' =>');const Ug=Pb.call(Lb,'body'),Xg=Xh([Xh(Yb),' ',Ug]);return'ArrayExpression'===Rb.body.type||'ObjectExpression'===Rb.body.type||'JSXElement'===Rb.body.type?$h(Xg):_y([Xg,Xh([Xh(Yb),Ty(Nb.tabWidth,Xh([Jh,Ug]))])]);case'MethodDefinition':return Rb.static&&Yb.push('static '),Yb.push(Jo(Pb,Nb,Lb)),Xh(Yb);case'YieldExpression':return Yb.push('yield'),Rb.delegate&&Yb.push('*'),Rb.argument&&Yb.push(' ',Pb.call(Lb,'argument')),Xh(Yb);case'AwaitExpression':return Yb.push('await'),Rb.all&&Yb.push('*'),Rb.argument&&Yb.push(' ',Pb.call(Lb,'argument')),Xh(Yb);case'ModuleDeclaration':return Yb.push('module',Pb.call(Lb,'id')),Rb.source?(Rh.ok(!Rb.body),Yb.push('from',Pb.call(Lb,'source'))):Yb.push(Pb.call(Lb,'body')),Wh(' ',Yb);case'ImportSpecifier':return Rb.imported?(Yb.push(Pb.call(Lb,'imported')),Rb.local&&Rb.local.name!==Rb.imported.name&&Yb.push(' as ',Pb.call(Lb,'local'))):Rb.id&&(Yb.push(Pb.call(Lb,'id')),Rb.name&&Yb.push(' as ',Pb.call(Lb,'name'))),Xh(Yb);case'ExportSpecifier':return Rb.local?(Yb.push(Pb.call(Lb,'local')),Rb.exported&&Rb.exported.name!==Rb.local.name&&Yb.push(' as ',Pb.call(Lb,'exported'))):Rb.id&&(Yb.push(Pb.call(Lb,'id')),Rb.name&&Yb.push(' as ',Pb.call(Lb,'name'))),Xh(Yb);case'ExportBatchSpecifier':return'*';case'ImportNamespaceSpecifier':return Yb.push('* as '),Rb.local?Yb.push(Pb.call(Lb,'local')):Rb.id&&Yb.push(Pb.call(Lb,'id')),Xh(Yb);case'ImportDefaultSpecifier':return Rb.local?Pb.call(Lb,'local'):Pb.call(Lb,'id');case'ExportDeclaration':case'ExportDefaultDeclaration':case'ExportNamedDeclaration':return Tl(Pb,Nb,Lb);case'ExportAllDeclaration':return Yb.push('export *'),Rb.exported&&Yb.push(' as ',Pb.call(Lb,'exported')),Yb.push(' from ',Pb.call(Lb,'source'),';'),Xh(Yb);case'ExportNamespaceSpecifier':return Xh(['* as ',Pb.call(Lb,'exported')]);case'ExportDefaultSpecifier':return Pb.call(Lb,'exported');case'ImportDeclaration':if(Yb.push('import '),Rb.importKind&&'value'!==Rb.importKind&&Yb.push(Rb.importKind+' '),Rb.specifiers&&0<Rb.specifiers.length){var Ob=[],Mb=[];Pb.each(function($g){var Sx=$g.getValue();Oy.ImportDefaultSpecifier.check(Sx)||Oy.ImportNamespaceSpecifier.check(Sx)?Ob.push(Lb($g)):Mb.push(Lb($g))},'specifiers'),Rh.ok(1>=Ob.length),0<Ob.length&&Yb.push(Ob[0]),0<Ob.length&&0<Mb.length&&Yb.push(', '),0<Mb.length&&Yb.push(Sy(Xh(['{',Ty(Nb.tabWidth,Xh([Nb.bracketSpacing?Jh:Kh,Wh(Xh([',',Jh]),Mb)])),Py(Nb.trailingComma?',':''),Nb.bracketSpacing?Jh:Kh,'}']))),Yb.push(' from ')}return Yb.push(Pb.call(Lb,'source'),';'),Xh(Yb);case'BlockStatement':var Vb=Pb.call(function($g){return Xo($g,Nb,Lb)},'body');const Wg=Ly(Vb),Jg=Rb.directives&&0<Rb.directives.length;return Yb.push('{'),Jg&&Pb.each(function($g){Yb.push(Ty(Nb.tabWidth,Xh([Zh,Lb($g),';'])))},'directives'),Wg?Yb.push(Ty(Nb.tabWidth,Xh([Zh,Vb]))):Rb.comments&&Yb.push(Ty(Nb.tabWidth,Yh.printDanglingComments(Pb,Lb,Nb))),Yb.push(Zh,'}'),Xh(Yb);case'ReturnStatement':return Yb.push('return'),Rb.argument&&Yb.push(' ',Pb.call(Lb,'argument')),Yb.push(';'),Xh(Yb);case'CallExpression':{if(Pb.getParentNode(),'MemberExpression'===Rb.callee.type){const $g=Ll(Rb,Nb,Lb);if($g)return $g}return Xh([Pb.call(Lb,'callee'),Zo(Pb,Nb,Lb)])}case'ObjectExpression':case'ObjectPattern':case'ObjectTypeAnnotation':var Ub='ObjectTypeAnnotation'===Rb.type,Xb=Ub?',':',',Wb=[],Jb=Rb.exact?'{|':'{',Zb=Rb.exact?'|}':'}';Ub&&Wb.push('indexers','callProperties'),Wb.push('properties');var Kb=[];return Wb.forEach(function($g){Pb.each(function(Sx){Kb.push($h(Lb(Sx)))},$g)}),0===Kb.length?'{}':Sy(Xh([Jb,Ty(Nb.tabWidth,Xh([Nb.bracketSpacing?Jh:Kh,Wh(Xh([Xb,Jh]),Kb)])),Py(Nb.trailingComma?',':''),Nb.bracketSpacing?Jh:Kh,Zb,Pb.call(Lb,'typeAnnotation')]));case'PropertyPattern':return Xh([Pb.call(Lb,'key'),': ',Pb.call(Lb,'pattern')]);case'ObjectProperty':case'Property':return Rb.method||'get'===Rb.kind||'set'===Rb.kind?Jo(Pb,Nb,Lb):(Rb.shorthand?Yb.push(Pb.call(Lb,'value')):(Rb.computed?Yb.push('[',Pb.call(Lb,'key'),']'):Yb.push(Wo(Pb,Nb,Lb)),Yb.push(': ',Pb.call(Lb,'value'))),Xh(Yb));case'ClassMethod':return Rb.static&&Yb.push('static '),Yb=Yb.concat(Qo(Pb,Nb,Lb)),Xh(Yb);case'ObjectMethod':return Qo(Pb,Nb,Lb);case'Decorator':return Xh(['@',Pb.call(Lb,'expression')]);case'ArrayExpression':case'ArrayPattern':if(0===Rb.elements.length)Yb.push('[]');else{const $g=null===Mh.getLast(Rb.elements);Yb.push(Sy(Xh(['[',Ty(Nb.tabWidth,Xh([Nb.bracketSpacing?Jh:Kh,Wh(Xh([',',Jh]),Pb.map(Lb,'elements'))])),$g?',':'',Py(Nb.trailingComma?',':''),Nb.bracketSpacing?Jh:Kh,']'])))}return Rb.typeAnnotation&&Yb.push(Pb.call(Lb,'typeAnnotation')),Xh(Yb);case'SequenceExpression':return Wh(', ',Pb.map(Lb,'expressions'));case'ThisExpression':return'this';case'Super':return'super';case'NullLiteral':return'null';case'RegExpLiteral':return Rb.extra.raw;case'NumericLiteral':return Rb.extra.raw;case'BooleanLiteral':case'StringLiteral':case'Literal':return'number'==typeof Rb.value?Rb.raw:'string'==typeof Rb.value?Zl(Rb,Nb):''+Rb.value;case'Directive':return Pb.call(Lb,'value');case'DirectiveLiteral':return Zl(Rb,Nb);case'ModuleSpecifier':if(Rb.local)throw new Error('The ESTree ModuleSpecifier type should be abstract');return Zl(Rb,Nb);case'UnaryExpression':return Yb.push(Rb.operator),/[a-z]$/.test(Rb.operator)&&Yb.push(' '),Yb.push(Pb.call(Lb,'argument')),Xh(Yb);case'UpdateExpression':return Yb.push(Pb.call(Lb,'argument'),Rb.operator),Rb.prefix&&Yb.reverse(),Xh(Yb);case'ConditionalExpression':return $h(Xh([Pb.call(Lb,'test'),Ty(Nb.tabWidth,Xh([Jh,'? ',Pb.call(Lb,'consequent'),Jh,': ',Pb.call(Lb,'alternate')]))]));case'NewExpression':Yb.push('new ',Pb.call(Lb,'callee'));var Qb=Rb.arguments;return Qb&&Yb.push(Zo(Pb,Nb,Lb)),Xh(Yb);case'VariableDeclaration':var $b=Pb.map(function($g){return Lb($g)},'declarations');Yb=[Rb.kind,' ',$b[0],Ty(Nb.tabWidth,Xh($b.slice(1).map($g=>Xh([',',Jh,$g]))))];var Sg=Pb.getParentNode();return Oy.ForStatement.check(Sg)||Oy.ForInStatement.check(Sg)||Oy.ForOfStatement&&Oy.ForOfStatement.check(Sg)||Oy.ForAwaitStatement&&Oy.ForAwaitStatement.check(Sg)||Yb.push(';'),Sy(Xh(Yb));case'VariableDeclarator':return Rb.init?Xh([Pb.call(Lb,'id'),' = ',Pb.call(Lb,'init')]):Pb.call(Lb,'id');case'WithStatement':return Xh(['with (',Pb.call(Lb,'object'),')',Xl(Pb.call(Lb,'body'),Nb)]);case'IfStatement':const Zg=Xl(Pb.call(Lb,'consequent'),Nb);if(Yb=['if (',$h(Xh([Ty(Nb.tabWidth,Xh([Kh,Pb.call(Lb,'test')])),Kh])),')',Zg],Rb.alternate){const $g=Wl(Zg),Sx=Jl(Zg);$g&&!Sx?Yb.push(' else'):Yb.push(Xh([Zh,'else'])),Yb.push(Xl(Pb.call(Lb,'alternate'),Nb,'IfStatement'===Rb.alternate.type))}return $h(Xh(Yb));case'ForStatement':{const $g=Xl(Pb.call(Lb,'body'),Nb);return Rb.init||Rb.test||Rb.update?Xh(['for (',$h(Xh([Ty(Nb.tabWidth,Xh([Kh,Pb.call(Lb,'init'),';',Jh,Pb.call(Lb,'test'),';',Jh,Pb.call(Lb,'update')])),Kh])),')',$g]):Xh(['for (;;)',$g])}case'WhileStatement':return Xh(['while (',$h(Xh([Ty(Nb.tabWidth,Xh([Kh,Pb.call(Lb,'test')])),Kh])),')',Xl(Pb.call(Lb,'body'),Nb)]);case'ForInStatement':return Xh([Rb.each?'for each (':'for (',Pb.call(Lb,'left'),' in ',Pb.call(Lb,'right'),')',Xl(Pb.call(Lb,'body'),Nb)]);case'ForOfStatement':return Xh(['for (',Pb.call(Lb,'left'),' of ',Pb.call(Lb,'right'),')',Xl(Pb.call(Lb,'body'),Nb)]);case'ForAwaitStatement':return Xh(['for await (',Pb.call(Lb,'left'),' of ',Pb.call(Lb,'right'),')',Xl(Pb.call(Lb,'body'),Nb)]);case'DoWhileStatement':var Tg=Xl(Pb.call(Lb,'body'),Nb),_g=Xh(['do',Tg]),Yb=[_g];const Kg=Wl(Tg);return Kg?Yb.push(' while'):Yb.push(Xh([Jh,'while'])),Yb.push(' (',Pb.call(Lb,'test'),');'),Xh(Yb);case'DoExpression':var Pg=Pb.call(function($g){return Xo($g,Nb,Lb)},'body');return Xh(['do {\n',Pg.indent(Nb.tabWidth),'\n}']);case'BreakStatement':return Yb.push('break'),Rb.label&&Yb.push(' ',Pb.call(Lb,'label')),Yb.push(';'),Xh(Yb);case'ContinueStatement':return Yb.push('continue'),Rb.label&&Yb.push(' ',Pb.call(Lb,'label')),Yb.push(';'),Xh(Yb);case'LabeledStatement':return Xh([Pb.call(Lb,'label'),':',Zh,Pb.call(Lb,'body')]);case'TryStatement':return Yb.push('try ',Pb.call(Lb,'block')),Rb.handler?Yb.push(' ',Pb.call(Lb,'handler')):Rb.handlers&&Pb.each(function($g){Yb.push(' ',Lb($g))},'handlers'),Rb.finalizer&&Yb.push(' finally ',Pb.call(Lb,'finalizer')),Xh(Yb);case'CatchClause':return Yb.push('catch (',Pb.call(Lb,'param')),Rb.guard&&Yb.push(' if ',Pb.call(Lb,'guard')),Yb.push(') ',Pb.call(Lb,'body')),Xh(Yb);case'ThrowStatement':return Xh(['throw ',Pb.call(Lb,'argument'),';']);case'SwitchStatement':return Xh(['switch (',Pb.call(Lb,'discriminant'),') {',Ty(Nb.tabWidth,Xh([Zh,Wh(Zh,Pb.map(Lb,'cases'))])),Zh,'}']);case'SwitchCase':if(Rb.test?Yb.push('case ',Pb.call(Lb,'test'),':'):Yb.push('default:'),0<Rb.consequent.length){const $g=Pb.call(function(Sx){return Xo(Sx,Nb,Lb)},'consequent');Yb.push(Wl($g)?Xh([' ',$g]):Ty(Nb.tabWidth,Xh([Zh,$g])))}return Xh(Yb);case'DebuggerStatement':return'debugger;';case'JSXAttribute':if(Yb.push(Pb.call(Lb,'name')),Rb.value){let $g;$g=('StringLiteral'===Rb.value.type||'Literal'===Rb.value.type)&&'string'==typeof Rb.value.value?'"'+Mh.htmlEscapeInsideDoubleQuote(Rb.value.value)+'"':Pb.call(Lb,'value'),Yb.push('=',$g)}return Xh(Yb);case'JSXIdentifier':return''+Rb.name;case'JSXNamespacedName':return Wh(':',[Pb.call(Lb,'namespace'),Pb.call(Lb,'name')]);case'JSXMemberExpression':return Wh('.',[Pb.call(Lb,'object'),Pb.call(Lb,'property')]);case'JSXSpreadAttribute':return Xh(['{...',Pb.call(Lb,'argument'),'}']);case'JSXExpressionContainer':const Qg='ArrayExpression'!==Rb.expression.type&&'ObjectExpression'!==Rb.expression.type&&'ArrowFunctionExpression'!==Rb.expression.type&&'CallExpression'!==Rb.expression.type&&'FunctionExpression'!==Rb.expression.type;return Qg?Sy(Xh(['{',Ty(Nb.tabWidth,Xh([Kh,Pb.call(Lb,'expression')])),Kh,'}'])):Xh(['{',Pb.call(Lb,'expression'),'}']);case'JSXElement':{const $g=Ol(Pb,Nb,Lb);return Ml(Pb,$g,Nb)}case'JSXOpeningElement':return $h(Xh(['<',Pb.call(Lb,'name'),Sy(Xh([Ty(Nb.tabWidth,Xh(Pb.map($g=>Xh([Jh,Lb($g)]),'attributes'))),Rb.selfClosing?Jh:Kh])),Rb.selfClosing?'/>':'>']));case'JSXClosingElement':return Xh(['</',Pb.call(Lb,'name'),'>']);case'JSXText':throw new Error('JSXTest should be handled by JSXElement');case'JSXEmptyExpression':return'';case'TypeAnnotatedIdentifier':return Xh([Pb.call(Lb,'annotation'),' ',Pb.call(Lb,'identifier')]);case'ClassBody':return 0===Rb.body.length?'{}':Xh(['{',Ty(Nb.tabWidth,Xh([Zh,Pb.call(function($g){return Xo($g,Nb,Lb)},'body')])),Zh,'}']);case'ClassPropertyDefinition':return Yb.push('static ',Pb.call(Lb,'definition')),Oy.MethodDefinition.check(Rb.definition)||Yb.push(';'),Xh(Yb);case'ClassProperty':Rb.static&&Yb.push('static ');var Ng;return Rb.computed?Ng=Xh(['[',Pb.call(Lb,'key'),']']):(Ng=Wo(Pb,Nb,Lb),'plus'===Rb.variance?Ng=Xh(['+',Ng]):'minus'===Rb.variance&&(Ng=Xh(['-',Ng]))),Yb.push(Ng),Rb.typeAnnotation&&Yb.push(Pb.call(Lb,'typeAnnotation')),Rb.value&&Yb.push(' = ',Pb.call(Lb,'value')),Yb.push(';'),Xh(Yb);case'ClassDeclaration':case'ClassExpression':return Xh(Pl(Pb,Lb));case'TemplateElement':return Wh(Qh,Rb.value.raw.split('\n'));case'TemplateLiteral':var Lg=Pb.map(Lb,'expressions');return Yb.push('`'),Pb.each(function($g){var Sx=$g.getName();Yb.push(Lb($g)),Sx<Lg.length&&Yb.push('${',Lg[Sx],'}')},'quasis'),Yb.push('`'),Xh(Yb);case'TaggedTemplateExpression':return Xh([Pb.call(Lb,'tag'),Pb.call(Lb,'quasi')]);case'Node':case'Printable':case'SourceLocation':case'Position':case'Statement':case'Function':case'Pattern':case'Expression':case'Declaration':case'Specifier':case'NamedSpecifier':case'Comment':case'MemberTypeAnnotation':case'Type':throw new Error('unprintable type: '+JSON.stringify(Rb.type));case'CommentBlock':case'Block':return Xh(['/*',Rb.value,'*/']);case'CommentLine':case'Line':return Xh(['//',Rb.value]);case'TypeAnnotation':return Rb.typeAnnotation?('FunctionTypeAnnotation'!==Rb.typeAnnotation.type&&Yb.push(': '),Yb.push(Pb.call(Lb,'typeAnnotation')),Xh(Yb)):'';case'TupleTypeAnnotation':return Xh(['[',Wh(', ',Pb.map(Lb,'types')),']']);case'ExistentialTypeParam':case'ExistsTypeAnnotation':return'*';case'EmptyTypeAnnotation':return'empty';case'AnyTypeAnnotation':return'any';case'MixedTypeAnnotation':return'mixed';case'ArrayTypeAnnotation':return Xh([Pb.call(Lb,'elementType'),'[]']);case'BooleanTypeAnnotation':return'boolean';case'NumericLiteralTypeAnnotation':case'BooleanLiteralTypeAnnotation':return''+Rb.value;case'DeclareClass':return _l(Pb,Pl(Pb,Lb));case'DeclareFunction':return _l(Pb,['function ',Pb.call(Lb,'id'),Rb.predicate?' ':'',Pb.call(Lb,'predicate'),';']);case'DeclareModule':return _l(Pb,['module ',Pb.call(Lb,'id'),' ',Pb.call(Lb,'body')]);case'DeclareModuleExports':return _l(Pb,['module.exports',Pb.call(Lb,'typeAnnotation'),';']);case'DeclareVariable':return _l(Pb,['var ',Pb.call(Lb,'id'),';']);case'DeclareExportAllDeclaration':return Xh(['declare export * from ',Pb.call(Lb,'source')]);case'DeclareExportDeclaration':return Xh(['declare ',Tl(Pb,Nb,Lb)]);case'FunctionTypeAnnotation':var Rg=Pb.getParentNode(0),Yg=!(!Rg.variance&&!Rg.optional&&Oy.ObjectTypeProperty.check(Rg)||Oy.ObjectTypeCallProperty.check(Rg)||Oy.DeclareFunction.check(Pb.getParentNode(2))),Og=Yg&&Oy.TypeAnnotation.check(Rg);return Og&&Yb.push(': '),Yb.push(Pb.call(Lb,'typeParameters')),Yb.push(Sy(Ko(Pb,Lb,Nb))),(Rb.returnType||Rb.predicate)&&Yb.push(Yg?' => ':': ',Pb.call(Lb,'returnType'),Pb.call(Lb,'predicate')),Xh(Yb);case'FunctionTypeParam':return Xh([Pb.call(Lb,'name'),Rb.optional?'?':'',Rb.name?': ':'',Pb.call(Lb,'typeAnnotation')]);case'GenericTypeAnnotation':return Xh([Pb.call(Lb,'id'),Pb.call(Lb,'typeParameters')]);case'DeclareInterface':case'InterfaceDeclaration':{const $g=Pb.getParentNode(1);return $g&&'DeclareModule'===$g.type&&Yb.push('declare '),Yb.push('interface ',Pb.call(Lb,'id'),Pb.call(Lb,'typeParameters'),' '),0<Rb['extends'].length&&Yb.push('extends ',Wh(', ',Pb.map(Lb,'extends')),' '),Yb.push(Pb.call(Lb,'body')),Xh(Yb)}case'ClassImplements':case'InterfaceExtends':return Xh([Pb.call(Lb,'id'),Pb.call(Lb,'typeParameters')]);case'IntersectionTypeAnnotation':case'UnionTypeAnnotation':{const $g=Pb.map(Lb,'types'),Sx='IntersectionTypeAnnotation'===Rb.type?'&':'|';return _y([Xh([Ty(Nb.tabWidth,Xh([$g[0],Ty(Nb.tabWidth,Xh($g.slice(1).map(Tx=>Xh([' ',Sx,Jh,Tx]))))]))]),Xh([Ty(Nb.tabWidth,Xh($g.map(Tx=>Xh([Jh,Sx,' ',Tx]))))])])}case'NullableTypeAnnotation':return Xh(['?',Pb.call(Lb,'typeAnnotation')]);case'NullLiteralTypeAnnotation':return'null';case'ThisTypeAnnotation':return'this';case'NumberTypeAnnotation':return'number';case'ObjectTypeCallProperty':return Rb.static&&Yb.push('static '),Yb.push(Pb.call(Lb,'value')),Xh(Yb);case'ObjectTypeIndexer':var Mg='plus'===Rb.variance?'+':'minus'===Rb.variance?'-':'';return Xh([Mg,'[',Pb.call(Lb,'id'),Rb.id?': ':'',Pb.call(Lb,'key'),']: ',Pb.call(Lb,'value')]);case'ObjectTypeProperty':var Mg='plus'===Rb.variance?'+':'minus'===Rb.variance?'-':'',Vg=!Rb.variance&&!Rb.optional&&'FunctionTypeAnnotation'===Rb.value.type;return Xh([Rb.static?'static ':'',Mg,Pb.call(Lb,'key'),Rb.optional?'?':'',Vg?'':': ',Pb.call(Lb,'value')]);case'QualifiedTypeIdentifier':return Xh([Pb.call(Lb,'qualification'),'.',Pb.call(Lb,'id')]);case'StringLiteralTypeAnnotation':return Zl(Rb,Nb);case'NumberLiteralTypeAnnotation':return Rh.strictEqual(typeof Rb.value,'number'),''+Rb.value;case'StringTypeAnnotation':return'string';case'DeclareTypeAlias':case'TypeAlias':{const $g=Pb.getParentNode(1);return $g&&'DeclareModule'===$g.type&&Yb.push('declare '),Yb.push('type ',Pb.call(Lb,'id'),Pb.call(Lb,'typeParameters'),' = ',Pb.call(Lb,'right'),';'),Xh(Yb)}case'TypeCastExpression':return Xh(['(',Pb.call(Lb,'expression'),Pb.call(Lb,'typeAnnotation'),')']);case'TypeParameterDeclaration':case'TypeParameterInstantiation':return Xh(['<',Wh(', ',Pb.map(Lb,'params')),'>']);case'TypeParameter':switch(Rb.variance){case'plus':Yb.push('+');break;case'minus':Yb.push('-');break;default:}return Yb.push(Pb.call(Lb,'name')),Rb.bound&&Yb.push(Pb.call(Lb,'bound')),Rb['default']&&Yb.push('=',Pb.call(Lb,'default')),Xh(Yb);case'TypeofTypeAnnotation':return Xh(['typeof ',Pb.call(Lb,'argument')]);case'VoidTypeAnnotation':return'void';case'NullTypeAnnotation':return'null';case'InferredPredicate':return'%checks';case'DeclaredPredicate':return Xh(['%checks(',Pb.call(Lb,'value'),')']);case'ClassHeritage':case'ComprehensionBlock':case'ComprehensionExpression':case'Glob':case'GeneratorExpression':case'LetStatement':case'LetExpression':case'GraphExpression':case'GraphIndexExpression':case'XMLDefaultDeclaration':case'XMLAnyName':case'XMLQualifiedIdentifier':case'XMLFunctionQualifiedIdentifier':case'XMLAttributeSelector':case'XMLFilterExpression':case'XML':case'XMLElement':case'XMLList':case'XMLEscape':case'XMLText':case'XMLStartTag':case'XMLEndTag':case'XMLPointTag':case'XMLName':case'XMLAttribute':case'XMLCdata':case'XMLComment':case'XMLProcessingInstruction':default:debugger;throw new Error('unknown type: '+JSON.stringify(Rb.type));}return p}function Xo(Pb,Nb,Lb){let Rb=[];return Pb.map(function(Yb){var Ob=Yb.getValue();if(Ob&&'EmptyStatement'!==Ob.type){const Mb=Lb(Yb),Vb=Nb.originalText,Ub=[];Ub.push(Mb),Mh.newlineExistsAfter(Vb,Mh.locEnd(Ob))&&!Kl(Yb)&&Ub.push(Zh),Rb.push(Xh(Ub))}}),Wh(Zh,Rb)}function Wo(Pb,Nb,Lb){var Rb=Pb.getNode().key;return('StringLiteral'===Rb.type||'Literal'===Rb.type&&'string'==typeof Rb.value)&&Vh(Rb.value)&&('flow'!==Nb.parser||Rb.value.match(/[a-zA-Z0-9$_]/))?Rb.value:Pb.call(Lb,'key')}function Jo(Pb,Nb,Lb){var Rb=Pb.getNode(),Yb=Rb.kind,Ob=[];'ObjectMethod'===Rb.type||'ClassMethod'===Rb.type?Rb.value=Rb:Oy.FunctionExpression.assert(Rb.value),Rb.value.async&&Ob.push('async '),Yb&&'init'!==Yb&&'method'!==Yb&&'constructor'!==Yb?(Rh.ok('get'===Yb||'set'===Yb),Ob.push(Yb,' ')):Rb.value.generator&&Ob.push('*');var Mb=Wo(Pb,Nb,Lb);return Rb.computed&&(Mb=Xh(['[',Mb,']'])),Ob.push(Mb,Pb.call(Lb,'value','typeParameters'),Sy(Xh([Pb.call(function(Vb){return Ko(Vb,Lb,Nb)},'value'),Pb.call(Vb=>$o(Vb,Lb),'value')])),' ',Pb.call(Lb,'value','body')),Xh(Ob)}function Zo(Pb,Nb,Lb){var Rb=Pb.map(Lb,'arguments');if(0===Rb.length)return'()';const Yb=Mh.getLast(Pb.getValue().arguments),Ob='ObjectExpression'===Yb.type||'ArrayExpression'===Yb.type||'FunctionExpression'===Yb.type||'ArrowFunctionExpression'===Yb.type&&('BlockStatement'===Yb.body.type||'ArrowFunctionExpression'===Yb.body.type||'ObjectExpression'===Yb.body.type||'ArrayExpression'===Yb.body.type||'JSXElement'===Yb.body.type)||'NewExpression'===Yb.type;if(Ob){const Mb=Rb.slice(0,-1).some(Iy);return _y([Xh(['(',Wh(Xh([', ']),Rb),')']),Xh(['(',Wh(Xh([',',Jh]),Rb.slice(0,-1)),1<Rb.length?', ':'',$h(Mh.getLast(Rb),{shouldBreak:!0}),')']),$h(Xh(['(',Ty(Nb.tabWidth,Xh([Jh,Wh(Xh([',',Jh]),Rb)])),Nb.trailingComma?',':'',Jh,')']),{shouldBreak:!0})],{shouldBreak:Mb})}return Sy(Xh(['(',Ty(Nb.tabWidth,Xh([Kh,Wh(Xh([',',Jh]),Rb)])),Py(Nb.trailingComma?',':''),Kh,')']))}function Ko(Pb,Nb,Lb){var Rb=Pb.getValue(),Yb=Pb.map(Nb,'params');if(Rb.defaults&&Pb.each(function(Vb){var Ub=Vb.getName(),Xb=Yb[Ub];Xb&&Vb.getValue()&&(Yb[Ub]=Xh([Xb,' = ',Nb(Vb)]))},'defaults'),Rb.rest&&Yb.push(Xh(['...',Pb.call(Nb,'rest')])),0===Yb.length)return'()';const Ob=Mh.getLast(Pb.getValue().params),Mb=!(Ob&&'RestElement'===Ob.type)&&!Rb.rest;return Xh(['(',Ty(Lb.tabWidth,Xh([Kh,Wh(Xh([',',Jh]),Yb)])),Py(Mb&&Lb.trailingComma?',':''),Kh,')'])}function Qo(Pb,Nb,Lb){var Rb=Pb.getValue(),Yb=[];if(Rb.async&&Yb.push('async '),Rb.generator&&Yb.push('*'),Rb.method||'get'===Rb.kind||'set'===Rb.kind)return Jo(Pb,Nb,Lb);var Ob=Wo(Pb,Nb,Lb);return Rb.computed?Yb.push('[',Ob,']'):Yb.push(Ob),Rb.typeParameters&&Yb.push(Pb.call(Lb,'typeParameters')),Yb.push(Sy(Xh([Ko(Pb,Lb,Nb),$o(Pb,Lb)])),' ',Pb.call(Lb,'body')),Xh(Yb)}function $o(Pb,Nb){const Lb=Pb.getValue(),Rb=[Pb.call(Nb,'returnType')];return Lb.predicate&&Rb.push(Lb.returnType?' ':': ',Pb.call(Nb,'predicate')),Xh(Rb)}function Sl(Pb){return'FunctionExpression'===Pb||'ArrowFunctionExpression'===Pb||'NewExpression'===Pb}function Tl(Pb,Nb,Lb){var Rb=Pb.getValue(),Yb=['export '];return Oy.Declaration.assert(Rb),(Rb['default']||'ExportDefaultDeclaration'===Rb.type)&&Yb.push('default '),Rb.declaration?(Yb.push(Pb.call(Lb,'declaration')),'ExportDefaultDeclaration'===Rb.type&&'ClassDeclaration'!==Rb.declaration.type&&'FunctionDeclaration'!==Rb.declaration.type&&'FunctionExpression'!==Rb.declaration.type&&Yb.push(';')):(Rb.specifiers&&0<Rb.specifiers.length?1===Rb.specifiers.length&&'ExportBatchSpecifier'===Rb.specifiers[0].type?Yb.push('*'):Yb.push('type'===Rb.exportKind?'type ':'',Sy(Xh(['{',Ty(Nb.tabWidth,Xh([Nb.bracketSpacing?Jh:Kh,Wh(Xh([',',Jh]),Pb.map(Lb,'specifiers'))])),Py(Nb.trailingComma?',':''),Nb.bracketSpacing?Jh:Kh,'}']))):Yb.push('{}'),Rb.source&&Yb.push(' from ',Pb.call(Lb,'source')),Yb.push(';')),Xh(Yb)}function _l(Pb,Nb){var Lb=Mh.getParentExportDeclaration(Pb);return Lb?Rh.strictEqual(Lb.type,'DeclareExportDeclaration'):Nb.unshift('declare '),Xh(Nb)}function Pl(Pb,Nb){const Lb=Pb.getValue(),Rb=['class'];return Lb.id&&Rb.push(' ',Pb.call(Nb,'id'),Pb.call(Nb,'typeParameters')),Lb.superClass?Rb.push(' extends ',Pb.call(Nb,'superClass'),Pb.call(Nb,'superTypeParameters')):Lb.extends&&0<Lb.extends.length&&Rb.push(' extends ',Wh(', ',Pb.map(Nb,'extends'))),Lb['implements']&&0<Lb['implements'].length&&Rb.push(' implements ',Wh(', ',Pb.map(Nb,'implements'))),Rb.push(' ',Pb.call(Nb,'body')),Rb}function Nl(Pb,Nb){const Lb=Pb.call(Nb,'property'),Rb=Pb.getValue();return Xh(Rb.computed?['[',Lb,']']:['.',Lb])}function Ll(Pb,Nb,Lb){function Rb(Xb){if(0<Xb.arguments.length){const Wb=Xb.arguments[0].type;return Sl(Wb)}return!1}const Yb=[];let Ob=Pb,Mb=null;for(;'CallExpression'===Ob.type&&'MemberExpression'===Ob.callee.type;)Yb.push({member:Ob.callee,call:Ob}),Mb=Ob,Ob=Ob.callee.object;Yb.reverse();const Vb=1<Yb.length,Ub=Vb&&1<Yb.filter(Xb=>Rb(Xb.call)).length;if(Vb)