@barbapapazes/content-creation 0.7.0 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/cli.mjs +2 -154
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -1,159 +1,7 @@
1
1
  #!/usr/bin/env node
2
- import{createRequire}from"node:module";import process$1,{stdin,stdout}from"node:process";import{stripVTControlCharacters}from"node:util";import*as g from"node:readline";import O from"node:readline";import{Writable}from"node:stream";import{EventEmitter}from"events";import{existsSync,mkdirSync,readFileSync,readdirSync,statSync,writeFileSync}from"node:fs";import{join,resolve}from"node:path";var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__commonJSMin=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports),__copyProps=(to,from,except,desc)=>{if(from&&typeof from==`object`||typeof from==`function`)for(var keys=__getOwnPropNames(from),i=0,n=keys.length,key;i<n;i++)key=keys[i],!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:(k$2=>from[k$2]).bind(null,key),enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toESM=(mod,isNodeMode,target)=>(target=mod==null?{}:__create(__getProtoOf(mod)),__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,`default`,{value:mod,enumerable:!0}):target,mod)),__require=createRequire(import.meta.url),require_src=__commonJSMin(((exports,module)=>{let ESC=`\x1B`,CSI=`\x1B[`,beep=`\x07`,cursor={to(x$2,y$1){return y$1?`[${y$1+1};${x$2+1}H`:`[${x$2+1}G`},move(x$2,y$1){let ret=``;return x$2<0?ret+=`[${-x$2}D`:x$2>0&&(ret+=`[${x$2}C`),y$1<0?ret+=`[${-y$1}A`:y$1>0&&(ret+=`[${y$1}B`),ret},up:(count=1)=>`[${count}A`,down:(count=1)=>`[${count}B`,forward:(count=1)=>`[${count}C`,backward:(count=1)=>`[${count}D`,nextLine:(count=1)=>`\x1B[E`.repeat(count),prevLine:(count=1)=>`\x1B[F`.repeat(count),left:`\x1B[G`,hide:`\x1B[?25l`,show:`\x1B[?25h`,save:`\x1B7`,restore:`\x1B8`};module.exports={cursor,scroll:{up:(count=1)=>`\x1B[S`.repeat(count),down:(count=1)=>`\x1B[T`.repeat(count)},erase:{screen:`\x1B[2J`,up:(count=1)=>`\x1B[1J`.repeat(count),down:(count=1)=>`\x1B[J`.repeat(count),line:`\x1B[2K`,lineEnd:`\x1B[K`,lineStart:`\x1B[1K`,lines(count){let clear=``;for(let i=0;i<count;i++)clear+=this.line+(i<count-1?cursor.up():``);return count&&(clear+=cursor.left),clear}},beep:`\x07`}})),require_picocolors=__commonJSMin(((exports,module)=>{let p=process||{},argv=p.argv||[],env=p.env||{},isColorSupported=!(env.NO_COLOR||argv.includes(`--no-color`))&&(!!env.FORCE_COLOR||argv.includes(`--color`)||p.platform===`win32`||(p.stdout||{}).isTTY&&env.TERM!==`dumb`||!!env.CI),formatter=(open,close,replace=open)=>input=>{let string=``+input,index=string.indexOf(close,open.length);return~index?open+replaceClose(string,close,replace,index)+close:open+string+close},replaceClose=(string,close,replace,index)=>{let result=``,cursor=0;do result+=string.substring(cursor,index)+replace,cursor=index+close.length,index=string.indexOf(close,cursor);while(~index);return result+string.substring(cursor)},createColors=(enabled=isColorSupported)=>{let f=enabled?formatter:()=>String;return{isColorSupported:enabled,reset:f(`\x1B[0m`,`\x1B[0m`),bold:f(`\x1B[1m`,`\x1B[22m`,`\x1B[22m\x1B[1m`),dim:f(`\x1B[2m`,`\x1B[22m`,`\x1B[22m\x1B[2m`),italic:f(`\x1B[3m`,`\x1B[23m`),underline:f(`\x1B[4m`,`\x1B[24m`),inverse:f(`\x1B[7m`,`\x1B[27m`),hidden:f(`\x1B[8m`,`\x1B[28m`),strikethrough:f(`\x1B[9m`,`\x1B[29m`),black:f(`\x1B[30m`,`\x1B[39m`),red:f(`\x1B[31m`,`\x1B[39m`),green:f(`\x1B[32m`,`\x1B[39m`),yellow:f(`\x1B[33m`,`\x1B[39m`),blue:f(`\x1B[34m`,`\x1B[39m`),magenta:f(`\x1B[35m`,`\x1B[39m`),cyan:f(`\x1B[36m`,`\x1B[39m`),white:f(`\x1B[37m`,`\x1B[39m`),gray:f(`\x1B[90m`,`\x1B[39m`),bgBlack:f(`\x1B[40m`,`\x1B[49m`),bgRed:f(`\x1B[41m`,`\x1B[49m`),bgGreen:f(`\x1B[42m`,`\x1B[49m`),bgYellow:f(`\x1B[43m`,`\x1B[49m`),bgBlue:f(`\x1B[44m`,`\x1B[49m`),bgMagenta:f(`\x1B[45m`,`\x1B[49m`),bgCyan:f(`\x1B[46m`,`\x1B[49m`),bgWhite:f(`\x1B[47m`,`\x1B[49m`),blackBright:f(`\x1B[90m`,`\x1B[39m`),redBright:f(`\x1B[91m`,`\x1B[39m`),greenBright:f(`\x1B[92m`,`\x1B[39m`),yellowBright:f(`\x1B[93m`,`\x1B[39m`),blueBright:f(`\x1B[94m`,`\x1B[39m`),magentaBright:f(`\x1B[95m`,`\x1B[39m`),cyanBright:f(`\x1B[96m`,`\x1B[39m`),whiteBright:f(`\x1B[97m`,`\x1B[39m`),bgBlackBright:f(`\x1B[100m`,`\x1B[49m`),bgRedBright:f(`\x1B[101m`,`\x1B[49m`),bgGreenBright:f(`\x1B[102m`,`\x1B[49m`),bgYellowBright:f(`\x1B[103m`,`\x1B[49m`),bgBlueBright:f(`\x1B[104m`,`\x1B[49m`),bgMagentaBright:f(`\x1B[105m`,`\x1B[49m`),bgCyanBright:f(`\x1B[106m`,`\x1B[49m`),bgWhiteBright:f(`\x1B[107m`,`\x1B[49m`)}};module.exports=createColors(),module.exports.createColors=createColors})),import_src=require_src(),import_picocolors=__toESM(require_picocolors(),1);function DD({onlyFirst:e$1=!1}={}){let t=[`[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))`,`(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))`].join(`|`);return new RegExp(t,e$1?void 0:`g`)}const uD=DD();function P$1(e$1){if(typeof e$1!=`string`)throw TypeError(`Expected a \`string\`, got \`${typeof e$1}\``);return e$1.replace(uD,``)}function L$1(e$1){return e$1&&e$1.__esModule&&Object.prototype.hasOwnProperty.call(e$1,`default`)?e$1.default:e$1}var W$1={exports:{}};(function(e$1){var u$1={};e$1.exports=u$1,u$1.eastAsianWidth=function(F$1){var s=F$1.charCodeAt(0),i=F$1.length==2?F$1.charCodeAt(1):0,D$1=s;return 55296<=s&&s<=56319&&56320<=i&&i<=57343&&(s&=1023,i&=1023,D$1=s<<10|i,D$1+=65536),D$1==12288||65281<=D$1&&D$1<=65376||65504<=D$1&&D$1<=65510?`F`:D$1==8361||65377<=D$1&&D$1<=65470||65474<=D$1&&D$1<=65479||65482<=D$1&&D$1<=65487||65490<=D$1&&D$1<=65495||65498<=D$1&&D$1<=65500||65512<=D$1&&D$1<=65518?`H`:4352<=D$1&&D$1<=4447||4515<=D$1&&D$1<=4519||4602<=D$1&&D$1<=4607||9001<=D$1&&D$1<=9002||11904<=D$1&&D$1<=11929||11931<=D$1&&D$1<=12019||12032<=D$1&&D$1<=12245||12272<=D$1&&D$1<=12283||12289<=D$1&&D$1<=12350||12353<=D$1&&D$1<=12438||12441<=D$1&&D$1<=12543||12549<=D$1&&D$1<=12589||12593<=D$1&&D$1<=12686||12688<=D$1&&D$1<=12730||12736<=D$1&&D$1<=12771||12784<=D$1&&D$1<=12830||12832<=D$1&&D$1<=12871||12880<=D$1&&D$1<=13054||13056<=D$1&&D$1<=19903||19968<=D$1&&D$1<=42124||42128<=D$1&&D$1<=42182||43360<=D$1&&D$1<=43388||44032<=D$1&&D$1<=55203||55216<=D$1&&D$1<=55238||55243<=D$1&&D$1<=55291||63744<=D$1&&D$1<=64255||65040<=D$1&&D$1<=65049||65072<=D$1&&D$1<=65106||65108<=D$1&&D$1<=65126||65128<=D$1&&D$1<=65131||110592<=D$1&&D$1<=110593||127488<=D$1&&D$1<=127490||127504<=D$1&&D$1<=127546||127552<=D$1&&D$1<=127560||127568<=D$1&&D$1<=127569||131072<=D$1&&D$1<=194367||177984<=D$1&&D$1<=196605||196608<=D$1&&D$1<=262141?`W`:32<=D$1&&D$1<=126||162<=D$1&&D$1<=163||165<=D$1&&D$1<=166||D$1==172||D$1==175||10214<=D$1&&D$1<=10221||10629<=D$1&&D$1<=10630?`Na`:D$1==161||D$1==164||167<=D$1&&D$1<=168||D$1==170||173<=D$1&&D$1<=174||176<=D$1&&D$1<=180||182<=D$1&&D$1<=186||188<=D$1&&D$1<=191||D$1==198||D$1==208||215<=D$1&&D$1<=216||222<=D$1&&D$1<=225||D$1==230||232<=D$1&&D$1<=234||236<=D$1&&D$1<=237||D$1==240||242<=D$1&&D$1<=243||247<=D$1&&D$1<=250||D$1==252||D$1==254||D$1==257||D$1==273||D$1==275||D$1==283||294<=D$1&&D$1<=295||D$1==299||305<=D$1&&D$1<=307||D$1==312||319<=D$1&&D$1<=322||D$1==324||328<=D$1&&D$1<=331||D$1==333||338<=D$1&&D$1<=339||358<=D$1&&D$1<=359||D$1==363||D$1==462||D$1==464||D$1==466||D$1==468||D$1==470||D$1==472||D$1==474||D$1==476||D$1==593||D$1==609||D$1==708||D$1==711||713<=D$1&&D$1<=715||D$1==717||D$1==720||728<=D$1&&D$1<=731||D$1==733||D$1==735||768<=D$1&&D$1<=879||913<=D$1&&D$1<=929||931<=D$1&&D$1<=937||945<=D$1&&D$1<=961||963<=D$1&&D$1<=969||D$1==1025||1040<=D$1&&D$1<=1103||D$1==1105||D$1==8208||8211<=D$1&&D$1<=8214||8216<=D$1&&D$1<=8217||8220<=D$1&&D$1<=8221||8224<=D$1&&D$1<=8226||8228<=D$1&&D$1<=8231||D$1==8240||8242<=D$1&&D$1<=8243||D$1==8245||D$1==8251||D$1==8254||D$1==8308||D$1==8319||8321<=D$1&&D$1<=8324||D$1==8364||D$1==8451||D$1==8453||D$1==8457||D$1==8467||D$1==8470||8481<=D$1&&D$1<=8482||D$1==8486||D$1==8491||8531<=D$1&&D$1<=8532||8539<=D$1&&D$1<=8542||8544<=D$1&&D$1<=8555||8560<=D$1&&D$1<=8569||D$1==8585||8592<=D$1&&D$1<=8601||8632<=D$1&&D$1<=8633||D$1==8658||D$1==8660||D$1==8679||D$1==8704||8706<=D$1&&D$1<=8707||8711<=D$1&&D$1<=8712||D$1==8715||D$1==8719||D$1==8721||D$1==8725||D$1==8730||8733<=D$1&&D$1<=8736||D$1==8739||D$1==8741||8743<=D$1&&D$1<=8748||D$1==8750||8756<=D$1&&D$1<=8759||8764<=D$1&&D$1<=8765||D$1==8776||D$1==8780||D$1==8786||8800<=D$1&&D$1<=8801||8804<=D$1&&D$1<=8807||8810<=D$1&&D$1<=8811||8814<=D$1&&D$1<=8815||8834<=D$1&&D$1<=8835||8838<=D$1&&D$1<=8839||D$1==8853||D$1==8857||D$1==8869||D$1==8895||D$1==8978||9312<=D$1&&D$1<=9449||9451<=D$1&&D$1<=9547||9552<=D$1&&D$1<=9587||9600<=D$1&&D$1<=9615||9618<=D$1&&D$1<=9621||9632<=D$1&&D$1<=9633||9635<=D$1&&D$1<=9641||9650<=D$1&&D$1<=9651||9654<=D$1&&D$1<=9655||9660<=D$1&&D$1<=9661||9664<=D$1&&D$1<=9665||9670<=D$1&&D$1<=9672||D$1==9675||9678<=D$1&&D$1<=9681||9698<=D$1&&D$1<=9701||D$1==9711||9733<=D$1&&D$1<=9734||D$1==9737||9742<=D$1&&D$1<=9743||9748<=D$1&&D$1<=9749||D$1==9756||D$1==9758||D$1==9792||D$1==9794||9824<=D$1&&D$1<=9825||9827<=D$1&&D$1<=9829||9831<=D$1&&D$1<=9834||9836<=D$1&&D$1<=9837||D$1==9839||9886<=D$1&&D$1<=9887||9918<=D$1&&D$1<=9919||9924<=D$1&&D$1<=9933||9935<=D$1&&D$1<=9953||D$1==9955||9960<=D$1&&D$1<=9983||D$1==10045||D$1==10071||10102<=D$1&&D$1<=10111||11093<=D$1&&D$1<=11097||12872<=D$1&&D$1<=12879||57344<=D$1&&D$1<=63743||65024<=D$1&&D$1<=65039||D$1==65533||127232<=D$1&&D$1<=127242||127248<=D$1&&D$1<=127277||127280<=D$1&&D$1<=127337||127344<=D$1&&D$1<=127386||917760<=D$1&&D$1<=917999||983040<=D$1&&D$1<=1048573||1048576<=D$1&&D$1<=1114109?`A`:`N`},u$1.characterLength=function(F$1){var s=this.eastAsianWidth(F$1);return s==`F`||s==`W`||s==`A`?2:1};function t(F$1){return F$1.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}u$1.length=function(F$1){for(var s=t(F$1),i=0,D$1=0;D$1<s.length;D$1++)i+=this.characterLength(s[D$1]);return i},u$1.slice=function(F$1,s,i){textLen=u$1.length(F$1),s||=0,i||=1,s<0&&(s=textLen+s),i<0&&(i=textLen+i);for(var D$1=``,r=0,n=t(F$1),E=0;E<n.length;E++){var a=n[E],o$1=u$1.length(a);if(r>=s-(o$1==2?1:0))if(r+o$1<=i)D$1+=a;else break;r+=o$1}return D$1}})(W$1);var tD=W$1.exports;const eD=L$1(tD);var FD=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g};const sD=L$1(FD);function p(e$1,u$1={}){if(typeof e$1!=`string`||e$1.length===0||(u$1={ambiguousIsNarrow:!0,...u$1},e$1=P$1(e$1),e$1.length===0))return 0;e$1=e$1.replace(sD(),` `);let t=u$1.ambiguousIsNarrow?1:2,F$1=0;for(let s of e$1){let i=s.codePointAt(0);if(!(i<=31||i>=127&&i<=159||i>=768&&i<=879))switch(eD.eastAsianWidth(s)){case`F`:case`W`:F$1+=2;break;case`A`:F$1+=t;break;default:F$1+=1}}return F$1}const w=10,N=(e$1=0)=>u$1=>`\x1B[${u$1+e$1}m`,I=(e$1=0)=>u$1=>`\x1B[${38+e$1};5;${u$1}m`,R=(e$1=0)=>(u$1,t,F$1)=>`\x1B[${38+e$1};2;${u$1};${t};${F$1}m`,C$1={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};Object.keys(C$1.modifier);const iD=Object.keys(C$1.color),rD=Object.keys(C$1.bgColor);[...iD,...rD];function CD(){let e$1=new Map;for(let[u$1,t]of Object.entries(C$1)){for(let[F$1,s]of Object.entries(t))C$1[F$1]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},t[F$1]=C$1[F$1],e$1.set(s[0],s[1]);Object.defineProperty(C$1,u$1,{value:t,enumerable:!1})}return Object.defineProperty(C$1,`codes`,{value:e$1,enumerable:!1}),C$1.color.close=`\x1B[39m`,C$1.bgColor.close=`\x1B[49m`,C$1.color.ansi=N(),C$1.color.ansi256=I(),C$1.color.ansi16m=R(),C$1.bgColor.ansi=N(10),C$1.bgColor.ansi256=I(10),C$1.bgColor.ansi16m=R(10),Object.defineProperties(C$1,{rgbToAnsi256:{value:(u$1,t,F$1)=>u$1===t&&t===F$1?u$1<8?16:u$1>248?231:Math.round((u$1-8)/247*24)+232:16+36*Math.round(u$1/255*5)+6*Math.round(t/255*5)+Math.round(F$1/255*5),enumerable:!1},hexToRgb:{value:u$1=>{let t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(u$1.toString(16));if(!t)return[0,0,0];let[F$1]=t;F$1.length===3&&(F$1=[...F$1].map(i=>i+i).join(``));let s=Number.parseInt(F$1,16);return[s>>16&255,s>>8&255,s&255]},enumerable:!1},hexToAnsi256:{value:u$1=>C$1.rgbToAnsi256(...C$1.hexToRgb(u$1)),enumerable:!1},ansi256ToAnsi:{value:u$1=>{if(u$1<8)return 30+u$1;if(u$1<16)return 90+(u$1-8);let t,F$1,s;if(u$1>=232)t=((u$1-232)*10+8)/255,F$1=t,s=t;else{u$1-=16;let r=u$1%36;t=Math.floor(u$1/36)/5,F$1=Math.floor(r/6)/5,s=r%6/5}let i=Math.max(t,F$1,s)*2;if(i===0)return 30;let D$1=30+(Math.round(s)<<2|Math.round(F$1)<<1|Math.round(t));return i===2&&(D$1+=60),D$1},enumerable:!1},rgbToAnsi:{value:(u$1,t,F$1)=>C$1.ansi256ToAnsi(C$1.rgbToAnsi256(u$1,t,F$1)),enumerable:!1},hexToAnsi:{value:u$1=>C$1.ansi256ToAnsi(C$1.hexToAnsi256(u$1)),enumerable:!1}}),C$1}const ED=CD(),d$1=new Set([`\x1B`,`›`]),oD=39,y=`\x07`,V$1=`[`,nD=`]`,G$1=`m`,_$1=`]8;;`,z=e$1=>`${d$1.values().next().value}[${e$1}m`,K$1=e$1=>`${d$1.values().next().value}${_$1}${e$1}`,aD=e$1=>e$1.split(` `).map(u$1=>p(u$1)),k$1=(e$1,u$1,t)=>{let F$1=[...u$1],s=!1,i=!1,D$1=p(P$1(e$1[e$1.length-1]));for(let[r,n]of F$1.entries()){let E=p(n);if(D$1+E<=t?e$1[e$1.length-1]+=n:(e$1.push(n),D$1=0),d$1.has(n)&&(s=!0,i=F$1.slice(r+1).join(``).startsWith(_$1)),s){i?n===`\x07`&&(s=!1,i=!1):n===`m`&&(s=!1);continue}D$1+=E,D$1===t&&r<F$1.length-1&&(e$1.push(``),D$1=0)}!D$1&&e$1[e$1.length-1].length>0&&e$1.length>1&&(e$1[e$1.length-2]+=e$1.pop())},hD=e$1=>{let u$1=e$1.split(` `),t=u$1.length;for(;t>0&&!(p(u$1[t-1])>0);)t--;return t===u$1.length?e$1:u$1.slice(0,t).join(` `)+u$1.slice(t).join(``)},lD=(e$1,u$1,t={})=>{if(t.trim!==!1&&e$1.trim()===``)return``;let F$1=``,s,i,D$1=aD(e$1),r=[``];for(let[E,a]of e$1.split(` `).entries()){t.trim!==!1&&(r[r.length-1]=r[r.length-1].trimStart());let o$1=p(r[r.length-1]);if(E!==0&&(o$1>=u$1&&(t.wordWrap===!1||t.trim===!1)&&(r.push(``),o$1=0),(o$1>0||t.trim===!1)&&(r[r.length-1]+=` `,o$1++)),t.hard&&D$1[E]>u$1){let c=u$1-o$1,f=1+Math.floor((D$1[E]-c-1)/u$1);Math.floor((D$1[E]-1)/u$1)<f&&r.push(``),k$1(r,a,u$1);continue}if(o$1+D$1[E]>u$1&&o$1>0&&D$1[E]>0){if(t.wordWrap===!1&&o$1<u$1){k$1(r,a,u$1);continue}r.push(``)}if(o$1+D$1[E]>u$1&&t.wordWrap===!1){k$1(r,a,u$1);continue}r[r.length-1]+=a}t.trim!==!1&&(r=r.map(E=>hD(E)));let n=[...r.join(`
3
- `)];for(let[E,a]of n.entries()){if(F$1+=a,d$1.has(a)){let{groups:c}=RegExp(`(?:\\[(?<code>\\d+)m|\\${_$1}(?<uri>.*))`).exec(n.slice(E).join(``))||{groups:{}};if(c.code!==void 0){let f=Number.parseFloat(c.code);s=f===39?void 0:f}else c.uri!==void 0&&(i=c.uri.length===0?void 0:c.uri)}let o$1=ED.codes.get(Number(s));n[E+1]===`
4
- `?(i&&(F$1+=K$1(``)),s&&o$1&&(F$1+=z(o$1))):a===`
5
- `&&(s&&o$1&&(F$1+=z(s)),i&&(F$1+=K$1(i)))}return F$1};function Y$1(e$1,u$1,t){return String(e$1).normalize().replace(/\r\n/g,`
6
- `).split(`
7
- `).map(F$1=>lD(F$1,u$1,t)).join(`
8
- `)}const B={actions:new Set([`up`,`down`,`left`,`right`,`space`,`enter`,`cancel`]),aliases:new Map([[`k`,`up`],[`j`,`down`],[`h`,`left`],[`l`,`right`],[``,`cancel`],[`escape`,`cancel`]])};function $(e$1,u$1){if(typeof e$1==`string`)return B.aliases.get(e$1)===u$1;for(let t of e$1)if(t!==void 0&&$(t,u$1))return!0;return!1}function BD(e$1,u$1){if(e$1===u$1)return;let t=e$1.split(`
9
- `),F$1=u$1.split(`
10
- `),s=[];for(let i=0;i<Math.max(t.length,F$1.length);i++)t[i]!==F$1[i]&&s.push(i);return s}const AD=globalThis.process.platform.startsWith(`win`),S=Symbol(`clack:cancel`);function pD(e$1){return e$1===S}function m(e$1,u$1){let t=e$1;t.isTTY&&t.setRawMode(u$1)}function fD({input:e$1=stdin,output:u$1=stdout,overwrite:t=!0,hideCursor:F$1=!0}={}){let s=g.createInterface({input:e$1,output:u$1,prompt:``,tabSize:1});g.emitKeypressEvents(e$1,s),e$1.isTTY&&e$1.setRawMode(!0);let i=(D$1,{name:r,sequence:n})=>{if($([String(D$1),r,n],`cancel`)){F$1&&u$1.write(import_src.cursor.show),process.exit(0);return}if(!t)return;let a=r===`return`?0:-1,o$1=r===`return`?-1:0;g.moveCursor(u$1,a,o$1,()=>{g.clearLine(u$1,1,()=>{e$1.once(`keypress`,i)})})};return F$1&&u$1.write(import_src.cursor.hide),e$1.once(`keypress`,i),()=>{e$1.off(`keypress`,i),F$1&&u$1.write(import_src.cursor.show),e$1.isTTY&&!AD&&e$1.setRawMode(!1),s.terminal=!1,s.close()}}var gD=Object.defineProperty,vD=(e$1,u$1,t)=>u$1 in e$1?gD(e$1,u$1,{enumerable:!0,configurable:!0,writable:!0,value:t}):e$1[u$1]=t,h=(e$1,u$1,t)=>(vD(e$1,typeof u$1==`symbol`?u$1:u$1+``,t),t),x$1=class{constructor(u$1,t=!0){h(this,`input`),h(this,`output`),h(this,`_abortSignal`),h(this,`rl`),h(this,`opts`),h(this,`_render`),h(this,`_track`,!1),h(this,`_prevFrame`,``),h(this,`_subscribers`,new Map),h(this,`_cursor`,0),h(this,`state`,`initial`),h(this,`error`,``),h(this,`value`);let{input:F$1=stdin,output:s=stdout,render:i,signal:D$1,...r}=u$1;this.opts=r,this.onKeypress=this.onKeypress.bind(this),this.close=this.close.bind(this),this.render=this.render.bind(this),this._render=i.bind(this),this._track=t,this._abortSignal=D$1,this.input=F$1,this.output=s}unsubscribe(){this._subscribers.clear()}setSubscriber(u$1,t){let F$1=this._subscribers.get(u$1)??[];F$1.push(t),this._subscribers.set(u$1,F$1)}on(u$1,t){this.setSubscriber(u$1,{cb:t})}once(u$1,t){this.setSubscriber(u$1,{cb:t,once:!0})}emit(u$1,...t){let F$1=this._subscribers.get(u$1)??[],s=[];for(let i of F$1)i.cb(...t),i.once&&s.push(()=>F$1.splice(F$1.indexOf(i),1));for(let i of s)i()}prompt(){return new Promise((u$1,t)=>{if(this._abortSignal){if(this._abortSignal.aborted)return this.state=`cancel`,this.close(),u$1(S);this._abortSignal.addEventListener(`abort`,()=>{this.state=`cancel`,this.close()},{once:!0})}let F$1=new Writable;F$1._write=(s,i,D$1)=>{this._track&&(this.value=this.rl?.line.replace(/\t/g,``),this._cursor=this.rl?.cursor??0,this.emit(`value`,this.value)),D$1()},this.input.pipe(F$1),this.rl=O.createInterface({input:this.input,output:F$1,tabSize:2,prompt:``,escapeCodeTimeout:50,terminal:!0}),O.emitKeypressEvents(this.input,this.rl),this.rl.prompt(),this.opts.initialValue!==void 0&&this._track&&this.rl.write(this.opts.initialValue),this.input.on(`keypress`,this.onKeypress),m(this.input,!0),this.output.on(`resize`,this.render),this.render(),this.once(`submit`,()=>{this.output.write(import_src.cursor.show),this.output.off(`resize`,this.render),m(this.input,!1),u$1(this.value)}),this.once(`cancel`,()=>{this.output.write(import_src.cursor.show),this.output.off(`resize`,this.render),m(this.input,!1),u$1(S)})})}onKeypress(u$1,t){if(this.state===`error`&&(this.state=`active`),t?.name&&(!this._track&&B.aliases.has(t.name)&&this.emit(`cursor`,B.aliases.get(t.name)),B.actions.has(t.name)&&this.emit(`cursor`,t.name)),u$1&&(u$1.toLowerCase()===`y`||u$1.toLowerCase()===`n`)&&this.emit(`confirm`,u$1.toLowerCase()===`y`),u$1===` `&&this.opts.placeholder&&(this.value||(this.rl?.write(this.opts.placeholder),this.emit(`value`,this.opts.placeholder))),u$1&&this.emit(`key`,u$1.toLowerCase()),t?.name===`return`){if(!this.value&&this.opts.placeholder&&(this.rl?.write(this.opts.placeholder),this.emit(`value`,this.opts.placeholder)),this.opts.validate){let F$1=this.opts.validate(this.value);F$1&&(this.error=F$1 instanceof Error?F$1.message:F$1,this.state=`error`,this.rl?.write(this.value))}this.state!==`error`&&(this.state=`submit`)}$([u$1,t?.name,t?.sequence],`cancel`)&&(this.state=`cancel`),(this.state===`submit`||this.state===`cancel`)&&this.emit(`finalize`),this.render(),(this.state===`submit`||this.state===`cancel`)&&this.close()}close(){this.input.unpipe(),this.input.removeListener(`keypress`,this.onKeypress),this.output.write(`
11
- `),m(this.input,!1),this.rl?.close(),this.rl=void 0,this.emit(`${this.state}`,this.value),this.unsubscribe()}restoreCursor(){let u$1=Y$1(this._prevFrame,process.stdout.columns,{hard:!0}).split(`
12
- `).length-1;this.output.write(import_src.cursor.move(-999,u$1*-1))}render(){let u$1=Y$1(this._render(this)??``,process.stdout.columns,{hard:!0});if(u$1!==this._prevFrame){if(this.state===`initial`)this.output.write(import_src.cursor.hide);else{let t=BD(this._prevFrame,u$1);if(this.restoreCursor(),t&&t?.length===1){let F$1=t[0];this.output.write(import_src.cursor.move(0,F$1)),this.output.write(import_src.erase.lines(1));let s=u$1.split(`
13
- `);this.output.write(s[F$1]),this._prevFrame=u$1,this.output.write(import_src.cursor.move(0,s.length-F$1-1));return}if(t&&t?.length>1){let F$1=t[0];this.output.write(import_src.cursor.move(0,F$1)),this.output.write(import_src.erase.down());let s=u$1.split(`
14
- `).slice(F$1);this.output.write(s.join(`
15
- `)),this._prevFrame=u$1;return}this.output.write(import_src.erase.down())}this.output.write(u$1),this.state===`initial`&&(this.state=`active`),this._prevFrame=u$1}}},dD=class extends x$1{get cursor(){return this.value?0:1}get _value(){return this.cursor===0}constructor(u$1){super(u$1,!1),this.value=!!u$1.initialValue,this.on(`value`,()=>{this.value=this._value}),this.on(`confirm`,t=>{this.output.write(import_src.cursor.move(0,-1)),this.value=t,this.state=`submit`,this.close()}),this.on(`cursor`,()=>{this.value=!this.value})}},mD=Object.defineProperty,bD=(e$1,u$1,t)=>u$1 in e$1?mD(e$1,u$1,{enumerable:!0,configurable:!0,writable:!0,value:t}):e$1[u$1]=t,Z=(e$1,u$1,t)=>(bD(e$1,typeof u$1==`symbol`?u$1:u$1+``,t),t),q$1=(e$1,u$1,t)=>{if(!u$1.has(e$1))throw TypeError(`Cannot `+t)},T$1=(e$1,u$1,t)=>(q$1(e$1,u$1,`read from private field`),t?t.call(e$1):u$1.get(e$1)),wD=(e$1,u$1,t)=>{if(u$1.has(e$1))throw TypeError(`Cannot add the same private member more than once`);u$1 instanceof WeakSet?u$1.add(e$1):u$1.set(e$1,t)},yD=(e$1,u$1,t,F$1)=>(q$1(e$1,u$1,`write to private field`),F$1?F$1.call(e$1,t):u$1.set(e$1,t),t),A$1;let _D=class extends x$1{constructor(u$1){super(u$1,!1),Z(this,`options`),Z(this,`cursor`,0),wD(this,A$1,void 0);let{options:t}=u$1;yD(this,A$1,u$1.selectableGroups!==!1),this.options=Object.entries(t).flatMap(([F$1,s])=>[{value:F$1,group:!0,label:F$1},...s.map(i=>({...i,group:F$1}))]),this.value=[...u$1.initialValues??[]],this.cursor=Math.max(this.options.findIndex(({value:F$1})=>F$1===u$1.cursorAt),T$1(this,A$1)?0:1),this.on(`cursor`,F$1=>{switch(F$1){case`left`:case`up`:{this.cursor=this.cursor===0?this.options.length-1:this.cursor-1;let s=this.options[this.cursor]?.group===!0;!T$1(this,A$1)&&s&&(this.cursor=this.cursor===0?this.options.length-1:this.cursor-1);break}case`down`:case`right`:{this.cursor=this.cursor===this.options.length-1?0:this.cursor+1;let s=this.options[this.cursor]?.group===!0;!T$1(this,A$1)&&s&&(this.cursor=this.cursor===this.options.length-1?0:this.cursor+1);break}case`space`:this.toggleValue();break}})}getGroupItems(u$1){return this.options.filter(t=>t.group===u$1)}isGroupSelected(u$1){return this.getGroupItems(u$1).every(t=>this.value.includes(t.value))}toggleValue(){let u$1=this.options[this.cursor];if(u$1.group===!0){let t=u$1.value,F$1=this.getGroupItems(t);this.isGroupSelected(t)?this.value=this.value.filter(s=>F$1.findIndex(i=>i.value===s)===-1):this.value=[...this.value,...F$1.map(s=>s.value)],this.value=Array.from(new Set(this.value))}else this.value=this.value.includes(u$1.value)?this.value.filter(F$1=>F$1!==u$1.value):[...this.value,u$1.value]}};A$1=new WeakMap;var kD=Object.defineProperty,$D=(e$1,u$1,t)=>u$1 in e$1?kD(e$1,u$1,{enumerable:!0,configurable:!0,writable:!0,value:t}):e$1[u$1]=t,H=(e$1,u$1,t)=>($D(e$1,typeof u$1==`symbol`?u$1:u$1+``,t),t);let SD=class extends x$1{constructor(u$1){super(u$1,!1),H(this,`options`),H(this,`cursor`,0),this.options=u$1.options,this.value=[...u$1.initialValues??[]],this.cursor=Math.max(this.options.findIndex(({value:t})=>t===u$1.cursorAt),0),this.on(`key`,t=>{t===`a`&&this.toggleAll()}),this.on(`cursor`,t=>{switch(t){case`left`:case`up`:this.cursor=this.cursor===0?this.options.length-1:this.cursor-1;break;case`down`:case`right`:this.cursor=this.cursor===this.options.length-1?0:this.cursor+1;break;case`space`:this.toggleValue();break}})}get _value(){return this.options[this.cursor].value}toggleAll(){this.value=this.value.length===this.options.length?[]:this.options.map(t=>t.value)}toggleValue(){this.value=this.value.includes(this._value)?this.value.filter(t=>t!==this._value):[...this.value,this._value]}};var TD=Object.defineProperty,jD=(e$1,u$1,t)=>u$1 in e$1?TD(e$1,u$1,{enumerable:!0,configurable:!0,writable:!0,value:t}):e$1[u$1]=t,U$1=(e$1,u$1,t)=>(jD(e$1,typeof u$1==`symbol`?u$1:u$1+``,t),t),MD=class extends x$1{constructor({mask:u$1,...t}){super(t),U$1(this,`valueWithCursor`,``),U$1(this,`_mask`,`•`),this._mask=u$1??`•`,this.on(`finalize`,()=>{this.valueWithCursor=this.masked}),this.on(`value`,()=>{if(this.cursor>=this.value.length)this.valueWithCursor=`${this.masked}${import_picocolors.default.inverse(import_picocolors.default.hidden(`_`))}`;else{let F$1=this.masked.slice(0,this.cursor),s=this.masked.slice(this.cursor);this.valueWithCursor=`${F$1}${import_picocolors.default.inverse(s[0])}${s.slice(1)}`}})}get cursor(){return this._cursor}get masked(){return this.value.replaceAll(/./g,this._mask)}},OD=Object.defineProperty,PD=(e$1,u$1,t)=>u$1 in e$1?OD(e$1,u$1,{enumerable:!0,configurable:!0,writable:!0,value:t}):e$1[u$1]=t,J$1=(e$1,u$1,t)=>(PD(e$1,typeof u$1==`symbol`?u$1:u$1+``,t),t),LD=class extends x$1{constructor(u$1){super(u$1,!1),J$1(this,`options`),J$1(this,`cursor`,0),this.options=u$1.options,this.cursor=this.options.findIndex(({value:t})=>t===u$1.initialValue),this.cursor===-1&&(this.cursor=0),this.changeValue(),this.on(`cursor`,t=>{switch(t){case`left`:case`up`:this.cursor=this.cursor===0?this.options.length-1:this.cursor-1;break;case`down`:case`right`:this.cursor=this.cursor===this.options.length-1?0:this.cursor+1;break}this.changeValue()})}get _value(){return this.options[this.cursor]}changeValue(){this.value=this._value.value}},WD=Object.defineProperty,ND=(e$1,u$1,t)=>u$1 in e$1?WD(e$1,u$1,{enumerable:!0,configurable:!0,writable:!0,value:t}):e$1[u$1]=t,Q=(e$1,u$1,t)=>(ND(e$1,typeof u$1==`symbol`?u$1:u$1+``,t),t),ID=class extends x$1{constructor(u$1){super(u$1,!1),Q(this,`options`),Q(this,`cursor`,0),this.options=u$1.options;let t=this.options.map(({value:[F$1]})=>F$1?.toLowerCase());this.cursor=Math.max(t.indexOf(u$1.initialValue),0),this.on(`key`,F$1=>{if(!t.includes(F$1))return;let s=this.options.find(({value:[i]})=>i?.toLowerCase()===F$1);s&&(this.value=s.value,this.state=`submit`,this.emit(`submit`))})}},RD=class extends x$1{get valueWithCursor(){if(this.state===`submit`)return this.value;if(this.cursor>=this.value.length)return`${this.value}\u2588`;let u$1=this.value.slice(0,this.cursor),[t,...F$1]=this.value.slice(this.cursor);return`${u$1}${import_picocolors.default.inverse(t)}${F$1.join(``)}`}get cursor(){return this._cursor}constructor(u$1){super(u$1),this.on(`finalize`,()=>{this.value||=u$1.defaultValue})}};function ce(){return process$1.platform===`win32`?!!process$1.env.CI||!!process$1.env.WT_SESSION||!!process$1.env.TERMINUS_SUBLIME||process$1.env.ConEmuTask===`{cmd::Cmder}`||process$1.env.TERM_PROGRAM===`Terminus-Sublime`||process$1.env.TERM_PROGRAM===`vscode`||process$1.env.TERM===`xterm-256color`||process$1.env.TERM===`alacritty`||process$1.env.TERMINAL_EMULATOR===`JetBrains-JediTerm`:process$1.env.TERM!==`linux`}const V=ce(),u=(t,n)=>V?t:n,le=u(`◆`,`*`),L=u(`■`,`x`),W=u(`▲`,`x`),C=u(`◇`,`o`),ue=u(`┌`,`T`),o=u(`│`,`|`),d=u(`└`,`—`),k=u(`●`,`>`),P=u(`○`,` `),A=u(`◻`,`[•]`),T=u(`◼`,`[+]`),F=u(`◻`,`[ ]`),$e=u(`▪`,`•`),_=u(`─`,`-`),me=u(`╮`,`+`),de=u(`├`,`+`),pe=u(`╯`,`+`),q=u(`●`,`•`),D=u(`◆`,`*`),U=u(`▲`,`!`),K=u(`■`,`x`),b=t=>{switch(t){case`initial`:case`active`:return import_picocolors.default.cyan(le);case`cancel`:return import_picocolors.default.red(L);case`error`:return import_picocolors.default.yellow(W);case`submit`:return import_picocolors.default.green(C)}},G=t=>{let{cursor:n,options:r,style:i}=t,s=t.maxItems??1/0,c=Math.max(process.stdout.rows-4,0),a=Math.min(c,Math.max(s,5)),l$1=0;n>=l$1+a-3?l$1=Math.max(Math.min(n-a+3,r.length-a),0):n<l$1+2&&(l$1=Math.max(n-2,0));let $$1=a<r.length&&l$1>0,g$1=a<r.length&&l$1+a<r.length;return r.slice(l$1,l$1+a).map((p$1,v$1,f)=>{let j=v$1===0&&$$1,E=v$1===f.length-1&&g$1;return j||E?import_picocolors.default.dim(`...`):i(p$1,v$1+l$1===n)})},he=t=>new RD({validate:t.validate,placeholder:t.placeholder,defaultValue:t.defaultValue,initialValue:t.initialValue,render(){let n=`${import_picocolors.default.gray(o)}
16
- ${b(this.state)} ${t.message}
17
- `,r=t.placeholder?import_picocolors.default.inverse(t.placeholder[0])+import_picocolors.default.dim(t.placeholder.slice(1)):import_picocolors.default.inverse(import_picocolors.default.hidden(`_`)),i=this.value?this.valueWithCursor:r;switch(this.state){case`error`:return`${n.trim()}
18
- ${import_picocolors.default.yellow(o)} ${i}
19
- ${import_picocolors.default.yellow(d)} ${import_picocolors.default.yellow(this.error)}
20
- `;case`submit`:return`${n}${import_picocolors.default.gray(o)} ${import_picocolors.default.dim(this.value||t.placeholder)}`;case`cancel`:return`${n}${import_picocolors.default.gray(o)} ${import_picocolors.default.strikethrough(import_picocolors.default.dim(this.value??``))}${this.value?.trim()?`
21
- ${import_picocolors.default.gray(o)}`:``}`;default:return`${n}${import_picocolors.default.cyan(o)} ${i}
22
- ${import_picocolors.default.cyan(d)}
23
- `}}}).prompt(),ge=t=>new MD({validate:t.validate,mask:t.mask??$e,render(){let n=`${import_picocolors.default.gray(o)}
24
- ${b(this.state)} ${t.message}
25
- `,r=this.valueWithCursor,i=this.masked;switch(this.state){case`error`:return`${n.trim()}
26
- ${import_picocolors.default.yellow(o)} ${i}
27
- ${import_picocolors.default.yellow(d)} ${import_picocolors.default.yellow(this.error)}
28
- `;case`submit`:return`${n}${import_picocolors.default.gray(o)} ${import_picocolors.default.dim(i)}`;case`cancel`:return`${n}${import_picocolors.default.gray(o)} ${import_picocolors.default.strikethrough(import_picocolors.default.dim(i??``))}${i?`
29
- ${import_picocolors.default.gray(o)}`:``}`;default:return`${n}${import_picocolors.default.cyan(o)} ${r}
30
- ${import_picocolors.default.cyan(d)}
31
- `}}}).prompt(),ye=t=>{let n=t.active??`Yes`,r=t.inactive??`No`;return new dD({active:n,inactive:r,initialValue:t.initialValue??!0,render(){let i=`${import_picocolors.default.gray(o)}
32
- ${b(this.state)} ${t.message}
33
- `,s=this.value?n:r;switch(this.state){case`submit`:return`${i}${import_picocolors.default.gray(o)} ${import_picocolors.default.dim(s)}`;case`cancel`:return`${i}${import_picocolors.default.gray(o)} ${import_picocolors.default.strikethrough(import_picocolors.default.dim(s))}
34
- ${import_picocolors.default.gray(o)}`;default:return`${i}${import_picocolors.default.cyan(o)} ${this.value?`${import_picocolors.default.green(k)} ${n}`:`${import_picocolors.default.dim(P)} ${import_picocolors.default.dim(n)}`} ${import_picocolors.default.dim(`/`)} ${this.value?`${import_picocolors.default.dim(P)} ${import_picocolors.default.dim(r)}`:`${import_picocolors.default.green(k)} ${r}`}
35
- ${import_picocolors.default.cyan(d)}
36
- `}}}).prompt()},ve=t=>{let n=(r,i)=>{let s=r.label??String(r.value);switch(i){case`selected`:return`${import_picocolors.default.dim(s)}`;case`active`:return`${import_picocolors.default.green(k)} ${s} ${r.hint?import_picocolors.default.dim(`(${r.hint})`):``}`;case`cancelled`:return`${import_picocolors.default.strikethrough(import_picocolors.default.dim(s))}`;default:return`${import_picocolors.default.dim(P)} ${import_picocolors.default.dim(s)}`}};return new LD({options:t.options,initialValue:t.initialValue,render(){let r=`${import_picocolors.default.gray(o)}
37
- ${b(this.state)} ${t.message}
38
- `;switch(this.state){case`submit`:return`${r}${import_picocolors.default.gray(o)} ${n(this.options[this.cursor],`selected`)}`;case`cancel`:return`${r}${import_picocolors.default.gray(o)} ${n(this.options[this.cursor],`cancelled`)}
39
- ${import_picocolors.default.gray(o)}`;default:return`${r}${import_picocolors.default.cyan(o)} ${G({cursor:this.cursor,options:this.options,maxItems:t.maxItems,style:(i,s)=>n(i,s?`active`:`inactive`)}).join(`
40
- ${import_picocolors.default.cyan(o)} `)}
41
- ${import_picocolors.default.cyan(d)}
42
- `}}}).prompt()},we=t=>{let n=(r,i=`inactive`)=>{let s=r.label??String(r.value);return i===`selected`?`${import_picocolors.default.dim(s)}`:i===`cancelled`?`${import_picocolors.default.strikethrough(import_picocolors.default.dim(s))}`:i===`active`?`${import_picocolors.default.bgCyan(import_picocolors.default.gray(` ${r.value} `))} ${s} ${r.hint?import_picocolors.default.dim(`(${r.hint})`):``}`:`${import_picocolors.default.gray(import_picocolors.default.bgWhite(import_picocolors.default.inverse(` ${r.value} `)))} ${s} ${r.hint?import_picocolors.default.dim(`(${r.hint})`):``}`};return new ID({options:t.options,initialValue:t.initialValue,render(){let r=`${import_picocolors.default.gray(o)}
43
- ${b(this.state)} ${t.message}
44
- `;switch(this.state){case`submit`:return`${r}${import_picocolors.default.gray(o)} ${n(this.options.find(i=>i.value===this.value)??t.options[0],`selected`)}`;case`cancel`:return`${r}${import_picocolors.default.gray(o)} ${n(this.options[0],`cancelled`)}
45
- ${import_picocolors.default.gray(o)}`;default:return`${r}${import_picocolors.default.cyan(o)} ${this.options.map((i,s)=>n(i,s===this.cursor?`active`:`inactive`)).join(`
46
- ${import_picocolors.default.cyan(o)} `)}
47
- ${import_picocolors.default.cyan(d)}
48
- `}}}).prompt()},fe=t=>{let n=(r,i)=>{let s=r.label??String(r.value);return i===`active`?`${import_picocolors.default.cyan(A)} ${s} ${r.hint?import_picocolors.default.dim(`(${r.hint})`):``}`:i===`selected`?`${import_picocolors.default.green(T)} ${import_picocolors.default.dim(s)} ${r.hint?import_picocolors.default.dim(`(${r.hint})`):``}`:i===`cancelled`?`${import_picocolors.default.strikethrough(import_picocolors.default.dim(s))}`:i===`active-selected`?`${import_picocolors.default.green(T)} ${s} ${r.hint?import_picocolors.default.dim(`(${r.hint})`):``}`:i===`submitted`?`${import_picocolors.default.dim(s)}`:`${import_picocolors.default.dim(F)} ${import_picocolors.default.dim(s)}`};return new SD({options:t.options,initialValues:t.initialValues,required:t.required??!0,cursorAt:t.cursorAt,validate(r){if(this.required&&r.length===0)return`Please select at least one option.
49
- ${import_picocolors.default.reset(import_picocolors.default.dim(`Press ${import_picocolors.default.gray(import_picocolors.default.bgWhite(import_picocolors.default.inverse(` space `)))} to select, ${import_picocolors.default.gray(import_picocolors.default.bgWhite(import_picocolors.default.inverse(` enter `)))} to submit`))}`},render(){let r=`${import_picocolors.default.gray(o)}
50
- ${b(this.state)} ${t.message}
51
- `,i=(s,c)=>{let a=this.value.includes(s.value);return c&&a?n(s,`active-selected`):a?n(s,`selected`):n(s,c?`active`:`inactive`)};switch(this.state){case`submit`:return`${r}${import_picocolors.default.gray(o)} ${this.options.filter(({value:s})=>this.value.includes(s)).map(s=>n(s,`submitted`)).join(import_picocolors.default.dim(`, `))||import_picocolors.default.dim(`none`)}`;case`cancel`:{let s=this.options.filter(({value:c})=>this.value.includes(c)).map(c=>n(c,`cancelled`)).join(import_picocolors.default.dim(`, `));return`${r}${import_picocolors.default.gray(o)} ${s.trim()?`${s}
52
- ${import_picocolors.default.gray(o)}`:``}`}case`error`:{let s=this.error.split(`
53
- `).map((c,a)=>a===0?`${import_picocolors.default.yellow(d)} ${import_picocolors.default.yellow(c)}`:` ${c}`).join(`
54
- `);return`${r+import_picocolors.default.yellow(o)} ${G({options:this.options,cursor:this.cursor,maxItems:t.maxItems,style:i}).join(`
55
- ${import_picocolors.default.yellow(o)} `)}
56
- ${s}
57
- `}default:return`${r}${import_picocolors.default.cyan(o)} ${G({options:this.options,cursor:this.cursor,maxItems:t.maxItems,style:i}).join(`
58
- ${import_picocolors.default.cyan(o)} `)}
59
- ${import_picocolors.default.cyan(d)}
60
- `}}}).prompt()},be=t=>{let{selectableGroups:n=!0}=t,r=(i,s,c=[])=>{let a=i.label??String(i.value),l$1=typeof i.group==`string`,$$1=l$1&&(c[c.indexOf(i)+1]??{group:!0}),g$1=l$1&&$$1.group===!0,p$1=l$1?n?`${g$1?d:o} `:` `:``;if(s===`active`)return`${import_picocolors.default.dim(p$1)}${import_picocolors.default.cyan(A)} ${a} ${i.hint?import_picocolors.default.dim(`(${i.hint})`):``}`;if(s===`group-active`)return`${p$1}${import_picocolors.default.cyan(A)} ${import_picocolors.default.dim(a)}`;if(s===`group-active-selected`)return`${p$1}${import_picocolors.default.green(T)} ${import_picocolors.default.dim(a)}`;if(s===`selected`){let f=l$1||n?import_picocolors.default.green(T):``;return`${import_picocolors.default.dim(p$1)}${f} ${import_picocolors.default.dim(a)} ${i.hint?import_picocolors.default.dim(`(${i.hint})`):``}`}if(s===`cancelled`)return`${import_picocolors.default.strikethrough(import_picocolors.default.dim(a))}`;if(s===`active-selected`)return`${import_picocolors.default.dim(p$1)}${import_picocolors.default.green(T)} ${a} ${i.hint?import_picocolors.default.dim(`(${i.hint})`):``}`;if(s===`submitted`)return`${import_picocolors.default.dim(a)}`;let v$1=l$1||n?import_picocolors.default.dim(F):``;return`${import_picocolors.default.dim(p$1)}${v$1} ${import_picocolors.default.dim(a)}`};return new _D({options:t.options,initialValues:t.initialValues,required:t.required??!0,cursorAt:t.cursorAt,selectableGroups:n,validate(i){if(this.required&&i.length===0)return`Please select at least one option.
61
- ${import_picocolors.default.reset(import_picocolors.default.dim(`Press ${import_picocolors.default.gray(import_picocolors.default.bgWhite(import_picocolors.default.inverse(` space `)))} to select, ${import_picocolors.default.gray(import_picocolors.default.bgWhite(import_picocolors.default.inverse(` enter `)))} to submit`))}`},render(){let i=`${import_picocolors.default.gray(o)}
62
- ${b(this.state)} ${t.message}
63
- `;switch(this.state){case`submit`:return`${i}${import_picocolors.default.gray(o)} ${this.options.filter(({value:s})=>this.value.includes(s)).map(s=>r(s,`submitted`)).join(import_picocolors.default.dim(`, `))}`;case`cancel`:{let s=this.options.filter(({value:c})=>this.value.includes(c)).map(c=>r(c,`cancelled`)).join(import_picocolors.default.dim(`, `));return`${i}${import_picocolors.default.gray(o)} ${s.trim()?`${s}
64
- ${import_picocolors.default.gray(o)}`:``}`}case`error`:{let s=this.error.split(`
65
- `).map((c,a)=>a===0?`${import_picocolors.default.yellow(d)} ${import_picocolors.default.yellow(c)}`:` ${c}`).join(`
66
- `);return`${i}${import_picocolors.default.yellow(o)} ${this.options.map((c,a,l$1)=>{let $$1=this.value.includes(c.value)||c.group===!0&&this.isGroupSelected(`${c.value}`),g$1=a===this.cursor;return!g$1&&typeof c.group==`string`&&this.options[this.cursor].value===c.group?r(c,$$1?`group-active-selected`:`group-active`,l$1):g$1&&$$1?r(c,`active-selected`,l$1):$$1?r(c,`selected`,l$1):r(c,g$1?`active`:`inactive`,l$1)}).join(`
67
- ${import_picocolors.default.yellow(o)} `)}
68
- ${s}
69
- `}default:return`${i}${import_picocolors.default.cyan(o)} ${this.options.map((s,c,a)=>{let l$1=this.value.includes(s.value)||s.group===!0&&this.isGroupSelected(`${s.value}`),$$1=c===this.cursor;return!$$1&&typeof s.group==`string`&&this.options[this.cursor].value===s.group?r(s,l$1?`group-active-selected`:`group-active`,a):$$1&&l$1?r(s,`active-selected`,a):l$1?r(s,`selected`,a):r(s,$$1?`active`:`inactive`,a)}).join(`
70
- ${import_picocolors.default.cyan(o)} `)}
71
- ${import_picocolors.default.cyan(d)}
72
- `}}}).prompt()},Me=(t=``,n=``)=>{let r=`
73
- ${t}
74
- `.split(`
75
- `),i=stripVTControlCharacters(n).length,s=Math.max(r.reduce((a,l$1)=>{let $$1=stripVTControlCharacters(l$1);return $$1.length>a?$$1.length:a},0),i)+2,c=r.map(a=>`${import_picocolors.default.gray(o)} ${import_picocolors.default.dim(a)}${` `.repeat(s-stripVTControlCharacters(a).length)}${import_picocolors.default.gray(o)}`).join(`
76
- `);process.stdout.write(`${import_picocolors.default.gray(o)}
77
- ${import_picocolors.default.green(C)} ${import_picocolors.default.reset(n)} ${import_picocolors.default.gray(_.repeat(Math.max(s-i-1,1))+me)}
78
- ${c}
79
- ${import_picocolors.default.gray(de+_.repeat(s+2)+pe)}
80
- `)},xe=(t=``)=>{process.stdout.write(`${import_picocolors.default.gray(d)} ${import_picocolors.default.red(t)}
81
-
82
- `)},Ie=(t=``)=>{process.stdout.write(`${import_picocolors.default.gray(ue)} ${t}
83
- `)},Se=(t=``)=>{process.stdout.write(`${import_picocolors.default.gray(o)}
84
- ${import_picocolors.default.gray(d)} ${t}
85
-
86
- `)},M={message:(t=``,{symbol:n=import_picocolors.default.gray(o)}={})=>{let r=[`${import_picocolors.default.gray(o)}`];if(t){let[i,...s]=t.split(`
87
- `);r.push(`${n} ${i}`,...s.map(c=>`${import_picocolors.default.gray(o)} ${c}`))}process.stdout.write(`${r.join(`
88
- `)}
89
- `)},info:t=>{M.message(t,{symbol:import_picocolors.default.blue(q)})},success:t=>{M.message(t,{symbol:import_picocolors.default.green(D)})},step:t=>{M.message(t,{symbol:import_picocolors.default.green(C)})},warn:t=>{M.message(t,{symbol:import_picocolors.default.yellow(U)})},warning:t=>{M.warn(t)},error:t=>{M.message(t,{symbol:import_picocolors.default.red(K)})}},J=`${import_picocolors.default.gray(o)} `,x={message:async(t,{symbol:n=import_picocolors.default.gray(o)}={})=>{process.stdout.write(`${import_picocolors.default.gray(o)}
90
- ${n} `);let r=3;for await(let i of t){i=i.replace(/\n/g,`
91
- ${J}`),i.includes(`
92
- `)&&(r=3+stripVTControlCharacters(i.slice(i.lastIndexOf(`
93
- `))).length);let s=stripVTControlCharacters(i).length;r+s<process.stdout.columns?(r+=s,process.stdout.write(i)):(process.stdout.write(`
94
- ${J}${i.trimStart()}`),r=3+stripVTControlCharacters(i.trimStart()).length)}process.stdout.write(`
95
- `)},info:t=>x.message(t,{symbol:import_picocolors.default.blue(q)}),success:t=>x.message(t,{symbol:import_picocolors.default.green(D)}),step:t=>x.message(t,{symbol:import_picocolors.default.green(C)}),warn:t=>x.message(t,{symbol:import_picocolors.default.yellow(U)}),warning:t=>x.warn(t),error:t=>x.message(t,{symbol:import_picocolors.default.red(K)})},Y=({indicator:t=`dots`}={})=>{let n=V?[`◒`,`◐`,`◓`,`◑`]:[`•`,`o`,`O`,`0`],r=V?80:120,i=process.env.CI===`true`,s,c,a=!1,l$1=``,$$1,g$1=performance.now(),p$1=m$1=>{a&&N$1(m$1>1?`Something went wrong`:`Canceled`,m$1)},v$1=()=>p$1(2),f=()=>p$1(1),j=()=>{process.on(`uncaughtExceptionMonitor`,v$1),process.on(`unhandledRejection`,v$1),process.on(`SIGINT`,f),process.on(`SIGTERM`,f),process.on(`exit`,p$1)},E=()=>{process.removeListener(`uncaughtExceptionMonitor`,v$1),process.removeListener(`unhandledRejection`,v$1),process.removeListener(`SIGINT`,f),process.removeListener(`SIGTERM`,f),process.removeListener(`exit`,p$1)},B$1=()=>{if($$1===void 0)return;i&&process.stdout.write(`
96
- `);let m$1=$$1.split(`
97
- `);process.stdout.write(import_src.cursor.move(-999,m$1.length-1)),process.stdout.write(import_src.erase.down(m$1.length))},R$1=m$1=>m$1.replace(/\.+$/,``),O$1=m$1=>{let h$1=(performance.now()-m$1)/1e3,w$1=Math.floor(h$1/60),I$1=Math.floor(h$1%60);return w$1>0?`[${w$1}m ${I$1}s]`:`[${I$1}s]`},H$1=(m$1=``)=>{a=!0,s=fD(),l$1=R$1(m$1),g$1=performance.now(),process.stdout.write(`${import_picocolors.default.gray(o)}
98
- `);let h$1=0,w$1=0;j(),c=setInterval(()=>{if(i&&l$1===$$1)return;B$1(),$$1=l$1;let I$1=import_picocolors.default.magenta(n[h$1]);if(i)process.stdout.write(`${I$1} ${l$1}...`);else if(t===`timer`)process.stdout.write(`${I$1} ${l$1} ${O$1(g$1)}`);else{let z$1=`.`.repeat(Math.floor(w$1)).slice(0,3);process.stdout.write(`${I$1} ${l$1}${z$1}`)}h$1=h$1+1<n.length?h$1+1:0,w$1=w$1<n.length?w$1+.125:0},r)},N$1=(m$1=``,h$1=0)=>{a=!1,clearInterval(c),B$1();let w$1=h$1===0?import_picocolors.default.green(C):h$1===1?import_picocolors.default.red(L):import_picocolors.default.red(W);l$1=R$1(m$1??l$1),t===`timer`?process.stdout.write(`${w$1} ${l$1} ${O$1(g$1)}
99
- `):process.stdout.write(`${w$1} ${l$1}
100
- `),E(),s()};return{start:H$1,stop:N$1,message:(m$1=``)=>{l$1=R$1(m$1??l$1)}}},Ce=async(t,n)=>{let r={},i=Object.keys(t);for(let s of i){let c=t[s],a=await c({results:r})?.catch(l$1=>{throw l$1});if(typeof n?.onCancel==`function`&&pD(a)){r[s]=`canceled`,n.onCancel({results:r});continue}r[s]=a}return r},Te=async t=>{for(let n of t){if(n.enabled===!1)continue;let r=Y();r.start(n.title);let i=await n.task(r.message);r.stop(i||n.title)}};function toArr(any){return any==null?[]:Array.isArray(any)?any:[any]}function toVal(out,key,val,opts){var x$2,old=out[key],nxt=~opts.string.indexOf(key)?val==null||val===!0?``:String(val):typeof val==`boolean`?val:~opts.boolean.indexOf(key)?val===`false`?!1:val===`true`||(out._.push((x$2=+val,x$2*0==0?x$2:val)),!!val):(x$2=+val,x$2*0==0?x$2:val);out[key]=old==null?nxt:Array.isArray(old)?old.concat(nxt):[old,nxt]}function mri2(args,opts){args||=[],opts||={};var k$2,arr,arg,name,val,out={_:[]},i=0,j=0,idx=0,len=args.length;let alibi=opts.alias!==void 0,strict=opts.unknown!==void 0,defaults=opts.default!==void 0;if(opts.alias=opts.alias||{},opts.string=toArr(opts.string),opts.boolean=toArr(opts.boolean),alibi)for(k$2 in opts.alias)for(arr=opts.alias[k$2]=toArr(opts.alias[k$2]),i=0;i<arr.length;i++)(opts.alias[arr[i]]=arr.concat(k$2)).splice(i,1);for(i=opts.boolean.length;i-- >0;)for(arr=opts.alias[opts.boolean[i]]||[],j=arr.length;j-- >0;)opts.boolean.push(arr[j]);for(i=opts.string.length;i-- >0;)for(arr=opts.alias[opts.string[i]]||[],j=arr.length;j-- >0;)opts.string.push(arr[j]);if(defaults){for(k$2 in opts.default)if(name=typeof opts.default[k$2],arr=opts.alias[k$2]=opts.alias[k$2]||[],opts[name]!==void 0)for(opts[name].push(k$2),i=0;i<arr.length;i++)opts[name].push(arr[i])}let keys=strict?Object.keys(opts.alias):[];for(i=0;i<len;i++){if(arg=args[i],arg===`--`){out._=out._.concat(args.slice(++i));break}for(j=0;j<arg.length&&arg.charCodeAt(j)===45;j++);if(j===0)out._.push(arg);else if(arg.substring(j,j+3)===`no-`){if(name=arg.substring(j+3),strict&&!~keys.indexOf(name))return opts.unknown(arg);out[name]=!1}else{for(idx=j+1;idx<arg.length&&arg.charCodeAt(idx)!==61;idx++);for(name=arg.substring(j,idx),val=arg.substring(++idx)||i+1===len||(``+args[i+1]).charCodeAt(0)===45||args[++i],arr=j===2?[name]:name,idx=0;idx<arr.length;idx++){if(name=arr[idx],strict&&!~keys.indexOf(name))return opts.unknown(`-`.repeat(j)+name);toVal(out,name,idx+1<arr.length||val,opts)}}}if(defaults)for(k$2 in opts.default)out[k$2]===void 0&&(out[k$2]=opts.default[k$2]);if(alibi)for(k$2 in out)for(arr=opts.alias[k$2]||[];arr.length>0;)out[arr.shift()]=out[k$2];return out}const removeBrackets=v$1=>v$1.replace(/[<[].+/,``).trim(),findAllBrackets=v$1=>{let ANGLED_BRACKET_RE_GLOBAL=/<([^>]+)>/g,SQUARE_BRACKET_RE_GLOBAL=/\[([^\]]+)\]/g,res=[],parse$1=match$1=>{let variadic=!1,value=match$1[1];return value.startsWith(`...`)&&(value=value.slice(3),variadic=!0),{required:match$1[0].startsWith(`<`),value,variadic}},angledMatch;for(;angledMatch=ANGLED_BRACKET_RE_GLOBAL.exec(v$1);)res.push(parse$1(angledMatch));let squareMatch;for(;squareMatch=SQUARE_BRACKET_RE_GLOBAL.exec(v$1);)res.push(parse$1(squareMatch));return res},getMriOptions=options=>{let result={alias:{},boolean:[]};for(let[index,option]of options.entries())option.names.length>1&&(result.alias[option.names[0]]=option.names.slice(1)),option.isBoolean&&(option.negated&&options.some((o$1,i)=>i!==index&&o$1.names.some(name=>option.names.includes(name))&&typeof o$1.required==`boolean`)||result.boolean.push(option.names[0]));return result},findLongest=arr=>arr.sort((a,b$2)=>a.length>b$2.length?-1:1)[0],padRight=(str,length)=>str.length>=length?str:`${str}${` `.repeat(length-str.length)}`,camelcase=input=>input.replace(/([a-z])-([a-z])/g,(_$2,p1,p2)=>p1+p2.toUpperCase()),setDotProp=(obj,keys,val)=>{let i=0,length=keys.length,t=obj,x$2;for(;i<length;++i)x$2=t[keys[i]],t=t[keys[i]]=i===length-1?val:x$2??(~keys[i+1].indexOf(`.`)||!(+keys[i+1]>-1)?{}:[])},setByType=(obj,transforms)=>{for(let key of Object.keys(transforms)){let transform=transforms[key];transform.shouldTransform&&(obj[key]=Array.prototype.concat.call([],obj[key]),typeof transform.transformFunction==`function`&&(obj[key]=obj[key].map(transform.transformFunction)))}},getFileName=input=>{let m$1=/([^\\\/]+)$/.exec(input);return m$1?m$1[1]:``},camelcaseOptionName=name=>name.split(`.`).map((v$1,i)=>i===0?camelcase(v$1):v$1).join(`.`);var CACError=class extends Error{constructor(message$1){super(message$1),this.name=this.constructor.name,typeof Error.captureStackTrace==`function`?Error.captureStackTrace(this,this.constructor):this.stack=Error(message$1).stack}},Option=class{constructor(rawName,description,config){this.rawName=rawName,this.description=description,this.config=Object.assign({},config),rawName=rawName.replace(/\.\*/g,``),this.negated=!1,this.names=removeBrackets(rawName).split(`,`).map(v$1=>{let name=v$1.trim().replace(/^-{1,2}/,``);return name.startsWith(`no-`)&&(this.negated=!0,name=name.replace(/^no-/,``)),camelcaseOptionName(name)}).sort((a,b$2)=>a.length>b$2.length?1:-1),this.name=this.names[this.names.length-1],this.negated&&this.config.default==null&&(this.config.default=!0),rawName.includes(`<`)?this.required=!0:rawName.includes(`[`)?this.required=!1:this.isBoolean=!0}};const processArgs=process.argv,platformInfo=`${process.platform}-${process.arch} node-${process.version}`;var Command=class{constructor(rawName,description,config={},cli$1){this.rawName=rawName,this.description=description,this.config=config,this.cli=cli$1,this.options=[],this.aliasNames=[],this.name=removeBrackets(rawName),this.args=findAllBrackets(rawName),this.examples=[]}usage(text){return this.usageText=text,this}allowUnknownOptions(){return this.config.allowUnknownOptions=!0,this}ignoreOptionDefaultValue(){return this.config.ignoreOptionDefaultValue=!0,this}version(version$1,customFlags=`-v, --version`){return this.versionNumber=version$1,this.option(customFlags,`Display version number`),this}example(example){return this.examples.push(example),this}option(rawName,description,config){let option=new Option(rawName,description,config);return this.options.push(option),this}alias(name){return this.aliasNames.push(name),this}action(callback){return this.commandAction=callback,this}isMatched(name){return this.name===name||this.aliasNames.includes(name)}get isDefaultCommand(){return this.name===``||this.aliasNames.includes(`!`)}get isGlobalCommand(){return this instanceof GlobalCommand}hasOption(name){return name=name.split(`.`)[0],this.options.find(option=>option.names.includes(name))}outputHelp(){let{name,commands}=this.cli,{versionNumber,options:globalOptions,helpCallback}=this.cli.globalCommand,sections=[{body:`${name}${versionNumber?`/${versionNumber}`:``}`}];if(sections.push({title:`Usage`,body:` $ ${name} ${this.usageText||this.rawName}`}),(this.isGlobalCommand||this.isDefaultCommand)&&commands.length>0){let longestCommandName=findLongest(commands.map(command=>command.rawName));sections.push({title:`Commands`,body:commands.map(command=>` ${padRight(command.rawName,longestCommandName.length)} ${command.description}`).join(`
101
- `)}),sections.push({title:"For more info, run any command with the `--help` flag",body:commands.map(command=>` $ ${name}${command.name===``?``:` ${command.name}`} --help`).join(`
102
- `)})}let options=this.isGlobalCommand?globalOptions:[...this.options,...globalOptions||[]];if(!this.isGlobalCommand&&!this.isDefaultCommand&&(options=options.filter(option=>option.name!==`version`)),options.length>0){let longestOptionName=findLongest(options.map(option=>option.rawName));sections.push({title:`Options`,body:options.map(option=>` ${padRight(option.rawName,longestOptionName.length)} ${option.description} ${option.config.default===void 0?``:`(default: ${option.config.default})`}`).join(`
103
- `)})}this.examples.length>0&&sections.push({title:`Examples`,body:this.examples.map(example=>typeof example==`function`?example(name):example).join(`
104
- `)}),helpCallback&&(sections=helpCallback(sections)||sections),console.log(sections.map(section=>section.title?`${section.title}:
105
- ${section.body}`:section.body).join(`
106
-
107
- `))}outputVersion(){let{name}=this.cli,{versionNumber}=this.cli.globalCommand;versionNumber&&console.log(`${name}/${versionNumber} ${platformInfo}`)}checkRequiredArgs(){let minimalArgsCount=this.args.filter(arg=>arg.required).length;if(this.cli.args.length<minimalArgsCount)throw new CACError(`missing required args for command \`${this.rawName}\``)}checkUnknownOptions(){let{options,globalCommand}=this.cli;if(!this.config.allowUnknownOptions){for(let name of Object.keys(options))if(name!==`--`&&!this.hasOption(name)&&!globalCommand.hasOption(name))throw new CACError(`Unknown option \`${name.length>1?`--${name}`:`-${name}`}\``)}}checkOptionValue(){let{options:parsedOptions,globalCommand}=this.cli,options=[...globalCommand.options,...this.options];for(let option of options){let value=parsedOptions[option.name.split(`.`)[0]];if(option.required){let hasNegated=options.some(o$1=>o$1.negated&&o$1.names.includes(option.name));if(value===!0||value===!1&&!hasNegated)throw new CACError(`option \`${option.rawName}\` value is missing`)}}}},GlobalCommand=class extends Command{constructor(cli$1){super(`@@global@@`,``,{},cli$1)}},__assign=Object.assign,CAC=class extends EventEmitter{constructor(name=``){super(),this.name=name,this.commands=[],this.rawArgs=[],this.args=[],this.options={},this.globalCommand=new GlobalCommand(this),this.globalCommand.usage(`<command> [options]`)}usage(text){return this.globalCommand.usage(text),this}command(rawName,description,config){let command=new Command(rawName,description||``,config,this);return command.globalCommand=this.globalCommand,this.commands.push(command),command}option(rawName,description,config){return this.globalCommand.option(rawName,description,config),this}help(callback){return this.globalCommand.option(`-h, --help`,`Display this message`),this.globalCommand.helpCallback=callback,this.showHelpOnExit=!0,this}version(version$1,customFlags=`-v, --version`){return this.globalCommand.version(version$1,customFlags),this.showVersionOnExit=!0,this}example(example){return this.globalCommand.example(example),this}outputHelp(){this.matchedCommand?this.matchedCommand.outputHelp():this.globalCommand.outputHelp()}outputVersion(){this.globalCommand.outputVersion()}setParsedInfo({args,options},matchedCommand,matchedCommandName){return this.args=args,this.options=options,matchedCommand&&(this.matchedCommand=matchedCommand),matchedCommandName&&(this.matchedCommandName=matchedCommandName),this}unsetMatchedCommand(){this.matchedCommand=void 0,this.matchedCommandName=void 0}parse(argv=processArgs,{run=!0}={}){this.rawArgs=argv,this.name||=argv[1]?getFileName(argv[1]):`cli`;let shouldParse=!0;for(let command of this.commands){let parsed=this.mri(argv.slice(2),command),commandName=parsed.args[0];if(command.isMatched(commandName)){shouldParse=!1;let parsedInfo=__assign(__assign({},parsed),{args:parsed.args.slice(1)});this.setParsedInfo(parsedInfo,command,commandName),this.emit(`command:${commandName}`,command)}}if(shouldParse){for(let command of this.commands)if(command.name===``){shouldParse=!1;let parsed=this.mri(argv.slice(2),command);this.setParsedInfo(parsed,command),this.emit(`command:!`,command)}}if(shouldParse){let parsed=this.mri(argv.slice(2));this.setParsedInfo(parsed)}this.options.help&&this.showHelpOnExit&&(this.outputHelp(),run=!1,this.unsetMatchedCommand()),this.options.version&&this.showVersionOnExit&&this.matchedCommandName==null&&(this.outputVersion(),run=!1,this.unsetMatchedCommand());let parsedArgv={args:this.args,options:this.options};return run&&this.runMatchedCommand(),!this.matchedCommand&&this.args[0]&&this.emit(`command:*`),parsedArgv}mri(argv,command){let cliOptions=[...this.globalCommand.options,...command?command.options:[]],mriOptions=getMriOptions(cliOptions),argsAfterDoubleDashes=[],doubleDashesIndex=argv.indexOf(`--`);doubleDashesIndex>-1&&(argsAfterDoubleDashes=argv.slice(doubleDashesIndex+1),argv=argv.slice(0,doubleDashesIndex));let parsed=mri2(argv,mriOptions);parsed=Object.keys(parsed).reduce((res,name)=>__assign(__assign({},res),{[camelcaseOptionName(name)]:parsed[name]}),{_:[]});let args=parsed._,options={"--":argsAfterDoubleDashes},ignoreDefault=command&&command.config.ignoreOptionDefaultValue?command.config.ignoreOptionDefaultValue:this.globalCommand.config.ignoreOptionDefaultValue,transforms=Object.create(null);for(let cliOption of cliOptions){if(!ignoreDefault&&cliOption.config.default!==void 0)for(let name of cliOption.names)options[name]=cliOption.config.default;Array.isArray(cliOption.config.type)&&transforms[cliOption.name]===void 0&&(transforms[cliOption.name]=Object.create(null),transforms[cliOption.name].shouldTransform=!0,transforms[cliOption.name].transformFunction=cliOption.config.type[0])}for(let key of Object.keys(parsed))key!==`_`&&(setDotProp(options,key.split(`.`),parsed[key]),setByType(options,transforms));return{args,options}}runMatchedCommand(){let{args,options,matchedCommand:command}=this;if(!command||!command.commandAction)return;command.checkUnknownOptions(),command.checkOptionValue(),command.checkRequiredArgs();let actionArgs=[];return command.args.forEach((arg,index)=>{arg.variadic?actionArgs.push(args.slice(index)):actionArgs.push(args[index])}),actionArgs.push(options),command.commandAction.apply(this,actionArgs)}};const cac=(name=``)=>new CAC(name),daysInYear=365.2425,maxTime=10**8*24*60*60*1e3,millisecondsInWeek=6048e5,millisecondsInDay=864e5,millisecondsInMinute=6e4,millisecondsInHour=36e5,millisecondsInSecond=1e3,secondsInHour=3600,secondsInDay=3600*24,secondsInWeek=secondsInDay*7,secondsInYear=secondsInDay*365.2425,secondsInMonth=31556952/12,secondsInQuarter=2629746*3,constructFromSymbol=Symbol.for(`constructDateFrom`);function constructFrom(date,value){return typeof date==`function`?date(value):date&&typeof date==`object`&&constructFromSymbol in date?date[constructFromSymbol](value):date instanceof Date?new date.constructor(value):new Date(value)}function toDate(argument,context){return constructFrom(context||argument,argument)}function addDays(date,amount,options){let _date=toDate(date,options?.in);return isNaN(amount)?constructFrom(options?.in||date,NaN):(amount&&_date.setDate(_date.getDate()+amount),_date)}let defaultOptions={};function getDefaultOptions$1(){return defaultOptions}function startOfWeek(date,options){let defaultOptions$1=getDefaultOptions$1(),weekStartsOn=options?.weekStartsOn??options?.locale?.options?.weekStartsOn??defaultOptions$1.weekStartsOn??defaultOptions$1.locale?.options?.weekStartsOn??0,_date=toDate(date,options?.in),day=_date.getDay(),diff=(day<weekStartsOn?7:0)+day-weekStartsOn;return _date.setDate(_date.getDate()-diff),_date.setHours(0,0,0,0),_date}function startOfISOWeek(date,options){return startOfWeek(date,{...options,weekStartsOn:1})}function getISOWeekYear(date,options){let _date=toDate(date,options?.in),year=_date.getFullYear(),fourthOfJanuaryOfNextYear=constructFrom(_date,0);fourthOfJanuaryOfNextYear.setFullYear(year+1,0,4),fourthOfJanuaryOfNextYear.setHours(0,0,0,0);let startOfNextYear=startOfISOWeek(fourthOfJanuaryOfNextYear),fourthOfJanuaryOfThisYear=constructFrom(_date,0);fourthOfJanuaryOfThisYear.setFullYear(year,0,4),fourthOfJanuaryOfThisYear.setHours(0,0,0,0);let startOfThisYear=startOfISOWeek(fourthOfJanuaryOfThisYear);return _date.getTime()>=startOfNextYear.getTime()?year+1:_date.getTime()>=startOfThisYear.getTime()?year:year-1}function getTimezoneOffsetInMilliseconds(date){let _date=toDate(date),utcDate=new Date(Date.UTC(_date.getFullYear(),_date.getMonth(),_date.getDate(),_date.getHours(),_date.getMinutes(),_date.getSeconds(),_date.getMilliseconds()));return utcDate.setUTCFullYear(_date.getFullYear()),date-+utcDate}function normalizeDates(context,...dates){let normalize=constructFrom.bind(null,context||dates.find(date=>typeof date==`object`));return dates.map(normalize)}function startOfDay(date,options){let _date=toDate(date,options?.in);return _date.setHours(0,0,0,0),_date}function differenceInCalendarDays(laterDate,earlierDate,options){let[laterDate_,earlierDate_]=normalizeDates(options?.in,laterDate,earlierDate),laterStartOfDay=startOfDay(laterDate_),earlierStartOfDay=startOfDay(earlierDate_),laterTimestamp=+laterStartOfDay-getTimezoneOffsetInMilliseconds(laterStartOfDay),earlierTimestamp=+earlierStartOfDay-getTimezoneOffsetInMilliseconds(earlierStartOfDay);return Math.round((laterTimestamp-earlierTimestamp)/864e5)}function startOfISOWeekYear(date,options){let year=getISOWeekYear(date,options),fourthOfJanuary=constructFrom(options?.in||date,0);return fourthOfJanuary.setFullYear(year,0,4),fourthOfJanuary.setHours(0,0,0,0),startOfISOWeek(fourthOfJanuary)}function isDate(value){return value instanceof Date||typeof value==`object`&&Object.prototype.toString.call(value)===`[object Date]`}function isValid(date){return!(!isDate(date)&&typeof date!=`number`||isNaN(+toDate(date)))}function startOfYear(date,options){let date_=toDate(date,options?.in);return date_.setFullYear(date_.getFullYear(),0,1),date_.setHours(0,0,0,0),date_}const formatDistanceLocale={lessThanXSeconds:{one:`less than a second`,other:`less than {{count}} seconds`},xSeconds:{one:`1 second`,other:`{{count}} seconds`},halfAMinute:`half a minute`,lessThanXMinutes:{one:`less than a minute`,other:`less than {{count}} minutes`},xMinutes:{one:`1 minute`,other:`{{count}} minutes`},aboutXHours:{one:`about 1 hour`,other:`about {{count}} hours`},xHours:{one:`1 hour`,other:`{{count}} hours`},xDays:{one:`1 day`,other:`{{count}} days`},aboutXWeeks:{one:`about 1 week`,other:`about {{count}} weeks`},xWeeks:{one:`1 week`,other:`{{count}} weeks`},aboutXMonths:{one:`about 1 month`,other:`about {{count}} months`},xMonths:{one:`1 month`,other:`{{count}} months`},aboutXYears:{one:`about 1 year`,other:`about {{count}} years`},xYears:{one:`1 year`,other:`{{count}} years`},overXYears:{one:`over 1 year`,other:`over {{count}} years`},almostXYears:{one:`almost 1 year`,other:`almost {{count}} years`}},formatDistance=(token,count,options)=>{let result,tokenValue=formatDistanceLocale[token];return result=typeof tokenValue==`string`?tokenValue:count===1?tokenValue.one:tokenValue.other.replace(`{{count}}`,count.toString()),options?.addSuffix?options.comparison&&options.comparison>0?`in `+result:result+` ago`:result};function buildFormatLongFn(args){return(options={})=>{let width=options.width?String(options.width):args.defaultWidth;return args.formats[width]||args.formats[args.defaultWidth]}}const dateFormats={full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},timeFormats={full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},dateTimeFormats={full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},formatLong={date:buildFormatLongFn({formats:dateFormats,defaultWidth:`full`}),time:buildFormatLongFn({formats:timeFormats,defaultWidth:`full`}),dateTime:buildFormatLongFn({formats:dateTimeFormats,defaultWidth:`full`})},formatRelativeLocale={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},formatRelative=(token,_date,_baseDate,_options)=>formatRelativeLocale[token];function buildLocalizeFn(args){return(value,options)=>{let context=options?.context?String(options.context):`standalone`,valuesArray;if(context===`formatting`&&args.formattingValues){let defaultWidth=args.defaultFormattingWidth||args.defaultWidth,width=options?.width?String(options.width):defaultWidth;valuesArray=args.formattingValues[width]||args.formattingValues[defaultWidth]}else{let defaultWidth=args.defaultWidth,width=options?.width?String(options.width):args.defaultWidth;valuesArray=args.values[width]||args.values[defaultWidth]}let index=args.argumentCallback?args.argumentCallback(value):value;return valuesArray[index]}}const eraValues={narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},quarterValues={narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},monthValues={narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],wide:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},dayValues={narrow:[`S`,`M`,`T`,`W`,`T`,`F`,`S`],short:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],abbreviated:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],wide:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},dayPeriodValues={narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`}},formattingDayPeriodValues={narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`}},ordinalNumber=(dirtyNumber,_options)=>{let number=Number(dirtyNumber),rem100=number%100;if(rem100>20||rem100<10)switch(rem100%10){case 1:return number+`st`;case 2:return number+`nd`;case 3:return number+`rd`}return number+`th`},localize={ordinalNumber,era:buildLocalizeFn({values:eraValues,defaultWidth:`wide`}),quarter:buildLocalizeFn({values:quarterValues,defaultWidth:`wide`,argumentCallback:quarter=>quarter-1}),month:buildLocalizeFn({values:monthValues,defaultWidth:`wide`}),day:buildLocalizeFn({values:dayValues,defaultWidth:`wide`}),dayPeriod:buildLocalizeFn({values:dayPeriodValues,defaultWidth:`wide`,formattingValues:formattingDayPeriodValues,defaultFormattingWidth:`wide`})};function buildMatchFn(args){return(string,options={})=>{let width=options.width,matchPattern=width&&args.matchPatterns[width]||args.matchPatterns[args.defaultMatchWidth],matchResult=string.match(matchPattern);if(!matchResult)return null;let matchedString=matchResult[0],parsePatterns=width&&args.parsePatterns[width]||args.parsePatterns[args.defaultParseWidth],key=Array.isArray(parsePatterns)?findIndex(parsePatterns,pattern=>pattern.test(matchedString)):findKey(parsePatterns,pattern=>pattern.test(matchedString)),value;value=args.valueCallback?args.valueCallback(key):key,value=options.valueCallback?options.valueCallback(value):value;let rest=string.slice(matchedString.length);return{value,rest}}}function findKey(object,predicate){for(let key in object)if(Object.prototype.hasOwnProperty.call(object,key)&&predicate(object[key]))return key}function findIndex(array,predicate){for(let key=0;key<array.length;key++)if(predicate(array[key]))return key}function buildMatchPatternFn(args){return(string,options={})=>{let matchResult=string.match(args.matchPattern);if(!matchResult)return null;let matchedString=matchResult[0],parseResult=string.match(args.parsePattern);if(!parseResult)return null;let value=args.valueCallback?args.valueCallback(parseResult[0]):parseResult[0];value=options.valueCallback?options.valueCallback(value):value;let rest=string.slice(matchedString.length);return{value,rest}}}const matchOrdinalNumberPattern=/^(\d+)(th|st|nd|rd)?/i,parseOrdinalNumberPattern=/\d+/i,matchEraPatterns={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},parseEraPatterns={any:[/^b/i,/^(a|c)/i]},matchQuarterPatterns={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},parseQuarterPatterns={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},parseMonthPatterns={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},matchDayPatterns={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},parseDayPatterns={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},matchDayPeriodPatterns={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},parseDayPeriodPatterns={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},match={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern,parsePattern:parseOrdinalNumberPattern,valueCallback:value=>parseInt(value,10)}),era:buildMatchFn({matchPatterns:matchEraPatterns,defaultMatchWidth:`wide`,parsePatterns:parseEraPatterns,defaultParseWidth:`any`}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns,defaultMatchWidth:`wide`,parsePatterns:parseQuarterPatterns,defaultParseWidth:`any`,valueCallback:index=>index+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns,defaultMatchWidth:`wide`,parsePatterns:parseMonthPatterns,defaultParseWidth:`any`}),day:buildMatchFn({matchPatterns:matchDayPatterns,defaultMatchWidth:`wide`,parsePatterns:parseDayPatterns,defaultParseWidth:`any`}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns,defaultMatchWidth:`any`,parsePatterns:parseDayPeriodPatterns,defaultParseWidth:`any`})},enUS={code:`en-US`,formatDistance,formatLong,formatRelative,localize,match,options:{weekStartsOn:0,firstWeekContainsDate:1}};function getDayOfYear(date,options){let _date=toDate(date,options?.in);return differenceInCalendarDays(_date,startOfYear(_date))+1}function getISOWeek(date,options){let _date=toDate(date,options?.in),diff=startOfISOWeek(_date)-+startOfISOWeekYear(_date);return Math.round(diff/millisecondsInWeek)+1}function getWeekYear(date,options){let _date=toDate(date,options?.in),year=_date.getFullYear(),defaultOptions$1=getDefaultOptions$1(),firstWeekContainsDate=options?.firstWeekContainsDate??options?.locale?.options?.firstWeekContainsDate??defaultOptions$1.firstWeekContainsDate??defaultOptions$1.locale?.options?.firstWeekContainsDate??1,firstWeekOfNextYear=constructFrom(options?.in||date,0);firstWeekOfNextYear.setFullYear(year+1,0,firstWeekContainsDate),firstWeekOfNextYear.setHours(0,0,0,0);let startOfNextYear=startOfWeek(firstWeekOfNextYear,options),firstWeekOfThisYear=constructFrom(options?.in||date,0);firstWeekOfThisYear.setFullYear(year,0,firstWeekContainsDate),firstWeekOfThisYear.setHours(0,0,0,0);let startOfThisYear=startOfWeek(firstWeekOfThisYear,options);return+_date>=+startOfNextYear?year+1:+_date>=+startOfThisYear?year:year-1}function startOfWeekYear(date,options){let defaultOptions$1=getDefaultOptions$1(),firstWeekContainsDate=options?.firstWeekContainsDate??options?.locale?.options?.firstWeekContainsDate??defaultOptions$1.firstWeekContainsDate??defaultOptions$1.locale?.options?.firstWeekContainsDate??1,year=getWeekYear(date,options),firstWeek=constructFrom(options?.in||date,0);return firstWeek.setFullYear(year,0,firstWeekContainsDate),firstWeek.setHours(0,0,0,0),startOfWeek(firstWeek,options)}function getWeek(date,options){let _date=toDate(date,options?.in),diff=startOfWeek(_date,options)-+startOfWeekYear(_date,options);return Math.round(diff/millisecondsInWeek)+1}function addLeadingZeros(number,targetLength){return(number<0?`-`:``)+Math.abs(number).toString().padStart(targetLength,`0`)}const lightFormatters={y(date,token){let signedYear=date.getFullYear(),year=signedYear>0?signedYear:1-signedYear;return addLeadingZeros(token===`yy`?year%100:year,token.length)},M(date,token){let month=date.getMonth();return token===`M`?String(month+1):addLeadingZeros(month+1,2)},d(date,token){return addLeadingZeros(date.getDate(),token.length)},a(date,token){let dayPeriodEnumValue=date.getHours()/12>=1?`pm`:`am`;switch(token){case`a`:case`aa`:return dayPeriodEnumValue.toUpperCase();case`aaa`:return dayPeriodEnumValue;case`aaaaa`:return dayPeriodEnumValue[0];case`aaaa`:default:return dayPeriodEnumValue===`am`?`a.m.`:`p.m.`}},h(date,token){return addLeadingZeros(date.getHours()%12||12,token.length)},H(date,token){return addLeadingZeros(date.getHours(),token.length)},m(date,token){return addLeadingZeros(date.getMinutes(),token.length)},s(date,token){return addLeadingZeros(date.getSeconds(),token.length)},S(date,token){let numberOfDigits=token.length,milliseconds=date.getMilliseconds();return addLeadingZeros(Math.trunc(milliseconds*10**(numberOfDigits-3)),token.length)}},dayPeriodEnum={am:`am`,pm:`pm`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},formatters={G:function(date,token,localize$1){let era=date.getFullYear()>0?1:0;switch(token){case`G`:case`GG`:case`GGG`:return localize$1.era(era,{width:`abbreviated`});case`GGGGG`:return localize$1.era(era,{width:`narrow`});case`GGGG`:default:return localize$1.era(era,{width:`wide`})}},y:function(date,token,localize$1){if(token===`yo`){let signedYear=date.getFullYear(),year=signedYear>0?signedYear:1-signedYear;return localize$1.ordinalNumber(year,{unit:`year`})}return lightFormatters.y(date,token)},Y:function(date,token,localize$1,options){let signedWeekYear=getWeekYear(date,options),weekYear=signedWeekYear>0?signedWeekYear:1-signedWeekYear;return token===`YY`?addLeadingZeros(weekYear%100,2):token===`Yo`?localize$1.ordinalNumber(weekYear,{unit:`year`}):addLeadingZeros(weekYear,token.length)},R:function(date,token){return addLeadingZeros(getISOWeekYear(date),token.length)},u:function(date,token){return addLeadingZeros(date.getFullYear(),token.length)},Q:function(date,token,localize$1){let quarter=Math.ceil((date.getMonth()+1)/3);switch(token){case`Q`:return String(quarter);case`QQ`:return addLeadingZeros(quarter,2);case`Qo`:return localize$1.ordinalNumber(quarter,{unit:`quarter`});case`QQQ`:return localize$1.quarter(quarter,{width:`abbreviated`,context:`formatting`});case`QQQQQ`:return localize$1.quarter(quarter,{width:`narrow`,context:`formatting`});case`QQQQ`:default:return localize$1.quarter(quarter,{width:`wide`,context:`formatting`})}},q:function(date,token,localize$1){let quarter=Math.ceil((date.getMonth()+1)/3);switch(token){case`q`:return String(quarter);case`qq`:return addLeadingZeros(quarter,2);case`qo`:return localize$1.ordinalNumber(quarter,{unit:`quarter`});case`qqq`:return localize$1.quarter(quarter,{width:`abbreviated`,context:`standalone`});case`qqqqq`:return localize$1.quarter(quarter,{width:`narrow`,context:`standalone`});case`qqqq`:default:return localize$1.quarter(quarter,{width:`wide`,context:`standalone`})}},M:function(date,token,localize$1){let month=date.getMonth();switch(token){case`M`:case`MM`:return lightFormatters.M(date,token);case`Mo`:return localize$1.ordinalNumber(month+1,{unit:`month`});case`MMM`:return localize$1.month(month,{width:`abbreviated`,context:`formatting`});case`MMMMM`:return localize$1.month(month,{width:`narrow`,context:`formatting`});case`MMMM`:default:return localize$1.month(month,{width:`wide`,context:`formatting`})}},L:function(date,token,localize$1){let month=date.getMonth();switch(token){case`L`:return String(month+1);case`LL`:return addLeadingZeros(month+1,2);case`Lo`:return localize$1.ordinalNumber(month+1,{unit:`month`});case`LLL`:return localize$1.month(month,{width:`abbreviated`,context:`standalone`});case`LLLLL`:return localize$1.month(month,{width:`narrow`,context:`standalone`});case`LLLL`:default:return localize$1.month(month,{width:`wide`,context:`standalone`})}},w:function(date,token,localize$1,options){let week=getWeek(date,options);return token===`wo`?localize$1.ordinalNumber(week,{unit:`week`}):addLeadingZeros(week,token.length)},I:function(date,token,localize$1){let isoWeek=getISOWeek(date);return token===`Io`?localize$1.ordinalNumber(isoWeek,{unit:`week`}):addLeadingZeros(isoWeek,token.length)},d:function(date,token,localize$1){return token===`do`?localize$1.ordinalNumber(date.getDate(),{unit:`date`}):lightFormatters.d(date,token)},D:function(date,token,localize$1){let dayOfYear=getDayOfYear(date);return token===`Do`?localize$1.ordinalNumber(dayOfYear,{unit:`dayOfYear`}):addLeadingZeros(dayOfYear,token.length)},E:function(date,token,localize$1){let dayOfWeek=date.getDay();switch(token){case`E`:case`EE`:case`EEE`:return localize$1.day(dayOfWeek,{width:`abbreviated`,context:`formatting`});case`EEEEE`:return localize$1.day(dayOfWeek,{width:`narrow`,context:`formatting`});case`EEEEEE`:return localize$1.day(dayOfWeek,{width:`short`,context:`formatting`});case`EEEE`:default:return localize$1.day(dayOfWeek,{width:`wide`,context:`formatting`})}},e:function(date,token,localize$1,options){let dayOfWeek=date.getDay(),localDayOfWeek=(dayOfWeek-options.weekStartsOn+8)%7||7;switch(token){case`e`:return String(localDayOfWeek);case`ee`:return addLeadingZeros(localDayOfWeek,2);case`eo`:return localize$1.ordinalNumber(localDayOfWeek,{unit:`day`});case`eee`:return localize$1.day(dayOfWeek,{width:`abbreviated`,context:`formatting`});case`eeeee`:return localize$1.day(dayOfWeek,{width:`narrow`,context:`formatting`});case`eeeeee`:return localize$1.day(dayOfWeek,{width:`short`,context:`formatting`});case`eeee`:default:return localize$1.day(dayOfWeek,{width:`wide`,context:`formatting`})}},c:function(date,token,localize$1,options){let dayOfWeek=date.getDay(),localDayOfWeek=(dayOfWeek-options.weekStartsOn+8)%7||7;switch(token){case`c`:return String(localDayOfWeek);case`cc`:return addLeadingZeros(localDayOfWeek,token.length);case`co`:return localize$1.ordinalNumber(localDayOfWeek,{unit:`day`});case`ccc`:return localize$1.day(dayOfWeek,{width:`abbreviated`,context:`standalone`});case`ccccc`:return localize$1.day(dayOfWeek,{width:`narrow`,context:`standalone`});case`cccccc`:return localize$1.day(dayOfWeek,{width:`short`,context:`standalone`});case`cccc`:default:return localize$1.day(dayOfWeek,{width:`wide`,context:`standalone`})}},i:function(date,token,localize$1){let dayOfWeek=date.getDay(),isoDayOfWeek=dayOfWeek===0?7:dayOfWeek;switch(token){case`i`:return String(isoDayOfWeek);case`ii`:return addLeadingZeros(isoDayOfWeek,token.length);case`io`:return localize$1.ordinalNumber(isoDayOfWeek,{unit:`day`});case`iii`:return localize$1.day(dayOfWeek,{width:`abbreviated`,context:`formatting`});case`iiiii`:return localize$1.day(dayOfWeek,{width:`narrow`,context:`formatting`});case`iiiiii`:return localize$1.day(dayOfWeek,{width:`short`,context:`formatting`});case`iiii`:default:return localize$1.day(dayOfWeek,{width:`wide`,context:`formatting`})}},a:function(date,token,localize$1){let dayPeriodEnumValue=date.getHours()/12>=1?`pm`:`am`;switch(token){case`a`:case`aa`:return localize$1.dayPeriod(dayPeriodEnumValue,{width:`abbreviated`,context:`formatting`});case`aaa`:return localize$1.dayPeriod(dayPeriodEnumValue,{width:`abbreviated`,context:`formatting`}).toLowerCase();case`aaaaa`:return localize$1.dayPeriod(dayPeriodEnumValue,{width:`narrow`,context:`formatting`});case`aaaa`:default:return localize$1.dayPeriod(dayPeriodEnumValue,{width:`wide`,context:`formatting`})}},b:function(date,token,localize$1){let hours=date.getHours(),dayPeriodEnumValue;switch(dayPeriodEnumValue=hours===12?dayPeriodEnum.noon:hours===0?dayPeriodEnum.midnight:hours/12>=1?`pm`:`am`,token){case`b`:case`bb`:return localize$1.dayPeriod(dayPeriodEnumValue,{width:`abbreviated`,context:`formatting`});case`bbb`:return localize$1.dayPeriod(dayPeriodEnumValue,{width:`abbreviated`,context:`formatting`}).toLowerCase();case`bbbbb`:return localize$1.dayPeriod(dayPeriodEnumValue,{width:`narrow`,context:`formatting`});case`bbbb`:default:return localize$1.dayPeriod(dayPeriodEnumValue,{width:`wide`,context:`formatting`})}},B:function(date,token,localize$1){let hours=date.getHours(),dayPeriodEnumValue;switch(dayPeriodEnumValue=hours>=17?dayPeriodEnum.evening:hours>=12?dayPeriodEnum.afternoon:hours>=4?dayPeriodEnum.morning:dayPeriodEnum.night,token){case`B`:case`BB`:case`BBB`:return localize$1.dayPeriod(dayPeriodEnumValue,{width:`abbreviated`,context:`formatting`});case`BBBBB`:return localize$1.dayPeriod(dayPeriodEnumValue,{width:`narrow`,context:`formatting`});case`BBBB`:default:return localize$1.dayPeriod(dayPeriodEnumValue,{width:`wide`,context:`formatting`})}},h:function(date,token,localize$1){if(token===`ho`){let hours=date.getHours()%12;return hours===0&&(hours=12),localize$1.ordinalNumber(hours,{unit:`hour`})}return lightFormatters.h(date,token)},H:function(date,token,localize$1){return token===`Ho`?localize$1.ordinalNumber(date.getHours(),{unit:`hour`}):lightFormatters.H(date,token)},K:function(date,token,localize$1){let hours=date.getHours()%12;return token===`Ko`?localize$1.ordinalNumber(hours,{unit:`hour`}):addLeadingZeros(hours,token.length)},k:function(date,token,localize$1){let hours=date.getHours();return hours===0&&(hours=24),token===`ko`?localize$1.ordinalNumber(hours,{unit:`hour`}):addLeadingZeros(hours,token.length)},m:function(date,token,localize$1){return token===`mo`?localize$1.ordinalNumber(date.getMinutes(),{unit:`minute`}):lightFormatters.m(date,token)},s:function(date,token,localize$1){return token===`so`?localize$1.ordinalNumber(date.getSeconds(),{unit:`second`}):lightFormatters.s(date,token)},S:function(date,token){return lightFormatters.S(date,token)},X:function(date,token,_localize){let timezoneOffset=date.getTimezoneOffset();if(timezoneOffset===0)return`Z`;switch(token){case`X`:return formatTimezoneWithOptionalMinutes(timezoneOffset);case`XXXX`:case`XX`:return formatTimezone(timezoneOffset);case`XXXXX`:case`XXX`:default:return formatTimezone(timezoneOffset,`:`)}},x:function(date,token,_localize){let timezoneOffset=date.getTimezoneOffset();switch(token){case`x`:return formatTimezoneWithOptionalMinutes(timezoneOffset);case`xxxx`:case`xx`:return formatTimezone(timezoneOffset);case`xxxxx`:case`xxx`:default:return formatTimezone(timezoneOffset,`:`)}},O:function(date,token,_localize){let timezoneOffset=date.getTimezoneOffset();switch(token){case`O`:case`OO`:case`OOO`:return`GMT`+formatTimezoneShort(timezoneOffset,`:`);case`OOOO`:default:return`GMT`+formatTimezone(timezoneOffset,`:`)}},z:function(date,token,_localize){let timezoneOffset=date.getTimezoneOffset();switch(token){case`z`:case`zz`:case`zzz`:return`GMT`+formatTimezoneShort(timezoneOffset,`:`);case`zzzz`:default:return`GMT`+formatTimezone(timezoneOffset,`:`)}},t:function(date,token,_localize){return addLeadingZeros(Math.trunc(date/1e3),token.length)},T:function(date,token,_localize){return addLeadingZeros(+date,token.length)}};function formatTimezoneShort(offset,delimiter=``){let sign=offset>0?`-`:`+`,absOffset=Math.abs(offset),hours=Math.trunc(absOffset/60),minutes=absOffset%60;return minutes===0?sign+String(hours):sign+String(hours)+delimiter+addLeadingZeros(minutes,2)}function formatTimezoneWithOptionalMinutes(offset,delimiter){return offset%60==0?(offset>0?`-`:`+`)+addLeadingZeros(Math.abs(offset)/60,2):formatTimezone(offset,delimiter)}function formatTimezone(offset,delimiter=``){let sign=offset>0?`-`:`+`,absOffset=Math.abs(offset),hours=addLeadingZeros(Math.trunc(absOffset/60),2),minutes=addLeadingZeros(absOffset%60,2);return sign+hours+delimiter+minutes}const dateLongFormatter=(pattern,formatLong$1)=>{switch(pattern){case`P`:return formatLong$1.date({width:`short`});case`PP`:return formatLong$1.date({width:`medium`});case`PPP`:return formatLong$1.date({width:`long`});case`PPPP`:default:return formatLong$1.date({width:`full`})}},timeLongFormatter=(pattern,formatLong$1)=>{switch(pattern){case`p`:return formatLong$1.time({width:`short`});case`pp`:return formatLong$1.time({width:`medium`});case`ppp`:return formatLong$1.time({width:`long`});case`pppp`:default:return formatLong$1.time({width:`full`})}},dateTimeLongFormatter=(pattern,formatLong$1)=>{let matchResult=pattern.match(/(P+)(p+)?/)||[],datePattern=matchResult[1],timePattern=matchResult[2];if(!timePattern)return dateLongFormatter(pattern,formatLong$1);let dateTimeFormat;switch(datePattern){case`P`:dateTimeFormat=formatLong$1.dateTime({width:`short`});break;case`PP`:dateTimeFormat=formatLong$1.dateTime({width:`medium`});break;case`PPP`:dateTimeFormat=formatLong$1.dateTime({width:`long`});break;case`PPPP`:default:dateTimeFormat=formatLong$1.dateTime({width:`full`});break}return dateTimeFormat.replace(`{{date}}`,dateLongFormatter(datePattern,formatLong$1)).replace(`{{time}}`,timeLongFormatter(timePattern,formatLong$1))},longFormatters={p:timeLongFormatter,P:dateTimeLongFormatter},dayOfYearTokenRE=/^D+$/,weekYearTokenRE=/^Y+$/,throwTokens=[`D`,`DD`,`YY`,`YYYY`];function isProtectedDayOfYearToken(token){return dayOfYearTokenRE.test(token)}function isProtectedWeekYearToken(token){return weekYearTokenRE.test(token)}function warnOrThrowProtectedError(token,format$1,input){let _message=message(token,format$1,input);if(console.warn(_message),throwTokens.includes(token))throw RangeError(_message)}function message(token,format$1,input){let subject=token[0]===`Y`?`years`:`days of the month`;return`Use \`${token.toLowerCase()}\` instead of \`${token}\` (in \`${format$1}\`) for formatting ${subject} to the input \`${input}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const formattingTokensRegExp$1=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,longFormattingTokensRegExp$1=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,escapedStringRegExp$1=/^'([^]*?)'?$/,doubleQuoteRegExp$1=/''/g,unescapedLatinCharacterRegExp$1=/[a-zA-Z]/;function format(date,formatStr,options){let defaultOptions$1=getDefaultOptions$1(),locale=options?.locale??defaultOptions$1.locale??enUS,firstWeekContainsDate=options?.firstWeekContainsDate??options?.locale?.options?.firstWeekContainsDate??defaultOptions$1.firstWeekContainsDate??defaultOptions$1.locale?.options?.firstWeekContainsDate??1,weekStartsOn=options?.weekStartsOn??options?.locale?.options?.weekStartsOn??defaultOptions$1.weekStartsOn??defaultOptions$1.locale?.options?.weekStartsOn??0,originalDate=toDate(date,options?.in);if(!isValid(originalDate))throw RangeError(`Invalid time value`);let parts=formatStr.match(longFormattingTokensRegExp$1).map(substring=>{let firstCharacter=substring[0];if(firstCharacter===`p`||firstCharacter===`P`){let longFormatter=longFormatters[firstCharacter];return longFormatter(substring,locale.formatLong)}return substring}).join(``).match(formattingTokensRegExp$1).map(substring=>{if(substring===`''`)return{isToken:!1,value:`'`};let firstCharacter=substring[0];if(firstCharacter===`'`)return{isToken:!1,value:cleanEscapedString$1(substring)};if(formatters[firstCharacter])return{isToken:!0,value:substring};if(firstCharacter.match(unescapedLatinCharacterRegExp$1))throw RangeError("Format string contains an unescaped latin alphabet character `"+firstCharacter+"`");return{isToken:!1,value:substring}});locale.localize.preprocessor&&(parts=locale.localize.preprocessor(originalDate,parts));let formatterOptions={firstWeekContainsDate,weekStartsOn,locale};return parts.map(part=>{if(!part.isToken)return part.value;let token=part.value;(!options?.useAdditionalWeekYearTokens&&isProtectedWeekYearToken(token)||!options?.useAdditionalDayOfYearTokens&&isProtectedDayOfYearToken(token))&&warnOrThrowProtectedError(token,formatStr,String(date));let formatter=formatters[token[0]];return formatter(originalDate,token,locale.localize,formatterOptions)}).join(``)}function cleanEscapedString$1(input){let matched=input.match(escapedStringRegExp$1);return matched?matched[1].replace(doubleQuoteRegExp$1,`'`):input}function getDefaultOptions(){return Object.assign({},getDefaultOptions$1())}function getISODay(date,options){let day=toDate(date,options?.in).getDay();return day===0?7:day}function transpose(date,constructor){let date_=isConstructor(constructor)?new constructor(0):constructFrom(constructor,0);return date_.setFullYear(date.getFullYear(),date.getMonth(),date.getDate()),date_.setHours(date.getHours(),date.getMinutes(),date.getSeconds(),date.getMilliseconds()),date_}function isConstructor(constructor){return typeof constructor==`function`&&constructor.prototype?.constructor===constructor}const TIMEZONE_UNIT_PRIORITY=10;var Setter=class{subPriority=0;validate(_utcDate,_options){return!0}},ValueSetter=class extends Setter{constructor(value,validateValue,setValue,priority,subPriority){super(),this.value=value,this.validateValue=validateValue,this.setValue=setValue,this.priority=priority,subPriority&&(this.subPriority=subPriority)}validate(date,options){return this.validateValue(date,this.value,options)}set(date,flags,options){return this.setValue(date,flags,this.value,options)}},DateTimezoneSetter=class extends Setter{priority=10;subPriority=-1;constructor(context,reference){super(),this.context=context||(date=>constructFrom(reference,date))}set(date,flags){return flags.timestampIsSet?date:constructFrom(date,transpose(date,this.context))}},Parser=class{run(dateString,token,match$1,options){let result=this.parse(dateString,token,match$1,options);return result?{setter:new ValueSetter(result.value,this.validate,this.set,this.priority,this.subPriority),rest:result.rest}:null}validate(_utcDate,_value,_options){return!0}},EraParser=class extends Parser{priority=140;parse(dateString,token,match$1){switch(token){case`G`:case`GG`:case`GGG`:return match$1.era(dateString,{width:`abbreviated`})||match$1.era(dateString,{width:`narrow`});case`GGGGG`:return match$1.era(dateString,{width:`narrow`});case`GGGG`:default:return match$1.era(dateString,{width:`wide`})||match$1.era(dateString,{width:`abbreviated`})||match$1.era(dateString,{width:`narrow`})}}set(date,flags,value){return flags.era=value,date.setFullYear(value,0,1),date.setHours(0,0,0,0),date}incompatibleTokens=[`R`,`u`,`t`,`T`]};const numericPatterns={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},timezonePatterns={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function mapValue(parseFnResult,mapFn){return parseFnResult&&{value:mapFn(parseFnResult.value),rest:parseFnResult.rest}}function parseNumericPattern(pattern,dateString){let matchResult=dateString.match(pattern);return matchResult?{value:parseInt(matchResult[0],10),rest:dateString.slice(matchResult[0].length)}:null}function parseTimezonePattern(pattern,dateString){let matchResult=dateString.match(pattern);if(!matchResult)return null;if(matchResult[0]===`Z`)return{value:0,rest:dateString.slice(1)};let sign=matchResult[1]===`+`?1:-1,hours=matchResult[2]?parseInt(matchResult[2],10):0,minutes=matchResult[3]?parseInt(matchResult[3],10):0,seconds=matchResult[5]?parseInt(matchResult[5],10):0;return{value:sign*(hours*36e5+minutes*6e4+seconds*1e3),rest:dateString.slice(matchResult[0].length)}}function parseAnyDigitsSigned(dateString){return parseNumericPattern(numericPatterns.anyDigitsSigned,dateString)}function parseNDigits(n,dateString){switch(n){case 1:return parseNumericPattern(numericPatterns.singleDigit,dateString);case 2:return parseNumericPattern(numericPatterns.twoDigits,dateString);case 3:return parseNumericPattern(numericPatterns.threeDigits,dateString);case 4:return parseNumericPattern(numericPatterns.fourDigits,dateString);default:return parseNumericPattern(RegExp(`^\\d{1,`+n+`}`),dateString)}}function parseNDigitsSigned(n,dateString){switch(n){case 1:return parseNumericPattern(numericPatterns.singleDigitSigned,dateString);case 2:return parseNumericPattern(numericPatterns.twoDigitsSigned,dateString);case 3:return parseNumericPattern(numericPatterns.threeDigitsSigned,dateString);case 4:return parseNumericPattern(numericPatterns.fourDigitsSigned,dateString);default:return parseNumericPattern(RegExp(`^-?\\d{1,`+n+`}`),dateString)}}function dayPeriodEnumToHours(dayPeriod){switch(dayPeriod){case`morning`:return 4;case`evening`:return 17;case`pm`:case`noon`:case`afternoon`:return 12;case`am`:case`midnight`:case`night`:default:return 0}}function normalizeTwoDigitYear(twoDigitYear,currentYear){let isCommonEra=currentYear>0,absCurrentYear=isCommonEra?currentYear:1-currentYear,result;if(absCurrentYear<=50)result=twoDigitYear||100;else{let rangeEnd=absCurrentYear+50,rangeEndCentury=Math.trunc(rangeEnd/100)*100,isPreviousCentury=twoDigitYear>=rangeEnd%100;result=twoDigitYear+rangeEndCentury-(isPreviousCentury?100:0)}return isCommonEra?result:1-result}function isLeapYearIndex(year){return year%400==0||year%4==0&&year%100!=0}var YearParser=class extends Parser{priority=130;incompatibleTokens=[`Y`,`R`,`u`,`w`,`I`,`i`,`e`,`c`,`t`,`T`];parse(dateString,token,match$1){let valueCallback=year=>({year,isTwoDigitYear:token===`yy`});switch(token){case`y`:return mapValue(parseNDigits(4,dateString),valueCallback);case`yo`:return mapValue(match$1.ordinalNumber(dateString,{unit:`year`}),valueCallback);default:return mapValue(parseNDigits(token.length,dateString),valueCallback)}}validate(_date,value){return value.isTwoDigitYear||value.year>0}set(date,flags,value){let currentYear=date.getFullYear();if(value.isTwoDigitYear){let normalizedTwoDigitYear=normalizeTwoDigitYear(value.year,currentYear);return date.setFullYear(normalizedTwoDigitYear,0,1),date.setHours(0,0,0,0),date}let year=!(`era`in flags)||flags.era===1?value.year:1-value.year;return date.setFullYear(year,0,1),date.setHours(0,0,0,0),date}},LocalWeekYearParser=class extends Parser{priority=130;parse(dateString,token,match$1){let valueCallback=year=>({year,isTwoDigitYear:token===`YY`});switch(token){case`Y`:return mapValue(parseNDigits(4,dateString),valueCallback);case`Yo`:return mapValue(match$1.ordinalNumber(dateString,{unit:`year`}),valueCallback);default:return mapValue(parseNDigits(token.length,dateString),valueCallback)}}validate(_date,value){return value.isTwoDigitYear||value.year>0}set(date,flags,value,options){let currentYear=getWeekYear(date,options);if(value.isTwoDigitYear){let normalizedTwoDigitYear=normalizeTwoDigitYear(value.year,currentYear);return date.setFullYear(normalizedTwoDigitYear,0,options.firstWeekContainsDate),date.setHours(0,0,0,0),startOfWeek(date,options)}let year=!(`era`in flags)||flags.era===1?value.year:1-value.year;return date.setFullYear(year,0,options.firstWeekContainsDate),date.setHours(0,0,0,0),startOfWeek(date,options)}incompatibleTokens=[`y`,`R`,`u`,`Q`,`q`,`M`,`L`,`I`,`d`,`D`,`i`,`t`,`T`]},ISOWeekYearParser=class extends Parser{priority=130;parse(dateString,token){return parseNDigitsSigned(token===`R`?4:token.length,dateString)}set(date,_flags,value){let firstWeekOfYear=constructFrom(date,0);return firstWeekOfYear.setFullYear(value,0,4),firstWeekOfYear.setHours(0,0,0,0),startOfISOWeek(firstWeekOfYear)}incompatibleTokens=[`G`,`y`,`Y`,`u`,`Q`,`q`,`M`,`L`,`w`,`d`,`D`,`e`,`c`,`t`,`T`]},ExtendedYearParser=class extends Parser{priority=130;parse(dateString,token){return parseNDigitsSigned(token===`u`?4:token.length,dateString)}set(date,_flags,value){return date.setFullYear(value,0,1),date.setHours(0,0,0,0),date}incompatibleTokens=[`G`,`y`,`Y`,`R`,`w`,`I`,`i`,`e`,`c`,`t`,`T`]},QuarterParser=class extends Parser{priority=120;parse(dateString,token,match$1){switch(token){case`Q`:case`QQ`:return parseNDigits(token.length,dateString);case`Qo`:return match$1.ordinalNumber(dateString,{unit:`quarter`});case`QQQ`:return match$1.quarter(dateString,{width:`abbreviated`,context:`formatting`})||match$1.quarter(dateString,{width:`narrow`,context:`formatting`});case`QQQQQ`:return match$1.quarter(dateString,{width:`narrow`,context:`formatting`});case`QQQQ`:default:return match$1.quarter(dateString,{width:`wide`,context:`formatting`})||match$1.quarter(dateString,{width:`abbreviated`,context:`formatting`})||match$1.quarter(dateString,{width:`narrow`,context:`formatting`})}}validate(_date,value){return value>=1&&value<=4}set(date,_flags,value){return date.setMonth((value-1)*3,1),date.setHours(0,0,0,0),date}incompatibleTokens=[`Y`,`R`,`q`,`M`,`L`,`w`,`I`,`d`,`D`,`i`,`e`,`c`,`t`,`T`]},StandAloneQuarterParser=class extends Parser{priority=120;parse(dateString,token,match$1){switch(token){case`q`:case`qq`:return parseNDigits(token.length,dateString);case`qo`:return match$1.ordinalNumber(dateString,{unit:`quarter`});case`qqq`:return match$1.quarter(dateString,{width:`abbreviated`,context:`standalone`})||match$1.quarter(dateString,{width:`narrow`,context:`standalone`});case`qqqqq`:return match$1.quarter(dateString,{width:`narrow`,context:`standalone`});case`qqqq`:default:return match$1.quarter(dateString,{width:`wide`,context:`standalone`})||match$1.quarter(dateString,{width:`abbreviated`,context:`standalone`})||match$1.quarter(dateString,{width:`narrow`,context:`standalone`})}}validate(_date,value){return value>=1&&value<=4}set(date,_flags,value){return date.setMonth((value-1)*3,1),date.setHours(0,0,0,0),date}incompatibleTokens=[`Y`,`R`,`Q`,`M`,`L`,`w`,`I`,`d`,`D`,`i`,`e`,`c`,`t`,`T`]},MonthParser=class extends Parser{incompatibleTokens=[`Y`,`R`,`q`,`Q`,`L`,`w`,`I`,`D`,`i`,`e`,`c`,`t`,`T`];priority=110;parse(dateString,token,match$1){let valueCallback=value=>value-1;switch(token){case`M`:return mapValue(parseNumericPattern(numericPatterns.month,dateString),valueCallback);case`MM`:return mapValue(parseNDigits(2,dateString),valueCallback);case`Mo`:return mapValue(match$1.ordinalNumber(dateString,{unit:`month`}),valueCallback);case`MMM`:return match$1.month(dateString,{width:`abbreviated`,context:`formatting`})||match$1.month(dateString,{width:`narrow`,context:`formatting`});case`MMMMM`:return match$1.month(dateString,{width:`narrow`,context:`formatting`});case`MMMM`:default:return match$1.month(dateString,{width:`wide`,context:`formatting`})||match$1.month(dateString,{width:`abbreviated`,context:`formatting`})||match$1.month(dateString,{width:`narrow`,context:`formatting`})}}validate(_date,value){return value>=0&&value<=11}set(date,_flags,value){return date.setMonth(value,1),date.setHours(0,0,0,0),date}},StandAloneMonthParser=class extends Parser{priority=110;parse(dateString,token,match$1){let valueCallback=value=>value-1;switch(token){case`L`:return mapValue(parseNumericPattern(numericPatterns.month,dateString),valueCallback);case`LL`:return mapValue(parseNDigits(2,dateString),valueCallback);case`Lo`:return mapValue(match$1.ordinalNumber(dateString,{unit:`month`}),valueCallback);case`LLL`:return match$1.month(dateString,{width:`abbreviated`,context:`standalone`})||match$1.month(dateString,{width:`narrow`,context:`standalone`});case`LLLLL`:return match$1.month(dateString,{width:`narrow`,context:`standalone`});case`LLLL`:default:return match$1.month(dateString,{width:`wide`,context:`standalone`})||match$1.month(dateString,{width:`abbreviated`,context:`standalone`})||match$1.month(dateString,{width:`narrow`,context:`standalone`})}}validate(_date,value){return value>=0&&value<=11}set(date,_flags,value){return date.setMonth(value,1),date.setHours(0,0,0,0),date}incompatibleTokens=[`Y`,`R`,`q`,`Q`,`M`,`w`,`I`,`D`,`i`,`e`,`c`,`t`,`T`]};function setWeek(date,week,options){let date_=toDate(date,options?.in),diff=getWeek(date_,options)-week;return date_.setDate(date_.getDate()-diff*7),toDate(date_,options?.in)}var LocalWeekParser=class extends Parser{priority=100;parse(dateString,token,match$1){switch(token){case`w`:return parseNumericPattern(numericPatterns.week,dateString);case`wo`:return match$1.ordinalNumber(dateString,{unit:`week`});default:return parseNDigits(token.length,dateString)}}validate(_date,value){return value>=1&&value<=53}set(date,_flags,value,options){return startOfWeek(setWeek(date,value,options),options)}incompatibleTokens=[`y`,`R`,`u`,`q`,`Q`,`M`,`L`,`I`,`d`,`D`,`i`,`t`,`T`]};function setISOWeek(date,week,options){let _date=toDate(date,options?.in),diff=getISOWeek(_date,options)-week;return _date.setDate(_date.getDate()-diff*7),_date}var ISOWeekParser=class extends Parser{priority=100;parse(dateString,token,match$1){switch(token){case`I`:return parseNumericPattern(numericPatterns.week,dateString);case`Io`:return match$1.ordinalNumber(dateString,{unit:`week`});default:return parseNDigits(token.length,dateString)}}validate(_date,value){return value>=1&&value<=53}set(date,_flags,value){return startOfISOWeek(setISOWeek(date,value))}incompatibleTokens=[`y`,`Y`,`u`,`q`,`Q`,`M`,`L`,`w`,`d`,`D`,`e`,`c`,`t`,`T`]};const DAYS_IN_MONTH=[31,28,31,30,31,30,31,31,30,31,30,31],DAYS_IN_MONTH_LEAP_YEAR=[31,29,31,30,31,30,31,31,30,31,30,31];var DateParser=class extends Parser{priority=90;subPriority=1;parse(dateString,token,match$1){switch(token){case`d`:return parseNumericPattern(numericPatterns.date,dateString);case`do`:return match$1.ordinalNumber(dateString,{unit:`date`});default:return parseNDigits(token.length,dateString)}}validate(date,value){let isLeapYear=isLeapYearIndex(date.getFullYear()),month=date.getMonth();return isLeapYear?value>=1&&value<=DAYS_IN_MONTH_LEAP_YEAR[month]:value>=1&&value<=DAYS_IN_MONTH[month]}set(date,_flags,value){return date.setDate(value),date.setHours(0,0,0,0),date}incompatibleTokens=[`Y`,`R`,`q`,`Q`,`w`,`I`,`D`,`i`,`e`,`c`,`t`,`T`]},DayOfYearParser=class extends Parser{priority=90;subpriority=1;parse(dateString,token,match$1){switch(token){case`D`:case`DD`:return parseNumericPattern(numericPatterns.dayOfYear,dateString);case`Do`:return match$1.ordinalNumber(dateString,{unit:`date`});default:return parseNDigits(token.length,dateString)}}validate(date,value){return isLeapYearIndex(date.getFullYear())?value>=1&&value<=366:value>=1&&value<=365}set(date,_flags,value){return date.setMonth(0,value),date.setHours(0,0,0,0),date}incompatibleTokens=[`Y`,`R`,`q`,`Q`,`M`,`L`,`w`,`I`,`d`,`E`,`i`,`e`,`c`,`t`,`T`]};function setDay(date,day,options){let defaultOptions$1=getDefaultOptions$1(),weekStartsOn=options?.weekStartsOn??options?.locale?.options?.weekStartsOn??defaultOptions$1.weekStartsOn??defaultOptions$1.locale?.options?.weekStartsOn??0,date_=toDate(date,options?.in),currentDay=date_.getDay(),dayIndex=(day%7+7)%7,delta=7-weekStartsOn;return addDays(date_,day<0||day>6?day-(currentDay+delta)%7:(dayIndex+delta)%7-(currentDay+delta)%7,options)}var DayParser=class extends Parser{priority=90;parse(dateString,token,match$1){switch(token){case`E`:case`EE`:case`EEE`:return match$1.day(dateString,{width:`abbreviated`,context:`formatting`})||match$1.day(dateString,{width:`short`,context:`formatting`})||match$1.day(dateString,{width:`narrow`,context:`formatting`});case`EEEEE`:return match$1.day(dateString,{width:`narrow`,context:`formatting`});case`EEEEEE`:return match$1.day(dateString,{width:`short`,context:`formatting`})||match$1.day(dateString,{width:`narrow`,context:`formatting`});case`EEEE`:default:return match$1.day(dateString,{width:`wide`,context:`formatting`})||match$1.day(dateString,{width:`abbreviated`,context:`formatting`})||match$1.day(dateString,{width:`short`,context:`formatting`})||match$1.day(dateString,{width:`narrow`,context:`formatting`})}}validate(_date,value){return value>=0&&value<=6}set(date,_flags,value,options){return date=setDay(date,value,options),date.setHours(0,0,0,0),date}incompatibleTokens=[`D`,`i`,`e`,`c`,`t`,`T`]},LocalDayParser=class extends Parser{priority=90;parse(dateString,token,match$1,options){let valueCallback=value=>{let wholeWeekDays=Math.floor((value-1)/7)*7;return(value+options.weekStartsOn+6)%7+wholeWeekDays};switch(token){case`e`:case`ee`:return mapValue(parseNDigits(token.length,dateString),valueCallback);case`eo`:return mapValue(match$1.ordinalNumber(dateString,{unit:`day`}),valueCallback);case`eee`:return match$1.day(dateString,{width:`abbreviated`,context:`formatting`})||match$1.day(dateString,{width:`short`,context:`formatting`})||match$1.day(dateString,{width:`narrow`,context:`formatting`});case`eeeee`:return match$1.day(dateString,{width:`narrow`,context:`formatting`});case`eeeeee`:return match$1.day(dateString,{width:`short`,context:`formatting`})||match$1.day(dateString,{width:`narrow`,context:`formatting`});case`eeee`:default:return match$1.day(dateString,{width:`wide`,context:`formatting`})||match$1.day(dateString,{width:`abbreviated`,context:`formatting`})||match$1.day(dateString,{width:`short`,context:`formatting`})||match$1.day(dateString,{width:`narrow`,context:`formatting`})}}validate(_date,value){return value>=0&&value<=6}set(date,_flags,value,options){return date=setDay(date,value,options),date.setHours(0,0,0,0),date}incompatibleTokens=[`y`,`R`,`u`,`q`,`Q`,`M`,`L`,`I`,`d`,`D`,`E`,`i`,`c`,`t`,`T`]},StandAloneLocalDayParser=class extends Parser{priority=90;parse(dateString,token,match$1,options){let valueCallback=value=>{let wholeWeekDays=Math.floor((value-1)/7)*7;return(value+options.weekStartsOn+6)%7+wholeWeekDays};switch(token){case`c`:case`cc`:return mapValue(parseNDigits(token.length,dateString),valueCallback);case`co`:return mapValue(match$1.ordinalNumber(dateString,{unit:`day`}),valueCallback);case`ccc`:return match$1.day(dateString,{width:`abbreviated`,context:`standalone`})||match$1.day(dateString,{width:`short`,context:`standalone`})||match$1.day(dateString,{width:`narrow`,context:`standalone`});case`ccccc`:return match$1.day(dateString,{width:`narrow`,context:`standalone`});case`cccccc`:return match$1.day(dateString,{width:`short`,context:`standalone`})||match$1.day(dateString,{width:`narrow`,context:`standalone`});case`cccc`:default:return match$1.day(dateString,{width:`wide`,context:`standalone`})||match$1.day(dateString,{width:`abbreviated`,context:`standalone`})||match$1.day(dateString,{width:`short`,context:`standalone`})||match$1.day(dateString,{width:`narrow`,context:`standalone`})}}validate(_date,value){return value>=0&&value<=6}set(date,_flags,value,options){return date=setDay(date,value,options),date.setHours(0,0,0,0),date}incompatibleTokens=[`y`,`R`,`u`,`q`,`Q`,`M`,`L`,`I`,`d`,`D`,`E`,`i`,`e`,`t`,`T`]};function setISODay(date,day,options){let date_=toDate(date,options?.in);return addDays(date_,day-getISODay(date_,options),options)}var ISODayParser=class extends Parser{priority=90;parse(dateString,token,match$1){let valueCallback=value=>value===0?7:value;switch(token){case`i`:case`ii`:return parseNDigits(token.length,dateString);case`io`:return match$1.ordinalNumber(dateString,{unit:`day`});case`iii`:return mapValue(match$1.day(dateString,{width:`abbreviated`,context:`formatting`})||match$1.day(dateString,{width:`short`,context:`formatting`})||match$1.day(dateString,{width:`narrow`,context:`formatting`}),valueCallback);case`iiiii`:return mapValue(match$1.day(dateString,{width:`narrow`,context:`formatting`}),valueCallback);case`iiiiii`:return mapValue(match$1.day(dateString,{width:`short`,context:`formatting`})||match$1.day(dateString,{width:`narrow`,context:`formatting`}),valueCallback);case`iiii`:default:return mapValue(match$1.day(dateString,{width:`wide`,context:`formatting`})||match$1.day(dateString,{width:`abbreviated`,context:`formatting`})||match$1.day(dateString,{width:`short`,context:`formatting`})||match$1.day(dateString,{width:`narrow`,context:`formatting`}),valueCallback)}}validate(_date,value){return value>=1&&value<=7}set(date,_flags,value){return date=setISODay(date,value),date.setHours(0,0,0,0),date}incompatibleTokens=[`y`,`Y`,`u`,`q`,`Q`,`M`,`L`,`w`,`d`,`D`,`E`,`e`,`c`,`t`,`T`]},AMPMParser=class extends Parser{priority=80;parse(dateString,token,match$1){switch(token){case`a`:case`aa`:case`aaa`:return match$1.dayPeriod(dateString,{width:`abbreviated`,context:`formatting`})||match$1.dayPeriod(dateString,{width:`narrow`,context:`formatting`});case`aaaaa`:return match$1.dayPeriod(dateString,{width:`narrow`,context:`formatting`});case`aaaa`:default:return match$1.dayPeriod(dateString,{width:`wide`,context:`formatting`})||match$1.dayPeriod(dateString,{width:`abbreviated`,context:`formatting`})||match$1.dayPeriod(dateString,{width:`narrow`,context:`formatting`})}}set(date,_flags,value){return date.setHours(dayPeriodEnumToHours(value),0,0,0),date}incompatibleTokens=[`b`,`B`,`H`,`k`,`t`,`T`]},AMPMMidnightParser=class extends Parser{priority=80;parse(dateString,token,match$1){switch(token){case`b`:case`bb`:case`bbb`:return match$1.dayPeriod(dateString,{width:`abbreviated`,context:`formatting`})||match$1.dayPeriod(dateString,{width:`narrow`,context:`formatting`});case`bbbbb`:return match$1.dayPeriod(dateString,{width:`narrow`,context:`formatting`});case`bbbb`:default:return match$1.dayPeriod(dateString,{width:`wide`,context:`formatting`})||match$1.dayPeriod(dateString,{width:`abbreviated`,context:`formatting`})||match$1.dayPeriod(dateString,{width:`narrow`,context:`formatting`})}}set(date,_flags,value){return date.setHours(dayPeriodEnumToHours(value),0,0,0),date}incompatibleTokens=[`a`,`B`,`H`,`k`,`t`,`T`]},DayPeriodParser=class extends Parser{priority=80;parse(dateString,token,match$1){switch(token){case`B`:case`BB`:case`BBB`:return match$1.dayPeriod(dateString,{width:`abbreviated`,context:`formatting`})||match$1.dayPeriod(dateString,{width:`narrow`,context:`formatting`});case`BBBBB`:return match$1.dayPeriod(dateString,{width:`narrow`,context:`formatting`});case`BBBB`:default:return match$1.dayPeriod(dateString,{width:`wide`,context:`formatting`})||match$1.dayPeriod(dateString,{width:`abbreviated`,context:`formatting`})||match$1.dayPeriod(dateString,{width:`narrow`,context:`formatting`})}}set(date,_flags,value){return date.setHours(dayPeriodEnumToHours(value),0,0,0),date}incompatibleTokens=[`a`,`b`,`t`,`T`]},Hour1to12Parser=class extends Parser{priority=70;parse(dateString,token,match$1){switch(token){case`h`:return parseNumericPattern(numericPatterns.hour12h,dateString);case`ho`:return match$1.ordinalNumber(dateString,{unit:`hour`});default:return parseNDigits(token.length,dateString)}}validate(_date,value){return value>=1&&value<=12}set(date,_flags,value){let isPM=date.getHours()>=12;return isPM&&value<12?date.setHours(value+12,0,0,0):!isPM&&value===12?date.setHours(0,0,0,0):date.setHours(value,0,0,0),date}incompatibleTokens=[`H`,`K`,`k`,`t`,`T`]},Hour0to23Parser=class extends Parser{priority=70;parse(dateString,token,match$1){switch(token){case`H`:return parseNumericPattern(numericPatterns.hour23h,dateString);case`Ho`:return match$1.ordinalNumber(dateString,{unit:`hour`});default:return parseNDigits(token.length,dateString)}}validate(_date,value){return value>=0&&value<=23}set(date,_flags,value){return date.setHours(value,0,0,0),date}incompatibleTokens=[`a`,`b`,`h`,`K`,`k`,`t`,`T`]},Hour0To11Parser=class extends Parser{priority=70;parse(dateString,token,match$1){switch(token){case`K`:return parseNumericPattern(numericPatterns.hour11h,dateString);case`Ko`:return match$1.ordinalNumber(dateString,{unit:`hour`});default:return parseNDigits(token.length,dateString)}}validate(_date,value){return value>=0&&value<=11}set(date,_flags,value){return date.getHours()>=12&&value<12?date.setHours(value+12,0,0,0):date.setHours(value,0,0,0),date}incompatibleTokens=[`h`,`H`,`k`,`t`,`T`]},Hour1To24Parser=class extends Parser{priority=70;parse(dateString,token,match$1){switch(token){case`k`:return parseNumericPattern(numericPatterns.hour24h,dateString);case`ko`:return match$1.ordinalNumber(dateString,{unit:`hour`});default:return parseNDigits(token.length,dateString)}}validate(_date,value){return value>=1&&value<=24}set(date,_flags,value){let hours=value<=24?value%24:value;return date.setHours(hours,0,0,0),date}incompatibleTokens=[`a`,`b`,`h`,`H`,`K`,`t`,`T`]},MinuteParser=class extends Parser{priority=60;parse(dateString,token,match$1){switch(token){case`m`:return parseNumericPattern(numericPatterns.minute,dateString);case`mo`:return match$1.ordinalNumber(dateString,{unit:`minute`});default:return parseNDigits(token.length,dateString)}}validate(_date,value){return value>=0&&value<=59}set(date,_flags,value){return date.setMinutes(value,0,0),date}incompatibleTokens=[`t`,`T`]},SecondParser=class extends Parser{priority=50;parse(dateString,token,match$1){switch(token){case`s`:return parseNumericPattern(numericPatterns.second,dateString);case`so`:return match$1.ordinalNumber(dateString,{unit:`second`});default:return parseNDigits(token.length,dateString)}}validate(_date,value){return value>=0&&value<=59}set(date,_flags,value){return date.setSeconds(value,0),date}incompatibleTokens=[`t`,`T`]},FractionOfSecondParser=class extends Parser{priority=30;parse(dateString,token){return mapValue(parseNDigits(token.length,dateString),value=>Math.trunc(value*10**(-token.length+3)))}set(date,_flags,value){return date.setMilliseconds(value),date}incompatibleTokens=[`t`,`T`]},ISOTimezoneWithZParser=class extends Parser{priority=10;parse(dateString,token){switch(token){case`X`:return parseTimezonePattern(timezonePatterns.basicOptionalMinutes,dateString);case`XX`:return parseTimezonePattern(timezonePatterns.basic,dateString);case`XXXX`:return parseTimezonePattern(timezonePatterns.basicOptionalSeconds,dateString);case`XXXXX`:return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds,dateString);case`XXX`:default:return parseTimezonePattern(timezonePatterns.extended,dateString)}}set(date,flags,value){return flags.timestampIsSet?date:constructFrom(date,date.getTime()-getTimezoneOffsetInMilliseconds(date)-value)}incompatibleTokens=[`t`,`T`,`x`]},ISOTimezoneParser=class extends Parser{priority=10;parse(dateString,token){switch(token){case`x`:return parseTimezonePattern(timezonePatterns.basicOptionalMinutes,dateString);case`xx`:return parseTimezonePattern(timezonePatterns.basic,dateString);case`xxxx`:return parseTimezonePattern(timezonePatterns.basicOptionalSeconds,dateString);case`xxxxx`:return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds,dateString);case`xxx`:default:return parseTimezonePattern(timezonePatterns.extended,dateString)}}set(date,flags,value){return flags.timestampIsSet?date:constructFrom(date,date.getTime()-getTimezoneOffsetInMilliseconds(date)-value)}incompatibleTokens=[`t`,`T`,`X`]},TimestampSecondsParser=class extends Parser{priority=40;parse(dateString){return parseAnyDigitsSigned(dateString)}set(date,_flags,value){return[constructFrom(date,value*1e3),{timestampIsSet:!0}]}incompatibleTokens=`*`},TimestampMillisecondsParser=class extends Parser{priority=20;parse(dateString){return parseAnyDigitsSigned(dateString)}set(date,_flags,value){return[constructFrom(date,value),{timestampIsSet:!0}]}incompatibleTokens=`*`};const parsers={G:new EraParser,y:new YearParser,Y:new LocalWeekYearParser,R:new ISOWeekYearParser,u:new ExtendedYearParser,Q:new QuarterParser,q:new StandAloneQuarterParser,M:new MonthParser,L:new StandAloneMonthParser,w:new LocalWeekParser,I:new ISOWeekParser,d:new DateParser,D:new DayOfYearParser,E:new DayParser,e:new LocalDayParser,c:new StandAloneLocalDayParser,i:new ISODayParser,a:new AMPMParser,b:new AMPMMidnightParser,B:new DayPeriodParser,h:new Hour1to12Parser,H:new Hour0to23Parser,K:new Hour0To11Parser,k:new Hour1To24Parser,m:new MinuteParser,s:new SecondParser,S:new FractionOfSecondParser,X:new ISOTimezoneWithZParser,x:new ISOTimezoneParser,t:new TimestampSecondsParser,T:new TimestampMillisecondsParser},formattingTokensRegExp=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,longFormattingTokensRegExp=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,escapedStringRegExp=/^'([^]*?)'?$/,doubleQuoteRegExp=/''/g,notWhitespaceRegExp=/\S/,unescapedLatinCharacterRegExp=/[a-zA-Z]/;function parse(dateStr,formatStr,referenceDate,options){let invalidDate=()=>constructFrom(options?.in||referenceDate,NaN),defaultOptions$1=getDefaultOptions(),locale=options?.locale??defaultOptions$1.locale??enUS,firstWeekContainsDate=options?.firstWeekContainsDate??options?.locale?.options?.firstWeekContainsDate??defaultOptions$1.firstWeekContainsDate??defaultOptions$1.locale?.options?.firstWeekContainsDate??1,weekStartsOn=options?.weekStartsOn??options?.locale?.options?.weekStartsOn??defaultOptions$1.weekStartsOn??defaultOptions$1.locale?.options?.weekStartsOn??0;if(!formatStr)return dateStr?invalidDate():toDate(referenceDate,options?.in);let subFnOptions={firstWeekContainsDate,weekStartsOn,locale},setters=[new DateTimezoneSetter(options?.in,referenceDate)],tokens=formatStr.match(longFormattingTokensRegExp).map(substring=>{let firstCharacter=substring[0];if(firstCharacter in longFormatters){let longFormatter=longFormatters[firstCharacter];return longFormatter(substring,locale.formatLong)}return substring}).join(``).match(formattingTokensRegExp),usedTokens=[];for(let token of tokens){!options?.useAdditionalWeekYearTokens&&isProtectedWeekYearToken(token)&&warnOrThrowProtectedError(token,formatStr,dateStr),!options?.useAdditionalDayOfYearTokens&&isProtectedDayOfYearToken(token)&&warnOrThrowProtectedError(token,formatStr,dateStr);let firstCharacter=token[0],parser=parsers[firstCharacter];if(parser){let{incompatibleTokens}=parser;if(Array.isArray(incompatibleTokens)){let incompatibleToken=usedTokens.find(usedToken=>incompatibleTokens.includes(usedToken.token)||usedToken.token===firstCharacter);if(incompatibleToken)throw RangeError(`The format string mustn't contain \`${incompatibleToken.fullToken}\` and \`${token}\` at the same time`)}else if(parser.incompatibleTokens===`*`&&usedTokens.length>0)throw RangeError(`The format string mustn't contain \`${token}\` and any other token at the same time`);usedTokens.push({token:firstCharacter,fullToken:token});let parseResult=parser.run(dateStr,token,locale.match,subFnOptions);if(!parseResult)return invalidDate();setters.push(parseResult.setter),dateStr=parseResult.rest}else{if(firstCharacter.match(unescapedLatinCharacterRegExp))throw RangeError("Format string contains an unescaped latin alphabet character `"+firstCharacter+"`");if(token===`''`?token=`'`:firstCharacter===`'`&&(token=cleanEscapedString(token)),dateStr.indexOf(token)===0)dateStr=dateStr.slice(token.length);else return invalidDate()}}if(dateStr.length>0&&notWhitespaceRegExp.test(dateStr))return invalidDate();let uniquePrioritySetters=setters.map(setter=>setter.priority).sort((a,b$2)=>b$2-a).filter((priority,index,array)=>array.indexOf(priority)===index).map(priority=>setters.filter(setter=>setter.priority===priority).sort((a,b$2)=>b$2.subPriority-a.subPriority)).map(setterArray=>setterArray[0]),date=toDate(referenceDate,options?.in);if(isNaN(+date))return invalidDate();let flags={};for(let setter of uniquePrioritySetters){if(!setter.validate(date,subFnOptions))return invalidDate();let result=setter.set(date,flags,subFnOptions);Array.isArray(result)?(date=result[0],Object.assign(flags,result[1])):date=result}return date}function cleanEscapedString(input){return input.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp,`'`)}var version=`0.7.0`,require_kind_of=__commonJSMin(((exports,module)=>{var toString=Object.prototype.toString;module.exports=function(val){if(val===void 0)return`undefined`;if(val===null)return`null`;var type=typeof val;if(type===`boolean`)return`boolean`;if(type===`string`)return`string`;if(type===`number`)return`number`;if(type===`symbol`)return`symbol`;if(type===`function`)return isGeneratorFn(val)?`generatorfunction`:`function`;if(isArray(val))return`array`;if(isBuffer(val))return`buffer`;if(isArguments(val))return`arguments`;if(isDate(val))return`date`;if(isError(val))return`error`;if(isRegexp(val))return`regexp`;switch(ctorName(val)){case`Symbol`:return`symbol`;case`Promise`:return`promise`;case`WeakMap`:return`weakmap`;case`WeakSet`:return`weakset`;case`Map`:return`map`;case`Set`:return`set`;case`Int8Array`:return`int8array`;case`Uint8Array`:return`uint8array`;case`Uint8ClampedArray`:return`uint8clampedarray`;case`Int16Array`:return`int16array`;case`Uint16Array`:return`uint16array`;case`Int32Array`:return`int32array`;case`Uint32Array`:return`uint32array`;case`Float32Array`:return`float32array`;case`Float64Array`:return`float64array`}if(isGeneratorObj(val))return`generator`;switch(type=toString.call(val),type){case`[object Object]`:return`object`;case`[object Map Iterator]`:return`mapiterator`;case`[object Set Iterator]`:return`setiterator`;case`[object String Iterator]`:return`stringiterator`;case`[object Array Iterator]`:return`arrayiterator`}return type.slice(8,-1).toLowerCase().replace(/\s/g,``)};function ctorName(val){return typeof val.constructor==`function`?val.constructor.name:null}function isArray(val){return Array.isArray?Array.isArray(val):val instanceof Array}function isError(val){return val instanceof Error||typeof val.message==`string`&&val.constructor&&typeof val.constructor.stackTraceLimit==`number`}function isDate(val){return val instanceof Date?!0:typeof val.toDateString==`function`&&typeof val.getDate==`function`&&typeof val.setDate==`function`}function isRegexp(val){return val instanceof RegExp?!0:typeof val.flags==`string`&&typeof val.ignoreCase==`boolean`&&typeof val.multiline==`boolean`&&typeof val.global==`boolean`}function isGeneratorFn(name,val){return ctorName(name)===`GeneratorFunction`}function isGeneratorObj(val){return typeof val.throw==`function`&&typeof val.return==`function`&&typeof val.next==`function`}function isArguments(val){try{if(typeof val.length==`number`&&typeof val.callee==`function`)return!0}catch(err){if(err.message.indexOf(`callee`)!==-1)return!0}return!1}function isBuffer(val){return val.constructor&&typeof val.constructor.isBuffer==`function`?val.constructor.isBuffer(val):!1}})),require_is_extendable=__commonJSMin(((exports,module)=>{module.exports=function(val){return val!=null&&(typeof val==`object`||typeof val==`function`)}})),require_extend_shallow=__commonJSMin(((exports,module)=>{var isObject=require_is_extendable();module.exports=function(o$1){isObject(o$1)||(o$1={});for(var len=arguments.length,i=1;i<len;i++){var obj=arguments[i];isObject(obj)&&assign(o$1,obj)}return o$1};function assign(a,b$2){for(var key in b$2)hasOwn(b$2,key)&&(a[key]=b$2[key])}function hasOwn(obj,key){return Object.prototype.hasOwnProperty.call(obj,key)}})),require_section_matter=__commonJSMin(((exports,module)=>{var typeOf=require_kind_of(),extend=require_extend_shallow();module.exports=function(input,options){typeof options==`function`&&(options={parse:options});var file=toObject(input),opts=extend({},{section_delimiter:`---`,parse:identity},options),delim=opts.section_delimiter,lines=file.content.split(/\r?\n/),sections=null,section=createSection(),content=[],stack=[];function initSections(val){file.content=val,sections=[],content=[]}function closeSection(val){stack.length&&(section.key=getKey(stack[0],delim),section.content=val,opts.parse(section,sections),sections.push(section),section=createSection(),content=[],stack=[])}for(var i=0;i<lines.length;i++){var line=lines[i],len=stack.length,ln=line.trim();if(isDelimiter(ln,delim)){if(ln.length===3&&i!==0){if(len===0||len===2){content.push(line);continue}stack.push(ln),section.data=content.join(`
108
- `),content=[];continue}sections===null&&initSections(content.join(`
109
- `)),len===2&&closeSection(content.join(`
110
- `)),stack.push(ln);continue}content.push(line)}return sections===null?initSections(content.join(`
111
- `)):closeSection(content.join(`
112
- `)),file.sections=sections,file};function isDelimiter(line,delim){return!(line.slice(0,delim.length)!==delim||line.charAt(delim.length+1)===delim.slice(-1))}function toObject(input){if(typeOf(input)!==`object`&&(input={content:input}),typeof input.content!=`string`&&!isBuffer(input.content))throw TypeError(`expected a buffer or string`);return input.content=input.content.toString(),input.sections=[],input}function getKey(val,delim){return val?val.slice(delim.length).trim():``}function createSection(){return{key:``,data:``,content:``}}function identity(val){return val}function isBuffer(val){return val&&val.constructor&&typeof val.constructor.isBuffer==`function`?val.constructor.isBuffer(val):!1}})),require_common=__commonJSMin(((exports,module)=>{function isNothing(subject){return subject==null}function isObject(subject){return typeof subject==`object`&&!!subject}function toArray(sequence){return Array.isArray(sequence)?sequence:isNothing(sequence)?[]:[sequence]}function extend(target,source){var index,length,key,sourceKeys;if(source)for(sourceKeys=Object.keys(source),index=0,length=sourceKeys.length;index<length;index+=1)key=sourceKeys[index],target[key]=source[key];return target}function repeat(string,count){var result=``,cycle;for(cycle=0;cycle<count;cycle+=1)result+=string;return result}function isNegativeZero(number){return number===0&&1/number==-1/0}module.exports.isNothing=isNothing,module.exports.isObject=isObject,module.exports.toArray=toArray,module.exports.repeat=repeat,module.exports.isNegativeZero=isNegativeZero,module.exports.extend=extend})),require_exception=__commonJSMin(((exports,module)=>{function YAMLException(reason,mark){Error.call(this),this.name=`YAMLException`,this.reason=reason,this.mark=mark,this.message=(this.reason||`(unknown reason)`)+(this.mark?` `+this.mark.toString():``),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack||``}YAMLException.prototype=Object.create(Error.prototype),YAMLException.prototype.constructor=YAMLException,YAMLException.prototype.toString=function(compact){var result=this.name+`: `;return result+=this.reason||`(unknown reason)`,!compact&&this.mark&&(result+=` `+this.mark.toString()),result},module.exports=YAMLException})),require_mark=__commonJSMin(((exports,module)=>{var common=require_common();function Mark(name,buffer,position,line,column){this.name=name,this.buffer=buffer,this.position=position,this.line=line,this.column=column}Mark.prototype.getSnippet=function(indent,maxLength){var head,start,tail,end,snippet;if(!this.buffer)return null;for(indent||=4,maxLength||=75,head=``,start=this.position;start>0&&`\0\r
113
- …\u2028\u2029`.indexOf(this.buffer.charAt(start-1))===-1;)if(--start,this.position-start>maxLength/2-1){head=` ... `,start+=5;break}for(tail=``,end=this.position;end<this.buffer.length&&`\0\r
114
- …\u2028\u2029`.indexOf(this.buffer.charAt(end))===-1;)if(end+=1,end-this.position>maxLength/2-1){tail=` ... `,end-=5;break}return snippet=this.buffer.slice(start,end),common.repeat(` `,indent)+head+snippet+tail+`
115
- `+common.repeat(` `,indent+this.position-start+head.length)+`^`},Mark.prototype.toString=function(compact){var snippet,where=``;return this.name&&(where+=`in "`+this.name+`" `),where+=`at line `+(this.line+1)+`, column `+(this.column+1),compact||(snippet=this.getSnippet(),snippet&&(where+=`:
116
- `+snippet)),where},module.exports=Mark})),require_type=__commonJSMin(((exports,module)=>{var YAMLException=require_exception(),TYPE_CONSTRUCTOR_OPTIONS=[`kind`,`resolve`,`construct`,`instanceOf`,`predicate`,`represent`,`defaultStyle`,`styleAliases`],YAML_NODE_KINDS=[`scalar`,`sequence`,`mapping`];function compileStyleAliases(map){var result={};return map!==null&&Object.keys(map).forEach(function(style){map[style].forEach(function(alias){result[String(alias)]=style})}),result}function Type(tag,options){if(options||={},Object.keys(options).forEach(function(name){if(TYPE_CONSTRUCTOR_OPTIONS.indexOf(name)===-1)throw new YAMLException(`Unknown option "`+name+`" is met in definition of "`+tag+`" YAML type.`)}),this.tag=tag,this.kind=options.kind||null,this.resolve=options.resolve||function(){return!0},this.construct=options.construct||function(data){return data},this.instanceOf=options.instanceOf||null,this.predicate=options.predicate||null,this.represent=options.represent||null,this.defaultStyle=options.defaultStyle||null,this.styleAliases=compileStyleAliases(options.styleAliases||null),YAML_NODE_KINDS.indexOf(this.kind)===-1)throw new YAMLException(`Unknown kind "`+this.kind+`" is specified for "`+tag+`" YAML type.`)}module.exports=Type})),require_schema=__commonJSMin(((exports,module)=>{var common=require_common(),YAMLException=require_exception(),Type=require_type();function compileList(schema,name,result){var exclude=[];return schema.include.forEach(function(includedSchema){result=compileList(includedSchema,name,result)}),schema[name].forEach(function(currentType){result.forEach(function(previousType,previousIndex){previousType.tag===currentType.tag&&previousType.kind===currentType.kind&&exclude.push(previousIndex)}),result.push(currentType)}),result.filter(function(type,index){return exclude.indexOf(index)===-1})}function compileMap(){var result={scalar:{},sequence:{},mapping:{},fallback:{}},index,length;function collectType(type){result[type.kind][type.tag]=result.fallback[type.tag]=type}for(index=0,length=arguments.length;index<length;index+=1)arguments[index].forEach(collectType);return result}function Schema(definition){this.include=definition.include||[],this.implicit=definition.implicit||[],this.explicit=definition.explicit||[],this.implicit.forEach(function(type){if(type.loadKind&&type.loadKind!==`scalar`)throw new YAMLException(`There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.`)}),this.compiledImplicit=compileList(this,`implicit`,[]),this.compiledExplicit=compileList(this,`explicit`,[]),this.compiledTypeMap=compileMap(this.compiledImplicit,this.compiledExplicit)}Schema.DEFAULT=null,Schema.create=function(){var schemas,types;switch(arguments.length){case 1:schemas=Schema.DEFAULT,types=arguments[0];break;case 2:schemas=arguments[0],types=arguments[1];break;default:throw new YAMLException(`Wrong number of arguments for Schema.create function`)}if(schemas=common.toArray(schemas),types=common.toArray(types),!schemas.every(function(schema){return schema instanceof Schema}))throw new YAMLException(`Specified list of super schemas (or a single Schema object) contains a non-Schema object.`);if(!types.every(function(type){return type instanceof Type}))throw new YAMLException(`Specified list of YAML types (or a single Type object) contains a non-Type object.`);return new Schema({include:schemas,explicit:types})},module.exports=Schema})),require_str=__commonJSMin(((exports,module)=>{module.exports=new(require_type())(`tag:yaml.org,2002:str`,{kind:`scalar`,construct:function(data){return data===null?``:data}})})),require_seq=__commonJSMin(((exports,module)=>{module.exports=new(require_type())(`tag:yaml.org,2002:seq`,{kind:`sequence`,construct:function(data){return data===null?[]:data}})})),require_map=__commonJSMin(((exports,module)=>{module.exports=new(require_type())(`tag:yaml.org,2002:map`,{kind:`mapping`,construct:function(data){return data===null?{}:data}})})),require_failsafe=__commonJSMin(((exports,module)=>{module.exports=new(require_schema())({explicit:[require_str(),require_seq(),require_map()]})})),require_null=__commonJSMin(((exports,module)=>{var Type=require_type();function resolveYamlNull(data){if(data===null)return!0;var max=data.length;return max===1&&data===`~`||max===4&&(data===`null`||data===`Null`||data===`NULL`)}function constructYamlNull(){return null}function isNull(object){return object===null}module.exports=new Type(`tag:yaml.org,2002:null`,{kind:`scalar`,resolve:resolveYamlNull,construct:constructYamlNull,predicate:isNull,represent:{canonical:function(){return`~`},lowercase:function(){return`null`},uppercase:function(){return`NULL`},camelcase:function(){return`Null`}},defaultStyle:`lowercase`})})),require_bool=__commonJSMin(((exports,module)=>{var Type=require_type();function resolveYamlBoolean(data){if(data===null)return!1;var max=data.length;return max===4&&(data===`true`||data===`True`||data===`TRUE`)||max===5&&(data===`false`||data===`False`||data===`FALSE`)}function constructYamlBoolean(data){return data===`true`||data===`True`||data===`TRUE`}function isBoolean(object){return Object.prototype.toString.call(object)===`[object Boolean]`}module.exports=new Type(`tag:yaml.org,2002:bool`,{kind:`scalar`,resolve:resolveYamlBoolean,construct:constructYamlBoolean,predicate:isBoolean,represent:{lowercase:function(object){return object?`true`:`false`},uppercase:function(object){return object?`TRUE`:`FALSE`},camelcase:function(object){return object?`True`:`False`}},defaultStyle:`lowercase`})})),require_int=__commonJSMin(((exports,module)=>{var common=require_common(),Type=require_type();function isHexCode(c){return 48<=c&&c<=57||65<=c&&c<=70||97<=c&&c<=102}function isOctCode(c){return 48<=c&&c<=55}function isDecCode(c){return 48<=c&&c<=57}function resolveYamlInteger(data){if(data===null)return!1;var max=data.length,index=0,hasDigits=!1,ch;if(!max)return!1;if(ch=data[index],(ch===`-`||ch===`+`)&&(ch=data[++index]),ch===`0`){if(index+1===max)return!0;if(ch=data[++index],ch===`b`){for(index++;index<max;index++)if(ch=data[index],ch!==`_`){if(ch!==`0`&&ch!==`1`)return!1;hasDigits=!0}return hasDigits&&ch!==`_`}if(ch===`x`){for(index++;index<max;index++)if(ch=data[index],ch!==`_`){if(!isHexCode(data.charCodeAt(index)))return!1;hasDigits=!0}return hasDigits&&ch!==`_`}for(;index<max;index++)if(ch=data[index],ch!==`_`){if(!isOctCode(data.charCodeAt(index)))return!1;hasDigits=!0}return hasDigits&&ch!==`_`}if(ch===`_`)return!1;for(;index<max;index++)if(ch=data[index],ch!==`_`){if(ch===`:`)break;if(!isDecCode(data.charCodeAt(index)))return!1;hasDigits=!0}return!hasDigits||ch===`_`?!1:ch===`:`?/^(:[0-5]?[0-9])+$/.test(data.slice(index)):!0}function constructYamlInteger(data){var value=data,sign=1,ch,base,digits=[];return value.indexOf(`_`)!==-1&&(value=value.replace(/_/g,``)),ch=value[0],(ch===`-`||ch===`+`)&&(ch===`-`&&(sign=-1),value=value.slice(1),ch=value[0]),value===`0`?0:ch===`0`?value[1]===`b`?sign*parseInt(value.slice(2),2):value[1]===`x`?sign*parseInt(value,16):sign*parseInt(value,8):value.indexOf(`:`)===-1?sign*parseInt(value,10):(value.split(`:`).forEach(function(v$1){digits.unshift(parseInt(v$1,10))}),value=0,base=1,digits.forEach(function(d$2){value+=d$2*base,base*=60}),sign*value)}function isInteger(object){return Object.prototype.toString.call(object)===`[object Number]`&&object%1==0&&!common.isNegativeZero(object)}module.exports=new Type(`tag:yaml.org,2002:int`,{kind:`scalar`,resolve:resolveYamlInteger,construct:constructYamlInteger,predicate:isInteger,represent:{binary:function(obj){return obj>=0?`0b`+obj.toString(2):`-0b`+obj.toString(2).slice(1)},octal:function(obj){return obj>=0?`0`+obj.toString(8):`-0`+obj.toString(8).slice(1)},decimal:function(obj){return obj.toString(10)},hexadecimal:function(obj){return obj>=0?`0x`+obj.toString(16).toUpperCase():`-0x`+obj.toString(16).toUpperCase().slice(1)}},defaultStyle:`decimal`,styleAliases:{binary:[2,`bin`],octal:[8,`oct`],decimal:[10,`dec`],hexadecimal:[16,`hex`]}})})),require_float=__commonJSMin(((exports,module)=>{var common=require_common(),Type=require_type(),YAML_FLOAT_PATTERN=RegExp(`^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`);function resolveYamlFloat(data){return!(data===null||!YAML_FLOAT_PATTERN.test(data)||data[data.length-1]===`_`)}function constructYamlFloat(data){var value=data.replace(/_/g,``).toLowerCase(),sign=value[0]===`-`?-1:1,base,digits=[];return`+-`.indexOf(value[0])>=0&&(value=value.slice(1)),value===`.inf`?sign===1?1/0:-1/0:value===`.nan`?NaN:value.indexOf(`:`)>=0?(value.split(`:`).forEach(function(v$1){digits.unshift(parseFloat(v$1,10))}),value=0,base=1,digits.forEach(function(d$2){value+=d$2*base,base*=60}),sign*value):sign*parseFloat(value,10)}var SCIENTIFIC_WITHOUT_DOT=/^[-+]?[0-9]+e/;function representYamlFloat(object,style){var res;if(isNaN(object))switch(style){case`lowercase`:return`.nan`;case`uppercase`:return`.NAN`;case`camelcase`:return`.NaN`}else if(object===1/0)switch(style){case`lowercase`:return`.inf`;case`uppercase`:return`.INF`;case`camelcase`:return`.Inf`}else if(object===-1/0)switch(style){case`lowercase`:return`-.inf`;case`uppercase`:return`-.INF`;case`camelcase`:return`-.Inf`}else if(common.isNegativeZero(object))return`-0.0`;return res=object.toString(10),SCIENTIFIC_WITHOUT_DOT.test(res)?res.replace(`e`,`.e`):res}function isFloat(object){return Object.prototype.toString.call(object)===`[object Number]`&&(object%1!=0||common.isNegativeZero(object))}module.exports=new Type(`tag:yaml.org,2002:float`,{kind:`scalar`,resolve:resolveYamlFloat,construct:constructYamlFloat,predicate:isFloat,represent:representYamlFloat,defaultStyle:`lowercase`})})),require_json=__commonJSMin(((exports,module)=>{module.exports=new(require_schema())({include:[require_failsafe()],implicit:[require_null(),require_bool(),require_int(),require_float()]})})),require_core=__commonJSMin(((exports,module)=>{module.exports=new(require_schema())({include:[require_json()]})})),require_timestamp=__commonJSMin(((exports,module)=>{var Type=require_type(),YAML_DATE_REGEXP=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$`),YAML_TIMESTAMP_REGEXP=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$`);function resolveYamlTimestamp(data){return data===null?!1:YAML_DATE_REGEXP.exec(data)!==null||YAML_TIMESTAMP_REGEXP.exec(data)!==null}function constructYamlTimestamp(data){var match$1,year,month,day,hour,minute,second,fraction=0,delta=null,tz_hour,tz_minute,date;if(match$1=YAML_DATE_REGEXP.exec(data),match$1===null&&(match$1=YAML_TIMESTAMP_REGEXP.exec(data)),match$1===null)throw Error(`Date resolve error`);if(year=+match$1[1],month=match$1[2]-1,day=+match$1[3],!match$1[4])return new Date(Date.UTC(year,month,day));if(hour=+match$1[4],minute=+match$1[5],second=+match$1[6],match$1[7]){for(fraction=match$1[7].slice(0,3);fraction.length<3;)fraction+=`0`;fraction=+fraction}return match$1[9]&&(tz_hour=+match$1[10],tz_minute=+(match$1[11]||0),delta=(tz_hour*60+tz_minute)*6e4,match$1[9]===`-`&&(delta=-delta)),date=new Date(Date.UTC(year,month,day,hour,minute,second,fraction)),delta&&date.setTime(date.getTime()-delta),date}function representYamlTimestamp(object){return object.toISOString()}module.exports=new Type(`tag:yaml.org,2002:timestamp`,{kind:`scalar`,resolve:resolveYamlTimestamp,construct:constructYamlTimestamp,instanceOf:Date,represent:representYamlTimestamp})})),require_merge=__commonJSMin(((exports,module)=>{var Type=require_type();function resolveYamlMerge(data){return data===`<<`||data===null}module.exports=new Type(`tag:yaml.org,2002:merge`,{kind:`scalar`,resolve:resolveYamlMerge})})),require_binary=__commonJSMin(((exports,module)=>{var NodeBuffer;try{NodeBuffer=__require(`buffer`).Buffer}catch{}var Type=require_type(),BASE64_MAP=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
117
- \r`;function resolveYamlBinary(data){if(data===null)return!1;var code,idx,bitlen=0,max=data.length,map=BASE64_MAP;for(idx=0;idx<max;idx++)if(code=map.indexOf(data.charAt(idx)),!(code>64)){if(code<0)return!1;bitlen+=6}return bitlen%8==0}function constructYamlBinary(data){var idx,tailbits,input=data.replace(/[\r\n=]/g,``),max=input.length,map=BASE64_MAP,bits=0,result=[];for(idx=0;idx<max;idx++)idx%4==0&&idx&&(result.push(bits>>16&255),result.push(bits>>8&255),result.push(bits&255)),bits=bits<<6|map.indexOf(input.charAt(idx));return tailbits=max%4*6,tailbits===0?(result.push(bits>>16&255),result.push(bits>>8&255),result.push(bits&255)):tailbits===18?(result.push(bits>>10&255),result.push(bits>>2&255)):tailbits===12&&result.push(bits>>4&255),NodeBuffer?NodeBuffer.from?NodeBuffer.from(result):new NodeBuffer(result):result}function representYamlBinary(object){var result=``,bits=0,idx,tail,max=object.length,map=BASE64_MAP;for(idx=0;idx<max;idx++)idx%3==0&&idx&&(result+=map[bits>>18&63],result+=map[bits>>12&63],result+=map[bits>>6&63],result+=map[bits&63]),bits=(bits<<8)+object[idx];return tail=max%3,tail===0?(result+=map[bits>>18&63],result+=map[bits>>12&63],result+=map[bits>>6&63],result+=map[bits&63]):tail===2?(result+=map[bits>>10&63],result+=map[bits>>4&63],result+=map[bits<<2&63],result+=map[64]):tail===1&&(result+=map[bits>>2&63],result+=map[bits<<4&63],result+=map[64],result+=map[64]),result}function isBinary(object){return NodeBuffer&&NodeBuffer.isBuffer(object)}module.exports=new Type(`tag:yaml.org,2002:binary`,{kind:`scalar`,resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary})})),require_omap=__commonJSMin(((exports,module)=>{var Type=require_type(),_hasOwnProperty=Object.prototype.hasOwnProperty,_toString=Object.prototype.toString;function resolveYamlOmap(data){if(data===null)return!0;var objectKeys=[],index,length,pair,pairKey,pairHasKey,object=data;for(index=0,length=object.length;index<length;index+=1){if(pair=object[index],pairHasKey=!1,_toString.call(pair)!==`[object Object]`)return!1;for(pairKey in pair)if(_hasOwnProperty.call(pair,pairKey))if(!pairHasKey)pairHasKey=!0;else return!1;if(!pairHasKey)return!1;if(objectKeys.indexOf(pairKey)===-1)objectKeys.push(pairKey);else return!1}return!0}function constructYamlOmap(data){return data===null?[]:data}module.exports=new Type(`tag:yaml.org,2002:omap`,{kind:`sequence`,resolve:resolveYamlOmap,construct:constructYamlOmap})})),require_pairs=__commonJSMin(((exports,module)=>{var Type=require_type(),_toString=Object.prototype.toString;function resolveYamlPairs(data){if(data===null)return!0;var index,length,pair,keys,result,object=data;for(result=Array(object.length),index=0,length=object.length;index<length;index+=1){if(pair=object[index],_toString.call(pair)!==`[object Object]`||(keys=Object.keys(pair),keys.length!==1))return!1;result[index]=[keys[0],pair[keys[0]]]}return!0}function constructYamlPairs(data){if(data===null)return[];var index,length,pair,keys,result,object=data;for(result=Array(object.length),index=0,length=object.length;index<length;index+=1)pair=object[index],keys=Object.keys(pair),result[index]=[keys[0],pair[keys[0]]];return result}module.exports=new Type(`tag:yaml.org,2002:pairs`,{kind:`sequence`,resolve:resolveYamlPairs,construct:constructYamlPairs})})),require_set=__commonJSMin(((exports,module)=>{var Type=require_type(),_hasOwnProperty=Object.prototype.hasOwnProperty;function resolveYamlSet(data){if(data===null)return!0;var key,object=data;for(key in object)if(_hasOwnProperty.call(object,key)&&object[key]!==null)return!1;return!0}function constructYamlSet(data){return data===null?{}:data}module.exports=new Type(`tag:yaml.org,2002:set`,{kind:`mapping`,resolve:resolveYamlSet,construct:constructYamlSet})})),require_default_safe=__commonJSMin(((exports,module)=>{module.exports=new(require_schema())({include:[require_core()],implicit:[require_timestamp(),require_merge()],explicit:[require_binary(),require_omap(),require_pairs(),require_set()]})})),require_undefined=__commonJSMin(((exports,module)=>{var Type=require_type();function resolveJavascriptUndefined(){return!0}function constructJavascriptUndefined(){}function representJavascriptUndefined(){return``}function isUndefined(object){return object===void 0}module.exports=new Type(`tag:yaml.org,2002:js/undefined`,{kind:`scalar`,resolve:resolveJavascriptUndefined,construct:constructJavascriptUndefined,predicate:isUndefined,represent:representJavascriptUndefined})})),require_regexp=__commonJSMin(((exports,module)=>{var Type=require_type();function resolveJavascriptRegExp(data){if(data===null||data.length===0)return!1;var regexp=data,tail=/\/([gim]*)$/.exec(data),modifiers=``;return!(regexp[0]===`/`&&(tail&&(modifiers=tail[1]),modifiers.length>3||regexp[regexp.length-modifiers.length-1]!==`/`))}function constructJavascriptRegExp(data){var regexp=data,tail=/\/([gim]*)$/.exec(data),modifiers=``;return regexp[0]===`/`&&(tail&&(modifiers=tail[1]),regexp=regexp.slice(1,regexp.length-modifiers.length-1)),new RegExp(regexp,modifiers)}function representJavascriptRegExp(object){var result=`/`+object.source+`/`;return object.global&&(result+=`g`),object.multiline&&(result+=`m`),object.ignoreCase&&(result+=`i`),result}function isRegExp(object){return Object.prototype.toString.call(object)===`[object RegExp]`}module.exports=new Type(`tag:yaml.org,2002:js/regexp`,{kind:`scalar`,resolve:resolveJavascriptRegExp,construct:constructJavascriptRegExp,predicate:isRegExp,represent:representJavascriptRegExp})})),require_esprima=__commonJSMin(((exports,module)=>{(function(root,factory){typeof exports==`object`&&typeof module==`object`?module.exports=factory():typeof define==`function`&&define.amd?define([],factory):typeof exports==`object`?exports.esprima=factory():root.esprima=factory()})(exports,function(){return(function(modules){var installedModules={};function __webpack_require__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module$1=installedModules[moduleId]={exports:{},id:moduleId,loaded:!1};return modules[moduleId].call(module$1.exports,module$1,module$1.exports,__webpack_require__),module$1.loaded=!0,module$1.exports}return __webpack_require__.m=modules,__webpack_require__.c=installedModules,__webpack_require__.p=``,__webpack_require__(0)})([function(module$1,exports$1,__webpack_require__){Object.defineProperty(exports$1,`__esModule`,{value:!0});var comment_handler_1=__webpack_require__(1),jsx_parser_1=__webpack_require__(3),parser_1=__webpack_require__(8),tokenizer_1=__webpack_require__(15);function parse$1(code,options,delegate){var commentHandler=null,proxyDelegate=function(node,metadata){delegate&&delegate(node,metadata),commentHandler&&commentHandler.visit(node,metadata)},parserDelegate=typeof delegate==`function`?proxyDelegate:null,collectComment=!1;if(options){collectComment=typeof options.comment==`boolean`&&options.comment;var attachComment=typeof options.attachComment==`boolean`&&options.attachComment;(collectComment||attachComment)&&(commentHandler=new comment_handler_1.CommentHandler,commentHandler.attach=attachComment,options.comment=!0,parserDelegate=proxyDelegate)}var isModule=!1;options&&typeof options.sourceType==`string`&&(isModule=options.sourceType===`module`);var parser=options&&typeof options.jsx==`boolean`&&options.jsx?new jsx_parser_1.JSXParser(code,options,parserDelegate):new parser_1.Parser(code,options,parserDelegate),ast=isModule?parser.parseModule():parser.parseScript();return collectComment&&commentHandler&&(ast.comments=commentHandler.comments),parser.config.tokens&&(ast.tokens=parser.tokens),parser.config.tolerant&&(ast.errors=parser.errorHandler.errors),ast}exports$1.parse=parse$1;function parseModule(code,options,delegate){var parsingOptions=options||{};return parsingOptions.sourceType=`module`,parse$1(code,parsingOptions,delegate)}exports$1.parseModule=parseModule;function parseScript(code,options,delegate){var parsingOptions=options||{};return parsingOptions.sourceType=`script`,parse$1(code,parsingOptions,delegate)}exports$1.parseScript=parseScript;function tokenize(code,options,delegate){var tokenizer=new tokenizer_1.Tokenizer(code,options),tokens=[];try{for(;;){var token=tokenizer.getNextToken();if(!token)break;delegate&&(token=delegate(token)),tokens.push(token)}}catch(e$1){tokenizer.errorHandler.tolerate(e$1)}return tokenizer.errorHandler.tolerant&&(tokens.errors=tokenizer.errors()),tokens}exports$1.tokenize=tokenize,exports$1.Syntax=__webpack_require__(2).Syntax,exports$1.version=`4.0.1`},function(module$1,exports$1,__webpack_require__){Object.defineProperty(exports$1,`__esModule`,{value:!0});var syntax_1=__webpack_require__(2);exports$1.CommentHandler=function(){function CommentHandler(){this.attach=!1,this.comments=[],this.stack=[],this.leading=[],this.trailing=[]}return CommentHandler.prototype.insertInnerComments=function(node,metadata){if(node.type===syntax_1.Syntax.BlockStatement&&node.body.length===0){for(var innerComments=[],i=this.leading.length-1;i>=0;--i){var entry=this.leading[i];metadata.end.offset>=entry.start&&(innerComments.unshift(entry.comment),this.leading.splice(i,1),this.trailing.splice(i,1))}innerComments.length&&(node.innerComments=innerComments)}},CommentHandler.prototype.findTrailingComments=function(metadata){var trailingComments=[];if(this.trailing.length>0){for(var i=this.trailing.length-1;i>=0;--i){var entry_1=this.trailing[i];entry_1.start>=metadata.end.offset&&trailingComments.unshift(entry_1.comment)}return this.trailing.length=0,trailingComments}var entry=this.stack[this.stack.length-1];if(entry&&entry.node.trailingComments){var firstComment=entry.node.trailingComments[0];firstComment&&firstComment.range[0]>=metadata.end.offset&&(trailingComments=entry.node.trailingComments,delete entry.node.trailingComments)}return trailingComments},CommentHandler.prototype.findLeadingComments=function(metadata){for(var leadingComments=[],target;this.stack.length>0;){var entry=this.stack[this.stack.length-1];if(entry&&entry.start>=metadata.start.offset)target=entry.node,this.stack.pop();else break}if(target){for(var i=(target.leadingComments?target.leadingComments.length:0)-1;i>=0;--i){var comment=target.leadingComments[i];comment.range[1]<=metadata.start.offset&&(leadingComments.unshift(comment),target.leadingComments.splice(i,1))}return target.leadingComments&&target.leadingComments.length===0&&delete target.leadingComments,leadingComments}for(var i=this.leading.length-1;i>=0;--i){var entry=this.leading[i];entry.start<=metadata.start.offset&&(leadingComments.unshift(entry.comment),this.leading.splice(i,1))}return leadingComments},CommentHandler.prototype.visitNode=function(node,metadata){if(!(node.type===syntax_1.Syntax.Program&&node.body.length>0)){this.insertInnerComments(node,metadata);var trailingComments=this.findTrailingComments(metadata),leadingComments=this.findLeadingComments(metadata);leadingComments.length>0&&(node.leadingComments=leadingComments),trailingComments.length>0&&(node.trailingComments=trailingComments),this.stack.push({node,start:metadata.start.offset})}},CommentHandler.prototype.visitComment=function(node,metadata){var type=node.type[0]===`L`?`Line`:`Block`,comment={type,value:node.value};if(node.range&&(comment.range=node.range),node.loc&&(comment.loc=node.loc),this.comments.push(comment),this.attach){var entry={comment:{type,value:node.value,range:[metadata.start.offset,metadata.end.offset]},start:metadata.start.offset};node.loc&&(entry.comment.loc=node.loc),node.type=type,this.leading.push(entry),this.trailing.push(entry)}},CommentHandler.prototype.visit=function(node,metadata){node.type===`LineComment`||node.type===`BlockComment`?this.visitComment(node,metadata):this.attach&&this.visitNode(node,metadata)},CommentHandler}()},function(module$1,exports$1){Object.defineProperty(exports$1,`__esModule`,{value:!0}),exports$1.Syntax={AssignmentExpression:`AssignmentExpression`,AssignmentPattern:`AssignmentPattern`,ArrayExpression:`ArrayExpression`,ArrayPattern:`ArrayPattern`,ArrowFunctionExpression:`ArrowFunctionExpression`,AwaitExpression:`AwaitExpression`,BlockStatement:`BlockStatement`,BinaryExpression:`BinaryExpression`,BreakStatement:`BreakStatement`,CallExpression:`CallExpression`,CatchClause:`CatchClause`,ClassBody:`ClassBody`,ClassDeclaration:`ClassDeclaration`,ClassExpression:`ClassExpression`,ConditionalExpression:`ConditionalExpression`,ContinueStatement:`ContinueStatement`,DoWhileStatement:`DoWhileStatement`,DebuggerStatement:`DebuggerStatement`,EmptyStatement:`EmptyStatement`,ExportAllDeclaration:`ExportAllDeclaration`,ExportDefaultDeclaration:`ExportDefaultDeclaration`,ExportNamedDeclaration:`ExportNamedDeclaration`,ExportSpecifier:`ExportSpecifier`,ExpressionStatement:`ExpressionStatement`,ForStatement:`ForStatement`,ForOfStatement:`ForOfStatement`,ForInStatement:`ForInStatement`,FunctionDeclaration:`FunctionDeclaration`,FunctionExpression:`FunctionExpression`,Identifier:`Identifier`,IfStatement:`IfStatement`,ImportDeclaration:`ImportDeclaration`,ImportDefaultSpecifier:`ImportDefaultSpecifier`,ImportNamespaceSpecifier:`ImportNamespaceSpecifier`,ImportSpecifier:`ImportSpecifier`,Literal:`Literal`,LabeledStatement:`LabeledStatement`,LogicalExpression:`LogicalExpression`,MemberExpression:`MemberExpression`,MetaProperty:`MetaProperty`,MethodDefinition:`MethodDefinition`,NewExpression:`NewExpression`,ObjectExpression:`ObjectExpression`,ObjectPattern:`ObjectPattern`,Program:`Program`,Property:`Property`,RestElement:`RestElement`,ReturnStatement:`ReturnStatement`,SequenceExpression:`SequenceExpression`,SpreadElement:`SpreadElement`,Super:`Super`,SwitchCase:`SwitchCase`,SwitchStatement:`SwitchStatement`,TaggedTemplateExpression:`TaggedTemplateExpression`,TemplateElement:`TemplateElement`,TemplateLiteral:`TemplateLiteral`,ThisExpression:`ThisExpression`,ThrowStatement:`ThrowStatement`,TryStatement:`TryStatement`,UnaryExpression:`UnaryExpression`,UpdateExpression:`UpdateExpression`,VariableDeclaration:`VariableDeclaration`,VariableDeclarator:`VariableDeclarator`,WhileStatement:`WhileStatement`,WithStatement:`WithStatement`,YieldExpression:`YieldExpression`}},function(module$1,exports$1,__webpack_require__){var __extends=this&&this.__extends||(function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d$2,b$2){d$2.__proto__=b$2}||function(d$2,b$2){for(var p$1 in b$2)b$2.hasOwnProperty(p$1)&&(d$2[p$1]=b$2[p$1])};return function(d$2,b$2){extendStatics(d$2,b$2);function __(){this.constructor=d$2}d$2.prototype=b$2===null?Object.create(b$2):(__.prototype=b$2.prototype,new __)}})();Object.defineProperty(exports$1,`__esModule`,{value:!0});var character_1=__webpack_require__(4),JSXNode=__webpack_require__(5),jsx_syntax_1=__webpack_require__(6),Node=__webpack_require__(7),parser_1=__webpack_require__(8),token_1=__webpack_require__(13),xhtml_entities_1=__webpack_require__(14);token_1.TokenName[100]=`JSXIdentifier`,token_1.TokenName[101]=`JSXText`;function getQualifiedElementName(elementName){var qualifiedName;switch(elementName.type){case jsx_syntax_1.JSXSyntax.JSXIdentifier:qualifiedName=elementName.name;break;case jsx_syntax_1.JSXSyntax.JSXNamespacedName:var ns=elementName;qualifiedName=getQualifiedElementName(ns.namespace)+`:`+getQualifiedElementName(ns.name);break;case jsx_syntax_1.JSXSyntax.JSXMemberExpression:var expr=elementName;qualifiedName=getQualifiedElementName(expr.object)+`.`+getQualifiedElementName(expr.property);break;default:break}return qualifiedName}exports$1.JSXParser=function(_super){__extends(JSXParser,_super);function JSXParser(code,options,delegate){return _super.call(this,code,options,delegate)||this}return JSXParser.prototype.parsePrimaryExpression=function(){return this.match(`<`)?this.parseJSXRoot():_super.prototype.parsePrimaryExpression.call(this)},JSXParser.prototype.startJSX=function(){this.scanner.index=this.startMarker.index,this.scanner.lineNumber=this.startMarker.line,this.scanner.lineStart=this.startMarker.index-this.startMarker.column},JSXParser.prototype.finishJSX=function(){this.nextToken()},JSXParser.prototype.reenterJSX=function(){this.startJSX(),this.expectJSX(`}`),this.config.tokens&&this.tokens.pop()},JSXParser.prototype.createJSXNode=function(){return this.collectComments(),{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},JSXParser.prototype.createJSXChildNode=function(){return{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},JSXParser.prototype.scanXHTMLEntity=function(quote){for(var result=`&`,valid=!0,terminated=!1,numeric=!1,hex=!1;!this.scanner.eof()&&valid&&!terminated;){var ch=this.scanner.source[this.scanner.index];if(ch===quote)break;if(terminated=ch===`;`,result+=ch,++this.scanner.index,!terminated)switch(result.length){case 2:numeric=ch===`#`;break;case 3:numeric&&(hex=ch===`x`,valid=hex||character_1.Character.isDecimalDigit(ch.charCodeAt(0)),numeric&&=!hex);break;default:valid&&=!(numeric&&!character_1.Character.isDecimalDigit(ch.charCodeAt(0))),valid&&=!(hex&&!character_1.Character.isHexDigit(ch.charCodeAt(0)));break}}if(valid&&terminated&&result.length>2){var str=result.substr(1,result.length-2);numeric&&str.length>1?result=String.fromCharCode(parseInt(str.substr(1),10)):hex&&str.length>2?result=String.fromCharCode(parseInt(`0`+str.substr(1),16)):!numeric&&!hex&&xhtml_entities_1.XHTMLEntities[str]&&(result=xhtml_entities_1.XHTMLEntities[str])}return result},JSXParser.prototype.lexJSX=function(){var cp=this.scanner.source.charCodeAt(this.scanner.index);if(cp===60||cp===62||cp===47||cp===58||cp===61||cp===123||cp===125){var value=this.scanner.source[this.scanner.index++];return{type:7,value,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index-1,end:this.scanner.index}}if(cp===34||cp===39){for(var start=this.scanner.index,quote=this.scanner.source[this.scanner.index++],str=``;!this.scanner.eof();){var ch=this.scanner.source[this.scanner.index++];if(ch===quote)break;ch===`&`?str+=this.scanXHTMLEntity(quote):str+=ch}return{type:8,value:str,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start,end:this.scanner.index}}if(cp===46){var n1=this.scanner.source.charCodeAt(this.scanner.index+1),n2=this.scanner.source.charCodeAt(this.scanner.index+2),value=n1===46&&n2===46?`...`:`.`,start=this.scanner.index;return this.scanner.index+=value.length,{type:7,value,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start,end:this.scanner.index}}if(cp===96)return{type:10,value:``,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index,end:this.scanner.index};if(character_1.Character.isIdentifierStart(cp)&&cp!==92){var start=this.scanner.index;for(++this.scanner.index;!this.scanner.eof();){var ch=this.scanner.source.charCodeAt(this.scanner.index);if(character_1.Character.isIdentifierPart(ch)&&ch!==92)++this.scanner.index;else if(ch===45)++this.scanner.index;else break}return{type:100,value:this.scanner.source.slice(start,this.scanner.index),lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start,end:this.scanner.index}}return this.scanner.lex()},JSXParser.prototype.nextJSXToken=function(){this.collectComments(),this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var token=this.lexJSX();return this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.config.tokens&&this.tokens.push(this.convertToken(token)),token},JSXParser.prototype.nextJSXText=function(){this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;for(var start=this.scanner.index,text=``;!this.scanner.eof();){var ch=this.scanner.source[this.scanner.index];if(ch===`{`||ch===`<`)break;++this.scanner.index,text+=ch,character_1.Character.isLineTerminator(ch.charCodeAt(0))&&(++this.scanner.lineNumber,ch===`\r`&&this.scanner.source[this.scanner.index]===`
118
- `&&++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 token={type:101,value:text,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start,end:this.scanner.index};return text.length>0&&this.config.tokens&&this.tokens.push(this.convertToken(token)),token},JSXParser.prototype.peekJSXToken=function(){var state=this.scanner.saveState();this.scanner.scanComments();var next=this.lexJSX();return this.scanner.restoreState(state),next},JSXParser.prototype.expectJSX=function(value){var token=this.nextJSXToken();(token.type!==7||token.value!==value)&&this.throwUnexpectedToken(token)},JSXParser.prototype.matchJSX=function(value){var next=this.peekJSXToken();return next.type===7&&next.value===value},JSXParser.prototype.parseJSXIdentifier=function(){var node=this.createJSXNode(),token=this.nextJSXToken();return token.type!==100&&this.throwUnexpectedToken(token),this.finalize(node,new JSXNode.JSXIdentifier(token.value))},JSXParser.prototype.parseJSXElementName=function(){var node=this.createJSXNode(),elementName=this.parseJSXIdentifier();if(this.matchJSX(`:`)){var namespace=elementName;this.expectJSX(`:`);var name_1=this.parseJSXIdentifier();elementName=this.finalize(node,new JSXNode.JSXNamespacedName(namespace,name_1))}else if(this.matchJSX(`.`))for(;this.matchJSX(`.`);){var object=elementName;this.expectJSX(`.`);var property=this.parseJSXIdentifier();elementName=this.finalize(node,new JSXNode.JSXMemberExpression(object,property))}return elementName},JSXParser.prototype.parseJSXAttributeName=function(){var node=this.createJSXNode(),attributeName,identifier=this.parseJSXIdentifier();if(this.matchJSX(`:`)){var namespace=identifier;this.expectJSX(`:`);var name_2=this.parseJSXIdentifier();attributeName=this.finalize(node,new JSXNode.JSXNamespacedName(namespace,name_2))}else attributeName=identifier;return attributeName},JSXParser.prototype.parseJSXStringLiteralAttribute=function(){var node=this.createJSXNode(),token=this.nextJSXToken();token.type!==8&&this.throwUnexpectedToken(token);var raw=this.getTokenRaw(token);return this.finalize(node,new Node.Literal(token.value,raw))},JSXParser.prototype.parseJSXExpressionAttribute=function(){var node=this.createJSXNode();this.expectJSX(`{`),this.finishJSX(),this.match(`}`)&&this.tolerateError(`JSX attributes must only be assigned a non-empty expression`);var expression=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(node,new JSXNode.JSXExpressionContainer(expression))},JSXParser.prototype.parseJSXAttributeValue=function(){return this.matchJSX(`{`)?this.parseJSXExpressionAttribute():this.matchJSX(`<`)?this.parseJSXElement():this.parseJSXStringLiteralAttribute()},JSXParser.prototype.parseJSXNameValueAttribute=function(){var node=this.createJSXNode(),name=this.parseJSXAttributeName(),value=null;return this.matchJSX(`=`)&&(this.expectJSX(`=`),value=this.parseJSXAttributeValue()),this.finalize(node,new JSXNode.JSXAttribute(name,value))},JSXParser.prototype.parseJSXSpreadAttribute=function(){var node=this.createJSXNode();this.expectJSX(`{`),this.expectJSX(`...`),this.finishJSX();var argument=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(node,new JSXNode.JSXSpreadAttribute(argument))},JSXParser.prototype.parseJSXAttributes=function(){for(var attributes=[];!this.matchJSX(`/`)&&!this.matchJSX(`>`);){var attribute=this.matchJSX(`{`)?this.parseJSXSpreadAttribute():this.parseJSXNameValueAttribute();attributes.push(attribute)}return attributes},JSXParser.prototype.parseJSXOpeningElement=function(){var node=this.createJSXNode();this.expectJSX(`<`);var name=this.parseJSXElementName(),attributes=this.parseJSXAttributes(),selfClosing=this.matchJSX(`/`);return selfClosing&&this.expectJSX(`/`),this.expectJSX(`>`),this.finalize(node,new JSXNode.JSXOpeningElement(name,selfClosing,attributes))},JSXParser.prototype.parseJSXBoundaryElement=function(){var node=this.createJSXNode();if(this.expectJSX(`<`),this.matchJSX(`/`)){this.expectJSX(`/`);var name_3=this.parseJSXElementName();return this.expectJSX(`>`),this.finalize(node,new JSXNode.JSXClosingElement(name_3))}var name=this.parseJSXElementName(),attributes=this.parseJSXAttributes(),selfClosing=this.matchJSX(`/`);return selfClosing&&this.expectJSX(`/`),this.expectJSX(`>`),this.finalize(node,new JSXNode.JSXOpeningElement(name,selfClosing,attributes))},JSXParser.prototype.parseJSXEmptyExpression=function(){var node=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(node,new JSXNode.JSXEmptyExpression)},JSXParser.prototype.parseJSXExpressionContainer=function(){var node=this.createJSXNode();this.expectJSX(`{`);var expression;return this.matchJSX(`}`)?(expression=this.parseJSXEmptyExpression(),this.expectJSX(`}`)):(this.finishJSX(),expression=this.parseAssignmentExpression(),this.reenterJSX()),this.finalize(node,new JSXNode.JSXExpressionContainer(expression))},JSXParser.prototype.parseJSXChildren=function(){for(var children=[];!this.scanner.eof();){var node=this.createJSXChildNode(),token=this.nextJSXText();if(token.start<token.end){var raw=this.getTokenRaw(token),child=this.finalize(node,new JSXNode.JSXText(token.value,raw));children.push(child)}if(this.scanner.source[this.scanner.index]===`{`){var container=this.parseJSXExpressionContainer();children.push(container)}else break}return children},JSXParser.prototype.parseComplexJSXElement=function(el){for(var stack=[];!this.scanner.eof();){el.children=el.children.concat(this.parseJSXChildren());var node=this.createJSXChildNode(),element=this.parseJSXBoundaryElement();if(element.type===jsx_syntax_1.JSXSyntax.JSXOpeningElement){var opening=element;if(opening.selfClosing){var child=this.finalize(node,new JSXNode.JSXElement(opening,[],null));el.children.push(child)}else stack.push(el),el={node,opening,closing:null,children:[]}}if(element.type===jsx_syntax_1.JSXSyntax.JSXClosingElement){el.closing=element;var open_1=getQualifiedElementName(el.opening.name);if(open_1!==getQualifiedElementName(el.closing.name)&&this.tolerateError(`Expected corresponding JSX closing tag for %0`,open_1),stack.length>0){var child=this.finalize(el.node,new JSXNode.JSXElement(el.opening,el.children,el.closing));el=stack[stack.length-1],el.children.push(child),stack.pop()}else break}}return el},JSXParser.prototype.parseJSXElement=function(){var node=this.createJSXNode(),opening=this.parseJSXOpeningElement(),children=[],closing=null;if(!opening.selfClosing){var el=this.parseComplexJSXElement({node,opening,closing,children});children=el.children,closing=el.closing}return this.finalize(node,new JSXNode.JSXElement(opening,children,closing))},JSXParser.prototype.parseJSXRoot=function(){this.config.tokens&&this.tokens.pop(),this.startJSX();var element=this.parseJSXElement();return this.finishJSX(),element},JSXParser.prototype.isStartOfExpression=function(){return _super.prototype.isStartOfExpression.call(this)||this.match(`<`)},JSXParser}(parser_1.Parser)},function(module$1,exports$1){Object.defineProperty(exports$1,`__esModule`,{value:!0});var Regex={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};exports$1.Character={fromCodePoint:function(cp){return cp<65536?String.fromCharCode(cp):String.fromCharCode(55296+(cp-65536>>10))+String.fromCharCode(56320+(cp-65536&1023))},isWhiteSpace:function(cp){return cp===32||cp===9||cp===11||cp===12||cp===160||cp>=5760&&[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(cp)>=0},isLineTerminator:function(cp){return cp===10||cp===13||cp===8232||cp===8233},isIdentifierStart:function(cp){return cp===36||cp===95||cp>=65&&cp<=90||cp>=97&&cp<=122||cp===92||cp>=128&&Regex.NonAsciiIdentifierStart.test(exports$1.Character.fromCodePoint(cp))},isIdentifierPart:function(cp){return cp===36||cp===95||cp>=65&&cp<=90||cp>=97&&cp<=122||cp>=48&&cp<=57||cp===92||cp>=128&&Regex.NonAsciiIdentifierPart.test(exports$1.Character.fromCodePoint(cp))},isDecimalDigit:function(cp){return cp>=48&&cp<=57},isHexDigit:function(cp){return cp>=48&&cp<=57||cp>=65&&cp<=70||cp>=97&&cp<=102},isOctalDigit:function(cp){return cp>=48&&cp<=55}}},function(module$1,exports$1,__webpack_require__){Object.defineProperty(exports$1,`__esModule`,{value:!0});var jsx_syntax_1=__webpack_require__(6);exports$1.JSXClosingElement=function(){function JSXClosingElement(name){this.type=jsx_syntax_1.JSXSyntax.JSXClosingElement,this.name=name}return JSXClosingElement}(),exports$1.JSXElement=function(){function JSXElement(openingElement,children,closingElement){this.type=jsx_syntax_1.JSXSyntax.JSXElement,this.openingElement=openingElement,this.children=children,this.closingElement=closingElement}return JSXElement}(),exports$1.JSXEmptyExpression=function(){function JSXEmptyExpression(){this.type=jsx_syntax_1.JSXSyntax.JSXEmptyExpression}return JSXEmptyExpression}(),exports$1.JSXExpressionContainer=function(){function JSXExpressionContainer(expression){this.type=jsx_syntax_1.JSXSyntax.JSXExpressionContainer,this.expression=expression}return JSXExpressionContainer}(),exports$1.JSXIdentifier=function(){function JSXIdentifier(name){this.type=jsx_syntax_1.JSXSyntax.JSXIdentifier,this.name=name}return JSXIdentifier}(),exports$1.JSXMemberExpression=function(){function JSXMemberExpression(object,property){this.type=jsx_syntax_1.JSXSyntax.JSXMemberExpression,this.object=object,this.property=property}return JSXMemberExpression}(),exports$1.JSXAttribute=function(){function JSXAttribute(name,value){this.type=jsx_syntax_1.JSXSyntax.JSXAttribute,this.name=name,this.value=value}return JSXAttribute}(),exports$1.JSXNamespacedName=function(){function JSXNamespacedName(namespace,name){this.type=jsx_syntax_1.JSXSyntax.JSXNamespacedName,this.namespace=namespace,this.name=name}return JSXNamespacedName}(),exports$1.JSXOpeningElement=function(){function JSXOpeningElement(name,selfClosing,attributes){this.type=jsx_syntax_1.JSXSyntax.JSXOpeningElement,this.name=name,this.selfClosing=selfClosing,this.attributes=attributes}return JSXOpeningElement}(),exports$1.JSXSpreadAttribute=function(){function JSXSpreadAttribute(argument){this.type=jsx_syntax_1.JSXSyntax.JSXSpreadAttribute,this.argument=argument}return JSXSpreadAttribute}(),exports$1.JSXText=function(){function JSXText(value,raw){this.type=jsx_syntax_1.JSXSyntax.JSXText,this.value=value,this.raw=raw}return JSXText}()},function(module$1,exports$1){Object.defineProperty(exports$1,`__esModule`,{value:!0}),exports$1.JSXSyntax={JSXAttribute:`JSXAttribute`,JSXClosingElement:`JSXClosingElement`,JSXElement:`JSXElement`,JSXEmptyExpression:`JSXEmptyExpression`,JSXExpressionContainer:`JSXExpressionContainer`,JSXIdentifier:`JSXIdentifier`,JSXMemberExpression:`JSXMemberExpression`,JSXNamespacedName:`JSXNamespacedName`,JSXOpeningElement:`JSXOpeningElement`,JSXSpreadAttribute:`JSXSpreadAttribute`,JSXText:`JSXText`}},function(module$1,exports$1,__webpack_require__){Object.defineProperty(exports$1,`__esModule`,{value:!0});var syntax_1=__webpack_require__(2);exports$1.ArrayExpression=function(){function ArrayExpression(elements){this.type=syntax_1.Syntax.ArrayExpression,this.elements=elements}return ArrayExpression}(),exports$1.ArrayPattern=function(){function ArrayPattern(elements){this.type=syntax_1.Syntax.ArrayPattern,this.elements=elements}return ArrayPattern}(),exports$1.ArrowFunctionExpression=function(){function ArrowFunctionExpression(params,body,expression){this.type=syntax_1.Syntax.ArrowFunctionExpression,this.id=null,this.params=params,this.body=body,this.generator=!1,this.expression=expression,this.async=!1}return ArrowFunctionExpression}(),exports$1.AssignmentExpression=function(){function AssignmentExpression(operator,left,right){this.type=syntax_1.Syntax.AssignmentExpression,this.operator=operator,this.left=left,this.right=right}return AssignmentExpression}(),exports$1.AssignmentPattern=function(){function AssignmentPattern(left,right){this.type=syntax_1.Syntax.AssignmentPattern,this.left=left,this.right=right}return AssignmentPattern}(),exports$1.AsyncArrowFunctionExpression=function(){function AsyncArrowFunctionExpression(params,body,expression){this.type=syntax_1.Syntax.ArrowFunctionExpression,this.id=null,this.params=params,this.body=body,this.generator=!1,this.expression=expression,this.async=!0}return AsyncArrowFunctionExpression}(),exports$1.AsyncFunctionDeclaration=function(){function AsyncFunctionDeclaration(id,params,body){this.type=syntax_1.Syntax.FunctionDeclaration,this.id=id,this.params=params,this.body=body,this.generator=!1,this.expression=!1,this.async=!0}return AsyncFunctionDeclaration}(),exports$1.AsyncFunctionExpression=function(){function AsyncFunctionExpression(id,params,body){this.type=syntax_1.Syntax.FunctionExpression,this.id=id,this.params=params,this.body=body,this.generator=!1,this.expression=!1,this.async=!0}return AsyncFunctionExpression}(),exports$1.AwaitExpression=function(){function AwaitExpression(argument){this.type=syntax_1.Syntax.AwaitExpression,this.argument=argument}return AwaitExpression}(),exports$1.BinaryExpression=function(){function BinaryExpression(operator,left,right){this.type=operator===`||`||operator===`&&`?syntax_1.Syntax.LogicalExpression:syntax_1.Syntax.BinaryExpression,this.operator=operator,this.left=left,this.right=right}return BinaryExpression}(),exports$1.BlockStatement=function(){function BlockStatement(body){this.type=syntax_1.Syntax.BlockStatement,this.body=body}return BlockStatement}(),exports$1.BreakStatement=function(){function BreakStatement(label){this.type=syntax_1.Syntax.BreakStatement,this.label=label}return BreakStatement}(),exports$1.CallExpression=function(){function CallExpression(callee,args){this.type=syntax_1.Syntax.CallExpression,this.callee=callee,this.arguments=args}return CallExpression}(),exports$1.CatchClause=function(){function CatchClause(param,body){this.type=syntax_1.Syntax.CatchClause,this.param=param,this.body=body}return CatchClause}(),exports$1.ClassBody=function(){function ClassBody(body){this.type=syntax_1.Syntax.ClassBody,this.body=body}return ClassBody}(),exports$1.ClassDeclaration=function(){function ClassDeclaration(id,superClass,body){this.type=syntax_1.Syntax.ClassDeclaration,this.id=id,this.superClass=superClass,this.body=body}return ClassDeclaration}(),exports$1.ClassExpression=function(){function ClassExpression(id,superClass,body){this.type=syntax_1.Syntax.ClassExpression,this.id=id,this.superClass=superClass,this.body=body}return ClassExpression}(),exports$1.ComputedMemberExpression=function(){function ComputedMemberExpression(object,property){this.type=syntax_1.Syntax.MemberExpression,this.computed=!0,this.object=object,this.property=property}return ComputedMemberExpression}(),exports$1.ConditionalExpression=function(){function ConditionalExpression(test,consequent,alternate){this.type=syntax_1.Syntax.ConditionalExpression,this.test=test,this.consequent=consequent,this.alternate=alternate}return ConditionalExpression}(),exports$1.ContinueStatement=function(){function ContinueStatement(label){this.type=syntax_1.Syntax.ContinueStatement,this.label=label}return ContinueStatement}(),exports$1.DebuggerStatement=function(){function DebuggerStatement(){this.type=syntax_1.Syntax.DebuggerStatement}return DebuggerStatement}(),exports$1.Directive=function(){function Directive(expression,directive){this.type=syntax_1.Syntax.ExpressionStatement,this.expression=expression,this.directive=directive}return Directive}(),exports$1.DoWhileStatement=function(){function DoWhileStatement(body,test){this.type=syntax_1.Syntax.DoWhileStatement,this.body=body,this.test=test}return DoWhileStatement}(),exports$1.EmptyStatement=function(){function EmptyStatement(){this.type=syntax_1.Syntax.EmptyStatement}return EmptyStatement}(),exports$1.ExportAllDeclaration=function(){function ExportAllDeclaration(source){this.type=syntax_1.Syntax.ExportAllDeclaration,this.source=source}return ExportAllDeclaration}(),exports$1.ExportDefaultDeclaration=function(){function ExportDefaultDeclaration(declaration){this.type=syntax_1.Syntax.ExportDefaultDeclaration,this.declaration=declaration}return ExportDefaultDeclaration}(),exports$1.ExportNamedDeclaration=function(){function ExportNamedDeclaration(declaration,specifiers,source){this.type=syntax_1.Syntax.ExportNamedDeclaration,this.declaration=declaration,this.specifiers=specifiers,this.source=source}return ExportNamedDeclaration}(),exports$1.ExportSpecifier=function(){function ExportSpecifier(local,exported){this.type=syntax_1.Syntax.ExportSpecifier,this.exported=exported,this.local=local}return ExportSpecifier}(),exports$1.ExpressionStatement=function(){function ExpressionStatement(expression){this.type=syntax_1.Syntax.ExpressionStatement,this.expression=expression}return ExpressionStatement}(),exports$1.ForInStatement=function(){function ForInStatement(left,right,body){this.type=syntax_1.Syntax.ForInStatement,this.left=left,this.right=right,this.body=body,this.each=!1}return ForInStatement}(),exports$1.ForOfStatement=function(){function ForOfStatement(left,right,body){this.type=syntax_1.Syntax.ForOfStatement,this.left=left,this.right=right,this.body=body}return ForOfStatement}(),exports$1.ForStatement=function(){function ForStatement(init,test,update,body){this.type=syntax_1.Syntax.ForStatement,this.init=init,this.test=test,this.update=update,this.body=body}return ForStatement}(),exports$1.FunctionDeclaration=function(){function FunctionDeclaration(id,params,body,generator){this.type=syntax_1.Syntax.FunctionDeclaration,this.id=id,this.params=params,this.body=body,this.generator=generator,this.expression=!1,this.async=!1}return FunctionDeclaration}(),exports$1.FunctionExpression=function(){function FunctionExpression(id,params,body,generator){this.type=syntax_1.Syntax.FunctionExpression,this.id=id,this.params=params,this.body=body,this.generator=generator,this.expression=!1,this.async=!1}return FunctionExpression}(),exports$1.Identifier=function(){function Identifier(name){this.type=syntax_1.Syntax.Identifier,this.name=name}return Identifier}(),exports$1.IfStatement=function(){function IfStatement(test,consequent,alternate){this.type=syntax_1.Syntax.IfStatement,this.test=test,this.consequent=consequent,this.alternate=alternate}return IfStatement}(),exports$1.ImportDeclaration=function(){function ImportDeclaration(specifiers,source){this.type=syntax_1.Syntax.ImportDeclaration,this.specifiers=specifiers,this.source=source}return ImportDeclaration}(),exports$1.ImportDefaultSpecifier=function(){function ImportDefaultSpecifier(local){this.type=syntax_1.Syntax.ImportDefaultSpecifier,this.local=local}return ImportDefaultSpecifier}(),exports$1.ImportNamespaceSpecifier=function(){function ImportNamespaceSpecifier(local){this.type=syntax_1.Syntax.ImportNamespaceSpecifier,this.local=local}return ImportNamespaceSpecifier}(),exports$1.ImportSpecifier=function(){function ImportSpecifier(local,imported){this.type=syntax_1.Syntax.ImportSpecifier,this.local=local,this.imported=imported}return ImportSpecifier}(),exports$1.LabeledStatement=function(){function LabeledStatement(label,body){this.type=syntax_1.Syntax.LabeledStatement,this.label=label,this.body=body}return LabeledStatement}(),exports$1.Literal=function(){function Literal(value,raw){this.type=syntax_1.Syntax.Literal,this.value=value,this.raw=raw}return Literal}(),exports$1.MetaProperty=function(){function MetaProperty(meta,property){this.type=syntax_1.Syntax.MetaProperty,this.meta=meta,this.property=property}return MetaProperty}(),exports$1.MethodDefinition=function(){function MethodDefinition(key,computed,value,kind,isStatic){this.type=syntax_1.Syntax.MethodDefinition,this.key=key,this.computed=computed,this.value=value,this.kind=kind,this.static=isStatic}return MethodDefinition}(),exports$1.Module=function(){function Module(body){this.type=syntax_1.Syntax.Program,this.body=body,this.sourceType=`module`}return Module}(),exports$1.NewExpression=function(){function NewExpression(callee,args){this.type=syntax_1.Syntax.NewExpression,this.callee=callee,this.arguments=args}return NewExpression}(),exports$1.ObjectExpression=function(){function ObjectExpression(properties){this.type=syntax_1.Syntax.ObjectExpression,this.properties=properties}return ObjectExpression}(),exports$1.ObjectPattern=function(){function ObjectPattern(properties){this.type=syntax_1.Syntax.ObjectPattern,this.properties=properties}return ObjectPattern}(),exports$1.Property=function(){function Property(kind,key,computed,value,method,shorthand){this.type=syntax_1.Syntax.Property,this.key=key,this.computed=computed,this.value=value,this.kind=kind,this.method=method,this.shorthand=shorthand}return Property}(),exports$1.RegexLiteral=function(){function RegexLiteral(value,raw,pattern,flags){this.type=syntax_1.Syntax.Literal,this.value=value,this.raw=raw,this.regex={pattern,flags}}return RegexLiteral}(),exports$1.RestElement=function(){function RestElement(argument){this.type=syntax_1.Syntax.RestElement,this.argument=argument}return RestElement}(),exports$1.ReturnStatement=function(){function ReturnStatement(argument){this.type=syntax_1.Syntax.ReturnStatement,this.argument=argument}return ReturnStatement}(),exports$1.Script=function(){function Script(body){this.type=syntax_1.Syntax.Program,this.body=body,this.sourceType=`script`}return Script}(),exports$1.SequenceExpression=function(){function SequenceExpression(expressions){this.type=syntax_1.Syntax.SequenceExpression,this.expressions=expressions}return SequenceExpression}(),exports$1.SpreadElement=function(){function SpreadElement(argument){this.type=syntax_1.Syntax.SpreadElement,this.argument=argument}return SpreadElement}(),exports$1.StaticMemberExpression=function(){function StaticMemberExpression(object,property){this.type=syntax_1.Syntax.MemberExpression,this.computed=!1,this.object=object,this.property=property}return StaticMemberExpression}(),exports$1.Super=function(){function Super(){this.type=syntax_1.Syntax.Super}return Super}(),exports$1.SwitchCase=function(){function SwitchCase(test,consequent){this.type=syntax_1.Syntax.SwitchCase,this.test=test,this.consequent=consequent}return SwitchCase}(),exports$1.SwitchStatement=function(){function SwitchStatement(discriminant,cases){this.type=syntax_1.Syntax.SwitchStatement,this.discriminant=discriminant,this.cases=cases}return SwitchStatement}(),exports$1.TaggedTemplateExpression=function(){function TaggedTemplateExpression(tag,quasi){this.type=syntax_1.Syntax.TaggedTemplateExpression,this.tag=tag,this.quasi=quasi}return TaggedTemplateExpression}(),exports$1.TemplateElement=function(){function TemplateElement(value,tail){this.type=syntax_1.Syntax.TemplateElement,this.value=value,this.tail=tail}return TemplateElement}(),exports$1.TemplateLiteral=function(){function TemplateLiteral(quasis,expressions){this.type=syntax_1.Syntax.TemplateLiteral,this.quasis=quasis,this.expressions=expressions}return TemplateLiteral}(),exports$1.ThisExpression=function(){function ThisExpression(){this.type=syntax_1.Syntax.ThisExpression}return ThisExpression}(),exports$1.ThrowStatement=function(){function ThrowStatement(argument){this.type=syntax_1.Syntax.ThrowStatement,this.argument=argument}return ThrowStatement}(),exports$1.TryStatement=function(){function TryStatement(block,handler,finalizer){this.type=syntax_1.Syntax.TryStatement,this.block=block,this.handler=handler,this.finalizer=finalizer}return TryStatement}(),exports$1.UnaryExpression=function(){function UnaryExpression(operator,argument){this.type=syntax_1.Syntax.UnaryExpression,this.operator=operator,this.argument=argument,this.prefix=!0}return UnaryExpression}(),exports$1.UpdateExpression=function(){function UpdateExpression(operator,argument,prefix){this.type=syntax_1.Syntax.UpdateExpression,this.operator=operator,this.argument=argument,this.prefix=prefix}return UpdateExpression}(),exports$1.VariableDeclaration=function(){function VariableDeclaration(declarations,kind){this.type=syntax_1.Syntax.VariableDeclaration,this.declarations=declarations,this.kind=kind}return VariableDeclaration}(),exports$1.VariableDeclarator=function(){function VariableDeclarator(id,init){this.type=syntax_1.Syntax.VariableDeclarator,this.id=id,this.init=init}return VariableDeclarator}(),exports$1.WhileStatement=function(){function WhileStatement(test,body){this.type=syntax_1.Syntax.WhileStatement,this.test=test,this.body=body}return WhileStatement}(),exports$1.WithStatement=function(){function WithStatement(object,body){this.type=syntax_1.Syntax.WithStatement,this.object=object,this.body=body}return WithStatement}(),exports$1.YieldExpression=function(){function YieldExpression(argument,delegate){this.type=syntax_1.Syntax.YieldExpression,this.argument=argument,this.delegate=delegate}return YieldExpression}()},function(module$1,exports$1,__webpack_require__){Object.defineProperty(exports$1,`__esModule`,{value:!0});var assert_1=__webpack_require__(9),error_handler_1=__webpack_require__(10),messages_1=__webpack_require__(11),Node=__webpack_require__(7),scanner_1=__webpack_require__(12),syntax_1=__webpack_require__(2),token_1=__webpack_require__(13),ArrowParameterPlaceHolder=`ArrowParameterPlaceHolder`;exports$1.Parser=function(){function Parser$1(code,options,delegate){options===void 0&&(options={}),this.config={range:typeof options.range==`boolean`&&options.range,loc:typeof options.loc==`boolean`&&options.loc,source:null,tokens:typeof options.tokens==`boolean`&&options.tokens,comment:typeof options.comment==`boolean`&&options.comment,tolerant:typeof options.tolerant==`boolean`&&options.tolerant},this.config.loc&&options.source&&options.source!==null&&(this.config.source=String(options.source)),this.delegate=delegate,this.errorHandler=new error_handler_1.ErrorHandler,this.errorHandler.tolerant=this.config.tolerant,this.scanner=new scanner_1.Scanner(code,this.errorHandler),this.scanner.trackComment=this.config.comment,this.operatorPrecedence={")":0,";":0,",":0,"=":0,"]":0,"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":11,"/":11,"%":11},this.lookahead={type:2,value:``,lineNumber:this.scanner.lineNumber,lineStart:0,start:0,end:0},this.hasLineTerminator=!1,this.context={isModule:!1,await:!1,allowIn:!0,allowStrictDirective:!0,allowYield:!0,firstCoverInitializedNameError:null,isAssignmentTarget:!1,isBindingElement:!1,inFunctionBody:!1,inIteration:!1,inSwitch:!1,labelSet:{},strict:!1},this.tokens=[],this.startMarker={index:0,line:this.scanner.lineNumber,column:0},this.lastMarker={index:0,line:this.scanner.lineNumber,column:0},this.nextToken(),this.lastMarker={index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}return Parser$1.prototype.throwError=function(messageFormat){var args=Array.prototype.slice.call(arguments,1),msg=messageFormat.replace(/%(\d)/g,function(whole,idx){return assert_1.assert(idx<args.length,`Message reference must be in range`),args[idx]}),index=this.lastMarker.index,line=this.lastMarker.line,column=this.lastMarker.column+1;throw this.errorHandler.createError(index,line,column,msg)},Parser$1.prototype.tolerateError=function(messageFormat){var args=Array.prototype.slice.call(arguments,1),msg=messageFormat.replace(/%(\d)/g,function(whole,idx){return assert_1.assert(idx<args.length,`Message reference must be in range`),args[idx]}),index=this.lastMarker.index,line=this.scanner.lineNumber,column=this.lastMarker.column+1;this.errorHandler.tolerateError(index,line,column,msg)},Parser$1.prototype.unexpectedTokenError=function(token,message$1){var msg=message$1||messages_1.Messages.UnexpectedToken,value;if(token?(message$1||(msg=token.type===2?messages_1.Messages.UnexpectedEOS:token.type===3?messages_1.Messages.UnexpectedIdentifier:token.type===6?messages_1.Messages.UnexpectedNumber:token.type===8?messages_1.Messages.UnexpectedString:token.type===10?messages_1.Messages.UnexpectedTemplate:messages_1.Messages.UnexpectedToken,token.type===4&&(this.scanner.isFutureReservedWord(token.value)?msg=messages_1.Messages.UnexpectedReserved:this.context.strict&&this.scanner.isStrictModeReservedWord(token.value)&&(msg=messages_1.Messages.StrictReservedWord))),value=token.value):value=`ILLEGAL`,msg=msg.replace(`%0`,value),token&&typeof token.lineNumber==`number`){var index=token.start,line=token.lineNumber,lastMarkerLineStart=this.lastMarker.index-this.lastMarker.column,column=token.start-lastMarkerLineStart+1;return this.errorHandler.createError(index,line,column,msg)}else{var index=this.lastMarker.index,line=this.lastMarker.line,column=this.lastMarker.column+1;return this.errorHandler.createError(index,line,column,msg)}},Parser$1.prototype.throwUnexpectedToken=function(token,message$1){throw this.unexpectedTokenError(token,message$1)},Parser$1.prototype.tolerateUnexpectedToken=function(token,message$1){this.errorHandler.tolerate(this.unexpectedTokenError(token,message$1))},Parser$1.prototype.collectComments=function(){if(!this.config.comment)this.scanner.scanComments();else{var comments=this.scanner.scanComments();if(comments.length>0&&this.delegate)for(var i=0;i<comments.length;++i){var e$1=comments[i],node=void 0;node={type:e$1.multiLine?`BlockComment`:`LineComment`,value:this.scanner.source.slice(e$1.slice[0],e$1.slice[1])},this.config.range&&(node.range=e$1.range),this.config.loc&&(node.loc=e$1.loc);var metadata={start:{line:e$1.loc.start.line,column:e$1.loc.start.column,offset:e$1.range[0]},end:{line:e$1.loc.end.line,column:e$1.loc.end.column,offset:e$1.range[1]}};this.delegate(node,metadata)}}},Parser$1.prototype.getTokenRaw=function(token){return this.scanner.source.slice(token.start,token.end)},Parser$1.prototype.convertToken=function(token){var t={type:token_1.TokenName[token.type],value:this.getTokenRaw(token)};return this.config.range&&(t.range=[token.start,token.end]),this.config.loc&&(t.loc={start:{line:this.startMarker.line,column:this.startMarker.column},end:{line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}),token.type===9&&(t.regex={pattern:token.pattern,flags:token.flags}),t},Parser$1.prototype.nextToken=function(){var token=this.lookahead;this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.collectComments(),this.scanner.index!==this.startMarker.index&&(this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart);var next=this.scanner.lex();return this.hasLineTerminator=token.lineNumber!==next.lineNumber,next&&this.context.strict&&next.type===3&&this.scanner.isStrictModeReservedWord(next.value)&&(next.type=4),this.lookahead=next,this.config.tokens&&next.type!==2&&this.tokens.push(this.convertToken(next)),token},Parser$1.prototype.nextRegexToken=function(){this.collectComments();var token=this.scanner.scanRegExp();return this.config.tokens&&(this.tokens.pop(),this.tokens.push(this.convertToken(token))),this.lookahead=token,this.nextToken(),token},Parser$1.prototype.createNode=function(){return{index:this.startMarker.index,line:this.startMarker.line,column:this.startMarker.column}},Parser$1.prototype.startNode=function(token,lastLineStart){lastLineStart===void 0&&(lastLineStart=0);var column=token.start-token.lineStart,line=token.lineNumber;return column<0&&(column+=lastLineStart,line--),{index:token.start,line,column}},Parser$1.prototype.finalize=function(marker,node){if(this.config.range&&(node.range=[marker.index,this.lastMarker.index]),this.config.loc&&(node.loc={start:{line:marker.line,column:marker.column},end:{line:this.lastMarker.line,column:this.lastMarker.column}},this.config.source&&(node.loc.source=this.config.source)),this.delegate){var metadata={start:{line:marker.line,column:marker.column,offset:marker.index},end:{line:this.lastMarker.line,column:this.lastMarker.column,offset:this.lastMarker.index}};this.delegate(node,metadata)}return node},Parser$1.prototype.expect=function(value){var token=this.nextToken();(token.type!==7||token.value!==value)&&this.throwUnexpectedToken(token)},Parser$1.prototype.expectCommaSeparator=function(){if(this.config.tolerant){var token=this.lookahead;token.type===7&&token.value===`,`?this.nextToken():token.type===7&&token.value===`;`?(this.nextToken(),this.tolerateUnexpectedToken(token)):this.tolerateUnexpectedToken(token,messages_1.Messages.UnexpectedToken)}else this.expect(`,`)},Parser$1.prototype.expectKeyword=function(keyword){var token=this.nextToken();(token.type!==4||token.value!==keyword)&&this.throwUnexpectedToken(token)},Parser$1.prototype.match=function(value){return this.lookahead.type===7&&this.lookahead.value===value},Parser$1.prototype.matchKeyword=function(keyword){return this.lookahead.type===4&&this.lookahead.value===keyword},Parser$1.prototype.matchContextualKeyword=function(keyword){return this.lookahead.type===3&&this.lookahead.value===keyword},Parser$1.prototype.matchAssign=function(){if(this.lookahead.type!==7)return!1;var op=this.lookahead.value;return op===`=`||op===`*=`||op===`**=`||op===`/=`||op===`%=`||op===`+=`||op===`-=`||op===`<<=`||op===`>>=`||op===`>>>=`||op===`&=`||op===`^=`||op===`|=`},Parser$1.prototype.isolateCoverGrammar=function(parseFunction){var previousIsBindingElement=this.context.isBindingElement,previousIsAssignmentTarget=this.context.isAssignmentTarget,previousFirstCoverInitializedNameError=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var result=parseFunction.call(this);return this.context.firstCoverInitializedNameError!==null&&this.throwUnexpectedToken(this.context.firstCoverInitializedNameError),this.context.isBindingElement=previousIsBindingElement,this.context.isAssignmentTarget=previousIsAssignmentTarget,this.context.firstCoverInitializedNameError=previousFirstCoverInitializedNameError,result},Parser$1.prototype.inheritCoverGrammar=function(parseFunction){var previousIsBindingElement=this.context.isBindingElement,previousIsAssignmentTarget=this.context.isAssignmentTarget,previousFirstCoverInitializedNameError=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var result=parseFunction.call(this);return this.context.isBindingElement=this.context.isBindingElement&&previousIsBindingElement,this.context.isAssignmentTarget=this.context.isAssignmentTarget&&previousIsAssignmentTarget,this.context.firstCoverInitializedNameError=previousFirstCoverInitializedNameError||this.context.firstCoverInitializedNameError,result},Parser$1.prototype.consumeSemicolon=function(){this.match(`;`)?this.nextToken():this.hasLineTerminator||(this.lookahead.type!==2&&!this.match(`}`)&&this.throwUnexpectedToken(this.lookahead),this.lastMarker.index=this.startMarker.index,this.lastMarker.line=this.startMarker.line,this.lastMarker.column=this.startMarker.column)},Parser$1.prototype.parsePrimaryExpression=function(){var node=this.createNode(),expr,token,raw;switch(this.lookahead.type){case 3:(this.context.isModule||this.context.await)&&this.lookahead.value===`await`&&this.tolerateUnexpectedToken(this.lookahead),expr=this.matchAsyncFunction()?this.parseFunctionExpression():this.finalize(node,new Node.Identifier(this.nextToken().value));break;case 6:case 8:this.context.strict&&this.lookahead.octal&&this.tolerateUnexpectedToken(this.lookahead,messages_1.Messages.StrictOctalLiteral),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,token=this.nextToken(),raw=this.getTokenRaw(token),expr=this.finalize(node,new Node.Literal(token.value,raw));break;case 1:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,token=this.nextToken(),raw=this.getTokenRaw(token),expr=this.finalize(node,new Node.Literal(token.value===`true`,raw));break;case 5:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,token=this.nextToken(),raw=this.getTokenRaw(token),expr=this.finalize(node,new Node.Literal(null,raw));break;case 10:expr=this.parseTemplateLiteral();break;case 7:switch(this.lookahead.value){case`(`:this.context.isBindingElement=!1,expr=this.inheritCoverGrammar(this.parseGroupExpression);break;case`[`:expr=this.inheritCoverGrammar(this.parseArrayInitializer);break;case`{`:expr=this.inheritCoverGrammar(this.parseObjectInitializer);break;case`/`:case`/=`:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.scanner.index=this.startMarker.index,token=this.nextRegexToken(),raw=this.getTokenRaw(token),expr=this.finalize(node,new Node.RegexLiteral(token.regex,raw,token.pattern,token.flags));break;default:expr=this.throwUnexpectedToken(this.nextToken())}break;case 4:!this.context.strict&&this.context.allowYield&&this.matchKeyword(`yield`)?expr=this.parseIdentifierName():!this.context.strict&&this.matchKeyword(`let`)?expr=this.finalize(node,new Node.Identifier(this.nextToken().value)):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.matchKeyword(`function`)?expr=this.parseFunctionExpression():this.matchKeyword(`this`)?(this.nextToken(),expr=this.finalize(node,new Node.ThisExpression)):expr=this.matchKeyword(`class`)?this.parseClassExpression():this.throwUnexpectedToken(this.nextToken()));break;default:expr=this.throwUnexpectedToken(this.nextToken())}return expr},Parser$1.prototype.parseSpreadElement=function(){var node=this.createNode();this.expect(`...`);var arg=this.inheritCoverGrammar(this.parseAssignmentExpression);return this.finalize(node,new Node.SpreadElement(arg))},Parser$1.prototype.parseArrayInitializer=function(){var node=this.createNode(),elements=[];for(this.expect(`[`);!this.match(`]`);)if(this.match(`,`))this.nextToken(),elements.push(null);else if(this.match(`...`)){var element=this.parseSpreadElement();this.match(`]`)||(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.expect(`,`)),elements.push(element)}else elements.push(this.inheritCoverGrammar(this.parseAssignmentExpression)),this.match(`]`)||this.expect(`,`);return this.expect(`]`),this.finalize(node,new Node.ArrayExpression(elements))},Parser$1.prototype.parsePropertyMethod=function(params){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var previousStrict=this.context.strict,previousAllowStrictDirective=this.context.allowStrictDirective;this.context.allowStrictDirective=params.simple;var body=this.isolateCoverGrammar(this.parseFunctionSourceElements);return this.context.strict&&params.firstRestricted&&this.tolerateUnexpectedToken(params.firstRestricted,params.message),this.context.strict&&params.stricted&&this.tolerateUnexpectedToken(params.stricted,params.message),this.context.strict=previousStrict,this.context.allowStrictDirective=previousAllowStrictDirective,body},Parser$1.prototype.parsePropertyMethodFunction=function(){var isGenerator=!1,node=this.createNode(),previousAllowYield=this.context.allowYield;this.context.allowYield=!0;var params=this.parseFormalParameters(),method=this.parsePropertyMethod(params);return this.context.allowYield=previousAllowYield,this.finalize(node,new Node.FunctionExpression(null,params.params,method,isGenerator))},Parser$1.prototype.parsePropertyMethodAsyncFunction=function(){var node=this.createNode(),previousAllowYield=this.context.allowYield,previousAwait=this.context.await;this.context.allowYield=!1,this.context.await=!0;var params=this.parseFormalParameters(),method=this.parsePropertyMethod(params);return this.context.allowYield=previousAllowYield,this.context.await=previousAwait,this.finalize(node,new Node.AsyncFunctionExpression(null,params.params,method))},Parser$1.prototype.parseObjectPropertyKey=function(){var node=this.createNode(),token=this.nextToken(),key;switch(token.type){case 8:case 6:this.context.strict&&token.octal&&this.tolerateUnexpectedToken(token,messages_1.Messages.StrictOctalLiteral);var raw=this.getTokenRaw(token);key=this.finalize(node,new Node.Literal(token.value,raw));break;case 3:case 1:case 5:case 4:key=this.finalize(node,new Node.Identifier(token.value));break;case 7:token.value===`[`?(key=this.isolateCoverGrammar(this.parseAssignmentExpression),this.expect(`]`)):key=this.throwUnexpectedToken(token);break;default:key=this.throwUnexpectedToken(token)}return key},Parser$1.prototype.isPropertyKey=function(key,value){return key.type===syntax_1.Syntax.Identifier&&key.name===value||key.type===syntax_1.Syntax.Literal&&key.value===value},Parser$1.prototype.parseObjectProperty=function(hasProto){var node=this.createNode(),token=this.lookahead,kind,key=null,value=null,computed=!1,method=!1,shorthand=!1,isAsync=!1;if(token.type===3){var id=token.value;this.nextToken(),computed=this.match(`[`),isAsync=!this.hasLineTerminator&&id===`async`&&!this.match(`:`)&&!this.match(`(`)&&!this.match(`*`)&&!this.match(`,`),key=isAsync?this.parseObjectPropertyKey():this.finalize(node,new Node.Identifier(id))}else this.match(`*`)?this.nextToken():(computed=this.match(`[`),key=this.parseObjectPropertyKey());var lookaheadPropertyKey=this.qualifiedPropertyName(this.lookahead);if(token.type===3&&!isAsync&&token.value===`get`&&lookaheadPropertyKey)kind=`get`,computed=this.match(`[`),key=this.parseObjectPropertyKey(),this.context.allowYield=!1,value=this.parseGetterMethod();else if(token.type===3&&!isAsync&&token.value===`set`&&lookaheadPropertyKey)kind=`set`,computed=this.match(`[`),key=this.parseObjectPropertyKey(),value=this.parseSetterMethod();else if(token.type===7&&token.value===`*`&&lookaheadPropertyKey)kind=`init`,computed=this.match(`[`),key=this.parseObjectPropertyKey(),value=this.parseGeneratorMethod(),method=!0;else if(key||this.throwUnexpectedToken(this.lookahead),kind=`init`,this.match(`:`)&&!isAsync)!computed&&this.isPropertyKey(key,`__proto__`)&&(hasProto.value&&this.tolerateError(messages_1.Messages.DuplicateProtoProperty),hasProto.value=!0),this.nextToken(),value=this.inheritCoverGrammar(this.parseAssignmentExpression);else if(this.match(`(`))value=isAsync?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),method=!0;else if(token.type===3){var id=this.finalize(node,new Node.Identifier(token.value));if(this.match(`=`)){this.context.firstCoverInitializedNameError=this.lookahead,this.nextToken(),shorthand=!0;var init=this.isolateCoverGrammar(this.parseAssignmentExpression);value=this.finalize(node,new Node.AssignmentPattern(id,init))}else shorthand=!0,value=id}else this.throwUnexpectedToken(this.nextToken());return this.finalize(node,new Node.Property(kind,key,computed,value,method,shorthand))},Parser$1.prototype.parseObjectInitializer=function(){var node=this.createNode();this.expect(`{`);for(var properties=[],hasProto={value:!1};!this.match(`}`);)properties.push(this.parseObjectProperty(hasProto)),this.match(`}`)||this.expectCommaSeparator();return this.expect(`}`),this.finalize(node,new Node.ObjectExpression(properties))},Parser$1.prototype.parseTemplateHead=function(){assert_1.assert(this.lookahead.head,`Template literal must start with a template head`);var node=this.createNode(),token=this.nextToken(),raw=token.value,cooked=token.cooked;return this.finalize(node,new Node.TemplateElement({raw,cooked},token.tail))},Parser$1.prototype.parseTemplateElement=function(){this.lookahead.type!==10&&this.throwUnexpectedToken();var node=this.createNode(),token=this.nextToken(),raw=token.value,cooked=token.cooked;return this.finalize(node,new Node.TemplateElement({raw,cooked},token.tail))},Parser$1.prototype.parseTemplateLiteral=function(){var node=this.createNode(),expressions=[],quasis=[],quasi=this.parseTemplateHead();for(quasis.push(quasi);!quasi.tail;)expressions.push(this.parseExpression()),quasi=this.parseTemplateElement(),quasis.push(quasi);return this.finalize(node,new Node.TemplateLiteral(quasis,expressions))},Parser$1.prototype.reinterpretExpressionAsPattern=function(expr){switch(expr.type){case syntax_1.Syntax.Identifier:case syntax_1.Syntax.MemberExpression:case syntax_1.Syntax.RestElement:case syntax_1.Syntax.AssignmentPattern:break;case syntax_1.Syntax.SpreadElement:expr.type=syntax_1.Syntax.RestElement,this.reinterpretExpressionAsPattern(expr.argument);break;case syntax_1.Syntax.ArrayExpression:expr.type=syntax_1.Syntax.ArrayPattern;for(var i=0;i<expr.elements.length;i++)expr.elements[i]!==null&&this.reinterpretExpressionAsPattern(expr.elements[i]);break;case syntax_1.Syntax.ObjectExpression:expr.type=syntax_1.Syntax.ObjectPattern;for(var i=0;i<expr.properties.length;i++)this.reinterpretExpressionAsPattern(expr.properties[i].value);break;case syntax_1.Syntax.AssignmentExpression:expr.type=syntax_1.Syntax.AssignmentPattern,delete expr.operator,this.reinterpretExpressionAsPattern(expr.left);break;default:break}},Parser$1.prototype.parseGroupExpression=function(){var expr;if(this.expect(`(`),this.match(`)`))this.nextToken(),this.match(`=>`)||this.expect(`=>`),expr={type:ArrowParameterPlaceHolder,params:[],async:!1};else{var startToken=this.lookahead,params=[];if(this.match(`...`))expr=this.parseRestElement(params),this.expect(`)`),this.match(`=>`)||this.expect(`=>`),expr={type:ArrowParameterPlaceHolder,params:[expr],async:!1};else{var arrow=!1;if(this.context.isBindingElement=!0,expr=this.inheritCoverGrammar(this.parseAssignmentExpression),this.match(`,`)){var expressions=[];for(this.context.isAssignmentTarget=!1,expressions.push(expr);this.lookahead.type!==2&&this.match(`,`);){if(this.nextToken(),this.match(`)`)){this.nextToken();for(var i=0;i<expressions.length;i++)this.reinterpretExpressionAsPattern(expressions[i]);arrow=!0,expr={type:ArrowParameterPlaceHolder,params:expressions,async:!1}}else if(this.match(`...`)){this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),expressions.push(this.parseRestElement(params)),this.expect(`)`),this.match(`=>`)||this.expect(`=>`),this.context.isBindingElement=!1;for(var i=0;i<expressions.length;i++)this.reinterpretExpressionAsPattern(expressions[i]);arrow=!0,expr={type:ArrowParameterPlaceHolder,params:expressions,async:!1}}else expressions.push(this.inheritCoverGrammar(this.parseAssignmentExpression));if(arrow)break}arrow||(expr=this.finalize(this.startNode(startToken),new Node.SequenceExpression(expressions)))}if(!arrow){if(this.expect(`)`),this.match(`=>`)&&(expr.type===syntax_1.Syntax.Identifier&&expr.name===`yield`&&(arrow=!0,expr={type:ArrowParameterPlaceHolder,params:[expr],async:!1}),!arrow)){if(this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),expr.type===syntax_1.Syntax.SequenceExpression)for(var i=0;i<expr.expressions.length;i++)this.reinterpretExpressionAsPattern(expr.expressions[i]);else this.reinterpretExpressionAsPattern(expr);expr={type:ArrowParameterPlaceHolder,params:expr.type===syntax_1.Syntax.SequenceExpression?expr.expressions:[expr],async:!1}}this.context.isBindingElement=!1}}}return expr},Parser$1.prototype.parseArguments=function(){this.expect(`(`);var args=[];if(!this.match(`)`))for(;;){var expr=this.match(`...`)?this.parseSpreadElement():this.isolateCoverGrammar(this.parseAssignmentExpression);if(args.push(expr),this.match(`)`)||(this.expectCommaSeparator(),this.match(`)`)))break}return this.expect(`)`),args},Parser$1.prototype.isIdentifierName=function(token){return token.type===3||token.type===4||token.type===1||token.type===5},Parser$1.prototype.parseIdentifierName=function(){var node=this.createNode(),token=this.nextToken();return this.isIdentifierName(token)||this.throwUnexpectedToken(token),this.finalize(node,new Node.Identifier(token.value))},Parser$1.prototype.parseNewExpression=function(){var node=this.createNode(),id=this.parseIdentifierName();assert_1.assert(id.name===`new`,"New expression must start with `new`");var expr;if(this.match(`.`))if(this.nextToken(),this.lookahead.type===3&&this.context.inFunctionBody&&this.lookahead.value===`target`){var property=this.parseIdentifierName();expr=new Node.MetaProperty(id,property)}else this.throwUnexpectedToken(this.lookahead);else{var callee=this.isolateCoverGrammar(this.parseLeftHandSideExpression),args=this.match(`(`)?this.parseArguments():[];expr=new Node.NewExpression(callee,args),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return this.finalize(node,expr)},Parser$1.prototype.parseAsyncArgument=function(){var arg=this.parseAssignmentExpression();return this.context.firstCoverInitializedNameError=null,arg},Parser$1.prototype.parseAsyncArguments=function(){this.expect(`(`);var args=[];if(!this.match(`)`))for(;;){var expr=this.match(`...`)?this.parseSpreadElement():this.isolateCoverGrammar(this.parseAsyncArgument);if(args.push(expr),this.match(`)`)||(this.expectCommaSeparator(),this.match(`)`)))break}return this.expect(`)`),args},Parser$1.prototype.parseLeftHandSideExpressionAllowCall=function(){var startToken=this.lookahead,maybeAsync=this.matchContextualKeyword(`async`),previousAllowIn=this.context.allowIn;this.context.allowIn=!0;var expr;for(this.matchKeyword(`super`)&&this.context.inFunctionBody?(expr=this.createNode(),this.nextToken(),expr=this.finalize(expr,new Node.Super),!this.match(`(`)&&!this.match(`.`)&&!this.match(`[`)&&this.throwUnexpectedToken(this.lookahead)):expr=this.inheritCoverGrammar(this.matchKeyword(`new`)?this.parseNewExpression:this.parsePrimaryExpression);;)if(this.match(`.`)){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect(`.`);var property=this.parseIdentifierName();expr=this.finalize(this.startNode(startToken),new Node.StaticMemberExpression(expr,property))}else if(this.match(`(`)){var asyncArrow=maybeAsync&&startToken.lineNumber===this.lookahead.lineNumber;this.context.isBindingElement=!1,this.context.isAssignmentTarget=!1;var args=asyncArrow?this.parseAsyncArguments():this.parseArguments();if(expr=this.finalize(this.startNode(startToken),new Node.CallExpression(expr,args)),asyncArrow&&this.match(`=>`)){for(var i=0;i<args.length;++i)this.reinterpretExpressionAsPattern(args[i]);expr={type:ArrowParameterPlaceHolder,params:args,async:!0}}}else if(this.match(`[`)){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect(`[`);var property=this.isolateCoverGrammar(this.parseExpression);this.expect(`]`),expr=this.finalize(this.startNode(startToken),new Node.ComputedMemberExpression(expr,property))}else if(this.lookahead.type===10&&this.lookahead.head){var quasi=this.parseTemplateLiteral();expr=this.finalize(this.startNode(startToken),new Node.TaggedTemplateExpression(expr,quasi))}else break;return this.context.allowIn=previousAllowIn,expr},Parser$1.prototype.parseSuper=function(){var node=this.createNode();return this.expectKeyword(`super`),!this.match(`[`)&&!this.match(`.`)&&this.throwUnexpectedToken(this.lookahead),this.finalize(node,new Node.Super)},Parser$1.prototype.parseLeftHandSideExpression=function(){assert_1.assert(this.context.allowIn,`callee of new expression always allow in keyword.`);for(var node=this.startNode(this.lookahead),expr=this.matchKeyword(`super`)&&this.context.inFunctionBody?this.parseSuper():this.inheritCoverGrammar(this.matchKeyword(`new`)?this.parseNewExpression:this.parsePrimaryExpression);;)if(this.match(`[`)){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect(`[`);var property=this.isolateCoverGrammar(this.parseExpression);this.expect(`]`),expr=this.finalize(node,new Node.ComputedMemberExpression(expr,property))}else if(this.match(`.`)){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect(`.`);var property=this.parseIdentifierName();expr=this.finalize(node,new Node.StaticMemberExpression(expr,property))}else if(this.lookahead.type===10&&this.lookahead.head){var quasi=this.parseTemplateLiteral();expr=this.finalize(node,new Node.TaggedTemplateExpression(expr,quasi))}else break;return expr},Parser$1.prototype.parseUpdateExpression=function(){var expr,startToken=this.lookahead;if(this.match(`++`)||this.match(`--`)){var node=this.startNode(startToken),token=this.nextToken();expr=this.inheritCoverGrammar(this.parseUnaryExpression),this.context.strict&&expr.type===syntax_1.Syntax.Identifier&&this.scanner.isRestrictedWord(expr.name)&&this.tolerateError(messages_1.Messages.StrictLHSPrefix),this.context.isAssignmentTarget||this.tolerateError(messages_1.Messages.InvalidLHSInAssignment);var prefix=!0;expr=this.finalize(node,new Node.UpdateExpression(token.value,expr,prefix)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}else if(expr=this.inheritCoverGrammar(this.parseLeftHandSideExpressionAllowCall),!this.hasLineTerminator&&this.lookahead.type===7&&(this.match(`++`)||this.match(`--`))){this.context.strict&&expr.type===syntax_1.Syntax.Identifier&&this.scanner.isRestrictedWord(expr.name)&&this.tolerateError(messages_1.Messages.StrictLHSPostfix),this.context.isAssignmentTarget||this.tolerateError(messages_1.Messages.InvalidLHSInAssignment),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var operator=this.nextToken().value,prefix=!1;expr=this.finalize(this.startNode(startToken),new Node.UpdateExpression(operator,expr,prefix))}return expr},Parser$1.prototype.parseAwaitExpression=function(){var node=this.createNode();this.nextToken();var argument=this.parseUnaryExpression();return this.finalize(node,new Node.AwaitExpression(argument))},Parser$1.prototype.parseUnaryExpression=function(){var expr;if(this.match(`+`)||this.match(`-`)||this.match(`~`)||this.match(`!`)||this.matchKeyword(`delete`)||this.matchKeyword(`void`)||this.matchKeyword(`typeof`)){var node=this.startNode(this.lookahead),token=this.nextToken();expr=this.inheritCoverGrammar(this.parseUnaryExpression),expr=this.finalize(node,new Node.UnaryExpression(token.value,expr)),this.context.strict&&expr.operator===`delete`&&expr.argument.type===syntax_1.Syntax.Identifier&&this.tolerateError(messages_1.Messages.StrictDelete),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}else expr=this.context.await&&this.matchContextualKeyword(`await`)?this.parseAwaitExpression():this.parseUpdateExpression();return expr},Parser$1.prototype.parseExponentiationExpression=function(){var startToken=this.lookahead,expr=this.inheritCoverGrammar(this.parseUnaryExpression);if(expr.type!==syntax_1.Syntax.UnaryExpression&&this.match(`**`)){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var left=expr,right=this.isolateCoverGrammar(this.parseExponentiationExpression);expr=this.finalize(this.startNode(startToken),new Node.BinaryExpression(`**`,left,right))}return expr},Parser$1.prototype.binaryPrecedence=function(token){var op=token.value;return token.type===7?this.operatorPrecedence[op]||0:token.type===4&&(op===`instanceof`||this.context.allowIn&&op===`in`)?7:0},Parser$1.prototype.parseBinaryExpression=function(){var startToken=this.lookahead,expr=this.inheritCoverGrammar(this.parseExponentiationExpression),token=this.lookahead,prec=this.binaryPrecedence(token);if(prec>0){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;for(var markers=[startToken,this.lookahead],left=expr,right=this.isolateCoverGrammar(this.parseExponentiationExpression),stack=[left,token.value,right],precedences=[prec];prec=this.binaryPrecedence(this.lookahead),!(prec<=0);){for(;stack.length>2&&prec<=precedences[precedences.length-1];){right=stack.pop();var operator=stack.pop();precedences.pop(),left=stack.pop(),markers.pop();var node=this.startNode(markers[markers.length-1]);stack.push(this.finalize(node,new Node.BinaryExpression(operator,left,right)))}stack.push(this.nextToken().value),precedences.push(prec),markers.push(this.lookahead),stack.push(this.isolateCoverGrammar(this.parseExponentiationExpression))}var i=stack.length-1;expr=stack[i];for(var lastMarker=markers.pop();i>1;){var marker=markers.pop(),lastLineStart=lastMarker&&lastMarker.lineStart,node=this.startNode(marker,lastLineStart),operator=stack[i-1];expr=this.finalize(node,new Node.BinaryExpression(operator,stack[i-2],expr)),i-=2,lastMarker=marker}}return expr},Parser$1.prototype.parseConditionalExpression=function(){var startToken=this.lookahead,expr=this.inheritCoverGrammar(this.parseBinaryExpression);if(this.match(`?`)){this.nextToken();var previousAllowIn=this.context.allowIn;this.context.allowIn=!0;var consequent=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowIn=previousAllowIn,this.expect(`:`);var alternate=this.isolateCoverGrammar(this.parseAssignmentExpression);expr=this.finalize(this.startNode(startToken),new Node.ConditionalExpression(expr,consequent,alternate)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return expr},Parser$1.prototype.checkPatternParam=function(options,param){switch(param.type){case syntax_1.Syntax.Identifier:this.validateParam(options,param,param.name);break;case syntax_1.Syntax.RestElement:this.checkPatternParam(options,param.argument);break;case syntax_1.Syntax.AssignmentPattern:this.checkPatternParam(options,param.left);break;case syntax_1.Syntax.ArrayPattern:for(var i=0;i<param.elements.length;i++)param.elements[i]!==null&&this.checkPatternParam(options,param.elements[i]);break;case syntax_1.Syntax.ObjectPattern:for(var i=0;i<param.properties.length;i++)this.checkPatternParam(options,param.properties[i].value);break;default:break}options.simple=options.simple&&param instanceof Node.Identifier},Parser$1.prototype.reinterpretAsCoverFormalsList=function(expr){var params=[expr],options,asyncArrow=!1;switch(expr.type){case syntax_1.Syntax.Identifier:break;case ArrowParameterPlaceHolder:params=expr.params,asyncArrow=expr.async;break;default:return null}options={simple:!0,paramSet:{}};for(var i=0;i<params.length;++i){var param=params[i];param.type===syntax_1.Syntax.AssignmentPattern?param.right.type===syntax_1.Syntax.YieldExpression&&(param.right.argument&&this.throwUnexpectedToken(this.lookahead),param.right.type=syntax_1.Syntax.Identifier,param.right.name=`yield`,delete param.right.argument,delete param.right.delegate):asyncArrow&&param.type===syntax_1.Syntax.Identifier&&param.name===`await`&&this.throwUnexpectedToken(this.lookahead),this.checkPatternParam(options,param),params[i]=param}if(this.context.strict||!this.context.allowYield)for(var i=0;i<params.length;++i){var param=params[i];param.type===syntax_1.Syntax.YieldExpression&&this.throwUnexpectedToken(this.lookahead)}if(options.message===messages_1.Messages.StrictParamDupe){var token=this.context.strict?options.stricted:options.firstRestricted;this.throwUnexpectedToken(token,options.message)}return{simple:options.simple,params,stricted:options.stricted,firstRestricted:options.firstRestricted,message:options.message}},Parser$1.prototype.parseAssignmentExpression=function(){var expr;if(!this.context.allowYield&&this.matchKeyword(`yield`))expr=this.parseYieldExpression();else{var startToken=this.lookahead,token=startToken;if(expr=this.parseConditionalExpression(),token.type===3&&token.lineNumber===this.lookahead.lineNumber&&token.value===`async`&&(this.lookahead.type===3||this.matchKeyword(`yield`))){var arg=this.parsePrimaryExpression();this.reinterpretExpressionAsPattern(arg),expr={type:ArrowParameterPlaceHolder,params:[arg],async:!0}}if(expr.type===ArrowParameterPlaceHolder||this.match(`=>`)){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var isAsync=expr.async,list=this.reinterpretAsCoverFormalsList(expr);if(list){this.hasLineTerminator&&this.tolerateUnexpectedToken(this.lookahead),this.context.firstCoverInitializedNameError=null;var previousStrict=this.context.strict,previousAllowStrictDirective=this.context.allowStrictDirective;this.context.allowStrictDirective=list.simple;var previousAllowYield=this.context.allowYield,previousAwait=this.context.await;this.context.allowYield=!0,this.context.await=isAsync;var node=this.startNode(startToken);this.expect(`=>`);var body=void 0;if(this.match(`{`)){var previousAllowIn=this.context.allowIn;this.context.allowIn=!0,body=this.parseFunctionSourceElements(),this.context.allowIn=previousAllowIn}else body=this.isolateCoverGrammar(this.parseAssignmentExpression);var expression=body.type!==syntax_1.Syntax.BlockStatement;this.context.strict&&list.firstRestricted&&this.throwUnexpectedToken(list.firstRestricted,list.message),this.context.strict&&list.stricted&&this.tolerateUnexpectedToken(list.stricted,list.message),expr=isAsync?this.finalize(node,new Node.AsyncArrowFunctionExpression(list.params,body,expression)):this.finalize(node,new Node.ArrowFunctionExpression(list.params,body,expression)),this.context.strict=previousStrict,this.context.allowStrictDirective=previousAllowStrictDirective,this.context.allowYield=previousAllowYield,this.context.await=previousAwait}}else if(this.matchAssign()){if(this.context.isAssignmentTarget||this.tolerateError(messages_1.Messages.InvalidLHSInAssignment),this.context.strict&&expr.type===syntax_1.Syntax.Identifier){var id=expr;this.scanner.isRestrictedWord(id.name)&&this.tolerateUnexpectedToken(token,messages_1.Messages.StrictLHSAssignment),this.scanner.isStrictModeReservedWord(id.name)&&this.tolerateUnexpectedToken(token,messages_1.Messages.StrictReservedWord)}this.match(`=`)?this.reinterpretExpressionAsPattern(expr):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1),token=this.nextToken();var operator=token.value,right=this.isolateCoverGrammar(this.parseAssignmentExpression);expr=this.finalize(this.startNode(startToken),new Node.AssignmentExpression(operator,expr,right)),this.context.firstCoverInitializedNameError=null}}return expr},Parser$1.prototype.parseExpression=function(){var startToken=this.lookahead,expr=this.isolateCoverGrammar(this.parseAssignmentExpression);if(this.match(`,`)){var expressions=[];for(expressions.push(expr);this.lookahead.type!==2&&this.match(`,`);)this.nextToken(),expressions.push(this.isolateCoverGrammar(this.parseAssignmentExpression));expr=this.finalize(this.startNode(startToken),new Node.SequenceExpression(expressions))}return expr},Parser$1.prototype.parseStatementListItem=function(){var statement;if(this.context.isAssignmentTarget=!0,this.context.isBindingElement=!0,this.lookahead.type===4)switch(this.lookahead.value){case`export`:this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,messages_1.Messages.IllegalExportDeclaration),statement=this.parseExportDeclaration();break;case`import`:this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,messages_1.Messages.IllegalImportDeclaration),statement=this.parseImportDeclaration();break;case`const`:statement=this.parseLexicalDeclaration({inFor:!1});break;case`function`:statement=this.parseFunctionDeclaration();break;case`class`:statement=this.parseClassDeclaration();break;case`let`:statement=this.isLexicalDeclaration()?this.parseLexicalDeclaration({inFor:!1}):this.parseStatement();break;default:statement=this.parseStatement();break}else statement=this.parseStatement();return statement},Parser$1.prototype.parseBlock=function(){var node=this.createNode();this.expect(`{`);for(var block=[];!this.match(`}`);)block.push(this.parseStatementListItem());return this.expect(`}`),this.finalize(node,new Node.BlockStatement(block))},Parser$1.prototype.parseLexicalBinding=function(kind,options){var node=this.createNode(),id=this.parsePattern([],kind);this.context.strict&&id.type===syntax_1.Syntax.Identifier&&this.scanner.isRestrictedWord(id.name)&&this.tolerateError(messages_1.Messages.StrictVarName);var init=null;return kind===`const`?!this.matchKeyword(`in`)&&!this.matchContextualKeyword(`of`)&&(this.match(`=`)?(this.nextToken(),init=this.isolateCoverGrammar(this.parseAssignmentExpression)):this.throwError(messages_1.Messages.DeclarationMissingInitializer,`const`)):(!options.inFor&&id.type!==syntax_1.Syntax.Identifier||this.match(`=`))&&(this.expect(`=`),init=this.isolateCoverGrammar(this.parseAssignmentExpression)),this.finalize(node,new Node.VariableDeclarator(id,init))},Parser$1.prototype.parseBindingList=function(kind,options){for(var list=[this.parseLexicalBinding(kind,options)];this.match(`,`);)this.nextToken(),list.push(this.parseLexicalBinding(kind,options));return list},Parser$1.prototype.isLexicalDeclaration=function(){var state=this.scanner.saveState();this.scanner.scanComments();var next=this.scanner.lex();return this.scanner.restoreState(state),next.type===3||next.type===7&&next.value===`[`||next.type===7&&next.value===`{`||next.type===4&&next.value===`let`||next.type===4&&next.value===`yield`},Parser$1.prototype.parseLexicalDeclaration=function(options){var node=this.createNode(),kind=this.nextToken().value;assert_1.assert(kind===`let`||kind===`const`,`Lexical declaration must be either let or const`);var declarations=this.parseBindingList(kind,options);return this.consumeSemicolon(),this.finalize(node,new Node.VariableDeclaration(declarations,kind))},Parser$1.prototype.parseBindingRestElement=function(params,kind){var node=this.createNode();this.expect(`...`);var arg=this.parsePattern(params,kind);return this.finalize(node,new Node.RestElement(arg))},Parser$1.prototype.parseArrayPattern=function(params,kind){var node=this.createNode();this.expect(`[`);for(var elements=[];!this.match(`]`);)if(this.match(`,`))this.nextToken(),elements.push(null);else{if(this.match(`...`)){elements.push(this.parseBindingRestElement(params,kind));break}else elements.push(this.parsePatternWithDefault(params,kind));this.match(`]`)||this.expect(`,`)}return this.expect(`]`),this.finalize(node,new Node.ArrayPattern(elements))},Parser$1.prototype.parsePropertyPattern=function(params,kind){var node=this.createNode(),computed=!1,shorthand=!1,method=!1,key,value;if(this.lookahead.type===3){var keyToken=this.lookahead;key=this.parseVariableIdentifier();var init=this.finalize(node,new Node.Identifier(keyToken.value));if(this.match(`=`)){params.push(keyToken),shorthand=!0,this.nextToken();var expr=this.parseAssignmentExpression();value=this.finalize(this.startNode(keyToken),new Node.AssignmentPattern(init,expr))}else this.match(`:`)?(this.expect(`:`),value=this.parsePatternWithDefault(params,kind)):(params.push(keyToken),shorthand=!0,value=init)}else computed=this.match(`[`),key=this.parseObjectPropertyKey(),this.expect(`:`),value=this.parsePatternWithDefault(params,kind);return this.finalize(node,new Node.Property(`init`,key,computed,value,method,shorthand))},Parser$1.prototype.parseObjectPattern=function(params,kind){var node=this.createNode(),properties=[];for(this.expect(`{`);!this.match(`}`);)properties.push(this.parsePropertyPattern(params,kind)),this.match(`}`)||this.expect(`,`);return this.expect(`}`),this.finalize(node,new Node.ObjectPattern(properties))},Parser$1.prototype.parsePattern=function(params,kind){var pattern;return this.match(`[`)?pattern=this.parseArrayPattern(params,kind):this.match(`{`)?pattern=this.parseObjectPattern(params,kind):(this.matchKeyword(`let`)&&(kind===`const`||kind===`let`)&&this.tolerateUnexpectedToken(this.lookahead,messages_1.Messages.LetInLexicalBinding),params.push(this.lookahead),pattern=this.parseVariableIdentifier(kind)),pattern},Parser$1.prototype.parsePatternWithDefault=function(params,kind){var startToken=this.lookahead,pattern=this.parsePattern(params,kind);if(this.match(`=`)){this.nextToken();var previousAllowYield=this.context.allowYield;this.context.allowYield=!0;var right=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowYield=previousAllowYield,pattern=this.finalize(this.startNode(startToken),new Node.AssignmentPattern(pattern,right))}return pattern},Parser$1.prototype.parseVariableIdentifier=function(kind){var node=this.createNode(),token=this.nextToken();return token.type===4&&token.value===`yield`?this.context.strict?this.tolerateUnexpectedToken(token,messages_1.Messages.StrictReservedWord):this.context.allowYield||this.throwUnexpectedToken(token):token.type===3?(this.context.isModule||this.context.await)&&token.type===3&&token.value===`await`&&this.tolerateUnexpectedToken(token):this.context.strict&&token.type===4&&this.scanner.isStrictModeReservedWord(token.value)?this.tolerateUnexpectedToken(token,messages_1.Messages.StrictReservedWord):(this.context.strict||token.value!==`let`||kind!==`var`)&&this.throwUnexpectedToken(token),this.finalize(node,new Node.Identifier(token.value))},Parser$1.prototype.parseVariableDeclaration=function(options){var node=this.createNode(),id=this.parsePattern([],`var`);this.context.strict&&id.type===syntax_1.Syntax.Identifier&&this.scanner.isRestrictedWord(id.name)&&this.tolerateError(messages_1.Messages.StrictVarName);var init=null;return this.match(`=`)?(this.nextToken(),init=this.isolateCoverGrammar(this.parseAssignmentExpression)):id.type!==syntax_1.Syntax.Identifier&&!options.inFor&&this.expect(`=`),this.finalize(node,new Node.VariableDeclarator(id,init))},Parser$1.prototype.parseVariableDeclarationList=function(options){var opt={inFor:options.inFor},list=[];for(list.push(this.parseVariableDeclaration(opt));this.match(`,`);)this.nextToken(),list.push(this.parseVariableDeclaration(opt));return list},Parser$1.prototype.parseVariableStatement=function(){var node=this.createNode();this.expectKeyword(`var`);var declarations=this.parseVariableDeclarationList({inFor:!1});return this.consumeSemicolon(),this.finalize(node,new Node.VariableDeclaration(declarations,`var`))},Parser$1.prototype.parseEmptyStatement=function(){var node=this.createNode();return this.expect(`;`),this.finalize(node,new Node.EmptyStatement)},Parser$1.prototype.parseExpressionStatement=function(){var node=this.createNode(),expr=this.parseExpression();return this.consumeSemicolon(),this.finalize(node,new Node.ExpressionStatement(expr))},Parser$1.prototype.parseIfClause=function(){return this.context.strict&&this.matchKeyword(`function`)&&this.tolerateError(messages_1.Messages.StrictFunction),this.parseStatement()},Parser$1.prototype.parseIfStatement=function(){var node=this.createNode(),consequent,alternate=null;this.expectKeyword(`if`),this.expect(`(`);var test=this.parseExpression();return!this.match(`)`)&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),consequent=this.finalize(this.createNode(),new Node.EmptyStatement)):(this.expect(`)`),consequent=this.parseIfClause(),this.matchKeyword(`else`)&&(this.nextToken(),alternate=this.parseIfClause())),this.finalize(node,new Node.IfStatement(test,consequent,alternate))},Parser$1.prototype.parseDoWhileStatement=function(){var node=this.createNode();this.expectKeyword(`do`);var previousInIteration=this.context.inIteration;this.context.inIteration=!0;var body=this.parseStatement();this.context.inIteration=previousInIteration,this.expectKeyword(`while`),this.expect(`(`);var test=this.parseExpression();return!this.match(`)`)&&this.config.tolerant?this.tolerateUnexpectedToken(this.nextToken()):(this.expect(`)`),this.match(`;`)&&this.nextToken()),this.finalize(node,new Node.DoWhileStatement(body,test))},Parser$1.prototype.parseWhileStatement=function(){var node=this.createNode(),body;this.expectKeyword(`while`),this.expect(`(`);var test=this.parseExpression();if(!this.match(`)`)&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),body=this.finalize(this.createNode(),new Node.EmptyStatement);else{this.expect(`)`);var previousInIteration=this.context.inIteration;this.context.inIteration=!0,body=this.parseStatement(),this.context.inIteration=previousInIteration}return this.finalize(node,new Node.WhileStatement(test,body))},Parser$1.prototype.parseForStatement=function(){var init=null,test=null,update=null,forIn=!0,left,right,node=this.createNode();if(this.expectKeyword(`for`),this.expect(`(`),this.match(`;`))this.nextToken();else if(this.matchKeyword(`var`)){init=this.createNode(),this.nextToken();var previousAllowIn=this.context.allowIn;this.context.allowIn=!1;var declarations=this.parseVariableDeclarationList({inFor:!0});if(this.context.allowIn=previousAllowIn,declarations.length===1&&this.matchKeyword(`in`)){var decl=declarations[0];decl.init&&(decl.id.type===syntax_1.Syntax.ArrayPattern||decl.id.type===syntax_1.Syntax.ObjectPattern||this.context.strict)&&this.tolerateError(messages_1.Messages.ForInOfLoopInitializer,`for-in`),init=this.finalize(init,new Node.VariableDeclaration(declarations,`var`)),this.nextToken(),left=init,right=this.parseExpression(),init=null}else declarations.length===1&&declarations[0].init===null&&this.matchContextualKeyword(`of`)?(init=this.finalize(init,new Node.VariableDeclaration(declarations,`var`)),this.nextToken(),left=init,right=this.parseAssignmentExpression(),init=null,forIn=!1):(init=this.finalize(init,new Node.VariableDeclaration(declarations,`var`)),this.expect(`;`))}else if(this.matchKeyword(`const`)||this.matchKeyword(`let`)){init=this.createNode();var kind=this.nextToken().value;if(!this.context.strict&&this.lookahead.value===`in`)init=this.finalize(init,new Node.Identifier(kind)),this.nextToken(),left=init,right=this.parseExpression(),init=null;else{var previousAllowIn=this.context.allowIn;this.context.allowIn=!1;var declarations=this.parseBindingList(kind,{inFor:!0});this.context.allowIn=previousAllowIn,declarations.length===1&&declarations[0].init===null&&this.matchKeyword(`in`)?(init=this.finalize(init,new Node.VariableDeclaration(declarations,kind)),this.nextToken(),left=init,right=this.parseExpression(),init=null):declarations.length===1&&declarations[0].init===null&&this.matchContextualKeyword(`of`)?(init=this.finalize(init,new Node.VariableDeclaration(declarations,kind)),this.nextToken(),left=init,right=this.parseAssignmentExpression(),init=null,forIn=!1):(this.consumeSemicolon(),init=this.finalize(init,new Node.VariableDeclaration(declarations,kind)))}}else{var initStartToken=this.lookahead,previousAllowIn=this.context.allowIn;if(this.context.allowIn=!1,init=this.inheritCoverGrammar(this.parseAssignmentExpression),this.context.allowIn=previousAllowIn,this.matchKeyword(`in`))(!this.context.isAssignmentTarget||init.type===syntax_1.Syntax.AssignmentExpression)&&this.tolerateError(messages_1.Messages.InvalidLHSInForIn),this.nextToken(),this.reinterpretExpressionAsPattern(init),left=init,right=this.parseExpression(),init=null;else if(this.matchContextualKeyword(`of`))(!this.context.isAssignmentTarget||init.type===syntax_1.Syntax.AssignmentExpression)&&this.tolerateError(messages_1.Messages.InvalidLHSInForLoop),this.nextToken(),this.reinterpretExpressionAsPattern(init),left=init,right=this.parseAssignmentExpression(),init=null,forIn=!1;else{if(this.match(`,`)){for(var initSeq=[init];this.match(`,`);)this.nextToken(),initSeq.push(this.isolateCoverGrammar(this.parseAssignmentExpression));init=this.finalize(this.startNode(initStartToken),new Node.SequenceExpression(initSeq))}this.expect(`;`)}}left===void 0&&(this.match(`;`)||(test=this.parseExpression()),this.expect(`;`),this.match(`)`)||(update=this.parseExpression()));var body;if(!this.match(`)`)&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),body=this.finalize(this.createNode(),new Node.EmptyStatement);else{this.expect(`)`);var previousInIteration=this.context.inIteration;this.context.inIteration=!0,body=this.isolateCoverGrammar(this.parseStatement),this.context.inIteration=previousInIteration}return left===void 0?this.finalize(node,new Node.ForStatement(init,test,update,body)):forIn?this.finalize(node,new Node.ForInStatement(left,right,body)):this.finalize(node,new Node.ForOfStatement(left,right,body))},Parser$1.prototype.parseContinueStatement=function(){var node=this.createNode();this.expectKeyword(`continue`);var label=null;if(this.lookahead.type===3&&!this.hasLineTerminator){var id=this.parseVariableIdentifier();label=id;var key=`$`+id.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,key)||this.throwError(messages_1.Messages.UnknownLabel,id.name)}return this.consumeSemicolon(),label===null&&!this.context.inIteration&&this.throwError(messages_1.Messages.IllegalContinue),this.finalize(node,new Node.ContinueStatement(label))},Parser$1.prototype.parseBreakStatement=function(){var node=this.createNode();this.expectKeyword(`break`);var label=null;if(this.lookahead.type===3&&!this.hasLineTerminator){var id=this.parseVariableIdentifier(),key=`$`+id.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,key)||this.throwError(messages_1.Messages.UnknownLabel,id.name),label=id}return this.consumeSemicolon(),label===null&&!this.context.inIteration&&!this.context.inSwitch&&this.throwError(messages_1.Messages.IllegalBreak),this.finalize(node,new Node.BreakStatement(label))},Parser$1.prototype.parseReturnStatement=function(){this.context.inFunctionBody||this.tolerateError(messages_1.Messages.IllegalReturn);var node=this.createNode();this.expectKeyword(`return`);var argument=!this.match(`;`)&&!this.match(`}`)&&!this.hasLineTerminator&&this.lookahead.type!==2||this.lookahead.type===8||this.lookahead.type===10?this.parseExpression():null;return this.consumeSemicolon(),this.finalize(node,new Node.ReturnStatement(argument))},Parser$1.prototype.parseWithStatement=function(){this.context.strict&&this.tolerateError(messages_1.Messages.StrictModeWith);var node=this.createNode(),body;this.expectKeyword(`with`),this.expect(`(`);var object=this.parseExpression();return!this.match(`)`)&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),body=this.finalize(this.createNode(),new Node.EmptyStatement)):(this.expect(`)`),body=this.parseStatement()),this.finalize(node,new Node.WithStatement(object,body))},Parser$1.prototype.parseSwitchCase=function(){var node=this.createNode(),test;this.matchKeyword(`default`)?(this.nextToken(),test=null):(this.expectKeyword(`case`),test=this.parseExpression()),this.expect(`:`);for(var consequent=[];!(this.match(`}`)||this.matchKeyword(`default`)||this.matchKeyword(`case`));)consequent.push(this.parseStatementListItem());return this.finalize(node,new Node.SwitchCase(test,consequent))},Parser$1.prototype.parseSwitchStatement=function(){var node=this.createNode();this.expectKeyword(`switch`),this.expect(`(`);var discriminant=this.parseExpression();this.expect(`)`);var previousInSwitch=this.context.inSwitch;this.context.inSwitch=!0;var cases=[],defaultFound=!1;for(this.expect(`{`);!this.match(`}`);){var clause=this.parseSwitchCase();clause.test===null&&(defaultFound&&this.throwError(messages_1.Messages.MultipleDefaultsInSwitch),defaultFound=!0),cases.push(clause)}return this.expect(`}`),this.context.inSwitch=previousInSwitch,this.finalize(node,new Node.SwitchStatement(discriminant,cases))},Parser$1.prototype.parseLabelledStatement=function(){var node=this.createNode(),expr=this.parseExpression(),statement;if(expr.type===syntax_1.Syntax.Identifier&&this.match(`:`)){this.nextToken();var id=expr,key=`$`+id.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,key)&&this.throwError(messages_1.Messages.Redeclaration,`Label`,id.name),this.context.labelSet[key]=!0;var body=void 0;if(this.matchKeyword(`class`))this.tolerateUnexpectedToken(this.lookahead),body=this.parseClassDeclaration();else if(this.matchKeyword(`function`)){var token=this.lookahead,declaration=this.parseFunctionDeclaration();this.context.strict?this.tolerateUnexpectedToken(token,messages_1.Messages.StrictFunction):declaration.generator&&this.tolerateUnexpectedToken(token,messages_1.Messages.GeneratorInLegacyContext),body=declaration}else body=this.parseStatement();delete this.context.labelSet[key],statement=new Node.LabeledStatement(id,body)}else this.consumeSemicolon(),statement=new Node.ExpressionStatement(expr);return this.finalize(node,statement)},Parser$1.prototype.parseThrowStatement=function(){var node=this.createNode();this.expectKeyword(`throw`),this.hasLineTerminator&&this.throwError(messages_1.Messages.NewlineAfterThrow);var argument=this.parseExpression();return this.consumeSemicolon(),this.finalize(node,new Node.ThrowStatement(argument))},Parser$1.prototype.parseCatchClause=function(){var node=this.createNode();this.expectKeyword(`catch`),this.expect(`(`),this.match(`)`)&&this.throwUnexpectedToken(this.lookahead);for(var params=[],param=this.parsePattern(params),paramMap={},i=0;i<params.length;i++){var key=`$`+params[i].value;Object.prototype.hasOwnProperty.call(paramMap,key)&&this.tolerateError(messages_1.Messages.DuplicateBinding,params[i].value),paramMap[key]=!0}this.context.strict&&param.type===syntax_1.Syntax.Identifier&&this.scanner.isRestrictedWord(param.name)&&this.tolerateError(messages_1.Messages.StrictCatchVariable),this.expect(`)`);var body=this.parseBlock();return this.finalize(node,new Node.CatchClause(param,body))},Parser$1.prototype.parseFinallyClause=function(){return this.expectKeyword(`finally`),this.parseBlock()},Parser$1.prototype.parseTryStatement=function(){var node=this.createNode();this.expectKeyword(`try`);var block=this.parseBlock(),handler=this.matchKeyword(`catch`)?this.parseCatchClause():null,finalizer=this.matchKeyword(`finally`)?this.parseFinallyClause():null;return!handler&&!finalizer&&this.throwError(messages_1.Messages.NoCatchOrFinally),this.finalize(node,new Node.TryStatement(block,handler,finalizer))},Parser$1.prototype.parseDebuggerStatement=function(){var node=this.createNode();return this.expectKeyword(`debugger`),this.consumeSemicolon(),this.finalize(node,new Node.DebuggerStatement)},Parser$1.prototype.parseStatement=function(){var statement;switch(this.lookahead.type){case 1:case 5:case 6:case 8:case 10:case 9:statement=this.parseExpressionStatement();break;case 7:var value=this.lookahead.value;statement=value===`{`?this.parseBlock():value===`(`?this.parseExpressionStatement():value===`;`?this.parseEmptyStatement():this.parseExpressionStatement();break;case 3:statement=this.matchAsyncFunction()?this.parseFunctionDeclaration():this.parseLabelledStatement();break;case 4:switch(this.lookahead.value){case`break`:statement=this.parseBreakStatement();break;case`continue`:statement=this.parseContinueStatement();break;case`debugger`:statement=this.parseDebuggerStatement();break;case`do`:statement=this.parseDoWhileStatement();break;case`for`:statement=this.parseForStatement();break;case`function`:statement=this.parseFunctionDeclaration();break;case`if`:statement=this.parseIfStatement();break;case`return`:statement=this.parseReturnStatement();break;case`switch`:statement=this.parseSwitchStatement();break;case`throw`:statement=this.parseThrowStatement();break;case`try`:statement=this.parseTryStatement();break;case`var`:statement=this.parseVariableStatement();break;case`while`:statement=this.parseWhileStatement();break;case`with`:statement=this.parseWithStatement();break;default:statement=this.parseExpressionStatement();break}break;default:statement=this.throwUnexpectedToken(this.lookahead)}return statement},Parser$1.prototype.parseFunctionSourceElements=function(){var node=this.createNode();this.expect(`{`);var body=this.parseDirectivePrologues(),previousLabelSet=this.context.labelSet,previousInIteration=this.context.inIteration,previousInSwitch=this.context.inSwitch,previousInFunctionBody=this.context.inFunctionBody;for(this.context.labelSet={},this.context.inIteration=!1,this.context.inSwitch=!1,this.context.inFunctionBody=!0;this.lookahead.type!==2&&!this.match(`}`);)body.push(this.parseStatementListItem());return this.expect(`}`),this.context.labelSet=previousLabelSet,this.context.inIteration=previousInIteration,this.context.inSwitch=previousInSwitch,this.context.inFunctionBody=previousInFunctionBody,this.finalize(node,new Node.BlockStatement(body))},Parser$1.prototype.validateParam=function(options,param,name){var key=`$`+name;this.context.strict?(this.scanner.isRestrictedWord(name)&&(options.stricted=param,options.message=messages_1.Messages.StrictParamName),Object.prototype.hasOwnProperty.call(options.paramSet,key)&&(options.stricted=param,options.message=messages_1.Messages.StrictParamDupe)):options.firstRestricted||(this.scanner.isRestrictedWord(name)?(options.firstRestricted=param,options.message=messages_1.Messages.StrictParamName):this.scanner.isStrictModeReservedWord(name)?(options.firstRestricted=param,options.message=messages_1.Messages.StrictReservedWord):Object.prototype.hasOwnProperty.call(options.paramSet,key)&&(options.stricted=param,options.message=messages_1.Messages.StrictParamDupe)),typeof Object.defineProperty==`function`?Object.defineProperty(options.paramSet,key,{value:!0,enumerable:!0,writable:!0,configurable:!0}):options.paramSet[key]=!0},Parser$1.prototype.parseRestElement=function(params){var node=this.createNode();this.expect(`...`);var arg=this.parsePattern(params);return this.match(`=`)&&this.throwError(messages_1.Messages.DefaultRestParameter),this.match(`)`)||this.throwError(messages_1.Messages.ParameterAfterRestParameter),this.finalize(node,new Node.RestElement(arg))},Parser$1.prototype.parseFormalParameter=function(options){for(var params=[],param=this.match(`...`)?this.parseRestElement(params):this.parsePatternWithDefault(params),i=0;i<params.length;i++)this.validateParam(options,params[i],params[i].value);options.simple=options.simple&&param instanceof Node.Identifier,options.params.push(param)},Parser$1.prototype.parseFormalParameters=function(firstRestricted){var options={simple:!0,params:[],firstRestricted};if(this.expect(`(`),!this.match(`)`))for(options.paramSet={};this.lookahead.type!==2&&(this.parseFormalParameter(options),!(this.match(`)`)||(this.expect(`,`),this.match(`)`)))););return this.expect(`)`),{simple:options.simple,params:options.params,stricted:options.stricted,firstRestricted:options.firstRestricted,message:options.message}},Parser$1.prototype.matchAsyncFunction=function(){var match$1=this.matchContextualKeyword(`async`);if(match$1){var state=this.scanner.saveState();this.scanner.scanComments();var next=this.scanner.lex();this.scanner.restoreState(state),match$1=state.lineNumber===next.lineNumber&&next.type===4&&next.value===`function`}return match$1},Parser$1.prototype.parseFunctionDeclaration=function(identifierIsOptional){var node=this.createNode(),isAsync=this.matchContextualKeyword(`async`);isAsync&&this.nextToken(),this.expectKeyword(`function`);var isGenerator=isAsync?!1:this.match(`*`);isGenerator&&this.nextToken();var message$1,id=null,firstRestricted=null;if(!identifierIsOptional||!this.match(`(`)){var token=this.lookahead;id=this.parseVariableIdentifier(),this.context.strict?this.scanner.isRestrictedWord(token.value)&&this.tolerateUnexpectedToken(token,messages_1.Messages.StrictFunctionName):this.scanner.isRestrictedWord(token.value)?(firstRestricted=token,message$1=messages_1.Messages.StrictFunctionName):this.scanner.isStrictModeReservedWord(token.value)&&(firstRestricted=token,message$1=messages_1.Messages.StrictReservedWord)}var previousAllowAwait=this.context.await,previousAllowYield=this.context.allowYield;this.context.await=isAsync,this.context.allowYield=!isGenerator;var formalParameters=this.parseFormalParameters(firstRestricted),params=formalParameters.params,stricted=formalParameters.stricted;firstRestricted=formalParameters.firstRestricted,formalParameters.message&&(message$1=formalParameters.message);var previousStrict=this.context.strict,previousAllowStrictDirective=this.context.allowStrictDirective;this.context.allowStrictDirective=formalParameters.simple;var body=this.parseFunctionSourceElements();return this.context.strict&&firstRestricted&&this.throwUnexpectedToken(firstRestricted,message$1),this.context.strict&&stricted&&this.tolerateUnexpectedToken(stricted,message$1),this.context.strict=previousStrict,this.context.allowStrictDirective=previousAllowStrictDirective,this.context.await=previousAllowAwait,this.context.allowYield=previousAllowYield,isAsync?this.finalize(node,new Node.AsyncFunctionDeclaration(id,params,body)):this.finalize(node,new Node.FunctionDeclaration(id,params,body,isGenerator))},Parser$1.prototype.parseFunctionExpression=function(){var node=this.createNode(),isAsync=this.matchContextualKeyword(`async`);isAsync&&this.nextToken(),this.expectKeyword(`function`);var isGenerator=isAsync?!1:this.match(`*`);isGenerator&&this.nextToken();var message$1,id=null,firstRestricted,previousAllowAwait=this.context.await,previousAllowYield=this.context.allowYield;if(this.context.await=isAsync,this.context.allowYield=!isGenerator,!this.match(`(`)){var token=this.lookahead;id=!this.context.strict&&!isGenerator&&this.matchKeyword(`yield`)?this.parseIdentifierName():this.parseVariableIdentifier(),this.context.strict?this.scanner.isRestrictedWord(token.value)&&this.tolerateUnexpectedToken(token,messages_1.Messages.StrictFunctionName):this.scanner.isRestrictedWord(token.value)?(firstRestricted=token,message$1=messages_1.Messages.StrictFunctionName):this.scanner.isStrictModeReservedWord(token.value)&&(firstRestricted=token,message$1=messages_1.Messages.StrictReservedWord)}var formalParameters=this.parseFormalParameters(firstRestricted),params=formalParameters.params,stricted=formalParameters.stricted;firstRestricted=formalParameters.firstRestricted,formalParameters.message&&(message$1=formalParameters.message);var previousStrict=this.context.strict,previousAllowStrictDirective=this.context.allowStrictDirective;this.context.allowStrictDirective=formalParameters.simple;var body=this.parseFunctionSourceElements();return this.context.strict&&firstRestricted&&this.throwUnexpectedToken(firstRestricted,message$1),this.context.strict&&stricted&&this.tolerateUnexpectedToken(stricted,message$1),this.context.strict=previousStrict,this.context.allowStrictDirective=previousAllowStrictDirective,this.context.await=previousAllowAwait,this.context.allowYield=previousAllowYield,isAsync?this.finalize(node,new Node.AsyncFunctionExpression(id,params,body)):this.finalize(node,new Node.FunctionExpression(id,params,body,isGenerator))},Parser$1.prototype.parseDirective=function(){var token=this.lookahead,node=this.createNode(),expr=this.parseExpression(),directive=expr.type===syntax_1.Syntax.Literal?this.getTokenRaw(token).slice(1,-1):null;return this.consumeSemicolon(),this.finalize(node,directive?new Node.Directive(expr,directive):new Node.ExpressionStatement(expr))},Parser$1.prototype.parseDirectivePrologues=function(){for(var firstRestricted=null,body=[];;){var token=this.lookahead;if(token.type!==8)break;var statement=this.parseDirective();body.push(statement);var directive=statement.directive;if(typeof directive!=`string`)break;directive===`use strict`?(this.context.strict=!0,firstRestricted&&this.tolerateUnexpectedToken(firstRestricted,messages_1.Messages.StrictOctalLiteral),this.context.allowStrictDirective||this.tolerateUnexpectedToken(token,messages_1.Messages.IllegalLanguageModeDirective)):!firstRestricted&&token.octal&&(firstRestricted=token)}return body},Parser$1.prototype.qualifiedPropertyName=function(token){switch(token.type){case 3:case 8:case 1:case 5:case 6:case 4:return!0;case 7:return token.value===`[`;default:break}return!1},Parser$1.prototype.parseGetterMethod=function(){var node=this.createNode(),isGenerator=!1,previousAllowYield=this.context.allowYield;this.context.allowYield=!isGenerator;var formalParameters=this.parseFormalParameters();formalParameters.params.length>0&&this.tolerateError(messages_1.Messages.BadGetterArity);var method=this.parsePropertyMethod(formalParameters);return this.context.allowYield=previousAllowYield,this.finalize(node,new Node.FunctionExpression(null,formalParameters.params,method,isGenerator))},Parser$1.prototype.parseSetterMethod=function(){var node=this.createNode(),isGenerator=!1,previousAllowYield=this.context.allowYield;this.context.allowYield=!isGenerator;var formalParameters=this.parseFormalParameters();formalParameters.params.length===1?formalParameters.params[0]instanceof Node.RestElement&&this.tolerateError(messages_1.Messages.BadSetterRestParameter):this.tolerateError(messages_1.Messages.BadSetterArity);var method=this.parsePropertyMethod(formalParameters);return this.context.allowYield=previousAllowYield,this.finalize(node,new Node.FunctionExpression(null,formalParameters.params,method,isGenerator))},Parser$1.prototype.parseGeneratorMethod=function(){var node=this.createNode(),isGenerator=!0,previousAllowYield=this.context.allowYield;this.context.allowYield=!0;var params=this.parseFormalParameters();this.context.allowYield=!1;var method=this.parsePropertyMethod(params);return this.context.allowYield=previousAllowYield,this.finalize(node,new Node.FunctionExpression(null,params.params,method,isGenerator))},Parser$1.prototype.isStartOfExpression=function(){var start=!0,value=this.lookahead.value;switch(this.lookahead.type){case 7:start=value===`[`||value===`(`||value===`{`||value===`+`||value===`-`||value===`!`||value===`~`||value===`++`||value===`--`||value===`/`||value===`/=`;break;case 4:start=value===`class`||value===`delete`||value===`function`||value===`let`||value===`new`||value===`super`||value===`this`||value===`typeof`||value===`void`||value===`yield`;break;default:break}return start},Parser$1.prototype.parseYieldExpression=function(){var node=this.createNode();this.expectKeyword(`yield`);var argument=null,delegate=!1;if(!this.hasLineTerminator){var previousAllowYield=this.context.allowYield;this.context.allowYield=!1,delegate=this.match(`*`),delegate?(this.nextToken(),argument=this.parseAssignmentExpression()):this.isStartOfExpression()&&(argument=this.parseAssignmentExpression()),this.context.allowYield=previousAllowYield}return this.finalize(node,new Node.YieldExpression(argument,delegate))},Parser$1.prototype.parseClassElement=function(hasConstructor){var token=this.lookahead,node=this.createNode(),kind=``,key=null,value=null,computed=!1,method=!1,isStatic=!1,isAsync=!1;if(this.match(`*`))this.nextToken();else if(computed=this.match(`[`),key=this.parseObjectPropertyKey(),key.name===`static`&&(this.qualifiedPropertyName(this.lookahead)||this.match(`*`))&&(token=this.lookahead,isStatic=!0,computed=this.match(`[`),this.match(`*`)?this.nextToken():key=this.parseObjectPropertyKey()),token.type===3&&!this.hasLineTerminator&&token.value===`async`){var punctuator=this.lookahead.value;punctuator!==`:`&&punctuator!==`(`&&punctuator!==`*`&&(isAsync=!0,token=this.lookahead,key=this.parseObjectPropertyKey(),token.type===3&&token.value===`constructor`&&this.tolerateUnexpectedToken(token,messages_1.Messages.ConstructorIsAsync))}var lookaheadPropertyKey=this.qualifiedPropertyName(this.lookahead);return token.type===3?token.value===`get`&&lookaheadPropertyKey?(kind=`get`,computed=this.match(`[`),key=this.parseObjectPropertyKey(),this.context.allowYield=!1,value=this.parseGetterMethod()):token.value===`set`&&lookaheadPropertyKey&&(kind=`set`,computed=this.match(`[`),key=this.parseObjectPropertyKey(),value=this.parseSetterMethod()):token.type===7&&token.value===`*`&&lookaheadPropertyKey&&(kind=`init`,computed=this.match(`[`),key=this.parseObjectPropertyKey(),value=this.parseGeneratorMethod(),method=!0),!kind&&key&&this.match(`(`)&&(kind=`init`,value=isAsync?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),method=!0),kind||this.throwUnexpectedToken(this.lookahead),kind===`init`&&(kind=`method`),computed||(isStatic&&this.isPropertyKey(key,`prototype`)&&this.throwUnexpectedToken(token,messages_1.Messages.StaticPrototype),!isStatic&&this.isPropertyKey(key,`constructor`)&&((kind!==`method`||!method||value&&value.generator)&&this.throwUnexpectedToken(token,messages_1.Messages.ConstructorSpecialMethod),hasConstructor.value?this.throwUnexpectedToken(token,messages_1.Messages.DuplicateConstructor):hasConstructor.value=!0,kind=`constructor`)),this.finalize(node,new Node.MethodDefinition(key,computed,value,kind,isStatic))},Parser$1.prototype.parseClassElementList=function(){var body=[],hasConstructor={value:!1};for(this.expect(`{`);!this.match(`}`);)this.match(`;`)?this.nextToken():body.push(this.parseClassElement(hasConstructor));return this.expect(`}`),body},Parser$1.prototype.parseClassBody=function(){var node=this.createNode(),elementList=this.parseClassElementList();return this.finalize(node,new Node.ClassBody(elementList))},Parser$1.prototype.parseClassDeclaration=function(identifierIsOptional){var node=this.createNode(),previousStrict=this.context.strict;this.context.strict=!0,this.expectKeyword(`class`);var id=identifierIsOptional&&this.lookahead.type!==3?null:this.parseVariableIdentifier(),superClass=null;this.matchKeyword(`extends`)&&(this.nextToken(),superClass=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var classBody=this.parseClassBody();return this.context.strict=previousStrict,this.finalize(node,new Node.ClassDeclaration(id,superClass,classBody))},Parser$1.prototype.parseClassExpression=function(){var node=this.createNode(),previousStrict=this.context.strict;this.context.strict=!0,this.expectKeyword(`class`);var id=this.lookahead.type===3?this.parseVariableIdentifier():null,superClass=null;this.matchKeyword(`extends`)&&(this.nextToken(),superClass=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var classBody=this.parseClassBody();return this.context.strict=previousStrict,this.finalize(node,new Node.ClassExpression(id,superClass,classBody))},Parser$1.prototype.parseModule=function(){this.context.strict=!0,this.context.isModule=!0,this.scanner.isModule=!0;for(var node=this.createNode(),body=this.parseDirectivePrologues();this.lookahead.type!==2;)body.push(this.parseStatementListItem());return this.finalize(node,new Node.Module(body))},Parser$1.prototype.parseScript=function(){for(var node=this.createNode(),body=this.parseDirectivePrologues();this.lookahead.type!==2;)body.push(this.parseStatementListItem());return this.finalize(node,new Node.Script(body))},Parser$1.prototype.parseModuleSpecifier=function(){var node=this.createNode();this.lookahead.type!==8&&this.throwError(messages_1.Messages.InvalidModuleSpecifier);var token=this.nextToken(),raw=this.getTokenRaw(token);return this.finalize(node,new Node.Literal(token.value,raw))},Parser$1.prototype.parseImportSpecifier=function(){var node=this.createNode(),imported,local;return this.lookahead.type===3?(imported=this.parseVariableIdentifier(),local=imported,this.matchContextualKeyword(`as`)&&(this.nextToken(),local=this.parseVariableIdentifier())):(imported=this.parseIdentifierName(),local=imported,this.matchContextualKeyword(`as`)?(this.nextToken(),local=this.parseVariableIdentifier()):this.throwUnexpectedToken(this.nextToken())),this.finalize(node,new Node.ImportSpecifier(local,imported))},Parser$1.prototype.parseNamedImports=function(){this.expect(`{`);for(var specifiers=[];!this.match(`}`);)specifiers.push(this.parseImportSpecifier()),this.match(`}`)||this.expect(`,`);return this.expect(`}`),specifiers},Parser$1.prototype.parseImportDefaultSpecifier=function(){var node=this.createNode(),local=this.parseIdentifierName();return this.finalize(node,new Node.ImportDefaultSpecifier(local))},Parser$1.prototype.parseImportNamespaceSpecifier=function(){var node=this.createNode();this.expect(`*`),this.matchContextualKeyword(`as`)||this.throwError(messages_1.Messages.NoAsAfterImportNamespace),this.nextToken();var local=this.parseIdentifierName();return this.finalize(node,new Node.ImportNamespaceSpecifier(local))},Parser$1.prototype.parseImportDeclaration=function(){this.context.inFunctionBody&&this.throwError(messages_1.Messages.IllegalImportDeclaration);var node=this.createNode();this.expectKeyword(`import`);var src,specifiers=[];if(this.lookahead.type===8)src=this.parseModuleSpecifier();else{if(this.match(`{`)?specifiers=specifiers.concat(this.parseNamedImports()):this.match(`*`)?specifiers.push(this.parseImportNamespaceSpecifier()):this.isIdentifierName(this.lookahead)&&!this.matchKeyword(`default`)?(specifiers.push(this.parseImportDefaultSpecifier()),this.match(`,`)&&(this.nextToken(),this.match(`*`)?specifiers.push(this.parseImportNamespaceSpecifier()):this.match(`{`)?specifiers=specifiers.concat(this.parseNamedImports()):this.throwUnexpectedToken(this.lookahead))):this.throwUnexpectedToken(this.nextToken()),!this.matchContextualKeyword(`from`)){var message$1=this.lookahead.value?messages_1.Messages.UnexpectedToken:messages_1.Messages.MissingFromClause;this.throwError(message$1,this.lookahead.value)}this.nextToken(),src=this.parseModuleSpecifier()}return this.consumeSemicolon(),this.finalize(node,new Node.ImportDeclaration(specifiers,src))},Parser$1.prototype.parseExportSpecifier=function(){var node=this.createNode(),local=this.parseIdentifierName(),exported=local;return this.matchContextualKeyword(`as`)&&(this.nextToken(),exported=this.parseIdentifierName()),this.finalize(node,new Node.ExportSpecifier(local,exported))},Parser$1.prototype.parseExportDeclaration=function(){this.context.inFunctionBody&&this.throwError(messages_1.Messages.IllegalExportDeclaration);var node=this.createNode();this.expectKeyword(`export`);var exportDeclaration;if(this.matchKeyword(`default`))if(this.nextToken(),this.matchKeyword(`function`)){var declaration=this.parseFunctionDeclaration(!0);exportDeclaration=this.finalize(node,new Node.ExportDefaultDeclaration(declaration))}else if(this.matchKeyword(`class`)){var declaration=this.parseClassDeclaration(!0);exportDeclaration=this.finalize(node,new Node.ExportDefaultDeclaration(declaration))}else if(this.matchContextualKeyword(`async`)){var declaration=this.matchAsyncFunction()?this.parseFunctionDeclaration(!0):this.parseAssignmentExpression();exportDeclaration=this.finalize(node,new Node.ExportDefaultDeclaration(declaration))}else{this.matchContextualKeyword(`from`)&&this.throwError(messages_1.Messages.UnexpectedToken,this.lookahead.value);var declaration=this.match(`{`)?this.parseObjectInitializer():this.match(`[`)?this.parseArrayInitializer():this.parseAssignmentExpression();this.consumeSemicolon(),exportDeclaration=this.finalize(node,new Node.ExportDefaultDeclaration(declaration))}else if(this.match(`*`)){if(this.nextToken(),!this.matchContextualKeyword(`from`)){var message$1=this.lookahead.value?messages_1.Messages.UnexpectedToken:messages_1.Messages.MissingFromClause;this.throwError(message$1,this.lookahead.value)}this.nextToken();var src=this.parseModuleSpecifier();this.consumeSemicolon(),exportDeclaration=this.finalize(node,new Node.ExportAllDeclaration(src))}else if(this.lookahead.type===4){var declaration=void 0;switch(this.lookahead.value){case`let`:case`const`:declaration=this.parseLexicalDeclaration({inFor:!1});break;case`var`:case`class`:case`function`:declaration=this.parseStatementListItem();break;default:this.throwUnexpectedToken(this.lookahead)}exportDeclaration=this.finalize(node,new Node.ExportNamedDeclaration(declaration,[],null))}else if(this.matchAsyncFunction()){var declaration=this.parseFunctionDeclaration();exportDeclaration=this.finalize(node,new Node.ExportNamedDeclaration(declaration,[],null))}else{var specifiers=[],source=null,isExportFromIdentifier=!1;for(this.expect(`{`);!this.match(`}`);)isExportFromIdentifier||=this.matchKeyword(`default`),specifiers.push(this.parseExportSpecifier()),this.match(`}`)||this.expect(`,`);if(this.expect(`}`),this.matchContextualKeyword(`from`))this.nextToken(),source=this.parseModuleSpecifier(),this.consumeSemicolon();else if(isExportFromIdentifier){var message$1=this.lookahead.value?messages_1.Messages.UnexpectedToken:messages_1.Messages.MissingFromClause;this.throwError(message$1,this.lookahead.value)}else this.consumeSemicolon();exportDeclaration=this.finalize(node,new Node.ExportNamedDeclaration(null,specifiers,source))}return exportDeclaration},Parser$1}()},function(module$1,exports$1){Object.defineProperty(exports$1,`__esModule`,{value:!0});function assert(condition,message$1){if(!condition)throw Error(`ASSERT: `+message$1)}exports$1.assert=assert},function(module$1,exports$1){Object.defineProperty(exports$1,`__esModule`,{value:!0}),exports$1.ErrorHandler=function(){function ErrorHandler(){this.errors=[],this.tolerant=!1}return ErrorHandler.prototype.recordError=function(error){this.errors.push(error)},ErrorHandler.prototype.tolerate=function(error){if(this.tolerant)this.recordError(error);else throw error},ErrorHandler.prototype.constructError=function(msg,column){var error=Error(msg);try{throw error}catch(base){Object.create&&Object.defineProperty&&(error=Object.create(base),Object.defineProperty(error,`column`,{value:column}))}return error},ErrorHandler.prototype.createError=function(index,line,col,description){var msg=`Line `+line+`: `+description,error=this.constructError(msg,col);return error.index=index,error.lineNumber=line,error.description=description,error},ErrorHandler.prototype.throwError=function(index,line,col,description){throw this.createError(index,line,col,description)},ErrorHandler.prototype.tolerateError=function(index,line,col,description){var error=this.createError(index,line,col,description);if(this.tolerant)this.recordError(error);else throw error},ErrorHandler}()},function(module$1,exports$1){Object.defineProperty(exports$1,`__esModule`,{value:!0}),exports$1.Messages={BadGetterArity:`Getter must not have any formal parameters`,BadSetterArity:`Setter must have exactly one formal parameter`,BadSetterRestParameter:`Setter function argument must not be a rest parameter`,ConstructorIsAsync:`Class constructor may not be an async method`,ConstructorSpecialMethod:`Class constructor may not be an accessor`,DeclarationMissingInitializer:`Missing initializer in %0 declaration`,DefaultRestParameter:`Unexpected token =`,DuplicateBinding:`Duplicate binding %0`,DuplicateConstructor:`A class may only have one constructor`,DuplicateProtoProperty:`Duplicate __proto__ fields are not allowed in object literals`,ForInOfLoopInitializer:`%0 loop variable declaration may not have an initializer`,GeneratorInLegacyContext:`Generator declarations are not allowed in legacy contexts`,IllegalBreak:`Illegal break statement`,IllegalContinue:`Illegal continue statement`,IllegalExportDeclaration:`Unexpected token`,IllegalImportDeclaration:`Unexpected token`,IllegalLanguageModeDirective:`Illegal 'use strict' directive in function with non-simple parameter list`,IllegalReturn:`Illegal return statement`,InvalidEscapedReservedWord:`Keyword must not contain escaped characters`,InvalidHexEscapeSequence:`Invalid hexadecimal escape sequence`,InvalidLHSInAssignment:`Invalid left-hand side in assignment`,InvalidLHSInForIn:`Invalid left-hand side in for-in`,InvalidLHSInForLoop:`Invalid left-hand side in for-loop`,InvalidModuleSpecifier:`Unexpected token`,InvalidRegExp:`Invalid regular expression`,LetInLexicalBinding:`let is disallowed as a lexically bound name`,MissingFromClause:`Unexpected token`,MultipleDefaultsInSwitch:`More than one default clause in switch statement`,NewlineAfterThrow:`Illegal newline after throw`,NoAsAfterImportNamespace:`Unexpected token`,NoCatchOrFinally:`Missing catch or finally after try`,ParameterAfterRestParameter:`Rest parameter must be last formal parameter`,Redeclaration:`%0 '%1' has already been declared`,StaticPrototype:`Classes may not have static property named prototype`,StrictCatchVariable:`Catch variable may not be eval or arguments in strict mode`,StrictDelete:`Delete of an unqualified identifier in strict mode.`,StrictFunction:`In strict mode code, functions can only be declared at top level or inside a block`,StrictFunctionName:`Function name may not be eval or arguments in strict mode`,StrictLHSAssignment:`Assignment to eval or arguments is not allowed in strict mode`,StrictLHSPostfix:`Postfix increment/decrement may not have eval or arguments operand in strict mode`,StrictLHSPrefix:`Prefix increment/decrement may not have eval or arguments operand in strict mode`,StrictModeWith:`Strict mode code may not include a with statement`,StrictOctalLiteral:`Octal literals are not allowed in strict mode.`,StrictParamDupe:`Strict mode function may not have duplicate parameter names`,StrictParamName:`Parameter name eval or arguments is not allowed in strict mode`,StrictReservedWord:`Use of future reserved word in strict mode`,StrictVarName:`Variable name may not be eval or arguments in strict mode`,TemplateOctalLiteral:`Octal literals are not allowed in template strings.`,UnexpectedEOS:`Unexpected end of input`,UnexpectedIdentifier:`Unexpected identifier`,UnexpectedNumber:`Unexpected number`,UnexpectedReserved:`Unexpected reserved word`,UnexpectedString:`Unexpected string`,UnexpectedTemplate:`Unexpected quasi %0`,UnexpectedToken:`Unexpected token %0`,UnexpectedTokenIllegal:`Unexpected token ILLEGAL`,UnknownLabel:`Undefined label '%0'`,UnterminatedRegExp:`Invalid regular expression: missing /`}},function(module$1,exports$1,__webpack_require__){Object.defineProperty(exports$1,`__esModule`,{value:!0});var assert_1=__webpack_require__(9),character_1=__webpack_require__(4),messages_1=__webpack_require__(11);function hexValue(ch){return`0123456789abcdef`.indexOf(ch.toLowerCase())}function octalValue(ch){return`01234567`.indexOf(ch)}exports$1.Scanner=function(){function Scanner(code,handler){this.source=code,this.errorHandler=handler,this.trackComment=!1,this.isModule=!1,this.length=code.length,this.index=0,this.lineNumber=code.length>0?1:0,this.lineStart=0,this.curlyStack=[]}return Scanner.prototype.saveState=function(){return{index:this.index,lineNumber:this.lineNumber,lineStart:this.lineStart}},Scanner.prototype.restoreState=function(state){this.index=state.index,this.lineNumber=state.lineNumber,this.lineStart=state.lineStart},Scanner.prototype.eof=function(){return this.index>=this.length},Scanner.prototype.throwUnexpectedToken=function(message$1){return message$1===void 0&&(message$1=messages_1.Messages.UnexpectedTokenIllegal),this.errorHandler.throwError(this.index,this.lineNumber,this.index-this.lineStart+1,message$1)},Scanner.prototype.tolerateUnexpectedToken=function(message$1){message$1===void 0&&(message$1=messages_1.Messages.UnexpectedTokenIllegal),this.errorHandler.tolerateError(this.index,this.lineNumber,this.index-this.lineStart+1,message$1)},Scanner.prototype.skipSingleLineComment=function(offset){var comments=[],start,loc;for(this.trackComment&&(comments=[],start=this.index-offset,loc={start:{line:this.lineNumber,column:this.index-this.lineStart-offset},end:{}});!this.eof();){var ch=this.source.charCodeAt(this.index);if(++this.index,character_1.Character.isLineTerminator(ch)){if(this.trackComment){loc.end={line:this.lineNumber,column:this.index-this.lineStart-1};var entry={multiLine:!1,slice:[start+offset,this.index-1],range:[start,this.index-1],loc};comments.push(entry)}return ch===13&&this.source.charCodeAt(this.index)===10&&++this.index,++this.lineNumber,this.lineStart=this.index,comments}}if(this.trackComment){loc.end={line:this.lineNumber,column:this.index-this.lineStart};var entry={multiLine:!1,slice:[start+offset,this.index],range:[start,this.index],loc};comments.push(entry)}return comments},Scanner.prototype.skipMultiLineComment=function(){var comments=[],start,loc;for(this.trackComment&&(comments=[],start=this.index-2,loc={start:{line:this.lineNumber,column:this.index-this.lineStart-2},end:{}});!this.eof();){var ch=this.source.charCodeAt(this.index);if(character_1.Character.isLineTerminator(ch))ch===13&&this.source.charCodeAt(this.index+1)===10&&++this.index,++this.lineNumber,++this.index,this.lineStart=this.index;else if(ch===42){if(this.source.charCodeAt(this.index+1)===47){if(this.index+=2,this.trackComment){loc.end={line:this.lineNumber,column:this.index-this.lineStart};var entry={multiLine:!0,slice:[start+2,this.index-2],range:[start,this.index],loc};comments.push(entry)}return comments}++this.index}else ++this.index}if(this.trackComment){loc.end={line:this.lineNumber,column:this.index-this.lineStart};var entry={multiLine:!0,slice:[start+2,this.index],range:[start,this.index],loc};comments.push(entry)}return this.tolerateUnexpectedToken(),comments},Scanner.prototype.scanComments=function(){var comments;this.trackComment&&(comments=[]);for(var start=this.index===0;!this.eof();){var ch=this.source.charCodeAt(this.index);if(character_1.Character.isWhiteSpace(ch))++this.index;else if(character_1.Character.isLineTerminator(ch))++this.index,ch===13&&this.source.charCodeAt(this.index)===10&&++this.index,++this.lineNumber,this.lineStart=this.index,start=!0;else if(ch===47)if(ch=this.source.charCodeAt(this.index+1),ch===47){this.index+=2;var comment=this.skipSingleLineComment(2);this.trackComment&&(comments=comments.concat(comment)),start=!0}else if(ch===42){this.index+=2;var comment=this.skipMultiLineComment();this.trackComment&&(comments=comments.concat(comment))}else break;else if(start&&ch===45)if(this.source.charCodeAt(this.index+1)===45&&this.source.charCodeAt(this.index+2)===62){this.index+=3;var comment=this.skipSingleLineComment(3);this.trackComment&&(comments=comments.concat(comment))}else break;else if(ch===60&&!this.isModule)if(this.source.slice(this.index+1,this.index+4)===`!--`){this.index+=4;var comment=this.skipSingleLineComment(4);this.trackComment&&(comments=comments.concat(comment))}else break;else break}return comments},Scanner.prototype.isFutureReservedWord=function(id){switch(id){case`enum`:case`export`:case`import`:case`super`:return!0;default:return!1}},Scanner.prototype.isStrictModeReservedWord=function(id){switch(id){case`implements`:case`interface`:case`package`:case`private`:case`protected`:case`public`:case`static`:case`yield`:case`let`:return!0;default:return!1}},Scanner.prototype.isRestrictedWord=function(id){return id===`eval`||id===`arguments`},Scanner.prototype.isKeyword=function(id){switch(id.length){case 2:return id===`if`||id===`in`||id===`do`;case 3:return id===`var`||id===`for`||id===`new`||id===`try`||id===`let`;case 4:return id===`this`||id===`else`||id===`case`||id===`void`||id===`with`||id===`enum`;case 5:return id===`while`||id===`break`||id===`catch`||id===`throw`||id===`const`||id===`yield`||id===`class`||id===`super`;case 6:return id===`return`||id===`typeof`||id===`delete`||id===`switch`||id===`export`||id===`import`;case 7:return id===`default`||id===`finally`||id===`extends`;case 8:return id===`function`||id===`continue`||id===`debugger`;case 10:return id===`instanceof`;default:return!1}},Scanner.prototype.codePointAt=function(i){var cp=this.source.charCodeAt(i);if(cp>=55296&&cp<=56319){var second=this.source.charCodeAt(i+1);second>=56320&&second<=57343&&(cp=(cp-55296)*1024+second-56320+65536)}return cp},Scanner.prototype.scanHexEscape=function(prefix){for(var len=prefix===`u`?4:2,code=0,i=0;i<len;++i)if(!this.eof()&&character_1.Character.isHexDigit(this.source.charCodeAt(this.index)))code=code*16+hexValue(this.source[this.index++]);else return null;return String.fromCharCode(code)},Scanner.prototype.scanUnicodeCodePointEscape=function(){var ch=this.source[this.index],code=0;for(ch===`}`&&this.throwUnexpectedToken();!this.eof()&&(ch=this.source[this.index++],character_1.Character.isHexDigit(ch.charCodeAt(0)));)code=code*16+hexValue(ch);return(code>1114111||ch!==`}`)&&this.throwUnexpectedToken(),character_1.Character.fromCodePoint(code)},Scanner.prototype.getIdentifier=function(){for(var start=this.index++;!this.eof();){var ch=this.source.charCodeAt(this.index);if(ch===92||ch>=55296&&ch<57343)return this.index=start,this.getComplexIdentifier();if(character_1.Character.isIdentifierPart(ch))++this.index;else break}return this.source.slice(start,this.index)},Scanner.prototype.getComplexIdentifier=function(){var cp=this.codePointAt(this.index),id=character_1.Character.fromCodePoint(cp);this.index+=id.length;var ch;for(cp===92&&(this.source.charCodeAt(this.index)!==117&&this.throwUnexpectedToken(),++this.index,this.source[this.index]===`{`?(++this.index,ch=this.scanUnicodeCodePointEscape()):(ch=this.scanHexEscape(`u`),(ch===null||ch===`\\`||!character_1.Character.isIdentifierStart(ch.charCodeAt(0)))&&this.throwUnexpectedToken()),id=ch);!this.eof()&&(cp=this.codePointAt(this.index),character_1.Character.isIdentifierPart(cp));)ch=character_1.Character.fromCodePoint(cp),id+=ch,this.index+=ch.length,cp===92&&(id=id.substr(0,id.length-1),this.source.charCodeAt(this.index)!==117&&this.throwUnexpectedToken(),++this.index,this.source[this.index]===`{`?(++this.index,ch=this.scanUnicodeCodePointEscape()):(ch=this.scanHexEscape(`u`),(ch===null||ch===`\\`||!character_1.Character.isIdentifierPart(ch.charCodeAt(0)))&&this.throwUnexpectedToken()),id+=ch);return id},Scanner.prototype.octalToDecimal=function(ch){var octal=ch!==`0`,code=octalValue(ch);return!this.eof()&&character_1.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(octal=!0,code=code*8+octalValue(this.source[this.index++]),`0123`.indexOf(ch)>=0&&!this.eof()&&character_1.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(code=code*8+octalValue(this.source[this.index++]))),{code,octal}},Scanner.prototype.scanIdentifier=function(){var type,start=this.index,id=this.source.charCodeAt(start)===92?this.getComplexIdentifier():this.getIdentifier();if(type=id.length===1?3:this.isKeyword(id)?4:id===`null`?5:id===`true`||id===`false`?1:3,type!==3&&start+id.length!==this.index){var restore=this.index;this.index=start,this.tolerateUnexpectedToken(messages_1.Messages.InvalidEscapedReservedWord),this.index=restore}return{type,value:id,lineNumber:this.lineNumber,lineStart:this.lineStart,start,end:this.index}},Scanner.prototype.scanPunctuator=function(){var start=this.index,str=this.source[this.index];switch(str){case`(`:case`{`:str===`{`&&this.curlyStack.push(`{`),++this.index;break;case`.`:++this.index,this.source[this.index]===`.`&&this.source[this.index+1]===`.`&&(this.index+=2,str=`...`);break;case`}`:++this.index,this.curlyStack.pop();break;case`)`:case`;`:case`,`:case`[`:case`]`:case`:`:case`?`:case`~`:++this.index;break;default:str=this.source.substr(this.index,4),str===`>>>=`?this.index+=4:(str=str.substr(0,3),str===`===`||str===`!==`||str===`>>>`||str===`<<=`||str===`>>=`||str===`**=`?this.index+=3:(str=str.substr(0,2),str===`&&`||str===`||`||str===`==`||str===`!=`||str===`+=`||str===`-=`||str===`*=`||str===`/=`||str===`++`||str===`--`||str===`<<`||str===`>>`||str===`&=`||str===`|=`||str===`^=`||str===`%=`||str===`<=`||str===`>=`||str===`=>`||str===`**`?this.index+=2:(str=this.source[this.index],`<>=!+-*%&|^/`.indexOf(str)>=0&&++this.index)))}return this.index===start&&this.throwUnexpectedToken(),{type:7,value:str,lineNumber:this.lineNumber,lineStart:this.lineStart,start,end:this.index}},Scanner.prototype.scanHexLiteral=function(start){for(var num=``;!this.eof()&&character_1.Character.isHexDigit(this.source.charCodeAt(this.index));)num+=this.source[this.index++];return num.length===0&&this.throwUnexpectedToken(),character_1.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseInt(`0x`+num,16),lineNumber:this.lineNumber,lineStart:this.lineStart,start,end:this.index}},Scanner.prototype.scanBinaryLiteral=function(start){for(var num=``,ch;!this.eof()&&(ch=this.source[this.index],!(ch!==`0`&&ch!==`1`));)num+=this.source[this.index++];return num.length===0&&this.throwUnexpectedToken(),this.eof()||(ch=this.source.charCodeAt(this.index),(character_1.Character.isIdentifierStart(ch)||character_1.Character.isDecimalDigit(ch))&&this.throwUnexpectedToken()),{type:6,value:parseInt(num,2),lineNumber:this.lineNumber,lineStart:this.lineStart,start,end:this.index}},Scanner.prototype.scanOctalLiteral=function(prefix,start){var num=``,octal=!1;for(character_1.Character.isOctalDigit(prefix.charCodeAt(0))?(octal=!0,num=`0`+this.source[this.index++]):++this.index;!this.eof()&&character_1.Character.isOctalDigit(this.source.charCodeAt(this.index));)num+=this.source[this.index++];return!octal&&num.length===0&&this.throwUnexpectedToken(),(character_1.Character.isIdentifierStart(this.source.charCodeAt(this.index))||character_1.Character.isDecimalDigit(this.source.charCodeAt(this.index)))&&this.throwUnexpectedToken(),{type:6,value:parseInt(num,8),octal,lineNumber:this.lineNumber,lineStart:this.lineStart,start,end:this.index}},Scanner.prototype.isImplicitOctalLiteral=function(){for(var i=this.index+1;i<this.length;++i){var ch=this.source[i];if(ch===`8`||ch===`9`)return!1;if(!character_1.Character.isOctalDigit(ch.charCodeAt(0)))return!0}return!0},Scanner.prototype.scanNumericLiteral=function(){var start=this.index,ch=this.source[start];assert_1.assert(character_1.Character.isDecimalDigit(ch.charCodeAt(0))||ch===`.`,`Numeric literal must start with a decimal digit or a decimal point`);var num=``;if(ch!==`.`){if(num=this.source[this.index++],ch=this.source[this.index],num===`0`){if(ch===`x`||ch===`X`)return++this.index,this.scanHexLiteral(start);if(ch===`b`||ch===`B`)return++this.index,this.scanBinaryLiteral(start);if(ch===`o`||ch===`O`||ch&&character_1.Character.isOctalDigit(ch.charCodeAt(0))&&this.isImplicitOctalLiteral())return this.scanOctalLiteral(ch,start)}for(;character_1.Character.isDecimalDigit(this.source.charCodeAt(this.index));)num+=this.source[this.index++];ch=this.source[this.index]}if(ch===`.`){for(num+=this.source[this.index++];character_1.Character.isDecimalDigit(this.source.charCodeAt(this.index));)num+=this.source[this.index++];ch=this.source[this.index]}if(ch===`e`||ch===`E`)if(num+=this.source[this.index++],ch=this.source[this.index],(ch===`+`||ch===`-`)&&(num+=this.source[this.index++]),character_1.Character.isDecimalDigit(this.source.charCodeAt(this.index)))for(;character_1.Character.isDecimalDigit(this.source.charCodeAt(this.index));)num+=this.source[this.index++];else this.throwUnexpectedToken();return character_1.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseFloat(num),lineNumber:this.lineNumber,lineStart:this.lineStart,start,end:this.index}},Scanner.prototype.scanStringLiteral=function(){var start=this.index,quote=this.source[start];assert_1.assert(quote===`'`||quote===`"`,`String literal must starts with a quote`),++this.index;for(var octal=!1,str=``;!this.eof();){var ch=this.source[this.index++];if(ch===quote){quote=``;break}else if(ch===`\\`)if(ch=this.source[this.index++],!ch||!character_1.Character.isLineTerminator(ch.charCodeAt(0)))switch(ch){case`u`:if(this.source[this.index]===`{`)++this.index,str+=this.scanUnicodeCodePointEscape();else{var unescaped_1=this.scanHexEscape(ch);unescaped_1===null&&this.throwUnexpectedToken(),str+=unescaped_1}break;case`x`:var unescaped=this.scanHexEscape(ch);unescaped===null&&this.throwUnexpectedToken(messages_1.Messages.InvalidHexEscapeSequence),str+=unescaped;break;case`n`:str+=`
119
- `;break;case`r`:str+=`\r`;break;case`t`:str+=` `;break;case`b`:str+=`\b`;break;case`f`:str+=`\f`;break;case`v`:str+=`\v`;break;case`8`:case`9`:str+=ch,this.tolerateUnexpectedToken();break;default:if(ch&&character_1.Character.isOctalDigit(ch.charCodeAt(0))){var octToDec=this.octalToDecimal(ch);octal=octToDec.octal||octal,str+=String.fromCharCode(octToDec.code)}else str+=ch;break}else ++this.lineNumber,ch===`\r`&&this.source[this.index]===`
120
- `&&++this.index,this.lineStart=this.index;else if(character_1.Character.isLineTerminator(ch.charCodeAt(0)))break;else str+=ch}return quote!==``&&(this.index=start,this.throwUnexpectedToken()),{type:8,value:str,octal,lineNumber:this.lineNumber,lineStart:this.lineStart,start,end:this.index}},Scanner.prototype.scanTemplate=function(){var cooked=``,terminated=!1,start=this.index,head=this.source[start]==="`",tail=!1,rawOffset=2;for(++this.index;!this.eof();){var ch=this.source[this.index++];if(ch==="`"){rawOffset=1,tail=!0,terminated=!0;break}else if(ch===`$`){if(this.source[this.index]===`{`){this.curlyStack.push("${"),++this.index,terminated=!0;break}cooked+=ch}else if(ch===`\\`)if(ch=this.source[this.index++],character_1.Character.isLineTerminator(ch.charCodeAt(0)))++this.lineNumber,ch===`\r`&&this.source[this.index]===`
121
- `&&++this.index,this.lineStart=this.index;else switch(ch){case`n`:cooked+=`
122
- `;break;case`r`:cooked+=`\r`;break;case`t`:cooked+=` `;break;case`u`:if(this.source[this.index]===`{`)++this.index,cooked+=this.scanUnicodeCodePointEscape();else{var restore=this.index,unescaped_2=this.scanHexEscape(ch);unescaped_2===null?(this.index=restore,cooked+=ch):cooked+=unescaped_2}break;case`x`:var unescaped=this.scanHexEscape(ch);unescaped===null&&this.throwUnexpectedToken(messages_1.Messages.InvalidHexEscapeSequence),cooked+=unescaped;break;case`b`:cooked+=`\b`;break;case`f`:cooked+=`\f`;break;case`v`:cooked+=`\v`;break;default:ch===`0`?(character_1.Character.isDecimalDigit(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(messages_1.Messages.TemplateOctalLiteral),cooked+=`\0`):character_1.Character.isOctalDigit(ch.charCodeAt(0))?this.throwUnexpectedToken(messages_1.Messages.TemplateOctalLiteral):cooked+=ch;break}else character_1.Character.isLineTerminator(ch.charCodeAt(0))?(++this.lineNumber,ch===`\r`&&this.source[this.index]===`
123
- `&&++this.index,this.lineStart=this.index,cooked+=`
124
- `):cooked+=ch}return terminated||this.throwUnexpectedToken(),head||this.curlyStack.pop(),{type:10,value:this.source.slice(start+1,this.index-rawOffset),cooked,head,tail,lineNumber:this.lineNumber,lineStart:this.lineStart,start,end:this.index}},Scanner.prototype.testRegExp=function(pattern,flags){var astralSubstitute=`￿`,tmp=pattern,self=this;flags.indexOf(`u`)>=0&&(tmp=tmp.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g,function($0,$1,$2){var codePoint=parseInt($1||$2,16);return codePoint>1114111&&self.throwUnexpectedToken(messages_1.Messages.InvalidRegExp),codePoint<=65535?String.fromCharCode(codePoint):astralSubstitute}).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,astralSubstitute));try{return new RegExp(pattern,flags)}catch{return null}},Scanner.prototype.scanRegExpBody=function(){var ch=this.source[this.index];assert_1.assert(ch===`/`,`Regular expression literal must start with a slash`);for(var str=this.source[this.index++],classMarker=!1,terminated=!1;!this.eof();)if(ch=this.source[this.index++],str+=ch,ch===`\\`)ch=this.source[this.index++],character_1.Character.isLineTerminator(ch.charCodeAt(0))&&this.throwUnexpectedToken(messages_1.Messages.UnterminatedRegExp),str+=ch;else if(character_1.Character.isLineTerminator(ch.charCodeAt(0)))this.throwUnexpectedToken(messages_1.Messages.UnterminatedRegExp);else if(classMarker)ch===`]`&&(classMarker=!1);else if(ch===`/`){terminated=!0;break}else ch===`[`&&(classMarker=!0);return terminated||this.throwUnexpectedToken(messages_1.Messages.UnterminatedRegExp),str.substr(1,str.length-2)},Scanner.prototype.scanRegExpFlags=function(){for(var str=``,flags=``;!this.eof();){var ch=this.source[this.index];if(!character_1.Character.isIdentifierPart(ch.charCodeAt(0)))break;if(++this.index,ch===`\\`&&!this.eof())if(ch=this.source[this.index],ch===`u`){++this.index;var restore=this.index,char=this.scanHexEscape(`u`);if(char!==null)for(flags+=char,str+=`\\u`;restore<this.index;++restore)str+=this.source[restore];else this.index=restore,flags+=`u`,str+=`\\u`;this.tolerateUnexpectedToken()}else str+=`\\`,this.tolerateUnexpectedToken();else flags+=ch,str+=ch}return flags},Scanner.prototype.scanRegExp=function(){var start=this.index,pattern=this.scanRegExpBody(),flags=this.scanRegExpFlags();return{type:9,value:``,pattern,flags,regex:this.testRegExp(pattern,flags),lineNumber:this.lineNumber,lineStart:this.lineStart,start,end:this.index}},Scanner.prototype.lex=function(){if(this.eof())return{type:2,value:``,lineNumber:this.lineNumber,lineStart:this.lineStart,start:this.index,end:this.index};var cp=this.source.charCodeAt(this.index);return character_1.Character.isIdentifierStart(cp)?this.scanIdentifier():cp===40||cp===41||cp===59?this.scanPunctuator():cp===39||cp===34?this.scanStringLiteral():cp===46?character_1.Character.isDecimalDigit(this.source.charCodeAt(this.index+1))?this.scanNumericLiteral():this.scanPunctuator():character_1.Character.isDecimalDigit(cp)?this.scanNumericLiteral():cp===96||cp===125&&this.curlyStack[this.curlyStack.length-1]==="${"?this.scanTemplate():cp>=55296&&cp<57343&&character_1.Character.isIdentifierStart(this.codePointAt(this.index))?this.scanIdentifier():this.scanPunctuator()},Scanner}()},function(module$1,exports$1){Object.defineProperty(exports$1,`__esModule`,{value:!0}),exports$1.TokenName={},exports$1.TokenName[1]=`Boolean`,exports$1.TokenName[2]=`<end>`,exports$1.TokenName[3]=`Identifier`,exports$1.TokenName[4]=`Keyword`,exports$1.TokenName[5]=`Null`,exports$1.TokenName[6]=`Numeric`,exports$1.TokenName[7]=`Punctuator`,exports$1.TokenName[8]=`String`,exports$1.TokenName[9]=`RegularExpression`,exports$1.TokenName[10]=`Template`},function(module$1,exports$1){Object.defineProperty(exports$1,`__esModule`,{value:!0}),exports$1.XHTMLEntities={quot:`"`,amp:`&`,apos:`'`,gt:`>`,nbsp:`\xA0`,iexcl:`¡`,cent:`¢`,pound:`£`,curren:`¤`,yen:`¥`,brvbar:`¦`,sect:`§`,uml:`¨`,copy:`©`,ordf:`ª`,laquo:`«`,not:`¬`,shy:`­`,reg:`®`,macr:`¯`,deg:`°`,plusmn:`±`,sup2:`²`,sup3:`³`,acute:`´`,micro:`µ`,para:`¶`,middot:`·`,cedil:`¸`,sup1:`¹`,ordm:`º`,raquo:`»`,frac14:`¼`,frac12:`½`,frac34:`¾`,iquest:`¿`,Agrave:`À`,Aacute:`Á`,Acirc:`Â`,Atilde:`Ã`,Auml:`Ä`,Aring:`Å`,AElig:`Æ`,Ccedil:`Ç`,Egrave:`È`,Eacute:`É`,Ecirc:`Ê`,Euml:`Ë`,Igrave:`Ì`,Iacute:`Í`,Icirc:`Î`,Iuml:`Ï`,ETH:`Ð`,Ntilde:`Ñ`,Ograve:`Ò`,Oacute:`Ó`,Ocirc:`Ô`,Otilde:`Õ`,Ouml:`Ö`,times:`×`,Oslash:`Ø`,Ugrave:`Ù`,Uacute:`Ú`,Ucirc:`Û`,Uuml:`Ü`,Yacute:`Ý`,THORN:`Þ`,szlig:`ß`,agrave:`à`,aacute:`á`,acirc:`â`,atilde:`ã`,auml:`ä`,aring:`å`,aelig:`æ`,ccedil:`ç`,egrave:`è`,eacute:`é`,ecirc:`ê`,euml:`ë`,igrave:`ì`,iacute:`í`,icirc:`î`,iuml:`ï`,eth:`ð`,ntilde:`ñ`,ograve:`ò`,oacute:`ó`,ocirc:`ô`,otilde:`õ`,ouml:`ö`,divide:`÷`,oslash:`ø`,ugrave:`ù`,uacute:`ú`,ucirc:`û`,uuml:`ü`,yacute:`ý`,thorn:`þ`,yuml:`ÿ`,OElig:`Œ`,oelig:`œ`,Scaron:`Š`,scaron:`š`,Yuml:`Ÿ`,fnof:`ƒ`,circ:`ˆ`,tilde:`˜`,Alpha:`Α`,Beta:`Β`,Gamma:`Γ`,Delta:`Δ`,Epsilon:`Ε`,Zeta:`Ζ`,Eta:`Η`,Theta:`Θ`,Iota:`Ι`,Kappa:`Κ`,Lambda:`Λ`,Mu:`Μ`,Nu:`Ν`,Xi:`Ξ`,Omicron:`Ο`,Pi:`Π`,Rho:`Ρ`,Sigma:`Σ`,Tau:`Τ`,Upsilon:`Υ`,Phi:`Φ`,Chi:`Χ`,Psi:`Ψ`,Omega:`Ω`,alpha:`α`,beta:`β`,gamma:`γ`,delta:`δ`,epsilon:`ε`,zeta:`ζ`,eta:`η`,theta:`θ`,iota:`ι`,kappa:`κ`,lambda:`λ`,mu:`μ`,nu:`ν`,xi:`ξ`,omicron:`ο`,pi:`π`,rho:`ρ`,sigmaf:`ς`,sigma:`σ`,tau:`τ`,upsilon:`υ`,phi:`φ`,chi:`χ`,psi:`ψ`,omega:`ω`,thetasym:`ϑ`,upsih:`ϒ`,piv:`ϖ`,ensp:` `,emsp:` `,thinsp:` `,zwnj:`‌`,zwj:`‍`,lrm:`‎`,rlm:`‏`,ndash:`–`,mdash:`—`,lsquo:`‘`,rsquo:`’`,sbquo:`‚`,ldquo:`“`,rdquo:`”`,bdquo:`„`,dagger:`†`,Dagger:`‡`,bull:`•`,hellip:`…`,permil:`‰`,prime:`′`,Prime:`″`,lsaquo:`‹`,rsaquo:`›`,oline:`‾`,frasl:`⁄`,euro:`€`,image:`ℑ`,weierp:`℘`,real:`ℜ`,trade:`™`,alefsym:`ℵ`,larr:`←`,uarr:`↑`,rarr:`→`,darr:`↓`,harr:`↔`,crarr:`↵`,lArr:`⇐`,uArr:`⇑`,rArr:`⇒`,dArr:`⇓`,hArr:`⇔`,forall:`∀`,part:`∂`,exist:`∃`,empty:`∅`,nabla:`∇`,isin:`∈`,notin:`∉`,ni:`∋`,prod:`∏`,sum:`∑`,minus:`−`,lowast:`∗`,radic:`√`,prop:`∝`,infin:`∞`,ang:`∠`,and:`∧`,or:`∨`,cap:`∩`,cup:`∪`,int:`∫`,there4:`∴`,sim:`∼`,cong:`≅`,asymp:`≈`,ne:`≠`,equiv:`≡`,le:`≤`,ge:`≥`,sub:`⊂`,sup:`⊃`,nsub:`⊄`,sube:`⊆`,supe:`⊇`,oplus:`⊕`,otimes:`⊗`,perp:`⊥`,sdot:`⋅`,lceil:`⌈`,rceil:`⌉`,lfloor:`⌊`,rfloor:`⌋`,loz:`◊`,spades:`♠`,clubs:`♣`,hearts:`♥`,diams:`♦`,lang:`⟨`,rang:`⟩`}},function(module$1,exports$1,__webpack_require__){Object.defineProperty(exports$1,`__esModule`,{value:!0});var error_handler_1=__webpack_require__(10),scanner_1=__webpack_require__(12),token_1=__webpack_require__(13),Reader=function(){function Reader$1(){this.values=[],this.curly=this.paren=-1}return Reader$1.prototype.beforeFunctionExpression=function(t){return`(.{.[.in.typeof.instanceof.new.return.case.delete.throw.void.=.+=.-=.*=.**=./=.%=.<<=.>>=.>>>=.&=.|=.^=.,.+.-.*.**./.%.++.--.<<.>>.>>>.&.|.^.!.~.&&.||.?.:.===.==.>=.<=.<.>.!=.!==`.split(`.`).indexOf(t)>=0},Reader$1.prototype.isRegexStart=function(){var previous=this.values[this.values.length-1],regex=previous!==null;switch(previous){case`this`:case`]`:regex=!1;break;case`)`:var keyword=this.values[this.paren-1];regex=keyword===`if`||keyword===`while`||keyword===`for`||keyword===`with`;break;case`}`:if(regex=!1,this.values[this.curly-3]===`function`){var check=this.values[this.curly-4];regex=check?!this.beforeFunctionExpression(check):!1}else if(this.values[this.curly-4]===`function`){var check=this.values[this.curly-5];regex=check?!this.beforeFunctionExpression(check):!0}break;default:break}return regex},Reader$1.prototype.push=function(token){token.type===7||token.type===4?(token.value===`{`?this.curly=this.values.length:token.value===`(`&&(this.paren=this.values.length),this.values.push(token.value)):this.values.push(null)},Reader$1}();exports$1.Tokenizer=function(){function Tokenizer(code,config){this.errorHandler=new error_handler_1.ErrorHandler,this.errorHandler.tolerant=config?typeof config.tolerant==`boolean`&&config.tolerant:!1,this.scanner=new scanner_1.Scanner(code,this.errorHandler),this.scanner.trackComment=config?typeof config.comment==`boolean`&&config.comment:!1,this.trackRange=config?typeof config.range==`boolean`&&config.range:!1,this.trackLoc=config?typeof config.loc==`boolean`&&config.loc:!1,this.buffer=[],this.reader=new Reader}return Tokenizer.prototype.errors=function(){return this.errorHandler.errors},Tokenizer.prototype.getNextToken=function(){if(this.buffer.length===0){var comments=this.scanner.scanComments();if(this.scanner.trackComment)for(var i=0;i<comments.length;++i){var e$1=comments[i],value=this.scanner.source.slice(e$1.slice[0],e$1.slice[1]),comment={type:e$1.multiLine?`BlockComment`:`LineComment`,value};this.trackRange&&(comment.range=e$1.range),this.trackLoc&&(comment.loc=e$1.loc),this.buffer.push(comment)}if(!this.scanner.eof()){var loc=void 0;this.trackLoc&&(loc={start:{line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart},end:{}});var token=this.scanner.source[this.scanner.index]===`/`&&this.reader.isRegexStart()?this.scanner.scanRegExp():this.scanner.lex();this.reader.push(token);var entry={type:token_1.TokenName[token.type],value:this.scanner.source.slice(token.start,token.end)};this.trackRange&&(entry.range=[token.start,token.end]),this.trackLoc&&(loc.end={line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart},entry.loc=loc),token.type===9&&(entry.regex={pattern:token.pattern,flags:token.flags}),this.buffer.push(entry)}}return this.buffer.shift()},Tokenizer}()}])})})),require_function=__commonJSMin(((exports,module)=>{var esprima;try{esprima=require_esprima()}catch{typeof window<`u`&&(esprima=window.esprima)}var Type=require_type();function resolveJavascriptFunction(data){if(data===null)return!1;try{var source=`(`+data+`)`,ast=esprima.parse(source,{range:!0});return!(ast.type!==`Program`||ast.body.length!==1||ast.body[0].type!==`ExpressionStatement`||ast.body[0].expression.type!==`ArrowFunctionExpression`&&ast.body[0].expression.type!==`FunctionExpression`)}catch{return!1}}function constructJavascriptFunction(data){var source=`(`+data+`)`,ast=esprima.parse(source,{range:!0}),params=[],body;if(ast.type!==`Program`||ast.body.length!==1||ast.body[0].type!==`ExpressionStatement`||ast.body[0].expression.type!==`ArrowFunctionExpression`&&ast.body[0].expression.type!==`FunctionExpression`)throw Error(`Failed to resolve function`);return ast.body[0].expression.params.forEach(function(param){params.push(param.name)}),body=ast.body[0].expression.body.range,ast.body[0].expression.body.type===`BlockStatement`?Function(params,source.slice(body[0]+1,body[1]-1)):Function(params,`return `+source.slice(body[0],body[1]))}function representJavascriptFunction(object){return object.toString()}function isFunction(object){return Object.prototype.toString.call(object)===`[object Function]`}module.exports=new Type(`tag:yaml.org,2002:js/function`,{kind:`scalar`,resolve:resolveJavascriptFunction,construct:constructJavascriptFunction,predicate:isFunction,represent:representJavascriptFunction})})),require_default_full=__commonJSMin(((exports,module)=>{var Schema=require_schema();module.exports=Schema.DEFAULT=new Schema({include:[require_default_safe()],explicit:[require_undefined(),require_regexp(),require_function()]})})),require_loader=__commonJSMin(((exports,module)=>{var common=require_common(),YAMLException=require_exception(),Mark=require_mark(),DEFAULT_SAFE_SCHEMA=require_default_safe(),DEFAULT_FULL_SCHEMA=require_default_full(),_hasOwnProperty=Object.prototype.hasOwnProperty,CONTEXT_FLOW_IN=1,CONTEXT_FLOW_OUT=2,CONTEXT_BLOCK_IN=3,CONTEXT_BLOCK_OUT=4,CHOMPING_CLIP=1,CHOMPING_STRIP=2,CHOMPING_KEEP=3,PATTERN_NON_PRINTABLE=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,PATTERN_NON_ASCII_LINE_BREAKS=/[\x85\u2028\u2029]/,PATTERN_FLOW_INDICATORS=/[,\[\]\{\}]/,PATTERN_TAG_HANDLE=/^(?:!|!!|![a-z\-]+!)$/i,PATTERN_TAG_URI=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function _class(obj){return Object.prototype.toString.call(obj)}function is_EOL(c){return c===10||c===13}function is_WHITE_SPACE(c){return c===9||c===32}function is_WS_OR_EOL(c){return c===9||c===32||c===10||c===13}function is_FLOW_INDICATOR(c){return c===44||c===91||c===93||c===123||c===125}function fromHexCode(c){var lc;return 48<=c&&c<=57?c-48:(lc=c|32,97<=lc&&lc<=102?lc-97+10:-1)}function escapedHexLen(c){return c===120?2:c===117?4:c===85?8:0}function fromDecimalCode(c){return 48<=c&&c<=57?c-48:-1}function simpleEscapeSequence(c){return c===48?`\0`:c===97?`\x07`:c===98?`\b`:c===116||c===9?` `:c===110?`
125
- `:c===118?`\v`:c===102?`\f`:c===114?`\r`:c===101?`\x1B`:c===32?` `:c===34?`"`:c===47?`/`:c===92?`\\`:c===78?`…`:c===95?`\xA0`:c===76?`\u2028`:c===80?`\u2029`:``}function charFromCodepoint(c){return c<=65535?String.fromCharCode(c):String.fromCharCode((c-65536>>10)+55296,(c-65536&1023)+56320)}function setProperty(object,key,value){key===`__proto__`?Object.defineProperty(object,key,{configurable:!0,enumerable:!0,writable:!0,value}):object[key]=value}for(var simpleEscapeCheck=Array(256),simpleEscapeMap=Array(256),i=0;i<256;i++)simpleEscapeCheck[i]=simpleEscapeSequence(i)?1:0,simpleEscapeMap[i]=simpleEscapeSequence(i);function State(input,options){this.input=input,this.filename=options.filename||null,this.schema=options.schema||DEFAULT_FULL_SCHEMA,this.onWarning=options.onWarning||null,this.legacy=options.legacy||!1,this.json=options.json||!1,this.listener=options.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=input.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function generateError(state,message$1){return new YAMLException(message$1,new Mark(state.filename,state.input,state.position,state.line,state.position-state.lineStart))}function throwError(state,message$1){throw generateError(state,message$1)}function throwWarning(state,message$1){state.onWarning&&state.onWarning.call(null,generateError(state,message$1))}var directiveHandlers={YAML:function(state,name,args){var match$1,major,minor;state.version!==null&&throwError(state,`duplication of %YAML directive`),args.length!==1&&throwError(state,`YAML directive accepts exactly one argument`),match$1=/^([0-9]+)\.([0-9]+)$/.exec(args[0]),match$1===null&&throwError(state,`ill-formed argument of the YAML directive`),major=parseInt(match$1[1],10),minor=parseInt(match$1[2],10),major!==1&&throwError(state,`unacceptable YAML version of the document`),state.version=args[0],state.checkLineBreaks=minor<2,minor!==1&&minor!==2&&throwWarning(state,`unsupported YAML version of the document`)},TAG:function(state,name,args){var handle,prefix;args.length!==2&&throwError(state,`TAG directive accepts exactly two arguments`),handle=args[0],prefix=args[1],PATTERN_TAG_HANDLE.test(handle)||throwError(state,`ill-formed tag handle (first argument) of the TAG directive`),_hasOwnProperty.call(state.tagMap,handle)&&throwError(state,`there is a previously declared suffix for "`+handle+`" tag handle`),PATTERN_TAG_URI.test(prefix)||throwError(state,`ill-formed tag prefix (second argument) of the TAG directive`),state.tagMap[handle]=prefix}};function captureSegment(state,start,end,checkJson){var _position,_length,_character,_result;if(start<end){if(_result=state.input.slice(start,end),checkJson)for(_position=0,_length=_result.length;_position<_length;_position+=1)_character=_result.charCodeAt(_position),_character===9||32<=_character&&_character<=1114111||throwError(state,`expected valid JSON character`);else PATTERN_NON_PRINTABLE.test(_result)&&throwError(state,`the stream contains non-printable characters`);state.result+=_result}}function mergeMappings(state,destination,source,overridableKeys){var sourceKeys,key,index,quantity;for(common.isObject(source)||throwError(state,`cannot merge mappings; the provided source object is unacceptable`),sourceKeys=Object.keys(source),index=0,quantity=sourceKeys.length;index<quantity;index+=1)key=sourceKeys[index],_hasOwnProperty.call(destination,key)||(setProperty(destination,key,source[key]),overridableKeys[key]=!0)}function storeMappingPair(state,_result,overridableKeys,keyTag,keyNode,valueNode,startLine,startPos){var index,quantity;if(Array.isArray(keyNode))for(keyNode=Array.prototype.slice.call(keyNode),index=0,quantity=keyNode.length;index<quantity;index+=1)Array.isArray(keyNode[index])&&throwError(state,`nested arrays are not supported inside keys`),typeof keyNode==`object`&&_class(keyNode[index])===`[object Object]`&&(keyNode[index]=`[object Object]`);if(typeof keyNode==`object`&&_class(keyNode)===`[object Object]`&&(keyNode=`[object Object]`),keyNode=String(keyNode),_result===null&&(_result={}),keyTag===`tag:yaml.org,2002:merge`)if(Array.isArray(valueNode))for(index=0,quantity=valueNode.length;index<quantity;index+=1)mergeMappings(state,_result,valueNode[index],overridableKeys);else mergeMappings(state,_result,valueNode,overridableKeys);else !state.json&&!_hasOwnProperty.call(overridableKeys,keyNode)&&_hasOwnProperty.call(_result,keyNode)&&(state.line=startLine||state.line,state.position=startPos||state.position,throwError(state,`duplicated mapping key`)),setProperty(_result,keyNode,valueNode),delete overridableKeys[keyNode];return _result}function readLineBreak(state){var ch=state.input.charCodeAt(state.position);ch===10?state.position++:ch===13?(state.position++,state.input.charCodeAt(state.position)===10&&state.position++):throwError(state,`a line break is expected`),state.line+=1,state.lineStart=state.position}function skipSeparationSpace(state,allowComments,checkIndent){for(var lineBreaks=0,ch=state.input.charCodeAt(state.position);ch!==0;){for(;is_WHITE_SPACE(ch);)ch=state.input.charCodeAt(++state.position);if(allowComments&&ch===35)do ch=state.input.charCodeAt(++state.position);while(ch!==10&&ch!==13&&ch!==0);if(is_EOL(ch))for(readLineBreak(state),ch=state.input.charCodeAt(state.position),lineBreaks++,state.lineIndent=0;ch===32;)state.lineIndent++,ch=state.input.charCodeAt(++state.position);else break}return checkIndent!==-1&&lineBreaks!==0&&state.lineIndent<checkIndent&&throwWarning(state,`deficient indentation`),lineBreaks}function testDocumentSeparator(state){var _position=state.position,ch=state.input.charCodeAt(_position);return!!((ch===45||ch===46)&&ch===state.input.charCodeAt(_position+1)&&ch===state.input.charCodeAt(_position+2)&&(_position+=3,ch=state.input.charCodeAt(_position),ch===0||is_WS_OR_EOL(ch)))}function writeFoldedLines(state,count){count===1?state.result+=` `:count>1&&(state.result+=common.repeat(`
126
- `,count-1))}function readPlainScalar(state,nodeIndent,withinFlowCollection){var preceding,following,captureStart,captureEnd,hasPendingContent,_line,_lineStart,_lineIndent,_kind=state.kind,_result=state.result,ch=state.input.charCodeAt(state.position);if(is_WS_OR_EOL(ch)||is_FLOW_INDICATOR(ch)||ch===35||ch===38||ch===42||ch===33||ch===124||ch===62||ch===39||ch===34||ch===37||ch===64||ch===96||(ch===63||ch===45)&&(following=state.input.charCodeAt(state.position+1),is_WS_OR_EOL(following)||withinFlowCollection&&is_FLOW_INDICATOR(following)))return!1;for(state.kind=`scalar`,state.result=``,captureStart=captureEnd=state.position,hasPendingContent=!1;ch!==0;){if(ch===58){if(following=state.input.charCodeAt(state.position+1),is_WS_OR_EOL(following)||withinFlowCollection&&is_FLOW_INDICATOR(following))break}else if(ch===35){if(preceding=state.input.charCodeAt(state.position-1),is_WS_OR_EOL(preceding))break}else if(state.position===state.lineStart&&testDocumentSeparator(state)||withinFlowCollection&&is_FLOW_INDICATOR(ch))break;else if(is_EOL(ch))if(_line=state.line,_lineStart=state.lineStart,_lineIndent=state.lineIndent,skipSeparationSpace(state,!1,-1),state.lineIndent>=nodeIndent){hasPendingContent=!0,ch=state.input.charCodeAt(state.position);continue}else{state.position=captureEnd,state.line=_line,state.lineStart=_lineStart,state.lineIndent=_lineIndent;break}hasPendingContent&&=(captureSegment(state,captureStart,captureEnd,!1),writeFoldedLines(state,state.line-_line),captureStart=captureEnd=state.position,!1),is_WHITE_SPACE(ch)||(captureEnd=state.position+1),ch=state.input.charCodeAt(++state.position)}return captureSegment(state,captureStart,captureEnd,!1),state.result?!0:(state.kind=_kind,state.result=_result,!1)}function readSingleQuotedScalar(state,nodeIndent){var ch=state.input.charCodeAt(state.position),captureStart,captureEnd;if(ch!==39)return!1;for(state.kind=`scalar`,state.result=``,state.position++,captureStart=captureEnd=state.position;(ch=state.input.charCodeAt(state.position))!==0;)if(ch===39)if(captureSegment(state,captureStart,state.position,!0),ch=state.input.charCodeAt(++state.position),ch===39)captureStart=state.position,state.position++,captureEnd=state.position;else return!0;else is_EOL(ch)?(captureSegment(state,captureStart,captureEnd,!0),writeFoldedLines(state,skipSeparationSpace(state,!1,nodeIndent)),captureStart=captureEnd=state.position):state.position===state.lineStart&&testDocumentSeparator(state)?throwError(state,`unexpected end of the document within a single quoted scalar`):(state.position++,captureEnd=state.position);throwError(state,`unexpected end of the stream within a single quoted scalar`)}function readDoubleQuotedScalar(state,nodeIndent){var captureStart,captureEnd,hexLength,hexResult,tmp,ch=state.input.charCodeAt(state.position);if(ch!==34)return!1;for(state.kind=`scalar`,state.result=``,state.position++,captureStart=captureEnd=state.position;(ch=state.input.charCodeAt(state.position))!==0;)if(ch===34)return captureSegment(state,captureStart,state.position,!0),state.position++,!0;else if(ch===92){if(captureSegment(state,captureStart,state.position,!0),ch=state.input.charCodeAt(++state.position),is_EOL(ch))skipSeparationSpace(state,!1,nodeIndent);else if(ch<256&&simpleEscapeCheck[ch])state.result+=simpleEscapeMap[ch],state.position++;else if((tmp=escapedHexLen(ch))>0){for(hexLength=tmp,hexResult=0;hexLength>0;hexLength--)ch=state.input.charCodeAt(++state.position),(tmp=fromHexCode(ch))>=0?hexResult=(hexResult<<4)+tmp:throwError(state,`expected hexadecimal character`);state.result+=charFromCodepoint(hexResult),state.position++}else throwError(state,`unknown escape sequence`);captureStart=captureEnd=state.position}else is_EOL(ch)?(captureSegment(state,captureStart,captureEnd,!0),writeFoldedLines(state,skipSeparationSpace(state,!1,nodeIndent)),captureStart=captureEnd=state.position):state.position===state.lineStart&&testDocumentSeparator(state)?throwError(state,`unexpected end of the document within a double quoted scalar`):(state.position++,captureEnd=state.position);throwError(state,`unexpected end of the stream within a double quoted scalar`)}function readFlowCollection(state,nodeIndent){var readNext=!0,_line,_tag=state.tag,_result,_anchor=state.anchor,following,terminator,isPair,isExplicitPair,isMapping,overridableKeys={},keyNode,keyTag,valueNode,ch=state.input.charCodeAt(state.position);if(ch===91)terminator=93,isMapping=!1,_result=[];else if(ch===123)terminator=125,isMapping=!0,_result={};else return!1;for(state.anchor!==null&&(state.anchorMap[state.anchor]=_result),ch=state.input.charCodeAt(++state.position);ch!==0;){if(skipSeparationSpace(state,!0,nodeIndent),ch=state.input.charCodeAt(state.position),ch===terminator)return state.position++,state.tag=_tag,state.anchor=_anchor,state.kind=isMapping?`mapping`:`sequence`,state.result=_result,!0;readNext||throwError(state,`missed comma between flow collection entries`),keyTag=keyNode=valueNode=null,isPair=isExplicitPair=!1,ch===63&&(following=state.input.charCodeAt(state.position+1),is_WS_OR_EOL(following)&&(isPair=isExplicitPair=!0,state.position++,skipSeparationSpace(state,!0,nodeIndent))),_line=state.line,composeNode(state,nodeIndent,CONTEXT_FLOW_IN,!1,!0),keyTag=state.tag,keyNode=state.result,skipSeparationSpace(state,!0,nodeIndent),ch=state.input.charCodeAt(state.position),(isExplicitPair||state.line===_line)&&ch===58&&(isPair=!0,ch=state.input.charCodeAt(++state.position),skipSeparationSpace(state,!0,nodeIndent),composeNode(state,nodeIndent,CONTEXT_FLOW_IN,!1,!0),valueNode=state.result),isMapping?storeMappingPair(state,_result,overridableKeys,keyTag,keyNode,valueNode):isPair?_result.push(storeMappingPair(state,null,overridableKeys,keyTag,keyNode,valueNode)):_result.push(keyNode),skipSeparationSpace(state,!0,nodeIndent),ch=state.input.charCodeAt(state.position),ch===44?(readNext=!0,ch=state.input.charCodeAt(++state.position)):readNext=!1}throwError(state,`unexpected end of the stream within a flow collection`)}function readBlockScalar(state,nodeIndent){var captureStart,folding,chomping=CHOMPING_CLIP,didReadContent=!1,detectedIndent=!1,textIndent=nodeIndent,emptyLines=0,atMoreIndented=!1,tmp,ch=state.input.charCodeAt(state.position);if(ch===124)folding=!1;else if(ch===62)folding=!0;else return!1;for(state.kind=`scalar`,state.result=``;ch!==0;)if(ch=state.input.charCodeAt(++state.position),ch===43||ch===45)CHOMPING_CLIP===chomping?chomping=ch===43?CHOMPING_KEEP:CHOMPING_STRIP:throwError(state,`repeat of a chomping mode identifier`);else if((tmp=fromDecimalCode(ch))>=0)tmp===0?throwError(state,`bad explicit indentation width of a block scalar; it cannot be less than one`):detectedIndent?throwError(state,`repeat of an indentation width identifier`):(textIndent=nodeIndent+tmp-1,detectedIndent=!0);else break;if(is_WHITE_SPACE(ch)){do ch=state.input.charCodeAt(++state.position);while(is_WHITE_SPACE(ch));if(ch===35)do ch=state.input.charCodeAt(++state.position);while(!is_EOL(ch)&&ch!==0)}for(;ch!==0;){for(readLineBreak(state),state.lineIndent=0,ch=state.input.charCodeAt(state.position);(!detectedIndent||state.lineIndent<textIndent)&&ch===32;)state.lineIndent++,ch=state.input.charCodeAt(++state.position);if(!detectedIndent&&state.lineIndent>textIndent&&(textIndent=state.lineIndent),is_EOL(ch)){emptyLines++;continue}if(state.lineIndent<textIndent){chomping===CHOMPING_KEEP?state.result+=common.repeat(`
127
- `,didReadContent?1+emptyLines:emptyLines):chomping===CHOMPING_CLIP&&didReadContent&&(state.result+=`
128
- `);break}for(folding?is_WHITE_SPACE(ch)?(atMoreIndented=!0,state.result+=common.repeat(`
129
- `,didReadContent?1+emptyLines:emptyLines)):atMoreIndented?(atMoreIndented=!1,state.result+=common.repeat(`
130
- `,emptyLines+1)):emptyLines===0?didReadContent&&(state.result+=` `):state.result+=common.repeat(`
131
- `,emptyLines):state.result+=common.repeat(`
132
- `,didReadContent?1+emptyLines:emptyLines),didReadContent=!0,detectedIndent=!0,emptyLines=0,captureStart=state.position;!is_EOL(ch)&&ch!==0;)ch=state.input.charCodeAt(++state.position);captureSegment(state,captureStart,state.position,!1)}return!0}function readBlockSequence(state,nodeIndent){var _line,_tag=state.tag,_anchor=state.anchor,_result=[],following,detected=!1,ch;for(state.anchor!==null&&(state.anchorMap[state.anchor]=_result),ch=state.input.charCodeAt(state.position);ch!==0&&!(ch!==45||(following=state.input.charCodeAt(state.position+1),!is_WS_OR_EOL(following)));){if(detected=!0,state.position++,skipSeparationSpace(state,!0,-1)&&state.lineIndent<=nodeIndent){_result.push(null),ch=state.input.charCodeAt(state.position);continue}if(_line=state.line,composeNode(state,nodeIndent,CONTEXT_BLOCK_IN,!1,!0),_result.push(state.result),skipSeparationSpace(state,!0,-1),ch=state.input.charCodeAt(state.position),(state.line===_line||state.lineIndent>nodeIndent)&&ch!==0)throwError(state,`bad indentation of a sequence entry`);else if(state.lineIndent<nodeIndent)break}return detected?(state.tag=_tag,state.anchor=_anchor,state.kind=`sequence`,state.result=_result,!0):!1}function readBlockMapping(state,nodeIndent,flowIndent){var following,allowCompact,_line,_pos,_tag=state.tag,_anchor=state.anchor,_result={},overridableKeys={},keyTag=null,keyNode=null,valueNode=null,atExplicitKey=!1,detected=!1,ch;for(state.anchor!==null&&(state.anchorMap[state.anchor]=_result),ch=state.input.charCodeAt(state.position);ch!==0;){if(following=state.input.charCodeAt(state.position+1),_line=state.line,_pos=state.position,(ch===63||ch===58)&&is_WS_OR_EOL(following))ch===63?(atExplicitKey&&(storeMappingPair(state,_result,overridableKeys,keyTag,keyNode,null),keyTag=keyNode=valueNode=null),detected=!0,atExplicitKey=!0,allowCompact=!0):atExplicitKey?(atExplicitKey=!1,allowCompact=!0):throwError(state,`incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line`),state.position+=1,ch=following;else if(composeNode(state,flowIndent,CONTEXT_FLOW_OUT,!1,!0))if(state.line===_line){for(ch=state.input.charCodeAt(state.position);is_WHITE_SPACE(ch);)ch=state.input.charCodeAt(++state.position);if(ch===58)ch=state.input.charCodeAt(++state.position),is_WS_OR_EOL(ch)||throwError(state,`a whitespace character is expected after the key-value separator within a block mapping`),atExplicitKey&&(storeMappingPair(state,_result,overridableKeys,keyTag,keyNode,null),keyTag=keyNode=valueNode=null),detected=!0,atExplicitKey=!1,allowCompact=!1,keyTag=state.tag,keyNode=state.result;else if(detected)throwError(state,`can not read an implicit mapping pair; a colon is missed`);else return state.tag=_tag,state.anchor=_anchor,!0}else if(detected)throwError(state,`can not read a block mapping entry; a multiline key may not be an implicit key`);else return state.tag=_tag,state.anchor=_anchor,!0;else break;if((state.line===_line||state.lineIndent>nodeIndent)&&(composeNode(state,nodeIndent,CONTEXT_BLOCK_OUT,!0,allowCompact)&&(atExplicitKey?keyNode=state.result:valueNode=state.result),atExplicitKey||(storeMappingPair(state,_result,overridableKeys,keyTag,keyNode,valueNode,_line,_pos),keyTag=keyNode=valueNode=null),skipSeparationSpace(state,!0,-1),ch=state.input.charCodeAt(state.position)),state.lineIndent>nodeIndent&&ch!==0)throwError(state,`bad indentation of a mapping entry`);else if(state.lineIndent<nodeIndent)break}return atExplicitKey&&storeMappingPair(state,_result,overridableKeys,keyTag,keyNode,null),detected&&(state.tag=_tag,state.anchor=_anchor,state.kind=`mapping`,state.result=_result),detected}function readTagProperty(state){var _position,isVerbatim=!1,isNamed=!1,tagHandle,tagName,ch=state.input.charCodeAt(state.position);if(ch!==33)return!1;if(state.tag!==null&&throwError(state,`duplication of a tag property`),ch=state.input.charCodeAt(++state.position),ch===60?(isVerbatim=!0,ch=state.input.charCodeAt(++state.position)):ch===33?(isNamed=!0,tagHandle=`!!`,ch=state.input.charCodeAt(++state.position)):tagHandle=`!`,_position=state.position,isVerbatim){do ch=state.input.charCodeAt(++state.position);while(ch!==0&&ch!==62);state.position<state.length?(tagName=state.input.slice(_position,state.position),ch=state.input.charCodeAt(++state.position)):throwError(state,`unexpected end of the stream within a verbatim tag`)}else{for(;ch!==0&&!is_WS_OR_EOL(ch);)ch===33&&(isNamed?throwError(state,`tag suffix cannot contain exclamation marks`):(tagHandle=state.input.slice(_position-1,state.position+1),PATTERN_TAG_HANDLE.test(tagHandle)||throwError(state,`named tag handle cannot contain such characters`),isNamed=!0,_position=state.position+1)),ch=state.input.charCodeAt(++state.position);tagName=state.input.slice(_position,state.position),PATTERN_FLOW_INDICATORS.test(tagName)&&throwError(state,`tag suffix cannot contain flow indicator characters`)}return tagName&&!PATTERN_TAG_URI.test(tagName)&&throwError(state,`tag name cannot contain such characters: `+tagName),isVerbatim?state.tag=tagName:_hasOwnProperty.call(state.tagMap,tagHandle)?state.tag=state.tagMap[tagHandle]+tagName:tagHandle===`!`?state.tag=`!`+tagName:tagHandle===`!!`?state.tag=`tag:yaml.org,2002:`+tagName:throwError(state,`undeclared tag handle "`+tagHandle+`"`),!0}function readAnchorProperty(state){var _position,ch=state.input.charCodeAt(state.position);if(ch!==38)return!1;for(state.anchor!==null&&throwError(state,`duplication of an anchor property`),ch=state.input.charCodeAt(++state.position),_position=state.position;ch!==0&&!is_WS_OR_EOL(ch)&&!is_FLOW_INDICATOR(ch);)ch=state.input.charCodeAt(++state.position);return state.position===_position&&throwError(state,`name of an anchor node must contain at least one character`),state.anchor=state.input.slice(_position,state.position),!0}function readAlias(state){var _position,alias,ch=state.input.charCodeAt(state.position);if(ch!==42)return!1;for(ch=state.input.charCodeAt(++state.position),_position=state.position;ch!==0&&!is_WS_OR_EOL(ch)&&!is_FLOW_INDICATOR(ch);)ch=state.input.charCodeAt(++state.position);return state.position===_position&&throwError(state,`name of an alias node must contain at least one character`),alias=state.input.slice(_position,state.position),_hasOwnProperty.call(state.anchorMap,alias)||throwError(state,`unidentified alias "`+alias+`"`),state.result=state.anchorMap[alias],skipSeparationSpace(state,!0,-1),!0}function composeNode(state,parentIndent,nodeContext,allowToSeek,allowCompact){var allowBlockStyles,allowBlockScalars,allowBlockCollections,indentStatus=1,atNewLine=!1,hasContent=!1,typeIndex,typeQuantity,type,flowIndent,blockIndent;if(state.listener!==null&&state.listener(`open`,state),state.tag=null,state.anchor=null,state.kind=null,state.result=null,allowBlockStyles=allowBlockScalars=allowBlockCollections=CONTEXT_BLOCK_OUT===nodeContext||CONTEXT_BLOCK_IN===nodeContext,allowToSeek&&skipSeparationSpace(state,!0,-1)&&(atNewLine=!0,state.lineIndent>parentIndent?indentStatus=1:state.lineIndent===parentIndent?indentStatus=0:state.lineIndent<parentIndent&&(indentStatus=-1)),indentStatus===1)for(;readTagProperty(state)||readAnchorProperty(state);)skipSeparationSpace(state,!0,-1)?(atNewLine=!0,allowBlockCollections=allowBlockStyles,state.lineIndent>parentIndent?indentStatus=1:state.lineIndent===parentIndent?indentStatus=0:state.lineIndent<parentIndent&&(indentStatus=-1)):allowBlockCollections=!1;if(allowBlockCollections&&=atNewLine||allowCompact,(indentStatus===1||CONTEXT_BLOCK_OUT===nodeContext)&&(flowIndent=CONTEXT_FLOW_IN===nodeContext||CONTEXT_FLOW_OUT===nodeContext?parentIndent:parentIndent+1,blockIndent=state.position-state.lineStart,indentStatus===1?allowBlockCollections&&(readBlockSequence(state,blockIndent)||readBlockMapping(state,blockIndent,flowIndent))||readFlowCollection(state,flowIndent)?hasContent=!0:(allowBlockScalars&&readBlockScalar(state,flowIndent)||readSingleQuotedScalar(state,flowIndent)||readDoubleQuotedScalar(state,flowIndent)?hasContent=!0:readAlias(state)?(hasContent=!0,(state.tag!==null||state.anchor!==null)&&throwError(state,`alias node should not have any properties`)):readPlainScalar(state,flowIndent,CONTEXT_FLOW_IN===nodeContext)&&(hasContent=!0,state.tag===null&&(state.tag=`?`)),state.anchor!==null&&(state.anchorMap[state.anchor]=state.result)):indentStatus===0&&(hasContent=allowBlockCollections&&readBlockSequence(state,blockIndent))),state.tag!==null&&state.tag!==`!`)if(state.tag===`?`){for(state.result!==null&&state.kind!==`scalar`&&throwError(state,`unacceptable node kind for !<?> tag; it should be "scalar", not "`+state.kind+`"`),typeIndex=0,typeQuantity=state.implicitTypes.length;typeIndex<typeQuantity;typeIndex+=1)if(type=state.implicitTypes[typeIndex],type.resolve(state.result)){state.result=type.construct(state.result),state.tag=type.tag,state.anchor!==null&&(state.anchorMap[state.anchor]=state.result);break}}else _hasOwnProperty.call(state.typeMap[state.kind||`fallback`],state.tag)?(type=state.typeMap[state.kind||`fallback`][state.tag],state.result!==null&&type.kind!==state.kind&&throwError(state,`unacceptable node kind for !<`+state.tag+`> tag; it should be "`+type.kind+`", not "`+state.kind+`"`),type.resolve(state.result)?(state.result=type.construct(state.result),state.anchor!==null&&(state.anchorMap[state.anchor]=state.result)):throwError(state,`cannot resolve a node with !<`+state.tag+`> explicit tag`)):throwError(state,`unknown tag !<`+state.tag+`>`);return state.listener!==null&&state.listener(`close`,state),state.tag!==null||state.anchor!==null||hasContent}function readDocument(state){var documentStart=state.position,_position,directiveName,directiveArgs,hasDirectives=!1,ch;for(state.version=null,state.checkLineBreaks=state.legacy,state.tagMap={},state.anchorMap={};(ch=state.input.charCodeAt(state.position))!==0&&(skipSeparationSpace(state,!0,-1),ch=state.input.charCodeAt(state.position),!(state.lineIndent>0||ch!==37));){for(hasDirectives=!0,ch=state.input.charCodeAt(++state.position),_position=state.position;ch!==0&&!is_WS_OR_EOL(ch);)ch=state.input.charCodeAt(++state.position);for(directiveName=state.input.slice(_position,state.position),directiveArgs=[],directiveName.length<1&&throwError(state,`directive name must not be less than one character in length`);ch!==0;){for(;is_WHITE_SPACE(ch);)ch=state.input.charCodeAt(++state.position);if(ch===35){do ch=state.input.charCodeAt(++state.position);while(ch!==0&&!is_EOL(ch));break}if(is_EOL(ch))break;for(_position=state.position;ch!==0&&!is_WS_OR_EOL(ch);)ch=state.input.charCodeAt(++state.position);directiveArgs.push(state.input.slice(_position,state.position))}ch!==0&&readLineBreak(state),_hasOwnProperty.call(directiveHandlers,directiveName)?directiveHandlers[directiveName](state,directiveName,directiveArgs):throwWarning(state,`unknown document directive "`+directiveName+`"`)}if(skipSeparationSpace(state,!0,-1),state.lineIndent===0&&state.input.charCodeAt(state.position)===45&&state.input.charCodeAt(state.position+1)===45&&state.input.charCodeAt(state.position+2)===45?(state.position+=3,skipSeparationSpace(state,!0,-1)):hasDirectives&&throwError(state,`directives end mark is expected`),composeNode(state,state.lineIndent-1,CONTEXT_BLOCK_OUT,!1,!0),skipSeparationSpace(state,!0,-1),state.checkLineBreaks&&PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart,state.position))&&throwWarning(state,`non-ASCII line breaks are interpreted as content`),state.documents.push(state.result),state.position===state.lineStart&&testDocumentSeparator(state)){state.input.charCodeAt(state.position)===46&&(state.position+=3,skipSeparationSpace(state,!0,-1));return}if(state.position<state.length-1)throwError(state,`end of the stream or a document separator is expected`);else return}function loadDocuments(input,options){input=String(input),options||={},input.length!==0&&(input.charCodeAt(input.length-1)!==10&&input.charCodeAt(input.length-1)!==13&&(input+=`
133
- `),input.charCodeAt(0)===65279&&(input=input.slice(1)));var state=new State(input,options),nullpos=input.indexOf(`\0`);for(nullpos!==-1&&(state.position=nullpos,throwError(state,`null byte is not allowed in input`)),state.input+=`\0`;state.input.charCodeAt(state.position)===32;)state.lineIndent+=1,state.position+=1;for(;state.position<state.length-1;)readDocument(state);return state.documents}function loadAll(input,iterator,options){typeof iterator==`object`&&iterator&&options===void 0&&(options=iterator,iterator=null);var documents=loadDocuments(input,options);if(typeof iterator!=`function`)return documents;for(var index=0,length=documents.length;index<length;index+=1)iterator(documents[index])}function load(input,options){var documents=loadDocuments(input,options);if(documents.length!==0){if(documents.length===1)return documents[0];throw new YAMLException(`expected a single document in the stream, but found more`)}}function safeLoadAll(input,iterator,options){return typeof iterator==`object`&&iterator&&options===void 0&&(options=iterator,iterator=null),loadAll(input,iterator,common.extend({schema:DEFAULT_SAFE_SCHEMA},options))}function safeLoad(input,options){return load(input,common.extend({schema:DEFAULT_SAFE_SCHEMA},options))}module.exports.loadAll=loadAll,module.exports.load=load,module.exports.safeLoadAll=safeLoadAll,module.exports.safeLoad=safeLoad})),require_dumper=__commonJSMin(((exports,module)=>{var common=require_common(),YAMLException=require_exception(),DEFAULT_FULL_SCHEMA=require_default_full(),DEFAULT_SAFE_SCHEMA=require_default_safe(),_toString=Object.prototype.toString,_hasOwnProperty=Object.prototype.hasOwnProperty,CHAR_TAB=9,CHAR_LINE_FEED=10,CHAR_CARRIAGE_RETURN=13,CHAR_SPACE=32,CHAR_EXCLAMATION=33,CHAR_DOUBLE_QUOTE=34,CHAR_SHARP=35,CHAR_PERCENT=37,CHAR_AMPERSAND=38,CHAR_SINGLE_QUOTE=39,CHAR_ASTERISK=42,CHAR_COMMA=44,CHAR_MINUS=45,CHAR_COLON=58,CHAR_EQUALS=61,CHAR_GREATER_THAN=62,CHAR_QUESTION=63,CHAR_COMMERCIAL_AT=64,CHAR_LEFT_SQUARE_BRACKET=91,CHAR_RIGHT_SQUARE_BRACKET=93,CHAR_GRAVE_ACCENT=96,CHAR_LEFT_CURLY_BRACKET=123,CHAR_VERTICAL_LINE=124,CHAR_RIGHT_CURLY_BRACKET=125,ESCAPE_SEQUENCES={};ESCAPE_SEQUENCES[0]=`\\0`,ESCAPE_SEQUENCES[7]=`\\a`,ESCAPE_SEQUENCES[8]=`\\b`,ESCAPE_SEQUENCES[9]=`\\t`,ESCAPE_SEQUENCES[10]=`\\n`,ESCAPE_SEQUENCES[11]=`\\v`,ESCAPE_SEQUENCES[12]=`\\f`,ESCAPE_SEQUENCES[13]=`\\r`,ESCAPE_SEQUENCES[27]=`\\e`,ESCAPE_SEQUENCES[34]=`\\"`,ESCAPE_SEQUENCES[92]=`\\\\`,ESCAPE_SEQUENCES[133]=`\\N`,ESCAPE_SEQUENCES[160]=`\\_`,ESCAPE_SEQUENCES[8232]=`\\L`,ESCAPE_SEQUENCES[8233]=`\\P`;var DEPRECATED_BOOLEANS_SYNTAX=[`y`,`Y`,`yes`,`Yes`,`YES`,`on`,`On`,`ON`,`n`,`N`,`no`,`No`,`NO`,`off`,`Off`,`OFF`];function compileStyleMap(schema,map){var result,keys,index,length,tag,style,type;if(map===null)return{};for(result={},keys=Object.keys(map),index=0,length=keys.length;index<length;index+=1)tag=keys[index],style=String(map[tag]),tag.slice(0,2)===`!!`&&(tag=`tag:yaml.org,2002:`+tag.slice(2)),type=schema.compiledTypeMap.fallback[tag],type&&_hasOwnProperty.call(type.styleAliases,style)&&(style=type.styleAliases[style]),result[tag]=style;return result}function encodeHex(character){var string=character.toString(16).toUpperCase(),handle,length;if(character<=255)handle=`x`,length=2;else if(character<=65535)handle=`u`,length=4;else if(character<=4294967295)handle=`U`,length=8;else throw new YAMLException(`code point within a string may not be greater than 0xFFFFFFFF`);return`\\`+handle+common.repeat(`0`,length-string.length)+string}function State(options){this.schema=options.schema||DEFAULT_FULL_SCHEMA,this.indent=Math.max(1,options.indent||2),this.noArrayIndent=options.noArrayIndent||!1,this.skipInvalid=options.skipInvalid||!1,this.flowLevel=common.isNothing(options.flowLevel)?-1:options.flowLevel,this.styleMap=compileStyleMap(this.schema,options.styles||null),this.sortKeys=options.sortKeys||!1,this.lineWidth=options.lineWidth||80,this.noRefs=options.noRefs||!1,this.noCompatMode=options.noCompatMode||!1,this.condenseFlow=options.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result=``,this.duplicates=[],this.usedDuplicates=null}function indentString(string,spaces){for(var ind=common.repeat(` `,spaces),position=0,next=-1,result=``,line,length=string.length;position<length;)next=string.indexOf(`
134
- `,position),next===-1?(line=string.slice(position),position=length):(line=string.slice(position,next+1),position=next+1),line.length&&line!==`
135
- `&&(result+=ind),result+=line;return result}function generateNextLine(state,level){return`
136
- `+common.repeat(` `,state.indent*level)}function testImplicitResolving(state,str){var index,length,type;for(index=0,length=state.implicitTypes.length;index<length;index+=1)if(type=state.implicitTypes[index],type.resolve(str))return!0;return!1}function isWhitespace(c){return c===CHAR_SPACE||c===CHAR_TAB}function isPrintable(c){return 32<=c&&c<=126||161<=c&&c<=55295&&c!==8232&&c!==8233||57344<=c&&c<=65533&&c!==65279||65536<=c&&c<=1114111}function isNsChar(c){return isPrintable(c)&&!isWhitespace(c)&&c!==65279&&c!==CHAR_CARRIAGE_RETURN&&c!==CHAR_LINE_FEED}function isPlainSafe(c,prev){return isPrintable(c)&&c!==65279&&c!==CHAR_COMMA&&c!==CHAR_LEFT_SQUARE_BRACKET&&c!==CHAR_RIGHT_SQUARE_BRACKET&&c!==CHAR_LEFT_CURLY_BRACKET&&c!==CHAR_RIGHT_CURLY_BRACKET&&c!==CHAR_COLON&&(c!==CHAR_SHARP||prev&&isNsChar(prev))}function isPlainSafeFirst(c){return isPrintable(c)&&c!==65279&&!isWhitespace(c)&&c!==CHAR_MINUS&&c!==CHAR_QUESTION&&c!==CHAR_COLON&&c!==CHAR_COMMA&&c!==CHAR_LEFT_SQUARE_BRACKET&&c!==CHAR_RIGHT_SQUARE_BRACKET&&c!==CHAR_LEFT_CURLY_BRACKET&&c!==CHAR_RIGHT_CURLY_BRACKET&&c!==CHAR_SHARP&&c!==CHAR_AMPERSAND&&c!==CHAR_ASTERISK&&c!==CHAR_EXCLAMATION&&c!==CHAR_VERTICAL_LINE&&c!==CHAR_EQUALS&&c!==CHAR_GREATER_THAN&&c!==CHAR_SINGLE_QUOTE&&c!==CHAR_DOUBLE_QUOTE&&c!==CHAR_PERCENT&&c!==CHAR_COMMERCIAL_AT&&c!==CHAR_GRAVE_ACCENT}function needIndentIndicator(string){return/^\n* /.test(string)}var STYLE_PLAIN=1,STYLE_SINGLE=2,STYLE_LITERAL=3,STYLE_FOLDED=4,STYLE_DOUBLE=5;function chooseScalarStyle(string,singleLineOnly,indentPerLevel,lineWidth,testAmbiguousType){var i,char,prev_char,hasLineBreak=!1,hasFoldableLine=!1,shouldTrackWidth=lineWidth!==-1,previousLineBreak=-1,plain=isPlainSafeFirst(string.charCodeAt(0))&&!isWhitespace(string.charCodeAt(string.length-1));if(singleLineOnly)for(i=0;i<string.length;i++){if(char=string.charCodeAt(i),!isPrintable(char))return STYLE_DOUBLE;prev_char=i>0?string.charCodeAt(i-1):null,plain&&=isPlainSafe(char,prev_char)}else{for(i=0;i<string.length;i++){if(char=string.charCodeAt(i),char===CHAR_LINE_FEED)hasLineBreak=!0,shouldTrackWidth&&(hasFoldableLine||=i-previousLineBreak-1>lineWidth&&string[previousLineBreak+1]!==` `,previousLineBreak=i);else if(!isPrintable(char))return STYLE_DOUBLE;prev_char=i>0?string.charCodeAt(i-1):null,plain&&=isPlainSafe(char,prev_char)}hasFoldableLine||=shouldTrackWidth&&i-previousLineBreak-1>lineWidth&&string[previousLineBreak+1]!==` `}return!hasLineBreak&&!hasFoldableLine?plain&&!testAmbiguousType(string)?STYLE_PLAIN:STYLE_SINGLE:indentPerLevel>9&&needIndentIndicator(string)?STYLE_DOUBLE:hasFoldableLine?STYLE_FOLDED:STYLE_LITERAL}function writeScalar(state,string,level,iskey){state.dump=function(){if(string.length===0)return`''`;if(!state.noCompatMode&&DEPRECATED_BOOLEANS_SYNTAX.indexOf(string)!==-1)return`'`+string+`'`;var indent=state.indent*Math.max(1,level),lineWidth=state.lineWidth===-1?-1:Math.max(Math.min(state.lineWidth,40),state.lineWidth-indent),singleLineOnly=iskey||state.flowLevel>-1&&level>=state.flowLevel;function testAmbiguity(string$1){return testImplicitResolving(state,string$1)}switch(chooseScalarStyle(string,singleLineOnly,state.indent,lineWidth,testAmbiguity)){case STYLE_PLAIN:return string;case STYLE_SINGLE:return`'`+string.replace(/'/g,`''`)+`'`;case STYLE_LITERAL:return`|`+blockHeader(string,state.indent)+dropEndingNewline(indentString(string,indent));case STYLE_FOLDED:return`>`+blockHeader(string,state.indent)+dropEndingNewline(indentString(foldString(string,lineWidth),indent));case STYLE_DOUBLE:return`"`+escapeString(string,lineWidth)+`"`;default:throw new YAMLException(`impossible error: invalid scalar style`)}}()}function blockHeader(string,indentPerLevel){var indentIndicator=needIndentIndicator(string)?String(indentPerLevel):``,clip=string[string.length-1]===`
137
- `;return indentIndicator+(clip&&(string[string.length-2]===`
138
- `||string===`
139
- `)?`+`:clip?``:`-`)+`
140
- `}function dropEndingNewline(string){return string[string.length-1]===`
141
- `?string.slice(0,-1):string}function foldString(string,width){for(var lineRe=/(\n+)([^\n]*)/g,result=function(){var nextLF=string.indexOf(`
142
- `);return nextLF=nextLF===-1?string.length:nextLF,lineRe.lastIndex=nextLF,foldLine(string.slice(0,nextLF),width)}(),prevMoreIndented=string[0]===`
143
- `||string[0]===` `,moreIndented,match$1;match$1=lineRe.exec(string);){var prefix=match$1[1],line=match$1[2];moreIndented=line[0]===` `,result+=prefix+(!prevMoreIndented&&!moreIndented&&line!==``?`
144
- `:``)+foldLine(line,width),prevMoreIndented=moreIndented}return result}function foldLine(line,width){if(line===``||line[0]===` `)return line;for(var breakRe=/ [^ ]/g,match$1,start=0,end,curr=0,next=0,result=``;match$1=breakRe.exec(line);)next=match$1.index,next-start>width&&(end=curr>start?curr:next,result+=`
145
- `+line.slice(start,end),start=end+1),curr=next;return result+=`
146
- `,line.length-start>width&&curr>start?result+=line.slice(start,curr)+`
147
- `+line.slice(curr+1):result+=line.slice(start),result.slice(1)}function escapeString(string){for(var result=``,char,nextChar,escapeSeq,i=0;i<string.length;i++){if(char=string.charCodeAt(i),char>=55296&&char<=56319&&(nextChar=string.charCodeAt(i+1),nextChar>=56320&&nextChar<=57343)){result+=encodeHex((char-55296)*1024+nextChar-56320+65536),i++;continue}escapeSeq=ESCAPE_SEQUENCES[char],result+=!escapeSeq&&isPrintable(char)?string[i]:escapeSeq||encodeHex(char)}return result}function writeFlowSequence(state,level,object){var _result=``,_tag=state.tag,index,length;for(index=0,length=object.length;index<length;index+=1)writeNode(state,level,object[index],!1,!1)&&(index!==0&&(_result+=`,`+(state.condenseFlow?``:` `)),_result+=state.dump);state.tag=_tag,state.dump=`[`+_result+`]`}function writeBlockSequence(state,level,object,compact){var _result=``,_tag=state.tag,index,length;for(index=0,length=object.length;index<length;index+=1)writeNode(state,level+1,object[index],!0,!0)&&((!compact||index!==0)&&(_result+=generateNextLine(state,level)),state.dump&&CHAR_LINE_FEED===state.dump.charCodeAt(0)?_result+=`-`:_result+=`- `,_result+=state.dump);state.tag=_tag,state.dump=_result||`[]`}function writeFlowMapping(state,level,object){var _result=``,_tag=state.tag,objectKeyList=Object.keys(object),index,length,objectKey,objectValue,pairBuffer;for(index=0,length=objectKeyList.length;index<length;index+=1)pairBuffer=``,index!==0&&(pairBuffer+=`, `),state.condenseFlow&&(pairBuffer+=`"`),objectKey=objectKeyList[index],objectValue=object[objectKey],writeNode(state,level,objectKey,!1,!1)&&(state.dump.length>1024&&(pairBuffer+=`? `),pairBuffer+=state.dump+(state.condenseFlow?`"`:``)+`:`+(state.condenseFlow?``:` `),writeNode(state,level,objectValue,!1,!1)&&(pairBuffer+=state.dump,_result+=pairBuffer));state.tag=_tag,state.dump=`{`+_result+`}`}function writeBlockMapping(state,level,object,compact){var _result=``,_tag=state.tag,objectKeyList=Object.keys(object),index,length,objectKey,objectValue,explicitPair,pairBuffer;if(state.sortKeys===!0)objectKeyList.sort();else if(typeof state.sortKeys==`function`)objectKeyList.sort(state.sortKeys);else if(state.sortKeys)throw new YAMLException(`sortKeys must be a boolean or a function`);for(index=0,length=objectKeyList.length;index<length;index+=1)pairBuffer=``,(!compact||index!==0)&&(pairBuffer+=generateNextLine(state,level)),objectKey=objectKeyList[index],objectValue=object[objectKey],writeNode(state,level+1,objectKey,!0,!0,!0)&&(explicitPair=state.tag!==null&&state.tag!==`?`||state.dump&&state.dump.length>1024,explicitPair&&(state.dump&&CHAR_LINE_FEED===state.dump.charCodeAt(0)?pairBuffer+=`?`:pairBuffer+=`? `),pairBuffer+=state.dump,explicitPair&&(pairBuffer+=generateNextLine(state,level)),writeNode(state,level+1,objectValue,!0,explicitPair)&&(state.dump&&CHAR_LINE_FEED===state.dump.charCodeAt(0)?pairBuffer+=`:`:pairBuffer+=`: `,pairBuffer+=state.dump,_result+=pairBuffer));state.tag=_tag,state.dump=_result||`{}`}function detectType(state,object,explicit){var _result,typeList=explicit?state.explicitTypes:state.implicitTypes,index,length,type,style;for(index=0,length=typeList.length;index<length;index+=1)if(type=typeList[index],(type.instanceOf||type.predicate)&&(!type.instanceOf||typeof object==`object`&&object instanceof type.instanceOf)&&(!type.predicate||type.predicate(object))){if(state.tag=explicit?type.tag:`?`,type.represent){if(style=state.styleMap[type.tag]||type.defaultStyle,_toString.call(type.represent)===`[object Function]`)_result=type.represent(object,style);else if(_hasOwnProperty.call(type.represent,style))_result=type.represent[style](object,style);else throw new YAMLException(`!<`+type.tag+`> tag resolver accepts not "`+style+`" style`);state.dump=_result}return!0}return!1}function writeNode(state,level,object,block,compact,iskey){state.tag=null,state.dump=object,detectType(state,object,!1)||detectType(state,object,!0);var type=_toString.call(state.dump);block&&=state.flowLevel<0||state.flowLevel>level;var objectOrArray=type===`[object Object]`||type===`[object Array]`,duplicateIndex,duplicate;if(objectOrArray&&(duplicateIndex=state.duplicates.indexOf(object),duplicate=duplicateIndex!==-1),(state.tag!==null&&state.tag!==`?`||duplicate||state.indent!==2&&level>0)&&(compact=!1),duplicate&&state.usedDuplicates[duplicateIndex])state.dump=`*ref_`+duplicateIndex;else{if(objectOrArray&&duplicate&&!state.usedDuplicates[duplicateIndex]&&(state.usedDuplicates[duplicateIndex]=!0),type===`[object Object]`)block&&Object.keys(state.dump).length!==0?(writeBlockMapping(state,level,state.dump,compact),duplicate&&(state.dump=`&ref_`+duplicateIndex+state.dump)):(writeFlowMapping(state,level,state.dump),duplicate&&(state.dump=`&ref_`+duplicateIndex+` `+state.dump));else if(type===`[object Array]`){var arrayLevel=state.noArrayIndent&&level>0?level-1:level;block&&state.dump.length!==0?(writeBlockSequence(state,arrayLevel,state.dump,compact),duplicate&&(state.dump=`&ref_`+duplicateIndex+state.dump)):(writeFlowSequence(state,arrayLevel,state.dump),duplicate&&(state.dump=`&ref_`+duplicateIndex+` `+state.dump))}else if(type===`[object String]`)state.tag!==`?`&&writeScalar(state,state.dump,level,iskey);else{if(state.skipInvalid)return!1;throw new YAMLException(`unacceptable kind of an object to dump `+type)}state.tag!==null&&state.tag!==`?`&&(state.dump=`!<`+state.tag+`> `+state.dump)}return!0}function getDuplicateReferences(object,state){var objects=[],duplicatesIndexes=[],index,length;for(inspectNode(object,objects,duplicatesIndexes),index=0,length=duplicatesIndexes.length;index<length;index+=1)state.duplicates.push(objects[duplicatesIndexes[index]]);state.usedDuplicates=Array(length)}function inspectNode(object,objects,duplicatesIndexes){var objectKeyList,index,length;if(typeof object==`object`&&object)if(index=objects.indexOf(object),index!==-1)duplicatesIndexes.indexOf(index)===-1&&duplicatesIndexes.push(index);else if(objects.push(object),Array.isArray(object))for(index=0,length=object.length;index<length;index+=1)inspectNode(object[index],objects,duplicatesIndexes);else for(objectKeyList=Object.keys(object),index=0,length=objectKeyList.length;index<length;index+=1)inspectNode(object[objectKeyList[index]],objects,duplicatesIndexes)}function dump(input,options){options||={};var state=new State(options);return state.noRefs||getDuplicateReferences(input,state),writeNode(state,0,input,!0,!0)?state.dump+`
148
- `:``}function safeDump(input,options){return dump(input,common.extend({schema:DEFAULT_SAFE_SCHEMA},options))}module.exports.dump=dump,module.exports.safeDump=safeDump})),require_js_yaml$1=__commonJSMin(((exports,module)=>{var loader=require_loader(),dumper=require_dumper();function deprecated(name){return function(){throw Error(`Function `+name+` is deprecated and cannot be used.`)}}module.exports.Type=require_type(),module.exports.Schema=require_schema(),module.exports.FAILSAFE_SCHEMA=require_failsafe(),module.exports.JSON_SCHEMA=require_json(),module.exports.CORE_SCHEMA=require_core(),module.exports.DEFAULT_SAFE_SCHEMA=require_default_safe(),module.exports.DEFAULT_FULL_SCHEMA=require_default_full(),module.exports.load=loader.load,module.exports.loadAll=loader.loadAll,module.exports.safeLoad=loader.safeLoad,module.exports.safeLoadAll=loader.safeLoadAll,module.exports.dump=dumper.dump,module.exports.safeDump=dumper.safeDump,module.exports.YAMLException=require_exception(),module.exports.MINIMAL_SCHEMA=require_failsafe(),module.exports.SAFE_SCHEMA=require_default_safe(),module.exports.DEFAULT_SCHEMA=require_default_full(),module.exports.scan=deprecated(`scan`),module.exports.parse=deprecated(`parse`),module.exports.compose=deprecated(`compose`),module.exports.addConstructor=deprecated(`addConstructor`)})),require_js_yaml=__commonJSMin(((exports,module)=>{module.exports=require_js_yaml$1()})),require_engines=__commonJSMin(((exports,module)=>{const yaml=require_js_yaml(),engines=exports=module.exports;engines.yaml={parse:yaml.safeLoad.bind(yaml),stringify:yaml.safeDump.bind(yaml)},engines.json={parse:JSON.parse.bind(JSON),stringify:function(obj,options){let opts=Object.assign({replacer:null,space:2},options);return JSON.stringify(obj,opts.replacer,opts.space)}},engines.javascript={parse:function parse$1(str,options,wrap){try{return wrap!==!1&&(str=`(function() {
149
- return `+str.trim()+`;
150
- }());`),eval(str)||{}}catch(err){if(wrap!==!1&&/(unexpected|identifier)/i.test(err.message))return parse$1(str,options,!1);throw SyntaxError(err)}},stringify:function(){throw Error(`stringifying JavaScript is not supported`)}}})),require_strip_bom_string=__commonJSMin(((exports,module)=>{module.exports=function(str){return typeof str==`string`&&str.charAt(0)===``?str.slice(1):str}})),require_utils=__commonJSMin((exports=>{let stripBom=require_strip_bom_string(),typeOf=require_kind_of();exports.define=function(obj,key,val){Reflect.defineProperty(obj,key,{enumerable:!1,configurable:!0,writable:!0,value:val})},exports.isBuffer=function(val){return typeOf(val)===`buffer`},exports.isObject=function(val){return typeOf(val)===`object`},exports.toBuffer=function(input){return typeof input==`string`?Buffer.from(input):input},exports.toString=function(input){if(exports.isBuffer(input))return stripBom(String(input));if(typeof input!=`string`)throw TypeError(`expected input to be a string or buffer`);return stripBom(input)},exports.arrayify=function(val){return val?Array.isArray(val)?val:[val]:[]},exports.startsWith=function(str,substr,len){return typeof len!=`number`&&(len=substr.length),str.slice(0,len)===substr}})),require_defaults=__commonJSMin(((exports,module)=>{let engines=require_engines(),utils=require_utils();module.exports=function(options){let opts=Object.assign({},options);return opts.delimiters=utils.arrayify(opts.delims||opts.delimiters||`---`),opts.delimiters.length===1&&opts.delimiters.push(opts.delimiters[0]),opts.language=(opts.language||opts.lang||`yaml`).toLowerCase(),opts.engines=Object.assign({},engines,opts.parsers,opts.engines),opts}})),require_engine=__commonJSMin(((exports,module)=>{module.exports=function(name,options){let engine=options.engines[name]||options.engines[aliase(name)];if(engine===void 0)throw Error(`gray-matter engine "`+name+`" is not registered`);return typeof engine==`function`&&(engine={parse:engine}),engine};function aliase(name){switch(name.toLowerCase()){case`js`:case`javascript`:return`javascript`;case`coffee`:case`coffeescript`:case`cson`:return`coffee`;case`yaml`:case`yml`:return`yaml`;default:return name}}})),require_stringify=__commonJSMin(((exports,module)=>{let typeOf=require_kind_of(),getEngine=require_engine(),defaults=require_defaults();module.exports=function(file,data,options){if(data==null&&options==null)switch(typeOf(file)){case`object`:data=file.data,options={};break;case`string`:return file;default:throw TypeError(`expected file to be a string or object`)}let str=file.content,opts=defaults(options);if(data==null){if(!opts.data)return file;data=opts.data}let language=file.language||opts.language,engine=getEngine(language,opts);if(typeof engine.stringify!=`function`)throw TypeError(`expected "`+language+`.stringify" to be a function`);data=Object.assign({},file.data,data);let open=opts.delimiters[0],close=opts.delimiters[1],matter$2=engine.stringify(data,options).trim(),buf=``;return matter$2!==`{}`&&(buf=newline(open)+newline(matter$2)+newline(close)),typeof file.excerpt==`string`&&file.excerpt!==``&&str.indexOf(file.excerpt.trim())===-1&&(buf+=newline(file.excerpt)+newline(close)),buf+newline(str)};function newline(str){return str.slice(-1)===`
151
- `?str:str+`
152
- `}})),require_excerpt=__commonJSMin(((exports,module)=>{let defaults=require_defaults();module.exports=function(file,options){let opts=defaults(options);if(file.data??={},typeof opts.excerpt==`function`)return opts.excerpt(file,opts);let sep=file.data.excerpt_separator||opts.excerpt_separator;if(sep==null&&(opts.excerpt===!1||opts.excerpt==null))return file;let delimiter=typeof opts.excerpt==`string`?opts.excerpt:sep||opts.delimiters[0],idx=file.content.indexOf(delimiter);return idx!==-1&&(file.excerpt=file.content.slice(0,idx)),file}})),require_to_file=__commonJSMin(((exports,module)=>{let typeOf=require_kind_of(),stringify=require_stringify(),utils=require_utils();module.exports=function(file){return typeOf(file)!==`object`&&(file={content:file}),typeOf(file.data)!==`object`&&(file.data={}),file.contents&&file.content==null&&(file.content=file.contents),utils.define(file,`orig`,utils.toBuffer(file.content)),utils.define(file,`language`,file.language||``),utils.define(file,`matter`,file.matter||``),utils.define(file,`stringify`,function(data,options){return options&&options.language&&(file.language=options.language),stringify(file,data,options)}),file.content=utils.toString(file.content),file.isEmpty=!1,file.excerpt=``,file}})),require_parse=__commonJSMin(((exports,module)=>{let getEngine=require_engine(),defaults=require_defaults();module.exports=function(language,str,options){let opts=defaults(options),engine=getEngine(language,opts);if(typeof engine.parse!=`function`)throw TypeError(`expected "`+language+`.parse" to be a function`);return engine.parse(str,opts)}})),require_gray_matter=__commonJSMin(((exports,module)=>{let fs=__require(`fs`),sections=require_section_matter(),defaults=require_defaults(),stringify=require_stringify(),excerpt=require_excerpt(),engines=require_engines(),toFile=require_to_file(),parse=require_parse(),utils=require_utils();function matter(input,options){if(input===``)return{data:{},content:input,excerpt:``,orig:input};let file=toFile(input),cached=matter.cache[file.content];if(!options){if(cached)return file=Object.assign({},cached),file.orig=cached.orig,file;matter.cache[file.content]=file}return parseMatter(file,options)}function parseMatter(file,options){let opts=defaults(options),open=opts.delimiters[0],close=`
153
- `+opts.delimiters[1],str=file.content;opts.language&&(file.language=opts.language);let openLen=open.length;if(!utils.startsWith(str,open,openLen))return excerpt(file,opts),file;if(str.charAt(openLen)===open.slice(-1))return file;str=str.slice(openLen);let len=str.length,language=matter.language(str,opts);language.name&&(file.language=language.name,str=str.slice(language.raw.length));let closeIndex=str.indexOf(close);return closeIndex===-1&&(closeIndex=len),file.matter=str.slice(0,closeIndex),file.matter.replace(/^\s*#[^\n]+/gm,``).trim()===``?(file.isEmpty=!0,file.empty=file.content,file.data={}):file.data=parse(file.language,file.matter,opts),closeIndex===len?file.content=``:(file.content=str.slice(closeIndex+close.length),file.content[0]===`\r`&&(file.content=file.content.slice(1)),file.content[0]===`
154
- `&&(file.content=file.content.slice(1))),excerpt(file,opts),(opts.sections===!0||typeof opts.section==`function`)&&sections(file,opts.section),file}matter.engines=engines,matter.stringify=function(file,data,options){return typeof file==`string`&&(file=matter(file,options)),stringify(file,data,options)},matter.read=function(filepath,options){let file=matter(fs.readFileSync(filepath,`utf8`),options);return file.path=filepath,file},matter.test=function(str,options){return utils.startsWith(str,defaults(options).delimiters[0])},matter.language=function(str,options){let open=defaults(options).delimiters[0];matter.test(str)&&(str=str.slice(open.length));let language=str.slice(0,str.search(/\r?\n/));return{raw:language,name:language?language.trim():``}},matter.cache={},matter.clearCache=function(){matter.cache={}},module.exports=matter})),import_gray_matter=__toESM(require_gray_matter(),1);function createContentDirectory(date,title,hasVideo,hasImages,basePath=process$1.cwd()){let directoryPath=resolve(join(basePath,format(date,`yyyy`),format(date,`MM`),format(date,`dd`))),contentFilePath=join(directoryPath,`linkedin.md`);if(existsSync(contentFilePath))return M.info(`linkedin.md already exists at: ${contentFilePath}`),directoryPath;mkdirSync(directoryPath,{recursive:!0}),M.success(`Created directory: ${directoryPath}`);let frontmatter={title};if(hasVideo&&(frontmatter.video=!0),hasImages&&(frontmatter.images=[null]),writeFileSync(contentFilePath,import_gray_matter.default.stringify(`
2
+ import e from"node:process";import{intro as t,isCancel as n,log as r,outro as i,select as a,text as o}from"@clack/prompts";import{cac as s}from"cac";import{addDays as c,format as l,parse as u}from"date-fns";import{existsSync as d,mkdirSync as f,readFileSync as p,readdirSync as m,statSync as h,writeFileSync as g}from"node:fs";import{join as _,resolve as v}from"node:path";import y from"gray-matter";var b=`0.8.1`;function x(t,n,i,a,o=e.cwd()){let s=v(_(o,l(t,`yyyy`),l(t,`MM`),l(t,`dd`))),c=_(s,`linkedin.md`);if(d(c))return r.info(`linkedin.md already exists at: ${c}`),s;f(s,{recursive:!0}),r.success(`Created directory: ${s}`);let u={title:n};if(i&&(u.video=!0),a&&(u.images=[null]),g(c,y.stringify(`
155
3
 
156
4
  ---
157
5
 
158
6
  👨‍💻 Je m'appelle Estéban, et avec moi, viens explorer le web, aussi bien techniquement que humainement ! Si ça te parle, abonne-toi !
159
- `,frontmatter),`utf-8`),M.success(`Created linkedin.md at: ${contentFilePath}`),hasVideo){let scriptFilePath=join(directoryPath,`linkedin-script.md`);writeFileSync(scriptFilePath,``,`utf-8`),M.success(`Created linkedin-script.md at: ${scriptFilePath}`)}return directoryPath}function getRecentDateFolders(basePath=process$1.cwd()){let folders=[];try{let years=readdirSync(basePath).filter(item=>statSync(join(basePath,item)).isDirectory()&&/^\d{4}$/.test(item));for(let year of years){let yearPath=join(basePath,year),months=readdirSync(yearPath).filter(item=>statSync(join(yearPath,item)).isDirectory()&&/^\d{2}$/.test(item));for(let month of months){let monthPath=join(yearPath,month),days=readdirSync(monthPath).filter(item=>statSync(join(monthPath,item)).isDirectory()&&/^\d{2}$/.test(item));for(let day of days){let dayPath=join(monthPath,day);if(existsSync(join(dayPath,`linkedin.md`))){let dateStr=`${year}-${month}-${day}`;folders.push({path:dayPath,date:new Date(dateStr),displayPath:`${year}/${month}/${day}`})}}}}}catch(error){return M.error(`Error reading directories: ${error}`),[]}return folders.sort((a,b$2)=>b$2.date.getTime()-a.date.getTime()).slice(0,8)}function findImagesInDirectory(directoryPath){let imageExtensions=[`.jpg`,`.jpeg`,`.png`],images=[];try{let items=readdirSync(directoryPath);for(let item of items)if(statSync(join(directoryPath,item)).isFile()){let ext=item.toLowerCase().substring(item.lastIndexOf(`.`));imageExtensions.includes(ext)&&images.push(item)}}catch(error){M.error(`Error reading directory: ${error}`)}return images.sort()}function updateLinkedInFrontmatter(linkedinPath,images){try{let{data,content}=(0,import_gray_matter.default)(readFileSync(linkedinPath,`utf-8`));data.images=images.length>0?images:[null],writeFileSync(linkedinPath,import_gray_matter.default.stringify(content,data),`utf-8`),M.success(`Updated ${linkedinPath} with ${images.length} image(s)`)}catch(error){M.error(`Error updating frontmatter: ${error}`)}}async function promptForFolder(recentFolders){if(recentFolders.length===0)return M.warn(`No dated folders with linkedin.md found`),null;let folderChoice=await ve({message:`Select a folder to link images:`,options:recentFolders.map(folder=>({label:folder.displayPath,value:folder.path,hint:`Link images in ${folder.displayPath}`}))});return pD(folderChoice)&&(M.error(`Operation cancelled.`),process$1.exit(0)),recentFolders.find(f=>f.path===folderChoice)||null}async function linkImages(basePath=process$1.cwd()){let recentFolders=getRecentDateFolders(basePath);if(recentFolders.length===0){M.warn(`No dated folders with linkedin.md found`);return}let selectedFolder=await promptForFolder(recentFolders);if(!selectedFolder)return;let images=findImagesInDirectory(selectedFolder.path);if(images.length===0){M.info(`No images found in ${selectedFolder.displayPath}`),updateLinkedInFrontmatter(join(selectedFolder.path,`linkedin.md`),[]);return}M.info(`Found ${images.length} image(s): ${images.join(`, `)}`),updateLinkedInFrontmatter(join(selectedFolder.path,`linkedin.md`),images)}async function promptForDate(){let today=new Date,dateOptions=[];for(let i=0;i<7;i++){let formattedDate=format(addDays(today,i),`yyyy-MM-dd`),label=formattedDate,hint=`Create content for ${formattedDate}`;i===0?(label=`Today (${formattedDate})`,hint=`Create content for today`):i===1?(label=`Tomorrow (${formattedDate})`,hint=`Create content for tomorrow`):(label=`In ${i} days (${formattedDate})`,hint=`Create content for ${formattedDate}`),dateOptions.push({label,value:`day-${i}`,hint})}dateOptions.push({label:`Custom date`,value:`custom`,hint:`Enter a specific date`});let dateChoice=await ve({message:`When do you want to create content?`,options:dateOptions});if(pD(dateChoice)&&(M.error(`Operation cancelled.`),process$1.exit(0)),dateChoice!==`custom`)return addDays(today,Number.parseInt(dateChoice.split(`-`)[1]));let customDate=await he({message:`Enter date (YYYY-MM-DD):`,placeholder:format(today,`yyyy-MM-dd`),validate:value=>{if(!value)return`Date is required`;if(!/^\d{4}-\d{2}-\d{2}$/.test(value))return`Invalid date format. Please use YYYY-MM-DD`;try{let parsedDate=parse(value,`yyyy-MM-dd`,new Date);if(Number.isNaN(parsedDate.getTime()))return`Invalid date`}catch{return`Invalid date`}}});return pD(customDate)&&(M.error(`Operation cancelled.`),process$1.exit(0)),parse(customDate,`yyyy-MM-dd`,new Date)}async function promptForTitle(){let title=await he({message:`What is the title of your content?`,placeholder:`Enter content title`,validate:value=>{if(!value||value.trim().length===0)return`Title is required`}});return pD(title)&&(M.error(`Operation cancelled.`),process$1.exit(0)),title.trim()}async function promptForVideo(){let hasVideo=await ve({message:`Is a LinkedIn video planned?`,options:[{label:`Yes`,value:!0,hint:`Add video: true to frontmatter`},{label:`No`,value:!1,hint:`No video metadata`}]});return pD(hasVideo)&&(M.error(`Operation cancelled.`),process$1.exit(0)),hasVideo}async function promptForImages(){let hasImages=await ve({message:`Are there images?`,options:[{label:`Yes`,value:!0,hint:`Add images section to frontmatter`},{label:`No`,value:!1,hint:`No images metadata`}]});return pD(hasImages)&&(M.error(`Operation cancelled.`),process$1.exit(0)),hasImages}const cli=cac(`content-creation`);cli.command(`[path]`,`Create a dated content directory with linkedin.md file`).option(`--path <path>`,`Base path for content directory (defaults to current directory)`).action(async(pathArg,options)=>{Ie(`Content Creation - Create dated content directory`);let title=await promptForTitle(),hasVideo=await promptForVideo(),hasImages=await promptForImages(),date=await promptForDate();createContentDirectory(date,title,hasVideo,hasImages,pathArg||options?.path||process$1.cwd()),Se(`✓ Content directory created: ${format(date,`yyyy/MM/dd`)}/linkedin.md`)}),cli.command(`link-images [path]`,`Link images to LinkedIn frontmatter in recent folders`).option(`--path <path>`,`Base path for content directory (defaults to current directory)`).action(async(pathArg,options)=>{Ie(`Content Creation - Link Images to LinkedIn`),await linkImages(pathArg||options?.path||process$1.cwd()),Se(`✓ Images linked successfully`)}),cli.help(),cli.version(version),cli.parse();export{};
7
+ `,u),`utf-8`),r.success(`Created linkedin.md at: ${c}`),i){let e=_(s,`linkedin-script.md`);g(e,``,`utf-8`),r.success(`Created linkedin-script.md at: ${e}`)}return s}function S(t=e.cwd()){let n=[];try{let e=m(t).filter(e=>h(_(t,e)).isDirectory()&&/^\d{4}$/.test(e));for(let r of e){let e=_(t,r),i=m(e).filter(t=>h(_(e,t)).isDirectory()&&/^\d{2}$/.test(t));for(let t of i){let i=_(e,t),a=m(i).filter(e=>h(_(i,e)).isDirectory()&&/^\d{2}$/.test(e));for(let e of a){let a=_(i,e);if(d(_(a,`linkedin.md`))){let i=`${r}-${t}-${e}`;n.push({path:a,date:new Date(i),displayPath:`${r}/${t}/${e}`})}}}}}catch(e){return r.error(`Error reading directories: ${e}`),[]}return n.sort((e,t)=>t.date.getTime()-e.date.getTime()).slice(0,8)}function C(e){let t=[`.jpg`,`.jpeg`,`.png`],n=[];try{let r=m(e);for(let i of r)if(h(_(e,i)).isFile()){let e=i.toLowerCase().substring(i.lastIndexOf(`.`));t.includes(e)&&n.push(i)}}catch(e){r.error(`Error reading directory: ${e}`)}return n.sort()}function w(e,t){try{let{data:n,content:i}=y(p(e,`utf-8`));n.images=t.length>0?t:[null],g(e,y.stringify(i,n),`utf-8`),r.success(`Updated ${e} with ${t.length} image(s)`)}catch(e){r.error(`Error updating frontmatter: ${e}`)}}async function T(t){if(t.length===0)return r.warn(`No dated folders with linkedin.md found`),null;let i=await a({message:`Select a folder to link images:`,options:t.map(e=>({label:e.displayPath,value:e.path,hint:`Link images in ${e.displayPath}`}))});return n(i)&&(r.error(`Operation cancelled.`),e.exit(0)),t.find(e=>e.path===i)||null}async function E(t=e.cwd()){let n=S(t);if(n.length===0){r.warn(`No dated folders with linkedin.md found`);return}let i=await T(n);if(!i)return;let a=C(i.path);if(a.length===0){r.info(`No images found in ${i.displayPath}`),w(_(i.path,`linkedin.md`),[]);return}r.info(`Found ${a.length} image(s): ${a.join(`, `)}`),w(_(i.path,`linkedin.md`),a)}async function D(){let t=new Date,i=[];for(let e=0;e<7;e++){let n=l(c(t,e),`yyyy-MM-dd`),r=n,a=`Create content for ${n}`;e===0?(r=`Today (${n})`,a=`Create content for today`):e===1?(r=`Tomorrow (${n})`,a=`Create content for tomorrow`):(r=`In ${e} days (${n})`,a=`Create content for ${n}`),i.push({label:r,value:`day-${e}`,hint:a})}i.push({label:`Custom date`,value:`custom`,hint:`Enter a specific date`});let s=await a({message:`When do you want to create content?`,options:i});if(n(s)&&(r.error(`Operation cancelled.`),e.exit(0)),s!==`custom`)return c(t,Number.parseInt(s.split(`-`)[1]));let d=await o({message:`Enter date (YYYY-MM-DD):`,placeholder:l(t,`yyyy-MM-dd`),validate:e=>{if(!e)return`Date is required`;if(!/^\d{4}-\d{2}-\d{2}$/.test(e))return`Invalid date format. Please use YYYY-MM-DD`;try{let t=u(e,`yyyy-MM-dd`,new Date);if(Number.isNaN(t.getTime()))return`Invalid date`}catch{return`Invalid date`}}});return n(d)&&(r.error(`Operation cancelled.`),e.exit(0)),u(d,`yyyy-MM-dd`,new Date)}async function O(){let t=await o({message:`What is the title of your content?`,placeholder:`Enter content title`,validate:e=>{if(!e||e.trim().length===0)return`Title is required`}});return n(t)&&(r.error(`Operation cancelled.`),e.exit(0)),t.trim()}async function k(){let t=await a({message:`Is a LinkedIn video planned?`,options:[{label:`Yes`,value:!0,hint:`Add video: true to frontmatter`},{label:`No`,value:!1,hint:`No video metadata`}]});return n(t)&&(r.error(`Operation cancelled.`),e.exit(0)),t}async function A(){let t=await a({message:`Are there images?`,options:[{label:`Yes`,value:!0,hint:`Add images section to frontmatter`},{label:`No`,value:!1,hint:`No images metadata`}]});return n(t)&&(r.error(`Operation cancelled.`),e.exit(0)),t}const j=s(`content-creation`);j.command(`[path]`,`Create a dated content directory with linkedin.md file`).option(`--path <path>`,`Base path for content directory (defaults to current directory)`).action(async(n,r)=>{t(`Content Creation - Create dated content directory`);let a=await O(),o=await k(),s=await A(),c=await D();x(c,a,o,s,n||r?.path||e.cwd()),i(`✓ Content directory created: ${l(c,`yyyy/MM/dd`)}/linkedin.md`)}),j.command(`link-images [path]`,`Link images to LinkedIn frontmatter in recent folders`).option(`--path <path>`,`Base path for content directory (defaults to current directory)`).action(async(n,r)=>{t(`Content Creation - Link Images to LinkedIn`),await E(n||r?.path||e.cwd()),i(`✓ Images linked successfully`)}),j.help(),j.version(b),j.parse();export{};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@barbapapazes/content-creation",
3
3
  "type": "module",
4
- "version": "0.7.0",
4
+ "version": "0.8.1",
5
5
  "author": "Estéban Soubiran <esteban@soubiran.dev>",
6
6
  "license": "MIT",
7
7
  "funding": "https://github.com/sponsors/Barbapapazes",