=o&&t=40&&e<=43||45==e||46==e||63==e||e>=91&&e<=94||e>=123&&e<=125?"\\"+q(e):e>=32&&e<=126?q(e):e<=255?"\\x"+C(x(e),2):"\\u"+C(x(e),4)},U=function(e){return e<=65535?F(e):"\\u{"+e.toString(16).toUpperCase()+"}"},G=function(e){var t,n=e.length,r=e.charCodeAt(0);return r>=l&&r<=c&&n>1?(t=e.charCodeAt(1),1024*(r-l)+t-p+65536):r},Y=function(e){var t,n,r="",o=0,i=e.length;if(O(e))return F(e[0]);for(;o=l&&n<=c&&(i.push(t,l),r.push(l,n+1)),n>=p&&n<=d&&(i.push(t,l),r.push(l,c+1),o.push(p,n+1)),n>d&&(i.push(t,l),r.push(l,c+1),o.push(p,d+1),n<=65535?i.push(d+1,n+1):(i.push(d+1,65536),a.push(65536,n+1)))):t>=l&&t<=c?(n>=l&&n<=c&&r.push(t,n+1),n>=p&&n<=d&&(r.push(t,c+1),o.push(p,n+1)),n>d&&(r.push(t,c+1),o.push(p,d+1),n<=65535?i.push(d+1,n+1):(i.push(d+1,65536),a.push(65536,n+1)))):t>=p&&t<=d?(n>=p&&n<=d&&o.push(t,n+1),n>d&&(o.push(t,d+1),n<=65535?i.push(d+1,n+1):(i.push(d+1,65536),a.push(65536,n+1)))):t>d&&t<=65535?n<=65535?i.push(t,n+1):(i.push(t,65536),a.push(65536,n+1)):a.push(t,n+1),s+=2;return{loneHighSurrogates:r,loneLowSurrogates:o,bmp:i,astral:a}},Z=function(e){for(var t,n,r,o,i,a,s=[],u=[],l=!1,c=-1,p=e.length;++c1&&(e=w.call(arguments)),this instanceof X?(this.data=[],e?this.add(e):this):(new X).add(e)};X.version="1.3.1";var $=X.prototype;g($,{add:function(e){var t=this;return null==e?t:e instanceof X?(t.data=M(t.data,e.data),t):(arguments.length>1&&(e=w.call(arguments)),b(e)?(A(e,function(e){t.add(e)}),t):(t.data=E(t.data,v(e)?e:G(e)),t))},remove:function(e){var t=this;return null==e?t:e instanceof X?(t.data=S(t.data,e.data),t):(arguments.length>1&&(e=w.call(arguments)),b(e)?(A(e,function(e){t.remove(e)}),t):(t.data=I(t.data,v(e)?e:G(e)),t))},addRange:function(e,t){var n=this;return n.data=j(n.data,v(e)?e:G(e),v(t)?t:G(t)),n},removeRange:function(e,t){var n=this,r=v(e)?e:G(e),o=v(t)?t:G(t);return n.data=k(n.data,r,o),n},intersection:function(e){var t=this,n=e instanceof X?L(e.data):e;return t.data=T(t.data,n),t},contains:function(e){return B(this.data,v(e)?e:G(e))},clone:function(){var e=new X;return e.data=this.data.slice(0),e},toString:function(e){var t=K(this.data,!!e&&e.bmpOnly,!!e&&e.hasUnicodeFlag);return t?t.replace(f,"\\0$1"):"[]"},toRegExp:function(e){var t=this.toString(e&&e.indexOf("u")!=-1?{hasUnicodeFlag:!0}:null);return RegExp(t,e||"")},valueOf:function(){return L(this.data)}}),$.toArray=$.valueOf,r=function(){return X}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}(a)}),K=J&&"object"==typeof J&&"default"in J?J.default:J,X=__commonjs(function(e,t){var n=K;t.REGULAR={d:n().addRange(48,57),D:n().addRange(0,47).addRange(58,65535),s:n(32,160,5760,8239,8287,12288,65279).addRange(9,13).addRange(8192,8202).addRange(8232,8233),S:n().addRange(0,8).addRange(14,31).addRange(33,159).addRange(161,5759).addRange(5761,8191).addRange(8203,8231).addRange(8234,8238).addRange(8240,8286).addRange(8288,12287).addRange(12289,65278).addRange(65280,65535),w:n(95).addRange(48,57).addRange(65,90).addRange(97,122),W:n(96).addRange(0,47).addRange(58,64).addRange(91,94).addRange(123,65535)},t.UNICODE={d:n().addRange(48,57),D:n().addRange(0,47).addRange(58,1114111),s:n(32,160,5760,8239,8287,12288,65279).addRange(9,13).addRange(8192,8202).addRange(8232,8233),S:n().addRange(0,8).addRange(14,31).addRange(33,159).addRange(161,5759).addRange(5761,8191).addRange(8203,8231).addRange(8234,8238).addRange(8240,8286).addRange(8288,12287).addRange(12289,65278).addRange(65280,1114111),w:n(95).addRange(48,57).addRange(65,90).addRange(97,122),W:n(96).addRange(0,47).addRange(58,64).addRange(91,94).addRange(123,1114111)},t.UNICODE_IGNORE_CASE={d:n().addRange(48,57),D:n().addRange(0,47).addRange(58,1114111),s:n(32,160,5760,8239,8287,12288,65279).addRange(9,13).addRange(8192,8202).addRange(8232,8233),S:n().addRange(0,8).addRange(14,31).addRange(33,159).addRange(161,5759).addRange(5761,8191).addRange(8203,8231).addRange(8234,8238).addRange(8240,8286).addRange(8288,12287).addRange(12289,65278).addRange(65280,1114111),w:n(95,383,8490).addRange(48,57).addRange(65,90).addRange(97,122),W:n(75,83,96).addRange(0,47).addRange(58,64).addRange(91,94).addRange(123,1114111)}}),$=X&&"object"==typeof X&&"default"in X?X.default:X,ee={75:8490,83:383,107:8490,115:383,181:924,197:8491,383:83,452:453,453:452,455:456,456:455,458:459,459:458,497:498,498:497,837:8126,914:976,917:1013,920:1012,921:8126,922:1008,924:181,928:982,929:1009,931:962,934:981,937:8486,962:931,976:914,977:1012,981:934,982:928,1008:922,1009:929,1012:[920,977],1013:917,7776:7835,7835:7776,8126:[837,921],8486:937,8490:75,8491:197,66560:66600,66561:66601,66562:66602,66563:66603,66564:66604,66565:66605,66566:66606,66567:66607,66568:66608,66569:66609,66570:66610,66571:66611,66572:66612,66573:66613,66574:66614,66575:66615,66576:66616,66577:66617,66578:66618,66579:66619,66580:66620,66581:66621,66582:66622,66583:66623,66584:66624,66585:66625,66586:66626,66587:66627,66588:66628,66589:66629,66590:66630,66591:66631,66592:66632,66593:66633,66594:66634,66595:66635,66596:66636,66597:66637,66598:66638,66599:66639,66600:66560,66601:66561,66602:66562,66603:66563,66604:66564,66605:66565,66606:66566,66607:66567,66608:66568,66609:66569,66610:66570,66611:66571,66612:66572,66613:66573,66614:66574,66615:66575,66616:66576,66617:66577,66618:66578,66619:66579,66620:66580,66621:66581,66622:66582,66623:66583,66624:66584,66625:66585,66626:66586,66627:66587,66628:66588,66629:66589,66630:66590,66631:66591,66632:66592,66633:66593,66634:66594,66635:66595,66636:66596,66637:66597,66638:66598,66639:66599,68736:68800,68737:68801,68738:68802,68739:68803,68740:68804,68741:68805,68742:68806,68743:68807,68744:68808,68745:68809,68746:68810,68747:68811,68748:68812,68749:68813,68750:68814,68751:68815,68752:68816,68753:68817,68754:68818,68755:68819,68756:68820,68757:68821,68758:68822,68759:68823,68760:68824,68761:68825,68762:68826,68763:68827,68764:68828,68765:68829,68766:68830,68767:68831,68768:68832,68769:68833,68770:68834,68771:68835,68772:68836,68773:68837,68774:68838,68775:68839,68776:68840,68777:68841,68778:68842,68779:68843,68780:68844,68781:68845,68782:68846,68783:68847,68784:68848,68785:68849,68786:68850,68800:68736,68801:68737,68802:68738,68803:68739,68804:68740,68805:68741,68806:68742,68807:68743,68808:68744,68809:68745,68810:68746,68811:68747,68812:68748,68813:68749,68814:68750,68815:68751,68816:68752,68817:68753,68818:68754,68819:68755,68820:68756,68821:68757,68822:68758,68823:68759,68824:68760,68825:68761,68826:68762,68827:68763,68828:68764,68829:68765,68830:68766,68831:68767,68832:68768,68833:68769,68834:68770,68835:68771,68836:68772,68837:68773,68838:68774,68839:68775,68840:68776,68841:68777,68842:68778,68843:68779,68844:68780,68845:68781,68846:68782,68847:68783,68848:68784,68849:68785,68850:68786,71840:71872,71841:71873,71842:71874,71843:71875,71844:71876,71845:71877,71846:71878,71847:71879,71848:71880,71849:71881,71850:71882,71851:71883,71852:71884,71853:71885,71854:71886,71855:71887,71856:71888,71857:71889,71858:71890,71859:71891,71860:71892,71861:71893,71862:71894,71863:71895,71864:71896,71865:71897,71866:71898,71867:71899,71868:71900,71869:71901,71870:71902,71871:71903,71872:71840,71873:71841,71874:71842,71875:71843,71876:71844,71877:71845,71878:71846,71879:71847,71880:71848,71881:71849,71882:71850,71883:71851,71884:71852,71885:71853,71886:71854,71887:71855,71888:71856,71889:71857,71890:71858,71891:71859,71892:71860,71893:71861,71894:71862,71895:71863,71896:71864,71897:71865,71898:71866,71899:71867,71900:71868,71901:71869,71902:71870,71903:71871},te=__commonjs(function(e){!function(){function parse(e,t){function addRaw(t){return t.raw=e.substring(t.range[0],t.range[1]),t}function updateRawStart(e,t){return e.range[0]=t,addRaw(e)}function createAnchor(e,t){return addRaw({type:"anchor",kind:e,range:[a-t,a]})}function createValue(e,t,n,r){return addRaw({type:"value",kind:e,codePoint:t,range:[n,r]})}function createEscaped(e,t,n,r){return r=r||0,createValue(e,t,a-(n.length+r),a)}function createCharacter(e){var t=e[0],n=t.charCodeAt(0);if(i){var r;if(1===t.length&&n>=55296&&n<=56319&&(r=lookahead().charCodeAt(0),r>=56320&&r<=57343))return a++,createValue("symbol",1024*(n-55296)+r-56320+65536,a-2,a)}return createValue("symbol",n,a-1,a)}function createDisjunction(e,t,n){return addRaw({type:"disjunction",body:e,range:[t,n]})}function createDot(){return addRaw({type:"dot",range:[a-1,a]})}function createCharacterClassEscape(e){return addRaw({type:"characterClassEscape",value:e,range:[a-2,a]})}function createReference(e){return addRaw({type:"reference",matchIndex:parseInt(e,10),range:[a-1-e.length,a]})}function createGroup(e,t,n,r){return addRaw({type:"group",behavior:e,body:t,range:[n,r]})}function createQuantifier(e,t,n,r){return null==r&&(n=a-1,r=a),addRaw({type:"quantifier",min:e,max:t,greedy:!0,body:null,range:[n,r]})}function createAlternative(e,t,n){return addRaw({type:"alternative",body:e,range:[t,n]})}function createCharacterClass(e,t,n,r){return addRaw({type:"characterClass",body:e,negative:t,range:[n,r]})}function createClassRange(e,t,n,r){return e.codePoint>t.codePoint&&bail("invalid range in character class",e.raw+"-"+t.raw,n,r),addRaw({type:"characterClassRange",min:e,max:t,range:[n,r]})}function flattenBody(e){return"alternative"===e.type?e.body:[e]}function incr(t){t=t||1;var n=e.substring(a,a+t);return a+=t||1,n}function skip(e){match(e)||bail("character",e);
+}function match(t){if(e.indexOf(t,a)===a)return incr(t.length)}function lookahead(){return e[a]}function current(t){return e.indexOf(t,a)===a}function next(t){return e[a+1]===t}function matchReg(t){var n=e.substring(a),r=n.match(t);return r&&(r.range=[],r.range[0]=a,incr(r[0].length),r.range[1]=a),r}function parseDisjunction(){var e=[],t=a;for(e.push(parseAlternative());match("|");)e.push(parseAlternative());return 1===e.length?e[0]:createDisjunction(e,t,a)}function parseAlternative(){for(var e,t=[],n=a;e=parseTerm();)t.push(e);return 1===t.length?t[0]:createAlternative(t,n,a)}function parseTerm(){if(a>=e.length||current("|")||current(")"))return null;var t=parseAnchor();if(t)return t;var n=parseAtom();n||bail("Expected atom");var r=parseQuantifier()||!1;return r?(r.body=flattenBody(n),updateRawStart(r,n.range[0]),r):n}function parseGroup(e,t,n,i){var s=null,u=a;if(match(e))s=t;else{if(!match(n))return!1;s=i}var l=parseDisjunction();l||bail("Expected disjunction"),skip(")");var c=createGroup(s,flattenBody(l),u,a);return"normal"==s&&o&&r++,c}function parseAnchor(){return match("^")?createAnchor("start",1):match("$")?createAnchor("end",1):match("\\b")?createAnchor("boundary",2):match("\\B")?createAnchor("not-boundary",2):parseGroup("(?=","lookahead","(?!","negativeLookahead")}function parseQuantifier(){var e,t,n,r,o=a;return match("*")?t=createQuantifier(0):match("+")?t=createQuantifier(1):match("?")?t=createQuantifier(0,1):(e=matchReg(/^\{([0-9]+)\}/))?(n=parseInt(e[1],10),t=createQuantifier(n,n,e.range[0],e.range[1])):(e=matchReg(/^\{([0-9]+),\}/))?(n=parseInt(e[1],10),t=createQuantifier(n,void 0,e.range[0],e.range[1])):(e=matchReg(/^\{([0-9]+),([0-9]+)\}/))&&(n=parseInt(e[1],10),r=parseInt(e[2],10),n>r&&bail("numbers out of order in {} quantifier","",o,a),t=createQuantifier(n,r,e.range[0],e.range[1])),t&&match("?")&&(t.greedy=!1,t.range[1]+=1),t}function parseAtom(){var e;return(e=matchReg(/^[^^$\\.*+?(){[|]/))?createCharacter(e):match(".")?createDot():match("\\")?(e=parseAtomEscape(),e||bail("atomEscape"),e):(e=parseCharacterClass())?e:parseGroup("(?:","ignore","(","normal")}function parseUnicodeSurrogatePairEscape(e){if(i){var t,n;if("unicodeEscape"==e.kind&&(t=e.codePoint)>=55296&&t<=56319&¤t("\\")&&next("u")){var r=a;a++;var o=parseClassEscape();"unicodeEscape"==o.kind&&(n=o.codePoint)>=56320&&n<=57343?(e.range[1]=o.range[1],e.codePoint=1024*(t-55296)+n-56320+65536,e.type="value",e.kind="unicodeCodePointEscape",addRaw(e)):a=r}}return e}function parseClassEscape(){return parseAtomEscape(!0)}function parseAtomEscape(e){var t,n=a;if(t=parseDecimalEscape())return t;if(e){if(match("b"))return createEscaped("singleEscape",8,"\\b");match("B")&&bail("\\B not possible inside of CharacterClass","",n)}return t=parseCharacterEscape()}function parseDecimalEscape(){var e,t;if(e=matchReg(/^(?!0)\d+/)){t=e[0];var o=parseInt(e[0],10);return o<=r?createReference(e[0]):(n.push(o),incr(-e[0].length),(e=matchReg(/^[0-7]{1,3}/))?createEscaped("octal",parseInt(e[0],8),e[0],1):(e=createCharacter(matchReg(/^[89]/)),updateRawStart(e,e.range[0]-1)))}return(e=matchReg(/^[0-7]{1,3}/))?(t=e[0],/^0{1,3}$/.test(t)?createEscaped("null",0,"0",t.length+1):createEscaped("octal",parseInt(t,8),t,1)):!!(e=matchReg(/^[dDsSwW]/))&&createCharacterClassEscape(e[0])}function parseCharacterEscape(){var e;if(e=matchReg(/^[fnrtv]/)){var t=0;switch(e[0]){case"t":t=9;break;case"n":t=10;break;case"v":t=11;break;case"f":t=12;break;case"r":t=13}return createEscaped("singleEscape",t,"\\"+e[0])}return(e=matchReg(/^c([a-zA-Z])/))?createEscaped("controlLetter",e[1].charCodeAt(0)%32,e[1],2):(e=matchReg(/^x([0-9a-fA-F]{2})/))?createEscaped("hexadecimalEscape",parseInt(e[1],16),e[1],2):(e=matchReg(/^u([0-9a-fA-F]{4})/))?parseUnicodeSurrogatePairEscape(createEscaped("unicodeEscape",parseInt(e[1],16),e[1],2)):i&&(e=matchReg(/^u\{([0-9a-fA-F]+)\}/))?createEscaped("unicodeCodePointEscape",parseInt(e[1],16),e[1],4):parseIdentityEscape()}function isIdentifierPart(e){var t=new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮ̀-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҃-҇Ҋ-ԯԱ-Ֆՙա-և֑-ׇֽֿׁׂׅׄא-תװ-ײؐ-ؚؠ-٩ٮ-ۓە-ۜ۟-۪ۨ-ۼۿܐ-݊ݍ-ޱ߀-ߵߺࠀ-࠭ࡀ-࡛ࢠ-ࢲࣤ-ॣ०-९ॱ-ঃঅ-ঌএঐও-নপ-রলশ-হ়-ৄেৈো-ৎৗড়ঢ়য়-ৣ০-ৱਁ-ਃਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹ਼ਾ-ੂੇੈੋ-੍ੑਖ਼-ੜਫ਼੦-ੵઁ-ઃઅ-ઍએ-ઑઓ-નપ-રલળવ-હ઼-ૅે-ૉો-્ૐૠ-ૣ૦-૯ଁ-ଃଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହ଼-ୄେୈୋ-୍ୖୗଡ଼ଢ଼ୟ-ୣ୦-୯ୱஂஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹா-ூெ-ைொ-்ௐௗ௦-௯ఀ-ఃఅ-ఌఎ-ఐఒ-నప-హఽ-ౄె-ైొ-్ౕౖౘౙౠ-ౣ౦-౯ಁ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹ಼-ೄೆ-ೈೊ-್ೕೖೞೠ-ೣ೦-೯ೱೲഁ-ഃഅ-ഌഎ-ഐഒ-ഺഽ-ൄെ-ൈൊ-ൎൗൠ-ൣ൦-൯ൺ-ൿංඃඅ-ඖක-නඳ-රලව-ෆ්ා-ුූෘ-ෟ෦-෯ෲෳก-ฺเ-๎๐-๙ກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ູົ-ຽເ-ໄໆ່-ໍ໐-໙ໜ-ໟༀ༘༙༠-༩༹༵༷༾-ཇཉ-ཬཱ-྄྆-ྗྙ-ྼ࿆က-၉ၐ-ႝႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፝-፟ᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-᜔ᜠ-᜴ᝀ-ᝓᝠ-ᝬᝮ-ᝰᝲᝳក-៓ៗៜ៝០-៩᠋-᠍᠐-᠙ᠠ-ᡷᢀ-ᢪᢰ-ᣵᤀ-ᤞᤠ-ᤫᤰ-᤻᥆-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉ᧐-᧙ᨀ-ᨛᨠ-ᩞ᩠-᩿᩼-᪉᪐-᪙ᪧ᪰-᪽ᬀ-ᭋ᭐-᭙᭫-᭳ᮀ-᯳ᰀ-᰷᱀-᱉ᱍ-ᱽ᳐-᳔᳒-ᳶ᳸᳹ᴀ-᷵᷼-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‿⁀⁔ⁱⁿₐ-ₜ⃐-⃥⃜⃡-⃰ℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵿-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⷠ-ⷿⸯ々-〇〡-〯〱-〵〸-〼ぁ-ゖ゙゚ゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘫꙀ-꙯ꙴ-꙽ꙿ-ꚝꚟ-꛱ꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞭꞰꞱꟷ-ꠧꡀ-ꡳꢀ-꣄꣐-꣙꣠-ꣷꣻ꤀-꤭ꤰ-꥓ꥠ-ꥼꦀ-꧀ꧏ-꧙ꧠ-ꧾꨀ-ꨶꩀ-ꩍ꩐-꩙ꩠ-ꩶꩺ-ꫂꫛ-ꫝꫠ-ꫯꫲ-꫶ꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭟꭤꭥꯀ-ꯪ꯬꯭꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻ︀-️︠-︭︳︴﹍-﹏ﹰ-ﹴﹶ-ﻼ0-9A-Z_a-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]");return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||92===e||e>=128&&t.test(String.fromCharCode(e))}function parseIdentityEscape(){var e,t="",n="";return isIdentifierPart(lookahead())?match(t)?createEscaped("identifier",8204,t):match(n)?createEscaped("identifier",8205,n):null:(e=incr(),createEscaped("identifier",e.charCodeAt(0),e,1))}function parseCharacterClass(){var e,t=a;return(e=matchReg(/^\[\^/))?(e=parseClassRanges(),skip("]"),createCharacterClass(e,!0,t,a)):match("[")?(e=parseClassRanges(),skip("]"),createCharacterClass(e,!1,t,a)):null}function parseClassRanges(){var e;return current("]")?[]:(e=parseNonemptyClassRanges(),e||bail("nonEmptyClassRanges"),e)}function parseHelperClassRanges(e){var t,n,r;if(current("-")&&!next("]")){skip("-"),r=parseClassAtom(),r||bail("classAtom"),n=a;var o=parseClassRanges();return o||bail("classRanges"),t=e.range[0],"empty"===o.type?[createClassRange(e,r,t,n)]:[createClassRange(e,r,t,n)].concat(o)}return r=parseNonemptyClassRangesNoDash(),r||bail("nonEmptyClassRangesNoDash"),[e].concat(r)}function parseNonemptyClassRanges(){var e=parseClassAtom();return e||bail("classAtom"),current("]")?[e]:parseHelperClassRanges(e)}function parseNonemptyClassRangesNoDash(){var e=parseClassAtom();return e||bail("classAtom"),current("]")?e:parseHelperClassRanges(e)}function parseClassAtom(){return match("-")?createCharacter("-"):parseClassAtomNoDash()}function parseClassAtomNoDash(){var e;return(e=matchReg(/^[^\\\]-]/))?createCharacter(e[0]):match("\\")?(e=parseClassEscape(),e||bail("classEscape"),parseUnicodeSurrogatePairEscape(e)):void 0}function bail(t,n,r,o){r=null==r?a:r,o=null==o?r:o;var i=Math.max(0,r-10),s=Math.min(o+10,e.length),u=" "+e.substring(i,s),l=" "+new Array(r-i+1).join(" ")+"^";throw SyntaxError(t+" at position "+r+(n?": "+n:"")+"\n"+u+"\n"+l)}var n=[],r=0,o=!0,i=(t||"").indexOf("u")!==-1,a=0;e=String(e),""===e&&(e="(?:)");var s=parseDisjunction();s.range[1]!==e.length&&bail("Could not parse entire input - got stuck","",s.range[1]);for(var u=0;u1114111||p(s)!=s)throw RangeError("Invalid code point: "+s);s<=65535?r.push(s):(s-=65536,e=(s>>10)+55296,t=s%1024+56320,r.push(e,t)),(o+1==i||r.length>n)&&(a+=c.apply(null,r),r.length=0)}return a}function assertType(e,t){if(t.indexOf("|")==-1){if(e==t)return;throw Error("Invalid node type: "+e)}if(t=assertType.hasOwnProperty(t)?assertType[t]:assertType[t]=RegExp("^(?:"+t+")$"),!t.test(e))throw Error("Invalid node type: "+e)}function generate(e){var t=e.type;if(generate.hasOwnProperty(t)&&"function"==typeof generate[t])return generate[t](e);throw Error("Invalid node type: "+t)}function generateAlternative(e){assertType(e.type,"alternative");var t=e.body,n=t?t.length:0;if(1==n)return generateTerm(t[0]);for(var r=-1,o="";++r-1,f=!!r&&r.indexOf("u")>-1,assign(o,processTerm(o)),t(o)}}),ae=ie&&"object"==typeof ie&&"default"in ie?ie.default:ie,se=function(e){function Literal(){e.apply(this,arguments)}return e&&(Literal.__proto__=e),Literal.prototype=Object.create(e&&e.prototype),Literal.prototype.constructor=Literal,Literal.prototype.initialise=function initialise(){"string"==typeof this.value&&this.program.indentExclusionElements.push(this)},Literal.prototype.transpile=function transpile(e,t){if(t.numericLiteral){var n=this.raw.slice(0,2);"0b"!==n&&"0o"!==n||e.overwrite(this.start,this.end,String(this.value),!0)}if(this.regex){var r=this.regex,o=r.pattern,i=r.flags;if(t.stickyRegExp&&/y/.test(i))throw new A(this,"Regular expression sticky flag is not supported");t.unicodeRegExp&&/u/.test(i)&&e.overwrite(this.start,this.end,"/"+ae(o,i)+"/"+i.replace("u",""))}},Literal}(h),ue=function(e){function MemberExpression(){e.apply(this,arguments)}return e&&(MemberExpression.__proto__=e),MemberExpression.prototype=Object.create(e&&e.prototype),MemberExpression.prototype.constructor=MemberExpression,MemberExpression.prototype.transpile=function transpile(t,n){n.reservedProperties&&x[this.property.name]&&(t.overwrite(this.object.end,this.property.start,"['"),t.insertLeft(this.property.end,"']")),e.prototype.transpile.call(this,t,n)},MemberExpression}(h),le=function(e){function NewExpression(){e.apply(this,arguments)}return e&&(NewExpression.__proto__=e),NewExpression.prototype=Object.create(e&&e.prototype),NewExpression.prototype.constructor=NewExpression,NewExpression.prototype.initialise=function initialise(t){var n=this;if(t.spreadRest&&this.arguments.length)for(var r=this.findLexicalBoundary(),o=this.arguments.length;o--;){var i=n.arguments[o];if("SpreadElement"===i.type&&isArguments(i.argument)){n.argumentsArrayAlias=r.getArgumentsArrayAlias();break}}e.prototype.initialise.call(this,t)},NewExpression.prototype.transpile=function transpile(t,n){if(n.spreadRest&&this.arguments.length){var r=this.arguments[0],o=!0,i=spread(t,this.arguments,r.start,this.argumentsArrayAlias,o);i&&(t.insertRight(this.start+"new".length," (Function.prototype.bind.apply("),t.overwrite(this.callee.end,r.start,", [ null ].concat( "),t.insertLeft(this.end," ))"))}e.prototype.transpile.call(this,t,n)},NewExpression}(h),ce=function(e){function ObjectExpression(){e.apply(this,arguments)}return e&&(ObjectExpression.__proto__=e),ObjectExpression.prototype=Object.create(e&&e.prototype),ObjectExpression.prototype.constructor=ObjectExpression,ObjectExpression.prototype.transpile=function transpile(t,n){var r=this;e.prototype.transpile.call(this,t,n);for(var o=this.start+1,i=0,a=0,s=0,u=0,l=this.properties;u0?r.properties[I-1].end:v,M=m?";\n"+y+g:", "+g;ES&&t.remove(S,k.value.start),t.insertLeft(S," = "),t.move(E,k.end,_),Ithis.nearestFunction.depth)&&(this.loop.canReturn=!0,this.shouldWrap=!0),this.argument&&this.argument.initialise(e)},ReturnStatement.prototype.transpile=function transpile(e,t){var n=this.shouldWrap&&this.loop&&this.loop.shouldRewriteAsFunction;this.argument?(n&&e.insertRight(this.argument.start,"{ v: "),this.argument.transpile(e,t),n&&e.insertLeft(this.argument.end," }")):n&&e.insertLeft(this.start+6," {}")},ReturnStatement}(h),fe=function(e){function SpreadProperty(){e.apply(this,arguments)}return e&&(SpreadProperty.__proto__=e),SpreadProperty.prototype=Object.create(e&&e.prototype),SpreadProperty.prototype.constructor=SpreadProperty,SpreadProperty.prototype.transpile=function transpile(t,n){t.remove(this.start,this.argument.start),t.remove(this.argument.end,this.end),e.prototype.transpile.call(this,t,n)},SpreadProperty}(h),he=function(e){function Super(){e.apply(this,arguments)}return e&&(Super.__proto__=e),Super.prototype=Object.create(e&&e.prototype),Super.prototype.constructor=Super,Super.prototype.initialise=function initialise(e){if(e.classes){if(this.method=this.findNearest("MethodDefinition"),!this.method)throw new A(this,"use of super outside class method");var t=this.findNearest("ClassBody").parent;if(this.superClassName=t.superClass&&(t.superClass.name||"superclass"),!this.superClassName)throw new A(this,"super used in base class");if(this.isCalled="CallExpression"===this.parent.type&&this===this.parent.callee,"constructor"!==this.method.kind&&this.isCalled)throw new A(this,"super() not allowed outside class constructor");if(this.isMember="MemberExpression"===this.parent.type,!this.isCalled&&!this.isMember)throw new A(this,"Unexpected use of `super` (expected `super(...)` or `super.*`)")}if(e.arrow){var n=this.findLexicalBoundary(),r=this.findNearest("ArrowFunctionExpression"),o=this.findNearest(v);r&&r.depth>n.depth&&(this.thisAlias=n.getThisAlias()),o&&o.body.contains(this)&&o.depth>n.depth&&(this.thisAlias=n.getThisAlias())}},Super.prototype.transpile=function transpile(e,t){if(t.classes){var n=this.isCalled||this.method.static?this.superClassName:this.superClassName+".prototype";e.overwrite(this.start,this.end,n,!0);var r=this.isCalled?this.parent:this.parent.parent;if(r&&"CallExpression"===r.type){this.noCall||e.insertLeft(r.callee.end,".call");var o=this.thisAlias||"this";r.arguments.length?e.insertLeft(r.arguments[0].start,o+", "):e.insertLeft(r.end-1,""+o)}}},Super}(h),me=function(e){function TaggedTemplateExpression(){e.apply(this,arguments)}return e&&(TaggedTemplateExpression.__proto__=e),TaggedTemplateExpression.prototype=Object.create(e&&e.prototype),TaggedTemplateExpression.prototype.constructor=TaggedTemplateExpression,TaggedTemplateExpression.prototype.initialise=function initialise(t){if(t.templateString&&!t.dangerousTaggedTemplateString)throw new A(this,"Tagged template strings are not supported. Use `transforms: { templateString: false }` to skip transformation and disable this error, or `transforms: { dangerousTaggedTemplateString: true }` if you know what you're doing");e.prototype.initialise.call(this,t)},TaggedTemplateExpression.prototype.transpile=function transpile(t,n){if(n.templateString&&n.dangerousTaggedTemplateString){var r=this.quasi.expressions.concat(this.quasi.quasis).sort(function(e,t){return e.start-t.start}),o=this.quasi.quasis.map(function(e){return JSON.stringify(e.value.cooked)});t.overwrite(this.tag.end,r[0].start,"(["+o.join(", ")+"]");var i=r[0].start;r.forEach(function(e){"TemplateElement"===e.type?t.remove(i,e.end):t.overwrite(i,e.start,", "),i=e.end}),t.overwrite(i,this.end,")")}e.prototype.transpile.call(this,t,n)},TaggedTemplateExpression}(h),ge=function(e){function TemplateElement(){e.apply(this,arguments)}return e&&(TemplateElement.__proto__=e),TemplateElement.prototype=Object.create(e&&e.prototype),TemplateElement.prototype.constructor=TemplateElement,TemplateElement.prototype.initialise=function initialise(){this.program.indentExclusionElements.push(this)},TemplateElement}(h),Ae=function(e){function TemplateLiteral(){e.apply(this,arguments)}return e&&(TemplateLiteral.__proto__=e),TemplateLiteral.prototype=Object.create(e&&e.prototype),TemplateLiteral.prototype.constructor=TemplateLiteral,TemplateLiteral.prototype.transpile=function transpile(t,n){if(n.templateString&&"TaggedTemplateExpression"!==this.parent.type){var r=this.expressions.concat(this.quasis).sort(function(e,t){return e.start-t.start||e.end-t.end}).filter(function(e,t){return"TemplateElement"!==e.type||(!!e.value.raw||!t)});if(r.length>=3){var o=r[0],i=r[2];"TemplateElement"===o.type&&""===o.value.raw&&"TemplateElement"===i.type&&r.shift()}var a=!(1===this.quasis.length&&0===this.expressions.length||"AssignmentExpression"===this.parent.type||"AssignmentPattern"===this.parent.type||"VariableDeclarator"===this.parent.type||"BinaryExpression"===this.parent.type&&"+"===this.parent.operator);a&&t.insertRight(this.start,"(");var s=this.start;r.forEach(function(e,n){if("TemplateElement"===e.type){var r="";n&&(r+=" + "),r+=JSON.stringify(e.value.cooked),t.overwrite(s,e.end,r)}else{var o="Identifier"!==e.type,i="";n&&(i+=" + "),o&&(i+="("),t.overwrite(s,e.start,i),o&&t.insertLeft(e.end,")")}s=e.end});var u="";a&&(u+=")"),t.overwrite(s,this.end,u)}e.prototype.transpile.call(this,t,n)},TemplateLiteral}(h),ye=function(e){function ThisExpression(){e.apply(this,arguments)}return e&&(ThisExpression.__proto__=e),ThisExpression.prototype=Object.create(e&&e.prototype),ThisExpression.prototype.constructor=ThisExpression,ThisExpression.prototype.initialise=function initialise(e){if(e.arrow){var t=this.findLexicalBoundary(),n=this.findNearest("ArrowFunctionExpression"),r=this.findNearest(v);(n&&n.depth>t.depth||r&&r.body.contains(this)&&r.depth>t.depth||r&&r.right&&r.right.contains(this))&&(this.alias=t.getThisAlias())}},ThisExpression.prototype.transpile=function transpile(e){this.alias&&e.overwrite(this.start,this.end,this.alias,!0)},ThisExpression}(h),be=function(e){function UpdateExpression(){e.apply(this,arguments)}return e&&(UpdateExpression.__proto__=e),UpdateExpression.prototype=Object.create(e&&e.prototype),UpdateExpression.prototype.constructor=UpdateExpression,UpdateExpression.prototype.initialise=function initialise(t){if("Identifier"===this.argument.type){var n=this.findScope(!1).findDeclaration(this.argument.name);if(n&&"const"===n.kind)throw new A(this,this.argument.name+" is read-only");var r=n&&n.node.ancestor(3);r&&"ForStatement"===r.type&&r.body.contains(this)&&(r.reassigned[this.argument.name]=!0)}e.prototype.initialise.call(this,t)},UpdateExpression}(h),ve=function(e){function VariableDeclaration(){e.apply(this,arguments)}return e&&(VariableDeclaration.__proto__=e),VariableDeclaration.prototype=Object.create(e&&e.prototype),VariableDeclaration.prototype.constructor=VariableDeclaration,VariableDeclaration.prototype.initialise=function initialise(e){this.scope=this.findScope("var"===this.kind),this.declarations.forEach(function(t){return t.initialise(e)})},VariableDeclaration.prototype.transpile=function transpile(e,t){var n=this,r=this.getIndentation(),o=this.kind;if(t.letConst&&"var"!==o&&(o="var",e.overwrite(this.start,this.start+this.kind.length,o,!0)),t.destructuring&&"ForOfStatement"!==this.parent.type){var i,a=this.start;this.declarations.forEach(function(o,s){if("Identifier"===o.id.type)s>0&&"Identifier"!==n.declarations[s-1].id.type&&e.overwrite(a,o.id.start,"var ");else{var u=v.test(n.parent.type);0===s?e.remove(a,o.id.start):e.overwrite(a,o.id.start,";\n"+r);var l="Identifier"===o.init.type&&!o.init.rewritten,c=l?o.init.name:o.findScope(!0).createIdentifier("ref"),p=(o.start,[]);l?e.remove(o.id.end,o.end):p.push(function(t,n,r){e.insertRight(o.id.end,"var "+c),e.insertLeft(o.init.end,""+r),e.move(o.id.end,o.end,t)}),destructure(e,o.findScope(!1),o.id,c,u,p);var d=u?"var ":"",f=u?", ":";\n"+r;p.forEach(function(e,t){s===n.declarations.length-1&&t===p.length-1&&(f=u?"":";"),e(o.start,0===t?d:"",f)})}o.transpile(e,t),a=o.end,i="Identifier"!==o.id.type}),i&&e.remove(a,this.end)}else this.declarations.forEach(function(n){n.transpile(e,t)})},VariableDeclaration}(h),_e=function(e){function VariableDeclarator(){e.apply(this,arguments)}return e&&(VariableDeclarator.__proto__=e),VariableDeclarator.prototype=Object.create(e&&e.prototype),VariableDeclarator.prototype.constructor=VariableDeclarator,VariableDeclarator.prototype.initialise=function initialise(t){var n=this.parent.kind;"let"===n&&"ForStatement"===this.parent.parent.type&&(n="for.let"),this.parent.scope.addDeclaration(this.id,n),e.prototype.initialise.call(this,t)},VariableDeclarator.prototype.transpile=function transpile(e,t){if(!this.init&&t.letConst&&"var"!==this.parent.kind){var n=this.findNearest(/Function|^For(In|Of)?Statement|^(?:Do)?WhileStatement/);!n||/Function/.test(n.type)||this.isLeftDeclaratorOfLoop()||e.insertLeft(this.id.end," = (void 0)")}this.id&&this.id.transpile(e,t),this.init&&this.init.transpile(e,t)},VariableDeclarator.prototype.isLeftDeclaratorOfLoop=function isLeftDeclaratorOfLoop(){return this.parent&&"VariableDeclaration"===this.parent.type&&this.parent.parent&&("ForInStatement"===this.parent.parent.type||"ForOfStatement"===this.parent.parent.type)&&this.parent.parent.left&&this.parent.parent.left.declarations[0]===this},VariableDeclarator}(h),Ce={ArrayExpression:m,ArrowFunctionExpression:g,AssignmentExpression:y,BinaryExpression:b,BreakStatement:_,CallExpression:C,ClassBody:w,ClassDeclaration:D,ClassExpression:I,ContinueStatement:k,DoWhileStatement:S,ExportNamedDeclaration:M,ExportDefaultDeclaration:E,ForStatement:B,ForInStatement:T,ForOfStatement:O,FunctionDeclaration:L,FunctionExpression:P,Identifier:R,IfStatement:z,ImportDeclaration:q,ImportDefaultSpecifier:F,ImportSpecifier:U,JSXAttribute:Y,JSXClosingElement:W,JSXElement:H,JSXExpressionContainer:Z,JSXOpeningElement:Q,JSXSpreadAttribute:V,Literal:se,MemberExpression:ue,NewExpression:le,ObjectExpression:ce,Property:pe,ReturnStatement:de,SpreadProperty:fe,Super:he,TaggedTemplateExpression:me,TemplateElement:ge,TemplateLiteral:Ae,ThisExpression:ye,UpdateExpression:be,VariableDeclaration:ve,VariableDeclarator:_e,WhileStatement:S},xe={IfStatement:"consequent",ForStatement:"body",ForInStatement:"body",ForOfStatement:"body",WhileStatement:"body",DoWhileStatement:"body",ArrowFunctionExpression:"body"},we=/^(?:let|const)$/;Scope.prototype={addDeclaration:function addDeclaration(e,t){for(var n=0,r=extractNames(e);n 0 ) "+p+"[ "+d+" ] = arguments[ "+d+" + "+f+" ]"+s):e.insertLeft(t,r+"var "+p+" = [], "+d+" = arguments.length;\n"+n+"while ( "+d+"-- ) "+p+"[ "+d+" ] = arguments[ "+d+" ]"+s)});else if("Identifier"!==a.type&&t.parameterDestructuring){var s=o.scope.createIdentifier("ref");destructure(e,o.scope,a,s,!1,r),e.insertLeft(a.start,s)}})},BlockStatement.prototype.transpileBlockScopedIdentifiers=function transpileBlockScopedIdentifiers(e){var t=this;Object.keys(this.scope.blockScopedDeclarations).forEach(function(n){for(var r=t.scope.blockScopedDeclarations[n],o=0,i=r;o=kMaxLength())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+kMaxLength().toString(16)+" bytes");return 0|e}function SlowBuffer(e){return+e!=e&&(e=0),Buffer.alloc(+e)}function byteLength(e,t){if(Buffer.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return utf8ToBytes(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return base64ToBytes(e).length;default:if(r)return utf8ToBytes(e).length;t=(""+t).toLowerCase(),r=!0}}function slowToString(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return hexSlice(this,t,n);case"utf8":case"utf-8":return utf8Slice(this,t,n);case"ascii":return asciiSlice(this,t,n);case"latin1":case"binary":return latin1Slice(this,t,n);case"base64":return base64Slice(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function swap(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function bidirectionalIndexOf(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=Buffer.from(t,r)),Buffer.isBuffer(t))return 0===t.length?-1:arrayIndexOf(e,t,n,r,o);if("number"==typeof t)return t&=255,Buffer.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):arrayIndexOf(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function arrayIndexOf(e,t,n,r,o){function read(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}var i=1,a=e.length,s=t.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;i=2,a/=2,s/=2,n/=2}var u;if(o){var l=-1;for(u=n;ua&&(n=a-s),u=n;u>=0;u--){for(var c=!0,p=0;po&&(r=o)):r=o;var i=t.length;if(i%2!==0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a239?4:i>223?3:i>191?2:1;if(o+s<=n){var u,l,c,p;switch(s){case 1:i<128&&(a=i);break;case 2:u=e[o+1],128===(192&u)&&(p=(31&i)<<6|63&u,p>127&&(a=p));break;case 3:u=e[o+1],l=e[o+2],128===(192&u)&&128===(192&l)&&(p=(15&i)<<12|(63&u)<<6|63&l,p>2047&&(p<55296||p>57343)&&(a=p));break;case 4:u=e[o+1],l=e[o+2],c=e[o+3],128===(192&u)&&128===(192&l)&&128===(192&c)&&(p=(15&i)<<18|(63&u)<<12|(63&l)<<6|63&c,p>65535&&p<1114112&&(a=p))}}null===a?(a=65533,s=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|1023&a),r.push(a),o+=s}return decodeCodePointsArray(r)}function decodeCodePointsArray(e){var t=e.length;if(t<=a)return String.fromCharCode.apply(String,e);for(var n="",r=0;rr)&&(n=r);for(var o="",i=t;in)throw new RangeError("Trying to access beyond buffer length")}function checkInt(e,t,n,r,o,i){if(!Buffer.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function objectWriteUInt16(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o>>8*(r?o:1-o)}function objectWriteUInt32(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o>>8*(r?o:3-o)&255}function checkIEEE754(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function writeFloat(e,t,n,r,i){return i||checkIEEE754(e,t,n,4,3.4028234663852886e38,-3.4028234663852886e38),o.write(e,t,n,r,23,4),n+4}function writeDouble(e,t,n,r,i){return i||checkIEEE754(e,t,n,8,1.7976931348623157e308,-1.7976931348623157e308),o.write(e,t,n,r,52,8),n+8}function base64clean(e){if(e=stringtrim(e).replace(s,""),e.length<2)return"";for(;e.length%4!==0;)e+="=";return e}function stringtrim(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function toHex(e){return e<16?"0"+e.toString(16):e.toString(16)}function utf8ToBytes(e,t){t=t||1/0;for(var n,r=e.length,o=null,i=[],a=0;a55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=(o-55296<<10|n-56320)+65536}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function asciiToBytes(e){for(var t=[],n=0;n>8,o=n%256,i.push(o),i.push(r);return i}function base64ToBytes(e){return r.toByteArray(base64clean(e))}function blitBuffer(e,t,n,r){for(var o=0;o=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function isnan(e){return e!==e}var r=n(296),o=n(414),i=n(301);t.Buffer=Buffer,t.SlowBuffer=SlowBuffer,t.INSPECT_MAX_BYTES=50,Buffer.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:typedArraySupport(),t.kMaxLength=kMaxLength(),Buffer.poolSize=8192,Buffer._augment=function(e){return e.__proto__=Buffer.prototype,e},Buffer.from=function(e,t,n){return from(null,e,t,n)},Buffer.TYPED_ARRAY_SUPPORT&&(Buffer.prototype.__proto__=Uint8Array.prototype,Buffer.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&Buffer[Symbol.species]===Buffer&&Object.defineProperty(Buffer,Symbol.species,{value:null,configurable:!0})),Buffer.alloc=function(e,t,n){return alloc(null,e,t,n)},Buffer.allocUnsafe=function(e){return allocUnsafe(null,e)},Buffer.allocUnsafeSlow=function(e){return allocUnsafe(null,e)},Buffer.isBuffer=function isBuffer(e){return!(null==e||!e._isBuffer)},Buffer.compare=function compare(e,t){if(!Buffer.isBuffer(e)||!Buffer.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},Buffer.prototype.compare=function compare(e,t,n,r,o){if(!Buffer.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,o>>>=0,this===e)return 0;for(var i=o-r,a=n-t,s=Math.min(i,a),u=this.slice(r,o),l=e.slice(t,n),c=0;co)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return hexWrite(this,e,t,n);case"utf8":case"utf-8":return utf8Write(this,e,t,n);case"ascii":return asciiWrite(this,e,t,n);case"latin1":case"binary":return latin1Write(this,e,t,n);case"base64":return base64Write(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ucs2Write(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},Buffer.prototype.toJSON=function toJSON(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var a=4096;Buffer.prototype.slice=function slice(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t0&&(o*=256);)r+=this[e+--t]*o;return r},Buffer.prototype.readUInt8=function readUInt8(e,t){return t||checkOffset(e,1,this.length),this[e]},Buffer.prototype.readUInt16LE=function readUInt16LE(e,t){return t||checkOffset(e,2,this.length),this[e]|this[e+1]<<8},Buffer.prototype.readUInt16BE=function readUInt16BE(e,t){return t||checkOffset(e,2,this.length),this[e]<<8|this[e+1]},Buffer.prototype.readUInt32LE=function readUInt32LE(e,t){return t||checkOffset(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Buffer.prototype.readUInt32BE=function readUInt32BE(e,t){return t||checkOffset(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Buffer.prototype.readIntLE=function readIntLE(e,t,n){e|=0,t|=0,n||checkOffset(e,t,this.length);for(var r=this[e],o=1,i=0;++i