@live-codes/browser-compilers 0.22.0 → 0.22.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/prettier/parser-java.js +175 -0
- package/package.json +2 -1
- package/scripts/vendors.js +8 -0
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
var pluginJava=(()=>{var CT=Object.create;var Ha=Object.defineProperty;var yT=Object.getOwnPropertyDescriptor;var ST=Object.getOwnPropertyNames;var AT=Object.getPrototypeOf,TT=Object.prototype.hasOwnProperty;var wo=(e,t)=>()=>(e&&(t=e(e=0)),t);var U=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Bf=(e,t)=>{for(var r in t)Ha(e,r,{get:t[r],enumerable:!0})},Mf=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ST(t))!TT.call(e,i)&&i!==r&&Ha(e,i,{get:()=>t[i],enumerable:!(n=yT(t,i))||n.enumerable});return e};var rr=(e,t,r)=>(r=e!=null?CT(AT(e)):{},Mf(t||!e||!e.__esModule?Ha(r,"default",{value:e,enumerable:!0}):r,e)),FT=e=>Mf(Ha({},"__esModule",{value:!0}),e);var s=wo(()=>{});var m={};Bf(m,{_debugEnd:()=>Tp,_debugProcess:()=>Ap,_events:()=>wp,_eventsCount:()=>qp,_exiting:()=>np,_fatalExceptions:()=>gp,_getActiveHandles:()=>sp,_getActiveRequests:()=>ap,_kill:()=>lp,_linkedBinding:()=>tp,_maxListeners:()=>kp,_preload_modules:()=>Mp,_rawDebug:()=>$f,_startProfilerIdleNotifier:()=>Fp,_stopProfilerIdleNotifier:()=>vp,_tickCallback:()=>Sp,abort:()=>Up,addListener:()=>jp,allowedNodeEnvironmentFlags:()=>hp,arch:()=>qf,argv:()=>Vf,argv0:()=>Bp,assert:()=>Dp,binding:()=>Hf,chdir:()=>Zf,config:()=>ip,cpuUsage:()=>Za,cwd:()=>Jf,debugPort:()=>xp,default:()=>Jp,dlopen:()=>op,domain:()=>rp,emit:()=>zp,emitWarning:()=>Yf,env:()=>Gf,execArgv:()=>Wf,execPath:()=>bp,exit:()=>dp,features:()=>Ep,hasUncaughtExceptionCaptureCallback:()=>yp,hrtime:()=>Ja,kill:()=>pp,listeners:()=>Xp,memoryUsage:()=>fp,moduleLoadList:()=>ep,nextTick:()=>Pf,off:()=>Vp,on:()=>Ir,once:()=>Gp,openStdin:()=>mp,pid:()=>Ip,platform:()=>jf,ppid:()=>Np,prependListener:()=>Yp,prependOnceListener:()=>Hp,reallyExit:()=>up,release:()=>Qf,removeAllListeners:()=>Kp,removeListener:()=>Wp,resourceUsage:()=>cp,setSourceMapsEnabled:()=>_p,setUncaughtExceptionCaptureCallback:()=>Cp,stderr:()=>Rp,stdin:()=>Op,stdout:()=>Lp,title:()=>wf,umask:()=>Xf,uptime:()=>Pp,version:()=>Kf,versions:()=>zf});function il(e){throw new Error("Node.js process "+e+" is not supported by JSPM core outside of Node.js")}function vT(){!Si||!wn||(Si=!1,wn.length?Ur=wn.concat(Ur):Xa=-1,Ur.length&&_f())}function _f(){if(!Si){var e=setTimeout(vT,0);Si=!0;for(var t=Ur.length;t;){for(wn=Ur,Ur=[];++Xa<t;)wn&&wn[Xa].run();Xa=-1,t=Ur.length}wn=null,Si=!1,clearTimeout(e)}}function Pf(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];Ur.push(new kf(e,t)),Ur.length===1&&!Si&&setTimeout(_f,0)}function kf(e,t){this.fun=e,this.array=t}function ct(){}function tp(e){il("_linkedBinding")}function op(e){il("dlopen")}function ap(){return[]}function sp(){return[]}function Dp(e,t){if(!e)throw new Error(t||"assertion error")}function yp(){return!1}function Pp(){return an.now()/1e3}function Ja(e){var t=Math.floor((Date.now()-an.now())*.001),r=an.now()*.001,n=Math.floor(r)+t,i=Math.floor(r%1*1e9);return e&&(n=n-e[0],i=i-e[1],i<0&&(n--,i+=nl)),[n,i]}function Ir(){return Jp}function Xp(e){return[]}var Ur,Si,wn,Xa,wf,qf,jf,Gf,Vf,Wf,Kf,zf,Yf,Hf,Xf,Jf,Zf,Qf,$f,ep,rp,np,ip,up,lp,Za,cp,fp,pp,dp,mp,hp,Ep,gp,Cp,Sp,Ap,Tp,Fp,vp,Lp,Rp,Op,Up,Ip,Np,bp,xp,Bp,Mp,_p,an,rl,nl,kp,wp,qp,jp,Gp,Vp,Wp,Kp,zp,Yp,Hp,Jp,Zp=wo(()=>{s();l();u();Ur=[],Si=!1,Xa=-1;kf.prototype.run=function(){this.fun.apply(null,this.array)};wf="browser",qf="x64",jf="browser",Gf={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},Vf=["/usr/bin/node"],Wf=[],Kf="v16.8.0",zf={},Yf=function(e,t){console.warn((t?t+": ":"")+e)},Hf=function(e){il("binding")},Xf=function(e){return 0},Jf=function(){return"/"},Zf=function(e){},Qf={name:"node",sourceUrl:"",headersUrl:"",libUrl:""};$f=ct,ep=[];rp={},np=!1,ip={};up=ct,lp=ct,Za=function(){return{}},cp=Za,fp=Za,pp=ct,dp=ct,mp=ct,hp={};Ep={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},gp=ct,Cp=ct;Sp=ct,Ap=ct,Tp=ct,Fp=ct,vp=ct,Lp=void 0,Rp=void 0,Op=void 0,Up=ct,Ip=2,Np=1,bp="/bin/usr/node",xp=9229,Bp="node",Mp=[],_p=ct,an={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0};an.now===void 0&&(rl=Date.now(),an.timing&&an.timing.navigationStart&&(rl=an.timing.navigationStart),an.now=()=>Date.now()-rl);nl=1e9;Ja.bigint=function(e){var t=Ja(e);return typeof BigInt>"u"?t[0]*nl+t[1]:BigInt(t[0]*nl)+BigInt(t[1])};kp=10,wp={},qp=0;jp=Ir,Gp=Ir,Vp=Ir,Wp=Ir,Kp=Ir,zp=ct,Yp=Ir,Hp=Ir;Jp={version:Kf,versions:zf,arch:qf,platform:jf,release:Qf,_rawDebug:$f,moduleLoadList:ep,binding:Hf,_linkedBinding:tp,_events:wp,_eventsCount:qp,_maxListeners:kp,on:Ir,addListener:jp,once:Gp,off:Vp,removeListener:Wp,removeAllListeners:Kp,emit:zp,prependListener:Yp,prependOnceListener:Hp,listeners:Xp,domain:rp,_exiting:np,config:ip,dlopen:op,uptime:Pp,_getActiveRequests:ap,_getActiveHandles:sp,reallyExit:up,_kill:lp,cpuUsage:Za,resourceUsage:cp,memoryUsage:fp,kill:pp,exit:dp,openStdin:mp,allowedNodeEnvironmentFlags:hp,assert:Dp,features:Ep,_fatalExceptions:gp,setUncaughtExceptionCaptureCallback:Cp,hasUncaughtExceptionCaptureCallback:yp,emitWarning:Yf,nextTick:Pf,_tickCallback:Sp,_debugProcess:Ap,_debugEnd:Tp,_startProfilerIdleNotifier:Fp,_stopProfilerIdleNotifier:vp,stdout:Lp,stdin:Op,stderr:Rp,abort:Up,umask:Xf,chdir:Zf,cwd:Jf,env:Gf,title:wf,argv:Vf,execArgv:Wf,pid:Ip,ppid:Np,execPath:bp,debugPort:xp,hrtime:Ja,argv0:Bp,_preload_modules:Mp,setSourceMapsEnabled:_p}});var u=wo(()=>{Zp()});function LT(){if(Qp)return qo;Qp=!0,qo.byteLength=c,qo.toByteArray=E,qo.fromByteArray=y;for(var e=[],t=[],r=typeof Uint8Array<"u"?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,o=n.length;i<o;++i)e[i]=n[i],t[n.charCodeAt(i)]=i;t[45]=62,t[95]=63;function a(T){var S=T.length;if(S%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var v=T.indexOf("=");v===-1&&(v=S);var L=v===S?0:4-v%4;return[v,L]}function c(T){var S=a(T),v=S[0],L=S[1];return(v+L)*3/4-L}function f(T,S,v){return(S+v)*3/4-v}function E(T){var S,v=a(T),L=v[0],O=v[1],N=new r(f(T,L,O)),b=0,M=O>0?L-4:L,_;for(_=0;_<M;_+=4)S=t[T.charCodeAt(_)]<<18|t[T.charCodeAt(_+1)]<<12|t[T.charCodeAt(_+2)]<<6|t[T.charCodeAt(_+3)],N[b++]=S>>16&255,N[b++]=S>>8&255,N[b++]=S&255;return O===2&&(S=t[T.charCodeAt(_)]<<2|t[T.charCodeAt(_+1)]>>4,N[b++]=S&255),O===1&&(S=t[T.charCodeAt(_)]<<10|t[T.charCodeAt(_+1)]<<4|t[T.charCodeAt(_+2)]>>2,N[b++]=S>>8&255,N[b++]=S&255),N}function g(T){return e[T>>18&63]+e[T>>12&63]+e[T>>6&63]+e[T&63]}function A(T,S,v){for(var L,O=[],N=S;N<v;N+=3)L=(T[N]<<16&16711680)+(T[N+1]<<8&65280)+(T[N+2]&255),O.push(g(L));return O.join("")}function y(T){for(var S,v=T.length,L=v%3,O=[],N=16383,b=0,M=v-L;b<M;b+=N)O.push(A(T,b,b+N>M?M:b+N));return L===1?(S=T[v-1],O.push(e[S>>2]+e[S<<4&63]+"==")):L===2&&(S=(T[v-2]<<8)+T[v-1],O.push(e[S>>10]+e[S>>4&63]+e[S<<2&63]+"=")),O.join("")}return qo}function RT(){if($p)return Qa;$p=!0;return Qa.read=function(e,t,r,n,i){var o,a,c=i*8-n-1,f=(1<<c)-1,E=f>>1,g=-7,A=r?i-1:0,y=r?-1:1,T=e[t+A];for(A+=y,o=T&(1<<-g)-1,T>>=-g,g+=c;g>0;o=o*256+e[t+A],A+=y,g-=8);for(a=o&(1<<-g)-1,o>>=-g,g+=n;g>0;a=a*256+e[t+A],A+=y,g-=8);if(o===0)o=1-E;else{if(o===f)return a?NaN:(T?-1:1)*(1/0);a=a+Math.pow(2,n),o=o-E}return(T?-1:1)*a*Math.pow(2,o-n)},Qa.write=function(e,t,r,n,i,o){var a,c,f,E=o*8-i-1,g=(1<<E)-1,A=g>>1,y=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,T=n?0:o-1,S=n?1:-1,v=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(c=isNaN(t)?1:0,a=g):(a=Math.floor(Math.log(t)/Math.LN2),t*(f=Math.pow(2,-a))<1&&(a--,f*=2),a+A>=1?t+=y/f:t+=y*Math.pow(2,1-A),t*f>=2&&(a++,f/=2),a+A>=g?(c=0,a=g):a+A>=1?(c=(t*f-1)*Math.pow(2,i),a=a+A):(c=t*Math.pow(2,A-1)*Math.pow(2,i),a=0));i>=8;e[r+T]=c&255,T+=S,c/=256,i-=8);for(a=a<<i|c,E+=i;E>0;e[r+T]=a&255,T+=S,a/=256,E-=8);e[r+T-S]|=v*128},Qa}function OT(){if(ed)return qn;ed=!0;let e=LT(),t=RT(),r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;qn.Buffer=a,qn.SlowBuffer=O,qn.INSPECT_MAX_BYTES=50;let n=2147483647;qn.kMaxLength=n,a.TYPED_ARRAY_SUPPORT=i(),!a.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{let C=new Uint8Array(1),p={foo:function(){return 42}};return Object.setPrototypeOf(p,Uint8Array.prototype),Object.setPrototypeOf(C,p),C.foo()===42}catch{return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}});function o(C){if(C>n)throw new RangeError('The value "'+C+'" is invalid for option "size"');let p=new Uint8Array(C);return Object.setPrototypeOf(p,a.prototype),p}function a(C,p,d){if(typeof C=="number"){if(typeof p=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return g(C)}return c(C,p,d)}a.poolSize=8192;function c(C,p,d){if(typeof C=="string")return A(C,p);if(ArrayBuffer.isView(C))return T(C);if(C==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof C);if(tr(C,ArrayBuffer)||C&&tr(C.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(tr(C,SharedArrayBuffer)||C&&tr(C.buffer,SharedArrayBuffer)))return S(C,p,d);if(typeof C=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let F=C.valueOf&&C.valueOf();if(F!=null&&F!==C)return a.from(F,p,d);let R=v(C);if(R)return R;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof C[Symbol.toPrimitive]=="function")return a.from(C[Symbol.toPrimitive]("string"),p,d);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof C)}a.from=function(C,p,d){return c(C,p,d)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function f(C){if(typeof C!="number")throw new TypeError('"size" argument must be of type number');if(C<0)throw new RangeError('The value "'+C+'" is invalid for option "size"')}function E(C,p,d){return f(C),C<=0?o(C):p!==void 0?typeof d=="string"?o(C).fill(p,d):o(C).fill(p):o(C)}a.alloc=function(C,p,d){return E(C,p,d)};function g(C){return f(C),o(C<0?0:L(C)|0)}a.allocUnsafe=function(C){return g(C)},a.allocUnsafeSlow=function(C){return g(C)};function A(C,p){if((typeof p!="string"||p==="")&&(p="utf8"),!a.isEncoding(p))throw new TypeError("Unknown encoding: "+p);let d=N(C,p)|0,F=o(d),R=F.write(C,p);return R!==d&&(F=F.slice(0,R)),F}function y(C){let p=C.length<0?0:L(C.length)|0,d=o(p);for(let F=0;F<p;F+=1)d[F]=C[F]&255;return d}function T(C){if(tr(C,Uint8Array)){let p=new Uint8Array(C);return S(p.buffer,p.byteOffset,p.byteLength)}return y(C)}function S(C,p,d){if(p<0||C.byteLength<p)throw new RangeError('"offset" is outside of buffer bounds');if(C.byteLength<p+(d||0))throw new RangeError('"length" is outside of buffer bounds');let F;return p===void 0&&d===void 0?F=new Uint8Array(C):d===void 0?F=new Uint8Array(C,p):F=new Uint8Array(C,p,d),Object.setPrototypeOf(F,a.prototype),F}function v(C){if(a.isBuffer(C)){let p=L(C.length)|0,d=o(p);return d.length===0||C.copy(d,0,0,p),d}if(C.length!==void 0)return typeof C.length!="number"||tl(C.length)?o(0):y(C);if(C.type==="Buffer"&&Array.isArray(C.data))return y(C.data)}function L(C){if(C>=n)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n.toString(16)+" bytes");return C|0}function O(C){return+C!=C&&(C=0),a.alloc(+C)}a.isBuffer=function(p){return p!=null&&p._isBuffer===!0&&p!==a.prototype},a.compare=function(p,d){if(tr(p,Uint8Array)&&(p=a.from(p,p.offset,p.byteLength)),tr(d,Uint8Array)&&(d=a.from(d,d.offset,d.byteLength)),!a.isBuffer(p)||!a.isBuffer(d))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(p===d)return 0;let F=p.length,R=d.length;for(let x=0,B=Math.min(F,R);x<B;++x)if(p[x]!==d[x]){F=p[x],R=d[x];break}return F<R?-1:R<F?1:0},a.isEncoding=function(p){switch(String(p).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(p,d){if(!Array.isArray(p))throw new TypeError('"list" argument must be an Array of Buffers');if(p.length===0)return a.alloc(0);let F;if(d===void 0)for(d=0,F=0;F<p.length;++F)d+=p[F].length;let R=a.allocUnsafe(d),x=0;for(F=0;F<p.length;++F){let B=p[F];if(tr(B,Uint8Array))x+B.length>R.length?(a.isBuffer(B)||(B=a.from(B)),B.copy(R,x)):Uint8Array.prototype.set.call(R,B,x);else if(a.isBuffer(B))B.copy(R,x);else throw new TypeError('"list" argument must be an Array of Buffers');x+=B.length}return R};function N(C,p){if(a.isBuffer(C))return C.length;if(ArrayBuffer.isView(C)||tr(C,ArrayBuffer))return C.byteLength;if(typeof C!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof C);let d=C.length,F=arguments.length>2&&arguments[2]===!0;if(!F&&d===0)return 0;let R=!1;for(;;)switch(p){case"ascii":case"latin1":case"binary":return d;case"utf8":case"utf-8":return yi(C).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d*2;case"hex":return d>>>1;case"base64":return xf(C).length;default:if(R)return F?-1:yi(C).length;p=(""+p).toLowerCase(),R=!0}}a.byteLength=N;function b(C,p,d){let F=!1;if((p===void 0||p<0)&&(p=0),p>this.length||((d===void 0||d>this.length)&&(d=this.length),d<=0)||(d>>>=0,p>>>=0,d<=p))return"";for(C||(C="utf8");;)switch(C){case"hex":return rn(this,p,d);case"utf8":case"utf-8":return Pe(this,p,d);case"ascii":return Je(this,p,d);case"latin1":case"binary":return qt(this,p,d);case"base64":return Ke(this,p,d);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return nn(this,p,d);default:if(F)throw new TypeError("Unknown encoding: "+C);C=(C+"").toLowerCase(),F=!0}}a.prototype._isBuffer=!0;function M(C,p,d){let F=C[p];C[p]=C[d],C[d]=F}a.prototype.swap16=function(){let p=this.length;if(p%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let d=0;d<p;d+=2)M(this,d,d+1);return this},a.prototype.swap32=function(){let p=this.length;if(p%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let d=0;d<p;d+=4)M(this,d,d+3),M(this,d+1,d+2);return this},a.prototype.swap64=function(){let p=this.length;if(p%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let d=0;d<p;d+=8)M(this,d,d+7),M(this,d+1,d+6),M(this,d+2,d+5),M(this,d+3,d+4);return this},a.prototype.toString=function(){let p=this.length;return p===0?"":arguments.length===0?Pe(this,0,p):b.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(p){if(!a.isBuffer(p))throw new TypeError("Argument must be a Buffer");return this===p?!0:a.compare(this,p)===0},a.prototype.inspect=function(){let p="",d=qn.INSPECT_MAX_BYTES;return p=this.toString("hex",0,d).replace(/(.{2})/g,"$1 ").trim(),this.length>d&&(p+=" ... "),"<Buffer "+p+">"},r&&(a.prototype[r]=a.prototype.inspect),a.prototype.compare=function(p,d,F,R,x){if(tr(p,Uint8Array)&&(p=a.from(p,p.offset,p.byteLength)),!a.isBuffer(p))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof p);if(d===void 0&&(d=0),F===void 0&&(F=p?p.length:0),R===void 0&&(R=0),x===void 0&&(x=this.length),d<0||F>p.length||R<0||x>this.length)throw new RangeError("out of range index");if(R>=x&&d>=F)return 0;if(R>=x)return-1;if(d>=F)return 1;if(d>>>=0,F>>>=0,R>>>=0,x>>>=0,this===p)return 0;let B=x-R,te=F-d,xe=Math.min(B,te),Te=this.slice(R,x),Be=p.slice(d,F);for(let ce=0;ce<xe;++ce)if(Te[ce]!==Be[ce]){B=Te[ce],te=Be[ce];break}return B<te?-1:te<B?1:0};function _(C,p,d,F,R){if(C.length===0)return-1;if(typeof d=="string"?(F=d,d=0):d>2147483647?d=2147483647:d<-2147483648&&(d=-2147483648),d=+d,tl(d)&&(d=R?0:C.length-1),d<0&&(d=C.length+d),d>=C.length){if(R)return-1;d=C.length-1}else if(d<0)if(R)d=0;else return-1;if(typeof p=="string"&&(p=a.from(p,F)),a.isBuffer(p))return p.length===0?-1:K(C,p,d,F,R);if(typeof p=="number")return p=p&255,typeof Uint8Array.prototype.indexOf=="function"?R?Uint8Array.prototype.indexOf.call(C,p,d):Uint8Array.prototype.lastIndexOf.call(C,p,d):K(C,[p],d,F,R);throw new TypeError("val must be string, number or Buffer")}function K(C,p,d,F,R){let x=1,B=C.length,te=p.length;if(F!==void 0&&(F=String(F).toLowerCase(),F==="ucs2"||F==="ucs-2"||F==="utf16le"||F==="utf-16le")){if(C.length<2||p.length<2)return-1;x=2,B/=2,te/=2,d/=2}function xe(Be,ce){return x===1?Be[ce]:Be.readUInt16BE(ce*x)}let Te;if(R){let Be=-1;for(Te=d;Te<B;Te++)if(xe(C,Te)===xe(p,Be===-1?0:Te-Be)){if(Be===-1&&(Be=Te),Te-Be+1===te)return Be*x}else Be!==-1&&(Te-=Te-Be),Be=-1}else for(d+te>B&&(d=B-te),Te=d;Te>=0;Te--){let Be=!0;for(let ce=0;ce<te;ce++)if(xe(C,Te+ce)!==xe(p,ce)){Be=!1;break}if(Be)return Te}return-1}a.prototype.includes=function(p,d,F){return this.indexOf(p,d,F)!==-1},a.prototype.indexOf=function(p,d,F){return _(this,p,d,F,!0)},a.prototype.lastIndexOf=function(p,d,F){return _(this,p,d,F,!1)};function J(C,p,d,F){d=Number(d)||0;let R=C.length-d;F?(F=Number(F),F>R&&(F=R)):F=R;let x=p.length;F>x/2&&(F=x/2);let B;for(B=0;B<F;++B){let te=parseInt(p.substr(B*2,2),16);if(tl(te))return B;C[d+B]=te}return B}function re(C,p,d,F){return Ya(yi(p,C.length-d),C,d,F)}function be(C,p,d,F){return Ya(hT(p),C,d,F)}function nt(C,p,d,F){return Ya(xf(p),C,d,F)}function je(C,p,d,F){return Ya(DT(p,C.length-d),C,d,F)}a.prototype.write=function(p,d,F,R){if(d===void 0)R="utf8",F=this.length,d=0;else if(F===void 0&&typeof d=="string")R=d,F=this.length,d=0;else if(isFinite(d))d=d>>>0,isFinite(F)?(F=F>>>0,R===void 0&&(R="utf8")):(R=F,F=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let x=this.length-d;if((F===void 0||F>x)&&(F=x),p.length>0&&(F<0||d<0)||d>this.length)throw new RangeError("Attempt to write outside buffer bounds");R||(R="utf8");let B=!1;for(;;)switch(R){case"hex":return J(this,p,d,F);case"utf8":case"utf-8":return re(this,p,d,F);case"ascii":case"latin1":case"binary":return be(this,p,d,F);case"base64":return nt(this,p,d,F);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return je(this,p,d,F);default:if(B)throw new TypeError("Unknown encoding: "+R);R=(""+R).toLowerCase(),B=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Ke(C,p,d){return p===0&&d===C.length?e.fromByteArray(C):e.fromByteArray(C.slice(p,d))}function Pe(C,p,d){d=Math.min(C.length,d);let F=[],R=p;for(;R<d;){let x=C[R],B=null,te=x>239?4:x>223?3:x>191?2:1;if(R+te<=d){let xe,Te,Be,ce;switch(te){case 1:x<128&&(B=x);break;case 2:xe=C[R+1],(xe&192)===128&&(ce=(x&31)<<6|xe&63,ce>127&&(B=ce));break;case 3:xe=C[R+1],Te=C[R+2],(xe&192)===128&&(Te&192)===128&&(ce=(x&15)<<12|(xe&63)<<6|Te&63,ce>2047&&(ce<55296||ce>57343)&&(B=ce));break;case 4:xe=C[R+1],Te=C[R+2],Be=C[R+3],(xe&192)===128&&(Te&192)===128&&(Be&192)===128&&(ce=(x&15)<<18|(xe&63)<<12|(Te&63)<<6|Be&63,ce>65535&&ce<1114112&&(B=ce))}}B===null?(B=65533,te=1):B>65535&&(B-=65536,F.push(B>>>10&1023|55296),B=56320|B&1023),F.push(B),R+=te}return it(F)}let Xe=4096;function it(C){let p=C.length;if(p<=Xe)return String.fromCharCode.apply(String,C);let d="",F=0;for(;F<p;)d+=String.fromCharCode.apply(String,C.slice(F,F+=Xe));return d}function Je(C,p,d){let F="";d=Math.min(C.length,d);for(let R=p;R<d;++R)F+=String.fromCharCode(C[R]&127);return F}function qt(C,p,d){let F="";d=Math.min(C.length,d);for(let R=p;R<d;++R)F+=String.fromCharCode(C[R]);return F}function rn(C,p,d){let F=C.length;(!p||p<0)&&(p=0),(!d||d<0||d>F)&&(d=F);let R="";for(let x=p;x<d;++x)R+=ET[C[x]];return R}function nn(C,p,d){let F=C.slice(p,d),R="";for(let x=0;x<F.length-1;x+=2)R+=String.fromCharCode(F[x]+F[x+1]*256);return R}a.prototype.slice=function(p,d){let F=this.length;p=~~p,d=d===void 0?F:~~d,p<0?(p+=F,p<0&&(p=0)):p>F&&(p=F),d<0?(d+=F,d<0&&(d=0)):d>F&&(d=F),d<p&&(d=p);let R=this.subarray(p,d);return Object.setPrototypeOf(R,a.prototype),R};function de(C,p,d){if(C%1!==0||C<0)throw new RangeError("offset is not uint");if(C+p>d)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(p,d,F){p=p>>>0,d=d>>>0,F||de(p,d,this.length);let R=this[p],x=1,B=0;for(;++B<d&&(x*=256);)R+=this[p+B]*x;return R},a.prototype.readUintBE=a.prototype.readUIntBE=function(p,d,F){p=p>>>0,d=d>>>0,F||de(p,d,this.length);let R=this[p+--d],x=1;for(;d>0&&(x*=256);)R+=this[p+--d]*x;return R},a.prototype.readUint8=a.prototype.readUInt8=function(p,d){return p=p>>>0,d||de(p,1,this.length),this[p]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(p,d){return p=p>>>0,d||de(p,2,this.length),this[p]|this[p+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(p,d){return p=p>>>0,d||de(p,2,this.length),this[p]<<8|this[p+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(p,d){return p=p>>>0,d||de(p,4,this.length),(this[p]|this[p+1]<<8|this[p+2]<<16)+this[p+3]*16777216},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(p,d){return p=p>>>0,d||de(p,4,this.length),this[p]*16777216+(this[p+1]<<16|this[p+2]<<8|this[p+3])},a.prototype.readBigUInt64LE=on(function(p){p=p>>>0,ht(p,"offset");let d=this[p],F=this[p+7];(d===void 0||F===void 0)&&Dt(p,this.length-8);let R=d+this[++p]*2**8+this[++p]*2**16+this[++p]*2**24,x=this[++p]+this[++p]*2**8+this[++p]*2**16+F*2**24;return BigInt(R)+(BigInt(x)<<BigInt(32))}),a.prototype.readBigUInt64BE=on(function(p){p=p>>>0,ht(p,"offset");let d=this[p],F=this[p+7];(d===void 0||F===void 0)&&Dt(p,this.length-8);let R=d*2**24+this[++p]*2**16+this[++p]*2**8+this[++p],x=this[++p]*2**24+this[++p]*2**16+this[++p]*2**8+F;return(BigInt(R)<<BigInt(32))+BigInt(x)}),a.prototype.readIntLE=function(p,d,F){p=p>>>0,d=d>>>0,F||de(p,d,this.length);let R=this[p],x=1,B=0;for(;++B<d&&(x*=256);)R+=this[p+B]*x;return x*=128,R>=x&&(R-=Math.pow(2,8*d)),R},a.prototype.readIntBE=function(p,d,F){p=p>>>0,d=d>>>0,F||de(p,d,this.length);let R=d,x=1,B=this[p+--R];for(;R>0&&(x*=256);)B+=this[p+--R]*x;return x*=128,B>=x&&(B-=Math.pow(2,8*d)),B},a.prototype.readInt8=function(p,d){return p=p>>>0,d||de(p,1,this.length),this[p]&128?(255-this[p]+1)*-1:this[p]},a.prototype.readInt16LE=function(p,d){p=p>>>0,d||de(p,2,this.length);let F=this[p]|this[p+1]<<8;return F&32768?F|4294901760:F},a.prototype.readInt16BE=function(p,d){p=p>>>0,d||de(p,2,this.length);let F=this[p+1]|this[p]<<8;return F&32768?F|4294901760:F},a.prototype.readInt32LE=function(p,d){return p=p>>>0,d||de(p,4,this.length),this[p]|this[p+1]<<8|this[p+2]<<16|this[p+3]<<24},a.prototype.readInt32BE=function(p,d){return p=p>>>0,d||de(p,4,this.length),this[p]<<24|this[p+1]<<16|this[p+2]<<8|this[p+3]},a.prototype.readBigInt64LE=on(function(p){p=p>>>0,ht(p,"offset");let d=this[p],F=this[p+7];(d===void 0||F===void 0)&&Dt(p,this.length-8);let R=this[p+4]+this[p+5]*2**8+this[p+6]*2**16+(F<<24);return(BigInt(R)<<BigInt(32))+BigInt(d+this[++p]*2**8+this[++p]*2**16+this[++p]*2**24)}),a.prototype.readBigInt64BE=on(function(p){p=p>>>0,ht(p,"offset");let d=this[p],F=this[p+7];(d===void 0||F===void 0)&&Dt(p,this.length-8);let R=(d<<24)+this[++p]*2**16+this[++p]*2**8+this[++p];return(BigInt(R)<<BigInt(32))+BigInt(this[++p]*2**24+this[++p]*2**16+this[++p]*2**8+F)}),a.prototype.readFloatLE=function(p,d){return p=p>>>0,d||de(p,4,this.length),t.read(this,p,!0,23,4)},a.prototype.readFloatBE=function(p,d){return p=p>>>0,d||de(p,4,this.length),t.read(this,p,!1,23,4)},a.prototype.readDoubleLE=function(p,d){return p=p>>>0,d||de(p,8,this.length),t.read(this,p,!0,52,8)},a.prototype.readDoubleBE=function(p,d){return p=p>>>0,d||de(p,8,this.length),t.read(this,p,!1,52,8)};function ze(C,p,d,F,R,x){if(!a.isBuffer(C))throw new TypeError('"buffer" argument must be a Buffer instance');if(p>R||p<x)throw new RangeError('"value" argument is out of bounds');if(d+F>C.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(p,d,F,R){if(p=+p,d=d>>>0,F=F>>>0,!R){let te=Math.pow(2,8*F)-1;ze(this,p,d,F,te,0)}let x=1,B=0;for(this[d]=p&255;++B<F&&(x*=256);)this[d+B]=p/x&255;return d+F},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(p,d,F,R){if(p=+p,d=d>>>0,F=F>>>0,!R){let te=Math.pow(2,8*F)-1;ze(this,p,d,F,te,0)}let x=F-1,B=1;for(this[d+x]=p&255;--x>=0&&(B*=256);)this[d+x]=p/B&255;return d+F},a.prototype.writeUint8=a.prototype.writeUInt8=function(p,d,F){return p=+p,d=d>>>0,F||ze(this,p,d,1,255,0),this[d]=p&255,d+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(p,d,F){return p=+p,d=d>>>0,F||ze(this,p,d,2,65535,0),this[d]=p&255,this[d+1]=p>>>8,d+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(p,d,F){return p=+p,d=d>>>0,F||ze(this,p,d,2,65535,0),this[d]=p>>>8,this[d+1]=p&255,d+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(p,d,F){return p=+p,d=d>>>0,F||ze(this,p,d,4,4294967295,0),this[d+3]=p>>>24,this[d+2]=p>>>16,this[d+1]=p>>>8,this[d]=p&255,d+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(p,d,F){return p=+p,d=d>>>0,F||ze(this,p,d,4,4294967295,0),this[d]=p>>>24,this[d+1]=p>>>16,this[d+2]=p>>>8,this[d+3]=p&255,d+4};function Mo(C,p,d,F,R){jt(p,F,R,C,d,7);let x=Number(p&BigInt(4294967295));C[d++]=x,x=x>>8,C[d++]=x,x=x>>8,C[d++]=x,x=x>>8,C[d++]=x;let B=Number(p>>BigInt(32)&BigInt(4294967295));return C[d++]=B,B=B>>8,C[d++]=B,B=B>>8,C[d++]=B,B=B>>8,C[d++]=B,d}function za(C,p,d,F,R){jt(p,F,R,C,d,7);let x=Number(p&BigInt(4294967295));C[d+7]=x,x=x>>8,C[d+6]=x,x=x>>8,C[d+5]=x,x=x>>8,C[d+4]=x;let B=Number(p>>BigInt(32)&BigInt(4294967295));return C[d+3]=B,B=B>>8,C[d+2]=B,B=B>>8,C[d+1]=B,B=B>>8,C[d]=B,d+8}a.prototype.writeBigUInt64LE=on(function(p,d=0){return Mo(this,p,d,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=on(function(p,d=0){return za(this,p,d,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(p,d,F,R){if(p=+p,d=d>>>0,!R){let xe=Math.pow(2,8*F-1);ze(this,p,d,F,xe-1,-xe)}let x=0,B=1,te=0;for(this[d]=p&255;++x<F&&(B*=256);)p<0&&te===0&&this[d+x-1]!==0&&(te=1),this[d+x]=(p/B>>0)-te&255;return d+F},a.prototype.writeIntBE=function(p,d,F,R){if(p=+p,d=d>>>0,!R){let xe=Math.pow(2,8*F-1);ze(this,p,d,F,xe-1,-xe)}let x=F-1,B=1,te=0;for(this[d+x]=p&255;--x>=0&&(B*=256);)p<0&&te===0&&this[d+x+1]!==0&&(te=1),this[d+x]=(p/B>>0)-te&255;return d+F},a.prototype.writeInt8=function(p,d,F){return p=+p,d=d>>>0,F||ze(this,p,d,1,127,-128),p<0&&(p=255+p+1),this[d]=p&255,d+1},a.prototype.writeInt16LE=function(p,d,F){return p=+p,d=d>>>0,F||ze(this,p,d,2,32767,-32768),this[d]=p&255,this[d+1]=p>>>8,d+2},a.prototype.writeInt16BE=function(p,d,F){return p=+p,d=d>>>0,F||ze(this,p,d,2,32767,-32768),this[d]=p>>>8,this[d+1]=p&255,d+2},a.prototype.writeInt32LE=function(p,d,F){return p=+p,d=d>>>0,F||ze(this,p,d,4,2147483647,-2147483648),this[d]=p&255,this[d+1]=p>>>8,this[d+2]=p>>>16,this[d+3]=p>>>24,d+4},a.prototype.writeInt32BE=function(p,d,F){return p=+p,d=d>>>0,F||ze(this,p,d,4,2147483647,-2147483648),p<0&&(p=4294967295+p+1),this[d]=p>>>24,this[d+1]=p>>>16,this[d+2]=p>>>8,this[d+3]=p&255,d+4},a.prototype.writeBigInt64LE=on(function(p,d=0){return Mo(this,p,d,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=on(function(p,d=0){return za(this,p,d,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function _o(C,p,d,F,R,x){if(d+F>C.length)throw new RangeError("Index out of range");if(d<0)throw new RangeError("Index out of range")}function Ft(C,p,d,F,R){return p=+p,d=d>>>0,R||_o(C,p,d,4),t.write(C,p,d,F,23,4),d+4}a.prototype.writeFloatLE=function(p,d,F){return Ft(this,p,d,!0,F)},a.prototype.writeFloatBE=function(p,d,F){return Ft(this,p,d,!1,F)};function Po(C,p,d,F,R){return p=+p,d=d>>>0,R||_o(C,p,d,8),t.write(C,p,d,F,52,8),d+8}a.prototype.writeDoubleLE=function(p,d,F){return Po(this,p,d,!0,F)},a.prototype.writeDoubleBE=function(p,d,F){return Po(this,p,d,!1,F)},a.prototype.copy=function(p,d,F,R){if(!a.isBuffer(p))throw new TypeError("argument should be a Buffer");if(F||(F=0),!R&&R!==0&&(R=this.length),d>=p.length&&(d=p.length),d||(d=0),R>0&&R<F&&(R=F),R===F||p.length===0||this.length===0)return 0;if(d<0)throw new RangeError("targetStart out of bounds");if(F<0||F>=this.length)throw new RangeError("Index out of range");if(R<0)throw new RangeError("sourceEnd out of bounds");R>this.length&&(R=this.length),p.length-d<R-F&&(R=p.length-d+F);let x=R-F;return this===p&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(d,F,R):Uint8Array.prototype.set.call(p,this.subarray(F,R),d),x},a.prototype.fill=function(p,d,F,R){if(typeof p=="string"){if(typeof d=="string"?(R=d,d=0,F=this.length):typeof F=="string"&&(R=F,F=this.length),R!==void 0&&typeof R!="string")throw new TypeError("encoding must be a string");if(typeof R=="string"&&!a.isEncoding(R))throw new TypeError("Unknown encoding: "+R);if(p.length===1){let B=p.charCodeAt(0);(R==="utf8"&&B<128||R==="latin1")&&(p=B)}}else typeof p=="number"?p=p&255:typeof p=="boolean"&&(p=Number(p));if(d<0||this.length<d||this.length<F)throw new RangeError("Out of range index");if(F<=d)return this;d=d>>>0,F=F===void 0?this.length:F>>>0,p||(p=0);let x;if(typeof p=="number")for(x=d;x<F;++x)this[x]=p;else{let B=a.isBuffer(p)?p:a.from(p,R),te=B.length;if(te===0)throw new TypeError('The value "'+p+'" is invalid for argument "value"');for(x=0;x<F-d;++x)this[x+d]=B[x%te]}return this};let Re={};function lt(C,p,d){Re[C]=class extends d{constructor(){super(),Object.defineProperty(this,"message",{value:p.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${C}]`,this.stack,delete this.name}get code(){return C}set code(R){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:R,writable:!0})}toString(){return`${this.name} [${C}]: ${this.message}`}}}lt("ERR_BUFFER_OUT_OF_BOUNDS",function(C){return C?`${C} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),lt("ERR_INVALID_ARG_TYPE",function(C,p){return`The "${C}" argument must be of type number. Received type ${typeof p}`},TypeError),lt("ERR_OUT_OF_RANGE",function(C,p,d){let F=`The value of "${C}" is out of range.`,R=d;return Number.isInteger(d)&&Math.abs(d)>2**32?R=Rr(String(d)):typeof d=="bigint"&&(R=String(d),(d>BigInt(2)**BigInt(32)||d<-(BigInt(2)**BigInt(32)))&&(R=Rr(R)),R+="n"),F+=` It must be ${p}. Received ${R}`,F},RangeError);function Rr(C){let p="",d=C.length,F=C[0]==="-"?1:0;for(;d>=F+4;d-=3)p=`_${C.slice(d-3,d)}${p}`;return`${C.slice(0,d)}${p}`}function mt(C,p,d){ht(p,"offset"),(C[p]===void 0||C[p+d]===void 0)&&Dt(p,C.length-(d+1))}function jt(C,p,d,F,R,x){if(C>d||C<p){let B=typeof p=="bigint"?"n":"",te;throw x>3?p===0||p===BigInt(0)?te=`>= 0${B} and < 2${B} ** ${(x+1)*8}${B}`:te=`>= -(2${B} ** ${(x+1)*8-1}${B}) and < 2 ** ${(x+1)*8-1}${B}`:te=`>= ${p}${B} and <= ${d}${B}`,new Re.ERR_OUT_OF_RANGE("value",te,C)}mt(F,R,x)}function ht(C,p){if(typeof C!="number")throw new Re.ERR_INVALID_ARG_TYPE(p,"number",C)}function Dt(C,p,d){throw Math.floor(C)!==C?(ht(C,d),new Re.ERR_OUT_OF_RANGE(d||"offset","an integer",C)):p<0?new Re.ERR_BUFFER_OUT_OF_BOUNDS:new Re.ERR_OUT_OF_RANGE(d||"offset",`>= ${d?1:0} and <= ${p}`,C)}let Or=/[^+/0-9A-Za-z-_]/g;function ko(C){if(C=C.split("=")[0],C=C.trim().replace(Or,""),C.length<2)return"";for(;C.length%4!==0;)C=C+"=";return C}function yi(C,p){p=p||1/0;let d,F=C.length,R=null,x=[];for(let B=0;B<F;++B){if(d=C.charCodeAt(B),d>55295&&d<57344){if(!R){if(d>56319){(p-=3)>-1&&x.push(239,191,189);continue}else if(B+1===F){(p-=3)>-1&&x.push(239,191,189);continue}R=d;continue}if(d<56320){(p-=3)>-1&&x.push(239,191,189),R=d;continue}d=(R-55296<<10|d-56320)+65536}else R&&(p-=3)>-1&&x.push(239,191,189);if(R=null,d<128){if((p-=1)<0)break;x.push(d)}else if(d<2048){if((p-=2)<0)break;x.push(d>>6|192,d&63|128)}else if(d<65536){if((p-=3)<0)break;x.push(d>>12|224,d>>6&63|128,d&63|128)}else if(d<1114112){if((p-=4)<0)break;x.push(d>>18|240,d>>12&63|128,d>>6&63|128,d&63|128)}else throw new Error("Invalid code point")}return x}function hT(C){let p=[];for(let d=0;d<C.length;++d)p.push(C.charCodeAt(d)&255);return p}function DT(C,p){let d,F,R,x=[];for(let B=0;B<C.length&&!((p-=2)<0);++B)d=C.charCodeAt(B),F=d>>8,R=d%256,x.push(R),x.push(F);return x}function xf(C){return e.toByteArray(ko(C))}function Ya(C,p,d,F){let R;for(R=0;R<F&&!(R+d>=p.length||R>=C.length);++R)p[R+d]=C[R];return R}function tr(C,p){return C instanceof p||C!=null&&C.constructor!=null&&C.constructor.name!=null&&C.constructor.name===p.name}function tl(C){return C!==C}let ET=function(){let C="0123456789abcdef",p=new Array(256);for(let d=0;d<16;++d){let F=d*16;for(let R=0;R<16;++R)p[F+R]=C[d]+C[R]}return p}();function on(C){return typeof BigInt>"u"?gT:C}function gT(){throw new Error("BigInt not supported")}return qn}var qo,Qp,Qa,$p,qn,ed,jn,D,Hj,Xj,td=wo(()=>{s();l();u();qo={},Qp=!1;Qa={},$p=!1;qn={},ed=!1;jn=OT();jn.Buffer;jn.SlowBuffer;jn.INSPECT_MAX_BYTES;jn.kMaxLength;D=jn.Buffer,Hj=jn.INSPECT_MAX_BYTES,Xj=jn.kMaxLength});var l=wo(()=>{td()});var Vl=U((uge,a0)=>{s();l();u();var mO=typeof window=="object"&&window&&window.Object===Object&&window;a0.exports=mO});var Dr=U((pge,s0)=>{s();l();u();var hO=Vl(),DO=typeof self=="object"&&self&&self.Object===Object&&self,EO=hO||DO||Function("return this")();s0.exports=EO});var fa=U((Dge,u0)=>{s();l();u();var gO=Dr(),CO=gO.Symbol;u0.exports=CO});var Wl=U((yge,l0)=>{s();l();u();function yO(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}l0.exports=yO});var Wt=U((Fge,c0)=>{s();l();u();var SO=Array.isArray;c0.exports=SO});var m0=U((Oge,d0)=>{s();l();u();var f0=fa(),p0=Object.prototype,AO=p0.hasOwnProperty,TO=p0.toString,pa=f0?f0.toStringTag:void 0;function FO(e){var t=AO.call(e,pa),r=e[pa];try{e[pa]=void 0;var n=!0}catch{}var i=TO.call(e);return n&&(t?e[pa]=r:delete e[pa]),i}d0.exports=FO});var D0=U((bge,h0)=>{s();l();u();var vO=Object.prototype,LO=vO.toString;function RO(e){return LO.call(e)}h0.exports=RO});var Qn=U((_ge,C0)=>{s();l();u();var E0=fa(),OO=m0(),UO=D0(),IO="[object Null]",NO="[object Undefined]",g0=E0?E0.toStringTag:void 0;function bO(e){return e==null?e===void 0?NO:IO:g0&&g0 in Object(e)?OO(e):UO(e)}C0.exports=bO});var $n=U((qge,y0)=>{s();l();u();function xO(e){return e!=null&&typeof e=="object"}y0.exports=xO});var da=U((Wge,S0)=>{s();l();u();var BO=Qn(),MO=$n(),_O="[object Symbol]";function PO(e){return typeof e=="symbol"||MO(e)&&BO(e)==_O}S0.exports=PO});var R0=U((Hge,L0)=>{s();l();u();var A0=fa(),kO=Wl(),wO=Wt(),qO=da(),jO=1/0,T0=A0?A0.prototype:void 0,F0=T0?T0.toString:void 0;function v0(e){if(typeof e=="string")return e;if(wO(e))return kO(e,v0)+"";if(qO(e))return F0?F0.call(e):"";var t=e+"";return t=="0"&&1/e==-jO?"-0":t}L0.exports=v0});var io=U((Qge,O0)=>{s();l();u();var GO=R0();function VO(e){return e==null?"":GO(e)}O0.exports=VO});var I0=U((rCe,U0)=>{s();l();u();function WO(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(i);++n<i;)o[n]=e[n+t];return o}U0.exports=WO});var b0=U((aCe,N0)=>{s();l();u();var KO=I0();function zO(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:KO(e,t,r)}N0.exports=zO});var Kl=U((cCe,x0)=>{s();l();u();var YO="\\ud800-\\udfff",HO="\\u0300-\\u036f",XO="\\ufe20-\\ufe2f",JO="\\u20d0-\\u20ff",ZO=HO+XO+JO,QO="\\ufe0e\\ufe0f",$O="\\u200d",eU=RegExp("["+$O+YO+ZO+QO+"]");function tU(e){return eU.test(e)}x0.exports=tU});var M0=U((mCe,B0)=>{s();l();u();function rU(e){return e.split("")}B0.exports=rU});var V0=U((gCe,G0)=>{s();l();u();var _0="\\ud800-\\udfff",nU="\\u0300-\\u036f",iU="\\ufe20-\\ufe2f",oU="\\u20d0-\\u20ff",aU=nU+iU+oU,sU="\\ufe0e\\ufe0f",uU="["+_0+"]",zl="["+aU+"]",Yl="\\ud83c[\\udffb-\\udfff]",lU="(?:"+zl+"|"+Yl+")",P0="[^"+_0+"]",k0="(?:\\ud83c[\\udde6-\\uddff]){2}",w0="[\\ud800-\\udbff][\\udc00-\\udfff]",cU="\\u200d",q0=lU+"?",j0="["+sU+"]?",fU="(?:"+cU+"(?:"+[P0,k0,w0].join("|")+")"+j0+q0+")*",pU=j0+q0+fU,dU="(?:"+[P0+zl+"?",zl,k0,w0,uU].join("|")+")",mU=RegExp(Yl+"(?="+Yl+")|"+dU+pU,"g");function hU(e){return e.match(mU)||[]}G0.exports=hU});var K0=U((ACe,W0)=>{s();l();u();var DU=M0(),EU=Kl(),gU=V0();function CU(e){return EU(e)?gU(e):DU(e)}W0.exports=CU});var Y0=U((LCe,z0)=>{s();l();u();var yU=b0(),SU=Kl(),AU=K0(),TU=io();function FU(e){return function(t){t=TU(t);var r=SU(t)?AU(t):void 0,n=r?r[0]:t.charAt(0),i=r?yU(r,1).join(""):t.slice(1);return n[e]()+i}}z0.exports=FU});var X0=U((ICe,H0)=>{s();l();u();var vU=Y0(),LU=vU("toUpperCase");H0.exports=LU});var Z0=U((BCe,J0)=>{s();l();u();var RU=io(),OU=X0();function UU(e){return OU(RU(e).toLowerCase())}J0.exports=UU});var $0=U((kCe,Q0)=>{s();l();u();function IU(e,t,r,n){var i=-1,o=e==null?0:e.length;for(n&&o&&(r=e[++i]);++i<o;)r=t(r,e[i],i,e);return r}Q0.exports=IU});var tE=U((GCe,eE)=>{s();l();u();function NU(e){return function(t){return e?.[t]}}eE.exports=NU});var nE=U((zCe,rE)=>{s();l();u();var bU=tE(),xU={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},BU=bU(xU);rE.exports=BU});var oE=U((JCe,iE)=>{s();l();u();var MU=nE(),_U=io(),PU=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,kU="\\u0300-\\u036f",wU="\\ufe20-\\ufe2f",qU="\\u20d0-\\u20ff",jU=kU+wU+qU,GU="["+jU+"]",VU=RegExp(GU,"g");function WU(e){return e=_U(e),e&&e.replace(PU,MU).replace(VU,"")}iE.exports=WU});var sE=U((eye,aE)=>{s();l();u();var KU=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function zU(e){return e.match(KU)||[]}aE.exports=zU});var lE=U((iye,uE)=>{s();l();u();var YU=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function HU(e){return YU.test(e)}uE.exports=HU});var OE=U((uye,RE)=>{s();l();u();var mE="\\ud800-\\udfff",XU="\\u0300-\\u036f",JU="\\ufe20-\\ufe2f",ZU="\\u20d0-\\u20ff",QU=XU+JU+ZU,hE="\\u2700-\\u27bf",DE="a-z\\xdf-\\xf6\\xf8-\\xff",$U="\\xac\\xb1\\xd7\\xf7",e4="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",t4="\\u2000-\\u206f",r4=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",EE="A-Z\\xc0-\\xd6\\xd8-\\xde",n4="\\ufe0e\\ufe0f",gE=$U+e4+t4+r4,CE="['\u2019]",cE="["+gE+"]",i4="["+QU+"]",yE="\\d+",o4="["+hE+"]",SE="["+DE+"]",AE="[^"+mE+gE+yE+hE+DE+EE+"]",a4="\\ud83c[\\udffb-\\udfff]",s4="(?:"+i4+"|"+a4+")",u4="[^"+mE+"]",TE="(?:\\ud83c[\\udde6-\\uddff]){2}",FE="[\\ud800-\\udbff][\\udc00-\\udfff]",oo="["+EE+"]",l4="\\u200d",fE="(?:"+SE+"|"+AE+")",c4="(?:"+oo+"|"+AE+")",pE="(?:"+CE+"(?:d|ll|m|re|s|t|ve))?",dE="(?:"+CE+"(?:D|LL|M|RE|S|T|VE))?",vE=s4+"?",LE="["+n4+"]?",f4="(?:"+l4+"(?:"+[u4,TE,FE].join("|")+")"+LE+vE+")*",p4="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",d4="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",m4=LE+vE+f4,h4="(?:"+[o4,TE,FE].join("|")+")"+m4,D4=RegExp([oo+"?"+SE+"+"+pE+"(?="+[cE,oo,"$"].join("|")+")",c4+"+"+dE+"(?="+[cE,oo+fE,"$"].join("|")+")",oo+"?"+fE+"+"+pE,oo+"+"+dE,d4,p4,yE,h4].join("|"),"g");function E4(e){return e.match(D4)||[]}RE.exports=E4});var IE=U((pye,UE)=>{s();l();u();var g4=sE(),C4=lE(),y4=io(),S4=OE();function A4(e,t,r){return e=y4(e),t=r?void 0:t,t===void 0?C4(e)?S4(e):g4(e):e.match(t)||[]}UE.exports=A4});var bE=U((Dye,NE)=>{s();l();u();var T4=$0(),F4=oE(),v4=IE(),L4="['\u2019]",R4=RegExp(L4,"g");function O4(e){return function(t){return T4(v4(F4(t).replace(R4,"")),e,"")}}NE.exports=O4});var BE=U((yye,xE)=>{s();l();u();var U4=Z0(),I4=bE(),N4=I4(function(e,t,r){return t=t.toLowerCase(),e+(r?U4(t):t)});xE.exports=N4});var p1=U((tAe,f1)=>{s();l();u();function xI(){this.__data__=[],this.size=0}f1.exports=xI});var tc=U((oAe,d1)=>{s();l();u();function BI(e,t){return e===t||e!==e&&t!==t}d1.exports=BI});var ya=U((lAe,m1)=>{s();l();u();var MI=tc();function _I(e,t){for(var r=e.length;r--;)if(MI(e[r][0],t))return r;return-1}m1.exports=_I});var D1=U((dAe,h1)=>{s();l();u();var PI=ya(),kI=Array.prototype,wI=kI.splice;function qI(e){var t=this.__data__,r=PI(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():wI.call(t,r,1),--this.size,!0}h1.exports=qI});var g1=U((EAe,E1)=>{s();l();u();var jI=ya();function GI(e){var t=this.__data__,r=jI(t,e);return r<0?void 0:t[r][1]}E1.exports=GI});var y1=U((SAe,C1)=>{s();l();u();var VI=ya();function WI(e){return VI(this.__data__,e)>-1}C1.exports=WI});var A1=U((vAe,S1)=>{s();l();u();var KI=ya();function zI(e,t){var r=this.__data__,n=KI(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}S1.exports=zI});var Sa=U((UAe,T1)=>{s();l();u();var YI=p1(),HI=D1(),XI=g1(),JI=y1(),ZI=A1();function po(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}po.prototype.clear=YI;po.prototype.delete=HI;po.prototype.get=XI;po.prototype.has=JI;po.prototype.set=ZI;T1.exports=po});var v1=U((xAe,F1)=>{s();l();u();var QI=Sa();function $I(){this.__data__=new QI,this.size=0}F1.exports=$I});var R1=U((PAe,L1)=>{s();l();u();function eN(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}L1.exports=eN});var U1=U((jAe,O1)=>{s();l();u();function tN(e){return this.__data__.get(e)}O1.exports=tN});var N1=U((KAe,I1)=>{s();l();u();function rN(e){return this.__data__.has(e)}I1.exports=rN});var Aa=U((XAe,b1)=>{s();l();u();function nN(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}b1.exports=nN});var rc=U(($Ae,x1)=>{s();l();u();var iN=Qn(),oN=Aa(),aN="[object AsyncFunction]",sN="[object Function]",uN="[object GeneratorFunction]",lN="[object Proxy]";function cN(e){if(!oN(e))return!1;var t=iN(e);return t==sN||t==uN||t==aN||t==lN}x1.exports=cN});var M1=U((nTe,B1)=>{s();l();u();var fN=Dr(),pN=fN["__core-js_shared__"];B1.exports=pN});var k1=U((sTe,P1)=>{s();l();u();var nc=M1(),_1=function(){var e=/[^.]+$/.exec(nc&&nc.keys&&nc.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function dN(e){return!!_1&&_1 in e}P1.exports=dN});var ic=U((fTe,w1)=>{s();l();u();var mN=Function.prototype,hN=mN.toString;function DN(e){if(e!=null){try{return hN.call(e)}catch{}try{return e+""}catch{}}return""}w1.exports=DN});var j1=U((hTe,q1)=>{s();l();u();var EN=rc(),gN=k1(),CN=Aa(),yN=ic(),SN=/[\\^$.*+?()[\]{}|]/g,AN=/^\[object .+?Constructor\]$/,TN=Function.prototype,FN=Object.prototype,vN=TN.toString,LN=FN.hasOwnProperty,RN=RegExp("^"+vN.call(LN).replace(SN,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ON(e){if(!CN(e)||gN(e))return!1;var t=EN(e)?RN:AN;return t.test(yN(e))}q1.exports=ON});var V1=U((CTe,G1)=>{s();l();u();function UN(e,t){return e?.[t]}G1.exports=UN});var ni=U((TTe,W1)=>{s();l();u();var IN=j1(),NN=V1();function bN(e,t){var r=NN(e,t);return IN(r)?r:void 0}W1.exports=bN});var mu=U((RTe,K1)=>{s();l();u();var xN=ni(),BN=Dr(),MN=xN(BN,"Map");K1.exports=MN});var Ta=U((NTe,z1)=>{s();l();u();var _N=ni(),PN=_N(Object,"create");z1.exports=PN});var X1=U((MTe,H1)=>{s();l();u();var Y1=Ta();function kN(){this.__data__=Y1?Y1(null):{},this.size=0}H1.exports=kN});var Z1=U((wTe,J1)=>{s();l();u();function wN(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}J1.exports=wN});var $1=U((VTe,Q1)=>{s();l();u();var qN=Ta(),jN="__lodash_hash_undefined__",GN=Object.prototype,VN=GN.hasOwnProperty;function WN(e){var t=this.__data__;if(qN){var r=t[e];return r===jN?void 0:r}return VN.call(t,e)?t[e]:void 0}Q1.exports=WN});var t2=U((YTe,e2)=>{s();l();u();var KN=Ta(),zN=Object.prototype,YN=zN.hasOwnProperty;function HN(e){var t=this.__data__;return KN?t[e]!==void 0:YN.call(t,e)}e2.exports=HN});var n2=U((ZTe,r2)=>{s();l();u();var XN=Ta(),JN="__lodash_hash_undefined__";function ZN(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=XN&&t===void 0?JN:t,this}r2.exports=ZN});var o2=U((tFe,i2)=>{s();l();u();var QN=X1(),$N=Z1(),eb=$1(),tb=t2(),rb=n2();function mo(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}mo.prototype.clear=QN;mo.prototype.delete=$N;mo.prototype.get=eb;mo.prototype.has=tb;mo.prototype.set=rb;i2.exports=mo});var u2=U((oFe,s2)=>{s();l();u();var a2=o2(),nb=Sa(),ib=mu();function ob(){this.size=0,this.__data__={hash:new a2,map:new(ib||nb),string:new a2}}s2.exports=ob});var c2=U((lFe,l2)=>{s();l();u();function ab(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}l2.exports=ab});var Fa=U((dFe,f2)=>{s();l();u();var sb=c2();function ub(e,t){var r=e.__data__;return sb(t)?r[typeof t=="string"?"string":"hash"]:r.map}f2.exports=ub});var d2=U((EFe,p2)=>{s();l();u();var lb=Fa();function cb(e){var t=lb(this,e).delete(e);return this.size-=t?1:0,t}p2.exports=cb});var h2=U((SFe,m2)=>{s();l();u();var fb=Fa();function pb(e){return fb(this,e).get(e)}m2.exports=pb});var E2=U((vFe,D2)=>{s();l();u();var db=Fa();function mb(e){return db(this,e).has(e)}D2.exports=mb});var C2=U((UFe,g2)=>{s();l();u();var hb=Fa();function Db(e,t){var r=hb(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}g2.exports=Db});var hu=U((xFe,y2)=>{s();l();u();var Eb=u2(),gb=d2(),Cb=h2(),yb=E2(),Sb=C2();function ho(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ho.prototype.clear=Eb;ho.prototype.delete=gb;ho.prototype.get=Cb;ho.prototype.has=yb;ho.prototype.set=Sb;y2.exports=ho});var A2=U((PFe,S2)=>{s();l();u();var Ab=Sa(),Tb=mu(),Fb=hu(),vb=200;function Lb(e,t){var r=this.__data__;if(r instanceof Ab){var n=r.__data__;if(!Tb||n.length<vb-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Fb(n)}return r.set(e,t),this.size=r.size,this}S2.exports=Lb});var oc=U((jFe,T2)=>{s();l();u();var Rb=Sa(),Ob=v1(),Ub=R1(),Ib=U1(),Nb=N1(),bb=A2();function Do(e){var t=this.__data__=new Rb(e);this.size=t.size}Do.prototype.clear=Ob;Do.prototype.delete=Ub;Do.prototype.get=Ib;Do.prototype.has=Nb;Do.prototype.set=bb;T2.exports=Do});var v2=U((KFe,F2)=>{s();l();u();var xb="__lodash_hash_undefined__";function Bb(e){return this.__data__.set(e,xb),this}F2.exports=Bb});var R2=U((XFe,L2)=>{s();l();u();function Mb(e){return this.__data__.has(e)}L2.exports=Mb});var U2=U(($Fe,O2)=>{s();l();u();var _b=hu(),Pb=v2(),kb=R2();function Du(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new _b;++t<r;)this.add(e[t])}Du.prototype.add=Du.prototype.push=Pb;Du.prototype.has=kb;O2.exports=Du});var N2=U((nve,I2)=>{s();l();u();function wb(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}I2.exports=wb});var x2=U((sve,b2)=>{s();l();u();function qb(e,t){return e.has(t)}b2.exports=qb});var ac=U((fve,B2)=>{s();l();u();var jb=U2(),Gb=N2(),Vb=x2(),Wb=1,Kb=2;function zb(e,t,r,n,i,o){var a=r&Wb,c=e.length,f=t.length;if(c!=f&&!(a&&f>c))return!1;var E=o.get(e),g=o.get(t);if(E&&g)return E==t&&g==e;var A=-1,y=!0,T=r&Kb?new jb:void 0;for(o.set(e,t),o.set(t,e);++A<c;){var S=e[A],v=t[A];if(n)var L=a?n(v,S,A,t,e,o):n(S,v,A,e,t,o);if(L!==void 0){if(L)continue;y=!1;break}if(T){if(!Gb(t,function(O,N){if(!Vb(T,N)&&(S===O||i(S,O,r,n,o)))return T.push(N)})){y=!1;break}}else if(!(S===v||i(S,v,r,n,o))){y=!1;break}}return o.delete(e),o.delete(t),y}B2.exports=zb});var _2=U((hve,M2)=>{s();l();u();var Yb=Dr(),Hb=Yb.Uint8Array;M2.exports=Hb});var k2=U((Cve,P2)=>{s();l();u();function Xb(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}P2.exports=Xb});var q2=U((Tve,w2)=>{s();l();u();function Jb(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}w2.exports=Jb});var K2=U((Rve,W2)=>{s();l();u();var j2=fa(),G2=_2(),Zb=tc(),Qb=ac(),$b=k2(),ex=q2(),tx=1,rx=2,nx="[object Boolean]",ix="[object Date]",ox="[object Error]",ax="[object Map]",sx="[object Number]",ux="[object RegExp]",lx="[object Set]",cx="[object String]",fx="[object Symbol]",px="[object ArrayBuffer]",dx="[object DataView]",V2=j2?j2.prototype:void 0,sc=V2?V2.valueOf:void 0;function mx(e,t,r,n,i,o,a){switch(r){case dx:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case px:return!(e.byteLength!=t.byteLength||!o(new G2(e),new G2(t)));case nx:case ix:case sx:return Zb(+e,+t);case ox:return e.name==t.name&&e.message==t.message;case ux:case cx:return e==t+"";case ax:var c=$b;case lx:var f=n&tx;if(c||(c=ex),e.size!=t.size&&!f)return!1;var E=a.get(e);if(E)return E==t;n|=rx,a.set(e,t);var g=Qb(c(e),c(t),n,i,o,a);return a.delete(e),g;case fx:if(sc)return sc.call(e)==sc.call(t)}return!1}W2.exports=mx});var Y2=U((Nve,z2)=>{s();l();u();function hx(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}z2.exports=hx});var X2=U((Mve,H2)=>{s();l();u();var Dx=Y2(),Ex=Wt();function gx(e,t,r){var n=t(e);return Ex(e)?n:Dx(n,r(e))}H2.exports=gx});var Z2=U((wve,J2)=>{s();l();u();function Cx(e,t){for(var r=-1,n=e==null?0:e.length,i=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[i++]=a)}return o}J2.exports=Cx});var $2=U((Vve,Q2)=>{s();l();u();function yx(){return[]}Q2.exports=yx});var rg=U((Yve,tg)=>{s();l();u();var Sx=Z2(),Ax=$2(),Tx=Object.prototype,Fx=Tx.propertyIsEnumerable,eg=Object.getOwnPropertySymbols,vx=eg?function(e){return e==null?[]:(e=Object(e),Sx(eg(e),function(t){return Fx.call(e,t)}))}:Ax;tg.exports=vx});var ig=U((Zve,ng)=>{s();l();u();function Lx(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}ng.exports=Lx});var ag=U((tLe,og)=>{s();l();u();var Rx=Qn(),Ox=$n(),Ux="[object Arguments]";function Ix(e){return Ox(e)&&Rx(e)==Ux}og.exports=Ix});var uc=U((oLe,lg)=>{s();l();u();var sg=ag(),Nx=$n(),ug=Object.prototype,bx=ug.hasOwnProperty,xx=ug.propertyIsEnumerable,Bx=sg(function(){return arguments}())?sg:function(e){return Nx(e)&&bx.call(e,"callee")&&!xx.call(e,"callee")};lg.exports=Bx});var fg=U((lLe,cg)=>{s();l();u();function Mx(){return!1}cg.exports=Mx});var lc=U((va,Eo)=>{s();l();u();var _x=Dr(),Px=fg(),mg=typeof va=="object"&&va&&!va.nodeType&&va,pg=mg&&typeof Eo=="object"&&Eo&&!Eo.nodeType&&Eo,kx=pg&&pg.exports===mg,dg=kx?_x.Buffer:void 0,wx=dg?dg.isBuffer:void 0,qx=wx||Px;Eo.exports=qx});var cc=U((DLe,hg)=>{s();l();u();var jx=9007199254740991,Gx=/^(?:0|[1-9]\d*)$/;function Vx(e,t){var r=typeof e;return t=t??jx,!!t&&(r=="number"||r!="symbol"&&Gx.test(e))&&e>-1&&e%1==0&&e<t}hg.exports=Vx});var Eu=U((yLe,Dg)=>{s();l();u();var Wx=9007199254740991;function Kx(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Wx}Dg.exports=Kx});var gg=U((FLe,Eg)=>{s();l();u();var zx=Qn(),Yx=Eu(),Hx=$n(),Xx="[object Arguments]",Jx="[object Array]",Zx="[object Boolean]",Qx="[object Date]",$x="[object Error]",eB="[object Function]",tB="[object Map]",rB="[object Number]",nB="[object Object]",iB="[object RegExp]",oB="[object Set]",aB="[object String]",sB="[object WeakMap]",uB="[object ArrayBuffer]",lB="[object DataView]",cB="[object Float32Array]",fB="[object Float64Array]",pB="[object Int8Array]",dB="[object Int16Array]",mB="[object Int32Array]",hB="[object Uint8Array]",DB="[object Uint8ClampedArray]",EB="[object Uint16Array]",gB="[object Uint32Array]",Se={};Se[cB]=Se[fB]=Se[pB]=Se[dB]=Se[mB]=Se[hB]=Se[DB]=Se[EB]=Se[gB]=!0;Se[Xx]=Se[Jx]=Se[uB]=Se[Zx]=Se[lB]=Se[Qx]=Se[$x]=Se[eB]=Se[tB]=Se[rB]=Se[nB]=Se[iB]=Se[oB]=Se[aB]=Se[sB]=!1;function CB(e){return Hx(e)&&Yx(e.length)&&!!Se[zx(e)]}Eg.exports=CB});var yg=U((OLe,Cg)=>{s();l();u();function yB(e){return function(t){return e(t)}}Cg.exports=yB});var Ag=U((La,go)=>{s();l();u();var SB=Vl(),Sg=typeof La=="object"&&La&&!La.nodeType&&La,Ra=Sg&&typeof go=="object"&&go&&!go.nodeType&&go,AB=Ra&&Ra.exports===Sg,fc=AB&&SB.process,TB=function(){try{var e=Ra&&Ra.require&&Ra.require("util").types;return e||fc&&fc.binding&&fc.binding("util")}catch{}}();go.exports=TB});var pc=U((MLe,vg)=>{s();l();u();var FB=gg(),vB=yg(),Tg=Ag(),Fg=Tg&&Tg.isTypedArray,LB=Fg?vB(Fg):FB;vg.exports=LB});var Rg=U((wLe,Lg)=>{s();l();u();var RB=ig(),OB=uc(),UB=Wt(),IB=lc(),NB=cc(),bB=pc(),xB=Object.prototype,BB=xB.hasOwnProperty;function MB(e,t){var r=UB(e),n=!r&&OB(e),i=!r&&!n&&IB(e),o=!r&&!n&&!i&&bB(e),a=r||n||i||o,c=a?RB(e.length,String):[],f=c.length;for(var E in e)(t||BB.call(e,E))&&!(a&&(E=="length"||i&&(E=="offset"||E=="parent")||o&&(E=="buffer"||E=="byteLength"||E=="byteOffset")||NB(E,f)))&&c.push(E);return c}Lg.exports=MB});var Ug=U((VLe,Og)=>{s();l();u();var _B=Object.prototype;function PB(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||_B;return e===r}Og.exports=PB});var Ng=U((YLe,Ig)=>{s();l();u();function kB(e,t){return function(r){return e(t(r))}}Ig.exports=kB});var xg=U((ZLe,bg)=>{s();l();u();var wB=Ng(),qB=wB(Object.keys,Object);bg.exports=qB});var Mg=U((t8e,Bg)=>{s();l();u();var jB=Ug(),GB=xg(),VB=Object.prototype,WB=VB.hasOwnProperty;function KB(e){if(!jB(e))return GB(e);var t=[];for(var r in Object(e))WB.call(e,r)&&r!="constructor"&&t.push(r);return t}Bg.exports=KB});var Oa=U((o8e,_g)=>{s();l();u();var zB=rc(),YB=Eu();function HB(e){return e!=null&&YB(e.length)&&!zB(e)}_g.exports=HB});var ii=U((l8e,Pg)=>{s();l();u();var XB=Rg(),JB=Mg(),ZB=Oa();function QB(e){return ZB(e)?XB(e):JB(e)}Pg.exports=QB});var wg=U((d8e,kg)=>{s();l();u();var $B=X2(),e9=rg(),t9=ii();function r9(e){return $B(e,t9,e9)}kg.exports=r9});var Gg=U((E8e,jg)=>{s();l();u();var qg=wg(),n9=1,i9=Object.prototype,o9=i9.hasOwnProperty;function a9(e,t,r,n,i,o){var a=r&n9,c=qg(e),f=c.length,E=qg(t),g=E.length;if(f!=g&&!a)return!1;for(var A=f;A--;){var y=c[A];if(!(a?y in t:o9.call(t,y)))return!1}var T=o.get(e),S=o.get(t);if(T&&S)return T==t&&S==e;var v=!0;o.set(e,t),o.set(t,e);for(var L=a;++A<f;){y=c[A];var O=e[y],N=t[y];if(n)var b=a?n(N,O,y,t,e,o):n(O,N,y,e,t,o);if(!(b===void 0?O===N||i(O,N,r,n,o):b)){v=!1;break}L||(L=y=="constructor")}if(v&&!L){var M=e.constructor,_=t.constructor;M!=_&&"constructor"in e&&"constructor"in t&&!(typeof M=="function"&&M instanceof M&&typeof _=="function"&&_ instanceof _)&&(v=!1)}return o.delete(e),o.delete(t),v}jg.exports=a9});var Wg=U((S8e,Vg)=>{s();l();u();var s9=ni(),u9=Dr(),l9=s9(u9,"DataView");Vg.exports=l9});var zg=U((v8e,Kg)=>{s();l();u();var c9=ni(),f9=Dr(),p9=c9(f9,"Promise");Kg.exports=p9});var Hg=U((U8e,Yg)=>{s();l();u();var d9=ni(),m9=Dr(),h9=d9(m9,"Set");Yg.exports=h9});var Jg=U((x8e,Xg)=>{s();l();u();var D9=ni(),E9=Dr(),g9=D9(E9,"WeakMap");Xg.exports=g9});var iC=U((P8e,nC)=>{s();l();u();var dc=Wg(),mc=mu(),hc=zg(),Dc=Hg(),Ec=Jg(),rC=Qn(),Co=ic(),Zg="[object Map]",C9="[object Object]",Qg="[object Promise]",$g="[object Set]",eC="[object WeakMap]",tC="[object DataView]",y9=Co(dc),S9=Co(mc),A9=Co(hc),T9=Co(Dc),F9=Co(Ec),oi=rC;(dc&&oi(new dc(new ArrayBuffer(1)))!=tC||mc&&oi(new mc)!=Zg||hc&&oi(hc.resolve())!=Qg||Dc&&oi(new Dc)!=$g||Ec&&oi(new Ec)!=eC)&&(oi=function(e){var t=rC(e),r=t==C9?e.constructor:void 0,n=r?Co(r):"";if(n)switch(n){case y9:return tC;case S9:return Zg;case A9:return Qg;case T9:return $g;case F9:return eC}return t});nC.exports=oi});var pC=U((j8e,fC)=>{s();l();u();var gc=oc(),v9=ac(),L9=K2(),R9=Gg(),oC=iC(),aC=Wt(),sC=lc(),O9=pc(),U9=1,uC="[object Arguments]",lC="[object Array]",gu="[object Object]",I9=Object.prototype,cC=I9.hasOwnProperty;function N9(e,t,r,n,i,o){var a=aC(e),c=aC(t),f=a?lC:oC(e),E=c?lC:oC(t);f=f==uC?gu:f,E=E==uC?gu:E;var g=f==gu,A=E==gu,y=f==E;if(y&&sC(e)){if(!sC(t))return!1;a=!0,g=!1}if(y&&!g)return o||(o=new gc),a||O9(e)?v9(e,t,r,n,i,o):L9(e,t,f,r,n,i,o);if(!(r&U9)){var T=g&&cC.call(e,"__wrapped__"),S=A&&cC.call(t,"__wrapped__");if(T||S){var v=T?e.value():e,L=S?t.value():t;return o||(o=new gc),i(v,L,r,n,o)}}return y?(o||(o=new gc),R9(e,t,r,n,i,o)):!1}fC.exports=N9});var Cc=U((K8e,hC)=>{s();l();u();var b9=pC(),dC=$n();function mC(e,t,r,n,i){return e===t?!0:e==null||t==null||!dC(e)&&!dC(t)?e!==e&&t!==t:b9(e,t,r,n,mC,i)}hC.exports=mC});var EC=U((X8e,DC)=>{s();l();u();var x9=oc(),B9=Cc(),M9=1,_9=2;function P9(e,t,r,n){var i=r.length,o=i,a=!n;if(e==null)return!o;for(e=Object(e);i--;){var c=r[i];if(a&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++i<o;){c=r[i];var f=c[0],E=e[f],g=c[1];if(a&&c[2]){if(E===void 0&&!(f in e))return!1}else{var A=new x9;if(n)var y=n(E,g,f,e,t,A);if(!(y===void 0?B9(g,E,M9|_9,n,A):y))return!1}}return!0}DC.exports=P9});var yc=U(($8e,gC)=>{s();l();u();var k9=Aa();function w9(e){return e===e&&!k9(e)}gC.exports=w9});var yC=U((n3e,CC)=>{s();l();u();var q9=yc(),j9=ii();function G9(e){for(var t=j9(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,q9(i)]}return t}CC.exports=G9});var Sc=U((s3e,SC)=>{s();l();u();function V9(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}SC.exports=V9});var TC=U((f3e,AC)=>{s();l();u();var W9=EC(),K9=yC(),z9=Sc();function Y9(e){var t=K9(e);return t.length==1&&t[0][2]?z9(t[0][0],t[0][1]):function(r){return r===e||W9(r,e,t)}}AC.exports=Y9});var Cu=U((h3e,FC)=>{s();l();u();var H9=Wt(),X9=da(),J9=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Z9=/^\w*$/;function Q9(e,t){if(H9(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||X9(e)?!0:Z9.test(e)||!J9.test(e)||t!=null&&e in Object(t)}FC.exports=Q9});var RC=U((C3e,LC)=>{s();l();u();var vC=hu(),$9="Expected a function";function Ac(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError($9);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(Ac.Cache||vC),r}Ac.Cache=vC;LC.exports=Ac});var UC=U((T3e,OC)=>{s();l();u();var eM=RC(),tM=500;function rM(e){var t=eM(e,function(n){return r.size===tM&&r.clear(),n}),r=t.cache;return t}OC.exports=rM});var NC=U((R3e,IC)=>{s();l();u();var nM=UC(),iM=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,oM=/\\(\\)?/g,aM=nM(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(iM,function(r,n,i,o){t.push(i?o.replace(oM,"$1"):n||r)}),t});IC.exports=aM});var Tc=U((N3e,bC)=>{s();l();u();var sM=Wt(),uM=Cu(),lM=NC(),cM=io();function fM(e,t){return sM(e)?e:uM(e,t)?[e]:lM(cM(e))}bC.exports=fM});var Ua=U((M3e,xC)=>{s();l();u();var pM=da(),dM=1/0;function mM(e){if(typeof e=="string"||pM(e))return e;var t=e+"";return t=="0"&&1/e==-dM?"-0":t}xC.exports=mM});var Fc=U((w3e,BC)=>{s();l();u();var hM=Tc(),DM=Ua();function EM(e,t){t=hM(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[DM(t[r++])];return r&&r==n?e:void 0}BC.exports=EM});var _C=U((V3e,MC)=>{s();l();u();var gM=Fc();function CM(e,t,r){var n=e==null?void 0:gM(e,t);return n===void 0?r:n}MC.exports=CM});var kC=U((Y3e,PC)=>{s();l();u();function yM(e,t){return e!=null&&t in Object(e)}PC.exports=yM});var qC=U((Z3e,wC)=>{s();l();u();var SM=Tc(),AM=uc(),TM=Wt(),FM=cc(),vM=Eu(),LM=Ua();function RM(e,t,r){t=SM(t,e);for(var n=-1,i=t.length,o=!1;++n<i;){var a=LM(t[n]);if(!(o=e!=null&&r(e,a)))break;e=e[a]}return o||++n!=i?o:(i=e==null?0:e.length,!!i&&vM(i)&&FM(a,i)&&(TM(e)||AM(e)))}wC.exports=RM});var GC=U((tRe,jC)=>{s();l();u();var OM=kC(),UM=qC();function IM(e,t){return e!=null&&UM(e,t,OM)}jC.exports=IM});var WC=U((oRe,VC)=>{s();l();u();var NM=Cc(),bM=_C(),xM=GC(),BM=Cu(),MM=yc(),_M=Sc(),PM=Ua(),kM=1,wM=2;function qM(e,t){return BM(e)&&MM(t)?_M(PM(e),t):function(r){var n=bM(r,e);return n===void 0&&n===t?xM(r,e):NM(t,n,kM|wM)}}VC.exports=qM});var vc=U((lRe,KC)=>{s();l();u();function jM(e){return e}KC.exports=jM});var YC=U((dRe,zC)=>{s();l();u();function GM(e){return function(t){return t?.[e]}}zC.exports=GM});var XC=U((ERe,HC)=>{s();l();u();var VM=Fc();function WM(e){return function(t){return VM(t,e)}}HC.exports=WM});var ZC=U((SRe,JC)=>{s();l();u();var KM=YC(),zM=XC(),YM=Cu(),HM=Ua();function XM(e){return YM(e)?KM(HM(e)):zM(e)}JC.exports=XM});var yu=U((vRe,QC)=>{s();l();u();var JM=TC(),ZM=WC(),QM=vc(),$M=Wt(),e_=ZC();function t_(e){return typeof e=="function"?e:e==null?QM:typeof e=="object"?$M(e)?ZM(e[0],e[1]):JM(e):e_(e)}QC.exports=t_});var ey=U((URe,$C)=>{s();l();u();var r_=yu(),n_=Oa(),i_=ii();function o_(e){return function(t,r,n){var i=Object(t);if(!n_(t)){var o=r_(r,3);t=i_(t),r=function(c){return o(i[c],c,i)}}var a=e(t,r,n);return a>-1?i[o?t[a]:a]:void 0}}$C.exports=o_});var Su=U((xRe,ty)=>{s();l();u();function a_(e,t,r,n){for(var i=e.length,o=r+(n?1:-1);n?o--:++o<i;)if(t(e[o],o,e))return o;return-1}ty.exports=a_});var ny=U((PRe,ry)=>{s();l();u();var s_=/\s/;function u_(e){for(var t=e.length;t--&&s_.test(e.charAt(t)););return t}ry.exports=u_});var oy=U((jRe,iy)=>{s();l();u();var l_=ny(),c_=/^\s+/;function f_(e){return e&&e.slice(0,l_(e)+1).replace(c_,"")}iy.exports=f_});var ly=U((KRe,uy)=>{s();l();u();var p_=oy(),ay=Aa(),d_=da(),sy=NaN,m_=/^[-+]0x[0-9a-f]+$/i,h_=/^0b[01]+$/i,D_=/^0o[0-7]+$/i,E_=parseInt;function g_(e){if(typeof e=="number")return e;if(d_(e))return sy;if(ay(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ay(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=p_(e);var r=h_.test(e);return r||D_.test(e)?E_(e.slice(2),r?2:8):m_.test(e)?sy:+e}uy.exports=g_});var py=U((XRe,fy)=>{s();l();u();var C_=ly(),cy=1/0,y_=17976931348623157e292;function S_(e){if(!e)return e===0?e:0;if(e=C_(e),e===cy||e===-cy){var t=e<0?-1:1;return t*y_}return e===e?e:0}fy.exports=S_});var Au=U(($Re,dy)=>{s();l();u();var A_=py();function T_(e){var t=A_(e),r=t%1;return t===t?r?t-r:t:0}dy.exports=T_});var Lc=U((n7e,my)=>{s();l();u();var F_=Su(),v_=yu(),L_=Au(),R_=Math.max,O_=Math.min;function U_(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var i=n-1;return r!==void 0&&(i=L_(r),i=r<0?R_(n+i,0):O_(i,n-1)),F_(e,v_(t,3),i,!0)}my.exports=U_});var Dy=U((s7e,hy)=>{s();l();u();var I_=ey(),N_=Lc(),b_=I_(N_);hy.exports=b_});var sA=U((L6e,aA)=>{s();l();u();var rq=Su(),nq=yu(),iq=Au(),oq=Math.max;function aq(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var i=r==null?0:iq(r);return i<0&&(i=oq(n+i,0)),rq(e,nq(t,3),i)}aA.exports=aq});var lA=U((I6e,uA)=>{s();l();u();function sq(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}uA.exports=sq});var hf=U((B6e,cA)=>{s();l();u();function uq(e){return function(t,r,n){for(var i=-1,o=Object(t),a=n(t),c=a.length;c--;){var f=a[e?c:++i];if(r(o[f],f,o)===!1)break}return t}}cA.exports=uq});var pA=U((k6e,fA)=>{s();l();u();var lq=hf(),cq=lq();fA.exports=cq});var mA=U((G6e,dA)=>{s();l();u();var fq=pA(),pq=ii();function dq(e,t){return e&&fq(e,t,pq)}dA.exports=dq});var Df=U((z6e,hA)=>{s();l();u();var mq=Oa();function hq(e,t){return function(r,n){if(r==null)return r;if(!mq(r))return e(r,n);for(var i=r.length,o=t?i:-1,a=Object(r);(t?o--:++o<i)&&n(a[o],o,a)!==!1;);return r}}hA.exports=hq});var EA=U((J6e,DA)=>{s();l();u();var Dq=mA(),Eq=Df(),gq=Eq(Dq);DA.exports=gq});var Ef=U((eOe,gA)=>{s();l();u();var Cq=vc();function yq(e){return typeof e=="function"?e:Cq}gA.exports=yq});var ja=U((iOe,CA)=>{s();l();u();var Sq=lA(),Aq=EA(),Tq=Ef(),Fq=Wt();function vq(e,t){var r=Fq(e)?Sq:Aq;return r(e,Tq(t))}CA.exports=vq});var SA=U((uOe,yA)=>{s();l();u();function Lq(e,t){for(var r=e==null?0:e.length;r--&&t(e[r],r,e)!==!1;);return e}yA.exports=Lq});var TA=U((pOe,AA)=>{s();l();u();var Rq=hf(),Oq=Rq(!0);AA.exports=Oq});var vA=U((DOe,FA)=>{s();l();u();var Uq=TA(),Iq=ii();function Nq(e,t){return e&&Uq(e,t,Iq)}FA.exports=Nq});var RA=U((yOe,LA)=>{s();l();u();var bq=vA(),xq=Df(),Bq=xq(bq,!0);LA.exports=Bq});var UA=U((FOe,OA)=>{s();l();u();var Mq=SA(),_q=RA(),Pq=Ef(),kq=Wt();function wq(e,t){var r=kq(e)?Mq:_q;return r(e,Pq(t))}OA.exports=wq});var NA=U((OOe,IA)=>{s();l();u();function qq(e){return e!==e}IA.exports=qq});var xA=U((bOe,bA)=>{s();l();u();function jq(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}bA.exports=jq});var MA=U((_Oe,BA)=>{s();l();u();var Gq=Su(),Vq=NA(),Wq=xA();function Kq(e,t,r){return t===t?Wq(e,t,r):Gq(e,Vq,r)}BA.exports=Kq});var PA=U((qOe,_A)=>{s();l();u();var zq=Qn(),Yq=Wt(),Hq=$n(),Xq="[object String]";function Jq(e){return typeof e=="string"||!Yq(e)&&Hq(e)&&zq(e)==Xq}_A.exports=Jq});var wA=U((WOe,kA)=>{s();l();u();var Zq=Wl();function Qq(e,t){return Zq(t,function(r){return e[r]})}kA.exports=Qq});var jA=U((HOe,qA)=>{s();l();u();var $q=wA(),ej=ii();function tj(e){return e==null?[]:$q(e,ej(e))}qA.exports=tj});var VA=U((QOe,GA)=>{s();l();u();var rj=MA(),nj=Oa(),ij=PA(),oj=Au(),aj=jA(),sj=Math.max;function uj(e,t,r,n){e=nj(e)?e:aj(e),r=r&&!n?oj(r):0;var i=e.length;return r<0&&(r=sj(i+r,0)),ij(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&rj(e,t,r)>-1}GA.exports=uj});var qj={};Bf(qj,{default:()=>wj});s();l();u();s();l();u();s();l();u();s();l();u();s();l();u();s();l();u();s();l();u();s();l();u();s();l();u();s();l();u();s();l();u();s();l();u();s();l();u();var UT=typeof window=="object"&&window&&window.Object===Object&&window,$a=UT;var IT=typeof self=="object"&&self&&self.Object===Object&&self,NT=$a||IT||Function("return this")(),Ge=NT;var bT=Ge.Symbol,Ze=bT;s();l();u();var rd=Object.prototype,xT=rd.hasOwnProperty,BT=rd.toString,jo=Ze?Ze.toStringTag:void 0;function MT(e){var t=xT.call(e,jo),r=e[jo];try{e[jo]=void 0;var n=!0}catch{}var i=BT.call(e);return n&&(t?e[jo]=r:delete e[jo]),i}var nd=MT;s();l();u();var _T=Object.prototype,PT=_T.toString;function kT(e){return PT.call(e)}var id=kT;var wT="[object Null]",qT="[object Undefined]",od=Ze?Ze.toStringTag:void 0;function jT(e){return e==null?e===void 0?qT:wT:od&&od in Object(e)?nd(e):id(e)}var Et=jT;s();l();u();function GT(e){return e!=null&&typeof e=="object"}var ke=GT;var VT="[object Symbol]";function WT(e){return typeof e=="symbol"||ke(e)&&Et(e)==VT}var nr=WT;s();l();u();s();l();u();function KT(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var ir=KT;s();l();u();var zT=Array.isArray,W=zT;var YT=1/0,ad=Ze?Ze.prototype:void 0,sd=ad?ad.toString:void 0;function ud(e){if(typeof e=="string")return e;if(W(e))return ir(e,ud)+"";if(nr(e))return sd?sd.call(e):"";var t=e+"";return t=="0"&&1/e==-YT?"-0":t}var ld=ud;s();l();u();s();l();u();s();l();u();s();l();u();s();l();u();var HT=/\s/;function XT(e){for(var t=e.length;t--&&HT.test(e.charAt(t)););return t}var cd=XT;var JT=/^\s+/;function ZT(e){return e&&e.slice(0,cd(e)+1).replace(JT,"")}var fd=ZT;s();l();u();function QT(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Oe=QT;var pd=NaN,$T=/^[-+]0x[0-9a-f]+$/i,eF=/^0b[01]+$/i,tF=/^0o[0-7]+$/i,rF=parseInt;function nF(e){if(typeof e=="number")return e;if(nr(e))return pd;if(Oe(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Oe(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=fd(e);var r=eF.test(e);return r||tF.test(e)?rF(e.slice(2),r?2:8):$T.test(e)?pd:+e}var dd=nF;var md=1/0,iF=17976931348623157e292;function oF(e){if(!e)return e===0?e:0;if(e=dd(e),e===md||e===-md){var t=e<0?-1:1;return t*iF}return e===e?e:0}var hd=oF;function aF(e){var t=hd(e),r=t%1;return t===t?r?t-r:t:0}var or=aF;s();l();u();function sF(e){return e}var vt=sF;s();l();u();s();l();u();s();l();u();s();l();u();var uF="[object AsyncFunction]",lF="[object Function]",cF="[object GeneratorFunction]",fF="[object Proxy]";function pF(e){if(!Oe(e))return!1;var t=Et(e);return t==lF||t==cF||t==uF||t==fF}var gt=pF;s();l();u();s();l();u();var dF=Ge["__core-js_shared__"],es=dF;var Dd=function(){var e=/[^.]+$/.exec(es&&es.keys&&es.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function mF(e){return!!Dd&&Dd in e}var Ed=mF;s();l();u();var hF=Function.prototype,DF=hF.toString;function EF(e){if(e!=null){try{return DF.call(e)}catch{}try{return e+""}catch{}}return""}var Nr=EF;var gF=/[\\^$.*+?()[\]{}|]/g,CF=/^\[object .+?Constructor\]$/,yF=Function.prototype,SF=Object.prototype,AF=yF.toString,TF=SF.hasOwnProperty,FF=RegExp("^"+AF.call(TF).replace(gF,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function vF(e){if(!Oe(e)||Ed(e))return!1;var t=gt(e)?FF:CF;return t.test(Nr(e))}var gd=vF;s();l();u();function LF(e,t){return e?.[t]}var Cd=LF;function RF(e,t){var r=Cd(e,t);return gd(r)?r:void 0}var Lt=RF;var OF=Lt(Ge,"WeakMap"),ts=OF;s();l();u();var yd=Object.create,UF=function(){function e(){}return function(t){if(!Oe(t))return{};if(yd)return yd(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),Sd=UF;s();l();u();function IF(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var Ad=IF;s();l();u();function NF(){}var Ue=NF;s();l();u();function bF(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var Td=bF;s();l();u();var xF=800,BF=16,MF=Date.now;function _F(e){var t=0,r=0;return function(){var n=MF(),i=BF-(n-r);if(r=n,i>0){if(++t>=xF)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Fd=_F;s();l();u();s();l();u();s();l();u();function PF(e){return function(){return e}}var vd=PF;s();l();u();var kF=function(){try{var e=Lt(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Ai=kF;var wF=Ai?function(e,t){return Ai(e,"toString",{configurable:!0,enumerable:!1,value:vd(t),writable:!0})}:vt,Ld=wF;var qF=Fd(Ld),Rd=qF;s();l();u();function jF(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var rs=jF;s();l();u();s();l();u();s();l();u();function GF(e,t,r,n){for(var i=e.length,o=r+(n?1:-1);n?o--:++o<i;)if(t(e[o],o,e))return o;return-1}var ns=GF;s();l();u();function VF(e){return e!==e}var Od=VF;s();l();u();function WF(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}var Ud=WF;function KF(e,t,r){return t===t?Ud(e,t,r):ns(e,Od,r)}var Ti=KF;function zF(e,t){var r=e==null?0:e.length;return!!r&&Ti(e,t,0)>-1}var is=zF;s();l();u();var YF=9007199254740991,HF=/^(?:0|[1-9]\d*)$/;function XF(e,t){var r=typeof e;return t=t??YF,!!t&&(r=="number"||r!="symbol"&&HF.test(e))&&e>-1&&e%1==0&&e<t}var sn=XF;s();l();u();s();l();u();s();l();u();function JF(e,t,r){t=="__proto__"&&Ai?Ai(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var Fi=JF;s();l();u();function ZF(e,t){return e===t||e!==e&&t!==t}var ar=ZF;var QF=Object.prototype,$F=QF.hasOwnProperty;function ev(e,t,r){var n=e[t];(!($F.call(e,t)&&ar(n,r))||r===void 0&&!(t in e))&&Fi(e,t,r)}var un=ev;s();l();u();function tv(e,t,r,n){var i=!r;r||(r={});for(var o=-1,a=t.length;++o<a;){var c=t[o],f=n?n(r[c],e[c],c,r,e):void 0;f===void 0&&(f=e[c]),i?Fi(r,c,f):un(r,c,f)}return r}var sr=tv;s();l();u();s();l();u();s();l();u();var Id=Math.max;function rv(e,t,r){return t=Id(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=Id(n.length-t,0),a=Array(o);++i<o;)a[i]=n[t+i];i=-1;for(var c=Array(t+1);++i<t;)c[i]=n[i];return c[t]=r(a),Ad(e,this,c)}}var Nd=rv;function nv(e,t){return Rd(Nd(e,t,vt),e+"")}var vi=nv;s();l();u();s();l();u();s();l();u();var iv=9007199254740991;function ov(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=iv}var Li=ov;function av(e){return e!=null&&Li(e.length)&&!gt(e)}var Ve=av;function sv(e,t,r){if(!Oe(r))return!1;var n=typeof t;return(n=="number"?Ve(r)&&sn(t,r.length):n=="string"&&t in r)?ar(r[t],e):!1}var ln=sv;function uv(e){return vi(function(t,r){var n=-1,i=r.length,o=i>1?r[i-1]:void 0,a=i>2?r[2]:void 0;for(o=e.length>3&&typeof o=="function"?(i--,o):void 0,a&&ln(r[0],r[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++n<i;){var c=r[n];c&&e(t,c,n,o)}return t})}var bd=uv;s();l();u();var lv=Object.prototype;function cv(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||lv;return e===r}var ur=cv;s();l();u();s();l();u();s();l();u();function fv(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var xd=fv;s();l();u();s();l();u();var pv="[object Arguments]";function dv(e){return ke(e)&&Et(e)==pv}var ol=dv;var Bd=Object.prototype,mv=Bd.hasOwnProperty,hv=Bd.propertyIsEnumerable,Dv=ol(function(){return arguments}())?ol:function(e){return ke(e)&&mv.call(e,"callee")&&!hv.call(e,"callee")},cn=Dv;s();l();u();s();l();u();function Ev(){return!1}var Md=Ev;var kd=typeof exports=="object"&&exports&&!exports.nodeType&&exports,_d=kd&&typeof module=="object"&&module&&!module.nodeType&&module,gv=_d&&_d.exports===kd,Pd=gv?Ge.Buffer:void 0,Cv=Pd?Pd.isBuffer:void 0,yv=Cv||Md,br=yv;s();l();u();s();l();u();var Sv="[object Arguments]",Av="[object Array]",Tv="[object Boolean]",Fv="[object Date]",vv="[object Error]",Lv="[object Function]",Rv="[object Map]",Ov="[object Number]",Uv="[object Object]",Iv="[object RegExp]",Nv="[object Set]",bv="[object String]",xv="[object WeakMap]",Bv="[object ArrayBuffer]",Mv="[object DataView]",_v="[object Float32Array]",Pv="[object Float64Array]",kv="[object Int8Array]",wv="[object Int16Array]",qv="[object Int32Array]",jv="[object Uint8Array]",Gv="[object Uint8ClampedArray]",Vv="[object Uint16Array]",Wv="[object Uint32Array]",ye={};ye[_v]=ye[Pv]=ye[kv]=ye[wv]=ye[qv]=ye[jv]=ye[Gv]=ye[Vv]=ye[Wv]=!0;ye[Sv]=ye[Av]=ye[Bv]=ye[Tv]=ye[Mv]=ye[Fv]=ye[vv]=ye[Lv]=ye[Rv]=ye[Ov]=ye[Uv]=ye[Iv]=ye[Nv]=ye[bv]=ye[xv]=!1;function Kv(e){return ke(e)&&Li(e.length)&&!!ye[Et(e)]}var wd=Kv;s();l();u();function zv(e){return function(t){return e(t)}}var lr=zv;s();l();u();var qd=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Go=qd&&typeof module=="object"&&module&&!module.nodeType&&module,Yv=Go&&Go.exports===qd,al=Yv&&$a.process,Hv=function(){try{var e=Go&&Go.require&&Go.require("util").types;return e||al&&al.binding&&al.binding("util")}catch{}}(),Gt=Hv;var jd=Gt&&Gt.isTypedArray,Xv=jd?lr(jd):wd,Ri=Xv;var Jv=Object.prototype,Zv=Jv.hasOwnProperty;function Qv(e,t){var r=W(e),n=!r&&cn(e),i=!r&&!n&&br(e),o=!r&&!n&&!i&&Ri(e),a=r||n||i||o,c=a?xd(e.length,String):[],f=c.length;for(var E in e)(t||Zv.call(e,E))&&!(a&&(E=="length"||i&&(E=="offset"||E=="parent")||o&&(E=="buffer"||E=="byteLength"||E=="byteOffset")||sn(E,f)))&&c.push(E);return c}var os=Qv;s();l();u();s();l();u();s();l();u();function $v(e,t){return function(r){return e(t(r))}}var as=$v;var eL=as(Object.keys,Object),Gd=eL;var tL=Object.prototype,rL=tL.hasOwnProperty;function nL(e){if(!ur(e))return Gd(e);var t=[];for(var r in Object(e))rL.call(e,r)&&r!="constructor"&&t.push(r);return t}var ss=nL;function iL(e){return Ve(e)?os(e):ss(e)}var me=iL;var oL=Object.prototype,aL=oL.hasOwnProperty,sL=bd(function(e,t){if(ur(t)||Ve(t)){sr(t,me(t),e);return}for(var r in t)aL.call(t,r)&&un(e,r,t[r])}),ot=sL;s();l();u();s();l();u();s();l();u();function uL(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var Vd=uL;var lL=Object.prototype,cL=lL.hasOwnProperty;function fL(e){if(!Oe(e))return Vd(e);var t=ur(e),r=[];for(var n in e)n=="constructor"&&(t||!cL.call(e,n))||r.push(n);return r}var Wd=fL;function pL(e){return Ve(e)?os(e,!0):Wd(e)}var fn=pL;s();l();u();s();l();u();s();l();u();s();l();u();var dL=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,mL=/^\w*$/;function hL(e,t){if(W(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||nr(e)?!0:mL.test(e)||!dL.test(e)||t!=null&&e in Object(t)}var Oi=hL;s();l();u();s();l();u();s();l();u();s();l();u();s();l();u();s();l();u();s();l();u();s();l();u();var DL=Lt(Object,"create"),xr=DL;function EL(){this.__data__=xr?xr(null):{},this.size=0}var Kd=EL;s();l();u();function gL(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var zd=gL;s();l();u();var CL="__lodash_hash_undefined__",yL=Object.prototype,SL=yL.hasOwnProperty;function AL(e){var t=this.__data__;if(xr){var r=t[e];return r===CL?void 0:r}return SL.call(t,e)?t[e]:void 0}var Yd=AL;s();l();u();var TL=Object.prototype,FL=TL.hasOwnProperty;function vL(e){var t=this.__data__;return xr?t[e]!==void 0:FL.call(t,e)}var Hd=vL;s();l();u();var LL="__lodash_hash_undefined__";function RL(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=xr&&t===void 0?LL:t,this}var Xd=RL;function Ui(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ui.prototype.clear=Kd;Ui.prototype.delete=zd;Ui.prototype.get=Yd;Ui.prototype.has=Hd;Ui.prototype.set=Xd;var sl=Ui;s();l();u();s();l();u();function OL(){this.__data__=[],this.size=0}var Jd=OL;s();l();u();s();l();u();function UL(e,t){for(var r=e.length;r--;)if(ar(e[r][0],t))return r;return-1}var pn=UL;var IL=Array.prototype,NL=IL.splice;function bL(e){var t=this.__data__,r=pn(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():NL.call(t,r,1),--this.size,!0}var Zd=bL;s();l();u();function xL(e){var t=this.__data__,r=pn(t,e);return r<0?void 0:t[r][1]}var Qd=xL;s();l();u();function BL(e){return pn(this.__data__,e)>-1}var $d=BL;s();l();u();function ML(e,t){var r=this.__data__,n=pn(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var em=ML;function Ii(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ii.prototype.clear=Jd;Ii.prototype.delete=Zd;Ii.prototype.get=Qd;Ii.prototype.has=$d;Ii.prototype.set=em;var dn=Ii;s();l();u();var _L=Lt(Ge,"Map"),mn=_L;function PL(){this.size=0,this.__data__={hash:new sl,map:new(mn||dn),string:new sl}}var tm=PL;s();l();u();s();l();u();s();l();u();function kL(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var rm=kL;function wL(e,t){var r=e.__data__;return rm(t)?r[typeof t=="string"?"string":"hash"]:r.map}var hn=wL;function qL(e){var t=hn(this,e).delete(e);return this.size-=t?1:0,t}var nm=qL;s();l();u();function jL(e){return hn(this,e).get(e)}var im=jL;s();l();u();function GL(e){return hn(this,e).has(e)}var om=GL;s();l();u();function VL(e,t){var r=hn(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var am=VL;function Ni(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ni.prototype.clear=tm;Ni.prototype.delete=nm;Ni.prototype.get=im;Ni.prototype.has=om;Ni.prototype.set=am;var Gn=Ni;var WL="Expected a function";function ul(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(WL);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(ul.Cache||Gn),r}ul.Cache=Gn;var sm=ul;var KL=500;function zL(e){var t=sm(e,function(n){return r.size===KL&&r.clear(),n}),r=t.cache;return t}var um=zL;var YL=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,HL=/\\(\\)?/g,XL=um(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(YL,function(r,n,i,o){t.push(i?o.replace(HL,"$1"):n||r)}),t}),lm=XL;s();l();u();function JL(e){return e==null?"":ld(e)}var cm=JL;function ZL(e,t){return W(e)?e:Oi(e,t)?[e]:lm(cm(e))}var Dn=ZL;s();l();u();var QL=1/0;function $L(e){if(typeof e=="string"||nr(e))return e;var t=e+"";return t=="0"&&1/e==-QL?"-0":t}var cr=$L;function e8(e,t){t=Dn(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[cr(t[r++])];return r&&r==n?e:void 0}var bi=e8;function t8(e,t,r){var n=e==null?void 0:bi(e,t);return n===void 0?r:n}var fm=t8;s();l();u();s();l();u();s();l();u();function r8(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var xi=r8;s();l();u();var pm=Ze?Ze.isConcatSpreadable:void 0;function n8(e){return W(e)||cn(e)||!!(pm&&e&&e[pm])}var dm=n8;function mm(e,t,r,n,i){var o=-1,a=e.length;for(r||(r=dm),i||(i=[]);++o<a;){var c=e[o];t>0&&r(c)?t>1?mm(c,t-1,r,n,i):xi(i,c):n||(i[i.length]=c)}return i}var Bi=mm;function i8(e){var t=e==null?0:e.length;return t?Bi(e,1):[]}var we=i8;s();l();u();var o8=as(Object.getPrototypeOf,Object),us=o8;s();l();u();function a8(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(i);++n<i;)o[n]=e[n+t];return o}var ls=a8;s();l();u();function s8(e,t,r,n){var i=-1,o=e==null?0:e.length;for(n&&o&&(r=e[++i]);++i<o;)r=t(r,e[i],i,e);return r}var hm=s8;s();l();u();s();l();u();s();l();u();s();l();u();function u8(){this.__data__=new dn,this.size=0}var Dm=u8;s();l();u();function l8(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var Em=l8;s();l();u();function c8(e){return this.__data__.get(e)}var gm=c8;s();l();u();function f8(e){return this.__data__.has(e)}var Cm=f8;s();l();u();var p8=200;function d8(e,t){var r=this.__data__;if(r instanceof dn){var n=r.__data__;if(!mn||n.length<p8-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Gn(n)}return r.set(e,t),this.size=r.size,this}var ym=d8;function Mi(e){var t=this.__data__=new dn(e);this.size=t.size}Mi.prototype.clear=Dm;Mi.prototype.delete=Em;Mi.prototype.get=gm;Mi.prototype.has=Cm;Mi.prototype.set=ym;var En=Mi;s();l();u();function m8(e,t){return e&&sr(t,me(t),e)}var Sm=m8;s();l();u();function h8(e,t){return e&&sr(t,fn(t),e)}var Am=h8;s();l();u();var Lm=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Tm=Lm&&typeof module=="object"&&module&&!module.nodeType&&module,D8=Tm&&Tm.exports===Lm,Fm=D8?Ge.Buffer:void 0,vm=Fm?Fm.allocUnsafe:void 0;function E8(e,t){if(t)return e.slice();var r=e.length,n=vm?vm(r):new e.constructor(r);return e.copy(n),n}var Rm=E8;s();l();u();s();l();u();s();l();u();function g8(e,t){for(var r=-1,n=e==null?0:e.length,i=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[i++]=a)}return o}var _i=g8;s();l();u();function C8(){return[]}var cs=C8;var y8=Object.prototype,S8=y8.propertyIsEnumerable,Om=Object.getOwnPropertySymbols,A8=Om?function(e){return e==null?[]:(e=Object(e),_i(Om(e),function(t){return S8.call(e,t)}))}:cs,Pi=A8;function T8(e,t){return sr(e,Pi(e),t)}var Um=T8;s();l();u();s();l();u();var F8=Object.getOwnPropertySymbols,v8=F8?function(e){for(var t=[];e;)xi(t,Pi(e)),e=us(e);return t}:cs,fs=v8;function L8(e,t){return sr(e,fs(e),t)}var Im=L8;s();l();u();s();l();u();function R8(e,t,r){var n=t(e);return W(e)?n:xi(n,r(e))}var ps=R8;function O8(e){return ps(e,me,Pi)}var Vo=O8;s();l();u();function U8(e){return ps(e,fn,fs)}var ds=U8;s();l();u();s();l();u();var I8=Lt(Ge,"DataView"),ms=I8;s();l();u();var N8=Lt(Ge,"Promise"),hs=N8;s();l();u();var b8=Lt(Ge,"Set"),gn=b8;var Nm="[object Map]",x8="[object Object]",bm="[object Promise]",xm="[object Set]",Bm="[object WeakMap]",Mm="[object DataView]",B8=Nr(ms),M8=Nr(mn),_8=Nr(hs),P8=Nr(gn),k8=Nr(ts),Vn=Et;(ms&&Vn(new ms(new ArrayBuffer(1)))!=Mm||mn&&Vn(new mn)!=Nm||hs&&Vn(hs.resolve())!=bm||gn&&Vn(new gn)!=xm||ts&&Vn(new ts)!=Bm)&&(Vn=function(e){var t=Et(e),r=t==x8?e.constructor:void 0,n=r?Nr(r):"";if(n)switch(n){case B8:return Mm;case M8:return Nm;case _8:return bm;case P8:return xm;case k8:return Bm}return t});var Xt=Vn;s();l();u();var w8=Object.prototype,q8=w8.hasOwnProperty;function j8(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&q8.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var _m=j8;s();l();u();s();l();u();s();l();u();var G8=Ge.Uint8Array,ki=G8;function V8(e){var t=new e.constructor(e.byteLength);return new ki(t).set(new ki(e)),t}var wi=V8;s();l();u();function W8(e,t){var r=t?wi(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var Pm=W8;s();l();u();var K8=/\w*$/;function z8(e){var t=new e.constructor(e.source,K8.exec(e));return t.lastIndex=e.lastIndex,t}var km=z8;s();l();u();var wm=Ze?Ze.prototype:void 0,qm=wm?wm.valueOf:void 0;function Y8(e){return qm?Object(qm.call(e)):{}}var jm=Y8;s();l();u();function H8(e,t){var r=t?wi(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var Gm=H8;var X8="[object Boolean]",J8="[object Date]",Z8="[object Map]",Q8="[object Number]",$8="[object RegExp]",e3="[object Set]",t3="[object String]",r3="[object Symbol]",n3="[object ArrayBuffer]",i3="[object DataView]",o3="[object Float32Array]",a3="[object Float64Array]",s3="[object Int8Array]",u3="[object Int16Array]",l3="[object Int32Array]",c3="[object Uint8Array]",f3="[object Uint8ClampedArray]",p3="[object Uint16Array]",d3="[object Uint32Array]";function m3(e,t,r){var n=e.constructor;switch(t){case n3:return wi(e);case X8:case J8:return new n(+e);case i3:return Pm(e,r);case o3:case a3:case s3:case u3:case l3:case c3:case f3:case p3:case d3:return Gm(e,r);case Z8:return new n;case Q8:case t3:return new n(e);case $8:return km(e);case e3:return new n;case r3:return jm(e)}}var Vm=m3;s();l();u();function h3(e){return typeof e.constructor=="function"&&!ur(e)?Sd(us(e)):{}}var Wm=h3;s();l();u();s();l();u();var D3="[object Map]";function E3(e){return ke(e)&&Xt(e)==D3}var Km=E3;var zm=Gt&&Gt.isMap,g3=zm?lr(zm):Km,Ym=g3;s();l();u();s();l();u();var C3="[object Set]";function y3(e){return ke(e)&&Xt(e)==C3}var Hm=y3;var Xm=Gt&&Gt.isSet,S3=Xm?lr(Xm):Hm,Jm=S3;var A3=1,T3=2,F3=4,Zm="[object Arguments]",v3="[object Array]",L3="[object Boolean]",R3="[object Date]",O3="[object Error]",Qm="[object Function]",U3="[object GeneratorFunction]",I3="[object Map]",N3="[object Number]",$m="[object Object]",b3="[object RegExp]",x3="[object Set]",B3="[object String]",M3="[object Symbol]",_3="[object WeakMap]",P3="[object ArrayBuffer]",k3="[object DataView]",w3="[object Float32Array]",q3="[object Float64Array]",j3="[object Int8Array]",G3="[object Int16Array]",V3="[object Int32Array]",W3="[object Uint8Array]",K3="[object Uint8ClampedArray]",z3="[object Uint16Array]",Y3="[object Uint32Array]",he={};he[Zm]=he[v3]=he[P3]=he[k3]=he[L3]=he[R3]=he[w3]=he[q3]=he[j3]=he[G3]=he[V3]=he[I3]=he[N3]=he[$m]=he[b3]=he[x3]=he[B3]=he[M3]=he[W3]=he[K3]=he[z3]=he[Y3]=!0;he[O3]=he[Qm]=he[_3]=!1;function Ds(e,t,r,n,i,o){var a,c=t&A3,f=t&T3,E=t&F3;if(r&&(a=i?r(e,n,i,o):r(e)),a!==void 0)return a;if(!Oe(e))return e;var g=W(e);if(g){if(a=_m(e),!c)return Td(e,a)}else{var A=Xt(e),y=A==Qm||A==U3;if(br(e))return Rm(e,c);if(A==$m||A==Zm||y&&!i){if(a=f||y?{}:Wm(e),!c)return f?Im(e,Am(a,e)):Um(e,Sm(a,e))}else{if(!he[A])return i?e:{};a=Vm(e,A,c)}}o||(o=new En);var T=o.get(e);if(T)return T;o.set(e,a),Jm(e)?e.forEach(function(L){a.add(Ds(L,t,r,L,e,o))}):Ym(e)&&e.forEach(function(L,O){a.set(O,Ds(L,t,r,O,e,o))});var S=E?f?ds:Vo:f?fn:me,v=g?void 0:S(e);return rs(v||e,function(L,O){v&&(O=L,L=e[O]),un(a,O,Ds(L,t,r,O,e,o))}),a}var eh=Ds;var H3=4;function X3(e){return eh(e,H3)}var De=X3;s();l();u();function J3(e){for(var t=-1,r=e==null?0:e.length,n=0,i=[];++t<r;){var o=e[t];o&&(i[n++]=o)}return i}var fr=J3;s();l();u();s();l();u();s();l();u();s();l();u();s();l();u();s();l();u();s();l();u();s();l();u();var Z3="__lodash_hash_undefined__";function Q3(e){return this.__data__.set(e,Z3),this}var th=Q3;s();l();u();function $3(e){return this.__data__.has(e)}var rh=$3;function Es(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Gn;++t<r;)this.add(e[t])}Es.prototype.add=Es.prototype.push=th;Es.prototype.has=rh;var qi=Es;s();l();u();function eR(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var gs=eR;s();l();u();function tR(e,t){return e.has(t)}var ji=tR;var rR=1,nR=2;function iR(e,t,r,n,i,o){var a=r&rR,c=e.length,f=t.length;if(c!=f&&!(a&&f>c))return!1;var E=o.get(e),g=o.get(t);if(E&&g)return E==t&&g==e;var A=-1,y=!0,T=r&nR?new qi:void 0;for(o.set(e,t),o.set(t,e);++A<c;){var S=e[A],v=t[A];if(n)var L=a?n(v,S,A,t,e,o):n(S,v,A,e,t,o);if(L!==void 0){if(L)continue;y=!1;break}if(T){if(!gs(t,function(O,N){if(!ji(T,N)&&(S===O||i(S,O,r,n,o)))return T.push(N)})){y=!1;break}}else if(!(S===v||i(S,v,r,n,o))){y=!1;break}}return o.delete(e),o.delete(t),y}var Cs=iR;s();l();u();s();l();u();function oR(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}var nh=oR;s();l();u();function aR(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Gi=aR;var sR=1,uR=2,lR="[object Boolean]",cR="[object Date]",fR="[object Error]",pR="[object Map]",dR="[object Number]",mR="[object RegExp]",hR="[object Set]",DR="[object String]",ER="[object Symbol]",gR="[object ArrayBuffer]",CR="[object DataView]",ih=Ze?Ze.prototype:void 0,ll=ih?ih.valueOf:void 0;function yR(e,t,r,n,i,o,a){switch(r){case CR:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case gR:return!(e.byteLength!=t.byteLength||!o(new ki(e),new ki(t)));case lR:case cR:case dR:return ar(+e,+t);case fR:return e.name==t.name&&e.message==t.message;case mR:case DR:return e==t+"";case pR:var c=nh;case hR:var f=n&sR;if(c||(c=Gi),e.size!=t.size&&!f)return!1;var E=a.get(e);if(E)return E==t;n|=uR,a.set(e,t);var g=Cs(c(e),c(t),n,i,o,a);return a.delete(e),g;case ER:if(ll)return ll.call(e)==ll.call(t)}return!1}var oh=yR;s();l();u();var SR=1,AR=Object.prototype,TR=AR.hasOwnProperty;function FR(e,t,r,n,i,o){var a=r&SR,c=Vo(e),f=c.length,E=Vo(t),g=E.length;if(f!=g&&!a)return!1;for(var A=f;A--;){var y=c[A];if(!(a?y in t:TR.call(t,y)))return!1}var T=o.get(e),S=o.get(t);if(T&&S)return T==t&&S==e;var v=!0;o.set(e,t),o.set(t,e);for(var L=a;++A<f;){y=c[A];var O=e[y],N=t[y];if(n)var b=a?n(N,O,y,t,e,o):n(O,N,y,e,t,o);if(!(b===void 0?O===N||i(O,N,r,n,o):b)){v=!1;break}L||(L=y=="constructor")}if(v&&!L){var M=e.constructor,_=t.constructor;M!=_&&"constructor"in e&&"constructor"in t&&!(typeof M=="function"&&M instanceof M&&typeof _=="function"&&_ instanceof _)&&(v=!1)}return o.delete(e),o.delete(t),v}var ah=FR;var vR=1,sh="[object Arguments]",uh="[object Array]",ys="[object Object]",LR=Object.prototype,lh=LR.hasOwnProperty;function RR(e,t,r,n,i,o){var a=W(e),c=W(t),f=a?uh:Xt(e),E=c?uh:Xt(t);f=f==sh?ys:f,E=E==sh?ys:E;var g=f==ys,A=E==ys,y=f==E;if(y&&br(e)){if(!br(t))return!1;a=!0,g=!1}if(y&&!g)return o||(o=new En),a||Ri(e)?Cs(e,t,r,n,i,o):oh(e,t,f,r,n,i,o);if(!(r&vR)){var T=g&&lh.call(e,"__wrapped__"),S=A&&lh.call(t,"__wrapped__");if(T||S){var v=T?e.value():e,L=S?t.value():t;return o||(o=new En),i(v,L,r,n,o)}}return y?(o||(o=new En),ah(e,t,r,n,i,o)):!1}var ch=RR;function fh(e,t,r,n,i){return e===t?!0:e==null||t==null||!ke(e)&&!ke(t)?e!==e&&t!==t:ch(e,t,r,n,fh,i)}var Ss=fh;var OR=1,UR=2;function IR(e,t,r,n){var i=r.length,o=i,a=!n;if(e==null)return!o;for(e=Object(e);i--;){var c=r[i];if(a&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++i<o;){c=r[i];var f=c[0],E=e[f],g=c[1];if(a&&c[2]){if(E===void 0&&!(f in e))return!1}else{var A=new En;if(n)var y=n(E,g,f,e,t,A);if(!(y===void 0?Ss(g,E,OR|UR,n,A):y))return!1}}return!0}var ph=IR;s();l();u();s();l();u();function NR(e){return e===e&&!Oe(e)}var As=NR;function bR(e){for(var t=me(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,As(i)]}return t}var dh=bR;s();l();u();function xR(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var Ts=xR;function BR(e){var t=dh(e);return t.length==1&&t[0][2]?Ts(t[0][0],t[0][1]):function(r){return r===e||ph(r,e,t)}}var mh=BR;s();l();u();s();l();u();s();l();u();function MR(e,t){return e!=null&&t in Object(e)}var hh=MR;s();l();u();function _R(e,t,r){t=Dn(t,e);for(var n=-1,i=t.length,o=!1;++n<i;){var a=cr(t[n]);if(!(o=e!=null&&r(e,a)))break;e=e[a]}return o||++n!=i?o:(i=e==null?0:e.length,!!i&&Li(i)&&sn(a,i)&&(W(e)||cn(e)))}var Fs=_R;function PR(e,t){return e!=null&&Fs(e,t,hh)}var Dh=PR;var kR=1,wR=2;function qR(e,t){return Oi(e)&&As(t)?Ts(cr(e),t):function(r){var n=fm(r,e);return n===void 0&&n===t?Dh(r,e):Ss(t,n,kR|wR)}}var Eh=qR;s();l();u();s();l();u();function jR(e){return function(t){return t?.[e]}}var gh=jR;s();l();u();function GR(e){return function(t){return bi(t,e)}}var Ch=GR;function VR(e){return Oi(e)?gh(cr(e)):Ch(e)}var yh=VR;function WR(e){return typeof e=="function"?e:e==null?vt:typeof e=="object"?W(e)?Eh(e[0],e[1]):mh(e):yh(e)}var Me=WR;s();l();u();s();l();u();function KR(e,t,r,n){for(var i=-1,o=e==null?0:e.length;++i<o;){var a=e[i];t(n,a,r(a),e)}return n}var Sh=KR;s();l();u();s();l();u();s();l();u();s();l();u();s();l();u();function zR(e){return function(t,r,n){for(var i=-1,o=Object(t),a=n(t),c=a.length;c--;){var f=a[e?c:++i];if(r(o[f],f,o)===!1)break}return t}}var Ah=zR;var YR=Ah(),Th=YR;function HR(e,t){return e&&Th(e,t,me)}var Fh=HR;s();l();u();function XR(e,t){return function(r,n){if(r==null)return r;if(!Ve(r))return e(r,n);for(var i=r.length,o=t?i:-1,a=Object(r);(t?o--:++o<i)&&n(a[o],o,a)!==!1;);return r}}var vh=XR;var JR=vh(Fh),Rt=JR;function ZR(e,t,r,n){return Rt(e,function(i,o,a){t(n,i,r(i),a)}),n}var Lh=ZR;function QR(e,t){return function(r,n){var i=W(r)?Sh:Lh,o=t?t():{};return i(r,e,Me(n,2),o)}}var Rh=QR;s();l();u();var Oh=Object.prototype,$R=Oh.hasOwnProperty,e7=vi(function(e,t){e=Object(e);var r=-1,n=t.length,i=n>2?t[2]:void 0;for(i&&ln(t[0],t[1],i)&&(n=1);++r<n;)for(var o=t[r],a=fn(o),c=-1,f=a.length;++c<f;){var E=a[c],g=e[E];(g===void 0||ar(g,Oh[E])&&!$R.call(e,E))&&(e[E]=o[E])}return e}),Vi=e7;s();l();u();function t7(e){return ke(e)&&Ve(e)}var cl=t7;s();l();u();s();l();u();s();l();u();function r7(e,t,r){for(var n=-1,i=e==null?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}var vs=r7;var n7=200;function i7(e,t,r,n){var i=-1,o=is,a=!0,c=e.length,f=[],E=t.length;if(!c)return f;r&&(t=ir(t,lr(r))),n?(o=vs,a=!1):t.length>=n7&&(o=ji,a=!1,t=new qi(t));e:for(;++i<c;){var g=e[i],A=r==null?g:r(g);if(g=n||g!==0?g:0,a&&A===A){for(var y=E;y--;)if(t[y]===A)continue e;f.push(g)}else o(t,A,n)||f.push(g)}return f}var Uh=i7;var o7=vi(function(e,t){return cl(e)?Uh(e,Bi(t,1,cl,!0)):[]}),Cn=o7;s();l();u();function a7(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var pr=a7;s();l();u();function s7(e,t,r){var n=e==null?0:e.length;return n?(t=r||t===void 0?1:or(t),ls(e,t<0?0:t,n)):[]}var qe=s7;s();l();u();function u7(e,t,r){var n=e==null?0:e.length;return n?(t=r||t===void 0?1:or(t),t=n-t,ls(e,0,t<0?0:t)):[]}var Br=u7;s();l();u();s();l();u();function l7(e){return typeof e=="function"?e:vt}var Ih=l7;function c7(e,t){var r=W(e)?rs:Rt;return r(e,Ih(t))}var j=c7;s();l();u();s();l();u();function f7(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}var Nh=f7;s();l();u();function p7(e,t){var r=!0;return Rt(e,function(n,i,o){return r=!!t(n,i,o),r}),r}var bh=p7;function d7(e,t,r){var n=W(e)?Nh:bh;return r&&ln(e,t,r)&&(t=void 0),n(e,Me(t,3))}var ft=d7;s();l();u();s();l();u();function m7(e,t){var r=[];return Rt(e,function(n,i,o){t(n,i,o)&&r.push(n)}),r}var Ls=m7;function h7(e,t){var r=W(e)?_i:Ls;return r(e,Me(t,3))}var Qe=h7;s();l();u();s();l();u();function D7(e){return function(t,r,n){var i=Object(t);if(!Ve(t)){var o=Me(r,3);t=me(t),r=function(c){return o(i[c],c,i)}}var a=e(t,r,n);return a>-1?i[o?t[a]:a]:void 0}}var xh=D7;s();l();u();var E7=Math.max;function g7(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var i=r==null?0:or(r);return i<0&&(i=E7(n+i,0)),ns(e,Me(t,3),i)}var Bh=g7;var C7=xh(Bh),dr=C7;s();l();u();s();l();u();function y7(e){return e&&e.length?e[0]:void 0}var $e=y7;s();l();u();s();l();u();s();l();u();function S7(e,t){var r=-1,n=Ve(e)?Array(e.length):[];return Rt(e,function(i,o,a){n[++r]=t(i,o,a)}),n}var Mh=S7;function A7(e,t){var r=W(e)?ir:Mh;return r(e,Me(t,3))}var w=A7;function T7(e,t){return Bi(w(e,t),1)}var at=T7;s();l();u();var F7=Object.prototype,v7=F7.hasOwnProperty,L7=Rh(function(e,t,r){v7.call(e,r)?e[r].push(t):Fi(e,r,[t])}),fl=L7;s();l();u();s();l();u();var R7=Object.prototype,O7=R7.hasOwnProperty;function U7(e,t){return e!=null&&O7.call(e,t)}var _h=U7;function I7(e,t){return e!=null&&Fs(e,t,_h)}var V=I7;s();l();u();s();l();u();var N7="[object String]";function b7(e){return typeof e=="string"||!W(e)&&ke(e)&&Et(e)==N7}var Ye=b7;s();l();u();s();l();u();function x7(e,t){return ir(t,function(r){return e[r]})}var Ph=x7;function B7(e){return e==null?[]:Ph(e,me(e))}var le=B7;var M7=Math.max;function _7(e,t,r,n){e=Ve(e)?e:le(e),r=r&&!n?or(r):0;var i=e.length;return r<0&&(r=M7(i+r,0)),Ye(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&Ti(e,t,r)>-1}var Fe=_7;s();l();u();var P7=Math.max;function k7(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var i=r==null?0:or(r);return i<0&&(i=P7(n+i,0)),Ti(e,t,i)}var Rs=k7;s();l();u();var w7="[object Map]",q7="[object Set]",j7=Object.prototype,G7=j7.hasOwnProperty;function V7(e){if(e==null)return!0;if(Ve(e)&&(W(e)||typeof e=="string"||typeof e.splice=="function"||br(e)||Ri(e)||cn(e)))return!e.length;var t=Xt(e);if(t==w7||t==q7)return!e.size;if(ur(e))return!ss(e).length;for(var r in e)if(G7.call(e,r))return!1;return!0}var Q=V7;s();l();u();s();l();u();var W7="[object RegExp]";function K7(e){return ke(e)&&Et(e)==W7}var kh=K7;var wh=Gt&&Gt.isRegExp,z7=wh?lr(wh):kh,Vt=z7;s();l();u();function Y7(e){return e===void 0}var pt=Y7;s();l();u();function H7(e,t){return e<t}var qh=H7;s();l();u();function X7(e,t,r){for(var n=-1,i=e.length;++n<i;){var o=e[n],a=t(o);if(a!=null&&(c===void 0?a===a&&!nr(a):r(a,c)))var c=a,f=o}return f}var jh=X7;s();l();u();function J7(e){return e&&e.length?jh(e,vt,qh):void 0}var Gh=J7;s();l();u();var Z7="Expected a function";function Q7(e){if(typeof e!="function")throw new TypeError(Z7);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}var Vh=Q7;s();l();u();s();l();u();s();l();u();function $7(e,t,r,n){if(!Oe(e))return e;t=Dn(t,e);for(var i=-1,o=t.length,a=o-1,c=e;c!=null&&++i<o;){var f=cr(t[i]),E=r;if(f==="__proto__"||f==="constructor"||f==="prototype")return e;if(i!=a){var g=c[f];E=n?n(g,f,c):void 0,E===void 0&&(E=Oe(g)?g:sn(t[i+1])?[]:{})}un(c,f,E),c=c[f]}return e}var Wh=$7;function e6(e,t,r){for(var n=-1,i=t.length,o={};++n<i;){var a=t[n],c=bi(e,a);r(c,a)&&Wh(o,Dn(a,e),c)}return o}var Kh=e6;function t6(e,t){if(e==null)return{};var r=ir(ds(e),function(n){return[n]});return t=Me(t),Kh(e,r,function(n,i){return t(n,i[0])})}var Ot=t6;s();l();u();s();l();u();function r6(e,t,r,n,i){return i(e,function(o,a,c){r=n?(n=!1,o):t(r,o,a,c)}),r}var zh=r6;function n6(e,t,r){var n=W(e)?hm:zh,i=arguments.length<3;return n(e,Me(t,4),r,i,Rt)}var Ie=n6;s();l();u();function i6(e,t){var r=W(e)?_i:Ls;return r(e,Vh(Me(t,3)))}var yn=i6;s();l();u();s();l();u();function o6(e,t){var r;return Rt(e,function(n,i,o){return r=t(n,i,o),!r}),!!r}var Yh=o6;function a6(e,t,r){var n=W(e)?gs:Yh;return r&&ln(e,t,r)&&(t=void 0),n(e,Me(t,3))}var Wo=a6;s();l();u();s();l();u();var s6=1/0,u6=gn&&1/Gi(new gn([,-0]))[1]==s6?function(e){return new gn(e)}:Ue,Hh=u6;var l6=200;function c6(e,t,r){var n=-1,i=is,o=e.length,a=!0,c=[],f=c;if(r)a=!1,i=vs;else if(o>=l6){var E=t?null:Hh(e);if(E)return Gi(E);a=!1,i=ji,f=new qi}else f=t?[]:c;e:for(;++n<o;){var g=e[n],A=t?t(g):g;if(g=r||g!==0?g:0,a&&A===A){for(var y=f.length;y--;)if(f[y]===A)continue e;t&&f.push(A),c.push(g)}else i(f,A,r)||(f!==c&&f.push(A),c.push(g))}return c}var Os=c6;s();l();u();function f6(e){return e&&e.length?Os(e):[]}var Wi=f6;s();l();u();function p6(e,t){return e&&e.length?Os(e,Me(t,2)):[]}var Xh=p6;s();l();u();s();l();u();function Ki(e){console&&console.error&&console.error(`Error: ${e}`)}function Ko(e){console&&console.warn&&console.warn(`Warning: ${e}`)}s();l();u();function zo(e){let t=new Date().getTime(),r=e();return{time:new Date().getTime()-t,value:r}}s();l();u();function Yo(e){function t(){}t.prototype=e;let r=new t;function n(){return typeof r.bar}return n(),n(),e;(0,eval)(e)}s();l();u();s();l();u();s();l();u();s();l();u();function d6(e){return m6(e)?e.LABEL:e.name}function m6(e){return Ye(e.LABEL)&&e.LABEL!==""}var Bt=class{get definition(){return this._definition}set definition(t){this._definition=t}constructor(t){this._definition=t}accept(t){t.visit(this),j(this.definition,r=>{r.accept(t)})}},oe=class extends Bt{constructor(t){super([]),this.idx=1,ot(this,Ot(t,r=>r!==void 0))}set definition(t){}get definition(){return this.referencedRule!==void 0?this.referencedRule.definition:[]}accept(t){t.visit(this)}},Ct=class extends Bt{constructor(t){super(t.definition),this.orgText="",ot(this,Ot(t,r=>r!==void 0))}},Ee=class extends Bt{constructor(t){super(t.definition),this.ignoreAmbiguities=!1,ot(this,Ot(t,r=>r!==void 0))}},ae=class extends Bt{constructor(t){super(t.definition),this.idx=1,ot(this,Ot(t,r=>r!==void 0))}},ge=class extends Bt{constructor(t){super(t.definition),this.idx=1,ot(this,Ot(t,r=>r!==void 0))}},Ce=class extends Bt{constructor(t){super(t.definition),this.idx=1,ot(this,Ot(t,r=>r!==void 0))}},ne=class extends Bt{constructor(t){super(t.definition),this.idx=1,ot(this,Ot(t,r=>r!==void 0))}},fe=class extends Bt{constructor(t){super(t.definition),this.idx=1,ot(this,Ot(t,r=>r!==void 0))}},pe=class extends Bt{get definition(){return this._definition}set definition(t){this._definition=t}constructor(t){super(t.definition),this.idx=1,this.ignoreAmbiguities=!1,this.hasPredicates=!1,ot(this,Ot(t,r=>r!==void 0))}},$=class{constructor(t){this.idx=1,ot(this,Ot(t,r=>r!==void 0))}accept(t){t.visit(this)}};function Us(e){return w(e,zi)}function zi(e){function t(r){return w(r,zi)}if(e instanceof oe){let r={type:"NonTerminal",name:e.nonTerminalName,idx:e.idx};return Ye(e.label)&&(r.label=e.label),r}else{if(e instanceof Ee)return{type:"Alternative",definition:t(e.definition)};if(e instanceof ae)return{type:"Option",idx:e.idx,definition:t(e.definition)};if(e instanceof ge)return{type:"RepetitionMandatory",idx:e.idx,definition:t(e.definition)};if(e instanceof Ce)return{type:"RepetitionMandatoryWithSeparator",idx:e.idx,separator:zi(new $({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof fe)return{type:"RepetitionWithSeparator",idx:e.idx,separator:zi(new $({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof ne)return{type:"Repetition",idx:e.idx,definition:t(e.definition)};if(e instanceof pe)return{type:"Alternation",idx:e.idx,definition:t(e.definition)};if(e instanceof $){let r={type:"Terminal",name:e.terminalType.name,label:d6(e.terminalType),idx:e.idx};Ye(e.label)&&(r.terminalLabel=e.label);let n=e.terminalType.PATTERN;return e.terminalType.PATTERN&&(r.pattern=Vt(n)?n.source:n),r}else{if(e instanceof Ct)return{type:"Rule",name:e.name,orgText:e.orgText,definition:t(e.definition)};throw Error("non exhaustive match")}}}s();l();u();var yt=class{visit(t){let r=t;switch(r.constructor){case oe:return this.visitNonTerminal(r);case Ee:return this.visitAlternative(r);case ae:return this.visitOption(r);case ge:return this.visitRepetitionMandatory(r);case Ce:return this.visitRepetitionMandatoryWithSeparator(r);case fe:return this.visitRepetitionWithSeparator(r);case ne:return this.visitRepetition(r);case pe:return this.visitAlternation(r);case $:return this.visitTerminal(r);case Ct:return this.visitRule(r);default:throw Error("non exhaustive match")}}visitNonTerminal(t){}visitAlternative(t){}visitOption(t){}visitRepetition(t){}visitRepetitionMandatory(t){}visitRepetitionMandatoryWithSeparator(t){}visitRepetitionWithSeparator(t){}visitAlternation(t){}visitTerminal(t){}visitRule(t){}};s();l();u();function pl(e){return e instanceof Ee||e instanceof ae||e instanceof ne||e instanceof ge||e instanceof Ce||e instanceof fe||e instanceof $||e instanceof Ct}function Wn(e,t=[]){return e instanceof ae||e instanceof ne||e instanceof fe?!0:e instanceof pe?Wo(e.definition,n=>Wn(n,t)):e instanceof oe&&Fe(t,e)?!1:e instanceof Bt?(e instanceof oe&&t.push(e),ft(e.definition,n=>Wn(n,t))):!1}function dl(e){return e instanceof pe}function Ut(e){if(e instanceof oe)return"SUBRULE";if(e instanceof ae)return"OPTION";if(e instanceof pe)return"OR";if(e instanceof ge)return"AT_LEAST_ONE";if(e instanceof Ce)return"AT_LEAST_ONE_SEP";if(e instanceof fe)return"MANY_SEP";if(e instanceof ne)return"MANY";if(e instanceof $)return"CONSUME";throw Error("non exhaustive match")}var Mr=class{walk(t,r=[]){j(t.definition,(n,i)=>{let o=qe(t.definition,i+1);if(n instanceof oe)this.walkProdRef(n,o,r);else if(n instanceof $)this.walkTerminal(n,o,r);else if(n instanceof Ee)this.walkFlat(n,o,r);else if(n instanceof ae)this.walkOption(n,o,r);else if(n instanceof ge)this.walkAtLeastOne(n,o,r);else if(n instanceof Ce)this.walkAtLeastOneSep(n,o,r);else if(n instanceof fe)this.walkManySep(n,o,r);else if(n instanceof ne)this.walkMany(n,o,r);else if(n instanceof pe)this.walkOr(n,o,r);else throw Error("non exhaustive match")})}walkTerminal(t,r,n){}walkProdRef(t,r,n){}walkFlat(t,r,n){let i=r.concat(n);this.walk(t,i)}walkOption(t,r,n){let i=r.concat(n);this.walk(t,i)}walkAtLeastOne(t,r,n){let i=[new ae({definition:t.definition})].concat(r,n);this.walk(t,i)}walkAtLeastOneSep(t,r,n){let i=Jh(t,r,n);this.walk(t,i)}walkMany(t,r,n){let i=[new ae({definition:t.definition})].concat(r,n);this.walk(t,i)}walkManySep(t,r,n){let i=Jh(t,r,n);this.walk(t,i)}walkOr(t,r,n){let i=r.concat(n);j(t.definition,o=>{let a=new Ee({definition:[o]});this.walk(a,i)})}};function Jh(e,t,r){return[new ae({definition:[new $({terminalType:e.separator})].concat(e.definition)})].concat(t,r)}s();l();u();function Kn(e){if(e instanceof oe)return Kn(e.referencedRule);if(e instanceof $)return E6(e);if(pl(e))return h6(e);if(dl(e))return D6(e);throw Error("non exhaustive match")}function h6(e){let t=[],r=e.definition,n=0,i=r.length>n,o,a=!0;for(;i&&a;)o=r[n],a=Wn(o),t=t.concat(Kn(o)),n=n+1,i=r.length>n;return Wi(t)}function D6(e){let t=w(e.definition,r=>Kn(r));return Wi(we(t))}function E6(e){return[e.terminalType]}s();l();u();var Is="_~IN~_";var ml=class extends Mr{constructor(t){super(),this.topProd=t,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(t,r,n){}walkProdRef(t,r,n){let i=g6(t.referencedRule,t.idx)+this.topProd.name,o=r.concat(n),a=new Ee({definition:o}),c=Kn(a);this.follows[i]=c}};function Zh(e){let t={};return j(e,r=>{let n=new ml(r).startWalking();ot(t,n)}),t}function g6(e,t){return e.name+t+Is}s();l();u();s();l();u();s();l();u();s();l();u();s();l();u();s();l();u();function z(e){return e.charCodeAt(0)}function Ns(e,t){Array.isArray(e)?e.forEach(function(r){t.push(r)}):t.push(e)}function Yi(e,t){if(e[t]===!0)throw"duplicate flag "+t;let r=e[t];e[t]=!0}function zn(e){if(e===void 0)throw Error("Internal Error - Should never get here!");return!0}function Ho(){throw Error("Internal Error - Should never get here!")}function hl(e){return e.type==="Character"}s();l();u();var Xo=[];for(let e=z("0");e<=z("9");e++)Xo.push(e);var Jo=[z("_")].concat(Xo);for(let e=z("a");e<=z("z");e++)Jo.push(e);for(let e=z("A");e<=z("Z");e++)Jo.push(e);var Dl=[z(" "),z("\f"),z(`
|
|
2
|
+
`),z("\r"),z(" "),z("\v"),z(" "),z("\xA0"),z("\u1680"),z("\u2000"),z("\u2001"),z("\u2002"),z("\u2003"),z("\u2004"),z("\u2005"),z("\u2006"),z("\u2007"),z("\u2008"),z("\u2009"),z("\u200A"),z("\u2028"),z("\u2029"),z("\u202F"),z("\u205F"),z("\u3000"),z("\uFEFF")];var C6=/[0-9a-fA-F]/,bs=/[0-9]/,y6=/[1-9]/,Zo=class{constructor(){this.idx=0,this.input="",this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(t){this.idx=t.idx,this.input=t.input,this.groupIdx=t.groupIdx}pattern(t){this.idx=0,this.input=t,this.groupIdx=0,this.consumeChar("/");let r=this.disjunction();this.consumeChar("/");let n={type:"Flags",loc:{begin:this.idx,end:t.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};for(;this.isRegExpFlag();)switch(this.popChar()){case"g":Yi(n,"global");break;case"i":Yi(n,"ignoreCase");break;case"m":Yi(n,"multiLine");break;case"u":Yi(n,"unicode");break;case"y":Yi(n,"sticky");break}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:n,value:r,loc:this.loc(0)}}disjunction(){let t=[],r=this.idx;for(t.push(this.alternative());this.peekChar()==="|";)this.consumeChar("|"),t.push(this.alternative());return{type:"Disjunction",value:t,loc:this.loc(r)}}alternative(){let t=[],r=this.idx;for(;this.isTerm();)t.push(this.term());return{type:"Alternative",value:t,loc:this.loc(r)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){let t=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(t)};case"$":return{type:"EndAnchor",loc:this.loc(t)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(t)};case"B":return{type:"NonWordBoundary",loc:this.loc(t)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");let r;switch(this.popChar()){case"=":r="Lookahead";break;case"!":r="NegativeLookahead";break}zn(r);let n=this.disjunction();return this.consumeChar(")"),{type:r,value:n,loc:this.loc(t)}}return Ho()}quantifier(t=!1){let r,n=this.idx;switch(this.popChar()){case"*":r={atLeast:0,atMost:1/0};break;case"+":r={atLeast:1,atMost:1/0};break;case"?":r={atLeast:0,atMost:1};break;case"{":let i=this.integerIncludingZero();switch(this.popChar()){case"}":r={atLeast:i,atMost:i};break;case",":let o;this.isDigit()?(o=this.integerIncludingZero(),r={atLeast:i,atMost:o}):r={atLeast:i,atMost:1/0},this.consumeChar("}");break}if(t===!0&&r===void 0)return;zn(r);break}if(!(t===!0&&r===void 0)&&zn(r))return this.peekChar(0)==="?"?(this.consumeChar("?"),r.greedy=!1):r.greedy=!0,r.type="Quantifier",r.loc=this.loc(n),r}atom(){let t,r=this.idx;switch(this.peekChar()){case".":t=this.dotAll();break;case"\\":t=this.atomEscape();break;case"[":t=this.characterClass();break;case"(":t=this.group();break}return t===void 0&&this.isPatternCharacter()&&(t=this.patternCharacter()),zn(t)?(t.loc=this.loc(r),this.isQuantifier()&&(t.quantifier=this.quantifier()),t):Ho()}dotAll(){return this.consumeChar("."),{type:"Set",complement:!0,value:[z(`
|
|
3
|
+
`),z("\r"),z("\u2028"),z("\u2029")]}}atomEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}decimalEscapeAtom(){return{type:"GroupBackReference",value:this.positiveInteger()}}characterClassEscape(){let t,r=!1;switch(this.popChar()){case"d":t=Xo;break;case"D":t=Xo,r=!0;break;case"s":t=Dl;break;case"S":t=Dl,r=!0;break;case"w":t=Jo;break;case"W":t=Jo,r=!0;break}return zn(t)?{type:"Set",value:t,complement:r}:Ho()}controlEscapeAtom(){let t;switch(this.popChar()){case"f":t=z("\f");break;case"n":t=z(`
|
|
4
|
+
`);break;case"r":t=z("\r");break;case"t":t=z(" ");break;case"v":t=z("\v");break}return zn(t)?{type:"Character",value:t}:Ho()}controlLetterEscapeAtom(){this.consumeChar("c");let t=this.popChar();if(/[a-zA-Z]/.test(t)===!1)throw Error("Invalid ");return{type:"Character",value:t.toUpperCase().charCodeAt(0)-64}}nulCharacterAtom(){return this.consumeChar("0"),{type:"Character",value:z("\0")}}hexEscapeSequenceAtom(){return this.consumeChar("x"),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar("u"),this.parseHexDigits(4)}identityEscapeAtom(){let t=this.popChar();return{type:"Character",value:z(t)}}classPatternCharacterAtom(){switch(this.peekChar()){case`
|
|
5
|
+
`:case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:let t=this.popChar();return{type:"Character",value:z(t)}}}characterClass(){let t=[],r=!1;for(this.consumeChar("["),this.peekChar(0)==="^"&&(this.consumeChar("^"),r=!0);this.isClassAtom();){let n=this.classAtom(),i=n.type==="Character";if(hl(n)&&this.isRangeDash()){this.consumeChar("-");let o=this.classAtom(),a=o.type==="Character";if(hl(o)){if(o.value<n.value)throw Error("Range out of order in character class");t.push({from:n.value,to:o.value})}else Ns(n.value,t),t.push(z("-")),Ns(o.value,t)}else Ns(n.value,t)}return this.consumeChar("]"),{type:"Set",complement:r,value:t}}classAtom(){switch(this.peekChar()){case"]":case`
|
|
6
|
+
`:case"\r":case"\u2028":case"\u2029":throw Error("TBD");case"\\":return this.classEscape();default:return this.classPatternCharacterAtom()}}classEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"b":return this.consumeChar("b"),{type:"Character",value:z("\b")};case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}group(){let t=!0;switch(this.consumeChar("("),this.peekChar(0)){case"?":this.consumeChar("?"),this.consumeChar(":"),t=!1;break;default:this.groupIdx++;break}let r=this.disjunction();this.consumeChar(")");let n={type:"Group",capturing:t,value:r};return t&&(n.idx=this.groupIdx),n}positiveInteger(){let t=this.popChar();if(y6.test(t)===!1)throw Error("Expecting a positive integer");for(;bs.test(this.peekChar(0));)t+=this.popChar();return parseInt(t,10)}integerIncludingZero(){let t=this.popChar();if(bs.test(t)===!1)throw Error("Expecting an integer");for(;bs.test(this.peekChar(0));)t+=this.popChar();return parseInt(t,10)}patternCharacter(){let t=this.popChar();switch(t){case`
|
|
7
|
+
`:case"\r":case"\u2028":case"\u2029":case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":throw Error("TBD");default:return{type:"Character",value:z(t)}}}isRegExpFlag(){switch(this.peekChar(0)){case"g":case"i":case"m":case"u":case"y":return!0;default:return!1}}isRangeDash(){return this.peekChar()==="-"&&this.isClassAtom(1)}isDigit(){return bs.test(this.peekChar(0))}isClassAtom(t=0){switch(this.peekChar(t)){case"]":case`
|
|
8
|
+
`:case"\r":case"\u2028":case"\u2029":return!1;default:return!0}}isTerm(){return this.isAtom()||this.isAssertion()}isAtom(){if(this.isPatternCharacter())return!0;switch(this.peekChar(0)){case".":case"\\":case"[":case"(":return!0;default:return!1}}isAssertion(){switch(this.peekChar(0)){case"^":case"$":return!0;case"\\":switch(this.peekChar(1)){case"b":case"B":return!0;default:return!1}case"(":return this.peekChar(1)==="?"&&(this.peekChar(2)==="="||this.peekChar(2)==="!");default:return!1}}isQuantifier(){let t=this.saveState();try{return this.quantifier(!0)!==void 0}catch{return!1}finally{this.restoreState(t)}}isPatternCharacter(){switch(this.peekChar()){case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":case"/":case`
|
|
9
|
+
`:case"\r":case"\u2028":case"\u2029":return!1;default:return!0}}parseHexDigits(t){let r="";for(let i=0;i<t;i++){let o=this.popChar();if(C6.test(o)===!1)throw Error("Expecting a HexDecimal digits");r+=o}return{type:"Character",value:parseInt(r,16)}}peekChar(t=0){return this.input[this.idx+t]}popChar(){let t=this.peekChar(0);return this.consumeChar(void 0),t}consumeChar(t){if(t!==void 0&&this.input[this.idx]!==t)throw Error("Expected: '"+t+"' but found: '"+this.input[this.idx]+"' at offset: "+this.idx);if(this.idx>=this.input.length)throw Error("Unexpected end of input");this.idx++}loc(t){return{begin:t,end:this.idx}}};s();l();u();var Sn=class{visitChildren(t){for(let r in t){let n=t[r];t.hasOwnProperty(r)&&(n.type!==void 0?this.visit(n):Array.isArray(n)&&n.forEach(i=>{this.visit(i)},this))}}visit(t){switch(t.type){case"Pattern":this.visitPattern(t);break;case"Flags":this.visitFlags(t);break;case"Disjunction":this.visitDisjunction(t);break;case"Alternative":this.visitAlternative(t);break;case"StartAnchor":this.visitStartAnchor(t);break;case"EndAnchor":this.visitEndAnchor(t);break;case"WordBoundary":this.visitWordBoundary(t);break;case"NonWordBoundary":this.visitNonWordBoundary(t);break;case"Lookahead":this.visitLookahead(t);break;case"NegativeLookahead":this.visitNegativeLookahead(t);break;case"Character":this.visitCharacter(t);break;case"Set":this.visitSet(t);break;case"Group":this.visitGroup(t);break;case"GroupBackReference":this.visitGroupBackReference(t);break;case"Quantifier":this.visitQuantifier(t);break}this.visitChildren(t)}visitPattern(t){}visitFlags(t){}visitDisjunction(t){}visitAlternative(t){}visitStartAnchor(t){}visitEndAnchor(t){}visitWordBoundary(t){}visitNonWordBoundary(t){}visitLookahead(t){}visitNegativeLookahead(t){}visitCharacter(t){}visitSet(t){}visitGroup(t){}visitGroupBackReference(t){}visitQuantifier(t){}};s();l();u();s();l();u();var xs={},S6=new Zo;function Hi(e){let t=e.toString();if(xs.hasOwnProperty(t))return xs[t];{let r=S6.pattern(t);return xs[t]=r,r}}function Qh(){xs={}}var eD="Complement Sets are not supported for first char optimization",Qo=`Unable to use "first char" lexer optimizations:
|
|
10
|
+
`;function tD(e,t=!1){try{let r=Hi(e);return El(r.value,{},r.flags.ignoreCase)}catch(r){if(r.message===eD)t&&Ko(`${Qo} Unable to optimize: < ${e.toString()} >
|
|
11
|
+
Complement Sets cannot be automatically optimized.
|
|
12
|
+
This will disable the lexer's first char optimizations.
|
|
13
|
+
See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.`);else{let n="";t&&(n=`
|
|
14
|
+
This will disable the lexer's first char optimizations.
|
|
15
|
+
See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details.`),Ki(`${Qo}
|
|
16
|
+
Failed parsing: < ${e.toString()} >
|
|
17
|
+
Using the @chevrotain/regexp-to-ast library
|
|
18
|
+
Please open an issue at: https://github.com/chevrotain/chevrotain/issues`+n)}}return[]}function El(e,t,r){switch(e.type){case"Disjunction":for(let i=0;i<e.value.length;i++)El(e.value[i],t,r);break;case"Alternative":let n=e.value;for(let i=0;i<n.length;i++){let o=n[i];switch(o.type){case"EndAnchor":case"GroupBackReference":case"Lookahead":case"NegativeLookahead":case"StartAnchor":case"WordBoundary":case"NonWordBoundary":continue}let a=o;switch(a.type){case"Character":Bs(a.value,t,r);break;case"Set":if(a.complement===!0)throw Error(eD);j(a.value,f=>{if(typeof f=="number")Bs(f,t,r);else{let E=f;if(r===!0)for(let g=E.from;g<=E.to;g++)Bs(g,t,r);else{for(let g=E.from;g<=E.to&&g<Xi;g++)Bs(g,t,r);if(E.to>=Xi){let g=E.from>=Xi?E.from:Xi,A=E.to,y=mr(g),T=mr(A);for(let S=y;S<=T;S++)t[S]=S}}}});break;case"Group":El(a.value,t,r);break;default:throw Error("Non Exhaustive Match")}let c=a.quantifier!==void 0&&a.quantifier.atLeast===0;if(a.type==="Group"&&gl(a)===!1||a.type!=="Group"&&c===!1)break}break;default:throw Error("non exhaustive match!")}return le(t)}function Bs(e,t,r){let n=mr(e);t[n]=n,r===!0&&A6(e,t)}function A6(e,t){let r=String.fromCharCode(e),n=r.toUpperCase();if(n!==r){let i=mr(n.charCodeAt(0));t[i]=i}else{let i=r.toLowerCase();if(i!==r){let o=mr(i.charCodeAt(0));t[o]=o}}}function $h(e,t){return dr(e.value,r=>{if(typeof r=="number")return Fe(t,r);{let n=r;return dr(t,i=>n.from<=i&&i<=n.to)!==void 0}})}function gl(e){let t=e.quantifier;return t&&t.atLeast===0?!0:e.value?W(e.value)?ft(e.value,gl):gl(e.value):!1}var Cl=class extends Sn{constructor(t){super(),this.targetCharCodes=t,this.found=!1}visitChildren(t){if(this.found!==!0){switch(t.type){case"Lookahead":this.visitLookahead(t);return;case"NegativeLookahead":this.visitNegativeLookahead(t);return}super.visitChildren(t)}}visitCharacter(t){Fe(this.targetCharCodes,t.value)&&(this.found=!0)}visitSet(t){t.complement?$h(t,this.targetCharCodes)===void 0&&(this.found=!0):$h(t,this.targetCharCodes)!==void 0&&(this.found=!0)}};function Ms(e,t){if(t instanceof RegExp){let r=Hi(t),n=new Cl(e);return n.visit(r),n.found}else return dr(t,r=>Fe(e,r.charCodeAt(0)))!==void 0}var Yn="PATTERN",Ji="defaultMode",_s="modes",Sl=typeof new RegExp("(?:)").sticky=="boolean";function iD(e,t){t=Vi(t,{useSticky:Sl,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r",`
|
|
19
|
+
`],tracer:(N,b)=>b()});let r=t.tracer;r("initCharCodeToOptimizedIndexMap",()=>{q6()});let n;r("Reject Lexer.NA",()=>{n=yn(e,N=>N[Yn]===se.NA)});let i=!1,o;r("Transform Patterns",()=>{i=!1,o=w(n,N=>{let b=N[Yn];if(Vt(b)){let M=b.source;return M.length===1&&M!=="^"&&M!=="$"&&M!=="."&&!b.ignoreCase?M:M.length===2&&M[0]==="\\"&&!Fe(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],M[1])?M[1]:t.useSticky?nD(b):rD(b)}else{if(gt(b))return i=!0,{exec:b};if(typeof b=="object")return i=!0,b;if(typeof b=="string"){if(b.length===1)return b;{let M=b.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),_=new RegExp(M);return t.useSticky?nD(_):rD(_)}}else throw Error("non exhaustive match")}})});let a,c,f,E,g;r("misc mapping",()=>{a=w(n,N=>N.tokenTypeIdx),c=w(n,N=>{let b=N.GROUP;if(b!==se.SKIPPED){if(Ye(b))return b;if(pt(b))return!1;throw Error("non exhaustive match")}}),f=w(n,N=>{let b=N.LONGER_ALT;if(b)return W(b)?w(b,_=>Rs(n,_)):[Rs(n,b)]}),E=w(n,N=>N.PUSH_MODE),g=w(n,N=>V(N,"POP_MODE"))});let A;r("Line Terminator Handling",()=>{let N=pD(t.lineTerminatorCharacters);A=w(n,b=>!1),t.positionTracking!=="onlyOffset"&&(A=w(n,b=>V(b,"LINE_BREAKS")?!!b.LINE_BREAKS:fD(b,N)===!1&&Ms(N,b.PATTERN)))});let y,T,S,v;r("Misc Mapping #2",()=>{y=w(n,lD),T=w(o,k6),S=Ie(n,(N,b)=>{let M=b.GROUP;return Ye(M)&&M!==se.SKIPPED&&(N[M]=[]),N},{}),v=w(o,(N,b)=>({pattern:o[b],longerAlt:f[b],canLineTerminator:A[b],isCustom:y[b],short:T[b],group:c[b],push:E[b],pop:g[b],tokenTypeIdx:a[b],tokenType:n[b]}))});let L=!0,O=[];return t.safeMode||r("First Char Optimization",()=>{O=Ie(n,(N,b,M)=>{if(typeof b.PATTERN=="string"){let _=b.PATTERN.charCodeAt(0),K=mr(_);yl(N,K,v[M])}else if(W(b.START_CHARS_HINT)){let _;j(b.START_CHARS_HINT,K=>{let J=typeof K=="string"?K.charCodeAt(0):K,re=mr(J);_!==re&&(_=re,yl(N,re,v[M]))})}else if(Vt(b.PATTERN))if(b.PATTERN.unicode)L=!1,t.ensureOptimizations&&Ki(`${Qo} Unable to analyze < ${b.PATTERN.toString()} > pattern.
|
|
20
|
+
The regexp unicode flag is not currently supported by the regexp-to-ast library.
|
|
21
|
+
This will disable the lexer's first char optimizations.
|
|
22
|
+
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`);else{let _=tD(b.PATTERN,t.ensureOptimizations);Q(_)&&(L=!1),j(_,K=>{yl(N,K,v[M])})}else t.ensureOptimizations&&Ki(`${Qo} TokenType: <${b.name}> is using a custom token pattern without providing <start_chars_hint> parameter.
|
|
23
|
+
This will disable the lexer's first char optimizations.
|
|
24
|
+
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),L=!1;return N},[])}),{emptyGroups:S,patternIdxToConfig:v,charCodeToPatternIdxToConfig:O,hasCustom:i,canBeOptimized:L}}function oD(e,t){let r=[],n=F6(e);r=r.concat(n.errors);let i=v6(n.valid),o=i.valid;return r=r.concat(i.errors),r=r.concat(T6(o)),r=r.concat(x6(o)),r=r.concat(B6(o,t)),r=r.concat(M6(o)),r}function T6(e){let t=[],r=Qe(e,n=>Vt(n[Yn]));return t=t.concat(R6(r)),t=t.concat(I6(r)),t=t.concat(N6(r)),t=t.concat(b6(r)),t=t.concat(O6(r)),t}function F6(e){let t=Qe(e,i=>!V(i,Yn)),r=w(t,i=>({message:"Token Type: ->"+i.name+"<- missing static 'PATTERN' property",type:ve.MISSING_PATTERN,tokenTypes:[i]})),n=Cn(e,t);return{errors:r,valid:n}}function v6(e){let t=Qe(e,i=>{let o=i[Yn];return!Vt(o)&&!gt(o)&&!V(o,"exec")&&!Ye(o)}),r=w(t,i=>({message:"Token Type: ->"+i.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:ve.INVALID_PATTERN,tokenTypes:[i]})),n=Cn(e,t);return{errors:r,valid:n}}var L6=/[^\\][$]/;function R6(e){class t extends Sn{constructor(){super(...arguments),this.found=!1}visitEndAnchor(o){this.found=!0}}let r=Qe(e,i=>{let o=i.PATTERN;try{let a=Hi(o),c=new t;return c.visit(a),c.found}catch{return L6.test(o.source)}});return w(r,i=>({message:`Unexpected RegExp Anchor Error:
|
|
25
|
+
Token Type: ->`+i.name+`<- static 'PATTERN' cannot contain end of input anchor '$'
|
|
26
|
+
See chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:ve.EOI_ANCHOR_FOUND,tokenTypes:[i]}))}function O6(e){let t=Qe(e,n=>n.PATTERN.test(""));return w(t,n=>({message:"Token Type: ->"+n.name+"<- static 'PATTERN' must not match an empty string",type:ve.EMPTY_MATCH_PATTERN,tokenTypes:[n]}))}var U6=/[^\\[][\^]|^\^/;function I6(e){class t extends Sn{constructor(){super(...arguments),this.found=!1}visitStartAnchor(o){this.found=!0}}let r=Qe(e,i=>{let o=i.PATTERN;try{let a=Hi(o),c=new t;return c.visit(a),c.found}catch{return U6.test(o.source)}});return w(r,i=>({message:`Unexpected RegExp Anchor Error:
|
|
27
|
+
Token Type: ->`+i.name+`<- static 'PATTERN' cannot contain start of input anchor '^'
|
|
28
|
+
See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:ve.SOI_ANCHOR_FOUND,tokenTypes:[i]}))}function N6(e){let t=Qe(e,n=>{let i=n[Yn];return i instanceof RegExp&&(i.multiline||i.global)});return w(t,n=>({message:"Token Type: ->"+n.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:ve.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[n]}))}function b6(e){let t=[],r=w(e,o=>Ie(e,(a,c)=>(o.PATTERN.source===c.PATTERN.source&&!Fe(t,c)&&c.PATTERN!==se.NA&&(t.push(c),a.push(c)),a),[]));r=fr(r);let n=Qe(r,o=>o.length>1);return w(n,o=>{let a=w(o,f=>f.name);return{message:`The same RegExp pattern ->${$e(o).PATTERN}<-has been used in all of the following Token Types: ${a.join(", ")} <-`,type:ve.DUPLICATE_PATTERNS_FOUND,tokenTypes:o}})}function x6(e){let t=Qe(e,n=>{if(!V(n,"GROUP"))return!1;let i=n.GROUP;return i!==se.SKIPPED&&i!==se.NA&&!Ye(i)});return w(t,n=>({message:"Token Type: ->"+n.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:ve.INVALID_GROUP_TYPE_FOUND,tokenTypes:[n]}))}function B6(e,t){let r=Qe(e,i=>i.PUSH_MODE!==void 0&&!Fe(t,i.PUSH_MODE));return w(r,i=>({message:`Token Type: ->${i.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${i.PUSH_MODE}<-which does not exist`,type:ve.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[i]}))}function M6(e){let t=[],r=Ie(e,(n,i,o)=>{let a=i.PATTERN;return a===se.NA||(Ye(a)?n.push({str:a,idx:o,tokenType:i}):Vt(a)&&P6(a)&&n.push({str:a.source,idx:o,tokenType:i})),n},[]);return j(e,(n,i)=>{j(r,({str:o,idx:a,tokenType:c})=>{if(i<a&&_6(o,n.PATTERN)){let f=`Token: ->${c.name}<- can never be matched.
|
|
29
|
+
Because it appears AFTER the Token Type ->${n.name}<-in the lexer's definition.
|
|
30
|
+
See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;t.push({message:f,type:ve.UNREACHABLE_PATTERN,tokenTypes:[n,c]})}})}),t}function _6(e,t){if(Vt(t)){let r=t.exec(e);return r!==null&&r.index===0}else{if(gt(t))return t(e,0,[],{});if(V(t,"exec"))return t.exec(e,0,[],{});if(typeof t=="string")return t===e;throw Error("non exhaustive match")}}function P6(e){return dr([".","\\","[","]","|","^","$","(",")","?","*","+","{"],r=>e.source.indexOf(r)!==-1)===void 0}function rD(e){let t=e.ignoreCase?"i":"";return new RegExp(`^(?:${e.source})`,t)}function nD(e){let t=e.ignoreCase?"iy":"y";return new RegExp(`${e.source}`,t)}function aD(e,t,r){let n=[];return V(e,Ji)||n.push({message:"A MultiMode Lexer cannot be initialized without a <"+Ji+`> property in its definition
|
|
31
|
+
`,type:ve.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),V(e,_s)||n.push({message:"A MultiMode Lexer cannot be initialized without a <"+_s+`> property in its definition
|
|
32
|
+
`,type:ve.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),V(e,_s)&&V(e,Ji)&&!V(e.modes,e.defaultMode)&&n.push({message:`A MultiMode Lexer cannot be initialized with a ${Ji}: <${e.defaultMode}>which does not exist
|
|
33
|
+
`,type:ve.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),V(e,_s)&&j(e.modes,(i,o)=>{j(i,(a,c)=>{if(pt(a))n.push({message:`A Lexer cannot be initialized using an undefined Token Type. Mode:<${o}> at index: <${c}>
|
|
34
|
+
`,type:ve.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED});else if(V(a,"LONGER_ALT")){let f=W(a.LONGER_ALT)?a.LONGER_ALT:[a.LONGER_ALT];j(f,E=>{!pt(E)&&!Fe(i,E)&&n.push({message:`A MultiMode Lexer cannot be initialized with a longer_alt <${E.name}> on token <${a.name}> outside of mode <${o}>
|
|
35
|
+
`,type:ve.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE})})}})}),n}function sD(e,t,r){let n=[],i=!1,o=fr(we(le(e.modes))),a=yn(o,f=>f[Yn]===se.NA),c=pD(r);return t&&j(a,f=>{let E=fD(f,c);if(E!==!1){let A={message:w6(f,E),type:E.issue,tokenType:f};n.push(A)}else V(f,"LINE_BREAKS")?f.LINE_BREAKS===!0&&(i=!0):Ms(c,f.PATTERN)&&(i=!0)}),t&&!i&&n.push({message:`Warning: No LINE_BREAKS Found.
|
|
36
|
+
This Lexer has been defined to track line and column information,
|
|
37
|
+
But none of the Token Types can be identified as matching a line terminator.
|
|
38
|
+
See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS
|
|
39
|
+
for details.`,type:ve.NO_LINE_BREAKS_FLAGS}),n}function uD(e){let t={},r=me(e);return j(r,n=>{let i=e[n];if(W(i))t[n]=[];else throw Error("non exhaustive match")}),t}function lD(e){let t=e.PATTERN;if(Vt(t))return!1;if(gt(t))return!0;if(V(t,"exec"))return!0;if(Ye(t))return!1;throw Error("non exhaustive match")}function k6(e){return Ye(e)&&e.length===1?e.charCodeAt(0):!1}var cD={test:function(e){let t=e.length;for(let r=this.lastIndex;r<t;r++){let n=e.charCodeAt(r);if(n===10)return this.lastIndex=r+1,!0;if(n===13)return e.charCodeAt(r+1)===10?this.lastIndex=r+2:this.lastIndex=r+1,!0}return!1},lastIndex:0};function fD(e,t){if(V(e,"LINE_BREAKS"))return!1;if(Vt(e.PATTERN)){try{Ms(t,e.PATTERN)}catch(r){return{issue:ve.IDENTIFY_TERMINATOR,errMsg:r.message}}return!1}else{if(Ye(e.PATTERN))return!1;if(lD(e))return{issue:ve.CUSTOM_LINE_BREAK};throw Error("non exhaustive match")}}function w6(e,t){if(t.issue===ve.IDENTIFY_TERMINATOR)return`Warning: unable to identify line terminator usage in pattern.
|
|
40
|
+
The problem is in the <${e.name}> Token Type
|
|
41
|
+
Root cause: ${t.errMsg}.
|
|
42
|
+
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR`;if(t.issue===ve.CUSTOM_LINE_BREAK)return`Warning: A Custom Token Pattern should specify the <line_breaks> option.
|
|
43
|
+
The problem is in the <${e.name}> Token Type
|
|
44
|
+
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK`;throw Error("non exhaustive match")}function pD(e){return w(e,r=>Ye(r)?r.charCodeAt(0):r)}function yl(e,t,r){e[t]===void 0?e[t]=[r]:e[t].push(r)}var Xi=256,Ps=[];function mr(e){return e<Xi?e:Ps[e]}function q6(){if(Q(Ps)){Ps=new Array(65536);for(let e=0;e<65536;e++)Ps[e]=e>255?255+~~(e/255):e}}s();l();u();function _r(e,t){let r=e.tokenTypeIdx;return r===t.tokenTypeIdx?!0:t.isParent===!0&&t.categoryMatchesMap[r]===!0}function Zi(e,t){return e.tokenTypeIdx===t.tokenTypeIdx}var dD=1,hD={};function Pr(e){let t=j6(e);G6(t),W6(t),V6(t),j(t,r=>{r.isParent=r.categoryMatches.length>0})}function j6(e){let t=De(e),r=e,n=!0;for(;n;){r=fr(we(w(r,o=>o.CATEGORIES)));let i=Cn(r,t);t=t.concat(i),Q(i)?n=!1:r=i}return t}function G6(e){j(e,t=>{Al(t)||(hD[dD]=t,t.tokenTypeIdx=dD++),mD(t)&&!W(t.CATEGORIES)&&(t.CATEGORIES=[t.CATEGORIES]),mD(t)||(t.CATEGORIES=[]),K6(t)||(t.categoryMatches=[]),z6(t)||(t.categoryMatchesMap={})})}function V6(e){j(e,t=>{t.categoryMatches=[],j(t.categoryMatchesMap,(r,n)=>{t.categoryMatches.push(hD[n].tokenTypeIdx)})})}function W6(e){j(e,t=>{DD([],t)})}function DD(e,t){j(e,r=>{t.categoryMatchesMap[r.tokenTypeIdx]=!0}),j(t.CATEGORIES,r=>{let n=e.concat(t);Fe(n,r)||DD(n,r)})}function Al(e){return V(e,"tokenTypeIdx")}function mD(e){return V(e,"CATEGORIES")}function K6(e){return V(e,"categoryMatches")}function z6(e){return V(e,"categoryMatchesMap")}function ED(e){return V(e,"tokenTypeIdx")}s();l();u();var Tl={buildUnableToPopLexerModeMessage(e){return`Unable to pop Lexer Mode after encountering Token ->${e.image}<- The Mode Stack is empty`},buildUnexpectedCharactersMessage(e,t,r,n,i){return`unexpected character: ->${e.charAt(t)}<- at offset: ${t}, skipped ${r} characters.`}};var ve;(function(e){e[e.MISSING_PATTERN=0]="MISSING_PATTERN",e[e.INVALID_PATTERN=1]="INVALID_PATTERN",e[e.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",e[e.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",e[e.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",e[e.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",e[e.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",e[e.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",e[e.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",e[e.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",e[e.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",e[e.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",e[e.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",e[e.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",e[e.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",e[e.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",e[e.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK",e[e.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE=17]="MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE"})(ve||(ve={}));var $o={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[`
|
|
45
|
+
`,"\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:Tl,traceInitPerf:!1,skipValidations:!1,recoveryEnabled:!0};Object.freeze($o);var se=class{constructor(t,r=$o){if(this.lexerDefinition=t,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},this.TRACE_INIT=(i,o)=>{if(this.traceInitPerf===!0){this.traceInitIndent++;let a=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&console.log(`${a}--> <${i}>`);let{time:c,value:f}=zo(o),E=c>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&E(`${a}<-- <${i}> time: ${c}ms`),this.traceInitIndent--,f}else return o()},typeof r=="boolean")throw Error(`The second argument to the Lexer constructor is now an ILexerConfig Object.
|
|
46
|
+
a boolean 2nd argument is no longer supported`);this.config=ot({},$o,r);let n=this.config.traceInitPerf;n===!0?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):typeof n=="number"&&(this.traceInitMaxIdent=n,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",()=>{let i,o=!0;this.TRACE_INIT("Lexer Config handling",()=>{if(this.config.lineTerminatorsPattern===$o.lineTerminatorsPattern)this.config.lineTerminatorsPattern=cD;else if(this.config.lineTerminatorCharacters===$o.lineTerminatorCharacters)throw Error(`Error: Missing <lineTerminatorCharacters> property on the Lexer config.
|
|
47
|
+
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS`);if(r.safeMode&&r.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');this.trackStartLines=/full|onlyStart/i.test(this.config.positionTracking),this.trackEndLines=/full/i.test(this.config.positionTracking),W(t)?i={modes:{defaultMode:De(t)},defaultMode:Ji}:(o=!1,i=De(t))}),this.config.skipValidations===!1&&(this.TRACE_INIT("performRuntimeChecks",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(aD(i,this.trackStartLines,this.config.lineTerminatorCharacters))}),this.TRACE_INIT("performWarningRuntimeChecks",()=>{this.lexerDefinitionWarning=this.lexerDefinitionWarning.concat(sD(i,this.trackStartLines,this.config.lineTerminatorCharacters))})),i.modes=i.modes?i.modes:{},j(i.modes,(c,f)=>{i.modes[f]=yn(c,E=>pt(E))});let a=me(i.modes);if(j(i.modes,(c,f)=>{this.TRACE_INIT(`Mode: <${f}> processing`,()=>{if(this.modes.push(f),this.config.skipValidations===!1&&this.TRACE_INIT("validatePatterns",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(oD(c,a))}),Q(this.lexerDefinitionErrors)){Pr(c);let E;this.TRACE_INIT("analyzeTokenTypes",()=>{E=iD(c,{lineTerminatorCharacters:this.config.lineTerminatorCharacters,positionTracking:r.positionTracking,ensureOptimizations:r.ensureOptimizations,safeMode:r.safeMode,tracer:this.TRACE_INIT})}),this.patternIdxToConfig[f]=E.patternIdxToConfig,this.charCodeToPatternIdxToConfig[f]=E.charCodeToPatternIdxToConfig,this.emptyGroups=ot({},this.emptyGroups,E.emptyGroups),this.hasCustom=E.hasCustom||this.hasCustom,this.canModeBeOptimized[f]=E.canBeOptimized}})}),this.defaultMode=i.defaultMode,!Q(this.lexerDefinitionErrors)&&!this.config.deferDefinitionErrorsHandling){let f=w(this.lexerDefinitionErrors,E=>E.message).join(`-----------------------
|
|
48
|
+
`);throw new Error(`Errors detected in definition of Lexer:
|
|
49
|
+
`+f)}j(this.lexerDefinitionWarning,c=>{Ko(c.message)}),this.TRACE_INIT("Choosing sub-methods implementations",()=>{if(Sl?(this.chopInput=vt,this.match=this.matchWithTest):(this.updateLastIndex=Ue,this.match=this.matchWithExec),o&&(this.handleModes=Ue),this.trackStartLines===!1&&(this.computeNewColumn=vt),this.trackEndLines===!1&&(this.updateTokenEndLineColumnLocation=Ue),/full/i.test(this.config.positionTracking))this.createTokenInstance=this.createFullToken;else if(/onlyStart/i.test(this.config.positionTracking))this.createTokenInstance=this.createStartOnlyToken;else if(/onlyOffset/i.test(this.config.positionTracking))this.createTokenInstance=this.createOffsetOnlyToken;else throw Error(`Invalid <positionTracking> config option: "${this.config.positionTracking}"`);this.hasCustom?(this.addToken=this.addTokenUsingPush,this.handlePayload=this.handlePayloadWithCustom):(this.addToken=this.addTokenUsingMemberAccess,this.handlePayload=this.handlePayloadNoCustom)}),this.TRACE_INIT("Failed Optimization Warnings",()=>{let c=Ie(this.canModeBeOptimized,(f,E,g)=>(E===!1&&f.push(g),f),[]);if(r.ensureOptimizations&&!Q(c))throw Error(`Lexer Modes: < ${c.join(", ")} > cannot be optimized.
|
|
50
|
+
Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode.
|
|
51
|
+
Or inspect the console log for details on how to resolve these issues.`)}),this.TRACE_INIT("clearRegExpParserCache",()=>{Qh()}),this.TRACE_INIT("toFastProperties",()=>{Yo(this)})})}tokenize(t,r=this.defaultMode){if(!Q(this.lexerDefinitionErrors)){let i=w(this.lexerDefinitionErrors,o=>o.message).join(`-----------------------
|
|
52
|
+
`);throw new Error(`Unable to Tokenize because Errors detected in definition of Lexer:
|
|
53
|
+
`+i)}return this.tokenizeInternal(t,r)}tokenizeInternal(t,r){let n,i,o,a,c,f,E,g,A,y,T,S,v,L,O,N,b=t,M=b.length,_=0,K=0,J=this.hasCustom?0:Math.floor(t.length/10),re=new Array(J),be=[],nt=this.trackStartLines?1:void 0,je=this.trackStartLines?1:void 0,Ke=uD(this.emptyGroups),Pe=this.trackStartLines,Xe=this.config.lineTerminatorsPattern,it=0,Je=[],qt=[],rn=[],nn=[];Object.freeze(nn);let de;function ze(){return Je}function Mo(Re){let lt=mr(Re),Rr=qt[lt];return Rr===void 0?nn:Rr}let za=Re=>{if(rn.length===1&&Re.tokenType.PUSH_MODE===void 0){let lt=this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(Re);be.push({offset:Re.startOffset,line:Re.startLine,column:Re.startColumn,length:Re.image.length,message:lt})}else{rn.pop();let lt=pr(rn);Je=this.patternIdxToConfig[lt],qt=this.charCodeToPatternIdxToConfig[lt],it=Je.length;let Rr=this.canModeBeOptimized[lt]&&this.config.safeMode===!1;qt&&Rr?de=Mo:de=ze}};function _o(Re){rn.push(Re),qt=this.charCodeToPatternIdxToConfig[Re],Je=this.patternIdxToConfig[Re],it=Je.length,it=Je.length;let lt=this.canModeBeOptimized[Re]&&this.config.safeMode===!1;qt&<?de=Mo:de=ze}_o.call(this,r);let Ft,Po=this.config.recoveryEnabled;for(;_<M;){f=null;let Re=b.charCodeAt(_),lt=de(Re),Rr=lt.length;for(n=0;n<Rr;n++){Ft=lt[n];let mt=Ft.pattern;E=null;let jt=Ft.short;if(jt!==!1?Re===jt&&(f=mt):Ft.isCustom===!0?(N=mt.exec(b,_,re,Ke),N!==null?(f=N[0],N.payload!==void 0&&(E=N.payload)):f=null):(this.updateLastIndex(mt,_),f=this.match(mt,t,_)),f!==null){if(c=Ft.longerAlt,c!==void 0){let ht=c.length;for(o=0;o<ht;o++){let Dt=Je[c[o]],Or=Dt.pattern;if(g=null,Dt.isCustom===!0?(N=Or.exec(b,_,re,Ke),N!==null?(a=N[0],N.payload!==void 0&&(g=N.payload)):a=null):(this.updateLastIndex(Or,_),a=this.match(Or,t,_)),a&&a.length>f.length){f=a,E=g,Ft=Dt;break}}}break}}if(f!==null){if(A=f.length,y=Ft.group,y!==void 0&&(T=Ft.tokenTypeIdx,S=this.createTokenInstance(f,_,T,Ft.tokenType,nt,je,A),this.handlePayload(S,E),y===!1?K=this.addToken(re,K,S):Ke[y].push(S)),t=this.chopInput(t,A),_=_+A,je=this.computeNewColumn(je,A),Pe===!0&&Ft.canLineTerminator===!0){let mt=0,jt,ht;Xe.lastIndex=0;do jt=Xe.test(f),jt===!0&&(ht=Xe.lastIndex-1,mt++);while(jt===!0);mt!==0&&(nt=nt+mt,je=A-ht,this.updateTokenEndLineColumnLocation(S,y,ht,mt,nt,je,A))}this.handleModes(Ft,za,_o,S)}else{let mt=_,jt=nt,ht=je,Dt=Po===!1;for(;Dt===!1&&_<M;)for(t=this.chopInput(t,1),_++,i=0;i<it;i++){let Or=Je[i],ko=Or.pattern,yi=Or.short;if(yi!==!1?b.charCodeAt(_)===yi&&(Dt=!0):Or.isCustom===!0?Dt=ko.exec(b,_,re,Ke)!==null:(this.updateLastIndex(ko,_),Dt=ko.exec(t)!==null),Dt===!0)break}if(v=_-mt,je=this.computeNewColumn(je,v),O=this.config.errorMessageProvider.buildUnexpectedCharactersMessage(b,mt,v,jt,ht),be.push({offset:mt,line:jt,column:ht,length:v,message:O}),Po===!1)break}}return this.hasCustom||(re.length=K),{tokens:re,groups:Ke,errors:be}}handleModes(t,r,n,i){if(t.pop===!0){let o=t.push;r(i),o!==void 0&&n.call(this,o)}else t.push!==void 0&&n.call(this,t.push)}chopInput(t,r){return t.substring(r)}updateLastIndex(t,r){t.lastIndex=r}updateTokenEndLineColumnLocation(t,r,n,i,o,a,c){let f,E;r!==void 0&&(f=n===c-1,E=f?-1:0,i===1&&f===!0||(t.endLine=o+E,t.endColumn=a-1+-E))}computeNewColumn(t,r){return t+r}createOffsetOnlyToken(t,r,n,i){return{image:t,startOffset:r,tokenTypeIdx:n,tokenType:i}}createStartOnlyToken(t,r,n,i,o,a){return{image:t,startOffset:r,startLine:o,startColumn:a,tokenTypeIdx:n,tokenType:i}}createFullToken(t,r,n,i,o,a,c){return{image:t,startOffset:r,endOffset:r+c-1,startLine:o,endLine:o,startColumn:a,endColumn:a+c-1,tokenTypeIdx:n,tokenType:i}}addTokenUsingPush(t,r,n){return t.push(n),r}addTokenUsingMemberAccess(t,r,n){return t[r]=n,r++,r}handlePayloadNoCustom(t,r){}handlePayloadWithCustom(t,r){r!==null&&(t.payload=r)}matchWithTest(t,r,n){return t.test(r)===!0?r.substring(n,t.lastIndex):null}matchWithExec(t,r){let n=t.exec(r);return n!==null?n[0]:null}};se.SKIPPED="This marks a skipped Token pattern, this means each token identified by it willbe consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace.";se.NA=/NOT_APPLICABLE/;function kr(e){return Fl(e)?e.LABEL:e.name}function Fl(e){return Ye(e.LABEL)&&e.LABEL!==""}var Y6="parent",gD="categories",CD="label",yD="group",SD="push_mode",AD="pop_mode",TD="longer_alt",FD="line_breaks",vD="start_chars_hint";function Hn(e){return H6(e)}function H6(e){let t=e.pattern,r={};if(r.name=e.name,pt(t)||(r.PATTERN=t),V(e,Y6))throw`The parent property is no longer supported.
|
|
54
|
+
See: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details.`;return V(e,gD)&&(r.CATEGORIES=e[gD]),Pr([r]),V(e,CD)&&(r.LABEL=e[CD]),V(e,yD)&&(r.GROUP=e[yD]),V(e,AD)&&(r.POP_MODE=e[AD]),V(e,SD)&&(r.PUSH_MODE=e[SD]),V(e,TD)&&(r.LONGER_ALT=e[TD]),V(e,FD)&&(r.LINE_BREAKS=e[FD]),V(e,vD)&&(r.START_CHARS_HINT=e[vD]),r}var Mt=Hn({name:"EOF",pattern:se.NA});Pr([Mt]);function Xn(e,t,r,n,i,o,a,c){return{image:t,startOffset:r,endOffset:n,startLine:i,endLine:o,startColumn:a,endColumn:c,tokenTypeIdx:e.tokenTypeIdx,tokenType:e}}function Y(e,t){return _r(e,t)}s();l();u();var ks={buildMismatchTokenMessage({expected:e,actual:t,previous:r,ruleName:n}){return`Expecting ${Fl(e)?`--> ${kr(e)} <--`:`token of type --> ${e.name} <--`} but found --> '${t.image}' <--`},buildNotAllInputParsedMessage({firstRedundant:e,ruleName:t}){return"Redundant input, expecting EOF but found: "+e.image},buildNoViableAltMessage({expectedPathsPerAlt:e,actual:t,previous:r,customUserDescription:n,ruleName:i}){let o="Expecting: ",c=`
|
|
55
|
+
but found: '`+$e(t).image+"'";if(n)return o+n+c;{let f=Ie(e,(y,T)=>y.concat(T),[]),E=w(f,y=>`[${w(y,T=>kr(T)).join(", ")}]`),A=`one of these possible Token sequences:
|
|
56
|
+
${w(E,(y,T)=>` ${T+1}. ${y}`).join(`
|
|
57
|
+
`)}`;return o+A+c}},buildEarlyExitMessage({expectedIterationPaths:e,actual:t,customUserDescription:r,ruleName:n}){let i="Expecting: ",a=`
|
|
58
|
+
but found: '`+$e(t).image+"'";if(r)return i+r+a;{let f=`expecting at least one iteration which starts with one of these possible Token sequences::
|
|
59
|
+
<${w(e,E=>`[${w(E,g=>kr(g)).join(",")}]`).join(" ,")}>`;return i+f+a}}};Object.freeze(ks);var LD={buildRuleNotFoundError(e,t){return"Invalid grammar, reference to a rule which is not defined: ->"+t.nonTerminalName+`<-
|
|
60
|
+
inside top level rule: ->`+e.name+"<-"}},Jt={buildDuplicateFoundError(e,t){function r(g){return g instanceof $?g.terminalType.name:g instanceof oe?g.nonTerminalName:""}let n=e.name,i=$e(t),o=i.idx,a=Ut(i),c=r(i),f=o>0,E=`->${a}${f?o:""}<- ${c?`with argument: ->${c}<-`:""}
|
|
61
|
+
appears more than once (${t.length} times) in the top level rule: ->${n}<-.
|
|
62
|
+
For further details see: https://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES
|
|
63
|
+
`;return E=E.replace(/[ \t]+/g," "),E=E.replace(/\s\s+/g,`
|
|
64
|
+
`),E},buildNamespaceConflictError(e){return`Namespace conflict found in grammar.
|
|
65
|
+
The grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <${e.name}>.
|
|
66
|
+
To resolve this make sure each Terminal and Non-Terminal names are unique
|
|
67
|
+
This is easy to accomplish by using the convention that Terminal names start with an uppercase letter
|
|
68
|
+
and Non-Terminal names start with a lower case letter.`},buildAlternationPrefixAmbiguityError(e){let t=w(e.prefixPath,i=>kr(i)).join(", "),r=e.alternation.idx===0?"":e.alternation.idx;return`Ambiguous alternatives: <${e.ambiguityIndices.join(" ,")}> due to common lookahead prefix
|
|
69
|
+
in <OR${r}> inside <${e.topLevelRule.name}> Rule,
|
|
70
|
+
<${t}> may appears as a prefix path in all these alternatives.
|
|
71
|
+
See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX
|
|
72
|
+
For Further details.`},buildAlternationAmbiguityError(e){let t=w(e.prefixPath,i=>kr(i)).join(", "),r=e.alternation.idx===0?"":e.alternation.idx,n=`Ambiguous Alternatives Detected: <${e.ambiguityIndices.join(" ,")}> in <OR${r}> inside <${e.topLevelRule.name}> Rule,
|
|
73
|
+
<${t}> may appears as a prefix path in all these alternatives.
|
|
74
|
+
`;return n=n+`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES
|
|
75
|
+
For Further details.`,n},buildEmptyRepetitionError(e){let t=Ut(e.repetition);return e.repetition.idx!==0&&(t+=e.repetition.idx),`The repetition <${t}> within Rule <${e.topLevelRule.name}> can never consume any tokens.
|
|
76
|
+
This could lead to an infinite loop.`},buildTokenNameError(e){return"deprecated"},buildEmptyAlternationError(e){return`Ambiguous empty alternative: <${e.emptyChoiceIdx+1}> in <OR${e.alternation.idx}> inside <${e.topLevelRule.name}> Rule.
|
|
77
|
+
Only the last alternative may be an empty alternative.`},buildTooManyAlternativesError(e){return`An Alternation cannot have more than 256 alternatives:
|
|
78
|
+
<OR${e.alternation.idx}> inside <${e.topLevelRule.name}> Rule.
|
|
79
|
+
has ${e.alternation.definition.length+1} alternatives.`},buildLeftRecursionError(e){let t=e.topLevelRule.name,r=w(e.leftRecursionPath,o=>o.name),n=`${t} --> ${r.concat([t]).join(" --> ")}`;return`Left Recursion found in grammar.
|
|
80
|
+
rule: <${t}> can be invoked from itself (directly or indirectly)
|
|
81
|
+
without consuming any Tokens. The grammar path that causes this is:
|
|
82
|
+
${n}
|
|
83
|
+
To fix this refactor your grammar to remove the left recursion.
|
|
84
|
+
see: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`},buildInvalidRuleNameError(e){return"deprecated"},buildDuplicateRuleNameError(e){let t;return e.topLevelRule instanceof Ct?t=e.topLevelRule.name:t=e.topLevelRule,`Duplicate definition, rule: ->${t}<- is already defined in the grammar: ->${e.grammarName}<-`}};s();l();u();s();l();u();function RD(e,t){let r=new vl(e,t);return r.resolveRefs(),r.errors}var vl=class extends yt{constructor(t,r){super(),this.nameToTopRule=t,this.errMsgProvider=r,this.errors=[]}resolveRefs(){j(le(this.nameToTopRule),t=>{this.currTopLevel=t,t.accept(this)})}visitNonTerminal(t){let r=this.nameToTopRule[t.nonTerminalName];if(r)t.referencedRule=r;else{let n=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,t);this.errors.push({message:n,type:He.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:t.nonTerminalName})}}};s();l();u();s();l();u();s();l();u();var Ll=class extends Mr{constructor(t,r){super(),this.topProd=t,this.path=r,this.possibleTokTypes=[],this.nextProductionName="",this.nextProductionOccurrence=0,this.found=!1,this.isAtEndOfPath=!1}startWalking(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=De(this.path.ruleStack).reverse(),this.occurrenceStack=De(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes}walk(t,r=[]){this.found||super.walk(t,r)}walkProdRef(t,r,n){if(t.referencedRule.name===this.nextProductionName&&t.idx===this.nextProductionOccurrence){let i=r.concat(n);this.updateExpectedNext(),this.walk(t.referencedRule,i)}}updateExpectedNext(){Q(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())}},ws=class extends Ll{constructor(t,r){super(t,r),this.path=r,this.nextTerminalName="",this.nextTerminalOccurrence=0,this.nextTerminalName=this.path.lastTok.name,this.nextTerminalOccurrence=this.path.lastTokOccurrence}walkTerminal(t,r,n){if(this.isAtEndOfPath&&t.terminalType.name===this.nextTerminalName&&t.idx===this.nextTerminalOccurrence&&!this.found){let i=r.concat(n),o=new Ee({definition:i});this.possibleTokTypes=Kn(o),this.found=!0}}},Qi=class extends Mr{constructor(t,r){super(),this.topRule=t,this.occurrence=r,this.result={token:void 0,occurrence:void 0,isEndOfRule:void 0}}startWalking(){return this.walk(this.topRule),this.result}},qs=class extends Qi{walkMany(t,r,n){if(t.idx===this.occurrence){let i=$e(r.concat(n));this.result.isEndOfRule=i===void 0,i instanceof $&&(this.result.token=i.terminalType,this.result.occurrence=i.idx)}else super.walkMany(t,r,n)}},ea=class extends Qi{walkManySep(t,r,n){if(t.idx===this.occurrence){let i=$e(r.concat(n));this.result.isEndOfRule=i===void 0,i instanceof $&&(this.result.token=i.terminalType,this.result.occurrence=i.idx)}else super.walkManySep(t,r,n)}},js=class extends Qi{walkAtLeastOne(t,r,n){if(t.idx===this.occurrence){let i=$e(r.concat(n));this.result.isEndOfRule=i===void 0,i instanceof $&&(this.result.token=i.terminalType,this.result.occurrence=i.idx)}else super.walkAtLeastOne(t,r,n)}},ta=class extends Qi{walkAtLeastOneSep(t,r,n){if(t.idx===this.occurrence){let i=$e(r.concat(n));this.result.isEndOfRule=i===void 0,i instanceof $&&(this.result.token=i.terminalType,this.result.occurrence=i.idx)}else super.walkAtLeastOneSep(t,r,n)}};function Gs(e,t,r=[]){r=De(r);let n=[],i=0;function o(c){return c.concat(qe(e,i+1))}function a(c){let f=Gs(o(c),t,r);return n.concat(f)}for(;r.length<t&&i<e.length;){let c=e[i];if(c instanceof Ee)return a(c.definition);if(c instanceof oe)return a(c.definition);if(c instanceof ae)n=a(c.definition);else if(c instanceof ge){let f=c.definition.concat([new ne({definition:c.definition})]);return a(f)}else if(c instanceof Ce){let f=[new Ee({definition:c.definition}),new ne({definition:[new $({terminalType:c.separator})].concat(c.definition)})];return a(f)}else if(c instanceof fe){let f=c.definition.concat([new ne({definition:[new $({terminalType:c.separator})].concat(c.definition)})]);n=a(f)}else if(c instanceof ne){let f=c.definition.concat([new ne({definition:c.definition})]);n=a(f)}else{if(c instanceof pe)return j(c.definition,f=>{Q(f.definition)===!1&&(n=a(f.definition))}),n;if(c instanceof $)r.push(c.terminalType);else throw Error("non exhaustive match")}i++}return n.push({partialPath:r,suffixDef:qe(e,i)}),n}function Vs(e,t,r,n){let i="EXIT_NONE_TERMINAL",o=[i],a="EXIT_ALTERNATIVE",c=!1,f=t.length,E=f-n-1,g=[],A=[];for(A.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});!Q(A);){let y=A.pop();if(y===a){c&&pr(A).idx<=E&&A.pop();continue}let T=y.def,S=y.idx,v=y.ruleStack,L=y.occurrenceStack;if(Q(T))continue;let O=T[0];if(O===i){let N={idx:S,def:qe(T),ruleStack:Br(v),occurrenceStack:Br(L)};A.push(N)}else if(O instanceof $)if(S<f-1){let N=S+1,b=t[N];if(r(b,O.terminalType)){let M={idx:N,def:qe(T),ruleStack:v,occurrenceStack:L};A.push(M)}}else if(S===f-1)g.push({nextTokenType:O.terminalType,nextTokenOccurrence:O.idx,ruleStack:v,occurrenceStack:L}),c=!0;else throw Error("non exhaustive match");else if(O instanceof oe){let N=De(v);N.push(O.nonTerminalName);let b=De(L);b.push(O.idx);let M={idx:S,def:O.definition.concat(o,qe(T)),ruleStack:N,occurrenceStack:b};A.push(M)}else if(O instanceof ae){let N={idx:S,def:qe(T),ruleStack:v,occurrenceStack:L};A.push(N),A.push(a);let b={idx:S,def:O.definition.concat(qe(T)),ruleStack:v,occurrenceStack:L};A.push(b)}else if(O instanceof ge){let N=new ne({definition:O.definition,idx:O.idx}),b=O.definition.concat([N],qe(T)),M={idx:S,def:b,ruleStack:v,occurrenceStack:L};A.push(M)}else if(O instanceof Ce){let N=new $({terminalType:O.separator}),b=new ne({definition:[N].concat(O.definition),idx:O.idx}),M=O.definition.concat([b],qe(T)),_={idx:S,def:M,ruleStack:v,occurrenceStack:L};A.push(_)}else if(O instanceof fe){let N={idx:S,def:qe(T),ruleStack:v,occurrenceStack:L};A.push(N),A.push(a);let b=new $({terminalType:O.separator}),M=new ne({definition:[b].concat(O.definition),idx:O.idx}),_=O.definition.concat([M],qe(T)),K={idx:S,def:_,ruleStack:v,occurrenceStack:L};A.push(K)}else if(O instanceof ne){let N={idx:S,def:qe(T),ruleStack:v,occurrenceStack:L};A.push(N),A.push(a);let b=new ne({definition:O.definition,idx:O.idx}),M=O.definition.concat([b],qe(T)),_={idx:S,def:M,ruleStack:v,occurrenceStack:L};A.push(_)}else if(O instanceof pe)for(let N=O.definition.length-1;N>=0;N--){let b=O.definition[N],M={idx:S,def:b.definition.concat(qe(T)),ruleStack:v,occurrenceStack:L};A.push(M),A.push(a)}else if(O instanceof Ee)A.push({idx:S,def:O.definition.concat(qe(T)),ruleStack:v,occurrenceStack:L});else if(O instanceof Ct)A.push(X6(O,S,v,L));else throw Error("non exhaustive match")}return g}function X6(e,t,r,n){let i=De(r);i.push(e.name);let o=De(n);return o.push(1),{idx:t,def:e.definition,ruleStack:i,occurrenceStack:o}}var Le;(function(e){e[e.OPTION=0]="OPTION",e[e.REPETITION=1]="REPETITION",e[e.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",e[e.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",e[e.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",e[e.ALTERNATION=5]="ALTERNATION"})(Le||(Le={}));function ra(e){if(e instanceof ae||e==="Option")return Le.OPTION;if(e instanceof ne||e==="Repetition")return Le.REPETITION;if(e instanceof ge||e==="RepetitionMandatory")return Le.REPETITION_MANDATORY;if(e instanceof Ce||e==="RepetitionMandatoryWithSeparator")return Le.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof fe||e==="RepetitionWithSeparator")return Le.REPETITION_WITH_SEPARATOR;if(e instanceof pe||e==="Alternation")return Le.ALTERNATION;throw Error("non exhaustive match")}function Ks(e){let{occurrence:t,rule:r,prodType:n,maxLookahead:i}=e,o=ra(n);return o===Le.ALTERNATION?$i(t,r,i):eo(t,r,o,i)}function UD(e,t,r,n,i,o){let a=$i(e,t,r),c=MD(a)?Zi:_r;return o(a,n,c,i)}function ID(e,t,r,n,i,o){let a=eo(e,t,i,r),c=MD(a)?Zi:_r;return o(a[0],c,n)}function ND(e,t,r,n){let i=e.length,o=ft(e,a=>ft(a,c=>c.length===1));if(t)return function(a){let c=w(a,f=>f.GATE);for(let f=0;f<i;f++){let E=e[f],g=E.length,A=c[f];if(!(A!==void 0&&A.call(this)===!1))e:for(let y=0;y<g;y++){let T=E[y],S=T.length;for(let v=0;v<S;v++){let L=this.LA(v+1);if(r(L,T[v])===!1)continue e}return f}}};if(o&&!n){let a=w(e,f=>we(f)),c=Ie(a,(f,E,g)=>(j(E,A=>{V(f,A.tokenTypeIdx)||(f[A.tokenTypeIdx]=g),j(A.categoryMatches,y=>{V(f,y)||(f[y]=g)})}),f),{});return function(){let f=this.LA(1);return c[f.tokenTypeIdx]}}else return function(){for(let a=0;a<i;a++){let c=e[a],f=c.length;e:for(let E=0;E<f;E++){let g=c[E],A=g.length;for(let y=0;y<A;y++){let T=this.LA(y+1);if(r(T,g[y])===!1)continue e}return a}}}}function bD(e,t,r){let n=ft(e,o=>o.length===1),i=e.length;if(n&&!r){let o=we(e);if(o.length===1&&Q(o[0].categoryMatches)){let c=o[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===c}}else{let a=Ie(o,(c,f,E)=>(c[f.tokenTypeIdx]=!0,j(f.categoryMatches,g=>{c[g]=!0}),c),[]);return function(){let c=this.LA(1);return a[c.tokenTypeIdx]===!0}}}else return function(){e:for(let o=0;o<i;o++){let a=e[o],c=a.length;for(let f=0;f<c;f++){let E=this.LA(f+1);if(t(E,a[f])===!1)continue e}return!0}return!1}}var Ol=class extends Mr{constructor(t,r,n){super(),this.topProd=t,this.targetOccurrence=r,this.targetProdType=n}startWalking(){return this.walk(this.topProd),this.restDef}checkIsTarget(t,r,n,i){return t.idx===this.targetOccurrence&&this.targetProdType===r?(this.restDef=n.concat(i),!0):!1}walkOption(t,r,n){this.checkIsTarget(t,Le.OPTION,r,n)||super.walkOption(t,r,n)}walkAtLeastOne(t,r,n){this.checkIsTarget(t,Le.REPETITION_MANDATORY,r,n)||super.walkOption(t,r,n)}walkAtLeastOneSep(t,r,n){this.checkIsTarget(t,Le.REPETITION_MANDATORY_WITH_SEPARATOR,r,n)||super.walkOption(t,r,n)}walkMany(t,r,n){this.checkIsTarget(t,Le.REPETITION,r,n)||super.walkOption(t,r,n)}walkManySep(t,r,n){this.checkIsTarget(t,Le.REPETITION_WITH_SEPARATOR,r,n)||super.walkOption(t,r,n)}},Ws=class extends yt{constructor(t,r,n){super(),this.targetOccurrence=t,this.targetProdType=r,this.targetRef=n,this.result=[]}checkIsTarget(t,r){t.idx===this.targetOccurrence&&this.targetProdType===r&&(this.targetRef===void 0||t===this.targetRef)&&(this.result=t.definition)}visitOption(t){this.checkIsTarget(t,Le.OPTION)}visitRepetition(t){this.checkIsTarget(t,Le.REPETITION)}visitRepetitionMandatory(t){this.checkIsTarget(t,Le.REPETITION_MANDATORY)}visitRepetitionMandatoryWithSeparator(t){this.checkIsTarget(t,Le.REPETITION_MANDATORY_WITH_SEPARATOR)}visitRepetitionWithSeparator(t){this.checkIsTarget(t,Le.REPETITION_WITH_SEPARATOR)}visitAlternation(t){this.checkIsTarget(t,Le.ALTERNATION)}};function OD(e){let t=new Array(e);for(let r=0;r<e;r++)t[r]=[];return t}function Rl(e){let t=[""];for(let r=0;r<e.length;r++){let n=e[r],i=[];for(let o=0;o<t.length;o++){let a=t[o];i.push(a+"_"+n.tokenTypeIdx);for(let c=0;c<n.categoryMatches.length;c++){let f="_"+n.categoryMatches[c];i.push(a+f)}}t=i}return t}function J6(e,t,r){for(let n=0;n<e.length;n++){if(n===r)continue;let i=e[n];for(let o=0;o<t.length;o++){let a=t[o];if(i[a]===!0)return!1}}return!0}function xD(e,t){let r=w(e,a=>Gs([a],1)),n=OD(r.length),i=w(r,a=>{let c={};return j(a,f=>{let E=Rl(f.partialPath);j(E,g=>{c[g]=!0})}),c}),o=r;for(let a=1;a<=t;a++){let c=o;o=OD(c.length);for(let f=0;f<c.length;f++){let E=c[f];for(let g=0;g<E.length;g++){let A=E[g].partialPath,y=E[g].suffixDef,T=Rl(A);if(J6(i,T,f)||Q(y)||A.length===t){let v=n[f];if(zs(v,A)===!1){v.push(A);for(let L=0;L<T.length;L++){let O=T[L];i[f][O]=!0}}}else{let v=Gs(y,a+1,A);o[f]=o[f].concat(v),j(v,L=>{let O=Rl(L.partialPath);j(O,N=>{i[f][N]=!0})})}}}}return n}function $i(e,t,r,n){let i=new Ws(e,Le.ALTERNATION,n);return t.accept(i),xD(i.result,r)}function eo(e,t,r,n){let i=new Ws(e,r);t.accept(i);let o=i.result,c=new Ol(t,e,r).startWalking(),f=new Ee({definition:o}),E=new Ee({definition:c});return xD([f,E],n)}function zs(e,t){e:for(let r=0;r<e.length;r++){let n=e[r];if(n.length===t.length){for(let i=0;i<n.length;i++){let o=t[i],a=n[i];if((o===a||a.categoryMatchesMap[o.tokenTypeIdx]!==void 0)===!1)continue e}return!0}}return!1}function BD(e,t){return e.length<t.length&&ft(e,(r,n)=>{let i=t[n];return r===i||i.categoryMatchesMap[r.tokenTypeIdx]})}function MD(e){return ft(e,t=>ft(t,r=>ft(r,n=>Q(n.categoryMatches))))}function _D(e){let t=e.lookaheadStrategy.validate({rules:e.rules,tokenTypes:e.tokenTypes,grammarName:e.grammarName});return w(t,r=>Object.assign({type:He.CUSTOM_LOOKAHEAD_VALIDATION},r))}function PD(e,t,r,n){let i=at(e,f=>Z6(f,r)),o=nO(e,t,r),a=at(e,f=>eO(f,r)),c=at(e,f=>$6(f,e,n,r));return i.concat(o,a,c)}function Z6(e,t){let r=new Ul;e.accept(r);let n=r.allProductions,i=fl(n,Q6),o=Ot(i,c=>c.length>1);return w(le(o),c=>{let f=$e(c),E=t.buildDuplicateFoundError(e,c),g=Ut(f),A={message:E,type:He.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:g,occurrence:f.idx},y=kD(f);return y&&(A.parameter=y),A})}function Q6(e){return`${Ut(e)}_#_${e.idx}_#_${kD(e)}`}function kD(e){return e instanceof $?e.terminalType.name:e instanceof oe?e.nonTerminalName:""}var Ul=class extends yt{constructor(){super(...arguments),this.allProductions=[]}visitNonTerminal(t){this.allProductions.push(t)}visitOption(t){this.allProductions.push(t)}visitRepetitionWithSeparator(t){this.allProductions.push(t)}visitRepetitionMandatory(t){this.allProductions.push(t)}visitRepetitionMandatoryWithSeparator(t){this.allProductions.push(t)}visitRepetition(t){this.allProductions.push(t)}visitAlternation(t){this.allProductions.push(t)}visitTerminal(t){this.allProductions.push(t)}};function $6(e,t,r,n){let i=[];if(Ie(t,(a,c)=>c.name===e.name?a+1:a,0)>1){let a=n.buildDuplicateRuleNameError({topLevelRule:e,grammarName:r});i.push({message:a,type:He.DUPLICATE_RULE_NAME,ruleName:e.name})}return i}function wD(e,t,r){let n=[],i;return Fe(t,e)||(i=`Invalid rule override, rule: ->${e}<- cannot be overridden in the grammar: ->${r}<-as it is not defined in any of the super grammars `,n.push({message:i,type:He.INVALID_RULE_OVERRIDE,ruleName:e})),n}function Nl(e,t,r,n=[]){let i=[],o=Ys(t.definition);if(Q(o))return[];{let a=e.name;Fe(o,e)&&i.push({message:r.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:n}),type:He.LEFT_RECURSION,ruleName:a});let f=Cn(o,n.concat([e])),E=at(f,g=>{let A=De(n);return A.push(g),Nl(e,g,r,A)});return i.concat(E)}}function Ys(e){let t=[];if(Q(e))return t;let r=$e(e);if(r instanceof oe)t.push(r.referencedRule);else if(r instanceof Ee||r instanceof ae||r instanceof ge||r instanceof Ce||r instanceof fe||r instanceof ne)t=t.concat(Ys(r.definition));else if(r instanceof pe)t=we(w(r.definition,o=>Ys(o.definition)));else if(!(r instanceof $))throw Error("non exhaustive match");let n=Wn(r),i=e.length>1;if(n&&i){let o=qe(e);return t.concat(Ys(o))}else return t}var na=class extends yt{constructor(){super(...arguments),this.alternations=[]}visitAlternation(t){this.alternations.push(t)}};function qD(e,t){let r=new na;e.accept(r);let n=r.alternations;return at(n,o=>{let a=Br(o.definition);return at(a,(c,f)=>{let E=Vs([c],[],_r,1);return Q(E)?[{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:o,emptyChoiceIdx:f}),type:He.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:o.idx,alternative:f+1}]:[]})})}function jD(e,t,r){let n=new na;e.accept(n);let i=n.alternations;return i=yn(i,a=>a.ignoreAmbiguities===!0),at(i,a=>{let c=a.idx,f=a.maxLookahead||t,E=$i(c,e,f,a),g=tO(E,a,e,r),A=rO(E,a,e,r);return g.concat(A)})}var Il=class extends yt{constructor(){super(...arguments),this.allProductions=[]}visitRepetitionWithSeparator(t){this.allProductions.push(t)}visitRepetitionMandatory(t){this.allProductions.push(t)}visitRepetitionMandatoryWithSeparator(t){this.allProductions.push(t)}visitRepetition(t){this.allProductions.push(t)}};function eO(e,t){let r=new na;e.accept(r);let n=r.alternations;return at(n,o=>o.definition.length>255?[{message:t.buildTooManyAlternativesError({topLevelRule:e,alternation:o}),type:He.TOO_MANY_ALTS,ruleName:e.name,occurrence:o.idx}]:[])}function GD(e,t,r){let n=[];return j(e,i=>{let o=new Il;i.accept(o);let a=o.allProductions;j(a,c=>{let f=ra(c),E=c.maxLookahead||t,g=c.idx,y=eo(g,i,f,E)[0];if(Q(we(y))){let T=r.buildEmptyRepetitionError({topLevelRule:i,repetition:c});n.push({message:T,type:He.NO_NON_EMPTY_LOOKAHEAD,ruleName:i.name})}})}),n}function tO(e,t,r,n){let i=[],o=Ie(e,(c,f,E)=>(t.definition[E].ignoreAmbiguities===!0||j(f,g=>{let A=[E];j(e,(y,T)=>{E!==T&&zs(y,g)&&t.definition[T].ignoreAmbiguities!==!0&&A.push(T)}),A.length>1&&!zs(i,g)&&(i.push(g),c.push({alts:A,path:g}))}),c),[]);return w(o,c=>{let f=w(c.alts,g=>g+1);return{message:n.buildAlternationAmbiguityError({topLevelRule:r,alternation:t,ambiguityIndices:f,prefixPath:c.path}),type:He.AMBIGUOUS_ALTS,ruleName:r.name,occurrence:t.idx,alternatives:c.alts}})}function rO(e,t,r,n){let i=Ie(e,(a,c,f)=>{let E=w(c,g=>({idx:f,path:g}));return a.concat(E)},[]);return fr(at(i,a=>{if(t.definition[a.idx].ignoreAmbiguities===!0)return[];let f=a.idx,E=a.path,g=Qe(i,y=>t.definition[y.idx].ignoreAmbiguities!==!0&&y.idx<f&&BD(y.path,E));return w(g,y=>{let T=[y.idx+1,f+1],S=t.idx===0?"":t.idx;return{message:n.buildAlternationPrefixAmbiguityError({topLevelRule:r,alternation:t,ambiguityIndices:T,prefixPath:y.path}),type:He.AMBIGUOUS_PREFIX_ALTS,ruleName:r.name,occurrence:S,alternatives:T}})}))}function nO(e,t,r){let n=[],i=w(t,o=>o.name);return j(e,o=>{let a=o.name;if(Fe(i,a)){let c=r.buildNamespaceConflictError(o);n.push({message:c,type:He.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:a})}}),n}function VD(e){let t=Vi(e,{errMsgProvider:LD}),r={};return j(e.rules,n=>{r[n.name]=n}),RD(r,t.errMsgProvider)}function WD(e){return e=Vi(e,{errMsgProvider:Jt}),PD(e.rules,e.tokenTypes,e.errMsgProvider,e.grammarName)}s();l();u();s();l();u();var KD="MismatchedTokenException",zD="NoViableAltException",YD="EarlyExitException",HD="NotAllInputParsedException",XD=[KD,zD,YD,HD];Object.freeze(XD);function hr(e){return Fe(XD,e.name)}var to=class extends Error{constructor(t,r){super(t),this.token=r,this.resyncedTokens=[],Object.setPrototypeOf(this,new.target.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}},Jn=class extends to{constructor(t,r,n){super(t,r),this.previousToken=n,this.name=KD}},ia=class extends to{constructor(t,r,n){super(t,r),this.previousToken=n,this.name=zD}},oa=class extends to{constructor(t,r){super(t,r),this.name=HD}},aa=class extends to{constructor(t,r,n){super(t,r),this.previousToken=n,this.name=YD}};var bl={},Bl="InRuleRecoveryException",xl=class extends Error{constructor(t){super(t),this.name=Bl}},Hs=class{initRecoverable(t){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=V(t,"recoveryEnabled")?t.recoveryEnabled:St.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=iO)}getTokenToInsert(t){let r=Xn(t,"",NaN,NaN,NaN,NaN,NaN,NaN);return r.isInsertedInRecovery=!0,r}canTokenTypeBeInsertedInRecovery(t){return!0}canTokenTypeBeDeletedInRecovery(t){return!0}tryInRepetitionRecovery(t,r,n,i){let o=this.findReSyncTokenType(),a=this.exportLexerState(),c=[],f=!1,E=this.LA(1),g=this.LA(1),A=()=>{let y=this.LA(0),T=this.errorMessageProvider.buildMismatchTokenMessage({expected:i,actual:E,previous:y,ruleName:this.getCurrRuleFullName()}),S=new Jn(T,E,this.LA(0));S.resyncedTokens=Br(c),this.SAVE_ERROR(S)};for(;!f;)if(this.tokenMatcher(g,i)){A();return}else if(n.call(this)){A(),t.apply(this,r);return}else this.tokenMatcher(g,o)?f=!0:(g=this.SKIP_TOKEN(),this.addToResyncTokens(g,c));this.importLexerState(a)}shouldInRepetitionRecoveryBeTried(t,r,n){return!(n===!1||this.tokenMatcher(this.LA(1),t)||this.isBackTracking()||this.canPerformInRuleRecovery(t,this.getFollowsForInRuleRecovery(t,r)))}getFollowsForInRuleRecovery(t,r){let n=this.getCurrentGrammarPath(t,r);return this.getNextPossibleTokenTypes(n)}tryInRuleRecovery(t,r){if(this.canRecoverWithSingleTokenInsertion(t,r))return this.getTokenToInsert(t);if(this.canRecoverWithSingleTokenDeletion(t)){let n=this.SKIP_TOKEN();return this.consumeToken(),n}throw new xl("sad sad panda")}canPerformInRuleRecovery(t,r){return this.canRecoverWithSingleTokenInsertion(t,r)||this.canRecoverWithSingleTokenDeletion(t)}canRecoverWithSingleTokenInsertion(t,r){if(!this.canTokenTypeBeInsertedInRecovery(t)||Q(r))return!1;let n=this.LA(1);return dr(r,o=>this.tokenMatcher(n,o))!==void 0}canRecoverWithSingleTokenDeletion(t){return this.canTokenTypeBeDeletedInRecovery(t)?this.tokenMatcher(this.LA(2),t):!1}isInCurrentRuleReSyncSet(t){let r=this.getCurrFollowKey(),n=this.getFollowSetFromFollowKey(r);return Fe(n,t)}findReSyncTokenType(){let t=this.flattenFollowSet(),r=this.LA(1),n=2;for(;;){let i=dr(t,o=>Y(r,o));if(i!==void 0)return i;r=this.LA(n),n++}}getCurrFollowKey(){if(this.RULE_STACK.length===1)return bl;let t=this.getLastExplicitRuleShortName(),r=this.getLastExplicitRuleOccurrenceIndex(),n=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(t),idxInCallingRule:r,inRule:this.shortRuleNameToFullName(n)}}buildFullFollowKeyStack(){let t=this.RULE_STACK,r=this.RULE_OCCURRENCE_STACK;return w(t,(n,i)=>i===0?bl:{ruleName:this.shortRuleNameToFullName(n),idxInCallingRule:r[i],inRule:this.shortRuleNameToFullName(t[i-1])})}flattenFollowSet(){let t=w(this.buildFullFollowKeyStack(),r=>this.getFollowSetFromFollowKey(r));return we(t)}getFollowSetFromFollowKey(t){if(t===bl)return[Mt];let r=t.ruleName+t.idxInCallingRule+Is+t.inRule;return this.resyncFollows[r]}addToResyncTokens(t,r){return this.tokenMatcher(t,Mt)||r.push(t),r}reSyncTo(t){let r=[],n=this.LA(1);for(;this.tokenMatcher(n,t)===!1;)n=this.SKIP_TOKEN(),this.addToResyncTokens(n,r);return Br(r)}attemptInRepetitionRecovery(t,r,n,i,o,a,c){}getCurrentGrammarPath(t,r){let n=this.getHumanReadableRuleStack(),i=De(this.RULE_OCCURRENCE_STACK);return{ruleStack:n,occurrenceStack:i,lastTok:t,lastTokOccurrence:r}}getHumanReadableRuleStack(){return w(this.RULE_STACK,t=>this.shortRuleNameToFullName(t))}};function iO(e,t,r,n,i,o,a){let c=this.getKeyForAutomaticLookahead(n,i),f=this.firstAfterRepMap[c];if(f===void 0){let y=this.getCurrRuleFullName(),T=this.getGAstProductions()[y];f=new o(T,i).startWalking(),this.firstAfterRepMap[c]=f}let E=f.token,g=f.occurrence,A=f.isEndOfRule;this.RULE_STACK.length===1&&A&&E===void 0&&(E=Mt,g=1),!(E===void 0||g===void 0)&&this.shouldInRepetitionRecoveryBeTried(E,g,a)&&this.tryInRepetitionRecovery(e,t,r,E)}s();l();u();s();l();u();function Xs(e,t,r){return r|t|e}s();l();u();var Zn=class{constructor(t){var r;this.maxLookahead=(r=t?.maxLookahead)!==null&&r!==void 0?r:St.maxLookahead}validate(t){let r=this.validateNoLeftRecursion(t.rules);if(Q(r)){let n=this.validateEmptyOrAlternatives(t.rules),i=this.validateAmbiguousAlternationAlternatives(t.rules,this.maxLookahead),o=this.validateSomeNonEmptyLookaheadPath(t.rules,this.maxLookahead);return[...r,...n,...i,...o]}return r}validateNoLeftRecursion(t){return at(t,r=>Nl(r,r,Jt))}validateEmptyOrAlternatives(t){return at(t,r=>qD(r,Jt))}validateAmbiguousAlternationAlternatives(t,r){return at(t,n=>jD(n,r,Jt))}validateSomeNonEmptyLookaheadPath(t,r){return GD(t,r,Jt)}buildLookaheadForAlternation(t){return UD(t.prodOccurrence,t.rule,t.maxLookahead,t.hasPredicates,t.dynamicTokensEnabled,ND)}buildLookaheadForOptional(t){return ID(t.prodOccurrence,t.rule,t.maxLookahead,t.dynamicTokensEnabled,ra(t.prodType),bD)}};var Zs=class{initLooksAhead(t){this.dynamicTokensEnabled=V(t,"dynamicTokensEnabled")?t.dynamicTokensEnabled:St.dynamicTokensEnabled,this.maxLookahead=V(t,"maxLookahead")?t.maxLookahead:St.maxLookahead,this.lookaheadStrategy=V(t,"lookaheadStrategy")?t.lookaheadStrategy:new Zn({maxLookahead:this.maxLookahead}),this.lookAheadFuncsCache=new Map}preComputeLookaheadFunctions(t){j(t,r=>{this.TRACE_INIT(`${r.name} Rule Lookahead`,()=>{let{alternation:n,repetition:i,option:o,repetitionMandatory:a,repetitionMandatoryWithSeparator:c,repetitionWithSeparator:f}=oO(r);j(n,E=>{let g=E.idx===0?"":E.idx;this.TRACE_INIT(`${Ut(E)}${g}`,()=>{let A=this.lookaheadStrategy.buildLookaheadForAlternation({prodOccurrence:E.idx,rule:r,maxLookahead:E.maxLookahead||this.maxLookahead,hasPredicates:E.hasPredicates,dynamicTokensEnabled:this.dynamicTokensEnabled}),y=Xs(this.fullRuleNameToShort[r.name],256,E.idx);this.setLaFuncCache(y,A)})}),j(i,E=>{this.computeLookaheadFunc(r,E.idx,768,"Repetition",E.maxLookahead,Ut(E))}),j(o,E=>{this.computeLookaheadFunc(r,E.idx,512,"Option",E.maxLookahead,Ut(E))}),j(a,E=>{this.computeLookaheadFunc(r,E.idx,1024,"RepetitionMandatory",E.maxLookahead,Ut(E))}),j(c,E=>{this.computeLookaheadFunc(r,E.idx,1536,"RepetitionMandatoryWithSeparator",E.maxLookahead,Ut(E))}),j(f,E=>{this.computeLookaheadFunc(r,E.idx,1280,"RepetitionWithSeparator",E.maxLookahead,Ut(E))})})})}computeLookaheadFunc(t,r,n,i,o,a){this.TRACE_INIT(`${a}${r===0?"":r}`,()=>{let c=this.lookaheadStrategy.buildLookaheadForOptional({prodOccurrence:r,rule:t,maxLookahead:o||this.maxLookahead,dynamicTokensEnabled:this.dynamicTokensEnabled,prodType:i}),f=Xs(this.fullRuleNameToShort[t.name],n,r);this.setLaFuncCache(f,c)})}getKeyForAutomaticLookahead(t,r){let n=this.getLastExplicitRuleShortName();return Xs(n,t,r)}getLaFuncFromCache(t){return this.lookAheadFuncsCache.get(t)}setLaFuncCache(t,r){this.lookAheadFuncsCache.set(t,r)}},Ml=class extends yt{constructor(){super(...arguments),this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}reset(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}visitOption(t){this.dslMethods.option.push(t)}visitRepetitionWithSeparator(t){this.dslMethods.repetitionWithSeparator.push(t)}visitRepetitionMandatory(t){this.dslMethods.repetitionMandatory.push(t)}visitRepetitionMandatoryWithSeparator(t){this.dslMethods.repetitionMandatoryWithSeparator.push(t)}visitRepetition(t){this.dslMethods.repetition.push(t)}visitAlternation(t){this.dslMethods.alternation.push(t)}},Js=new Ml;function oO(e){Js.reset(),e.accept(Js);let t=Js.dslMethods;return Js.reset(),t}s();l();u();s();l();u();function kl(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffset<t.endOffset&&(e.endOffset=t.endOffset)}function wl(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.startColumn=t.startColumn,e.startLine=t.startLine,e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine):e.endOffset<t.endOffset&&(e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine)}function JD(e,t,r){e.children[r]===void 0?e.children[r]=[t]:e.children[r].push(t)}function ZD(e,t,r){e.children[t]===void 0?e.children[t]=[r]:e.children[t].push(r)}s();l();u();s();l();u();var aO="name";function ql(e,t){Object.defineProperty(e,aO,{enumerable:!1,configurable:!0,writable:!1,value:t})}function sO(e,t){let r=me(e),n=r.length;for(let i=0;i<n;i++){let o=r[i],a=e[o],c=a.length;for(let f=0;f<c;f++){let E=a[f];E.tokenTypeIdx===void 0&&this[E.name](E.children,t)}}}function QD(e,t){let r=function(){};ql(r,e+"BaseSemantics");let n={visit:function(i,o){if(W(i)&&(i=i[0]),!pt(i))return this[i.name](i.children,o)},validateVisitor:function(){let i=uO(this,t);if(!Q(i)){let o=w(i,a=>a.msg);throw Error(`Errors Detected in CST Visitor <${this.constructor.name}>:
|
|
85
|
+
${o.join(`
|
|
86
|
+
|
|
87
|
+
`).replace(/\n/g,`
|
|
88
|
+
`)}`)}}};return r.prototype=n,r.prototype.constructor=r,r._RULE_NAMES=t,r}function $D(e,t,r){let n=function(){};ql(n,e+"BaseSemanticsWithDefaults");let i=Object.create(r.prototype);return j(t,o=>{i[o]=sO}),n.prototype=i,n.prototype.constructor=n,n}var jl;(function(e){e[e.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",e[e.MISSING_METHOD=1]="MISSING_METHOD"})(jl||(jl={}));function uO(e,t){return lO(e,t)}function lO(e,t){let r=Qe(t,i=>gt(e[i])===!1),n=w(r,i=>({msg:`Missing visitor method: <${i}> on ${e.constructor.name} CST Visitor.`,type:jl.MISSING_METHOD,methodName:i}));return fr(n)}var tu=class{initTreeBuilder(t){if(this.CST_STACK=[],this.outputCst=t.outputCst,this.nodeLocationTracking=V(t,"nodeLocationTracking")?t.nodeLocationTracking:St.nodeLocationTracking,!this.outputCst)this.cstInvocationStateUpdate=Ue,this.cstFinallyStateUpdate=Ue,this.cstPostTerminal=Ue,this.cstPostNonTerminal=Ue,this.cstPostRule=Ue;else if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=wl,this.setNodeLocationFromNode=wl,this.cstPostRule=Ue,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=Ue,this.setNodeLocationFromNode=Ue,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=kl,this.setNodeLocationFromNode=kl,this.cstPostRule=Ue,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=Ue,this.setNodeLocationFromNode=Ue,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=Ue,this.setNodeLocationFromNode=Ue,this.cstPostRule=Ue,this.setInitialNodeLocation=Ue;else throw Error(`Invalid <nodeLocationTracking> config option: "${t.nodeLocationTracking}"`)}setInitialNodeLocationOnlyOffsetRecovery(t){t.location={startOffset:NaN,endOffset:NaN}}setInitialNodeLocationOnlyOffsetRegular(t){t.location={startOffset:this.LA(1).startOffset,endOffset:NaN}}setInitialNodeLocationFullRecovery(t){t.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}}setInitialNodeLocationFullRegular(t){let r=this.LA(1);t.location={startOffset:r.startOffset,startLine:r.startLine,startColumn:r.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}}cstInvocationStateUpdate(t){let r={name:t,children:Object.create(null)};this.setInitialNodeLocation(r),this.CST_STACK.push(r)}cstFinallyStateUpdate(){this.CST_STACK.pop()}cstPostRuleFull(t){let r=this.LA(0),n=t.location;n.startOffset<=r.startOffset?(n.endOffset=r.endOffset,n.endLine=r.endLine,n.endColumn=r.endColumn):(n.startOffset=NaN,n.startLine=NaN,n.startColumn=NaN)}cstPostRuleOnlyOffset(t){let r=this.LA(0),n=t.location;n.startOffset<=r.startOffset?n.endOffset=r.endOffset:n.startOffset=NaN}cstPostTerminal(t,r){let n=this.CST_STACK[this.CST_STACK.length-1];JD(n,r,t),this.setNodeLocationFromToken(n.location,r)}cstPostNonTerminal(t,r){let n=this.CST_STACK[this.CST_STACK.length-1];ZD(n,r,t),this.setNodeLocationFromNode(n.location,t.location)}getBaseCstVisitorConstructor(){if(pt(this.baseCstVisitorConstructor)){let t=QD(this.className,me(this.gastProductionsCache));return this.baseCstVisitorConstructor=t,t}return this.baseCstVisitorConstructor}getBaseCstVisitorConstructorWithDefaults(){if(pt(this.baseCstVisitorWithDefaultsConstructor)){let t=$D(this.className,me(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=t,t}return this.baseCstVisitorWithDefaultsConstructor}getLastExplicitRuleShortName(){let t=this.RULE_STACK;return t[t.length-1]}getPreviousExplicitRuleShortName(){let t=this.RULE_STACK;return t[t.length-2]}getLastExplicitRuleOccurrenceIndex(){let t=this.RULE_OCCURRENCE_STACK;return t[t.length-1]}};s();l();u();var ru=class{initLexerAdapter(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1}set input(t){if(this.selfAnalysisDone!==!0)throw Error("Missing <performSelfAnalysis> invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=t,this.tokVectorLength=t.length}get input(){return this.tokVector}SKIP_TOKEN(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):ro}LA(t){let r=this.currIdx+t;return r<0||this.tokVectorLength<=r?ro:this.tokVector[r]}consumeToken(){this.currIdx++}exportLexerState(){return this.currIdx}importLexerState(t){this.currIdx=t}resetLexerState(){this.currIdx=-1}moveToTerminatedState(){this.currIdx=this.tokVector.length-1}getLexerPosition(){return this.exportLexerState()}};s();l();u();var nu=class{ACTION(t){return t.call(this)}consume(t,r,n){return this.consumeInternal(r,t,n)}subrule(t,r,n){return this.subruleInternal(r,t,n)}option(t,r){return this.optionInternal(r,t)}or(t,r){return this.orInternal(r,t)}many(t,r){return this.manyInternal(t,r)}atLeastOne(t,r){return this.atLeastOneInternal(t,r)}CONSUME(t,r){return this.consumeInternal(t,0,r)}CONSUME1(t,r){return this.consumeInternal(t,1,r)}CONSUME2(t,r){return this.consumeInternal(t,2,r)}CONSUME3(t,r){return this.consumeInternal(t,3,r)}CONSUME4(t,r){return this.consumeInternal(t,4,r)}CONSUME5(t,r){return this.consumeInternal(t,5,r)}CONSUME6(t,r){return this.consumeInternal(t,6,r)}CONSUME7(t,r){return this.consumeInternal(t,7,r)}CONSUME8(t,r){return this.consumeInternal(t,8,r)}CONSUME9(t,r){return this.consumeInternal(t,9,r)}SUBRULE(t,r){return this.subruleInternal(t,0,r)}SUBRULE1(t,r){return this.subruleInternal(t,1,r)}SUBRULE2(t,r){return this.subruleInternal(t,2,r)}SUBRULE3(t,r){return this.subruleInternal(t,3,r)}SUBRULE4(t,r){return this.subruleInternal(t,4,r)}SUBRULE5(t,r){return this.subruleInternal(t,5,r)}SUBRULE6(t,r){return this.subruleInternal(t,6,r)}SUBRULE7(t,r){return this.subruleInternal(t,7,r)}SUBRULE8(t,r){return this.subruleInternal(t,8,r)}SUBRULE9(t,r){return this.subruleInternal(t,9,r)}OPTION(t){return this.optionInternal(t,0)}OPTION1(t){return this.optionInternal(t,1)}OPTION2(t){return this.optionInternal(t,2)}OPTION3(t){return this.optionInternal(t,3)}OPTION4(t){return this.optionInternal(t,4)}OPTION5(t){return this.optionInternal(t,5)}OPTION6(t){return this.optionInternal(t,6)}OPTION7(t){return this.optionInternal(t,7)}OPTION8(t){return this.optionInternal(t,8)}OPTION9(t){return this.optionInternal(t,9)}OR(t){return this.orInternal(t,0)}OR1(t){return this.orInternal(t,1)}OR2(t){return this.orInternal(t,2)}OR3(t){return this.orInternal(t,3)}OR4(t){return this.orInternal(t,4)}OR5(t){return this.orInternal(t,5)}OR6(t){return this.orInternal(t,6)}OR7(t){return this.orInternal(t,7)}OR8(t){return this.orInternal(t,8)}OR9(t){return this.orInternal(t,9)}MANY(t){this.manyInternal(0,t)}MANY1(t){this.manyInternal(1,t)}MANY2(t){this.manyInternal(2,t)}MANY3(t){this.manyInternal(3,t)}MANY4(t){this.manyInternal(4,t)}MANY5(t){this.manyInternal(5,t)}MANY6(t){this.manyInternal(6,t)}MANY7(t){this.manyInternal(7,t)}MANY8(t){this.manyInternal(8,t)}MANY9(t){this.manyInternal(9,t)}MANY_SEP(t){this.manySepFirstInternal(0,t)}MANY_SEP1(t){this.manySepFirstInternal(1,t)}MANY_SEP2(t){this.manySepFirstInternal(2,t)}MANY_SEP3(t){this.manySepFirstInternal(3,t)}MANY_SEP4(t){this.manySepFirstInternal(4,t)}MANY_SEP5(t){this.manySepFirstInternal(5,t)}MANY_SEP6(t){this.manySepFirstInternal(6,t)}MANY_SEP7(t){this.manySepFirstInternal(7,t)}MANY_SEP8(t){this.manySepFirstInternal(8,t)}MANY_SEP9(t){this.manySepFirstInternal(9,t)}AT_LEAST_ONE(t){this.atLeastOneInternal(0,t)}AT_LEAST_ONE1(t){return this.atLeastOneInternal(1,t)}AT_LEAST_ONE2(t){this.atLeastOneInternal(2,t)}AT_LEAST_ONE3(t){this.atLeastOneInternal(3,t)}AT_LEAST_ONE4(t){this.atLeastOneInternal(4,t)}AT_LEAST_ONE5(t){this.atLeastOneInternal(5,t)}AT_LEAST_ONE6(t){this.atLeastOneInternal(6,t)}AT_LEAST_ONE7(t){this.atLeastOneInternal(7,t)}AT_LEAST_ONE8(t){this.atLeastOneInternal(8,t)}AT_LEAST_ONE9(t){this.atLeastOneInternal(9,t)}AT_LEAST_ONE_SEP(t){this.atLeastOneSepFirstInternal(0,t)}AT_LEAST_ONE_SEP1(t){this.atLeastOneSepFirstInternal(1,t)}AT_LEAST_ONE_SEP2(t){this.atLeastOneSepFirstInternal(2,t)}AT_LEAST_ONE_SEP3(t){this.atLeastOneSepFirstInternal(3,t)}AT_LEAST_ONE_SEP4(t){this.atLeastOneSepFirstInternal(4,t)}AT_LEAST_ONE_SEP5(t){this.atLeastOneSepFirstInternal(5,t)}AT_LEAST_ONE_SEP6(t){this.atLeastOneSepFirstInternal(6,t)}AT_LEAST_ONE_SEP7(t){this.atLeastOneSepFirstInternal(7,t)}AT_LEAST_ONE_SEP8(t){this.atLeastOneSepFirstInternal(8,t)}AT_LEAST_ONE_SEP9(t){this.atLeastOneSepFirstInternal(9,t)}RULE(t,r,n=no){if(Fe(this.definedRulesNames,t)){let a={message:Jt.buildDuplicateRuleNameError({topLevelRule:t,grammarName:this.className}),type:He.DUPLICATE_RULE_NAME,ruleName:t};this.definitionErrors.push(a)}this.definedRulesNames.push(t);let i=this.defineRule(t,r,n);return this[t]=i,i}OVERRIDE_RULE(t,r,n=no){let i=wD(t,this.definedRulesNames,this.className);this.definitionErrors=this.definitionErrors.concat(i);let o=this.defineRule(t,r,n);return this[t]=o,o}BACKTRACK(t,r){return function(){this.isBackTrackingStack.push(1);let n=this.saveRecogState();try{return t.apply(this,r),!0}catch(i){if(hr(i))return!1;throw i}finally{this.reloadRecogState(n),this.isBackTrackingStack.pop()}}}getGAstProductions(){return this.gastProductionsCache}getSerializedGastProductions(){return Us(le(this.gastProductionsCache))}};s();l();u();var iu=class{initRecognizerEngine(t,r){if(this.className=this.constructor.name,this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=Zi,this.subruleIdx=0,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},V(r,"serializedGrammar"))throw Error(`The Parser's configuration can no longer contain a <serializedGrammar> property.
|
|
89
|
+
See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0
|
|
90
|
+
For Further details.`);if(W(t)){if(Q(t))throw Error(`A Token Vocabulary cannot be empty.
|
|
91
|
+
Note that the first argument for the parser constructor
|
|
92
|
+
is no longer a Token vector (since v4.0).`);if(typeof t[0].startOffset=="number")throw Error(`The Parser constructor no longer accepts a token vector as the first argument.
|
|
93
|
+
See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_4-0-0
|
|
94
|
+
For Further details.`)}if(W(t))this.tokensMap=Ie(t,(o,a)=>(o[a.name]=a,o),{});else if(V(t,"modes")&&ft(we(le(t.modes)),ED)){let o=we(le(t.modes)),a=Wi(o);this.tokensMap=Ie(a,(c,f)=>(c[f.name]=f,c),{})}else if(Oe(t))this.tokensMap=De(t);else throw new Error("<tokensDictionary> argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap.EOF=Mt;let n=V(t,"modes")?we(le(t.modes)):le(t),i=ft(n,o=>Q(o.categoryMatches));this.tokenMatcher=i?Zi:_r,Pr(le(this.tokensMap))}defineRule(t,r,n){if(this.selfAnalysisDone)throw Error(`Grammar rule <${t}> may not be defined after the 'performSelfAnalysis' method has been called'
|
|
95
|
+
Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);let i=V(n,"resyncEnabled")?n.resyncEnabled:no.resyncEnabled,o=V(n,"recoveryValueFunc")?n.recoveryValueFunc:no.recoveryValueFunc,a=this.ruleShortNameIdx<<12;this.ruleShortNameIdx++,this.shortRuleNameToFull[a]=t,this.fullRuleNameToShort[t]=a;let c;return this.outputCst===!0?c=function(...g){try{this.ruleInvocationStateUpdate(a,t,this.subruleIdx),r.apply(this,g);let A=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(A),A}catch(A){return this.invokeRuleCatch(A,i,o)}finally{this.ruleFinallyStateUpdate()}}:c=function(...g){try{return this.ruleInvocationStateUpdate(a,t,this.subruleIdx),r.apply(this,g)}catch(A){return this.invokeRuleCatch(A,i,o)}finally{this.ruleFinallyStateUpdate()}},Object.assign(c,{ruleName:t,originalGrammarAction:r})}invokeRuleCatch(t,r,n){let i=this.RULE_STACK.length===1,o=r&&!this.isBackTracking()&&this.recoveryEnabled;if(hr(t)){let a=t;if(o){let c=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(c))if(a.resyncedTokens=this.reSyncTo(c),this.outputCst){let f=this.CST_STACK[this.CST_STACK.length-1];return f.recoveredNode=!0,f}else return n(t);else{if(this.outputCst){let f=this.CST_STACK[this.CST_STACK.length-1];f.recoveredNode=!0,a.partialCstResult=f}throw a}}else{if(i)return this.moveToTerminatedState(),n(t);throw a}}else throw t}optionInternal(t,r){let n=this.getKeyForAutomaticLookahead(512,r);return this.optionInternalLogic(t,r,n)}optionInternalLogic(t,r,n){let i=this.getLaFuncFromCache(n),o;if(typeof t!="function"){o=t.DEF;let a=t.GATE;if(a!==void 0){let c=i;i=()=>a.call(this)&&c.call(this)}}else o=t;if(i.call(this)===!0)return o.call(this)}atLeastOneInternal(t,r){let n=this.getKeyForAutomaticLookahead(1024,t);return this.atLeastOneInternalLogic(t,r,n)}atLeastOneInternalLogic(t,r,n){let i=this.getLaFuncFromCache(n),o;if(typeof r!="function"){o=r.DEF;let a=r.GATE;if(a!==void 0){let c=i;i=()=>a.call(this)&&c.call(this)}}else o=r;if(i.call(this)===!0){let a=this.doSingleRepetition(o);for(;i.call(this)===!0&&a===!0;)a=this.doSingleRepetition(o)}else throw this.raiseEarlyExitException(t,Le.REPETITION_MANDATORY,r.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[t,r],i,1024,t,js)}atLeastOneSepFirstInternal(t,r){let n=this.getKeyForAutomaticLookahead(1536,t);this.atLeastOneSepFirstInternalLogic(t,r,n)}atLeastOneSepFirstInternalLogic(t,r,n){let i=r.DEF,o=r.SEP;if(this.getLaFuncFromCache(n).call(this)===!0){i.call(this);let c=()=>this.tokenMatcher(this.LA(1),o);for(;this.tokenMatcher(this.LA(1),o)===!0;)this.CONSUME(o),i.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,o,c,i,ta],c,1536,t,ta)}else throw this.raiseEarlyExitException(t,Le.REPETITION_MANDATORY_WITH_SEPARATOR,r.ERR_MSG)}manyInternal(t,r){let n=this.getKeyForAutomaticLookahead(768,t);return this.manyInternalLogic(t,r,n)}manyInternalLogic(t,r,n){let i=this.getLaFuncFromCache(n),o;if(typeof r!="function"){o=r.DEF;let c=r.GATE;if(c!==void 0){let f=i;i=()=>c.call(this)&&f.call(this)}}else o=r;let a=!0;for(;i.call(this)===!0&&a===!0;)a=this.doSingleRepetition(o);this.attemptInRepetitionRecovery(this.manyInternal,[t,r],i,768,t,qs,a)}manySepFirstInternal(t,r){let n=this.getKeyForAutomaticLookahead(1280,t);this.manySepFirstInternalLogic(t,r,n)}manySepFirstInternalLogic(t,r,n){let i=r.DEF,o=r.SEP;if(this.getLaFuncFromCache(n).call(this)===!0){i.call(this);let c=()=>this.tokenMatcher(this.LA(1),o);for(;this.tokenMatcher(this.LA(1),o)===!0;)this.CONSUME(o),i.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,o,c,i,ea],c,1280,t,ea)}}repetitionSepSecondInternal(t,r,n,i,o){for(;n();)this.CONSUME(r),i.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,r,n,i,o],n,1536,t,o)}doSingleRepetition(t){let r=this.getLexerPosition();return t.call(this),this.getLexerPosition()>r}orInternal(t,r){let n=this.getKeyForAutomaticLookahead(256,r),i=W(t)?t:t.DEF,a=this.getLaFuncFromCache(n).call(this,i);if(a!==void 0)return i[a].ALT.call(this);this.raiseNoAltException(r,t.ERR_MSG)}ruleFinallyStateUpdate(){if(this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),this.RULE_STACK.length===0&&this.isAtEndOfInput()===!1){let t=this.LA(1),r=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:t,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new oa(r,t))}}subruleInternal(t,r,n){let i;try{let o=n!==void 0?n.ARGS:void 0;return this.subruleIdx=r,i=t.apply(this,o),this.cstPostNonTerminal(i,n!==void 0&&n.LABEL!==void 0?n.LABEL:t.ruleName),i}catch(o){throw this.subruleInternalError(o,n,t.ruleName)}}subruleInternalError(t,r,n){throw hr(t)&&t.partialCstResult!==void 0&&(this.cstPostNonTerminal(t.partialCstResult,r!==void 0&&r.LABEL!==void 0?r.LABEL:n),delete t.partialCstResult),t}consumeInternal(t,r,n){let i;try{let o=this.LA(1);this.tokenMatcher(o,t)===!0?(this.consumeToken(),i=o):this.consumeInternalError(t,o,n)}catch(o){i=this.consumeInternalRecovery(t,r,o)}return this.cstPostTerminal(n!==void 0&&n.LABEL!==void 0?n.LABEL:t.name,i),i}consumeInternalError(t,r,n){let i,o=this.LA(0);throw n!==void 0&&n.ERR_MSG?i=n.ERR_MSG:i=this.errorMessageProvider.buildMismatchTokenMessage({expected:t,actual:r,previous:o,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new Jn(i,r,o))}consumeInternalRecovery(t,r,n){if(this.recoveryEnabled&&n.name==="MismatchedTokenException"&&!this.isBackTracking()){let i=this.getFollowsForInRuleRecovery(t,r);try{return this.tryInRuleRecovery(t,i)}catch(o){throw o.name===Bl?n:o}}else throw n}saveRecogState(){let t=this.errors,r=De(this.RULE_STACK);return{errors:t,lexerState:this.exportLexerState(),RULE_STACK:r,CST_STACK:this.CST_STACK}}reloadRecogState(t){this.errors=t.errors,this.importLexerState(t.lexerState),this.RULE_STACK=t.RULE_STACK}ruleInvocationStateUpdate(t,r,n){this.RULE_OCCURRENCE_STACK.push(n),this.RULE_STACK.push(t),this.cstInvocationStateUpdate(r)}isBackTracking(){return this.isBackTrackingStack.length!==0}getCurrRuleFullName(){let t=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[t]}shortRuleNameToFullName(t){return this.shortRuleNameToFull[t]}isAtEndOfInput(){return this.tokenMatcher(this.LA(1),Mt)}reset(){this.resetLexerState(),this.subruleIdx=0,this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]}};s();l();u();var ou=class{initErrorHandler(t){this._errors=[],this.errorMessageProvider=V(t,"errorMessageProvider")?t.errorMessageProvider:St.errorMessageProvider}SAVE_ERROR(t){if(hr(t))return t.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:De(this.RULE_OCCURRENCE_STACK)},this._errors.push(t),t;throw Error("Trying to save an Error which is not a RecognitionException")}get errors(){return De(this._errors)}set errors(t){this._errors=t}raiseEarlyExitException(t,r,n){let i=this.getCurrRuleFullName(),o=this.getGAstProductions()[i],c=eo(t,o,r,this.maxLookahead)[0],f=[];for(let g=1;g<=this.maxLookahead;g++)f.push(this.LA(g));let E=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:c,actual:f,previous:this.LA(0),customUserDescription:n,ruleName:i});throw this.SAVE_ERROR(new aa(E,this.LA(1),this.LA(0)))}raiseNoAltException(t,r){let n=this.getCurrRuleFullName(),i=this.getGAstProductions()[n],o=$i(t,i,this.maxLookahead),a=[];for(let E=1;E<=this.maxLookahead;E++)a.push(this.LA(E));let c=this.LA(0),f=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:o,actual:a,previous:c,customUserDescription:r,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new ia(f,this.LA(1),c))}};s();l();u();var au=class{initContentAssist(){}computeContentAssist(t,r){let n=this.gastProductionsCache[t];if(pt(n))throw Error(`Rule ->${t}<- does not exist in this grammar.`);return Vs([n],r,this.tokenMatcher,this.maxLookahead)}getNextPossibleTokenTypes(t){let r=$e(t.ruleStack),i=this.getGAstProductions()[r];return new ws(i,t).startWalking()}};s();l();u();var lu={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(lu);var e0=!0,t0=Math.pow(2,8)-1,n0=Hn({name:"RECORDING_PHASE_TOKEN",pattern:se.NA});Pr([n0]);var i0=Xn(n0,`This IToken indicates the Parser is in Recording Phase
|
|
96
|
+
See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,-1,-1,-1,-1,-1,-1);Object.freeze(i0);var fO={name:`This CSTNode indicates the Parser is in Recording Phase
|
|
97
|
+
See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,children:{}},su=class{initGastRecorder(t){this.recordingProdStack=[],this.RECORDING_PHASE=!1}enableRecording(){this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",()=>{for(let t=0;t<10;t++){let r=t>0?t:"";this[`CONSUME${r}`]=function(n,i){return this.consumeInternalRecord(n,t,i)},this[`SUBRULE${r}`]=function(n,i){return this.subruleInternalRecord(n,t,i)},this[`OPTION${r}`]=function(n){return this.optionInternalRecord(n,t)},this[`OR${r}`]=function(n){return this.orInternalRecord(n,t)},this[`MANY${r}`]=function(n){this.manyInternalRecord(t,n)},this[`MANY_SEP${r}`]=function(n){this.manySepFirstInternalRecord(t,n)},this[`AT_LEAST_ONE${r}`]=function(n){this.atLeastOneInternalRecord(t,n)},this[`AT_LEAST_ONE_SEP${r}`]=function(n){this.atLeastOneSepFirstInternalRecord(t,n)}}this.consume=function(t,r,n){return this.consumeInternalRecord(r,t,n)},this.subrule=function(t,r,n){return this.subruleInternalRecord(r,t,n)},this.option=function(t,r){return this.optionInternalRecord(r,t)},this.or=function(t,r){return this.orInternalRecord(r,t)},this.many=function(t,r){this.manyInternalRecord(t,r)},this.atLeastOne=function(t,r){this.atLeastOneInternalRecord(t,r)},this.ACTION=this.ACTION_RECORD,this.BACKTRACK=this.BACKTRACK_RECORD,this.LA=this.LA_RECORD})}disableRecording(){this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",()=>{let t=this;for(let r=0;r<10;r++){let n=r>0?r:"";delete t[`CONSUME${n}`],delete t[`SUBRULE${n}`],delete t[`OPTION${n}`],delete t[`OR${n}`],delete t[`MANY${n}`],delete t[`MANY_SEP${n}`],delete t[`AT_LEAST_ONE${n}`],delete t[`AT_LEAST_ONE_SEP${n}`]}delete t.consume,delete t.subrule,delete t.option,delete t.or,delete t.many,delete t.atLeastOne,delete t.ACTION,delete t.BACKTRACK,delete t.LA})}ACTION_RECORD(t){}BACKTRACK_RECORD(t,r){return()=>!0}LA_RECORD(t){return ro}topLevelRuleRecord(t,r){try{let n=new Ct({definition:[],name:t});return n.name=t,this.recordingProdStack.push(n),r.call(this),this.recordingProdStack.pop(),n}catch(n){if(n.KNOWN_RECORDER_ERROR!==!0)try{n.message=n.message+`
|
|
98
|
+
This error was thrown during the "grammar recording phase" For more info see:
|
|
99
|
+
https://chevrotain.io/docs/guide/internals.html#grammar-recording`}catch{throw n}throw n}}optionInternalRecord(t,r){return ua.call(this,ae,t,r)}atLeastOneInternalRecord(t,r){ua.call(this,ge,r,t)}atLeastOneSepFirstInternalRecord(t,r){ua.call(this,Ce,r,t,e0)}manyInternalRecord(t,r){ua.call(this,ne,r,t)}manySepFirstInternalRecord(t,r){ua.call(this,fe,r,t,e0)}orInternalRecord(t,r){return pO.call(this,t,r)}subruleInternalRecord(t,r,n){if(uu(r),!t||V(t,"ruleName")===!1){let c=new Error(`<SUBRULE${r0(r)}> argument is invalid expecting a Parser method reference but got: <${JSON.stringify(t)}>
|
|
100
|
+
inside top level rule: <${this.recordingProdStack[0].name}>`);throw c.KNOWN_RECORDER_ERROR=!0,c}let i=pr(this.recordingProdStack),o=t.ruleName,a=new oe({idx:r,nonTerminalName:o,label:n?.LABEL,referencedRule:void 0});return i.definition.push(a),this.outputCst?fO:lu}consumeInternalRecord(t,r,n){if(uu(r),!Al(t)){let a=new Error(`<CONSUME${r0(r)}> argument is invalid expecting a TokenType reference but got: <${JSON.stringify(t)}>
|
|
101
|
+
inside top level rule: <${this.recordingProdStack[0].name}>`);throw a.KNOWN_RECORDER_ERROR=!0,a}let i=pr(this.recordingProdStack),o=new $({idx:r,terminalType:t,label:n?.LABEL});return i.definition.push(o),i0}};function ua(e,t,r,n=!1){uu(r);let i=pr(this.recordingProdStack),o=gt(t)?t:t.DEF,a=new e({definition:[],idx:r});return n&&(a.separator=t.SEP),V(t,"MAX_LOOKAHEAD")&&(a.maxLookahead=t.MAX_LOOKAHEAD),this.recordingProdStack.push(a),o.call(this),i.definition.push(a),this.recordingProdStack.pop(),lu}function pO(e,t){uu(t);let r=pr(this.recordingProdStack),n=W(e)===!1,i=n===!1?e:e.DEF,o=new pe({definition:[],idx:t,ignoreAmbiguities:n&&e.IGNORE_AMBIGUITIES===!0});V(e,"MAX_LOOKAHEAD")&&(o.maxLookahead=e.MAX_LOOKAHEAD);let a=Wo(i,c=>gt(c.GATE));return o.hasPredicates=a,r.definition.push(o),j(i,c=>{let f=new Ee({definition:[]});o.definition.push(f),V(c,"IGNORE_AMBIGUITIES")?f.ignoreAmbiguities=c.IGNORE_AMBIGUITIES:V(c,"GATE")&&(f.ignoreAmbiguities=!0),this.recordingProdStack.push(f),c.ALT.call(this),this.recordingProdStack.pop()}),lu}function r0(e){return e===0?"":`${e}`}function uu(e){if(e<0||e>t0){let t=new Error(`Invalid DSL Method idx value: <${e}>
|
|
102
|
+
Idx value must be a none negative value smaller than ${t0+1}`);throw t.KNOWN_RECORDER_ERROR=!0,t}}s();l();u();var cu=class{initPerformanceTracer(t){if(V(t,"traceInitPerf")){let r=t.traceInitPerf,n=typeof r=="number";this.traceInitMaxIdent=n?r:1/0,this.traceInitPerf=n?r>0:r}else this.traceInitMaxIdent=0,this.traceInitPerf=St.traceInitPerf;this.traceInitIndent=-1}TRACE_INIT(t,r){if(this.traceInitPerf===!0){this.traceInitIndent++;let n=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&console.log(`${n}--> <${t}>`);let{time:i,value:o}=zo(r),a=i>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&a(`${n}<-- <${t}> time: ${i}ms`),this.traceInitIndent--,o}else return r()}};s();l();u();function o0(e,t){t.forEach(r=>{let n=r.prototype;Object.getOwnPropertyNames(n).forEach(i=>{if(i==="constructor")return;let o=Object.getOwnPropertyDescriptor(n,i);o&&(o.get||o.set)?Object.defineProperty(e.prototype,i,o):e.prototype[i]=r.prototype[i]})})}var ro=Xn(Mt,"",NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze(ro);var St=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:ks,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),no=Object.freeze({recoveryValueFunc:()=>{},resyncEnabled:!0}),He;(function(e){e[e.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",e[e.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",e[e.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",e[e.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",e[e.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",e[e.LEFT_RECURSION=5]="LEFT_RECURSION",e[e.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",e[e.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",e[e.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",e[e.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",e[e.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",e[e.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",e[e.TOO_MANY_ALTS=12]="TOO_MANY_ALTS",e[e.CUSTOM_LOOKAHEAD_VALIDATION=13]="CUSTOM_LOOKAHEAD_VALIDATION"})(He||(He={}));var la=class e{static performSelfAnalysis(t){throw Error("The **static** `performSelfAnalysis` method has been deprecated. \nUse the **instance** method with the same name instead.")}performSelfAnalysis(){this.TRACE_INIT("performSelfAnalysis",()=>{let t;this.selfAnalysisDone=!0;let r=this.className;this.TRACE_INIT("toFastProps",()=>{Yo(this)}),this.TRACE_INIT("Grammar Recording",()=>{try{this.enableRecording(),j(this.definedRulesNames,i=>{let a=this[i].originalGrammarAction,c;this.TRACE_INIT(`${i} Rule`,()=>{c=this.topLevelRuleRecord(i,a)}),this.gastProductionsCache[i]=c})}finally{this.disableRecording()}});let n=[];if(this.TRACE_INIT("Grammar Resolving",()=>{n=VD({rules:le(this.gastProductionsCache)}),this.definitionErrors=this.definitionErrors.concat(n)}),this.TRACE_INIT("Grammar Validations",()=>{if(Q(n)&&this.skipValidations===!1){let i=WD({rules:le(this.gastProductionsCache),tokenTypes:le(this.tokensMap),errMsgProvider:Jt,grammarName:r}),o=_D({lookaheadStrategy:this.lookaheadStrategy,rules:le(this.gastProductionsCache),tokenTypes:le(this.tokensMap),grammarName:r});this.definitionErrors=this.definitionErrors.concat(i,o)}}),Q(this.definitionErrors)&&(this.recoveryEnabled&&this.TRACE_INIT("computeAllProdsFollows",()=>{let i=Zh(le(this.gastProductionsCache));this.resyncFollows=i}),this.TRACE_INIT("ComputeLookaheadFunctions",()=>{var i,o;(o=(i=this.lookaheadStrategy).initialize)===null||o===void 0||o.call(i,{rules:le(this.gastProductionsCache)}),this.preComputeLookaheadFunctions(le(this.gastProductionsCache))})),!e.DEFER_DEFINITION_ERRORS_HANDLING&&!Q(this.definitionErrors))throw t=w(this.definitionErrors,i=>i.message),new Error(`Parser Definition Errors detected:
|
|
103
|
+
${t.join(`
|
|
104
|
+
-------------------------------
|
|
105
|
+
`)}`)})}constructor(t,r){this.definitionErrors=[],this.selfAnalysisDone=!1;let n=this;if(n.initErrorHandler(r),n.initLexerAdapter(),n.initLooksAhead(r),n.initRecognizerEngine(t,r),n.initRecoverable(r),n.initTreeBuilder(r),n.initContentAssist(),n.initGastRecorder(r),n.initPerformanceTracer(r),V(r,"ignoredIssues"))throw new Error(`The <ignoredIssues> IParserConfig property has been deprecated.
|
|
106
|
+
Please use the <IGNORE_AMBIGUITIES> flag on the relevant DSL method instead.
|
|
107
|
+
See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES
|
|
108
|
+
For further details.`);this.skipValidations=V(r,"skipValidations")?r.skipValidations:St.skipValidations}};la.DEFER_DEFINITION_ERRORS_HANDLING=!1;o0(la,[Hs,Zs,tu,ru,iu,nu,ou,au,su,cu]);var ca=class extends la{constructor(t,r=St){let n=De(r);n.outputCst=!0,super(t,n)}};s();l();u();s();l();u();s();l();u();s();l();u();s();l();u();var _E=rr(BE(),1);s();l();u();var Hl=(e,t)=>{for(let r=0;r<t.length;r++){let n=t[r],i=n[0],o=n[1];for(let a=i;a<=o;a++)e.add(a)}},ma=new Set([181,257,259,261,263,265,267,269,271,273,275,277,279,281,283,285,287,289,291,293,295,297,299,301,303,305,307,309,314,316,318,320,322,324,326,331,333,335,337,339,341,343,345,347,349,351,353,355,357,359,361,363,365,367,369,371,373,375,378,380,387,389,392,402,405,414,417,419,421,424,429,432,436,438,454,457,460,462,464,466,468,470,472,474,479,481,483,485,487,489,491,493,499,501,505,507,509,511,513,515,517,519,521,523,525,527,529,531,533,535,537,539,541,543,545,547,549,551,553,555,557,559,561,572,578,583,585,587,589,881,883,887,912,985,987,989,991,993,995,997,999,1001,1003,1005,1013,1016,1121,1123,1125,1127,1129,1131,1133,1135,1137,1139,1141,1143,1145,1147,1149,1151,1153,1163,1165,1167,1169,1171,1173,1175,1177,1179,1181,1183,1185,1187,1189,1191,1193,1195,1197,1199,1201,1203,1205,1207,1209,1211,1213,1215,1218,1220,1222,1224,1226,1228,1233,1235,1237,1239,1241,1243,1245,1247,1249,1251,1253,1255,1257,1259,1261,1263,1265,1267,1269,1271,1273,1275,1277,1279,1281,1283,1285,1287,1289,1291,1293,1295,1297,1299,1301,1303,1305,1307,1309,1311,1313,1315,1317,1319,1321,1323,1325,1327,7681,7683,7685,7687,7689,7691,7693,7695,7697,7699,7701,7703,7705,7707,7709,7711,7713,7715,7717,7719,7721,7723,7725,7727,7729,7731,7733,7735,7737,7739,7741,7743,7745,7747,7749,7751,7753,7755,7757,7759,7761,7763,7765,7767,7769,7771,7773,7775,7777,7779,7781,7783,7785,7787,7789,7791,7793,7795,7797,7799,7801,7803,7805,7807,7809,7811,7813,7815,7817,7819,7821,7823,7825,7827,7839,7841,7843,7845,7847,7849,7851,7853,7855,7857,7859,7861,7863,7865,7867,7869,7871,7873,7875,7877,7879,7881,7883,7885,7887,7889,7891,7893,7895,7897,7899,7901,7903,7905,7907,7909,7911,7913,7915,7917,7919,7921,7923,7925,7927,7929,7931,7933,8126,8458,8467,8495,8500,8505,8526,8580,11361,11368,11370,11372,11377,11393,11395,11397,11399,11401,11403,11405,11407,11409,11411,11413,11415,11417,11419,11421,11423,11425,11427,11429,11431,11433,11435,11437,11439,11441,11443,11445,11447,11449,11451,11453,11455,11457,11459,11461,11463,11465,11467,11469,11471,11473,11475,11477,11479,11481,11483,11485,11487,11489,11500,11502,11507,11559,11565,42561,42563,42565,42567,42569,42571,42573,42575,42577,42579,42581,42583,42585,42587,42589,42591,42593,42595,42597,42599,42601,42603,42605,42625,42627,42629,42631,42633,42635,42637,42639,42641,42643,42645,42647,42649,42651,42787,42789,42791,42793,42795,42797,42803,42805,42807,42809,42811,42813,42815,42817,42819,42821,42823,42825,42827,42829,42831,42833,42835,42837,42839,42841,42843,42845,42847,42849,42851,42853,42855,42857,42859,42861,42863,42874,42876,42879,42881,42883,42885,42887,42892,42894,42897,42903,42905,42907,42909,42911,42913,42915,42917,42919,42921,42927,42933,42935,42937,42939,42941,42943,42947,43002,119995,120779,748,750,884,890,1369,1600,2042,2074,2084,2088,2417,3654,3782,4348,6103,6211,6823,7544,8305,8319,11631,11823,12293,12347,40981,42508,42623,42864,42888,43471,43494,43632,43741,65392,94179,125259,170,186,443,660,1749,1791,1808,1969,2365,2384,2482,2493,2510,2556,2654,2749,2768,2809,2877,2929,2947,2972,3024,3133,3200,3261,3294,3389,3406,3517,3716,3749,3773,3840,4159,4193,4238,4696,4800,6108,6314,7418,12294,12348,12447,12543,13312,19968,42606,42895,42999,43259,43642,43697,43712,43714,43762,44032,64285,64318,67592,67644,68096,69415,69956,70006,70106,70108,70280,70461,70480,70751,70855,71236,71352,71935,72161,72163,72192,72250,72272,72349,72768,73030,73112,94032,94208,123214,126500,126503,126521,126523,126530,126535,126537,126539,126548,126551,126553,126555,126557,126559,126564,126590,131072,173824,177984,178208,183984,453,456,459,498,8124,8140,8188,256,258,260,262,264,266,268,270,272,274,276,278,280,282,284,286,288,290,292,294,296,298,300,302,304,306,308,310,313,315,317,319,321,323,325,327,330,332,334,336,338,340,342,344,346,348,350,352,354,356,358,360,362,364,366,368,370,372,374,379,381,388,418,420,425,428,437,444,452,455,458,461,463,465,467,469,471,473,475,478,480,482,484,486,488,490,492,494,497,500,506,508,510,512,514,516,518,520,522,524,526,528,530,532,534,536,538,540,542,544,546,548,550,552,554,556,558,560,562,577,584,586,588,590,880,882,886,895,902,908,975,984,986,988,990,992,994,996,998,1e3,1002,1004,1006,1012,1015,1120,1122,1124,1126,1128,1130,1132,1134,1136,1138,1140,1142,1144,1146,1148,1150,1152,1162,1164,1166,1168,1170,1172,1174,1176,1178,1180,1182,1184,1186,1188,1190,1192,1194,1196,1198,1200,1202,1204,1206,1208,1210,1212,1214,1219,1221,1223,1225,1227,1229,1232,1234,1236,1238,1240,1242,1244,1246,1248,1250,1252,1254,1256,1258,1260,1262,1264,1266,1268,1270,1272,1274,1276,1278,1280,1282,1284,1286,1288,1290,1292,1294,1296,1298,1300,1302,1304,1306,1308,1310,1312,1314,1316,1318,1320,1322,1324,1326,4295,4301,7680,7682,7684,7686,7688,7690,7692,7694,7696,7698,7700,7702,7704,7706,7708,7710,7712,7714,7716,7718,7720,7722,7724,7726,7728,7730,7732,7734,7736,7738,7740,7742,7744,7746,7748,7750,7752,7754,7756,7758,7760,7762,7764,7766,7768,7770,7772,7774,7776,7778,7780,7782,7784,7786,7788,7790,7792,7794,7796,7798,7800,7802,7804,7806,7808,7810,7812,7814,7816,7818,7820,7822,7824,7826,7828,7838,7840,7842,7844,7846,7848,7850,7852,7854,7856,7858,7860,7862,7864,7866,7868,7870,7872,7874,7876,7878,7880,7882,7884,7886,7888,7890,7892,7894,7896,7898,7900,7902,7904,7906,7908,7910,7912,7914,7916,7918,7920,7922,7924,7926,7928,7930,7932,7934,8025,8027,8029,8031,8450,8455,8469,8484,8486,8488,8517,8579,11360,11367,11369,11371,11378,11381,11394,11396,11398,11400,11402,11404,11406,11408,11410,11412,11414,11416,11418,11420,11422,11424,11426,11428,11430,11432,11434,11436,11438,11440,11442,11444,11446,11448,11450,11452,11454,11456,11458,11460,11462,11464,11466,11468,11470,11472,11474,11476,11478,11480,11482,11484,11486,11488,11490,11499,11501,11506,42560,42562,42564,42566,42568,42570,42572,42574,42576,42578,42580,42582,42584,42586,42588,42590,42592,42594,42596,42598,42600,42602,42604,42624,42626,42628,42630,42632,42634,42636,42638,42640,42642,42644,42646,42648,42650,42786,42788,42790,42792,42794,42796,42798,42802,42804,42806,42808,42810,42812,42814,42816,42818,42820,42822,42824,42826,42828,42830,42832,42834,42836,42838,42840,42842,42844,42846,42848,42850,42852,42854,42856,42858,42860,42862,42873,42875,42880,42882,42884,42886,42891,42893,42896,42898,42902,42904,42906,42908,42910,42912,42914,42916,42918,42920,42934,42936,42938,42940,42942,42946,119964,119970,120134,120778,12295,66369,66378,36,1423,1547,2555,2801,3065,3647,6107,43064,65020,65129,65284,123647,126128,95,8276,65343]),b4=[[97,122],[223,246],[248,255],[311,312],[328,329],[382,384],[396,397],[409,411],[426,427],[441,442],[445,447],[476,477],[495,496],[563,569],[575,576],[591,659],[661,687],[891,893],[940,974],[976,977],[981,983],[1007,1011],[1019,1020],[1072,1119],[1230,1231],[1376,1416],[4304,4346],[4349,4351],[5112,5117],[7296,7304],[7424,7467],[7531,7543],[7545,7578],[7829,7837],[7935,7943],[7952,7957],[7968,7975],[7984,7991],[8e3,8005],[8016,8023],[8032,8039],[8048,8061],[8064,8071],[8080,8087],[8096,8103],[8112,8116],[8118,8119],[8130,8132],[8134,8135],[8144,8147],[8150,8151],[8160,8167],[8178,8180],[8182,8183],[8462,8463],[8508,8509],[8518,8521],[11312,11358],[11365,11366],[11379,11380],[11382,11387],[11491,11492],[11520,11557],[42799,42801],[42865,42872],[42899,42901],[43824,43866],[43872,43879],[43888,43967],[64256,64262],[64275,64279],[65345,65370],[66600,66639],[66776,66811],[68800,68850],[71872,71903],[93792,93823],[119834,119859],[119886,119892],[119894,119911],[119938,119963],[119990,119993],[119997,120003],[120005,120015],[120042,120067],[120094,120119],[120146,120171],[120198,120223],[120250,120275],[120302,120327],[120354,120379],[120406,120431],[120458,120485],[120514,120538],[120540,120545],[120572,120596],[120598,120603],[120630,120654],[120656,120661],[120688,120712],[120714,120719],[120746,120770],[120772,120777],[125218,125251],[688,705],[710,721],[736,740],[1765,1766],[2036,2037],[7288,7293],[7468,7530],[7579,7615],[8336,8348],[11388,11389],[12337,12341],[12445,12446],[12540,12542],[42232,42237],[42652,42653],[42775,42783],[43e3,43001],[43763,43764],[43868,43871],[65438,65439],[92992,92995],[94099,94111],[94176,94177],[123191,123197],[13313,19893],[19969,40943],[44033,55203],[94209,100343],[131073,173782],[173825,177972],[177985,178205],[178209,183969],[183985,191456],[448,451],[1488,1514],[1519,1522],[1568,1599],[1601,1610],[1646,1647],[1649,1747],[1774,1775],[1786,1788],[1810,1839],[1869,1957],[1994,2026],[2048,2069],[2112,2136],[2144,2154],[2208,2228],[2230,2237],[2308,2361],[2392,2401],[2418,2432],[2437,2444],[2447,2448],[2451,2472],[2474,2480],[2486,2489],[2524,2525],[2527,2529],[2544,2545],[2565,2570],[2575,2576],[2579,2600],[2602,2608],[2610,2611],[2613,2614],[2616,2617],[2649,2652],[2674,2676],[2693,2701],[2703,2705],[2707,2728],[2730,2736],[2738,2739],[2741,2745],[2784,2785],[2821,2828],[2831,2832],[2835,2856],[2858,2864],[2866,2867],[2869,2873],[2908,2909],[2911,2913],[2949,2954],[2958,2960],[2962,2965],[2969,2970],[2974,2975],[2979,2980],[2984,2986],[2990,3001],[3077,3084],[3086,3088],[3090,3112],[3114,3129],[3160,3162],[3168,3169],[3205,3212],[3214,3216],[3218,3240],[3242,3251],[3253,3257],[3296,3297],[3313,3314],[3333,3340],[3342,3344],[3346,3386],[3412,3414],[3423,3425],[3450,3455],[3461,3478],[3482,3505],[3507,3515],[3520,3526],[3585,3632],[3634,3635],[3648,3653],[3713,3714],[3718,3722],[3724,3747],[3751,3760],[3762,3763],[3776,3780],[3804,3807],[3904,3911],[3913,3948],[3976,3980],[4096,4138],[4176,4181],[4186,4189],[4197,4198],[4206,4208],[4213,4225],[4352,4680],[4682,4685],[4688,4694],[4698,4701],[4704,4744],[4746,4749],[4752,4784],[4786,4789],[4792,4798],[4802,4805],[4808,4822],[4824,4880],[4882,4885],[4888,4954],[4992,5007],[5121,5740],[5743,5759],[5761,5786],[5792,5866],[5873,5880],[5888,5900],[5902,5905],[5920,5937],[5952,5969],[5984,5996],[5998,6e3],[6016,6067],[6176,6210],[6212,6264],[6272,6276],[6279,6312],[6320,6389],[6400,6430],[6480,6509],[6512,6516],[6528,6571],[6576,6601],[6656,6678],[6688,6740],[6917,6963],[6981,6987],[7043,7072],[7086,7087],[7098,7141],[7168,7203],[7245,7247],[7258,7287],[7401,7404],[7406,7411],[7413,7414],[8501,8504],[11568,11623],[11648,11670],[11680,11686],[11688,11694],[11696,11702],[11704,11710],[11712,11718],[11720,11726],[11728,11734],[11736,11742],[12353,12438],[12449,12538],[12549,12591],[12593,12686],[12704,12730],[12784,12799],[40960,40980],[40982,42124],[42192,42231],[42240,42507],[42512,42527],[42538,42539],[42656,42725],[43003,43009],[43011,43013],[43015,43018],[43020,43042],[43072,43123],[43138,43187],[43250,43255],[43261,43262],[43274,43301],[43312,43334],[43360,43388],[43396,43442],[43488,43492],[43495,43503],[43514,43518],[43520,43560],[43584,43586],[43588,43595],[43616,43631],[43633,43638],[43646,43695],[43701,43702],[43705,43709],[43739,43740],[43744,43754],[43777,43782],[43785,43790],[43793,43798],[43808,43814],[43816,43822],[43968,44002],[55216,55238],[55243,55291],[63744,64109],[64112,64217],[64287,64296],[64298,64310],[64312,64316],[64320,64321],[64323,64324],[64326,64433],[64467,64829],[64848,64911],[64914,64967],[65008,65019],[65136,65140],[65142,65276],[65382,65391],[65393,65437],[65440,65470],[65474,65479],[65482,65487],[65490,65495],[65498,65500],[65536,65547],[65549,65574],[65576,65594],[65596,65597],[65599,65613],[65616,65629],[65664,65786],[66176,66204],[66208,66256],[66304,66335],[66349,66368],[66370,66377],[66384,66421],[66432,66461],[66464,66499],[66504,66511],[66640,66717],[66816,66855],[66864,66915],[67072,67382],[67392,67413],[67424,67431],[67584,67589],[67594,67637],[67639,67640],[67647,67669],[67680,67702],[67712,67742],[67808,67826],[67828,67829],[67840,67861],[67872,67897],[67968,68023],[68030,68031],[68112,68115],[68117,68119],[68121,68149],[68192,68220],[68224,68252],[68288,68295],[68297,68324],[68352,68405],[68416,68437],[68448,68466],[68480,68497],[68608,68680],[68864,68899],[69376,69404],[69424,69445],[69600,69622],[69635,69687],[69763,69807],[69840,69864],[69891,69926],[69968,70002],[70019,70066],[70081,70084],[70144,70161],[70163,70187],[70272,70278],[70282,70285],[70287,70301],[70303,70312],[70320,70366],[70405,70412],[70415,70416],[70419,70440],[70442,70448],[70450,70451],[70453,70457],[70493,70497],[70656,70708],[70727,70730],[70784,70831],[70852,70853],[71040,71086],[71128,71131],[71168,71215],[71296,71338],[71424,71450],[71680,71723],[72096,72103],[72106,72144],[72203,72242],[72284,72329],[72384,72440],[72704,72712],[72714,72750],[72818,72847],[72960,72966],[72968,72969],[72971,73008],[73056,73061],[73063,73064],[73066,73097],[73440,73458],[73728,74649],[74880,75075],[77824,78894],[82944,83526],[92160,92728],[92736,92766],[92880,92909],[92928,92975],[93027,93047],[93053,93071],[93952,94026],[100352,101106],[110592,110878],[110928,110930],[110948,110951],[110960,111355],[113664,113770],[113776,113788],[113792,113800],[113808,113817],[123136,123180],[123584,123627],[124928,125124],[126464,126467],[126469,126495],[126497,126498],[126505,126514],[126516,126519],[126541,126543],[126545,126546],[126561,126562],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[194560,195101],[8072,8079],[8088,8095],[8104,8111],[65,90],[192,214],[216,222],[376,377],[385,386],[390,391],[393,395],[398,401],[403,404],[406,408],[412,413],[415,416],[422,423],[430,431],[433,435],[439,440],[502,504],[570,571],[573,574],[579,582],[904,906],[910,911],[913,929],[931,939],[978,980],[1017,1018],[1021,1071],[1216,1217],[1329,1366],[4256,4293],[5024,5109],[7312,7354],[7357,7359],[7944,7951],[7960,7965],[7976,7983],[7992,7999],[8008,8013],[8040,8047],[8120,8123],[8136,8139],[8152,8155],[8168,8172],[8184,8187],[8459,8461],[8464,8466],[8473,8477],[8490,8493],[8496,8499],[8510,8511],[11264,11310],[11362,11364],[11373,11376],[11390,11392],[42877,42878],[42922,42926],[42928,42932],[42948,42950],[65313,65338],[66560,66599],[66736,66771],[68736,68786],[71840,71871],[93760,93791],[119808,119833],[119860,119885],[119912,119937],[119966,119967],[119973,119974],[119977,119980],[119982,119989],[120016,120041],[120068,120069],[120071,120074],[120077,120084],[120086,120092],[120120,120121],[120123,120126],[120128,120132],[120138,120144],[120172,120197],[120224,120249],[120276,120301],[120328,120353],[120380,120405],[120432,120457],[120488,120512],[120546,120570],[120604,120628],[120662,120686],[120720,120744],[125184,125217],[5870,5872],[8544,8578],[8581,8584],[12321,12329],[12344,12346],[42726,42735],[65856,65908],[66513,66517],[74752,74862],[162,165],[2046,2047],[2546,2547],[8352,8383],[65504,65505],[65509,65510],[73693,73696],[8255,8256],[65075,65076],[65101,65103]];Hl(ma,b4);var Xl=new Set([1471,1479,1648,1809,2045,2362,2364,2381,2433,2492,2509,2558,2620,2641,2677,2748,2765,2817,2876,2879,2893,2902,2946,3008,3021,3072,3076,3201,3260,3263,3270,3405,3530,3542,3633,3761,3893,3895,3897,4038,4226,4237,4253,6086,6109,6313,6450,6683,6742,6752,6754,6783,6964,6972,6978,7142,7149,7405,7412,8417,11647,42607,43010,43014,43019,43263,43443,43493,43587,43596,43644,43696,43713,43766,44005,44008,44013,64286,66045,66272,68159,69633,70003,70196,70206,70367,70464,70726,70750,70842,71229,71339,71341,71351,72160,72263,72767,73018,73031,73109,73111,94031,121461,121476,173,1564,1757,1807,2274,6158,65279,69821,69837,917505]),x4=[[768,879],[1155,1159],[1425,1469],[1473,1474],[1476,1477],[1552,1562],[1611,1631],[1750,1756],[1759,1764],[1767,1768],[1770,1773],[1840,1866],[1958,1968],[2027,2035],[2070,2073],[2075,2083],[2085,2087],[2089,2093],[2137,2139],[2259,2273],[2275,2306],[2369,2376],[2385,2391],[2402,2403],[2497,2500],[2530,2531],[2561,2562],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2753,2757],[2759,2760],[2786,2787],[2810,2815],[2881,2884],[2914,2915],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3170,3171],[3276,3277],[3298,3299],[3328,3329],[3387,3388],[3393,3396],[3426,3427],[3538,3540],[3636,3642],[3655,3662],[3764,3772],[3784,3789],[3864,3865],[3953,3966],[3968,3972],[3974,3975],[3981,3991],[3993,4028],[4141,4144],[4146,4151],[4153,4154],[4157,4158],[4184,4185],[4190,4192],[4209,4212],[4229,4230],[4957,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6089,6099],[6155,6157],[6277,6278],[6432,6434],[6439,6440],[6457,6459],[6679,6680],[6744,6750],[6757,6764],[6771,6780],[6832,6845],[6912,6915],[6966,6970],[7019,7027],[7040,7041],[7074,7077],[7080,7081],[7083,7085],[7144,7145],[7151,7153],[7212,7219],[7222,7223],[7376,7378],[7380,7392],[7394,7400],[7416,7417],[7616,7673],[7675,7679],[8400,8412],[8421,8432],[11503,11505],[11744,11775],[12330,12333],[12441,12442],[42612,42621],[42654,42655],[42736,42737],[43045,43046],[43204,43205],[43232,43249],[43302,43309],[43335,43345],[43392,43394],[43446,43449],[43452,43453],[43561,43566],[43569,43570],[43573,43574],[43698,43700],[43703,43704],[43710,43711],[43756,43757],[65024,65039],[65056,65071],[66422,66426],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68325,68326],[68900,68903],[69446,69456],[69688,69702],[69759,69761],[69811,69814],[69817,69818],[69888,69890],[69927,69931],[69933,69940],[70016,70017],[70070,70078],[70089,70092],[70191,70193],[70198,70199],[70371,70378],[70400,70401],[70459,70460],[70502,70508],[70512,70516],[70712,70719],[70722,70724],[70835,70840],[70847,70848],[70850,70851],[71090,71093],[71100,71101],[71103,71104],[71132,71133],[71219,71226],[71231,71232],[71344,71349],[71453,71455],[71458,71461],[71463,71467],[71727,71735],[71737,71738],[72148,72151],[72154,72155],[72193,72202],[72243,72248],[72251,72254],[72273,72278],[72281,72283],[72330,72342],[72344,72345],[72752,72758],[72760,72765],[72850,72871],[72874,72880],[72882,72883],[72885,72886],[73009,73014],[73020,73021],[73023,73029],[73104,73105],[73459,73460],[92912,92916],[92976,92982],[94095,94098],[113821,113822],[119143,119145],[119163,119170],[119173,119179],[119210,119213],[119362,119364],[121344,121398],[121403,121452],[121499,121503],[121505,121519],[122880,122886],[122888,122904],[122907,122913],[122915,122916],[122918,122922],[123184,123190],[123628,123631],[125136,125142],[125252,125258],[917760,917999],[1536,1541],[8203,8207],[8234,8238],[8288,8292],[8294,8303],[65529,65531],[78896,78904],[113824,113827],[119155,119162],[917536,917631]];Hl(Xl,x4);var B4=[[0,8],[14,27],[127,159],[768,879],[6832,6911],[7616,7679],[8400,8447],[65056,65071],[48,57]];Hl(Xl,B4);var ME=new Set(function*(){yield*ma,yield*Xl}());var Jl={};function PE(e){let t=e;return Object.keys(Jl).forEach(r=>{let n=Jl[r],i=new RegExp(`{{${r}}}`,"g");t=t.replace(i,n)}),t}function dt(e,t){Jl[e]=PE(t)}function _t(e,t){let r=PE(e);return new RegExp(r,t)}dt("Digits","[0-9]([0-9_]*[0-9])?");dt("ExponentPart","[eE][+-]?{{Digits}}");dt("HexDigit","[0-9a-fA-F]");dt("HexDigits","{{HexDigit}}(({{HexDigit}}|'_')*{{HexDigit}})?");dt("FloatTypeSuffix","[fFdD]");dt("LineTerminator","(\\x0A|(\\x0D(\\x0A)?))");dt("UnicodeMarker","uu*");dt("UnicodeEscape","\\\\{{UnicodeMarker}}{{HexDigit}}{4}");dt("RawInputCharacter","\\\\{{UnicodeMarker}}[0-9a-fA-F]{4}");dt("UnicodeInputCharacter","({{UnicodeEscape}}|{{RawInputCharacter}})");dt("OctalDigit","[0-7]");dt("ZeroToThree","[0-3]");dt("OctalEscape","\\\\({{OctalDigit}}|{{ZeroToThree}}?{{OctalDigit}}{2})");dt("EscapeSequence",`\\\\[bstnfr"'\\\\]|{{OctalEscape}}`);dt("StringCharacter",'(?:(?:{{EscapeSequence}})|{{UnicodeEscape}}|(?!["\\\\]).)');dt("TextBlockCharacter","(?:(?:{{EscapeSequence}})|{{UnicodeEscape}}|(?!\\\\).|\\\\?{{LineTerminator}})");function _4(e,t){let r=t,n=e.codePointAt(r);for(ma.has(n)&&(r++,n>65535&&r++,n=e.codePointAt(r));ME.has(n);)r++,n>65535&&r++,n=e.codePointAt(r);return r===t?null:[e.substring(t,r)]}var ei=Hn({name:"Identifier",pattern:{exec:_4},line_breaks:!1,start_chars_hint:Array.from(ma,e=>String.fromCharCode(e))}),wr={modes:{global:[],stringTemplate:[],textBlockTemplate:[]},defaultMode:"global"},kE=Object.keys(wr.modes),Pt={};function q(e,t=kE){e.label||(typeof e.pattern=="string"?e.label=`'${e.pattern}'`:e.pattern instanceof RegExp&&(e.label=`'${e.name}'`));let r=Hn(e);return t.forEach(n=>wr.modes[n].push(r)),Pt[e.name]=r,r}function qr(e){return e.longer_alt=ei,q(e)}var P4=q({name:"RestrictedKeyword",pattern:se.NA}),wE=q({name:"Keyword",pattern:se.NA}),Kt=q({name:"AssignmentOperator",pattern:se.NA}),et=q({name:"BinaryOperator",pattern:se.NA}),ao=q({name:"UnaryPrefixOperator",pattern:se.NA}),fu=q({name:"UnaryPrefixOperatorNotPlusMinus",pattern:se.NA}),qE=q({name:"UnarySuffixOperator",pattern:se.NA}),zt=q({name:"Separators",pattern:se.NA});q({name:"WhiteSpace",pattern:_t("[\\x09\\x20\\x0C]|{{LineTerminator}}"),group:se.SKIPPED});q({name:"LineComment",pattern:/\/\/[^\n\r]*/,group:"comments"});q({name:"TraditionalComment",pattern:/\/\*([^*]|\*(?!\/))*\*\//,group:"comments"});q({name:"BinaryLiteral",pattern:/0[bB][01]([01_]*[01])?[lL]?/});q({name:"FloatLiteral",pattern:_t("{{Digits}}\\.({{Digits}})?({{ExponentPart}})?({{FloatTypeSuffix}})?|\\.{{Digits}}({{ExponentPart}})?({{FloatTypeSuffix}})?|{{Digits}}{{ExponentPart}}({{FloatTypeSuffix}})?|{{Digits}}({{ExponentPart}})?{{FloatTypeSuffix}}")});q({name:"OctalLiteral",pattern:/0_*[0-7]([0-7_]*[0-7])?[lL]?/});q({name:"HexFloatLiteral",pattern:_t("0[xX]({{HexDigits}}\\.?|({{HexDigits}})?\\.{{HexDigits}})[pP][+-]?{{Digits}}[fFdD]?")});q({name:"HexLiteral",pattern:/0[xX][0-9a-fA-F]([0-9a-fA-F_]*[0-9a-fA-F])?[lL]?/});q({name:"DecimalLiteral",pattern:_t("(0|[1-9](_+{{Digits}}|({{Digits}})?))[lL]?")});q({name:"CharLiteral",pattern:_t("'(?:[^\\\\']|(?:(?:{{EscapeSequence}})|{{UnicodeInputCharacter}}))'")});q({name:"TextBlock",pattern:_t('"""[\\x09\\x20\\x0C]*{{LineTerminator}}{{TextBlockCharacter}}*?"""')});q({name:"TextBlockTemplateBegin",pattern:_t('"""{{LineTerminator}}{{TextBlockCharacter}}*?\\\\\\{'),push_mode:"textBlockTemplate"});q({name:"TextBlockTemplateEnd",pattern:_t('\\}{{TextBlockCharacter}}*?"""'),pop_mode:!0},["textBlockTemplate"]);q({name:"StringLiteral",pattern:_t('"{{StringCharacter}}*?"')});q({name:"StringTemplateBegin",pattern:_t('"{{StringCharacter}}*?\\\\\\{'),push_mode:"stringTemplate"});q({name:"StringTemplateEnd",pattern:_t('\\}{{StringCharacter}}*?"'),pop_mode:!0},["stringTemplate"]);q({name:"StringTemplateMid",pattern:_t("\\}{{StringCharacter}}*?\\\\\\{")},["stringTemplate"]);q({name:"TextBlockTemplateMid",pattern:_t("\\}{{TextBlockCharacter}}*?\\\\\\{")},["textBlockTemplate"]);var k4=["open","module","requires","transitive","exports","opens","to","uses","provides","when","with","sealed","non-sealed","permits"];jE(k4).forEach(e=>{qr({name:e[0].toUpperCase()+(0,_E.default)(e.substr(1)),pattern:e,categories:[ei,P4]})});var w4=["abstract","continue","for","new","switch","assert","default","if","package","synchronized","boolean","do","goto","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while",["_","underscore"]];jE(w4).forEach(e=>{let t=Array.isArray(e),r=t?e[1]:e,n=t?e[0]:e,i={name:r[0].toUpperCase()+r.substr(1),pattern:n,categories:wE};t&&(i.label=`'${r}'`),qr(i)});qr({name:"Instanceof",pattern:"instanceof",categories:[wE,et]});qr({name:"Var",pattern:"var",categories:ei});qr({name:"Yield",pattern:"yield",categories:ei});qr({name:"Record",pattern:"record",categories:ei});qr({name:"True",pattern:"true"});qr({name:"False",pattern:"false"});qr({name:"Null",pattern:"null"});q({name:"At",pattern:"@",categories:[zt]});q({name:"Arrow",pattern:"->"});q({name:"DotDotDot",pattern:"...",categories:[zt]});q({name:"Dot",pattern:".",categories:[zt]});q({name:"Comma",pattern:",",categories:[zt]});q({name:"Semicolon",pattern:";",categories:[zt]});q({name:"ColonColon",pattern:"::",categories:[zt]});q({name:"Colon",pattern:":"});q({name:"QuestionMark",pattern:"?"});q({name:"LBrace",pattern:"(",categories:[zt]});q({name:"RBrace",pattern:")",categories:[zt]});q({name:"LCurly",pattern:"{",categories:[zt],push_mode:wr.defaultMode});q({name:"RCurly",pattern:"}",categories:[zt],pop_mode:!0},[wr.defaultMode]);q({name:"LSquare",pattern:"[",categories:[zt]});q({name:"RSquare",pattern:"]",categories:[zt]});q({name:"MinusMinus",pattern:"--",categories:[ao,qE,fu]});q({name:"PlusPlus",pattern:"++",categories:[ao,qE,fu]});q({name:"Complement",pattern:"~",categories:[ao,fu]});q({name:"LessEquals",pattern:"<=",categories:[et]});q({name:"LessLessEquals",pattern:"<<=",categories:[Kt]});q({name:"Less",pattern:"<",categories:[et]});q({name:"GreaterEquals",pattern:">=",categories:[et]});q({name:"GreaterGreaterEquals",pattern:">>=",categories:[Kt]});q({name:"GreaterGreaterGreaterEquals",pattern:">>>=",categories:[Kt]});q({name:"Greater",pattern:">",categories:[et]});q({name:"EqualsEquals",pattern:"==",categories:[et]});q({name:"Equals",pattern:"=",categories:[et,Kt]});q({name:"MinusEquals",pattern:"-=",categories:[Kt]});q({name:"Minus",pattern:"-",categories:[et,ao]});q({name:"PlusEquals",pattern:"+=",categories:[Kt]});q({name:"Plus",pattern:"+",categories:[et,ao]});q({name:"AndAnd",pattern:"&&",categories:[et]});q({name:"AndEquals",pattern:"&=",categories:[Kt]});q({name:"And",pattern:"&",categories:[et]});q({name:"XorEquals",pattern:"^=",categories:[Kt]});q({name:"Xor",pattern:"^",categories:[et]});q({name:"NotEquals",pattern:"!=",categories:[et]});q({name:"OrOr",pattern:"||",categories:[et]});q({name:"OrEquals",pattern:"|=",categories:[Kt]});q({name:"Or",pattern:"|",categories:[et]});q({name:"MultiplyEquals",pattern:"*=",categories:[Kt]});q({name:"Star",pattern:"*",categories:[et]});q({name:"DivideEquals",pattern:"/=",categories:[Kt]});q({name:"Divide",pattern:"/",categories:[et]});q({name:"ModuloEquals",pattern:"%=",categories:[Kt]});q({name:"Modulo",pattern:"%",categories:[et]});q({name:"Not",pattern:"!",categories:[ao,fu]});kE.forEach(e=>wr.modes[e].push(ei));Pt.Identifier=ei;function jE(e){return e.sort((t,r)=>r.length-t.length)}s();l();u();function ha(){return(typeof m<"u"&&m.env&&m.env["prettier-java-development-mode"]==="enabled")===!1}var GE=new se(wr,{ensureOptimizations:!0,skipValidations:ha()});s();l();u();s();l();u();s();l();u();s();l();u();function ti(e,t,r){return`${e.name}_${t}_${r}`}var An=1,q4=2,VE=4,WE=5;var lo=7,j4=8,G4=9,V4=10,W4=11,KE=12,Da=class{constructor(t){this.target=t}isEpsilon(){return!1}},so=class extends Da{constructor(t,r){super(t),this.tokenType=r}},Ea=class extends Da{constructor(t){super(t)}isEpsilon(){return!0}},uo=class extends Da{constructor(t,r,n){super(t),this.rule=r,this.followState=n}isEpsilon(){return!0}};function zE(e){let t={decisionMap:{},decisionStates:[],ruleToStartState:new Map,ruleToStopState:new Map,states:[]};K4(t,e);let r=e.length;for(let n=0;n<r;n++){let i=e[n],o=ri(t,i,i);o!==void 0&&rI(t,i,o)}return t}function K4(e,t){let r=t.length;for(let n=0;n<r;n++){let i=t[n],o=tt(e,i,void 0,{type:q4}),a=tt(e,i,void 0,{type:lo});o.stop=a,e.ruleToStartState.set(i,o),e.ruleToStopState.set(i,a)}}function YE(e,t,r){return r instanceof $?Zl(e,t,r.terminalType,r):r instanceof oe?tI(e,t,r):r instanceof pe?J4(e,t,r):r instanceof ae?Z4(e,t,r):r instanceof ne?z4(e,t,r):r instanceof fe?Y4(e,t,r):r instanceof ge?H4(e,t,r):r instanceof Ce?X4(e,t,r):ri(e,t,r)}function z4(e,t,r){let n=tt(e,t,r,{type:WE});Tn(e,n);let i=co(e,t,n,r,ri(e,t,r));return XE(e,t,r,i)}function Y4(e,t,r){let n=tt(e,t,r,{type:WE});Tn(e,n);let i=co(e,t,n,r,ri(e,t,r)),o=Zl(e,t,r.separator,r);return XE(e,t,r,i,o)}function H4(e,t,r){let n=tt(e,t,r,{type:VE});Tn(e,n);let i=co(e,t,n,r,ri(e,t,r));return HE(e,t,r,i)}function X4(e,t,r){let n=tt(e,t,r,{type:VE});Tn(e,n);let i=co(e,t,n,r,ri(e,t,r)),o=Zl(e,t,r.separator,r);return HE(e,t,r,i,o)}function J4(e,t,r){let n=tt(e,t,r,{type:An});Tn(e,n);let i=w(r.definition,a=>YE(e,t,a));return co(e,t,n,r,...i)}function Z4(e,t,r){let n=tt(e,t,r,{type:An});Tn(e,n);let i=co(e,t,n,r,ri(e,t,r));return Q4(e,t,r,i)}function ri(e,t,r){let n=Qe(w(r.definition,i=>YE(e,t,i)),i=>i!==void 0);return n.length===1?n[0]:n.length===0?void 0:eI(e,n)}function HE(e,t,r,n,i){let o=n.left,a=n.right,c=tt(e,t,r,{type:W4});Tn(e,c);let f=tt(e,t,r,{type:KE});return o.loopback=c,f.loopback=c,e.decisionMap[ti(t,i?"RepetitionMandatoryWithSeparator":"RepetitionMandatory",r.idx)]=c,We(a,c),i===void 0?(We(c,o),We(c,f)):(We(c,f),We(c,i.left),We(i.right,o)),{left:o,right:f}}function XE(e,t,r,n,i){let o=n.left,a=n.right,c=tt(e,t,r,{type:V4});Tn(e,c);let f=tt(e,t,r,{type:KE}),E=tt(e,t,r,{type:G4});return c.loopback=E,f.loopback=E,We(c,o),We(c,f),We(a,E),i!==void 0?(We(E,f),We(E,i.left),We(i.right,o)):We(E,c),e.decisionMap[ti(t,i?"RepetitionWithSeparator":"Repetition",r.idx)]=c,{left:c,right:f}}function Q4(e,t,r,n){let i=n.left,o=n.right;return We(i,o),e.decisionMap[ti(t,"Option",r.idx)]=i,n}function Tn(e,t){return e.decisionStates.push(t),t.decision=e.decisionStates.length-1,t.decision}function co(e,t,r,n,...i){let o=tt(e,t,n,{type:j4,start:r});r.end=o;for(let c of i)c!==void 0?(We(r,c.left),We(c.right,o)):We(r,o);let a={left:r,right:o};return e.decisionMap[ti(t,$4(n),n.idx)]=r,a}function $4(e){if(e instanceof pe)return"Alternation";if(e instanceof ae)return"Option";if(e instanceof ne)return"Repetition";if(e instanceof fe)return"RepetitionWithSeparator";if(e instanceof ge)return"RepetitionMandatory";if(e instanceof Ce)return"RepetitionMandatoryWithSeparator";throw new Error("Invalid production type encountered")}function eI(e,t){let r=t.length;for(let o=0;o<r-1;o++){let a=t[o],c;a.left.transitions.length===1&&(c=a.left.transitions[0]);let f=c instanceof uo,E=c,g=t[o+1].left;a.left.type===An&&a.right.type===An&&c!==void 0&&(f&&E.followState===a.right||c.target===a.right)?(f?E.followState=g:c.target=g,nI(e,a.right)):We(a.right,g)}let n=t[0],i=t[r-1];return{left:n.left,right:i.right}}function Zl(e,t,r,n){let i=tt(e,t,n,{type:An}),o=tt(e,t,n,{type:An});return Ql(i,new so(o,r)),{left:i,right:o}}function tI(e,t,r){let n=r.referencedRule,i=e.ruleToStartState.get(n),o=tt(e,t,r,{type:An}),a=tt(e,t,r,{type:An}),c=new uo(i,n,a);return Ql(o,c),{left:o,right:a}}function rI(e,t,r){let n=e.ruleToStartState.get(t);We(n,r.left);let i=e.ruleToStopState.get(t);return We(r.right,i),{left:n,right:i}}function We(e,t){let r=new Ea(t);Ql(e,r)}function tt(e,t,r,n){let i=Object.assign({atn:e,production:r,epsilonOnlyTransitions:!1,rule:t,transitions:[],nextTokenWithinRule:[],stateNumber:e.states.length},n);return e.states.push(i),i}function Ql(e,t){e.transitions.length===0&&(e.epsilonOnlyTransitions=t.isEpsilon()),e.transitions.push(t)}function nI(e,t){e.states.splice(e.states.indexOf(t),1)}s();l();u();var ga={},fo=class{constructor(){this.map={},this.configs=[]}get size(){return this.configs.length}finalize(){this.map={}}add(t){let r=$l(t);r in this.map||(this.map[r]=this.configs.length,this.configs.push(t))}get elements(){return this.configs}get alts(){return w(this.configs,t=>t.alt)}get key(){let t="";for(let r in this.map)t+=r+":";return t}};function $l(e,t=!0){return`${t?`a${e.alt}`:""}s${e.state.stateNumber}:${e.stack.map(r=>r.stateNumber.toString()).join("_")}`}function iI(e,t){let r={};return n=>{let i=n.toString(),o=r[i];return o!==void 0||(o={atnStartState:e,decision:t,states:{}},r[i]=o),o}}var pu=class{constructor(){this.predicates=[]}is(t){return t>=this.predicates.length||this.predicates[t]}set(t,r){this.predicates[t]=r}toString(){let t="",r=this.predicates.length;for(let n=0;n<r;n++)t+=this.predicates[n]===!0?"1":"0";return t}},JE=new pu,Ca=class extends Zn{constructor(t){var r;super(),this.logging=(r=t?.logging)!==null&&r!==void 0?r:n=>console.log(n)}initialize(t){this.atn=zE(t.rules),this.dfas=oI(this.atn)}validateAmbiguousAlternationAlternatives(){return[]}validateEmptyOrAlternatives(){return[]}buildLookaheadForAlternation(t){let{prodOccurrence:r,rule:n,hasPredicates:i,dynamicTokensEnabled:o}=t,a=this.dfas,c=this.logging,f=ti(n,"Alternation",r),g=this.atn.decisionMap[f].decision,A=w(Ks({maxLookahead:1,occurrence:r,prodType:"Alternation",rule:n}),y=>w(y,T=>T[0]));if(ZE(A,!1)&&!o){let y=Ie(A,(T,S,v)=>(j(S,L=>{L&&(T[L.tokenTypeIdx]=v,j(L.categoryMatches,O=>{T[O]=v}))}),T),{});return i?function(T){var S;let v=this.LA(1),L=y[v.tokenTypeIdx];if(T!==void 0&&L!==void 0){let O=(S=T[L])===null||S===void 0?void 0:S.GATE;if(O!==void 0&&O.call(this)===!1)return}return L}:function(){let T=this.LA(1);return y[T.tokenTypeIdx]}}else return i?function(y){let T=new pu,S=y===void 0?0:y.length;for(let L=0;L<S;L++){let O=y?.[L].GATE;T.set(L,O===void 0||O.call(this))}let v=ec.call(this,a,g,T,c);return typeof v=="number"?v:void 0}:function(){let y=ec.call(this,a,g,JE,c);return typeof y=="number"?y:void 0}}buildLookaheadForOptional(t){let{prodOccurrence:r,rule:n,prodType:i,dynamicTokensEnabled:o}=t,a=this.dfas,c=this.logging,f=ti(n,i,r),g=this.atn.decisionMap[f].decision,A=w(Ks({maxLookahead:1,occurrence:r,prodType:i,rule:n}),y=>w(y,T=>T[0]));if(ZE(A)&&A[0][0]&&!o){let y=A[0],T=we(y);if(T.length===1&&Q(T[0].categoryMatches)){let v=T[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===v}}else{let S=Ie(T,(v,L)=>(L!==void 0&&(v[L.tokenTypeIdx]=!0,j(L.categoryMatches,O=>{v[O]=!0})),v),{});return function(){let v=this.LA(1);return S[v.tokenTypeIdx]===!0}}}return function(){let y=ec.call(this,a,g,JE,c);return typeof y=="object"?!1:y===0}}};function ZE(e,t=!0){let r=new Set;for(let n of e){let i=new Set;for(let o of n){if(o===void 0){if(t)break;return!1}let a=[o.tokenTypeIdx].concat(o.categoryMatches);for(let c of a)if(r.has(c)){if(!i.has(c))return!1}else r.add(c),i.add(c)}}return!0}function oI(e){let t=e.decisionStates.length,r=Array(t);for(let n=0;n<t;n++)r[n]=iI(e.decisionStates[n],n);return r}function ec(e,t,r,n){let i=e[t](r),o=i.start;if(o===void 0){let c=DI(i.atnStartState);o=e1(i,$E(c)),i.start=o}return aI.apply(this,[i,o,r,n])}function aI(e,t,r,n){let i=t,o=1,a=[],c=this.LA(o++);for(;;){let f=pI(i,c);if(f===void 0&&(f=sI.apply(this,[e,i,c,o,r,n])),f===ga)return fI(a,i,c);if(f.isAcceptState===!0)return f.prediction;i=f,a.push(c),c=this.LA(o++)}}function sI(e,t,r,n,i,o){let a=dI(t.configs,r,i);if(a.size===0)return QE(e,t,r,ga),ga;let c=$E(a),f=hI(a,i);if(f!==void 0)c.isAcceptState=!0,c.prediction=f,c.configs.uniqueAlt=f;else if(yI(a)){let E=Gh(a.alts);c.isAcceptState=!0,c.prediction=E,c.configs.uniqueAlt=E,uI.apply(this,[e,n,a.alts,o])}return c=QE(e,t,r,c),c}function uI(e,t,r,n){let i=[];for(let E=1;E<=t;E++)i.push(this.LA(E).tokenType);let o=e.atnStartState,a=o.rule,c=o.production,f=lI({topLevelRule:a,ambiguityIndices:r,production:c,prefixPath:i});n(f)}function lI(e){let t=w(e.prefixPath,i=>kr(i)).join(", "),r=e.production.idx===0?"":e.production.idx,n=`Ambiguous Alternatives Detected: <${e.ambiguityIndices.join(", ")}> in <${cI(e.production)}${r}> inside <${e.topLevelRule.name}> Rule,
|
|
109
|
+
<${t}> may appears as a prefix path in all these alternatives.
|
|
110
|
+
`;return n=n+`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES
|
|
111
|
+
For Further details.`,n}function cI(e){if(e instanceof oe)return"SUBRULE";if(e instanceof ae)return"OPTION";if(e instanceof pe)return"OR";if(e instanceof ge)return"AT_LEAST_ONE";if(e instanceof Ce)return"AT_LEAST_ONE_SEP";if(e instanceof fe)return"MANY_SEP";if(e instanceof ne)return"MANY";if(e instanceof $)return"CONSUME";throw Error("non exhaustive match")}function fI(e,t,r){let n=at(t.configs.elements,o=>o.state.transitions),i=Xh(n.filter(o=>o instanceof so).map(o=>o.tokenType),o=>o.tokenTypeIdx);return{actualToken:r,possibleTokenTypes:i,tokenPath:e}}function pI(e,t){return e.edges[t.tokenTypeIdx]}function dI(e,t,r){let n=new fo,i=[];for(let a of e.elements){if(r.is(a.alt)===!1)continue;if(a.state.type===lo){i.push(a);continue}let c=a.state.transitions.length;for(let f=0;f<c;f++){let E=a.state.transitions[f],g=mI(E,t);g!==void 0&&n.add({state:g,alt:a.alt,stack:a.stack})}}let o;if(i.length===0&&n.size===1&&(o=n),o===void 0){o=new fo;for(let a of n.elements)du(a,o)}if(i.length>0&&!gI(o))for(let a of i)o.add(a);return o}function mI(e,t){if(e instanceof so&&Y(t,e.tokenType))return e.target}function hI(e,t){let r;for(let n of e.elements)if(t.is(n.alt)===!0){if(r===void 0)r=n.alt;else if(r!==n.alt)return}return r}function $E(e){return{configs:e,edges:{},isAcceptState:!1,prediction:-1}}function QE(e,t,r,n){return n=e1(e,n),t.edges[r.tokenTypeIdx]=n,n}function e1(e,t){if(t===ga)return t;let r=t.configs.key,n=e.states[r];return n!==void 0?n:(t.configs.finalize(),e.states[r]=t,t)}function DI(e){let t=new fo,r=e.transitions.length;for(let n=0;n<r;n++){let o={state:e.transitions[n].target,alt:n,stack:[]};du(o,t)}return t}function du(e,t){let r=e.state;if(r.type===lo){if(e.stack.length>0){let i=[...e.stack],a={state:i.pop(),alt:e.alt,stack:i};du(a,t)}else t.add(e);return}r.epsilonOnlyTransitions||t.add(e);let n=r.transitions.length;for(let i=0;i<n;i++){let o=r.transitions[i],a=EI(e,o);a!==void 0&&du(a,t)}}function EI(e,t){if(t instanceof Ea)return{state:t.target,alt:e.alt,stack:e.stack};if(t instanceof uo){let r=[...e.stack,t.followState];return{state:t.target,alt:e.alt,stack:r}}}function gI(e){for(let t of e.elements)if(t.state.type===lo)return!0;return!1}function CI(e){for(let t of e.elements)if(t.state.type!==lo)return!1;return!0}function yI(e){if(CI(e))return!0;let t=SI(e.elements);return AI(t)&&!TI(t)}function SI(e){let t=new Map;for(let r of e){let n=$l(r,!1),i=t.get(n);i===void 0&&(i={},t.set(n,i)),i[r.alt]=!0}return t}function AI(e){for(let t of Array.from(e.values()))if(Object.keys(t).length>1)return!0;return!1}function TI(e){for(let t of Array.from(e.values()))if(Object.keys(t).length===1)return!0;return!1}s();l();u();function t1(e,t){e.RULE("literal",()=>{e.OR([{ALT:()=>e.SUBRULE(e.integerLiteral)},{ALT:()=>e.SUBRULE(e.floatingPointLiteral)},{ALT:()=>e.SUBRULE(e.booleanLiteral)},{ALT:()=>e.CONSUME(t.CharLiteral)},{ALT:()=>e.CONSUME(t.TextBlock)},{ALT:()=>e.CONSUME(t.StringLiteral)},{ALT:()=>e.CONSUME(t.Null)}])}),e.RULE("integerLiteral",()=>{e.OR([{ALT:()=>e.CONSUME(t.DecimalLiteral)},{ALT:()=>e.CONSUME(t.HexLiteral)},{ALT:()=>e.CONSUME(t.OctalLiteral)},{ALT:()=>e.CONSUME(t.BinaryLiteral)}])}),e.RULE("floatingPointLiteral",()=>{e.OR([{ALT:()=>e.CONSUME(t.FloatLiteral)},{ALT:()=>e.CONSUME(t.HexFloatLiteral)}])}),e.RULE("booleanLiteral",()=>{e.OR([{ALT:()=>e.CONSUME(t.True)},{ALT:()=>e.CONSUME(t.False)}])})}s();l();u();function r1(e,t){e.RULE("primitiveType",()=>{e.MANY(()=>{e.SUBRULE(e.annotation)}),e.OR([{ALT:()=>e.SUBRULE(e.numericType)},{ALT:()=>e.CONSUME(t.Boolean)}])}),e.RULE("numericType",()=>{e.OR([{ALT:()=>e.SUBRULE(e.integralType)},{ALT:()=>e.SUBRULE(e.floatingPointType)}])}),e.RULE("integralType",()=>{e.OR([{ALT:()=>e.CONSUME(t.Byte)},{ALT:()=>e.CONSUME(t.Short)},{ALT:()=>e.CONSUME(t.Int)},{ALT:()=>e.CONSUME(t.Long)},{ALT:()=>e.CONSUME(t.Char)}])}),e.RULE("floatingPointType",()=>{e.OR([{ALT:()=>e.CONSUME(t.Float)},{ALT:()=>e.CONSUME(t.Double)}])}),e.RULE("referenceType",()=>{e.MANY(()=>{e.SUBRULE(e.annotation)}),e.OR({DEF:[{ALT:()=>{e.SUBRULE(e.primitiveType),e.SUBRULE(e.dims)}},{ALT:()=>{e.SUBRULE(e.classOrInterfaceType),e.OPTION(()=>{e.SUBRULE2(e.dims)})}}],IGNORE_AMBIGUITIES:!0})}),e.RULE("classOrInterfaceType",()=>{e.SUBRULE(e.classType)}),e.RULE("classType",()=>{e.MANY(()=>{e.SUBRULE(e.annotation)}),e.CONSUME(t.Identifier),e.OPTION(()=>{e.SUBRULE(e.typeArguments)}),e.MANY2(()=>{e.CONSUME(t.Dot),e.MANY3(()=>{e.SUBRULE2(e.annotation)}),e.CONSUME2(t.Identifier),e.OPTION2(()=>e.SUBRULE2(e.typeArguments))})}),e.RULE("interfaceType",()=>{e.SUBRULE(e.classType)}),e.RULE("typeVariable",()=>{e.MANY(()=>{e.SUBRULE(e.annotation)}),e.CONSUME(t.Identifier)}),e.RULE("dims",()=>{e.MANY(()=>{e.SUBRULE(e.annotation)}),e.CONSUME(t.LSquare),e.CONSUME(t.RSquare),e.MANY2({GATE:()=>e.BACKTRACK_LOOKAHEAD(e.isDims),DEF:()=>{e.MANY3(()=>{e.SUBRULE2(e.annotation)}),e.CONSUME2(t.LSquare),e.CONSUME2(t.RSquare)}})}),e.RULE("typeParameter",()=>{e.MANY(()=>{e.SUBRULE(e.typeParameterModifier)}),e.SUBRULE(e.typeIdentifier),e.OPTION(()=>{e.SUBRULE(e.typeBound)})}),e.RULE("typeParameterModifier",()=>{e.SUBRULE(e.annotation)}),e.RULE("typeBound",()=>{e.CONSUME(t.Extends),e.SUBRULE(e.classOrInterfaceType),e.MANY(()=>{e.SUBRULE(e.additionalBound)})}),e.RULE("additionalBound",()=>{e.CONSUME(t.And),e.SUBRULE(e.interfaceType)}),e.RULE("typeArguments",()=>{e.CONSUME(t.Less),e.SUBRULE(e.typeArgumentList),e.CONSUME(t.Greater)}),e.RULE("typeArgumentList",()=>{e.SUBRULE(e.typeArgument),e.MANY(()=>{e.CONSUME(t.Comma),e.SUBRULE2(e.typeArgument)})}),e.RULE("typeArgument",()=>{e.OR([{ALT:()=>e.SUBRULE(e.referenceType)},{ALT:()=>e.SUBRULE(e.wildcard)}])}),e.RULE("wildcard",()=>{e.MANY(()=>{e.SUBRULE(e.annotation)}),e.CONSUME(t.QuestionMark),e.OPTION(()=>{e.SUBRULE(e.wildcardBounds)})}),e.RULE("wildcardBounds",()=>{e.OR([{ALT:()=>e.CONSUME(t.Extends)},{ALT:()=>e.CONSUME(t.Super)}]),e.SUBRULE(e.referenceType)})}s();l();u();function n1(e,t){e.RULE("moduleName",()=>{e.CONSUME(t.Identifier),e.MANY(()=>{e.CONSUME(t.Dot),e.CONSUME2(t.Identifier)})}),e.RULE("packageName",()=>{e.CONSUME(t.Identifier),e.MANY(()=>{e.CONSUME(t.Dot),e.CONSUME2(t.Identifier)})}),e.RULE("typeName",()=>{e.CONSUME(t.Identifier),e.MANY(()=>{e.CONSUME(t.Dot),e.CONSUME2(t.Identifier)})}),e.RULE("expressionName",()=>{e.CONSUME(t.Identifier),e.MANY({GATE:()=>Y(this.LA(2).tokenType,t.Identifier),DEF:()=>{e.CONSUME(t.Dot),e.CONSUME2(t.Identifier)}})}),e.RULE("methodName",()=>{e.CONSUME(t.Identifier)}),e.RULE("packageOrTypeName",()=>{e.CONSUME(t.Identifier),e.MANY({GATE:()=>Y(this.LA(2).tokenType,t.Star)===!1,DEF:()=>{e.CONSUME(t.Dot),e.CONSUME2(t.Identifier)}})}),e.RULE("ambiguousName",()=>{e.CONSUME(t.Identifier),e.MANY(()=>{e.CONSUME(t.Dot),e.CONSUME2(t.Identifier)})})}s();l();u();function i1(e,t){e.RULE("compilationUnit",()=>{e.OR([{ALT:()=>e.SUBRULE(e.ordinaryCompilationUnit)},{ALT:()=>e.SUBRULE(e.modularCompilationUnit)}]),e.CONSUME(Mt)}),e.RULE("ordinaryCompilationUnit",()=>{e.OPTION(()=>e.SUBRULE(e.packageDeclaration)),e.MANY(()=>{e.SUBRULE3(e.importDeclaration)}),e.MANY2(()=>{e.SUBRULE(e.typeDeclaration)})}),e.RULE("modularCompilationUnit",()=>{e.MANY(()=>{e.SUBRULE(e.importDeclaration)}),e.SUBRULE(e.moduleDeclaration)}),e.RULE("packageDeclaration",()=>{e.MANY(()=>{e.SUBRULE(e.packageModifier)}),e.CONSUME(t.Package),e.CONSUME(t.Identifier),e.MANY2(()=>{e.CONSUME(t.Dot),e.CONSUME2(t.Identifier)}),e.CONSUME2(t.Semicolon)}),e.RULE("packageModifier",()=>{e.SUBRULE(e.annotation)}),e.RULE("importDeclaration",()=>{e.OR([{ALT:()=>{e.CONSUME(t.Import),e.OPTION(()=>{e.CONSUME(t.Static)}),e.SUBRULE(e.packageOrTypeName),e.OPTION2(()=>{e.CONSUME(t.Dot),e.CONSUME(t.Star)}),e.CONSUME(t.Semicolon)}},{ALT:()=>e.SUBRULE(e.emptyStatement)}])}),e.RULE("typeDeclaration",()=>{e.OR([{ALT:()=>e.CONSUME(t.Semicolon)},{ALT:()=>e.SUBRULE(e.classDeclaration)},{ALT:()=>e.SUBRULE(e.interfaceDeclaration)},{ALT:()=>e.SUBRULE(e.fieldDeclaration)},{ALT:()=>e.SUBRULE(e.methodDeclaration)}])}),e.RULE("moduleDeclaration",()=>{e.MANY(()=>{e.SUBRULE(e.annotation)}),e.OPTION(()=>{e.CONSUME(t.Open)}),e.CONSUME(t.Module),e.CONSUME(t.Identifier),e.MANY2(()=>{e.CONSUME(t.Dot),e.CONSUME2(t.Identifier)}),e.CONSUME(t.LCurly),e.MANY3(()=>{e.SUBRULE(e.moduleDirective)}),e.CONSUME(t.RCurly)}),e.RULE("moduleDirective",()=>{e.OR([{ALT:()=>e.SUBRULE(e.requiresModuleDirective)},{ALT:()=>e.SUBRULE(e.exportsModuleDirective)},{ALT:()=>e.SUBRULE(e.opensModuleDirective)},{ALT:()=>e.SUBRULE(e.usesModuleDirective)},{ALT:()=>e.SUBRULE(e.providesModuleDirective)}])}),e.RULE("requiresModuleDirective",()=>{e.CONSUME(t.Requires),e.MANY({GATE:()=>(Y(e.LA(1).tokenType,t.Transitive)&&Y(e.LA(2).tokenType,t.Separators))===!1,DEF:()=>{e.SUBRULE(e.requiresModifier)}}),e.SUBRULE(e.moduleName),e.CONSUME(t.Semicolon)}),e.RULE("exportsModuleDirective",()=>{e.CONSUME(t.Exports),e.SUBRULE(e.packageName),e.OPTION(()=>{e.CONSUME(t.To),e.SUBRULE(e.moduleName),e.MANY(()=>{e.CONSUME(t.Comma),e.SUBRULE2(e.moduleName)})}),e.CONSUME(t.Semicolon)}),e.RULE("opensModuleDirective",()=>{e.CONSUME(t.Opens),e.SUBRULE(e.packageName),e.OPTION(()=>{e.CONSUME(t.To),e.SUBRULE(e.moduleName),e.MANY(()=>{e.CONSUME(t.Comma),e.SUBRULE2(e.moduleName)})}),e.CONSUME(t.Semicolon)}),e.RULE("usesModuleDirective",()=>{e.CONSUME(t.Uses),e.SUBRULE(e.typeName),e.CONSUME(t.Semicolon)}),e.RULE("providesModuleDirective",()=>{e.CONSUME(t.Provides),e.SUBRULE(e.typeName),e.CONSUME(t.With),e.SUBRULE2(e.typeName),e.MANY(()=>{e.CONSUME(t.Comma),e.SUBRULE3(e.typeName)}),e.CONSUME(t.Semicolon)}),e.RULE("requiresModifier",()=>{e.OR([{ALT:()=>e.CONSUME(t.Transitive)},{ALT:()=>e.CONSUME(t.Static)}])})}s();l();u();function o1(e,t){e.RULE("classDeclaration",()=>{e.MANY(()=>{e.SUBRULE(e.classModifier)}),e.OR([{ALT:()=>e.SUBRULE(e.normalClassDeclaration)},{ALT:()=>e.SUBRULE(e.enumDeclaration)},{ALT:()=>e.SUBRULE(e.recordDeclaration)}])}),e.RULE("normalClassDeclaration",()=>{e.CONSUME(t.Class),e.SUBRULE(e.typeIdentifier),e.OPTION(()=>{e.SUBRULE(e.typeParameters)}),e.OPTION2(()=>{e.SUBRULE(e.classExtends)}),e.OPTION3(()=>{e.SUBRULE(e.classImplements)}),e.OPTION4(()=>{e.SUBRULE(e.classPermits)}),e.SUBRULE(e.classBody)}),e.RULE("classModifier",()=>{e.OR([{ALT:()=>e.SUBRULE(e.annotation)},{ALT:()=>e.CONSUME(t.Public)},{ALT:()=>e.CONSUME(t.Protected)},{ALT:()=>e.CONSUME(t.Private)},{ALT:()=>e.CONSUME(t.Abstract)},{ALT:()=>e.CONSUME(t.Static)},{ALT:()=>e.CONSUME(t.Final)},{ALT:()=>e.CONSUME(t.Sealed)},{ALT:()=>e.CONSUME(t.NonSealed)},{ALT:()=>e.CONSUME(t.Strictfp)}])}),e.RULE("typeParameters",()=>{e.CONSUME(t.Less),e.SUBRULE(e.typeParameterList),e.CONSUME(t.Greater)}),e.RULE("typeParameterList",()=>{e.SUBRULE(e.typeParameter),e.MANY(()=>{e.CONSUME(t.Comma),e.SUBRULE2(e.typeParameter)})}),e.RULE("classExtends",()=>{e.CONSUME(t.Extends),e.SUBRULE(e.classType)}),e.RULE("classImplements",()=>{e.CONSUME(t.Implements),e.SUBRULE(e.interfaceTypeList)}),e.RULE("interfaceTypeList",()=>{e.SUBRULE(e.interfaceType),e.MANY(()=>{e.CONSUME(t.Comma),e.SUBRULE2(e.interfaceType)})}),e.RULE("classPermits",()=>{e.CONSUME(t.Permits),e.SUBRULE(e.typeName),e.MANY(()=>{e.CONSUME(t.Comma),e.SUBRULE2(e.typeName)})}),e.RULE("classBody",()=>{e.CONSUME(t.LCurly),e.MANY(()=>{e.SUBRULE(e.classBodyDeclaration)}),e.CONSUME(t.RCurly)}),e.RULE("classBodyDeclaration",()=>{e.OR([{ALT:()=>e.SUBRULE(e.classMemberDeclaration)},{ALT:()=>e.SUBRULE(e.instanceInitializer)},{ALT:()=>e.SUBRULE(e.staticInitializer)},{ALT:()=>e.SUBRULE(e.constructorDeclaration)}])}),e.RULE("classMemberDeclaration",()=>{e.OR([{ALT:()=>e.SUBRULE(e.fieldDeclaration)},{ALT:()=>e.SUBRULE(e.methodDeclaration)},{ALT:()=>e.SUBRULE(e.classDeclaration)},{ALT:()=>e.SUBRULE(e.interfaceDeclaration)},{ALT:()=>e.CONSUME(t.Semicolon)}])}),e.RULE("fieldDeclaration",()=>{e.MANY(()=>{e.SUBRULE(e.fieldModifier)}),e.SUBRULE(e.unannType),e.SUBRULE(e.variableDeclaratorList),e.CONSUME(t.Semicolon)}),e.RULE("fieldModifier",()=>{e.OR([{ALT:()=>e.SUBRULE(e.annotation)},{ALT:()=>e.CONSUME(t.Public)},{ALT:()=>e.CONSUME(t.Protected)},{ALT:()=>e.CONSUME(t.Private)},{ALT:()=>e.CONSUME(t.Static)},{ALT:()=>e.CONSUME(t.Final)},{ALT:()=>e.CONSUME(t.Transient)},{ALT:()=>e.CONSUME(t.Volatile)}])}),e.RULE("variableDeclaratorList",()=>{e.SUBRULE(e.variableDeclarator),e.MANY({GATE:()=>this.BACKTRACK_LOOKAHEAD(e.isFollowingVariableDeclarator),DEF:()=>{e.CONSUME(t.Comma),e.SUBRULE2(e.variableDeclarator)}})}),e.RULE("variableDeclarator",()=>{e.SUBRULE(e.variableDeclaratorId),e.OPTION(()=>{e.CONSUME(t.Equals),e.SUBRULE(e.variableInitializer)})}),e.RULE("variableDeclaratorId",()=>{e.OR([{ALT:()=>{e.CONSUME(t.Identifier),e.OPTION(()=>{e.SUBRULE(e.dims)})}},{ALT:()=>e.CONSUME(t.Underscore)}])}),e.RULE("variableInitializer",()=>{e.OR([{ALT:()=>e.SUBRULE(e.expression)},{ALT:()=>e.SUBRULE(e.arrayInitializer)}])}),e.RULE("unannType",()=>{e.OR([{ALT:()=>e.SUBRULE(e.unannPrimitiveTypeWithOptionalDimsSuffix)},{ALT:()=>e.SUBRULE(e.unannReferenceType)}])}),e.RULE("unannPrimitiveTypeWithOptionalDimsSuffix",()=>{e.SUBRULE(e.unannPrimitiveType),e.OPTION({GATE:()=>this.BACKTRACK_LOOKAHEAD(e.isDims),DEF:()=>e.SUBRULE2(e.dims)})}),e.RULE("unannPrimitiveType",()=>{e.OR([{ALT:()=>e.SUBRULE(e.numericType)},{ALT:()=>e.CONSUME(t.Boolean)}])}),e.RULE("unannReferenceType",()=>{e.SUBRULE(e.unannClassOrInterfaceType),e.OPTION({GATE:()=>this.BACKTRACK_LOOKAHEAD(e.isDims),DEF:()=>e.SUBRULE2(e.dims)})}),e.RULE("unannClassOrInterfaceType",()=>{e.SUBRULE(e.unannClassType)}),e.RULE("unannClassType",()=>{e.CONSUME(t.Identifier),e.OPTION(()=>{e.SUBRULE(e.typeArguments)}),e.MANY2(()=>{e.CONSUME(t.Dot),e.MANY3(()=>{e.SUBRULE2(e.annotation)}),e.CONSUME2(t.Identifier),e.OPTION2(()=>{e.SUBRULE2(e.typeArguments)})})}),e.RULE("unannInterfaceType",()=>{e.SUBRULE(e.unannClassType)}),e.RULE("unannTypeVariable",()=>{e.CONSUME(t.Identifier)}),e.RULE("methodDeclaration",()=>{e.MANY(()=>{e.SUBRULE(e.methodModifier)}),e.SUBRULE(e.methodHeader),e.SUBRULE(e.methodBody)}),e.RULE("methodModifier",()=>{e.OR([{ALT:()=>e.SUBRULE(e.annotation)},{ALT:()=>e.CONSUME(t.Public)},{ALT:()=>e.CONSUME(t.Protected)},{ALT:()=>e.CONSUME(t.Private)},{ALT:()=>e.CONSUME(t.Abstract)},{ALT:()=>e.CONSUME(t.Static)},{ALT:()=>e.CONSUME(t.Final)},{ALT:()=>e.CONSUME(t.Synchronized)},{ALT:()=>e.CONSUME(t.Native)},{ALT:()=>e.CONSUME(t.Strictfp)}])}),e.RULE("methodHeader",()=>{e.OPTION(()=>{e.SUBRULE(e.typeParameters),e.MANY(()=>{e.SUBRULE(e.annotation)})}),e.SUBRULE(e.result),e.SUBRULE(e.methodDeclarator),e.OPTION2(()=>{e.SUBRULE(e.throws)})}),e.RULE("result",()=>{e.OR([{ALT:()=>e.SUBRULE(e.unannType)},{ALT:()=>e.CONSUME(t.Void)}])}),e.RULE("methodDeclarator",()=>{e.CONSUME(t.Identifier),e.CONSUME(t.LBrace),e.OR([{ALT:()=>{e.SUBRULE(e.receiverParameter),e.OPTION(()=>{e.CONSUME(t.Comma),e.SUBRULE(e.formalParameterList)})}},{ALT:()=>e.OPTION1(()=>e.SUBRULE1(e.formalParameterList))}]),e.CONSUME(t.RBrace),e.OPTION2(()=>{e.SUBRULE(e.dims)})}),e.RULE("receiverParameter",()=>{e.MANY(()=>{e.SUBRULE(e.annotation)}),e.SUBRULE(e.unannType),e.OPTION(()=>{e.CONSUME(t.Identifier),e.CONSUME(t.Dot)}),e.CONSUME(t.This)}),e.RULE("formalParameterList",()=>{e.SUBRULE(e.formalParameter),e.MANY(()=>{e.CONSUME(t.Comma),e.SUBRULE2(e.formalParameter)})}),e.RULE("formalParameter",()=>{e.OR([{ALT:()=>e.SUBRULE(e.variableParaRegularParameter)},{ALT:()=>e.SUBRULE(e.variableArityParameter)}])}),e.RULE("variableParaRegularParameter",()=>{e.MANY(()=>{e.SUBRULE(e.variableModifier)}),e.SUBRULE(e.unannType),e.SUBRULE(e.variableDeclaratorId)}),e.RULE("variableArityParameter",()=>{e.MANY(()=>{e.SUBRULE(e.variableModifier)}),e.SUBRULE(e.unannType),e.MANY2(()=>{e.SUBRULE(e.annotation)}),e.CONSUME(t.DotDotDot),e.CONSUME(t.Identifier)}),e.RULE("variableModifier",()=>{e.OR([{ALT:()=>e.SUBRULE(e.annotation)},{ALT:()=>e.CONSUME(t.Final)}])}),e.RULE("throws",()=>{e.CONSUME(t.Throws),e.SUBRULE(e.exceptionTypeList)}),e.RULE("exceptionTypeList",()=>{e.SUBRULE(e.exceptionType),e.MANY(()=>{e.CONSUME(t.Comma),e.SUBRULE2(e.exceptionType)})}),e.RULE("exceptionType",()=>{e.SUBRULE(e.classType)}),e.RULE("methodBody",()=>{e.OR([{ALT:()=>e.SUBRULE(e.block)},{ALT:()=>e.CONSUME(t.Semicolon)}])}),e.RULE("instanceInitializer",()=>{e.SUBRULE(e.block)}),e.RULE("staticInitializer",()=>{e.CONSUME(t.Static),e.SUBRULE(e.block)}),e.RULE("constructorDeclaration",()=>{e.MANY(()=>{e.SUBRULE(e.constructorModifier)}),e.SUBRULE(e.constructorDeclarator),e.OPTION(()=>{e.SUBRULE(e.throws)}),e.SUBRULE(e.constructorBody)}),e.RULE("constructorModifier",()=>{e.OR([{ALT:()=>e.SUBRULE(e.annotation)},{ALT:()=>e.CONSUME(t.Public)},{ALT:()=>e.CONSUME(t.Protected)},{ALT:()=>e.CONSUME(t.Private)}])}),e.RULE("constructorDeclarator",()=>{e.OPTION(()=>{e.SUBRULE(e.typeParameters)}),e.SUBRULE(e.simpleTypeName),e.CONSUME(t.LBrace),e.OR([{ALT:()=>{e.SUBRULE(e.receiverParameter),e.OPTION1(()=>{e.CONSUME(t.Comma),e.SUBRULE(e.formalParameterList)})}},{ALT:()=>e.OPTION2(()=>e.SUBRULE1(e.formalParameterList))}]),e.CONSUME(t.RBrace)}),e.RULE("simpleTypeName",()=>{e.SUBRULE(e.typeIdentifier)}),e.RULE("constructorBody",()=>{e.CONSUME(t.LCurly),e.OPTION(()=>{e.SUBRULE(e.explicitConstructorInvocation)}),e.OPTION2(()=>{e.SUBRULE(e.blockStatements)}),e.CONSUME(t.RCurly)}),e.RULE("explicitConstructorInvocation",()=>{e.OR([{ALT:()=>e.SUBRULE(e.unqualifiedExplicitConstructorInvocation)},{ALT:()=>e.SUBRULE(e.qualifiedExplicitConstructorInvocation)}])}),e.RULE("unqualifiedExplicitConstructorInvocation",()=>{e.OPTION(()=>{e.SUBRULE(e.typeArguments)}),e.OR([{ALT:()=>e.CONSUME(t.This)},{ALT:()=>e.CONSUME(t.Super)}]),e.CONSUME(t.LBrace),e.OPTION2(()=>{e.SUBRULE(e.argumentList)}),e.CONSUME(t.RBrace),e.CONSUME(t.Semicolon)}),e.RULE("qualifiedExplicitConstructorInvocation",()=>{e.SUBRULE(e.expressionName),e.CONSUME(t.Dot),e.OPTION(()=>{e.SUBRULE(e.typeArguments)}),e.CONSUME(t.Super),e.CONSUME(t.LBrace),e.OPTION2(()=>{e.SUBRULE(e.argumentList)}),e.CONSUME(t.RBrace),e.CONSUME(t.Semicolon)}),e.RULE("enumDeclaration",()=>{e.MANY(()=>{e.SUBRULE(e.classModifier)}),e.CONSUME(t.Enum),e.SUBRULE(e.typeIdentifier),e.OPTION(()=>{e.SUBRULE(e.classImplements)}),e.SUBRULE(e.enumBody)}),e.RULE("enumBody",()=>{e.CONSUME(t.LCurly),e.OPTION(()=>{e.SUBRULE(e.enumConstantList)}),e.OPTION2(()=>{e.CONSUME(t.Comma)}),e.OPTION3(()=>{e.SUBRULE(e.enumBodyDeclarations)}),e.CONSUME(t.RCurly)}),e.RULE("enumConstantList",()=>{e.SUBRULE(e.enumConstant),e.MANY({GATE:()=>{let r=e.LA(2);return Y(r,t.Identifier)||Y(r,t.At)},DEF:()=>{e.CONSUME(t.Comma),e.SUBRULE2(e.enumConstant)}})}),e.RULE("enumConstant",()=>{e.MANY(()=>{e.SUBRULE(e.enumConstantModifier)}),e.CONSUME(t.Identifier),e.OPTION(()=>{e.CONSUME(t.LBrace),e.OPTION2(()=>{e.SUBRULE(e.argumentList)}),e.CONSUME(t.RBrace)}),e.OPTION3(()=>{e.SUBRULE(e.classBody)})}),e.RULE("enumConstantModifier",()=>{e.SUBRULE(e.annotation)}),e.RULE("enumBodyDeclarations",()=>{e.CONSUME(t.Semicolon),e.MANY(()=>{e.SUBRULE(e.classBodyDeclaration)})}),e.RULE("recordDeclaration",()=>{e.CONSUME(t.Record),e.SUBRULE(e.typeIdentifier),e.OPTION(()=>{e.SUBRULE(e.typeParameters)}),e.SUBRULE(e.recordHeader),e.OPTION2(()=>{e.SUBRULE(e.classImplements)}),e.SUBRULE(e.recordBody)}),e.RULE("recordHeader",()=>{e.CONSUME(t.LBrace),e.OPTION(()=>{e.SUBRULE(e.recordComponentList)}),e.CONSUME(t.RBrace)}),e.RULE("recordComponentList",()=>{e.SUBRULE(e.recordComponent),e.MANY(()=>{e.CONSUME(t.Comma),e.SUBRULE2(e.recordComponent)})}),e.RULE("recordComponent",()=>{e.MANY(()=>{e.SUBRULE(e.recordComponentModifier)}),e.SUBRULE(e.unannType),e.OR([{ALT:()=>e.CONSUME(t.Identifier)},{ALT:()=>e.SUBRULE(e.variableArityRecordComponent)}])}),e.RULE("variableArityRecordComponent",()=>{e.MANY(()=>{e.SUBRULE(e.annotation)}),e.CONSUME(t.DotDotDot),e.CONSUME(t.Identifier)}),e.RULE("recordComponentModifier",()=>{e.SUBRULE(e.annotation)}),e.RULE("recordBody",()=>{e.CONSUME(t.LCurly),e.MANY(()=>{e.SUBRULE(e.recordBodyDeclaration)}),e.CONSUME(t.RCurly)}),e.RULE("recordBodyDeclaration",()=>{e.OR([{ALT:()=>e.SUBRULE(e.compactConstructorDeclaration)},{ALT:()=>e.SUBRULE(e.classBodyDeclaration)}])}),e.RULE("compactConstructorDeclaration",()=>{e.MANY(()=>{e.SUBRULE(e.constructorModifier)}),e.SUBRULE(e.simpleTypeName),e.SUBRULE(e.constructorBody)}),e.RULE("isDims",()=>(e.MANY(e.annotation),Y(this.LA(1),t.LSquare)&&Y(this.LA(2),t.RSquare))),e.RULE("isFollowingVariableDeclarator",()=>{let n=Y(this.LA(3),t.LSquare)&&Y(this.LA(4),t.RSquare)?2:0;return Y(this.LA(n+3),t.Identifier)||Y(this.LA(n+3),t.Underscore)?!1:!Y(this.LA(3),t.LBrace)})}s();l();u();function a1(e,t){e.RULE("interfaceDeclaration",()=>{e.MANY(()=>{e.SUBRULE(e.interfaceModifier)}),e.OR([{ALT:()=>e.SUBRULE(e.normalInterfaceDeclaration)},{ALT:()=>e.SUBRULE(e.annotationInterfaceDeclaration)}])}),e.RULE("normalInterfaceDeclaration",()=>{e.CONSUME(t.Interface),e.SUBRULE(e.typeIdentifier),e.OPTION(()=>{e.SUBRULE(e.typeParameters)}),e.OPTION2(()=>{e.SUBRULE(e.interfaceExtends)}),e.OPTION3(()=>{e.SUBRULE(e.interfacePermits)}),e.SUBRULE(e.interfaceBody)}),e.RULE("interfaceModifier",()=>{e.OR([{ALT:()=>e.SUBRULE(e.annotation)},{ALT:()=>e.CONSUME(t.Public)},{ALT:()=>e.CONSUME(t.Protected)},{ALT:()=>e.CONSUME(t.Private)},{ALT:()=>e.CONSUME(t.Abstract)},{ALT:()=>e.CONSUME(t.Static)},{ALT:()=>e.CONSUME(t.Sealed)},{ALT:()=>e.CONSUME(t.NonSealed)},{ALT:()=>e.CONSUME(t.Strictfp)}])}),e.RULE("interfaceExtends",()=>{e.CONSUME(t.Extends),e.SUBRULE(e.interfaceTypeList)}),e.RULE("interfacePermits",()=>{e.CONSUME(t.Permits),e.SUBRULE(e.typeName),e.MANY(()=>{e.CONSUME(t.Comma),e.SUBRULE2(e.typeName)})}),e.RULE("interfaceBody",()=>{e.CONSUME(t.LCurly),e.MANY(()=>{e.SUBRULE(e.interfaceMemberDeclaration)}),e.CONSUME(t.RCurly)}),e.RULE("interfaceMemberDeclaration",()=>{e.OR([{ALT:()=>e.SUBRULE(e.constantDeclaration)},{ALT:()=>e.SUBRULE(e.interfaceMethodDeclaration)},{ALT:()=>e.SUBRULE(e.classDeclaration)},{ALT:()=>e.SUBRULE(e.interfaceDeclaration)},{ALT:()=>e.CONSUME(t.Semicolon)}])}),e.RULE("constantDeclaration",()=>{e.MANY(()=>{e.SUBRULE(e.constantModifier)}),e.SUBRULE(e.unannType),e.SUBRULE(e.variableDeclaratorList),e.CONSUME(t.Semicolon)}),e.RULE("constantModifier",()=>{e.OR([{ALT:()=>e.SUBRULE(e.annotation)},{ALT:()=>e.CONSUME(t.Public)},{ALT:()=>e.CONSUME(t.Static)},{ALT:()=>e.CONSUME(t.Final)}])}),e.RULE("interfaceMethodDeclaration",()=>{e.MANY(()=>{e.SUBRULE(e.interfaceMethodModifier)}),e.SUBRULE(e.methodHeader),e.SUBRULE(e.methodBody)}),e.RULE("interfaceMethodModifier",()=>{e.OR([{ALT:()=>e.SUBRULE(e.annotation)},{ALT:()=>e.CONSUME(t.Public)},{ALT:()=>e.CONSUME(t.Private)},{ALT:()=>e.CONSUME(t.Abstract)},{ALT:()=>e.CONSUME(t.Default)},{ALT:()=>e.CONSUME(t.Static)},{ALT:()=>e.CONSUME(t.Strictfp)}])}),e.RULE("annotationInterfaceDeclaration",()=>{e.CONSUME(t.At),e.CONSUME(t.Interface),e.SUBRULE(e.typeIdentifier),e.SUBRULE(e.annotationInterfaceBody)}),e.RULE("annotationInterfaceBody",()=>{e.CONSUME(t.LCurly),e.MANY(()=>{e.SUBRULE(e.annotationInterfaceMemberDeclaration)}),e.CONSUME(t.RCurly)}),e.RULE("annotationInterfaceMemberDeclaration",()=>{e.OR([{ALT:()=>e.SUBRULE(e.annotationInterfaceElementDeclaration)},{ALT:()=>e.SUBRULE(e.constantDeclaration)},{ALT:()=>e.SUBRULE(e.classDeclaration)},{ALT:()=>e.SUBRULE(e.interfaceDeclaration)},{ALT:()=>e.CONSUME(t.Semicolon)}])}),e.RULE("annotationInterfaceElementDeclaration",()=>{e.MANY(()=>{e.SUBRULE(e.annotationInterfaceElementModifier)}),e.SUBRULE(e.unannType),e.CONSUME(t.Identifier),e.CONSUME(t.LBrace),e.CONSUME(t.RBrace),e.OPTION(()=>{e.SUBRULE(e.dims)}),e.OPTION2(()=>{e.SUBRULE(e.defaultValue)}),e.CONSUME(t.Semicolon)}),e.RULE("annotationInterfaceElementModifier",()=>{e.OR([{ALT:()=>e.SUBRULE(e.annotation)},{ALT:()=>e.CONSUME(t.Public)},{ALT:()=>e.CONSUME(t.Abstract)}])}),e.RULE("defaultValue",()=>{e.CONSUME(t.Default),e.SUBRULE(e.elementValue)}),e.RULE("annotation",()=>{e.CONSUME(t.At),e.SUBRULE(e.typeName),e.OPTION(()=>{e.CONSUME(t.LBrace),e.OR({DEF:[{ALT:()=>e.SUBRULE(e.elementValuePairList)},{ALT:()=>e.SUBRULE(e.elementValue)},{ALT:()=>{}}],IGNORE_AMBIGUITIES:!0}),e.CONSUME(t.RBrace)})}),e.RULE("elementValuePairList",()=>{e.SUBRULE(e.elementValuePair),e.MANY(()=>{e.CONSUME(t.Comma),e.SUBRULE2(e.elementValuePair)})}),e.RULE("elementValuePair",()=>{e.CONSUME(t.Identifier),e.CONSUME(t.Equals),e.SUBRULE(e.elementValue)}),e.RULE("elementValue",()=>{e.OR([{ALT:()=>e.SUBRULE(e.conditionalExpression)},{ALT:()=>e.SUBRULE(e.elementValueArrayInitializer)},{ALT:()=>e.SUBRULE(e.annotation)}])}),e.RULE("elementValueArrayInitializer",()=>{e.CONSUME(t.LCurly),e.OPTION(()=>{e.SUBRULE(e.elementValueList)}),e.OPTION2(()=>{e.CONSUME(t.Comma)}),e.CONSUME(t.RCurly)}),e.RULE("elementValueList",()=>{e.SUBRULE(e.elementValue),e.MANY({GATE:()=>Y(e.LA(2).tokenType,t.RCurly)===!1,DEF:()=>{e.CONSUME(t.Comma),e.SUBRULE2(e.elementValue)}})})}s();l();u();function s1(e,t){e.RULE("arrayInitializer",()=>{e.CONSUME(t.LCurly),e.OPTION(()=>{e.SUBRULE(e.variableInitializerList)}),e.OPTION2(()=>{e.CONSUME(t.Comma)}),e.CONSUME(t.RCurly)}),e.RULE("variableInitializerList",()=>{e.SUBRULE(e.variableInitializer),e.MANY({GATE:()=>Y(this.LA(2).tokenType,t.RCurly)===!1,DEF:()=>{e.CONSUME(t.Comma),e.SUBRULE2(e.variableInitializer)}})})}s();l();u();function u1(e,t){e.RULE("block",()=>{e.CONSUME(t.LCurly),e.OPTION(()=>{e.SUBRULE(e.blockStatements)}),e.CONSUME(t.RCurly)}),e.RULE("blockStatements",()=>{e.SUBRULE(e.blockStatement),e.MANY(()=>{e.SUBRULE2(e.blockStatement)})}),e.RULE("blockStatement",()=>{e.OR({DEF:[{ALT:()=>e.SUBRULE(e.localVariableDeclarationStatement)},{ALT:()=>e.SUBRULE(e.classDeclaration)},{ALT:()=>e.SUBRULE(e.interfaceDeclaration)},{ALT:()=>e.SUBRULE(e.statement)}],IGNORE_AMBIGUITIES:!0})}),e.RULE("localVariableDeclarationStatement",()=>{e.SUBRULE(e.localVariableDeclaration),e.CONSUME(t.Semicolon)}),e.RULE("localVariableDeclaration",()=>{e.MANY(()=>{e.SUBRULE(e.variableModifier)}),e.SUBRULE(e.localVariableType),e.SUBRULE(e.variableDeclaratorList)}),e.RULE("localVariableType",()=>{e.OR({DEF:[{ALT:()=>e.SUBRULE(e.unannType)},{ALT:()=>e.CONSUME(t.Var)}],IGNORE_AMBIGUITIES:!0})}),e.RULE("statement",()=>{e.OR([{ALT:()=>e.SUBRULE(e.statementWithoutTrailingSubstatement)},{ALT:()=>e.SUBRULE(e.labeledStatement)},{ALT:()=>e.SUBRULE(e.ifStatement)},{ALT:()=>e.SUBRULE(e.whileStatement)},{ALT:()=>e.SUBRULE(e.forStatement)}])}),e.RULE("statementWithoutTrailingSubstatement",()=>{e.OR({DEF:[{ALT:()=>e.SUBRULE(e.block)},{ALT:()=>e.SUBRULE(e.yieldStatement)},{ALT:()=>e.SUBRULE(e.emptyStatement)},{GATE:()=>!Y(this.LA(1).tokenType,t.Switch),ALT:()=>e.SUBRULE(e.expressionStatement)},{ALT:()=>e.SUBRULE(e.assertStatement)},{ALT:()=>e.SUBRULE(e.switchStatement)},{ALT:()=>e.SUBRULE(e.doStatement)},{ALT:()=>e.SUBRULE(e.breakStatement)},{ALT:()=>e.SUBRULE(e.continueStatement)},{ALT:()=>e.SUBRULE(e.returnStatement)},{ALT:()=>e.SUBRULE(e.synchronizedStatement)},{ALT:()=>e.SUBRULE(e.throwStatement)},{ALT:()=>e.SUBRULE(e.tryStatement)}],IGNORE_AMBIGUITIES:!0})}),e.RULE("emptyStatement",()=>{e.CONSUME(t.Semicolon)}),e.RULE("labeledStatement",()=>{e.CONSUME(t.Identifier),e.CONSUME(t.Colon),e.SUBRULE(e.statement)}),e.RULE("expressionStatement",()=>{e.SUBRULE(e.statementExpression),e.CONSUME(t.Semicolon)}),e.RULE("statementExpression",()=>{e.SUBRULE(e.expression)}),e.RULE("ifStatement",()=>{e.CONSUME(t.If),e.CONSUME(t.LBrace),e.SUBRULE(e.expression),e.CONSUME(t.RBrace),e.SUBRULE(e.statement),e.OPTION(()=>{e.CONSUME(t.Else),e.SUBRULE2(e.statement)})}),e.RULE("assertStatement",()=>{e.CONSUME(t.Assert),e.SUBRULE(e.expression),e.OPTION(()=>{e.CONSUME(t.Colon),e.SUBRULE2(e.expression)}),e.CONSUME(t.Semicolon)}),e.RULE("switchStatement",()=>{e.CONSUME(t.Switch),e.CONSUME(t.LBrace),e.SUBRULE(e.expression),e.CONSUME(t.RBrace),e.SUBRULE(e.switchBlock)}),e.RULE("switchBlock",()=>{e.CONSUME(t.LCurly),e.OR([{ALT:()=>{e.SUBRULE(e.switchRule),e.MANY(()=>e.SUBRULE2(e.switchRule))}},{ALT:()=>e.MANY2(()=>e.SUBRULE(e.switchBlockStatementGroup))}]),e.CONSUME(t.RCurly)}),e.RULE("switchBlockStatementGroup",()=>{e.SUBRULE(e.switchLabel),e.CONSUME(t.Colon),e.OPTION(()=>{e.SUBRULE(e.blockStatements)})}),e.RULE("switchLabel",()=>{e.OR([{ALT:()=>{e.CONSUME(t.Case),e.OR2([{ALT:()=>{e.CONSUME(t.Null),e.OPTION2(()=>{e.CONSUME3(t.Comma),e.CONSUME(t.Default)})}},{ALT:()=>{e.SUBRULE(e.casePattern),e.MANY(()=>{e.CONSUME(t.Comma),e.SUBRULE2(e.casePattern)}),e.OPTION(()=>{e.SUBRULE(e.guard)})}},{GATE:()=>!Y(e.LA(1).tokenType,t.Null),ALT:()=>{e.SUBRULE(e.caseConstant),e.MANY2(()=>{e.CONSUME2(t.Comma),e.SUBRULE2(e.caseConstant)})}}])}},{ALT:()=>e.CONSUME2(t.Default)}])}),e.RULE("switchRule",()=>{e.SUBRULE(e.switchLabel),e.CONSUME(t.Arrow),e.OR([{ALT:()=>e.SUBRULE(e.throwStatement)},{ALT:()=>e.SUBRULE(e.block)},{ALT:()=>{e.SUBRULE(e.expression),e.CONSUME(t.Semicolon)}}])}),e.RULE("caseConstant",()=>{e.SUBRULE(e.conditionalExpression)}),e.RULE("casePattern",()=>{e.SUBRULE(e.pattern)}),e.RULE("whileStatement",()=>{e.CONSUME(t.While),e.CONSUME(t.LBrace),e.SUBRULE(e.expression),e.CONSUME(t.RBrace),e.SUBRULE(e.statement)}),e.RULE("doStatement",()=>{e.CONSUME(t.Do),e.SUBRULE(e.statement),e.CONSUME(t.While),e.CONSUME(t.LBrace),e.SUBRULE(e.expression),e.CONSUME(t.RBrace),e.CONSUME(t.Semicolon)}),e.RULE("forStatement",()=>{e.OR([{ALT:()=>e.SUBRULE(e.basicForStatement)},{ALT:()=>e.SUBRULE(e.enhancedForStatement)}])}),e.RULE("basicForStatement",()=>{e.CONSUME(t.For),e.CONSUME(t.LBrace),e.OPTION(()=>{e.SUBRULE(e.forInit)}),e.CONSUME(t.Semicolon),e.OPTION2(()=>{e.SUBRULE(e.expression)}),e.CONSUME2(t.Semicolon),e.OPTION3(()=>{e.SUBRULE(e.forUpdate)}),e.CONSUME(t.RBrace),e.SUBRULE(e.statement)}),e.RULE("forInit",()=>{e.OR([{ALT:()=>e.SUBRULE(e.localVariableDeclaration)},{ALT:()=>e.SUBRULE(e.statementExpressionList)}])}),e.RULE("forUpdate",()=>{e.SUBRULE(e.statementExpressionList)}),e.RULE("statementExpressionList",()=>{e.SUBRULE(e.statementExpression),e.MANY(()=>{e.CONSUME(t.Comma),e.SUBRULE2(e.statementExpression)})}),e.RULE("enhancedForStatement",()=>{e.CONSUME(t.For),e.CONSUME(t.LBrace),e.SUBRULE(e.localVariableDeclaration),e.CONSUME(t.Colon),e.SUBRULE(e.expression),e.CONSUME(t.RBrace),e.SUBRULE(e.statement)}),e.RULE("breakStatement",()=>{e.CONSUME(t.Break),e.OPTION(()=>{e.CONSUME(t.Identifier)}),e.CONSUME(t.Semicolon)}),e.RULE("continueStatement",()=>{e.CONSUME(t.Continue),e.OPTION(()=>{e.CONSUME(t.Identifier)}),e.CONSUME(t.Semicolon)}),e.RULE("returnStatement",()=>{e.CONSUME(t.Return),e.OPTION(()=>{e.SUBRULE(e.expression)}),e.CONSUME(t.Semicolon)}),e.RULE("throwStatement",()=>{e.CONSUME(t.Throw),e.SUBRULE(e.expression),e.CONSUME(t.Semicolon)}),e.RULE("synchronizedStatement",()=>{e.CONSUME(t.Synchronized),e.CONSUME(t.LBrace),e.SUBRULE(e.expression),e.CONSUME(t.RBrace),e.SUBRULE(e.block)}),e.RULE("tryStatement",()=>{e.OR([{ALT:()=>{e.CONSUME(t.Try),e.SUBRULE(e.block),e.OR2([{ALT:()=>{e.SUBRULE(e.catches),e.OPTION(()=>{e.SUBRULE(e.finally)})}},{ALT:()=>e.SUBRULE2(e.finally)}])}},{ALT:()=>e.SUBRULE(e.tryWithResourcesStatement)}])}),e.RULE("catches",()=>{e.SUBRULE(e.catchClause),e.MANY(()=>{e.SUBRULE2(e.catchClause)})}),e.RULE("catchClause",()=>{e.CONSUME(t.Catch),e.CONSUME(t.LBrace),e.SUBRULE(e.catchFormalParameter),e.CONSUME(t.RBrace),e.SUBRULE(e.block)}),e.RULE("catchFormalParameter",()=>{e.MANY(()=>{e.SUBRULE(e.variableModifier)}),e.SUBRULE(e.catchType),e.SUBRULE(e.variableDeclaratorId)}),e.RULE("catchType",()=>{e.SUBRULE(e.unannClassType),e.MANY(()=>{e.CONSUME(t.Or),e.SUBRULE2(e.classType)})}),e.RULE("finally",()=>{e.CONSUME(t.Finally),e.SUBRULE(e.block)}),e.RULE("tryWithResourcesStatement",()=>{e.CONSUME(t.Try),e.SUBRULE(e.resourceSpecification),e.SUBRULE(e.block),e.OPTION(()=>{e.SUBRULE(e.catches)}),e.OPTION2(()=>{e.SUBRULE(e.finally)})}),e.RULE("resourceSpecification",()=>{e.CONSUME(t.LBrace),e.SUBRULE(e.resourceList),e.OPTION(()=>{e.CONSUME(t.Semicolon)}),e.CONSUME(t.RBrace)}),e.RULE("resourceList",()=>{e.SUBRULE(e.resource),e.MANY({GATE:()=>Y(e.LA(2).tokenType,t.RBrace)===!1,DEF:()=>{e.CONSUME(t.Semicolon),e.SUBRULE2(e.resource)}})}),e.RULE("resource",()=>{e.OR([{ALT:()=>e.SUBRULE(e.localVariableDeclaration)},{ALT:()=>e.SUBRULE(e.variableAccess)}])}),e.RULE("yieldStatement",()=>{e.CONSUME(t.Yield),e.SUBRULE(e.expression),e.CONSUME(t.Semicolon)}),e.RULE("variableAccess",()=>{e.SUBRULE(e.primary)})}s();l();u();function l1(e,t){e.RULE("expression",()=>{e.OR([{ALT:()=>e.SUBRULE(e.lambdaExpression)},{ALT:()=>e.SUBRULE(e.conditionalExpression)}])}),e.RULE("lambdaExpression",()=>{e.SUBRULE(e.lambdaParameters),e.CONSUME(t.Arrow),e.SUBRULE(e.lambdaBody)}),e.RULE("lambdaParameters",()=>{e.OR([{ALT:()=>e.SUBRULE(e.lambdaParametersWithBraces)},{ALT:()=>e.CONSUME(t.Identifier)},{ALT:()=>e.CONSUME(t.Underscore)}])}),e.RULE("lambdaParametersWithBraces",()=>{e.CONSUME(t.LBrace),e.OPTION(()=>{e.SUBRULE(e.lambdaParameterList)}),e.CONSUME(t.RBrace)}),e.RULE("lambdaParameterList",()=>{e.OR([{GATE:()=>{let r=this.LA(1).tokenType,n=this.LA(2).tokenType;return(Y(r,t.Identifier)||Y(r,t.Underscore))&&(Y(n,t.RBrace)||Y(n,t.Comma))},ALT:()=>e.SUBRULE(e.conciseLambdaParameterList)},{ALT:()=>e.SUBRULE(e.normalLambdaParameterList)}])}),e.RULE("conciseLambdaParameterList",()=>{e.SUBRULE(e.conciseLambdaParameter),e.MANY(()=>{e.CONSUME(t.Comma),e.SUBRULE2(e.conciseLambdaParameter)})}),e.RULE("normalLambdaParameterList",()=>{e.SUBRULE(e.normalLambdaParameter),e.MANY(()=>{e.CONSUME(t.Comma),e.SUBRULE2(e.normalLambdaParameter)})}),e.RULE("normalLambdaParameter",()=>{e.OR([{ALT:()=>e.SUBRULE(e.regularLambdaParameter)},{ALT:()=>e.SUBRULE(e.variableArityParameter)}])}),e.RULE("regularLambdaParameter",()=>{e.MANY(()=>{e.SUBRULE(e.variableModifier)}),e.SUBRULE(e.lambdaParameterType),e.SUBRULE(e.variableDeclaratorId)}),e.RULE("lambdaParameterType",()=>{e.OR({DEF:[{ALT:()=>e.SUBRULE(e.unannType)},{ALT:()=>e.CONSUME(t.Var)}],IGNORE_AMBIGUITIES:!0})}),e.RULE("conciseLambdaParameter",()=>{e.OR([{ALT:()=>e.CONSUME(t.Identifier)},{ALT:()=>e.CONSUME(t.Underscore)}])}),e.RULE("lambdaBody",()=>{e.OR([{ALT:()=>e.SUBRULE(e.expression)},{ALT:()=>e.SUBRULE(e.block)}])}),e.RULE("conditionalExpression",()=>{e.SUBRULE(e.binaryExpression),e.OPTION(()=>{e.CONSUME(t.QuestionMark),e.SUBRULE(e.expression),e.CONSUME(t.Colon),e.SUBRULE2(e.expression)})}),e.RULE("binaryExpression",()=>{e.SUBRULE(e.unaryExpression),e.MANY(()=>{e.OR({DEF:[{ALT:()=>{e.CONSUME(t.Instanceof),e.OR1([{ALT:()=>e.SUBRULE(e.pattern)},{ALT:()=>e.SUBRULE(e.referenceType)}])}},{ALT:()=>{e.CONSUME(t.AssignmentOperator),e.SUBRULE2(e.expression)}},{GATE:()=>Y(e.LA(2).tokenType,t.Less)||Y(e.LA(2).tokenType,t.Greater),ALT:()=>{e.OR2([{GATE:()=>e.LA(1).startOffset+1===e.LA(2).startOffset,ALT:()=>{e.CONSUME(t.Less),e.CONSUME2(t.Less)}},{GATE:()=>e.LA(1).startOffset+1===e.LA(2).startOffset,ALT:()=>{e.CONSUME(t.Greater),e.CONSUME2(t.Greater),e.OPTION({GATE:()=>e.LA(0).startOffset+1===e.LA(1).startOffset,DEF:()=>e.CONSUME3(t.Greater)})}}]),e.SUBRULE2(e.unaryExpression)}},{ALT:()=>{e.CONSUME(t.BinaryOperator),e.SUBRULE3(e.unaryExpression)}}],IGNORE_AMBIGUITIES:!0})})}),e.RULE("unaryExpression",()=>{e.MANY(()=>{e.CONSUME(t.UnaryPrefixOperator)}),e.SUBRULE(e.primary),e.MANY2(()=>{e.CONSUME(t.UnarySuffixOperator)})}),e.RULE("unaryExpressionNotPlusMinus",()=>{e.MANY(()=>{e.CONSUME(t.UnaryPrefixOperatorNotPlusMinus)}),e.SUBRULE(e.primary),e.MANY2(()=>{e.CONSUME(t.UnarySuffixOperator)})}),e.RULE("primary",()=>{e.SUBRULE(e.primaryPrefix),e.MANY(()=>{e.SUBRULE(e.primarySuffix)})}),e.RULE("primaryPrefix",()=>{e.OR([{ALT:()=>e.SUBRULE(e.literal)},{ALT:()=>e.CONSUME(t.This)},{ALT:()=>e.CONSUME(t.Void)},{ALT:()=>e.SUBRULE(e.unannPrimitiveTypeWithOptionalDimsSuffix)},{ALT:()=>e.SUBRULE(e.fqnOrRefType)},{ALT:()=>e.SUBRULE(e.castExpression)},{ALT:()=>e.SUBRULE(e.parenthesisExpression)},{ALT:()=>e.SUBRULE(e.newExpression)},{ALT:()=>e.SUBRULE(e.switchStatement)}])}),e.RULE("primarySuffix",()=>{e.OR([{ALT:()=>{e.CONSUME(t.Dot),e.OR2([{ALT:()=>e.CONSUME(t.This)},{ALT:()=>e.SUBRULE(e.unqualifiedClassInstanceCreationExpression)},{ALT:()=>{e.OPTION(()=>{e.SUBRULE(e.typeArguments)}),e.CONSUME(t.Identifier)}},{ALT:()=>e.SUBRULE(e.templateArgument)}])}},{ALT:()=>e.SUBRULE(e.methodInvocationSuffix)},{ALT:()=>e.SUBRULE(e.classLiteralSuffix)},{ALT:()=>e.SUBRULE(e.arrayAccessSuffix)},{ALT:()=>e.SUBRULE(e.methodReferenceSuffix)}])}),e.RULE("fqnOrRefType",()=>{e.SUBRULE(e.fqnOrRefTypePartFirst),e.MANY({GATE:()=>{let r=e.LA(2);return!(Y(r,t.Class)||Y(r,t.This)||Y(r,t.New)||Y(r,t.StringLiteral)||Y(r,t.TextBlock)||Y(r,t.StringTemplateBegin)||Y(r,t.TextBlockTemplateBegin))},DEF:()=>{e.CONSUME(t.Dot),e.SUBRULE2(e.fqnOrRefTypePartRest)}}),e.OPTION({GATE:()=>Y(e.LA(1).tokenType,t.At)||Y(e.LA(2).tokenType,t.RSquare),DEF:()=>{e.SUBRULE(e.dims)}})}),e.RULE("fqnOrRefTypePartRest",()=>{e.MANY(()=>{e.SUBRULE(e.annotation)}),e.OPTION(()=>e.SUBRULE2(e.typeArguments)),e.SUBRULE(e.fqnOrRefTypePartCommon)}),e.RULE("fqnOrRefTypePartCommon",()=>{e.OR([{ALT:()=>e.CONSUME(t.Identifier)},{ALT:()=>e.CONSUME(t.Super)}]);let r=!1;Y(e.LA(1).tokenType,t.Less)&&(r=this.BACKTRACK_LOOKAHEAD(e.isRefTypeInMethodRef)),e.OPTION2({GATE:()=>r,DEF:()=>{e.SUBRULE3(e.typeArguments)}})}),e.RULE("fqnOrRefTypePartFirst",()=>{e.MANY(()=>{e.SUBRULE(e.annotation)}),e.SUBRULE(e.fqnOrRefTypePartCommon)}),e.RULE("parenthesisExpression",()=>{e.CONSUME(t.LBrace),e.SUBRULE(e.expression),e.CONSUME(t.RBrace)}),e.RULE("castExpression",()=>{e.OR([{ALT:()=>e.SUBRULE(e.primitiveCastExpression)},{ALT:()=>e.SUBRULE(e.referenceTypeCastExpression)}])}),e.RULE("primitiveCastExpression",()=>{e.CONSUME(t.LBrace),e.SUBRULE(e.primitiveType),e.CONSUME(t.RBrace),e.SUBRULE(e.unaryExpression)}),e.RULE("referenceTypeCastExpression",()=>{e.CONSUME(t.LBrace),e.SUBRULE(e.referenceType),e.MANY(()=>{e.SUBRULE(e.additionalBound)}),e.CONSUME(t.RBrace),e.OR([{ALT:()=>e.SUBRULE(e.lambdaExpression)},{ALT:()=>e.SUBRULE(e.unaryExpressionNotPlusMinus)}])}),e.RULE("newExpression",()=>{e.OR([{ALT:()=>e.SUBRULE(e.arrayCreationExpression)},{ALT:()=>e.SUBRULE(e.unqualifiedClassInstanceCreationExpression)}])}),e.RULE("unqualifiedClassInstanceCreationExpression",()=>{e.CONSUME(t.New),e.OPTION(()=>{e.SUBRULE(e.typeArguments)}),e.SUBRULE(e.classOrInterfaceTypeToInstantiate),e.CONSUME(t.LBrace),e.OPTION2(()=>{e.SUBRULE(e.argumentList)}),e.CONSUME(t.RBrace),e.OPTION3(()=>{e.SUBRULE(e.classBody)})}),e.RULE("classOrInterfaceTypeToInstantiate",()=>{e.MANY(()=>{e.SUBRULE(e.annotation)}),e.CONSUME(t.Identifier),e.MANY2(()=>{e.CONSUME(t.Dot),e.MANY3(()=>{e.SUBRULE2(e.annotation)}),e.CONSUME2(t.Identifier)}),e.OPTION(()=>{e.SUBRULE(e.typeArgumentsOrDiamond)})}),e.RULE("typeArgumentsOrDiamond",()=>{e.OR([{ALT:()=>e.SUBRULE(e.diamond)},{ALT:()=>e.SUBRULE(e.typeArguments)}])}),e.RULE("diamond",()=>{e.CONSUME(t.Less),e.CONSUME(t.Greater)}),e.RULE("methodInvocationSuffix",()=>{e.CONSUME(t.LBrace),e.OPTION2(()=>{e.SUBRULE(e.argumentList)}),e.CONSUME(t.RBrace)}),e.RULE("argumentList",()=>{e.SUBRULE(e.expression),e.MANY(()=>{e.CONSUME(t.Comma),e.SUBRULE2(e.expression)})}),e.RULE("arrayCreationExpression",()=>{e.CONSUME(t.New),e.OR([{ALT:()=>e.SUBRULE(e.primitiveType)},{ALT:()=>e.SUBRULE(e.classOrInterfaceType)}]),e.OR2([{ALT:()=>e.SUBRULE(e.arrayCreationExpressionWithoutInitializerSuffix)},{ALT:()=>e.SUBRULE(e.arrayCreationWithInitializerSuffix)}])}),e.RULE("arrayCreationExpressionWithoutInitializerSuffix",()=>{e.SUBRULE(e.dimExprs),e.OPTION(()=>{e.SUBRULE(e.dims)})}),e.RULE("arrayCreationWithInitializerSuffix",()=>{e.SUBRULE(e.dims),e.SUBRULE(e.arrayInitializer)}),e.RULE("dimExprs",()=>{e.SUBRULE(e.dimExpr),e.MANY({GATE:()=>Y(e.LA(2).tokenType,t.RSquare)===!1,DEF:()=>e.SUBRULE2(e.dimExpr)})}),e.RULE("dimExpr",()=>{e.MANY(()=>{e.SUBRULE(e.annotation)}),e.CONSUME(t.LSquare),e.SUBRULE(e.expression),e.CONSUME(t.RSquare)}),e.RULE("classLiteralSuffix",()=>{e.MANY(()=>{e.CONSUME(t.LSquare),e.CONSUME(t.RSquare)}),e.CONSUME(t.Dot),e.CONSUME(t.Class)}),e.RULE("arrayAccessSuffix",()=>{e.CONSUME(t.LSquare),e.SUBRULE(e.expression),e.CONSUME(t.RSquare)}),e.RULE("methodReferenceSuffix",()=>{e.CONSUME(t.ColonColon),e.OPTION(()=>{e.SUBRULE(e.typeArguments)}),e.OR([{ALT:()=>e.CONSUME(t.Identifier)},{ALT:()=>e.CONSUME(t.New)}])}),e.RULE("templateArgument",()=>{e.OR([{ALT:()=>e.SUBRULE(e.template)},{ALT:()=>e.CONSUME(t.StringLiteral)},{ALT:()=>e.CONSUME(t.TextBlock)}])}),e.RULE("template",()=>{e.OR([{ALT:()=>e.SUBRULE(e.stringTemplate)},{ALT:()=>e.SUBRULE(e.textBlockTemplate)}])}),e.RULE("stringTemplate",()=>{e.CONSUME(t.StringTemplateBegin),e.SUBRULE(e.embeddedExpression),e.MANY(()=>{e.CONSUME(t.StringTemplateMid),e.SUBRULE1(e.embeddedExpression)}),e.CONSUME(t.StringTemplateEnd)}),e.RULE("textBlockTemplate",()=>{e.CONSUME(t.TextBlockTemplateBegin),e.SUBRULE(e.embeddedExpression),e.MANY(()=>{e.CONSUME(t.TextBlockTemplateMid),e.SUBRULE1(e.embeddedExpression)}),e.CONSUME(t.TextBlockTemplateEnd)}),e.RULE("embeddedExpression",()=>{e.OPTION(()=>{e.SUBRULE(e.expression)})}),e.RULE("pattern",()=>{e.OR([{ALT:()=>e.SUBRULE(e.typePattern)},{ALT:()=>e.SUBRULE(e.recordPattern)}])}),e.RULE("typePattern",()=>{e.SUBRULE(e.localVariableDeclaration)}),e.RULE("recordPattern",()=>{e.SUBRULE(e.referenceType),e.CONSUME(t.LBrace),e.OPTION(()=>{e.SUBRULE(e.componentPatternList)}),e.CONSUME(t.RBrace)}),e.RULE("componentPatternList",()=>{e.SUBRULE(e.componentPattern),e.MANY(()=>{e.CONSUME(t.Comma),e.SUBRULE2(e.componentPattern)})}),e.RULE("componentPattern",()=>{e.OR([{ALT:()=>e.SUBRULE(e.pattern)},{ALT:()=>e.SUBRULE(e.matchAllPattern)}])}),e.RULE("matchAllPattern",()=>{e.CONSUME(t.Underscore)}),e.RULE("guard",()=>{e.CONSUME(t.When),e.SUBRULE(e.expression)}),e.RULE("isRefTypeInMethodRef",()=>{let r;e.SUBRULE(e.typeArguments);let n=e.OPTION(()=>{e.SUBRULE(e.dims)}),i=this.LA(1).tokenType;if(Y(i,t.ColonColon)?r=!0:n&&(r=!1),e.OPTION2(()=>{e.CONSUME(t.Dot),e.SUBRULE(e.classOrInterfaceType)}),r!==void 0)return r;let o=this.LA(1).tokenType;return Y(o,t.ColonColon)})}function c1(){return this.computeContentAssist("unaryExpressionNotPlusMinus",[]).map(r=>r.nextTokenType).filter((r,n,i)=>i.indexOf(r)===n)}s();l();u();var Ey=rr(Dy(),1);function x_(e,t){let r,n,i,o=e.length;for(n=0;o;)r=o>>>1,i=n+r,e[i].startOffset>t.startOffset?o=r:(n=i+1,o-=r+1);return n}function gy(e){return e.image.match(/(\/\/(\s*)prettier-ignore(\s*))|(\/\*(\s*)prettier-ignore(\s*)\*\/)/gm)}function B_(e){return e.image.match(/(\/\/(\s*)@formatter:(off|on)(\s*))|(\/\*(\s*)@formatter:(off|on)(\s*)\*\/)/gm)}function M_(e,t,r){e.forEach(n=>{t[n.startOffset]===void 0&&(t[n.startOffset]=n),r[n.endOffset]===void 0&&(r[n.endOffset]=n)})}function __(e,t){let r;e.forEach(n=>{r=x_(t,n);let i=r-1<0?n.startOffset:t[r-1].endOffset,o=r==t.length?n.endOffset:t[r].startOffset;n.extendedOffset={startOffset:i,endOffset:o}})}function P_(e){let t={},r={};return e.forEach(n=>{let i=n.extendedOffset.startOffset,o=n.extendedOffset.endOffset;t[o]===void 0?t[o]=[n]:t[o].push(n),r[i]===void 0?r[i]=[n]:r[i].push(n)}),{commentsByExtendedEndOffset:t,commentsByExtendedStartOffset:r}}function k_(e,t,r){if(gy(e))return!1;let n=r[e.extendedOffset.endOffset];if(n===void 0)return!0;let i=t.location!==void 0?t.location.endLine:t.endLine;if(e.startLine!==i)return!1;let o=n.location!==void 0?n.location.startLine:n.startLine;return e.endLine!==o}function Cy(e,t,r,n){if(e.length===0){r[NaN].leadingComments=t;return}M_(e,r,n),__(t,e);let{commentsByExtendedStartOffset:i,commentsByExtendedEndOffset:o}=P_(t),a=new Set(t);Object.keys(n).forEach(c=>{if(i[c]!==void 0){let f=i[c].filter(E=>k_(E,n[c],r)&&a.has(E));f.length>0&&(n[c].trailingComments=f),f.forEach(E=>{a.delete(E)})}}),Object.keys(r).forEach(c=>{if(o[c]!==void 0){let f=o[c].filter(E=>a.has(E));f.length>0&&(r[c].leadingComments=f);for(let E=0;E<f.length;E++)if(gy(f[E])){let g=r[c],A=g.name==="blockStatements"?g.children.blockStatement[0]:g;A.ignore=!0;break}}})}function yy(e){let t=e.filter(a=>B_(a)),r=!1,n=!0,i=[],o={};return t.forEach(a=>{n=a.image.slice(-3)==="off",r?n||(o.on=a,i.push(o),o={}):n&&(o.off=a),r=n}),t.length>0&&n&&(o.on=void 0,i.push(o)),i}function Sy(e,t){let r=(0,Ey.default)(t,n=>n.off.endOffset<e.location.startOffset);r!==void 0&&(r.on===void 0||r.on.startOffset>e.location.endOffset)&&(e.ignore=!0)}var Ia=class extends ca{constructor(){super(wr,{lookaheadStrategy:new Ca({logging:ha()?()=>{}:void 0}),nodeLocationTracking:"full",skipValidations:ha()});let t=this;this.mostEnclosiveCstNodeByStartOffset={},this.mostEnclosiveCstNodeByEndOffset={},t.RULE("typeIdentifier",()=>{t.CONSUME(Pt.Identifier)}),t1.call(this,t,Pt),r1.call(this,t,Pt),n1.call(this,t,Pt),o1.call(this,t,Pt),i1.call(this,t,Pt),a1.call(this,t,Pt),s1.call(this,t,Pt),u1.call(this,t,Pt),l1.call(this,t,Pt),this.firstForUnaryExpressionNotPlusMinus=[],this.performSelfAnalysis(),this.firstForUnaryExpressionNotPlusMinus=c1.call(this)}cstPostNonTerminal(t,r){this.isBackTracking()||(super.cstPostNonTerminal(t,r),this.mostEnclosiveCstNodeByStartOffset[t.location.startOffset]=t,this.mostEnclosiveCstNodeByEndOffset[t.location.endOffset]=t,Sy(t,this.onOffCommentPairs))}BACKTRACK_LOOKAHEAD(t,r=!1){return this.ACTION(()=>{this.isBackTrackingStack.push(1);let n=this.saveRecogState();try{let{ruleName:i,originalGrammarAction:o}=t;try{return this.ruleInvocationStateUpdate(this.fullRuleNameToShort[i],i,this.subruleIdx),o.call(this)}catch(a){return this.invokeRuleCatch(a,!0,()=>{})}finally{this.ruleFinallyStateUpdate()}}catch(i){if(hr(i))return r;throw i}finally{this.reloadRecogState(n),this.isBackTrackingStack.pop()}})}setOnOffCommentPairs(t){this.onOffCommentPairs=t}};var Zt=new Ia,Rc=Zt.getBaseCstVisitorConstructor(),w_=Zt.getBaseCstVisitorConstructorWithDefaults();function Ay(e,t="compilationUnit"){let r=GE.tokenize(e);if(r.errors.length>0){let o=r.errors[0];throw Error("Sad sad panda, lexing errors detected in line: "+o.line+", column: "+o.column+`!
|
|
112
|
+
`+o.message)}let n=r.tokens;Zt.input=n,Zt.mostEnclosiveCstNodeByStartOffset={},Zt.mostEnclosiveCstNodeByEndOffset={},Zt.setOnOffCommentPairs(yy(r.groups.comments));let i=Zt[t]();if(Zt.errors.length>0){let o=Zt.errors[0];throw Error("Sad sad panda, parsing errors detected in line: "+o.token.startLine+", column: "+o.token.startColumn+`!
|
|
113
|
+
`+o.message+`!
|
|
114
|
+
->`+o.context.ruleStack.join(`
|
|
115
|
+
->`))}return Cy(n,r.groups.comments,Zt.mostEnclosiveCstNodeByStartOffset,Zt.mostEnclosiveCstNodeByEndOffset),{cst:i,tokens:n}}function q_(e,t="compilationUnit"){return Ay(e,t).cst}var Ty={lexAndParse:Ay,parse:q_,BaseJavaCstVisitor:Rc,BaseJavaCstVisitorWithDefaults:w_};function Oc(e,t,r){return Ty.parse(e,r.entrypoint)}s();l();u();s();l();u();s();l();u();s();l();u();s();l();u();var j_=Object.defineProperty,G_=(e,t)=>{for(var r in t)j_(e,r,{get:t[r],enumerable:!0})},V_={};G_(V_,{builders:()=>ue,printer:()=>BP,utils:()=>_c});var ai="string",jr="array",si="cursor",vn="indent",Ln="align",Rn="trim",Yt="group",On="fill",Qt="if-break",Un="indent-if-break",In="line-suffix",Nn="line-suffix-boundary",At="line",bn="label",Cr="break-parent",Ry=new Set([si,vn,Ln,Rn,Yt,On,Qt,Un,In,Nn,At,bn,Cr]);function W_(e){if(typeof e=="string")return ai;if(Array.isArray(e))return jr;if(!e)return;let{type:t}=e;if(Ry.has(t))return t}var ui=W_,K_=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function z_(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}',
|
|
116
|
+
Expected it to be 'string' or 'object'.`;if(ui(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=K_([...Ry].map(i=>`'${i}'`));return`Unexpected doc.type '${e.type}'.
|
|
117
|
+
Expected it to be ${n}.`}var Y_=class extends Error{name="InvalidDocError";constructor(e){super(z_(e)),this.doc=e}},yo=Y_,Fy={};function H_(e,t,r,n){let i=[e];for(;i.length>0;){let o=i.pop();if(o===Fy){r(i.pop());continue}r&&i.push(o,Fy);let a=ui(o);if(!a)throw new yo(o);if(t?.(o)!==!1)switch(a){case jr:case On:{let c=a===jr?o:o.parts;for(let f=c.length,E=f-1;E>=0;--E)i.push(c[E]);break}case Qt:i.push(o.flatContents,o.breakContents);break;case Yt:if(n&&o.expandedStates)for(let c=o.expandedStates.length,f=c-1;f>=0;--f)i.push(o.expandedStates[f]);else i.push(o.contents);break;case Ln:case vn:case Un:case bn:case In:i.push(o.contents);break;case ai:case si:case Rn:case Nn:case At:case Cr:break;default:throw new yo(o)}}}var Nc=H_,Oy=()=>{},gr=Oy,bc=Oy;function Fu(e){return gr(e),{type:vn,contents:e}}function So(e,t){return gr(t),{type:Ln,contents:t,n:e}}function Uy(e,t={}){return gr(e),bc(t.expandedStates,!0),{type:Yt,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function X_(e){return So(Number.NEGATIVE_INFINITY,e)}function J_(e){return So({type:"root"},e)}function Z_(e){return So(-1,e)}function Q_(e,t){return Uy(e[0],{...t,expandedStates:e})}function Iy(e){return bc(e),{type:On,parts:e}}function $_(e,t="",r={}){return gr(e),t!==""&&gr(t),{type:Qt,breakContents:e,flatContents:t,groupId:r.groupId}}function eP(e,t){return gr(e),{type:Un,contents:e,groupId:t.groupId,negate:t.negate}}function tP(e){return gr(e),{type:In,contents:e}}var rP={type:Nn},xc={type:Cr},nP={type:Rn},Bc={type:At,hard:!0},Ny={type:At,hard:!0,literal:!0},iP={type:At},oP={type:At,soft:!0},aP=[Bc,xc],by=[Ny,xc],sP={type:si};function xy(e,t){gr(e),bc(t);let r=[];for(let n=0;n<t.length;n++)n!==0&&r.push(e),r.push(t[n]);return r}function uP(e,t,r){gr(e);let n=e;if(t>0){for(let i=0;i<Math.floor(t/r);++i)n=Fu(n);n=So(t%r,n),n=So(Number.NEGATIVE_INFINITY,n)}return n}function lP(e,t){return gr(t),e?{type:bn,label:e,contents:t}:t}var cP=(e,t,r)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[r<0?t.length+r:r]:t.at(r)},Fn=cP,fP=(e,t,r,n)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)},pP=fP;function dP(e){switch(e){case"cr":return"\r";case"crlf":return`\r
|
|
118
|
+
`;default:return`
|
|
119
|
+
`}}var mP=()=>/[#*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](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\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(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\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](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\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-\uDDF5\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](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\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(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\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-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function hP(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function DP(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9800&&e<=9811||e===9855||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12771||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e===94192||e===94193||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101632&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129672||e>=129680&&e<=129725||e>=129727&&e<=129733||e>=129742&&e<=129755||e>=129760&&e<=129768||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var EP=e=>!(hP(e)||DP(e)),gP=/[^\x20-\x7F]/;function CP(e){if(!e)return 0;if(!gP.test(e))return e.length;e=e.replace(mP()," ");let t=0;for(let r of e){let n=r.codePointAt(0);n<=31||n>=127&&n<=159||n>=768&&n<=879||(t+=EP(n)?1:2)}return t}var By=CP;function vu(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(o){if(r.has(o))return r.get(o);let a=i(o);return r.set(o,a),a}function i(o){switch(ui(o)){case jr:return t(o.map(n));case On:return t({...o,parts:o.parts.map(n)});case Qt:return t({...o,breakContents:n(o.breakContents),flatContents:n(o.flatContents)});case Yt:{let{expandedStates:a,contents:c}=o;return a?(a=a.map(n),c=a[0]):c=n(c),t({...o,contents:c,expandedStates:a})}case Ln:case vn:case Un:case bn:case In:return t({...o,contents:n(o.contents)});case ai:case si:case Rn:case Nn:case At:case Cr:return t(o);default:throw new yo(o)}}}function Mc(e,t,r){let n=r,i=!1;function o(a){if(i)return!1;let c=t(a);c!==void 0&&(i=!0,n=c)}return Nc(e,o),n}function yP(e){if(e.type===Yt&&e.break||e.type===At&&e.hard||e.type===Cr)return!0}function SP(e){return Mc(e,yP,!1)}function vy(e){if(e.length>0){let t=Fn(!1,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function AP(e){let t=new Set,r=[];function n(o){if(o.type===Cr&&vy(r),o.type===Yt){if(r.push(o),t.has(o))return!1;t.add(o)}}function i(o){o.type===Yt&&r.pop().break&&vy(r)}Nc(e,n,i,!0)}function TP(e){return e.type===At&&!e.hard?e.soft?"":" ":e.type===Qt?e.flatContents:e}function FP(e){return vu(e,TP)}function Ly(e){for(e=[...e];e.length>=2&&Fn(!1,e,-2).type===At&&Fn(!1,e,-1).type===Cr;)e.length-=2;if(e.length>0){let t=Na(Fn(!1,e,-1));e[e.length-1]=t}return e}function Na(e){switch(ui(e)){case vn:case Un:case Yt:case In:case bn:{let t=Na(e.contents);return{...e,contents:t}}case Qt:return{...e,breakContents:Na(e.breakContents),flatContents:Na(e.flatContents)};case On:return{...e,parts:Ly(e.parts)};case jr:return Ly(e);case ai:return e.replace(/[\n\r]*$/,"");case Ln:case si:case Rn:case Nn:case At:case Cr:break;default:throw new yo(e)}return e}function vP(e){return Na(RP(e))}function LP(e){switch(ui(e)){case On:if(e.parts.every(t=>t===""))return"";break;case Yt:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===Yt&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case Ln:case vn:case Un:case In:if(!e.contents)return"";break;case Qt:if(!e.flatContents&&!e.breakContents)return"";break;case jr:{let t=[];for(let r of e){if(!r)continue;let[n,...i]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof Fn(!1,t,-1)=="string"?t[t.length-1]+=n:t.push(n),t.push(...i)}return t.length===0?"":t.length===1?t[0]:t}case ai:case si:case Rn:case Nn:case At:case bn:case Cr:break;default:throw new yo(e)}return e}function RP(e){return vu(e,t=>LP(t))}function OP(e,t=by){return vu(e,r=>typeof r=="string"?xy(t,r.split(`
|
|
120
|
+
`)):r)}function UP(e){if(e.type===At)return!0}function IP(e){return Mc(e,UP,!1)}var It=Symbol("MODE_BREAK"),Er=Symbol("MODE_FLAT"),ba=Symbol("cursor");function My(){return{value:"",length:0,queue:[]}}function NP(e,t){return Uc(e,{type:"indent"},t)}function bP(e,t,r){return t===Number.NEGATIVE_INFINITY?e.root||My():t<0?Uc(e,{type:"dedent"},r):t?t.type==="root"?{...e,root:e}:Uc(e,{type:typeof t=="string"?"stringAlign":"numberAlign",n:t},r):e}function Uc(e,t,r){let n=t.type==="dedent"?e.queue.slice(0,-1):[...e.queue,t],i="",o=0,a=0,c=0;for(let S of n)switch(S.type){case"indent":g(),r.useTabs?f(1):E(r.tabWidth);break;case"stringAlign":g(),i+=S.n,o+=S.n.length;break;case"numberAlign":a+=1,c+=S.n;break;default:throw new Error(`Unexpected type '${S.type}'`)}return y(),{...e,value:i,length:o,queue:n};function f(S){i+=" ".repeat(S),o+=r.tabWidth*S}function E(S){i+=" ".repeat(S),o+=S}function g(){r.useTabs?A():y()}function A(){a>0&&f(a),T()}function y(){c>0&&E(c),T()}function T(){a=0,c=0}}function Ic(e){let t=0,r=0,n=e.length;e:for(;n--;){let i=e[n];if(i===ba){r++;continue}for(let o=i.length-1;o>=0;o--){let a=i[o];if(a===" "||a===" ")t++;else{e[n]=i.slice(0,o+1);break e}}}if(t>0||r>0)for(e.length=n+1;r-- >0;)e.push(ba);return t}function Tu(e,t,r,n,i,o){if(r===Number.POSITIVE_INFINITY)return!0;let a=t.length,c=[e],f=[];for(;r>=0;){if(c.length===0){if(a===0)return!0;c.push(t[--a]);continue}let{mode:E,doc:g}=c.pop(),A=ui(g);switch(A){case ai:f.push(g),r-=By(g);break;case jr:case On:{let y=A===jr?g:g.parts;for(let T=y.length-1;T>=0;T--)c.push({mode:E,doc:y[T]});break}case vn:case Ln:case Un:case bn:c.push({mode:E,doc:g.contents});break;case Rn:r+=Ic(f);break;case Yt:{if(o&&g.break)return!1;let y=g.break?It:E,T=g.expandedStates&&y===It?Fn(!1,g.expandedStates,-1):g.contents;c.push({mode:y,doc:T});break}case Qt:{let T=(g.groupId?i[g.groupId]||Er:E)===It?g.breakContents:g.flatContents;T&&c.push({mode:E,doc:T});break}case At:if(E===It||g.hard)return!0;g.soft||(f.push(" "),r--);break;case In:n=!0;break;case Nn:if(n)return!1;break}}return!1}function xP(e,t){let r={},n=t.printWidth,i=dP(t.endOfLine),o=0,a=[{ind:My(),mode:It,doc:e}],c=[],f=!1,E=[],g=0;for(AP(e);a.length>0;){let{ind:y,mode:T,doc:S}=a.pop();switch(ui(S)){case ai:{let v=i!==`
|
|
121
|
+
`?pP(!1,S,`
|
|
122
|
+
`,i):S;c.push(v),a.length>0&&(o+=By(v));break}case jr:for(let v=S.length-1;v>=0;v--)a.push({ind:y,mode:T,doc:S[v]});break;case si:if(g>=2)throw new Error("There are too many 'cursor' in doc.");c.push(ba),g++;break;case vn:a.push({ind:NP(y,t),mode:T,doc:S.contents});break;case Ln:a.push({ind:bP(y,S.n,t),mode:T,doc:S.contents});break;case Rn:o-=Ic(c);break;case Yt:switch(T){case Er:if(!f){a.push({ind:y,mode:S.break?It:Er,doc:S.contents});break}case It:{f=!1;let v={ind:y,mode:Er,doc:S.contents},L=n-o,O=E.length>0;if(!S.break&&Tu(v,a,L,O,r))a.push(v);else if(S.expandedStates){let N=Fn(!1,S.expandedStates,-1);if(S.break){a.push({ind:y,mode:It,doc:N});break}else for(let b=1;b<S.expandedStates.length+1;b++)if(b>=S.expandedStates.length){a.push({ind:y,mode:It,doc:N});break}else{let M=S.expandedStates[b],_={ind:y,mode:Er,doc:M};if(Tu(_,a,L,O,r)){a.push(_);break}}}else a.push({ind:y,mode:It,doc:S.contents});break}}S.id&&(r[S.id]=Fn(!1,a,-1).mode);break;case On:{let v=n-o,{parts:L}=S;if(L.length===0)break;let[O,N]=L,b={ind:y,mode:Er,doc:O},M={ind:y,mode:It,doc:O},_=Tu(b,[],v,E.length>0,r,!0);if(L.length===1){_?a.push(b):a.push(M);break}let K={ind:y,mode:Er,doc:N},J={ind:y,mode:It,doc:N};if(L.length===2){_?a.push(K,b):a.push(J,M);break}L.splice(0,2);let re={ind:y,mode:T,doc:Iy(L)},be=L[0];Tu({ind:y,mode:Er,doc:[O,N,be]},[],v,E.length>0,r,!0)?a.push(re,K,b):_?a.push(re,J,b):a.push(re,J,M);break}case Qt:case Un:{let v=S.groupId?r[S.groupId]:T;if(v===It){let L=S.type===Qt?S.breakContents:S.negate?S.contents:Fu(S.contents);L&&a.push({ind:y,mode:T,doc:L})}if(v===Er){let L=S.type===Qt?S.flatContents:S.negate?Fu(S.contents):S.contents;L&&a.push({ind:y,mode:T,doc:L})}break}case In:E.push({ind:y,mode:T,doc:S.contents});break;case Nn:E.length>0&&a.push({ind:y,mode:T,doc:Bc});break;case At:switch(T){case Er:if(S.hard)f=!0;else{S.soft||(c.push(" "),o+=1);break}case It:if(E.length>0){a.push({ind:y,mode:T,doc:S},...E.reverse()),E.length=0;break}S.literal?y.root?(c.push(i,y.root.value),o=y.root.length):(c.push(i),o=0):(o-=Ic(c),c.push(i+y.value),o=y.length);break}break;case bn:a.push({ind:y,mode:T,doc:S.contents});break;case Cr:break;default:throw new yo(S)}a.length===0&&E.length>0&&(a.push(...E.reverse()),E.length=0)}let A=c.indexOf(ba);if(A!==-1){let y=c.indexOf(ba,A+1),T=c.slice(0,A).join(""),S=c.slice(A+1,y).join(""),v=c.slice(y+1).join("");return{formatted:T+S+v,cursorNodeStart:T.length,cursorNodeText:S}}return{formatted:c.join("")}}var ue={join:xy,line:iP,softline:oP,hardline:aP,literalline:by,group:Uy,conditionalGroup:Q_,fill:Iy,lineSuffix:tP,lineSuffixBoundary:rP,cursor:sP,breakParent:xc,ifBreak:$_,trim:nP,indent:Fu,indentIfBreak:eP,align:So,addAlignmentToDoc:uP,markAsRoot:J_,dedentToRoot:X_,dedent:Z_,hardlineWithoutBreakParent:Bc,literallineWithoutBreakParent:Ny,label:lP,concat:e=>e},BP={printDocToString:xP},_c={willBreak:SP,traverseDoc:Nc,findInDoc:Mc,mapDoc:vu,removeLines:FP,stripTrailingHardline:vP,replaceEndOfLine:OP,canBreak:IP};s();l();u();function Gr(e){return!_y(e)}function _y(e){return e.tokenType!==void 0&&e.image!==void 0}function Pc(e){return e!==void 0&&_y(e)}var Ao=e=>e.name==="typeArguments",To=e=>e.name==="annotation",Py=e=>e.ordinaryCompilationUnit!==void 0;s();l();u();var MP=Object.create,Iu=Object.defineProperty,_P=Object.getOwnPropertyDescriptor,PP=Object.getOwnPropertyNames,kP=Object.getPrototypeOf,wP=Object.prototype.hasOwnProperty,lS=e=>{throw TypeError(e)},qP=(e,t)=>()=>(e&&(t=e(e=0)),t),_a=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Nu=(e,t)=>{for(var r in t)Iu(e,r,{get:t[r],enumerable:!0})},cS=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of PP(t))!wP.call(e,i)&&i!==r&&Iu(e,i,{get:()=>t[i],enumerable:!(n=_P(t,i))||n.enumerable});return e},Pa=(e,t,r)=>(r=e!=null?MP(kP(e)):{},cS(t||!e||!e.__esModule?Iu(r,"default",{value:e,enumerable:!0}):r,e)),jP=e=>cS(Iu({},"__esModule",{value:!0}),e),GP=(e,t,r)=>t.has(e)||lS("Cannot "+r),VP=(e,t,r)=>t.has(e)?lS("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),xa=(e,t,r)=>(GP(e,t,"access private method"),r),WP=_a(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(){}t.prototype={diff:function(n,i){var o,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c=a.callback;typeof a=="function"&&(c=a,a={}),this.options=a;var f=this;function E(K){return c?(setTimeout(function(){c(void 0,K)},0),!0):K}n=this.castInput(n),i=this.castInput(i),n=this.removeEmpty(this.tokenize(n)),i=this.removeEmpty(this.tokenize(i));var g=i.length,A=n.length,y=1,T=g+A;a.maxEditLength&&(T=Math.min(T,a.maxEditLength));var S=(o=a.timeout)!==null&&o!==void 0?o:1/0,v=Date.now()+S,L=[{oldPos:-1,lastComponent:void 0}],O=this.extractCommon(L[0],i,n,0);if(L[0].oldPos+1>=A&&O+1>=g)return E([{value:this.join(i),count:i.length}]);var N=-1/0,b=1/0;function M(){for(var K=Math.max(N,-y);K<=Math.min(b,y);K+=2){var J=void 0,re=L[K-1],be=L[K+1];re&&(L[K-1]=void 0);var nt=!1;if(be){var je=be.oldPos-K;nt=be&&0<=je&&je<g}var Ke=re&&re.oldPos+1<A;if(!nt&&!Ke){L[K]=void 0;continue}if(!Ke||nt&&re.oldPos+1<be.oldPos?J=f.addToPath(be,!0,void 0,0):J=f.addToPath(re,void 0,!0,1),O=f.extractCommon(J,i,n,K),J.oldPos+1>=A&&O+1>=g)return E(r(f,J.lastComponent,i,n,f.useLongestToken));L[K]=J,J.oldPos+1>=A&&(b=Math.min(b,K-1)),O+1>=g&&(N=Math.max(N,K+1))}y++}if(c)(function K(){setTimeout(function(){if(y>T||Date.now()>v)return c();M()||K()},0)})();else for(;y<=T&&Date.now()<=v;){var _=M();if(_)return _}},addToPath:function(n,i,o,a){var c=n.lastComponent;return c&&c.added===i&&c.removed===o?{oldPos:n.oldPos+a,lastComponent:{count:c.count+1,added:i,removed:o,previousComponent:c.previousComponent}}:{oldPos:n.oldPos+a,lastComponent:{count:1,added:i,removed:o,previousComponent:c}}},extractCommon:function(n,i,o,a){for(var c=i.length,f=o.length,E=n.oldPos,g=E-a,A=0;g+1<c&&E+1<f&&this.equals(i[g+1],o[E+1]);)g++,E++,A++;return A&&(n.lastComponent={count:A,previousComponent:n.lastComponent}),n.oldPos=E,g},equals:function(n,i){return this.options.comparator?this.options.comparator(n,i):n===i||this.options.ignoreCase&&n.toLowerCase()===i.toLowerCase()},removeEmpty:function(n){for(var i=[],o=0;o<n.length;o++)n[o]&&i.push(n[o]);return i},castInput:function(n){return n},tokenize:function(n){return n.split("")},join:function(n){return n.join("")}};function r(n,i,o,a,c){for(var f=[],E;i;)f.push(i),E=i.previousComponent,delete i.previousComponent,i=E;f.reverse();for(var g=0,A=f.length,y=0,T=0;g<A;g++){var S=f[g];if(S.removed){if(S.value=n.join(a.slice(T,T+S.count)),T+=S.count,g&&f[g-1].added){var v=f[g-1];f[g-1]=f[g],f[g]=v}}else{if(!S.added&&c){var L=o.slice(y,y+S.count);L=L.map(function(N,b){var M=a[T+b];return M.length>N.length?M:N}),S.value=n.join(L)}else S.value=n.join(o.slice(y,y+S.count));y+=S.count,S.added||(T+=S.count)}}var O=f[A-1];return A>1&&typeof O.value=="string"&&(O.added||O.removed)&&n.equals("",O.value)&&(f[A-2].value+=O.value,f.pop()),f}}),KP=_a(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.diffArrays=i,e.arrayDiff=void 0;var t=r(WP());function r(o){return o&&o.__esModule?o:{default:o}}var n=new t.default;e.arrayDiff=n,n.tokenize=function(o){return o.slice()},n.join=n.removeEmpty=function(o){return o};function i(o,a,c){return n.diff(o,a,c)}}),Qc=_a((e,t)=>{"use strict";var r=new Proxy(String,{get:()=>r});t.exports=r}),fS={};Nu(fS,{default:()=>dS,shouldHighlight:()=>pS});var pS,dS,zP=qP(()=>{pS=()=>!1,dS=String}),YP=_a((e,t)=>{var r=String,n=function(){return{isColorSupported:!1,reset:r,bold:r,dim:r,italic:r,underline:r,inverse:r,hidden:r,strikethrough:r,black:r,red:r,green:r,yellow:r,blue:r,magenta:r,cyan:r,white:r,gray:r,bgBlack:r,bgRed:r,bgGreen:r,bgYellow:r,bgBlue:r,bgMagenta:r,bgCyan:r,bgWhite:r}};t.exports=n(),t.exports.createColors=n}),HP=_a(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.codeFrameColumns=T,e.default=S;var t=(zP(),jP(fS)),r=i(YP(),!0);function n(v){if(typeof WeakMap!="function")return null;var L=new WeakMap,O=new WeakMap;return(n=function(N){return N?O:L})(v)}function i(v,L){if(!L&&v&&v.__esModule)return v;if(v===null||typeof v!="object"&&typeof v!="function")return{default:v};var O=n(L);if(O&&O.has(v))return O.get(v);var N={__proto__:null},b=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var M in v)if(M!=="default"&&{}.hasOwnProperty.call(v,M)){var _=b?Object.getOwnPropertyDescriptor(v,M):null;_&&(_.get||_.set)?Object.defineProperty(N,M,_):N[M]=v[M]}return N.default=v,O&&O.set(v,N),N}var o=r.default,a=(v,L)=>O=>v(L(O)),c;function f(v){if(v){var L;return(L=c)!=null||(c=(0,r.createColors)(!0)),c}return o}var E=!1;function g(v){return{gutter:v.gray,marker:a(v.red,v.bold),message:a(v.red,v.bold)}}var A=/\r\n|[\n\r\u2028\u2029]/;function y(v,L,O){let N=Object.assign({column:0,line:-1},v.start),b=Object.assign({},N,v.end),{linesAbove:M=2,linesBelow:_=3}=O||{},K=N.line,J=N.column,re=b.line,be=b.column,nt=Math.max(K-(M+1),0),je=Math.min(L.length,re+_);K===-1&&(nt=0),re===-1&&(je=L.length);let Ke=re-K,Pe={};if(Ke)for(let Xe=0;Xe<=Ke;Xe++){let it=Xe+K;if(!J)Pe[it]=!0;else if(Xe===0){let Je=L[it-1].length;Pe[it]=[J,Je-J+1]}else if(Xe===Ke)Pe[it]=[0,be];else{let Je=L[it-Xe].length;Pe[it]=[0,Je]}}else J===be?J?Pe[K]=[J,0]:Pe[K]=!0:Pe[K]=[J,be-J];return{start:nt,end:je,markerLines:Pe}}function T(v,L,O={}){let N=(O.highlightCode||O.forceColor)&&(0,t.shouldHighlight)(O),b=f(O.forceColor),M=g(b),_=(Pe,Xe)=>N?Pe(Xe):Xe,K=v.split(A),{start:J,end:re,markerLines:be}=y(L,K,O),nt=L.start&&typeof L.start.column=="number",je=String(re).length,Ke=(N?(0,t.default)(v,O):v).split(A,re).slice(J,re).map((Pe,Xe)=>{let it=J+1+Xe,Je=` ${` ${it}`.slice(-je)} |`,qt=be[it],rn=!be[it+1];if(qt){let nn="";if(Array.isArray(qt)){let de=Pe.slice(0,Math.max(qt[0]-1,0)).replace(/[^\t]/g," "),ze=qt[1]||1;nn=[`
|
|
123
|
+
`,_(M.gutter,Je.replace(/\d/g," "))," ",de,_(M.marker,"^").repeat(ze)].join(""),rn&&O.message&&(nn+=" "+_(M.message,O.message))}return[_(M.marker,">"),_(M.gutter,Je),Pe.length>0?` ${Pe}`:"",nn].join("")}else return` ${_(M.gutter,Je)}${Pe.length>0?` ${Pe}`:""}`}).join(`
|
|
124
|
+
`);return O.message&&!nt&&(Ke=`${" ".repeat(je+1)}${O.message}
|
|
125
|
+
${Ke}`),N?b.reset(Ke):Ke}function S(v,L,O,N={}){if(!E){E=!0;let b="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";{let M=new Error(b);M.name="DeprecationWarning",console.warn(new Error(b))}}return O=Math.max(O,0),T(v,{start:{column:O,line:L}},N)}}),XP={};Nu(XP,{__debug:()=>Kw,check:()=>Vw,doc:()=>ku,format:()=>eA,formatWithCursor:()=>$S,getSupportInfo:()=>Ww,util:()=>QS,version:()=>Cw});var JP=(e,t,r,n)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)},bu=JP,ZP=Pa(KP(),1);function QP(e){let t=e.indexOf("\r");return t>=0?e.charAt(t+1)===`
|
|
126
|
+
`?"crlf":"cr":"lf"}function $c(e){switch(e){case"cr":return"\r";case"crlf":return`\r
|
|
127
|
+
`;default:return`
|
|
128
|
+
`}}function mS(e,t){let r;switch(t){case`
|
|
129
|
+
`:r=/\n/g;break;case"\r":r=/\r/g;break;case`\r
|
|
130
|
+
`:r=/\r\n/g;break;default:throw new Error(`Unexpected "eol" ${JSON.stringify(t)}.`)}let n=e.match(r);return n?n.length:0}function $P(e){return bu(!1,e,/\r\n?/g,`
|
|
131
|
+
`)}var mi="string",Wr="array",hi="cursor",Kr="indent",zr="align",Yr="trim",bt="group",Ar="fill",kt="if-break",Hr="indent-if-break",Xr="line-suffix",Jr="line-suffix-boundary",st="line",Tr="label",Ht="break-parent",hS=new Set([hi,Kr,zr,Yr,bt,Ar,kt,Hr,Xr,Jr,st,Tr,Ht]);function e5(e){if(typeof e=="string")return mi;if(Array.isArray(e))return Wr;if(!e)return;let{type:t}=e;if(hS.has(t))return t}var Di=e5,t5=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function r5(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}',
|
|
132
|
+
Expected it to be 'string' or 'object'.`;if(Di(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=t5([...hS].map(i=>`'${i}'`));return`Unexpected doc.type '${e.type}'.
|
|
133
|
+
Expected it to be ${n}.`}var n5=class extends Error{name="InvalidDocError";constructor(e){super(r5(e)),this.doc=e}},Oo=n5,ky={};function i5(e,t,r,n){let i=[e];for(;i.length>0;){let o=i.pop();if(o===ky){r(i.pop());continue}r&&i.push(o,ky);let a=Di(o);if(!a)throw new Oo(o);if(t?.(o)!==!1)switch(a){case Wr:case Ar:{let c=a===Wr?o:o.parts;for(let f=c.length,E=f-1;E>=0;--E)i.push(c[E]);break}case kt:i.push(o.flatContents,o.breakContents);break;case bt:if(n&&o.expandedStates)for(let c=o.expandedStates.length,f=c-1;f>=0;--f)i.push(o.expandedStates[f]);else i.push(o.contents);break;case zr:case Kr:case Hr:case Tr:case Xr:i.push(o.contents);break;case mi:case hi:case Yr:case Jr:case st:case Ht:break;default:throw new Oo(o)}}}var ef=i5,DS=()=>{},Sr=DS,tf=DS;function Uu(e){return Sr(e),{type:Kr,contents:e}}function Uo(e,t){return Sr(t),{type:zr,contents:t,n:e}}function ES(e,t={}){return Sr(e),tf(t.expandedStates,!0),{type:bt,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function o5(e){return Uo(Number.NEGATIVE_INFINITY,e)}function a5(e){return Uo({type:"root"},e)}function s5(e){return Uo(-1,e)}function u5(e,t){return ES(e[0],{...t,expandedStates:e})}function gS(e){return tf(e),{type:Ar,parts:e}}function l5(e,t="",r={}){return Sr(e),t!==""&&Sr(t),{type:kt,breakContents:e,flatContents:t,groupId:r.groupId}}function c5(e,t){return Sr(e),{type:Hr,contents:e,groupId:t.groupId,negate:t.negate}}function Wc(e){return Sr(e),{type:Xr,contents:e}}var f5={type:Jr},xu={type:Ht},p5={type:Yr},rf={type:st,hard:!0},CS={type:st,hard:!0,literal:!0},yS={type:st},d5={type:st,soft:!0},pi=[rf,xu],SS=[CS,xu],Kc={type:hi};function AS(e,t){Sr(e),tf(t);let r=[];for(let n=0;n<t.length;n++)n!==0&&r.push(e),r.push(t[n]);return r}function TS(e,t,r){Sr(e);let n=e;if(t>0){for(let i=0;i<Math.floor(t/r);++i)n=Uu(n);n=Uo(t%r,n),n=Uo(Number.NEGATIVE_INFINITY,n)}return n}function m5(e,t){return Sr(t),e?{type:Tr,label:e,contents:t}:t}function Vr(e){var t;if(!e)return"";if(Array.isArray(e)){let r=[];for(let n of e)if(Array.isArray(n))r.push(...Vr(n));else{let i=Vr(n);i!==""&&r.push(i)}return r}return e.type===kt?{...e,breakContents:Vr(e.breakContents),flatContents:Vr(e.flatContents)}:e.type===bt?{...e,contents:Vr(e.contents),expandedStates:(t=e.expandedStates)==null?void 0:t.map(Vr)}:e.type===Ar?{type:"fill",parts:e.parts.map(Vr)}:e.contents?{...e,contents:Vr(e.contents)}:e}function h5(e){let t=Object.create(null),r=new Set;return n(Vr(e));function n(o,a,c){var f,E;if(typeof o=="string")return JSON.stringify(o);if(Array.isArray(o)){let g=o.map(n).filter(Boolean);return g.length===1?g[0]:`[${g.join(", ")}]`}if(o.type===st){let g=((f=c?.[a+1])==null?void 0:f.type)===Ht;return o.literal?g?"literalline":"literallineWithoutBreakParent":o.hard?g?"hardline":"hardlineWithoutBreakParent":o.soft?"softline":"line"}if(o.type===Ht)return((E=c?.[a-1])==null?void 0:E.type)===st&&c[a-1].hard?void 0:"breakParent";if(o.type===Yr)return"trim";if(o.type===Kr)return"indent("+n(o.contents)+")";if(o.type===zr)return o.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+n(o.contents)+")":o.n<0?"dedent("+n(o.contents)+")":o.n.type==="root"?"markAsRoot("+n(o.contents)+")":"align("+JSON.stringify(o.n)+", "+n(o.contents)+")";if(o.type===kt)return"ifBreak("+n(o.breakContents)+(o.flatContents?", "+n(o.flatContents):"")+(o.groupId?(o.flatContents?"":', ""')+`, { groupId: ${i(o.groupId)} }`:"")+")";if(o.type===Hr){let g=[];o.negate&&g.push("negate: true"),o.groupId&&g.push(`groupId: ${i(o.groupId)}`);let A=g.length>0?`, { ${g.join(", ")} }`:"";return`indentIfBreak(${n(o.contents)}${A})`}if(o.type===bt){let g=[];o.break&&o.break!=="propagated"&&g.push("shouldBreak: true"),o.id&&g.push(`id: ${i(o.id)}`);let A=g.length>0?`, { ${g.join(", ")} }`:"";return o.expandedStates?`conditionalGroup([${o.expandedStates.map(y=>n(y)).join(",")}]${A})`:`group(${n(o.contents)}${A})`}if(o.type===Ar)return`fill([${o.parts.map(g=>n(g)).join(", ")}])`;if(o.type===Xr)return"lineSuffix("+n(o.contents)+")";if(o.type===Jr)return"lineSuffixBoundary";if(o.type===Tr)return`label(${JSON.stringify(o.label)}, ${n(o.contents)})`;throw new Error("Unknown doc type "+o.type)}function i(o){if(typeof o!="symbol")return JSON.stringify(String(o));if(o in t)return t[o];let a=o.description||"symbol";for(let c=0;;c++){let f=a+(c>0?` #${c}`:"");if(!r.has(f))return r.add(f),t[o]=`Symbol.for(${JSON.stringify(f)})`}}}var D5=(e,t,r)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[r<0?t.length+r:r]:t.at(r)},rt=D5,E5=()=>/[#*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](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\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(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\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](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\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-\uDDF5\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](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\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(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\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-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function g5(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function C5(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9800&&e<=9811||e===9855||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12771||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e===94192||e===94193||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101632&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129672||e>=129680&&e<=129725||e>=129727&&e<=129733||e>=129742&&e<=129755||e>=129760&&e<=129768||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var y5=e=>!(g5(e)||C5(e)),S5=/[^\x20-\x7F]/;function A5(e){if(!e)return 0;if(!S5.test(e))return e.length;e=e.replace(E5()," ");let t=0;for(let r of e){let n=r.codePointAt(0);n<=31||n>=127&&n<=159||n>=768&&n<=879||(t+=y5(n)?1:2)}return t}var nf=A5;function Bu(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(o){if(r.has(o))return r.get(o);let a=i(o);return r.set(o,a),a}function i(o){switch(Di(o)){case Wr:return t(o.map(n));case Ar:return t({...o,parts:o.parts.map(n)});case kt:return t({...o,breakContents:n(o.breakContents),flatContents:n(o.flatContents)});case bt:{let{expandedStates:a,contents:c}=o;return a?(a=a.map(n),c=a[0]):c=n(c),t({...o,contents:c,expandedStates:a})}case zr:case Kr:case Hr:case Tr:case Xr:return t({...o,contents:n(o.contents)});case mi:case hi:case Yr:case Jr:case st:case Ht:return t(o);default:throw new Oo(o)}}}function of(e,t,r){let n=r,i=!1;function o(a){if(i)return!1;let c=t(a);c!==void 0&&(i=!0,n=c)}return ef(e,o),n}function T5(e){if(e.type===bt&&e.break||e.type===st&&e.hard||e.type===Ht)return!0}function F5(e){return of(e,T5,!1)}function wy(e){if(e.length>0){let t=rt(!1,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function v5(e){let t=new Set,r=[];function n(o){if(o.type===Ht&&wy(r),o.type===bt){if(r.push(o),t.has(o))return!1;t.add(o)}}function i(o){o.type===bt&&r.pop().break&&wy(r)}ef(e,n,i,!0)}function L5(e){return e.type===st&&!e.hard?e.soft?"":" ":e.type===kt?e.flatContents:e}function R5(e){return Bu(e,L5)}function qy(e){for(e=[...e];e.length>=2&&rt(!1,e,-2).type===st&&rt(!1,e,-1).type===Ht;)e.length-=2;if(e.length>0){let t=Ba(rt(!1,e,-1));e[e.length-1]=t}return e}function Ba(e){switch(Di(e)){case Kr:case Hr:case bt:case Xr:case Tr:{let t=Ba(e.contents);return{...e,contents:t}}case kt:return{...e,breakContents:Ba(e.breakContents),flatContents:Ba(e.flatContents)};case Ar:return{...e,parts:qy(e.parts)};case Wr:return qy(e);case mi:return e.replace(/[\n\r]*$/,"");case zr:case hi:case Yr:case Jr:case st:case Ht:break;default:throw new Oo(e)}return e}function FS(e){return Ba(U5(e))}function O5(e){switch(Di(e)){case Ar:if(e.parts.every(t=>t===""))return"";break;case bt:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===bt&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case zr:case Kr:case Hr:case Xr:if(!e.contents)return"";break;case kt:if(!e.flatContents&&!e.breakContents)return"";break;case Wr:{let t=[];for(let r of e){if(!r)continue;let[n,...i]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof rt(!1,t,-1)=="string"?t[t.length-1]+=n:t.push(n),t.push(...i)}return t.length===0?"":t.length===1?t[0]:t}case mi:case hi:case Yr:case Jr:case st:case Tr:case Ht:break;default:throw new Oo(e)}return e}function U5(e){return Bu(e,t=>O5(t))}function I5(e,t=SS){return Bu(e,r=>typeof r=="string"?AS(t,r.split(`
|
|
134
|
+
`)):r)}function N5(e){if(e.type===st)return!0}function b5(e){return of(e,N5,!1)}function vS(e,t){return e.type===Tr?{...e,contents:t(e.contents)}:t(e)}var Nt=Symbol("MODE_BREAK"),yr=Symbol("MODE_FLAT"),Ma=Symbol("cursor");function LS(){return{value:"",length:0,queue:[]}}function x5(e,t){return zc(e,{type:"indent"},t)}function B5(e,t,r){return t===Number.NEGATIVE_INFINITY?e.root||LS():t<0?zc(e,{type:"dedent"},r):t?t.type==="root"?{...e,root:e}:zc(e,{type:typeof t=="string"?"stringAlign":"numberAlign",n:t},r):e}function zc(e,t,r){let n=t.type==="dedent"?e.queue.slice(0,-1):[...e.queue,t],i="",o=0,a=0,c=0;for(let S of n)switch(S.type){case"indent":g(),r.useTabs?f(1):E(r.tabWidth);break;case"stringAlign":g(),i+=S.n,o+=S.n.length;break;case"numberAlign":a+=1,c+=S.n;break;default:throw new Error(`Unexpected type '${S.type}'`)}return y(),{...e,value:i,length:o,queue:n};function f(S){i+=" ".repeat(S),o+=r.tabWidth*S}function E(S){i+=" ".repeat(S),o+=S}function g(){r.useTabs?A():y()}function A(){a>0&&f(a),T()}function y(){c>0&&E(c),T()}function T(){a=0,c=0}}function Yc(e){let t=0,r=0,n=e.length;e:for(;n--;){let i=e[n];if(i===Ma){r++;continue}for(let o=i.length-1;o>=0;o--){let a=i[o];if(a===" "||a===" ")t++;else{e[n]=i.slice(0,o+1);break e}}}if(t>0||r>0)for(e.length=n+1;r-- >0;)e.push(Ma);return t}function Lu(e,t,r,n,i,o){if(r===Number.POSITIVE_INFINITY)return!0;let a=t.length,c=[e],f=[];for(;r>=0;){if(c.length===0){if(a===0)return!0;c.push(t[--a]);continue}let{mode:E,doc:g}=c.pop(),A=Di(g);switch(A){case mi:f.push(g),r-=nf(g);break;case Wr:case Ar:{let y=A===Wr?g:g.parts;for(let T=y.length-1;T>=0;T--)c.push({mode:E,doc:y[T]});break}case Kr:case zr:case Hr:case Tr:c.push({mode:E,doc:g.contents});break;case Yr:r+=Yc(f);break;case bt:{if(o&&g.break)return!1;let y=g.break?Nt:E,T=g.expandedStates&&y===Nt?rt(!1,g.expandedStates,-1):g.contents;c.push({mode:y,doc:T});break}case kt:{let y=(g.groupId?i[g.groupId]||yr:E)===Nt?g.breakContents:g.flatContents;y&&c.push({mode:E,doc:y});break}case st:if(E===Nt||g.hard)return!0;g.soft||(f.push(" "),r--);break;case Xr:n=!0;break;case Jr:if(n)return!1;break}}return!1}function Mu(e,t){let r={},n=t.printWidth,i=$c(t.endOfLine),o=0,a=[{ind:LS(),mode:Nt,doc:e}],c=[],f=!1,E=[],g=0;for(v5(e);a.length>0;){let{ind:y,mode:T,doc:S}=a.pop();switch(Di(S)){case mi:{let v=i!==`
|
|
135
|
+
`?bu(!1,S,`
|
|
136
|
+
`,i):S;c.push(v),a.length>0&&(o+=nf(v));break}case Wr:for(let v=S.length-1;v>=0;v--)a.push({ind:y,mode:T,doc:S[v]});break;case hi:if(g>=2)throw new Error("There are too many 'cursor' in doc.");c.push(Ma),g++;break;case Kr:a.push({ind:x5(y,t),mode:T,doc:S.contents});break;case zr:a.push({ind:B5(y,S.n,t),mode:T,doc:S.contents});break;case Yr:o-=Yc(c);break;case bt:switch(T){case yr:if(!f){a.push({ind:y,mode:S.break?Nt:yr,doc:S.contents});break}case Nt:{f=!1;let v={ind:y,mode:yr,doc:S.contents},L=n-o,O=E.length>0;if(!S.break&&Lu(v,a,L,O,r))a.push(v);else if(S.expandedStates){let N=rt(!1,S.expandedStates,-1);if(S.break){a.push({ind:y,mode:Nt,doc:N});break}else for(let b=1;b<S.expandedStates.length+1;b++)if(b>=S.expandedStates.length){a.push({ind:y,mode:Nt,doc:N});break}else{let M=S.expandedStates[b],_={ind:y,mode:yr,doc:M};if(Lu(_,a,L,O,r)){a.push(_);break}}}else a.push({ind:y,mode:Nt,doc:S.contents});break}}S.id&&(r[S.id]=rt(!1,a,-1).mode);break;case Ar:{let v=n-o,{parts:L}=S;if(L.length===0)break;let[O,N]=L,b={ind:y,mode:yr,doc:O},M={ind:y,mode:Nt,doc:O},_=Lu(b,[],v,E.length>0,r,!0);if(L.length===1){_?a.push(b):a.push(M);break}let K={ind:y,mode:yr,doc:N},J={ind:y,mode:Nt,doc:N};if(L.length===2){_?a.push(K,b):a.push(J,M);break}L.splice(0,2);let re={ind:y,mode:T,doc:gS(L)},be=L[0];Lu({ind:y,mode:yr,doc:[O,N,be]},[],v,E.length>0,r,!0)?a.push(re,K,b):_?a.push(re,J,b):a.push(re,J,M);break}case kt:case Hr:{let v=S.groupId?r[S.groupId]:T;if(v===Nt){let L=S.type===kt?S.breakContents:S.negate?S.contents:Uu(S.contents);L&&a.push({ind:y,mode:T,doc:L})}if(v===yr){let L=S.type===kt?S.flatContents:S.negate?Uu(S.contents):S.contents;L&&a.push({ind:y,mode:T,doc:L})}break}case Xr:E.push({ind:y,mode:T,doc:S.contents});break;case Jr:E.length>0&&a.push({ind:y,mode:T,doc:rf});break;case st:switch(T){case yr:if(S.hard)f=!0;else{S.soft||(c.push(" "),o+=1);break}case Nt:if(E.length>0){a.push({ind:y,mode:T,doc:S},...E.reverse()),E.length=0;break}S.literal?y.root?(c.push(i,y.root.value),o=y.root.length):(c.push(i),o=0):(o-=Yc(c),c.push(i+y.value),o=y.length);break}break;case Tr:a.push({ind:y,mode:T,doc:S.contents});break;case Ht:break;default:throw new Oo(S)}a.length===0&&E.length>0&&(a.push(...E.reverse()),E.length=0)}let A=c.indexOf(Ma);if(A!==-1){let y=c.indexOf(Ma,A+1),T=c.slice(0,A).join(""),S=c.slice(A+1,y).join(""),v=c.slice(y+1).join("");return{formatted:T+S+v,cursorNodeStart:T.length,cursorNodeText:S}}return{formatted:c.join("")}}function M5(e,t,r=0){let n=0;for(let i=r;i<e.length;++i)e[i]===" "?n=n+t-n%t:n++;return n}var af=M5,li,Hc,Ru,_5=class{constructor(e){VP(this,li),this.stack=[e]}get key(){let{stack:e,siblings:t}=this;return rt(!1,e,t===null?-2:-4)??null}get index(){return this.siblings===null?null:rt(!1,this.stack,-2)}get node(){return rt(!1,this.stack,-1)}get parent(){return this.getNode(1)}get grandparent(){return this.getNode(2)}get isInArray(){return this.siblings!==null}get siblings(){let{stack:e}=this,t=rt(!1,e,-3);return Array.isArray(t)?t:null}get next(){let{siblings:e}=this;return e===null?null:e[this.index+1]}get previous(){let{siblings:e}=this;return e===null?null:e[this.index-1]}get isFirst(){return this.index===0}get isLast(){let{siblings:e,index:t}=this;return e!==null&&t===e.length-1}get isRoot(){return this.stack.length===1}get root(){return this.stack[0]}get ancestors(){return[...xa(this,li,Ru).call(this)]}getName(){let{stack:e}=this,{length:t}=e;return t>1?rt(!1,e,-2):null}getValue(){return rt(!1,this.stack,-1)}getNode(e=0){let t=xa(this,li,Hc).call(this,e);return t===-1?null:this.stack[t]}getParentNode(e=0){return this.getNode(e+1)}call(e,...t){let{stack:r}=this,{length:n}=r,i=rt(!1,r,-1);for(let o of t)i=i[o],r.push(o,i);try{return e(this)}finally{r.length=n}}callParent(e,t=0){let r=xa(this,li,Hc).call(this,t+1),n=this.stack.splice(r+1);try{return e(this)}finally{this.stack.push(...n)}}each(e,...t){let{stack:r}=this,{length:n}=r,i=rt(!1,r,-1);for(let o of t)i=i[o],r.push(o,i);try{for(let o=0;o<i.length;++o)r.push(o,i[o]),e(this,o,i),r.length-=2}finally{r.length=n}}map(e,...t){let r=[];return this.each((n,i,o)=>{r[i]=e(n,i,o)},...t),r}match(...e){let t=this.stack.length-1,r=null,n=this.stack[t--];for(let i of e){if(n===void 0)return!1;let o=null;if(typeof r=="number"&&(o=r,r=this.stack[t--],n=this.stack[t--]),i&&!i(n,r,o))return!1;r=this.stack[t--],n=this.stack[t--]}return!0}findAncestor(e){for(let t of xa(this,li,Ru).call(this))if(e(t))return t}hasAncestor(e){for(let t of xa(this,li,Ru).call(this))if(e(t))return!0;return!1}};li=new WeakSet,Hc=function(e){let{stack:t}=this;for(let r=t.length-1;r>=0;r-=2)if(!Array.isArray(t[r])&&--e<0)return r;return-1},Ru=function*(){let{stack:e}=this;for(let t=e.length-3;t>=0;t-=2){let r=e[t];Array.isArray(r)||(yield r)}};var P5=_5,RS=new Proxy(()=>{},{get:()=>RS}),Xc=RS;function k5(e){return e!==null&&typeof e=="object"}var w5=k5;function*OS(e,t){let{getVisitorKeys:r,filter:n=()=>!0}=t,i=o=>w5(o)&&n(o);for(let o of r(e)){let a=e[o];if(Array.isArray(a))for(let c of a)i(c)&&(yield c);else i(a)&&(yield a)}}function*q5(e,t){let r=[e];for(let n=0;n<r.length;n++){let i=r[n];for(let o of OS(i,t))yield o,r.push(o)}}function ka(e){return(t,r,n)=>{let i=!!(n!=null&&n.backwards);if(r===!1)return!1;let{length:o}=t,a=r;for(;a>=0&&a<o;){let c=t.charAt(a);if(e instanceof RegExp){if(!e.test(c))return a}else if(!e.includes(c))return a;i?a--:a++}return a===-1||a===o?a:!1}}var j5=ka(/\s/),Bn=ka(" "),US=ka(",; "),IS=ka(/[^\n\r]/);function G5(e,t,r){let n=!!(r!=null&&r.backwards);if(t===!1)return!1;let i=e.charAt(t);if(n){if(e.charAt(t-1)==="\r"&&i===`
|
|
137
|
+
`)return t-2;if(i===`
|
|
138
|
+
`||i==="\r"||i==="\u2028"||i==="\u2029")return t-1}else{if(i==="\r"&&e.charAt(t+1)===`
|
|
139
|
+
`)return t+2;if(i===`
|
|
140
|
+
`||i==="\r"||i==="\u2028"||i==="\u2029")return t+1}return t}var di=G5;function V5(e,t,r={}){let n=Bn(e,r.backwards?t-1:t,r),i=di(e,n,r);return n!==i}var xn=V5;function W5(e){return Array.isArray(e)&&e.length>0}var K5=W5,NS=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),z5=e=>Object.keys(e).filter(t=>!NS.has(t));function Y5(e){return e?t=>e(t,NS):z5}var _u=Y5;function H5(e){let t=e.type||e.kind||"(unknown type)",r=String(e.name||e.id&&(typeof e.id=="object"?e.id.name:e.id)||e.key&&(typeof e.key=="object"?e.key.name:e.key)||e.value&&(typeof e.value=="object"?"":String(e.value))||e.operator||"");return r.length>20&&(r=r.slice(0,19)+"\u2026"),t+(r?" "+r:"")}function sf(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=H5(e)}function Fo(e,t){t.leading=!0,t.trailing=!1,sf(e,t)}function ci(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),sf(e,t)}function vo(e,t){t.leading=!1,t.trailing=!0,sf(e,t)}var kc=new WeakMap;function uf(e,t){if(kc.has(e))return kc.get(e);let{printer:{getCommentChildNodes:r,canAttachComment:n,getVisitorKeys:i},locStart:o,locEnd:a}=t;if(!n)return[];let c=(r?.(e,t)??[...OS(e,{getVisitorKeys:_u(i)})]).flatMap(f=>n(f)?[f]:uf(f,t));return c.sort((f,E)=>o(f)-o(E)||a(f)-a(E)),kc.set(e,c),c}function bS(e,t,r,n){let{locStart:i,locEnd:o}=r,a=i(t),c=o(t),f=uf(e,r),E,g,A=0,y=f.length;for(;A<y;){let T=A+y>>1,S=f[T],v=i(S),L=o(S);if(v<=a&&c<=L)return bS(S,t,r,S);if(L<=a){E=S,A=T+1;continue}if(c<=v){g=S,y=T;continue}throw new Error("Comment location overlaps with node location")}if(n?.type==="TemplateLiteral"){let{quasis:T}=n,S=qc(T,t,r);E&&qc(T,E,r)!==S&&(E=null),g&&qc(T,g,r)!==S&&(g=null)}return{enclosingNode:n,precedingNode:E,followingNode:g}}var wc=()=>!1;function X5(e,t){let{comments:r}=e;if(delete e.comments,!K5(r)||!t.printer.canAttachComment)return;let n=[],{locStart:i,locEnd:o,printer:{experimentalFeatures:{avoidAstMutation:a=!1}={},handleComments:c={}},originalText:f}=t,{ownLine:E=wc,endOfLine:g=wc,remaining:A=wc}=c,y=r.map((T,S)=>({...bS(e,T,t),comment:T,text:f,options:t,ast:e,isLastComment:r.length-1===S}));for(let[T,S]of y.entries()){let{comment:v,precedingNode:L,enclosingNode:O,followingNode:N,text:b,options:M,ast:_,isLastComment:K}=S;if(M.parser==="json"||M.parser==="json5"||M.parser==="jsonc"||M.parser==="__js_expression"||M.parser==="__ts_expression"||M.parser==="__vue_expression"||M.parser==="__vue_ts_expression"){if(i(v)-i(_)<=0){Fo(_,v);continue}if(o(v)-o(_)>=0){vo(_,v);continue}}let J;if(a?J=[S]:(v.enclosingNode=O,v.precedingNode=L,v.followingNode=N,J=[v,b,M,_,K]),J5(b,M,y,T))v.placement="ownLine",E(...J)||(N?Fo(N,v):L?vo(L,v):ci(O||_,v));else if(Z5(b,M,y,T))v.placement="endOfLine",g(...J)||(L?vo(L,v):N?Fo(N,v):ci(O||_,v));else if(v.placement="remaining",!A(...J))if(L&&N){let re=n.length;re>0&&n[re-1].followingNode!==N&&jy(n,M),n.push(S)}else L?vo(L,v):N?Fo(N,v):ci(O||_,v)}if(jy(n,t),!a)for(let T of r)delete T.precedingNode,delete T.enclosingNode,delete T.followingNode}var xS=e=>!/[\S\n\u2028\u2029]/.test(e);function J5(e,t,r,n){let{comment:i,precedingNode:o}=r[n],{locStart:a,locEnd:c}=t,f=a(i);if(o)for(let E=n-1;E>=0;E--){let{comment:g,precedingNode:A}=r[E];if(A!==o||!xS(e.slice(c(g),f)))break;f=a(g)}return xn(e,f,{backwards:!0})}function Z5(e,t,r,n){let{comment:i,followingNode:o}=r[n],{locStart:a,locEnd:c}=t,f=c(i);if(o)for(let E=n+1;E<r.length;E++){let{comment:g,followingNode:A}=r[E];if(A!==o||!xS(e.slice(f,a(g))))break;f=c(g)}return xn(e,f)}function jy(e,t){var r,n;let i=e.length;if(i===0)return;let{precedingNode:o,followingNode:a}=e[0],c=t.locStart(a),f;for(f=i;f>0;--f){let{comment:E,precedingNode:g,followingNode:A}=e[f-1];Xc.strictEqual(g,o),Xc.strictEqual(A,a);let y=t.originalText.slice(t.locEnd(E),c);if(((n=(r=t.printer).isGap)==null?void 0:n.call(r,y,t))??/^[\s(]*$/.test(y))c=t.locStart(E);else break}for(let[E,{comment:g}]of e.entries())E<f?vo(o,g):Fo(a,g);for(let E of[o,a])E.comments&&E.comments.length>1&&E.comments.sort((g,A)=>t.locStart(g)-t.locStart(A));e.length=0}function qc(e,t,r){let n=r.locStart(t)-1;for(let i=1;i<e.length;++i)if(n<r.locStart(e[i]))return i-1;return 0}function Q5(e,t){let r=t-1;r=Bn(e,r,{backwards:!0}),r=di(e,r,{backwards:!0}),r=Bn(e,r,{backwards:!0});let n=di(e,r,{backwards:!0});return r!==n}var lf=Q5;function BS(e,t){let r=e.node;return r.printed=!0,t.printer.printComment(e,t)}function $5(e,t){var r;let n=e.node,i=[BS(e,t)],{printer:o,originalText:a,locStart:c,locEnd:f}=t;if((r=o.isBlockComment)!=null&&r.call(o,n)){let g=xn(a,f(n))?xn(a,c(n),{backwards:!0})?pi:yS:" ";i.push(g)}else i.push(pi);let E=di(a,Bn(a,f(n)));return E!==!1&&xn(a,E)&&i.push(pi),i}function ek(e,t,r){var n;let i=e.node,o=BS(e,t),{printer:a,originalText:c,locStart:f}=t,E=(n=a.isBlockComment)==null?void 0:n.call(a,i);if(r!=null&&r.hasLineSuffix&&!(r!=null&&r.isBlock)||xn(c,f(i),{backwards:!0})){let g=lf(c,f(i));return{doc:Wc([pi,g?pi:"",o]),isBlock:E,hasLineSuffix:!0}}return!E||r!=null&&r.hasLineSuffix?{doc:[Wc([" ",o]),xu],isBlock:E,hasLineSuffix:!0}:{doc:[" ",o],isBlock:E,hasLineSuffix:!1}}function tk(e,t){let r=e.node;if(!r)return{};let n=t[Symbol.for("printedComments")];if((r.comments||[]).filter(c=>!n.has(c)).length===0)return{leading:"",trailing:""};let i=[],o=[],a;return e.each(()=>{let c=e.node;if(n!=null&&n.has(c))return;let{leading:f,trailing:E}=c;f?i.push($5(e,t)):E&&(a=ek(e,t,a),o.push(a.doc))},"comments"),{leading:i,trailing:o}}function rk(e,t,r){let{leading:n,trailing:i}=tk(e,r);return!n&&!i?t:vS(t,o=>[n,o,i])}function nk(e){let{[Symbol.for("comments")]:t,[Symbol.for("printedComments")]:r}=e;for(let n of t){if(!n.printed&&!r.has(n))throw new Error('Comment "'+n.value.trim()+'" was not printed. Please report this error!');delete n.printed}}function ik(e){return()=>{}}var ok=ik,MS=class extends Error{name="ConfigError"},Gy=class extends Error{name="UndefinedParserError"},ak={cursorOffset:{category:"Special",type:"int",default:-1,range:{start:-1,end:1/0,step:1},description:"Print (to stderr) where a cursor at the given position would move to after formatting.",cliCategory:"Editor"},endOfLine:{category:"Global",type:"choice",default:"lf",description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:`Maintain existing
|
|
141
|
+
(mixed values within one file are normalised by looking at what's used after the first line)`}]},filepath:{category:"Special",type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:"Other",cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{category:"Special",type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:"Other"},parser:{category:"Global",type:"choice",default:void 0,description:"Which parser to use.",exception:e=>typeof e=="string"||typeof e=="function",choices:[{value:"flow",description:"Flow"},{value:"babel",description:"JavaScript"},{value:"babel-flow",description:"Flow"},{value:"babel-ts",description:"TypeScript"},{value:"typescript",description:"TypeScript"},{value:"acorn",description:"JavaScript"},{value:"espree",description:"JavaScript"},{value:"meriyah",description:"JavaScript"},{value:"css",description:"CSS"},{value:"less",description:"Less"},{value:"scss",description:"SCSS"},{value:"json",description:"JSON"},{value:"json5",description:"JSON5"},{value:"jsonc",description:"JSON with Comments"},{value:"json-stringify",description:"JSON.stringify"},{value:"graphql",description:"GraphQL"},{value:"markdown",description:"Markdown"},{value:"mdx",description:"MDX"},{value:"vue",description:"Vue"},{value:"yaml",description:"YAML"},{value:"glimmer",description:"Ember / Handlebars"},{value:"html",description:"HTML"},{value:"angular",description:"Angular"},{value:"lwc",description:"Lightning Web Components"}]},plugins:{type:"path",array:!0,default:[{value:[]}],category:"Global",description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>typeof e=="string"||typeof e=="object",cliName:"plugin",cliCategory:"Config"},printWidth:{category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{category:"Special",type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:`Format code ending at a given character offset (exclusive).
|
|
142
|
+
The range will extend forwards to the end of the selected statement.`,cliCategory:"Editor"},rangeStart:{category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description:`Format code starting at a given character offset.
|
|
143
|
+
The range will extend backwards to the start of the first line containing the selected statement.`,cliCategory:"Editor"},requirePragma:{category:"Special",type:"boolean",default:!1,description:`Require either '@prettier' or '@format' to be present in the file's first docblock comment
|
|
144
|
+
in order for it to be formatted.`,cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};function _S({plugins:e=[],showDeprecated:t=!1}={}){let r=e.flatMap(i=>i.languages??[]),n=[];for(let i of uk(Object.assign({},...e.map(({options:o})=>o),ak)))!t&&i.deprecated||(Array.isArray(i.choices)&&(t||(i.choices=i.choices.filter(o=>!o.deprecated)),i.name==="parser"&&(i.choices=[...i.choices,...sk(i.choices,r,e)])),i.pluginDefaults=Object.fromEntries(e.filter(o=>{var a;return((a=o.defaultOptions)==null?void 0:a[i.name])!==void 0}).map(o=>[o.name,o.defaultOptions[i.name]])),n.push(i));return{languages:r,options:n}}function*sk(e,t,r){let n=new Set(e.map(i=>i.value));for(let i of t)if(i.parsers){for(let o of i.parsers)if(!n.has(o)){n.add(o);let a=r.find(f=>f.parsers&&Object.prototype.hasOwnProperty.call(f.parsers,o)),c=i.name;a!=null&&a.name&&(c+=` (plugin: ${a.name})`),yield{value:o,description:c}}}}function uk(e){let t=[];for(let[r,n]of Object.entries(e)){let i={name:r,...n};Array.isArray(i.default)&&(i.default=rt(!1,i.default,-1).value),t.push(i)}return t}var lk=e=>String(e).split(/[/\\]/).pop();function Vy(e,t){if(!t)return;let r=lk(t).toLowerCase();return e.find(({filenames:n})=>n?.some(i=>i.toLowerCase()===r))??e.find(({extensions:n})=>n?.some(i=>r.endsWith(i)))}function ck(e,t){if(t)return e.find(({name:r})=>r.toLowerCase()===t)??e.find(({aliases:r})=>r?.includes(t))??e.find(({extensions:r})=>r?.includes(`.${t}`))}function fk(e,t){let r=e.plugins.flatMap(i=>i.languages??[]),n=ck(r,t.language)??Vy(r,t.physicalFile)??Vy(r,t.file)??(t.physicalFile,void 0);return n?.parsers[0]}var pk=fk,Lo={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(e){if(e===null||typeof e!="object")return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(r=>Lo.value(r)).join(", ")}]`;let t=Object.keys(e);return t.length===0?"{}":`{ ${t.map(r=>`${Lo.key(r)}: ${Lo.value(e[r])}`).join(", ")} }`},pair:({key:e,value:t})=>Lo.value({[e]:t})},Wy=Pa(Qc(),1),dk=(e,t,{descriptor:r})=>{let n=[`${Wy.default.yellow(typeof e=="string"?r.key(e):r.pair(e))} is deprecated`];return t&&n.push(`we now treat it as ${Wy.default.blue(typeof t=="string"?r.key(t):r.pair(t))}`),n.join("; ")+"."},Ro=Pa(Qc(),1),PS=Symbol.for("vnopts.VALUE_NOT_EXIST"),Ou=Symbol.for("vnopts.VALUE_UNCHANGED"),Ky=" ".repeat(2),mk=(e,t,r)=>{let{text:n,list:i}=r.normalizeExpectedResult(r.schemas[e].expected(r)),o=[];return n&&o.push(zy(e,t,n,r.descriptor)),i&&o.push([zy(e,t,i.title,r.descriptor)].concat(i.values.map(a=>kS(a,r.loggerPrintWidth))).join(`
|
|
145
|
+
`)),wS(o,r.loggerPrintWidth)};function zy(e,t,r,n){return[`Invalid ${Ro.default.red(n.key(e))} value.`,`Expected ${Ro.default.blue(r)},`,`but received ${t===PS?Ro.default.gray("nothing"):Ro.default.red(n.value(t))}.`].join(" ")}function kS({text:e,list:t},r){let n=[];return e&&n.push(`- ${Ro.default.blue(e)}`),t&&n.push([`- ${Ro.default.blue(t.title)}:`].concat(t.values.map(i=>kS(i,r-Ky.length).replace(/^|\n/g,`$&${Ky}`))).join(`
|
|
146
|
+
`)),wS(n,r)}function wS(e,t){if(e.length===1)return e[0];let[r,n]=e,[i,o]=e.map(a=>a.split(`
|
|
147
|
+
`,1)[0].length);return i>t&&i>o?n:r}var Yy=Pa(Qc(),1),jc=[],Hy=[];function hk(e,t){if(e===t)return 0;let r=e;e.length>t.length&&(e=t,t=r);let n=e.length,i=t.length;for(;n>0&&e.charCodeAt(~-n)===t.charCodeAt(~-i);)n--,i--;let o=0;for(;o<n&&e.charCodeAt(o)===t.charCodeAt(o);)o++;if(n-=o,i-=o,n===0)return i;let a,c,f,E,g=0,A=0;for(;g<n;)Hy[g]=e.charCodeAt(o+g),jc[g]=++g;for(;A<i;)for(a=t.charCodeAt(o+A),f=A++,c=A,g=0;g<n;g++)E=a===Hy[g]?f:f+1,f=jc[g],c=jc[g]=f>c?E>c?c+1:E:E>f?f+1:E;return c}var qS=(e,t,{descriptor:r,logger:n,schemas:i})=>{let o=[`Ignored unknown option ${Yy.default.yellow(r.pair({key:e,value:t}))}.`],a=Object.keys(i).sort().find(c=>hk(e,c)<3);a&&o.push(`Did you mean ${Yy.default.blue(r.key(a))}?`),n.warn(o.join(" "))},Dk=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function Ek(e,t){let r=new e(t),n=Object.create(r);for(let i of Dk)i in t&&(n[i]=gk(t[i],r,Mn.prototype[i].length));return n}var Mn=class{static create(e){return Ek(this,e)}constructor(e){this.name=e.name}default(e){}expected(e){return"nothing"}validate(e,t){return!1}deprecated(e,t){return!1}forward(e,t){}redirect(e,t){}overlap(e,t,r){return e}preprocess(e,t){return e}postprocess(e,t){return Ou}};function gk(e,t,r){return typeof e=="function"?(...n)=>e(...n.slice(0,r-1),t,...n.slice(r-1)):()=>e}var Ck=class extends Mn{constructor(e){super(e),this._sourceName=e.sourceName}expected(e){return e.schemas[this._sourceName].expected(e)}validate(e,t){return t.schemas[this._sourceName].validate(e,t)}redirect(e,t){return this._sourceName}},yk=class extends Mn{expected(){return"anything"}validate(){return!0}},Sk=class extends Mn{constructor({valueSchema:e,name:t=e.name,...r}){super({...r,name:t}),this._valueSchema=e}expected(e){let{text:t,list:r}=e.normalizeExpectedResult(this._valueSchema.expected(e));return{text:t&&`an array of ${t}`,list:r&&{title:"an array of the following values",values:[{list:r}]}}}validate(e,t){if(!Array.isArray(e))return!1;let r=[];for(let n of e){let i=t.normalizeValidateResult(this._valueSchema.validate(n,t),n);i!==!0&&r.push(i.value)}return r.length===0?!0:{value:r}}deprecated(e,t){let r=[];for(let n of e){let i=t.normalizeDeprecatedResult(this._valueSchema.deprecated(n,t),n);i!==!1&&r.push(...i.map(({value:o})=>({value:[o]})))}return r}forward(e,t){let r=[];for(let n of e){let i=t.normalizeForwardResult(this._valueSchema.forward(n,t),n);r.push(...i.map(Xy))}return r}redirect(e,t){let r=[],n=[];for(let i of e){let o=t.normalizeRedirectResult(this._valueSchema.redirect(i,t),i);"remain"in o&&r.push(o.remain),n.push(...o.redirect.map(Xy))}return r.length===0?{redirect:n}:{redirect:n,remain:r}}overlap(e,t){return e.concat(t)}};function Xy({from:e,to:t}){return{from:[e],to:t}}var Ak=class extends Mn{expected(){return"true or false"}validate(e){return typeof e=="boolean"}};function Tk(e,t){let r=Object.create(null);for(let n of e){let i=n[t];if(r[i])throw new Error(`Duplicate ${t} ${JSON.stringify(i)}`);r[i]=n}return r}function Fk(e,t){let r=new Map;for(let n of e){let i=n[t];if(r.has(i))throw new Error(`Duplicate ${t} ${JSON.stringify(i)}`);r.set(i,n)}return r}function vk(){let e=Object.create(null);return t=>{let r=JSON.stringify(t);return e[r]?!0:(e[r]=!0,!1)}}function Lk(e,t){let r=[],n=[];for(let i of e)t(i)?r.push(i):n.push(i);return[r,n]}function Rk(e){return e===Math.floor(e)}function Ok(e,t){if(e===t)return 0;let r=typeof e,n=typeof t,i=["undefined","object","boolean","number","string"];return r!==n?i.indexOf(r)-i.indexOf(n):r!=="string"?Number(e)-Number(t):e.localeCompare(t)}function Uk(e){return(...t)=>{let r=e(...t);return typeof r=="string"?new Error(r):r}}function Jy(e){return e===void 0?{}:e}function jS(e){if(typeof e=="string")return{text:e};let{text:t,list:r}=e;return Ik((t||r)!==void 0,"Unexpected `expected` result, there should be at least one field."),r?{text:t,list:{title:r.title,values:r.values.map(jS)}}:{text:t}}function Zy(e,t){return e===!0?!0:e===!1?{value:t}:e}function Qy(e,t,r=!1){return e===!1?!1:e===!0?r?!0:[{value:t}]:"value"in e?[e]:e.length===0?!1:e}function $y(e,t){return typeof e=="string"||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function Jc(e,t){return e===void 0?[]:Array.isArray(e)?e.map(r=>$y(r,t)):[$y(e,t)]}function eS(e,t){let r=Jc(typeof e=="object"&&"redirect"in e?e.redirect:e,t);return r.length===0?{remain:t,redirect:r}:typeof e=="object"&&"remain"in e?{remain:e.remain,redirect:r}:{redirect:r}}function Ik(e,t){if(!e)throw new Error(t)}var Nk=class extends Mn{constructor(e){super(e),this._choices=Fk(e.choices.map(t=>t&&typeof t=="object"?t:{value:t}),"value")}expected({descriptor:e}){let t=Array.from(this._choices.keys()).map(i=>this._choices.get(i)).filter(({hidden:i})=>!i).map(i=>i.value).sort(Ok).map(e.value),r=t.slice(0,-2),n=t.slice(-2);return{text:r.concat(n.join(" or ")).join(", "),list:{title:"one of the following values",values:t}}}validate(e){return this._choices.has(e)}deprecated(e){let t=this._choices.get(e);return t&&t.deprecated?{value:e}:!1}forward(e){let t=this._choices.get(e);return t?t.forward:void 0}redirect(e){let t=this._choices.get(e);return t?t.redirect:void 0}},bk=class extends Mn{expected(){return"a number"}validate(e,t){return typeof e=="number"}},xk=class extends bk{expected(){return"an integer"}validate(e,t){return t.normalizeValidateResult(super.validate(e,t),e)===!0&&Rk(e)}},tS=class extends Mn{expected(){return"a string"}validate(e){return typeof e=="string"}},Bk=Lo,Mk=qS,_k=mk,Pk=dk,kk=class{constructor(e,t){let{logger:r=console,loggerPrintWidth:n=80,descriptor:i=Bk,unknown:o=Mk,invalid:a=_k,deprecated:c=Pk,missing:f=()=>!1,required:E=()=>!1,preprocess:g=y=>y,postprocess:A=()=>Ou}=t||{};this._utils={descriptor:i,logger:r||{warn:()=>{}},loggerPrintWidth:n,schemas:Tk(e,"name"),normalizeDefaultResult:Jy,normalizeExpectedResult:jS,normalizeDeprecatedResult:Qy,normalizeForwardResult:Jc,normalizeRedirectResult:eS,normalizeValidateResult:Zy},this._unknownHandler=o,this._invalidHandler=Uk(a),this._deprecatedHandler=c,this._identifyMissing=(y,T)=>!(y in T)||f(y,T),this._identifyRequired=E,this._preprocess=g,this._postprocess=A,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=vk()}normalize(e){let t={},r=[this._preprocess(e,this._utils)],n=()=>{for(;r.length!==0;){let i=r.shift(),o=this._applyNormalization(i,t);r.push(...o)}};n();for(let i of Object.keys(this._utils.schemas)){let o=this._utils.schemas[i];if(!(i in t)){let a=Jy(o.default(this._utils));"value"in a&&r.push({[i]:a.value})}}n();for(let i of Object.keys(this._utils.schemas)){if(!(i in t))continue;let o=this._utils.schemas[i],a=t[i],c=o.postprocess(a,this._utils);c!==Ou&&(this._applyValidation(c,i,o),t[i]=c)}return this._applyPostprocess(t),this._applyRequiredCheck(t),t}_applyNormalization(e,t){let r=[],{knownKeys:n,unknownKeys:i}=this._partitionOptionKeys(e);for(let o of n){let a=this._utils.schemas[o],c=a.preprocess(e[o],this._utils);this._applyValidation(c,o,a);let f=({from:A,to:y})=>{r.push(typeof y=="string"?{[y]:A}:{[y.key]:y.value})},E=({value:A,redirectTo:y})=>{let T=Qy(a.deprecated(A,this._utils),c,!0);if(T!==!1)if(T===!0)this._hasDeprecationWarned(o)||this._utils.logger.warn(this._deprecatedHandler(o,y,this._utils));else for(let{value:S}of T){let v={key:o,value:S};if(!this._hasDeprecationWarned(v)){let L=typeof y=="string"?{key:y,value:S}:y;this._utils.logger.warn(this._deprecatedHandler(v,L,this._utils))}}};Jc(a.forward(c,this._utils),c).forEach(f);let g=eS(a.redirect(c,this._utils),c);if(g.redirect.forEach(f),"remain"in g){let A=g.remain;t[o]=o in t?a.overlap(t[o],A,this._utils):A,E({value:A})}for(let{from:A,to:y}of g.redirect)E({value:A,redirectTo:y})}for(let o of i){let a=e[o];this._applyUnknownHandler(o,a,t,(c,f)=>{r.push({[c]:f})})}return r}_applyRequiredCheck(e){for(let t of Object.keys(this._utils.schemas))if(this._identifyMissing(t,e)&&this._identifyRequired(t))throw this._invalidHandler(t,PS,this._utils)}_partitionOptionKeys(e){let[t,r]=Lk(Object.keys(e).filter(n=>!this._identifyMissing(n,e)),n=>n in this._utils.schemas);return{knownKeys:t,unknownKeys:r}}_applyValidation(e,t,r){let n=Zy(r.validate(e,this._utils),e);if(n!==!0)throw this._invalidHandler(t,n.value,this._utils)}_applyUnknownHandler(e,t,r,n){let i=this._unknownHandler(e,t,this._utils);if(i)for(let o of Object.keys(i)){if(this._identifyMissing(o,i))continue;let a=i[o];o in this._utils.schemas?n(o,a):r[o]=a}}_applyPostprocess(e){let t=this._postprocess(e,this._utils);if(t!==Ou){if(t.delete)for(let r of t.delete)delete e[r];if(t.override){let{knownKeys:r,unknownKeys:n}=this._partitionOptionKeys(t.override);for(let i of r){let o=t.override[i];this._applyValidation(o,i,this._utils.schemas[i]),e[i]=o}for(let i of n){let o=t.override[i];this._applyUnknownHandler(i,o,e,(a,c)=>{let f=this._utils.schemas[a];this._applyValidation(c,a,f),e[a]=c})}}}}},Gc;function wk(e,t,{logger:r=!1,isCLI:n=!1,passThrough:i=!1,FlagSchema:o,descriptor:a}={}){if(n){if(!o)throw new Error("'FlagSchema' option is required.");if(!a)throw new Error("'descriptor' option is required.")}else a=Lo;let c=i?Array.isArray(i)?(y,T)=>i.includes(y)?{[y]:T}:void 0:(y,T)=>({[y]:T}):(y,T,S)=>{let{_:v,...L}=S.schemas;return qS(y,T,{...S,schemas:L})},f=qk(t,{isCLI:n,FlagSchema:o}),E=new kk(f,{logger:r,unknown:c,descriptor:a}),g=r!==!1;g&&Gc&&(E._hasDeprecationWarned=Gc);let A=E.normalize(e);return g&&(Gc=E._hasDeprecationWarned),A}function qk(e,{isCLI:t,FlagSchema:r}){let n=[];t&&n.push(yk.create({name:"_"}));for(let i of e)n.push(jk(i,{isCLI:t,optionInfos:e,FlagSchema:r})),i.alias&&t&&n.push(Ck.create({name:i.alias,sourceName:i.name}));return n}function jk(e,{isCLI:t,optionInfos:r,FlagSchema:n}){let{name:i}=e,o={name:i},a,c={};switch(e.type){case"int":a=xk,t&&(o.preprocess=Number);break;case"string":a=tS;break;case"choice":a=Nk,o.choices=e.choices.map(f=>f!=null&&f.redirect?{...f,redirect:{to:{key:e.name,value:f.redirect}}}:f);break;case"boolean":a=Ak;break;case"flag":a=n,o.flags=r.flatMap(f=>[f.alias,f.description&&f.name,f.oppositeDescription&&`no-${f.name}`].filter(Boolean));break;case"path":a=tS;break;default:throw new Error(`Unexpected type ${e.type}`)}if(e.exception?o.validate=(f,E,g)=>e.exception(f)||E.validate(f,g):o.validate=(f,E,g)=>f===void 0||E.validate(f,g),e.redirect&&(c.redirect=f=>f?{to:typeof e.redirect=="string"?e.redirect:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(c.deprecated=!0),t&&!e.array){let f=o.preprocess||(E=>E);o.preprocess=(E,g,A)=>g.preprocess(f(Array.isArray(E)?rt(!1,E,-1):E),A)}return e.array?Sk.create({...t?{preprocess:f=>Array.isArray(f)?f:[f]}:{},...c,valueSchema:a.create(o)}):a.create({...o,...c})}var Gk=wk,Vk=(e,t,r)=>{if(!(e&&t==null)){if(t.findLast)return t.findLast(r);for(let n=t.length-1;n>=0;n--){let i=t[n];if(r(i,n,t))return i}}},GS=Vk;function VS(e,t){if(!t)throw new Error("parserName is required.");let r=GS(!1,e,i=>i.parsers&&Object.prototype.hasOwnProperty.call(i.parsers,t));if(r)return r;let n=`Couldn't resolve parser "${t}".`;throw n+=" Plugins must be explicitly added to the standalone bundle.",new MS(n)}function Wk(e,t){if(!t)throw new Error("astFormat is required.");let r=GS(!1,e,i=>i.printers&&Object.prototype.hasOwnProperty.call(i.printers,t));if(r)return r;let n=`Couldn't find plugin for AST format "${t}".`;throw n+=" Plugins must be explicitly added to the standalone bundle.",new MS(n)}function WS({plugins:e,parser:t}){let r=VS(e,t);return KS(r,t)}function KS(e,t){let r=e.parsers[t];return typeof r=="function"?r():r}function Kk(e,t){let r=e.printers[t];return typeof r=="function"?r():r}var rS={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};async function zk(e,t={}){var r;let n={...e};if(!n.parser)if(n.filepath){if(n.parser=pk(n,{physicalFile:n.filepath}),!n.parser)throw new Gy(`No parser could be inferred for file "${n.filepath}".`)}else throw new Gy("No parser and no file path given, couldn't infer a parser.");let i=_S({plugins:e.plugins,showDeprecated:!0}).options,o={...rS,...Object.fromEntries(i.filter(y=>y.default!==void 0).map(y=>[y.name,y.default]))},a=VS(n.plugins,n.parser),c=await KS(a,n.parser);n.astFormat=c.astFormat,n.locEnd=c.locEnd,n.locStart=c.locStart;let f=(r=a.printers)!=null&&r[c.astFormat]?a:Wk(n.plugins,c.astFormat),E=await Kk(f,c.astFormat);n.printer=E;let g=f.defaultOptions?Object.fromEntries(Object.entries(f.defaultOptions).filter(([,y])=>y!==void 0)):{},A={...o,...g};for(let[y,T]of Object.entries(A))(n[y]===null||n[y]===void 0)&&(n[y]=T);return n.parser==="json"&&(n.trailingComma="none"),Gk(n,i,{passThrough:Object.keys(rS),...t})}var Io=zk,Yk=Pa(HP(),1);async function Hk(e,t){let r=await WS(t),n=r.preprocess?r.preprocess(e,t):e;t.originalText=n;let i;try{i=await r.parse(n,t,t)}catch(o){Xk(o,e)}return{text:n,ast:i}}function Xk(e,t){let{loc:r}=e;if(r){let n=(0,Yk.codeFrameColumns)(t,r,{highlightCode:!0});throw e.message+=`
|
|
148
|
+
`+n,e.codeFrame=n,e}throw e}var wa=Hk;async function Jk(e,t,r,n,i){let{embeddedLanguageFormatting:o,printer:{embed:a,hasPrettierIgnore:c=()=>!1,getVisitorKeys:f}}=r;if(!a||o!=="auto")return;if(a.length>2)throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/en/plugins.html#optional-embed");let E=_u(a.getVisitorKeys??f),g=[];T();let A=e.stack;for(let{print:S,node:v,pathStack:L}of g)try{e.stack=L;let O=await S(y,t,e,r);O&&i.set(v,O)}catch(O){if(globalThis.PRETTIER_DEBUG)throw O}e.stack=A;function y(S,v){return Zk(S,v,r,n)}function T(){let{node:S}=e;if(S===null||typeof S!="object"||c(e))return;for(let L of E(S))Array.isArray(S[L])?e.each(T,L):e.call(T,L);let v=a(e,r);if(v){if(typeof v=="function"){g.push({print:v,node:S,pathStack:[...e.stack]});return}i.set(S,v)}}}async function Zk(e,t,r,n){let i=await Io({...r,...t,parentParser:r.parser,originalText:e},{passThrough:!0}),{ast:o}=await wa(e,i),a=await n(o,i);return FS(a)}function Qk(e,t){let{originalText:r,[Symbol.for("comments")]:n,locStart:i,locEnd:o,[Symbol.for("printedComments")]:a}=t,{node:c}=e,f=i(c),E=o(c);for(let g of n)i(g)>=f&&o(g)<=E&&a.add(g);return r.slice(f,E)}var $k=Qk;async function Pu(e,t){({ast:e}=await zS(e,t));let r=new Map,n=new P5(e),i=ok(t),o=new Map;await Jk(n,c,t,Pu,o);let a=await nS(n,t,c,void 0,o);return nk(t),a;function c(E,g){return E===void 0||E===n?f(g):Array.isArray(E)?n.call(()=>f(g),...E):n.call(()=>f(g),E)}function f(E){i(n);let g=n.node;if(g==null)return"";let A=g&&typeof g=="object"&&E===void 0;if(A&&r.has(g))return r.get(g);let y=nS(n,t,c,E,o);return A&&r.set(g,y),y}}function nS(e,t,r,n,i){var o;let{node:a}=e,{printer:c}=t,f;return(o=c.hasPrettierIgnore)!=null&&o.call(c,e)?f=$k(e,t):i.has(a)?f=i.get(a):f=c.print(e,t,r,n),a===t.cursorNode&&(f=vS(f,E=>[Kc,E,Kc])),c.printComment&&(!c.willPrintOwnComments||!c.willPrintOwnComments(e,t))&&(f=rk(e,f,t)),f}async function zS(e,t){let r=e.comments??[];t[Symbol.for("comments")]=r,t[Symbol.for("tokens")]=e.tokens??[],t[Symbol.for("printedComments")]=new Set,X5(e,t);let{printer:{preprocess:n}}=t;return e=n?await n(e,t):e,{ast:e,comments:r}}function ew(e,t){let{cursorOffset:r,locStart:n,locEnd:i}=t,o=_u(t.printer.getVisitorKeys),a=f=>n(f)<=r&&i(f)>=r,c=e;for(let f of q5(e,{getVisitorKeys:o,filter:a}))c=f;return c}var tw=ew;function rw(e,t){let{printer:{massageAstNode:r,getVisitorKeys:n}}=t;if(!r)return e;let i=_u(n),o=r.ignoredProperties??new Set;return a(e);function a(c,f){if(!(c!==null&&typeof c=="object"))return c;if(Array.isArray(c))return c.map(y=>a(y,f)).filter(Boolean);let E={},g=new Set(i(c));for(let y in c)!Object.prototype.hasOwnProperty.call(c,y)||o.has(y)||(g.has(y)?E[y]=a(c[y],c):E[y]=c[y]);let A=r(c,E,f);if(A!==null)return A??E}}var nw=rw,iw=({parser:e})=>e==="json"||e==="json5"||e==="jsonc"||e==="json-stringify";function ow(e,t){let r=[e.node,...e.parentNodes],n=new Set([t.node,...t.parentNodes]);return r.find(i=>YS.has(i.type)&&n.has(i))}function iS(e){let t=e.length-1;for(;;){let r=e[t];if(r?.type==="Program"||r?.type==="File")t--;else break}return e.slice(0,t+1)}function aw(e,t,{locStart:r,locEnd:n}){let i=e.node,o=t.node;if(i===o)return{startNode:i,endNode:o};let a=r(e.node);for(let f of iS(t.parentNodes))if(r(f)>=a)o=f;else break;let c=n(t.node);for(let f of iS(e.parentNodes)){if(n(f)<=c)i=f;else break;if(i===o)break}return{startNode:i,endNode:o}}function Zc(e,t,r,n,i=[],o){let{locStart:a,locEnd:c}=r,f=a(e),E=c(e);if(!(t>E||t<f||o==="rangeEnd"&&t===f||o==="rangeStart"&&t===E)){for(let g of uf(e,r)){let A=Zc(g,t,r,n,[e,...i],o);if(A)return A}if(!n||n(e,i[0]))return{node:e,parentNodes:i}}}function sw(e,t){return t!=="DeclareExportDeclaration"&&e!=="TypeParameterDeclaration"&&(e==="Directive"||e==="TypeAlias"||e==="TSExportAssignment"||e.startsWith("Declare")||e.startsWith("TSDeclare")||e.endsWith("Statement")||e.endsWith("Declaration"))}var YS=new Set(["JsonRoot","ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","UnaryExpression","TemplateLiteral"]),uw=new Set(["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"]);function oS(e,t,r){if(!t)return!1;switch(e.parser){case"flow":case"babel":case"babel-flow":case"babel-ts":case"typescript":case"acorn":case"espree":case"meriyah":case"__babel_estree":return sw(t.type,r?.type);case"json":case"json5":case"jsonc":case"json-stringify":return YS.has(t.type);case"graphql":return uw.has(t.kind);case"vue":return t.tag!=="root"}return!1}function lw(e,t,r){let{rangeStart:n,rangeEnd:i,locStart:o,locEnd:a}=t;Xc.ok(i>n);let c=e.slice(n,i).search(/\S/),f=c===-1;if(!f)for(n+=c;i>n&&!/\S/.test(e[i-1]);--i);let E=Zc(r,n,t,(T,S)=>oS(t,T,S),[],"rangeStart"),g=f?E:Zc(r,i,t,T=>oS(t,T),[],"rangeEnd");if(!E||!g)return{rangeStart:0,rangeEnd:0};let A,y;if(iw(t)){let T=ow(E,g);A=T,y=T}else({startNode:A,endNode:y}=aw(E,g,t));return{rangeStart:Math.min(o(A),o(y)),rangeEnd:Math.max(a(A),a(y))}}var HS="\uFEFF",aS=Symbol("cursor");async function XS(e,t,r=0){if(!e||e.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:n,text:i}=await wa(e,t);t.cursorOffset>=0&&(t.cursorNode=tw(n,t));let o=await Pu(n,t,r);r>0&&(o=TS([pi,o],r,t.tabWidth));let a=Mu(o,t);if(r>0){let f=a.formatted.trim();a.cursorNodeStart!==void 0&&(a.cursorNodeStart-=a.formatted.indexOf(f)),a.formatted=f+$c(t.endOfLine)}let c=t[Symbol.for("comments")];if(t.cursorOffset>=0){let f,E,g,A,y;if(t.cursorNode&&a.cursorNodeText?(f=t.locStart(t.cursorNode),E=i.slice(f,t.locEnd(t.cursorNode)),g=t.cursorOffset-f,A=a.cursorNodeStart,y=a.cursorNodeText):(f=0,E=i,g=t.cursorOffset,A=0,y=a.formatted),E===y)return{formatted:a.formatted,cursorOffset:A+g,comments:c};let T=E.split("");T.splice(g,0,aS);let S=y.split(""),v=(0,ZP.diffArrays)(T,S),L=A;for(let O of v)if(O.removed){if(O.value.includes(aS))break}else L+=O.count;return{formatted:a.formatted,cursorOffset:L,comments:c}}return{formatted:a.formatted,cursorOffset:-1,comments:c}}async function cw(e,t){let{ast:r,text:n}=await wa(e,t),{rangeStart:i,rangeEnd:o}=lw(n,t,r),a=n.slice(i,o),c=Math.min(i,n.lastIndexOf(`
|
|
149
|
+
`,i)+1),f=n.slice(c,i).match(/^\s*/)[0],E=af(f,t.tabWidth),g=await XS(a,{...t,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:t.cursorOffset>i&&t.cursorOffset<=o?t.cursorOffset-i:-1,endOfLine:"lf"},E),A=g.formatted.trimEnd(),{cursorOffset:y}=t;y>o?y+=A.length-a.length:g.cursorOffset>=0&&(y=g.cursorOffset+i);let T=n.slice(0,i)+A+n.slice(o);if(t.endOfLine!=="lf"){let S=$c(t.endOfLine);y>=0&&S===`\r
|
|
150
|
+
`&&(y+=mS(T.slice(0,y),`
|
|
151
|
+
`)),T=bu(!1,T,`
|
|
152
|
+
`,S)}return{formatted:T,cursorOffset:y,comments:g.comments}}function Vc(e,t,r){return typeof t!="number"||Number.isNaN(t)||t<0||t>e.length?r:t}function sS(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:i}=t;return r=Vc(e,r,-1),n=Vc(e,n,0),i=Vc(e,i,e.length),{...t,cursorOffset:r,rangeStart:n,rangeEnd:i}}function JS(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:i,endOfLine:o}=sS(e,t),a=e.charAt(0)===HS;if(a&&(e=e.slice(1),r--,n--,i--),o==="auto"&&(o=QP(e)),e.includes("\r")){let c=f=>mS(e.slice(0,Math.max(f,0)),`\r
|
|
153
|
+
`);r-=c(r),n-=c(n),i-=c(i),e=$P(e)}return{hasBOM:a,text:e,options:sS(e,{...t,cursorOffset:r,rangeStart:n,rangeEnd:i,endOfLine:o})}}async function uS(e,t){let r=await WS(t);return!r.hasPragma||r.hasPragma(e)}async function ZS(e,t){let{hasBOM:r,text:n,options:i}=JS(e,await Io(t));if(i.rangeStart>=i.rangeEnd&&n!==""||i.requirePragma&&!await uS(n,i))return{formatted:e,cursorOffset:t.cursorOffset,comments:[]};let o;return i.rangeStart>0||i.rangeEnd<n.length?o=await cw(n,i):(!i.requirePragma&&i.insertPragma&&i.printer.insertPragma&&!await uS(n,i)&&(n=i.printer.insertPragma(n)),o=await XS(n,i)),r&&(o.formatted=HS+o.formatted,o.cursorOffset>=0&&o.cursorOffset++),o}async function fw(e,t,r){let{text:n,options:i}=JS(e,await Io(t)),o=await wa(n,i);return r&&(r.preprocessForPrint&&(o.ast=await zS(o.ast,i)),r.massage&&(o.ast=nw(o.ast,i))),o}async function pw(e,t){t=await Io(t);let r=await Pu(e,t);return Mu(r,t)}async function dw(e,t){let r=h5(e),{formatted:n}=await ZS(r,{...t,parser:"__js_expression"});return n}async function mw(e,t){t=await Io(t);let{ast:r}=await wa(e,t);return Pu(r,t)}async function hw(e,t){return Mu(e,await Io(t))}var ku={};Nu(ku,{builders:()=>Dw,printer:()=>Ew,utils:()=>gw});var Dw={join:AS,line:yS,softline:d5,hardline:pi,literalline:SS,group:ES,conditionalGroup:u5,fill:gS,lineSuffix:Wc,lineSuffixBoundary:f5,cursor:Kc,breakParent:xu,ifBreak:l5,trim:p5,indent:Uu,indentIfBreak:c5,align:Uo,addAlignmentToDoc:TS,markAsRoot:a5,dedentToRoot:o5,dedent:s5,hardlineWithoutBreakParent:rf,literallineWithoutBreakParent:CS,label:m5,concat:e=>e},Ew={printDocToString:Mu},gw={willBreak:F5,traverseDoc:ef,findInDoc:of,mapDoc:Bu,removeLines:R5,stripTrailingHardline:FS,replaceEndOfLine:I5,canBreak:b5},Cw="3.3.2",QS={};Nu(QS,{addDanglingComment:()=>ci,addLeadingComment:()=>Fo,addTrailingComment:()=>vo,getAlignmentSize:()=>af,getIndentSize:()=>vw,getMaxContinuousCount:()=>Ow,getNextNonSpaceNonCommentCharacter:()=>Iw,getNextNonSpaceNonCommentCharacterIndex:()=>kw,getStringWidth:()=>nf,hasNewline:()=>xn,hasNewlineInRange:()=>bw,hasSpaces:()=>Bw,isNextLineEmpty:()=>Gw,isNextLineEmptyAfterIndex:()=>df,isPreviousLineEmpty:()=>qw,makeString:()=>_w,skip:()=>ka,skipEverythingButNewLine:()=>IS,skipInlineComment:()=>cf,skipNewline:()=>di,skipSpaces:()=>Bn,skipToLineEnd:()=>US,skipTrailingComment:()=>ff,skipWhitespace:()=>j5});function yw(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let r=t+2;r<e.length;++r)if(e.charAt(r)==="*"&&e.charAt(r+1)==="/")return r+2}return t}var cf=yw;function Sw(e,t){return t===!1?!1:e.charAt(t)==="/"&&e.charAt(t+1)==="/"?IS(e,t):t}var ff=Sw;function Aw(e,t){let r=null,n=t;for(;n!==r;)r=n,n=Bn(e,n),n=cf(e,n),n=ff(e,n),n=di(e,n);return n}var pf=Aw;function Tw(e,t){let r=null,n=t;for(;n!==r;)r=n,n=US(e,n),n=cf(e,n),n=Bn(e,n);return n=ff(e,n),n=di(e,n),n!==!1&&xn(e,n)}var df=Tw;function Fw(e,t){let r=e.lastIndexOf(`
|
|
154
|
+
`);return r===-1?0:af(e.slice(r+1).match(/^[\t ]*/)[0],t)}var vw=Fw;function Lw(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Rw(e,t){let r=e.match(new RegExp(`(${Lw(t)})+`,"g"));return r===null?0:r.reduce((n,i)=>Math.max(n,i.length/t.length),0)}var Ow=Rw;function Uw(e,t){let r=pf(e,t);return r===!1?"":e.charAt(r)}var Iw=Uw;function Nw(e,t,r){for(let n=t;n<r;++n)if(e.charAt(n)===`
|
|
155
|
+
`)return!0;return!1}var bw=Nw;function xw(e,t,r={}){return Bn(e,r.backwards?t-1:t,r)!==t}var Bw=xw;function Mw(e,t,r){let n=t==='"'?"'":'"',i=bu(!1,e,/\\(.)|(["'])/gs,(o,a,c)=>a===n?a:c===t?"\\"+c:c||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(a)?a:"\\"+a));return t+i+t}var _w=Mw;function Pw(e,t,r){return pf(e,r(t))}function kw(e,t){return arguments.length===2||typeof t=="number"?pf(e,t):Pw(...arguments)}function ww(e,t,r){return lf(e,r(t))}function qw(e,t){return arguments.length===2||typeof t=="number"?lf(e,t):ww(...arguments)}function jw(e,t,r){return df(e,r(t))}function Gw(e,t){return arguments.length===2||typeof t=="number"?df(e,t):jw(...arguments)}function fi(e,t=1){return async(...r)=>{let n=r[t]??{},i=n.plugins??[];return r[t]={...n,plugins:Array.isArray(i)?i:Object.values(i)},e(...r)}}var $S=fi(ZS);async function eA(e,t){let{formatted:r}=await $S(e,{...t,cursorOffset:-1});return r}async function Vw(e,t){return await eA(e,t)===e}var Ww=fi(_S,0),Kw={parse:fi(fw),formatAST:fi(pw),formatDoc:fi(dw),printToDoc:fi(mw),printDocToString:fi(hw)};s();l();u();var zw=e=>e===""||(Array.isArray(e)&&e.length)===0,qa=zw;var{hardline:_n,lineSuffix:Yw,breakParent:Hw,literalline:Xw}=ue;function H(e){return rA(e,e.image.includes(`
|
|
156
|
+
`)?ku.utils.replaceEndOfLine(e.image):e.image,mf,Zw)}function tA(e,t){return rA(e,t,Jw,Qw)}function rA(e,t,r,n){let i=r(e),o=n(e,t);return i.length===0&&o.length===0?t:[...i,t,...o]}function mf(e){return nA(e,e)}function Jw(e){return nA(e,e.location)}function nA(e,t){let r=[];if(e.leadingComments!==void 0){let n=e.leadingComments[0].endLine,i;r.push(wu(e.leadingComments[0]));for(let o=1;o<e.leadingComments.length;o++)i=e.leadingComments[o].startLine-n,i===1||e.leadingComments[o].startOffset>t.startOffset?r.push(_n):i>1&&r.push(_n,_n),r.push(wu(e.leadingComments[o])),n=e.leadingComments[o].endLine;i=t.startLine-n,i===1||e.leadingComments[e.leadingComments.length-1].startOffset>t.startOffset?r.push(_n):i>1&&r.push(_n,_n)}return r}function Zw(e){return iA(e,e.image,e)}function Qw(e,t){return iA(e,t,e.location)}function iA(e,t,r){let n=[],i=r.endLine;return e.trailingComments!==void 0&&e.trailingComments.forEach((o,a)=>{let c="";o.startLine!==i?n.push(_n):!qa(t)&&a===0&&(c=" "),o.tokenType.name==="LineComment"?n.push(Yw([c,wu(o),Hw])):n.push(wu(o)),i=o.endLine}),n}function $w(e,t){let r=!0;if(e.tokenType.name==="TraditionalComment"&&t.length>1){for(let n=1;n<t.length;n++)if(t[n].trim().charAt(0)!=="*"){r=!1;break}}else r=!1;return r}function eq(e){let t=[e[0].trim()];for(let r=1;r<e.length;r++)t.push(_n),t.push(" "+e[r].trim());return t}function wu(e){let t=[],r=e.image.split(`
|
|
157
|
+
`);return $w(e,r)?eq(r):(r.forEach(n=>{t.push(n),t.push(Xw)}),t.pop(),t)}function oA(e){return Array.isArray(e)?e.map(t=>Pc(t)?H(t):t):Pc(e)?H(e):e}var Ne=class extends Rc{constructor(){super(),this.mapVisit=(t,r)=>t===void 0?[]:t.map(n=>this.visit(n,r)),this.getSingle=t=>{let r=Object.keys(t);if(r.length!==1)throw Error(`Expecting single key CST ctx but found: <${r.length}> keys`);let n=r[0],i=t[n];if(i?.length!==1)throw Error(`Expecting single item in CST ctx key but found: <${i?.length}> items`);return i[0]},this.orgVisit=this.visit,this.visit=function(t,r){if(t===void 0)return"";let n=Array.isArray(t)?t[0]:t;if(n.ignore)try{let i=n.leadingComments!==void 0?n.leadingComments[0].startOffset:n.location.startOffset,o=n.trailingComments!==void 0?n.trailingComments[n.trailingComments.length-1].endOffset:n.location.endOffset;return this.prettierOptions.originalText.substring(i,o+1)}catch(i){throw Error(i+`
|
|
158
|
+
There might be a problem with prettier-ignore, please report an issue on https://github.com/jhipster/prettier-java/issues`)}return tA(n,this.orgVisit.call(this,n,r))},this.visitSingle=function(t,r){let n=this.getSingle(t);return this.visit(n,r)}}};s();l();u();s();l();u();var YA=rr(sA(),1),HA=rr(Lc(),1),Ff=rr(ja(),1),XA=rr(UA(),1),JA=rr(VA(),1);s();l();u();s();l();u();s();l();u();s();l();u();function Zr(e){return e.leadingComments!==void 0}function Ga(e){return e.trailingComments!==void 0}function qu(e){return e.leadingComments!==void 0&&e.leadingComments.length!==0&&e.leadingComments[e.leadingComments.length-1].tokenType.name==="LineComment"}function WA(e){return e.trailingComments!==void 0&&e.trailingComments.length!==0&&e.trailingComments[e.trailingComments.length-1].tokenType.name==="LineComment"}function gf(e){return Zr(e)||Ga(e)}function KA(e){lj(e),cj(e)}function $t(e,t,r){var n,i,o;let a=e.trailingComments,c=t.at(0);a&&c&&(delete e.trailingComments,c.leadingComments=[...a,...(n=c.leadingComments)!==null&&n!==void 0?n:[]]);let f=t.at(-1),E=r.leadingComments;E&&(delete r.leadingComments,f?f.trailingComments=[...(i=f.trailingComments)!==null&&i!==void 0?i:[],...E]:e.trailingComments=[...(o=e.trailingComments)!==null&&o!==void 0?o:[],...E])}function lj(e){var t;let r=1;(t=e.BinaryOperator)===null||t===void 0||t.forEach(n=>{if(Zr(n)){for(;e.unaryExpression[r].location.startOffset<n.endOffset;)r++;let i=n.leadingComments[0].startLine-1-n.startLine;n.startLine!==e.unaryExpression[r].location.startLine&&n.leadingComments.forEach(o=>{o.startLine+=1,o.endLine+=1}),n.startLine+=i,n.endLine+=i,e.unaryExpression[r].leadingComments=e.unaryExpression[r].leadingComments||[],e.unaryExpression[r].leadingComments.unshift(...n.leadingComments),delete n.leadingComments}})}function cj(e){let t=e.BinaryOperator,r=0;t?.length&&e.unaryExpression.forEach(n=>{var i;if(Ga(n)){for(;r<t.length-1&&n.location.endOffset&&t[r].startOffset<n.location.endOffset;)r++;let o=t[r],a=n.trailingComments[0].startLine-1-n.location.startLine;n.location.startLine!==o.startLine&&n.trailingComments.forEach(c=>{c.startLine+=1,c.endLine+=1}),n.location.startLine+=a,n.location.endLine!==void 0&&(n.location.endLine+=a),o.trailingComments=(i=o.trailingComments)!==null&&i!==void 0?i:[],o.trailingComments.unshift(...n.trailingComments),delete n.trailingComments}})}s();l();u();var Fr=oA;function k(e){let t=Fr(e);return Array.isArray(e)?t:""}function ee(e,t){return ue.join(Fr(e),Fr(t))}function G(e,t){let r=ue.group(Fr(e),t);return r.contents===void 0?"":r}function Z(e){let t=Fr(e);return t.length===0?"":ue.indent(t)}function Cf(e){return Fr(e).length===0?"":ue.dedent(Fr(e))}function yf(e,t){return ue.ifBreak(Fr(e),Fr(t))}function Ei(e,t){return ue.indentIfBreak(Fr(e),t)}var{lineSuffixBoundary:fj,softline:pj}=ue;function Qr(e,t,r){var n,i,o;let a=e?.[0],c=(n=a?.children.expression)!==null&&n!==void 0?n:[];if(a){let{leadingComments:g,trailingComments:A}=a;if(delete a.leadingComments,delete a.trailingComments,g){let y=c[0];y.leadingComments=[...g,...(i=y.leadingComments)!==null&&i!==void 0?i:[]]}if(A){let y=c.at(-1);y.trailingComments=[...(o=y.trailingComments)!==null&&o!==void 0?o:[],...A]}}$t(r,c,t);let f=this.visit(e),E=f?[f]:r.trailingComments?[pj,fj]:[];return P([Z(r),...E,t])}var{indent:Wa,hardline:Pn,line:Va,lineSuffixBoundary:dj,softline:mj}=ue,zA=["Public","Protected","Private","Abstract","Default","Static","Final","Transient","Volatile","Synchronized","Native","Sealed","NonSealed","Strictfp"];function vr(e,t){return X(t||[],e)}function X(e,t,r){if(!Array.isArray(e))return I(e,t);let n=No(t),i=[];for(let o=0;o<e.length;o++)i.push(n[o],e[o]),r&&i.push(r);return i.push(...n.slice(e.length)),k(i)}function No(e){return e.filter(t=>typeof t=="string"?t!=="":t!=!1&&t!==void 0)}function ZA(e,t){let r=No(t),n=[];for(let i=0;i<r.length-1;i++)r[i]!==""&&n.push(e[i]);return n}function I(e,t){let r=No(t);return ee(e,r)}function P(e){let t=No(e);return k(t)}function QA(e,t){let r=[...t];return e&&e.length>0&&(r=[...r,...e]),r.sort((n,i)=>{let o=Gr(n)?n.children.At[0].startOffset:n.startOffset,a=Gr(i)?i.children.At[0].startOffset:i.startOffset;return o-a})}function $A(e){let t=[];return(0,Ff.default)(e,r=>{r&&(t=t.concat(r))}),t.sort((r,n)=>r.startOffset-n.startOffset)}function eT(e){let t=[];return(0,Ff.default)(e,r=>{r&&(t=t.concat(r))}),t.sort((r,n)=>{let i=r.location.startOffset,o=n.location.startOffset;return i-o})}function Gu(e,t,r,n){let i=[...r];return e&&e.length>0&&(i=[...i,...e]),t&&t.length>0&&(i=[...i,...t]),n&&n.length>0&&(i=[...i,...n]),i.sort((o,a)=>{let c=Gr(o)?o.children.At?o.children.At[0].startOffset:o.children.Less[0].startOffset:o.startOffset,f=Gr(a)?a.children.At?a.children.At[0].startOffset:a.children.Less[0].startOffset:a.startOffset;return c-f})}function xt(e){let t=[],r=[],n=[],i=!1;return(0,XA.default)(e,o=>{let a=o.children.annotation!==void 0,c=a&&(o.name==="methodModifier"||o.name==="interfaceMethodModifier"||o.name==="fieldModifier");a?c&&!i?n.unshift(o):t.unshift(o):(r.unshift(o),i=!0)}),i||(t=t.concat(n),n=[]),r.sort((o,a)=>{let c=zA.indexOf(Object.keys(o.children)[0]),f=zA.indexOf(Object.keys(a.children)[0]);return c-f}),[t,r.concat(n)]}function ju(e,t){if(Array.isArray(e)){if((0,JA.default)(e,t))return!0;for(let r=0;r<e.length;r++)if(ju(e[r],t))return!0}else for(let r in e)if(typeof e[r]=="object"&&ju(e[r],t))return!0;return!1}function kn(e,t){return t!==void 0&&t.allowEmptyStatement?H(e):gf(e)?(e.image="",H(e)):""}function tT(e){return e&&e.lambdaParameterList&&e.lambdaParameterList[0]&&e.lambdaParameterList[0].children&&e.lambdaParameterList[0].children.normalLambdaParameterList}function $r(e,t=Pn){if(e===void 0)return[];let r=[];for(let n=0;n<e.length-1;n++){let i=e[n],o=Ga(i)?i.trailingComments[i.trailingComments.length-1].endLine:i.location.endLine,a=e[n+1];(Zr(a)?a.leadingComments[0].startLine:a.location.startLine)-o>1?r.push([Pn,Pn]):r.push(t)}return r}var hj=e=>Array.isArray(e)?e.length===2&&e[0]===Pn&&e[1]===Pn:!1;function rT(e,t,r){let n=e.filter(f=>!r(f)),i=$r(n),o=n.map(t),a=[],c=0;for(let f=0;f<e.length-1;f++)if(r(e[f]))gf(e[f])&&a.push(Pn);else if(c<n.length-1){let g=!hj(i[c])&&(o[c+1]||o[c])?Pn:"";a.push(k([i[c],g])),c+=1}return a}function Dj(e){if(e.children.classMemberDeclaration===void 0)return!0;let t=e.children.classMemberDeclaration[0];if(t.children.fieldDeclaration!==void 0){let r=t.children.fieldDeclaration[0];return!!(r.children.fieldModifier!==void 0&&nT(r.children.fieldModifier)&&Af(r.children.fieldModifier))}else if(t.children.Semicolon!==void 0)return!1;return!0}function Ej(e){if(e.children.constantDeclaration!==void 0){let t=e.children.constantDeclaration[0];return!!(t.children.constantModifier!==void 0&&nT(t.children.constantModifier)&&Af(t.children.constantModifier))}else if(e.children.interfaceMethodDeclaration!==void 0){let t=e.children.interfaceMethodDeclaration[0];return!!(t.children.interfaceMethodModifier!==void 0&&Af(t.children.interfaceMethodModifier))}return!0}function gj(e){return!!(e.children.classMemberDeclaration&&e.children.classMemberDeclaration[0].children.Semicolon!==void 0)}function Cj(e){return e.children.Semicolon!==void 0}function nT(e){return e.some(t=>t.children.annotation!==void 0)}function Af(e){let t=(0,YA.default)(e,n=>n.children.annotation!==void 0),r=(0,HA.default)(e,n=>n.children.annotation===void 0);return t<r||r===-1}function vf(e){return rT(e,Dj,gj)}function iT(e){return rT(e,Ej,Cj)}function yj(e){if(!(typeof e!="string"&&"leadingComments"in e))return[];let r=mf(e);return delete e.leadingComments,r}function ie(e,t,r,n){let i=yj(n),o=i.length!==0&&i[i.length-1]===Pn?i.pop():t,a;if(qa(e)){if(i.length===0)return G([Wa(H(r)),...r.trailingComments?[mj,dj]:[],n]);a=[t,...i]}else i.length!==0?a=[t,e,t,...i]:a=[t,e];return G(P([r,Wa(k(a)),o,n]))}function Lf(e,t,r=!1){let n,i,o=[];for(;t.length;){let a=Sj(t),c=Tf(a);if(i===void 0||c===i){let f=["<<",">>",">>>"].includes(a)?a.length:1,E=k(t.splice(0,f));n!==void 0&&Sf(n,a)?(o.push(e.shift()),o=[k(["(",G(Wa(ee(Va,o))),") ",E])]):o.push(ee(" ",[e.shift(),E])),n=a,i=c}else if(c<i)if(o.push(e.shift()),r){let f=G(Wa(ee(Va,o)));e.unshift(n!==void 0&&Sf(n,a)?k(["(",f,")"]):f),o=[],n=void 0,i=void 0}else return G(ee(Va,o));else{let f=Lf(e,t);e.unshift(n!==void 0&&Sf(a,n)?k(["(",Wa(f),")"]):f)}}return o.push(e.shift()),G(ee(Va,o))}function Rf(e){return[e.AssignmentOperator,e.BinaryOperator,e.Greater,e.Instanceof,e.Less].filter(t=>t!==void 0)}function Sj(e){if(!e.length)return"";let[{image:t,startOffset:r}]=e;if(!["<",">"].includes(t))return t;let n=1;for(let i=1;i<Math.min(3,e.length);i++){let o=e[i];if(o.image!==t||o.startOffset!==r+i)break;n++}return n===1?t:t==="<"?"<<":n==2?">>":">>>"}var Aj=new Map([["||"],["&&"],["|"],["^"],["&"],["==","!="],["<",">","<=",">=","instanceof"],["<<",">>",">>>"],["+","-"],["*","/","%"]].flatMap((e,t)=>e.map(r=>[r,t])));function Tf(e){var t;return(t=Aj.get(e))!==null&&t!==void 0?t:-1}function Sf(e,t){return e==="&&"&&t==="||"||["|","^","&","<<",">>",">>>"].includes(t)&&Tf(e)>Tf(t)||[e,t].every(r=>["==","!="].includes(r))||[e,t].every(r=>["<<",">>",">>>"].includes(r))||e==="*"&&t==="/"||e==="/"&&t==="*"||e==="%"&&["+","-","*","/"].includes(t)||["*","/"].includes(e)&&t==="%"}function er(e){return e===";"||Array.isArray(e)&&e[0]===";"}function Of(e){let t=[],r=[];if(e!==void 0){for(let i=0;i<e.length;i++)e[i].children.Static!==void 0?t.push(e[i]):e[i].children.emptyStatement===void 0&&r.push(e[i]);let n=(i,o)=>Tj(i.children.packageOrTypeName[0],o.children.packageOrTypeName[0]);t.sort(n),r.sort(n)}return{staticImports:t,nonStaticImports:r}}function Tj(e,t){let r=e.children.Identifier,n=t.children.Identifier,i=Math.min(r.length,n.length);for(let o=0;o<i;o++){if(r[o].image<n[o].image)return-1;if(r[o].image>n[o].image)return 1}return r.length<n.length?-1:r.length>n.length?1:0}function oT(e){if(e===void 0)return 0;let t=0;return e.forEach(r=>{if(r.children.methodInvocationSuffix!==void 0&&(t++,t>1))return 2}),t}function Vu({list:e,extraComma:t,LCurly:r,RCurly:n,trailingComma:i}){let o;return i!=="none"&&e!==""?o=t?yf(t[0],Object.assign(Object.assign({},t[0]),{image:""})):yf(",",""):o=t?Object.assign(Object.assign({},t[0]),{image:""}):"",ie(P([e,o]),Va,r,n)}var{line:Fj}=ue,Wu=class extends Ne{arrayInitializer(t){let r=this.visit(t.variableInitializerList);return Vu({list:r,extraComma:t.Comma,LCurly:t.LCurly[0],RCurly:t.RCurly[0],trailingComma:this.prettierOptions.trailingComma})}variableInitializerList(t){let r=this.mapVisit(t.variableInitializer),n=t.Comma?t.Comma.map(i=>P([i,Fj])):[];return X(n,r)}};s();l();u();var{line:bo,softline:en,hardline:gi}=ue,Ku=class extends Ne{block(t){let r=this.visit(t.blockStatements);return ie(r,gi,t.LCurly[0],t.RCurly[0])}blockStatements(t){let r=this.mapVisit(t.blockStatement),n=ZA($r(t.blockStatement),r);return X(n,r)}blockStatement(t){return this.visitSingle(t)}localVariableDeclarationStatement(t){let r=this.visit(t.localVariableDeclaration);return P([r,t.Semicolon[0]])}localVariableDeclaration(t){let r=xt(t.variableModifier),n=this.mapVisit(r[0]),i=this.mapVisit(r[1]),o=this.visit(t.localVariableType),a=this.visit(t.variableDeclaratorList);return I(gi,[I(gi,n),I(" ",[I(" ",i),o,a])])}localVariableType(t){return t.unannType?this.visitSingle(t):H(this.getSingle(t))}statement(t,r){if(t.labeledStatement!==void 0){let n=Object.assign({},t.labeledStatement[0]),i=Object.assign({},t.labeledStatement[0].children.Colon[0]),o=Object.assign({},t.labeledStatement[0].children.statement[0]),a=[];return i.trailingComments!==void 0&&(a.push(...i.trailingComments),delete i.trailingComments),o.leadingComments!==void 0&&(a.push(...o.leadingComments),delete o.leadingComments),a.length!==0&&(n.leadingComments=a),n.children.Colon[0]=i,n.children.statement[0]=o,this.visit([n])}return this.visitSingle(t,r)}statementWithoutTrailingSubstatement(t,r){return this.visitSingle(t,r)}emptyStatement(t,r){return kn(t.Semicolon[0],r)}labeledStatement(t){let r=t.Identifier[0],n=this.visit(t.statement);return k([r,t.Colon[0]," ",n])}expressionStatement(t){let r=this.visit(t.statementExpression);return P([r,t.Semicolon[0]])}statementExpression(t){return this.visitSingle(t)}ifStatement(t){var r;let n=this.visit(t.expression),i=this.visit(t.statement[0],{allowEmptyStatement:!0}),o=er(i)?"":" ",a="";if(t.Else!==void 0){let c=this.visit(t.statement[1],{allowEmptyStatement:!0}),f=er(c)?"":" ",E=WA(t.statement[0])||qu(t.Else[0])||!(!((r=t.statement[0].children.statementWithoutTrailingSubstatement)===null||r===void 0)&&r[0].children.block)?gi:" ";a=I(f,[k([E,t.Else[0]]),c])}return P([I(" ",[t.If[0],k([ie(n,en,t.LBrace[0],t.RBrace[0]),o])]),i,a])}assertStatement(t){let r=this.mapVisit(t.expression),n=t.Colon?t.Colon[0]:":";return P([k([t.Assert[0]," "]),I(k([" ",n," "]),r),t.Semicolon[0]])}switchStatement(t){let r=this.visit(t.expression),n=this.visit(t.switchBlock);return I(" ",[t.Switch[0],ie(r,en,t.LBrace[0],t.RBrace[0]),n])}switchBlock(t){let r=t.switchBlockStatementGroup!==void 0?this.mapVisit(t.switchBlockStatementGroup):this.mapVisit(t.switchRule);return ie(I(gi,r),gi,t.LCurly[0],t.RCurly[0])}switchBlockStatementGroup(t){var r,n,i;let o=this.visit(t.switchLabel),a=this.visit(t.blockStatements),c=(r=t.blockStatements)===null||r===void 0?void 0:r[0].children.blockStatement,f=c?.length===1&&((i=(n=c[0].children.statement)===null||n===void 0?void 0:n[0].children.statementWithoutTrailingSubstatement)===null||i===void 0?void 0:i[0].children.block)!==void 0;return k([o,t.Colon[0],f?k([" ",a]):a&&Z([gi,a])])}switchLabel(t){var r,n,i;let o=(r=t.Case)===null||r===void 0?void 0:r[0],a=(n=t.Comma)===null||n===void 0?void 0:n.map(c=>k([c,bo]));if(t.caseConstant||t.Null){let c=t.Null?[t.Null[0],(i=t.Default)===null||i===void 0?void 0:i[0]]:this.mapVisit(t.caseConstant);return G(Z(ee(" ",[o,X(a,c)])))}else if(t.casePattern){let c=this.mapVisit(t.casePattern),f=this.visit(t.guard),E=t.casePattern.length>1,g=E?bo:" ",A=ee(g,[o,X(a,c)]);return G(I(g,[E?Z(A):A,f]))}return H(t.Default[0])}switchRule(t){let r=this.visit(t.switchLabel),n;return t.throwStatement!==void 0?n=this.visit(t.throwStatement):t.block!==void 0?n=this.visit(t.block):n=k([this.visit(t.expression),t.Semicolon[0]]),k([r," ",t.Arrow[0]," ",n])}caseConstant(t){return this.visitSingle(t)}casePattern(t){return this.visitSingle(t)}whileStatement(t){let r=this.visit(t.expression),n=this.visit(t.statement[0],{allowEmptyStatement:!0}),i=er(n)?"":" ";return I(" ",[t.While[0],I(i,[ie(r,en,t.LBrace[0],t.RBrace[0]),n])])}doStatement(t){let r=this.visit(t.statement[0],{allowEmptyStatement:!0}),n=er(r)?"":" ",i=this.visit(t.expression);return I(" ",[I(n,[t.Do[0],r]),t.While[0],P([ie(i,en,t.LBrace[0],t.RBrace[0]),t.Semicolon[0]])])}forStatement(t){return this.visitSingle(t)}basicForStatement(t){let r=this.visit(t.forInit),n=this.visit(t.expression),i=this.visit(t.forUpdate),o=this.visit(t.statement[0],{allowEmptyStatement:!0}),a=er(o)?"":" ";return P([I(" ",[t.For[0],ie(P([r,I(bo,[t.Semicolon[0],n]),I(bo,[t.Semicolon[1],i])]),en,t.LBrace[0],t.RBrace[0])]),a,o])}forInit(t){return this.visitSingle(t)}forUpdate(t){return this.visitSingle(t)}statementExpressionList(t){let r=this.mapVisit(t.statementExpression),n=t.Comma?t.Comma.map(i=>k([H(i)," "])):[];return X(n,r)}enhancedForStatement(t){let r=this.visit(t.localVariableDeclaration),n=this.visit(t.expression),i=this.visit(t.statement[0],{allowEmptyStatement:!0}),o=er(i)?"":" ";return P([I(" ",[t.For[0],t.LBrace[0]]),r,k([" ",t.Colon[0]," "]),n,k([t.RBrace[0],o]),i])}breakStatement(t){if(t.Identifier){let r=t.Identifier[0];return P([k([t.Break[0]," "]),r,t.Semicolon[0]])}return k([t.Break[0],t.Semicolon[0]])}continueStatement(t){if(t.Identifier){let r=t.Identifier[0];return P([k([t.Continue[0]," "]),r,t.Semicolon[0]])}return P([t.Continue[0],t.Semicolon[0]])}returnStatement(t){if(t.expression){let r=this.visit(t.expression,{addParenthesisToWrapStatement:!0});return P([k([t.Return[0]," "]),r,t.Semicolon[0]])}return P([t.Return[0],t.Semicolon[0]])}throwStatement(t){let r=this.visit(t.expression);return P([k([t.Throw[0]," "]),r,t.Semicolon[0]])}synchronizedStatement(t){let r=this.visit(t.expression),n=this.visit(t.block);return P([ee(" ",[t.Synchronized[0],k([ie(r,en,t.LBrace[0],t.RBrace[0])," "])]),n])}tryStatement(t){if(t.tryWithResourcesStatement)return this.visit(t.tryWithResourcesStatement);let r=this.visit(t.block),n=this.visit(t.catches),i=this.visit(t.finally);return I(" ",[t.Try[0],r,n,i])}catches(t){let r=this.mapVisit(t.catchClause);return I(" ",r)}catchClause(t){let r=this.visit(t.catchFormalParameter),n=this.visit(t.block);return P([G(P([I(" ",[t.Catch[0],t.LBrace[0]]),Z(P([en,r])),en,k([t.RBrace[0]," "])])),n])}catchFormalParameter(t){let r=this.mapVisit(t.variableModifier),n=this.visit(t.catchType),i=this.visit(t.variableDeclaratorId);return I(" ",[I(" ",r),n,i])}catchType(t){let r=this.visit(t.unannClassType),n=this.mapVisit(t.classType),i=t.Or?t.Or.map(o=>k([bo,o," "])):[];return G(X(i,[r,...n]))}finally(t){let r=this.visit(t.block);return I(" ",[t.Finally[0],r])}tryWithResourcesStatement(t){let r=this.visit(t.resourceSpecification),n=this.visit(t.block),i=this.visit(t.catches),o=this.visit(t.finally);return I(" ",[t.Try[0],r,n,i,o])}resourceSpecification(t){let r=this.visit(t.resourceList),n=t.Semicolon?t.Semicolon[0]:"";return ie(P([r,n]),en,t.LBrace[0],t.RBrace[0])}resourceList(t){let r=this.mapVisit(t.resource),n=t.Semicolon?t.Semicolon.map(i=>k([i,bo])):[""];return X(n,r)}resource(t){return this.visitSingle(t)}yieldStatement(t){let r=this.visit(t.expression);return ee(" ",[t.Yield[0],k([r,t.Semicolon[0]])])}variableAccess(t){return this.visitSingle(t)}};s();l();u();var aT=rr(ja(),1);var{line:Ae,softline:Ka,hardline:_e,lineSuffixBoundary:zu}=ue,Yu=class extends Ne{classDeclaration(t){let r=xt(t.classModifier),n=this.mapVisit(r[0]),i=this.mapVisit(r[1]),o;t.normalClassDeclaration!==void 0?o=t.normalClassDeclaration:t.enumDeclaration!==void 0?o=t.enumDeclaration:o=t.recordDeclaration;let a=this.visit(o);return I(_e,[I(_e,n),I(" ",[ee(" ",i),a])])}normalClassDeclaration(t){let r=this.visit(t.typeIdentifier),n=this.visit(t.typeParameters),i=this.visit(t.classExtends),o=this.visit(t.classImplements),a=this.visit(t.classPermits),c=this.visit(t.classBody,{isNormalClassDeclaration:!0}),f="";i&&(f=Z(P([Ae,i])));let E="";o&&(E=Z(P([Ae,o])));let g="";return a&&(g=Z(P([Ae,a]))),I(" ",[G(P([I(" ",[t.Class[0],r]),n,f,E,g])),c])}classModifier(t){return t.annotation?this.visit(t.annotation):H(this.getSingle(t))}typeParameters(t){let r=this.visit(t.typeParameterList);return ie(r,Ka,t.Less[0],t.Greater[0])}typeParameterList(t){let r=this.mapVisit(t.typeParameter),n=t.Comma?t.Comma.map(i=>k([i,Ae])):[];return G(X(n,r))}classExtends(t){return ee(" ",[t.Extends[0],this.visit(t.classType)])}classImplements(t){let r=this.visit(t.interfaceTypeList);return G(P([t.Implements[0],Z(P([Ae,r]))]))}classPermits(t){let r=this.mapVisit(t.typeName),n=t.Comma?t.Comma.map(i=>k([i,Ae])):[];return G(P([t.Permits[0],Z(P([Ae,G(X(n,r))]))]))}interfaceTypeList(t){let r=this.mapVisit(t.interfaceType),n=t.Comma?t.Comma.map(i=>k([i,Ae])):[];return G(X(n,r))}classBody(t,r){let n="";if(t.classBodyDeclaration!==void 0){let i=No(this.mapVisit(t.classBodyDeclaration)),o=vf(t.classBodyDeclaration);n=X(o,i);let a=!1;t.classBodyDeclaration.forEach(c=>{(c.children.classMemberDeclaration&&!c.children.classMemberDeclaration[0].children.Semicolon||c.children.constructorDeclaration)&&(a=!0)}),(t.classBodyDeclaration[0].children.classMemberDeclaration||t.classBodyDeclaration[0].children.constructorDeclaration)&&a&&r&&r.isNormalClassDeclaration&&(n=P([_e,n]))}return ie(n,_e,t.LCurly[0],t.RCurly[0])}classBodyDeclaration(t){return this.visitSingle(t)}classMemberDeclaration(t){return t.Semicolon?kn(t.Semicolon[0]):this.visitSingle(t)}fieldDeclaration(t){let r=xt(t.fieldModifier),n=this.mapVisit(r[0]),i=this.mapVisit(r[1]),o=this.visit(t.unannType),a=this.visit(t.variableDeclaratorList);return I(_e,[I(_e,n),I(" ",[I(" ",i),o,k([a,t.Semicolon[0]])])])}fieldModifier(t){return t.annotation?this.visit(t.annotation):H(this.getSingle(t))}variableDeclaratorList(t){let r=this.mapVisit(t.variableDeclarator),n=t.Comma?t.Comma.map(i=>k([i," "])):[];return X(n,r)}variableDeclarator(t){let r=this.visit(t.variableDeclaratorId);if(t.Equals){let n=this.visit(t.variableInitializer);if(qu(t.variableInitializer[0]))return G(Z(I(_e,[I(" ",[r,t.Equals[0]]),n])));if(t.variableInitializer[0].children.arrayInitializer!==void 0||t.variableInitializer[0].children.expression[0].children.lambdaExpression!==void 0||t.variableInitializer[0].children.expression[0].children.conditionalExpression!==void 0&&t.variableInitializer[0].children.expression[0].children.conditionalExpression[0].children.QuestionMark!==void 0){let i=Symbol("assignment");return G([G(r)," ",t.Equals[0],G(Z(Ae),{id:i}),zu,Ei(n,{groupId:i})])}if(t.variableInitializer[0].children.expression[0].children.conditionalExpression!==void 0){let i=t.variableInitializer[0].children.expression[0].children.conditionalExpression[0].children.binaryExpression[0].children.unaryExpression,o=i[0].children.primary[0];if(o.children.primaryPrefix[0].children.castExpression!==void 0&&i.length===1){let E=Symbol("assignment");return G([G(r)," ",t.Equals[0],G(Z(Ae),{id:E}),zu,Ei(n,{groupId:E})])}if(o.children.primaryPrefix[0].children.newExpression!==void 0){let E=Symbol("assignment");return G([G(r)," ",t.Equals[0],G(Z(Ae),{id:E}),zu,Ei(n,{groupId:E})])}let a=o.children.primarySuffix!==void 0&&o.children.primarySuffix[0].children.methodInvocationSuffix!==void 0,c=t.variableInitializer[0].children.expression[0].children.conditionalExpression[0].children.binaryExpression[0].children.unaryExpression.length===1;if(a&&c){let E=Symbol("assignment");return G([G(r)," ",t.Equals[0],G(Z(Ae),{id:E}),zu,Ei(n,{groupId:E})])}}return G(Z(I(Ae,[I(" ",[r,t.Equals[0]]),n])))}return r}variableDeclaratorId(t){if(t.Underscore)return H(t.Underscore[0]);let r=t.Identifier[0],n=this.visit(t.dims);return P([r,n])}variableInitializer(t){return this.visitSingle(t)}unannType(t){return this.visitSingle(t)}unannPrimitiveTypeWithOptionalDimsSuffix(t){let r=this.visit(t.unannPrimitiveType),n=this.visit(t.dims);return P([r,n])}unannPrimitiveType(t){return t.numericType?this.visitSingle(t):H(this.getSingle(t))}unannReferenceType(t){let r=this.visit(t.unannClassOrInterfaceType),n=this.visit(t.dims);return P([r,n])}unannClassOrInterfaceType(t){return this.visit(t.unannClassType)}unannClassType(t){let r=Gu(t.annotation,t.typeArguments,t.Identifier),n=[],i=[];return(0,aT.default)(r,(o,a)=>{Ao(o)?(i.push(this.visit([o])),n.push(P(i)),i=[]):To(o)?(i.push(this.visit([o])),i.push(" ")):(i.push(o),(a+1<r.length&&!Ao(r[a+1])||a+1===r.length)&&(n.push(P(i)),i=[]))}),X(t.Dot,n)}unannInterfaceType(t){return this.visit(t.unannClassType)}unannTypeVariable(t){return H(this.getSingle(t))}methodDeclaration(t){let r=xt(t.methodModifier),n=this.mapVisit(r[0]),i=this.mapVisit(r[1]),o=this.visit(t.methodHeader),a=this.visit(t.methodBody),c=er(a)?"":" ";return I(_e,[I(_e,n),I(" ",[I(" ",i),I(c,[o,a])])])}methodModifier(t){return t.annotation?this.visit(t.annotation):H(this.getSingle(t))}methodHeader(t){let r=this.visit(t.typeParameters),n=this.mapVisit(t.annotation),i=this.visit(t.result),o=this.visit(t.methodDeclarator),a=this.visit(t.throws);return G(k([I(" ",[r,I(Ae,n),i,o,a])]))}result(t){return t.unannType?this.visit(t.unannType):H(this.getSingle(t))}methodDeclarator(t){var r,n,i,o;let a=[...(r=t.receiverParameter)!==null&&r!==void 0?r:[],...(i=(n=t.formalParameterList)===null||n===void 0?void 0:n[0].children.formalParameter)!==null&&i!==void 0?i:[]];$t(t.LBrace[0],a,t.RBrace[0]);let c=H(t.Identifier[0]),f=this.visit(t.receiverParameter),E=this.visit(t.formalParameterList),g=this.visit(t.dims);return P([c,ie(I(Ae,[P([f,(o=t.Comma)===null||o===void 0?void 0:o[0]]),E]),Ka,t.LBrace[0],t.RBrace[0]),g])}receiverParameter(t){var r,n;let i=this.mapVisit(t.annotation),o=this.visit(t.unannType);return I(" ",[...i,o,P([(r=t.Identifier)===null||r===void 0?void 0:r[0],(n=t.Dot)===null||n===void 0?void 0:n[0],t.This[0]])])}formalParameterList(t){let r=this.mapVisit(t.formalParameter),n=t.Comma?t.Comma.map(i=>k([i,Ae])):[];return X(n,r)}formalParameter(t){return this.visitSingle(t)}variableParaRegularParameter(t){let r=this.mapVisit(t.variableModifier),n=this.visit(t.unannType),i=this.visit(t.variableDeclaratorId);return I(" ",[I(" ",r),n,i])}variableArityParameter(t){let r=this.mapVisit(t.variableModifier),n=this.visit(t.unannType),i=this.mapVisit(t.annotation),o=t.Identifier[0],a=t.annotation===void 0?k([n,t.DotDotDot[0]]):n,c=t.annotation===void 0?i:k([I(" ",i),t.DotDotDot[0]]);return I(" ",[ee(" ",r),a,c,o])}variableModifier(t){return t.annotation?this.visit(t.annotation):H(this.getSingle(t))}throws(t){let r=this.visit(t.exceptionTypeList),n=ee(" ",[t.Throws[0],r]);return G(Z(P([Ka,n])))}exceptionTypeList(t){let r=this.mapVisit(t.exceptionType),n=t.Comma?t.Comma.map(i=>k([i," "])):[];return X(n,r)}exceptionType(t){return this.visitSingle(t)}methodBody(t){return t.block?this.visit(t.block):H(this.getSingle(t))}instanceInitializer(t){return this.visitSingle(t)}staticInitializer(t){let r=this.visit(t.block);return ee(" ",[t.Static[0],r])}constructorDeclaration(t){let r=xt(t.constructorModifier),n=this.mapVisit(r[0]),i=this.mapVisit(r[1]),o=this.visit(t.constructorDeclarator),a=this.visit(t.throws),c=this.visit(t.constructorBody);return I(" ",[G(I(_e,[I(_e,n),I(" ",[ee(" ",i),o,a])])),c])}constructorModifier(t){return t.annotation?this.visit(t.annotation):H(this.getSingle(t))}constructorDeclarator(t){var r,n,i,o;let a=(i=(r=t.receiverParameter)!==null&&r!==void 0?r:(n=t.formalParameterList)===null||n===void 0?void 0:n[0].children.formalParameter)!==null&&i!==void 0?i:[];$t(t.LBrace[0],a,t.RBrace[0]);let c=this.visit(t.typeParameters),f=this.visit(t.simpleTypeName),E=this.visit(t.receiverParameter),g=this.visit(t.formalParameterList);return I(" ",[c,k([f,ie(I(Ae,[P([E,(o=t.Comma)===null||o===void 0?void 0:o[0]]),g]),Ka,t.LBrace[0],t.RBrace[0])])])}simpleTypeName(t){return this.visitSingle(t)}constructorBody(t){let r=this.visit(t.explicitConstructorInvocation),n=this.visit(t.blockStatements);return ie(I(_e,[r,n]),_e,t.LCurly[0],t.RCurly[0])}explicitConstructorInvocation(t){return this.visitSingle(t)}unqualifiedExplicitConstructorInvocation(t){let r=this.visit(t.typeArguments),n=t.This?t.This[0]:t.Super[0],i=Qr.call(this,t.argumentList,t.RBrace[0],t.LBrace[0]);return P([r,n,G(P([i,t.Semicolon[0]]))])}qualifiedExplicitConstructorInvocation(t){let r=this.visit(t.expressionName),n=this.visit(t.typeArguments),i=Qr.call(this,t.argumentList,t.RBrace[0],t.LBrace[0]);return P([r,t.Dot[0],n,t.Super[0],G(P([i,t.Semicolon[0]]))])}enumDeclaration(t){let r=this.mapVisit(t.classModifier),n=this.visit(t.typeIdentifier),i=this.visit(t.classImplements),o=this.visit(t.enumBody);return I(" ",[ee(" ",r),t.Enum[0],n,i,o])}enumBody(t){let r=this.visit(t.enumConstantList),n=this.visit(t.enumBodyDeclarations),i=t.enumConstantList!==void 0,o=t.enumBodyDeclarations===void 0||t.enumBodyDeclarations[0].children.classBodyDeclaration===void 0,a=!o&&Zr(t.enumBodyDeclarations[0])?_e:"",c;return i&&o&&this.prettierOptions.trailingComma!=="none"?c=t.Comma?t.Comma[0]:",":c=t.Comma?Object.assign(Object.assign({},t.Comma[0]),{image:""}):"",ie(P([r,c,a,n]),_e,t.LCurly[0],t.RCurly[0])}enumConstantList(t){let r=this.mapVisit(t.enumConstant),n=$r(t.enumConstant),i=t.Comma?t.Comma.map((o,a)=>k([o,n[a]])):[];return G(X(i,r))}enumConstant(t){let r=xt(t.enumConstantModifier),n=this.mapVisit(r[0]),i=this.mapVisit(r[1]),o=t.Identifier[0],a=this.visit(t.classBody),c=t.LBrace?Qr.call(this,t.argumentList,t.RBrace[0],t.LBrace[0]):"";return I(_e,[I(_e,n),I(" ",[I(" ",i),P([o,c]),a])])}enumConstantModifier(t){return this.visitSingle(t)}enumBodyDeclarations(t){if(t.classBodyDeclaration!==void 0){let r=this.mapVisit(t.classBodyDeclaration),n=vf(t.classBodyDeclaration);return I(k([_e,_e]),[t.Semicolon[0],X(n,r)])}return H(Object.assign(Object.assign({},t.Semicolon[0]),{image:""}))}recordDeclaration(t){let r=this.visit(t.typeIdentifier),n=this.visit(t.typeParameters),i=this.visit(t.recordHeader),o="",a=this.visit(t.classImplements);a&&(o=Z(P([Ae,a])));let c=this.visit(t.recordBody);return I(" ",[G(P([I(" ",[t.Record[0],r]),n,i,o])),c])}recordHeader(t){var r,n;let i=(n=(r=t.recordComponentList)===null||r===void 0?void 0:r[0].children.recordComponent)!==null&&n!==void 0?n:[];$t(t.LBrace[0],i,t.RBrace[0]);let o=this.visit(t.recordComponentList);return ie(o,Ka,t.LBrace[0],t.RBrace[0])}recordComponentList(t){let r=this.mapVisit(t.recordComponent),n=$r(t.recordComponent,Ae),i=t.Comma?t.Comma.map((o,a)=>k([o,n[a]])):[];return X(i,r)}recordComponent(t){let r=this.mapVisit(t.recordComponentModifier),n=this.visit(t.unannType);if(t.Identifier!==void 0)return G(I(Ae,[ee(Ae,r),ee(" ",[n,t.Identifier[0]])]));let i=this.visit(t.variableArityRecordComponent);return t.variableArityRecordComponent[0].children.annotation!==void 0?G(I(Ae,[ee(Ae,r),ee(" ",[n,i])])):G(I(Ae,[ee(Ae,r),k([n,i])]))}variableArityRecordComponent(t){let r=this.mapVisit(t.annotation),n=t.Identifier[0];return I(" ",[P([I(" ",r),t.DotDotDot[0]]),n])}recordComponentModifier(t){return this.visitSingle(t)}recordBody(t){return ie(X($r(t.recordBodyDeclaration),this.mapVisit(t.recordBodyDeclaration)),_e,t.LCurly[0],t.RCurly[0])}recordBodyDeclaration(t){return this.visitSingle(t)}compactConstructorDeclaration(t){let r=xt(t.constructorModifier),n=this.mapVisit(r[0]),i=this.mapVisit(r[1]),o=this.visit(t.simpleTypeName),a=this.visit(t.constructorBody);return I(" ",[G(I(_e,[I(_e,n),I(" ",[ee(" ",i),o])])),a])}isDims(){return"isDims"}isFollowingVariableDeclarator(){return"isFollowingVariableDeclarator"}};s();l();u();var fT=rr(ja(),1);var{breakParent:vj,conditionalGroup:sT,ifBreak:uT,label:lT,line:Tt,lineSuffixBoundary:cT,softline:ut}=ue,{removeLines:Lj,willBreak:Uf}=_c,Hu=class extends Ne{expression(t,r){let n=this.visitSingle(t,r);return r?.hug&&n.label!==void 0?lT(n.label,n):n}lambdaExpression(t,r){let n=G(this.visit(t.lambdaParameters)),i=this.visit(t.lambdaBody),o=t.lambdaBody[0].children.block!==void 0,a=[" ",t.Arrow[0],...o?[" ",i]:[G(Z([Tt,i]))]];return r?.hug?Uf(n)?lT({huggable:!1},k([n,...a])):k([Lj(n),...a]):k([n,...a])}lambdaParameters(t){return t.lambdaParametersWithBraces?this.visitSingle(t):H(this.getSingle(t))}lambdaParametersWithBraces(t){var r,n,i,o,a,c;let f=(c=(i=(n=(r=t.lambdaParameterList)===null||r===void 0?void 0:r[0].children.normalLambdaParameterList)===null||n===void 0?void 0:n[0].children.normalLambdaParameter)!==null&&i!==void 0?i:(a=(o=t.lambdaParameterList)===null||o===void 0?void 0:o[0].children.conciseLambdaParameterList)===null||a===void 0?void 0:a[0].children.conciseLambdaParameter)!==null&&c!==void 0?c:[];$t(t.LBrace[0],f,t.RBrace[0]);let E=this.visit(t.lambdaParameterList);return ju(E,",")?k([t.LBrace[0],Z([ut,E]),ut,t.RBrace[0]]):t.LBrace&&t.RBrace&&(!E||tT(t))||t.LBrace[0].leadingComments||t.LBrace[0].trailingComments||t.RBrace[0].leadingComments||t.RBrace[0].trailingComments?P([t.LBrace[0],E,t.RBrace[0]]):E}lambdaParameterList(t){return this.visitSingle(t)}conciseLambdaParameterList(t){var r;let n=this.mapVisit(t.conciseLambdaParameter),i=(r=t.Comma)===null||r===void 0?void 0:r.map(o=>k([o,Tt]));return X(i,n)}normalLambdaParameterList(t){var r;let n=this.mapVisit(t.normalLambdaParameter),i=(r=t.Comma)===null||r===void 0?void 0:r.map(o=>k([o,Tt]));return X(i,n)}normalLambdaParameter(t){return this.visitSingle(t)}regularLambdaParameter(t){let r=this.mapVisit(t.variableModifier),n=this.visit(t.lambdaParameterType),i=this.visit(t.variableDeclaratorId);return I(" ",[I(" ",r),n,i])}lambdaParameterType(t){return t.unannType?this.visitSingle(t):H(this.getSingle(t))}conciseLambdaParameter(t){return H(this.getSingle(t))}lambdaBody(t){return this.visitSingle(t)}conditionalExpression(t,r){let n=this.visit(t.binaryExpression,r);if(t.QuestionMark){let i=this.visit(t.expression[0]),o=this.visit(t.expression[1]);return Z(G(P([I(Tt,[n,I(" ",[t.QuestionMark[0],i]),I(" ",[t.Colon[0],o])])])))}return n}binaryExpression(t,r){var n,i,o,a;KA(t);let c=eT([t.pattern,t.referenceType,t.expression,t.unaryExpression]),f=$A(Rf(t)),E=f.length>0,g=c.length===1?r:void 0,A=[];for(let T=0;T<c.length;T++){let S=this.visit(c[T],g);if(!(((i=(n=f[T])===null||n===void 0?void 0:n.tokenType.CATEGORIES)===null||i===void 0?void 0:i.find(({name:J})=>J==="AssignmentOperator"))!==void 0)){A.push(S);continue}let[L]=f.splice(T,1),O=c[++T],N=this.visit(O),b=(o=O.children.conditionalExpression)===null||o===void 0?void 0:o[0].children,M=(a=b?.binaryExpression)===null||a===void 0?void 0:a[0].children;if(b?.QuestionMark===void 0&&M!==void 0&&Rf(M).length>0){A.push(k([S," ",L,G(Z([Tt,N]))]));continue}let K=Symbol("assignment");A.push(k([S," ",L,Z(G(Tt,{id:K})),Ei(N,{groupId:K})]))}let y=Lf(A,f,!0);return E&&r?.addParenthesisToWrapStatement?G(k([uT("("),Z(k([ut,y])),ut,uT(")")])):y}unaryExpression(t,r){let n=t.UnaryPrefixOperator?t.UnaryPrefixOperator:[],i=this.visit(t.primary,r),o=t.UnarySuffixOperator?t.UnarySuffixOperator:[];return P([P(n),i,P(o)])}unaryExpressionNotPlusMinus(t){let r=t.UnaryPrefixOperatorNotPlusMinus?I(" ",t.UnaryPrefixOperatorNotPlusMinus):"",n=this.visit(t.primary),i=t.UnarySuffixOperator?I(" ",t.UnarySuffixOperator):"";return I(" ",[r,n,i])}primary(t,r){var n,i,o,a;let c=oT(t.primarySuffix),f=(n=t.primaryPrefix[0].children.newExpression)===null||n===void 0?void 0:n[0].children,E=c<=1&&this.isBreakableNewExpression(f),g=(i=t.primarySuffix)===null||i===void 0?void 0:i.map(_=>{var K;return(K=_.children.methodInvocationSuffix)===null||K===void 0?void 0:K[0].children}).find(_=>_),A=(o=t.primaryPrefix[0].children.fqnOrRefType)===null||o===void 0?void 0:o[0].children,y=A?.fqnOrRefTypePartRest!==void 0,T=this.isCapitalizedIdentifier(A),S=c>1&&y&&!T,v=S||c>2||c>1&&!!f||!g?.argumentList,L=this.visit(t.primaryPrefix,Object.assign(Object.assign({},r),{shouldBreakBeforeFirstMethodInvocation:S})),O=this.getPrimarySuffixes(t,f,E,v);if(!f&&c===1)return G(P([L,O[0],Z(P(O.slice(1)))]));let N=(a=t.primarySuffix)===null||a===void 0?void 0:a[0].children.methodInvocationSuffix,b=N?.[0].children.argumentList!==void 0,M=N!==void 0&&!A?.Dot;return G(P([L,T||M?O.shift():"",!E&&(v||!b)?Z(k(O)):k(O)]))}primaryPrefix(t,r){return t.This||t.Void?H(this.getSingle(t)):this.visitSingle(t,r)}primarySuffix(t,r){var n;if(t.Dot){if(t.This)return P([t.Dot[0],t.This[0]]);if(t.Identifier){let o=this.visit(t.typeArguments);return P([t.Dot[0],o,t.Identifier[0]])}let i=this.visit((n=t.unqualifiedClassInstanceCreationExpression)!==null&&n!==void 0?n:t.templateArgument);return P([t.Dot[0],i])}return this.visitSingle(t,r)}fqnOrRefType(t,r){let n=this.visit(t.fqnOrRefTypePartFirst),i=this.mapVisit(t.fqnOrRefTypePartRest),o=this.visit(t.dims),a=t.Dot?t.Dot.map(c=>Zr(c)?k([ut,c]):c):[];return r?.shouldBreakBeforeFirstMethodInvocation===!0&&t.Dot!==void 0&&(a[a.length-1]=k([ut,t.Dot[t.Dot.length-1]])),Z(P([X(a,[n,...i]),o]))}fqnOrRefTypePartFirst(t){let r=this.mapVisit(t.annotation),n=this.visit(t.fqnOrRefTypePartCommon);return I(" ",[I(" ",r),n])}fqnOrRefTypePartRest(t){let r=this.mapVisit(t.annotation),n=this.visit(t.fqnOrRefTypePartCommon),i=this.visit(t.typeArguments);return I(" ",[I(" ",r),P([i,n])])}fqnOrRefTypePartCommon(t){let r=null;t.Identifier?r=t.Identifier[0]:r=t.Super[0];let n=this.visit(t.typeArguments);return P([r,n])}parenthesisExpression(t,r){let n=this.visit(t.expression),i=r?.addParenthesisToWrapStatement?ut:"";return ie(n,i,t.LBrace[0],t.RBrace[0])}castExpression(t){return this.visitSingle(t)}primitiveCastExpression(t){let r=this.visit(t.primitiveType),n=this.visit(t.unaryExpression);return I(" ",[P([t.LBrace[0],r,t.RBrace[0]]),n])}referenceTypeCastExpression(t){let r=this.visit(t.referenceType),n=t.additionalBound!==void 0,i=I(Tt,this.mapVisit(t.additionalBound)),o=t.lambdaExpression?this.visit(t.lambdaExpression):this.visit(t.unaryExpressionNotPlusMinus);return I(" ",[ie(I(Tt,[r,i]),n?ut:"",t.LBrace[0],t.RBrace[0]),o])}newExpression(t){return this.visitSingle(t)}unqualifiedClassInstanceCreationExpression(t){let r=this.visit(t.typeArguments),n=this.visit(t.classOrInterfaceTypeToInstantiate),i=Qr.call(this,t.argumentList,t.RBrace[0],t.LBrace[0]),o=this.visit(t.classBody);return I(" ",[t.New[0],P([r,n,i]),o])}classOrInterfaceTypeToInstantiate(t){let r=QA(t.annotation,t.Identifier),n=[],i=[];(0,fT.default)(r,c=>{To(c)?i.push(this.visit([c])):(i.push(c),n.push(I(" ",i)),i=[])});let o=this.visit(t.typeArgumentsOrDiamond),a=t.Dot?t.Dot:[];return P([X(a,n),o])}typeArgumentsOrDiamond(t){return this.visitSingle(t)}diamond(t){return k([t.Less[0],t.Greater[0]])}methodInvocationSuffix(t){return Qr.call(this,t.argumentList,t.RBrace[0],t.LBrace[0])}argumentList(t){var r,n;let i=this.mapVisit(t.expression.slice(0,-1)).map((c,f)=>k([c,t.Comma[f],Tt])),o=t.expression.at(-1),a=this.visit(o);if(this.isArgumentListHuggable(t)){let c=this.visit(o,{hug:!0});if(typeof c=="object"&&!Array.isArray(c)&&c.type==="label"&&((r=c.label)===null||r===void 0?void 0:r.huggable)===!1||i.some(Uf))return G([Z([Tt,...i,a]),Tt],{shouldBreak:!0});let E=!((n=o?.children.lambdaExpression)===null||n===void 0)&&n[0].children.lambdaBody[0].children.block?"":Tt,g=[...i,G([c,E],{shouldBreak:!0})],A=G([Z([Tt,...i,a]),Tt],{shouldBreak:!0});return Uf(c)?[vj,sT([g,A])]:sT([[...i,c],g,A])}return G([Z([ut,...i,a]),ut])}arrayCreationExpression(t){let r=t.primitiveType?this.visit(t.primitiveType):this.visit(t.classOrInterfaceType),n=t.arrayCreationExpressionWithoutInitializerSuffix?this.visit(t.arrayCreationExpressionWithoutInitializerSuffix):this.visit(t.arrayCreationWithInitializerSuffix);return P([k([t.New[0]," "]),r,n])}arrayCreationExpressionWithoutInitializerSuffix(t){let r=this.visit(t.dimExprs),n=this.visit(t.dims);return P([r,n])}arrayCreationWithInitializerSuffix(t){let r=this.visit(t.dims),n=this.visit(t.arrayInitializer);return I(" ",[r,n])}dimExprs(t){let r=this.mapVisit(t.dimExpr);return P(r)}dimExpr(t){let r=this.mapVisit(t.annotation),n=this.visit(t.expression);return I(" ",[I(" ",r),P([t.LSquare[0],n,t.RSquare[0]])])}classLiteralSuffix(t){let r=[];if(t.LSquare)for(let n=0;n<t.LSquare.length;n++)r.push(k([t.LSquare[n],t.RSquare[n]]));return P([...r,t.Dot[0],t.Class[0]])}arrayAccessSuffix(t){let r=this.visit(t.expression);return P([t.LSquare[0],r,t.RSquare[0]])}methodReferenceSuffix(t){let r=this.visit(t.typeArguments),n=t.New?t.New[0]:t.Identifier[0];return P([t.ColonColon[0],r,n])}templateArgument(t){var r;return t.template?this.visit(t.template):H(((r=t.StringLiteral)!==null&&r!==void 0?r:t.TextBlock)[0])}template(t){return this.visitSingle(t)}stringTemplate(t){let r=this.mapVisit(t.embeddedExpression).flatMap(n=>G([ut,n,cT,Cf(ut)]));return k([t.StringTemplateBegin[0],X(t.StringTemplateMid,r),t.StringTemplateEnd[0]])}textBlockTemplate(t){let r=this.mapVisit(t.embeddedExpression).flatMap(n=>G([ut,n,cT,Cf(ut)]));return k([t.TextBlockTemplateBegin[0],X(t.TextBlockTemplateMid,r),t.TextBlockTemplateEnd[0]])}embeddedExpression(t){return this.visit(t.expression)}pattern(t){return this.visitSingle(t)}typePattern(t){return this.visitSingle(t)}recordPattern(t){var r,n;let i=(n=(r=t.componentPatternList)===null||r===void 0?void 0:r[0].children.componentPattern)!==null&&n!==void 0?n:[];$t(t.LBrace[0],i,t.RBrace[0]);let o=this.visit(t.referenceType),a=this.visit(t.componentPatternList);return k([o,ie(a,ut,t.LBrace[0],t.RBrace[0])])}componentPatternList(t){var r,n;let i=this.mapVisit(t.componentPattern),o=(n=(r=t.Comma)===null||r===void 0?void 0:r.map(a=>k([a,Tt])))!==null&&n!==void 0?n:[];return X(o,i)}componentPattern(t){return this.visitSingle(t)}matchAllPattern(t){return H(t.Underscore[0])}guard(t){let r=this.visit(t.expression,{addParenthesisToWrapStatement:!0});return k([t.When[0]," ",r])}isRefTypeInMethodRef(){return"isRefTypeInMethodRef"}isArgumentListHuggable(t){var r,n,i;let o=t.expression,a=o.at(-1),c=(n=(r=a?.children.lambdaExpression)===null||r===void 0?void 0:r[0].children.lambdaBody[0].children.expression)===null||n===void 0?void 0:n[0].children,f=(i=c?.conditionalExpression)===null||i===void 0?void 0:i[0].children;return!a?.leadingComments&&!a?.trailingComments&&(!c||f?.QuestionMark!==void 0||f?.binaryExpression[0].children.unaryExpression.length===1)&&o.findIndex(({children:E})=>E.lambdaExpression)===o.length-1}isBreakableNewExpression(t){var r,n,i,o,a;let c=(r=t?.arrayCreationExpression)===null||r===void 0?void 0:r[0].children,f=(n=t?.unqualifiedClassInstanceCreationExpression)===null||n===void 0?void 0:n[0].children;return[(i=c?.classOrInterfaceType)===null||i===void 0?void 0:i[0].children.classType[0].children.typeArguments,(o=c?.arrayCreationWithInitializerSuffix)===null||o===void 0?void 0:o[0].children.arrayInitializer[0].children.variableInitializerList,(a=f?.classOrInterfaceTypeToInstantiate[0].children.typeArgumentsOrDiamond)===null||a===void 0?void 0:a[0].children.typeArguments,f?.argumentList].some(E=>E!==void 0)}isCapitalizedIdentifier(t){var r,n,i;let o=[t?.fqnOrRefTypePartFirst[0],...(r=t?.fqnOrRefTypePartRest)!==null&&r!==void 0?r:[]],a=(i=(n=o[o.length-2])===null||n===void 0?void 0:n.children.fqnOrRefTypePartCommon[0].children.Identifier)===null||i===void 0?void 0:i[0].image;return!!a&&/^\p{Uppercase_Letter}/u.test(a)}getPrimarySuffixes(t,r,n,i){if(t.primarySuffix===void 0)return[];let o=[];r&&!n&&t.primarySuffix[0].children.Dot!==void 0&&o.push(ut),o.push(this.visit(t.primarySuffix[0]));for(let a=1;a<t.primarySuffix.length;a++)i&&t.primarySuffix[a].children.Dot!==void 0&&t.primarySuffix[a-1].children.methodInvocationSuffix!==void 0&&o.push(ut),o.push(this.visit(t.primarySuffix[a]));return o}};s();l();u();var{line:Ci,softline:Xu,hardline:tn}=ue,Ju=class extends Ne{interfaceDeclaration(t){let r=xt(t.interfaceModifier),n=this.mapVisit(r[0]),i=this.mapVisit(r[1]),o=t.normalInterfaceDeclaration?this.visit(t.normalInterfaceDeclaration):this.visit(t.annotationInterfaceDeclaration);return I(tn,[I(tn,n),I(" ",[I(" ",i),o])])}normalInterfaceDeclaration(t){let r=this.visit(t.typeIdentifier),n=this.visit(t.typeParameters),i=this.visit(t.interfaceExtends),o=this.visit(t.interfacePermits),a=this.visit(t.interfaceBody),c="";i&&(c=Z(P([Xu,i])));let f="";return o&&(f=Z(P([Xu,o]))),I(" ",[G(I(" ",[t.Interface[0],k([r,n]),c,f])),a])}interfaceModifier(t){return t.annotation?this.visitSingle(t):H(this.getSingle(t))}interfaceExtends(t){let r=this.visit(t.interfaceTypeList);return G(P([t.Extends[0],Z(P([Ci,r]))]))}interfacePermits(t){return this.classPermits(t)}interfaceBody(t){let r="";if(t.interfaceMemberDeclaration!==void 0){let n=this.mapVisit(t.interfaceMemberDeclaration),i=iT(t.interfaceMemberDeclaration);r=X(i,n)}return ie(r,tn,t.LCurly[0],t.RCurly[0])}interfaceMemberDeclaration(t){return t.Semicolon?kn(t.Semicolon[0]):this.visitSingle(t)}constantDeclaration(t){let r=xt(t.constantModifier),n=this.mapVisit(r[0]),i=this.mapVisit(r[1]),o=this.visit(t.unannType),a=this.visit(t.variableDeclaratorList);return I(tn,[I(tn,n),I(" ",[I(" ",i),o,P([a,t.Semicolon[0]])])])}constantModifier(t){return t.annotation?this.visitSingle(t):H(this.getSingle(t))}interfaceMethodDeclaration(t){let r=xt(t.interfaceMethodModifier),n=this.mapVisit(r[0]),i=this.mapVisit(r[1]),o=this.visit(t.methodHeader),a=this.visit(t.methodBody),c=er(a)?"":" ";return I(tn,[I(tn,n),I(" ",[I(" ",i),I(c,[o,a])])])}interfaceMethodModifier(t){return t.annotation?this.visitSingle(t):H(this.getSingle(t))}annotationInterfaceDeclaration(t){let r=this.visit(t.typeIdentifier),n=this.visit(t.annotationInterfaceBody);return I(" ",[k([t.At[0],t.Interface[0]]),r,n])}annotationInterfaceBody(t){let r=this.mapVisit(t.annotationInterfaceMemberDeclaration);return I(Ci,[Z(I(Ci,[t.LCurly[0],I(k([Ci,Ci]),r)])),t.RCurly[0]])}annotationInterfaceMemberDeclaration(t){return t.Semicolon?H(this.getSingle(t)):this.visitSingle(t)}annotationInterfaceElementDeclaration(t){let r=xt(t.annotationInterfaceElementModifier),n=this.mapVisit(r[0]),i=this.mapVisit(r[1]),o=this.visit(t.unannType),a=t.Identifier[0],c=this.visit(t.dims),f=t.defaultValue?k([" ",this.visit(t.defaultValue)]):"";return I(tn,[I(tn,n),I(" ",[I(" ",i),o,P([a,k([t.LBrace[0],t.RBrace[0]]),c,f,t.Semicolon[0]])])])}annotationInterfaceElementModifier(t){return t.annotation?this.visitSingle(t):H(this.getSingle(t))}defaultValue(t){let r=this.visit(t.elementValue);return I(" ",[t.Default[0],r])}annotation(t){var r,n,i;let o=this.visit(t.typeName),a="";if(t.LBrace){let c=(i=(n=(r=t.elementValuePairList)===null||r===void 0?void 0:r[0].children.elementValuePair)!==null&&n!==void 0?n:t.elementValue)!==null&&i!==void 0?i:[];$t(t.LBrace[0],c,t.RBrace[0]),t.elementValuePairList?a=ie(this.visit(t.elementValuePairList),Xu,t.LBrace[0],t.RBrace[0]):t.elementValue&&(a=ie(this.visit(t.elementValue),Xu,t.LBrace[0],t.RBrace[0]))}return G(P([t.At[0],o,a]))}elementValuePairList(t){let r=this.mapVisit(t.elementValuePair),n=t.Comma?t.Comma.map(i=>k([i,Ci])):[];return X(n,r)}elementValuePair(t){let r=t.Identifier[0],n=this.visit(t.elementValue);return I(" ",[r,t.Equals[0],n])}elementValue(t){return this.visitSingle(t)}elementValueArrayInitializer(t){let r=this.visit(t.elementValueList);return Vu({list:r,extraComma:t.Comma,LCurly:t.LCurly[0],RCurly:t.RCurly[0],trailingComma:this.prettierOptions.trailingComma})}elementValueList(t){let r=this.mapVisit(t.elementValue),n=t.Comma?t.Comma.map(i=>k([i,Ci])):[];return G(P([X(n,r)]))}};s();l();u();var{hardline:Rj}=ue,Zu=class extends Ne{literal(t){if(t.TextBlock){let r=t.TextBlock[0].image.split(`
|
|
159
|
+
`),n=r.shift(),i=Math.min(...r.map(o=>o.search(/\S/)).filter(o=>o>=0));return ee(Rj,[n,...r.map(o=>o.slice(i))])}return t.CharLiteral||t.StringLiteral||t.Null?H(this.getSingle(t)):this.visitSingle(t)}integerLiteral(t){return H(this.getSingle(t))}floatingPointLiteral(t){return H(this.getSingle(t))}booleanLiteral(t){return H(this.getSingle(t))}};s();l();u();var Qu=class extends Ne{typeIdentifier(t){return H(t.Identifier[0])}moduleName(t){return vr(t.Identifier,t.Dot)}packageName(t){return vr(t.Identifier,t.Dot)}typeName(t){return vr(t.Identifier,t.Dot)}expressionName(t){return vr(t.Identifier,t.Dot)}methodName(t){return H(t.Identifier[0])}packageOrTypeName(t){return vr(t.Identifier,t.Dot)}ambiguousName(t){return vr(t.Identifier,t.Dot)}};s();l();u();var Nf=rr(ja(),1);var{line:If,softline:Oj}=ue,$u=class extends Ne{primitiveType(t){let r=this.mapVisit(t.annotation),n=t.numericType?this.visit(t.numericType):this.getSingle(t);return I(" ",[ee(" ",r),n])}numericType(t){return this.visitSingle(t)}integralType(t){return H(this.getSingle(t))}floatingPointType(t){return H(this.getSingle(t))}referenceType(t){let r=this.mapVisit(t.annotation),n=t.primitiveType?this.visit(t.primitiveType):this.visit(t.classOrInterfaceType),i=this.visit(t.dims);return I(" ",[ee(" ",r),k([n,i])])}classOrInterfaceType(t){return this.visitSingle(t)}classType(t){let r=Gu(t.annotation,t.typeArguments,t.Identifier),n=[],i=[];return(0,Nf.default)(r,(o,a)=>{Ao(o)?(i.push(this.visit([o])),n.push(P(i)),i=[]):To(o)?i.push(this.visit([o])," "):(i.push(o),(a+1<r.length&&!Ao(r[a+1])||a+1===r.length)&&(n.push(P(i)),i=[]))}),X(t.Dot,n)}interfaceType(t){return this.visitSingle(t)}typeVariable(t){let r=this.mapVisit(t.annotation),n=this.getSingle(t);return I(" ",[ee(" ",r),n])}dims(t){let r=[...t.LSquare];t.annotation&&(r=[...r,...t.annotation]),r=r.sort((o,a)=>{let c=Gr(o)?o.children.At[0].startOffset:o.startOffset,f=Gr(a)?a.children.At[0].startOffset:a.startOffset;return c-f});let n=[],i=[];return(0,Nf.default)(r,o=>{Gr(o)?i.push(this.visit([o])):(n.push(P([I(" ",i),k([t.LSquare[0],t.RSquare[0]])])),i=[])}),P(n)}typeParameter(t){let r=this.mapVisit(t.typeParameterModifier),n=this.visit(t.typeIdentifier),i=this.visit(t.typeBound);return I(" ",[ee(" ",r),n,i])}typeParameterModifier(t){return this.visitSingle(t)}typeBound(t){let r=this.visit(t.classOrInterfaceType),n=this.mapVisit(t.additionalBound);return k([I(" ",[t.Extends[0],r]),Z(G(k([n.length?If:"",I(If,n)])))])}additionalBound(t){let r=this.visit(t.interfaceType);return ee(" ",[t.And[0],r])}typeArguments(t){let r=this.visit(t.typeArgumentList);return ie(r,Oj,t.Less[0],t.Greater[0])}typeArgumentList(t){let r=this.mapVisit(t.typeArgument),n=t.Comma?t.Comma.map(i=>k([i,If])):[];return X(n,r)}typeArgument(t){return this.visitSingle(t)}wildcard(t){let r=this.mapVisit(t.annotation),n=this.visit(t.wildcardBounds);return I(" ",[ee(" ",r),t.QuestionMark[0],n])}wildcardBounds(t){let r=t.Extends?t.Extends[0]:t.Super[0],n=this.visit(t.referenceType);return ee(" ",[r,n])}};s();l();u();var{line:Lr,hardline:wt,indent:xo,group:Bo}=ue,el=class extends Ne{compilationUnit(t){let r=Py(t)?t.ordinaryCompilationUnit:t.modularCompilationUnit;return k([this.visit(r[0]),Lr])}ordinaryCompilationUnit(t){let r=this.visit(t.packageDeclaration),n=Of(t.importDeclaration),i=this.mapVisit(n.nonStaticImports),o=this.mapVisit(n.staticImports),a=this.mapVisit(t.typeDeclaration);return P([I(k([wt,wt]),[r,I(wt,o),I(wt,i),I(k([wt,wt]),a)])])}modularCompilationUnit(t){let r=Of(t.importDeclaration),n=this.mapVisit(r.nonStaticImports),i=this.mapVisit(r.staticImports),o=this.visit(t.moduleDeclaration);return P([I(k([wt,wt]),[I(wt,i),I(wt,n),o])])}packageDeclaration(t){let r=this.mapVisit(t.packageModifier),n=vr(t.Identifier,t.Dot);return I(wt,[I(wt,r),k([t.Package[0]," ",n,t.Semicolon[0]])])}packageModifier(t){return this.visitSingle(t)}importDeclaration(t){if(t.emptyStatement!==void 0)return this.visit(t.emptyStatement);let r=t.Static?t.Static[0]:"",n=this.visit(t.packageOrTypeName),i=t.Dot?k([t.Dot[0],t.Star[0]]):"";return I(" ",[t.Import[0],r,P([n,i,t.Semicolon[0]])])}typeDeclaration(t){return t.Semicolon?kn(t.Semicolon[0]):this.visitSingle(t)}moduleDeclaration(t){let r=this.mapVisit(t.annotation),n=t.Open?t.Open[0]:"",i=vr(t.Identifier,t.Dot),o=this.mapVisit(t.moduleDirective),a=X($r(t.moduleDirective),o);return I(" ",[ee(" ",r),n,t.Module[0],i,ie(a,wt,t.LCurly[0],t.RCurly[0])])}moduleDirective(t){return this.visitSingle(t)}requiresModuleDirective(t){let r=this.mapVisit(t.requiresModifier),n=this.visit(t.moduleName);return I(" ",[t.Requires[0],ee(" ",r),k([n,t.Semicolon[0]])])}exportsModuleDirective(t){let r=this.visit(t.packageName),n=this.mapVisit(t.moduleName),i=t.Comma?t.Comma.map(o=>k([o,Lr])):[];return t.To?Bo(P([xo(I(Lr,[I(" ",[t.Exports[0],r]),Bo(xo(I(Lr,[t.To[0],X(i,n)])))])),t.Semicolon[0]])):P([k([t.Exports[0]," "]),r,t.Semicolon[0]])}opensModuleDirective(t){let r=this.visit(t.packageName),n=t.To?t.To[0]:"",i=this.mapVisit(t.moduleName),o=t.Comma?t.Comma.map(a=>k([a,Lr])):[];return t.To?Bo(P([xo(I(Lr,[I(" ",[t.Opens[0],r]),Bo(xo(I(Lr,[t.To[0],X(o,i)])))])),t.Semicolon[0]])):P([k([t.Opens[0]," "]),r,t.Semicolon[0]])}usesModuleDirective(t){let r=this.visit(t.typeName);return P([k([t.Uses[0]," "]),r,t.Semicolon[0]])}providesModuleDirective(t){let r=this.visit(t.typeName[0]),n=this.mapVisit(t.typeName.slice(1)),i=t.Comma?t.Comma.map(o=>k([o,Lr])):[];return Bo(P([xo(I(Lr,[I(" ",[t.Provides[0],r]),Bo(xo(I(Lr,[t.With[0],X(i,n)])))])),t.Semicolon[0]]))}requiresModifier(t){return H(this.getSingle(t))}};Uj(Wu,Ku,Yu,Hu,Ju,Zu,Qu,$u,el);function Uj(...e){e.forEach(t=>{Object.getOwnPropertyNames(t.prototype).filter(i=>i!=="constructor").forEach(i=>{Ne.prototype[i]=t.prototype[i]})})}var pT=new Ne;function dT(e,t){return pT.prettierOptions=t,pT.visit(e)}function bf(e,t,r){let n=e.getValue();return dT(n,t)}s();l();u();var mT={entrypoint:{type:"choice",category:"Global",default:"compilationUnit",choices:[{value:"arrayInitializer"},{value:"variableInitializerList"},{value:"block"},{value:"blockStatements"},{value:"blockStatement"},{value:"localVariableDeclarationStatement"},{value:"localVariableDeclaration"},{value:"localVariableType"},{value:"statement"},{value:"statementWithoutTrailingSubstatement"},{value:"emptyStatement"},{value:"labeledStatement"},{value:"expressionStatement"},{value:"statementExpression"},{value:"ifStatement"},{value:"assertStatement"},{value:"switchStatement"},{value:"switchBlock"},{value:"switchBlockStatementGroup"},{value:"switchLabel"},{value:"switchRule"},{value:"caseConstant"},{value:"casePattern"},{value:"whileStatement"},{value:"doStatement"},{value:"forStatement"},{value:"basicForStatement"},{value:"forInit"},{value:"forUpdate"},{value:"statementExpressionList"},{value:"enhancedForStatement"},{value:"breakStatement"},{value:"continueStatement"},{value:"returnStatement"},{value:"throwStatement"},{value:"synchronizedStatement"},{value:"tryStatement"},{value:"catches"},{value:"catchClause"},{value:"catchFormalParameter"},{value:"catchType"},{value:"finally"},{value:"tryWithResourcesStatement"},{value:"resourceSpecification"},{value:"resourceList"},{value:"resource"},{value:"yieldStatement"},{value:"variableAccess"},{value:"classDeclaration"},{value:"normalClassDeclaration"},{value:"classModifier"},{value:"typeParameters"},{value:"typeParameterList"},{value:"classExtends"},{value:"classImplements"},{value:"interfaceTypeList"},{value:"classPermits"},{value:"classBody"},{value:"classBodyDeclaration"},{value:"classMemberDeclaration"},{value:"fieldDeclaration"},{value:"fieldModifier"},{value:"variableDeclaratorList"},{value:"variableDeclarator"},{value:"variableDeclaratorId"},{value:"variableInitializer"},{value:"unannType"},{value:"unannPrimitiveTypeWithOptionalDimsSuffix"},{value:"unannPrimitiveType"},{value:"unannReferenceType"},{value:"unannClassOrInterfaceType"},{value:"unannClassType"},{value:"unannInterfaceType"},{value:"unannTypeVariable"},{value:"methodDeclaration"},{value:"methodModifier"},{value:"methodHeader"},{value:"result"},{value:"methodDeclarator"},{value:"receiverParameter"},{value:"formalParameterList"},{value:"formalParameter"},{value:"variableParaRegularParameter"},{value:"variableArityParameter"},{value:"variableModifier"},{value:"throws"},{value:"exceptionTypeList"},{value:"exceptionType"},{value:"methodBody"},{value:"instanceInitializer"},{value:"staticInitializer"},{value:"constructorDeclaration"},{value:"constructorModifier"},{value:"constructorDeclarator"},{value:"simpleTypeName"},{value:"constructorBody"},{value:"explicitConstructorInvocation"},{value:"unqualifiedExplicitConstructorInvocation"},{value:"qualifiedExplicitConstructorInvocation"},{value:"enumDeclaration"},{value:"enumBody"},{value:"enumConstantList"},{value:"enumConstant"},{value:"enumConstantModifier"},{value:"enumBodyDeclarations"},{value:"recordDeclaration"},{value:"recordHeader"},{value:"recordComponentList"},{value:"recordComponent"},{value:"variableArityRecordComponent"},{value:"recordComponentModifier"},{value:"recordBody"},{value:"recordBodyDeclaration"},{value:"compactConstructorDeclaration"},{value:"isDims"},{value:"expression"},{value:"lambdaExpression"},{value:"lambdaParameters"},{value:"lambdaParametersWithBraces"},{value:"lambdaParameterList"},{value:"conciseLambdaParameterList"},{value:"normalLambdaParameterList"},{value:"normalLambdaParameter"},{value:"regularLambdaParameter"},{value:"lambdaParameterType"},{value:"conciseLambdaParameter"},{value:"lambdaBody"},{value:"conditionalExpression"},{value:"binaryExpression"},{value:"unaryExpression"},{value:"unaryExpressionNotPlusMinus"},{value:"primary"},{value:"primaryPrefix"},{value:"primarySuffix"},{value:"fqnOrRefType"},{value:"fqnOrRefTypePartRest"},{value:"fqnOrRefTypePartCommon"},{value:"fqnOrRefTypePartFirst"},{value:"parenthesisExpression"},{value:"castExpression"},{value:"primitiveCastExpression"},{value:"referenceTypeCastExpression"},{value:"newExpression"},{value:"unqualifiedClassInstanceCreationExpression"},{value:"classOrInterfaceTypeToInstantiate"},{value:"typeArgumentsOrDiamond"},{value:"diamond"},{value:"methodInvocationSuffix"},{value:"argumentList"},{value:"arrayCreationExpression"},{value:"arrayCreationExpressionWithoutInitializerSuffix"},{value:"arrayCreationWithInitializerSuffix"},{value:"dimExprs"},{value:"dimExpr"},{value:"classLiteralSuffix"},{value:"arrayAccessSuffix"},{value:"methodReferenceSuffix"},{value:"templateArgument"},{value:"template"},{value:"stringTemplate"},{value:"textBlockTemplate"},{value:"embeddedExpression"},{value:"pattern"},{value:"typePattern"},{value:"recordPattern"},{value:"componentPatternList"},{value:"componentPattern"},{value:"matchAllPattern"},{value:"guard"},{value:"isRefTypeInMethodRef"},{value:"interfaceDeclaration"},{value:"normalInterfaceDeclaration"},{value:"interfaceModifier"},{value:"interfaceExtends"},{value:"interfacePermits"},{value:"interfaceBody"},{value:"interfaceMemberDeclaration"},{value:"constantDeclaration"},{value:"constantModifier"},{value:"interfaceMethodDeclaration"},{value:"interfaceMethodModifier"},{value:"annotationInterfaceDeclaration"},{value:"annotationInterfaceBody"},{value:"annotationInterfaceMemberDeclaration"},{value:"annotationInterfaceElementDeclaration"},{value:"annotationInterfaceElementModifier"},{value:"defaultValue"},{value:"annotation"},{value:"elementValuePairList"},{value:"elementValuePair"},{value:"elementValue"},{value:"elementValueArrayInitializer"},{value:"elementValueList"},{value:"literal"},{value:"integerLiteral"},{value:"floatingPointLiteral"},{value:"booleanLiteral"},{value:"moduleName"},{value:"packageName"},{value:"typeName"},{value:"expressionName"},{value:"methodName"},{value:"packageOrTypeName"},{value:"ambiguousName"},{value:"compilationUnit"},{value:"ordinaryCompilationUnit"},{value:"modularCompilationUnit"},{value:"packageDeclaration"},{value:"packageModifier"},{value:"importDeclaration"},{value:"typeDeclaration"},{value:"moduleDeclaration"},{value:"moduleDirective"},{value:"requiresModuleDirective"},{value:"exportsModuleDirective"},{value:"opensModuleDirective"},{value:"usesModuleDirective"},{value:"providesModuleDirective"},{value:"requiresModifier"},{value:"primitiveType"},{value:"numericType"},{value:"integralType"},{value:"floatingPointType"},{value:"referenceType"},{value:"classOrInterfaceType"},{value:"classType"},{value:"interfaceType"},{value:"typeVariable"},{value:"dims"},{value:"typeParameter"},{value:"typeParameterModifier"},{value:"typeBound"},{value:"additionalBound"},{value:"typeArguments"},{value:"typeArgumentList"},{value:"typeArgument"},{value:"wildcard"},{value:"wildcardBounds"}],description:"Prettify from the entrypoint, allowing to use prettier on snippet."},trailingComma:{type:"choice",category:"Java",default:"all",choices:["all","es5","none"],description:"Print trailing commas wherever possible when multi-line."}};var Ij=[{name:"Java",parsers:["java"],group:"Java",tmScope:"text.html.vue",aceMode:"html",codemirrorMode:"clike",codemirrorMimeType:"text/x-java",extensions:[".java"],linguistLanguageId:181,vscodeLanguageIds:["java"]}];function Nj(){return-1}function bj(){return-1}function xj(e){return/^\/\*\*[\n][\t\s]+\*\s@(prettier|format)[\n][\t\s]+\*\//.test(e)}var Bj={java:{parse:Oc,astFormat:"java",locStart:Nj,locEnd:bj,hasPragma:xj}};function Mj(e){return e.ast_type&&e.ast_type!=="comment"}function _j(e){let t=e.getValue();switch(t.ast_type){case"comment":return t.value;default:throw new Error("Not a comment: "+JSON.stringify(t))}}function Pj(e,t){delete t.lineno,delete t.col_offset}var kj={java:{print:bf,printComment:_j,canAttachComment:Mj,massageAstNode:Pj}},wj={languages:Ij,printers:kj,parsers:Bj,options:mT};return FT(qj);})();
|
|
160
|
+
/*! Bundled license information:
|
|
161
|
+
|
|
162
|
+
@jspm/core/nodelibs/browser/buffer.js:
|
|
163
|
+
(*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
164
|
+
|
|
165
|
+
lodash-es/lodash.js:
|
|
166
|
+
(**
|
|
167
|
+
* @license
|
|
168
|
+
* Lodash (Custom Build) <https://lodash.com/>
|
|
169
|
+
* Build: `lodash modularize exports="es" -o ./`
|
|
170
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
171
|
+
* Released under MIT license <https://lodash.com/license>
|
|
172
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
173
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
174
|
+
*)
|
|
175
|
+
*/
|