UNPKG

dns-setting

Version:

dns management: query, modify, shield corresponding domain name resolution

188 lines 581 kB
import{d as fs,r as oe,g as ud,o as ld,u as k,a as ar,b as Ze,n as Je,w as xe,i as Ye,c as te,e as fe,f as Se,h as tr,j as Qs,k as cd,N as Pr,l as zn,F as Ke,C as ic,m as Z,p as Ve,t as wt,q as ac,s as rr,v as Tr,x as Yt,y as zt,z as fd,A as Tt,B as ye,D as Ie,E as Qt,G as sc,H as Pi,I as Ct,J as ds,K as Ae,L as ve,M as Pe,O as ke,P as Lt,Q as Fe,R as _r,S as at,T as He,U as oc,V as qn,W as uc,X as dd,Y as lc,Z as Qe,_ as pd,$ as hd,a0 as md,a1 as Fr,a2 as Un,a3 as jt,a4 as vd,a5 as Zs,a6 as hi,a7 as mi,a8 as tn,a9 as yd,aa as cc,ab as fc,ac as ps,ad as gd}from"./index-971c2228.js";var nr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bd(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){if(this instanceof r){var l=[null];l.push.apply(l,arguments);var o=Function.bind.apply(t,l);return new o}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var l=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,l.get?l:{enumerable:!0,get:function(){return e[r]}})}),n}var Ya={},yt={},Sd={get exports(){return yt},set exports(e){yt=e}};(function(e){var t,n,r,l,o,y,h,f,u,a,p,g,m,c,i,s,d,v,E,b,A,_,D,F,B,N,I,R,M;(function($){var z=typeof nr=="object"?nr:typeof self=="object"?self:typeof this=="object"?this:{};$(X(z,X(e.exports)));function X(P,O){return P!==z&&(typeof Object.create=="function"?Object.defineProperty(P,"__esModule",{value:!0}):P.__esModule=!0),function(L,V){return P[L]=O?O(L,V):V}}})(function($){var z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,O){P.__proto__=O}||function(P,O){for(var L in O)Object.prototype.hasOwnProperty.call(O,L)&&(P[L]=O[L])};t=function(P,O){if(typeof O!="function"&&O!==null)throw new TypeError("Class extends value "+String(O)+" is not a constructor or null");z(P,O);function L(){this.constructor=P}P.prototype=O===null?Object.create(O):(L.prototype=O.prototype,new L)},n=Object.assign||function(P){for(var O,L=1,V=arguments.length;L<V;L++){O=arguments[L];for(var x in O)Object.prototype.hasOwnProperty.call(O,x)&&(P[x]=O[x])}return P},r=function(P,O){var L={};for(var V in P)Object.prototype.hasOwnProperty.call(P,V)&&O.indexOf(V)<0&&(L[V]=P[V]);if(P!=null&&typeof Object.getOwnPropertySymbols=="function")for(var x=0,V=Object.getOwnPropertySymbols(P);x<V.length;x++)O.indexOf(V[x])<0&&Object.prototype.propertyIsEnumerable.call(P,V[x])&&(L[V[x]]=P[V[x]]);return L},l=function(P,O,L,V){var x=arguments.length,w=x<3?O:V===null?V=Object.getOwnPropertyDescriptor(O,L):V,S;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(P,O,L,V);else for(var T=P.length-1;T>=0;T--)(S=P[T])&&(w=(x<3?S(w):x>3?S(O,L,w):S(O,L))||w);return x>3&&w&&Object.defineProperty(O,L,w),w},o=function(P,O){return function(L,V){O(L,V,P)}},y=function(P,O,L,V,x,w){function S(Q){if(Q!==void 0&&typeof Q!="function")throw new TypeError("Function expected");return Q}for(var T=V.kind,C=T==="getter"?"get":T==="setter"?"set":"value",j=!O&&P?V.static?P:P.prototype:null,U=O||(j?Object.getOwnPropertyDescriptor(j,V.name):{}),H,G=!1,ee=L.length-1;ee>=0;ee--){var se={};for(var pe in V)se[pe]=pe==="access"?{}:V[pe];for(var pe in V.access)se.access[pe]=V.access[pe];se.addInitializer=function(Q){if(G)throw new TypeError("Cannot add initializers after decoration has completed");w.push(S(Q||null))};var he=(0,L[ee])(T==="accessor"?{get:U.get,set:U.set}:U[C],se);if(T==="accessor"){if(he===void 0)continue;if(he===null||typeof he!="object")throw new TypeError("Object expected");(H=S(he.get))&&(U.get=H),(H=S(he.set))&&(U.set=H),(H=S(he.init))&&x.push(H)}else(H=S(he))&&(T==="field"?x.push(H):U[C]=H)}j&&Object.defineProperty(j,V.name,U),G=!0},h=function(P,O,L){for(var V=arguments.length>2,x=0;x<O.length;x++)L=V?O[x].call(P,L):O[x].call(P);return V?L:void 0},f=function(P){return typeof P=="symbol"?P:"".concat(P)},u=function(P,O,L){return typeof O=="symbol"&&(O=O.description?"[".concat(O.description,"]"):""),Object.defineProperty(P,"name",{configurable:!0,value:L?"".concat(L," ",O):O})},a=function(P,O){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(P,O)},p=function(P,O,L,V){function x(w){return w instanceof L?w:new L(function(S){S(w)})}return new(L||(L=Promise))(function(w,S){function T(U){try{j(V.next(U))}catch(H){S(H)}}function C(U){try{j(V.throw(U))}catch(H){S(H)}}function j(U){U.done?w(U.value):x(U.value).then(T,C)}j((V=V.apply(P,O||[])).next())})},g=function(P,O){var L={label:0,sent:function(){if(w[0]&1)throw w[1];return w[1]},trys:[],ops:[]},V,x,w,S;return S={next:T(0),throw:T(1),return:T(2)},typeof Symbol=="function"&&(S[Symbol.iterator]=function(){return this}),S;function T(j){return function(U){return C([j,U])}}function C(j){if(V)throw new TypeError("Generator is already executing.");for(;S&&(S=0,j[0]&&(L=0)),L;)try{if(V=1,x&&(w=j[0]&2?x.return:j[0]?x.throw||((w=x.return)&&w.call(x),0):x.next)&&!(w=w.call(x,j[1])).done)return w;switch(x=0,w&&(j=[j[0]&2,w.value]),j[0]){case 0:case 1:w=j;break;case 4:return L.label++,{value:j[1],done:!1};case 5:L.label++,x=j[1],j=[0];continue;case 7:j=L.ops.pop(),L.trys.pop();continue;default:if(w=L.trys,!(w=w.length>0&&w[w.length-1])&&(j[0]===6||j[0]===2)){L=0;continue}if(j[0]===3&&(!w||j[1]>w[0]&&j[1]<w[3])){L.label=j[1];break}if(j[0]===6&&L.label<w[1]){L.label=w[1],w=j;break}if(w&&L.label<w[2]){L.label=w[2],L.ops.push(j);break}w[2]&&L.ops.pop(),L.trys.pop();continue}j=O.call(P,L)}catch(U){j=[6,U],x=0}finally{V=w=0}if(j[0]&5)throw j[1];return{value:j[0]?j[1]:void 0,done:!0}}},m=function(P,O){for(var L in P)L!=="default"&&!Object.prototype.hasOwnProperty.call(O,L)&&M(O,P,L)},M=Object.create?function(P,O,L,V){V===void 0&&(V=L);var x=Object.getOwnPropertyDescriptor(O,L);(!x||("get"in x?!O.__esModule:x.writable||x.configurable))&&(x={enumerable:!0,get:function(){return O[L]}}),Object.defineProperty(P,V,x)}:function(P,O,L,V){V===void 0&&(V=L),P[V]=O[L]},c=function(P){var O=typeof Symbol=="function"&&Symbol.iterator,L=O&&P[O],V=0;if(L)return L.call(P);if(P&&typeof P.length=="number")return{next:function(){return P&&V>=P.length&&(P=void 0),{value:P&&P[V++],done:!P}}};throw new TypeError(O?"Object is not iterable.":"Symbol.iterator is not defined.")},i=function(P,O){var L=typeof Symbol=="function"&&P[Symbol.iterator];if(!L)return P;var V=L.call(P),x,w=[],S;try{for(;(O===void 0||O-- >0)&&!(x=V.next()).done;)w.push(x.value)}catch(T){S={error:T}}finally{try{x&&!x.done&&(L=V.return)&&L.call(V)}finally{if(S)throw S.error}}return w},s=function(){for(var P=[],O=0;O<arguments.length;O++)P=P.concat(i(arguments[O]));return P},d=function(){for(var P=0,O=0,L=arguments.length;O<L;O++)P+=arguments[O].length;for(var V=Array(P),x=0,O=0;O<L;O++)for(var w=arguments[O],S=0,T=w.length;S<T;S++,x++)V[x]=w[S];return V},v=function(P,O,L){if(L||arguments.length===2)for(var V=0,x=O.length,w;V<x;V++)(w||!(V in O))&&(w||(w=Array.prototype.slice.call(O,0,V)),w[V]=O[V]);return P.concat(w||Array.prototype.slice.call(O))},E=function(P){return this instanceof E?(this.v=P,this):new E(P)},b=function(P,O,L){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var V=L.apply(P,O||[]),x,w=[];return x={},S("next"),S("throw"),S("return"),x[Symbol.asyncIterator]=function(){return this},x;function S(G){V[G]&&(x[G]=function(ee){return new Promise(function(se,pe){w.push([G,ee,se,pe])>1||T(G,ee)})})}function T(G,ee){try{C(V[G](ee))}catch(se){H(w[0][3],se)}}function C(G){G.value instanceof E?Promise.resolve(G.value.v).then(j,U):H(w[0][2],G)}function j(G){T("next",G)}function U(G){T("throw",G)}function H(G,ee){G(ee),w.shift(),w.length&&T(w[0][0],w[0][1])}},A=function(P){var O,L;return O={},V("next"),V("throw",function(x){throw x}),V("return"),O[Symbol.iterator]=function(){return this},O;function V(x,w){O[x]=P[x]?function(S){return(L=!L)?{value:E(P[x](S)),done:!1}:w?w(S):S}:w}},_=function(P){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var O=P[Symbol.asyncIterator],L;return O?O.call(P):(P=typeof c=="function"?c(P):P[Symbol.iterator](),L={},V("next"),V("throw"),V("return"),L[Symbol.asyncIterator]=function(){return this},L);function V(w){L[w]=P[w]&&function(S){return new Promise(function(T,C){S=P[w](S),x(T,C,S.done,S.value)})}}function x(w,S,T,C){Promise.resolve(C).then(function(j){w({value:j,done:T})},S)}},D=function(P,O){return Object.defineProperty?Object.defineProperty(P,"raw",{value:O}):P.raw=O,P};var X=Object.create?function(P,O){Object.defineProperty(P,"default",{enumerable:!0,value:O})}:function(P,O){P.default=O};F=function(P){if(P&&P.__esModule)return P;var O={};if(P!=null)for(var L in P)L!=="default"&&Object.prototype.hasOwnProperty.call(P,L)&&M(O,P,L);return X(O,P),O},B=function(P){return P&&P.__esModule?P:{default:P}},N=function(P,O,L,V){if(L==="a"&&!V)throw new TypeError("Private accessor was defined without a getter");if(typeof O=="function"?P!==O||!V:!O.has(P))throw new TypeError("Cannot read private member from an object whose class did not declare it");return L==="m"?V:L==="a"?V.call(P):V?V.value:O.get(P)},I=function(P,O,L,V,x){if(V==="m")throw new TypeError("Private method is not writable");if(V==="a"&&!x)throw new TypeError("Private accessor was defined without a setter");if(typeof O=="function"?P!==O||!x:!O.has(P))throw new TypeError("Cannot write private member to an object whose class did not declare it");return V==="a"?x.call(P,L):x?x.value=L:O.set(P,L),L},R=function(P,O){if(O===null||typeof O!="object"&&typeof O!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof P=="function"?O===P:P.has(O)},$("__extends",t),$("__assign",n),$("__rest",r),$("__decorate",l),$("__param",o),$("__esDecorate",y),$("__runInitializers",h),$("__propKey",f),$("__setFunctionName",u),$("__metadata",a),$("__awaiter",p),$("__generator",g),$("__exportStar",m),$("__createBinding",M),$("__values",c),$("__read",i),$("__spread",s),$("__spreadArrays",d),$("__spreadArray",v),$("__await",E),$("__asyncGenerator",b),$("__asyncDelegator",A),$("__asyncValues",_),$("__makeTemplateObject",D),$("__importStar",F),$("__importDefault",B),$("__classPrivateFieldGet",N),$("__classPrivateFieldSet",I),$("__classPrivateFieldIn",R)})})(Sd);const Ed={},xd=Object.freeze(Object.defineProperty({__proto__:null,default:Ed},Symbol.toStringTag,{value:"Module"})),dc=bd(xd);var Ji={},vi={},wd={get exports(){return vi},set exports(e){vi=e}},eo;function Be(){return eo||(eo=1,function(e){var t,n,r,l,o,y,h,f,u,a,p,g,m,c,i,s,d,v,E,b,A,_,D,F,B,N,I,R,M;(function($){var z=typeof nr=="object"?nr:typeof self=="object"?self:typeof this=="object"?this:{};$(X(z,X(e.exports)));function X(P,O){return P!==z&&(typeof Object.create=="function"?Object.defineProperty(P,"__esModule",{value:!0}):P.__esModule=!0),function(L,V){return P[L]=O?O(L,V):V}}})(function($){var z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,O){P.__proto__=O}||function(P,O){for(var L in O)Object.prototype.hasOwnProperty.call(O,L)&&(P[L]=O[L])};t=function(P,O){if(typeof O!="function"&&O!==null)throw new TypeError("Class extends value "+String(O)+" is not a constructor or null");z(P,O);function L(){this.constructor=P}P.prototype=O===null?Object.create(O):(L.prototype=O.prototype,new L)},n=Object.assign||function(P){for(var O,L=1,V=arguments.length;L<V;L++){O=arguments[L];for(var x in O)Object.prototype.hasOwnProperty.call(O,x)&&(P[x]=O[x])}return P},r=function(P,O){var L={};for(var V in P)Object.prototype.hasOwnProperty.call(P,V)&&O.indexOf(V)<0&&(L[V]=P[V]);if(P!=null&&typeof Object.getOwnPropertySymbols=="function")for(var x=0,V=Object.getOwnPropertySymbols(P);x<V.length;x++)O.indexOf(V[x])<0&&Object.prototype.propertyIsEnumerable.call(P,V[x])&&(L[V[x]]=P[V[x]]);return L},l=function(P,O,L,V){var x=arguments.length,w=x<3?O:V===null?V=Object.getOwnPropertyDescriptor(O,L):V,S;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(P,O,L,V);else for(var T=P.length-1;T>=0;T--)(S=P[T])&&(w=(x<3?S(w):x>3?S(O,L,w):S(O,L))||w);return x>3&&w&&Object.defineProperty(O,L,w),w},o=function(P,O){return function(L,V){O(L,V,P)}},y=function(P,O,L,V,x,w){function S(Q){if(Q!==void 0&&typeof Q!="function")throw new TypeError("Function expected");return Q}for(var T=V.kind,C=T==="getter"?"get":T==="setter"?"set":"value",j=!O&&P?V.static?P:P.prototype:null,U=O||(j?Object.getOwnPropertyDescriptor(j,V.name):{}),H,G=!1,ee=L.length-1;ee>=0;ee--){var se={};for(var pe in V)se[pe]=pe==="access"?{}:V[pe];for(var pe in V.access)se.access[pe]=V.access[pe];se.addInitializer=function(Q){if(G)throw new TypeError("Cannot add initializers after decoration has completed");w.push(S(Q||null))};var he=(0,L[ee])(T==="accessor"?{get:U.get,set:U.set}:U[C],se);if(T==="accessor"){if(he===void 0)continue;if(he===null||typeof he!="object")throw new TypeError("Object expected");(H=S(he.get))&&(U.get=H),(H=S(he.set))&&(U.set=H),(H=S(he.init))&&x.push(H)}else(H=S(he))&&(T==="field"?x.push(H):U[C]=H)}j&&Object.defineProperty(j,V.name,U),G=!0},h=function(P,O,L){for(var V=arguments.length>2,x=0;x<O.length;x++)L=V?O[x].call(P,L):O[x].call(P);return V?L:void 0},f=function(P){return typeof P=="symbol"?P:"".concat(P)},u=function(P,O,L){return typeof O=="symbol"&&(O=O.description?"[".concat(O.description,"]"):""),Object.defineProperty(P,"name",{configurable:!0,value:L?"".concat(L," ",O):O})},a=function(P,O){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(P,O)},p=function(P,O,L,V){function x(w){return w instanceof L?w:new L(function(S){S(w)})}return new(L||(L=Promise))(function(w,S){function T(U){try{j(V.next(U))}catch(H){S(H)}}function C(U){try{j(V.throw(U))}catch(H){S(H)}}function j(U){U.done?w(U.value):x(U.value).then(T,C)}j((V=V.apply(P,O||[])).next())})},g=function(P,O){var L={label:0,sent:function(){if(w[0]&1)throw w[1];return w[1]},trys:[],ops:[]},V,x,w,S;return S={next:T(0),throw:T(1),return:T(2)},typeof Symbol=="function"&&(S[Symbol.iterator]=function(){return this}),S;function T(j){return function(U){return C([j,U])}}function C(j){if(V)throw new TypeError("Generator is already executing.");for(;S&&(S=0,j[0]&&(L=0)),L;)try{if(V=1,x&&(w=j[0]&2?x.return:j[0]?x.throw||((w=x.return)&&w.call(x),0):x.next)&&!(w=w.call(x,j[1])).done)return w;switch(x=0,w&&(j=[j[0]&2,w.value]),j[0]){case 0:case 1:w=j;break;case 4:return L.label++,{value:j[1],done:!1};case 5:L.label++,x=j[1],j=[0];continue;case 7:j=L.ops.pop(),L.trys.pop();continue;default:if(w=L.trys,!(w=w.length>0&&w[w.length-1])&&(j[0]===6||j[0]===2)){L=0;continue}if(j[0]===3&&(!w||j[1]>w[0]&&j[1]<w[3])){L.label=j[1];break}if(j[0]===6&&L.label<w[1]){L.label=w[1],w=j;break}if(w&&L.label<w[2]){L.label=w[2],L.ops.push(j);break}w[2]&&L.ops.pop(),L.trys.pop();continue}j=O.call(P,L)}catch(U){j=[6,U],x=0}finally{V=w=0}if(j[0]&5)throw j[1];return{value:j[0]?j[1]:void 0,done:!0}}},m=function(P,O){for(var L in P)L!=="default"&&!Object.prototype.hasOwnProperty.call(O,L)&&M(O,P,L)},M=Object.create?function(P,O,L,V){V===void 0&&(V=L);var x=Object.getOwnPropertyDescriptor(O,L);(!x||("get"in x?!O.__esModule:x.writable||x.configurable))&&(x={enumerable:!0,get:function(){return O[L]}}),Object.defineProperty(P,V,x)}:function(P,O,L,V){V===void 0&&(V=L),P[V]=O[L]},c=function(P){var O=typeof Symbol=="function"&&Symbol.iterator,L=O&&P[O],V=0;if(L)return L.call(P);if(P&&typeof P.length=="number")return{next:function(){return P&&V>=P.length&&(P=void 0),{value:P&&P[V++],done:!P}}};throw new TypeError(O?"Object is not iterable.":"Symbol.iterator is not defined.")},i=function(P,O){var L=typeof Symbol=="function"&&P[Symbol.iterator];if(!L)return P;var V=L.call(P),x,w=[],S;try{for(;(O===void 0||O-- >0)&&!(x=V.next()).done;)w.push(x.value)}catch(T){S={error:T}}finally{try{x&&!x.done&&(L=V.return)&&L.call(V)}finally{if(S)throw S.error}}return w},s=function(){for(var P=[],O=0;O<arguments.length;O++)P=P.concat(i(arguments[O]));return P},d=function(){for(var P=0,O=0,L=arguments.length;O<L;O++)P+=arguments[O].length;for(var V=Array(P),x=0,O=0;O<L;O++)for(var w=arguments[O],S=0,T=w.length;S<T;S++,x++)V[x]=w[S];return V},v=function(P,O,L){if(L||arguments.length===2)for(var V=0,x=O.length,w;V<x;V++)(w||!(V in O))&&(w||(w=Array.prototype.slice.call(O,0,V)),w[V]=O[V]);return P.concat(w||Array.prototype.slice.call(O))},E=function(P){return this instanceof E?(this.v=P,this):new E(P)},b=function(P,O,L){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var V=L.apply(P,O||[]),x,w=[];return x={},S("next"),S("throw"),S("return"),x[Symbol.asyncIterator]=function(){return this},x;function S(G){V[G]&&(x[G]=function(ee){return new Promise(function(se,pe){w.push([G,ee,se,pe])>1||T(G,ee)})})}function T(G,ee){try{C(V[G](ee))}catch(se){H(w[0][3],se)}}function C(G){G.value instanceof E?Promise.resolve(G.value.v).then(j,U):H(w[0][2],G)}function j(G){T("next",G)}function U(G){T("throw",G)}function H(G,ee){G(ee),w.shift(),w.length&&T(w[0][0],w[0][1])}},A=function(P){var O,L;return O={},V("next"),V("throw",function(x){throw x}),V("return"),O[Symbol.iterator]=function(){return this},O;function V(x,w){O[x]=P[x]?function(S){return(L=!L)?{value:E(P[x](S)),done:!1}:w?w(S):S}:w}},_=function(P){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var O=P[Symbol.asyncIterator],L;return O?O.call(P):(P=typeof c=="function"?c(P):P[Symbol.iterator](),L={},V("next"),V("throw"),V("return"),L[Symbol.asyncIterator]=function(){return this},L);function V(w){L[w]=P[w]&&function(S){return new Promise(function(T,C){S=P[w](S),x(T,C,S.done,S.value)})}}function x(w,S,T,C){Promise.resolve(C).then(function(j){w({value:j,done:T})},S)}},D=function(P,O){return Object.defineProperty?Object.defineProperty(P,"raw",{value:O}):P.raw=O,P};var X=Object.create?function(P,O){Object.defineProperty(P,"default",{enumerable:!0,value:O})}:function(P,O){P.default=O};F=function(P){if(P&&P.__esModule)return P;var O={};if(P!=null)for(var L in P)L!=="default"&&Object.prototype.hasOwnProperty.call(P,L)&&M(O,P,L);return X(O,P),O},B=function(P){return P&&P.__esModule?P:{default:P}},N=function(P,O,L,V){if(L==="a"&&!V)throw new TypeError("Private accessor was defined without a getter");if(typeof O=="function"?P!==O||!V:!O.has(P))throw new TypeError("Cannot read private member from an object whose class did not declare it");return L==="m"?V:L==="a"?V.call(P):V?V.value:O.get(P)},I=function(P,O,L,V,x){if(V==="m")throw new TypeError("Private method is not writable");if(V==="a"&&!x)throw new TypeError("Private accessor was defined without a setter");if(typeof O=="function"?P!==O||!x:!O.has(P))throw new TypeError("Cannot write private member to an object whose class did not declare it");return V==="a"?x.call(P,L):x?x.value=L:O.set(P,L),L},R=function(P,O){if(O===null||typeof O!="object"&&typeof O!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof P=="function"?O===P:P.has(O)},$("__extends",t),$("__assign",n),$("__rest",r),$("__decorate",l),$("__param",o),$("__esDecorate",y),$("__runInitializers",h),$("__propKey",f),$("__setFunctionName",u),$("__metadata",a),$("__awaiter",p),$("__generator",g),$("__exportStar",m),$("__createBinding",M),$("__values",c),$("__read",i),$("__spread",s),$("__spreadArrays",d),$("__spreadArray",v),$("__await",E),$("__asyncGenerator",b),$("__asyncDelegator",A),$("__asyncValues",_),$("__makeTemplateObject",D),$("__importStar",F),$("__importDefault",B),$("__classPrivateFieldGet",N),$("__classPrivateFieldSet",I),$("__classPrivateFieldIn",R)})}(wd)),vi}var rn={},Dd={get exports(){return rn},set exports(e){rn=e}},wr={},to;function ze(){if(to)return wr;to=1,Object.defineProperty(wr,"__esModule",{value:!0}),wr.Def=void 0;var e=Be(),t=Object.prototype,n=t.toString,r=t.hasOwnProperty,l=function(){function c(){}return c.prototype.assert=function(i,s){if(!this.check(i,s)){var d=g(i);throw new Error(d+" does not match type "+this)}return!0},c.prototype.arrayOf=function(){var i=this;return new o(i)},c}(),o=function(c){(0,e.__extends)(i,c);function i(s){var d=c.call(this)||this;return d.elemType=s,d.kind="ArrayType",d}return i.prototype.toString=function(){return"["+this.elemType+"]"},i.prototype.check=function(s,d){var v=this;return Array.isArray(s)&&s.every(function(E){return v.elemType.check(E,d)})},i}(l),y=function(c){(0,e.__extends)(i,c);function i(s){var d=c.call(this)||this;return d.value=s,d.kind="IdentityType",d}return i.prototype.toString=function(){return String(this.value)},i.prototype.check=function(s,d){var v=s===this.value;return!v&&typeof d=="function"&&d(this,s),v},i}(l),h=function(c){(0,e.__extends)(i,c);function i(s){var d=c.call(this)||this;return d.fields=s,d.kind="ObjectType",d}return i.prototype.toString=function(){return"{ "+this.fields.join(", ")+" }"},i.prototype.check=function(s,d){return n.call(s)===n.call({})&&this.fields.every(function(v){return v.type.check(s[v.name],d)})},i}(l),f=function(c){(0,e.__extends)(i,c);function i(s){var d=c.call(this)||this;return d.types=s,d.kind="OrType",d}return i.prototype.toString=function(){return this.types.join(" | ")},i.prototype.check=function(s,d){return this.types.some(function(v){return v.check(s,d)})},i}(l),u=function(c){(0,e.__extends)(i,c);function i(s,d){var v=c.call(this)||this;return v.name=s,v.predicate=d,v.kind="PredicateType",v}return i.prototype.toString=function(){return this.name},i.prototype.check=function(s,d){var v=this.predicate(s,d);return!v&&typeof d=="function"&&d(this,s),v},i}(l),a=function(){function c(i,s){this.type=i,this.typeName=s,this.baseNames=[],this.ownFields=Object.create(null),this.allSupertypes=Object.create(null),this.supertypeList=[],this.allFields=Object.create(null),this.fieldNames=[],this.finalized=!1,this.buildable=!1,this.buildParams=[]}return c.prototype.isSupertypeOf=function(i){if(i instanceof c){if(this.finalized!==!0||i.finalized!==!0)throw new Error("");return r.call(i.allSupertypes,this.typeName)}else throw new Error(i+" is not a Def")},c.prototype.checkAllFields=function(i,s){var d=this.allFields;if(this.finalized!==!0)throw new Error(""+this.typeName);function v(E){var b=d[E],A=b.type,_=b.getValue(i);return A.check(_,s)}return i!==null&&typeof i=="object"&&Object.keys(d).every(v)},c.prototype.bases=function(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];var d=this.baseNames;if(this.finalized){if(i.length!==d.length)throw new Error("");for(var v=0;v<i.length;v++)if(i[v]!==d[v])throw new Error("");return this}return i.forEach(function(E){d.indexOf(E)<0&&d.push(E)}),this},c}();wr.Def=a;var p=function(){function c(i,s,d,v){this.name=i,this.type=s,this.defaultFn=d,this.hidden=!!v}return c.prototype.toString=function(){return JSON.stringify(this.name)+": "+this.type},c.prototype.getValue=function(i){var s=i[this.name];return typeof s<"u"||typeof this.defaultFn=="function"&&(s=this.defaultFn.call(i)),s},c}();function g(c){return Array.isArray(c)?"["+c.map(g).join(", ")+"]":c&&typeof c=="object"?"{ "+Object.keys(c).map(function(i){return i+": "+c[i]}).join(", ")+" }":JSON.stringify(c)}function m(c){var i={or:function(){for(var Q=[],ie=0;ie<arguments.length;ie++)Q[ie]=arguments[ie];return new f(Q.map(function(ae){return i.from(ae)}))},from:function(Q,ie){if(Q instanceof o||Q instanceof y||Q instanceof h||Q instanceof f||Q instanceof u)return Q;if(Q instanceof a)return Q.type;if(A.check(Q)){if(Q.length!==1)throw new Error("only one element type is permitted for typed arrays");return new o(i.from(Q[0]))}if(_.check(Q))return new h(Object.keys(Q).map(function(ue){return new p(ue,i.from(Q[ue],ue))}));if(typeof Q=="function"){var ae=s.indexOf(Q);if(ae>=0)return d[ae];if(typeof ie!="string")throw new Error("missing name");return new u(ie,Q)}return new y(Q)},def:function(Q){return r.call(z,Q)?z[Q]:z[Q]=new P(Q)},hasDef:function(Q){return r.call(z,Q)}},s=[],d=[];function v(Q,ie){var ae=n.call(ie),ue=new u(Q,function(de){return n.call(de)===ae});return ie&&typeof ie.constructor=="function"&&(s.push(ie.constructor),d.push(ue)),ue}var E=v("string","truthy"),b=v("function",function(){}),A=v("array",[]),_=v("object",{}),D=v("RegExp",/./),F=v("Date",new Date),B=v("number",3),N=v("boolean",!0),I=v("null",null),R=v("undefined",void 0),M=typeof BigInt=="function"?v("BigInt",BigInt(1234)):new u("BigInt",function(){return!1}),$={string:E,function:b,array:A,object:_,RegExp:D,Date:F,number:B,boolean:N,null:I,undefined:R,BigInt:M},z=Object.create(null);function X(Q){if(Q&&typeof Q=="object"){var ie=Q.type;if(typeof ie=="string"&&r.call(z,ie)){var ae=z[ie];if(ae.finalized)return ae}}return null}var P=function(Q){(0,e.__extends)(ie,Q);function ie(ae){var ue=Q.call(this,new u(ae,function(de,W){return ue.check(de,W)}),ae)||this;return ue}return ie.prototype.check=function(ae,ue){if(this.finalized!==!0)throw new Error("prematurely checking unfinalized type "+this.typeName);if(ae===null||typeof ae!="object")return!1;var de=X(ae);return de?ue&&de===this?this.checkAllFields(ae,ue):this.isSupertypeOf(de)?ue?de.checkAllFields(ae,ue)&&this.checkAllFields(ae,!1):!0:!1:this.typeName==="SourceLocation"||this.typeName==="Position"?this.checkAllFields(ae,ue):!1},ie.prototype.build=function(){for(var ae=this,ue=[],de=0;de<arguments.length;de++)ue[de]=arguments[de];if(this.buildParams=ue,this.buildable)return this;this.field("type",String,function(){return ae.typeName}),this.buildable=!0;var W=function(_e,q,J,re){if(!r.call(_e,q)){var le=ae.allFields;if(!r.call(le,q))throw new Error(""+q);var ce=le[q],ge=ce.type,me;if(re)me=J;else if(ce.defaultFn)me=ce.defaultFn.call(_e);else{var Ce="no value or default function given for field "+JSON.stringify(q)+" of "+ae.typeName+"("+ae.buildParams.map(function(De){return le[De]}).join(", ")+")";throw new Error(Ce)}if(!ge.check(me))throw new Error(g(me)+" does not match field "+ce+" of type "+ae.typeName);_e[q]=me}},be=function(){for(var _e=[],q=0;q<arguments.length;q++)_e[q]=arguments[q];var J=_e.length;if(!ae.finalized)throw new Error("attempting to instantiate unfinalized type "+ae.typeName);var re=Object.create(x);if(ae.buildParams.forEach(function(le,ce){ce<J?W(re,le,_e[ce],!0):W(re,le,null,!1)}),Object.keys(ae.allFields).forEach(function(le){W(re,le,null,!1)}),re.type!==ae.typeName)throw new Error("");return re};return be.from=function(_e){if(!ae.finalized)throw new Error("attempting to instantiate unfinalized type "+ae.typeName);var q=Object.create(x);if(Object.keys(ae.allFields).forEach(function(J){r.call(_e,J)?W(q,J,_e[J],!0):W(q,J,null,!1)}),q.type!==ae.typeName)throw new Error("");return q},Object.defineProperty(V,S(this.typeName),{enumerable:!0,value:be}),this},ie.prototype.field=function(ae,ue,de,W){return this.finalized?(console.error("Ignoring attempt to redefine field "+JSON.stringify(ae)+" of finalized type "+JSON.stringify(this.typeName)),this):(this.ownFields[ae]=new p(ae,i.from(ue),de,W),this)},ie.prototype.finalize=function(){var ae=this;if(!this.finalized){var ue=this.allFields,de=this.allSupertypes;this.baseNames.forEach(function(be){var _e=z[be];if(_e instanceof a)_e.finalize(),pe(ue,_e.allFields),pe(de,_e.allSupertypes);else{var q="unknown supertype name "+JSON.stringify(be)+" for subtype "+JSON.stringify(ae.typeName);throw new Error(q)}}),pe(ue,this.ownFields),de[this.typeName]=this,this.fieldNames.length=0;for(var W in ue)r.call(ue,W)&&!ue[W].hidden&&this.fieldNames.push(W);Object.defineProperty(C,this.typeName,{enumerable:!0,value:this.type}),this.finalized=!0,se(this.typeName,this.supertypeList),this.buildable&&this.supertypeList.lastIndexOf("Expression")>=0&&ee(this.typeName)}},ie}(a);function O(Q){if(!r.call(z,Q))throw new Error("");var ie=z[Q];if(ie.finalized!==!0)throw new Error("");return ie.supertypeList.slice(1)}function L(Q){for(var ie={},ae=Object.keys(z),ue=ae.length,de=0;de<ue;++de){var W=ae[de],be=z[W];if(be.finalized!==!0)throw new Error(""+W);for(var _e=0;_e<be.supertypeList.length;++_e){var q=be.supertypeList[_e];if(r.call(Q,q)){ie[W]=q;break}}}return ie}var V=Object.create(null),x={};function w(Q,ie){var ae=x[Q];return R.check(ie)?delete x[Q]:(b.assert(ie),Object.defineProperty(x,Q,{enumerable:!0,configurable:!0,value:ie})),ae}function S(Q){return Q.replace(/^[A-Z]+/,function(ie){var ae=ie.length;switch(ae){case 0:return"";case 1:return ie.toLowerCase();default:return ie.slice(0,ae-1).toLowerCase()+ie.charAt(ae-1)}})}function T(Q){return Q=S(Q),Q.replace(/(Expression)?$/,"Statement")}var C={};function j(Q){var ie=X(Q);if(ie)return ie.fieldNames.slice(0);if("type"in Q)throw new Error("did not recognize object of type "+JSON.stringify(Q.type));return Object.keys(Q)}function U(Q,ie){var ae=X(Q);if(ae){var ue=ae.allFields[ie];if(ue)return ue.getValue(Q)}return Q&&Q[ie]}function H(Q,ie,ae){j(Q).forEach(function(ue){ie.call(this,ue,U(Q,ue))},ae)}function G(Q,ie,ae){return j(Q).some(function(ue){return ie.call(this,ue,U(Q,ue))},ae)}function ee(Q){var ie=T(Q);if(!V[ie]){var ae=V[S(Q)];if(ae){var ue=function(){for(var de=[],W=0;W<arguments.length;W++)de[W]=arguments[W];return V.expressionStatement(ae.apply(V,de))};ue.from=function(){for(var de=[],W=0;W<arguments.length;W++)de[W]=arguments[W];return V.expressionStatement(ae.from.apply(V,de))},V[ie]=ue}}}function se(Q,ie){ie.length=0,ie.push(Q);for(var ae=Object.create(null),ue=0;ue<ie.length;++ue){Q=ie[ue];var de=z[Q];if(de.finalized!==!0)throw new Error("");r.call(ae,Q)&&delete ie[ae[Q]],ae[Q]=ue,ie.push.apply(ie,de.baseNames)}for(var W=0,be=W,_e=ie.length;be<_e;++be)r.call(ie,be)&&(ie[W++]=ie[be]);ie.length=W}function pe(Q,ie){return Object.keys(ie).forEach(function(ae){Q[ae]=ie[ae]}),Q}function he(){Object.keys(z).forEach(function(Q){z[Q].finalize()})}return{Type:i,builtInTypes:$,getSupertypeNames:O,computeSupertypeLookupTable:L,builders:V,defineMethod:w,getBuilderName:S,getStatementBuilderName:T,namedTypes:C,getFieldNames:j,getFieldValue:U,eachField:H,someField:G,finalize:he}}return wr.default=m,wr}var nn={},Ad={get exports(){return nn},set exports(e){nn=e}},an={},Td={get exports(){return an},set exports(e){an=e}},sn={},Cd={get exports(){return sn},set exports(e){sn=e}},ro;function pc(){return ro||(ro=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Be(),r=(0,n.__importDefault)(ze()),l=Object.prototype,o=l.hasOwnProperty;function y(h){var f=h.use(r.default),u=f.builtInTypes.array,a=f.builtInTypes.number,p=function v(E,b,A){if(!(this instanceof v))throw new Error("Path constructor cannot be invoked without 'new'");if(b){if(!(b instanceof v))throw new Error("")}else b=null,A=null;this.value=E,this.parentPath=b,this.name=A,this.__childCache=null},g=p.prototype;function m(v){return v.__childCache||(v.__childCache=Object.create(null))}function c(v,E){var b=m(v),A=v.getValueProperty(E),_=b[E];return(!o.call(b,E)||_.value!==A)&&(_=b[E]=new v.constructor(A,v,E)),_}g.getValueProperty=function(E){return this.value[E]},g.get=function(){for(var E=[],b=0;b<arguments.length;b++)E[b]=arguments[b];for(var A=this,_=E.length,D=0;D<_;++D)A=c(A,E[D]);return A},g.each=function(E,b){for(var A=[],_=this.value.length,D=0,D=0;D<_;++D)o.call(this.value,D)&&(A[D]=this.get(D));for(b=b||this,D=0;D<_;++D)o.call(A,D)&&E.call(b,A[D])},g.map=function(E,b){var A=[];return this.each(function(_){A.push(E.call(this,_))},b),A},g.filter=function(E,b){var A=[];return this.each(function(_){E.call(this,_)&&A.push(_)},b),A};function i(){}function s(v,E,b,A){if(u.assert(v.value),E===0)return i;var _=v.value.length;if(_<1)return i;var D=arguments.length;D===2?(b=0,A=_):D===3?(b=Math.max(b,0),A=_):(b=Math.max(b,0),A=Math.min(A,_)),a.assert(b),a.assert(A);for(var F=Object.create(null),B=m(v),N=b;N<A;++N)if(o.call(v.value,N)){var I=v.get(N);if(I.name!==N)throw new Error("");var R=N+E;I.name=R,F[R]=I,delete B[N]}return delete B.length,function(){for(var M in F){var $=F[M];if($.name!==+M)throw new Error("");B[M]=$,v.value[M]=$.value}}}g.shift=function(){var E=s(this,-1),b=this.value.shift();return E(),b},g.unshift=function(){for(var E=[],b=0;b<arguments.length;b++)E[b]=arguments[b];var A=s(this,E.length),_=this.value.unshift.apply(this.value,E);return A(),_},g.push=function(){for(var E=[],b=0;b<arguments.length;b++)E[b]=arguments[b];return u.assert(this.value),delete m(this).length,this.value.push.apply(this.value,E)},g.pop=function(){u.assert(this.value);var E=m(this);return delete E[this.value.length-1],delete E.length,this.value.pop()},g.insertAt=function(E){var b=arguments.length,A=s(this,b-1,E);if(A===i&&b<=1)return this;E=Math.max(E,0);for(var _=1;_<b;++_)this.value[E+_-1]=arguments[_];return A(),this},g.insertBefore=function(){for(var E=[],b=0;b<arguments.length;b++)E[b]=arguments[b];for(var A=this.parentPath,_=E.length,D=[this.name],F=0;F<_;++F)D.push(E[F]);return A.insertAt.apply(A,D)},g.insertAfter=function(){for(var E=[],b=0;b<arguments.length;b++)E[b]=arguments[b];for(var A=this.parentPath,_=E.length,D=[this.name+1],F=0;F<_;++F)D.push(E[F]);return A.insertAt.apply(A,D)};function d(v){if(!(v instanceof p))throw new Error("");var E=v.parentPath;if(!E)return v;var b=E.value,A=m(E);if(b[v.name]===v.value)A[v.name]=v;else if(u.check(b)){var _=b.indexOf(v.value);_>=0&&(A[v.name=_]=v)}else b[v.name]=v.value,A[v.name]=v;if(b[v.name]!==v.value)throw new Error("");if(v.parentPath.get(v.name)!==v)throw new Error("");return v}return g.replace=function(E){var b=[],A=this.parentPath.value,_=m(this.parentPath),D=arguments.length;if(d(this),u.check(A)){for(var F=A.length,B=s(this.parentPath,D-1,this.name+1),N=[this.name,1],I=0;I<D;++I)N.push(arguments[I]);var R=A.splice.apply(A,N);if(R[0]!==this.value)throw new Error("");if(A.length!==F-1+D)throw new Error("");if(B(),D===0)delete this.value,delete _[this.name],this.__childCache=null;else{if(A[this.name]!==E)throw new Error("");for(this.value!==E&&(this.value=E,this.__childCache=null),I=0;I<D;++I)b.push(this.parentPath.get(this.name+I));if(b[0]!==this)throw new Error("")}}else if(D===1)this.value!==E&&(this.__childCache=null),this.value=A[this.name]=E,b.push(this);else if(D===0)delete A[this.name],delete this.value,this.__childCache=null;else throw new Error("Could not replace path");return b},p}t.default=y,e.exports=t.default}(Cd,sn)),sn}var on={},_d={get exports(){return on},set exports(e){on=e}},no;function Fd(){return no||(no=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Be(),r=(0,n.__importDefault)(ze()),l=Object.prototype.hasOwnProperty;function o(y){var h=y.use(r.default),f=h.Type,u=h.namedTypes,a=u.Node,p=u.Expression,g=h.builtInTypes.array,m=h.builders,c=function N(I,R){if(!(this instanceof N))throw new Error("Scope constructor cannot be invoked without 'new'");s.check(I.value)||i.assert(I.value);var M;if(R){if(!(R instanceof N))throw new Error("");M=R.depth+1}else R=null,M=0;Object.defineProperties(this,{path:{value:I},node:{value:I.value},isGlobal:{value:!R,enumerable:!0},depth:{value:M},parent:{value:R},bindings:{value:{}},types:{value:{}}})},i=f.or(u.Program,u.Function,u.CatchClause),s=f.or(u.Function,u.ClassDeclaration,u.ClassExpression,u.InterfaceDeclaration,u.TSInterfaceDeclaration,u.TypeAlias,u.TSTypeAliasDeclaration),d=f.or(u.TypeParameter,u.TSTypeParameter);c.isEstablishedBy=function(N){return i.check(N)||s.check(N)};var v=c.prototype;v.didScan=!1,v.declares=function(N){return this.scan(),l.call(this.bindings,N)},v.declaresType=function(N){return this.scan(),l.call(this.types,N)},v.declareTemporary=function(N){if(N){if(!/^[a-z$_]/i.test(N))throw new Error("")}else N="t$";N+=this.depth.toString(36)+"$",this.scan();for(var I=0;this.declares(N+I);)++I;var R=N+I;return this.bindings[R]=h.builders.identifier(R)},v.injectTemporary=function(N,I){N||(N=this.declareTemporary());var R=this.path.get("body");return u.BlockStatement.check(R.value)&&(R=R.get("body")),R.unshift(m.variableDeclaration("var",[m.variableDeclarator(N,I||null)])),N},v.scan=function(N){if(N||!this.didScan){for(var I in this.bindings)delete this.bindings[I];for(var I in this.types)delete this.types[I];E(this.path,this.bindings,this.types),this.didScan=!0}},v.getBindings=function(){return this.scan(),this.bindings},v.getTypes=function(){return this.scan(),this.types};function E(N,I,R){var M=N.value;if(s.check(M)){var $=N.get("typeParameters","params");g.check($.value)&&$.each(function(z){B(z,R)})}i.check(M)&&(u.CatchClause.check(M)?D(N.get("param"),I):b(N,I,R))}function b(N,I,R){var M=N.value;N.parent&&u.FunctionExpression.check(N.parent.node)&&N.parent.node.id&&D(N.parent.get("id"),I),M&&(g.check(M)?N.each(function($){_($,I,R)}):u.Function.check(M)?(N.get("params").each(function($){D($,I)}),_(N.get("body"),I,R),b(N.get("typeParameters"),I,R)):u.TypeAlias&&u.TypeAlias.check(M)||u.InterfaceDeclaration&&u.InterfaceDeclaration.check(M)||u.TSTypeAliasDeclaration&&u.TSTypeAliasDeclaration.check(M)||u.TSInterfaceDeclaration&&u.TSInterfaceDeclaration.check(M)?F(N.get("id"),R):u.VariableDeclarator.check(M)?(D(N.get("id"),I),_(N.get("init"),I,R)):M.type==="ImportSpecifier"||M.type==="ImportNamespaceSpecifier"||M.type==="ImportDefaultSpecifier"?D(N.get(M.local?"local":M.name?"name":"id"),I):a.check(M)&&!p.check(M)&&h.eachField(M,function($,z){var X=N.get($);if(!A(X,z))throw new Error("");_(X,I,R)}))}function A(N,I){return!!(N.value===I||Array.isArray(N.value)&&N.value.length===0&&Array.isArray(I)&&I.length===0)}function _(N,I,R){var M=N.value;if(!(!M||p.check(M)))if(u.FunctionDeclaration.check(M)&&M.id!==null)D(N.get("id"),I);else if(u.ClassDeclaration&&u.ClassDeclaration.check(M)&&M.id!==null)D(N.get("id"),I),b(N.get("typeParameters"),I,R);else if(u.InterfaceDeclaration&&u.InterfaceDeclaration.check(M)||u.TSInterfaceDeclaration&&u.TSInterfaceDeclaration.check(M))F(N.get("id"),R);else if(i.check(M)){if(u.CatchClause.check(M)&&u.Identifier.check(M.param)){var $=M.param.name,z=l.call(I,$);b(N.get("body"),I,R),z||delete I[$]}}else b(N,I,R)}function D(N,I){var R=N.value;u.Pattern.assert(R),u.Identifier.check(R)?l.call(I,R.name)?I[R.name].push(N):I[R.name]=[N]:u.AssignmentPattern&&u.AssignmentPattern.check(R)?D(N.get("left"),I):u.ObjectPattern&&u.ObjectPattern.check(R)?N.get("properties").each(function(M){var $=M.value;u.Pattern.check($)?D(M,I):u.Property.check($)||u.ObjectProperty&&u.ObjectProperty.check($)?D(M.get("value"),I):u.SpreadProperty&&u.SpreadProperty.check($)&&D(M.get("argument"),I)}):u.ArrayPattern&&u.ArrayPattern.check(R)?N.get("elements").each(function(M){var $=M.value;u.Pattern.check($)?D(M,I):u.SpreadElement&&u.SpreadElement.check($)&&D(M.get("argument"),I)}):u.PropertyPattern&&u.PropertyPattern.check(R)?D(N.get("pattern"),I):(u.SpreadElementPattern&&u.SpreadElementPattern.check(R)||u.RestElement&&u.RestElement.check(R)||u.SpreadPropertyPattern&&u.SpreadPropertyPattern.check(R))&&D(N.get("argument"),I)}function F(N,I){var R=N.value;u.Pattern.assert(R),u.Identifier.check(R)&&(l.call(I,R.name)?I[R.name].push(N):I[R.name]=[N])}function B(N,I){var R=N.value;d.assert(R),l.call(I,R.name)?I[R.name].push(N):I[R.name]=[N]}return v.lookup=function(N){for(var I=this;I&&!I.declares(N);I=I.parent);return I},v.lookupType=function(N){for(var I=this;I&&!I.declaresType(N);I=I.parent);return I},v.getGlobalScope=function(){for(var N=this;!N.isGlobal;)N=N.parent;return N},c}t.default=o,e.exports=t.default}(_d,on)),on}var io;function hc(){return io||(io=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Be(),r=(0,n.__importDefault)(ze()),l=(0,n.__importDefault)(pc()),o=(0,n.__importDefault)(Fd());function y(h){var f=h.use(r.default),u=f.namedTypes,a=f.builders,p=f.builtInTypes.number,g=f.builtInTypes.array,m=h.use(l.default),c=h.use(o.default),i=function D(F,B,N){if(!(this instanceof D))throw new Error("NodePath constructor cannot be invoked without 'new'");m.call(this,F,B,N)},s=i.prototype=Object.create(m.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}});Object.defineProperties(s,{node:{get:function(){return Object.defineProperty(this,"node",{configurable:!0,value:this._computeNode()}),this.node}},parent:{get:function(){return Object.defineProperty(this,"parent",{configurable:!0,value:this._computeParent()}),this.parent}},scope:{get:function(){return Object.defineProperty(this,"scope",{configurable:!0,value:this._computeScope()}),this.scope}}}),s.replace=function(){return delete this.node,delete this.parent,delete this.scope,m.prototype.replace.apply(this,arguments)},s.prune=function(){var D=this.parent;return this.replace(),A(D)},s._computeNode=function(){var D=this.value;if(u.Node.check(D))return D;var F=this.parentPath;return F&&F.node||null},s._computeParent=function(){var D=this.value,F=this.parentPath;if(!u.Node.check(D)){for(;F&&!u.Node.check(F.value);)F=F.parentPath;F&&(F=F.parentPath)}for(;F&&!u.Node.check(F.value);)F=F.parentPath;return F||null},s._computeScope=function(){var D=this.value,F=this.parentPath,B=F&&F.scope;return u.Node.check(D)&&c.isEstablishedBy(D)&&(B=new c(this,B)),B||null},s.getValueProperty=function(D){return f.getFieldValue(this.value,D)},s.needsParens=function(D){var F=this.parentPath;if(!F)return!1;var B=this.value;if(!u.Expression.check(B)||B.type==="Identifier")return!1;for(;!u.Node.check(F.value);)if(F=F.parentPath,!F)return!1;var N=F.value;switch(B.type){case"UnaryExpression":case"SpreadElement":case"SpreadProperty":return N.type==="MemberExpression"&&this.name==="object"&&N.object===B;case"BinaryExpression":case"LogicalExpression":switch(N.type){case"CallExpression":return this.name==="callee"&&N.callee===B;case"UnaryExpression":case"SpreadElement":case"SpreadProperty":return!0;case"MemberExpression":return this.name==="object"&&N.object===B;case"BinaryExpression":case"LogicalExpression":{var I=B,R=N.operator,M=v[R],$=I.operator,z=v[$];if(M>z)return!0;if(M===z&&this.name==="right"){if(N.right!==I)throw new Error("Nodes must be equal");return!0}}default:return!1}case"SequenceExpression":switch(N.type){case"ForStatement":return!1;case"ExpressionStatement":return this.name!=="expression";default:return!0}case"YieldExpression":switch(N.type){case"BinaryExpression":case"LogicalExpression":case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"CallExpression":case"MemberExpression":case"NewExpression":case"ConditionalExpression":case"YieldExpression":return!0;default:return!1}case"Literal":return N.type==="MemberExpression"&&p.check(B.value)&&this.name==="object"&&N.object===B;case"AssignmentExpression":case"ConditionalExpression":switch(N.type){case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"BinaryExpression":case"LogicalExpression":return!0;case"CallExpression":return this.name==="callee"&&N.callee===B;case"ConditionalExpression":return this.name==="test"&&N.test===B;case"MemberExpression":return this.name==="object"&&N.object===B;default:return!1}default:if(N.type==="NewExpression"&&this.name==="callee"&&N.callee===B)return E(B)}return!!(D!==!0&&!this.canBeFirstInStatement()&&this.firstInStatement())};function d(D){return u.BinaryExpression.check(D)||u.LogicalExpression.check(D)}var v={};[["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"]].forEach(function(D,F){D.forEach(function(B){v[B]=F})});function E(D){return u.CallExpression.check(D)?!0:g.check(D)?D.some(E):u.Node.check(D)?f.someField(D,function(F,B){return E(B)}):!1}s.canBeFirstInStatement=function(){var D=this.node;return!u.FunctionExpression.check(D)&&!u.ObjectExpression.check(D)},s.firstInStatement=function(){return b(this)};function b(D){for(var F,B;D.parent;D=D.parent){if(F=D.node,B=D.parent.node,u.BlockStatement.check(B)&&D.parent.name==="body"&&D.name===0){if(B.body[0]!==F)throw new Error("Nodes must be equal");return!0}if(u.ExpressionStatement.check(B)&&D.name==="expression"){if(B.expression!==F)throw new Error("Nodes must be equal");return!0}if(u.SequenceExpression.check(B)&&D.parent.name==="expressions"&&D.name===0){if(B.expressions[0]!==F)throw new Error("Nodes must be equal");continue}if(u.CallExpression.check(B)&&D.name==="callee"){if(B.callee!==F)throw new Error("Nodes must be equal");continue}if(u.MemberExpression.check(B)&&D.name==="object"){if(B.object!==F)throw new Error("Nodes must be equal");continue}if(u.ConditionalExpression.check(B)&&D.name==="test"){if(B.test!==F)throw new Error("Nodes must be equal");continue}if(d(B)&&D.name==="left"){if(B.left!==F)throw new Error("Nodes must be equal");continue}if(u.UnaryExpression.check(B)&&!B.prefix&&D.name==="argument"){if(B.argument!==F)throw new Error("Nodes must be equal");continue}return!1}return!0}function A(D){if(u.VariableDeclaration.check(D.node)){var F=D.get("declarations").value;if(!F||F.length===0)return D.prune()}else if(u.ExpressionStatement.check(D.node)){if(!D.get("expression").value)return D.prune()}else u.IfStatement.check(D.node)&&_(D);return D}function _(D){var F=D.get("test").value,B=D.get("alternate").value,N=D.get("consequent").value;if(!N&&!B){var I=a.expressionStatement(F);D.replace(I)}else if(!N&&B){var R=a.unaryExpression("!",F,!0);u.UnaryExpression.check(F)&&F.operator==="!"&&(R=F.argument),D.get("test").replace(R),D.get("consequent").replace(B),D.get("alternate").replace()}}return i}t.default=y,e.exports=t.default}(Td,an)),an}var ao;function Pd(){return ao||(ao=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Be(),r=(0,n.__importDefault)(ze()),l=(0,n.__importDefault)(hc()),o=Object.prototype.hasOwnProperty;function y(h){var f=h.use(r.default),u=h.use(l.default),a=f.builtInTypes.array,p=f.builtInTypes.object,g=f.builtInTypes.function,m,c=function A(){if(!(this instanceof A))throw new Error("PathVisitor constructor cannot be invoked without 'new'");this._reusableContextStack=[],this._methodNameTable=i(this),this._shouldVisitComments=o.call(this._methodNameTable,"Block")||o.call(this._methodNameTable,"Line"),this.Context=E(this),this._visiting=!1,this._changeReported=!1};function i(A){var _=Object.create(null);for(var D in A)/^visit[A-Z]/.test(D)&&(_[D.slice(5)]=!0);for(var F=f.computeSupertypeLookupTable(_),B=Object.create(null),N=Object.keys(F),I=N.length,R=0;R<I;++R){var M=N[R];D="visit"+F[M],g.check(A[D])&&(B[M]=D)}return B}c.fromMethodsObject=function(_){if(_ instanceof c)return _;if(!p.check(_))return new c;var D=function B(){if(!(this instanceof B))throw new Error("Visitor constructor cannot be invoked without 'new'");c.call(this)},F=D.prototype=Object.create(d);return F.constructor=D,s(F,_),s(D,c),g.assert(D.fromMethodsObject),g.assert(D.visit),new D};function s(A,_){for(var D in _)o.call(_,D)&&(A[D]=_[D]);return A}c.visit=function(_,D){return c.fromMethodsObject(D).visit(_)};var d=c.prototype;d.visit=function(){if(this._visiting)throw new Error("Recursively calling visitor.visit(path) resets visitor state. Try this.visit(path) or this.traverse(path) instead.");this._visiting=!0,this._changeReported=!1,this._abortRequested=!1;for(var A=arguments.length,_=new Array(A),D=0;D<A;++D)_[D]=arguments[D];_[0]instanceof u||(_[0]=new u({root:_[0]}).get("root")),this.reset.apply(this,_);var F;try{var B=this.visitWithoutReset(_[0]);F=!0}finally{if(this._visiting=!1,!F&&this._abortRequested)return _[0].value}return B},d.AbortRequest=function(){},d.abort=function(){var A=this;A._abortRequested=!0;var _=new A.AbortRequest;throw _.cancel=function(){A._abortRequested=!1},_},d.reset=function(A){},d.visitWithoutReset=function(A){if(this instanceof this.Context)return this.visitor.visitWithoutReset(A);if(!(A instanceof u))throw new Error("");var _=A.value,D=_&&typeof _=="object"&&typeof _.type=="string"&&this._methodNameTable[_.type];if(D){var F=this.acquireContext(A);try{return F.invokeVisitorMethod(D)}finally{this.releaseContext(F)}}else return v(A,this)};function v(A,_){if(!(A instanceof u))throw new Error("");if(!(_ instanceof c))throw new Error("");var D=A.value;if(a.check(D))A.each(_.visitWithoutReset,_);else if(p.check(D)){var F=f.getFieldNames(D);_._shouldVisitComments&&D.comments&&F.indexOf("comments")<0&&F.push("comments");for(var B=F.length,N=[],I=0;I<B;++I){var R=F[I];o.call(D,R)||(D[R]=f.getFieldValue(D,R)),N.push(A.get(R))}for(var I=0;I<B;++I)_.visitWithoutReset(N[I])}return A.value}d.acquireContext=function(A){return this._reusableContextStack.length===0?new this.Context(A):this._reusableContextStack.pop().reset(A)},d.releaseContext=function(A){if(!(A instanceof this.Context))throw new Error("");this._reusableContextStack.push(A),A.currentPath=null},d.reportChanged=function(){this._changeReported=!0},d.wasChangeReported=function(){return this._changeReported};function E(A){function _(F){if(!(this instanceof _))throw new Error("");if(!(this instanceof c))throw new Error("");if(!(F instanceof u))throw new Error("");Object.defineProperty(this,"visitor",{value:A,writable:!1,enumerable:!0,configurable:!1}),this.currentPath=F,this.needToCallTraverse=!0,Object.seal(this)}if(!(A instanceof c))throw new Error("");var D=_.prototype=Object.create(A);return D.constructor=_,s(D,b),_}var b=Object.create(null);return b.reset=function(_){if(!(this instanceof this.Context))throw new Error("");if(!(_ instanceof u))throw new Error("");return this.currentPath=_,this.needToCallTraverse=!0,this},b.invokeVisitorMethod=function(_){if(!(this instanceof this.Context))throw new Error("");if(!(this.currentPath instanceof u))throw new Error("");var D=this.visitor[_].call(this,this.currentPath);if(D===!1?this.needToCallTraverse=!1:D!==m&&(this.currentPath=this.currentPath.replace(D)[0],this.needToCallTraverse&&this.traverse(this.currentPath)),this.needToCallTraverse!==!1)throw new Error("Must either call this.traverse or return false in "+_);var F=this.currentPath;return F&&F.value},b.traverse=function(_,D){if(!(this instanceof this.Context))throw new Error("");if(!(_ instanceof u))throw new Error("");if(!(this.currentPath instanceof u))throw new Error("");return this.needToCallTraverse=!1,v(_,c.fromMethodsObject(D||this.visitor))},b.visit=function(_,D){if(!(this instanceof this.Context))throw new Error("");if(!(_ instanceof u))throw new Error("");if(!(this.currentPath instanceof u))throw new Error("");return this.needToCallTraverse=!1,c.fromMethodsObject(D||this.visitor).visitWithoutReset(_)},b.reportChanged=function(){this.visitor.reportChanged()},b.abort=function(){this.needToCallTraverse=!1,this.visitor.abort()},c}t.default=y,e.exports=t.default}(Ad,nn)),nn}var un={},kd={get exports(){return un},set exports(e){un=e}},so;function Od(){return so||(so=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Be(),r=(0,n.__importDefault)(ze());function l(o){var y=o.use(r.default),h=y.getFieldNames,f=y.getFieldValue,u=y.builtInTypes.array,a=y.builtInTypes.object,p=y.builtInTypes.Date,g=y.builtInTypes.RegExp,m=Object.prototype.hasOwnProperty;function c(E,b,A){return u.check(A)?A.length=0:A=null,s(E,b,A)}c.assert=function(E,b){var A=[];if(!c(E,b,A))if(A.length===0){if(E!==b)throw new Error("Nodes must be equal")}else throw new Error("Nodes differ in the following path: "+A.map(i).join(""))};function i(E){return/[_$a-z][_$a-z0-9]*/i.test(E)?"."+E:"["+JSON.stringify(E)+"]"}function s(E,b,A){return E===b?!0:u.check(E)?d(E,b,A):a.check(E)?v(E,b,A):p.check(E)?p.check(b)&&+E==+b:g.check(E)?g.check(b)&&E.source===b.source&&E.global===b.global&&E.multiline===b.multiline&&E.ignoreCase===b.ignoreCase:E==b}function d(E,b,A){u.assert(E);var _=E.length;if(!u.check(b)||b.length!==_)return A&&A.push("length"),!1;for(var D=0;D<_;++D){if(A&&A.push(D),D in E!=D in b||!s(E[D],b[D],A))return!1;if(A){var F=A.pop();if(F!==D)throw new Error(""+F)}}return!0}function v(E,b,A){if(a.assert(E),!a.check(b))return!1;if(E.type!==b.type)return A&&A.push("type"),!1;var _=h(E),D=_.length,F=h(b),B=F.length;if(D===B){for(var N=0;N<D;++N){var I=_[N],R=f(E,I),M=f(b,I);if(A&&A.push(I),!s(R,M,A))return!1;if(A){var $=A.pop();if($!==I)throw new Error(""+$)}}return!0}if(!A)return!1;var z=Object.create(null);for(N=0;N<D;++N)z[_[N]]=!0;for(N=0;N<B;++N){if(I=F[N],!m.call(z,I))return A.push(I),!1;delete z[I]}for(I in z){A.push(I);break}return!1}return c}t.default=l,e.exports=t.default}(kd,un)),un}var oo;function Id(){return oo||(oo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Be(),r=(0,n.__importDefault)(ze()),l=(0,n.__importDefault)(Pd()),o=(0,n.__importDefault)(Od()),y=(0,n.__importDefault)(pc()),h=(0,n.__importDefault)(hc());function f(a){var p=u(),g=p.use(r.default);a.forEach(p.use),g.finalize();var m=p.use(l.default);return{Type:g.Type,builtInTypes:g.builtInTypes,namedTypes:g.namedTypes,builders:g.builders,defineMethod:g.defineMethod,getFieldNames:g.getFieldNames,getFieldValue:g.getFieldValue,eachField:g.eachField,someField:g.someField,getSupertypeNames:g.getSupertypeNames,getBuilderName:g.getBuilderName,astNodesAreEquivalent:p.use(o.default),finalize:g.finalize,Path:p.use(y.default),NodePath:p.use(h.default),PathVisitor:m,use:p.use,visit:m.visit}}t.default=f;function u(){var a=[],p=[];function g(c){var i=a.indexOf(c);return i===-1&&(i=a.length,a.push(c),p[i]=c(m)),p[i]}var m={use:g};return m}e.exports=t.default}(Dd,rn)),rn}var ln={},Bd={get exports(){return ln},set exports(e){ln=e}},cn={},Nd={get exports(){return cn},set exports(e){cn=e}},uo;function nt(){return uo||(uo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Be(),r=(0,n.__importDefault)(ze());function l(o){var y=o.use(r.default),h=y.Type,f=y.builtInTypes,u=f.number;function a(c){return h.from(function(i){return u.check(i)&&i>=c},u+" >= "+c)}var p={null:function(){return null},emptyArray:function(){return[]},false:function(){return!1},true:function(){return!0},undefined:function(){},"use strict":function(){return"use strict"}},g=h.or(f.string,f.number,f.boolean,f.null,f.undefined),m=h.from(function(c){if(c===null)return!0;var i=typeof c;return!(i==="object"||i==="function")},g.toString());return{geq:a,defaults:p,isPrimitive:m}}t.default=l,e.exports=t.default}(Nd,cn)),cn}var fn={},Md={get exports(){return fn},set exports(e){fn=e}},dn={},jd={get exports(){return dn},set exports(e){dn=e}},pn={},Ld={get exports(){return pn},set exports(e){pn=e}},hn={},Rd={get exports(){return hn},set exports(e){hn=e}},mn={},$d={get exports(){return mn},set exports(e){mn=e}},vn={},Vd={get exports(){return vn},set exports(e){vn=e}},lo;function mc(){return lo||(lo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function n(){return{BinaryOperators:["==","!=","===","!==","<","<=",">",">=","<<",">>",">>>","+","-","*","/","%","&","|","^","in","instanceof"],AssignmentOperators:["=","+=","-=","*=","/=","%=","<<=",">>=",">>>=","|=","^=","&="],LogicalOperators:["||","&&"]}}t.default=n,e.exports=t.default}(Vd,vn)),vn}var co;function vc(){return co||(co=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Be(),r=(0,n.__importDefault)(mc());function l(o){var y=o.use(r.default);return y.BinaryOperators.indexOf("**")<0&&y.BinaryOperators.push("**"),y.AssignmentOperators.indexOf("**=")<0&&y.AssignmentOperators.push("**="),y}t.default=l,e.exports=t.default}($d,mn)),mn}var fo;function yc(){return fo||(fo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Be(),r=(0,n.__importDefault)(vc());function l(o){var y=o.use(r.default);return y.LogicalOperators.indexOf("??")<0&&y.LogicalOperators.push("??"),y}t.default=l,e.exports=t.default}(Rd,hn)),hn}var po;function zd(){return po||(po=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Be(),r=(0,n.__importDefault)(yc());function l(o){var y=o.use(r.default);return y.LogicalOperators.forEach(function(h){var f=h+"=";y.AssignmentOperators.indexOf(f)<0&&y.AssignmentOperators.push(f)}),y}t.default=l,e.exports=t.default}(Ld,pn)),pn}var yn={},qd={get exports(){return yn},set exports(e){yn=e}},gn={},Ud={get exports(){return gn},set exports(e){gn=e}},bn={},Xd={get exports(){return bn},set exports(e){bn=e}},Sn={},Jd={get exports(){return Sn},set exports(e){Sn=e}},En={},Wd={get exports(){return En},set exports(e){En=e}},xn={},Hd={get exports(){return xn},set exports(e){xn=e}},wn={},Gd={get exports(){return wn},set exports(e){wn=e}},ho;function Kd(){return ho||(ho=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Be(),r=(0,n.__importDefault)(mc()),l=(0,n.__importDefault)(ze()),o=(0,n.__importDefault)(nt());function y(h){var f=h.use(l.default),u=f.Type,a=u.def,p=u.or,g=h.use(o.default),m=g.defaults,c=g.geq,i=h.use(r.default),s=i.BinaryOperators,d=i.AssignmentOperators,v=i.LogicalOperators;a("Printable").field("loc",p(a("SourceLocation"),null),m.null,!0),a("Node").bases("Printable").field("type",String).field("comments",p([a("Comment")],null),m.null,!0),a("SourceLocation").field("start",a("Position")).field("end",a("Position")).field("source",p(String,null),m.null),a("Position").field("line",c(1)).field("column",c(0)),a("File").bases("Node").build("program","name").field("program",a("Program")).field("name",p(String,null),m.null),a("Program").bases("Node").build("body").field("body",[a("Statement")]),a("Function").bases("Node").field("id",p(a("Identifier"),null),m.null).field("params",[a("Pattern")]).field("body",a("BlockStatement")).field("generator",Boolean,m.false).field("async",Boolean,m.false),a("Statement").bases("Node"),a("EmptyStatement").bases("Statement").build(),a("BlockStatement").bases("Statement").build("body").field("body",[a("Statement")]),a("ExpressionStatement").bases("Statement").build("expression").field("expression",a("Expression")),a("IfStatement").bases("Statement").build("test","consequent","alternate").field("test",a("Expression")).field("consequent",a("Statement")).field("alternate",p(a("Statement"),null),m.null),a("LabeledStatement").bases("Statement").build("label","body").field("label",a("Identifier")).field("body",a("Statement")),a("BreakStatement").bases("Statement").build("label").field("label",p(a("Identifier"),null),m.null),a("ContinueStatement").bases("Statement").build("label").field("label",p(a("Identifier"),null),m.null),a("WithStatement").bases("Statement").build("object","body").field("object",a("Expression")).field("body",a("Statement")),a("SwitchStatement").bases("Statement").build("discriminant","cases","lexical").field("discriminant",a("Expression")).field("cases",[a("SwitchCase")]).field("lexical",Boolean,m.false),a("ReturnStatement").bases("Statement").build("argument").field("argument",p(a("Expression"),null)),a("ThrowStatement").bases("Statement").build("argument").field("argument",a("Expression")),a("TryStatement").bases("Statement").build("block","handler","finalizer").field("block",a("BlockStatement")).field("handler",p(a("CatchClause"),null),function(){return this.handlers&&this.handlers[0]||null}).field("handlers",[a("CatchClause")],function(){return this.handler?[this.handler]:[]},!0).field("guardedHandlers",[a("CatchClause")],m.emptyArray).field("finalizer",p(a("BlockStatement"),null),m.null),a("CatchClause").bases("Node").build("param","guard","body").field("param",a("Pattern")).field("guard",p(a("Expression"),null),m.null).field("body",a("BlockStatement")),a("WhileStatement").bases("Statement").build("test","body").field("test",a("Expression")).field("body",a("Statement")),a("DoWhileStatement").bases("Statement").build("body","test").field("body",a("Statement")).field("test",a("Expression")),a("ForStatement").bases("Statement").build("init","test","update","body").field("init",p(a("VariableDeclaration"),a("Expression"),null)).field("test",p(a("Expression"),null)).field("update",p(a("Expression"),null)).field("body",a("Statement")),a("ForInStatement").bases("Statement").build("left","right","body").field("left",p(a("VariableDeclaration"),a("Expression"))).field("right",a("Expression")).field("body",a("Statement")),a("DebuggerStatement").bases("Statement").build(),a("Declaration").bases("Statement"),a("FunctionDeclaration").bases("Function","Declaration").build("id","params","body").field("id",a("Identifier")),a("FunctionExpression").bases("Function","Expression").build("id","params","body"),a("VariableDeclaration").bases("Declaration").build("kind","declarations").field("kind",p("var","let","const")).field("declarations",[a("VariableDeclarator")]),a("VariableDeclarator").bases("Node").build("id","init").field("id",a("Pattern")).field("init",p(a("Expression"),null),m.null),a("Expression").bases("Node"),a("ThisExpression").bases("Expression").build(),a("ArrayExpression").bases("Expression").build("elements").field("elements",[p(a("Expression"),null)]),a("ObjectExpression").bases("Expression").build("properties").field("properties",[a("Property")]),a("Property").bases("Node").build("kind","key","value").field("kind",p("init","get","set")).field("key",p(a("Literal"),a("Identifier"))).field("value",a("Expression")),a("SequenceExpression").bases("Expression").build("expressions").field("expressions",[a("Expression")]);var E=p("-","+","!","~","typeof","void","delete");a("UnaryExpression").bases("Expression").build("operator","argument","prefix").field("operator",E).field("argument",a("Expression")).field("prefix",Boolean,m.true);var b=p.apply(void 0,s);a("BinaryExpression").bases("Expression").build("operator","left","right").field("operator",b).field("left",a("Expression")).field("right",a("Expression"));var A=p.apply(void 0,d);a("AssignmentExpression").bases("Expression").build("operator","left","right").field("operator",A).field("left",p(a("Pattern"),a("MemberExpression"))).field("right",a("Expression"));var _=p("++","--");a("UpdateExpression").bases("Expression").build("operator","argument","prefix").field("operator",_).field("argument",a("Expression")).field("prefix",Boolean);var D=p.apply(void 0,v);a("LogicalExpression").bases("Expression").build("operator","left","right").field("operator",D).field("left",a("Expression")).field("right",a("Expression")),a("ConditionalExpression").bases("Expression").build("test","consequent","alternate").field("test",a("Expression")).field("consequent",a("Expression")).field("alternate",a("Expression")),a("NewExpression").bases("Expression").build("callee","arguments").field("callee",a("Expression")).field("arguments",[a("Expression")]),a("CallExpression").bases("Expression").build("callee","arguments").field("callee",a("Expression")).field("arguments",[a("Expression")]),a("MemberExpression").bases("Expression").build("object","property","computed").field("object",a("Expression")).field("property",p(a("Identifier"),a("Expression"))).field("computed",Boolean,function(){var F=this.property.type;return F==="Literal"||F==="MemberExpression"||F==="BinaryExpression"}),a("Pattern").bases("Node"),a("SwitchCase").bases("Node").build("test","consequent").field("test",p(a("Expression"),null)).field("consequent",[a("Statement")]),a("Identifier").bases("Expression","Pattern").build("name").field("name",String).field("optional",Boolean,m.false),a("Literal").bases("Expression").build("value").field("value",p(String,Boolean,null,Number,RegExp,BigInt)),a("Comment").bases("Printable").field("value",String).field("leading",Boolean,m.true).field("trailing",Boolean,m.false)}t.default=y,e.exports=t.default}(Gd,wn)),wn}var mo;function Yd(){return mo||(mo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Be(),r=(0,n.__importDefault)(Kd()),l=(0,n.__importDefault)(ze()),o=(0,n.__importDefault)(nt());function y(h){h.use(r.default);var f=h.use(l.default),u=f.Type.def,a=f.Type.or,p=h.use(o.default).defaults;u("Function").field("generator",Boolean,p.false).field("expression",Boolean,p.false).field("defaults",[a(u("Expression"),null)],p.emptyArray).field("rest",a(u("Identifier"),null),p.null),u("RestElement").bases("Pattern").build("argument").field("argument",u("Pattern")).field("typeAnnotation",a(u("TypeAnnotation"),u("TSTypeAnnotation"),null),p.null),u("SpreadElementPattern").bases("Pattern").build("argument").field("argument",u("Pattern")),u("FunctionDeclaration").build("id","params","body","generator","expression").field("id",a(u("Identifier"),null)),u("FunctionExpression").build("id","params","body","generator","expression"),u("ArrowFunctionExpression").bases("Function","Expression").build("params","body","expression").field("id",null,p.null).field("body",a(u("BlockStatement"),u("Expression"))).field("generator",!1,p.false),u("ForOfStatement").bases("Statement").build("left","right","body").field("left",a(u("VariableDeclaration"),u("Pattern"))).field("right",u("Expression")).field("body",u("Statement")),u("YieldExpression").bases("Expression").build("argument","delegate").field("argument",a(u("Expression"),null)).field("delegate",Boolean,p.false),u("GeneratorExpression").bases("Expression").build("body","blocks","filter").field("body",u("Expression")).field("blocks",[u("ComprehensionBlock")]).field("filter",a(u("Expression"),null)),u("ComprehensionExpression").bases("Expression").build("body","blocks","filter").field("body",u("Expression")).field("blocks",[u("ComprehensionBlock")]).field("filter",a(u("Expression"),null)),u("ComprehensionBlock").bases("Node").build("left","right","each").field("left",u("Pattern")).field("right",u("Expression")).field("each",Boolean),u("Property").field("key",a(u("Literal"),u("Identifier"),u("Expression"))).field("value",a(u("Expression"),u("Pattern"))).field("method",Boolean,p.false).field("shorthand",Boolean,p.false).field("computed",Boolean,p.false),u("ObjectProperty").field("shorthand",Boolean,p.false),u("PropertyPattern").bases("Pattern").build("key","pattern").field("key",a(u("Literal"),u("Identifier"),u("Expression"))).field("pattern",u("Pattern")).field("computed",Boolean,p.false),u("ObjectPattern").bases("Pattern").build("properties").field("properties",[a(u("PropertyPattern"),u("Property"))]),u("ArrayPattern").bases("Pattern").build("elements").field("elements",[a(u("Pattern"),null)]),u("SpreadElement").bases("Node").build("argument").field("argument",u("Expression")),u("ArrayExpression").field("elements",[a(u("Expression"),u("SpreadElement"),u("RestElement"),null)]),u("NewExpression").field("arguments",[a(u("Expression"),u("SpreadElement"))]),u("CallExpression").field("arguments",[a(u("Expression"),u("SpreadElement"))]),u("AssignmentPattern").bases("Pattern").build("left","right").field("left",u("Pattern")).field("right",u("Expression")),u("MethodDefinition").bases("Declaration").build("kind","key","value","static").field("kind",a("constructor","method","get","set")).field("key",u("Expression")).field("value",u("Function")).field("computed",Boolean,p.false).field("static",Boolean,p.false);var g=a(u("MethodDefinition"),u("VariableDeclarator"),u("ClassPropertyDefinition"),u("ClassProperty"));u("ClassProperty").bases("Declaration").build("key").field("key",a(u("Literal"),u("Identifier"),u("Expression"))).field("computed",Boolean,p.false),u("ClassPropertyDefinition").bases("Declaration").build("definition").field("definition",g),u("ClassBody").bases("Declaration").build("body").field("body",[g]),u("ClassDeclaration").bases("Declaration").build("id","body","superClass").field("id",a(u("Identifier"),null)).field("body",u("ClassBody")).field("superClass",a(u("Expression"),null),p.null),u("ClassExpression").bases("Expression").build("id","body","superClass").field("id",a(u("Identifier"),null),p.null).field("body",u("ClassBody")).field("superClass",a(u("Expression"),null),p.null),u("Super").bases("Expression").build(),u("Specifier").bases("Node"),u("ModuleSpecifier").bases("Specifier").field("local",a(u("Identifier"),null),p.null).field("id",a(u("Identifier"),null),p.null).field("name",a(u("Identifier"),null),p.null),u("ImportSpecifier").bases("ModuleSpecifier").build("imported","local").field("imported",u("Identifier")),u("ImportDefaultSpecifier").bases("ModuleSpecifier").build("local"),u("ImportNamespaceSpecifier").bases("ModuleSpecifier").build("local"),u("ImportDeclaration").bases("Declaration").build("specifiers","source","importKind").field("specifiers",[a(u("ImportSpecifier"),u("ImportNamespaceSpecifier"),u("ImportDefaultSpecifier"))],p.emptyArray).field("source",u("Literal")).field("importKind",a("value","type"),function(){return"value"}),u("ExportNamedDeclaration").bases("Declaration").build("declaration","specifiers","source").field("declaration",a(u("Declaration"),null)).field("specifiers",[u("ExportSpecifier")],p.emptyArray).field("source",a(u("Literal"),null),p.null),u("ExportSpecifier").bases("ModuleSpecifier").build("local","exported").field("exported",u("Identifier")),u("ExportDefaultDeclaration").bases("Declaration").build("declaration").field("declaration",a(u("Declaration"),u("Expression"))),u("ExportAllDeclaration").bases("Declaration").build("source").field("source",u("Literal")),u("TaggedTemplateExpression").bases("Expression").build("tag","quasi").field("tag",u("Expression")).field("quasi",u("TemplateLiteral")),u("TemplateLiteral").bases("Expression").build("quasis","expressions").field("quasis",[u("TemplateElement")]).field("expressions",[u("Expression")]),u("TemplateElement").bases("Node").build("value","tail").field("value",{cooked:String,raw:String}).field("tail",Boolean),u("MetaProperty").bases("Expression").build("meta","property").field("meta",u("Identifier")).field("property",u("Identifier"))}t.default=y,e.exports=t.default}(Hd,xn)),xn}var vo;function Qd(){return vo||(vo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Be(),r=(0,n.__importDefault)(vc()),l=(0,n.__importDefault)(Yd());function o(y){y.use(r.default),y.use(l.default)}t.default=o,e.exports=t.default}(Wd,En)),En}var yo;function Zd(){return yo||(yo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Be(),r=(0,n.__importDefault)(Qd()),l=(0,n.__importDefault)(ze()),o=(0,n.__importDefault)(nt());function y(h){h.use(r.default);var f=h.use(l.default),u=f.Type.def,a=h.use(o.default).defaults;u("Function").field("async",Boolean,a.false),u("AwaitExpression").bases("Expression").build("argument").field("argument",u("Expression"))}t.default=y,e.exports=t.default}(Jd,Sn)),Sn}var go;function ep(){return go||(go=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Be(),r=(0,n.__importDefault)(Zd()),l=(0,n.__importDefault)(ze()),o=(0,n.__importDefault)(nt());function y(h){h.use(r.default);var f=h.use(l.default),u=f.Type.def,a=f.Type.or,p=h.use(o.default).defaults;u("ForOfStatement").field("await",Boolean,p.false),u("SpreadProperty").bases("Node").build("argument").field("argument",u("Expression")),u("ObjectExpression").field("properties",[a(u("Property"),u("SpreadProperty"),u("SpreadElement"))]),u("TemplateElement").field("value",{cooked:a(String,null),raw:String}),u("SpreadPropertyPattern").bases("Pattern").build("argument").field("argument",u("Pattern")),u("ObjectPattern").field("properties",[a(u("PropertyPattern"),u("Property"),u("RestElement"),u("SpreadPropertyPattern"))])}t.default=y,e.exports=t.default}(Xd,bn)),bn}var bo;function tp(){return bo||(bo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Be(),r=(0,n.__importDefault)(ep()),l=(0,n.__importDefault)(ze()),o=(0,n.__importDefault)(nt());function y(h){h.use(r.default);var f=h.use(l.default),u=f.Type.def,a=f.Type.or,p=h.use(o.default).defaults;u("CatchClause").field("param",a(u("Pattern"),null),p.null)}t.default=y,e.exports=t.default}(Ud,gn)),gn}var So;function rp(){return So||(So=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Be(),r=(0,n.__importDefault)(yc()),l=(0,n.__importDefault)(tp()),o=(0,n.__importDefault)(ze()),y=(0,n.__importDefault)(nt());function h(f){f.use(r.default),f.use(l.default);var u=f.use(o.default),a=u.Type.def,p=u.Type.or,g=f.use(y.default),m=g.defaults;a("ImportExpression").bases("Expression").build("source").field("source",a("Expression")),a("ExportAllDeclaration").build("source","exported").field("source",a("Literal")).field("exported",p(a("Identifier"),null)),a("ChainElement").bases("Node").field("optional",Boolean,m.false),a("CallExpression").bases("Expression","ChainElement"),a("MemberExpression").bases("Expression","ChainElement"),a("ChainExpression").bases("Expression").build("expression").field("expression",a("ChainElement")),a("OptionalCallExpression").bases("CallExpression").build("callee","arguments","optional").field("optional",Boolean,m.true),a("OptionalMemberExpression").bases("MemberExpression").build("object","property","computed","optional").field("optional",Boolean,m.true)}t.default=h,e.exports=t.default}(qd,yn)),yn}var Eo;function np(){return Eo||(Eo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Be(),r=(0,n.__importDefault)(zd()),l=(0,n.__importDefault)(rp());function o(y){y.use(r.default),y.use(l.default)}t.default=o,e.exports=t.default}(jd,dn)),dn}var xo;function ip(){return xo||(xo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Be(),r=(0,n.__importDefault)(np()),l=(0,n.__importDefault)(ze());function o(y){y.use(r.default);var h=y.use(l.default),f=h.Type.def;f("StaticBlock").bases("Declaration").build("body").field("body",[f("Statement")])}t.default=o,e.exports=t.default}(Md,fn)),fn}var wo;function Xn(){return wo||(wo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Be(),r=(0,n.__importDefault)(ze()),l=(0,n.__importDefault)(nt()),o=(0,n.__importDefault)(ip());function y(h){h.use(o.default);var f=h.use(r.default),u=f.Type,a=f.Type.def,p=u.or,g=h.use(l.default),m=g.defaults;a("AwaitExpression").build("argument","all").field("argument",p(a("Expression"),null)).field("all",Boolean,m.false),a("Decorator").bases("Node").build("expression").field("expression",a("Expression")),a("Property").field("decorators",p([a("Decorator")],null),m.null),a("MethodDefinition").field("decorators",p([a("Decorator")],null),m.null),a("PrivateName").bases("Expression","Pattern").build("id").field("id",a("Identifier")),a("ClassPrivateProperty").bases("ClassProperty").build("key","value").field("key",a("PrivateName")).field("value",p(a("Expression"),null),m.null),a("ImportAttribute").bases("Node").build("key","value").field("key",p(a("Identifier"),a("Literal"))).field("value",a("Expression")),["ImportDeclaration","ExportAllDeclaration","ExportNamedDeclaration"].forEach(function(c){a(c).field("assertions",[a("ImportAttribute")],m.emptyArray)}),a("RecordExpression").bases("Expression").build("properties").field("properties",[p(a("ObjectProperty"),a("ObjectMethod"),a("SpreadElement"))]),a("TupleExpression").bases("Expression").build("elements").field("elements",[p(a("Expression"),a("SpreadElement"),null)]),a("ModuleExpression").bases("Node").build("body").field("body",a("Program"))}t.default=y,e.exports=t.default}(Bd,ln)),ln}var Dn={},ap={get exports(){return Dn},set exports(e){Dn=e}},Do;function sp(){return Do||(Do=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Be(),r=(0,n.__importDefault)(Xn()),l=(0,n.__importDefault)(ze()),o=(0,n.__importDefault)(nt());function y(h){h.use(r.default);var f=h.use(l.default),u=f.Type.def,a=f.Type.or,p=h.use(o.default).defaults;u("JSXAttribute").bases("Node").build("name","value").field("name",a(u("JSXIdentifier"),u("JSXNamespacedName"))).field("value",a(u("Literal"),u("JSXExpressionContainer"),u("JSXElement"),u("JSXFragment"),null),p.null),u("JSXIdentifier").bases("Identifier").build("name").field("name",String),u("JSXNamespacedName").bases("Node").build("namespace","name").field("namespace",u("JSXIdentifier")).field("name",u("JSXIdentifier")),u("JSXMemberExpression").bases("MemberExpression").build("object","property").field("object",a(u("JSXIdentifier"),u("JSXMemberExpression"))).field("property",u("JSXIdentifier")).field("computed",Boolean,p.false);var g=a(u("JSXIdentifier"),u("JSXNamespacedName"),u("JSXMemberExpression"));u("JSXSpreadAttribute").bases("Node").build("argument").field("argument",u("Expression"));var m=[a(u("JSXAttribute"),u("JSXSpreadAttribute"))];u("JSXExpressionContainer").bases("Expression").build("expression").field("expression",a(u("Expression"),u("JSXEmptyExpression")));var c=[a(u("JSXText"),u("JSXExpressionContainer"),u("JSXSpreadChild"),u("JSXElement"),u("JSXFragment"),u("Literal"))];u("JSXElement").bases("Expression").build("openingElement","closingElement","children").field("openingElement",u("JSXOpeningElement")).field("closingElement",a(u("JSXClosingElement"),null),p.null).field("children",c,p.emptyArray).field("name",g,function(){return this.openingElement.name},!0).field("selfClosing",Boolean,function(){return this.openingElement.selfClosing},!0).field("attributes",m,function(){return this.openingElement.attributes},!0),u("JSXOpeningElement").bases("Node").build("name","attributes","selfClosing").field("name",g).field("attributes",m,p.emptyArray).field("selfClosing",Boolean,p.false),u("JSXClosingElement").bases("Node").build("name").field("name",g),u("JSXFragment").bases("Expression").build("openingFragment","closingFragment","children").field("openingFragment",u("JSXOpeningFragment")).field("closingFragment",u("JSXClosingFragment")).field("children",c,p.emptyArray),u("JSXOpeningFragment").bases("Node").build(),u("JSXClosingFragment").bases("Node").build(),u("JSXText").bases("Literal").build("value","raw").field("value",String).field("raw",String,function(){return this.value}),u("JSXEmptyExpression").bases("Node").build(),u("JSXSpreadChild").bases("Node").build("expression").field("expression",u("Expression"))}t.default=y,e.exports=t.default}(ap,Dn)),Dn}var An={},op={get exports(){return An},set exports(e){An=e}},Tn={},up={get exports(){return Tn},set exports(e){Tn=e}},Ao;function gc(){return Ao||(Ao=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Be(),r=(0,n.__importDefault)(ze()),l=(0,n.__importDefault)(nt());function o(y){var h=y.use(r.default),f=h.Type.def,u=h.Type.or,a=y.use(l.default).defaults,p=u(f("TypeAnnotation"),f("TSTypeAnnotation"),null),g=u(f("TypeParameterDeclaration"),f("TSTypeParameterDeclaration"),null);f("Identifier").field("typeAnnotation",p,a.null),f("ObjectPattern").field("typeAnnotation",p,a.null),f("Function").field("returnType",p,a.null).field("typeParameters",g,a.null),f("ClassProperty").build("key","value","typeAnnotation","static").field("value",u(f("Expression"),null)).field("static",Boolean,a.false).field("typeAnnotation",p,a.null),["ClassDeclaration","ClassExpression"].forEach(function(m){f(m).field("typeParameters",g,a.null).field("superTypeParameters",u(f("TypeParameterInstantiation"),f("TSTypeParameterInstantiation"),null),a.null).field("implements",u([f("ClassImplements")],[f("TSExpressionWithTypeArguments")]),a.emptyArray)})}t.default=o,e.exports=t.default}(up,Tn)),Tn}var To;function bc(){return To||(To=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Be(),r=(0,n.__importDefault)(Xn()),l=(0,n.__importDefault)(gc()),o=(0,n.__importDefault)(ze()),y=(0,n.__importDefault)(nt());function h(f){f.use(r.default),f.use(l.default);var u=f.use(o.default),a=u.Type.def,p=u.Type.or,g=f.use(y.default).defaults;a("Flow").bases("Node"),a("FlowType").bases("Flow"),a("AnyTypeAnnotation").bases("FlowType").build(),a("EmptyTypeAnnotation").bases("FlowType").build(),a("MixedTypeAnnotation").bases("FlowType").build(),a("VoidTypeAnnotation").bases("FlowType").build(),a("SymbolTypeAnnotation").bases("FlowType").build(),a("NumberTypeAnnotation").bases("FlowType").build(),a("BigIntTypeAnnotation").bases("FlowType").build(),a("NumberLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",Number).field("raw",String),a("NumericLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",Number).field("raw",String),a("BigIntLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",null).field("raw",String),a("StringTypeAnnotation").bases("FlowType").build(),a("StringLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",String).field("raw",String),a("BooleanTypeAnnotation").bases("FlowType").build(),a("BooleanLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",Boolean).field("raw",String),a("TypeAnnotation").bases("Node").build("typeAnnotation").field("typeAnnotation",a("FlowType")),a("NullableTypeAnnotation").bases("FlowType").build("typeAnnotation").field("typeAnnotation",a("FlowType")),a("NullLiteralTypeAnnotation").bases("FlowType").build(),a("NullTypeAnnotation").bases("FlowType").build(),a("ThisTypeAnnotation").bases("FlowType").build(),a("ExistsTypeAnnotation").bases("FlowType").build(),a("ExistentialTypeParam").bases("FlowType").build(),a("FunctionTypeAnnotation").bases("FlowType").build("params","returnType","rest","typeParameters").field("params",[a("FunctionTypeParam")]).field("returnType",a("FlowType")).field("rest",p(a("FunctionTypeParam"),null)).field("typeParameters",p(a("TypeParameterDeclaration"),null)),a("FunctionTypeParam").bases("Node").build("name","typeAnnotation","optional").field("name",p(a("Identifier"),null)).field("typeAnnotation",a("FlowType")).field("optional",Boolean),a("ArrayTypeAnnotation").bases("FlowType").build("elementType").field("elementType",a("FlowType")),a("ObjectTypeAnnotation").bases("FlowType").build("properties","indexers","callProperties").field("properties",[p(a("ObjectTypeProperty"),a("ObjectTypeSpreadProperty"))]).field("indexers",[a("ObjectTypeIndexer")],g.emptyArray).field("callProperties",[a("ObjectTypeCallProperty")],g.emptyArray).field("inexact",p(Boolean,void 0),g.undefined).field("exact",Boolean,g.false).field("internalSlots",[a("ObjectTypeInternalSlot")],g.emptyArray),a("Variance").bases("Node").build("kind").field("kind",p("plus","minus"));var m=p(a("Variance"),"plus","minus",null);a("ObjectTypeProperty").bases("Node").build("key","value","optional").field("key",p(a("Literal"),a("Identifier"))).field("value",a("FlowType")).field("optional",Boolean).field("variance",m,g.null),a("ObjectTypeIndexer").bases("Node").build("id","key","value").field("id",a("Identifier")).field("key",a("FlowType")).field("value",a("FlowType")).field("variance",m,g.null).field("static",Boolean,g.false),a("ObjectTypeCallProperty").bases("Node").build("value").field("value",a("FunctionTypeAnnotation")).field("static",Boolean,g.false),a("QualifiedTypeIdentifier").bases("Node").build("qualification","id").field("qualification",p(a("Identifier"),a("QualifiedTypeIdentifier"))).field("id",a("Identifier")),a("GenericTypeAnnotation").bases("FlowType").build("id","typeParameters").field("id",p(a("Identifier"),a("QualifiedTypeIdentifier"))).field("typeParameters",p(a("TypeParameterInstantiation"),null)),a("MemberTypeAnnotation").bases("FlowType").build("object","property").field("object",a("Identifier")).field("property",p(a("MemberTypeAnnotation"),a("GenericTypeAnnotation"))),a("IndexedAccessType").bases("FlowType").build("objectType","indexType").field("objectType",a("FlowType")).field("indexType",a("FlowType")),a("OptionalIndexedAccessType").bases("FlowType").build("objectType","indexType","optional").field("objectType",a("FlowType")).field("indexType",a("FlowType")).field("optional",Boolean),a("UnionTypeAnnotation").bases("FlowType").build("types").field("types",[a("FlowType")]),a("IntersectionTypeAnnotation").bases("FlowType").build("types").field("types",[a("FlowType")]),a("TypeofTypeAnnotation").bases("FlowType").build("argument").field("argument",a("FlowType")),a("ObjectTypeSpreadProperty").bases("Node").build("argument").field("argument",a("FlowType")),a("ObjectTypeInternalSlot").bases("Node").build("id","value","optional","static","method").field("id",a("Identifier")).field("value",a("FlowType")).field("optional",Boolean).field("static",Boolean).field("method",Boolean),a("TypeParameterDeclaration").bases("Node").build("params").field("params",[a("TypeParameter")]),a("TypeParameterInstantiation").bases("Node").build("params").field("params",[a("FlowType")]),a("TypeParameter").bases("FlowType").build("name","variance","bound","default").field("name",String).field("variance",m,g.null).field("bound",p(a("TypeAnnotation"),null),g.null).field("default",p(a("FlowType"),null),g.null),a("ClassProperty").field("variance",m,g.null),a("ClassImplements").bases("Node").build("id").field("id",a("Identifier")).field("superClass",p(a("Expression"),null),g.null).field("typeParameters",p(a("TypeParameterInstantiation"),null),g.null),a("InterfaceTypeAnnotation").bases("FlowType").build("body","extends").field("body",a("ObjectTypeAnnotation")).field("extends",p([a("InterfaceExtends")],null),g.null),a("InterfaceDeclaration").bases("Declaration").build("id","body","extends").field("id",a("Identifier")).field("typeParameters",p(a("TypeParameterDeclaration"),null),g.null).field("body",a("ObjectTypeAnnotation")).field("extends",[a("InterfaceExtends")]),a("DeclareInterface").bases("InterfaceDeclaration").build("id","body","extends"),a("InterfaceExtends").bases("Node").build("id").field("id",a("Identifier")).field("typeParameters",p(a("TypeParameterInstantiation"),null),g.null),a("TypeAlias").bases("Declaration").build("id","typeParameters","right").field("id",a("Identifier")).field("typeParameters",p(a("TypeParameterDeclaration"),null)).field("right",a("FlowType")),a("DeclareTypeAlias").bases("TypeAlias").build("id","typeParameters","right"),a("OpaqueType").bases("Declaration").build("id","typeParameters","impltype","supertype").field("id",a("Identifier")).field("typeParameters",p(a("TypeParameterDeclaration"),null)).field("impltype",a("FlowType")).field("supertype",p(a("FlowType"),null)),a("DeclareOpaqueType").bases("OpaqueType").build("id","typeParameters","supertype").field("impltype",p(a("FlowType"),null)),a("TypeCastExpression").bases("Expression").build("expression","typeAnnotation").field("expression",a("Expression")).field("typeAnnotation",a("TypeAnnotation")),a("TupleTypeAnnotation").bases("FlowType").build("types").field("types",[a("FlowType")]),a("DeclareVariable").bases("Statement").build("id").field("id",a("Identifier")),a("DeclareFunction").bases("Statement").build("id").field("id",a("Identifier")).field("predicate",p(a("FlowPredicate"),null),g.null),a("DeclareClass").bases("InterfaceDeclaration").build("id"),a("DeclareModule").bases("Statement").build("id","body").field("id",p(a("Identifier"),a("Literal"))).field("body",a("BlockStatement")),a("DeclareModuleExports").bases("Statement").build("typeAnnotation").field("typeAnnotation",a("TypeAnnotation")),a("DeclareExportDeclaration").bases("Declaration").build("default","declaration","specifiers","source").field("default",Boolean).field("declaration",p(a("DeclareVariable"),a("DeclareFunction"),a("DeclareClass"),a("FlowType"),a("TypeAlias"),a("DeclareOpaqueType"),a("InterfaceDeclaration"),null)).field("specifiers",[p(a("ExportSpecifier"),a("ExportBatchSpecifier"))],g.emptyArray).field("source",p(a("Literal"),null),g.null),a("DeclareExportAllDeclaration").bases("Declaration").build("source").field("source",p(a("Literal"),null),g.null),a("ImportDeclaration").field("importKind",p("value","type","typeof"),function(){return"value"}),a("FlowPredicate").bases("Flow"),a("InferredPredicate").bases("FlowPredicate").build(),a("DeclaredPredicate").bases("FlowPredicate").build("value").field("value",a("Expression")),a("Function").field("predicate",p(a("FlowPredicate"),null),g.null),a("CallExpression").field("typeArguments",p(null,a("TypeParameterInstantiation")),g.null),a("NewExpression").field("typeArguments",p(null,a("TypeParameterInstantiation")),g.null),a("EnumDeclaration").bases("Declaration").build("id","body").field("id",a("Identifier")).field("body",p(a("EnumBooleanBody"),a("EnumNumberBody"),a("EnumStringBody"),a("EnumSymbolBody"))),a("EnumBooleanBody").build("members","explicitType").field("members",[a("EnumBooleanMember")]).field("explicitType",Boolean),a("EnumNumberBody").build("members","explicitType").field("members",[a("EnumNumberMember")]).field("explicitType",Boolean),a("EnumStringBody").build("members","explicitType").field("members",p([a("EnumStringMember")],[a("EnumDefaultedMember")])).field("explicitType",Boolean),a("EnumSymbolBody").build("members").field("members",[a("EnumDefaultedMember")]),a("EnumBooleanMember").build("id","init").field("id",a("Identifier")).field("init",p(a("Literal"),Boolean)),a("EnumNumberMember").build("id","init").field("id",a("Identifier")).field("init",a("Literal")),a("EnumStringMember").build("id","init").field("id",a("Identifier")).field("init",a("Literal")),a("EnumDefaultedMember").build("id").field("id",a("Identifier"))}t.default=h,e.exports=t.default}(op,An)),An}var Cn={},lp={get exports(){return Cn},set exports(e){Cn=e}},Co;function cp(){return Co||(Co=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Be(),r=(0,n.__importDefault)(Xn()),l=(0,n.__importDefault)(ze()),o=(0,n.__importDefault)(nt());function y(h){h.use(r.default);var f=h.use(l.default),u=h.use(o.default).defaults,a=f.Type.def,p=f.Type.or;a("VariableDeclaration").field("declarations",[p(a("VariableDeclarator"),a("Identifier"))]),a("Property").field("value",p(a("Expression"),a("Pattern"))),a("ArrayPattern").field("elements",[p(a("Pattern"),a("SpreadElement"),null)]),a("ObjectPattern").field("properties",[p(a("Property"),a("PropertyPattern"),a("SpreadPropertyPattern"),a("SpreadProperty"))]),a("ExportSpecifier").bases("ModuleSpecifier").build("id","name"),a("ExportBatchSpecifier").bases("Specifier").build(),a("ExportDeclaration").bases("Declaration").build("default","declaration","specifiers","source").field("default",Boolean).field("declaration",p(a("Declaration"),a("Expression"),null)).field("specifiers",[p(a("ExportSpecifier"),a("ExportBatchSpecifier"))],u.emptyArray).field("source",p(a("Literal"),null),u.null),a("Block").bases("Comment").build("value","leading","trailing"),a("Line").bases("Comment").build("value","leading","trailing")}t.default=y,e.exports=t.default}(lp,Cn)),Cn}var _n={},fp={get exports(){return _n},set exports(e){_n=e}},Fn={},dp={get exports(){return Fn},set exports(e){Fn=e}},_o;function Sc(){return _o||(_o=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Be(),r=(0,n.__importDefault)(Xn()),l=(0,n.__importDefault)(ze()),o=(0,n.__importDefault)(nt());function y(h){var f,u,a,p,g;h.use(r.default);var m=h.use(l.default),c=h.use(o.default).defaults,i=m.Type.def,s=m.Type.or,d=m.builtInTypes.undefined;i("Noop").bases("Statement").build(),i("DoExpression").bases("Expression").build("body").field("body",[i("Statement")]),i("BindExpression").bases("Expression").build("object","callee").field("object",s(i("Expression"),null)).field("callee",i("Expression")),i("ParenthesizedExpression").bases("Expression").build("expression").field("expression",i("Expression")),i("ExportNamespaceSpecifier").bases("Specifier").build("exported").field("exported",i("Identifier")),i("ExportDefaultSpecifier").bases("Specifier").build("exported").field("exported",i("Identifier")),i("CommentBlock").bases("Comment").build("value","leading","trailing"),i("CommentLine").bases("Comment").build("value","leading","trailing"),i("Directive").bases("Node").build("value").field("value",i("DirectiveLiteral")),i("DirectiveLiteral").bases("Node","Expression").build("value").field("value",String,c["use strict"]),i("InterpreterDirective").bases("Node").build("value").field("value",String),i("BlockStatement").bases("Statement").build("body").field("body",[i("Statement")]).field("directives",[i("Directive")],c.emptyArray),i("Program").bases("Node").build("body").field("body",[i("Statement")]).field("directives",[i("Directive")],c.emptyArray).field("interpreter",s(i("InterpreterDirective"),null),c.null);function v(_,D){return _===void 0&&(_=String),["extra",{rawValue:_,raw:String},function(){var B=m.getFieldValue(this,"value");return{rawValue:B,raw:D?D(B):String(B)}}]}(f=i("StringLiteral").bases("Literal").build("value").field("value",String)).field.apply(f,v(String,function(_){return JSON.stringify(_)})),(u=i("NumericLiteral").bases("Literal").build("value").field("value",Number).field("raw",s(String,null),c.null)).field.apply(u,v(Number)),(a=i("BigIntLiteral").bases("Literal").build("value").field("value",s(String,Number))).field.apply(a,v(String,function(_){return _+"n"})),(p=i("DecimalLiteral").bases("Literal").build("value").field("value",String)).field.apply(p,v(String,function(_){return _+"m"})),i("NullLiteral").bases("Literal").build().field("value",null,c.null),i("BooleanLiteral").bases("Literal").build("value").field("value",Boolean),(g=i("RegExpLiteral").bases("Literal").build("pattern","flags").field("pattern",String).field("flags",String).field("value",RegExp,function(){return new RegExp(this.pattern,this.flags)})).field.apply(g,v(s(RegExp,d),function(_){return"/".concat(_.pattern,"/").concat(_.flags||"")})).field("regex",{pattern:String,flags:String},function(){return{pattern:this.pattern,flags:this.flags}});var E=s(i("Property"),i("ObjectMethod"),i("ObjectProperty"),i("SpreadProperty"),i("SpreadElement"));i("ObjectExpression").bases("Expression").build("properties").field("properties",[E]),i("ObjectMethod").bases("Node","Function").build("kind","key","params","body","computed").field("kind",s("method","get","set")).field("key",s(i("Literal"),i("Identifier"),i("Expression"))).field("params",[i("Pattern")]).field("body",i("BlockStatement")).field("computed",Boolean,c.false).field("generator",Boolean,c.false).field("async",Boolean,c.false).field("accessibility",s(i("Literal"),null),c.null).field("decorators",s([i("Decorator")],null),c.null),i("ObjectProperty").bases("Node").build("key","value").field("key",s(i("Literal"),i("Identifier"),i("Expression"))).field("value",s(i("Expression"),i("Pattern"))).field("accessibility",s(i("Literal"),null),c.null).field("computed",Boolean,c.false);var b=s(i("MethodDefinition"),i("VariableDeclarator"),i("ClassPropertyDefinition"),i("ClassProperty"),i("ClassPrivateProperty"),i("ClassMethod"),i("ClassPrivateMethod"));i("ClassBody").bases("Declaration").build("body").field("body",[b]),i("ClassMethod").bases("Declaration","Function").build("kind","key","params","body","computed","static").field("key",s(i("Literal"),i("Identifier"),i("Expression"))),i("ClassPrivateMethod").bases("Declaration","Function").build("key","params","body","kind","computed","static").field("key",i("PrivateName")),["ClassMethod","ClassPrivateMethod"].forEach(function(_){i(_).field("kind",s("get","set","method","constructor"),function(){return"method"}).field("body",i("BlockStatement")).field("computed",Boolean,c.false).field("static",s(Boolean,null),c.null).field("abstract",s(Boolean,null),c.null).field("access",s("public","private","protected",null),c.null).field("accessibility",s("public","private","protected",null),c.null).field("decorators",s([i("Decorator")],null),c.null).field("optional",s(Boolean,null),c.null)});var A=s(i("Property"),i("PropertyPattern"),i("SpreadPropertyPattern"),i("SpreadProperty"),i("ObjectProperty"),i("RestProperty"));i("ObjectPattern").bases("Pattern").build("properties").field("properties",[A]).field("decorators",s([i("Decorator")],null),c.null),i("SpreadProperty").bases("Node").build("argument").field("argument",i("Expression")),i("RestProperty").bases("Node").build("argument").field("argument",i("Expression")),i("ForAwaitStatement").bases("Statement").build("left","right","body").field("left",s(i("VariableDeclaration"),i("Expression"))).field("right",i("Expression")).field("body",i("Statement")),i("Import").bases("Expression").build()}t.default=y,e.exports=t.default}(dp,Fn)),Fn}var Fo;function pp(){return Fo||(Fo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Be(),r=(0,n.__importDefault)(ze()),l=(0,n.__importDefault)(Sc()),o=(0,n.__importDefault)(bc());function y(h){var f=h.use(r.default),u=f.Type.def;h.use(l.default),h.use(o.default),u("V8IntrinsicIdentifier").bases("Expression").build("name").field("name",String),u("TopicReference").bases("Expression").build()}t.default=y,e.exports=t.default}(fp,_n)),_n}var Pn={},hp={get exports(){return Pn},set exports(e){Pn=e}},Po;function mp(){return Po||(Po=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Be(),r=(0,n.__importDefault)(Sc()),l=(0,n.__importDefault)(gc()),o=(0,n.__importDefault)(ze()),y=(0,n.__importDefault)(nt());function h(f){f.use(r.default),f.use(l.default);var u=f.use(o.default),a=u.namedTypes,p=u.Type.def,g=u.Type.or,m=f.use(y.default).defaults,c=u.Type.from(function(v,E){return!!(a.StringLiteral&&a.StringLiteral.check(v,E)||a.Literal&&a.Literal.check(v,E)&&typeof v.value=="string")},"StringLiteral");p("TSType").bases("Node");var i=g(p("Identifier"),p("TSQualifiedName"));p("TSTypeReference").bases("TSType","TSHasOptionalTypeParameterInstantiation").build("typeName","typeParameters").field("typeName",i),p("TSHasOptionalTypeParameterInstantiation").field("typeParameters",g(p("TSTypeParameterInstantiation"),null),m.null),p("TSHasOptionalTypeParameters").field("typeParameters",g(p("TSTypeParameterDeclaration"),null,void 0),m.null),p("TSHasOptionalTypeAnnotation").field("typeAnnotation",g(p("TSTypeAnnotation"),null),m.null),p("TSQualifiedName").bases("Node").build("left","right").field("left",i).field("right",i),p("TSAsExpression").bases("Expression","Pattern").build("expression","typeAnnotation").field("expression",p("Expression")).field("typeAnnotation",p("TSType")).field("extra",g({parenthesized:Boolean},null),m.null),p("TSNonNullExpression").bases("Expression","Pattern").build("expression").field("expression",p("Expression")),["TSAnyKeyword","TSBigIntKeyword","TSBooleanKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword","TSIntrinsicKeyword","TSThisType"].forEach(function(v){p(v).bases("TSType").build()}),p("TSArrayType").bases("TSType").build("elementType").field("elementType",p("TSType")),p("TSLiteralType").bases("TSType").build("literal").field("literal",g(p("NumericLiteral"),p("StringLiteral"),p("BooleanLiteral"),p("TemplateLiteral"),p("UnaryExpression"))),p("TemplateLiteral").field("expressions",g([p("Expression")],[p("TSType")])),["TSUnionType","TSIntersectionType"].forEach(function(v){p(v).bases("TSType").build("types").field("types",[p("TSType")])}),p("TSConditionalType").bases("TSType").build("checkType","extendsType","trueType","falseType").field("checkType",p("TSType")).field("extendsType",p("TSType")).field("trueType",p("TSType")).field("falseType",p("TSType")),p("TSInferType").bases("TSType").build("typeParameter").field("typeParameter",p("TSTypeParameter")),p("TSParenthesizedType").bases("TSType").build("typeAnnotation").field("typeAnnotation",p("TSType"));var s=[g(p("Identifier"),p("RestElement"),p("ArrayPattern"),p("ObjectPattern"))];["TSFunctionType","TSConstructorType"].forEach(function(v){p(v).bases("TSType","TSHasOptionalTypeParameters","TSHasOptionalTypeAnnotation").build("parameters").field("parameters",s)}),p("TSDeclareFunction").bases("Declaration","TSHasOptionalTypeParameters").build("id","params","returnType").field("declare",Boolean,m.false).field("async",Boolean,m.false).field("generator",Boolean,m.false).field("id",g(p("Identifier"),null),m.null).field("params",[p("Pattern")]).field("returnType",g(p("TSTypeAnnotation"),p("Noop"),null),m.null),p("TSDeclareMethod").bases("Declaration","TSHasOptionalTypeParameters").build("key","params","returnType").field("async",Boolean,m.false).field("generator",Boolean,m.false).field("params",[p("Pattern")]).field("abstract",Boolean,m.false).field("accessibility",g("public","private","protected",void 0),m.undefined).field("static",Boolean,m.false).field("computed",Boolean,m.false).field("optional",Boolean,m.false).field("key",g(p("Identifier"),p("StringLiteral"),p("NumericLiteral"),p("Expression"))).field("kind",g("get","set","method","constructor"),function(){return"method"}).field("access",g("public","private","protected",void 0),m.undefined).field("decorators",g([p("Decorator")],null),m.null).field("returnType",g(p("TSTypeAnnotation"),p("Noop"),null),m.null),p("TSMappedType").bases("TSType").build("typeParameter","typeAnnotation").field("readonly",g(Boolean,"+","-"),m.false).field("typeParameter",p("TSTypeParameter")).field("optional",g(Boolean,"+","-"),m.false).field("typeAnnotation",g(p("TSType"),null),m.null),p("TSTupleType").bases("TSType").build("elementTypes").field("elementTypes",[g(p("TSType"),p("TSNamedTupleMember"))]),p("TSNamedTupleMember").bases("TSType").build("label","elementType","optional").field("label",p("Identifier")).field("optional",Boolean,m.false).field("elementType",p("TSType")),p("TSRestType").bases("TSType").build("typeAnnotation").field("typeAnnotation",p("TSType")),p("TSOptionalType").bases("TSType").build("typeAnnotation").field("typeAnnotation",p("TSType")),p("TSIndexedAccessType").bases("TSType").build("objectType","indexType").field("objectType",p("TSType")).field("indexType",p("TSType")),p("TSTypeOperator").bases("TSType").build("operator").field("operator",String).field("typeAnnotation",p("TSType")),p("TSTypeAnnotation").bases("Node").build("typeAnnotation").field("typeAnnotation",g(p("TSType"),p("TSTypeAnnotation"))),p("TSIndexSignature").bases("Declaration","TSHasOptionalTypeAnnotation").build("parameters","typeAnnotation").field("parameters",[p("Identifier")]).field("readonly",Boolean,m.false),p("TSPropertySignature").bases("Declaration","TSHasOptionalTypeAnnotation").build("key","typeAnnotation","optional").field("key",p("Expression")).field("computed",Boolean,m.false).field("readonly",Boolean,m.false).field("optional",Boolean,m.false).field("initializer",g(p("Expression"),null),m.null),p("TSMethodSignature").bases("Declaration","TSHasOptionalTypeParameters","TSHasOptionalTypeAnnotation").build("key","parameters","typeAnnotation").field("key",p("Expression")).field("computed",Boolean,m.false).field("optional",Boolean,m.false).field("parameters",s),p("TSTypePredicate").bases("TSTypeAnnotation","TSType").build("parameterName","typeAnnotation","asserts").field("parameterName",g(p("Identifier"),p("TSThisType"))).field("typeAnnotation",g(p("TSTypeAnnotation"),null),m.null).field("asserts",Boolean,m.false),["TSCallSignatureDeclaration","TSConstructSignatureDeclaration"].forEach(function(v){p(v).bases("Declaration","TSHasOptionalTypeParameters","TSHasOptionalTypeAnnotation").build("parameters","typeAnnotation").field("parameters",s)}),p("TSEnumMember").bases("Node").build("id","initializer").field("id",g(p("Identifier"),c)).field("initializer",g(p("Expression"),null),m.null),p("TSTypeQuery").bases("TSType").build("exprName").field("exprName",g(i,p("TSImportType")));var d=g(p("TSCallSignatureDeclaration"),p("TSConstructSignatureDeclaration"),p("TSIndexSignature"),p("TSMethodSignature"),p("TSPropertySignature"));p("TSTypeLiteral").bases("TSType").build("members").field("members",[d]),p("TSTypeParameter").bases("Identifier").build("name","constraint","default").field("name",String).field("constraint",g(p("TSType"),void 0),m.undefined).field("default",g(p("TSType"),void 0),m.undefined),p("TSTypeAssertion").bases("Expression","Pattern").build("typeAnnotation","expression").field("typeAnnotation",p("TSType")).field("expression",p("Expression")).field("extra",g({parenthesized:Boolean},null),m.null),p("TSTypeParameterDeclaration").bases("Declaration").build("params").field("params",[p("TSTypeParameter")]),p("TSTypeParameterInstantiation").bases("Node").build("params").field("params",[p("TSType")]),p("TSEnumDeclaration").bases("Declaration").build("id","members").field("id",p("Identifier")).field("const",Boolean,m.false).field("declare",Boolean,m.false).field("members",[p("TSEnumMember")]).field("initializer",g(p("Expression"),null),m.null),p("TSTypeAliasDeclaration").bases("Declaration","TSHasOptionalTypeParameters").build("id","typeAnnotation").field("id",p("Identifier")).field("declare",Boolean,m.false).field("typeAnnotation",p("TSType")),p("TSModuleBlock").bases("Node").build("body").field("body",[p("Statement")]),p("TSModuleDeclaration").bases("Declaration").build("id","body").field("id",g(c,i)).field("declare",Boolean,m.false).field("global",Boolean,m.false).field("body",g(p("TSModuleBlock"),p("TSModuleDeclaration"),null),m.null),p("TSImportType").bases("TSType","TSHasOptionalTypeParameterInstantiation").build("argument","qualifier","typeParameters").field("argument",c).field("qualifier",g(i,void 0),m.undefined),p("TSImportEqualsDeclaration").bases("Declaration").build("id","moduleReference").field("id",p("Identifier")).field("isExport",Boolean,m.false).field("moduleReference",g(i,p("TSExternalModuleReference"))),p("TSExternalModuleReference").bases("Declaration").build("expression").field("expression",c),p("TSExportAssignment").bases("Statement").build("expression").field("expression",p("Expression")),p("TSNamespaceExportDeclaration").bases("Declaration").build("id").field("id",p("Identifier")),p("TSInterfaceBody").bases("Node").build("body").field("body",[d]),p("TSExpressionWithTypeArguments").bases("TSType","TSHasOptionalTypeParameterInstantiation").build("expression","typeParameters").field("expression",i),p("TSInterfaceDeclaration").bases("Declaration","TSHasOptionalTypeParameters").build("id","body").field("id",i).field("declare",Boolean,m.false).field("extends",g([p("TSExpressionWithTypeArguments")],null),m.null).field("body",p("TSInterfaceBody")),p("TSParameterProperty").bases("Pattern").build("parameter").field("accessibility",g("public","private","protected",void 0),m.undefined).field("readonly",Boolean,m.false).field("parameter",g(p("Identifier"),p("AssignmentPattern"))),p("ClassProperty").field("access",g("public","private","protected",void 0),m.undefined),p("ClassBody").field("body",[g(p("MethodDefinition"),p("VariableDeclarator"),p("ClassPropertyDefinition"),p("ClassProperty"),p("ClassPrivateProperty"),p("ClassMethod"),p("ClassPrivateMethod"),p("TSDeclareMethod"),d)])}t.default=h,e.exports=t.default}(hp,Pn)),Pn}var Wi={},ko;function vp(){return ko||(ko=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.namedTypes=void 0,function(t){}(e.namedTypes||(e.namedTypes={}))}(Wi)),Wi}var Oo;function ir(){return Oo||(Oo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.visit=e.use=e.Type=e.someField=e.PathVisitor=e.Path=e.NodePath=e.namedTypes=e.getSupertypeNames=e.getFieldValue=e.getFieldNames=e.getBuilderName=e.finalize=e.eachField=e.defineMethod=e.builtInTypes=e.builders=e.astNodesAreEquivalent=void 0;var t=Be(),n=(0,t.__importDefault)(Id()),r=(0,t.__importDefault)(Xn()),l=(0,t.__importDefault)(sp()),o=(0,t.__importDefault)(bc()),y=(0,t.__importDefault)(cp()),h=(0,t.__importDefault)(pp()),f=(0,t.__importDefault)(mp()),u=vp();Object.defineProperty(e,"namedTypes",{enumerable:!0,get:function(){return u.namedTypes}});var a=(0,n.default)([r.default,l.default,o.default,y.default,h.default,f.default]),p=a.astNodesAreEquivalent,g=a.builders,m=a.builtInTypes,c=a.defineMethod,i=a.eachField,s=a.finalize,d=a.getBuilderName,v=a.getFieldNames,E=a.getFieldValue,b=a.getSupertypeNames,A=a.namedTypes,_=a.NodePath,D=a.Path,F=a.PathVisitor,B=a.someField,N=a.Type,I=a.use,R=a.visit;e.astNodesAreEquivalent=p,e.builders=g,e.builtInTypes=m,e.defineMethod=c,e.eachField=i,e.finalize=s,e.getBuilderName=d,e.getFieldNames=v,e.getFieldValue=E,e.getSupertypeNames=b,e.NodePath=_,e.Path=D,e.PathVisitor=F,e.someField=B,e.Type=N,e.use=I,e.visit=R,Object.assign(u.namedTypes,A)}(Ji)),Ji}var Jr={},yi={},yp={get exports(){return yi},set exports(e){yi=e}},Hi={},Gi={},Ki={},Yi,Io;function Ec(){return Io||(Io=1,Yi=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var l=42;t[n]=l;for(n in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var y=Object.getOwnPropertyDescriptor(t,n);if(y.value!==l||y.enumerable!==!0)return!1}return!0}),Yi}var Qi,Bo;function ki(){if(Bo)return Qi;Bo=1;var e=Ec();return Qi=function(){return e()&&!!Symbol.toStringTag},Qi}var Zi,No;function gp(){if(No)return Zi;No=1;var e=typeof Symbol<"u"&&Symbol,t=Ec();return Zi=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},Zi}var ea,Mo;function bp(){if(Mo)return ea;Mo=1;var e="Function.prototype.bind called on incompatible ",t=Array.prototype.slice,n=Object.prototype.toString,r="[object Function]";return ea=function(o){var y=this;if(typeof y!="function"||n.call(y)!==r)throw new TypeError(e+y);for(var h=t.call(arguments,1),f,u=function(){if(this instanceof f){var c=y.apply(this,h.concat(t.call(arguments)));return Object(c)===c?c:this}else return y.apply(o,h.concat(t.call(arguments)))},a=Math.max(0,y.length-h.length),p=[],g=0;g<a;g++)p.push("$"+g);if(f=Function("binder","return function ("+p.join(",")+"){ return binder.apply(this,arguments); }")(u),y.prototype){var m=function(){};m.prototype=y.prototype,f.prototype=new m,m.prototype=null}return f},ea}var ta,jo;function hs(){if(jo)return ta;jo=1;var e=bp();return ta=Function.prototype.bind||e,ta}var ra,Lo;function Sp(){if(Lo)return ra;Lo=1;var e=hs();return ra=e.call(Function.call,Object.prototype.hasOwnProperty),ra}var na,Ro;function Oi(){if(Ro)return na;Ro=1;var e,t=SyntaxError,n=Function,r=TypeError,l=function(I){try{return n('"use strict"; return ('+I+").constructor;")()}catch{}},o=Object.getOwnPropertyDescriptor;if(o)try{o({},"")}catch{o=null}var y=function(){throw new r},h=o?function(){try{return arguments.callee,y}catch{try{return o(arguments,"callee").get}catch{return y}}}():y,f=gp()(),u=Object.getPrototypeOf||function(I){return I.__proto__},a={},p=typeof Uint8Array>"u"?e:u(Uint8Array),g={"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":f?u([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":a,"%AsyncGenerator%":a,"%AsyncGeneratorFunction%":a,"%AsyncIteratorPrototype%":a,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":n,"%GeneratorFunction%":a,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":f?u(u([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!f?e:u(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!f?e:u(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f?u(""[Symbol.iterator]()):e,"%Symbol%":f?Symbol:e,"%SyntaxError%":t,"%ThrowTypeError%":h,"%TypedArray%":p,"%TypeError%":r,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet};try{null.error}catch(I){var m=u(u(I));g["%Error.prototype%"]=m}var c=function I(R){var M;if(R==="%AsyncFunction%")M=l("async function () {}");else if(R==="%GeneratorFunction%")M=l("function* () {}");else if(R==="%AsyncGeneratorFunction%")M=l("async function* () {}");else if(R==="%AsyncGenerator%"){var $=I("%AsyncGeneratorFunction%");$&&(M=$.prototype)}else if(R==="%AsyncIteratorPrototype%"){var z=I("%AsyncGenerator%");z&&(M=u(z.prototype))}return g[R]=M,M},i={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},s=hs(),d=Sp(),v=s.call(Function.call,Array.prototype.concat),E=s.call(Function.apply,Array.prototype.splice),b=s.call(Function.call,String.prototype.replace),A=s.call(Function.call,String.prototype.slice),_=s.call(Function.call,RegExp.prototype.exec),D=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,F=/\\(\\)?/g,B=function(R){var M=A(R,0,1),$=A(R,-1);if(M==="%"&&$!=="%")throw new t("invalid intrinsic syntax, expected closing `%`");if($==="%"&&M!=="%")throw new t("invalid intrinsic syntax, expected opening `%`");var z=[];return b(R,D,function(X,P,O,L){z[z.length]=O?b(L,F,"$1"):P||X}),z},N=function(R,M){var $=R,z;if(d(i,$)&&(z=i[$],$="%"+z[0]+"%"),d(g,$)){var X=g[$];if(X===a&&(X=c($)),typeof X>"u"&&!M)throw new r("intrinsic "+R+" exists, but is not available. Please file an issue!");return{alias:z,name:$,value:X}}throw new t("intrinsic "+R+" does not exist!")};return na=function(R,M){if(typeof R!="string"||R.length===0)throw new r("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof M!="boolean")throw new r('"allowMissing" argument must be a boolean');if(_(/^%?[^%]*%?$/,R)===null)throw new t("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var $=B(R),z=$.length>0?$[0]:"",X=N("%"+z+"%",M),P=X.name,O=X.value,L=!1,V=X.alias;V&&(z=V[0],E($,v([0,1],V)));for(var x=1,w=!0;x<$.length;x+=1){var S=$[x],T=A(S,0,1),C=A(S,-1);if((T==='"'||T==="'"||T==="`"||C==='"'||C==="'"||C==="`")&&T!==C)throw new t("property names with quotes must have matching quotes");if((S==="constructor"||!w)&&(L=!0),z+="."+S,P="%"+z+"%",d(g,P))O=g[P];else if(O!=null){if(!(S in O)){if(!M)throw new r("base intrinsic for "+R+" exists, but the property is not available.");return}if(o&&x+1>=$.length){var j=o(O,S);w=!!j,w&&"get"in j&&!("originalValue"in j.get)?O=j.get:O=O[S]}else w=d(O,S),O=O[S];w&&!L&&(g[P]=O)}}return O},na}var gi={},Ep={get exports(){return gi},set exports(e){gi=e}},$o;function ms(){return $o||($o=1,function(e){var t=hs(),n=Oi(),r=n("%Function.prototype.apply%"),l=n("%Function.prototype.call%"),o=n("%Reflect.apply%",!0)||t.call(l,r),y=n("%Object.getOwnPropertyDescriptor%",!0),h=n("%Object.defineProperty%",!0),f=n("%Math.max%");if(h)try{h({},"a",{value:1})}catch{h=null}e.exports=function(p){var g=o(t,l,arguments);if(y&&h){var m=y(g,"length");m.configurable&&h(g,"length",{value:1+f(0,p.length-(arguments.length-1))})}return g};var u=function(){return o(t,r,arguments)};h?h(e.exports,"apply",{value:u}):e.exports.apply=u}(Ep)),gi}var ia,Vo;function vs(){if(Vo)return ia;Vo=1;var e=Oi(),t=ms(),n=t(e("String.prototype.indexOf"));return ia=function(l,o){var y=e(l,!!o);return typeof y=="function"&&n(l,".prototype.")>-1?t(y):y},ia}var aa,zo;function xp(){if(zo)return aa;zo=1;var e=ki()(),t=vs(),n=t("Object.prototype.toString"),r=function(h){return e&&h&&typeof h=="object"&&Symbol.toStringTag in h?!1:n(h)==="[object Arguments]"},l=function(h){return r(h)?!0:h!==null&&typeof h=="object"&&typeof h.length=="number"&&h.length>=0&&n(h)!=="[object Array]"&&n(h.callee)==="[object Function]"},o=function(){return r(arguments)}();return r.isLegacyArguments=l,aa=o?r:l,aa}var sa,qo;function wp(){if(qo)return sa;qo=1;var e=Object.prototype.toString,t=Function.prototype.toString,n=/^\s*(?:function)?\*/,r=ki()(),l=Object.getPrototypeOf,o=function(){if(!r)return!1;try{return Function("return function*() {}")()}catch{}},y;return sa=function(f){if(typeof f!="function")return!1;if(n.test(t.call(f)))return!0;if(!r){var u=e.call(f);return u==="[object GeneratorFunction]"}if(!l)return!1;if(typeof y>"u"){var a=o();y=a?l(a):!1}return l(f)===y},sa}var oa,Uo;function Dp(){if(Uo)return oa;Uo=1;var e=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,n,r;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{n=Object.defineProperty({},"length",{get:function(){throw r}}),r={},t(function(){throw 42},null,n)}catch(v){v!==r&&(t=null)}else t=null;var l=/^\s*class\b/,o=function(E){try{var b=e.call(E);return l.test(b)}catch{return!1}},y=function(E){try{return o(E)?!1:(e.call(E),!0)}catch{return!1}},h=Object.prototype.toString,f="[object Object]",u="[object Function]",a="[object GeneratorFunction]",p="[object HTMLAllCollection]",g="[object HTML document.all class]",m="[object HTMLCollection]",c=typeof Symbol=="function"&&!!Symbol.toStringTag,i=!(0 in[,]),s=function(){return!1};if(typeof document=="object"){var d=document.all;h.call(d)===h.call(document.all)&&(s=function(E){if((i||!E)&&(typeof E>"u"||typeof E=="object"))try{var b=h.call(E);return(b===p||b===g||b===m||b===f)&&E("")==null}catch{}return!1})}return oa=t?function(E){if(s(E))return!0;if(!E||typeof E!="function"&&typeof E!="object")return!1;try{t(E,null,n)}catch(b){if(b!==r)return!1}return!o(E)&&y(E)}:function(E){if(s(E))return!0;if(!E||typeof E!="function"&&typeof E!="object")return!1;if(c)return y(E);if(o(E))return!1;var b=h.call(E);return b!==u&&b!==a&&!/^\[object HTML/.test(b)?!1:y(E)},oa}var ua,Xo;function xc(){if(Xo)return ua;Xo=1;var e=Dp(),t=Object.prototype.toString,n=Object.prototype.hasOwnProperty,r=function(f,u,a){for(var p=0,g=f.length;p<g;p++)n.call(f,p)&&(a==null?u(f[p],p,f):u.call(a,f[p],p,f))},l=function(f,u,a){for(var p=0,g=f.length;p<g;p++)a==null?u(f.charAt(p),p,f):u.call(a,f.charAt(p),p,f)},o=function(f,u,a){for(var p in f)n.call(f,p)&&(a==null?u(f[p],p,f):u.call(a,f[p],p,f))},y=function(f,u,a){if(!e(u))throw new TypeError("iterator must be a function");var p;arguments.length>=3&&(p=a),t.call(f)==="[object Array]"?r(f,u,p):typeof f=="string"?l(f,u,p):o(f,u,p)};return ua=y,ua}var la,Jo;function wc(){if(Jo)return la;Jo=1;var e=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],t=typeof globalThis>"u"?nr:globalThis;return la=function(){for(var r=[],l=0;l<e.length;l++)typeof t[e[l]]=="function"&&(r[r.length]=e[l]);return r},la}var ca,Wo;function Dc(){if(Wo)return ca;Wo=1;var e=Oi(),t=e("%Object.getOwnPropertyDescriptor%",!0);if(t)try{t([],"length")}catch{t=null}return ca=t,ca}var fa,Ho;function Ac(){if(Ho)return fa;Ho=1;var e=xc(),t=wc(),n=vs(),r=n("Object.prototype.toString"),l=ki()(),o=Dc(),y=typeof globalThis>"u"?nr:globalThis,h=t(),f=n("Array.prototype.indexOf",!0)||function(c,i){for(var s=0;s<c.length;s+=1)if(c[s]===i)return s;return-1},u=n("String.prototype.slice"),a={},p=Object.getPrototypeOf;l&&o&&p&&e(h,function(m){var c=new y[m];if(Symbol.toStringTag in c){var i=p(c),s=o(i,Symbol.toStringTag);if(!s){var d=p(i);s=o(d,Symbol.toStringTag)}a[m]=s.get}});var g=function(c){var i=!1;return e(a,function(s,d){if(!i)try{i=s.call(c)===d}catch{}}),i};return fa=function(c){if(!c||typeof c!="object")return!1;if(!l||!(Symbol.toStringTag in c)){var i=u(r(c),8,-1);return f(h,i)>-1}return o?g(c):!1},fa}var da,Go;function Ap(){if(Go)return da;Go=1;var e=xc(),t=wc(),n=vs(),r=Dc(),l=n("Object.prototype.toString"),o=ki()(),y=typeof globalThis>"u"?nr:globalThis,h=t(),f=n("String.prototype.slice"),u={},a=Object.getPrototypeOf;o&&r&&a&&e(h,function(m){if(typeof y[m]=="function"){var c=new y[m];if(Symbol.toStringTag in c){var i=a(c),s=r(i,Symbol.toStringTag);if(!s){var d=a(i);s=r(d,Symbol.toStringTag)}u[m]=s.get}}});var p=function(c){var i=!1;return e(u,function(s,d){if(!i)try{var v=s.call(c);v===d&&(i=v)}catch{}}),i},g=Ac();return da=function(c){return g(c)?!o||!(Symbol.toStringTag in c)?f(l(c),8,-1):p(c):!1},da}var Ko;function Tp(){return Ko||(Ko=1,function(e){var t=xp(),n=wp(),r=Ap(),l=Ac();function o(W){return W.call.bind(W)}var y=typeof BigInt<"u",h=typeof Symbol<"u",f=o(Object.prototype.toString),u=o(Number.prototype.valueOf),a=o(String.prototype.valueOf),p=o(Boolean.prototype.valueOf);if(y)var g=o(BigInt.prototype.valueOf);if(h)var m=o(Symbol.prototype.valueOf);function c(W,be){if(typeof W!="object")return!1;try{return be(W),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=n,e.isTypedArray=l;function i(W){return typeof Promise<"u"&&W instanceof Promise||W!==null&&typeof W=="object"&&typeof W.then=="function"&&typeof W.catch=="function"}e.isPromise=i;function s(W){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(W):l(W)||S(W)}e.isArrayBufferView=s;function d(W){return r(W)==="Uint8Array"}e.isUint8Array=d;function v(W){return r(W)==="Uint8ClampedArray"}e.isUint8ClampedArray=v;function E(W){return r(W)==="Uint16Array"}e.isUint16Array=E;function b(W){return r(W)==="Uint32Array"}e.isUint32Array=b;function A(W){return r(W)==="Int8Array"}e.isInt8Array=A;function _(W){return r(W)==="Int16Array"}e.isInt16Array=_;function D(W){return r(W)==="Int32Array"}e.isInt32Array=D;function F(W){return r(W)==="Float32Array"}e.isFloat32Array=F;function B(W){return r(W)==="Float64Array"}e.isFloat64Array=B;function N(W){return r(W)==="BigInt64Array"}e.isBigInt64Array=N;function I(W){return r(W)==="BigUint64Array"}e.isBigUint64Array=I;function R(W){return f(W)==="[object Map]"}R.working=typeof Map<"u"&&R(new Map);function M(W){return typeof Map>"u"?!1:R.working?R(W):W instanceof Map}e.isMap=M;function $(W){return f(W)==="[object Set]"}$.working=typeof Set<"u"&&$(new Set);function z(W){return typeof Set>"u"?!1:$.working?$(W):W instanceof Set}e.isSet=z;function X(W){return f(W)==="[object WeakMap]"}X.working=typeof WeakMap<"u"&&X(new WeakMap);function P(W){return typeof WeakMap>"u"?!1:X.working?X(W):W instanceof WeakMap}e.isWeakMap=P;function O(W){return f(W)==="[object WeakSet]"}O.working=typeof WeakSet<"u"&&O(new WeakSet);function L(W){return O(W)}e.isWeakSet=L;function V(W){return f(W)==="[object ArrayBuffer]"}V.working=typeof ArrayBuffer<"u"&&V(new ArrayBuffer);function x(W){return typeof ArrayBuffer>"u"?!1:V.working?V(W):W instanceof ArrayBuffer}e.isArrayBuffer=x;function w(W){return f(W)==="[object DataView]"}w.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&w(new DataView(new ArrayBuffer(1),0,1));function S(W){return typeof DataView>"u"?!1:w.working?w(W):W instanceof DataView}e.isDataView=S;var T=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function C(W){return f(W)==="[object SharedArrayBuffer]"}function j(W){return typeof T>"u"?!1:(typeof C.working>"u"&&(C.working=C(new T)),C.working?C(W):W instanceof T)}e.isSharedArrayBuffer=j;function U(W){return f(W)==="[object AsyncFunction]"}e.isAsyncFunction=U;function H(W){return f(W)==="[object Map Iterator]"}e.isMapIterator=H;function G(W){return f(W)==="[object Set Iterator]"}e.isSetIterator=G;function ee(W){return f(W)==="[object Generator]"}e.isGeneratorObject=ee;function se(W){return f(W)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=se;function pe(W){return c(W,u)}e.isNumberObject=pe;function he(W){return c(W,a)}e.isStringObject=he;function Q(W){return c(W,p)}e.isBooleanObject=Q;function ie(W){return y&&c(W,g)}e.isBigIntObject=ie;function ae(W){return h&&c(W,m)}e.isSymbolObject=ae;function ue(W){return pe(W)||he(W)||Q(W)||ie(W)||ae(W)}e.isBoxedPrimitive=ue;function de(W){return typeof Uint8Array<"u"&&(x(W)||j(W))}e.isAnyArrayBuffer=de,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(W){Object.defineProperty(e,W,{enumerable:!1,value:function(){throw new Error(W+" is not supported in userland")}})})}(Ki)),Ki}var pa,Yo;function Cp(){return Yo||(Yo=1,pa=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),pa}var bi={},Qo={get exports(){return bi},set exports(e){bi=e}},Zo;function _p(){return Zo||(Zo=1,typeof Object.create=="function"?Qo.exports=function(t,n){n&&(t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Qo.exports=function(t,n){if(n){t.super_=n;var r=function(){};r.prototype=n.prototype,t.prototype=new r,t.prototype.constructor=t}}),bi}var eu;function Bn(){return eu||(eu=1,function(e){var t=Object.getOwnPropertyDescriptors||function(S){for(var T=Object.keys(S),C={},j=0;j<T.length;j++)C[T[j]]=Object.getOwnPropertyDescriptor(S,T[j]);return C},n=/%[sdj%]/g;e.format=function(w){if(!A(w)){for(var S=[],T=0;T<arguments.length;T++)S.push(y(arguments[T]));return S.join(" ")}for(var T=1,C=arguments,j=C.length,U=String(w).replace(n,function(G){if(G==="%%")return"%";if(T>=j)return G;switch(G){case"%s":return String(C[T++]);case"%d":return Number(C[T++]);case"%j":try{return JSON.stringify(C[T++])}catch{return"[Circular]"}default:return G}}),H=C[T];T<j;H=C[++T])v(H)||!B(H)?U+=" "+H:U+=" "+y(H);return U},e.deprecate=function(w,S){if(typeof process<"u"&&process.noDeprecation===!0)return w;if(typeof process>"u")return function(){return e.deprecate(w,S).apply(this,arguments)};var T=!1;function C(){if(!T){if(process.throwDeprecation)throw new Error(S);process.traceDeprecation?console.trace(S):console.error(S),T=!0}return w.apply(this,arguments)}return C};var r={},l=/^$/;if({}.NODE_DEBUG){var o={}.NODE_DEBUG;o=o.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),l=new RegExp("^"+o+"$","i")}e.debuglog=function(w){if(w=w.toUpperCase(),!r[w])if(l.test(w)){var S=process.pid;r[w]=function(){var T=e.format.apply(e,arguments);console.error("%s %d: %s",w,S,T)}}else r[w]=function(){};return r[w]};function y(w,S){var T={seen:[],stylize:f};return arguments.length>=3&&(T.depth=arguments[2]),arguments.length>=4&&(T.colors=arguments[3]),d(S)?T.showHidden=S:S&&e._extend(T,S),D(T.showHidden)&&(T.showHidden=!1),D(T.depth)&&(T.depth=2),D(T.colors)&&(T.colors=!1),D(T.customInspect)&&(T.customInspect=!0),T.colors&&(T.stylize=h),a(T,w,T.depth)}e.inspect=y,y.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},y.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function h(w,S){var T=y.styles[S];return T?"\x1B["+y.colors[T][0]+"m"+w+"\x1B["+y.colors[T][1]+"m":w}function f(w,S){return w}function u(w){var S={};return w.forEach(function(T,C){S[T]=!0}),S}function a(w,S,T){if(w.customInspect&&S&&R(S.inspect)&&S.inspect!==e.inspect&&!(S.constructor&&S.constructor.prototype===S)){var C=S.inspect(T,w);return A(C)||(C=a(w,C,T)),C}var j=p(w,S);if(j)return j;var U=Object.keys(S),H=u(U);if(w.showHidden&&(U=Object.getOwnPropertyNames(S)),I(S)&&(U.indexOf("message")>=0||U.indexOf("description")>=0))return g(S);if(U.length===0){if(R(S)){var G=S.name?": "+S.name:"";return w.stylize("[Function"+G+"]","special")}if(F(S))return w.stylize(RegExp.prototype.toString.call(S),"regexp");if(N(S))return w.stylize(Date.prototype.toString.call(S),"date");if(I(S))return g(S)}var ee="",se=!1,pe=["{","}"];if(s(S)&&(se=!0,pe=["[","]"]),R(S)){var he=S.name?": "+S.name:"";ee=" [Function"+he+"]"}if(F(S)&&(ee=" "+RegExp.prototype.toString.call(S)),N(S)&&(ee=" "+Date.prototype.toUTCString.call(S)),I(S)&&(ee=" "+g(S)),U.length===0&&(!se||S.length==0))return pe[0]+ee+pe[1];if(T<0)return F(S)?w.stylize(RegExp.prototype.toString.call(S),"regexp"):w.stylize("[Object]","special");w.seen.push(S);var Q;return se?Q=m(w,S,T,H,U):Q=U.map(function(ie){return c(w,S,T,H,ie,se)}),w.seen.pop(),i(Q,ee,pe)}function p(w,S){if(D(S))return w.stylize("undefined","undefined");if(A(S)){var T="'"+JSON.stringify(S).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return w.stylize(T,"string")}if(b(S))return w.stylize(""+S,"number");if(d(S))return w.stylize(""+S,"boolean");if(v(S))return w.stylize("null","null")}function g(w){return"["+Error.prototype.toString.call(w)+"]"}function m(w,S,T,C,j){for(var U=[],H=0,G=S.length;H<G;++H)O(S,String(H))?U.push(c(w,S,T,C,String(H),!0)):U.push("");return j.forEach(function(ee){ee.match(/^\d+$/)||U.push(c(w,S,T,C,ee,!0))}),U}function c(w,S,T,C,j,U){var H,G,ee;if(ee=Object.getOwnPropertyDescriptor(S,j)||{value:S[j]},ee.get?ee.set?G=w.stylize("[Getter/Setter]","special"):G=w.stylize("[Getter]","special"):ee.set&&(G=w.stylize("[Setter]","special")),O(C,j)||(H="["+j+"]"),G||(w.seen.indexOf(ee.value)<0?(v(T)?G=a(w,ee.value,null):G=a(w,ee.value,T-1),G.indexOf(`
`)>-1&&(U?G=G.split(`
`).map(function(se){return"  "+se}).join(`
`).slice(2):G=`
`+G.split(`
`).map(function(se){return"   "+se}).join(`
`))):G=w.stylize("[Circular]","special")),D(H)){if(U&&j.match(/^\d+$/))return G;H=JSON.stringify(""+j),H.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(H=H.slice(1,-1),H=w.stylize(H,"name")):(H=H.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),H=w.stylize(H,"string"))}return H+": "+G}function i(w,S,T){var C=w.reduce(function(j,U){return U.indexOf(`
`)>=0,j+U.replace(/\u001b\[\d\d?m/g,"").length+1},0);return C>60?T[0]+(S===""?"":S+`
 `)+" "+w.join(`,
  `)+" "+T[1]:T[0]+S+" "+w.join(", ")+" "+T[1]}e.types=Tp();function s(w){return Array.isArray(w)}e.isArray=s;function d(w){return typeof w=="boolean"}e.isBoolean=d;function v(w){return w===null}e.isNull=v;function E(w){return w==null}e.isNullOrUndefined=E;function b(w){return typeof w=="number"}e.isNumber=b;function A(w){return typeof w=="string"}e.isString=A;function _(w){return typeof w=="symbol"}e.isSymbol=_;function D(w){return w===void 0}e.isUndefined=D;function F(w){return B(w)&&$(w)==="[object RegExp]"}e.isRegExp=F,e.types.isRegExp=F;function B(w){return typeof w=="object"&&w!==null}e.isObject=B;function N(w){return B(w)&&$(w)==="[object Date]"}e.isDate=N,e.types.isDate=N;function I(w){return B(w)&&($(w)==="[object Error]"||w instanceof Error)}e.isError=I,e.types.isNativeError=I;function R(w){return typeof w=="function"}e.isFunction=R;function M(w){return w===null||typeof w=="boolean"||typeof w=="number"||typeof w=="string"||typeof w=="symbol"||typeof w>"u"}e.isPrimitive=M,e.isBuffer=Cp();function $(w){return Object.prototype.toString.call(w)}function z(w){return w<10?"0"+w.toString(10):w.toString(10)}var X=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function P(){var w=new Date,S=[z(w.getHours()),z(w.getMinutes()),z(w.getSeconds())].join(":");return[w.getDate(),X[w.getMonth()],S].join(" ")}e.log=function(){console.log("%s - %s",P(),e.format.apply(e,arguments))},e.inherits=_p(),e._extend=function(w,S){if(!S||!B(S))return w;for(var T=Object.keys(S),C=T.length;C--;)w[T[C]]=S[T[C]];return w};function O(w,S){return Object.prototype.hasOwnProperty.call(w,S)}var L=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(S){if(typeof S!="function")throw new TypeError('The "original" argument must be of type Function');if(L&&S[L]){var T=S[L];if(typeof T!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(T,L,{value:T,enumerable:!1,writable:!1,configurable:!0}),T}function T(){for(var C,j,U=new Promise(function(ee,se){C=ee,j=se}),H=[],G=0;G<arguments.length;G++)H.push(arguments[G]);H.push(function(ee,se){ee?j(ee):C(se)});try{S.apply(this,H)}catch(ee){j(ee)}return U}return Object.setPrototypeOf(T,Object.getPrototypeOf(S)),L&&Object.defineProperty(T,L,{value:T,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(T,t(S))},e.promisify.custom=L;function V(w,S){if(!w){var T=new Error("Promise was rejected with a falsy value");T.reason=w,w=T}return S(w)}function x(w){if(typeof w!="function")throw new TypeError('The "original" argument must be of type Function');function S(){for(var T=[],C=0;C<arguments.length;C++)T.push(arguments[C]);var j=T.pop();if(typeof j!="function")throw new TypeError("The last argument must be of type Function");var U=this,H=function(){return j.apply(U,arguments)};w.apply(this,T).then(function(G){process.nextTick(H.bind(null,null,G))},function(G){process.nextTick(V.bind(null,G,H))})}return Object.setPrototypeOf(S,Object.getPrototypeOf(w)),Object.defineProperties(S,t(w)),S}e.callbackify=x}(Gi)),Gi}var tu;function Tc(){if(tu)return Hi;tu=1;function e(i){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?e=function(d){return typeof d}:e=function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},e(i)}function t(i,s){if(!(i instanceof s))throw new TypeError("Cannot call a class as a function")}function n(i,s){return s&&(e(s)==="object"||typeof s=="function")?s:r(i)}function r(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function l(i){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(d){return d.__proto__||Object.getPrototypeOf(d)},l(i)}function o(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&y(i,s)}function y(i,s){return y=Object.setPrototypeOf||function(v,E){return v.__proto__=E,v},y(i,s)}var h={},f,u;function a(i,s,d){d||(d=Error);function v(b,A,_){return typeof s=="string"?s:s(b,A,_)}var E=function(b){o(A,b);function A(_,D,F){var B;return t(this,A),B=n(this,l(A).call(this,v(_,D,F))),B.code=i,B}return A}(d);h[i]=E}function p(i,s){if(Array.isArray(i)){var d=i.length;return i=i.map(function(v){return String(v)}),d>2?"one of ".concat(s," ").concat(i.slice(0,d-1).join(", "),", or ")+i[d-1]:d===2?"one of ".concat(s," ").concat(i[0]," or ").concat(i[1]):"of ".concat(s," ").concat(i[0])}else return"of ".concat(s," ").concat(String(i))}function g(i,s,d){return i.substr(!d||d<0?0:+d,s.length)===s}function m(i,s,d){return(d===void 0||d>i.length)&&(d=i.length),i.substring(d-s.length,d)===s}function c(i,s,d){return typeof d!="number"&&(d=0),d+s.length>i.length?!1:i.indexOf(s,d)!==-1}return a("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),a("ERR_INVALID_ARG_TYPE",function(i,s,d){f===void 0&&(f=_t()),f(typeof i=="string","'name' must be a string");var v;typeof s=="string"&&g(s,"not ")?(v="must not be",s=s.replace(/^not /,"")):v="must be";var E;if(m(i," argument"))E="The ".concat(i," ").concat(v," ").concat(p(s,"type"));else{var b=c(i,".")?"property":"argument";E='The "'.concat(i,'" ').concat(b," ").concat(v," ").concat(p(s,"type"))}return E+=". Received type ".concat(e(d)),E},TypeError),a("ERR_INVALID_ARG_VALUE",function(i,s){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";u===void 0&&(u=Bn());var v=u.inspect(s);return v.length>128&&(v="".concat(v.slice(0,128),"...")),"The argument '".concat(i,"' ").concat(d,". Received ").concat(v)},TypeError),a("ERR_INVALID_RETURN_VALUE",function(i,s,d){var v;return d&&d.constructor&&d.constructor.name?v="instance of ".concat(d.constructor.name):v="type ".concat(e(d)),"Expected ".concat(i,' to be returned from the "').concat(s,'"')+" function but got ".concat(v,".")},TypeError),a("ERR_MISSING_ARGS",function(){for(var i=arguments.length,s=new Array(i),d=0;d<i;d++)s[d]=arguments[d];f===void 0&&(f=_t()),f(s.length>0,"At least one arg needs to be specified");var v="The ",E=s.length;switch(s=s.map(function(b){return'"'.concat(b,'"')}),E){case 1:v+="".concat(s[0]," argument");break;case 2:v+="".concat(s[0]," and ").concat(s[1]," arguments");break;default:v+=s.slice(0,E-1).join(", "),v+=", and ".concat(s[E-1]," arguments");break}return"".concat(v," must be specified")},TypeError),Hi.codes=h,Hi}var ha,ru;function Fp(){if(ru)return ha;ru=1;function e(z){for(var X=1;X<arguments.length;X++){var P=arguments[X]!=null?arguments[X]:{},O=Object.keys(P);typeof Object.getOwnPropertySymbols=="function"&&(O=O.concat(Object.getOwnPropertySymbols(P).filter(function(L){return Object.getOwnPropertyDescriptor(P,L).enumerable}))),O.forEach(function(L){t(z,L,P[L])})}return z}function t(z,X,P){return X in z?Object.defineProperty(z,X,{value:P,enumerable:!0,configurable:!0,writable:!0}):z[X]=P,z}function n(z,X){if(!(z instanceof X))throw new TypeError("Cannot call a class as a function")}function r(z,X){for(var P=0;P<X.length;P++){var O=X[P];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(z,O.key,O)}}function l(z,X,P){return X&&r(z.prototype,X),P&&r(z,P),z}function o(z,X){return X&&(c(X)==="object"||typeof X=="function")?X:y(z)}function y(z){if(z===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return z}function h(z,X){if(typeof X!="function"&&X!==null)throw new TypeError("Super expression must either be null or a function");z.prototype=Object.create(X&&X.prototype,{constructor:{value:z,writable:!0,configurable:!0}}),X&&g(z,X)}function f(z){var X=typeof Map=="function"?new Map:void 0;return f=function(O){if(O===null||!p(O))return O;if(typeof O!="function")throw new TypeError("Super expression must either be null or a function");if(typeof X<"u"){if(X.has(O))return X.get(O);X.set(O,L)}function L(){return a(O,arguments,m(this).constructor)}return L.prototype=Object.create(O.prototype,{constructor:{value:L,enumerable:!1,writable:!0,configurable:!0}}),g(L,O)},f(z)}function u(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function a(z,X,P){return u()?a=Reflect.construct:a=function(L,V,x){var w=[null];w.push.apply(w,V);var S=Function.bind.apply(L,w),T=new S;return x&&g(T,x.prototype),T},a.apply(null,arguments)}function p(z){return Function.toString.call(z).indexOf("[native code]")!==-1}function g(z,X){return g=Object.setPrototypeOf||function(O,L){return O.__proto__=L,O},g(z,X)}function m(z){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(P){return P.__proto__||Object.getPrototypeOf(P)},m(z)}function c(z){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?c=function(P){return typeof P}:c=function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},c(z)}var i=Bn(),s=i.inspect,d=Tc(),v=d.codes.ERR_INVALID_ARG_TYPE;function E(z,X,P){return(P===void 0||P>z.length)&&(P=z.length),z.substring(P-X.length,P)===X}function b(z,X){if(X=Math.floor(X),z.length==0||X==0)return"";var P=z.length*X;for(X=Math.floor(Math.log(X)/Math.log(2));X;)z+=z,X--;return z+=z.substring(0,P-z.length),z}var A="",_="",D="",F="",B={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},N=10;function I(z){var X=Object.keys(z),P=Object.create(Object.getPrototypeOf(z));return X.forEach(function(O){P[O]=z[O]}),Object.defineProperty(P,"message",{value:z.message}),P}function R(z){return s(z,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function M(z,X,P){var O="",L="",V=0,x="",w=!1,S=R(z),T=S.split(`
`),C=R(X).split(`
`),j=0,U="";if(P==="strictEqual"&&c(z)==="object"&&c(X)==="object"&&z!==null&&X!==null&&(P="strictEqualObject"),T.length===1&&C.length===1&&T[0]!==C[0]){var H=T[0].length+C[0].length;if(H<=N){if((c(z)!=="object"||z===null)&&(c(X)!=="object"||X===null)&&(z!==0||X!==0))return"".concat(B[P],`

`)+"".concat(T[0]," !== ").concat(C[0],`
`)}else if(P!=="strictEqualObject"){var G=process.stderr&&process.stderr.isTTY?process.stderr.columns:80;if(H<G){for(;T[0][j]===C[0][j];)j++;j>2&&(U=`
  `.concat(b(" ",j),"^"),j=0)}}}for(var ee=T[T.length-1],se=C[C.length-1];ee===se&&(j++<2?x=`
  `.concat(ee).concat(x):O=ee,T.pop(),C.pop(),!(T.length===0||C.length===0));)ee=T[T.length-1],se=C[C.length-1];var pe=Math.max(T.length,C.length);if(pe===0){var he=S.split(`
`);if(he.length>30)for(he[26]="".concat(A,"...").concat(F);he.length>27;)he.pop();return"".concat(B.notIdentical,`

`).concat(he.join(`
`),`
`)}j>3&&(x=`
`.concat(A,"...").concat(F).concat(x),w=!0),O!==""&&(x=`
  `.concat(O).concat(x),O="");var Q=0,ie=B[P]+`
`.concat(_,"+ actual").concat(F," ").concat(D,"- expected").concat(F),ae=" ".concat(A,"...").concat(F," Lines skipped");for(j=0;j<pe;j++){var ue=j-V;if(T.length<j+1)ue>1&&j>2&&(ue>4?(L+=`
`.concat(A,"...").concat(F),w=!0):ue>3&&(L+=`
  `.concat(C[j-2]),Q++),L+=`
  `.concat(C[j-1]),Q++),V=j,O+=`
`.concat(D,"-").concat(F," ").concat(C[j]),Q++;else if(C.length<j+1)ue>1&&j>2&&(ue>4?(L+=`
`.concat(A,"...").concat(F),w=!0):ue>3&&(L+=`
  `.concat(T[j-2]),Q++),L+=`
  `.concat(T[j-1]),Q++),V=j,L+=`
`.concat(_,"+").concat(F," ").concat(T[j]),Q++;else{var de=C[j],W=T[j],be=W!==de&&(!E(W,",")||W.slice(0,-1)!==de);be&&E(de,",")&&de.slice(0,-1)===W&&(be=!1,W+=","),be?(ue>1&&j>2&&(ue>4?(L+=`
`.concat(A,"...").concat(F),w=!0):ue>3&&(L+=`
  `.concat(T[j-2]),Q++),L+=`
  `.concat(T[j-1]),Q++),V=j,L+=`
`.concat(_,"+").concat(F," ").concat(W),O+=`
`.concat(D,"-").concat(F," ").concat(de),Q+=2):(L+=O,O="",(ue===1||j===0)&&(L+=`
  `.concat(W),Q++))}if(Q>20&&j<pe-2)return"".concat(ie).concat(ae,`
`).concat(L,`
`).concat(A,"...").concat(F).concat(O,`
`)+"".concat(A,"...").concat(F)}return"".concat(ie).concat(w?ae:"",`
`).concat(L).concat(O).concat(x).concat(U)}var $=function(z){h(X,z);function X(P){var O;if(n(this,X),c(P)!=="object"||P===null)throw new v("options","Object",P);var L=P.message,V=P.operator,x=P.stackStartFn,w=P.actual,S=P.expected,T=Error.stackTraceLimit;if(Error.stackTraceLimit=0,L!=null)O=o(this,m(X).call(this,String(L)));else if(process.stderr&&process.stderr.isTTY&&(process.stderr&&process.stderr.getColorDepth&&process.stderr.getColorDepth()!==1?(A="\x1B[34m",_="\x1B[32m",F="\x1B[39m",D="\x1B[31m"):(A="",_="",F="",D="")),c(w)==="object"&&w!==null&&c(S)==="object"&&S!==null&&"stack"in w&&w instanceof Error&&"stack"in S&&S instanceof Error&&(w=I(w),S=I(S)),V==="deepStrictEqual"||V==="strictEqual")O=o(this,m(X).call(this,M(w,S,V)));else if(V==="notDeepStrictEqual"||V==="notStrictEqual"){var C=B[V],j=R(w).split(`
`);if(V==="notStrictEqual"&&c(w)==="object"&&w!==null&&(C=B.notStrictEqualObject),j.length>30)for(j[26]="".concat(A,"...").concat(F);j.length>27;)j.pop();j.length===1?O=o(this,m(X).call(this,"".concat(C," ").concat(j[0]))):O=o(this,m(X).call(this,"".concat(C,`

`).concat(j.join(`
`),`
`)))}else{var U=R(w),H="",G=B[V];V==="notDeepEqual"||V==="notEqual"?(U="".concat(B[V],`

`).concat(U),U.length>1024&&(U="".concat(U.slice(0,1021),"..."))):(H="".concat(R(S)),U.length>512&&(U="".concat(U.slice(0,509),"...")),H.length>512&&(H="".concat(H.slice(0,509),"...")),V==="deepEqual"||V==="equal"?U="".concat(G,`

`).concat(U,`

should equal

`):H=" ".concat(V," ").concat(H)),O=o(this,m(X).call(this,"".concat(U).concat(H)))}return Error.stackTraceLimit=T,O.generatedMessage=!L,Object.defineProperty(y(O),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),O.code="ERR_ASSERTION",O.actual=w,O.expected=S,O.operator=V,Error.captureStackTrace&&Error.captureStackTrace(y(O),x),O.stack,O.name="AssertionError",o(O)}return l(X,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:s.custom,value:function(O,L){return s(this,e({},L,{customInspect:!1,depth:0}))}}]),X}(f(Error));return ha=$,ha}var ma,nu;function Pp(){if(nu)return ma;nu=1;function e(n,r){if(n==null)throw new TypeError("Cannot convert first argument to object");for(var l=Object(n),o=1;o<arguments.length;o++){var y=arguments[o];if(y!=null)for(var h=Object.keys(Object(y)),f=0,u=h.length;f<u;f++){var a=h[f],p=Object.getOwnPropertyDescriptor(y,a);p!==void 0&&p.enumerable&&(l[a]=y[a])}}return l}function t(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:e})}return ma={assign:e,polyfill:t},ma}var va,iu;function Cc(){if(iu)return va;iu=1;var e=Object.prototype.toString;return va=function(n){var r=e.call(n),l=r==="[object Arguments]";return l||(l=r!=="[object Array]"&&n!==null&&typeof n=="object"&&typeof n.length=="number"&&n.length>=0&&e.call(n.callee)==="[object Function]"),l},va}var ya,au;function kp(){if(au)return ya;au=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Cc(),l=Object.prototype.propertyIsEnumerable,o=!l.call({toString:null},"toString"),y=l.call(function(){},"prototype"),h=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(g){var m=g.constructor;return m&&m.prototype===g},u={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},a=function(){if(typeof window>"u")return!1;for(var g in window)try{if(!u["$"+g]&&t.call(window,g)&&window[g]!==null&&typeof window[g]=="object")try{f(window[g])}catch{return!0}}catch{return!0}return!1}(),p=function(g){if(typeof window>"u"||!a)return f(g);try{return f(g)}catch{return!1}};e=function(m){var c=m!==null&&typeof m=="object",i=n.call(m)==="[object Function]",s=r(m),d=c&&n.call(m)==="[object String]",v=[];if(!c&&!i&&!s)throw new TypeError("Object.keys called on a non-object");var E=y&&i;if(d&&m.length>0&&!t.call(m,0))for(var b=0;b<m.length;++b)v.push(String(b));if(s&&m.length>0)for(var A=0;A<m.length;++A)v.push(String(A));else for(var _ in m)!(E&&_==="prototype")&&t.call(m,_)&&v.push(String(_));if(o)for(var D=p(m),F=0;F<h.length;++F)!(D&&h[F]==="constructor")&&t.call(m,h[F])&&v.push(h[F]);return v}}return ya=e,ya}var ga,su;function Op(){if(su)return ga;su=1;var e=Array.prototype.slice,t=Cc(),n=Object.keys,r=n?function(y){return n(y)}:kp(),l=Object.keys;return r.shim=function(){if(Object.keys){var y=function(){var h=Object.keys(arguments);return h&&h.length===arguments.length}(1,2);y||(Object.keys=function(f){return t(f)?l(e.call(f)):l(f)})}else Object.keys=r;return Object.keys||r},ga=r,ga}var ba,ou;function Ip(){if(ou)return ba;ou=1;var e=Oi(),t=e("%Object.defineProperty%",!0),n=function(){if(t)try{return t({},"a",{value:1}),!0}catch{return!1}return!1};return n.hasArrayLengthDefineBug=function(){if(!n())return null;try{return t([],"length",{value:1}).length!==1}catch{return!0}},ba=n,ba}var Sa,uu;function Ii(){if(uu)return Sa;uu=1;var e=Op(),t=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",n=Object.prototype.toString,r=Array.prototype.concat,l=Object.defineProperty,o=function(a){return typeof a=="function"&&n.call(a)==="[object Function]"},y=Ip()(),h=l&&y,f=function(a,p,g,m){if(p in a){if(m===!0){if(a[p]===g)return}else if(!o(m)||!m())return}h?l(a,p,{configurable:!0,enumerable:!1,value:g,writable:!0}):a[p]=g},u=function(a,p){var g=arguments.length>2?arguments[2]:{},m=e(p);t&&(m=r.call(m,Object.getOwnPropertySymbols(p)));for(var c=0;c<m.length;c+=1)f(a,m[c],p[m[c]],g[m[c]])};return u.supportsDescriptors=!!h,Sa=u,Sa}var Ea,lu;function _c(){if(lu)return Ea;lu=1;var e=function(t){return t!==t};return Ea=function(n,r){return n===0&&r===0?1/n===1/r:!!(n===r||e(n)&&e(r))},Ea}var xa,cu;function Fc(){if(cu)return xa;cu=1;var e=_c();return xa=function(){return typeof Object.is=="function"?Object.is:e},xa}var wa,fu;function Bp(){if(fu)return wa;fu=1;var e=Fc(),t=Ii();return wa=function(){var r=e();return t(Object,{is:r},{is:function(){return Object.is!==r}}),r},wa}var Da,du;function Pc(){if(du)return Da;du=1;var e=Ii(),t=ms(),n=_c(),r=Fc(),l=Bp(),o=t(r(),Object);return e(o,{getPolyfill:r,implementation:n,shim:l}),Da=o,Da}var Aa,pu;function kc(){return pu||(pu=1,Aa=function(t){return t!==t}),Aa}var Ta,hu;function Oc(){if(hu)return Ta;hu=1;var e=kc();return Ta=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:e},Ta}var Ca,mu;function Np(){if(mu)return Ca;mu=1;var e=Ii(),t=Oc();return Ca=function(){var r=t();return e(Number,{isNaN:r},{isNaN:function(){return Number.isNaN!==r}}),r},Ca}var _a,vu;function Mp(){if(vu)return _a;vu=1;var e=ms(),t=Ii(),n=kc(),r=Oc(),l=Np(),o=e(r(),Number);return t(o,{getPolyfill:r,implementation:n,shim:l}),_a=o,_a}var Fa,yu;function jp(){if(yu)return Fa;yu=1;function e(q,J){return r(q)||n(q,J)||t()}function t(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function n(q,J){var re=[],le=!0,ce=!1,ge=void 0;try{for(var me=q[Symbol.iterator](),Ce;!(le=(Ce=me.next()).done)&&(re.push(Ce.value),!(J&&re.length===J));le=!0);}catch(De){ce=!0,ge=De}finally{try{!le&&me.return!=null&&me.return()}finally{if(ce)throw ge}}return re}function r(q){if(Array.isArray(q))return q}function l(q){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?l=function(re){return typeof re}:l=function(re){return re&&typeof Symbol=="function"&&re.constructor===Symbol&&re!==Symbol.prototype?"symbol":typeof re},l(q)}var o=/a/g.flags!==void 0,y=function(J){var re=[];return J.forEach(function(le){return re.push(le)}),re},h=function(J){var re=[];return J.forEach(function(le,ce){return re.push([ce,le])}),re},f=Object.is?Object.is:Pc(),u=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},a=Number.isNaN?Number.isNaN:Mp();function p(q){return q.call.bind(q)}var g=p(Object.prototype.hasOwnProperty),m=p(Object.prototype.propertyIsEnumerable),c=p(Object.prototype.toString),i=Bn().types,s=i.isAnyArrayBuffer,d=i.isArrayBufferView,v=i.isDate,E=i.isMap,b=i.isRegExp,A=i.isSet,_=i.isNativeError,D=i.isBoxedPrimitive,F=i.isNumberObject,B=i.isStringObject,N=i.isBooleanObject,I=i.isBigIntObject,R=i.isSymbolObject,M=i.isFloat32Array,$=i.isFloat64Array;function z(q){if(q.length===0||q.length>10)return!0;for(var J=0;J<q.length;J++){var re=q.charCodeAt(J);if(re<48||re>57)return!0}return q.length===10&&q>=Math.pow(2,32)}function X(q){return Object.keys(q).filter(z).concat(u(q).filter(Object.prototype.propertyIsEnumerable.bind(q)))}/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
 * @license  MIT
 */function P(q,J){if(q===J)return 0;for(var re=q.length,le=J.length,ce=0,ge=Math.min(re,le);ce<ge;++ce)if(q[ce]!==J[ce]){re=q[ce],le=J[ce];break}return re<le?-1:le<re?1:0}var O=!0,L=!1,V=0,x=1,w=2,S=3;function T(q,J){return o?q.source===J.source&&q.flags===J.flags:RegExp.prototype.toString.call(q)===RegExp.prototype.toString.call(J)}function C(q,J){if(q.byteLength!==J.byteLength)return!1;for(var re=0;re<q.byteLength;re++)if(q[re]!==J[re])return!1;return!0}function j(q,J){return q.byteLength!==J.byteLength?!1:P(new Uint8Array(q.buffer,q.byteOffset,q.byteLength),new Uint8Array(J.buffer,J.byteOffset,J.byteLength))===0}function U(q,J){return q.byteLength===J.byteLength&&P(new Uint8Array(q),new Uint8Array(J))===0}function H(q,J){return F(q)?F(J)&&f(Number.prototype.valueOf.call(q),Number.prototype.valueOf.call(J)):B(q)?B(J)&&String.prototype.valueOf.call(q)===String.prototype.valueOf.call(J):N(q)?N(J)&&Boolean.prototype.valueOf.call(q)===Boolean.prototype.valueOf.call(J):I(q)?I(J)&&BigInt.prototype.valueOf.call(q)===BigInt.prototype.valueOf.call(J):R(J)&&Symbol.prototype.valueOf.call(q)===Symbol.prototype.valueOf.call(J)}function G(q,J,re,le){if(q===J)return q!==0?!0:re?f(q,J):!0;if(re){if(l(q)!=="object")return typeof q=="number"&&a(q)&&a(J);if(l(J)!=="object"||q===null||J===null||Object.getPrototypeOf(q)!==Object.getPrototypeOf(J))return!1}else{if(q===null||l(q)!=="object")return J===null||l(J)!=="object"?q==J:!1;if(J===null||l(J)!=="object")return!1}var ce=c(q),ge=c(J);if(ce!==ge)return!1;if(Array.isArray(q)){if(q.length!==J.length)return!1;var me=X(q),Ce=X(J);return me.length!==Ce.length?!1:se(q,J,re,le,x,me)}if(ce==="[object Object]"&&(!E(q)&&E(J)||!A(q)&&A(J)))return!1;if(v(q)){if(!v(J)||Date.prototype.getTime.call(q)!==Date.prototype.getTime.call(J))return!1}else if(b(q)){if(!b(J)||!T(q,J))return!1}else if(_(q)||q instanceof Error){if(q.message!==J.message||q.name!==J.name)return!1}else if(d(q)){if(!re&&(M(q)||$(q))){if(!C(q,J))return!1}else if(!j(q,J))return!1;var De=X(q),Ue=X(J);return De.length!==Ue.length?!1:se(q,J,re,le,V,De)}else{if(A(q))return!A(J)||q.size!==J.size?!1:se(q,J,re,le,w);if(E(q))return!E(J)||q.size!==J.size?!1:se(q,J,re,le,S);if(s(q)){if(!U(q,J))return!1}else if(D(q)&&!H(q,J))return!1}return se(q,J,re,le,V)}function ee(q,J){return J.filter(function(re){return m(q,re)})}function se(q,J,re,le,ce,ge){if(arguments.length===5){ge=Object.keys(q);var me=Object.keys(J);if(ge.length!==me.length)return!1}for(var Ce=0;Ce<ge.length;Ce++)if(!g(J,ge[Ce]))return!1;if(re&&arguments.length===5){var De=u(q);if(De.length!==0){var Ue=0;for(Ce=0;Ce<De.length;Ce++){var Xe=De[Ce];if(m(q,Xe)){if(!m(J,Xe))return!1;ge.push(Xe),Ue++}else if(m(J,Xe))return!1}var it=u(J);if(De.length!==it.length&&ee(J,it).length!==Ue)return!1}else{var dt=u(J);if(dt.length!==0&&ee(J,dt).length!==0)return!1}}if(ge.length===0&&(ce===V||ce===x&&q.length===0||q.size===0))return!0;if(le===void 0)le={val1:new Map,val2:new Map,position:0};else{var bt=le.val1.get(q);if(bt!==void 0){var St=le.val2.get(J);if(St!==void 0)return bt===St}le.position++}le.val1.set(q,le.position),le.val2.set(J,le.position);var xr=W(q,J,re,ge,le,ce);return le.val1.delete(q),le.val2.delete(J),xr}function pe(q,J,re,le){for(var ce=y(q),ge=0;ge<ce.length;ge++){var me=ce[ge];if(G(J,me,re,le))return q.delete(me),!0}return!1}function he(q){switch(l(q)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":q=+q;case"number":if(a(q))return!1}return!0}function Q(q,J,re){var le=he(re);return le??(J.has(le)&&!q.has(le))}function ie(q,J,re,le,ce){var ge=he(re);if(ge!=null)return ge;var me=J.get(ge);return me===void 0&&!J.has(ge)||!G(le,me,!1,ce)?!1:!q.has(ge)&&G(le,me,!1,ce)}function ae(q,J,re,le){for(var ce=null,ge=y(q),me=0;me<ge.length;me++){var Ce=ge[me];if(l(Ce)==="object"&&Ce!==null)ce===null&&(ce=new Set),ce.add(Ce);else if(!J.has(Ce)){if(re||!Q(q,J,Ce))return!1;ce===null&&(ce=new Set),ce.add(Ce)}}if(ce!==null){for(var De=y(J),Ue=0;Ue<De.length;Ue++){var Xe=De[Ue];if(l(Xe)==="object"&&Xe!==null){if(!pe(ce,Xe,re,le))return!1}else if(!re&&!q.has(Xe)&&!pe(ce,Xe,re,le))return!1}return ce.size===0}return!0}function ue(q,J,re,le,ce,ge){for(var me=y(q),Ce=0;Ce<me.length;Ce++){var De=me[Ce];if(G(re,De,ce,ge)&&G(le,J.get(De),ce,ge))return q.delete(De),!0}return!1}function de(q,J,re,le){for(var ce=null,ge=h(q),me=0;me<ge.length;me++){var Ce=e(ge[me],2),De=Ce[0],Ue=Ce[1];if(l(De)==="object"&&De!==null)ce===null&&(ce=new Set),ce.add(De);else{var Xe=J.get(De);if(Xe===void 0&&!J.has(De)||!G(Ue,Xe,re,le)){if(re||!ie(q,J,De,Ue,le))return!1;ce===null&&(ce=new Set),ce.add(De)}}}if(ce!==null){for(var it=h(J),dt=0;dt<it.length;dt++){var bt=e(it[dt],2),De=bt[0],St=bt[1];if(l(De)==="object"&&De!==null){if(!ue(ce,q,De,St,re,le))return!1}else if(!re&&(!q.has(De)||!G(q.get(De),St,!1,le))&&!ue(ce,q,De,St,!1,le))return!1}return ce.size===0}return!0}function W(q,J,re,le,ce,ge){var me=0;if(ge===w){if(!ae(q,J,re,ce))return!1}else if(ge===S){if(!de(q,J,re,ce))return!1}else if(ge===x)for(;me<q.length;me++)if(g(q,me)){if(!g(J,me)||!G(q[me],J[me],re,ce))return!1}else{if(g(J,me))return!1;for(var Ce=Object.keys(q);me<Ce.length;me++){var De=Ce[me];if(!g(J,De)||!G(q[De],J[De],re,ce))return!1}return Ce.length===Object.keys(J).length}for(me=0;me<le.length;me++){var Ue=le[me];if(!G(q[Ue],J[Ue],re,ce))return!1}return!0}function be(q,J){return G(q,J,L)}function _e(q,J){return G(q,J,O)}return Fa={isDeepEqual:be,isDeepStrictEqual:_e},Fa}var gu;function _t(){if(gu)return yi;gu=1;function e(x){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?e=function(S){return typeof S}:e=function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S},e(x)}function t(x,w){if(!(x instanceof w))throw new TypeError("Cannot call a class as a function")}var n=Tc(),r=n.codes,l=r.ERR_AMBIGUOUS_ARGUMENT,o=r.ERR_INVALID_ARG_TYPE,y=r.ERR_INVALID_ARG_VALUE,h=r.ERR_INVALID_RETURN_VALUE,f=r.ERR_MISSING_ARGS,u=Fp(),a=Bn(),p=a.inspect,g=Bn().types,m=g.isPromise,c=g.isRegExp,i=Object.assign?Object.assign:Pp().assign,s=Object.is?Object.is:Pc(),d,v;function E(){var x=jp();d=x.isDeepEqual,v=x.isDeepStrictEqual}var b=!1,A=yp.exports=N,_={};function D(x){throw x.message instanceof Error?x.message:new u(x)}function F(x,w,S,T,C){var j=arguments.length,U;if(j===0)U="Failed";else if(j===1)S=x,x=void 0;else{if(b===!1){b=!0;var H=process.emitWarning?process.emitWarning:console.warn.bind(console);H("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}j===2&&(T="!=")}if(S instanceof Error)throw S;var G={actual:x,expected:w,operator:T===void 0?"fail":T,stackStartFn:C||F};S!==void 0&&(G.message=S);var ee=new u(G);throw U&&(ee.message=U,ee.generatedMessage=!0),ee}A.fail=F,A.AssertionError=u;function B(x,w,S,T){if(!S){var C=!1;if(w===0)C=!0,T="No value argument passed to `assert.ok()`";else if(T instanceof Error)throw T;var j=new u({actual:S,expected:!0,message:T,operator:"==",stackStartFn:x});throw j.generatedMessage=C,j}}function N(){for(var x=arguments.length,w=new Array(x),S=0;S<x;S++)w[S]=arguments[S];B.apply(void 0,[N,w.length].concat(w))}A.ok=N,A.equal=function x(w,S,T){if(arguments.length<2)throw new f("actual","expected");w!=S&&D({actual:w,expected:S,message:T,operator:"==",stackStartFn:x})},A.notEqual=function x(w,S,T){if(arguments.length<2)throw new f("actual","expected");w==S&&D({actual:w,expected:S,message:T,operator:"!=",stackStartFn:x})},A.deepEqual=function x(w,S,T){if(arguments.length<2)throw new f("actual","expected");d===void 0&&E(),d(w,S)||D({actual:w,expected:S,message:T,operator:"deepEqual",stackStartFn:x})},A.notDeepEqual=function x(w,S,T){if(arguments.length<2)throw new f("actual","expected");d===void 0&&E(),d(w,S)&&D({actual:w,expected:S,message:T,operator:"notDeepEqual",stackStartFn:x})},A.deepStrictEqual=function x(w,S,T){if(arguments.length<2)throw new f("actual","expected");d===void 0&&E(),v(w,S)||D({actual:w,expected:S,message:T,operator:"deepStrictEqual",stackStartFn:x})},A.notDeepStrictEqual=I;function I(x,w,S){if(arguments.length<2)throw new f("actual","expected");d===void 0&&E(),v(x,w)&&D({actual:x,expected:w,message:S,operator:"notDeepStrictEqual",stackStartFn:I})}A.strictEqual=function x(w,S,T){if(arguments.length<2)throw new f("actual","expected");s(w,S)||D({actual:w,expected:S,message:T,operator:"strictEqual",stackStartFn:x})},A.notStrictEqual=function x(w,S,T){if(arguments.length<2)throw new f("actual","expected");s(w,S)&&D({actual:w,expected:S,message:T,operator:"notStrictEqual",stackStartFn:x})};var R=function x(w,S,T){var C=this;t(this,x),S.forEach(function(j){j in w&&(T!==void 0&&typeof T[j]=="string"&&c(w[j])&&w[j].test(T[j])?C[j]=T[j]:C[j]=w[j])})};function M(x,w,S,T,C,j){if(!(S in x)||!v(x[S],w[S])){if(!T){var U=new R(x,C),H=new R(w,C,x),G=new u({actual:U,expected:H,operator:"deepStrictEqual",stackStartFn:j});throw G.actual=x,G.expected=w,G.operator=j.name,G}D({actual:x,expected:w,message:T,operator:j.name,stackStartFn:j})}}function $(x,w,S,T){if(typeof w!="function"){if(c(w))return w.test(x);if(arguments.length===2)throw new o("expected",["Function","RegExp"],w);if(e(x)!=="object"||x===null){var C=new u({actual:x,expected:w,message:S,operator:"deepStrictEqual",stackStartFn:T});throw C.operator=T.name,C}var j=Object.keys(w);if(w instanceof Error)j.push("name","message");else if(j.length===0)throw new y("error",w,"may not be an empty object");return d===void 0&&E(),j.forEach(function(U){typeof x[U]=="string"&&c(w[U])&&w[U].test(x[U])||M(x,w,U,S,j,T)}),!0}return w.prototype!==void 0&&x instanceof w?!0:Error.isPrototypeOf(w)?!1:w.call({},x)===!0}function z(x){if(typeof x!="function")throw new o("fn","Function",x);try{x()}catch(w){return w}return _}function X(x){return m(x)||x!==null&&e(x)==="object"&&typeof x.then=="function"&&typeof x.catch=="function"}function P(x){return Promise.resolve().then(function(){var w;if(typeof x=="function"){if(w=x(),!X(w))throw new h("instance of Promise","promiseFn",w)}else if(X(x))w=x;else throw new o("promiseFn",["Function","Promise"],x);return Promise.resolve().then(function(){return w}).then(function(){return _}).catch(function(S){return S})})}function O(x,w,S,T){if(typeof S=="string"){if(arguments.length===4)throw new o("error",["Object","Error","Function","RegExp"],S);if(e(w)==="object"&&w!==null){if(w.message===S)throw new l("error/message",'The error message "'.concat(w.message,'" is identical to the message.'))}else if(w===S)throw new l("error/message",'The error "'.concat(w,'" is identical to the message.'));T=S,S=void 0}else if(S!=null&&e(S)!=="object"&&typeof S!="function")throw new o("error",["Object","Error","Function","RegExp"],S);if(w===_){var C="";S&&S.name&&(C+=" (".concat(S.name,")")),C+=T?": ".concat(T):".";var j=x.name==="rejects"?"rejection":"exception";D({actual:void 0,expected:S,operator:x.name,message:"Missing expected ".concat(j).concat(C),stackStartFn:x})}if(S&&!$(w,S,T,x))throw w}function L(x,w,S,T){if(w!==_){if(typeof S=="string"&&(T=S,S=void 0),!S||$(w,S)){var C=T?": ".concat(T):".",j=x.name==="doesNotReject"?"rejection":"exception";D({actual:w,expected:S,operator:x.name,message:"Got unwanted ".concat(j).concat(C,`
`)+'Actual message: "'.concat(w&&w.message,'"'),stackStartFn:x})}throw w}}A.throws=function x(w){for(var S=arguments.length,T=new Array(S>1?S-1:0),C=1;C<S;C++)T[C-1]=arguments[C];O.apply(void 0,[x,z(w)].concat(T))},A.rejects=function x(w){for(var S=arguments.length,T=new Array(S>1?S-1:0),C=1;C<S;C++)T[C-1]=arguments[C];return P(w).then(function(j){return O.apply(void 0,[x,j].concat(T))})},A.doesNotThrow=function x(w){for(var S=arguments.length,T=new Array(S>1?S-1:0),C=1;C<S;C++)T[C-1]=arguments[C];L.apply(void 0,[x,z(w)].concat(T))},A.doesNotReject=function x(w){for(var S=arguments.length,T=new Array(S>1?S-1:0),C=1;C<S;C++)T[C-1]=arguments[C];return P(w).then(function(j){return L.apply(void 0,[x,j].concat(T))})},A.ifError=function x(w){if(w!=null){var S="ifError got unwanted exception: ";e(w)==="object"&&typeof w.message=="string"?w.message.length===0&&w.constructor?S+=w.constructor.name:S+=w.message:S+=p(w);var T=new u({actual:w,expected:null,operator:"ifError",message:S,stackStartFn:x}),C=w.stack;if(typeof C=="string"){var j=C.split(`
`);j.shift();for(var U=T.stack.split(`
`),H=0;H<j.length;H++){var G=U.indexOf(j[H]);if(G!==-1){U=U.slice(0,G);break}}T.stack="".concat(U.join(`
`),`
`).concat(j.join(`
`))}throw T}};function V(){for(var x=arguments.length,w=new Array(x),S=0;S<x;S++)w[S]=arguments[S];B.apply(void 0,[V,w.length].concat(w))}return A.strict=i(V,A,{equal:A.strictEqual,deepEqual:A.deepStrictEqual,notEqual:A.notStrictEqual,notDeepEqual:A.notDeepStrictEqual}),A.strict.strict=A.strict,yi}var Wr={},Ne={},Hr={},Pa={},ti={},ri={},bu;function Lp(){if(bu)return ri;bu=1;var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return ri.encode=function(t){if(0<=t&&t<e.length)return e[t];throw new TypeError("Must be between 0 and 63: "+t)},ri.decode=function(t){var n=65,r=90,l=97,o=122,y=48,h=57,f=43,u=47,a=26,p=52;return n<=t&&t<=r?t-n:l<=t&&t<=o?t-l+a:y<=t&&t<=h?t-y+p:t==f?62:t==u?63:-1},ri}var Su;function Ic(){if(Su)return ti;Su=1;var e=Lp(),t=5,n=1<<t,r=n-1,l=n;function o(h){return h<0?(-h<<1)+1:(h<<1)+0}function y(h){var f=(h&1)===1,u=h>>1;return f?-u:u}return ti.encode=function(f){var u="",a,p=o(f);do a=p&r,p>>>=t,p>0&&(a|=l),u+=e.encode(a);while(p>0);return u},ti.decode=function(f,u,a){var p=f.length,g=0,m=0,c,i;do{if(u>=p)throw new Error("Expected more digits in base 64 VLQ value.");if(i=e.decode(f.charCodeAt(u++)),i===-1)throw new Error("Invalid base64 digit: "+f.charAt(u-1));c=!!(i&l),i&=r,g=g+(i<<m),m+=t}while(c);a.value=y(g),a.rest=u},ti}var ka={},Eu;function Jn(){return Eu||(Eu=1,function(e){function t(b,A,_){if(A in b)return b[A];if(arguments.length===3)return _;throw new Error('"'+A+'" is a required argument.')}e.getArg=t;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function l(b){var A=b.match(n);return A?{scheme:A[1],auth:A[2],host:A[3],port:A[4],path:A[5]}:null}e.urlParse=l;function o(b){var A="";return b.scheme&&(A+=b.scheme+":"),A+="//",b.auth&&(A+=b.auth+"@"),b.host&&(A+=b.host),b.port&&(A+=":"+b.port),b.path&&(A+=b.path),A}e.urlGenerate=o;function y(b){var A=b,_=l(b);if(_){if(!_.path)return b;A=_.path}for(var D=e.isAbsolute(A),F=A.split(/\/+/),B,N=0,I=F.length-1;I>=0;I--)B=F[I],B==="."?F.splice(I,1):B===".."?N++:N>0&&(B===""?(F.splice(I+1,N),N=0):(F.splice(I,2),N--));return A=F.join("/"),A===""&&(A=D?"/":"."),_?(_.path=A,o(_)):A}e.normalize=y;function h(b,A){b===""&&(b="."),A===""&&(A=".");var _=l(A),D=l(b);if(D&&(b=D.path||"/"),_&&!_.scheme)return D&&(_.scheme=D.scheme),o(_);if(_||A.match(r))return A;if(D&&!D.host&&!D.path)return D.host=A,o(D);var F=A.charAt(0)==="/"?A:y(b.replace(/\/+$/,"")+"/"+A);return D?(D.path=F,o(D)):F}e.join=h,e.isAbsolute=function(b){return b.charAt(0)==="/"||n.test(b)};function f(b,A){b===""&&(b="."),b=b.replace(/\/$/,"");for(var _=0;A.indexOf(b+"/")!==0;){var D=b.lastIndexOf("/");if(D<0||(b=b.slice(0,D),b.match(/^([^\/]+:\/)?\/*$/)))return A;++_}return Array(_+1).join("../")+A.substr(b.length+1)}e.relative=f;var u=function(){var b=Object.create(null);return!("__proto__"in b)}();function a(b){return b}function p(b){return m(b)?"$"+b:b}e.toSetString=u?a:p;function g(b){return m(b)?b.slice(1):b}e.fromSetString=u?a:g;function m(b){if(!b)return!1;var A=b.length;if(A<9||b.charCodeAt(A-1)!==95||b.charCodeAt(A-2)!==95||b.charCodeAt(A-3)!==111||b.charCodeAt(A-4)!==116||b.charCodeAt(A-5)!==111||b.charCodeAt(A-6)!==114||b.charCodeAt(A-7)!==112||b.charCodeAt(A-8)!==95||b.charCodeAt(A-9)!==95)return!1;for(var _=A-10;_>=0;_--)if(b.charCodeAt(_)!==36)return!1;return!0}function c(b,A,_){var D=s(b.source,A.source);return D!==0||(D=b.originalLine-A.originalLine,D!==0)||(D=b.originalColumn-A.originalColumn,D!==0||_)||(D=b.generatedColumn-A.generatedColumn,D!==0)||(D=b.generatedLine-A.generatedLine,D!==0)?D:s(b.name,A.name)}e.compareByOriginalPositions=c;function i(b,A,_){var D=b.generatedLine-A.generatedLine;return D!==0||(D=b.generatedColumn-A.generatedColumn,D!==0||_)||(D=s(b.source,A.source),D!==0)||(D=b.originalLine-A.originalLine,D!==0)||(D=b.originalColumn-A.originalColumn,D!==0)?D:s(b.name,A.name)}e.compareByGeneratedPositionsDeflated=i;function s(b,A){return b===A?0:b===null?1:A===null?-1:b>A?1:-1}function d(b,A){var _=b.generatedLine-A.generatedLine;return _!==0||(_=b.generatedColumn-A.generatedColumn,_!==0)||(_=s(b.source,A.source),_!==0)||(_=b.originalLine-A.originalLine,_!==0)||(_=b.originalColumn-A.originalColumn,_!==0)?_:s(b.name,A.name)}e.compareByGeneratedPositionsInflated=d;function v(b){return JSON.parse(b.replace(/^\)]}'[^\n]*\n/,""))}e.parseSourceMapInput=v;function E(b,A,_){if(A=A||"",b&&(b[b.length-1]!=="/"&&A[0]!=="/"&&(b+="/"),A=b+A),_){var D=l(_);if(!D)throw new Error("sourceMapURL could not be parsed");if(D.path){var F=D.path.lastIndexOf("/");F>=0&&(D.path=D.path.substring(0,F+1))}A=h(o(D),A)}return y(A)}e.computeSourceURL=E}(ka)),ka}var Oa={},xu;function Bc(){if(xu)return Oa;xu=1;var e=Jn(),t=Object.prototype.hasOwnProperty,n=typeof Map<"u";function r(){this._array=[],this._set=n?new Map:Object.create(null)}return r.fromArray=function(o,y){for(var h=new r,f=0,u=o.length;f<u;f++)h.add(o[f],y);return h},r.prototype.size=function(){return n?this._set.size:Object.getOwnPropertyNames(this._set).length},r.prototype.add=function(o,y){var h=n?o:e.toSetString(o),f=n?this.has(o):t.call(this._set,h),u=this._array.length;(!f||y)&&this._array.push(o),f||(n?this._set.set(o,u):this._set[h]=u)},r.prototype.has=function(o){if(n)return this._set.has(o);var y=e.toSetString(o);return t.call(this._set,y)},r.prototype.indexOf=function(o){if(n){var y=this._set.get(o);if(y>=0)return y}else{var h=e.toSetString(o);if(t.call(this._set,h))return this._set[h]}throw new Error('"'+o+'" is not in the set.')},r.prototype.at=function(o){if(o>=0&&o<this._array.length)return this._array[o];throw new Error("No element indexed by "+o)},r.prototype.toArray=function(){return this._array.slice()},Oa.ArraySet=r,Oa}var Ia={},wu;function Rp(){if(wu)return Ia;wu=1;var e=Jn();function t(r,l){var o=r.generatedLine,y=l.generatedLine,h=r.generatedColumn,f=l.generatedColumn;return y>o||y==o&&f>=h||e.compareByGeneratedPositionsInflated(r,l)<=0}function n(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}return n.prototype.unsortedForEach=function(l,o){this._array.forEach(l,o)},n.prototype.add=function(l){t(this._last,l)?(this._last=l,this._array.push(l)):(this._sorted=!1,this._array.push(l))},n.prototype.toArray=function(){return this._sorted||(this._array.sort(e.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},Ia.MappingList=n,Ia}var Du;function Nc(){if(Du)return Pa;Du=1;var e=Ic(),t=Jn(),n=Bc().ArraySet,r=Rp().MappingList;function l(o){o||(o={}),this._file=t.getArg(o,"file",null),this._sourceRoot=t.getArg(o,"sourceRoot",null),this._skipValidation=t.getArg(o,"skipValidation",!1),this._sources=new n,this._names=new n,this._mappings=new r,this._sourcesContents=null}return l.prototype._version=3,l.fromSourceMap=function(y){var h=y.sourceRoot,f=new l({file:y.file,sourceRoot:h});return y.eachMapping(function(u){var a={generated:{line:u.generatedLine,column:u.generatedColumn}};u.source!=null&&(a.source=u.source,h!=null&&(a.source=t.relative(h,a.source)),a.original={line:u.originalLine,column:u.originalColumn},u.name!=null&&(a.name=u.name)),f.addMapping(a)}),y.sources.forEach(function(u){var a=u;h!==null&&(a=t.relative(h,u)),f._sources.has(a)||f._sources.add(a);var p=y.sourceContentFor(u);p!=null&&f.setSourceContent(u,p)}),f},l.prototype.addMapping=function(y){var h=t.getArg(y,"generated"),f=t.getArg(y,"original",null),u=t.getArg(y,"source",null),a=t.getArg(y,"name",null);this._skipValidation||this._validateMapping(h,f,u,a),u!=null&&(u=String(u),this._sources.has(u)||this._sources.add(u)),a!=null&&(a=String(a),this._names.has(a)||this._names.add(a)),this._mappings.add({generatedLine:h.line,generatedColumn:h.column,originalLine:f!=null&&f.line,originalColumn:f!=null&&f.column,source:u,name:a})},l.prototype.setSourceContent=function(y,h){var f=y;this._sourceRoot!=null&&(f=t.relative(this._sourceRoot,f)),h!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[t.toSetString(f)]=h):this._sourcesContents&&(delete this._sourcesContents[t.toSetString(f)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},l.prototype.applySourceMap=function(y,h,f){var u=h;if(h==null){if(y.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);u=y.file}var a=this._sourceRoot;a!=null&&(u=t.relative(a,u));var p=new n,g=new n;this._mappings.unsortedForEach(function(m){if(m.source===u&&m.originalLine!=null){var c=y.originalPositionFor({line:m.originalLine,column:m.originalColumn});c.source!=null&&(m.source=c.source,f!=null&&(m.source=t.join(f,m.source)),a!=null&&(m.source=t.relative(a,m.source)),m.originalLine=c.line,m.originalColumn=c.column,c.name!=null&&(m.name=c.name))}var i=m.source;i!=null&&!p.has(i)&&p.add(i);var s=m.name;s!=null&&!g.has(s)&&g.add(s)},this),this._sources=p,this._names=g,y.sources.forEach(function(m){var c=y.sourceContentFor(m);c!=null&&(f!=null&&(m=t.join(f,m)),a!=null&&(m=t.relative(a,m)),this.setSourceContent(m,c))},this)},l.prototype._validateMapping=function(y,h,f,u){if(h&&typeof h.line!="number"&&typeof h.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(y&&"line"in y&&"column"in y&&y.line>0&&y.column>=0&&!h&&!f&&!u)){if(y&&"line"in y&&"column"in y&&h&&"line"in h&&"column"in h&&y.line>0&&y.column>=0&&h.line>0&&h.column>=0&&f)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:y,source:f,original:h,name:u}))}},l.prototype._serializeMappings=function(){for(var y=0,h=1,f=0,u=0,a=0,p=0,g="",m,c,i,s,d=this._mappings.toArray(),v=0,E=d.length;v<E;v++){if(c=d[v],m="",c.generatedLine!==h)for(y=0;c.generatedLine!==h;)m+=";",h++;else if(v>0){if(!t.compareByGeneratedPositionsInflated(c,d[v-1]))continue;m+=","}m+=e.encode(c.generatedColumn-y),y=c.generatedColumn,c.source!=null&&(s=this._sources.indexOf(c.source),m+=e.encode(s-p),p=s,m+=e.encode(c.originalLine-1-u),u=c.originalLine-1,m+=e.encode(c.originalColumn-f),f=c.originalColumn,c.name!=null&&(i=this._names.indexOf(c.name),m+=e.encode(i-a),a=i)),g+=m}return g},l.prototype._generateSourcesContent=function(y,h){return y.map(function(f){if(!this._sourcesContents)return null;h!=null&&(f=t.relative(h,f));var u=t.toSetString(f);return Object.prototype.hasOwnProperty.call(this._sourcesContents,u)?this._sourcesContents[u]:null},this)},l.prototype.toJSON=function(){var y={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(y.file=this._file),this._sourceRoot!=null&&(y.sourceRoot=this._sourceRoot),this._sourcesContents&&(y.sourcesContent=this._generateSourcesContent(y.sources,y.sourceRoot)),y},l.prototype.toString=function(){return JSON.stringify(this.toJSON())},Pa.SourceMapGenerator=l,Pa}var Gr={},Ba={},Au;function $p(){return Au||(Au=1,function(e){e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(n,r,l,o,y,h){var f=Math.floor((r-n)/2)+n,u=y(l,o[f],!0);return u===0?f:u>0?r-f>1?t(f,r,l,o,y,h):h==e.LEAST_UPPER_BOUND?r<o.length?r:-1:f:f-n>1?t(n,f,l,o,y,h):h==e.LEAST_UPPER_BOUND?f:n<0?-1:n}e.search=function(r,l,o,y){if(l.length===0)return-1;var h=t(-1,l.length,r,l,o,y||e.GREATEST_LOWER_BOUND);if(h<0)return-1;for(;h-1>=0&&o(l[h],l[h-1],!0)===0;)--h;return h}}(Ba)),Ba}var Na={},Tu;function Vp(){if(Tu)return Na;Tu=1;function e(r,l,o){var y=r[l];r[l]=r[o],r[o]=y}function t(r,l){return Math.round(r+Math.random()*(l-r))}function n(r,l,o,y){if(o<y){var h=t(o,y),f=o-1;e(r,h,y);for(var u=r[y],a=o;a<y;a++)l(r[a],u)<=0&&(f+=1,e(r,f,a));e(r,f+1,a);var p=f+1;n(r,l,o,p-1),n(r,l,p+1,y)}}return Na.quickSort=function(r,l){n(r,l,0,r.length-1)},Na}var Cu;function zp(){if(Cu)return Gr;Cu=1;var e=Jn(),t=$p(),n=Bc().ArraySet,r=Ic(),l=Vp().quickSort;function o(u,a){var p=u;return typeof u=="string"&&(p=e.parseSourceMapInput(u)),p.sections!=null?new f(p,a):new y(p,a)}o.fromSourceMap=function(u,a){return y.fromSourceMap(u,a)},o.prototype._version=3,o.prototype.__generatedMappings=null,Object.defineProperty(o.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),o.prototype.__originalMappings=null,Object.defineProperty(o.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),o.prototype._charIsMappingSeparator=function(a,p){var g=a.charAt(p);return g===";"||g===","},o.prototype._parseMappings=function(a,p){throw new Error("Subclasses must implement _parseMappings")},o.GENERATED_ORDER=1,o.ORIGINAL_ORDER=2,o.GREATEST_LOWER_BOUND=1,o.LEAST_UPPER_BOUND=2,o.prototype.eachMapping=function(a,p,g){var m=p||null,c=g||o.GENERATED_ORDER,i;switch(c){case o.GENERATED_ORDER:i=this._generatedMappings;break;case o.ORIGINAL_ORDER:i=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var s=this.sourceRoot;i.map(function(d){var v=d.source===null?null:this._sources.at(d.source);return v=e.computeSourceURL(s,v,this._sourceMapURL),{source:v,generatedLine:d.generatedLine,generatedColumn:d.generatedColumn,originalLine:d.originalLine,originalColumn:d.originalColumn,name:d.name===null?null:this._names.at(d.name)}},this).forEach(a,m)},o.prototype.allGeneratedPositionsFor=function(a){var p=e.getArg(a,"line"),g={source:e.getArg(a,"source"),originalLine:p,originalColumn:e.getArg(a,"column",0)};if(g.source=this._findSourceIndex(g.source),g.source<0)return[];var m=[],c=this._findMapping(g,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,t.LEAST_UPPER_BOUND);if(c>=0){var i=this._originalMappings[c];if(a.column===void 0)for(var s=i.originalLine;i&&i.originalLine===s;)m.push({line:e.getArg(i,"generatedLine",null),column:e.getArg(i,"generatedColumn",null),lastColumn:e.getArg(i,"lastGeneratedColumn",null)}),i=this._originalMappings[++c];else for(var d=i.originalColumn;i&&i.originalLine===p&&i.originalColumn==d;)m.push({line:e.getArg(i,"generatedLine",null),column:e.getArg(i,"generatedColumn",null),lastColumn:e.getArg(i,"lastGeneratedColumn",null)}),i=this._originalMappings[++c]}return m},Gr.SourceMapConsumer=o;function y(u,a){var p=u;typeof u=="string"&&(p=e.parseSourceMapInput(u));var g=e.getArg(p,"version"),m=e.getArg(p,"sources"),c=e.getArg(p,"names",[]),i=e.getArg(p,"sourceRoot",null),s=e.getArg(p,"sourcesContent",null),d=e.getArg(p,"mappings"),v=e.getArg(p,"file",null);if(g!=this._version)throw new Error("Unsupported version: "+g);i&&(i=e.normalize(i)),m=m.map(String).map(e.normalize).map(function(E){return i&&e.isAbsolute(i)&&e.isAbsolute(E)?e.relative(i,E):E}),this._names=n.fromArray(c.map(String),!0),this._sources=n.fromArray(m,!0),this._absoluteSources=this._sources.toArray().map(function(E){return e.computeSourceURL(i,E,a)}),this.sourceRoot=i,this.sourcesContent=s,this._mappings=d,this._sourceMapURL=a,this.file=v}y.prototype=Object.create(o.prototype),y.prototype.consumer=o,y.prototype._findSourceIndex=function(u){var a=u;if(this.sourceRoot!=null&&(a=e.relative(this.sourceRoot,a)),this._sources.has(a))return this._sources.indexOf(a);var p;for(p=0;p<this._absoluteSources.length;++p)if(this._absoluteSources[p]==u)return p;return-1},y.fromSourceMap=function(a,p){var g=Object.create(y.prototype),m=g._names=n.fromArray(a._names.toArray(),!0),c=g._sources=n.fromArray(a._sources.toArray(),!0);g.sourceRoot=a._sourceRoot,g.sourcesContent=a._generateSourcesContent(g._sources.toArray(),g.sourceRoot),g.file=a._file,g._sourceMapURL=p,g._absoluteSources=g._sources.toArray().map(function(_){return e.computeSourceURL(g.sourceRoot,_,p)});for(var i=a._mappings.toArray().slice(),s=g.__generatedMappings=[],d=g.__originalMappings=[],v=0,E=i.length;v<E;v++){var b=i[v],A=new h;A.generatedLine=b.generatedLine,A.generatedColumn=b.generatedColumn,b.source&&(A.source=c.indexOf(b.source),A.originalLine=b.originalLine,A.originalColumn=b.originalColumn,b.name&&(A.name=m.indexOf(b.name)),d.push(A)),s.push(A)}return l(g.__originalMappings,e.compareByOriginalPositions),g},y.prototype._version=3,Object.defineProperty(y.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function h(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}y.prototype._parseMappings=function(a,p){for(var g=1,m=0,c=0,i=0,s=0,d=0,v=a.length,E=0,b={},A={},_=[],D=[],F,B,N,I,R;E<v;)if(a.charAt(E)===";")g++,E++,m=0;else if(a.charAt(E)===",")E++;else{for(F=new h,F.generatedLine=g,I=E;I<v&&!this._charIsMappingSeparator(a,I);I++);if(B=a.slice(E,I),N=b[B],N)E+=B.length;else{for(N=[];E<I;)r.decode(a,E,A),R=A.value,E=A.rest,N.push(R);if(N.length===2)throw new Error("Found a source, but no line and column");if(N.length===3)throw new Error("Found a source and line, but no column");b[B]=N}F.generatedColumn=m+N[0],m=F.generatedColumn,N.length>1&&(F.source=s+N[1],s+=N[1],F.originalLine=c+N[2],c=F.originalLine,F.originalLine+=1,F.originalColumn=i+N[3],i=F.originalColumn,N.length>4&&(F.name=d+N[4],d+=N[4])),D.push(F),typeof F.originalLine=="number"&&_.push(F)}l(D,e.compareByGeneratedPositionsDeflated),this.__generatedMappings=D,l(_,e.compareByOriginalPositions),this.__originalMappings=_},y.prototype._findMapping=function(a,p,g,m,c,i){if(a[g]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+a[g]);if(a[m]<0)throw new TypeError("Column must be greater than or equal to 0, got "+a[m]);return t.search(a,p,c,i)},y.prototype.computeColumnSpans=function(){for(var a=0;a<this._generatedMappings.length;++a){var p=this._generatedMappings[a];if(a+1<this._generatedMappings.length){var g=this._generatedMappings[a+1];if(p.generatedLine===g.generatedLine){p.lastGeneratedColumn=g.generatedColumn-1;continue}}p.lastGeneratedColumn=1/0}},y.prototype.originalPositionFor=function(a){var p={generatedLine:e.getArg(a,"line"),generatedColumn:e.getArg(a,"column")},g=this._findMapping(p,this._generatedMappings,"generatedLine","generatedColumn",e.compareByGeneratedPositionsDeflated,e.getArg(a,"bias",o.GREATEST_LOWER_BOUND));if(g>=0){var m=this._generatedMappings[g];if(m.generatedLine===p.generatedLine){var c=e.getArg(m,"source",null);c!==null&&(c=this._sources.at(c),c=e.computeSourceURL(this.sourceRoot,c,this._sourceMapURL));var i=e.getArg(m,"name",null);return i!==null&&(i=this._names.at(i)),{source:c,line:e.getArg(m,"originalLine",null),column:e.getArg(m,"originalColumn",null),name:i}}}return{source:null,line:null,column:null,name:null}},y.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(a){return a==null}):!1},y.prototype.sourceContentFor=function(a,p){if(!this.sourcesContent)return null;var g=this._findSourceIndex(a);if(g>=0)return this.sourcesContent[g];var m=a;this.sourceRoot!=null&&(m=e.relative(this.sourceRoot,m));var c;if(this.sourceRoot!=null&&(c=e.urlParse(this.sourceRoot))){var i=m.replace(/^file:\/\//,"");if(c.scheme=="file"&&this._sources.has(i))return this.sourcesContent[this._sources.indexOf(i)];if((!c.path||c.path=="/")&&this._sources.has("/"+m))return this.sourcesContent[this._sources.indexOf("/"+m)]}if(p)return null;throw new Error('"'+m+'" is not in the SourceMap.')},y.prototype.generatedPositionFor=function(a){var p=e.getArg(a,"source");if(p=this._findSourceIndex(p),p<0)return{line:null,column:null,lastColumn:null};var g={source:p,originalLine:e.getArg(a,"line"),originalColumn:e.getArg(a,"column")},m=this._findMapping(g,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,e.getArg(a,"bias",o.GREATEST_LOWER_BOUND));if(m>=0){var c=this._originalMappings[m];if(c.source===g.source)return{line:e.getArg(c,"generatedLine",null),column:e.getArg(c,"generatedColumn",null),lastColumn:e.getArg(c,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},Gr.BasicSourceMapConsumer=y;function f(u,a){var p=u;typeof u=="string"&&(p=e.parseSourceMapInput(u));var g=e.getArg(p,"version"),m=e.getArg(p,"sections");if(g!=this._version)throw new Error("Unsupported version: "+g);this._sources=new n,this._names=new n;var c={line:-1,column:0};this._sections=m.map(function(i){if(i.url)throw new Error("Support for url field in sections not implemented.");var s=e.getArg(i,"offset"),d=e.getArg(s,"line"),v=e.getArg(s,"column");if(d<c.line||d===c.line&&v<c.column)throw new Error("Section offsets must be ordered and non-overlapping.");return c=s,{generatedOffset:{generatedLine:d+1,generatedColumn:v+1},consumer:new o(e.getArg(i,"map"),a)}})}return f.prototype=Object.create(o.prototype),f.prototype.constructor=o,f.prototype._version=3,Object.defineProperty(f.prototype,"sources",{get:function(){for(var u=[],a=0;a<this._sections.length;a++)for(var p=0;p<this._sections[a].consumer.sources.length;p++)u.push(this._sections[a].consumer.sources[p]);return u}}),f.prototype.originalPositionFor=function(a){var p={generatedLine:e.getArg(a,"line"),generatedColumn:e.getArg(a,"column")},g=t.search(p,this._sections,function(c,i){var s=c.generatedLine-i.generatedOffset.generatedLine;return s||c.generatedColumn-i.generatedOffset.generatedColumn}),m=this._sections[g];return m?m.consumer.originalPositionFor({line:p.generatedLine-(m.generatedOffset.generatedLine-1),column:p.generatedColumn-(m.generatedOffset.generatedLine===p.generatedLine?m.generatedOffset.generatedColumn-1:0),bias:a.bias}):{source:null,line:null,column:null,name:null}},f.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(a){return a.consumer.hasContentsOfAllSources()})},f.prototype.sourceContentFor=function(a,p){for(var g=0;g<this._sections.length;g++){var m=this._sections[g],c=m.consumer.sourceContentFor(a,!0);if(c)return c}if(p)return null;throw new Error('"'+a+'" is not in the SourceMap.')},f.prototype.generatedPositionFor=function(a){for(var p=0;p<this._sections.length;p++){var g=this._sections[p];if(g.consumer._findSourceIndex(e.getArg(a,"source"))!==-1){var m=g.consumer.generatedPositionFor(a);if(m){var c={line:m.line+(g.generatedOffset.generatedLine-1),column:m.column+(g.generatedOffset.generatedLine===m.line?g.generatedOffset.generatedColumn-1:0)};return c}}}return{line:null,column:null}},f.prototype._parseMappings=function(a,p){this.__generatedMappings=[],this.__originalMappings=[];for(var g=0;g<this._sections.length;g++)for(var m=this._sections[g],c=m.consumer._generatedMappings,i=0;i<c.length;i++){var s=c[i],d=m.consumer._sources.at(s.source);d=e.computeSourceURL(m.consumer.sourceRoot,d,this._sourceMapURL),this._sources.add(d),d=this._sources.indexOf(d);var v=null;s.name&&(v=m.consumer._names.at(s.name),this._names.add(v),v=this._names.indexOf(v));var E={source:d,generatedLine:s.generatedLine+(m.generatedOffset.generatedLine-1),generatedColumn:s.generatedColumn+(m.generatedOffset.generatedLine===s.generatedLine?m.generatedOffset.generatedColumn-1:0),originalLine:s.originalLine,originalColumn:s.originalColumn,name:v};this.__generatedMappings.push(E),typeof E.originalLine=="number"&&this.__originalMappings.push(E)}l(this.__generatedMappings,e.compareByGeneratedPositionsDeflated),l(this.__originalMappings,e.compareByOriginalPositions)},Gr.IndexedSourceMapConsumer=f,Gr}var Ma={},_u;function qp(){if(_u)return Ma;_u=1;var e=Nc().SourceMapGenerator,t=Jn(),n=/(\r?\n)/,r=10,l="$$$isSourceNode$$$";function o(y,h,f,u,a){this.children=[],this.sourceContents={},this.line=y??null,this.column=h??null,this.source=f??null,this.name=a??null,this[l]=!0,u!=null&&this.add(u)}return o.fromStringWithSourceMap=function(h,f,u){var a=new o,p=h.split(n),g=0,m=function(){var v=b(),E=b()||"";return v+E;function b(){return g<p.length?p[g++]:void 0}},c=1,i=0,s=null;return f.eachMapping(function(v){if(s!==null)if(c<v.generatedLine)d(s,m()),c++,i=0;else{var E=p[g]||"",b=E.substr(0,v.generatedColumn-i);p[g]=E.substr(v.generatedColumn-i),i=v.generatedColumn,d(s,b),s=v;return}for(;c<v.generatedLine;)a.add(m()),c++;if(i<v.generatedColumn){var E=p[g]||"";a.add(E.substr(0,v.generatedColumn)),p[g]=E.substr(v.generatedColumn),i=v.generatedColumn}s=v},this),g<p.length&&(s&&d(s,m()),a.add(p.splice(g).join(""))),f.sources.forEach(function(v){var E=f.sourceContentFor(v);E!=null&&(u!=null&&(v=t.join(u,v)),a.setSourceContent(v,E))}),a;function d(v,E){if(v===null||v.source===void 0)a.add(E);else{var b=u?t.join(u,v.source):v.source;a.add(new o(v.originalLine,v.originalColumn,b,E,v.name))}}},o.prototype.add=function(h){if(Array.isArray(h))h.forEach(function(f){this.add(f)},this);else if(h[l]||typeof h=="string")h&&this.children.push(h);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+h);return this},o.prototype.prepend=function(h){if(Array.isArray(h))for(var f=h.length-1;f>=0;f--)this.prepend(h[f]);else if(h[l]||typeof h=="string")this.children.unshift(h);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+h);return this},o.prototype.walk=function(h){for(var f,u=0,a=this.children.length;u<a;u++)f=this.children[u],f[l]?f.walk(h):f!==""&&h(f,{source:this.source,line:this.line,column:this.column,name:this.name})},o.prototype.join=function(h){var f,u,a=this.children.length;if(a>0){for(f=[],u=0;u<a-1;u++)f.push(this.children[u]),f.push(h);f.push(this.children[u]),this.children=f}return this},o.prototype.replaceRight=function(h,f){var u=this.children[this.children.length-1];return u[l]?u.replaceRight(h,f):typeof u=="string"?this.children[this.children.length-1]=u.replace(h,f):this.children.push("".replace(h,f)),this},o.prototype.setSourceContent=function(h,f){this.sourceContents[t.toSetString(h)]=f},o.prototype.walkSourceContents=function(h){for(var f=0,u=this.children.length;f<u;f++)this.children[f][l]&&this.children[f].walkSourceContents(h);for(var a=Object.keys(this.sourceContents),f=0,u=a.length;f<u;f++)h(t.fromSetString(a[f]),this.sourceContents[a[f]])},o.prototype.toString=function(){var h="";return this.walk(function(f){h+=f}),h},o.prototype.toStringWithSourceMap=function(h){var f={code:"",line:1,column:0},u=new e(h),a=!1,p=null,g=null,m=null,c=null;return this.walk(function(i,s){f.code+=i,s.source!==null&&s.line!==null&&s.column!==null?((p!==s.source||g!==s.line||m!==s.column||c!==s.name)&&u.addMapping({source:s.source,original:{line:s.line,column:s.column},generated:{line:f.line,column:f.column},name:s.name}),p=s.source,g=s.line,m=s.column,c=s.name,a=!0):a&&(u.addMapping({generated:{line:f.line,column:f.column}}),p=null,a=!1);for(var d=0,v=i.length;d<v;d++)i.charCodeAt(d)===r?(f.line++,f.column=0,d+1===v?(p=null,a=!1):a&&u.addMapping({source:s.source,original:{line:s.line,column:s.column},generated:{line:f.line,column:f.column},name:s.name})):f.column++}),this.walkSourceContents(function(i,s){u.setSourceContent(i,s)}),{code:f.code,map:u}},Ma.SourceNode=o,Ma}var Fu;function Mc(){return Fu||(Fu=1,Hr.SourceMapGenerator=Nc().SourceMapGenerator,Hr.SourceMapConsumer=zp().SourceMapConsumer,Hr.SourceNode=qp().SourceNode),Hr}var Pu;function qt(){if(Pu)return Ne;Pu=1,Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.isTrailingCommaEnabled=Ne.getParentExportDeclaration=Ne.isExportDeclaration=Ne.fixFaultyLocations=Ne.getTrueLoc=Ne.composeSourceMaps=Ne.copyPos=Ne.comparePos=Ne.getUnionOfKeys=Ne.getOption=Ne.isBrowser=Ne.getLineTerminator=void 0;var e=yt,t=e.__importDefault(_t()),n=e.__importStar(ir()),r=n.namedTypes,l=e.__importDefault(Mc()),o=l.default.SourceMapConsumer,y=l.default.SourceMapGenerator,h=Object.prototype.hasOwnProperty;function f(){return u()?`
`:dc.EOL||`
`}Ne.getLineTerminator=f;function u(){return typeof window<"u"&&typeof window.document<"u"}Ne.isBrowser=u;function a(D,F,B){return D&&h.call(D,F)?D[F]:B}Ne.getOption=a;function p(){for(var D=[],F=0;F<arguments.length;F++)D[F]=arguments[F];for(var B={},N=D.length,I=0;I<N;++I)for(var R=Object.keys(D[I]),M=R.length,$=0;$<M;++$)B[R[$]]=!0;return B}Ne.getUnionOfKeys=p;function g(D,F){return D.line-F.line||D.column-F.column}Ne.comparePos=g;function m(D){return{line:D.line,column:D.column}}Ne.copyPos=m;function c(D,F){if(D){if(!F)return D}else return F||null;var B=new o(D),N=new o(F),I=new y({file:F.file,sourceRoot:F.sourceRoot}),R={};return N.eachMapping(function(M){var $=B.originalPositionFor({line:M.originalLine,column:M.originalColumn}),z=$.source;if(z!==null){I.addMapping({source:z,original:m($),generated:{line:M.generatedLine,column:M.generatedColumn},name:M.name});var X=B.sourceContentFor(z);X&&!h.call(R,z)&&(R[z]=X,I.setSourceContent(z,X))}}),I.toJSON()}Ne.composeSourceMaps=c;function i(D,F){if(!D.loc)return null;var B={start:D.loc.start,end:D.loc.end};function N(I){s(B,I.loc)}return D.declaration&&D.declaration.decorators&&b(D)&&D.declaration.decorators.forEach(N),g(B.start,B.end)<0&&(B.start=m(B.start),F.skipSpaces(B.start,!1,!0),g(B.start,B.end)<0&&(B.end=m(B.end),F.skipSpaces(B.end,!0,!0))),D.comments&&D.comments.forEach(N),B}Ne.getTrueLoc=i;function s(D,F){D&&F&&(g(F.start,D.start)<0&&(D.start=F.start),g(D.end,F.end)<0&&(D.end=F.end))}function d(D,F){var B=D.loc;if(B&&(B.start.line<1&&(B.start.line=1),B.end.line<1&&(B.end.line=1)),D.type==="File"&&(B.start=F.firstPos(),B.end=F.lastPos()),v(D,F),E(D,F),B&&D.decorators)D.decorators.forEach(function(M){s(B,M.loc)});else if(D.declaration&&b(D)){D.declaration.loc=null;var N=D.declaration.decorators;N&&N.forEach(function(M){s(B,M.loc)})}else if(r.MethodDefinition&&r.MethodDefinition.check(D)||r.Property.check(D)&&(D.method||D.shorthand))D.value.loc=null,r.FunctionExpression.check(D.value)&&(D.value.id=null);else if(D.type==="ObjectTypeProperty"){var I=D.loc,R=I&&I.end;R&&(R=m(R),F.prevPos(R)&&F.charAt(R)===","&&(R=F.skipSpaces(R,!0,!0))&&(I.end=R))}}Ne.fixFaultyLocations=d;function v(D,F){if(D.type!=="ForStatement")return;function B(N){for(var I=N&&N.loc,R=I&&I.start,M=I&&m(I.end);R&&M&&g(R,M)<0&&(F.prevPos(M),F.charAt(M)===";");)I.end.line=M.line,I.end.column=M.column}B(D.init),B(D.test),B(D.update)}function E(D,F){if(D.type==="TemplateLiteral"&&D.quasis.length!==0){if(D.loc){var B=m(D.loc.start);t.default.strictEqual(F.charAt(B),"`"),t.default.ok(F.nextPos(B));var N=D.quasis[0];g(N.loc.start,B)<0&&(N.loc.start=B);var I=m(D.loc.end);t.default.ok(F.prevPos(I)),t.default.strictEqual(F.charAt(I),"`");var R=D.quasis[D.quasis.length-1];g(I,R.loc.end)<0&&(R.loc.end=I)}D.expressions.forEach(function(M,$){var z=F.skipSpaces(M.loc.start,!0,!1);if(F.prevPos(z)&&F.charAt(z)==="{"&&F.prevPos(z)&&F.charAt(z)==="$"){var X=D.quasis[$];g(z,X.loc.end)<0&&(X.loc.end=z)}var P=F.skipSpaces(M.loc.end,!1,!1);if(F.charAt(P)==="}"){t.default.ok(F.nextPos(P));var O=D.quasis[$+1];g(O.loc.start,P)<0&&(O.loc.start=P)}})}}function b(D){if(D)switch(D.type){case"ExportDeclaration":case"ExportDefaultDeclaration":case"ExportDefaultSpecifier":case"DeclareExportDeclaration":case"ExportNamedDeclaration":case"ExportAllDeclaration":return!0}return!1}Ne.isExportDeclaration=b;function A(D){var F=D.getParentNode();return D.getName()==="declaration"&&b(F)?F:null}Ne.getParentExportDeclaration=A;function _(D,F){var B=D.trailingComma;return typeof B=="object"?!!B[F]:!!B}return Ne.isTrailingCommaEnabled=_,Ne}var Kr={},Si={},Up={get exports(){return Si},set exports(e){Si=e}},ku;function jc(){return ku||(ku=1,function(e,t){(function(r,l){e.exports=l()})(nr,function(){return function(n){var r={};function l(o){if(r[o])return r[o].exports;var y=r[o]={exports:{},id:o,loaded:!1};return n[o].call(y.exports,y,y.exports,l),y.loaded=!0,y.exports}return l.m=n,l.c=r,l.p="",l(0)}([function(n,r,l){Object.defineProperty(r,"__esModule",{value:!0});var o=l(1),y=l(3),h=l(8),f=l(15);function u(c,i,s){var d=null,v=function(N,I){s&&s(N,I),d&&d.visit(N,I)},E=typeof s=="function"?v:null,b=!1;if(i){b=typeof i.comment=="boolean"&&i.comment;var A=typeof i.attachComment=="boolean"&&i.attachComment;(b||A)&&(d=new o.CommentHandler,d.attach=A,i.comment=!0,E=v)}var _=!1;i&&typeof i.sourceType=="string"&&(_=i.sourceType==="module");var D;i&&typeof i.jsx=="boolean"&&i.jsx?D=new y.JSXParser(c,i,E):D=new h.Parser(c,i,E);var F=_?D.parseModule():D.parseScript(),B=F;return b&&d&&(B.comments=d.comments),D.config.tokens&&(B.tokens=D.tokens),D.config.tolerant&&(B.errors=D.errorHandler.errors),B}r.parse=u;function a(c,i,s){var d=i||{};return d.sourceType="module",u(c,d,s)}r.parseModule=a;function p(c,i,s){var d=i||{};return d.sourceType="script",u(c,d,s)}r.parseScript=p;function g(c,i,s){var d=new f.Tokenizer(c,i),v;v=[];try{for(;;){var E=d.getNextToken();if(!E)break;s&&(E=s(E)),v.push(E)}}catch(b){d.errorHandler.tolerate(b)}return d.errorHandler.tolerant&&(v.errors=d.errors()),v}r.tokenize=g;var m=l(2);r.Syntax=m.Syntax,r.version="4.0.1"},function(n,r,l){Object.defineProperty(r,"__esModule",{value:!0});var o=l(2),y=function(){function h(){this.attach=!1,this.comments=[],this.stack=[],this.leading=[],this.trailing=[]}return h.prototype.insertInnerComments=function(f,u){if(f.type===o.Syntax.BlockStatement&&f.body.length===0){for(var a=[],p=this.leading.length-1;p>=0;--p){var g=this.leading[p];u.end.offset>=g.start&&(a.unshift(g.comment),this.leading.splice(p,1),this.trailing.splice(p,1))}a.length&&(f.innerComments=a)}},h.prototype.findTrailingComments=function(f){var u=[];if(this.trailing.length>0){for(var a=this.trailing.length-1;a>=0;--a){var p=this.trailing[a];p.start>=f.end.offset&&u.unshift(p.comment)}return this.trailing.length=0,u}var g=this.stack[this.stack.length-1];if(g&&g.node.trailingComments){var m=g.node.trailingComments[0];m&&m.range[0]>=f.end.offset&&(u=g.node.trailingComments,delete g.node.trailingComments)}return u},h.prototype.findLeadingComments=function(f){for(var u=[],a;this.stack.length>0;){var p=this.stack[this.stack.length-1];if(p&&p.start>=f.start.offset)a=p.node,this.stack.pop();else break}if(a){for(var g=a.leadingComments?a.leadingComments.length:0,m=g-1;m>=0;--m){var c=a.leadingComments[m];c.range[1]<=f.start.offset&&(u.unshift(c),a.leadingComments.splice(m,1))}return a.leadingComments&&a.leadingComments.length===0&&delete a.leadingComments,u}for(var m=this.leading.length-1;m>=0;--m){var p=this.leading[m];p.start<=f.start.offset&&(u.unshift(p.comment),this.leading.splice(m,1))}return u},h.prototype.visitNode=function(f,u){if(!(f.type===o.Syntax.Program&&f.body.length>0)){this.insertInnerComments(f,u);var a=this.findTrailingComments(u),p=this.findLeadingComments(u);p.length>0&&(f.leadingComments=p),a.length>0&&(f.trailingComments=a),this.stack.push({node:f,start:u.start.offset})}},h.prototype.visitComment=function(f,u){var a=f.type[0]==="L"?"Line":"Block",p={type:a,value:f.value};if(f.range&&(p.range=f.range),f.loc&&(p.loc=f.loc),this.comments.push(p),this.attach){var g={comment:{type:a,value:f.value,range:[u.start.offset,u.end.offset]},start:u.start.offset};f.loc&&(g.comment.loc=f.loc),f.type=a,this.leading.push(g),this.trailing.push(g)}},h.prototype.visit=function(f,u){f.type==="LineComment"?this.visitComment(f,u):f.type==="BlockComment"?this.visitComment(f,u):this.attach&&this.visitNode(f,u)},h}();r.CommentHandler=y},function(n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Syntax={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForOfStatement:"ForOfStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"}},function(n,r,l){var o=this&&this.__extends||function(){var i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,d){s.__proto__=d}||function(s,d){for(var v in d)d.hasOwnProperty(v)&&(s[v]=d[v])};return function(s,d){i(s,d);function v(){this.constructor=s}s.prototype=d===null?Object.create(d):(v.prototype=d.prototype,new v)}}();Object.defineProperty(r,"__esModule",{value:!0});var y=l(4),h=l(5),f=l(6),u=l(7),a=l(8),p=l(13),g=l(14);p.TokenName[100]="JSXIdentifier",p.TokenName[101]="JSXText";function m(i){var s;switch(i.type){case f.JSXSyntax.JSXIdentifier:var d=i;s=d.name;break;case f.JSXSyntax.JSXNamespacedName:var v=i;s=m(v.namespace)+":"+m(v.name);break;case f.JSXSyntax.JSXMemberExpression:var E=i;s=m(E.object)+"."+m(E.property);break}return s}var c=function(i){o(s,i);function s(d,v,E){return i.call(this,d,v,E)||this}return s.prototype.parsePrimaryExpression=function(){return this.match("<")?this.parseJSXRoot():i.prototype.parsePrimaryExpression.call(this)},s.prototype.startJSX=function(){this.scanner.index=this.startMarker.index,this.scanner.lineNumber=this.startMarker.line,this.scanner.lineStart=this.startMarker.index-this.startMarker.column},s.prototype.finishJSX=function(){this.nextToken()},s.prototype.reenterJSX=function(){this.startJSX(),this.expectJSX("}"),this.config.tokens&&this.tokens.pop()},s.prototype.createJSXNode=function(){return this.collectComments(),{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},s.prototype.createJSXChildNode=function(){return{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},s.prototype.scanXHTMLEntity=function(d){for(var v="&",E=!0,b=!1,A=!1,_=!1;!this.scanner.eof()&&E&&!b;){var D=this.scanner.source[this.scanner.index];if(D===d)break;if(b=D===";",v+=D,++this.scanner.index,!b)switch(v.length){case 2:A=D==="#";break;case 3:A&&(_=D==="x",E=_||y.Character.isDecimalDigit(D.charCodeAt(0)),A=A&&!_);break;default:E=E&&!(A&&!y.Character.isDecimalDigit(D.charCodeAt(0))),E=E&&!(_&&!y.Character.isHexDigit(D.charCodeAt(0)));break}}if(E&&b&&v.length>2){var F=v.substr(1,v.length-2);A&&F.length>1?v=String.fromCharCode(parseInt(F.substr(1),10)):_&&F.length>2?v=String.fromCharCode(parseInt("0"+F.substr(1),16)):!A&&!_&&g.XHTMLEntities[F]&&(v=g.XHTMLEntities[F])}return v},s.prototype.lexJSX=function(){var d=this.scanner.source.charCodeAt(this.scanner.index);if(d===60||d===62||d===47||d===58||d===61||d===123||d===125){var v=this.scanner.source[this.scanner.index++];return{type:7,value:v,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index-1,end:this.scanner.index}}if(d===34||d===39){for(var E=this.scanner.index,b=this.scanner.source[this.scanner.index++],A="";!this.scanner.eof();){var _=this.scanner.source[this.scanner.index++];if(_===b)break;_==="&"?A+=this.scanXHTMLEntity(b):A+=_}return{type:8,value:A,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:E,end:this.scanner.index}}if(d===46){var D=this.scanner.source.charCodeAt(this.scanner.index+1),F=this.scanner.source.charCodeAt(this.scanner.index+2),v=D===46&&F===46?"...":".",E=this.scanner.index;return this.scanner.index+=v.length,{type:7,value:v,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:E,end:this.scanner.index}}if(d===96)return{type:10,value:"",lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index,end:this.scanner.index};if(y.Character.isIdentifierStart(d)&&d!==92){var E=this.scanner.index;for(++this.scanner.index;!this.scanner.eof();){var _=this.scanner.source.charCodeAt(this.scanner.index);if(y.Character.isIdentifierPart(_)&&_!==92)++this.scanner.index;else if(_===45)++this.scanner.index;else break}var B=this.scanner.source.slice(E,this.scanner.index);return{type:100,value:B,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:E,end:this.scanner.index}}return this.scanner.lex()},s.prototype.nextJSXToken=function(){this.collectComments(),this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var d=this.lexJSX();return this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.config.tokens&&this.tokens.push(this.convertToken(d)),d},s.prototype.nextJSXText=function(){this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;for(var d=this.scanner.index,v="";!this.scanner.eof();){var E=this.scanner.source[this.scanner.index];if(E==="{"||E==="<")break;++this.scanner.index,v+=E,y.Character.isLineTerminator(E.charCodeAt(0))&&(++this.scanner.lineNumber,E==="\r"&&this.scanner.source[this.scanner.index]===`
`&&++this.scanner.index,this.scanner.lineStart=this.scanner.index)}this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart;var b={type:101,value:v,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:d,end:this.scanner.index};return v.length>0&&this.config.tokens&&this.tokens.push(this.convertToken(b)),b},s.prototype.peekJSXToken=function(){var d=this.scanner.saveState();this.scanner.scanComments();var v=this.lexJSX();return this.scanner.restoreState(d),v},s.prototype.expectJSX=function(d){var v=this.nextJSXToken();(v.type!==7||v.value!==d)&&this.throwUnexpectedToken(v)},s.prototype.matchJSX=function(d){var v=this.peekJSXToken();return v.type===7&&v.value===d},s.prototype.parseJSXIdentifier=function(){var d=this.createJSXNode(),v=this.nextJSXToken();return v.type!==100&&this.throwUnexpectedToken(v),this.finalize(d,new h.JSXIdentifier(v.value))},s.prototype.parseJSXElementName=function(){var d=this.createJSXNode(),v=this.parseJSXIdentifier();if(this.matchJSX(":")){var E=v;this.expectJSX(":");var b=this.parseJSXIdentifier();v=this.finalize(d,new h.JSXNamespacedName(E,b))}else if(this.matchJSX("."))for(;this.matchJSX(".");){var A=v;this.expectJSX(".");var _=this.parseJSXIdentifier();v=this.finalize(d,new h.JSXMemberExpression(A,_))}return v},s.prototype.parseJSXAttributeName=function(){var d=this.createJSXNode(),v,E=this.parseJSXIdentifier();if(this.matchJSX(":")){var b=E;this.expectJSX(":");var A=this.parseJSXIdentifier();v=this.finalize(d,new h.JSXNamespacedName(b,A))}else v=E;return v},s.prototype.parseJSXStringLiteralAttribute=function(){var d=this.createJSXNode(),v=this.nextJSXToken();v.type!==8&&this.throwUnexpectedToken(v);var E=this.getTokenRaw(v);return this.finalize(d,new u.Literal(v.value,E))},s.prototype.parseJSXExpressionAttribute=function(){var d=this.createJSXNode();this.expectJSX("{"),this.finishJSX(),this.match("}")&&this.tolerateError("JSX attributes must only be assigned a non-empty expression");var v=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(d,new h.JSXExpressionContainer(v))},s.prototype.parseJSXAttributeValue=function(){return this.matchJSX("{")?this.parseJSXExpressionAttribute():this.matchJSX("<")?this.parseJSXElement():this.parseJSXStringLiteralAttribute()},s.prototype.parseJSXNameValueAttribute=function(){var d=this.createJSXNode(),v=this.parseJSXAttributeName(),E=null;return this.matchJSX("=")&&(this.expectJSX("="),E=this.parseJSXAttributeValue()),this.finalize(d,new h.JSXAttribute(v,E))},s.prototype.parseJSXSpreadAttribute=function(){var d=this.createJSXNode();this.expectJSX("{"),this.expectJSX("..."),this.finishJSX();var v=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(d,new h.JSXSpreadAttribute(v))},s.prototype.parseJSXAttributes=function(){for(var d=[];!this.matchJSX("/")&&!this.matchJSX(">");){var v=this.matchJSX("{")?this.parseJSXSpreadAttribute():this.parseJSXNameValueAttribute();d.push(v)}return d},s.prototype.parseJSXOpeningElement=function(){var d=this.createJSXNode();this.expectJSX("<");var v=this.parseJSXElementName(),E=this.parseJSXAttributes(),b=this.matchJSX("/");return b&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(d,new h.JSXOpeningElement(v,b,E))},s.prototype.parseJSXBoundaryElement=function(){var d=this.createJSXNode();if(this.expectJSX("<"),this.matchJSX("/")){this.expectJSX("/");var v=this.parseJSXElementName();return this.expectJSX(">"),this.finalize(d,new h.JSXClosingElement(v))}var E=this.parseJSXElementName(),b=this.parseJSXAttributes(),A=this.matchJSX("/");return A&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(d,new h.JSXOpeningElement(E,A,b))},s.prototype.parseJSXEmptyExpression=function(){var d=this.createJSXChildNode();return this.collectComments(),this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.finalize(d,new h.JSXEmptyExpression)},s.prototype.parseJSXExpressionContainer=function(){var d=this.createJSXNode();this.expectJSX("{");var v;return this.matchJSX("}")?(v=this.parseJSXEmptyExpression(),this.expectJSX("}")):(this.finishJSX(),v=this.parseAssignmentExpression(),this.reenterJSX()),this.finalize(d,new h.JSXExpressionContainer(v))},s.prototype.parseJSXChildren=function(){for(var d=[];!this.scanner.eof();){var v=this.createJSXChildNode(),E=this.nextJSXText();if(E.start<E.end){var b=this.getTokenRaw(E),A=this.finalize(v,new h.JSXText(E.value,b));d.push(A)}if(this.scanner.source[this.scanner.index]==="{"){var _=this.parseJSXExpressionContainer();d.push(_)}else break}return d},s.prototype.parseComplexJSXElement=function(d){for(var v=[];!this.scanner.eof();){d.children=d.children.concat(this.parseJSXChildren());var E=this.createJSXChildNode(),b=this.parseJSXBoundaryElement();if(b.type===f.JSXSyntax.JSXOpeningElement){var A=b;if(A.selfClosing){var _=this.finalize(E,new h.JSXElement(A,[],null));d.children.push(_)}else v.push(d),d={node:E,opening:A,closing:null,children:[]}}if(b.type===f.JSXSyntax.JSXClosingElement){d.closing=b;var D=m(d.opening.name),F=m(d.closing.name);if(D!==F&&this.tolerateError("Expected corresponding JSX closing tag for %0",D),v.length>0){var _=this.finalize(d.node,new h.JSXElement(d.opening,d.children,d.closing));d=v[v.length-1],d.children.push(_),v.pop()}else break}}return d},s.prototype.parseJSXElement=function(){var d=this.createJSXNode(),v=this.parseJSXOpeningElement(),E=[],b=null;if(!v.selfClosing){var A=this.parseComplexJSXElement({node:d,opening:v,closing:b,children:E});E=A.children,b=A.closing}return this.finalize(d,new h.JSXElement(v,E,b))},s.prototype.parseJSXRoot=function(){this.config.tokens&&this.tokens.pop(),this.startJSX();var d=this.parseJSXElement();return this.finishJSX(),d},s.prototype.isStartOfExpression=function(){return i.prototype.isStartOfExpression.call(this)||this.match("<")},s}(a.Parser);r.JSXParser=c},function(n,r){Object.defineProperty(r,"__esModule",{value:!0});var l={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};r.Character={fromCodePoint:function(o){return o<65536?String.fromCharCode(o):String.fromCharCode(55296+(o-65536>>10))+String.fromCharCode(56320+(o-65536&1023))},isWhiteSpace:function(o){return o===32||o===9||o===11||o===12||o===160||o>=5760&&[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(o)>=0},isLineTerminator:function(o){return o===10||o===13||o===8232||o===8233},isIdentifierStart:function(o){return o===36||o===95||o>=65&&o<=90||o>=97&&o<=122||o===92||o>=128&&l.NonAsciiIdentifierStart.test(r.Character.fromCodePoint(o))},isIdentifierPart:function(o){return o===36||o===95||o>=65&&o<=90||o>=97&&o<=122||o>=48&&o<=57||o===92||o>=128&&l.NonAsciiIdentifierPart.test(r.Character.fromCodePoint(o))},isDecimalDigit:function(o){return o>=48&&o<=57},isHexDigit:function(o){return o>=48&&o<=57||o>=65&&o<=70||o>=97&&o<=102},isOctalDigit:function(o){return o>=48&&o<=55}}},function(n,r,l){Object.defineProperty(r,"__esModule",{value:!0});var o=l(6),y=function(){function d(v){this.type=o.JSXSyntax.JSXClosingElement,this.name=v}return d}();r.JSXClosingElement=y;var h=function(){function d(v,E,b){this.type=o.JSXSyntax.JSXElement,this.openingElement=v,this.children=E,this.closingElement=b}return d}();r.JSXElement=h;var f=function(){function d(){this.type=o.JSXSyntax.JSXEmptyExpression}return d}();r.JSXEmptyExpression=f;var u=function(){function d(v){this.type=o.JSXSyntax.JSXExpressionContainer,this.expression=v}return d}();r.JSXExpressionContainer=u;var a=function(){function d(v){this.type=o.JSXSyntax.JSXIdentifier,this.name=v}return d}();r.JSXIdentifier=a;var p=function(){function d(v,E){this.type=o.JSXSyntax.JSXMemberExpression,this.object=v,this.property=E}return d}();r.JSXMemberExpression=p;var g=function(){function d(v,E){this.type=o.JSXSyntax.JSXAttribute,this.name=v,this.value=E}return d}();r.JSXAttribute=g;var m=function(){function d(v,E){this.type=o.JSXSyntax.JSXNamespacedName,this.namespace=v,this.name=E}return d}();r.JSXNamespacedName=m;var c=function(){function d(v,E,b){this.type=o.JSXSyntax.JSXOpeningElement,this.name=v,this.selfClosing=E,this.attributes=b}return d}();r.JSXOpeningElement=c;var i=function(){function d(v){this.type=o.JSXSyntax.JSXSpreadAttribute,this.argument=v}return d}();r.JSXSpreadAttribute=i;var s=function(){function d(v,E){this.type=o.JSXSyntax.JSXText,this.value=v,this.raw=E}return d}();r.JSXText=s},function(n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.JSXSyntax={JSXAttribute:"JSXAttribute",JSXClosingElement:"JSXClosingElement",JSXElement:"JSXElement",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXIdentifier:"JSXIdentifier",JSXMemberExpression:"JSXMemberExpression",JSXNamespacedName:"JSXNamespacedName",JSXOpeningElement:"JSXOpeningElement",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText"}},function(n,r,l){Object.defineProperty(r,"__esModule",{value:!0});var o=l(2),y=function(){function K(Y){this.type=o.Syntax.ArrayExpression,this.elements=Y}return K}();r.ArrayExpression=y;var h=function(){function K(Y){this.type=o.Syntax.ArrayPattern,this.elements=Y}return K}();r.ArrayPattern=h;var f=function(){function K(Y,ne,Ee){this.type=o.Syntax.ArrowFunctionExpression,this.id=null,this.params=Y,this.body=ne,this.generator=!1,this.expression=Ee,this.async=!1}return K}();r.ArrowFunctionExpression=f;var u=function(){function K(Y,ne,Ee){this.type=o.Syntax.AssignmentExpression,this.operator=Y,this.left=ne,this.right=Ee}return K}();r.AssignmentExpression=u;var a=function(){function K(Y,ne){this.type=o.Syntax.AssignmentPattern,this.left=Y,this.right=ne}return K}();r.AssignmentPattern=a;var p=function(){function K(Y,ne,Ee){this.type=o.Syntax.ArrowFunctionExpression,this.id=null,this.params=Y,this.body=ne,this.generator=!1,this.expression=Ee,this.async=!0}return K}();r.AsyncArrowFunctionExpression=p;var g=function(){function K(Y,ne,Ee){this.type=o.Syntax.FunctionDeclaration,this.id=Y,this.params=ne,this.body=Ee,this.generator=!1,this.expression=!1,this.async=!0}return K}();r.AsyncFunctionDeclaration=g;var m=function(){function K(Y,ne,Ee){this.type=o.Syntax.FunctionExpression,this.id=Y,this.params=ne,this.body=Ee,this.generator=!1,this.expression=!1,this.async=!0}return K}();r.AsyncFunctionExpression=m;var c=function(){function K(Y){this.type=o.Syntax.AwaitExpression,this.argument=Y}return K}();r.AwaitExpression=c;var i=function(){function K(Y,ne,Ee){var Ge=Y==="||"||Y==="&&";this.type=Ge?o.Syntax.LogicalExpression:o.Syntax.BinaryExpression,this.operator=Y,this.left=ne,this.right=Ee}return K}();r.BinaryExpression=i;var s=function(){function K(Y){this.type=o.Syntax.BlockStatement,this.body=Y}return K}();r.BlockStatement=s;var d=function(){function K(Y){this.type=o.Syntax.BreakStatement,this.label=Y}return K}();r.BreakStatement=d;var v=function(){function K(Y,ne){this.type=o.Syntax.CallExpression,this.callee=Y,this.arguments=ne}return K}();r.CallExpression=v;var E=function(){function K(Y,ne){this.type=o.Syntax.CatchClause,this.param=Y,this.body=ne}return K}();r.CatchClause=E;var b=function(){function K(Y){this.type=o.Syntax.ClassBody,this.body=Y}return K}();r.ClassBody=b;var A=function(){function K(Y,ne,Ee){this.type=o.Syntax.ClassDeclaration,this.id=Y,this.superClass=ne,this.body=Ee}return K}();r.ClassDeclaration=A;var _=function(){function K(Y,ne,Ee){this.type=o.Syntax.ClassExpression,this.id=Y,this.superClass=ne,this.body=Ee}return K}();r.ClassExpression=_;var D=function(){function K(Y,ne){this.type=o.Syntax.MemberExpression,this.computed=!0,this.object=Y,this.property=ne}return K}();r.ComputedMemberExpression=D;var F=function(){function K(Y,ne,Ee){this.type=o.Syntax.ConditionalExpression,this.test=Y,this.consequent=ne,this.alternate=Ee}return K}();r.ConditionalExpression=F;var B=function(){function K(Y){this.type=o.Syntax.ContinueStatement,this.label=Y}return K}();r.ContinueStatement=B;var N=function(){function K(){this.type=o.Syntax.DebuggerStatement}return K}();r.DebuggerStatement=N;var I=function(){function K(Y,ne){this.type=o.Syntax.ExpressionStatement,this.expression=Y,this.directive=ne}return K}();r.Directive=I;var R=function(){function K(Y,ne){this.type=o.Syntax.DoWhileStatement,this.body=Y,this.test=ne}return K}();r.DoWhileStatement=R;var M=function(){function K(){this.type=o.Syntax.EmptyStatement}return K}();r.EmptyStatement=M;var $=function(){function K(Y){this.type=o.Syntax.ExportAllDeclaration,this.source=Y}return K}();r.ExportAllDeclaration=$;var z=function(){function K(Y){this.type=o.Syntax.ExportDefaultDeclaration,this.declaration=Y}return K}();r.ExportDefaultDeclaration=z;var X=function(){function K(Y,ne,Ee){this.type=o.Syntax.ExportNamedDeclaration,this.declaration=Y,this.specifiers=ne,this.source=Ee}return K}();r.ExportNamedDeclaration=X;var P=function(){function K(Y,ne){this.type=o.Syntax.ExportSpecifier,this.exported=ne,this.local=Y}return K}();r.ExportSpecifier=P;var O=function(){function K(Y){this.type=o.Syntax.ExpressionStatement,this.expression=Y}return K}();r.ExpressionStatement=O;var L=function(){function K(Y,ne,Ee){this.type=o.Syntax.ForInStatement,this.left=Y,this.right=ne,this.body=Ee,this.each=!1}return K}();r.ForInStatement=L;var V=function(){function K(Y,ne,Ee){this.type=o.Syntax.ForOfStatement,this.left=Y,this.right=ne,this.body=Ee}return K}();r.ForOfStatement=V;var x=function(){function K(Y,ne,Ee,Ge){this.type=o.Syntax.ForStatement,this.init=Y,this.test=ne,this.update=Ee,this.body=Ge}return K}();r.ForStatement=x;var w=function(){function K(Y,ne,Ee,Ge){this.type=o.Syntax.FunctionDeclaration,this.id=Y,this.params=ne,this.body=Ee,this.generator=Ge,this.expression=!1,this.async=!1}return K}();r.FunctionDeclaration=w;var S=function(){function K(Y,ne,Ee,Ge){this.type=o.Syntax.FunctionExpression,this.id=Y,this.params=ne,this.body=Ee,this.generator=Ge,this.expression=!1,this.async=!1}return K}();r.FunctionExpression=S;var T=function(){function K(Y){this.type=o.Syntax.Identifier,this.name=Y}return K}();r.Identifier=T;var C=function(){function K(Y,ne,Ee){this.type=o.Syntax.IfStatement,this.test=Y,this.consequent=ne,this.alternate=Ee}return K}();r.IfStatement=C;var j=function(){function K(Y,ne){this.type=o.Syntax.ImportDeclaration,this.specifiers=Y,this.source=ne}return K}();r.ImportDeclaration=j;var U=function(){function K(Y){this.type=o.Syntax.ImportDefaultSpecifier,this.local=Y}return K}();r.ImportDefaultSpecifier=U;var H=function(){function K(Y){this.type=o.Syntax.ImportNamespaceSpecifier,this.local=Y}return K}();r.ImportNamespaceSpecifier=H;var G=function(){function K(Y,ne){this.type=o.Syntax.ImportSpecifier,this.local=Y,this.imported=ne}return K}();r.ImportSpecifier=G;var ee=function(){function K(Y,ne){this.type=o.Syntax.LabeledStatement,this.label=Y,this.body=ne}return K}();r.LabeledStatement=ee;var se=function(){function K(Y,ne){this.type=o.Syntax.Literal,this.value=Y,this.raw=ne}return K}();r.Literal=se;var pe=function(){function K(Y,ne){this.type=o.Syntax.MetaProperty,this.meta=Y,this.property=ne}return K}();r.MetaProperty=pe;var he=function(){function K(Y,ne,Ee,Ge,qr){this.type=o.Syntax.MethodDefinition,this.key=Y,this.computed=ne,this.value=Ee,this.kind=Ge,this.static=qr}return K}();r.MethodDefinition=he;var Q=function(){function K(Y){this.type=o.Syntax.Program,this.body=Y,this.sourceType="module"}return K}();r.Module=Q;var ie=function(){function K(Y,ne){this.type=o.Syntax.NewExpression,this.callee=Y,this.arguments=ne}return K}();r.NewExpression=ie;var ae=function(){function K(Y){this.type=o.Syntax.ObjectExpression,this.properties=Y}return K}();r.ObjectExpression=ae;var ue=function(){function K(Y){this.type=o.Syntax.ObjectPattern,this.properties=Y}return K}();r.ObjectPattern=ue;var de=function(){function K(Y,ne,Ee,Ge,qr,or){this.type=o.Syntax.Property,this.key=ne,this.computed=Ee,this.value=Ge,this.kind=Y,this.method=qr,this.shorthand=or}return K}();r.Property=de;var W=function(){function K(Y,ne,Ee,Ge){this.type=o.Syntax.Literal,this.value=Y,this.raw=ne,this.regex={pattern:Ee,flags:Ge}}return K}();r.RegexLiteral=W;var be=function(){function K(Y){this.type=o.Syntax.RestElement,this.argument=Y}return K}();r.RestElement=be;var _e=function(){function K(Y){this.type=o.Syntax.ReturnStatement,this.argument=Y}return K}();r.ReturnStatement=_e;var q=function(){function K(Y){this.type=o.Syntax.Program,this.body=Y,this.sourceType="script"}return K}();r.Script=q;var J=function(){function K(Y){this.type=o.Syntax.SequenceExpression,this.expressions=Y}return K}();r.SequenceExpression=J;var re=function(){function K(Y){this.type=o.Syntax.SpreadElement,this.argument=Y}return K}();r.SpreadElement=re;var le=function(){function K(Y,ne){this.type=o.Syntax.MemberExpression,this.computed=!1,this.object=Y,this.property=ne}return K}();r.StaticMemberExpression=le;var ce=function(){function K(){this.type=o.Syntax.Super}return K}();r.Super=ce;var ge=function(){function K(Y,ne){this.type=o.Syntax.SwitchCase,this.test=Y,this.consequent=ne}return K}();r.SwitchCase=ge;var me=function(){function K(Y,ne){this.type=o.Syntax.SwitchStatement,this.discriminant=Y,this.cases=ne}return K}();r.SwitchStatement=me;var Ce=function(){function K(Y,ne){this.type=o.Syntax.TaggedTemplateExpression,this.tag=Y,this.quasi=ne}return K}();r.TaggedTemplateExpression=Ce;var De=function(){function K(Y,ne){this.type=o.Syntax.TemplateElement,this.value=Y,this.tail=ne}return K}();r.TemplateElement=De;var Ue=function(){function K(Y,ne){this.type=o.Syntax.TemplateLiteral,this.quasis=Y,this.expressions=ne}return K}();r.TemplateLiteral=Ue;var Xe=function(){function K(){this.type=o.Syntax.ThisExpression}return K}();r.ThisExpression=Xe;var it=function(){function K(Y){this.type=o.Syntax.ThrowStatement,this.argument=Y}return K}();r.ThrowStatement=it;var dt=function(){function K(Y,ne,Ee){this.type=o.Syntax.TryStatement,this.block=Y,this.handler=ne,this.finalizer=Ee}return K}();r.TryStatement=dt;var bt=function(){function K(Y,ne){this.type=o.Syntax.UnaryExpression,this.operator=Y,this.argument=ne,this.prefix=!0}return K}();r.UnaryExpression=bt;var St=function(){function K(Y,ne,Ee){this.type=o.Syntax.UpdateExpression,this.operator=Y,this.argument=ne,this.prefix=Ee}return K}();r.UpdateExpression=St;var xr=function(){function K(Y,ne){this.type=o.Syntax.VariableDeclaration,this.declarations=Y,this.kind=ne}return K}();r.VariableDeclaration=xr;var Ui=function(){function K(Y,ne){this.type=o.Syntax.VariableDeclarator,this.id=Y,this.init=ne}return K}();r.VariableDeclarator=Ui;var Qn=function(){function K(Y,ne){this.type=o.Syntax.WhileStatement,this.test=Y,this.body=ne}return K}();r.WhileStatement=Qn;var zr=function(){function K(Y,ne){this.type=o.Syntax.WithStatement,this.object=Y,this.body=ne}return K}();r.WithStatement=zr;var Zn=function(){function K(Y,ne){this.type=o.Syntax.YieldExpression,this.argument=Y,this.delegate=ne}return K}();r.YieldExpression=Zn},function(n,r,l){Object.defineProperty(r,"__esModule",{value:!0});var o=l(9),y=l(10),h=l(11),f=l(7),u=l(12),a=l(2),p=l(13),g="ArrowParameterPlaceHolder",m=function(){function c(i,s,d){s===void 0&&(s={}),this.config={range:typeof s.range=="boolean"&&s.range,loc:typeof s.loc=="boolean"&&s.loc,source:null,tokens:typeof s.tokens=="boolean"&&s.tokens,comment:typeof s.comment=="boolean"&&s.comment,tolerant:typeof s.tolerant=="boolean"&&s.tolerant},this.config.loc&&s.source&&s.source!==null&&(this.config.source=String(s.source)),this.delegate=d,this.errorHandler=new y.ErrorHandler,this.errorHandler.tolerant=this.config.tolerant,this.scanner=new u.Scanner(i,this.errorHandler),this.scanner.trackComment=this.config.comment,this.operatorPrecedence={")":0,";":0,",":0,"=":0,"]":0,"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":11,"/":11,"%":11},this.lookahead={type:2,value:"",lineNumber:this.scanner.lineNumber,lineStart:0,start:0,end:0},this.hasLineTerminator=!1,this.context={isModule:!1,await:!1,allowIn:!0,allowStrictDirective:!0,allowYield:!0,firstCoverInitializedNameError:null,isAssignmentTarget:!1,isBindingElement:!1,inFunctionBody:!1,inIteration:!1,inSwitch:!1,labelSet:{},strict:!1},this.tokens=[],this.startMarker={index:0,line:this.scanner.lineNumber,column:0},this.lastMarker={index:0,line:this.scanner.lineNumber,column:0},this.nextToken(),this.lastMarker={index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}return c.prototype.throwError=function(i){var s=Array.prototype.slice.call(arguments,1),d=i.replace(/%(\d)/g,function(A,_){return o.assert(_<s.length,"Message reference must be in range"),s[_]}),v=this.lastMarker.index,E=this.lastMarker.line,b=this.lastMarker.column+1;throw this.errorHandler.createError(v,E,b,d)},c.prototype.tolerateError=function(i){var s=Array.prototype.slice.call(arguments,1),d=i.replace(/%(\d)/g,function(A,_){return o.assert(_<s.length,"Message reference must be in range"),s[_]}),v=this.lastMarker.index,E=this.scanner.lineNumber,b=this.lastMarker.column+1;this.errorHandler.tolerateError(v,E,b,d)},c.prototype.unexpectedTokenError=function(i,s){var d=s||h.Messages.UnexpectedToken,v;if(i?(s||(d=i.type===2?h.Messages.UnexpectedEOS:i.type===3?h.Messages.UnexpectedIdentifier:i.type===6?h.Messages.UnexpectedNumber:i.type===8?h.Messages.UnexpectedString:i.type===10?h.Messages.UnexpectedTemplate:h.Messages.UnexpectedToken,i.type===4&&(this.scanner.isFutureReservedWord(i.value)?d=h.Messages.UnexpectedReserved:this.context.strict&&this.scanner.isStrictModeReservedWord(i.value)&&(d=h.Messages.StrictReservedWord))),v=i.value):v="ILLEGAL",d=d.replace("%0",v),i&&typeof i.lineNumber=="number"){var E=i.start,b=i.lineNumber,A=this.lastMarker.index-this.lastMarker.column,_=i.start-A+1;return this.errorHandler.createError(E,b,_,d)}else{var E=this.lastMarker.index,b=this.lastMarker.line,_=this.lastMarker.column+1;return this.errorHandler.createError(E,b,_,d)}},c.prototype.throwUnexpectedToken=function(i,s){throw this.unexpectedTokenError(i,s)},c.prototype.tolerateUnexpectedToken=function(i,s){this.errorHandler.tolerate(this.unexpectedTokenError(i,s))},c.prototype.collectComments=function(){if(!this.config.comment)this.scanner.scanComments();else{var i=this.scanner.scanComments();if(i.length>0&&this.delegate)for(var s=0;s<i.length;++s){var d=i[s],v=void 0;v={type:d.multiLine?"BlockComment":"LineComment",value:this.scanner.source.slice(d.slice[0],d.slice[1])},this.config.range&&(v.range=d.range),this.config.loc&&(v.loc=d.loc);var E={start:{line:d.loc.start.line,column:d.loc.start.column,offset:d.range[0]},end:{line:d.loc.end.line,column:d.loc.end.column,offset:d.range[1]}};this.delegate(v,E)}}},c.prototype.getTokenRaw=function(i){return this.scanner.source.slice(i.start,i.end)},c.prototype.convertToken=function(i){var s={type:p.TokenName[i.type],value:this.getTokenRaw(i)};if(this.config.range&&(s.range=[i.start,i.end]),this.config.loc&&(s.loc={start:{line:this.startMarker.line,column:this.startMarker.column},end:{line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}),i.type===9){var d=i.pattern,v=i.flags;s.regex={pattern:d,flags:v}}return s},c.prototype.nextToken=function(){var i=this.lookahead;this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.collectComments(),this.scanner.index!==this.startMarker.index&&(this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart);var s=this.scanner.lex();return this.hasLineTerminator=i.lineNumber!==s.lineNumber,s&&this.context.strict&&s.type===3&&this.scanner.isStrictModeReservedWord(s.value)&&(s.type=4),this.lookahead=s,this.config.tokens&&s.type!==2&&this.tokens.push(this.convertToken(s)),i},c.prototype.nextRegexToken=function(){this.collectComments();var i=this.scanner.scanRegExp();return this.config.tokens&&(this.tokens.pop(),this.tokens.push(this.convertToken(i))),this.lookahead=i,this.nextToken(),i},c.prototype.createNode=function(){return{index:this.startMarker.index,line:this.startMarker.line,column:this.startMarker.column}},c.prototype.startNode=function(i,s){s===void 0&&(s=0);var d=i.start-i.lineStart,v=i.lineNumber;return d<0&&(d+=s,v--),{index:i.start,line:v,column:d}},c.prototype.finalize=function(i,s){if(this.config.range&&(s.range=[i.index,this.lastMarker.index]),this.config.loc&&(s.loc={start:{line:i.line,column:i.column},end:{line:this.lastMarker.line,column:this.lastMarker.column}},this.config.source&&(s.loc.source=this.config.source)),this.delegate){var d={start:{line:i.line,column:i.column,offset:i.index},end:{line:this.lastMarker.line,column:this.lastMarker.column,offset:this.lastMarker.index}};this.delegate(s,d)}return s},c.prototype.expect=function(i){var s=this.nextToken();(s.type!==7||s.value!==i)&&this.throwUnexpectedToken(s)},c.prototype.expectCommaSeparator=function(){if(this.config.tolerant){var i=this.lookahead;i.type===7&&i.value===","?this.nextToken():i.type===7&&i.value===";"?(this.nextToken(),this.tolerateUnexpectedToken(i)):this.tolerateUnexpectedToken(i,h.Messages.UnexpectedToken)}else this.expect(",")},c.prototype.expectKeyword=function(i){var s=this.nextToken();(s.type!==4||s.value!==i)&&this.throwUnexpectedToken(s)},c.prototype.match=function(i){return this.lookahead.type===7&&this.lookahead.value===i},c.prototype.matchKeyword=function(i){return this.lookahead.type===4&&this.lookahead.value===i},c.prototype.matchContextualKeyword=function(i){return this.lookahead.type===3&&this.lookahead.value===i},c.prototype.matchAssign=function(){if(this.lookahead.type!==7)return!1;var i=this.lookahead.value;return i==="="||i==="*="||i==="**="||i==="/="||i==="%="||i==="+="||i==="-="||i==="<<="||i===">>="||i===">>>="||i==="&="||i==="^="||i==="|="},c.prototype.isolateCoverGrammar=function(i){var s=this.context.isBindingElement,d=this.context.isAssignmentTarget,v=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var E=i.call(this);return this.context.firstCoverInitializedNameError!==null&&this.throwUnexpectedToken(this.context.firstCoverInitializedNameError),this.context.isBindingElement=s,this.context.isAssignmentTarget=d,this.context.firstCoverInitializedNameError=v,E},c.prototype.inheritCoverGrammar=function(i){var s=this.context.isBindingElement,d=this.context.isAssignmentTarget,v=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var E=i.call(this);return this.context.isBindingElement=this.context.isBindingElement&&s,this.context.isAssignmentTarget=this.context.isAssignmentTarget&&d,this.context.firstCoverInitializedNameError=v||this.context.firstCoverInitializedNameError,E},c.prototype.consumeSemicolon=function(){this.match(";")?this.nextToken():this.hasLineTerminator||(this.lookahead.type!==2&&!this.match("}")&&this.throwUnexpectedToken(this.lookahead),this.lastMarker.index=this.startMarker.index,this.lastMarker.line=this.startMarker.line,this.lastMarker.column=this.startMarker.column)},c.prototype.parsePrimaryExpression=function(){var i=this.createNode(),s,d,v;switch(this.lookahead.type){case 3:(this.context.isModule||this.context.await)&&this.lookahead.value==="await"&&this.tolerateUnexpectedToken(this.lookahead),s=this.matchAsyncFunction()?this.parseFunctionExpression():this.finalize(i,new f.Identifier(this.nextToken().value));break;case 6:case 8:this.context.strict&&this.lookahead.octal&&this.tolerateUnexpectedToken(this.lookahead,h.Messages.StrictOctalLiteral),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,d=this.nextToken(),v=this.getTokenRaw(d),s=this.finalize(i,new f.Literal(d.value,v));break;case 1:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,d=this.nextToken(),v=this.getTokenRaw(d),s=this.finalize(i,new f.Literal(d.value==="true",v));break;case 5:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,d=this.nextToken(),v=this.getTokenRaw(d),s=this.finalize(i,new f.Literal(null,v));break;case 10:s=this.parseTemplateLiteral();break;case 7:switch(this.lookahead.value){case"(":this.context.isBindingElement=!1,s=this.inheritCoverGrammar(this.parseGroupExpression);break;case"[":s=this.inheritCoverGrammar(this.parseArrayInitializer);break;case"{":s=this.inheritCoverGrammar(this.parseObjectInitializer);break;case"/":case"/=":this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.scanner.index=this.startMarker.index,d=this.nextRegexToken(),v=this.getTokenRaw(d),s=this.finalize(i,new f.RegexLiteral(d.regex,v,d.pattern,d.flags));break;default:s=this.throwUnexpectedToken(this.nextToken())}break;case 4:!this.context.strict&&this.context.allowYield&&this.matchKeyword("yield")?s=this.parseIdentifierName():!this.context.strict&&this.matchKeyword("let")?s=this.finalize(i,new f.Identifier(this.nextToken().value)):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.matchKeyword("function")?s=this.parseFunctionExpression():this.matchKeyword("this")?(this.nextToken(),s=this.finalize(i,new f.ThisExpression)):this.matchKeyword("class")?s=this.parseClassExpression():s=this.throwUnexpectedToken(this.nextToken()));break;default:s=this.throwUnexpectedToken(this.nextToken())}return s},c.prototype.parseSpreadElement=function(){var i=this.createNode();this.expect("...");var s=this.inheritCoverGrammar(this.parseAssignmentExpression);return this.finalize(i,new f.SpreadElement(s))},c.prototype.parseArrayInitializer=function(){var i=this.createNode(),s=[];for(this.expect("[");!this.match("]");)if(this.match(","))this.nextToken(),s.push(null);else if(this.match("...")){var d=this.parseSpreadElement();this.match("]")||(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.expect(",")),s.push(d)}else s.push(this.inheritCoverGrammar(this.parseAssignmentExpression)),this.match("]")||this.expect(",");return this.expect("]"),this.finalize(i,new f.ArrayExpression(s))},c.prototype.parsePropertyMethod=function(i){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var s=this.context.strict,d=this.context.allowStrictDirective;this.context.allowStrictDirective=i.simple;var v=this.isolateCoverGrammar(this.parseFunctionSourceElements);return this.context.strict&&i.firstRestricted&&this.tolerateUnexpectedToken(i.firstRestricted,i.message),this.context.strict&&i.stricted&&this.tolerateUnexpectedToken(i.stricted,i.message),this.context.strict=s,this.context.allowStrictDirective=d,v},c.prototype.parsePropertyMethodFunction=function(){var i=!1,s=this.createNode(),d=this.context.allowYield;this.context.allowYield=!0;var v=this.parseFormalParameters(),E=this.parsePropertyMethod(v);return this.context.allowYield=d,this.finalize(s,new f.FunctionExpression(null,v.params,E,i))},c.prototype.parsePropertyMethodAsyncFunction=function(){var i=this.createNode(),s=this.context.allowYield,d=this.context.await;this.context.allowYield=!1,this.context.await=!0;var v=this.parseFormalParameters(),E=this.parsePropertyMethod(v);return this.context.allowYield=s,this.context.await=d,this.finalize(i,new f.AsyncFunctionExpression(null,v.params,E))},c.prototype.parseObjectPropertyKey=function(){var i=this.createNode(),s=this.nextToken(),d;switch(s.type){case 8:case 6:this.context.strict&&s.octal&&this.tolerateUnexpectedToken(s,h.Messages.StrictOctalLiteral);var v=this.getTokenRaw(s);d=this.finalize(i,new f.Literal(s.value,v));break;case 3:case 1:case 5:case 4:d=this.finalize(i,new f.Identifier(s.value));break;case 7:s.value==="["?(d=this.isolateCoverGrammar(this.parseAssignmentExpression),this.expect("]")):d=this.throwUnexpectedToken(s);break;default:d=this.throwUnexpectedToken(s)}return d},c.prototype.isPropertyKey=function(i,s){return i.type===a.Syntax.Identifier&&i.name===s||i.type===a.Syntax.Literal&&i.value===s},c.prototype.parseObjectProperty=function(i){var s=this.createNode(),d=this.lookahead,v,E=null,b=null,A=!1,_=!1,D=!1,F=!1;if(d.type===3){var B=d.value;this.nextToken(),A=this.match("["),F=!this.hasLineTerminator&&B==="async"&&!this.match(":")&&!this.match("(")&&!this.match("*")&&!this.match(","),E=F?this.parseObjectPropertyKey():this.finalize(s,new f.Identifier(B))}else this.match("*")?this.nextToken():(A=this.match("["),E=this.parseObjectPropertyKey());var N=this.qualifiedPropertyName(this.lookahead);if(d.type===3&&!F&&d.value==="get"&&N)v="get",A=this.match("["),E=this.parseObjectPropertyKey(),this.context.allowYield=!1,b=this.parseGetterMethod();else if(d.type===3&&!F&&d.value==="set"&&N)v="set",A=this.match("["),E=this.parseObjectPropertyKey(),b=this.parseSetterMethod();else if(d.type===7&&d.value==="*"&&N)v="init",A=this.match("["),E=this.parseObjectPropertyKey(),b=this.parseGeneratorMethod(),_=!0;else if(E||this.throwUnexpectedToken(this.lookahead),v="init",this.match(":")&&!F)!A&&this.isPropertyKey(E,"__proto__")&&(i.value&&this.tolerateError(h.Messages.DuplicateProtoProperty),i.value=!0),this.nextToken(),b=this.inheritCoverGrammar(this.parseAssignmentExpression);else if(this.match("("))b=F?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),_=!0;else if(d.type===3){var B=this.finalize(s,new f.Identifier(d.value));if(this.match("=")){this.context.firstCoverInitializedNameError=this.lookahead,this.nextToken(),D=!0;var I=this.isolateCoverGrammar(this.parseAssignmentExpression);b=this.finalize(s,new f.AssignmentPattern(B,I))}else D=!0,b=B}else this.throwUnexpectedToken(this.nextToken());return this.finalize(s,new f.Property(v,E,A,b,_,D))},c.prototype.parseObjectInitializer=function(){var i=this.createNode();this.expect("{");for(var s=[],d={value:!1};!this.match("}");)s.push(this.parseObjectProperty(d)),this.match("}")||this.expectCommaSeparator();return this.expect("}"),this.finalize(i,new f.ObjectExpression(s))},c.prototype.parseTemplateHead=function(){o.assert(this.lookahead.head,"Template literal must start with a template head");var i=this.createNode(),s=this.nextToken(),d=s.value,v=s.cooked;return this.finalize(i,new f.TemplateElement({raw:d,cooked:v},s.tail))},c.prototype.parseTemplateElement=function(){this.lookahead.type!==10&&this.throwUnexpectedToken();var i=this.createNode(),s=this.nextToken(),d=s.value,v=s.cooked;return this.finalize(i,new f.TemplateElement({raw:d,cooked:v},s.tail))},c.prototype.parseTemplateLiteral=function(){var i=this.createNode(),s=[],d=[],v=this.parseTemplateHead();for(d.push(v);!v.tail;)s.push(this.parseExpression()),v=this.parseTemplateElement(),d.push(v);return this.finalize(i,new f.TemplateLiteral(d,s))},c.prototype.reinterpretExpressionAsPattern=function(i){switch(i.type){case a.Syntax.Identifier:case a.Syntax.MemberExpression:case a.Syntax.RestElement:case a.Syntax.AssignmentPattern:break;case a.Syntax.SpreadElement:i.type=a.Syntax.RestElement,this.reinterpretExpressionAsPattern(i.argument);break;case a.Syntax.ArrayExpression:i.type=a.Syntax.ArrayPattern;for(var s=0;s<i.elements.length;s++)i.elements[s]!==null&&this.reinterpretExpressionAsPattern(i.elements[s]);break;case a.Syntax.ObjectExpression:i.type=a.Syntax.ObjectPattern;for(var s=0;s<i.properties.length;s++)this.reinterpretExpressionAsPattern(i.properties[s].value);break;case a.Syntax.AssignmentExpression:i.type=a.Syntax.AssignmentPattern,delete i.operator,this.reinterpretExpressionAsPattern(i.left);break}},c.prototype.parseGroupExpression=function(){var i;if(this.expect("("),this.match(")"))this.nextToken(),this.match("=>")||this.expect("=>"),i={type:g,params:[],async:!1};else{var s=this.lookahead,d=[];if(this.match("..."))i=this.parseRestElement(d),this.expect(")"),this.match("=>")||this.expect("=>"),i={type:g,params:[i],async:!1};else{var v=!1;if(this.context.isBindingElement=!0,i=this.inheritCoverGrammar(this.parseAssignmentExpression),this.match(",")){var E=[];for(this.context.isAssignmentTarget=!1,E.push(i);this.lookahead.type!==2&&this.match(",");){if(this.nextToken(),this.match(")")){this.nextToken();for(var b=0;b<E.length;b++)this.reinterpretExpressionAsPattern(E[b]);v=!0,i={type:g,params:E,async:!1}}else if(this.match("...")){this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),E.push(this.parseRestElement(d)),this.expect(")"),this.match("=>")||this.expect("=>"),this.context.isBindingElement=!1;for(var b=0;b<E.length;b++)this.reinterpretExpressionAsPattern(E[b]);v=!0,i={type:g,params:E,async:!1}}else E.push(this.inheritCoverGrammar(this.parseAssignmentExpression));if(v)break}v||(i=this.finalize(this.startNode(s),new f.SequenceExpression(E)))}if(!v){if(this.expect(")"),this.match("=>")&&(i.type===a.Syntax.Identifier&&i.name==="yield"&&(v=!0,i={type:g,params:[i],async:!1}),!v)){if(this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),i.type===a.Syntax.SequenceExpression)for(var b=0;b<i.expressions.length;b++)this.reinterpretExpressionAsPattern(i.expressions[b]);else this.reinterpretExpressionAsPattern(i);var A=i.type===a.Syntax.SequenceExpression?i.expressions:[i];i={type:g,params:A,async:!1}}this.context.isBindingElement=!1}}}return i},c.prototype.parseArguments=function(){this.expect("(");var i=[];if(!this.match(")"))for(;;){var s=this.match("...")?this.parseSpreadElement():this.isolateCoverGrammar(this.parseAssignmentExpression);if(i.push(s),this.match(")")||(this.expectCommaSeparator(),this.match(")")))break}return this.expect(")"),i},c.prototype.isIdentifierName=function(i){return i.type===3||i.type===4||i.type===1||i.type===5},c.prototype.parseIdentifierName=function(){var i=this.createNode(),s=this.nextToken();return this.isIdentifierName(s)||this.throwUnexpectedToken(s),this.finalize(i,new f.Identifier(s.value))},c.prototype.parseNewExpression=function(){var i=this.createNode(),s=this.parseIdentifierName();o.assert(s.name==="new","New expression must start with `new`");var d;if(this.match("."))if(this.nextToken(),this.lookahead.type===3&&this.context.inFunctionBody&&this.lookahead.value==="target"){var v=this.parseIdentifierName();d=new f.MetaProperty(s,v)}else this.throwUnexpectedToken(this.lookahead);else{var E=this.isolateCoverGrammar(this.parseLeftHandSideExpression),b=this.match("(")?this.parseArguments():[];d=new f.NewExpression(E,b),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return this.finalize(i,d)},c.prototype.parseAsyncArgument=function(){var i=this.parseAssignmentExpression();return this.context.firstCoverInitializedNameError=null,i},c.prototype.parseAsyncArguments=function(){this.expect("(");var i=[];if(!this.match(")"))for(;;){var s=this.match("...")?this.parseSpreadElement():this.isolateCoverGrammar(this.parseAsyncArgument);if(i.push(s),this.match(")")||(this.expectCommaSeparator(),this.match(")")))break}return this.expect(")"),i},c.prototype.parseLeftHandSideExpressionAllowCall=function(){var i=this.lookahead,s=this.matchContextualKeyword("async"),d=this.context.allowIn;this.context.allowIn=!0;var v;for(this.matchKeyword("super")&&this.context.inFunctionBody?(v=this.createNode(),this.nextToken(),v=this.finalize(v,new f.Super),!this.match("(")&&!this.match(".")&&!this.match("[")&&this.throwUnexpectedToken(this.lookahead)):v=this.inheritCoverGrammar(this.matchKeyword("new")?this.parseNewExpression:this.parsePrimaryExpression);;)if(this.match(".")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect(".");var E=this.parseIdentifierName();v=this.finalize(this.startNode(i),new f.StaticMemberExpression(v,E))}else if(this.match("(")){var b=s&&i.lineNumber===this.lookahead.lineNumber;this.context.isBindingElement=!1,this.context.isAssignmentTarget=!1;var A=b?this.parseAsyncArguments():this.parseArguments();if(v=this.finalize(this.startNode(i),new f.CallExpression(v,A)),b&&this.match("=>")){for(var _=0;_<A.length;++_)this.reinterpretExpressionAsPattern(A[_]);v={type:g,params:A,async:!0}}}else if(this.match("[")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect("[");var E=this.isolateCoverGrammar(this.parseExpression);this.expect("]"),v=this.finalize(this.startNode(i),new f.ComputedMemberExpression(v,E))}else if(this.lookahead.type===10&&this.lookahead.head){var D=this.parseTemplateLiteral();v=this.finalize(this.startNode(i),new f.TaggedTemplateExpression(v,D))}else break;return this.context.allowIn=d,v},c.prototype.parseSuper=function(){var i=this.createNode();return this.expectKeyword("super"),!this.match("[")&&!this.match(".")&&this.throwUnexpectedToken(this.lookahead),this.finalize(i,new f.Super)},c.prototype.parseLeftHandSideExpression=function(){o.assert(this.context.allowIn,"callee of new expression always allow in keyword.");for(var i=this.startNode(this.lookahead),s=this.matchKeyword("super")&&this.context.inFunctionBody?this.parseSuper():this.inheritCoverGrammar(this.matchKeyword("new")?this.parseNewExpression:this.parsePrimaryExpression);;)if(this.match("[")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect("[");var d=this.isolateCoverGrammar(this.parseExpression);this.expect("]"),s=this.finalize(i,new f.ComputedMemberExpression(s,d))}else if(this.match(".")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect(".");var d=this.parseIdentifierName();s=this.finalize(i,new f.StaticMemberExpression(s,d))}else if(this.lookahead.type===10&&this.lookahead.head){var v=this.parseTemplateLiteral();s=this.finalize(i,new f.TaggedTemplateExpression(s,v))}else break;return s},c.prototype.parseUpdateExpression=function(){var i,s=this.lookahead;if(this.match("++")||this.match("--")){var d=this.startNode(s),v=this.nextToken();i=this.inheritCoverGrammar(this.parseUnaryExpression),this.context.strict&&i.type===a.Syntax.Identifier&&this.scanner.isRestrictedWord(i.name)&&this.tolerateError(h.Messages.StrictLHSPrefix),this.context.isAssignmentTarget||this.tolerateError(h.Messages.InvalidLHSInAssignment);var E=!0;i=this.finalize(d,new f.UpdateExpression(v.value,i,E)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}else if(i=this.inheritCoverGrammar(this.parseLeftHandSideExpressionAllowCall),!this.hasLineTerminator&&this.lookahead.type===7&&(this.match("++")||this.match("--"))){this.context.strict&&i.type===a.Syntax.Identifier&&this.scanner.isRestrictedWord(i.name)&&this.tolerateError(h.Messages.StrictLHSPostfix),this.context.isAssignmentTarget||this.tolerateError(h.Messages.InvalidLHSInAssignment),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var b=this.nextToken().value,E=!1;i=this.finalize(this.startNode(s),new f.UpdateExpression(b,i,E))}return i},c.prototype.parseAwaitExpression=function(){var i=this.createNode();this.nextToken();var s=this.parseUnaryExpression();return this.finalize(i,new f.AwaitExpression(s))},c.prototype.parseUnaryExpression=function(){var i;if(this.match("+")||this.match("-")||this.match("~")||this.match("!")||this.matchKeyword("delete")||this.matchKeyword("void")||this.matchKeyword("typeof")){var s=this.startNode(this.lookahead),d=this.nextToken();i=this.inheritCoverGrammar(this.parseUnaryExpression),i=this.finalize(s,new f.UnaryExpression(d.value,i)),this.context.strict&&i.operator==="delete"&&i.argument.type===a.Syntax.Identifier&&this.tolerateError(h.Messages.StrictDelete),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}else this.context.await&&this.matchContextualKeyword("await")?i=this.parseAwaitExpression():i=this.parseUpdateExpression();return i},c.prototype.parseExponentiationExpression=function(){var i=this.lookahead,s=this.inheritCoverGrammar(this.parseUnaryExpression);if(s.type!==a.Syntax.UnaryExpression&&this.match("**")){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var d=s,v=this.isolateCoverGrammar(this.parseExponentiationExpression);s=this.finalize(this.startNode(i),new f.BinaryExpression("**",d,v))}return s},c.prototype.binaryPrecedence=function(i){var s=i.value,d;return i.type===7?d=this.operatorPrecedence[s]||0:i.type===4?d=s==="instanceof"||this.context.allowIn&&s==="in"?7:0:d=0,d},c.prototype.parseBinaryExpression=function(){var i=this.lookahead,s=this.inheritCoverGrammar(this.parseExponentiationExpression),d=this.lookahead,v=this.binaryPrecedence(d);if(v>0){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;for(var E=[i,this.lookahead],b=s,A=this.isolateCoverGrammar(this.parseExponentiationExpression),_=[b,d.value,A],D=[v];v=this.binaryPrecedence(this.lookahead),!(v<=0);){for(;_.length>2&&v<=D[D.length-1];){A=_.pop();var F=_.pop();D.pop(),b=_.pop(),E.pop();var B=this.startNode(E[E.length-1]);_.push(this.finalize(B,new f.BinaryExpression(F,b,A)))}_.push(this.nextToken().value),D.push(v),E.push(this.lookahead),_.push(this.isolateCoverGrammar(this.parseExponentiationExpression))}var N=_.length-1;s=_[N];for(var I=E.pop();N>1;){var R=E.pop(),M=I&&I.lineStart,B=this.startNode(R,M),F=_[N-1];s=this.finalize(B,new f.BinaryExpression(F,_[N-2],s)),N-=2,I=R}}return s},c.prototype.parseConditionalExpression=function(){var i=this.lookahead,s=this.inheritCoverGrammar(this.parseBinaryExpression);if(this.match("?")){this.nextToken();var d=this.context.allowIn;this.context.allowIn=!0;var v=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowIn=d,this.expect(":");var E=this.isolateCoverGrammar(this.parseAssignmentExpression);s=this.finalize(this.startNode(i),new f.ConditionalExpression(s,v,E)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return s},c.prototype.checkPatternParam=function(i,s){switch(s.type){case a.Syntax.Identifier:this.validateParam(i,s,s.name);break;case a.Syntax.RestElement:this.checkPatternParam(i,s.argument);break;case a.Syntax.AssignmentPattern:this.checkPatternParam(i,s.left);break;case a.Syntax.ArrayPattern:for(var d=0;d<s.elements.length;d++)s.elements[d]!==null&&this.checkPatternParam(i,s.elements[d]);break;case a.Syntax.ObjectPattern:for(var d=0;d<s.properties.length;d++)this.checkPatternParam(i,s.properties[d].value);break}i.simple=i.simple&&s instanceof f.Identifier},c.prototype.reinterpretAsCoverFormalsList=function(i){var s=[i],d,v=!1;switch(i.type){case a.Syntax.Identifier:break;case g:s=i.params,v=i.async;break;default:return null}d={simple:!0,paramSet:{}};for(var E=0;E<s.length;++E){var b=s[E];b.type===a.Syntax.AssignmentPattern?b.right.type===a.Syntax.YieldExpression&&(b.right.argument&&this.throwUnexpectedToken(this.lookahead),b.right.type=a.Syntax.Identifier,b.right.name="yield",delete b.right.argument,delete b.right.delegate):v&&b.type===a.Syntax.Identifier&&b.name==="await"&&this.throwUnexpectedToken(this.lookahead),this.checkPatternParam(d,b),s[E]=b}if(this.context.strict||!this.context.allowYield)for(var E=0;E<s.length;++E){var b=s[E];b.type===a.Syntax.YieldExpression&&this.throwUnexpectedToken(this.lookahead)}if(d.message===h.Messages.StrictParamDupe){var A=this.context.strict?d.stricted:d.firstRestricted;this.throwUnexpectedToken(A,d.message)}return{simple:d.simple,params:s,stricted:d.stricted,firstRestricted:d.firstRestricted,message:d.message}},c.prototype.parseAssignmentExpression=function(){var i;if(!this.context.allowYield&&this.matchKeyword("yield"))i=this.parseYieldExpression();else{var s=this.lookahead,d=s;if(i=this.parseConditionalExpression(),d.type===3&&d.lineNumber===this.lookahead.lineNumber&&d.value==="async"&&(this.lookahead.type===3||this.matchKeyword("yield"))){var v=this.parsePrimaryExpression();this.reinterpretExpressionAsPattern(v),i={type:g,params:[v],async:!0}}if(i.type===g||this.match("=>")){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var E=i.async,b=this.reinterpretAsCoverFormalsList(i);if(b){this.hasLineTerminator&&this.tolerateUnexpectedToken(this.lookahead),this.context.firstCoverInitializedNameError=null;var A=this.context.strict,_=this.context.allowStrictDirective;this.context.allowStrictDirective=b.simple;var D=this.context.allowYield,F=this.context.await;this.context.allowYield=!0,this.context.await=E;var B=this.startNode(s);this.expect("=>");var N=void 0;if(this.match("{")){var I=this.context.allowIn;this.context.allowIn=!0,N=this.parseFunctionSourceElements(),this.context.allowIn=I}else N=this.isolateCoverGrammar(this.parseAssignmentExpression);var R=N.type!==a.Syntax.BlockStatement;this.context.strict&&b.firstRestricted&&this.throwUnexpectedToken(b.firstRestricted,b.message),this.context.strict&&b.stricted&&this.tolerateUnexpectedToken(b.stricted,b.message),i=E?this.finalize(B,new f.AsyncArrowFunctionExpression(b.params,N,R)):this.finalize(B,new f.ArrowFunctionExpression(b.params,N,R)),this.context.strict=A,this.context.allowStrictDirective=_,this.context.allowYield=D,this.context.await=F}}else if(this.matchAssign()){if(this.context.isAssignmentTarget||this.tolerateError(h.Messages.InvalidLHSInAssignment),this.context.strict&&i.type===a.Syntax.Identifier){var M=i;this.scanner.isRestrictedWord(M.name)&&this.tolerateUnexpectedToken(d,h.Messages.StrictLHSAssignment),this.scanner.isStrictModeReservedWord(M.name)&&this.tolerateUnexpectedToken(d,h.Messages.StrictReservedWord)}this.match("=")?this.reinterpretExpressionAsPattern(i):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1),d=this.nextToken();var $=d.value,z=this.isolateCoverGrammar(this.parseAssignmentExpression);i=this.finalize(this.startNode(s),new f.AssignmentExpression($,i,z)),this.context.firstCoverInitializedNameError=null}}return i},c.prototype.parseExpression=function(){var i=this.lookahead,s=this.isolateCoverGrammar(this.parseAssignmentExpression);if(this.match(",")){var d=[];for(d.push(s);this.lookahead.type!==2&&this.match(",");)this.nextToken(),d.push(this.isolateCoverGrammar(this.parseAssignmentExpression));s=this.finalize(this.startNode(i),new f.SequenceExpression(d))}return s},c.prototype.parseStatementListItem=function(){var i;if(this.context.isAssignmentTarget=!0,this.context.isBindingElement=!0,this.lookahead.type===4)switch(this.lookahead.value){case"export":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,h.Messages.IllegalExportDeclaration),i=this.parseExportDeclaration();break;case"import":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,h.Messages.IllegalImportDeclaration),i=this.parseImportDeclaration();break;case"const":i=this.parseLexicalDeclaration({inFor:!1});break;case"function":i=this.parseFunctionDeclaration();break;case"class":i=this.parseClassDeclaration();break;case"let":i=this.isLexicalDeclaration()?this.parseLexicalDeclaration({inFor:!1}):this.parseStatement();break;default:i=this.parseStatement();break}else i=this.parseStatement();return i},c.prototype.parseBlock=function(){var i=this.createNode();this.expect("{");for(var s=[];!this.match("}");)s.push(this.parseStatementListItem());return this.expect("}"),this.finalize(i,new f.BlockStatement(s))},c.prototype.parseLexicalBinding=function(i,s){var d=this.createNode(),v=[],E=this.parsePattern(v,i);this.context.strict&&E.type===a.Syntax.Identifier&&this.scanner.isRestrictedWord(E.name)&&this.tolerateError(h.Messages.StrictVarName);var b=null;return i==="const"?!this.matchKeyword("in")&&!this.matchContextualKeyword("of")&&(this.match("=")?(this.nextToken(),b=this.isolateCoverGrammar(this.parseAssignmentExpression)):this.throwError(h.Messages.DeclarationMissingInitializer,"const")):(!s.inFor&&E.type!==a.Syntax.Identifier||this.match("="))&&(this.expect("="),b=this.isolateCoverGrammar(this.parseAssignmentExpression)),this.finalize(d,new f.VariableDeclarator(E,b))},c.prototype.parseBindingList=function(i,s){for(var d=[this.parseLexicalBinding(i,s)];this.match(",");)this.nextToken(),d.push(this.parseLexicalBinding(i,s));return d},c.prototype.isLexicalDeclaration=function(){var i=this.scanner.saveState();this.scanner.scanComments();var s=this.scanner.lex();return this.scanner.restoreState(i),s.type===3||s.type===7&&s.value==="["||s.type===7&&s.value==="{"||s.type===4&&s.value==="let"||s.type===4&&s.value==="yield"},c.prototype.parseLexicalDeclaration=function(i){var s=this.createNode(),d=this.nextToken().value;o.assert(d==="let"||d==="const","Lexical declaration must be either let or const");var v=this.parseBindingList(d,i);return this.consumeSemicolon(),this.finalize(s,new f.VariableDeclaration(v,d))},c.prototype.parseBindingRestElement=function(i,s){var d=this.createNode();this.expect("...");var v=this.parsePattern(i,s);return this.finalize(d,new f.RestElement(v))},c.prototype.parseArrayPattern=function(i,s){var d=this.createNode();this.expect("[");for(var v=[];!this.match("]");)if(this.match(","))this.nextToken(),v.push(null);else{if(this.match("...")){v.push(this.parseBindingRestElement(i,s));break}else v.push(this.parsePatternWithDefault(i,s));this.match("]")||this.expect(",")}return this.expect("]"),this.finalize(d,new f.ArrayPattern(v))},c.prototype.parsePropertyPattern=function(i,s){var d=this.createNode(),v=!1,E=!1,b=!1,A,_;if(this.lookahead.type===3){var D=this.lookahead;A=this.parseVariableIdentifier();var F=this.finalize(d,new f.Identifier(D.value));if(this.match("=")){i.push(D),E=!0,this.nextToken();var B=this.parseAssignmentExpression();_=this.finalize(this.startNode(D),new f.AssignmentPattern(F,B))}else this.match(":")?(this.expect(":"),_=this.parsePatternWithDefault(i,s)):(i.push(D),E=!0,_=F)}else v=this.match("["),A=this.parseObjectPropertyKey(),this.expect(":"),_=this.parsePatternWithDefault(i,s);return this.finalize(d,new f.Property("init",A,v,_,b,E))},c.prototype.parseObjectPattern=function(i,s){var d=this.createNode(),v=[];for(this.expect("{");!this.match("}");)v.push(this.parsePropertyPattern(i,s)),this.match("}")||this.expect(",");return this.expect("}"),this.finalize(d,new f.ObjectPattern(v))},c.prototype.parsePattern=function(i,s){var d;return this.match("[")?d=this.parseArrayPattern(i,s):this.match("{")?d=this.parseObjectPattern(i,s):(this.matchKeyword("let")&&(s==="const"||s==="let")&&this.tolerateUnexpectedToken(this.lookahead,h.Messages.LetInLexicalBinding),i.push(this.lookahead),d=this.parseVariableIdentifier(s)),d},c.prototype.parsePatternWithDefault=function(i,s){var d=this.lookahead,v=this.parsePattern(i,s);if(this.match("=")){this.nextToken();var E=this.context.allowYield;this.context.allowYield=!0;var b=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowYield=E,v=this.finalize(this.startNode(d),new f.AssignmentPattern(v,b))}return v},c.prototype.parseVariableIdentifier=function(i){var s=this.createNode(),d=this.nextToken();return d.type===4&&d.value==="yield"?this.context.strict?this.tolerateUnexpectedToken(d,h.Messages.StrictReservedWord):this.context.allowYield||this.throwUnexpectedToken(d):d.type!==3?this.context.strict&&d.type===4&&this.scanner.isStrictModeReservedWord(d.value)?this.tolerateUnexpectedToken(d,h.Messages.StrictReservedWord):(this.context.strict||d.value!=="let"||i!=="var")&&this.throwUnexpectedToken(d):(this.context.isModule||this.context.await)&&d.type===3&&d.value==="await"&&this.tolerateUnexpectedToken(d),this.finalize(s,new f.Identifier(d.value))},c.prototype.parseVariableDeclaration=function(i){var s=this.createNode(),d=[],v=this.parsePattern(d,"var");this.context.strict&&v.type===a.Syntax.Identifier&&this.scanner.isRestrictedWord(v.name)&&this.tolerateError(h.Messages.StrictVarName);var E=null;return this.match("=")?(this.nextToken(),E=this.isolateCoverGrammar(this.parseAssignmentExpression)):v.type!==a.Syntax.Identifier&&!i.inFor&&this.expect("="),this.finalize(s,new f.VariableDeclarator(v,E))},c.prototype.parseVariableDeclarationList=function(i){var s={inFor:i.inFor},d=[];for(d.push(this.parseVariableDeclaration(s));this.match(",");)this.nextToken(),d.push(this.parseVariableDeclaration(s));return d},c.prototype.parseVariableStatement=function(){var i=this.createNode();this.expectKeyword("var");var s=this.parseVariableDeclarationList({inFor:!1});return this.consumeSemicolon(),this.finalize(i,new f.VariableDeclaration(s,"var"))},c.prototype.parseEmptyStatement=function(){var i=this.createNode();return this.expect(";"),this.finalize(i,new f.EmptyStatement)},c.prototype.parseExpressionStatement=function(){var i=this.createNode(),s=this.parseExpression();return this.consumeSemicolon(),this.finalize(i,new f.ExpressionStatement(s))},c.prototype.parseIfClause=function(){return this.context.strict&&this.matchKeyword("function")&&this.tolerateError(h.Messages.StrictFunction),this.parseStatement()},c.prototype.parseIfStatement=function(){var i=this.createNode(),s,d=null;this.expectKeyword("if"),this.expect("(");var v=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),s=this.finalize(this.createNode(),new f.EmptyStatement)):(this.expect(")"),s=this.parseIfClause(),this.matchKeyword("else")&&(this.nextToken(),d=this.parseIfClause())),this.finalize(i,new f.IfStatement(v,s,d))},c.prototype.parseDoWhileStatement=function(){var i=this.createNode();this.expectKeyword("do");var s=this.context.inIteration;this.context.inIteration=!0;var d=this.parseStatement();this.context.inIteration=s,this.expectKeyword("while"),this.expect("(");var v=this.parseExpression();return!this.match(")")&&this.config.tolerant?this.tolerateUnexpectedToken(this.nextToken()):(this.expect(")"),this.match(";")&&this.nextToken()),this.finalize(i,new f.DoWhileStatement(d,v))},c.prototype.parseWhileStatement=function(){var i=this.createNode(),s;this.expectKeyword("while"),this.expect("(");var d=this.parseExpression();if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),s=this.finalize(this.createNode(),new f.EmptyStatement);else{this.expect(")");var v=this.context.inIteration;this.context.inIteration=!0,s=this.parseStatement(),this.context.inIteration=v}return this.finalize(i,new f.WhileStatement(d,s))},c.prototype.parseForStatement=function(){var i=null,s=null,d=null,v=!0,E,b,A=this.createNode();if(this.expectKeyword("for"),this.expect("("),this.match(";"))this.nextToken();else if(this.matchKeyword("var")){i=this.createNode(),this.nextToken();var _=this.context.allowIn;this.context.allowIn=!1;var D=this.parseVariableDeclarationList({inFor:!0});if(this.context.allowIn=_,D.length===1&&this.matchKeyword("in")){var F=D[0];F.init&&(F.id.type===a.Syntax.ArrayPattern||F.id.type===a.Syntax.ObjectPattern||this.context.strict)&&this.tolerateError(h.Messages.ForInOfLoopInitializer,"for-in"),i=this.finalize(i,new f.VariableDeclaration(D,"var")),this.nextToken(),E=i,b=this.parseExpression(),i=null}else D.length===1&&D[0].init===null&&this.matchContextualKeyword("of")?(i=this.finalize(i,new f.VariableDeclaration(D,"var")),this.nextToken(),E=i,b=this.parseAssignmentExpression(),i=null,v=!1):(i=this.finalize(i,new f.VariableDeclaration(D,"var")),this.expect(";"))}else if(this.matchKeyword("const")||this.matchKeyword("let")){i=this.createNode();var B=this.nextToken().value;if(!this.context.strict&&this.lookahead.value==="in")i=this.finalize(i,new f.Identifier(B)),this.nextToken(),E=i,b=this.parseExpression(),i=null;else{var _=this.context.allowIn;this.context.allowIn=!1;var D=this.parseBindingList(B,{inFor:!0});this.context.allowIn=_,D.length===1&&D[0].init===null&&this.matchKeyword("in")?(i=this.finalize(i,new f.VariableDeclaration(D,B)),this.nextToken(),E=i,b=this.parseExpression(),i=null):D.length===1&&D[0].init===null&&this.matchContextualKeyword("of")?(i=this.finalize(i,new f.VariableDeclaration(D,B)),this.nextToken(),E=i,b=this.parseAssignmentExpression(),i=null,v=!1):(this.consumeSemicolon(),i=this.finalize(i,new f.VariableDeclaration(D,B)))}}else{var N=this.lookahead,_=this.context.allowIn;if(this.context.allowIn=!1,i=this.inheritCoverGrammar(this.parseAssignmentExpression),this.context.allowIn=_,this.matchKeyword("in"))(!this.context.isAssignmentTarget||i.type===a.Syntax.AssignmentExpression)&&this.tolerateError(h.Messages.InvalidLHSInForIn),this.nextToken(),this.reinterpretExpressionAsPattern(i),E=i,b=this.parseExpression(),i=null;else if(this.matchContextualKeyword("of"))(!this.context.isAssignmentTarget||i.type===a.Syntax.AssignmentExpression)&&this.tolerateError(h.Messages.InvalidLHSInForLoop),this.nextToken(),this.reinterpretExpressionAsPattern(i),E=i,b=this.parseAssignmentExpression(),i=null,v=!1;else{if(this.match(",")){for(var I=[i];this.match(",");)this.nextToken(),I.push(this.isolateCoverGrammar(this.parseAssignmentExpression));i=this.finalize(this.startNode(N),new f.SequenceExpression(I))}this.expect(";")}}typeof E>"u"&&(this.match(";")||(s=this.parseExpression()),this.expect(";"),this.match(")")||(d=this.parseExpression()));var R;if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),R=this.finalize(this.createNode(),new f.EmptyStatement);else{this.expect(")");var M=this.context.inIteration;this.context.inIteration=!0,R=this.isolateCoverGrammar(this.parseStatement),this.context.inIteration=M}return typeof E>"u"?this.finalize(A,new f.ForStatement(i,s,d,R)):v?this.finalize(A,new f.ForInStatement(E,b,R)):this.finalize(A,new f.ForOfStatement(E,b,R))},c.prototype.parseContinueStatement=function(){var i=this.createNode();this.expectKeyword("continue");var s=null;if(this.lookahead.type===3&&!this.hasLineTerminator){var d=this.parseVariableIdentifier();s=d;var v="$"+d.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,v)||this.throwError(h.Messages.UnknownLabel,d.name)}return this.consumeSemicolon(),s===null&&!this.context.inIteration&&this.throwError(h.Messages.IllegalContinue),this.finalize(i,new f.ContinueStatement(s))},c.prototype.parseBreakStatement=function(){var i=this.createNode();this.expectKeyword("break");var s=null;if(this.lookahead.type===3&&!this.hasLineTerminator){var d=this.parseVariableIdentifier(),v="$"+d.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,v)||this.throwError(h.Messages.UnknownLabel,d.name),s=d}return this.consumeSemicolon(),s===null&&!this.context.inIteration&&!this.context.inSwitch&&this.throwError(h.Messages.IllegalBreak),this.finalize(i,new f.BreakStatement(s))},c.prototype.parseReturnStatement=function(){this.context.inFunctionBody||this.tolerateError(h.Messages.IllegalReturn);var i=this.createNode();this.expectKeyword("return");var s=!this.match(";")&&!this.match("}")&&!this.hasLineTerminator&&this.lookahead.type!==2||this.lookahead.type===8||this.lookahead.type===10,d=s?this.parseExpression():null;return this.consumeSemicolon(),this.finalize(i,new f.ReturnStatement(d))},c.prototype.parseWithStatement=function(){this.context.strict&&this.tolerateError(h.Messages.StrictModeWith);var i=this.createNode(),s;this.expectKeyword("with"),this.expect("(");var d=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),s=this.finalize(this.createNode(),new f.EmptyStatement)):(this.expect(")"),s=this.parseStatement()),this.finalize(i,new f.WithStatement(d,s))},c.prototype.parseSwitchCase=function(){var i=this.createNode(),s;this.matchKeyword("default")?(this.nextToken(),s=null):(this.expectKeyword("case"),s=this.parseExpression()),this.expect(":");for(var d=[];!(this.match("}")||this.matchKeyword("default")||this.matchKeyword("case"));)d.push(this.parseStatementListItem());return this.finalize(i,new f.SwitchCase(s,d))},c.prototype.parseSwitchStatement=function(){var i=this.createNode();this.expectKeyword("switch"),this.expect("(");var s=this.parseExpression();this.expect(")");var d=this.context.inSwitch;this.context.inSwitch=!0;var v=[],E=!1;for(this.expect("{");!this.match("}");){var b=this.parseSwitchCase();b.test===null&&(E&&this.throwError(h.Messages.MultipleDefaultsInSwitch),E=!0),v.push(b)}return this.expect("}"),this.context.inSwitch=d,this.finalize(i,new f.SwitchStatement(s,v))},c.prototype.parseLabelledStatement=function(){var i=this.createNode(),s=this.parseExpression(),d;if(s.type===a.Syntax.Identifier&&this.match(":")){this.nextToken();var v=s,E="$"+v.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,E)&&this.throwError(h.Messages.Redeclaration,"Label",v.name),this.context.labelSet[E]=!0;var b=void 0;if(this.matchKeyword("class"))this.tolerateUnexpectedToken(this.lookahead),b=this.parseClassDeclaration();else if(this.matchKeyword("function")){var A=this.lookahead,_=this.parseFunctionDeclaration();this.context.strict?this.tolerateUnexpectedToken(A,h.Messages.StrictFunction):_.generator&&this.tolerateUnexpectedToken(A,h.Messages.GeneratorInLegacyContext),b=_}else b=this.parseStatement();delete this.context.labelSet[E],d=new f.LabeledStatement(v,b)}else this.consumeSemicolon(),d=new f.ExpressionStatement(s);return this.finalize(i,d)},c.prototype.parseThrowStatement=function(){var i=this.createNode();this.expectKeyword("throw"),this.hasLineTerminator&&this.throwError(h.Messages.NewlineAfterThrow);var s=this.parseExpression();return this.consumeSemicolon(),this.finalize(i,new f.ThrowStatement(s))},c.prototype.parseCatchClause=function(){var i=this.createNode();this.expectKeyword("catch"),this.expect("("),this.match(")")&&this.throwUnexpectedToken(this.lookahead);for(var s=[],d=this.parsePattern(s),v={},E=0;E<s.length;E++){var b="$"+s[E].value;Object.prototype.hasOwnProperty.call(v,b)&&this.tolerateError(h.Messages.DuplicateBinding,s[E].value),v[b]=!0}this.context.strict&&d.type===a.Syntax.Identifier&&this.scanner.isRestrictedWord(d.name)&&this.tolerateError(h.Messages.StrictCatchVariable),this.expect(")");var A=this.parseBlock();return this.finalize(i,new f.CatchClause(d,A))},c.prototype.parseFinallyClause=function(){return this.expectKeyword("finally"),this.parseBlock()},c.prototype.parseTryStatement=function(){var i=this.createNode();this.expectKeyword("try");var s=this.parseBlock(),d=this.matchKeyword("catch")?this.parseCatchClause():null,v=this.matchKeyword("finally")?this.parseFinallyClause():null;return!d&&!v&&this.throwError(h.Messages.NoCatchOrFinally),this.finalize(i,new f.TryStatement(s,d,v))},c.prototype.parseDebuggerStatement=function(){var i=this.createNode();return this.expectKeyword("debugger"),this.consumeSemicolon(),this.finalize(i,new f.DebuggerStatement)},c.prototype.parseStatement=function(){var i;switch(this.lookahead.type){case 1:case 5:case 6:case 8:case 10:case 9:i=this.parseExpressionStatement();break;case 7:var s=this.lookahead.value;s==="{"?i=this.parseBlock():s==="("?i=this.parseExpressionStatement():s===";"?i=this.parseEmptyStatement():i=this.parseExpressionStatement();break;case 3:i=this.matchAsyncFunction()?this.parseFunctionDeclaration():this.parseLabelledStatement();break;case 4:switch(this.lookahead.value){case"break":i=this.parseBreakStatement();break;case"continue":i=this.parseContinueStatement();break;case"debugger":i=this.parseDebuggerStatement();break;case"do":i=this.parseDoWhileStatement();break;case"for":i=this.parseForStatement();break;case"function":i=this.parseFunctionDeclaration();break;case"if":i=this.parseIfStatement();break;case"return":i=this.parseReturnStatement();break;case"switch":i=this.parseSwitchStatement();break;case"throw":i=this.parseThrowStatement();break;case"try":i=this.parseTryStatement();break;case"var":i=this.parseVariableStatement();break;case"while":i=this.parseWhileStatement();break;case"with":i=this.parseWithStatement();break;default:i=this.parseExpressionStatement();break}break;default:i=this.throwUnexpectedToken(this.lookahead)}return i},c.prototype.parseFunctionSourceElements=function(){var i=this.createNode();this.expect("{");var s=this.parseDirectivePrologues(),d=this.context.labelSet,v=this.context.inIteration,E=this.context.inSwitch,b=this.context.inFunctionBody;for(this.context.labelSet={},this.context.inIteration=!1,this.context.inSwitch=!1,this.context.inFunctionBody=!0;this.lookahead.type!==2&&!this.match("}");)s.push(this.parseStatementListItem());return this.expect("}"),this.context.labelSet=d,this.context.inIteration=v,this.context.inSwitch=E,this.context.inFunctionBody=b,this.finalize(i,new f.BlockStatement(s))},c.prototype.validateParam=function(i,s,d){var v="$"+d;this.context.strict?(this.scanner.isRestrictedWord(d)&&(i.stricted=s,i.message=h.Messages.StrictParamName),Object.prototype.hasOwnProperty.call(i.paramSet,v)&&(i.stricted=s,i.message=h.Messages.StrictParamDupe)):i.firstRestricted||(this.scanner.isRestrictedWord(d)?(i.firstRestricted=s,i.message=h.Messages.StrictParamName):this.scanner.isStrictModeReservedWord(d)?(i.firstRestricted=s,i.message=h.Messages.StrictReservedWord):Object.prototype.hasOwnProperty.call(i.paramSet,v)&&(i.stricted=s,i.message=h.Messages.StrictParamDupe)),typeof Object.defineProperty=="function"?Object.defineProperty(i.paramSet,v,{value:!0,enumerable:!0,writable:!0,configurable:!0}):i.paramSet[v]=!0},c.prototype.parseRestElement=function(i){var s=this.createNode();this.expect("...");var d=this.parsePattern(i);return this.match("=")&&this.throwError(h.Messages.DefaultRestParameter),this.match(")")||this.throwError(h.Messages.ParameterAfterRestParameter),this.finalize(s,new f.RestElement(d))},c.prototype.parseFormalParameter=function(i){for(var s=[],d=this.match("...")?this.parseRestElement(s):this.parsePatternWithDefault(s),v=0;v<s.length;v++)this.validateParam(i,s[v],s[v].value);i.simple=i.simple&&d instanceof f.Identifier,i.params.push(d)},c.prototype.parseFormalParameters=function(i){var s;if(s={simple:!0,params:[],firstRestricted:i},this.expect("("),!this.match(")"))for(s.paramSet={};this.lookahead.type!==2&&(this.parseFormalParameter(s),!(this.match(")")||(this.expect(","),this.match(")")))););return this.expect(")"),{simple:s.simple,params:s.params,stricted:s.stricted,firstRestricted:s.firstRestricted,message:s.message}},c.prototype.matchAsyncFunction=function(){var i=this.matchContextualKeyword("async");if(i){var s=this.scanner.saveState();this.scanner.scanComments();var d=this.scanner.lex();this.scanner.restoreState(s),i=s.lineNumber===d.lineNumber&&d.type===4&&d.value==="function"}return i},c.prototype.parseFunctionDeclaration=function(i){var s=this.createNode(),d=this.matchContextualKeyword("async");d&&this.nextToken(),this.expectKeyword("function");var v=d?!1:this.match("*");v&&this.nextToken();var E,b=null,A=null;if(!i||!this.match("(")){var _=this.lookahead;b=this.parseVariableIdentifier(),this.context.strict?this.scanner.isRestrictedWord(_.value)&&this.tolerateUnexpectedToken(_,h.Messages.StrictFunctionName):this.scanner.isRestrictedWord(_.value)?(A=_,E=h.Messages.StrictFunctionName):this.scanner.isStrictModeReservedWord(_.value)&&(A=_,E=h.Messages.StrictReservedWord)}var D=this.context.await,F=this.context.allowYield;this.context.await=d,this.context.allowYield=!v;var B=this.parseFormalParameters(A),N=B.params,I=B.stricted;A=B.firstRestricted,B.message&&(E=B.message);var R=this.context.strict,M=this.context.allowStrictDirective;this.context.allowStrictDirective=B.simple;var $=this.parseFunctionSourceElements();return this.context.strict&&A&&this.throwUnexpectedToken(A,E),this.context.strict&&I&&this.tolerateUnexpectedToken(I,E),this.context.strict=R,this.context.allowStrictDirective=M,this.context.await=D,this.context.allowYield=F,d?this.finalize(s,new f.AsyncFunctionDeclaration(b,N,$)):this.finalize(s,new f.FunctionDeclaration(b,N,$,v))},c.prototype.parseFunctionExpression=function(){var i=this.createNode(),s=this.matchContextualKeyword("async");s&&this.nextToken(),this.expectKeyword("function");var d=s?!1:this.match("*");d&&this.nextToken();var v,E=null,b,A=this.context.await,_=this.context.allowYield;if(this.context.await=s,this.context.allowYield=!d,!this.match("(")){var D=this.lookahead;E=!this.context.strict&&!d&&this.matchKeyword("yield")?this.parseIdentifierName():this.parseVariableIdentifier(),this.context.strict?this.scanner.isRestrictedWord(D.value)&&this.tolerateUnexpectedToken(D,h.Messages.StrictFunctionName):this.scanner.isRestrictedWord(D.value)?(b=D,v=h.Messages.StrictFunctionName):this.scanner.isStrictModeReservedWord(D.value)&&(b=D,v=h.Messages.StrictReservedWord)}var F=this.parseFormalParameters(b),B=F.params,N=F.stricted;b=F.firstRestricted,F.message&&(v=F.message);var I=this.context.strict,R=this.context.allowStrictDirective;this.context.allowStrictDirective=F.simple;var M=this.parseFunctionSourceElements();return this.context.strict&&b&&this.throwUnexpectedToken(b,v),this.context.strict&&N&&this.tolerateUnexpectedToken(N,v),this.context.strict=I,this.context.allowStrictDirective=R,this.context.await=A,this.context.allowYield=_,s?this.finalize(i,new f.AsyncFunctionExpression(E,B,M)):this.finalize(i,new f.FunctionExpression(E,B,M,d))},c.prototype.parseDirective=function(){var i=this.lookahead,s=this.createNode(),d=this.parseExpression(),v=d.type===a.Syntax.Literal?this.getTokenRaw(i).slice(1,-1):null;return this.consumeSemicolon(),this.finalize(s,v?new f.Directive(d,v):new f.ExpressionStatement(d))},c.prototype.parseDirectivePrologues=function(){for(var i=null,s=[];;){var d=this.lookahead;if(d.type!==8)break;var v=this.parseDirective();s.push(v);var E=v.directive;if(typeof E!="string")break;E==="use strict"?(this.context.strict=!0,i&&this.tolerateUnexpectedToken(i,h.Messages.StrictOctalLiteral),this.context.allowStrictDirective||this.tolerateUnexpectedToken(d,h.Messages.IllegalLanguageModeDirective)):!i&&d.octal&&(i=d)}return s},c.prototype.qualifiedPropertyName=function(i){switch(i.type){case 3:case 8:case 1:case 5:case 6:case 4:return!0;case 7:return i.value==="["}return!1},c.prototype.parseGetterMethod=function(){var i=this.createNode(),s=!1,d=this.context.allowYield;this.context.allowYield=!s;var v=this.parseFormalParameters();v.params.length>0&&this.tolerateError(h.Messages.BadGetterArity);var E=this.parsePropertyMethod(v);return this.context.allowYield=d,this.finalize(i,new f.FunctionExpression(null,v.params,E,s))},c.prototype.parseSetterMethod=function(){var i=this.createNode(),s=!1,d=this.context.allowYield;this.context.allowYield=!s;var v=this.parseFormalParameters();v.params.length!==1?this.tolerateError(h.Messages.BadSetterArity):v.params[0]instanceof f.RestElement&&this.tolerateError(h.Messages.BadSetterRestParameter);var E=this.parsePropertyMethod(v);return this.context.allowYield=d,this.finalize(i,new f.FunctionExpression(null,v.params,E,s))},c.prototype.parseGeneratorMethod=function(){var i=this.createNode(),s=!0,d=this.context.allowYield;this.context.allowYield=!0;var v=this.parseFormalParameters();this.context.allowYield=!1;var E=this.parsePropertyMethod(v);return this.context.allowYield=d,this.finalize(i,new f.FunctionExpression(null,v.params,E,s))},c.prototype.isStartOfExpression=function(){var i=!0,s=this.lookahead.value;switch(this.lookahead.type){case 7:i=s==="["||s==="("||s==="{"||s==="+"||s==="-"||s==="!"||s==="~"||s==="++"||s==="--"||s==="/"||s==="/=";break;case 4:i=s==="class"||s==="delete"||s==="function"||s==="let"||s==="new"||s==="super"||s==="this"||s==="typeof"||s==="void"||s==="yield";break}return i},c.prototype.parseYieldExpression=function(){var i=this.createNode();this.expectKeyword("yield");var s=null,d=!1;if(!this.hasLineTerminator){var v=this.context.allowYield;this.context.allowYield=!1,d=this.match("*"),d?(this.nextToken(),s=this.parseAssignmentExpression()):this.isStartOfExpression()&&(s=this.parseAssignmentExpression()),this.context.allowYield=v}return this.finalize(i,new f.YieldExpression(s,d))},c.prototype.parseClassElement=function(i){var s=this.lookahead,d=this.createNode(),v="",E=null,b=null,A=!1,_=!1,D=!1,F=!1;if(this.match("*"))this.nextToken();else{A=this.match("["),E=this.parseObjectPropertyKey();var B=E;if(B.name==="static"&&(this.qualifiedPropertyName(this.lookahead)||this.match("*"))&&(s=this.lookahead,D=!0,A=this.match("["),this.match("*")?this.nextToken():E=this.parseObjectPropertyKey()),s.type===3&&!this.hasLineTerminator&&s.value==="async"){var N=this.lookahead.value;N!==":"&&N!=="("&&N!=="*"&&(F=!0,s=this.lookahead,E=this.parseObjectPropertyKey(),s.type===3&&s.value==="constructor"&&this.tolerateUnexpectedToken(s,h.Messages.ConstructorIsAsync))}}var I=this.qualifiedPropertyName(this.lookahead);return s.type===3?s.value==="get"&&I?(v="get",A=this.match("["),E=this.parseObjectPropertyKey(),this.context.allowYield=!1,b=this.parseGetterMethod()):s.value==="set"&&I&&(v="set",A=this.match("["),E=this.parseObjectPropertyKey(),b=this.parseSetterMethod()):s.type===7&&s.value==="*"&&I&&(v="init",A=this.match("["),E=this.parseObjectPropertyKey(),b=this.parseGeneratorMethod(),_=!0),!v&&E&&this.match("(")&&(v="init",b=F?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),_=!0),v||this.throwUnexpectedToken(this.lookahead),v==="init"&&(v="method"),A||(D&&this.isPropertyKey(E,"prototype")&&this.throwUnexpectedToken(s,h.Messages.StaticPrototype),!D&&this.isPropertyKey(E,"constructor")&&((v!=="method"||!_||b&&b.generator)&&this.throwUnexpectedToken(s,h.Messages.ConstructorSpecialMethod),i.value?this.throwUnexpectedToken(s,h.Messages.DuplicateConstructor):i.value=!0,v="constructor")),this.finalize(d,new f.MethodDefinition(E,A,b,v,D))},c.prototype.parseClassElementList=function(){var i=[],s={value:!1};for(this.expect("{");!this.match("}");)this.match(";")?this.nextToken():i.push(this.parseClassElement(s));return this.expect("}"),i},c.prototype.parseClassBody=function(){var i=this.createNode(),s=this.parseClassElementList();return this.finalize(i,new f.ClassBody(s))},c.prototype.parseClassDeclaration=function(i){var s=this.createNode(),d=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var v=i&&this.lookahead.type!==3?null:this.parseVariableIdentifier(),E=null;this.matchKeyword("extends")&&(this.nextToken(),E=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var b=this.parseClassBody();return this.context.strict=d,this.finalize(s,new f.ClassDeclaration(v,E,b))},c.prototype.parseClassExpression=function(){var i=this.createNode(),s=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var d=this.lookahead.type===3?this.parseVariableIdentifier():null,v=null;this.matchKeyword("extends")&&(this.nextToken(),v=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var E=this.parseClassBody();return this.context.strict=s,this.finalize(i,new f.ClassExpression(d,v,E))},c.prototype.parseModule=function(){this.context.strict=!0,this.context.isModule=!0,this.scanner.isModule=!0;for(var i=this.createNode(),s=this.parseDirectivePrologues();this.lookahead.type!==2;)s.push(this.parseStatementListItem());return this.finalize(i,new f.Module(s))},c.prototype.parseScript=function(){for(var i=this.createNode(),s=this.parseDirectivePrologues();this.lookahead.type!==2;)s.push(this.parseStatementListItem());return this.finalize(i,new f.Script(s))},c.prototype.parseModuleSpecifier=function(){var i=this.createNode();this.lookahead.type!==8&&this.throwError(h.Messages.InvalidModuleSpecifier);var s=this.nextToken(),d=this.getTokenRaw(s);return this.finalize(i,new f.Literal(s.value,d))},c.prototype.parseImportSpecifier=function(){var i=this.createNode(),s,d;return this.lookahead.type===3?(s=this.parseVariableIdentifier(),d=s,this.matchContextualKeyword("as")&&(this.nextToken(),d=this.parseVariableIdentifier())):(s=this.parseIdentifierName(),d=s,this.matchContextualKeyword("as")?(this.nextToken(),d=this.parseVariableIdentifier()):this.throwUnexpectedToken(this.nextToken())),this.finalize(i,new f.ImportSpecifier(d,s))},c.prototype.parseNamedImports=function(){this.expect("{");for(var i=[];!this.match("}");)i.push(this.parseImportSpecifier()),this.match("}")||this.expect(",");return this.expect("}"),i},c.prototype.parseImportDefaultSpecifier=function(){var i=this.createNode(),s=this.parseIdentifierName();return this.finalize(i,new f.ImportDefaultSpecifier(s))},c.prototype.parseImportNamespaceSpecifier=function(){var i=this.createNode();this.expect("*"),this.matchContextualKeyword("as")||this.throwError(h.Messages.NoAsAfterImportNamespace),this.nextToken();var s=this.parseIdentifierName();return this.finalize(i,new f.ImportNamespaceSpecifier(s))},c.prototype.parseImportDeclaration=function(){this.context.inFunctionBody&&this.throwError(h.Messages.IllegalImportDeclaration);var i=this.createNode();this.expectKeyword("import");var s,d=[];if(this.lookahead.type===8)s=this.parseModuleSpecifier();else{if(this.match("{")?d=d.concat(this.parseNamedImports()):this.match("*")?d.push(this.parseImportNamespaceSpecifier()):this.isIdentifierName(this.lookahead)&&!this.matchKeyword("default")?(d.push(this.parseImportDefaultSpecifier()),this.match(",")&&(this.nextToken(),this.match("*")?d.push(this.parseImportNamespaceSpecifier()):this.match("{")?d=d.concat(this.parseNamedImports()):this.throwUnexpectedToken(this.lookahead))):this.throwUnexpectedToken(this.nextToken()),!this.matchContextualKeyword("from")){var v=this.lookahead.value?h.Messages.UnexpectedToken:h.Messages.MissingFromClause;this.throwError(v,this.lookahead.value)}this.nextToken(),s=this.parseModuleSpecifier()}return this.consumeSemicolon(),this.finalize(i,new f.ImportDeclaration(d,s))},c.prototype.parseExportSpecifier=function(){var i=this.createNode(),s=this.parseIdentifierName(),d=s;return this.matchContextualKeyword("as")&&(this.nextToken(),d=this.parseIdentifierName()),this.finalize(i,new f.ExportSpecifier(s,d))},c.prototype.parseExportDeclaration=function(){this.context.inFunctionBody&&this.throwError(h.Messages.IllegalExportDeclaration);var i=this.createNode();this.expectKeyword("export");var s;if(this.matchKeyword("default"))if(this.nextToken(),this.matchKeyword("function")){var d=this.parseFunctionDeclaration(!0);s=this.finalize(i,new f.ExportDefaultDeclaration(d))}else if(this.matchKeyword("class")){var d=this.parseClassDeclaration(!0);s=this.finalize(i,new f.ExportDefaultDeclaration(d))}else if(this.matchContextualKeyword("async")){var d=this.matchAsyncFunction()?this.parseFunctionDeclaration(!0):this.parseAssignmentExpression();s=this.finalize(i,new f.ExportDefaultDeclaration(d))}else{this.matchContextualKeyword("from")&&this.throwError(h.Messages.UnexpectedToken,this.lookahead.value);var d=this.match("{")?this.parseObjectInitializer():this.match("[")?this.parseArrayInitializer():this.parseAssignmentExpression();this.consumeSemicolon(),s=this.finalize(i,new f.ExportDefaultDeclaration(d))}else if(this.match("*")){if(this.nextToken(),!this.matchContextualKeyword("from")){var v=this.lookahead.value?h.Messages.UnexpectedToken:h.Messages.MissingFromClause;this.throwError(v,this.lookahead.value)}this.nextToken();var E=this.parseModuleSpecifier();this.consumeSemicolon(),s=this.finalize(i,new f.ExportAllDeclaration(E))}else if(this.lookahead.type===4){var d=void 0;switch(this.lookahead.value){case"let":case"const":d=this.parseLexicalDeclaration({inFor:!1});break;case"var":case"class":case"function":d=this.parseStatementListItem();break;default:this.throwUnexpectedToken(this.lookahead)}s=this.finalize(i,new f.ExportNamedDeclaration(d,[],null))}else if(this.matchAsyncFunction()){var d=this.parseFunctionDeclaration();s=this.finalize(i,new f.ExportNamedDeclaration(d,[],null))}else{var b=[],A=null,_=!1;for(this.expect("{");!this.match("}");)_=_||this.matchKeyword("default"),b.push(this.parseExportSpecifier()),this.match("}")||this.expect(",");if(this.expect("}"),this.matchContextualKeyword("from"))this.nextToken(),A=this.parseModuleSpecifier(),this.consumeSemicolon();else if(_){var v=this.lookahead.value?h.Messages.UnexpectedToken:h.Messages.MissingFromClause;this.throwError(v,this.lookahead.value)}else this.consumeSemicolon();s=this.finalize(i,new f.ExportNamedDeclaration(null,b,A))}return s},c}();r.Parser=m},function(n,r){Object.defineProperty(r,"__esModule",{value:!0});function l(o,y){if(!o)throw new Error("ASSERT: "+y)}r.assert=l},function(n,r){Object.defineProperty(r,"__esModule",{value:!0});var l=function(){function o(){this.errors=[],this.tolerant=!1}return o.prototype.recordError=function(y){this.errors.push(y)},o.prototype.tolerate=function(y){if(this.tolerant)this.recordError(y);else throw y},o.prototype.constructError=function(y,h){var f=new Error(y);try{throw f}catch(u){Object.create&&Object.defineProperty&&(f=Object.create(u),Object.defineProperty(f,"column",{value:h}))}return f},o.prototype.createError=function(y,h,f,u){var a="Line "+h+": "+u,p=this.constructError(a,f);return p.index=y,p.lineNumber=h,p.description=u,p},o.prototype.throwError=function(y,h,f,u){throw this.createError(y,h,f,u)},o.prototype.tolerateError=function(y,h,f,u){var a=this.createError(y,h,f,u);if(this.tolerant)this.recordError(a);else throw a},o}();r.ErrorHandler=l},function(n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Messages={BadGetterArity:"Getter must not have any formal parameters",BadSetterArity:"Setter must have exactly one formal parameter",BadSetterRestParameter:"Setter function argument must not be a rest parameter",ConstructorIsAsync:"Class constructor may not be an async method",ConstructorSpecialMethod:"Class constructor may not be an accessor",DeclarationMissingInitializer:"Missing initializer in %0 declaration",DefaultRestParameter:"Unexpected token =",DuplicateBinding:"Duplicate binding %0",DuplicateConstructor:"A class may only have one constructor",DuplicateProtoProperty:"Duplicate __proto__ fields are not allowed in object literals",ForInOfLoopInitializer:"%0 loop variable declaration may not have an initializer",GeneratorInLegacyContext:"Generator declarations are not allowed in legacy contexts",IllegalBreak:"Illegal break statement",IllegalContinue:"Illegal continue statement",IllegalExportDeclaration:"Unexpected token",IllegalImportDeclaration:"Unexpected token",IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list",IllegalReturn:"Illegal return statement",InvalidEscapedReservedWord:"Keyword must not contain escaped characters",InvalidHexEscapeSequence:"Invalid hexadecimal escape sequence",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",InvalidLHSInForLoop:"Invalid left-hand side in for-loop",InvalidModuleSpecifier:"Unexpected token",InvalidRegExp:"Invalid regular expression",LetInLexicalBinding:"let is disallowed as a lexically bound name",MissingFromClause:"Unexpected token",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NewlineAfterThrow:"Illegal newline after throw",NoAsAfterImportNamespace:"Unexpected token",NoCatchOrFinally:"Missing catch or finally after try",ParameterAfterRestParameter:"Rest parameter must be last formal parameter",Redeclaration:"%0 '%1' has already been declared",StaticPrototype:"Classes may not have static property named prototype",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictModeWith:"Strict mode code may not include a with statement",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictReservedWord:"Use of future reserved word in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",TemplateOctalLiteral:"Octal literals are not allowed in template strings.",UnexpectedEOS:"Unexpected end of input",UnexpectedIdentifier:"Unexpected identifier",UnexpectedNumber:"Unexpected number",UnexpectedReserved:"Unexpected reserved word",UnexpectedString:"Unexpected string",UnexpectedTemplate:"Unexpected quasi %0",UnexpectedToken:"Unexpected token %0",UnexpectedTokenIllegal:"Unexpected token ILLEGAL",UnknownLabel:"Undefined label '%0'",UnterminatedRegExp:"Invalid regular expression: missing /"}},function(n,r,l){Object.defineProperty(r,"__esModule",{value:!0});var o=l(9),y=l(4),h=l(11);function f(p){return"0123456789abcdef".indexOf(p.toLowerCase())}function u(p){return"01234567".indexOf(p)}var a=function(){function p(g,m){this.source=g,this.errorHandler=m,this.trackComment=!1,this.isModule=!1,this.length=g.length,this.index=0,this.lineNumber=g.length>0?1:0,this.lineStart=0,this.curlyStack=[]}return p.prototype.saveState=function(){return{index:this.index,lineNumber:this.lineNumber,lineStart:this.lineStart}},p.prototype.restoreState=function(g){this.index=g.index,this.lineNumber=g.lineNumber,this.lineStart=g.lineStart},p.prototype.eof=function(){return this.index>=this.length},p.prototype.throwUnexpectedToken=function(g){return g===void 0&&(g=h.Messages.UnexpectedTokenIllegal),this.errorHandler.throwError(this.index,this.lineNumber,this.index-this.lineStart+1,g)},p.prototype.tolerateUnexpectedToken=function(g){g===void 0&&(g=h.Messages.UnexpectedTokenIllegal),this.errorHandler.tolerateError(this.index,this.lineNumber,this.index-this.lineStart+1,g)},p.prototype.skipSingleLineComment=function(g){var m=[],c,i;for(this.trackComment&&(m=[],c=this.index-g,i={start:{line:this.lineNumber,column:this.index-this.lineStart-g},end:{}});!this.eof();){var s=this.source.charCodeAt(this.index);if(++this.index,y.Character.isLineTerminator(s)){if(this.trackComment){i.end={line:this.lineNumber,column:this.index-this.lineStart-1};var d={multiLine:!1,slice:[c+g,this.index-1],range:[c,this.index-1],loc:i};m.push(d)}return s===13&&this.source.charCodeAt(this.index)===10&&++this.index,++this.lineNumber,this.lineStart=this.index,m}}if(this.trackComment){i.end={line:this.lineNumber,column:this.index-this.lineStart};var d={multiLine:!1,slice:[c+g,this.index],range:[c,this.index],loc:i};m.push(d)}return m},p.prototype.skipMultiLineComment=function(){var g=[],m,c;for(this.trackComment&&(g=[],m=this.index-2,c={start:{line:this.lineNumber,column:this.index-this.lineStart-2},end:{}});!this.eof();){var i=this.source.charCodeAt(this.index);if(y.Character.isLineTerminator(i))i===13&&this.source.charCodeAt(this.index+1)===10&&++this.index,++this.lineNumber,++this.index,this.lineStart=this.index;else if(i===42){if(this.source.charCodeAt(this.index+1)===47){if(this.index+=2,this.trackComment){c.end={line:this.lineNumber,column:this.index-this.lineStart};var s={multiLine:!0,slice:[m+2,this.index-2],range:[m,this.index],loc:c};g.push(s)}return g}++this.index}else++this.index}if(this.trackComment){c.end={line:this.lineNumber,column:this.index-this.lineStart};var s={multiLine:!0,slice:[m+2,this.index],range:[m,this.index],loc:c};g.push(s)}return this.tolerateUnexpectedToken(),g},p.prototype.scanComments=function(){var g;this.trackComment&&(g=[]);for(var m=this.index===0;!this.eof();){var c=this.source.charCodeAt(this.index);if(y.Character.isWhiteSpace(c))++this.index;else if(y.Character.isLineTerminator(c))++this.index,c===13&&this.source.charCodeAt(this.index)===10&&++this.index,++this.lineNumber,this.lineStart=this.index,m=!0;else if(c===47)if(c=this.source.charCodeAt(this.index+1),c===47){this.index+=2;var i=this.skipSingleLineComment(2);this.trackComment&&(g=g.concat(i)),m=!0}else if(c===42){this.index+=2;var i=this.skipMultiLineComment();this.trackComment&&(g=g.concat(i))}else break;else if(m&&c===45)if(this.source.charCodeAt(this.index+1)===45&&this.source.charCodeAt(this.index+2)===62){this.index+=3;var i=this.skipSingleLineComment(3);this.trackComment&&(g=g.concat(i))}else break;else if(c===60&&!this.isModule)if(this.source.slice(this.index+1,this.index+4)==="!--"){this.index+=4;var i=this.skipSingleLineComment(4);this.trackComment&&(g=g.concat(i))}else break;else break}return g},p.prototype.isFutureReservedWord=function(g){switch(g){case"enum":case"export":case"import":case"super":return!0;default:return!1}},p.prototype.isStrictModeReservedWord=function(g){switch(g){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}},p.prototype.isRestrictedWord=function(g){return g==="eval"||g==="arguments"},p.prototype.isKeyword=function(g){switch(g.length){case 2:return g==="if"||g==="in"||g==="do";case 3:return g==="var"||g==="for"||g==="new"||g==="try"||g==="let";case 4:return g==="this"||g==="else"||g==="case"||g==="void"||g==="with"||g==="enum";case 5:return g==="while"||g==="break"||g==="catch"||g==="throw"||g==="const"||g==="yield"||g==="class"||g==="super";case 6:return g==="return"||g==="typeof"||g==="delete"||g==="switch"||g==="export"||g==="import";case 7:return g==="default"||g==="finally"||g==="extends";case 8:return g==="function"||g==="continue"||g==="debugger";case 10:return g==="instanceof";default:return!1}},p.prototype.codePointAt=function(g){var m=this.source.charCodeAt(g);if(m>=55296&&m<=56319){var c=this.source.charCodeAt(g+1);if(c>=56320&&c<=57343){var i=m;m=(i-55296)*1024+c-56320+65536}}return m},p.prototype.scanHexEscape=function(g){for(var m=g==="u"?4:2,c=0,i=0;i<m;++i)if(!this.eof()&&y.Character.isHexDigit(this.source.charCodeAt(this.index)))c=c*16+f(this.source[this.index++]);else return null;return String.fromCharCode(c)},p.prototype.scanUnicodeCodePointEscape=function(){var g=this.source[this.index],m=0;for(g==="}"&&this.throwUnexpectedToken();!this.eof()&&(g=this.source[this.index++],!!y.Character.isHexDigit(g.charCodeAt(0)));)m=m*16+f(g);return(m>1114111||g!=="}")&&this.throwUnexpectedToken(),y.Character.fromCodePoint(m)},p.prototype.getIdentifier=function(){for(var g=this.index++;!this.eof();){var m=this.source.charCodeAt(this.index);if(m===92)return this.index=g,this.getComplexIdentifier();if(m>=55296&&m<57343)return this.index=g,this.getComplexIdentifier();if(y.Character.isIdentifierPart(m))++this.index;else break}return this.source.slice(g,this.index)},p.prototype.getComplexIdentifier=function(){var g=this.codePointAt(this.index),m=y.Character.fromCodePoint(g);this.index+=m.length;var c;for(g===92&&(this.source.charCodeAt(this.index)!==117&&this.throwUnexpectedToken(),++this.index,this.source[this.index]==="{"?(++this.index,c=this.scanUnicodeCodePointEscape()):(c=this.scanHexEscape("u"),(c===null||c==="\\"||!y.Character.isIdentifierStart(c.charCodeAt(0)))&&this.throwUnexpectedToken()),m=c);!this.eof()&&(g=this.codePointAt(this.index),!!y.Character.isIdentifierPart(g));)c=y.Character.fromCodePoint(g),m+=c,this.index+=c.length,g===92&&(m=m.substr(0,m.length-1),this.source.charCodeAt(this.index)!==117&&this.throwUnexpectedToken(),++this.index,this.source[this.index]==="{"?(++this.index,c=this.scanUnicodeCodePointEscape()):(c=this.scanHexEscape("u"),(c===null||c==="\\"||!y.Character.isIdentifierPart(c.charCodeAt(0)))&&this.throwUnexpectedToken()),m+=c);return m},p.prototype.octalToDecimal=function(g){var m=g!=="0",c=u(g);return!this.eof()&&y.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(m=!0,c=c*8+u(this.source[this.index++]),"0123".indexOf(g)>=0&&!this.eof()&&y.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(c=c*8+u(this.source[this.index++]))),{code:c,octal:m}},p.prototype.scanIdentifier=function(){var g,m=this.index,c=this.source.charCodeAt(m)===92?this.getComplexIdentifier():this.getIdentifier();if(c.length===1?g=3:this.isKeyword(c)?g=4:c==="null"?g=5:c==="true"||c==="false"?g=1:g=3,g!==3&&m+c.length!==this.index){var i=this.index;this.index=m,this.tolerateUnexpectedToken(h.Messages.InvalidEscapedReservedWord),this.index=i}return{type:g,value:c,lineNumber:this.lineNumber,lineStart:this.lineStart,start:m,end:this.index}},p.prototype.scanPunctuator=function(){var g=this.index,m=this.source[this.index];switch(m){case"(":case"{":m==="{"&&this.curlyStack.push("{"),++this.index;break;case".":++this.index,this.source[this.index]==="."&&this.source[this.index+1]==="."&&(this.index+=2,m="...");break;case"}":++this.index,this.curlyStack.pop();break;case")":case";":case",":case"[":case"]":case":":case"?":case"~":++this.index;break;default:m=this.source.substr(this.index,4),m===">>>="?this.index+=4:(m=m.substr(0,3),m==="==="||m==="!=="||m===">>>"||m==="<<="||m===">>="||m==="**="?this.index+=3:(m=m.substr(0,2),m==="&&"||m==="||"||m==="=="||m==="!="||m==="+="||m==="-="||m==="*="||m==="/="||m==="++"||m==="--"||m==="<<"||m===">>"||m==="&="||m==="|="||m==="^="||m==="%="||m==="<="||m===">="||m==="=>"||m==="**"?this.index+=2:(m=this.source[this.index],"<>=!+-*%&|^/".indexOf(m)>=0&&++this.index)))}return this.index===g&&this.throwUnexpectedToken(),{type:7,value:m,lineNumber:this.lineNumber,lineStart:this.lineStart,start:g,end:this.index}},p.prototype.scanHexLiteral=function(g){for(var m="";!this.eof()&&y.Character.isHexDigit(this.source.charCodeAt(this.index));)m+=this.source[this.index++];return m.length===0&&this.throwUnexpectedToken(),y.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseInt("0x"+m,16),lineNumber:this.lineNumber,lineStart:this.lineStart,start:g,end:this.index}},p.prototype.scanBinaryLiteral=function(g){for(var m="",c;!this.eof()&&(c=this.source[this.index],!(c!=="0"&&c!=="1"));)m+=this.source[this.index++];return m.length===0&&this.throwUnexpectedToken(),this.eof()||(c=this.source.charCodeAt(this.index),(y.Character.isIdentifierStart(c)||y.Character.isDecimalDigit(c))&&this.throwUnexpectedToken()),{type:6,value:parseInt(m,2),lineNumber:this.lineNumber,lineStart:this.lineStart,start:g,end:this.index}},p.prototype.scanOctalLiteral=function(g,m){var c="",i=!1;for(y.Character.isOctalDigit(g.charCodeAt(0))?(i=!0,c="0"+this.source[this.index++]):++this.index;!this.eof()&&y.Character.isOctalDigit(this.source.charCodeAt(this.index));)c+=this.source[this.index++];return!i&&c.length===0&&this.throwUnexpectedToken(),(y.Character.isIdentifierStart(this.source.charCodeAt(this.index))||y.Character.isDecimalDigit(this.source.charCodeAt(this.index)))&&this.throwUnexpectedToken(),{type:6,value:parseInt(c,8),octal:i,lineNumber:this.lineNumber,lineStart:this.lineStart,start:m,end:this.index}},p.prototype.isImplicitOctalLiteral=function(){for(var g=this.index+1;g<this.length;++g){var m=this.source[g];if(m==="8"||m==="9")return!1;if(!y.Character.isOctalDigit(m.charCodeAt(0)))return!0}return!0},p.prototype.scanNumericLiteral=function(){var g=this.index,m=this.source[g];o.assert(y.Character.isDecimalDigit(m.charCodeAt(0))||m===".","Numeric literal must start with a decimal digit or a decimal point");var c="";if(m!=="."){if(c=this.source[this.index++],m=this.source[this.index],c==="0"){if(m==="x"||m==="X")return++this.index,this.scanHexLiteral(g);if(m==="b"||m==="B")return++this.index,this.scanBinaryLiteral(g);if(m==="o"||m==="O")return this.scanOctalLiteral(m,g);if(m&&y.Character.isOctalDigit(m.charCodeAt(0))&&this.isImplicitOctalLiteral())return this.scanOctalLiteral(m,g)}for(;y.Character.isDecimalDigit(this.source.charCodeAt(this.index));)c+=this.source[this.index++];m=this.source[this.index]}if(m==="."){for(c+=this.source[this.index++];y.Character.isDecimalDigit(this.source.charCodeAt(this.index));)c+=this.source[this.index++];m=this.source[this.index]}if(m==="e"||m==="E")if(c+=this.source[this.index++],m=this.source[this.index],(m==="+"||m==="-")&&(c+=this.source[this.index++]),y.Character.isDecimalDigit(this.source.charCodeAt(this.index)))for(;y.Character.isDecimalDigit(this.source.charCodeAt(this.index));)c+=this.source[this.index++];else this.throwUnexpectedToken();return y.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseFloat(c),lineNumber:this.lineNumber,lineStart:this.lineStart,start:g,end:this.index}},p.prototype.scanStringLiteral=function(){var g=this.index,m=this.source[g];o.assert(m==="'"||m==='"',"String literal must starts with a quote"),++this.index;for(var c=!1,i="";!this.eof();){var s=this.source[this.index++];if(s===m){m="";break}else if(s==="\\")if(s=this.source[this.index++],!s||!y.Character.isLineTerminator(s.charCodeAt(0)))switch(s){case"u":if(this.source[this.index]==="{")++this.index,i+=this.scanUnicodeCodePointEscape();else{var d=this.scanHexEscape(s);d===null&&this.throwUnexpectedToken(),i+=d}break;case"x":var v=this.scanHexEscape(s);v===null&&this.throwUnexpectedToken(h.Messages.InvalidHexEscapeSequence),i+=v;break;case"n":i+=`
`;break;case"r":i+="\r";break;case"t":i+="	";break;case"b":i+="\b";break;case"f":i+="\f";break;case"v":i+="\v";break;case"8":case"9":i+=s,this.tolerateUnexpectedToken();break;default:if(s&&y.Character.isOctalDigit(s.charCodeAt(0))){var E=this.octalToDecimal(s);c=E.octal||c,i+=String.fromCharCode(E.code)}else i+=s;break}else++this.lineNumber,s==="\r"&&this.source[this.index]===`
`&&++this.index,this.lineStart=this.index;else{if(y.Character.isLineTerminator(s.charCodeAt(0)))break;i+=s}}return m!==""&&(this.index=g,this.throwUnexpectedToken()),{type:8,value:i,octal:c,lineNumber:this.lineNumber,lineStart:this.lineStart,start:g,end:this.index}},p.prototype.scanTemplate=function(){var g="",m=!1,c=this.index,i=this.source[c]==="`",s=!1,d=2;for(++this.index;!this.eof();){var v=this.source[this.index++];if(v==="`"){d=1,s=!0,m=!0;break}else if(v==="$"){if(this.source[this.index]==="{"){this.curlyStack.push("${"),++this.index,m=!0;break}g+=v}else if(v==="\\")if(v=this.source[this.index++],y.Character.isLineTerminator(v.charCodeAt(0)))++this.lineNumber,v==="\r"&&this.source[this.index]===`
`&&++this.index,this.lineStart=this.index;else switch(v){case"n":g+=`
`;break;case"r":g+="\r";break;case"t":g+="	";break;case"u":if(this.source[this.index]==="{")++this.index,g+=this.scanUnicodeCodePointEscape();else{var E=this.index,b=this.scanHexEscape(v);b!==null?g+=b:(this.index=E,g+=v)}break;case"x":var A=this.scanHexEscape(v);A===null&&this.throwUnexpectedToken(h.Messages.InvalidHexEscapeSequence),g+=A;break;case"b":g+="\b";break;case"f":g+="\f";break;case"v":g+="\v";break;default:v==="0"?(y.Character.isDecimalDigit(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(h.Messages.TemplateOctalLiteral),g+="\0"):y.Character.isOctalDigit(v.charCodeAt(0))?this.throwUnexpectedToken(h.Messages.TemplateOctalLiteral):g+=v;break}else y.Character.isLineTerminator(v.charCodeAt(0))?(++this.lineNumber,v==="\r"&&this.source[this.index]===`
`&&++this.index,this.lineStart=this.index,g+=`
`):g+=v}return m||this.throwUnexpectedToken(),i||this.curlyStack.pop(),{type:10,value:this.source.slice(c+1,this.index-d),cooked:g,head:i,tail:s,lineNumber:this.lineNumber,lineStart:this.lineStart,start:c,end:this.index}},p.prototype.testRegExp=function(g,m){var c="￿",i=g,s=this;m.indexOf("u")>=0&&(i=i.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g,function(d,v,E){var b=parseInt(v||E,16);return b>1114111&&s.throwUnexpectedToken(h.Messages.InvalidRegExp),b<=65535?String.fromCharCode(b):c}).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c));try{RegExp(i)}catch{this.throwUnexpectedToken(h.Messages.InvalidRegExp)}try{return new RegExp(g,m)}catch{return null}},p.prototype.scanRegExpBody=function(){var g=this.source[this.index];o.assert(g==="/","Regular expression literal must start with a slash");for(var m=this.source[this.index++],c=!1,i=!1;!this.eof();)if(g=this.source[this.index++],m+=g,g==="\\")g=this.source[this.index++],y.Character.isLineTerminator(g.charCodeAt(0))&&this.throwUnexpectedToken(h.Messages.UnterminatedRegExp),m+=g;else if(y.Character.isLineTerminator(g.charCodeAt(0)))this.throwUnexpectedToken(h.Messages.UnterminatedRegExp);else if(c)g==="]"&&(c=!1);else if(g==="/"){i=!0;break}else g==="["&&(c=!0);return i||this.throwUnexpectedToken(h.Messages.UnterminatedRegExp),m.substr(1,m.length-2)},p.prototype.scanRegExpFlags=function(){for(var g="",m="";!this.eof();){var c=this.source[this.index];if(!y.Character.isIdentifierPart(c.charCodeAt(0)))break;if(++this.index,c==="\\"&&!this.eof())if(c=this.source[this.index],c==="u"){++this.index;var i=this.index,s=this.scanHexEscape("u");if(s!==null)for(m+=s,g+="\\u";i<this.index;++i)g+=this.source[i];else this.index=i,m+="u",g+="\\u";this.tolerateUnexpectedToken()}else g+="\\",this.tolerateUnexpectedToken();else m+=c,g+=c}return m},p.prototype.scanRegExp=function(){var g=this.index,m=this.scanRegExpBody(),c=this.scanRegExpFlags(),i=this.testRegExp(m,c);return{type:9,value:"",pattern:m,flags:c,regex:i,lineNumber:this.lineNumber,lineStart:this.lineStart,start:g,end:this.index}},p.prototype.lex=function(){if(this.eof())return{type:2,value:"",lineNumber:this.lineNumber,lineStart:this.lineStart,start:this.index,end:this.index};var g=this.source.charCodeAt(this.index);return y.Character.isIdentifierStart(g)?this.scanIdentifier():g===40||g===41||g===59?this.scanPunctuator():g===39||g===34?this.scanStringLiteral():g===46?y.Character.isDecimalDigit(this.source.charCodeAt(this.index+1))?this.scanNumericLiteral():this.scanPunctuator():y.Character.isDecimalDigit(g)?this.scanNumericLiteral():g===96||g===125&&this.curlyStack[this.curlyStack.length-1]==="${"?this.scanTemplate():g>=55296&&g<57343&&y.Character.isIdentifierStart(this.codePointAt(this.index))?this.scanIdentifier():this.scanPunctuator()},p}();r.Scanner=a},function(n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TokenName={},r.TokenName[1]="Boolean",r.TokenName[2]="<end>",r.TokenName[3]="Identifier",r.TokenName[4]="Keyword",r.TokenName[5]="Null",r.TokenName[6]="Numeric",r.TokenName[7]="Punctuator",r.TokenName[8]="String",r.TokenName[9]="RegularExpression",r.TokenName[10]="Template"},function(n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.XHTMLEntities={quot:'"',amp:"&",apos:"'",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",lang:"⟨",rang:"⟩"}},function(n,r,l){Object.defineProperty(r,"__esModule",{value:!0});var o=l(10),y=l(12),h=l(13),f=function(){function a(){this.values=[],this.curly=this.paren=-1}return a.prototype.beforeFunctionExpression=function(p){return["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","**","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="].indexOf(p)>=0},a.prototype.isRegexStart=function(){var p=this.values[this.values.length-1],g=p!==null;switch(p){case"this":case"]":g=!1;break;case")":var m=this.values[this.paren-1];g=m==="if"||m==="while"||m==="for"||m==="with";break;case"}":if(g=!1,this.values[this.curly-3]==="function"){var c=this.values[this.curly-4];g=c?!this.beforeFunctionExpression(c):!1}else if(this.values[this.curly-4]==="function"){var c=this.values[this.curly-5];g=c?!this.beforeFunctionExpression(c):!0}break}return g},a.prototype.push=function(p){p.type===7||p.type===4?(p.value==="{"?this.curly=this.values.length:p.value==="("&&(this.paren=this.values.length),this.values.push(p.value)):this.values.push(null)},a}(),u=function(){function a(p,g){this.errorHandler=new o.ErrorHandler,this.errorHandler.tolerant=g?typeof g.tolerant=="boolean"&&g.tolerant:!1,this.scanner=new y.Scanner(p,this.errorHandler),this.scanner.trackComment=g?typeof g.comment=="boolean"&&g.comment:!1,this.trackRange=g?typeof g.range=="boolean"&&g.range:!1,this.trackLoc=g?typeof g.loc=="boolean"&&g.loc:!1,this.buffer=[],this.reader=new f}return a.prototype.errors=function(){return this.errorHandler.errors},a.prototype.getNextToken=function(){if(this.buffer.length===0){var p=this.scanner.scanComments();if(this.scanner.trackComment)for(var g=0;g<p.length;++g){var m=p[g],c=this.scanner.source.slice(m.slice[0],m.slice[1]),i={type:m.multiLine?"BlockComment":"LineComment",value:c};this.trackRange&&(i.range=m.range),this.trackLoc&&(i.loc=m.loc),this.buffer.push(i)}if(!this.scanner.eof()){var s=void 0;this.trackLoc&&(s={start:{line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart},end:{}});var d=this.scanner.source[this.scanner.index]==="/"&&this.reader.isRegexStart(),v=d?this.scanner.scanRegExp():this.scanner.lex();this.reader.push(v);var E={type:h.TokenName[v.type],value:this.scanner.source.slice(v.start,v.end)};if(this.trackRange&&(E.range=[v.start,v.end]),this.trackLoc&&(s.end={line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart},E.loc=s),v.type===9){var b=v.pattern,A=v.flags;E.regex={pattern:b,flags:A}}this.buffer.push(E)}}return this.buffer.shift()},a}();r.Tokenizer=u}])})}(Up)),Si}var Ou;function Xp(){if(Ou)return Kr;Ou=1,Object.defineProperty(Kr,"__esModule",{value:!0}),Kr.parse=void 0;var e=qt();function t(n,r){var l=[],o=jc().parse(n,{loc:!0,locations:!0,comment:!0,onComment:l,range:e.getOption(r,"range",!1),tolerant:e.getOption(r,"tolerant",!0),tokens:!0,jsx:e.getOption(r,"jsx",!1),sourceType:e.getOption(r,"sourceType","module")});return Array.isArray(o.comments)||(o.comments=l),o}return Kr.parse=t,Kr}var Iu;function ys(){if(Iu)return Wr;Iu=1,Object.defineProperty(Wr,"__esModule",{value:!0}),Wr.normalize=void 0;var e=qt(),t={parser:Xp(),tabWidth:4,useTabs:!1,reuseWhitespace:!0,lineTerminator:e.getLineTerminator(),wrapColumn:74,sourceFileName:null,sourceMapName:null,sourceRoot:null,inputSourceMap:null,range:!1,tolerant:!0,quote:null,trailingComma:!1,arrayBracketSpacing:!1,objectCurlySpacing:!0,arrowParensAlways:!1,flowObjectCommas:!0,tokens:!0},n=t.hasOwnProperty;function r(l){var o=l||t;function y(h){return n.call(o,h)?o[h]:t[h]}return{tabWidth:+y("tabWidth"),useTabs:!!y("useTabs"),reuseWhitespace:!!y("reuseWhitespace"),lineTerminator:y("lineTerminator"),wrapColumn:Math.max(y("wrapColumn"),0),sourceFileName:y("sourceFileName"),sourceMapName:y("sourceMapName"),sourceRoot:y("sourceRoot"),inputSourceMap:y("inputSourceMap"),parser:y("esprima")||y("parser"),range:y("range"),tolerant:y("tolerant"),quote:y("quote"),trailingComma:y("trailingComma"),arrayBracketSpacing:y("arrayBracketSpacing"),objectCurlySpacing:y("objectCurlySpacing"),arrowParensAlways:y("arrowParensAlways"),flowObjectCommas:y("flowObjectCommas"),tokens:!!y("tokens")}}return Wr.normalize=r,Wr}var pt={},ni={},Bu;function Jp(){if(Bu)return ni;Bu=1,Object.defineProperty(ni,"__esModule",{value:!0});var e=yt,t=e.__importDefault(_t()),n=qt(),r=function(){function h(f,u,a){a===void 0&&(a=u),this.sourceLines=f,this.sourceLoc=u,this.targetLoc=a}return h.prototype.slice=function(f,u,a){a===void 0&&(a=f.lastPos());var p=this.sourceLines,g=this.sourceLoc,m=this.targetLoc;function c(i){var s=g[i],d=m[i],v=u;return i==="end"?v=a:t.default.strictEqual(i,"start"),y(p,s,f,d,v)}if(n.comparePos(u,m.start)<=0)if(n.comparePos(m.end,a)<=0)m={start:o(m.start,u.line,u.column),end:o(m.end,u.line,u.column)};else{if(n.comparePos(a,m.start)<=0)return null;g={start:g.start,end:c("end")},m={start:o(m.start,u.line,u.column),end:o(a,u.line,u.column)}}else{if(n.comparePos(m.end,u)<=0)return null;n.comparePos(m.end,a)<=0?(g={start:c("start"),end:g.end},m={start:{line:1,column:0},end:o(m.end,u.line,u.column)}):(g={start:c("start"),end:c("end")},m={start:{line:1,column:0},end:o(a,u.line,u.column)})}return new h(this.sourceLines,g,m)},h.prototype.add=function(f,u){return new h(this.sourceLines,this.sourceLoc,{start:l(this.targetLoc.start,f,u),end:l(this.targetLoc.end,f,u)})},h.prototype.subtract=function(f,u){return new h(this.sourceLines,this.sourceLoc,{start:o(this.targetLoc.start,f,u),end:o(this.targetLoc.end,f,u)})},h.prototype.indent=function(f,u,a){if(u===void 0&&(u=!1),a===void 0&&(a=!1),f===0)return this;var p=this.targetLoc,g=p.start.line,m=p.end.line;if(u&&g===1&&m===1)return this;if(p={start:p.start,end:p.end},!u||g>1){var c=p.start.column+f;p.start={line:g,column:a?Math.max(0,c):c}}if(!u||m>1){var i=p.end.column+f;p.end={line:m,column:a?Math.max(0,i):i}}return new h(this.sourceLines,this.sourceLoc,p)},h}();ni.default=r;function l(h,f,u){return{line:h.line+f-1,column:h.line===1?h.column+u:h.column}}function o(h,f,u){return{line:h.line-f+1,column:h.line===f?h.column-u:h.column}}function y(h,f,u,a,p){var g=n.comparePos(a,p);if(g===0)return f;var m,c;if(g<0){m=h.skipSpaces(f)||h.lastPos(),c=u.skipSpaces(a)||u.lastPos();var i=p.line-c.line;for(m.line+=i,c.line+=i,i>0?(m.column=0,c.column=0):t.default.strictEqual(i,0);n.comparePos(c,p)<0&&u.nextPos(c,!0);)t.default.ok(h.nextPos(m,!0)),t.default.strictEqual(h.charAt(m),u.charAt(c))}else{m=h.skipSpaces(f,!0)||h.firstPos(),c=u.skipSpaces(a,!0)||u.firstPos();var i=p.line-c.line;for(m.line+=i,c.line+=i,i<0?(m.column=h.getLineLength(m.line),c.column=u.getLineLength(c.line)):t.default.strictEqual(i,0);n.comparePos(p,c)<0&&u.prevPos(c,!0);)t.default.ok(h.prevPos(m,!0)),t.default.strictEqual(h.charAt(m),u.charAt(c))}return m}return ni}var Nu;function Bi(){if(Nu)return pt;Nu=1,Object.defineProperty(pt,"__esModule",{value:!0}),pt.concat=pt.fromString=pt.countSpaces=pt.Lines=void 0;var e=yt,t=e.__importDefault(_t()),n=e.__importDefault(Mc()),r=ys(),l=qt(),o=e.__importDefault(Jp()),y=function(){function v(E,b){b===void 0&&(b=null),this.infos=E,this.mappings=[],this.cachedSourceMap=null,this.cachedTabWidth=void 0,t.default.ok(E.length>0),this.length=E.length,this.name=b||null,this.name&&this.mappings.push(new o.default(this,{start:this.firstPos(),end:this.lastPos()}))}return v.prototype.toString=function(E){return this.sliceString(this.firstPos(),this.lastPos(),E)},v.prototype.getSourceMap=function(E,b){if(!E)return null;var A=this;function _(B){return B=B||{},B.file=E,b&&(B.sourceRoot=b),B}if(A.cachedSourceMap)return _(A.cachedSourceMap.toJSON());var D=new n.default.SourceMapGenerator(_()),F={};return A.mappings.forEach(function(B){for(var N=B.sourceLines.skipSpaces(B.sourceLoc.start)||B.sourceLines.lastPos(),I=A.skipSpaces(B.targetLoc.start)||A.lastPos();l.comparePos(N,B.sourceLoc.end)<0&&l.comparePos(I,B.targetLoc.end)<0;){var R=B.sourceLines.charAt(N),M=A.charAt(I);t.default.strictEqual(R,M);var $=B.sourceLines.name;if(D.addMapping({source:$,original:{line:N.line,column:N.column},generated:{line:I.line,column:I.column}}),!f.call(F,$)){var z=B.sourceLines.toString();D.setSourceContent($,z),F[$]=z}A.nextPos(I,!0),B.sourceLines.nextPos(N,!0)}}),A.cachedSourceMap=D,D.toJSON()},v.prototype.bootstrapCharAt=function(E){t.default.strictEqual(typeof E,"object"),t.default.strictEqual(typeof E.line,"number"),t.default.strictEqual(typeof E.column,"number");var b=E.line,A=E.column,_=this.toString().split(g),D=_[b-1];return typeof D>"u"?"":A===D.length&&b<_.length?`
`:A>=D.length?"":D.charAt(A)},v.prototype.charAt=function(E){t.default.strictEqual(typeof E,"object"),t.default.strictEqual(typeof E.line,"number"),t.default.strictEqual(typeof E.column,"number");var b=E.line,A=E.column,_=this,D=_.infos,F=D[b-1],B=A;if(typeof F>"u"||B<0)return"";var N=this.getIndentAt(b);return B<N?" ":(B+=F.sliceStart-N,B===F.sliceEnd&&b<this.length?`
`:B>=F.sliceEnd?"":F.line.charAt(B))},v.prototype.stripMargin=function(E,b){if(E===0)return this;if(t.default.ok(E>0,"negative margin: "+E),b&&this.length===1)return this;var A=new v(this.infos.map(function(D,F){return D.line&&(F>0||!b)&&(D=e.__assign(e.__assign({},D),{indent:Math.max(0,D.indent-E)})),D}));if(this.mappings.length>0){var _=A.mappings;t.default.strictEqual(_.length,0),this.mappings.forEach(function(D){_.push(D.indent(E,b,!0))})}return A},v.prototype.indent=function(E){if(E===0)return this;var b=new v(this.infos.map(function(_){return _.line&&!_.locked&&(_=e.__assign(e.__assign({},_),{indent:_.indent+E})),_}));if(this.mappings.length>0){var A=b.mappings;t.default.strictEqual(A.length,0),this.mappings.forEach(function(_){A.push(_.indent(E))})}return b},v.prototype.indentTail=function(E){if(E===0)return this;if(this.length<2)return this;var b=new v(this.infos.map(function(_,D){return D>0&&_.line&&!_.locked&&(_=e.__assign(e.__assign({},_),{indent:_.indent+E})),_}));if(this.mappings.length>0){var A=b.mappings;t.default.strictEqual(A.length,0),this.mappings.forEach(function(_){A.push(_.indent(E,!0))})}return b},v.prototype.lockIndentTail=function(){return this.length<2?this:new v(this.infos.map(function(E,b){return e.__assign(e.__assign({},E),{locked:b>0})}))},v.prototype.getIndentAt=function(E){return t.default.ok(E>=1,"no line "+E+" (line numbers start from 1)"),Math.max(this.infos[E-1].indent,0)},v.prototype.guessTabWidth=function(){if(typeof this.cachedTabWidth=="number")return this.cachedTabWidth;for(var E=[],b=0,A=1,_=this.length;A<=_;++A){var D=this.infos[A-1],F=D.line.slice(D.sliceStart,D.sliceEnd);if(!c(F)){var B=Math.abs(D.indent-b);E[B]=~~E[B]+1,b=D.indent}}for(var N=-1,I=2,R=1;R<E.length;R+=1)f.call(E,R)&&E[R]>N&&(N=E[R],I=R);return this.cachedTabWidth=I},v.prototype.startsWithComment=function(){if(this.infos.length===0)return!1;var E=this.infos[0],b=E.sliceStart,A=E.sliceEnd,_=E.line.slice(b,A).trim();return _.length===0||_.slice(0,2)==="//"||_.slice(0,2)==="/*"},v.prototype.isOnlyWhitespace=function(){return c(this.toString())},v.prototype.isPrecededOnlyByWhitespace=function(E){var b=this.infos[E.line-1],A=Math.max(b.indent,0),_=E.column-A;if(_<=0)return!0;var D=b.sliceStart,F=Math.min(D+_,b.sliceEnd),B=b.line.slice(D,F);return c(B)},v.prototype.getLineLength=function(E){var b=this.infos[E-1];return this.getIndentAt(E)+b.sliceEnd-b.sliceStart},v.prototype.nextPos=function(E,b){b===void 0&&(b=!1);var A=Math.max(E.line,0),_=Math.max(E.column,0);return _<this.getLineLength(A)?(E.column+=1,b?!!this.skipSpaces(E,!1,!0):!0):A<this.length?(E.line+=1,E.column=0,b?!!this.skipSpaces(E,!1,!0):!0):!1},v.prototype.prevPos=function(E,b){b===void 0&&(b=!1);var A=E.line,_=E.column;if(_<1){if(A-=1,A<1)return!1;_=this.getLineLength(A)}else _=Math.min(_-1,this.getLineLength(A));return E.line=A,E.column=_,b?!!this.skipSpaces(E,!0,!0):!0},v.prototype.firstPos=function(){return{line:1,column:0}},v.prototype.lastPos=function(){return{line:this.length,column:this.getLineLength(this.length)}},v.prototype.skipSpaces=function(E,b,A){if(b===void 0&&(b=!1),A===void 0&&(A=!1),E?E=A?E:{line:E.line,column:E.column}:b?E=this.lastPos():E=this.firstPos(),b){for(;this.prevPos(E);)if(!c(this.charAt(E))&&this.nextPos(E))return E;return null}else{for(;c(this.charAt(E));)if(!this.nextPos(E))return null;return E}},v.prototype.trimLeft=function(){var E=this.skipSpaces(this.firstPos(),!1,!0);return E?this.slice(E):d},v.prototype.trimRight=function(){var E=this.skipSpaces(this.lastPos(),!0,!0);return E?this.slice(this.firstPos(),E):d},v.prototype.trim=function(){var E=this.skipSpaces(this.firstPos(),!1,!0);if(E===null)return d;var b=this.skipSpaces(this.lastPos(),!0,!0);return b===null?d:this.slice(E,b)},v.prototype.eachPos=function(E,b,A){b===void 0&&(b=this.firstPos()),A===void 0&&(A=!1);var _=this.firstPos();if(b&&(_.line=b.line,_.column=b.column),!(A&&!this.skipSpaces(_,!1,!0)))do E.call(this,_);while(this.nextPos(_,A))},v.prototype.bootstrapSlice=function(E,b){var A=this.toString().split(g).slice(E.line-1,b.line);return A.length>0&&(A.push(A.pop().slice(0,b.column)),A[0]=A[0].slice(E.column)),m(A.join(`
`))},v.prototype.slice=function(E,b){if(!b){if(!E)return this;b=this.lastPos()}if(!E)throw new Error("cannot slice with end but not start");var A=this.infos.slice(E.line-1,b.line);E.line===b.line?A[0]=i(A[0],E.column,b.column):(t.default.ok(E.line<b.line),A[0]=i(A[0],E.column),A.push(i(A.pop(),0,b.column)));var _=new v(A);if(this.mappings.length>0){var D=_.mappings;t.default.strictEqual(D.length,0),this.mappings.forEach(function(F){var B=F.slice(this,E,b);B&&D.push(B)},this)}return _},v.prototype.bootstrapSliceString=function(E,b,A){return this.slice(E,b).toString(A)},v.prototype.sliceString=function(E,b,A){E===void 0&&(E=this.firstPos()),b===void 0&&(b=this.lastPos());for(var _=r.normalize(A),D=_.tabWidth,F=_.useTabs,B=_.reuseWhitespace,N=_.lineTerminator,I=[],R=E.line;R<=b.line;++R){var M=this.infos[R-1];R===E.line?R===b.line?M=i(M,E.column,b.column):M=i(M,E.column):R===b.line&&(M=i(M,0,b.column));var $=Math.max(M.indent,0),z=M.line.slice(0,M.sliceStart);if(B&&c(z)&&a(z,D)===$){I.push(M.line.slice(0,M.sliceEnd));continue}var X=0,P=$;F&&(X=Math.floor($/D),P-=X*D);var O="";X>0&&(O+=new Array(X+1).join("	")),P>0&&(O+=new Array(P+1).join(" ")),O+=M.line.slice(M.sliceStart,M.sliceEnd),I.push(O)}return I.join(N)},v.prototype.isEmpty=function(){return this.length<2&&this.getLineLength(1)<1},v.prototype.join=function(E){var b=this,A=[],_=[],D;function F(I){if(I!==null){if(D){var R=I.infos[0],M=new Array(R.indent+1).join(" "),$=A.length,z=Math.max(D.indent,0)+D.sliceEnd-D.sliceStart;D.line=D.line.slice(0,D.sliceEnd)+M+R.line.slice(R.sliceStart,R.sliceEnd),D.locked=D.locked||R.locked,D.sliceEnd=D.line.length,I.mappings.length>0&&I.mappings.forEach(function(X){_.push(X.add($,z))})}else I.mappings.length>0&&_.push.apply(_,I.mappings);I.infos.forEach(function(X,P){(!D||P>0)&&(D=e.__assign({},X),A.push(D))})}}function B(I,R){R>0&&F(b),F(I)}if(E.map(function(I){var R=m(I);return R.isEmpty()?null:R}).forEach(function(I,R){b.isEmpty()?F(I):B(I,R)}),A.length<1)return d;var N=new v(A);return N.mappings=_,N},v.prototype.concat=function(){for(var E=[],b=0;b<arguments.length;b++)E[b]=arguments[b];var A=[this];return A.push.apply(A,E),t.default.strictEqual(A.length,E.length+1),d.join(A)},v}();pt.Lines=y;var h={},f=h.hasOwnProperty,u=10;function a(v,E){for(var b=0,A=v.length,_=0;_<A;++_)switch(v.charCodeAt(_)){case 9:{t.default.strictEqual(typeof E,"number"),t.default.ok(E>0);var D=Math.ceil(b/E)*E;D===b?b+=E:b=D;break}case 11:case 12:case 13:case 65279:break;case 32:default:b+=1;break}return b}pt.countSpaces=a;var p=/^\s*/,g=/\u000D\u000A|\u000D(?!\u000A)|\u000A|\u2028|\u2029/;function m(v,E){if(v instanceof y)return v;v+="";var b=E&&E.tabWidth,A=v.indexOf("	")<0,_=!E&&A&&v.length<=u;if(t.default.ok(b||A,`No tab width specified but encountered tabs in string
`+v),_&&f.call(h,v))return h[v];var D=new y(v.split(g).map(function(F){var B=p.exec(F)[0];return{line:F,indent:a(B,b),locked:!1,sliceStart:B.length,sliceEnd:F.length}}),r.normalize(E).sourceFileName);return _&&(h[v]=D),D}pt.fromString=m;function c(v){return!/\S/.test(v)}function i(v,E,b){var A=v.sliceStart,_=v.sliceEnd,D=Math.max(v.indent,0),F=D+_-A;return typeof b>"u"&&(b=F),E=Math.max(E,0),b=Math.min(b,F),b=Math.max(b,E),b<D?(D=b,_=A):_-=F-b,F=b,F-=E,E<D?D-=E:(E-=D,D=0,A+=E),t.default.ok(D>=0),t.default.ok(A<=_),t.default.strictEqual(F,D+_-A),v.indent===D&&v.sliceStart===A&&v.sliceEnd===_?v:{line:v.line,indent:D,locked:!1,sliceStart:A,sliceEnd:_}}function s(v){return d.join(v)}pt.concat=s;var d=m("");return pt}var ur={},Mu;function Lc(){if(Mu)return ur;Mu=1,Object.defineProperty(ur,"__esModule",{value:!0}),ur.printComments=ur.attach=void 0;var e=yt,t=e.__importDefault(_t()),n=e.__importStar(ir()),r=n.namedTypes,l=n.builtInTypes.array,o=n.builtInTypes.object,y=Bi(),h=qt(),f=new WeakMap;function u(b,A,_){if(!b)return _;if(h.fixFaultyLocations(b,A),_){if(r.Node.check(b)&&r.SourceLocation.check(b.loc)){for(var D=_.length-1;D>=0;--D){var F=_[D];if(F&&F.loc&&h.comparePos(F.loc.end,b.loc.start)<=0)break}return _.splice(D+1,0,b),_}}else{var B=f.get(b);if(B)return B}var N;if(l.check(b))N=Object.keys(b);else if(o.check(b))N=n.getFieldNames(b);else return _;_||f.set(b,_=[]);for(var D=0,I=N.length;D<I;++D)u(b[N[D]],A,_);return _}function a(b,A,_){for(var D=u(b,_),F=0,B=D&&D.length,N,I;typeof B=="number"&&F<B;){var R=F+B>>1,M=D[R];if(h.comparePos(M.loc.start,A.loc.start)<=0&&h.comparePos(A.loc.end,M.loc.end)<=0){a(A.enclosingNode=M,A,_);return}if(h.comparePos(M.loc.end,A.loc.start)<=0){N=M,F=R+1;continue}if(h.comparePos(A.loc.end,M.loc.start)<=0){I=M,B=R;continue}throw new Error("Comment location overlaps with node location")}N&&(A.precedingNode=N),I&&(A.followingNode=I)}function p(b,A,_){if(l.check(b)){var D=[];b.forEach(function(F){F.loc.lines=_,a(A,F,_);var B=F.precedingNode,N=F.enclosingNode,I=F.followingNode;if(B&&I){var R=D.length;if(R>0){var M=D[R-1];t.default.strictEqual(M.precedingNode===F.precedingNode,M.followingNode===F.followingNode),M.followingNode!==F.followingNode&&g(D,_)}D.push(F)}else if(B)g(D,_),s(B,F);else if(I)g(D,_),c(I,F);else if(N)g(D,_),i(N,F);else throw new Error("AST contains no nodes at all?")}),g(D,_),b.forEach(function(F){delete F.precedingNode,delete F.enclosingNode,delete F.followingNode})}}ur.attach=p;function g(b,A){var _=b.length;if(_!==0){for(var D=b[0].precedingNode,F=b[0].followingNode,B=F.loc.start,N=_,I;N>0;--N){I=b[N-1],t.default.strictEqual(I.precedingNode,D),t.default.strictEqual(I.followingNode,F);var R=A.sliceString(I.loc.end,B);if(/\S/.test(R))break;B=I.loc.start}for(;N<=_&&(I=b[N])&&(I.type==="Line"||I.type==="CommentLine")&&I.loc.start.column>F.loc.start.column;)++N;b.forEach(function(M,$){$<N?s(D,M):c(F,M)}),b.length=0}}function m(b,A){var _=b.comments||(b.comments=[]);_.push(A)}function c(b,A){A.leading=!0,A.trailing=!1,m(b,A)}function i(b,A){A.leading=!1,A.trailing=!1,m(b,A)}function s(b,A){A.leading=!1,A.trailing=!0,m(b,A)}function d(b,A){var _=b.getValue();r.Comment.assert(_);var D=_.loc,F=D&&D.lines,B=[A(b)];if(_.trailing)B.push(`
`);else if(F instanceof y.Lines){var N=F.slice(D.end,F.skipSpaces(D.end)||F.lastPos());N.length===1?B.push(N):B.push(new Array(N.length).join(`
`))}else B.push(`
`);return y.concat(B)}function v(b,A){var _=b.getValue(b);r.Comment.assert(_);var D=_.loc,F=D&&D.lines,B=[];if(F instanceof y.Lines){var N=F.skipSpaces(D.start,!0)||F.firstPos(),I=F.slice(N,D.start);I.length===1?B.push(I):B.push(new Array(I.length).join(`
`))}return B.push(A(b)),y.concat(B)}function E(b,A){var _=b.getValue(),D=A(b),F=r.Node.check(_)&&n.getFieldValue(_,"comments");if(!F||F.length===0)return D;var B=[],N=[D];return b.each(function(I){var R=I.getValue(),M=n.getFieldValue(R,"leading"),$=n.getFieldValue(R,"trailing");M||$&&!(r.Statement.check(_)||R.type==="Block"||R.type==="CommentBlock")?B.push(d(I,A)):$&&N.push(v(I,A))},"comments"),B.push.apply(B,N),y.concat(B)}return ur.printComments=E,ur}var ju;function Wp(){if(ju)return Jr;ju=1,Object.defineProperty(Jr,"__esModule",{value:!0}),Jr.parse=void 0;var e=yt,t=e.__importDefault(_t()),n=e.__importStar(ir()),r=n.builders,l=n.builtInTypes.object,o=n.builtInTypes.array,y=ys(),h=Bi(),f=Lc(),u=e.__importStar(qt());function a(m,c){c=y.normalize(c);var i=h.fromString(m,c),s=i.toString({tabWidth:c.tabWidth,reuseWhitespace:!1,useTabs:!1}),d=[],v=c.parser.parse(s,{jsx:!0,loc:!0,locations:!0,range:c.range,comment:!0,onComment:d,tolerant:u.getOption(c,"tolerant",!0),ecmaVersion:6,sourceType:u.getOption(c,"sourceType","module")}),E=Array.isArray(v.tokens)?v.tokens:jc().tokenize(s,{loc:!0});delete v.tokens,E.forEach(function(D){typeof D.value!="string"&&(D.value=i.sliceString(D.loc.start,D.loc.end))}),Array.isArray(v.comments)&&(d=v.comments,delete v.comments),v.loc?u.fixFaultyLocations(v,i):v.loc={start:i.firstPos(),end:i.lastPos()},v.loc.lines=i,v.loc.indent=0;var b,A;v.type==="Program"?(A=v,b=r.file(v,c.sourceFileName||null),b.loc={start:i.firstPos(),end:i.lastPos(),lines:i,indent:0}):v.type==="File"&&(b=v,A=b.program),c.tokens&&(b.tokens=E);var _=u.getTrueLoc({type:A.type,loc:A.loc,body:[],comments:d},i);return A.loc.start=_.start,A.loc.end=_.end,f.attach(d,A.body.length?b.program:b,i),new p(i,E).copy(b)}Jr.parse=a;var p=function m(c,i){t.default.ok(this instanceof m),this.lines=c,this.tokens=i,this.startTokenIndex=0,this.endTokenIndex=i.length,this.indent=0,this.seen=new Map},g=p.prototype;return g.copy=function(m){if(this.seen.has(m))return this.seen.get(m);if(o.check(m)){var c=new Array(m.length);return this.seen.set(m,c),m.forEach(function(B,N){c[N]=this.copy(B)},this),c}if(!l.check(m))return m;u.fixFaultyLocations(m,this.lines);var i=Object.create(Object.getPrototypeOf(m),{original:{value:m,configurable:!1,enumerable:!1,writable:!0}});this.seen.set(m,i);var s=m.loc,d=this.indent,v=d,E=this.startTokenIndex,b=this.endTokenIndex;s&&((m.type==="Block"||m.type==="Line"||m.type==="CommentBlock"||m.type==="CommentLine"||this.lines.isPrecededOnlyByWhitespace(s.start))&&(v=this.indent=s.start.column),s.lines=this.lines,s.tokens=this.tokens,s.indent=v,this.findTokenRange(s));for(var A=Object.keys(m),_=A.length,D=0;D<_;++D){var F=A[D];F==="loc"||F==="tokens"&&m.type==="File"?i[F]=m[F]:i[F]=this.copy(m[F])}return this.indent=d,this.startTokenIndex=E,this.endTokenIndex=b,i},g.findTokenRange=function(m){for(;this.startTokenIndex>0;){var c=m.tokens[this.startTokenIndex];if(u.comparePos(m.start,c.loc.start)<0)--this.startTokenIndex;else break}for(;this.endTokenIndex<m.tokens.length;){var c=m.tokens[this.endTokenIndex];if(u.comparePos(c.loc.end,m.end)<0)++this.endTokenIndex;else break}for(;this.startTokenIndex<this.endTokenIndex;){var c=m.tokens[this.startTokenIndex];if(u.comparePos(c.loc.start,m.start)<0)++this.startTokenIndex;else break}for(m.start.token=this.startTokenIndex;this.endTokenIndex>this.startTokenIndex;){var c=m.tokens[this.endTokenIndex-1];if(u.comparePos(m.end,c.loc.end)<0)--this.endTokenIndex;else break}m.end.token=this.endTokenIndex},Jr}var Yr={},lr={},ii={},Lu;function Rc(){if(Lu)return ii;Lu=1,Object.defineProperty(ii,"__esModule",{value:!0});var e=yt,t=e.__importDefault(_t()),n=e.__importStar(ir()),r=e.__importStar(qt()),l=n.namedTypes,o=n.builtInTypes.array,y=n.builtInTypes.number,h={};[["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].forEach(function(m,c){m.forEach(function(i){h[i]=c})});var f=function m(c){t.default.ok(this instanceof m),this.stack=[c]},u=f.prototype;f.from=function(m){if(m instanceof f)return m.copy();if(m instanceof n.NodePath){for(var c=Object.create(f.prototype),i=[m.value],s=void 0;s=m.parentPath;m=s)i.push(m.name,s.value);return c.stack=i.reverse(),c}return new f(m)},u.copy=function(){var c=Object.create(f.prototype);return c.stack=this.stack.slice(0),c},u.getName=function(){var c=this.stack,i=c.length;return i>1?c[i-2]:null},u.getValue=function(){var c=this.stack;return c[c.length-1]},u.valueIsDuplicate=function(){var m=this.stack,c=m.length-1;return m.lastIndexOf(m[c],c-1)>=0};function a(m,c){for(var i=m.stack,s=i.length-1;s>=0;s-=2){var d=i[s];if(l.Node.check(d)&&--c<0)return d}return null}u.getNode=function(c){return c===void 0&&(c=0),a(this,~~c)},u.getParentNode=function(c){return c===void 0&&(c=0),a(this,~~c+1)},u.getRootValue=function(){var c=this.stack;return c.length%2===0?c[1]:c[0]},u.call=function(c){for(var i=this.stack,s=i.length,d=i[s-1],v=arguments.length,E=1;E<v;++E){var b=arguments[E];d=d[b],i.push(b,d)}var A=c(this);return i.length=s,A},u.each=function(c){for(var i=this.stack,s=i.length,d=i[s-1],v=arguments.length,E=1;E<v;++E){var b=arguments[E];d=d[b],i.push(b,d)}for(var E=0;E<d.length;++E)E in d&&(i.push(E,d[E]),c(this),i.length-=2);i.length=s},u.map=function(c){for(var i=this.stack,s=i.length,d=i[s-1],v=arguments.length,E=1;E<v;++E){var b=arguments[E];d=d[b],i.push(b,d)}for(var A=new Array(d.length),E=0;E<d.length;++E)E in d&&(i.push(E,d[E]),A[E]=c(this,E),i.length-=2);return i.length=s,A},u.hasParens=function(){var m=this.getNode(),c=this.getPrevToken(m);if(!c)return!1;var i=this.getNextToken(m);if(!i)return!1;if(c.value==="("){if(i.value===")")return!0;var s=!this.canBeFirstInStatement()&&this.firstInStatement()&&!this.needsParens(!0);if(s)return!0}return!1},u.getPrevToken=function(m){m=m||this.getNode();var c=m&&m.loc,i=c&&c.tokens;if(i&&c.start.token>0){var s=i[c.start.token-1];if(s){var d=this.getRootValue().loc;if(r.comparePos(d.start,s.loc.start)<=0)return s}}return null},u.getNextToken=function(m){m=m||this.getNode();var c=m&&m.loc,i=c&&c.tokens;if(i&&c.end.token<i.length){var s=i[c.end.token];if(s){var d=this.getRootValue().loc;if(r.comparePos(s.loc.end,d.end)<=0)return s}}return null},u.needsParens=function(m){var c=this.getNode();if(c.type==="AssignmentExpression"&&c.left.type==="ObjectPattern")return!0;var i=this.getParentNode(),s=this.getName();if(this.getValue()!==c||l.Statement.check(c)||c.type==="Identifier"||i&&i.type==="ParenthesizedExpression")return!1;if(c.extra&&c.extra.parenthesized)return!0;if(!i)return!1;switch(c.type){case"UnaryExpression":case"SpreadElement":case"SpreadProperty":return i.type==="MemberExpression"&&s==="object"&&i.object===c;case"BinaryExpression":case"LogicalExpression":switch(i.type){case"CallExpression":return s==="callee"&&i.callee===c;case"UnaryExpression":case"SpreadElement":case"SpreadProperty":return!0;case"MemberExpression":return s==="object"&&i.object===c;case"BinaryExpression":case"LogicalExpression":{var d=i.operator,v=h[d],E=c.operator,b=h[E];if(v>b)return!0;if(v===b&&s==="right")return t.default.strictEqual(i.right,c),!0;break}default:return!1}break;case"SequenceExpression":switch(i.type){case"ReturnStatement":return!1;case"ForStatement":return!1;case"ExpressionStatement":return s!=="expression";default:return!0}case"OptionalIndexedAccessType":return c.optional&&i.type==="IndexedAccessType";case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return i.type==="NullableTypeAnnotation";case"Literal":return i.type==="MemberExpression"&&y.check(c.value)&&s==="object"&&i.object===c;case"NumericLiteral":return i.type==="MemberExpression"&&s==="object"&&i.object===c;case"YieldExpression":case"AwaitExpression":case"AssignmentExpression":case"ConditionalExpression":switch(i.type){case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"BinaryExpression":case"LogicalExpression":return!0;case"CallExpression":case"NewExpression":return s==="callee"&&i.callee===c;case"ConditionalExpression":return s==="test"&&i.test===c;case"MemberExpression":return s==="object"&&i.object===c;default:return!1}case"ArrowFunctionExpression":return l.CallExpression.check(i)&&s==="callee"&&i.callee===c||l.MemberExpression.check(i)&&s==="object"&&i.object===c||l.TSAsExpression&&l.TSAsExpression.check(i)&&s==="expression"&&i.expression===c?!0:p(i);case"ObjectExpression":if(i.type==="ArrowFunctionExpression"&&s==="body"&&i.body===c)return!0;break;case"TSAsExpression":if(i.type==="ArrowFunctionExpression"&&s==="body"&&i.body===c&&c.expression.type==="ObjectExpression")return!0;break;case"CallExpression":if(s==="declaration"&&l.ExportDefaultDeclaration.check(i)&&l.FunctionExpression.check(c.callee))return!0}return i.type==="NewExpression"&&s==="callee"&&i.callee===c?g(c):!!(m!==!0&&!this.canBeFirstInStatement()&&this.firstInStatement())};function p(m){return l.BinaryExpression.check(m)||l.LogicalExpression.check(m)}function g(m){return l.CallExpression.check(m)?!0:o.check(m)?m.some(g):l.Node.check(m)?n.someField(m,function(c,i){return g(i)}):!1}return u.canBeFirstInStatement=function(){var m=this.getNode();return!(l.FunctionExpression.check(m)||l.ObjectExpression.check(m)||l.ClassExpression.check(m))},u.firstInStatement=function(){for(var m=this.stack,c,i,s,d,v=m.length-1;v>=0;v-=2)if(l.Node.check(m[v])&&(s=c,d=i,c=m[v-1],i=m[v]),!(!i||!d)){if(l.BlockStatement.check(i)&&c==="body"&&s===0)return t.default.strictEqual(i.body[0],d),!0;if(l.ExpressionStatement.check(i)&&s==="expression")return t.default.strictEqual(i.expression,d),!0;if(l.AssignmentExpression.check(i)&&s==="left")return t.default.strictEqual(i.left,d),!0;if(l.ArrowFunctionExpression.check(i)&&s==="body")return t.default.strictEqual(i.body,d),!0;if(l.SequenceExpression.check(i)&&m[v+1]==="expressions"&&s===0){t.default.strictEqual(i.expressions[0],d);continue}if(l.CallExpression.check(i)&&s==="callee"){t.default.strictEqual(i.callee,d);continue}if(l.MemberExpression.check(i)&&s==="object"){t.default.strictEqual(i.object,d);continue}if(l.ConditionalExpression.check(i)&&s==="test"){t.default.strictEqual(i.test,d);continue}if(p(i)&&s==="left"){t.default.strictEqual(i.left,d);continue}if(l.UnaryExpression.check(i)&&!i.prefix&&s==="argument"){t.default.strictEqual(i.argument,d);continue}return!1}return!0},ii.default=f,ii}var Ru;function Hp(){if(Ru)return lr;Ru=1,Object.defineProperty(lr,"__esModule",{value:!0}),lr.getReprinter=lr.Patcher=void 0;var e=yt,t=e.__importDefault(_t()),n=e.__importStar(Bi()),r=e.__importStar(ir()),l=r.namedTypes.Printable,o=r.namedTypes.Expression,y=r.namedTypes.ReturnStatement,h=r.namedTypes.SourceLocation,f=qt(),u=e.__importDefault(Rc()),a=r.builtInTypes.object,p=r.builtInTypes.array,g=r.builtInTypes.string,m=/[0-9a-z_$]/i,c=function B(N){t.default.ok(this instanceof B),t.default.ok(N instanceof n.Lines);var I=this,R=[];I.replace=function(M,$){g.check($)&&($=n.fromString($)),R.push({lines:$,start:M.start,end:M.end})},I.get=function(M){M=M||{start:{line:1,column:0},end:{line:N.length,column:N.getLineLength(N.length)}};var $=M.start,z=[];function X(P,O){t.default.ok(f.comparePos(P,O)<=0),z.push(N.slice(P,O))}return R.sort(function(P,O){return f.comparePos(P.start,O.start)}).forEach(function(P){f.comparePos($,P.start)>0||(X($,P.start),z.push(P.lines),$=P.end)}),X($,M.end),n.concat(z)}};lr.Patcher=c;var i=c.prototype;i.tryToReprintComments=function(B,N,I){var R=this;if(!B.comments&&!N.comments)return!0;var M=u.default.from(B),$=u.default.from(N);M.stack.push("comments",s(B)),$.stack.push("comments",s(N));var z=[],X=_(M,$,z);return X&&z.length>0&&z.forEach(function(P){var O=P.oldPath.getValue();t.default.ok(O.leading||O.trailing),R.replace(O.loc,I(P.newPath).indentTail(O.loc.indent))}),X};function s(B){var N=[];return B.comments&&B.comments.length>0&&B.comments.forEach(function(I){(I.leading||I.trailing)&&N.push(I)}),N}i.deleteComments=function(B){if(B.comments){var N=this;B.comments.forEach(function(I){I.leading?N.replace({start:I.loc.start,end:B.loc.lines.skipSpaces(I.loc.end,!1,!1)},""):I.trailing&&N.replace({start:B.loc.lines.skipSpaces(I.loc.start,!0,!1),end:I.loc.end},"")})}};function d(B){t.default.ok(B instanceof u.default);var N=B.getValue();if(l.check(N)){var I=N.original,R=I&&I.loc,M=R&&R.lines,$=[];if(!(!M||!b(B,$)))return function(z){var X=new c(M);$.forEach(function(O){var L=O.newPath.getValue(),V=O.oldPath.getValue();h.assert(V.loc,!0);var x=!X.tryToReprintComments(L,V,z);x&&X.deleteComments(V);var w=z(O.newPath,{includeComments:x,avoidRootParens:V.type===L.type&&O.oldPath.hasParens()}).indentTail(V.loc.indent),S=v(M,V.loc,w),T=E(M,V.loc,w);if(S||T){var C=[];S&&C.push(" "),C.push(w),T&&C.push(" "),w=n.concat(C)}X.replace(V.loc,w)});var P=X.get(R).indentTail(-I.loc.indent);return B.needsParens()?n.concat(["(",P,")"]):P}}}lr.getReprinter=d;function v(B,N,I){var R=f.copyPos(N.start),M=B.prevPos(R)&&B.charAt(R),$=I.charAt(I.firstPos());return M&&m.test(M)&&$&&m.test($)}function E(B,N,I){var R=B.charAt(N.end),M=I.lastPos(),$=I.prevPos(M)&&I.charAt(M);return $&&m.test($)&&R&&m.test(R)}function b(B,N){var I=B.getValue();l.assert(I);var R=I.original;if(l.assert(R),t.default.deepEqual(N,[]),I.type!==R.type)return!1;var M=new u.default(R),$=F(B,M,N);return $||(N.length=0),$}function A(B,N,I){var R=B.getValue(),M=N.getValue();return R===M?!0:p.check(R)?_(B,N,I):a.check(R)?D(B,N,I):!1}function _(B,N,I){var R=B.getValue(),M=N.getValue();if(R===M||B.valueIsDuplicate()||N.valueIsDuplicate())return!0;p.assert(R);var $=R.length;if(!(p.check(M)&&M.length===$))return!1;for(var z=0;z<$;++z){B.stack.push(z,R[z]),N.stack.push(z,M[z]);var X=A(B,N,I);if(B.stack.length-=2,N.stack.length-=2,!X)return!1}return!0}function D(B,N,I){var R=B.getValue();if(a.assert(R),R.original===null)return!1;var M=N.getValue();if(!a.check(M))return!1;if(R===M||B.valueIsDuplicate()||N.valueIsDuplicate())return!0;if(l.check(R)){if(!l.check(M))return!1;var $=B.getParentNode(),z=N.getParentNode();if(z!==null&&z.type==="FunctionTypeAnnotation"&&$!==null&&$.type==="FunctionTypeAnnotation"){var X=z.params.length!==1||!!z.params[0].name,P=$.params.length!==1||!!$.params[0].name;if(!X&&P)return!1}if(R.type===M.type){var O=[];if(F(B,N,O))I.push.apply(I,O);else if(M.loc)I.push({oldPath:N.copy(),newPath:B.copy()});else return!1;return!0}return o.check(R)&&o.check(M)&&M.loc?(I.push({oldPath:N.copy(),newPath:B.copy()}),!0):!1}return F(B,N,I)}function F(B,N,I){var R=B.getValue(),M=N.getValue();if(a.assert(R),a.assert(M),R.original===null||B.needsParens()&&!N.hasParens())return!1;var $=f.getUnionOfKeys(M,R);(M.type==="File"||R.type==="File")&&delete $.tokens,delete $.loc;var z=I.length;for(var X in $)if(X.charAt(0)!=="_"){B.stack.push(X,r.getFieldValue(R,X)),N.stack.push(X,r.getFieldValue(M,X));var P=A(B,N,I);if(B.stack.length-=2,N.stack.length-=2,!P)return!1}return!(y.check(B.getNode())&&I.length>z)}return lr}var $u;function Gp(){if($u)return Yr;$u=1,Object.defineProperty(Yr,"__esModule",{value:!0}),Yr.Printer=void 0;var e=yt,t=e.__importDefault(_t()),n=Lc(),r=Bi(),l=ys(),o=Hp(),y=e.__importStar(ir()),h=y.namedTypes,f=y.builtInTypes.string,u=y.builtInTypes.object,a=e.__importDefault(Rc()),p=e.__importStar(qt()),g=function x(w,S){t.default.ok(this instanceof x),f.assert(w),this.code=w,S&&(u.assert(S),this.map=S)},m=g.prototype,c=!1;m.toString=function(){return c||(console.warn("Deprecation warning: recast.print now returns an object with a .code property. You appear to be treating the object as a string, which might still work but is strongly discouraged."),c=!0),this.code};var i=new g(""),s=function x(w){t.default.ok(this instanceof x);var S=w&&w.tabWidth;w=l.normalize(w),w.sourceFileName=null;function T(j,U){return j=Object.assign({},j,U),function(H){return C(H,j)}}function C(j,U){if(t.default.ok(j instanceof a.default),U=U||{},U.includeComments)return n.printComments(j,T(U,{includeComments:!1}));var H=w.tabWidth;if(!S){var G=j.getNode().loc;G&&G.lines&&G.lines.guessTabWidth&&(w.tabWidth=G.lines.guessTabWidth())}var ee=o.getReprinter(j),se=ee?ee(C):d(j,w,U,T(U,{includeComments:!0,avoidRootParens:!1}));return w.tabWidth=H,se}this.print=function(j){if(!j)return i;var U=C(a.default.from(j),{includeComments:!0,avoidRootParens:!1});return new g(U.toString(w),p.composeSourceMaps(w.inputSourceMap,U.getSourceMap(w.sourceMapName,w.sourceRoot)))},this.printGenerically=function(j){if(!j)return i;function U(se){return n.printComments(se,function(pe){return d(pe,w,{includeComments:!0,avoidRootParens:!1},U)})}var H=a.default.from(j),G=w.reuseWhitespace;w.reuseWhitespace=!1;var ee=new g(U(H).toString(w));return w.reuseWhitespace=G,ee}};Yr.Printer=s;function d(x,w,S,T){t.default.ok(x instanceof a.default);var C=x.getValue(),j=[],U=v(x,w,T);if(!C||U.isEmpty())return U;var H=!1,G=E(x,T);return G.isEmpty()?S.avoidRootParens||(H=x.needsParens()):j.push(G),H&&j.unshift("("),j.push(U),H&&j.push(")"),r.concat(j)}function v(x,w,S){var T=x.getValue();if(!T)return r.fromString("");if(typeof T=="string")return r.fromString(T,w);h.Printable.assert(T);var C=[];switch(T.type){case"File":return x.call(S,"program");case"Program":return T.directives&&x.each(function(we){C.push(S(we),`;
`)},"directives"),T.interpreter&&C.push(x.call(S,"interpreter")),C.push(x.call(function(we){return b(we,w,S)},"body")),r.concat(C);case"Noop":case"EmptyStatement":return r.fromString("");case"ExpressionStatement":return r.concat([x.call(S,"expression"),";"]);case"ParenthesizedExpression":return r.concat(["(",x.call(S,"expression"),")"]);case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":return r.fromString(" ").join([x.call(S,"left"),T.operator,x.call(S,"right")]);case"AssignmentPattern":return r.concat([x.call(S,"left")," = ",x.call(S,"right")]);case"MemberExpression":case"OptionalMemberExpression":{C.push(x.call(S,"object"));var j=x.call(S,"property"),U=y.getFieldValue(T,"optional");return T.computed?C.push(U?"?.[":"[",j,"]"):C.push(U?"?.":".",j),r.concat(C)}case"ChainExpression":return x.call(S,"expression");case"MetaProperty":return r.concat([x.call(S,"meta"),".",x.call(S,"property")]);case"BindExpression":return T.object&&C.push(x.call(S,"object")),C.push("::",x.call(S,"callee")),r.concat(C);case"Path":return r.fromString(".").join(T.body);case"Identifier":return r.concat([r.fromString(T.name,w),T.optional?"?":"",x.call(S,"typeAnnotation")]);case"SpreadElement":case"SpreadElementPattern":case"RestProperty":case"SpreadProperty":case"SpreadPropertyPattern":case"ObjectTypeSpreadProperty":case"RestElement":return r.concat(["...",x.call(S,"argument"),x.call(S,"typeAnnotation")]);case"FunctionDeclaration":case"FunctionExpression":case"TSDeclareFunction":return T.declare&&C.push("declare "),T.async&&C.push("async "),C.push("function"),T.generator&&C.push("*"),T.id?C.push(" ",x.call(S,"id"),x.call(S,"typeParameters")):T.typeParameters&&C.push(x.call(S,"typeParameters")),C.push("(",F(x,w,S),")",x.call(S,"returnType")),T.body&&C.push(" ",x.call(S,"body")),r.concat(C);case"ArrowFunctionExpression":return T.async&&C.push("async "),T.typeParameters&&C.push(x.call(S,"typeParameters")),!w.arrowParensAlways&&T.params.length===1&&!T.rest&&T.params[0].type==="Identifier"&&!T.params[0].typeAnnotation&&!T.returnType?C.push(x.call(S,"params",0)):C.push("(",F(x,w,S),")",x.call(S,"returnType")),C.push(" => ",x.call(S,"body")),r.concat(C);case"MethodDefinition":return _(x,w,S);case"YieldExpression":return C.push("yield"),T.delegate&&C.push("*"),T.argument&&C.push(" ",x.call(S,"argument")),r.concat(C);case"AwaitExpression":return C.push("await"),T.all&&C.push("*"),T.argument&&C.push(" ",x.call(S,"argument")),r.concat(C);case"ModuleExpression":return r.concat([`module {
`,x.call(S,"body").indent(w.tabWidth),`
}`]);case"ModuleDeclaration":return C.push("module",x.call(S,"id")),T.source?(t.default.ok(!T.body),C.push("from",x.call(S,"source"))):C.push(x.call(S,"body")),r.fromString(" ").join(C);case"ImportSpecifier":return T.importKind&&T.importKind!=="value"&&C.push(T.importKind+" "),T.imported?(C.push(x.call(S,"imported")),T.local&&T.local.name!==T.imported.name&&C.push(" as ",x.call(S,"local"))):T.id&&(C.push(x.call(S,"id")),T.name&&C.push(" as ",x.call(S,"name"))),r.concat(C);case"ExportSpecifier":return T.local?(C.push(x.call(S,"local")),T.exported&&T.exported.name!==T.local.name&&C.push(" as ",x.call(S,"exported"))):T.id&&(C.push(x.call(S,"id")),T.name&&C.push(" as ",x.call(S,"name"))),r.concat(C);case"ExportBatchSpecifier":return r.fromString("*");case"ImportNamespaceSpecifier":return C.push("* as "),T.local?C.push(x.call(S,"local")):T.id&&C.push(x.call(S,"id")),r.concat(C);case"ImportDefaultSpecifier":return T.local?x.call(S,"local"):x.call(S,"id");case"TSExportAssignment":return r.concat(["export = ",x.call(S,"expression")]);case"ExportDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":return N(x,w,S);case"ExportAllDeclaration":return C.push("export *"),T.exported&&C.push(" as ",x.call(S,"exported")),C.push(" from ",x.call(S,"source"),";"),r.concat(C);case"TSNamespaceExportDeclaration":return C.push("export as namespace ",x.call(S,"id")),V(r.concat(C));case"ExportNamespaceSpecifier":return r.concat(["* as ",x.call(S,"exported")]);case"ExportDefaultSpecifier":return x.call(S,"exported");case"Import":return r.fromString("import",w);case"ImportExpression":return r.concat(["import(",x.call(S,"source"),")"]);case"ImportDeclaration":{if(C.push("import "),T.importKind&&T.importKind!=="value"&&C.push(T.importKind+" "),T.specifiers&&T.specifiers.length>0){var H=[],G=[];if(x.each(function(we){var Oe=we.getValue();Oe.type==="ImportSpecifier"?G.push(S(we)):(Oe.type==="ImportDefaultSpecifier"||Oe.type==="ImportNamespaceSpecifier")&&H.push(S(we))},"specifiers"),H.forEach(function(we,Oe){Oe>0&&C.push(", "),C.push(we)}),G.length>0){var ee=r.fromString(", ").join(G);ee.getLineLength(1)>w.wrapColumn&&(ee=r.concat([r.fromString(`,
`).join(G).indent(w.tabWidth),","])),H.length>0&&C.push(", "),ee.length>1?C.push(`{
`,ee,`
}`):w.objectCurlySpacing?C.push("{ ",ee," }"):C.push("{",ee,"}")}C.push(" from ")}return C.push(x.call(S,"source"),B(x,w,S),";"),r.concat(C)}case"ImportAttribute":return r.concat([x.call(S,"key"),": ",x.call(S,"value")]);case"StaticBlock":C.push("static ");case"BlockStatement":{var se=x.call(function(we){return b(we,w,S)},"body");return se.isEmpty()&&(!T.directives||T.directives.length===0)?(C.push("{}"),r.concat(C)):(C.push(`{
`),T.directives&&x.each(function(we){C.push(V(S(we).indent(w.tabWidth)),T.directives.length>1||!se.isEmpty()?`
`:"")},"directives"),C.push(se.indent(w.tabWidth)),C.push(`
}`),r.concat(C))}case"ReturnStatement":{if(C.push("return"),T.argument){var pe=x.call(S,"argument");pe.startsWithComment()||pe.length>1&&h.JSXElement&&h.JSXElement.check(T.argument)?C.push(` (
`,pe.indent(w.tabWidth),`
)`):C.push(" ",pe)}return C.push(";"),r.concat(C)}case"CallExpression":case"OptionalCallExpression":return C.push(x.call(S,"callee")),T.typeParameters&&C.push(x.call(S,"typeParameters")),T.typeArguments&&C.push(x.call(S,"typeArguments")),y.getFieldValue(T,"optional")&&C.push("?."),C.push(D(x,w,S)),r.concat(C);case"RecordExpression":C.push("#");case"ObjectExpression":case"ObjectPattern":case"ObjectTypeAnnotation":{var he=T.type==="ObjectTypeAnnotation",Q=w.flowObjectCommas?",":he?";":",",ie=[],ae=!1;he&&(ie.push("indexers","callProperties"),T.internalSlots!=null&&ie.push("internalSlots")),ie.push("properties");var ue=0;ie.forEach(function(we){ue+=T[we].length});var de=he&&ue===1||ue===0,W=T.exact?"{|":"{",be=T.exact?"|}":"}";C.push(de?W:W+`
`);var _e=C.length-1,q=0;if(ie.forEach(function(we){x.each(function(Oe){var Et=S(Oe);de||(Et=Et.indent(w.tabWidth));var It=!he&&Et.length>1;It&&ae&&C.push(`
`),C.push(Et),q<ue-1?(C.push(Q+(It?`

`:`
`)),ae=!It):(ue!==1&&he||!de&&p.isTrailingCommaEnabled(w,"objects")&&Oe.getValue().type!=="RestElement")&&C.push(Q),q++},we)}),T.inexact){var J=r.fromString("...",w);de?(ue>0&&C.push(Q," "),C.push(J)):C.push(`
`,J.indent(w.tabWidth))}return C.push(de?be:`
`+be),q!==0&&de&&w.objectCurlySpacing&&(C[_e]=W+" ",C[C.length-1]=" "+be),T.typeAnnotation&&C.push(x.call(S,"typeAnnotation")),r.concat(C)}case"PropertyPattern":return r.concat([x.call(S,"key"),": ",x.call(S,"pattern")]);case"ObjectProperty":case"Property":{if(T.method||T.kind==="get"||T.kind==="set")return _(x,w,S);if(T.shorthand&&T.value.type==="AssignmentPattern")return x.call(S,"value");var re=x.call(S,"key");return T.computed?C.push("[",re,"]"):C.push(re),(!T.shorthand||T.key.name!==T.value.name)&&C.push(": ",x.call(S,"value")),r.concat(C)}case"ClassMethod":case"ObjectMethod":case"ClassPrivateMethod":case"TSDeclareMethod":return _(x,w,S);case"PrivateName":return r.concat(["#",x.call(S,"id")]);case"Decorator":return r.concat(["@",x.call(S,"expression")]);case"TupleExpression":C.push("#");case"ArrayExpression":case"ArrayPattern":{var le=T.elements,ce=le.length,ge=x.map(S,"elements"),me=r.fromString(", ").join(ge),Ce=me.getLineLength(1)<=w.wrapColumn;return Ce?w.arrayBracketSpacing?C.push("[ "):C.push("["):C.push(`[
`),x.each(function(we){var Oe=we.getName(),Et=we.getValue();if(!Et)C.push(",");else{var It=ge[Oe];Ce?Oe>0&&C.push(" "):It=It.indent(w.tabWidth),C.push(It),(Oe<ce-1||!Ce&&p.isTrailingCommaEnabled(w,"arrays"))&&C.push(","),Ce||C.push(`
`)}},"elements"),Ce&&w.arrayBracketSpacing?C.push(" ]"):C.push("]"),T.typeAnnotation&&C.push(x.call(S,"typeAnnotation")),r.concat(C)}case"SequenceExpression":return r.fromString(", ").join(x.map(S,"expressions"));case"ThisExpression":return r.fromString("this");case"Super":return r.fromString("super");case"NullLiteral":return r.fromString("null");case"RegExpLiteral":return r.fromString(P(T)||"/"+T.pattern+"/"+(T.flags||""),w);case"BigIntLiteral":return r.fromString(P(T)||T.value+"n",w);case"NumericLiteral":return r.fromString(P(T)||T.value,w);case"DecimalLiteral":return r.fromString(P(T)||T.value+"m",w);case"StringLiteral":return r.fromString(L(T.value,w));case"BooleanLiteral":case"Literal":return r.fromString(P(T)||(typeof T.value=="string"?L(T.value,w):T.value),w);case"Directive":return x.call(S,"value");case"DirectiveLiteral":return r.fromString(P(T)||L(T.value,w),w);case"InterpreterDirective":return r.fromString("#!"+T.value+`
`,w);case"ModuleSpecifier":if(T.local)throw new Error("The ESTree ModuleSpecifier type should be abstract");return r.fromString(L(T.value,w),w);case"UnaryExpression":return C.push(T.operator),/[a-z]$/.test(T.operator)&&C.push(" "),C.push(x.call(S,"argument")),r.concat(C);case"UpdateExpression":return C.push(x.call(S,"argument"),T.operator),T.prefix&&C.reverse(),r.concat(C);case"ConditionalExpression":return r.concat([x.call(S,"test")," ? ",x.call(S,"consequent")," : ",x.call(S,"alternate")]);case"NewExpression":{C.push("new ",x.call(S,"callee")),T.typeParameters&&C.push(x.call(S,"typeParameters")),T.typeArguments&&C.push(x.call(S,"typeArguments"));var De=T.arguments;return De&&C.push(D(x,w,S)),r.concat(C)}case"VariableDeclaration":{T.declare&&C.push("declare "),C.push(T.kind," ");var Ue=0,Xe=x.map(function(we){var Oe=S(we);return Ue=Math.max(Oe.length,Ue),Oe},"declarations");Ue===1?C.push(r.fromString(", ").join(Xe)):Xe.length>1?C.push(r.fromString(`,
`).join(Xe).indentTail(T.kind.length+1)):C.push(Xe[0]);var it=x.getParentNode();return!h.ForStatement.check(it)&&!h.ForInStatement.check(it)&&!(h.ForOfStatement&&h.ForOfStatement.check(it))&&!(h.ForAwaitStatement&&h.ForAwaitStatement.check(it))&&C.push(";"),r.concat(C)}case"VariableDeclarator":return T.init?r.fromString(" = ").join([x.call(S,"id"),x.call(S,"init")]):x.call(S,"id");case"WithStatement":return r.concat(["with (",x.call(S,"object"),") ",x.call(S,"body")]);case"IfStatement":{var dt=M(x.call(S,"consequent"),w);return C.push("if (",x.call(S,"test"),")",dt),T.alternate&&C.push(z(dt)?" else":`
else`,M(x.call(S,"alternate"),w)),r.concat(C)}case"ForStatement":{var bt=x.call(S,"init"),St=bt.length>1?`;
`:"; ",xr="for (",Ui=r.fromString(St).join([bt,x.call(S,"test"),x.call(S,"update")]).indentTail(xr.length),Qn=r.concat([xr,Ui,")"]),zr=M(x.call(S,"body"),w);return C.push(Qn),Qn.length>1&&(C.push(`
`),zr=zr.trimLeft()),C.push(zr),r.concat(C)}case"WhileStatement":return r.concat(["while (",x.call(S,"test"),")",M(x.call(S,"body"),w)]);case"ForInStatement":return r.concat([T.each?"for each (":"for (",x.call(S,"left")," in ",x.call(S,"right"),")",M(x.call(S,"body"),w)]);case"ForOfStatement":case"ForAwaitStatement":return C.push("for "),(T.await||T.type==="ForAwaitStatement")&&C.push("await "),C.push("(",x.call(S,"left")," of ",x.call(S,"right"),")",M(x.call(S,"body"),w)),r.concat(C);case"DoWhileStatement":{var Zn=r.concat(["do",M(x.call(S,"body"),w)]);return C.push(Zn),z(Zn)?C.push(" while"):C.push(`
while`),C.push(" (",x.call(S,"test"),");"),r.concat(C)}case"DoExpression":{var K=x.call(function(we){return b(we,w,S)},"body");return r.concat([`do {
`,K.indent(w.tabWidth),`
}`])}case"BreakStatement":return C.push("break"),T.label&&C.push(" ",x.call(S,"label")),C.push(";"),r.concat(C);case"ContinueStatement":return C.push("continue"),T.label&&C.push(" ",x.call(S,"label")),C.push(";"),r.concat(C);case"LabeledStatement":return r.concat([x.call(S,"label"),`:
`,x.call(S,"body")]);case"TryStatement":return C.push("try ",x.call(S,"block")),T.handler?C.push(" ",x.call(S,"handler")):T.handlers&&x.each(function(we){C.push(" ",S(we))},"handlers"),T.finalizer&&C.push(" finally ",x.call(S,"finalizer")),r.concat(C);case"CatchClause":return C.push("catch "),T.param&&C.push("(",x.call(S,"param")),T.guard&&C.push(" if ",x.call(S,"guard")),T.param&&C.push(") "),C.push(x.call(S,"body")),r.concat(C);case"ThrowStatement":return r.concat(["throw ",x.call(S,"argument"),";"]);case"SwitchStatement":return r.concat(["switch (",x.call(S,"discriminant"),`) {
`,r.fromString(`
`).join(x.map(S,"cases")),`
}`]);case"SwitchCase":return T.test?C.push("case ",x.call(S,"test"),":"):C.push("default:"),T.consequent.length>0&&C.push(`
`,x.call(function(we){return b(we,w,S)},"consequent").indent(w.tabWidth)),r.concat(C);case"DebuggerStatement":return r.fromString("debugger;");case"JSXAttribute":return C.push(x.call(S,"name")),T.value&&C.push("=",x.call(S,"value")),r.concat(C);case"JSXIdentifier":return r.fromString(T.name,w);case"JSXNamespacedName":return r.fromString(":").join([x.call(S,"namespace"),x.call(S,"name")]);case"JSXMemberExpression":return r.fromString(".").join([x.call(S,"object"),x.call(S,"property")]);case"JSXSpreadAttribute":return r.concat(["{...",x.call(S,"argument"),"}"]);case"JSXSpreadChild":return r.concat(["{...",x.call(S,"expression"),"}"]);case"JSXExpressionContainer":return r.concat(["{",x.call(S,"expression"),"}"]);case"JSXElement":case"JSXFragment":{var Y="opening"+(T.type==="JSXElement"?"Element":"Fragment"),ne="closing"+(T.type==="JSXElement"?"Element":"Fragment"),Ee=x.call(S,Y);if(T[Y].selfClosing)return t.default.ok(!T[ne],"unexpected "+ne+" element in self-closing "+T.type),Ee;var Ge=r.concat(x.map(function(we){var Oe=we.getValue();if(h.Literal.check(Oe)&&typeof Oe.value=="string"){if(/\S/.test(Oe.value))return Oe.value.replace(/^\s+|\s+$/g,"");if(/\n/.test(Oe.value))return`
`}return S(we)},"children")).indentTail(w.tabWidth),qr=x.call(S,ne);return r.concat([Ee,Ge,qr])}case"JSXOpeningElement":{C.push("<",x.call(S,"name"));var or=[];x.each(function(we){or.push(" ",S(we))},"attributes");var ei=r.concat(or),rd=ei.length>1||ei.getLineLength(1)>w.wrapColumn;return rd&&(or.forEach(function(we,Oe){we===" "&&(t.default.strictEqual(Oe%2,0),or[Oe]=`
`)}),ei=r.concat(or).indentTail(w.tabWidth)),C.push(ei,T.selfClosing?" />":">"),r.concat(C)}case"JSXClosingElement":return r.concat(["</",x.call(S,"name"),">"]);case"JSXOpeningFragment":return r.fromString("<>");case"JSXClosingFragment":return r.fromString("</>");case"JSXText":return r.fromString(T.value,w);case"JSXEmptyExpression":return r.fromString("");case"TypeAnnotatedIdentifier":return r.concat([x.call(S,"annotation")," ",x.call(S,"identifier")]);case"ClassBody":return T.body.length===0?r.fromString("{}"):r.concat([`{
`,x.call(function(we){return b(we,w,S)},"body").indent(w.tabWidth),`
}`]);case"ClassPropertyDefinition":return C.push("static ",x.call(S,"definition")),h.MethodDefinition.check(T.definition)||C.push(";"),r.concat(C);case"ClassProperty":{T.declare&&C.push("declare ");var Us=T.accessibility||T.access;typeof Us=="string"&&C.push(Us," "),T.static&&C.push("static "),T.abstract&&C.push("abstract "),T.readonly&&C.push("readonly ");var re=x.call(S,"key");return T.computed&&(re=r.concat(["[",re,"]"])),T.variance&&(re=r.concat([R(x,S),re])),C.push(re),T.optional&&C.push("?"),T.definite&&C.push("!"),T.typeAnnotation&&C.push(x.call(S,"typeAnnotation")),T.value&&C.push(" = ",x.call(S,"value")),C.push(";"),r.concat(C)}case"ClassPrivateProperty":return T.static&&C.push("static "),C.push(x.call(S,"key")),T.typeAnnotation&&C.push(x.call(S,"typeAnnotation")),T.value&&C.push(" = ",x.call(S,"value")),C.push(";"),r.concat(C);case"ClassDeclaration":case"ClassExpression":case"DeclareClass":return T.declare&&C.push("declare "),T.abstract&&C.push("abstract "),C.push("class"),T.id&&C.push(" ",x.call(S,"id")),T.typeParameters&&C.push(x.call(S,"typeParameters")),T.superClass&&C.push(" extends ",x.call(S,"superClass"),x.call(S,"superTypeParameters")),T.extends&&T.extends.length>0&&C.push(" extends ",r.fromString(", ").join(x.map(S,"extends"))),T.implements&&T.implements.length>0&&C.push(" implements ",r.fromString(", ").join(x.map(S,"implements"))),C.push(" ",x.call(S,"body")),T.type==="DeclareClass"?I(x,C):r.concat(C);case"TemplateElement":return r.fromString(T.value.raw,w).lockIndentTail();case"TemplateLiteral":{var Xs=x.map(S,"expressions");return C.push("`"),x.each(function(we){var Oe=we.getName();C.push(S(we)),Oe<Xs.length&&C.push("${",Xs[Oe],"}")},"quasis"),C.push("`"),r.concat(C).lockIndentTail()}case"TaggedTemplateExpression":return r.concat([x.call(S,"tag"),x.call(S,"quasi")]);case"Node":case"Printable":case"SourceLocation":case"Position":case"Statement":case"Function":case"Pattern":case"Expression":case"Declaration":case"Specifier":case"NamedSpecifier":case"Comment":case"Flow":case"FlowType":case"FlowPredicate":case"MemberTypeAnnotation":case"Type":case"TSHasOptionalTypeParameterInstantiation":case"TSHasOptionalTypeParameters":case"TSHasOptionalTypeAnnotation":case"ChainElement":throw new Error("unprintable type: "+JSON.stringify(T.type));case"CommentBlock":case"Block":return r.concat(["/*",r.fromString(T.value,w),"*/"]);case"CommentLine":case"Line":return r.concat(["//",r.fromString(T.value,w)]);case"TypeAnnotation":return T.typeAnnotation?(T.typeAnnotation.type!=="FunctionTypeAnnotation"&&C.push(": "),C.push(x.call(S,"typeAnnotation")),r.concat(C)):r.fromString("");case"ExistentialTypeParam":case"ExistsTypeAnnotation":return r.fromString("*",w);case"EmptyTypeAnnotation":return r.fromString("empty",w);case"AnyTypeAnnotation":return r.fromString("any",w);case"MixedTypeAnnotation":return r.fromString("mixed",w);case"ArrayTypeAnnotation":return r.concat([x.call(S,"elementType"),"[]"]);case"TupleTypeAnnotation":{var Js=x.map(S,"types"),me=r.fromString(", ").join(Js),Ur=me.getLineLength(1)<=w.wrapColumn;return Ur?w.arrayBracketSpacing?C.push("[ "):C.push("["):C.push(`[
`),x.each(function(Oe){var Et=Oe.getName(),It=Oe.getValue();if(!It)C.push(",");else{var Xi=Js[Et];Ur?Et>0&&C.push(" "):Xi=Xi.indent(w.tabWidth),C.push(Xi),(Et<T.types.length-1||!Ur&&p.isTrailingCommaEnabled(w,"arrays"))&&C.push(","),Ur||C.push(`
`)}},"types"),Ur&&w.arrayBracketSpacing?C.push(" ]"):C.push("]"),r.concat(C)}case"BooleanTypeAnnotation":return r.fromString("boolean",w);case"BooleanLiteralTypeAnnotation":return t.default.strictEqual(typeof T.value,"boolean"),r.fromString(""+T.value,w);case"InterfaceTypeAnnotation":return C.push("interface"),T.extends&&T.extends.length>0&&C.push(" extends ",r.fromString(", ").join(x.map(S,"extends"))),C.push(" ",x.call(S,"body")),r.concat(C);case"DeclareFunction":return I(x,["function ",x.call(S,"id"),";"]);case"DeclareModule":return I(x,["module ",x.call(S,"id")," ",x.call(S,"body")]);case"DeclareModuleExports":return I(x,["module.exports",x.call(S,"typeAnnotation")]);case"DeclareVariable":return I(x,["var ",x.call(S,"id"),";"]);case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":return r.concat(["declare ",N(x,w,S)]);case"EnumDeclaration":return r.concat(["enum ",x.call(S,"id"),x.call(S,"body")]);case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":return(T.type==="EnumSymbolBody"||T.explicitType)&&C.push(" of ",T.type.slice(4,-4).toLowerCase()),C.push(` {
`,r.fromString(`
`).join(x.map(S,"members")).indent(w.tabWidth),`
}`),r.concat(C);case"EnumDefaultedMember":return r.concat([x.call(S,"id"),","]);case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":return r.concat([x.call(S,"id")," = ",x.call(S,"init"),","]);case"InferredPredicate":return r.fromString("%checks",w);case"DeclaredPredicate":return r.concat(["%checks(",x.call(S,"value"),")"]);case"FunctionTypeAnnotation":{var Ot=x.getParentNode(0),Ws=!(h.ObjectTypeCallProperty.check(Ot)||h.ObjectTypeInternalSlot.check(Ot)&&Ot.method||h.DeclareFunction.check(x.getParentNode(2))),nd=Ws&&!h.FunctionTypeParam.check(Ot)&&!h.TypeAlias.check(Ot);nd&&C.push(": ");var Hs=!!T.typeParameters,Gs=Hs||T.params.length!==1||T.params[0].name;return C.push(Hs?x.call(S,"typeParameters"):"",Gs?"(":"",F(x,w,S),Gs?")":""),T.returnType&&C.push(Ws?" => ":": ",x.call(S,"returnType")),r.concat(C)}case"FunctionTypeParam":{var Ks=x.call(S,"name");return C.push(Ks),T.optional&&C.push("?"),Ks.infos[0].line&&C.push(": "),C.push(x.call(S,"typeAnnotation")),r.concat(C)}case"GenericTypeAnnotation":return r.concat([x.call(S,"id"),x.call(S,"typeParameters")]);case"DeclareInterface":C.push("declare ");case"InterfaceDeclaration":case"TSInterfaceDeclaration":return T.declare&&C.push("declare "),C.push("interface ",x.call(S,"id"),x.call(S,"typeParameters")," "),T.extends&&T.extends.length>0&&C.push("extends ",r.fromString(", ").join(x.map(S,"extends"))," "),T.body&&C.push(x.call(S,"body")),r.concat(C);case"ClassImplements":case"InterfaceExtends":return r.concat([x.call(S,"id"),x.call(S,"typeParameters")]);case"IntersectionTypeAnnotation":return r.fromString(" & ").join(x.map(S,"types"));case"NullableTypeAnnotation":return r.concat(["?",x.call(S,"typeAnnotation")]);case"NullLiteralTypeAnnotation":return r.fromString("null",w);case"ThisTypeAnnotation":return r.fromString("this",w);case"NumberTypeAnnotation":return r.fromString("number",w);case"ObjectTypeCallProperty":return x.call(S,"value");case"ObjectTypeIndexer":return T.static&&C.push("static "),C.push(R(x,S),"["),T.id&&C.push(x.call(S,"id"),": "),C.push(x.call(S,"key"),"]: ",x.call(S,"value")),r.concat(C);case"ObjectTypeProperty":return r.concat([R(x,S),x.call(S,"key"),T.optional?"?":"",": ",x.call(S,"value")]);case"ObjectTypeInternalSlot":return r.concat([T.static?"static ":"","[[",x.call(S,"id"),"]]",T.optional?"?":"",T.value.type!=="FunctionTypeAnnotation"?": ":"",x.call(S,"value")]);case"QualifiedTypeIdentifier":return r.concat([x.call(S,"qualification"),".",x.call(S,"id")]);case"StringLiteralTypeAnnotation":return r.fromString(L(T.value,w),w);case"NumberLiteralTypeAnnotation":case"NumericLiteralTypeAnnotation":return t.default.strictEqual(typeof T.value,"number"),r.fromString(JSON.stringify(T.value),w);case"BigIntLiteralTypeAnnotation":return r.fromString(T.raw,w);case"StringTypeAnnotation":return r.fromString("string",w);case"DeclareTypeAlias":C.push("declare ");case"TypeAlias":return r.concat(["type ",x.call(S,"id"),x.call(S,"typeParameters")," = ",x.call(S,"right"),";"]);case"DeclareOpaqueType":C.push("declare ");case"OpaqueType":return C.push("opaque type ",x.call(S,"id"),x.call(S,"typeParameters")),T.supertype&&C.push(": ",x.call(S,"supertype")),T.impltype&&C.push(" = ",x.call(S,"impltype")),C.push(";"),r.concat(C);case"TypeCastExpression":return r.concat(["(",x.call(S,"expression"),x.call(S,"typeAnnotation"),")"]);case"TypeParameterDeclaration":case"TypeParameterInstantiation":return r.concat(["<",r.fromString(", ").join(x.map(S,"params")),">"]);case"Variance":return T.kind==="plus"?r.fromString("+"):T.kind==="minus"?r.fromString("-"):r.fromString("");case"TypeParameter":return T.variance&&C.push(R(x,S)),C.push(x.call(S,"name")),T.bound&&C.push(x.call(S,"bound")),T.default&&C.push("=",x.call(S,"default")),r.concat(C);case"TypeofTypeAnnotation":return r.concat([r.fromString("typeof ",w),x.call(S,"argument")]);case"IndexedAccessType":case"OptionalIndexedAccessType":return r.concat([x.call(S,"objectType"),T.optional?"?.":"","[",x.call(S,"indexType"),"]"]);case"UnionTypeAnnotation":return r.fromString(" | ").join(x.map(S,"types"));case"VoidTypeAnnotation":return r.fromString("void",w);case"NullTypeAnnotation":return r.fromString("null",w);case"SymbolTypeAnnotation":return r.fromString("symbol",w);case"BigIntTypeAnnotation":return r.fromString("bigint",w);case"TSType":throw new Error("unprintable type: "+JSON.stringify(T.type));case"TSNumberKeyword":return r.fromString("number",w);case"TSBigIntKeyword":return r.fromString("bigint",w);case"TSObjectKeyword":return r.fromString("object",w);case"TSBooleanKeyword":return r.fromString("boolean",w);case"TSStringKeyword":return r.fromString("string",w);case"TSSymbolKeyword":return r.fromString("symbol",w);case"TSAnyKeyword":return r.fromString("any",w);case"TSVoidKeyword":return r.fromString("void",w);case"TSIntrinsicKeyword":return r.fromString("intrinsic",w);case"TSThisType":return r.fromString("this",w);case"TSNullKeyword":return r.fromString("null",w);case"TSUndefinedKeyword":return r.fromString("undefined",w);case"TSUnknownKeyword":return r.fromString("unknown",w);case"TSNeverKeyword":return r.fromString("never",w);case"TSArrayType":return r.concat([x.call(S,"elementType"),"[]"]);case"TSLiteralType":return x.call(S,"literal");case"TSUnionType":return r.fromString(" | ").join(x.map(S,"types"));case"TSIntersectionType":return r.fromString(" & ").join(x.map(S,"types"));case"TSConditionalType":return C.push(x.call(S,"checkType")," extends ",x.call(S,"extendsType")," ? ",x.call(S,"trueType")," : ",x.call(S,"falseType")),r.concat(C);case"TSInferType":return C.push("infer ",x.call(S,"typeParameter")),r.concat(C);case"TSParenthesizedType":return r.concat(["(",x.call(S,"typeAnnotation"),")"]);case"TSFunctionType":return r.concat([x.call(S,"typeParameters"),"(",F(x,w,S),") => ",x.call(S,"typeAnnotation","typeAnnotation")]);case"TSConstructorType":return r.concat(["new ",x.call(S,"typeParameters"),"(",F(x,w,S),") => ",x.call(S,"typeAnnotation","typeAnnotation")]);case"TSMappedType":return C.push(T.readonly?"readonly ":"","[",x.call(S,"typeParameter"),"]",T.optional?"?":""),T.typeAnnotation&&C.push(": ",x.call(S,"typeAnnotation"),";"),r.concat([`{
`,r.concat(C).indent(w.tabWidth),`
}`]);case"TSTupleType":return r.concat(["[",r.fromString(", ").join(x.map(S,"elementTypes")),"]"]);case"TSNamedTupleMember":return C.push(x.call(S,"label")),T.optional&&C.push("?"),C.push(": ",x.call(S,"elementType")),r.concat(C);case"TSRestType":return r.concat(["...",x.call(S,"typeAnnotation")]);case"TSOptionalType":return r.concat([x.call(S,"typeAnnotation"),"?"]);case"TSIndexedAccessType":return r.concat([x.call(S,"objectType"),"[",x.call(S,"indexType"),"]"]);case"TSTypeOperator":return r.concat([x.call(S,"operator")," ",x.call(S,"typeAnnotation")]);case"TSTypeLiteral":{var Xr=r.fromString(`
`).join(x.map(S,"members"));return Xr.isEmpty()?r.fromString("{}",w):(C.push(`{
`,Xr.indent(w.tabWidth),`
}`),r.concat(C))}case"TSEnumMember":return C.push(x.call(S,"id")),T.initializer&&C.push(" = ",x.call(S,"initializer")),r.concat(C);case"TSTypeQuery":return r.concat(["typeof ",x.call(S,"exprName")]);case"TSParameterProperty":return T.accessibility&&C.push(T.accessibility," "),T.export&&C.push("export "),T.static&&C.push("static "),T.readonly&&C.push("readonly "),C.push(x.call(S,"parameter")),r.concat(C);case"TSTypeReference":return r.concat([x.call(S,"typeName"),x.call(S,"typeParameters")]);case"TSQualifiedName":return r.concat([x.call(S,"left"),".",x.call(S,"right")]);case"TSAsExpression":{var id=x.call(S,"expression");return C.push(id,r.fromString(" as "),x.call(S,"typeAnnotation")),r.concat(C)}case"TSNonNullExpression":return r.concat([x.call(S,"expression"),"!"]);case"TSTypeAnnotation":return r.concat([": ",x.call(S,"typeAnnotation")]);case"TSIndexSignature":return r.concat([T.readonly?"readonly ":"","[",x.map(S,"parameters"),"]",x.call(S,"typeAnnotation")]);case"TSPropertySignature":return C.push(R(x,S),T.readonly?"readonly ":""),T.computed?C.push("[",x.call(S,"key"),"]"):C.push(x.call(S,"key")),C.push(T.optional?"?":"",x.call(S,"typeAnnotation")),r.concat(C);case"TSMethodSignature":return T.computed?C.push("[",x.call(S,"key"),"]"):C.push(x.call(S,"key")),T.optional&&C.push("?"),C.push(x.call(S,"typeParameters"),"(",F(x,w,S),")",x.call(S,"typeAnnotation")),r.concat(C);case"TSTypePredicate":return T.asserts&&C.push("asserts "),C.push(x.call(S,"parameterName")),T.typeAnnotation&&C.push(" is ",x.call(S,"typeAnnotation","typeAnnotation")),r.concat(C);case"TSCallSignatureDeclaration":return r.concat([x.call(S,"typeParameters"),"(",F(x,w,S),")",x.call(S,"typeAnnotation")]);case"TSConstructSignatureDeclaration":return T.typeParameters?C.push("new",x.call(S,"typeParameters")):C.push("new "),C.push("(",F(x,w,S),")",x.call(S,"typeAnnotation")),r.concat(C);case"TSTypeAliasDeclaration":return r.concat([T.declare?"declare ":"","type ",x.call(S,"id"),x.call(S,"typeParameters")," = ",x.call(S,"typeAnnotation"),";"]);case"TSTypeParameter":{C.push(x.call(S,"name"));var Ot=x.getParentNode(0),ad=h.TSMappedType.check(Ot);return T.constraint&&C.push(ad?" in ":" extends ",x.call(S,"constraint")),T.default&&C.push(" = ",x.call(S,"default")),r.concat(C)}case"TSTypeAssertion":return C.push("<",x.call(S,"typeAnnotation"),"> ",x.call(S,"expression")),r.concat(C);case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return r.concat(["<",r.fromString(", ").join(x.map(S,"params")),">"]);case"TSEnumDeclaration":{C.push(T.declare?"declare ":"",T.const?"const ":"","enum ",x.call(S,"id"));var Xr=r.fromString(`,
`).join(x.map(S,"members"));return Xr.isEmpty()?C.push(" {}"):C.push(` {
`,Xr.indent(w.tabWidth),`
}`),r.concat(C)}case"TSExpressionWithTypeArguments":return r.concat([x.call(S,"expression"),x.call(S,"typeParameters")]);case"TSInterfaceBody":{var ee=r.fromString(`
`).join(x.map(S,"body"));return ee.isEmpty()?r.fromString("{}",w):r.concat([`{
`,ee.indent(w.tabWidth),`
}`])}case"TSImportType":return C.push("import(",x.call(S,"argument"),")"),T.qualifier&&C.push(".",x.call(S,"qualifier")),T.typeParameters&&C.push(x.call(S,"typeParameters")),r.concat(C);case"TSImportEqualsDeclaration":return T.isExport&&C.push("export "),C.push("import ",x.call(S,"id")," = ",x.call(S,"moduleReference")),V(r.concat(C));case"TSExternalModuleReference":return r.concat(["require(",x.call(S,"expression"),")"]);case"TSModuleDeclaration":{var Ot=x.getParentNode();if(Ot.type==="TSModuleDeclaration")C.push(".");else if(T.declare&&C.push("declare "),!T.global){var sd=T.id.type==="StringLiteral"||T.id.type==="Literal"&&typeof T.id.value=="string";if(sd)C.push("module ");else if(T.loc&&T.loc.lines&&T.id.loc){var od=T.loc.lines.sliceString(T.loc.start,T.id.loc.start);od.indexOf("module")>=0?C.push("module "):C.push("namespace ")}else C.push("namespace ")}return C.push(x.call(S,"id")),T.body&&(C.push(" "),C.push(x.call(S,"body"))),r.concat(C)}case"TSModuleBlock":{var Ys=x.call(function(we){return b(we,w,S)},"body");return Ys.isEmpty()?C.push("{}"):C.push(`{
`,Ys.indent(w.tabWidth),`
}`),r.concat(C)}case"V8IntrinsicIdentifier":return r.concat(["%",x.call(S,"name")]);case"TopicReference":return r.fromString("#");case"ClassHeritage":case"ComprehensionBlock":case"ComprehensionExpression":case"Glob":case"GeneratorExpression":case"LetStatement":case"LetExpression":case"GraphExpression":case"GraphIndexExpression":case"XMLDefaultDeclaration":case"XMLAnyName":case"XMLQualifiedIdentifier":case"XMLFunctionQualifiedIdentifier":case"XMLAttributeSelector":case"XMLFilterExpression":case"XML":case"XMLElement":case"XMLList":case"XMLEscape":case"XMLText":case"XMLStartTag":case"XMLEndTag":case"XMLPointTag":case"XMLName":case"XMLAttribute":case"XMLCdata":case"XMLComment":case"XMLProcessingInstruction":default:debugger;throw new Error("unknown type: "+JSON.stringify(T.type))}}function E(x,w){var S=[],T=x.getValue();return T.decorators&&T.decorators.length>0&&!p.getParentExportDeclaration(x)?x.each(function(C){S.push(w(C),`
`)},"decorators"):p.isExportDeclaration(T)&&T.declaration&&T.declaration.decorators&&x.each(function(C){S.push(w(C),`
`)},"declaration","decorators"),r.concat(S)}function b(x,w,S){var T=[],C=!1,j=!1;x.each(function(ee){var se=ee.getValue();se&&(se.type==="EmptyStatement"&&!(se.comments&&se.comments.length>0)||(h.Comment.check(se)?C=!0:h.Statement.check(se)?j=!0:f.assert(se),T.push({node:se,printed:S(ee)})))}),C&&t.default.strictEqual(j,!1,"Comments may appear as statements in otherwise empty statement lists, but may not coexist with non-Comment nodes.");var U=null,H=T.length,G=[];return T.forEach(function(ee,se){var pe=ee.printed,he=ee.node,Q=pe.length>1,ie=se>0,ae=se<H-1,ue,de,W=he&&he.loc&&he.loc.lines,be=W&&w.reuseWhitespace&&p.getTrueLoc(he,W);if(ie)if(be){var _e=W.skipSpaces(be.start,!0),q=_e?_e.line:1,J=be.start.line-q;ue=Array(J+1).join(`
`)}else ue=Q?`

`:`
`;else ue="";if(ae)if(be){var re=W.skipSpaces(be.end),le=re?re.line:W.length,ce=le-be.end.line;de=Array(ce+1).join(`
`)}else de=Q?`

`:`
`;else de="";G.push(A(U,ue),pe),ae?U=de:de&&G.push(de)}),r.concat(G)}function A(x,w){if(!x&&!w)return r.fromString("");if(!x)return r.fromString(w);if(!w)return r.fromString(x);var S=r.fromString(x),T=r.fromString(w);return T.length>S.length?T:S}function _(x,w,S){var T=x.getNode(),C=T.kind,j=[],U=T.value;h.FunctionExpression.check(U)||(U=T);var H=T.accessibility||T.access;typeof H=="string"&&j.push(H," "),T.static&&j.push("static "),T.abstract&&j.push("abstract "),T.override&&j.push("override "),T.readonly&&j.push("readonly "),U.async&&j.push("async "),U.generator&&j.push("*"),(C==="get"||C==="set")&&j.push(C," ");var G=x.call(S,"key");return T.computed&&(G=r.concat(["[",G,"]"])),j.push(G),T.optional&&j.push("?"),T===U?(j.push(x.call(S,"typeParameters"),"(",F(x,w,S),")",x.call(S,"returnType")),T.body?j.push(" ",x.call(S,"body")):j.push(";")):(j.push(x.call(S,"value","typeParameters"),"(",x.call(function(ee){return F(ee,w,S)},"value"),")",x.call(S,"value","returnType")),U.body?j.push(" ",x.call(S,"value","body")):j.push(";")),r.concat(j)}function D(x,w,S){var T=x.map(S,"arguments"),C=p.isTrailingCommaEnabled(w,"parameters"),j=r.fromString(", ").join(T);return j.getLineLength(1)>w.wrapColumn?(j=r.fromString(`,
`).join(T),r.concat([`(
`,j.indent(w.tabWidth),C?`,
)`:`
)`])):r.concat(["(",j,")"])}function F(x,w,S){var T=x.getValue(),C,j=[];T.params?(C=T.params,j=x.map(S,"params")):T.parameters&&(C=T.parameters,j=x.map(S,"parameters")),T.defaults&&x.each(function(H){var G=H.getName(),ee=j[G];ee&&H.getValue()&&(j[G]=r.concat([ee," = ",S(H)]))},"defaults"),T.rest&&j.push(r.concat(["...",x.call(S,"rest")]));var U=r.fromString(", ").join(j);return U.length>1||U.getLineLength(1)>w.wrapColumn?(U=r.fromString(`,
`).join(j),p.isTrailingCommaEnabled(w,"parameters")&&!T.rest&&C[C.length-1].type!=="RestElement"?U=r.concat([U,`,
`]):U=r.concat([U,`
`]),r.concat([`
`,U.indent(w.tabWidth)])):U}function B(x,w,S){var T=x.getValue();if(T.assertions&&T.assertions.length>0){var C=[" assert {"],j=x.map(S,"assertions"),U=r.fromString(", ").join(j);return U.length>1||U.getLineLength(1)>w.wrapColumn?C.push(`
`,r.fromString(`,
`).join(j).indent(w.tabWidth),`
}`):C.push(" ",U," }"),r.concat(C)}return r.fromString("")}function N(x,w,S){var T=x.getValue(),C=["export "];T.exportKind&&T.exportKind==="type"&&(T.declaration||C.push("type "));var j=w.objectCurlySpacing;if(h.Declaration.assert(T),(T.default||T.type==="ExportDefaultDeclaration")&&C.push("default "),T.declaration)C.push(x.call(S,"declaration"));else if(T.specifiers){if(T.specifiers.length===1&&T.specifiers[0].type==="ExportBatchSpecifier")C.push("*");else if(T.specifiers.length===0)C.push("{}");else if(T.specifiers[0].type==="ExportDefaultSpecifier"){var U=[],H=[];if(x.each(function(se){var pe=se.getValue();pe.type==="ExportDefaultSpecifier"?U.push(S(se)):H.push(S(se))},"specifiers"),U.forEach(function(se,pe){pe>0&&C.push(", "),C.push(se)}),H.length>0){var G=r.fromString(", ").join(H);G.getLineLength(1)>w.wrapColumn&&(G=r.concat([r.fromString(`,
`).join(H).indent(w.tabWidth),","])),U.length>0&&C.push(", "),G.length>1?C.push(`{
`,G,`
}`):w.objectCurlySpacing?C.push("{ ",G," }"):C.push("{",G,"}")}}else C.push(j?"{ ":"{",r.fromString(", ").join(x.map(S,"specifiers")),j?" }":"}");T.source&&C.push(" from ",x.call(S,"source"),B(x,w,S))}var ee=r.concat(C);return $(ee)!==";"&&!(T.declaration&&(T.declaration.type==="FunctionDeclaration"||T.declaration.type==="ClassDeclaration"||T.declaration.type==="TSModuleDeclaration"||T.declaration.type==="TSInterfaceDeclaration"||T.declaration.type==="TSEnumDeclaration"))&&(ee=r.concat([ee,";"])),ee}function I(x,w){var S=p.getParentExportDeclaration(x);return S?t.default.strictEqual(S.type,"DeclareExportDeclaration"):w.unshift("declare "),r.concat(w)}function R(x,w){return x.call(function(S){var T=S.getValue();return T?T==="plus"?r.fromString("+"):T==="minus"?r.fromString("-"):w(S):r.fromString("")},"variance")}function M(x,w){return x.length>1?r.concat([" ",x]):r.concat([`
`,V(x).indent(w.tabWidth)])}function $(x){var w=x.lastPos();do{var S=x.charAt(w);if(/\S/.test(S))return S}while(x.prevPos(w))}function z(x){return $(x)==="}"}function X(x){return x.replace(/['"]/g,function(w){return w==='"'?"'":'"'})}function P(x){var w=y.getFieldValue(x,"value"),S=y.getFieldValue(x,"extra");if(S&&typeof S.raw=="string"&&w==S.rawValue)return S.raw;if(x.type==="Literal"){var T=x.raw;if(typeof T=="string"&&w==T)return T}}function O(x){return JSON.stringify(x).replace(/[\u2028\u2029]/g,function(w){return"\\u"+w.charCodeAt(0).toString(16)})}function L(x,w){switch(f.assert(x),w.quote){case"auto":{var S=O(x),T=X(O(X(x)));return S.length>T.length?T:S}case"single":return X(O(X(x)));case"double":default:return O(x)}}function V(x){var w=$(x);return!w||`
};`.indexOf(w)<0?r.concat([x,";"]):x}return Yr}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.run=e.prettyPrint=e.print=e.visit=e.types=e.parse=void 0;var t=yt,n=t.__importDefault(dc),r=t.__importStar(ir());e.types=r;var l=Wp();Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return l.parse}});var o=Gp(),y=ir();Object.defineProperty(e,"visit",{enumerable:!0,get:function(){return y.visit}});function h(m,c){return new o.Printer(c).print(m)}e.print=h;function f(m,c){return new o.Printer(c).printGenerically(m)}e.prettyPrint=f;function u(m,c){return a(process.argv[2],m,c)}e.run=u;function a(m,c,i){n.default.readFile(m,"utf-8",function(s,d){if(s){console.error(s);return}g(d,c,i)})}function p(m){process.stdout.write(m)}function g(m,c,i){var s=i&&i.writeback||p;c(l.parse(m,i),function(d){s(h(d,i).code)})}})(Ya);const Kp={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};let Yp=Kp.VITE_PROXY_API||`${window.location.origin}`;function vt(e,t,n={}){return t.body&&typeof t.body=="object"&&(t.body=JSON.stringify(t.body),t.headers={"content-type":"application/json",...t.headers||{}}),fetch(`${Yp}${e}`,t).then(r=>{let l=Object.fromEntries(r.headers.entries());return Zp(l["content-type"],r).then(o=>({status:r.status,body:o,header:l,ctrl:n,ctrl:n}))})}function Qp(e){let t={calendar:!0,css:!0,csv:!0,html:!0,javascript:!0,js:!0,json:!0,plain:!0,sh:!0,svg:!0,text:!0,xhtml:!0,xml:!0,xul:!0};return e=(e||"").split(";")[0],e.split(/\W/).map(r=>r.trim()).filter(r=>!!r).some(r=>t[r])}function Zp(e="",t){return e=e.trim().toLocaleLowerCase().split(/;|\s/)[0],Qp(e)?e=="application/json"?t.json():t.text():t.blob()}function eh(){return vt("/dns",{}).then(e=>e.body.data.map(t=>t))}const th=fs("DNS",()=>{const e=oe([]);async function t(){e.value=await eh()}function n(o,y){return vt(`/dns/${o}`,{method:"put",body:{...y}}).then(h=>(t(),h.body.data))}function r(o){return vt(`/dns/${o}`,{method:"delete"}).then(y=>(t(),y.body.data))}function l(o){return vt("/dns",{method:"post",body:{ip:o,isUsing:!0}}).then(y=>(t(),y.body.data))}return{dataList:e,edit:n,delete:r,add:l,init:t}});var rh=typeof global=="object"&&global&&global.Object===Object&&global;const $c=rh;var nh=typeof self=="object"&&self&&self.Object===Object&&self,ih=$c||nh||Function("return this")();const kt=ih;var ah=kt.Symbol;const Ft=ah;var Vc=Object.prototype,sh=Vc.hasOwnProperty,oh=Vc.toString,Qr=Ft?Ft.toStringTag:void 0;function uh(e){var t=sh.call(e,Qr),n=e[Qr];try{e[Qr]=void 0;var r=!0}catch{}var l=oh.call(e);return r&&(t?e[Qr]=n:delete e[Qr]),l}var lh=Object.prototype,ch=lh.toString;function fh(e){return ch.call(e)}var dh="[object Null]",ph="[object Undefined]",Vu=Ft?Ft.toStringTag:void 0;function Lr(e){return e==null?e===void 0?ph:dh:Vu&&Vu in Object(e)?uh(e):fh(e)}function kr(e){return e!=null&&typeof e=="object"}var hh="[object Symbol]";function Ni(e){return typeof e=="symbol"||kr(e)&&Lr(e)==hh}function mh(e,t){for(var n=-1,r=e==null?0:e.length,l=Array(r);++n<r;)l[n]=t(e[n],n,e);return l}var vh=Array.isArray;const $t=vh;var yh=1/0,zu=Ft?Ft.prototype:void 0,qu=zu?zu.toString:void 0;function zc(e){if(typeof e=="string")return e;if($t(e))return mh(e,zc)+"";if(Ni(e))return qu?qu.call(e):"";var t=e+"";return t=="0"&&1/e==-yh?"-0":t}var gh=/\s/;function bh(e){for(var t=e.length;t--&&gh.test(e.charAt(t)););return t}var Sh=/^\s+/;function Eh(e){return e&&e.slice(0,bh(e)+1).replace(Sh,"")}function mr(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Uu=0/0,xh=/^[-+]0x[0-9a-f]+$/i,wh=/^0b[01]+$/i,Dh=/^0o[0-7]+$/i,Ah=parseInt;function Xu(e){if(typeof e=="number")return e;if(Ni(e))return Uu;if(mr(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=mr(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Eh(e);var n=wh.test(e);return n||Dh.test(e)?Ah(e.slice(2),n?2:8):xh.test(e)?Uu:+e}function Th(e){return e}var Ch="[object AsyncFunction]",_h="[object Function]",Fh="[object GeneratorFunction]",Ph="[object Proxy]";function qc(e){if(!mr(e))return!1;var t=Lr(e);return t==_h||t==Fh||t==Ch||t==Ph}var kh=kt["__core-js_shared__"];const ja=kh;var Ju=function(){var e=/[^.]+$/.exec(ja&&ja.keys&&ja.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Oh(e){return!!Ju&&Ju in e}var Ih=Function.prototype,Bh=Ih.toString;function gr(e){if(e!=null){try{return Bh.call(e)}catch{}try{return e+""}catch{}}return""}var Nh=/[\\^$.*+?()[\]{}|]/g,Mh=/^\[object .+?Constructor\]$/,jh=Function.prototype,Lh=Object.prototype,Rh=jh.toString,$h=Lh.hasOwnProperty,Vh=RegExp("^"+Rh.call($h).replace(Nh,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function zh(e){if(!mr(e)||Oh(e))return!1;var t=qc(e)?Vh:Mh;return t.test(gr(e))}function qh(e,t){return e==null?void 0:e[t]}function br(e,t){var n=qh(e,t);return zh(n)?n:void 0}var Uh=br(kt,"WeakMap");const Qa=Uh;function Xh(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var Jh=800,Wh=16,Hh=Date.now;function Gh(e){var t=0,n=0;return function(){var r=Hh(),l=Wh-(r-n);if(n=r,l>0){if(++t>=Jh)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Kh(e){return function(){return e}}var Yh=function(){try{var e=br(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Ei=Yh;var Qh=Ei?function(e,t){return Ei(e,"toString",{configurable:!0,enumerable:!1,value:Kh(t),writable:!0})}:Th;const Zh=Qh;var em=Gh(Zh);const tm=em;var rm=9007199254740991,nm=/^(?:0|[1-9]\d*)$/;function gs(e,t){var n=typeof e;return t=t??rm,!!t&&(n=="number"||n!="symbol"&&nm.test(e))&&e>-1&&e%1==0&&e<t}function im(e,t,n){t=="__proto__"&&Ei?Ei(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function bs(e,t){return e===t||e!==e&&t!==t}var am=Object.prototype,sm=am.hasOwnProperty;function om(e,t,n){var r=e[t];(!(sm.call(e,t)&&bs(r,n))||n===void 0&&!(t in e))&&im(e,t,n)}var Wu=Math.max;function um(e,t,n){return t=Wu(t===void 0?e.length-1:t,0),function(){for(var r=arguments,l=-1,o=Wu(r.length-t,0),y=Array(o);++l<o;)y[l]=r[t+l];l=-1;for(var h=Array(t+1);++l<t;)h[l]=r[l];return h[t]=n(y),Xh(e,this,h)}}var lm=9007199254740991;function Ss(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=lm}function cm(e){return e!=null&&Ss(e.length)&&!qc(e)}var fm=Object.prototype;function dm(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||fm;return e===n}function pm(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var hm="[object Arguments]";function Hu(e){return kr(e)&&Lr(e)==hm}var Uc=Object.prototype,mm=Uc.hasOwnProperty,vm=Uc.propertyIsEnumerable,ym=Hu(function(){return arguments}())?Hu:function(e){return kr(e)&&mm.call(e,"callee")&&!vm.call(e,"callee")};const Es=ym;function gm(){return!1}var Xc=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Gu=Xc&&typeof module=="object"&&module&&!module.nodeType&&module,bm=Gu&&Gu.exports===Xc,Ku=bm?kt.Buffer:void 0,Sm=Ku?Ku.isBuffer:void 0,Em=Sm||gm;const Za=Em;var xm="[object Arguments]",wm="[object Array]",Dm="[object Boolean]",Am="[object Date]",Tm="[object Error]",Cm="[object Function]",_m="[object Map]",Fm="[object Number]",Pm="[object Object]",km="[object RegExp]",Om="[object Set]",Im="[object String]",Bm="[object WeakMap]",Nm="[object ArrayBuffer]",Mm="[object DataView]",jm="[object Float32Array]",Lm="[object Float64Array]",Rm="[object Int8Array]",$m="[object Int16Array]",Vm="[object Int32Array]",zm="[object Uint8Array]",qm="[object Uint8ClampedArray]",Um="[object Uint16Array]",Xm="[object Uint32Array]",je={};je[jm]=je[Lm]=je[Rm]=je[$m]=je[Vm]=je[zm]=je[qm]=je[Um]=je[Xm]=!0;je[xm]=je[wm]=je[Nm]=je[Dm]=je[Mm]=je[Am]=je[Tm]=je[Cm]=je[_m]=je[Fm]=je[Pm]=je[km]=je[Om]=je[Im]=je[Bm]=!1;function Jm(e){return kr(e)&&Ss(e.length)&&!!je[Lr(e)]}function Wm(e){return function(t){return e(t)}}var Jc=typeof exports=="object"&&exports&&!exports.nodeType&&exports,kn=Jc&&typeof module=="object"&&module&&!module.nodeType&&module,Hm=kn&&kn.exports===Jc,La=Hm&&$c.process,Gm=function(){try{var e=kn&&kn.require&&kn.require("util").types;return e||La&&La.binding&&La.binding("util")}catch{}}();const Yu=Gm;var Qu=Yu&&Yu.isTypedArray,Km=Qu?Wm(Qu):Jm;const Wc=Km;var Ym=Object.prototype,Qm=Ym.hasOwnProperty;function Zm(e,t){var n=$t(e),r=!n&&Es(e),l=!n&&!r&&Za(e),o=!n&&!r&&!l&&Wc(e),y=n||r||l||o,h=y?pm(e.length,String):[],f=h.length;for(var u in e)(t||Qm.call(e,u))&&!(y&&(u=="length"||l&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||gs(u,f)))&&h.push(u);return h}function ev(e,t){return function(n){return e(t(n))}}var tv=ev(Object.keys,Object);const rv=tv;var nv=Object.prototype,iv=nv.hasOwnProperty;function av(e){if(!dm(e))return rv(e);var t=[];for(var n in Object(e))iv.call(e,n)&&n!="constructor"&&t.push(n);return t}function sv(e){return cm(e)?Zm(e):av(e)}var ov=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,uv=/^\w*$/;function lv(e,t){if($t(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Ni(e)?!0:uv.test(e)||!ov.test(e)||t!=null&&e in Object(t)}var cv=br(Object,"create");const Nn=cv;function fv(){this.__data__=Nn?Nn(null):{},this.size=0}function dv(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var pv="__lodash_hash_undefined__",hv=Object.prototype,mv=hv.hasOwnProperty;function vv(e){var t=this.__data__;if(Nn){var n=t[e];return n===pv?void 0:n}return mv.call(t,e)?t[e]:void 0}var yv=Object.prototype,gv=yv.hasOwnProperty;function bv(e){var t=this.__data__;return Nn?t[e]!==void 0:gv.call(t,e)}var Sv="__lodash_hash_undefined__";function Ev(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Nn&&t===void 0?Sv:t,this}function vr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}vr.prototype.clear=fv;vr.prototype.delete=dv;vr.prototype.get=vv;vr.prototype.has=bv;vr.prototype.set=Ev;function xv(){this.__data__=[],this.size=0}function Mi(e,t){for(var n=e.length;n--;)if(bs(e[n][0],t))return n;return-1}var wv=Array.prototype,Dv=wv.splice;function Av(e){var t=this.__data__,n=Mi(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Dv.call(t,n,1),--this.size,!0}function Tv(e){var t=this.__data__,n=Mi(t,e);return n<0?void 0:t[n][1]}function Cv(e){return Mi(this.__data__,e)>-1}function _v(e,t){var n=this.__data__,r=Mi(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Ut(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ut.prototype.clear=xv;Ut.prototype.delete=Av;Ut.prototype.get=Tv;Ut.prototype.has=Cv;Ut.prototype.set=_v;var Fv=br(kt,"Map");const Mn=Fv;function Pv(){this.size=0,this.__data__={hash:new vr,map:new(Mn||Ut),string:new vr}}function kv(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ji(e,t){var n=e.__data__;return kv(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Ov(e){var t=ji(this,e).delete(e);return this.size-=t?1:0,t}function Iv(e){return ji(this,e).get(e)}function Bv(e){return ji(this,e).has(e)}function Nv(e,t){var n=ji(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Xt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Xt.prototype.clear=Pv;Xt.prototype.delete=Ov;Xt.prototype.get=Iv;Xt.prototype.has=Bv;Xt.prototype.set=Nv;var Mv="Expected a function";function xs(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Mv);var n=function(){var r=arguments,l=t?t.apply(this,r):r[0],o=n.cache;if(o.has(l))return o.get(l);var y=e.apply(this,r);return n.cache=o.set(l,y)||o,y};return n.cache=new(xs.Cache||Xt),n}xs.Cache=Xt;var jv=500;function Lv(e){var t=xs(e,function(r){return n.size===jv&&n.clear(),r}),n=t.cache;return t}var Rv=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,$v=/\\(\\)?/g,Vv=Lv(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Rv,function(n,r,l,o){t.push(l?o.replace($v,"$1"):r||n)}),t});const zv=Vv;function qv(e){return e==null?"":zc(e)}function Li(e,t){return $t(e)?e:lv(e,t)?[e]:zv(qv(e))}var Uv=1/0;function ws(e){if(typeof e=="string"||Ni(e))return e;var t=e+"";return t=="0"&&1/e==-Uv?"-0":t}function Hc(e,t){t=Li(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[ws(t[n++])];return n&&n==r?e:void 0}function Xv(e,t,n){var r=e==null?void 0:Hc(e,t);return r===void 0?n:r}function Gc(e,t){for(var n=-1,r=t.length,l=e.length;++n<r;)e[l+n]=t[n];return e}var Zu=Ft?Ft.isConcatSpreadable:void 0;function Jv(e){return $t(e)||Es(e)||!!(Zu&&e&&e[Zu])}function Kc(e,t,n,r,l){var o=-1,y=e.length;for(n||(n=Jv),l||(l=[]);++o<y;){var h=e[o];t>0&&n(h)?t>1?Kc(h,t-1,n,r,l):Gc(l,h):r||(l[l.length]=h)}return l}function Wv(e){var t=e==null?0:e.length;return t?Kc(e,1):[]}function Hv(e){return tm(um(e,void 0,Wv),e+"")}function Gv(){this.__data__=new Ut,this.size=0}function Kv(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Yv(e){return this.__data__.get(e)}function Qv(e){return this.__data__.has(e)}var Zv=200;function ey(e,t){var n=this.__data__;if(n instanceof Ut){var r=n.__data__;if(!Mn||r.length<Zv-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Xt(r)}return n.set(e,t),this.size=n.size,this}function Zt(e){var t=this.__data__=new Ut(e);this.size=t.size}Zt.prototype.clear=Gv;Zt.prototype.delete=Kv;Zt.prototype.get=Yv;Zt.prototype.has=Qv;Zt.prototype.set=ey;function ty(e,t){for(var n=-1,r=e==null?0:e.length,l=0,o=[];++n<r;){var y=e[n];t(y,n,e)&&(o[l++]=y)}return o}function ry(){return[]}var ny=Object.prototype,iy=ny.propertyIsEnumerable,el=Object.getOwnPropertySymbols,ay=el?function(e){return e==null?[]:(e=Object(e),ty(el(e),function(t){return iy.call(e,t)}))}:ry;const sy=ay;function oy(e,t,n){var r=t(e);return $t(e)?r:Gc(r,n(e))}function tl(e){return oy(e,sv,sy)}var uy=br(kt,"DataView");const es=uy;var ly=br(kt,"Promise");const ts=ly;var cy=br(kt,"Set");const rs=cy;var rl="[object Map]",fy="[object Object]",nl="[object Promise]",il="[object Set]",al="[object WeakMap]",sl="[object DataView]",dy=gr(es),py=gr(Mn),hy=gr(ts),my=gr(rs),vy=gr(Qa),fr=Lr;(es&&fr(new es(new ArrayBuffer(1)))!=sl||Mn&&fr(new Mn)!=rl||ts&&fr(ts.resolve())!=nl||rs&&fr(new rs)!=il||Qa&&fr(new Qa)!=al)&&(fr=function(e){var t=Lr(e),n=t==fy?e.constructor:void 0,r=n?gr(n):"";if(r)switch(r){case dy:return sl;case py:return rl;case hy:return nl;case my:return il;case vy:return al}return t});const ol=fr;var yy=kt.Uint8Array;const ul=yy;var gy="__lodash_hash_undefined__";function by(e){return this.__data__.set(e,gy),this}function Sy(e){return this.__data__.has(e)}function xi(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Xt;++t<n;)this.add(e[t])}xi.prototype.add=xi.prototype.push=by;xi.prototype.has=Sy;function Ey(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function xy(e,t){return e.has(t)}var wy=1,Dy=2;function Yc(e,t,n,r,l,o){var y=n&wy,h=e.length,f=t.length;if(h!=f&&!(y&&f>h))return!1;var u=o.get(e),a=o.get(t);if(u&&a)return u==t&&a==e;var p=-1,g=!0,m=n&Dy?new xi:void 0;for(o.set(e,t),o.set(t,e);++p<h;){var c=e[p],i=t[p];if(r)var s=y?r(i,c,p,t,e,o):r(c,i,p,e,t,o);if(s!==void 0){if(s)continue;g=!1;break}if(m){if(!Ey(t,function(d,v){if(!xy(m,v)&&(c===d||l(c,d,n,r,o)))return m.push(v)})){g=!1;break}}else if(!(c===i||l(c,i,n,r,o))){g=!1;break}}return o.delete(e),o.delete(t),g}function Ay(e){var t=-1,n=Array(e.size);return e.forEach(function(r,l){n[++t]=[l,r]}),n}function Ty(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Cy=1,_y=2,Fy="[object Boolean]",Py="[object Date]",ky="[object Error]",Oy="[object Map]",Iy="[object Number]",By="[object RegExp]",Ny="[object Set]",My="[object String]",jy="[object Symbol]",Ly="[object ArrayBuffer]",Ry="[object DataView]",ll=Ft?Ft.prototype:void 0,Ra=ll?ll.valueOf:void 0;function $y(e,t,n,r,l,o,y){switch(n){case Ry:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Ly:return!(e.byteLength!=t.byteLength||!o(new ul(e),new ul(t)));case Fy:case Py:case Iy:return bs(+e,+t);case ky:return e.name==t.name&&e.message==t.message;case By:case My:return e==t+"";case Oy:var h=Ay;case Ny:var f=r&Cy;if(h||(h=Ty),e.size!=t.size&&!f)return!1;var u=y.get(e);if(u)return u==t;r|=_y,y.set(e,t);var a=Yc(h(e),h(t),r,l,o,y);return y.delete(e),a;case jy:if(Ra)return Ra.call(e)==Ra.call(t)}return!1}var Vy=1,zy=Object.prototype,qy=zy.hasOwnProperty;function Uy(e,t,n,r,l,o){var y=n&Vy,h=tl(e),f=h.length,u=tl(t),a=u.length;if(f!=a&&!y)return!1;for(var p=f;p--;){var g=h[p];if(!(y?g in t:qy.call(t,g)))return!1}var m=o.get(e),c=o.get(t);if(m&&c)return m==t&&c==e;var i=!0;o.set(e,t),o.set(t,e);for(var s=y;++p<f;){g=h[p];var d=e[g],v=t[g];if(r)var E=y?r(v,d,g,t,e,o):r(d,v,g,e,t,o);if(!(E===void 0?d===v||l(d,v,n,r,o):E)){i=!1;break}s||(s=g=="constructor")}if(i&&!s){var b=e.constructor,A=t.constructor;b!=A&&"constructor"in e&&"constructor"in t&&!(typeof b=="function"&&b instanceof b&&typeof A=="function"&&A instanceof A)&&(i=!1)}return o.delete(e),o.delete(t),i}var Xy=1,cl="[object Arguments]",fl="[object Array]",ai="[object Object]",Jy=Object.prototype,dl=Jy.hasOwnProperty;function Wy(e,t,n,r,l,o){var y=$t(e),h=$t(t),f=y?fl:ol(e),u=h?fl:ol(t);f=f==cl?ai:f,u=u==cl?ai:u;var a=f==ai,p=u==ai,g=f==u;if(g&&Za(e)){if(!Za(t))return!1;y=!0,a=!1}if(g&&!a)return o||(o=new Zt),y||Wc(e)?Yc(e,t,n,r,l,o):$y(e,t,f,n,r,l,o);if(!(n&Xy)){var m=a&&dl.call(e,"__wrapped__"),c=p&&dl.call(t,"__wrapped__");if(m||c){var i=m?e.value():e,s=c?t.value():t;return o||(o=new Zt),l(i,s,n,r,o)}}return g?(o||(o=new Zt),Uy(e,t,n,r,l,o)):!1}function Qc(e,t,n,r,l){return e===t?!0:e==null||t==null||!kr(e)&&!kr(t)?e!==e&&t!==t:Wy(e,t,n,r,Qc,l)}function Hy(e,t){return e!=null&&t in Object(e)}function Gy(e,t,n){t=Li(t,e);for(var r=-1,l=t.length,o=!1;++r<l;){var y=ws(t[r]);if(!(o=e!=null&&n(e,y)))break;e=e[y]}return o||++r!=l?o:(l=e==null?0:e.length,!!l&&Ss(l)&&gs(y,l)&&($t(e)||Es(e)))}function Ky(e,t){return e!=null&&Gy(e,t,Hy)}var Yy=function(){return kt.Date.now()};const $a=Yy;var Qy="Expected a function",Zy=Math.max,eg=Math.min;function ns(e,t,n){var r,l,o,y,h,f,u=0,a=!1,p=!1,g=!0;if(typeof e!="function")throw new TypeError(Qy);t=Xu(t)||0,mr(n)&&(a=!!n.leading,p="maxWait"in n,o=p?Zy(Xu(n.maxWait)||0,t):o,g="trailing"in n?!!n.trailing:g);function m(_){var D=r,F=l;return r=l=void 0,u=_,y=e.apply(F,D),y}function c(_){return u=_,h=setTimeout(d,t),a?m(_):y}function i(_){var D=_-f,F=_-u,B=t-D;return p?eg(B,o-F):B}function s(_){var D=_-f,F=_-u;return f===void 0||D>=t||D<0||p&&F>=o}function d(){var _=$a();if(s(_))return v(_);h=setTimeout(d,i(_))}function v(_){return h=void 0,g&&r?m(_):(r=l=void 0,y)}function E(){h!==void 0&&clearTimeout(h),u=0,r=f=l=h=void 0}function b(){return h===void 0?y:v($a())}function A(){var _=$a(),D=s(_);if(r=arguments,l=this,f=_,D){if(h===void 0)return c(f);if(p)return clearTimeout(h),h=setTimeout(d,t),m(f)}return h===void 0&&(h=setTimeout(d,t)),y}return A.cancel=E,A.flush=b,A}function wi(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var l=e[t];r[l[0]]=l[1]}return r}function tg(e,t){return Qc(e,t)}function Rt(e){return e==null}function rg(e){return e===void 0}function ng(e,t,n,r){if(!mr(e))return e;t=Li(t,e);for(var l=-1,o=t.length,y=o-1,h=e;h!=null&&++l<o;){var f=ws(t[l]),u=n;if(f==="__proto__"||f==="constructor"||f==="prototype")return e;if(l!=y){var a=h[f];u=r?r(a,f,h):void 0,u===void 0&&(u=mr(a)?a:gs(t[l+1])?[]:{})}om(h,f,u),h=h[f]}return e}function ig(e,t,n){for(var r=-1,l=t.length,o={};++r<l;){var y=t[r],h=Hc(e,y);n(h,y)&&ng(o,Li(y,e),h)}return o}function ag(e,t){return ig(e,t,function(n,r){return Ky(e,r)})}var sg=Hv(function(e,t){return e==null?{}:ag(e,t)});const og=sg,Mt=(e,t,{checkForDefaultPrevented:n=!0}={})=>l=>{const o=e==null?void 0:e(l);if(n===!1||!o)return t==null?void 0:t(l)};var pl;const st=typeof window<"u",jn=e=>typeof e=="boolean",Me=e=>typeof e=="number",ug=e=>typeof e=="string",Zc=()=>{},lg=st&&((pl=window==null?void 0:window.navigator)==null?void 0:pl.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function ef(e){return typeof e=="function"?e():k(e)}function cg(e){return e}function Ds(e){return ud()?(ld(e),!0):!1}function fg(e,t=!0){ar()?Ze(e):t?e():Je(e)}function Ht(e){var t;const n=ef(e);return(t=n==null?void 0:n.$el)!=null?t:n}const As=st?window:void 0;function pr(...e){let t,n,r,l;if(ug(e[0])||Array.isArray(e[0])?([n,r,l]=e,t=As):[t,n,r,l]=e,!t)return Zc;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],y=()=>{o.forEach(a=>a()),o.length=0},h=(a,p,g,m)=>(a.addEventListener(p,g,m),()=>a.removeEventListener(p,g,m)),f=xe(()=>[Ht(t),ef(l)],([a,p])=>{y(),a&&o.push(...n.flatMap(g=>r.map(m=>h(a,g,m,p))))},{immediate:!0,flush:"post"}),u=()=>{f(),y()};return Ds(u),u}let hl=!1;function tf(e,t,n={}){const{window:r=As,ignore:l=[],capture:o=!0,detectIframe:y=!1}=n;if(!r)return;lg&&!hl&&(hl=!0,Array.from(r.document.body.children).forEach(g=>g.addEventListener("click",Zc)));let h=!0;const f=g=>l.some(m=>{if(typeof m=="string")return Array.from(r.document.querySelectorAll(m)).some(c=>c===g.target||g.composedPath().includes(c));{const c=Ht(m);return c&&(g.target===c||g.composedPath().includes(c))}}),a=[pr(r,"click",g=>{const m=Ht(e);if(!(!m||m===g.target||g.composedPath().includes(m))){if(g.detail===0&&(h=!f(g)),!h){h=!0;return}t(g)}},{passive:!0,capture:o}),pr(r,"pointerdown",g=>{const m=Ht(e);m&&(h=!g.composedPath().includes(m)&&!f(g))},{passive:!0}),y&&pr(r,"blur",g=>{var m;const c=Ht(e);((m=r.document.activeElement)==null?void 0:m.tagName)==="IFRAME"&&!(c!=null&&c.contains(r.document.activeElement))&&t(g)})].filter(Boolean);return()=>a.forEach(g=>g())}function dg(e,t=!1){const n=oe(),r=()=>n.value=Boolean(e());return r(),fg(r,t),n}const is=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},as="__vueuse_ssr_handlers__";is[as]=is[as]||{};is[as];var ml=Object.getOwnPropertySymbols,pg=Object.prototype.hasOwnProperty,hg=Object.prototype.propertyIsEnumerable,mg=(e,t)=>{var n={};for(var r in e)pg.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&ml)for(var r of ml(e))t.indexOf(r)<0&&hg.call(e,r)&&(n[r]=e[r]);return n};function rf(e,t,n={}){const r=n,{window:l=As}=r,o=mg(r,["window"]);let y;const h=dg(()=>l&&"ResizeObserver"in l),f=()=>{y&&(y.disconnect(),y=void 0)},u=xe(()=>Ht(e),p=>{f(),h.value&&l&&p&&(y=new ResizeObserver(t),y.observe(p,o))},{immediate:!0,flush:"post"}),a=()=>{f(),u()};return Ds(a),{isSupported:h,stop:a}}var vl;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(vl||(vl={}));var vg=Object.defineProperty,yl=Object.getOwnPropertySymbols,yg=Object.prototype.hasOwnProperty,gg=Object.prototype.propertyIsEnumerable,gl=(e,t,n)=>t in e?vg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,bg=(e,t)=>{for(var n in t||(t={}))yg.call(t,n)&&gl(e,n,t[n]);if(yl)for(var n of yl(t))gg.call(t,n)&&gl(e,n,t[n]);return e};const Sg={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};bg({linear:cg},Sg);const Gt=e=>e===void 0,Di=e=>typeof Element>"u"?!1:e instanceof Element,Eg=e=>Ye(e)?!Number.isNaN(Number(e)):!1;class xg extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Ts(e,t){throw new xg(`[${e}] ${t}`)}function ss(e,t="px"){if(!e)return"";if(Me(e)||Eg(e))return`${e}${t}`;if(Ye(e))return e}/*! Element Plus Icons Vue v2.0.10 */var ct=(e,t)=>{let n=e.__vccOpts||e;for(let[r,l]of t)n[r]=l;return n},wg={name:"ArrowDown"},Dg={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Ag=Se("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"},null,-1),Tg=[Ag];function Cg(e,t,n,r,l,o){return te(),fe("svg",Dg,Tg)}var _g=ct(wg,[["render",Cg],["__file","arrow-down.vue"]]),Fg={name:"ArrowUp"},Pg={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},kg=Se("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0z"},null,-1),Og=[kg];function Ig(e,t,n,r,l,o){return te(),fe("svg",Pg,Og)}var Bg=ct(Fg,[["render",Ig],["__file","arrow-up.vue"]]),Ng={name:"Check"},Mg={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},jg=Se("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"},null,-1),Lg=[jg];function Rg(e,t,n,r,l,o){return te(),fe("svg",Mg,Lg)}var $g=ct(Ng,[["render",Rg],["__file","check.vue"]]),Vg={name:"CircleCheck"},zg={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},qg=Se("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),Ug=Se("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"},null,-1),Xg=[qg,Ug];function Jg(e,t,n,r,l,o){return te(),fe("svg",zg,Xg)}var Wg=ct(Vg,[["render",Jg],["__file","circle-check.vue"]]),Hg={name:"CircleClose"},Gg={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Kg=Se("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248L466.752 512z"},null,-1),Yg=Se("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),Qg=[Kg,Yg];function Zg(e,t,n,r,l,o){return te(),fe("svg",Gg,Qg)}var nf=ct(Hg,[["render",Zg],["__file","circle-close.vue"]]),e0={name:"Delete"},t0={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},r0=Se("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32zm192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32z"},null,-1),n0=[r0];function i0(e,t,n,r,l,o){return te(),fe("svg",t0,n0)}var af=ct(e0,[["render",i0],["__file","delete.vue"]]),a0={name:"Hide"},s0={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},o0=Se("path",{d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2L371.2 588.8ZM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z",fill:"currentColor"},null,-1),u0=Se("path",{d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z",fill:"currentColor"},null,-1),l0=[o0,u0];function c0(e,t,n,r,l,o){return te(),fe("svg",s0,l0)}var f0=ct(a0,[["render",c0],["__file","hide.vue"]]),d0={name:"Loading"},p0={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},h0=Se("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0zm-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"},null,-1),m0=[h0];function v0(e,t,n,r,l,o){return te(),fe("svg",p0,m0)}var Cs=ct(d0,[["render",v0],["__file","loading.vue"]]),y0={name:"Minus"},g0={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},b0=Se("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z"},null,-1),S0=[b0];function E0(e,t,n,r,l,o){return te(),fe("svg",g0,S0)}var x0=ct(y0,[["render",E0],["__file","minus.vue"]]),w0={name:"Plus"},D0={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},A0=Se("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64h352z"},null,-1),T0=[A0];function C0(e,t,n,r,l,o){return te(),fe("svg",D0,T0)}var _0=ct(w0,[["render",C0],["__file","plus.vue"]]),F0={name:"Search"},P0={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},k0=Se("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704z"},null,-1),O0=[k0];function I0(e,t,n,r,l,o){return te(),fe("svg",P0,O0)}var B0=ct(F0,[["render",I0],["__file","search.vue"]]),N0={name:"View"},M0={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},j0=Se("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352zm0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448zm0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160z"},null,-1),L0=[j0];function R0(e,t,n,r,l,o){return te(),fe("svg",M0,L0)}var $0=ct(N0,[["render",R0],["__file","view.vue"]]);const sf="__epPropKey",Te=e=>e,V0=e=>tr(e)&&!!e[sf],Ri=(e,t)=>{if(!tr(e)||V0(e))return e;const{values:n,required:r,default:l,type:o,validator:y}=e,f={type:o,required:!!r,validator:n||y?u=>{let a=!1,p=[];if(n&&(p=Array.from(n),Qs(e,"default")&&p.push(l),a||(a=p.includes(u))),y&&(a||(a=y(u))),!a&&p.length>0){const g=[...new Set(p)].map(m=>JSON.stringify(m)).join(", ");cd(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${g}], got value ${JSON.stringify(u)}.`)}return a}:void 0,[sf]:!0};return Qs(e,"default")&&(f.default=l),f},Re=e=>wi(Object.entries(e).map(([t,n])=>[t,Ri(n,t)])),Ai=Te([String,Object,Function]),z0={validating:Cs,success:Wg,error:nf},ft=(e,t)=>{if(e.install=n=>{for(const r of[e,...Object.values(t??{})])n.component(r.name,r)},t)for(const[n,r]of Object.entries(t))e[n]=r;return e},_s=e=>(e.install=Pr,e),Ln={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},qe="update:modelValue",Rr="change",Dt="input",of=["","default","small","large"];var Nt=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(Nt||{});function os(e){return zn(e)&&e.type===Ke}function q0(e){return zn(e)&&e.type===ic}function U0(e){return zn(e)&&!os(e)&&!q0(e)}const X0=()=>st&&/firefox/i.test(window.navigator.userAgent),J0=e=>/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi.test(e),W0=()=>Math.floor(Math.random()*1e4),H0=e=>e,G0=["class","style"],K0=/^on[A-Z]/,uf=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,r=Z(()=>((n==null?void 0:n.value)||[]).concat(G0)),l=ar();return l?Z(()=>{var o;return wi(Object.entries((o=l.proxy)==null?void 0:o.$attrs).filter(([y])=>!r.value.includes(y)&&!(t&&K0.test(y))))}):Z(()=>({}))},lf=Symbol("buttonGroupContextKey"),$r=Symbol("checkboxGroupContextKey"),Y0=Symbol(),Fs=Symbol("formContextKey"),Ti=Symbol("formItemContextKey"),cf=Symbol("scrollbarContextKey"),ff=Symbol("sliderContextKey"),Ps=Symbol("popper"),df=Symbol("popperContent"),ks=Symbol("elTooltip"),pf=e=>{const t=ar();return Z(()=>{var n,r;return(r=((n=t.proxy)==null?void 0:n.$props)[e])!=null?r:void 0})},bl=oe();function Sr(e,t=void 0){const n=ar()?Ve(Y0,bl):bl;return e?Z(()=>{var r,l;return(l=(r=n.value)==null?void 0:r[e])!=null?l:t}):n}const yr=Ri({type:String,values:of,required:!1}),Or=(e,t={})=>{const n=oe(void 0),r=t.prop?n:pf("size"),l=t.global?n:Sr("size"),o=t.form?{size:void 0}:Ve(Fs,void 0),y=t.formItem?{size:void 0}:Ve(Ti,void 0);return Z(()=>r.value||k(e)||(y==null?void 0:y.size)||(o==null?void 0:o.size)||l.value||"")},Vr=e=>{const t=pf("disabled"),n=Ve(Fs,void 0);return Z(()=>t.value||k(e)||(n==null?void 0:n.disabled)||!1)},Q0=({from:e,replacement:t,scope:n,version:r,ref:l,type:o="API"},y)=>{xe(()=>k(y),h=>{},{immediate:!0})},Os="el",Z0="is-",cr=(e,t,n,r,l)=>{let o=`${e}-${t}`;return n&&(o+=`-${n}`),r&&(o+=`__${r}`),l&&(o+=`--${l}`),o},Le=e=>{const t=Sr("namespace",Os);return{namespace:t,b:(c="")=>cr(t.value,e,c,"",""),e:c=>c?cr(t.value,e,"",c,""):"",m:c=>c?cr(t.value,e,"","",c):"",be:(c,i)=>c&&i?cr(t.value,e,c,i,""):"",em:(c,i)=>c&&i?cr(t.value,e,"",c,i):"",bm:(c,i)=>c&&i?cr(t.value,e,c,"",i):"",bem:(c,i,s)=>c&&i&&s?cr(t.value,e,c,i,s):"",is:(c,...i)=>{const s=i.length>=1?i[0]:!0;return c&&s?`${Z0}${c}`:""},cssVar:c=>{const i={};for(const s in c)c[s]&&(i[`--${t.value}-${s}`]=c[s]);return i},cssVarName:c=>`--${t.value}-${c}`,cssVarBlock:c=>{const i={};for(const s in c)c[s]&&(i[`--${t.value}-${e}-${s}`]=c[s]);return i},cssVarBlockName:c=>`--${t.value}-${e}-${c}`}},Sl={prefix:Math.floor(Math.random()*1e4),current:0},eb=Symbol("elIdInjection"),hf=()=>ar()?Ve(eb,Sl):Sl,mf=e=>{const t=hf(),n=Sr("namespace",Os);return Z(()=>k(e)||`${n.value}-id-${t.prefix}-${t.current++}`)},Er=()=>{const e=Ve(Fs,void 0),t=Ve(Ti,void 0);return{form:e,formItem:t}},$i=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=oe(!1)),r||(r=oe(!1));const l=oe();let o;const y=Z(()=>{var h;return!!(!e.label&&t&&t.inputIds&&((h=t.inputIds)==null?void 0:h.length)<=1)});return Ze(()=>{o=xe([wt(e,"id"),n],([h,f])=>{const u=h??(f?void 0:mf().value);u!==l.value&&(t!=null&&t.removeInputId&&(l.value&&t.removeInputId(l.value),!(r!=null&&r.value)&&!f&&u&&t.addInputId(u)),l.value=u)},{immediate:!0})}),ac(()=>{o&&o(),t!=null&&t.removeInputId&&l.value&&t.removeInputId(l.value)}),{isLabeledByFormItem:y,inputId:l}};var tb={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}};const rb=e=>(t,n)=>nb(t,n,k(e)),nb=(e,t,n)=>Xv(n,e,e).replace(/\{(\w+)\}/g,(r,l)=>{var o;return`${(o=t==null?void 0:t[l])!=null?o:`{${l}}`}`}),ib=e=>{const t=Z(()=>k(e).name),n=rr(e)?e:oe(e);return{lang:t,locale:n,t:rb(e)}},vf=()=>{const e=Sr("locale");return ib(Z(()=>e.value||tb))},ab=Ri({type:Te(Boolean),default:null}),sb=Ri({type:Te(Function)}),yf=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,r=[t],l={[e]:ab,[n]:sb};return{useModelToggle:({indicator:y,toggleReason:h,shouldHideWhenRouteChanges:f,shouldProceed:u,onShow:a,onHide:p})=>{const g=ar(),{emit:m}=g,c=g.props,i=Z(()=>Tr(c[n])),s=Z(()=>c[e]===null),d=D=>{y.value!==!0&&(y.value=!0,h&&(h.value=D),Tr(a)&&a(D))},v=D=>{y.value!==!1&&(y.value=!1,h&&(h.value=D),Tr(p)&&p(D))},E=D=>{if(c.disabled===!0||Tr(u)&&!u())return;const F=i.value&&st;F&&m(t,!0),(s.value||!F)&&d(D)},b=D=>{if(c.disabled===!0||!st)return;const F=i.value&&st;F&&m(t,!1),(s.value||!F)&&v(D)},A=D=>{jn(D)&&(c.disabled&&D?i.value&&m(t,!1):y.value!==D&&(D?d():v()))},_=()=>{y.value?b():E()};return xe(()=>c[e],A),f&&g.appContext.config.globalProperties.$route!==void 0&&xe(()=>({...g.proxy.$route}),()=>{f.value&&y.value&&b()}),Ze(()=>{A(c[e])}),{hide:b,show:E,toggle:_,hasUpdateHandler:i}},useModelToggleProps:l,useModelToggleEmits:r}};yf("modelValue");var et="top",ut="bottom",lt="right",tt="left",Is="auto",Wn=[et,ut,lt,tt],Ir="start",Rn="end",ob="clippingParents",gf="viewport",Zr="popper",ub="reference",El=Wn.reduce(function(e,t){return e.concat([t+"-"+Ir,t+"-"+Rn])},[]),Hn=[].concat(Wn,[Is]).reduce(function(e,t){return e.concat([t,t+"-"+Ir,t+"-"+Rn])},[]),lb="beforeRead",cb="read",fb="afterRead",db="beforeMain",pb="main",hb="afterMain",mb="beforeWrite",vb="write",yb="afterWrite",gb=[lb,cb,fb,db,pb,hb,mb,vb,yb];function Pt(e){return e?(e.nodeName||"").toLowerCase():null}function gt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Br(e){var t=gt(e).Element;return e instanceof t||e instanceof Element}function ot(e){var t=gt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Bs(e){if(typeof ShadowRoot>"u")return!1;var t=gt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function bb(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},l=t.attributes[n]||{},o=t.elements[n];!ot(o)||!Pt(o)||(Object.assign(o.style,r),Object.keys(l).forEach(function(y){var h=l[y];h===!1?o.removeAttribute(y):o.setAttribute(y,h===!0?"":h)}))})}function Sb(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var l=t.elements[r],o=t.attributes[r]||{},y=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),h=y.reduce(function(f,u){return f[u]="",f},{});!ot(l)||!Pt(l)||(Object.assign(l.style,h),Object.keys(o).forEach(function(f){l.removeAttribute(f)}))})}}var bf={name:"applyStyles",enabled:!0,phase:"write",fn:bb,effect:Sb,requires:["computeStyles"]};function At(e){return e.split("-")[0]}var hr=Math.max,Ci=Math.min,Nr=Math.round;function Mr(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,l=1;if(ot(e)&&t){var o=e.offsetHeight,y=e.offsetWidth;y>0&&(r=Nr(n.width)/y||1),o>0&&(l=Nr(n.height)/o||1)}return{width:n.width/r,height:n.height/l,top:n.top/l,right:n.right/r,bottom:n.bottom/l,left:n.left/r,x:n.left/r,y:n.top/l}}function Ns(e){var t=Mr(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Sf(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Bs(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Vt(e){return gt(e).getComputedStyle(e)}function Eb(e){return["table","td","th"].indexOf(Pt(e))>=0}function sr(e){return((Br(e)?e.ownerDocument:e.document)||window.document).documentElement}function Vi(e){return Pt(e)==="html"?e:e.assignedSlot||e.parentNode||(Bs(e)?e.host:null)||sr(e)}function xl(e){return!ot(e)||Vt(e).position==="fixed"?null:e.offsetParent}function xb(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&ot(e)){var r=Vt(e);if(r.position==="fixed")return null}var l=Vi(e);for(Bs(l)&&(l=l.host);ot(l)&&["html","body"].indexOf(Pt(l))<0;){var o=Vt(l);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return l;l=l.parentNode}return null}function Gn(e){for(var t=gt(e),n=xl(e);n&&Eb(n)&&Vt(n).position==="static";)n=xl(n);return n&&(Pt(n)==="html"||Pt(n)==="body"&&Vt(n).position==="static")?t:n||xb(e)||t}function Ms(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function On(e,t,n){return hr(e,Ci(t,n))}function wb(e,t,n){var r=On(e,t,n);return r>n?n:r}function Ef(){return{top:0,right:0,bottom:0,left:0}}function xf(e){return Object.assign({},Ef(),e)}function wf(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Db=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,xf(typeof e!="number"?e:wf(e,Wn))};function Ab(e){var t,n=e.state,r=e.name,l=e.options,o=n.elements.arrow,y=n.modifiersData.popperOffsets,h=At(n.placement),f=Ms(h),u=[tt,lt].indexOf(h)>=0,a=u?"height":"width";if(!(!o||!y)){var p=Db(l.padding,n),g=Ns(o),m=f==="y"?et:tt,c=f==="y"?ut:lt,i=n.rects.reference[a]+n.rects.reference[f]-y[f]-n.rects.popper[a],s=y[f]-n.rects.reference[f],d=Gn(o),v=d?f==="y"?d.clientHeight||0:d.clientWidth||0:0,E=i/2-s/2,b=p[m],A=v-g[a]-p[c],_=v/2-g[a]/2+E,D=On(b,_,A),F=f;n.modifiersData[r]=(t={},t[F]=D,t.centerOffset=D-_,t)}}function Tb(e){var t=e.state,n=e.options,r=n.element,l=r===void 0?"[data-popper-arrow]":r;l!=null&&(typeof l=="string"&&(l=t.elements.popper.querySelector(l),!l)||!Sf(t.elements.popper,l)||(t.elements.arrow=l))}var Cb={name:"arrow",enabled:!0,phase:"main",fn:Ab,effect:Tb,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function jr(e){return e.split("-")[1]}var _b={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Fb(e){var t=e.x,n=e.y,r=window,l=r.devicePixelRatio||1;return{x:Nr(t*l)/l||0,y:Nr(n*l)/l||0}}function wl(e){var t,n=e.popper,r=e.popperRect,l=e.placement,o=e.variation,y=e.offsets,h=e.position,f=e.gpuAcceleration,u=e.adaptive,a=e.roundOffsets,p=e.isFixed,g=y.x,m=g===void 0?0:g,c=y.y,i=c===void 0?0:c,s=typeof a=="function"?a({x:m,y:i}):{x:m,y:i};m=s.x,i=s.y;var d=y.hasOwnProperty("x"),v=y.hasOwnProperty("y"),E=tt,b=et,A=window;if(u){var _=Gn(n),D="clientHeight",F="clientWidth";if(_===gt(n)&&(_=sr(n),Vt(_).position!=="static"&&h==="absolute"&&(D="scrollHeight",F="scrollWidth")),_=_,l===et||(l===tt||l===lt)&&o===Rn){b=ut;var B=p&&_===A&&A.visualViewport?A.visualViewport.height:_[D];i-=B-r.height,i*=f?1:-1}if(l===tt||(l===et||l===ut)&&o===Rn){E=lt;var N=p&&_===A&&A.visualViewport?A.visualViewport.width:_[F];m-=N-r.width,m*=f?1:-1}}var I=Object.assign({position:h},u&&_b),R=a===!0?Fb({x:m,y:i}):{x:m,y:i};if(m=R.x,i=R.y,f){var M;return Object.assign({},I,(M={},M[b]=v?"0":"",M[E]=d?"0":"",M.transform=(A.devicePixelRatio||1)<=1?"translate("+m+"px, "+i+"px)":"translate3d("+m+"px, "+i+"px, 0)",M))}return Object.assign({},I,(t={},t[b]=v?i+"px":"",t[E]=d?m+"px":"",t.transform="",t))}function Pb(e){var t=e.state,n=e.options,r=n.gpuAcceleration,l=r===void 0?!0:r,o=n.adaptive,y=o===void 0?!0:o,h=n.roundOffsets,f=h===void 0?!0:h,u={placement:At(t.placement),variation:jr(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:l,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,wl(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:y,roundOffsets:f})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,wl(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Df={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Pb,data:{}},si={passive:!0};function kb(e){var t=e.state,n=e.instance,r=e.options,l=r.scroll,o=l===void 0?!0:l,y=r.resize,h=y===void 0?!0:y,f=gt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(a){a.addEventListener("scroll",n.update,si)}),h&&f.addEventListener("resize",n.update,si),function(){o&&u.forEach(function(a){a.removeEventListener("scroll",n.update,si)}),h&&f.removeEventListener("resize",n.update,si)}}var Af={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:kb,data:{}},Ob={left:"right",right:"left",bottom:"top",top:"bottom"};function pi(e){return e.replace(/left|right|bottom|top/g,function(t){return Ob[t]})}var Ib={start:"end",end:"start"};function Dl(e){return e.replace(/start|end/g,function(t){return Ib[t]})}function js(e){var t=gt(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Ls(e){return Mr(sr(e)).left+js(e).scrollLeft}function Bb(e){var t=gt(e),n=sr(e),r=t.visualViewport,l=n.clientWidth,o=n.clientHeight,y=0,h=0;return r&&(l=r.width,o=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(y=r.offsetLeft,h=r.offsetTop)),{width:l,height:o,x:y+Ls(e),y:h}}function Nb(e){var t,n=sr(e),r=js(e),l=(t=e.ownerDocument)==null?void 0:t.body,o=hr(n.scrollWidth,n.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),y=hr(n.scrollHeight,n.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),h=-r.scrollLeft+Ls(e),f=-r.scrollTop;return Vt(l||n).direction==="rtl"&&(h+=hr(n.clientWidth,l?l.clientWidth:0)-o),{width:o,height:y,x:h,y:f}}function Rs(e){var t=Vt(e),n=t.overflow,r=t.overflowX,l=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+l+r)}function Tf(e){return["html","body","#document"].indexOf(Pt(e))>=0?e.ownerDocument.body:ot(e)&&Rs(e)?e:Tf(Vi(e))}function In(e,t){var n;t===void 0&&(t=[]);var r=Tf(e),l=r===((n=e.ownerDocument)==null?void 0:n.body),o=gt(r),y=l?[o].concat(o.visualViewport||[],Rs(r)?r:[]):r,h=t.concat(y);return l?h:h.concat(In(Vi(y)))}function us(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Mb(e){var t=Mr(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function Al(e,t){return t===gf?us(Bb(e)):Br(t)?Mb(t):us(Nb(sr(e)))}function jb(e){var t=In(Vi(e)),n=["absolute","fixed"].indexOf(Vt(e).position)>=0,r=n&&ot(e)?Gn(e):e;return Br(r)?t.filter(function(l){return Br(l)&&Sf(l,r)&&Pt(l)!=="body"}):[]}function Lb(e,t,n){var r=t==="clippingParents"?jb(e):[].concat(t),l=[].concat(r,[n]),o=l[0],y=l.reduce(function(h,f){var u=Al(e,f);return h.top=hr(u.top,h.top),h.right=Ci(u.right,h.right),h.bottom=Ci(u.bottom,h.bottom),h.left=hr(u.left,h.left),h},Al(e,o));return y.width=y.right-y.left,y.height=y.bottom-y.top,y.x=y.left,y.y=y.top,y}function Cf(e){var t=e.reference,n=e.element,r=e.placement,l=r?At(r):null,o=r?jr(r):null,y=t.x+t.width/2-n.width/2,h=t.y+t.height/2-n.height/2,f;switch(l){case et:f={x:y,y:t.y-n.height};break;case ut:f={x:y,y:t.y+t.height};break;case lt:f={x:t.x+t.width,y:h};break;case tt:f={x:t.x-n.width,y:h};break;default:f={x:t.x,y:t.y}}var u=l?Ms(l):null;if(u!=null){var a=u==="y"?"height":"width";switch(o){case Ir:f[u]=f[u]-(t[a]/2-n[a]/2);break;case Rn:f[u]=f[u]+(t[a]/2-n[a]/2);break}}return f}function $n(e,t){t===void 0&&(t={});var n=t,r=n.placement,l=r===void 0?e.placement:r,o=n.boundary,y=o===void 0?ob:o,h=n.rootBoundary,f=h===void 0?gf:h,u=n.elementContext,a=u===void 0?Zr:u,p=n.altBoundary,g=p===void 0?!1:p,m=n.padding,c=m===void 0?0:m,i=xf(typeof c!="number"?c:wf(c,Wn)),s=a===Zr?ub:Zr,d=e.rects.popper,v=e.elements[g?s:a],E=Lb(Br(v)?v:v.contextElement||sr(e.elements.popper),y,f),b=Mr(e.elements.reference),A=Cf({reference:b,element:d,strategy:"absolute",placement:l}),_=us(Object.assign({},d,A)),D=a===Zr?_:b,F={top:E.top-D.top+i.top,bottom:D.bottom-E.bottom+i.bottom,left:E.left-D.left+i.left,right:D.right-E.right+i.right},B=e.modifiersData.offset;if(a===Zr&&B){var N=B[l];Object.keys(F).forEach(function(I){var R=[lt,ut].indexOf(I)>=0?1:-1,M=[et,ut].indexOf(I)>=0?"y":"x";F[I]+=N[M]*R})}return F}function Rb(e,t){t===void 0&&(t={});var n=t,r=n.placement,l=n.boundary,o=n.rootBoundary,y=n.padding,h=n.flipVariations,f=n.allowedAutoPlacements,u=f===void 0?Hn:f,a=jr(r),p=a?h?El:El.filter(function(c){return jr(c)===a}):Wn,g=p.filter(function(c){return u.indexOf(c)>=0});g.length===0&&(g=p);var m=g.reduce(function(c,i){return c[i]=$n(e,{placement:i,boundary:l,rootBoundary:o,padding:y})[At(i)],c},{});return Object.keys(m).sort(function(c,i){return m[c]-m[i]})}function $b(e){if(At(e)===Is)return[];var t=pi(e);return[Dl(e),t,Dl(t)]}function Vb(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var l=n.mainAxis,o=l===void 0?!0:l,y=n.altAxis,h=y===void 0?!0:y,f=n.fallbackPlacements,u=n.padding,a=n.boundary,p=n.rootBoundary,g=n.altBoundary,m=n.flipVariations,c=m===void 0?!0:m,i=n.allowedAutoPlacements,s=t.options.placement,d=At(s),v=d===s,E=f||(v||!c?[pi(s)]:$b(s)),b=[s].concat(E).reduce(function(T,C){return T.concat(At(C)===Is?Rb(t,{placement:C,boundary:a,rootBoundary:p,padding:u,flipVariations:c,allowedAutoPlacements:i}):C)},[]),A=t.rects.reference,_=t.rects.popper,D=new Map,F=!0,B=b[0],N=0;N<b.length;N++){var I=b[N],R=At(I),M=jr(I)===Ir,$=[et,ut].indexOf(R)>=0,z=$?"width":"height",X=$n(t,{placement:I,boundary:a,rootBoundary:p,altBoundary:g,padding:u}),P=$?M?lt:tt:M?ut:et;A[z]>_[z]&&(P=pi(P));var O=pi(P),L=[];if(o&&L.push(X[R]<=0),h&&L.push(X[P]<=0,X[O]<=0),L.every(function(T){return T})){B=I,F=!1;break}D.set(I,L)}if(F)for(var V=c?3:1,x=function(T){var C=b.find(function(j){var U=D.get(j);if(U)return U.slice(0,T).every(function(H){return H})});if(C)return B=C,"break"},w=V;w>0;w--){var S=x(w);if(S==="break")break}t.placement!==B&&(t.modifiersData[r]._skip=!0,t.placement=B,t.reset=!0)}}var zb={name:"flip",enabled:!0,phase:"main",fn:Vb,requiresIfExists:["offset"],data:{_skip:!1}};function Tl(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Cl(e){return[et,lt,ut,tt].some(function(t){return e[t]>=0})}function qb(e){var t=e.state,n=e.name,r=t.rects.reference,l=t.rects.popper,o=t.modifiersData.preventOverflow,y=$n(t,{elementContext:"reference"}),h=$n(t,{altBoundary:!0}),f=Tl(y,r),u=Tl(h,l,o),a=Cl(f),p=Cl(u);t.modifiersData[n]={referenceClippingOffsets:f,popperEscapeOffsets:u,isReferenceHidden:a,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":a,"data-popper-escaped":p})}var Ub={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:qb};function Xb(e,t,n){var r=At(e),l=[tt,et].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,y=o[0],h=o[1];return y=y||0,h=(h||0)*l,[tt,lt].indexOf(r)>=0?{x:h,y}:{x:y,y:h}}function Jb(e){var t=e.state,n=e.options,r=e.name,l=n.offset,o=l===void 0?[0,0]:l,y=Hn.reduce(function(a,p){return a[p]=Xb(p,t.rects,o),a},{}),h=y[t.placement],f=h.x,u=h.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=y}var Wb={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Jb};function Hb(e){var t=e.state,n=e.name;t.modifiersData[n]=Cf({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var _f={name:"popperOffsets",enabled:!0,phase:"read",fn:Hb,data:{}};function Gb(e){return e==="x"?"y":"x"}function Kb(e){var t=e.state,n=e.options,r=e.name,l=n.mainAxis,o=l===void 0?!0:l,y=n.altAxis,h=y===void 0?!1:y,f=n.boundary,u=n.rootBoundary,a=n.altBoundary,p=n.padding,g=n.tether,m=g===void 0?!0:g,c=n.tetherOffset,i=c===void 0?0:c,s=$n(t,{boundary:f,rootBoundary:u,padding:p,altBoundary:a}),d=At(t.placement),v=jr(t.placement),E=!v,b=Ms(d),A=Gb(b),_=t.modifiersData.popperOffsets,D=t.rects.reference,F=t.rects.popper,B=typeof i=="function"?i(Object.assign({},t.rects,{placement:t.placement})):i,N=typeof B=="number"?{mainAxis:B,altAxis:B}:Object.assign({mainAxis:0,altAxis:0},B),I=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if(_){if(o){var M,$=b==="y"?et:tt,z=b==="y"?ut:lt,X=b==="y"?"height":"width",P=_[b],O=P+s[$],L=P-s[z],V=m?-F[X]/2:0,x=v===Ir?D[X]:F[X],w=v===Ir?-F[X]:-D[X],S=t.elements.arrow,T=m&&S?Ns(S):{width:0,height:0},C=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Ef(),j=C[$],U=C[z],H=On(0,D[X],T[X]),G=E?D[X]/2-V-H-j-N.mainAxis:x-H-j-N.mainAxis,ee=E?-D[X]/2+V+H+U+N.mainAxis:w+H+U+N.mainAxis,se=t.elements.arrow&&Gn(t.elements.arrow),pe=se?b==="y"?se.clientTop||0:se.clientLeft||0:0,he=(M=I==null?void 0:I[b])!=null?M:0,Q=P+G-he-pe,ie=P+ee-he,ae=On(m?Ci(O,Q):O,P,m?hr(L,ie):L);_[b]=ae,R[b]=ae-P}if(h){var ue,de=b==="x"?et:tt,W=b==="x"?ut:lt,be=_[A],_e=A==="y"?"height":"width",q=be+s[de],J=be-s[W],re=[et,tt].indexOf(d)!==-1,le=(ue=I==null?void 0:I[A])!=null?ue:0,ce=re?q:be-D[_e]-F[_e]-le+N.altAxis,ge=re?be+D[_e]+F[_e]-le-N.altAxis:J,me=m&&re?wb(ce,be,ge):On(m?ce:q,be,m?ge:J);_[A]=me,R[A]=me-be}t.modifiersData[r]=R}}var Yb={name:"preventOverflow",enabled:!0,phase:"main",fn:Kb,requiresIfExists:["offset"]};function Qb(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Zb(e){return e===gt(e)||!ot(e)?js(e):Qb(e)}function eS(e){var t=e.getBoundingClientRect(),n=Nr(t.width)/e.offsetWidth||1,r=Nr(t.height)/e.offsetHeight||1;return n!==1||r!==1}function tS(e,t,n){n===void 0&&(n=!1);var r=ot(t),l=ot(t)&&eS(t),o=sr(t),y=Mr(e,l),h={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(r||!r&&!n)&&((Pt(t)!=="body"||Rs(o))&&(h=Zb(t)),ot(t)?(f=Mr(t,!0),f.x+=t.clientLeft,f.y+=t.clientTop):o&&(f.x=Ls(o))),{x:y.left+h.scrollLeft-f.x,y:y.top+h.scrollTop-f.y,width:y.width,height:y.height}}function rS(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function l(o){n.add(o.name);var y=[].concat(o.requires||[],o.requiresIfExists||[]);y.forEach(function(h){if(!n.has(h)){var f=t.get(h);f&&l(f)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||l(o)}),r}function nS(e){var t=rS(e);return gb.reduce(function(n,r){return n.concat(t.filter(function(l){return l.phase===r}))},[])}function iS(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function aS(e){var t=e.reduce(function(n,r){var l=n[r.name];return n[r.name]=l?Object.assign({},l,r,{options:Object.assign({},l.options,r.options),data:Object.assign({},l.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var _l={placement:"bottom",modifiers:[],strategy:"absolute"};function Fl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function $s(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,l=t.defaultOptions,o=l===void 0?_l:l;return function(y,h,f){f===void 0&&(f=o);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},_l,o),modifiersData:{},elements:{reference:y,popper:h},attributes:{},styles:{}},a=[],p=!1,g={state:u,setOptions:function(i){var s=typeof i=="function"?i(u.options):i;c(),u.options=Object.assign({},o,u.options,s),u.scrollParents={reference:Br(y)?In(y):y.contextElement?In(y.contextElement):[],popper:In(h)};var d=nS(aS([].concat(r,u.options.modifiers)));return u.orderedModifiers=d.filter(function(v){return v.enabled}),m(),g.update()},forceUpdate:function(){if(!p){var i=u.elements,s=i.reference,d=i.popper;if(Fl(s,d)){u.rects={reference:tS(s,Gn(d),u.options.strategy==="fixed"),popper:Ns(d)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(F){return u.modifiersData[F.name]=Object.assign({},F.data)});for(var v=0;v<u.orderedModifiers.length;v++){if(u.reset===!0){u.reset=!1,v=-1;continue}var E=u.orderedModifiers[v],b=E.fn,A=E.options,_=A===void 0?{}:A,D=E.name;typeof b=="function"&&(u=b({state:u,options:_,name:D,instance:g})||u)}}}},update:iS(function(){return new Promise(function(i){g.forceUpdate(),i(u)})}),destroy:function(){c(),p=!0}};if(!Fl(y,h))return g;g.setOptions(f).then(function(i){!p&&f.onFirstUpdate&&f.onFirstUpdate(i)});function m(){u.orderedModifiers.forEach(function(i){var s=i.name,d=i.options,v=d===void 0?{}:d,E=i.effect;if(typeof E=="function"){var b=E({state:u,name:s,instance:g,options:v}),A=function(){};a.push(b||A)}})}function c(){a.forEach(function(i){return i()}),a=[]}return g}}$s();var sS=[Af,_f,Df,bf];$s({defaultModifiers:sS});var oS=[Af,_f,Df,bf,Wb,zb,Yb,Cb,Ub],uS=$s({defaultModifiers:oS});const lS=(e,t,n={})=>{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:f})=>{const u=cS(f);Object.assign(y.value,u)},requires:["computeStyles"]},l=Z(()=>{const{onFirstUpdate:f,placement:u,strategy:a,modifiers:p}=k(n);return{onFirstUpdate:f,placement:u||"bottom",strategy:a||"absolute",modifiers:[...p||[],r,{name:"applyStyles",enabled:!1}]}}),o=Yt(),y=oe({styles:{popper:{position:k(l).strategy,left:"0",right:"0"},arrow:{position:"absolute"}},attributes:{}}),h=()=>{o.value&&(o.value.destroy(),o.value=void 0)};return xe(l,f=>{const u=k(o);u&&u.setOptions(f)},{deep:!0}),xe([e,t],([f,u])=>{h(),!(!f||!u)&&(o.value=uS(f,u,k(l)))}),zt(()=>{h()}),{state:Z(()=>{var f;return{...((f=k(o))==null?void 0:f.state)||{}}}),styles:Z(()=>k(y).styles),attributes:Z(()=>k(y).attributes),update:()=>{var f;return(f=k(o))==null?void 0:f.update()},forceUpdate:()=>{var f;return(f=k(o))==null?void 0:f.forceUpdate()},instanceRef:Z(()=>k(o))}};function cS(e){const t=Object.keys(e.elements),n=wi(t.map(l=>[l,e.styles[l]||{}])),r=wi(t.map(l=>[l,e.attributes[l]]));return{styles:n,attributes:r}}function fS(){let e;const t=(r,l)=>{n(),e=window.setTimeout(r,l)},n=()=>window.clearTimeout(e);return Ds(()=>n()),{registerTimeout:t,cancelTimeout:n}}let Ar=[];const Pl=e=>{const t=e;t.key===Ln.esc&&Ar.forEach(n=>n(t))},dS=e=>{Ze(()=>{Ar.length===0&&document.addEventListener("keydown",Pl),st&&Ar.push(e)}),zt(()=>{Ar=Ar.filter(t=>t!==e),Ar.length===0&&st&&document.removeEventListener("keydown",Pl)})};let kl;const Ff=()=>{const e=Sr("namespace",Os),t=hf(),n=Z(()=>`${e.value}-popper-container-${t.prefix}`),r=Z(()=>`#${n.value}`);return{id:n,selector:r}},pS=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},hS=()=>{fd(()=>{if(!st)return;const{id:e,selector:t}=Ff();!kl&&!document.body.querySelector(t.value)&&(kl=pS(e.value))})},mS=Re({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200}}),vS=({showAfter:e,hideAfter:t,open:n,close:r})=>{const{registerTimeout:l}=fS();return{onOpen:h=>{l(()=>{n(h)},k(e))},onClose:h=>{l(()=>{r(h)},k(t))}}},Pf=Symbol("elForwardRef"),yS=e=>{Tt(Pf,{setForwardRef:n=>{e.value=n}})},gS=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),Ol=oe(0),bS=()=>{const e=Sr("zIndex",2e3),t=Z(()=>e.value+Ol.value);return{initialZIndex:e,currentZIndex:t,nextZIndex:()=>(Ol.value++,t.value)}};function SS(e){const t=oe();function n(){if(e.value==null)return;const{selectionStart:l,selectionEnd:o,value:y}=e.value;if(l==null||o==null)return;const h=y.slice(0,Math.max(0,l)),f=y.slice(Math.max(0,o));t.value={selectionStart:l,selectionEnd:o,value:y,beforeTxt:h,afterTxt:f}}function r(){if(e.value==null||t.value==null)return;const{value:l}=e.value,{beforeTxt:o,afterTxt:y,selectionStart:h}=t.value;if(o==null||y==null||h==null)return;let f=l.length;if(l.endsWith(y))f=l.length-y.length;else if(l.startsWith(o))f=o.length;else{const u=o[h-1],a=l.indexOf(u,h-1);a!==-1&&(f=a+1)}e.value.setSelectionRange(f,f)}return[n,r]}var $e=(e,t)=>{const n=e.__vccOpts||e;for(const[r,l]of t)n[r]=l;return n};const ES=Re({size:{type:Te([Number,String])},color:{type:String}}),xS=ye({name:"ElIcon",inheritAttrs:!1}),wS=ye({...xS,props:ES,setup(e){const t=e,n=Le("icon"),r=Z(()=>{const{size:l,color:o}=t;return!l&&!o?{}:{fontSize:Gt(l)?void 0:ss(l),"--color":o}});return(l,o)=>(te(),fe("i",Qt({class:k(n).b(),style:k(r)},l.$attrs),[Ie(l.$slots,"default")],16))}});var DS=$e(wS,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const xt=ft(DS);let ht;const AS=`
  height:0 !important;
  visibility:hidden !important;
  ${X0()?"":"overflow:hidden !important;"}
  position:absolute !important;
  z-index:-1000 !important;
  top:0 !important;
  right:0 !important;
`,TS=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function CS(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),l=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:TS.map(y=>`${y}:${t.getPropertyValue(y)}`).join(";"),paddingSize:r,borderSize:l,boxSizing:n}}function Il(e,t=1,n){var r;ht||(ht=document.createElement("textarea"),document.body.appendChild(ht));const{paddingSize:l,borderSize:o,boxSizing:y,contextStyle:h}=CS(e);ht.setAttribute("style",`${h};${AS}`),ht.value=e.value||e.placeholder||"";let f=ht.scrollHeight;const u={};y==="border-box"?f=f+o:y==="content-box"&&(f=f-l),ht.value="";const a=ht.scrollHeight-l;if(Me(t)){let p=a*t;y==="border-box"&&(p=p+l+o),f=Math.max(p,f),u.minHeight=`${p}px`}if(Me(n)){let p=a*n;y==="border-box"&&(p=p+l+o),f=Math.min(p,f)}return u.height=`${f}px`,(r=ht.parentNode)==null||r.removeChild(ht),ht=void 0,u}const _S=Re({id:{type:String,default:void 0},size:yr,disabled:Boolean,modelValue:{type:Te([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:Te([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:Ai},prefixIcon:{type:Ai},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:Te([Object,Array,String]),default:()=>H0({})}}),FS={[qe]:e=>Ye(e),input:e=>Ye(e),change:e=>Ye(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},PS=["role"],kS=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form"],OS=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form"],IS=ye({name:"ElInput",inheritAttrs:!1}),BS=ye({...IS,props:_S,emits:FS,setup(e,{expose:t,emit:n}){const r=e,l=sc(),o=Pi(),y=Z(()=>{const q={};return r.containerRole==="combobox"&&(q["aria-haspopup"]=l["aria-haspopup"],q["aria-owns"]=l["aria-owns"],q["aria-expanded"]=l["aria-expanded"]),q}),h=Z(()=>[r.type==="textarea"?s.b():i.b(),i.m(m.value),i.is("disabled",c.value),i.is("exceed",x.value),{[i.b("group")]:o.prepend||o.append,[i.bm("group","append")]:o.append,[i.bm("group","prepend")]:o.prepend,[i.m("prefix")]:o.prefix||r.prefixIcon,[i.m("suffix")]:o.suffix||r.suffixIcon||r.clearable||r.showPassword,[i.bm("suffix","password-clear")]:P.value&&O.value},l.class]),f=Z(()=>[i.e("wrapper"),i.is("focus",E.value)]),u=uf({excludeKeys:Z(()=>Object.keys(y.value))}),{form:a,formItem:p}=Er(),{inputId:g}=$i(r,{formItemContext:p}),m=Or(),c=Vr(),i=Le("input"),s=Le("textarea"),d=Yt(),v=Yt(),E=oe(!1),b=oe(!1),A=oe(!1),_=oe(!1),D=oe(),F=Yt(r.inputStyle),B=Z(()=>d.value||v.value),N=Z(()=>{var q;return(q=a==null?void 0:a.statusIcon)!=null?q:!1}),I=Z(()=>(p==null?void 0:p.validateState)||""),R=Z(()=>I.value&&z0[I.value]),M=Z(()=>_.value?$0:f0),$=Z(()=>[l.style,r.inputStyle]),z=Z(()=>[r.inputStyle,F.value,{resize:r.resize}]),X=Z(()=>Rt(r.modelValue)?"":String(r.modelValue)),P=Z(()=>r.clearable&&!c.value&&!r.readonly&&!!X.value&&(E.value||b.value)),O=Z(()=>r.showPassword&&!c.value&&!r.readonly&&!!X.value&&(!!X.value||E.value)),L=Z(()=>r.showWordLimit&&!!u.value.maxlength&&(r.type==="text"||r.type==="textarea")&&!c.value&&!r.readonly&&!r.showPassword),V=Z(()=>Array.from(X.value).length),x=Z(()=>!!L.value&&V.value>Number(u.value.maxlength)),w=Z(()=>!!o.suffix||!!r.suffixIcon||P.value||r.showPassword||L.value||!!I.value&&N.value),[S,T]=SS(d);rf(v,q=>{if(!L.value||r.resize!=="both")return;const J=q[0],{width:re}=J.contentRect;D.value={right:`calc(100% - ${re+15+6}px)`}});const C=()=>{const{type:q,autosize:J}=r;if(!(!st||q!=="textarea"||!v.value))if(J){const re=tr(J)?J.minRows:void 0,le=tr(J)?J.maxRows:void 0;F.value={...Il(v.value,re,le)}}else F.value={minHeight:Il(v.value).minHeight}},j=()=>{const q=B.value;!q||q.value===X.value||(q.value=X.value)},U=async q=>{S();let{value:J}=q.target;if(r.formatter&&(J=r.parser?r.parser(J):J,J=r.formatter(J)),!A.value){if(J===X.value){j();return}n(qe,J),n("input",J),await Je(),j(),T()}},H=q=>{n("change",q.target.value)},G=q=>{n("compositionstart",q),A.value=!0},ee=q=>{var J;n("compositionupdate",q);const re=(J=q.target)==null?void 0:J.value,le=re[re.length-1]||"";A.value=!J0(le)},se=q=>{n("compositionend",q),A.value&&(A.value=!1,U(q))},pe=()=>{_.value=!_.value,he()},he=async()=>{var q;await Je(),(q=B.value)==null||q.focus()},Q=()=>{var q;return(q=B.value)==null?void 0:q.blur()},ie=q=>{E.value=!0,n("focus",q)},ae=q=>{var J;E.value=!1,n("blur",q),r.validateEvent&&((J=p==null?void 0:p.validate)==null||J.call(p,"blur").catch(re=>void 0))},ue=q=>{b.value=!1,n("mouseleave",q)},de=q=>{b.value=!0,n("mouseenter",q)},W=q=>{n("keydown",q)},be=()=>{var q;(q=B.value)==null||q.select()},_e=()=>{n(qe,""),n("change",""),n("clear"),n("input","")};return xe(()=>r.modelValue,()=>{var q;Je(()=>C()),r.validateEvent&&((q=p==null?void 0:p.validate)==null||q.call(p,"change").catch(J=>void 0))}),xe(X,()=>j()),xe(()=>r.type,async()=>{await Je(),j(),C()}),Ze(()=>{!r.formatter&&r.parser,j(),Je(C)}),t({input:d,textarea:v,ref:B,textareaStyle:z,autosize:wt(r,"autosize"),focus:he,blur:Q,select:be,clear:_e,resizeTextarea:C}),(q,J)=>Ct((te(),fe("div",Qt(k(y),{class:k(h),style:k($),role:q.containerRole,onMouseenter:de,onMouseleave:ue}),[Ae(" input "),q.type!=="textarea"?(te(),fe(Ke,{key:0},[Ae(" prepend slot "),q.$slots.prepend?(te(),fe("div",{key:0,class:ve(k(i).be("group","prepend"))},[Ie(q.$slots,"prepend")],2)):Ae("v-if",!0),Se("div",{class:ve(k(f))},[Ae(" prefix slot "),q.$slots.prefix||q.prefixIcon?(te(),fe("span",{key:0,class:ve(k(i).e("prefix"))},[Se("span",{class:ve(k(i).e("prefix-inner")),onClick:he},[Ie(q.$slots,"prefix"),q.prefixIcon?(te(),Pe(k(xt),{key:0,class:ve(k(i).e("icon"))},{default:ke(()=>[(te(),Pe(Lt(q.prefixIcon)))]),_:1},8,["class"])):Ae("v-if",!0)],2)],2)):Ae("v-if",!0),Se("input",Qt({id:k(g),ref_key:"input",ref:d,class:k(i).e("inner")},k(u),{type:q.showPassword?_.value?"text":"password":q.type,disabled:k(c),formatter:q.formatter,parser:q.parser,readonly:q.readonly,autocomplete:q.autocomplete,tabindex:q.tabindex,"aria-label":q.label,placeholder:q.placeholder,style:q.inputStyle,form:r.form,onCompositionstart:G,onCompositionupdate:ee,onCompositionend:se,onInput:U,onFocus:ie,onBlur:ae,onChange:H,onKeydown:W}),null,16,kS),Ae(" suffix slot "),k(w)?(te(),fe("span",{key:1,class:ve(k(i).e("suffix"))},[Se("span",{class:ve(k(i).e("suffix-inner")),onClick:he},[!k(P)||!k(O)||!k(L)?(te(),fe(Ke,{key:0},[Ie(q.$slots,"suffix"),q.suffixIcon?(te(),Pe(k(xt),{key:0,class:ve(k(i).e("icon"))},{default:ke(()=>[(te(),Pe(Lt(q.suffixIcon)))]),_:1},8,["class"])):Ae("v-if",!0)],64)):Ae("v-if",!0),k(P)?(te(),Pe(k(xt),{key:1,class:ve([k(i).e("icon"),k(i).e("clear")]),onMousedown:_r(k(Pr),["prevent"]),onClick:_e},{default:ke(()=>[Fe(k(nf))]),_:1},8,["class","onMousedown"])):Ae("v-if",!0),k(O)?(te(),Pe(k(xt),{key:2,class:ve([k(i).e("icon"),k(i).e("password")]),onClick:pe},{default:ke(()=>[(te(),Pe(Lt(k(M))))]),_:1},8,["class"])):Ae("v-if",!0),k(L)?(te(),fe("span",{key:3,class:ve(k(i).e("count"))},[Se("span",{class:ve(k(i).e("count-inner"))},at(k(V))+" / "+at(k(u).maxlength),3)],2)):Ae("v-if",!0),k(I)&&k(R)&&k(N)?(te(),Pe(k(xt),{key:4,class:ve([k(i).e("icon"),k(i).e("validateIcon"),k(i).is("loading",k(I)==="validating")])},{default:ke(()=>[(te(),Pe(Lt(k(R))))]),_:1},8,["class"])):Ae("v-if",!0)],2)],2)):Ae("v-if",!0)],2),Ae(" append slot "),q.$slots.append?(te(),fe("div",{key:1,class:ve(k(i).be("group","append"))},[Ie(q.$slots,"append")],2)):Ae("v-if",!0)],64)):(te(),fe(Ke,{key:1},[Ae(" textarea "),Se("textarea",Qt({id:k(g),ref_key:"textarea",ref:v,class:k(s).e("inner")},k(u),{tabindex:q.tabindex,disabled:k(c),readonly:q.readonly,autocomplete:q.autocomplete,style:k(z),"aria-label":q.label,placeholder:q.placeholder,form:r.form,onCompositionstart:G,onCompositionupdate:ee,onCompositionend:se,onInput:U,onFocus:ie,onBlur:ae,onChange:H,onKeydown:W}),null,16,OS),k(L)?(te(),fe("span",{key:0,style:He(D.value),class:ve(k(i).e("count"))},at(k(V))+" / "+at(k(u).maxlength),7)):Ae("v-if",!0)],64))],16,PS)),[[ds,q.type!=="hidden"]])}});var NS=$e(BS,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]);const Kn=ft(NS),Cr=4,MS={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},jS=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),LS=Re({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),RS="Thumb",$S=ye({__name:"thumb",props:LS,setup(e){const t=e,n=Ve(cf),r=Le("scrollbar");n||Ts(RS,"can not inject scrollbar context");const l=oe(),o=oe(),y=oe({}),h=oe(!1);let f=!1,u=!1,a=st?document.onselectstart:null;const p=Z(()=>MS[t.vertical?"vertical":"horizontal"]),g=Z(()=>jS({size:t.size,move:t.move,bar:p.value})),m=Z(()=>l.value[p.value.offset]**2/n.wrapElement[p.value.scrollSize]/t.ratio/o.value[p.value.offset]),c=_=>{var D;if(_.stopPropagation(),_.ctrlKey||[1,2].includes(_.button))return;(D=window.getSelection())==null||D.removeAllRanges(),s(_);const F=_.currentTarget;F&&(y.value[p.value.axis]=F[p.value.offset]-(_[p.value.client]-F.getBoundingClientRect()[p.value.direction]))},i=_=>{if(!o.value||!l.value||!n.wrapElement)return;const D=Math.abs(_.target.getBoundingClientRect()[p.value.direction]-_[p.value.client]),F=o.value[p.value.offset]/2,B=(D-F)*100*m.value/l.value[p.value.offset];n.wrapElement[p.value.scroll]=B*n.wrapElement[p.value.scrollSize]/100},s=_=>{_.stopImmediatePropagation(),f=!0,document.addEventListener("mousemove",d),document.addEventListener("mouseup",v),a=document.onselectstart,document.onselectstart=()=>!1},d=_=>{if(!l.value||!o.value||f===!1)return;const D=y.value[p.value.axis];if(!D)return;const F=(l.value.getBoundingClientRect()[p.value.direction]-_[p.value.client])*-1,B=o.value[p.value.offset]-D,N=(F-B)*100*m.value/l.value[p.value.offset];n.wrapElement[p.value.scroll]=N*n.wrapElement[p.value.scrollSize]/100},v=()=>{f=!1,y.value[p.value.axis]=0,document.removeEventListener("mousemove",d),document.removeEventListener("mouseup",v),A(),u&&(h.value=!1)},E=()=>{u=!1,h.value=!!t.size},b=()=>{u=!0,h.value=f};zt(()=>{A(),document.removeEventListener("mouseup",v)});const A=()=>{document.onselectstart!==a&&(document.onselectstart=a)};return pr(wt(n,"scrollbarElement"),"mousemove",E),pr(wt(n,"scrollbarElement"),"mouseleave",b),(_,D)=>(te(),Pe(oc,{name:k(r).b("fade"),persisted:""},{default:ke(()=>[Ct(Se("div",{ref_key:"instance",ref:l,class:ve([k(r).e("bar"),k(r).is(k(p).key)]),onMousedown:i},[Se("div",{ref_key:"thumb",ref:o,class:ve(k(r).e("thumb")),style:He(k(g)),onMousedown:c},null,38)],34),[[ds,_.always||h.value]])]),_:1},8,["name"]))}});var Bl=$e($S,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const VS=Re({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),zS=ye({__name:"bar",props:VS,setup(e,{expose:t}){const n=e,r=oe(0),l=oe(0);return t({handleScroll:y=>{if(y){const h=y.offsetHeight-Cr,f=y.offsetWidth-Cr;l.value=y.scrollTop*100/h*n.ratioY,r.value=y.scrollLeft*100/f*n.ratioX}}}),(y,h)=>(te(),fe(Ke,null,[Fe(Bl,{move:r.value,ratio:y.ratioX,size:y.width,always:y.always},null,8,["move","ratio","size","always"]),Fe(Bl,{move:l.value,ratio:y.ratioY,size:y.height,vertical:"",always:y.always},null,8,["move","ratio","size","always"])],64))}});var qS=$e(zS,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const US=Re({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:Te([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20}}),XS={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(Me)},JS="ElScrollbar",WS=ye({name:JS}),HS=ye({...WS,props:US,emits:XS,setup(e,{expose:t,emit:n}){const r=e,l=Le("scrollbar");let o,y;const h=oe(),f=oe(),u=oe(),a=oe("0"),p=oe("0"),g=oe(),m=oe(1),c=oe(1),i=Z(()=>{const D={};return r.height&&(D.height=ss(r.height)),r.maxHeight&&(D.maxHeight=ss(r.maxHeight)),[r.wrapStyle,D]}),s=Z(()=>[r.wrapClass,l.e("wrap"),{[l.em("wrap","hidden-default")]:!r.native}]),d=Z(()=>[l.e("view"),r.viewClass]),v=()=>{var D;f.value&&((D=g.value)==null||D.handleScroll(f.value),n("scroll",{scrollTop:f.value.scrollTop,scrollLeft:f.value.scrollLeft}))};function E(D,F){tr(D)?f.value.scrollTo(D):Me(D)&&Me(F)&&f.value.scrollTo(D,F)}const b=D=>{Me(D)&&(f.value.scrollTop=D)},A=D=>{Me(D)&&(f.value.scrollLeft=D)},_=()=>{if(!f.value)return;const D=f.value.offsetHeight-Cr,F=f.value.offsetWidth-Cr,B=D**2/f.value.scrollHeight,N=F**2/f.value.scrollWidth,I=Math.max(B,r.minSize),R=Math.max(N,r.minSize);m.value=B/(D-B)/(I/(D-I)),c.value=N/(F-N)/(R/(F-R)),p.value=I+Cr<D?`${I}px`:"",a.value=R+Cr<F?`${R}px`:""};return xe(()=>r.noresize,D=>{D?(o==null||o(),y==null||y()):({stop:o}=rf(u,_),y=pr("resize",_))},{immediate:!0}),xe(()=>[r.maxHeight,r.height],()=>{r.native||Je(()=>{var D;_(),f.value&&((D=g.value)==null||D.handleScroll(f.value))})}),Tt(cf,qn({scrollbarElement:h,wrapElement:f})),Ze(()=>{r.native||Je(()=>{_()})}),uc(()=>_()),t({wrapRef:f,update:_,scrollTo:E,setScrollTop:b,setScrollLeft:A,handleScroll:v}),(D,F)=>(te(),fe("div",{ref_key:"scrollbarRef",ref:h,class:ve(k(l).b())},[Se("div",{ref_key:"wrapRef",ref:f,class:ve(k(s)),style:He(k(i)),onScroll:v},[(te(),Pe(Lt(D.tag),{ref_key:"resizeRef",ref:u,class:ve(k(d)),style:He(D.viewStyle)},{default:ke(()=>[Ie(D.$slots,"default")]),_:3},8,["class","style"]))],38),D.native?Ae("v-if",!0):(te(),Pe(qS,{key:0,ref_key:"barRef",ref:g,height:p.value,width:a.value,always:D.always,"ratio-x":c.value,"ratio-y":m.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var GS=$e(HS,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);const KS=ft(GS),YS=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],kf=Re({role:{type:String,values:YS,default:"tooltip"}}),QS=ye({name:"ElPopper",inheritAttrs:!1}),ZS=ye({...QS,props:kf,setup(e,{expose:t}){const n=e,r=oe(),l=oe(),o=oe(),y=oe(),h=Z(()=>n.role),f={triggerRef:r,popperInstanceRef:l,contentRef:o,referenceRef:y,role:h};return t(f),Tt(Ps,f),(u,a)=>Ie(u.$slots,"default")}});var eE=$e(ZS,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const Of=Re({arrowOffset:{type:Number,default:5}}),tE=ye({name:"ElPopperArrow",inheritAttrs:!1}),rE=ye({...tE,props:Of,setup(e,{expose:t}){const n=e,r=Le("popper"),{arrowOffset:l,arrowRef:o,arrowStyle:y}=Ve(df,void 0);return xe(()=>n.arrowOffset,h=>{l.value=h}),zt(()=>{o.value=void 0}),t({arrowRef:o}),(h,f)=>(te(),fe("span",{ref_key:"arrowRef",ref:o,class:ve(k(r).e("arrow")),style:He(k(y)),"data-popper-arrow":""},null,6))}});var nE=$e(rE,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const iE="ElOnlyChild",aE=ye({name:iE,setup(e,{slots:t,attrs:n}){var r;const l=Ve(Pf),o=gS((r=l==null?void 0:l.setForwardRef)!=null?r:Pr);return()=>{var y;const h=(y=t.default)==null?void 0:y.call(t,n);if(!h||h.length>1)return null;const f=If(h);return f?Ct(dd(f,n),[[o]]):null}}});function If(e){if(!e)return null;const t=e;for(const n of t){if(tr(n))switch(n.type){case ic:continue;case lc:case"svg":return Nl(n);case Ke:return If(n.children);default:return n}return Nl(n)}return null}function Nl(e){const t=Le("only-child");return Fe("span",{class:t.e("content")},[e])}const Bf=Re({virtualRef:{type:Te(Object)},virtualTriggering:Boolean,onMouseenter:{type:Te(Function)},onMouseleave:{type:Te(Function)},onClick:{type:Te(Function)},onKeydown:{type:Te(Function)},onFocus:{type:Te(Function)},onBlur:{type:Te(Function)},onContextmenu:{type:Te(Function)},id:String,open:Boolean}),sE=ye({name:"ElPopperTrigger",inheritAttrs:!1}),oE=ye({...sE,props:Bf,setup(e,{expose:t}){const n=e,{role:r,triggerRef:l}=Ve(Ps,void 0);yS(l);const o=Z(()=>h.value?n.id:void 0),y=Z(()=>{if(r&&r.value==="tooltip")return n.open&&n.id?n.id:void 0}),h=Z(()=>{if(r&&r.value!=="tooltip")return r.value}),f=Z(()=>h.value?`${n.open}`:void 0);let u;return Ze(()=>{xe(()=>n.virtualRef,a=>{a&&(l.value=Ht(a))},{immediate:!0}),xe(l,(a,p)=>{u==null||u(),u=void 0,Di(a)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(g=>{var m;const c=n[g];c&&(a.addEventListener(g.slice(2).toLowerCase(),c),(m=p==null?void 0:p.removeEventListener)==null||m.call(p,g.slice(2).toLowerCase(),c))}),u=xe([o,y,h,f],g=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((m,c)=>{Rt(g[c])?a.removeAttribute(m):a.setAttribute(m,g[c])})},{immediate:!0})),Di(p)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(g=>p.removeAttribute(g))},{immediate:!0})}),zt(()=>{u==null||u(),u=void 0}),t({triggerRef:l}),(a,p)=>a.virtualTriggering?Ae("v-if",!0):(te(),Pe(k(aE),Qt({key:0},a.$attrs,{"aria-controls":k(o),"aria-describedby":k(y),"aria-expanded":k(f),"aria-haspopup":k(h)}),{default:ke(()=>[Ie(a.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var uE=$e(oE,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]);const Va="focus-trap.focus-after-trapped",za="focus-trap.focus-after-released",lE="focus-trap.focusout-prevented",Ml={cancelable:!0,bubbles:!1},cE={cancelable:!0,bubbles:!1},jl="focusAfterTrapped",Ll="focusAfterReleased",fE=Symbol("elFocusTrap"),Vs=oe(),zi=oe(0),zs=oe(0);let oi=0;const Nf=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const l=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||l?NodeFilter.FILTER_SKIP:r.tabIndex>=0||r===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},Rl=(e,t)=>{for(const n of e)if(!dE(n,t))return n},dE=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},pE=e=>{const t=Nf(e),n=Rl(t,e),r=Rl(t.reverse(),e);return[n,r]},hE=e=>e instanceof HTMLInputElement&&"select"in e,Wt=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),zs.value=window.performance.now(),e!==n&&hE(e)&&t&&e.select()}};function $l(e,t){const n=[...e],r=e.indexOf(t);return r!==-1&&n.splice(r,1),n}const mE=()=>{let e=[];return{push:r=>{const l=e[0];l&&r!==l&&l.pause(),e=$l(e,r),e.unshift(r)},remove:r=>{var l,o;e=$l(e,r),(o=(l=e[0])==null?void 0:l.resume)==null||o.call(l)}}},vE=(e,t=!1)=>{const n=document.activeElement;for(const r of e)if(Wt(r,t),document.activeElement!==n)return},Vl=mE(),yE=()=>zi.value>zs.value,ui=()=>{Vs.value="pointer",zi.value=window.performance.now()},zl=()=>{Vs.value="keyboard",zi.value=window.performance.now()},gE=()=>(Ze(()=>{oi===0&&(document.addEventListener("mousedown",ui),document.addEventListener("touchstart",ui),document.addEventListener("keydown",zl)),oi++}),zt(()=>{oi--,oi<=0&&(document.removeEventListener("mousedown",ui),document.removeEventListener("touchstart",ui),document.removeEventListener("keydown",zl))}),{focusReason:Vs,lastUserFocusTimestamp:zi,lastAutomatedFocusTimestamp:zs}),li=e=>new CustomEvent(lE,{...cE,detail:e}),bE=ye({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[jl,Ll,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=oe();let r,l;const{focusReason:o}=gE();dS(c=>{e.trapped&&!y.paused&&t("release-requested",c)});const y={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},h=c=>{if(!e.loop&&!e.trapped||y.paused)return;const{key:i,altKey:s,ctrlKey:d,metaKey:v,currentTarget:E,shiftKey:b}=c,{loop:A}=e,_=i===Ln.tab&&!s&&!d&&!v,D=document.activeElement;if(_&&D){const F=E,[B,N]=pE(F);if(B&&N){if(!b&&D===N){const R=li({focusReason:o.value});t("focusout-prevented",R),R.defaultPrevented||(c.preventDefault(),A&&Wt(B,!0))}else if(b&&[B,F].includes(D)){const R=li({focusReason:o.value});t("focusout-prevented",R),R.defaultPrevented||(c.preventDefault(),A&&Wt(N,!0))}}else if(D===F){const R=li({focusReason:o.value});t("focusout-prevented",R),R.defaultPrevented||c.preventDefault()}}};Tt(fE,{focusTrapRef:n,onKeydown:h}),xe(()=>e.focusTrapEl,c=>{c&&(n.value=c)},{immediate:!0}),xe([n],([c],[i])=>{c&&(c.addEventListener("keydown",h),c.addEventListener("focusin",a),c.addEventListener("focusout",p)),i&&(i.removeEventListener("keydown",h),i.removeEventListener("focusin",a),i.removeEventListener("focusout",p))});const f=c=>{t(jl,c)},u=c=>t(Ll,c),a=c=>{const i=k(n);if(!i)return;const s=c.target,d=c.relatedTarget,v=s&&i.contains(s);e.trapped||d&&i.contains(d)||(r=d),v&&t("focusin",c),!y.paused&&e.trapped&&(v?l=s:Wt(l,!0))},p=c=>{const i=k(n);if(!(y.paused||!i))if(e.trapped){const s=c.relatedTarget;!Rt(s)&&!i.contains(s)&&setTimeout(()=>{if(!y.paused&&e.trapped){const d=li({focusReason:o.value});t("focusout-prevented",d),d.defaultPrevented||Wt(l,!0)}},0)}else{const s=c.target;s&&i.contains(s)||t("focusout",c)}};async function g(){await Je();const c=k(n);if(c){Vl.push(y);const i=c.contains(document.activeElement)?r:document.activeElement;if(r=i,!c.contains(i)){const d=new Event(Va,Ml);c.addEventListener(Va,f),c.dispatchEvent(d),d.defaultPrevented||Je(()=>{let v=e.focusStartEl;Ye(v)||(Wt(v),document.activeElement!==v&&(v="first")),v==="first"&&vE(Nf(c),!0),(document.activeElement===i||v==="container")&&Wt(c)})}}}function m(){const c=k(n);if(c){c.removeEventListener(Va,f);const i=new CustomEvent(za,{...Ml,detail:{focusReason:o.value}});c.addEventListener(za,u),c.dispatchEvent(i),!i.defaultPrevented&&(o.value=="keyboard"||!yE()||c.contains(document.activeElement))&&Wt(r??document.body),c.removeEventListener(za,f),Vl.remove(y)}}return Ze(()=>{e.trapped&&g(),xe(()=>e.trapped,c=>{c?g():m()})}),zt(()=>{e.trapped&&m()}),{onKeydown:h}}});function SE(e,t,n,r,l,o){return Ie(e.$slots,"default",{handleKeydown:e.onKeydown})}var EE=$e(bE,[["render",SE],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const xE=["fixed","absolute"],wE=Re({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:Te(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Hn,default:"bottom"},popperOptions:{type:Te(Object),default:()=>({})},strategy:{type:String,values:xE,default:"absolute"}}),Mf=Re({...wE,id:String,style:{type:Te([String,Array,Object])},className:{type:Te([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:Te([String,Array,Object])},popperStyle:{type:Te([String,Array,Object])},referenceEl:{type:Te(Object)},triggerTargetEl:{type:Te(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),DE={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},AE=(e,t=[])=>{const{placement:n,strategy:r,popperOptions:l}=e,o={placement:n,strategy:r,...l,modifiers:[...CE(e),...t]};return _E(o,l==null?void 0:l.modifiers),o},TE=e=>{if(st)return Ht(e)};function CE(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:r}=e;return[{name:"offset",options:{offset:[0,t??12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:r}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function _E(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const FE=0,PE=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:r,role:l}=Ve(Ps,void 0),o=oe(),y=oe(),h=Z(()=>({name:"eventListeners",enabled:!!e.visible})),f=Z(()=>{var d;const v=k(o),E=(d=k(y))!=null?d:FE;return{name:"arrow",enabled:!rg(v),options:{element:v,padding:E}}}),u=Z(()=>({onFirstUpdate:()=>{c()},...AE(e,[k(f),k(h)])})),a=Z(()=>TE(e.referenceEl)||k(r)),{attributes:p,state:g,styles:m,update:c,forceUpdate:i,instanceRef:s}=lS(a,n,u);return xe(s,d=>t.value=d),Ze(()=>{xe(()=>{var d;return(d=k(a))==null?void 0:d.getBoundingClientRect()},()=>{c()})}),{attributes:p,arrowRef:o,contentRef:n,instanceRef:s,state:g,styles:m,role:l,forceUpdate:i,update:c}},kE=(e,{attributes:t,styles:n,role:r})=>{const{nextZIndex:l}=bS(),o=Le("popper"),y=Z(()=>k(t).popper),h=oe(e.zIndex||l()),f=Z(()=>[o.b(),o.is("pure",e.pure),o.is(e.effect),e.popperClass]),u=Z(()=>[{zIndex:k(h)},e.popperStyle||{},k(n).popper]),a=Z(()=>r.value==="dialog"?"false":void 0),p=Z(()=>k(n).arrow||{});return{ariaModal:a,arrowStyle:p,contentAttrs:y,contentClass:f,contentStyle:u,contentZIndex:h,updateZIndex:()=>{h.value=e.zIndex||l()}}},OE=(e,t)=>{const n=oe(!1),r=oe();return{focusStartRef:r,trapped:n,onFocusAfterReleased:u=>{var a;((a=u.detail)==null?void 0:a.focusReason)!=="pointer"&&(r.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:u=>{e.visible&&!n.value&&(u.target&&(r.value=u.target),n.value=!0)},onFocusoutPrevented:u=>{e.trapping||(u.detail.focusReason==="pointer"&&u.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,t("close")}}},IE=ye({name:"ElPopperContent"}),BE=ye({...IE,props:Mf,emits:DE,setup(e,{expose:t,emit:n}){const r=e,{focusStartRef:l,trapped:o,onFocusAfterReleased:y,onFocusAfterTrapped:h,onFocusInTrap:f,onFocusoutPrevented:u,onReleaseRequested:a}=OE(r,n),{attributes:p,arrowRef:g,contentRef:m,styles:c,instanceRef:i,role:s,update:d}=PE(r),{ariaModal:v,arrowStyle:E,contentAttrs:b,contentClass:A,contentStyle:_,updateZIndex:D}=kE(r,{styles:c,attributes:p,role:s}),F=Ve(Ti,void 0),B=oe();Tt(df,{arrowStyle:E,arrowRef:g,arrowOffset:B}),F&&(F.addInputId||F.removeInputId)&&Tt(Ti,{...F,addInputId:Pr,removeInputId:Pr});let N;const I=(M=!0)=>{d(),M&&D()},R=()=>{I(!1),r.visible&&r.focusOnShow?o.value=!0:r.visible===!1&&(o.value=!1)};return Ze(()=>{xe(()=>r.triggerTargetEl,(M,$)=>{N==null||N(),N=void 0;const z=k(M||m.value),X=k($||m.value);Di(z)&&(N=xe([s,()=>r.ariaLabel,v,()=>r.id],P=>{["role","aria-label","aria-modal","id"].forEach((O,L)=>{Rt(P[L])?z.removeAttribute(O):z.setAttribute(O,P[L])})},{immediate:!0})),X!==z&&Di(X)&&["role","aria-label","aria-modal","id"].forEach(P=>{X.removeAttribute(P)})},{immediate:!0}),xe(()=>r.visible,R,{immediate:!0})}),zt(()=>{N==null||N(),N=void 0}),t({popperContentRef:m,popperInstanceRef:i,updatePopper:I,contentStyle:_}),(M,$)=>(te(),fe("div",Qt({ref_key:"contentRef",ref:m},k(b),{style:k(_),class:k(A),tabindex:"-1",onMouseenter:$[0]||($[0]=z=>M.$emit("mouseenter",z)),onMouseleave:$[1]||($[1]=z=>M.$emit("mouseleave",z))}),[Fe(k(EE),{trapped:k(o),"trap-on-focus-in":!0,"focus-trap-el":k(m),"focus-start-el":k(l),onFocusAfterTrapped:k(h),onFocusAfterReleased:k(y),onFocusin:k(f),onFocusoutPrevented:k(u),onReleaseRequested:k(a)},{default:ke(()=>[Ie(M.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var NE=$e(BE,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const ME=ft(eE),jE=Le("tooltip"),qs=Re({...mS,...Mf,appendTo:{type:Te([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:Te(Boolean),default:null},transition:{type:String,default:`${jE.namespace.value}-fade-in-linear`},teleported:{type:Boolean,default:!0},disabled:{type:Boolean}}),jf=Re({...Bf,disabled:Boolean,trigger:{type:Te([String,Array]),default:"hover"},triggerKeys:{type:Te(Array),default:()=>[Ln.enter,Ln.space]}}),{useModelToggleProps:LE,useModelToggleEmits:RE,useModelToggle:$E}=yf("visible"),VE=Re({...kf,...LE,...qs,...jf,...Of,showArrow:{type:Boolean,default:!0}}),zE=[...RE,"before-show","before-hide","show","hide","open","close"],qE=(e,t)=>Qe(e)?e.includes(t):e===t,Dr=(e,t,n)=>r=>{qE(k(e),t)&&n(r)},UE=ye({name:"ElTooltipTrigger"}),XE=ye({...UE,props:jf,setup(e,{expose:t}){const n=e,r=Le("tooltip"),{controlled:l,id:o,open:y,onOpen:h,onClose:f,onToggle:u}=Ve(ks,void 0),a=oe(null),p=()=>{if(k(l)||n.disabled)return!0},g=wt(n,"trigger"),m=Mt(p,Dr(g,"hover",h)),c=Mt(p,Dr(g,"hover",f)),i=Mt(p,Dr(g,"click",b=>{b.button===0&&u(b)})),s=Mt(p,Dr(g,"focus",h)),d=Mt(p,Dr(g,"focus",f)),v=Mt(p,Dr(g,"contextmenu",b=>{b.preventDefault(),u(b)})),E=Mt(p,b=>{const{code:A}=b;n.triggerKeys.includes(A)&&(b.preventDefault(),u(b))});return t({triggerRef:a}),(b,A)=>(te(),Pe(k(uE),{id:k(o),"virtual-ref":b.virtualRef,open:k(y),"virtual-triggering":b.virtualTriggering,class:ve(k(r).e("trigger")),onBlur:k(d),onClick:k(i),onContextmenu:k(v),onFocus:k(s),onMouseenter:k(m),onMouseleave:k(c),onKeydown:k(E)},{default:ke(()=>[Ie(b.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var JE=$e(XE,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const WE=ye({name:"ElTooltipContent",inheritAttrs:!1}),HE=ye({...WE,props:qs,setup(e,{expose:t}){const n=e,{selector:r}=Ff(),l=oe(null),o=oe(!1),{controlled:y,id:h,open:f,trigger:u,onClose:a,onOpen:p,onShow:g,onHide:m,onBeforeShow:c,onBeforeHide:i}=Ve(ks,void 0),s=Z(()=>n.persistent);zt(()=>{o.value=!0});const d=Z(()=>k(s)?!0:k(f)),v=Z(()=>n.disabled?!1:k(f)),E=Z(()=>n.appendTo||r.value),b=Z(()=>{var z;return(z=n.style)!=null?z:{}}),A=Z(()=>!k(f)),_=()=>{m()},D=()=>{if(k(y))return!0},F=Mt(D,()=>{n.enterable&&k(u)==="hover"&&p()}),B=Mt(D,()=>{k(u)==="hover"&&a()}),N=()=>{var z,X;(X=(z=l.value)==null?void 0:z.updatePopper)==null||X.call(z),c==null||c()},I=()=>{i==null||i()},R=()=>{g(),$=tf(Z(()=>{var z;return(z=l.value)==null?void 0:z.popperContentRef}),()=>{if(k(y))return;k(u)!=="hover"&&a()})},M=()=>{n.virtualTriggering||a()};let $;return xe(()=>k(f),z=>{z||$==null||$()},{flush:"post"}),xe(()=>n.content,()=>{var z,X;(X=(z=l.value)==null?void 0:z.updatePopper)==null||X.call(z)}),t({contentRef:l}),(z,X)=>(te(),Pe(pd,{disabled:!z.teleported,to:k(E)},[Fe(oc,{name:z.transition,onAfterLeave:_,onBeforeEnter:N,onAfterEnter:R,onBeforeLeave:I},{default:ke(()=>[k(d)?Ct((te(),Pe(k(NE),Qt({key:0,id:k(h),ref_key:"contentRef",ref:l},z.$attrs,{"aria-label":z.ariaLabel,"aria-hidden":k(A),"boundaries-padding":z.boundariesPadding,"fallback-placements":z.fallbackPlacements,"gpu-acceleration":z.gpuAcceleration,offset:z.offset,placement:z.placement,"popper-options":z.popperOptions,strategy:z.strategy,effect:z.effect,enterable:z.enterable,pure:z.pure,"popper-class":z.popperClass,"popper-style":[z.popperStyle,k(b)],"reference-el":z.referenceEl,"trigger-target-el":z.triggerTargetEl,visible:k(v),"z-index":z.zIndex,onMouseenter:k(F),onMouseleave:k(B),onBlur:M,onClose:k(a)}),{default:ke(()=>[o.value?Ae("v-if",!0):Ie(z.$slots,"default",{key:0})]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[ds,k(v)]]):Ae("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var GE=$e(HE,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const KE=["innerHTML"],YE={key:1},QE=ye({name:"ElTooltip"}),ZE=ye({...QE,props:VE,emits:zE,setup(e,{expose:t,emit:n}){const r=e;hS();const l=mf(),o=oe(),y=oe(),h=()=>{var d;const v=k(o);v&&((d=v.popperInstanceRef)==null||d.update())},f=oe(!1),u=oe(),{show:a,hide:p,hasUpdateHandler:g}=$E({indicator:f,toggleReason:u}),{onOpen:m,onClose:c}=vS({showAfter:wt(r,"showAfter"),hideAfter:wt(r,"hideAfter"),open:a,close:p}),i=Z(()=>jn(r.visible)&&!g.value);Tt(ks,{controlled:i,id:l,open:hd(f),trigger:wt(r,"trigger"),onOpen:d=>{m(d)},onClose:d=>{c(d)},onToggle:d=>{k(f)?c(d):m(d)},onShow:()=>{n("show",u.value)},onHide:()=>{n("hide",u.value)},onBeforeShow:()=>{n("before-show",u.value)},onBeforeHide:()=>{n("before-hide",u.value)},updatePopper:h}),xe(()=>r.disabled,d=>{d&&f.value&&(f.value=!1)});const s=()=>{var d,v;const E=(v=(d=y.value)==null?void 0:d.contentRef)==null?void 0:v.popperContentRef;return E&&E.contains(document.activeElement)};return md(()=>f.value&&p()),t({popperRef:o,contentRef:y,isFocusInsideContent:s,updatePopper:h,onOpen:m,onClose:c,hide:p}),(d,v)=>(te(),Pe(k(ME),{ref_key:"popperRef",ref:o,role:d.role},{default:ke(()=>[Fe(JE,{disabled:d.disabled,trigger:d.trigger,"trigger-keys":d.triggerKeys,"virtual-ref":d.virtualRef,"virtual-triggering":d.virtualTriggering},{default:ke(()=>[d.$slots.default?Ie(d.$slots,"default",{key:0}):Ae("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),Fe(GE,{ref_key:"contentRef",ref:y,"aria-label":d.ariaLabel,"boundaries-padding":d.boundariesPadding,content:d.content,disabled:d.disabled,effect:d.effect,enterable:d.enterable,"fallback-placements":d.fallbackPlacements,"hide-after":d.hideAfter,"gpu-acceleration":d.gpuAcceleration,offset:d.offset,persistent:d.persistent,"popper-class":d.popperClass,"popper-style":d.popperStyle,placement:d.placement,"popper-options":d.popperOptions,pure:d.pure,"raw-content":d.rawContent,"reference-el":d.referenceEl,"trigger-target-el":d.triggerTargetEl,"show-after":d.showAfter,strategy:d.strategy,teleported:d.teleported,transition:d.transition,"virtual-triggering":d.virtualTriggering,"z-index":d.zIndex,"append-to":d.appendTo},{default:ke(()=>[Ie(d.$slots,"content",{},()=>[d.rawContent?(te(),fe("span",{key:0,innerHTML:d.content},null,8,KE)):(te(),fe("span",YE,at(d.content),1))]),d.showArrow?(te(),Pe(k(nE),{key:0,"arrow-offset":d.arrowOffset},null,8,["arrow-offset"])):Ae("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var ex=$e(ZE,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const Lf=ft(ex),tx=Re({valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:Te(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:Te([Function,Array]),default:Pr},popperClass:{type:String,default:""},triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:{type:Boolean,default:!1},hideLoading:{type:Boolean,default:!1},label:{type:String},teleported:qs.teleported,highlightFirstItem:{type:Boolean,default:!1},fitInputWidth:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},name:String}),rx={[qe]:e=>Ye(e),[Dt]:e=>Ye(e),[Rr]:e=>Ye(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,select:e=>tr(e)},nx=["aria-expanded","aria-owns"],ix={key:0},ax=["id","aria-selected","onClick"],Rf="ElAutocomplete",sx=ye({name:Rf,inheritAttrs:!1}),ox=ye({...sx,props:tx,emits:rx,setup(e,{expose:t,emit:n}){const r=e,l=uf(),o=sc(),y=Vr(),h=Le("autocomplete"),f=oe(),u=oe(),a=oe(),p=oe();let g=!1,m=!1;const c=oe([]),i=oe(-1),s=oe(""),d=oe(!1),v=oe(!1),E=oe(!1),b=Z(()=>h.b(String(W0()))),A=Z(()=>o.style),_=Z(()=>(c.value.length>0||E.value)&&d.value),D=Z(()=>!r.hideLoading&&E.value),F=Z(()=>f.value?Array.from(f.value.$el.querySelectorAll("input")):[]),B=async()=>{await Je(),_.value&&(s.value=`${f.value.$el.offsetWidth}px`)},N=()=>{m=!0},I=()=>{m=!1,i.value=-1},M=ns(async U=>{if(v.value)return;const H=G=>{E.value=!1,!v.value&&(Qe(G)?(c.value=G,i.value=r.highlightFirstItem?0:-1):Ts(Rf,"autocomplete suggestions must be an array"))};if(E.value=!0,Qe(r.fetchSuggestions))H(r.fetchSuggestions);else{const G=await r.fetchSuggestions(U,H);Qe(G)&&H(G)}},r.debounce),$=U=>{const H=!!U;if(n(Dt,U),n(qe,U),v.value=!1,d.value||(d.value=H),!r.triggerOnFocus&&!U){v.value=!0,c.value=[];return}M(U)},z=U=>{var H;y.value||(((H=U.target)==null?void 0:H.tagName)!=="INPUT"||F.value.includes(document.activeElement))&&(d.value=!0)},X=U=>{n(Rr,U)},P=U=>{m||(d.value=!0,n("focus",U),r.triggerOnFocus&&!g&&M(String(r.modelValue)))},O=U=>{m||n("blur",U)},L=()=>{d.value=!1,n(qe,""),n("clear")},V=async()=>{_.value&&i.value>=0&&i.value<c.value.length?C(c.value[i.value]):r.selectWhenUnmatched&&(n("select",{value:r.modelValue}),c.value=[],i.value=-1)},x=U=>{_.value&&(U.preventDefault(),U.stopPropagation(),w())},w=()=>{d.value=!1},S=()=>{var U;(U=f.value)==null||U.focus()},T=()=>{var U;(U=f.value)==null||U.blur()},C=async U=>{n(Dt,U[r.valueKey]),n(qe,U[r.valueKey]),n("select",U),c.value=[],i.value=-1},j=U=>{if(!_.value||E.value)return;if(U<0){i.value=-1;return}U>=c.value.length&&(U=c.value.length-1);const H=u.value.querySelector(`.${h.be("suggestion","wrap")}`),ee=H.querySelectorAll(`.${h.be("suggestion","list")} li`)[U],se=H.scrollTop,{offsetTop:pe,scrollHeight:he}=ee;pe+he>se+H.clientHeight&&(H.scrollTop+=he),pe<se&&(H.scrollTop-=he),i.value=U,f.value.ref.setAttribute("aria-activedescendant",`${b.value}-item-${i.value}`)};return tf(p,()=>{_.value&&w()}),Ze(()=>{f.value.ref.setAttribute("role","textbox"),f.value.ref.setAttribute("aria-autocomplete","list"),f.value.ref.setAttribute("aria-controls","id"),f.value.ref.setAttribute("aria-activedescendant",`${b.value}-item-${i.value}`),g=f.value.ref.hasAttribute("readonly")}),t({highlightedIndex:i,activated:d,loading:E,inputRef:f,popperRef:a,suggestions:c,handleSelect:C,handleKeyEnter:V,focus:S,blur:T,close:w,highlight:j}),(U,H)=>(te(),Pe(k(Lf),{ref_key:"popperRef",ref:a,visible:k(_),placement:U.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[k(h).e("popper"),U.popperClass],teleported:U.teleported,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${k(h).namespace.value}-zoom-in-top`,persistent:"",onBeforeShow:B,onShow:N,onHide:I},{content:ke(()=>[Se("div",{ref_key:"regionRef",ref:u,class:ve([k(h).b("suggestion"),k(h).is("loading",k(D))]),style:He({[U.fitInputWidth?"width":"minWidth"]:s.value,outline:"none"}),role:"region"},[Fe(k(KS),{id:k(b),tag:"ul","wrap-class":k(h).be("suggestion","wrap"),"view-class":k(h).be("suggestion","list"),role:"listbox"},{default:ke(()=>[k(D)?(te(),fe("li",ix,[Fe(k(xt),{class:ve(k(h).is("loading"))},{default:ke(()=>[Fe(k(Cs))]),_:1},8,["class"])])):(te(!0),fe(Ke,{key:1},Fr(c.value,(G,ee)=>(te(),fe("li",{id:`${k(b)}-item-${ee}`,key:ee,class:ve({highlighted:i.value===ee}),role:"option","aria-selected":i.value===ee,onClick:se=>C(G)},[Ie(U.$slots,"default",{item:G},()=>[Un(at(G[U.valueKey]),1)])],10,ax))),128))]),_:3},8,["id","wrap-class","view-class"])],6)]),default:ke(()=>[Se("div",{ref_key:"listboxRef",ref:p,class:ve([k(h).b(),U.$attrs.class]),style:He(k(A)),role:"combobox","aria-haspopup":"listbox","aria-expanded":k(_),"aria-owns":k(b)},[Fe(k(Kn),Qt({ref_key:"inputRef",ref:f},k(l),{"model-value":U.modelValue,onInput:$,onChange:X,onFocus:P,onBlur:O,onClear:L,onKeydown:[H[0]||(H[0]=jt(_r(G=>j(i.value-1),["prevent"]),["up"])),H[1]||(H[1]=jt(_r(G=>j(i.value+1),["prevent"]),["down"])),jt(V,["enter"]),jt(w,["tab"]),jt(x,["esc"])],onMousedown:z}),vd({_:2},[U.$slots.prepend?{name:"prepend",fn:ke(()=>[Ie(U.$slots,"prepend")])}:void 0,U.$slots.append?{name:"append",fn:ke(()=>[Ie(U.$slots,"append")])}:void 0,U.$slots.prefix?{name:"prefix",fn:ke(()=>[Ie(U.$slots,"prefix")])}:void 0,U.$slots.suffix?{name:"suffix",fn:ke(()=>[Ie(U.$slots,"suffix")])}:void 0]),1040,["model-value","onKeydown"])],14,nx)]),_:3},8,["visible","placement","popper-class","teleported","transition"]))}});var ux=$e(ox,[["__file","/home/runner/work/element-plus/element-plus/packages/components/autocomplete/src/autocomplete.vue"]]);const lx=ft(ux),cx=(e,t)=>{Q0({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},Z(()=>e.type==="text"));const n=Ve(lf,void 0),r=Sr("button"),{form:l}=Er(),o=Or(Z(()=>n==null?void 0:n.size)),y=Vr(),h=oe(),f=Pi(),u=Z(()=>e.type||(n==null?void 0:n.type)||""),a=Z(()=>{var m,c,i;return(i=(c=e.autoInsertSpace)!=null?c:(m=r.value)==null?void 0:m.autoInsertSpace)!=null?i:!1}),p=Z(()=>{var m;const c=(m=f.default)==null?void 0:m.call(f);if(a.value&&(c==null?void 0:c.length)===1){const i=c[0];if((i==null?void 0:i.type)===lc){const s=i.children;return/^\p{Unified_Ideograph}{2}$/u.test(s.trim())}}return!1});return{_disabled:y,_size:o,_type:u,_ref:h,shouldAddSpace:p,handleClick:m=>{e.nativeType==="reset"&&(l==null||l.resetFields()),t("click",m)}}},fx=["default","primary","success","warning","info","danger","text",""],dx=["button","submit","reset"],ls=Re({size:yr,disabled:Boolean,type:{type:String,values:fx,default:""},icon:{type:Ai},nativeType:{type:String,values:dx,default:"button"},loading:Boolean,loadingIcon:{type:Ai,default:()=>Cs},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0}}),px={click:e=>e instanceof MouseEvent};function We(e,t){hx(e)&&(e="100%");var n=mx(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function ci(e){return Math.min(1,Math.max(0,e))}function hx(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function mx(e){return typeof e=="string"&&e.indexOf("%")!==-1}function $f(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function fi(e){return e<=1?"".concat(Number(e)*100,"%"):e}function dr(e){return e.length===1?"0"+e:String(e)}function vx(e,t,n){return{r:We(e,255)*255,g:We(t,255)*255,b:We(n,255)*255}}function ql(e,t,n){e=We(e,255),t=We(t,255),n=We(n,255);var r=Math.max(e,t,n),l=Math.min(e,t,n),o=0,y=0,h=(r+l)/2;if(r===l)y=0,o=0;else{var f=r-l;switch(y=h>.5?f/(2-r-l):f/(r+l),r){case e:o=(t-n)/f+(t<n?6:0);break;case t:o=(n-e)/f+2;break;case n:o=(e-t)/f+4;break}o/=6}return{h:o,s:y,l:h}}function qa(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function yx(e,t,n){var r,l,o;if(e=We(e,360),t=We(t,100),n=We(n,100),t===0)l=n,o=n,r=n;else{var y=n<.5?n*(1+t):n+t-n*t,h=2*n-y;r=qa(h,y,e+1/3),l=qa(h,y,e),o=qa(h,y,e-1/3)}return{r:r*255,g:l*255,b:o*255}}function Ul(e,t,n){e=We(e,255),t=We(t,255),n=We(n,255);var r=Math.max(e,t,n),l=Math.min(e,t,n),o=0,y=r,h=r-l,f=r===0?0:h/r;if(r===l)o=0;else{switch(r){case e:o=(t-n)/h+(t<n?6:0);break;case t:o=(n-e)/h+2;break;case n:o=(e-t)/h+4;break}o/=6}return{h:o,s:f,v:y}}function gx(e,t,n){e=We(e,360)*6,t=We(t,100),n=We(n,100);var r=Math.floor(e),l=e-r,o=n*(1-t),y=n*(1-l*t),h=n*(1-(1-l)*t),f=r%6,u=[n,y,o,o,h,n][f],a=[h,n,n,y,o,o][f],p=[o,o,h,n,n,y][f];return{r:u*255,g:a*255,b:p*255}}function Xl(e,t,n,r){var l=[dr(Math.round(e).toString(16)),dr(Math.round(t).toString(16)),dr(Math.round(n).toString(16))];return r&&l[0].startsWith(l[0].charAt(1))&&l[1].startsWith(l[1].charAt(1))&&l[2].startsWith(l[2].charAt(1))?l[0].charAt(0)+l[1].charAt(0)+l[2].charAt(0):l.join("")}function bx(e,t,n,r,l){var o=[dr(Math.round(e).toString(16)),dr(Math.round(t).toString(16)),dr(Math.round(n).toString(16)),dr(Sx(r))];return l&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))&&o[3].startsWith(o[3].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function Sx(e){return Math.round(parseFloat(e)*255).toString(16)}function Jl(e){return rt(e)/255}function rt(e){return parseInt(e,16)}function Ex(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var cs={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function xx(e){var t={r:0,g:0,b:0},n=1,r=null,l=null,o=null,y=!1,h=!1;return typeof e=="string"&&(e=Ax(e)),typeof e=="object"&&(Bt(e.r)&&Bt(e.g)&&Bt(e.b)?(t=vx(e.r,e.g,e.b),y=!0,h=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Bt(e.h)&&Bt(e.s)&&Bt(e.v)?(r=fi(e.s),l=fi(e.v),t=gx(e.h,r,l),y=!0,h="hsv"):Bt(e.h)&&Bt(e.s)&&Bt(e.l)&&(r=fi(e.s),o=fi(e.l),t=yx(e.h,r,o),y=!0,h="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=$f(n),{ok:y,format:e.format||h,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var wx="[-\\+]?\\d+%?",Dx="[-\\+]?\\d*\\.\\d+%?",Kt="(?:".concat(Dx,")|(?:").concat(wx,")"),Ua="[\\s|\\(]+(".concat(Kt,")[,|\\s]+(").concat(Kt,")[,|\\s]+(").concat(Kt,")\\s*\\)?"),Xa="[\\s|\\(]+(".concat(Kt,")[,|\\s]+(").concat(Kt,")[,|\\s]+(").concat(Kt,")[,|\\s]+(").concat(Kt,")\\s*\\)?"),mt={CSS_UNIT:new RegExp(Kt),rgb:new RegExp("rgb"+Ua),rgba:new RegExp("rgba"+Xa),hsl:new RegExp("hsl"+Ua),hsla:new RegExp("hsla"+Xa),hsv:new RegExp("hsv"+Ua),hsva:new RegExp("hsva"+Xa),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Ax(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(cs[e])e=cs[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=mt.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=mt.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=mt.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=mt.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=mt.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=mt.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=mt.hex8.exec(e),n?{r:rt(n[1]),g:rt(n[2]),b:rt(n[3]),a:Jl(n[4]),format:t?"name":"hex8"}:(n=mt.hex6.exec(e),n?{r:rt(n[1]),g:rt(n[2]),b:rt(n[3]),format:t?"name":"hex"}:(n=mt.hex4.exec(e),n?{r:rt(n[1]+n[1]),g:rt(n[2]+n[2]),b:rt(n[3]+n[3]),a:Jl(n[4]+n[4]),format:t?"name":"hex8"}:(n=mt.hex3.exec(e),n?{r:rt(n[1]+n[1]),g:rt(n[2]+n[2]),b:rt(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Bt(e){return Boolean(mt.CSS_UNIT.exec(String(e)))}var Tx=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=Ex(t)),this.originalInput=t;var l=xx(t);this.originalInput=t,this.r=l.r,this.g=l.g,this.b=l.b,this.a=l.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:l.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=l.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,l,o=t.r/255,y=t.g/255,h=t.b/255;return o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),y<=.03928?r=y/12.92:r=Math.pow((y+.055)/1.055,2.4),h<=.03928?l=h/12.92:l=Math.pow((h+.055)/1.055,2.4),.2126*n+.7152*r+.0722*l},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=$f(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=Ul(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=Ul(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),l=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(l,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(l,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=ql(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=ql(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),l=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(l,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(l,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Xl(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),bx(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(We(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(We(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Xl(this.r,this.g,this.b,!1),n=0,r=Object.entries(cs);n<r.length;n++){var l=r[n],o=l[0],y=l[1];if(t===y)return o}return!1},e.prototype.toString=function(t){var n=Boolean(t);t=t??this.format;var r=!1,l=this.a<1&&this.a>=0,o=!n&&l&&(t.startsWith("hex")||t==="name");return o?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=ci(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=ci(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=ci(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=ci(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),l=new e(t).toRgb(),o=n/100,y={r:(l.r-r.r)*o+r.r,g:(l.g-r.g)*o+r.g,b:(l.b-r.b)*o+r.b,a:(l.a-r.a)*o+r.a};return new e(y)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),l=360/n,o=[this];for(r.h=(r.h-(l*t>>1)+720)%360;--t;)r.h=(r.h+l)%360,o.push(new e(r));return o},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,l=n.s,o=n.v,y=[],h=1/t;t--;)y.push(new e({h:r,s:l,v:o})),o=(o+h)%1;return y},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),l=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/l,g:(n.g*n.a+r.g*r.a*(1-n.a))/l,b:(n.b*n.a+r.b*r.a*(1-n.a))/l,a:l})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,l=[this],o=360/t,y=1;y<t;y++)l.push(new e({h:(r+y*o)%360,s:n.s,l:n.l}));return l},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function Jt(e,t=20){return e.mix("#141414",t).toString()}function Cx(e){const t=Vr(),n=Le("button");return Z(()=>{let r={};const l=e.color;if(l){const o=new Tx(l),y=e.dark?o.tint(20).toString():Jt(o,20);if(e.plain)r=n.cssVarBlock({"bg-color":e.dark?Jt(o,90):o.tint(90).toString(),"text-color":l,"border-color":e.dark?Jt(o,50):o.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":l,"hover-border-color":l,"active-bg-color":y,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":y}),t.value&&(r[n.cssVarBlockName("disabled-bg-color")]=e.dark?Jt(o,90):o.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=e.dark?Jt(o,50):o.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=e.dark?Jt(o,80):o.tint(80).toString());else{const h=e.dark?Jt(o,30):o.tint(30).toString(),f=o.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(r=n.cssVarBlock({"bg-color":l,"text-color":f,"border-color":l,"hover-bg-color":h,"hover-text-color":f,"hover-border-color":h,"active-bg-color":y,"active-border-color":y}),t.value){const u=e.dark?Jt(o,50):o.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]=u,r[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,r[n.cssVarBlockName("disabled-border-color")]=u}}}return r})}const _x=["aria-disabled","disabled","autofocus","type"],Fx=ye({name:"ElButton"}),Px=ye({...Fx,props:ls,emits:px,setup(e,{expose:t,emit:n}){const r=e,l=Cx(r),o=Le("button"),{_ref:y,_size:h,_type:f,_disabled:u,shouldAddSpace:a,handleClick:p}=cx(r,n);return t({ref:y,size:h,type:f,disabled:u,shouldAddSpace:a}),(g,m)=>(te(),fe("button",{ref_key:"_ref",ref:y,class:ve([k(o).b(),k(o).m(k(f)),k(o).m(k(h)),k(o).is("disabled",k(u)),k(o).is("loading",g.loading),k(o).is("plain",g.plain),k(o).is("round",g.round),k(o).is("circle",g.circle),k(o).is("text",g.text),k(o).is("link",g.link),k(o).is("has-bg",g.bg)]),"aria-disabled":k(u)||g.loading,disabled:k(u)||g.loading,autofocus:g.autofocus,type:g.nativeType,style:He(k(l)),onClick:m[0]||(m[0]=(...c)=>k(p)&&k(p)(...c))},[g.loading?(te(),fe(Ke,{key:0},[g.$slots.loading?Ie(g.$slots,"loading",{key:0}):(te(),Pe(k(xt),{key:1,class:ve(k(o).is("loading"))},{default:ke(()=>[(te(),Pe(Lt(g.loadingIcon)))]),_:1},8,["class"]))],64)):g.icon||g.$slots.icon?(te(),Pe(k(xt),{key:1},{default:ke(()=>[g.icon?(te(),Pe(Lt(g.icon),{key:0})):Ie(g.$slots,"icon",{key:1})]),_:3})):Ae("v-if",!0),g.$slots.default?(te(),fe("span",{key:2,class:ve({[k(o).em("text","expand")]:k(a)})},[Ie(g.$slots,"default")],2)):Ae("v-if",!0)],14,_x))}});var kx=$e(Px,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const Ox={size:ls.size,type:ls.type},Ix=ye({name:"ElButtonGroup"}),Bx=ye({...Ix,props:Ox,setup(e){const t=e;Tt(lf,qn({size:wt(t,"size"),type:wt(t,"type")}));const n=Le("button");return(r,l)=>(te(),fe("div",{class:ve(`${k(n).b("group")}`)},[Ie(r.$slots,"default")],2))}});var Vf=$e(Bx,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const _i=ft(kx,{ButtonGroup:Vf});_s(Vf);const Nx=100,Mx=600,Wl={beforeMount(e,t){const n=t.value,{interval:r=Nx,delay:l=Mx}=Tr(n)?{}:n;let o,y;const h=()=>Tr(n)?n():n.handler(),f=()=>{y&&(clearTimeout(y),y=void 0),o&&(clearInterval(o),o=void 0)};e.addEventListener("mousedown",u=>{u.button===0&&(f(),h(),document.addEventListener("mouseup",()=>f(),{once:!0}),y=setTimeout(()=>{o=setInterval(()=>{h()},r)},l))})}},zf={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object]},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},controls:{type:String,default:void 0},border:Boolean,size:yr,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},qf={[qe]:e=>Ye(e)||Me(e)||jn(e),change:e=>Ye(e)||Me(e)||jn(e)},jx=({model:e,isChecked:t})=>{const n=Ve($r,void 0),r=Z(()=>{var o,y;const h=(o=n==null?void 0:n.max)==null?void 0:o.value,f=(y=n==null?void 0:n.min)==null?void 0:y.value;return!Gt(h)&&e.value.length>=h&&!t.value||!Gt(f)&&e.value.length<=f&&t.value});return{isDisabled:Vr(Z(()=>(n==null?void 0:n.disabled.value)||r.value)),isLimitDisabled:r}},Lx=(e,{model:t,isLimitExceeded:n,hasOwnLabel:r,isDisabled:l,isLabeledByFormItem:o})=>{const y=Ve($r,void 0),{formItem:h}=Er(),{emit:f}=ar();function u(c){var i,s;return c===e.trueLabel||c===!0?(i=e.trueLabel)!=null?i:!0:(s=e.falseLabel)!=null?s:!1}function a(c,i){f("change",u(c),i)}function p(c){if(n.value)return;const i=c.target;f("change",u(i.checked),c)}async function g(c){n.value||!r.value&&!l.value&&o.value&&(c.composedPath().some(d=>d.tagName==="LABEL")||(t.value=u([!1,e.falseLabel].includes(t.value)),await Je(),a(t.value,c)))}const m=Z(()=>(y==null?void 0:y.validateEvent)||e.validateEvent);return xe(()=>e.modelValue,()=>{m.value&&(h==null||h.validate("change").catch(c=>void 0))}),{handleChange:p,onClickRoot:g}},Rx=e=>{const t=oe(!1),{emit:n}=ar(),r=Ve($r,void 0),l=Z(()=>Gt(r)===!1),o=oe(!1);return{model:Z({get(){var h,f;return l.value?(h=r==null?void 0:r.modelValue)==null?void 0:h.value:(f=e.modelValue)!=null?f:t.value},set(h){var f,u;l.value&&Qe(h)?(o.value=((f=r==null?void 0:r.max)==null?void 0:f.value)!==void 0&&h.length>(r==null?void 0:r.max.value),o.value===!1&&((u=r==null?void 0:r.changeEvent)==null||u.call(r,h))):(n(qe,h),t.value=h)}}),isGroup:l,isLimitExceeded:o}},$x=(e,t,{model:n})=>{const r=Ve($r,void 0),l=oe(!1),o=Z(()=>{const u=n.value;return jn(u)?u:Qe(u)?tr(e.label)?u.map(Zs).some(a=>tg(a,e.label)):u.map(Zs).includes(e.label):u!=null?u===e.trueLabel:!!u}),y=Or(Z(()=>{var u;return(u=r==null?void 0:r.size)==null?void 0:u.value}),{prop:!0}),h=Or(Z(()=>{var u;return(u=r==null?void 0:r.size)==null?void 0:u.value})),f=Z(()=>!!(t.default||e.label));return{checkboxButtonSize:y,isChecked:o,isFocused:l,checkboxSize:h,hasOwnLabel:f}},Vx=(e,{model:t})=>{function n(){Qe(t.value)&&!t.value.includes(e.label)?t.value.push(e.label):t.value=e.trueLabel||!0}e.checked&&n()},Uf=(e,t)=>{const{formItem:n}=Er(),{model:r,isGroup:l,isLimitExceeded:o}=Rx(e),{isFocused:y,isChecked:h,checkboxButtonSize:f,checkboxSize:u,hasOwnLabel:a}=$x(e,t,{model:r}),{isDisabled:p}=jx({model:r,isChecked:h}),{inputId:g,isLabeledByFormItem:m}=$i(e,{formItemContext:n,disableIdGeneration:a,disableIdManagement:l}),{handleChange:c,onClickRoot:i}=Lx(e,{model:r,isLimitExceeded:o,hasOwnLabel:a,isDisabled:p,isLabeledByFormItem:m});return Vx(e,{model:r}),{inputId:g,isLabeledByFormItem:m,isChecked:h,isDisabled:p,isFocused:y,checkboxButtonSize:f,checkboxSize:u,hasOwnLabel:a,model:r,handleChange:c,onClickRoot:i}},zx=["tabindex","role","aria-checked"],qx=["id","aria-hidden","name","tabindex","disabled","true-value","false-value"],Ux=["id","aria-hidden","disabled","value","name","tabindex"],Xx=ye({name:"ElCheckbox"}),Jx=ye({...Xx,props:zf,emits:qf,setup(e){const t=e,n=Pi(),{inputId:r,isLabeledByFormItem:l,isChecked:o,isDisabled:y,isFocused:h,checkboxSize:f,hasOwnLabel:u,model:a,handleChange:p,onClickRoot:g}=Uf(t,n),m=Le("checkbox"),c=Z(()=>[m.b(),m.m(f.value),m.is("disabled",y.value),m.is("bordered",t.border),m.is("checked",o.value)]),i=Z(()=>[m.e("input"),m.is("disabled",y.value),m.is("checked",o.value),m.is("indeterminate",t.indeterminate),m.is("focus",h.value)]);return(s,d)=>(te(),Pe(Lt(!k(u)&&k(l)?"span":"label"),{class:ve(k(c)),"aria-controls":s.indeterminate?s.controls:null,onClick:k(g)},{default:ke(()=>[Se("span",{class:ve(k(i)),tabindex:s.indeterminate?0:void 0,role:s.indeterminate?"checkbox":void 0,"aria-checked":s.indeterminate?"mixed":void 0},[s.trueLabel||s.falseLabel?Ct((te(),fe("input",{key:0,id:k(r),"onUpdate:modelValue":d[0]||(d[0]=v=>rr(a)?a.value=v:null),class:ve(k(m).e("original")),type:"checkbox","aria-hidden":s.indeterminate?"true":"false",name:s.name,tabindex:s.tabindex,disabled:k(y),"true-value":s.trueLabel,"false-value":s.falseLabel,onChange:d[1]||(d[1]=(...v)=>k(p)&&k(p)(...v)),onFocus:d[2]||(d[2]=v=>h.value=!0),onBlur:d[3]||(d[3]=v=>h.value=!1)},null,42,qx)),[[hi,k(a)]]):Ct((te(),fe("input",{key:1,id:k(r),"onUpdate:modelValue":d[4]||(d[4]=v=>rr(a)?a.value=v:null),class:ve(k(m).e("original")),type:"checkbox","aria-hidden":s.indeterminate?"true":"false",disabled:k(y),value:s.label,name:s.name,tabindex:s.tabindex,onChange:d[5]||(d[5]=(...v)=>k(p)&&k(p)(...v)),onFocus:d[6]||(d[6]=v=>h.value=!0),onBlur:d[7]||(d[7]=v=>h.value=!1)},null,42,Ux)),[[hi,k(a)]]),Se("span",{class:ve(k(m).e("inner"))},null,2)],10,zx),k(u)?(te(),fe("span",{key:0,class:ve(k(m).e("label"))},[Ie(s.$slots,"default"),s.$slots.default?Ae("v-if",!0):(te(),fe(Ke,{key:0},[Un(at(s.label),1)],64))],2)):Ae("v-if",!0)]),_:3},8,["class","aria-controls","onClick"]))}});var Wx=$e(Jx,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);const Hx=["name","tabindex","disabled","true-value","false-value"],Gx=["name","tabindex","disabled","value"],Kx=ye({name:"ElCheckboxButton"}),Yx=ye({...Kx,props:zf,emits:qf,setup(e){const t=e,n=Pi(),{isFocused:r,isChecked:l,isDisabled:o,checkboxButtonSize:y,model:h,handleChange:f}=Uf(t,n),u=Ve($r,void 0),a=Le("checkbox"),p=Z(()=>{var m,c,i,s;const d=(c=(m=u==null?void 0:u.fill)==null?void 0:m.value)!=null?c:"";return{backgroundColor:d,borderColor:d,color:(s=(i=u==null?void 0:u.textColor)==null?void 0:i.value)!=null?s:"",boxShadow:d?`-1px 0 0 0 ${d}`:void 0}}),g=Z(()=>[a.b("button"),a.bm("button",y.value),a.is("disabled",o.value),a.is("checked",l.value),a.is("focus",r.value)]);return(m,c)=>(te(),fe("label",{class:ve(k(g))},[m.trueLabel||m.falseLabel?Ct((te(),fe("input",{key:0,"onUpdate:modelValue":c[0]||(c[0]=i=>rr(h)?h.value=i:null),class:ve(k(a).be("button","original")),type:"checkbox",name:m.name,tabindex:m.tabindex,disabled:k(o),"true-value":m.trueLabel,"false-value":m.falseLabel,onChange:c[1]||(c[1]=(...i)=>k(f)&&k(f)(...i)),onFocus:c[2]||(c[2]=i=>r.value=!0),onBlur:c[3]||(c[3]=i=>r.value=!1)},null,42,Hx)),[[hi,k(h)]]):Ct((te(),fe("input",{key:1,"onUpdate:modelValue":c[4]||(c[4]=i=>rr(h)?h.value=i:null),class:ve(k(a).be("button","original")),type:"checkbox",name:m.name,tabindex:m.tabindex,disabled:k(o),value:m.label,onChange:c[5]||(c[5]=(...i)=>k(f)&&k(f)(...i)),onFocus:c[6]||(c[6]=i=>r.value=!0),onBlur:c[7]||(c[7]=i=>r.value=!1)},null,42,Gx)),[[hi,k(h)]]),m.$slots.default||m.label?(te(),fe("span",{key:2,class:ve(k(a).be("button","inner")),style:He(k(l)?k(p):void 0)},[Ie(m.$slots,"default",{},()=>[Un(at(m.label),1)])],6)):Ae("v-if",!0)],2))}});var Xf=$e(Yx,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-button.vue"]]);const Qx=Re({modelValue:{type:Te(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:yr,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}}),Zx={[qe]:e=>Qe(e),change:e=>Qe(e)},ew=ye({name:"ElCheckboxGroup"}),tw=ye({...ew,props:Qx,emits:Zx,setup(e,{emit:t}){const n=e,r=Le("checkbox"),{formItem:l}=Er(),{inputId:o,isLabeledByFormItem:y}=$i(n,{formItemContext:l}),h=async u=>{t(qe,u),await Je(),t("change",u)},f=Z({get(){return n.modelValue},set(u){h(u)}});return Tt($r,{...og(mi(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:f,changeEvent:h}),xe(()=>n.modelValue,()=>{n.validateEvent&&(l==null||l.validate("change").catch(u=>void 0))}),(u,a)=>{var p;return te(),Pe(Lt(u.tag),{id:k(o),class:ve(k(r).b("group")),role:"group","aria-label":k(y)?void 0:u.label||"checkbox-group","aria-labelledby":k(y)?(p=k(l))==null?void 0:p.labelId:void 0},{default:ke(()=>[Ie(u.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var Jf=$e(tw,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-group.vue"]]);const rw=ft(Wx,{CheckboxButton:Xf,CheckboxGroup:Jf});_s(Xf);_s(Jf);const nw=Re({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:Te(String),default:"solid"}}),iw=ye({name:"ElDivider"}),aw=ye({...iw,props:nw,setup(e){const t=e,n=Le("divider"),r=Z(()=>n.cssVar({"border-style":t.borderStyle}));return(l,o)=>(te(),fe("div",{class:ve([k(n).b(),k(n).m(l.direction)]),style:He(k(r)),role:"separator"},[l.$slots.default&&l.direction!=="vertical"?(te(),fe("div",{key:0,class:ve([k(n).e("text"),k(n).is(l.contentPosition)])},[Ie(l.$slots,"default")],2)):Ae("v-if",!0)],6))}});var sw=$e(aw,[["__file","/home/runner/work/element-plus/element-plus/packages/components/divider/src/divider.vue"]]);const Wf=ft(sw),ow=Re({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.POSITIVE_INFINITY},min:{type:Number,default:Number.NEGATIVE_INFINITY},modelValue:Number,readonly:Boolean,disabled:Boolean,size:yr,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:e=>e===null||Me(e)||["min","max"].includes(e),default:null},name:String,label:String,placeholder:String,precision:{type:Number,validator:e=>e>=0&&e===Number.parseInt(`${e}`,10)},validateEvent:{type:Boolean,default:!0}}),uw={[Rr]:(e,t)=>t!==e,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[Dt]:e=>Me(e)||Rt(e),[qe]:e=>Me(e)||Rt(e)},lw=["aria-label","onKeydown"],cw=["aria-label","onKeydown"],fw=ye({name:"ElInputNumber"}),dw=ye({...fw,props:ow,emits:uw,setup(e,{expose:t,emit:n}){const r=e,{t:l}=vf(),o=Le("input-number"),y=oe(),h=qn({currentValue:r.modelValue,userInput:null}),{formItem:f}=Er(),u=Z(()=>Me(r.modelValue)&&r.modelValue<=r.min),a=Z(()=>Me(r.modelValue)&&r.modelValue>=r.max),p=Z(()=>{const M=d(r.step);return Gt(r.precision)?Math.max(d(r.modelValue),M):(M>r.precision,r.precision)}),g=Z(()=>r.controls&&r.controlsPosition==="right"),m=Or(),c=Vr(),i=Z(()=>{if(h.userInput!==null)return h.userInput;let M=h.currentValue;if(Rt(M))return"";if(Me(M)){if(Number.isNaN(M))return"";Gt(r.precision)||(M=M.toFixed(r.precision))}return M}),s=(M,$)=>{if(Gt($)&&($=p.value),$===0)return Math.round(M);let z=String(M);const X=z.indexOf(".");if(X===-1||!z.replace(".","").split("")[X+$])return M;const L=z.length;return z.charAt(L-1)==="5"&&(z=`${z.slice(0,Math.max(0,L-1))}6`),Number.parseFloat(Number(z).toFixed($))},d=M=>{if(Rt(M))return 0;const $=M.toString(),z=$.indexOf(".");let X=0;return z!==-1&&(X=$.length-z-1),X},v=(M,$=1)=>Me(M)?s(M+r.step*$):h.currentValue,E=()=>{if(r.readonly||c.value||a.value)return;const M=Number(i.value)||0,$=v(M);_($),n(Dt,h.currentValue)},b=()=>{if(r.readonly||c.value||u.value)return;const M=Number(i.value)||0,$=v(M,-1);_($),n(Dt,h.currentValue)},A=(M,$)=>{const{max:z,min:X,step:P,precision:O,stepStrictly:L,valueOnClear:V}=r;let x=Number(M);if(Rt(M)||Number.isNaN(x))return null;if(M===""){if(V===null)return null;x=Ye(V)?{min:X,max:z}[V]:V}return L&&(x=s(Math.round(x/P)*P,O)),Gt(O)||(x=s(x,O)),(x>z||x<X)&&(x=x>z?z:X,$&&n(qe,x)),x},_=(M,$=!0)=>{var z;const X=h.currentValue,P=A(M);if(X!==P){if(!$){n(qe,P);return}h.userInput=null,n(qe,P),n(Rr,P,X),r.validateEvent&&((z=f==null?void 0:f.validate)==null||z.call(f,"change").catch(O=>void 0)),h.currentValue=P}},D=M=>{h.userInput=M;const $=M===""?null:Number(M);n(Dt,$),_($,!1)},F=M=>{const $=M!==""?Number(M):"";(Me($)&&!Number.isNaN($)||M==="")&&_($),h.userInput=null},B=()=>{var M,$;($=(M=y.value)==null?void 0:M.focus)==null||$.call(M)},N=()=>{var M,$;($=(M=y.value)==null?void 0:M.blur)==null||$.call(M)},I=M=>{n("focus",M)},R=M=>{var $;n("blur",M),r.validateEvent&&(($=f==null?void 0:f.validate)==null||$.call(f,"blur").catch(z=>void 0))};return xe(()=>r.modelValue,M=>{const $=A(h.userInput),z=A(M,!0);!Me($)&&(!$||$!==z)&&(h.currentValue=z,h.userInput=null)},{immediate:!0}),Ze(()=>{var M;const{min:$,max:z,modelValue:X}=r,P=(M=y.value)==null?void 0:M.input;if(P.setAttribute("role","spinbutton"),Number.isFinite(z)?P.setAttribute("aria-valuemax",String(z)):P.removeAttribute("aria-valuemax"),Number.isFinite($)?P.setAttribute("aria-valuemin",String($)):P.removeAttribute("aria-valuemin"),P.setAttribute("aria-valuenow",String(h.currentValue)),P.setAttribute("aria-disabled",String(c.value)),!Me(X)&&X!=null){let O=Number(X);Number.isNaN(O)&&(O=null),n(qe,O)}}),uc(()=>{var M;const $=(M=y.value)==null?void 0:M.input;$==null||$.setAttribute("aria-valuenow",`${h.currentValue}`)}),t({focus:B,blur:N}),(M,$)=>(te(),fe("div",{class:ve([k(o).b(),k(o).m(k(m)),k(o).is("disabled",k(c)),k(o).is("without-controls",!M.controls),k(o).is("controls-right",k(g))]),onDragstart:$[0]||($[0]=_r(()=>{},["prevent"]))},[M.controls?Ct((te(),fe("span",{key:0,role:"button","aria-label":k(l)("el.inputNumber.decrease"),class:ve([k(o).e("decrease"),k(o).is("disabled",k(u))]),onKeydown:jt(b,["enter"])},[Fe(k(xt),null,{default:ke(()=>[k(g)?(te(),Pe(k(_g),{key:0})):(te(),Pe(k(x0),{key:1}))]),_:1})],42,lw)),[[k(Wl),b]]):Ae("v-if",!0),M.controls?Ct((te(),fe("span",{key:1,role:"button","aria-label":k(l)("el.inputNumber.increase"),class:ve([k(o).e("increase"),k(o).is("disabled",k(a))]),onKeydown:jt(E,["enter"])},[Fe(k(xt),null,{default:ke(()=>[k(g)?(te(),Pe(k(Bg),{key:0})):(te(),Pe(k(_0),{key:1}))]),_:1})],42,cw)),[[k(Wl),E]]):Ae("v-if",!0),Fe(k(Kn),{id:M.id,ref_key:"input",ref:y,type:"number",step:M.step,"model-value":k(i),placeholder:M.placeholder,readonly:M.readonly,disabled:k(c),size:k(m),max:M.max,min:M.min,name:M.name,label:M.label,"validate-event":!1,onKeydown:[jt(_r(E,["prevent"]),["up"]),jt(_r(b,["prevent"]),["down"])],onBlur:R,onFocus:I,onInput:D,onChange:F},null,8,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","label","onKeydown"])],34))}});var pw=$e(dw,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input-number/src/input-number.vue"]]);const hw=ft(pw),mw=Re({modelValue:{type:Te([Number,Array]),default:0},id:{type:String,default:void 0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},showInput:Boolean,showInputControls:{type:Boolean,default:!0},size:yr,inputSize:yr,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:Te(Function),default:void 0},disabled:Boolean,range:Boolean,vertical:Boolean,height:String,debounce:{type:Number,default:300},label:{type:String,default:void 0},rangeStartLabel:{type:String,default:void 0},rangeEndLabel:{type:String,default:void 0},formatValueText:{type:Te(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:Hn,default:"top"},marks:{type:Te(Object)},validateEvent:{type:Boolean,default:!0}}),Ja=e=>Me(e)||Qe(e)&&e.every(Me),vw={[qe]:Ja,[Dt]:Ja,[Rr]:Ja},yw=(e,t,n)=>{const r=oe();return Ze(async()=>{e.range?(Array.isArray(e.modelValue)?(t.firstValue=Math.max(e.min,e.modelValue[0]),t.secondValue=Math.min(e.max,e.modelValue[1])):(t.firstValue=e.min,t.secondValue=e.max),t.oldValue=[t.firstValue,t.secondValue]):(typeof e.modelValue!="number"||Number.isNaN(e.modelValue)?t.firstValue=e.min:t.firstValue=Math.min(e.max,Math.max(e.min,e.modelValue)),t.oldValue=t.firstValue),pr(window,"resize",n),await Je(),n()}),{sliderWrapper:r}},gw=e=>Z(()=>e.marks?Object.keys(e.marks).map(Number.parseFloat).sort((n,r)=>n-r).filter(n=>n<=e.max&&n>=e.min).map(n=>({point:n,position:(n-e.min)*100/(e.max-e.min),mark:e.marks[n]})):[]),bw=(e,t,n)=>{const{form:r,formItem:l}=Er(),o=Yt(),y=oe(),h=oe(),f={firstButton:y,secondButton:h},u=Z(()=>e.disabled||(r==null?void 0:r.disabled)||!1),a=Z(()=>Math.min(t.firstValue,t.secondValue)),p=Z(()=>Math.max(t.firstValue,t.secondValue)),g=Z(()=>e.range?`${100*(p.value-a.value)/(e.max-e.min)}%`:`${100*(t.firstValue-e.min)/(e.max-e.min)}%`),m=Z(()=>e.range?`${100*(a.value-e.min)/(e.max-e.min)}%`:"0%"),c=Z(()=>e.vertical?{height:e.height}:{}),i=Z(()=>e.vertical?{height:g.value,bottom:m.value}:{width:g.value,left:m.value}),s=()=>{o.value&&(t.sliderSize=o.value[`client${e.vertical?"Height":"Width"}`])},d=I=>{const R=e.min+I*(e.max-e.min)/100;if(!e.range)return y;let M;return Math.abs(a.value-R)<Math.abs(p.value-R)?M=t.firstValue<t.secondValue?"firstButton":"secondButton":M=t.firstValue>t.secondValue?"firstButton":"secondButton",f[M]},v=I=>{const R=d(I);return R.value.setPosition(I),R},E=I=>{t.firstValue=I,A(e.range?[a.value,p.value]:I)},b=I=>{t.secondValue=I,e.range&&A([a.value,p.value])},A=I=>{n(qe,I),n(Dt,I)},_=async()=>{await Je(),n(Rr,e.range?[a.value,p.value]:e.modelValue)},D=I=>{var R,M,$,z,X,P;if(u.value||t.dragging)return;s();let O=0;if(e.vertical){const L=($=(M=(R=I.touches)==null?void 0:R.item(0))==null?void 0:M.clientY)!=null?$:I.clientY;O=(o.value.getBoundingClientRect().bottom-L)/t.sliderSize*100}else{const L=(P=(X=(z=I.touches)==null?void 0:z.item(0))==null?void 0:X.clientX)!=null?P:I.clientX,V=o.value.getBoundingClientRect().left;O=(L-V)/t.sliderSize*100}if(!(O<0||O>100))return v(O)};return{elFormItem:l,slider:o,firstButton:y,secondButton:h,sliderDisabled:u,minValue:a,maxValue:p,runwayStyle:c,barStyle:i,resetSize:s,setPosition:v,emitChange:_,onSliderWrapperPrevent:I=>{var R,M;((R=f.firstButton.value)!=null&&R.dragging||(M=f.secondButton.value)!=null&&M.dragging)&&I.preventDefault()},onSliderClick:I=>{D(I)&&_()},onSliderDown:async I=>{const R=D(I);R&&(await Je(),R.value.onButtonDown(I))},setFirstValue:E,setSecondValue:b}},{left:Sw,down:Ew,right:xw,up:ww,home:Dw,end:Aw,pageUp:Tw,pageDown:Cw}=Ln,_w=(e,t,n)=>{const r=oe(),l=oe(!1),o=Z(()=>t.value instanceof Function),y=Z(()=>o.value&&t.value(e.modelValue)||e.modelValue),h=ns(()=>{n.value&&(l.value=!0)},50),f=ns(()=>{n.value&&(l.value=!1)},50);return{tooltip:r,tooltipVisible:l,formatValue:y,displayTooltip:h,hideTooltip:f}},Fw=(e,t,n)=>{const{disabled:r,min:l,max:o,step:y,showTooltip:h,precision:f,sliderSize:u,formatTooltip:a,emitChange:p,resetSize:g,updateDragging:m}=Ve(ff),{tooltip:c,tooltipVisible:i,formatValue:s,displayTooltip:d,hideTooltip:v}=_w(e,a,h),E=oe(),b=Z(()=>`${(e.modelValue-l.value)/(o.value-l.value)*100}%`),A=Z(()=>e.vertical?{bottom:b.value}:{left:b.value}),_=()=>{t.hovering=!0,d()},D=()=>{t.hovering=!1,t.dragging||v()},F=w=>{r.value||(w.preventDefault(),O(w),window.addEventListener("mousemove",L),window.addEventListener("touchmove",L),window.addEventListener("mouseup",V),window.addEventListener("touchend",V),window.addEventListener("contextmenu",V),E.value.focus())},B=w=>{r.value||(t.newPosition=Number.parseFloat(b.value)+w/(o.value-l.value)*100,x(t.newPosition),p())},N=()=>{B(-y.value)},I=()=>{B(y.value)},R=()=>{B(-y.value*4)},M=()=>{B(y.value*4)},$=()=>{r.value||(x(0),p())},z=()=>{r.value||(x(100),p())},X=w=>{let S=!0;[Sw,Ew].includes(w.key)?N():[xw,ww].includes(w.key)?I():w.key===Dw?$():w.key===Aw?z():w.key===Cw?R():w.key===Tw?M():S=!1,S&&w.preventDefault()},P=w=>{let S,T;return w.type.startsWith("touch")?(T=w.touches[0].clientY,S=w.touches[0].clientX):(T=w.clientY,S=w.clientX),{clientX:S,clientY:T}},O=w=>{t.dragging=!0,t.isClick=!0;const{clientX:S,clientY:T}=P(w);e.vertical?t.startY=T:t.startX=S,t.startPosition=Number.parseFloat(b.value),t.newPosition=t.startPosition},L=w=>{if(t.dragging){t.isClick=!1,d(),g();let S;const{clientX:T,clientY:C}=P(w);e.vertical?(t.currentY=C,S=(t.startY-t.currentY)/u.value*100):(t.currentX=T,S=(t.currentX-t.startX)/u.value*100),t.newPosition=t.startPosition+S,x(t.newPosition)}},V=()=>{t.dragging&&(setTimeout(()=>{t.dragging=!1,t.hovering||v(),t.isClick||x(t.newPosition),p()},0),window.removeEventListener("mousemove",L),window.removeEventListener("touchmove",L),window.removeEventListener("mouseup",V),window.removeEventListener("touchend",V),window.removeEventListener("contextmenu",V))},x=async w=>{if(w===null||Number.isNaN(+w))return;w<0?w=0:w>100&&(w=100);const S=100/((o.value-l.value)/y.value);let C=Math.round(w/S)*S*(o.value-l.value)*.01+l.value;C=Number.parseFloat(C.toFixed(f.value)),C!==e.modelValue&&n(qe,C),!t.dragging&&e.modelValue!==t.oldValue&&(t.oldValue=e.modelValue),await Je(),t.dragging&&d(),c.value.updatePopper()};return xe(()=>t.dragging,w=>{m(w)}),{disabled:r,button:E,tooltip:c,tooltipVisible:i,showTooltip:h,wrapperStyle:A,formatValue:s,handleMouseEnter:_,handleMouseLeave:D,onButtonDown:F,onKeyDown:X,setPosition:x}},Pw=(e,t,n,r)=>({stops:Z(()=>{if(!e.showStops||e.min>e.max)return[];if(e.step===0)return[];const y=(e.max-e.min)/e.step,h=100*e.step/(e.max-e.min),f=Array.from({length:y-1}).map((u,a)=>(a+1)*h);return e.range?f.filter(u=>u<100*(n.value-e.min)/(e.max-e.min)||u>100*(r.value-e.min)/(e.max-e.min)):f.filter(u=>u>100*(t.firstValue-e.min)/(e.max-e.min))}),getStopStyle:y=>e.vertical?{bottom:`${y}%`}:{left:`${y}%`}}),kw=(e,t,n,r,l,o)=>{const y=u=>{l(qe,u),l(Dt,u)},h=()=>e.range?![n.value,r.value].every((u,a)=>u===t.oldValue[a]):e.modelValue!==t.oldValue,f=()=>{var u,a;if(e.min>e.max){Ts("Slider","min should not be greater than max.");return}const p=e.modelValue;e.range&&Array.isArray(p)?p[1]<e.min?y([e.min,e.min]):p[0]>e.max?y([e.max,e.max]):p[0]<e.min?y([e.min,p[1]]):p[1]>e.max?y([p[0],e.max]):(t.firstValue=p[0],t.secondValue=p[1],h()&&(e.validateEvent&&((u=o==null?void 0:o.validate)==null||u.call(o,"change").catch(g=>void 0)),t.oldValue=p.slice())):!e.range&&typeof p=="number"&&!Number.isNaN(p)&&(p<e.min?y(e.min):p>e.max?y(e.max):(t.firstValue=p,h()&&(e.validateEvent&&((a=o==null?void 0:o.validate)==null||a.call(o,"change").catch(g=>void 0)),t.oldValue=p)))};f(),xe(()=>t.dragging,u=>{u||f()}),xe(()=>e.modelValue,(u,a)=>{t.dragging||Array.isArray(u)&&Array.isArray(a)&&u.every((p,g)=>p===a[g])&&t.firstValue===u[0]&&t.secondValue===u[1]||f()},{deep:!0}),xe(()=>[e.min,e.max],()=>{f()})},Ow=Re({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:Hn,default:"top"}}),Iw={[qe]:e=>Me(e)},Bw=["tabindex"],Nw=ye({name:"ElSliderButton"}),Mw=ye({...Nw,props:Ow,emits:Iw,setup(e,{expose:t,emit:n}){const r=e,l=Le("slider"),o=qn({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:r.modelValue}),{disabled:y,button:h,tooltip:f,showTooltip:u,tooltipVisible:a,wrapperStyle:p,formatValue:g,handleMouseEnter:m,handleMouseLeave:c,onButtonDown:i,onKeyDown:s,setPosition:d}=Fw(r,o,n),{hovering:v,dragging:E}=mi(o);return t({onButtonDown:i,onKeyDown:s,setPosition:d,hovering:v,dragging:E}),(b,A)=>(te(),fe("div",{ref_key:"button",ref:h,class:ve([k(l).e("button-wrapper"),{hover:k(v),dragging:k(E)}]),style:He(k(p)),tabindex:k(y)?-1:0,onMouseenter:A[0]||(A[0]=(..._)=>k(m)&&k(m)(..._)),onMouseleave:A[1]||(A[1]=(..._)=>k(c)&&k(c)(..._)),onMousedown:A[2]||(A[2]=(..._)=>k(i)&&k(i)(..._)),onTouchstart:A[3]||(A[3]=(..._)=>k(i)&&k(i)(..._)),onFocus:A[4]||(A[4]=(..._)=>k(m)&&k(m)(..._)),onBlur:A[5]||(A[5]=(..._)=>k(c)&&k(c)(..._)),onKeydown:A[6]||(A[6]=(..._)=>k(s)&&k(s)(..._))},[Fe(k(Lf),{ref_key:"tooltip",ref:f,visible:k(a),placement:b.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":b.tooltipClass,disabled:!k(u),persistent:""},{content:ke(()=>[Se("span",null,at(k(g)),1)]),default:ke(()=>[Se("div",{class:ve([k(l).e("button"),{hover:k(v),dragging:k(E)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled"])],46,Bw))}});var Hl=$e(Mw,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/button.vue"]]);const jw=Re({mark:{type:Te([String,Object]),default:void 0}});var Lw=ye({name:"ElSliderMarker",props:jw,setup(e){const t=Le("slider"),n=Z(()=>Ye(e.mark)?e.mark:e.mark.label),r=Z(()=>Ye(e.mark)?void 0:e.mark.style);return()=>tn("div",{class:t.e("marks-text"),style:r.value},n.value)}});const Rw=["id","role","aria-label","aria-labelledby"],$w={key:1},Vw=ye({name:"ElSlider"}),zw=ye({...Vw,props:mw,emits:vw,setup(e,{expose:t,emit:n}){const r=e,l=Le("slider"),{t:o}=vf(),y=qn({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:h,slider:f,firstButton:u,secondButton:a,sliderDisabled:p,minValue:g,maxValue:m,runwayStyle:c,barStyle:i,resetSize:s,emitChange:d,onSliderWrapperPrevent:v,onSliderClick:E,onSliderDown:b,setFirstValue:A,setSecondValue:_}=bw(r,y,n),{stops:D,getStopStyle:F}=Pw(r,y,g,m),{inputId:B,isLabeledByFormItem:N}=$i(r,{formItemContext:h}),I=Or(),R=Z(()=>r.inputSize||I.value),M=Z(()=>r.label||o("el.slider.defaultLabel",{min:r.min,max:r.max})),$=Z(()=>r.range?r.rangeStartLabel||o("el.slider.defaultRangeStartLabel"):M.value),z=Z(()=>r.formatValueText?r.formatValueText(w.value):`${w.value}`),X=Z(()=>r.rangeEndLabel||o("el.slider.defaultRangeEndLabel")),P=Z(()=>r.formatValueText?r.formatValueText(S.value):`${S.value}`),O=Z(()=>[l.b(),l.m(I.value),l.is("vertical",r.vertical),{[l.m("with-input")]:r.showInput}]),L=gw(r);kw(r,y,g,m,n,h);const V=Z(()=>{const j=[r.min,r.max,r.step].map(U=>{const H=`${U}`.split(".")[1];return H?H.length:0});return Math.max.apply(null,j)}),{sliderWrapper:x}=yw(r,y,s),{firstValue:w,secondValue:S,sliderSize:T}=mi(y),C=j=>{y.dragging=j};return Tt(ff,{...mi(r),sliderSize:T,disabled:p,precision:V,emitChange:d,resetSize:s,updateDragging:C}),t({onSliderClick:E}),(j,U)=>{var H,G;return te(),fe("div",{id:j.range?k(B):void 0,ref_key:"sliderWrapper",ref:x,class:ve(k(O)),role:j.range?"group":void 0,"aria-label":j.range&&!k(N)?k(M):void 0,"aria-labelledby":j.range&&k(N)?(H=k(h))==null?void 0:H.labelId:void 0,onTouchstart:U[2]||(U[2]=(...ee)=>k(v)&&k(v)(...ee)),onTouchmove:U[3]||(U[3]=(...ee)=>k(v)&&k(v)(...ee))},[Se("div",{ref_key:"slider",ref:f,class:ve([k(l).e("runway"),{"show-input":j.showInput&&!j.range},k(l).is("disabled",k(p))]),style:He(k(c)),onMousedown:U[0]||(U[0]=(...ee)=>k(b)&&k(b)(...ee)),onTouchstart:U[1]||(U[1]=(...ee)=>k(b)&&k(b)(...ee))},[Se("div",{class:ve(k(l).e("bar")),style:He(k(i))},null,6),Fe(Hl,{id:j.range?void 0:k(B),ref_key:"firstButton",ref:u,"model-value":k(w),vertical:j.vertical,"tooltip-class":j.tooltipClass,placement:j.placement,role:"slider","aria-label":j.range||!k(N)?k($):void 0,"aria-labelledby":!j.range&&k(N)?(G=k(h))==null?void 0:G.labelId:void 0,"aria-valuemin":j.min,"aria-valuemax":j.range?k(S):j.max,"aria-valuenow":k(w),"aria-valuetext":k(z),"aria-orientation":j.vertical?"vertical":"horizontal","aria-disabled":k(p),"onUpdate:modelValue":k(A)},null,8,["id","model-value","vertical","tooltip-class","placement","aria-label","aria-labelledby","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"]),j.range?(te(),Pe(Hl,{key:0,ref_key:"secondButton",ref:a,"model-value":k(S),vertical:j.vertical,"tooltip-class":j.tooltipClass,placement:j.placement,role:"slider","aria-label":k(X),"aria-valuemin":k(w),"aria-valuemax":j.max,"aria-valuenow":k(S),"aria-valuetext":k(P),"aria-orientation":j.vertical?"vertical":"horizontal","aria-disabled":k(p),"onUpdate:modelValue":k(_)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):Ae("v-if",!0),j.showStops?(te(),fe("div",$w,[(te(!0),fe(Ke,null,Fr(k(D),(ee,se)=>(te(),fe("div",{key:se,class:ve(k(l).e("stop")),style:He(k(F)(ee))},null,6))),128))])):Ae("v-if",!0),k(L).length>0?(te(),fe(Ke,{key:2},[Se("div",null,[(te(!0),fe(Ke,null,Fr(k(L),(ee,se)=>(te(),fe("div",{key:se,style:He(k(F)(ee.position)),class:ve([k(l).e("stop"),k(l).e("marks-stop")])},null,6))),128))]),Se("div",{class:ve(k(l).e("marks"))},[(te(!0),fe(Ke,null,Fr(k(L),(ee,se)=>(te(),Pe(k(Lw),{key:se,mark:ee.mark,style:He(k(F)(ee.position))},null,8,["mark","style"]))),128))],2)],64)):Ae("v-if",!0)],38),j.showInput&&!j.range?(te(),Pe(k(hw),{key:0,ref:"input","model-value":k(w),class:ve(k(l).e("input")),step:j.step,disabled:k(p),controls:j.showInputControls,min:j.min,max:j.max,debounce:j.debounce,size:k(R),"onUpdate:modelValue":k(A),onChange:k(d)},null,8,["model-value","class","step","disabled","controls","min","max","debounce","size","onUpdate:modelValue","onChange"])):Ae("v-if",!0)],42,Rw)}}});var qw=$e(zw,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/slider.vue"]]);const Uw=ft(qw),Xw=Re({prefixCls:{type:String}}),Gl=ye({name:"ElSpaceItem",props:Xw,setup(e,{slots:t}){const n=Le("space"),r=Z(()=>`${e.prefixCls||n.b()}__item`);return()=>tn("div",{class:r.value},Ie(t,"default"))}}),Kl={small:8,default:12,large:16};function Jw(e){const t=Le("space"),n=Z(()=>[t.b(),t.m(e.direction),e.class]),r=oe(0),l=oe(0),o=Z(()=>{const h=e.wrap||e.fill?{flexWrap:"wrap",marginBottom:`-${l.value}px`}:{},f={alignItems:e.alignment};return[h,f,e.style]}),y=Z(()=>{const h={paddingBottom:`${l.value}px`,marginRight:`${r.value}px`},f=e.fill?{flexGrow:1,minWidth:`${e.fillRatio}%`}:{};return[h,f]});return yd(()=>{const{size:h="small",wrap:f,direction:u,fill:a}=e;if(Qe(h)){const[p=0,g=0]=h;r.value=p,l.value=g}else{let p;Me(h)?p=h:p=Kl[h||"small"]||Kl.small,(f||a)&&u==="horizontal"?r.value=l.value=p:u==="horizontal"?(r.value=p,l.value=0):(l.value=p,r.value=0)}}),{classes:n,containerStyle:o,itemStyle:y}}const Ww=Re({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:Te([String,Object,Array]),default:""},style:{type:Te([String,Array,Object]),default:""},alignment:{type:Te(String),default:"center"},prefixCls:{type:String},spacer:{type:Te([Object,String,Number,Array]),default:null,validator:e=>zn(e)||Me(e)||Ye(e)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:of,validator:e=>Me(e)||Qe(e)&&e.length===2&&e.every(Me)}}),Hw=ye({name:"ElSpace",props:Ww,setup(e,{slots:t}){const{classes:n,containerStyle:r,itemStyle:l}=Jw(e);function o(y,h="",f=[]){const{prefixCls:u}=e;return y.forEach((a,p)=>{os(a)?Qe(a.children)&&a.children.forEach((g,m)=>{os(g)&&Qe(g.children)?o(g.children,`${h+m}-`,f):f.push(Fe(Gl,{style:l.value,prefixCls:u,key:`nested-${h+m}`},{default:()=>[g]},Nt.PROPS|Nt.STYLE,["style","prefixCls"]))}):U0(a)&&f.push(Fe(Gl,{style:l.value,prefixCls:u,key:`LoopKey${h+p}`},{default:()=>[a]},Nt.PROPS|Nt.STYLE,["style","prefixCls"]))}),f}return()=>{var y;const{spacer:h,direction:f}=e,u=Ie(t,"default",{key:0},()=>[]);if(((y=u.children)!=null?y:[]).length===0)return null;if(Qe(u.children)){let a=o(u.children);if(h){const p=a.length-1;a=a.reduce((g,m,c)=>{const i=[...g,m];return c!==p&&i.push(Fe("span",{style:[l.value,f==="vertical"?"width: 100%":null],key:c},[zn(h)?h:Un(h,Nt.TEXT)],Nt.STYLE)),i},[])}return Fe("div",{class:n.value,style:r.value},a,Nt.STYLE|Nt.CLASS)}return u.children}}}),Hf=ft(Hw),Gw=e=>(cc("data-v-ec8f3ba8"),e=e(),fc(),e),Kw={class:"dns-list"},Yw=Gw(()=>Se("h3",null,"Remote DNS",-1)),Qw={class:"el-input__wrapper input-border"},Zw={class:"pre-label"},e1=["value","onChange"],t1=ye({__name:"RemoteDNS",setup(e){function t(f){return`${f}`}function n(f){return f}let r=th();r.init();let l=oe("");function o(f){return/^(\d+\.){3}\d+$/.test(f)}function y(f){console.log(f),o(f)&&(r.add(f),l.value="")}function h(f,u){o(u.ip)&&r.edit(f,u)}return(f,u)=>(te(),fe("div",Kw,[Yw,Fe(k(Hf),{direction:"vertical"},{default:ke(()=>[(te(!0),fe(Ke,null,Fr(k(r).dataList,(a,p)=>(te(),fe("div",{key:a,class:"el-input el-input--small dns-input-1"},[Se("div",Qw,[Se("span",Zw,at(p+1),1),Se("input",{class:"el-input__inner",value:a.ip,onChange:g=>h(a.id,{...a,ip:g.target.value}),placeholder:"dns ip"},null,40,e1)]),Fe(k(_i),{size:"small",class:"m-l-1",type:"danger",icon:k(af),circle:"",onClick:()=>k(r).delete(a.id)},null,8,["icon","onClick"])]))),128))]),_:1}),Fe(k(Wf),{class:"little"}),k(r).dataList.length<5?(te(),Pe(k(Kn),{key:0,size:"small",class:"dns-input-2",modelValue:k(l),"onUpdate:modelValue":u[0]||(u[0]=a=>rr(l)?l.value=a:l=a),onChange:y,placeholder:"add dns ip",formatter:t,parser:n},null,8,["modelValue"])):Ae("",!0)]))}});const r1=ps(t1,[["__scopeId","data-v-ec8f3ba8"]]);let n1=Symbol("raw");function i1(){return vt("/domain",{}).then(e=>e.body.data.map(t=>(t[n1]=JSON.stringify(t),t)))}const a1=fs("domainList",()=>{const e=oe([]);let t=!0;async function n(){t&&(t=!1,e.value=await i1(),setTimeout(()=>{t=!0},800))}function r(y,h){return vt(`/domain/${y}`,{method:"put",body:{...h}}).then(f=>(n(),f.body.data))}function l(y){return vt(`/domain/${y}`,{method:"delete"}).then(h=>(n(),h.body.data))}function o(y){return vt("/domain",{method:"post",body:{...y,isUsing:!0}}).then(h=>(n(),h.body.data))}return{dataList:e,edit:r,delete:l,add:o,init:n}});function s1(){return vt("/code",{}).then(e=>e.body.data.map(t=>t.code).join(`
`))}function o1(e){let t=["ban"];try{let n=Ya.parse(e);Ya.visit(n,{visitFunction({value:r,parentPath:l}){var y;let o=(y=r==null?void 0:r.id)==null?void 0:y.name;return o||(o=l.value.id.name),t.push(o),!1},visitArrowFunctionExpression({parentPath:r}){let l=r.value;return l.type=="VariableDeclarator"&&t.push(l.id.name),!1}})}catch(n){return console.error("代码错误 或 正在输入",n),null}return Array.from(new Set(t))}let Wa=null;function u1(e){Wa&&clearTimeout(Wa),Wa=setTimeout(()=>{vt(`/code/${1}`,{method:"put",body:{code:e.value}}).then(t=>t.body.data)},1e3)}const Gf=fs("funCode",()=>{const e=oe(""),t=oe([]);async function n(){let l=await s1();r(l)}function r(l){e.value=l;let o=o1(e.value);o&&o.length&&(t.value=o,u1(e))}return{dataList:e,edit:r,nameList:t,init:n}}),l1={class:"domain-item grid-row"},Yl=ye({__name:"DomainListItem",props:{item:null},emits:["change","delete","add"],setup(e,{emit:t}){const n=e;let r=Gf(),l=oe(n.item||{}),o=n.item==null,y=oe(!1);function h(p){if(!p)return"";if(/^(\d{1,3}\.){3}\d{1,3}$/.test(p))return"IP";if(/^(\w+)$/.test(p))return"函数"}function f(p){t("change",{...l.value,...p})}function u(){t("add",{...l.value}),l.value={}}const a=(p,g)=>{p=(p||"").toLowerCase();let m=d=>d.toLocaleLowerCase().indexOf(p)>=0,c=r.nameList.filter(d=>m(d)),i=r.nameList.filter(d=>!m(d));const s=[...c,...i].map(d=>({value:d}));g(s)};return(p,g)=>(te(),fe("div",l1,[Fe(k(Kn),{size:"small",class:"domain-input t-r",modelValue:k(l).domain,"onUpdate:modelValue":g[0]||(g[0]=m=>k(l).domain=m),placeholder:"domain",onChange:f},null,8,["modelValue"]),Fe(k(lx),{size:"small",class:ve(["action-input t-r",{"is-error":k(y)}]),onChange:f,modelValue:k(l).action,"onUpdate:modelValue":g[1]||(g[1]=m=>k(l).action=m),placeholder:"action","fetch-suggestions":a,clearable:"",onSelect:g[2]||(g[2]=m=>f(m.value))},{append:ke(()=>[Un(at(h(k(l).action)),1)]),_:1},8,["class","modelValue"]),Fe(k(rw),{checked:!!k(l).isUsing,size:"small",class:"m-l-1",onChange:g[3]||(g[3]=m=>f({...k(l),isUsing:m?1:0}))},null,8,["checked"]),k(o)?Ae("",!0):(te(),Pe(k(_i),{key:0,size:"small",class:"m-l-1",type:"danger",icon:k(af),circle:"",onClick:g[4]||(g[4]=()=>t("delete",null))},null,8,["icon"])),k(o)?(te(),Pe(k(_i),{key:1,size:"small",class:"m-l-1",type:"success",icon:k($g),circle:"",onClick:u},null,8,["icon"])):Ae("",!0)]))}});const c1=e=>(cc("data-v-1db87129"),e=e(),fc(),e),f1={class:"domain-list"},d1=c1(()=>Se("h3",null,"Domain",-1)),p1={class:"list-box"},h1=ye({__name:"DomainList",setup(e){let t=a1();return t.init(),(n,r)=>(te(),fe("div",f1,[d1,Se("div",p1,[Fe(k(Hf),{direction:"vertical"},{default:ke(()=>[(te(!0),fe(Ke,null,Fr(k(t).dataList,(l,o)=>(te(),Pe(Yl,{item:l,onChange:y=>k(t).edit(l.id,y),onDelete:()=>k(t).delete(l.id)},null,8,["item","onChange","onDelete"]))),256))]),_:1})]),Fe(k(Wf),{class:"little"}),Fe(Yl,{item:null,onAdd:r[0]||(r[0]=l=>k(t).add(l))})]))}});const m1=ps(h1,[["__scopeId","data-v-1db87129"]]);function v1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ql(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function Zl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ql(Object(n),!0).forEach(function(r){v1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ql(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function y1(e,t){if(e==null)return{};var n={},r=Object.keys(e),l,o;for(o=0;o<r.length;o++)l=r[o],!(t.indexOf(l)>=0)&&(n[l]=e[l]);return n}function g1(e,t){if(e==null)return{};var n=y1(e,t),r,l;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(l=0;l<o.length;l++)r=o[l],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function b1(e,t){return S1(e)||E1(e,t)||x1(e,t)||w1()}function S1(e){if(Array.isArray(e))return e}function E1(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,l=!1,o=void 0;try{for(var y=e[Symbol.iterator](),h;!(r=(h=y.next()).done)&&(n.push(h.value),!(t&&n.length===t));r=!0);}catch(f){l=!0,o=f}finally{try{!r&&y.return!=null&&y.return()}finally{if(l)throw o}}return n}}function x1(e,t){if(e){if(typeof e=="string")return ec(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ec(e,t)}}function ec(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function w1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function D1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function rc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tc(Object(n),!0).forEach(function(r){D1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tc(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function A1(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){return t.reduceRight(function(l,o){return o(l)},r)}}function en(e){return function t(){for(var n=this,r=arguments.length,l=new Array(r),o=0;o<r;o++)l[o]=arguments[o];return l.length>=e.length?e.apply(this,l):function(){for(var y=arguments.length,h=new Array(y),f=0;f<y;f++)h[f]=arguments[f];return t.apply(n,[].concat(l,h))}}}function Fi(e){return{}.toString.call(e).includes("Object")}function T1(e){return!Object.keys(e).length}function Vn(e){return typeof e=="function"}function C1(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function _1(e,t){return Fi(t)||er("changeType"),Object.keys(t).some(function(n){return!C1(e,n)})&&er("changeField"),t}function F1(e){Vn(e)||er("selectorType")}function P1(e){Vn(e)||Fi(e)||er("handlerType"),Fi(e)&&Object.values(e).some(function(t){return!Vn(t)})&&er("handlersType")}function k1(e){e||er("initialIsRequired"),Fi(e)||er("initialType"),T1(e)&&er("initialContent")}function O1(e,t){throw new Error(e[t]||e.default)}var I1={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},er=en(O1)(I1),di={changes:_1,selector:F1,handler:P1,initial:k1};function B1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};di.initial(e),di.handler(t);var n={current:e},r=en(j1)(n,t),l=en(M1)(n),o=en(di.changes)(e),y=en(N1)(n);function h(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(a){return a};return di.selector(u),u(n.current)}function f(u){A1(r,l,o,y)(u)}return[h,f]}function N1(e,t){return Vn(t)?t(e.current):t}function M1(e,t){return e.current=rc(rc({},e.current),t),t}function j1(e,t,n){return Vn(t)?t(e.current):Object.keys(n).forEach(function(r){var l;return(l=t[r])===null||l===void 0?void 0:l.call(t,e.current[r])}),n}var L1={create:B1},R1={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.33.0/min/vs"}};function $1(e){return function t(){for(var n=this,r=arguments.length,l=new Array(r),o=0;o<r;o++)l[o]=arguments[o];return l.length>=e.length?e.apply(this,l):function(){for(var y=arguments.length,h=new Array(y),f=0;f<y;f++)h[f]=arguments[f];return t.apply(n,[].concat(l,h))}}}function V1(e){return{}.toString.call(e).includes("Object")}function z1(e){return e||nc("configIsRequired"),V1(e)||nc("configType"),e.urls?(q1(),{paths:{vs:e.urls.monacoBase}}):e}function q1(){console.warn(Kf.deprecation)}function U1(e,t){throw new Error(e[t]||e.default)}var Kf={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
    You are using deprecated way of configuration.

    Instead of using
      monaco.config({ urls: { monacoBase: '...' } })
    use
      monaco.config({ paths: { vs: '...' } })

    For more please check the link https://github.com/suren-atoyan/monaco-loader#config
  `},nc=$1(U1)(Kf),X1={config:z1},J1=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(l){return n.reduceRight(function(o,y){return y(o)},l)}};function Yf(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],Yf(e[n],t[n]))}),Zl(Zl({},e),t)}var W1={type:"cancelation",msg:"operation is manually canceled"};function Ha(e){var t=!1,n=new Promise(function(r,l){e.then(function(o){return t?l(W1):r(o)}),e.catch(l)});return n.cancel=function(){return t=!0},n}var H1=L1.create({config:R1,isInitialized:!1,resolve:null,reject:null,monaco:null}),Qf=b1(H1,2),Yn=Qf[0],qi=Qf[1];function G1(e){var t=X1.config(e),n=t.monaco,r=g1(t,["monaco"]);qi(function(l){return{config:Yf(l.config,r),monaco:n}})}function K1(){var e=Yn(function(t){var n=t.monaco,r=t.isInitialized,l=t.resolve;return{monaco:n,isInitialized:r,resolve:l}});if(!e.isInitialized){if(qi({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),Ha(Ga);if(window.monaco&&window.monaco.editor)return Zf(window.monaco),e.resolve(window.monaco),Ha(Ga);J1(Y1,Z1)(eD)}return Ha(Ga)}function Y1(e){return document.body.appendChild(e)}function Q1(e){var t=document.createElement("script");return e&&(t.src=e),t}function Z1(e){var t=Yn(function(r){var l=r.config,o=r.reject;return{config:l,reject:o}}),n=Q1("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function eD(){var e=Yn(function(n){var r=n.config,l=n.resolve,o=n.reject;return{config:r,resolve:l,reject:o}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(n){Zf(n),e.resolve(n)},function(n){e.reject(n)})}function Zf(e){Yn().monaco||qi({monaco:e})}function tD(){return Yn(function(e){var t=e.monaco;return t})}var Ga=new Promise(function(e,t){return qi({resolve:e,reject:t})}),rD={config:G1,init:K1,__getMonacoInstance:tD};const Ka={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}};function nD(e,t){const n=Z(()=>{const{width:l,height:o}=e;return{...Ka.wrapper,width:l,height:o}}),r=Z(()=>({...Ka.fullWidth,...!t.value&&Ka.hide}));return{wrapperStyle:n,containerStyle:r}}function iD(){const e=Yt(null),t=rD.init(),n=()=>t.cancel();return t.then(r=>e.value=r).catch(r=>{(r==null?void 0:r.type)!=="cancelation"&&console.error("Monaco initialization error:",r)}),{monacoRef:e,unload:n}}function aD(e){return typeof e=="function"?e():e}function sD(e){return e===void 0}function ed(e,t,n,r){return oD(e,r)||uD(e,t,n,r)}function oD(e,t){return e.editor.getModel(td(e,t))}function uD(e,t,n,r){return e.editor.createModel(t,n,r?td(e,r):void 0)}function td(e,t){return e.Uri.parse(t)}const lD={display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"};var cD=ye({name:"VueMonacoEditor",model:{prop:"value",event:"update:value"},props:{defaultValue:String,defaultPath:String,defaultLanguage:String,value:String,language:String,path:String,theme:{type:String,default:"light"},line:Number,options:{type:Object,default:()=>({})},overrideServices:{type:Object,default:()=>({})},saveViewState:{type:Boolean,default:!0},width:{type:[Number,String],default:"100%"},height:{type:[Number,String],default:"100%"},className:String},emits:["update:value","beforeMount","mount","change","validate"],setup(e,t){const n=new Map,r=Yt(null),{monacoRef:l,unload:o}=iD(),{editorRef:y}=fD(t,e,l,r),{disposeValidator:h}=dD(t,e,l,y),f=Z(()=>!!l.value&&!!y.value),{wrapperStyle:u,containerStyle:a}=nD(e,f);return ac(()=>{var p,g,m;(p=h.value)==null||p.call(h),(g=y.value.getModel())==null||g.dispose(),((m=y.value)==null?void 0:m.dispose())??o()}),xe(()=>e.value,p=>{y.value&&y.value.getValue()!==p&&y.value.setValue(p)}),xe(()=>e.path,(p,g)=>{const m=ed(l.value,e.value||e.defaultValue,e.language||e.defaultLanguage,p);m!==y.value.getModel()&&(e.saveViewState&&n.set(g,y.value.saveViewState()),y.value.setModel(m),e.saveViewState&&y.value.restoreViewState(n.get(p)))}),xe(()=>e.options,p=>y.value&&y.value.updateOptions(p),{deep:!0}),xe(()=>e.theme,p=>l.value&&l.value.editor.setTheme(p)),xe(()=>e.language,p=>f.value&&l.value.editor.setModelLanguage(y.value.getModel(),p)),xe(()=>e.line,p=>{y.value&&!sD(p)&&y.value.revealLine(p)}),{containerRef:r,isEditorReady:f,wrapperStyle:u,containerStyle:a}},render(){const{$slots:e,isEditorReady:t,wrapperStyle:n,containerStyle:r,className:l}=this;return tn("div",{style:n},[!t&&tn("div",{style:lD},e.default?aD(e.default):"loading..."),tn("div",{ref:"containerRef",key:"monaco_editor_container",style:r,class:l})])}});function fD(e,t,n,r){let{emit:l}=e;const o=Yt(null);Ze(()=>{const h=xe(n,()=>{r.value&&n.value&&(Je(()=>h()),y())},{immediate:!0})});function y(){var u;if(!r.value||!n.value||o.value)return;l("beforeMount",n.value);const h=t.path||t.defaultPath,f=ed(n.value,t.value||t.defaultValue,t.language||t.defaultLanguage,h);o.value=n.value.editor.create(r.value,{model:f,theme:t.theme,automaticLayout:!0,autoIndent:"brackets",formatOnPaste:!0,formatOnType:!0,...t.options},t.overrideServices),(u=o.value)==null||u.onDidChangeModelContent(a=>{const p=o.value.getValue();p!==t.value&&(l("update:value",p),l("change",p,a))}),l("mount",o.value,n.value)}return{editorRef:o}}function dD(e,t,n,r){let{emit:l}=e;const o=oe(null),y=xe([n,r],()=>{if(n.value&&r.value){Je(()=>y());const h=n.value.editor.onDidChangeMarkers(f=>{var a,p;const u=(p=(a=r.value)==null?void 0:a.getModel())==null?void 0:p.uri;if(u&&f.find(m=>m.path===u.path)){const m=n.value.editor.getModelMarkers({resource:u});l("validate",m)}});o.value=()=>h==null?void 0:h.dispose()}});return{disposeValidator:o}}const pD={class:"action-list"},hD={class:"hide-x"},mD=ye({__name:"ActionList",setup(e){gd(o=>({92489752:k(l)+"px","6b898169":k(n)+"px","44298ebe":k(r)-k(n)+"px"}));let t=Gf();t.init();let n=oe(450),r=oe(1e3),l=oe(500);return(o,y)=>(te(),fe("div",pD,[Fe(k(cD),{value:k(t).dataList,theme:"vs-dark",language:"javascript",onChange:k(t).edit},null,8,["value","onChange"]),Se("div",hD,[Fe(k(Uw),{class:"width-ctrl",size:"small",modelValue:k(l),"onUpdate:modelValue":y[0]||(y[0]=h=>rr(l)?l.value=h:l=h),min:k(n),debounce:100,max:k(r)},null,8,["modelValue","min","max"])])]))}});const vD={class:"dig-result"},yD={class:"search-box"},gD={key:0,class:"result-txt"},bD={key:0},SD=ye({__name:"DigLog",setup(e){let t=oe(""),n=oe("");function r(){n.value="",vt(`/search?name=${t.value}`,{}).then(l=>{n.value=l.body.data.log.map((o,y)=>y%3==2&&o[0]==`
`?`

`:o.join(" ")).join("")})}return(l,o)=>(te(),fe("div",vD,[Se("div",yD,[Fe(k(Kn),{modelValue:k(t),"onUpdate:modelValue":o[0]||(o[0]=y=>rr(t)?t.value=y:t=y),placeholder:"Search Domain",class:"input-with-select"},{append:ke(()=>[Fe(k(_i),{icon:k(B0),onClick:r},null,8,["icon"])]),_:1},8,["modelValue"])]),k(t)?(te(),fe("div",gD,[k(n)?(te(),fe("pre",bD,at(k(n)),1)):Ae("",!0)])):Ae("",!0)]))}});const ED={class:"home-page"},xD={class:"domain-list"},wD={class:"action-list"},DD={class:"dig-log"},AD=ye({__name:"HomeView",setup(e){return(t,n)=>(te(),fe("div",ED,[Se("div",xD,[Fe(r1),Fe(m1)]),Se("div",wD,[Fe(mD)]),Se("div",DD,[Fe(SD)])]))}});const CD=ps(AD,[["__scopeId","data-v-267a9df7"]]);export{CD as default};