2410 lines
2.4 MiB
JavaScript
2410 lines
2.4 MiB
JavaScript
|
import {createRequire} from 'module'
|
||
|
import {dirname as __global__dirname__} from 'path'
|
||
|
import {fileURLToPath} from 'url'
|
||
|
const require=createRequire(import.meta.url)
|
||
|
const __filename=fileURLToPath(import.meta.url)
|
||
|
const __dirname=__global__dirname__(__filename)
|
||
|
var cN=Object.create;var Dc=Object.defineProperty;var pN=Object.getOwnPropertyDescriptor;var dN=Object.getOwnPropertyNames;var fN=Object.getPrototypeOf,hN=Object.prototype.hasOwnProperty;var yt=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,n)=>(typeof require<"u"?require:t)[n]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var mN=(e,t)=>()=>(e&&(t=e(e=0)),t);var me=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),yN=(e,t)=>{for(var n in t)Dc(e,n,{get:t[n],enumerable:!0})},qv=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of dN(t))!hN.call(e,o)&&o!==n&&Dc(e,o,{get:()=>t[o],enumerable:!(i=pN(t,o))||i.enumerable});return e};var Fi=(e,t,n)=>(n=e!=null?cN(fN(e)):{},qv(t||!e||!e.__esModule?Dc(n,"default",{value:e,enumerable:!0}):n,e)),Er=e=>qv(Dc({},"__esModule",{value:!0}),e);var br={};yN(br,{__addDisposableResource:()=>cT,__assign:()=>Ic,__asyncDelegator:()=>rT,__asyncGenerator:()=>tT,__asyncValues:()=>nT,__await:()=>eo,__awaiter:()=>Xv,__classPrivateFieldGet:()=>oT,__classPrivateFieldIn:()=>uT,__classPrivateFieldSet:()=>lT,__createBinding:()=>Nc,__decorate:()=>zv,__disposeResources:()=>pT,__esDecorate:()=>bN,__exportStar:()=>Yv,__extends:()=>Wv,__generator:()=>Jv,__importDefault:()=>aT,__importStar:()=>sT,__makeTemplateObject:()=>iT,__metadata:()=>Hv,__param:()=>Gv,__propKey:()=>vN,__read:()=>eh,__rest:()=>Kv,__runInitializers:()=>gN,__setFunctionName:()=>TN,__spread:()=>Qv,__spreadArray:()=>eT,__spreadArrays:()=>Zv,__values:()=>Oc,default:()=>xN});function Wv(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Zf(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function Kv(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]]);return n}function zv(e,t,n,i){var o=arguments.length,r=o<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(u=e[a])&&(r=(o<3?u(r):o>3?u(t,n,r):u(t,n))||r);return o>3&&r&&Object.defineProperty(t,n,r),r}function Gv(e,t){return function(n,i){t(n,i,e)}}function bN(e,t,n,i,o,r){function u(E){if(E!==void 0&&typeof E!="function")throw new TypeError("Function expected");return E}for(var a=i.kind,m=a==="getter"?"get":a==="setter"?"set":"value",d=!t&&e?i.static?e:e.prototype:null,s=t||(d?Object.getOwnPropertyDescriptor(d,i.name):{}),l,f=!1,p=n.length-1;p>=0;p--){var h={};for(var y in i)h[y]=y==="access"?{}:i[y];for(var y in i.access)h.access[y]=i.access[y];h.addInitializer=function(E){if(f)throw new TypeError("Cannot add initializers after decoration has completed");r.push(u(E||null))};var b=(0,n[p])(a==="accessor"?{get:s.get,set:s.set}:s[m],h);if(a==="accessor"){if(b===void 0)continue;if(b===null||typeof b!="object")throw new TypeError("Object expected");(l=u(b.get))&&(s.get=l),(l=u(b.set))&&(s.set=l),(l=u(b.init))&&o.unshift(l)}else(l=u(b))&&(a==="field"?o.unshift(l):s[m]=l)}d&&Object.defineProperty(d,i.name,s),f=!0}function gN(e,t,n){for(var i=arguments.length>2,o=0;o<t.length;o++)n=i?t[o].call(e,n):t[o].call(e);return i?n:void 0}function vN(e){return typeof e=="symbol"?e:"".concat(e)}function TN(e,t,n){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function Hv(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function Xv(e,t,n,i){function o(r){return r instanceof n?r:new n(function(u){u(r)})}return new(n||(n=Promise))(function(r,u){function a(s){try{d(i.next(s))}catch(l){u(l)}}function m(s){try{d(i.th
|
||
|
`,p,h=!0,y=t.numbers=="binary",b=t.numbers=="octal",E=t.numbers=="decimal",v=t.numbers=="hexadecimal";if(o&&e&&Wj(e.toJSON)&&(e=e.toJSON()),!Vj(e)){if(Kj(e))return e.size==0?"new Map()":(u||(t.__inline1__=!0,t.__inline2__=!1),"new Map("+Ws(Array.from(e),t)+")");if(zj(e))return e.size==0?"new Set()":"new Set("+Ws(Array.from(e),t)+")";if(Uj(e))return e.length==0?"Buffer.from([])":"Buffer.from("+Ws(Array.from(e),t)+")";if(Bj(e))return p=[],t.wrap=!0,s&&(t.__inline1__=!1,t.__inline2__=!0),l||n(),Rj(e,x=>{h=!1,l&&(t.__inline2__=!1),p.push((u||l?"":m)+Ws(x,t))}),h?"[]":l?"["+p.join(", ")+"]":"["+f+p.join(","+f)+f+(u?"":d)+"]";if(qj(e)){if(o)return JSON.stringify(e);if(E)return String(e);if(v){let x=e.toString(16);return a||(x=x.toUpperCase()),"0x"+x}if(y)return"0b"+e.toString(2);if(b)return"0o"+e.toString(8)}else return $j(e)?(p=[],t.wrap=!0,n(),tE(e,(x,C)=>{h=!1,p.push((u?"":m)+Ws(x,t)+":"+(u?"":" ")+Ws(C,t))}),h?"{}":"{"+f+p.join(","+f)+f+(u?"":d)+"}"):o?JSON.stringify(e)||"null":String(e)}let S=e,w=-1,A=S.length;for(p="";++w<A;){let x=S.charAt(w);if(t.es6){let I=S.charCodeAt(w);if(I>=55296&&I<=56319&&A>w+1){let j=S.charCodeAt(w+1);if(j>=56320&&j<=57343){let R=((I-55296)*1024+j-56320+65536).toString(16);a||(R=R.toUpperCase()),p+="\\u{"+R+"}",++w;continue}}}if(!t.escapeEverything){if(Jj.test(x)){p+=x;continue}if(x=='"'){p+=r==x?'\\"':x;continue}if(x=="`"){p+=r==x?"\\`":x;continue}if(x=="'"){p+=r==x?"\\'":x;continue}}if(x=="\0"&&!o&&!Xj.test(S.charAt(w+1))){p+="\\0";continue}if(Hj.test(x)){p+=Gj[x];continue}let C=x.charCodeAt(0);if(t.minimal&&C!=8232&&C!=8233){p+=x;continue}let P=C.toString(16);a||(P=P.toUpperCase());let D=P.length>2||o,L="\\"+(D?"u":"x")+("0000"+P).slice(D?-4:-2);p+=L}return t.wrap&&(p=r+p+r),r=="`"&&(p=p.replace(/\$\{/g,"\\${")),t.isScriptContext?p.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,o?"\\u003C!--":"\\x3C!--"):p};Ws.version="2.5.2";rE.exports=Ws});var _h=me((yY,iE)=>{var Yj={}.toString;iE.exports=Array.isArray||function(e){return Yj.call(e)=="[object Array]"}});var aE=me((bY,sE)=>{"use strict";var Qj=_h();sE.exports=function(t){return t!=null&&typeof t=="object"&&Qj(t)===!1}});var lE=me((vY,oE)=>{"use strict";var Zj=_h(),eL=aE(),gY=Array.prototype.slice;oE.exports=ro;function ro(e,t){if(!(this instanceof ro))return typeof t=="number"?new ro(e).fromIndex(t):new ro(e,t);this.str=e||"",this.lineToIndex=tL(this.str),t=t||{},this.origin=typeof t.origin>"u"?1:t.origin}ro.prototype.fromIndex=function(e){if(e<0||e>=this.str.length||isNaN(e))return null;var t=rL(e,this.lineToIndex);return{line:t+this.origin,col:e-this.lineToIndex[t]+this.origin}};ro.prototype.toIndex=function(e,t){if(typeof t>"u")return Zj(e)&&e.length>=2?this.toIndex(e[0],e[1]):eL(e)&&"line"in e&&("col"in e||"column"in e)?this.toIndex(e.line,"col"in e?e.col:e.column):-1;if(isNaN(e)||isNaN(t))return-1;if(e-=this.origin,t-=this.origin,e>=0&&t>=0&&e<this.lineToIndex.length){var n=this.lineToIndex[e],i=e===this.lineToIndex.length-1?this.str.length:this.lineToIndex[e+1];if(t<i-n)return n+t}return-1};function tL(e){for(var t=e.split(`
|
||
|
`),n=new Array(t.length),i=0,o=0,r=t.length;o<r;o++)n[o]=i,i+=t[o].length+1;return n}function rL(e,t){if(e>=t[t.length-1])return t.length-1;for(var n=0,i=t.length-2,o;n<i;)if(o=n+(i-n>>1),e<t[o])i=o-1;else if(e>=t[o+1])n=o+1;else{n=o;break}return n}});var cE=me(wh=>{var uE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");wh.encode=function(e){if(0<=e&&e<uE.length)return uE[e];throw new TypeError("Must be between 0 and 63: "+e)};wh.decode=function(e){var t=65,n=90,i=97,o=122,r=48,u=57,a=43,m=47,d=26,s=52;return t<=e&&e<=n?e-t:i<=e&&e<=o?e-i+d:r<=e&&e<=u?e-r+s:e==a?62:e==m?63:-1}});var Ph=me(Ah=>{var pE=cE(),Ch=5,dE=1<<Ch,fE=dE-1,hE=dE;function nL(e){return e<0?(-e<<1)+1:(e<<1)+0}function iL(e){var t=(e&1)===1,n=e>>1;return t?-n:n}Ah.encode=function(t){var n="",i,o=nL(t);do i=o&fE,o>>>=Ch,o>0&&(i|=hE),n+=pE.encode(i);while(o>0);return n};Ah.decode=function(t,n,i){var o=t.length,r=0,u=0,a,m;do{if(n>=o)throw new Error("Expected more digits in base 64 VLQ value.");if(m=pE.decode(t.charCodeAt(n++)),m===-1)throw new Error("Invalid base64 digit: "+t.charAt(n-1));a=!!(m&hE),m&=fE,r=r+(m<<u),u+=Ch}while(a);i.value=iL(r),i.rest=n}});var so=me(Rn=>{function sL(e,t,n){if(t in e)return e[t];if(arguments.length===3)return n;throw new Error('"'+t+'" is a required argument.')}Rn.getArg=sL;var mE=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,aL=/^data:.+\,.+$/;function El(e){var t=e.match(mE);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}Rn.urlParse=El;function no(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}Rn.urlGenerate=no;function kh(e){var t=e,n=El(e);if(n){if(!n.path)return e;t=n.path}for(var i=Rn.isAbsolute(t),o=t.split(/\/+/),r,u=0,a=o.length-1;a>=0;a--)r=o[a],r==="."?o.splice(a,1):r===".."?u++:u>0&&(r===""?(o.splice(a+1,u),u=0):(o.splice(a,2),u--));return t=o.join("/"),t===""&&(t=i?"/":"."),n?(n.path=t,no(n)):t}Rn.normalize=kh;function yE(e,t){e===""&&(e="."),t===""&&(t=".");var n=El(t),i=El(e);if(i&&(e=i.path||"/"),n&&!n.scheme)return i&&(n.scheme=i.scheme),no(n);if(n||t.match(aL))return t;if(i&&!i.host&&!i.path)return i.host=t,no(i);var o=t.charAt(0)==="/"?t:kh(e.replace(/\/+$/,"")+"/"+t);return i?(i.path=o,no(i)):o}Rn.join=yE;Rn.isAbsolute=function(e){return e.charAt(0)==="/"||mE.test(e)};function oL(e,t){e===""&&(e="."),e=e.replace(/\/$/,"");for(var n=0;t.indexOf(e+"/")!==0;){var i=e.lastIndexOf("/");if(i<0||(e=e.slice(0,i),e.match(/^([^\/]+:\/)?\/*$/)))return t;++n}return Array(n+1).join("../")+t.substr(e.length+1)}Rn.relative=oL;var bE=function(){var e=Object.create(null);return!("__proto__"in e)}();function gE(e){return e}function lL(e){return vE(e)?"$"+e:e}Rn.toSetString=bE?gE:lL;function uL(e){return vE(e)?e.slice(1):e}Rn.fromSetString=bE?gE:uL;function vE(e){if(!e)return!1;var t=e.length;if(t<9||e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95)return!1;for(var n=t-10;n>=0;n--)if(e.charCodeAt(n)!==36)return!1;return!0}function cL(e,t,n){var i=io(e.source,t.source);return i!==0||(i=e.originalLine-t.originalLine,i!==0)||(i=e.originalColumn-t.originalColumn,i!==0||n)||(i=e.generatedColumn-t.generatedColumn,i!==0)||(i=e.generatedLine-t.generatedLine,i!==0)?i:io(e.name,t.name)}Rn.compareByOriginalPositions=cL;function pL(e,t,n){var i=e.generatedLine-t.generatedLine;return i!==0||(i=e.generatedColumn-t.generatedColumn,i!==0||n)||(i=io(e.source,t.source),i!==0)||(i=e.originalLine-t.originalLine,i!==0)||(i=e.originalColumn-t.originalColumn,i!==0)?i:io(e.name,t.name)}Rn.compareByGeneratedPositionsDeflated=pL;function io(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}function dL(e,t){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0)||(n=io(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n
|
||
|
`&&++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 v={type:101,value:b,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:y,end:this.scanner.index};return b.length>0&&this.config.tokens&&this.tokens.push(this.convertToken(v)),v},h.prototype.peekJSXToken=function(){var y=this.scanner.saveState();this.scanner.scanComments();var b=this.lexJSX();return this.scanner.restoreState(y),b},h.prototype.expectJSX=function(y){var b=this.nextJSXToken();(b.type!==7||b.value!==y)&&this.throwUnexpectedToken(b)},h.prototype.matchJSX=function(y){var b=this.peekJSXToken();return b.type===7&&b.value===y},h.prototype.parseJSXIdentifier=function(){var y=this.createJSXNode(),b=this.nextJSXToken();return b.type!==100&&this.throwUnexpectedToken(b),this.finalize(y,new r.JSXIdentifier(b.value))},h.prototype.parseJSXElementName=function(){var y=this.createJSXNode(),b=this.parseJSXIdentifier();if(this.matchJSX(":")){var E=b;this.expectJSX(":");var v=this.parseJSXIdentifier();b=this.finalize(y,new r.JSXNamespacedName(E,v))}else if(this.matchJSX("."))for(;this.matchJSX(".");){var S=b;this.expectJSX(".");var w=this.parseJSXIdentifier();b=this.finalize(y,new r.JSXMemberExpression(S,w))}return b},h.prototype.parseJSXAttributeName=function(){var y=this.createJSXNode(),b,E=this.parseJSXIdentifier();if(this.matchJSX(":")){var v=E;this.expectJSX(":");var S=this.parseJSXIdentifier();b=this.finalize(y,new r.JSXNamespacedName(v,S))}else b=E;return b},h.prototype.parseJSXStringLiteralAttribute=function(){var y=this.createJSXNode(),b=this.nextJSXToken();b.type!==8&&this.throwUnexpectedToken(b);var E=this.getTokenRaw(b);return this.finalize(y,new a.Literal(b.value,E))},h.prototype.parseJSXExpressionAttribute=function(){var y=this.createJSXNode();this.expectJSX("{"),this.finishJSX(),this.match("}")&&this.tolerateError("JSX attributes must only be assigned a non-empty expression");var b=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(y,new r.JSXExpressionContainer(b))},h.prototype.parseJSXAttributeValue=function(){return this.matchJSX("{")?this.parseJSXExpressionAttribute():this.matchJSX("<")?this.parseJSXElement():this.parseJSXStringLiteralAttribute()},h.prototype.parseJSXNameValueAttribute=function(){var y=this.createJSXNode(),b=this.parseJSXAttributeName(),E=null;return this.matchJSX("=")&&(this.expectJSX("="),E=this.parseJSXAttributeValue()),this.finalize(y,new r.JSXAttribute(b,E))},h.prototype.parseJSXSpreadAttribute=function(){var y=this.createJSXNode();this.expectJSX("{"),this.expectJSX("..."),this.finishJSX();var b=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(y,new r.JSXSpreadAttribute(b))},h.prototype.parseJSXAttributes=function(){for(var y=[];!this.matchJSX("/")&&!this.matchJSX(">");){var b=this.matchJSX("{")?this.parseJSXSpreadAttribute():this.parseJSXNameValueAttribute();y.push(b)}return y},h.prototype.parseJSXOpeningElement=function(){var y=this.createJSXNode();this.expectJSX("<");var b=this.parseJSXElementName(),E=this.parseJSXAttributes(),v=this.matchJSX("/");return v&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(y,new r.JSXOpeningElement(b,v,E))},h.prototype.parseJSXBoundaryElement=function(){var y=this.createJSXNode();if(this.expectJSX("<"),this.matchJSX("/")){this.expectJSX("/");var b=this.parseJSXElementName();return this.expectJSX(">"),this.finalize(y,new r.JSXClosingElement(b))}var E=this.parseJSXElementName(),v=this.parseJSXAttributes(),S=this.matchJSX("/");return S&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(y,new r.JSXOpeningElement(E,S,v))},h.prototype.parseJSXEmptyExpression=function(){var y=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(y,new r.JSXEmptyExpression)},h.prototype.parseJSXExpressionContainer=func
|
||
|
`;break;case"r":p+="\r";break;case"t":p+=" ";break;case"b":p+="\b";break;case"f":p+="\f";break;case"v":p+="\v";break;case"8":case"9":p+=h,this.tolerateUnexpectedToken();break;default:if(h&&o.Character.isOctalDigit(h.charCodeAt(0))){var E=this.octalToDecimal(h);f=E.octal||f,p+=String.fromCharCode(E.code)}else p+=h;break}else++this.lineNumber,h==="\r"&&this.source[this.index]===`
|
||
|
`&&++this.index,this.lineStart=this.index;else{if(o.Character.isLineTerminator(h.charCodeAt(0)))break;p+=h}}return l!==""&&(this.index=s,this.throwUnexpectedToken()),{type:8,value:p,octal:f,lineNumber:this.lineNumber,lineStart:this.lineStart,start:s,end:this.index}},d.prototype.scanTemplate=function(){var s="",l=!1,f=this.index,p=this.source[f]==="`",h=!1,y=2;for(++this.index;!this.eof();){var b=this.source[this.index++];if(b==="`"){y=1,h=!0,l=!0;break}else if(b==="$"){if(this.source[this.index]==="{"){this.curlyStack.push("${"),++this.index,l=!0;break}s+=b}else if(b==="\\")if(b=this.source[this.index++],o.Character.isLineTerminator(b.charCodeAt(0)))++this.lineNumber,b==="\r"&&this.source[this.index]===`
|
||
|
`&&++this.index,this.lineStart=this.index;else switch(b){case"n":s+=`
|
||
|
`;break;case"r":s+="\r";break;case"t":s+=" ";break;case"u":if(this.source[this.index]==="{")++this.index,s+=this.scanUnicodeCodePointEscape();else{var E=this.index,v=this.scanHexEscape(b);v!==null?s+=v:(this.index=E,s+=b)}break;case"x":var S=this.scanHexEscape(b);S===null&&this.throwUnexpectedToken(r.Messages.InvalidHexEscapeSequence),s+=S;break;case"b":s+="\b";break;case"f":s+="\f";break;case"v":s+="\v";break;default:b==="0"?(o.Character.isDecimalDigit(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(r.Messages.TemplateOctalLiteral),s+="\0"):o.Character.isOctalDigit(b.charCodeAt(0))?this.throwUnexpectedToken(r.Messages.TemplateOctalLiteral):s+=b;break}else o.Character.isLineTerminator(b.charCodeAt(0))?(++this.lineNumber,b==="\r"&&this.source[this.index]===`
|
||
|
`&&++this.index,this.lineStart=this.index,s+=`
|
||
|
`):s+=b}return l||this.throwUnexpectedToken(),p||this.curlyStack.pop(),{type:10,value:this.source.slice(f+1,this.index-y),cooked:s,head:p,tail:h,lineNumber:this.lineNumber,lineStart:this.lineStart,start:f,end:this.index}},d.prototype.testRegExp=function(s,l){var f="\uFFFF",p=s,h=this;l.indexOf("u")>=0&&(p=p.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g,function(y,b,E){var v=parseInt(b||E,16);return v>1114111&&h.throwUnexpectedToken(r.Messages.InvalidRegExp),v<=65535?String.fromCharCode(v):f}).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,f));try{RegExp(p)}catch{this.throwUnexpectedToken(r.Messages.InvalidRegExp)}try{return new RegExp(s,l)}catch{return null}},d.prototype.scanRegExpBody=function(){var s=this.source[this.index];i.assert(s==="/","Regular expression literal must start with a slash");for(var l=this.source[this.index++],f=!1,p=!1;!this.eof();)if(s=this.source[this.index++],l+=s,s==="\\")s=this.source[this.index++],o.Character.isLineTerminator(s.charCodeAt(0))&&this.throwUnexpectedToken(r.Messages.UnterminatedRegExp),l+=s;else if(o.Character.isLineTerminator(s.charCodeAt(0)))this.throwUnexpectedToken(r.Messages.UnterminatedRegExp);else if(f)s==="]"&&(f=!1);else if(s==="/"){p=!0;break}else s==="["&&(f=!0);return p||this.throwUnexpectedToken(r.Messages.UnterminatedRegExp),l.substr(1,l.length-2)},d.prototype.scanRegExpFlags=function(){for(var s="",l="";!this.eof();){var f=this.source[this.index];if(!o.Character.isIdentifierPart(f.charCodeAt(0)))break;if(++this.index,f==="\\"&&!this.eof())if(f=this.source[this.index],f==="u"){++this.index;var p=this.index,h=this.scanHexEscape("u");if(h!==null)for(l+=h,s+="\\u";p<this.index;++p)s+=this.source[p];else this.index=p,l+="u",s+="\\u";this.tolerateUnexpectedToken()}else s+="\\",this.tolerateUnexpectedToken();else l+=f,s+=f}return l},d.prototype.scanRegExp=function(){var s=this.index,l=this.scanRegExpBody(),f=this.scanRegExpFlags(),p=this.testRegExp(l,f);return{type:9,value:"",pattern:l,flags:f,regex:p,lineNumber:this.lineNumber,lineStart:this.lineStart,start:s,end:this.index}},d.prototype.lex=function(){if(this.eof())return{type:2,value:"",lineNumber:this.lineNumber,lineStart:this.lineStart,start:this.index,end:this.index};var s=this.source.charCodeAt(this.index);return o.Character.isIdentifierStart(s)?this.scanIdentifier():s===40||s===41||s===59?this.scanPunctuator():s===39||s===34?this.scanStringLiteral():s===46?o.Character.isDecimalDigit(this.source.charCodeAt(this.index+1))?this.scanNumericLiteral():this.scanPunctuator():o.Character.isDecimalDigit(s)?this.scanNumericLiteral():s===96||s===125&&this.curlyStack[this.curlyStack.length-1]==="${"?this.scanTemplate():s>=55296&&s<57343&&o.Character.isIdentifierStart(this.codePointAt(this.index))?this.scanIdentifier():this.scanPunctuator()},d}();t.Scanner=m},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TokenName={},t.TokenName[1]="Boolean",t.TokenName[2]="<end>",t.TokenName[3]="Identifier",t.TokenName[4]="Keyword",t.TokenName[5]="Null",t.TokenName[6]="Numeric",t.TokenName[7]="Punctuator",t.TokenName[8]="String",t.TokenName[9]="RegularExpression",t.TokenName[10]="Template"},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XHTMLEntities={quot:'"',amp:"&",apos:"'",gt:">",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xD
|
||
|
`,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},FL=Wh.hasOwnProperty;function jL(e){var t=e||Wh;function n(i){return FL.call(t,i)?t[i]:Wh[i]}return{tabWidth:+n("tabWidth"),useTabs:!!n("useTabs"),reuseWhitespace:!!n("reuseWhitespace"),lineTerminator:n("lineTerminator"),wrapColumn:Math.max(n("wrapColumn"),0),sourceFileName:n("sourceFileName"),sourceMapName:n("sourceMapName"),sourceRoot:n("sourceRoot"),inputSourceMap:n("inputSourceMap"),parser:n("esprima")||n("parser"),range:n("range"),tolerant:n("tolerant"),quote:n("quote"),trailingComma:n("trailingComma"),arrayBracketSpacing:n("arrayBracketSpacing"),objectCurlySpacing:n("objectCurlySpacing"),arrowParensAlways:n("arrowParensAlways"),flowObjectCommas:n("flowObjectCommas"),tokens:!!n("tokens")}}Ep.normalize=jL});var ME=me(Kh=>{"use strict";Object.defineProperty(Kh,"__esModule",{value:!0});var LL=(gr(),Er(br)),wa=LL.__importDefault(yt("assert")),Gs=vs(),ML=function(){function e(t,n,i){i===void 0&&(i=n),this.sourceLines=t,this.sourceLoc=n,this.targetLoc=i}return e.prototype.slice=function(t,n,i){i===void 0&&(i=t.lastPos());var o=this.sourceLines,r=this.sourceLoc,u=this.targetLoc;function a(m){var d=r[m],s=u[m],l=n;return m==="end"?l=i:wa.default.strictEqual(m,"start"),RL(o,d,t,s,l)}if(Gs.comparePos(n,u.start)<=0)if(Gs.comparePos(u.end,i)<=0)u={start:zs(u.start,n.line,n.column),end:zs(u.end,n.line,n.column)};else{if(Gs.comparePos(i,u.start)<=0)return null;r={start:r.start,end:a("end")},u={start:zs(u.start,n.line,n.column),end:zs(i,n.line,n.column)}}else{if(Gs.comparePos(u.end,n)<=0)return null;Gs.comparePos(u.end,i)<=0?(r={start:a("start"),end:r.end},u={start:{line:1,column:0},end:zs(u.end,n.line,n.column)}):(r={start:a("start"),end:a("end")},u={start:{line:1,column:0},end:zs(i,n.line,n.column)})}return new e(this.sourceLines,r,u)},e.prototype.add=function(t,n){return new e(this.sourceLines,this.sourceLoc,{start:LE(this.targetLoc.start,t,n),end:LE(this.targetLoc.end,t,n)})},e.prototype.subtract=function(t,n){return new e(this.sourceLines,this.sourceLoc,{start:zs(this.targetLoc.start,t,n),end:zs(this.targetLoc.end,t,n)})},e.prototype.indent=function(t,n,i){if(n===void 0&&(n=!1),i===void 0&&(i=!1),t===0)return this;var o=this.targetLoc,r=o.start.line,u=o.end.line;if(n&&r===1&&u===1)return this;if(o={start:o.start,end:o.end},!n||r>1){var a=o.start.column+t;o.start={line:r,column:i?Math.max(0,a):a}}if(!n||u>1){var m=o.end.column+t;o.end={line:u,column:i?Math.max(0,m):m}}return new e(this.sourceLines,this.sourceLoc,o)},e}();Kh.default=ML;function LE(e,t,n){return{line:e.line+t-1,column:e.line===1?e.column+n:e.column}}function zs(e,t,n){return{line:e.line-t+1,column:e.line===t?e.column-n:e.column}}function RL(e,t,n,i,o){var r=Gs.comparePos(i,o);if(r===0)return t;var u,a;if(r<0){u=e.skipSpaces(t)||e.lastPos(),a=n.skipSpaces(i)||n.lastPos();var m=o.line-a.line;for(u.line+=m,a.line+=m,m>0?(u.column=0,a.column=0):wa.default.strictEqual(m,0);Gs.comparePos(a,o)<0&&n.nextPos(a,!0);)wa.default.ok(e.nextPos(u,!0)),wa.default.strictEqual(e.charAt(u),n.charAt(a))}else{u=e.skipSpaces(t,!0)||e.firstPos(),a=n.skipSpaces(i,!0)||n.firstPos();var m=o.line-a.line;for(u.line+=m,a.line+=m,m<0?(u.column=e.getLineLength(u.line),a.column=n.getLineLength(a.line)):wa.default.strictEqual(m,0);Gs.comparePos(o,a)<0&&n.prevPos(a,!0);)wa.default.ok(e.prevPos(u,!0)),wa.default.strictEqual(e.charAt(u),n.charAt(a))}return u}});var Cl=me(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});es.concat=es.fromString=es.countSpaces=es.Lines=void 0;var Ti=(gr(),Er(br)),an=Ti.__importDefault(yt("assert")),BL=Ti.__importDefault(Rh()),BE=Sp(),RE=vs(),UL=Ti.__importDefault(ME()),zh=function(){function e(t,n){n===void 0&&(n=null),this.infos=t,this.mappings=[],this.cachedSourceMap=null,this.cachedTabWidth=void 0,an.default.ok(t.length>0),this.length=t.length,this.name=n||null,this.name&&this.mappings.push(new UL.default(this,{
|
||
|
`:i>=r.length?"":r.charAt(i)},e.prototype.charAt=function(t){an.default.strictEqual(typeof t,"object"),an.default.strictEqual(typeof t.line,"number"),an.default.strictEqual(typeof t.column,"number");var n=t.line,i=t.column,o=this,r=o.infos,u=r[n-1],a=i;if(typeof u>"u"||a<0)return"";var m=this.getIndentAt(n);return a<m?" ":(a+=u.sliceStart-m,a===u.sliceEnd&&n<this.length?`
|
||
|
`:a>=u.sliceEnd?"":u.line.charAt(a))},e.prototype.stripMargin=function(t,n){if(t===0)return this;if(an.default.ok(t>0,"negative margin: "+t),n&&this.length===1)return this;var i=new e(this.infos.map(function(r,u){return r.line&&(u>0||!n)&&(r=Ti.__assign(Ti.__assign({},r),{indent:Math.max(0,r.indent-t)})),r}));if(this.mappings.length>0){var o=i.mappings;an.default.strictEqual(o.length,0),this.mappings.forEach(function(r){o.push(r.indent(t,n,!0))})}return i},e.prototype.indent=function(t){if(t===0)return this;var n=new e(this.infos.map(function(o){return o.line&&!o.locked&&(o=Ti.__assign(Ti.__assign({},o),{indent:o.indent+t})),o}));if(this.mappings.length>0){var i=n.mappings;an.default.strictEqual(i.length,0),this.mappings.forEach(function(o){i.push(o.indent(t))})}return n},e.prototype.indentTail=function(t){if(t===0)return this;if(this.length<2)return this;var n=new e(this.infos.map(function(o,r){return r>0&&o.line&&!o.locked&&(o=Ti.__assign(Ti.__assign({},o),{indent:o.indent+t})),o}));if(this.mappings.length>0){var i=n.mappings;an.default.strictEqual(i.length,0),this.mappings.forEach(function(o){i.push(o.indent(t,!0))})}return n},e.prototype.lockIndentTail=function(){return this.length<2?this:new e(this.infos.map(function(t,n){return Ti.__assign(Ti.__assign({},t),{locked:n>0})}))},e.prototype.getIndentAt=function(t){return an.default.ok(t>=1,"no line "+t+" (line numbers start from 1)"),Math.max(this.infos[t-1].indent,0)},e.prototype.guessTabWidth=function(){if(typeof this.cachedTabWidth=="number")return this.cachedTabWidth;for(var t=[],n=0,i=1,o=this.length;i<=o;++i){var r=this.infos[i-1],u=r.line.slice(r.sliceStart,r.sliceEnd);if(!lo(u)){var a=Math.abs(r.indent-n);t[a]=~~t[a]+1,n=r.indent}}for(var m=-1,d=2,s=1;s<t.length;s+=1)Gh.call(t,s)&&t[s]>m&&(m=t[s],d=s);return this.cachedTabWidth=d},e.prototype.startsWithComment=function(){if(this.infos.length===0)return!1;var t=this.infos[0],n=t.sliceStart,i=t.sliceEnd,o=t.line.slice(n,i).trim();return o.length===0||o.slice(0,2)==="//"||o.slice(0,2)==="/*"},e.prototype.isOnlyWhitespace=function(){return lo(this.toString())},e.prototype.isPrecededOnlyByWhitespace=function(t){var n=this.infos[t.line-1],i=Math.max(n.indent,0),o=t.column-i;if(o<=0)return!0;var r=n.sliceStart,u=Math.min(r+o,n.sliceEnd),a=n.line.slice(r,u);return lo(a)},e.prototype.getLineLength=function(t){var n=this.infos[t-1];return this.getIndentAt(t)+n.sliceEnd-n.sliceStart},e.prototype.nextPos=function(t,n){n===void 0&&(n=!1);var i=Math.max(t.line,0),o=Math.max(t.column,0);return o<this.getLineLength(i)?(t.column+=1,n?!!this.skipSpaces(t,!1,!0):!0):i<this.length?(t.line+=1,t.column=0,n?!!this.skipSpaces(t,!1,!0):!0):!1},e.prototype.prevPos=function(t,n){n===void 0&&(n=!1);var i=t.line,o=t.column;if(o<1){if(i-=1,i<1)return!1;o=this.getLineLength(i)}else o=Math.min(o-1,this.getLineLength(i));return t.line=i,t.column=o,n?!!this.skipSpaces(t,!0,!0):!0},e.prototype.firstPos=function(){return{line:1,column:0}},e.prototype.lastPos=function(){return{line:this.length,column:this.getLineLength(this.length)}},e.prototype.skipSpaces=function(t,n,i){if(n===void 0&&(n=!1),i===void 0&&(i=!1),t?t=i?t:{line:t.line,column:t.column}:n?t=this.lastPos():t=this.firstPos(),n){for(;this.prevPos(t);)if(!lo(this.charAt(t))&&this.nextPos(t))return t;return null}else{for(;lo(this.charAt(t));)if(!this.nextPos(t))return null;return t}},e.prototype.trimLeft=function(){var t=this.skipSpaces(this.firstPos(),!1,!0);return t?this.slice(t):Ca},e.prototype.trimRight=function(){var t=this.skipSpaces(this.lastPos(),!0,!0);return t?this.slice(this.firstPos(),t):Ca},e.prototype.trim=function(){var t=this.skipSpaces(this.firstPos(),!1,!0);if(t===null)return Ca;var n=this.skipSpaces(this.lastPos(),!0,!0);return n===null?Ca:this.slice(t,n)},e.prototype.eachPos=function(t,n,i){n===void 0&&(n=this.firstPos()),i===void 0&&(i=!1);var o=this.firstPos();if(n&&(o.line=n.line,o.column=n.column),!(i&&!this.skipSpaces(o,!1,!0)))do t.call(this,o);while(this.nextPos(o,i))},e.prototype.bootstrapSlice=function(t,n){var i=this.toString().split(Hh).slice(t.line-1,n.line
|
||
|
`))},e.prototype.slice=function(t,n){if(!n){if(!t)return this;n=this.lastPos()}if(!t)throw new Error("cannot slice with end but not start");var i=this.infos.slice(t.line-1,n.line);t.line===n.line?i[0]=uo(i[0],t.column,n.column):(an.default.ok(t.line<n.line),i[0]=uo(i[0],t.column),i.push(uo(i.pop(),0,n.column)));var o=new e(i);if(this.mappings.length>0){var r=o.mappings;an.default.strictEqual(r.length,0),this.mappings.forEach(function(u){var a=u.slice(this,t,n);a&&r.push(a)},this)}return o},e.prototype.bootstrapSliceString=function(t,n,i){return this.slice(t,n).toString(i)},e.prototype.sliceString=function(t,n,i){t===void 0&&(t=this.firstPos()),n===void 0&&(n=this.lastPos());for(var o=BE.normalize(i),r=o.tabWidth,u=o.useTabs,a=o.reuseWhitespace,m=o.lineTerminator,d=[],s=t.line;s<=n.line;++s){var l=this.infos[s-1];s===t.line?s===n.line?l=uo(l,t.column,n.column):l=uo(l,t.column):s===n.line&&(l=uo(l,0,n.column));var f=Math.max(l.indent,0),p=l.line.slice(0,l.sliceStart);if(a&&lo(p)&&Xh(p,r)===f){d.push(l.line.slice(0,l.sliceEnd));continue}var h=0,y=f;u&&(h=Math.floor(f/r),y-=h*r);var b="";h>0&&(b+=new Array(h+1).join(" ")),y>0&&(b+=new Array(y+1).join(" ")),b+=l.line.slice(l.sliceStart,l.sliceEnd),d.push(b)}return d.join(m)},e.prototype.isEmpty=function(){return this.length<2&&this.getLineLength(1)<1},e.prototype.join=function(t){var n=this,i=[],o=[],r;function u(d){if(d!==null){if(r){var s=d.infos[0],l=new Array(s.indent+1).join(" "),f=i.length,p=Math.max(r.indent,0)+r.sliceEnd-r.sliceStart;r.line=r.line.slice(0,r.sliceEnd)+l+s.line.slice(s.sliceStart,s.sliceEnd),r.locked=r.locked||s.locked,r.sliceEnd=r.line.length,d.mappings.length>0&&d.mappings.forEach(function(h){o.push(h.add(f,p))})}else d.mappings.length>0&&o.push.apply(o,d.mappings);d.infos.forEach(function(h,y){(!r||y>0)&&(r=Ti.__assign({},h),i.push(r))})}}function a(d,s){s>0&&u(n),u(d)}if(t.map(function(d){var s=_p(d);return s.isEmpty()?null:s}).forEach(function(d,s){n.isEmpty()?u(d):a(d,s)}),i.length<1)return Ca;var m=new e(i);return m.mappings=o,m},e.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=[this];return i.push.apply(i,t),an.default.strictEqual(i.length,t.length+1),Ca.join(i)},e}();es.Lines=zh;var xp={},Gh=xp.hasOwnProperty,$L=10;function Xh(e,t){for(var n=0,i=e.length,o=0;o<i;++o)switch(e.charCodeAt(o)){case 9:{an.default.strictEqual(typeof t,"number"),an.default.ok(t>0);var r=Math.ceil(n/t)*t;r===n?n+=t:n=r;break}case 11:case 12:case 13:case 65279:break;case 32:default:n+=1;break}return n}es.countSpaces=Xh;var VL=/^\s*/,Hh=/\u000D\u000A|\u000D(?!\u000A)|\u000A|\u2028|\u2029/;function _p(e,t){if(e instanceof zh)return e;e+="";var n=t&&t.tabWidth,i=e.indexOf(" ")<0,o=!t&&i&&e.length<=$L;if(an.default.ok(n||i,`No tab width specified but encountered tabs in string
|
||
|
`+e),o&&Gh.call(xp,e))return xp[e];var r=new zh(e.split(Hh).map(function(u){var a=VL.exec(u)[0];return{line:u,indent:Xh(a,n),locked:!1,sliceStart:a.length,sliceEnd:u.length}}),BE.normalize(t).sourceFileName);return o&&(xp[e]=r),r}es.fromString=_p;function lo(e){return!/\S/.test(e)}function uo(e,t,n){var i=e.sliceStart,o=e.sliceEnd,r=Math.max(e.indent,0),u=r+o-i;return typeof n>"u"&&(n=u),t=Math.max(t,0),n=Math.min(n,u),n=Math.max(n,t),n<r?(r=n,o=i):o-=u-n,u=n,u-=t,t<r?r-=t:(t-=r,r=0,i+=t),an.default.ok(r>=0),an.default.ok(i<=o),an.default.strictEqual(u,r+o-i),e.indent===r&&e.sliceStart===i&&e.sliceEnd===o?e:{line:e.line,indent:r,locked:!1,sliceStart:i,sliceEnd:o}}function qL(e){return Ca.join(e)}es.concat=qL;var Ca=_p("")});var Qh=me(fo=>{"use strict";Object.defineProperty(fo,"__esModule",{value:!0});fo.printComments=fo.attach=void 0;var $E=(gr(),Er(br)),Jh=$E.__importDefault(yt("assert")),Aa=$E.__importStar(Qi()),po=Aa.namedTypes,VE=Aa.builtInTypes.array,WL=Aa.builtInTypes.object,Pl=Cl(),co=vs(),UE=new WeakMap;function qE(e,t,n){if(!e)return n;if(co.fixFaultyLocations(e,t),n){if(po.Node.check(e)&&po.SourceLocation.check(e.loc)){for(var i=n.length-1;i>=0;--i){var o=n[i];if(o&&o.loc&&co.comparePos(o.loc.end,e.loc.start)<=0)break}return n.splice(i+1,0,e),n}}else{var r=UE.get(e);if(r)return r}var u;if(VE.check(e))u=Object.keys(e);else if(WL.check(e))u=Aa.getFieldNames(e);else return n;n||UE.set(e,n=[]);for(var i=0,a=u.length;i<a;++i)qE(e[u[i]],t,n);return n}function WE(e,t,n){for(var i=qE(e,n),o=0,r=i&&i.length,u,a;typeof r=="number"&&o<r;){var m=o+r>>1,d=i[m];if(co.comparePos(d.loc.start,t.loc.start)<=0&&co.comparePos(t.loc.end,d.loc.end)<=0){WE(t.enclosingNode=d,t,n);return}if(co.comparePos(d.loc.end,t.loc.start)<=0){u=d,o=m+1;continue}if(co.comparePos(t.loc.end,d.loc.start)<=0){a=d,r=m;continue}throw new Error("Comment location overlaps with node location")}u&&(t.precedingNode=u),a&&(t.followingNode=a)}function KL(e,t,n){if(VE.check(e)){var i=[];e.forEach(function(o){o.loc.lines=n,WE(t,o,n);var r=o.precedingNode,u=o.enclosingNode,a=o.followingNode;if(r&&a){var m=i.length;if(m>0){var d=i[m-1];Jh.default.strictEqual(d.precedingNode===o.precedingNode,d.followingNode===o.followingNode),d.followingNode!==o.followingNode&&Al(i,n)}i.push(o)}else if(r)Al(i,n),zE(r,o);else if(a)Al(i,n),KE(a,o);else if(u)Al(i,n),zL(u,o);else throw new Error("AST contains no nodes at all?")}),Al(i,n),e.forEach(function(o){delete o.precedingNode,delete o.enclosingNode,delete o.followingNode})}}fo.attach=KL;function Al(e,t){var n=e.length;if(n!==0){for(var i=e[0].precedingNode,o=e[0].followingNode,r=o.loc.start,u=n,a;u>0;--u){a=e[u-1],Jh.default.strictEqual(a.precedingNode,i),Jh.default.strictEqual(a.followingNode,o);var m=t.sliceString(a.loc.end,r);if(/\S/.test(m))break;r=a.loc.start}for(;u<=n&&(a=e[u])&&(a.type==="Line"||a.type==="CommentLine")&&a.loc.start.column>o.loc.start.column;)++u;e.forEach(function(d,s){s<u?zE(i,d):KE(o,d)}),e.length=0}}function Yh(e,t){var n=e.comments||(e.comments=[]);n.push(t)}function KE(e,t){t.leading=!0,t.trailing=!1,Yh(e,t)}function zL(e,t){t.leading=!1,t.trailing=!1,Yh(e,t)}function zE(e,t){t.leading=!1,t.trailing=!0,Yh(e,t)}function GL(e,t){var n=e.getValue();po.Comment.assert(n);var i=n.loc,o=i&&i.lines,r=[t(e)];if(n.trailing)r.push(`
|
||
|
`);else if(o instanceof Pl.Lines){var u=o.slice(i.end,o.skipSpaces(i.end)||o.lastPos());u.length===1?r.push(u):r.push(new Array(u.length).join(`
|
||
|
`))}else r.push(`
|
||
|
`);return Pl.concat(r)}function HL(e,t){var n=e.getValue(e);po.Comment.assert(n);var i=n.loc,o=i&&i.lines,r=[];if(o instanceof Pl.Lines){var u=o.skipSpaces(i.start,!0)||o.firstPos(),a=o.slice(u,i.start);a.length===1?r.push(a):r.push(new Array(a.length).join(`
|
||
|
`))}return r.push(t(e)),Pl.concat(r)}function XL(e,t){var n=e.getValue(),i=t(e),o=po.Node.check(n)&&Aa.getFieldValue(n,"comments");if(!o||o.length===0)return i;var r=[],u=[i];return e.each(function(a){var m=a.getValue(),d=Aa.getFieldValue(m,"leading"),s=Aa.getFieldValue(m,"trailing");d||s&&!(po.Statement.check(n)||m.type==="Block"||m.type==="CommentBlock")?r.push(GL(a,t)):s&&u.push(HL(a,t))},"comments"),r.push.apply(r,u),Pl.concat(r)}fo.printComments=XL});var XE=me(wp=>{"use strict";Object.defineProperty(wp,"__esModule",{value:!0});wp.parse=void 0;var Zh=(gr(),Er(br)),JL=Zh.__importDefault(yt("assert")),em=Zh.__importStar(Qi()),YL=em.builders,QL=em.builtInTypes.object,ZL=em.builtInTypes.array,eM=Sp(),tM=Cl(),rM=Qh(),Ts=Zh.__importStar(vs());function nM(e,t){t=eM.normalize(t);var n=tM.fromString(e,t),i=n.toString({tabWidth:t.tabWidth,reuseWhitespace:!1,useTabs:!1}),o=[],r=t.parser.parse(i,{jsx:!0,loc:!0,locations:!0,range:t.range,comment:!0,onComment:o,tolerant:Ts.getOption(t,"tolerant",!0),ecmaVersion:6,sourceType:Ts.getOption(t,"sourceType","module")}),u=Array.isArray(r.tokens)?r.tokens:Vh().tokenize(i,{loc:!0});delete r.tokens,u.forEach(function(s){typeof s.value!="string"&&(s.value=n.sliceString(s.loc.start,s.loc.end))}),Array.isArray(r.comments)&&(o=r.comments,delete r.comments),r.loc?Ts.fixFaultyLocations(r,n):r.loc={start:n.firstPos(),end:n.lastPos()},r.loc.lines=n,r.loc.indent=0;var a,m;r.type==="Program"?(m=r,a=YL.file(r,t.sourceFileName||null),a.loc={start:n.firstPos(),end:n.lastPos(),lines:n,indent:0}):r.type==="File"&&(a=r,m=a.program),t.tokens&&(a.tokens=u);var d=Ts.getTrueLoc({type:m.type,loc:m.loc,body:[],comments:o},n);return m.loc.start=d.start,m.loc.end=d.end,rM.attach(o,m.body.length?a.program:a,n),new GE(n,u).copy(a)}wp.parse=nM;var GE=function e(t,n){JL.default.ok(this instanceof e),this.lines=t,this.tokens=n,this.startTokenIndex=0,this.endTokenIndex=n.length,this.indent=0,this.seen=new Map},HE=GE.prototype;HE.copy=function(e){if(this.seen.has(e))return this.seen.get(e);if(ZL.check(e)){var t=new Array(e.length);return this.seen.set(e,t),e.forEach(function(f,p){t[p]=this.copy(f)},this),t}if(!QL.check(e))return e;Ts.fixFaultyLocations(e,this.lines);var n=Object.create(Object.getPrototypeOf(e),{original:{value:e,configurable:!1,enumerable:!1,writable:!0}});this.seen.set(e,n);var i=e.loc,o=this.indent,r=o,u=this.startTokenIndex,a=this.endTokenIndex;i&&((e.type==="Block"||e.type==="Line"||e.type==="CommentBlock"||e.type==="CommentLine"||this.lines.isPrecededOnlyByWhitespace(i.start))&&(r=this.indent=i.start.column),i.lines=this.lines,i.tokens=this.tokens,i.indent=r,this.findTokenRange(i));for(var m=Object.keys(e),d=m.length,s=0;s<d;++s){var l=m[s];l==="loc"||l==="tokens"&&e.type==="File"?n[l]=e[l]:n[l]=this.copy(e[l])}return this.indent=o,this.startTokenIndex=u,this.endTokenIndex=a,n};HE.findTokenRange=function(e){for(;this.startTokenIndex>0;){var t=e.tokens[this.startTokenIndex];if(Ts.comparePos(e.start,t.loc.start)<0)--this.startTokenIndex;else break}for(;this.endTokenIndex<e.tokens.length;){var t=e.tokens[this.endTokenIndex];if(Ts.comparePos(t.loc.end,e.end)<0)++this.endTokenIndex;else break}for(;this.startTokenIndex<this.endTokenIndex;){var t=e.tokens[this.startTokenIndex];if(Ts.comparePos(t.loc.start,e.start)<0)++this.startTokenIndex;else break}for(e.start.token=this.startTokenIndex;this.endTokenIndex>this.startTokenIndex;){var t=e.tokens[this.endTokenIndex-1];if(Ts.comparePos(e.end,t.loc.end)<0)--this.endTokenIndex;else break}e.end.token=this.endTokenIndex}});var sm=me(im=>{"use strict";Object.defineProperty(im,"__esModule",{value:!0});var nm=(gr(),Er(br)),Ei=nm.__importDefault(yt("assert")),kl=nm.__importStar(Qi()),JE=nm.__importStar(vs()),Kr=kl.namedTypes,iM=kl.builtInTypes.array,sM=kl.builtInTypes.number,tm={};[["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].forEach(function(e,t){e.forEach(function(n){tm[n]=t})});var Pa=function e(t){Ei.default.ok(this instanceof e),this.stack=[t]},Bn=Pa.prototype;Pa.f
|
||
|
`)},"directives"),i.interpreter&&o.push(e.call(n,"interpreter")),o.push(e.call(function(he){return yo(he,t,n)},"body")),ge.concat(o);case"Noop":case"EmptyStatement":return ge.fromString("");case"ExpressionStatement":return ge.concat([e.call(n,"expression"),";"]);case"ParenthesizedExpression":return ge.concat(["(",e.call(n,"expression"),")"]);case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":return ge.fromString(" ").join([e.call(n,"left"),i.operator,e.call(n,"right")]);case"AssignmentPattern":return ge.concat([e.call(n,"left")," = ",e.call(n,"right")]);case"MemberExpression":case"OptionalMemberExpression":{o.push(e.call(n,"object"));var r=e.call(n,"property"),u=Ll.getFieldValue(i,"optional");return i.computed?o.push(u?"?.[":"[",r,"]"):o.push(u?"?.":".",r),ge.concat(o)}case"ChainExpression":return e.call(n,"expression");case"MetaProperty":return ge.concat([e.call(n,"meta"),".",e.call(n,"property")]);case"BindExpression":return i.object&&o.push(e.call(n,"object")),o.push("::",e.call(n,"callee")),ge.concat(o);case"Path":return ge.fromString(".").join(i.body);case"Identifier":return ge.concat([ge.fromString(i.name,t),i.optional?"?":"",e.call(n,"typeAnnotation")]);case"SpreadElement":case"SpreadElementPattern":case"RestProperty":case"SpreadProperty":case"SpreadPropertyPattern":case"ObjectTypeSpreadProperty":case"RestElement":return ge.concat(["...",e.call(n,"argument"),e.call(n,"typeAnnotation")]);case"FunctionDeclaration":case"FunctionExpression":case"TSDeclareFunction":return i.declare&&o.push("declare "),i.async&&o.push("async "),o.push("function"),i.generator&&o.push("*"),i.id?o.push(" ",e.call(n,"id"),e.call(n,"typeParameters")):i.typeParameters&&o.push(e.call(n,"typeParameters")),o.push("(",ts(e,t,n),")",e.call(n,"returnType")),i.body&&o.push(" ",e.call(n,"body")),ge.concat(o);case"ArrowFunctionExpression":return i.async&&o.push("async "),i.typeParameters&&o.push(e.call(n,"typeParameters")),!t.arrowParensAlways&&i.params.length===1&&!i.rest&&i.params[0].type==="Identifier"&&!i.params[0].typeAnnotation&&!i.returnType?o.push(e.call(n,"params",0)):o.push("(",ts(e,t,n),")",e.call(n,"returnType")),o.push(" => ",e.call(n,"body")),ge.concat(o);case"MethodDefinition":return um(e,t,n);case"YieldExpression":return o.push("yield"),i.delegate&&o.push("*"),i.argument&&o.push(" ",e.call(n,"argument")),ge.concat(o);case"AwaitExpression":return o.push("await"),i.all&&o.push("*"),i.argument&&o.push(" ",e.call(n,"argument")),ge.concat(o);case"ModuleDeclaration":return o.push("module",e.call(n,"id")),i.source?(Li.default.ok(!i.body),o.push("from",e.call(n,"source"))):o.push(e.call(n,"body")),ge.fromString(" ").join(o);case"ImportSpecifier":return i.importKind&&i.importKind!=="value"&&o.push(i.importKind+" "),i.imported?(o.push(e.call(n,"imported")),i.local&&i.local.name!==i.imported.name&&o.push(" as ",e.call(n,"local"))):i.id&&(o.push(e.call(n,"id")),i.name&&o.push(" as ",e.call(n,"name"))),ge.concat(o);case"ExportSpecifier":return i.local?(o.push(e.call(n,"local")),i.exported&&i.exported.name!==i.local.name&&o.push(" as ",e.call(n,"exported"))):i.id&&(o.push(e.call(n,"id")),i.name&&o.push(" as ",e.call(n,"name"))),ge.concat(o);case"ExportBatchSpecifier":return ge.fromString("*");case"ImportNamespaceSpecifier":return o.push("* as "),i.local?o.push(e.call(n,"local")):i.id&&o.push(e.call(n,"id")),ge.concat(o);case"ImportDefaultSpecifier":return i.local?e.call(n,"local"):e.call(n,"id");case"TSExportAssignment":return ge.concat(["export = ",e.call(n,"expression")]);case"ExportDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":return cS(e,t,n);case"ExportAllDeclaration":return o.push("export *"),i.exported&&o.push(" as ",e.call(n,"exported")),o.push(" from ",e.call(n,"source"),";"),ge.concat(o);case"TSNamespaceExportDeclaration":return o.push("export as namespace ",e.call(n,"id")),Op(ge.concat(o));case"ExportNamespaceSpecifier":return ge.concat(["* as ",e.call(n,"exported")]);case"ExportDefaultSpecifier":return e.call(n,"exported");case"Import":return ge.fromString("import",t);case"ImportExpressi
|
||
|
`).join(m).indent(t.tabWidth),","])),a.length>0&&o.push(", "),d.length>1?o.push(`{
|
||
|
`,d,`
|
||
|
}`):t.objectCurlySpacing?o.push("{ ",d," }"):o.push("{",d,"}")}o.push(" from ")}return o.push(e.call(n,"source"),";"),ge.concat(o)}case"BlockStatement":{var s=e.call(function(he){return yo(he,t,n)},"body");return s.isEmpty()&&(!i.directives||i.directives.length===0)?ge.fromString("{}"):(o.push(`{
|
||
|
`),i.directives&&e.each(function(he){o.push(Op(n(he).indent(t.tabWidth)),i.directives.length>1||!s.isEmpty()?`
|
||
|
`:"")},"directives"),o.push(s.indent(t.tabWidth)),o.push(`
|
||
|
}`),ge.concat(o))}case"ReturnStatement":{if(o.push("return"),i.argument){var l=e.call(n,"argument");l.startsWithComment()||l.length>1&&dn.JSXElement&&dn.JSXElement.check(i.argument)?o.push(` (
|
||
|
`,l.indent(t.tabWidth),`
|
||
|
)`):o.push(" ",l)}return o.push(";"),ge.concat(o)}case"CallExpression":case"OptionalCallExpression":return o.push(e.call(n,"callee")),i.typeParameters&&o.push(e.call(n,"typeParameters")),i.typeArguments&&o.push(e.call(n,"typeArguments")),Ll.getFieldValue(i,"optional")&&o.push("?."),o.push(uS(e,t,n)),ge.concat(o);case"ObjectExpression":case"ObjectPattern":case"ObjectTypeAnnotation":{var f=i.type==="ObjectTypeAnnotation",p=t.flowObjectCommas?",":f?";":",",h=[],y=!1;f&&(h.push("indexers","callProperties"),i.internalSlots!=null&&h.push("internalSlots")),h.push("properties");var b=0;h.forEach(function(he){b+=i[he].length});var E=f&&b===1||b===0,v=i.exact?"{|":"{",S=i.exact?"|}":"}";o.push(E?v:v+`
|
||
|
`);var w=o.length-1,A=0;if(h.forEach(function(he){e.each(function(ve){var et=n(ve);E||(et=et.indent(t.tabWidth));var ut=!f&&et.length>1;ut&&y&&o.push(`
|
||
|
`),o.push(et),A<b-1?(o.push(p+(ut?`
|
||
|
|
||
|
`:`
|
||
|
`)),y=!ut):(b!==1&&f||!E&&rs.isTrailingCommaEnabled(t,"objects")&&ve.getValue().type!=="RestElement")&&o.push(p),A++},he)}),i.inexact){var x=ge.fromString("...",t);E?(b>0&&o.push(p," "),o.push(x)):o.push(`
|
||
|
`,x.indent(t.tabWidth))}return o.push(E?S:`
|
||
|
`+S),A!==0&&E&&t.objectCurlySpacing&&(o[w]=v+" ",o[o.length-1]=" "+S),i.typeAnnotation&&o.push(e.call(n,"typeAnnotation")),ge.concat(o)}case"PropertyPattern":return ge.concat([e.call(n,"key"),": ",e.call(n,"pattern")]);case"ObjectProperty":case"Property":{if(i.method||i.kind==="get"||i.kind==="set")return um(e,t,n);if(i.shorthand&&i.value.type==="AssignmentPattern")return e.call(n,"value");var C=e.call(n,"key");return i.computed?o.push("[",C,"]"):o.push(C),(!i.shorthand||i.key.name!==i.value.name)&&o.push(": ",e.call(n,"value")),ge.concat(o)}case"ClassMethod":case"ObjectMethod":case"ClassPrivateMethod":case"TSDeclareMethod":return um(e,t,n);case"PrivateName":return ge.concat(["#",e.call(n,"id")]);case"Decorator":return ge.concat(["@",e.call(n,"expression")]);case"ArrayExpression":case"ArrayPattern":{var P=i.elements,D=P.length,L=e.map(n,"elements"),I=ge.fromString(", ").join(L),j=I.getLineLength(1)<=t.wrapColumn;return j?t.arrayBracketSpacing?o.push("[ "):o.push("["):o.push(`[
|
||
|
`),e.each(function(he){var ve=he.getName(),et=he.getValue();if(!et)o.push(",");else{var ut=L[ve];j?ve>0&&o.push(" "):ut=ut.indent(t.tabWidth),o.push(ut),(ve<D-1||!j&&rs.isTrailingCommaEnabled(t,"arrays"))&&o.push(","),j||o.push(`
|
||
|
`)}},"elements"),j&&t.arrayBracketSpacing?o.push(" ]"):o.push("]"),i.typeAnnotation&&o.push(e.call(n,"typeAnnotation")),ge.concat(o)}case"SequenceExpression":return ge.fromString(", ").join(e.map(n,"expressions"));case"ThisExpression":return ge.fromString("this");case"Super":return ge.fromString("super");case"NullLiteral":return ge.fromString("null");case"RegExpLiteral":return ge.fromString(i.extra.raw);case"BigIntLiteral":return ge.fromString(i.value+"n");case"NumericLiteral":return i.extra&&typeof i.extra.raw=="string"&&Number(i.extra.raw)===i.value?ge.fromString(i.extra.raw,t):ge.fromString(i.value,t);case"BooleanLiteral":case"StringLiteral":case"Literal":return typeof i.value=="number"&&typeof i.raw=="string"&&Number(i.raw)===i.value?ge.fromString(i.raw,t):typeof i.value!="string"?ge.fromString(i.value,t):ge.fromString(Dp(i.value,t),t);case"Directive":return e.call(n,"value");case"DirectiveLiteral":return ge.fromString(Dp(i.value,t));case"InterpreterDirective":return ge.fromString("#!"+i.value+`
|
||
|
`,t);case"ModuleSpecifier":if(i.local)throw new Error("The ESTree ModuleSpecifier type should be abstract");return ge.fromString(Dp(i.value,t),t);case"UnaryExpression":return o.push(i.operator),/[a-z]$/.test(i.operator)&&o.push(" "),o.push(e.call(n,"argument")),ge.concat(o);case"UpdateExpression":return o.push(e.call(n,"argument"),i.operator),i.prefix&&o.reverse(),ge.concat(o);case"ConditionalExpression":return ge.concat([e.call(n,"test")," ? ",e.call(n,"consequent")," : ",e.call(n,"alternate")]);case"NewExpression":{o.push("new ",e.call(n,"callee")),i.typeParameters&&o.push(e.call(n,"typeParameters")),i.typeArguments&&o.push(e.call(n,"typeArguments"));var M=i.arguments;return M&&o.push(uS(e,t,n)),ge.concat(o)}case"VariableDeclaration":{i.declare&&o.push("declare "),o.push(i.kind," ");var R=0,z=e.map(function(he){var ve=n(he);return R=Math.max(ve.length,R),ve},"declarations");R===1?o.push(ge.fromString(", ").join(z)):z.length>1?o.push(ge.fromString(`,
|
||
|
`).join(z).indentTail(i.kind.length+1)):o.push(z[0]);var Y=e.getParentNode();return!dn.ForStatement.check(Y)&&!dn.ForInStatement.check(Y)&&!(dn.ForOfStatement&&dn.ForOfStatement.check(Y))&&!(dn.ForAwaitStatement&&dn.ForAwaitStatement.check(Y))&&o.push(";"),ge.concat(o)}case"VariableDeclarator":return i.init?ge.fromString(" = ").join([e.call(n,"id"),e.call(n,"init")]):e.call(n,"id");case"WithStatement":return ge.concat(["with (",e.call(n,"object"),") ",e.call(n,"body")]);case"IfStatement":{var $=ka(e.call(n,"consequent"),t);return o.push("if (",e.call(n,"test"),")",$),i.alternate&&o.push(pS($)?" else":`
|
||
|
else`,ka(e.call(n,"alternate"),t)),ge.concat(o)}case"ForStatement":{var G=e.call(n,"init"),U=G.length>1?`;
|
||
|
`:"; ",B="for (",N=ge.fromString(U).join([G,e.call(n,"test"),e.call(n,"update")]).indentTail(B.length),X=ge.concat([B,N,")"]),H=ka(e.call(n,"body"),t);return o.push(X),X.length>1&&(o.push(`
|
||
|
`),H=H.trimLeft()),o.push(H),ge.concat(o)}case"WhileStatement":return ge.concat(["while (",e.call(n,"test"),")",ka(e.call(n,"body"),t)]);case"ForInStatement":return ge.concat([i.each?"for each (":"for (",e.call(n,"left")," in ",e.call(n,"right"),")",ka(e.call(n,"body"),t)]);case"ForOfStatement":case"ForAwaitStatement":return o.push("for "),(i.await||i.type==="ForAwaitStatement")&&o.push("await "),o.push("(",e.call(n,"left")," of ",e.call(n,"right"),")",ka(e.call(n,"body"),t)),ge.concat(o);case"DoWhileStatement":{var F=ge.concat(["do",ka(e.call(n,"body"),t)]);return o.push(F),pS(F)?o.push(" while"):o.push(`
|
||
|
while`),o.push(" (",e.call(n,"test"),");"),ge.concat(o)}case"DoExpression":{var W=e.call(function(he){return yo(he,t,n)},"body");return ge.concat([`do {
|
||
|
`,W.indent(t.tabWidth),`
|
||
|
}`])}case"BreakStatement":return o.push("break"),i.label&&o.push(" ",e.call(n,"label")),o.push(";"),ge.concat(o);case"ContinueStatement":return o.push("continue"),i.label&&o.push(" ",e.call(n,"label")),o.push(";"),ge.concat(o);case"LabeledStatement":return ge.concat([e.call(n,"label"),`:
|
||
|
`,e.call(n,"body")]);case"TryStatement":return o.push("try ",e.call(n,"block")),i.handler?o.push(" ",e.call(n,"handler")):i.handlers&&e.each(function(he){o.push(" ",n(he))},"handlers"),i.finalizer&&o.push(" finally ",e.call(n,"finalizer")),ge.concat(o);case"CatchClause":return o.push("catch "),i.param&&o.push("(",e.call(n,"param")),i.guard&&o.push(" if ",e.call(n,"guard")),i.param&&o.push(") "),o.push(e.call(n,"body")),ge.concat(o);case"ThrowStatement":return ge.concat(["throw ",e.call(n,"argument"),";"]);case"SwitchStatement":return ge.concat(["switch (",e.call(n,"discriminant"),`) {
|
||
|
`,ge.fromString(`
|
||
|
`).join(e.map(n,"cases")),`
|
||
|
}`]);case"SwitchCase":return i.test?o.push("case ",e.call(n,"test"),":"):o.push("default:"),i.consequent.length>0&&o.push(`
|
||
|
`,e.call(function(he){return yo(he,t,n)},"consequent").indent(t.tabWidth)),ge.concat(o);case"DebuggerStatement":return ge.fromString("debugger;");case"JSXAttribute":return o.push(e.call(n,"name")),i.value&&o.push("=",e.call(n,"value")),ge.concat(o);case"JSXIdentifier":return ge.fromString(i.name,t);case"JSXNamespacedName":return ge.fromString(":").join([e.call(n,"namespace"),e.call(n,"name")]);case"JSXMemberExpression":return ge.fromString(".").join([e.call(n,"object"),e.call(n,"property")]);case"JSXSpreadAttribute":return ge.concat(["{...",e.call(n,"argument"),"}"]);case"JSXSpreadChild":return ge.concat(["{...",e.call(n,"expression"),"}"]);case"JSXExpressionContainer":return ge.concat(["{",e.call(n,"expression"),"}"]);case"JSXElement":case"JSXFragment":{var V="opening"+(i.type==="JSXElement"?"Element":"Fragment"),Q="closing"+(i.type==="JSXElement"?"Element":"Fragment"),ne=e.call(n,V);if(i[V].selfClosing)return Li.default.ok(!i[Q],"unexpected "+Q+" element in self-closing "+i.type),ne;var ue=ge.concat(e.map(function(he){var ve=he.getValue();if(dn.Literal.check(ve)&&typeof ve.value=="string"){if(/\S/.test(ve.value))return ve.value.replace(/^\s+|\s+$/g,"");if(/\n/.test(ve.value))return`
|
||
|
`}return n(he)},"children")).indentTail(t.tabWidth),de=e.call(n,Q);return ge.concat([ne,ue,de])}case"JSXOpeningElement":{o.push("<",e.call(n,"name"));var Ae=[];e.each(function(he){Ae.push(" ",n(he))},"attributes");var Oe=ge.concat(Ae),Me=Oe.length>1||Oe.getLineLength(1)>t.wrapColumn;return Me&&(Ae.forEach(function(he,ve){he===" "&&(Li.default.strictEqual(ve%2,0),Ae[ve]=`
|
||
|
`)}),Oe=ge.concat(Ae).indentTail(t.tabWidth)),o.push(Oe,i.selfClosing?" />":">"),ge.concat(o)}case"JSXClosingElement":return ge.concat(["</",e.call(n,"name"),">"]);case"JSXOpeningFragment":return ge.fromString("<>");case"JSXClosingFragment":return ge.fromString("</>");case"JSXText":return ge.fromString(i.value,t);case"JSXEmptyExpression":return ge.fromString("");case"TypeAnnotatedIdentifier":return ge.concat([e.call(n,"annotation")," ",e.call(n,"identifier")]);case"ClassBody":return i.body.length===0?ge.fromString("{}"):ge.concat([`{
|
||
|
`,e.call(function(he){return yo(he,t,n)},"body").indent(t.tabWidth),`
|
||
|
}`]);case"ClassPropertyDefinition":return o.push("static ",e.call(n,"definition")),dn.MethodDefinition.check(i.definition)||o.push(";"),ge.concat(o);case"ClassProperty":{i.declare&&o.push("declare ");var ae=i.accessibility||i.access;typeof ae=="string"&&o.push(ae," "),i.static&&o.push("static "),i.abstract&&o.push("abstract "),i.readonly&&o.push("readonly ");var C=e.call(n,"key");return i.computed&&(C=ge.concat(["[",C,"]"])),i.variance&&(C=ge.concat([jl(e,n),C])),o.push(C),i.optional&&o.push("?"),i.typeAnnotation&&o.push(e.call(n,"typeAnnotation")),i.value&&o.push(" = ",e.call(n,"value")),o.push(";"),ge.concat(o)}case"ClassPrivateProperty":return i.static&&o.push("static "),o.push(e.call(n,"key")),i.typeAnnotation&&o.push(e.call(n,"typeAnnotation")),i.value&&o.push(" = ",e.call(n,"value")),o.push(";"),ge.concat(o);case"ClassDeclaration":case"ClassExpression":return i.declare&&o.push("declare "),i.abstract&&o.push("abstract "),o.push("class"),i.id&&o.push(" ",e.call(n,"id")),i.typeParameters&&o.push(e.call(n,"typeParameters")),i.superClass&&o.push(" extends ",e.call(n,"superClass"),e.call(n,"superTypeParameters")),i.implements&&i.implements.length>0&&o.push(" implements ",ge.fromString(", ").join(e.map(n,"implements"))),o.push(" ",e.call(n,"body")),ge.concat(o);case"TemplateElement":return ge.fromString(i.value.raw,t).lockIndentTail();case"TemplateLiteral":{var se=e.map(n,"expressions");return o.push("`"),e.each(function(he){var ve=he.getName();o.push(n(he)),ve<se.length&&o.push("${",se[ve],"}")},"quasis"),o.push("`"),ge.concat(o).lockIndentTail()}case"TaggedTemplateExpression":return ge.concat([e.call(n,"tag"),e.call(n,"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(i.type));case"CommentBlock":case"Block":return ge.concat(["/*",ge.fromString(i.value,t),"*/"]);case"CommentLine":case"Line":return ge.concat(["//",ge.fromString(i.value,t)]);case"TypeAnnotation":return i.typeAnnotation?(i.typeAnnotation.type!=="FunctionTypeAnnotation"&&o.push(": "),o.push(e.call(n,"typeAnnotation")),ge.concat(o)):ge.fromString("");case"ExistentialTypeParam":case"ExistsTypeAnnotation":return ge.fromString("*",t);case"EmptyTypeAnnotation":return ge.fromString("empty",t);case"AnyTypeAnnotation":return ge.fromString("any",t);case"MixedTypeAnnotation":return ge.fromString("mixed",t);case"ArrayTypeAnnotation":return ge.concat([e.call(n,"elementType"),"[]"]);case"TupleTypeAnnotation":{var ye=e.map(n,"types"),I=ge.fromString(", ").join(ye),be=I.getLineLength(1)<=t.wrapColumn;return be?t.arrayBracketSpacing?o.push("[ "):o.push("["):o.push(`[
|
||
|
`),e.each(function(ve){var et=ve.getName(),ut=ve.getValue();if(!ut)o.push(",");else{var Kt=ye[et];be?et>0&&o.push(" "):Kt=Kt.indent(t.tabWidth),o.push(Kt),(et<i.types.length-1||!be&&rs.isTrailingCommaEnabled(t,"arrays"))&&o.push(","),be||o.push(`
|
||
|
`)}},"types"),be&&t.arrayBracketSpacing?o.push(" ]"):o.push("]"),ge.concat(o)}case"BooleanTypeAnnotation":return ge.fromString("boolean",t);case"BooleanLiteralTypeAnnotation":return Li.default.strictEqual(typeof i.value,"boolean"),ge.fromString(""+i.value,t);case"InterfaceTypeAnnotation":return o.push("interface"),i.extends&&i.extends.length>0&&o.push(" extends ",ge.fromString(", ").join(e.map(n,"extends"))),o.push(" ",e.call(n,"body")),ge.concat(o);case"DeclareClass":return Fl(e,["class ",e.call(n,"id")," ",e.call(n,"body")]);case"DeclareFunction":return Fl(e,["function ",e.call(n,"id"),";"]);case"DeclareModule":return Fl(e,["module ",e.call(n,"id")," ",e.call(n,"body")]);case"DeclareModuleExports":return Fl(e,["module.exports",e.call(n,"typeAnnotation")]);case"DeclareVariable":return Fl(e,["var ",e.call(n,"id"),";"]);case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":return ge.concat(["declare ",cS(e,t,n)]);case"EnumDeclaration":return ge.concat(["enum ",e.call(n,"id"),e.call(n,"body")]);case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":return(i.type==="EnumSymbolBody"||i.explicitType)&&o.push(" of ",i.type.slice(4,-4).toLowerCase()),o.push(` {
|
||
|
`,ge.fromString(`
|
||
|
`).join(e.map(n,"members")).indent(t.tabWidth),`
|
||
|
}`),ge.concat(o);case"EnumDefaultedMember":return ge.concat([e.call(n,"id"),","]);case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":return ge.concat([e.call(n,"id")," = ",e.call(n,"init"),","]);case"InferredPredicate":return ge.fromString("%checks",t);case"DeclaredPredicate":return ge.concat(["%checks(",e.call(n,"value"),")"]);case"FunctionTypeAnnotation":{var Ee=e.getParentNode(0),oe=!(dn.ObjectTypeCallProperty.check(Ee)||dn.ObjectTypeInternalSlot.check(Ee)&&Ee.method||dn.DeclareFunction.check(e.getParentNode(2))),J=oe&&!dn.FunctionTypeParam.check(Ee)&&!dn.TypeAlias.check(Ee);J&&o.push(": ");var De=!!i.typeParameters,Ke=De||i.params.length!==1||i.params[0].name;return o.push(De?e.call(n,"typeParameters"):"",Ke?"(":"",ts(e,t,n),Ke?")":""),i.returnType&&o.push(oe?" => ":": ",e.call(n,"returnType")),ge.concat(o)}case"FunctionTypeParam":{var ke=e.call(n,"name");return o.push(ke),i.optional&&o.push("?"),ke.infos[0].line&&o.push(": "),o.push(e.call(n,"typeAnnotation")),ge.concat(o)}case"GenericTypeAnnotation":return ge.concat([e.call(n,"id"),e.call(n,"typeParameters")]);case"DeclareInterface":o.push("declare ");case"InterfaceDeclaration":case"TSInterfaceDeclaration":return i.declare&&o.push("declare "),o.push("interface ",e.call(n,"id"),e.call(n,"typeParameters")," "),i.extends&&i.extends.length>0&&o.push("extends ",ge.fromString(", ").join(e.map(n,"extends"))," "),i.body&&o.push(e.call(n,"body")),ge.concat(o);case"ClassImplements":case"InterfaceExtends":return ge.concat([e.call(n,"id"),e.call(n,"typeParameters")]);case"IntersectionTypeAnnotation":return ge.fromString(" & ").join(e.map(n,"types"));case"NullableTypeAnnotation":return ge.concat(["?",e.call(n,"typeAnnotation")]);case"NullLiteralTypeAnnotation":return ge.fromString("null",t);case"ThisTypeAnnotation":return ge.fromString("this",t);case"NumberTypeAnnotation":return ge.fromString("number",t);case"ObjectTypeCallProperty":return e.call(n,"value");case"ObjectTypeIndexer":return i.static&&o.push("static "),o.push(jl(e,n),"["),i.id&&o.push(e.call(n,"id"),": "),o.push(e.call(n,"key"),"]: ",e.call(n,"value")),ge.concat(o);case"ObjectTypeProperty":return ge.concat([jl(e,n),e.call(n,"key"),i.optional?"?":"",": ",e.call(n,"value")]);case"ObjectTypeInternalSlot":return ge.concat([i.static?"static ":"","[[",e.call(n,"id"),"]]",i.optional?"?":"",i.value.type!=="FunctionTypeAnnotation"?": ":"",e.call(n,"value")]);case"QualifiedTypeIdentifier":return ge.concat([e.call(n,"qualification"),".",e.call(n,"id")]);case"StringLiteralTypeAnnotation":return ge.fromString(Dp(i.value,t),t);case"NumberLiteralTypeAnnotation":case"NumericLiteralTypeAnnotation":return Li.default.strictEqual(typeof i.value,"number"),ge.fromString(JSON.stringify(i.value),t);case"BigIntLiteralTypeAnnotation":return ge.fromString(i.raw,t);case"StringTypeAnnotation":return ge.fromString("string",t);case"DeclareTypeAlias":o.push("declare ");case"TypeAlias":return ge.concat(["type ",e.call(n,"id"),e.call(n,"typeParameters")," = ",e.call(n,"right"),";"]);case"DeclareOpaqueType":o.push("declare ");case"OpaqueType":return o.push("opaque type ",e.call(n,"id"),e.call(n,"typeParameters")),i.supertype&&o.push(": ",e.call(n,"supertype")),i.impltype&&o.push(" = ",e.call(n,"impltype")),o.push(";"),ge.concat(o);case"TypeCastExpression":return ge.concat(["(",e.call(n,"expression"),e.call(n,"typeAnnotation"),")"]);case"TypeParameterDeclaration":case"TypeParameterInstantiation":return ge.concat(["<",ge.fromString(", ").join(e.map(n,"params")),">"]);case"Variance":return i.kind==="plus"?ge.fromString("+"):i.kind==="minus"?ge.fromString("-"):ge.fromString("");case"TypeParameter":return i.variance&&o.push(jl(e,n)),o.push(e.call(n,"name")),i.bound&&o.push(e.call(n,"bound")),i.default&&o.push("=",e.call(n,"default")),ge.concat(o);case"TypeofTypeAnnotation":return ge.concat([ge.fromString("typeof ",t),e.call(n,"argument")]);case"UnionTypeAnnotation":return ge.fromString(" | ").join(e.map(n,"types"));case"VoidTypeAnnotation":return ge.fromString("void",t);case"NullTypeAnnotation":return ge.fromString("null",t);case"Symb
|
||
|
`,ge.concat(o).indent(t.tabWidth),`
|
||
|
}`]);case"TSTupleType":return ge.concat(["[",ge.fromString(", ").join(e.map(n,"elementTypes")),"]"]);case"TSNamedTupleMember":return o.push(e.call(n,"label")),i.optional&&o.push("?"),o.push(": ",e.call(n,"elementType")),ge.concat(o);case"TSRestType":return ge.concat(["...",e.call(n,"typeAnnotation")]);case"TSOptionalType":return ge.concat([e.call(n,"typeAnnotation"),"?"]);case"TSIndexedAccessType":return ge.concat([e.call(n,"objectType"),"[",e.call(n,"indexType"),"]"]);case"TSTypeOperator":return ge.concat([e.call(n,"operator")," ",e.call(n,"typeAnnotation")]);case"TSTypeLiteral":{var Qe=ge.fromString(`,
|
||
|
`).join(e.map(n,"members"));return Qe.isEmpty()?ge.fromString("{}",t):(o.push(`{
|
||
|
`,Qe.indent(t.tabWidth),`
|
||
|
}`),ge.concat(o))}case"TSEnumMember":return o.push(e.call(n,"id")),i.initializer&&o.push(" = ",e.call(n,"initializer")),ge.concat(o);case"TSTypeQuery":return ge.concat(["typeof ",e.call(n,"exprName")]);case"TSParameterProperty":return i.accessibility&&o.push(i.accessibility," "),i.export&&o.push("export "),i.static&&o.push("static "),i.readonly&&o.push("readonly "),o.push(e.call(n,"parameter")),ge.concat(o);case"TSTypeReference":return ge.concat([e.call(n,"typeName"),e.call(n,"typeParameters")]);case"TSQualifiedName":return ge.concat([e.call(n,"left"),".",e.call(n,"right")]);case"TSAsExpression":{var pt=e.call(n,"expression");return o.push(pt,ge.fromString(" as "),e.call(n,"typeAnnotation")),ge.concat(o)}case"TSNonNullExpression":return ge.concat([e.call(n,"expression"),"!"]);case"TSTypeAnnotation":return ge.concat([": ",e.call(n,"typeAnnotation")]);case"TSIndexSignature":return ge.concat([i.readonly?"readonly ":"","[",e.map(n,"parameters"),"]",e.call(n,"typeAnnotation")]);case"TSPropertySignature":return o.push(jl(e,n),i.readonly?"readonly ":""),i.computed?o.push("[",e.call(n,"key"),"]"):o.push(e.call(n,"key")),o.push(i.optional?"?":"",e.call(n,"typeAnnotation")),ge.concat(o);case"TSMethodSignature":return i.computed?o.push("[",e.call(n,"key"),"]"):o.push(e.call(n,"key")),i.optional&&o.push("?"),o.push(e.call(n,"typeParameters"),"(",ts(e,t,n),")",e.call(n,"typeAnnotation")),ge.concat(o);case"TSTypePredicate":return i.asserts&&o.push("asserts "),o.push(e.call(n,"parameterName")),i.typeAnnotation&&o.push(" is ",e.call(n,"typeAnnotation","typeAnnotation")),ge.concat(o);case"TSCallSignatureDeclaration":return ge.concat([e.call(n,"typeParameters"),"(",ts(e,t,n),")",e.call(n,"typeAnnotation")]);case"TSConstructSignatureDeclaration":return i.typeParameters?o.push("new",e.call(n,"typeParameters")):o.push("new "),o.push("(",ts(e,t,n),")",e.call(n,"typeAnnotation")),ge.concat(o);case"TSTypeAliasDeclaration":return ge.concat([i.declare?"declare ":"","type ",e.call(n,"id"),e.call(n,"typeParameters")," = ",e.call(n,"typeAnnotation"),";"]);case"TSTypeParameter":{o.push(e.call(n,"name"));var Ee=e.getParentNode(0),dt=dn.TSMappedType.check(Ee);return i.constraint&&o.push(dt?" in ":" extends ",e.call(n,"constraint")),i.default&&o.push(" = ",e.call(n,"default")),ge.concat(o)}case"TSTypeAssertion":return o.push("<",e.call(n,"typeAnnotation"),"> ",e.call(n,"expression")),ge.concat(o);case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return ge.concat(["<",ge.fromString(", ").join(e.map(n,"params")),">"]);case"TSEnumDeclaration":{o.push(i.declare?"declare ":"",i.const?"const ":"","enum ",e.call(n,"id"));var Qe=ge.fromString(`,
|
||
|
`).join(e.map(n,"members"));return Qe.isEmpty()?o.push(" {}"):o.push(` {
|
||
|
`,Qe.indent(t.tabWidth),`
|
||
|
}`),ge.concat(o)}case"TSExpressionWithTypeArguments":return ge.concat([e.call(n,"expression"),e.call(n,"typeParameters")]);case"TSInterfaceBody":{var d=ge.fromString(`;
|
||
|
`).join(e.map(n,"body"));return d.isEmpty()?ge.fromString("{}",t):ge.concat([`{
|
||
|
`,d.indent(t.tabWidth),";",`
|
||
|
}`])}case"TSImportType":return o.push("import(",e.call(n,"argument"),")"),i.qualifier&&o.push(".",e.call(n,"qualifier")),i.typeParameters&&o.push(e.call(n,"typeParameters")),ge.concat(o);case"TSImportEqualsDeclaration":return i.isExport&&o.push("export "),o.push("import ",e.call(n,"id")," = ",e.call(n,"moduleReference")),Op(ge.concat(o));case"TSExternalModuleReference":return ge.concat(["require(",e.call(n,"expression"),")"]);case"TSModuleDeclaration":{var Ee=e.getParentNode();if(Ee.type==="TSModuleDeclaration")o.push(".");else if(i.declare&&o.push("declare "),!i.global){var Ue=i.id.type==="StringLiteral"||i.id.type==="Literal"&&typeof i.id.value=="string";if(Ue)o.push("module ");else if(i.loc&&i.loc.lines&&i.id.loc){var ce=i.loc.lines.sliceString(i.loc.start,i.id.loc.start);ce.indexOf("module")>=0?o.push("module "):o.push("namespace ")}else o.push("namespace ")}if(o.push(e.call(n,"id")),i.body&&i.body.type==="TSModuleDeclaration")o.push(e.call(n,"body"));else if(i.body){var xe=e.call(n,"body");xe.isEmpty()?o.push(" {}"):o.push(` {
|
||
|
`,xe.indent(t.tabWidth),`
|
||
|
}`)}return ge.concat(o)}case"TSModuleBlock":return e.call(function(he){return yo(he,t,n)},"body");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(i.type))}}function TM(e,t){var n=[],i=e.getValue();return i.decorators&&i.decorators.length>0&&!rs.getParentExportDeclaration(e)?e.each(function(o){n.push(t(o),`
|
||
|
`)},"decorators"):rs.isExportDeclaration(i)&&i.declaration&&i.declaration.decorators&&e.each(function(o){n.push(t(o),`
|
||
|
`)},"declaration","decorators"),ge.concat(n)}function yo(e,t,n){var i=[],o=!1,r=!1;e.each(function(d){var s=d.getValue();s&&(s.type==="EmptyStatement"&&!(s.comments&&s.comments.length>0)||(dn.Comment.check(s)?o=!0:dn.Statement.check(s)?r=!0:cm.assert(s),i.push({node:s,printed:n(d)})))}),o&&Li.default.strictEqual(r,!1,"Comments may appear as statements in otherwise empty statement lists, but may not coexist with non-Comment nodes.");var u=null,a=i.length,m=[];return i.forEach(function(d,s){var l=d.printed,f=d.node,p=l.length>1,h=s>0,y=s<a-1,b,E,v=f&&f.loc&&f.loc.lines,S=v&&t.reuseWhitespace&&rs.getTrueLoc(f,v);if(h)if(S){var w=v.skipSpaces(S.start,!0),A=w?w.line:1,x=S.start.line-A;b=Array(x+1).join(`
|
||
|
`)}else b=p?`
|
||
|
|
||
|
`:`
|
||
|
`;else b="";if(y)if(S){var C=v.skipSpaces(S.end),P=C?C.line:v.length,D=P-S.end.line;E=Array(D+1).join(`
|
||
|
`)}else E=p?`
|
||
|
|
||
|
`:`
|
||
|
`;else E="";m.push(EM(u,b),l),y?u=E:E&&m.push(E)}),ge.concat(m)}function EM(e,t){if(!e&&!t)return ge.fromString("");if(!e)return ge.fromString(t);if(!t)return ge.fromString(e);var n=ge.fromString(e),i=ge.fromString(t);return i.length>n.length?i:n}function um(e,t,n){var i=e.getNode(),o=i.kind,r=[],u=i.value;dn.FunctionExpression.check(u)||(u=i);var a=i.accessibility||i.access;typeof a=="string"&&r.push(a," "),i.static&&r.push("static "),i.abstract&&r.push("abstract "),i.readonly&&r.push("readonly "),u.async&&r.push("async "),u.generator&&r.push("*"),(o==="get"||o==="set")&&r.push(o," ");var m=e.call(n,"key");return i.computed&&(m=ge.concat(["[",m,"]"])),r.push(m),i.optional&&r.push("?"),i===u?(r.push(e.call(n,"typeParameters"),"(",ts(e,t,n),")",e.call(n,"returnType")),i.body?r.push(" ",e.call(n,"body")):r.push(";")):(r.push(e.call(n,"value","typeParameters"),"(",e.call(function(d){return ts(d,t,n)},"value"),")",e.call(n,"value","returnType")),u.body?r.push(" ",e.call(n,"value","body")):r.push(";")),ge.concat(r)}function uS(e,t,n){var i=e.map(n,"arguments"),o=rs.isTrailingCommaEnabled(t,"parameters"),r=ge.fromString(", ").join(i);return r.getLineLength(1)>t.wrapColumn?(r=ge.fromString(`,
|
||
|
`).join(i),ge.concat([`(
|
||
|
`,r.indent(t.tabWidth),o?`,
|
||
|
)`:`
|
||
|
)`])):ge.concat(["(",r,")"])}function ts(e,t,n){var i=e.getValue(),o,r=[];i.params?(o=i.params,r=e.map(n,"params")):i.parameters&&(o=i.parameters,r=e.map(n,"parameters")),i.defaults&&e.each(function(a){var m=a.getName(),d=r[m];d&&a.getValue()&&(r[m]=ge.concat([d," = ",n(a)]))},"defaults"),i.rest&&r.push(ge.concat(["...",e.call(n,"rest")]));var u=ge.fromString(", ").join(r);return u.length>1||u.getLineLength(1)>t.wrapColumn?(u=ge.fromString(`,
|
||
|
`).join(r),rs.isTrailingCommaEnabled(t,"parameters")&&!i.rest&&o[o.length-1].type!=="RestElement"?u=ge.concat([u,`,
|
||
|
`]):u=ge.concat([u,`
|
||
|
`]),ge.concat([`
|
||
|
`,u.indent(t.tabWidth)])):u}function cS(e,t,n){var i=e.getValue(),o=["export "];i.exportKind&&i.exportKind==="type"&&(i.declaration||o.push("type "));var r=t.objectCurlySpacing;if(dn.Declaration.assert(i),(i.default||i.type==="ExportDefaultDeclaration")&&o.push("default "),i.declaration)o.push(e.call(n,"declaration"));else if(i.specifiers){if(i.specifiers.length===1&&i.specifiers[0].type==="ExportBatchSpecifier")o.push("*");else if(i.specifiers.length===0)o.push("{}");else if(i.specifiers[0].type==="ExportDefaultSpecifier"){var u=[],a=[];if(e.each(function(s){var l=s.getValue();l.type==="ExportDefaultSpecifier"?u.push(n(s)):a.push(n(s))},"specifiers"),u.forEach(function(s,l){l>0&&o.push(", "),o.push(s)}),a.length>0){var m=ge.fromString(", ").join(a);m.getLineLength(1)>t.wrapColumn&&(m=ge.concat([ge.fromString(`,
|
||
|
`).join(a).indent(t.tabWidth),","])),u.length>0&&o.push(", "),m.length>1?o.push(`{
|
||
|
`,m,`
|
||
|
}`):t.objectCurlySpacing?o.push("{ ",m," }"):o.push("{",m,"}")}}else o.push(r?"{ ":"{",ge.fromString(", ").join(e.map(n,"specifiers")),r?" }":"}");i.source&&o.push(" from ",e.call(n,"source"))}var d=ge.concat(o);return pm(d)!==";"&&!(i.declaration&&(i.declaration.type==="FunctionDeclaration"||i.declaration.type==="ClassDeclaration"||i.declaration.type==="TSModuleDeclaration"||i.declaration.type==="TSInterfaceDeclaration"||i.declaration.type==="TSEnumDeclaration"))&&(d=ge.concat([d,";"])),d}function Fl(e,t){var n=rs.getParentExportDeclaration(e);return n?Li.default.strictEqual(n.type,"DeclareExportDeclaration"):t.unshift("declare "),ge.concat(t)}function jl(e,t){return e.call(function(n){var i=n.getValue();return i?i==="plus"?ge.fromString("+"):i==="minus"?ge.fromString("-"):t(n):ge.fromString("")},"variance")}function ka(e,t){return e.length>1?ge.concat([" ",e]):ge.concat([`
|
||
|
`,Op(e).indent(t.tabWidth)])}function pm(e){var t=e.lastPos();do{var n=e.charAt(t);if(/\S/.test(n))return n}while(e.prevPos(t))}function pS(e){return pm(e)==="}"}function kp(e){return e.replace(/['"]/g,function(t){return t==='"'?"'":'"'})}function Dp(e,t){switch(cm.assert(e),t.quote){case"auto":{var n=JSON.stringify(e),i=kp(JSON.stringify(kp(e)));return n.length>i.length?i:n}case"single":return kp(JSON.stringify(kp(e)));case"double":default:return JSON.stringify(e)}}function Op(e){var t=pm(e);return!t||`
|
||
|
};`.indexOf(t)<0?ge.concat([e,";"]):e}});var bS=me(ai=>{"use strict";Object.defineProperty(ai,"__esModule",{value:!0});ai.run=ai.prettyPrint=ai.print=ai.types=ai.parse=void 0;var fS=(gr(),Er(br)),SM=fS.__importDefault(yt("fs")),xM=fS.__importStar(Qi());ai.types=xM;var hS=XE();Object.defineProperty(ai,"parse",{enumerable:!0,get:function(){return hS.parse}});var mS=dS(),_M=Qi();Object.defineProperty(ai,"visit",{enumerable:!0,get:function(){return _M.visit}});function yS(e,t){return new mS.Printer(t).print(e)}ai.print=yS;function wM(e,t){return new mS.Printer(t).printGenerically(e)}ai.prettyPrint=wM;function CM(e,t){return AM(process.argv[2],e,t)}ai.run=CM;function AM(e,t,n){SM.default.readFile(e,"utf-8",function(i,o){if(i){console.error(i);return}kM(o,t,n)})}function PM(e){process.stdout.write(e)}function kM(e,t,n){var i=n&&n.writeback||PM;t(hS.parse(e,n),function(o){i(yS(o,n).code)})}});var ES=me((VY,dm)=>{"use strict";var gS=yt("path"),vS=yt("module"),DM=yt("fs"),TS=(e,t,n)=>{if(typeof e!="string")throw new TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof e}\``);if(typeof t!="string")throw new TypeError(`Expected \`moduleId\` to be of type \`string\`, got \`${typeof t}\``);try{e=DM.realpathSync(e)}catch(r){if(r.code==="ENOENT")e=gS.resolve(e);else{if(n)return;throw r}}let i=gS.join(e,"noop.js"),o=()=>vS._resolveFilename(t,{id:i,filename:i,paths:vS._nodeModulePaths(e)});if(n)try{return o()}catch{return}return o()};dm.exports=(e,t)=>TS(e,t);dm.exports.silent=(e,t)=>TS(e,t,!0)});var xS=me((qY,fm)=>{"use strict";var SS=()=>{let e=Error.prepareStackTrace;Error.prepareStackTrace=(n,i)=>i;let t=new Error().stack.slice(1);return Error.prepareStackTrace=e,t};fm.exports=SS;fm.exports.default=SS});var wS=me((WY,_S)=>{"use strict";var IM=xS();_S.exports=e=>{let t=IM();if(!e)return t[2].getFileName();let n=!1;t.shift();for(let i of t){let o=i.getFileName();if(typeof o=="string"){if(o===e){n=!0;continue}if(o!=="module.js"&&n&&o!==e)return o}}}});var IS=me((KY,DS)=>{"use strict";var CS=yt("path"),AS=ES(),PS=wS(),kS=e=>{try{return AS(CS.dirname(PS(__filename)),e)}catch{}},bo=e=>{if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);let t=kS(e);if(t){if(yt.cache[t]&&yt.cache[t].parent){let n=yt.cache[t].parent.children.length;for(;n--;)yt.cache[t].parent.children[n].id===t&&yt.cache[t].parent.children.splice(n,1)}if(yt.cache[t]){let n=yt.cache[t].children.map(i=>i.id);delete yt.cache[t];for(let i of n)bo(i)}}};bo.all=()=>{let e=CS.dirname(PS(__filename));for(let t of Object.keys(yt.cache))delete yt.cache[AS(e,t)]};bo.match=e=>{for(let t of Object.keys(yt.cache))e.test(t)&&bo(t)};bo.single=e=>{if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);delete yt.cache[kS(e)]};DS.exports=bo});var Ml=me((JY,hm)=>{var FM=yt("tty"),jM=!("NO_COLOR"in process.env||process.argv.includes("--no-color"))&&("FORCE_COLOR"in process.env||process.argv.includes("--color")||process.platform==="win32"||FM.isatty(1)&&process.env.TERM!=="dumb"||"CI"in process.env),Xr=(e,t,n=e)=>i=>{let o=""+i,r=o.indexOf(t,e.length);return~r?e+jS(o,t,n,r)+t:e+o+t},jS=(e,t,n,i)=>{let o=e.substring(0,i)+n,r=e.substring(i+t.length),u=r.indexOf(t);return~u?o+jS(r,t,n,u):o+r},LS=(e=jM)=>({isColorSupported:e,reset:e?t=>`\x1B[0m${t}\x1B[0m`:String,bold:e?Xr("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"):String,dim:e?Xr("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"):String,italic:e?Xr("\x1B[3m","\x1B[23m"):String,underline:e?Xr("\x1B[4m","\x1B[24m"):String,inverse:e?Xr("\x1B[7m","\x1B[27m"):String,hidden:e?Xr("\x1B[8m","\x1B[28m"):String,strikethrough:e?Xr("\x1B[9m","\x1B[29m"):String,black:e?Xr("\x1B[30m","\x1B[39m"):String,red:e?Xr("\x1B[31m","\x1B[39m"):String,green:e?Xr("\x1B[32m","\x1B[39m"):String,yellow:e?Xr("\x1B[33m","\x1B[39m"):String,blue:e?Xr("\x1B[34m","\x1B[39m"):String,magenta:e?Xr("\x1B[35m","\x1B[39m"):String,cyan:e?Xr("\x1B[36m","\x1B[39m"):String,white:e?Xr("\x1B[37m","\x1B[39m"):String,gray:e?Xr("\x1B[90m","\x1B[39m"):String,bgBlack:e?Xr("\x1B[40m","\x1B[49m"):String,bgRed:e?Xr("\x1B[41m","
|
||
|
`):n+=i[1]}return n}US.registerInput=RM;$S.exports=US});var Rp=me((ZY,WS)=>{"use strict";var VS=Ml(),qS=ym(),Rl=class e extends Error{constructor(t,n,i,o,r,u){super(t),this.name="CssSyntaxError",this.reason=t,r&&(this.file=r),o&&(this.source=o),u&&(this.plugin=u),typeof n<"u"&&typeof i<"u"&&(typeof n=="number"?(this.line=n,this.column=i):(this.line=n.line,this.column=n.column,this.endLine=i.line,this.endColumn=i.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,e)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";let n=this.source;t==null&&(t=VS.isColorSupported),qS&&t&&(n=qS(n));let i=n.split(/\r?\n/),o=Math.max(this.line-3,0),r=Math.min(this.line+2,i.length),u=String(r).length,a,m;if(t){let{bold:d,gray:s,red:l}=VS.createColors(!0);a=f=>d(l(f)),m=f=>s(f)}else a=m=d=>d;return i.slice(o,r).map((d,s)=>{let l=o+1+s,f=" "+(" "+l).slice(-u)+" | ";if(l===this.line){let p=m(f.replace(/\d/g," "))+d.slice(0,this.column-1).replace(/[^\t]/g," ");return a(">")+m(f)+d+`
|
||
|
`+p+a("^")}return" "+m(f)+d}).join(`
|
||
|
`)}toString(){let t=this.showSourceCode();return t&&(t=`
|
||
|
|
||
|
`+t+`
|
||
|
`),this.name+": "+this.message+t}};WS.exports=Rl;Rl.default=Rl});var Bp=me((eQ,bm)=>{"use strict";bm.exports.isClean=Symbol("isClean");bm.exports.my=Symbol("my")});var gm=me((tQ,zS)=>{"use strict";var KS={after:`
|
||
|
`,beforeClose:`
|
||
|
`,beforeComment:`
|
||
|
`,beforeDecl:`
|
||
|
`,beforeOpen:" ",beforeRule:`
|
||
|
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function $M(e){return e[0].toUpperCase()+e.slice(1)}var Bl=class{constructor(t){this.builder=t}atrule(t,n){let i="@"+t.name,o=t.params?this.rawValue(t,"params"):"";if(typeof t.raws.afterName<"u"?i+=t.raws.afterName:o&&(i+=" "),t.nodes)this.block(t,i+o);else{let r=(t.raws.between||"")+(n?";":"");this.builder(i+o+r,t)}}beforeAfter(t,n){let i;t.type==="decl"?i=this.raw(t,null,"beforeDecl"):t.type==="comment"?i=this.raw(t,null,"beforeComment"):n==="before"?i=this.raw(t,null,"beforeRule"):i=this.raw(t,null,"beforeClose");let o=t.parent,r=0;for(;o&&o.type!=="root";)r+=1,o=o.parent;if(i.includes(`
|
||
|
`)){let u=this.raw(t,null,"indent");if(u.length)for(let a=0;a<r;a++)i+=u}return i}block(t,n){let i=this.raw(t,"between","beforeOpen");this.builder(n+i+"{",t,"start");let o;t.nodes&&t.nodes.length?(this.body(t),o=this.raw(t,"after")):o=this.raw(t,"after","emptyBody"),o&&this.builder(o),this.builder("}",t,"end")}body(t){let n=t.nodes.length-1;for(;n>0&&t.nodes[n].type==="comment";)n-=1;let i=this.raw(t,"semicolon");for(let o=0;o<t.nodes.length;o++){let r=t.nodes[o],u=this.raw(r,"before");u&&this.builder(u),this.stringify(r,n!==o||i)}}comment(t){let n=this.raw(t,"left","commentLeft"),i=this.raw(t,"right","commentRight");this.builder("/*"+n+t.text+i+"*/",t)}decl(t,n){let i=this.raw(t,"between","colon"),o=t.prop+i+this.rawValue(t,"value");t.important&&(o+=t.raws.important||" !important"),n&&(o+=";"),this.builder(o,t)}document(t){this.body(t)}raw(t,n,i){let o;if(i||(i=n),n&&(o=t.raws[n],typeof o<"u"))return o;let r=t.parent;if(i==="before"&&(!r||r.type==="root"&&r.first===t||r&&r.type==="document"))return"";if(!r)return KS[i];let u=t.root();if(u.rawCache||(u.rawCache={}),typeof u.rawCache[i]<"u")return u.rawCache[i];if(i==="before"||i==="after")return this.beforeAfter(t,i);{let a="raw"+$M(i);this[a]?o=this[a](u,t):u.walk(m=>{if(o=m.raws[n],typeof o<"u")return!1})}return typeof o>"u"&&(o=KS[i]),u.rawCache[i]=o,o}rawBeforeClose(t){let n;return t.walk(i=>{if(i.nodes&&i.nodes.length>0&&typeof i.raws.after<"u")return n=i.raws.after,n.includes(`
|
||
|
`)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n}rawBeforeComment(t,n){let i;return t.walkComments(o=>{if(typeof o.raws.before<"u")return i=o.raws.before,i.includes(`
|
||
|
`)&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i>"u"?i=this.raw(n,null,"beforeDecl"):i&&(i=i.replace(/\S/g,"")),i}rawBeforeDecl(t,n){let i;return t.walkDecls(o=>{if(typeof o.raws.before<"u")return i=o.raws.before,i.includes(`
|
||
|
`)&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i>"u"?i=this.raw(n,null,"beforeRule"):i&&(i=i.replace(/\S/g,"")),i}rawBeforeOpen(t){let n;return t.walk(i=>{if(i.type!=="decl"&&(n=i.raws.between,typeof n<"u"))return!1}),n}rawBeforeRule(t){let n;return t.walk(i=>{if(i.nodes&&(i.parent!==t||t.first!==i)&&typeof i.raws.before<"u")return n=i.raws.before,n.includes(`
|
||
|
`)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n}rawColon(t){let n;return t.walkDecls(i=>{if(typeof i.raws.between<"u")return n=i.raws.between.replace(/[^\s:]/g,""),!1}),n}rawEmptyBody(t){let n;return t.walk(i=>{if(i.nodes&&i.nodes.length===0&&(n=i.raws.after,typeof n<"u"))return!1}),n}rawIndent(t){if(t.raws.indent)return t.raws.indent;let n;return t.walk(i=>{let o=i.parent;if(o&&o!==t&&o.parent&&o.parent===t&&typeof i.raws.before<"u"){let r=i.raws.before.split(`
|
||
|
`);return n=r[r.length-1],n=n.replace(/\S/g,""),!1}}),n}rawSemicolon(t){let n;return t.walk(i=>{if(i.nodes&&i.nodes.length&&i.last.type==="decl"&&(n=i.raws.semicolon,typeof n<"u"))return!1}),n}rawValue(t,n){let i=t[n],o=t.raws[n];return o&&o.value===i?o.raw:i}root(t){this.body(t),t.raws.after&&this.builder(t.raws.after)}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")}stringify(t,n){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,n)}};zS.exports=Bl;Bl.default=Bl});var Ul=me((rQ,GS)=>{"use strict";var VM=gm();function vm(e,t){new VM(t).stringify(e)}GS.exports=vm;vm.default=vm});var Vl=me((nQ,HS)=>{"use strict";var{isClean:Up,my:qM}=Bp(),WM=Rp(),KM=gm(),zM=Ul();function Tm(e,t){let n=new e.constructor;for(let i in e){if(!Object.prototype.hasOwnProperty.call(e,i)||i==="proxyCache")continue;let o=e[i],r=typeof o;i==="parent"&&r==="object"?t&&(n[i]=t):i==="source"?n[i]=o:Array.isArray(o)?n[i]=o.map(u=>Tm(u,n)):(r==="object"&&o!==null&&(o=Tm(o)),n[i]=o)}return n}var $l=class{constructor(t={}){this.raws={},this[Up]=!1,this[qM]=!0;for(let n in t)if(n==="nodes"){this.nodes=[];for(let i of t[n])typeof i.clone=="function"?this.append(i.clone()):this.append(i)}else this[n]=t[n]}addToError(t){if(t.postcssNode=this,t.stack&&this.source&&/\n\s{4}at /.test(t.stack)){let n=this.source;t.stack=t.stack.replace(/\n\s{4}at /,`$&${n.input.from}:${n.start.line}:${n.start.column}$&`)}return t}after(t){return this.parent.insertAfter(this,t),this}assign(t={}){for(let n in t)this[n]=t[n];return this}before(t){return this.parent.insertBefore(this,t),this}cleanRaws(t){delete this.raws.before,delete this.raws.after,t||delete this.raws.between}clone(t={}){let n=Tm(this);for(let i in t)n[i]=t[i];return n}cloneAfter(t={}){let n=this.clone(t);return this.parent.insertAfter(this,n),n}cloneBefore(t={}){let n=this.clone(t);return this.parent.insertBefore(this,n),n}error(t,n={}){if(this.source){let{end:i,start:o}=this.rangeBy(n);return this.source.input.error(t,{column:o.column,line:o.line},{column:i.column,line:i.line},n)}return new WM(t)}getProxyProcessor(){return{get(t,n){return n==="proxyOf"?t:n==="root"?()=>t.root().toProxy():t[n]},set(t,n,i){return t[n]===i||(t[n]=i,(n==="prop"||n==="value"||n==="name"||n==="params"||n==="important"||n==="text")&&t.markDirty()),!0}}}markDirty(){if(this[Up]){this[Up]=!1;let t=this;for(;t=t.parent;)t[Up]=!1}}next(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t+1]}positionBy(t,n){let i=this.source.start;if(t.index)i=this.positionInside(t.index,n);else if(t.word){n=this.toString();let o=n.indexOf(t.word);o!==-1&&(i=this.positionInside(o,n))}return i}positionInside(t,n){let i=n||this.toString(),o=this.source.start.column,r=this.source.start.line;for(let u=0;u<t;u++)i[u]===`
|
||
|
`?(o=1,r+=1):o+=1;return{column:o,line:r}}prev(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t-1]}rangeBy(t){let n={column:this.source.start.column,line:this.source.start.line},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:n.column+1,line:n.line};if(t.word){let o=this.toString(),r=o.indexOf(t.word);r!==-1&&(n=this.positionInside(r,o),i=this.positionInside(r+t.word.length,o))}else t.start?n={column:t.start.column,line:t.start.line}:t.index&&(n=this.positionInside(t.index)),t.end?i={column:t.end.column,line:t.end.line}:t.endIndex?i=this.positionInside(t.endIndex):t.index&&(i=this.positionInside(t.index+1));return(i.line<n.line||i.line===n.line&&i.column<=n.column)&&(i={column:n.column+1,line:n.line}),{end:i,start:n}}raw(t,n){return new KM().raw(this,t,n)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...t){if(this.parent){let n=this,i=!1;for(let o of t)o===this?i=!0:i?(this.parent.insertAfter(n,o),n=o):this.parent.insertBefore(n,o);i||this.remove()}return this}root(){let t=this;for(;t.parent&&t.parent.type!=="document";)t=t.parent;return t}toJSON(t,n){let i={},o=n==null;n=n||new Map;let r=0;for(let u in this){if(!Object.prototype.hasOwnProperty.call(this,u)||u==="parent"||u==="proxyCache")continue;let a=this[u];if(Array.isArray(a))i[u]=a.map(m=>typeof m=="object"&&m.toJSON?m.toJSON(null,n):m);else if(typeof a=="object"&&a.toJSON)i[u]=a.toJSON(null,n);else if(u==="source"){let m=n.get(a.input);m==null&&(m=r,n.set(a.input,r),r++),i[u]={end:a.end,inputId:m,start:a.start}}else i[u]=a}return o&&(i.inputs=[...n.keys()].map(u=>u.toJSON())),i}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(t=zM){t.stringify&&(t=t.stringify);let n="";return t(this,i=>{n+=i}),n}warn(t,n,i){let o={node:this};for(let r in i)o[r]=i[r];return t.warn(n,o)}get proxyOf(){return this}};HS.exports=$l;$l.default=$l});var Wl=me((iQ,XS)=>{"use strict";var GM=Vl(),ql=class extends GM{constructor(t){t&&typeof t.value<"u"&&typeof t.value!="string"&&(t={...t,value:String(t.value)}),super(t),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};XS.exports=ql;ql.default=ql});var YS=me(Em=>{var JS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");Em.encode=function(e){if(0<=e&&e<JS.length)return JS[e];throw new TypeError("Must be between 0 and 63: "+e)};Em.decode=function(e){var t=65,n=90,i=97,o=122,r=48,u=57,a=43,m=47,d=26,s=52;return t<=e&&e<=n?e-t:i<=e&&e<=o?e-i+d:r<=e&&e<=u?e-r+s:e==a?62:e==m?63:-1}});var _m=me(xm=>{var QS=YS(),Sm=5,ZS=1<<Sm,ex=ZS-1,tx=ZS;function HM(e){return e<0?(-e<<1)+1:(e<<1)+0}function XM(e){var t=(e&1)===1,n=e>>1;return t?-n:n}xm.encode=function(t){var n="",i,o=HM(t);do i=o&ex,o>>>=Sm,o>0&&(i|=tx),n+=QS.encode(i);while(o>0);return n};xm.decode=function(t,n,i){var o=t.length,r=0,u=0,a,m;do{if(n>=o)throw new Error("Expected more digits in base 64 VLQ value.");if(m=QS.decode(t.charCodeAt(n++)),m===-1)throw new Error("Invalid base64 digit: "+t.charAt(n-1));a=!!(m&tx),m&=ex,r=r+(m<<u),u+=Sm}while(a);i.value=XM(r),i.rest=n}});var vo=me(An=>{function JM(e,t,n){if(t in e)return e[t];if(arguments.length===3)return n;throw new Error('"'+t+'" is a required argument.')}An.getArg=JM;var rx=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,YM=/^data:.+\,.+$/;function Kl(e){var t=e.match(rx);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}An.urlParse=Kl;function go(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}An.urlGenerate=go;var QM=32;function ZM(e){var t=[];return function(n){for(var i=0;i<t.length;i++)if(t[i].input===n){var o=t[0];return t[0]=t[i],t[i]=o,t[0].result}var r=e(n);return t.unshift({input:n,result:r}),t.length>QM&&t.pop(),r}}var wm=ZM(function(t){var n=t,i=Kl(t);if(i){if(!i.path)return t;n=i.path}for(var o=An.isAbsolute(n),r=[],u=0,a=0;;)if(u=a,a=n.indexOf("
|
||
|
`);i=new Array(r.length);let u=0;for(let a=0,m=r.length;a<m;a++)i[a]=u,u+=r[a].length+1;this[Lm]=i}n=i[i.length-1];let o=0;if(t>=n)o=i.length-1;else{let r=i.length-2,u;for(;o<r;)if(u=o+(r-o>>1),t<i[u])r=u-1;else if(t>=i[u+1])o=u+1;else{o=u;break}}return{col:t-i[o]+1,line:o+1}}mapResolve(t){return/^\w+:\/\//.test(t)?t:Rm(this.map.consumer().sourceRoot||this.map.root||".",t)}origin(t,n,i,o){if(!this.map)return!1;let r=this.map.consumer(),u=r.originalPositionFor({column:n,line:t});if(!u.source)return!1;let a;typeof i=="number"&&(a=r.originalPositionFor({column:o,line:i}));let m;Mm(u.source)?m=Gp(u.source):m=new URL(u.source,this.map.consumer().sourceRoot||Gp(this.map.mapFile));let d={column:u.column,endColumn:a&&a.column,endLine:a&&a.line,line:u.line,url:m.toString()};if(m.protocol==="file:")if(Cx)d.file=Cx(m);else throw new Error("file: protocol is not available in this PostCSS build");let s=r.sourceContentFor(u.source);return s&&(d.source=s),d}toJSON(){let t={};for(let n of["hasBOM","css","file","id"])this[n]!=null&&(t[n]=this[n]);return this.map&&(t.map={...this.map},t.map.consumerCache&&(t.map.consumerCache=void 0)),t}get from(){return this.file||this.id}};kx.exports=So;So.default=So;jm&&jm.registerInput&&jm.registerInput(So)});var Um=me((vQ,jx)=>{"use strict";var{SourceMapConsumer:Ix,SourceMapGenerator:Hp}=zp(),{dirname:Xp,relative:Ox,resolve:Nx,sep:Fx}=yt("path"),{pathToFileURL:Dx}=yt("url"),DR=Xl(),IR=!!(Ix&&Hp),OR=!!(Xp&&Nx&&Ox&&Fx),Bm=class{constructor(t,n,i,o){this.stringify=t,this.mapOpts=i.map||{},this.root=n,this.opts=i,this.css=o,this.originalCSS=o,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let t;this.isInline()?t="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?t=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?t=this.mapOpts.annotation(this.opts.to,this.root):t=this.outputFile()+".map";let n=`
|
||
|
`;this.css.includes(`\r
|
||
|
`)&&(n=`\r
|
||
|
`),this.css+=n+"/*# sourceMappingURL="+t+" */"}applyPrevMaps(){for(let t of this.previous()){let n=this.toUrl(this.path(t.file)),i=t.root||Xp(t.file),o;this.mapOpts.sourcesContent===!1?(o=new Ix(t.text),o.sourcesContent&&(o.sourcesContent=null)):o=t.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let t;for(let n=this.root.nodes.length-1;n>=0;n--)t=this.root.nodes[n],t.type==="comment"&&t.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(n)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),OR&&IR&&this.isMap())return this.generateMap();{let t="";return this.stringify(this.root,n=>{t+=n}),[t]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=Hp.fromSourceMap(t)}else this.map=new Hp({file:this.outputFile()}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new Hp({file:this.outputFile()});let t=1,n=1,i="<no source>",o={generated:{column:0,line:0},original:{column:0,line:0},source:""},r,u;this.stringify(this.root,(a,m,d)=>{if(this.css+=a,m&&d!=="end"&&(o.generated.line=t,o.generated.column=n-1,m.source&&m.source.start?(o.source=this.sourcePath(m),o.original.line=m.source.start.line,o.original.column=m.source.start.column-1,this.map.addMapping(o)):(o.source=i,o.original.line=1,o.original.column=0,this.map.addMapping(o))),r=a.match(/\n/g),r?(t+=r.length,u=a.lastIndexOf(`
|
||
|
`),n=a.length-u):n+=a.length,m&&d!=="start"){let s=m.parent||{raws:{}};(!(m.type==="decl"||m.type==="atrule"&&!m.nodes)||m!==s.last||s.raws.semicolon)&&(m.source&&m.source.end?(o.source=this.sourcePath(m),o.original.line=m.source.end.line,o.original.column=m.source.end.column-1,o.generated.line=t,o.generated.column=n-2,this.map.addMapping(o)):(o.source=i,o.original.line=1,o.original.column=0,o.generated.line=t,o.generated.column=n-1,this.map.addMapping(o)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(t=>t.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let t=this.mapOpts.annotation;return typeof t<"u"&&t!==!0?!1:this.previous().length?this.previous().some(n=>n.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(t=>t.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(t){if(this.mapOpts.absolute||t.charCodeAt(0)===60||/^\w+:\/\//.test(t))return t;let n=this.memoizedPaths.get(t);if(n)return n;let i=this.opts.to?Xp(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(i=Xp(Nx(i,this.mapOpts.annotation)));let o=Ox(i,t);return this.memoizedPaths.set(t,o),o}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(t=>{if(t.source&&t.source.input.map){let n=t.source.input.map;this.previousMaps.includes(n)||this.previousMaps.push(n)}});else{let t=new DR(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps}setSourcesContent(){let t={};if(this.root)this.root.walk(n=>{if(n.source){let i=n.source.input.from;if(i&&!t[i]){t[i]=!0;let o=this.usesFileUrls?this.toFileUrl(i):this.toUrl(this.path(i));this.map.setSourceContent(o,n.source.input.css)}}});else if(this.css){let n=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(n,this.css)}}sourcePath(t){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(t.source.input.from):this.toUrl(this.path(t.source.input.from))}toBase64(t){return Buffer?Buffer.from(t).toString("base64"):window.btoa(unescape(encodeURIComponent(t)))}toFileUrl(t){let n=this.memoizedFileURLs.get(t);if(n)return n;if(Dx){let i=Dx(t).toString();return this.memoizedFileURLs.set(t,i),i}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(t){let n=this.memoizedURLs.get(t);if(n)return n;Fx==="\\"&&(t=t.replace(/\\/g,"/"));let i=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,i),i}};jx.exports=Bm});var Yl=me((TQ,Lx)=>{"use strict";var NR=Vl(),Jl=class extends NR{constructor(t){super(t),this.type="comment"}};Lx.exports=Jl;Jl.default=Jl});var Hs=me((EQ,Kx)=>{"use strict";var{isClean:Mx,my:Rx}=Bp(),Bx=Wl(),Ux=Yl(),FR=Vl(),$x,$m,Vm,Vx;function qx(e){return e.map(t=>(t.nodes&&(t.nodes=qx(t.nodes)),delete t.source,t))}function Wx(e){if(e[Mx]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)Wx(t)}var Ri=class e extends FR{append(...t){for(let n of t){let i=this.normalize(n,this.last);for(let o of i)this.proxyOf.nodes.push(o)}return this.markDirty(),this}cleanRaws(t){if(super.cleanRaws(t),this.nodes)for(let n of this.nodes)n.cleanRaws(t)}each(t){if(!this.proxyOf.nodes)return;let n=this.getIterator(),i,o;for(;this.indexes[n]<this.proxyOf.nodes.length&&(i=this.indexes[n],o=t(this.proxyOf.nodes[i],i),o!==!1);)this.indexes[n]+=1;return delete this.indexes[n],o}every(t){return this.nodes.every(t)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let t=this.lastEach;return this.indexes[t]=0,t}getProxyProcessor(){return{get(t,n){return n==="proxyOf"?t:t[n]?n==="each"||typeof n=="string"&&n.startsWith("walk")?(...i)=>t[n](...i.map(o=>typeof o=="function"?(r,u)=>o(r.toProxy(),u):o)):n==="every"||n==="
|
||
|
`," "];return eu.split(e,t)},split(e,t,n){let i=[],o="",r=!1,u=0,a=!1,m="",d=!1;for(let s of e)d?d=!1:s==="\\"?d=!0:a?s===m&&(a=!1):s==='"'||s==="'"?(a=!0,m=s):s==="("?u+=1:s===")"?u>0&&(u-=1):u===0&&t.includes(s)&&(r=!0),r?(o!==""&&i.push(o.trim()),o="",r=!1):o+=s;return(n||o!=="")&&i.push(o.trim()),i}};s_.exports=eu;eu.default=eu});var Zp=me((kQ,o_)=>{"use strict";var a_=Hs(),MR=Km(),wo=class extends a_{constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return MR.comma(this.selector)}set selectors(t){let n=this.selector?this.selector.match(/,\s*/):null,i=n?n[0]:","+this.raw("between","beforeOpen");this.selector=t.join(i)}};o_.exports=wo;wo.default=wo;a_.registerRule(wo)});var p_=me((DQ,c_)=>{"use strict";var RR=Wl(),BR=mm(),UR=Yl(),$R=Qp(),VR=_o(),l_=Zp(),u_={empty:!0,space:!0};function qR(e){for(let t=e.length-1;t>=0;t--){let n=e[t],i=n[3]||n[2];if(i)return i}}var zm=class{constructor(t){this.input=t,this.root=new VR,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(t){let n=new $R;n.name=t[1].slice(1),n.name===""&&this.unnamedAtrule(n,t),this.init(n,t[2]);let i,o,r,u=!1,a=!1,m=[],d=[];for(;!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),i=t[0],i==="("||i==="["?d.push(i==="("?")":"]"):i==="{"&&d.length>0?d.push("}"):i===d[d.length-1]&&d.pop(),d.length===0)if(i===";"){n.source.end=this.getPosition(t[2]),n.source.end.offset++,this.semicolon=!0;break}else if(i==="{"){a=!0;break}else if(i==="}"){if(m.length>0){for(r=m.length-1,o=m[r];o&&o[0]==="space";)o=m[--r];o&&(n.source.end=this.getPosition(o[3]||o[2]),n.source.end.offset++)}this.end(t);break}else m.push(t);else m.push(t);if(this.tokenizer.endOfFile()){u=!0;break}}n.raws.between=this.spacesAndCommentsFromEnd(m),m.length?(n.raws.afterName=this.spacesAndCommentsFromStart(m),this.raw(n,"params",m),u&&(t=m[m.length-1],n.source.end=this.getPosition(t[3]||t[2]),n.source.end.offset++,this.spaces=n.raws.between,n.raws.between="")):(n.raws.afterName="",n.params=""),a&&(n.nodes=[],this.current=n)}checkMissedSemicolon(t){let n=this.colon(t);if(n===!1)return;let i=0,o;for(let r=n-1;r>=0&&(o=t[r],!(o[0]!=="space"&&(i+=1,i===2)));r--);throw this.input.error("Missed semicolon",o[0]==="word"?o[3]+1:o[2])}colon(t){let n=0,i,o,r;for(let[u,a]of t.entries()){if(i=a,o=i[0],o==="("&&(n+=1),o===")"&&(n-=1),n===0&&o===":")if(!r)this.doubleColon(i);else{if(r[0]==="word"&&r[1]==="progid")continue;return u}r=i}return!1}comment(t){let n=new UR;this.init(n,t[2]),n.source.end=this.getPosition(t[3]||t[2]),n.source.end.offset++;let i=t[1].slice(2,-2);if(/^\s*$/.test(i))n.text="",n.raws.left=i,n.raws.right="";else{let o=i.match(/^(\s*)([^]*\S)(\s*)$/);n.text=o[2],n.raws.left=o[1],n.raws.right=o[3]}}createTokenizer(){this.tokenizer=BR(this.input)}decl(t,n){let i=new RR;this.init(i,t[0][2]);let o=t[t.length-1];for(o[0]===";"&&(this.semicolon=!0,t.pop()),i.source.end=this.getPosition(o[3]||o[2]||qR(t)),i.source.end.offset++;t[0][0]!=="word";)t.length===1&&this.unknownWord(t),i.raws.before+=t.shift()[1];for(i.source.start=this.getPosition(t[0][2]),i.prop="";t.length;){let d=t[0][0];if(d===":"||d==="space"||d==="comment")break;i.prop+=t.shift()[1]}i.raws.between="";let r;for(;t.length;)if(r=t.shift(),r[0]===":"){i.raws.between+=r[1];break}else r[0]==="word"&&/\w/.test(r[1])&&this.unknownWord([r]),i.raws.between+=r[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));let u=[],a;for(;t.length&&(a=t[0][0],!(a!=="space"&&a!=="comment"));)u.push(t.shift());this.precheckMissedSemicolon(t);for(let d=t.length-1;d>=0;d--){if(r=t[d],r[1].toLowerCase()==="!important"){i.important=!0;let s=this.stringFrom(t,d);s=this.spacesFromEnd(t)+s,s!==" !important"&&(i.raws.important=s);break}else if(r[1].toLowerCase()==="important"){let s=t.slice(0),l="";for(let f=d;f>0;f--){let p=s[f][0];if(l.trim().indexOf("!")===0&&p!=="space")break;l=s.pop()[1]+l}l.trim().indexOf("!")===0&&(i.important=!0,i.raws.important=l,t=s)}if(r[0]!=="space"&&r[0]!=="comment
|
||
|
You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser`:/\.sass/i.test(t.from)?o.message+=`
|
||
|
You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser`:/\.less$/i.test(t.from)&&(o.message+=`
|
||
|
You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),o}return i.root}d_.exports=ed;ed.default=ed;WR.registerParse(ed)});var Xm=me((OQ,y_)=>{"use strict";var{isClean:ns,my:GR}=Bp(),HR=Um(),XR=Ul(),JR=Hs(),YR=Jp(),QR=qm(),f_=Yp(),ZR=td(),e5=_o(),t5={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},r5={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},n5={Once:!0,postcssPlugin:!0,prepare:!0},Co=0;function tu(e){return typeof e=="object"&&typeof e.then=="function"}function m_(e){let t=!1,n=t5[e.type];return e.type==="decl"?t=e.prop.toLowerCase():e.type==="atrule"&&(t=e.name.toLowerCase()),t&&e.append?[n,n+"-"+t,Co,n+"Exit",n+"Exit-"+t]:t?[n,n+"-"+t,n+"Exit",n+"Exit-"+t]:e.append?[n,Co,n+"Exit"]:[n,n+"Exit"]}function h_(e){let t;return e.type==="document"?t=["Document",Co,"DocumentExit"]:e.type==="root"?t=["Root",Co,"RootExit"]:t=m_(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function Gm(e){return e[ns]=!1,e.nodes&&e.nodes.forEach(t=>Gm(t)),e}var Hm={},Js=class e{constructor(t,n,i){this.stringified=!1,this.processed=!1;let o;if(typeof n=="object"&&n!==null&&(n.type==="root"||n.type==="document"))o=Gm(n);else if(n instanceof e||n instanceof f_)o=Gm(n.root),n.map&&(typeof i.map>"u"&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=n.map);else{let r=ZR;i.syntax&&(r=i.syntax.parse),i.parser&&(r=i.parser),r.parse&&(r=r.parse);try{o=r(n,i)}catch(u){this.processed=!0,this.error=u}o&&!o[GR]&&JR.rebuild(o)}this.result=new f_(t,o,i),this.helpers={...Hm,postcss:Hm,result:this.result},this.plugins=this.processor.plugins.map(r=>typeof r=="object"&&r.prepare?{...r,...r.prepare(this.result)}:r)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(t,n){let i=this.result.lastPlugin;try{if(n&&n.addToError(t),this.error=t,t.name==="CssSyntaxError"&&!t.plugin)t.plugin=i.postcssPlugin,t.setMessage();else if(i.postcssVersion&&process.env.NODE_ENV!=="production"){let o=i.postcssPlugin,r=i.postcssVersion,u=this.result.processor.version,a=r.split("."),m=u.split(".");(a[0]!==m[0]||parseInt(a[1])>parseInt(m[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+u+", but "+o+" uses "+r+". Perhaps this is the source of the error below.")}}catch(o){console&&console.error&&console.error(o)}return t}prepareVisitors(){this.listeners={};let t=(n,i,o)=>{this.listeners[i]||(this.listeners[i]=[]),this.listeners[i].push([n,o])};for(let n of this.plugins)if(typeof n=="object")for(let i in n){if(!r5[i]&&/^[A-Z]/.test(i))throw new Error(`Unknown event ${i} in ${n.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!n5[i])if(typeof n[i]=="object")for(let o in n[i])o==="*"?t(n,i,n[i][o]):t(n,i+"-"+o.toLowerCase(),n[i][o]);else typeof n[i]=="function"&&t(n,i,n[i])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let t=0;t<this.plugins.length;t++){let n=this.plugins[t],i=this.runOnRoot(n);if(tu(i))try{await i}catch(o){throw this.handleError(o)}}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[ns];){t[ns]=!0;let n=[h_(t)];for(;n.length>0;){let i=this.visitTick(n);if(tu(i))try{await i}catch(o){let r=n[n.length-1].node;throw this.handleError(o,r)}}}if(this.listeners.OnceExit)for(let[n,i]of this.listeners.OnceExit){this.result.lastPlugin=n;try{if(t.type==="document"){let o=t.nodes.map(r=>i(r,this.helpers));await Promise.all(o)}else await i(t,this.helpers)}catch(o){throw this.handleError(o)}}}return this.processed=!0,this.stringify()}runOnRoot(t){this.result.lastPlugin=t;try{if(typeof t=="objec
|
||
|
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(t+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
|
||
|
https://www.w3ctech.com/topic/2226`));let a=n(...u);return a.postcssPlugin=t,a.postcssVersion=new Jm().version,a}let r;return Object.defineProperty(o,"postcss",{get(){return r||(r=o()),r}}),o.process=function(u,a,m){return Or([o(m)]).process(u,a)},o};Or.stringify=x5;Or.parse=P5;Or.fromJSON=_5;Or.list=k5;Or.comment=e=>new w_(e);Or.atRule=e=>new C_(e);Or.decl=e=>new x_(e);Or.rule=e=>new A_(e);Or.root=e=>new P_(e);Or.document=e=>new __(e);Or.CssSyntaxError=T5;Or.Declaration=x_;Or.Container=S5;Or.Processor=Jm;Or.Document=__;Or.Comment=w_;Or.Warning=w5;Or.AtRule=C_;Or.Result=C5;Or.Input=A5;Or.Rule=A_;Or.Root=P_;Or.Node=D5;E5.registerPostcss(Or);k_.exports=Or;Or.default=Or});var Ym=me((lZ,I_)=>{"use strict";I_.exports=function(t,n,i){let o=[];if(typeof t<"u"){let r="layer";t&&(r=`layer(${t})`),o.push(r)}return typeof i<"u"&&o.push(`supports(${i})`),typeof n<"u"&&o.push(n),o.join(" ")}});var F_=me((uZ,N_)=>{"use strict";var O_=Ym();N_.exports=function(t,n){n.reverse();let i=n.pop(),o=`${t} ${O_(i.layer,i.media,i.supports)}`;for(let r of n)o=`'data:text/css;base64,${Buffer.from(`@import ${o}`).toString("base64")}' ${O_(r.layer,r.media,r.supports)}`;return o}});var L_=me((cZ,j_)=>{"use strict";var I5=F_();j_.exports=function(t,n){t.forEach(i=>{var d;if(i.type==="charset"||i.type==="warning"||!((d=i.conditions)!=null&&d.length))return;if(i.type==="import"){i.node.params=I5(i.fullUri,i.conditions);return}let{nodes:o}=i,{parent:r}=o[0],u=[];for(let s of i.conditions){if(typeof s.media<"u"){let l=n({name:"media",params:s.media,source:r.source});u.push(l)}if(typeof s.supports<"u"){let l=n({name:"supports",params:`(${s.supports})`,source:r.source});u.push(l)}if(typeof s.layer<"u"){let l=n({name:"layer",params:s.layer,source:r.source});u.push(l)}}let a=u.shift(),m=u.reduce((s,l)=>(s.append(l),l),a);r.insertBefore(o[0],a),o.forEach(s=>{s.parent=void 0}),o[0].raws.before=o[0].raws.before||`
|
||
|
`,m.append(o),i.type="nodes",i.nodes=[a],delete i.node})}});var R_=me((pZ,M_)=>{"use strict";M_.exports=function(t){t.forEach((n,i)=>{if(i!==0)if(n.parent){let{before:o}=n.parent.node.raws;n.type==="nodes"?n.nodes[0].raws.before=o:n.node.raws.before=o}else n.type==="nodes"&&(n.nodes[0].raws.before=n.nodes[0].raws.before||`
|
||
|
`)})}});var U_=me((dZ,B_)=>{"use strict";B_.exports=function(t,n){n.nodes=[],t.forEach(i=>{["charset","import"].includes(i.type)?(i.node.parent=void 0,n.append(i.node)):i.type==="nodes"&&i.nodes.forEach(o=>{o.parent=void 0,n.append(o)})})}});var W_=me((fZ,q_)=>{"use strict";var $_=function(e,t,n){return function(){for(var i=this,o=new Array(arguments.length),r=0;r<arguments.length;r++)o[r]=arguments[r];return new t(function(u,a){o.push(function(m,d){if(m)a(m);else if(n.multiArgs){for(var s=new Array(arguments.length-1),l=1;l<arguments.length;l++)s[l-1]=arguments[l];u(s)}else u(d)}),e.apply(i,o)})}},V_=q_.exports=function(e,t,n){typeof t!="function"&&(n=t,t=Promise),n=n||{},n.exclude=n.exclude||[/.+Sync$/];var i=function(r){var u=function(a){return typeof a=="string"?r===a:a.test(r)};return n.include?n.include.some(u):!n.exclude.some(u)},o=typeof e=="function"?function(){return n.excludeMain?e.apply(this,arguments):$_(e,t,n).apply(this,arguments)}:{};return Object.keys(e).reduce(function(r,u){var a=e[u];return r[u]=typeof a=="function"&&i(u)?$_(a,t,n):a,r},o)};V_.all=V_});var z_=me((hZ,su)=>{var rd=yt("fs"),O5=yt("path"),K_=W_(),N5=K_(rd.stat),F5=K_(rd.readFile),Qm=O5.resolve,_s=Object.create(null);function iu(e,t){return Buffer.isEncoding(t)?e.toString(t):e}su.exports=function(e,t){return e=Qm(e),N5(e).then(function(n){var i=_s[e];return i&&i.mtime.getTime()===n.mtime.getTime()?iu(i.content,t):F5(e).then(function(o){return _s[e]={mtime:n.mtime,content:o},iu(o,t)})}).catch(function(n){return _s[e]=null,Promise.reject(n)})};su.exports.sync=function(e,t){e=Qm(e);try{var n=rd.statSync(e),i=_s[e];if(i&&i.mtime.getTime()===n.mtime.getTime())return iu(i.content,t);var o=rd.readFileSync(e);return _s[e]={mtime:n.mtime,content:o},iu(o,t)}catch(r){throw _s[e]=null,r}};su.exports.get=function(e,t){return e=Qm(e),_s[e]?iu(_s[e].content,t):null};su.exports.clear=function(){_s=Object.create(null)}});var Zm=me((mZ,G_)=>{"use strict";var j5=/^data:text\/css(?:;(base64|plain))?,/i,L5=/^data:text\/css;base64,/i,M5=/^data:text\/css;plain,/i;function R5(e){return j5.test(e)}function B5(e){return L5.test(e)?Buffer.from(e.slice(21),"base64").toString():M5.test(e)?decodeURIComponent(e.slice(20)):decodeURIComponent(e.slice(14))}G_.exports={isValid:R5,contents:B5}});var J_=me((yZ,X_)=>{"use strict";var U5=z_(),H_=Zm();X_.exports=function(t){return H_.isValid(t)?H_.contents(t):U5(t,"utf-8")}});var Q_=me((bZ,Y_)=>{var ey=40,ty=41,nd=39,ry=34,ny=92,Ao=47,iy=44,sy=58,id=42,$5=117,V5=85,q5=43,W5=/^[a-f0-9?-]+$/i;Y_.exports=function(e){for(var t=[],n=e,i,o,r,u,a,m,d,s,l=0,f=n.charCodeAt(l),p=n.length,h=[{nodes:t}],y=0,b,E="",v="",S="";l<p;)if(f<=32){i=l;do i+=1,f=n.charCodeAt(i);while(f<=32);u=n.slice(l,i),r=t[t.length-1],f===ty&&y?S=u:r&&r.type==="div"?(r.after=u,r.sourceEndIndex+=u.length):f===iy||f===sy||f===Ao&&n.charCodeAt(i+1)!==id&&(!b||b&&b.type==="function"&&b.value!=="calc")?v=u:t.push({type:"space",sourceIndex:l,sourceEndIndex:i,value:u}),l=i}else if(f===nd||f===ry){i=l,o=f===nd?"'":'"',u={type:"string",sourceIndex:l,quote:o};do if(a=!1,i=n.indexOf(o,i+1),~i)for(m=i;n.charCodeAt(m-1)===ny;)m-=1,a=!a;else n+=o,i=n.length-1,u.unclosed=!0;while(a);u.value=n.slice(l+1,i),u.sourceEndIndex=u.unclosed?i:i+1,t.push(u),l=i+1,f=n.charCodeAt(l)}else if(f===Ao&&n.charCodeAt(l+1)===id)i=n.indexOf("*/",l),u={type:"comment",sourceIndex:l,sourceEndIndex:i+2},i===-1&&(u.unclosed=!0,i=n.length,u.sourceEndIndex=i),u.value=n.slice(l+2,i),t.push(u),l=i+2,f=n.charCodeAt(l);else if((f===Ao||f===id)&&b&&b.type==="function"&&b.value==="calc")u=n[l],t.push({type:"word",sourceIndex:l-v.length,sourceEndIndex:l+u.length,value:u}),l+=1,f=n.charCodeAt(l);else if(f===Ao||f===iy||f===sy)u=n[l],t.push({type:"div",sourceIndex:l-v.length,sourceEndIndex:l+u.length,value:u,before:v,after:""}),v="",l+=1,f=n.charCodeAt(l);else if(ey===f){i=l;do i+=1,f=n.charCodeAt(i);while(f<=32);if(s=l,u={type:"function",sourceIndex:l-E.length,value:E,before:n.slice(s+1,i)},l=i,E==="url"&&f!==nd&&f!==ry){i-=1;do if(a=!1,i=n.indexOf(")",i+1),~i)for(m=i;n.charCodeAt(m-1)===ny;)m-=1,a=!a;else n+=")
|
||
|
in [
|
||
|
${r.join(`,
|
||
|
`)}
|
||
|
]`)})}});var Zw=me((BZ,Qw)=>{"use strict";var Hw=yt("path"),Xw=Zm(),MB=fw(),RB=mw(),BB=my(),UB=Ym();async function Yw(e,t,n,i,o,r,u){let a=MB(e,t,o,r);for(let f of a)f.type!=="import"||!VB(f.uri)||n.filter&&!n.filter(f.uri)||await $B(e,f,n,i,u);let m,d=[],s=[];function l(f){if(!m)m=f;else if(f.node.params.toLowerCase()!==m.node.params.toLowerCase())throw f.node.error(`Incompatible @charset statements:
|
||
|
${f.node.params} specified in ${f.node.source.input.file}
|
||
|
${m.node.params} specified in ${m.node.source.input.file}`)}return a.forEach(f=>{f.type==="charset"?l(f):f.type==="import"?f.children?f.children.forEach((p,h)=>{p.type==="import"?d.push(p):p.type==="charset"?l(p):s.push(p),h===0&&(p.parent=f)}):d.push(f):f.type==="nodes"&&s.push(f)}),m?[m,...d.concat(s)]:d.concat(s)}async function $B(e,t,n,i,o){var l,f;if(Xw.isValid(t.uri)){t.children=await Jw(e,t,t.uri,n,i,o);return}else if(Xw.isValid(t.from.slice(-1)))throw t.node.error(`Unable to import '${t.uri}' from a stylesheet that is embedded in a data url`);let r=t.node,u;(f=(l=r.source)==null?void 0:l.input)!=null&&f.file&&(u=r.source.input.file);let a=u?Hw.dirname(r.source.input.file):n.root,m=[await n.resolve(t.uri,a,n,r)].flat(),d=await Promise.all(m.map(p=>Hw.isAbsolute(p)?p:BB(p,a,n,r)));d.forEach(p=>{e.messages.push({type:"dependency",plugin:"postcss-import",file:p,parent:u})});let s=await Promise.all(d.map(p=>Jw(e,t,p,n,i,o)));t.children=s.flat().filter(p=>!!p)}async function Jw(e,t,n,i,o,r){var p,h;let u=t.node,{conditions:a,from:m}=t,d=a.map(y=>UB(y.layer,y.media,y.supports)).join(":");if(i.skipDuplicates){if((p=o.importedFiles[n])!=null&&p[d])return;o.importedFiles[n]||(o.importedFiles[n]={}),o.importedFiles[n][d]=!0}if(m.includes(n))return;let s=await i.load(n,i);if(s.trim()===""&&i.warnOnEmpty){e.warn(`${n} is empty`,{node:u});return}if(i.skipDuplicates&&((h=o.hashFiles[s])!=null&&h[d]))return;let l=await RB(e,s,n,i,r),f=l.root;return e.messages=e.messages.concat(l.messages),i.skipDuplicates&&(f.some(b=>b.type==="atrule"&&b.name==="import")||(o.hashFiles[s]||(o.hashFiles[s]={}),o.hashFiles[s][d]=!0)),Yw(e,f,i,o,a,[...m,n],r)}function VB(e){if(/^(?:[a-z]+:)?\/\//i.test(e))return!1;try{let t=new URL(e,"https://example.com");if(t.hash||t.search)return!1}catch{}return!0}Qw.exports=Yw});var nC=me((UZ,rC)=>{"use strict";var eC=yt("path"),qB=L_(),WB=R_(),KB=U_(),zB=J_(),GB=Zw(),HB=my();function tC(e){return e={root:process.cwd(),path:[],skipDuplicates:!0,resolve:HB,load:zB,plugins:[],addModulesDirectories:[],warnOnEmpty:!0,...e},e.root=eC.resolve(e.root),typeof e.path=="string"&&(e.path=[e.path]),Array.isArray(e.path)||(e.path=[]),e.path=e.path.map(t=>eC.resolve(e.root,t)),{postcssPlugin:"postcss-import",async Once(t,{result:n,atRule:i,postcss:o}){var a,m;let r={importedFiles:{},hashFiles:{}};if((m=(a=t.source)==null?void 0:a.input)!=null&&m.file&&(r.importedFiles[t.source.input.file]={}),e.plugins&&!Array.isArray(e.plugins))throw new Error("plugins option must be an array");let u=await GB(n,t,e,r,[],[],o);WB(u),qB(u,i),KB(u,t)}}}tC.postcss=!0;rC.exports=tC});var pd=me((cd,iC)=>{"use strict";cd.__esModule=!0;cd.default=YB;function XB(e){for(var t=e.toLowerCase(),n="",i=!1,o=0;o<6&&t[o]!==void 0;o++){var r=t.charCodeAt(o),u=r>=97&&r<=102||r>=48&&r<=57;if(i=r===32,!u)break;n+=t[o]}if(n.length!==0){var a=parseInt(n,16),m=a>=55296&&a<=57343;return m||a===0||a>1114111?["\uFFFD",n.length+(i?1:0)]:[String.fromCodePoint(a),n.length+(i?1:0)]}}var JB=/\\/;function YB(e){var t=JB.test(e);if(!t)return e;for(var n="",i=0;i<e.length;i++){if(e[i]==="\\"){var o=XB(e.slice(i+1,i+7));if(o!==void 0){n+=o[0],i+=o[1];continue}if(e[i+1]==="\\"){n+="\\",i++;continue}e.length===i+1&&(n+=e[i]);continue}n+=e[i]}return n}iC.exports=cd.default});var aC=me((dd,sC)=>{"use strict";dd.__esModule=!0;dd.default=QB;function QB(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];for(;n.length>0;){var o=n.shift();if(!e[o])return;e=e[o]}return e}sC.exports=dd.default});var lC=me((fd,oC)=>{"use strict";fd.__esModule=!0;fd.default=ZB;function ZB(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];for(;n.length>0;){var o=n.shift();e[o]||(e[o]={}),e=e[o]}}oC.exports=fd.default});var cC=me((hd,uC)=>{"use strict";hd.__esModule=!0;hd.default=e3;function e3(e){for(var t="",n=e.indexOf("/*"),i=0;n>=0;){t=t+e.slice(i,n);var o=e.indexOf("*/",n+2);if(o<0)return t;i=o+2,n=e.indexOf("/*",i)}return t=t+e.slice(i),t}uC.exports=hd.default});var pu=me(is=>{"use strict";is.__esModule=!0;is.unesc=is.stripCommen
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _3(e,t){if(e){if(typeof e=="string")return hC(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 hC(e,t)}}function hC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function mC(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function w3(e,t,n){return t&&mC(e.prototype,t),n&&mC(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function C3(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,yy(e,t)}function yy(e,t){return yy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,o){return i.__proto__=o,i},yy(e,t)}var A3=function(e){C3(t,e);function t(i){var o;return o=e.call(this,i)||this,o.nodes||(o.nodes=[]),o}var n=t.prototype;return n.append=function(o){return o.parent=this,this.nodes.push(o),this},n.prepend=function(o){return o.parent=this,this.nodes.unshift(o),this},n.at=function(o){return this.nodes[o]},n.index=function(o){return typeof o=="number"?o:this.nodes.indexOf(o)},n.removeChild=function(o){o=this.index(o),this.at(o).parent=void 0,this.nodes.splice(o,1);var r;for(var u in this.indexes)r=this.indexes[u],r>=o&&(this.indexes[u]=r-1);return this},n.removeAll=function(){for(var o=x3(this.nodes),r;!(r=o()).done;){var u=r.value;u.parent=void 0}return this.nodes=[],this},n.empty=function(){return this.removeAll()},n.insertAfter=function(o,r){r.parent=this;var u=this.index(o);this.nodes.splice(u+1,0,r),r.parent=this;var a;for(var m in this.indexes)a=this.indexes[m],u<=a&&(this.indexes[m]=a+1);return this},n.insertBefore=function(o,r){r.parent=this;var u=this.index(o);this.nodes.splice(u,0,r),r.parent=this;var a;for(var m in this.indexes)a=this.indexes[m],a<=u&&(this.indexes[m]=a+1);return this},n._findChildAtPosition=function(o,r){var u=void 0;return this.each(function(a){if(a.atPosition){var m=a.atPosition(o,r);if(m)return u=m,!1}else if(a.isAtPosition(o,r))return u=a,!1}),u},n.atPosition=function(o,r){if(this.isAtPosition(o,r))return this._findChildAtPosition(o,r)||this},n._inferEndPosition=function(){this.last&&this.last.source&&this.last.source.end&&(this.source=this.source||{},this.source.end=this.source.end||{},Object.assign(this.source.end,this.last.source.end))},n.each=function(o){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var r=this.lastEach;if(this.indexes[r]=0,!!this.length){for(var u,a;this.indexes[r]<this.length&&(u=this.indexes[r],a=o(this.at(u),u),a!==!1);)this.indexes[r]+=1;if(delete this.indexes[r],a===!1)return!1}},n.walk=function(o){return this.each(function(r,u){var a=o(r,u);if(a!==!1&&r.length&&(a=r.walk(o)),a===!1)return!1})},n.walkAttributes=function(o){var r=this;return this.walk(function(u){if(u.type===Cs.ATTRIBUTE)return o.call(r,u)})},n.walkClasses=function(o){var r=this;return this.walk(function(u){if(u.type===Cs.CLASS)return o.call(r,u)})},n.walkCombinators=function(o){var r=this;return this.walk(function(u){if(u.type===Cs.COMBINATOR)return o.call(r,u)})},n.walkComments=function(o){var r=this;return this.walk(function(u){if(u.type===Cs.COMMENT)return o.call(r,u)})},n.walkIds=function(o){var r=this;return this.walk(function(u){if(u.type===Cs.ID)return o.call(r,u)})},n.walkNesting=function(o){var r=this;return this.walk(function(u){if(u.type===Cs.NESTING)return o.call(r,u)})},n.walkPseudos=function(o){var r=this;return this.walk(function(u){if(u.type===Cs.PSEUDO)return o.call(r,u)})},n.walkTags=function(o){var r=this;return this.walk(function(u){if(u.type===Cs.TAG)return o.call(r,u)})},n.walkUniversals=function(o){var r=this;return this.walk(function(u){if(u.type===Cs.UNIVERSAL)return o.call(r,u)})},n.split=function(o){var r=this,u=[];return this.reduce(function(a,m,d){var s=o.call(r,m);return u.pu
|
||
|
`),y=b.length-1,y>0?(v=u+y,S=E-b[y].length):(v=u,S=r),A=vt.comment,u=v,f=v,l=E-S):d===vt.slash?(E=a,A=d,f=u,l=a-r,m=E+1):(E=F4(n,a),A=vt.word,f=u,l=E-r),m=E+1;break}t.push([A,u,a-r,f,l,a,m]),S&&(r=S,S=null),a=m}return t}});var ZC=me((Du,QC)=>{"use strict";Du.__esModule=!0;Du.default=void 0;var R4=xi(gy()),Xy=xi(Ty()),B4=xi(xy()),zC=xi(wy()),U4=xi(Ay()),$4=xi(Dy()),Jy=xi(Oy()),V4=xi(Fy()),GC=Sd(Uy()),q4=xi(Vy()),Yy=xi(Wy()),W4=xi(zy()),K4=xi($C()),mt=Sd(KC()),wt=Sd(Gy()),z4=Sd(Fn()),Jr=pu(),La,Qy;function YC(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(YC=function(o){return o?n:t})(e)}function Sd(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=YC(t);if(n&&n.has(e))return n.get(e);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)){var u=o?Object.getOwnPropertyDescriptor(e,r):null;u&&(u.get||u.set)?Object.defineProperty(i,r,u):i[r]=e[r]}return i.default=e,n&&n.set(e,i),i}function xi(e){return e&&e.__esModule?e:{default:e}}function HC(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function G4(e,t,n){return t&&HC(e.prototype,t),n&&HC(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var t1=(La={},La[wt.space]=!0,La[wt.cr]=!0,La[wt.feed]=!0,La[wt.newline]=!0,La[wt.tab]=!0,La),H4=Object.assign({},t1,(Qy={},Qy[wt.comment]=!0,Qy));function XC(e){return{line:e[mt.FIELDS.START_LINE],column:e[mt.FIELDS.START_COL]}}function JC(e){return{line:e[mt.FIELDS.END_LINE],column:e[mt.FIELDS.END_COL]}}function Ma(e,t,n,i){return{start:{line:e,column:t},end:{line:n,column:i}}}function ko(e){return Ma(e[mt.FIELDS.START_LINE],e[mt.FIELDS.START_COL],e[mt.FIELDS.END_LINE],e[mt.FIELDS.END_COL])}function Zy(e,t){if(e)return Ma(e[mt.FIELDS.START_LINE],e[mt.FIELDS.START_COL],t[mt.FIELDS.END_LINE],t[mt.FIELDS.END_COL])}function Do(e,t){var n=e[t];if(typeof n=="string")return n.indexOf("\\")!==-1&&((0,Jr.ensureObject)(e,"raws"),e[t]=(0,Jr.unesc)(n),e.raws[t]===void 0&&(e.raws[t]=n)),e}function e1(e,t){for(var n=-1,i=[];(n=e.indexOf(t,n+1))!==-1;)i.push(n);return i}function X4(){var e=Array.prototype.concat.apply([],arguments);return e.filter(function(t,n){return n===e.indexOf(t)})}var J4=function(){function e(n,i){i===void 0&&(i={}),this.rule=n,this.options=Object.assign({lossy:!1,safe:!1},i),this.position=0,this.css=typeof this.rule=="string"?this.rule:this.rule.selector,this.tokens=(0,mt.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var o=Zy(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new R4.default({source:o}),this.root.errorGenerator=this._errorGenerator();var r=new Xy.default({source:{start:{line:1,column:1}}});this.root.append(r),this.current=r,this.loop()}var t=e.prototype;return t._errorGenerator=function(){var i=this;return function(o,r){return typeof i.rule=="string"?new Error(o):i.rule.error(o,r)}},t.attribute=function(){var i=[],o=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[mt.FIELDS.TYPE]!==wt.closeSquare;)i.push(this.currToken),this.position++;if(this.currToken[mt.FIELDS.TYPE]!==wt.closeSquare)return this.expected("closing square bracket",this.currToken[mt.FIELDS.START_POS]);var r=i.length,u={source:Ma(o[1],o[2],this.currToken[3],this.currToken[4]),sourceIndex:o[mt.FIELDS.START_POS]};if(r===1&&!~[wt.word].indexOf(i[0][mt.FIELDS.TYPE]))return this.expected("attribute",i[0][mt.FIELDS.START_POS]);for(var a=0,m="",d="",s=null,l=!1;a<r;){var f=i[a],p=this.content(f),h=i[a+1];switch(f[mt.FIELDS.TYPE]){case wt.space:if(l=!0,this.options.lossy)break;if(s){(0,Jr.ensureObject)(u,"spaces",s);var y=u.spaces[s].after||"";u.spaces[s].after=y+p;var b=(0,Jr.getProp)(u,"raws","spaces",s,"after")||null;b&&(u.raws.spaces[s].after=b+p)}else m=m+p,d=d+p;break;case wt.asterisk:if(h[mt.FIELDS.TYPE]===wt.equals)u.operator=p,s="operator";else if((!u.namespace||s==="namesp
|
||
|
`).slice(1,-1).map(j=>j.trim()).map(j=>` ${j}`).join(`
|
||
|
`)).join(`
|
||
|
|
||
|
`);x.push(` Use \`${e.replace("[",`[${D}:`)}\` for \`${L.trim()}\``);break}T$.default.warn([`The class \`${e}\` is ambiguous and matches multiple utilities.`,...x,`If this is content and not a class, replace it with \`${e.replace("[","[").replace("]","]")}\` to silence this warning.`]);continue}}f=f.map(E=>E.filter(v=>uk(v[1])))}f=f.flat(),f=Array.from(M$(f,i)),f=P$(f,t),r&&(f=k$(f,i));for(let E of o)f=D$(E,f,t);for(let E of f)E[1].raws.tailwind={...E[1].raws.tailwind,candidate:e},E=R$(E,{context:t,candidate:e}),E!==null&&(yield E)}}function R$(e,{context:t,candidate:n}){if(!e[0].collectedFormats)return e;let i=!0,o;try{o=(0,jb.formatVariantSelector)(e[0].collectedFormats,{context:t,candidate:n})}catch{return null}let r=Lo.default.root({nodes:[e[1].clone()]});return r.walkRules(u=>{if(!$d(u))try{let a=(0,jb.finalizeSelector)(u.selector,o,{candidate:n,context:t});if(a===null){u.remove();return}u.selector=a}catch{return i=!1,!1}}),!i||r.nodes.length===0?null:(e[1]=r.nodes[0],e)}function $d(e){return e.parent&&e.parent.type==="atrule"&&e.parent.name==="keyframes"}function B$(e){if(e===!0)return t=>{$d(t)||t.walkDecls(n=>{n.parent.type==="rule"&&!$d(n.parent)&&(n.important=!0)})};if(typeof e=="string")return t=>{$d(t)||(t.selectors=t.selectors.map(n=>(0,_$.applyImportantSelector)(n,e)))}}function U$(e,t,n=!1){let i=[],o=B$(t.tailwindConfig.important);for(let u of e){if(t.notClassCache.has(u))continue;if(t.candidateRuleCache.has(u)){i=i.concat(Array.from(t.candidateRuleCache.get(u)));continue}let a=Array.from(mk(u,t));if(a.length===0){t.notClassCache.add(u);continue}t.classCache.set(u,a);var r;let m=(r=t.candidateRuleCache.get(u))!==null&&r!==void 0?r:new Set;t.candidateRuleCache.set(u,m);for(let d of a){let[{sort:s,options:l},f]=d;if(l.respectImportant&&o){let h=Lo.default.root({nodes:[f.clone()]});h.walkRules(o),f=h.nodes[0]}let p=[s,n?f.clone():f];m.add(p),t.ruleCache.add(p),i.push(p)}}return i}function Rb(e){return e.startsWith("[")&&e.endsWith("]")}});var bk=me((Kee,yk)=>{(()=>{var e={"./node_modules/.pnpm/create-require@1.1.1/node_modules/create-require/create-require.js":(o,r,u)=>{let a=u("module"),m=u("path"),d=u("fs");o.exports=function(s){return s||(s=process.cwd()),function(l){try{return d.lstatSync(l).isDirectory()}catch{return!1}}(s)&&(s=m.join(s,"index.js")),a.createRequire?a.createRequire(s):a.createRequireFromPath?a.createRequireFromPath(s):function(l){let f=new a.Module(l,null);return f.filename=l,f.paths=a.Module._nodeModulePaths(m.dirname(l)),f._compile("module.exports = require;",l),f.exports}(s)}},"./node_modules/.pnpm/lru-cache@6.0.0/node_modules/lru-cache/index.js":(o,r,u)=>{"use strict";let a=u("./node_modules/.pnpm/yallist@4.0.0/node_modules/yallist/yallist.js"),m=Symbol("max"),d=Symbol("length"),s=Symbol("lengthCalculator"),l=Symbol("allowStale"),f=Symbol("maxAge"),p=Symbol("dispose"),h=Symbol("noDisposeOnSet"),y=Symbol("lruList"),b=Symbol("cache"),E=Symbol("updateAgeOnGet"),v=()=>1,S=(D,L,I)=>{let j=D[b].get(L);if(j){let M=j.value;if(w(D,M)){if(x(D,j),!D[l])return}else I&&(D[E]&&(j.value.now=Date.now()),D[y].unshiftNode(j));return M.value}},w=(D,L)=>{if(!L||!L.maxAge&&!D[f])return!1;let I=Date.now()-L.now;return L.maxAge?I>L.maxAge:D[f]&&I>D[f]},A=D=>{if(D[d]>D[m])for(let L=D[y].tail;D[d]>D[m]&&L!==null;){let I=L.prev;x(D,L),L=I}},x=(D,L)=>{if(L){let I=L.value;D[p]&&D[p](I.key,I.value),D[d]-=I.length,D[b].delete(I.key),D[y].removeNode(L)}};class C{constructor(L,I,j,M,R){this.key=L,this.value=I,this.length=j,this.now=M,this.maxAge=R||0}}let P=(D,L,I,j)=>{let M=I.value;w(D,M)&&(x(D,I),D[l]||(M=void 0)),M&&L.call(j,M.value,M.key,D)};o.exports=class{constructor(D){if(typeof D=="number"&&(D={max:D}),D||(D={}),D.max&&(typeof D.max!="number"||D.max<0))throw new TypeError("max must be a non-negative number");this[m]=D.max||1/0;let L=D.length||v;if(this[s]=typeof L!="function"?v:L,this[l]=D.stale||!1,D.maxAge&&typeof D.maxAge!="number")throw new TypeError("maxAge must be a number");this[f]=D.maxAge||0,this[p]=D.dispose,this[h]=D.noDisposeOnSet||!1,this[E]=D.updateAgeOnGet||!1,this.reset()}set max
|
||
|
(see https://github.com/puleos/object-hash/issues/26)
|
||
|
Use "options.replacer" or "options.ignoreUnknown"
|
||
|
`)},_domwindow:function(){return v("domwindow")},_bigint:function(S){return v("bigint:"+S.toString())},_process:function(){return v("process")},_timer:function(){return v("timer")},_pipe:function(){return v("pipe")},_tcp:function(){return v("tcp")},_udp:function(){return v("udp")},_tty:function(){return v("tty")},_statwatcher:function(){return v("statwatcher")},_securecontext:function(){return v("securecontext")},_connection:function(){return v("connection")},_zlib:function(){return v("zlib")},_context:function(){return v("context")},_nodescript:function(){return v("nodescript")},_httpparser:function(){return v("httpparser")},_dataview:function(){return v("dataview")},_signal:function(){return v("signal")},_fsevent:function(){return v("fsevent")},_tlswrap:function(){return v("tlswrap")}}}function h(){return{buf:"",write:function(y){this.buf+=y},end:function(y){this.buf+=y},read:function(){return this.buf}}}r.writeToStream=function(y,b,E){return E===void 0&&(E=b,b={}),p(b=l(y,b),E).dispatch(y)}},"./node_modules/.pnpm/pirates@4.0.6/node_modules/pirates/lib/index.js":(o,r,u)=>{"use strict";o=u.nmd(o),Object.defineProperty(r,"__esModule",{value:!0}),r.addHook=function(p,h={}){let y=!1,b=[],E=[],v,S=l._extensions[".js"],w=h.matcher||null,A=h.ignoreNodeModules!==!1;return v=h.extensions||h.exts||h.extension||h.ext||[".js"],Array.isArray(v)||(v=[v]),v.forEach(x=>{if(typeof x!="string")throw new TypeError(`Invalid Extension: ${x}`);let C=l._extensions[x]||S;E[x]=l._extensions[x],b[x]=l._extensions[x]=function(P,D){let L;y||function(I,j,M,R){if(typeof I!="string"||j.indexOf(m.default.extname(I))===-1)return!1;let z=m.default.resolve(I);return R&&s.test(z)?!1:M&&typeof M=="function"?!!M(z):!0}(D,v,w,A)&&(L=P._compile,P._compile=function(I){P._compile=L;let j=p(I,D);if(typeof j!="string")throw new Error(f);return P._compile(j,D)}),C(P,D)}}),function(){y||(y=!0,v.forEach(x=>{l._extensions[x]===b[x]&&(E[x]?l._extensions[x]=E[x]:delete l._extensions[x])}))}};var a=d(u("module")),m=d(u("path"));function d(p){return p&&p.__esModule?p:{default:p}}let s=/^(?:.*[\\/])?node_modules(?:[\\/].*)?$/,l=o.constructor.length>1?o.constructor:a.default,f=`[Pirates] A hook returned a non-string, or nothing at all! This is a violation of intergalactic law!
|
||
|
--------------------
|
||
|
If you have no idea what this means or what Pirates is, let me explain: Pirates is a module that makes is easy to implement require hooks. One of the require hooks you're using uses it. One of these require hooks didn't return anything from it's handler, so we don't know what to do. You might want to debug this.`},"./node_modules/.pnpm/semver@7.5.4/node_modules/semver/classes/comparator.js":(o,r,u)=>{let a=Symbol("SemVer ANY");class m{static get ANY(){return a}constructor(E,v){if(v=d(v),E instanceof m){if(E.loose===!!v.loose)return E;E=E.value}E=E.trim().split(/\s+/).join(" "),p("comparator",E,v),this.options=v,this.loose=!!v.loose,this.parse(E),this.semver===a?this.value="":this.value=this.operator+this.semver.version,p("comp",this)}parse(E){let v=this.options.loose?s[l.COMPARATORLOOSE]:s[l.COMPARATOR],S=E.match(v);if(!S)throw new TypeError(`Invalid comparator: ${E}`);this.operator=S[1]!==void 0?S[1]:"",this.operator==="="&&(this.operator=""),S[2]?this.semver=new h(S[2],this.options.loose):this.semver=a}toString(){return this.value}test(E){if(p("Comparator.test",E,this.options.loose),this.semver===a||E===a)return!0;if(typeof E=="string")try{E=new h(E,this.options)}catch{return!1}return f(E,this.operator,this.semver,this.options)}intersects(E,v){if(!(E instanceof m))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""||new y(E.value,v).test(this.value):E.operator===""?E.value===""||new y(this.value,v).test(E.semver):(!(v=d(v)).includePrerelease||this.value!=="<0.0.0-0"&&E.value!=="<0.0.0-0")&&!(!v.includePrerelease&&(this.value.startsWith("<0.0.0")||E.value.startsWith("<0.0.0")))&&(!(!this.operator.startsWith(">")||!E.operator.startsWith(">"))||!(!this.operator.startsWith("<")||!E.operator.startsWith("<"))||!(this.semver.version!==E.semver.version||!this.operator.includes("=")||!E.operator.includes("="))||!!(f(this.semver,"<",E.semver,v)&&this.operator.startsWith(">")&&E.operator.startsWith("<"))||!!(f(this.semver,">",E.semver,v)&&this.operator.startsWith("<")&&E.operator.startsWith(">")))}}o.exports=m;let d=u("./node_modules/.pnpm/semver@7.5.4/node_modules/semver/internal/parse-options.js"),{safeRe:s,t:l}=u("./node_modules/.pnpm/semver@7.5.4/node_modules/semver/internal/re.js"),f=u("./node_modules/.pnpm/semver@7.5.4/node_modules/semver/functions/cmp.js"),p=u("./node_modules/.pnpm/semver@7.5.4/node_modules/semver/internal/debug.js"),h=u("./node_modules/.pnpm/semver@7.5.4/node_modules/semver/classes/semver.js"),y=u("./node_modules/.pnpm/semver@7.5.4/node_modules/semver/classes/range.js")},"./node_modules/.pnpm/semver@7.5.4/node_modules/semver/classes/range.js":(o,r,u)=>{class a{constructor(B,N){if(N=d(N),B instanceof a)return B.loose===!!N.loose&&B.includePrerelease===!!N.includePrerelease?B:new a(B.raw,N);if(B instanceof s)return this.raw=B.value,this.set=[[B]],this.format(),this;if(this.options=N,this.loose=!!N.loose,this.includePrerelease=!!N.includePrerelease,this.raw=B.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(X=>this.parseRange(X.trim())).filter(X=>X.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let X=this.set[0];if(this.set=this.set.filter(H=>!w(H[0])),this.set.length===0)this.set=[X];else if(this.set.length>1){for(let H of this.set)if(H.length===1&&A(H[0])){this.set=[H];break}}}this.format()}format(){return this.range=this.set.map(B=>B.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(B){let N=((this.options.includePrerelease&&v)|(this.options.loose&&S))+":"+B,X=m.get(N);if(X)return X;let H=this.options.loose,F=H?p[h.HYPHENRANGELOOSE]:p[h.HYPHENRANGE];B=B.replace(F,$(this.options.includePrerelease)),l("hyphen replace",B),B=B.replace(p[h.COMPARATORTRIM],y),l("comparator trim",B),B=B.replace(p[h.TILDETRIM],b),l("tilde trim",B),B=B.replace(p[h.CARETTRIM],E),l("caret trim",B);let W=B.split(" ").map(ue=>C(ue,this.options)).join(" ").split(/\s+/).map(ue=>Y(ue,this.options));H&&(W=W.filter(ue=>(l("loose invalid filter",ue,this.options),!!ue.match(p[h.COMPARATORLOOSE]))
|
||
|
Defaulting to 2020, but this will stop working in the future.`)),k.ecmaVersion=11):k.ecmaVersion>=2015&&(k.ecmaVersion-=2009),k.allowReserved==null&&(k.allowReserved=k.ecmaVersion<5),T&&T.allowHashBang!=null||(k.allowHashBang=k.ecmaVersion>=14),ve(k.onToken)){var Z=k.onToken;k.onToken=function(pe){return Z.push(pe)}}return ve(k.onComment)&&(k.onComment=function(pe,Se){return function(Pe,Le,Ge,ct,He,Ut){var Vt={type:Pe?"Block":"Line",value:Le,start:Ge,end:ct};pe.locations&&(Vt.loc=new Zt(this,He,Ut)),pe.ranges&&(Vt.range=[Ge,ct]),Se.push(Vt)}}(k,k.onComment)),k}function re(T,k){return 2|(T?4:0)|(k?8:0)}var ie=function(T,k,K){this.options=T=Ce(T),this.sourceFile=T.sourceFile,this.keywords=et(Q[T.ecmaVersion>=6?6:T.sourceType==="module"?"5module":5]);var Z="";T.allowReserved!==!0&&(Z=W[T.ecmaVersion>=6?6:T.ecmaVersion===5?5:3],T.sourceType==="module"&&(Z+=" await")),this.reservedWords=et(Z);var pe=(Z?Z+" ":"")+W.strict;this.reservedWordsStrict=et(pe),this.reservedWordsStrictBind=et(pe+" "+W.strictBind),this.input=String(k),this.containsEsc=!1,K?(this.pos=K,this.lineStart=this.input.lastIndexOf(`
|
||
|
`,K-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(De).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=J.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=T.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&T.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null,this.privateNameStack=[]},Ne={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};ie.prototype.parse=function(){var T=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(T)},Ne.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},Ne.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},Ne.inAsync.get=function(){return(4&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},Ne.canAwait.get=function(){for(var T=this.scopeStack.length-1;T>=0;T--){var k=this.scopeStack[T];if(k.inClassFieldInit||256&k.flags)return!1;if(2&k.flags)return(4&k.flags)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},Ne.allowSuper.get=function(){var T=this.currentThisScope(),k=T.flags,K=T.inClassFieldInit;return(64&k)>0||K||this.options.allowSuperOutsideMethod},Ne.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},Ne.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Ne.allowNewDotTarget.get=function(){var T=this.currentThisScope(),k=T.flags,K=T.inClassFieldInit;return(258&k)>0||K},Ne.inClassStaticBlock.get=function(){return(256&this.currentVarScope().flags)>0},ie.extend=function(){for(var T=[],k=arguments.length;k--;)T[k]=arguments[k];for(var K=this,Z=0;Z<T.length;Z++)K=T[Z](K);return K},ie.parse=function(T,k){return new this(k,T).parse()},ie.parseExpressionAt=function(T,k,K){var Z=new this(K,T,k);return Z.nextToken(),Z.parseExpression()},ie.tokenizer=function(T,k){return new this(k,T)},Object.defineProperties(ie.prototype,Ne);var Be=ie.prototype,rt=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;Be.strictDirective=function(T){if(this.options.ecmaVersion<5)return!1;for(;;){dt.lastIndex=T,T+=dt.exec(this.input)[0].length;var k=rt.exec(this.input.slice(T));if(!k)return!1;if((k[1]||k[2])==="use strict"){dt.lastIndex=T+k[0].length;var K=dt.exec(this.input),Z=K.index+K[0].length,pe=this.input.charAt(Z);return pe===";"||pe==="}"||De.test(K[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(pe)||pe==="!"&&this.input.charAt(Z+1)==="=")}T+=k[0].length,dt.lastIndex=T,T+=dt.exec(this.input)[0].length,this.input[T]===";"&&T++}},Be.eat=function(T){return this.type===T&&(this.next(),!0)},Be.isContextual=function(T){return this.type===J.name&&this.value===T&&!this.containsEsc},Be.eatContextual=function(T){return!!this.isContextual(T)&&(this.next(),!0)},Be.expectContextual=function(T){this.eatContextual(T)||this.unexpected()},Be.canInsertSemicolon=function(){return this.type===J.eof||this.type===J.braceR||De.test(this.input.slice(this.lastTokEnd,this.start))},Be.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},Be.semicolon=function(){this.eat(J.semi)||this.insertSemicolon()||this.unexpected()},Be.afterTrailingComma=function(T,k){if(this.type===T)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.las
|
||
|
`),cooked:this.value},this.next(),K.tail=this.type===J.backQuote,this.finishNode(K,"TemplateElement")},Lt.parseTemplate=function(T){T===void 0&&(T={});var k=T.isTagged;k===void 0&&(k=!1);var K=this.startNode();this.next(),K.expressions=[];var Z=this.parseTemplateElement({isTagged:k});for(K.quasis=[Z];!Z.tail;)this.type===J.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(J.dollarBraceL),K.expressions.push(this.parseExpression()),this.expect(J.braceR),K.quasis.push(Z=this.parseTemplateElement({isTagged:k}));return this.next(),this.finishNode(K,"TemplateLiteral")},Lt.isAsyncProp=function(T){return!T.computed&&T.key.type==="Identifier"&&T.key.name==="async"&&(this.type===J.name||this.type===J.num||this.type===J.string||this.type===J.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===J.star)&&!De.test(this.input.slice(this.lastTokEnd,this.start))},Lt.parseObj=function(T,k){var K=this.startNode(),Z=!0,pe={};for(K.properties=[],this.next();!this.eat(J.braceR);){if(Z)Z=!1;else if(this.expect(J.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(J.braceR))break;var Se=this.parseProperty(T,k);T||this.checkPropClash(Se,pe,k),K.properties.push(Se)}return this.finishNode(K,T?"ObjectPattern":"ObjectExpression")},Lt.parseProperty=function(T,k){var K,Z,pe,Se,Pe=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(J.ellipsis))return T?(Pe.argument=this.parseIdent(!1),this.type===J.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(Pe,"RestElement")):(Pe.argument=this.parseMaybeAssign(!1,k),this.type===J.comma&&k&&k.trailingComma<0&&(k.trailingComma=this.start),this.finishNode(Pe,"SpreadElement"));this.options.ecmaVersion>=6&&(Pe.method=!1,Pe.shorthand=!1,(T||k)&&(pe=this.start,Se=this.startLoc),T||(K=this.eat(J.star)));var Le=this.containsEsc;return this.parsePropertyName(Pe),!T&&!Le&&this.options.ecmaVersion>=8&&!K&&this.isAsyncProp(Pe)?(Z=!0,K=this.options.ecmaVersion>=9&&this.eat(J.star),this.parsePropertyName(Pe)):Z=!1,this.parsePropertyValue(Pe,T,K,Z,pe,Se,k,Le),this.finishNode(Pe,"Property")},Lt.parseGetterSetter=function(T){T.kind=T.key.name,this.parsePropertyName(T),T.value=this.parseMethod(!1);var k=T.kind==="get"?0:1;if(T.value.params.length!==k){var K=T.value.start;T.kind==="get"?this.raiseRecoverable(K,"getter should have no params"):this.raiseRecoverable(K,"setter should have exactly one param")}else T.kind==="set"&&T.value.params[0].type==="RestElement"&&this.raiseRecoverable(T.value.params[0].start,"Setter cannot use rest params")},Lt.parsePropertyValue=function(T,k,K,Z,pe,Se,Pe,Le){(K||Z)&&this.type===J.colon&&this.unexpected(),this.eat(J.colon)?(T.value=k?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,Pe),T.kind="init"):this.options.ecmaVersion>=6&&this.type===J.parenL?(k&&this.unexpected(),T.kind="init",T.method=!0,T.value=this.parseMethod(K,Z)):k||Le||!(this.options.ecmaVersion>=5)||T.computed||T.key.type!=="Identifier"||T.key.name!=="get"&&T.key.name!=="set"||this.type===J.comma||this.type===J.braceR||this.type===J.eq?this.options.ecmaVersion>=6&&!T.computed&&T.key.type==="Identifier"?((K||Z)&&this.unexpected(),this.checkUnreserved(T.key),T.key.name!=="await"||this.awaitIdentPos||(this.awaitIdentPos=pe),T.kind="init",k?T.value=this.parseMaybeDefault(pe,Se,this.copyNode(T.key)):this.type===J.eq&&Pe?(Pe.shorthandAssign<0&&(Pe.shorthandAssign=this.start),T.value=this.parseMaybeDefault(pe,Se,this.copyNode(T.key))):T.value=this.copyNode(T.key),T.shorthand=!0):this.unexpected():((K||Z)&&this.unexpected(),this.parseGetterSetter(T))},Lt.parsePropertyName=function(T){if(this.options.ecmaVersion>=6){if(this.eat(J.bracketL))return T.computed=!0,T.key=this.parseMaybeAssign(),this.expect(J.bracketR),T.key;T.computed=!1}return T.key=this.type===J.num||this.type===J.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},Lt.initFunction=function(T){T.id=null,this.options.ecmaVersion>=6&&(T.generator=T.expression=!1),this.options.ecmaVersion>=8&&(T.async=!1)},Lt.parseMethod
|
||
|
`;break;default:T+=String.fromCharCode(K)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),k=this.pos}else++this.pos}},rr.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(J.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")},rr.readEscapedChar=function(T){var k=this.input.charCodeAt(++this.pos);switch(++this.pos,k){case 110:return`
|
||
|
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return ut(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),T){var K=this.pos-1;this.invalidStringToken(K,"Invalid escape sequence in template string")}default:if(k>=48&&k<=55){var Z=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],pe=parseInt(Z,8);return pe>255&&(Z=Z.slice(0,-1),pe=parseInt(Z,8)),this.pos+=Z.length-1,k=this.input.charCodeAt(this.pos),Z==="0"&&k!==56&&k!==57||!this.strict&&!T||this.invalidStringToken(this.pos-1-Z.length,T?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(pe)}return ke(k)?"":String.fromCharCode(k)}},rr.readHexChar=function(T){var k=this.pos,K=this.readInt(16,T);return K===null&&this.invalidStringToken(k,"Bad character escape sequence"),K},rr.readWord1=function(){this.containsEsc=!1;for(var T="",k=!0,K=this.pos,Z=this.options.ecmaVersion>=6;this.pos<this.input.length;){var pe=this.fullCharCodeAtPos();if(Me(pe,Z))this.pos+=pe<=65535?1:2;else{if(pe!==92)break;this.containsEsc=!0,T+=this.input.slice(K,this.pos);var Se=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var Pe=this.readCodePoint();(k?Oe:Me)(Pe,Z)||this.invalidStringToken(Se,"Invalid Unicode escape"),T+=ut(Pe),K=this.pos}k=!1}return T+this.input.slice(K,this.pos)},rr.readWord=function(){var T=this.readWord1(),k=J.name;return this.keywords.test(T)&&(k=Ee[T]),this.finishToken(k,T)},ie.acorn={Parser:ie,version:"8.10.0",defaultOptions:er,Position:zt,SourceLocation:Zt,getLineInfo:Ar,Node:Dn,TokenType:ae,tokTypes:J,keywordTypes:Ee,TokContext:mr,tokContexts:ar,isIdentifierChar:Me,isIdentifierStart:Oe,Token:ll,isNewLine:ke,lineBreak:De,lineBreakG:Ke,nonASCIIwhitespace:pt};let Ec=yt("module"),Yi=yt("fs"),jt=yt("url");String.fromCharCode;let Sc=/\/$|\/\?/;function xc(T="",k=!1){return k?Sc.test(T):T.endsWith("/")}function _c(T="",k=!1){if(!k)return T.endsWith("/")?T:T+"/";if(xc(T,!0))return T||"/";let[K,...Z]=T.split("?");return K+"/"+(Z.length>0?`?${Z.join("?")}`:"")}function un(T){return T&&T!=="/"}let bs=/^\.?\//;function wc(T,...k){let K=T||"";for(let Z of k.filter(pe=>un(pe)))if(K){let pe=Z.replace(bs,"");K=_c(K)+pe}else K=Z;return K}let Ni=yt("assert"),Us=yt("process"),Ta=yt("path"),Kf=yt("v8"),$s=yt("util"),Cc=new Set(Ec.builtinModules);function Ea(T){return T.replace(/\\/g,"/")}let zf=Us.platform==="win32",Gf={}.hasOwnProperty,cl=/^([A-Z][a-z\d]*)+$/,Hf=new Set(["string","function","number","object","Function","Object","boolean","bigint","symbol"]),_n={};function Ya(T,k="and"){return T.length<3?T.join(` ${k} `):`${T.slice(0,-1).join(", ")}, ${k} ${T[T.length-1]}`}let Vs=new Map,pl;function te(T,k,K){return Vs.set(T,k),function(Z,pe){return Se;function Se(...Pe){let Le=Error.stackTraceLimit;c()&&(Error.stackTraceLimit=0);let Ge=new Z;c()&&(Error.stackTraceLimit=Le);let ct=function(He,Ut,Vt){let yr=Vs.get(He);if(Ni(yr!==void 0,"expected `message` to be found"),typeof yr=="function")return Ni(yr.length<=Ut.length,`Code: ${He}; The provided arguments length (${Ut.length}) does not match the required ones (${yr.length}).`),Reflect.apply(yr,Vt,Ut);let Fr=/%[dfijoOs]/g,vn=0;for(;Fr.exec(yr)!==null;)vn++;return Ni(vn===Ut.length,`Code: ${He}; The provided arguments length (${Ut.length}) does not match the required ones (${vn}).`),Ut.length===0?yr:(Ut.unshift(yr),Reflect.apply($s.format,null,Ut))}(pe,Pe,Ge);return Object.defineProperties(Ge,{message:{value:ct,enumerable:!1,writable:!0,configurable:!0},toString:{value(){return`${this.name} [${pe}]: ${this.message}`},enumerable:!1,writable:!0,configurable:!0}}),g(Ge),Ge.code=pe,Ge}}(K,T)}function c(){try{if(Kf.startupSnapshot.isBuildingSnapshot())return!1}catch{}let T=Object.getOwnPropertyDescriptor(
|
||
|
Automatic extension resolution of the "main" field isdeprecated for ES modules.`,"DeprecationWarning","DEP0151"):Us.emitWarning(`No "main" or "exports" field defined in the package.json for ${Pe} resolving the main entry point "${Se.slice(Pe.length)}", imported from ${Le}.
|
||
|
Default "index" lookups for the main are deprecated for ES modules.`,"DeprecationWarning","DEP0151")}function kv(T){try{return(0,Yi.statSync)(T)}catch{return new Yi.Stats}}function Jf(T){let k=(0,Yi.statSync)(T,{throwIfNoEntry:!1}),K=k?k.isFile():void 0;return K!=null&&K}function LO(T,k,K){let Z;if(k.main!==void 0){if(Z=new jt.URL(k.main,T),Jf(Z))return Z;let Pe=[`./${k.main}.js`,`./${k.main}.json`,`./${k.main}.node`,`./${k.main}/index.js`,`./${k.main}/index.json`,`./${k.main}/index.node`],Le=-1;for(;++Le<Pe.length&&(Z=new jt.URL(Pe[Le],T),!Jf(Z));)Z=void 0;if(Z)return Pv(Z,T,K,k.main),Z}let pe=["./index.js","./index.json","./index.node"],Se=-1;for(;++Se<pe.length&&(Z=new jt.URL(pe[Se],T),!Jf(Z));)Z=void 0;if(Z)return Pv(Z,T,K,k.main),Z;throw new wn((0,jt.fileURLToPath)(new jt.URL(".",T)),(0,jt.fileURLToPath)(K))}function Yf(T,k,K){return new dl((0,jt.fileURLToPath)(new jt.URL(".",k)),T,K&&(0,jt.fileURLToPath)(K))}function fl(T,k,K,Z,pe){return k=typeof k=="object"&&k!==null?JSON.stringify(k,null,""):`${k}`,new Ir((0,jt.fileURLToPath)(new jt.URL(".",K)),T,k,Z,pe&&(0,jt.fileURLToPath)(pe))}function MO(T,k,K,Z,pe,Se,Pe,Le,Ge){if(k!==""&&!Se&&T[T.length-1]!=="/")throw fl(K,T,Z,Pe,pe);if(!T.startsWith("./")){if(Pe&&!T.startsWith("../")&&!T.startsWith("/")){let Vt=!1;try{new jt.URL(T),Vt=!0}catch{}if(!Vt)return Ov(Se?bt.call(Ac,T,()=>k):T+k,Z,Ge)}throw fl(K,T,Z,Pe,pe)}if(_v.exec(T.slice(2))!==null){if(wv.exec(T.slice(2))!==null)throw fl(K,T,Z,Pe,pe);if(!Le){let Vt=Se?K.replace("*",()=>k):K+k;Av(Se?bt.call(Ac,T,()=>k):T,Vt,K,Z,Pe,pe,!0)}}let ct=new jt.URL(T,Z),He=ct.pathname,Ut=new jt.URL(".",Z).pathname;if(!He.startsWith(Ut))throw fl(K,T,Z,Pe,pe);if(k==="")return ct;if(_v.exec(k)!==null){let Vt=Se?K.replace("*",()=>k):K+k;wv.exec(k)===null?Le||Av(Se?bt.call(Ac,T,()=>k):T,Vt,K,Z,Pe,pe,!1):function(yr,Fr,vn,In,en){let Sa=`request is not a valid match in pattern "${Fr}" for the "${In?"imports":"exports"}" resolution of ${(0,jt.fileURLToPath)(vn)}`;throw new Hr(yr,Sa,en&&(0,jt.fileURLToPath)(en))}(Vt,K,Z,Pe,pe)}return Se?new jt.URL(bt.call(Ac,ct.href,()=>k)):new jt.URL(k,ct)}function RO(T){let k=Number(T);return`${k}`===T&&k>=0&&k<4294967295}function Qa(T,k,K,Z,pe,Se,Pe,Le,Ge){if(typeof k=="string")return MO(k,K,Z,T,pe,Se,Pe,Le,Ge);if(Array.isArray(k)){let ct=k;if(ct.length===0)return null;let He,Ut=-1;for(;++Ut<ct.length;){let Vt=ct[Ut],yr;try{yr=Qa(T,Vt,K,Z,pe,Se,Pe,Le,Ge)}catch(Fr){if(He=Fr,Fr.code==="ERR_INVALID_PACKAGE_TARGET")continue;throw Fr}if(yr!==void 0){if(yr!==null)return yr;He=null}}if(He==null)return null;throw He}if(typeof k=="object"&&k!==null){let ct=Object.getOwnPropertyNames(k),He=-1;for(;++He<ct.length;)if(RO(ct[He]))throw new pr((0,jt.fileURLToPath)(T),pe,'"exports" cannot contain numeric property keys.');for(He=-1;++He<ct.length;){let Ut=ct[He];if(Ut==="default"||Ge&&Ge.has(Ut)){let Vt=Qa(T,k[Ut],K,Z,pe,Se,Pe,Le,Ge);if(Vt===void 0)continue;return Vt}}return null}if(k===null)return null;throw fl(Z,k,T,Pe,pe)}function BO(T,k,K){let Z=(0,jt.fileURLToPath)(k);Cv.has(Z+"|"+T)||(Cv.add(Z+"|"+T),Us.emitWarning(`Use of deprecated trailing slash pattern mapping "${T}" in the "exports" field module resolution of the package at ${Z}${K?` imported from ${(0,jt.fileURLToPath)(K)}`:""}. Mapping specifiers ending in "/" is no longer supported.`,"DeprecationWarning","DEP0155"))}function Dv(T,k,K,Z,pe){let Se=K.exports;if(function(He,Ut,Vt){if(typeof He=="string"||Array.isArray(He))return!0;if(typeof He!="object"||He===null)return!1;let yr=Object.getOwnPropertyNames(He),Fr=!1,vn=0,In=-1;for(;++In<yr.length;){let en=yr[In],Sa=en===""||en[0]!==".";if(vn++==0)Fr=Sa;else if(Fr!==Sa)throw new pr((0,jt.fileURLToPath)(Ut),Vt,`"exports" cannot contain some keys starting with '.' and some not. The exports object must either be an object of package subpath keys or an object of main entry condition name keys only.`)}return Fr}(Se,T,Z)&&(Se={".":Se}),xv.call(Se,k)&&!k.includes("*")&&!k.endsWith("/")){let He=Qa(T,Se[k],"",k,Z,!1,!1,!1,pe);if(He==null)throw Yf(k,T,Z);return He}let Pe="",Le="",Ge=Object.getOwnPropertyNames(Se),ct=-1;for(
|
||
|
${`${Hn}:${kc}:${$v}`}`);Error.captureStackTrace(Vv,en),k.onError(Vv)}return pn.loaded=!0,In(pn.exports)}return Fr.paths=He.resolve.paths,en.resolve=Fr,en.cache=k.requireCache?He.cache:{},en.extensions=He.extensions,en.main=He.main,en.transform=vn,en.register=function(){return(0,U.addHook)((Dt,or)=>en.transform({source:Dt,filename:or,ts:!!/\.[cm]?ts$/.test(or)}),{exts:k.extensions})},en.evalModule=Sa,en}})(),yk.exports=i.default})()});var vk=me((Gee,gk)=>{(()=>{var e={"./node_modules/.pnpm/@ampproject+remapping@2.2.1/node_modules/@ampproject/remapping/dist/remapping.umd.js":function(o,r,u){o.exports=function(a,m){"use strict";let d=l("",-1,-1,"",null),s=[];function l(x,C,P,D,L){return{source:x,line:C,column:P,name:D,content:L}}function f(x,C,P,D){return{map:x,sources:C,source:P,content:D}}function p(x,C){return f(x,C,"",null)}function h(x,C){return f(null,s,x,C)}function y(x){let C=new m.GenMapping({file:x.map.file}),{sources:P,map:D}=x,L=D.names,I=a.decodedMappings(D);for(let j=0;j<I.length;j++){let M=I[j];for(let R=0;R<M.length;R++){let z=M[R],Y=z[0],$=d;if(z.length!==1&&($=b(P[z[1]],z[2],z[3],z.length===5?L[z[4]]:""),$==null))continue;let{column:G,line:U,name:B,content:N,source:X}=$;m.maybeAddSegment(C,j,Y,X,U,G,B),X&&N!=null&&m.setSourceContent(C,X,N)}}return C}function b(x,C,P,D){if(!x.map)return l(x.source,C,P,D,x.content);let L=a.traceSegment(x.map,C,P);return L==null?null:L.length===1?d:b(x.sources[L[1]],L[2],L[3],L.length===5?x.map.names[L[4]]:D)}function E(x){return Array.isArray(x)?x:[x]}function v(x,C){let P=E(x).map(I=>new a.TraceMap(I,"")),D=P.pop();for(let I=0;I<P.length;I++)if(P[I].sources.length>1)throw new Error(`Transformation map ${I} must have exactly one source file.
|
||
|
Did you specify these with the most recent transformation maps first?`);let L=S(D,C,"",0);for(let I=P.length-1;I>=0;I--)L=p(P[I],[L]);return L}function S(x,C,P,D){let{resolvedSources:L,sourcesContent:I}=x,j=D+1;return p(x,L.map((M,R)=>{let z={importer:P,depth:j,source:M||"",content:void 0},Y=C(z.source,z),{source:$,content:G}=z;return Y?S(new a.TraceMap(Y,$),C,$,j):h($,G!==void 0?G:I?I[R]:null)}))}class w{constructor(C,P){let D=P.decodedMappings?m.toDecodedMap(C):m.toEncodedMap(C);this.version=D.version,this.file=D.file,this.mappings=D.mappings,this.names=D.names,this.sourceRoot=D.sourceRoot,this.sources=D.sources,P.excludeContent||(this.sourcesContent=D.sourcesContent)}toString(){return JSON.stringify(this)}}function A(x,C,P){let D=typeof P=="object"?P:{excludeContent:!!P,decodedMappings:!1},L=v(x,C);return new w(y(L),D)}return A}(u("./node_modules/.pnpm/@jridgewell+trace-mapping@0.3.19/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js"),u("./node_modules/.pnpm/@jridgewell+gen-mapping@0.3.3/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js"))},"./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/files lazy recursive":o=>{function r(u){return Promise.resolve().then(()=>{var a=new Error("Cannot find module '"+u+"'");throw a.code="MODULE_NOT_FOUND",a})}r.keys=()=>[],r.resolve=r,r.id="./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/files lazy recursive",o.exports=r},"./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/files sync recursive":o=>{function r(u){var a=new Error("Cannot find module '"+u+"'");throw a.code="MODULE_NOT_FOUND",a}r.keys=()=>[],r.resolve=r,r.id="./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/files sync recursive",o.exports=r},"./node_modules/.pnpm/@babel+plugin-syntax-class-properties@7.12.13_@babel+core@7.22.15/node_modules/@babel/plugin-syntax-class-properties/lib/index.js":(o,r,u)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var a=(0,u("./node_modules/.pnpm/@babel+helper-plugin-utils@7.22.5/node_modules/@babel/helper-plugin-utils/lib/index.js").declare)(m=>(m.assertVersion(7),{name:"syntax-class-properties",manipulateOptions(d,s){s.plugins.push("classProperties","classPrivateProperties","classPrivateMethods")}}));r.default=a},"./node_modules/.pnpm/@babel+plugin-syntax-export-namespace-from@7.8.3_@babel+core@7.22.15/node_modules/@babel/plugin-syntax-export-namespace-from/lib/index.js":(o,r,u)=>{"use strict";r.Z=void 0;var a=(0,u("./node_modules/.pnpm/@babel+helper-plugin-utils@7.22.5/node_modules/@babel/helper-plugin-utils/lib/index.js").declare)(m=>(m.assertVersion(7),{name:"syntax-export-namespace-from",manipulateOptions(d,s){s.plugins.push("exportNamespaceFrom")}}));r.Z=a},"./node_modules/.pnpm/@babel+plugin-syntax-nullish-coalescing-operator@7.8.3_@babel+core@7.22.15/node_modules/@babel/plugin-syntax-nullish-coalescing-operator/lib/index.js":(o,r,u)=>{"use strict";r.Z=void 0;var a=(0,u("./node_modules/.pnpm/@babel+helper-plugin-utils@7.22.5/node_modules/@babel/helper-plugin-utils/lib/index.js").declare)(m=>(m.assertVersion(7),{name:"syntax-nullish-coalescing-operator",manipulateOptions(d,s){s.plugins.push("nullishCoalescingOperator")}}));r.Z=a},"./node_modules/.pnpm/@babel+plugin-syntax-optional-chaining@7.8.3_@babel+core@7.22.15/node_modules/@babel/plugin-syntax-optional-chaining/lib/index.js":(o,r,u)=>{"use strict";r.Z=void 0;var a=(0,u("./node_modules/.pnpm/@babel+helper-plugin-utils@7.22.5/node_modules/@babel/helper-plugin-utils/lib/index.js").declare)(m=>(m.assertVersion(7),{name:"syntax-optional-chaining",manipulateOptions(d,s){s.plugins.push("optionalChaining")}}));r.Z=a},"./node_modules/.pnpm/@jridgewell+gen-mapping@0.3.3/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js":function(o,r,u){(function(a,m,d,s){"use strict";let E;a.addSegment=void 0,a.addMapping=void 0,a.maybeAddSegment=void 0,a.maybeAddMapping=void 0,a.setSourceContent=void 0,a.toDecodedMap=void 0,a.toEncodedMap=void 0,a.fromMap=void 0,a.allMappi
|
||
|
`+v)}}(l,f.commentFileDir)),f.hasComment&&(l=function(p){return p.split(",").pop()}(l)),f.isEncoded&&(l=a(l)),(f.isJSON||f.isEncoded)&&(l=JSON.parse(l)),this.sourcemap=l}Object.defineProperty(r,"commentRegex",{get:function(){return/^\s*\/(?:\/|\*)[@#]\s+sourceMappingURL=data:(?:application|text)\/json;(?:charset[:=]\S+?;)?base64,(?:.*)$/gm}}),Object.defineProperty(r,"mapFileCommentRegex",{get:function(){return/(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"`]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^\*]+?)[ \t]*(?:\*\/){1}[ \t]*$)/gm}}),a=typeof Buffer<"u"?typeof Buffer.from=="function"?function(l){return Buffer.from(l,"base64").toString()}:function(l){if(typeof value=="number")throw new TypeError("The value to decode must not be of type number.");return new Buffer(l,"base64").toString()}:function(l){return decodeURIComponent(escape(atob(l)))},s.prototype.toJSON=function(l){return JSON.stringify(this.sourcemap,null,l)},typeof Buffer<"u"?typeof Buffer.from=="function"?s.prototype.toBase64=function(){var l=this.toJSON();return Buffer.from(l,"utf8").toString("base64")}:s.prototype.toBase64=function(){var l=this.toJSON();if(typeof l=="number")throw new TypeError("The json to encode must not be of type number.");return new Buffer(l,"utf8").toString("base64")}:s.prototype.toBase64=function(){var l=this.toJSON();return btoa(unescape(encodeURIComponent(l)))},s.prototype.toComment=function(l){var f="sourceMappingURL=data:application/json;charset=utf-8;base64,"+this.toBase64();return l&&l.multiline?"/*# "+f+" */":"//# "+f},s.prototype.toObject=function(){return JSON.parse(this.toJSON())},s.prototype.addProperty=function(l,f){if(this.sourcemap.hasOwnProperty(l))throw new Error('property "'+l+'" already exists on the sourcemap, use set property instead');return this.setProperty(l,f)},s.prototype.setProperty=function(l,f){return this.sourcemap[l]=f,this},s.prototype.getProperty=function(l){return this.sourcemap[l]},r.fromObject=function(l){return new s(l)},r.fromJSON=function(l){return new s(l,{isJSON:!0})},r.fromBase64=function(l){return new s(l,{isEncoded:!0})},r.fromComment=function(l){return new s(l=l.replace(/^\/\*/g,"//").replace(/\*\/$/g,""),{isEncoded:!0,hasComment:!0})},r.fromMapFileComment=function(l,f){return new s(l,{commentFileDir:f,isFileComment:!0,isJSON:!0})},r.fromSource=function(l){var f=l.match(r.commentRegex);return f?r.fromComment(f.pop()):null},r.fromMapFileSource=function(l,f){var p=l.match(r.mapFileCommentRegex);return p?r.fromMapFileComment(p.pop(),f):null},r.removeComments=function(l){return l.replace(r.commentRegex,"")},r.removeMapFileComments=function(l){return l.replace(r.mapFileCommentRegex,"")},r.generateMapFileComment=function(l,f){var p="sourceMappingURL="+l;return f&&f.multiline?"/*# "+p+" */":"//# "+p}},"./node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/browser.js":(o,r,u)=>{r.formatArgs=function(m){if(m[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+m[0]+(this.useColors?"%c ":" ")+"+"+o.exports.humanize(this.diff),!this.useColors)return;let d="color: "+this.color;m.splice(1,0,d,"color: inherit");let s=0,l=0;m[0].replace(/%[a-zA-Z%]/g,f=>{f!=="%%"&&(s++,f==="%c"&&(l=s))}),m.splice(l,0,d)},r.save=function(m){try{m?r.storage.setItem("debug",m):r.storage.removeItem("debug")}catch{}},r.load=function(){let m;try{m=r.storage.getItem("debug")}catch{}return!m&&typeof process<"u"&&"env"in process&&(m=process.env.DEBUG),m},r.useColors=function(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.t
|
||
|
`)},r.formatArgs=function(s){let{namespace:l,useColors:f}=this;if(f){let p=this.color,h="\x1B[3"+(p<8?p:"8;5;"+p),y=` ${h};1m${l} \x1B[0m`;s[0]=y+s[0].split(`
|
||
|
`).join(`
|
||
|
`+y),s.push(h+"m+"+o.exports.humanize(this.diff)+"\x1B[0m")}else s[0]=function(){return r.inspectOpts.hideDate?"":new Date().toISOString()+" "}()+l+" "+s[0]},r.save=function(s){s?process.env.DEBUG=s:delete process.env.DEBUG},r.load=function(){return process.env.DEBUG},r.useColors=function(){return"colors"in r.inspectOpts?!!r.inspectOpts.colors:a.isatty(process.stderr.fd)},r.destroy=m.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),r.colors=[6,2,3,4,5,1];try{let s=u("./node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js");s&&(s.stderr||s).level>=2&&(r.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}r.inspectOpts=Object.keys(process.env).filter(s=>/^debug_/i.test(s)).reduce((s,l)=>{let f=l.substring(6).toLowerCase().replace(/_([a-z])/g,(h,y)=>y.toUpperCase()),p=process.env[l];return p=!!/^(yes|on|true|enabled)$/i.test(p)||!/^(no|off|false|disabled)$/i.test(p)&&(p==="null"?null:Number(p)),s[f]=p,s},{}),o.exports=u("./node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/common.js")(r);let{formatters:d}=o.exports;d.o=function(s){return this.inspectOpts.colors=this.useColors,m.inspect(s,this.inspectOpts).split(`
|
||
|
`).map(l=>l.trim()).join(" ")},d.O=function(s){return this.inspectOpts.colors=this.useColors,m.inspect(s,this.inspectOpts)}},"./node_modules/.pnpm/gensync@1.0.0-beta.2/node_modules/gensync/index.js":o=>{"use strict";let r=Symbol.for("gensync:v1:start"),u=Symbol.for("gensync:v1:suspend"),a="GENSYNC_EXPECTED_START",m="GENSYNC_EXPECTED_SUSPEND",d="GENSYNC_OPTIONS_ERROR";function s(S,w,A,x){if(typeof A===S||x&&A===void 0)return;let C;throw C=x?`Expected opts.${w} to be either a ${S}, or undefined.`:`Expected opts.${w} to be a ${S}.`,l(C,d)}function l(S,w){return Object.assign(new Error(S),{code:w})}function f({name:S,arity:w,sync:A,async:x}){return v(S,w,function*(...C){let P=yield r;if(!P)return A.call(this,C);let D;try{x.call(this,C,L=>{D||(D={value:L},P())},L=>{D||(D={err:L},P())})}catch(L){D={err:L},P()}if(yield u,D.hasOwnProperty("err"))throw D.err;return D.value})}function p(S){let w;for(;!({value:w}=S.next()).done;)y(w,S);return w}function h(S,w,A){(function x(){try{let C;for(;!({value:C}=S.next()).done;){y(C,S);let P=!0,D=!1,L=S.next(()=>{P?D=!0:x()});if(P=!1,b(L,S),!D)return}return w(C)}catch(C){return A(C)}})()}function y(S,w){S!==r&&E(w,l(`Got unexpected yielded value in gensync generator: ${JSON.stringify(S)}. Did you perhaps mean to use 'yield*' instead of 'yield'?`,a))}function b({value:S,done:w},A){(w||S!==u)&&E(A,l(w?"Unexpected generator completion. If you get this, it is probably a gensync bug.":`Expected GENSYNC_SUSPEND, got ${JSON.stringify(S)}. If you get this, it is probably a gensync bug.`,m))}function E(S,w){throw S.throw&&S.throw(w),w}function v(S,w,A){if(typeof S=="string"){let x=Object.getOwnPropertyDescriptor(A,"name");x&&!x.configurable||Object.defineProperty(A,"name",Object.assign(x||{},{configurable:!0,value:S}))}if(typeof w=="number"){let x=Object.getOwnPropertyDescriptor(A,"length");x&&!x.configurable||Object.defineProperty(A,"length",Object.assign(x||{},{configurable:!0,value:w}))}return A}o.exports=Object.assign(function(S){let w=S;return w=typeof S!="function"?function({name:A,arity:x,sync:C,async:P,errback:D}){if(s("string","name",A,!0),s("number","arity",x,!0),s("function","sync",C),s("function","async",P,!0),s("function","errback",D,!0),P&&D)throw l("Expected one of either opts.async or opts.errback, but got _both_.",d);if(typeof A!="string"){let L;D&&D.name&&D.name!=="errback"&&(L=D.name),P&&P.name&&P.name!=="async"&&(L=P.name.replace(/Async$/,"")),C&&C.name&&C.name!=="sync"&&(L=C.name.replace(/Sync$/,"")),typeof L=="string"&&(A=L)}return typeof x!="number"&&(x=C.length),f({name:A,arity:x,sync:function(L){return C.apply(this,L)},async:function(L,I,j){P?P.apply(this,L).then(I,j):D?D.call(this,...L,(M,R)=>{M==null?I(R):j(M)}):I(C.apply(this,L))}})}(S):function(A){return v(A.name,A.length,function(...x){return A.apply(this,x)})}(S),Object.assign(w,function(A){return{sync:function(...C){return p(A.apply(this,C))},async:function(...C){return new Promise((P,D)=>{h(A.apply(this,C),P,D)})},errback:function(...C){let P=C.pop();if(typeof P!="function")throw l("Asynchronous function called without callback","GENSYNC_ERRBACK_NO_CALLBACK");let D;try{D=A.apply(this,C)}catch(L){return void P(L)}h(D,L=>P(void 0,L),L=>P(L))}}}(w))},{all:f({name:"all",arity:1,sync:function(S){return Array.from(S[0]).map(w=>p(w))},async:function(S,w,A){let x=Array.from(S[0]);if(x.length===0)return void Promise.resolve().then(()=>w([]));let C=0,P=x.map(()=>{});x.forEach((D,L)=>{h(D,I=>{P[L]=I,C+=1,C===P.length&&w(P)},A)})}}),race:f({name:"race",arity:1,sync:function(S){let w=Array.from(S[0]);if(w.length===0)throw l("Must race at least 1 item","GENSYNC_RACE_NONEMPTY");return p(w[0])},async:function(S,w,A){let x=Array.from(S[0]);if(x.length===0)throw l("Must race at least 1 item","GENSYNC_RACE_NONEMPTY");for(let C of x)h(C,w,A)}})})},"./node_modules/.pnpm/globals@11.12.0/node_modules/globals/index.js":(o,r,u)=>{"use strict";o.exports=u("./node_modules/.pnpm/globals@11.12.0/node_modules/globals/globals.json")},"./node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js":o=>{"use strict";o.exports=(r,u=process.argv)=
|
||
|
`,z,Y=!0,$=E.numbers=="binary",G=E.numbers=="octal",U=E.numbers=="decimal",B=E.numbers=="hexadecimal";if(w&&b&&(F=>typeof F=="function")(b.toJSON)&&(b=b.toJSON()),!(F=>typeof F=="string"||m.call(F)=="[object String]")(b)){if((F=>m.call(F)=="[object Map]")(b))return b.size==0?"new Map()":(P||(E.__inline1__=!0,E.__inline2__=!1),"new Map("+y(Array.from(b),E)+")");if((F=>m.call(F)=="[object Set]")(b))return b.size==0?"new Set()":"new Set("+y(Array.from(b),E)+")";if(s(b))return b.length==0?"Buffer.from([])":"Buffer.from("+y(Array.from(b),E)+")";if(d(b))return z=[],E.wrap=!0,j&&(E.__inline1__=!1,E.__inline2__=!0),M||v(),((F,W)=>{let V=F.length,Q=-1;for(;++Q<V;)W(F[Q])})(b,F=>{Y=!1,M&&(E.__inline2__=!1),z.push((P||M?"":L)+y(F,E))}),Y?"[]":M?"["+z.join(", ")+"]":"["+R+z.join(","+R)+R+(P?"":I)+"]";if(!(F=>typeof F=="number"||m.call(F)=="[object Number]")(b))return(F=>m.call(F)=="[object Object]")(b)?(z=[],E.wrap=!0,v(),a(b,(F,W)=>{Y=!1,z.push((P?"":L)+y(F,E)+":"+(P?"":" ")+y(W,E))}),Y?"{}":"{"+R+z.join(","+R)+R+(P?"":I)+"}"):w?JSON.stringify(b)||"null":String(b);if(w)return JSON.stringify(b);if(U)return String(b);if(B){let F=b.toString(16);return D||(F=F.toUpperCase()),"0x"+F}if($)return"0b"+b.toString(2);if(G)return"0o"+b.toString(8)}let N=b,X=-1,H=N.length;for(z="";++X<H;){let F=N.charAt(X);if(E.es6){let ue=N.charCodeAt(X);if(ue>=55296&&ue<=56319&&H>X+1){let de=N.charCodeAt(X+1);if(de>=56320&&de<=57343){let Ae=(1024*(ue-55296)+de-56320+65536).toString(16);D||(Ae=Ae.toUpperCase()),z+="\\u{"+Ae+"}",++X;continue}}}if(!E.escapeEverything){if(h.test(F)){z+=F;continue}if(F=='"'){z+=C==F?'\\"':F;continue}if(F=="`"){z+=C==F?"\\`":F;continue}if(F=="'"){z+=C==F?"\\'":F;continue}}if(F=="\0"&&!w&&!p.test(N.charAt(X+1))){z+="\\0";continue}if(f.test(F)){z+=l[F];continue}let W=F.charCodeAt(0);if(E.minimal&&W!=8232&&W!=8233){z+=F;continue}let V=W.toString(16);D||(V=V.toUpperCase());let Q=V.length>2||w,ne="\\"+(Q?"u":"x")+("0000"+V).slice(Q?-4:-2);z+=ne}return E.wrap&&(z=C+z+C),C=="`"&&(z=z.replace(/\$\{/g,"\\${")),E.isScriptContext?z.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,w?"\\u003C!--":"\\x3C!--"):z};y.version="2.5.2",o.exports=y},"./node_modules/.pnpm/ms@2.1.2/node_modules/ms/index.js":o=>{var r=1e3,u=60*r,a=60*u,m=24*a,d=7*m,s=365.25*m;function l(f,p,h,y){var b=p>=1.5*h;return Math.round(f/h)+" "+y+(b?"s":"")}o.exports=function(f,p){p=p||{};var h=typeof f;if(h==="string"&&f.length>0)return function(y){if(!((y=String(y)).length>100)){var b=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(y);if(b){var E=parseFloat(b[1]);switch((b[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return E*s;case"weeks":case"week":case"w":return E*d;case"days":case"day":case"d":return E*m;case"hours":case"hour":case"hrs":case"hr":case"h":return E*a;case"minutes":case"minute":case"mins":case"min":case"m":return E*u;case"seconds":case"second":case"secs":case"sec":case"s":return E*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return E;default:return}}}}(f);if(h==="number"&&isFinite(f))return p.long?function(y){var b=Math.abs(y);return b>=m?l(y,b,m,"day"):b>=a?l(y,b,a,"hour"):b>=u?l(y,b,u,"minute"):b>=r?l(y,b,r,"second"):y+" ms"}(f):function(y){var b=Math.abs(y);return b>=m?Math.round(y/m)+"d":b>=a?Math.round(y/a)+"h":b>=u?Math.round(y/u)+"m":b>=r?Math.round(y/r)+"s":y+"ms"}(f);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(f))}},"./node_modules/.pnpm/semver@6.3.1/node_modules/semver/semver.js":(o,r)=>{var u;r=o.exports=w,u=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var F=Array.prototype.slice.call(arguments,0);F.unshift("SEMVER"),console.log.apply(console,F)}:function(){},r.SEMVER_SPEC_VERSION="2.0.0";var a=256,m=Number.MAX_SAFE_INTEGER||9007199254740991,d=a-6,s=r.re=[],l=r.safeRe=[],f=r.src=[],p=r.tokens={},h=0;function y(F){p[F]=h++}var b=[["\\s",1],["\\d",a],["[a-zA-Z0-9-]",d]];function E(F){for(v
|
||
|
`+[ye,be,J].filter(et=>!!et).join(`
|
||
|
|
||
|
`)+`
|
||
|
-----End Babel configs-----`);let ve=H(H(H(W(),pt),he),oe);return{plugins:xe?[]:Q(ve.plugins),presets:xe?[]:Q(ve.presets),options:xe?[]:ve.options.map(et=>V(et)),fileHandling:xe?"ignored":"transpile",ignore:Ue||void 0,babelrc:ce||void 0,config:De||void 0,files:ve.files}};var d=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/validation/options.js"),s=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/pattern-to-regex.js"),l=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/printer.js"),f=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/errors/rewrite-stack-trace.js"),p=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/errors/config-error.js"),h=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/files/index.js"),y=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/caching.js"),b=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/config-descriptors.js");let E=m()("babel:config:config-chain"),v=N({root:ae=>S(ae),env:(ae,se)=>w(ae)(se),overrides:(ae,se)=>A(ae)(se),overridesEnv:(ae,se,ye)=>x(ae)(se)(ye),createLogger:()=>()=>{}});r.buildPresetChainWalker=v;let S=(0,y.makeWeakCacheSync)(ae=>$(ae,ae.alias,b.createUncachedDescriptors)),w=(0,y.makeWeakCacheSync)(ae=>(0,y.makeStrongCacheSync)(se=>G(ae,ae.alias,b.createUncachedDescriptors,se))),A=(0,y.makeWeakCacheSync)(ae=>(0,y.makeStrongCacheSync)(se=>U(ae,ae.alias,b.createUncachedDescriptors,se))),x=(0,y.makeWeakCacheSync)(ae=>(0,y.makeStrongCacheSync)(se=>(0,y.makeStrongCacheSync)(ye=>B(ae,ae.alias,b.createUncachedDescriptors,se,ye)))),C=(0,y.makeWeakCacheSync)(ae=>({filepath:ae.filepath,dirname:ae.dirname,options:(0,d.validate)("configfile",ae.options,ae.filepath)})),P=(0,y.makeWeakCacheSync)(ae=>({filepath:ae.filepath,dirname:ae.dirname,options:(0,d.validate)("babelrcfile",ae.options,ae.filepath)})),D=(0,y.makeWeakCacheSync)(ae=>({filepath:ae.filepath,dirname:ae.dirname,options:(0,d.validate)("extendsfile",ae.options,ae.filepath)})),L=N({root:ae=>$(ae,"base",b.createCachedDescriptors),env:(ae,se)=>G(ae,"base",b.createCachedDescriptors,se),overrides:(ae,se)=>U(ae,"base",b.createCachedDescriptors,se),overridesEnv:(ae,se,ye)=>B(ae,"base",b.createCachedDescriptors,se,ye),createLogger:(ae,se,ye)=>function(be,Ee,oe){var J;return oe?oe.configure(Ee.showConfig,l.ChainFormatter.Programmatic,{callerName:(J=Ee.caller)==null?void 0:J.name}):()=>{}}(0,se,ye)}),I=N({root:ae=>M(ae),env:(ae,se)=>R(ae)(se),overrides:(ae,se)=>z(ae)(se),overridesEnv:(ae,se,ye)=>Y(ae)(se)(ye),createLogger:(ae,se,ye)=>function(be,Ee,oe){return oe?oe.configure(Ee.showConfig,l.ChainFormatter.Config,{filepath:be}):()=>{}}(ae.filepath,se,ye)});function*j(ae,se,ye,be){let Ee=yield*I(ae,se,ye,be);return Ee==null||Ee.files.add(ae.filepath),Ee}let M=(0,y.makeWeakCacheSync)(ae=>$(ae,ae.filepath,b.createUncachedDescriptors)),R=(0,y.makeWeakCacheSync)(ae=>(0,y.makeStrongCacheSync)(se=>G(ae,ae.filepath,b.createUncachedDescriptors,se))),z=(0,y.makeWeakCacheSync)(ae=>(0,y.makeStrongCacheSync)(se=>U(ae,ae.filepath,b.createUncachedDescriptors,se))),Y=(0,y.makeWeakCacheSync)(ae=>(0,y.makeStrongCacheSync)(se=>(0,y.makeStrongCacheSync)(ye=>B(ae,ae.filepath,b.createUncachedDescriptors,se,ye))));function $({dirname:ae,options:se},ye,be){return be(ae,se,ye)}function G({dirname:ae,options:se},ye,be,Ee){var oe;let J=(oe=se.env)==null?void 0:oe[Ee];return J?be(ae,J,`${ye}.env["${Ee}"]`):null}function U({dirname:ae,options:se},ye,be,Ee){var oe;let J=(oe=se.overrides)==null?void 0:oe[Ee];if(!J)throw new Error("Assertion failure - missing override");return be(ae,J,`${ye}.overrides[${Ee}]`)}function B({dirname:ae,options:se},ye,be,Ee,oe){var J,De;let Ke=(J=se.overrides)==null?void 0:J[Ee];if(!Ke)throw new Error("Assertion failure - missing override");let ke=(De=Ke.env)==null?void 0:De[oe];return ke?be(ae,ke,`${ye}.overrides[${Ee}].env["${oe}"]`):null}function N({root:ae,env:se,overrides:ye,overridesEnv:be,createLogger:Ee}
|
||
|
File already loaded following the config chain:
|
||
|
`+Array.from(Ee,Ke=>` - ${Ke.filepath}`).join(`
|
||
|
`));Ee.add(J);let De=yield*j(D(J),be,Ee,oe);return Ee.delete(J),!!De&&(H(ae,De),!0)}function H(ae,se){ae.options.push(...se.options),ae.plugins.push(...se.plugins),ae.presets.push(...se.presets);for(let ye of se.files)ae.files.add(ye);return ae}function*F(ae,{options:se,plugins:ye,presets:be}){return ae.options.push(se),ae.plugins.push(...yield*ye()),ae.presets.push(...yield*be()),ae}function W(){return{options:[],presets:[],plugins:[],files:new Set}}function V(ae){let se=Object.assign({},ae);return delete se.extends,delete se.env,delete se.overrides,delete se.plugins,delete se.presets,delete se.passPerPreset,delete se.ignore,delete se.only,delete se.test,delete se.include,delete se.exclude,Object.prototype.hasOwnProperty.call(se,"sourceMap")&&(se.sourceMaps=se.sourceMap,delete se.sourceMap),se}function Q(ae){let se=new Map,ye=[];for(let be of ae)if(typeof be.value=="function"){let Ee=be.value,oe=se.get(Ee);oe||(oe=new Map,se.set(Ee,oe));let J=oe.get(be.name);J?J.value=be:(J={value:be},ye.push(J),be.ownPass||oe.set(be.name,J))}else ye.push({value:be});return ye.reduce((be,Ee)=>(be.push(Ee.value),be),[])}function ne({options:ae},se,ye,be){return(ae.test===void 0||ue(ye,ae.test,se,be))&&(ae.include===void 0||ue(ye,ae.include,se,be))&&(ae.exclude===void 0||!ue(ye,ae.exclude,se,be))}function ue(ae,se,ye,be){return Oe(ae,Array.isArray(se)?se:[se],ye,be)}function de(ae,se){return se instanceof RegExp?String(se):se}function Ae(ae,se,ye,be){if(se&&Oe(ae,se,be)){var Ee;let J=`No config is applied to "${(Ee=ae.filename)!=null?Ee:"(unknown)"}" because it matches one of \`ignore: ${JSON.stringify(se,de)}\` from "${be}"`;return E(J),ae.showConfig&&console.log(J),!0}if(ye&&!Oe(ae,ye,be)){var oe;let J=`No config is applied to "${(oe=ae.filename)!=null?oe:"(unknown)"}" because it fails to match one of \`only: ${JSON.stringify(ye,de)}\` from "${be}"`;return E(J),ae.showConfig&&console.log(J),!0}return!1}function Oe(ae,se,ye,be){return se.some(Ee=>Me(Ee,ye,ae.filename,ae,be))}function Me(ae,se,ye,be,Ee){if(typeof ae=="function")return!!(0,f.endHiddenCallStack)(ae)(ye,{dirname:se,envName:be.envName,caller:be.caller});if(typeof ye!="string")throw new p.default("Configuration contains string/RegExp pattern, but no filename was passed to Babel",Ee);return typeof ae=="string"&&(ae=(0,s.default)(ae,se)),ae.test(ye)}},"./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/config-descriptors.js":(o,r,u)=>{"use strict";function a(){let D=u("./node_modules/.pnpm/gensync@1.0.0-beta.2/node_modules/gensync/index.js");return a=function(){return D},D}Object.defineProperty(r,"__esModule",{value:!0}),r.createCachedDescriptors=function(D,L,I){let{plugins:j,presets:M,passPerPreset:R}=L;return{options:h(L,D),plugins:j?()=>v(j,D)(I):()=>p([]),presets:M?()=>b(M,D)(I)(!!R):()=>p([])}},r.createDescriptor=P,r.createUncachedDescriptors=function(D,L,I){return{options:h(L,D),plugins:(0,m.once)(()=>x(L.plugins||[],D,I)),presets:(0,m.once)(()=>A(L.presets||[],D,I,!!L.passPerPreset))}};var m=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/gensync-utils/functional.js"),d=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/files/index.js"),s=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/item.js"),l=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/caching.js"),f=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/resolve-targets.js");function*p(D){return D}function h(D,L){return typeof D.browserslistConfigFile=="string"&&(D.browserslistConfigFile=(0,f.resolveBrowserslistConfigFile)(D.browserslistConfigFile,L)),D}let y=new WeakMap,b=(0,l.makeWeakCacheSync)((D,L)=>{let I=L.using(j=>j);return(0,l.makeStrongCacheSync)(j=>(0,l.makeStrongCache)(function*(M){return(yield*A(D,I,j,M)).map(R=>w(y,R))}))}),E=new WeakMap,v=(0,l.makeWeakCacheSync)((D,L)=>{let I=L.using(j=>j);return(0,l.makeStrongCache)(function*(j){return(yield*x(D,I,j)).map(M=>w(E,M))})}),S={};function w(D,L){let{value:I,options:j=S}=L;if(j===!1)retu
|
||
|
`))}G.add($.name)}}(R),R}function*P(D,L,{type:I,alias:j,ownPass:M}){let R=(0,s.getItemDescriptor)(D);if(R)return R;let z,Y,$,G=D;Array.isArray(G)&&(G.length===3?[G,Y,z]=G:[G,Y]=G);let U=null;if(typeof G=="string"){if(typeof I!="string")throw new Error("To resolve a string-based item, the type of item must be given");let B=I==="plugin"?d.loadPlugin:d.loadPreset,N=G;({filepath:U,value:G}=yield*B(G,L)),$={request:N,resolved:U}}if(!G)throw new Error(`Unexpected falsy value: ${String(G)}`);if(typeof G=="object"&&G.__esModule){if(!G.default)throw new Error("Must export a default export when using ES6 modules.");G=G.default}if(typeof G!="object"&&typeof G!="function")throw new Error(`Unsupported format: ${typeof G}. Expected an object or a function.`);if(U!==null&&typeof G=="object"&&G)throw new Error(`Plugin/Preset files are not allowed to export objects, only functions. In ${U}`);return{name:z,alias:U||j,value:G,options:Y,dirname:L,ownPass:M,file:$}}},"./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/files/configuration.js":(o,r,u)=>{"use strict";function a(){let Y=u("./node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/index.js");return a=function(){return Y},Y}function m(){let Y=u("fs");return m=function(){return Y},Y}function d(){let Y=u("path");return d=function(){return Y},Y}function s(){let Y=u("./node_modules/.pnpm/json5@2.2.3/node_modules/json5/dist/index.mjs");return s=function(){return Y},Y}function l(){let Y=u("./node_modules/.pnpm/gensync@1.0.0-beta.2/node_modules/gensync/index.js");return l=function(){return Y},Y}Object.defineProperty(r,"__esModule",{value:!0}),r.ROOT_CONFIG_FILENAMES=void 0,r.findConfigUpwards=function(Y){let $=Y;for(;;){for(let U of A)if(m().existsSync(d().join($,U)))return $;let G=d().dirname($);if($===G)break;$=G}return null},r.findRelativeConfig=function*(Y,$,G){let U=null,B=null,N=d().dirname(Y.filepath);for(let H of Y.directories){var X;if(U||(U=yield*R(x,H,$,G,((X=Y.pkg)==null?void 0:X.dirname)===H?I(Y.pkg):null)),!B){let F=d().join(H,C);B=yield*M(F),B&&w("Found ignore %o from %o.",B.filepath,N)}}return{config:U,ignore:B}},r.findRootConfig=function(Y,$,G){return R(A,Y,$,G)},r.loadConfig=function*(Y,$,G,U){let B=(X=process.versions.node,H="8.9",X=X.split("."),H=H.split("."),+X[0]>+H[0]||X[0]==H[0]&&+X[1]>=+H[1]?u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/files sync recursive").resolve:(F,{paths:[W]},V=u("module"))=>{let Q=V._findPath(F,V._nodeModulePaths(W).concat(W));if(Q)return Q;throw Q=new Error(`Cannot resolve module '${F}'`),Q.code="MODULE_NOT_FOUND",Q})(Y,{paths:[$]}),N=yield*z(B,G,U);var X,H;if(!N)throw new E.default("Config file contains no configuration data",B);return w("Loaded config %o from %o.",Y,$),N},r.resolveShowConfigPath=function*(Y){let $=process.env.BABEL_SHOW_CONFIG_FOR;if($!=null){let G=d().resolve(Y,$);if(!(yield*v.stat(G)).isFile())throw new Error(`${G}: BABEL_SHOW_CONFIG_FOR must refer to a regular file, directories are not supported.`);return G}return null};var f=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/caching.js"),p=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/helpers/config-api.js"),h=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/files/utils.js"),y=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/files/module-types.js"),b=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/pattern-to-regex.js"),E=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/errors/config-error.js"),v=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/gensync-utils/fs.js"),S=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/errors/rewrite-stack-trace.js");let w=a()("babel:config:loading:files:configuration"),A=["babel.config.js","babel.config.cjs","babel.config.mjs","babel.config.json","babel.config.cts"];r.ROOT_CONFIG_FILENAMES=A;let x=[".babelrc",".babelrc.js",".babelrc.cjs",".babelrc.mjs",
|
||
|
for various types of caching, using the first param of their handler functions:
|
||
|
|
||
|
module.exports = function(api) {
|
||
|
// The API exposes the following:
|
||
|
|
||
|
// Cache the returned value forever and don't call this function again.
|
||
|
api.cache(true);
|
||
|
|
||
|
// Don't cache at all. Not recommended because it will be very slow.
|
||
|
api.cache(false);
|
||
|
|
||
|
// Cached based on the value of some function. If this function returns a value different from
|
||
|
// a previously-encountered value, the plugins will re-evaluate.
|
||
|
var env = api.cache(() => process.env.NODE_ENV);
|
||
|
|
||
|
// If testing for a specific env, we recommend specifics to avoid instantiating a plugin for
|
||
|
// any possible NODE_ENV value that might come up during plugin execution.
|
||
|
var isProd = api.cache(() => process.env.NODE_ENV === "production");
|
||
|
|
||
|
// .cache(fn) will perform a linear search though instances to find the matching plugin based
|
||
|
// based on previous instantiated plugins. If you want to recreate the plugin and discard the
|
||
|
// previous instance whenever something changes, you may use:
|
||
|
var isProd = api.cache.invalidate(() => process.env.NODE_ENV === "production");
|
||
|
|
||
|
// Note, we also expose the following more-verbose versions of the above examples:
|
||
|
api.cache.forever(); // api.cache(true)
|
||
|
api.cache.never(); // api.cache(false)
|
||
|
api.cache.using(fn); // api.cache(fn)
|
||
|
|
||
|
// Return the value that will be cached.
|
||
|
return { };
|
||
|
};`,B)}(Y),function(B,N){let X=L.get(B);X||L.set(B,X=new Map);let H=X.get(N);return H||(H={filepath:N,dirname:d().dirname(N),options:B},X.set(N,H)),H}(G,Y)}let L=new WeakMap,I=(0,f.makeWeakCacheSync)(Y=>{let $=Y.options.babel;if($===void 0)return null;if(typeof $!="object"||Array.isArray($)||$===null)throw new E.default(".babel property must be an object",Y.filepath);return{filepath:Y.filepath,dirname:Y.dirname,options:$}}),j=(0,h.makeStaticFileCache)((Y,$)=>{let G;try{G=s().parse($)}catch(U){throw new E.default(`Error while parsing config - ${U.message}`,Y)}if(!G)throw new E.default("No config detected",Y);if(typeof G!="object")throw new E.default("Config returned typeof "+typeof G,Y);if(Array.isArray(G))throw new E.default("Expected config object but found array",Y);return delete G.$schema,{filepath:Y,dirname:d().dirname(Y),options:G}}),M=(0,h.makeStaticFileCache)((Y,$)=>{let G=d().dirname(Y),U=$.split(`
|
||
|
`).map(B=>B.replace(/#(.*?)$/,"").trim()).filter(B=>!!B);for(let B of U)if(B[0]==="!")throw new E.default("Negation of file paths is not supported.",Y);return{filepath:Y,dirname:d().dirname(Y),ignore:U.map(B=>(0,b.default)(B,G))}});function*R(Y,$,G,U,B=null){let N=(yield*l().all(Y.map(X=>z(d().join($,X),G,U)))).reduce((X,H)=>{if(H&&X)throw new E.default(`Multiple configuration files found. Please remove one:
|
||
|
- ${d().basename(X.filepath)}
|
||
|
- ${H.filepath}
|
||
|
from ${$}`);return H||X},B);return N&&w("Found configuration %o from %o.",N.filepath,$),N}function z(Y,$,G){switch(d().extname(Y)){case".js":case".cjs":case".mjs":case".cts":return D(Y,{envName:$,caller:G});default:return j(Y)}}},"./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/files/import-meta-resolve.js":(o,r,u)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(d,s){return m(d,s)};var a=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/vendor/import-meta-resolve.js");let m;m=a.resolve},"./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/files/import.cjs":(o,r,u)=>{o.exports=function(a){return u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/files lazy recursive")(a)}},"./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/files/index.js":(o,r,u)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ROOT_CONFIG_FILENAMES",{enumerable:!0,get:function(){return m.ROOT_CONFIG_FILENAMES}}),Object.defineProperty(r,"findConfigUpwards",{enumerable:!0,get:function(){return m.findConfigUpwards}}),Object.defineProperty(r,"findPackageData",{enumerable:!0,get:function(){return a.findPackageData}}),Object.defineProperty(r,"findRelativeConfig",{enumerable:!0,get:function(){return m.findRelativeConfig}}),Object.defineProperty(r,"findRootConfig",{enumerable:!0,get:function(){return m.findRootConfig}}),Object.defineProperty(r,"loadConfig",{enumerable:!0,get:function(){return m.loadConfig}}),Object.defineProperty(r,"loadPlugin",{enumerable:!0,get:function(){return d.loadPlugin}}),Object.defineProperty(r,"loadPreset",{enumerable:!0,get:function(){return d.loadPreset}}),Object.defineProperty(r,"resolvePlugin",{enumerable:!0,get:function(){return d.resolvePlugin}}),Object.defineProperty(r,"resolvePreset",{enumerable:!0,get:function(){return d.resolvePreset}}),Object.defineProperty(r,"resolveShowConfigPath",{enumerable:!0,get:function(){return m.resolveShowConfigPath}});var a=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/files/package.js"),m=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/files/configuration.js"),d=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/files/plugins.js")},"./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/files/module-types.js":(o,r,u)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function*(C,P){switch(m().extname(C)){case".cjs":return w(C,arguments[2]);case".mjs":break;case".cts":return function(D){let L=".cts",I=!!(u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/files sync recursive").extensions[".ts"]||u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/files sync recursive").extensions[".cts"]||u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/files sync recursive").extensions[".mts"]),j;if(!I){let M={babelrc:!1,configFile:!1,sourceType:"unambiguous",sourceMaps:"inline",sourceFileName:m().basename(D),presets:[[x(D),Object.assign({onlyRemoveTypeImports:!0,optimizeConstEnums:!0},{allowDeclareFields:!0})]]};j=function(R,z){if(j&&z.endsWith(L))try{return R._compile((0,h.transformFileSync)(z,Object.assign({},M,{filename:z})).code,z)}catch(Y){if(!I){let $=u("./node_modules/.pnpm/@babel+preset-typescript@7.22.15_@babel+core@7.22.15/node_modules/@babel/preset-typescript/package.json");s().lt($.version,"7.21.4")&&console.error("`.cts` configuration file failed to load, please try to update `@babel/preset-typescript`.")}throw Y}return u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/files sync recursive").extensions[".js"](R,z)},u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/files sync recursive").extensions[L]=j}try{return w(D)}finally{I||(u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/fil
|
||
|
`,P);return(yield(0,f.endHiddenCallStack)(E)((0,d().pathToFileURL)(P))).default},A=function(){var P=this,D=arguments;return new Promise(function(L,I){var j=C.apply(P,D);function M(z){y(j,L,I,M,R,"next",z)}function R(z){y(j,L,I,M,R,"throw",z)}M(void 0)})},A.apply(this,arguments)}function x(C){try{return u("./node_modules/.pnpm/@babel+preset-typescript@7.22.15_@babel+core@7.22.15/node_modules/@babel/preset-typescript/lib/index.js")}catch(P){if(P.code!=="MODULE_NOT_FOUND")throw P;let D="You appear to be using a .cts file as Babel configuration, but the `@babel/preset-typescript` package was not found: please install it!";throw process.versions.pnp&&(D+=`
|
||
|
If you are using Yarn Plug'n'Play, you may also need to add the following configuration to your .yarnrc.yml file:
|
||
|
|
||
|
packageExtensions:
|
||
|
"@babel/core@*":
|
||
|
peerDependencies:
|
||
|
"@babel/preset-typescript": "*"
|
||
|
`),new p.default(D,C)}}},"./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/files/package.js":(o,r,u)=>{"use strict";function a(){let f=u("path");return a=function(){return f},f}Object.defineProperty(r,"__esModule",{value:!0}),r.findPackageData=function*(f){let p=null,h=[],y=!0,b=a().dirname(f);for(;!p&&a().basename(b)!=="node_modules";){h.push(b),p=yield*l(a().join(b,s));let E=a().dirname(b);if(b===E){y=!1;break}b=E}return{filepath:f,directories:h,pkg:p,isPackage:y}};var m=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/files/utils.js"),d=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/errors/config-error.js");let s="package.json",l=(0,m.makeStaticFileCache)((f,p)=>{let h;try{h=JSON.parse(p)}catch(y){throw new d.default(`Error while parsing JSON - ${y.message}`,f)}if(!h)throw new Error(`${f}: No config detected`);if(typeof h!="object")throw new d.default("Config returned typeof "+typeof h,f);if(Array.isArray(h))throw new d.default("Expected config object but found array",f);return{filepath:f,dirname:a().dirname(f),options:h}})},"./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/files/plugins.js":(o,r,u)=>{"use strict";function a(){let Y=u("./node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/index.js");return a=function(){return Y},Y}function m(){let Y=u("path");return m=function(){return Y},Y}Object.defineProperty(r,"__esModule",{value:!0}),r.loadPlugin=function*(Y,$){let G=x(Y,$,yield*(0,d.isAsync)()),U=yield*z("plugin",G);return p("Loaded plugin %o from %o.",Y,$),{filepath:G,value:U}},r.loadPreset=function*(Y,$){let G=C(Y,$,yield*(0,d.isAsync)()),U=yield*z("preset",G);return p("Loaded preset %o from %o.",Y,$),{filepath:G,value:U}},r.resolvePreset=r.resolvePlugin=void 0;var d=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/gensync-utils/async.js"),s=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/files/module-types.js");function l(){let Y=u("url");return l=function(){return Y},Y}var f=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/files/import-meta-resolve.js");let p=a()("babel:config:loading:files:plugins"),h=/^module:/,y=/^(?!@|module:|[^/]+\/|babel-plugin-)/,b=/^(?!@|module:|[^/]+\/|babel-preset-)/,E=/^(@babel\/)(?!plugin-|[^/]+\/)/,v=/^(@babel\/)(?!preset-|[^/]+\/)/,S=/^(@(?!babel\/)[^/]+\/)(?![^/]*babel-plugin(?:-|\/|$)|[^/]+\/)/,w=/^(@(?!babel\/)[^/]+\/)(?![^/]*babel-preset(?:-|\/|$)|[^/]+\/)/,A=/^(@(?!babel$)[^/]+)$/,x=M.bind(null,"plugin");r.resolvePlugin=x;let C=M.bind(null,"preset");function P(Y,$){if(m().isAbsolute($))return $;let G=Y==="preset";return $.replace(G?b:y,`babel-${Y}-`).replace(G?v:E,`$1${Y}-`).replace(G?w:S,`$1babel-${Y}-`).replace(A,`$1/babel-${Y}`).replace(h,"")}function*D(Y,$){let G=P(Y,$),{error:U,value:B}=yield G;if(!U)return B;if(U.code!=="MODULE_NOT_FOUND")throw U;G===$||(yield $).error||(U.message+=`
|
||
|
- If you want to resolve "${$}", use "module:${$}"`),(yield P(Y,"@babel/"+$)).error||(U.message+=`
|
||
|
- Did you mean "@babel/${$}"?`);let N=Y==="preset"?"plugin":"preset";if((yield P(N,$)).error||(U.message+=`
|
||
|
- Did you accidentally pass a ${N} as a ${Y}?`),Y==="plugin"){let X=G.replace("-proposal-","-transform-");X===G||(yield X).error||(U.message+=`
|
||
|
- Did you mean "${X}"?`)}throw U.message+=`
|
||
|
|
||
|
Make sure that all the Babel plugins and presets you are using
|
||
|
are defined as dependencies or devDependencies in your package.json
|
||
|
file. It's possible that the missing plugin is loaded by a preset
|
||
|
you are using that forgot to add the plugin to its dependencies: you
|
||
|
can workaround this problem by explicitly adding the missing package
|
||
|
to your top-level package.json.
|
||
|
`,U}function L(Y,$){try{return $?{error:null,value:(G=process.versions.node,U="8.9",G=G.split("."),U=U.split("."),+G[0]>+U[0]||G[0]==U[0]&&+G[1]>=+U[1]?u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/files sync recursive").resolve:(B,{paths:[N]},X=u("module"))=>{let H=X._findPath(B,X._nodeModulePaths(N).concat(N));if(H)return H;throw H=new Error(`Cannot resolve module '${B}'`),H.code="MODULE_NOT_FOUND",H})(Y,{paths:[$]})}:{error:null,value:u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/files sync recursive").resolve(Y)}}catch(B){return{error:B,value:null}}var G,U}function I(Y,$){try{return{error:null,value:(0,f.default)(Y,$)}}catch(G){return{error:G,value:null}}}function j(Y,$,G){let U=D(Y,$),B=U.next();for(;!B.done;)B=U.next(L(B.value,G));return B.value}function M(Y,$,G,U){if(!s.supportsESM||!U)return j(Y,$,G);try{return function(B,N,X){let H=(0,l().pathToFileURL)(m().join(X,"./babel-virtual-resolve-base.js")).href,F=D(B,N),W=F.next();for(;!W.done;)W=F.next(I(W.value,H));return(0,l().fileURLToPath)(W.value)}(Y,$,G)}catch(B){try{return j(Y,$,G)}catch(N){throw B.type==="MODULE_NOT_FOUND"?B:N.type==="MODULE_NOT_FOUND"?N:B}}}r.resolvePreset=C;var R=new Set;function*z(Y,$){if(!(yield*(0,d.isAsync)())&&R.has($))throw new Error(`Reentrant ${Y} detected trying to load "${$}". This module is not ignored and is trying to load itself while compiling itself, leading to a dependency cycle. We recommend adding it to your "ignore" list in your babelrc, or to a .babelignore.`);try{return R.add($),yield*(0,s.default)($,`You appear to be using a native ECMAScript module ${Y}, which is only supported when running Babel asynchronously.`,!0)}catch(G){throw G.message=`[BABEL]: ${G.message} (While processing: ${$})`,G}finally{R.delete($)}}},"./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/files/utils.js":(o,r,u)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.makeStaticFileCache=function(s){return(0,a.makeStrongCache)(function*(l,f){return f.invalidate(()=>function(h){if(!d().existsSync(h))return null;try{return+d().statSync(h).mtime}catch(y){if(y.code!=="ENOENT"&&y.code!=="ENOTDIR")throw y}return null}(l))===null?null:s(l,yield*m.readFile(l,"utf8"))})};var a=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/caching.js"),m=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/gensync-utils/fs.js");function d(){let s=u("fs");return d=function(){return s},s}},"./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/full.js":(o,r,u)=>{"use strict";function a(){let U=u("./node_modules/.pnpm/gensync@1.0.0-beta.2/node_modules/gensync/index.js");return a=function(){return U},U}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var m=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/gensync-utils/async.js"),d=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/util.js"),s=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/index.js"),l=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/plugin.js"),f=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/item.js"),p=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/config-chain.js"),h=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/helpers/deep-array.js");function y(){let U=u("./node_modules/.pnpm/@babel+traverse@7.22.15/node_modules/@babel/traverse/lib/index.js");return y=function(){return U},U}var b=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/caching.js"),E=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/validation/options.js"),v=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/validation/plugins.js"),S=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/helpers/config-api.js"),w=u("./node_module
|
||
|
(While processing: ${JSON.stringify(H)})`,new Error(Q)}return{value:V,options:N,dirname:X,alias:H,externalDependencies:(0,h.finalize)(W)}}),D=P(S.makePluginAPI),L=P(S.makePresetAPI),I=(0,b.makeWeakCache)(function*({value:U,options:B,dirname:N,alias:X,externalDependencies:H},F){let W=(0,v.validatePluginObject)(U),V=Object.assign({},W);if(V.visitor&&(V.visitor=y().default.explode(Object.assign({},V.visitor))),V.inherits){let Q={name:void 0,alias:`${X}$inherits`,value:V.inherits,options:B,dirname:N},ne=yield*(0,m.forwardAsync)(j,ue=>F.invalidate(de=>ue(Q,de)));V.pre=G(ne.pre,V.pre),V.post=G(ne.post,V.post),V.manipulateOptions=G(ne.manipulateOptions,V.manipulateOptions),V.visitor=y().default.visitors.merge([ne.visitor||{},V.visitor||{}]),ne.externalDependencies.length>0&&(H=H.length===0?ne.externalDependencies:(0,h.finalize)([H,ne.externalDependencies]))}return new l.default(V,B,X,H)});function*j(U,B){if(U.value instanceof l.default){if(U.options)throw new Error("Passed options to an existing Plugin instance will not work.");return U.value}return yield*I(yield*D(U,B),B)}let M=U=>U&&typeof U!="function",R=(U,B)=>{if(M(U.test)||M(U.include)||M(U.exclude)){let N=B.name?`"${B.name}"`:"/* your preset */";throw new A.default([`Preset ${N} requires a filename to be set when babel is called directly,`,"```",`babel.transformSync(code, { filename: 'file.ts', presets: [${N}] });`,"```","See https://babeljs.io/docs/en/options#filename for more information."].join(`
|
||
|
`))}},z=(U,B,N)=>{if(!B.filename){var X;let{options:H}=U;R(H,N),(X=H.overrides)==null||X.forEach(F=>R(F,N))}},Y=(0,b.makeWeakCacheSync)(({value:U,dirname:B,alias:N,externalDependencies:X})=>({options:(0,E.validate)("preset",U),alias:N,dirname:B,externalDependencies:X}));function*$(U,B){let N=Y(yield*L(U,B));return z(N,B,U),{chain:yield*(0,p.buildPresetChain)(N,B),externalDependencies:N.externalDependencies}}function G(U,B){let N=[U,B].filter(Boolean);return N.length<=1?N[0]:function(...X){for(let H of N)H.apply(this,X)}}},"./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/helpers/config-api.js":(o,r,u)=>{"use strict";function a(){let p=u("./node_modules/.pnpm/semver@6.3.1/node_modules/semver/semver.js");return a=function(){return p},p}Object.defineProperty(r,"__esModule",{value:!0}),r.makeConfigAPI=s,r.makePluginAPI=function(p,h){return Object.assign({},l(p,h),{assumption:y=>p.using(b=>b.assumptions[y])})},r.makePresetAPI=l;var m=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/index.js"),d=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/caching.js");function s(p){return{version:m.version,cache:p.simple(),env:h=>p.using(y=>h===void 0?y.envName:typeof h=="function"?(0,d.assertSimpleType)(h(y.envName)):(Array.isArray(h)?h:[h]).some(b=>{if(typeof b!="string")throw new Error("Unexpected non-string value");return b===y.envName})),async:()=>!1,caller:h=>p.using(y=>(0,d.assertSimpleType)(h(y.caller))),assertVersion:f}}function l(p,h){return Object.assign({},s(p),{targets:()=>JSON.parse(p.using(y=>JSON.stringify(y.targets))),addExternalDependency:y=>{h.push(y)}})}function f(p){if(typeof p=="number"){if(!Number.isInteger(p))throw new Error("Expected string or integer value.");p=`^${p}.0.0-0`}if(typeof p!="string")throw new Error("Expected string or integer value.");if(a().satisfies(m.version,p))return;let h=Error.stackTraceLimit;typeof h=="number"&&h<25&&(Error.stackTraceLimit=25);let y=new Error(`Requires Babel "${p}", but was loaded with "${m.version}". If you are sure you have a compatible version of @babel/core, it is likely that something in your build process is loading the wrong version. Inspect the stack trace of this error to look for the first entry that doesn't mention "@babel/core" or "babel-core" to see what is calling Babel.`);throw typeof h=="number"&&(Error.stackTraceLimit=h),Object.assign(y,{code:"BABEL_VERSION_UNSUPPORTED",version:m.version,range:p})}},"./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/helpers/deep-array.js":(o,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.finalize=function(u){return Object.freeze(u)},r.flattenToSet=function(u){let a=new Set,m=[u];for(;m.length>0;)for(let d of m.pop())Array.isArray(d)?m.push(d):a.add(d);return a}},"./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/helpers/environment.js":(o,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getEnv=function(u="development"){return process.env.BABEL_ENV||process.env.NODE_ENV||u}},"./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/index.js":(o,r,u)=>{"use strict";function a(){let v=u("./node_modules/.pnpm/gensync@1.0.0-beta.2/node_modules/gensync/index.js");return a=function(){return v},v}Object.defineProperty(r,"__esModule",{value:!0}),r.createConfigItem=function(v,S,w){if(w!==void 0)(0,l.beginHiddenCallStack)(b.errback)(v,S,w);else{if(typeof S!="function")return E(v,S);(0,l.beginHiddenCallStack)(b.errback)(v,void 0,w)}},r.createConfigItemAsync=function(...v){return(0,l.beginHiddenCallStack)(b.async)(...v)},r.createConfigItemSync=E,Object.defineProperty(r,"default",{enumerable:!0,get:function(){return m.default}}),r.loadOptions=function(v,S){if(S!==void 0)(0,l.beginHiddenCallStack)(h.errback)(v,S);else{if(typeof v!="function")return y(v);(0,l.beginHiddenCallStack)(h.errback)(void 0,v)}},r.loadOptionsAsync=function(...v){return(0,l.beginHiddenCallStack)(h.async)(...v)},r.loadOptionsSync=y,r.loadPartialConfig=function(v,S){if(S!==
|
||
|
One of the following config files must be in the directory tree: "${h.ROOT_CONFIG_FILENAMES.join(", ")}".`),{code:"BABEL_ROOT_NOT_FOUND",dirname:$})}default:throw new Error("Assertion failure - unknown rootMode value.")}}(a().resolve(I,C),P),M=typeof w.filename=="string"?a().resolve(x,w.filename):void 0,R={filename:M,cwd:I,root:j,envName:A,caller:D,showConfig:(yield*(0,h.resolveShowConfigPath)(I))===M},z=yield*(0,l.buildRootChain)(w,R);if(!z)return null;let Y={assumptions:{}};return z.options.forEach($=>{(0,d.mergeOptions)(Y,$)}),{options:Object.assign({},Y,{targets:(0,y.resolveTargets)(Y,j),cloneInputAst:L,babelrc:!1,configFile:!1,browserslistConfigFile:!1,passPerPreset:!1,envName:R.envName,cwd:R.cwd,root:R.root,rootMode:"root",filename:typeof R.filename=="string"?R.filename:void 0,plugins:z.plugins.map($=>(0,s.createItemFromDescriptor)($)),presets:z.presets.map($=>(0,s.createItemFromDescriptor)($))}),context:R,fileHandling:z.fileHandling,ignore:z.ignore,babelrc:z.babelrc,config:z.config,files:z.files}}class v{constructor(w,A,x,C,P,D){this.options=void 0,this.babelrc=void 0,this.babelignore=void 0,this.config=void 0,this.fileHandling=void 0,this.files=void 0,this.options=w,this.babelignore=x,this.babelrc=A,this.config=C,this.fileHandling=P,this.files=D,Object.freeze(this)}hasFilesystemConfig(){return this.babelrc!==void 0||this.config!==void 0}}Object.freeze(v.prototype)},"./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/pattern-to-regex.js":(o,r,u)=>{"use strict";function a(){let b=u("path");return a=function(){return b},b}Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(b,E){let v=a().resolve(E,b).split(a().sep);return new RegExp(["^",...v.map((S,w)=>{let A=w===v.length-1;return S==="**"?A?h:p:S==="*"?A?f:l:S.indexOf("*.")===0?s+y(S.slice(1))+(A?d:m):y(S)+(A?d:m)})].join(""))};let m=`\\${a().sep}`,d=`(?:${m}|$)`,s=`[^${m}]+`,l=`(?:${s}${m})`,f=`(?:${s}${d})`,p=`${l}*?`,h=`${l}*?${f}?`;function y(b){return b.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")}},"./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/plugin.js":(o,r,u)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var a=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/helpers/deep-array.js");r.default=class{constructor(m,d,s,l=(0,a.finalize)([])){this.key=void 0,this.manipulateOptions=void 0,this.post=void 0,this.pre=void 0,this.visitor=void 0,this.parserOverride=void 0,this.generatorOverride=void 0,this.options=void 0,this.externalDependencies=void 0,this.key=m.name||s,this.manipulateOptions=m.manipulateOptions,this.post=m.post,this.pre=m.pre,this.visitor=m.visitor||{},this.parserOverride=m.parserOverride,this.generatorOverride=m.generatorOverride,this.options=d,this.externalDependencies=l}}},"./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/printer.js":(o,r,u)=>{"use strict";function a(){let f=u("./node_modules/.pnpm/gensync@1.0.0-beta.2/node_modules/gensync/index.js");return a=function(){return f},f}Object.defineProperty(r,"__esModule",{value:!0}),r.ConfigPrinter=r.ChainFormatter=void 0;let m={Programmatic:0,Config:1};r.ChainFormatter=m;let d={title(f,p,h){let y="";return f===m.Programmatic?(y="programmatic options",p&&(y+=" from "+p)):y="config "+h,y},loc(f,p){let h="";return f!=null&&(h+=`.overrides[${f}]`),p!=null&&(h+=`.env["${p}"]`),h},*optionsAndDescriptors(f){let p=Object.assign({},f.options);delete p.overrides,delete p.env;let h=[...yield*f.plugins()];h.length&&(p.plugins=h.map(b=>s(b)));let y=[...yield*f.presets()];return y.length&&(p.presets=[...y].map(b=>s(b))),JSON.stringify(p,void 0,2)}};function s(f){var p;let h=(p=f.file)==null?void 0:p.request;return h==null&&(typeof f.value=="object"?h=f.value:typeof f.value=="function"&&(h=`[Function: ${f.value.toString().slice(0,50)} ... ]`)),h==null&&(h="[Unknown]"),f.options===void 0?h:f.name==null?[h,f.options]:[h,f.options,f.name]}class l{constructor(){this._stack=[]}configure(p,h,{callerName:y,filepath:b}){return p?(E,v,S)=>{this._stack.push({typ
|
||
|
${yield*d.optionsAndDescriptors(p.content)}`}*output(){return this._stack.length===0?"":(yield*a().all(this._stack.map(p=>l.format(p)))).join(`
|
||
|
|
||
|
`)}}r.ConfigPrinter=l},"./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/resolve-targets.js":(o,r,u)=>{"use strict";function a(){let d=u("path");return a=function(){return d},d}function m(){let d=u("./stubs/helper-compilation-targets.js");return m=function(){return d},d}Object.defineProperty(r,"__esModule",{value:!0}),r.resolveBrowserslistConfigFile=function(d,s){return a().resolve(s,d)},r.resolveTargets=function(d,s){let l=d.targets,f;typeof l=="string"||Array.isArray(l)?f={browsers:l}:l&&(f="esmodules"in l?Object.assign({},l,{esmodules:"intersect"}):l);let{browserslistConfigFile:p}=d,h,y=!1;return typeof p=="string"?h=p:y=p===!1,(0,m().default)(f,{ignoreBrowserslistConfig:y,configFile:h,configPath:s,browserslistEnv:d.browserslistEnv})}},"./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/util.js":(o,r)=>{"use strict";function u(a,m){for(let d of Object.keys(m)){let s=m[d];s!==void 0&&(a[d]=s)}}Object.defineProperty(r,"__esModule",{value:!0}),r.isIterableIterator=function(a){return!!a&&typeof a.next=="function"&&typeof a[Symbol.iterator]=="function"},r.mergeOptions=function(a,m){for(let d of Object.keys(m))if(d!=="parserOpts"&&d!=="generatorOpts"&&d!=="assumptions"||!m[d]){let s=m[d];s!==void 0&&(a[d]=s)}else{let s=m[d];u(a[d]||(a[d]={}),s)}}},"./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/validation/option-assertions.js":(o,r,u)=>{"use strict";function a(){let v=u("./stubs/helper-compilation-targets.js");return a=function(){return v},v}Object.defineProperty(r,"__esModule",{value:!0}),r.access=s,r.assertArray=p,r.assertAssumptions=function(v,S){if(S===void 0)return;if(typeof S!="object"||S===null)throw new Error(`${d(v)} must be an object or undefined.`);let w=v;do w=w.parent;while(w.type!=="root");let A=w.source==="preset";for(let x of Object.keys(S)){let C=s(v,x);if(!m.assumptionsNames.has(x))throw new Error(`${d(C)} is not a supported assumption.`);if(typeof S[x]!="boolean")throw new Error(`${d(C)} must be a boolean.`);if(A&&S[x]===!1)throw new Error(`${d(C)} cannot be set to 'false' inside presets.`)}return S},r.assertBabelrcSearch=function(v,S){if(S===void 0||typeof S=="boolean")return S;if(Array.isArray(S))S.forEach((w,A)=>{if(!h(w))throw new Error(`${d(s(v,A))} must be a string/Function/RegExp.`)});else if(!h(S))throw new Error(`${d(v)} must be a undefined, a boolean, a string/Function/RegExp or an array of those, got ${JSON.stringify(S)}`);return S},r.assertBoolean=l,r.assertCallerMetadata=function(v,S){let w=f(v,S);if(w){if(typeof w.name!="string")throw new Error(`${d(v)} set but does not contain "name" property string`);for(let A of Object.keys(w)){let x=s(v,A),C=w[A];if(C!=null&&typeof C!="boolean"&&typeof C!="string"&&typeof C!="number")throw new Error(`${d(x)} must be null, undefined, a boolean, a string, or a number.`)}}return S},r.assertCompact=function(v,S){if(S!==void 0&&typeof S!="boolean"&&S!=="auto")throw new Error(`${d(v)} must be a boolean, "auto", or undefined`);return S},r.assertConfigApplicableTest=function(v,S){if(S===void 0)return S;if(Array.isArray(S))S.forEach((w,A)=>{if(!h(w))throw new Error(`${d(s(v,A))} must be a string/Function/RegExp.`)});else if(!h(S))throw new Error(`${d(v)} must be a string/Function/RegExp, or an array of those`);return S},r.assertConfigFileSearch=function(v,S){if(S!==void 0&&typeof S!="boolean"&&typeof S!="string")throw new Error(`${d(v)} must be a undefined, a boolean, a string, got ${JSON.stringify(S)}`);return S},r.assertFunction=function(v,S){if(S!==void 0&&typeof S!="function")throw new Error(`${d(v)} must be a function, or undefined`);return S},r.assertIgnoreList=function(v,S){let w=p(v,S);return w==null||w.forEach((A,x)=>function(C,P){if(typeof P!="string"&&typeof P!="function"&&!(P instanceof RegExp))throw new Error(`${d(C)} must be an array of string/Function/RegExp values, or undefined`);return P}(s(v,x),A)),w},r.assertInputSourceMap=function(v,S){if(S!==void 0&&typeof S!="boolean"&&(typeof S!="object"||!S))throw new Error(`${d(v)} must be a boolean, object, or undefined`
|
||
|
- Maybe you meant to use
|
||
|
"${A}s": [
|
||
|
["${C.file.request}", ${JSON.stringify(P.value,void 0,2)}]
|
||
|
]
|
||
|
To be a valid ${A}, its name and options should be wrapped in a pair of brackets`)},r.validate=function(S,w,A){try{return b({type:"root",source:S},w)}catch(x){let C=new d.default(x.message,A);throw x.code&&(C.code=x.code),C}};var a=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/validation/removed.js"),m=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/validation/option-assertions.js"),d=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/errors/config-error.js");let s={cwd:m.assertString,root:m.assertString,rootMode:m.assertRootMode,configFile:m.assertConfigFileSearch,caller:m.assertCallerMetadata,filename:m.assertString,filenameRelative:m.assertString,code:m.assertBoolean,ast:m.assertBoolean,cloneInputAst:m.assertBoolean,envName:m.assertString},l={babelrc:m.assertBoolean,babelrcRoots:m.assertBabelrcSearch},f={extends:m.assertString,ignore:m.assertIgnoreList,only:m.assertIgnoreList,targets:m.assertTargets,browserslistConfigFile:m.assertConfigFileSearch,browserslistEnv:m.assertString},p={inputSourceMap:m.assertInputSourceMap,presets:m.assertPluginList,plugins:m.assertPluginList,passPerPreset:m.assertBoolean,assumptions:m.assertAssumptions,env:function(S,w){if(S.parent.type==="env")throw new Error(`${(0,m.msg)(S)} is not allowed inside of another .env block`);let A=S.parent,x=(0,m.assertObject)(S,w);if(x)for(let C of Object.keys(x)){let P=(0,m.assertObject)((0,m.access)(S,C),x[C]);P&&b({type:"env",name:C,parent:A},P)}return x},overrides:function(S,w){if(S.parent.type==="env")throw new Error(`${(0,m.msg)(S)} is not allowed inside an .env block`);if(S.parent.type==="overrides")throw new Error(`${(0,m.msg)(S)} is not allowed inside an .overrides block`);let A=S.parent,x=(0,m.assertArray)(S,w);if(x)for(let[C,P]of x.entries()){let D=(0,m.access)(S,C),L=(0,m.assertObject)(D,P);if(!L)throw new Error(`${(0,m.msg)(D)} must be an object`);b({type:"overrides",index:C,parent:A},L)}return x},test:m.assertConfigApplicableTest,include:m.assertConfigApplicableTest,exclude:m.assertConfigApplicableTest,retainLines:m.assertBoolean,comments:m.assertBoolean,shouldPrintComment:m.assertFunction,compact:m.assertCompact,minified:m.assertBoolean,auxiliaryCommentBefore:m.assertString,auxiliaryCommentAfter:m.assertString,sourceType:m.assertSourceType,wrapPluginVisitorMethod:m.assertFunction,highlightCode:m.assertBoolean,sourceMaps:m.assertSourceMaps,sourceMap:m.assertSourceMaps,sourceFileName:m.assertString,sourceRoot:m.assertString,parserOpts:m.assertObject,generatorOpts:m.assertObject};Object.assign(p,{getModuleId:m.assertFunction,moduleRoot:m.assertString,moduleIds:m.assertBoolean,moduleId:m.assertString});let h=new Set(["arrayLikeIsIterable","constantReexports","constantSuper","enumerableModuleMeta","ignoreFunctionLength","ignoreToPrimitiveHint","iterableIsArray","mutableTemplateObject","noClassCalls","noDocumentAll","noIncompleteNsImportDetection","noNewArrows","objectRestNoSymbols","privateFieldsAsSymbols","privateFieldsAsProperties","pureGetters","setClassMethods","setComputedProperties","setPublicClassFields","setSpreadProperties","skipForOfIteratorClosing","superIsCallableConstructor"]);function y(S){return S.type==="root"?S.source:y(S.parent)}function b(S,w){let A=y(S);return function(x){if(v(x,"sourceMap")&&v(x,"sourceMaps"))throw new Error(".sourceMap is an alias for .sourceMaps, cannot use both")}(w),Object.keys(w).forEach(x=>{let C={type:"option",name:x,parent:S};if(A==="preset"&&f[x])throw new Error(`${(0,m.msg)(C)} is not allowed in preset options`);if(A!=="arguments"&&s[x])throw new Error(`${(0,m.msg)(C)} is only allowed in root programmatic options`);if(A!=="arguments"&&A!=="configfile"&&l[x])throw A==="babelrcfile"||A==="extendsfile"?new Error(`${(0,m.msg)(C)} is not allowed in .babelrc or "extends"ed files, only in root programmatic options, or babel.config.js/config file options`):new Error(`${(0,m.msg)(C)} is only allowed in root programmatic options, or babel.config.js/config file options`);(p[x]||f[x]||l[x]||s[x]||E)(C,w[x])}),w}function E(S)
|
||
|
at ${b.join(`
|
||
|
at `)}`}},"./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/gensync-utils/async.js":(o,r,u)=>{"use strict";function a(){let v=u("./node_modules/.pnpm/gensync@1.0.0-beta.2/node_modules/gensync/index.js");return a=function(){return v},v}function m(v,S,w,A,x,C,P){try{var D=v[C](P),L=D.value}catch(I){return void w(I)}D.done?S(L):Promise.resolve(L).then(A,x)}function d(v){return function(){var S=this,w=arguments;return new Promise(function(A,x){var C=v.apply(S,w);function P(L){m(C,A,x,P,D,"next",L)}function D(L){m(C,A,x,P,D,"throw",L)}P(void 0)})}}Object.defineProperty(r,"__esModule",{value:!0}),r.forwardAsync=function(v,S){let w=a()(v);return f(A=>{let x=w[A];return S(x)})},r.isAsync=void 0,r.isThenable=E,r.maybeAsync=function(v,S){return a()({sync(...w){let A=v.apply(this,w);if(E(A))throw new Error(S);return A},async(...w){return Promise.resolve(v.apply(this,w))}})},r.waitFor=r.onFirstPause=void 0;let s=a()(function*(v){return yield*v}),l=a()({sync:()=>!1,errback:v=>v(null,!0)});r.isAsync=l;let f=a()({sync:v=>v("sync"),async:(p=d(function*(v){return v("async")}),function(v){return p.apply(this,arguments)})});var p;let h=a()({name:"onFirstPause",arity:2,sync:function(v){return s.sync(v)},errback:function(v,S,w){let A=!1;s.errback(v,(x,C)=>{A=!0,w(x,C)}),A||S()}});r.onFirstPause=h;let y=a()({sync:v=>v,async:(b=d(function*(v){return v}),function(v){return b.apply(this,arguments)})});var b;function E(v){return!(!v||typeof v!="object"&&typeof v!="function"||!v.then||typeof v.then!="function")}r.waitFor=y},"./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/gensync-utils/fs.js":(o,r,u)=>{"use strict";function a(){let l=u("fs");return a=function(){return l},l}function m(){let l=u("./node_modules/.pnpm/gensync@1.0.0-beta.2/node_modules/gensync/index.js");return m=function(){return l},l}Object.defineProperty(r,"__esModule",{value:!0}),r.stat=r.readFile=void 0;let d=m()({sync:a().readFileSync,errback:a().readFile});r.readFile=d;let s=m()({sync:a().statSync,errback:a().stat});r.stat=s},"./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/gensync-utils/functional.js":(o,r,u)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.once=function(m){let d,s;return function*(){if(d)return d;if(!(yield*(0,a.isAsync)()))return d=yield*m();if(s)return yield*(0,a.waitFor)(s);let l,f;s=new Promise((p,h)=>{l=p,f=h});try{return d=yield*m(),s=null,l(d),d}catch(p){throw f(p),p}}};var a=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/gensync-utils/async.js")},"./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/index.js":(o,r,u)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.DEFAULT_EXTENSIONS=void 0,Object.defineProperty(r,"File",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(r,"buildExternalHelpers",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(r,"createConfigItem",{enumerable:!0,get:function(){return y.createConfigItem}}),Object.defineProperty(r,"createConfigItemAsync",{enumerable:!0,get:function(){return y.createConfigItemAsync}}),Object.defineProperty(r,"createConfigItemSync",{enumerable:!0,get:function(){return y.createConfigItemSync}}),Object.defineProperty(r,"getEnv",{enumerable:!0,get:function(){return s.getEnv}}),Object.defineProperty(r,"loadOptions",{enumerable:!0,get:function(){return y.loadOptions}}),Object.defineProperty(r,"loadOptionsAsync",{enumerable:!0,get:function(){return y.loadOptionsAsync}}),Object.defineProperty(r,"loadOptionsSync",{enumerable:!0,get:function(){return y.loadOptionsSync}}),Object.defineProperty(r,"loadPartialConfig",{enumerable:!0,get:function(){return y.loadPartialConfig}}),Object.defineProperty(r,"loadPartialConfigAsync",{enumerable:!0,get:function(){return y.loadPartialConfigAsync}}),Object.defineProperty(r,"loadPartialConfigSync",{enumerable:!0,get:function(){return y.loadPartialConfigSync}}),Object.defineProperty(r,"parse",{enumerable:!0,get:function(){return S.parse}}),Object.defineProperty(r,"parseAsync",{enumerable:!0,ge
|
||
|
Consider renaming the file to '.mjs', or setting sourceType:module or sourceType:unambiguous in your Babel config for this file.`);let{loc:b,missingPlugin:E}=y;if(b){let v=(0,m().codeFrameColumns)(h,{start:{line:b.line,column:b.column+1}},{highlightCode:f});y.message=E?`${p}: `+(0,d.default)(E[0],b,v):`${p}: ${y.message}
|
||
|
|
||
|
`+v,y.code="BABEL_PARSE_ERROR"}throw y}};var d=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/parser/util/missing-plugin-helper.js")},"./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/parser/util/missing-plugin-helper.js":(o,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(m,d,s){let l=`Support for the experimental syntax '${m}' isn't currently enabled (${d.line}:${d.column+1}):
|
||
|
|
||
|
`+s,f=u[m];if(f){let{syntax:p,transform:h}=f;if(p){let y=a(p);h?l+=`
|
||
|
|
||
|
Add ${a(h)} to the '${h.name.startsWith("@babel/plugin")?"plugins":"presets"}' section of your Babel config to enable transformation.
|
||
|
If you want to leave it as-is, add ${y} to the 'plugins' section to enable parsing.`:l+=`
|
||
|
|
||
|
Add ${y} to the 'plugins' section of your Babel config to enable parsing.`}}return l};let u={asyncDoExpressions:{syntax:{name:"@babel/plugin-syntax-async-do-expressions",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-async-do-expressions"}},decimal:{syntax:{name:"@babel/plugin-syntax-decimal",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-decimal"}},decorators:{syntax:{name:"@babel/plugin-syntax-decorators",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-decorators"},transform:{name:"@babel/plugin-proposal-decorators",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-decorators"}},doExpressions:{syntax:{name:"@babel/plugin-syntax-do-expressions",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-do-expressions"},transform:{name:"@babel/plugin-proposal-do-expressions",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-do-expressions"}},exportDefaultFrom:{syntax:{name:"@babel/plugin-syntax-export-default-from",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-export-default-from"},transform:{name:"@babel/plugin-proposal-export-default-from",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-export-default-from"}},flow:{syntax:{name:"@babel/plugin-syntax-flow",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-flow"},transform:{name:"@babel/preset-flow",url:"https://github.com/babel/babel/tree/main/packages/babel-preset-flow"}},functionBind:{syntax:{name:"@babel/plugin-syntax-function-bind",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-function-bind"},transform:{name:"@babel/plugin-proposal-function-bind",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-function-bind"}},functionSent:{syntax:{name:"@babel/plugin-syntax-function-sent",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-function-sent"},transform:{name:"@babel/plugin-proposal-function-sent",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-function-sent"}},jsx:{syntax:{name:"@babel/plugin-syntax-jsx",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-jsx"},transform:{name:"@babel/preset-react",url:"https://github.com/babel/babel/tree/main/packages/babel-preset-react"}},importAttributes:{syntax:{name:"@babel/plugin-syntax-import-attributes",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-import-attributes"}},pipelineOperator:{syntax:{name:"@babel/plugin-syntax-pipeline-operator",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-pipeline-operator"},transform:{name:"@babel/plugin-proposal-pipeline-operator",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-pipeline-operator"}},recordAndTuple:{syntax:{name:"@babel/plugin-syntax-record-and-tuple",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-record-and-tuple"}},throwExpressions:{syntax:{name:"@babel/plugin-syntax-throw-expressions",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-throw-expressions"},transform:{name:"@babel/plugin-proposal-throw-expressions",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-throw-expressions"}},typescript:{syntax:{name:"@babel/plugin-syntax-typescript",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-typescript"},transform:{name:"@babel/preset-typescript",url:"https://github.com/babel/babel/tree/main/packages/babel-preset-typescript"}}};Object.assign(u,{asyncGenerators:{syntax:{name:"@babel/plugin-syntax-async-generators",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-async-generators"},transform:{name:"@babel/plugin-transform-async-generator-functions",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-async-generator-functions"}},classProperties:{syntax:{name:"@babel/plugin-syntax-cla
|
||
|
(function (root, factory) {
|
||
|
if (typeof define === "function" && define.amd) {
|
||
|
define(AMD_ARGUMENTS, factory);
|
||
|
} else if (typeof exports === "object") {
|
||
|
factory(COMMON_ARGUMENTS);
|
||
|
} else {
|
||
|
factory(BROWSER_ARGUMENTS);
|
||
|
}
|
||
|
})(UMD_ROOT, function (FACTORY_PARAMETERS) {
|
||
|
FACTORY_BODY
|
||
|
});
|
||
|
`(N);function Y(N){let X=C("babelHelpers"),H=[],F=x(null,[C("global")],y(H)),W=L([A(b(F,[v(h("===",j("typeof",C("global")),I("undefined")),C("self"),C("global"))]))]);return H.push(M("var",[R(X,p("=",P(C("global"),X),D([])))])),B(H,X,N),W}function $(N){let X=[],H=B(X,null,N);return X.unshift(S(null,Object.keys(H).map(F=>w(E(H[F]),C(F))))),L(X,[],"module")}function G(N){let X=C("babelHelpers"),H=[];return H.push(M("var",[R(X,C("global"))])),B(H,X,N),L([z({FACTORY_PARAMETERS:C("global"),BROWSER_ARGUMENTS:p("=",P(C("root"),X),D([])),COMMON_ARGUMENTS:C("exports"),AMD_ARGUMENTS:f([I("exports")]),FACTORY_BODY:H,UMD_ROOT:C("this")})])}function U(N){let X=C("babelHelpers"),H=[];H.push(M("var",[R(X,D([]))]));let F=L(H);return B(H,X,N),H.push(A(X)),F}function B(N,X,H){let F=V=>X?P(X,C(V)):C(`_${V}`),W={};return a().list.forEach(function(V){if(H&&H.indexOf(V)<0)return;let Q=W[V]=F(V);a().ensure(V,l.default);let{nodes:ne}=a().get(V,F,Q);N.push(...ne)}),W}},"./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/transform-ast.js":(o,r,u)=>{"use strict";function a(){let f=u("./node_modules/.pnpm/gensync@1.0.0-beta.2/node_modules/gensync/index.js");return a=function(){return f},f}Object.defineProperty(r,"__esModule",{value:!0}),r.transformFromAst=void 0,r.transformFromAstAsync=function(...f){return(0,s.beginHiddenCallStack)(l.async)(...f)},r.transformFromAstSync=function(...f){return(0,s.beginHiddenCallStack)(l.sync)(...f)};var m=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/index.js"),d=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/transformation/index.js"),s=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/errors/rewrite-stack-trace.js");let l=a()(function*(f,p,h){let y=yield*(0,m.default)(h);if(y===null)return null;if(!f)throw new Error("No AST given");return yield*(0,d.run)(y,p,f)});r.transformFromAst=function(f,p,h,y){let b,E;if(typeof h=="function"?(E=h,b=void 0):(b=h,E=y),E===void 0)return(0,s.beginHiddenCallStack)(l.sync)(f,p,b);(0,s.beginHiddenCallStack)(l.errback)(f,p,b,E)}},"./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/transform-file.js":(o,r,u)=>{"use strict";function a(){let f=u("./node_modules/.pnpm/gensync@1.0.0-beta.2/node_modules/gensync/index.js");return a=function(){return f},f}Object.defineProperty(r,"__esModule",{value:!0}),r.transformFile=function(...f){l.errback(...f)},r.transformFileAsync=function(...f){return l.async(...f)},r.transformFileSync=function(...f){return l.sync(...f)};var m=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/index.js"),d=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/transformation/index.js"),s=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/gensync-utils/fs.js");let l=a()(function*(f,p){let h=Object.assign({},p,{filename:f}),y=yield*(0,m.default)(h);if(y===null)return null;let b=yield*s.readFile(f,"utf8");return yield*(0,d.run)(y,b)})},"./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/transform.js":(o,r,u)=>{"use strict";function a(){let f=u("./node_modules/.pnpm/gensync@1.0.0-beta.2/node_modules/gensync/index.js");return a=function(){return f},f}Object.defineProperty(r,"__esModule",{value:!0}),r.transform=void 0,r.transformAsync=function(...f){return(0,s.beginHiddenCallStack)(l.async)(...f)},r.transformSync=function(...f){return(0,s.beginHiddenCallStack)(l.sync)(...f)};var m=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/index.js"),d=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/transformation/index.js"),s=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/errors/rewrite-stack-trace.js");let l=a()(function*(f,p){let h=yield*(0,m.default)(p);return h===null?null:yield*(0,d.run)(h,f)});r.transform=function(f,p,h){let y,b;if(typeof p=="function"?(b=p,y=void 0):(y=p,b=h),b===void 0)return(0,s.beginHiddenCallStack)(l.sync)(f,y);(0,s.beginHiddenCallStack)(l.errback)(f,y,b)}},"./node_
|
||
|
`+(0,d().codeFrameColumns)(this.code,{start:{line:A.start.line,column:A.start.column+1},end:A.end&&A.start.line===A.end.line?{line:A.end.line,column:A.end.column+1}:void 0},{highlightCode:x})}return new w(S)}}r.default=b},"./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/transformation/file/generate.js":(o,r,u)=>{"use strict";function a(){let s=u("./node_modules/.pnpm/convert-source-map@1.9.0/node_modules/convert-source-map/index.js");return a=function(){return s},s}function m(){let s=u("./node_modules/.pnpm/@babel+generator@7.22.15/node_modules/@babel/generator/lib/index.js");return m=function(){return s},s}Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(s,l){let{opts:f,ast:p,code:h,inputMap:y}=l,{generatorOpts:b}=f;b.inputSourceMap=y==null?void 0:y.toObject();let E=[];for(let A of s)for(let x of A){let{generatorOverride:C}=x;if(C){let P=C(p,b,h,m().default);P!==void 0&&E.push(P)}}let v;if(E.length===0)v=(0,m().default)(p,b,h);else{if(E.length!==1)throw new Error("More than one plugin attempted to override codegen.");if(v=E[0],typeof v.then=="function")throw new Error("You appear to be using an async codegen plugin, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.")}let{code:S,decodedMap:w=v.map}=v;return v.__mergedMap?w=Object.assign({},v.map):w&&(w=y?(0,d.default)(y.toObject(),w,b.sourceFileName):v.map),f.sourceMaps!=="inline"&&f.sourceMaps!=="both"||(S+=`
|
||
|
`+a().fromObject(w).toComment()),f.sourceMaps==="inline"&&(w=null),{outputCode:S,outputMap:w}};var d=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/transformation/file/merge-map.js")},"./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/transformation/file/merge-map.js":(o,r,u)=>{"use strict";function a(){let d=u("./node_modules/.pnpm/@ampproject+remapping@2.2.1/node_modules/@ampproject/remapping/dist/remapping.umd.js");return a=function(){return d},d}function m(d){return Object.assign({},d,{sourceRoot:null})}Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(d,s,l){let f=l.replace(/\\/g,"/"),p=!1,h=a()(m(s),(y,b)=>y!==f||p?null:(p=!0,b.source="",m(d)));return typeof d.sourceRoot=="string"&&(h.sourceRoot=d.sourceRoot),Object.assign({},h)}},"./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/transformation/index.js":(o,r,u)=>{"use strict";function a(){let y=u("./node_modules/.pnpm/@babel+traverse@7.22.15/node_modules/@babel/traverse/lib/index.js");return a=function(){return y},y}Object.defineProperty(r,"__esModule",{value:!0}),r.run=function*(y,b,E){let v=yield*(0,l.default)(y.passes,(0,s.default)(y),b,E),S=v.opts;try{yield*function*(P,D){for(let L of D){let I=[],j=[],M=[];for(let z of L.concat([(0,d.default)()])){let Y=new m.default(P,z.key,z.options);I.push([z,Y]),j.push(Y),M.push(z.visitor)}for(let[z,Y]of I){let $=z.pre;if($){let G=$.call(Y,P);if(yield*[],h(G))throw new Error("You appear to be using an plugin with an async .pre, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.")}}let R=a().default.visitors.merge(M,j,P.opts.wrapPluginVisitorMethod);(0,a().default)(P.ast,R,P.scope);for(let[z,Y]of I){let $=z.post;if($){let G=$.call(Y,P);if(yield*[],h(G))throw new Error("You appear to be using an plugin with an async .post, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.")}}}}(v,y.passes)}catch(P){var w;throw P.message=`${(w=S.filename)!=null?w:"unknown file"}: ${P.message}`,P.code||(P.code="BABEL_TRANSFORM_ERROR"),P}let A,x;try{S.code!==!1&&({outputCode:A,outputMap:x}=(0,f.default)(y.passes,v))}catch(P){var C;throw P.message=`${(C=S.filename)!=null?C:"unknown file"}: ${P.message}`,P.code||(P.code="BABEL_GENERATE_ERROR"),P}return{metadata:v.metadata,options:S,ast:S.ast===!0?v.ast:null,code:A===void 0?null:A,map:x===void 0?null:x,sourceType:v.ast.program.sourceType,externalDependencies:(0,p.flattenToSet)(y.externalDependencies)}};var m=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/transformation/plugin-pass.js"),d=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/transformation/block-hoist-plugin.js"),s=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/transformation/normalize-opts.js"),l=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/transformation/normalize-file.js"),f=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/transformation/file/generate.js"),p=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/config/helpers/deep-array.js");function h(y){return!(!y||typeof y!="object"&&typeof y!="function"||!y.then||typeof y.then!="function")}},"./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/transformation/normalize-file.js":(o,r,u)=>{"use strict";function a(){let x=u("fs");return a=function(){return x},x}function m(){let x=u("path");return m=function(){return x},x}function d(){let x=u("./node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/index.js");return d=function(){return x},x}function s(){let x=u("./node_modules/.pnpm/@babel+types@7.22.15/node_modules/@babel/types/lib/index.js");return s=function(){return x},x}function l(){let x=u("./node_modules/.pnpm/convert-source-map@1.9.0/node_modules/convert-source-map/index.js");return l=function(){return x},x}Object.defineProperty(r,"__esModule",{value:!0})
|
||
|
Automatic extension resolution of the "main" field isdeprecated for ES modules.`,"DeprecationWarning","DEP0151"):d().emitWarning(`No "main" or "exports" field defined in the package.json for ${ot} resolving the main entry point "${rt.slice(ot.length)}", imported from ${Ve}.
|
||
|
Default "index" lookups for the main are deprecated for ES modules.`,"DeprecationWarning","DEP0151")}function dt(re){try{return(0,m().statSync)(re)}catch{return new(m()).Stats}}function Ue(re){let ie=(0,m().statSync)(re,{throwIfNoEntry:!1}),Ne=ie?ie.isFile():void 0;return Ne!=null&&Ne}function ce(re,ie,Ne){let Be;if(ie.main!==void 0){if(Be=new(s()).URL(ie.main,re),Ue(Be))return Be;let Ve=[`./${ie.main}.js`,`./${ie.main}.json`,`./${ie.main}.node`,`./${ie.main}/index.js`,`./${ie.main}/index.json`,`./${ie.main}/index.node`],ft=-1;for(;++ft<Ve.length&&(Be=new(s()).URL(Ve[ft],re),!Ue(Be));)Be=void 0;if(Be)return pt(Be,re,Ne,ie.main),Be}let rt=["./index.js","./index.json","./index.node"],ot=-1;for(;++ot<rt.length&&(Be=new(s()).URL(rt[ot],re),!Ue(Be));)Be=void 0;if(Be)return pt(Be,re,Ne,ie.main),Be;throw new Ae((0,s().fileURLToPath)(new(s()).URL(".",re)),(0,s().fileURLToPath)(Ne))}function xe(re,ie,Ne){return new Me((0,s().fileURLToPath)(new(s()).URL(".",ie)),re,Ne&&(0,s().fileURLToPath)(Ne))}function he(re,ie,Ne,Be,rt){return ie=typeof ie=="object"&&ie!==null?JSON.stringify(ie,null,""):`${ie}`,new de((0,s().fileURLToPath)(new(s()).URL(".",Ne)),re,ie,Be,rt&&(0,s().fileURLToPath)(rt))}function ve(re,ie,Ne,Be,rt,ot,Ve,ft,Pt){if(ie!==""&&!ot&&re[re.length-1]!=="/")throw he(Ne,re,Be,Ve,rt);if(!re.startsWith("./")){if(Ve&&!re.startsWith("../")&&!re.startsWith("/")){let Et=!1;try{new(s()).URL(re),Et=!0}catch{}if(!Et)return er(ot?W.call(J,re,()=>ie):re+ie,Be,Pt)}throw he(Ne,re,Be,Ve,rt)}if(be.exec(re.slice(2))!==null){if(Ee.exec(re.slice(2))!==null)throw he(Ne,re,Be,Ve,rt);if(!ft){let Et=ot?Ne.replace("*",()=>ie):Ne+ie;Qe(ot?W.call(J,re,()=>ie):re,Et,Ne,Be,Ve,rt,!0)}}let $t=new(s()).URL(re,Be),tt=$t.pathname,Tt=new(s()).URL(".",Be).pathname;if(!tt.startsWith(Tt))throw he(Ne,re,Be,Ve,rt);if(ie==="")return $t;if(be.exec(ie)!==null){let Et=ot?Ne.replace("*",()=>ie):Ne+ie;Ee.exec(ie)===null?ft||Qe(ot?W.call(J,re,()=>ie):re,Et,Ne,Be,Ve,rt,!1):function(qt,Xt,mr,ar,qr){let Lt=`request is not a valid match in pattern "${Xt}" for the "${ar?"imports":"exports"}" resolution of ${(0,s().fileURLToPath)(mr)}`;throw new ne(qt,Lt,qr&&(0,s().fileURLToPath)(qr))}(Et,Ne,Be,Ve,rt)}return ot?new(s()).URL(W.call(J,$t.href,()=>ie)):new(s()).URL(ie,$t)}function et(re){let ie=Number(re);return`${ie}`===re&&ie>=0&&ie<4294967295}function ut(re,ie,Ne,Be,rt,ot,Ve,ft,Pt){if(typeof ie=="string")return ve(ie,Ne,Be,re,rt,ot,Ve,ft,Pt);if(Array.isArray(ie)){let $t=ie;if($t.length===0)return null;let tt,Tt=-1;for(;++Tt<$t.length;){let Et=$t[Tt],qt;try{qt=ut(re,Et,Ne,Be,rt,ot,Ve,ft,Pt)}catch(Xt){if(tt=Xt,Xt.code==="ERR_INVALID_PACKAGE_TARGET")continue;throw Xt}if(qt!==void 0){if(qt!==null)return qt;tt=null}}if(tt==null)return null;throw tt}if(typeof ie=="object"&&ie!==null){let $t=Object.getOwnPropertyNames(ie),tt=-1;for(;++tt<$t.length;)if(et($t[tt]))throw new ue((0,s().fileURLToPath)(re),rt,'"exports" cannot contain numeric property keys.');for(tt=-1;++tt<$t.length;){let Tt=$t[tt];if(Tt==="default"||Pt&&Pt.has(Tt)){let Et=ut(re,ie[Tt],Ne,Be,rt,ot,Ve,ft,Pt);if(Et===void 0)continue;return Et}}return null}if(ie===null)return null;throw he(Be,ie,re,Ve,rt)}function Kt(re,ie,Ne){let Be=(0,s().fileURLToPath)(ie);Ke.has(Be+"|"+re)||(Ke.add(Be+"|"+re),d().emitWarning(`Use of deprecated trailing slash pattern mapping "${re}" in the "exports" field module resolution of the package at ${Be}${Ne?` imported from ${(0,s().fileURLToPath)(Ne)}`:""}. Mapping specifiers ending in "/" is no longer supported.`,"DeprecationWarning","DEP0155"))}function zt(re,ie,Ne,Be,rt){let ot=Ne.exports;if(function(tt,Tt,Et){if(typeof tt=="string"||Array.isArray(tt))return!0;if(typeof tt!="object"||tt===null)return!1;let qt=Object.getOwnPropertyNames(tt),Xt=!1,mr=0,ar=-1;for(;++ar<qt.length;){let qr=qt[ar],Lt=qr===""||qr[0]!==".";if(mr++==0)Xt=Lt;else if(Xt!==Lt)throw new ue((0,s().fileURLToPath)(Tt),Et,`"exports" cannot contain some keys starting with '.' and some not. The exports object must either be an object of package subpath keys or an object of main entry condition name keys only.`)}return Xt}(ot
|
||
|
`),E=0;for(b!==0&&this._mark(y,l,f,p,h);b!==-1;)s.line++,s.column=0,E=b+1,E<d&&y!==void 0&&this._mark(++y,0,null,null,h),b=u.indexOf(`
|
||
|
`,E);s.column+=d-E}_mark(u,a,m,d,s){var l;(l=this._map)==null||l.mark(this._position,u,a,m,d,s)}removeTrailingNewline(){let u=this._queueCursor;u!==0&&this._queue[u-1].char===10&&this._queueCursor--}removeLastSemicolon(){let u=this._queueCursor;u!==0&&this._queue[u-1].char===59&&this._queueCursor--}getLastChar(){let u=this._queueCursor;return u!==0?this._queue[u-1].char:this._last}getNewlineCount(){let u=this._queueCursor,a=0;if(u===0)return this._last===10?1:0;for(let m=u-1;m>=0&&this._queue[m].char===10;m--)a++;return a===u&&this._last===10?a+1:a}endsWithCharAndNewline(){let u=this._queue,a=this._queueCursor;if(a!==0)return u[a-1].char!==10?void 0:a>1?u[a-2].char:this._last}hasContent(){return this._queueCursor!==0||!!this._last}exactSource(u,a){if(!this._map)return void a();this.source("start",u);let m=u.identifierName,d=this._sourcePosition;m&&(this._canMarkIdName=!1,d.identifierName=m),a(),m&&(this._canMarkIdName=!0,d.identifierName=void 0,d.identifierNamePos=void 0),this.source("end",u)}source(u,a){this._map&&this._normalizePosition(u,a,0)}sourceWithOffset(u,a,m){this._map&&this._normalizePosition(u,a,m)}withSource(u,a,m){this._map&&this.source(u,a),m()}_normalizePosition(u,a,m){let d=a[u],s=this._sourcePosition;d&&(s.line=d.line,s.column=Math.max(d.column+m,0),s.filename=a.filename)}getCurrentColumn(){let u=this._queue,a=this._queueCursor,m=-1,d=0;for(let s=0;s<a;s++){let l=u[s];l.char===10&&(m=d),d+=l.repeat}return m===-1?this._position.column+d:d-1-m}getCurrentLine(){let u=0,a=this._queue;for(let m=0;m<this._queueCursor;m++)a[m].char===10&&u++;return this._position.line+u}}},"./node_modules/.pnpm/@babel+generator@7.22.15/node_modules/@babel/generator/lib/generators/base.js":(o,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.BlockStatement=function(m){var d;this.tokenChar(123);let s=(d=m.directives)==null?void 0:d.length;if(s){var l;let f=m.body.length?2:1;this.printSequence(m.directives,m,{indent:!0,trailingCommentsLineOffset:f}),(l=m.directives[s-1].trailingComments)!=null&&l.length||this.newline(f)}this.printSequence(m.body,m,{indent:!0}),this.rightBrace(m)},r.Directive=function(m){this.print(m.value,m),this.semicolon()},r.DirectiveLiteral=function(m){let d=this.getPossibleRaw(m);if(!this.format.minified&&d!==void 0)return void this.token(d);let{value:s}=m;if(a.test(s)){if(u.test(s))throw new Error("Malformed AST: it is not possible to print a directive containing both unescaped single and double quotes.");this.token(`'${s}'`)}else this.token(`"${s}"`)},r.File=function(m){m.program&&this.print(m.program.interpreter,m),this.print(m.program,m)},r.InterpreterDirective=function(m){this.token(`#!${m.value}`),this.newline(1,!0)},r.Placeholder=function(m){this.token("%%"),this.print(m.name),this.token("%%"),m.expectedNode==="Statement"&&this.semicolon()},r.Program=function(m){var d;this.noIndentInnerCommentsHere(),this.printInnerComments();let s=(d=m.directives)==null?void 0:d.length;if(s){var l;let f=m.body.length?2:1;this.printSequence(m.directives,m,{trailingCommentsLineOffset:f}),(l=m.directives[s-1].trailingComments)!=null&&l.length||this.newline(f)}this.printSequence(m.body,m)};let u=/(?:^|[^\\])(?:\\\\)*'/,a=/(?:^|[^\\])(?:\\\\)*"/},"./node_modules/.pnpm/@babel+generator@7.22.15/node_modules/@babel/generator/lib/generators/classes.js":(o,r,u)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ClassAccessorProperty=function(s){var l;this.printJoin(s.decorators,s);let f=(l=s.key.loc)==null||(l=l.end)==null?void 0:l.line;f&&this.catchUp(f),this.tsPrintClassMemberModifiers(s),this.word("accessor",!0),this.space(),s.computed?(this.tokenChar(91),this.print(s.key,s),this.tokenChar(93)):(this._variance(s),this.print(s.key,s)),s.optional&&this.tokenChar(63),s.definite&&this.tokenChar(33),this.print(s.typeAnnotation,s),s.value&&(this.space(),this.tokenChar(61),this.space(),this.print(s.value,s)),this.semicolon()},r.ClassBody=function(s){this.tokenChar(123),s.body.length===0?this.tokenChar(125):(this.newline(),this.printSequence(s.body,s,{indent:!0}),this.endsWith(10)||this.newline(),
|
||
|
`)}let B=this.format.retainLines?0:this._buf.getCurrentColumn();(this._shouldIndent(47)||this.format.retainLines)&&(B+=this._getIndent()),$=$.replace(/\n(?!$)/g,`
|
||
|
${" ".repeat(B)}`)}}else $=M?`/*${I.value}*/`:`//${I.value}`;this.endsWith(47)&&this._space(),this.source("start",I.loc),this._append($,R),R||M||this.newline(1,!0),z&&j!==3&&this.newline(1)}_printComments(I,j,M,R,z=0){let Y=M.loc,$=j.length,G=!!Y,U=G?Y.start.line:0,B=G?Y.end.line:0,N=0,X=0,H=this._noLineTerminator?function(){}:this.newline.bind(this);for(let F=0;F<$;F++){let W=j[F],V=this._shouldPrintComment(W);if(V===2){G=!1;break}if(G&&W.loc&&V===1){let Q=W.loc.start.line,ne=W.loc.end.line;if(I===0){let ue=0;F===0?!this._buf.hasContent()||W.type!=="CommentLine"&&Q==ne||(ue=X=1):ue=Q-N,N=ne,H(ue),this._printComment(W,1),F+1===$&&(H(Math.max(U-N,X)),N=U)}else if(I===1){let ue=Q-(F===0?U:N);N=ne,H(ue),this._printComment(W,1),F+1===$&&(H(Math.min(1,B-N)),N=B)}else{let ue=Q-(F===0?B-z:N);N=ne,H(ue),this._printComment(W,1)}}else{if(G=!1,V!==1)continue;if($===1){let Q=W.loc?W.loc.start.line===W.loc.end.line:!w.test(W.value),ne=Q&&!f(M)&&!p(R)&&!h(R)&&!y(R);I===0?this._printComment(W,ne&&M.type!=="ObjectExpression"||Q&&l(R,{body:M})?1:0):ne&&I===2?this._printComment(W,1):this._printComment(W,0)}else I!==1||M.type==="ObjectExpression"&&M.properties.length>1||M.type==="ClassBody"||M.type==="TSInterfaceBody"?this._printComment(W,0):this._printComment(W,F===0?2:F===$-1?3:0)}}I===2&&G&&N&&(this._lastCommentLine=N)}}Object.assign(C.prototype,s),C.prototype.Noop=function(){};var P=C;function D(){this.tokenChar(44),this.space()}r.default=P},"./node_modules/.pnpm/@babel+generator@7.22.15/node_modules/@babel/generator/lib/source-map.js":(o,r,u)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var a=u("./node_modules/.pnpm/@jridgewell+gen-mapping@0.3.3/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js"),m=u("./node_modules/.pnpm/@jridgewell+trace-mapping@0.3.19/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js");r.default=class{constructor(d,s){var l;this._map=void 0,this._rawMappings=void 0,this._sourceFileName=void 0,this._lastGenLine=0,this._lastSourceLine=0,this._lastSourceColumn=0,this._inputMap=void 0;let f=this._map=new a.GenMapping({sourceRoot:d.sourceRoot});if(this._sourceFileName=(l=d.sourceFileName)==null?void 0:l.replace(/\\/g,"/"),this._rawMappings=void 0,d.inputSourceMap){this._inputMap=new m.TraceMap(d.inputSourceMap);let h=this._inputMap.resolvedSources;if(h.length)for(let y=0;y<h.length;y++){var p;(0,a.setSourceContent)(f,h[y],(p=this._inputMap.sourcesContent)==null?void 0:p[y])}}if(typeof s!="string"||d.inputSourceMap){if(typeof s=="object")for(let h of Object.keys(s))(0,a.setSourceContent)(f,h.replace(/\\/g,"/"),s[h])}else(0,a.setSourceContent)(f,this._sourceFileName,s)}get(){return(0,a.toEncodedMap)(this._map)}getDecoded(){return(0,a.toDecodedMap)(this._map)}getRawMappings(){return this._rawMappings||(this._rawMappings=(0,a.allMappings)(this._map))}mark(d,s,l,f,p,h){var y;let b;if(this._rawMappings=void 0,s!=null)if(this._inputMap){if(b=(0,m.originalPositionFor)(this._inputMap,{line:s,column:l}),!b.name&&p){let E=(0,m.originalPositionFor)(this._inputMap,p);E.name&&(f=E.name)}}else b={source:(h==null?void 0:h.replace(/\\/g,"/"))||this._sourceFileName,line:s,column:l};(0,a.maybeAddMapping)(this._map,{name:f,generated:d,source:(y=b)==null?void 0:y.source,original:b})}}},"./node_modules/.pnpm/@babel+helper-annotate-as-pure@7.22.5/node_modules/@babel/helper-annotate-as-pure/lib/index.js":(o,r,u)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(l){let f=l.node||l;s(f)||m(f,"leading",d)};var a=u("./node_modules/.pnpm/@babel+types@7.22.15/node_modules/@babel/types/lib/index.js");let{addComment:m}=a,d="#__PURE__",s=({leadingComments:l})=>!!l&&l.some(f=>/[@#]__PURE__/.test(f.value))},"./node_modules/.pnpm/@babel+helper-create-class-features-plugin@7.22.15_@babel+core@7.22.15/node_modules/@babel/helper-create-class-features-plugin/lib/decorators.js":(o,r,u)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.buildDecoratedClass=function(h,y,b,E){let{node:v,scope:S}=y,w=S.generateUidIdentifier("initialize"),A=v.id&&y.isDecla
|
||
|
${function(R){return R.addHelper("decorate")}(E)}(
|
||
|
${D||a.types.nullLiteral()},
|
||
|
function (${w}, ${C?a.types.cloneNode(P):null}) {
|
||
|
${v}
|
||
|
return { F: ${a.types.cloneNode(v.id)}, d: ${L} };
|
||
|
},
|
||
|
${C}
|
||
|
)
|
||
|
`;x||I.arguments[1].body.directives.push(a.types.directive(a.types.directiveLiteral("use strict")));let j=I,M="arguments.1.body.body.0";return A&&(j=a.template.statement.ast`let ${h} = ${I}`,M="declarations.0.init."+M),{instanceNodes:[a.template.statement.ast`${a.types.cloneNode(w)}(this)`],wrapClass:R=>(R.replaceWith(j),R.get(M))}},r.hasDecorators=function(h){return s(h)||h.body.body.some(s)},r.hasOwnDecorators=s;var a=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/index.js"),m=u("./node_modules/.pnpm/@babel+helper-replace-supers@7.22.9_@babel+core@7.22.15/node_modules/@babel/helper-replace-supers/lib/index.js"),d=u("./node_modules/.pnpm/@babel+helper-function-name@7.22.5/node_modules/@babel/helper-function-name/lib/index.js");function s(h){var y;return!((y=h.decorators)==null||!y.length)}function l(h,y){return y?a.types.objectProperty(a.types.identifier(h),y):null}function f(h){let y;return h.decorators&&h.decorators.length>0&&(y=a.types.arrayExpression(h.decorators.map(b=>b.expression))),h.decorators=void 0,y}function p(h){return h.computed?h.key:a.types.isIdentifier(h.key)?a.types.stringLiteral(h.key.name):a.types.stringLiteral(String(h.key.value))}},"./node_modules/.pnpm/@babel+helper-create-class-features-plugin@7.22.15_@babel+core@7.22.15/node_modules/@babel/helper-create-class-features-plugin/lib/features.js":(o,r,u)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.FEATURES=void 0,r.enableFeature=function(E,v,S){p(E,v)&&!b(E,v)||(E.set(s,E.get(s)|v),S==="#__internal__@babel/preset-env__prefer-true-but-false-is-ok-if-it-prevents-an-error"?(y(E,v,!0),E.set(f,E.get(f)|v)):S==="#__internal__@babel/preset-env__prefer-false-but-true-is-ok-if-it-prevents-an-error"?(y(E,v,!1),E.set(f,E.get(f)|v)):y(E,v,S));let w,A;for(let[x,C]of d){if(!p(E,x))continue;let P=h(E,x);if(!b(E,x)){if(w===!P)throw new Error("'loose' mode configuration must be the same for @babel/plugin-transform-class-properties, @babel/plugin-transform-private-methods and @babel/plugin-transform-private-property-in-object (when they are enabled).");w=P,A=C}}if(w!==void 0)for(let[x,C]of d)p(E,x)&&h(E,x)!==w&&(y(E,x,w),console.warn(`Though the "loose" option was set to "${!w}" in your @babel/preset-env config, it will not be used for ${C} since the "loose" mode option was set to "${w}" for ${A}.
|
||
|
The "loose" option must be the same for @babel/plugin-transform-class-properties, @babel/plugin-transform-private-methods and @babel/plugin-transform-private-property-in-object (when they are enabled): you can silence this warning by explicitly adding
|
||
|
["${C}", { "loose": ${w} }]
|
||
|
to the "plugins" section of your Babel config.`))},r.isLoose=h,r.shouldTransform=function(E,v){let S=null,w=null,A=null,x=null,C=null;(0,a.hasOwnDecorators)(E.node)&&(S=E.get("decorators.0"));for(let P of E.get("body.body"))!S&&(0,a.hasOwnDecorators)(P.node)&&(S=P.get("decorators.0")),!w&&P.isClassProperty()&&(w=P),!A&&P.isClassPrivateProperty()&&(A=P),!x&&P.isClassPrivateMethod!=null&&P.isClassPrivateMethod()&&(x=P),!C&&P.isStaticBlock!=null&&P.isStaticBlock()&&(C=P);if(S&&A)throw A.buildCodeFrameError("Private fields in decorated classes are not supported yet.");if(S&&x)throw x.buildCodeFrameError("Private methods in decorated classes are not supported yet.");if(S&&!p(v,m.decorators))throw E.buildCodeFrameError(`Decorators are not enabled.
|
||
|
If you are using ["@babel/plugin-proposal-decorators", { "version": "legacy" }], make sure it comes *before* "@babel/plugin-transform-class-properties" and enable loose mode, like so:
|
||
|
["@babel/plugin-proposal-decorators", { "version": "legacy" }]
|
||
|
["@babel/plugin-transform-class-properties", { "loose": true }]`);if(x&&!p(v,m.privateMethods))throw x.buildCodeFrameError("Class private methods are not enabled. Please add `@babel/plugin-transform-private-methods` to your configuration.");if((w||A)&&!p(v,m.fields)&&!p(v,m.privateMethods))throw E.buildCodeFrameError("Class fields are not enabled. Please add `@babel/plugin-transform-class-properties` to your configuration.");if(C&&!p(v,m.staticBlocks))throw E.buildCodeFrameError("Static class blocks are not enabled. Please add `@babel/plugin-transform-class-static-block` to your configuration.");return!!(S||x||C||(w||A)&&p(v,m.fields))};var a=u("./node_modules/.pnpm/@babel+helper-create-class-features-plugin@7.22.15_@babel+core@7.22.15/node_modules/@babel/helper-create-class-features-plugin/lib/decorators.js");let m=Object.freeze({fields:2,privateMethods:4,decorators:8,privateIn:16,staticBlocks:32});r.FEATURES=m;let d=new Map([[m.fields,"@babel/plugin-transform-class-properties"],[m.privateMethods,"@babel/plugin-transform-private-methods"],[m.privateIn,"@babel/plugin-transform-private-property-in-object"]]),s="@babel/plugin-class-features/featuresKey",l="@babel/plugin-class-features/looseKey",f="@babel/plugin-class-features/looseLowPriorityKey/#__internal__@babel/preset-env__please-overwrite-loose-instead-of-throwing";function p(E,v){return!!(E.get(s)&v)}function h(E,v){return!!(E.get(l)&v)}function y(E,v,S){S?E.set(l,E.get(l)|v):E.set(l,E.get(l)&~v),E.set(f,E.get(f)&~v)}function b(E,v){return!!(E.get(f)&v)}},"./node_modules/.pnpm/@babel+helper-create-class-features-plugin@7.22.15_@babel+core@7.22.15/node_modules/@babel/helper-create-class-features-plugin/lib/fields.js":(o,r,u)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.buildCheckInRHS=v,r.buildFieldsInitNodes=function(B,N,X,H,F,W,V,Q,ne){var ue;let de,Ae=0,Oe=[],Me=[],ae=[],se=null,ye=a.types.isIdentifier(N)?()=>N:()=>(de!=null||(de=X[0].scope.generateUidIdentifierBasedOnNode(N)),de),be=(ue=B)!=null?ue:X[0].scope.generateUidIdentifier("class");B!=null||(B=a.types.cloneNode(ne));for(let Ee of X){Ee.isClassProperty()&&h.assertFieldTransformed(Ee);let oe=!(a.types.isStaticBlock!=null&&a.types.isStaticBlock(Ee.node))&&Ee.node.static,J=!oe,De=Ee.isPrivate(),Ke=!De,ke=Ee.isProperty(),Qe=!ke,pt=Ee.isStaticBlock==null?void 0:Ee.isStaticBlock();switch(oe&&(Ae|=1),(oe||Qe&&De||pt)&&(new m.default({methodPath:Ee,constantSuper:Q,file:F,refToPreserve:ne,getSuperRef:ye,getObjectRef:()=>(Ae|=2,oe||pt?be:a.types.memberExpression(be,a.types.identifier("prototype")))}).replace(),$(Ee,be,ne)&&(Ae|=2)),!0){case pt:{let dt=Ee.node.body;dt.length===1&&a.types.isExpressionStatement(dt[0])?Oe.push(U(dt[0],Ee)):Oe.push(a.types.inheritsComments(a.template.statement.ast`(() => { ${dt} })()`,Ee.node));break}case(oe&&De&&ke&&V):Oe.push(x(a.types.cloneNode(B),Ee,H));break;case(oe&&De&&ke&&!V):Oe.push(P(Ee,H));break;case(oe&&Ke&&ke&&W):if(!G(Ee.node)){Oe.push(I(a.types.cloneNode(B),Ee));break}case(oe&&Ke&&ke&&!W):Oe.push(j(a.types.cloneNode(B),Ee,F));break;case(J&&De&&ke&&V):Me.push(x(a.types.thisExpression(),Ee,H));break;case(J&&De&&ke&&!V):Me.push(C(a.types.thisExpression(),Ee,H,F));break;case(J&&De&&Qe&&V):Me.unshift(D(a.types.thisExpression(),Ee,H)),ae.push(R(Ee,H,V));break;case(J&&De&&Qe&&!V):Me.unshift(L(a.types.thisExpression(),Ee,H,F)),ae.push(R(Ee,H,V));break;case(oe&&De&&Qe&&!V):Oe.unshift(P(Ee,H)),ae.push(R(Ee,H,V));break;case(oe&&De&&Qe&&V):Oe.unshift(M(a.types.cloneNode(B),Ee,F,H)),ae.push(R(Ee,H,V));break;case(J&&Ke&&ke&&W):Me.push(I(a.types.thisExpression(),Ee));break;case(J&&Ke&&ke&&!W):Me.push(j(a.types.thisExpression(),Ee,F));break;default:throw new Error("Unreachable.")}}return 2&Ae&&ne!=null&&(se=a.types.expressionStatement(a.types.assignmentExpression("=",a.types.cloneNode(be),a.types.cloneNode(ne)))),{staticNodes:Oe.filter(Boolean),instanceNodes:Me.filter(Boolean),pureStaticNodes:ae.filter(Boolean),classBindingNode:se,wrapClass(Ee){for(let oe of X)oe.node.leadingComments=null,oe.remove();return de&&(Ee.scope.push({id:a.types.cloneNode(de)}),Ee.set("super
|
||
|
Object.prototype.hasOwnProperty.call(${v(F,N)}, ${a.types.cloneNode(Ae)})
|
||
|
`)}let{id:ue,static:de}=V.get(ne);de?B.replaceWith(a.template.expression.ast`${v(F,N)} === ${a.types.cloneNode(this.classRef)}`):B.replaceWith(a.template.expression.ast`${a.types.cloneNode(ue)}.has(${v(F,N)})`)}}),w={memoise(B,N){let{scope:X}=B,{object:H}=B.node,F=X.maybeGenerateMemoised(H);F&&this.memoiser.set(H,F,N)},receiver(B){let{object:N}=B.node;return this.memoiser.has(N)?a.types.cloneNode(this.memoiser.get(N)):a.types.cloneNode(N)},get(B){let{classRef:N,privateNamesMap:X,file:H,innerBinding:F}=this,{name:W}=B.node.property.id,{id:V,static:Q,method:ne,methodId:ue,getId:de,setId:Ae}=X.get(W),Oe=de||Ae;if(Q){let Me=ne&&!Oe?"classStaticPrivateMethodGet":"classStaticPrivateFieldSpecGet";return E(N.name,B.scope,F),a.types.callExpression(H.addHelper(Me),[this.receiver(B),a.types.cloneNode(N),a.types.cloneNode(V)])}if(ne){if(Oe){if(!de&&Ae){if(H.availableHelper("writeOnlyError"))return a.types.sequenceExpression([this.receiver(B),a.types.callExpression(H.addHelper("writeOnlyError"),[a.types.stringLiteral(`#${W}`)])]);console.warn("@babel/helpers is outdated, update it to silence this warning.")}return a.types.callExpression(H.addHelper("classPrivateFieldGet"),[this.receiver(B),a.types.cloneNode(V)])}return a.types.callExpression(H.addHelper("classPrivateMethodGet"),[this.receiver(B),a.types.cloneNode(V),a.types.cloneNode(ue)])}return a.types.callExpression(H.addHelper("classPrivateFieldGet"),[this.receiver(B),a.types.cloneNode(V)])},boundGet(B){return this.memoise(B,1),a.types.callExpression(a.types.memberExpression(this.get(B),a.types.identifier("bind")),[this.receiver(B)])},set(B,N){let{classRef:X,privateNamesMap:H,file:F}=this,{name:W}=B.node.property.id,{id:V,static:Q,method:ne,setId:ue,getId:de}=H.get(W);if(Q){let Ae=ne&&!(de||ue)?"classStaticPrivateMethodSet":"classStaticPrivateFieldSpecSet";return a.types.callExpression(F.addHelper(Ae),[this.receiver(B),a.types.cloneNode(X),a.types.cloneNode(V),N])}return ne?ue?a.types.callExpression(F.addHelper("classPrivateFieldSet"),[this.receiver(B),a.types.cloneNode(V),N]):a.types.sequenceExpression([this.receiver(B),N,a.types.callExpression(F.addHelper("readOnlyError"),[a.types.stringLiteral(`#${W}`)])]):a.types.callExpression(F.addHelper("classPrivateFieldSet"),[this.receiver(B),a.types.cloneNode(V),N])},destructureSet(B){let{classRef:N,privateNamesMap:X,file:H}=this,{name:F}=B.node.property.id,{id:W,static:V}=X.get(F);if(V){try{var Q=H.addHelper("classStaticPrivateFieldDestructureSet")}catch{throw new Error("Babel can not transpile `[C.#p] = [0]` with @babel/helpers < 7.13.10, \nplease update @babel/helpers to the latest version.")}return a.types.memberExpression(a.types.callExpression(Q,[this.receiver(B),a.types.cloneNode(N),a.types.cloneNode(W)]),a.types.identifier("value"))}return a.types.memberExpression(a.types.callExpression(H.addHelper("classPrivateFieldDestructureSet"),[this.receiver(B),a.types.cloneNode(W)]),a.types.identifier("value"))},call(B,N){return this.memoise(B,1),(0,l.default)(this.get(B),this.receiver(B),N,!1)},optionalCall(B,N){return this.memoise(B,1),(0,l.default)(this.get(B),this.receiver(B),N,!0)},delete(){throw new Error("Internal Babel error: deleting private elements is a parsing error.")}},A={get(B){let{privateNamesMap:N,file:X}=this,{object:H}=B.node,{name:F}=B.node.property.id;return a.template.expression`BASE(REF, PROP)[PROP]`({BASE:X.addHelper("classPrivateFieldLooseBase"),REF:a.types.cloneNode(H),PROP:a.types.cloneNode(N.get(F).id)})},set(){throw new Error("private name handler with loose = true don't need set()")},boundGet(B){return a.types.callExpression(a.types.memberExpression(this.get(B),a.types.identifier("bind")),[a.types.cloneNode(B.node.object)])},simpleSet(B){return this.get(B)},destructureSet(B){return this.get(B)},call(B,N){return a.types.callExpression(this.get(B),N)},optionalCall(B,N){return a.types.optionalCallExpression(this.get(B),N,!0)},delete(){throw new Error("Internal Babel error: deleting private elements is a parsing error.")}};function x(B,N,X){let{id:H}=X.get(N.node.key.id.name),F=N.node.value||N.scope.buildU
|
||
|
Object.defineProperty(${B}, ${a.types.cloneNode(H)}, {
|
||
|
// configurable is false by default
|
||
|
// enumerable is false by default
|
||
|
writable: true,
|
||
|
value: ${F}
|
||
|
});
|
||
|
`,N)}function C(B,N,X,H){let{id:F}=X.get(N.node.key.id.name),W=N.node.value||N.scope.buildUndefinedNode();if(!H.availableHelper("classPrivateFieldInitSpec"))return U(a.template.statement.ast`${a.types.cloneNode(F)}.set(${B}, {
|
||
|
// configurable is always false for private elements
|
||
|
// enumerable is always false for private elements
|
||
|
writable: true,
|
||
|
value: ${W},
|
||
|
})`,N);let V=H.addHelper("classPrivateFieldInitSpec");return U(a.template.statement.ast`${V}(
|
||
|
${a.types.thisExpression()},
|
||
|
${a.types.cloneNode(F)},
|
||
|
{
|
||
|
writable: true,
|
||
|
value: ${W}
|
||
|
},
|
||
|
)`,N)}function P(B,N){let X=N.get(B.node.key.id.name),{id:H,getId:F,setId:W,initAdded:V}=X,Q=F||W;if(!B.isProperty()&&(V||!Q))return;if(Q)return N.set(B.node.key.id.name,Object.assign({},X,{initAdded:!0})),U(a.template.statement.ast`
|
||
|
var ${a.types.cloneNode(H)} = {
|
||
|
// configurable is false by default
|
||
|
// enumerable is false by default
|
||
|
// writable is false by default
|
||
|
get: ${F?F.name:B.scope.buildUndefinedNode()},
|
||
|
set: ${W?W.name:B.scope.buildUndefinedNode()}
|
||
|
}
|
||
|
`,B);let ne=B.node.value||B.scope.buildUndefinedNode();return U(a.template.statement.ast`
|
||
|
var ${a.types.cloneNode(H)} = {
|
||
|
// configurable is false by default
|
||
|
// enumerable is false by default
|
||
|
writable: true,
|
||
|
value: ${ne}
|
||
|
};
|
||
|
`,B)}function D(B,N,X){let H=X.get(N.node.key.id.name),{methodId:F,id:W,getId:V,setId:Q,initAdded:ne}=H;if(!ne)return F?U(a.template.statement.ast`
|
||
|
Object.defineProperty(${B}, ${W}, {
|
||
|
// configurable is false by default
|
||
|
// enumerable is false by default
|
||
|
// writable is false by default
|
||
|
value: ${F.name}
|
||
|
});
|
||
|
`,N):V||Q?(X.set(N.node.key.id.name,Object.assign({},H,{initAdded:!0})),U(a.template.statement.ast`
|
||
|
Object.defineProperty(${B}, ${W}, {
|
||
|
// configurable is false by default
|
||
|
// enumerable is false by default
|
||
|
// writable is false by default
|
||
|
get: ${V?V.name:N.scope.buildUndefinedNode()},
|
||
|
set: ${Q?Q.name:N.scope.buildUndefinedNode()}
|
||
|
});
|
||
|
`,N)):void 0}function L(B,N,X,H){let F=X.get(N.node.key.id.name),{getId:W,setId:V,initAdded:Q}=F;if(!Q)return W||V?function(ne,ue,de,Ae){let Oe=de.get(ue.node.key.id.name),{id:Me,getId:ae,setId:se}=Oe;if(de.set(ue.node.key.id.name,Object.assign({},Oe,{initAdded:!0})),!Ae.availableHelper("classPrivateFieldInitSpec"))return U(a.template.statement.ast`
|
||
|
${Me}.set(${ne}, {
|
||
|
get: ${ae?ae.name:ue.scope.buildUndefinedNode()},
|
||
|
set: ${se?se.name:ue.scope.buildUndefinedNode()}
|
||
|
});
|
||
|
`,ue);let ye=Ae.addHelper("classPrivateFieldInitSpec");return U(a.template.statement.ast`${ye}(
|
||
|
${a.types.thisExpression()},
|
||
|
${a.types.cloneNode(Me)},
|
||
|
{
|
||
|
get: ${ae?ae.name:ue.scope.buildUndefinedNode()},
|
||
|
set: ${se?se.name:ue.scope.buildUndefinedNode()}
|
||
|
},
|
||
|
)`,ue)}(B,N,X,H):function(ne,ue,de,Ae){let Oe=de.get(ue.node.key.id.name),{id:Me}=Oe;if(!Ae.availableHelper("classPrivateMethodInitSpec"))return U(a.template.statement.ast`${Me}.add(${ne})`,ue);let ae=Ae.addHelper("classPrivateMethodInitSpec");return U(a.template.statement.ast`${ae}(
|
||
|
${a.types.thisExpression()},
|
||
|
${a.types.cloneNode(Me)}
|
||
|
)`,ue)}(B,N,X,H)}function I(B,N){let{key:X,computed:H}=N.node,F=N.node.value||N.scope.buildUndefinedNode();return U(a.types.expressionStatement(a.types.assignmentExpression("=",a.types.memberExpression(B,X,H||a.types.isLiteral(X)),F)),N)}function j(B,N,X){let{key:H,computed:F}=N.node,W=N.node.value||N.scope.buildUndefinedNode();return U(a.types.expressionStatement(a.types.callExpression(X.addHelper("defineProperty"),[B,F||a.types.isLiteral(H)?H:a.types.stringLiteral(H.name),W])),N)}function M(B,N,X,H){let F=H.get(N.node.key.id.name),{id:W,methodId:V,getId:Q,setId:ne,initAdded:ue}=F;if(!ue)return Q||ne?(H.set(N.node.key.id.name,Object.assign({},F,{initAdded:!0})),U(a.template.statement.ast`
|
||
|
Object.defineProperty(${B}, ${W}, {
|
||
|
// configurable is false by default
|
||
|
// enumerable is false by default
|
||
|
// writable is false by default
|
||
|
get: ${Q?Q.name:N.scope.buildUndefinedNode()},
|
||
|
set: ${ne?ne.name:N.scope.buildUndefinedNode()}
|
||
|
})
|
||
|
`,N)):U(a.template.statement.ast`
|
||
|
Object.defineProperty(${B}, ${W}, {
|
||
|
// configurable is false by default
|
||
|
// enumerable is false by default
|
||
|
// writable is false by default
|
||
|
value: ${V.name}
|
||
|
});
|
||
|
`,N)}function R(B,N,X=!1){let H=N.get(B.node.key.id.name),{id:F,methodId:W,getId:V,setId:Q,getterDeclared:ne,setterDeclared:ue,static:de}=H,{params:Ae,body:Oe,generator:Me,async:ae}=B.node,se=V&&!ne&&Ae.length===0,ye=Q&&!ue&&Ae.length>0,be=W;return se?(N.set(B.node.key.id.name,Object.assign({},H,{getterDeclared:!0})),be=V):ye?(N.set(B.node.key.id.name,Object.assign({},H,{setterDeclared:!0})),be=Q):de&&!X&&(be=F),U(a.types.functionDeclaration(a.types.cloneNode(be),Ae,Oe,Me,ae),B)}let z=a.traverse.visitors.merge([{UnaryExpression(B){let{node:N}=B;if(N.operator==="delete"){let X=(0,p.skipTransparentExprWrapperNodes)(N.argument);a.types.isThisExpression(X)&&B.replaceWith(a.types.booleanLiteral(!0))}},ThisExpression(B,N){N.needsClassRef=!0,B.replaceWith(a.types.cloneNode(N.classRef))},MetaProperty(B){let{node:N,scope:X}=B;N.meta.name==="new"&&N.property.name==="target"&&B.replaceWith(X.buildUndefinedNode())}},d.default]),Y={ReferencedIdentifier(B,N){B.scope.bindingIdentifierEquals(B.node.name,N.innerBinding)&&(N.needsClassRef=!0,B.node.name=N.classRef.name)}};function $(B,N,X){var H;let F={classRef:N,needsClassRef:!1,innerBinding:X};return B.isMethod()||B.traverse(z,F),X!=null&&(H=F.classRef)!=null&&H.name&&F.classRef.name!==X.name&&B.traverse(Y,F),F.needsClassRef}function G({key:B,computed:N}){return B.type==="Identifier"?!N&&(B.name==="name"||B.name==="length"):B.type==="StringLiteral"&&(B.value==="name"||B.value==="length")}function U(B,N){return a.types.inheritLeadingComments(B,N.node),a.types.inheritInnerComments(B,N.node),B}},"./node_modules/.pnpm/@babel+helper-create-class-features-plugin@7.22.15_@babel+core@7.22.15/node_modules/@babel/helper-create-class-features-plugin/lib/index.js":(o,r,u)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"FEATURES",{enumerable:!0,get:function(){return h.FEATURES}}),Object.defineProperty(r,"buildCheckInRHS",{enumerable:!0,get:function(){return l.buildCheckInRHS}}),r.createClassFeaturePlugin=function({name:E,feature:v,loose:S,manipulateOptions:w,api:A,inherits:x}){A!=null||(A={assumption:()=>{}});let C=A.assumption("setPublicClassFields"),P=A.assumption("privateFieldsAsSymbols"),D=A.assumption("privateFieldsAsProperties"),L=A.assumption("constantSuper"),I=A.assumption("noDocumentAll");if(D&&P)throw new Error('Cannot enable both the "privateFieldsAsProperties" and "privateFieldsAsSymbols" assumptions as the same time.');let j=D||P;if(S===!0){let M=[];C!==void 0&&M.push('"setPublicClassFields"'),D!==void 0&&M.push('"privateFieldsAsProperties"'),P!==void 0&&M.push('"privateFieldsAsSymbols"'),M.length!==0&&console.warn(`[${E}]: You are using the "loose: true" option and you are explicitly setting a value for the ${M.join(" and ")} assumption${M.length>1?"s":""}. The "loose" option can cause incompatibilities with the other class features plugins, so it's recommended that you replace it with the following top-level option:
|
||
|
"assumptions": {
|
||
|
"setPublicClassFields": true,
|
||
|
"privateFieldsAsSymbols": true
|
||
|
}`)}return{name:E,manipulateOptions:w,inherits:x,pre(M){(0,h.enableFeature)(M,v,S),typeof M.get(b)!="number"&&M.get(b)&&!s.lt(M.get(b),"7.22.15")||M.set(b,"7.22.15")},visitor:{Class(M,{file:R}){var z;if(R.get(b)!=="7.22.15"||!(0,h.shouldTransform)(M,R))return;let Y=M.isClassDeclaration();Y&&(0,y.assertFieldTransformed)(M);let $=(0,h.isLoose)(R,v),G,U=(0,f.hasDecorators)(M.node),B=[],N=[],X=[],H=new Set,F=M.get("body");for(let be of F.get("body")){if((be.isClassProperty()||be.isClassMethod())&&be.node.computed&&X.push(be),be.isPrivate()){let{name:Ee}=be.node.key.id,oe=`get ${Ee}`,J=`set ${Ee}`;if(be.isClassPrivateMethod()){if(be.node.kind==="get"){if(H.has(oe)||H.has(Ee)&&!H.has(J))throw be.buildCodeFrameError("Duplicate private field");H.add(oe).add(Ee)}else if(be.node.kind==="set"){if(H.has(J)||H.has(Ee)&&!H.has(oe))throw be.buildCodeFrameError("Duplicate private field");H.add(J).add(Ee)}}else{if(H.has(Ee)&&!H.has(oe)&&!H.has(J)||H.has(Ee)&&(H.has(oe)||H.has(J)))throw be.buildCodeFrameError("Duplicate private field");H.add(Ee)}}be.isClassMethod({kind:"constructor"})?G=be:(N.push(be),(be.isProperty()||be.isPrivate()||be.isStaticBlock!=null&&be.isStaticBlock())&&B.push(be))}if(!B.length&&!U)return;let W=M.node.id,V;W&&Y||((0,m.default)(M),V=M.scope.generateUidIdentifier("class"));let Q=(z=V)!=null?z:a.types.cloneNode(W),ne=(0,l.buildPrivateNamesMap)(B),ue=(0,l.buildPrivateNamesNodes)(ne,D??$,P!=null&&P,R),de,Ae,Oe,Me,ae,se;(0,l.transformPrivateNamesUsage)(Q,M,ne,{privateFieldsAsProperties:j??$,noDocumentAll:I,innerBinding:W},R),U?(Ae=Me=de=[],{instanceNodes:Oe,wrapClass:se}=(0,f.buildDecoratedClass)(Q,M,N,R)):(de=(0,p.extractComputedKeys)(M,X,R),{staticNodes:Ae,pureStaticNodes:Me,instanceNodes:Oe,classBindingNode:ae,wrapClass:se}=(0,l.buildFieldsInitNodes)(V,M.node.superClass,B,ne,R,C??$,j??$,L??$,W)),Oe.length>0&&(0,p.injectInitialization)(M,G,Oe,(be,Ee)=>{if(!U)for(let oe of B)a.types.isStaticBlock!=null&&a.types.isStaticBlock(oe.node)||oe.node.static||oe.traverse(be,Ee)});let ye=se(M);ye.insertBefore([...ue,...de]),Ae.length>0&&ye.insertAfter(Ae),Me.length>0&&ye.find(be=>be.isStatement()||be.isDeclaration()).insertAfter(Me),ae!=null&&Y&&ye.insertAfter(ae)},ExportDefaultDeclaration(M,{file:R}){{if(R.get(b)!=="7.22.15")return;let z=M.get("declaration");z.isClassDeclaration()&&(0,f.hasDecorators)(z.node)&&(z.node.id?(0,d.default)(M):z.node.type="ClassExpression")}}}}},Object.defineProperty(r,"enableFeature",{enumerable:!0,get:function(){return h.enableFeature}}),Object.defineProperty(r,"injectInitialization",{enumerable:!0,get:function(){return p.injectInitialization}});var a=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/index.js"),m=u("./node_modules/.pnpm/@babel+helper-function-name@7.22.5/node_modules/@babel/helper-function-name/lib/index.js"),d=u("./node_modules/.pnpm/@babel+helper-split-export-declaration@7.22.6/node_modules/@babel/helper-split-export-declaration/lib/index.js"),s=u("./node_modules/.pnpm/semver@6.3.1/node_modules/semver/semver.js"),l=u("./node_modules/.pnpm/@babel+helper-create-class-features-plugin@7.22.15_@babel+core@7.22.15/node_modules/@babel/helper-create-class-features-plugin/lib/fields.js"),f=u("./node_modules/.pnpm/@babel+helper-create-class-features-plugin@7.22.15_@babel+core@7.22.15/node_modules/@babel/helper-create-class-features-plugin/lib/decorators.js"),p=u("./node_modules/.pnpm/@babel+helper-create-class-features-plugin@7.22.15_@babel+core@7.22.15/node_modules/@babel/helper-create-class-features-plugin/lib/misc.js"),h=u("./node_modules/.pnpm/@babel+helper-create-class-features-plugin@7.22.15_@babel+core@7.22.15/node_modules/@babel/helper-create-class-features-plugin/lib/features.js"),y=u("./node_modules/.pnpm/@babel+helper-create-class-features-plugin@7.22.15_@babel+core@7.22.15/node_modules/@babel/helper-create-class-features-plugin/lib/typescript.js");let b="@babel/plugin-class-features/version"},"./node_modules/.pnpm/@babel+helper-create-class-features-plugin@7.22.15_@babel+core@7.22.15/node_modules/@babel/helper-create-class-features-plugin/lib/misc.js":
|
||
|
If you have already enabled that plugin (or '@babel/preset-typescript'), make sure that it runs before any plugin related to additional class features:
|
||
|
- @babel/plugin-transform-class-properties
|
||
|
- @babel/plugin-transform-private-methods
|
||
|
- @babel/plugin-proposal-decorators`)}},"./node_modules/.pnpm/@babel+helper-environment-visitor@7.22.5/node_modules/@babel/helper-environment-visitor/lib/index.js":(o,r)=>{"use strict";function u(m){let{context:d,node:s}=m;if(s.computed&&d.maybeQueue(m.get("key")),s.decorators)for(let l of m.get("decorators"))d.maybeQueue(l)}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,r.requeueComputedKeyAndDecorators=u,r.skipAllButComputedKey=function(m){m.skip(),m.node.computed&&m.context.maybeQueue(m.get("key"))};var a={FunctionParent(m){m.isArrowFunctionExpression()||(m.skip(),m.isMethod()&&u(m))},Property(m){m.isObjectProperty()||(m.skip(),u(m))}};r.default=a},"./node_modules/.pnpm/@babel+helper-function-name@7.22.5/node_modules/@babel/helper-function-name/lib/index.js":(o,r,u)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function({node:j,parent:M,scope:R,id:z},Y=!1,$=!1){if(j.id)return;if(!S(M)&&!v(M,{kind:"method"})||M.computed&&!b(M.key)){if(C(M)){if(z=M.id,y(z)&&!Y){let B=R.parent.getBinding(z.name);if(B&&B.constant&&R.getBinding(z.name)===B)return j.id=s(z),void(j.id[d]=!0)}}else if(f(M,{operator:"="}))z=M.left;else if(!z)return}else z=M.key;let G;if(z&&b(z)?G=function(B){return E(B)?"null":w(B)?`_${B.pattern}_${B.flags}`:x(B)?B.quasis.map(N=>N.value.raw).join(""):B.value!==void 0?B.value+"":""}(z):z&&y(z)&&(G=z.name),G===void 0||!$&&h(j)&&/[\uD800-\uDFFF]/.test(G))return;G=P(G);let U=l(G);return U[d]=!0,function(B,N,X,H){if(B.selfReference){if(!H.hasBinding(X.name)||H.hasGlobal(X.name)){if(!h(N))return;let F=D;N.generator&&(F=L);let W=F({FUNCTION:N,FUNCTION_ID:X,FUNCTION_KEY:H.generateUidIdentifier(X.name)}).expression,V=W.callee.body.body[0].params;for(let Q=0,ne=function(ue){let de=ue.params.findIndex(Ae=>p(Ae)||A(Ae));return de===-1?ue.params.length:de}(N);Q<ne;Q++)V.push(H.generateUidIdentifier("x"));return W}H.rename(X.name)}N.id=X,H.getProgramParent().references[X.name]=!0}(function(B,N,X){let H={selfAssignment:!1,selfReference:!1,outerDeclar:X.getBindingIdentifier(N),name:N},F=X.getOwnBinding(N);return F?F.kind==="param"&&(H.selfReference=!0):(H.outerDeclar||X.hasGlobal(N))&&X.traverse(B,I,H),H}(j,G,R),j,U,R)||j};var a=u("./node_modules/.pnpm/@babel+template@7.22.15/node_modules/@babel/template/lib/index.js"),m=u("./node_modules/.pnpm/@babel+types@7.22.15/node_modules/@babel/types/lib/index.js");let{NOT_LOCAL_BINDING:d,cloneNode:s,identifier:l,isAssignmentExpression:f,isAssignmentPattern:p,isFunction:h,isIdentifier:y,isLiteral:b,isNullLiteral:E,isObjectMethod:v,isObjectProperty:S,isRegExpLiteral:w,isRestElement:A,isTemplateLiteral:x,isVariableDeclarator:C,toBindingIdentifierName:P}=m,D=a.default.statement(`
|
||
|
(function (FUNCTION_KEY) {
|
||
|
function FUNCTION_ID() {
|
||
|
return FUNCTION_KEY.apply(this, arguments);
|
||
|
}
|
||
|
|
||
|
FUNCTION_ID.toString = function () {
|
||
|
return FUNCTION_KEY.toString();
|
||
|
}
|
||
|
|
||
|
return FUNCTION_ID;
|
||
|
})(FUNCTION)
|
||
|
`),L=a.default.statement(`
|
||
|
(function (FUNCTION_KEY) {
|
||
|
function* FUNCTION_ID() {
|
||
|
return yield* FUNCTION_KEY.apply(this, arguments);
|
||
|
}
|
||
|
|
||
|
FUNCTION_ID.toString = function () {
|
||
|
return FUNCTION_KEY.toString();
|
||
|
};
|
||
|
|
||
|
return FUNCTION_ID;
|
||
|
})(FUNCTION)
|
||
|
`),I={"ReferencedIdentifier|BindingIdentifier"(j,M){j.node.name===M.name&&j.scope.getBindingIdentifier(M.name)===M.outerDeclar&&(M.selfReference=!0,j.stop())}}},"./node_modules/.pnpm/@babel+helper-hoist-variables@7.22.5/node_modules/@babel/helper-hoist-variables/lib/index.js":(o,r,u)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(f,p,h="var"){f.traverse(l,{kind:h,emit:p})};var a=u("./node_modules/.pnpm/@babel+types@7.22.15/node_modules/@babel/types/lib/index.js");let{assignmentExpression:m,expressionStatement:d,identifier:s}=a,l={Scope(f,p){p.kind==="let"&&f.skip()},FunctionParent(f){f.skip()},VariableDeclaration(f,p){if(p.kind&&f.node.kind!==p.kind)return;let h=[],y=f.get("declarations"),b;for(let E of y){b=E.node.id,E.node.init&&h.push(d(m("=",E.node.id,E.node.init)));for(let v of Object.keys(E.getBindingIdentifiers()))p.emit(s(v),v,E.node.init!==null)}f.parentPath.isFor({left:f.node})?f.replaceWith(b):f.replaceWithMultiple(h)}}},"./node_modules/.pnpm/@babel+helper-member-expression-to-functions@7.22.15/node_modules/@babel/helper-member-expression-to-functions/lib/index.js":(o,r,u)=>{"use strict";function a($){if($&&$.__esModule)return $;var G=Object.create(null);return $&&Object.keys($).forEach(function(U){if(U!=="default"){var B=Object.getOwnPropertyDescriptor($,U);Object.defineProperty(G,U,B.get?B:{enumerable:!0,get:function(){return $[U]}})}}),G.default=$,Object.freeze(G)}Object.defineProperty(r,"__esModule",{value:!0});var m=a(u("./node_modules/.pnpm/@babel+types@7.22.15/node_modules/@babel/types/lib/index.js"));function d($){let G=$,{node:U,parentPath:B}=G;if(B.isLogicalExpression()){let{operator:N,right:X}=B.node;if(N==="&&"||N==="||"||N==="??"&&U===X)return d(B)}if(B.isSequenceExpression()){let{expressions:N}=B.node;return N[N.length-1]!==U||d(B)}return B.isConditional({test:U})||B.isUnaryExpression({operator:"!"})||B.isLoop({test:U})}let{LOGICAL_OPERATORS:s,arrowFunctionExpression:l,assignmentExpression:f,binaryExpression:p,booleanLiteral:h,callExpression:y,cloneNode:b,conditionalExpression:E,identifier:v,isMemberExpression:S,isOptionalCallExpression:w,isOptionalMemberExpression:A,isUpdateExpression:x,logicalExpression:C,memberExpression:P,nullLiteral:D,optionalCallExpression:L,optionalMemberExpression:I,sequenceExpression:j,updateExpression:M}=m;class R{constructor(){this._map=void 0,this._map=new WeakMap}has(G){return this._map.has(G)}get(G){if(!this.has(G))return;let U=this._map.get(G),{value:B}=U;return U.count--,U.count===0?f("=",B,G):B}set(G,U,B){return this._map.set(G,{count:B,value:U})}}function z($,G){let{node:U}=$;if(A(U))return P(G,U.property,U.computed);if($.isOptionalCallExpression()){let B=$.get("callee");if($.node.optional&&B.isOptionalMemberExpression()){let N=B.node.object,X=$.scope.maybeGenerateMemoised(N);return B.get("object").replaceWith(f("=",X,N)),y(P(G,v("call")),[X,...$.node.arguments])}return y(G,$.node.arguments)}return $.node}let Y={memoise(){},handle($,G){let{node:U,parent:B,parentPath:N,scope:X}=$;if($.isOptionalMemberExpression()){if(function(oe){for(;oe&&!oe.isProgram();){let{parentPath:J,container:De,listKey:Ke}=oe,ke=J.node;if(Ke){if(De!==ke[Ke])return!0}else if(De!==ke)return!0;oe=J}return!1}($))return;let H=$.find(({node:oe,parent:J})=>A(J)?J.optional||J.object!==oe:!w(J)||oe!==$.node&&J.optional||J.callee!==oe);if(X.path.isPattern())return void H.replaceWith(y(l([],H.node),[]));let F=d(H),W=H.parentPath;if(W.isUpdateExpression({argument:U})||W.isAssignmentExpression({left:U}))throw $.buildCodeFrameError("can't handle assignment");let V=W.isUnaryExpression({operator:"delete"});if(V&&H.isOptionalMemberExpression()&&H.get("property").isPrivateName())throw $.buildCodeFrameError("can't delete a private class element");let Q=$;for(;;)if(Q.isOptionalMemberExpression()){if(Q.node.optional)break;Q=Q.get("object")}else{if(!Q.isOptionalCallExpression())throw new Error(`Internal error: unexpected ${Q.node.type}`);if(Q.node.optional)break;Q=Q.get("callee")}let ne=Q.isOptionalMemberExpression()?Q.node.object:Q.node.callee,ue=X.maybeGenerateMemoised(ne
|
||
|
Promise.resolve().then(() => ${l(f)})
|
||
|
`:l(f);let p=a.types.isTemplateLiteral(f)?a.types.identifier("specifier"):a.types.templateLiteral([a.types.templateElement({raw:""}),a.types.templateElement({raw:""})],[a.types.identifier("specifier")]);return d?a.template.expression.ast`
|
||
|
(specifier =>
|
||
|
new Promise(r => r(${p}))
|
||
|
.then(s => ${l(a.types.identifier("s"))})
|
||
|
)(${f})
|
||
|
`:s?a.template.expression.ast`
|
||
|
(specifier =>
|
||
|
new Promise(r => r(${l(p)}))
|
||
|
)(${f})
|
||
|
`:a.template.expression.ast`
|
||
|
(specifier => ${l(p)})(${f})
|
||
|
`};var a=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/index.js");r.getDynamicImportSource=function(m){let[d]=m.arguments;return a.types.isStringLiteral(d)||a.types.isTemplateLiteral(d)?d:a.template.expression.ast`\`\${${d}}\``}},"./node_modules/.pnpm/@babel+helper-module-transforms@7.22.15_@babel+core@7.22.15/node_modules/@babel/helper-module-transforms/lib/get-module-name.js":(o,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=u;{let a=u;r.default=u=function(m,d){var s,l,f,p;return a(m,{moduleId:(s=d.moduleId)!=null?s:m.moduleId,moduleIds:(l=d.moduleIds)!=null?l:m.moduleIds,getModuleId:(f=d.getModuleId)!=null?f:m.getModuleId,moduleRoot:(p=d.moduleRoot)!=null?p:m.moduleRoot})}}function u(a,m){let{filename:d,filenameRelative:s=d,sourceRoot:l=m.moduleRoot}=a,{moduleId:f,moduleIds:p=!!f,getModuleId:h,moduleRoot:y=l}=m;if(!p)return null;if(f!=null&&!h)return f;let b=y!=null?y+"/":"";if(s){let E=l!=null?new RegExp("^"+l+"/?"):"";b+=s.replace(E,"").replace(/\.(\w*?)$/,"")}return b=b.replace(/\\/g,"/"),h&&h(b)||b}},"./node_modules/.pnpm/@babel+helper-module-transforms@7.22.15_@babel+core@7.22.15/node_modules/@babel/helper-module-transforms/lib/index.js":(o,r,u)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"buildDynamicImport",{enumerable:!0,get:function(){return p.buildDynamicImport}}),r.buildNamespaceInitStatements=function(Y,$,G=!1){let U=[],B=A($.name);$.lazy&&(B=b(B,[]));for(let N of $.importsNamespace)N!==$.name&&U.push(m.template.statement`var NAME = SOURCE;`({NAME:N,SOURCE:E(B)}));G&&U.push(...M(Y,$,!0));for(let N of $.reexportNamespace)U.push(($.lazy?m.template.statement`
|
||
|
Object.defineProperty(EXPORTS, "NAME", {
|
||
|
enumerable: true,
|
||
|
get: function() {
|
||
|
return NAMESPACE;
|
||
|
}
|
||
|
});
|
||
|
`:m.template.statement`EXPORTS.NAME = NAMESPACE;`)({EXPORTS:Y.exportName,NAME:N,NAMESPACE:E(B)}));if($.reexportAll){let N=function(X,H,F){return(F?m.template.statement`
|
||
|
Object.keys(NAMESPACE).forEach(function(key) {
|
||
|
if (key === "default" || key === "__esModule") return;
|
||
|
VERIFY_NAME_LIST;
|
||
|
if (key in EXPORTS && EXPORTS[key] === NAMESPACE[key]) return;
|
||
|
|
||
|
EXPORTS[key] = NAMESPACE[key];
|
||
|
});
|
||
|
`:m.template.statement`
|
||
|
Object.keys(NAMESPACE).forEach(function(key) {
|
||
|
if (key === "default" || key === "__esModule") return;
|
||
|
VERIFY_NAME_LIST;
|
||
|
if (key in EXPORTS && EXPORTS[key] === NAMESPACE[key]) return;
|
||
|
|
||
|
Object.defineProperty(EXPORTS, key, {
|
||
|
enumerable: true,
|
||
|
get: function() {
|
||
|
return NAMESPACE[key];
|
||
|
},
|
||
|
});
|
||
|
});
|
||
|
`)({NAMESPACE:H,EXPORTS:X.exportName,VERIFY_NAME_LIST:X.exportNameListName?m.template`
|
||
|
if (Object.prototype.hasOwnProperty.call(EXPORTS_LIST, key)) return;
|
||
|
`({EXPORTS_LIST:X.exportNameListName}):null})}(Y,E(B),G);N.loc=$.reexportAll.loc,U.push(N)}return U},r.ensureStatementsHoisted=function(Y){Y.forEach($=>{$._blockHoist=3})},Object.defineProperty(r,"getModuleName",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(r,"hasExports",{enumerable:!0,get:function(){return f.hasExports}}),Object.defineProperty(r,"isModule",{enumerable:!0,get:function(){return d.isModule}}),Object.defineProperty(r,"isSideEffectImport",{enumerable:!0,get:function(){return f.isSideEffectImport}}),r.rewriteModuleStatementsAndPrepareHeader=function(Y,{exportName:$,strict:G,allowTopLevelThis:U,strictMode:B,noInterop:N,importInterop:X=N?"none":"babel",lazy:H,esNamespaceOnly:F,filename:W,constantReexports:V=arguments[1].loose,enumerableModuleMeta:Q=arguments[1].loose,noIncompleteNsImportDetection:ne}){(0,f.validateImportInteropOption)(X),a((0,d.isModule)(Y),"Cannot process module statements in a script"),Y.node.sourceType="script";let ue=(0,f.default)(Y,$,{importInterop:X,initializeReexports:V,lazy:H,esNamespaceOnly:F,filename:W});U||(0,s.default)(Y),(0,l.default)(Y,ue),B!==!1&&(Y.node.directives.some(Me=>Me.value.value==="use strict")||Y.unshiftContainer("directives",v(S("use strict"))));let de=[];(0,f.hasExports)(ue)&&!G&&de.push(function(Oe,Me=!1){return(Me?m.template.statement`
|
||
|
EXPORTS.__esModule = true;
|
||
|
`:m.template.statement`
|
||
|
Object.defineProperty(EXPORTS, "__esModule", {
|
||
|
value: true,
|
||
|
});
|
||
|
`)({EXPORTS:Oe.exportName})}(ue,Q));let Ae=function(Oe,Me){let ae=Object.create(null);for(let be of Me.local.values())for(let Ee of be.names)ae[Ee]=!0;let se=!1;for(let be of Me.source.values()){for(let Ee of be.reexports.keys())ae[Ee]=!0;for(let Ee of be.reexportNamespace)ae[Ee]=!0;se=se||!!be.reexportAll}if(!se||Object.keys(ae).length===0)return null;let ye=Oe.scope.generateUidIdentifier("exportNames");return delete ae.default,{name:ye.name,statement:L("var",[I(ye,D(ae))])}}(Y,ue);return Ae&&(ue.exportNameListName=Ae.name,de.push(Ae.statement)),de.push(...function(Oe,Me,ae=!1,se=!1){let ye=[];for(let[Ee,oe]of Me.local)if(oe.kind!=="import"){if(oe.kind==="hoisted")ye.push([oe.names[0],z(Me,oe.names,A(Ee))]);else if(!se)for(let J of oe.names)ye.push([J,null])}for(let Ee of Me.source.values()){if(!ae){let oe=M(Me,Ee,!1),J=[...Ee.reexports.keys()];for(let De=0;De<oe.length;De++)ye.push([J[De],oe[De]])}if(!se)for(let oe of Ee.reexportNamespace)ye.push([oe,null])}ye.sort(([Ee],[oe])=>Ee<oe?-1:oe<Ee?1:0);let be=[];if(se)for(let[,Ee]of ye)be.push(Ee);else for(let oe=0;oe<ye.length;oe+=100){let J=[];for(let De=0;De<100&&oe+De<ye.length;De++){let[Ke,ke]=ye[oe+De];ke!==null?(J.length>0&&(be.push(z(Me,J,Oe.scope.buildUndefinedNode())),J=[]),be.push(ke)):J.push(Ke)}J.length>0&&be.push(z(Me,J,Oe.scope.buildUndefinedNode()))}return be}(Y,ue,V,ne)),{meta:ue,headers:de}},Object.defineProperty(r,"rewriteThis",{enumerable:!0,get:function(){return s.default}}),r.wrapInterop=function(Y,$,G){if(G==="none")return null;if(G==="node-namespace")return b(Y.hub.addHelper("interopRequireWildcard"),[$,y(!0)]);if(G==="node-default")return null;let U;if(G==="default")U="interopRequireDefault";else{if(G!=="namespace")throw new Error(`Unknown interop: ${G}`);U="interopRequireWildcard"}return b(Y.hub.addHelper(U),[$])};var a=u("assert"),m=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/index.js"),d=u("./node_modules/.pnpm/@babel+helper-module-imports@7.22.15/node_modules/@babel/helper-module-imports/lib/index.js"),s=u("./node_modules/.pnpm/@babel+helper-module-transforms@7.22.15_@babel+core@7.22.15/node_modules/@babel/helper-module-transforms/lib/rewrite-this.js"),l=u("./node_modules/.pnpm/@babel+helper-module-transforms@7.22.15_@babel+core@7.22.15/node_modules/@babel/helper-module-transforms/lib/rewrite-live-references.js"),f=u("./node_modules/.pnpm/@babel+helper-module-transforms@7.22.15_@babel+core@7.22.15/node_modules/@babel/helper-module-transforms/lib/normalize-and-load-metadata.js"),p=u("./node_modules/.pnpm/@babel+helper-module-transforms@7.22.15_@babel+core@7.22.15/node_modules/@babel/helper-module-transforms/lib/dynamic-import.js"),h=u("./node_modules/.pnpm/@babel+helper-module-transforms@7.22.15_@babel+core@7.22.15/node_modules/@babel/helper-module-transforms/lib/get-module-name.js");let{booleanLiteral:y,callExpression:b,cloneNode:E,directive:v,directiveLiteral:S,expressionStatement:w,identifier:A,isIdentifier:x,memberExpression:C,stringLiteral:P,valueToNode:D,variableDeclaration:L,variableDeclarator:I}=m.types;r.getDynamicImportSource=u("./node_modules/.pnpm/@babel+helper-module-transforms@7.22.15_@babel+core@7.22.15/node_modules/@babel/helper-module-transforms/lib/dynamic-import.js").getDynamicImportSource;let j={constant:m.template.statement`EXPORTS.EXPORT_NAME = NAMESPACE_IMPORT;`,constantComputed:m.template.statement`EXPORTS["EXPORT_NAME"] = NAMESPACE_IMPORT;`,spec:m.template.statement`
|
||
|
Object.defineProperty(EXPORTS, "EXPORT_NAME", {
|
||
|
enumerable: true,
|
||
|
get: function() {
|
||
|
return NAMESPACE_IMPORT;
|
||
|
},
|
||
|
});
|
||
|
`};function M(Y,$,G){let U=$.lazy?b(A($.name),[]):A($.name),{stringSpecifiers:B}=Y;return Array.from($.reexports,([N,X])=>{let H=E(U);X==="default"&&$.interop==="node-default"||(H=B.has(X)?C(H,P(X),!0):C(H,A(X)));let F={EXPORTS:Y.exportName,EXPORT_NAME:N,NAMESPACE_IMPORT:H};return G||x(H)?B.has(N)?j.constantComputed(F):j.constant(F):j.spec(F)})}let R={computed:m.template.expression`EXPORTS["NAME"] = VALUE`,default:m.template.expression`EXPORTS.NAME = VALUE`};function z(Y,$,G){let{stringSpecifiers:U,exportName:B}=Y;return w($.reduce((N,X)=>{let H={EXPORTS:B,NAME:X,VALUE:N};return U.has(X)?R.computed(H):R.default(H)},G))}},"./node_modules/.pnpm/@babel+helper-module-transforms@7.22.15_@babel+core@7.22.15/node_modules/@babel/helper-module-transforms/lib/normalize-and-load-metadata.js":(o,r,u)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(y,b,{importInterop:E,initializeReexports:v=!1,lazy:S=!1,esNamespaceOnly:w=!1,filename:A}){b||(b=y.scope.generateUidIdentifier("exports").name);let x=new Set;(function(L){L.get("body").forEach(I=>{I.isExportDefaultDeclaration()&&(0,d.default)(I)})})(y);let{local:C,sources:P,hasExports:D}=function(L,{lazy:I,initializeReexports:j},M){let R=function(G,U,B){let N=new Map;G.get("body").forEach(F=>{let W;if(F.isImportDeclaration())W="import";else{if(F.isExportDefaultDeclaration()&&(F=F.get("declaration")),F.isExportNamedDeclaration()){if(F.node.declaration)F=F.get("declaration");else if(U&&F.node.source&&F.get("source").isStringLiteral())return void F.get("specifiers").forEach(V=>{h(V),N.set(V.get("local").node.name,"block")})}if(F.isFunctionDeclaration())W="hoisted";else if(F.isClassDeclaration())W="block";else if(F.isVariableDeclaration({kind:"var"}))W="var";else{if(!F.isVariableDeclaration())return;W="block"}}Object.keys(F.getOuterBindingIdentifiers()).forEach(V=>{N.set(V,W)})});let X=new Map,H=F=>{let W=F.node.name,V=X.get(W);if(!V){let Q=N.get(W);if(Q===void 0)throw F.buildCodeFrameError(`Exporting local "${W}", which is not declared.`);V={names:[],kind:Q},X.set(W,V)}return V};return G.get("body").forEach(F=>{if(!F.isExportNamedDeclaration()||!U&&F.node.source){if(F.isExportDefaultDeclaration()){let W=F.get("declaration");if(!W.isFunctionDeclaration()&&!W.isClassDeclaration())throw W.buildCodeFrameError("Unexpected default expression export.");H(W.get("id")).names.push("default")}}else if(F.node.declaration){let W=F.get("declaration"),V=W.getOuterBindingIdentifierPaths();Object.keys(V).forEach(Q=>{if(Q==="__esModule")throw W.buildCodeFrameError('Illegal export "__esModule".');H(V[Q]).names.push(Q)})}else F.get("specifiers").forEach(W=>{let V=W.get("local"),Q=W.get("exported"),ne=H(V),ue=p(Q,B);if(ue==="__esModule")throw Q.buildCodeFrameError('Illegal export "__esModule".');ne.names.push(ue)})}),X}(L,j,M),z=new Map,Y=G=>{let U=G.value,B=z.get(U);return B||(B={name:L.scope.generateUidIdentifier((0,a.basename)(U,(0,a.extname)(U))).name,interop:"none",loc:null,imports:new Map,importsNamespace:new Set,reexports:new Map,reexportNamespace:new Set,reexportAll:null,lazy:!1,referenced:!1},z.set(U,B)),B},$=!1;L.get("body").forEach(G=>{if(G.isImportDeclaration()){let U=Y(G.node.source);U.loc||(U.loc=G.node.loc),G.get("specifiers").forEach(B=>{if(B.isImportDefaultSpecifier()){let N=B.get("local").node.name;U.imports.set(N,"default");let X=R.get(N);X&&(R.delete(N),X.names.forEach(H=>{U.reexports.set(H,"default")}),U.referenced=!0)}else if(B.isImportNamespaceSpecifier()){let N=B.get("local").node.name;U.importsNamespace.add(N);let X=R.get(N);X&&(R.delete(N),X.names.forEach(H=>{U.reexportNamespace.add(H)}),U.referenced=!0)}else if(B.isImportSpecifier()){let N=p(B.get("imported"),M),X=B.get("local").node.name;U.imports.set(X,N);let H=R.get(X);H&&(R.delete(X),H.names.forEach(F=>{U.reexports.set(F,N)}),U.referenced=!0)}})}else if(G.isExportAllDeclaration()){$=!0;let U=Y(G.node.source);U.loc||(U.loc=G.node.loc),U.reexportAll={loc:G.node.loc},U.referenced=!0}else if(G.isExportNamedDeclaration()&&G.node.source){$=!0;let U=Y(G.node.source);U.loc||(U.loc=G.node.loc),G.get("sp
|
||
|
(function() {
|
||
|
throw new Error('"' + '${R}' + '" is read-only.');
|
||
|
})()
|
||
|
`,M={ReferencedIdentifier(R){let{seen:z,buildImportReference:Y,scope:$,imported:G,requeueInParent:U}=this;if(z.has(R.node))return;z.add(R.node);let B=R.node.name,N=G.get(B);if(N){if(function(F){do switch(F.parent.type){case"TSTypeAnnotation":case"TSTypeAliasDeclaration":case"TSTypeReference":case"TypeAnnotation":case"TypeAlias":return!0;case"ExportSpecifier":return F.parentPath.parent.exportKind==="type";default:if(F.parentPath.isStatement()||F.parentPath.isExpression())return!1}while(F=F.parentPath)}(R))throw R.buildCodeFrameError(`Cannot transform the imported binding "${B}" since it's also used in a type annotation. Please strip type annotations using @babel/preset-typescript or @babel/preset-flow.`);let X=R.scope.getBinding(B);if($.getBinding(B)!==X)return;let H=Y(N,R.node);if(H.loc=R.node.loc,(R.parentPath.isCallExpression({callee:R.node})||R.parentPath.isOptionalCallExpression({callee:R.node})||R.parentPath.isTaggedTemplateExpression({tag:R.node}))&&b(H))R.replaceWith(x([A(0),H]));else if(R.isJSXIdentifier()&&b(H)){let{object:F,property:W}=H;R.replaceWith(S(v(F.name),v(W.name)))}else R.replaceWith(H);U(R),R.skip()}},UpdateExpression(R){let{scope:z,seen:Y,imported:$,exported:G,requeueInParent:U,buildImportReference:B}=this;if(Y.has(R.node))return;Y.add(R.node);let N=R.get("argument");if(N.isMemberExpression())return;let X=R.node;if(N.isIdentifier()){let H=N.node.name;if(z.getBinding(H)!==R.scope.getBinding(H))return;let F=G.get(H),W=$.get(H);if((F==null?void 0:F.length)>0||W)if(W)R.replaceWith(s(X.operator[0]+"=",B(W,N.node),j(H)));else if(X.prefix)R.replaceWith(I(this.metadata,F,f(X),R.scope));else{let V=z.generateDeclaredUidIdentifier(H);R.replaceWith(x([s("=",f(V),f(X)),I(this.metadata,F,y(H),R.scope),f(V)]))}}U(R),R.skip()},AssignmentExpression:{exit(R){let{scope:z,seen:Y,imported:$,exported:G,requeueInParent:U,buildImportReference:B}=this;if(Y.has(R.node))return;Y.add(R.node);let N=R.get("left");if(!N.isMemberExpression())if(N.isIdentifier()){let X=N.node.name;if(z.getBinding(X)!==R.scope.getBinding(X))return;let H=G.get(X),F=$.get(X);if((H==null?void 0:H.length)>0||F){a(R.node.operator==="=","Path was not simplified");let W=R.node;F&&(W.left=B(F,N.node),W.right=x([W.right,j(X)])),R.replaceWith(I(this.metadata,H,W,R.scope)),U(R)}}else{let X=N.getOuterBindingIdentifiers(),H=Object.keys(X).filter(V=>z.getBinding(V)===R.scope.getBinding(V)),F=H.find(V=>$.has(V));F&&(R.node.right=x([R.node.right,j(F)]));let W=[];if(H.forEach(V=>{let Q=G.get(V)||[];Q.length>0&&W.push(I(this.metadata,Q,y(V),R.scope))}),W.length>0){let V=x(W);R.parentPath.isExpressionStatement()&&(V=p(V),V._blockHoist=R.parentPath.node._blockHoist),U(R.insertAfter(V)[0])}}}},"ForOfStatement|ForInStatement"(R){let{scope:z,node:Y}=R,{left:$}=Y,{exported:G,imported:U,scope:B}=this;if(!E($)){let N,X=!1,H=R.get("body").scope;for(let V of Object.keys(h($)))B.getBinding(V)===z.getBinding(V)&&(G.has(V)&&(X=!0,H.hasOwnBinding(V)&&H.rename(V)),U.has(V)&&!N&&(N=V));if(!X&&!N)return;R.ensureBlock();let F=R.get("body"),W=z.generateUidIdentifierBasedOnNode($);R.get("left").replaceWith(P("let",[D(f(W))])),z.registerDeclaration(R.get("left")),X&&F.unshiftContainer("body",p(s("=",$,W))),N&&F.unshiftContainer("body",p(j(N)))}}}},"./node_modules/.pnpm/@babel+helper-module-transforms@7.22.15_@babel+core@7.22.15/node_modules/@babel/helper-module-transforms/lib/rewrite-this.js":(o,r,u)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(f){(0,m.traverse)(f.node,Object.assign({},l,{noScope:!0}))};var a=u("./node_modules/.pnpm/@babel+helper-environment-visitor@7.22.5/node_modules/@babel/helper-environment-visitor/lib/index.js"),m=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/index.js");let{numericLiteral:d,unaryExpression:s}=m.types,l=m.traverse.visitors.merge([a.default,{ThisExpression(f){f.replaceWith(s("void",d(0),!0))}}])},"./node_modules/.pnpm/@babel+helper-optimise-call-expression@7.22.5/node_modules/@babel/helper-optimise-call-expression/lib/index.js":(o,r,u)=>{"use strict";Object.defineProperty(r,"__esModul
|
||
|
function () { throw new ReferenceError("'delete super[expr]' is invalid"); }()
|
||
|
`]):s.template.expression.ast`
|
||
|
function () { throw new ReferenceError("'delete super.prop' is invalid"); }()
|
||
|
`}},P=Object.assign({},C,{prop(D){let{property:L}=D.node;return this.memoiser.has(L)?h(this.memoiser.get(L)):h(L)},get(D){let{isStatic:L,getSuperRef:I}=this,{computed:j}=D.node,M=this.prop(D),R;var z,Y;return L?R=(z=I())!=null?z:b(y("Function"),y("prototype")):R=b((Y=I())!=null?Y:y("Object"),y("prototype")),b(R,M,j)},set(D,L){let{computed:I}=D.node,j=this.prop(D);return l("=",b(S(),j,I),L)},destructureSet(D){let{computed:L}=D.node,I=this.prop(D);return b(S(),I,L)},call(D,L){return(0,d.default)(this.get(D),S(),L,!1)},optionalCall(D,L){return(0,d.default)(this.get(D),S(),L,!0)}});r.default=class{constructor(D){var L;let I=D.methodPath;this.methodPath=I,this.isDerivedConstructor=I.isClassMethod({kind:"constructor"})&&!!D.superRef,this.isStatic=I.isObjectMethod()||I.node.static||(I.isStaticBlock==null?void 0:I.isStaticBlock()),this.isPrivateMethod=I.isPrivate()&&I.isMethod(),this.file=D.file,this.constantSuper=(L=D.constantSuper)!=null?L:D.isLoose,this.opts=D}getObjectRef(){return h(this.opts.objectRef||this.opts.getObjectRef())}getSuperRef(){return this.opts.superRef?h(this.opts.superRef):this.opts.getSuperRef?h(this.opts.getSuperRef()):void 0}replace(){this.opts.refToPreserve&&this.methodPath.traverse(x,{refName:this.opts.refToPreserve.name});let D=this.constantSuper?P:C;(0,m.default)(this.methodPath,A,Object.assign({file:this.file,scope:this.methodPath.scope,isDerivedConstructor:this.isDerivedConstructor,isStatic:this.isStatic,isPrivateMethod:this.isPrivateMethod,getObjectRef:this.getObjectRef.bind(this),getSuperRef:this.getSuperRef.bind(this),boundGet:D.get},D))}}},"./node_modules/.pnpm/@babel+helper-simple-access@7.22.5/node_modules/@babel/helper-simple-access/lib/index.js":(o,r,u)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(v,S){var w;v.traverse(E,{scope:v.scope,bindingNames:S,seen:new WeakSet,includeUpdateExpression:(w=arguments[2])==null||w})};var a=u("./node_modules/.pnpm/@babel+types@7.22.15/node_modules/@babel/types/lib/index.js");let{LOGICAL_OPERATORS:m,assignmentExpression:d,binaryExpression:s,cloneNode:l,identifier:f,logicalExpression:p,numericLiteral:h,sequenceExpression:y,unaryExpression:b}=a,E={AssignmentExpression:{exit(v){let{scope:S,seen:w,bindingNames:A}=this;if(v.node.operator==="="||w.has(v.node))return;w.add(v.node);let x=v.get("left");if(!x.isIdentifier())return;let C=x.node.name;if(!A.has(C)||S.getBinding(C)!==v.scope.getBinding(C))return;let P=v.node.operator.slice(0,-1);m.includes(P)?v.replaceWith(p(P,v.node.left,d("=",l(v.node.left),v.node.right))):(v.node.right=s(P,l(v.node.left),v.node.right),v.node.operator="=")}}};E.UpdateExpression={exit(v){if(!this.includeUpdateExpression)return;let{scope:S,bindingNames:w}=this,A=v.get("argument");if(!A.isIdentifier())return;let x=A.node.name;if(w.has(x)&&S.getBinding(x)===v.scope.getBinding(x))if(v.parentPath.isExpressionStatement()&&!v.isCompletionRecord()){let C=v.node.operator=="++"?"+=":"-=";v.replaceWith(d(C,A.node,h(1)))}else if(v.node.prefix)v.replaceWith(d("=",f(x),s(v.node.operator[0],b("+",A.node),h(1))));else{let C=v.scope.generateUidIdentifierBasedOnNode(A.node,"old"),P=C.name;v.scope.push({id:C});let D=s(v.node.operator[0],f(P),h(1));v.replaceWith(y([d("=",f(P),b("+",A.node)),d("=",l(A.node),D),f(P)]))}}}},"./node_modules/.pnpm/@babel+helper-skip-transparent-expression-wrappers@7.22.5/node_modules/@babel/helper-skip-transparent-expression-wrappers/lib/index.js":(o,r,u)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isTransparentExprWrapper=h,r.skipTransparentExprWrapperNodes=function(y){for(;h(y);)y=y.expression;return y},r.skipTransparentExprWrappers=function(y){for(;h(y.node);)y=y.get("expression");return y};var a=u("./node_modules/.pnpm/@babel+types@7.22.15/node_modules/@babel/types/lib/index.js");let{isParenthesizedExpression:m,isTSAsExpression:d,isTSNonNullExpression:s,isTSSatisfiesExpression:l,isTSTypeAssertion:f,isTypeCastExpression:p}=a;function h(y){return d(y)||l(y)||f(y)||s(y)||p(y)||m(y)}},"./node_modules/.pnpm/@babel+helper-split-export-declaration@7.22.6/node_module
|
||
|
`,++b,I===13&&y.charCodeAt(b)===10&&++b,++v,D=E=b):S.unterminated(w,A,x):++b}return{pos:b,str:C,firstInvalidLoc:P,lineStart:E,curLine:v,containsInvalid:!!P}};var u=function(h){return h>=48&&h<=57};let a={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},m={bin:h=>h===48||h===49,oct:h=>h>=48&&h<=55,dec:h=>h>=48&&h<=57,hex:h=>h>=48&&h<=57||h>=65&&h<=70||h>=97&&h<=102};function d(h,y,b,E){return h==="template"?y===96||y===36&&b.charCodeAt(E+1)===123:y===(h==="double"?34:39)}function s(h,y,b,E,v,S){let w=!v;y++;let A=C=>({pos:y,ch:C,lineStart:b,curLine:E}),x=h.charCodeAt(y++);switch(x){case 110:return A(`
|
||
|
`);case 114:return A("\r");case 120:{let C;return{code:C,pos:y}=l(h,y,b,E,2,!1,w,S),A(C===null?null:String.fromCharCode(C))}case 117:{let C;return{code:C,pos:y}=p(h,y,b,E,w,S),A(C===null?null:String.fromCodePoint(C))}case 116:return A(" ");case 98:return A("\b");case 118:return A("\v");case 102:return A("\f");case 13:h.charCodeAt(y)===10&&++y;case 10:b=y,++E;case 8232:case 8233:return A("");case 56:case 57:if(v)return A(null);S.strictNumericEscape(y-1,b,E);default:if(x>=48&&x<=55){let C=y-1,P=h.slice(C,y+2).match(/^[0-7]+/)[0],D=parseInt(P,8);D>255&&(P=P.slice(0,-1),D=parseInt(P,8)),y+=P.length-1;let L=h.charCodeAt(y);if(P!=="0"||L===56||L===57){if(v)return A(null);S.strictNumericEscape(C,b,E)}return A(String.fromCharCode(D))}return A(String.fromCharCode(x))}}function l(h,y,b,E,v,S,w,A){let x=y,C;return{n:C,pos:y}=f(h,y,b,E,16,v,S,!1,A,!w),C===null&&(w?A.invalidEscapeSequence(x,b,E):y=x-1),{code:C,pos:y}}function f(h,y,b,E,v,S,w,A,x,C){let P=y,D=v===16?a.hex:a.decBinOct,L=v===16?m.hex:v===10?m.dec:v===8?m.oct:m.bin,I=!1,j=0;for(let M=0,R=S??1/0;M<R;++M){let z=h.charCodeAt(y),Y;if(z!==95||A==="bail"){if(Y=z>=97?z-97+10:z>=65?z-65+10:u(z)?z-48:1/0,Y>=v){if(Y<=9&&C)return{n:null,pos:y};if(Y<=9&&x.invalidDigit(y,b,E,v))Y=0;else{if(!w)break;Y=0,I=!0}}++y,j=j*v+Y}else{let $=h.charCodeAt(y-1),G=h.charCodeAt(y+1);if(A){if(Number.isNaN(G)||!L(G)||D.has($)||D.has(G)){if(C)return{n:null,pos:y};x.unexpectedNumericSeparator(y,b,E)}}else{if(C)return{n:null,pos:y};x.numericSeparatorInEscapeSequence(y,b,E)}++y}}return y===P||S!=null&&y-P!==S||I?{n:null,pos:y}:{n:j,pos:y}}function p(h,y,b,E,v,S){let w;if(h.charCodeAt(y)===123){if(++y,{code:w,pos:y}=l(h,y,b,E,h.indexOf("}",y)-y,!0,v,S),++y,w!==null&&w>1114111){if(!v)return{code:null,pos:y};S.invalidCodePoint(y,b,E)}}else({code:w,pos:y}=l(h,y,b,E,4,!1,v,S));return{code:w,pos:y}}},"./node_modules/.pnpm/@babel+helper-validator-identifier@7.22.15/node_modules/@babel/helper-validator-identifier/lib/identifier.js":(o,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isIdentifierChar=h,r.isIdentifierName=function(y){let b=!0;for(let E=0;E<y.length;E++){let v=y.charCodeAt(E);if((64512&v)==55296&&E+1<y.length){let S=y.charCodeAt(++E);(64512&S)==56320&&(v=65536+((1023&v)<<10)+(1023&S))}if(b){if(b=!1,!p(v))return!1}else if(!h(v))return!1}return!b},r.isIdentifierStart=p;let u="\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\u0560-\u0588\u05D0-\u05EA\u05EF-\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\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\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\u09FC\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\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u
|
||
|
- Did you mean '${(0,a.findSuggestion)(l,s)}'?`))}validateBooleanOption(m,d,s){return d===void 0?s:(this.invariant(typeof d=="boolean",`'${m}' option must be a boolean.`),d)}validateStringOption(m,d,s){return d===void 0?s:(this.invariant(typeof d=="string",`'${m}' option must be a string.`),d)}invariant(m,d){if(!m)throw new Error(this.formatMessage(d))}formatMessage(m){return`${this.descriptor}: ${m}`}}},"./node_modules/.pnpm/@babel+helpers@7.22.15/node_modules/@babel/helpers/lib/helpers-generated.js":(o,r,u)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var a=u("./node_modules/.pnpm/@babel+template@7.22.15/node_modules/@babel/template/lib/index.js");function m(s,l){return Object.freeze({minVersion:s,ast:()=>a.default.program.ast(l,{preserveComments:!0})})}var d=Object.freeze({AsyncGenerator:m("7.0.0-beta.0",'import OverloadYield from"OverloadYield";export default function AsyncGenerator(e){var r,t;function resume(r,t){try{var n=e[r](t),o=n.value,u=o instanceof OverloadYield;Promise.resolve(u?o.v:o).then((function(t){if(u){var i="return"===r?"return":"next";if(!o.k||t.done)return resume(i,t);t=e[i](t).value}settle(n.done?"return":"normal",t)}),(function(e){resume("throw",e)}))}catch(e){settle("throw",e)}}function settle(e,n){switch(e){case"return":r.resolve({value:n,done:!0});break;case"throw":r.reject(n);break;default:r.resolve({value:n,done:!1})}(r=r.next)?resume(r.key,r.arg):t=null}this._invoke=function(e,n){return new Promise((function(o,u){var i={key:e,arg:n,resolve:o,reject:u,next:null};t?t=t.next=i:(r=t=i,resume(e,n))}))},"function"!=typeof e.return&&(this.return=void 0)}AsyncGenerator.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},AsyncGenerator.prototype.next=function(e){return this._invoke("next",e)},AsyncGenerator.prototype.throw=function(e){return this._invoke("throw",e)},AsyncGenerator.prototype.return=function(e){return this._invoke("return",e)};'),OverloadYield:m("7.18.14","export default function _OverloadYield(t,e){this.v=t,this.k=e}"),applyDecs:m("7.17.8",'function old_createMetadataMethodsForProperty(e,t,a,r){return{getMetadata:function(o){old_assertNotFinished(r,"getMetadata"),old_assertMetadataKey(o);var i=e[o];if(void 0!==i)if(1===t){var n=i.public;if(void 0!==n)return n[a]}else if(2===t){var l=i.private;if(void 0!==l)return l.get(a)}else if(Object.hasOwnProperty.call(i,"constructor"))return i.constructor},setMetadata:function(o,i){old_assertNotFinished(r,"setMetadata"),old_assertMetadataKey(o);var n=e[o];if(void 0===n&&(n=e[o]={}),1===t){var l=n.public;void 0===l&&(l=n.public={}),l[a]=i}else if(2===t){var s=n.priv;void 0===s&&(s=n.private=new Map),s.set(a,i)}else n.constructor=i}}}function old_convertMetadataMapToFinal(e,t){var a=e[Symbol.metadata||Symbol.for("Symbol.metadata")],r=Object.getOwnPropertySymbols(t);if(0!==r.length){for(var o=0;o<r.length;o++){var i=r[o],n=t[i],l=a?a[i]:null,s=n.public,c=l?l.public:null;s&&c&&Object.setPrototypeOf(s,c);var d=n.private;if(d){var u=Array.from(d.values()),f=l?l.private:null;f&&(u=u.concat(f)),n.private=u}l&&Object.setPrototypeOf(n,l)}a&&Object.setPrototypeOf(t,a),e[Symbol.metadata||Symbol.for("Symbol.metadata")]=t}}function old_createAddInitializerMethod(e,t){return function(a){old_assertNotFinished(t,"addInitializer"),old_assertCallable(a,"An initializer"),e.push(a)}}function old_memberDec(e,t,a,r,o,i,n,l,s){var c;switch(i){case 1:c="accessor";break;case 2:c="method";break;case 3:c="getter";break;case 4:c="setter";break;default:c="field"}var d,u,f={kind:c,name:l?"#"+t:t,isStatic:n,isPrivate:l},p={v:!1};if(0!==i&&(f.addInitializer=old_createAddInitializerMethod(o,p)),l){d=2,u=Symbol(t);var v={};0===i?(v.get=a.get,v.set=a.set):2===i?v.get=function(){return a.value}:(1!==i&&3!==i||(v.get=function(){return a.get.call(this)}),1!==i&&4!==i||(v.set=function(e){a.set.call(this,e)})),f.access=v}else d=1,u=t;try{return e(s,Object.assign(f,old_createMetadataMethodsForProperty(r,d,u,p)))}finally{p.v=!0}}function old_assertNotFinished(e,t){if(e.v)throw new Error("attempted to c
|
||
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{define({},"")}catch(t){define=function(t,e,r){return t[e]=r}}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,(function(){return this}));var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach((function(e){define(t,e,(function(t){return this._invoke(e,t)}))}))}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==typeof h&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){invoke("next",t,i,a)}),(function(t){invoke("throw",t,i,a)})):e.resolve(h).then((function(t){u.value=t,i(u)}),(function(t){return invoke("throw",t,i,a)}))}a(c.arg)}var r;o(this,"_invoke",{value:function(t,n){function callInvokeWithMethodAndArg(){return new e((function(e,r){invoke(t,n,e,r)}))}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw new Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done}}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg)}}}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next};return i.next=i}}throw new TypeError(typeof e+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o
|
||
|
export default function _AwaitValue(value) {
|
||
|
this.wrapped = value;
|
||
|
}
|
||
|
`,d.wrapAsyncGenerator=l("7.0.0-beta.0")`
|
||
|
import AsyncGenerator from "AsyncGenerator";
|
||
|
|
||
|
export default function _wrapAsyncGenerator(fn) {
|
||
|
return function () {
|
||
|
return new AsyncGenerator(fn.apply(this, arguments));
|
||
|
};
|
||
|
}
|
||
|
`,d.asyncToGenerator=l("7.0.0-beta.0")`
|
||
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
||
|
try {
|
||
|
var info = gen[key](arg);
|
||
|
var value = info.value;
|
||
|
} catch (error) {
|
||
|
reject(error);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
if (info.done) {
|
||
|
resolve(value);
|
||
|
} else {
|
||
|
Promise.resolve(value).then(_next, _throw);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export default function _asyncToGenerator(fn) {
|
||
|
return function () {
|
||
|
var self = this, args = arguments;
|
||
|
return new Promise(function (resolve, reject) {
|
||
|
var gen = fn.apply(self, args);
|
||
|
function _next(value) {
|
||
|
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
||
|
}
|
||
|
function _throw(err) {
|
||
|
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
||
|
}
|
||
|
|
||
|
_next(undefined);
|
||
|
});
|
||
|
};
|
||
|
}
|
||
|
`,d.classCallCheck=l("7.0.0-beta.0")`
|
||
|
export default function _classCallCheck(instance, Constructor) {
|
||
|
if (!(instance instanceof Constructor)) {
|
||
|
throw new TypeError("Cannot call a class as a function");
|
||
|
}
|
||
|
}
|
||
|
`,d.createClass=l("7.0.0-beta.0")`
|
||
|
import toPropertyKey from "toPropertyKey";
|
||
|
function _defineProperties(target, props) {
|
||
|
for (var i = 0; i < props.length; i ++) {
|
||
|
var descriptor = props[i];
|
||
|
descriptor.enumerable = descriptor.enumerable || false;
|
||
|
descriptor.configurable = true;
|
||
|
if ("value" in descriptor) descriptor.writable = true;
|
||
|
Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export default function _createClass(Constructor, protoProps, staticProps) {
|
||
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
||
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
||
|
Object.defineProperty(Constructor, "prototype", { writable: false });
|
||
|
return Constructor;
|
||
|
}
|
||
|
`,d.defineEnumerableProperties=l("7.0.0-beta.0")`
|
||
|
export default function _defineEnumerableProperties(obj, descs) {
|
||
|
for (var key in descs) {
|
||
|
var desc = descs[key];
|
||
|
desc.configurable = desc.enumerable = true;
|
||
|
if ("value" in desc) desc.writable = true;
|
||
|
Object.defineProperty(obj, key, desc);
|
||
|
}
|
||
|
|
||
|
// Symbols are not enumerated over by for-in loops. If native
|
||
|
// Symbols are available, fetch all of the descs object's own
|
||
|
// symbol properties and define them on our target object too.
|
||
|
if (Object.getOwnPropertySymbols) {
|
||
|
var objectSymbols = Object.getOwnPropertySymbols(descs);
|
||
|
for (var i = 0; i < objectSymbols.length; i++) {
|
||
|
var sym = objectSymbols[i];
|
||
|
var desc = descs[sym];
|
||
|
desc.configurable = desc.enumerable = true;
|
||
|
if ("value" in desc) desc.writable = true;
|
||
|
Object.defineProperty(obj, sym, desc);
|
||
|
}
|
||
|
}
|
||
|
return obj;
|
||
|
}
|
||
|
`,d.defaults=l("7.0.0-beta.0")`
|
||
|
export default function _defaults(obj, defaults) {
|
||
|
var keys = Object.getOwnPropertyNames(defaults);
|
||
|
for (var i = 0; i < keys.length; i++) {
|
||
|
var key = keys[i];
|
||
|
var value = Object.getOwnPropertyDescriptor(defaults, key);
|
||
|
if (value && value.configurable && obj[key] === undefined) {
|
||
|
Object.defineProperty(obj, key, value);
|
||
|
}
|
||
|
}
|
||
|
return obj;
|
||
|
}
|
||
|
`,d.defineProperty=l("7.0.0-beta.0")`
|
||
|
import toPropertyKey from "toPropertyKey";
|
||
|
export default function _defineProperty(obj, key, value) {
|
||
|
key = toPropertyKey(key);
|
||
|
// Shortcircuit the slow defineProperty path when possible.
|
||
|
// We are trying to avoid issues where setters defined on the
|
||
|
// prototype cause side effects under the fast path of simple
|
||
|
// assignment. By checking for existence of the property with
|
||
|
// the in operator, we can optimize most of this overhead away.
|
||
|
if (key in obj) {
|
||
|
Object.defineProperty(obj, key, {
|
||
|
value: value,
|
||
|
enumerable: true,
|
||
|
configurable: true,
|
||
|
writable: true
|
||
|
});
|
||
|
} else {
|
||
|
obj[key] = value;
|
||
|
}
|
||
|
return obj;
|
||
|
}
|
||
|
`,d.extends=l("7.0.0-beta.0")`
|
||
|
export default function _extends() {
|
||
|
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
||
|
for (var i = 1; i < arguments.length; i++) {
|
||
|
var source = arguments[i];
|
||
|
for (var key in source) {
|
||
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
||
|
target[key] = source[key];
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
return target;
|
||
|
};
|
||
|
|
||
|
return _extends.apply(this, arguments);
|
||
|
}
|
||
|
`,d.objectSpread=l("7.0.0-beta.0")`
|
||
|
import defineProperty from "defineProperty";
|
||
|
|
||
|
export default function _objectSpread(target) {
|
||
|
for (var i = 1; i < arguments.length; i++) {
|
||
|
var source = (arguments[i] != null) ? Object(arguments[i]) : {};
|
||
|
var ownKeys = Object.keys(source);
|
||
|
if (typeof Object.getOwnPropertySymbols === 'function') {
|
||
|
ownKeys.push.apply(ownKeys, Object.getOwnPropertySymbols(source).filter(function(sym) {
|
||
|
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
||
|
}));
|
||
|
}
|
||
|
ownKeys.forEach(function(key) {
|
||
|
defineProperty(target, key, source[key]);
|
||
|
});
|
||
|
}
|
||
|
return target;
|
||
|
}
|
||
|
`,d.inherits=l("7.0.0-beta.0")`
|
||
|
import setPrototypeOf from "setPrototypeOf";
|
||
|
|
||
|
export default function _inherits(subClass, superClass) {
|
||
|
if (typeof superClass !== "function" && superClass !== null) {
|
||
|
throw new TypeError("Super expression must either be null or a function");
|
||
|
}
|
||
|
// We can't use defineProperty to set the prototype in a single step because it
|
||
|
// doesn't work in Chrome <= 36. https://github.com/babel/babel/issues/14056
|
||
|
// V8 bug: https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
||
|
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
||
|
constructor: {
|
||
|
value: subClass,
|
||
|
writable: true,
|
||
|
configurable: true
|
||
|
}
|
||
|
});
|
||
|
Object.defineProperty(subClass, "prototype", { writable: false });
|
||
|
if (superClass) setPrototypeOf(subClass, superClass);
|
||
|
}
|
||
|
`,d.inheritsLoose=l("7.0.0-beta.0")`
|
||
|
import setPrototypeOf from "setPrototypeOf";
|
||
|
|
||
|
export default function _inheritsLoose(subClass, superClass) {
|
||
|
subClass.prototype = Object.create(superClass.prototype);
|
||
|
subClass.prototype.constructor = subClass;
|
||
|
setPrototypeOf(subClass, superClass);
|
||
|
}
|
||
|
`,d.getPrototypeOf=l("7.0.0-beta.0")`
|
||
|
export default function _getPrototypeOf(o) {
|
||
|
_getPrototypeOf = Object.setPrototypeOf
|
||
|
? Object.getPrototypeOf.bind()
|
||
|
: function _getPrototypeOf(o) {
|
||
|
return o.__proto__ || Object.getPrototypeOf(o);
|
||
|
};
|
||
|
return _getPrototypeOf(o);
|
||
|
}
|
||
|
`,d.setPrototypeOf=l("7.0.0-beta.0")`
|
||
|
export default function _setPrototypeOf(o, p) {
|
||
|
_setPrototypeOf = Object.setPrototypeOf
|
||
|
? Object.setPrototypeOf.bind()
|
||
|
: function _setPrototypeOf(o, p) {
|
||
|
o.__proto__ = p;
|
||
|
return o;
|
||
|
};
|
||
|
return _setPrototypeOf(o, p);
|
||
|
}
|
||
|
`,d.isNativeReflectConstruct=l("7.9.0")`
|
||
|
export default function _isNativeReflectConstruct() {
|
||
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
||
|
|
||
|
// core-js@3
|
||
|
if (Reflect.construct.sham) return false;
|
||
|
|
||
|
// Proxy can't be polyfilled. Every browser implemented
|
||
|
// proxies before or at the same time as Reflect.construct,
|
||
|
// so if they support Proxy they also support Reflect.construct.
|
||
|
if (typeof Proxy === "function") return true;
|
||
|
|
||
|
// Since Reflect.construct can't be properly polyfilled, some
|
||
|
// implementations (e.g. core-js@2) don't set the correct internal slots.
|
||
|
// Those polyfills don't allow us to subclass built-ins, so we need to
|
||
|
// use our fallback implementation.
|
||
|
try {
|
||
|
// If the internal slots aren't set, this throws an error similar to
|
||
|
// TypeError: this is not a Boolean object.
|
||
|
|
||
|
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
||
|
return true;
|
||
|
} catch (e) {
|
||
|
return false;
|
||
|
}
|
||
|
}
|
||
|
`,d.construct=l("7.0.0-beta.0")`
|
||
|
import setPrototypeOf from "setPrototypeOf";
|
||
|
import isNativeReflectConstruct from "isNativeReflectConstruct";
|
||
|
|
||
|
export default function _construct(Parent, args, Class) {
|
||
|
if (isNativeReflectConstruct()) {
|
||
|
_construct = Reflect.construct.bind();
|
||
|
} else {
|
||
|
// NOTE: If Parent !== Class, the correct __proto__ is set *after*
|
||
|
// calling the constructor.
|
||
|
_construct = function _construct(Parent, args, Class) {
|
||
|
var a = [null];
|
||
|
a.push.apply(a, args);
|
||
|
var Constructor = Function.bind.apply(Parent, a);
|
||
|
var instance = new Constructor();
|
||
|
if (Class) setPrototypeOf(instance, Class.prototype);
|
||
|
return instance;
|
||
|
};
|
||
|
}
|
||
|
// Avoid issues with Class being present but undefined when it wasn't
|
||
|
// present in the original call.
|
||
|
return _construct.apply(null, arguments);
|
||
|
}
|
||
|
`,d.isNativeFunction=l("7.0.0-beta.0")`
|
||
|
export default function _isNativeFunction(fn) {
|
||
|
// Note: This function returns "true" for core-js functions.
|
||
|
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
||
|
}
|
||
|
`,d.wrapNativeSuper=l("7.0.0-beta.0")`
|
||
|
import getPrototypeOf from "getPrototypeOf";
|
||
|
import setPrototypeOf from "setPrototypeOf";
|
||
|
import isNativeFunction from "isNativeFunction";
|
||
|
import construct from "construct";
|
||
|
|
||
|
export default function _wrapNativeSuper(Class) {
|
||
|
var _cache = typeof Map === "function" ? new Map() : undefined;
|
||
|
|
||
|
_wrapNativeSuper = function _wrapNativeSuper(Class) {
|
||
|
if (Class === null || !isNativeFunction(Class)) return Class;
|
||
|
if (typeof Class !== "function") {
|
||
|
throw new TypeError("Super expression must either be null or a function");
|
||
|
}
|
||
|
if (typeof _cache !== "undefined") {
|
||
|
if (_cache.has(Class)) return _cache.get(Class);
|
||
|
_cache.set(Class, Wrapper);
|
||
|
}
|
||
|
function Wrapper() {
|
||
|
return construct(Class, arguments, getPrototypeOf(this).constructor)
|
||
|
}
|
||
|
Wrapper.prototype = Object.create(Class.prototype, {
|
||
|
constructor: {
|
||
|
value: Wrapper,
|
||
|
enumerable: false,
|
||
|
writable: true,
|
||
|
configurable: true,
|
||
|
}
|
||
|
});
|
||
|
|
||
|
return setPrototypeOf(Wrapper, Class);
|
||
|
}
|
||
|
|
||
|
return _wrapNativeSuper(Class)
|
||
|
}
|
||
|
`,d.instanceof=l("7.0.0-beta.0")`
|
||
|
export default function _instanceof(left, right) {
|
||
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
||
|
return !!right[Symbol.hasInstance](left);
|
||
|
} else {
|
||
|
return left instanceof right;
|
||
|
}
|
||
|
}
|
||
|
`,d.interopRequireDefault=l("7.0.0-beta.0")`
|
||
|
export default function _interopRequireDefault(obj) {
|
||
|
return obj && obj.__esModule ? obj : { default: obj };
|
||
|
}
|
||
|
`,d.interopRequireWildcard=l("7.14.0")`
|
||
|
function _getRequireWildcardCache(nodeInterop) {
|
||
|
if (typeof WeakMap !== "function") return null;
|
||
|
|
||
|
var cacheBabelInterop = new WeakMap();
|
||
|
var cacheNodeInterop = new WeakMap();
|
||
|
return (_getRequireWildcardCache = function (nodeInterop) {
|
||
|
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
||
|
})(nodeInterop);
|
||
|
}
|
||
|
|
||
|
export default function _interopRequireWildcard(obj, nodeInterop) {
|
||
|
if (!nodeInterop && obj && obj.__esModule) {
|
||
|
return obj;
|
||
|
}
|
||
|
|
||
|
if (obj === null || (typeof obj !== "object" && typeof obj !== "function")) {
|
||
|
return { default: obj }
|
||
|
}
|
||
|
|
||
|
var cache = _getRequireWildcardCache(nodeInterop);
|
||
|
if (cache && cache.has(obj)) {
|
||
|
return cache.get(obj);
|
||
|
}
|
||
|
|
||
|
var newObj = {};
|
||
|
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
||
|
for (var key in obj) {
|
||
|
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
||
|
var desc = hasPropertyDescriptor
|
||
|
? Object.getOwnPropertyDescriptor(obj, key)
|
||
|
: null;
|
||
|
if (desc && (desc.get || desc.set)) {
|
||
|
Object.defineProperty(newObj, key, desc);
|
||
|
} else {
|
||
|
newObj[key] = obj[key];
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
newObj.default = obj;
|
||
|
if (cache) {
|
||
|
cache.set(obj, newObj);
|
||
|
}
|
||
|
return newObj;
|
||
|
}
|
||
|
`,d.newArrowCheck=l("7.0.0-beta.0")`
|
||
|
export default function _newArrowCheck(innerThis, boundThis) {
|
||
|
if (innerThis !== boundThis) {
|
||
|
throw new TypeError("Cannot instantiate an arrow function");
|
||
|
}
|
||
|
}
|
||
|
`,d.objectDestructuringEmpty=l("7.0.0-beta.0")`
|
||
|
export default function _objectDestructuringEmpty(obj) {
|
||
|
if (obj == null) throw new TypeError("Cannot destructure " + obj);
|
||
|
}
|
||
|
`,d.objectWithoutPropertiesLoose=l("7.0.0-beta.0")`
|
||
|
export default function _objectWithoutPropertiesLoose(source, excluded) {
|
||
|
if (source == null) return {};
|
||
|
|
||
|
var target = {};
|
||
|
var sourceKeys = Object.keys(source);
|
||
|
var key, i;
|
||
|
|
||
|
for (i = 0; i < sourceKeys.length; i++) {
|
||
|
key = sourceKeys[i];
|
||
|
if (excluded.indexOf(key) >= 0) continue;
|
||
|
target[key] = source[key];
|
||
|
}
|
||
|
|
||
|
return target;
|
||
|
}
|
||
|
`,d.objectWithoutProperties=l("7.0.0-beta.0")`
|
||
|
import objectWithoutPropertiesLoose from "objectWithoutPropertiesLoose";
|
||
|
|
||
|
export default function _objectWithoutProperties(source, excluded) {
|
||
|
if (source == null) return {};
|
||
|
|
||
|
var target = objectWithoutPropertiesLoose(source, excluded);
|
||
|
var key, i;
|
||
|
|
||
|
if (Object.getOwnPropertySymbols) {
|
||
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
||
|
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
||
|
key = sourceSymbolKeys[i];
|
||
|
if (excluded.indexOf(key) >= 0) continue;
|
||
|
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
||
|
target[key] = source[key];
|
||
|
}
|
||
|
}
|
||
|
|
||
|
return target;
|
||
|
}
|
||
|
`,d.assertThisInitialized=l("7.0.0-beta.0")`
|
||
|
export default function _assertThisInitialized(self) {
|
||
|
if (self === void 0) {
|
||
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
||
|
}
|
||
|
return self;
|
||
|
}
|
||
|
`,d.possibleConstructorReturn=l("7.0.0-beta.0")`
|
||
|
import assertThisInitialized from "assertThisInitialized";
|
||
|
|
||
|
export default function _possibleConstructorReturn(self, call) {
|
||
|
if (call && (typeof call === "object" || typeof call === "function")) {
|
||
|
return call;
|
||
|
} else if (call !== void 0) {
|
||
|
throw new TypeError("Derived constructors may only return object or undefined");
|
||
|
}
|
||
|
|
||
|
return assertThisInitialized(self);
|
||
|
}
|
||
|
`,d.createSuper=l("7.9.0")`
|
||
|
import getPrototypeOf from "getPrototypeOf";
|
||
|
import isNativeReflectConstruct from "isNativeReflectConstruct";
|
||
|
import possibleConstructorReturn from "possibleConstructorReturn";
|
||
|
|
||
|
export default function _createSuper(Derived) {
|
||
|
var hasNativeReflectConstruct = isNativeReflectConstruct();
|
||
|
|
||
|
return function _createSuperInternal() {
|
||
|
var Super = getPrototypeOf(Derived), result;
|
||
|
if (hasNativeReflectConstruct) {
|
||
|
// NOTE: This doesn't work if this.__proto__.constructor has been modified.
|
||
|
var NewTarget = getPrototypeOf(this).constructor;
|
||
|
result = Reflect.construct(Super, arguments, NewTarget);
|
||
|
} else {
|
||
|
result = Super.apply(this, arguments);
|
||
|
}
|
||
|
return possibleConstructorReturn(this, result);
|
||
|
}
|
||
|
}
|
||
|
`,d.superPropBase=l("7.0.0-beta.0")`
|
||
|
import getPrototypeOf from "getPrototypeOf";
|
||
|
|
||
|
export default function _superPropBase(object, property) {
|
||
|
// Yes, this throws if object is null to being with, that's on purpose.
|
||
|
while (!Object.prototype.hasOwnProperty.call(object, property)) {
|
||
|
object = getPrototypeOf(object);
|
||
|
if (object === null) break;
|
||
|
}
|
||
|
return object;
|
||
|
}
|
||
|
`,d.get=l("7.0.0-beta.0")`
|
||
|
import superPropBase from "superPropBase";
|
||
|
|
||
|
export default function _get() {
|
||
|
if (typeof Reflect !== "undefined" && Reflect.get) {
|
||
|
_get = Reflect.get.bind();
|
||
|
} else {
|
||
|
_get = function _get(target, property, receiver) {
|
||
|
var base = superPropBase(target, property);
|
||
|
|
||
|
if (!base) return;
|
||
|
|
||
|
var desc = Object.getOwnPropertyDescriptor(base, property);
|
||
|
if (desc.get) {
|
||
|
// STEP 3. If receiver is not present, then set receiver to target.
|
||
|
return desc.get.call(arguments.length < 3 ? target : receiver);
|
||
|
}
|
||
|
|
||
|
return desc.value;
|
||
|
};
|
||
|
}
|
||
|
return _get.apply(this, arguments);
|
||
|
}
|
||
|
`,d.set=l("7.0.0-beta.0")`
|
||
|
import superPropBase from "superPropBase";
|
||
|
import defineProperty from "defineProperty";
|
||
|
|
||
|
function set(target, property, value, receiver) {
|
||
|
if (typeof Reflect !== "undefined" && Reflect.set) {
|
||
|
set = Reflect.set;
|
||
|
} else {
|
||
|
set = function set(target, property, value, receiver) {
|
||
|
var base = superPropBase(target, property);
|
||
|
var desc;
|
||
|
|
||
|
if (base) {
|
||
|
desc = Object.getOwnPropertyDescriptor(base, property);
|
||
|
if (desc.set) {
|
||
|
desc.set.call(receiver, value);
|
||
|
return true;
|
||
|
} else if (!desc.writable) {
|
||
|
// Both getter and non-writable fall into this.
|
||
|
return false;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// Without a super that defines the property, spec boils down to
|
||
|
// "define on receiver" for some reason.
|
||
|
desc = Object.getOwnPropertyDescriptor(receiver, property);
|
||
|
if (desc) {
|
||
|
if (!desc.writable) {
|
||
|
// Setter, getter, and non-writable fall into this.
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
desc.value = value;
|
||
|
Object.defineProperty(receiver, property, desc);
|
||
|
} else {
|
||
|
// Avoid setters that may be defined on Sub's prototype, but not on
|
||
|
// the instance.
|
||
|
defineProperty(receiver, property, value);
|
||
|
}
|
||
|
|
||
|
return true;
|
||
|
};
|
||
|
}
|
||
|
|
||
|
return set(target, property, value, receiver);
|
||
|
}
|
||
|
|
||
|
export default function _set(target, property, value, receiver, isStrict) {
|
||
|
var s = set(target, property, value, receiver || target);
|
||
|
if (!s && isStrict) {
|
||
|
throw new TypeError('failed to set property');
|
||
|
}
|
||
|
|
||
|
return value;
|
||
|
}
|
||
|
`,d.taggedTemplateLiteral=l("7.0.0-beta.0")`
|
||
|
export default function _taggedTemplateLiteral(strings, raw) {
|
||
|
if (!raw) { raw = strings.slice(0); }
|
||
|
return Object.freeze(Object.defineProperties(strings, {
|
||
|
raw: { value: Object.freeze(raw) }
|
||
|
}));
|
||
|
}
|
||
|
`,d.taggedTemplateLiteralLoose=l("7.0.0-beta.0")`
|
||
|
export default function _taggedTemplateLiteralLoose(strings, raw) {
|
||
|
if (!raw) { raw = strings.slice(0); }
|
||
|
strings.raw = raw;
|
||
|
return strings;
|
||
|
}
|
||
|
`,d.readOnlyError=l("7.0.0-beta.0")`
|
||
|
export default function _readOnlyError(name) {
|
||
|
throw new TypeError("\\"" + name + "\\" is read-only");
|
||
|
}
|
||
|
`,d.writeOnlyError=l("7.12.13")`
|
||
|
export default function _writeOnlyError(name) {
|
||
|
throw new TypeError("\\"" + name + "\\" is write-only");
|
||
|
}
|
||
|
`,d.classNameTDZError=l("7.0.0-beta.0")`
|
||
|
export default function _classNameTDZError(name) {
|
||
|
throw new ReferenceError("Class \\"" + name + "\\" cannot be referenced in computed property keys.");
|
||
|
}
|
||
|
`,d.temporalUndefined=l("7.0.0-beta.0")`
|
||
|
// This function isn't mean to be called, but to be used as a reference.
|
||
|
// We can't use a normal object because it isn't hoisted.
|
||
|
export default function _temporalUndefined() {}
|
||
|
`,d.tdz=l("7.5.5")`
|
||
|
export default function _tdzError(name) {
|
||
|
throw new ReferenceError(name + " is not defined - temporal dead zone");
|
||
|
}
|
||
|
`,d.temporalRef=l("7.0.0-beta.0")`
|
||
|
import undef from "temporalUndefined";
|
||
|
import err from "tdz";
|
||
|
|
||
|
export default function _temporalRef(val, name) {
|
||
|
return val === undef ? err(name) : val;
|
||
|
}
|
||
|
`,d.slicedToArray=l("7.0.0-beta.0")`
|
||
|
import arrayWithHoles from "arrayWithHoles";
|
||
|
import iterableToArrayLimit from "iterableToArrayLimit";
|
||
|
import unsupportedIterableToArray from "unsupportedIterableToArray";
|
||
|
import nonIterableRest from "nonIterableRest";
|
||
|
|
||
|
export default function _slicedToArray(arr, i) {
|
||
|
return (
|
||
|
arrayWithHoles(arr) ||
|
||
|
iterableToArrayLimit(arr, i) ||
|
||
|
unsupportedIterableToArray(arr, i) ||
|
||
|
nonIterableRest()
|
||
|
);
|
||
|
}
|
||
|
`,d.slicedToArrayLoose=l("7.0.0-beta.0")`
|
||
|
import arrayWithHoles from "arrayWithHoles";
|
||
|
import iterableToArrayLimitLoose from "iterableToArrayLimitLoose";
|
||
|
import unsupportedIterableToArray from "unsupportedIterableToArray";
|
||
|
import nonIterableRest from "nonIterableRest";
|
||
|
|
||
|
export default function _slicedToArrayLoose(arr, i) {
|
||
|
return (
|
||
|
arrayWithHoles(arr) ||
|
||
|
iterableToArrayLimitLoose(arr, i) ||
|
||
|
unsupportedIterableToArray(arr, i) ||
|
||
|
nonIterableRest()
|
||
|
);
|
||
|
}
|
||
|
`,d.toArray=l("7.0.0-beta.0")`
|
||
|
import arrayWithHoles from "arrayWithHoles";
|
||
|
import iterableToArray from "iterableToArray";
|
||
|
import unsupportedIterableToArray from "unsupportedIterableToArray";
|
||
|
import nonIterableRest from "nonIterableRest";
|
||
|
|
||
|
export default function _toArray(arr) {
|
||
|
return (
|
||
|
arrayWithHoles(arr) ||
|
||
|
iterableToArray(arr) ||
|
||
|
unsupportedIterableToArray(arr) ||
|
||
|
nonIterableRest()
|
||
|
);
|
||
|
}
|
||
|
`,d.toConsumableArray=l("7.0.0-beta.0")`
|
||
|
import arrayWithoutHoles from "arrayWithoutHoles";
|
||
|
import iterableToArray from "iterableToArray";
|
||
|
import unsupportedIterableToArray from "unsupportedIterableToArray";
|
||
|
import nonIterableSpread from "nonIterableSpread";
|
||
|
|
||
|
export default function _toConsumableArray(arr) {
|
||
|
return (
|
||
|
arrayWithoutHoles(arr) ||
|
||
|
iterableToArray(arr) ||
|
||
|
unsupportedIterableToArray(arr) ||
|
||
|
nonIterableSpread()
|
||
|
);
|
||
|
}
|
||
|
`,d.arrayWithoutHoles=l("7.0.0-beta.0")`
|
||
|
import arrayLikeToArray from "arrayLikeToArray";
|
||
|
|
||
|
export default function _arrayWithoutHoles(arr) {
|
||
|
if (Array.isArray(arr)) return arrayLikeToArray(arr);
|
||
|
}
|
||
|
`,d.arrayWithHoles=l("7.0.0-beta.0")`
|
||
|
export default function _arrayWithHoles(arr) {
|
||
|
if (Array.isArray(arr)) return arr;
|
||
|
}
|
||
|
`,d.maybeArrayLike=l("7.9.0")`
|
||
|
import arrayLikeToArray from "arrayLikeToArray";
|
||
|
|
||
|
export default function _maybeArrayLike(next, arr, i) {
|
||
|
if (arr && !Array.isArray(arr) && typeof arr.length === "number") {
|
||
|
var len = arr.length;
|
||
|
return arrayLikeToArray(arr, i !== void 0 && i < len ? i : len);
|
||
|
}
|
||
|
return next(arr, i);
|
||
|
}
|
||
|
`,d.iterableToArray=l("7.0.0-beta.0")`
|
||
|
export default function _iterableToArray(iter) {
|
||
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
||
|
}
|
||
|
`,d.unsupportedIterableToArray=l("7.9.0")`
|
||
|
import arrayLikeToArray from "arrayLikeToArray";
|
||
|
|
||
|
export default function _unsupportedIterableToArray(o, minLen) {
|
||
|
if (!o) return;
|
||
|
if (typeof o === "string") return arrayLikeToArray(o, minLen);
|
||
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
||
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
||
|
if (n === "Map" || n === "Set") return Array.from(o);
|
||
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
||
|
return arrayLikeToArray(o, minLen);
|
||
|
}
|
||
|
`,d.arrayLikeToArray=l("7.9.0")`
|
||
|
export default function _arrayLikeToArray(arr, len) {
|
||
|
if (len == null || len > arr.length) len = arr.length;
|
||
|
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
||
|
return arr2;
|
||
|
}
|
||
|
`,d.nonIterableSpread=l("7.0.0-beta.0")`
|
||
|
export default function _nonIterableSpread() {
|
||
|
throw new TypeError(
|
||
|
"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."
|
||
|
);
|
||
|
}
|
||
|
`,d.nonIterableRest=l("7.0.0-beta.0")`
|
||
|
export default function _nonIterableRest() {
|
||
|
throw new TypeError(
|
||
|
"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."
|
||
|
);
|
||
|
}
|
||
|
`,d.createForOfIteratorHelper=l("7.9.0")`
|
||
|
import unsupportedIterableToArray from "unsupportedIterableToArray";
|
||
|
|
||
|
// s: start (create the iterator)
|
||
|
// n: next
|
||
|
// e: error (called whenever something throws)
|
||
|
// f: finish (always called at the end)
|
||
|
|
||
|
export default function _createForOfIteratorHelper(o, allowArrayLike) {
|
||
|
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
||
|
|
||
|
if (!it) {
|
||
|
// Fallback for engines without symbol support
|
||
|
if (
|
||
|
Array.isArray(o) ||
|
||
|
(it = unsupportedIterableToArray(o)) ||
|
||
|
(allowArrayLike && o && typeof o.length === "number")
|
||
|
) {
|
||
|
if (it) o = it;
|
||
|
var i = 0;
|
||
|
var F = function(){};
|
||
|
return {
|
||
|
s: F,
|
||
|
n: function() {
|
||
|
if (i >= o.length) return { done: true };
|
||
|
return { done: false, value: o[i++] };
|
||
|
},
|
||
|
e: function(e) { throw e; },
|
||
|
f: F,
|
||
|
};
|
||
|
}
|
||
|
|
||
|
throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||
|
}
|
||
|
|
||
|
var normalCompletion = true, didErr = false, err;
|
||
|
|
||
|
return {
|
||
|
s: function() {
|
||
|
it = it.call(o);
|
||
|
},
|
||
|
n: function() {
|
||
|
var step = it.next();
|
||
|
normalCompletion = step.done;
|
||
|
return step;
|
||
|
},
|
||
|
e: function(e) {
|
||
|
didErr = true;
|
||
|
err = e;
|
||
|
},
|
||
|
f: function() {
|
||
|
try {
|
||
|
if (!normalCompletion && it.return != null) it.return();
|
||
|
} finally {
|
||
|
if (didErr) throw err;
|
||
|
}
|
||
|
}
|
||
|
};
|
||
|
}
|
||
|
`,d.createForOfIteratorHelperLoose=l("7.9.0")`
|
||
|
import unsupportedIterableToArray from "unsupportedIterableToArray";
|
||
|
|
||
|
export default function _createForOfIteratorHelperLoose(o, allowArrayLike) {
|
||
|
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
||
|
|
||
|
if (it) return (it = it.call(o)).next.bind(it);
|
||
|
|
||
|
// Fallback for engines without symbol support
|
||
|
if (
|
||
|
Array.isArray(o) ||
|
||
|
(it = unsupportedIterableToArray(o)) ||
|
||
|
(allowArrayLike && o && typeof o.length === "number")
|
||
|
) {
|
||
|
if (it) o = it;
|
||
|
var i = 0;
|
||
|
return function() {
|
||
|
if (i >= o.length) return { done: true };
|
||
|
return { done: false, value: o[i++] };
|
||
|
}
|
||
|
}
|
||
|
|
||
|
throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||
|
}
|
||
|
`,d.skipFirstGeneratorNext=l("7.0.0-beta.0")`
|
||
|
export default function _skipFirstGeneratorNext(fn) {
|
||
|
return function () {
|
||
|
var it = fn.apply(this, arguments);
|
||
|
it.next();
|
||
|
return it;
|
||
|
}
|
||
|
}
|
||
|
`,d.toPrimitive=l("7.1.5")`
|
||
|
export default function _toPrimitive(
|
||
|
input,
|
||
|
hint /*: "default" | "string" | "number" | void */
|
||
|
) {
|
||
|
if (typeof input !== "object" || input === null) return input;
|
||
|
var prim = input[Symbol.toPrimitive];
|
||
|
if (prim !== undefined) {
|
||
|
var res = prim.call(input, hint || "default");
|
||
|
if (typeof res !== "object") return res;
|
||
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
||
|
}
|
||
|
return (hint === "string" ? String : Number)(input);
|
||
|
}
|
||
|
`,d.toPropertyKey=l("7.1.5")`
|
||
|
import toPrimitive from "toPrimitive";
|
||
|
|
||
|
export default function _toPropertyKey(arg) {
|
||
|
var key = toPrimitive(arg, "string");
|
||
|
return typeof key === "symbol" ? key : String(key);
|
||
|
}
|
||
|
`,d.initializerWarningHelper=l("7.0.0-beta.0")`
|
||
|
export default function _initializerWarningHelper(descriptor, context){
|
||
|
throw new Error(
|
||
|
'Decorating class property failed. Please ensure that ' +
|
||
|
'transform-class-properties is enabled and runs after the decorators transform.'
|
||
|
);
|
||
|
}
|
||
|
`,d.initializerDefineProperty=l("7.0.0-beta.0")`
|
||
|
export default function _initializerDefineProperty(target, property, descriptor, context){
|
||
|
if (!descriptor) return;
|
||
|
|
||
|
Object.defineProperty(target, property, {
|
||
|
enumerable: descriptor.enumerable,
|
||
|
configurable: descriptor.configurable,
|
||
|
writable: descriptor.writable,
|
||
|
value: descriptor.initializer ? descriptor.initializer.call(context) : void 0,
|
||
|
});
|
||
|
}
|
||
|
`,d.applyDecoratedDescriptor=l("7.0.0-beta.0")`
|
||
|
export default function _applyDecoratedDescriptor(target, property, decorators, descriptor, context){
|
||
|
var desc = {};
|
||
|
Object.keys(descriptor).forEach(function(key){
|
||
|
desc[key] = descriptor[key];
|
||
|
});
|
||
|
desc.enumerable = !!desc.enumerable;
|
||
|
desc.configurable = !!desc.configurable;
|
||
|
if ('value' in desc || desc.initializer){
|
||
|
desc.writable = true;
|
||
|
}
|
||
|
|
||
|
desc = decorators.slice().reverse().reduce(function(desc, decorator){
|
||
|
return decorator(target, property, desc) || desc;
|
||
|
}, desc);
|
||
|
|
||
|
if (context && desc.initializer !== void 0){
|
||
|
desc.value = desc.initializer ? desc.initializer.call(context) : void 0;
|
||
|
desc.initializer = undefined;
|
||
|
}
|
||
|
|
||
|
if (desc.initializer === void 0){
|
||
|
Object.defineProperty(target, property, desc);
|
||
|
desc = null;
|
||
|
}
|
||
|
|
||
|
return desc;
|
||
|
}
|
||
|
`,d.classPrivateFieldLooseKey=l("7.0.0-beta.0")`
|
||
|
var id = 0;
|
||
|
export default function _classPrivateFieldKey(name) {
|
||
|
return "__private_" + (id++) + "_" + name;
|
||
|
}
|
||
|
`,d.classPrivateFieldLooseBase=l("7.0.0-beta.0")`
|
||
|
export default function _classPrivateFieldBase(receiver, privateKey) {
|
||
|
if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) {
|
||
|
throw new TypeError("attempted to use private field on non-instance");
|
||
|
}
|
||
|
return receiver;
|
||
|
}
|
||
|
`,d.classPrivateFieldGet=l("7.0.0-beta.0")`
|
||
|
import classApplyDescriptorGet from "classApplyDescriptorGet";
|
||
|
import classExtractFieldDescriptor from "classExtractFieldDescriptor";
|
||
|
export default function _classPrivateFieldGet(receiver, privateMap) {
|
||
|
var descriptor = classExtractFieldDescriptor(receiver, privateMap, "get");
|
||
|
return classApplyDescriptorGet(receiver, descriptor);
|
||
|
}
|
||
|
`,d.classPrivateFieldSet=l("7.0.0-beta.0")`
|
||
|
import classApplyDescriptorSet from "classApplyDescriptorSet";
|
||
|
import classExtractFieldDescriptor from "classExtractFieldDescriptor";
|
||
|
export default function _classPrivateFieldSet(receiver, privateMap, value) {
|
||
|
var descriptor = classExtractFieldDescriptor(receiver, privateMap, "set");
|
||
|
classApplyDescriptorSet(receiver, descriptor, value);
|
||
|
return value;
|
||
|
}
|
||
|
`,d.classPrivateFieldDestructureSet=l("7.4.4")`
|
||
|
import classApplyDescriptorDestructureSet from "classApplyDescriptorDestructureSet";
|
||
|
import classExtractFieldDescriptor from "classExtractFieldDescriptor";
|
||
|
export default function _classPrivateFieldDestructureSet(receiver, privateMap) {
|
||
|
var descriptor = classExtractFieldDescriptor(receiver, privateMap, "set");
|
||
|
return classApplyDescriptorDestructureSet(receiver, descriptor);
|
||
|
}
|
||
|
`,d.classExtractFieldDescriptor=l("7.13.10")`
|
||
|
export default function _classExtractFieldDescriptor(receiver, privateMap, action) {
|
||
|
if (!privateMap.has(receiver)) {
|
||
|
throw new TypeError("attempted to " + action + " private field on non-instance");
|
||
|
}
|
||
|
return privateMap.get(receiver);
|
||
|
}
|
||
|
`,d.classStaticPrivateFieldSpecGet=l("7.0.2")`
|
||
|
import classApplyDescriptorGet from "classApplyDescriptorGet";
|
||
|
import classCheckPrivateStaticAccess from "classCheckPrivateStaticAccess";
|
||
|
import classCheckPrivateStaticFieldDescriptor from "classCheckPrivateStaticFieldDescriptor";
|
||
|
export default function _classStaticPrivateFieldSpecGet(receiver, classConstructor, descriptor) {
|
||
|
classCheckPrivateStaticAccess(receiver, classConstructor);
|
||
|
classCheckPrivateStaticFieldDescriptor(descriptor, "get");
|
||
|
return classApplyDescriptorGet(receiver, descriptor);
|
||
|
}
|
||
|
`,d.classStaticPrivateFieldSpecSet=l("7.0.2")`
|
||
|
import classApplyDescriptorSet from "classApplyDescriptorSet";
|
||
|
import classCheckPrivateStaticAccess from "classCheckPrivateStaticAccess";
|
||
|
import classCheckPrivateStaticFieldDescriptor from "classCheckPrivateStaticFieldDescriptor";
|
||
|
export default function _classStaticPrivateFieldSpecSet(receiver, classConstructor, descriptor, value) {
|
||
|
classCheckPrivateStaticAccess(receiver, classConstructor);
|
||
|
classCheckPrivateStaticFieldDescriptor(descriptor, "set");
|
||
|
classApplyDescriptorSet(receiver, descriptor, value);
|
||
|
return value;
|
||
|
}
|
||
|
`,d.classStaticPrivateMethodGet=l("7.3.2")`
|
||
|
import classCheckPrivateStaticAccess from "classCheckPrivateStaticAccess";
|
||
|
export default function _classStaticPrivateMethodGet(receiver, classConstructor, method) {
|
||
|
classCheckPrivateStaticAccess(receiver, classConstructor);
|
||
|
return method;
|
||
|
}
|
||
|
`,d.classStaticPrivateMethodSet=l("7.3.2")`
|
||
|
export default function _classStaticPrivateMethodSet() {
|
||
|
throw new TypeError("attempted to set read only static private field");
|
||
|
}
|
||
|
`,d.classApplyDescriptorGet=l("7.13.10")`
|
||
|
export default function _classApplyDescriptorGet(receiver, descriptor) {
|
||
|
if (descriptor.get) {
|
||
|
return descriptor.get.call(receiver);
|
||
|
}
|
||
|
return descriptor.value;
|
||
|
}
|
||
|
`,d.classApplyDescriptorSet=l("7.13.10")`
|
||
|
export default function _classApplyDescriptorSet(receiver, descriptor, value) {
|
||
|
if (descriptor.set) {
|
||
|
descriptor.set.call(receiver, value);
|
||
|
} else {
|
||
|
if (!descriptor.writable) {
|
||
|
// This should only throw in strict mode, but class bodies are
|
||
|
// always strict and private fields can only be used inside
|
||
|
// class bodies.
|
||
|
throw new TypeError("attempted to set read only private field");
|
||
|
}
|
||
|
descriptor.value = value;
|
||
|
}
|
||
|
}
|
||
|
`,d.classApplyDescriptorDestructureSet=l("7.13.10")`
|
||
|
export default function _classApplyDescriptorDestructureSet(receiver, descriptor) {
|
||
|
if (descriptor.set) {
|
||
|
if (!("__destrObj" in descriptor)) {
|
||
|
descriptor.__destrObj = {
|
||
|
set value(v) {
|
||
|
descriptor.set.call(receiver, v)
|
||
|
},
|
||
|
};
|
||
|
}
|
||
|
return descriptor.__destrObj;
|
||
|
} else {
|
||
|
if (!descriptor.writable) {
|
||
|
// This should only throw in strict mode, but class bodies are
|
||
|
// always strict and private fields can only be used inside
|
||
|
// class bodies.
|
||
|
throw new TypeError("attempted to set read only private field");
|
||
|
}
|
||
|
|
||
|
return descriptor;
|
||
|
}
|
||
|
}
|
||
|
`,d.classStaticPrivateFieldDestructureSet=l("7.13.10")`
|
||
|
import classApplyDescriptorDestructureSet from "classApplyDescriptorDestructureSet";
|
||
|
import classCheckPrivateStaticAccess from "classCheckPrivateStaticAccess";
|
||
|
import classCheckPrivateStaticFieldDescriptor from "classCheckPrivateStaticFieldDescriptor";
|
||
|
export default function _classStaticPrivateFieldDestructureSet(receiver, classConstructor, descriptor) {
|
||
|
classCheckPrivateStaticAccess(receiver, classConstructor);
|
||
|
classCheckPrivateStaticFieldDescriptor(descriptor, "set");
|
||
|
return classApplyDescriptorDestructureSet(receiver, descriptor);
|
||
|
}
|
||
|
`,d.classCheckPrivateStaticAccess=l("7.13.10")`
|
||
|
export default function _classCheckPrivateStaticAccess(receiver, classConstructor) {
|
||
|
if (receiver !== classConstructor) {
|
||
|
throw new TypeError("Private static access of wrong provenance");
|
||
|
}
|
||
|
}
|
||
|
`,d.classCheckPrivateStaticFieldDescriptor=l("7.13.10")`
|
||
|
export default function _classCheckPrivateStaticFieldDescriptor(descriptor, action) {
|
||
|
if (descriptor === undefined) {
|
||
|
throw new TypeError("attempted to " + action + " private static field before its declaration");
|
||
|
}
|
||
|
}
|
||
|
`,d.decorate=l("7.1.5")`
|
||
|
import toArray from "toArray";
|
||
|
import toPropertyKey from "toPropertyKey";
|
||
|
|
||
|
// These comments are stripped by @babel/template
|
||
|
/*::
|
||
|
type PropertyDescriptor =
|
||
|
| {
|
||
|
value: any,
|
||
|
writable: boolean,
|
||
|
configurable: boolean,
|
||
|
enumerable: boolean,
|
||
|
}
|
||
|
| {
|
||
|
get?: () => any,
|
||
|
set?: (v: any) => void,
|
||
|
configurable: boolean,
|
||
|
enumerable: boolean,
|
||
|
};
|
||
|
|
||
|
type FieldDescriptor ={
|
||
|
writable: boolean,
|
||
|
configurable: boolean,
|
||
|
enumerable: boolean,
|
||
|
};
|
||
|
|
||
|
type Placement = "static" | "prototype" | "own";
|
||
|
type Key = string | symbol; // PrivateName is not supported yet.
|
||
|
|
||
|
type ElementDescriptor =
|
||
|
| {
|
||
|
kind: "method",
|
||
|
key: Key,
|
||
|
placement: Placement,
|
||
|
descriptor: PropertyDescriptor
|
||
|
}
|
||
|
| {
|
||
|
kind: "field",
|
||
|
key: Key,
|
||
|
placement: Placement,
|
||
|
descriptor: FieldDescriptor,
|
||
|
initializer?: () => any,
|
||
|
};
|
||
|
|
||
|
// This is exposed to the user code
|
||
|
type ElementObjectInput = ElementDescriptor & {
|
||
|
[@@toStringTag]?: "Descriptor"
|
||
|
};
|
||
|
|
||
|
// This is exposed to the user code
|
||
|
type ElementObjectOutput = ElementDescriptor & {
|
||
|
[@@toStringTag]?: "Descriptor"
|
||
|
extras?: ElementDescriptor[],
|
||
|
finisher?: ClassFinisher,
|
||
|
};
|
||
|
|
||
|
// This is exposed to the user code
|
||
|
type ClassObject = {
|
||
|
[@@toStringTag]?: "Descriptor",
|
||
|
kind: "class",
|
||
|
elements: ElementDescriptor[],
|
||
|
};
|
||
|
|
||
|
type ElementDecorator = (descriptor: ElementObjectInput) => ?ElementObjectOutput;
|
||
|
type ClassDecorator = (descriptor: ClassObject) => ?ClassObject;
|
||
|
type ClassFinisher = <A, B>(cl: Class<A>) => Class<B>;
|
||
|
|
||
|
// Only used by Babel in the transform output, not part of the spec.
|
||
|
type ElementDefinition =
|
||
|
| {
|
||
|
kind: "method",
|
||
|
value: any,
|
||
|
key: Key,
|
||
|
static?: boolean,
|
||
|
decorators?: ElementDecorator[],
|
||
|
}
|
||
|
| {
|
||
|
kind: "field",
|
||
|
value: () => any,
|
||
|
key: Key,
|
||
|
static?: boolean,
|
||
|
decorators?: ElementDecorator[],
|
||
|
};
|
||
|
|
||
|
declare function ClassFactory<C>(initialize: (instance: C) => void): {
|
||
|
F: Class<C>,
|
||
|
d: ElementDefinition[]
|
||
|
}
|
||
|
|
||
|
*/
|
||
|
|
||
|
/*::
|
||
|
// Various combinations with/without extras and with one or many finishers
|
||
|
|
||
|
type ElementFinisherExtras = {
|
||
|
element: ElementDescriptor,
|
||
|
finisher?: ClassFinisher,
|
||
|
extras?: ElementDescriptor[],
|
||
|
};
|
||
|
|
||
|
type ElementFinishersExtras = {
|
||
|
element: ElementDescriptor,
|
||
|
finishers: ClassFinisher[],
|
||
|
extras: ElementDescriptor[],
|
||
|
};
|
||
|
|
||
|
type ElementsFinisher = {
|
||
|
elements: ElementDescriptor[],
|
||
|
finisher?: ClassFinisher,
|
||
|
};
|
||
|
|
||
|
type ElementsFinishers = {
|
||
|
elements: ElementDescriptor[],
|
||
|
finishers: ClassFinisher[],
|
||
|
};
|
||
|
|
||
|
*/
|
||
|
|
||
|
/*::
|
||
|
|
||
|
type Placements = {
|
||
|
static: Key[],
|
||
|
prototype: Key[],
|
||
|
own: Key[],
|
||
|
};
|
||
|
|
||
|
*/
|
||
|
|
||
|
// ClassDefinitionEvaluation (Steps 26-*)
|
||
|
export default function _decorate(
|
||
|
decorators /*: ClassDecorator[] */,
|
||
|
factory /*: ClassFactory */,
|
||
|
superClass /*: ?Class<*> */,
|
||
|
mixins /*: ?Array<Function> */,
|
||
|
) /*: Class<*> */ {
|
||
|
var api = _getDecoratorsApi();
|
||
|
if (mixins) {
|
||
|
for (var i = 0; i < mixins.length; i++) {
|
||
|
api = mixins[i](api);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
var r = factory(function initialize(O) {
|
||
|
api.initializeInstanceElements(O, decorated.elements);
|
||
|
}, superClass);
|
||
|
var decorated = api.decorateClass(
|
||
|
_coalesceClassElements(r.d.map(_createElementDescriptor)),
|
||
|
decorators,
|
||
|
);
|
||
|
|
||
|
api.initializeClassElements(r.F, decorated.elements);
|
||
|
|
||
|
return api.runClassFinishers(r.F, decorated.finishers);
|
||
|
}
|
||
|
|
||
|
function _getDecoratorsApi() {
|
||
|
_getDecoratorsApi = function() {
|
||
|
return api;
|
||
|
};
|
||
|
|
||
|
var api = {
|
||
|
elementsDefinitionOrder: [["method"], ["field"]],
|
||
|
|
||
|
// InitializeInstanceElements
|
||
|
initializeInstanceElements: function(
|
||
|
/*::<C>*/ O /*: C */,
|
||
|
elements /*: ElementDescriptor[] */,
|
||
|
) {
|
||
|
["method", "field"].forEach(function(kind) {
|
||
|
elements.forEach(function(element /*: ElementDescriptor */) {
|
||
|
if (element.kind === kind && element.placement === "own") {
|
||
|
this.defineClassElement(O, element);
|
||
|
}
|
||
|
}, this);
|
||
|
}, this);
|
||
|
},
|
||
|
|
||
|
// InitializeClassElements
|
||
|
initializeClassElements: function(
|
||
|
/*::<C>*/ F /*: Class<C> */,
|
||
|
elements /*: ElementDescriptor[] */,
|
||
|
) {
|
||
|
var proto = F.prototype;
|
||
|
|
||
|
["method", "field"].forEach(function(kind) {
|
||
|
elements.forEach(function(element /*: ElementDescriptor */) {
|
||
|
var placement = element.placement;
|
||
|
if (
|
||
|
element.kind === kind &&
|
||
|
(placement === "static" || placement === "prototype")
|
||
|
) {
|
||
|
var receiver = placement === "static" ? F : proto;
|
||
|
this.defineClassElement(receiver, element);
|
||
|
}
|
||
|
}, this);
|
||
|
}, this);
|
||
|
},
|
||
|
|
||
|
// DefineClassElement
|
||
|
defineClassElement: function(
|
||
|
/*::<C>*/ receiver /*: C | Class<C> */,
|
||
|
element /*: ElementDescriptor */,
|
||
|
) {
|
||
|
var descriptor /*: PropertyDescriptor */ = element.descriptor;
|
||
|
if (element.kind === "field") {
|
||
|
var initializer = element.initializer;
|
||
|
descriptor = {
|
||
|
enumerable: descriptor.enumerable,
|
||
|
writable: descriptor.writable,
|
||
|
configurable: descriptor.configurable,
|
||
|
value: initializer === void 0 ? void 0 : initializer.call(receiver),
|
||
|
};
|
||
|
}
|
||
|
Object.defineProperty(receiver, element.key, descriptor);
|
||
|
},
|
||
|
|
||
|
// DecorateClass
|
||
|
decorateClass: function(
|
||
|
elements /*: ElementDescriptor[] */,
|
||
|
decorators /*: ClassDecorator[] */,
|
||
|
) /*: ElementsFinishers */ {
|
||
|
var newElements /*: ElementDescriptor[] */ = [];
|
||
|
var finishers /*: ClassFinisher[] */ = [];
|
||
|
var placements /*: Placements */ = {
|
||
|
static: [],
|
||
|
prototype: [],
|
||
|
own: [],
|
||
|
};
|
||
|
|
||
|
elements.forEach(function(element /*: ElementDescriptor */) {
|
||
|
this.addElementPlacement(element, placements);
|
||
|
}, this);
|
||
|
|
||
|
elements.forEach(function(element /*: ElementDescriptor */) {
|
||
|
if (!_hasDecorators(element)) return newElements.push(element);
|
||
|
|
||
|
var elementFinishersExtras /*: ElementFinishersExtras */ = this.decorateElement(
|
||
|
element,
|
||
|
placements,
|
||
|
);
|
||
|
newElements.push(elementFinishersExtras.element);
|
||
|
newElements.push.apply(newElements, elementFinishersExtras.extras);
|
||
|
finishers.push.apply(finishers, elementFinishersExtras.finishers);
|
||
|
}, this);
|
||
|
|
||
|
if (!decorators) {
|
||
|
return { elements: newElements, finishers: finishers };
|
||
|
}
|
||
|
|
||
|
var result /*: ElementsFinishers */ = this.decorateConstructor(
|
||
|
newElements,
|
||
|
decorators,
|
||
|
);
|
||
|
finishers.push.apply(finishers, result.finishers);
|
||
|
result.finishers = finishers;
|
||
|
|
||
|
return result;
|
||
|
},
|
||
|
|
||
|
// AddElementPlacement
|
||
|
addElementPlacement: function(
|
||
|
element /*: ElementDescriptor */,
|
||
|
placements /*: Placements */,
|
||
|
silent /*: boolean */,
|
||
|
) {
|
||
|
var keys = placements[element.placement];
|
||
|
if (!silent && keys.indexOf(element.key) !== -1) {
|
||
|
throw new TypeError("Duplicated element (" + element.key + ")");
|
||
|
}
|
||
|
keys.push(element.key);
|
||
|
},
|
||
|
|
||
|
// DecorateElement
|
||
|
decorateElement: function(
|
||
|
element /*: ElementDescriptor */,
|
||
|
placements /*: Placements */,
|
||
|
) /*: ElementFinishersExtras */ {
|
||
|
var extras /*: ElementDescriptor[] */ = [];
|
||
|
var finishers /*: ClassFinisher[] */ = [];
|
||
|
|
||
|
for (
|
||
|
var decorators = element.decorators, i = decorators.length - 1;
|
||
|
i >= 0;
|
||
|
i--
|
||
|
) {
|
||
|
// (inlined) RemoveElementPlacement
|
||
|
var keys = placements[element.placement];
|
||
|
keys.splice(keys.indexOf(element.key), 1);
|
||
|
|
||
|
var elementObject /*: ElementObjectInput */ = this.fromElementDescriptor(
|
||
|
element,
|
||
|
);
|
||
|
var elementFinisherExtras /*: ElementFinisherExtras */ = this.toElementFinisherExtras(
|
||
|
(0, decorators[i])(elementObject) /*: ElementObjectOutput */ ||
|
||
|
elementObject,
|
||
|
);
|
||
|
|
||
|
element = elementFinisherExtras.element;
|
||
|
this.addElementPlacement(element, placements);
|
||
|
|
||
|
if (elementFinisherExtras.finisher) {
|
||
|
finishers.push(elementFinisherExtras.finisher);
|
||
|
}
|
||
|
|
||
|
var newExtras /*: ElementDescriptor[] | void */ =
|
||
|
elementFinisherExtras.extras;
|
||
|
if (newExtras) {
|
||
|
for (var j = 0; j < newExtras.length; j++) {
|
||
|
this.addElementPlacement(newExtras[j], placements);
|
||
|
}
|
||
|
extras.push.apply(extras, newExtras);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
return { element: element, finishers: finishers, extras: extras };
|
||
|
},
|
||
|
|
||
|
// DecorateConstructor
|
||
|
decorateConstructor: function(
|
||
|
elements /*: ElementDescriptor[] */,
|
||
|
decorators /*: ClassDecorator[] */,
|
||
|
) /*: ElementsFinishers */ {
|
||
|
var finishers /*: ClassFinisher[] */ = [];
|
||
|
|
||
|
for (var i = decorators.length - 1; i >= 0; i--) {
|
||
|
var obj /*: ClassObject */ = this.fromClassDescriptor(elements);
|
||
|
var elementsAndFinisher /*: ElementsFinisher */ = this.toClassDescriptor(
|
||
|
(0, decorators[i])(obj) /*: ClassObject */ || obj,
|
||
|
);
|
||
|
|
||
|
if (elementsAndFinisher.finisher !== undefined) {
|
||
|
finishers.push(elementsAndFinisher.finisher);
|
||
|
}
|
||
|
|
||
|
if (elementsAndFinisher.elements !== undefined) {
|
||
|
elements = elementsAndFinisher.elements;
|
||
|
|
||
|
for (var j = 0; j < elements.length - 1; j++) {
|
||
|
for (var k = j + 1; k < elements.length; k++) {
|
||
|
if (
|
||
|
elements[j].key === elements[k].key &&
|
||
|
elements[j].placement === elements[k].placement
|
||
|
) {
|
||
|
throw new TypeError(
|
||
|
"Duplicated element (" + elements[j].key + ")",
|
||
|
);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
return { elements: elements, finishers: finishers };
|
||
|
},
|
||
|
|
||
|
// FromElementDescriptor
|
||
|
fromElementDescriptor: function(
|
||
|
element /*: ElementDescriptor */,
|
||
|
) /*: ElementObject */ {
|
||
|
var obj /*: ElementObject */ = {
|
||
|
kind: element.kind,
|
||
|
key: element.key,
|
||
|
placement: element.placement,
|
||
|
descriptor: element.descriptor,
|
||
|
};
|
||
|
|
||
|
var desc = {
|
||
|
value: "Descriptor",
|
||
|
configurable: true,
|
||
|
};
|
||
|
Object.defineProperty(obj, Symbol.toStringTag, desc);
|
||
|
|
||
|
if (element.kind === "field") obj.initializer = element.initializer;
|
||
|
|
||
|
return obj;
|
||
|
},
|
||
|
|
||
|
// ToElementDescriptors
|
||
|
toElementDescriptors: function(
|
||
|
elementObjects /*: ElementObject[] */,
|
||
|
) /*: ElementDescriptor[] */ {
|
||
|
if (elementObjects === undefined) return;
|
||
|
return toArray(elementObjects).map(function(elementObject) {
|
||
|
var element = this.toElementDescriptor(elementObject);
|
||
|
this.disallowProperty(elementObject, "finisher", "An element descriptor");
|
||
|
this.disallowProperty(elementObject, "extras", "An element descriptor");
|
||
|
return element;
|
||
|
}, this);
|
||
|
},
|
||
|
|
||
|
// ToElementDescriptor
|
||
|
toElementDescriptor: function(
|
||
|
elementObject /*: ElementObject */,
|
||
|
) /*: ElementDescriptor */ {
|
||
|
var kind = String(elementObject.kind);
|
||
|
if (kind !== "method" && kind !== "field") {
|
||
|
throw new TypeError(
|
||
|
'An element descriptor\\'s .kind property must be either "method" or' +
|
||
|
' "field", but a decorator created an element descriptor with' +
|
||
|
' .kind "' +
|
||
|
kind +
|
||
|
'"',
|
||
|
);
|
||
|
}
|
||
|
|
||
|
var key = toPropertyKey(elementObject.key);
|
||
|
|
||
|
var placement = String(elementObject.placement);
|
||
|
if (
|
||
|
placement !== "static" &&
|
||
|
placement !== "prototype" &&
|
||
|
placement !== "own"
|
||
|
) {
|
||
|
throw new TypeError(
|
||
|
'An element descriptor\\'s .placement property must be one of "static",' +
|
||
|
' "prototype" or "own", but a decorator created an element descriptor' +
|
||
|
' with .placement "' +
|
||
|
placement +
|
||
|
'"',
|
||
|
);
|
||
|
}
|
||
|
|
||
|
var descriptor /*: PropertyDescriptor */ = elementObject.descriptor;
|
||
|
|
||
|
this.disallowProperty(elementObject, "elements", "An element descriptor");
|
||
|
|
||
|
var element /*: ElementDescriptor */ = {
|
||
|
kind: kind,
|
||
|
key: key,
|
||
|
placement: placement,
|
||
|
descriptor: Object.assign({}, descriptor),
|
||
|
};
|
||
|
|
||
|
if (kind !== "field") {
|
||
|
this.disallowProperty(elementObject, "initializer", "A method descriptor");
|
||
|
} else {
|
||
|
this.disallowProperty(
|
||
|
descriptor,
|
||
|
"get",
|
||
|
"The property descriptor of a field descriptor",
|
||
|
);
|
||
|
this.disallowProperty(
|
||
|
descriptor,
|
||
|
"set",
|
||
|
"The property descriptor of a field descriptor",
|
||
|
);
|
||
|
this.disallowProperty(
|
||
|
descriptor,
|
||
|
"value",
|
||
|
"The property descriptor of a field descriptor",
|
||
|
);
|
||
|
|
||
|
element.initializer = elementObject.initializer;
|
||
|
}
|
||
|
|
||
|
return element;
|
||
|
},
|
||
|
|
||
|
toElementFinisherExtras: function(
|
||
|
elementObject /*: ElementObject */,
|
||
|
) /*: ElementFinisherExtras */ {
|
||
|
var element /*: ElementDescriptor */ = this.toElementDescriptor(
|
||
|
elementObject,
|
||
|
);
|
||
|
var finisher /*: ClassFinisher */ = _optionalCallableProperty(
|
||
|
elementObject,
|
||
|
"finisher",
|
||
|
);
|
||
|
var extras /*: ElementDescriptors[] */ = this.toElementDescriptors(
|
||
|
elementObject.extras,
|
||
|
);
|
||
|
|
||
|
return { element: element, finisher: finisher, extras: extras };
|
||
|
},
|
||
|
|
||
|
// FromClassDescriptor
|
||
|
fromClassDescriptor: function(
|
||
|
elements /*: ElementDescriptor[] */,
|
||
|
) /*: ClassObject */ {
|
||
|
var obj = {
|
||
|
kind: "class",
|
||
|
elements: elements.map(this.fromElementDescriptor, this),
|
||
|
};
|
||
|
|
||
|
var desc = { value: "Descriptor", configurable: true };
|
||
|
Object.defineProperty(obj, Symbol.toStringTag, desc);
|
||
|
|
||
|
return obj;
|
||
|
},
|
||
|
|
||
|
// ToClassDescriptor
|
||
|
toClassDescriptor: function(
|
||
|
obj /*: ClassObject */,
|
||
|
) /*: ElementsFinisher */ {
|
||
|
var kind = String(obj.kind);
|
||
|
if (kind !== "class") {
|
||
|
throw new TypeError(
|
||
|
'A class descriptor\\'s .kind property must be "class", but a decorator' +
|
||
|
' created a class descriptor with .kind "' +
|
||
|
kind +
|
||
|
'"',
|
||
|
);
|
||
|
}
|
||
|
|
||
|
this.disallowProperty(obj, "key", "A class descriptor");
|
||
|
this.disallowProperty(obj, "placement", "A class descriptor");
|
||
|
this.disallowProperty(obj, "descriptor", "A class descriptor");
|
||
|
this.disallowProperty(obj, "initializer", "A class descriptor");
|
||
|
this.disallowProperty(obj, "extras", "A class descriptor");
|
||
|
|
||
|
var finisher = _optionalCallableProperty(obj, "finisher");
|
||
|
var elements = this.toElementDescriptors(obj.elements);
|
||
|
|
||
|
return { elements: elements, finisher: finisher };
|
||
|
},
|
||
|
|
||
|
// RunClassFinishers
|
||
|
runClassFinishers: function(
|
||
|
constructor /*: Class<*> */,
|
||
|
finishers /*: ClassFinisher[] */,
|
||
|
) /*: Class<*> */ {
|
||
|
for (var i = 0; i < finishers.length; i++) {
|
||
|
var newConstructor /*: ?Class<*> */ = (0, finishers[i])(constructor);
|
||
|
if (newConstructor !== undefined) {
|
||
|
// NOTE: This should check if IsConstructor(newConstructor) is false.
|
||
|
if (typeof newConstructor !== "function") {
|
||
|
throw new TypeError("Finishers must return a constructor.");
|
||
|
}
|
||
|
constructor = newConstructor;
|
||
|
}
|
||
|
}
|
||
|
return constructor;
|
||
|
},
|
||
|
|
||
|
disallowProperty: function(obj, name, objectType) {
|
||
|
if (obj[name] !== undefined) {
|
||
|
throw new TypeError(objectType + " can't have a ." + name + " property.");
|
||
|
}
|
||
|
}
|
||
|
};
|
||
|
|
||
|
return api;
|
||
|
}
|
||
|
|
||
|
// ClassElementEvaluation
|
||
|
function _createElementDescriptor(
|
||
|
def /*: ElementDefinition */,
|
||
|
) /*: ElementDescriptor */ {
|
||
|
var key = toPropertyKey(def.key);
|
||
|
|
||
|
var descriptor /*: PropertyDescriptor */;
|
||
|
if (def.kind === "method") {
|
||
|
descriptor = {
|
||
|
value: def.value,
|
||
|
writable: true,
|
||
|
configurable: true,
|
||
|
enumerable: false,
|
||
|
};
|
||
|
} else if (def.kind === "get") {
|
||
|
descriptor = { get: def.value, configurable: true, enumerable: false };
|
||
|
} else if (def.kind === "set") {
|
||
|
descriptor = { set: def.value, configurable: true, enumerable: false };
|
||
|
} else if (def.kind === "field") {
|
||
|
descriptor = { configurable: true, writable: true, enumerable: true };
|
||
|
}
|
||
|
|
||
|
var element /*: ElementDescriptor */ = {
|
||
|
kind: def.kind === "field" ? "field" : "method",
|
||
|
key: key,
|
||
|
placement: def.static
|
||
|
? "static"
|
||
|
: def.kind === "field"
|
||
|
? "own"
|
||
|
: "prototype",
|
||
|
descriptor: descriptor,
|
||
|
};
|
||
|
if (def.decorators) element.decorators = def.decorators;
|
||
|
if (def.kind === "field") element.initializer = def.value;
|
||
|
|
||
|
return element;
|
||
|
}
|
||
|
|
||
|
// CoalesceGetterSetter
|
||
|
function _coalesceGetterSetter(
|
||
|
element /*: ElementDescriptor */,
|
||
|
other /*: ElementDescriptor */,
|
||
|
) {
|
||
|
if (element.descriptor.get !== undefined) {
|
||
|
other.descriptor.get = element.descriptor.get;
|
||
|
} else {
|
||
|
other.descriptor.set = element.descriptor.set;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// CoalesceClassElements
|
||
|
function _coalesceClassElements(
|
||
|
elements /*: ElementDescriptor[] */,
|
||
|
) /*: ElementDescriptor[] */ {
|
||
|
var newElements /*: ElementDescriptor[] */ = [];
|
||
|
|
||
|
var isSameElement = function(
|
||
|
other /*: ElementDescriptor */,
|
||
|
) /*: boolean */ {
|
||
|
return (
|
||
|
other.kind === "method" &&
|
||
|
other.key === element.key &&
|
||
|
other.placement === element.placement
|
||
|
);
|
||
|
};
|
||
|
|
||
|
for (var i = 0; i < elements.length; i++) {
|
||
|
var element /*: ElementDescriptor */ = elements[i];
|
||
|
var other /*: ElementDescriptor */;
|
||
|
|
||
|
if (
|
||
|
element.kind === "method" &&
|
||
|
(other = newElements.find(isSameElement))
|
||
|
) {
|
||
|
if (
|
||
|
_isDataDescriptor(element.descriptor) ||
|
||
|
_isDataDescriptor(other.descriptor)
|
||
|
) {
|
||
|
if (_hasDecorators(element) || _hasDecorators(other)) {
|
||
|
throw new ReferenceError(
|
||
|
"Duplicated methods (" + element.key + ") can't be decorated.",
|
||
|
);
|
||
|
}
|
||
|
other.descriptor = element.descriptor;
|
||
|
} else {
|
||
|
if (_hasDecorators(element)) {
|
||
|
if (_hasDecorators(other)) {
|
||
|
throw new ReferenceError(
|
||
|
"Decorators can't be placed on different accessors with for " +
|
||
|
"the same property (" +
|
||
|
element.key +
|
||
|
").",
|
||
|
);
|
||
|
}
|
||
|
other.decorators = element.decorators;
|
||
|
}
|
||
|
_coalesceGetterSetter(element, other);
|
||
|
}
|
||
|
} else {
|
||
|
newElements.push(element);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
return newElements;
|
||
|
}
|
||
|
|
||
|
function _hasDecorators(element /*: ElementDescriptor */) /*: boolean */ {
|
||
|
return element.decorators && element.decorators.length;
|
||
|
}
|
||
|
|
||
|
function _isDataDescriptor(desc /*: PropertyDescriptor */) /*: boolean */ {
|
||
|
return (
|
||
|
desc !== undefined &&
|
||
|
!(desc.value === undefined && desc.writable === undefined)
|
||
|
);
|
||
|
}
|
||
|
|
||
|
function _optionalCallableProperty /*::<T>*/(
|
||
|
obj /*: T */,
|
||
|
name /*: $Keys<T> */,
|
||
|
) /*: ?Function */ {
|
||
|
var value = obj[name];
|
||
|
if (value !== undefined && typeof value !== "function") {
|
||
|
throw new TypeError("Expected '" + name + "' to be a function");
|
||
|
}
|
||
|
return value;
|
||
|
}
|
||
|
|
||
|
`,d.classPrivateMethodGet=l("7.1.6")`
|
||
|
export default function _classPrivateMethodGet(receiver, privateSet, fn) {
|
||
|
if (!privateSet.has(receiver)) {
|
||
|
throw new TypeError("attempted to get private field on non-instance");
|
||
|
}
|
||
|
return fn;
|
||
|
}
|
||
|
`,d.checkPrivateRedeclaration=l("7.14.1")`
|
||
|
export default function _checkPrivateRedeclaration(obj, privateCollection) {
|
||
|
if (privateCollection.has(obj)) {
|
||
|
throw new TypeError("Cannot initialize the same private elements twice on an object");
|
||
|
}
|
||
|
}
|
||
|
`,d.classPrivateFieldInitSpec=l("7.14.1")`
|
||
|
import checkPrivateRedeclaration from "checkPrivateRedeclaration";
|
||
|
|
||
|
export default function _classPrivateFieldInitSpec(obj, privateMap, value) {
|
||
|
checkPrivateRedeclaration(obj, privateMap);
|
||
|
privateMap.set(obj, value);
|
||
|
}
|
||
|
`,d.classPrivateMethodInitSpec=l("7.14.1")`
|
||
|
import checkPrivateRedeclaration from "checkPrivateRedeclaration";
|
||
|
|
||
|
export default function _classPrivateMethodInitSpec(obj, privateSet) {
|
||
|
checkPrivateRedeclaration(obj, privateSet);
|
||
|
privateSet.add(obj);
|
||
|
}
|
||
|
`,d.classPrivateMethodSet=l("7.1.6")`
|
||
|
export default function _classPrivateMethodSet() {
|
||
|
throw new TypeError("attempted to reassign private method");
|
||
|
}
|
||
|
`,d.identity=l("7.17.0")`
|
||
|
export default function _identity(x) {
|
||
|
return x;
|
||
|
}
|
||
|
`},"./node_modules/.pnpm/@babel+helpers@7.22.15/node_modules/@babel/helpers/lib/index.js":(o,r,u)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,r.ensure=function(C,P){b||(b=P),S(C)},r.get=w,r.getDependencies=function(C){return S(C).getDependencies()},r.list=void 0,r.minVersion=function(C){return S(C).minVersion};var a=u("./node_modules/.pnpm/@babel+traverse@7.22.15/node_modules/@babel/traverse/lib/index.js"),m=u("./node_modules/.pnpm/@babel+types@7.22.15/node_modules/@babel/types/lib/index.js"),d=u("./node_modules/.pnpm/@babel+helpers@7.22.15/node_modules/@babel/helpers/lib/helpers.js");let{assignmentExpression:s,cloneNode:l,expressionStatement:f,file:p,identifier:h}=m;function y(C){let P=[];for(;C.parentPath;C=C.parentPath)P.push(C.key),C.inList&&P.push(C.listKey);return P.reverse().join(".")}let b;function E(C){let P=new Set,D=new Set,L=new Map,I,j,M=[],R=[],z=[],Y={ImportDeclaration(G){let U=G.node.source.value;if(!d.default[U])throw G.buildCodeFrameError(`Unknown helper ${U}`);if(G.get("specifiers").length!==1||!G.get("specifiers.0").isImportDefaultSpecifier())throw G.buildCodeFrameError("Helpers can only import a default value");let B=G.node.specifiers[0].local;L.set(B,U),R.push(y(G))},ExportDefaultDeclaration(G){let U=G.get("declaration");if(!U.isFunctionDeclaration()||!U.node.id)throw U.buildCodeFrameError("Helpers can only export named function declarations");I=U.node.id.name,j=y(G)},ExportAllDeclaration(G){throw G.buildCodeFrameError("Helpers can only export default")},ExportNamedDeclaration(G){throw G.buildCodeFrameError("Helpers can only export default")},Statement(G){G.isImportDeclaration()||G.isExportDeclaration()||G.skip()}},$={Program(G){let U=G.scope.getAllBindings();Object.keys(U).forEach(B=>{B!==I&&(L.has(U[B].identifier)||D.add(B))})},ReferencedIdentifier(G){let U=G.node.name,B=G.scope.getBinding(U);B?L.has(B.identifier)&&z.push(y(G)):P.add(U)},AssignmentExpression(G){let U=G.get("left");if(!(I in U.getBindingIdentifiers()))return;if(!U.isIdentifier())throw U.buildCodeFrameError("Only simple assignments to exports are allowed in helpers");let B=G.scope.getBinding(I);B!=null&&B.scope.path.isProgram()&&M.push(y(G))}};if((0,a.default)(C.ast,Y,C.scope),(0,a.default)(C.ast,$,C.scope),!j)throw new Error("Helpers must have a default export.");return M.reverse(),{globals:Array.from(P),localBindingNames:Array.from(D),dependencies:L,exportBindingAssignments:M,exportPath:j,exportName:I,importBindingsReferences:z,importPaths:R}}let v=Object.create(null);function S(C){if(!v[C]){let P=d.default[C];if(!P)throw Object.assign(new ReferenceError(`Unknown helper ${C}`),{code:"BABEL_HELPER_UNKNOWN",helper:C});let D=()=>{if(!b){let I={ast:p(P.ast()),path:null};return(0,a.default)(I.ast,{Program:j=>(I.path=j).stop()}),I}return new b({filename:`babel-helper://${C}`},{ast:p(P.ast()),code:"[internal Babel helper code]",inputMap:null})},L=null;v[C]={minVersion:P.minVersion,build(I,j,M){let R=D();return L||(L=E(R)),function(z,Y,$,G,U){if(G&&!$)throw new Error("Unexpected local bindings for module-based helpers.");if(!$)return;let{localBindingNames:B,dependencies:N,exportBindingAssignments:X,exportPath:H,exportName:F,importBindingsReferences:W,importPaths:V}=Y,Q={};N.forEach((se,ye)=>{Q[ye.name]=typeof U=="function"&&U(se)||ye});let ne={},ue=new Set(G||[]);B.forEach(se=>{let ye=se;for(;ue.has(ye);)ye="_"+ye;ye!==se&&(ne[se]=ye)}),$.type==="Identifier"&&F!==$.name&&(ne[F]=$.name);let{path:de}=z,Ae=de.get(H),Oe=V.map(se=>de.get(se)),Me=W.map(se=>de.get(se)),ae=Ae.get("declaration");if($.type==="Identifier")Ae.replaceWith(ae);else{if($.type!=="MemberExpression")throw new Error("Unexpected helper format.");X.forEach(se=>{let ye=de.get(se);ye.replaceWith(s("=",$,ye.node))}),Ae.replaceWith(ae),de.pushContainer("body",f(s("=",$,h(F))))}Object.keys(ne).forEach(se=>{de.scope.rename(se,ne[se])});for(let se of Oe)se.remove();for(let se of Me){let ye=l(Q[se.node.name]);se.replaceWith(ye)}}(R,L,j,M,I),{nodes:R.ast.program.body,globals:L.globals}},getDependencies:()=>(L||(L=E(D())),Array.from(L.dependencies.
|
||
|
- Did you mean \`export { '${te}' as '${c}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:te})=>`'${te==="ForInStatement"?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:te})=>`Unsyntactic ${te==="BreakStatement"?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedAssertSyntax: true` option in the import attributes plugin to suppress this error.",ImportBindingIsString:({importName:te})=>`A string literal cannot be used as an imported binding.
|
||
|
- Did you mean \`import { "${te}" as foo }\`?`,ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:({maxArgumentCount:te})=>`\`import()\` requires exactly ${te===1?"one argument":"one or two arguments"}.`,ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:te})=>`Expected number in radix ${te}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:te})=>`Escape sequence in keyword ${te}.`,InvalidIdentifier:({identifierName:te})=>`Invalid identifier ${te}.`,InvalidLhs:({ancestor:te})=>`Invalid left-hand side in ${p(te)}.`,InvalidLhsBinding:({ancestor:te})=>`Binding invalid left-hand side in ${p(te)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:te})=>`Unexpected character '${te}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:te})=>`Private name #${te} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:te})=>`Label '${te}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:te})=>`This experimental syntax requires enabling the parser plugin: ${te.map(c=>JSON.stringify(c)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:te})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${te.map(c=>JSON.stringify(c)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:te})=>`Duplicate key "${te}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:te})=>`An export name cannot include a lone surrogate, found '\\u${te.toString(16)}'.`,ModuleExportUndefined:({localName:te})=>`Export '${te}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declara
|
||
|
`,++g,bt===13&&c.charCodeAt(g)===10&&++g,++O,at=_=g):q.unterminated(ee,le,fe):++g}return{pos:g,str:we,firstInvalidLoc:Re,lineStart:_,curLine:O,containsInvalid:!!Re}}function mr(te,c,g,_){return te==="template"?c===96||c===36&&g.charCodeAt(_+1)===123:c===(te==="double"?34:39)}function ar(te,c,g,_,O,q){let ee=!O;c++;let le=we=>({pos:c,ch:we,lineStart:g,curLine:_}),fe=te.charCodeAt(c++);switch(fe){case 110:return le(`
|
||
|
`);case 114:return le("\r");case 120:{let we;return{code:we,pos:c}=qr(te,c,g,_,2,!1,ee,q),le(we===null?null:String.fromCharCode(we))}case 117:{let we;return{code:we,pos:c}=yi(te,c,g,_,ee,q),le(we===null?null:String.fromCodePoint(we))}case 116:return le(" ");case 98:return le("\b");case 118:return le("\v");case 102:return le("\f");case 13:te.charCodeAt(c)===10&&++c;case 10:g=c,++_;case 8232:case 8233:return le("");case 56:case 57:if(O)return le(null);q.strictNumericEscape(c-1,g,_);default:if(fe>=48&&fe<=55){let we=c-1,Re=te.slice(we,c+2).match(/^[0-7]+/)[0],at=parseInt(Re,8);at>255&&(Re=Re.slice(0,-1),at=parseInt(Re,8)),c+=Re.length-1;let Rt=te.charCodeAt(c);if(Re!=="0"||Rt===56||Rt===57){if(O)return le(null);q.strictNumericEscape(we,g,_)}return le(String.fromCharCode(at))}return le(String.fromCharCode(fe))}}function qr(te,c,g,_,O,q,ee,le){let fe=c,we;return{n:we,pos:c}=Lt(te,c,g,_,16,O,q,!1,le,!ee),we===null&&(ee?le.invalidEscapeSequence(fe,g,_):c=fe-1),{code:we,pos:c}}function Lt(te,c,g,_,O,q,ee,le,fe,we){let Re=c,at=O===16?Et.hex:Et.decBinOct,Rt=O===16?qt.hex:O===10?qt.dec:O===8?qt.oct:qt.bin,bt=!1,Jt=0;for(let Hr=0,pr=q??1/0;Hr<pr;++Hr){let Ir=te.charCodeAt(c),wn;if(Ir!==95||le==="bail"){if(wn=Ir>=97?Ir-97+10:Ir>=65?Ir-65+10:Tt(Ir)?Ir-48:1/0,wn>=O){if(wn<=9&&we)return{n:null,pos:c};if(wn<=9&&fe.invalidDigit(c,g,_,O))wn=0;else{if(!ee)break;wn=0,bt=!0}}++c,Jt=Jt*O+wn}else{let Xf=te.charCodeAt(c-1),dl=te.charCodeAt(c+1);if(le){if(Number.isNaN(dl)||!Rt(dl)||at.has(Xf)||at.has(dl)){if(we)return{n:null,pos:c};fe.unexpectedNumericSeparator(c,g,_)}}else{if(we)return{n:null,pos:c};fe.numericSeparatorInEscapeSequence(c,g,_)}++c}}return c===Re||q!=null&&c-Re!==q||bt?{n:null,pos:c}:{n:Jt,pos:c}}function yi(te,c,g,_,O,q){let ee;if(te.charCodeAt(c)===123){if(++c,{code:ee,pos:c}=qr(te,c,g,_,te.indexOf("}",c)-c,!0,O,q),++c,ee!==null&&ee>1114111){if(!O)return{code:null,pos:c};q.invalidCodePoint(c,g,_)}}else({code:ee,pos:c}=qr(te,c,g,_,4,!1,O,q));return{code:ee,pos:c}}let ba=["at"],Gi=["at"];function xn(te,c,g){return new a(g,te-c,te)}let ga=new Set([103,109,115,105,121,117,100,118]);class Dn{constructor(c){this.type=c.type,this.value=c.value,this.start=c.start,this.end=c.end,this.loc=new m(c.startLoc,c.endLoc)}}class Ii extends Ne{constructor(c,g){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(_,O,q,ee)=>!!this.options.errorRecovery&&(this.raise(x.InvalidDigit,{at:xn(_,O,q),radix:ee}),!0),numericSeparatorInEscapeSequence:this.errorBuilder(x.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(x.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(x.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(x.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(_,O,q)=>{this.recordStrictModeErrors(x.StrictNumericEscape,{at:xn(_,O,q)})},unterminated:(_,O,q)=>{throw this.raise(x.UnterminatedString,{at:xn(_-1,O,q)})}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(x.StrictNumericEscape),unterminated:(_,O,q)=>{throw this.raise(x.UnterminatedTemplate,{at:xn(_,O,q)})}}),this.state=new tt,this.state.init(c),this.input=g,this.length=g.length,this.isLookahead=!1}pushToken(c){this.tokens.length=this.state.tokensLength,this.tokens.push(c),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new Dn(this.state)),this.state.lastTokStart=this.state.start,this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(c){return!!this.match(c)&&(this.next(),!0)}match(c){return this.state.type===c}createLookaheadState(c){return{pos:c.pos,value:null,type:c.type,start:c.start,end:c.end,context:[this.curContext()],inType:c.inType,startLoc:c.startLoc,lastTokEndLoc:c.lastTokEndLoc,curLine:c.curLine,lineStart:c.lineStart,curPosition:c.curPos
|
||
|
`:`\r
|
||
|
`):_=String.fromCharCode(g),++this.state.curLine,this.state.lineStart=this.state.pos,_}jsxReadString(c){let g="",_=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(x.UnterminatedString,{at:this.state.startLoc});let O=this.input.charCodeAt(this.state.pos);if(O===c)break;O===38?(g+=this.input.slice(_,this.state.pos),g+=this.jsxReadEntity(),_=this.state.pos):ot(O)?(g+=this.input.slice(_,this.state.pos),g+=this.jsxReadNewLine(!1),_=this.state.pos):++this.state.pos}g+=this.input.slice(_,this.state.pos++),this.finishToken(131,g)}jsxReadEntity(){let c=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let g=10;this.codePointAtPos(this.state.pos)===120&&(g=16,++this.state.pos);let _=this.readInt(g,void 0,!1,"bail");if(_!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(_)}else{let g=0,_=!1;for(;g++<10&&this.state.pos<this.length&&!(_=this.codePointAtPos(this.state.pos)==59);)++this.state.pos;if(_){let O=this.input.slice(c,this.state.pos),q=gc[O];if(++this.state.pos,q)return q}}return this.state.pos=c,"&"}jsxReadWord(){let c,g=this.state.pos;do c=this.input.charCodeAt(++this.state.pos);while(Qe(c)||c===45);this.finishToken(138,this.input.slice(g,this.state.pos))}jsxParseIdentifier(){let c=this.startNode();return this.match(138)?c.name=this.state.value:Ae(this.state.type)?c.name=Oe(this.state.type):this.unexpected(),this.next(),this.finishNode(c,"JSXIdentifier")}jsxParseNamespacedName(){let c=this.state.startLoc,g=this.jsxParseIdentifier();if(!this.eat(14))return g;let _=this.startNodeAt(c);return _.namespace=g,_.name=this.jsxParseIdentifier(),this.finishNode(_,"JSXNamespacedName")}jsxParseElementName(){let c=this.state.startLoc,g=this.jsxParseNamespacedName();if(g.type==="JSXNamespacedName")return g;for(;this.eat(16);){let _=this.startNodeAt(c);_.object=g,_.property=this.jsxParseIdentifier(),g=this.finishNode(_,"JSXMemberExpression")}return g}jsxParseAttributeValue(){let c;switch(this.state.type){case 5:return c=this.startNode(),this.setContext(I.brace),this.next(),c=this.jsxParseExpressionContainer(c,I.j_oTag),c.expression.type==="JSXEmptyExpression"&&this.raise(Xi.AttributeIsEmpty,{at:c}),c;case 140:case 131:return this.parseExprAtom();default:throw this.raise(Xi.UnsupportedJsxValue,{at:this.state.startLoc})}}jsxParseEmptyExpression(){let c=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(c,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(c){return this.next(),c.expression=this.parseExpression(),this.setContext(I.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(c,"JSXSpreadChild")}jsxParseExpressionContainer(c,g){if(this.match(8))c.expression=this.jsxParseEmptyExpression();else{let _=this.parseExpression();c.expression=_}return this.setContext(g),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(c,"JSXExpressionContainer")}jsxParseAttribute(){let c=this.startNode();return this.match(5)?(this.setContext(I.brace),this.next(),this.expect(21),c.argument=this.parseMaybeAssignAllowIn(),this.setContext(I.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(c,"JSXSpreadAttribute")):(c.name=this.jsxParseNamespacedName(),c.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(c,"JSXAttribute"))}jsxParseOpeningElementAt(c){let g=this.startNodeAt(c);return this.eat(141)?this.finishNode(g,"JSXOpeningFragment"):(g.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(g))}jsxParseOpeningElementAfterName(c){let g=[];for(;!this.match(56)&&!this.match(141);)g.push(this.jsxParseAttribute());return c.attributes=g,c.selfClosing=this.eat(56),this.expect(141),this.finishNode(c,"JSXOpeningElement")}jsxParseClosingElementAt(c){let g=this.startNodeAt(c);return this.eat(141)?this.finishNode(g,"JSXClosingFragment"):(g.name=this.jsxParseElementName(),this.expect(141),this.finishNode(g,"JSXClosingElement"))}jsxParseElementAt(c){let g=this.startNodeAt(c),_=[],O=this.jsxParseOpeningElementAt(c),q=null;if(!O.selfClosing){e:for(;;)switch(this.state.t
|
||
|
`),cooked:q===null?null:q.slice(1,we)},le.tail=fe,this.next();let at=this.finishNode(le,"TemplateElement");return this.resetEndLocation(at,d(this.state.lastTokEndLoc,we)),at}parseTemplate(c){let g=this.startNode();g.expressions=[];let _=this.parseTemplateElement(c);for(g.quasis=[_];!_.tail;)g.expressions.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),g.quasis.push(_=this.parseTemplateElement(c));return this.finishNode(g,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(c,g,_,O){_&&this.expectPlugin("recordAndTuple");let q=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let ee=Object.create(null),le=!0,fe=this.startNode();for(fe.properties=[],this.next();!this.match(c);){if(le)le=!1;else if(this.expect(12),this.match(c)){this.addTrailingCommaExtraToNode(fe);break}let Re;g?Re=this.parseBindingProperty():(Re=this.parsePropertyDefinition(O),this.checkProto(Re,_,ee,O)),_&&!this.isObjectProperty(Re)&&Re.type!=="SpreadElement"&&this.raise(x.InvalidRecordProperty,{at:Re}),Re.shorthand&&this.addExtra(Re,"shorthand",!0),fe.properties.push(Re)}this.next(),this.state.inFSharpPipelineDirectBody=q;let we="ObjectExpression";return g?we="ObjectPattern":_&&(we="RecordExpression"),this.finishNode(fe,we)}addTrailingCommaExtraToNode(c){this.addExtra(c,"trailingComma",this.state.lastTokStart),this.addExtra(c,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(c){return!c.computed&&c.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(c){let g=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(x.UnsupportedPropertyDecorator,{at:this.state.startLoc});this.match(26);)g.push(this.parseDecorator());let _=this.startNode(),O,q=!1,ee=!1;if(this.match(21))return g.length&&this.unexpected(),this.parseSpread();g.length&&(_.decorators=g,g=[]),_.method=!1,c&&(O=this.state.startLoc);let le=this.eat(55);this.parsePropertyNamePrefixOperator(_);let fe=this.state.containsEsc,we=this.parsePropertyName(_,c);if(!le&&!fe&&this.maybeAsyncOrAccessorProp(_)){let Re=we.name;Re!=="async"||this.hasPrecedingLineBreak()||(q=!0,this.resetPreviousNodeTrailingComments(we),le=this.eat(55),this.parsePropertyName(_)),Re!=="get"&&Re!=="set"||(ee=!0,this.resetPreviousNodeTrailingComments(we),_.kind=Re,this.match(55)&&(le=!0,this.raise(x.AccessorIsGenerator,{at:this.state.curPosition(),kind:Re}),this.next()),this.parsePropertyName(_))}return this.parseObjPropValue(_,O,le,q,!1,ee,c)}getGetterSetterExpectedParamCount(c){return c.kind==="get"?0:1}getObjectOrClassMethodParams(c){return c.params}checkGetterSetterParams(c){var g;let _=this.getGetterSetterExpectedParamCount(c),O=this.getObjectOrClassMethodParams(c);O.length!==_&&this.raise(c.kind==="get"?x.BadGetterArity:x.BadSetterArity,{at:c}),c.kind==="set"&&((g=O[O.length-1])==null?void 0:g.type)==="RestElement"&&this.raise(x.BadSetterRestParameter,{at:c})}parseObjectMethod(c,g,_,O,q){if(q){let ee=this.parseMethod(c,g,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(ee),ee}if(_||g||this.match(10))return O&&this.unexpected(),c.kind="method",c.method=!0,this.parseMethod(c,g,_,!1,!1,"ObjectMethod")}parseObjectProperty(c,g,_,O){if(c.shorthand=!1,this.eat(14))return c.value=_?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(O),this.finishNode(c,"ObjectProperty");if(!c.computed&&c.key.type==="Identifier"){if(this.checkReservedWord(c.key.name,c.key.loc.start,!0,!1),_)c.value=this.parseMaybeDefault(g,ni(c.key));else if(this.match(29)){let q=this.state.startLoc;O!=null?O.shorthandAssignLoc===null&&(O.shorthandAssignLoc=q):this.raise(x.InvalidCoverInitializedName,{at:q}),c.value=this.parseMaybeDefault(g,ni(c.key))}else c.value=ni(c.key);return c.shorthand=!0,this.finishNode(c,"ObjectProperty")}}parseObjPropValue(c,g,_,O,q,ee,le){let fe=this.parseObjectMethod(c,_,O,q,ee)||this.parseObjectProperty(c,g,q,le);return fe||this.unexpected(),fe}parsePropertyName(c,g){if(this.eat(0))c.computed=!0,c.key=this.parseMaybeAssign
|
||
|
class extends ${ne.addHelper("identity")} {}
|
||
|
`;ie.body.body=[a.types.staticBlock([a.types.toStatement(nt,!0)||a.types.expressionStatement(nt)]),...Ce];let Ne=[],Be=a.types.newExpression(ie,[]);re.length>0&&Ne.push(...re.map(z)),er&&(Ar=!0,Ne.push(er)),Ne.length>0?(Ne.unshift(a.types.callExpression(a.types.super(),[a.types.cloneNode(Qe)])),ie.body.body.push(a.types.classMethod("constructor",a.types.identifier("constructor"),[],a.types.blockStatement([a.types.expressionStatement(a.types.sequenceExpression(Ne))])))):Be.arguments.push(a.types.cloneNode(Qe)),Q.replaceWith(Be)}}return!Ar&&er&&Q.node.body.body.push(a.types.staticBlock([a.types.expressionStatement(er)])),nt.body.body.unshift(a.types.staticBlock([a.types.expressionStatement(Y(zt,Zt,et,a.types.arrayExpression(Kt),a.types.numericLiteral(ut),ve?he:null,ne,de)),oe&&a.types.expressionStatement(a.types.callExpression(a.types.cloneNode(Ke),[a.types.thisExpression()]))].filter(Boolean))),Q.insertBefore(pt.map(Ce=>a.types.expressionStatement(Ce))),Q.scope.crawl(),Q}(F,W,H,B);V&&X.add(V)}}}};var a=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/index.js"),m=u("./node_modules/.pnpm/@babel+plugin-syntax-decorators@7.22.10_@babel+core@7.22.15/node_modules/@babel/plugin-syntax-decorators/lib/index.js"),d=u("./node_modules/.pnpm/@babel+helper-replace-supers@7.22.9_@babel+core@7.22.15/node_modules/@babel/helper-replace-supers/lib/index.js"),s=u("./node_modules/.pnpm/@babel+helper-split-export-declaration@7.22.6/node_modules/@babel/helper-split-export-declaration/lib/index.js");function l($,G=$.length-1){if(G===-1)return void $.unshift(65);let U=$[G];U===90?$[G]=97:U===122?($[G]=65,l($,G-1)):$[G]=U+1}function f($,G,U){return $.type==="PrivateName"?a.types.classPrivateProperty($,G,void 0,U):a.types.classProperty($,G,void 0,void 0,U)}function p($,G,U,B,N,X=!1){let{static:H}=G.node,F=N==="2023-05"&&H?$:a.types.thisExpression(),W=a.types.blockStatement([a.types.returnStatement(a.types.memberExpression(a.types.cloneNode(F),a.types.cloneNode(B)))]),V=a.types.blockStatement([a.types.expressionStatement(a.types.assignmentExpression("=",a.types.memberExpression(a.types.cloneNode(F),a.types.cloneNode(B)),a.types.identifier("v")))]),Q,ne;U.type==="PrivateName"?(Q=a.types.classPrivateMethod("get",a.types.cloneNode(U),[],W,H),ne=a.types.classPrivateMethod("set",a.types.cloneNode(U),[a.types.identifier("v")],V,H)):(Q=a.types.classMethod("get",a.types.cloneNode(U),[],W,X,H),ne=a.types.classMethod("set",a.types.cloneNode(U),[a.types.identifier("v")],V,X,H)),G.insertAfter(ne),G.insertAfter(Q)}function h($,G){return G!=="2023-05"&&G!=="2023-01"?[a.template.expression.ast`
|
||
|
function () {
|
||
|
return this.${a.types.cloneNode($)};
|
||
|
}
|
||
|
`,a.template.expression.ast`
|
||
|
function (value) {
|
||
|
this.${a.types.cloneNode($)} = value;
|
||
|
}
|
||
|
`]:[a.template.expression.ast`
|
||
|
o => o.${a.types.cloneNode($)}
|
||
|
`,a.template.expression.ast`
|
||
|
(o, v) => o.${a.types.cloneNode($)} = v
|
||
|
`]}let y=0,b=1,E=2,v=3,S=4,w=5,A=8,x=16;function C($){switch($.node.type){case"ClassProperty":case"ClassPrivateProperty":return y;case"ClassAccessorProperty":return b;case"ClassMethod":case"ClassPrivateMethod":return $.node.kind==="get"?v:$.node.kind==="set"?S:E}}function P($){return"decorators"in $}function D($){let G=$.filter(P);return[...G.filter(U=>U.isStatic&&U.kind>=b&&U.kind<=S),...G.filter(U=>!U.isStatic&&U.kind>=b&&U.kind<=S),...G.filter(U=>U.isStatic&&U.kind===y),...G.filter(U=>!U.isStatic&&U.kind===y)]}function L($,G,U){let B=$.length,N=G.some(Boolean),X=[];for(let H=0;H<B;H++)U==="2023-05"&&N&&X.push(G[H]||a.types.unaryExpression("void",a.types.numericLiteral(0))),X.push($[H]);return{hasThis:N,decs:X}}function I($,G,U,B){$.insertAfter(a.types.classPrivateMethod("get",a.types.cloneNode(G),[],a.types.blockStatement([a.types.returnStatement(a.types.callExpression(a.types.cloneNode(U),[a.types.thisExpression()]))]))),$.insertAfter(a.types.classPrivateMethod("set",a.types.cloneNode(G),[a.types.identifier("v")],a.types.blockStatement([a.types.expressionStatement(a.types.callExpression(a.types.cloneNode(B),[a.types.thisExpression(),a.types.identifier("v")]))])))}function j($){return $.type!=="TSParameterProperty"}function M($,G,U,B){let N,X;$.node.kind==="set"?(N=[a.types.identifier("v")],X=[a.types.expressionStatement(a.types.callExpression(U,[a.types.thisExpression(),a.types.identifier("v")]))]):(N=[],X=[a.types.returnStatement(a.types.callExpression(U,[a.types.thisExpression()]))]),$.replaceWith(a.types.classPrivateMethod($.node.kind,a.types.cloneNode(G),N,a.types.blockStatement(X),B))}function R($){let{type:G}=$;return G!=="TSDeclareMethod"&&G!=="TSIndexSignature"&&G!=="StaticBlock"}function z($){return a.types.callExpression(a.types.arrowFunctionExpression([],a.types.blockStatement($.body)),[])}function Y($,G,U,B,N,X,H,F){let W,V,Q=[a.types.thisExpression(),U,B];if(F==="2021-12"||F==="2022-03"&&!H.availableHelper("applyDecs2203R")){let ne=a.types.arrayPattern([...$,...G]),ue=a.types.callExpression(H.addHelper(F==="2021-12"?"applyDecs":"applyDecs2203"),Q);return a.types.assignmentExpression("=",ne,ue)}return F==="2023-05"?((X||N.value!==0)&&Q.push(N),X&&Q.push(a.template.expression.ast`
|
||
|
_ => ${a.types.cloneNode(X)} in _
|
||
|
`),V=a.types.callExpression(H.addHelper("applyDecs2305"),Q)):F==="2023-01"?(X&&Q.push(a.template.expression.ast`
|
||
|
_ => ${a.types.cloneNode(X)} in _
|
||
|
`),V=a.types.callExpression(H.addHelper("applyDecs2301"),Q)):V=a.types.callExpression(H.addHelper("applyDecs2203R"),Q),$.length>0?G.length>0?W=a.types.objectPattern([a.types.objectProperty(a.types.identifier("e"),a.types.arrayPattern($)),a.types.objectProperty(a.types.identifier("c"),a.types.arrayPattern(G))]):(W=a.types.arrayPattern($),V=a.types.memberExpression(V,a.types.identifier("e"),!1,!1)):(W=a.types.arrayPattern(G),V=a.types.memberExpression(V,a.types.identifier("c"),!1,!1)),a.types.assignmentExpression("=",W,V)}},"./node_modules/.pnpm/@babel+plugin-proposal-decorators@7.22.15_@babel+core@7.22.15/node_modules/@babel/plugin-proposal-decorators/lib/transformer-legacy.js":(o,r,u)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var a=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/index.js");let m=a.template.statement(`
|
||
|
DECORATOR(CLASS_REF = INNER) || CLASS_REF;
|
||
|
`),d=(0,a.template)(`
|
||
|
CLASS_REF.prototype;
|
||
|
`),s=(0,a.template)(`
|
||
|
Object.getOwnPropertyDescriptor(TARGET, PROPERTY);
|
||
|
`),l=(0,a.template)(`
|
||
|
(TEMP = Object.getOwnPropertyDescriptor(TARGET, PROPERTY), (TEMP = TEMP ? TEMP.value : undefined), {
|
||
|
enumerable: true,
|
||
|
configurable: true,
|
||
|
writable: true,
|
||
|
initializer: function(){
|
||
|
return TEMP;
|
||
|
}
|
||
|
})
|
||
|
`),f=new WeakSet;function p(S){let w=(S.isClass()?[S,...S.get("body.body")]:S.get("properties")).reduce((A,x)=>A.concat(x.node.decorators||[]),[]).filter(A=>!a.types.isIdentifier(A.expression));if(w.length!==0)return a.types.sequenceExpression(w.map(A=>{let x=A.expression,C=A.expression=S.scope.generateDeclaredUidIdentifier("dec");return a.types.assignmentExpression("=",C,x)}).concat([S.node]))}function h(S){var w;return!((w=S.decorators)==null||!w.length)}function y(S){return S.some(w=>{var A;return(A=w.decorators)==null?void 0:A.length})}function b(S,w,A){let x=S.scope.generateDeclaredUidIdentifier(S.isClass()?"class":"obj"),C=A.reduce(function(P,D){let L=[];if(D.decorators!=null&&(L=D.decorators,D.decorators=null),L.length===0)return P;if(D.computed)throw S.buildCodeFrameError("Computed method/property decorators are not yet supported.");let I=a.types.isLiteral(D.key)?D.key:a.types.stringLiteral(D.key.name),j=S.isClass()&&!D.static?d({CLASS_REF:x}).expression:x;if(a.types.isClassProperty(D,{static:!1})){let M=S.scope.generateDeclaredUidIdentifier("descriptor"),R=D.value?a.types.functionExpression(null,[],a.types.blockStatement([a.types.returnStatement(D.value)])):a.types.nullLiteral();D.value=a.types.callExpression(w.addHelper("initializerWarningHelper"),[M,a.types.thisExpression()]),f.add(D.value),P.push(a.types.assignmentExpression("=",a.types.cloneNode(M),a.types.callExpression(w.addHelper("applyDecoratedDescriptor"),[a.types.cloneNode(j),a.types.cloneNode(I),a.types.arrayExpression(L.map(z=>a.types.cloneNode(z.expression))),a.types.objectExpression([a.types.objectProperty(a.types.identifier("configurable"),a.types.booleanLiteral(!0)),a.types.objectProperty(a.types.identifier("enumerable"),a.types.booleanLiteral(!0)),a.types.objectProperty(a.types.identifier("writable"),a.types.booleanLiteral(!0)),a.types.objectProperty(a.types.identifier("initializer"),R)])])))}else P.push(a.types.callExpression(w.addHelper("applyDecoratedDescriptor"),[a.types.cloneNode(j),a.types.cloneNode(I),a.types.arrayExpression(L.map(M=>a.types.cloneNode(M.expression))),a.types.isObjectProperty(D)||a.types.isClassProperty(D,{static:!0})?l({TEMP:S.scope.generateDeclaredUidIdentifier("init"),TARGET:a.types.cloneNode(j),PROPERTY:a.types.cloneNode(I)}).expression:s({TARGET:a.types.cloneNode(j),PROPERTY:a.types.cloneNode(I)}).expression,a.types.cloneNode(j)]));return P},[]);return a.types.sequenceExpression([a.types.assignmentExpression("=",a.types.cloneNode(x),S.node),a.types.sequenceExpression(C),a.types.cloneNode(x)])}function E({node:S,scope:w}){if(!h(S)&&!y(S.body.body))return;let A=S.id?a.types.cloneNode(S.id):w.generateUidIdentifier("class");return a.types.variableDeclaration("let",[a.types.variableDeclarator(A,a.types.toExpression(S))])}var v={ExportDefaultDeclaration(S){let w=S.get("declaration");if(!w.isClassDeclaration())return;let A=E(w);if(A){let[x]=S.replaceWithMultiple([A,a.types.exportNamedDeclaration(null,[a.types.exportSpecifier(a.types.cloneNode(A.declarations[0].id),a.types.identifier("default"))])]);w.node.id||S.scope.registerDeclaration(x)}},ClassDeclaration(S){let w=E(S);if(w){let[A]=S.replaceWith(w),x=A.get("declarations.0"),C=x.node.id,P=S.scope.getOwnBinding(C.name);P.identifier=C,P.path=x}},ClassExpression(S,w){let A=p(S)||function(x){if(!h(x.node))return;let C=x.node.decorators||[];x.node.decorators=null;let P=x.scope.generateDeclaredUidIdentifier("class");return C.map(D=>D.expression).reverse().reduce(function(D,L){return m({CLASS_REF:a.types.cloneNode(P),DECORATOR:a.types.cloneNode(L),INNER:D}).expression},x.node)}(S)||function(x,C){if(y(x.node.body.body))return b(x,C,x.node.body.body)}(S,w);A&&S.replaceWith(A)},ObjectExpression(S,w){let A=p(S)||function(x,C){if(y(x.node.properties))return b(x,C,x.node.properties.filter(P=>P.type!=="SpreadElement"))}(S,w);A&&S.replaceWith(A)},AssignmentExpression(S,w){f.has(S.node.right)&&S.replaceWith(a.types.callExpression(w.addHelper("initializerDefineProperty"),[a.types.cloneNode(S.get("left.object").node),a.types.stringLiteral(S.get("left.property").node.name||S.get("left.prope
|
||
|
(function(){
|
||
|
throw new Error(
|
||
|
"The CommonJS '" + "${$}" + "' variable is not available in ES6 modules." +
|
||
|
"Consider setting setting sourceType:script or sourceType:unambiguous in your " +
|
||
|
"Babel config for this file.");
|
||
|
})()
|
||
|
`,Y={ReferencedIdentifier($){let G=$.node.name;if(G!=="module"&&G!=="exports")return;let U=$.scope.getBinding(G);this.scope.getBinding(G)!==U||$.parentPath.isObjectProperty({value:$.node})&&$.parentPath.parentPath.isObjectPattern()||$.parentPath.isAssignmentExpression({left:$.node})||$.isAssignmentExpression({left:$.node})||$.replaceWith(z(G))},UpdateExpression($){let G=$.get("argument");if(!G.isIdentifier())return;let U=G.node.name;if(U!=="module"&&U!=="exports")return;let B=$.scope.getBinding(U);this.scope.getBinding(U)===B&&$.replaceWith(s.types.assignmentExpression($.node.operator[0]+"=",G.node,z(U)))},AssignmentExpression($){let G=$.get("left");if(G.isIdentifier()){let U=G.node.name;if(U!=="module"&&U!=="exports")return;let B=$.scope.getBinding(U);if(this.scope.getBinding(U)!==B)return;let N=$.get("right");N.replaceWith(s.types.sequenceExpression([N.node,z(U)]))}else if(G.isPattern()){let U=G.getOuterBindingIdentifiers(),B=Object.keys(U).filter(N=>(N==="module"||N==="exports")&&this.scope.getBinding(N)===$.scope.getBinding(N))[0];if(B){let N=$.get("right");N.replaceWith(s.types.sequenceExpression([N.node,z(B)]))}}}};return{name:"transform-modules-commonjs",pre(){this.file.set("@babel/plugin-transform-modules-*","commonjs")},visitor:{CallExpression($){if(!this.file.has("@babel/plugin-proposal-dynamic-import")||!s.types.isImport($.node.callee))return;let{scope:G}=$;do G.rename("require");while(G=G.parent);(0,l.transformDynamicImport)($,C,this.file)},Program:{exit($,G){if(!(0,m.isModule)($))return;$.scope.rename("exports"),$.scope.rename("module"),$.scope.rename("require"),$.scope.rename("__filename"),$.scope.rename("__dirname"),L||((0,d.default)($,new Set(["module","exports"]),!1),$.traverse(Y,{scope:$.scope}));let U=(0,m.getModuleName)(this.file.opts,h);U&&(U=s.types.stringLiteral(U));let{meta:B,headers:N}=(0,m.rewriteModuleStatementsAndPrepareHeader)($,{exportName:"exports",constantReexports:j,enumerableModuleMeta:M,strict:A,strictMode:x,allowTopLevelThis:w,noInterop:C,importInterop:P,lazy:D,esNamespaceOnly:typeof G.filename=="string"&&/\.mjs$/.test(G.filename)?S:v,noIncompleteNsImportDetection:R,filename:this.file.opts.filename});for(let[X,H]of B.source){let F=s.types.callExpression(s.types.identifier("require"),[s.types.stringLiteral(X)]),W;if((0,m.isSideEffectImport)(H)){if(H.lazy)throw new Error("Assertion failure");W=s.types.expressionStatement(F)}else{if(H.lazy&&!H.referenced)continue;let V=(0,m.wrapInterop)($,F,H.interop)||F;W=H.lazy?s.template.statement.ast`
|
||
|
function ${H.name}() {
|
||
|
const data = ${V};
|
||
|
${H.name} = function(){ return data; };
|
||
|
return data;
|
||
|
}
|
||
|
`:s.template.statement.ast`
|
||
|
var ${H.name} = ${V};
|
||
|
`}W.loc=H.loc,N.push(W),N.push(...(0,m.buildNamespaceInitStatements)(B,H,j))}(0,m.ensureStatementsHoisted)(N),$.unshiftContainer("body",N),$.get("body").forEach(X=>{N.indexOf(X.node)!==-1&&X.isVariableDeclaration()&&X.scope.registerDeclaration(X)})}}}}});r.default=f},"./node_modules/.pnpm/@babel+plugin-transform-nullish-coalescing-operator@7.22.11_@babel+core@7.22.15/node_modules/@babel/plugin-transform-nullish-coalescing-operator/lib/index.js":(o,r,u)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var a=u("./node_modules/.pnpm/@babel+helper-plugin-utils@7.22.5/node_modules/@babel/helper-plugin-utils/lib/index.js"),m=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/index.js"),d=(0,a.declare)((s,{loose:l=!1})=>{var f;s.assertVersion(7);let p=(f=s.assumption("noDocumentAll"))!=null?f:l;return{name:"transform-nullish-coalescing-operator",inherits:u("./node_modules/.pnpm/@babel+plugin-syntax-nullish-coalescing-operator@7.8.3_@babel+core@7.22.15/node_modules/@babel/plugin-syntax-nullish-coalescing-operator/lib/index.js").Z,visitor:{LogicalExpression(h){let{node:y,scope:b}=h;if(y.operator!=="??")return;let E,v;if(b.isStatic(y.left))E=y.left,v=m.types.cloneNode(y.left);else{if(b.path.isPattern())return void h.replaceWith(m.template.statement.ast`(() => ${h.node})()`);E=b.generateUidIdentifierBasedOnNode(y.left),b.push({id:m.types.cloneNode(E)}),v=m.types.assignmentExpression("=",E,y.left)}h.replaceWith(m.types.conditionalExpression(p?m.types.binaryExpression("!=",v,m.types.nullLiteral()):m.types.logicalExpression("&&",m.types.binaryExpression("!==",v,m.types.nullLiteral()),m.types.binaryExpression("!==",m.types.cloneNode(E),b.buildUndefinedNode())),m.types.cloneNode(E),y.right))}}}});r.default=d},"./node_modules/.pnpm/@babel+plugin-transform-optional-chaining@7.22.15_@babel+core@7.22.15/node_modules/@babel/plugin-transform-optional-chaining/lib/index.js":(o,r,u)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a=u("./node_modules/.pnpm/@babel+helper-plugin-utils@7.22.5/node_modules/@babel/helper-plugin-utils/lib/index.js"),m=u("./node_modules/.pnpm/@babel+core@7.22.15/node_modules/@babel/core/lib/index.js"),d=u("./node_modules/.pnpm/@babel+helper-skip-transparent-expression-wrappers@7.22.5/node_modules/@babel/helper-skip-transparent-expression-wrappers/lib/index.js");function s(A){let x=l(A),{node:C,parentPath:P}=x;if(P.isLogicalExpression()){let{operator:D,right:L}=P.node;if(D==="&&"||D==="||"||D==="??"&&C===L)return s(P)}if(P.isSequenceExpression()){let{expressions:D}=P.node;return D[D.length-1]!==C||s(P)}return P.isConditional({test:C})||P.isUnaryExpression({operator:"!"})||P.isLoop({test:C})}function l(A){let x=A;return A.findParent(C=>{if(!d.isTransparentExprWrapper(C.node))return!0;x=C}),x}let f=A=>A[A.length-1];function p(A){return A=d.skipTransparentExprWrapperNodes(A),m.types.isIdentifier(A)||m.types.isSuper(A)||m.types.isMemberExpression(A)&&!A.computed&&p(A.object)}let h=m.template.expression("%%check%% === null || %%ref%% === void 0"),y=m.template.expression("%%check%% == null"),b=m.template.expression("%%check%% !== null && %%ref%% !== void 0"),E=m.template.expression("%%check%% != null");function v(A,{pureGetters:x,noDocumentAll:C},P,D,L){let{scope:I}=A;if(I.path.isPattern()&&function(F){let W=F,{scope:V}=F;for(;W.isOptionalMemberExpression()||W.isOptionalCallExpression();){let{node:Q}=W,ne=d.skipTransparentExprWrappers(W.isOptionalMemberExpression()?W.get("object"):W.get("callee"));if(Q.optional)return!V.isStatic(ne.node);W=ne}}(A))return void P.replaceWith(m.template.expression.ast`(() => ${P.node})()`);let j=[],M=A;for(;M.isOptionalMemberExpression()||M.isOptionalCallExpression();){let{node:F}=M;F.optional&&j.push(F),M.isOptionalMemberExpression()?(M.node.type="MemberExpression",M=d.skipTransparentExprWrappers(M.get("object"))):M.isOptionalCallExpression()&&(M.node.type="CallExpression",M=d.skipTransparentExprWrappers(M.get("callee")))}if(j.length===0)return;let R=[],z;for(let F=j.length-1;F>=0;F--){let W=j[F],V=m.type
|
||
|
(function (ID) {
|
||
|
ASSIGNMENTS;
|
||
|
return ID;
|
||
|
})(INIT)
|
||
|
`),f=(0,a.template)(`
|
||
|
ENUM["NAME"] = VALUE;
|
||
|
`),p=(0,a.template)(`
|
||
|
ENUM[ENUM["NAME"] = VALUE] = "NAME";
|
||
|
`),h=(S,w)=>(S?f:p)(w);function y(S,w){let{seen:A,path:x,t:C}=w,P=S.node.name;A.has(P)&&!S.scope.hasOwnBinding(P)&&(S.replaceWith(C.memberExpression(C.cloneNode(x.node.id),C.cloneNode(S.node))),S.skip())}let b={ReferencedIdentifier:y};function E(S,w){let A=new Map,x,C=-1,P=!0,D=S.get("members").map(L=>{let I=L.node,j=w.isIdentifier(I.id)?I.id.name:I.id.value,M=L.get("initializer"),R;if(I.initializer)C=v(M,A),C!==void 0?(A.set(j,C),m(typeof C=="number"||typeof C=="string"),R=C===1/0||Number.isNaN(C)?w.identifier(String(C)):C===-1/0?w.unaryExpression("-",w.identifier("Infinity")):w.valueToNode(C)):(P&&(P=M.isPure()),M.isReferencedIdentifier()?y(M,{t:w,seen:A,path:S}):M.traverse(b,{t:w,seen:A,path:S}),R=M.node,A.set(j,void 0));else if(typeof C=="number")C+=1,R=w.numericLiteral(C),A.set(j,C);else{if(typeof C=="string")throw S.buildCodeFrameError("Enum member must have initializer.");{let z=w.memberExpression(w.cloneNode(S.node.id),w.stringLiteral(x),!0);R=w.binaryExpression("+",w.numericLiteral(1),z),A.set(j,void 0)}}return x=j,[j,R]});return{isPure:P,data:A,enumValues:D}}function v(S,w,A=new Set){return x(S);function x(P){let D=P.node;switch(D.type){case"MemberExpression":case"Identifier":return C(P,w,A);case"StringLiteral":case"NumericLiteral":return D.value;case"UnaryExpression":return function(L){let I=x(L.get("argument"));if(I!==void 0)switch(L.node.operator){case"+":return I;case"-":return-I;case"~":return~I;default:return}}(P);case"BinaryExpression":return function(L){let I=x(L.get("left"));if(I===void 0)return;let j=x(L.get("right"));if(j!==void 0)switch(L.node.operator){case"|":return I|j;case"&":return I&j;case">>":return I>>j;case">>>":return I>>>j;case"<<":return I<<j;case"^":return I^j;case"*":return I*j;case"/":return I/j;case"+":return I+j;case"-":return I-j;case"%":return I%j;case"**":return Math.pow(I,j);default:return}}(P);case"ParenthesizedExpression":return x(P.get("expression"));case"TemplateLiteral":{if(D.quasis.length===1)return D.quasis[0].value.cooked;let L=P.get("expressions"),I=D.quasis,j="";for(let M=0;M<I.length;M++)if(j+=I[M].value.cooked,M+1<I.length){let R=C(L[M],w,A);if(R===void 0)return;j+=R}return j}default:return}}function C(P,D,L){if(P.isMemberExpression()){let I=P.node,j=I.object,M=I.property;if(!a.types.isIdentifier(j)||(I.computed?!a.types.isStringLiteral(M):!a.types.isIdentifier(M)))return;let R=P.scope.getBindingIdentifier(j.name),z=s.get(R);return z?z.get(M.computed?M.value:M.name):void 0}if(P.isIdentifier()){let I=P.node.name;if(["Infinity","NaN"].includes(I))return Number(I);let j=D==null?void 0:D.get(I);if(j!==void 0)return j;if(L.has(P.node))return;let M=P.resolve();if(M)return L.add(P.node),j=v(M,void 0,L),D==null||D.set(I,j),j}}}},"./node_modules/.pnpm/@babel+plugin-transform-typescript@7.22.15_@babel+core@7.22.15/node_modules/@babel/plugin-transform-typescript/lib/index.js":(o,r,u)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var a=u("./node_modules/.pnpm/@babel+helper-plugin-utils@7.22.5/node_modules/@babel/helper-plugin-utils/lib/index.js"),m=u("./node_modules/.pnpm/@babel+plugin-syntax-typescript@7.22.5_@babel+core@7.22.15/node_modules/@babel/plugin-syntax-typescript/lib/index.js"),d=u("./node_modules/.pnpm/@babel+helper-create-class-features-plugin@7.22.15_@babel+core@7.22.15/node_modules/@babel/helper-create-class-features-plugin/lib/index.js"),s=u("./node_modules/.pnpm/@babel+plugin-transform-typescript@7.22.15_@babel+core@7.22.15/node_modules/@babel/plugin-transform-typescript/lib/const-enum.js"),l=u("./node_modules/.pnpm/@babel+plugin-transform-typescript@7.22.15_@babel+core@7.22.15/node_modules/@babel/plugin-transform-typescript/lib/enum.js"),f=u("./node_modules/.pnpm/@babel+plugin-transform-typescript@7.22.15_@babel+core@7.22.15/node_modules/@babel/plugin-transform-typescript/lib/namespace.js");function p(x){switch(x.parent.type){case"TSTypeReference":case"TSExpressionWithTypeArguments":case"TSTypeQuery":return!0;case"TSQualifiedName":return x.parentPath.findParent(C=>C.type!=="TSQualifiedName").type!=="TSImportEqualsDeclaration"
|
||
|
as a JavaScript value binding, and "@babel/plugin-transform-typescript"
|
||
|
never encountered it as a TypeScript type declaration.
|
||
|
It will be treated as a JavaScript value.
|
||
|
|
||
|
This problem is likely caused by another plugin injecting
|
||
|
"${C}" without registering it in the scope tracker. If you are the author
|
||
|
of that plugin, please use "scope.registerDeclaration(declarationPath)".`),!1))}function v(x,C){h.get(x).add(C)}function S(x){let C=x.getBindingIdentifiers();for(let P of Object.keys(C)){let D=x.scope.getBinding(P);D&&D.identifier===C[P]&&D.scope.removeBinding(P)}x.opts.noScope=!0,x.remove(),x.opts.noScope=!1}function w(x,C,P,D,L=""){if(C.file.get("@babel/plugin-transform-modules-*")!=="commonjs")throw x.buildCodeFrameError(`\`${P}\` is only supported when compiling modules to CommonJS.
|
||
|
Please consider using \`${D}\`${L}, or add @babel/plugin-transform-modules-commonjs to your Babel config.`)}var A=(0,a.declare)((x,C)=>{let{types:P,template:D}=x;x.assertVersion(7);let L=/\*?\s*@jsx((?:Frag)?)\s+([^\s]+)/,{allowNamespaces:I=!0,jsxPragma:j="React.createElement",jsxPragmaFrag:M="React.Fragment",onlyRemoveTypeImports:R=!1,optimizeConstEnums:z=!1}=C;var{allowDeclareFields:Y=!1}=C;let $={field(N){let{node:X}=N;if(!Y&&X.declare)throw N.buildCodeFrameError("The 'declare' modifier is only allowed when the 'allowDeclareFields' option of @babel/plugin-transform-typescript or @babel/preset-typescript is enabled.");if(X.declare){if(X.value)throw N.buildCodeFrameError("Fields with the 'declare' modifier cannot be initialized here, but only in the constructor");X.decorators||N.remove()}else if(X.definite){if(X.value)throw N.buildCodeFrameError("Definitely assigned fields cannot be initialized here, but only in the constructor");Y||X.decorators||P.isClassPrivateProperty(X)||N.remove()}else X.abstract?N.remove():Y||X.value||X.decorators||P.isClassPrivateProperty(X)||N.remove();X.accessibility&&(X.accessibility=null),X.abstract&&(X.abstract=null),X.readonly&&(X.readonly=null),X.optional&&(X.optional=null),X.typeAnnotation&&(X.typeAnnotation=null),X.definite&&(X.definite=null),X.declare&&(X.declare=null),X.override&&(X.override=null)},method({node:N}){N.accessibility&&(N.accessibility=null),N.abstract&&(N.abstract=null),N.optional&&(N.optional=null),N.override&&(N.override=null)},constructor(N,X){N.node.accessibility&&(N.node.accessibility=null);let H=[],{scope:F}=N;for(let W of N.get("params")){let V=W.node;if(V.type==="TSParameterProperty"){let Q=V.parameter;if(b.has(Q))continue;let ne;if(b.add(Q),P.isIdentifier(Q))ne=Q;else{if(!P.isAssignmentPattern(Q)||!P.isIdentifier(Q.left))throw W.buildCodeFrameError("Parameter properties can not be destructuring patterns.");ne=Q.left}H.push(D.statement.ast`
|
||
|
this.${P.cloneNode(ne)} = ${P.cloneNode(ne)}`),W.replaceWith(W.get("parameter")),F.registerBinding("param",W)}}(0,d.injectInitialization)(X,N,H)}};return{name:"transform-typescript",inherits:m.default,visitor:{Pattern:U,Identifier:U,RestElement:U,Program:{enter(N,X){let{file:H}=X,F=null,W=null,V=N.scope;if(h.has(V)||h.set(V,new Set),H.ast.comments)for(let ue of H.ast.comments){let de=L.exec(ue.value);de&&(de[1]?W=de[2]:F=de[2])}let Q=F||j;Q&&([Q]=Q.split("."));let ne=W||M;ne&&([ne]=ne.split("."));for(let ue of N.get("body"))if(ue.isImportDeclaration()){if(y.has(X.file.ast.program)||y.set(X.file.ast.program,!0),ue.node.importKind==="type"){for(let Me of ue.node.specifiers)v(V,Me.local.name);ue.remove();continue}let de=new Set,Ae=ue.node.specifiers.length,Oe=()=>Ae>0&&Ae===de.size;for(let Me of ue.node.specifiers)if(Me.type==="ImportSpecifier"&&Me.importKind==="type"){v(V,Me.local.name);let ae=ue.scope.getBinding(Me.local.name);ae&&de.add(ae.path)}if(R)y.set(N.node,!1);else{if(ue.node.specifiers.length===0){y.set(N.node,!1);continue}for(let Me of ue.node.specifiers){let ae=ue.scope.getBinding(Me.local.name);ae&&!de.has(ae.path)&&(B({binding:ae,programPath:N,pragmaImportName:Q,pragmaFragImportName:ne})?de.add(ae.path):y.set(N.node,!1))}}if(Oe()&&!R)ue.remove();else for(let Me of de)Me.remove()}else if(ue.isExportDeclaration()&&(ue=ue.get("declaration")),ue.isVariableDeclaration({declare:!0}))for(let de of Object.keys(ue.getBindingIdentifiers()))v(V,de);else(ue.isTSTypeAliasDeclaration()||ue.isTSDeclareFunction()&&ue.get("id").isIdentifier()||ue.isTSInterfaceDeclaration()||ue.isClassDeclaration({declare:!0})||ue.isTSEnumDeclaration({declare:!0})||ue.isTSModuleDeclaration({declare:!0})&&ue.get("id").isIdentifier())&&v(V,ue.node.id.name)},exit(N){N.node.sourceType==="module"&&y.get(N.node)&&N.pushContainer("body",P.exportNamedDeclaration())}},ExportNamedDeclaration(N,X){if(y.has(X.file.ast.program)||y.set(X.file.ast.program,!0),N.node.exportKind!=="type")if(N.node.source&&N.node.specifiers.length>0&&N.node.specifiers.every(H=>H.type==="ExportSpecifier"&&H.exportKind==="type"))N.remove();else if(!N.node.source&&N.node.specifiers.length>0&&N.node.specifiers.every(H=>P.isExportSpecifier(H)&&E(N,H.local.name)))N.remove();else{if(P.isTSModuleDeclaration(N.node.declaration)){let H=N.node.declaration,{id:F}=H;if(P.isIdentifier(F))if(N.scope.hasOwnBinding(F.name))N.replaceWith(H);else{let[W]=N.replaceWithMultiple([P.exportNamedDeclaration(P.variableDeclaration("let",[P.variableDeclarator(P.cloneNode(F))])),H]);N.scope.registerDeclaration(W)}}y.set(X.file.ast.program,!1)}else N.remove()},ExportAllDeclaration(N){N.node.exportKind==="type"&&N.remove()},ExportSpecifier(N){(!N.parent.source&&E(N,N.node.local.name)||N.node.exportKind==="type")&&N.remove()},ExportDefaultDeclaration(N,X){y.has(X.file.ast.program)||y.set(X.file.ast.program,!0),P.isIdentifier(N.node.declaration)&&E(N,N.node.declaration.name)?N.remove():y.set(X.file.ast.program,!1)},TSDeclareFunction(N){S(N)},TSDeclareMethod(N){S(N)},VariableDeclaration(N){N.node.declare&&S(N)},VariableDeclarator({node:N}){N.definite&&(N.definite=null)},TSIndexSignature(N){N.remove()},ClassDeclaration(N){let{node:X}=N;X.declare&&S(N)},Class(N){let{node:X}=N;X.typeParameters&&(X.typeParameters=null),X.superTypeParameters&&(X.superTypeParameters=null),X.implements&&(X.implements=null),X.abstract&&(X.abstract=null),N.get("body.body").forEach(H=>{H.isClassMethod()||H.isClassPrivateMethod()?H.node.kind==="constructor"?$.constructor(H,N):$.method(H):(H.isClassProperty()||H.isClassPrivateProperty()||H.isClassAccessorProperty())&&$.field(H)})},Function(N){let{node:X}=N;X.typeParameters&&(X.typeParameters=null),X.returnType&&(X.returnType=null);let H=X.params;H.length>0&&P.isIdentifier(H[0],{name:"this"})&&H.shift()},TSModuleDeclaration(N){(0,f.default)(N,I)},TSInterfaceDeclaration(N){N.remove()},TSTypeAliasDeclaration(N){N.remove()},TSEnumDeclaration(N){z&&N.node.const?(0,s.default)(N,P):(0,l.default)(N,P)},TSImportEqualsDeclaration(N,X){let{id:H,moduleReference:F}=N.node,W,V;P.isTSExternalMo
|
||
|
${a.types.cloneNode(x)} ||
|
||
|
(${a.types.cloneNode(x)} = ${A})
|
||
|
`}return a.template.statement.ast`
|
||
|
(function (${a.types.identifier(v)}) {
|
||
|
${S}
|
||
|
})(${E} || (${a.types.cloneNode(E)} = ${A}));
|
||
|
`}},"./node_modules/.pnpm/@babel+preset-typescript@7.22.15_@babel+core@7.22.15/node_modules/@babel/preset-typescript/lib/index.js":(o,r,u)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a=u("./node_modules/.pnpm/@babel+helper-plugin-utils@7.22.5/node_modules/@babel/helper-plugin-utils/lib/index.js"),m=u("./node_modules/.pnpm/@babel+plugin-transform-typescript@7.22.15_@babel+core@7.22.15/node_modules/@babel/plugin-transform-typescript/lib/index.js");u("./node_modules/.pnpm/@babel+plugin-syntax-jsx@7.22.5_@babel+core@7.22.15/node_modules/@babel/plugin-syntax-jsx/lib/index.js");var d=u("./node_modules/.pnpm/@babel+plugin-transform-modules-commonjs@7.22.15_@babel+core@7.22.15/node_modules/@babel/plugin-transform-modules-commonjs/lib/index.js"),s=u("./node_modules/.pnpm/@babel+helper-validator-option@7.22.15/node_modules/@babel/helper-validator-option/lib/index.js");function l(b){return b&&b.__esModule?b:{default:b}}var f=l(m),p=l(d);let h=new s.OptionValidator("@babel/preset-typescript");var y=a.declarePreset((b,E)=>{b.assertVersion(7);let{allExtensions:v,ignoreExtensions:S,allowNamespaces:w,disallowAmbiguousJSXLike:A,isTSX:x,jsxPragma:C,jsxPragmaFrag:P,onlyRemoveTypeImports:D,optimizeConstEnums:L}=function(M={}){let{allowNamespaces:R=!0,jsxPragma:z,onlyRemoveTypeImports:Y}=M,$="ignoreExtensions",G="disallowAmbiguousJSXLike",U="jsxPragmaFrag",B="optimizeConstEnums",N="allExtensions",X="isTSX",H=h.validateStringOption(U,M.jsxPragmaFrag,"React.Fragment");var F=h.validateBooleanOption(N,M.allExtensions,!1),W=h.validateBooleanOption(X,M.isTSX,!1);W&&h.invariant(F,"isTSX:true requires allExtensions:true");let V=h.validateBooleanOption($,M.ignoreExtensions,!1),Q=h.validateBooleanOption(G,M.disallowAmbiguousJSXLike,!1);Q&&h.invariant(F,"disallowAmbiguousJSXLike:true requires allExtensions:true");let ne={ignoreExtensions:V,allowNamespaces:R,disallowAmbiguousJSXLike:Q,jsxPragma:z,jsxPragmaFrag:H,onlyRemoveTypeImports:Y,optimizeConstEnums:h.validateBooleanOption(B,M.optimizeConstEnums,!1)};return ne.allExtensions=F,ne.isTSX=W,ne}(E),I=M=>({allowDeclareFields:E.allowDeclareFields,allowNamespaces:w,disallowAmbiguousJSXLike:M,jsxPragma:C,jsxPragmaFrag:P,onlyRemoveTypeImports:D,optimizeConstEnums:L}),j=(M,R)=>[[f.default,Object.assign({isTSX:M},I(R))]];return{overrides:v||S?[{plugins:j(x,A)}]:[{test:/\.ts$/,plugins:j(!1,!1)},{test:/\.mts$/,sourceType:"module",plugins:j(!1,!0)},{test:/\.cts$/,sourceType:"unambiguous",plugins:[[p.default,{allowTopLevelThis:!0}],[f.default,I(!0)]]},{test:/\.tsx$/,plugins:j(!0,!1)}]}});r.default=y},"./node_modules/.pnpm/@babel+template@7.22.15/node_modules/@babel/template/lib/builder.js":(o,r,u)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function f(p,h){let y=new WeakMap,b=new WeakMap,E=h||(0,a.validate)(null);return Object.assign((v,...S)=>{if(typeof v=="string"){if(S.length>1)throw new Error("Unexpected extra params.");return l((0,m.default)(p,v,(0,a.merge)(E,(0,a.validate)(S[0]))))}if(Array.isArray(v)){let w=y.get(v);return w||(w=(0,d.default)(p,v,E),y.set(v,w)),l(w(S))}if(typeof v=="object"&&v){if(S.length>0)throw new Error("Unexpected extra params.");return f(p,(0,a.merge)(E,(0,a.validate)(v)))}throw new Error("Unexpected template param "+typeof v)},{ast:(v,...S)=>{if(typeof v=="string"){if(S.length>1)throw new Error("Unexpected extra params.");return(0,m.default)(p,v,(0,a.merge)((0,a.merge)(E,(0,a.validate)(S[0])),s))()}if(Array.isArray(v)){let w=b.get(v);return w||(w=(0,d.default)(p,v,(0,a.merge)(E,s)),b.set(v,w)),w(S)()}throw new Error("Unexpected template param "+typeof v)}})};var a=u("./node_modules/.pnpm/@babel+template@7.22.15/node_modules/@babel/template/lib/options.js"),m=u("./node_modules/.pnpm/@babel+template@7.22.15/node_modules/@babel/template/lib/string.js"),d=u("./node_modules/.pnpm/@babel+template@7.22.15/node_modules/@babel/template/lib/literal.js");let s=(0,a.validate)({placeholderPattern:!1});function l(f){let p="";try{throw new Error}catch(h){h.stack&&(p=h.stack.split(`
|
||
|
`).slice(3).join(`
|
||
|
`))}return h=>{try{return f(h)}catch(y){throw y.stack+=`
|
||
|
=============
|
||
|
${p}`,y}}}},"./node_modules/.pnpm/@babel+template@7.22.15/node_modules/@babel/template/lib/formatters.js":(o,r,u)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.statements=r.statement=r.smart=r.program=r.expression=void 0;var a=u("./node_modules/.pnpm/@babel+types@7.22.15/node_modules/@babel/types/lib/index.js");let{assertExpressionStatement:m}=a;function d(h){return{code:y=>`/* @babel/template */;
|
||
|
${y}`,validate:()=>{},unwrap:y=>h(y.program.body.slice(1))}}let s=d(h=>h.length>1?h:h[0]);r.smart=s;let l=d(h=>h);r.statements=l;let f=d(h=>{if(h.length===0)throw new Error("Found nothing to return.");if(h.length>1)throw new Error("Found multiple statements but wanted one");return h[0]});r.statement=f;let p={code:h=>`(
|
||
|
${h}
|
||
|
)`,validate:h=>{if(h.program.body.length>1)throw new Error("Found multiple statements but wanted one");if(p.unwrap(h).start===0)throw new Error("Parse result included parens.")},unwrap:({program:h})=>{let[y]=h.body;return m(y),y.expression}};r.expression=p,r.program={code:h=>h,validate:()=>{},unwrap:h=>h.program}},"./node_modules/.pnpm/@babel+template@7.22.15/node_modules/@babel/template/lib/index.js":(o,r,u)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.statements=r.statement=r.smart=r.program=r.expression=r.default=void 0;var a=u("./node_modules/.pnpm/@babel+template@7.22.15/node_modules/@babel/template/lib/formatters.js"),m=u("./node_modules/.pnpm/@babel+template@7.22.15/node_modules/@babel/template/lib/builder.js");let d=(0,m.default)(a.smart);r.smart=d;let s=(0,m.default)(a.statement);r.statement=s;let l=(0,m.default)(a.statements);r.statements=l;let f=(0,m.default)(a.expression);r.expression=f;let p=(0,m.default)(a.program);r.program=p;var h=Object.assign(d.bind(void 0),{smart:d,statement:s,statements:l,expression:f,program:p,ast:d.ast});r.default=h},"./node_modules/.pnpm/@babel+template@7.22.15/node_modules/@babel/template/lib/literal.js":(o,r,u)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(s,l,f){let{metadata:p,names:h}=function(y,b,E){let v="BABEL_TPL$",S=b.join("");do v="$$"+v;while(S.includes(v));let{names:w,code:A}=function(C,P){let D=[],L=C[0];for(let I=1;I<C.length;I++){let j=`${P}${I-1}`;D.push(j),L+=j+C[I]}return{names:D,code:L}}(b,v);return{metadata:(0,m.default)(y,y.code(A),{parser:E.parser,placeholderWhitelist:new Set(w.concat(E.placeholderWhitelist?Array.from(E.placeholderWhitelist):[])),placeholderPattern:E.placeholderPattern,preserveComments:E.preserveComments,syntacticPlaceholders:E.syntacticPlaceholders}),names:w}}(s,l,f);return y=>{let b={};return y.forEach((E,v)=>{b[h[v]]=E}),E=>{let v=(0,a.normalizeReplacements)(E);return v&&Object.keys(v).forEach(S=>{if(Object.prototype.hasOwnProperty.call(b,S))throw new Error("Unexpected replacement overlap.")}),s.unwrap((0,d.default)(p,v?Object.assign(v,b):b))}}};var a=u("./node_modules/.pnpm/@babel+template@7.22.15/node_modules/@babel/template/lib/options.js"),m=u("./node_modules/.pnpm/@babel+template@7.22.15/node_modules/@babel/template/lib/parse.js"),d=u("./node_modules/.pnpm/@babel+template@7.22.15/node_modules/@babel/template/lib/populate.js")},"./node_modules/.pnpm/@babel+template@7.22.15/node_modules/@babel/template/lib/options.js":(o,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.merge=function(a,m){let{placeholderWhitelist:d=a.placeholderWhitelist,placeholderPattern:s=a.placeholderPattern,preserveComments:l=a.preserveComments,syntacticPlaceholders:f=a.syntacticPlaceholders}=m;return{parser:Object.assign({},a.parser,m.parser),placeholderWhitelist:d,placeholderPattern:s,preserveComments:l,syntacticPlaceholders:f}},r.normalizeReplacements=function(a){if(Array.isArray(a))return a.reduce((m,d,s)=>(m["$"+s]=d,m),{});if(typeof a=="object"||a==null)return a||void 0;throw new Error("Template replacements must be an array, object, null, or undefined")},r.validate=function(a){if(a!=null&&typeof a!="object")throw new Error("Unknown template options.");let m=a||{},{placeholderWhitelist:d,placeholderPattern:s,preserveComments:l,syntacticPlaceholders:f}=m,p=function(h,y){if(h==null)return{};var b,E,v={},S=Object.keys(h);for(E=0;E<S.length;E++)b=S[E],y.indexOf(b)>=0||(v[b]=h[b]);return v}(m,u);if(d!=null&&!(d instanceof Set))throw new Error("'.placeholderWhitelist' must be a Set, null, or undefined");if(s!=null&&!(s instanceof RegExp)&&s!==!1)throw new Error("'.placeholderPattern' must be a RegExp, false, null, or undefined");if(l!=null&&typeof l!="boolean")throw new Error("'.preserveComments' must be a boolean, null, or undefined");if(f!=null&&typeof f!="boolean")throw new Error("'.syntacticPlaceholders' must be a boolean, null, or undefined");if(f===!0&&(d!=null||s!=null))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders
|
||
|
`+(0,d.codeFrameColumns)(Y,{start:N}),B.code="BABEL_TEMPLATE_PARSE_ERROR"),B}}(P,D.parser,M);S(R,{preserveComments:j}),C.validate(R);let z={syntactic:{placeholders:[],placeholderNames:new Set},legacy:{placeholders:[],placeholderNames:new Set},placeholderWhitelist:L,placeholderPattern:I,syntacticPlaceholders:M};return w(R,x,z),Object.assign({ast:R},z.syntactic.placeholders.length?z.syntactic:z.legacy)};var a=u("./node_modules/.pnpm/@babel+types@7.22.15/node_modules/@babel/types/lib/index.js"),m=u("./node_modules/.pnpm/@babel+parser@7.22.16/node_modules/@babel/parser/lib/index.js"),d=u("./stubs/babel-codeframe.js");let{isCallExpression:s,isExpressionStatement:l,isFunction:f,isIdentifier:p,isJSXIdentifier:h,isNewExpression:y,isPlaceholder:b,isStatement:E,isStringLiteral:v,removePropertiesDeep:S,traverse:w}=a,A=/^[_$A-Z0-9]+$/;function x(C,P,D){var L;let I,j=D.syntactic.placeholders.length>0;if(b(C)){if(D.syntacticPlaceholders===!1)throw new Error("%%foo%%-style placeholders can't be used when '.syntacticPlaceholders' is false.");I=C.name.name,j=!0}else{if(j||D.syntacticPlaceholders)return;if(p(C)||h(C))I=C.name;else{if(!v(C))return;I=C.value}}if(j&&(D.placeholderPattern!=null||D.placeholderWhitelist!=null))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");if(!(j||D.placeholderPattern!==!1&&(D.placeholderPattern||A).test(I)||(L=D.placeholderWhitelist)!=null&&L.has(I)))return;P=P.slice();let{node:M,key:R}=P[P.length-1],z;v(C)||b(C,{expectedNode:"StringLiteral"})?z="string":y(M)&&R==="arguments"||s(M)&&R==="arguments"||f(M)&&R==="params"?z="param":l(M)&&!b(C)?(z="statement",P=P.slice(0,-1)):z=E(C)&&b(C)?"statement":"other";let{placeholders:Y,placeholderNames:$}=j?D.syntactic:D.legacy;Y.push({name:I,type:z,resolve:G=>function(U,B){let N=U;for(let F=0;F<B.length-1;F++){let{key:W,index:V}=B[F];N=V===void 0?N[W]:N[W][V]}let{key:X,index:H}=B[B.length-1];return{parent:N,key:X,index:H}}(G,P),isDuplicate:$.has(I)}),$.add(I)}},"./node_modules/.pnpm/@babel+template@7.22.15/node_modules/@babel/template/lib/populate.js":(o,r,u)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(E,v){let S=d(E.ast);return v&&(E.placeholders.forEach(w=>{if(!Object.prototype.hasOwnProperty.call(v,w.name)){let A=w.name;throw new Error(`Error: No substitution given for "${A}". If this is not meant to be a
|
||
|
placeholder you may want to consider passing one of the following options to @babel/template:
|
||
|
- { placeholderPattern: false, placeholderWhitelist: new Set(['${A}'])}
|
||
|
- { placeholderPattern: /^${A}$/ }`)}}),Object.keys(v).forEach(w=>{if(!E.placeholderNames.has(w))throw new Error(`Unknown substitution "${w}" given`)})),E.placeholders.slice().reverse().forEach(w=>{try{(function(A,x,C){A.isDuplicate&&(Array.isArray(C)?C=C.map(I=>d(I)):typeof C=="object"&&(C=d(C)));let{parent:P,key:D,index:L}=A.resolve(x);if(A.type==="string"){if(typeof C=="string"&&(C=y(C)),!C||!h(C))throw new Error("Expected string substitution")}else if(A.type==="statement")L===void 0?C?Array.isArray(C)?C=m(C):typeof C=="string"?C=l(f(C)):p(C)||(C=l(C)):C=s():C&&!Array.isArray(C)&&(typeof C=="string"&&(C=f(C)),p(C)||(C=l(C)));else if(A.type==="param"){if(typeof C=="string"&&(C=f(C)),L===void 0)throw new Error("Assertion failure.")}else if(typeof C=="string"&&(C=f(C)),Array.isArray(C))throw new Error("Cannot replace single expression with an array.");if(L===void 0)b(P,D,C),P[D]=C;else{let I=P[D].slice();A.type==="statement"||A.type==="param"?C==null?I.splice(L,1):Array.isArray(C)?I.splice(L,1,...C):I[L]=C:I[L]=C,b(P,D,I),P[D]=I}})(w,S,v&&v[w.name]||null)}catch(A){throw A.message=`@babel/template placeholder "${w.name}": ${A.message}`,A}}),S};var a=u("./node_modules/.pnpm/@babel+types@7.22.15/node_modules/@babel/types/lib/index.js");let{blockStatement:m,cloneNode:d,emptyStatement:s,expressionStatement:l,identifier:f,isStatement:p,isStringLiteral:h,stringLiteral:y,validate:b}=a},"./node_modules/.pnpm/@babel+template@7.22.15/node_modules/@babel/template/lib/string.js":(o,r,u)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(s,l,f){let p;return l=s.code(l),h=>{let y=(0,a.normalizeReplacements)(h);return p||(p=(0,m.default)(s,l,f)),s.unwrap((0,d.default)(p,y))}};var a=u("./node_modules/.pnpm/@babel+template@7.22.15/node_modules/@babel/template/lib/options.js"),m=u("./node_modules/.pnpm/@babel+template@7.22.15/node_modules/@babel/template/lib/parse.js"),d=u("./node_modules/.pnpm/@babel+template@7.22.15/node_modules/@babel/template/lib/populate.js")},"./node_modules/.pnpm/@babel+traverse@7.22.15/node_modules/@babel/traverse/lib/cache.js":(o,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.clear=function(){m(),d()},r.clearPath=m,r.clearScope=d,r.getCachedPaths=function(l,f){var p;return(p=u.get(s))==null?void 0:p.get(f)},r.getOrCreateCachedPaths=function(l,f){let p=u.get(s);p||u.set(s,p=new WeakMap);let h=p.get(f);return h||p.set(f,h=new Map),h},r.scope=r.path=void 0;let u=new WeakMap;r.path=u;let a=new WeakMap;function m(){r.path=u=new WeakMap}function d(){r.scope=a=new WeakMap}r.scope=a;let s=Object.freeze({})},"./node_modules/.pnpm/@babel+traverse@7.22.15/node_modules/@babel/traverse/lib/context.js":(o,r,u)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var a=u("./node_modules/.pnpm/@babel+traverse@7.22.15/node_modules/@babel/traverse/lib/path/index.js"),m=u("./node_modules/.pnpm/@babel+types@7.22.15/node_modules/@babel/types/lib/index.js");let{VISITOR_KEYS:d}=m;r.default=class{constructor(s,l,f,p){this.queue=null,this.priorityQueue=null,this.parentPath=p,this.scope=s,this.state=f,this.opts=l}shouldVisit(s){let l=this.opts;if(l.enter||l.exit||l[s.type])return!0;let f=d[s.type];if(f==null||!f.length)return!1;for(let p of f)if(s[p])return!0;return!1}create(s,l,f,p){return a.default.get({parentPath:this.parentPath,parent:s,container:l,key:f,listKey:p})}maybeQueue(s,l){this.queue&&(l?this.queue.push(s):this.priorityQueue.push(s))}visitMultiple(s,l,f){if(s.length===0)return!1;let p=[];for(let h=0;h<s.length;h++){let y=s[h];y&&this.shouldVisit(y)&&p.push(this.create(l,s,h,f))}return this.visitQueue(p)}visitSingle(s,l){return!!this.shouldVisit(s[l])&&this.visitQueue([this.create(s,s,l)])}visitQueue(s){this.queue=s,this.priorityQueue=[];let l=new WeakSet,f=!1;for(let p of s){if(p.resync(),p.contexts.length!==0&&p.contexts[p.contexts.length-1]===this||p.pushContext(this),p.key===null)continue;let{node:h}=p;if(!l.has(h)){if(h&&l.add(h),p.visit()){f=!0;break}if(this.priorityQueue.length&&(f=this.visitQueue(this.priorityQueue),this.prior
|
||
|
`+(0,a.codeFrameColumns)(G,{start:{line:X.line,column:X.column+1}}),N.code="BABEL_REPLACE_SOURCE_ERROR"),N}let B=U.program.body[0].expression;return m.default.removeProperties(B),this.replaceWith(B)};var a=u("./stubs/babel-codeframe.js"),m=u("./node_modules/.pnpm/@babel+traverse@7.22.15/node_modules/@babel/traverse/lib/index.js"),d=u("./node_modules/.pnpm/@babel+traverse@7.22.15/node_modules/@babel/traverse/lib/path/index.js"),s=u("./node_modules/.pnpm/@babel+traverse@7.22.15/node_modules/@babel/traverse/lib/cache.js"),l=u("./node_modules/.pnpm/@babel+parser@7.22.16/node_modules/@babel/parser/lib/index.js"),f=u("./node_modules/.pnpm/@babel+types@7.22.15/node_modules/@babel/types/lib/index.js"),p=u("./node_modules/.pnpm/@babel+helper-hoist-variables@7.22.5/node_modules/@babel/helper-hoist-variables/lib/index.js");let{FUNCTION_TYPES:h,arrowFunctionExpression:y,assignmentExpression:b,awaitExpression:E,blockStatement:v,callExpression:S,cloneNode:w,expressionStatement:A,identifier:x,inheritLeadingComments:C,inheritTrailingComments:P,inheritsComments:D,isExpression:L,isProgram:I,isStatement:j,removeComments:M,returnStatement:R,toSequenceExpression:z,validate:Y,yieldExpression:$}=f},"./node_modules/.pnpm/@babel+traverse@7.22.15/node_modules/@babel/traverse/lib/scope/binding.js":(o,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,r.default=class{constructor({identifier:u,scope:a,path:m,kind:d}){this.identifier=void 0,this.scope=void 0,this.path=void 0,this.kind=void 0,this.constantViolations=[],this.constant=!0,this.referencePaths=[],this.referenced=!1,this.references=0,this.identifier=u,this.scope=a,this.path=m,this.kind=d,d!=="var"&&d!=="hoisted"||!function(s){for(let{parentPath:l,key:f}=s;l;{parentPath:l,key:f}=l){if(l.isFunctionParent())return!1;if(l.isWhile()||l.isForXStatement()||l.isForStatement()&&f==="body")return!0}return!1}(m)||this.reassign(m),this.clearValue()}deoptValue(){this.clearValue(),this.hasDeoptedValue=!0}setValue(u){this.hasDeoptedValue||(this.hasValue=!0,this.value=u)}clearValue(){this.hasDeoptedValue=!1,this.hasValue=!1,this.value=null}reassign(u){this.constant=!1,this.constantViolations.indexOf(u)===-1&&this.constantViolations.push(u)}reference(u){this.referencePaths.indexOf(u)===-1&&(this.referenced=!0,this.references++,this.referencePaths.push(u))}dereference(){this.references--,this.referenced=!!this.references}}},"./node_modules/.pnpm/@babel+traverse@7.22.15/node_modules/@babel/traverse/lib/scope/index.js":(o,r,u)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var a=u("./node_modules/.pnpm/@babel+traverse@7.22.15/node_modules/@babel/traverse/lib/scope/lib/renamer.js"),m=u("./node_modules/.pnpm/@babel+traverse@7.22.15/node_modules/@babel/traverse/lib/index.js"),d=u("./node_modules/.pnpm/@babel+traverse@7.22.15/node_modules/@babel/traverse/lib/scope/binding.js"),s=u("./node_modules/.pnpm/globals@11.12.0/node_modules/globals/index.js"),l=u("./node_modules/.pnpm/@babel+types@7.22.15/node_modules/@babel/types/lib/index.js"),f=l,p=u("./node_modules/.pnpm/@babel+traverse@7.22.15/node_modules/@babel/traverse/lib/cache.js"),h=u("./node_modules/.pnpm/@babel+traverse@7.22.15/node_modules/@babel/traverse/lib/visitors.js");let{NOT_LOCAL_BINDING:y,callExpression:b,cloneNode:E,getBindingIdentifiers:v,identifier:S,isArrayExpression:w,isBinary:A,isClass:x,isClassBody:C,isClassDeclaration:P,isExportAllDeclaration:D,isExportDefaultDeclaration:L,isExportNamedDeclaration:I,isFunctionDeclaration:j,isIdentifier:M,isImportDeclaration:R,isLiteral:z,isMethod:Y,isModuleSpecifier:$,isNullLiteral:G,isObjectExpression:U,isProperty:B,isPureish:N,isRegExpLiteral:X,isSuper:H,isTaggedTemplateExpression:F,isTemplateLiteral:W,isThisExpression:V,isUnaryExpression:Q,isVariableDeclaration:ne,matchesPattern:ue,memberExpression:de,numericLiteral:Ae,toIdentifier:Oe,unaryExpression:Me,variableDeclaration:ae,variableDeclarator:se,isRecordExpression:ye,isTupleExpression:be,isObjectProperty:Ee,isTopicReference:oe,isMetaProperty:J,isPrivateName:De,isExportDeclaration:Ke}=l;fun
|
||
|
Expected ${x.length+1} quasis but got ${w.quasis.length}`)})}}}),p("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:(0,f.chain)((0,f.assertValueType)("boolean"),Object.assign(function(w,A,x){if(process.env.BABEL_TYPES_8_BREAKING&&x&&!w.argument)throw new TypeError("Property delegate of YieldExpression cannot be true if there is no argument")},{type:"boolean"})),default:!1},argument:{optional:!0,validate:(0,f.assertNodeType)("Expression")}}}),p("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:(0,f.assertNodeType)("Expression")}}}),p("Import",{aliases:["Expression"]}),p("BigIntLiteral",{builder:["value"],fields:{value:{validate:(0,f.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),p("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,f.assertNodeType)("Identifier")}}}),p("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],fields:{object:{validate:(0,f.assertNodeType)("Expression")},property:{validate:function(){let w=(0,f.assertNodeType)("Identifier"),A=(0,f.assertNodeType)("Expression");return Object.assign(function(x,C,P){(x.computed?A:w)(x,C,P)},{oneOfNodeTypes:["Expression","Identifier"]})}()},computed:{default:!1},optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,f.chain)((0,f.assertValueType)("boolean"),(0,f.assertOptionalChainStart)()):(0,f.assertValueType)("boolean")}}}),p("OptionalCallExpression",{visitor:["callee","arguments","typeParameters","typeArguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:{callee:{validate:(0,f.assertNodeType)("Expression")},arguments:{validate:(0,f.chain)((0,f.assertValueType)("array"),(0,f.assertEach)((0,f.assertNodeType)("Expression","SpreadElement","JSXNamespacedName","ArgumentPlaceholder")))},optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,f.chain)((0,f.assertValueType)("boolean"),(0,f.assertOptionalChainStart)()):(0,f.assertValueType)("boolean")},typeArguments:{validate:(0,f.assertNodeType)("TypeParameterInstantiation"),optional:!0},typeParameters:{validate:(0,f.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}}}),p("ClassProperty",{visitor:["key","value","typeAnnotation","decorators"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"],fields:Object.assign({},v(),{value:{validate:(0,f.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,f.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,f.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,f.chain)((0,f.assertValueType)("array"),(0,f.assertEach)((0,f.assertNodeType)("Decorator"))),optional:!0},readonly:{validate:(0,f.assertValueType)("boolean"),optional:!0},declare:{validate:(0,f.assertValueType)("boolean"),optional:!0},variance:{validate:(0,f.assertNodeType)("Variance"),optional:!0}})}),p("ClassAccessorProperty",{visitor:["key","value","typeAnnotation","decorators"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property","Accessor"],fields:Object.assign({},v(),{key:{validate:(0,f.chain)(function(){let w=(0,f.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"),A=(0,f.assertNodeType)("Expression");return function(x,C,P){(x.computed?A:w)(x,C,P)}}(),(0,f.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression","PrivateName"))},value:{validate:(0,f.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,f.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,f.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,f.chain)((0,f.assertValueType)("array"),(0,f.assertEach)((0,f.assertNodeType)("Decorator"))),optional:!0},readonly:{validate:(0,f.asse
|
||
|
${G.join(`
|
||
|
`)}`)}return R.shapeOf=M,R},r.assertValueType=C,r.chain=P,r.default=j,r.defineAliasedType=function(...M){return(R,z={})=>{let Y=z.aliases;var $;Y||(z.inherits&&(Y=($=I[z.inherits].aliases)==null?void 0:$.slice()),Y!=null||(Y=[]),z.aliases=Y);let G=M.filter(U=>!Y.includes(U));Y.unshift(...G),j(R,z)}},r.typeIs=v,r.validate=E,r.validateArrayOfType=function(M){return E(w(M))},r.validateOptional=function(M){return{validate:M,optional:!0}},r.validateOptionalType=function(M){return{validate:v(M),optional:!0}},r.validateType=function(M){return E(v(M))};var a=u("./node_modules/.pnpm/@babel+types@7.22.15/node_modules/@babel/types/lib/validators/is.js"),m=u("./node_modules/.pnpm/@babel+types@7.22.15/node_modules/@babel/types/lib/validators/validate.js");let d={};r.VISITOR_KEYS=d;let s={};r.ALIAS_KEYS=s;let l={};r.FLIPPED_ALIAS_KEYS=l;let f={};r.NODE_FIELDS=f;let p={};r.BUILDER_KEYS=p;let h={};r.DEPRECATED_KEYS=h;let y={};function b(M){return Array.isArray(M)?"array":M===null?"null":typeof M}function E(M){return{validate:M}}function v(M){return typeof M=="string"?x(M):x(...M)}function S(M){return P(C("array"),A(M))}function w(M){return S(v(M))}function A(M){function R(z,Y,$){if(Array.isArray($))for(let G=0;G<$.length;G++){let U=`${Y}[${G}]`,B=$[G];M(z,U,B),process.env.BABEL_TYPES_8_BREAKING&&(0,m.validateChild)(z,U,B)}}return R.each=M,R}function x(...M){function R(z,Y,$){for(let G of M)if((0,a.default)(G,$))return void(0,m.validateChild)(z,Y,$);throw new TypeError(`Property ${Y} of ${z.type} expected node to be of a type ${JSON.stringify(M)} but instead got ${JSON.stringify($==null?void 0:$.type)}`)}return R.oneOfNodeTypes=M,R}function C(M){function R(z,Y,$){if(b($)!==M)throw new TypeError(`Property ${Y} expected type of ${M} but got ${b($)}`)}return R.type=M,R}function P(...M){function R(...z){for(let Y of M)Y(...z)}if(R.chainOf=M,M.length>=2&&"type"in M[0]&&M[0].type==="array"&&!("each"in M[1]))throw new Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.');return R}r.NODE_PARENT_VALIDATIONS=y;let D=["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate"],L=["default","optional","deprecated","validate"],I={};function j(M,R={}){let z=R.inherits&&I[R.inherits]||{},Y=R.fields;if(!Y&&(Y={},z.fields)){let B=Object.getOwnPropertyNames(z.fields);for(let N of B){let X=z.fields[N],H=X.default;if(Array.isArray(H)?H.length>0:H&&typeof H=="object")throw new Error("field defaults can only be primitives or empty arrays currently");Y[N]={default:Array.isArray(H)?[]:H,optional:X.optional,deprecated:X.deprecated,validate:X.validate}}}let $=R.visitor||z.visitor||[],G=R.aliases||z.aliases||[],U=R.builder||z.builder||R.visitor||[];for(let B of Object.keys(R))if(D.indexOf(B)===-1)throw new Error(`Unknown type option "${B}" on ${M}`);R.deprecatedAlias&&(h[R.deprecatedAlias]=M);for(let B of $.concat(U))Y[B]=Y[B]||{};for(let B of Object.keys(Y)){let N=Y[B];N.default!==void 0&&U.indexOf(B)===-1&&(N.optional=!0),N.default===void 0?N.default=null:N.validate||N.default==null||(N.validate=C(b(N.default)));for(let X of Object.keys(N))if(L.indexOf(X)===-1)throw new Error(`Unknown field key "${X}" on ${M}.${B}`)}d[M]=R.visitor=$,p[M]=R.builder=U,f[M]=R.fields=Y,s[M]=R.aliases=G,G.forEach(B=>{l[B]=l[B]||[],l[B].push(M)}),R.validate&&(y[M]=R.validate),I[M]=R}},"./node_modules/.pnpm/@babel+types@7.22.15/node_modules/@babel/types/lib/index.js":(o,r,u)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a={react:!0,assertNode:!0,createTypeAnnotationBasedOnTypeof:!0,createUnionTypeAnnotation:!0,createFlowUnionType:!0,createTSUnionType:!0,cloneNode:!0,clone:!0,cloneDeep:!0,cloneDeepWithoutLoc:!0,cloneWithoutLoc:!0,addComment:!0,addComments:!0,inheritInnerComments:!0,inheritLeadingComments:!0,inheritsComments:!0,inheritTrailingComments:!0,removeComments:!0,ensureBlock:!0,toBindingIdentifierName:!0,toBlock:!0,toComputedKey:!0,toExpression:!0,toIdentifier:!0,toKeyAlias:!0,toSequenceExpression:!0,toStatement:!0,valueToNode:!0,appendToMemberExpression:!0,inherits:!0,prependToMemberExpres
|
||
|
`)}}(1,2);s||console.warn(`${d}\`${a}\` has been deprecated, please migrate to \`${m}\`
|
||
|
${l}`)};let u=new Set},"./node_modules/.pnpm/@babel+types@7.22.15/node_modules/@babel/types/lib/utils/inherit.js":(o,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(u,a,m){a&&m&&(a[u]=Array.from(new Set([].concat(a[u],m[u]).filter(Boolean))))}},"./node_modules/.pnpm/@babel+types@7.22.15/node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js":(o,r,u)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(d,s){let l=d.value.split(/\r\n|\n|\r/),f=0;for(let h=0;h<l.length;h++)l[h].match(/[^ \t]/)&&(f=h);let p="";for(let h=0;h<l.length;h++){let y=l[h],b=h===0,E=h===l.length-1,v=h===f,S=y.replace(/\t/g," ");b||(S=S.replace(/^[ ]+/,"")),E||(S=S.replace(/[ ]+$/,"")),S&&(v||(S+=" "),p+=S)}p&&s.push((0,m.inherits)((0,a.stringLiteral)(p),d))};var a=u("./node_modules/.pnpm/@babel+types@7.22.15/node_modules/@babel/types/lib/builders/generated/index.js"),m=u("./node_modules/.pnpm/@babel+types@7.22.15/node_modules/@babel/types/lib/index.js")},"./node_modules/.pnpm/@babel+types@7.22.15/node_modules/@babel/types/lib/utils/shallowEqual.js":(o,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(u,a){let m=Object.keys(a);for(let d of m)if(u[d]!==a[d])return!1;return!0}},"./node_modules/.pnpm/@babel+types@7.22.15/node_modules/@babel/types/lib/validators/buildMatchMemberExpression.js":(o,r,u)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(m,d){let s=m.split(".");return l=>(0,a.default)(l,s,d)};var a=u("./node_modules/.pnpm/@babel+types@7.22.15/node_modules/@babel/types/lib/validators/matchesPattern.js")},"./node_modules/.pnpm/@babel+types@7.22.15/node_modules/@babel/types/lib/validators/generated/index.js":(o,r,u)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isAccessor=function(s,l){return!s||s.type!=="ClassAccessorProperty"?!1:l==null||(0,a.default)(s,l)},r.isAnyTypeAnnotation=function(s,l){return!!s&&s.type==="AnyTypeAnnotation"&&(l==null||(0,a.default)(s,l))},r.isArgumentPlaceholder=function(s,l){return!!s&&s.type==="ArgumentPlaceholder"&&(l==null||(0,a.default)(s,l))},r.isArrayExpression=function(s,l){return!!s&&s.type==="ArrayExpression"&&(l==null||(0,a.default)(s,l))},r.isArrayPattern=function(s,l){return!!s&&s.type==="ArrayPattern"&&(l==null||(0,a.default)(s,l))},r.isArrayTypeAnnotation=function(s,l){return!!s&&s.type==="ArrayTypeAnnotation"&&(l==null||(0,a.default)(s,l))},r.isArrowFunctionExpression=function(s,l){return!!s&&s.type==="ArrowFunctionExpression"&&(l==null||(0,a.default)(s,l))},r.isAssignmentExpression=function(s,l){return!!s&&s.type==="AssignmentExpression"&&(l==null||(0,a.default)(s,l))},r.isAssignmentPattern=function(s,l){return!!s&&s.type==="AssignmentPattern"&&(l==null||(0,a.default)(s,l))},r.isAwaitExpression=function(s,l){return!!s&&s.type==="AwaitExpression"&&(l==null||(0,a.default)(s,l))},r.isBigIntLiteral=function(s,l){return!!s&&s.type==="BigIntLiteral"&&(l==null||(0,a.default)(s,l))},r.isBinary=function(s,l){if(!s)return!1;switch(s.type){case"BinaryExpression":case"LogicalExpression":break;default:return!1}return l==null||(0,a.default)(s,l)},r.isBinaryExpression=function(s,l){return!!s&&s.type==="BinaryExpression"&&(l==null||(0,a.default)(s,l))},r.isBindExpression=function(s,l){return!!s&&s.type==="BindExpression"&&(l==null||(0,a.default)(s,l))},r.isBlock=function(s,l){if(!s)return!1;switch(s.type){case"BlockStatement":case"Program":case"TSModuleBlock":break;case"Placeholder":if(s.expectedNode==="BlockStatement")break;default:return!1}return l==null||(0,a.default)(s,l)},r.isBlockParent=function(s,l){if(!s)return!1;switch(s.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if(s.expectedNode==="BlockStatem
|
||
|
`?(p++,h=0):W?h+=W.length:h++,W&&(f+=W.length),W}let I={default(){switch(C){case" ":case"\v":case"\f":case" ":case"\xA0":case"\uFEFF":case`
|
||
|
`:case"\r":case"\u2028":case"\u2029":return void L();case"/":return L(),void(S="comment");case void 0:return L(),j("eof")}if(!m.isSpaceSeparator(C))return I[s]();L()},comment(){switch(C){case"*":return L(),void(S="multiLineComment");case"/":return L(),void(S="singleLineComment")}throw G(L())},multiLineComment(){switch(C){case"*":return L(),void(S="multiLineCommentAsterisk");case void 0:throw G(L())}L()},multiLineCommentAsterisk(){switch(C){case"*":return void L();case"/":return L(),void(S="default");case void 0:throw G(L())}L(),S="multiLineComment"},singleLineComment(){switch(C){case`
|
||
|
`:case"\r":case"\u2028":case"\u2029":return L(),void(S="default");case void 0:return L(),j("eof")}L()},value(){switch(C){case"{":case"[":return j("punctuator",L());case"n":return L(),M("ull"),j("null",null);case"t":return L(),M("rue"),j("boolean",!0);case"f":return L(),M("alse"),j("boolean",!1);case"-":case"+":return L()==="-"&&(x=-1),void(S="sign");case".":return w=L(),void(S="decimalPointLeading");case"0":return w=L(),void(S="zero");case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return w=L(),void(S="decimalInteger");case"I":return L(),M("nfinity"),j("numeric",1/0);case"N":return L(),M("aN"),j("numeric",NaN);case'"':case"'":return A=L()==='"',w="",void(S="string")}throw G(L())},identifierNameStartEscape(){if(C!=="u")throw G(L());L();let W=R();switch(W){case"$":case"_":break;default:if(!m.isIdStartChar(W))throw B()}w+=W,S="identifierName"},identifierName(){switch(C){case"$":case"_":case"\u200C":case"\u200D":return void(w+=L());case"\\":return L(),void(S="identifierNameEscape")}if(!m.isIdContinueChar(C))return j("identifier",w);w+=L()},identifierNameEscape(){if(C!=="u")throw G(L());L();let W=R();switch(W){case"$":case"_":case"\u200C":case"\u200D":break;default:if(!m.isIdContinueChar(W))throw B()}w+=W,S="identifierName"},sign(){switch(C){case".":return w=L(),void(S="decimalPointLeading");case"0":return w=L(),void(S="zero");case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return w=L(),void(S="decimalInteger");case"I":return L(),M("nfinity"),j("numeric",x*(1/0));case"N":return L(),M("aN"),j("numeric",NaN)}throw G(L())},zero(){switch(C){case".":return w+=L(),void(S="decimalPoint");case"e":case"E":return w+=L(),void(S="decimalExponent");case"x":case"X":return w+=L(),void(S="hexadecimal")}return j("numeric",0*x)},decimalInteger(){switch(C){case".":return w+=L(),void(S="decimalPoint");case"e":case"E":return w+=L(),void(S="decimalExponent")}if(!m.isDigit(C))return j("numeric",x*Number(w));w+=L()},decimalPointLeading(){if(m.isDigit(C))return w+=L(),void(S="decimalFraction");throw G(L())},decimalPoint(){switch(C){case"e":case"E":return w+=L(),void(S="decimalExponent")}return m.isDigit(C)?(w+=L(),void(S="decimalFraction")):j("numeric",x*Number(w))},decimalFraction(){switch(C){case"e":case"E":return w+=L(),void(S="decimalExponent")}if(!m.isDigit(C))return j("numeric",x*Number(w));w+=L()},decimalExponent(){switch(C){case"+":case"-":return w+=L(),void(S="decimalExponentSign")}if(m.isDigit(C))return w+=L(),void(S="decimalExponentInteger");throw G(L())},decimalExponentSign(){if(m.isDigit(C))return w+=L(),void(S="decimalExponentInteger");throw G(L())},decimalExponentInteger(){if(!m.isDigit(C))return j("numeric",x*Number(w));w+=L()},hexadecimal(){if(m.isHexDigit(C))return w+=L(),void(S="hexadecimalInteger");throw G(L())},hexadecimalInteger(){if(!m.isHexDigit(C))return j("numeric",x*Number(w));w+=L()},string(){switch(C){case"\\":return L(),void(w+=function(){switch(D()){case"b":return L(),"\b";case"f":return L(),"\f";case"n":return L(),`
|
||
|
`;case"r":return L(),"\r";case"t":return L()," ";case"v":return L(),"\v";case"0":if(L(),m.isDigit(D()))throw G(L());return"\0";case"x":return L(),function(){let W="",V=D();if(!m.isHexDigit(V)||(W+=L(),V=D(),!m.isHexDigit(V)))throw G(L());return W+=L(),String.fromCodePoint(parseInt(W,16))}();case"u":return L(),R();case`
|
||
|
`:case"\u2028":case"\u2029":return L(),"";case"\r":return L(),D()===`
|
||
|
`&&L(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case void 0:throw G(L())}return L()}());case'"':return A?(L(),j("string",w)):void(w+=L());case"'":return A?void(w+=L()):(L(),j("string",w));case`
|
||
|
`:case"\r":throw G(L());case"\u2028":case"\u2029":(function(W){console.warn(`JSON5: '${N(W)}' in strings is not valid ECMAScript; consider escaping`)})(C);break;case void 0:throw G(L())}w+=L()},start(){switch(C){case"{":case"[":return j("punctuator",L())}S="value"},beforePropertyName(){switch(C){case"$":case"_":return w=L(),void(S="identifierName");case"\\":return L(),void(S="identifierNameStartEscape");case"}":return j("punctuator",L());case'"':case"'":return A=L()==='"',void(S="string")}if(m.isIdStartChar(C))return w+=L(),void(S="identifierName");throw G(L())},afterPropertyName(){if(C===":")return j("punctuator",L());throw G(L())},beforePropertyValue(){S="value"},afterPropertyValue(){switch(C){case",":case"}":return j("punctuator",L())}throw G(L())},beforeArrayValue(){if(C==="]")return j("punctuator",L());S="value"},afterArrayValue(){switch(C){case",":case"]":return j("punctuator",L())}throw G(L())},end(){throw G(L())}};function j(W,V){return{type:W,value:V,line:p,column:h}}function M(W){for(let V of W){if(D()!==V)throw G(L());L()}}function R(){let W="",V=4;for(;V-- >0;){let Q=D();if(!m.isHexDigit(Q))throw G(L());W+=L()}return String.fromCodePoint(parseInt(W,16))}let z={start(){if(y.type==="eof")throw U();Y()},beforePropertyName(){switch(y.type){case"identifier":case"string":return b=y.value,void(s="afterPropertyName");case"punctuator":return void $();case"eof":throw U()}},afterPropertyName(){if(y.type==="eof")throw U();s="beforePropertyValue"},beforePropertyValue(){if(y.type==="eof")throw U();Y()},beforeArrayValue(){if(y.type==="eof")throw U();y.type!=="punctuator"||y.value!=="]"?Y():$()},afterPropertyValue(){if(y.type==="eof")throw U();switch(y.value){case",":return void(s="beforePropertyName");case"}":$()}},afterArrayValue(){if(y.type==="eof")throw U();switch(y.value){case",":return void(s="beforeArrayValue");case"]":$()}},end(){}};function Y(){let W;switch(y.type){case"punctuator":switch(y.value){case"{":W={};break;case"[":W=[]}break;case"null":case"boolean":case"numeric":case"string":W=y.value}if(E===void 0)E=W;else{let V=l[l.length-1];Array.isArray(V)?V.push(W):Object.defineProperty(V,b,{value:W,writable:!0,enumerable:!0,configurable:!0})}if(W!==null&&typeof W=="object")l.push(W),s=Array.isArray(W)?"beforeArrayValue":"beforePropertyName";else{let V=l[l.length-1];s=V==null?"end":Array.isArray(V)?"afterArrayValue":"afterPropertyValue"}}function $(){l.pop();let W=l[l.length-1];s=W==null?"end":Array.isArray(W)?"afterArrayValue":"afterPropertyValue"}function G(W){return X(W===void 0?`JSON5: invalid end of input at ${p}:${h}`:`JSON5: invalid character '${N(W)}' at ${p}:${h}`)}function U(){return X(`JSON5: invalid end of input at ${p}:${h}`)}function B(){return h-=5,X(`JSON5: invalid identifier character at ${p}:${h}`)}function N(W){let V={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(V[W])return V[W];if(W<" "){let Q=W.charCodeAt(0).toString(16);return"\\x"+("00"+Q).substring(Q.length)}return W}function X(W){let V=new SyntaxError(W);return V.lineNumber=p,V.columnNumber=h,V}let F={parse:function(W,V){d=String(W),s="start",l=[],f=0,p=1,h=0,y=void 0,b=void 0,E=void 0;do y=P(),z[s]();while(y.type!=="eof");return typeof V=="function"?v({"":E},"",V):E},stringify:function(W,V,Q){let ne=[],ue,de,Ae,Oe="",Me="";if(V==null||typeof V!="object"||Array.isArray(V)||(Q=V.space,Ae=V.quote,V=V.replacer),typeof V=="function")de=V;else if(Array.isArray(V)){ue=[];for(let be of V){let Ee;typeof be=="string"?Ee=be:(typeof be=="number"||be instanceof String||be instanceof Number)&&(Ee=String(be)),Ee!==void 0&&ue.indexOf(Ee)<0&&ue.push(Ee)}}return Q instanceof Number?Q=Number(Q):Q instanceof String&&(Q=String(Q)),typeof Q=="number"?Q>0&&(Q=Math.min(10,Math.floor(Q)),Me=" ".substr(0,Q)):typeof Q=="string"&&(Me=Q.substr(0,10)),ae("",{"":W});function ae(be,Ee){let oe=Ee[be];switch(oe!=null&&(typeof oe.toJSON5=="function"?oe=oe.toJSON5(be):typeof oe.toJSON=="function"&&(oe=oe.toJSON(be))),de&&(oe=de.call(Ee,be,oe)),oe instanceof Number
|
||
|
`+Oe,pt=ke.join(Qe);Ke=`[
|
||
|
`+Oe+pt+`,
|
||
|
`+De+"]"}return ne.pop(),Oe=De,Ke}(oe):function(J){if(ne.indexOf(J)>=0)throw TypeError("Converting circular structure to JSON5");ne.push(J);let De=Oe;Oe+=Me;let Ke,ke=ue||Object.keys(J),Qe=[];for(let pt of ke){let dt=ae(pt,J);if(dt!==void 0){let Ue=ye(pt)+":";Me!==""&&(Ue+=" "),Ue+=dt,Qe.push(Ue)}}if(Qe.length===0)Ke="{}";else{let pt;if(Me==="")pt=Qe.join(","),Ke="{"+pt+"}";else{let dt=`,
|
||
|
`+Oe;pt=Qe.join(dt),Ke=`{
|
||
|
`+Oe+pt+`,
|
||
|
`+De+"}"}}return ne.pop(),Oe=De,Ke}(oe):void 0}function se(be){let Ee={"'":.1,'"':.2},oe={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"},J="";for(let Ke=0;Ke<be.length;Ke++){let ke=be[Ke];switch(ke){case"'":case'"':Ee[ke]++,J+=ke;continue;case"\0":if(m.isDigit(be[Ke+1])){J+="\\x00";continue}}if(oe[ke])J+=oe[ke];else if(ke<" "){let Qe=ke.charCodeAt(0).toString(16);J+="\\x"+("00"+Qe).substring(Qe.length)}else J+=ke}let De=Ae||Object.keys(Ee).reduce((Ke,ke)=>Ee[Ke]<Ee[ke]?Ke:ke);return J=J.replace(new RegExp(De,"g"),oe[De]),De+J+De}function ye(be){if(be.length===0)return se(be);let Ee=String.fromCodePoint(be.codePointAt(0));if(!m.isIdStartChar(Ee))return se(be);for(let oe=Ee.length;oe<be.length;oe++)if(!m.isIdContinueChar(String.fromCodePoint(be.codePointAt(oe))))return se(be);return be}}}},"./node_modules/.pnpm/@babel+preset-typescript@7.22.15_@babel+core@7.22.15/node_modules/@babel/preset-typescript/package.json":o=>{"use strict";o.exports=JSON.parse('{"name":"@babel/preset-typescript","version":"7.22.15","description":"Babel preset for TypeScript.","repository":{"type":"git","url":"https://github.com/babel/babel.git","directory":"packages/babel-preset-typescript"},"license":"MIT","publishConfig":{"access":"public"},"main":"./lib/index.js","keywords":["babel-preset","typescript"],"dependencies":{"@babel/helper-plugin-utils":"^7.22.5","@babel/helper-validator-option":"^7.22.15","@babel/plugin-syntax-jsx":"^7.22.5","@babel/plugin-transform-modules-commonjs":"^7.22.15","@babel/plugin-transform-typescript":"^7.22.15"},"peerDependencies":{"@babel/core":"^7.0.0-0"},"devDependencies":{"@babel/core":"^7.22.15","@babel/helper-plugin-test-runner":"^7.22.5"},"homepage":"https://babel.dev/docs/en/next/babel-preset-typescript","bugs":"https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22area%3A%20typescript%22+is%3Aopen","engines":{"node":">=6.9.0"},"author":"The Babel Team (https://babel.dev/team)","type":"commonjs"}')},"./node_modules/.pnpm/globals@11.12.0/node_modules/globals/globals.json":o=>{"use strict";o.exports=JSON.parse('{"builtin":{"Array":false,"ArrayBuffer":false,"Atomics":false,"BigInt":false,"BigInt64Array":false,"BigUint64Array":false,"Boolean":false,"constructor":false,"DataView":false,"Date":false,"decodeURI":false,"decodeURIComponent":false,"encodeURI":false,"encodeURIComponent":false,"Error":false,"escape":false,"eval":false,"EvalError":false,"Float32Array":false,"Float64Array":false,"Function":false,"globalThis":false,"hasOwnProperty":false,"Infinity":false,"Int16Array":false,"Int32Array":false,"Int8Array":false,"isFinite":false,"isNaN":false,"isPrototypeOf":false,"JSON":false,"Map":false,"Math":false,"NaN":false,"Number":false,"Object":false,"parseFloat":false,"parseInt":false,"Promise":false,"propertyIsEnumerable":false,"Proxy":false,"RangeError":false,"ReferenceError":false,"Reflect":false,"RegExp":false,"Set":false,"SharedArrayBuffer":false,"String":false,"Symbol":false,"SyntaxError":false,"toLocaleString":false,"toString":false,"TypeError":false,"Uint16Array":false,"Uint32Array":false,"Uint8Array":false,"Uint8ClampedArray":false,"undefined":false,"unescape":false,"URIError":false,"valueOf":false,"WeakMap":false,"WeakSet":false},"es5":{"Array":false,"Boolean":false,"constructor":false,"Date":false,"decodeURI":false,"decodeURIComponent":false,"encodeURI":false,"encodeURIComponent":false,"Error":false,"escape":false,"eval":false,"EvalError":false,"Function":false,"hasOwnProperty":false,"Infinity":false,"isFinite":false,"isNaN":false,"isPrototypeOf":false,"JSON":false,"Math":false,"NaN":false,"Number":false,"Object":false,"parseFloat":false,"parseInt":false,"propertyIsEnumerable":false,"RangeError":false,"ReferenceError":false,"RegExp":false,"String":false,"SyntaxError":false,"toLocaleString":false,"toString":false,"TypeError":false,"undefined":false,"unescape":false,"URIError":false,"valueOf":false},"es2015":{"Array":false,"ArrayBuffer":false,"Boolean":false,"constructor":false,"DataView":
|
||
|
`&&this.lastLineNumber++,this.lastIndex++;return this.lastLineNumber}transformTagToJSXFunc(t,n){let i=n===Qd.JSXRole.StaticChildren;this.tokens.replaceToken(this.getJSXFuncInvocationCode(i));let o=null;if(this.tokens.matches1(hr.TokenType.jsxTagEnd))this.tokens.replaceToken(`${this.getFragmentCode()}, {`),this.processAutomaticChildrenAndEndProps(n);else{if(this.processTagIntro(),this.tokens.appendCode(", {"),o=this.processProps(!0),this.tokens.matches2(hr.TokenType.slash,hr.TokenType.jsxTagEnd))this.tokens.appendCode("}");else if(this.tokens.matches1(hr.TokenType.jsxTagEnd))this.tokens.removeToken(),this.processAutomaticChildrenAndEndProps(n);else throw new Error("Expected either /> or > at the end of the tag.");o&&this.tokens.appendCode(`, ${o}`)}for(this.options.production||(o===null&&this.tokens.appendCode(", void 0"),this.tokens.appendCode(`, ${i}, ${this.getDevSource(t)}, this`)),this.tokens.removeInitialToken();!this.tokens.matches1(hr.TokenType.jsxTagEnd);)this.tokens.removeToken();this.tokens.replaceToken(")")}transformTagToCreateElement(t){if(this.tokens.replaceToken(this.getCreateElementInvocationCode()),this.tokens.matches1(hr.TokenType.jsxTagEnd))this.tokens.replaceToken(`${this.getFragmentCode()}, null`),this.processChildren(!0);else if(this.processTagIntro(),this.processPropsObjectWithDevInfo(t),!this.tokens.matches2(hr.TokenType.slash,hr.TokenType.jsxTagEnd))if(this.tokens.matches1(hr.TokenType.jsxTagEnd))this.tokens.removeToken(),this.processChildren(!0);else throw new Error("Expected either /> or > at the end of the tag.");for(this.tokens.removeInitialToken();!this.tokens.matches1(hr.TokenType.jsxTagEnd);)this.tokens.removeToken();this.tokens.replaceToken(")")}getJSXFuncInvocationCode(t){return this.options.production?t?this.claimAutoImportedFuncInvocation("jsxs","/jsx-runtime"):this.claimAutoImportedFuncInvocation("jsx","/jsx-runtime"):this.claimAutoImportedFuncInvocation("jsxDEV","/jsx-dev-runtime")}getCreateElementInvocationCode(){if(this.isAutomaticRuntime)return this.claimAutoImportedFuncInvocation("createElement","");{let{jsxPragmaInfo:t}=this;return`${this.importProcessor&&this.importProcessor.getIdentifierReplacement(t.base)||t.base}${t.suffix}(`}}getFragmentCode(){if(this.isAutomaticRuntime)return this.claimAutoImportedName("Fragment",this.options.production?"/jsx-runtime":"/jsx-dev-runtime");{let{jsxPragmaInfo:t}=this;return(this.importProcessor&&this.importProcessor.getIdentifierReplacement(t.fragmentBase)||t.fragmentBase)+t.fragmentSuffix}}claimAutoImportedFuncInvocation(t,n){let i=this.claimAutoImportedName(t,n);return this.importProcessor?`${i}.call(void 0, `:`${i}(`}claimAutoImportedName(t,n){if(this.importProcessor){let i=this.jsxImportSource+n;return this.cjsAutomaticModuleNameResolutions[i]||(this.cjsAutomaticModuleNameResolutions[i]=this.importProcessor.getFreeIdentifierForPath(i)),`${this.cjsAutomaticModuleNameResolutions[i]}.${t}`}else return this.esmAutomaticImportNameResolutions[t]||(this.esmAutomaticImportNameResolutions[t]=this.nameManager.claimFreeName(`_${t}`)),this.esmAutomaticImportNameResolutions[t]}processTagIntro(){let t=this.tokens.currentIndex()+1;for(;this.tokens.tokens[t].isType||!this.tokens.matches2AtIndex(t-1,hr.TokenType.jsxName,hr.TokenType.jsxName)&&!this.tokens.matches2AtIndex(t-1,hr.TokenType.greaterThan,hr.TokenType.jsxName)&&!this.tokens.matches1AtIndex(t,hr.TokenType.braceL)&&!this.tokens.matches1AtIndex(t,hr.TokenType.jsxTagEnd)&&!this.tokens.matches2AtIndex(t,hr.TokenType.slash,hr.TokenType.jsxTagEnd);)t++;if(t===this.tokens.currentIndex()+1){let n=this.tokens.identifierName();Jk(n)&&this.tokens.replaceToken(`'${n}'`)}for(;this.tokens.currentIndex()<t;)this.rootTransformer.processToken()}processPropsObjectWithDevInfo(t){let n=this.options.production?"":`__self: this, __source: ${this.getDevSource(t)}`;if(!this.tokens.matches1(hr.TokenType.jsxName)&&!this.tokens.matches1(hr.TokenType.braceL)){n?this.tokens.appendCode(`, {${n}}`):this.tokens.appendCode(", null");return}this.tokens.appendCode(", {"),this.processProps(!1),n?this.tokens.appendCode(` ${n}}`):th
|
||
|
`)n="",i=!0;else{if(o&&i&&(t+=" "),t+=n,n="",u==="&"){let{entity:a,newI:m}=Yk(e,r+1);r=m-1,t+=a}else t+=u;o=!0,i=!1}}return i||(t+=n),JSON.stringify(t)}function Xk(e){let t=0,n=0;for(let i of e)i===`
|
||
|
`?(t++,n=0):i===" "&&n++;return`
|
||
|
`.repeat(t)+" ".repeat(n)}function nq(e){let t="";for(let n=0;n<e.length;n++){let i=e[n];if(i===`
|
||
|
`)if(/\s/.test(e[n+1]))for(t+=" ";n<e.length&&/\s/.test(e[n+1]);)n++;else t+=`
|
||
|
`;else if(i==="&"){let{entity:o,newI:r}=Yk(e,n+1);t+=o,n=r-1}else t+=i}return JSON.stringify(t)}function Yk(e,t){let n="",i=0,o,r=t;if(e[r]==="#"){let u=10;r++;let a;if(e[r]==="x")for(u=16,r++,a=r;r<e.length&&sq(e.charCodeAt(r));)r++;else for(a=r;r<e.length&&iq(e.charCodeAt(r));)r++;if(e[r]===";"){let m=e.slice(a,r);m&&(r++,o=String.fromCodePoint(parseInt(m,u)))}}else for(;r<e.length&&i++<10;){let u=e[r];if(r++,u===";"){o=YV.default.get(n);break}n+=u}return o?{entity:o,newI:r}:{entity:"&",newI:t}}function iq(e){return e>=ls.charCodes.digit0&&e<=ls.charCodes.digit9}function sq(e){return e>=ls.charCodes.digit0&&e<=ls.charCodes.digit9||e>=ls.charCodes.lowercaseA&&e<=ls.charCodes.lowercaseF||e>=ls.charCodes.uppercaseA&&e<=ls.charCodes.uppercaseF}});var lg=me(og=>{"use strict";Object.defineProperty(og,"__esModule",{value:!0});function aq(e){return e&&e.__esModule?e:{default:e}}var ef=En(),Bo=sr(),oq=ag(),lq=tg(),uq=aq(lq);function cq(e,t){let n=uq.default.call(void 0,t),i=new Set;for(let o=0;o<e.tokens.length;o++){let r=e.tokens[o];if(r.type===Bo.TokenType.name&&!r.isType&&(r.identifierRole===ef.IdentifierRole.Access||r.identifierRole===ef.IdentifierRole.ObjectShorthand||r.identifierRole===ef.IdentifierRole.ExportAccess)&&!r.shadowsGlobal&&i.add(e.identifierNameForToken(r)),r.type===Bo.TokenType.jsxTagStart&&i.add(n.base),r.type===Bo.TokenType.jsxTagStart&&o+1<e.tokens.length&&e.tokens[o+1].type===Bo.TokenType.jsxTagEnd&&(i.add(n.base),i.add(n.fragmentBase)),r.type===Bo.TokenType.jsxName&&r.identifierRole===ef.IdentifierRole.Access){let u=e.identifierNameForToken(r);(!oq.startsWithLowerCase.call(void 0,u)||e.tokens[o+1].type===Bo.TokenType.dot)&&i.add(e.identifierNameForToken(r))}}return i}og.getNonTypeIdentifiers=cq});var Qk=me(cg=>{"use strict";Object.defineProperty(cg,"__esModule",{value:!0});function pq(e){return e&&e.__esModule?e:{default:e}}var dq=En(),tf=Pn(),Gt=sr(),fq=Wu(),hq=pq(fq),mq=lg(),ug=class e{__init(){this.nonTypeIdentifiers=new Set}__init2(){this.importInfoByPath=new Map}__init3(){this.importsToReplace=new Map}__init4(){this.identifierReplacements=new Map}__init5(){this.exportBindingsByLocalName=new Map}constructor(t,n,i,o,r,u,a){this.nameManager=t,this.tokens=n,this.enableLegacyTypeScriptModuleInterop=i,this.options=o,this.isTypeScriptTransformEnabled=r,this.keepUnusedImports=u,this.helperManager=a,e.prototype.__init.call(this),e.prototype.__init2.call(this),e.prototype.__init3.call(this),e.prototype.__init4.call(this),e.prototype.__init5.call(this)}preprocessTokens(){for(let t=0;t<this.tokens.tokens.length;t++)this.tokens.matches1AtIndex(t,Gt.TokenType._import)&&!this.tokens.matches3AtIndex(t,Gt.TokenType._import,Gt.TokenType.name,Gt.TokenType.eq)&&this.preprocessImportAtIndex(t),this.tokens.matches1AtIndex(t,Gt.TokenType._export)&&!this.tokens.matches2AtIndex(t,Gt.TokenType._export,Gt.TokenType.eq)&&this.preprocessExportAtIndex(t);this.generateImportReplacements()}pruneTypeOnlyImports(){this.nonTypeIdentifiers=mq.getNonTypeIdentifiers.call(void 0,this.tokens,this.options);for(let[t,n]of this.importInfoByPath.entries()){if(n.hasBareImport||n.hasStarExport||n.exportStarNames.length>0||n.namedExports.length>0)continue;[...n.defaultNames,...n.wildcardNames,...n.namedImports.map(({localName:o})=>o)].every(o=>this.shouldAutomaticallyElideImportedName(o))&&this.importsToReplace.set(t,"")}}shouldAutomaticallyElideImportedName(t){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.nonTypeIdentifiers.has(t)}generateImportReplacements(){for(let[t,n]of this.importInfoByPath.entries()){let{defaultNames:i,wildcardNames:o,namedImports:r,namedExports:u,exportStarNames:a,hasStarExport:m}=n;if(i.length===0&&o.length===0&&r.length===0&&u.length===0&&a.length===0&&!m){this.importsToReplace.set(t,`require('${t}');`);continue}let d=this.getFreeIdentifierForPath(t),s;this.enableLegacyTypeScriptModuleInterop?s=d:s=o.length>0?o[0]:this.getFreeIdentifierForPath(t);let l=`var ${d} = require('${t}');`;if(o.length>0)for(let f of o){let p=this.enableLegacyTypeScriptModuleInterop?d:`${this.helperManager.getHelper
|
||
|
import {createRequire as CREATE_REQUIRE_NAME} from "module";
|
||
|
const require = CREATE_REQUIRE_NAME(import.meta.url);
|
||
|
`,interopRequireWildcard:`
|
||
|
function interopRequireWildcard(obj) {
|
||
|
if (obj && obj.__esModule) {
|
||
|
return obj;
|
||
|
} else {
|
||
|
var newObj = {};
|
||
|
if (obj != null) {
|
||
|
for (var key in obj) {
|
||
|
if (Object.prototype.hasOwnProperty.call(obj, key)) {
|
||
|
newObj[key] = obj[key];
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
newObj.default = obj;
|
||
|
return newObj;
|
||
|
}
|
||
|
}
|
||
|
`,interopRequireDefault:`
|
||
|
function interopRequireDefault(obj) {
|
||
|
return obj && obj.__esModule ? obj : { default: obj };
|
||
|
}
|
||
|
`,createNamedExportFrom:`
|
||
|
function createNamedExportFrom(obj, localName, importedName) {
|
||
|
Object.defineProperty(exports, localName, {enumerable: true, configurable: true, get: () => obj[importedName]});
|
||
|
}
|
||
|
`,createStarExport:`
|
||
|
function createStarExport(obj) {
|
||
|
Object.keys(obj)
|
||
|
.filter((key) => key !== "default" && key !== "__esModule")
|
||
|
.forEach((key) => {
|
||
|
if (exports.hasOwnProperty(key)) {
|
||
|
return;
|
||
|
}
|
||
|
Object.defineProperty(exports, key, {enumerable: true, configurable: true, get: () => obj[key]});
|
||
|
});
|
||
|
}
|
||
|
`,nullishCoalesce:`
|
||
|
function nullishCoalesce(lhs, rhsFn) {
|
||
|
if (lhs != null) {
|
||
|
return lhs;
|
||
|
} else {
|
||
|
return rhsFn();
|
||
|
}
|
||
|
}
|
||
|
`,asyncNullishCoalesce:`
|
||
|
async function asyncNullishCoalesce(lhs, rhsFn) {
|
||
|
if (lhs != null) {
|
||
|
return lhs;
|
||
|
} else {
|
||
|
return await rhsFn();
|
||
|
}
|
||
|
}
|
||
|
`,optionalChain:`
|
||
|
function optionalChain(ops) {
|
||
|
let lastAccessLHS = undefined;
|
||
|
let value = ops[0];
|
||
|
let i = 1;
|
||
|
while (i < ops.length) {
|
||
|
const op = ops[i];
|
||
|
const fn = ops[i + 1];
|
||
|
i += 2;
|
||
|
if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {
|
||
|
return undefined;
|
||
|
}
|
||
|
if (op === 'access' || op === 'optionalAccess') {
|
||
|
lastAccessLHS = value;
|
||
|
value = fn(value);
|
||
|
} else if (op === 'call' || op === 'optionalCall') {
|
||
|
value = fn((...args) => value.call(lastAccessLHS, ...args));
|
||
|
lastAccessLHS = undefined;
|
||
|
}
|
||
|
}
|
||
|
return value;
|
||
|
}
|
||
|
`,asyncOptionalChain:`
|
||
|
async function asyncOptionalChain(ops) {
|
||
|
let lastAccessLHS = undefined;
|
||
|
let value = ops[0];
|
||
|
let i = 1;
|
||
|
while (i < ops.length) {
|
||
|
const op = ops[i];
|
||
|
const fn = ops[i + 1];
|
||
|
i += 2;
|
||
|
if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {
|
||
|
return undefined;
|
||
|
}
|
||
|
if (op === 'access' || op === 'optionalAccess') {
|
||
|
lastAccessLHS = value;
|
||
|
value = await fn(value);
|
||
|
} else if (op === 'call' || op === 'optionalCall') {
|
||
|
value = await fn((...args) => value.call(lastAccessLHS, ...args));
|
||
|
lastAccessLHS = undefined;
|
||
|
}
|
||
|
}
|
||
|
return value;
|
||
|
}
|
||
|
`,optionalChainDelete:`
|
||
|
function optionalChainDelete(ops) {
|
||
|
const result = OPTIONAL_CHAIN_NAME(ops);
|
||
|
return result == null ? true : result;
|
||
|
}
|
||
|
`,asyncOptionalChainDelete:`
|
||
|
async function asyncOptionalChainDelete(ops) {
|
||
|
const result = await ASYNC_OPTIONAL_CHAIN_NAME(ops);
|
||
|
return result == null ? true : result;
|
||
|
}
|
||
|
`},mg=class e{__init(){this.helperNames={}}__init2(){this.createRequireName=null}constructor(t){this.nameManager=t,e.prototype.__init.call(this),e.prototype.__init2.call(this)}getHelperName(t){let n=this.helperNames[t];return n||(n=this.nameManager.claimFreeName(`_${t}`),this.helperNames[t]=n,n)}emitHelpers(){let t="";this.helperNames.optionalChainDelete&&this.getHelperName("optionalChain"),this.helperNames.asyncOptionalChainDelete&&this.getHelperName("asyncOptionalChain");for(let[n,i]of Object.entries(gq)){let o=this.helperNames[n],r=i;n==="optionalChainDelete"?r=r.replace("OPTIONAL_CHAIN_NAME",this.helperNames.optionalChain):n==="asyncOptionalChainDelete"?r=r.replace("ASYNC_OPTIONAL_CHAIN_NAME",this.helperNames.asyncOptionalChain):n==="require"&&(this.createRequireName===null&&(this.createRequireName=this.nameManager.claimFreeName("_createRequire")),r=r.replace(/CREATE_REQUIRE_NAME/g,this.createRequireName)),o&&(t+=" ",t+=r.replace(n,o).replace(/\s+/g," ").trim())}return t}};yg.HelperManager=mg});var dD=me(lf=>{"use strict";Object.defineProperty(lf,"__esModule",{value:!0});var bg=En(),of=sr();function vq(e,t,n){pD(e,n)&&Tq(e,t,n)}lf.default=vq;function pD(e,t){for(let n of e.tokens)if(n.type===of.TokenType.name&&!n.isType&&bg.isNonTopLevelDeclaration.call(void 0,n)&&t.has(e.identifierNameForToken(n)))return!0;return!1}lf.hasShadowedGlobals=pD;function Tq(e,t,n){let i=[],o=t.length-1;for(let r=e.tokens.length-1;;r--){for(;i.length>0&&i[i.length-1].startTokenIndex===r+1;)i.pop();for(;o>=0&&t[o].endTokenIndex===r+1;)i.push(t[o]),o--;if(r<0)break;let u=e.tokens[r],a=e.identifierNameForToken(u);if(i.length>1&&!u.isType&&u.type===of.TokenType.name&&n.has(a)){if(bg.isBlockScopedDeclaration.call(void 0,u))cD(i[i.length-1],e,a);else if(bg.isFunctionScopedDeclaration.call(void 0,u)){let m=i.length-1;for(;m>0&&!i[m].isFunctionScope;)m--;if(m<0)throw new Error("Did not find parent function scope.");cD(i[m],e,a)}}}if(i.length>0)throw new Error("Expected empty scope stack after processing file.")}function cD(e,t,n){for(let i=e.startTokenIndex;i<e.endTokenIndex;i++){let o=t.tokens[i];(o.type===of.TokenType.name||o.type===of.TokenType.jsxName)&&t.identifierNameForToken(o)===n&&(o.shadowsGlobal=!0)}}});var fD=me(gg=>{"use strict";Object.defineProperty(gg,"__esModule",{value:!0});var Eq=sr();function Sq(e,t){let n=[];for(let i of t)i.type===Eq.TokenType.name&&n.push(e.slice(i.start,i.end));return n}gg.default=Sq});var hD=me(Tg=>{"use strict";Object.defineProperty(Tg,"__esModule",{value:!0});function xq(e){return e&&e.__esModule?e:{default:e}}var _q=fD(),wq=xq(_q),vg=class e{__init(){this.usedNames=new Set}constructor(t,n){e.prototype.__init.call(this),this.usedNames=new Set(wq.default.call(void 0,t,n))}claimFreeName(t){let n=this.findFreeName(t);return this.usedNames.add(n),n}findFreeName(t){if(!this.usedNames.has(t))return t;let n=2;for(;this.usedNames.has(t+String(n));)n++;return t+String(n)}};Tg.default=vg});var uf=me(us=>{"use strict";var Cq=us&&us.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var r in o)o.hasOwnProperty(r)&&(i[r]=o[r])},e(t,n)};return function(t,n){e(t,n);function i(){this.constructor=t}t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(us,"__esModule",{value:!0});us.DetailContext=us.NoopContext=us.VError=void 0;var mD=function(e){Cq(t,e);function t(n,i){var o=e.call(this,i)||this;return o.path=n,Object.setPrototypeOf(o,t.prototype),o}return t}(Error);us.VError=mD;var Aq=function(){function e(){}return e.prototype.fail=function(t,n,i){return!1},e.prototype.unionResolver=function(){return this},e.prototype.createContext=function(){return this},e.prototype.resolveUnion=function(t){},e}();us.NoopContext=Aq;var yD=function(){function e(){this._propNames=[""],this._messages=[null],this._score=0}return e.prototype.fail=function(t,n,i){return this._propNames.push(t),this._messages.push(n),this._score+=i,!1},e.prototype.unionResolver=function(){return new Pq},e.prototyp
|
||
|
module.exports = exports.default;
|
||
|
`:""}process(){return this.tokens.matches3(We.TokenType._import,We.TokenType.name,We.TokenType.eq)?this.processImportEquals():this.tokens.matches1(We.TokenType._import)?(this.processImport(),!0):this.tokens.matches2(We.TokenType._export,We.TokenType.eq)?(this.tokens.replaceToken("module.exports"),!0):this.tokens.matches1(We.TokenType._export)&&!this.tokens.currentToken().isType?(this.hadExport=!0,this.processExport()):this.tokens.matches2(We.TokenType.name,We.TokenType.postIncDec)&&this.processPostIncDec()?!0:this.tokens.matches1(We.TokenType.name)||this.tokens.matches1(We.TokenType.jsxName)?this.processIdentifier():this.tokens.matches1(We.TokenType.eq)?this.processAssignment():this.tokens.matches1(We.TokenType.assign)?this.processComplexAssignment():this.tokens.matches1(We.TokenType.preIncDec)?this.processPreIncDec():!1}processImportEquals(){let t=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.importProcessor.shouldAutomaticallyElideImportedName(t)?eH.default.call(void 0,this.tokens):this.tokens.replaceToken("const"),!0}processImport(){if(this.tokens.matches2(We.TokenType._import,We.TokenType.parenL)){if(this.preserveDynamicImport){this.tokens.copyToken();return}let n=this.enableLegacyTypeScriptModuleInterop?"":`${this.helperManager.getHelperName("interopRequireWildcard")}(`;this.tokens.replaceToken(`Promise.resolve().then(() => ${n}require`);let i=this.tokens.currentToken().contextId;if(i==null)throw new Error("Expected context ID on dynamic import invocation.");for(this.tokens.copyToken();!this.tokens.matchesContextIdAndLabel(We.TokenType.parenR,i);)this.rootTransformer.processToken();this.tokens.replaceToken(n?")))":"))");return}if(this.removeImportAndDetectIfShouldElide())this.tokens.removeToken();else{let n=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(n)),this.tokens.appendCode(this.importProcessor.claimImportCode(n))}Rf.removeMaybeImportAttributes.call(void 0,this.tokens),this.tokens.matches1(We.TokenType.semi)&&this.tokens.removeToken()}removeImportAndDetectIfShouldElide(){if(this.tokens.removeInitialToken(),this.tokens.matchesContextual(za.ContextualKeyword._type)&&!this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,We.TokenType.comma)&&!this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,za.ContextualKeyword._from))return this.removeRemainingImport(),!0;if(this.tokens.matches1(We.TokenType.name)||this.tokens.matches1(We.TokenType.star))return this.removeRemainingImport(),!1;if(this.tokens.matches1(We.TokenType.string))return!1;let t=!1,n=!1;for(;!this.tokens.matches1(We.TokenType.string);)(!t&&this.tokens.matches1(We.TokenType.braceL)||this.tokens.matches1(We.TokenType.comma))&&(this.tokens.removeToken(),this.tokens.matches1(We.TokenType.braceR)||(n=!0),(this.tokens.matches2(We.TokenType.name,We.TokenType.comma)||this.tokens.matches2(We.TokenType.name,We.TokenType.braceR)||this.tokens.matches4(We.TokenType.name,We.TokenType.name,We.TokenType.name,We.TokenType.comma)||this.tokens.matches4(We.TokenType.name,We.TokenType.name,We.TokenType.name,We.TokenType.braceR))&&(t=!0)),this.tokens.removeToken();return this.keepUnusedImports?!1:this.isTypeScriptTransformEnabled?!t:this.isFlowTransformEnabled?n&&!t:!1}removeRemainingImport(){for(;!this.tokens.matches1(We.TokenType.string);)this.tokens.removeToken()}processIdentifier(){let t=this.tokens.currentToken();if(t.shadowsGlobal)return!1;if(t.identifierRole===Mf.IdentifierRole.ObjectShorthand)return this.processObjectShorthand();if(t.identifierRole!==Mf.IdentifierRole.Access)return!1;let n=this.importProcessor.getIdentifierReplacement(this.tokens.identifierNameForToken(t));if(!n)return!1;let i=this.tokens.currentIndex()+1;for(;i<this.tokens.tokens.length&&this.tokens.tokens[i].type===We.TokenType.parenR;)i++;return this.tokens.tokens[i].type===We.TokenType.parenL?this.tokens.tokenAtRelativeIndex(1).type===We.TokenType.parenL&&this.tokens.tokenAtRelativeIndex(-1).type!==We.TokenType._new?(this.tokens.replaceToken(`${n}.call(void 0, `),this.tokens.removeToken(
|
||
|
(function () {
|
||
|
var enterModule = require('react-hot-loader').enterModule;
|
||
|
enterModule && enterModule(module);
|
||
|
})();`.replace(/\s+/g," ").trim()}getSuffixCode(){let t=new Set;for(let i of this.tokens.tokens)!i.isType&&m2.isTopLevelDeclaration.call(void 0,i)&&i.identifierRole!==m2.IdentifierRole.ImportDeclaration&&t.add(this.tokens.identifierNameForToken(i));let n=Array.from(t).map(i=>({variableName:i,uniqueLocalName:i}));return this.extractedDefaultExportName&&n.push({variableName:this.extractedDefaultExportName,uniqueLocalName:"default"}),`
|
||
|
;(function () {
|
||
|
var reactHotLoader = require('react-hot-loader').default;
|
||
|
var leaveModule = require('react-hot-loader').leaveModule;
|
||
|
if (!reactHotLoader) {
|
||
|
return;
|
||
|
}
|
||
|
${n.map(({variableName:i,uniqueLocalName:o})=>` reactHotLoader.register(${i}, "${o}", ${JSON.stringify(this.filePath||"")});`).join(`
|
||
|
`)}
|
||
|
leaveModule(module);
|
||
|
})();`}process(){return!1}};J0.default=X0});var g2=me(Y0=>{"use strict";Object.defineProperty(Y0,"__esModule",{value:!0});var b2=Mo(),KH=new Set(["break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","finally","for","function","if","import","in","instanceof","new","return","super","switch","this","throw","try","typeof","var","void","while","with","yield","enum","implements","interface","let","package","private","protected","public","static","await","false","null","true"]);function zH(e){if(e.length===0||!b2.IS_IDENTIFIER_START[e.charCodeAt(0)])return!1;for(let t=1;t<e.length;t++)if(!b2.IS_IDENTIFIER_CHAR[e.charCodeAt(t)])return!1;return!KH.has(e)}Y0.default=zH});var E2=me(Z0=>{"use strict";Object.defineProperty(Z0,"__esModule",{value:!0});function T2(e){return e&&e.__esModule?e:{default:e}}var Dr=sr(),GH=g2(),v2=T2(GH),HH=Ci(),XH=T2(HH),Q0=class extends XH.default{constructor(t,n,i){super(),this.rootTransformer=t,this.tokens=n,this.isImportsTransformEnabled=i}process(){return this.rootTransformer.processPossibleArrowParamEnd()||this.rootTransformer.processPossibleAsyncArrowWithTypeParams()||this.rootTransformer.processPossibleTypeRange()?!0:this.tokens.matches1(Dr.TokenType._public)||this.tokens.matches1(Dr.TokenType._protected)||this.tokens.matches1(Dr.TokenType._private)||this.tokens.matches1(Dr.TokenType._abstract)||this.tokens.matches1(Dr.TokenType._readonly)||this.tokens.matches1(Dr.TokenType._override)||this.tokens.matches1(Dr.TokenType.nonNullAssertion)?(this.tokens.removeInitialToken(),!0):this.tokens.matches1(Dr.TokenType._enum)||this.tokens.matches2(Dr.TokenType._const,Dr.TokenType._enum)?(this.processEnum(),!0):this.tokens.matches2(Dr.TokenType._export,Dr.TokenType._enum)||this.tokens.matches3(Dr.TokenType._export,Dr.TokenType._const,Dr.TokenType._enum)?(this.processEnum(!0),!0):!1}processEnum(t=!1){for(this.tokens.removeInitialToken();this.tokens.matches1(Dr.TokenType._const)||this.tokens.matches1(Dr.TokenType._enum);)this.tokens.removeToken();let n=this.tokens.identifierName();this.tokens.removeToken(),t&&!this.isImportsTransformEnabled&&this.tokens.appendCode("export "),this.tokens.appendCode(`var ${n}; (function (${n})`),this.tokens.copyExpectedToken(Dr.TokenType.braceL),this.processEnumBody(n),this.tokens.copyExpectedToken(Dr.TokenType.braceR),t&&this.isImportsTransformEnabled?this.tokens.appendCode(`)(${n} || (exports.${n} = ${n} = {}));`):this.tokens.appendCode(`)(${n} || (${n} = {}));`)}processEnumBody(t){let n=null;for(;!this.tokens.matches1(Dr.TokenType.braceR);){let{nameStringCode:i,variableName:o}=this.extractEnumKeyInfo(this.tokens.currentToken());this.tokens.removeInitialToken(),this.tokens.matches3(Dr.TokenType.eq,Dr.TokenType.string,Dr.TokenType.comma)||this.tokens.matches3(Dr.TokenType.eq,Dr.TokenType.string,Dr.TokenType.braceR)?this.processStringLiteralEnumMember(t,i,o):this.tokens.matches1(Dr.TokenType.eq)?this.processExplicitValueEnumMember(t,i,o):this.processImplicitValueEnumMember(t,i,o,n),this.tokens.matches1(Dr.TokenType.comma)&&this.tokens.removeToken(),o!=null?n=o:n=`${t}[${i}]`}}extractEnumKeyInfo(t){if(t.type===Dr.TokenType.name){let n=this.tokens.identifierNameForToken(t);return{nameStringCode:`"${n}"`,variableName:v2.default.call(void 0,n)?n:null}}else if(t.type===Dr.TokenType.string){let n=this.tokens.stringValueForToken(t);return{nameStringCode:this.tokens.code.slice(t.start,t.end),variableName:v2.default.call(void 0,n)?n:null}}else throw new Error("Expected name or string at beginning of enum element.")}processStringLiteralEnumMember(t,n,i){i!=null?(this.tokens.appendCode(`const ${i}`),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.appendCode(`; ${t}[${n}] = ${i};`)):(this.tokens.appendCode(`${t}[${n}]`),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.appendCode(";"))}processExplicitValueEnumMember(t,n,i){let o=this.tokens.currentToken().rhsEndIndex;if(o==null)throw new Error("Expected rhsEndIndex on enum assign.");if(i!=null){for(this.tokens.appendCode(`const ${i}`),this.tokens.copyToken();this.
|
||
|
`);return u===-1&&(u=r.length,r+=`
|
||
|
`),{code:r.slice(0,u+1)+n+r.slice(u+1)+i,mappings:this.shiftMappings(o.mappings,n.length)}}else return{code:n+r+i,mappings:this.shiftMappings(o.mappings,n.length)}}processBalancedCode(){let t=0,n=0;for(;!this.tokens.isAtEnd();){if(this.tokens.matches1(ln.TokenType.braceL)||this.tokens.matches1(ln.TokenType.dollarBraceL))t++;else if(this.tokens.matches1(ln.TokenType.braceR)){if(t===0)return;t--}if(this.tokens.matches1(ln.TokenType.parenL))n++;else if(this.tokens.matches1(ln.TokenType.parenR)){if(n===0)return;n--}this.processToken()}}processToken(){if(this.tokens.matches1(ln.TokenType._class)){this.processClass();return}for(let t of this.transformers)if(t.process())return;this.tokens.copyToken()}processNamedClass(){if(!this.tokens.matches2(ln.TokenType._class,ln.TokenType.name))throw new Error("Expected identifier for exported class name.");let t=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.processClass(),t}processClass(){let t=QH.default.call(void 0,this,this.tokens,this.nameManager,this.disableESTransforms),n=(t.headerInfo.isExpression||!t.headerInfo.className)&&t.staticInitializerNames.length+t.instanceInitializerNames.length>0,i=t.headerInfo.className;n&&(i=this.nameManager.claimFreeName("_class"),this.generatedVariables.push(i),this.tokens.appendCode(` (${i} =`));let r=this.tokens.currentToken().contextId;if(r==null)throw new Error("Expected class to have a context ID.");for(this.tokens.copyExpectedToken(ln.TokenType._class);!this.tokens.matchesContextIdAndLabel(ln.TokenType.braceL,r);)this.processToken();this.processClassBody(t,i);let u=t.staticInitializerNames.map(a=>`${i}.${a}()`);n?this.tokens.appendCode(`, ${u.map(a=>`${a}, `).join("")}${i})`):t.staticInitializerNames.length>0&&this.tokens.appendCode(` ${u.map(a=>`${a};`).join(" ")}`)}processClassBody(t,n){let{headerInfo:i,constructorInsertPos:o,constructorInitializerStatements:r,fields:u,instanceInitializerNames:a,rangesToRemove:m}=t,d=0,s=0,l=this.tokens.currentToken().contextId;if(l==null)throw new Error("Expected non-null context ID on class.");this.tokens.copyExpectedToken(ln.TokenType.braceL),this.isReactHotLoaderTransformEnabled&&this.tokens.appendCode("__reactstandin__regenerateByEval(key, code) {this[key] = eval(code);}");let f=r.length+a.length>0;if(o===null&&f){let p=this.makeConstructorInitCode(r,a,n);if(i.hasSuperclass){let h=this.nameManager.claimFreeName("args");this.tokens.appendCode(`constructor(...${h}) { super(...${h}); ${p}; }`)}else this.tokens.appendCode(`constructor() { ${p}; }`)}for(;!this.tokens.matchesContextIdAndLabel(ln.TokenType.braceR,l);)if(d<u.length&&this.tokens.currentIndex()===u[d].start){let p=!1;for(this.tokens.matches1(ln.TokenType.bracketL)?this.tokens.copyTokenWithPrefix(`${u[d].initializerName}() {this`):this.tokens.matches1(ln.TokenType.string)||this.tokens.matches1(ln.TokenType.num)?(this.tokens.copyTokenWithPrefix(`${u[d].initializerName}() {this[`),p=!0):this.tokens.copyTokenWithPrefix(`${u[d].initializerName}() {this.`);this.tokens.currentIndex()<u[d].end;)p&&this.tokens.currentIndex()===u[d].equalsIndex&&this.tokens.appendCode("]"),this.processToken();this.tokens.appendCode("}"),d++}else if(s<m.length&&this.tokens.currentIndex()>=m[s].start){for(this.tokens.currentIndex()<m[s].end&&this.tokens.removeInitialToken();this.tokens.currentIndex()<m[s].end;)this.tokens.removeToken();s++}else this.tokens.currentIndex()===o?(this.tokens.copyToken(),f&&this.tokens.appendCode(`;${this.makeConstructorInitCode(r,a,n)};`),this.processToken()):this.processToken();this.tokens.copyExpectedToken(ln.TokenType.braceR)}makeConstructorInitCode(t,n,i){return[...t,...n.map(o=>`${i}.prototype.${o}.call(this)`)].join(";")}processPossibleArrowParamEnd(){if(this.tokens.matches2(ln.TokenType.parenR,ln.TokenType.colon)&&this.tokens.tokenAtRelativeIndex(1).isType){let t=this.tokens.currentIndex()+1;for(;this.tokens.tokens[t].isType;)t++;if(this.tokens.matches1AtIndex(t,ln.TokenType.arrow)){for(this.tokens.removeInitialToken();this.tokens.currentIndex()<t;)this.tokens.removeToken();return this.tokens.replaceTokenTrim
|
||
|
`,x2="\r",_2=function(){function e(t){this.string=t;for(var n=[0],i=0;i<t.length;)switch(t[i]){case Uf:i+=Uf.length,n.push(i);break;case x2:i+=x2.length,t[i]===Uf&&(i+=Uf.length),n.push(i);break;default:i++;break}this.offsets=n}return e.prototype.locationForIndex=function(t){if(t<0||t>this.string.length)return null;for(var n=0,i=this.offsets;i[n+1]<=t;)n++;var o=t-i[n];return{line:n,column:o}},e.prototype.indexForLocation=function(t){var n=t.line,i=t.column;return n<0||n>=this.offsets.length||i<0||i>this.lengthOfLine(n)?null:this.offsets[n]+i},e.prototype.lengthOfLine=function(t){var n=this.offsets[t],i=t===this.offsets.length-1?this.string.length:this.offsets[t+1];return i-n},e}();lc.LinesAndColumns=_2;lc.default=_2});var C2=me(rv=>{"use strict";Object.defineProperty(rv,"__esModule",{value:!0});function EX(e){return e&&e.__esModule?e:{default:e}}var SX=w2(),xX=EX(SX),_X=sr();function wX(e,t){if(t.length===0)return"";let n=Object.keys(t[0]).filter(f=>f!=="type"&&f!=="value"&&f!=="start"&&f!=="end"&&f!=="loc"),i=Object.keys(t[0].type).filter(f=>f!=="label"&&f!=="keyword"),o=["Location","Label","Raw",...n,...i],r=new xX.default(e),u=[o,...t.map(m)],a=o.map(()=>0);for(let f of u)for(let p=0;p<f.length;p++)a[p]=Math.max(a[p],f[p].length);return u.map(f=>f.map((p,h)=>p.padEnd(a[h])).join(" ")).join(`
|
||
|
`);function m(f){let p=e.slice(f.start,f.end);return[s(f.start,f.end),_X.formatTokenType.call(void 0,f.type),CX(String(p),14),...n.map(h=>d(f[h],h)),...i.map(h=>d(f.type[h],h))]}function d(f,p){return f===!0?p:f===!1||f===null?"":String(f)}function s(f,p){return`${l(f)}-${l(p)}`}function l(f){let p=r.locationForIndex(f);return p?`${p.line+1}:${p.column+1}`:"Unknown"}}rv.default=wX;function CX(e,t){return e.length>t?`${e.slice(0,t-3)}...`:e}});var A2=me(nv=>{"use strict";Object.defineProperty(nv,"__esModule",{value:!0});function AX(e){return e&&e.__esModule?e:{default:e}}var ei=sr(),PX=Wu(),kX=AX(PX);function DX(e){let t=new Set;for(let n=0;n<e.tokens.length;n++)e.matches1AtIndex(n,ei.TokenType._import)&&!e.matches3AtIndex(n,ei.TokenType._import,ei.TokenType.name,ei.TokenType.eq)&&IX(e,n,t);return t}nv.default=DX;function IX(e,t,n){t++,!e.matches1AtIndex(t,ei.TokenType.parenL)&&(e.matches1AtIndex(t,ei.TokenType.name)&&(n.add(e.identifierNameAtIndex(t)),t++,e.matches1AtIndex(t,ei.TokenType.comma)&&t++),e.matches1AtIndex(t,ei.TokenType.star)&&(t+=2,n.add(e.identifierNameAtIndex(t)),t++),e.matches1AtIndex(t,ei.TokenType.braceL)&&(t++,OX(e,t,n)))}function OX(e,t,n){for(;;){if(e.matches1AtIndex(t,ei.TokenType.braceR))return;let i=kX.default.call(void 0,e,t);if(t=i.endIndex,i.isType||n.add(i.rightName),e.matches2AtIndex(t,ei.TokenType.comma,ei.TokenType.braceR))return;if(e.matches1AtIndex(t,ei.TokenType.braceR))return;if(e.matches1AtIndex(t,ei.TokenType.comma))t++;else throw new Error(`Unexpected token: ${JSON.stringify(e.tokens[t])}`)}}});var D2=me(uc=>{"use strict";Object.defineProperty(uc,"__esModule",{value:!0});function ya(e){return e&&e.__esModule?e:{default:e}}var NX=Qk(),FX=ya(NX),jX=lD(),LX=ya(jX),MX=uD(),RX=dD(),P2=ya(RX),BX=hD(),UX=ya(BX),$X=OD(),VX=h0(),qX=HI(),WX=ya(qX),KX=S2(),zX=ya(KX),GX=C2(),HX=ya(GX),XX=A2(),JX=ya(XX);function YX(){return"3.34.0"}uc.getVersion=YX;function QX(e,t){$X.validateOptions.call(void 0,t);try{let n=k2(e,t),o=new zX.default(n,t.transforms,!!t.enableLegacyBabel5ModuleInterop,t).transform(),r={code:o.code};if(t.sourceMapOptions){if(!t.filePath)throw new Error("filePath must be specified when generating a source map.");r={...r,sourceMap:LX.default.call(void 0,o,t.filePath,t.sourceMapOptions,e,n.tokenProcessor.tokens)}}return r}catch(n){throw t.filePath&&(n.message=`Error transforming ${t.filePath}: ${n.message}`),n}}uc.transform=QX;function ZX(e,t){let n=k2(e,t).tokenProcessor.tokens;return HX.default.call(void 0,e,n)}uc.getFormattedTokens=ZX;function k2(e,t){let n=t.transforms.includes("jsx"),i=t.transforms.includes("typescript"),o=t.transforms.includes("flow"),r=t.disableESTransforms===!0,u=VX.parse.call(void 0,e,n,i,o),a=u.tokens,m=u.scopes,d=new UX.default(e,a),s=new MX.HelperManager(d),l=new WX.default(e,a,o,r,s),f=!!t.enableLegacyTypeScriptModuleInterop,p=null;return t.transforms.includes("imports")?(p=new FX.default(d,l,f,t,t.transforms.includes("typescript"),!!t.keepUnusedImports,s),p.preprocessTokens(),P2.default.call(void 0,l,m,p.getGlobalNames()),t.transforms.includes("typescript")&&!t.keepUnusedImports&&p.pruneTypeOnlyImports()):t.transforms.includes("typescript")&&!t.keepUnusedImports&&P2.default.call(void 0,l,m,JX.default.call(void 0,l)),{tokenProcessor:l,scopes:m,nameManager:d,importProcessor:p,helperManager:s}}});var I2=me(iv=>{"use strict";Object.defineProperty(iv,"__esModule",{value:!0});function eJ(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}eJ(iv,{useCustomJiti:function(){return iJ},loadConfig:function(){return aJ}});var tJ=nJ(Ek()),rJ=D2();function nJ(e){return e&&e.__esModule?e:{default:e}}var cc=null;function iJ(e){cc=e()}function sJ(){return cc??(cc=(0,tJ.default)(__filename,{interopDefault:!0,transform:e=>(0,rJ.transform)(e.source,{transforms:["typescript","imports"]})}))}function aJ(e){let t=function(){try{return e?yt(e):{}}catch{return sJ()(e)}}();var n;return(n=t.default)!==null&&n!==void 0?n:t}});var O2=me(sv=>{"use strict";Object.defineProperty(sv,"__esModule",{value:!0});Object.defineProperty(sv,"default",{enumerable:!0,get:functi
|
||
|
/*! Bundled license information:
|
||
|
|
||
|
isobject/index.js:
|
||
|
(*!
|
||
|
* isobject <https://github.com/jonschlinkert/isobject>
|
||
|
*
|
||
|
* Copyright (c) 2014-2015, Jon Schlinkert.
|
||
|
* Licensed under the MIT License.
|
||
|
*)
|
||
|
|
||
|
line-column/lib/line-column.js:
|
||
|
(**
|
||
|
* line-column - Convert efficiently index to/from line-column in a string
|
||
|
* @module lineColumn
|
||
|
* @license MIT
|
||
|
*)
|
||
|
|
||
|
cssesc/cssesc.js:
|
||
|
(*! https://mths.be/cssesc v3.0.0 by @mathias *)
|
||
|
*/
|