0?c:["plain"],l=d):(c=Ee(c,d.type),d.alias&&(c=Ee(c,d.alias)),l=d.content),"string"===typeof l){var f=l.split(Se),p=f.length;s.push({types:c,content:f[0]});for(var h=1;h=t&&(t=0),(!n||0>n)&&(n=t);var r=document.createRange();e=[e.firstChild];for(var a,o=0,i=t;a=e[e.length-1];){if(a.nodeType===Node.TEXT_NODE){if(o+a.textContent.length>=i){var s=i-o;if(i===t){if(i=r,s=i){if(i===t){if(s=r,0";case je.template:return"template";case je.ellipsis:return"...";case je.backQuote:return"`";case je.dollarBraceL:return"${";case je.at:return"@";case je.hash:return"#";case je.eq:return"=";case je.assign:return"_=";case je.preIncDec:case je.postIncDec:return"++/--";case je.bang:return"!";case je.tilde:return"~";case je.pipeline:return"|>";case je.nullishCoalescing:return"??";case je.logicalOR:return"||";case je.logicalAND:return"&&";case je.bitwiseOR:return"|";case je.bitwiseXOR:return"^";case je.bitwiseAND:return"&";case je.equality:return"==/!=";case je.lessThan:return"<";case je.greaterThan:return">";case je.relationalOrEqual:return"<=/>=";case je.bitShiftL:return"<<";case je.bitShiftR:return">>/>>>";case je.plus:return"+";case je.minus:return"-";case je.modulo:return"%";case je.star:return"*";case je.slash:return"/";case je.exponent:return"**";case je.jsxName:return"jsxName";case je.jsxText:return"jsxText";case je.jsxEmptyText:return"jsxEmptyText";case je.jsxTagStart:return"jsxTagStart";case je.jsxTagEnd:return"jsxTagEnd";case je.typeParameterStart:return"typeParameterStart";case je.nonNullAssertion:return"nonNullAssertion";case je._break:return"break";case je._case:return"case";case je._catch:return"catch";case je._continue:return"continue";case je._debugger:return"debugger";case je._default:return"default";case je._do:return"do";case je._else:return"else";case je._finally:return"finally";case je._for:return"for";case je._function:return"function";case je._if:return"if";case je._return:return"return";case je._switch:return"switch";case je._throw:return"throw";case je._try:return"try";case je._var:return"var";case je._let:return"let";case je._const:return"const";case je._while:return"while";case je._with:return"with";case je._new:return"new";case je._this:return"this";case je._super:return"super";case je._class:return"class";case je._extends:return"extends";case je._export:return"export";case je._import:return"import";case je._yield:return"yield";case je._null:return"null";case je._true:return"true";case je._false:return"false";case je._in:return"in";case je._instanceof:return"instanceof";case je._typeof:return"typeof";case je._void:return"void";case je._delete:return"delete";case je._async:return"async";case je._get:return"get";case je._set:return"set";case je._declare:return"declare";case je._readonly:return"readonly";case je._abstract:return"abstract";case je._static:return"static";case je._public:return"public";case je._private:return"private";case je._protected:return"protected";case je._override:return"override";case je._as:return"as";case je._enum:return"enum";case je._type:return"type";case je._implements:return"implements";default:return""}}(e),'"'))}function lt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Unexpected token",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Be.start;if(!Be.error){var n=new SyntaxError(e);n.pos=t,Be.error=n,Be.pos=Ze.length,$t(je.eof)}}for(var ct=[9,11,12,Ye.space,Ye.nonBreakingSpace,Ye.oghamSpaceMark,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],dt=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,ft=new Uint8Array(65536),pt=0,ht=ct;pt=Ze.length)return void lt("Unterminated template");var e=Ze.charCodeAt(Be.pos);if(e===Ye.graveAccent||e===Ye.dollarSign&&Ze.charCodeAt(Be.pos+1)===Ye.leftCurlyBrace)return Be.pos===Be.start&&Ht(je.template)?e===Ye.dollarSign?(Be.pos+=2,void $t(je.dollarBraceL)):(++Be.pos,void $t(je.backQuote)):void $t(je.template);e===Ye.backslash&&Be.pos++,Be.pos++}}()}function Lt(){Be.type===je.assign&&--Be.pos,function(){for(var e=Be.pos,t=!1,n=!1;;){if(Be.pos>=Ze.length)return void lt("Unterminated regular expression",e);var r=Ze.charCodeAt(Be.pos);if(t)t=!1;else{if(r===Ye.leftSquareBracket)n=!0;else if(r===Ye.rightSquareBracket&&n)n=!1;else if(r===Ye.slash&&!n)break;t=r===Ye.backslash}++Be.pos}++Be.pos,function(){for(;Be.pos=Ze.length){var e=Be.tokens;return e.length>=2&&e[e.length-1].start>=Ze.length&&e[e.length-2].start>=Ze.length&<("Unexpectedly reached the end of input."),void $t(je.eof)}var t;t=Ze.charCodeAt(Be.pos),xt[t]||t===Ye.backslash||t===Ye.atSign&&Ze.charCodeAt(Be.pos+1)===Ye.atSign?function(){for(var e=0,t=0,n=Be.pos;nYe.lowercaseZ);){var r=Et[e+(t-Ye.lowercaseA)+1];if(-1===r)break;e=r,n++}var a=Et[e];if(a>-1&&!vt[t])return Be.pos=n,void(1&a?$t(a>>>1):$t(je.name,a>>>1));for(;nZe.length)return void lt("Unterminated comment",Be.pos-2);Be.pos+=2}function Gt(e){var t=Ze.charCodeAt(Be.pos+=e);if(Be.pos1&&void 0!==arguments[1]?arguments[1]:Le.NONE;Be.end=Be.pos,Be.type=e,Be.contextualKeyword=t}function Jt(){if(Be.isType)nn(je.greaterThan,1);else{var e=Ze.charCodeAt(Be.pos+1);if(e===Ye.greaterThan){var t=Ze.charCodeAt(Be.pos+2)===Ye.greaterThan?3:2;return Ze.charCodeAt(Be.pos+t)===Ye.equalsTo?void nn(je.assign,t+1):void nn(je.bitShiftR,t)}e===Ye.equalsTo?nn(je.relationalOrEqual,2):nn(je.greaterThan,1)}}function en(){Be.type===je.greaterThan&&(Be.pos-=1,Jt())}function tn(e){switch(e){case Ye.numberSign:return++Be.pos,void $t(je.hash);case Ye.dot:return void function(){var e=Ze.charCodeAt(Be.pos+1);e>=Ye.digit0&&e<=Ye.digit9?an(!0):e===Ye.dot&&Ze.charCodeAt(Be.pos+2)===Ye.dot?(Be.pos+=3,$t(je.ellipsis)):(++Be.pos,$t(je.dot))}();case Ye.leftParenthesis:return++Be.pos,void $t(je.parenL);case Ye.rightParenthesis:return++Be.pos,void $t(je.parenR);case Ye.semicolon:return++Be.pos,void $t(je.semi);case Ye.comma:return++Be.pos,void $t(je.comma);case Ye.leftSquareBracket:return++Be.pos,void $t(je.bracketL);case Ye.rightSquareBracket:return++Be.pos,void $t(je.bracketR);case Ye.leftCurlyBrace:return void(ze&&Ze.charCodeAt(Be.pos+1)===Ye.verticalBar?nn(je.braceBarL,2):(++Be.pos,$t(je.braceL)));case Ye.rightCurlyBrace:return++Be.pos,void $t(je.braceR);case Ye.colon:return void(Ze.charCodeAt(Be.pos+1)===Ye.colon?nn(je.doubleColon,2):(++Be.pos,$t(je.colon)));case Ye.questionMark:return void function(){var e=Ze.charCodeAt(Be.pos+1),t=Ze.charCodeAt(Be.pos+2);e!==Ye.questionMark||ze&&Be.isType?e!==Ye.dot||t>=Ye.digit0&&t<=Ye.digit9?(++Be.pos,$t(je.question)):(Be.pos+=2,$t(je.questionDot)):t===Ye.equalsTo?nn(je.assign,3):nn(je.nullishCoalescing,2)}();case Ye.atSign:return++Be.pos,void $t(je.at);case Ye.graveAccent:return++Be.pos,void $t(je.backQuote);case Ye.digit0:var t=Ze.charCodeAt(Be.pos+1);if(t===Ye.lowercaseX||t===Ye.uppercaseX||t===Ye.lowercaseO||t===Ye.uppercaseO||t===Ye.lowercaseB||t===Ye.uppercaseB)return void function(){Be.pos+=2;for(;;){var e=Ze.charCodeAt(Be.pos);if(!(e>=Ye.digit0&&e<=Ye.digit9||e>=Ye.lowercaseA&&e<=Ye.lowercaseF||e>=Ye.uppercaseA&&e<=Ye.uppercaseF||e===Ye.underscore))break;Be.pos++}var t=Ze.charCodeAt(Be.pos);t===Ye.lowercaseN?(++Be.pos,$t(je.bigint)):$t(je.num)}();case Ye.digit1:case Ye.digit2:case Ye.digit3:case Ye.digit4:case Ye.digit5:case Ye.digit6:case Ye.digit7:case Ye.digit8:case Ye.digit9:return void an(!1);case Ye.quotationMark:case Ye.apostrophe:return void function(e){for(Be.pos++;;){if(Be.pos>=Ze.length)return void lt("Unterminated string constant");var t=Ze.charCodeAt(Be.pos);if(t===Ye.backslash)Be.pos++;else if(t===e)break;Be.pos++}Be.pos++,$t(je.string)}(e);case Ye.slash:return void(Ze.charCodeAt(Be.pos+1)===Ye.equalsTo?nn(je.assign,2):nn(je.slash,1));case Ye.percentSign:case Ye.asterisk:return void function(e){var t=e===Ye.asterisk?je.star:je.modulo,n=1,r=Ze.charCodeAt(Be.pos+1);e===Ye.asterisk&&r===Ye.asterisk&&(n++,r=Ze.charCodeAt(Be.pos+2),t=je.exponent),r===Ye.equalsTo&&Ze.charCodeAt(Be.pos+2)!==Ye.greaterThan&&(n++,t=je.assign),nn(t,n)}(e);case Ye.verticalBar:case Ye.ampersand:return void function(e){var t=Ze.charCodeAt(Be.pos+1);if(t!==e){if(e===Ye.verticalBar){if(t===Ye.greaterThan)return void nn(je.pipeline,2);if(t===Ye.rightCurlyBrace&&ze)return void nn(je.braceBarR,2)}t!==Ye.equalsTo?nn(e===Ye.verticalBar?je.bitwiseOR:je.bitwiseAND,1):nn(je.assign,2)}else Ze.charCodeAt(Be.pos+2)===Ye.equalsTo?nn(je.assign,3):nn(e===Ye.verticalBar?je.logicalOR:je.logicalAND,2)}(e);case Ye.caret:return void(Ze.charCodeAt(Be.pos+1)===Ye.equalsTo?nn(je.assign,2):nn(je.bitwiseXOR,1));case Ye.plusSign:case Ye.dash:return void function(e){var t=Ze.charCodeAt(Be.pos+1);t!==e?t===Ye.equalsTo?nn(je.assign,2):e===Ye.plusSign?nn(je.plus,1):nn(je.minus,1):nn(je.preIncDec,2)}(e);case Ye.lessThan:return void function(){var e=Ze.charCodeAt(Be.pos+1);if(e===Ye.lessThan)return Ze.charCodeAt(Be.pos+2)===Ye.equalsTo?void nn(je.assign,3):void(Be.isType?nn(je.lessThan,1):nn(je.bitShiftL,2));e===Ye.equalsTo?nn(je.relationalOrEqual,2):nn(je.lessThan,1)}();case Ye.greaterThan:return void Jt();case Ye.equalsTo:case Ye.exclamationMark:return void function(e){var t=Ze.charCodeAt(Be.pos+1);if(t!==Ye.equalsTo)return e===Ye.equalsTo&&t===Ye.greaterThan?(Be.pos+=2,void $t(je.arrow)):void nn(e===Ye.equalsTo?je.eq:je.bang,1);nn(je.equality,Ze.charCodeAt(Be.pos+2)===Ye.equalsTo?3:2)}(e);case Ye.tilde:return void nn(je.tilde,1)}lt("Unexpected character '".concat(String.fromCharCode(e),"'"),Be.pos)}function nn(e,t){Be.pos+=t,$t(e)}function rn(){for(;;){var e=Ze.charCodeAt(Be.pos);if(!(e>=Ye.digit0&&e<=Ye.digit9||e===Ye.underscore))break;Be.pos++}}function an(e){var t=!1,n=!1;e||rn();var r=Ze.charCodeAt(Be.pos);r===Ye.dot&&(++Be.pos,rn(),r=Ze.charCodeAt(Be.pos)),r!==Ye.uppercaseE&&r!==Ye.lowercaseE||((r=Ze.charCodeAt(++Be.pos))!==Ye.plusSign&&r!==Ye.dash||++Be.pos,rn(),r=Ze.charCodeAt(Be.pos)),r===Ye.lowercaseN?(++Be.pos,t=!0):r===Ye.lowercaseM&&(++Be.pos,n=!0),$t(t?je.bigint:n?je.decimal:je.num)}function on(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.currentIndex(),n=t+1;if(sn(e,n)){var r=e.identifierNameAtIndex(t);return{isType:!1,leftName:r,rightName:r,endIndex:n}}if(sn(e,++n))return{isType:!0,leftName:null,rightName:null,endIndex:n};if(sn(e,++n))return{isType:!1,leftName:e.identifierNameAtIndex(t),rightName:e.identifierNameAtIndex(t+2),endIndex:n};if(sn(e,++n))return{isType:!0,leftName:null,rightName:null,endIndex:n};throw new Error("Unexpected import/export specifier at ".concat(t))}function sn(e,t){var n=e.tokens[t];return n.type===je.braceR||n.type===je.comma}var un=n(4925),ln=new Map([["quot",'"'],["amp","&"],["apos","'"],["lt","<"],["gt",">"],["nbsp","\xa0"],["iexcl","\xa1"],["cent","\xa2"],["pound","\xa3"],["curren","\xa4"],["yen","\xa5"],["brvbar","\xa6"],["sect","\xa7"],["uml","\xa8"],["copy","\xa9"],["ordf","\xaa"],["laquo","\xab"],["not","\xac"],["shy","\xad"],["reg","\xae"],["macr","\xaf"],["deg","\xb0"],["plusmn","\xb1"],["sup2","\xb2"],["sup3","\xb3"],["acute","\xb4"],["micro","\xb5"],["para","\xb6"],["middot","\xb7"],["cedil","\xb8"],["sup1","\xb9"],["ordm","\xba"],["raquo","\xbb"],["frac14","\xbc"],["frac12","\xbd"],["frac34","\xbe"],["iquest","\xbf"],["Agrave","\xc0"],["Aacute","\xc1"],["Acirc","\xc2"],["Atilde","\xc3"],["Auml","\xc4"],["Aring","\xc5"],["AElig","\xc6"],["Ccedil","\xc7"],["Egrave","\xc8"],["Eacute","\xc9"],["Ecirc","\xca"],["Euml","\xcb"],["Igrave","\xcc"],["Iacute","\xcd"],["Icirc","\xce"],["Iuml","\xcf"],["ETH","\xd0"],["Ntilde","\xd1"],["Ograve","\xd2"],["Oacute","\xd3"],["Ocirc","\xd4"],["Otilde","\xd5"],["Ouml","\xd6"],["times","\xd7"],["Oslash","\xd8"],["Ugrave","\xd9"],["Uacute","\xda"],["Ucirc","\xdb"],["Uuml","\xdc"],["Yacute","\xdd"],["THORN","\xde"],["szlig","\xdf"],["agrave","\xe0"],["aacute","\xe1"],["acirc","\xe2"],["atilde","\xe3"],["auml","\xe4"],["aring","\xe5"],["aelig","\xe6"],["ccedil","\xe7"],["egrave","\xe8"],["eacute","\xe9"],["ecirc","\xea"],["euml","\xeb"],["igrave","\xec"],["iacute","\xed"],["icirc","\xee"],["iuml","\xef"],["eth","\xf0"],["ntilde","\xf1"],["ograve","\xf2"],["oacute","\xf3"],["ocirc","\xf4"],["otilde","\xf5"],["ouml","\xf6"],["divide","\xf7"],["oslash","\xf8"],["ugrave","\xf9"],["uacute","\xfa"],["ucirc","\xfb"],["uuml","\xfc"],["yacute","\xfd"],["thorn","\xfe"],["yuml","\xff"],["OElig","\u0152"],["oelig","\u0153"],["Scaron","\u0160"],["scaron","\u0161"],["Yuml","\u0178"],["fnof","\u0192"],["circ","\u02c6"],["tilde","\u02dc"],["Alpha","\u0391"],["Beta","\u0392"],["Gamma","\u0393"],["Delta","\u0394"],["Epsilon","\u0395"],["Zeta","\u0396"],["Eta","\u0397"],["Theta","\u0398"],["Iota","\u0399"],["Kappa","\u039a"],["Lambda","\u039b"],["Mu","\u039c"],["Nu","\u039d"],["Xi","\u039e"],["Omicron","\u039f"],["Pi","\u03a0"],["Rho","\u03a1"],["Sigma","\u03a3"],["Tau","\u03a4"],["Upsilon","\u03a5"],["Phi","\u03a6"],["Chi","\u03a7"],["Psi","\u03a8"],["Omega","\u03a9"],["alpha","\u03b1"],["beta","\u03b2"],["gamma","\u03b3"],["delta","\u03b4"],["epsilon","\u03b5"],["zeta","\u03b6"],["eta","\u03b7"],["theta","\u03b8"],["iota","\u03b9"],["kappa","\u03ba"],["lambda","\u03bb"],["mu","\u03bc"],["nu","\u03bd"],["xi","\u03be"],["omicron","\u03bf"],["pi","\u03c0"],["rho","\u03c1"],["sigmaf","\u03c2"],["sigma","\u03c3"],["tau","\u03c4"],["upsilon","\u03c5"],["phi","\u03c6"],["chi","\u03c7"],["psi","\u03c8"],["omega","\u03c9"],["thetasym","\u03d1"],["upsih","\u03d2"],["piv","\u03d6"],["ensp","\u2002"],["emsp","\u2003"],["thinsp","\u2009"],["zwnj","\u200c"],["zwj","\u200d"],["lrm","\u200e"],["rlm","\u200f"],["ndash","\u2013"],["mdash","\u2014"],["lsquo","\u2018"],["rsquo","\u2019"],["sbquo","\u201a"],["ldquo","\u201c"],["rdquo","\u201d"],["bdquo","\u201e"],["dagger","\u2020"],["Dagger","\u2021"],["bull","\u2022"],["hellip","\u2026"],["permil","\u2030"],["prime","\u2032"],["Prime","\u2033"],["lsaquo","\u2039"],["rsaquo","\u203a"],["oline","\u203e"],["frasl","\u2044"],["euro","\u20ac"],["image","\u2111"],["weierp","\u2118"],["real","\u211c"],["trade","\u2122"],["alefsym","\u2135"],["larr","\u2190"],["uarr","\u2191"],["rarr","\u2192"],["darr","\u2193"],["harr","\u2194"],["crarr","\u21b5"],["lArr","\u21d0"],["uArr","\u21d1"],["rArr","\u21d2"],["dArr","\u21d3"],["hArr","\u21d4"],["forall","\u2200"],["part","\u2202"],["exist","\u2203"],["empty","\u2205"],["nabla","\u2207"],["isin","\u2208"],["notin","\u2209"],["ni","\u220b"],["prod","\u220f"],["sum","\u2211"],["minus","\u2212"],["lowast","\u2217"],["radic","\u221a"],["prop","\u221d"],["infin","\u221e"],["ang","\u2220"],["and","\u2227"],["or","\u2228"],["cap","\u2229"],["cup","\u222a"],["int","\u222b"],["there4","\u2234"],["sim","\u223c"],["cong","\u2245"],["asymp","\u2248"],["ne","\u2260"],["equiv","\u2261"],["le","\u2264"],["ge","\u2265"],["sub","\u2282"],["sup","\u2283"],["nsub","\u2284"],["sube","\u2286"],["supe","\u2287"],["oplus","\u2295"],["otimes","\u2297"],["perp","\u22a5"],["sdot","\u22c5"],["lceil","\u2308"],["rceil","\u2309"],["lfloor","\u230a"],["rfloor","\u230b"],["lang","\u2329"],["rang","\u232a"],["loz","\u25ca"],["spades","\u2660"],["clubs","\u2663"],["hearts","\u2665"],["diams","\u2666"]]);function cn(e){var t=dn(e.jsxPragma||"React.createElement"),n=(0,a.Z)(t,2),r=n[0],o=n[1],i=dn(e.jsxFragmentPragma||"React.Fragment"),s=(0,a.Z)(i,2);return{base:r,suffix:o,fragmentBase:s[0],fragmentSuffix:s[1]}}function dn(e){var t=e.indexOf(".");return-1===t&&(t=e.length),[e.slice(0,t),e.slice(t)]}var fn=function(){function e(){o(this,e)}return u(e,[{key:"getPrefixCode",value:function(){return""}},{key:"getHoistedCode",value:function(){return""}},{key:"getSuffixCode",value:function(){return""}}]),e}(),pn=["createElement"],hn=function(e){c(n,e);var t=m(n);function n(e,r,a,i,s){var u;return o(this,n),(u=t.call(this)).rootTransformer=e,u.tokens=r,u.importProcessor=a,u.nameManager=i,u.options=s,n.prototype.__init.call(h(u)),n.prototype.__init2.call(h(u)),n.prototype.__init3.call(h(u)),n.prototype.__init4.call(h(u)),n.prototype.__init5.call(h(u)),u.jsxPragmaInfo=cn(s),u.isAutomaticRuntime="automatic"===s.jsxRuntime,u.jsxImportSource=s.jsxImportSource||"react",u}return u(n,[{key:"__init",value:function(){this.lastLineNumber=1}},{key:"__init2",value:function(){this.lastIndex=0}},{key:"__init3",value:function(){this.filenameVarName=null}},{key:"__init4",value:function(){this.esmAutomaticImportNameResolutions={}}},{key:"__init5",value:function(){this.cjsAutomaticModuleNameResolutions={}}},{key:"process",value:function(){return!!this.tokens.matches1(je.jsxTagStart)&&(this.processJSXTag(),!0)}},{key:"getPrefixCode",value:function(){var e="";if(this.filenameVarName&&(e+="const ".concat(this.filenameVarName," = ").concat(JSON.stringify(this.options.filePath||""),";")),this.isAutomaticRuntime)if(this.importProcessor)for(var t=0,n=Object.entries(this.cjsAutomaticModuleNameResolutions);t or > at the end of the tag.");this.tokens.removeToken(),this.processAutomaticChildrenAndEndProps(t)}r&&this.tokens.appendCode(", ".concat(r))}for(this.options.production||(null===r&&this.tokens.appendCode(", void 0"),this.tokens.appendCode(", ".concat(n,", ").concat(this.getDevSource(e),", this"))),this.tokens.removeInitialToken();!this.tokens.matches1(je.jsxTagEnd);)this.tokens.removeToken();this.tokens.replaceToken(")")}},{key:"transformTagToCreateElement",value:function(e){if(this.tokens.replaceToken(this.getCreateElementInvocationCode()),this.tokens.matches1(je.jsxTagEnd))this.tokens.replaceToken("".concat(this.getFragmentCode(),", null")),this.processChildren(!0);else if(this.processTagIntro(),this.processPropsObjectWithDevInfo(e),this.tokens.matches2(je.slash,je.jsxTagEnd));else{if(!this.tokens.matches1(je.jsxTagEnd))throw new Error("Expected either /> or > at the end of the tag.");this.tokens.removeToken(),this.processChildren(!0)}for(this.tokens.removeInitialToken();!this.tokens.matches1(je.jsxTagEnd);)this.tokens.removeToken();this.tokens.replaceToken(")")}},{key:"getJSXFuncInvocationCode",value:function(e){return this.options.production?e?this.claimAutoImportedFuncInvocation("jsxs","/jsx-runtime"):this.claimAutoImportedFuncInvocation("jsx","/jsx-runtime"):this.claimAutoImportedFuncInvocation("jsxDEV","/jsx-dev-runtime")}},{key:"getCreateElementInvocationCode",value:function(){if(this.isAutomaticRuntime)return this.claimAutoImportedFuncInvocation("createElement","");var e=this.jsxPragmaInfo,t=this.importProcessor&&this.importProcessor.getIdentifierReplacement(e.base)||e.base;return"".concat(t).concat(e.suffix,"(")}},{key:"getFragmentCode",value:function(){if(this.isAutomaticRuntime)return this.claimAutoImportedName("Fragment",this.options.production?"/jsx-runtime":"/jsx-dev-runtime");var e=this.jsxPragmaInfo;return(this.importProcessor&&this.importProcessor.getIdentifierReplacement(e.fragmentBase)||e.fragmentBase)+e.fragmentSuffix}},{key:"claimAutoImportedFuncInvocation",value:function(e,t){var n=this.claimAutoImportedName(e,t);return this.importProcessor?"".concat(n,".call(void 0, "):"".concat(n,"(")}},{key:"claimAutoImportedName",value:function(e,t){if(this.importProcessor){var n=this.jsxImportSource+t;return this.cjsAutomaticModuleNameResolutions[n]||(this.cjsAutomaticModuleNameResolutions[n]=this.importProcessor.getFreeIdentifierForPath(n)),"".concat(this.cjsAutomaticModuleNameResolutions[n],".").concat(e)}return this.esmAutomaticImportNameResolutions[e]||(this.esmAutomaticImportNameResolutions[e]=this.nameManager.claimFreeName("_".concat(e))),this.esmAutomaticImportNameResolutions[e]}},{key:"processTagIntro",value:function(){for(var e=this.tokens.currentIndex()+1;this.tokens.tokens[e].isType||!this.tokens.matches2AtIndex(e-1,je.jsxName,je.jsxName)&&!this.tokens.matches2AtIndex(e-1,je.greaterThan,je.jsxName)&&!this.tokens.matches1AtIndex(e,je.braceL)&&!this.tokens.matches1AtIndex(e,je.jsxTagEnd)&&!this.tokens.matches2AtIndex(e,je.slash,je.jsxTagEnd);)e++;if(e===this.tokens.currentIndex()+1){var t=this.tokens.identifierName();mn(t)&&this.tokens.replaceToken("'".concat(t,"'"))}for(;this.tokens.currentIndex()=Ye.lowercaseA&&t<=Ye.lowercaseZ}function vn(e){var t,n=0,r=0,a=(0,A.Z)(e);try{for(a.s();!(t=a.n()).done;){var o=t.value;"\n"===o?(n++,r=0):" "===o&&r++}}catch(Wh){a.e(Wh)}finally{a.f()}return"\n".repeat(n)+" ".repeat(r)}function gn(e,t){var n,r,a="",o=0,i=t;if("#"===e[i]){var s,u=10;if("x"===e[++i])for(u=16,s=++i;i=Ye.digit0&&r<=Ye.digit9||r>=Ye.lowercaseA&&r<=Ye.lowercaseF||r>=Ye.uppercaseA&&r<=Ye.uppercaseF);)i++;else for(s=i;i=Ye.digit0&&e<=Ye.digit9}function bn(e,t){for(var n=cn(t),r=new Set,a=0;a0||i.namedExports.length>0))[].concat((0,N.Z)(i.defaultNames),(0,N.Z)(i.wildcardNames),(0,N.Z)(i.namedImports.map((function(e){return e.localName})))).every((function(t){return e.shouldAutomaticallyElideImportedName(t)}))&&this.importsToReplace.set(o,"")}}catch(Wh){n.e(Wh)}finally{n.f()}}},{key:"shouldAutomaticallyElideImportedName",value:function(e){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.nonTypeIdentifiers.has(e)}},{key:"generateImportReplacements",value:function(){var e,t=(0,A.Z)(this.importInfoByPath.entries());try{for(t.s();!(e=t.n()).done;){var n=(0,a.Z)(e.value,2),r=n[0],o=n[1],i=o.defaultNames,s=o.wildcardNames,u=o.namedImports,l=o.namedExports,c=o.exportStarNames,d=o.hasStarExport;if(0!==i.length||0!==s.length||0!==u.length||0!==l.length||0!==c.length||d){var f=this.getFreeIdentifierForPath(r),p=void 0;p=this.enableLegacyTypeScriptModuleInterop?f:s.length>0?s[0]:this.getFreeIdentifierForPath(r);var h="var ".concat(f," = require('").concat(r,"');");if(s.length>0){var m,v=(0,A.Z)(s);try{for(v.s();!(m=v.n()).done;){var g=m.value,y=this.enableLegacyTypeScriptModuleInterop?f:"".concat(this.helperManager.getHelperName("interopRequireWildcard"),"(").concat(f,")");h+=" var ".concat(g," = ").concat(y,";")}}catch(Wh){v.e(Wh)}finally{v.f()}}else c.length>0&&p!==f?h+=" var ".concat(p," = ").concat(this.helperManager.getHelperName("interopRequireWildcard"),"(").concat(f,");"):i.length>0&&p!==f&&(h+=" var ".concat(p," = ").concat(this.helperManager.getHelperName("interopRequireDefault"),"(").concat(f,");"));var b,k=(0,A.Z)(l);try{for(k.s();!(b=k.n()).done;){var w=b.value,x=w.importedName,D=w.localName;h+=" ".concat(this.helperManager.getHelperName("createNamedExportFrom"),"(").concat(f,", '").concat(D,"', '").concat(x,"');")}}catch(Wh){k.e(Wh)}finally{k.f()}var S,_=(0,A.Z)(c);try{for(_.s();!(S=_.n()).done;){var E=S.value;h+=" exports.".concat(E," = ").concat(p,";")}}catch(Wh){_.e(Wh)}finally{_.f()}d&&(h+=" ".concat(this.helperManager.getHelperName("createStarExport"),"(").concat(f,");")),this.importsToReplace.set(r,h);var T,M=(0,A.Z)(i);try{for(M.s();!(T=M.n()).done;){var C=T.value;this.identifierReplacements.set(C,"".concat(p,".default"))}}catch(Wh){M.e(Wh)}finally{M.f()}var O,P=(0,A.Z)(u);try{for(P.s();!(O=P.n()).done;){var I=O.value,N=I.importedName,R=I.localName;this.identifierReplacements.set(R,"".concat(f,".").concat(N))}}catch(Wh){P.e(Wh)}finally{P.f()}}else this.importsToReplace.set(r,"require('".concat(r,"');"))}}catch(Wh){t.e(Wh)}finally{t.f()}}},{key:"getFreeIdentifierForPath",value:function(e){var t=e.split("/"),n=t[t.length-1].replace(/\W/g,"");return this.nameManager.claimFreeName("_".concat(n))}},{key:"preprocessImportAtIndex",value:function(e){var t,n,r,a=[],o=[],i=[];if(e++,(!this.tokens.matchesContextualAtIndex(e,Le._type)&&!this.tokens.matches1AtIndex(e,je._typeof)||this.tokens.matches1AtIndex(e+1,je.comma)||this.tokens.matchesContextualAtIndex(e+1,Le._from))&&!this.tokens.matches1AtIndex(e,je.parenL)){if(this.tokens.matches1AtIndex(e,je.name)&&(a.push(this.tokens.identifierNameAtIndex(e)),e++,this.tokens.matches1AtIndex(e,je.comma)&&e++),this.tokens.matches1AtIndex(e,je.star)&&(e+=2,o.push(this.tokens.identifierNameAtIndex(e)),e++),this.tokens.matches1AtIndex(e,je.braceL)){var s=this.getNamedImports(e+1);e=s.newIndex;var u,l=(0,A.Z)(s.namedImports);try{for(l.s();!(u=l.n()).done;){var c=u.value;"default"===c.importedName?a.push(c.localName):i.push(c)}}catch(Wh){l.e(Wh)}finally{l.f()}}if(this.tokens.matchesContextualAtIndex(e,Le._from)&&e++,!this.tokens.matches1AtIndex(e,je.string))throw new Error("Expected string token at the end of import statement.");var d=this.tokens.stringValueAtIndex(e),f=this.getImportInfo(d);(t=f.defaultNames).push.apply(t,a),(n=f.wildcardNames).push.apply(n,o),(r=f.namedImports).push.apply(r,i),0===a.length&&0===o.length&&0===i.length&&(f.hasBareImport=!0)}}},{key:"preprocessExportAtIndex",value:function(e){if(this.tokens.matches2AtIndex(e,je._export,je._var)||this.tokens.matches2AtIndex(e,je._export,je._let)||this.tokens.matches2AtIndex(e,je._export,je._const))this.preprocessVarExportAtIndex(e);else if(this.tokens.matches2AtIndex(e,je._export,je._function)||this.tokens.matches2AtIndex(e,je._export,je._class)){var t=this.tokens.identifierNameAtIndex(e+2);this.addExportBinding(t,t)}else if(this.tokens.matches3AtIndex(e,je._export,je.name,je._function)){var n=this.tokens.identifierNameAtIndex(e+3);this.addExportBinding(n,n)}else this.tokens.matches2AtIndex(e,je._export,je.braceL)?this.preprocessNamedExportAtIndex(e):this.tokens.matches2AtIndex(e,je._export,je.star)&&this.preprocessExportStarAtIndex(e)}},{key:"preprocessVarExportAtIndex",value:function(e){for(var t=0,n=e+2;;n++)if(this.tokens.matches1AtIndex(n,je.braceL)||this.tokens.matches1AtIndex(n,je.dollarBraceL)||this.tokens.matches1AtIndex(n,je.bracketL))t++;else if(this.tokens.matches1AtIndex(n,je.braceR)||this.tokens.matches1AtIndex(n,je.bracketR))t--;else{if(0===t&&!this.tokens.matches1AtIndex(n,je.name))break;if(this.tokens.matches1AtIndex(1,je.eq)){var r=this.tokens.currentToken().rhsEndIndex;if(null==r)throw new Error("Expected = token with an end index.");n=r-1}else{if(Tt(this.tokens.tokens[n])){var a=this.tokens.identifierNameAtIndex(n);this.identifierReplacements.set(a,"exports.".concat(a))}}}}},{key:"preprocessNamedExportAtIndex",value:function(e){var t;e+=2;var n=this.getNamedImports(e),r=n.newIndex,a=n.namedImports;if(e=r,this.tokens.matchesContextualAtIndex(e,Le._from)){if(e++,!this.tokens.matches1AtIndex(e,je.string))throw new Error("Expected string token at the end of import statement.");var o=this.tokens.stringValueAtIndex(e);(t=this.getImportInfo(o).namedExports).push.apply(t,(0,N.Z)(a))}else{var i,s=(0,A.Z)(a);try{for(s.s();!(i=s.n()).done;){var u=i.value,l=u.importedName,c=u.localName;this.addExportBinding(l,c)}}catch(Wh){s.e(Wh)}finally{s.f()}}}},{key:"preprocessExportStarAtIndex",value:function(e){var t=null;if(this.tokens.matches3AtIndex(e,je._export,je.star,je._as)?(e+=3,t=this.tokens.identifierNameAtIndex(e),e+=2):e+=3,!this.tokens.matches1AtIndex(e,je.string))throw new Error("Expected string token at the end of star export statement.");var n=this.tokens.stringValueAtIndex(e),r=this.getImportInfo(n);null!==t?r.exportStarNames.push(t):r.hasStarExport=!0}},{key:"getNamedImports",value:function(e){for(var t=[];;){if(this.tokens.matches1AtIndex(e,je.braceR)){e++;break}var n=on(this.tokens,e);if(e=n.endIndex,n.isType||t.push({importedName:n.leftName,localName:n.rightName}),this.tokens.matches2AtIndex(e,je.comma,je.braceR)){e+=2;break}if(this.tokens.matches1AtIndex(e,je.braceR)){e++;break}if(!this.tokens.matches1AtIndex(e,je.comma))throw new Error("Unexpected token: ".concat(JSON.stringify(this.tokens.tokens[e])));e++}return{newIndex:e,namedImports:t}}},{key:"getImportInfo",value:function(e){var t=this.importInfoByPath.get(e);if(t)return t;var n={defaultNames:[],wildcardNames:[],namedImports:[],namedExports:[],hasBareImport:!1,exportStarNames:[],hasStarExport:!1};return this.importInfoByPath.set(e,n),n}},{key:"addExportBinding",value:function(e,t){this.exportBindingsByLocalName.has(e)||this.exportBindingsByLocalName.set(e,[]),this.exportBindingsByLocalName.get(e).push(t)}},{key:"claimImportCode",value:function(e){var t=this.importsToReplace.get(e);return this.importsToReplace.set(e,""),t||""}},{key:"getIdentifierReplacement",value:function(e){return this.identifierReplacements.get(e)||null}},{key:"resolveExportBinding",value:function(e){var t=this.exportBindingsByLocalName.get(e);return t&&0!==t.length?t.map((function(e){return"exports.".concat(e)})).join(" = "):null}},{key:"getGlobalNames",value:function(){return new Set([].concat((0,N.Z)(this.identifierReplacements.keys()),(0,N.Z)(this.exportBindingsByLocalName.keys())))}}]),e}(),wn=n(7233),xn=["sourceRoot","sourcesContent"];function Dn(e,t,n,r,a){for(var o=e.code,i=e.mappings,s=function(e,t){for(var n=new Array(t.length),r=0,a=t[r].start,o=0,i=0;i obj[importedName]});\n }\n ",createStarExport:'\n function createStarExport(obj) {\n Object.keys(obj)\n .filter((key) => key !== "default" && key !== "__esModule")\n .forEach((key) => {\n if (exports.hasOwnProperty(key)) {\n return;\n }\n Object.defineProperty(exports, key, {enumerable: true, configurable: true, get: () => obj[key]});\n });\n }\n ',nullishCoalesce:"\n function nullishCoalesce(lhs, rhsFn) {\n if (lhs != null) {\n return lhs;\n } else {\n return rhsFn();\n }\n }\n ",asyncNullishCoalesce:"\n async function asyncNullishCoalesce(lhs, rhsFn) {\n if (lhs != null) {\n return lhs;\n } else {\n return await rhsFn();\n }\n }\n ",optionalChain:"\n function optionalChain(ops) {\n let lastAccessLHS = undefined;\n let value = ops[0];\n let i = 1;\n while (i < ops.length) {\n const op = ops[i];\n const fn = ops[i + 1];\n i += 2;\n if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {\n return undefined;\n }\n if (op === 'access' || op === 'optionalAccess') {\n lastAccessLHS = value;\n value = fn(value);\n } else if (op === 'call' || op === 'optionalCall') {\n value = fn((...args) => value.call(lastAccessLHS, ...args));\n lastAccessLHS = undefined;\n }\n }\n return value;\n }\n ",asyncOptionalChain:"\n async function asyncOptionalChain(ops) {\n let lastAccessLHS = undefined;\n let value = ops[0];\n let i = 1;\n while (i < ops.length) {\n const op = ops[i];\n const fn = ops[i + 1];\n i += 2;\n if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {\n return undefined;\n }\n if (op === 'access' || op === 'optionalAccess') {\n lastAccessLHS = value;\n value = await fn(value);\n } else if (op === 'call' || op === 'optionalCall') {\n value = await fn((...args) => value.call(lastAccessLHS, ...args));\n lastAccessLHS = undefined;\n }\n }\n return value;\n }\n ",optionalChainDelete:"\n function optionalChainDelete(ops) {\n const result = OPTIONAL_CHAIN_NAME(ops);\n return result == null ? true : result;\n }\n ",asyncOptionalChainDelete:"\n async function asyncOptionalChainDelete(ops) {\n const result = await ASYNC_OPTIONAL_CHAIN_NAME(ops);\n return result == null ? true : result;\n }\n "},_n=function(){function e(t){o(this,e),this.nameManager=t,e.prototype.__init.call(this),e.prototype.__init2.call(this)}return u(e,[{key:"__init",value:function(){this.helperNames={}}},{key:"__init2",value:function(){this.createRequireName=null}},{key:"getHelperName",value:function(e){var t=this.helperNames[e];return t||(t=this.nameManager.claimFreeName("_".concat(e)),this.helperNames[e]=t,t)}},{key:"emitHelpers",value:function(){var e="";this.helperNames.optionalChainDelete&&this.getHelperName("optionalChain"),this.helperNames.asyncOptionalChainDelete&&this.getHelperName("asyncOptionalChain");for(var t=0,n=Object.entries(Sn);t0&&r[r.length-1].startTokenIndex===o+1;)r.pop();for(;a>=0&&t[a].endTokenIndex===o+1;)r.push(t[a]),a--;if(o<0)break;var i=e.tokens[o],s=e.identifierNameForToken(i);if(r.length>1&&!i.isType&&i.type===je.name&&n.has(s))if(Ot(i))Tn(r[r.length-1],e,s);else if(Pt(i)){for(var u=r.length-1;u>0&&!r[u].isFunctionScope;)u--;if(u<0)throw new Error("Did not find parent function scope.");Tn(r[u],e,s)}}if(r.length>0)throw new Error("Expected empty scope stack after processing file.")}(e,t,n)}function Tn(e,t,n){for(var r=e.startTokenIndex;r2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=!0,i=!1,s=Be.tokens.length;!Yt(e)&&!Be.error;)if(o?o=!1:(ut(je.comma),Be.tokens[Be.tokens.length-1].contextId=a,!i&&Be.tokens[s].isType&&(Be.tokens[Be.tokens.length-1].isType=!0,i=!0)),n&&Ht(je.comma));else{if(Yt(e))break;if(Ht(je.ellipsis)){An(t),Hn(),Yt(je.comma),ut(e);break}Wn(r,t)}}function Wn(e,t){e&&qn([Le._public,Le._protected,Le._private,Le._readonly,Le._override]),zn(t),Hn(),zn(t,!0)}function Hn(){ze?function(){var e=jt(0);Yt(je.question),Ht(je.colon)&&Ka();Ft(e)}():He&&function(){var e=jt(0);Yt(je.question),hr(),Ft(e)}()}function zn(e){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1]||Fn(e),Yt(je.eq)){var t=Be.tokens.length-1;Ur(),Be.tokens[t].rhsEndIndex=Be.tokens.length}}function Bn(){return Ht(je.name)}function Zn(){var e=Be.snapshot();return At(),!!((Ht(je.bracketL)||Ht(je.braceL)||Ht(je.star)||Ht(je.ellipsis)||Ht(je.hash)||Ht(je.name)||Boolean(Be.type&je.IS_KEYWORD)||Ht(je.string)||Ht(je.num)||Ht(je.bigint)||Ht(je.decimal))&&!at())||(Be.restoreFromSnapshot(e),!1)}function qn(e){for(;;){if(null===Un(e))break}}function Un(e){if(!Ht(je.name))return null;var t=Be.contextualKeyword;if(-1!==e.indexOf(t)&&Zn()){switch(t){case Le._readonly:Be.tokens[Be.tokens.length-1].type=je._readonly;break;case Le._abstract:Be.tokens[Be.tokens.length-1].type=je._abstract;break;case Le._static:Be.tokens[Be.tokens.length-1].type=je._static;break;case Le._public:Be.tokens[Be.tokens.length-1].type=je._public;break;case Le._private:Be.tokens[Be.tokens.length-1].type=je._private;break;case Le._protected:Be.tokens[Be.tokens.length-1].type=je._protected;break;case Le._override:Be.tokens[Be.tokens.length-1].type=je._override;break;case Le._declare:Be.tokens[Be.tokens.length-1].type=je._declare}return t}return null}function Qn(){for(Da();Yt(je.dot);)Da()}function Vn(){ut(je._import),ut(je.parenL),ut(je.string),ut(je.parenR),Yt(je.dot)&&Qn(),Ht(je.lessThan)&&Ir()}function Kn(){Yt(je._const);var e=Yt(je._in),t=tt(Le._out);Yt(je._const),!e&&!t||Ht(je.name)?Da():Be.tokens[Be.tokens.length-1].type=je.name,Yt(je._extends)&&vr(),Yt(je.eq)&&vr()}function Gn(){Ht(je.lessThan)&&Xn()}function Xn(){var e=jt(0);for(Ht(je.lessThan)||Ht(je.typeParameterStart)?At():lt();!Yt(je.greaterThan)&&!Be.error;)Kn(),Yt(je.comma);Ft(e)}function $n(e){var t,n=e===je.arrow;Gn(),ut(je.parenL),Be.scopeDepth++,t=!1,Yn(je.parenR,t),Be.scopeDepth--,(n||Ht(e))&&pr(e)}function Jn(){Yt(je.comma)||st()}function er(){$n(je.colon),Jn()}function tr(){if(!Ht(je.bracketL)||!function(){var e=Be.snapshot();At();var t=Yt(je.name)&&Ht(je.colon);return Be.restoreFromSnapshot(e),t}())return!1;var e=jt(0);return ut(je.bracketL),Da(),mr(),ut(je.bracketR),hr(),Jn(),Ft(e),!0}function nr(e){Yt(je.question),e||!Ht(je.parenL)&&!Ht(je.lessThan)?(hr(),Jn()):($n(je.colon),Jn())}function rr(){if(Ht(je.parenL)||Ht(je.lessThan))er();else{if(Ht(je._new))return At(),void(Ht(je.parenL)||Ht(je.lessThan)?er():nr(!1));var e=!!Un([Le._readonly]);tr()||((Je(Le._get)||Je(Le._set))&&Zn(),va(-1),nr(e))}}function ar(){for(ut(je.braceL);!Yt(je.braceR)&&!Be.error;)rr()}function or(){var e=Be.snapshot(),t=function(){if(At(),Yt(je.plus)||Yt(je.minus))return Je(Le._readonly);Je(Le._readonly)&&At();if(!Ht(je.bracketL))return!1;if(At(),!Bn())return!1;return At(),Ht(je._in)}();return Be.restoreFromSnapshot(e),t}function ir(){ut(je.braceL),Ht(je.plus)||Ht(je.minus)?(At(),nt(Le._readonly)):tt(Le._readonly),ut(je.bracketL),Da(),ut(je._in),vr(),tt(Le._as)&&vr(),ut(je.bracketR),Ht(je.plus)||Ht(je.minus)?(At(),ut(je.question)):Yt(je.question),Yt(je.colon)&&vr(),st(),ut(je.braceR)}function sr(){Yt(je.ellipsis)?vr():(vr(),Yt(je.question)),Yt(je.colon)&&vr()}function ur(e){e===Mn.TSAbstractConstructorType&&nt(Le._abstract),e!==Mn.TSConstructorType&&e!==Mn.TSAbstractConstructorType||ut(je._new);var t=Be.inDisallowConditionalTypesContext;Be.inDisallowConditionalTypesContext=!1,$n(je.arrow),Be.inDisallowConditionalTypesContext=t}function lr(){switch(Be.type){case je.name:return Qn(),void(!at()&&Ht(je.lessThan)&&Ir());case je._void:case je._null:return void At();case je.string:case je.num:case je.bigint:case je.decimal:case je._true:case je._false:return void sa();case je.minus:return At(),void sa();case je._this:return At(),void(Je(Le._is)&&!at()&&(At(),mr()));case je._typeof:return ut(je._typeof),Ht(je._import)?Vn():Qn(),void(!at()&&Ht(je.lessThan)&&Ir());case je._import:return void Vn();case je.braceL:return void(or()?ir():ar());case je.bracketL:return void function(){for(ut(je.bracketL);!Yt(je.bracketR)&&!Be.error;)sr(),Yt(je.comma)}();case je.parenL:return ut(je.parenL),vr(),void ut(je.parenR);case je.backQuote:return void function(){for(Rt(),Rt();!Ht(je.backQuote)&&!Be.error;)ut(je.dollarBraceL),vr(),Rt(),Rt();At()}();default:if(Be.type&je.IS_KEYWORD)return At(),void(Be.tokens[Be.tokens.length-1].type=je.name)}lt()}function cr(){if(Je(Le._keyof)||Je(Le._unique)||Je(Le._readonly))At(),cr();else if(Je(Le._infer))!function(){if(nt(Le._infer),Da(),Ht(je._extends)){var e=Be.snapshot();ut(je._extends);var t=Be.inDisallowConditionalTypesContext;Be.inDisallowConditionalTypesContext=!0,vr(),Be.inDisallowConditionalTypesContext=t,(Be.error||!Be.inDisallowConditionalTypesContext&&Ht(je.question))&&Be.restoreFromSnapshot(e)}}();else{var e=Be.inDisallowConditionalTypesContext;Be.inDisallowConditionalTypesContext=!1,function(){for(lr();!at()&&Yt(je.bracketL);)Yt(je.bracketR)||(vr(),ut(je.bracketR))}(),Be.inDisallowConditionalTypesContext=e}}function dr(){if(Yt(je.bitwiseAND),cr(),Ht(je.bitwiseAND))for(;Yt(je.bitwiseAND);)cr()}function fr(){return!!Ht(je.lessThan)||Ht(je.parenL)&&function(){var e=Be.snapshot(),t=function(){if(At(),Ht(je.parenR)||Ht(je.ellipsis))return!0;if(function(){if(Ht(je.name)||Ht(je._this))return At(),!0;if(Ht(je.braceL)||Ht(je.bracketL)){var e=1;for(At();e>0&&!Be.error;)Ht(je.braceL)||Ht(je.bracketL)?e++:(Ht(je.braceR)||Ht(je.bracketR))&&e--,At();return!0}return!1}()){if(Ht(je.colon)||Ht(je.comma)||Ht(je.question)||Ht(je.eq))return!0;if(Ht(je.parenR)&&(At(),Ht(je.arrow)))return!0}return!1}();return Be.restoreFromSnapshot(e),t}()}function pr(e){var t=jt(0);ut(e),function(){var e=Be.snapshot();if(Je(Le._asserts))return At(),tt(Le._is)?(vr(),!0):Bn()||Ht(je._this)?(At(),tt(Le._is)&&vr(),!0):(Be.restoreFromSnapshot(e),!1);if(Bn()||Ht(je._this))return At(),Je(Le._is)&&!at()?(At(),vr(),!0):(Be.restoreFromSnapshot(e),!1);return!1}()||vr(),Ft(t)}function hr(){Ht(je.colon)&&mr()}function mr(){var e=jt(0);ut(je.colon),vr(),Ft(e)}function vr(){if(gr(),!Be.inDisallowConditionalTypesContext&&!at()&&Yt(je._extends)){var e=Be.inDisallowConditionalTypesContext;Be.inDisallowConditionalTypesContext=!0,gr(),Be.inDisallowConditionalTypesContext=e,ut(je.question),vr(),ut(je.colon),vr()}}function gr(){fr()?ur(Mn.TSFunctionType):Ht(je._new)?ur(Mn.TSConstructorType):Je(Le._abstract)&&zt()===je._new?ur(Mn.TSAbstractConstructorType):function(){if(Yt(je.bitwiseOR),dr(),Ht(je.bitwiseOR))for(;Yt(je.bitwiseOR);)dr()}()}function yr(){for(;!Ht(je.braceL)&&!Be.error;)br(),Yt(je.comma)}function br(){Qn(),Ht(je.lessThan)&&Ir()}function kr(){if(Ht(je.string)?sa():Da(),Yt(je.eq)){var e=Be.tokens.length-1;Ur(),Be.tokens[e].rhsEndIndex=Be.tokens.length}}function wr(){for(Rn(!1),ut(je.braceL);!Yt(je.braceR)&&!Be.error;)kr(),Yt(je.comma)}function xr(){ut(je.braceL),uo(je.braceR)}function Dr(){Rn(!1),Yt(je.dot)?Dr():xr()}function Sr(){Je(Le._global)?Da():Ht(je.string)?oa():lt(),Ht(je.braceL)?xr():st()}function _r(){Ln(),ut(je.eq),Je(Le._require)&&zt()===je.parenL?(nt(Le._require),ut(je.parenL),Ht(je.string)||lt(),sa(),ut(je.parenR)):Qn(),st()}function Er(){return Mr(Be.contextualKeyword,!0)}function Tr(e){switch(e){case Le._declare:var t=Be.tokens.length-1,n=function(){if(it())return!1;switch(Be.type){case je._function:var e=jt(1);return At(),ho(Be.start,!0),Ft(e),!0;case je._class:var t=jt(1);return vo(!0,!1),Ft(t),!0;case je._const:if(Ht(je._const)&&et(Le._enum)){var n=jt(1);return ut(je._const),nt(Le._enum),Be.tokens[Be.tokens.length-1].type=je._enum,wr(),Ft(n),!0}case je._var:case je._let:var r=jt(1);return io(Be.type!==je._var),Ft(r),!0;case je.name:var a=jt(1),o=Be.contextualKeyword,i=!1;return o===Le._global?(Sr(),i=!0):i=Mr(o,!0),Ft(a),i;default:return!1}}();if(n)return Be.tokens[t].type=je._declare,!0;break;case Le._global:if(Ht(je.braceL))return xr(),!0;break;default:return Mr(e,!1)}return!1}function Mr(e,t){switch(e){case Le._abstract:if(Cr(t)&&Ht(je._class))return Be.tokens[Be.tokens.length-1].type=je._abstract,vo(!0,!1),!0;break;case Le._enum:if(Cr(t)&&Ht(je.name))return Be.tokens[Be.tokens.length-1].type=je._enum,wr(),!0;break;case Le._interface:if(Cr(t)&&Ht(je.name)){var n=jt(t?2:1);return Rn(!1),Gn(),Yt(je._extends)&&yr(),ar(),Ft(n),!0}break;case Le._module:if(Cr(t)){if(Ht(je.string)){var r=jt(t?2:1);return Sr(),Ft(r),!0}if(Ht(je.name)){var a=jt(t?2:1);return Dr(),Ft(a),!0}}break;case Le._namespace:if(Cr(t)&&Ht(je.name)){var o=jt(t?2:1);return Dr(),Ft(o),!0}break;case Le._type:if(Cr(t)&&Ht(je.name)){var i=jt(t?2:1);return Rn(!1),Gn(),ut(je.eq),vr(),st(),Ft(i),!0}}return!1}function Cr(e){return e?(At(),!0):!it()}function Or(){var e=Be.snapshot();return Xn(),mo(),Ht(je.colon)&&pr(je.colon),ut(je.arrow),Be.error?(Be.restoreFromSnapshot(e),!1):(ka(!0),!0)}function Pr(){Be.type===je.bitShiftL&&(Be.pos-=1,$t(je.lessThan)),Ir()}function Ir(){var e=jt(0);for(ut(je.lessThan);!Ht(je.greaterThan)&&!Be.error;)vr(),Yt(je.comma);e?(ut(je.greaterThan),Ft(e)):(Ft(e),en(),ut(je.greaterThan),Be.tokens[Be.tokens.length-1].isType=!0)}function Nr(){if(Ht(je.name))switch(Be.contextualKeyword){case Le._abstract:case Le._declare:case Le._enum:case Le._interface:case Le._module:case Le._namespace:case Le._type:return!0}return!1}function Ar(e,t){return We?function(e,t){if(!Ht(je.lessThan))return Qr(e,t);var n=Be.snapshot(),r=Qr(e,t);if(!Be.error)return r;Be.restoreFromSnapshot(n);Be.type=je.typeParameterStart,Xn(),r=Qr(e,t),r||lt();return r}(e,t):function(e,t){if(!Ht(je.lessThan))return Qr(e,t);var n=Be.snapshot();Xn();var r=Qr(e,t);r||lt();if(!Be.error)return r;Be.restoreFromSnapshot(n);return Qr(e,t)}(e,t)}function Rr(){zr()}function Lr(e){Rr(),Yt(je.colon)?Rr():Be.tokens[Be.tokens.length-1].identifierRole=e}function jr(){var e=Be.tokens.length;Lr(St.Access);for(var t=!1;Ht(je.dot);)t=!0,zr(),Rr();if(!t){var n=Be.tokens[e],r=Ze.charCodeAt(n.start);r>=Ye.lowercaseA&&r<=Ye.lowercaseZ&&(n.identifierRole=null)}}function Fr(){switch(Be.type){case je.braceL:return At(),qr(),void zr();case je.jsxTagStart:return Hr(),void zr();case je.string:return void zr();default:lt("JSX value should be either an expression or a quoted JSX text")}}function Yr(e){if(Ht(je.jsxTagEnd))return!1;jr(),He&&function(){if(Yt(je.jsxTagStart)){Be.tokens[Be.tokens.length-1].type=je.typeParameterStart;for(var e=jt(1);!Ht(je.greaterThan)&&!Be.error;)vr(),Yt(je.comma);zr(),Ft(e)}}();for(var t=!1;!Ht(je.slash)&&!Ht(je.jsxTagEnd)&&!Be.error;)Yt(je.braceL)?(t=!0,ut(je.ellipsis),Ur(),zr()):(t&&Be.end-Be.start===3&&Ze.charCodeAt(Be.start)===Ye.lowercaseK&&Ze.charCodeAt(Be.start+1)===Ye.lowercaseE&&Ze.charCodeAt(Be.start+2)===Ye.lowercaseY&&(Be.tokens[e].jsxRole=_t.KeyAfterPropSpread),Lr(St.ObjectKey),Ht(je.eq)&&(zr(),Fr()));var n=Ht(je.slash);return n&&zr(),n}function Wr(){var e=Be.tokens.length-1;Be.tokens[e].jsxRole=_t.NoChildren;var t=0;if(!Yr(e))for(Br();;)switch(Be.type){case je.jsxTagStart:if(zr(),Ht(je.slash))return zr(),Ht(je.jsxTagEnd)||jr(),void(Be.tokens[e].jsxRole!==_t.KeyAfterPropSpread&&(1===t?Be.tokens[e].jsxRole=_t.OneChild:t>1&&(Be.tokens[e].jsxRole=_t.StaticChildren)));t++,Wr(),Br();break;case je.jsxText:t++,Br();break;case je.jsxEmptyText:Br();break;case je.braceL:At(),Ht(je.ellipsis)?(ut(je.ellipsis),qr(),Br(),t+=2):(Ht(je.braceR)||(t++,qr()),Br());break;default:return void lt()}}function Hr(){zr(),Wr()}function zr(){Be.tokens.push(new Nt),Xt(),Be.start=Be.pos;var e=Ze.charCodeAt(Be.pos);if(xt[e])!function(){var e;do{if(Be.pos>Ze.length)return void lt("Unexpectedly reached the end of input.");e=Ze.charCodeAt(++Be.pos)}while(vt[e]||e===Ye.dash);$t(je.jsxName)}();else if(e===Ye.quotationMark||e===Ye.apostrophe)!function(e){for(Be.pos++;;){if(Be.pos>=Ze.length)return void lt("Unterminated string constant");if(Ze.charCodeAt(Be.pos)===e){Be.pos++;break}Be.pos++}$t(je.string)}(e);else switch(++Be.pos,e){case Ye.greaterThan:$t(je.jsxTagEnd);break;case Ye.lessThan:$t(je.jsxTagStart);break;case Ye.slash:$t(je.slash);break;case Ye.equalsTo:$t(je.eq);break;case Ye.leftCurlyBrace:$t(je.braceL);break;case Ye.dot:$t(je.dot);break;case Ye.colon:$t(je.colon);break;default:lt()}}function Br(){Be.tokens.push(new Nt),Be.start=Be.pos,function(){for(var e=!1,t=!1;;){if(Be.pos>=Ze.length)return void lt("Unterminated JSX contents");var n=Ze.charCodeAt(Be.pos);if(n===Ye.lessThan||n===Ye.leftCurlyBrace)return Be.pos===Be.start?n===Ye.lessThan?(Be.pos++,void $t(je.jsxTagStart)):void tn(n):void $t(e&&!t?je.jsxEmptyText:je.jsxText);n===Ye.lineFeed?e=!0:n!==Ye.space&&n!==Ye.carriageReturn&&n!==Ye.tab&&(t=!0),Be.pos++}}()}!function(e){e[e.TSFunctionType=0]="TSFunctionType";e[e.TSConstructorType=1]="TSConstructorType";e[e.TSAbstractConstructorType=2]="TSAbstractConstructorType"}(Mn||(Mn={}));var Zr=u((function e(t){o(this,e),this.stop=t}));function qr(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(Ur(e),Ht(je.comma))for(;Yt(je.comma);)Ur(e)}function Ur(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return He?Ar(e,t):ze?function(e,t){if(Ht(je.lessThan)){var n=Be.snapshot(),r=Qr(e,t);if(!Be.error)return r;Be.restoreFromSnapshot(n),Be.type=je.typeParameterStart;var a=jt(0);if(Aa(),Ft(a),r=Qr(e,t))return!0;lt()}return Qr(e,t)}(e,t):Qr(e,t)}function Qr(e,t){if(Ht(je._yield))return At(),Ht(je.semi)||rt()||(Yt(je.star),Ur()),!1;(Ht(je.parenL)||Ht(je.name)||Ht(je._yield))&&(Be.potentialArrowAt=Be.start);var n=function(e){var t=function(e){var t=Be.tokens.length,n=Gr();if(n)return!0;return Kr(t,-1,e),!1}(e);if(t)return!0;return function(e){He||ze?function(e){if(Ht(je.question)){var t=zt();if(t===je.colon||t===je.comma||t===je.parenR)return}Vr(e)}(e):Vr(e)}(e),!1}(e);return t&&da(),Be.type&je.IS_ASSIGN?(At(),Ur(e),!1):n}function Vr(e){Yt(je.question)&&(Ur(),ut(je.colon),Ur(e))}function Kr(e,t,n){if(He&&(je._in&je.PRECEDENCE_MASK)>t&&!at()&&(tt(Le._as)||tt(Le._satisfies))){var r=jt(1);return vr(),Ft(r),en(),void Kr(e,t,n)}var a=Be.type&je.PRECEDENCE_MASK;if(a>0&&(!n||!Ht(je._in))&&a>t){var o=Be.type;At(),o===je.nullishCoalescing&&(Be.tokens[Be.tokens.length-1].nullishStartIndex=e);var i=Be.tokens.length;Gr(),Kr(i,o&je.IS_RIGHT_ASSOCIATIVE?a-1:a,n),o===je.nullishCoalescing&&(Be.tokens[e].numNullishCoalesceStarts++,Be.tokens[Be.tokens.length-1].numNullishCoalesceEnds++),Kr(e,t,n)}}function Gr(){if(He&&!We&&Yt(je.lessThan))return function(){var e=jt(1);vr(),ut(je.greaterThan),Ft(e),Gr()}(),!1;if(Je(Le._module)&&Qt()===Ye.leftCurlyBrace&&!ot())return nt(Le._module),ut(je.braceL),uo(je.braceR),!1;if(Be.type&je.IS_PREFIX)return At(),Gr(),!1;if(Xr())return!0;for(;Be.type&je.IS_POSTFIX&&!rt();)Be.type===je.preIncDec&&(Be.type=je.postIncDec),At();return!1}function Xr(){var e=Be.tokens.length;return!!oa()||($r(e),Be.tokens.length>e&&Be.tokens[e].isOptionalChainStart&&(Be.tokens[Be.tokens.length-1].isOptionalChainEnd=!0),!1)}function $r(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];ze?function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Be.tokens[Be.tokens.length-1].contextualKeyword===Le._async&&Ht(je.lessThan)){var n=Be.snapshot(),r=function(){Be.scopeDepth++;var e=Be.tokens.length;if(mo(),!ca())return!1;return ya(e),!0}();if(r&&!Be.error)return;Be.restoreFromSnapshot(n)}Jr(e,t)}(e,t):Jr(e,t)}function Jr(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=new Zr(!1);do{ea(e,t,n)}while(!n.stop&&!Be.error)}function ea(e,t,n){He?function(e,t,n){if(at()||!Yt(je.bang)){if(Ht(je.lessThan)||Ht(je.bitShiftL)){var r=Be.snapshot();if(!t&&na()&&Or())return;if(Pr(),!t&&Yt(je.parenL)?(Be.tokens[Be.tokens.length-1].subscriptStartIndex=e,ra()):Ht(je.backQuote)?fa():(Be.type===je.greaterThan||Be.type!==je.parenL&&Boolean(Be.type&je.IS_EXPRESSION_START)&&!at())&<(),!Be.error)return;Be.restoreFromSnapshot(r)}else!t&&Ht(je.questionDot)&&zt()===je.lessThan&&(At(),Be.tokens[e].isOptionalChainStart=!0,Be.tokens[Be.tokens.length-1].subscriptStartIndex=e,Ir(),ut(je.parenL),ra());ta(e,t,n)}else Be.tokens[Be.tokens.length-1].type=je.nonNullAssertion}(e,t,n):ze?function(e,t,n){if(Ht(je.questionDot)&&zt()===je.lessThan)return t?void(n.stop=!0):(At(),Ra(),ut(je.parenL),void ra());if(!t&&Ht(je.lessThan)){var r=Be.snapshot();if(Ra(),ut(je.parenL),ra(),!Be.error)return;Be.restoreFromSnapshot(r)}ta(e,t,n)}(e,t,n):ta(e,t,n)}function ta(e,t,n){if(!t&&Yt(je.doubleColon))aa(),n.stop=!0,$r(e,t);else if(Ht(je.questionDot)){if(Be.tokens[e].isOptionalChainStart=!0,t&&zt()===je.parenL)return void(n.stop=!0);At(),Be.tokens[Be.tokens.length-1].subscriptStartIndex=e,Yt(je.bracketL)?(qr(),ut(je.bracketR)):Yt(je.parenL)?ra():ia()}else if(Yt(je.dot))Be.tokens[Be.tokens.length-1].subscriptStartIndex=e,ia();else if(Yt(je.bracketL))Be.tokens[Be.tokens.length-1].subscriptStartIndex=e,qr(),ut(je.bracketR);else if(!t&&Ht(je.parenL))if(na()){var r=Be.snapshot(),a=Be.tokens.length;At(),Be.tokens[Be.tokens.length-1].subscriptStartIndex=e;var o=Ke();Be.tokens[Be.tokens.length-1].contextId=o,ra(),Be.tokens[Be.tokens.length-1].contextId=o,(Ht(je.colon)||Ht(je.arrow))&&(Be.restoreFromSnapshot(r),n.stop=!0,Be.scopeDepth++,mo(),function(e){He?Ht(je.colon)&&mr():ze&&function(){if(Ht(je.colon)){var e=Be.noAnonFunctionType;Be.noAnonFunctionType=!0,Ka(),Be.noAnonFunctionType=e}}();ut(je.arrow),ya(e)}(a))}else{At(),Be.tokens[Be.tokens.length-1].subscriptStartIndex=e;var i=Ke();Be.tokens[Be.tokens.length-1].contextId=i,ra(),Be.tokens[Be.tokens.length-1].contextId=i}else Ht(je.backQuote)?fa():n.stop=!0}function na(){return Be.tokens[Be.tokens.length-1].contextualKeyword===Le._async&&!rt()}function ra(){for(var e=!0;!Yt(je.parenR)&&!Be.error;){if(e)e=!1;else if(ut(je.comma),Yt(je.parenR))break;xa(!1)}}function aa(){var e=Be.tokens.length;oa(),$r(e,!0)}function oa(){if(Yt(je.modulo))return Da(),!1;if(Ht(je.jsxText)||Ht(je.jsxEmptyText))return sa(),!1;if(Ht(je.lessThan)&&We)return Be.type=je.jsxTagStart,Hr(),At(),!1;var e=Be.potentialArrowAt===Be.start;switch(Be.type){case je.slash:case je.assign:Lt();case je._super:case je._this:case je.regexp:case je.num:case je.bigint:case je.decimal:case je.string:case je._null:case je._true:case je._false:return At(),!1;case je._import:return At(),Ht(je.dot)&&(Be.tokens[Be.tokens.length-1].type=je.name,At(),Da()),!1;case je.name:var t=Be.tokens.length,n=Be.start,r=Be.contextualKeyword;return Da(),r===Le._await?(Gr(),!1):r===Le._async&&Ht(je._function)&&!rt()?(At(),ho(n,!1),!1):e&&r===Le._async&&!rt()&&Ht(je.name)?(Be.scopeDepth++,Rn(!1),ut(je.arrow),ya(t),!0):Ht(je._do)&&!rt()?(At(),so(),!1):e&&!rt()&&Ht(je.arrow)?(Be.scopeDepth++,jn(!1),ut(je.arrow),ya(t),!0):(Be.tokens[Be.tokens.length-1].identifierRole=St.Access,!1);case je._do:return At(),so(),!1;case je.parenL:return la(e);case je.bracketL:return At(),wa(je.bracketR,!0),!1;case je.braceL:return pa(!1,!1),!1;case je._function:return function(){var e=Be.start;Da(),Yt(je.dot)&&Da();ho(e,!1)}(),!1;case je.at:ro();case je._class:return vo(!1),!1;case je._new:return function(){if(ut(je._new),Yt(je.dot))return void Da();aa(),void Yt(je.questionDot),ze&&function(){if(Ht(je.lessThan)){var e=Be.snapshot();Ra(),Be.error&&Be.restoreFromSnapshot(e)}}();Yt(je.parenL)&&wa(je.parenR)}(),!1;case je.backQuote:return fa(),!1;case je.doubleColon:return At(),aa(),!1;case je.hash:var a=Qt();return xt[a]||a===Ye.backslash?ia():At(),!1;default:return lt(),!1}}function ia(){Yt(je.hash),Da()}function sa(){At()}function ua(){ut(je.parenL),qr(),ut(je.parenR)}function la(e){var t=Be.snapshot(),n=Be.tokens.length;ut(je.parenL);for(var r=!0;!Ht(je.parenR)&&!Be.error;){if(r)r=!1;else if(ut(je.comma),Ht(je.parenR))break;if(Ht(je.ellipsis)){An(!1),da();break}Ur(!1,!0)}if((ut(je.parenR),e&&(Ht(je.colon)||!rt()))&&ca())return Be.restoreFromSnapshot(t),Be.scopeDepth++,mo(),ca(),ya(n),!Be.error||(Be.restoreFromSnapshot(t),la(!1),!1);return!1}function ca(){return He?function(){if(Ht(je.colon)){var e=Be.snapshot();pr(je.colon),rt()&<(),Ht(je.arrow)||lt(),Be.error&&Be.restoreFromSnapshot(e)}return Yt(je.arrow)}():ze?function(){if(Ht(je.colon)){var e=jt(0),t=Be.snapshot(),n=Be.noAnonFunctionType;Be.noAnonFunctionType=!0,Ea(),Be.noAnonFunctionType=n,rt()&<(),Ht(je.arrow)||lt(),Be.error&&Be.restoreFromSnapshot(t),Ft(e)}return Yt(je.arrow)}():Yt(je.arrow)}function da(){(He||ze)&&(Wt(je.question),Ht(je.colon)&&(He?mr():ze&&Ka()))}function fa(){for(Rt(),Rt();!Ht(je.backQuote)&&!Be.error;)ut(je.dollarBraceL),qr(),Rt(),Rt();At()}function pa(e,t){var n=Ke(),r=!0;for(At(),Be.tokens[Be.tokens.length-1].contextId=n;!Yt(je.braceR)&&!Be.error;){if(r)r=!1;else if(ut(je.comma),Yt(je.braceR))break;var a=!1;if(Ht(je.ellipsis)){var o=Be.tokens.length;if(Nn(),e&&(Be.tokens.length===o+2&&jn(t),Yt(je.braceR)))break}else e||(a=Yt(je.star)),!e&&Je(Le._async)?(a&<(),Da(),Ht(je.colon)||Ht(je.parenL)||Ht(je.braceR)||Ht(je.eq)||Ht(je.comma)||(Ht(je.star)&&(At(),a=!0),va(n))):va(n),ma(e,t,n)}Be.tokens[Be.tokens.length-1].contextId=n}function ha(e,t){var n=Be.start;return Ht(je.parenL)?(e&<(),ga(n,!1),!0):!!function(e){return!e&&(Ht(je.string)||Ht(je.num)||Ht(je.bracketL)||Ht(je.name)||!!(Be.type&je.IS_KEYWORD))}(e)&&(va(t),ga(n,!1),!0)}function ma(e,t,n){He?Gn():ze&&Ht(je.lessThan)&&(Aa(),Ht(je.parenL)||lt()),ha(e,n)||function(e,t){var n;Yt(je.colon)?e?zn(t):Ur(!1):(n=e?0===Be.scopeDepth?St.ObjectShorthandTopLevelDeclaration:t?St.ObjectShorthandBlockScopedDeclaration:St.ObjectShorthandFunctionScopedDeclaration:St.ObjectShorthand,Be.tokens[Be.tokens.length-1].identifierRole=n,zn(t,!0))}(e,t)}function va(e){ze&&Xa(),Yt(je.bracketL)?(Be.tokens[Be.tokens.length-1].contextId=e,Ur(),ut(je.bracketR),Be.tokens[Be.tokens.length-1].contextId=e):(Ht(je.num)||Ht(je.string)||Ht(je.bigint)||Ht(je.decimal)?oa():ia(),Be.tokens[Be.tokens.length-1].identifierRole=St.ObjectKey,Be.tokens[Be.tokens.length-1].contextId=e)}function ga(e,t){var n=Ke();Be.scopeDepth++;var r=Be.tokens.length;mo(t,n),ba(e,n);var a=Be.tokens.length;Be.scopes.push(new Ue(r,a,!0)),Be.scopeDepth--}function ya(e){ka(!0);var t=Be.tokens.length;Be.scopes.push(new Ue(e,t,!0)),Be.scopeDepth--}function ba(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;He?function(e,t){if(Ht(je.colon)&&pr(je.colon),Ht(je.braceL)||!it())ka(!1,t);else for(var n=Be.tokens.length-1;n>=0&&(Be.tokens[n].start>=e||Be.tokens[n].type===je._default||Be.tokens[n].type===je._export);)Be.tokens[n].isType=!0,n--}(e,t):ze?function(e){Ht(je.colon)&&Ea();ka(!1,e)}(t):ka(!1,t)}function ka(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;e&&!Ht(je.braceL)?Ur():so(!0,t)}function wa(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!0;!Yt(e)&&!Be.error;){if(n)n=!1;else if(ut(je.comma),Yt(e))break;xa(t)}}function xa(e){e&&Ht(je.comma)||(Ht(je.ellipsis)?(Nn(),da()):Ht(je.question)?At():Ur(!1,!0))}function Da(){At(),Be.tokens[Be.tokens.length-1].type=je.name}function Sa(e){var t=jt(0);ut(e||je.colon),Va(),Ft(t)}function _a(){ut(je.modulo),nt(Le._checks),Yt(je.parenL)&&(qr(),ut(je.parenR))}function Ea(){var e=jt(0);ut(je.colon),Ht(je.modulo)?_a():(Va(),Ht(je.modulo)&&_a()),Ft(e)}function Ta(){Ht(je._class)?(At(),Ma(!0)):Ht(je._function)?(At(),Da(),Ht(je.lessThan)&&Aa(),ut(je.parenL),Ba(),ut(je.parenR),Ea(),st()):Ht(je._var)?(At(),Ga(),st()):tt(Le._module)?Yt(je.dot)?(nt(Le._exports),Ka(),st()):function(){Ht(je.string)?oa():Da();ut(je.braceL);for(;!Ht(je.braceR)&&!Be.error;)Ht(je._import)?(At(),Po()):lt();ut(je.braceR)}():Je(Le._type)?(At(),Ia()):Je(Le._opaque)?(At(),Na(!0)):Je(Le._interface)?(At(),Ma()):Ht(je._export)?(ut(je._export),Yt(je._default)?Ht(je._function)||Ht(je._class)?Ta():(Va(),st()):Ht(je._var)||Ht(je._function)||Ht(je._class)||Je(Le._opaque)?Ta():Ht(je.star)||Ht(je.braceL)||Je(Le._interface)||Je(Le._type)||Je(Le._opaque)?So():lt()):lt()}function Ma(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(Pa(),Ht(je.lessThan)&&Aa(),Yt(je._extends))do{Ca()}while(!e&&Yt(je.comma));if(Je(Le._mixins)){At();do{Ca()}while(Yt(je.comma))}if(Je(Le._implements)){At();do{Ca()}while(Yt(je.comma))}Fa(e,!1,e)}function Ca(){Ha(!1),Ht(je.lessThan)&&Ra()}function Oa(){Ma()}function Pa(){Da()}function Ia(){Pa(),Ht(je.lessThan)&&Aa(),Sa(je.eq),st()}function Na(e){nt(Le._type),Pa(),Ht(je.lessThan)&&Aa(),Ht(je.colon)&&Sa(je.colon),e||Sa(je.eq),st()}function Aa(){var e=jt(0);Ht(je.lessThan)||Ht(je.typeParameterStart)?At():lt();do{Xa(),Ga(),Yt(je.eq)&&Va(),Ht(je.greaterThan)||ut(je.comma)}while(!Ht(je.greaterThan)&&!Be.error);ut(je.greaterThan),Ft(e)}function Ra(){var e=jt(0);for(ut(je.lessThan);!Ht(je.greaterThan)&&!Be.error;)Va(),Ht(je.greaterThan)||ut(je.comma);ut(je.greaterThan),Ft(e)}function La(){Ht(je.num)||Ht(je.string)?oa():Da()}function ja(){for(Ht(je.lessThan)&&Aa(),ut(je.parenL);!Ht(je.parenR)&&!Ht(je.ellipsis)&&!Be.error;)za(),Ht(je.parenR)||ut(je.comma);Yt(je.ellipsis)&&za(),ut(je.parenR),Sa()}function Fa(e,t,n){var r;for(t&&Ht(je.braceBarL)?(ut(je.braceBarL),r=je.braceBarR):(ut(je.braceL),r=je.braceR);!Ht(r)&&!Be.error;){if(n&&Je(Le._proto)){var a=zt();a!==je.colon&&a!==je.question&&(At(),e=!1)}if(e&&Je(Le._static)){var o=zt();o!==je.colon&&o!==je.question&&At()}if(Xa(),Yt(je.bracketL))Yt(je.bracketL)?(La(),ut(je.bracketR),ut(je.bracketR),Ht(je.lessThan)||Ht(je.parenL)?ja():(Yt(je.question),Sa())):(zt()===je.colon?(La(),Sa()):Va(),ut(je.bracketR),Sa());else if(Ht(je.parenL)||Ht(je.lessThan))ja();else{if(Je(Le._get)||Je(Le._set)){var i=zt();i!==je.name&&i!==je.string&&i!==je.num||At()}Ya()}Wa()}ut(r)}function Ya(){if(Ht(je.ellipsis)){if(ut(je.ellipsis),Yt(je.comma)||Yt(je.semi),Ht(je.braceR))return;Va()}else La(),Ht(je.lessThan)||Ht(je.parenL)?ja():(Yt(je.question),Sa())}function Wa(){Yt(je.semi)||Yt(je.comma)||Ht(je.braceR)||Ht(je.braceBarR)||lt()}function Ha(e){for(e||Da();Yt(je.dot);)Da()}function za(){var e=zt();e===je.colon||e===je.question?(Da(),Yt(je.question),Sa()):Va()}function Ba(){for(;!Ht(je.parenR)&&!Ht(je.ellipsis)&&!Be.error;)za(),Ht(je.parenR)||ut(je.comma);Yt(je.ellipsis)&&za()}function Za(){var e=!1,t=Be.noAnonFunctionType;switch(Be.type){case je.name:return Je(Le._interface)?void function(){if(nt(Le._interface),Yt(je._extends))do{Ca()}while(Yt(je.comma));Fa(!1,!1,!1)}():(Da(),Ha(!0),void(Ht(je.lessThan)&&Ra()));case je.braceL:return void Fa(!1,!1,!1);case je.braceBarL:return void Fa(!1,!0,!1);case je.bracketL:return void function(){for(ut(je.bracketL);Be.pos0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=Be.tokens.length;Be.scopeDepth++,ut(je.braceL),t&&(Be.tokens[Be.tokens.length-1].contextId=t),uo(je.braceR),t&&(Be.tokens[Be.tokens.length-1].contextId=t);var r=Be.tokens.length;Be.scopes.push(new Ue(n,r,e)),Be.scopeDepth--}function uo(e){for(;!Yt(e)&&!Be.error;)to(!0)}function lo(){ut(je.semi),Ht(je.semi)||qr(),ut(je.semi),Ht(je.parenR)||qr(),ut(je.parenR),to(!1)}function co(e){e?tt(Le._of):At(),qr(),ut(je.parenR),to(!1)}function fo(e,t){for(;;){if(po(t),Yt(je.eq)){var n=Be.tokens.length-1;Ur(e),Be.tokens[n].rhsEndIndex=Be.tokens.length}if(!Yt(je.comma))break}}function po(e){Fn(e),He?function(){var e=jt(0);at()||Yt(je.bang),hr(),Ft(e)}():ze&&Ht(je.colon)&&Ka()}function ho(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];Ht(je.star)&&At(),!t||n||Ht(je.name)||Ht(je._yield)||lt();var r=null;Ht(je.name)&&(t||(r=Be.tokens.length,Be.scopeDepth++),Rn(!1));var a=Be.tokens.length;Be.scopeDepth++,mo(),ba(e);var o=Be.tokens.length;Be.scopes.push(new Ue(a,o,!0)),Be.scopeDepth--,null!==r&&(Be.scopes.push(new Ue(r,o,!0)),Be.scopeDepth--)}function mo(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;He?Gn():ze&&function(){if(Ht(je.lessThan)){var e=jt(0);Aa(),Ft(e)}}(),ut(je.parenL),t&&(Be.tokens[Be.tokens.length-1].contextId=t),Yn(je.parenR,!1,!1,e,t),t&&(Be.tokens[Be.tokens.length-1].contextId=t)}function vo(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Ke();At(),Be.tokens[Be.tokens.length-1].contextId=n,Be.tokens[Be.tokens.length-1].isExpression=!e;var r=null;e||(r=Be.tokens.length,Be.scopeDepth++),function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(He&&(!e||t)&&Je(Le._implements))return;Ht(je.name)&&Rn(!0);He?Gn():ze&&Ht(je.lessThan)&&Aa()}(e,t),function(){var e=!1;Yt(je._extends)?(Xr(),e=!0):e=!1;He?function(e){if(e&&(Ht(je.lessThan)||Ht(je.bitShiftL))&&Pr(),tt(Le._implements)){Be.tokens[Be.tokens.length-1].type=je._implements;var t=jt(1);yr(),Ft(t)}}(e):ze&&function(e){if(e&&Ht(je.lessThan)&&Ra(),Je(Le._implements)){var t=jt(0);At(),Be.tokens[Be.tokens.length-1].type=je._implements;do{Pa(),Ht(je.lessThan)&&Ra()}while(Yt(je.comma));Ft(t)}}(e)}();var a=Be.tokens.length;if(function(e){ut(je.braceL);for(;!Yt(je.braceR)&&!Be.error;){if(!Yt(je.semi))if(Ht(je.at))ao();else bo(Be.start,e)}}(n),!Be.error&&(Be.tokens[a].contextId=n,Be.tokens[Be.tokens.length-1].contextId=n,null!==r)){var o=Be.tokens.length;Be.scopes.push(new Ue(r,o,!1)),Be.scopeDepth--}}function go(){return Ht(je.eq)||Ht(je.semi)||Ht(je.braceR)||Ht(je.bang)||Ht(je.colon)}function yo(){return Ht(je.parenL)||Ht(je.lessThan)}function bo(e,t){He&&qn([Le._declare,Le._public,Le._protected,Le._private,Le._override]);var n=!1;if(Ht(je.name)&&Be.contextualKeyword===Le._static){if(Da(),yo())return void ko(e,!1);if(go())return void Do();if(Be.tokens[Be.tokens.length-1].type=je._static,n=!0,Ht(je.braceL))return Be.tokens[Be.tokens.length-1].contextId=t,void so()}!function(e,t,n){if(He&&function(e){var t=Be.tokens.length;qn([Le._abstract,Le._readonly,Le._declare,Le._static,Le._override]);var n=Be.tokens.length;if(tr()){for(var r=e?t-1:t;r0?this.tokens[this.tokenIndex-1].end:0,this.tokenIndex0&&t0&&this.tokenAtRelativeIndex(-1).type===je._delete?e.isAsyncOperation?this.resultCode+=this.helperManager.getHelperName("asyncOptionalChainDelete"):this.resultCode+=this.helperManager.getHelperName("optionalChainDelete"):e.isAsyncOperation?this.resultCode+=this.helperManager.getHelperName("asyncOptionalChain"):this.resultCode+=this.helperManager.getHelperName("optionalChain"),this.resultCode+="([")}}},{key:"appendTokenSuffix",value:function(){var e=this.currentToken();if(e.isOptionalChainEnd&&!this.disableESTransforms&&(this.resultCode+="])"),e.numNullishCoalesceEnds&&!this.disableESTransforms)for(var t=0;t ".concat(e,"require"));var t=this.tokens.currentToken().contextId;if(null==t)throw new Error("Expected context ID on dynamic import invocation.");for(this.tokens.copyToken();!this.tokens.matchesContextIdAndLabel(je.parenR,t);)this.rootTransformer.processToken();this.tokens.replaceToken(e?")))":"))")}else{if(this.removeImportAndDetectIfShouldElide())this.tokens.removeToken();else{var n=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(n)),this.tokens.appendCode(this.importProcessor.claimImportCode(n))}Qo(this.tokens),this.tokens.matches1(je.semi)&&this.tokens.removeToken()}}},{key:"removeImportAndDetectIfShouldElide",value:function(){if(this.tokens.removeInitialToken(),this.tokens.matchesContextual(Le._type)&&!this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,je.comma)&&!this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,Le._from))return this.removeRemainingImport(),!0;if(this.tokens.matches1(je.name)||this.tokens.matches1(je.star))return this.removeRemainingImport(),!1;if(this.tokens.matches1(je.string))return!1;for(var e=!1,t=!1;!this.tokens.matches1(je.string);)(!e&&this.tokens.matches1(je.braceL)||this.tokens.matches1(je.comma))&&(this.tokens.removeToken(),this.tokens.matches1(je.braceR)||(t=!0),(this.tokens.matches2(je.name,je.comma)||this.tokens.matches2(je.name,je.braceR)||this.tokens.matches4(je.name,je.name,je.name,je.comma)||this.tokens.matches4(je.name,je.name,je.name,je.braceR))&&(e=!0)),this.tokens.removeToken();return!this.keepUnusedImports&&(this.isTypeScriptTransformEnabled?!e:!!this.isFlowTransformEnabled&&(t&&!e))}},{key:"removeRemainingImport",value:function(){for(;!this.tokens.matches1(je.string);)this.tokens.removeToken()}},{key:"processIdentifier",value:function(){var e=this.tokens.currentToken();if(e.shadowsGlobal)return!1;if(e.identifierRole===St.ObjectShorthand)return this.processObjectShorthand();if(e.identifierRole!==St.Access)return!1;var t=this.importProcessor.getIdentifierReplacement(this.tokens.identifierNameForToken(e));if(!t)return!1;for(var n=this.tokens.currentIndex()+1;n=2&&this.tokens.matches1AtIndex(e-2,je.dot))return!1;if(e>=2&&[je._var,je._let,je._const].includes(this.tokens.tokens[e-2].type))return!1;var n=this.importProcessor.resolveExportBinding(this.tokens.identifierNameForToken(t));return!!n&&(this.tokens.copyToken(),this.tokens.appendCode(" ".concat(n," =")),!0)}},{key:"processComplexAssignment",value:function(){var e=this.tokens.currentIndex(),t=this.tokens.tokens[e-1];if(t.type!==je.name)return!1;if(t.shadowsGlobal)return!1;if(e>=2&&this.tokens.matches1AtIndex(e-2,je.dot))return!1;var n=this.importProcessor.resolveExportBinding(this.tokens.identifierNameForToken(t));return!!n&&(this.tokens.appendCode(" = ".concat(n)),this.tokens.copyToken(),!0)}},{key:"processPreIncDec",value:function(){var e=this.tokens.currentIndex(),t=this.tokens.tokens[e+1];if(t.type!==je.name)return!1;if(t.shadowsGlobal)return!1;if(e+2=1&&this.tokens.matches1AtIndex(e-1,je.dot))return!1;var r=this.tokens.identifierNameForToken(t),a=this.importProcessor.resolveExportBinding(r);if(!a)return!1;var o=this.tokens.rawCodeForToken(n),i=this.importProcessor.getIdentifierReplacement(r)||r;if("++"===o)this.tokens.replaceToken("(".concat(i," = ").concat(a," = ").concat(i," + 1, ").concat(i," - 1)"));else{if("--"!==o)throw new Error("Unexpected operator: ".concat(o));this.tokens.replaceToken("(".concat(i," = ").concat(a," = ").concat(i," - 1, ").concat(i," + 1)"))}return this.tokens.removeToken(),!0}},{key:"processExportDefault",value:function(){var e=!0;if(this.tokens.matches4(je._export,je._default,je._function,je.name)||this.tokens.matches5(je._export,je._default,je.name,je._function,je.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,Le._async)){this.tokens.removeInitialToken(),this.tokens.removeToken();var t=this.processNamedFunction();this.tokens.appendCode(" exports.default = ".concat(t,";"))}else if(this.tokens.matches4(je._export,je._default,je._class,je.name)||this.tokens.matches5(je._export,je._default,je._abstract,je._class,je.name)||this.tokens.matches3(je._export,je._default,je.at)){this.tokens.removeInitialToken(),this.tokens.removeToken(),this.copyDecorators(),this.tokens.matches1(je._abstract)&&this.tokens.removeToken();var n=this.rootTransformer.processNamedClass();this.tokens.appendCode(" exports.default = ".concat(n,";"))}else if(Vo(this.isTypeScriptTransformEnabled,this.keepUnusedImports,this.tokens,this.declarationInfo))e=!1,this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.removeToken();else if(this.reactHotLoaderTransformer){var r=this.nameManager.claimFreeName("_default");this.tokens.replaceToken("let ".concat(r,"; exports.")),this.tokens.copyToken(),this.tokens.appendCode(" = ".concat(r," =")),this.reactHotLoaderTransformer.setExtractedDefaultExportName(r)}else this.tokens.replaceToken("exports."),this.tokens.copyToken(),this.tokens.appendCode(" =");e&&(this.hadDefaultExport=!0)}},{key:"copyDecorators",value:function(){for(;this.tokens.matches1(je.at);)if(this.tokens.copyToken(),this.tokens.matches1(je.parenL))this.tokens.copyExpectedToken(je.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(je.parenR);else{for(this.tokens.copyExpectedToken(je.name);this.tokens.matches1(je.dot);)this.tokens.copyExpectedToken(je.dot),this.tokens.copyExpectedToken(je.name);this.tokens.matches1(je.parenL)&&(this.tokens.copyExpectedToken(je.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(je.parenR))}}},{key:"processExportVar",value:function(){this.isSimpleExportVar()?this.processSimpleExportVar():this.processComplexExportVar()}},{key:"isSimpleExportVar",value:function(){var e=this.tokens.currentIndex();if(e++,e++,!this.tokens.matches1AtIndex(e,je.name))return!1;for(e++;e0?this.hoistedFunctionNames.map((function(e){return"".concat(e,"();")})).join(""):""}},{key:"extractHoistedCalls",value:function(){this.tokens.removeToken();for(var e=!1;this.tokens.matches3(je.dot,je.name,je.parenL);){var t=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);if(Jo.includes(t)){var n=this.nameManager.claimFreeName("__jestHoist");this.hoistedFunctionNames.push(n),this.tokens.replaceToken("function ".concat(n,"(){").concat($o,".")),this.tokens.copyToken(),this.tokens.copyToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(je.parenR),this.tokens.appendCode(";}"),e=!1}else e?this.tokens.copyToken():this.tokens.replaceToken("".concat($o,".")),this.tokens.copyToken(),this.tokens.copyToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(je.parenR),e=!0}return!0}}]),n}(fn),ti=function(e){c(n,e);var t=m(n);function n(e){var r;return o(this,n),(r=t.call(this)).tokens=e,r}return u(n,[{key:"process",value:function(){if(this.tokens.matches1(je.num)){var e=this.tokens.currentTokenCode();if(e.includes("_"))return this.tokens.replaceToken(e.replace(/_/g,"")),!0}return!1}}]),n}(fn),ni=function(e){c(n,e);var t=m(n);function n(e,r){var a;return o(this,n),(a=t.call(this)).tokens=e,a.nameManager=r,a}return u(n,[{key:"process",value:function(){return!!this.tokens.matches2(je._catch,je.braceL)&&(this.tokens.copyToken(),this.tokens.appendCode(" (".concat(this.nameManager.claimFreeName("e"),")")),!0)}}]),n}(fn),ri=function(e){c(n,e);var t=m(n);function n(e,r){var a;return o(this,n),(a=t.call(this)).tokens=e,a.nameManager=r,a}return u(n,[{key:"process",value:function(){if(this.tokens.matches1(je.nullishCoalescing)){var e=this.tokens.currentToken();return this.tokens.tokens[e.nullishStartIndex].isAsyncOperation?this.tokens.replaceTokenTrimmingLeftWhitespace(", async () => ("):this.tokens.replaceTokenTrimmingLeftWhitespace(", () => ("),!0}if(this.tokens.matches1(je._delete)&&this.tokens.tokenAtRelativeIndex(1).isOptionalChainStart)return this.tokens.removeInitialToken(),!0;var t=this.tokens.currentToken().subscriptStartIndex;if(null!=t&&this.tokens.tokens[t].isOptionalChainStart&&this.tokens.tokenAtRelativeIndex(-1).type!==je._super){var n,r=this.nameManager.claimFreeName("_");if(n=t>0&&this.tokens.matches1AtIndex(t-1,je._delete)&&this.isLastSubscriptInChain()?"".concat(r," => delete ").concat(r):"".concat(r," => ").concat(r),this.tokens.tokens[t].isAsyncOperation&&(n="async ".concat(n)),this.tokens.matches2(je.questionDot,je.parenL)||this.tokens.matches2(je.questionDot,je.lessThan))this.justSkippedSuper()&&this.tokens.appendCode(".bind(this)"),this.tokens.replaceTokenTrimmingLeftWhitespace(", 'optionalCall', ".concat(n));else if(this.tokens.matches2(je.questionDot,je.bracketL))this.tokens.replaceTokenTrimmingLeftWhitespace(", 'optionalAccess', ".concat(n));else if(this.tokens.matches1(je.questionDot))this.tokens.replaceTokenTrimmingLeftWhitespace(", 'optionalAccess', ".concat(n,"."));else if(this.tokens.matches1(je.dot))this.tokens.replaceTokenTrimmingLeftWhitespace(", 'access', ".concat(n,"."));else if(this.tokens.matches1(je.bracketL))this.tokens.replaceTokenTrimmingLeftWhitespace(", 'access', ".concat(n,"["));else{if(!this.tokens.matches1(je.parenL))throw new Error("Unexpected subscript operator in optional chain.");this.justSkippedSuper()&&this.tokens.appendCode(".bind(this)"),this.tokens.replaceTokenTrimmingLeftWhitespace(", 'call', ".concat(n,"("))}return!0}return!1}},{key:"isLastSubscriptInChain",value:function(){for(var e=0,t=this.tokens.currentIndex()+1;;t++){if(t>=this.tokens.tokens.length)throw new Error("Reached the end of the code while finding the end of the access chain.");if(this.tokens.tokens[t].isOptionalChainStart?e++:this.tokens.tokens[t].isOptionalChainEnd&&e--,e<0)return!0;if(0===e&&null!=this.tokens.tokens[t].subscriptStartIndex)return!1}}},{key:"justSkippedSuper",value:function(){for(var e=0,t=this.tokens.currentIndex()-1;;){if(t<0)throw new Error("Reached the start of the code while finding the start of the access chain.");if(this.tokens.tokens[t].isOptionalChainStart?e--:this.tokens.tokens[t].isOptionalChainEnd&&e++,e<0)return!1;if(0===e&&null!=this.tokens.tokens[t].subscriptStartIndex)return this.tokens.tokens[t-1].type===je._super;t--}}}]),n}(fn),ai=function(e){c(n,e);var t=m(n);function n(e,r,a,i){var s;return o(this,n),(s=t.call(this)).rootTransformer=e,s.tokens=r,s.importProcessor=a,s.options=i,s}return u(n,[{key:"process",value:function(){var e=this.tokens.currentIndex();if("createReactClass"===this.tokens.identifierName()){var t=this.importProcessor&&this.importProcessor.getIdentifierReplacement("createReactClass");return t?this.tokens.replaceToken("(0, ".concat(t,")")):this.tokens.copyToken(),this.tryProcessCreateClassCall(e),!0}if(this.tokens.matches3(je.name,je.dot,je.name)&&"React"===this.tokens.identifierName()&&"createClass"===this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+2)){var n=this.importProcessor&&this.importProcessor.getIdentifierReplacement("React")||"React";return n?(this.tokens.replaceToken(n),this.tokens.copyToken(),this.tokens.copyToken()):(this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.copyToken()),this.tryProcessCreateClassCall(e),!0}return!1}},{key:"tryProcessCreateClassCall",value:function(e){var t=this.findDisplayName(e);t&&this.classNeedsDisplayName()&&(this.tokens.copyExpectedToken(je.parenL),this.tokens.copyExpectedToken(je.braceL),this.tokens.appendCode("displayName: '".concat(t,"',")),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(je.braceR),this.tokens.copyExpectedToken(je.parenR))}},{key:"findDisplayName",value:function(e){return e<2?null:this.tokens.matches2AtIndex(e-2,je.name,je.eq)||e>=2&&this.tokens.tokens[e-2].identifierRole===St.ObjectKey?this.tokens.identifierNameAtIndex(e-2):this.tokens.matches2AtIndex(e-2,je._export,je._default)?this.getDisplayNameFromFilename():null}},{key:"getDisplayNameFromFilename",value:function(){var e=(this.options.filePath||"unknown").split("/"),t=e[e.length-1],n=t.lastIndexOf("."),r=-1===n?t:t.slice(0,n);return"index"===r&&e[e.length-2]?e[e.length-2]:r}},{key:"classNeedsDisplayName",value:function(){var e=this.tokens.currentIndex();if(!this.tokens.matches2(je.parenL,je.braceL))return!1;var t=e+1,n=this.tokens.tokens[t].contextId;if(null==n)throw new Error("Expected non-null context ID on object open-brace.");for(;e0&&void 0!==arguments[0]&&arguments[0];for(this.tokens.removeInitialToken();this.tokens.matches1(je._const)||this.tokens.matches1(je._enum);)this.tokens.removeToken();var t=this.tokens.identifierName();this.tokens.removeToken(),e&&!this.isImportsTransformEnabled&&this.tokens.appendCode("export "),this.tokens.appendCode("var ".concat(t,"; (function (").concat(t,")")),this.tokens.copyExpectedToken(je.braceL),this.processEnumBody(t),this.tokens.copyExpectedToken(je.braceR),e&&this.isImportsTransformEnabled?this.tokens.appendCode(")(".concat(t," || (exports.").concat(t," = ").concat(t," = {}));")):this.tokens.appendCode(")(".concat(t," || (").concat(t," = {}));"))}},{key:"processEnumBody",value:function(e){for(var t=null;!this.tokens.matches1(je.braceR);){var n=this.extractEnumKeyInfo(this.tokens.currentToken()),r=n.nameStringCode,a=n.variableName;this.tokens.removeInitialToken(),this.tokens.matches3(je.eq,je.string,je.comma)||this.tokens.matches3(je.eq,je.string,je.braceR)?this.processStringLiteralEnumMember(e,r,a):this.tokens.matches1(je.eq)?this.processExplicitValueEnumMember(e,r,a):this.processImplicitValueEnumMember(e,r,a,t),this.tokens.matches1(je.comma)&&this.tokens.removeToken(),t=null!=a?a:"".concat(e,"[").concat(r,"]")}}},{key:"extractEnumKeyInfo",value:function(e){if(e.type===je.name){var t=this.tokens.identifierNameForToken(e);return{nameStringCode:'"'.concat(t,'"'),variableName:si(t)?t:null}}if(e.type===je.string){var n=this.tokens.stringValueForToken(e);return{nameStringCode:this.tokens.code.slice(e.start,e.end),variableName:si(n)?n:null}}throw new Error("Expected name or string at beginning of enum element.")}},{key:"processStringLiteralEnumMember",value:function(e,t,n){null!=n?(this.tokens.appendCode("const ".concat(n)),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.appendCode("; ".concat(e,"[").concat(t,"] = ").concat(n,";"))):(this.tokens.appendCode("".concat(e,"[").concat(t,"]")),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.appendCode(";"))}},{key:"processExplicitValueEnumMember",value:function(e,t,n){var r=this.tokens.currentToken().rhsEndIndex;if(null==r)throw new Error("Expected rhsEndIndex on enum assign.");if(null!=n){for(this.tokens.appendCode("const ".concat(n)),this.tokens.copyToken();this.tokens.currentIndex()0,n=e.headerInfo.className;t&&(n=this.nameManager.claimFreeName("_class"),this.generatedVariables.push(n),this.tokens.appendCode(" (".concat(n," =")));var r=this.tokens.currentToken().contextId;if(null==r)throw new Error("Expected class to have a context ID.");for(this.tokens.copyExpectedToken(je._class);!this.tokens.matchesContextIdAndLabel(je.braceL,r);)this.processToken();this.processClassBody(e,n);var a=e.staticInitializerNames.map((function(e){return"".concat(n,".").concat(e,"()")}));t?this.tokens.appendCode(", ".concat(a.map((function(e){return"".concat(e,", ")})).join("")).concat(n,")")):e.staticInitializerNames.length>0&&this.tokens.appendCode(" ".concat(a.map((function(e){return"".concat(e,";")})).join(" ")))}},{key:"processClassBody",value:function(e,t){var n=e.headerInfo,r=e.constructorInsertPos,a=e.constructorInitializerStatements,o=e.fields,i=e.instanceInitializerNames,s=e.rangesToRemove,u=0,l=0,c=this.tokens.currentToken().contextId;if(null==c)throw new Error("Expected non-null context ID on class.");this.tokens.copyExpectedToken(je.braceL),this.isReactHotLoaderTransformEnabled&&this.tokens.appendCode("__reactstandin__regenerateByEval(key, code) {this[key] = eval(code);}");var d=a.length+i.length>0;if(null===r&&d){var f=this.makeConstructorInitCode(a,i,t);if(n.hasSuperclass){var p=this.nameManager.claimFreeName("args");this.tokens.appendCode("constructor(...".concat(p,") { super(...").concat(p,"); ").concat(f,"; }"))}else this.tokens.appendCode("constructor() { ".concat(f,"; }"))}for(;!this.tokens.matchesContextIdAndLabel(je.braceR,c);)if(u=s[l].start){for(this.tokens.currentIndex()"),!0}}return!1}},{key:"processPossibleAsyncArrowWithTypeParams",value:function(){if(!this.tokens.matchesContextual(Le._async)&&!this.tokens.matches1(je._async))return!1;var e=this.tokens.tokenAtRelativeIndex(1);if(e.type!==je.lessThan||!e.isType)return!1;for(var t=this.tokens.currentIndex()+1;this.tokens.tokens[t].isType;)t++;if(this.tokens.matches1AtIndex(t,je.parenL)){for(this.tokens.replaceToken("async ("),this.tokens.removeInitialToken();this.tokens.currentIndex()o?o:0),a.position+(0o-u||i&&i[1]===r?u=o:(n=++c.historyAt,c.history[n]=[a,r],c.history.splice(n+1),5000&&void 0!==arguments[0]?arguments[0]:{},t=Array.isArray(e.transforms)?e.transforms.filter(Boolean):Si;return function(e){return di(e,{transforms:t}).code}}var Ei=function(e,n){return function(r){c(i,r);var a=m(i);function i(){return o(this,i),a.apply(this,arguments)}return u(i,[{key:"componentDidCatch",value:function(e){n(e)}},{key:"render",value:function(){return"function"===typeof e?(0,Fe.jsx)(e,{}):t.isValidElement(e)?e:null}}]),i}(t.Component)},Ti=function(e,t){var n=Object.keys(t),r=n.map((function(e){return t[e]}));return I(Function,n.concat([e])).apply(void 0,(0,N.Z)(r))};var Mi='const _jsxFileName = "";',Ci=function(e){return e.trim().replace(/;$/,"")},Oi=function(e){return e.replace(Mi,"").trim()},Pi=function(e){return Mi+e},Ii=function(e){return"return (".concat(e,")")},Ni=function(e,n){var r=e.code,a=void 0===r?"":r,o=e.scope,i=void 0===o?{}:o,s=e.enableTypeScript,u=["jsx"];(void 0===s||s)&&u.push("typescript");var l=function(){for(var e=arguments.length,t=new Array(e),n=0;n=a.getDate()?a:(n.setFullYear(a.getFullYear(),a.getMonth(),r),n)}function qi(e,t){var n=t.years,r=void 0===n?0:n,a=t.months,o=void 0===a?0:a,i=t.weeks,s=void 0===i?0:i,u=t.days,l=void 0===u?0:u,c=t.hours,d=void 0===c?0:c,f=t.minutes,p=void 0===f?0:f,h=t.seconds,m=void 0===h?0:h,v=Hi(e),g=o||r?Zi(v,o+12*r):v,y=1e3*(m+60*(p+60*d));return zi(e,(l||s?Bi(g,l+7*s):g).getTime()+y)}function Ui(e){return 6===Hi(e).getDay()}function Qi(e){return 0===Hi(e).getDay()}function Vi(e){var t=Hi(e).getDay();return 0===t||6===t}function Ki(e,t){var n=Hi(e),r=Vi(n);if(isNaN(t))return zi(e,NaN);var a=n.getHours(),o=t<0?-1:1,i=Math.trunc(t/5);n.setDate(n.getDate()+7*i);for(var s=Math.abs(t%5);s>0;)n.setDate(n.getDate()+o),Vi(n)||(s-=1);return r&&Vi(n)&&0!==t&&(Ui(n)&&n.setDate(n.getDate()+(o<0?2:-1)),Qi(n)&&n.setDate(n.getDate()+(o<0?1:-2))),n.setHours(a),n}function Gi(e,t){return zi(e,+Hi(e)+t)}var Xi=7,$i=365.2425,Ji=(Math.pow(10,8),6048e5),es=864e5,ts=6e4,ns=36e5,rs=1e3,as=525600,os=43200,is=1440,ss=60,us=3,ls=12,cs=4,ds=3600,fs=60,ps=24*ds,hs=7*ps,ms=ps*$i,vs=ms/12,gs=3*vs;function ys(e,t){return Gi(e,t*ns)}var bs={};function ks(){return bs}function ws(e){bs=e}function xs(e,t){var n,r,a,o,i,s,u=ks(),l=null!==(n=null!==(r=null!==(a=null!==(o=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==o?o:null===t||void 0===t||null===(i=t.locale)||void 0===i||null===(i=i.options)||void 0===i?void 0:i.weekStartsOn)&&void 0!==a?a:u.weekStartsOn)&&void 0!==r?r:null===(s=u.locale)||void 0===s||null===(s=s.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==n?n:0,c=Hi(e),d=c.getDay(),f=(d=a.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}function _s(e){var t=Hi(e);return t.setHours(0,0,0,0),t}function Es(e){var t=Hi(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Ts(e,t){var n=_s(e),r=_s(t),a=+n-Es(n),o=+r-Es(r);return Math.round((a-o)/es)}function Ms(e){var t=Ss(e),n=zi(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Ds(n)}function Cs(e,t){var n=Hi(e),r=Ts(n,Ms(n)),a=zi(e,0);return a.setFullYear(t,0,4),a.setHours(0,0,0,0),(n=Ms(a)).setDate(n.getDate()+r),n}function Os(e,t){return Cs(e,Ss(e)+t)}function Ps(e,t){return Gi(e,t*ts)}function Is(e,t){return Zi(e,3*t)}function Ns(e,t){return Gi(e,1e3*t)}function As(e,t){return Bi(e,7*t)}function Rs(e,t){return Zi(e,12*t)}function Ls(e,t,n){var r=[+Hi(e.start),+Hi(e.end)].sort((function(e,t){return e-t})),o=(0,a.Z)(r,2),i=o[0],s=o[1],u=[+Hi(t.start),+Hi(t.end)].sort((function(e,t){return e-t})),l=(0,a.Z)(u,2),c=l[0],d=l[1];return null!==n&&void 0!==n&&n.inclusive?i<=d&&c<=s:in||isNaN(+n))&&(t=n)})),t||new Date(NaN)}function Ys(e,t){return Fs([js([e,t.start]),t.end])}function Ws(e,t){var n=Hi(e);if(isNaN(Number(n)))return NaN;var r,a,o=n.getTime();return t.forEach((function(e,t){var n=Hi(e);if(isNaN(Number(n)))return r=NaN,void(a=NaN);var i=Math.abs(o-n.getTime());(null==r||i0?1:a}function Bs(e,t){var n=Hi(e),r=Hi(t),a=n.getTime()-r.getTime();return a>0?-1:a<0?1:a}function Zs(e){return zi(e,Date.now())}function qs(e){var t=e/Xi,n=Math.trunc(t);return 0===n?0:n}function Us(e,t){return+_s(e)===+_s(t)}function Qs(e){return e instanceof Date||"object"===typeof e&&"[object Date]"===Object.prototype.toString.call(e)}function Vs(e){if(!Qs(e)&&"number"!==typeof e)return!1;var t=Hi(e);return!isNaN(Number(t))}function Ks(e,t){var n=Hi(e),r=Hi(t);if(!Vs(n)||!Vs(r))return NaN;var a=Ts(n,r),o=a<0?-1:1,i=Math.trunc(a/7),s=5*i;for(r=Bi(r,7*i);!Us(n,r);)s+=Vi(r)?0:o,r=Bi(r,o);return 0===s?0:s}function Gs(e,t){return Ss(e)-Ss(t)}function Xs(e,t){var n=Ds(e),r=Ds(t),a=+n-Es(n),o=+r-Es(r);return Math.round((a-o)/Ji)}function $s(e,t){var n=Hi(e),r=Hi(t);return 12*(n.getFullYear()-r.getFullYear())+(n.getMonth()-r.getMonth())}function Js(e){var t=Hi(e);return Math.trunc(t.getMonth()/3)+1}function eu(e,t){var n=Hi(e),r=Hi(t);return 4*(n.getFullYear()-r.getFullYear())+(Js(n)-Js(r))}function tu(e,t,n){var r=xs(e,n),a=xs(t,n),o=+r-Es(r),i=+a-Es(a);return Math.round((o-i)/Ji)}function nu(e,t){var n=Hi(e),r=Hi(t);return n.getFullYear()-r.getFullYear()}function ru(e,t){var n=Hi(e),r=Hi(t),a=au(n,r),o=Math.abs(Ts(n,r));n.setDate(n.getDate()-a*o);var i=a*(o-Number(au(n,r)===-a));return 0===i?0:i}function au(e,t){var n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function ou(e){return function(t){var n=(e?Math[e]:Math.trunc)(t);return 0===n?0:n}}function iu(e,t){return+Hi(e)-+Hi(t)}function su(e,t,n){var r=iu(e,t)/ns;return ou(null===n||void 0===n?void 0:n.roundingMethod)(r)}function uu(e,t){return Os(e,-t)}function lu(e,t){var n=Hi(e),r=Hi(t),a=zs(n,r),o=Math.abs(Gs(n,r));n=uu(n,a*o);var i=a*(o-Number(zs(n,r)===-a));return 0===i?0:i}function cu(e,t,n){var r=iu(e,t)/ts;return ou(null===n||void 0===n?void 0:n.roundingMethod)(r)}function du(e){var t=Hi(e);return t.setHours(23,59,59,999),t}function fu(e){var t=Hi(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function pu(e){var t=Hi(e);return+du(t)===+fu(t)}function hu(e,t){var n,r=Hi(e),a=Hi(t),o=zs(r,a),i=Math.abs($s(r,a));if(i<1)n=0;else{1===r.getMonth()&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-o*i);var s=zs(r,a)===-o;pu(Hi(e))&&1===i&&1===zs(e,a)&&(s=!1),n=o*(i-Number(s))}return 0===n?0:n}function mu(e,t,n){var r=hu(e,t)/3;return ou(null===n||void 0===n?void 0:n.roundingMethod)(r)}function vu(e,t,n){var r=iu(e,t)/1e3;return ou(null===n||void 0===n?void 0:n.roundingMethod)(r)}function gu(e,t,n){var r=ru(e,t)/7;return ou(null===n||void 0===n?void 0:n.roundingMethod)(r)}function yu(e,t){var n=Hi(e),r=Hi(t),a=zs(n,r),o=Math.abs(nu(n,r));n.setFullYear(1584),r.setFullYear(1584);var i=a*(o-+(zs(n,r)===-a));return 0===i?0:i}function bu(e,t){var n,r=Hi(e.start),a=Hi(e.end),o=+r>+a,i=o?+r:+a,s=o?a:r;s.setHours(0,0,0,0);var u=null!==(n=null===t||void 0===t?void 0:t.step)&&void 0!==n?n:1;if(!u)return[];u<0&&(u=-u,o=!o);for(var l=[];+s<=i;)l.push(Hi(s)),s.setDate(s.getDate()+u),s.setHours(0,0,0,0);return o?l.reverse():l}function ku(e,t){var n,r=Hi(e.start),a=Hi(e.end),o=+r>+a,i=o?+r:+a,s=o?a:r;s.setMinutes(0,0,0);var u=null!==(n=null===t||void 0===t?void 0:t.step)&&void 0!==n?n:1;if(!u)return[];u<0&&(u=-u,o=!o);for(var l=[];+s<=i;)l.push(Hi(s)),s=ys(s,u);return o?l.reverse():l}function wu(e){var t=Hi(e);return t.setSeconds(0,0),t}function xu(e,t){var n,r=wu(Hi(e.start)),a=Hi(e.end),o=+r>+a,i=o?+r:+a,s=o?a:r,u=null!==(n=null===t||void 0===t?void 0:t.step)&&void 0!==n?n:1;if(!u)return[];u<0&&(u=-u,o=!o);for(var l=[];+s<=i;)l.push(Hi(s)),s=Ps(s,u);return o?l.reverse():l}function Du(e,t){var n,r=Hi(e.start),a=Hi(e.end),o=+r>+a,i=o?+r:+a,s=o?a:r;s.setHours(0,0,0,0),s.setDate(1);var u=null!==(n=null===t||void 0===t?void 0:t.step)&&void 0!==n?n:1;if(!u)return[];u<0&&(u=-u,o=!o);for(var l=[];+s<=i;)l.push(Hi(s)),s.setMonth(s.getMonth()+u);return o?l.reverse():l}function Su(e){var t=Hi(e),n=t.getMonth(),r=n-n%3;return t.setMonth(r,1),t.setHours(0,0,0,0),t}function _u(e,t){var n,r=Hi(e.start),a=Hi(e.end),o=+r>+a,i=o?+Su(r):+Su(a),s=Su(o?a:r),u=null!==(n=null===t||void 0===t?void 0:t.step)&&void 0!==n?n:1;if(!u)return[];u<0&&(u=-u,o=!o);for(var l=[];+s<=i;)l.push(Hi(s)),s=Is(s,u);return o?l.reverse():l}function Eu(e,t){var n,r=Hi(e.start),a=Hi(e.end),o=+r>+a,i=xs(o?a:r,t),s=xs(o?r:a,t);i.setHours(15),s.setHours(15);var u=+s.getTime(),l=i,c=null!==(n=null===t||void 0===t?void 0:t.step)&&void 0!==n?n:1;if(!c)return[];c<0&&(c=-c,o=!o);for(var d=[];+l<=u;)l.setHours(0),d.push(Hi(l)),(l=As(l,c)).setHours(15);return o?d.reverse():d}function Tu(e){for(var t=bu(e),n=[],r=0;r+a,i=o?+r:+a,s=o?a:r;s.setHours(0,0,0,0),s.setMonth(0,1);var u=null!==(n=null===t||void 0===t?void 0:t.step)&&void 0!==n?n:1;if(!u)return[];u<0&&(u=-u,o=!o);for(var l=[];+s<=i;)l.push(Hi(s)),s.setFullYear(s.getFullYear()+u);return o?l.reverse():l}function Au(e){var t=Hi(e),n=t.getFullYear(),r=9+10*Math.floor(n/10);return t.setFullYear(r,11,31),t.setHours(23,59,59,999),t}function Ru(e){var t=Hi(e);return t.setMinutes(59,59,999),t}function Lu(e,t){var n,r,a,o,i,s,u=ks(),l=null!==(n=null!==(r=null!==(a=null!==(o=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==o?o:null===t||void 0===t||null===(i=t.locale)||void 0===i||null===(i=i.options)||void 0===i?void 0:i.weekStartsOn)&&void 0!==a?a:u.weekStartsOn)&&void 0!==r?r:null===(s=u.locale)||void 0===s||null===(s=s.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==n?n:0,c=Hi(e),d=c.getDay(),f=6+(d0?"in "+r:r+" ago":r};function Qu(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var Vu={date:Qu({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Qu({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Qu({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Ku={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Gu=function(e,t,n,r){return Ku[e]};function Xu(e){return function(t,n){var r;if("formatting"===(null!==n&&void 0!==n&&n.context?String(n.context):"standalone")&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=null!==n&&void 0!==n&&n.width?String(n.width):a;r=e.formattingValues[o]||e.formattingValues[a]}else{var i=e.defaultWidth,s=null!==n&&void 0!==n&&n.width?String(n.width):e.defaultWidth;r=e.values[s]||e.values[i]}return r[e.argumentCallback?e.argumentCallback(t):t]}}var $u={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Xu({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Xu({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Xu({values:{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"]},defaultWidth:"wide"}),day:Xu({values:{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"]},defaultWidth:"wide"}),dayPeriod:Xu({values:{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"}},defaultWidth:"wide",formattingValues:{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"}},defaultFormattingWidth:"wide"})};function Ju(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,a=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(a);if(!o)return null;var i,s=o[0],u=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(u)?function(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var a=r[0],o=t.match(e.parsePattern);if(!o)return null;var i=e.valueCallback?e.valueCallback(o[0]):o[0];return{value:i=n.valueCallback?n.valueCallback(i):i,rest:t.slice(a.length)}}}var tl={ordinalNumber:el({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:Ju({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Ju({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Ju({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{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]},defaultParseWidth:"any"}),day:Ju({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{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]},defaultParseWidth:"any"}),dayPeriod:Ju({matchPatterns:{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},defaultMatchWidth:"any",parsePatterns:{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}},defaultParseWidth:"any"})},nl={code:"en-US",formatDistance:Uu,formatLong:Vu,formatRelative:Gu,localize:$u,match:tl,options:{weekStartsOn:0,firstWeekContainsDate:1}};function rl(e){var t=Hi(e);return Ts(t,Pu(t))+1}function al(e){var t=Hi(e),n=+Ds(t)-+Ms(t);return Math.round(n/Ji)+1}function ol(e,t){var n,r,a,o,i,s,u=Hi(e),l=u.getFullYear(),c=ks(),d=null!==(n=null!==(r=null!==(a=null!==(o=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==o?o:null===t||void 0===t||null===(i=t.locale)||void 0===i||null===(i=i.options)||void 0===i?void 0:i.firstWeekContainsDate)&&void 0!==a?a:c.firstWeekContainsDate)&&void 0!==r?r:null===(s=c.locale)||void 0===s||null===(s=s.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==n?n:1,f=zi(e,0);f.setFullYear(l+1,0,d),f.setHours(0,0,0,0);var p=xs(f,t),h=zi(e,0);h.setFullYear(l,0,d),h.setHours(0,0,0,0);var m=xs(h,t);return u.getTime()>=p.getTime()?l+1:u.getTime()>=m.getTime()?l:l-1}function il(e,t){var n,r,a,o,i,s,u=ks(),l=null!==(n=null!==(r=null!==(a=null!==(o=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==o?o:null===t||void 0===t||null===(i=t.locale)||void 0===i||null===(i=i.options)||void 0===i?void 0:i.firstWeekContainsDate)&&void 0!==a?a:u.firstWeekContainsDate)&&void 0!==r?r:null===(s=u.locale)||void 0===s||null===(s=s.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==n?n:1,c=ol(e,t),d=zi(e,0);return d.setFullYear(c,0,l),d.setHours(0,0,0,0),xs(d,t)}function sl(e,t){var n=Hi(e),r=+xs(n,t)-+il(n,t);return Math.round(r/Ji)+1}function ul(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}var ll={y:function(e,t){var n=e.getFullYear(),r=n>0?n:1-n;return ul("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getMonth();return"M"===t?String(n+1):ul(n+1,2)},d:function(e,t){return ul(e.getDate(),t.length)},a:function(e,t){var n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return ul(e.getHours()%12||12,t.length)},H:function(e,t){return ul(e.getHours(),t.length)},m:function(e,t){return ul(e.getMinutes(),t.length)},s:function(e,t){return ul(e.getSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getMilliseconds();return ul(Math.trunc(r*Math.pow(10,n-3)),t.length)}},cl="midnight",dl="noon",fl="morning",pl="afternoon",hl="evening",ml="night",vl={G:function(e,t,n){var r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getFullYear(),a=r>0?r:1-r;return n.ordinalNumber(a,{unit:"year"})}return ll.y(e,t)},Y:function(e,t,n,r){var a=ol(e,r),o=a>0?a:1-a;return"YY"===t?ul(o%100,2):"Yo"===t?n.ordinalNumber(o,{unit:"year"}):ul(o,t.length)},R:function(e,t){return ul(Ss(e),t.length)},u:function(e,t){return ul(e.getFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return ul(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return ul(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getMonth();switch(t){case"M":case"MM":return ll.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return ul(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var a=sl(e,r);return"wo"===t?n.ordinalNumber(a,{unit:"week"}):ul(a,t.length)},I:function(e,t,n){var r=al(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):ul(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):ll.d(e,t)},D:function(e,t,n){var r=rl(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):ul(r,t.length)},E:function(e,t,n){var r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var a=e.getDay(),o=(a-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return ul(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var a=e.getDay(),o=(a-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return ul(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getDay(),a=0===r?7:r;switch(t){case"i":return String(a);case"ii":return ul(a,t.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,a=e.getHours();switch(r=12===a?dl:0===a?cl:a/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,a=e.getHours();switch(r=a>=17?hl:a>=12?pl:a>=4?fl:ml,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return ll.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):ll.H(e,t)},K:function(e,t,n){var r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):ul(r,t.length)},k:function(e,t,n){var r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):ul(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):ll.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):ll.s(e,t)},S:function(e,t){return ll.S(e,t)},X:function(e,t,n){var r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return yl(r);case"XXXX":case"XX":return bl(r);default:return bl(r,":")}},x:function(e,t,n){var r=e.getTimezoneOffset();switch(t){case"x":return yl(r);case"xxxx":case"xx":return bl(r);default:return bl(r,":")}},O:function(e,t,n){var r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+gl(r,":");default:return"GMT"+bl(r,":")}},z:function(e,t,n){var r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+gl(r,":");default:return"GMT"+bl(r,":")}},t:function(e,t,n){return ul(Math.trunc(e.getTime()/1e3),t.length)},T:function(e,t,n){return ul(e.getTime(),t.length)}};function gl(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e>0?"-":"+",r=Math.abs(e),a=Math.trunc(r/60),o=r%60;return 0===o?n+String(a):n+String(a)+t+ul(o,2)}function yl(e,t){return e%60===0?(e>0?"-":"+")+ul(Math.abs(e)/60,2):bl(e,t)}function bl(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e>0?"-":"+",r=Math.abs(e);return n+ul(Math.trunc(r/60),2)+t+ul(r%60,2)}var kl=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},wl=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},xl={p:wl,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],a=r[1],o=r[2];if(!o)return kl(e,t);switch(a){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",kl(a,t)).replace("{{time}}",wl(o,t))}},Dl=/^D+$/,Sl=/^Y+$/,_l=["D","DD","YY","YYYY"];function El(e){return Dl.test(e)}function Tl(e){return Sl.test(e)}function Ml(e,t,n){var r=function(e,t,n){var r="Y"===e[0]?"years":"days of the month";return"Use `".concat(e.toLowerCase(),"` instead of `").concat(e,"` (in `").concat(t,"`) for formatting ").concat(r," to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md")}(e,t,n);if(console.warn(r),_l.includes(e))throw new RangeError(r)}var Cl=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ol=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Pl=/^'([^]*?)'?$/,Il=/''/g,Nl=/[a-zA-Z]/;function Al(e,t,n){var r,a,o,i,s,u,l,c,d,f,p,h,m,v,g=ks(),y=null!==(r=null!==(a=null===n||void 0===n?void 0:n.locale)&&void 0!==a?a:g.locale)&&void 0!==r?r:nl,b=null!==(o=null!==(i=null!==(s=null!==(u=null===n||void 0===n?void 0:n.firstWeekContainsDate)&&void 0!==u?u:null===n||void 0===n||null===(l=n.locale)||void 0===l||null===(l=l.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==s?s:g.firstWeekContainsDate)&&void 0!==i?i:null===(c=g.locale)||void 0===c||null===(c=c.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==o?o:1,k=null!==(d=null!==(f=null!==(p=null!==(h=null===n||void 0===n?void 0:n.weekStartsOn)&&void 0!==h?h:null===n||void 0===n||null===(m=n.locale)||void 0===m||null===(m=m.options)||void 0===m?void 0:m.weekStartsOn)&&void 0!==p?p:g.weekStartsOn)&&void 0!==f?f:null===(v=g.locale)||void 0===v||null===(v=v.options)||void 0===v?void 0:v.weekStartsOn)&&void 0!==d?d:0,w=Hi(e);if(!Vs(w))throw new RangeError("Invalid time value");var x=t.match(Ol).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,xl[t])(e,y.formatLong):e})).join("").match(Cl).map((function(e){if("''"===e)return{isToken:!1,value:"'"};var t=e[0];if("'"===t)return{isToken:!1,value:Rl(e)};if(vl[t])return{isToken:!0,value:e};if(t.match(Nl))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));y.localize.preprocessor&&(x=y.localize.preprocessor(w,x));var D={firstWeekContainsDate:b,weekStartsOn:k,locale:y};return x.map((function(r){if(!r.isToken)return r.value;var a=r.value;return(null!==n&&void 0!==n&&n.useAdditionalWeekYearTokens||!Tl(a))&&(null!==n&&void 0!==n&&n.useAdditionalDayOfYearTokens||!El(a))||Ml(a,t,String(e)),(0,vl[a[0]])(w,a,y.localize,D)})).join("")}function Rl(e){var t=e.match(Pl);return t?t[1].replace(Il,"'"):e}function Ll(e,t,n){var r,a,o=ks(),i=null!==(r=null!==(a=null===n||void 0===n?void 0:n.locale)&&void 0!==a?a:o.locale)&&void 0!==r?r:nl,s=zs(e,t);if(isNaN(s))throw new RangeError("Invalid time value");var u,l,c=Object.assign({},n,{addSuffix:null===n||void 0===n?void 0:n.addSuffix,comparison:s});s>0?(u=Hi(t),l=Hi(e)):(u=Hi(e),l=Hi(t));var d,f=vu(l,u),p=(Es(l)-Es(u))/1e3,h=Math.round((f-p)/60);if(h<2)return null!==n&&void 0!==n&&n.includeSeconds?f<5?i.formatDistance("lessThanXSeconds",5,c):f<10?i.formatDistance("lessThanXSeconds",10,c):f<20?i.formatDistance("lessThanXSeconds",20,c):f<40?i.formatDistance("halfAMinute",0,c):f<60?i.formatDistance("lessThanXMinutes",1,c):i.formatDistance("xMinutes",1,c):0===h?i.formatDistance("lessThanXMinutes",1,c):i.formatDistance("xMinutes",h,c);if(h<45)return i.formatDistance("xMinutes",h,c);if(h<90)return i.formatDistance("aboutXHours",1,c);if(h0?(l=Hi(t),c=Hi(e)):(l=Hi(e),c=Hi(t));var f,p=ou(null!==(o=null===n||void 0===n?void 0:n.roundingMethod)&&void 0!==o?o:"round"),h=c.getTime()-l.getTime(),m=h/ts,v=(h-(Es(c)-Es(l)))/ts,g=null===n||void 0===n?void 0:n.unit;if("second"===(f=g||(m<1?"second":m<60?"minute":m0){var f=r.getMilliseconds();d="."+ul(Math.trunc(f*Math.pow(10,a-3)),a)}var p="",h=r.getTimezoneOffset();if(0!==h){var m=Math.abs(h),v=ul(Math.trunc(m/60),2),g=ul(m%60,2);p="".concat(h<0?"+":"-").concat(v,":").concat(g)}else p="Z";return"".concat(s,"-").concat(i,"-").concat(o,"T").concat(u,":").concat(l,":").concat(c).concat(d).concat(p)}var Ul=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Ql=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Vl(e){var t=Hi(e);if(!Vs(t))throw new RangeError("Invalid time value");var n=Ul[t.getUTCDay()],r=ul(t.getUTCDate(),2),a=Ql[t.getUTCMonth()],o=t.getUTCFullYear(),i=ul(t.getUTCHours(),2),s=ul(t.getUTCMinutes(),2),u=ul(t.getUTCSeconds(),2);return"".concat(n,", ").concat(r," ").concat(a," ").concat(o," ").concat(i,":").concat(s,":").concat(u," GMT")}function Kl(e,t,n){var r,a,o,i,s,u,l,c,d,f=Hi(e),p=Hi(t),h=ks(),m=null!==(r=null!==(a=null===n||void 0===n?void 0:n.locale)&&void 0!==a?a:h.locale)&&void 0!==r?r:nl,v=null!==(o=null!==(i=null!==(s=null!==(u=null===n||void 0===n?void 0:n.weekStartsOn)&&void 0!==u?u:null===n||void 0===n||null===(l=n.locale)||void 0===l||null===(l=l.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==s?s:h.weekStartsOn)&&void 0!==i?i:null===(c=h.locale)||void 0===c||null===(c=c.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==o?o:0,g=Ts(f,p);if(isNaN(g))throw new RangeError("Invalid time value");return d=g<-6?"other":g<-1?"lastWeek":g<0?"yesterday":g<1?"today":g<2?"tomorrow":g<7?"nextWeek":"other",Al(f,m.formatRelative(d,f,p,{locale:m,weekStartsOn:v}),{locale:m,weekStartsOn:v})}function Gl(e){return Hi(1e3*e)}function Xl(e){return Hi(e).getDate()}function $l(e){return Hi(e).getDay()}function Jl(e){var t=Hi(e),n=t.getFullYear(),r=t.getMonth(),a=zi(e,0);return a.setFullYear(n,r+1,0),a.setHours(0,0,0,0),a.getDate()}function ec(e){var t=Hi(e).getFullYear();return t%400===0||t%4===0&&t%100!==0}function tc(e){var t=Hi(e);return"Invalid Date"===String(new Date(t))?NaN:ec(t)?366:365}function nc(e){var t=Hi(e).getFullYear();return 10*Math.floor(t/10)}function rc(){return Object.assign({},ks())}function ac(e){return Hi(e).getHours()}function oc(e){var t=Hi(e).getDay();return 0===t&&(t=7),t}function ic(e){var t=Ms(e),n=+Ms(As(t,60))-+t;return Math.round(n/Ji)}function sc(e){return Hi(e).getMilliseconds()}function uc(e){return Hi(e).getMinutes()}function lc(e){return Hi(e).getMonth()}function cc(e,t){var n=[+Hi(e.start),+Hi(e.end)].sort((function(e,t){return e-t})),r=(0,a.Z)(n,2),o=r[0],i=r[1],s=[+Hi(t.start),+Hi(t.end)].sort((function(e,t){return e-t})),u=(0,a.Z)(s,2),l=u[0],c=u[1];if(!(oi?i:c,h=p-Es(p);return Math.ceil((h-f)/es)}function dc(e){return Hi(e).getSeconds()}function fc(e){return Hi(e).getTime()}function pc(e){return Math.trunc(+Hi(e)/1e3)}function hc(e,t){var n,r,a,o,i,s,u=ks(),l=null!==(n=null!==(r=null!==(a=null!==(o=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==o?o:null===t||void 0===t||null===(i=t.locale)||void 0===i||null===(i=i.options)||void 0===i?void 0:i.weekStartsOn)&&void 0!==a?a:u.weekStartsOn)&&void 0!==r?r:null===(s=u.locale)||void 0===s||null===(s=s.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==n?n:0,c=Xl(e);if(isNaN(c))return NaN;var d=l-$l(Mu(e));d<=0&&(d+=7);var f=c-d;return Math.ceil(f/7)+1}function mc(e){var t=Hi(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}function vc(e,t){return tu(mc(e),Mu(e),t)+1}function gc(e){return Hi(e).getFullYear()}function yc(e){return Math.trunc(e*ns)}function bc(e){return Math.trunc(e*ss)}function kc(e){return Math.trunc(e*ds)}function wc(e,t,n){var r=Hi(e);if(isNaN(+r))throw new TypeError("Start date is invalid");var a=Hi(t);if(isNaN(+a))throw new TypeError("End date is invalid");if(null!==n&&void 0!==n&&n.assertPositive&&+r>+a)throw new TypeError("End date must be after start date");return{start:r,end:a}}function xc(e){var t=Hi(e.start),n=Hi(e.end),r={},a=yu(n,t);a&&(r.years=a);var o=qi(t,{years:r.years}),i=hu(n,o);i&&(r.months=i);var s=qi(o,{months:r.months}),u=ru(n,s);u&&(r.days=u);var l=qi(s,{days:r.days}),c=su(n,l);c&&(r.hours=c);var d=qi(l,{hours:r.hours}),f=cu(n,d);f&&(r.minutes=f);var p=vu(n,qi(d,{minutes:r.minutes}));return p&&(r.seconds=p),r}function Dc(e,t,n){var r,a,o;return void 0===(o=t)||"locale"in o?n=t:a=t,new Intl.DateTimeFormat(null===(r=n)||void 0===r?void 0:r.locale,a).format(Hi(e))}function Sc(e,t,n){var r,a=0,o=Hi(e),i=Hi(t);if(null!==n&&void 0!==n&&n.unit)"second"===(r=null===n||void 0===n?void 0:n.unit)?a=vu(o,i):"minute"===r?a=cu(o,i):"hour"===r?a=su(o,i):"day"===r?a=Ts(o,i):"week"===r?a=tu(o,i):"month"===r?a=$s(o,i):"quarter"===r?a=eu(o,i):"year"===r&&(a=nu(o,i));else{var s=vu(o,i);Math.abs(s)r.getTime()}function Ec(e,t){return+Hi(e)<+Hi(t)}function Tc(e,t){return+Hi(e)===+Hi(t)}function Mc(e,t,n){var r=new Date(e,t,n);return r.getFullYear()===e&&r.getMonth()===t&&r.getDate()===n}function Cc(e){return 1===Hi(e).getDate()}function Oc(e){return 5===Hi(e).getDay()}function Pc(e){return+Hi(e)>Date.now()}var Ic=n(4942);function Nc(e,t){var n=t instanceof Date?zi(t,0):new t(0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}var Ac=function(){function e(){o(this,e),(0,Ic.Z)(this,"subPriority",0)}return u(e,[{key:"validate",value:function(e,t){return!0}}]),e}(),Rc=function(e){c(n,e);var t=m(n);function n(e,r,a,i,s){var u;return o(this,n),(u=t.call(this)).value=e,u.validateValue=r,u.setValue=a,u.priority=i,s&&(u.subPriority=s),u}return u(n,[{key:"validate",value:function(e,t){return this.validateValue(e,this.value,t)}},{key:"set",value:function(e,t,n){return this.setValue(e,t,this.value,n)}}]),n}(Ac),Lc=function(e){c(n,e);var t=m(n);function n(){var e;o(this,n);for(var r=arguments.length,a=new Array(r),i=0;i0,a=r?t:1-t;if(a<=50)n=e||100;else{var o=a+50;n=e+100*Math.trunc(o/100)-(e>=o%100?100:0)}return r?n:1-n}function gd(e){return e%400===0||e%4===0&&e%100!==0}var yd=function(e){c(n,e);var t=m(n);function n(){var e;o(this,n);for(var r=arguments.length,a=new Array(r),i=0;i0}},{key:"set",value:function(e,t,n){var r=e.getFullYear();if(n.isTwoDigitYear){var a=vd(n.year,r);return e.setFullYear(a,0,1),e.setHours(0,0,0,0),e}var o="era"in t&&1!==t.era?1-n.year:n.year;return e.setFullYear(o,0,1),e.setHours(0,0,0,0),e}}]),n}(jc),bd=function(e){c(n,e);var t=m(n);function n(){var e;o(this,n);for(var r=arguments.length,a=new Array(r),i=0;i0}},{key:"set",value:function(e,t,n,r){var a=ol(e,r);if(n.isTwoDigitYear){var o=vd(n.year,a);return e.setFullYear(o,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),xs(e,r)}var i="era"in t&&1!==t.era?1-n.year:n.year;return e.setFullYear(i,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),xs(e,r)}}]),n}(jc),kd=function(e){c(n,e);var t=m(n);function n(){var e;o(this,n);for(var r=arguments.length,a=new Array(r),i=0;i=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setMonth(3*(n-1),1),e.setHours(0,0,0,0),e}}]),n}(jc),Dd=function(e){c(n,e);var t=m(n);function n(){var e;o(this,n);for(var r=arguments.length,a=new Array(r),i=0;i=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setMonth(3*(n-1),1),e.setHours(0,0,0,0),e}}]),n}(jc),Sd=function(e){c(n,e);var t=m(n);function n(){var e;o(this,n);for(var r=arguments.length,a=new Array(r),i=0;i=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}}]),n}(jc),_d=function(e){c(n,e);var t=m(n);function n(){var e;o(this,n);for(var r=arguments.length,a=new Array(r),i=0;i=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}}]),n}(jc);function Ed(e,t,n){var r=Hi(e),a=sl(r,n)-t;return r.setDate(r.getDate()-7*a),r}var Td=function(e){c(n,e);var t=m(n);function n(){var e;o(this,n);for(var r=arguments.length,a=new Array(r),i=0;i=1&&t<=53}},{key:"set",value:function(e,t,n,r){return xs(Ed(e,n,r),r)}}]),n}(jc);function Md(e,t){var n=Hi(e),r=al(n)-t;return n.setDate(n.getDate()-7*r),n}var Cd=function(e){c(n,e);var t=m(n);function n(){var e;o(this,n);for(var r=arguments.length,a=new Array(r),i=0;i=1&&t<=53}},{key:"set",value:function(e,t,n){return Ds(Md(e,n))}}]),n}(jc),Od=[31,28,31,30,31,30,31,31,30,31,30,31],Pd=[31,29,31,30,31,30,31,31,30,31,30,31],Id=function(e){c(n,e);var t=m(n);function n(){var e;o(this,n);for(var r=arguments.length,a=new Array(r),i=0;i=1&&t<=Pd[r]:t>=1&&t<=Od[r]}},{key:"set",value:function(e,t,n){return e.setDate(n),e.setHours(0,0,0,0),e}}]),n}(jc),Nd=function(e){c(n,e);var t=m(n);function n(){var e;o(this,n);for(var r=arguments.length,a=new Array(r),i=0;i=1&&t<=366:t>=1&&t<=365}},{key:"set",value:function(e,t,n){return e.setMonth(0,n),e.setHours(0,0,0,0),e}}]),n}(jc);function Ad(e,t,n){var r,a,o,i,s,u,l=ks(),c=null!==(r=null!==(a=null!==(o=null!==(i=null===n||void 0===n?void 0:n.weekStartsOn)&&void 0!==i?i:null===n||void 0===n||null===(s=n.locale)||void 0===s||null===(s=s.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:l.weekStartsOn)&&void 0!==a?a:null===(u=l.locale)||void 0===u||null===(u=u.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==r?r:0,d=Hi(e),f=d.getDay(),p=7-c;return Bi(d,t<0||t>6?t-(f+p)%7:((t%7+7)%7+p)%7-(f+p)%7)}var Rd=function(e){c(n,e);var t=m(n);function n(){var e;o(this,n);for(var r=arguments.length,a=new Array(r),i=0;i=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=Ad(e,n,r)).setHours(0,0,0,0),e}}]),n}(jc),Ld=function(e){c(n,e);var t=m(n);function n(){var e;o(this,n);for(var r=arguments.length,a=new Array(r),i=0;i=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=Ad(e,n,r)).setHours(0,0,0,0),e}}]),n}(jc),jd=function(e){c(n,e);var t=m(n);function n(){var e;o(this,n);for(var r=arguments.length,a=new Array(r),i=0;i=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=Ad(e,n,r)).setHours(0,0,0,0),e}}]),n}(jc);function Fd(e,t){var n=Hi(e);return Bi(n,t-oc(n))}var Yd=function(e){c(n,e);var t=m(n);function n(){var e;o(this,n);for(var r=arguments.length,a=new Array(r),i=0;i=1&&t<=7}},{key:"set",value:function(e,t,n){return(e=Fd(e,n)).setHours(0,0,0,0),e}}]),n}(jc),Wd=function(e){c(n,e);var t=m(n);function n(){var e;o(this,n);for(var r=arguments.length,a=new Array(r),i=0;i=1&&t<=12}},{key:"set",value:function(e,t,n){var r=e.getHours()>=12;return r&&n<12?e.setHours(n+12,0,0,0):r||12!==n?e.setHours(n,0,0,0):e.setHours(0,0,0,0),e}}]),n}(jc),Zd=function(e){c(n,e);var t=m(n);function n(){var e;o(this,n);for(var r=arguments.length,a=new Array(r),i=0;i=0&&t<=23}},{key:"set",value:function(e,t,n){return e.setHours(n,0,0,0),e}}]),n}(jc),qd=function(e){c(n,e);var t=m(n);function n(){var e;o(this,n);for(var r=arguments.length,a=new Array(r),i=0;i=0&&t<=11}},{key:"set",value:function(e,t,n){return e.getHours()>=12&&n<12?e.setHours(n+12,0,0,0):e.setHours(n,0,0,0),e}}]),n}(jc),Ud=function(e){c(n,e);var t=m(n);function n(){var e;o(this,n);for(var r=arguments.length,a=new Array(r),i=0;i=1&&t<=24}},{key:"set",value:function(e,t,n){var r=n<=24?n%24:n;return e.setHours(r,0,0,0),e}}]),n}(jc),Qd=function(e){c(n,e);var t=m(n);function n(){var e;o(this,n);for(var r=arguments.length,a=new Array(r),i=0;i=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setMinutes(n,0,0),e}}]),n}(jc),Vd=function(e){c(n,e);var t=m(n);function n(){var e;o(this,n);for(var r=arguments.length,a=new Array(r),i=0;i=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setSeconds(n,0),e}}]),n}(jc),Kd=function(e){c(n,e);var t=m(n);function n(){var e;o(this,n);for(var r=arguments.length,a=new Array(r),i=0;i0)throw new RangeError("The format string mustn't contain `".concat(a,"` and any other token at the same time"));E.push({token:o,fullToken:a});var l=i.run(e,a,b.match,D);if(!l)return{v:zi(n,NaN)};S.push(l.setter),e=l.rest}else{if(o.match(sf))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");if("''"===a?a="'":"'"===o&&(a=function(e){return e.match(rf)[1].replace(af,"'")}(a)),0!==e.indexOf(a))return{v:zi(n,NaN)};e=e.slice(a.length)}};for(T.s();!(x=T.n()).done;){var C=M();if("object"===typeof C)return C.v}}catch(Wh){T.e(Wh)}finally{T.f()}if(e.length>0&&of.test(e))return zi(n,NaN);var O=S.map((function(e){return e.priority})).sort((function(e,t){return t-e})).filter((function(e,t,n){return n.indexOf(e)===t})).map((function(e){return S.filter((function(t){return t.priority===e})).sort((function(e,t){return t.subPriority-e.subPriority}))})).map((function(e){return e[0]})),P=Hi(n);if(isNaN(P.getTime()))return zi(n,NaN);var I,N={},R=(0,A.Z)(O);try{for(R.s();!(I=R.n()).done;){var L=I.value;if(!L.validate(P,D))return zi(n,NaN);var j=L.set(P,N,D);Array.isArray(j)?(P=j[0],Object.assign(N,j[1])):P=j}}catch(Wh){R.e(Wh)}finally{R.f()}return zi(n,P)}function lf(e,t,n){return Vs(uf(e,t,new Date,n))}function cf(e){return 1===Hi(e).getDay()}function df(e){return+Hi(e)=i&&n<=s}function jf(e,t){return Bi(e,-t)}function Ff(e){return Us(e,jf(Zs(e),1))}function Yf(e){var t=Hi(e),n=t.getFullYear(),r=9+10*Math.floor(n/10);return t.setFullYear(r+1,0,0),t.setHours(0,0,0,0),t}function Wf(e,t){var n,r,a,o,i,s,u=ks(),l=null!==(n=null!==(r=null!==(a=null!==(o=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==o?o:null===t||void 0===t||null===(i=t.locale)||void 0===i||null===(i=i.options)||void 0===i?void 0:i.weekStartsOn)&&void 0!==a?a:u.weekStartsOn)&&void 0!==r?r:null===(s=u.locale)||void 0===s||null===(s=s.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==n?n:0,c=Hi(e),d=c.getDay(),f=6+(d2)return n;/:/.test(r[0])?t=r[0]:(n.date=r[0],t=r[1],hp.timeZoneDelimiter.test(n.date)&&(n.date=e.split(hp.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length)));if(t){var a=hp.timezone.exec(t);a?(n.time=t.replace(a[1],""),n.timezone=a[1]):n.time=t}return n}(e);if(o.date){var i=function(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var a=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:null===o?a:100*o,restDateString:e.slice((r[1]||r[2]).length)}}(o.date,a);r=function(e,t){if(null===t)return new Date(NaN);var n=e.match(mp);if(!n)return new Date(NaN);var r=!!n[4],a=yp(n[1]),o=yp(n[2])-1,i=yp(n[3]),s=yp(n[4]),u=yp(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,s,u)?function(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var a=r.getUTCDay()||7,o=7*(t-1)+n+1-a;return r.setUTCDate(r.getUTCDate()+o),r}(t,s,u):new Date(NaN);var l=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(kp[t]||(wp(e)?29:28))}(t,o,i)&&function(e,t){return t>=1&&t<=(wp(e)?366:365)}(t,a)?(l.setUTCFullYear(t,o,Math.max(a,i)),l):new Date(NaN)}(i.restDateString,i.year)}if(!r||isNaN(r.getTime()))return new Date(NaN);var s,u=r.getTime(),l=0;if(o.time&&(l=function(e){var t=e.match(vp);if(!t)return NaN;var n=bp(t[1]),r=bp(t[2]),a=bp(t[3]);if(!function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,r,a))return NaN;return n*ns+r*ts+1e3*a}(o.time),isNaN(l)))return new Date(NaN);if(!o.timezone){var c=new Date(u+l),d=new Date(0);return d.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),d.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),d}return s=function(e){if("Z"===e)return 0;var t=e.match(gp);if(!t)return 0;var n="+"===t[1]?-1:1,r=parseInt(t[2]),a=t[3]&&parseInt(t[3])||0;if(!function(e,t){return t>=0&&t<=59}(0,a))return NaN;return n*(r*ns+a*ts)}(o.timezone),isNaN(s)?new Date(NaN):new Date(u+l+s)}var hp={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},mp=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,vp=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,gp=/^([+-])(\d{2})(?::?(\d{2}))?$/;function yp(e){return e?parseInt(e):1}function bp(e){return e&&parseFloat(e.replace(",","."))||0}var kp=[31,null,31,30,31,30,31,31,30,31,30,31];function wp(e){return e%400===0||e%4===0&&e%100!==0}function xp(e){var t=e.match(/(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(?:\.(\d{0,7}))?(?:Z|(.)(\d{2}):?(\d{2})?)?/);return t?new Date(Date.UTC(+t[1],+t[2]-1,+t[3],+t[4]-(+t[9]||0)*("-"==t[8]?-1:1),+t[5]-(+t[10]||0)*("-"==t[8]?-1:1),+t[6],+((t[7]||"0")+"00").substring(0,3))):new Date(NaN)}function Dp(e,t){var n=$l(e)-t;return n<=0&&(n+=7),jf(e,n)}function Sp(e){return Dp(e,5)}function _p(e){return Dp(e,1)}function Ep(e){return Dp(e,6)}function Tp(e){return Dp(e,0)}function Mp(e){return Dp(e,4)}function Cp(e){return Dp(e,2)}function Op(e){return Dp(e,3)}function Pp(e){return Math.trunc(e*us)}function Ip(e){var t=e/cs;return Math.trunc(t)}function Np(e,t){var n,r,a=null!==(n=null===t||void 0===t?void 0:t.nearestTo)&&void 0!==n?n:1;if(a<1||a>12)return zi(e,NaN);var o=Hi(e),i=o.getMinutes()/60,s=o.getSeconds()/60/60,u=o.getMilliseconds()/1e3/60/60,l=o.getHours()+i+s+u,c=ou(null!==(r=null===t||void 0===t?void 0:t.roundingMethod)&&void 0!==r?r:"round")(l/a)*a,d=zi(e,o);return d.setHours(c,0,0,0),d}function Ap(e,t){var n,r,a=null!==(n=null===t||void 0===t?void 0:t.nearestTo)&&void 0!==n?n:1;if(a<1||a>30)return zi(e,NaN);var o=Hi(e),i=o.getSeconds()/60,s=o.getMilliseconds()/1e3/60,u=o.getMinutes()+i+s,l=ou(null!==(r=null===t||void 0===t?void 0:t.roundingMethod)&&void 0!==r?r:"round")(u/a)*a,c=zi(e,o);return c.setMinutes(l,0,0),c}function Rp(e){var t=e/ds;return Math.trunc(t)}function Lp(e){return e*rs}function jp(e){var t=e/fs;return Math.trunc(t)}function Fp(e,t){var n=Hi(e),r=n.getFullYear(),a=n.getDate(),o=zi(e,0);o.setFullYear(r,t,15),o.setHours(0,0,0,0);var i=Jl(o);return n.setMonth(t,Math.min(a,i)),n}function Yp(e,t){var n=Hi(e);return isNaN(+n)?zi(e,NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=Fp(n,t.month)),null!=t.date&&n.setDate(t.date),null!=t.hours&&n.setHours(t.hours),null!=t.minutes&&n.setMinutes(t.minutes),null!=t.seconds&&n.setSeconds(t.seconds),null!=t.milliseconds&&n.setMilliseconds(t.milliseconds),n)}function Wp(e,t){var n=Hi(e);return n.setDate(t),n}function Hp(e,t){var n=Hi(e);return n.setMonth(0),n.setDate(t),n}function zp(e){var t={},n=ks();for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(void 0===e[a]?delete t[a]:t[a]=e[a]);ws(t)}function Bp(e,t){var n=Hi(e);return n.setHours(t),n}function Zp(e,t){var n=Hi(e);return n.setMilliseconds(t),n}function qp(e,t){var n=Hi(e);return n.setMinutes(t),n}function Up(e,t){var n=Hi(e),r=t-(Math.trunc(n.getMonth()/3)+1);return Fp(n,n.getMonth()+3*r)}function Qp(e,t){var n=Hi(e);return n.setSeconds(t),n}function Vp(e,t,n){var r,a,o,i,s,u,l=ks(),c=null!==(r=null!==(a=null!==(o=null!==(i=null===n||void 0===n?void 0:n.firstWeekContainsDate)&&void 0!==i?i:null===n||void 0===n||null===(s=n.locale)||void 0===s||null===(s=s.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:l.firstWeekContainsDate)&&void 0!==a?a:null===(u=l.locale)||void 0===u||null===(u=u.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==r?r:1,d=Hi(e),f=Ts(d,il(d,n)),p=zi(e,0);return p.setFullYear(t,0,c),p.setHours(0,0,0,0),(d=il(p,n)).setDate(d.getDate()+f),d}function Kp(e,t){var n=Hi(e);return isNaN(+n)?zi(e,NaN):(n.setFullYear(t),n)}function Gp(e){var t=Hi(e),n=t.getFullYear(),r=10*Math.floor(n/10);return t.setFullYear(r,0,1),t.setHours(0,0,0,0),t}function Xp(){return _s(Date.now())}function $p(){var e=new Date,t=e.getFullYear(),n=e.getMonth(),r=e.getDate(),a=new Date(0);return a.setFullYear(t,n,r+1),a.setHours(0,0,0,0),a}function Jp(){var e=new Date,t=e.getFullYear(),n=e.getMonth(),r=e.getDate(),a=new Date(0);return a.setFullYear(t,n,r-1),a.setHours(0,0,0,0),a}function eh(e,t){return Zi(e,-t)}function th(e,t){var n=t.years,r=void 0===n?0:n,a=t.months,o=void 0===a?0:a,i=t.weeks,s=void 0===i?0:i,u=t.days,l=void 0===u?0:u,c=t.hours,d=void 0===c?0:c,f=t.minutes,p=void 0===f?0:f,h=t.seconds,m=1e3*((void 0===h?0:h)+60*(p+60*d));return zi(e,jf(eh(e,o+12*r),l+7*s).getTime()-m)}function nh(e,t){return Ki(e,-t)}function rh(e,t){return ys(e,-t)}function ah(e,t){return Gi(e,-t)}function oh(e,t){return Ps(e,-t)}function ih(e,t){return Is(e,-t)}function sh(e,t){return Ns(e,-t)}function uh(e,t){return As(e,-t)}function lh(e,t){return Rs(e,-t)}function ch(e){return Math.trunc(e*Xi)}function dh(e){return Math.trunc(e*$i)}function fh(e){return Math.trunc(e*ls)}function ph(e){return Math.trunc(e*cs)}function hh(e){return e.replace(/sekuntia?/,"sekunnin")}function mh(e){return e.replace(/minuuttia?/,"minuutin")}function vh(e){return e.replace(/tuntia?/,"tunnin")}function gh(e){return e.replace(/(viikko|viikkoa)/,"viikon")}function yh(e){return e.replace(/(kuukausi|kuukautta)/,"kuukauden")}function bh(e){return e.replace(/(vuosi|vuotta)/,"vuoden")}var kh={lessThanXSeconds:{one:"alle sekunti",other:"alle {{count}} sekuntia",futureTense:hh},xSeconds:{one:"sekunti",other:"{{count}} sekuntia",futureTense:hh},halfAMinute:{one:"puoli minuuttia",other:"puoli minuuttia",futureTense:function(e){return"puolen minuutin"}},lessThanXMinutes:{one:"alle minuutti",other:"alle {{count}} minuuttia",futureTense:mh},xMinutes:{one:"minuutti",other:"{{count}} minuuttia",futureTense:mh},aboutXHours:{one:"noin tunti",other:"noin {{count}} tuntia",futureTense:vh},xHours:{one:"tunti",other:"{{count}} tuntia",futureTense:vh},xDays:{one:"p\xe4iv\xe4",other:"{{count}} p\xe4iv\xe4\xe4",futureTense:function(e){return e.replace(/p\xe4iv\xe4\xe4?/,"p\xe4iv\xe4n")}},aboutXWeeks:{one:"noin viikko",other:"noin {{count}} viikkoa",futureTense:gh},xWeeks:{one:"viikko",other:"{{count}} viikkoa",futureTense:gh},aboutXMonths:{one:"noin kuukausi",other:"noin {{count}} kuukautta",futureTense:yh},xMonths:{one:"kuukausi",other:"{{count}} kuukautta",futureTense:yh},aboutXYears:{one:"noin vuosi",other:"noin {{count}} vuotta",futureTense:bh},xYears:{one:"vuosi",other:"{{count}} vuotta",futureTense:bh},overXYears:{one:"yli vuosi",other:"yli {{count}} vuotta",futureTense:bh},almostXYears:{one:"l\xe4hes vuosi",other:"l\xe4hes {{count}} vuotta",futureTense:bh}},wh={date:Qu({formats:{full:"eeee d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"d.M.y"},defaultWidth:"full"}),time:Qu({formats:{full:"HH.mm.ss zzzz",long:"HH.mm.ss z",medium:"HH.mm.ss",short:"HH.mm"},defaultWidth:"full"}),dateTime:Qu({formats:{full:"{{date}} 'klo' {{time}}",long:"{{date}} 'klo' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},xh={lastWeek:"'viime' eeee 'klo' p",yesterday:"'eilen klo' p",today:"'t\xe4n\xe4\xe4n klo' p",tomorrow:"'huomenna klo' p",nextWeek:"'ensi' eeee 'klo' p",other:"P"},Dh={narrow:["T","H","M","H","T","K","H","E","S","L","M","J"],abbreviated:["tammi","helmi","maalis","huhti","touko","kes\xe4","hein\xe4","elo","syys","loka","marras","joulu"],wide:["tammikuu","helmikuu","maaliskuu","huhtikuu","toukokuu","kes\xe4kuu","hein\xe4kuu","elokuu","syyskuu","lokakuu","marraskuu","joulukuu"]},Sh={narrow:Dh.narrow,abbreviated:Dh.abbreviated,wide:["tammikuuta","helmikuuta","maaliskuuta","huhtikuuta","toukokuuta","kes\xe4kuuta","hein\xe4kuuta","elokuuta","syyskuuta","lokakuuta","marraskuuta","joulukuuta"]},_h={narrow:["S","M","T","K","T","P","L"],short:["su","ma","ti","ke","to","pe","la"],abbreviated:["sunn.","maan.","tiis.","kesk.","torst.","perj.","la"],wide:["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"]},Eh={narrow:_h.narrow,short:_h.short,abbreviated:_h.abbreviated,wide:["sunnuntaina","maanantaina","tiistaina","keskiviikkona","torstaina","perjantaina","lauantaina"]},Th={code:"fi",formatDistance:function(e,t,n){var r=kh[e],a=1===t?r.one:r.other.replace("{{count}}",String(t));return null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?r.futureTense(a)+" kuluttua":a+" sitten":a},formatLong:wh,formatRelative:function(e,t,n,r){return xh[e]},localize:{ordinalNumber:function(e,t){return Number(e)+"."},era:Xu({values:{narrow:["eaa.","jaa."],abbreviated:["eaa.","jaa."],wide:["ennen ajanlaskun alkua","j\xe4lkeen ajanlaskun alun"]},defaultWidth:"wide"}),quarter:Xu({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. kvartaali","2. kvartaali","3. kvartaali","4. kvartaali"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Xu({values:Dh,defaultWidth:"wide",formattingValues:Sh,defaultFormattingWidth:"wide"}),day:Xu({values:_h,defaultWidth:"wide",formattingValues:Eh,defaultFormattingWidth:"wide"}),dayPeriod:Xu({values:{narrow:{am:"ap",pm:"ip",midnight:"keskiy\xf6",noon:"keskip\xe4iv\xe4",morning:"ap",afternoon:"ip",evening:"illalla",night:"y\xf6ll\xe4"},abbreviated:{am:"ap",pm:"ip",midnight:"keskiy\xf6",noon:"keskip\xe4iv\xe4",morning:"ap",afternoon:"ip",evening:"illalla",night:"y\xf6ll\xe4"},wide:{am:"ap",pm:"ip",midnight:"keskiy\xf6ll\xe4",noon:"keskip\xe4iv\xe4ll\xe4",morning:"aamup\xe4iv\xe4ll\xe4",afternoon:"iltap\xe4iv\xe4ll\xe4",evening:"illalla",night:"y\xf6ll\xe4"}},defaultWidth:"wide"})},match:{ordinalNumber:el({matchPattern:/^(\d+)(\.)/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:Ju({matchPatterns:{narrow:/^(e|j)/i,abbreviated:/^(eaa.|jaa.)/i,wide:/^(ennen ajanlaskun alkua|j\xe4lkeen ajanlaskun alun)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^e/i,/^j/i]},defaultParseWidth:"any"}),quarter:Ju({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]\.? kvartaali/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Ju({matchPatterns:{narrow:/^[thmkeslj]/i,abbreviated:/^(tammi|helmi|maalis|huhti|touko|kes\xe4|hein\xe4|elo|syys|loka|marras|joulu)/i,wide:/^(tammikuu|helmikuu|maaliskuu|huhtikuu|toukokuu|kes\xe4kuu|hein\xe4kuu|elokuu|syyskuu|lokakuu|marraskuu|joulukuu)(ta)?/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^t/i,/^h/i,/^m/i,/^h/i,/^t/i,/^k/i,/^h/i,/^e/i,/^s/i,/^l/i,/^m/i,/^j/i],any:[/^ta/i,/^hel/i,/^maa/i,/^hu/i,/^to/i,/^k/i,/^hei/i,/^e/i,/^s/i,/^l/i,/^mar/i,/^j/i]},defaultParseWidth:"any"}),day:Ju({matchPatterns:{narrow:/^[smtkpl]/i,short:/^(su|ma|ti|ke|to|pe|la)/i,abbreviated:/^(sunn.|maan.|tiis.|kesk.|torst.|perj.|la)/i,wide:/^(sunnuntai|maanantai|tiistai|keskiviikko|torstai|perjantai|lauantai)(na)?/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^k/i,/^t/i,/^p/i,/^l/i],any:[/^s/i,/^m/i,/^ti/i,/^k/i,/^to/i,/^p/i,/^l/i]},defaultParseWidth:"any"}),dayPeriod:Ju({matchPatterns:{narrow:/^(ap|ip|keskiy\xf6|keskip\xe4iv\xe4|aamup\xe4iv\xe4ll\xe4|iltap\xe4iv\xe4ll\xe4|illalla|y\xf6ll\xe4)/i,any:/^(ap|ip|keskiy\xf6ll\xe4|keskip\xe4iv\xe4ll\xe4|aamup\xe4iv\xe4ll\xe4|iltap\xe4iv\xe4ll\xe4|illalla|y\xf6ll\xe4)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^ap/i,pm:/^ip/i,midnight:/^keskiy\xf6/i,noon:/^keskip\xe4iv\xe4/i,morning:/aamup\xe4iv\xe4ll\xe4/i,afternoon:/iltap\xe4iv\xe4ll\xe4/i,evening:/illalla/i,night:/y\xf6ll\xe4/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},Mh={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"cerca de 1 hora",other:"cerca de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"cerca de 1 semana",other:"cerca de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"cerca de 1 m\xeas",other:"cerca de {{count}} meses"},xMonths:{one:"1 m\xeas",other:"{{count}} meses"},aboutXYears:{one:"cerca de 1 ano",other:"cerca de {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},Ch={date:Qu({formats:{full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:Qu({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:Qu({formats:{full:"{{date}} '\xe0s' {{time}}",long:"{{date}} '\xe0s' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Oh={lastWeek:function(e){var t=e.getDay();return"'"+(0===t||6===t?"\xfaltimo":"\xfaltima")+"' eeee '\xe0s' p"},yesterday:"'ontem \xe0s' p",today:"'hoje \xe0s' p",tomorrow:"'amanh\xe3 \xe0s' p",nextWeek:"eeee '\xe0s' p",other:"P"},Ph={code:"pt-BR",formatDistance:function(e,t,n){var r,a=Mh[e];return r="string"===typeof a?a:1===t?a.one:a.other.replace("{{count}}",String(t)),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"em "+r:"h\xe1 "+r:r},formatLong:Ch,formatRelative:function(e,t,n,r){var a=Oh[e];return"function"===typeof a?a(t):a},localize:{ordinalNumber:function(e,t){var n=Number(e);return"week"===(null===t||void 0===t?void 0:t.unit)?n+"\xaa":n+"\xba"},era:Xu({values:{narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","depois de cristo"]},defaultWidth:"wide"}),quarter:Xu({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1\xba trimestre","2\xba trimestre","3\xba trimestre","4\xba trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Xu({values:{narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","mar\xe7o","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},defaultWidth:"wide"}),day:Xu({values:{narrow:["D","S","T","Q","Q","S","S"],short:["dom","seg","ter","qua","qui","sex","sab"],abbreviated:["domingo","segunda","ter\xe7a","quarta","quinta","sexta","s\xe1bado"],wide:["domingo","segunda-feira","ter\xe7a-feira","quarta-feira","quinta-feira","sexta-feira","s\xe1bado"]},defaultWidth:"wide"}),dayPeriod:Xu({values:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"manh\xe3",afternoon:"tarde",evening:"tarde",night:"noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manh\xe3",afternoon:"tarde",evening:"tarde",night:"noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"manh\xe3",afternoon:"tarde",evening:"tarde",night:"noite"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"da manh\xe3",afternoon:"da tarde",evening:"da tarde",night:"da noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manh\xe3",afternoon:"da tarde",evening:"da tarde",night:"da noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"da manh\xe3",afternoon:"da tarde",evening:"da tarde",night:"da noite"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:el({matchPattern:/^(\d+)[\xba\xaao]?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:Ju({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]},defaultParseWidth:"any"}),quarter:Ju({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](\xba)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Ju({matchPatterns:{narrow:/^[jfmajsond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|mar\xe7o|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},defaultMatchWidth:"wide",parsePatterns:{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,/^fev/i,/^mar/i,/^abr/i,/^mai/i,/^jun/i,/^jul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dez/i]},defaultParseWidth:"any"}),day:Ju({matchPatterns:{narrow:/^(dom|[23456]\xaa?|s[a\xe1]b)/i,short:/^(dom|[23456]\xaa?|s[a\xe1]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[a\xe1]b)/i,wide:/^(domingo|(segunda|ter[c\xe7]a|quarta|quinta|sexta)([- ]feira)?|s[a\xe1]bado)/i},defaultMatchWidth:"wide",parsePatterns:{short:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[a\xe1]/i],narrow:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[a\xe1]/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[a\xe1]b/i]},defaultParseWidth:"any"}),dayPeriod:Ju({matchPatterns:{narrow:/^(a|p|mn|md|(da) (manh\xe3|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manh\xe3|tarde|noite))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn|^meia[-\s]noite/i,noon:/^md|^meio[-\s]dia/i,morning:/manh\xe3/i,afternoon:/tarde/i,evening:/tarde/i,night:/noite/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},Ih={code:"en-GB",formatDistance:Uu,formatLong:{date:Qu({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:Qu({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:Qu({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},formatRelative:Gu,localize:$u,match:tl,options:{weekStartsOn:1,firstWeekContainsDate:4}},Nh=n(6222),Ah=n.n(Nh);var Rh=n.p+"static/media/edit-regular.3c9aad14d3d21daa587b5b2690065e36.svg",Lh=function(n){c(a,n);var r=m(a);function a(){return o(this,a),r.apply(this,arguments)}return u(a,[{key:"componentDidMount",value:function(){(0,Yi.registerLocale)("fi",Th),(0,Yi.registerLocale)("pt-BR",Ph),(0,Yi.registerLocale)("en-GB",Ih)}},{key:"render",value:function(){var n=this.props.example,r=n.title,a=n.description,o=n.component;return(0,Fe.jsxs)("div",{id:"example-".concat(T()(r,{lower:!0})),className:"example",children:[(0,Fe.jsx)("h2",{className:"example__heading",children:r}),a&&(0,Fe.jsx)("p",{children:a}),(0,Fe.jsx)("div",{className:"row",children:(0,Fe.jsxs)(Ri,{code:o.trim(),scope:(0,M.Z)((0,M.Z)({PropTypes:O(),useState:t.useState,DatePicker:Wi(),CalendarContainer:Yi.CalendarContainer},e),{},{range:Ah(),fi:Th,forwardRef:t.forwardRef}),theme:ne.github,children:[(0,Fe.jsxs)("pre",{className:"example__code",children:[(0,Fe.jsx)("img",{src:Rh,className:"example__code__edit_icon",alt:"edit icon",title:"Edit the code directly on the left side and and see the output on the right"}),(0,Fe.jsx)(Li,{})]}),(0,Fe.jsxs)("div",{className:"example__preview",children:[(0,Fe.jsx)(ji,{}),(0,Fe.jsx)(Fi,{})]})]})})]})}}]),a}(t.Component),jh=function(e){c(n,e);var t=m(n);function n(){var e;o(this,n);for(var r=arguments.length,a=new Array(r),i=0;i